@jieyin/editor-sdk-test 1.1.155 → 1.1.156
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editor-sdk.es.js +2760 -2748
- package/dist/renderWorker.js +713 -711
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/renderWorker.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
1
|
+
var g0 = /* @__PURE__ */ ((r) => (r[r.Group = 0] = "Group", r[r.Layer = 1] = "Layer", r))(g0 || {});
|
|
2
2
|
function Ye(r) {
|
|
3
|
-
let
|
|
3
|
+
let h = r;
|
|
4
4
|
return () => {
|
|
5
|
-
const t =
|
|
6
|
-
return
|
|
5
|
+
const t = h;
|
|
6
|
+
return h += 1, t;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
function Qe(r,
|
|
9
|
+
function Qe(r, h) {
|
|
10
10
|
return {
|
|
11
11
|
name: r.name || "",
|
|
12
12
|
type: r.type || "Layer",
|
|
@@ -23,19 +23,19 @@ function Qe(r, l) {
|
|
|
23
23
|
quiltSliceY: r.quiltSliceY,
|
|
24
24
|
layerOrder: r.layerOrder,
|
|
25
25
|
imagePath: r.imagePath,
|
|
26
|
-
vectorMask: r.vectorMask ??
|
|
26
|
+
vectorMask: r.vectorMask ?? h,
|
|
27
27
|
filterList: r.filterList,
|
|
28
28
|
opacity: r.opacity,
|
|
29
29
|
clipping: r.clipping
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
function Ve(r,
|
|
33
|
-
let u = r.name || "",
|
|
34
|
-
if (r.type === "Group" && m === void 0 && (!
|
|
35
|
-
const x = r.children[0].name, n =
|
|
36
|
-
(E !== void 0 || n?.id !== void 0) && (u = x,
|
|
32
|
+
function Ve(r, h, t, e) {
|
|
33
|
+
let u = r.name || "", v = h[u], m = v?.partId ?? (r.type === "Group" ? t.get(u) : void 0);
|
|
34
|
+
if (r.type === "Group" && m === void 0 && (!v || v.id === void 0) && r.children && r.children.length === 1) {
|
|
35
|
+
const x = r.children[0].name, n = h[x], E = n?.partId ?? t.get(x);
|
|
36
|
+
(E !== void 0 || n?.id !== void 0) && (u = x, v = n, m = E);
|
|
37
37
|
}
|
|
38
|
-
const B = r.id ??
|
|
38
|
+
const B = r.id ?? v?.id ?? e();
|
|
39
39
|
if (r.type === "Group")
|
|
40
40
|
return {
|
|
41
41
|
id: B,
|
|
@@ -43,7 +43,7 @@ function Ve(r, l, t, e) {
|
|
|
43
43
|
name: u,
|
|
44
44
|
blendMode: r.blendMode || "normal",
|
|
45
45
|
bounds: r.bounds || { left: 0, top: 0, width: 0, height: 0 },
|
|
46
|
-
type:
|
|
46
|
+
type: g0.Group,
|
|
47
47
|
smartObjects: (r.children ?? []).map(
|
|
48
48
|
(x) => Qe(x, r.vectorMask)
|
|
49
49
|
),
|
|
@@ -51,50 +51,50 @@ function Ve(r, l, t, e) {
|
|
|
51
51
|
clipping: r.clipping,
|
|
52
52
|
layerOrder: r.layerOrder
|
|
53
53
|
};
|
|
54
|
-
let C =
|
|
54
|
+
let C = v?.url;
|
|
55
55
|
return !C && r.imagePath && (C = r.imagePath), {
|
|
56
56
|
id: B,
|
|
57
57
|
name: r.name || "",
|
|
58
58
|
blendMode: r.blendMode || "normal",
|
|
59
59
|
bounds: r.bounds || { left: 0, top: 0, width: 0, height: 0 },
|
|
60
|
-
type:
|
|
60
|
+
type: g0.Layer,
|
|
61
61
|
url: C,
|
|
62
62
|
opacity: r.opacity,
|
|
63
63
|
clipping: r.clipping,
|
|
64
64
|
layerOrder: r.layerOrder
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
function Je(r,
|
|
68
|
-
const t = new Map(
|
|
67
|
+
function Je(r, h) {
|
|
68
|
+
const t = new Map(h.parts.map((u) => [u.name, u.id])), e = Ye(h.defaultIdStart ?? 1);
|
|
69
69
|
return {
|
|
70
|
-
parts:
|
|
70
|
+
parts: h.parts,
|
|
71
71
|
models: r.map((u) => {
|
|
72
|
-
const
|
|
72
|
+
const v = u.layerExtrasByName ?? {}, m = u.psdJson, B = m.layerList || m.layerList || [], C = m.canvasWidth, x = m.canvasHeight;
|
|
73
73
|
if (!C || !x)
|
|
74
74
|
throw new Error(`无法获取 PSD 画布尺寸: canvasWidth=${C}, canvasHeight=${x}。请确保 jsonurl 中的 canvasWidth 和 canvasHeight 存在`);
|
|
75
75
|
const n = (s) => {
|
|
76
76
|
const f = [];
|
|
77
|
-
for (const
|
|
78
|
-
if (
|
|
79
|
-
const
|
|
80
|
-
const b = o.layerOrder ?? 0,
|
|
81
|
-
return b -
|
|
77
|
+
for (const p of s)
|
|
78
|
+
if (p.type === "Group" && p.children) {
|
|
79
|
+
const l = [], D = [], i = [...p.children].sort((o, d) => {
|
|
80
|
+
const b = o.layerOrder ?? 0, g = d.layerOrder ?? 0;
|
|
81
|
+
return b - g;
|
|
82
82
|
});
|
|
83
83
|
for (const o of i)
|
|
84
|
-
o.isSmartObject === !0 ?
|
|
85
|
-
if (
|
|
86
|
-
const o = n(
|
|
84
|
+
o.isSmartObject === !0 ? l.push(o) : D.push(o);
|
|
85
|
+
if (D.length > 0) {
|
|
86
|
+
const o = n(D);
|
|
87
87
|
f.push(...o);
|
|
88
88
|
}
|
|
89
|
-
|
|
90
|
-
...
|
|
91
|
-
children:
|
|
89
|
+
l.length > 0 && f.push({
|
|
90
|
+
...p,
|
|
91
|
+
children: l
|
|
92
92
|
});
|
|
93
93
|
} else
|
|
94
|
-
f.push(
|
|
94
|
+
f.push(p);
|
|
95
95
|
return f;
|
|
96
96
|
}, a = n(B).map(
|
|
97
|
-
(s) => Ve(s,
|
|
97
|
+
(s) => Ve(s, v, t, e)
|
|
98
98
|
);
|
|
99
99
|
return {
|
|
100
100
|
width: C,
|
|
@@ -110,44 +110,44 @@ function rt(r) {
|
|
|
110
110
|
function et(r) {
|
|
111
111
|
return r ? r.type === "bezier" ? {
|
|
112
112
|
type: "bezier",
|
|
113
|
-
paths: r.paths.map((
|
|
114
|
-
open: !!
|
|
115
|
-
knots:
|
|
113
|
+
paths: r.paths.map((h) => ({
|
|
114
|
+
open: !!h.open,
|
|
115
|
+
knots: h.knots.map((t) => ({
|
|
116
116
|
linked: !!t.linked,
|
|
117
117
|
points: Array.isArray(t.points) ? [...t.points] : []
|
|
118
118
|
}))
|
|
119
119
|
}))
|
|
120
120
|
} : r.type === "simple" ? {
|
|
121
121
|
type: "simple",
|
|
122
|
-
points: r.points.map((
|
|
123
|
-
x:
|
|
124
|
-
y:
|
|
125
|
-
type:
|
|
122
|
+
points: r.points.map((h) => ({
|
|
123
|
+
x: h.x,
|
|
124
|
+
y: h.y,
|
|
125
|
+
type: h.type
|
|
126
126
|
}))
|
|
127
127
|
} : null : null;
|
|
128
128
|
}
|
|
129
|
-
function hr(r,
|
|
130
|
-
if (
|
|
131
|
-
if (r.globalCompositeOperation = "destination-in", r.beginPath(),
|
|
132
|
-
|
|
129
|
+
function hr(r, h) {
|
|
130
|
+
if (h) {
|
|
131
|
+
if (r.globalCompositeOperation = "destination-in", r.beginPath(), h.type === "bezier" && Array.isArray(h.paths))
|
|
132
|
+
h.paths.forEach((t) => {
|
|
133
133
|
const e = t.knots;
|
|
134
134
|
if (!e || e.length < 2) return;
|
|
135
135
|
const u = e[0];
|
|
136
136
|
r.moveTo(u.points[2], u.points[3]);
|
|
137
|
-
for (let
|
|
138
|
-
const m = e[
|
|
139
|
-
let B = (
|
|
140
|
-
if (!t.open &&
|
|
137
|
+
for (let v = 0; v < e.length; v++) {
|
|
138
|
+
const m = e[v];
|
|
139
|
+
let B = (v + 1) % e.length;
|
|
140
|
+
if (!t.open && v === e.length - 1)
|
|
141
141
|
B = 0;
|
|
142
|
-
else if (t.open &&
|
|
142
|
+
else if (t.open && v === e.length - 1)
|
|
143
143
|
break;
|
|
144
144
|
const C = e[B], x = m.points[4], n = m.points[5], E = C.points[0], a = C.points[1], s = C.points[2], f = C.points[3];
|
|
145
145
|
r.bezierCurveTo(x, n, E, a, s, f);
|
|
146
146
|
}
|
|
147
147
|
t.open || r.closePath();
|
|
148
148
|
});
|
|
149
|
-
else if (
|
|
150
|
-
const t =
|
|
149
|
+
else if (h.type === "simple" && Array.isArray(h.points)) {
|
|
150
|
+
const t = h.points;
|
|
151
151
|
if (t.length < 3) return;
|
|
152
152
|
r.moveTo(t[0].x, t[0].y);
|
|
153
153
|
for (let e = 1; e < t.length; e++) r.lineTo(t[e].x, t[e].y);
|
|
@@ -161,10 +161,10 @@ class v0 {
|
|
|
161
161
|
/**
|
|
162
162
|
* 获取存储项
|
|
163
163
|
*/
|
|
164
|
-
static getItem(
|
|
164
|
+
static getItem(h) {
|
|
165
165
|
if (!this.hasStorage) return null;
|
|
166
166
|
try {
|
|
167
|
-
return localStorage.getItem(
|
|
167
|
+
return localStorage.getItem(h);
|
|
168
168
|
} catch {
|
|
169
169
|
return null;
|
|
170
170
|
}
|
|
@@ -172,10 +172,10 @@ class v0 {
|
|
|
172
172
|
/**
|
|
173
173
|
* 设置存储项
|
|
174
174
|
*/
|
|
175
|
-
static setItem(
|
|
175
|
+
static setItem(h, t) {
|
|
176
176
|
if (!this.hasStorage) return !1;
|
|
177
177
|
try {
|
|
178
|
-
return localStorage.setItem(
|
|
178
|
+
return localStorage.setItem(h, t), !0;
|
|
179
179
|
} catch {
|
|
180
180
|
return !1;
|
|
181
181
|
}
|
|
@@ -183,10 +183,10 @@ class v0 {
|
|
|
183
183
|
/**
|
|
184
184
|
* 移除存储项
|
|
185
185
|
*/
|
|
186
|
-
static removeItem(
|
|
186
|
+
static removeItem(h) {
|
|
187
187
|
if (!this.hasStorage) return !1;
|
|
188
188
|
try {
|
|
189
|
-
return localStorage.removeItem(
|
|
189
|
+
return localStorage.removeItem(h), !0;
|
|
190
190
|
} catch {
|
|
191
191
|
return !1;
|
|
192
192
|
}
|
|
@@ -251,10 +251,10 @@ class h0 {
|
|
|
251
251
|
/**
|
|
252
252
|
* 安全地解析 URL
|
|
253
253
|
*/
|
|
254
|
-
static parse(
|
|
254
|
+
static parse(h) {
|
|
255
255
|
try {
|
|
256
256
|
const t = fr.getOrigin();
|
|
257
|
-
return new URL(
|
|
257
|
+
return new URL(h, t);
|
|
258
258
|
} catch {
|
|
259
259
|
return null;
|
|
260
260
|
}
|
|
@@ -262,65 +262,65 @@ class h0 {
|
|
|
262
262
|
/**
|
|
263
263
|
* 添加查询参数
|
|
264
264
|
*/
|
|
265
|
-
static addParam(
|
|
266
|
-
const u = this.parse(
|
|
267
|
-
return !u || u.searchParams.has(t) ?
|
|
265
|
+
static addParam(h, t, e) {
|
|
266
|
+
const u = this.parse(h);
|
|
267
|
+
return !u || u.searchParams.has(t) ? h : (u.searchParams.set(t, e), this.formatUrl(h, u));
|
|
268
268
|
}
|
|
269
269
|
/**
|
|
270
270
|
* 移除查询参数
|
|
271
271
|
*/
|
|
272
|
-
static removeParam(
|
|
273
|
-
const e = this.parse(
|
|
274
|
-
return !e || !e.searchParams.has(t) ?
|
|
272
|
+
static removeParam(h, t) {
|
|
273
|
+
const e = this.parse(h);
|
|
274
|
+
return !e || !e.searchParams.has(t) ? h : (e.searchParams.delete(t), this.formatUrl(h, e));
|
|
275
275
|
}
|
|
276
276
|
/**
|
|
277
277
|
* 检查是否有指定参数
|
|
278
278
|
*/
|
|
279
|
-
static hasParam(
|
|
280
|
-
return this.parse(
|
|
279
|
+
static hasParam(h, t) {
|
|
280
|
+
return this.parse(h)?.searchParams.has(t) ?? !1;
|
|
281
281
|
}
|
|
282
282
|
/**
|
|
283
283
|
* 格式化 URL(保持原始格式)
|
|
284
284
|
*/
|
|
285
|
-
static formatUrl(
|
|
286
|
-
const e = /^(https?:)?\/\//i.test(
|
|
285
|
+
static formatUrl(h, t) {
|
|
286
|
+
const e = /^(https?:)?\/\//i.test(h), u = h.startsWith("//");
|
|
287
287
|
return e ? t.toString() : u ? t.toString().replace(/^https?:/, "") : `${t.pathname}${t.search}${t.hash}`;
|
|
288
288
|
}
|
|
289
289
|
/**
|
|
290
290
|
* 检查是否为数据 URL
|
|
291
291
|
*/
|
|
292
|
-
static isDataUrl(
|
|
293
|
-
return
|
|
292
|
+
static isDataUrl(h) {
|
|
293
|
+
return h?.startsWith("data:") ?? !1;
|
|
294
294
|
}
|
|
295
295
|
/**
|
|
296
296
|
* 检查是否为 Blob URL
|
|
297
297
|
*/
|
|
298
|
-
static isBlobUrl(
|
|
299
|
-
return
|
|
298
|
+
static isBlobUrl(h) {
|
|
299
|
+
return h?.startsWith("blob:") ?? !1;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
function ur(r, l) {
|
|
303
|
-
return r = r - (2 * 2854 + -3695 + -1732), cr()[r];
|
|
304
|
-
}
|
|
305
302
|
const t0 = ur;
|
|
306
|
-
|
|
303
|
+
function ur(r, h) {
|
|
304
|
+
return r = r - 157, cr()[r];
|
|
305
|
+
}
|
|
306
|
+
(function(r, h) {
|
|
307
307
|
const t = ur, e = r();
|
|
308
308
|
for (; ; )
|
|
309
309
|
try {
|
|
310
|
-
if (parseInt(t(
|
|
310
|
+
if (-parseInt(t(173)) / 1 * (-parseInt(t(195)) / 2) + -parseInt(t(182)) / 3 * (parseInt(t(161)) / 4) + -parseInt(t(190)) / 5 + -parseInt(t(183)) / 6 + parseInt(t(186)) / 7 + -parseInt(t(159)) / 8 * (-parseInt(t(165)) / 9) + -parseInt(t(189)) / 10 * (-parseInt(t(172)) / 11) === h) break;
|
|
311
311
|
e.push(e.shift());
|
|
312
312
|
} catch {
|
|
313
313
|
e.push(e.shift());
|
|
314
314
|
}
|
|
315
|
-
})(cr, -
|
|
315
|
+
})(cr, -1940725 + -81859 * -17 + 1536349);
|
|
316
316
|
const A0 = /* @__PURE__ */ (function() {
|
|
317
317
|
let r = !0;
|
|
318
|
-
return function(
|
|
318
|
+
return function(h, t) {
|
|
319
319
|
const e = r ? function() {
|
|
320
320
|
const u = ur;
|
|
321
321
|
if (t) {
|
|
322
|
-
const
|
|
323
|
-
return t = null,
|
|
322
|
+
const v = t[u(170)](h, arguments);
|
|
323
|
+
return t = null, v;
|
|
324
324
|
}
|
|
325
325
|
} : function() {
|
|
326
326
|
};
|
|
@@ -328,139 +328,141 @@ const A0 = /* @__PURE__ */ (function() {
|
|
|
328
328
|
};
|
|
329
329
|
})(), tt = A0(void 0, function() {
|
|
330
330
|
const r = ur;
|
|
331
|
-
let
|
|
331
|
+
let h;
|
|
332
332
|
try {
|
|
333
|
-
|
|
333
|
+
h = Function("retur" + r(184) + "nction() " + (r(194) + "nstru" + r(188) + r(168) + r(175) + r(197) + " )") + ");")();
|
|
334
334
|
} catch {
|
|
335
|
-
|
|
335
|
+
h = window;
|
|
336
336
|
}
|
|
337
|
-
const t =
|
|
338
|
-
for (let u =
|
|
339
|
-
const
|
|
340
|
-
|
|
337
|
+
const t = h[r(193) + "le"] = h.console || {}, e = ["log", r(164), r(178), "error", "exception", "table", "trace"];
|
|
338
|
+
for (let u = 1 * -1983 + -1 * -1627 + 356; u < e.length; u++) {
|
|
339
|
+
const v = A0.constructor.prototype.bind(A0), m = e[u], B = t[m] || v;
|
|
340
|
+
v.__proto__ = A0.bind(A0), v.toString = B["toStr" + r(179)][r(196)](B), t[m] = v;
|
|
341
341
|
}
|
|
342
342
|
});
|
|
343
|
+
function cr() {
|
|
344
|
+
const r = ["1050BxjbAl", "8944115WclhZB", "FileT", "token", "conso", "{}.co", "2NXQMOo", "bind", 'is")(', "expir", "eItem", "addPa", "15392264nQBvxO", "now", "2872tbgMmu", "efres", "des", "warn", "9sEVCSD", "isBro", "getIt", '"retu', "file_", "apply", "/file", "95326aKqoPB", "6957UgafPT", "numbe", "rn th", "statu", "okenR", "info", "ing", "data", "fileT", "357VTmysJ", "9918432OPAPyF", "n (fu", "ram", "11715508VXyBMp", "remov", "ctor("];
|
|
345
|
+
return cr = function() {
|
|
346
|
+
return r;
|
|
347
|
+
}, cr();
|
|
348
|
+
}
|
|
343
349
|
tt();
|
|
344
|
-
const Er = t0(
|
|
350
|
+
const Er = t0(169) + t0(192), Ar = "file_token_expire_time", xt = (-4914 + -1658 * -3) * (8890 * -1 + -3139 + 13029);
|
|
345
351
|
function Br() {
|
|
346
|
-
return v0
|
|
352
|
+
return v0.getItem(Er);
|
|
347
353
|
}
|
|
348
354
|
function nt(r = xt) {
|
|
349
|
-
const
|
|
355
|
+
const h = t0;
|
|
350
356
|
if (!Br()) return !0;
|
|
351
|
-
const e = v0[
|
|
357
|
+
const e = v0[h(167) + "em"](Ar);
|
|
352
358
|
if (!e) return !1;
|
|
353
359
|
const u = Number(e);
|
|
354
360
|
return Date.now() + r > u;
|
|
355
361
|
}
|
|
356
|
-
function at(r,
|
|
362
|
+
function at(r, h) {
|
|
357
363
|
const t = t0;
|
|
358
|
-
if (v0.setItem(Er, r), typeof
|
|
359
|
-
const e = Date[t(
|
|
364
|
+
if (v0.setItem(Er, r), typeof h == t(174) + "r" && h > 0) {
|
|
365
|
+
const e = Date[t(160)]() + h * 1e3;
|
|
360
366
|
v0.setItem(Ar, String(e));
|
|
361
367
|
}
|
|
362
368
|
}
|
|
363
369
|
function ot() {
|
|
364
|
-
|
|
370
|
+
const r = t0;
|
|
371
|
+
v0.removeItem(Er), v0[r(187) + r(157)](Ar);
|
|
365
372
|
}
|
|
366
|
-
async function
|
|
367
|
-
const
|
|
368
|
-
return t?.
|
|
373
|
+
async function zr(r) {
|
|
374
|
+
const h = t0, t = await r(), e = t?.data?.[h(180)];
|
|
375
|
+
return t?.data?.code === -1 * 4353 + -4589 + 9142 && e?.["file_token"] ? (at(e[h(169) + "token"], e[h(198) + "es_in"]), e[h(169) + "token"]) : null;
|
|
369
376
|
}
|
|
370
377
|
let it = null;
|
|
371
|
-
function cr() {
|
|
372
|
-
const r = ["now", "185694XSRTZa", "okenR", "FileT", "8EQzdVh", "code", "oken=", "conso", "nctio", "data", "ing", "inclu", "{}.co", "fetch", "wser", "file_", "pathn", "/file", "des", "412840LIJaKq", "894788DMYwhu", "getIt", "84673juKjlt", "fileT", "2InPXLw", "12ytsyZL", "apply", "es_in", "toStr", "__pro", "parse", "n (fu", "bUrl", "oken", "11ATrtrX", "924819rjQnyr", "1629800Ofepmw", "274203dljRDV"];
|
|
373
|
-
return cr = function() {
|
|
374
|
-
return r;
|
|
375
|
-
}, cr();
|
|
376
|
-
}
|
|
377
378
|
function Ir() {
|
|
378
|
-
return fr[
|
|
379
|
+
return fr[t0(166) + "wser"]() ? it : null;
|
|
379
380
|
}
|
|
380
381
|
async function be() {
|
|
381
382
|
const r = t0;
|
|
382
383
|
if (!fr.isBrowser()) return Br();
|
|
383
|
-
const
|
|
384
|
-
if (
|
|
384
|
+
const h = Br();
|
|
385
|
+
if (h && !nt()) return h;
|
|
385
386
|
try {
|
|
386
387
|
const t = await Ir();
|
|
387
|
-
if (
|
|
388
|
-
const e = await
|
|
388
|
+
if (h && t?.["fetchFileT" + r(177) + r(162) + "h"]) {
|
|
389
|
+
const e = await zr(t["fetch" + r(191) + "okenRefresh"]);
|
|
389
390
|
if (e) return e;
|
|
390
391
|
}
|
|
391
392
|
} catch {
|
|
392
393
|
}
|
|
393
394
|
try {
|
|
394
395
|
const t = Ir();
|
|
395
|
-
return t?.["fetchFileToken"] ? await
|
|
396
|
+
return t?.["fetchFileToken"] ? await zr(t.fetchFileToken) : null;
|
|
396
397
|
} catch {
|
|
397
398
|
return null;
|
|
398
399
|
}
|
|
399
400
|
}
|
|
400
401
|
function me(r) {
|
|
401
|
-
const
|
|
402
|
-
if (!r || h0.isDataUrl(r) || h0
|
|
403
|
-
const t = h0
|
|
404
|
-
return t ? t
|
|
402
|
+
const h = t0;
|
|
403
|
+
if (!r || h0.isDataUrl(r) || h0.isBlobUrl(r)) return !1;
|
|
404
|
+
const t = h0.parse(r);
|
|
405
|
+
return t ? t.pathname.includes(h(171) + "s/") && !h0["hasPa" + h(185)](r, h(181) + "oken") : r.includes("/files/") && !r["inclu" + h(163)](h(181) + "oken=");
|
|
405
406
|
}
|
|
406
|
-
function _e(r,
|
|
407
|
-
|
|
407
|
+
function _e(r, h) {
|
|
408
|
+
const t = t0;
|
|
409
|
+
return !h || !me(r) ? r : h0[t(158) + "ram"](r, "fileToken", h);
|
|
408
410
|
}
|
|
409
411
|
function st(r) {
|
|
410
|
-
|
|
411
|
-
return h0.removeParam(r, "fileT" + l(297));
|
|
412
|
+
return h0.removeParam(r, "fileToken");
|
|
412
413
|
}
|
|
413
414
|
async function ct(r) {
|
|
414
415
|
if (!me(r)) return r;
|
|
415
|
-
const
|
|
416
|
-
return _e(r,
|
|
416
|
+
const h = await be();
|
|
417
|
+
return _e(r, h);
|
|
417
418
|
}
|
|
418
|
-
async function ye(r,
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
419
|
+
async function ye(r, h) {
|
|
420
|
+
const t = t0;
|
|
421
|
+
if (!fr[t(166) + "wser"]()) return fetch(r, h);
|
|
422
|
+
const e = st(r), u = await ct(e), v = await fetch(u, h);
|
|
423
|
+
if (v[t(176) + "s"] !== -18 * -405 + 9482 + -16371) return v;
|
|
422
424
|
ot();
|
|
423
|
-
const
|
|
424
|
-
return fetch(
|
|
425
|
+
const m = await be(), B = _e(e, m);
|
|
426
|
+
return fetch(B, h);
|
|
425
427
|
}
|
|
426
|
-
const we = (r,
|
|
428
|
+
const we = (r, h) => {
|
|
427
429
|
if (!r) return r;
|
|
428
|
-
const t = (
|
|
430
|
+
const t = (h || "").replace(/\/$/, "");
|
|
429
431
|
if (t && r.startsWith(t))
|
|
430
432
|
return r;
|
|
431
433
|
if (typeof window < "u") {
|
|
432
434
|
const u = window.location.hostname;
|
|
433
435
|
if (u === "localhost" || u === "127.0.0.1")
|
|
434
436
|
try {
|
|
435
|
-
const
|
|
437
|
+
const v = new URL(r);
|
|
436
438
|
if (t)
|
|
437
439
|
try {
|
|
438
440
|
const m = new URL(t).origin;
|
|
439
|
-
if (
|
|
441
|
+
if (v.origin === m)
|
|
440
442
|
return r;
|
|
441
443
|
} catch {
|
|
442
444
|
}
|
|
443
|
-
if (
|
|
444
|
-
return t ? `${t}${
|
|
445
|
+
if (v.pathname.startsWith("/files/"))
|
|
446
|
+
return t ? `${t}${v.pathname}${v.search}${v.hash}` : `${v.pathname}${v.search}${v.hash}`;
|
|
445
447
|
} catch {
|
|
446
448
|
}
|
|
447
449
|
}
|
|
448
450
|
if (typeof window < "u" && window.location.hostname !== "localhost") return r;
|
|
449
451
|
const e = r.match(/^https?:\/\/([^/]+\.oss[^/]*\.aliyuncs\.com)(.*)$/);
|
|
450
452
|
return e ? `/oss${e[2]}` : r;
|
|
451
|
-
}, ft = (r,
|
|
453
|
+
}, ft = (r, h) => {
|
|
452
454
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
453
|
-
return new OffscreenCanvas(r,
|
|
455
|
+
return new OffscreenCanvas(r, h);
|
|
454
456
|
const t = document.createElement("canvas");
|
|
455
|
-
return t.width = r, t.height =
|
|
456
|
-
}, _0 = async (r,
|
|
457
|
-
if (!
|
|
457
|
+
return t.width = r, t.height = h, t;
|
|
458
|
+
}, _0 = async (r, h) => {
|
|
459
|
+
if (!h || h <= 0) return r;
|
|
458
460
|
const t = Math.max(r.width, r.height);
|
|
459
|
-
if (t <=
|
|
460
|
-
const e =
|
|
461
|
-
return B ? (B.drawImage(r, 0, 0, u,
|
|
461
|
+
if (t <= h) return r;
|
|
462
|
+
const e = h / t, u = Math.max(1, Math.round(r.width * e)), v = Math.max(1, Math.round(r.height * e)), m = ft(u, v), B = m.getContext("2d");
|
|
463
|
+
return B ? (B.drawImage(r, 0, 0, u, v), r.close?.(), await createImageBitmap(m)) : r;
|
|
462
464
|
};
|
|
463
|
-
async function ut(r,
|
|
465
|
+
async function ut(r, h, t) {
|
|
464
466
|
if (typeof r == "string")
|
|
465
467
|
try {
|
|
466
468
|
const e = we(r, t), u = await ye(e);
|
|
@@ -468,12 +470,12 @@ async function ut(r, l, t) {
|
|
|
468
470
|
const m = u.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${u.status} ${u.statusText}): ${r}`;
|
|
469
471
|
throw new Error(m);
|
|
470
472
|
}
|
|
471
|
-
const
|
|
472
|
-
if (!
|
|
473
|
+
const v = await u.blob();
|
|
474
|
+
if (!v.type.startsWith("image/") && v.size === 0)
|
|
473
475
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
474
476
|
try {
|
|
475
|
-
const m = await createImageBitmap(
|
|
476
|
-
return await _0(m,
|
|
477
|
+
const m = await createImageBitmap(v);
|
|
478
|
+
return await _0(m, h);
|
|
477
479
|
} catch (m) {
|
|
478
480
|
throw new Error(`图片解码失败: URL=${r}, 错误=${m instanceof Error ? m.message : m}`);
|
|
479
481
|
}
|
|
@@ -487,7 +489,7 @@ async function ut(r, l, t) {
|
|
|
487
489
|
throw new Error(`图片尺寸无效: src=${r.src}, width=${r.naturalWidth}, height=${r.naturalHeight}`);
|
|
488
490
|
try {
|
|
489
491
|
const e = await createImageBitmap(r);
|
|
490
|
-
return await _0(e,
|
|
492
|
+
return await _0(e, h);
|
|
491
493
|
} catch (e) {
|
|
492
494
|
throw new Error(`图片解码失败: src=${r.src}, 错误=${e instanceof Error ? e.message : e}`);
|
|
493
495
|
}
|
|
@@ -495,23 +497,23 @@ async function ut(r, l, t) {
|
|
|
495
497
|
if (r instanceof ImageBitmap) {
|
|
496
498
|
if (r.width === 0 || r.height === 0)
|
|
497
499
|
throw new Error(`ImageBitmap 尺寸无效: width=${r.width}, height=${r.height}`);
|
|
498
|
-
return await _0(r,
|
|
500
|
+
return await _0(r, h);
|
|
499
501
|
}
|
|
500
502
|
throw new Error("不支持的图片类型");
|
|
501
503
|
}
|
|
502
|
-
async function dt(r,
|
|
504
|
+
async function dt(r, h, t) {
|
|
503
505
|
try {
|
|
504
506
|
const e = we(r, t), u = await ye(e);
|
|
505
507
|
if (!u.ok) {
|
|
506
508
|
const m = u.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${u.status} ${u.statusText}): ${r}`;
|
|
507
509
|
throw new Error(m);
|
|
508
510
|
}
|
|
509
|
-
const
|
|
510
|
-
if (!
|
|
511
|
+
const v = await u.blob();
|
|
512
|
+
if (!v.type.startsWith("image/") && v.size === 0)
|
|
511
513
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
512
514
|
try {
|
|
513
|
-
const m = await createImageBitmap(
|
|
514
|
-
return await _0(m,
|
|
515
|
+
const m = await createImageBitmap(v);
|
|
516
|
+
return await _0(m, h);
|
|
515
517
|
} catch (m) {
|
|
516
518
|
throw new Error(`图片解码失败: URL=${r}, 错误=${m instanceof Error ? m.message : m}`);
|
|
517
519
|
}
|
|
@@ -521,7 +523,7 @@ async function dt(r, l, t) {
|
|
|
521
523
|
}
|
|
522
524
|
function Lr(r) {
|
|
523
525
|
if (!r) return "source-over";
|
|
524
|
-
const
|
|
526
|
+
const h = r.trim().toLowerCase();
|
|
525
527
|
return {
|
|
526
528
|
normal: "source-over",
|
|
527
529
|
multiply: "multiply",
|
|
@@ -547,22 +549,22 @@ function Lr(r) {
|
|
|
547
549
|
"linear dodge": "lighter",
|
|
548
550
|
lighter: "lighter",
|
|
549
551
|
"pass-through": "source-over"
|
|
550
|
-
}[
|
|
552
|
+
}[h] || "source-over";
|
|
551
553
|
}
|
|
552
554
|
var vr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
553
555
|
function lt(r) {
|
|
554
556
|
if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
|
|
555
|
-
var
|
|
556
|
-
if (typeof
|
|
557
|
+
var h = r.default;
|
|
558
|
+
if (typeof h == "function") {
|
|
557
559
|
var t = function e() {
|
|
558
560
|
var u = !1;
|
|
559
561
|
try {
|
|
560
562
|
u = this instanceof e;
|
|
561
563
|
} catch {
|
|
562
564
|
}
|
|
563
|
-
return u ? Reflect.construct(
|
|
565
|
+
return u ? Reflect.construct(h, arguments, this.constructor) : h.apply(this, arguments);
|
|
564
566
|
};
|
|
565
|
-
t.prototype =
|
|
567
|
+
t.prototype = h.prototype;
|
|
566
568
|
} else t = {};
|
|
567
569
|
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(r).forEach(function(e) {
|
|
568
570
|
var u = Object.getOwnPropertyDescriptor(r, e);
|
|
@@ -583,27 +585,27 @@ var w0 = { exports: {} }, vt = {}, pt = /* @__PURE__ */ Object.freeze({
|
|
|
583
585
|
default: vt
|
|
584
586
|
}), Bt = /* @__PURE__ */ lt(pt), Ct = w0.exports, Or;
|
|
585
587
|
function M() {
|
|
586
|
-
return Or || (Or = 1, (function(r,
|
|
588
|
+
return Or || (Or = 1, (function(r, h) {
|
|
587
589
|
(function(t, e) {
|
|
588
590
|
r.exports = e();
|
|
589
591
|
})(Ct, function() {
|
|
590
592
|
var t = t || (function(e, u) {
|
|
591
|
-
var
|
|
592
|
-
if (typeof window < "u" && window.crypto && (
|
|
593
|
+
var v;
|
|
594
|
+
if (typeof window < "u" && window.crypto && (v = window.crypto), typeof self < "u" && self.crypto && (v = self.crypto), typeof globalThis < "u" && globalThis.crypto && (v = globalThis.crypto), !v && typeof window < "u" && window.msCrypto && (v = window.msCrypto), !v && typeof vr < "u" && vr.crypto && (v = vr.crypto), !v && typeof ht == "function")
|
|
593
595
|
try {
|
|
594
|
-
|
|
596
|
+
v = Bt;
|
|
595
597
|
} catch {
|
|
596
598
|
}
|
|
597
599
|
var m = function() {
|
|
598
|
-
if (
|
|
599
|
-
if (typeof
|
|
600
|
+
if (v) {
|
|
601
|
+
if (typeof v.getRandomValues == "function")
|
|
600
602
|
try {
|
|
601
|
-
return
|
|
603
|
+
return v.getRandomValues(new Uint32Array(1))[0];
|
|
602
604
|
} catch {
|
|
603
605
|
}
|
|
604
|
-
if (typeof
|
|
606
|
+
if (typeof v.randomBytes == "function")
|
|
605
607
|
try {
|
|
606
|
-
return
|
|
608
|
+
return v.randomBytes(4).readInt32LE();
|
|
607
609
|
} catch {
|
|
608
610
|
}
|
|
609
611
|
}
|
|
@@ -744,16 +746,16 @@ function M() {
|
|
|
744
746
|
* wordArray1.concat(wordArray2);
|
|
745
747
|
*/
|
|
746
748
|
concat: function(i) {
|
|
747
|
-
var o = this.words, d = i.words, b = this.sigBytes,
|
|
749
|
+
var o = this.words, d = i.words, b = this.sigBytes, g = i.sigBytes;
|
|
748
750
|
if (this.clamp(), b % 4)
|
|
749
|
-
for (var y = 0; y <
|
|
751
|
+
for (var y = 0; y < g; y++) {
|
|
750
752
|
var k = d[y >>> 2] >>> 24 - y % 4 * 8 & 255;
|
|
751
753
|
o[b + y >>> 2] |= k << 24 - (b + y) % 4 * 8;
|
|
752
754
|
}
|
|
753
755
|
else
|
|
754
|
-
for (var R = 0; R <
|
|
756
|
+
for (var R = 0; R < g; R += 4)
|
|
755
757
|
o[b + R >>> 2] = d[R >>> 2];
|
|
756
|
-
return this.sigBytes +=
|
|
758
|
+
return this.sigBytes += g, this;
|
|
757
759
|
},
|
|
758
760
|
/**
|
|
759
761
|
* Removes insignificant bits.
|
|
@@ -812,8 +814,8 @@ function M() {
|
|
|
812
814
|
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
813
815
|
*/
|
|
814
816
|
stringify: function(i) {
|
|
815
|
-
for (var o = i.words, d = i.sigBytes, b = [],
|
|
816
|
-
var y = o[
|
|
817
|
+
for (var o = i.words, d = i.sigBytes, b = [], g = 0; g < d; g++) {
|
|
818
|
+
var y = o[g >>> 2] >>> 24 - g % 4 * 8 & 255;
|
|
817
819
|
b.push((y >>> 4).toString(16)), b.push((y & 15).toString(16));
|
|
818
820
|
}
|
|
819
821
|
return b.join("");
|
|
@@ -851,8 +853,8 @@ function M() {
|
|
|
851
853
|
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
852
854
|
*/
|
|
853
855
|
stringify: function(i) {
|
|
854
|
-
for (var o = i.words, d = i.sigBytes, b = [],
|
|
855
|
-
var y = o[
|
|
856
|
+
for (var o = i.words, d = i.sigBytes, b = [], g = 0; g < d; g++) {
|
|
857
|
+
var y = o[g >>> 2] >>> 24 - g % 4 * 8 & 255;
|
|
856
858
|
b.push(String.fromCharCode(y));
|
|
857
859
|
}
|
|
858
860
|
return b.join("");
|
|
@@ -875,7 +877,7 @@ function M() {
|
|
|
875
877
|
d[b >>> 2] |= (i.charCodeAt(b) & 255) << 24 - b % 4 * 8;
|
|
876
878
|
return new E.init(d, o);
|
|
877
879
|
}
|
|
878
|
-
},
|
|
880
|
+
}, p = a.Utf8 = {
|
|
879
881
|
/**
|
|
880
882
|
* Converts a word array to a UTF-8 string.
|
|
881
883
|
*
|
|
@@ -912,7 +914,7 @@ function M() {
|
|
|
912
914
|
parse: function(i) {
|
|
913
915
|
return f.parse(unescape(encodeURIComponent(i)));
|
|
914
916
|
}
|
|
915
|
-
},
|
|
917
|
+
}, l = x.BufferedBlockAlgorithm = n.extend({
|
|
916
918
|
/**
|
|
917
919
|
* Resets this block algorithm's data buffer to its initial state.
|
|
918
920
|
*
|
|
@@ -934,7 +936,7 @@ function M() {
|
|
|
934
936
|
* bufferedBlockAlgorithm._append(wordArray);
|
|
935
937
|
*/
|
|
936
938
|
_append: function(i) {
|
|
937
|
-
typeof i == "string" && (i =
|
|
939
|
+
typeof i == "string" && (i = p.parse(i)), this._data.concat(i), this._nDataBytes += i.sigBytes;
|
|
938
940
|
},
|
|
939
941
|
/**
|
|
940
942
|
* Processes available data blocks.
|
|
@@ -951,9 +953,9 @@ function M() {
|
|
|
951
953
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
952
954
|
*/
|
|
953
955
|
_process: function(i) {
|
|
954
|
-
var o, d = this._data, b = d.words,
|
|
956
|
+
var o, d = this._data, b = d.words, g = d.sigBytes, y = this.blockSize, k = y * 4, R = g / k;
|
|
955
957
|
i ? R = e.ceil(R) : R = e.max((R | 0) - this._minBufferSize, 0);
|
|
956
|
-
var F = R * y, w = e.min(F * 4,
|
|
958
|
+
var F = R * y, w = e.min(F * 4, g);
|
|
957
959
|
if (F) {
|
|
958
960
|
for (var H = 0; H < F; H += y)
|
|
959
961
|
this._doProcessBlock(b, H);
|
|
@@ -976,7 +978,7 @@ function M() {
|
|
|
976
978
|
},
|
|
977
979
|
_minBufferSize: 0
|
|
978
980
|
});
|
|
979
|
-
x.Hasher =
|
|
981
|
+
x.Hasher = l.extend({
|
|
980
982
|
/**
|
|
981
983
|
* Configuration options.
|
|
982
984
|
*/
|
|
@@ -1001,7 +1003,7 @@ function M() {
|
|
|
1001
1003
|
* hasher.reset();
|
|
1002
1004
|
*/
|
|
1003
1005
|
reset: function() {
|
|
1004
|
-
|
|
1006
|
+
l.reset.call(this), this._doReset();
|
|
1005
1007
|
},
|
|
1006
1008
|
/**
|
|
1007
1009
|
* Updates this hasher with a message.
|
|
@@ -1071,11 +1073,11 @@ function M() {
|
|
|
1071
1073
|
*/
|
|
1072
1074
|
_createHmacHelper: function(i) {
|
|
1073
1075
|
return function(o, d) {
|
|
1074
|
-
return new
|
|
1076
|
+
return new D.HMAC.init(i, d).finalize(o);
|
|
1075
1077
|
};
|
|
1076
1078
|
}
|
|
1077
1079
|
});
|
|
1078
|
-
var
|
|
1080
|
+
var D = C.algo = {};
|
|
1079
1081
|
return C;
|
|
1080
1082
|
})(Math);
|
|
1081
1083
|
return t;
|
|
@@ -1084,12 +1086,12 @@ function M() {
|
|
|
1084
1086
|
}
|
|
1085
1087
|
var k0 = { exports: {} }, Et = k0.exports, qr;
|
|
1086
1088
|
function dr() {
|
|
1087
|
-
return qr || (qr = 1, (function(r,
|
|
1089
|
+
return qr || (qr = 1, (function(r, h) {
|
|
1088
1090
|
(function(t, e) {
|
|
1089
1091
|
r.exports = e(M());
|
|
1090
1092
|
})(Et, function(t) {
|
|
1091
1093
|
return (function(e) {
|
|
1092
|
-
var u = t,
|
|
1094
|
+
var u = t, v = u.lib, m = v.Base, B = v.WordArray, C = u.x64 = {};
|
|
1093
1095
|
C.Word = m.extend({
|
|
1094
1096
|
/**
|
|
1095
1097
|
* Initializes a newly created 64-bit word.
|
|
@@ -1314,13 +1316,13 @@ function dr() {
|
|
|
1314
1316
|
}
|
|
1315
1317
|
var S0 = { exports: {} }, At = S0.exports, Tr;
|
|
1316
1318
|
function Ft() {
|
|
1317
|
-
return Tr || (Tr = 1, (function(r,
|
|
1319
|
+
return Tr || (Tr = 1, (function(r, h) {
|
|
1318
1320
|
(function(t, e) {
|
|
1319
1321
|
r.exports = e(M());
|
|
1320
1322
|
})(At, function(t) {
|
|
1321
1323
|
return (function() {
|
|
1322
1324
|
if (typeof ArrayBuffer == "function") {
|
|
1323
|
-
var e = t, u = e.lib,
|
|
1325
|
+
var e = t, u = e.lib, v = u.WordArray, m = v.init, B = v.init = function(C) {
|
|
1324
1326
|
if (C instanceof ArrayBuffer && (C = new Uint8Array(C)), (C instanceof Int8Array || typeof Uint8ClampedArray < "u" && C instanceof Uint8ClampedArray || C instanceof Int16Array || C instanceof Uint16Array || C instanceof Int32Array || C instanceof Uint32Array || C instanceof Float32Array || C instanceof Float64Array) && (C = new Uint8Array(C.buffer, C.byteOffset, C.byteLength)), C instanceof Uint8Array) {
|
|
1325
1327
|
for (var x = C.byteLength, n = [], E = 0; E < x; E++)
|
|
1326
1328
|
n[E >>> 2] |= C[E] << 24 - E % 4 * 8;
|
|
@@ -1328,20 +1330,20 @@ function Ft() {
|
|
|
1328
1330
|
} else
|
|
1329
1331
|
m.apply(this, arguments);
|
|
1330
1332
|
};
|
|
1331
|
-
B.prototype =
|
|
1333
|
+
B.prototype = v;
|
|
1332
1334
|
}
|
|
1333
1335
|
})(), t.lib.WordArray;
|
|
1334
1336
|
});
|
|
1335
1337
|
})(S0)), S0.exports;
|
|
1336
1338
|
}
|
|
1337
|
-
var H0 = { exports: {} },
|
|
1338
|
-
function
|
|
1339
|
-
return Mr || (Mr = 1, (function(r,
|
|
1339
|
+
var H0 = { exports: {} }, gt = H0.exports, Mr;
|
|
1340
|
+
function Dt() {
|
|
1341
|
+
return Mr || (Mr = 1, (function(r, h) {
|
|
1340
1342
|
(function(t, e) {
|
|
1341
1343
|
r.exports = e(M());
|
|
1342
|
-
})(
|
|
1344
|
+
})(gt, function(t) {
|
|
1343
1345
|
return (function() {
|
|
1344
|
-
var e = t, u = e.lib,
|
|
1346
|
+
var e = t, u = e.lib, v = u.WordArray, m = e.enc;
|
|
1345
1347
|
m.Utf16 = m.Utf16BE = {
|
|
1346
1348
|
/**
|
|
1347
1349
|
* Converts a word array to a UTF-16 BE string.
|
|
@@ -1379,7 +1381,7 @@ function gt() {
|
|
|
1379
1381
|
parse: function(C) {
|
|
1380
1382
|
for (var x = C.length, n = [], E = 0; E < x; E++)
|
|
1381
1383
|
n[E >>> 1] |= C.charCodeAt(E) << 16 - E % 2 * 16;
|
|
1382
|
-
return
|
|
1384
|
+
return v.create(n, x * 2);
|
|
1383
1385
|
}
|
|
1384
1386
|
}, m.Utf16LE = {
|
|
1385
1387
|
/**
|
|
@@ -1418,7 +1420,7 @@ function gt() {
|
|
|
1418
1420
|
parse: function(C) {
|
|
1419
1421
|
for (var x = C.length, n = [], E = 0; E < x; E++)
|
|
1420
1422
|
n[E >>> 1] |= B(C.charCodeAt(E) << 16 - E % 2 * 16);
|
|
1421
|
-
return
|
|
1423
|
+
return v.create(n, x * 2);
|
|
1422
1424
|
}
|
|
1423
1425
|
};
|
|
1424
1426
|
function B(C) {
|
|
@@ -1430,12 +1432,12 @@ function gt() {
|
|
|
1430
1432
|
}
|
|
1431
1433
|
var $0 = { exports: {} }, bt = $0.exports, Nr;
|
|
1432
1434
|
function s0() {
|
|
1433
|
-
return Nr || (Nr = 1, (function(r,
|
|
1435
|
+
return Nr || (Nr = 1, (function(r, h) {
|
|
1434
1436
|
(function(t, e) {
|
|
1435
1437
|
r.exports = e(M());
|
|
1436
1438
|
})(bt, function(t) {
|
|
1437
1439
|
return (function() {
|
|
1438
|
-
var e = t, u = e.lib,
|
|
1440
|
+
var e = t, u = e.lib, v = u.WordArray, m = e.enc;
|
|
1439
1441
|
m.Base64 = {
|
|
1440
1442
|
/**
|
|
1441
1443
|
* Converts a word array to a Base64 string.
|
|
@@ -1454,8 +1456,8 @@ function s0() {
|
|
|
1454
1456
|
var x = C.words, n = C.sigBytes, E = this._map;
|
|
1455
1457
|
C.clamp();
|
|
1456
1458
|
for (var a = [], s = 0; s < n; s += 3)
|
|
1457
|
-
for (var f = x[s >>> 2] >>> 24 - s % 4 * 8 & 255,
|
|
1458
|
-
a.push(E.charAt(
|
|
1459
|
+
for (var f = x[s >>> 2] >>> 24 - s % 4 * 8 & 255, p = x[s + 1 >>> 2] >>> 24 - (s + 1) % 4 * 8 & 255, l = x[s + 2 >>> 2] >>> 24 - (s + 2) % 4 * 8 & 255, D = f << 16 | p << 8 | l, i = 0; i < 4 && s + i * 0.75 < n; i++)
|
|
1460
|
+
a.push(E.charAt(D >>> 6 * (3 - i) & 63));
|
|
1459
1461
|
var o = E.charAt(64);
|
|
1460
1462
|
if (o)
|
|
1461
1463
|
for (; a.length % 4; )
|
|
@@ -1494,10 +1496,10 @@ function s0() {
|
|
|
1494
1496
|
function B(C, x, n) {
|
|
1495
1497
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1496
1498
|
if (s % 4) {
|
|
1497
|
-
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2,
|
|
1498
|
-
E[a >>> 2] |=
|
|
1499
|
+
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, p = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, l = f | p;
|
|
1500
|
+
E[a >>> 2] |= l << 24 - a % 4 * 8, a++;
|
|
1499
1501
|
}
|
|
1500
|
-
return
|
|
1502
|
+
return v.create(E, a);
|
|
1501
1503
|
}
|
|
1502
1504
|
})(), t.enc.Base64;
|
|
1503
1505
|
});
|
|
@@ -1505,12 +1507,12 @@ function s0() {
|
|
|
1505
1507
|
}
|
|
1506
1508
|
var R0 = { exports: {} }, mt = R0.exports, Ur;
|
|
1507
1509
|
function _t() {
|
|
1508
|
-
return Ur || (Ur = 1, (function(r,
|
|
1510
|
+
return Ur || (Ur = 1, (function(r, h) {
|
|
1509
1511
|
(function(t, e) {
|
|
1510
1512
|
r.exports = e(M());
|
|
1511
1513
|
})(mt, function(t) {
|
|
1512
1514
|
return (function() {
|
|
1513
|
-
var e = t, u = e.lib,
|
|
1515
|
+
var e = t, u = e.lib, v = u.WordArray, m = e.enc;
|
|
1514
1516
|
m.Base64url = {
|
|
1515
1517
|
/**
|
|
1516
1518
|
* Converts a word array to a Base64url string.
|
|
@@ -1532,7 +1534,7 @@ function _t() {
|
|
|
1532
1534
|
var n = C.words, E = C.sigBytes, a = x ? this._safe_map : this._map;
|
|
1533
1535
|
C.clamp();
|
|
1534
1536
|
for (var s = [], f = 0; f < E; f += 3)
|
|
1535
|
-
for (var
|
|
1537
|
+
for (var p = n[f >>> 2] >>> 24 - f % 4 * 8 & 255, l = n[f + 1 >>> 2] >>> 24 - (f + 1) % 4 * 8 & 255, D = n[f + 2 >>> 2] >>> 24 - (f + 2) % 4 * 8 & 255, i = p << 16 | l << 8 | D, o = 0; o < 4 && f + o * 0.75 < E; o++)
|
|
1536
1538
|
s.push(a.charAt(i >>> 6 * (3 - o) & 63));
|
|
1537
1539
|
var d = a.charAt(64);
|
|
1538
1540
|
if (d)
|
|
@@ -1565,8 +1567,8 @@ function _t() {
|
|
|
1565
1567
|
}
|
|
1566
1568
|
var f = E.charAt(64);
|
|
1567
1569
|
if (f) {
|
|
1568
|
-
var
|
|
1569
|
-
|
|
1570
|
+
var p = C.indexOf(f);
|
|
1571
|
+
p !== -1 && (n = p);
|
|
1570
1572
|
}
|
|
1571
1573
|
return B(C, n, a);
|
|
1572
1574
|
},
|
|
@@ -1576,10 +1578,10 @@ function _t() {
|
|
|
1576
1578
|
function B(C, x, n) {
|
|
1577
1579
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1578
1580
|
if (s % 4) {
|
|
1579
|
-
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2,
|
|
1580
|
-
E[a >>> 2] |=
|
|
1581
|
+
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, p = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, l = f | p;
|
|
1582
|
+
E[a >>> 2] |= l << 24 - a % 4 * 8, a++;
|
|
1581
1583
|
}
|
|
1582
|
-
return
|
|
1584
|
+
return v.create(E, a);
|
|
1583
1585
|
}
|
|
1584
1586
|
})(), t.enc.Base64url;
|
|
1585
1587
|
});
|
|
@@ -1587,15 +1589,15 @@ function _t() {
|
|
|
1587
1589
|
}
|
|
1588
1590
|
var P0 = { exports: {} }, yt = P0.exports, jr;
|
|
1589
1591
|
function c0() {
|
|
1590
|
-
return jr || (jr = 1, (function(r,
|
|
1592
|
+
return jr || (jr = 1, (function(r, h) {
|
|
1591
1593
|
(function(t, e) {
|
|
1592
1594
|
r.exports = e(M());
|
|
1593
1595
|
})(yt, function(t) {
|
|
1594
1596
|
return (function(e) {
|
|
1595
|
-
var u = t,
|
|
1597
|
+
var u = t, v = u.lib, m = v.WordArray, B = v.Hasher, C = u.algo, x = [];
|
|
1596
1598
|
(function() {
|
|
1597
|
-
for (var
|
|
1598
|
-
x[
|
|
1599
|
+
for (var p = 0; p < 64; p++)
|
|
1600
|
+
x[p] = e.abs(e.sin(p + 1)) * 4294967296 | 0;
|
|
1599
1601
|
})();
|
|
1600
1602
|
var n = C.MD5 = B.extend({
|
|
1601
1603
|
_doReset: function() {
|
|
@@ -1606,61 +1608,61 @@ function c0() {
|
|
|
1606
1608
|
271733878
|
|
1607
1609
|
]);
|
|
1608
1610
|
},
|
|
1609
|
-
_doProcessBlock: function(
|
|
1610
|
-
for (var
|
|
1611
|
-
var i =
|
|
1612
|
-
|
|
1611
|
+
_doProcessBlock: function(p, l) {
|
|
1612
|
+
for (var D = 0; D < 16; D++) {
|
|
1613
|
+
var i = l + D, o = p[i];
|
|
1614
|
+
p[i] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360;
|
|
1613
1615
|
}
|
|
1614
|
-
var d = this._hash.words, b =
|
|
1615
|
-
S = E(S, c, A, _, b, 7, x[0]), _ = E(_, S, c, A,
|
|
1616
|
+
var d = this._hash.words, b = p[l + 0], g = p[l + 1], y = p[l + 2], k = p[l + 3], R = p[l + 4], F = p[l + 5], w = p[l + 6], H = p[l + 7], $ = p[l + 8], W = p[l + 9], O = p[l + 10], q = p[l + 11], U = p[l + 12], T = p[l + 13], N = p[l + 14], j = p[l + 15], S = d[0], c = d[1], A = d[2], _ = d[3];
|
|
1617
|
+
S = E(S, c, A, _, b, 7, x[0]), _ = E(_, S, c, A, g, 12, x[1]), A = E(A, _, S, c, y, 17, x[2]), c = E(c, A, _, S, k, 22, x[3]), S = E(S, c, A, _, R, 7, x[4]), _ = E(_, S, c, A, F, 12, x[5]), A = E(A, _, S, c, w, 17, x[6]), c = E(c, A, _, S, H, 22, x[7]), S = E(S, c, A, _, $, 7, x[8]), _ = E(_, S, c, A, W, 12, x[9]), A = E(A, _, S, c, O, 17, x[10]), c = E(c, A, _, S, q, 22, x[11]), S = E(S, c, A, _, U, 7, x[12]), _ = E(_, S, c, A, T, 12, x[13]), A = E(A, _, S, c, N, 17, x[14]), c = E(c, A, _, S, j, 22, x[15]), S = a(S, c, A, _, g, 5, x[16]), _ = a(_, S, c, A, w, 9, x[17]), A = a(A, _, S, c, q, 14, x[18]), c = a(c, A, _, S, b, 20, x[19]), S = a(S, c, A, _, F, 5, x[20]), _ = a(_, S, c, A, O, 9, x[21]), A = a(A, _, S, c, j, 14, x[22]), c = a(c, A, _, S, R, 20, x[23]), S = a(S, c, A, _, W, 5, x[24]), _ = a(_, S, c, A, N, 9, x[25]), A = a(A, _, S, c, k, 14, x[26]), c = a(c, A, _, S, $, 20, x[27]), S = a(S, c, A, _, T, 5, x[28]), _ = a(_, S, c, A, y, 9, x[29]), A = a(A, _, S, c, H, 14, x[30]), c = a(c, A, _, S, U, 20, x[31]), S = s(S, c, A, _, F, 4, x[32]), _ = s(_, S, c, A, $, 11, x[33]), A = s(A, _, S, c, q, 16, x[34]), c = s(c, A, _, S, N, 23, x[35]), S = s(S, c, A, _, g, 4, x[36]), _ = s(_, S, c, A, R, 11, x[37]), A = s(A, _, S, c, H, 16, x[38]), c = s(c, A, _, S, O, 23, x[39]), S = s(S, c, A, _, T, 4, x[40]), _ = s(_, S, c, A, b, 11, x[41]), A = s(A, _, S, c, k, 16, x[42]), c = s(c, A, _, S, w, 23, x[43]), S = s(S, c, A, _, W, 4, x[44]), _ = s(_, S, c, A, U, 11, x[45]), A = s(A, _, S, c, j, 16, x[46]), c = s(c, A, _, S, y, 23, x[47]), S = f(S, c, A, _, b, 6, x[48]), _ = f(_, S, c, A, H, 10, x[49]), A = f(A, _, S, c, N, 15, x[50]), c = f(c, A, _, S, F, 21, x[51]), S = f(S, c, A, _, U, 6, x[52]), _ = f(_, S, c, A, k, 10, x[53]), A = f(A, _, S, c, O, 15, x[54]), c = f(c, A, _, S, g, 21, x[55]), S = f(S, c, A, _, $, 6, x[56]), _ = f(_, S, c, A, j, 10, x[57]), A = f(A, _, S, c, w, 15, x[58]), c = f(c, A, _, S, T, 21, x[59]), S = f(S, c, A, _, R, 6, x[60]), _ = f(_, S, c, A, q, 10, x[61]), A = f(A, _, S, c, y, 15, x[62]), c = f(c, A, _, S, W, 21, x[63]), d[0] = d[0] + S | 0, d[1] = d[1] + c | 0, d[2] = d[2] + A | 0, d[3] = d[3] + _ | 0;
|
|
1616
1618
|
},
|
|
1617
1619
|
_doFinalize: function() {
|
|
1618
|
-
var
|
|
1619
|
-
|
|
1620
|
-
var o = e.floor(
|
|
1621
|
-
|
|
1622
|
-
for (var b = this._hash,
|
|
1623
|
-
var k =
|
|
1624
|
-
|
|
1620
|
+
var p = this._data, l = p.words, D = this._nDataBytes * 8, i = p.sigBytes * 8;
|
|
1621
|
+
l[i >>> 5] |= 128 << 24 - i % 32;
|
|
1622
|
+
var o = e.floor(D / 4294967296), d = D;
|
|
1623
|
+
l[(i + 64 >>> 9 << 4) + 15] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, l[(i + 64 >>> 9 << 4) + 14] = (d << 8 | d >>> 24) & 16711935 | (d << 24 | d >>> 8) & 4278255360, p.sigBytes = (l.length + 1) * 4, this._process();
|
|
1624
|
+
for (var b = this._hash, g = b.words, y = 0; y < 4; y++) {
|
|
1625
|
+
var k = g[y];
|
|
1626
|
+
g[y] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
|
|
1625
1627
|
}
|
|
1626
1628
|
return b;
|
|
1627
1629
|
},
|
|
1628
1630
|
clone: function() {
|
|
1629
|
-
var
|
|
1630
|
-
return
|
|
1631
|
+
var p = B.clone.call(this);
|
|
1632
|
+
return p._hash = this._hash.clone(), p;
|
|
1631
1633
|
}
|
|
1632
1634
|
});
|
|
1633
|
-
function E(
|
|
1634
|
-
var
|
|
1635
|
-
return (
|
|
1635
|
+
function E(p, l, D, i, o, d, b) {
|
|
1636
|
+
var g = p + (l & D | ~l & i) + o + b;
|
|
1637
|
+
return (g << d | g >>> 32 - d) + l;
|
|
1636
1638
|
}
|
|
1637
|
-
function a(
|
|
1638
|
-
var
|
|
1639
|
-
return (
|
|
1639
|
+
function a(p, l, D, i, o, d, b) {
|
|
1640
|
+
var g = p + (l & i | D & ~i) + o + b;
|
|
1641
|
+
return (g << d | g >>> 32 - d) + l;
|
|
1640
1642
|
}
|
|
1641
|
-
function s(
|
|
1642
|
-
var
|
|
1643
|
-
return (
|
|
1643
|
+
function s(p, l, D, i, o, d, b) {
|
|
1644
|
+
var g = p + (l ^ D ^ i) + o + b;
|
|
1645
|
+
return (g << d | g >>> 32 - d) + l;
|
|
1644
1646
|
}
|
|
1645
|
-
function f(
|
|
1646
|
-
var
|
|
1647
|
-
return (
|
|
1647
|
+
function f(p, l, D, i, o, d, b) {
|
|
1648
|
+
var g = p + (D ^ (l | ~i)) + o + b;
|
|
1649
|
+
return (g << d | g >>> 32 - d) + l;
|
|
1648
1650
|
}
|
|
1649
1651
|
u.MD5 = B._createHelper(n), u.HmacMD5 = B._createHmacHelper(n);
|
|
1650
1652
|
})(Math), t.MD5;
|
|
1651
1653
|
});
|
|
1652
1654
|
})(P0)), P0.exports;
|
|
1653
1655
|
}
|
|
1654
|
-
var
|
|
1656
|
+
var W0 = { exports: {} }, wt = W0.exports, Gr;
|
|
1655
1657
|
function ke() {
|
|
1656
|
-
return Gr || (Gr = 1, (function(r,
|
|
1658
|
+
return Gr || (Gr = 1, (function(r, h) {
|
|
1657
1659
|
(function(t, e) {
|
|
1658
1660
|
r.exports = e(M());
|
|
1659
1661
|
})(wt, function(t) {
|
|
1660
1662
|
return (function() {
|
|
1661
|
-
var e = t, u = e.lib,
|
|
1663
|
+
var e = t, u = e.lib, v = u.WordArray, m = u.Hasher, B = e.algo, C = [], x = B.SHA1 = m.extend({
|
|
1662
1664
|
_doReset: function() {
|
|
1663
|
-
this._hash = new
|
|
1665
|
+
this._hash = new v.init([
|
|
1664
1666
|
1732584193,
|
|
1665
1667
|
4023233417,
|
|
1666
1668
|
2562383102,
|
|
@@ -1669,17 +1671,17 @@ function ke() {
|
|
|
1669
1671
|
]);
|
|
1670
1672
|
},
|
|
1671
1673
|
_doProcessBlock: function(n, E) {
|
|
1672
|
-
for (var a = this._hash.words, s = a[0], f = a[1],
|
|
1674
|
+
for (var a = this._hash.words, s = a[0], f = a[1], p = a[2], l = a[3], D = a[4], i = 0; i < 80; i++) {
|
|
1673
1675
|
if (i < 16)
|
|
1674
1676
|
C[i] = n[E + i] | 0;
|
|
1675
1677
|
else {
|
|
1676
1678
|
var o = C[i - 3] ^ C[i - 8] ^ C[i - 14] ^ C[i - 16];
|
|
1677
1679
|
C[i] = o << 1 | o >>> 31;
|
|
1678
1680
|
}
|
|
1679
|
-
var d = (s << 5 | s >>> 27) +
|
|
1680
|
-
i < 20 ? d += (f &
|
|
1681
|
+
var d = (s << 5 | s >>> 27) + D + C[i];
|
|
1682
|
+
i < 20 ? d += (f & p | ~f & l) + 1518500249 : i < 40 ? d += (f ^ p ^ l) + 1859775393 : i < 60 ? d += (f & p | f & l | p & l) - 1894007588 : d += (f ^ p ^ l) - 899497514, D = l, l = p, p = f << 30 | f >>> 2, f = s, s = d;
|
|
1681
1683
|
}
|
|
1682
|
-
a[0] = a[0] + s | 0, a[1] = a[1] + f | 0, a[2] = a[2] +
|
|
1684
|
+
a[0] = a[0] + s | 0, a[1] = a[1] + f | 0, a[2] = a[2] + p | 0, a[3] = a[3] + l | 0, a[4] = a[4] + D | 0;
|
|
1683
1685
|
},
|
|
1684
1686
|
_doFinalize: function() {
|
|
1685
1687
|
var n = this._data, E = n.words, a = this._nDataBytes * 8, s = n.sigBytes * 8;
|
|
@@ -1693,49 +1695,49 @@ function ke() {
|
|
|
1693
1695
|
e.SHA1 = m._createHelper(x), e.HmacSHA1 = m._createHmacHelper(x);
|
|
1694
1696
|
})(), t.SHA1;
|
|
1695
1697
|
});
|
|
1696
|
-
})(
|
|
1698
|
+
})(W0)), W0.exports;
|
|
1697
1699
|
}
|
|
1698
|
-
var
|
|
1700
|
+
var z0 = { exports: {} }, kt = z0.exports, Kr;
|
|
1699
1701
|
function Fr() {
|
|
1700
|
-
return Kr || (Kr = 1, (function(r,
|
|
1702
|
+
return Kr || (Kr = 1, (function(r, h) {
|
|
1701
1703
|
(function(t, e) {
|
|
1702
1704
|
r.exports = e(M());
|
|
1703
1705
|
})(kt, function(t) {
|
|
1704
1706
|
return (function(e) {
|
|
1705
|
-
var u = t,
|
|
1707
|
+
var u = t, v = u.lib, m = v.WordArray, B = v.Hasher, C = u.algo, x = [], n = [];
|
|
1706
1708
|
(function() {
|
|
1707
|
-
function s(
|
|
1708
|
-
for (var i = e.sqrt(
|
|
1709
|
-
if (!(
|
|
1709
|
+
function s(D) {
|
|
1710
|
+
for (var i = e.sqrt(D), o = 2; o <= i; o++)
|
|
1711
|
+
if (!(D % o))
|
|
1710
1712
|
return !1;
|
|
1711
1713
|
return !0;
|
|
1712
1714
|
}
|
|
1713
|
-
function f(
|
|
1714
|
-
return (
|
|
1715
|
+
function f(D) {
|
|
1716
|
+
return (D - (D | 0)) * 4294967296 | 0;
|
|
1715
1717
|
}
|
|
1716
|
-
for (var
|
|
1717
|
-
s(
|
|
1718
|
+
for (var p = 2, l = 0; l < 64; )
|
|
1719
|
+
s(p) && (l < 8 && (x[l] = f(e.pow(p, 1 / 2))), n[l] = f(e.pow(p, 1 / 3)), l++), p++;
|
|
1718
1720
|
})();
|
|
1719
1721
|
var E = [], a = C.SHA256 = B.extend({
|
|
1720
1722
|
_doReset: function() {
|
|
1721
1723
|
this._hash = new m.init(x.slice(0));
|
|
1722
1724
|
},
|
|
1723
1725
|
_doProcessBlock: function(s, f) {
|
|
1724
|
-
for (var
|
|
1726
|
+
for (var p = this._hash.words, l = p[0], D = p[1], i = p[2], o = p[3], d = p[4], b = p[5], g = p[6], y = p[7], k = 0; k < 64; k++) {
|
|
1725
1727
|
if (k < 16)
|
|
1726
1728
|
E[k] = s[f + k] | 0;
|
|
1727
1729
|
else {
|
|
1728
1730
|
var R = E[k - 15], F = (R << 25 | R >>> 7) ^ (R << 14 | R >>> 18) ^ R >>> 3, w = E[k - 2], H = (w << 15 | w >>> 17) ^ (w << 13 | w >>> 19) ^ w >>> 10;
|
|
1729
1731
|
E[k] = F + E[k - 7] + H + E[k - 16];
|
|
1730
1732
|
}
|
|
1731
|
-
var $ = d & b ^ ~d &
|
|
1732
|
-
y =
|
|
1733
|
+
var $ = d & b ^ ~d & g, W = l & D ^ l & i ^ D & i, O = (l << 30 | l >>> 2) ^ (l << 19 | l >>> 13) ^ (l << 10 | l >>> 22), q = (d << 26 | d >>> 6) ^ (d << 21 | d >>> 11) ^ (d << 7 | d >>> 25), U = y + q + $ + n[k] + E[k], T = O + W;
|
|
1734
|
+
y = g, g = b, b = d, d = o + U | 0, o = i, i = D, D = l, l = U + T | 0;
|
|
1733
1735
|
}
|
|
1734
|
-
|
|
1736
|
+
p[0] = p[0] + l | 0, p[1] = p[1] + D | 0, p[2] = p[2] + i | 0, p[3] = p[3] + o | 0, p[4] = p[4] + d | 0, p[5] = p[5] + b | 0, p[6] = p[6] + g | 0, p[7] = p[7] + y | 0;
|
|
1735
1737
|
},
|
|
1736
1738
|
_doFinalize: function() {
|
|
1737
|
-
var s = this._data, f = s.words,
|
|
1738
|
-
return f[
|
|
1739
|
+
var s = this._data, f = s.words, p = this._nDataBytes * 8, l = s.sigBytes * 8;
|
|
1740
|
+
return f[l >>> 5] |= 128 << 24 - l % 32, f[(l + 64 >>> 9 << 4) + 14] = e.floor(p / 4294967296), f[(l + 64 >>> 9 << 4) + 15] = p, s.sigBytes = f.length * 4, this._process(), this._hash;
|
|
1739
1741
|
},
|
|
1740
1742
|
clone: function() {
|
|
1741
1743
|
var s = B.clone.call(this);
|
|
@@ -1745,18 +1747,18 @@ function Fr() {
|
|
|
1745
1747
|
u.SHA256 = B._createHelper(a), u.HmacSHA256 = B._createHmacHelper(a);
|
|
1746
1748
|
})(Math), t.SHA256;
|
|
1747
1749
|
});
|
|
1748
|
-
})(
|
|
1750
|
+
})(z0)), z0.exports;
|
|
1749
1751
|
}
|
|
1750
1752
|
var I0 = { exports: {} }, St = I0.exports, Xr;
|
|
1751
1753
|
function Ht() {
|
|
1752
|
-
return Xr || (Xr = 1, (function(r,
|
|
1754
|
+
return Xr || (Xr = 1, (function(r, h) {
|
|
1753
1755
|
(function(t, e, u) {
|
|
1754
1756
|
r.exports = e(M(), Fr());
|
|
1755
1757
|
})(St, function(t) {
|
|
1756
1758
|
return (function() {
|
|
1757
|
-
var e = t, u = e.lib,
|
|
1759
|
+
var e = t, u = e.lib, v = u.WordArray, m = e.algo, B = m.SHA256, C = m.SHA224 = B.extend({
|
|
1758
1760
|
_doReset: function() {
|
|
1759
|
-
this._hash = new
|
|
1761
|
+
this._hash = new v.init([
|
|
1760
1762
|
3238371032,
|
|
1761
1763
|
914150663,
|
|
1762
1764
|
812702999,
|
|
@@ -1779,12 +1781,12 @@ function Ht() {
|
|
|
1779
1781
|
}
|
|
1780
1782
|
var L0 = { exports: {} }, $t = L0.exports, Zr;
|
|
1781
1783
|
function Se() {
|
|
1782
|
-
return Zr || (Zr = 1, (function(r,
|
|
1784
|
+
return Zr || (Zr = 1, (function(r, h) {
|
|
1783
1785
|
(function(t, e, u) {
|
|
1784
1786
|
r.exports = e(M(), dr());
|
|
1785
1787
|
})($t, function(t) {
|
|
1786
1788
|
return (function() {
|
|
1787
|
-
var e = t, u = e.lib,
|
|
1789
|
+
var e = t, u = e.lib, v = u.Hasher, m = e.x64, B = m.Word, C = m.WordArray, x = e.algo;
|
|
1788
1790
|
function n() {
|
|
1789
1791
|
return B.create.apply(B, arguments);
|
|
1790
1792
|
}
|
|
@@ -1874,7 +1876,7 @@ function Se() {
|
|
|
1874
1876
|
for (var f = 0; f < 80; f++)
|
|
1875
1877
|
a[f] = n();
|
|
1876
1878
|
})();
|
|
1877
|
-
var s = x.SHA512 =
|
|
1879
|
+
var s = x.SHA512 = v.extend({
|
|
1878
1880
|
_doReset: function() {
|
|
1879
1881
|
this._hash = new C.init([
|
|
1880
1882
|
new B.init(1779033703, 4089235720),
|
|
@@ -1887,55 +1889,55 @@ function Se() {
|
|
|
1887
1889
|
new B.init(1541459225, 327033209)
|
|
1888
1890
|
]);
|
|
1889
1891
|
},
|
|
1890
|
-
_doProcessBlock: function(f,
|
|
1891
|
-
for (var
|
|
1892
|
+
_doProcessBlock: function(f, p) {
|
|
1893
|
+
for (var l = this._hash.words, D = l[0], i = l[1], o = l[2], d = l[3], b = l[4], g = l[5], y = l[6], k = l[7], R = D.high, F = D.low, w = i.high, H = i.low, $ = o.high, W = o.low, O = d.high, q = d.low, U = b.high, T = b.low, N = g.high, j = g.low, S = y.high, c = y.low, A = k.high, _ = k.low, z = R, P = F, L = w, I = H, Y = $, Q = W, o0 = O, K = q, G = U, Z = T, r0 = N, f0 = j, D0 = S, p0 = c, lr = A, B0 = _, e0 = 0; e0 < 80; e0++) {
|
|
1892
1894
|
var J, x0, b0 = a[e0];
|
|
1893
1895
|
if (e0 < 16)
|
|
1894
|
-
x0 = b0.high = f[
|
|
1896
|
+
x0 = b0.high = f[p + e0 * 2] | 0, J = b0.low = f[p + e0 * 2 + 1] | 0;
|
|
1895
1897
|
else {
|
|
1896
1898
|
var br = a[e0 - 15], u0 = br.high, C0 = br.low, Ie = (u0 >>> 1 | C0 << 31) ^ (u0 >>> 8 | C0 << 24) ^ u0 >>> 7, mr = (C0 >>> 1 | u0 << 31) ^ (C0 >>> 8 | u0 << 24) ^ (C0 >>> 7 | u0 << 25), _r = a[e0 - 2], d0 = _r.high, E0 = _r.low, Le = (d0 >>> 19 | E0 << 13) ^ (d0 << 3 | E0 >>> 29) ^ d0 >>> 6, yr = (E0 >>> 19 | d0 << 13) ^ (E0 << 3 | d0 >>> 29) ^ (E0 >>> 6 | d0 << 26), wr = a[e0 - 7], Oe = wr.high, qe = wr.low, kr = a[e0 - 16], Te = kr.high, Sr = kr.low;
|
|
1897
1899
|
J = mr + qe, x0 = Ie + Oe + (J >>> 0 < mr >>> 0 ? 1 : 0), J = J + yr, x0 = x0 + Le + (J >>> 0 < yr >>> 0 ? 1 : 0), J = J + Sr, x0 = x0 + Te + (J >>> 0 < Sr >>> 0 ? 1 : 0), b0.high = x0, b0.low = J;
|
|
1898
1900
|
}
|
|
1899
|
-
var Me = G & r0 ^ ~G &
|
|
1900
|
-
lr =
|
|
1901
|
+
var Me = G & r0 ^ ~G & D0, Hr = Z & f0 ^ ~Z & p0, Ne = z & L ^ z & Y ^ L & Y, Ue = P & I ^ P & Q ^ I & Q, je = (z >>> 28 | P << 4) ^ (z << 30 | P >>> 2) ^ (z << 25 | P >>> 7), $r = (P >>> 28 | z << 4) ^ (P << 30 | z >>> 2) ^ (P << 25 | z >>> 7), Ge = (G >>> 14 | Z << 18) ^ (G >>> 18 | Z << 14) ^ (G << 23 | Z >>> 9), Ke = (Z >>> 14 | G << 18) ^ (Z >>> 18 | G << 14) ^ (Z << 23 | G >>> 9), Rr = E[e0], Xe = Rr.high, Pr = Rr.low, V = B0 + Ke, n0 = lr + Ge + (V >>> 0 < B0 >>> 0 ? 1 : 0), V = V + Hr, n0 = n0 + Me + (V >>> 0 < Hr >>> 0 ? 1 : 0), V = V + Pr, n0 = n0 + Xe + (V >>> 0 < Pr >>> 0 ? 1 : 0), V = V + J, n0 = n0 + x0 + (V >>> 0 < J >>> 0 ? 1 : 0), Wr = $r + Ue, Ze = je + Ne + (Wr >>> 0 < $r >>> 0 ? 1 : 0);
|
|
1902
|
+
lr = D0, B0 = p0, D0 = r0, p0 = f0, r0 = G, f0 = Z, Z = K + V | 0, G = o0 + n0 + (Z >>> 0 < K >>> 0 ? 1 : 0) | 0, o0 = Y, K = Q, Y = L, Q = I, L = z, I = P, P = V + Wr | 0, z = n0 + Ze + (P >>> 0 < V >>> 0 ? 1 : 0) | 0;
|
|
1901
1903
|
}
|
|
1902
|
-
F =
|
|
1904
|
+
F = D.low = F + P, D.high = R + z + (F >>> 0 < P >>> 0 ? 1 : 0), H = i.low = H + I, i.high = w + L + (H >>> 0 < I >>> 0 ? 1 : 0), W = o.low = W + Q, o.high = $ + Y + (W >>> 0 < Q >>> 0 ? 1 : 0), q = d.low = q + K, d.high = O + o0 + (q >>> 0 < K >>> 0 ? 1 : 0), T = b.low = T + Z, b.high = U + G + (T >>> 0 < Z >>> 0 ? 1 : 0), j = g.low = j + f0, g.high = N + r0 + (j >>> 0 < f0 >>> 0 ? 1 : 0), c = y.low = c + p0, y.high = S + D0 + (c >>> 0 < p0 >>> 0 ? 1 : 0), _ = k.low = _ + B0, k.high = A + lr + (_ >>> 0 < B0 >>> 0 ? 1 : 0);
|
|
1903
1905
|
},
|
|
1904
1906
|
_doFinalize: function() {
|
|
1905
|
-
var f = this._data,
|
|
1906
|
-
|
|
1907
|
+
var f = this._data, p = f.words, l = this._nDataBytes * 8, D = f.sigBytes * 8;
|
|
1908
|
+
p[D >>> 5] |= 128 << 24 - D % 32, p[(D + 128 >>> 10 << 5) + 30] = Math.floor(l / 4294967296), p[(D + 128 >>> 10 << 5) + 31] = l, f.sigBytes = p.length * 4, this._process();
|
|
1907
1909
|
var i = this._hash.toX32();
|
|
1908
1910
|
return i;
|
|
1909
1911
|
},
|
|
1910
1912
|
clone: function() {
|
|
1911
|
-
var f =
|
|
1913
|
+
var f = v.clone.call(this);
|
|
1912
1914
|
return f._hash = this._hash.clone(), f;
|
|
1913
1915
|
},
|
|
1914
1916
|
blockSize: 1024 / 32
|
|
1915
1917
|
});
|
|
1916
|
-
e.SHA512 =
|
|
1918
|
+
e.SHA512 = v._createHelper(s), e.HmacSHA512 = v._createHmacHelper(s);
|
|
1917
1919
|
})(), t.SHA512;
|
|
1918
1920
|
});
|
|
1919
1921
|
})(L0)), L0.exports;
|
|
1920
1922
|
}
|
|
1921
1923
|
var O0 = { exports: {} }, Rt = O0.exports, Yr;
|
|
1922
1924
|
function Pt() {
|
|
1923
|
-
return Yr || (Yr = 1, (function(r,
|
|
1925
|
+
return Yr || (Yr = 1, (function(r, h) {
|
|
1924
1926
|
(function(t, e, u) {
|
|
1925
1927
|
r.exports = e(M(), dr(), Se());
|
|
1926
1928
|
})(Rt, function(t) {
|
|
1927
1929
|
return (function() {
|
|
1928
|
-
var e = t, u = e.x64,
|
|
1930
|
+
var e = t, u = e.x64, v = u.Word, m = u.WordArray, B = e.algo, C = B.SHA512, x = B.SHA384 = C.extend({
|
|
1929
1931
|
_doReset: function() {
|
|
1930
1932
|
this._hash = new m.init([
|
|
1931
|
-
new
|
|
1932
|
-
new
|
|
1933
|
-
new
|
|
1934
|
-
new
|
|
1935
|
-
new
|
|
1936
|
-
new
|
|
1937
|
-
new
|
|
1938
|
-
new
|
|
1933
|
+
new v.init(3418070365, 3238371032),
|
|
1934
|
+
new v.init(1654270250, 914150663),
|
|
1935
|
+
new v.init(2438529370, 812702999),
|
|
1936
|
+
new v.init(355462360, 4144912697),
|
|
1937
|
+
new v.init(1731405415, 4290775857),
|
|
1938
|
+
new v.init(2394180231, 1750603025),
|
|
1939
|
+
new v.init(3675008525, 1694076839),
|
|
1940
|
+
new v.init(1203062813, 3204075428)
|
|
1939
1941
|
]);
|
|
1940
1942
|
},
|
|
1941
1943
|
_doFinalize: function() {
|
|
@@ -1948,24 +1950,24 @@ function Pt() {
|
|
|
1948
1950
|
});
|
|
1949
1951
|
})(O0)), O0.exports;
|
|
1950
1952
|
}
|
|
1951
|
-
var q0 = { exports: {} },
|
|
1952
|
-
function
|
|
1953
|
-
return Qr || (Qr = 1, (function(r,
|
|
1953
|
+
var q0 = { exports: {} }, Wt = q0.exports, Qr;
|
|
1954
|
+
function zt() {
|
|
1955
|
+
return Qr || (Qr = 1, (function(r, h) {
|
|
1954
1956
|
(function(t, e, u) {
|
|
1955
1957
|
r.exports = e(M(), dr());
|
|
1956
|
-
})(
|
|
1958
|
+
})(Wt, function(t) {
|
|
1957
1959
|
return (function(e) {
|
|
1958
|
-
var u = t,
|
|
1960
|
+
var u = t, v = u.lib, m = v.WordArray, B = v.Hasher, C = u.x64, x = C.Word, n = u.algo, E = [], a = [], s = [];
|
|
1959
1961
|
(function() {
|
|
1960
|
-
for (var
|
|
1961
|
-
E[
|
|
1962
|
-
var o =
|
|
1963
|
-
|
|
1962
|
+
for (var l = 1, D = 0, i = 0; i < 24; i++) {
|
|
1963
|
+
E[l + 5 * D] = (i + 1) * (i + 2) / 2 % 64;
|
|
1964
|
+
var o = D % 5, d = (2 * l + 3 * D) % 5;
|
|
1965
|
+
l = o, D = d;
|
|
1964
1966
|
}
|
|
1965
|
-
for (var
|
|
1966
|
-
for (var
|
|
1967
|
-
a[
|
|
1968
|
-
for (var b = 1,
|
|
1967
|
+
for (var l = 0; l < 5; l++)
|
|
1968
|
+
for (var D = 0; D < 5; D++)
|
|
1969
|
+
a[l + 5 * D] = D + (2 * l + 3 * D) % 5 * 5;
|
|
1970
|
+
for (var b = 1, g = 0; g < 24; g++) {
|
|
1969
1971
|
for (var y = 0, k = 0, R = 0; R < 7; R++) {
|
|
1970
1972
|
if (b & 1) {
|
|
1971
1973
|
var F = (1 << R) - 1;
|
|
@@ -1973,15 +1975,15 @@ function Wt() {
|
|
|
1973
1975
|
}
|
|
1974
1976
|
b & 128 ? b = b << 1 ^ 113 : b <<= 1;
|
|
1975
1977
|
}
|
|
1976
|
-
s[
|
|
1978
|
+
s[g] = x.create(y, k);
|
|
1977
1979
|
}
|
|
1978
1980
|
})();
|
|
1979
1981
|
var f = [];
|
|
1980
1982
|
(function() {
|
|
1981
|
-
for (var
|
|
1982
|
-
f[
|
|
1983
|
+
for (var l = 0; l < 25; l++)
|
|
1984
|
+
f[l] = x.create();
|
|
1983
1985
|
})();
|
|
1984
|
-
var
|
|
1986
|
+
var p = n.SHA3 = B.extend({
|
|
1985
1987
|
/**
|
|
1986
1988
|
* Configuration options.
|
|
1987
1989
|
*
|
|
@@ -1994,16 +1996,16 @@ function Wt() {
|
|
|
1994
1996
|
outputLength: 512
|
|
1995
1997
|
}),
|
|
1996
1998
|
_doReset: function() {
|
|
1997
|
-
for (var
|
|
1998
|
-
|
|
1999
|
+
for (var l = this._state = [], D = 0; D < 25; D++)
|
|
2000
|
+
l[D] = new x.init();
|
|
1999
2001
|
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
|
|
2000
2002
|
},
|
|
2001
|
-
_doProcessBlock: function(
|
|
2003
|
+
_doProcessBlock: function(l, D) {
|
|
2002
2004
|
for (var i = this._state, o = this.blockSize / 2, d = 0; d < o; d++) {
|
|
2003
|
-
var b =
|
|
2004
|
-
b = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360,
|
|
2005
|
+
var b = l[D + 2 * d], g = l[D + 2 * d + 1];
|
|
2006
|
+
b = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, g = (g << 8 | g >>> 24) & 16711935 | (g << 24 | g >>> 8) & 4278255360;
|
|
2005
2007
|
var y = i[d];
|
|
2006
|
-
y.high ^=
|
|
2008
|
+
y.high ^= g, y.low ^= b;
|
|
2007
2009
|
}
|
|
2008
2010
|
for (var k = 0; k < 24; k++) {
|
|
2009
2011
|
for (var R = 0; R < 5; R++) {
|
|
@@ -2015,7 +2017,7 @@ function Wt() {
|
|
|
2015
2017
|
$.high = F, $.low = w;
|
|
2016
2018
|
}
|
|
2017
2019
|
for (var R = 0; R < 5; R++)
|
|
2018
|
-
for (var
|
|
2020
|
+
for (var W = f[(R + 4) % 5], O = f[(R + 1) % 5], q = O.high, U = O.low, F = W.high ^ (q << 1 | U >>> 31), w = W.low ^ (U << 1 | q >>> 31), H = 0; H < 5; H++) {
|
|
2019
2021
|
var y = i[R + 5 * H];
|
|
2020
2022
|
y.high ^= F, y.low ^= w;
|
|
2021
2023
|
}
|
|
@@ -2029,43 +2031,43 @@ function Wt() {
|
|
|
2029
2031
|
A.high = _.high, A.low = _.low;
|
|
2030
2032
|
for (var R = 0; R < 5; R++)
|
|
2031
2033
|
for (var H = 0; H < 5; H++) {
|
|
2032
|
-
var T = R + 5 * H, y = i[T],
|
|
2033
|
-
y.high =
|
|
2034
|
+
var T = R + 5 * H, y = i[T], z = f[T], P = f[(R + 1) % 5 + 5 * H], L = f[(R + 2) % 5 + 5 * H];
|
|
2035
|
+
y.high = z.high ^ ~P.high & L.high, y.low = z.low ^ ~P.low & L.low;
|
|
2034
2036
|
}
|
|
2035
2037
|
var y = i[0], I = s[k];
|
|
2036
2038
|
y.high ^= I.high, y.low ^= I.low;
|
|
2037
2039
|
}
|
|
2038
2040
|
},
|
|
2039
2041
|
_doFinalize: function() {
|
|
2040
|
-
var
|
|
2042
|
+
var l = this._data, D = l.words;
|
|
2041
2043
|
this._nDataBytes * 8;
|
|
2042
|
-
var i =
|
|
2043
|
-
|
|
2044
|
-
for (var d = this._state, b = this.cfg.outputLength / 8,
|
|
2044
|
+
var i = l.sigBytes * 8, o = this.blockSize * 32;
|
|
2045
|
+
D[i >>> 5] |= 1 << 24 - i % 32, D[(e.ceil((i + 1) / o) * o >>> 5) - 1] |= 128, l.sigBytes = D.length * 4, this._process();
|
|
2046
|
+
for (var d = this._state, b = this.cfg.outputLength / 8, g = b / 8, y = [], k = 0; k < g; k++) {
|
|
2045
2047
|
var R = d[k], F = R.high, w = R.low;
|
|
2046
2048
|
F = (F << 8 | F >>> 24) & 16711935 | (F << 24 | F >>> 8) & 4278255360, w = (w << 8 | w >>> 24) & 16711935 | (w << 24 | w >>> 8) & 4278255360, y.push(w), y.push(F);
|
|
2047
2049
|
}
|
|
2048
2050
|
return new m.init(y, b);
|
|
2049
2051
|
},
|
|
2050
2052
|
clone: function() {
|
|
2051
|
-
for (var
|
|
2052
|
-
|
|
2053
|
-
return
|
|
2053
|
+
for (var l = B.clone.call(this), D = l._state = this._state.slice(0), i = 0; i < 25; i++)
|
|
2054
|
+
D[i] = D[i].clone();
|
|
2055
|
+
return l;
|
|
2054
2056
|
}
|
|
2055
2057
|
});
|
|
2056
|
-
u.SHA3 = B._createHelper(
|
|
2058
|
+
u.SHA3 = B._createHelper(p), u.HmacSHA3 = B._createHmacHelper(p);
|
|
2057
2059
|
})(Math), t.SHA3;
|
|
2058
2060
|
});
|
|
2059
2061
|
})(q0)), q0.exports;
|
|
2060
2062
|
}
|
|
2061
2063
|
var T0 = { exports: {} }, It = T0.exports, Vr;
|
|
2062
2064
|
function Lt() {
|
|
2063
|
-
return Vr || (Vr = 1, (function(r,
|
|
2065
|
+
return Vr || (Vr = 1, (function(r, h) {
|
|
2064
2066
|
(function(t, e) {
|
|
2065
2067
|
r.exports = e(M());
|
|
2066
2068
|
})(It, function(t) {
|
|
2067
2069
|
return (function(e) {
|
|
2068
|
-
var u = t,
|
|
2070
|
+
var u = t, v = u.lib, m = v.WordArray, B = v.Hasher, C = u.algo, x = m.create([
|
|
2069
2071
|
0,
|
|
2070
2072
|
1,
|
|
2071
2073
|
2,
|
|
@@ -2389,24 +2391,24 @@ function Lt() {
|
|
|
2389
2391
|
13,
|
|
2390
2392
|
11,
|
|
2391
2393
|
11
|
|
2392
|
-
]), s = m.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), f = m.create([1352829926, 1548603684, 1836072691, 2053994217, 0]),
|
|
2394
|
+
]), s = m.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), f = m.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), p = C.RIPEMD160 = B.extend({
|
|
2393
2395
|
_doReset: function() {
|
|
2394
2396
|
this._hash = m.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2395
2397
|
},
|
|
2396
|
-
_doProcessBlock: function(
|
|
2398
|
+
_doProcessBlock: function(g, y) {
|
|
2397
2399
|
for (var k = 0; k < 16; k++) {
|
|
2398
|
-
var R = y + k, F =
|
|
2399
|
-
|
|
2400
|
+
var R = y + k, F = g[R];
|
|
2401
|
+
g[R] = (F << 8 | F >>> 24) & 16711935 | (F << 24 | F >>> 8) & 4278255360;
|
|
2400
2402
|
}
|
|
2401
|
-
var w = this._hash.words, H = s.words, $ = f.words,
|
|
2402
|
-
A = T = w[0], _ = N = w[1],
|
|
2403
|
+
var w = this._hash.words, H = s.words, $ = f.words, W = x.words, O = n.words, q = E.words, U = a.words, T, N, j, S, c, A, _, z, P, L;
|
|
2404
|
+
A = T = w[0], _ = N = w[1], z = j = w[2], P = S = w[3], L = c = w[4];
|
|
2403
2405
|
for (var I, k = 0; k < 80; k += 1)
|
|
2404
|
-
I = T +
|
|
2405
|
-
I = w[1] + j + P | 0, w[1] = w[2] + S + L | 0, w[2] = w[3] + c + A | 0, w[3] = w[4] + T + _ | 0, w[4] = w[0] + N +
|
|
2406
|
+
I = T + g[y + W[k]] | 0, k < 16 ? I += l(N, j, S) + H[0] : k < 32 ? I += D(N, j, S) + H[1] : k < 48 ? I += i(N, j, S) + H[2] : k < 64 ? I += o(N, j, S) + H[3] : I += d(N, j, S) + H[4], I = I | 0, I = b(I, q[k]), I = I + c | 0, T = c, c = S, S = b(j, 10), j = N, N = I, I = A + g[y + O[k]] | 0, k < 16 ? I += d(_, z, P) + $[0] : k < 32 ? I += o(_, z, P) + $[1] : k < 48 ? I += i(_, z, P) + $[2] : k < 64 ? I += D(_, z, P) + $[3] : I += l(_, z, P) + $[4], I = I | 0, I = b(I, U[k]), I = I + L | 0, A = L, L = P, P = b(z, 10), z = _, _ = I;
|
|
2407
|
+
I = w[1] + j + P | 0, w[1] = w[2] + S + L | 0, w[2] = w[3] + c + A | 0, w[3] = w[4] + T + _ | 0, w[4] = w[0] + N + z | 0, w[0] = I;
|
|
2406
2408
|
},
|
|
2407
2409
|
_doFinalize: function() {
|
|
2408
|
-
var
|
|
2409
|
-
y[R >>> 5] |= 128 << 24 - R % 32, y[(R + 64 >>> 9 << 4) + 14] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360,
|
|
2410
|
+
var g = this._data, y = g.words, k = this._nDataBytes * 8, R = g.sigBytes * 8;
|
|
2411
|
+
y[R >>> 5] |= 128 << 24 - R % 32, y[(R + 64 >>> 9 << 4) + 14] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360, g.sigBytes = (y.length + 1) * 4, this._process();
|
|
2410
2412
|
for (var F = this._hash, w = F.words, H = 0; H < 5; H++) {
|
|
2411
2413
|
var $ = w[H];
|
|
2412
2414
|
w[H] = ($ << 8 | $ >>> 24) & 16711935 | ($ << 24 | $ >>> 8) & 4278255360;
|
|
@@ -2414,42 +2416,42 @@ function Lt() {
|
|
|
2414
2416
|
return F;
|
|
2415
2417
|
},
|
|
2416
2418
|
clone: function() {
|
|
2417
|
-
var
|
|
2418
|
-
return
|
|
2419
|
+
var g = B.clone.call(this);
|
|
2420
|
+
return g._hash = this._hash.clone(), g;
|
|
2419
2421
|
}
|
|
2420
2422
|
});
|
|
2421
|
-
function
|
|
2422
|
-
return
|
|
2423
|
+
function l(g, y, k) {
|
|
2424
|
+
return g ^ y ^ k;
|
|
2423
2425
|
}
|
|
2424
|
-
function g
|
|
2425
|
-
return
|
|
2426
|
+
function D(g, y, k) {
|
|
2427
|
+
return g & y | ~g & k;
|
|
2426
2428
|
}
|
|
2427
|
-
function i(
|
|
2428
|
-
return (
|
|
2429
|
+
function i(g, y, k) {
|
|
2430
|
+
return (g | ~y) ^ k;
|
|
2429
2431
|
}
|
|
2430
|
-
function o(
|
|
2431
|
-
return
|
|
2432
|
+
function o(g, y, k) {
|
|
2433
|
+
return g & k | y & ~k;
|
|
2432
2434
|
}
|
|
2433
|
-
function d(
|
|
2434
|
-
return
|
|
2435
|
+
function d(g, y, k) {
|
|
2436
|
+
return g ^ (y | ~k);
|
|
2435
2437
|
}
|
|
2436
|
-
function b(
|
|
2437
|
-
return
|
|
2438
|
+
function b(g, y) {
|
|
2439
|
+
return g << y | g >>> 32 - y;
|
|
2438
2440
|
}
|
|
2439
|
-
u.RIPEMD160 = B._createHelper(
|
|
2441
|
+
u.RIPEMD160 = B._createHelper(p), u.HmacRIPEMD160 = B._createHmacHelper(p);
|
|
2440
2442
|
})(), t.RIPEMD160;
|
|
2441
2443
|
});
|
|
2442
2444
|
})(T0)), T0.exports;
|
|
2443
2445
|
}
|
|
2444
2446
|
var M0 = { exports: {} }, Ot = M0.exports, Jr;
|
|
2445
|
-
function
|
|
2446
|
-
return Jr || (Jr = 1, (function(r,
|
|
2447
|
+
function gr() {
|
|
2448
|
+
return Jr || (Jr = 1, (function(r, h) {
|
|
2447
2449
|
(function(t, e) {
|
|
2448
2450
|
r.exports = e(M());
|
|
2449
2451
|
})(Ot, function(t) {
|
|
2450
2452
|
(function() {
|
|
2451
|
-
var e = t, u = e.lib,
|
|
2452
|
-
C.HMAC =
|
|
2453
|
+
var e = t, u = e.lib, v = u.Base, m = e.enc, B = m.Utf8, C = e.algo;
|
|
2454
|
+
C.HMAC = v.extend({
|
|
2453
2455
|
/**
|
|
2454
2456
|
* Initializes a newly created HMAC.
|
|
2455
2457
|
*
|
|
@@ -2464,8 +2466,8 @@ function Dr() {
|
|
|
2464
2466
|
x = this._hasher = new x.init(), typeof n == "string" && (n = B.parse(n));
|
|
2465
2467
|
var E = x.blockSize, a = E * 4;
|
|
2466
2468
|
n.sigBytes > a && (n = x.finalize(n)), n.clamp();
|
|
2467
|
-
for (var s = this._oKey = n.clone(), f = this._iKey = n.clone(),
|
|
2468
|
-
|
|
2469
|
+
for (var s = this._oKey = n.clone(), f = this._iKey = n.clone(), p = s.words, l = f.words, D = 0; D < E; D++)
|
|
2470
|
+
p[D] ^= 1549556828, l[D] ^= 909522486;
|
|
2469
2471
|
s.sigBytes = f.sigBytes = a, this.reset();
|
|
2470
2472
|
},
|
|
2471
2473
|
/**
|
|
@@ -2521,12 +2523,12 @@ function Dr() {
|
|
|
2521
2523
|
}
|
|
2522
2524
|
var N0 = { exports: {} }, qt = N0.exports, re;
|
|
2523
2525
|
function Tt() {
|
|
2524
|
-
return re || (re = 1, (function(r,
|
|
2526
|
+
return re || (re = 1, (function(r, h) {
|
|
2525
2527
|
(function(t, e, u) {
|
|
2526
|
-
r.exports = e(M(), Fr(),
|
|
2528
|
+
r.exports = e(M(), Fr(), gr());
|
|
2527
2529
|
})(qt, function(t) {
|
|
2528
2530
|
return (function() {
|
|
2529
|
-
var e = t, u = e.lib,
|
|
2531
|
+
var e = t, u = e.lib, v = u.Base, m = u.WordArray, B = e.algo, C = B.SHA256, x = B.HMAC, n = B.PBKDF2 = v.extend({
|
|
2530
2532
|
/**
|
|
2531
2533
|
* Configuration options.
|
|
2532
2534
|
*
|
|
@@ -2534,7 +2536,7 @@ function Tt() {
|
|
|
2534
2536
|
* @property {Hasher} hasher The hasher to use. Default: SHA256
|
|
2535
2537
|
* @property {number} iterations The number of iterations to perform. Default: 250000
|
|
2536
2538
|
*/
|
|
2537
|
-
cfg:
|
|
2539
|
+
cfg: v.extend({
|
|
2538
2540
|
keySize: 128 / 32,
|
|
2539
2541
|
hasher: C,
|
|
2540
2542
|
iterations: 25e4
|
|
@@ -2566,17 +2568,17 @@ function Tt() {
|
|
|
2566
2568
|
* var key = kdf.compute(password, salt);
|
|
2567
2569
|
*/
|
|
2568
2570
|
compute: function(E, a) {
|
|
2569
|
-
for (var s = this.cfg, f = x.create(s.hasher, E),
|
|
2570
|
-
var b = f.update(a).finalize(
|
|
2571
|
+
for (var s = this.cfg, f = x.create(s.hasher, E), p = m.create(), l = m.create([1]), D = p.words, i = l.words, o = s.keySize, d = s.iterations; D.length < o; ) {
|
|
2572
|
+
var b = f.update(a).finalize(l);
|
|
2571
2573
|
f.reset();
|
|
2572
|
-
for (var
|
|
2574
|
+
for (var g = b.words, y = g.length, k = b, R = 1; R < d; R++) {
|
|
2573
2575
|
k = f.finalize(k), f.reset();
|
|
2574
2576
|
for (var F = k.words, w = 0; w < y; w++)
|
|
2575
|
-
|
|
2577
|
+
g[w] ^= F[w];
|
|
2576
2578
|
}
|
|
2577
|
-
|
|
2579
|
+
p.concat(b), i[0]++;
|
|
2578
2580
|
}
|
|
2579
|
-
return
|
|
2581
|
+
return p.sigBytes = o * 4, p;
|
|
2580
2582
|
}
|
|
2581
2583
|
});
|
|
2582
2584
|
e.PBKDF2 = function(E, a, s) {
|
|
@@ -2588,12 +2590,12 @@ function Tt() {
|
|
|
2588
2590
|
}
|
|
2589
2591
|
var U0 = { exports: {} }, Mt = U0.exports, ee;
|
|
2590
2592
|
function a0() {
|
|
2591
|
-
return ee || (ee = 1, (function(r,
|
|
2593
|
+
return ee || (ee = 1, (function(r, h) {
|
|
2592
2594
|
(function(t, e, u) {
|
|
2593
|
-
r.exports = e(M(), ke(),
|
|
2595
|
+
r.exports = e(M(), ke(), gr());
|
|
2594
2596
|
})(Mt, function(t) {
|
|
2595
2597
|
return (function() {
|
|
2596
|
-
var e = t, u = e.lib,
|
|
2598
|
+
var e = t, u = e.lib, v = u.Base, m = u.WordArray, B = e.algo, C = B.MD5, x = B.EvpKDF = v.extend({
|
|
2597
2599
|
/**
|
|
2598
2600
|
* Configuration options.
|
|
2599
2601
|
*
|
|
@@ -2601,7 +2603,7 @@ function a0() {
|
|
|
2601
2603
|
* @property {Hasher} hasher The hash algorithm to use. Default: MD5
|
|
2602
2604
|
* @property {number} iterations The number of iterations to perform. Default: 1
|
|
2603
2605
|
*/
|
|
2604
|
-
cfg:
|
|
2606
|
+
cfg: v.extend({
|
|
2605
2607
|
keySize: 128 / 32,
|
|
2606
2608
|
hasher: C,
|
|
2607
2609
|
iterations: 1
|
|
@@ -2633,13 +2635,13 @@ function a0() {
|
|
|
2633
2635
|
* var key = kdf.compute(password, salt);
|
|
2634
2636
|
*/
|
|
2635
2637
|
compute: function(n, E) {
|
|
2636
|
-
for (var a, s = this.cfg, f = s.hasher.create(),
|
|
2638
|
+
for (var a, s = this.cfg, f = s.hasher.create(), p = m.create(), l = p.words, D = s.keySize, i = s.iterations; l.length < D; ) {
|
|
2637
2639
|
a && f.update(a), a = f.update(n).finalize(E), f.reset();
|
|
2638
2640
|
for (var o = 1; o < i; o++)
|
|
2639
2641
|
a = f.finalize(a), f.reset();
|
|
2640
|
-
|
|
2642
|
+
p.concat(a);
|
|
2641
2643
|
}
|
|
2642
|
-
return
|
|
2644
|
+
return p.sigBytes = D * 4, p;
|
|
2643
2645
|
}
|
|
2644
2646
|
});
|
|
2645
2647
|
e.EvpKDF = function(n, E, a) {
|
|
@@ -2651,14 +2653,14 @@ function a0() {
|
|
|
2651
2653
|
}
|
|
2652
2654
|
var j0 = { exports: {} }, Nt = j0.exports, te;
|
|
2653
2655
|
function X() {
|
|
2654
|
-
return te || (te = 1, (function(r,
|
|
2656
|
+
return te || (te = 1, (function(r, h) {
|
|
2655
2657
|
(function(t, e, u) {
|
|
2656
2658
|
r.exports = e(M(), a0());
|
|
2657
2659
|
})(Nt, function(t) {
|
|
2658
2660
|
t.lib.Cipher || (function(e) {
|
|
2659
|
-
var u = t,
|
|
2661
|
+
var u = t, v = u.lib, m = v.Base, B = v.WordArray, C = v.BufferedBlockAlgorithm, x = u.enc;
|
|
2660
2662
|
x.Utf8;
|
|
2661
|
-
var n = x.Base64, E = u.algo, a = E.EvpKDF, s =
|
|
2663
|
+
var n = x.Base64, E = u.algo, a = E.EvpKDF, s = v.Cipher = C.extend({
|
|
2662
2664
|
/**
|
|
2663
2665
|
* Configuration options.
|
|
2664
2666
|
*
|
|
@@ -2776,28 +2778,28 @@ function X() {
|
|
|
2776
2778
|
*/
|
|
2777
2779
|
_createHelper: /* @__PURE__ */ (function() {
|
|
2778
2780
|
function F(w) {
|
|
2779
|
-
return typeof w == "string" ? R :
|
|
2781
|
+
return typeof w == "string" ? R : g;
|
|
2780
2782
|
}
|
|
2781
2783
|
return function(w) {
|
|
2782
2784
|
return {
|
|
2783
|
-
encrypt: function(H, $,
|
|
2784
|
-
return F($).encrypt(w, H, $,
|
|
2785
|
+
encrypt: function(H, $, W) {
|
|
2786
|
+
return F($).encrypt(w, H, $, W);
|
|
2785
2787
|
},
|
|
2786
|
-
decrypt: function(H, $,
|
|
2787
|
-
return F($).decrypt(w, H, $,
|
|
2788
|
+
decrypt: function(H, $, W) {
|
|
2789
|
+
return F($).decrypt(w, H, $, W);
|
|
2788
2790
|
}
|
|
2789
2791
|
};
|
|
2790
2792
|
};
|
|
2791
2793
|
})()
|
|
2792
2794
|
});
|
|
2793
|
-
|
|
2795
|
+
v.StreamCipher = s.extend({
|
|
2794
2796
|
_doFinalize: function() {
|
|
2795
2797
|
var F = this._process(!0);
|
|
2796
2798
|
return F;
|
|
2797
2799
|
},
|
|
2798
2800
|
blockSize: 1
|
|
2799
2801
|
});
|
|
2800
|
-
var f = u.mode = {},
|
|
2802
|
+
var f = u.mode = {}, p = v.BlockCipherMode = m.extend({
|
|
2801
2803
|
/**
|
|
2802
2804
|
* Creates this mode for encryption.
|
|
2803
2805
|
*
|
|
@@ -2841,8 +2843,8 @@ function X() {
|
|
|
2841
2843
|
init: function(F, w) {
|
|
2842
2844
|
this._cipher = F, this._iv = w;
|
|
2843
2845
|
}
|
|
2844
|
-
}),
|
|
2845
|
-
var F =
|
|
2846
|
+
}), l = f.CBC = (function() {
|
|
2847
|
+
var F = p.extend();
|
|
2846
2848
|
F.Encryptor = F.extend({
|
|
2847
2849
|
/**
|
|
2848
2850
|
* Processes the data block at offset.
|
|
@@ -2855,8 +2857,8 @@ function X() {
|
|
|
2855
2857
|
* mode.processBlock(data.words, offset);
|
|
2856
2858
|
*/
|
|
2857
2859
|
processBlock: function(H, $) {
|
|
2858
|
-
var
|
|
2859
|
-
w.call(this, H, $, O),
|
|
2860
|
+
var W = this._cipher, O = W.blockSize;
|
|
2861
|
+
w.call(this, H, $, O), W.encryptBlock(H, $), this._prevBlock = H.slice($, $ + O);
|
|
2860
2862
|
}
|
|
2861
2863
|
}), F.Decryptor = F.extend({
|
|
2862
2864
|
/**
|
|
@@ -2870,18 +2872,18 @@ function X() {
|
|
|
2870
2872
|
* mode.processBlock(data.words, offset);
|
|
2871
2873
|
*/
|
|
2872
2874
|
processBlock: function(H, $) {
|
|
2873
|
-
var
|
|
2874
|
-
|
|
2875
|
+
var W = this._cipher, O = W.blockSize, q = H.slice($, $ + O);
|
|
2876
|
+
W.decryptBlock(H, $), w.call(this, H, $, O), this._prevBlock = q;
|
|
2875
2877
|
}
|
|
2876
2878
|
});
|
|
2877
|
-
function w(H, $,
|
|
2879
|
+
function w(H, $, W) {
|
|
2878
2880
|
var O, q = this._iv;
|
|
2879
2881
|
q ? (O = q, this._iv = e) : O = this._prevBlock;
|
|
2880
|
-
for (var U = 0; U <
|
|
2882
|
+
for (var U = 0; U < W; U++)
|
|
2881
2883
|
H[$ + U] ^= O[U];
|
|
2882
2884
|
}
|
|
2883
2885
|
return F;
|
|
2884
|
-
})(),
|
|
2886
|
+
})(), D = u.pad = {}, i = D.Pkcs7 = {
|
|
2885
2887
|
/**
|
|
2886
2888
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
2887
2889
|
*
|
|
@@ -2895,8 +2897,8 @@ function X() {
|
|
|
2895
2897
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
2896
2898
|
*/
|
|
2897
2899
|
pad: function(F, w) {
|
|
2898
|
-
for (var H = w * 4, $ = H - F.sigBytes % H,
|
|
2899
|
-
O.push(
|
|
2900
|
+
for (var H = w * 4, $ = H - F.sigBytes % H, W = $ << 24 | $ << 16 | $ << 8 | $, O = [], q = 0; q < $; q += 4)
|
|
2901
|
+
O.push(W);
|
|
2900
2902
|
var U = B.create(O, $);
|
|
2901
2903
|
F.concat(U);
|
|
2902
2904
|
},
|
|
@@ -2916,7 +2918,7 @@ function X() {
|
|
|
2916
2918
|
F.sigBytes -= w;
|
|
2917
2919
|
}
|
|
2918
2920
|
};
|
|
2919
|
-
|
|
2921
|
+
v.BlockCipher = s.extend({
|
|
2920
2922
|
/**
|
|
2921
2923
|
* Configuration options.
|
|
2922
2924
|
*
|
|
@@ -2924,7 +2926,7 @@ function X() {
|
|
|
2924
2926
|
* @property {Padding} padding The padding strategy to use. Default: Pkcs7
|
|
2925
2927
|
*/
|
|
2926
2928
|
cfg: s.cfg.extend({
|
|
2927
|
-
mode:
|
|
2929
|
+
mode: l,
|
|
2928
2930
|
padding: i
|
|
2929
2931
|
}),
|
|
2930
2932
|
reset: function() {
|
|
@@ -2942,7 +2944,7 @@ function X() {
|
|
|
2942
2944
|
},
|
|
2943
2945
|
blockSize: 128 / 32
|
|
2944
2946
|
});
|
|
2945
|
-
var o =
|
|
2947
|
+
var o = v.CipherParams = m.extend({
|
|
2946
2948
|
/**
|
|
2947
2949
|
* Initializes a newly created cipher params object.
|
|
2948
2950
|
*
|
|
@@ -3018,7 +3020,7 @@ function X() {
|
|
|
3018
3020
|
var w, H = n.parse(F), $ = H.words;
|
|
3019
3021
|
return $[0] == 1398893684 && $[1] == 1701076831 && (w = B.create($.slice(2, 4)), $.splice(0, 4), H.sigBytes -= 16), o.create({ ciphertext: H, salt: w });
|
|
3020
3022
|
}
|
|
3021
|
-
},
|
|
3023
|
+
}, g = v.SerializableCipher = m.extend({
|
|
3022
3024
|
/**
|
|
3023
3025
|
* Configuration options.
|
|
3024
3026
|
*
|
|
@@ -3047,7 +3049,7 @@ function X() {
|
|
|
3047
3049
|
*/
|
|
3048
3050
|
encrypt: function(F, w, H, $) {
|
|
3049
3051
|
$ = this.cfg.extend($);
|
|
3050
|
-
var
|
|
3052
|
+
var W = F.createEncryptor(H, $), O = W.finalize(w), q = W.cfg;
|
|
3051
3053
|
return o.create({
|
|
3052
3054
|
ciphertext: O,
|
|
3053
3055
|
key: H,
|
|
@@ -3078,8 +3080,8 @@ function X() {
|
|
|
3078
3080
|
*/
|
|
3079
3081
|
decrypt: function(F, w, H, $) {
|
|
3080
3082
|
$ = this.cfg.extend($), w = this._parse(w, $.format);
|
|
3081
|
-
var
|
|
3082
|
-
return
|
|
3083
|
+
var W = F.createDecryptor(H, $).finalize(w.ciphertext);
|
|
3084
|
+
return W;
|
|
3083
3085
|
},
|
|
3084
3086
|
/**
|
|
3085
3087
|
* Converts serialized ciphertext to CipherParams,
|
|
@@ -3117,21 +3119,21 @@ function X() {
|
|
|
3117
3119
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
3118
3120
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
3119
3121
|
*/
|
|
3120
|
-
execute: function(F, w, H, $,
|
|
3121
|
-
if ($ || ($ = B.random(64 / 8)),
|
|
3122
|
-
var O = a.create({ keySize: w + H, hasher:
|
|
3122
|
+
execute: function(F, w, H, $, W) {
|
|
3123
|
+
if ($ || ($ = B.random(64 / 8)), W)
|
|
3124
|
+
var O = a.create({ keySize: w + H, hasher: W }).compute(F, $);
|
|
3123
3125
|
else
|
|
3124
3126
|
var O = a.create({ keySize: w + H }).compute(F, $);
|
|
3125
3127
|
var q = B.create(O.words.slice(w), H * 4);
|
|
3126
3128
|
return O.sigBytes = w * 4, o.create({ key: O, iv: q, salt: $ });
|
|
3127
3129
|
}
|
|
3128
|
-
}, R =
|
|
3130
|
+
}, R = v.PasswordBasedCipher = g.extend({
|
|
3129
3131
|
/**
|
|
3130
3132
|
* Configuration options.
|
|
3131
3133
|
*
|
|
3132
3134
|
* @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
|
|
3133
3135
|
*/
|
|
3134
|
-
cfg:
|
|
3136
|
+
cfg: g.cfg.extend({
|
|
3135
3137
|
kdf: k
|
|
3136
3138
|
}),
|
|
3137
3139
|
/**
|
|
@@ -3153,10 +3155,10 @@ function X() {
|
|
|
3153
3155
|
*/
|
|
3154
3156
|
encrypt: function(F, w, H, $) {
|
|
3155
3157
|
$ = this.cfg.extend($);
|
|
3156
|
-
var
|
|
3157
|
-
$.iv =
|
|
3158
|
-
var O =
|
|
3159
|
-
return O.mixIn(
|
|
3158
|
+
var W = $.kdf.execute(H, F.keySize, F.ivSize, $.salt, $.hasher);
|
|
3159
|
+
$.iv = W.iv;
|
|
3160
|
+
var O = g.encrypt.call(this, F, w, W.key, $);
|
|
3161
|
+
return O.mixIn(W), O;
|
|
3160
3162
|
},
|
|
3161
3163
|
/**
|
|
3162
3164
|
* Decrypts serialized ciphertext using a password.
|
|
@@ -3177,9 +3179,9 @@ function X() {
|
|
|
3177
3179
|
*/
|
|
3178
3180
|
decrypt: function(F, w, H, $) {
|
|
3179
3181
|
$ = this.cfg.extend($), w = this._parse(w, $.format);
|
|
3180
|
-
var
|
|
3181
|
-
$.iv =
|
|
3182
|
-
var O =
|
|
3182
|
+
var W = $.kdf.execute(H, F.keySize, F.ivSize, w.salt, $.hasher);
|
|
3183
|
+
$.iv = W.iv;
|
|
3184
|
+
var O = g.decrypt.call(this, F, w, W.key, $);
|
|
3183
3185
|
return O;
|
|
3184
3186
|
}
|
|
3185
3187
|
});
|
|
@@ -3189,28 +3191,28 @@ function X() {
|
|
|
3189
3191
|
}
|
|
3190
3192
|
var G0 = { exports: {} }, Ut = G0.exports, xe;
|
|
3191
3193
|
function jt() {
|
|
3192
|
-
return xe || (xe = 1, (function(r,
|
|
3194
|
+
return xe || (xe = 1, (function(r, h) {
|
|
3193
3195
|
(function(t, e, u) {
|
|
3194
3196
|
r.exports = e(M(), X());
|
|
3195
3197
|
})(Ut, function(t) {
|
|
3196
3198
|
return t.mode.CFB = (function() {
|
|
3197
3199
|
var e = t.lib.BlockCipherMode.extend();
|
|
3198
3200
|
e.Encryptor = e.extend({
|
|
3199
|
-
processBlock: function(
|
|
3201
|
+
processBlock: function(v, m) {
|
|
3200
3202
|
var B = this._cipher, C = B.blockSize;
|
|
3201
|
-
u.call(this,
|
|
3203
|
+
u.call(this, v, m, C, B), this._prevBlock = v.slice(m, m + C);
|
|
3202
3204
|
}
|
|
3203
3205
|
}), e.Decryptor = e.extend({
|
|
3204
|
-
processBlock: function(
|
|
3205
|
-
var B = this._cipher, C = B.blockSize, x =
|
|
3206
|
-
u.call(this,
|
|
3206
|
+
processBlock: function(v, m) {
|
|
3207
|
+
var B = this._cipher, C = B.blockSize, x = v.slice(m, m + C);
|
|
3208
|
+
u.call(this, v, m, C, B), this._prevBlock = x;
|
|
3207
3209
|
}
|
|
3208
3210
|
});
|
|
3209
|
-
function u(
|
|
3211
|
+
function u(v, m, B, C) {
|
|
3210
3212
|
var x, n = this._iv;
|
|
3211
3213
|
n ? (x = n.slice(0), this._iv = void 0) : x = this._prevBlock, C.encryptBlock(x, 0);
|
|
3212
3214
|
for (var E = 0; E < B; E++)
|
|
3213
|
-
|
|
3215
|
+
v[m + E] ^= x[E];
|
|
3214
3216
|
}
|
|
3215
3217
|
return e;
|
|
3216
3218
|
})(), t.mode.CFB;
|
|
@@ -3219,19 +3221,19 @@ function jt() {
|
|
|
3219
3221
|
}
|
|
3220
3222
|
var K0 = { exports: {} }, Gt = K0.exports, ne;
|
|
3221
3223
|
function Kt() {
|
|
3222
|
-
return ne || (ne = 1, (function(r,
|
|
3224
|
+
return ne || (ne = 1, (function(r, h) {
|
|
3223
3225
|
(function(t, e, u) {
|
|
3224
3226
|
r.exports = e(M(), X());
|
|
3225
3227
|
})(Gt, function(t) {
|
|
3226
3228
|
return t.mode.CTR = (function() {
|
|
3227
3229
|
var e = t.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3228
|
-
processBlock: function(
|
|
3230
|
+
processBlock: function(v, m) {
|
|
3229
3231
|
var B = this._cipher, C = B.blockSize, x = this._iv, n = this._counter;
|
|
3230
3232
|
x && (n = this._counter = x.slice(0), this._iv = void 0);
|
|
3231
3233
|
var E = n.slice(0);
|
|
3232
3234
|
B.encryptBlock(E, 0), n[C - 1] = n[C - 1] + 1 | 0;
|
|
3233
3235
|
for (var a = 0; a < C; a++)
|
|
3234
|
-
|
|
3236
|
+
v[m + a] ^= E[a];
|
|
3235
3237
|
}
|
|
3236
3238
|
});
|
|
3237
3239
|
return e.Decryptor = u, e;
|
|
@@ -3241,7 +3243,7 @@ function Kt() {
|
|
|
3241
3243
|
}
|
|
3242
3244
|
var X0 = { exports: {} }, Xt = X0.exports, ae;
|
|
3243
3245
|
function Zt() {
|
|
3244
|
-
return ae || (ae = 1, (function(r,
|
|
3246
|
+
return ae || (ae = 1, (function(r, h) {
|
|
3245
3247
|
(function(t, e, u) {
|
|
3246
3248
|
r.exports = e(M(), X());
|
|
3247
3249
|
})(Xt, function(t) {
|
|
@@ -3255,13 +3257,13 @@ function Zt() {
|
|
|
3255
3257
|
B += 1 << 24;
|
|
3256
3258
|
return B;
|
|
3257
3259
|
}
|
|
3258
|
-
function
|
|
3260
|
+
function v(B) {
|
|
3259
3261
|
return (B[0] = u(B[0])) === 0 && (B[1] = u(B[1])), B;
|
|
3260
3262
|
}
|
|
3261
3263
|
var m = e.Encryptor = e.extend({
|
|
3262
3264
|
processBlock: function(B, C) {
|
|
3263
3265
|
var x = this._cipher, n = x.blockSize, E = this._iv, a = this._counter;
|
|
3264
|
-
E && (a = this._counter = E.slice(0), this._iv = void 0),
|
|
3266
|
+
E && (a = this._counter = E.slice(0), this._iv = void 0), v(a);
|
|
3265
3267
|
var s = a.slice(0);
|
|
3266
3268
|
x.encryptBlock(s, 0);
|
|
3267
3269
|
for (var f = 0; f < n; f++)
|
|
@@ -3275,17 +3277,17 @@ function Zt() {
|
|
|
3275
3277
|
}
|
|
3276
3278
|
var Z0 = { exports: {} }, Yt = Z0.exports, oe;
|
|
3277
3279
|
function Qt() {
|
|
3278
|
-
return oe || (oe = 1, (function(r,
|
|
3280
|
+
return oe || (oe = 1, (function(r, h) {
|
|
3279
3281
|
(function(t, e, u) {
|
|
3280
3282
|
r.exports = e(M(), X());
|
|
3281
3283
|
})(Yt, function(t) {
|
|
3282
3284
|
return t.mode.OFB = (function() {
|
|
3283
3285
|
var e = t.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3284
|
-
processBlock: function(
|
|
3286
|
+
processBlock: function(v, m) {
|
|
3285
3287
|
var B = this._cipher, C = B.blockSize, x = this._iv, n = this._keystream;
|
|
3286
3288
|
x && (n = this._keystream = x.slice(0), this._iv = void 0), B.encryptBlock(n, 0);
|
|
3287
3289
|
for (var E = 0; E < C; E++)
|
|
3288
|
-
|
|
3290
|
+
v[m + E] ^= n[E];
|
|
3289
3291
|
}
|
|
3290
3292
|
});
|
|
3291
3293
|
return e.Decryptor = u, e;
|
|
@@ -3295,19 +3297,19 @@ function Qt() {
|
|
|
3295
3297
|
}
|
|
3296
3298
|
var Y0 = { exports: {} }, Vt = Y0.exports, ie;
|
|
3297
3299
|
function Jt() {
|
|
3298
|
-
return ie || (ie = 1, (function(r,
|
|
3300
|
+
return ie || (ie = 1, (function(r, h) {
|
|
3299
3301
|
(function(t, e, u) {
|
|
3300
3302
|
r.exports = e(M(), X());
|
|
3301
3303
|
})(Vt, function(t) {
|
|
3302
3304
|
return t.mode.ECB = (function() {
|
|
3303
3305
|
var e = t.lib.BlockCipherMode.extend();
|
|
3304
3306
|
return e.Encryptor = e.extend({
|
|
3305
|
-
processBlock: function(u,
|
|
3306
|
-
this._cipher.encryptBlock(u,
|
|
3307
|
+
processBlock: function(u, v) {
|
|
3308
|
+
this._cipher.encryptBlock(u, v);
|
|
3307
3309
|
}
|
|
3308
3310
|
}), e.Decryptor = e.extend({
|
|
3309
|
-
processBlock: function(u,
|
|
3310
|
-
this._cipher.decryptBlock(u,
|
|
3311
|
+
processBlock: function(u, v) {
|
|
3312
|
+
this._cipher.decryptBlock(u, v);
|
|
3311
3313
|
}
|
|
3312
3314
|
}), e;
|
|
3313
3315
|
})(), t.mode.ECB;
|
|
@@ -3316,13 +3318,13 @@ function Jt() {
|
|
|
3316
3318
|
}
|
|
3317
3319
|
var Q0 = { exports: {} }, rx = Q0.exports, se;
|
|
3318
3320
|
function ex() {
|
|
3319
|
-
return se || (se = 1, (function(r,
|
|
3321
|
+
return se || (se = 1, (function(r, h) {
|
|
3320
3322
|
(function(t, e, u) {
|
|
3321
3323
|
r.exports = e(M(), X());
|
|
3322
3324
|
})(rx, function(t) {
|
|
3323
3325
|
return t.pad.AnsiX923 = {
|
|
3324
3326
|
pad: function(e, u) {
|
|
3325
|
-
var
|
|
3327
|
+
var v = e.sigBytes, m = u * 4, B = m - v % m, C = v + B - 1;
|
|
3326
3328
|
e.clamp(), e.words[C >>> 2] |= B << 24 - C % 4 * 8, e.sigBytes += B;
|
|
3327
3329
|
},
|
|
3328
3330
|
unpad: function(e) {
|
|
@@ -3335,13 +3337,13 @@ function ex() {
|
|
|
3335
3337
|
}
|
|
3336
3338
|
var V0 = { exports: {} }, tx = V0.exports, ce;
|
|
3337
3339
|
function xx() {
|
|
3338
|
-
return ce || (ce = 1, (function(r,
|
|
3340
|
+
return ce || (ce = 1, (function(r, h) {
|
|
3339
3341
|
(function(t, e, u) {
|
|
3340
3342
|
r.exports = e(M(), X());
|
|
3341
3343
|
})(tx, function(t) {
|
|
3342
3344
|
return t.pad.Iso10126 = {
|
|
3343
3345
|
pad: function(e, u) {
|
|
3344
|
-
var
|
|
3346
|
+
var v = u * 4, m = v - e.sigBytes % v;
|
|
3345
3347
|
e.concat(t.lib.WordArray.random(m - 1)).concat(t.lib.WordArray.create([m << 24], 1));
|
|
3346
3348
|
},
|
|
3347
3349
|
unpad: function(e) {
|
|
@@ -3354,7 +3356,7 @@ function xx() {
|
|
|
3354
3356
|
}
|
|
3355
3357
|
var J0 = { exports: {} }, nx = J0.exports, fe;
|
|
3356
3358
|
function ax() {
|
|
3357
|
-
return fe || (fe = 1, (function(r,
|
|
3359
|
+
return fe || (fe = 1, (function(r, h) {
|
|
3358
3360
|
(function(t, e, u) {
|
|
3359
3361
|
r.exports = e(M(), X());
|
|
3360
3362
|
})(nx, function(t) {
|
|
@@ -3371,19 +3373,19 @@ function ax() {
|
|
|
3371
3373
|
}
|
|
3372
3374
|
var rr = { exports: {} }, ox = rr.exports, ue;
|
|
3373
3375
|
function ix() {
|
|
3374
|
-
return ue || (ue = 1, (function(r,
|
|
3376
|
+
return ue || (ue = 1, (function(r, h) {
|
|
3375
3377
|
(function(t, e, u) {
|
|
3376
3378
|
r.exports = e(M(), X());
|
|
3377
3379
|
})(ox, function(t) {
|
|
3378
3380
|
return t.pad.ZeroPadding = {
|
|
3379
3381
|
pad: function(e, u) {
|
|
3380
|
-
var
|
|
3381
|
-
e.clamp(), e.sigBytes +=
|
|
3382
|
+
var v = u * 4;
|
|
3383
|
+
e.clamp(), e.sigBytes += v - (e.sigBytes % v || v);
|
|
3382
3384
|
},
|
|
3383
3385
|
unpad: function(e) {
|
|
3384
|
-
for (var u = e.words,
|
|
3385
|
-
if (u[
|
|
3386
|
-
e.sigBytes =
|
|
3386
|
+
for (var u = e.words, v = e.sigBytes - 1, v = e.sigBytes - 1; v >= 0; v--)
|
|
3387
|
+
if (u[v >>> 2] >>> 24 - v % 4 * 8 & 255) {
|
|
3388
|
+
e.sigBytes = v + 1;
|
|
3387
3389
|
break;
|
|
3388
3390
|
}
|
|
3389
3391
|
}
|
|
@@ -3393,7 +3395,7 @@ function ix() {
|
|
|
3393
3395
|
}
|
|
3394
3396
|
var er = { exports: {} }, sx = er.exports, de;
|
|
3395
3397
|
function cx() {
|
|
3396
|
-
return de || (de = 1, (function(r,
|
|
3398
|
+
return de || (de = 1, (function(r, h) {
|
|
3397
3399
|
(function(t, e, u) {
|
|
3398
3400
|
r.exports = e(M(), X());
|
|
3399
3401
|
})(sx, function(t) {
|
|
@@ -3408,12 +3410,12 @@ function cx() {
|
|
|
3408
3410
|
}
|
|
3409
3411
|
var tr = { exports: {} }, fx = tr.exports, le;
|
|
3410
3412
|
function ux() {
|
|
3411
|
-
return le || (le = 1, (function(r,
|
|
3413
|
+
return le || (le = 1, (function(r, h) {
|
|
3412
3414
|
(function(t, e, u) {
|
|
3413
3415
|
r.exports = e(M(), X());
|
|
3414
3416
|
})(fx, function(t) {
|
|
3415
3417
|
return (function(e) {
|
|
3416
|
-
var u = t,
|
|
3418
|
+
var u = t, v = u.lib, m = v.CipherParams, B = u.enc, C = B.Hex, x = u.format;
|
|
3417
3419
|
x.Hex = {
|
|
3418
3420
|
/**
|
|
3419
3421
|
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
@@ -3455,37 +3457,37 @@ function ux() {
|
|
|
3455
3457
|
}
|
|
3456
3458
|
var xr = { exports: {} }, dx = xr.exports, he;
|
|
3457
3459
|
function lx() {
|
|
3458
|
-
return he || (he = 1, (function(r,
|
|
3460
|
+
return he || (he = 1, (function(r, h) {
|
|
3459
3461
|
(function(t, e, u) {
|
|
3460
3462
|
r.exports = e(M(), s0(), c0(), a0(), X());
|
|
3461
3463
|
})(dx, function(t) {
|
|
3462
3464
|
return (function() {
|
|
3463
|
-
var e = t, u = e.lib,
|
|
3465
|
+
var e = t, u = e.lib, v = u.BlockCipher, m = e.algo, B = [], C = [], x = [], n = [], E = [], a = [], s = [], f = [], p = [], l = [];
|
|
3464
3466
|
(function() {
|
|
3465
3467
|
for (var o = [], d = 0; d < 256; d++)
|
|
3466
3468
|
d < 128 ? o[d] = d << 1 : o[d] = d << 1 ^ 283;
|
|
3467
|
-
for (var b = 0,
|
|
3468
|
-
var y =
|
|
3469
|
+
for (var b = 0, g = 0, d = 0; d < 256; d++) {
|
|
3470
|
+
var y = g ^ g << 1 ^ g << 2 ^ g << 3 ^ g << 4;
|
|
3469
3471
|
y = y >>> 8 ^ y & 255 ^ 99, B[b] = y, C[y] = b;
|
|
3470
3472
|
var k = o[b], R = o[k], F = o[R], w = o[y] * 257 ^ y * 16843008;
|
|
3471
3473
|
x[b] = w << 24 | w >>> 8, n[b] = w << 16 | w >>> 16, E[b] = w << 8 | w >>> 24, a[b] = w;
|
|
3472
3474
|
var w = F * 16843009 ^ R * 65537 ^ k * 257 ^ b * 16843008;
|
|
3473
|
-
s[y] = w << 24 | w >>> 8, f[y] = w << 16 | w >>> 16,
|
|
3475
|
+
s[y] = w << 24 | w >>> 8, f[y] = w << 16 | w >>> 16, p[y] = w << 8 | w >>> 24, l[y] = w, b ? (b = k ^ o[o[o[F ^ k]]], g ^= o[o[g]]) : b = g = 1;
|
|
3474
3476
|
}
|
|
3475
3477
|
})();
|
|
3476
|
-
var
|
|
3478
|
+
var D = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], i = m.AES = v.extend({
|
|
3477
3479
|
_doReset: function() {
|
|
3478
3480
|
var o;
|
|
3479
3481
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
3480
|
-
for (var d = this._keyPriorReset = this._key, b = d.words,
|
|
3481
|
-
F <
|
|
3482
|
+
for (var d = this._keyPriorReset = this._key, b = d.words, g = d.sigBytes / 4, y = this._nRounds = g + 6, k = (y + 1) * 4, R = this._keySchedule = [], F = 0; F < k; F++)
|
|
3483
|
+
F < g ? R[F] = b[F] : (o = R[F - 1], F % g ? g > 6 && F % g == 4 && (o = B[o >>> 24] << 24 | B[o >>> 16 & 255] << 16 | B[o >>> 8 & 255] << 8 | B[o & 255]) : (o = o << 8 | o >>> 24, o = B[o >>> 24] << 24 | B[o >>> 16 & 255] << 16 | B[o >>> 8 & 255] << 8 | B[o & 255], o ^= D[F / g | 0] << 24), R[F] = R[F - g] ^ o);
|
|
3482
3484
|
for (var w = this._invKeySchedule = [], H = 0; H < k; H++) {
|
|
3483
3485
|
var F = k - H;
|
|
3484
3486
|
if (H % 4)
|
|
3485
3487
|
var o = R[F];
|
|
3486
3488
|
else
|
|
3487
3489
|
var o = R[F - 4];
|
|
3488
|
-
H < 4 || F <= 4 ? w[H] = o : w[H] = s[B[o >>> 24]] ^ f[B[o >>> 16 & 255]] ^
|
|
3490
|
+
H < 4 || F <= 4 ? w[H] = o : w[H] = s[B[o >>> 24]] ^ f[B[o >>> 16 & 255]] ^ p[B[o >>> 8 & 255]] ^ l[B[o & 255]];
|
|
3489
3491
|
}
|
|
3490
3492
|
}
|
|
3491
3493
|
},
|
|
@@ -3494,33 +3496,33 @@ function lx() {
|
|
|
3494
3496
|
},
|
|
3495
3497
|
decryptBlock: function(o, d) {
|
|
3496
3498
|
var b = o[d + 1];
|
|
3497
|
-
o[d + 1] = o[d + 3], o[d + 3] = b, this._doCryptBlock(o, d, this._invKeySchedule, s, f,
|
|
3499
|
+
o[d + 1] = o[d + 3], o[d + 3] = b, this._doCryptBlock(o, d, this._invKeySchedule, s, f, p, l, C);
|
|
3498
3500
|
var b = o[d + 1];
|
|
3499
3501
|
o[d + 1] = o[d + 3], o[d + 3] = b;
|
|
3500
3502
|
},
|
|
3501
|
-
_doCryptBlock: function(o, d, b,
|
|
3502
|
-
for (var w = this._nRounds, H = o[d] ^ b[0], $ = o[d + 1] ^ b[1],
|
|
3503
|
-
var T =
|
|
3504
|
-
H = T, $ = N,
|
|
3503
|
+
_doCryptBlock: function(o, d, b, g, y, k, R, F) {
|
|
3504
|
+
for (var w = this._nRounds, H = o[d] ^ b[0], $ = o[d + 1] ^ b[1], W = o[d + 2] ^ b[2], O = o[d + 3] ^ b[3], q = 4, U = 1; U < w; U++) {
|
|
3505
|
+
var T = g[H >>> 24] ^ y[$ >>> 16 & 255] ^ k[W >>> 8 & 255] ^ R[O & 255] ^ b[q++], N = g[$ >>> 24] ^ y[W >>> 16 & 255] ^ k[O >>> 8 & 255] ^ R[H & 255] ^ b[q++], j = g[W >>> 24] ^ y[O >>> 16 & 255] ^ k[H >>> 8 & 255] ^ R[$ & 255] ^ b[q++], S = g[O >>> 24] ^ y[H >>> 16 & 255] ^ k[$ >>> 8 & 255] ^ R[W & 255] ^ b[q++];
|
|
3506
|
+
H = T, $ = N, W = j, O = S;
|
|
3505
3507
|
}
|
|
3506
|
-
var T = (F[H >>> 24] << 24 | F[$ >>> 16 & 255] << 16 | F[
|
|
3508
|
+
var T = (F[H >>> 24] << 24 | F[$ >>> 16 & 255] << 16 | F[W >>> 8 & 255] << 8 | F[O & 255]) ^ b[q++], N = (F[$ >>> 24] << 24 | F[W >>> 16 & 255] << 16 | F[O >>> 8 & 255] << 8 | F[H & 255]) ^ b[q++], j = (F[W >>> 24] << 24 | F[O >>> 16 & 255] << 16 | F[H >>> 8 & 255] << 8 | F[$ & 255]) ^ b[q++], S = (F[O >>> 24] << 24 | F[H >>> 16 & 255] << 16 | F[$ >>> 8 & 255] << 8 | F[W & 255]) ^ b[q++];
|
|
3507
3509
|
o[d] = T, o[d + 1] = N, o[d + 2] = j, o[d + 3] = S;
|
|
3508
3510
|
},
|
|
3509
3511
|
keySize: 256 / 32
|
|
3510
3512
|
});
|
|
3511
|
-
e.AES =
|
|
3513
|
+
e.AES = v._createHelper(i);
|
|
3512
3514
|
})(), t.AES;
|
|
3513
3515
|
});
|
|
3514
3516
|
})(xr)), xr.exports;
|
|
3515
3517
|
}
|
|
3516
3518
|
var nr = { exports: {} }, hx = nr.exports, ve;
|
|
3517
3519
|
function vx() {
|
|
3518
|
-
return ve || (ve = 1, (function(r,
|
|
3520
|
+
return ve || (ve = 1, (function(r, h) {
|
|
3519
3521
|
(function(t, e, u) {
|
|
3520
3522
|
r.exports = e(M(), s0(), c0(), a0(), X());
|
|
3521
3523
|
})(hx, function(t) {
|
|
3522
3524
|
return (function() {
|
|
3523
|
-
var e = t, u = e.lib,
|
|
3525
|
+
var e = t, u = e.lib, v = u.WordArray, m = u.BlockCipher, B = e.algo, C = [
|
|
3524
3526
|
57,
|
|
3525
3527
|
49,
|
|
3526
3528
|
41,
|
|
@@ -4166,12 +4168,12 @@ function vx() {
|
|
|
4166
4168
|
2147483679
|
|
4167
4169
|
], s = B.DES = m.extend({
|
|
4168
4170
|
_doReset: function() {
|
|
4169
|
-
for (var
|
|
4171
|
+
for (var D = this._key, i = D.words, o = [], d = 0; d < 56; d++) {
|
|
4170
4172
|
var b = C[d] - 1;
|
|
4171
4173
|
o[d] = i[b >>> 5] >>> 31 - b % 32 & 1;
|
|
4172
4174
|
}
|
|
4173
|
-
for (var
|
|
4174
|
-
for (var k =
|
|
4175
|
+
for (var g = this._subKeys = [], y = 0; y < 16; y++) {
|
|
4176
|
+
for (var k = g[y] = [], R = n[y], d = 0; d < 24; d++)
|
|
4175
4177
|
k[d / 6 | 0] |= o[(x[d] - 1 + R) % 28] << 31 - d % 6, k[4 + (d / 6 | 0)] |= o[28 + (x[d + 24] - 1 + R) % 28] << 31 - d % 6;
|
|
4176
4178
|
k[0] = k[0] << 1 | k[0] >>> 31;
|
|
4177
4179
|
for (var d = 1; d < 7; d++)
|
|
@@ -4179,76 +4181,76 @@ function vx() {
|
|
|
4179
4181
|
k[7] = k[7] << 5 | k[7] >>> 27;
|
|
4180
4182
|
}
|
|
4181
4183
|
for (var F = this._invSubKeys = [], d = 0; d < 16; d++)
|
|
4182
|
-
F[d] =
|
|
4184
|
+
F[d] = g[15 - d];
|
|
4183
4185
|
},
|
|
4184
|
-
encryptBlock: function(
|
|
4185
|
-
this._doCryptBlock(
|
|
4186
|
+
encryptBlock: function(D, i) {
|
|
4187
|
+
this._doCryptBlock(D, i, this._subKeys);
|
|
4186
4188
|
},
|
|
4187
|
-
decryptBlock: function(
|
|
4188
|
-
this._doCryptBlock(
|
|
4189
|
+
decryptBlock: function(D, i) {
|
|
4190
|
+
this._doCryptBlock(D, i, this._invSubKeys);
|
|
4189
4191
|
},
|
|
4190
|
-
_doCryptBlock: function(
|
|
4191
|
-
this._lBlock =
|
|
4192
|
+
_doCryptBlock: function(D, i, o) {
|
|
4193
|
+
this._lBlock = D[i], this._rBlock = D[i + 1], f.call(this, 4, 252645135), f.call(this, 16, 65535), p.call(this, 2, 858993459), p.call(this, 8, 16711935), f.call(this, 1, 1431655765);
|
|
4192
4194
|
for (var d = 0; d < 16; d++) {
|
|
4193
|
-
for (var b = o[d],
|
|
4195
|
+
for (var b = o[d], g = this._lBlock, y = this._rBlock, k = 0, R = 0; R < 8; R++)
|
|
4194
4196
|
k |= E[R][((y ^ b[R]) & a[R]) >>> 0];
|
|
4195
|
-
this._lBlock = y, this._rBlock =
|
|
4197
|
+
this._lBlock = y, this._rBlock = g ^ k;
|
|
4196
4198
|
}
|
|
4197
4199
|
var F = this._lBlock;
|
|
4198
|
-
this._lBlock = this._rBlock, this._rBlock = F, f.call(this, 1, 1431655765),
|
|
4200
|
+
this._lBlock = this._rBlock, this._rBlock = F, f.call(this, 1, 1431655765), p.call(this, 8, 16711935), p.call(this, 2, 858993459), f.call(this, 16, 65535), f.call(this, 4, 252645135), D[i] = this._lBlock, D[i + 1] = this._rBlock;
|
|
4199
4201
|
},
|
|
4200
4202
|
keySize: 64 / 32,
|
|
4201
4203
|
ivSize: 64 / 32,
|
|
4202
4204
|
blockSize: 64 / 32
|
|
4203
4205
|
});
|
|
4204
|
-
function f(
|
|
4205
|
-
var o = (this._lBlock >>>
|
|
4206
|
-
this._rBlock ^= o, this._lBlock ^= o <<
|
|
4206
|
+
function f(D, i) {
|
|
4207
|
+
var o = (this._lBlock >>> D ^ this._rBlock) & i;
|
|
4208
|
+
this._rBlock ^= o, this._lBlock ^= o << D;
|
|
4207
4209
|
}
|
|
4208
|
-
function
|
|
4209
|
-
var o = (this._rBlock >>>
|
|
4210
|
-
this._lBlock ^= o, this._rBlock ^= o <<
|
|
4210
|
+
function p(D, i) {
|
|
4211
|
+
var o = (this._rBlock >>> D ^ this._lBlock) & i;
|
|
4212
|
+
this._lBlock ^= o, this._rBlock ^= o << D;
|
|
4211
4213
|
}
|
|
4212
4214
|
e.DES = m._createHelper(s);
|
|
4213
|
-
var
|
|
4215
|
+
var l = B.TripleDES = m.extend({
|
|
4214
4216
|
_doReset: function() {
|
|
4215
|
-
var
|
|
4217
|
+
var D = this._key, i = D.words;
|
|
4216
4218
|
if (i.length !== 2 && i.length !== 4 && i.length < 6)
|
|
4217
4219
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
4218
4220
|
var o = i.slice(0, 2), d = i.length < 4 ? i.slice(0, 2) : i.slice(2, 4), b = i.length < 6 ? i.slice(0, 2) : i.slice(4, 6);
|
|
4219
|
-
this._des1 = s.createEncryptor(
|
|
4221
|
+
this._des1 = s.createEncryptor(v.create(o)), this._des2 = s.createEncryptor(v.create(d)), this._des3 = s.createEncryptor(v.create(b));
|
|
4220
4222
|
},
|
|
4221
|
-
encryptBlock: function(
|
|
4222
|
-
this._des1.encryptBlock(
|
|
4223
|
+
encryptBlock: function(D, i) {
|
|
4224
|
+
this._des1.encryptBlock(D, i), this._des2.decryptBlock(D, i), this._des3.encryptBlock(D, i);
|
|
4223
4225
|
},
|
|
4224
|
-
decryptBlock: function(
|
|
4225
|
-
this._des3.decryptBlock(
|
|
4226
|
+
decryptBlock: function(D, i) {
|
|
4227
|
+
this._des3.decryptBlock(D, i), this._des2.encryptBlock(D, i), this._des1.decryptBlock(D, i);
|
|
4226
4228
|
},
|
|
4227
4229
|
keySize: 192 / 32,
|
|
4228
4230
|
ivSize: 64 / 32,
|
|
4229
4231
|
blockSize: 64 / 32
|
|
4230
4232
|
});
|
|
4231
|
-
e.TripleDES = m._createHelper(
|
|
4233
|
+
e.TripleDES = m._createHelper(l);
|
|
4232
4234
|
})(), t.TripleDES;
|
|
4233
4235
|
});
|
|
4234
4236
|
})(nr)), nr.exports;
|
|
4235
4237
|
}
|
|
4236
4238
|
var ar = { exports: {} }, px = ar.exports, pe;
|
|
4237
4239
|
function Bx() {
|
|
4238
|
-
return pe || (pe = 1, (function(r,
|
|
4240
|
+
return pe || (pe = 1, (function(r, h) {
|
|
4239
4241
|
(function(t, e, u) {
|
|
4240
4242
|
r.exports = e(M(), s0(), c0(), a0(), X());
|
|
4241
4243
|
})(px, function(t) {
|
|
4242
4244
|
return (function() {
|
|
4243
|
-
var e = t, u = e.lib,
|
|
4245
|
+
var e = t, u = e.lib, v = u.StreamCipher, m = e.algo, B = m.RC4 = v.extend({
|
|
4244
4246
|
_doReset: function() {
|
|
4245
4247
|
for (var n = this._key, E = n.words, a = n.sigBytes, s = this._S = [], f = 0; f < 256; f++)
|
|
4246
4248
|
s[f] = f;
|
|
4247
|
-
for (var f = 0,
|
|
4248
|
-
var
|
|
4249
|
-
|
|
4249
|
+
for (var f = 0, p = 0; f < 256; f++) {
|
|
4250
|
+
var l = f % a, D = E[l >>> 2] >>> 24 - l % 4 * 8 & 255;
|
|
4251
|
+
p = (p + s[f] + D) % 256;
|
|
4250
4252
|
var i = s[f];
|
|
4251
|
-
s[f] = s[
|
|
4253
|
+
s[f] = s[p], s[p] = i;
|
|
4252
4254
|
}
|
|
4253
4255
|
this._i = this._j = 0;
|
|
4254
4256
|
},
|
|
@@ -4261,12 +4263,12 @@ function Bx() {
|
|
|
4261
4263
|
function C() {
|
|
4262
4264
|
for (var n = this._S, E = this._i, a = this._j, s = 0, f = 0; f < 4; f++) {
|
|
4263
4265
|
E = (E + 1) % 256, a = (a + n[E]) % 256;
|
|
4264
|
-
var
|
|
4265
|
-
n[E] = n[a], n[a] =
|
|
4266
|
+
var p = n[E];
|
|
4267
|
+
n[E] = n[a], n[a] = p, s |= n[(n[E] + n[a]) % 256] << 24 - f * 8;
|
|
4266
4268
|
}
|
|
4267
4269
|
return this._i = E, this._j = a, s;
|
|
4268
4270
|
}
|
|
4269
|
-
e.RC4 =
|
|
4271
|
+
e.RC4 = v._createHelper(B);
|
|
4270
4272
|
var x = m.RC4Drop = B.extend({
|
|
4271
4273
|
/**
|
|
4272
4274
|
* Configuration options.
|
|
@@ -4282,23 +4284,23 @@ function Bx() {
|
|
|
4282
4284
|
C.call(this);
|
|
4283
4285
|
}
|
|
4284
4286
|
});
|
|
4285
|
-
e.RC4Drop =
|
|
4287
|
+
e.RC4Drop = v._createHelper(x);
|
|
4286
4288
|
})(), t.RC4;
|
|
4287
4289
|
});
|
|
4288
4290
|
})(ar)), ar.exports;
|
|
4289
4291
|
}
|
|
4290
4292
|
var or = { exports: {} }, Cx = or.exports, Be;
|
|
4291
4293
|
function Ex() {
|
|
4292
|
-
return Be || (Be = 1, (function(r,
|
|
4294
|
+
return Be || (Be = 1, (function(r, h) {
|
|
4293
4295
|
(function(t, e, u) {
|
|
4294
4296
|
r.exports = e(M(), s0(), c0(), a0(), X());
|
|
4295
4297
|
})(Cx, function(t) {
|
|
4296
4298
|
return (function() {
|
|
4297
|
-
var e = t, u = e.lib,
|
|
4299
|
+
var e = t, u = e.lib, v = u.StreamCipher, m = e.algo, B = [], C = [], x = [], n = m.Rabbit = v.extend({
|
|
4298
4300
|
_doReset: function() {
|
|
4299
4301
|
for (var a = this._key.words, s = this.cfg.iv, f = 0; f < 4; f++)
|
|
4300
4302
|
a[f] = (a[f] << 8 | a[f] >>> 24) & 16711935 | (a[f] << 24 | a[f] >>> 8) & 4278255360;
|
|
4301
|
-
var
|
|
4303
|
+
var p = this._X = [
|
|
4302
4304
|
a[0],
|
|
4303
4305
|
a[3] << 16 | a[2] >>> 16,
|
|
4304
4306
|
a[1],
|
|
@@ -4307,7 +4309,7 @@ function Ex() {
|
|
|
4307
4309
|
a[1] << 16 | a[0] >>> 16,
|
|
4308
4310
|
a[3],
|
|
4309
4311
|
a[2] << 16 | a[1] >>> 16
|
|
4310
|
-
],
|
|
4312
|
+
], l = this._C = [
|
|
4311
4313
|
a[2] << 16 | a[2] >>> 16,
|
|
4312
4314
|
a[0] & 4294901760 | a[1] & 65535,
|
|
4313
4315
|
a[3] << 16 | a[3] >>> 16,
|
|
@@ -4321,10 +4323,10 @@ function Ex() {
|
|
|
4321
4323
|
for (var f = 0; f < 4; f++)
|
|
4322
4324
|
E.call(this);
|
|
4323
4325
|
for (var f = 0; f < 8; f++)
|
|
4324
|
-
|
|
4326
|
+
l[f] ^= p[f + 4 & 7];
|
|
4325
4327
|
if (s) {
|
|
4326
|
-
var
|
|
4327
|
-
|
|
4328
|
+
var D = s.words, i = D[0], o = D[1], d = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, b = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, g = d >>> 16 | b & 4294901760, y = b << 16 | d & 65535;
|
|
4329
|
+
l[0] ^= d, l[1] ^= g, l[2] ^= b, l[3] ^= y, l[4] ^= d, l[5] ^= g, l[6] ^= b, l[7] ^= y;
|
|
4328
4330
|
for (var f = 0; f < 4; f++)
|
|
4329
4331
|
E.call(this);
|
|
4330
4332
|
}
|
|
@@ -4332,8 +4334,8 @@ function Ex() {
|
|
|
4332
4334
|
_doProcessBlock: function(a, s) {
|
|
4333
4335
|
var f = this._X;
|
|
4334
4336
|
E.call(this), B[0] = f[0] ^ f[5] >>> 16 ^ f[3] << 16, B[1] = f[2] ^ f[7] >>> 16 ^ f[5] << 16, B[2] = f[4] ^ f[1] >>> 16 ^ f[7] << 16, B[3] = f[6] ^ f[3] >>> 16 ^ f[1] << 16;
|
|
4335
|
-
for (var
|
|
4336
|
-
B[
|
|
4337
|
+
for (var p = 0; p < 4; p++)
|
|
4338
|
+
B[p] = (B[p] << 8 | B[p] >>> 24) & 16711935 | (B[p] << 24 | B[p] >>> 8) & 4278255360, a[s + p] ^= B[p];
|
|
4337
4339
|
},
|
|
4338
4340
|
blockSize: 128 / 32,
|
|
4339
4341
|
ivSize: 64 / 32
|
|
@@ -4343,24 +4345,24 @@ function Ex() {
|
|
|
4343
4345
|
C[f] = s[f];
|
|
4344
4346
|
s[0] = s[0] + 1295307597 + this._b | 0, s[1] = s[1] + 3545052371 + (s[0] >>> 0 < C[0] >>> 0 ? 1 : 0) | 0, s[2] = s[2] + 886263092 + (s[1] >>> 0 < C[1] >>> 0 ? 1 : 0) | 0, s[3] = s[3] + 1295307597 + (s[2] >>> 0 < C[2] >>> 0 ? 1 : 0) | 0, s[4] = s[4] + 3545052371 + (s[3] >>> 0 < C[3] >>> 0 ? 1 : 0) | 0, s[5] = s[5] + 886263092 + (s[4] >>> 0 < C[4] >>> 0 ? 1 : 0) | 0, s[6] = s[6] + 1295307597 + (s[5] >>> 0 < C[5] >>> 0 ? 1 : 0) | 0, s[7] = s[7] + 3545052371 + (s[6] >>> 0 < C[6] >>> 0 ? 1 : 0) | 0, this._b = s[7] >>> 0 < C[7] >>> 0 ? 1 : 0;
|
|
4345
4347
|
for (var f = 0; f < 8; f++) {
|
|
4346
|
-
var
|
|
4348
|
+
var p = a[f] + s[f], l = p & 65535, D = p >>> 16, i = ((l * l >>> 17) + l * D >>> 15) + D * D, o = ((p & 4294901760) * p | 0) + ((p & 65535) * p | 0);
|
|
4347
4349
|
x[f] = i ^ o;
|
|
4348
4350
|
}
|
|
4349
4351
|
a[0] = x[0] + (x[7] << 16 | x[7] >>> 16) + (x[6] << 16 | x[6] >>> 16) | 0, a[1] = x[1] + (x[0] << 8 | x[0] >>> 24) + x[7] | 0, a[2] = x[2] + (x[1] << 16 | x[1] >>> 16) + (x[0] << 16 | x[0] >>> 16) | 0, a[3] = x[3] + (x[2] << 8 | x[2] >>> 24) + x[1] | 0, a[4] = x[4] + (x[3] << 16 | x[3] >>> 16) + (x[2] << 16 | x[2] >>> 16) | 0, a[5] = x[5] + (x[4] << 8 | x[4] >>> 24) + x[3] | 0, a[6] = x[6] + (x[5] << 16 | x[5] >>> 16) + (x[4] << 16 | x[4] >>> 16) | 0, a[7] = x[7] + (x[6] << 8 | x[6] >>> 24) + x[5] | 0;
|
|
4350
4352
|
}
|
|
4351
|
-
e.Rabbit =
|
|
4353
|
+
e.Rabbit = v._createHelper(n);
|
|
4352
4354
|
})(), t.Rabbit;
|
|
4353
4355
|
});
|
|
4354
4356
|
})(or)), or.exports;
|
|
4355
4357
|
}
|
|
4356
4358
|
var ir = { exports: {} }, Ax = ir.exports, Ce;
|
|
4357
4359
|
function Fx() {
|
|
4358
|
-
return Ce || (Ce = 1, (function(r,
|
|
4360
|
+
return Ce || (Ce = 1, (function(r, h) {
|
|
4359
4361
|
(function(t, e, u) {
|
|
4360
4362
|
r.exports = e(M(), s0(), c0(), a0(), X());
|
|
4361
4363
|
})(Ax, function(t) {
|
|
4362
4364
|
return (function() {
|
|
4363
|
-
var e = t, u = e.lib,
|
|
4365
|
+
var e = t, u = e.lib, v = u.StreamCipher, m = e.algo, B = [], C = [], x = [], n = m.RabbitLegacy = v.extend({
|
|
4364
4366
|
_doReset: function() {
|
|
4365
4367
|
var a = this._key.words, s = this.cfg.iv, f = this._X = [
|
|
4366
4368
|
a[0],
|
|
@@ -4371,7 +4373,7 @@ function Fx() {
|
|
|
4371
4373
|
a[1] << 16 | a[0] >>> 16,
|
|
4372
4374
|
a[3],
|
|
4373
4375
|
a[2] << 16 | a[1] >>> 16
|
|
4374
|
-
],
|
|
4376
|
+
], p = this._C = [
|
|
4375
4377
|
a[2] << 16 | a[2] >>> 16,
|
|
4376
4378
|
a[0] & 4294901760 | a[1] & 65535,
|
|
4377
4379
|
a[3] << 16 | a[3] >>> 16,
|
|
@@ -4382,22 +4384,22 @@ function Fx() {
|
|
|
4382
4384
|
a[3] & 4294901760 | a[0] & 65535
|
|
4383
4385
|
];
|
|
4384
4386
|
this._b = 0;
|
|
4385
|
-
for (var
|
|
4387
|
+
for (var l = 0; l < 4; l++)
|
|
4386
4388
|
E.call(this);
|
|
4387
|
-
for (var
|
|
4388
|
-
|
|
4389
|
+
for (var l = 0; l < 8; l++)
|
|
4390
|
+
p[l] ^= f[l + 4 & 7];
|
|
4389
4391
|
if (s) {
|
|
4390
|
-
var
|
|
4391
|
-
|
|
4392
|
-
for (var
|
|
4392
|
+
var D = s.words, i = D[0], o = D[1], d = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, b = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, g = d >>> 16 | b & 4294901760, y = b << 16 | d & 65535;
|
|
4393
|
+
p[0] ^= d, p[1] ^= g, p[2] ^= b, p[3] ^= y, p[4] ^= d, p[5] ^= g, p[6] ^= b, p[7] ^= y;
|
|
4394
|
+
for (var l = 0; l < 4; l++)
|
|
4393
4395
|
E.call(this);
|
|
4394
4396
|
}
|
|
4395
4397
|
},
|
|
4396
4398
|
_doProcessBlock: function(a, s) {
|
|
4397
4399
|
var f = this._X;
|
|
4398
4400
|
E.call(this), B[0] = f[0] ^ f[5] >>> 16 ^ f[3] << 16, B[1] = f[2] ^ f[7] >>> 16 ^ f[5] << 16, B[2] = f[4] ^ f[1] >>> 16 ^ f[7] << 16, B[3] = f[6] ^ f[3] >>> 16 ^ f[1] << 16;
|
|
4399
|
-
for (var
|
|
4400
|
-
B[
|
|
4401
|
+
for (var p = 0; p < 4; p++)
|
|
4402
|
+
B[p] = (B[p] << 8 | B[p] >>> 24) & 16711935 | (B[p] << 24 | B[p] >>> 8) & 4278255360, a[s + p] ^= B[p];
|
|
4401
4403
|
},
|
|
4402
4404
|
blockSize: 128 / 32,
|
|
4403
4405
|
ivSize: 64 / 32
|
|
@@ -4407,24 +4409,24 @@ function Fx() {
|
|
|
4407
4409
|
C[f] = s[f];
|
|
4408
4410
|
s[0] = s[0] + 1295307597 + this._b | 0, s[1] = s[1] + 3545052371 + (s[0] >>> 0 < C[0] >>> 0 ? 1 : 0) | 0, s[2] = s[2] + 886263092 + (s[1] >>> 0 < C[1] >>> 0 ? 1 : 0) | 0, s[3] = s[3] + 1295307597 + (s[2] >>> 0 < C[2] >>> 0 ? 1 : 0) | 0, s[4] = s[4] + 3545052371 + (s[3] >>> 0 < C[3] >>> 0 ? 1 : 0) | 0, s[5] = s[5] + 886263092 + (s[4] >>> 0 < C[4] >>> 0 ? 1 : 0) | 0, s[6] = s[6] + 1295307597 + (s[5] >>> 0 < C[5] >>> 0 ? 1 : 0) | 0, s[7] = s[7] + 3545052371 + (s[6] >>> 0 < C[6] >>> 0 ? 1 : 0) | 0, this._b = s[7] >>> 0 < C[7] >>> 0 ? 1 : 0;
|
|
4409
4411
|
for (var f = 0; f < 8; f++) {
|
|
4410
|
-
var
|
|
4412
|
+
var p = a[f] + s[f], l = p & 65535, D = p >>> 16, i = ((l * l >>> 17) + l * D >>> 15) + D * D, o = ((p & 4294901760) * p | 0) + ((p & 65535) * p | 0);
|
|
4411
4413
|
x[f] = i ^ o;
|
|
4412
4414
|
}
|
|
4413
4415
|
a[0] = x[0] + (x[7] << 16 | x[7] >>> 16) + (x[6] << 16 | x[6] >>> 16) | 0, a[1] = x[1] + (x[0] << 8 | x[0] >>> 24) + x[7] | 0, a[2] = x[2] + (x[1] << 16 | x[1] >>> 16) + (x[0] << 16 | x[0] >>> 16) | 0, a[3] = x[3] + (x[2] << 8 | x[2] >>> 24) + x[1] | 0, a[4] = x[4] + (x[3] << 16 | x[3] >>> 16) + (x[2] << 16 | x[2] >>> 16) | 0, a[5] = x[5] + (x[4] << 8 | x[4] >>> 24) + x[3] | 0, a[6] = x[6] + (x[5] << 16 | x[5] >>> 16) + (x[4] << 16 | x[4] >>> 16) | 0, a[7] = x[7] + (x[6] << 8 | x[6] >>> 24) + x[5] | 0;
|
|
4414
4416
|
}
|
|
4415
|
-
e.RabbitLegacy =
|
|
4417
|
+
e.RabbitLegacy = v._createHelper(n);
|
|
4416
4418
|
})(), t.RabbitLegacy;
|
|
4417
4419
|
});
|
|
4418
4420
|
})(ir)), ir.exports;
|
|
4419
4421
|
}
|
|
4420
|
-
var sr = { exports: {} },
|
|
4421
|
-
function
|
|
4422
|
-
return Ee || (Ee = 1, (function(r,
|
|
4422
|
+
var sr = { exports: {} }, gx = sr.exports, Ee;
|
|
4423
|
+
function Dx() {
|
|
4424
|
+
return Ee || (Ee = 1, (function(r, h) {
|
|
4423
4425
|
(function(t, e, u) {
|
|
4424
4426
|
r.exports = e(M(), s0(), c0(), a0(), X());
|
|
4425
|
-
})(
|
|
4427
|
+
})(gx, function(t) {
|
|
4426
4428
|
return (function() {
|
|
4427
|
-
var e = t, u = e.lib,
|
|
4429
|
+
var e = t, u = e.lib, v = u.BlockCipher, m = e.algo;
|
|
4428
4430
|
const B = 16, C = [
|
|
4429
4431
|
608135816,
|
|
4430
4432
|
2242054355,
|
|
@@ -5482,68 +5484,68 @@ function gx() {
|
|
|
5482
5484
|
pbox: [],
|
|
5483
5485
|
sbox: []
|
|
5484
5486
|
};
|
|
5485
|
-
function E(
|
|
5486
|
-
let i =
|
|
5487
|
-
return
|
|
5487
|
+
function E(l, D) {
|
|
5488
|
+
let i = D >> 24 & 255, o = D >> 16 & 255, d = D >> 8 & 255, b = D & 255, g = l.sbox[0][i] + l.sbox[1][o];
|
|
5489
|
+
return g = g ^ l.sbox[2][d], g = g + l.sbox[3][b], g;
|
|
5488
5490
|
}
|
|
5489
|
-
function a(
|
|
5490
|
-
let o =
|
|
5491
|
-
for (let
|
|
5492
|
-
o = o ^
|
|
5493
|
-
return b = o, o = d, d = b, d = d ^
|
|
5491
|
+
function a(l, D, i) {
|
|
5492
|
+
let o = D, d = i, b;
|
|
5493
|
+
for (let g = 0; g < B; ++g)
|
|
5494
|
+
o = o ^ l.pbox[g], d = E(l, o) ^ d, b = o, o = d, d = b;
|
|
5495
|
+
return b = o, o = d, d = b, d = d ^ l.pbox[B], o = o ^ l.pbox[B + 1], { left: o, right: d };
|
|
5494
5496
|
}
|
|
5495
|
-
function s(
|
|
5496
|
-
let o =
|
|
5497
|
-
for (let
|
|
5498
|
-
o = o ^
|
|
5499
|
-
return b = o, o = d, d = b, d = d ^
|
|
5497
|
+
function s(l, D, i) {
|
|
5498
|
+
let o = D, d = i, b;
|
|
5499
|
+
for (let g = B + 1; g > 1; --g)
|
|
5500
|
+
o = o ^ l.pbox[g], d = E(l, o) ^ d, b = o, o = d, d = b;
|
|
5501
|
+
return b = o, o = d, d = b, d = d ^ l.pbox[1], o = o ^ l.pbox[0], { left: o, right: d };
|
|
5500
5502
|
}
|
|
5501
|
-
function f(
|
|
5503
|
+
function f(l, D, i) {
|
|
5502
5504
|
for (let y = 0; y < 4; y++) {
|
|
5503
|
-
|
|
5505
|
+
l.sbox[y] = [];
|
|
5504
5506
|
for (let k = 0; k < 256; k++)
|
|
5505
|
-
|
|
5507
|
+
l.sbox[y][k] = x[y][k];
|
|
5506
5508
|
}
|
|
5507
5509
|
let o = 0;
|
|
5508
5510
|
for (let y = 0; y < B + 2; y++)
|
|
5509
|
-
|
|
5510
|
-
let d = 0, b = 0,
|
|
5511
|
+
l.pbox[y] = C[y] ^ D[o], o++, o >= i && (o = 0);
|
|
5512
|
+
let d = 0, b = 0, g = 0;
|
|
5511
5513
|
for (let y = 0; y < B + 2; y += 2)
|
|
5512
|
-
|
|
5514
|
+
g = a(l, d, b), d = g.left, b = g.right, l.pbox[y] = d, l.pbox[y + 1] = b;
|
|
5513
5515
|
for (let y = 0; y < 4; y++)
|
|
5514
5516
|
for (let k = 0; k < 256; k += 2)
|
|
5515
|
-
|
|
5517
|
+
g = a(l, d, b), d = g.left, b = g.right, l.sbox[y][k] = d, l.sbox[y][k + 1] = b;
|
|
5516
5518
|
return !0;
|
|
5517
5519
|
}
|
|
5518
|
-
var
|
|
5520
|
+
var p = m.Blowfish = v.extend({
|
|
5519
5521
|
_doReset: function() {
|
|
5520
5522
|
if (this._keyPriorReset !== this._key) {
|
|
5521
|
-
var
|
|
5522
|
-
f(n,
|
|
5523
|
+
var l = this._keyPriorReset = this._key, D = l.words, i = l.sigBytes / 4;
|
|
5524
|
+
f(n, D, i);
|
|
5523
5525
|
}
|
|
5524
5526
|
},
|
|
5525
|
-
encryptBlock: function(
|
|
5526
|
-
var i = a(n,
|
|
5527
|
-
|
|
5527
|
+
encryptBlock: function(l, D) {
|
|
5528
|
+
var i = a(n, l[D], l[D + 1]);
|
|
5529
|
+
l[D] = i.left, l[D + 1] = i.right;
|
|
5528
5530
|
},
|
|
5529
|
-
decryptBlock: function(
|
|
5530
|
-
var i = s(n,
|
|
5531
|
-
|
|
5531
|
+
decryptBlock: function(l, D) {
|
|
5532
|
+
var i = s(n, l[D], l[D + 1]);
|
|
5533
|
+
l[D] = i.left, l[D + 1] = i.right;
|
|
5532
5534
|
},
|
|
5533
5535
|
blockSize: 64 / 32,
|
|
5534
5536
|
keySize: 128 / 32,
|
|
5535
5537
|
ivSize: 64 / 32
|
|
5536
5538
|
});
|
|
5537
|
-
e.Blowfish =
|
|
5539
|
+
e.Blowfish = v._createHelper(p);
|
|
5538
5540
|
})(), t.Blowfish;
|
|
5539
5541
|
});
|
|
5540
5542
|
})(sr)), sr.exports;
|
|
5541
5543
|
}
|
|
5542
5544
|
var bx = y0.exports, Ae;
|
|
5543
5545
|
function mx() {
|
|
5544
|
-
return Ae || (Ae = 1, (function(r,
|
|
5546
|
+
return Ae || (Ae = 1, (function(r, h) {
|
|
5545
5547
|
(function(t, e, u) {
|
|
5546
|
-
r.exports = e(M(), dr(), Ft(),
|
|
5548
|
+
r.exports = e(M(), dr(), Ft(), Dt(), s0(), _t(), c0(), ke(), Fr(), Ht(), Se(), Pt(), zt(), Lt(), gr(), Tt(), a0(), X(), jt(), Kt(), Zt(), Qt(), Jt(), ex(), xx(), ax(), ix(), cx(), ux(), lx(), vx(), Bx(), Ex(), Fx(), Dx());
|
|
5547
5549
|
})(bx, function(t) {
|
|
5548
5550
|
return t;
|
|
5549
5551
|
});
|
|
@@ -5564,43 +5566,43 @@ function yx() {
|
|
|
5564
5566
|
};
|
|
5565
5567
|
}
|
|
5566
5568
|
function wx(r) {
|
|
5567
|
-
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.
|
|
5569
|
+
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.156`;
|
|
5568
5570
|
}
|
|
5569
|
-
function kx(r,
|
|
5571
|
+
function kx(r, h) {
|
|
5570
5572
|
const t = wx(r);
|
|
5571
|
-
return new Worker(t, { type: "module", ...
|
|
5573
|
+
return new Worker(t, { type: "module", ...h });
|
|
5572
5574
|
}
|
|
5573
|
-
const
|
|
5575
|
+
const Dr = () => {
|
|
5574
5576
|
try {
|
|
5575
5577
|
if (globalThis.__DEBUG_RENDER__ === !0 || typeof localStorage < "u" && localStorage.getItem("DEBUG_RENDER") === "1") return !0;
|
|
5576
5578
|
} catch {
|
|
5577
5579
|
}
|
|
5578
5580
|
return !1;
|
|
5579
5581
|
}, m0 = (...r) => {
|
|
5580
|
-
|
|
5582
|
+
Dr();
|
|
5581
5583
|
}, Fe = (...r) => {
|
|
5582
|
-
|
|
5583
|
-
},
|
|
5584
|
+
Dr();
|
|
5585
|
+
}, ge = /* @__PURE__ */ new Map(), Cr = /* @__PURE__ */ new Map();
|
|
5584
5586
|
let Sx = 0;
|
|
5585
5587
|
function Hx(r) {
|
|
5586
|
-
const
|
|
5587
|
-
if (
|
|
5588
|
+
const h = ge.get(r);
|
|
5589
|
+
if (h) return h;
|
|
5588
5590
|
const t = kx("./deform.worker.ts");
|
|
5589
5591
|
try {
|
|
5590
|
-
t.postMessage({ type: "SET_DEBUG", debugRender:
|
|
5592
|
+
t.postMessage({ type: "SET_DEBUG", debugRender: Dr() });
|
|
5591
5593
|
} catch {
|
|
5592
5594
|
}
|
|
5593
5595
|
t.onmessage = (u) => {
|
|
5594
|
-
const { id:
|
|
5595
|
-
m0(`[renderService] deform worker 响应 id=${
|
|
5596
|
+
const { id: v, imageBitmap: m, error: B, duration: C } = u.data ?? {}, x = C ? ` worker耗时=${Math.round(C)}ms` : "";
|
|
5597
|
+
m0(`[renderService] deform worker 响应 id=${v}${x}`, {
|
|
5596
5598
|
hasImageBitmap: !!m,
|
|
5597
5599
|
width: m?.width,
|
|
5598
5600
|
height: m?.height,
|
|
5599
5601
|
error: B
|
|
5600
5602
|
});
|
|
5601
|
-
const n = Cr.get(
|
|
5603
|
+
const n = Cr.get(v);
|
|
5602
5604
|
if (n) {
|
|
5603
|
-
if (Cr.delete(
|
|
5605
|
+
if (Cr.delete(v), B) {
|
|
5604
5606
|
n.reject(new Error(B));
|
|
5605
5607
|
return;
|
|
5606
5608
|
}
|
|
@@ -5627,7 +5629,7 @@ function Hx(r) {
|
|
|
5627
5629
|
e() || Fe("⚠️ [workerManager] 等待后 License Token 仍未设置", { faceId: r });
|
|
5628
5630
|
}, 200), setTimeout(() => {
|
|
5629
5631
|
e() || Fe("⚠️ [workerManager] 第二次等待后 License Token 仍未设置", { faceId: r });
|
|
5630
|
-
}, 500)),
|
|
5632
|
+
}, 500)), ge.set(r, t), t;
|
|
5631
5633
|
}
|
|
5632
5634
|
function $x(r) {
|
|
5633
5635
|
return {
|
|
@@ -5635,10 +5637,10 @@ function $x(r) {
|
|
|
5635
5637
|
type: r.type,
|
|
5636
5638
|
blendMode: r.blendMode,
|
|
5637
5639
|
transform: Array.isArray(r.transform) ? [...r.transform] : [],
|
|
5638
|
-
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((
|
|
5639
|
-
x:
|
|
5640
|
-
y:
|
|
5641
|
-
type:
|
|
5640
|
+
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((h) => ({
|
|
5641
|
+
x: h.x,
|
|
5642
|
+
y: h.y,
|
|
5643
|
+
type: h.type
|
|
5642
5644
|
})) : [],
|
|
5643
5645
|
bounds: r.bounds ? {
|
|
5644
5646
|
width: r.bounds.width,
|
|
@@ -5661,30 +5663,30 @@ function $x(r) {
|
|
|
5661
5663
|
layerOrder: r.layerOrder,
|
|
5662
5664
|
imagePath: r.imagePath,
|
|
5663
5665
|
vectorMask: r.vectorMask ? {
|
|
5664
|
-
paths: r.vectorMask.paths?.map((
|
|
5665
|
-
open:
|
|
5666
|
-
knots:
|
|
5666
|
+
paths: r.vectorMask.paths?.map((h) => ({
|
|
5667
|
+
open: h.open,
|
|
5668
|
+
knots: h.knots?.map((t) => ({
|
|
5667
5669
|
linked: t.linked,
|
|
5668
5670
|
points: [...t.points]
|
|
5669
5671
|
})),
|
|
5670
|
-
fillRule:
|
|
5671
|
-
operation:
|
|
5672
|
+
fillRule: h.fillRule,
|
|
5673
|
+
operation: h.operation
|
|
5672
5674
|
})),
|
|
5673
|
-
points: r.vectorMask.points?.map((
|
|
5674
|
-
x:
|
|
5675
|
-
y:
|
|
5676
|
-
type:
|
|
5675
|
+
points: r.vectorMask.points?.map((h) => ({
|
|
5676
|
+
x: h.x,
|
|
5677
|
+
y: h.y,
|
|
5678
|
+
type: h.type
|
|
5677
5679
|
})),
|
|
5678
5680
|
invert: r.vectorMask.invert,
|
|
5679
5681
|
notLink: r.vectorMask.notLink,
|
|
5680
5682
|
disable: r.vectorMask.disable,
|
|
5681
5683
|
fillStartsWithAllPixels: r.vectorMask.fillStartsWithAllPixels
|
|
5682
5684
|
} : void 0,
|
|
5683
|
-
filterList: r.filterList ? r.filterList.map((
|
|
5684
|
-
type:
|
|
5685
|
-
enabled:
|
|
5686
|
-
filter:
|
|
5687
|
-
puppetShapeList:
|
|
5685
|
+
filterList: r.filterList ? r.filterList.map((h) => ({
|
|
5686
|
+
type: h.type,
|
|
5687
|
+
enabled: h.enabled,
|
|
5688
|
+
filter: h.filter ? {
|
|
5689
|
+
puppetShapeList: h.filter.puppetShapeList?.map((t) => ({
|
|
5688
5690
|
originalVertexArray: t.originalVertexArray.map((e) => ({
|
|
5689
5691
|
x: e.x,
|
|
5690
5692
|
y: e.y
|
|
@@ -5701,8 +5703,8 @@ function $x(r) {
|
|
|
5701
5703
|
clipping: r.clipping
|
|
5702
5704
|
};
|
|
5703
5705
|
}
|
|
5704
|
-
function Rx(r,
|
|
5705
|
-
const u = ++Sx,
|
|
5706
|
+
function Rx(r, h, t, e) {
|
|
5707
|
+
const u = ++Sx, v = Hx(t);
|
|
5706
5708
|
return performance.now(), (/* @__PURE__ */ new Date()).toISOString(), new Promise((m, B) => {
|
|
5707
5709
|
Cr.set(u, {
|
|
5708
5710
|
resolve: (x) => {
|
|
@@ -5710,38 +5712,38 @@ function Rx(r, l, t, e) {
|
|
|
5710
5712
|
},
|
|
5711
5713
|
reject: B
|
|
5712
5714
|
});
|
|
5713
|
-
const C = $x(
|
|
5714
|
-
|
|
5715
|
+
const C = $x(h);
|
|
5716
|
+
v.postMessage({ id: u, designBitmap: r, layerData: C, canvasSize: e }, [
|
|
5715
5717
|
r
|
|
5716
5718
|
]);
|
|
5717
5719
|
});
|
|
5718
5720
|
}
|
|
5719
|
-
async function Px(r,
|
|
5720
|
-
const m = await ut(r, u,
|
|
5721
|
+
async function Px(r, h, t = 0, e, u, v) {
|
|
5722
|
+
const m = await ut(r, u, v);
|
|
5721
5723
|
if (!m || m.width === 0 || m.height === 0)
|
|
5722
5724
|
throw new Error("图片无效:尺寸为 0");
|
|
5723
|
-
return await Rx(m,
|
|
5725
|
+
return await Rx(m, h, t, e);
|
|
5724
5726
|
}
|
|
5725
|
-
function l0(r,
|
|
5727
|
+
function l0(r, h) {
|
|
5726
5728
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
5727
|
-
return new OffscreenCanvas(r,
|
|
5729
|
+
return new OffscreenCanvas(r, h);
|
|
5728
5730
|
if (typeof document < "u") {
|
|
5729
5731
|
const t = document.createElement("canvas");
|
|
5730
|
-
return t.width = r, t.height =
|
|
5732
|
+
return t.width = r, t.height = h, t;
|
|
5731
5733
|
} else
|
|
5732
5734
|
throw new Error("无法创建 canvas:不在 Worker 或主线程环境中");
|
|
5733
5735
|
}
|
|
5734
5736
|
function F0(r) {
|
|
5735
5737
|
return r.getContext("2d");
|
|
5736
5738
|
}
|
|
5737
|
-
function
|
|
5738
|
-
const
|
|
5739
|
-
if (!
|
|
5739
|
+
function De(r) {
|
|
5740
|
+
const h = F0(r);
|
|
5741
|
+
if (!h)
|
|
5740
5742
|
throw new Error("无法创建 canvas context");
|
|
5741
|
-
return
|
|
5743
|
+
return h;
|
|
5742
5744
|
}
|
|
5743
|
-
async function
|
|
5744
|
-
const
|
|
5745
|
+
async function Wx(r) {
|
|
5746
|
+
const h = performance.now(), t = () => {
|
|
5745
5747
|
try {
|
|
5746
5748
|
if (globalThis.__DEBUG_RENDER__ === !0 || typeof localStorage < "u" && localStorage.getItem("DEBUG_RENDER") === "1") return !0;
|
|
5747
5749
|
} catch {
|
|
@@ -5752,7 +5754,7 @@ async function zx(r) {
|
|
|
5752
5754
|
}, u = (...c) => {
|
|
5753
5755
|
t();
|
|
5754
5756
|
}, {
|
|
5755
|
-
psdJson:
|
|
5757
|
+
psdJson: v,
|
|
5756
5758
|
materialList: m,
|
|
5757
5759
|
fabricScreenshotList: B,
|
|
5758
5760
|
width: C,
|
|
@@ -5760,8 +5762,8 @@ async function zx(r) {
|
|
|
5760
5762
|
baseUrl: n
|
|
5761
5763
|
} = r, E = r.maxImageSize;
|
|
5762
5764
|
e("[renderByJson] 接收到的数据:", {
|
|
5763
|
-
psdJsonLayerCount:
|
|
5764
|
-
psdJsonLayers:
|
|
5765
|
+
psdJsonLayerCount: v.layerList?.length || 0,
|
|
5766
|
+
psdJsonLayers: v.layerList?.map((c) => ({
|
|
5765
5767
|
name: c.name,
|
|
5766
5768
|
type: c.type,
|
|
5767
5769
|
id: c.id,
|
|
@@ -5799,42 +5801,42 @@ async function zx(r) {
|
|
|
5799
5801
|
url: c.url
|
|
5800
5802
|
}), f.set(c.layerName, c.url));
|
|
5801
5803
|
}
|
|
5802
|
-
const
|
|
5804
|
+
const p = /* @__PURE__ */ new Map();
|
|
5803
5805
|
for (const c of B)
|
|
5804
|
-
|
|
5805
|
-
e("[renderByJson] fabricScreenshotMap:", Array.from(
|
|
5806
|
+
p.set(c.id, c.url);
|
|
5807
|
+
e("[renderByJson] fabricScreenshotMap:", Array.from(p.entries())), e("[renderByJson] psdJson.layerList 结构:", v.layerList?.map((c) => ({
|
|
5806
5808
|
name: c.name,
|
|
5807
5809
|
type: c.type,
|
|
5808
5810
|
id: c.id,
|
|
5809
5811
|
hasChildren: !!c.children,
|
|
5810
5812
|
childrenCount: c.children?.length || 0
|
|
5811
5813
|
})));
|
|
5812
|
-
function
|
|
5814
|
+
function l(c, A) {
|
|
5813
5815
|
const _ = c.color || (c.name && ["粉", "白", "绿", "红", "蓝", "黄", "黑", "灰"].includes(c.name) ? c.name : A);
|
|
5814
5816
|
if (c.type === "Layer") {
|
|
5815
5817
|
if (c.imagePath) {
|
|
5816
|
-
const
|
|
5818
|
+
const z = m.find((P) => {
|
|
5817
5819
|
const L = P.sourceName || P.layerName;
|
|
5818
5820
|
return !L || !c.imagePath ? !1 : L === c.imagePath || L.endsWith(c.imagePath) || c.imagePath.endsWith(L);
|
|
5819
5821
|
});
|
|
5820
|
-
|
|
5821
|
-
url:
|
|
5822
|
+
z && (s[c.imagePath] = {
|
|
5823
|
+
url: z.url
|
|
5822
5824
|
});
|
|
5823
5825
|
}
|
|
5824
5826
|
if (c.name) {
|
|
5825
5827
|
if (_) {
|
|
5826
|
-
const
|
|
5828
|
+
const z = `${_}-${c.name}`, P = m.find((L) => {
|
|
5827
5829
|
const I = L.sourceName || L.layerName;
|
|
5828
5830
|
return I ? (I.split("/").pop() || I).replace(/\.(png|jpg|jpeg|gif|webp)$/i, "").startsWith(`${_}-${c.name}`) : !1;
|
|
5829
5831
|
});
|
|
5830
|
-
P && (s[
|
|
5832
|
+
P && (s[z] = {
|
|
5831
5833
|
url: P.url
|
|
5832
5834
|
});
|
|
5833
5835
|
}
|
|
5834
5836
|
if (c.imagePath && c.name) {
|
|
5835
|
-
const
|
|
5837
|
+
const z = c.imagePath.split("/").pop() || c.imagePath, P = m.find((L) => {
|
|
5836
5838
|
const I = L.sourceName || L.layerName;
|
|
5837
|
-
return I ? (I.split("/").pop() || I) ===
|
|
5839
|
+
return I ? (I.split("/").pop() || I) === z : !1;
|
|
5838
5840
|
});
|
|
5839
5841
|
P && (s[c.imagePath] = {
|
|
5840
5842
|
url: P.url
|
|
@@ -5843,37 +5845,37 @@ async function zx(r) {
|
|
|
5843
5845
|
}
|
|
5844
5846
|
}
|
|
5845
5847
|
if (c.children)
|
|
5846
|
-
for (const
|
|
5847
|
-
|
|
5848
|
+
for (const z of c.children)
|
|
5849
|
+
z && l(z, _);
|
|
5848
5850
|
}
|
|
5849
|
-
function
|
|
5851
|
+
function D(c, A) {
|
|
5850
5852
|
const _ = c.id ?? A;
|
|
5851
5853
|
if (c.type === "Group" && _)
|
|
5852
|
-
if (e(`[renderByJson] processLayer 检查 Group: name="${c.name}", id=${_}, hasFabricScreenshot=${
|
|
5853
|
-
const
|
|
5854
|
-
if (e(`[renderByJson] ✅ 找到匹配的 fabricScreenshot: Group id=${_}, name="${c.name}", url=${
|
|
5854
|
+
if (e(`[renderByJson] processLayer 检查 Group: name="${c.name}", id=${_}, hasFabricScreenshot=${p.has(_)}`), p.has(_)) {
|
|
5855
|
+
const z = p.get(_);
|
|
5856
|
+
if (e(`[renderByJson] ✅ 找到匹配的 fabricScreenshot: Group id=${_}, name="${c.name}", url=${z.substring(0, 50)}...`), c.children) {
|
|
5855
5857
|
e(`[renderByJson] Group "${c.name}" 有 ${c.children.length} 个子图层`);
|
|
5856
5858
|
for (const P of c.children)
|
|
5857
5859
|
if (P && P.isSmartObject === !0) {
|
|
5858
5860
|
const L = P?.name || "";
|
|
5859
|
-
e(`[renderByJson] 找到智能对象: name="${L}"`), L && !s[L] && (s[L] = {}), L ? (s[L].designImage =
|
|
5861
|
+
e(`[renderByJson] 找到智能对象: name="${L}"`), L && !s[L] && (s[L] = {}), L ? (s[L].designImage = z, e(`[renderByJson] ✅ 为智能对象 "${L}" 设置 designImage: ${z.substring(0, 50)}...`)) : u("[renderByJson] ⚠️ 智能对象没有 name,无法设置 designImage");
|
|
5860
5862
|
}
|
|
5861
5863
|
} else
|
|
5862
5864
|
u(`[renderByJson] ⚠️ Group id=${_} 没有 children`);
|
|
5863
5865
|
} else
|
|
5864
5866
|
e(`[renderByJson] ⚠️ Group id=${_}, name="${c.name}" 没有匹配的 fabricScreenshot`);
|
|
5865
5867
|
if (c.children)
|
|
5866
|
-
for (const
|
|
5867
|
-
|
|
5868
|
+
for (const z of c.children)
|
|
5869
|
+
z && D(z, _);
|
|
5868
5870
|
}
|
|
5869
|
-
if (
|
|
5870
|
-
for (const c of
|
|
5871
|
-
c &&
|
|
5872
|
-
if (
|
|
5873
|
-
for (const c of
|
|
5874
|
-
c &&
|
|
5871
|
+
if (v.layerList)
|
|
5872
|
+
for (const c of v.layerList)
|
|
5873
|
+
c && l(c);
|
|
5874
|
+
if (v.layerList)
|
|
5875
|
+
for (const c of v.layerList)
|
|
5876
|
+
c && D(c);
|
|
5875
5877
|
const o = Je([{
|
|
5876
|
-
psdJson:
|
|
5878
|
+
psdJson: v,
|
|
5877
5879
|
layerExtrasByName: s
|
|
5878
5880
|
}], {
|
|
5879
5881
|
parts: [],
|
|
@@ -5884,32 +5886,32 @@ async function zx(r) {
|
|
|
5884
5886
|
const d = o.models[0];
|
|
5885
5887
|
if (!d.psdPartData)
|
|
5886
5888
|
throw new Error("JSON 数据中没有 psdPartData");
|
|
5887
|
-
const b = d.width,
|
|
5889
|
+
const b = d.width, g = d.height, y = l0(b, g), k = De(y), R = [], F = (c) => {
|
|
5888
5890
|
if (c.url && s[c.url])
|
|
5889
5891
|
return s[c.url];
|
|
5890
5892
|
if (c.url) {
|
|
5891
5893
|
const A = c.url.split("/").pop() || c.url;
|
|
5892
5894
|
if (s[A])
|
|
5893
5895
|
return s[A];
|
|
5894
|
-
const _ = m.find((
|
|
5895
|
-
const P =
|
|
5896
|
+
const _ = m.find((z) => {
|
|
5897
|
+
const P = z.sourceName || z.layerName;
|
|
5896
5898
|
return !P || !c.url ? !1 : (P.split("/").pop() || P) === A || P === c.url || P.endsWith(c.url) || c.url.endsWith(P);
|
|
5897
5899
|
});
|
|
5898
5900
|
if (_) {
|
|
5899
|
-
const
|
|
5900
|
-
if (
|
|
5901
|
-
return s[
|
|
5901
|
+
const z = _.sourceName || _.layerName;
|
|
5902
|
+
if (z)
|
|
5903
|
+
return s[z] || { url: _.url };
|
|
5902
5904
|
}
|
|
5903
5905
|
}
|
|
5904
5906
|
};
|
|
5905
5907
|
for (let c = 0; c < d.psdPartData.length; c++) {
|
|
5906
5908
|
const A = d.psdPartData[c], _ = F(A);
|
|
5907
|
-
if (A.type ===
|
|
5909
|
+
if (A.type === g0.Layer) {
|
|
5908
5910
|
if (!_ || !_.url) {
|
|
5909
5911
|
u(`图层 "${A.name}" 没有匹配的 material,跳过`);
|
|
5910
5912
|
continue;
|
|
5911
5913
|
}
|
|
5912
|
-
const
|
|
5914
|
+
const z = _.url, P = a(z);
|
|
5913
5915
|
if (!P) {
|
|
5914
5916
|
u(`图层 "${A.name}" 没有有效的 url,跳过`);
|
|
5915
5917
|
continue;
|
|
@@ -5920,11 +5922,11 @@ async function zx(r) {
|
|
|
5920
5922
|
partData: A,
|
|
5921
5923
|
promise: dt(P, E, n).catch((L) => null)
|
|
5922
5924
|
});
|
|
5923
|
-
} else if (A.type ===
|
|
5925
|
+
} else if (A.type === g0.Group) {
|
|
5924
5926
|
if (!A.smartObjects || A.smartObjects.length === 0)
|
|
5925
5927
|
continue;
|
|
5926
|
-
for (let
|
|
5927
|
-
const P = A.smartObjects[
|
|
5928
|
+
for (let z = 0; z < A.smartObjects.length; z++) {
|
|
5929
|
+
const P = A.smartObjects[z];
|
|
5928
5930
|
if (!P || !P.name)
|
|
5929
5931
|
continue;
|
|
5930
5932
|
let L = s[P.name] ?? _;
|
|
@@ -5950,9 +5952,9 @@ async function zx(r) {
|
|
|
5950
5952
|
continue;
|
|
5951
5953
|
I = G;
|
|
5952
5954
|
}
|
|
5953
|
-
const Y = (A.partId ?? A.id) * 100 +
|
|
5955
|
+
const Y = (A.partId ?? A.id) * 100 + z, Q = et(rt(P)), o0 = { width: b, height: g };
|
|
5954
5956
|
R.push({
|
|
5955
|
-
index: c +
|
|
5957
|
+
index: c + z * 0.01,
|
|
5956
5958
|
type: "group",
|
|
5957
5959
|
partData: A,
|
|
5958
5960
|
smartObject: P,
|
|
@@ -5973,74 +5975,74 @@ async function zx(r) {
|
|
|
5973
5975
|
task: c,
|
|
5974
5976
|
imageBitmap: w[A]
|
|
5975
5977
|
})).sort((c, A) => {
|
|
5976
|
-
const _ = c.task.type === "group" && c.task.smartObject?.layerOrder !== void 0 ? c.task.smartObject.layerOrder : c.task.partData.layerOrder ?? c.task.index,
|
|
5977
|
-
return _ -
|
|
5978
|
+
const _ = c.task.type === "group" && c.task.smartObject?.layerOrder !== void 0 ? c.task.smartObject.layerOrder : c.task.partData.layerOrder ?? c.task.index, z = A.task.type === "group" && A.task.smartObject?.layerOrder !== void 0 ? A.task.smartObject.layerOrder : A.task.partData.layerOrder ?? A.task.index;
|
|
5979
|
+
return _ - z;
|
|
5978
5980
|
});
|
|
5979
|
-
let $ = l0(b,
|
|
5981
|
+
let $ = l0(b, g), W = F0($), O = !1, q = "normal";
|
|
5980
5982
|
for (let c = 0; c < H.length; c++) {
|
|
5981
5983
|
const { task: A, imageBitmap: _ } = H[c];
|
|
5982
5984
|
if (!_) {
|
|
5983
5985
|
u(`[renderByJson] 图层 "${A.partData.name}" 没有 imageBitmap,跳过`);
|
|
5984
5986
|
continue;
|
|
5985
5987
|
}
|
|
5986
|
-
const { partData:
|
|
5988
|
+
const { partData: z } = A, P = z.bounds;
|
|
5987
5989
|
let L;
|
|
5988
|
-
A.type === "group" && A.smartObject ? L = A.smartObject.opacity ??
|
|
5990
|
+
A.type === "group" && A.smartObject ? L = A.smartObject.opacity ?? z.opacity : L = z.opacity, (typeof L != "number" || isNaN(L)) && (L = 1);
|
|
5989
5991
|
let I;
|
|
5990
|
-
A.type === "group" && A.smartObject ? I = A.smartObject.clipping ??
|
|
5992
|
+
A.type === "group" && A.smartObject ? I = A.smartObject.clipping ?? z.clipping === !0 : I = z.clipping === !0;
|
|
5991
5993
|
const Y = H[c + 1];
|
|
5992
5994
|
let Q = !1;
|
|
5993
5995
|
if (Y) {
|
|
5994
5996
|
const K = Y.task.partData;
|
|
5995
5997
|
Y.task.type === "group" && Y.task.smartObject ? Q = Y.task.smartObject.clipping ?? K.clipping === !0 : Q = K.clipping === !0;
|
|
5996
5998
|
}
|
|
5997
|
-
const o0 = A.type === "group" && A.smartObject && A.smartObject.name ? A.smartObject.name :
|
|
5999
|
+
const o0 = A.type === "group" && A.smartObject && A.smartObject.name ? A.smartObject.name : z?.name || "未命名图层";
|
|
5998
6000
|
if (e(`[renderByJson] 绘制图层 "${o0}"`, {
|
|
5999
6001
|
type: A.type,
|
|
6000
6002
|
bitmapSize: { width: _.width, height: _.height },
|
|
6001
6003
|
bounds: P,
|
|
6002
6004
|
hasMask: !!A.maskData,
|
|
6003
|
-
blendMode:
|
|
6005
|
+
blendMode: z.blendMode,
|
|
6004
6006
|
opacity: L,
|
|
6005
6007
|
clipping: I
|
|
6006
6008
|
}), !I && Q) {
|
|
6007
|
-
if (O = !0, q =
|
|
6008
|
-
if (
|
|
6009
|
+
if (O = !0, q = z.blendMode || "normal", W) {
|
|
6010
|
+
if (W.clearRect(0, 0, b, g), W.globalCompositeOperation = "source-over", W.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6009
6011
|
if (A.maskData) {
|
|
6010
|
-
const K = l0(b,
|
|
6011
|
-
G && (G.drawImage(_, 0, 0), hr(G, A.maskData),
|
|
6012
|
+
const K = l0(b, g), G = F0(K);
|
|
6013
|
+
G && (G.drawImage(_, 0, 0), hr(G, A.maskData), W.drawImage(K, 0, 0));
|
|
6012
6014
|
} else
|
|
6013
|
-
|
|
6014
|
-
else A.type === "layer" && (P ?
|
|
6015
|
+
W.drawImage(_, 0, 0);
|
|
6016
|
+
else A.type === "layer" && (P ? W.drawImage(
|
|
6015
6017
|
_,
|
|
6016
6018
|
P.left,
|
|
6017
6019
|
P.top,
|
|
6018
6020
|
P.width,
|
|
6019
6021
|
P.height
|
|
6020
|
-
) :
|
|
6021
|
-
|
|
6022
|
+
) : W.drawImage(_, 0, 0));
|
|
6023
|
+
W.globalAlpha = 1;
|
|
6022
6024
|
}
|
|
6023
6025
|
} else if (I) {
|
|
6024
|
-
if (
|
|
6025
|
-
if (
|
|
6026
|
+
if (W) {
|
|
6027
|
+
if (W.globalCompositeOperation = "source-atop", W.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6026
6028
|
if (A.maskData) {
|
|
6027
|
-
const K = l0(b,
|
|
6028
|
-
G && (G.drawImage(_, 0, 0), hr(G, A.maskData),
|
|
6029
|
+
const K = l0(b, g), G = F0(K);
|
|
6030
|
+
G && (G.drawImage(_, 0, 0), hr(G, A.maskData), W.drawImage(K, 0, 0));
|
|
6029
6031
|
} else
|
|
6030
|
-
|
|
6031
|
-
else A.type === "layer" && (P ?
|
|
6032
|
+
W.drawImage(_, 0, 0);
|
|
6033
|
+
else A.type === "layer" && (P ? W.drawImage(
|
|
6032
6034
|
_,
|
|
6033
6035
|
P.left,
|
|
6034
6036
|
P.top,
|
|
6035
6037
|
P.width,
|
|
6036
6038
|
P.height
|
|
6037
|
-
) :
|
|
6038
|
-
|
|
6039
|
+
) : W.drawImage(_, 0, 0));
|
|
6040
|
+
W.globalAlpha = 1, W.globalCompositeOperation = "source-over";
|
|
6039
6041
|
}
|
|
6040
6042
|
} else {
|
|
6041
|
-
if (k.globalCompositeOperation = Lr(
|
|
6043
|
+
if (k.globalCompositeOperation = Lr(z.blendMode), k.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6042
6044
|
if (A.maskData) {
|
|
6043
|
-
const K = l0(b,
|
|
6045
|
+
const K = l0(b, g), G = F0(K);
|
|
6044
6046
|
G && (G.drawImage(_, 0, 0), hr(G, A.maskData), k.drawImage(K, 0, 0));
|
|
6045
6047
|
} else
|
|
6046
6048
|
k.drawImage(_, 0, 0);
|
|
@@ -6055,35 +6057,35 @@ async function zx(r) {
|
|
|
6055
6057
|
}
|
|
6056
6058
|
O && !Q && (k.globalCompositeOperation = Lr(q), k.drawImage($, 0, 0), k.globalCompositeOperation = "source-over", O = !1);
|
|
6057
6059
|
}
|
|
6058
|
-
$ = null,
|
|
6059
|
-
let U = y, T = b, N =
|
|
6060
|
+
$ = null, W = null;
|
|
6061
|
+
let U = y, T = b, N = g;
|
|
6060
6062
|
if (C !== void 0 || x !== void 0) {
|
|
6061
6063
|
if (C !== void 0 && x !== void 0)
|
|
6062
6064
|
T = C, N = x;
|
|
6063
6065
|
else if (C !== void 0) {
|
|
6064
6066
|
const A = C / b;
|
|
6065
|
-
T = C, N = Math.round(
|
|
6067
|
+
T = C, N = Math.round(g * A);
|
|
6066
6068
|
} else if (x !== void 0) {
|
|
6067
|
-
const A = x /
|
|
6069
|
+
const A = x / g;
|
|
6068
6070
|
T = Math.round(b * A), N = x;
|
|
6069
6071
|
}
|
|
6070
6072
|
U = l0(T, N);
|
|
6071
|
-
const c =
|
|
6072
|
-
c.imageSmoothingEnabled = !0, c.imageSmoothingQuality = "high", c.drawImage(y, 0, 0, b,
|
|
6073
|
+
const c = De(U);
|
|
6074
|
+
c.imageSmoothingEnabled = !0, c.imageSmoothingQuality = "high", c.drawImage(y, 0, 0, b, g, 0, 0, T, N), e(`[renderByJson] 已缩放结果: ${b}x${g} -> ${T}x${N}`);
|
|
6073
6075
|
}
|
|
6074
|
-
const S = performance.now() -
|
|
6076
|
+
const S = performance.now() - h;
|
|
6075
6077
|
return e(`[renderByJson] 绘制完成,总渲染时间: ${Math.round(S)}ms`), {
|
|
6076
6078
|
canvas: U,
|
|
6077
6079
|
width: T,
|
|
6078
6080
|
height: N
|
|
6079
6081
|
};
|
|
6080
6082
|
}
|
|
6081
|
-
const
|
|
6082
|
-
const t = (await
|
|
6083
|
+
const We = async (r) => {
|
|
6084
|
+
const t = (await Wx(r)).canvas;
|
|
6083
6085
|
return t ? createImageBitmap(t) : null;
|
|
6084
6086
|
};
|
|
6085
6087
|
let i0 = null, pr = !1;
|
|
6086
|
-
const
|
|
6088
|
+
const ze = async () => {
|
|
6087
6089
|
if (!pr) {
|
|
6088
6090
|
pr = !0;
|
|
6089
6091
|
try {
|
|
@@ -6091,29 +6093,29 @@ const We = async () => {
|
|
|
6091
6093
|
const r = i0;
|
|
6092
6094
|
i0 = null;
|
|
6093
6095
|
try {
|
|
6094
|
-
const
|
|
6096
|
+
const h = await We(r.renderData);
|
|
6095
6097
|
if (i0) {
|
|
6096
|
-
|
|
6098
|
+
h?.close?.();
|
|
6097
6099
|
continue;
|
|
6098
6100
|
}
|
|
6099
|
-
self.postMessage({ id: r.id, bitmap:
|
|
6100
|
-
} catch (
|
|
6101
|
+
self.postMessage({ id: r.id, bitmap: h }, h ? [h] : []);
|
|
6102
|
+
} catch (h) {
|
|
6101
6103
|
if (i0) continue;
|
|
6102
6104
|
self.postMessage({
|
|
6103
6105
|
id: r.id,
|
|
6104
|
-
error:
|
|
6106
|
+
error: h instanceof Error ? h.message : String(h)
|
|
6105
6107
|
});
|
|
6106
6108
|
}
|
|
6107
6109
|
}
|
|
6108
6110
|
} finally {
|
|
6109
|
-
pr = !1, i0 &&
|
|
6111
|
+
pr = !1, i0 && ze();
|
|
6110
6112
|
}
|
|
6111
6113
|
}
|
|
6112
6114
|
};
|
|
6113
6115
|
self.onmessage = async (r) => {
|
|
6114
|
-
const
|
|
6115
|
-
if (
|
|
6116
|
-
const e =
|
|
6116
|
+
const h = r.data;
|
|
6117
|
+
if (h && typeof h == "object" && "type" in h && h.type === "SET_LICENSE") {
|
|
6118
|
+
const e = h;
|
|
6117
6119
|
_x({
|
|
6118
6120
|
token: e.licenseToken,
|
|
6119
6121
|
apiUrl: e.licenseApiUrl,
|
|
@@ -6122,13 +6124,13 @@ self.onmessage = async (r) => {
|
|
|
6122
6124
|
});
|
|
6123
6125
|
return;
|
|
6124
6126
|
}
|
|
6125
|
-
const t =
|
|
6127
|
+
const t = h;
|
|
6126
6128
|
if (t.coalesce === !0) {
|
|
6127
|
-
i0 = { id: t.id, renderData: t.renderData },
|
|
6129
|
+
i0 = { id: t.id, renderData: t.renderData }, ze();
|
|
6128
6130
|
return;
|
|
6129
6131
|
}
|
|
6130
6132
|
try {
|
|
6131
|
-
const e = await
|
|
6133
|
+
const e = await We(t.renderData);
|
|
6132
6134
|
self.postMessage({ id: t.id, bitmap: e }, e ? [e] : []);
|
|
6133
6135
|
} catch (e) {
|
|
6134
6136
|
self.postMessage({
|