@jieyin/editor-sdk-test 1.1.161 → 1.1.163
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 +7395 -6921
- package/dist/renderWorker.js +720 -720
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/renderWorker.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var g0 = /* @__PURE__ */ ((r) => (r[r.Group = 0] = "Group", r[r.Layer = 1] = "Layer", r))(g0 || {});
|
|
2
|
-
function
|
|
3
|
-
let
|
|
2
|
+
function Ye(r) {
|
|
3
|
+
let d = r;
|
|
4
4
|
return () => {
|
|
5
|
-
const t =
|
|
6
|
-
return
|
|
5
|
+
const t = d;
|
|
6
|
+
return d += 1, t;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
function Qe(r,
|
|
9
|
+
function Qe(r, d) {
|
|
10
10
|
return {
|
|
11
11
|
name: r.name || "",
|
|
12
12
|
type: r.type || "Layer",
|
|
@@ -23,24 +23,24 @@ function Qe(r, h) {
|
|
|
23
23
|
quiltSliceY: r.quiltSliceY,
|
|
24
24
|
layerOrder: r.layerOrder,
|
|
25
25
|
imagePath: r.imagePath,
|
|
26
|
-
vectorMask: r.vectorMask ??
|
|
26
|
+
vectorMask: r.vectorMask ?? d,
|
|
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
|
|
34
|
-
if (r.type === "Group" && m === void 0 && (!
|
|
35
|
-
const x = r.children[0].name, n =
|
|
36
|
-
(E !== void 0 || n?.id !== void 0) && (
|
|
32
|
+
function Ve(r, d, t, e) {
|
|
33
|
+
let l = r.name || "", v = d[l], m = v?.partId ?? (r.type === "Group" ? t.get(l) : 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 = d[x], E = n?.partId ?? t.get(x);
|
|
36
|
+
(E !== void 0 || n?.id !== void 0) && (l = 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,
|
|
42
42
|
partId: m,
|
|
43
|
-
name:
|
|
43
|
+
name: l,
|
|
44
44
|
blendMode: r.blendMode || "normal",
|
|
45
45
|
bounds: r.bounds || { left: 0, top: 0, width: 0, height: 0 },
|
|
46
46
|
type: g0.Group,
|
|
@@ -51,7 +51,7 @@ function Ve(r, h, 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 || "",
|
|
@@ -64,37 +64,37 @@ function Ve(r, h, t, e) {
|
|
|
64
64
|
layerOrder: r.layerOrder
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
function Je(r,
|
|
68
|
-
const t = new Map(
|
|
67
|
+
function Je(r, d) {
|
|
68
|
+
const t = new Map(d.parts.map((l) => [l.name, l.id])), e = Ye(d.defaultIdStart ?? 1);
|
|
69
69
|
return {
|
|
70
|
-
parts:
|
|
71
|
-
models: r.map((
|
|
72
|
-
const
|
|
70
|
+
parts: d.parts,
|
|
71
|
+
models: r.map((l) => {
|
|
72
|
+
const v = l.layerExtrasByName ?? {}, m = l.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, g =
|
|
77
|
+
for (const p of s)
|
|
78
|
+
if (p.type === "Group" && p.children) {
|
|
79
|
+
const h = [], D = [], i = [...p.children].sort((o, u) => {
|
|
80
|
+
const b = o.layerOrder ?? 0, g = u.layerOrder ?? 0;
|
|
81
81
|
return b - g;
|
|
82
82
|
});
|
|
83
83
|
for (const o of i)
|
|
84
|
-
o.isSmartObject === !0 ?
|
|
84
|
+
o.isSmartObject === !0 ? h.push(o) : D.push(o);
|
|
85
85
|
if (D.length > 0) {
|
|
86
86
|
const o = n(D);
|
|
87
87
|
f.push(...o);
|
|
88
88
|
}
|
|
89
|
-
|
|
90
|
-
...
|
|
91
|
-
children:
|
|
89
|
+
h.length > 0 && f.push({
|
|
90
|
+
...p,
|
|
91
|
+
children: h
|
|
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((d) => ({
|
|
114
|
+
open: !!d.open,
|
|
115
|
+
knots: d.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((d) => ({
|
|
123
|
+
x: d.x,
|
|
124
|
+
y: d.y,
|
|
125
|
+
type: d.type
|
|
126
126
|
}))
|
|
127
127
|
} : null : null;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
if (
|
|
131
|
-
if (r.globalCompositeOperation = "destination-in", r.beginPath(),
|
|
132
|
-
|
|
129
|
+
function hr(r, d) {
|
|
130
|
+
if (d) {
|
|
131
|
+
if (r.globalCompositeOperation = "destination-in", r.beginPath(), d.type === "bezier" && Array.isArray(d.paths))
|
|
132
|
+
d.paths.forEach((t) => {
|
|
133
133
|
const e = t.knots;
|
|
134
134
|
if (!e || e.length < 2) return;
|
|
135
|
-
const
|
|
136
|
-
r.moveTo(
|
|
137
|
-
for (let
|
|
138
|
-
const m = e[
|
|
139
|
-
let B = (
|
|
140
|
-
if (!t.open &&
|
|
135
|
+
const l = e[0];
|
|
136
|
+
r.moveTo(l.points[2], l.points[3]);
|
|
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 (d.type === "simple" && Array.isArray(d.points)) {
|
|
150
|
+
const t = d.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(d) {
|
|
165
165
|
if (!this.hasStorage) return null;
|
|
166
166
|
try {
|
|
167
|
-
return localStorage.getItem(
|
|
167
|
+
return localStorage.getItem(d);
|
|
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(d, t) {
|
|
176
176
|
if (!this.hasStorage) return !1;
|
|
177
177
|
try {
|
|
178
|
-
return localStorage.setItem(
|
|
178
|
+
return localStorage.setItem(d, 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(d) {
|
|
187
187
|
if (!this.hasStorage) return !1;
|
|
188
188
|
try {
|
|
189
|
-
return localStorage.removeItem(
|
|
189
|
+
return localStorage.removeItem(d), !0;
|
|
190
190
|
} catch {
|
|
191
191
|
return !1;
|
|
192
192
|
}
|
|
@@ -209,7 +209,7 @@ class v0 {
|
|
|
209
209
|
return this.hasStorage;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
class
|
|
212
|
+
class ur {
|
|
213
213
|
/**
|
|
214
214
|
* 是否在浏览器环境
|
|
215
215
|
*/
|
|
@@ -251,10 +251,10 @@ class h0 {
|
|
|
251
251
|
/**
|
|
252
252
|
* 安全地解析 URL
|
|
253
253
|
*/
|
|
254
|
-
static parse(
|
|
254
|
+
static parse(d) {
|
|
255
255
|
try {
|
|
256
|
-
const t =
|
|
257
|
-
return new URL(
|
|
256
|
+
const t = ur.getOrigin();
|
|
257
|
+
return new URL(d, t);
|
|
258
258
|
} catch {
|
|
259
259
|
return null;
|
|
260
260
|
}
|
|
@@ -262,218 +262,218 @@ class h0 {
|
|
|
262
262
|
/**
|
|
263
263
|
* 添加查询参数
|
|
264
264
|
*/
|
|
265
|
-
static addParam(
|
|
266
|
-
const
|
|
267
|
-
return !
|
|
265
|
+
static addParam(d, t, e) {
|
|
266
|
+
const l = this.parse(d);
|
|
267
|
+
return !l || l.searchParams.has(t) ? d : (l.searchParams.set(t, e), this.formatUrl(d, l));
|
|
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(d, t) {
|
|
273
|
+
const e = this.parse(d);
|
|
274
|
+
return !e || !e.searchParams.has(t) ? d : (e.searchParams.delete(t), this.formatUrl(d, e));
|
|
275
275
|
}
|
|
276
276
|
/**
|
|
277
277
|
* 检查是否有指定参数
|
|
278
278
|
*/
|
|
279
|
-
static hasParam(
|
|
280
|
-
return this.parse(
|
|
279
|
+
static hasParam(d, t) {
|
|
280
|
+
return this.parse(d)?.searchParams.has(t) ?? !1;
|
|
281
281
|
}
|
|
282
282
|
/**
|
|
283
283
|
* 格式化 URL(保持原始格式)
|
|
284
284
|
*/
|
|
285
|
-
static formatUrl(
|
|
286
|
-
const e = /^(https?:)?\/\//i.test(
|
|
287
|
-
return e ? t.toString() :
|
|
285
|
+
static formatUrl(d, t) {
|
|
286
|
+
const e = /^(https?:)?\/\//i.test(d), l = d.startsWith("//");
|
|
287
|
+
return e ? t.toString() : l ? 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(d) {
|
|
293
|
+
return d?.startsWith("data:") ?? !1;
|
|
294
294
|
}
|
|
295
295
|
/**
|
|
296
296
|
* 检查是否为 Blob URL
|
|
297
297
|
*/
|
|
298
|
-
static isBlobUrl(
|
|
299
|
-
return
|
|
298
|
+
static isBlobUrl(d) {
|
|
299
|
+
return d?.startsWith("blob:") ?? !1;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
const t0 =
|
|
303
|
-
(function(r,
|
|
304
|
-
const t =
|
|
302
|
+
const t0 = cr;
|
|
303
|
+
(function(r, d) {
|
|
304
|
+
const t = cr, e = r();
|
|
305
305
|
for (; ; )
|
|
306
306
|
try {
|
|
307
|
-
if (
|
|
307
|
+
if (parseInt(t(457)) / 1 * (parseInt(t(484)) / 2) + parseInt(t(463)) / 3 * (parseInt(t(466)) / 4) + -parseInt(t(476)) / 5 + -parseInt(t(461)) / 6 * (-parseInt(t(460)) / 7) + -parseInt(t(492)) / 8 + -parseInt(t(490)) / 9 * (parseInt(t(487)) / 10) + -parseInt(t(493)) / 11 * (-parseInt(t(475)) / 12) === d) break;
|
|
308
308
|
e.push(e.shift());
|
|
309
309
|
} catch {
|
|
310
310
|
e.push(e.shift());
|
|
311
311
|
}
|
|
312
|
-
})(
|
|
312
|
+
})(fr, -24 * -3107 + 880907 + -5 * 91093);
|
|
313
313
|
const A0 = /* @__PURE__ */ (function() {
|
|
314
314
|
let r = !0;
|
|
315
|
-
return function(
|
|
315
|
+
return function(d, t) {
|
|
316
316
|
const e = r ? function() {
|
|
317
317
|
if (t) {
|
|
318
|
-
const
|
|
319
|
-
return t = null,
|
|
318
|
+
const l = t.apply(d, arguments);
|
|
319
|
+
return t = null, l;
|
|
320
320
|
}
|
|
321
321
|
} : function() {
|
|
322
322
|
};
|
|
323
323
|
return r = !1, e;
|
|
324
324
|
};
|
|
325
325
|
})(), tt = A0(void 0, function() {
|
|
326
|
-
const r =
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
326
|
+
const r = cr, d = function() {
|
|
327
|
+
const v = cr;
|
|
328
|
+
let m;
|
|
329
|
+
try {
|
|
330
|
+
m = Function("return (functio" + v(453) + ("{}.constructor(" + v(483) + 'rn this")( )') + ");")();
|
|
331
|
+
} catch {
|
|
332
|
+
m = window;
|
|
333
|
+
}
|
|
334
|
+
return m;
|
|
335
|
+
}, t = d(), e = t.console = t.console || {}, l = ["log", "warn", "info", "error", r(462) + r(458), "table", "trace"];
|
|
336
|
+
for (let v = -9404 + 7 * -632 + 13828; v < l[r(459) + "h"]; v++) {
|
|
337
|
+
const m = A0["const" + r(452) + "r"][r(480) + "type"].bind(A0), B = l[v], C = e[B] || m;
|
|
338
|
+
m["__pro" + r(486)] = A0.bind(A0), m.toString = C[r(464) + "ing"].bind(C), e[B] = m;
|
|
337
339
|
}
|
|
338
340
|
});
|
|
339
341
|
tt();
|
|
340
|
-
const
|
|
341
|
-
function
|
|
342
|
-
return v0[t0(
|
|
342
|
+
const Er = t0(456) + "token", Ar = "file_token_expire_time", xt = 60 * (3 * 3235 + -11 * -781 + -17296);
|
|
343
|
+
function Br() {
|
|
344
|
+
return v0[t0(485) + "em"](Er);
|
|
343
345
|
}
|
|
344
346
|
function nt(r = xt) {
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
return Date.now() + r > u;
|
|
347
|
+
if (!Br()) return !0;
|
|
348
|
+
const t = v0.getItem(Ar);
|
|
349
|
+
if (!t) return !1;
|
|
350
|
+
const e = Number(t);
|
|
351
|
+
return Date.now() + r > e;
|
|
351
352
|
}
|
|
352
|
-
function at(r,
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
v0.setItem(Er, String(e));
|
|
353
|
+
function at(r, d) {
|
|
354
|
+
if (v0.setItem(Er, r), typeof d == "number" && d > 0) {
|
|
355
|
+
const t = Date.now() + d * 1e3;
|
|
356
|
+
v0.setItem(Ar, String(t));
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
function ot() {
|
|
360
|
-
|
|
360
|
+
const r = t0;
|
|
361
|
+
v0[r(474) + "eItem"](Er), v0["remov" + r(494)](Ar);
|
|
361
362
|
}
|
|
362
363
|
async function Wr(r) {
|
|
363
|
-
const
|
|
364
|
-
return
|
|
365
|
-
}
|
|
366
|
-
let it = null;
|
|
367
|
-
function Ar(r, h) {
|
|
368
|
-
return r = r - (6782 + 7829 * 1 + -14193), cr()[r];
|
|
364
|
+
const d = t0, t = await r(), e = t?.data?.[d(478)];
|
|
365
|
+
return t?.[d(478)]?.[d(469)] === -2 * 1223 + -2 * 641 + 3928 && e?.["file_token"] ? (at(e["file_" + d(465)], e["expir" + d(481)]), e[d(456) + "token"]) : null;
|
|
369
366
|
}
|
|
370
|
-
function cr() {
|
|
371
|
-
|
|
372
|
-
return cr = function() {
|
|
373
|
-
return r;
|
|
374
|
-
}, cr();
|
|
367
|
+
function cr(r, d) {
|
|
368
|
+
return r = r - (-3214 * 2 + 13 * 443 + 1121), fr()[r];
|
|
375
369
|
}
|
|
370
|
+
let it = null;
|
|
376
371
|
function Ir() {
|
|
377
|
-
return
|
|
372
|
+
return ur.isBrowser() ? it : null;
|
|
378
373
|
}
|
|
379
374
|
async function be() {
|
|
380
375
|
const r = t0;
|
|
381
|
-
if (!
|
|
382
|
-
const
|
|
383
|
-
if (
|
|
376
|
+
if (!ur[r(489) + "wser"]()) return Br();
|
|
377
|
+
const d = Br();
|
|
378
|
+
if (d && !nt()) return d;
|
|
384
379
|
try {
|
|
385
380
|
const t = await Ir();
|
|
386
|
-
if (
|
|
387
|
-
const e = await Wr(t[r(
|
|
381
|
+
if (d && t?.[r(491) + "FileT" + r(477) + "efresh"]) {
|
|
382
|
+
const e = await Wr(t["fetchFileT" + r(477) + "efresh"]);
|
|
388
383
|
if (e) return e;
|
|
389
384
|
}
|
|
390
385
|
} catch {
|
|
391
386
|
}
|
|
392
387
|
try {
|
|
393
388
|
const t = Ir();
|
|
394
|
-
return t?.["
|
|
389
|
+
return t?.["fetchFileToken"] ? await Wr(t.fetchFileToken) : null;
|
|
395
390
|
} catch {
|
|
396
391
|
return null;
|
|
397
392
|
}
|
|
398
393
|
}
|
|
399
394
|
function me(r) {
|
|
400
|
-
const
|
|
401
|
-
if (!r || h0
|
|
395
|
+
const d = t0;
|
|
396
|
+
if (!r || h0[d(455) + d(482)](r) || h0[d(468) + "bUrl"](r)) return !1;
|
|
402
397
|
const t = h0.parse(r);
|
|
403
|
-
return t ? t[
|
|
398
|
+
return t ? t["pathn" + d(473)].includes(d(454) + "s/") && !h0[d(488) + "ram"](r, "fileT" + d(472)) : r["inclu" + d(470)](d(454) + "s/") && !r.includes(d(467) + d(471));
|
|
404
399
|
}
|
|
405
|
-
function _e(r,
|
|
406
|
-
|
|
400
|
+
function _e(r, d) {
|
|
401
|
+
const t = t0;
|
|
402
|
+
return !d || !me(r) ? r : h0.addParam(r, t(467) + t(472), d);
|
|
407
403
|
}
|
|
408
404
|
function st(r) {
|
|
409
|
-
|
|
410
|
-
return h0[h(423) + "eParam"](r, h(435) + "oken");
|
|
405
|
+
return h0["remov" + t0(479) + "m"](r, "fileToken");
|
|
411
406
|
}
|
|
412
407
|
async function ct(r) {
|
|
413
408
|
if (!me(r)) return r;
|
|
414
|
-
const
|
|
415
|
-
return _e(r,
|
|
409
|
+
const d = await be();
|
|
410
|
+
return _e(r, d);
|
|
416
411
|
}
|
|
417
|
-
async function ye(r,
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
if (p[t(445) + "s"] !== -7841 + 9 * -749 + -14983 * -1) return p;
|
|
412
|
+
async function ye(r, d) {
|
|
413
|
+
if (!ur[t0(489) + "wser"]()) return fetch(r, d);
|
|
414
|
+
const e = st(r), l = await ct(e), v = await fetch(l, d);
|
|
415
|
+
if (v.status !== 401) return v;
|
|
422
416
|
ot();
|
|
423
417
|
const m = await be(), B = _e(e, m);
|
|
424
|
-
return fetch(B,
|
|
418
|
+
return fetch(B, d);
|
|
419
|
+
}
|
|
420
|
+
function fr() {
|
|
421
|
+
const r = ["token", "3328340ILmANe", "fileT", "isBlo", "code", "des", "oken=", "oken", "ame", "remov", "4946100WPgBej", "3601920yASylq", "okenR", "data", "ePara", "proto", "es_in", "aUrl", '"retu', "2uTqEhr", "getIt", "to__", "10LXakdT", "hasPa", "isBro", "2953917ltURnE", "fetch", "5774712TxZLSe", "11DOuXgz", "eItem", "ructo", "n() ", "/file", "isDat", "file_", "410577UgJqXt", "tion", "lengt", "7gKDuys", "3693654UnjzRn", "excep", "3wZcCAn", "toStr"];
|
|
422
|
+
return fr = function() {
|
|
423
|
+
return r;
|
|
424
|
+
}, fr();
|
|
425
425
|
}
|
|
426
|
-
const we = (r,
|
|
426
|
+
const we = (r, d) => {
|
|
427
427
|
if (!r) return r;
|
|
428
|
-
const t = (
|
|
428
|
+
const t = (d || "").replace(/\/$/, "");
|
|
429
429
|
if (t && r.startsWith(t))
|
|
430
430
|
return r;
|
|
431
431
|
if (typeof window < "u") {
|
|
432
|
-
const
|
|
433
|
-
if (
|
|
432
|
+
const l = window.location.hostname;
|
|
433
|
+
if (l === "localhost" || l === "127.0.0.1")
|
|
434
434
|
try {
|
|
435
|
-
const
|
|
435
|
+
const v = new URL(r);
|
|
436
436
|
if (t)
|
|
437
437
|
try {
|
|
438
438
|
const m = new URL(t).origin;
|
|
439
|
-
if (
|
|
439
|
+
if (v.origin === m)
|
|
440
440
|
return r;
|
|
441
441
|
} catch {
|
|
442
442
|
}
|
|
443
|
-
if (
|
|
444
|
-
return t ? `${t}${
|
|
443
|
+
if (v.pathname.startsWith("/files/"))
|
|
444
|
+
return t ? `${t}${v.pathname}${v.search}${v.hash}` : `${v.pathname}${v.search}${v.hash}`;
|
|
445
445
|
} catch {
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
448
|
if (typeof window < "u" && window.location.hostname !== "localhost") return r;
|
|
449
449
|
const e = r.match(/^https?:\/\/([^/]+\.oss[^/]*\.aliyuncs\.com)(.*)$/);
|
|
450
450
|
return e ? `/oss${e[2]}` : r;
|
|
451
|
-
}, ft = (r,
|
|
451
|
+
}, ft = (r, d) => {
|
|
452
452
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
453
|
-
return new OffscreenCanvas(r,
|
|
453
|
+
return new OffscreenCanvas(r, d);
|
|
454
454
|
const t = document.createElement("canvas");
|
|
455
|
-
return t.width = r, t.height =
|
|
456
|
-
}, _0 = async (r,
|
|
457
|
-
if (!
|
|
455
|
+
return t.width = r, t.height = d, t;
|
|
456
|
+
}, _0 = async (r, d) => {
|
|
457
|
+
if (!d || d <= 0) return r;
|
|
458
458
|
const t = Math.max(r.width, r.height);
|
|
459
|
-
if (t <=
|
|
460
|
-
const e =
|
|
461
|
-
return B ? (B.drawImage(r, 0, 0,
|
|
459
|
+
if (t <= d) return r;
|
|
460
|
+
const e = d / t, l = Math.max(1, Math.round(r.width * e)), v = Math.max(1, Math.round(r.height * e)), m = ft(l, v), B = m.getContext("2d");
|
|
461
|
+
return B ? (B.drawImage(r, 0, 0, l, v), r.close?.(), await createImageBitmap(m)) : r;
|
|
462
462
|
};
|
|
463
|
-
async function ut(r,
|
|
463
|
+
async function ut(r, d, t) {
|
|
464
464
|
if (typeof r == "string")
|
|
465
465
|
try {
|
|
466
|
-
const e = we(r, t),
|
|
467
|
-
if (!
|
|
468
|
-
const m =
|
|
466
|
+
const e = we(r, t), l = await ye(e);
|
|
467
|
+
if (!l.ok) {
|
|
468
|
+
const m = l.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${l.status} ${l.statusText}): ${r}`;
|
|
469
469
|
throw new Error(m);
|
|
470
470
|
}
|
|
471
|
-
const
|
|
472
|
-
if (!
|
|
471
|
+
const v = await l.blob();
|
|
472
|
+
if (!v.type.startsWith("image/") && v.size === 0)
|
|
473
473
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
474
474
|
try {
|
|
475
|
-
const m = await createImageBitmap(
|
|
476
|
-
return await _0(m,
|
|
475
|
+
const m = await createImageBitmap(v);
|
|
476
|
+
return await _0(m, d);
|
|
477
477
|
} catch (m) {
|
|
478
478
|
throw new Error(`图片解码失败: URL=${r}, 错误=${m instanceof Error ? m.message : m}`);
|
|
479
479
|
}
|
|
@@ -481,13 +481,13 @@ async function ut(r, h, t) {
|
|
|
481
481
|
throw e instanceof Error ? e : new Error(`加载图片失败: ${r}, ${e}`);
|
|
482
482
|
}
|
|
483
483
|
if (r instanceof HTMLImageElement) {
|
|
484
|
-
if ((!r.complete || r.naturalWidth === 0) && await new Promise((e,
|
|
485
|
-
r.onload = e, r.onerror = () =>
|
|
484
|
+
if ((!r.complete || r.naturalWidth === 0) && await new Promise((e, l) => {
|
|
485
|
+
r.onload = e, r.onerror = () => l(new Error(`图片加载失败: src=${r.src}`)), r.complete && e(null);
|
|
486
486
|
}), r.naturalWidth === 0 || r.naturalHeight === 0)
|
|
487
487
|
throw new Error(`图片尺寸无效: src=${r.src}, width=${r.naturalWidth}, height=${r.naturalHeight}`);
|
|
488
488
|
try {
|
|
489
489
|
const e = await createImageBitmap(r);
|
|
490
|
-
return await _0(e,
|
|
490
|
+
return await _0(e, d);
|
|
491
491
|
} catch (e) {
|
|
492
492
|
throw new Error(`图片解码失败: src=${r.src}, 错误=${e instanceof Error ? e.message : e}`);
|
|
493
493
|
}
|
|
@@ -495,23 +495,23 @@ async function ut(r, h, t) {
|
|
|
495
495
|
if (r instanceof ImageBitmap) {
|
|
496
496
|
if (r.width === 0 || r.height === 0)
|
|
497
497
|
throw new Error(`ImageBitmap 尺寸无效: width=${r.width}, height=${r.height}`);
|
|
498
|
-
return await _0(r,
|
|
498
|
+
return await _0(r, d);
|
|
499
499
|
}
|
|
500
500
|
throw new Error("不支持的图片类型");
|
|
501
501
|
}
|
|
502
|
-
async function dt(r,
|
|
502
|
+
async function dt(r, d, t) {
|
|
503
503
|
try {
|
|
504
|
-
const e = we(r, t),
|
|
505
|
-
if (!
|
|
506
|
-
const m =
|
|
504
|
+
const e = we(r, t), l = await ye(e);
|
|
505
|
+
if (!l.ok) {
|
|
506
|
+
const m = l.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${l.status} ${l.statusText}): ${r}`;
|
|
507
507
|
throw new Error(m);
|
|
508
508
|
}
|
|
509
|
-
const
|
|
510
|
-
if (!
|
|
509
|
+
const v = await l.blob();
|
|
510
|
+
if (!v.type.startsWith("image/") && v.size === 0)
|
|
511
511
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
512
512
|
try {
|
|
513
|
-
const m = await createImageBitmap(
|
|
514
|
-
return await _0(m,
|
|
513
|
+
const m = await createImageBitmap(v);
|
|
514
|
+
return await _0(m, d);
|
|
515
515
|
} catch (m) {
|
|
516
516
|
throw new Error(`图片解码失败: URL=${r}, 错误=${m instanceof Error ? m.message : m}`);
|
|
517
517
|
}
|
|
@@ -521,7 +521,7 @@ async function dt(r, h, t) {
|
|
|
521
521
|
}
|
|
522
522
|
function Lr(r) {
|
|
523
523
|
if (!r) return "source-over";
|
|
524
|
-
const
|
|
524
|
+
const d = r.trim().toLowerCase();
|
|
525
525
|
return {
|
|
526
526
|
normal: "source-over",
|
|
527
527
|
multiply: "multiply",
|
|
@@ -547,26 +547,26 @@ function Lr(r) {
|
|
|
547
547
|
"linear dodge": "lighter",
|
|
548
548
|
lighter: "lighter",
|
|
549
549
|
"pass-through": "source-over"
|
|
550
|
-
}[
|
|
550
|
+
}[d] || "source-over";
|
|
551
551
|
}
|
|
552
|
-
var
|
|
552
|
+
var vr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
553
553
|
function lt(r) {
|
|
554
554
|
if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
|
|
555
|
-
var
|
|
556
|
-
if (typeof
|
|
555
|
+
var d = r.default;
|
|
556
|
+
if (typeof d == "function") {
|
|
557
557
|
var t = function e() {
|
|
558
|
-
var
|
|
558
|
+
var l = !1;
|
|
559
559
|
try {
|
|
560
|
-
|
|
560
|
+
l = this instanceof e;
|
|
561
561
|
} catch {
|
|
562
562
|
}
|
|
563
|
-
return
|
|
563
|
+
return l ? Reflect.construct(d, arguments, this.constructor) : d.apply(this, arguments);
|
|
564
564
|
};
|
|
565
|
-
t.prototype =
|
|
565
|
+
t.prototype = d.prototype;
|
|
566
566
|
} else t = {};
|
|
567
567
|
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(r).forEach(function(e) {
|
|
568
|
-
var
|
|
569
|
-
Object.defineProperty(t, e,
|
|
568
|
+
var l = Object.getOwnPropertyDescriptor(r, e);
|
|
569
|
+
Object.defineProperty(t, e, l.get ? l : {
|
|
570
570
|
enumerable: !0,
|
|
571
571
|
get: function() {
|
|
572
572
|
return r[e];
|
|
@@ -583,27 +583,27 @@ var w0 = { exports: {} }, vt = {}, pt = /* @__PURE__ */ Object.freeze({
|
|
|
583
583
|
default: vt
|
|
584
584
|
}), Bt = /* @__PURE__ */ lt(pt), Ct = w0.exports, Or;
|
|
585
585
|
function M() {
|
|
586
|
-
return Or || (Or = 1, (function(r,
|
|
586
|
+
return Or || (Or = 1, (function(r, d) {
|
|
587
587
|
(function(t, e) {
|
|
588
588
|
r.exports = e();
|
|
589
589
|
})(Ct, function() {
|
|
590
|
-
var t = t || (function(e,
|
|
591
|
-
var
|
|
592
|
-
if (typeof window < "u" && window.crypto && (
|
|
590
|
+
var t = t || (function(e, l) {
|
|
591
|
+
var v;
|
|
592
|
+
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
593
|
try {
|
|
594
|
-
|
|
594
|
+
v = Bt;
|
|
595
595
|
} catch {
|
|
596
596
|
}
|
|
597
597
|
var m = function() {
|
|
598
|
-
if (
|
|
599
|
-
if (typeof
|
|
598
|
+
if (v) {
|
|
599
|
+
if (typeof v.getRandomValues == "function")
|
|
600
600
|
try {
|
|
601
|
-
return
|
|
601
|
+
return v.getRandomValues(new Uint32Array(1))[0];
|
|
602
602
|
} catch {
|
|
603
603
|
}
|
|
604
|
-
if (typeof
|
|
604
|
+
if (typeof v.randomBytes == "function")
|
|
605
605
|
try {
|
|
606
|
-
return
|
|
606
|
+
return v.randomBytes(4).readInt32LE();
|
|
607
607
|
} catch {
|
|
608
608
|
}
|
|
609
609
|
}
|
|
@@ -612,8 +612,8 @@ function M() {
|
|
|
612
612
|
function i() {
|
|
613
613
|
}
|
|
614
614
|
return function(o) {
|
|
615
|
-
var
|
|
616
|
-
return i.prototype = o,
|
|
615
|
+
var u;
|
|
616
|
+
return i.prototype = o, u = new i(), i.prototype = null, u;
|
|
617
617
|
};
|
|
618
618
|
})(), C = {}, x = C.lib = {}, n = x.Base = /* @__PURE__ */ (function() {
|
|
619
619
|
return {
|
|
@@ -714,7 +714,7 @@ function M() {
|
|
|
714
714
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
|
|
715
715
|
*/
|
|
716
716
|
init: function(i, o) {
|
|
717
|
-
i = this.words = i || [], o !=
|
|
717
|
+
i = this.words = i || [], o != l ? this.sigBytes = o : this.sigBytes = i.length * 4;
|
|
718
718
|
},
|
|
719
719
|
/**
|
|
720
720
|
* Converts this word array to a string.
|
|
@@ -744,15 +744,15 @@ function M() {
|
|
|
744
744
|
* wordArray1.concat(wordArray2);
|
|
745
745
|
*/
|
|
746
746
|
concat: function(i) {
|
|
747
|
-
var o = this.words,
|
|
747
|
+
var o = this.words, u = i.words, b = this.sigBytes, g = i.sigBytes;
|
|
748
748
|
if (this.clamp(), b % 4)
|
|
749
749
|
for (var y = 0; y < g; y++) {
|
|
750
|
-
var k =
|
|
750
|
+
var k = u[y >>> 2] >>> 24 - y % 4 * 8 & 255;
|
|
751
751
|
o[b + y >>> 2] |= k << 24 - (b + y) % 4 * 8;
|
|
752
752
|
}
|
|
753
753
|
else
|
|
754
754
|
for (var R = 0; R < g; R += 4)
|
|
755
|
-
o[b + R >>> 2] =
|
|
755
|
+
o[b + R >>> 2] = u[R >>> 2];
|
|
756
756
|
return this.sigBytes += g, this;
|
|
757
757
|
},
|
|
758
758
|
/**
|
|
@@ -793,7 +793,7 @@ function M() {
|
|
|
793
793
|
* var wordArray = CryptoJS.lib.WordArray.random(16);
|
|
794
794
|
*/
|
|
795
795
|
random: function(i) {
|
|
796
|
-
for (var o = [],
|
|
796
|
+
for (var o = [], u = 0; u < i; u += 4)
|
|
797
797
|
o.push(m());
|
|
798
798
|
return new E.init(o, i);
|
|
799
799
|
}
|
|
@@ -812,7 +812,7 @@ function M() {
|
|
|
812
812
|
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
813
813
|
*/
|
|
814
814
|
stringify: function(i) {
|
|
815
|
-
for (var o = i.words,
|
|
815
|
+
for (var o = i.words, u = i.sigBytes, b = [], g = 0; g < u; g++) {
|
|
816
816
|
var y = o[g >>> 2] >>> 24 - g % 4 * 8 & 255;
|
|
817
817
|
b.push((y >>> 4).toString(16)), b.push((y & 15).toString(16));
|
|
818
818
|
}
|
|
@@ -832,9 +832,9 @@ function M() {
|
|
|
832
832
|
* var wordArray = CryptoJS.enc.Hex.parse(hexString);
|
|
833
833
|
*/
|
|
834
834
|
parse: function(i) {
|
|
835
|
-
for (var o = i.length,
|
|
836
|
-
|
|
837
|
-
return new E.init(
|
|
835
|
+
for (var o = i.length, u = [], b = 0; b < o; b += 2)
|
|
836
|
+
u[b >>> 3] |= parseInt(i.substr(b, 2), 16) << 24 - b % 8 * 4;
|
|
837
|
+
return new E.init(u, o / 2);
|
|
838
838
|
}
|
|
839
839
|
}, f = a.Latin1 = {
|
|
840
840
|
/**
|
|
@@ -851,7 +851,7 @@ function M() {
|
|
|
851
851
|
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
852
852
|
*/
|
|
853
853
|
stringify: function(i) {
|
|
854
|
-
for (var o = i.words,
|
|
854
|
+
for (var o = i.words, u = i.sigBytes, b = [], g = 0; g < u; g++) {
|
|
855
855
|
var y = o[g >>> 2] >>> 24 - g % 4 * 8 & 255;
|
|
856
856
|
b.push(String.fromCharCode(y));
|
|
857
857
|
}
|
|
@@ -871,11 +871,11 @@ function M() {
|
|
|
871
871
|
* var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
|
|
872
872
|
*/
|
|
873
873
|
parse: function(i) {
|
|
874
|
-
for (var o = i.length,
|
|
875
|
-
|
|
876
|
-
return new E.init(
|
|
874
|
+
for (var o = i.length, u = [], b = 0; b < o; b++)
|
|
875
|
+
u[b >>> 2] |= (i.charCodeAt(b) & 255) << 24 - b % 4 * 8;
|
|
876
|
+
return new E.init(u, o);
|
|
877
877
|
}
|
|
878
|
-
},
|
|
878
|
+
}, p = a.Utf8 = {
|
|
879
879
|
/**
|
|
880
880
|
* Converts a word array to a UTF-8 string.
|
|
881
881
|
*
|
|
@@ -912,7 +912,7 @@ function M() {
|
|
|
912
912
|
parse: function(i) {
|
|
913
913
|
return f.parse(unescape(encodeURIComponent(i)));
|
|
914
914
|
}
|
|
915
|
-
},
|
|
915
|
+
}, h = x.BufferedBlockAlgorithm = n.extend({
|
|
916
916
|
/**
|
|
917
917
|
* Resets this block algorithm's data buffer to its initial state.
|
|
918
918
|
*
|
|
@@ -934,7 +934,7 @@ function M() {
|
|
|
934
934
|
* bufferedBlockAlgorithm._append(wordArray);
|
|
935
935
|
*/
|
|
936
936
|
_append: function(i) {
|
|
937
|
-
typeof i == "string" && (i =
|
|
937
|
+
typeof i == "string" && (i = p.parse(i)), this._data.concat(i), this._nDataBytes += i.sigBytes;
|
|
938
938
|
},
|
|
939
939
|
/**
|
|
940
940
|
* Processes available data blocks.
|
|
@@ -951,13 +951,13 @@ function M() {
|
|
|
951
951
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
952
952
|
*/
|
|
953
953
|
_process: function(i) {
|
|
954
|
-
var o,
|
|
954
|
+
var o, u = this._data, b = u.words, g = u.sigBytes, y = this.blockSize, k = y * 4, R = g / k;
|
|
955
955
|
i ? R = e.ceil(R) : R = e.max((R | 0) - this._minBufferSize, 0);
|
|
956
956
|
var F = R * y, w = e.min(F * 4, g);
|
|
957
957
|
if (F) {
|
|
958
958
|
for (var H = 0; H < F; H += y)
|
|
959
959
|
this._doProcessBlock(b, H);
|
|
960
|
-
o = b.splice(0, F),
|
|
960
|
+
o = b.splice(0, F), u.sigBytes -= w;
|
|
961
961
|
}
|
|
962
962
|
return new E.init(o, w);
|
|
963
963
|
},
|
|
@@ -976,7 +976,7 @@ function M() {
|
|
|
976
976
|
},
|
|
977
977
|
_minBufferSize: 0
|
|
978
978
|
});
|
|
979
|
-
x.Hasher =
|
|
979
|
+
x.Hasher = h.extend({
|
|
980
980
|
/**
|
|
981
981
|
* Configuration options.
|
|
982
982
|
*/
|
|
@@ -1001,7 +1001,7 @@ function M() {
|
|
|
1001
1001
|
* hasher.reset();
|
|
1002
1002
|
*/
|
|
1003
1003
|
reset: function() {
|
|
1004
|
-
|
|
1004
|
+
h.reset.call(this), this._doReset();
|
|
1005
1005
|
},
|
|
1006
1006
|
/**
|
|
1007
1007
|
* Updates this hasher with a message.
|
|
@@ -1052,8 +1052,8 @@ function M() {
|
|
|
1052
1052
|
* var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
|
|
1053
1053
|
*/
|
|
1054
1054
|
_createHelper: function(i) {
|
|
1055
|
-
return function(o,
|
|
1056
|
-
return new i.init(
|
|
1055
|
+
return function(o, u) {
|
|
1056
|
+
return new i.init(u).finalize(o);
|
|
1057
1057
|
};
|
|
1058
1058
|
},
|
|
1059
1059
|
/**
|
|
@@ -1070,8 +1070,8 @@ function M() {
|
|
|
1070
1070
|
* var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
|
|
1071
1071
|
*/
|
|
1072
1072
|
_createHmacHelper: function(i) {
|
|
1073
|
-
return function(o,
|
|
1074
|
-
return new D.HMAC.init(i,
|
|
1073
|
+
return function(o, u) {
|
|
1074
|
+
return new D.HMAC.init(i, u).finalize(o);
|
|
1075
1075
|
};
|
|
1076
1076
|
}
|
|
1077
1077
|
});
|
|
@@ -1083,13 +1083,13 @@ function M() {
|
|
|
1083
1083
|
})(w0)), w0.exports;
|
|
1084
1084
|
}
|
|
1085
1085
|
var k0 = { exports: {} }, Et = k0.exports, qr;
|
|
1086
|
-
function
|
|
1087
|
-
return qr || (qr = 1, (function(r,
|
|
1086
|
+
function dr() {
|
|
1087
|
+
return qr || (qr = 1, (function(r, d) {
|
|
1088
1088
|
(function(t, e) {
|
|
1089
1089
|
r.exports = e(M());
|
|
1090
1090
|
})(Et, function(t) {
|
|
1091
1091
|
return (function(e) {
|
|
1092
|
-
var
|
|
1092
|
+
var l = t, v = l.lib, m = v.Base, B = v.WordArray, C = l.x64 = {};
|
|
1093
1093
|
C.Word = m.extend({
|
|
1094
1094
|
/**
|
|
1095
1095
|
* Initializes a newly created 64-bit word.
|
|
@@ -1314,13 +1314,13 @@ function ur() {
|
|
|
1314
1314
|
}
|
|
1315
1315
|
var S0 = { exports: {} }, At = S0.exports, Tr;
|
|
1316
1316
|
function Ft() {
|
|
1317
|
-
return Tr || (Tr = 1, (function(r,
|
|
1317
|
+
return Tr || (Tr = 1, (function(r, d) {
|
|
1318
1318
|
(function(t, e) {
|
|
1319
1319
|
r.exports = e(M());
|
|
1320
1320
|
})(At, function(t) {
|
|
1321
1321
|
return (function() {
|
|
1322
1322
|
if (typeof ArrayBuffer == "function") {
|
|
1323
|
-
var e = t,
|
|
1323
|
+
var e = t, l = e.lib, v = l.WordArray, m = v.init, B = v.init = function(C) {
|
|
1324
1324
|
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
1325
|
for (var x = C.byteLength, n = [], E = 0; E < x; E++)
|
|
1326
1326
|
n[E >>> 2] |= C[E] << 24 - E % 4 * 8;
|
|
@@ -1328,7 +1328,7 @@ function Ft() {
|
|
|
1328
1328
|
} else
|
|
1329
1329
|
m.apply(this, arguments);
|
|
1330
1330
|
};
|
|
1331
|
-
B.prototype =
|
|
1331
|
+
B.prototype = v;
|
|
1332
1332
|
}
|
|
1333
1333
|
})(), t.lib.WordArray;
|
|
1334
1334
|
});
|
|
@@ -1336,12 +1336,12 @@ function Ft() {
|
|
|
1336
1336
|
}
|
|
1337
1337
|
var H0 = { exports: {} }, gt = H0.exports, Mr;
|
|
1338
1338
|
function Dt() {
|
|
1339
|
-
return Mr || (Mr = 1, (function(r,
|
|
1339
|
+
return Mr || (Mr = 1, (function(r, d) {
|
|
1340
1340
|
(function(t, e) {
|
|
1341
1341
|
r.exports = e(M());
|
|
1342
1342
|
})(gt, function(t) {
|
|
1343
1343
|
return (function() {
|
|
1344
|
-
var e = t,
|
|
1344
|
+
var e = t, l = e.lib, v = l.WordArray, m = e.enc;
|
|
1345
1345
|
m.Utf16 = m.Utf16BE = {
|
|
1346
1346
|
/**
|
|
1347
1347
|
* Converts a word array to a UTF-16 BE string.
|
|
@@ -1379,7 +1379,7 @@ function Dt() {
|
|
|
1379
1379
|
parse: function(C) {
|
|
1380
1380
|
for (var x = C.length, n = [], E = 0; E < x; E++)
|
|
1381
1381
|
n[E >>> 1] |= C.charCodeAt(E) << 16 - E % 2 * 16;
|
|
1382
|
-
return
|
|
1382
|
+
return v.create(n, x * 2);
|
|
1383
1383
|
}
|
|
1384
1384
|
}, m.Utf16LE = {
|
|
1385
1385
|
/**
|
|
@@ -1418,7 +1418,7 @@ function Dt() {
|
|
|
1418
1418
|
parse: function(C) {
|
|
1419
1419
|
for (var x = C.length, n = [], E = 0; E < x; E++)
|
|
1420
1420
|
n[E >>> 1] |= B(C.charCodeAt(E) << 16 - E % 2 * 16);
|
|
1421
|
-
return
|
|
1421
|
+
return v.create(n, x * 2);
|
|
1422
1422
|
}
|
|
1423
1423
|
};
|
|
1424
1424
|
function B(C) {
|
|
@@ -1430,12 +1430,12 @@ function Dt() {
|
|
|
1430
1430
|
}
|
|
1431
1431
|
var $0 = { exports: {} }, bt = $0.exports, Nr;
|
|
1432
1432
|
function s0() {
|
|
1433
|
-
return Nr || (Nr = 1, (function(r,
|
|
1433
|
+
return Nr || (Nr = 1, (function(r, d) {
|
|
1434
1434
|
(function(t, e) {
|
|
1435
1435
|
r.exports = e(M());
|
|
1436
1436
|
})(bt, function(t) {
|
|
1437
1437
|
return (function() {
|
|
1438
|
-
var e = t,
|
|
1438
|
+
var e = t, l = e.lib, v = l.WordArray, m = e.enc;
|
|
1439
1439
|
m.Base64 = {
|
|
1440
1440
|
/**
|
|
1441
1441
|
* Converts a word array to a Base64 string.
|
|
@@ -1454,7 +1454,7 @@ function s0() {
|
|
|
1454
1454
|
var x = C.words, n = C.sigBytes, E = this._map;
|
|
1455
1455
|
C.clamp();
|
|
1456
1456
|
for (var a = [], s = 0; s < n; s += 3)
|
|
1457
|
-
for (var f = x[s >>> 2] >>> 24 - s % 4 * 8 & 255,
|
|
1457
|
+
for (var f = x[s >>> 2] >>> 24 - s % 4 * 8 & 255, p = x[s + 1 >>> 2] >>> 24 - (s + 1) % 4 * 8 & 255, h = x[s + 2 >>> 2] >>> 24 - (s + 2) % 4 * 8 & 255, D = f << 16 | p << 8 | h, i = 0; i < 4 && s + i * 0.75 < n; i++)
|
|
1458
1458
|
a.push(E.charAt(D >>> 6 * (3 - i) & 63));
|
|
1459
1459
|
var o = E.charAt(64);
|
|
1460
1460
|
if (o)
|
|
@@ -1494,10 +1494,10 @@ function s0() {
|
|
|
1494
1494
|
function B(C, x, n) {
|
|
1495
1495
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1496
1496
|
if (s % 4) {
|
|
1497
|
-
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2,
|
|
1498
|
-
E[a >>> 2] |=
|
|
1497
|
+
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, p = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, h = f | p;
|
|
1498
|
+
E[a >>> 2] |= h << 24 - a % 4 * 8, a++;
|
|
1499
1499
|
}
|
|
1500
|
-
return
|
|
1500
|
+
return v.create(E, a);
|
|
1501
1501
|
}
|
|
1502
1502
|
})(), t.enc.Base64;
|
|
1503
1503
|
});
|
|
@@ -1505,12 +1505,12 @@ function s0() {
|
|
|
1505
1505
|
}
|
|
1506
1506
|
var R0 = { exports: {} }, mt = R0.exports, Ur;
|
|
1507
1507
|
function _t() {
|
|
1508
|
-
return Ur || (Ur = 1, (function(r,
|
|
1508
|
+
return Ur || (Ur = 1, (function(r, d) {
|
|
1509
1509
|
(function(t, e) {
|
|
1510
1510
|
r.exports = e(M());
|
|
1511
1511
|
})(mt, function(t) {
|
|
1512
1512
|
return (function() {
|
|
1513
|
-
var e = t,
|
|
1513
|
+
var e = t, l = e.lib, v = l.WordArray, m = e.enc;
|
|
1514
1514
|
m.Base64url = {
|
|
1515
1515
|
/**
|
|
1516
1516
|
* Converts a word array to a Base64url string.
|
|
@@ -1532,12 +1532,12 @@ function _t() {
|
|
|
1532
1532
|
var n = C.words, E = C.sigBytes, a = x ? this._safe_map : this._map;
|
|
1533
1533
|
C.clamp();
|
|
1534
1534
|
for (var s = [], f = 0; f < E; f += 3)
|
|
1535
|
-
for (var
|
|
1535
|
+
for (var p = n[f >>> 2] >>> 24 - f % 4 * 8 & 255, h = n[f + 1 >>> 2] >>> 24 - (f + 1) % 4 * 8 & 255, D = n[f + 2 >>> 2] >>> 24 - (f + 2) % 4 * 8 & 255, i = p << 16 | h << 8 | D, o = 0; o < 4 && f + o * 0.75 < E; o++)
|
|
1536
1536
|
s.push(a.charAt(i >>> 6 * (3 - o) & 63));
|
|
1537
|
-
var
|
|
1538
|
-
if (
|
|
1537
|
+
var u = a.charAt(64);
|
|
1538
|
+
if (u)
|
|
1539
1539
|
for (; s.length % 4; )
|
|
1540
|
-
s.push(
|
|
1540
|
+
s.push(u);
|
|
1541
1541
|
return s.join("");
|
|
1542
1542
|
},
|
|
1543
1543
|
/**
|
|
@@ -1565,8 +1565,8 @@ function _t() {
|
|
|
1565
1565
|
}
|
|
1566
1566
|
var f = E.charAt(64);
|
|
1567
1567
|
if (f) {
|
|
1568
|
-
var
|
|
1569
|
-
|
|
1568
|
+
var p = C.indexOf(f);
|
|
1569
|
+
p !== -1 && (n = p);
|
|
1570
1570
|
}
|
|
1571
1571
|
return B(C, n, a);
|
|
1572
1572
|
},
|
|
@@ -1576,10 +1576,10 @@ function _t() {
|
|
|
1576
1576
|
function B(C, x, n) {
|
|
1577
1577
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1578
1578
|
if (s % 4) {
|
|
1579
|
-
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2,
|
|
1580
|
-
E[a >>> 2] |=
|
|
1579
|
+
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, p = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, h = f | p;
|
|
1580
|
+
E[a >>> 2] |= h << 24 - a % 4 * 8, a++;
|
|
1581
1581
|
}
|
|
1582
|
-
return
|
|
1582
|
+
return v.create(E, a);
|
|
1583
1583
|
}
|
|
1584
1584
|
})(), t.enc.Base64url;
|
|
1585
1585
|
});
|
|
@@ -1587,15 +1587,15 @@ function _t() {
|
|
|
1587
1587
|
}
|
|
1588
1588
|
var P0 = { exports: {} }, yt = P0.exports, jr;
|
|
1589
1589
|
function c0() {
|
|
1590
|
-
return jr || (jr = 1, (function(r,
|
|
1590
|
+
return jr || (jr = 1, (function(r, d) {
|
|
1591
1591
|
(function(t, e) {
|
|
1592
1592
|
r.exports = e(M());
|
|
1593
1593
|
})(yt, function(t) {
|
|
1594
1594
|
return (function(e) {
|
|
1595
|
-
var
|
|
1595
|
+
var l = t, v = l.lib, m = v.WordArray, B = v.Hasher, C = l.algo, x = [];
|
|
1596
1596
|
(function() {
|
|
1597
|
-
for (var
|
|
1598
|
-
x[
|
|
1597
|
+
for (var p = 0; p < 64; p++)
|
|
1598
|
+
x[p] = e.abs(e.sin(p + 1)) * 4294967296 | 0;
|
|
1599
1599
|
})();
|
|
1600
1600
|
var n = C.MD5 = B.extend({
|
|
1601
1601
|
_doReset: function() {
|
|
@@ -1606,19 +1606,19 @@ function c0() {
|
|
|
1606
1606
|
271733878
|
|
1607
1607
|
]);
|
|
1608
1608
|
},
|
|
1609
|
-
_doProcessBlock: function(
|
|
1609
|
+
_doProcessBlock: function(p, h) {
|
|
1610
1610
|
for (var D = 0; D < 16; D++) {
|
|
1611
|
-
var i =
|
|
1612
|
-
|
|
1611
|
+
var i = h + D, o = p[i];
|
|
1612
|
+
p[i] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360;
|
|
1613
1613
|
}
|
|
1614
|
-
var
|
|
1615
|
-
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, z, 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, _, z, 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, _, z, 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, z, 21, x[63]),
|
|
1614
|
+
var u = this._hash.words, b = p[h + 0], g = p[h + 1], y = p[h + 2], k = p[h + 3], R = p[h + 4], F = p[h + 5], w = p[h + 6], H = p[h + 7], $ = p[h + 8], z = p[h + 9], O = p[h + 10], q = p[h + 11], U = p[h + 12], T = p[h + 13], N = p[h + 14], j = p[h + 15], S = u[0], c = u[1], A = u[2], _ = u[3];
|
|
1615
|
+
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, z, 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, _, z, 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, _, z, 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, z, 21, x[63]), u[0] = u[0] + S | 0, u[1] = u[1] + c | 0, u[2] = u[2] + A | 0, u[3] = u[3] + _ | 0;
|
|
1616
1616
|
},
|
|
1617
1617
|
_doFinalize: function() {
|
|
1618
|
-
var
|
|
1619
|
-
|
|
1620
|
-
var o = e.floor(D / 4294967296),
|
|
1621
|
-
|
|
1618
|
+
var p = this._data, h = p.words, D = this._nDataBytes * 8, i = p.sigBytes * 8;
|
|
1619
|
+
h[i >>> 5] |= 128 << 24 - i % 32;
|
|
1620
|
+
var o = e.floor(D / 4294967296), u = D;
|
|
1621
|
+
h[(i + 64 >>> 9 << 4) + 15] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, h[(i + 64 >>> 9 << 4) + 14] = (u << 8 | u >>> 24) & 16711935 | (u << 24 | u >>> 8) & 4278255360, p.sigBytes = (h.length + 1) * 4, this._process();
|
|
1622
1622
|
for (var b = this._hash, g = b.words, y = 0; y < 4; y++) {
|
|
1623
1623
|
var k = g[y];
|
|
1624
1624
|
g[y] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
|
|
@@ -1626,41 +1626,41 @@ function c0() {
|
|
|
1626
1626
|
return b;
|
|
1627
1627
|
},
|
|
1628
1628
|
clone: function() {
|
|
1629
|
-
var
|
|
1630
|
-
return
|
|
1629
|
+
var p = B.clone.call(this);
|
|
1630
|
+
return p._hash = this._hash.clone(), p;
|
|
1631
1631
|
}
|
|
1632
1632
|
});
|
|
1633
|
-
function E(
|
|
1634
|
-
var g =
|
|
1635
|
-
return (g <<
|
|
1633
|
+
function E(p, h, D, i, o, u, b) {
|
|
1634
|
+
var g = p + (h & D | ~h & i) + o + b;
|
|
1635
|
+
return (g << u | g >>> 32 - u) + h;
|
|
1636
1636
|
}
|
|
1637
|
-
function a(
|
|
1638
|
-
var g =
|
|
1639
|
-
return (g <<
|
|
1637
|
+
function a(p, h, D, i, o, u, b) {
|
|
1638
|
+
var g = p + (h & i | D & ~i) + o + b;
|
|
1639
|
+
return (g << u | g >>> 32 - u) + h;
|
|
1640
1640
|
}
|
|
1641
|
-
function s(
|
|
1642
|
-
var g =
|
|
1643
|
-
return (g <<
|
|
1641
|
+
function s(p, h, D, i, o, u, b) {
|
|
1642
|
+
var g = p + (h ^ D ^ i) + o + b;
|
|
1643
|
+
return (g << u | g >>> 32 - u) + h;
|
|
1644
1644
|
}
|
|
1645
|
-
function f(
|
|
1646
|
-
var g =
|
|
1647
|
-
return (g <<
|
|
1645
|
+
function f(p, h, D, i, o, u, b) {
|
|
1646
|
+
var g = p + (D ^ (h | ~i)) + o + b;
|
|
1647
|
+
return (g << u | g >>> 32 - u) + h;
|
|
1648
1648
|
}
|
|
1649
|
-
|
|
1649
|
+
l.MD5 = B._createHelper(n), l.HmacMD5 = B._createHmacHelper(n);
|
|
1650
1650
|
})(Math), t.MD5;
|
|
1651
1651
|
});
|
|
1652
1652
|
})(P0)), P0.exports;
|
|
1653
1653
|
}
|
|
1654
1654
|
var z0 = { exports: {} }, wt = z0.exports, Gr;
|
|
1655
1655
|
function ke() {
|
|
1656
|
-
return Gr || (Gr = 1, (function(r,
|
|
1656
|
+
return Gr || (Gr = 1, (function(r, d) {
|
|
1657
1657
|
(function(t, e) {
|
|
1658
1658
|
r.exports = e(M());
|
|
1659
1659
|
})(wt, function(t) {
|
|
1660
1660
|
return (function() {
|
|
1661
|
-
var e = t,
|
|
1661
|
+
var e = t, l = e.lib, v = l.WordArray, m = l.Hasher, B = e.algo, C = [], x = B.SHA1 = m.extend({
|
|
1662
1662
|
_doReset: function() {
|
|
1663
|
-
this._hash = new
|
|
1663
|
+
this._hash = new v.init([
|
|
1664
1664
|
1732584193,
|
|
1665
1665
|
4023233417,
|
|
1666
1666
|
2562383102,
|
|
@@ -1669,17 +1669,17 @@ function ke() {
|
|
|
1669
1669
|
]);
|
|
1670
1670
|
},
|
|
1671
1671
|
_doProcessBlock: function(n, E) {
|
|
1672
|
-
for (var a = this._hash.words, s = a[0], f = a[1],
|
|
1672
|
+
for (var a = this._hash.words, s = a[0], f = a[1], p = a[2], h = a[3], D = a[4], i = 0; i < 80; i++) {
|
|
1673
1673
|
if (i < 16)
|
|
1674
1674
|
C[i] = n[E + i] | 0;
|
|
1675
1675
|
else {
|
|
1676
1676
|
var o = C[i - 3] ^ C[i - 8] ^ C[i - 14] ^ C[i - 16];
|
|
1677
1677
|
C[i] = o << 1 | o >>> 31;
|
|
1678
1678
|
}
|
|
1679
|
-
var
|
|
1680
|
-
i < 20 ?
|
|
1679
|
+
var u = (s << 5 | s >>> 27) + D + C[i];
|
|
1680
|
+
i < 20 ? u += (f & p | ~f & h) + 1518500249 : i < 40 ? u += (f ^ p ^ h) + 1859775393 : i < 60 ? u += (f & p | f & h | p & h) - 1894007588 : u += (f ^ p ^ h) - 899497514, D = h, h = p, p = f << 30 | f >>> 2, f = s, s = u;
|
|
1681
1681
|
}
|
|
1682
|
-
a[0] = a[0] + s | 0, a[1] = a[1] + f | 0, a[2] = a[2] +
|
|
1682
|
+
a[0] = a[0] + s | 0, a[1] = a[1] + f | 0, a[2] = a[2] + p | 0, a[3] = a[3] + h | 0, a[4] = a[4] + D | 0;
|
|
1683
1683
|
},
|
|
1684
1684
|
_doFinalize: function() {
|
|
1685
1685
|
var n = this._data, E = n.words, a = this._nDataBytes * 8, s = n.sigBytes * 8;
|
|
@@ -1695,14 +1695,14 @@ function ke() {
|
|
|
1695
1695
|
});
|
|
1696
1696
|
})(z0)), z0.exports;
|
|
1697
1697
|
}
|
|
1698
|
-
var W0 = { exports: {} }, kt = W0.exports,
|
|
1698
|
+
var W0 = { exports: {} }, kt = W0.exports, Xr;
|
|
1699
1699
|
function Fr() {
|
|
1700
|
-
return
|
|
1700
|
+
return Xr || (Xr = 1, (function(r, d) {
|
|
1701
1701
|
(function(t, e) {
|
|
1702
1702
|
r.exports = e(M());
|
|
1703
1703
|
})(kt, function(t) {
|
|
1704
1704
|
return (function(e) {
|
|
1705
|
-
var
|
|
1705
|
+
var l = t, v = l.lib, m = v.WordArray, B = v.Hasher, C = l.algo, x = [], n = [];
|
|
1706
1706
|
(function() {
|
|
1707
1707
|
function s(D) {
|
|
1708
1708
|
for (var i = e.sqrt(D), o = 2; o <= i; o++)
|
|
@@ -1713,50 +1713,50 @@ function Fr() {
|
|
|
1713
1713
|
function f(D) {
|
|
1714
1714
|
return (D - (D | 0)) * 4294967296 | 0;
|
|
1715
1715
|
}
|
|
1716
|
-
for (var
|
|
1717
|
-
s(
|
|
1716
|
+
for (var p = 2, h = 0; h < 64; )
|
|
1717
|
+
s(p) && (h < 8 && (x[h] = f(e.pow(p, 1 / 2))), n[h] = f(e.pow(p, 1 / 3)), h++), p++;
|
|
1718
1718
|
})();
|
|
1719
1719
|
var E = [], a = C.SHA256 = B.extend({
|
|
1720
1720
|
_doReset: function() {
|
|
1721
1721
|
this._hash = new m.init(x.slice(0));
|
|
1722
1722
|
},
|
|
1723
1723
|
_doProcessBlock: function(s, f) {
|
|
1724
|
-
for (var
|
|
1724
|
+
for (var p = this._hash.words, h = p[0], D = p[1], i = p[2], o = p[3], u = p[4], b = p[5], g = p[6], y = p[7], k = 0; k < 64; k++) {
|
|
1725
1725
|
if (k < 16)
|
|
1726
1726
|
E[k] = s[f + k] | 0;
|
|
1727
1727
|
else {
|
|
1728
1728
|
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
1729
|
E[k] = F + E[k - 7] + H + E[k - 16];
|
|
1730
1730
|
}
|
|
1731
|
-
var $ =
|
|
1732
|
-
y = g, g = b, b =
|
|
1731
|
+
var $ = u & b ^ ~u & g, z = h & D ^ h & i ^ D & i, O = (h << 30 | h >>> 2) ^ (h << 19 | h >>> 13) ^ (h << 10 | h >>> 22), q = (u << 26 | u >>> 6) ^ (u << 21 | u >>> 11) ^ (u << 7 | u >>> 25), U = y + q + $ + n[k] + E[k], T = O + z;
|
|
1732
|
+
y = g, g = b, b = u, u = o + U | 0, o = i, i = D, D = h, h = U + T | 0;
|
|
1733
1733
|
}
|
|
1734
|
-
|
|
1734
|
+
p[0] = p[0] + h | 0, p[1] = p[1] + D | 0, p[2] = p[2] + i | 0, p[3] = p[3] + o | 0, p[4] = p[4] + u | 0, p[5] = p[5] + b | 0, p[6] = p[6] + g | 0, p[7] = p[7] + y | 0;
|
|
1735
1735
|
},
|
|
1736
1736
|
_doFinalize: function() {
|
|
1737
|
-
var s = this._data, f = s.words,
|
|
1738
|
-
return f[
|
|
1737
|
+
var s = this._data, f = s.words, p = this._nDataBytes * 8, h = s.sigBytes * 8;
|
|
1738
|
+
return f[h >>> 5] |= 128 << 24 - h % 32, f[(h + 64 >>> 9 << 4) + 14] = e.floor(p / 4294967296), f[(h + 64 >>> 9 << 4) + 15] = p, s.sigBytes = f.length * 4, this._process(), this._hash;
|
|
1739
1739
|
},
|
|
1740
1740
|
clone: function() {
|
|
1741
1741
|
var s = B.clone.call(this);
|
|
1742
1742
|
return s._hash = this._hash.clone(), s;
|
|
1743
1743
|
}
|
|
1744
1744
|
});
|
|
1745
|
-
|
|
1745
|
+
l.SHA256 = B._createHelper(a), l.HmacSHA256 = B._createHmacHelper(a);
|
|
1746
1746
|
})(Math), t.SHA256;
|
|
1747
1747
|
});
|
|
1748
1748
|
})(W0)), W0.exports;
|
|
1749
1749
|
}
|
|
1750
|
-
var I0 = { exports: {} }, St = I0.exports,
|
|
1750
|
+
var I0 = { exports: {} }, St = I0.exports, Kr;
|
|
1751
1751
|
function Ht() {
|
|
1752
|
-
return
|
|
1753
|
-
(function(t, e,
|
|
1752
|
+
return Kr || (Kr = 1, (function(r, d) {
|
|
1753
|
+
(function(t, e, l) {
|
|
1754
1754
|
r.exports = e(M(), Fr());
|
|
1755
1755
|
})(St, function(t) {
|
|
1756
1756
|
return (function() {
|
|
1757
|
-
var e = t,
|
|
1757
|
+
var e = t, l = e.lib, v = l.WordArray, m = e.algo, B = m.SHA256, C = m.SHA224 = B.extend({
|
|
1758
1758
|
_doReset: function() {
|
|
1759
|
-
this._hash = new
|
|
1759
|
+
this._hash = new v.init([
|
|
1760
1760
|
3238371032,
|
|
1761
1761
|
914150663,
|
|
1762
1762
|
812702999,
|
|
@@ -1777,14 +1777,14 @@ function Ht() {
|
|
|
1777
1777
|
});
|
|
1778
1778
|
})(I0)), I0.exports;
|
|
1779
1779
|
}
|
|
1780
|
-
var L0 = { exports: {} }, $t = L0.exports,
|
|
1780
|
+
var L0 = { exports: {} }, $t = L0.exports, Zr;
|
|
1781
1781
|
function Se() {
|
|
1782
|
-
return
|
|
1783
|
-
(function(t, e,
|
|
1784
|
-
r.exports = e(M(),
|
|
1782
|
+
return Zr || (Zr = 1, (function(r, d) {
|
|
1783
|
+
(function(t, e, l) {
|
|
1784
|
+
r.exports = e(M(), dr());
|
|
1785
1785
|
})($t, function(t) {
|
|
1786
1786
|
return (function() {
|
|
1787
|
-
var e = t,
|
|
1787
|
+
var e = t, l = e.lib, v = l.Hasher, m = e.x64, B = m.Word, C = m.WordArray, x = e.algo;
|
|
1788
1788
|
function n() {
|
|
1789
1789
|
return B.create.apply(B, arguments);
|
|
1790
1790
|
}
|
|
@@ -1874,7 +1874,7 @@ function Se() {
|
|
|
1874
1874
|
for (var f = 0; f < 80; f++)
|
|
1875
1875
|
a[f] = n();
|
|
1876
1876
|
})();
|
|
1877
|
-
var s = x.SHA512 =
|
|
1877
|
+
var s = x.SHA512 = v.extend({
|
|
1878
1878
|
_doReset: function() {
|
|
1879
1879
|
this._hash = new C.init([
|
|
1880
1880
|
new B.init(1779033703, 4089235720),
|
|
@@ -1887,55 +1887,55 @@ function Se() {
|
|
|
1887
1887
|
new B.init(1541459225, 327033209)
|
|
1888
1888
|
]);
|
|
1889
1889
|
},
|
|
1890
|
-
_doProcessBlock: function(f,
|
|
1891
|
-
for (var
|
|
1890
|
+
_doProcessBlock: function(f, p) {
|
|
1891
|
+
for (var h = this._hash.words, D = h[0], i = h[1], o = h[2], u = h[3], b = h[4], g = h[5], y = h[6], k = h[7], R = D.high, F = D.low, w = i.high, H = i.low, $ = o.high, z = o.low, O = u.high, q = u.low, U = b.high, T = b.low, N = g.high, j = g.low, S = y.high, c = y.low, A = k.high, _ = k.low, W = R, P = F, L = w, I = H, Y = $, Q = z, o0 = O, X = q, G = U, Z = T, r0 = N, f0 = j, D0 = S, p0 = c, lr = A, B0 = _, e0 = 0; e0 < 80; e0++) {
|
|
1892
1892
|
var J, x0, b0 = a[e0];
|
|
1893
1893
|
if (e0 < 16)
|
|
1894
|
-
x0 = b0.high = f[
|
|
1894
|
+
x0 = b0.high = f[p + e0 * 2] | 0, J = b0.low = f[p + e0 * 2 + 1] | 0;
|
|
1895
1895
|
else {
|
|
1896
1896
|
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
1897
|
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
1898
|
}
|
|
1899
|
-
var Me = G & r0 ^ ~G & D0, Hr =
|
|
1900
|
-
|
|
1899
|
+
var Me = G & r0 ^ ~G & D0, Hr = Z & f0 ^ ~Z & p0, Ne = W & L ^ W & Y ^ L & Y, Ue = P & I ^ P & Q ^ I & Q, je = (W >>> 28 | P << 4) ^ (W << 30 | P >>> 2) ^ (W << 25 | P >>> 7), $r = (P >>> 28 | W << 4) ^ (P << 30 | W >>> 2) ^ (P << 25 | W >>> 7), Ge = (G >>> 14 | Z << 18) ^ (G >>> 18 | Z << 14) ^ (G << 23 | Z >>> 9), Xe = (Z >>> 14 | G << 18) ^ (Z >>> 18 | G << 14) ^ (Z << 23 | G >>> 9), Rr = E[e0], Ke = Rr.high, Pr = Rr.low, V = B0 + Xe, 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 + Ke + (V >>> 0 < Pr >>> 0 ? 1 : 0), V = V + J, n0 = n0 + x0 + (V >>> 0 < J >>> 0 ? 1 : 0), zr = $r + Ue, Ze = je + Ne + (zr >>> 0 < $r >>> 0 ? 1 : 0);
|
|
1900
|
+
lr = D0, B0 = p0, D0 = r0, p0 = f0, r0 = G, f0 = Z, Z = X + V | 0, G = o0 + n0 + (Z >>> 0 < X >>> 0 ? 1 : 0) | 0, o0 = Y, X = Q, Y = L, Q = I, L = W, I = P, P = V + zr | 0, W = n0 + Ze + (P >>> 0 < V >>> 0 ? 1 : 0) | 0;
|
|
1901
1901
|
}
|
|
1902
|
-
F = D.low = F + P, D.high = R + W + (F >>> 0 < P >>> 0 ? 1 : 0), H = i.low = H + I, i.high = w + L + (H >>> 0 < I >>> 0 ? 1 : 0), z = o.low = z + Q, o.high = $ +
|
|
1902
|
+
F = D.low = F + P, D.high = R + W + (F >>> 0 < P >>> 0 ? 1 : 0), H = i.low = H + I, i.high = w + L + (H >>> 0 < I >>> 0 ? 1 : 0), z = o.low = z + Q, o.high = $ + Y + (z >>> 0 < Q >>> 0 ? 1 : 0), q = u.low = q + X, u.high = O + o0 + (q >>> 0 < X >>> 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
1903
|
},
|
|
1904
1904
|
_doFinalize: function() {
|
|
1905
|
-
var f = this._data,
|
|
1906
|
-
|
|
1905
|
+
var f = this._data, p = f.words, h = this._nDataBytes * 8, D = f.sigBytes * 8;
|
|
1906
|
+
p[D >>> 5] |= 128 << 24 - D % 32, p[(D + 128 >>> 10 << 5) + 30] = Math.floor(h / 4294967296), p[(D + 128 >>> 10 << 5) + 31] = h, f.sigBytes = p.length * 4, this._process();
|
|
1907
1907
|
var i = this._hash.toX32();
|
|
1908
1908
|
return i;
|
|
1909
1909
|
},
|
|
1910
1910
|
clone: function() {
|
|
1911
|
-
var f =
|
|
1911
|
+
var f = v.clone.call(this);
|
|
1912
1912
|
return f._hash = this._hash.clone(), f;
|
|
1913
1913
|
},
|
|
1914
1914
|
blockSize: 1024 / 32
|
|
1915
1915
|
});
|
|
1916
|
-
e.SHA512 =
|
|
1916
|
+
e.SHA512 = v._createHelper(s), e.HmacSHA512 = v._createHmacHelper(s);
|
|
1917
1917
|
})(), t.SHA512;
|
|
1918
1918
|
});
|
|
1919
1919
|
})(L0)), L0.exports;
|
|
1920
1920
|
}
|
|
1921
|
-
var O0 = { exports: {} }, Rt = O0.exports,
|
|
1921
|
+
var O0 = { exports: {} }, Rt = O0.exports, Yr;
|
|
1922
1922
|
function Pt() {
|
|
1923
|
-
return
|
|
1924
|
-
(function(t, e,
|
|
1925
|
-
r.exports = e(M(),
|
|
1923
|
+
return Yr || (Yr = 1, (function(r, d) {
|
|
1924
|
+
(function(t, e, l) {
|
|
1925
|
+
r.exports = e(M(), dr(), Se());
|
|
1926
1926
|
})(Rt, function(t) {
|
|
1927
1927
|
return (function() {
|
|
1928
|
-
var e = t,
|
|
1928
|
+
var e = t, l = e.x64, v = l.Word, m = l.WordArray, B = e.algo, C = B.SHA512, x = B.SHA384 = C.extend({
|
|
1929
1929
|
_doReset: function() {
|
|
1930
1930
|
this._hash = new m.init([
|
|
1931
|
-
new
|
|
1932
|
-
new
|
|
1933
|
-
new
|
|
1934
|
-
new
|
|
1935
|
-
new
|
|
1936
|
-
new
|
|
1937
|
-
new
|
|
1938
|
-
new
|
|
1931
|
+
new v.init(3418070365, 3238371032),
|
|
1932
|
+
new v.init(1654270250, 914150663),
|
|
1933
|
+
new v.init(2438529370, 812702999),
|
|
1934
|
+
new v.init(355462360, 4144912697),
|
|
1935
|
+
new v.init(1731405415, 4290775857),
|
|
1936
|
+
new v.init(2394180231, 1750603025),
|
|
1937
|
+
new v.init(3675008525, 1694076839),
|
|
1938
|
+
new v.init(1203062813, 3204075428)
|
|
1939
1939
|
]);
|
|
1940
1940
|
},
|
|
1941
1941
|
_doFinalize: function() {
|
|
@@ -1950,21 +1950,21 @@ function Pt() {
|
|
|
1950
1950
|
}
|
|
1951
1951
|
var q0 = { exports: {} }, zt = q0.exports, Qr;
|
|
1952
1952
|
function Wt() {
|
|
1953
|
-
return Qr || (Qr = 1, (function(r,
|
|
1954
|
-
(function(t, e,
|
|
1955
|
-
r.exports = e(M(),
|
|
1953
|
+
return Qr || (Qr = 1, (function(r, d) {
|
|
1954
|
+
(function(t, e, l) {
|
|
1955
|
+
r.exports = e(M(), dr());
|
|
1956
1956
|
})(zt, function(t) {
|
|
1957
1957
|
return (function(e) {
|
|
1958
|
-
var
|
|
1958
|
+
var l = t, v = l.lib, m = v.WordArray, B = v.Hasher, C = l.x64, x = C.Word, n = l.algo, E = [], a = [], s = [];
|
|
1959
1959
|
(function() {
|
|
1960
|
-
for (var
|
|
1961
|
-
E[
|
|
1962
|
-
var o = D % 5,
|
|
1963
|
-
|
|
1960
|
+
for (var h = 1, D = 0, i = 0; i < 24; i++) {
|
|
1961
|
+
E[h + 5 * D] = (i + 1) * (i + 2) / 2 % 64;
|
|
1962
|
+
var o = D % 5, u = (2 * h + 3 * D) % 5;
|
|
1963
|
+
h = o, D = u;
|
|
1964
1964
|
}
|
|
1965
|
-
for (var
|
|
1965
|
+
for (var h = 0; h < 5; h++)
|
|
1966
1966
|
for (var D = 0; D < 5; D++)
|
|
1967
|
-
a[
|
|
1967
|
+
a[h + 5 * D] = D + (2 * h + 3 * D) % 5 * 5;
|
|
1968
1968
|
for (var b = 1, g = 0; g < 24; g++) {
|
|
1969
1969
|
for (var y = 0, k = 0, R = 0; R < 7; R++) {
|
|
1970
1970
|
if (b & 1) {
|
|
@@ -1978,10 +1978,10 @@ function Wt() {
|
|
|
1978
1978
|
})();
|
|
1979
1979
|
var f = [];
|
|
1980
1980
|
(function() {
|
|
1981
|
-
for (var
|
|
1982
|
-
f[
|
|
1981
|
+
for (var h = 0; h < 25; h++)
|
|
1982
|
+
f[h] = x.create();
|
|
1983
1983
|
})();
|
|
1984
|
-
var
|
|
1984
|
+
var p = n.SHA3 = B.extend({
|
|
1985
1985
|
/**
|
|
1986
1986
|
* Configuration options.
|
|
1987
1987
|
*
|
|
@@ -1994,15 +1994,15 @@ function Wt() {
|
|
|
1994
1994
|
outputLength: 512
|
|
1995
1995
|
}),
|
|
1996
1996
|
_doReset: function() {
|
|
1997
|
-
for (var
|
|
1998
|
-
|
|
1997
|
+
for (var h = this._state = [], D = 0; D < 25; D++)
|
|
1998
|
+
h[D] = new x.init();
|
|
1999
1999
|
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
|
|
2000
2000
|
},
|
|
2001
|
-
_doProcessBlock: function(
|
|
2002
|
-
for (var i = this._state, o = this.blockSize / 2,
|
|
2003
|
-
var b =
|
|
2001
|
+
_doProcessBlock: function(h, D) {
|
|
2002
|
+
for (var i = this._state, o = this.blockSize / 2, u = 0; u < o; u++) {
|
|
2003
|
+
var b = h[D + 2 * u], g = h[D + 2 * u + 1];
|
|
2004
2004
|
b = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, g = (g << 8 | g >>> 24) & 16711935 | (g << 24 | g >>> 8) & 4278255360;
|
|
2005
|
-
var y = i[
|
|
2005
|
+
var y = i[u];
|
|
2006
2006
|
y.high ^= g, y.low ^= b;
|
|
2007
2007
|
}
|
|
2008
2008
|
for (var k = 0; k < 24; k++) {
|
|
@@ -2037,35 +2037,35 @@ function Wt() {
|
|
|
2037
2037
|
}
|
|
2038
2038
|
},
|
|
2039
2039
|
_doFinalize: function() {
|
|
2040
|
-
var
|
|
2040
|
+
var h = this._data, D = h.words;
|
|
2041
2041
|
this._nDataBytes * 8;
|
|
2042
|
-
var i =
|
|
2043
|
-
D[i >>> 5] |= 1 << 24 - i % 32, D[(e.ceil((i + 1) / o) * o >>> 5) - 1] |= 128,
|
|
2044
|
-
for (var
|
|
2045
|
-
var R =
|
|
2042
|
+
var i = h.sigBytes * 8, o = this.blockSize * 32;
|
|
2043
|
+
D[i >>> 5] |= 1 << 24 - i % 32, D[(e.ceil((i + 1) / o) * o >>> 5) - 1] |= 128, h.sigBytes = D.length * 4, this._process();
|
|
2044
|
+
for (var u = this._state, b = this.cfg.outputLength / 8, g = b / 8, y = [], k = 0; k < g; k++) {
|
|
2045
|
+
var R = u[k], F = R.high, w = R.low;
|
|
2046
2046
|
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
2047
|
}
|
|
2048
2048
|
return new m.init(y, b);
|
|
2049
2049
|
},
|
|
2050
2050
|
clone: function() {
|
|
2051
|
-
for (var
|
|
2051
|
+
for (var h = B.clone.call(this), D = h._state = this._state.slice(0), i = 0; i < 25; i++)
|
|
2052
2052
|
D[i] = D[i].clone();
|
|
2053
|
-
return
|
|
2053
|
+
return h;
|
|
2054
2054
|
}
|
|
2055
2055
|
});
|
|
2056
|
-
|
|
2056
|
+
l.SHA3 = B._createHelper(p), l.HmacSHA3 = B._createHmacHelper(p);
|
|
2057
2057
|
})(Math), t.SHA3;
|
|
2058
2058
|
});
|
|
2059
2059
|
})(q0)), q0.exports;
|
|
2060
2060
|
}
|
|
2061
2061
|
var T0 = { exports: {} }, It = T0.exports, Vr;
|
|
2062
2062
|
function Lt() {
|
|
2063
|
-
return Vr || (Vr = 1, (function(r,
|
|
2063
|
+
return Vr || (Vr = 1, (function(r, d) {
|
|
2064
2064
|
(function(t, e) {
|
|
2065
2065
|
r.exports = e(M());
|
|
2066
2066
|
})(It, function(t) {
|
|
2067
2067
|
return (function(e) {
|
|
2068
|
-
var
|
|
2068
|
+
var l = t, v = l.lib, m = v.WordArray, B = v.Hasher, C = l.algo, x = m.create([
|
|
2069
2069
|
0,
|
|
2070
2070
|
1,
|
|
2071
2071
|
2,
|
|
@@ -2389,7 +2389,7 @@ function Lt() {
|
|
|
2389
2389
|
13,
|
|
2390
2390
|
11,
|
|
2391
2391
|
11
|
|
2392
|
-
]), s = m.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), f = m.create([1352829926, 1548603684, 1836072691, 2053994217, 0]),
|
|
2392
|
+
]), s = m.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), f = m.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), p = C.RIPEMD160 = B.extend({
|
|
2393
2393
|
_doReset: function() {
|
|
2394
2394
|
this._hash = m.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2395
2395
|
},
|
|
@@ -2401,7 +2401,7 @@ function Lt() {
|
|
|
2401
2401
|
var w = this._hash.words, H = s.words, $ = f.words, z = x.words, O = n.words, q = E.words, U = a.words, T, N, j, S, c, A, _, W, P, L;
|
|
2402
2402
|
A = T = w[0], _ = N = w[1], W = j = w[2], P = S = w[3], L = c = w[4];
|
|
2403
2403
|
for (var I, k = 0; k < 80; k += 1)
|
|
2404
|
-
I = T + g[y + z[k]] | 0, k < 16 ? I +=
|
|
2404
|
+
I = T + g[y + z[k]] | 0, k < 16 ? I += h(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 += u(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 += u(_, W, P) + $[0] : k < 32 ? I += o(_, W, P) + $[1] : k < 48 ? I += i(_, W, P) + $[2] : k < 64 ? I += D(_, W, P) + $[3] : I += h(_, W, P) + $[4], I = I | 0, I = b(I, U[k]), I = I + L | 0, A = L, L = P, P = b(W, 10), W = _, _ = I;
|
|
2405
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 + W | 0, w[0] = I;
|
|
2406
2406
|
},
|
|
2407
2407
|
_doFinalize: function() {
|
|
@@ -2418,7 +2418,7 @@ function Lt() {
|
|
|
2418
2418
|
return g._hash = this._hash.clone(), g;
|
|
2419
2419
|
}
|
|
2420
2420
|
});
|
|
2421
|
-
function
|
|
2421
|
+
function h(g, y, k) {
|
|
2422
2422
|
return g ^ y ^ k;
|
|
2423
2423
|
}
|
|
2424
2424
|
function D(g, y, k) {
|
|
@@ -2430,26 +2430,26 @@ function Lt() {
|
|
|
2430
2430
|
function o(g, y, k) {
|
|
2431
2431
|
return g & k | y & ~k;
|
|
2432
2432
|
}
|
|
2433
|
-
function
|
|
2433
|
+
function u(g, y, k) {
|
|
2434
2434
|
return g ^ (y | ~k);
|
|
2435
2435
|
}
|
|
2436
2436
|
function b(g, y) {
|
|
2437
2437
|
return g << y | g >>> 32 - y;
|
|
2438
2438
|
}
|
|
2439
|
-
|
|
2439
|
+
l.RIPEMD160 = B._createHelper(p), l.HmacRIPEMD160 = B._createHmacHelper(p);
|
|
2440
2440
|
})(), t.RIPEMD160;
|
|
2441
2441
|
});
|
|
2442
2442
|
})(T0)), T0.exports;
|
|
2443
2443
|
}
|
|
2444
2444
|
var M0 = { exports: {} }, Ot = M0.exports, Jr;
|
|
2445
2445
|
function gr() {
|
|
2446
|
-
return Jr || (Jr = 1, (function(r,
|
|
2446
|
+
return Jr || (Jr = 1, (function(r, d) {
|
|
2447
2447
|
(function(t, e) {
|
|
2448
2448
|
r.exports = e(M());
|
|
2449
2449
|
})(Ot, function(t) {
|
|
2450
2450
|
(function() {
|
|
2451
|
-
var e = t,
|
|
2452
|
-
C.HMAC =
|
|
2451
|
+
var e = t, l = e.lib, v = l.Base, m = e.enc, B = m.Utf8, C = e.algo;
|
|
2452
|
+
C.HMAC = v.extend({
|
|
2453
2453
|
/**
|
|
2454
2454
|
* Initializes a newly created HMAC.
|
|
2455
2455
|
*
|
|
@@ -2464,8 +2464,8 @@ function gr() {
|
|
|
2464
2464
|
x = this._hasher = new x.init(), typeof n == "string" && (n = B.parse(n));
|
|
2465
2465
|
var E = x.blockSize, a = E * 4;
|
|
2466
2466
|
n.sigBytes > a && (n = x.finalize(n)), n.clamp();
|
|
2467
|
-
for (var s = this._oKey = n.clone(), f = this._iKey = n.clone(),
|
|
2468
|
-
|
|
2467
|
+
for (var s = this._oKey = n.clone(), f = this._iKey = n.clone(), p = s.words, h = f.words, D = 0; D < E; D++)
|
|
2468
|
+
p[D] ^= 1549556828, h[D] ^= 909522486;
|
|
2469
2469
|
s.sigBytes = f.sigBytes = a, this.reset();
|
|
2470
2470
|
},
|
|
2471
2471
|
/**
|
|
@@ -2521,12 +2521,12 @@ function gr() {
|
|
|
2521
2521
|
}
|
|
2522
2522
|
var N0 = { exports: {} }, qt = N0.exports, re;
|
|
2523
2523
|
function Tt() {
|
|
2524
|
-
return re || (re = 1, (function(r,
|
|
2525
|
-
(function(t, e,
|
|
2524
|
+
return re || (re = 1, (function(r, d) {
|
|
2525
|
+
(function(t, e, l) {
|
|
2526
2526
|
r.exports = e(M(), Fr(), gr());
|
|
2527
2527
|
})(qt, function(t) {
|
|
2528
2528
|
return (function() {
|
|
2529
|
-
var e = t,
|
|
2529
|
+
var e = t, l = e.lib, v = l.Base, m = l.WordArray, B = e.algo, C = B.SHA256, x = B.HMAC, n = B.PBKDF2 = v.extend({
|
|
2530
2530
|
/**
|
|
2531
2531
|
* Configuration options.
|
|
2532
2532
|
*
|
|
@@ -2534,7 +2534,7 @@ function Tt() {
|
|
|
2534
2534
|
* @property {Hasher} hasher The hasher to use. Default: SHA256
|
|
2535
2535
|
* @property {number} iterations The number of iterations to perform. Default: 250000
|
|
2536
2536
|
*/
|
|
2537
|
-
cfg:
|
|
2537
|
+
cfg: v.extend({
|
|
2538
2538
|
keySize: 128 / 32,
|
|
2539
2539
|
hasher: C,
|
|
2540
2540
|
iterations: 25e4
|
|
@@ -2566,17 +2566,17 @@ function Tt() {
|
|
|
2566
2566
|
* var key = kdf.compute(password, salt);
|
|
2567
2567
|
*/
|
|
2568
2568
|
compute: function(E, a) {
|
|
2569
|
-
for (var s = this.cfg, f = x.create(s.hasher, E),
|
|
2570
|
-
var b = f.update(a).finalize(
|
|
2569
|
+
for (var s = this.cfg, f = x.create(s.hasher, E), p = m.create(), h = m.create([1]), D = p.words, i = h.words, o = s.keySize, u = s.iterations; D.length < o; ) {
|
|
2570
|
+
var b = f.update(a).finalize(h);
|
|
2571
2571
|
f.reset();
|
|
2572
|
-
for (var g = b.words, y = g.length, k = b, R = 1; R <
|
|
2572
|
+
for (var g = b.words, y = g.length, k = b, R = 1; R < u; R++) {
|
|
2573
2573
|
k = f.finalize(k), f.reset();
|
|
2574
2574
|
for (var F = k.words, w = 0; w < y; w++)
|
|
2575
2575
|
g[w] ^= F[w];
|
|
2576
2576
|
}
|
|
2577
|
-
|
|
2577
|
+
p.concat(b), i[0]++;
|
|
2578
2578
|
}
|
|
2579
|
-
return
|
|
2579
|
+
return p.sigBytes = o * 4, p;
|
|
2580
2580
|
}
|
|
2581
2581
|
});
|
|
2582
2582
|
e.PBKDF2 = function(E, a, s) {
|
|
@@ -2588,12 +2588,12 @@ function Tt() {
|
|
|
2588
2588
|
}
|
|
2589
2589
|
var U0 = { exports: {} }, Mt = U0.exports, ee;
|
|
2590
2590
|
function a0() {
|
|
2591
|
-
return ee || (ee = 1, (function(r,
|
|
2592
|
-
(function(t, e,
|
|
2591
|
+
return ee || (ee = 1, (function(r, d) {
|
|
2592
|
+
(function(t, e, l) {
|
|
2593
2593
|
r.exports = e(M(), ke(), gr());
|
|
2594
2594
|
})(Mt, function(t) {
|
|
2595
2595
|
return (function() {
|
|
2596
|
-
var e = t,
|
|
2596
|
+
var e = t, l = e.lib, v = l.Base, m = l.WordArray, B = e.algo, C = B.MD5, x = B.EvpKDF = v.extend({
|
|
2597
2597
|
/**
|
|
2598
2598
|
* Configuration options.
|
|
2599
2599
|
*
|
|
@@ -2601,7 +2601,7 @@ function a0() {
|
|
|
2601
2601
|
* @property {Hasher} hasher The hash algorithm to use. Default: MD5
|
|
2602
2602
|
* @property {number} iterations The number of iterations to perform. Default: 1
|
|
2603
2603
|
*/
|
|
2604
|
-
cfg:
|
|
2604
|
+
cfg: v.extend({
|
|
2605
2605
|
keySize: 128 / 32,
|
|
2606
2606
|
hasher: C,
|
|
2607
2607
|
iterations: 1
|
|
@@ -2633,13 +2633,13 @@ function a0() {
|
|
|
2633
2633
|
* var key = kdf.compute(password, salt);
|
|
2634
2634
|
*/
|
|
2635
2635
|
compute: function(n, E) {
|
|
2636
|
-
for (var a, s = this.cfg, f = s.hasher.create(),
|
|
2636
|
+
for (var a, s = this.cfg, f = s.hasher.create(), p = m.create(), h = p.words, D = s.keySize, i = s.iterations; h.length < D; ) {
|
|
2637
2637
|
a && f.update(a), a = f.update(n).finalize(E), f.reset();
|
|
2638
2638
|
for (var o = 1; o < i; o++)
|
|
2639
2639
|
a = f.finalize(a), f.reset();
|
|
2640
|
-
|
|
2640
|
+
p.concat(a);
|
|
2641
2641
|
}
|
|
2642
|
-
return
|
|
2642
|
+
return p.sigBytes = D * 4, p;
|
|
2643
2643
|
}
|
|
2644
2644
|
});
|
|
2645
2645
|
e.EvpKDF = function(n, E, a) {
|
|
@@ -2650,15 +2650,15 @@ function a0() {
|
|
|
2650
2650
|
})(U0)), U0.exports;
|
|
2651
2651
|
}
|
|
2652
2652
|
var j0 = { exports: {} }, Nt = j0.exports, te;
|
|
2653
|
-
function
|
|
2654
|
-
return te || (te = 1, (function(r,
|
|
2655
|
-
(function(t, e,
|
|
2653
|
+
function K() {
|
|
2654
|
+
return te || (te = 1, (function(r, d) {
|
|
2655
|
+
(function(t, e, l) {
|
|
2656
2656
|
r.exports = e(M(), a0());
|
|
2657
2657
|
})(Nt, function(t) {
|
|
2658
2658
|
t.lib.Cipher || (function(e) {
|
|
2659
|
-
var
|
|
2659
|
+
var l = t, v = l.lib, m = v.Base, B = v.WordArray, C = v.BufferedBlockAlgorithm, x = l.enc;
|
|
2660
2660
|
x.Utf8;
|
|
2661
|
-
var n = x.Base64, E =
|
|
2661
|
+
var n = x.Base64, E = l.algo, a = E.EvpKDF, s = v.Cipher = C.extend({
|
|
2662
2662
|
/**
|
|
2663
2663
|
* Configuration options.
|
|
2664
2664
|
*
|
|
@@ -2790,14 +2790,14 @@ function X() {
|
|
|
2790
2790
|
};
|
|
2791
2791
|
})()
|
|
2792
2792
|
});
|
|
2793
|
-
|
|
2793
|
+
v.StreamCipher = s.extend({
|
|
2794
2794
|
_doFinalize: function() {
|
|
2795
2795
|
var F = this._process(!0);
|
|
2796
2796
|
return F;
|
|
2797
2797
|
},
|
|
2798
2798
|
blockSize: 1
|
|
2799
2799
|
});
|
|
2800
|
-
var f =
|
|
2800
|
+
var f = l.mode = {}, p = v.BlockCipherMode = m.extend({
|
|
2801
2801
|
/**
|
|
2802
2802
|
* Creates this mode for encryption.
|
|
2803
2803
|
*
|
|
@@ -2841,8 +2841,8 @@ function X() {
|
|
|
2841
2841
|
init: function(F, w) {
|
|
2842
2842
|
this._cipher = F, this._iv = w;
|
|
2843
2843
|
}
|
|
2844
|
-
}),
|
|
2845
|
-
var F =
|
|
2844
|
+
}), h = f.CBC = (function() {
|
|
2845
|
+
var F = p.extend();
|
|
2846
2846
|
F.Encryptor = F.extend({
|
|
2847
2847
|
/**
|
|
2848
2848
|
* Processes the data block at offset.
|
|
@@ -2881,7 +2881,7 @@ function X() {
|
|
|
2881
2881
|
H[$ + U] ^= O[U];
|
|
2882
2882
|
}
|
|
2883
2883
|
return F;
|
|
2884
|
-
})(), D =
|
|
2884
|
+
})(), D = l.pad = {}, i = D.Pkcs7 = {
|
|
2885
2885
|
/**
|
|
2886
2886
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
2887
2887
|
*
|
|
@@ -2916,7 +2916,7 @@ function X() {
|
|
|
2916
2916
|
F.sigBytes -= w;
|
|
2917
2917
|
}
|
|
2918
2918
|
};
|
|
2919
|
-
|
|
2919
|
+
v.BlockCipher = s.extend({
|
|
2920
2920
|
/**
|
|
2921
2921
|
* Configuration options.
|
|
2922
2922
|
*
|
|
@@ -2924,7 +2924,7 @@ function X() {
|
|
|
2924
2924
|
* @property {Padding} padding The padding strategy to use. Default: Pkcs7
|
|
2925
2925
|
*/
|
|
2926
2926
|
cfg: s.cfg.extend({
|
|
2927
|
-
mode:
|
|
2927
|
+
mode: h,
|
|
2928
2928
|
padding: i
|
|
2929
2929
|
}),
|
|
2930
2930
|
reset: function() {
|
|
@@ -2942,7 +2942,7 @@ function X() {
|
|
|
2942
2942
|
},
|
|
2943
2943
|
blockSize: 128 / 32
|
|
2944
2944
|
});
|
|
2945
|
-
var o =
|
|
2945
|
+
var o = v.CipherParams = m.extend({
|
|
2946
2946
|
/**
|
|
2947
2947
|
* Initializes a newly created cipher params object.
|
|
2948
2948
|
*
|
|
@@ -2983,7 +2983,7 @@ function X() {
|
|
|
2983
2983
|
toString: function(F) {
|
|
2984
2984
|
return (F || this.formatter).stringify(this);
|
|
2985
2985
|
}
|
|
2986
|
-
}),
|
|
2986
|
+
}), u = l.format = {}, b = u.OpenSSL = {
|
|
2987
2987
|
/**
|
|
2988
2988
|
* Converts a cipher params object to an OpenSSL-compatible string.
|
|
2989
2989
|
*
|
|
@@ -3018,7 +3018,7 @@ function X() {
|
|
|
3018
3018
|
var w, H = n.parse(F), $ = H.words;
|
|
3019
3019
|
return $[0] == 1398893684 && $[1] == 1701076831 && (w = B.create($.slice(2, 4)), $.splice(0, 4), H.sigBytes -= 16), o.create({ ciphertext: H, salt: w });
|
|
3020
3020
|
}
|
|
3021
|
-
}, g =
|
|
3021
|
+
}, g = v.SerializableCipher = m.extend({
|
|
3022
3022
|
/**
|
|
3023
3023
|
* Configuration options.
|
|
3024
3024
|
*
|
|
@@ -3099,7 +3099,7 @@ function X() {
|
|
|
3099
3099
|
_parse: function(F, w) {
|
|
3100
3100
|
return typeof F == "string" ? w.parse(F, this) : F;
|
|
3101
3101
|
}
|
|
3102
|
-
}), y =
|
|
3102
|
+
}), y = l.kdf = {}, k = y.OpenSSL = {
|
|
3103
3103
|
/**
|
|
3104
3104
|
* Derives a key and IV from a password.
|
|
3105
3105
|
*
|
|
@@ -3125,7 +3125,7 @@ function X() {
|
|
|
3125
3125
|
var q = B.create(O.words.slice(w), H * 4);
|
|
3126
3126
|
return O.sigBytes = w * 4, o.create({ key: O, iv: q, salt: $ });
|
|
3127
3127
|
}
|
|
3128
|
-
}, R =
|
|
3128
|
+
}, R = v.PasswordBasedCipher = g.extend({
|
|
3129
3129
|
/**
|
|
3130
3130
|
* Configuration options.
|
|
3131
3131
|
*
|
|
@@ -3189,65 +3189,65 @@ function X() {
|
|
|
3189
3189
|
}
|
|
3190
3190
|
var G0 = { exports: {} }, Ut = G0.exports, xe;
|
|
3191
3191
|
function jt() {
|
|
3192
|
-
return xe || (xe = 1, (function(r,
|
|
3193
|
-
(function(t, e,
|
|
3194
|
-
r.exports = e(M(),
|
|
3192
|
+
return xe || (xe = 1, (function(r, d) {
|
|
3193
|
+
(function(t, e, l) {
|
|
3194
|
+
r.exports = e(M(), K());
|
|
3195
3195
|
})(Ut, function(t) {
|
|
3196
3196
|
return t.mode.CFB = (function() {
|
|
3197
3197
|
var e = t.lib.BlockCipherMode.extend();
|
|
3198
3198
|
e.Encryptor = e.extend({
|
|
3199
|
-
processBlock: function(
|
|
3199
|
+
processBlock: function(v, m) {
|
|
3200
3200
|
var B = this._cipher, C = B.blockSize;
|
|
3201
|
-
|
|
3201
|
+
l.call(this, v, m, C, B), this._prevBlock = v.slice(m, m + C);
|
|
3202
3202
|
}
|
|
3203
3203
|
}), e.Decryptor = e.extend({
|
|
3204
|
-
processBlock: function(
|
|
3205
|
-
var B = this._cipher, C = B.blockSize, x =
|
|
3206
|
-
|
|
3204
|
+
processBlock: function(v, m) {
|
|
3205
|
+
var B = this._cipher, C = B.blockSize, x = v.slice(m, m + C);
|
|
3206
|
+
l.call(this, v, m, C, B), this._prevBlock = x;
|
|
3207
3207
|
}
|
|
3208
3208
|
});
|
|
3209
|
-
function
|
|
3209
|
+
function l(v, m, B, C) {
|
|
3210
3210
|
var x, n = this._iv;
|
|
3211
3211
|
n ? (x = n.slice(0), this._iv = void 0) : x = this._prevBlock, C.encryptBlock(x, 0);
|
|
3212
3212
|
for (var E = 0; E < B; E++)
|
|
3213
|
-
|
|
3213
|
+
v[m + E] ^= x[E];
|
|
3214
3214
|
}
|
|
3215
3215
|
return e;
|
|
3216
3216
|
})(), t.mode.CFB;
|
|
3217
3217
|
});
|
|
3218
3218
|
})(G0)), G0.exports;
|
|
3219
3219
|
}
|
|
3220
|
-
var
|
|
3221
|
-
function
|
|
3222
|
-
return ne || (ne = 1, (function(r,
|
|
3223
|
-
(function(t, e,
|
|
3224
|
-
r.exports = e(M(),
|
|
3220
|
+
var X0 = { exports: {} }, Gt = X0.exports, ne;
|
|
3221
|
+
function Xt() {
|
|
3222
|
+
return ne || (ne = 1, (function(r, d) {
|
|
3223
|
+
(function(t, e, l) {
|
|
3224
|
+
r.exports = e(M(), K());
|
|
3225
3225
|
})(Gt, function(t) {
|
|
3226
3226
|
return t.mode.CTR = (function() {
|
|
3227
|
-
var e = t.lib.BlockCipherMode.extend(),
|
|
3228
|
-
processBlock: function(
|
|
3227
|
+
var e = t.lib.BlockCipherMode.extend(), l = e.Encryptor = e.extend({
|
|
3228
|
+
processBlock: function(v, m) {
|
|
3229
3229
|
var B = this._cipher, C = B.blockSize, x = this._iv, n = this._counter;
|
|
3230
3230
|
x && (n = this._counter = x.slice(0), this._iv = void 0);
|
|
3231
3231
|
var E = n.slice(0);
|
|
3232
3232
|
B.encryptBlock(E, 0), n[C - 1] = n[C - 1] + 1 | 0;
|
|
3233
3233
|
for (var a = 0; a < C; a++)
|
|
3234
|
-
|
|
3234
|
+
v[m + a] ^= E[a];
|
|
3235
3235
|
}
|
|
3236
3236
|
});
|
|
3237
|
-
return e.Decryptor =
|
|
3237
|
+
return e.Decryptor = l, e;
|
|
3238
3238
|
})(), t.mode.CTR;
|
|
3239
3239
|
});
|
|
3240
|
-
})(
|
|
3240
|
+
})(X0)), X0.exports;
|
|
3241
3241
|
}
|
|
3242
|
-
var
|
|
3243
|
-
function
|
|
3244
|
-
return ae || (ae = 1, (function(r,
|
|
3245
|
-
(function(t, e,
|
|
3246
|
-
r.exports = e(M(),
|
|
3247
|
-
})(
|
|
3242
|
+
var K0 = { exports: {} }, Kt = K0.exports, ae;
|
|
3243
|
+
function Zt() {
|
|
3244
|
+
return ae || (ae = 1, (function(r, d) {
|
|
3245
|
+
(function(t, e, l) {
|
|
3246
|
+
r.exports = e(M(), K());
|
|
3247
|
+
})(Kt, function(t) {
|
|
3248
3248
|
return t.mode.CTRGladman = (function() {
|
|
3249
3249
|
var e = t.lib.BlockCipherMode.extend();
|
|
3250
|
-
function
|
|
3250
|
+
function l(B) {
|
|
3251
3251
|
if ((B >> 24 & 255) === 255) {
|
|
3252
3252
|
var C = B >> 16 & 255, x = B >> 8 & 255, n = B & 255;
|
|
3253
3253
|
C === 255 ? (C = 0, x === 255 ? (x = 0, n === 255 ? n = 0 : ++n) : ++x) : ++C, B = 0, B += C << 16, B += x << 8, B += n;
|
|
@@ -3255,13 +3255,13 @@ function Yt() {
|
|
|
3255
3255
|
B += 1 << 24;
|
|
3256
3256
|
return B;
|
|
3257
3257
|
}
|
|
3258
|
-
function
|
|
3259
|
-
return (B[0] =
|
|
3258
|
+
function v(B) {
|
|
3259
|
+
return (B[0] = l(B[0])) === 0 && (B[1] = l(B[1])), B;
|
|
3260
3260
|
}
|
|
3261
3261
|
var m = e.Encryptor = e.extend({
|
|
3262
3262
|
processBlock: function(B, C) {
|
|
3263
3263
|
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),
|
|
3264
|
+
E && (a = this._counter = E.slice(0), this._iv = void 0), v(a);
|
|
3265
3265
|
var s = a.slice(0);
|
|
3266
3266
|
x.encryptBlock(s, 0);
|
|
3267
3267
|
for (var f = 0; f < n; f++)
|
|
@@ -3271,63 +3271,63 @@ function Yt() {
|
|
|
3271
3271
|
return e.Decryptor = m, e;
|
|
3272
3272
|
})(), t.mode.CTRGladman;
|
|
3273
3273
|
});
|
|
3274
|
-
})(
|
|
3274
|
+
})(K0)), K0.exports;
|
|
3275
3275
|
}
|
|
3276
|
-
var
|
|
3276
|
+
var Z0 = { exports: {} }, Yt = Z0.exports, oe;
|
|
3277
3277
|
function Qt() {
|
|
3278
|
-
return oe || (oe = 1, (function(r,
|
|
3279
|
-
(function(t, e,
|
|
3280
|
-
r.exports = e(M(),
|
|
3281
|
-
})(
|
|
3278
|
+
return oe || (oe = 1, (function(r, d) {
|
|
3279
|
+
(function(t, e, l) {
|
|
3280
|
+
r.exports = e(M(), K());
|
|
3281
|
+
})(Yt, function(t) {
|
|
3282
3282
|
return t.mode.OFB = (function() {
|
|
3283
|
-
var e = t.lib.BlockCipherMode.extend(),
|
|
3284
|
-
processBlock: function(
|
|
3283
|
+
var e = t.lib.BlockCipherMode.extend(), l = e.Encryptor = e.extend({
|
|
3284
|
+
processBlock: function(v, m) {
|
|
3285
3285
|
var B = this._cipher, C = B.blockSize, x = this._iv, n = this._keystream;
|
|
3286
3286
|
x && (n = this._keystream = x.slice(0), this._iv = void 0), B.encryptBlock(n, 0);
|
|
3287
3287
|
for (var E = 0; E < C; E++)
|
|
3288
|
-
|
|
3288
|
+
v[m + E] ^= n[E];
|
|
3289
3289
|
}
|
|
3290
3290
|
});
|
|
3291
|
-
return e.Decryptor =
|
|
3291
|
+
return e.Decryptor = l, e;
|
|
3292
3292
|
})(), t.mode.OFB;
|
|
3293
3293
|
});
|
|
3294
|
-
})(
|
|
3294
|
+
})(Z0)), Z0.exports;
|
|
3295
3295
|
}
|
|
3296
|
-
var
|
|
3296
|
+
var Y0 = { exports: {} }, Vt = Y0.exports, ie;
|
|
3297
3297
|
function Jt() {
|
|
3298
|
-
return ie || (ie = 1, (function(r,
|
|
3299
|
-
(function(t, e,
|
|
3300
|
-
r.exports = e(M(),
|
|
3298
|
+
return ie || (ie = 1, (function(r, d) {
|
|
3299
|
+
(function(t, e, l) {
|
|
3300
|
+
r.exports = e(M(), K());
|
|
3301
3301
|
})(Vt, function(t) {
|
|
3302
3302
|
return t.mode.ECB = (function() {
|
|
3303
3303
|
var e = t.lib.BlockCipherMode.extend();
|
|
3304
3304
|
return e.Encryptor = e.extend({
|
|
3305
|
-
processBlock: function(
|
|
3306
|
-
this._cipher.encryptBlock(
|
|
3305
|
+
processBlock: function(l, v) {
|
|
3306
|
+
this._cipher.encryptBlock(l, v);
|
|
3307
3307
|
}
|
|
3308
3308
|
}), e.Decryptor = e.extend({
|
|
3309
|
-
processBlock: function(
|
|
3310
|
-
this._cipher.decryptBlock(
|
|
3309
|
+
processBlock: function(l, v) {
|
|
3310
|
+
this._cipher.decryptBlock(l, v);
|
|
3311
3311
|
}
|
|
3312
3312
|
}), e;
|
|
3313
3313
|
})(), t.mode.ECB;
|
|
3314
3314
|
});
|
|
3315
|
-
})(
|
|
3315
|
+
})(Y0)), Y0.exports;
|
|
3316
3316
|
}
|
|
3317
3317
|
var Q0 = { exports: {} }, rx = Q0.exports, se;
|
|
3318
3318
|
function ex() {
|
|
3319
|
-
return se || (se = 1, (function(r,
|
|
3320
|
-
(function(t, e,
|
|
3321
|
-
r.exports = e(M(),
|
|
3319
|
+
return se || (se = 1, (function(r, d) {
|
|
3320
|
+
(function(t, e, l) {
|
|
3321
|
+
r.exports = e(M(), K());
|
|
3322
3322
|
})(rx, function(t) {
|
|
3323
3323
|
return t.pad.AnsiX923 = {
|
|
3324
|
-
pad: function(e,
|
|
3325
|
-
var
|
|
3324
|
+
pad: function(e, l) {
|
|
3325
|
+
var v = e.sigBytes, m = l * 4, B = m - v % m, C = v + B - 1;
|
|
3326
3326
|
e.clamp(), e.words[C >>> 2] |= B << 24 - C % 4 * 8, e.sigBytes += B;
|
|
3327
3327
|
},
|
|
3328
3328
|
unpad: function(e) {
|
|
3329
|
-
var
|
|
3330
|
-
e.sigBytes -=
|
|
3329
|
+
var l = e.words[e.sigBytes - 1 >>> 2] & 255;
|
|
3330
|
+
e.sigBytes -= l;
|
|
3331
3331
|
}
|
|
3332
3332
|
}, t.pad.Ansix923;
|
|
3333
3333
|
});
|
|
@@ -3335,18 +3335,18 @@ function ex() {
|
|
|
3335
3335
|
}
|
|
3336
3336
|
var V0 = { exports: {} }, tx = V0.exports, ce;
|
|
3337
3337
|
function xx() {
|
|
3338
|
-
return ce || (ce = 1, (function(r,
|
|
3339
|
-
(function(t, e,
|
|
3340
|
-
r.exports = e(M(),
|
|
3338
|
+
return ce || (ce = 1, (function(r, d) {
|
|
3339
|
+
(function(t, e, l) {
|
|
3340
|
+
r.exports = e(M(), K());
|
|
3341
3341
|
})(tx, function(t) {
|
|
3342
3342
|
return t.pad.Iso10126 = {
|
|
3343
|
-
pad: function(e,
|
|
3344
|
-
var
|
|
3343
|
+
pad: function(e, l) {
|
|
3344
|
+
var v = l * 4, m = v - e.sigBytes % v;
|
|
3345
3345
|
e.concat(t.lib.WordArray.random(m - 1)).concat(t.lib.WordArray.create([m << 24], 1));
|
|
3346
3346
|
},
|
|
3347
3347
|
unpad: function(e) {
|
|
3348
|
-
var
|
|
3349
|
-
e.sigBytes -=
|
|
3348
|
+
var l = e.words[e.sigBytes - 1 >>> 2] & 255;
|
|
3349
|
+
e.sigBytes -= l;
|
|
3350
3350
|
}
|
|
3351
3351
|
}, t.pad.Iso10126;
|
|
3352
3352
|
});
|
|
@@ -3354,13 +3354,13 @@ function xx() {
|
|
|
3354
3354
|
}
|
|
3355
3355
|
var J0 = { exports: {} }, nx = J0.exports, fe;
|
|
3356
3356
|
function ax() {
|
|
3357
|
-
return fe || (fe = 1, (function(r,
|
|
3358
|
-
(function(t, e,
|
|
3359
|
-
r.exports = e(M(),
|
|
3357
|
+
return fe || (fe = 1, (function(r, d) {
|
|
3358
|
+
(function(t, e, l) {
|
|
3359
|
+
r.exports = e(M(), K());
|
|
3360
3360
|
})(nx, function(t) {
|
|
3361
3361
|
return t.pad.Iso97971 = {
|
|
3362
|
-
pad: function(e,
|
|
3363
|
-
e.concat(t.lib.WordArray.create([2147483648], 1)), t.pad.ZeroPadding.pad(e,
|
|
3362
|
+
pad: function(e, l) {
|
|
3363
|
+
e.concat(t.lib.WordArray.create([2147483648], 1)), t.pad.ZeroPadding.pad(e, l);
|
|
3364
3364
|
},
|
|
3365
3365
|
unpad: function(e) {
|
|
3366
3366
|
t.pad.ZeroPadding.unpad(e), e.sigBytes--;
|
|
@@ -3371,19 +3371,19 @@ function ax() {
|
|
|
3371
3371
|
}
|
|
3372
3372
|
var rr = { exports: {} }, ox = rr.exports, ue;
|
|
3373
3373
|
function ix() {
|
|
3374
|
-
return ue || (ue = 1, (function(r,
|
|
3375
|
-
(function(t, e,
|
|
3376
|
-
r.exports = e(M(),
|
|
3374
|
+
return ue || (ue = 1, (function(r, d) {
|
|
3375
|
+
(function(t, e, l) {
|
|
3376
|
+
r.exports = e(M(), K());
|
|
3377
3377
|
})(ox, function(t) {
|
|
3378
3378
|
return t.pad.ZeroPadding = {
|
|
3379
|
-
pad: function(e,
|
|
3380
|
-
var
|
|
3381
|
-
e.clamp(), e.sigBytes +=
|
|
3379
|
+
pad: function(e, l) {
|
|
3380
|
+
var v = l * 4;
|
|
3381
|
+
e.clamp(), e.sigBytes += v - (e.sigBytes % v || v);
|
|
3382
3382
|
},
|
|
3383
3383
|
unpad: function(e) {
|
|
3384
|
-
for (var
|
|
3385
|
-
if (
|
|
3386
|
-
e.sigBytes =
|
|
3384
|
+
for (var l = e.words, v = e.sigBytes - 1, v = e.sigBytes - 1; v >= 0; v--)
|
|
3385
|
+
if (l[v >>> 2] >>> 24 - v % 4 * 8 & 255) {
|
|
3386
|
+
e.sigBytes = v + 1;
|
|
3387
3387
|
break;
|
|
3388
3388
|
}
|
|
3389
3389
|
}
|
|
@@ -3393,9 +3393,9 @@ function ix() {
|
|
|
3393
3393
|
}
|
|
3394
3394
|
var er = { exports: {} }, sx = er.exports, de;
|
|
3395
3395
|
function cx() {
|
|
3396
|
-
return de || (de = 1, (function(r,
|
|
3397
|
-
(function(t, e,
|
|
3398
|
-
r.exports = e(M(),
|
|
3396
|
+
return de || (de = 1, (function(r, d) {
|
|
3397
|
+
(function(t, e, l) {
|
|
3398
|
+
r.exports = e(M(), K());
|
|
3399
3399
|
})(sx, function(t) {
|
|
3400
3400
|
return t.pad.NoPadding = {
|
|
3401
3401
|
pad: function() {
|
|
@@ -3408,12 +3408,12 @@ function cx() {
|
|
|
3408
3408
|
}
|
|
3409
3409
|
var tr = { exports: {} }, fx = tr.exports, le;
|
|
3410
3410
|
function ux() {
|
|
3411
|
-
return le || (le = 1, (function(r,
|
|
3412
|
-
(function(t, e,
|
|
3413
|
-
r.exports = e(M(),
|
|
3411
|
+
return le || (le = 1, (function(r, d) {
|
|
3412
|
+
(function(t, e, l) {
|
|
3413
|
+
r.exports = e(M(), K());
|
|
3414
3414
|
})(fx, function(t) {
|
|
3415
3415
|
return (function(e) {
|
|
3416
|
-
var
|
|
3416
|
+
var l = t, v = l.lib, m = v.CipherParams, B = l.enc, C = B.Hex, x = l.format;
|
|
3417
3417
|
x.Hex = {
|
|
3418
3418
|
/**
|
|
3419
3419
|
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
@@ -3455,29 +3455,29 @@ function ux() {
|
|
|
3455
3455
|
}
|
|
3456
3456
|
var xr = { exports: {} }, dx = xr.exports, he;
|
|
3457
3457
|
function lx() {
|
|
3458
|
-
return he || (he = 1, (function(r,
|
|
3459
|
-
(function(t, e,
|
|
3460
|
-
r.exports = e(M(), s0(), c0(), a0(),
|
|
3458
|
+
return he || (he = 1, (function(r, d) {
|
|
3459
|
+
(function(t, e, l) {
|
|
3460
|
+
r.exports = e(M(), s0(), c0(), a0(), K());
|
|
3461
3461
|
})(dx, function(t) {
|
|
3462
3462
|
return (function() {
|
|
3463
|
-
var e = t,
|
|
3463
|
+
var e = t, l = e.lib, v = l.BlockCipher, m = e.algo, B = [], C = [], x = [], n = [], E = [], a = [], s = [], f = [], p = [], h = [];
|
|
3464
3464
|
(function() {
|
|
3465
|
-
for (var o = [],
|
|
3466
|
-
|
|
3467
|
-
for (var b = 0, g = 0,
|
|
3465
|
+
for (var o = [], u = 0; u < 256; u++)
|
|
3466
|
+
u < 128 ? o[u] = u << 1 : o[u] = u << 1 ^ 283;
|
|
3467
|
+
for (var b = 0, g = 0, u = 0; u < 256; u++) {
|
|
3468
3468
|
var y = g ^ g << 1 ^ g << 2 ^ g << 3 ^ g << 4;
|
|
3469
3469
|
y = y >>> 8 ^ y & 255 ^ 99, B[b] = y, C[y] = b;
|
|
3470
3470
|
var k = o[b], R = o[k], F = o[R], w = o[y] * 257 ^ y * 16843008;
|
|
3471
3471
|
x[b] = w << 24 | w >>> 8, n[b] = w << 16 | w >>> 16, E[b] = w << 8 | w >>> 24, a[b] = w;
|
|
3472
3472
|
var w = F * 16843009 ^ R * 65537 ^ k * 257 ^ b * 16843008;
|
|
3473
|
-
s[y] = w << 24 | w >>> 8, f[y] = w << 16 | w >>> 16,
|
|
3473
|
+
s[y] = w << 24 | w >>> 8, f[y] = w << 16 | w >>> 16, p[y] = w << 8 | w >>> 24, h[y] = w, b ? (b = k ^ o[o[o[F ^ k]]], g ^= o[o[g]]) : b = g = 1;
|
|
3474
3474
|
}
|
|
3475
3475
|
})();
|
|
3476
|
-
var D = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], i = m.AES =
|
|
3476
|
+
var D = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], i = m.AES = v.extend({
|
|
3477
3477
|
_doReset: function() {
|
|
3478
3478
|
var o;
|
|
3479
3479
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
3480
|
-
for (var
|
|
3480
|
+
for (var u = this._keyPriorReset = this._key, b = u.words, g = u.sigBytes / 4, y = this._nRounds = g + 6, k = (y + 1) * 4, R = this._keySchedule = [], F = 0; F < k; F++)
|
|
3481
3481
|
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
3482
|
for (var w = this._invKeySchedule = [], H = 0; H < k; H++) {
|
|
3483
3483
|
var F = k - H;
|
|
@@ -3485,42 +3485,42 @@ function lx() {
|
|
|
3485
3485
|
var o = R[F];
|
|
3486
3486
|
else
|
|
3487
3487
|
var o = R[F - 4];
|
|
3488
|
-
H < 4 || F <= 4 ? w[H] = o : w[H] = s[B[o >>> 24]] ^ f[B[o >>> 16 & 255]] ^
|
|
3488
|
+
H < 4 || F <= 4 ? w[H] = o : w[H] = s[B[o >>> 24]] ^ f[B[o >>> 16 & 255]] ^ p[B[o >>> 8 & 255]] ^ h[B[o & 255]];
|
|
3489
3489
|
}
|
|
3490
3490
|
}
|
|
3491
3491
|
},
|
|
3492
|
-
encryptBlock: function(o,
|
|
3493
|
-
this._doCryptBlock(o,
|
|
3492
|
+
encryptBlock: function(o, u) {
|
|
3493
|
+
this._doCryptBlock(o, u, this._keySchedule, x, n, E, a, B);
|
|
3494
3494
|
},
|
|
3495
|
-
decryptBlock: function(o,
|
|
3496
|
-
var b = o[
|
|
3497
|
-
o[
|
|
3498
|
-
var b = o[
|
|
3499
|
-
o[
|
|
3495
|
+
decryptBlock: function(o, u) {
|
|
3496
|
+
var b = o[u + 1];
|
|
3497
|
+
o[u + 1] = o[u + 3], o[u + 3] = b, this._doCryptBlock(o, u, this._invKeySchedule, s, f, p, h, C);
|
|
3498
|
+
var b = o[u + 1];
|
|
3499
|
+
o[u + 1] = o[u + 3], o[u + 3] = b;
|
|
3500
3500
|
},
|
|
3501
|
-
_doCryptBlock: function(o,
|
|
3502
|
-
for (var w = this._nRounds, H = o[
|
|
3501
|
+
_doCryptBlock: function(o, u, b, g, y, k, R, F) {
|
|
3502
|
+
for (var w = this._nRounds, H = o[u] ^ b[0], $ = o[u + 1] ^ b[1], z = o[u + 2] ^ b[2], O = o[u + 3] ^ b[3], q = 4, U = 1; U < w; U++) {
|
|
3503
3503
|
var T = g[H >>> 24] ^ y[$ >>> 16 & 255] ^ k[z >>> 8 & 255] ^ R[O & 255] ^ b[q++], N = g[$ >>> 24] ^ y[z >>> 16 & 255] ^ k[O >>> 8 & 255] ^ R[H & 255] ^ b[q++], j = g[z >>> 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[z & 255] ^ b[q++];
|
|
3504
3504
|
H = T, $ = N, z = j, O = S;
|
|
3505
3505
|
}
|
|
3506
3506
|
var T = (F[H >>> 24] << 24 | F[$ >>> 16 & 255] << 16 | F[z >>> 8 & 255] << 8 | F[O & 255]) ^ b[q++], N = (F[$ >>> 24] << 24 | F[z >>> 16 & 255] << 16 | F[O >>> 8 & 255] << 8 | F[H & 255]) ^ b[q++], j = (F[z >>> 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[z & 255]) ^ b[q++];
|
|
3507
|
-
o[
|
|
3507
|
+
o[u] = T, o[u + 1] = N, o[u + 2] = j, o[u + 3] = S;
|
|
3508
3508
|
},
|
|
3509
3509
|
keySize: 256 / 32
|
|
3510
3510
|
});
|
|
3511
|
-
e.AES =
|
|
3511
|
+
e.AES = v._createHelper(i);
|
|
3512
3512
|
})(), t.AES;
|
|
3513
3513
|
});
|
|
3514
3514
|
})(xr)), xr.exports;
|
|
3515
3515
|
}
|
|
3516
3516
|
var nr = { exports: {} }, hx = nr.exports, ve;
|
|
3517
3517
|
function vx() {
|
|
3518
|
-
return ve || (ve = 1, (function(r,
|
|
3519
|
-
(function(t, e,
|
|
3520
|
-
r.exports = e(M(), s0(), c0(), a0(),
|
|
3518
|
+
return ve || (ve = 1, (function(r, d) {
|
|
3519
|
+
(function(t, e, l) {
|
|
3520
|
+
r.exports = e(M(), s0(), c0(), a0(), K());
|
|
3521
3521
|
})(hx, function(t) {
|
|
3522
3522
|
return (function() {
|
|
3523
|
-
var e = t,
|
|
3523
|
+
var e = t, l = e.lib, v = l.WordArray, m = l.BlockCipher, B = e.algo, C = [
|
|
3524
3524
|
57,
|
|
3525
3525
|
49,
|
|
3526
3526
|
41,
|
|
@@ -4166,20 +4166,20 @@ function vx() {
|
|
|
4166
4166
|
2147483679
|
|
4167
4167
|
], s = B.DES = m.extend({
|
|
4168
4168
|
_doReset: function() {
|
|
4169
|
-
for (var D = this._key, i = D.words, o = [],
|
|
4170
|
-
var b = C[
|
|
4171
|
-
o[
|
|
4169
|
+
for (var D = this._key, i = D.words, o = [], u = 0; u < 56; u++) {
|
|
4170
|
+
var b = C[u] - 1;
|
|
4171
|
+
o[u] = i[b >>> 5] >>> 31 - b % 32 & 1;
|
|
4172
4172
|
}
|
|
4173
4173
|
for (var g = this._subKeys = [], y = 0; y < 16; y++) {
|
|
4174
|
-
for (var k = g[y] = [], R = n[y],
|
|
4175
|
-
k[
|
|
4174
|
+
for (var k = g[y] = [], R = n[y], u = 0; u < 24; u++)
|
|
4175
|
+
k[u / 6 | 0] |= o[(x[u] - 1 + R) % 28] << 31 - u % 6, k[4 + (u / 6 | 0)] |= o[28 + (x[u + 24] - 1 + R) % 28] << 31 - u % 6;
|
|
4176
4176
|
k[0] = k[0] << 1 | k[0] >>> 31;
|
|
4177
|
-
for (var
|
|
4178
|
-
k[
|
|
4177
|
+
for (var u = 1; u < 7; u++)
|
|
4178
|
+
k[u] = k[u] >>> (u - 1) * 4 + 3;
|
|
4179
4179
|
k[7] = k[7] << 5 | k[7] >>> 27;
|
|
4180
4180
|
}
|
|
4181
|
-
for (var F = this._invSubKeys = [],
|
|
4182
|
-
F[
|
|
4181
|
+
for (var F = this._invSubKeys = [], u = 0; u < 16; u++)
|
|
4182
|
+
F[u] = g[15 - u];
|
|
4183
4183
|
},
|
|
4184
4184
|
encryptBlock: function(D, i) {
|
|
4185
4185
|
this._doCryptBlock(D, i, this._subKeys);
|
|
@@ -4188,14 +4188,14 @@ function vx() {
|
|
|
4188
4188
|
this._doCryptBlock(D, i, this._invSubKeys);
|
|
4189
4189
|
},
|
|
4190
4190
|
_doCryptBlock: function(D, i, o) {
|
|
4191
|
-
this._lBlock = D[i], this._rBlock = D[i + 1], f.call(this, 4, 252645135), f.call(this, 16, 65535),
|
|
4192
|
-
for (var
|
|
4193
|
-
for (var b = o[
|
|
4191
|
+
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
|
+
for (var u = 0; u < 16; u++) {
|
|
4193
|
+
for (var b = o[u], g = this._lBlock, y = this._rBlock, k = 0, R = 0; R < 8; R++)
|
|
4194
4194
|
k |= E[R][((y ^ b[R]) & a[R]) >>> 0];
|
|
4195
4195
|
this._lBlock = y, this._rBlock = g ^ k;
|
|
4196
4196
|
}
|
|
4197
4197
|
var F = this._lBlock;
|
|
4198
|
-
this._lBlock = this._rBlock, this._rBlock = F, f.call(this, 1, 1431655765),
|
|
4198
|
+
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
4199
|
},
|
|
4200
4200
|
keySize: 64 / 32,
|
|
4201
4201
|
ivSize: 64 / 32,
|
|
@@ -4205,18 +4205,18 @@ function vx() {
|
|
|
4205
4205
|
var o = (this._lBlock >>> D ^ this._rBlock) & i;
|
|
4206
4206
|
this._rBlock ^= o, this._lBlock ^= o << D;
|
|
4207
4207
|
}
|
|
4208
|
-
function
|
|
4208
|
+
function p(D, i) {
|
|
4209
4209
|
var o = (this._rBlock >>> D ^ this._lBlock) & i;
|
|
4210
4210
|
this._lBlock ^= o, this._rBlock ^= o << D;
|
|
4211
4211
|
}
|
|
4212
4212
|
e.DES = m._createHelper(s);
|
|
4213
|
-
var
|
|
4213
|
+
var h = B.TripleDES = m.extend({
|
|
4214
4214
|
_doReset: function() {
|
|
4215
4215
|
var D = this._key, i = D.words;
|
|
4216
4216
|
if (i.length !== 2 && i.length !== 4 && i.length < 6)
|
|
4217
4217
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
4218
|
-
var o = i.slice(0, 2),
|
|
4219
|
-
this._des1 = s.createEncryptor(
|
|
4218
|
+
var o = i.slice(0, 2), u = 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(v.create(o)), this._des2 = s.createEncryptor(v.create(u)), this._des3 = s.createEncryptor(v.create(b));
|
|
4220
4220
|
},
|
|
4221
4221
|
encryptBlock: function(D, i) {
|
|
4222
4222
|
this._des1.encryptBlock(D, i), this._des2.decryptBlock(D, i), this._des3.encryptBlock(D, i);
|
|
@@ -4228,27 +4228,27 @@ function vx() {
|
|
|
4228
4228
|
ivSize: 64 / 32,
|
|
4229
4229
|
blockSize: 64 / 32
|
|
4230
4230
|
});
|
|
4231
|
-
e.TripleDES = m._createHelper(
|
|
4231
|
+
e.TripleDES = m._createHelper(h);
|
|
4232
4232
|
})(), t.TripleDES;
|
|
4233
4233
|
});
|
|
4234
4234
|
})(nr)), nr.exports;
|
|
4235
4235
|
}
|
|
4236
4236
|
var ar = { exports: {} }, px = ar.exports, pe;
|
|
4237
4237
|
function Bx() {
|
|
4238
|
-
return pe || (pe = 1, (function(r,
|
|
4239
|
-
(function(t, e,
|
|
4240
|
-
r.exports = e(M(), s0(), c0(), a0(),
|
|
4238
|
+
return pe || (pe = 1, (function(r, d) {
|
|
4239
|
+
(function(t, e, l) {
|
|
4240
|
+
r.exports = e(M(), s0(), c0(), a0(), K());
|
|
4241
4241
|
})(px, function(t) {
|
|
4242
4242
|
return (function() {
|
|
4243
|
-
var e = t,
|
|
4243
|
+
var e = t, l = e.lib, v = l.StreamCipher, m = e.algo, B = m.RC4 = v.extend({
|
|
4244
4244
|
_doReset: function() {
|
|
4245
4245
|
for (var n = this._key, E = n.words, a = n.sigBytes, s = this._S = [], f = 0; f < 256; f++)
|
|
4246
4246
|
s[f] = f;
|
|
4247
|
-
for (var f = 0,
|
|
4248
|
-
var
|
|
4249
|
-
|
|
4247
|
+
for (var f = 0, p = 0; f < 256; f++) {
|
|
4248
|
+
var h = f % a, D = E[h >>> 2] >>> 24 - h % 4 * 8 & 255;
|
|
4249
|
+
p = (p + s[f] + D) % 256;
|
|
4250
4250
|
var i = s[f];
|
|
4251
|
-
s[f] = s[
|
|
4251
|
+
s[f] = s[p], s[p] = i;
|
|
4252
4252
|
}
|
|
4253
4253
|
this._i = this._j = 0;
|
|
4254
4254
|
},
|
|
@@ -4261,12 +4261,12 @@ function Bx() {
|
|
|
4261
4261
|
function C() {
|
|
4262
4262
|
for (var n = this._S, E = this._i, a = this._j, s = 0, f = 0; f < 4; f++) {
|
|
4263
4263
|
E = (E + 1) % 256, a = (a + n[E]) % 256;
|
|
4264
|
-
var
|
|
4265
|
-
n[E] = n[a], n[a] =
|
|
4264
|
+
var p = n[E];
|
|
4265
|
+
n[E] = n[a], n[a] = p, s |= n[(n[E] + n[a]) % 256] << 24 - f * 8;
|
|
4266
4266
|
}
|
|
4267
4267
|
return this._i = E, this._j = a, s;
|
|
4268
4268
|
}
|
|
4269
|
-
e.RC4 =
|
|
4269
|
+
e.RC4 = v._createHelper(B);
|
|
4270
4270
|
var x = m.RC4Drop = B.extend({
|
|
4271
4271
|
/**
|
|
4272
4272
|
* Configuration options.
|
|
@@ -4282,23 +4282,23 @@ function Bx() {
|
|
|
4282
4282
|
C.call(this);
|
|
4283
4283
|
}
|
|
4284
4284
|
});
|
|
4285
|
-
e.RC4Drop =
|
|
4285
|
+
e.RC4Drop = v._createHelper(x);
|
|
4286
4286
|
})(), t.RC4;
|
|
4287
4287
|
});
|
|
4288
4288
|
})(ar)), ar.exports;
|
|
4289
4289
|
}
|
|
4290
4290
|
var or = { exports: {} }, Cx = or.exports, Be;
|
|
4291
4291
|
function Ex() {
|
|
4292
|
-
return Be || (Be = 1, (function(r,
|
|
4293
|
-
(function(t, e,
|
|
4294
|
-
r.exports = e(M(), s0(), c0(), a0(),
|
|
4292
|
+
return Be || (Be = 1, (function(r, d) {
|
|
4293
|
+
(function(t, e, l) {
|
|
4294
|
+
r.exports = e(M(), s0(), c0(), a0(), K());
|
|
4295
4295
|
})(Cx, function(t) {
|
|
4296
4296
|
return (function() {
|
|
4297
|
-
var e = t,
|
|
4297
|
+
var e = t, l = e.lib, v = l.StreamCipher, m = e.algo, B = [], C = [], x = [], n = m.Rabbit = v.extend({
|
|
4298
4298
|
_doReset: function() {
|
|
4299
4299
|
for (var a = this._key.words, s = this.cfg.iv, f = 0; f < 4; f++)
|
|
4300
4300
|
a[f] = (a[f] << 8 | a[f] >>> 24) & 16711935 | (a[f] << 24 | a[f] >>> 8) & 4278255360;
|
|
4301
|
-
var
|
|
4301
|
+
var p = this._X = [
|
|
4302
4302
|
a[0],
|
|
4303
4303
|
a[3] << 16 | a[2] >>> 16,
|
|
4304
4304
|
a[1],
|
|
@@ -4307,7 +4307,7 @@ function Ex() {
|
|
|
4307
4307
|
a[1] << 16 | a[0] >>> 16,
|
|
4308
4308
|
a[3],
|
|
4309
4309
|
a[2] << 16 | a[1] >>> 16
|
|
4310
|
-
],
|
|
4310
|
+
], h = this._C = [
|
|
4311
4311
|
a[2] << 16 | a[2] >>> 16,
|
|
4312
4312
|
a[0] & 4294901760 | a[1] & 65535,
|
|
4313
4313
|
a[3] << 16 | a[3] >>> 16,
|
|
@@ -4321,10 +4321,10 @@ function Ex() {
|
|
|
4321
4321
|
for (var f = 0; f < 4; f++)
|
|
4322
4322
|
E.call(this);
|
|
4323
4323
|
for (var f = 0; f < 8; f++)
|
|
4324
|
-
|
|
4324
|
+
h[f] ^= p[f + 4 & 7];
|
|
4325
4325
|
if (s) {
|
|
4326
|
-
var D = s.words, i = D[0], o = D[1],
|
|
4327
|
-
|
|
4326
|
+
var D = s.words, i = D[0], o = D[1], u = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, b = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, g = u >>> 16 | b & 4294901760, y = b << 16 | u & 65535;
|
|
4327
|
+
h[0] ^= u, h[1] ^= g, h[2] ^= b, h[3] ^= y, h[4] ^= u, h[5] ^= g, h[6] ^= b, h[7] ^= y;
|
|
4328
4328
|
for (var f = 0; f < 4; f++)
|
|
4329
4329
|
E.call(this);
|
|
4330
4330
|
}
|
|
@@ -4332,8 +4332,8 @@ function Ex() {
|
|
|
4332
4332
|
_doProcessBlock: function(a, s) {
|
|
4333
4333
|
var f = this._X;
|
|
4334
4334
|
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[
|
|
4335
|
+
for (var p = 0; p < 4; p++)
|
|
4336
|
+
B[p] = (B[p] << 8 | B[p] >>> 24) & 16711935 | (B[p] << 24 | B[p] >>> 8) & 4278255360, a[s + p] ^= B[p];
|
|
4337
4337
|
},
|
|
4338
4338
|
blockSize: 128 / 32,
|
|
4339
4339
|
ivSize: 64 / 32
|
|
@@ -4343,24 +4343,24 @@ function Ex() {
|
|
|
4343
4343
|
C[f] = s[f];
|
|
4344
4344
|
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
4345
|
for (var f = 0; f < 8; f++) {
|
|
4346
|
-
var
|
|
4346
|
+
var p = a[f] + s[f], h = p & 65535, D = p >>> 16, i = ((h * h >>> 17) + h * D >>> 15) + D * D, o = ((p & 4294901760) * p | 0) + ((p & 65535) * p | 0);
|
|
4347
4347
|
x[f] = i ^ o;
|
|
4348
4348
|
}
|
|
4349
4349
|
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
4350
|
}
|
|
4351
|
-
e.Rabbit =
|
|
4351
|
+
e.Rabbit = v._createHelper(n);
|
|
4352
4352
|
})(), t.Rabbit;
|
|
4353
4353
|
});
|
|
4354
4354
|
})(or)), or.exports;
|
|
4355
4355
|
}
|
|
4356
4356
|
var ir = { exports: {} }, Ax = ir.exports, Ce;
|
|
4357
4357
|
function Fx() {
|
|
4358
|
-
return Ce || (Ce = 1, (function(r,
|
|
4359
|
-
(function(t, e,
|
|
4360
|
-
r.exports = e(M(), s0(), c0(), a0(),
|
|
4358
|
+
return Ce || (Ce = 1, (function(r, d) {
|
|
4359
|
+
(function(t, e, l) {
|
|
4360
|
+
r.exports = e(M(), s0(), c0(), a0(), K());
|
|
4361
4361
|
})(Ax, function(t) {
|
|
4362
4362
|
return (function() {
|
|
4363
|
-
var e = t,
|
|
4363
|
+
var e = t, l = e.lib, v = l.StreamCipher, m = e.algo, B = [], C = [], x = [], n = m.RabbitLegacy = v.extend({
|
|
4364
4364
|
_doReset: function() {
|
|
4365
4365
|
var a = this._key.words, s = this.cfg.iv, f = this._X = [
|
|
4366
4366
|
a[0],
|
|
@@ -4371,7 +4371,7 @@ function Fx() {
|
|
|
4371
4371
|
a[1] << 16 | a[0] >>> 16,
|
|
4372
4372
|
a[3],
|
|
4373
4373
|
a[2] << 16 | a[1] >>> 16
|
|
4374
|
-
],
|
|
4374
|
+
], p = this._C = [
|
|
4375
4375
|
a[2] << 16 | a[2] >>> 16,
|
|
4376
4376
|
a[0] & 4294901760 | a[1] & 65535,
|
|
4377
4377
|
a[3] << 16 | a[3] >>> 16,
|
|
@@ -4382,22 +4382,22 @@ function Fx() {
|
|
|
4382
4382
|
a[3] & 4294901760 | a[0] & 65535
|
|
4383
4383
|
];
|
|
4384
4384
|
this._b = 0;
|
|
4385
|
-
for (var
|
|
4385
|
+
for (var h = 0; h < 4; h++)
|
|
4386
4386
|
E.call(this);
|
|
4387
|
-
for (var
|
|
4388
|
-
|
|
4387
|
+
for (var h = 0; h < 8; h++)
|
|
4388
|
+
p[h] ^= f[h + 4 & 7];
|
|
4389
4389
|
if (s) {
|
|
4390
|
-
var D = s.words, i = D[0], o = D[1],
|
|
4391
|
-
|
|
4392
|
-
for (var
|
|
4390
|
+
var D = s.words, i = D[0], o = D[1], u = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, b = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, g = u >>> 16 | b & 4294901760, y = b << 16 | u & 65535;
|
|
4391
|
+
p[0] ^= u, p[1] ^= g, p[2] ^= b, p[3] ^= y, p[4] ^= u, p[5] ^= g, p[6] ^= b, p[7] ^= y;
|
|
4392
|
+
for (var h = 0; h < 4; h++)
|
|
4393
4393
|
E.call(this);
|
|
4394
4394
|
}
|
|
4395
4395
|
},
|
|
4396
4396
|
_doProcessBlock: function(a, s) {
|
|
4397
4397
|
var f = this._X;
|
|
4398
4398
|
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[
|
|
4399
|
+
for (var p = 0; p < 4; p++)
|
|
4400
|
+
B[p] = (B[p] << 8 | B[p] >>> 24) & 16711935 | (B[p] << 24 | B[p] >>> 8) & 4278255360, a[s + p] ^= B[p];
|
|
4401
4401
|
},
|
|
4402
4402
|
blockSize: 128 / 32,
|
|
4403
4403
|
ivSize: 64 / 32
|
|
@@ -4407,24 +4407,24 @@ function Fx() {
|
|
|
4407
4407
|
C[f] = s[f];
|
|
4408
4408
|
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
4409
|
for (var f = 0; f < 8; f++) {
|
|
4410
|
-
var
|
|
4410
|
+
var p = a[f] + s[f], h = p & 65535, D = p >>> 16, i = ((h * h >>> 17) + h * D >>> 15) + D * D, o = ((p & 4294901760) * p | 0) + ((p & 65535) * p | 0);
|
|
4411
4411
|
x[f] = i ^ o;
|
|
4412
4412
|
}
|
|
4413
4413
|
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
4414
|
}
|
|
4415
|
-
e.RabbitLegacy =
|
|
4415
|
+
e.RabbitLegacy = v._createHelper(n);
|
|
4416
4416
|
})(), t.RabbitLegacy;
|
|
4417
4417
|
});
|
|
4418
4418
|
})(ir)), ir.exports;
|
|
4419
4419
|
}
|
|
4420
4420
|
var sr = { exports: {} }, gx = sr.exports, Ee;
|
|
4421
4421
|
function Dx() {
|
|
4422
|
-
return Ee || (Ee = 1, (function(r,
|
|
4423
|
-
(function(t, e,
|
|
4424
|
-
r.exports = e(M(), s0(), c0(), a0(),
|
|
4422
|
+
return Ee || (Ee = 1, (function(r, d) {
|
|
4423
|
+
(function(t, e, l) {
|
|
4424
|
+
r.exports = e(M(), s0(), c0(), a0(), K());
|
|
4425
4425
|
})(gx, function(t) {
|
|
4426
4426
|
return (function() {
|
|
4427
|
-
var e = t,
|
|
4427
|
+
var e = t, l = e.lib, v = l.BlockCipher, m = e.algo;
|
|
4428
4428
|
const B = 16, C = [
|
|
4429
4429
|
608135816,
|
|
4430
4430
|
2242054355,
|
|
@@ -5482,68 +5482,68 @@ function Dx() {
|
|
|
5482
5482
|
pbox: [],
|
|
5483
5483
|
sbox: []
|
|
5484
5484
|
};
|
|
5485
|
-
function E(
|
|
5486
|
-
let i = D >> 24 & 255, o = D >> 16 & 255,
|
|
5487
|
-
return g = g ^
|
|
5485
|
+
function E(h, D) {
|
|
5486
|
+
let i = D >> 24 & 255, o = D >> 16 & 255, u = D >> 8 & 255, b = D & 255, g = h.sbox[0][i] + h.sbox[1][o];
|
|
5487
|
+
return g = g ^ h.sbox[2][u], g = g + h.sbox[3][b], g;
|
|
5488
5488
|
}
|
|
5489
|
-
function a(
|
|
5490
|
-
let o = D,
|
|
5489
|
+
function a(h, D, i) {
|
|
5490
|
+
let o = D, u = i, b;
|
|
5491
5491
|
for (let g = 0; g < B; ++g)
|
|
5492
|
-
o = o ^
|
|
5493
|
-
return b = o, o =
|
|
5492
|
+
o = o ^ h.pbox[g], u = E(h, o) ^ u, b = o, o = u, u = b;
|
|
5493
|
+
return b = o, o = u, u = b, u = u ^ h.pbox[B], o = o ^ h.pbox[B + 1], { left: o, right: u };
|
|
5494
5494
|
}
|
|
5495
|
-
function s(
|
|
5496
|
-
let o = D,
|
|
5495
|
+
function s(h, D, i) {
|
|
5496
|
+
let o = D, u = i, b;
|
|
5497
5497
|
for (let g = B + 1; g > 1; --g)
|
|
5498
|
-
o = o ^
|
|
5499
|
-
return b = o, o =
|
|
5498
|
+
o = o ^ h.pbox[g], u = E(h, o) ^ u, b = o, o = u, u = b;
|
|
5499
|
+
return b = o, o = u, u = b, u = u ^ h.pbox[1], o = o ^ h.pbox[0], { left: o, right: u };
|
|
5500
5500
|
}
|
|
5501
|
-
function f(
|
|
5501
|
+
function f(h, D, i) {
|
|
5502
5502
|
for (let y = 0; y < 4; y++) {
|
|
5503
|
-
|
|
5503
|
+
h.sbox[y] = [];
|
|
5504
5504
|
for (let k = 0; k < 256; k++)
|
|
5505
|
-
|
|
5505
|
+
h.sbox[y][k] = x[y][k];
|
|
5506
5506
|
}
|
|
5507
5507
|
let o = 0;
|
|
5508
5508
|
for (let y = 0; y < B + 2; y++)
|
|
5509
|
-
|
|
5510
|
-
let
|
|
5509
|
+
h.pbox[y] = C[y] ^ D[o], o++, o >= i && (o = 0);
|
|
5510
|
+
let u = 0, b = 0, g = 0;
|
|
5511
5511
|
for (let y = 0; y < B + 2; y += 2)
|
|
5512
|
-
g = a(
|
|
5512
|
+
g = a(h, u, b), u = g.left, b = g.right, h.pbox[y] = u, h.pbox[y + 1] = b;
|
|
5513
5513
|
for (let y = 0; y < 4; y++)
|
|
5514
5514
|
for (let k = 0; k < 256; k += 2)
|
|
5515
|
-
g = a(
|
|
5515
|
+
g = a(h, u, b), u = g.left, b = g.right, h.sbox[y][k] = u, h.sbox[y][k + 1] = b;
|
|
5516
5516
|
return !0;
|
|
5517
5517
|
}
|
|
5518
|
-
var
|
|
5518
|
+
var p = m.Blowfish = v.extend({
|
|
5519
5519
|
_doReset: function() {
|
|
5520
5520
|
if (this._keyPriorReset !== this._key) {
|
|
5521
|
-
var
|
|
5521
|
+
var h = this._keyPriorReset = this._key, D = h.words, i = h.sigBytes / 4;
|
|
5522
5522
|
f(n, D, i);
|
|
5523
5523
|
}
|
|
5524
5524
|
},
|
|
5525
|
-
encryptBlock: function(
|
|
5526
|
-
var i = a(n,
|
|
5527
|
-
|
|
5525
|
+
encryptBlock: function(h, D) {
|
|
5526
|
+
var i = a(n, h[D], h[D + 1]);
|
|
5527
|
+
h[D] = i.left, h[D + 1] = i.right;
|
|
5528
5528
|
},
|
|
5529
|
-
decryptBlock: function(
|
|
5530
|
-
var i = s(n,
|
|
5531
|
-
|
|
5529
|
+
decryptBlock: function(h, D) {
|
|
5530
|
+
var i = s(n, h[D], h[D + 1]);
|
|
5531
|
+
h[D] = i.left, h[D + 1] = i.right;
|
|
5532
5532
|
},
|
|
5533
5533
|
blockSize: 64 / 32,
|
|
5534
5534
|
keySize: 128 / 32,
|
|
5535
5535
|
ivSize: 64 / 32
|
|
5536
5536
|
});
|
|
5537
|
-
e.Blowfish =
|
|
5537
|
+
e.Blowfish = v._createHelper(p);
|
|
5538
5538
|
})(), t.Blowfish;
|
|
5539
5539
|
});
|
|
5540
5540
|
})(sr)), sr.exports;
|
|
5541
5541
|
}
|
|
5542
5542
|
var bx = y0.exports, Ae;
|
|
5543
5543
|
function mx() {
|
|
5544
|
-
return Ae || (Ae = 1, (function(r,
|
|
5545
|
-
(function(t, e,
|
|
5546
|
-
r.exports = e(M(),
|
|
5544
|
+
return Ae || (Ae = 1, (function(r, d) {
|
|
5545
|
+
(function(t, e, l) {
|
|
5546
|
+
r.exports = e(M(), dr(), Ft(), Dt(), s0(), _t(), c0(), ke(), Fr(), Ht(), Se(), Pt(), Wt(), Lt(), gr(), Tt(), a0(), K(), jt(), Xt(), Zt(), Qt(), Jt(), ex(), xx(), ax(), ix(), cx(), ux(), lx(), vx(), Bx(), Ex(), Fx(), Dx());
|
|
5547
5547
|
})(bx, function(t) {
|
|
5548
5548
|
return t;
|
|
5549
5549
|
});
|
|
@@ -5564,11 +5564,11 @@ function yx() {
|
|
|
5564
5564
|
};
|
|
5565
5565
|
}
|
|
5566
5566
|
function wx(r) {
|
|
5567
|
-
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.
|
|
5567
|
+
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.163`;
|
|
5568
5568
|
}
|
|
5569
|
-
function kx(r,
|
|
5569
|
+
function kx(r, d) {
|
|
5570
5570
|
const t = wx(r);
|
|
5571
|
-
return new Worker(t, { type: "module", ...
|
|
5571
|
+
return new Worker(t, { type: "module", ...d });
|
|
5572
5572
|
}
|
|
5573
5573
|
const Dr = () => {
|
|
5574
5574
|
try {
|
|
@@ -5580,47 +5580,47 @@ const Dr = () => {
|
|
|
5580
5580
|
Dr();
|
|
5581
5581
|
}, Fe = (...r) => {
|
|
5582
5582
|
Dr();
|
|
5583
|
-
}, ge = /* @__PURE__ */ new Map(),
|
|
5583
|
+
}, ge = /* @__PURE__ */ new Map(), Cr = /* @__PURE__ */ new Map();
|
|
5584
5584
|
let Sx = 0;
|
|
5585
5585
|
function Hx(r) {
|
|
5586
|
-
const
|
|
5587
|
-
if (
|
|
5586
|
+
const d = ge.get(r);
|
|
5587
|
+
if (d) return d;
|
|
5588
5588
|
const t = kx("./deform.worker.ts");
|
|
5589
5589
|
try {
|
|
5590
5590
|
t.postMessage({ type: "SET_DEBUG", debugRender: Dr() });
|
|
5591
5591
|
} catch {
|
|
5592
5592
|
}
|
|
5593
|
-
t.onmessage = (
|
|
5594
|
-
const { id:
|
|
5595
|
-
m0(`[renderService] deform worker 响应 id=${
|
|
5593
|
+
t.onmessage = (l) => {
|
|
5594
|
+
const { id: v, imageBitmap: m, error: B, duration: C } = l.data ?? {}, x = C ? ` worker耗时=${Math.round(C)}ms` : "";
|
|
5595
|
+
m0(`[renderService] deform worker 响应 id=${v}${x}`, {
|
|
5596
5596
|
hasImageBitmap: !!m,
|
|
5597
5597
|
width: m?.width,
|
|
5598
5598
|
height: m?.height,
|
|
5599
5599
|
error: B
|
|
5600
5600
|
});
|
|
5601
|
-
const n =
|
|
5601
|
+
const n = Cr.get(v);
|
|
5602
5602
|
if (n) {
|
|
5603
|
-
if (
|
|
5603
|
+
if (Cr.delete(v), B) {
|
|
5604
5604
|
n.reject(new Error(B));
|
|
5605
5605
|
return;
|
|
5606
5606
|
}
|
|
5607
5607
|
n.resolve(m);
|
|
5608
5608
|
}
|
|
5609
|
-
}, t.onerror = (
|
|
5609
|
+
}, t.onerror = (l) => {
|
|
5610
5610
|
};
|
|
5611
5611
|
const e = () => {
|
|
5612
|
-
const
|
|
5612
|
+
const l = yx();
|
|
5613
5613
|
return m0("🔍 [workerManager] 检查 License Token:", {
|
|
5614
|
-
hasToken: !!
|
|
5615
|
-
tokenPreview:
|
|
5614
|
+
hasToken: !!l.token,
|
|
5615
|
+
tokenPreview: l.token ? l.token.substring(0, 20) + "..." : "undefined",
|
|
5616
5616
|
faceId: r,
|
|
5617
5617
|
source: "licenseStore模块"
|
|
5618
|
-
}),
|
|
5618
|
+
}), l.token ? (m0("📤 [workerManager] 发送 License 到新创建的 Worker", { faceId: r }), t.postMessage({
|
|
5619
5619
|
type: "SET_LICENSE",
|
|
5620
|
-
licenseToken:
|
|
5621
|
-
licenseApiUrl:
|
|
5622
|
-
deviceId:
|
|
5623
|
-
domain:
|
|
5620
|
+
licenseToken: l.token,
|
|
5621
|
+
licenseApiUrl: l.apiUrl,
|
|
5622
|
+
deviceId: l.deviceId,
|
|
5623
|
+
domain: l.domain
|
|
5624
5624
|
}), !0) : !1;
|
|
5625
5625
|
};
|
|
5626
5626
|
return e() || (m0("⏳ [workerManager] License Token 未设置,等待后重试...", { faceId: r }), setTimeout(() => {
|
|
@@ -5635,10 +5635,10 @@ function $x(r) {
|
|
|
5635
5635
|
type: r.type,
|
|
5636
5636
|
blendMode: r.blendMode,
|
|
5637
5637
|
transform: Array.isArray(r.transform) ? [...r.transform] : [],
|
|
5638
|
-
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((
|
|
5639
|
-
x:
|
|
5640
|
-
y:
|
|
5641
|
-
type:
|
|
5638
|
+
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((d) => ({
|
|
5639
|
+
x: d.x,
|
|
5640
|
+
y: d.y,
|
|
5641
|
+
type: d.type
|
|
5642
5642
|
})) : [],
|
|
5643
5643
|
bounds: r.bounds ? {
|
|
5644
5644
|
width: r.bounds.width,
|
|
@@ -5661,30 +5661,30 @@ function $x(r) {
|
|
|
5661
5661
|
layerOrder: r.layerOrder,
|
|
5662
5662
|
imagePath: r.imagePath,
|
|
5663
5663
|
vectorMask: r.vectorMask ? {
|
|
5664
|
-
paths: r.vectorMask.paths?.map((
|
|
5665
|
-
open:
|
|
5666
|
-
knots:
|
|
5664
|
+
paths: r.vectorMask.paths?.map((d) => ({
|
|
5665
|
+
open: d.open,
|
|
5666
|
+
knots: d.knots?.map((t) => ({
|
|
5667
5667
|
linked: t.linked,
|
|
5668
5668
|
points: [...t.points]
|
|
5669
5669
|
})),
|
|
5670
|
-
fillRule:
|
|
5671
|
-
operation:
|
|
5670
|
+
fillRule: d.fillRule,
|
|
5671
|
+
operation: d.operation
|
|
5672
5672
|
})),
|
|
5673
|
-
points: r.vectorMask.points?.map((
|
|
5674
|
-
x:
|
|
5675
|
-
y:
|
|
5676
|
-
type:
|
|
5673
|
+
points: r.vectorMask.points?.map((d) => ({
|
|
5674
|
+
x: d.x,
|
|
5675
|
+
y: d.y,
|
|
5676
|
+
type: d.type
|
|
5677
5677
|
})),
|
|
5678
5678
|
invert: r.vectorMask.invert,
|
|
5679
5679
|
notLink: r.vectorMask.notLink,
|
|
5680
5680
|
disable: r.vectorMask.disable,
|
|
5681
5681
|
fillStartsWithAllPixels: r.vectorMask.fillStartsWithAllPixels
|
|
5682
5682
|
} : void 0,
|
|
5683
|
-
filterList: r.filterList ? r.filterList.map((
|
|
5684
|
-
type:
|
|
5685
|
-
enabled:
|
|
5686
|
-
filter:
|
|
5687
|
-
puppetShapeList:
|
|
5683
|
+
filterList: r.filterList ? r.filterList.map((d) => ({
|
|
5684
|
+
type: d.type,
|
|
5685
|
+
enabled: d.enabled,
|
|
5686
|
+
filter: d.filter ? {
|
|
5687
|
+
puppetShapeList: d.filter.puppetShapeList?.map((t) => ({
|
|
5688
5688
|
originalVertexArray: t.originalVertexArray.map((e) => ({
|
|
5689
5689
|
x: e.x,
|
|
5690
5690
|
y: e.y
|
|
@@ -5701,33 +5701,33 @@ function $x(r) {
|
|
|
5701
5701
|
clipping: r.clipping
|
|
5702
5702
|
};
|
|
5703
5703
|
}
|
|
5704
|
-
function Rx(r,
|
|
5705
|
-
const
|
|
5704
|
+
function Rx(r, d, t, e) {
|
|
5705
|
+
const l = ++Sx, v = Hx(t);
|
|
5706
5706
|
return performance.now(), (/* @__PURE__ */ new Date()).toISOString(), new Promise((m, B) => {
|
|
5707
|
-
|
|
5707
|
+
Cr.set(l, {
|
|
5708
5708
|
resolve: (x) => {
|
|
5709
5709
|
performance.now(), (/* @__PURE__ */ new Date()).toISOString(), m(x);
|
|
5710
5710
|
},
|
|
5711
5711
|
reject: B
|
|
5712
5712
|
});
|
|
5713
|
-
const C = $x(
|
|
5714
|
-
|
|
5713
|
+
const C = $x(d);
|
|
5714
|
+
v.postMessage({ id: l, designBitmap: r, layerData: C, canvasSize: e }, [
|
|
5715
5715
|
r
|
|
5716
5716
|
]);
|
|
5717
5717
|
});
|
|
5718
5718
|
}
|
|
5719
|
-
async function Px(r,
|
|
5720
|
-
const m = await ut(r,
|
|
5719
|
+
async function Px(r, d, t = 0, e, l, v) {
|
|
5720
|
+
const m = await ut(r, l, v);
|
|
5721
5721
|
if (!m || m.width === 0 || m.height === 0)
|
|
5722
5722
|
throw new Error("图片无效:尺寸为 0");
|
|
5723
|
-
return await Rx(m,
|
|
5723
|
+
return await Rx(m, d, t, e);
|
|
5724
5724
|
}
|
|
5725
|
-
function l0(r,
|
|
5725
|
+
function l0(r, d) {
|
|
5726
5726
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
5727
|
-
return new OffscreenCanvas(r,
|
|
5727
|
+
return new OffscreenCanvas(r, d);
|
|
5728
5728
|
if (typeof document < "u") {
|
|
5729
5729
|
const t = document.createElement("canvas");
|
|
5730
|
-
return t.width = r, t.height =
|
|
5730
|
+
return t.width = r, t.height = d, t;
|
|
5731
5731
|
} else
|
|
5732
5732
|
throw new Error("无法创建 canvas:不在 Worker 或主线程环境中");
|
|
5733
5733
|
}
|
|
@@ -5735,13 +5735,13 @@ function F0(r) {
|
|
|
5735
5735
|
return r.getContext("2d");
|
|
5736
5736
|
}
|
|
5737
5737
|
function De(r) {
|
|
5738
|
-
const
|
|
5739
|
-
if (!
|
|
5738
|
+
const d = F0(r);
|
|
5739
|
+
if (!d)
|
|
5740
5740
|
throw new Error("无法创建 canvas context");
|
|
5741
|
-
return
|
|
5741
|
+
return d;
|
|
5742
5742
|
}
|
|
5743
5743
|
async function zx(r) {
|
|
5744
|
-
const
|
|
5744
|
+
const d = performance.now(), t = () => {
|
|
5745
5745
|
try {
|
|
5746
5746
|
if (globalThis.__DEBUG_RENDER__ === !0 || typeof localStorage < "u" && localStorage.getItem("DEBUG_RENDER") === "1") return !0;
|
|
5747
5747
|
} catch {
|
|
@@ -5749,10 +5749,10 @@ async function zx(r) {
|
|
|
5749
5749
|
return !1;
|
|
5750
5750
|
}, e = (...c) => {
|
|
5751
5751
|
t();
|
|
5752
|
-
},
|
|
5752
|
+
}, l = (...c) => {
|
|
5753
5753
|
t();
|
|
5754
5754
|
}, {
|
|
5755
|
-
psdJson:
|
|
5755
|
+
psdJson: v,
|
|
5756
5756
|
materialList: m,
|
|
5757
5757
|
fabricScreenshotList: B,
|
|
5758
5758
|
width: C,
|
|
@@ -5760,8 +5760,8 @@ async function zx(r) {
|
|
|
5760
5760
|
baseUrl: n
|
|
5761
5761
|
} = r, E = r.maxImageSize;
|
|
5762
5762
|
e("[renderByJson] 接收到的数据:", {
|
|
5763
|
-
psdJsonLayerCount:
|
|
5764
|
-
psdJsonLayers:
|
|
5763
|
+
psdJsonLayerCount: v.layerList?.length || 0,
|
|
5764
|
+
psdJsonLayers: v.layerList?.map((c) => ({
|
|
5765
5765
|
name: c.name,
|
|
5766
5766
|
type: c.type,
|
|
5767
5767
|
id: c.id,
|
|
@@ -5787,7 +5787,7 @@ async function zx(r) {
|
|
|
5787
5787
|
const _ = new URL(c, n).toString();
|
|
5788
5788
|
return !_.includes("http") && !_.startsWith("data:") && !_.startsWith("blob:") ? void 0 : _;
|
|
5789
5789
|
} catch (_) {
|
|
5790
|
-
|
|
5790
|
+
l(`[renderByJson] 解析图片 URL 失败: ${c}`, _);
|
|
5791
5791
|
return;
|
|
5792
5792
|
}
|
|
5793
5793
|
}, s = {}, f = /* @__PURE__ */ new Map();
|
|
@@ -5799,17 +5799,17 @@ async function zx(r) {
|
|
|
5799
5799
|
url: c.url
|
|
5800
5800
|
}), f.set(c.layerName, c.url));
|
|
5801
5801
|
}
|
|
5802
|
-
const
|
|
5802
|
+
const p = /* @__PURE__ */ new Map();
|
|
5803
5803
|
for (const c of B)
|
|
5804
|
-
|
|
5805
|
-
e("[renderByJson] fabricScreenshotMap:", Array.from(
|
|
5804
|
+
p.set(c.id, c.url);
|
|
5805
|
+
e("[renderByJson] fabricScreenshotMap:", Array.from(p.entries())), e("[renderByJson] psdJson.layerList 结构:", v.layerList?.map((c) => ({
|
|
5806
5806
|
name: c.name,
|
|
5807
5807
|
type: c.type,
|
|
5808
5808
|
id: c.id,
|
|
5809
5809
|
hasChildren: !!c.children,
|
|
5810
5810
|
childrenCount: c.children?.length || 0
|
|
5811
5811
|
})));
|
|
5812
|
-
function
|
|
5812
|
+
function h(c, A) {
|
|
5813
5813
|
const _ = c.color || (c.name && ["粉", "白", "绿", "红", "蓝", "黄", "黑", "灰"].includes(c.name) ? c.name : A);
|
|
5814
5814
|
if (c.type === "Layer") {
|
|
5815
5815
|
if (c.imagePath) {
|
|
@@ -5844,36 +5844,36 @@ async function zx(r) {
|
|
|
5844
5844
|
}
|
|
5845
5845
|
if (c.children)
|
|
5846
5846
|
for (const W of c.children)
|
|
5847
|
-
W &&
|
|
5847
|
+
W && h(W, _);
|
|
5848
5848
|
}
|
|
5849
5849
|
function D(c, A) {
|
|
5850
5850
|
const _ = c.id ?? A;
|
|
5851
5851
|
if (c.type === "Group" && _)
|
|
5852
|
-
if (e(`[renderByJson] processLayer 检查 Group: name="${c.name}", id=${_}, hasFabricScreenshot=${
|
|
5853
|
-
const W =
|
|
5852
|
+
if (e(`[renderByJson] processLayer 检查 Group: name="${c.name}", id=${_}, hasFabricScreenshot=${p.has(_)}`), p.has(_)) {
|
|
5853
|
+
const W = p.get(_);
|
|
5854
5854
|
if (e(`[renderByJson] ✅ 找到匹配的 fabricScreenshot: Group id=${_}, name="${c.name}", url=${W.substring(0, 50)}...`), c.children) {
|
|
5855
5855
|
e(`[renderByJson] Group "${c.name}" 有 ${c.children.length} 个子图层`);
|
|
5856
5856
|
for (const P of c.children)
|
|
5857
5857
|
if (P && P.isSmartObject === !0) {
|
|
5858
5858
|
const L = P?.name || "";
|
|
5859
|
-
e(`[renderByJson] 找到智能对象: name="${L}"`), L && !s[L] && (s[L] = {}), L ? (s[L].designImage = W, e(`[renderByJson] ✅ 为智能对象 "${L}" 设置 designImage: ${W.substring(0, 50)}...`)) :
|
|
5859
|
+
e(`[renderByJson] 找到智能对象: name="${L}"`), L && !s[L] && (s[L] = {}), L ? (s[L].designImage = W, e(`[renderByJson] ✅ 为智能对象 "${L}" 设置 designImage: ${W.substring(0, 50)}...`)) : l("[renderByJson] ⚠️ 智能对象没有 name,无法设置 designImage");
|
|
5860
5860
|
}
|
|
5861
5861
|
} else
|
|
5862
|
-
|
|
5862
|
+
l(`[renderByJson] ⚠️ Group id=${_} 没有 children`);
|
|
5863
5863
|
} else
|
|
5864
5864
|
e(`[renderByJson] ⚠️ Group id=${_}, name="${c.name}" 没有匹配的 fabricScreenshot`);
|
|
5865
5865
|
if (c.children)
|
|
5866
5866
|
for (const W of c.children)
|
|
5867
5867
|
W && D(W, _);
|
|
5868
5868
|
}
|
|
5869
|
-
if (
|
|
5870
|
-
for (const c of
|
|
5871
|
-
c &&
|
|
5872
|
-
if (
|
|
5873
|
-
for (const c of
|
|
5869
|
+
if (v.layerList)
|
|
5870
|
+
for (const c of v.layerList)
|
|
5871
|
+
c && h(c);
|
|
5872
|
+
if (v.layerList)
|
|
5873
|
+
for (const c of v.layerList)
|
|
5874
5874
|
c && D(c);
|
|
5875
5875
|
const o = Je([{
|
|
5876
|
-
psdJson:
|
|
5876
|
+
psdJson: v,
|
|
5877
5877
|
layerExtrasByName: s
|
|
5878
5878
|
}], {
|
|
5879
5879
|
parts: [],
|
|
@@ -5881,10 +5881,10 @@ async function zx(r) {
|
|
|
5881
5881
|
});
|
|
5882
5882
|
if (!o.models || o.models.length === 0)
|
|
5883
5883
|
throw new Error("无法解析 JSON 数据");
|
|
5884
|
-
const
|
|
5885
|
-
if (!
|
|
5884
|
+
const u = o.models[0];
|
|
5885
|
+
if (!u.psdPartData)
|
|
5886
5886
|
throw new Error("JSON 数据中没有 psdPartData");
|
|
5887
|
-
const b =
|
|
5887
|
+
const b = u.width, g = u.height, y = l0(b, g), k = De(y), R = [], F = (c) => {
|
|
5888
5888
|
if (c.url && s[c.url])
|
|
5889
5889
|
return s[c.url];
|
|
5890
5890
|
if (c.url) {
|
|
@@ -5902,16 +5902,16 @@ async function zx(r) {
|
|
|
5902
5902
|
}
|
|
5903
5903
|
}
|
|
5904
5904
|
};
|
|
5905
|
-
for (let c = 0; c <
|
|
5906
|
-
const A =
|
|
5905
|
+
for (let c = 0; c < u.psdPartData.length; c++) {
|
|
5906
|
+
const A = u.psdPartData[c], _ = F(A);
|
|
5907
5907
|
if (A.type === g0.Layer) {
|
|
5908
5908
|
if (!_ || !_.url) {
|
|
5909
|
-
|
|
5909
|
+
l(`图层 "${A.name}" 没有匹配的 material,跳过`);
|
|
5910
5910
|
continue;
|
|
5911
5911
|
}
|
|
5912
5912
|
const W = _.url, P = a(W);
|
|
5913
5913
|
if (!P) {
|
|
5914
|
-
|
|
5914
|
+
l(`图层 "${A.name}" 没有有效的 url,跳过`);
|
|
5915
5915
|
continue;
|
|
5916
5916
|
}
|
|
5917
5917
|
R.push({
|
|
@@ -5929,11 +5929,11 @@ async function zx(r) {
|
|
|
5929
5929
|
continue;
|
|
5930
5930
|
let L = s[P.name] ?? _;
|
|
5931
5931
|
if (!L && P.imagePath && (L = s[P.imagePath], !L)) {
|
|
5932
|
-
const
|
|
5933
|
-
if (L = s[
|
|
5934
|
-
const G = m.find((
|
|
5935
|
-
const r0 =
|
|
5936
|
-
return !r0 || !P.imagePath ? !1 : (r0.split("/").pop() || r0) ===
|
|
5932
|
+
const X = P.imagePath.split("/").pop() || P.imagePath;
|
|
5933
|
+
if (L = s[X], !L) {
|
|
5934
|
+
const G = m.find((Z) => {
|
|
5935
|
+
const r0 = Z.sourceName || Z.layerName;
|
|
5936
|
+
return !r0 || !P.imagePath ? !1 : (r0.split("/").pop() || r0) === X || r0 === P.imagePath || r0.endsWith(P.imagePath) || P.imagePath.endsWith(r0);
|
|
5937
5937
|
});
|
|
5938
5938
|
G && (L = { url: G.url });
|
|
5939
5939
|
}
|
|
@@ -5950,7 +5950,7 @@ async function zx(r) {
|
|
|
5950
5950
|
continue;
|
|
5951
5951
|
I = G;
|
|
5952
5952
|
}
|
|
5953
|
-
const
|
|
5953
|
+
const Y = (A.partId ?? A.id) * 100 + W, Q = et(rt(P)), o0 = { width: b, height: g };
|
|
5954
5954
|
R.push({
|
|
5955
5955
|
index: c + W * 0.01,
|
|
5956
5956
|
type: "group",
|
|
@@ -5960,11 +5960,11 @@ async function zx(r) {
|
|
|
5960
5960
|
promise: Px(
|
|
5961
5961
|
I,
|
|
5962
5962
|
P,
|
|
5963
|
-
|
|
5963
|
+
Y,
|
|
5964
5964
|
o0,
|
|
5965
5965
|
E,
|
|
5966
5966
|
n
|
|
5967
|
-
).catch((
|
|
5967
|
+
).catch((X) => null)
|
|
5968
5968
|
});
|
|
5969
5969
|
}
|
|
5970
5970
|
}
|
|
@@ -5980,7 +5980,7 @@ async function zx(r) {
|
|
|
5980
5980
|
for (let c = 0; c < H.length; c++) {
|
|
5981
5981
|
const { task: A, imageBitmap: _ } = H[c];
|
|
5982
5982
|
if (!_) {
|
|
5983
|
-
|
|
5983
|
+
l(`[renderByJson] 图层 "${A.partData.name}" 没有 imageBitmap,跳过`);
|
|
5984
5984
|
continue;
|
|
5985
5985
|
}
|
|
5986
5986
|
const { partData: W } = A, P = W.bounds;
|
|
@@ -5988,11 +5988,11 @@ async function zx(r) {
|
|
|
5988
5988
|
A.type === "group" && A.smartObject ? L = A.smartObject.opacity ?? W.opacity : L = W.opacity, (typeof L != "number" || isNaN(L)) && (L = 1);
|
|
5989
5989
|
let I;
|
|
5990
5990
|
A.type === "group" && A.smartObject ? I = A.smartObject.clipping ?? W.clipping === !0 : I = W.clipping === !0;
|
|
5991
|
-
const
|
|
5991
|
+
const Y = H[c + 1];
|
|
5992
5992
|
let Q = !1;
|
|
5993
|
-
if (
|
|
5994
|
-
const
|
|
5995
|
-
|
|
5993
|
+
if (Y) {
|
|
5994
|
+
const X = Y.task.partData;
|
|
5995
|
+
Y.task.type === "group" && Y.task.smartObject ? Q = Y.task.smartObject.clipping ?? X.clipping === !0 : Q = X.clipping === !0;
|
|
5996
5996
|
}
|
|
5997
5997
|
const o0 = A.type === "group" && A.smartObject && A.smartObject.name ? A.smartObject.name : W?.name || "未命名图层";
|
|
5998
5998
|
if (e(`[renderByJson] 绘制图层 "${o0}"`, {
|
|
@@ -6007,8 +6007,8 @@ async function zx(r) {
|
|
|
6007
6007
|
if (O = !0, q = W.blendMode || "normal", z) {
|
|
6008
6008
|
if (z.clearRect(0, 0, b, g), z.globalCompositeOperation = "source-over", z.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6009
6009
|
if (A.maskData) {
|
|
6010
|
-
const
|
|
6011
|
-
G && (G.drawImage(_, 0, 0),
|
|
6010
|
+
const X = l0(b, g), G = F0(X);
|
|
6011
|
+
G && (G.drawImage(_, 0, 0), hr(G, A.maskData), z.drawImage(X, 0, 0));
|
|
6012
6012
|
} else
|
|
6013
6013
|
z.drawImage(_, 0, 0);
|
|
6014
6014
|
else A.type === "layer" && (P ? z.drawImage(
|
|
@@ -6024,8 +6024,8 @@ async function zx(r) {
|
|
|
6024
6024
|
if (z) {
|
|
6025
6025
|
if (z.globalCompositeOperation = "source-atop", z.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6026
6026
|
if (A.maskData) {
|
|
6027
|
-
const
|
|
6028
|
-
G && (G.drawImage(_, 0, 0),
|
|
6027
|
+
const X = l0(b, g), G = F0(X);
|
|
6028
|
+
G && (G.drawImage(_, 0, 0), hr(G, A.maskData), z.drawImage(X, 0, 0));
|
|
6029
6029
|
} else
|
|
6030
6030
|
z.drawImage(_, 0, 0);
|
|
6031
6031
|
else A.type === "layer" && (P ? z.drawImage(
|
|
@@ -6040,8 +6040,8 @@ async function zx(r) {
|
|
|
6040
6040
|
} else {
|
|
6041
6041
|
if (k.globalCompositeOperation = Lr(W.blendMode), k.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6042
6042
|
if (A.maskData) {
|
|
6043
|
-
const
|
|
6044
|
-
G && (G.drawImage(_, 0, 0),
|
|
6043
|
+
const X = l0(b, g), G = F0(X);
|
|
6044
|
+
G && (G.drawImage(_, 0, 0), hr(G, A.maskData), k.drawImage(X, 0, 0));
|
|
6045
6045
|
} else
|
|
6046
6046
|
k.drawImage(_, 0, 0);
|
|
6047
6047
|
else A.type === "layer" && (P ? k.drawImage(
|
|
@@ -6071,7 +6071,7 @@ async function zx(r) {
|
|
|
6071
6071
|
const c = De(U);
|
|
6072
6072
|
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
6073
|
}
|
|
6074
|
-
const S = performance.now() -
|
|
6074
|
+
const S = performance.now() - d;
|
|
6075
6075
|
return e(`[renderByJson] 绘制完成,总渲染时间: ${Math.round(S)}ms`), {
|
|
6076
6076
|
canvas: U,
|
|
6077
6077
|
width: T,
|
|
@@ -6082,38 +6082,38 @@ const ze = async (r) => {
|
|
|
6082
6082
|
const t = (await zx(r)).canvas;
|
|
6083
6083
|
return t ? createImageBitmap(t) : null;
|
|
6084
6084
|
};
|
|
6085
|
-
let i0 = null,
|
|
6085
|
+
let i0 = null, pr = !1;
|
|
6086
6086
|
const We = async () => {
|
|
6087
|
-
if (!
|
|
6088
|
-
|
|
6087
|
+
if (!pr) {
|
|
6088
|
+
pr = !0;
|
|
6089
6089
|
try {
|
|
6090
6090
|
for (; i0; ) {
|
|
6091
6091
|
const r = i0;
|
|
6092
6092
|
i0 = null;
|
|
6093
6093
|
try {
|
|
6094
|
-
const
|
|
6094
|
+
const d = await ze(r.renderData);
|
|
6095
6095
|
if (i0) {
|
|
6096
|
-
|
|
6096
|
+
d?.close?.();
|
|
6097
6097
|
continue;
|
|
6098
6098
|
}
|
|
6099
|
-
self.postMessage({ id: r.id, bitmap:
|
|
6100
|
-
} catch (
|
|
6099
|
+
self.postMessage({ id: r.id, bitmap: d }, d ? [d] : []);
|
|
6100
|
+
} catch (d) {
|
|
6101
6101
|
if (i0) continue;
|
|
6102
6102
|
self.postMessage({
|
|
6103
6103
|
id: r.id,
|
|
6104
|
-
error:
|
|
6104
|
+
error: d instanceof Error ? d.message : String(d)
|
|
6105
6105
|
});
|
|
6106
6106
|
}
|
|
6107
6107
|
}
|
|
6108
6108
|
} finally {
|
|
6109
|
-
|
|
6109
|
+
pr = !1, i0 && We();
|
|
6110
6110
|
}
|
|
6111
6111
|
}
|
|
6112
6112
|
};
|
|
6113
6113
|
self.onmessage = async (r) => {
|
|
6114
|
-
const
|
|
6115
|
-
if (
|
|
6116
|
-
const e =
|
|
6114
|
+
const d = r.data;
|
|
6115
|
+
if (d && typeof d == "object" && "type" in d && d.type === "SET_LICENSE") {
|
|
6116
|
+
const e = d;
|
|
6117
6117
|
_x({
|
|
6118
6118
|
token: e.licenseToken,
|
|
6119
6119
|
apiUrl: e.licenseApiUrl,
|
|
@@ -6122,7 +6122,7 @@ self.onmessage = async (r) => {
|
|
|
6122
6122
|
});
|
|
6123
6123
|
return;
|
|
6124
6124
|
}
|
|
6125
|
-
const t =
|
|
6125
|
+
const t = d;
|
|
6126
6126
|
if (t.coalesce === !0) {
|
|
6127
6127
|
i0 = { id: t.id, renderData: t.renderData }, We();
|
|
6128
6128
|
return;
|