@jieyin/editor-sdk-test 1.1.171 → 1.1.172
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 +1494 -1495
- package/dist/renderWorker.js +719 -720
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/renderWorker.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var D0 = /* @__PURE__ */ ((r) => (r[r.Group = 0] = "Group", r[r.Layer = 1] = "Layer", r))(D0 || {});
|
|
2
2
|
function et(r) {
|
|
3
|
-
let
|
|
3
|
+
let h = r;
|
|
4
4
|
return () => {
|
|
5
|
-
const t =
|
|
6
|
-
return
|
|
5
|
+
const t = h;
|
|
6
|
+
return h += 1, t;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
function tt(r,
|
|
9
|
+
function tt(r, h) {
|
|
10
10
|
return {
|
|
11
11
|
name: r.name || "",
|
|
12
12
|
type: r.type || "Layer",
|
|
@@ -23,23 +23,23 @@ function tt(r, d) {
|
|
|
23
23
|
quiltSliceY: r.quiltSliceY,
|
|
24
24
|
layerOrder: r.layerOrder,
|
|
25
25
|
imagePath: r.imagePath,
|
|
26
|
-
vectorMask: r.vectorMask ??
|
|
26
|
+
vectorMask: r.vectorMask ?? h,
|
|
27
27
|
filterList: r.filterList,
|
|
28
28
|
opacity: r.opacity,
|
|
29
29
|
clipping: r.clipping
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
function xt(r,
|
|
33
|
-
let c = r.name || "", v =
|
|
34
|
-
if (r.type === "Group" &&
|
|
35
|
-
const x = r.children[0].name, n =
|
|
36
|
-
(E !== void 0 || n?.id !== void 0) && (c = x, v = n,
|
|
32
|
+
function xt(r, h, t, e) {
|
|
33
|
+
let c = r.name || "", v = h[c], _ = v?.partId ?? (r.type === "Group" ? t.get(c) : void 0);
|
|
34
|
+
if (r.type === "Group" && _ === void 0 && (!v || v.id === void 0) && r.children && r.children.length === 1) {
|
|
35
|
+
const x = r.children[0].name, n = h[x], E = n?.partId ?? t.get(x);
|
|
36
|
+
(E !== void 0 || n?.id !== void 0) && (c = x, v = n, _ = E);
|
|
37
37
|
}
|
|
38
38
|
const B = r.id ?? v?.id ?? e();
|
|
39
39
|
if (r.type === "Group")
|
|
40
40
|
return {
|
|
41
41
|
id: B,
|
|
42
|
-
partId:
|
|
42
|
+
partId: _,
|
|
43
43
|
name: c,
|
|
44
44
|
blendMode: r.blendMode || "normal",
|
|
45
45
|
bounds: r.bounds || { left: 0, top: 0, width: 0, height: 0 },
|
|
@@ -64,31 +64,31 @@ function xt(r, d, t, e) {
|
|
|
64
64
|
layerOrder: r.layerOrder
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
function nt(r,
|
|
68
|
-
const t = new Map(
|
|
67
|
+
function nt(r, h) {
|
|
68
|
+
const t = new Map(h.parts.map((c) => [c.name, c.id])), e = et(h.defaultIdStart ?? 1);
|
|
69
69
|
return {
|
|
70
|
-
parts:
|
|
70
|
+
parts: h.parts,
|
|
71
71
|
models: r.map((c) => {
|
|
72
|
-
const v = c.layerExtrasByName ?? {},
|
|
72
|
+
const v = c.layerExtrasByName ?? {}, _ = c.psdJson, B = _.layerList || _.layerList || [], C = _.canvasWidth, x = _.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 u = [];
|
|
77
77
|
for (const p of s)
|
|
78
78
|
if (p.type === "Group" && p.children) {
|
|
79
|
-
const
|
|
80
|
-
const b = o.layerOrder ?? 0, g =
|
|
79
|
+
const l = [], D = [], i = [...p.children].sort((o, d) => {
|
|
80
|
+
const b = o.layerOrder ?? 0, g = d.layerOrder ?? 0;
|
|
81
81
|
return b - g;
|
|
82
82
|
});
|
|
83
83
|
for (const o of i)
|
|
84
|
-
o.isSmartObject === !0 ?
|
|
84
|
+
o.isSmartObject === !0 ? l.push(o) : D.push(o);
|
|
85
85
|
if (D.length > 0) {
|
|
86
86
|
const o = n(D);
|
|
87
87
|
u.push(...o);
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
l.length > 0 && u.push({
|
|
90
90
|
...p,
|
|
91
|
-
children:
|
|
91
|
+
children: l
|
|
92
92
|
});
|
|
93
93
|
} else
|
|
94
94
|
u.push(p);
|
|
@@ -110,44 +110,44 @@ function at(r) {
|
|
|
110
110
|
function ot(r) {
|
|
111
111
|
return r ? r.type === "bezier" ? {
|
|
112
112
|
type: "bezier",
|
|
113
|
-
paths: r.paths.map((
|
|
114
|
-
open: !!
|
|
115
|
-
knots:
|
|
113
|
+
paths: r.paths.map((h) => ({
|
|
114
|
+
open: !!h.open,
|
|
115
|
+
knots: h.knots.map((t) => ({
|
|
116
116
|
linked: !!t.linked,
|
|
117
117
|
points: Array.isArray(t.points) ? [...t.points] : []
|
|
118
118
|
}))
|
|
119
119
|
}))
|
|
120
120
|
} : r.type === "simple" ? {
|
|
121
121
|
type: "simple",
|
|
122
|
-
points: r.points.map((
|
|
123
|
-
x:
|
|
124
|
-
y:
|
|
125
|
-
type:
|
|
122
|
+
points: r.points.map((h) => ({
|
|
123
|
+
x: h.x,
|
|
124
|
+
y: h.y,
|
|
125
|
+
type: h.type
|
|
126
126
|
}))
|
|
127
127
|
} : null : null;
|
|
128
128
|
}
|
|
129
|
-
function Br(r,
|
|
130
|
-
if (
|
|
131
|
-
if (r.globalCompositeOperation = "destination-in", r.beginPath(),
|
|
132
|
-
|
|
129
|
+
function Br(r, h) {
|
|
130
|
+
if (h) {
|
|
131
|
+
if (r.globalCompositeOperation = "destination-in", r.beginPath(), h.type === "bezier" && Array.isArray(h.paths))
|
|
132
|
+
h.paths.forEach((t) => {
|
|
133
133
|
const e = t.knots;
|
|
134
134
|
if (!e || e.length < 2) return;
|
|
135
135
|
const c = e[0];
|
|
136
136
|
r.moveTo(c.points[2], c.points[3]);
|
|
137
137
|
for (let v = 0; v < e.length; v++) {
|
|
138
|
-
const
|
|
138
|
+
const _ = e[v];
|
|
139
139
|
let B = (v + 1) % e.length;
|
|
140
140
|
if (!t.open && v === e.length - 1)
|
|
141
141
|
B = 0;
|
|
142
142
|
else if (t.open && v === e.length - 1)
|
|
143
143
|
break;
|
|
144
|
-
const C = e[B], x =
|
|
144
|
+
const C = e[B], x = _.points[4], n = _.points[5], E = C.points[0], a = C.points[1], s = C.points[2], u = C.points[3];
|
|
145
145
|
r.bezierCurveTo(x, n, E, a, s, u);
|
|
146
146
|
}
|
|
147
147
|
t.open || r.closePath();
|
|
148
148
|
});
|
|
149
|
-
else if (
|
|
150
|
-
const t =
|
|
149
|
+
else if (h.type === "simple" && Array.isArray(h.points)) {
|
|
150
|
+
const t = h.points;
|
|
151
151
|
if (t.length < 3) return;
|
|
152
152
|
r.moveTo(t[0].x, t[0].y);
|
|
153
153
|
for (let e = 1; e < t.length; e++) r.lineTo(t[e].x, t[e].y);
|
|
@@ -161,10 +161,10 @@ class p0 {
|
|
|
161
161
|
/**
|
|
162
162
|
* 获取存储项
|
|
163
163
|
*/
|
|
164
|
-
static getItem(
|
|
164
|
+
static getItem(h) {
|
|
165
165
|
if (!this.hasStorage) return null;
|
|
166
166
|
try {
|
|
167
|
-
return localStorage.getItem(
|
|
167
|
+
return localStorage.getItem(h);
|
|
168
168
|
} catch {
|
|
169
169
|
return null;
|
|
170
170
|
}
|
|
@@ -172,10 +172,10 @@ class p0 {
|
|
|
172
172
|
/**
|
|
173
173
|
* 设置存储项
|
|
174
174
|
*/
|
|
175
|
-
static setItem(
|
|
175
|
+
static setItem(h, t) {
|
|
176
176
|
if (!this.hasStorage) return !1;
|
|
177
177
|
try {
|
|
178
|
-
return localStorage.setItem(
|
|
178
|
+
return localStorage.setItem(h, t), !0;
|
|
179
179
|
} catch {
|
|
180
180
|
return !1;
|
|
181
181
|
}
|
|
@@ -183,10 +183,10 @@ class p0 {
|
|
|
183
183
|
/**
|
|
184
184
|
* 移除存储项
|
|
185
185
|
*/
|
|
186
|
-
static removeItem(
|
|
186
|
+
static removeItem(h) {
|
|
187
187
|
if (!this.hasStorage) return !1;
|
|
188
188
|
try {
|
|
189
|
-
return localStorage.removeItem(
|
|
189
|
+
return localStorage.removeItem(h), !0;
|
|
190
190
|
} catch {
|
|
191
191
|
return !1;
|
|
192
192
|
}
|
|
@@ -209,7 +209,7 @@ class p0 {
|
|
|
209
209
|
return this.hasStorage;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
class
|
|
212
|
+
class lr {
|
|
213
213
|
/**
|
|
214
214
|
* 是否在浏览器环境
|
|
215
215
|
*/
|
|
@@ -251,10 +251,10 @@ class v0 {
|
|
|
251
251
|
/**
|
|
252
252
|
* 安全地解析 URL
|
|
253
253
|
*/
|
|
254
|
-
static parse(
|
|
254
|
+
static parse(h) {
|
|
255
255
|
try {
|
|
256
|
-
const t =
|
|
257
|
-
return new URL(
|
|
256
|
+
const t = lr.getOrigin();
|
|
257
|
+
return new URL(h, t);
|
|
258
258
|
} catch {
|
|
259
259
|
return null;
|
|
260
260
|
}
|
|
@@ -262,227 +262,226 @@ class v0 {
|
|
|
262
262
|
/**
|
|
263
263
|
* 添加查询参数
|
|
264
264
|
*/
|
|
265
|
-
static addParam(
|
|
266
|
-
const c = this.parse(
|
|
267
|
-
return !c || c.searchParams.has(t) ?
|
|
265
|
+
static addParam(h, t, e) {
|
|
266
|
+
const c = this.parse(h);
|
|
267
|
+
return !c || c.searchParams.has(t) ? h : (c.searchParams.set(t, e), this.formatUrl(h, c));
|
|
268
268
|
}
|
|
269
269
|
/**
|
|
270
270
|
* 移除查询参数
|
|
271
271
|
*/
|
|
272
|
-
static removeParam(
|
|
273
|
-
const e = this.parse(
|
|
274
|
-
return !e || !e.searchParams.has(t) ?
|
|
272
|
+
static removeParam(h, t) {
|
|
273
|
+
const e = this.parse(h);
|
|
274
|
+
return !e || !e.searchParams.has(t) ? h : (e.searchParams.delete(t), this.formatUrl(h, e));
|
|
275
275
|
}
|
|
276
276
|
/**
|
|
277
277
|
* 检查是否有指定参数
|
|
278
278
|
*/
|
|
279
|
-
static hasParam(
|
|
280
|
-
return this.parse(
|
|
279
|
+
static hasParam(h, t) {
|
|
280
|
+
return this.parse(h)?.searchParams.has(t) ?? !1;
|
|
281
281
|
}
|
|
282
282
|
/**
|
|
283
283
|
* 格式化 URL(保持原始格式)
|
|
284
284
|
*/
|
|
285
|
-
static formatUrl(
|
|
286
|
-
const e = /^(https?:)?\/\//i.test(
|
|
285
|
+
static formatUrl(h, t) {
|
|
286
|
+
const e = /^(https?:)?\/\//i.test(h), c = h.startsWith("//");
|
|
287
287
|
return e ? t.toString() : c ? t.toString().replace(/^https?:/, "") : `${t.pathname}${t.search}${t.hash}`;
|
|
288
288
|
}
|
|
289
289
|
/**
|
|
290
290
|
* 检查是否为数据 URL
|
|
291
291
|
*/
|
|
292
|
-
static isDataUrl(
|
|
293
|
-
return
|
|
292
|
+
static isDataUrl(h) {
|
|
293
|
+
return h?.startsWith("data:") ?? !1;
|
|
294
294
|
}
|
|
295
295
|
/**
|
|
296
296
|
* 检查是否为 Blob URL
|
|
297
297
|
*/
|
|
298
|
-
static isBlobUrl(
|
|
299
|
-
return
|
|
298
|
+
static isBlobUrl(h) {
|
|
299
|
+
return h?.startsWith("blob:") ?? !1;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
const it = /* @__PURE__ */ new Map(), st = /* @__PURE__ */ new Map();
|
|
303
303
|
function ct() {
|
|
304
304
|
it.clear(), st.clear();
|
|
305
305
|
}
|
|
306
|
-
const
|
|
307
|
-
(function(r,
|
|
308
|
-
const t =
|
|
306
|
+
const x0 = dr;
|
|
307
|
+
(function(r, h) {
|
|
308
|
+
const t = dr, e = r();
|
|
309
309
|
for (; ; )
|
|
310
310
|
try {
|
|
311
|
-
if (
|
|
311
|
+
if (parseInt(t(377)) / 1 * (-parseInt(t(399)) / 2) + -parseInt(t(384)) / 3 * (-parseInt(t(387)) / 4) + parseInt(t(405)) / 5 * (-parseInt(t(396)) / 6) + parseInt(t(376)) / 7 * (parseInt(t(401)) / 8) + parseInt(t(381)) / 9 + -parseInt(t(388)) / 10 * (parseInt(t(403)) / 11) + -parseInt(t(386)) / 12 * (-parseInt(t(397)) / 13) === h) break;
|
|
312
312
|
e.push(e.shift());
|
|
313
313
|
} catch {
|
|
314
314
|
e.push(e.shift());
|
|
315
315
|
}
|
|
316
|
-
})(ur,
|
|
316
|
+
})(ur, -2 * -74741 + 106 * 8009 + -503782);
|
|
317
317
|
const F0 = /* @__PURE__ */ (function() {
|
|
318
318
|
let r = !0;
|
|
319
|
-
return function(
|
|
319
|
+
return function(h, t) {
|
|
320
320
|
const e = r ? function() {
|
|
321
|
-
const c = lr;
|
|
322
321
|
if (t) {
|
|
323
|
-
const
|
|
324
|
-
return t = null,
|
|
322
|
+
const c = t.apply(h, arguments);
|
|
323
|
+
return t = null, c;
|
|
325
324
|
}
|
|
326
325
|
} : function() {
|
|
327
326
|
};
|
|
328
327
|
return r = !1, e;
|
|
329
328
|
};
|
|
330
329
|
})(), ft = F0(void 0, function() {
|
|
331
|
-
const r =
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
330
|
+
const r = dr, h = function() {
|
|
331
|
+
const v = dr;
|
|
332
|
+
let _;
|
|
333
|
+
try {
|
|
334
|
+
_ = Function("return (fu" + v(378) + "n() " + ("{}.co" + v(390) + 'ctor("return this")( )') + ");")();
|
|
335
|
+
} catch {
|
|
336
|
+
_ = window;
|
|
337
|
+
}
|
|
338
|
+
return _;
|
|
339
|
+
}, t = h(), e = t.console = t[r(393) + "le"] || {}, c = [r(375), "warn", "info", "error", "exception", "table", r(391)];
|
|
340
|
+
for (let v = 1 * 4772 + 6115 + -1 * 10887; v < c[r(380) + "h"]; v++) {
|
|
341
|
+
const _ = F0.constructor.prototype.bind(F0), B = c[v], C = e[B] || _;
|
|
342
|
+
_["__pro" + r(383)] = F0[r(382)](F0), _.toString = C["toStr" + r(404)].bind(C), e[B] = _;
|
|
342
343
|
}
|
|
343
344
|
});
|
|
344
345
|
ft();
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
return
|
|
346
|
+
function ur() {
|
|
347
|
+
const r = ["6NaqhTm", "10949601AeKlTO", "file_", "4HvHjKc", "remov", "1736fLzpqF", "expir", "78826IUbipt", "ing", "1107410sXTEgd", "okenR", "/file", "log", "5299hOSAlQ", "340922ssmNZO", "nctio", "es_in", "lengt", "1717596DEiaxL", "bind", "to__", "211368pKIIxp", "numbe", "12cfgraL", "24EfNHMp", "310agFrdW", "re_ti", "nstru", "trace", "fileT", "conso", "now", "_expi"];
|
|
348
|
+
return ur = function() {
|
|
349
|
+
return r;
|
|
350
|
+
}, ur();
|
|
348
351
|
}
|
|
352
|
+
const Dr = "file_token", br = x0(398) + "token" + x0(395) + x0(389) + "me", ut = (-5802 + -1 * -624 + 5238) * (9530 + 19 * -424 + -474);
|
|
349
353
|
function Fr() {
|
|
350
354
|
return p0.getItem(Dr);
|
|
351
355
|
}
|
|
352
356
|
function dt(r = ut) {
|
|
353
|
-
const
|
|
357
|
+
const h = x0;
|
|
354
358
|
if (!Fr()) return !0;
|
|
355
359
|
const e = p0.getItem(br);
|
|
356
360
|
if (!e) return !1;
|
|
357
361
|
const c = Number(e);
|
|
358
|
-
return Date[
|
|
362
|
+
return Date[h(394)]() + r > c;
|
|
359
363
|
}
|
|
360
|
-
function lt(r,
|
|
361
|
-
|
|
362
|
-
|
|
364
|
+
function lt(r, h) {
|
|
365
|
+
const t = x0;
|
|
366
|
+
if (p0.setItem(Dr, r), typeof h == t(385) + "r" && h > 14294 + -2 * 7147) {
|
|
367
|
+
const e = Date[t(394)]() + h * 1e3;
|
|
363
368
|
p0.setItem(br, String(e));
|
|
364
369
|
}
|
|
365
370
|
}
|
|
366
371
|
function ht() {
|
|
367
|
-
|
|
368
|
-
p0.removeItem(Dr), p0[r(163) + "eItem"](br), bt(), ct();
|
|
372
|
+
p0[x0(400) + "eItem"](Dr), p0.removeItem(br), bt(), ct();
|
|
369
373
|
}
|
|
370
374
|
async function qr(r) {
|
|
371
|
-
const
|
|
372
|
-
return t?.data?.code === -
|
|
375
|
+
const h = x0, t = await r(), e = t?.data?.data;
|
|
376
|
+
return t?.data?.code === -4 * -1540 + -8390 * 1 + 2430 && e?.["file_token"] ? (lt(e.file_token, e[h(402) + h(379)]), e.file_token) : null;
|
|
373
377
|
}
|
|
374
378
|
let vt = null;
|
|
379
|
+
function dr(r, h) {
|
|
380
|
+
return r = r - (-3 * -395 + 3118 * -1 + 2307), ur()[r];
|
|
381
|
+
}
|
|
375
382
|
function Tr() {
|
|
376
|
-
return
|
|
383
|
+
return lr.isBrowser() ? vt : null;
|
|
377
384
|
}
|
|
378
385
|
async function we() {
|
|
379
|
-
const r =
|
|
380
|
-
if (!
|
|
381
|
-
const
|
|
382
|
-
if (
|
|
386
|
+
const r = x0;
|
|
387
|
+
if (!lr.isBrowser()) return Fr();
|
|
388
|
+
const h = Fr();
|
|
389
|
+
if (h && !dt()) return h;
|
|
383
390
|
try {
|
|
384
391
|
const t = await Tr();
|
|
385
|
-
if (
|
|
386
|
-
const e = await qr(t[r(
|
|
392
|
+
if (h && t?.["fetchFileTokenRefresh"]) {
|
|
393
|
+
const e = await qr(t["fetchFileT" + r(406) + "efresh"]);
|
|
387
394
|
if (e) return e;
|
|
388
395
|
}
|
|
389
396
|
} catch {
|
|
390
397
|
}
|
|
391
398
|
try {
|
|
392
399
|
const t = Tr();
|
|
393
|
-
return t?.["
|
|
400
|
+
return t?.["fetchFileToken"] ? await qr(t.fetchFileToken) : null;
|
|
394
401
|
} catch {
|
|
395
402
|
return null;
|
|
396
403
|
}
|
|
397
404
|
}
|
|
398
|
-
function ur() {
|
|
399
|
-
const r = ["metho", "5FRwsZi", "_expi", "3053370KKYNjW", "342150NfDqwI", "FileT", "file_", "re_ti", "lengt", "inclu", "n (fu", "5373150OUXYNk", "setIt", "99GkwoZA", "oken=", "806512GNiyaN", "n() ", "2705560bsCTrG", "des", 'is")(', "67333KRYScs", "set", "150ztNkFV", "oken", "remov", "832701UfStOz", "aUrl", "erCas", "addPa", "proto", "now", "apply", "get", "fetch", "token", "hasPa", "ePara"];
|
|
400
|
-
return ur = function() {
|
|
401
|
-
return r;
|
|
402
|
-
}, ur();
|
|
403
|
-
}
|
|
404
405
|
function ke(r) {
|
|
405
|
-
const
|
|
406
|
-
if (!r || v0
|
|
406
|
+
const h = x0;
|
|
407
|
+
if (!r || v0.isDataUrl(r) || v0.isBlobUrl(r)) return !1;
|
|
407
408
|
const t = v0.parse(r);
|
|
408
|
-
return t ? t.pathname.includes("/files/") && !v0
|
|
409
|
+
return t ? t.pathname.includes("/files/") && !v0.hasParam(r, "fileToken") : r.includes(h(374) + "s/") && !r.includes(h(392) + "oken=");
|
|
409
410
|
}
|
|
410
|
-
function Se(r,
|
|
411
|
-
|
|
412
|
-
return !d || !ke(r) ? r : v0[t(167) + "ram"](r, "fileToken", d);
|
|
411
|
+
function Se(r, h) {
|
|
412
|
+
return !h || !ke(r) ? r : v0.addParam(r, "fileToken", h);
|
|
413
413
|
}
|
|
414
414
|
function He(r) {
|
|
415
|
-
return v0
|
|
415
|
+
return v0.removeParam(r, "fileToken");
|
|
416
416
|
}
|
|
417
417
|
async function pt(r) {
|
|
418
418
|
if (!ke(r)) return r;
|
|
419
|
-
const
|
|
420
|
-
return Se(r,
|
|
419
|
+
const h = await we();
|
|
420
|
+
return Se(r, h);
|
|
421
421
|
}
|
|
422
422
|
const Cr = /* @__PURE__ */ new Map();
|
|
423
|
-
function Bt(r,
|
|
424
|
-
return "GET"
|
|
423
|
+
function Bt(r, h) {
|
|
424
|
+
return "GET".toUpperCase() + "\0" + r;
|
|
425
425
|
}
|
|
426
|
-
async function Ct(r,
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
return !v && (v = (async () => {
|
|
426
|
+
async function Ct(r, h) {
|
|
427
|
+
if (!lr.isBrowser()) return fetch(r, h);
|
|
428
|
+
const t = He(r), e = Bt(t);
|
|
429
|
+
let c = Cr.get(e);
|
|
430
|
+
return !c && (c = (async () => {
|
|
432
431
|
try {
|
|
433
|
-
const
|
|
434
|
-
let
|
|
435
|
-
if (
|
|
432
|
+
const _ = await pt(t);
|
|
433
|
+
let B = await fetch(_, h);
|
|
434
|
+
if (B.status !== -1560 + -1 * -8579 + -3309 * 2) return B;
|
|
436
435
|
ht();
|
|
437
|
-
const
|
|
438
|
-
return
|
|
436
|
+
const C = await we(), x = Se(t, C);
|
|
437
|
+
return B = await fetch(x, h), B;
|
|
439
438
|
} finally {
|
|
440
|
-
Cr.delete(
|
|
439
|
+
Cr.delete(e);
|
|
441
440
|
}
|
|
442
|
-
})(), Cr
|
|
441
|
+
})(), Cr.set(e, c)), (await c).clone();
|
|
443
442
|
}
|
|
444
|
-
const Et = 96, At = 200 * 1024 * 1024,
|
|
443
|
+
const Et = 96, At = 200 * 1024 * 1024, t0 = /* @__PURE__ */ new Map();
|
|
445
444
|
let hr = 0;
|
|
446
445
|
const y0 = /* @__PURE__ */ new Map();
|
|
447
|
-
function Ft(r,
|
|
446
|
+
function Ft(r, h) {
|
|
448
447
|
return `${"GET".toUpperCase()}\0${He(r)}`;
|
|
449
448
|
}
|
|
450
449
|
function gt() {
|
|
451
|
-
const r =
|
|
450
|
+
const r = t0.keys().next().value;
|
|
452
451
|
if (r === void 0) return;
|
|
453
|
-
const
|
|
454
|
-
|
|
452
|
+
const h = t0.get(r);
|
|
453
|
+
t0.delete(r), h && (hr -= h.size);
|
|
455
454
|
}
|
|
456
455
|
function Dt(r) {
|
|
457
|
-
for (;
|
|
458
|
-
const
|
|
459
|
-
if (!
|
|
456
|
+
for (; t0.size > 0; ) {
|
|
457
|
+
const h = t0.size >= Et, t = hr + r > At;
|
|
458
|
+
if (!h && !t) break;
|
|
460
459
|
gt();
|
|
461
460
|
}
|
|
462
461
|
}
|
|
463
|
-
async function
|
|
464
|
-
const t = Ft(r), e =
|
|
462
|
+
async function $e(r, h) {
|
|
463
|
+
const t = Ft(r), e = t0.get(t);
|
|
465
464
|
if (e)
|
|
466
|
-
return
|
|
465
|
+
return t0.delete(t), t0.set(t, e), e;
|
|
467
466
|
let c = y0.get(t);
|
|
468
467
|
return c || (c = (async () => {
|
|
469
468
|
try {
|
|
470
|
-
const v = await Ct(r,
|
|
469
|
+
const v = await Ct(r, h);
|
|
471
470
|
if (!v.ok)
|
|
472
471
|
throw new Error(`fetch failed: ${v.status} ${v.statusText}`);
|
|
473
|
-
const
|
|
474
|
-
return Dt(
|
|
472
|
+
const _ = await v.blob();
|
|
473
|
+
return Dt(_.size), t0.set(t, _), hr += _.size, _;
|
|
475
474
|
} finally {
|
|
476
475
|
y0.delete(t);
|
|
477
476
|
}
|
|
478
477
|
})(), y0.set(t, c), c);
|
|
479
478
|
}
|
|
480
479
|
function bt() {
|
|
481
|
-
|
|
480
|
+
t0.clear(), y0.clear(), hr = 0;
|
|
482
481
|
}
|
|
483
|
-
const
|
|
482
|
+
const Re = (r, h) => {
|
|
484
483
|
if (!r) return r;
|
|
485
|
-
const t = (
|
|
484
|
+
const t = (h || "").replace(/\/$/, "");
|
|
486
485
|
if (t && r.startsWith(t))
|
|
487
486
|
return r;
|
|
488
487
|
if (typeof window < "u") {
|
|
@@ -492,8 +491,8 @@ const $e = (r, d) => {
|
|
|
492
491
|
const v = new URL(r);
|
|
493
492
|
if (t)
|
|
494
493
|
try {
|
|
495
|
-
const
|
|
496
|
-
if (v.origin ===
|
|
494
|
+
const _ = new URL(t).origin;
|
|
495
|
+
if (v.origin === _)
|
|
497
496
|
return r;
|
|
498
497
|
} catch {
|
|
499
498
|
}
|
|
@@ -505,25 +504,25 @@ const $e = (r, d) => {
|
|
|
505
504
|
if (typeof window < "u" && window.location.hostname !== "localhost") return r;
|
|
506
505
|
const e = r.match(/^https?:\/\/([^/]+\.oss[^/]*\.aliyuncs\.com)(.*)$/);
|
|
507
506
|
return e ? `/oss${e[2]}` : r;
|
|
508
|
-
}, mt = (r,
|
|
507
|
+
}, mt = (r, h) => {
|
|
509
508
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
510
|
-
return new OffscreenCanvas(r,
|
|
509
|
+
return new OffscreenCanvas(r, h);
|
|
511
510
|
const t = document.createElement("canvas");
|
|
512
|
-
return t.width = r, t.height =
|
|
513
|
-
}, w0 = async (r,
|
|
514
|
-
if (!
|
|
511
|
+
return t.width = r, t.height = h, t;
|
|
512
|
+
}, w0 = async (r, h) => {
|
|
513
|
+
if (!h || h <= 0) return r;
|
|
515
514
|
const t = Math.max(r.width, r.height);
|
|
516
|
-
if (t <=
|
|
517
|
-
const e =
|
|
518
|
-
return B ? (B.drawImage(r, 0, 0, c, v), r.close?.(), await createImageBitmap(
|
|
515
|
+
if (t <= h) return r;
|
|
516
|
+
const e = h / t, c = Math.max(1, Math.round(r.width * e)), v = Math.max(1, Math.round(r.height * e)), _ = mt(c, v), B = _.getContext("2d");
|
|
517
|
+
return B ? (B.drawImage(r, 0, 0, c, v), r.close?.(), await createImageBitmap(_)) : r;
|
|
519
518
|
};
|
|
520
|
-
async function _t(r,
|
|
519
|
+
async function _t(r, h, t) {
|
|
521
520
|
if (typeof r == "string")
|
|
522
521
|
try {
|
|
523
|
-
const e =
|
|
522
|
+
const e = Re(r, t);
|
|
524
523
|
let c;
|
|
525
524
|
try {
|
|
526
|
-
c = await
|
|
525
|
+
c = await $e(e);
|
|
527
526
|
} catch {
|
|
528
527
|
throw new Error(`加载图片失败: ${r}`);
|
|
529
528
|
}
|
|
@@ -531,7 +530,7 @@ async function _t(r, d, t) {
|
|
|
531
530
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
532
531
|
try {
|
|
533
532
|
const v = await createImageBitmap(c);
|
|
534
|
-
return await w0(v,
|
|
533
|
+
return await w0(v, h);
|
|
535
534
|
} catch (v) {
|
|
536
535
|
throw new Error(`图片解码失败: URL=${r}, 错误=${v instanceof Error ? v.message : v}`);
|
|
537
536
|
}
|
|
@@ -545,7 +544,7 @@ async function _t(r, d, t) {
|
|
|
545
544
|
throw new Error(`图片尺寸无效: src=${r.src}, width=${r.naturalWidth}, height=${r.naturalHeight}`);
|
|
546
545
|
try {
|
|
547
546
|
const e = await createImageBitmap(r);
|
|
548
|
-
return await w0(e,
|
|
547
|
+
return await w0(e, h);
|
|
549
548
|
} catch (e) {
|
|
550
549
|
throw new Error(`图片解码失败: src=${r.src}, 错误=${e instanceof Error ? e.message : e}`);
|
|
551
550
|
}
|
|
@@ -553,16 +552,16 @@ async function _t(r, d, t) {
|
|
|
553
552
|
if (r instanceof ImageBitmap) {
|
|
554
553
|
if (r.width === 0 || r.height === 0)
|
|
555
554
|
throw new Error(`ImageBitmap 尺寸无效: width=${r.width}, height=${r.height}`);
|
|
556
|
-
return await w0(r,
|
|
555
|
+
return await w0(r, h);
|
|
557
556
|
}
|
|
558
557
|
throw new Error("不支持的图片类型");
|
|
559
558
|
}
|
|
560
|
-
async function yt(r,
|
|
559
|
+
async function yt(r, h, t) {
|
|
561
560
|
try {
|
|
562
|
-
const e =
|
|
561
|
+
const e = Re(r, t);
|
|
563
562
|
let c;
|
|
564
563
|
try {
|
|
565
|
-
c = await
|
|
564
|
+
c = await $e(e);
|
|
566
565
|
} catch {
|
|
567
566
|
throw new Error(`加载图片失败: ${r}`);
|
|
568
567
|
}
|
|
@@ -570,7 +569,7 @@ async function yt(r, d, t) {
|
|
|
570
569
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
571
570
|
try {
|
|
572
571
|
const v = await createImageBitmap(c);
|
|
573
|
-
return await w0(v,
|
|
572
|
+
return await w0(v, h);
|
|
574
573
|
} catch (v) {
|
|
575
574
|
throw new Error(`图片解码失败: URL=${r}, 错误=${v instanceof Error ? v.message : v}`);
|
|
576
575
|
}
|
|
@@ -580,7 +579,7 @@ async function yt(r, d, t) {
|
|
|
580
579
|
}
|
|
581
580
|
function Mr(r) {
|
|
582
581
|
if (!r) return "source-over";
|
|
583
|
-
const
|
|
582
|
+
const h = r.trim().toLowerCase();
|
|
584
583
|
return {
|
|
585
584
|
normal: "source-over",
|
|
586
585
|
multiply: "multiply",
|
|
@@ -606,22 +605,22 @@ function Mr(r) {
|
|
|
606
605
|
"linear dodge": "lighter",
|
|
607
606
|
lighter: "lighter",
|
|
608
607
|
"pass-through": "source-over"
|
|
609
|
-
}[
|
|
608
|
+
}[h] || "source-over";
|
|
610
609
|
}
|
|
611
610
|
var Er = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
612
611
|
function wt(r) {
|
|
613
612
|
if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
|
|
614
|
-
var
|
|
615
|
-
if (typeof
|
|
613
|
+
var h = r.default;
|
|
614
|
+
if (typeof h == "function") {
|
|
616
615
|
var t = function e() {
|
|
617
616
|
var c = !1;
|
|
618
617
|
try {
|
|
619
618
|
c = this instanceof e;
|
|
620
619
|
} catch {
|
|
621
620
|
}
|
|
622
|
-
return c ? Reflect.construct(
|
|
621
|
+
return c ? Reflect.construct(h, arguments, this.constructor) : h.apply(this, arguments);
|
|
623
622
|
};
|
|
624
|
-
t.prototype =
|
|
623
|
+
t.prototype = h.prototype;
|
|
625
624
|
} else t = {};
|
|
626
625
|
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(r).forEach(function(e) {
|
|
627
626
|
var c = Object.getOwnPropertyDescriptor(r, e);
|
|
@@ -640,20 +639,20 @@ function kt(r) {
|
|
|
640
639
|
var S0 = { exports: {} }, St = {}, Ht = /* @__PURE__ */ Object.freeze({
|
|
641
640
|
__proto__: null,
|
|
642
641
|
default: St
|
|
643
|
-
}),
|
|
642
|
+
}), $t = /* @__PURE__ */ wt(Ht), Rt = S0.exports, Nr;
|
|
644
643
|
function M() {
|
|
645
|
-
return Nr || (Nr = 1, (function(r,
|
|
644
|
+
return Nr || (Nr = 1, (function(r, h) {
|
|
646
645
|
(function(t, e) {
|
|
647
646
|
r.exports = e();
|
|
648
|
-
})(
|
|
647
|
+
})(Rt, function() {
|
|
649
648
|
var t = t || (function(e, c) {
|
|
650
649
|
var v;
|
|
651
650
|
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 Er < "u" && Er.crypto && (v = Er.crypto), !v && typeof kt == "function")
|
|
652
651
|
try {
|
|
653
|
-
v =
|
|
652
|
+
v = $t;
|
|
654
653
|
} catch {
|
|
655
654
|
}
|
|
656
|
-
var
|
|
655
|
+
var _ = function() {
|
|
657
656
|
if (v) {
|
|
658
657
|
if (typeof v.getRandomValues == "function")
|
|
659
658
|
try {
|
|
@@ -671,8 +670,8 @@ function M() {
|
|
|
671
670
|
function i() {
|
|
672
671
|
}
|
|
673
672
|
return function(o) {
|
|
674
|
-
var
|
|
675
|
-
return i.prototype = o,
|
|
673
|
+
var d;
|
|
674
|
+
return i.prototype = o, d = new i(), i.prototype = null, d;
|
|
676
675
|
};
|
|
677
676
|
})(), C = {}, x = C.lib = {}, n = x.Base = /* @__PURE__ */ (function() {
|
|
678
677
|
return {
|
|
@@ -803,15 +802,15 @@ function M() {
|
|
|
803
802
|
* wordArray1.concat(wordArray2);
|
|
804
803
|
*/
|
|
805
804
|
concat: function(i) {
|
|
806
|
-
var o = this.words,
|
|
805
|
+
var o = this.words, d = i.words, b = this.sigBytes, g = i.sigBytes;
|
|
807
806
|
if (this.clamp(), b % 4)
|
|
808
|
-
for (var
|
|
809
|
-
var k =
|
|
810
|
-
o[b +
|
|
807
|
+
for (var y = 0; y < g; y++) {
|
|
808
|
+
var k = d[y >>> 2] >>> 24 - y % 4 * 8 & 255;
|
|
809
|
+
o[b + y >>> 2] |= k << 24 - (b + y) % 4 * 8;
|
|
811
810
|
}
|
|
812
811
|
else
|
|
813
|
-
for (var
|
|
814
|
-
o[b +
|
|
812
|
+
for (var R = 0; R < g; R += 4)
|
|
813
|
+
o[b + R >>> 2] = d[R >>> 2];
|
|
815
814
|
return this.sigBytes += g, this;
|
|
816
815
|
},
|
|
817
816
|
/**
|
|
@@ -852,8 +851,8 @@ function M() {
|
|
|
852
851
|
* var wordArray = CryptoJS.lib.WordArray.random(16);
|
|
853
852
|
*/
|
|
854
853
|
random: function(i) {
|
|
855
|
-
for (var o = [],
|
|
856
|
-
o.push(
|
|
854
|
+
for (var o = [], d = 0; d < i; d += 4)
|
|
855
|
+
o.push(_());
|
|
857
856
|
return new E.init(o, i);
|
|
858
857
|
}
|
|
859
858
|
}), a = C.enc = {}, s = a.Hex = {
|
|
@@ -871,9 +870,9 @@ function M() {
|
|
|
871
870
|
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
872
871
|
*/
|
|
873
872
|
stringify: function(i) {
|
|
874
|
-
for (var o = i.words,
|
|
875
|
-
var
|
|
876
|
-
b.push((
|
|
873
|
+
for (var o = i.words, d = i.sigBytes, b = [], g = 0; g < d; g++) {
|
|
874
|
+
var y = o[g >>> 2] >>> 24 - g % 4 * 8 & 255;
|
|
875
|
+
b.push((y >>> 4).toString(16)), b.push((y & 15).toString(16));
|
|
877
876
|
}
|
|
878
877
|
return b.join("");
|
|
879
878
|
},
|
|
@@ -891,9 +890,9 @@ function M() {
|
|
|
891
890
|
* var wordArray = CryptoJS.enc.Hex.parse(hexString);
|
|
892
891
|
*/
|
|
893
892
|
parse: function(i) {
|
|
894
|
-
for (var o = i.length,
|
|
895
|
-
|
|
896
|
-
return new E.init(
|
|
893
|
+
for (var o = i.length, d = [], b = 0; b < o; b += 2)
|
|
894
|
+
d[b >>> 3] |= parseInt(i.substr(b, 2), 16) << 24 - b % 8 * 4;
|
|
895
|
+
return new E.init(d, o / 2);
|
|
897
896
|
}
|
|
898
897
|
}, u = a.Latin1 = {
|
|
899
898
|
/**
|
|
@@ -910,9 +909,9 @@ function M() {
|
|
|
910
909
|
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
911
910
|
*/
|
|
912
911
|
stringify: function(i) {
|
|
913
|
-
for (var o = i.words,
|
|
914
|
-
var
|
|
915
|
-
b.push(String.fromCharCode(
|
|
912
|
+
for (var o = i.words, d = i.sigBytes, b = [], g = 0; g < d; g++) {
|
|
913
|
+
var y = o[g >>> 2] >>> 24 - g % 4 * 8 & 255;
|
|
914
|
+
b.push(String.fromCharCode(y));
|
|
916
915
|
}
|
|
917
916
|
return b.join("");
|
|
918
917
|
},
|
|
@@ -930,9 +929,9 @@ function M() {
|
|
|
930
929
|
* var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
|
|
931
930
|
*/
|
|
932
931
|
parse: function(i) {
|
|
933
|
-
for (var o = i.length,
|
|
934
|
-
|
|
935
|
-
return new E.init(
|
|
932
|
+
for (var o = i.length, d = [], b = 0; b < o; b++)
|
|
933
|
+
d[b >>> 2] |= (i.charCodeAt(b) & 255) << 24 - b % 4 * 8;
|
|
934
|
+
return new E.init(d, o);
|
|
936
935
|
}
|
|
937
936
|
}, p = a.Utf8 = {
|
|
938
937
|
/**
|
|
@@ -971,7 +970,7 @@ function M() {
|
|
|
971
970
|
parse: function(i) {
|
|
972
971
|
return u.parse(unescape(encodeURIComponent(i)));
|
|
973
972
|
}
|
|
974
|
-
},
|
|
973
|
+
}, l = x.BufferedBlockAlgorithm = n.extend({
|
|
975
974
|
/**
|
|
976
975
|
* Resets this block algorithm's data buffer to its initial state.
|
|
977
976
|
*
|
|
@@ -1010,13 +1009,13 @@ function M() {
|
|
|
1010
1009
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
1011
1010
|
*/
|
|
1012
1011
|
_process: function(i) {
|
|
1013
|
-
var o,
|
|
1014
|
-
i ?
|
|
1015
|
-
var F =
|
|
1012
|
+
var o, d = this._data, b = d.words, g = d.sigBytes, y = this.blockSize, k = y * 4, R = g / k;
|
|
1013
|
+
i ? R = e.ceil(R) : R = e.max((R | 0) - this._minBufferSize, 0);
|
|
1014
|
+
var F = R * y, w = e.min(F * 4, g);
|
|
1016
1015
|
if (F) {
|
|
1017
|
-
for (var H = 0; H < F; H +=
|
|
1016
|
+
for (var H = 0; H < F; H += y)
|
|
1018
1017
|
this._doProcessBlock(b, H);
|
|
1019
|
-
o = b.splice(0, F),
|
|
1018
|
+
o = b.splice(0, F), d.sigBytes -= w;
|
|
1020
1019
|
}
|
|
1021
1020
|
return new E.init(o, w);
|
|
1022
1021
|
},
|
|
@@ -1035,7 +1034,7 @@ function M() {
|
|
|
1035
1034
|
},
|
|
1036
1035
|
_minBufferSize: 0
|
|
1037
1036
|
});
|
|
1038
|
-
x.Hasher =
|
|
1037
|
+
x.Hasher = l.extend({
|
|
1039
1038
|
/**
|
|
1040
1039
|
* Configuration options.
|
|
1041
1040
|
*/
|
|
@@ -1060,7 +1059,7 @@ function M() {
|
|
|
1060
1059
|
* hasher.reset();
|
|
1061
1060
|
*/
|
|
1062
1061
|
reset: function() {
|
|
1063
|
-
|
|
1062
|
+
l.reset.call(this), this._doReset();
|
|
1064
1063
|
},
|
|
1065
1064
|
/**
|
|
1066
1065
|
* Updates this hasher with a message.
|
|
@@ -1111,8 +1110,8 @@ function M() {
|
|
|
1111
1110
|
* var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
|
|
1112
1111
|
*/
|
|
1113
1112
|
_createHelper: function(i) {
|
|
1114
|
-
return function(o,
|
|
1115
|
-
return new i.init(
|
|
1113
|
+
return function(o, d) {
|
|
1114
|
+
return new i.init(d).finalize(o);
|
|
1116
1115
|
};
|
|
1117
1116
|
},
|
|
1118
1117
|
/**
|
|
@@ -1129,8 +1128,8 @@ function M() {
|
|
|
1129
1128
|
* var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
|
|
1130
1129
|
*/
|
|
1131
1130
|
_createHmacHelper: function(i) {
|
|
1132
|
-
return function(o,
|
|
1133
|
-
return new D.HMAC.init(i,
|
|
1131
|
+
return function(o, d) {
|
|
1132
|
+
return new D.HMAC.init(i, d).finalize(o);
|
|
1134
1133
|
};
|
|
1135
1134
|
}
|
|
1136
1135
|
});
|
|
@@ -1143,13 +1142,13 @@ function M() {
|
|
|
1143
1142
|
}
|
|
1144
1143
|
var H0 = { exports: {} }, Pt = H0.exports, Ur;
|
|
1145
1144
|
function vr() {
|
|
1146
|
-
return Ur || (Ur = 1, (function(r,
|
|
1145
|
+
return Ur || (Ur = 1, (function(r, h) {
|
|
1147
1146
|
(function(t, e) {
|
|
1148
1147
|
r.exports = e(M());
|
|
1149
1148
|
})(Pt, function(t) {
|
|
1150
1149
|
return (function(e) {
|
|
1151
|
-
var c = t, v = c.lib,
|
|
1152
|
-
C.Word =
|
|
1150
|
+
var c = t, v = c.lib, _ = v.Base, B = v.WordArray, C = c.x64 = {};
|
|
1151
|
+
C.Word = _.extend({
|
|
1153
1152
|
/**
|
|
1154
1153
|
* Initializes a newly created 64-bit word.
|
|
1155
1154
|
*
|
|
@@ -1312,7 +1311,7 @@ function vr() {
|
|
|
1312
1311
|
// var high = (this.high + word.high + carry) | 0;
|
|
1313
1312
|
// return X64Word.create(high, low);
|
|
1314
1313
|
// }
|
|
1315
|
-
}), C.WordArray =
|
|
1314
|
+
}), C.WordArray = _.extend({
|
|
1316
1315
|
/**
|
|
1317
1316
|
* Initializes a newly created word array.
|
|
1318
1317
|
*
|
|
@@ -1362,7 +1361,7 @@ function vr() {
|
|
|
1362
1361
|
* var clone = x64WordArray.clone();
|
|
1363
1362
|
*/
|
|
1364
1363
|
clone: function() {
|
|
1365
|
-
for (var x =
|
|
1364
|
+
for (var x = _.clone.call(this), n = x.words = this.words.slice(0), E = n.length, a = 0; a < E; a++)
|
|
1366
1365
|
n[a] = n[a].clone();
|
|
1367
1366
|
return x;
|
|
1368
1367
|
}
|
|
@@ -1371,37 +1370,37 @@ function vr() {
|
|
|
1371
1370
|
});
|
|
1372
1371
|
})(H0)), H0.exports;
|
|
1373
1372
|
}
|
|
1374
|
-
var
|
|
1375
|
-
function
|
|
1376
|
-
return jr || (jr = 1, (function(r,
|
|
1373
|
+
var $0 = { exports: {} }, zt = $0.exports, jr;
|
|
1374
|
+
function It() {
|
|
1375
|
+
return jr || (jr = 1, (function(r, h) {
|
|
1377
1376
|
(function(t, e) {
|
|
1378
1377
|
r.exports = e(M());
|
|
1379
1378
|
})(zt, function(t) {
|
|
1380
1379
|
return (function() {
|
|
1381
1380
|
if (typeof ArrayBuffer == "function") {
|
|
1382
|
-
var e = t, c = e.lib, v = c.WordArray,
|
|
1381
|
+
var e = t, c = e.lib, v = c.WordArray, _ = v.init, B = v.init = function(C) {
|
|
1383
1382
|
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) {
|
|
1384
1383
|
for (var x = C.byteLength, n = [], E = 0; E < x; E++)
|
|
1385
1384
|
n[E >>> 2] |= C[E] << 24 - E % 4 * 8;
|
|
1386
|
-
|
|
1385
|
+
_.call(this, n, x);
|
|
1387
1386
|
} else
|
|
1388
|
-
|
|
1387
|
+
_.apply(this, arguments);
|
|
1389
1388
|
};
|
|
1390
1389
|
B.prototype = v;
|
|
1391
1390
|
}
|
|
1392
1391
|
})(), t.lib.WordArray;
|
|
1393
1392
|
});
|
|
1394
|
-
})(
|
|
1393
|
+
})($0)), $0.exports;
|
|
1395
1394
|
}
|
|
1396
|
-
var
|
|
1395
|
+
var R0 = { exports: {} }, Wt = R0.exports, Gr;
|
|
1397
1396
|
function Lt() {
|
|
1398
|
-
return Gr || (Gr = 1, (function(r,
|
|
1397
|
+
return Gr || (Gr = 1, (function(r, h) {
|
|
1399
1398
|
(function(t, e) {
|
|
1400
1399
|
r.exports = e(M());
|
|
1401
|
-
})(
|
|
1400
|
+
})(Wt, function(t) {
|
|
1402
1401
|
return (function() {
|
|
1403
|
-
var e = t, c = e.lib, v = c.WordArray,
|
|
1404
|
-
|
|
1402
|
+
var e = t, c = e.lib, v = c.WordArray, _ = e.enc;
|
|
1403
|
+
_.Utf16 = _.Utf16BE = {
|
|
1405
1404
|
/**
|
|
1406
1405
|
* Converts a word array to a UTF-16 BE string.
|
|
1407
1406
|
*
|
|
@@ -1440,7 +1439,7 @@ function Lt() {
|
|
|
1440
1439
|
n[E >>> 1] |= C.charCodeAt(E) << 16 - E % 2 * 16;
|
|
1441
1440
|
return v.create(n, x * 2);
|
|
1442
1441
|
}
|
|
1443
|
-
},
|
|
1442
|
+
}, _.Utf16LE = {
|
|
1444
1443
|
/**
|
|
1445
1444
|
* Converts a word array to a UTF-16 LE string.
|
|
1446
1445
|
*
|
|
@@ -1485,17 +1484,17 @@ function Lt() {
|
|
|
1485
1484
|
}
|
|
1486
1485
|
})(), t.enc.Utf16;
|
|
1487
1486
|
});
|
|
1488
|
-
})(
|
|
1487
|
+
})(R0)), R0.exports;
|
|
1489
1488
|
}
|
|
1490
1489
|
var P0 = { exports: {} }, Ot = P0.exports, Kr;
|
|
1491
1490
|
function c0() {
|
|
1492
|
-
return Kr || (Kr = 1, (function(r,
|
|
1491
|
+
return Kr || (Kr = 1, (function(r, h) {
|
|
1493
1492
|
(function(t, e) {
|
|
1494
1493
|
r.exports = e(M());
|
|
1495
1494
|
})(Ot, function(t) {
|
|
1496
1495
|
return (function() {
|
|
1497
|
-
var e = t, c = e.lib, v = c.WordArray,
|
|
1498
|
-
|
|
1496
|
+
var e = t, c = e.lib, v = c.WordArray, _ = e.enc;
|
|
1497
|
+
_.Base64 = {
|
|
1499
1498
|
/**
|
|
1500
1499
|
* Converts a word array to a Base64 string.
|
|
1501
1500
|
*
|
|
@@ -1513,7 +1512,7 @@ function c0() {
|
|
|
1513
1512
|
var x = C.words, n = C.sigBytes, E = this._map;
|
|
1514
1513
|
C.clamp();
|
|
1515
1514
|
for (var a = [], s = 0; s < n; s += 3)
|
|
1516
|
-
for (var u = x[s >>> 2] >>> 24 - s % 4 * 8 & 255, p = x[s + 1 >>> 2] >>> 24 - (s + 1) % 4 * 8 & 255,
|
|
1515
|
+
for (var u = x[s >>> 2] >>> 24 - s % 4 * 8 & 255, p = x[s + 1 >>> 2] >>> 24 - (s + 1) % 4 * 8 & 255, l = x[s + 2 >>> 2] >>> 24 - (s + 2) % 4 * 8 & 255, D = u << 16 | p << 8 | l, i = 0; i < 4 && s + i * 0.75 < n; i++)
|
|
1517
1516
|
a.push(E.charAt(D >>> 6 * (3 - i) & 63));
|
|
1518
1517
|
var o = E.charAt(64);
|
|
1519
1518
|
if (o)
|
|
@@ -1553,8 +1552,8 @@ function c0() {
|
|
|
1553
1552
|
function B(C, x, n) {
|
|
1554
1553
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1555
1554
|
if (s % 4) {
|
|
1556
|
-
var u = n[C.charCodeAt(s - 1)] << s % 4 * 2, p = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2,
|
|
1557
|
-
E[a >>> 2] |=
|
|
1555
|
+
var u = n[C.charCodeAt(s - 1)] << s % 4 * 2, p = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, l = u | p;
|
|
1556
|
+
E[a >>> 2] |= l << 24 - a % 4 * 8, a++;
|
|
1558
1557
|
}
|
|
1559
1558
|
return v.create(E, a);
|
|
1560
1559
|
}
|
|
@@ -1564,13 +1563,13 @@ function c0() {
|
|
|
1564
1563
|
}
|
|
1565
1564
|
var z0 = { exports: {} }, qt = z0.exports, Xr;
|
|
1566
1565
|
function Tt() {
|
|
1567
|
-
return Xr || (Xr = 1, (function(r,
|
|
1566
|
+
return Xr || (Xr = 1, (function(r, h) {
|
|
1568
1567
|
(function(t, e) {
|
|
1569
1568
|
r.exports = e(M());
|
|
1570
1569
|
})(qt, function(t) {
|
|
1571
1570
|
return (function() {
|
|
1572
|
-
var e = t, c = e.lib, v = c.WordArray,
|
|
1573
|
-
|
|
1571
|
+
var e = t, c = e.lib, v = c.WordArray, _ = e.enc;
|
|
1572
|
+
_.Base64url = {
|
|
1574
1573
|
/**
|
|
1575
1574
|
* Converts a word array to a Base64url string.
|
|
1576
1575
|
*
|
|
@@ -1591,12 +1590,12 @@ function Tt() {
|
|
|
1591
1590
|
var n = C.words, E = C.sigBytes, a = x ? this._safe_map : this._map;
|
|
1592
1591
|
C.clamp();
|
|
1593
1592
|
for (var s = [], u = 0; u < E; u += 3)
|
|
1594
|
-
for (var p = n[u >>> 2] >>> 24 - u % 4 * 8 & 255,
|
|
1593
|
+
for (var p = n[u >>> 2] >>> 24 - u % 4 * 8 & 255, l = n[u + 1 >>> 2] >>> 24 - (u + 1) % 4 * 8 & 255, D = n[u + 2 >>> 2] >>> 24 - (u + 2) % 4 * 8 & 255, i = p << 16 | l << 8 | D, o = 0; o < 4 && u + o * 0.75 < E; o++)
|
|
1595
1594
|
s.push(a.charAt(i >>> 6 * (3 - o) & 63));
|
|
1596
|
-
var
|
|
1597
|
-
if (
|
|
1595
|
+
var d = a.charAt(64);
|
|
1596
|
+
if (d)
|
|
1598
1597
|
for (; s.length % 4; )
|
|
1599
|
-
s.push(
|
|
1598
|
+
s.push(d);
|
|
1600
1599
|
return s.join("");
|
|
1601
1600
|
},
|
|
1602
1601
|
/**
|
|
@@ -1635,8 +1634,8 @@ function Tt() {
|
|
|
1635
1634
|
function B(C, x, n) {
|
|
1636
1635
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1637
1636
|
if (s % 4) {
|
|
1638
|
-
var u = n[C.charCodeAt(s - 1)] << s % 4 * 2, p = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2,
|
|
1639
|
-
E[a >>> 2] |=
|
|
1637
|
+
var u = n[C.charCodeAt(s - 1)] << s % 4 * 2, p = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, l = u | p;
|
|
1638
|
+
E[a >>> 2] |= l << 24 - a % 4 * 8, a++;
|
|
1640
1639
|
}
|
|
1641
1640
|
return v.create(E, a);
|
|
1642
1641
|
}
|
|
@@ -1644,43 +1643,43 @@ function Tt() {
|
|
|
1644
1643
|
});
|
|
1645
1644
|
})(z0)), z0.exports;
|
|
1646
1645
|
}
|
|
1647
|
-
var
|
|
1646
|
+
var I0 = { exports: {} }, Mt = I0.exports, Yr;
|
|
1648
1647
|
function f0() {
|
|
1649
|
-
return Yr || (Yr = 1, (function(r,
|
|
1648
|
+
return Yr || (Yr = 1, (function(r, h) {
|
|
1650
1649
|
(function(t, e) {
|
|
1651
1650
|
r.exports = e(M());
|
|
1652
1651
|
})(Mt, function(t) {
|
|
1653
1652
|
return (function(e) {
|
|
1654
|
-
var c = t, v = c.lib,
|
|
1653
|
+
var c = t, v = c.lib, _ = v.WordArray, B = v.Hasher, C = c.algo, x = [];
|
|
1655
1654
|
(function() {
|
|
1656
1655
|
for (var p = 0; p < 64; p++)
|
|
1657
1656
|
x[p] = e.abs(e.sin(p + 1)) * 4294967296 | 0;
|
|
1658
1657
|
})();
|
|
1659
1658
|
var n = C.MD5 = B.extend({
|
|
1660
1659
|
_doReset: function() {
|
|
1661
|
-
this._hash = new
|
|
1660
|
+
this._hash = new _.init([
|
|
1662
1661
|
1732584193,
|
|
1663
1662
|
4023233417,
|
|
1664
1663
|
2562383102,
|
|
1665
1664
|
271733878
|
|
1666
1665
|
]);
|
|
1667
1666
|
},
|
|
1668
|
-
_doProcessBlock: function(p,
|
|
1667
|
+
_doProcessBlock: function(p, l) {
|
|
1669
1668
|
for (var D = 0; D < 16; D++) {
|
|
1670
|
-
var i =
|
|
1669
|
+
var i = l + D, o = p[i];
|
|
1671
1670
|
p[i] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360;
|
|
1672
1671
|
}
|
|
1673
|
-
var
|
|
1674
|
-
S = E(S, f, A, m, b, 7, x[0]), m = E(m, S, f, A, g, 12, x[1]), A = E(A, m, S, f,
|
|
1672
|
+
var d = this._hash.words, b = p[l + 0], g = p[l + 1], y = p[l + 2], k = p[l + 3], R = p[l + 4], F = p[l + 5], w = p[l + 6], H = p[l + 7], $ = p[l + 8], z = p[l + 9], O = p[l + 10], q = p[l + 11], U = p[l + 12], T = p[l + 13], N = p[l + 14], j = p[l + 15], S = d[0], f = d[1], A = d[2], m = d[3];
|
|
1673
|
+
S = E(S, f, A, m, b, 7, x[0]), m = E(m, S, f, A, g, 12, x[1]), A = E(A, m, S, f, y, 17, x[2]), f = E(f, A, m, S, k, 22, x[3]), S = E(S, f, A, m, R, 7, x[4]), m = E(m, S, f, A, F, 12, x[5]), A = E(A, m, S, f, w, 17, x[6]), f = E(f, A, m, S, H, 22, x[7]), S = E(S, f, A, m, $, 7, x[8]), m = E(m, S, f, A, z, 12, x[9]), A = E(A, m, S, f, O, 17, x[10]), f = E(f, A, m, S, q, 22, x[11]), S = E(S, f, A, m, U, 7, x[12]), m = E(m, S, f, A, T, 12, x[13]), A = E(A, m, S, f, N, 17, x[14]), f = E(f, A, m, S, j, 22, x[15]), S = a(S, f, A, m, g, 5, x[16]), m = a(m, S, f, A, w, 9, x[17]), A = a(A, m, S, f, q, 14, x[18]), f = a(f, A, m, S, b, 20, x[19]), S = a(S, f, A, m, F, 5, x[20]), m = a(m, S, f, A, O, 9, x[21]), A = a(A, m, S, f, j, 14, x[22]), f = a(f, A, m, S, R, 20, x[23]), S = a(S, f, A, m, z, 5, x[24]), m = a(m, S, f, A, N, 9, x[25]), A = a(A, m, S, f, k, 14, x[26]), f = a(f, A, m, S, $, 20, x[27]), S = a(S, f, A, m, T, 5, x[28]), m = a(m, S, f, A, y, 9, x[29]), A = a(A, m, S, f, H, 14, x[30]), f = a(f, A, m, S, U, 20, x[31]), S = s(S, f, A, m, F, 4, x[32]), m = s(m, S, f, A, $, 11, x[33]), A = s(A, m, S, f, q, 16, x[34]), f = s(f, A, m, S, N, 23, x[35]), S = s(S, f, A, m, g, 4, x[36]), m = s(m, S, f, A, R, 11, x[37]), A = s(A, m, S, f, H, 16, x[38]), f = s(f, A, m, S, O, 23, x[39]), S = s(S, f, A, m, T, 4, x[40]), m = s(m, S, f, A, b, 11, x[41]), A = s(A, m, S, f, k, 16, x[42]), f = s(f, A, m, S, w, 23, x[43]), S = s(S, f, A, m, z, 4, x[44]), m = s(m, S, f, A, U, 11, x[45]), A = s(A, m, S, f, j, 16, x[46]), f = s(f, A, m, S, y, 23, x[47]), S = u(S, f, A, m, b, 6, x[48]), m = u(m, S, f, A, H, 10, x[49]), A = u(A, m, S, f, N, 15, x[50]), f = u(f, A, m, S, F, 21, x[51]), S = u(S, f, A, m, U, 6, x[52]), m = u(m, S, f, A, k, 10, x[53]), A = u(A, m, S, f, O, 15, x[54]), f = u(f, A, m, S, g, 21, x[55]), S = u(S, f, A, m, $, 6, x[56]), m = u(m, S, f, A, j, 10, x[57]), A = u(A, m, S, f, w, 15, x[58]), f = u(f, A, m, S, T, 21, x[59]), S = u(S, f, A, m, R, 6, x[60]), m = u(m, S, f, A, q, 10, x[61]), A = u(A, m, S, f, y, 15, x[62]), f = u(f, A, m, S, z, 21, x[63]), d[0] = d[0] + S | 0, d[1] = d[1] + f | 0, d[2] = d[2] + A | 0, d[3] = d[3] + m | 0;
|
|
1675
1674
|
},
|
|
1676
1675
|
_doFinalize: function() {
|
|
1677
|
-
var p = this._data,
|
|
1678
|
-
|
|
1679
|
-
var o = e.floor(D / 4294967296),
|
|
1680
|
-
|
|
1681
|
-
for (var b = this._hash, g = b.words,
|
|
1682
|
-
var k = g[
|
|
1683
|
-
g[
|
|
1676
|
+
var p = this._data, l = p.words, D = this._nDataBytes * 8, i = p.sigBytes * 8;
|
|
1677
|
+
l[i >>> 5] |= 128 << 24 - i % 32;
|
|
1678
|
+
var o = e.floor(D / 4294967296), d = D;
|
|
1679
|
+
l[(i + 64 >>> 9 << 4) + 15] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, l[(i + 64 >>> 9 << 4) + 14] = (d << 8 | d >>> 24) & 16711935 | (d << 24 | d >>> 8) & 4278255360, p.sigBytes = (l.length + 1) * 4, this._process();
|
|
1680
|
+
for (var b = this._hash, g = b.words, y = 0; y < 4; y++) {
|
|
1681
|
+
var k = g[y];
|
|
1682
|
+
g[y] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
|
|
1684
1683
|
}
|
|
1685
1684
|
return b;
|
|
1686
1685
|
},
|
|
@@ -1689,35 +1688,35 @@ function f0() {
|
|
|
1689
1688
|
return p._hash = this._hash.clone(), p;
|
|
1690
1689
|
}
|
|
1691
1690
|
});
|
|
1692
|
-
function E(p,
|
|
1693
|
-
var g = p + (
|
|
1694
|
-
return (g <<
|
|
1691
|
+
function E(p, l, D, i, o, d, b) {
|
|
1692
|
+
var g = p + (l & D | ~l & i) + o + b;
|
|
1693
|
+
return (g << d | g >>> 32 - d) + l;
|
|
1695
1694
|
}
|
|
1696
|
-
function a(p,
|
|
1697
|
-
var g = p + (
|
|
1698
|
-
return (g <<
|
|
1695
|
+
function a(p, l, D, i, o, d, b) {
|
|
1696
|
+
var g = p + (l & i | D & ~i) + o + b;
|
|
1697
|
+
return (g << d | g >>> 32 - d) + l;
|
|
1699
1698
|
}
|
|
1700
|
-
function s(p,
|
|
1701
|
-
var g = p + (
|
|
1702
|
-
return (g <<
|
|
1699
|
+
function s(p, l, D, i, o, d, b) {
|
|
1700
|
+
var g = p + (l ^ D ^ i) + o + b;
|
|
1701
|
+
return (g << d | g >>> 32 - d) + l;
|
|
1703
1702
|
}
|
|
1704
|
-
function u(p,
|
|
1705
|
-
var g = p + (D ^ (
|
|
1706
|
-
return (g <<
|
|
1703
|
+
function u(p, l, D, i, o, d, b) {
|
|
1704
|
+
var g = p + (D ^ (l | ~i)) + o + b;
|
|
1705
|
+
return (g << d | g >>> 32 - d) + l;
|
|
1707
1706
|
}
|
|
1708
1707
|
c.MD5 = B._createHelper(n), c.HmacMD5 = B._createHmacHelper(n);
|
|
1709
1708
|
})(Math), t.MD5;
|
|
1710
1709
|
});
|
|
1711
|
-
})(
|
|
1710
|
+
})(I0)), I0.exports;
|
|
1712
1711
|
}
|
|
1713
|
-
var
|
|
1712
|
+
var W0 = { exports: {} }, Nt = W0.exports, Zr;
|
|
1714
1713
|
function Pe() {
|
|
1715
|
-
return Zr || (Zr = 1, (function(r,
|
|
1714
|
+
return Zr || (Zr = 1, (function(r, h) {
|
|
1716
1715
|
(function(t, e) {
|
|
1717
1716
|
r.exports = e(M());
|
|
1718
1717
|
})(Nt, function(t) {
|
|
1719
1718
|
return (function() {
|
|
1720
|
-
var e = t, c = e.lib, v = c.WordArray,
|
|
1719
|
+
var e = t, c = e.lib, v = c.WordArray, _ = c.Hasher, B = e.algo, C = [], x = B.SHA1 = _.extend({
|
|
1721
1720
|
_doReset: function() {
|
|
1722
1721
|
this._hash = new v.init([
|
|
1723
1722
|
1732584193,
|
|
@@ -1728,40 +1727,40 @@ function Pe() {
|
|
|
1728
1727
|
]);
|
|
1729
1728
|
},
|
|
1730
1729
|
_doProcessBlock: function(n, E) {
|
|
1731
|
-
for (var a = this._hash.words, s = a[0], u = a[1], p = a[2],
|
|
1730
|
+
for (var a = this._hash.words, s = a[0], u = a[1], p = a[2], l = a[3], D = a[4], i = 0; i < 80; i++) {
|
|
1732
1731
|
if (i < 16)
|
|
1733
1732
|
C[i] = n[E + i] | 0;
|
|
1734
1733
|
else {
|
|
1735
1734
|
var o = C[i - 3] ^ C[i - 8] ^ C[i - 14] ^ C[i - 16];
|
|
1736
1735
|
C[i] = o << 1 | o >>> 31;
|
|
1737
1736
|
}
|
|
1738
|
-
var
|
|
1739
|
-
i < 20 ?
|
|
1737
|
+
var d = (s << 5 | s >>> 27) + D + C[i];
|
|
1738
|
+
i < 20 ? d += (u & p | ~u & l) + 1518500249 : i < 40 ? d += (u ^ p ^ l) + 1859775393 : i < 60 ? d += (u & p | u & l | p & l) - 1894007588 : d += (u ^ p ^ l) - 899497514, D = l, l = p, p = u << 30 | u >>> 2, u = s, s = d;
|
|
1740
1739
|
}
|
|
1741
|
-
a[0] = a[0] + s | 0, a[1] = a[1] + u | 0, a[2] = a[2] + p | 0, a[3] = a[3] +
|
|
1740
|
+
a[0] = a[0] + s | 0, a[1] = a[1] + u | 0, a[2] = a[2] + p | 0, a[3] = a[3] + l | 0, a[4] = a[4] + D | 0;
|
|
1742
1741
|
},
|
|
1743
1742
|
_doFinalize: function() {
|
|
1744
1743
|
var n = this._data, E = n.words, a = this._nDataBytes * 8, s = n.sigBytes * 8;
|
|
1745
1744
|
return E[s >>> 5] |= 128 << 24 - s % 32, E[(s + 64 >>> 9 << 4) + 14] = Math.floor(a / 4294967296), E[(s + 64 >>> 9 << 4) + 15] = a, n.sigBytes = E.length * 4, this._process(), this._hash;
|
|
1746
1745
|
},
|
|
1747
1746
|
clone: function() {
|
|
1748
|
-
var n =
|
|
1747
|
+
var n = _.clone.call(this);
|
|
1749
1748
|
return n._hash = this._hash.clone(), n;
|
|
1750
1749
|
}
|
|
1751
1750
|
});
|
|
1752
|
-
e.SHA1 =
|
|
1751
|
+
e.SHA1 = _._createHelper(x), e.HmacSHA1 = _._createHmacHelper(x);
|
|
1753
1752
|
})(), t.SHA1;
|
|
1754
1753
|
});
|
|
1755
|
-
})(
|
|
1754
|
+
})(W0)), W0.exports;
|
|
1756
1755
|
}
|
|
1757
1756
|
var L0 = { exports: {} }, Ut = L0.exports, Qr;
|
|
1758
1757
|
function mr() {
|
|
1759
|
-
return Qr || (Qr = 1, (function(r,
|
|
1758
|
+
return Qr || (Qr = 1, (function(r, h) {
|
|
1760
1759
|
(function(t, e) {
|
|
1761
1760
|
r.exports = e(M());
|
|
1762
1761
|
})(Ut, function(t) {
|
|
1763
1762
|
return (function(e) {
|
|
1764
|
-
var c = t, v = c.lib,
|
|
1763
|
+
var c = t, v = c.lib, _ = v.WordArray, B = v.Hasher, C = c.algo, x = [], n = [];
|
|
1765
1764
|
(function() {
|
|
1766
1765
|
function s(D) {
|
|
1767
1766
|
for (var i = e.sqrt(D), o = 2; o <= i; o++)
|
|
@@ -1772,29 +1771,29 @@ function mr() {
|
|
|
1772
1771
|
function u(D) {
|
|
1773
1772
|
return (D - (D | 0)) * 4294967296 | 0;
|
|
1774
1773
|
}
|
|
1775
|
-
for (var p = 2,
|
|
1776
|
-
s(p) && (
|
|
1774
|
+
for (var p = 2, l = 0; l < 64; )
|
|
1775
|
+
s(p) && (l < 8 && (x[l] = u(e.pow(p, 1 / 2))), n[l] = u(e.pow(p, 1 / 3)), l++), p++;
|
|
1777
1776
|
})();
|
|
1778
1777
|
var E = [], a = C.SHA256 = B.extend({
|
|
1779
1778
|
_doReset: function() {
|
|
1780
|
-
this._hash = new
|
|
1779
|
+
this._hash = new _.init(x.slice(0));
|
|
1781
1780
|
},
|
|
1782
1781
|
_doProcessBlock: function(s, u) {
|
|
1783
|
-
for (var p = this._hash.words,
|
|
1782
|
+
for (var p = this._hash.words, l = p[0], D = p[1], i = p[2], o = p[3], d = p[4], b = p[5], g = p[6], y = p[7], k = 0; k < 64; k++) {
|
|
1784
1783
|
if (k < 16)
|
|
1785
1784
|
E[k] = s[u + k] | 0;
|
|
1786
1785
|
else {
|
|
1787
|
-
var
|
|
1786
|
+
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;
|
|
1788
1787
|
E[k] = F + E[k - 7] + H + E[k - 16];
|
|
1789
1788
|
}
|
|
1790
|
-
var
|
|
1791
|
-
|
|
1789
|
+
var $ = d & b ^ ~d & g, z = l & D ^ l & i ^ D & i, O = (l << 30 | l >>> 2) ^ (l << 19 | l >>> 13) ^ (l << 10 | l >>> 22), q = (d << 26 | d >>> 6) ^ (d << 21 | d >>> 11) ^ (d << 7 | d >>> 25), U = y + q + $ + n[k] + E[k], T = O + z;
|
|
1790
|
+
y = g, g = b, b = d, d = o + U | 0, o = i, i = D, D = l, l = U + T | 0;
|
|
1792
1791
|
}
|
|
1793
|
-
p[0] = p[0] +
|
|
1792
|
+
p[0] = p[0] + l | 0, p[1] = p[1] + D | 0, p[2] = p[2] + i | 0, p[3] = p[3] + o | 0, p[4] = p[4] + d | 0, p[5] = p[5] + b | 0, p[6] = p[6] + g | 0, p[7] = p[7] + y | 0;
|
|
1794
1793
|
},
|
|
1795
1794
|
_doFinalize: function() {
|
|
1796
|
-
var s = this._data, u = s.words, p = this._nDataBytes * 8,
|
|
1797
|
-
return u[
|
|
1795
|
+
var s = this._data, u = s.words, p = this._nDataBytes * 8, l = s.sigBytes * 8;
|
|
1796
|
+
return u[l >>> 5] |= 128 << 24 - l % 32, u[(l + 64 >>> 9 << 4) + 14] = e.floor(p / 4294967296), u[(l + 64 >>> 9 << 4) + 15] = p, s.sigBytes = u.length * 4, this._process(), this._hash;
|
|
1798
1797
|
},
|
|
1799
1798
|
clone: function() {
|
|
1800
1799
|
var s = B.clone.call(this);
|
|
@@ -1808,12 +1807,12 @@ function mr() {
|
|
|
1808
1807
|
}
|
|
1809
1808
|
var O0 = { exports: {} }, jt = O0.exports, Vr;
|
|
1810
1809
|
function Gt() {
|
|
1811
|
-
return Vr || (Vr = 1, (function(r,
|
|
1810
|
+
return Vr || (Vr = 1, (function(r, h) {
|
|
1812
1811
|
(function(t, e, c) {
|
|
1813
1812
|
r.exports = e(M(), mr());
|
|
1814
1813
|
})(jt, function(t) {
|
|
1815
1814
|
return (function() {
|
|
1816
|
-
var e = t, c = e.lib, v = c.WordArray,
|
|
1815
|
+
var e = t, c = e.lib, v = c.WordArray, _ = e.algo, B = _.SHA256, C = _.SHA224 = B.extend({
|
|
1817
1816
|
_doReset: function() {
|
|
1818
1817
|
this._hash = new v.init([
|
|
1819
1818
|
3238371032,
|
|
@@ -1838,12 +1837,12 @@ function Gt() {
|
|
|
1838
1837
|
}
|
|
1839
1838
|
var q0 = { exports: {} }, Kt = q0.exports, Jr;
|
|
1840
1839
|
function ze() {
|
|
1841
|
-
return Jr || (Jr = 1, (function(r,
|
|
1840
|
+
return Jr || (Jr = 1, (function(r, h) {
|
|
1842
1841
|
(function(t, e, c) {
|
|
1843
1842
|
r.exports = e(M(), vr());
|
|
1844
1843
|
})(Kt, function(t) {
|
|
1845
1844
|
return (function() {
|
|
1846
|
-
var e = t, c = e.lib, v = c.Hasher,
|
|
1845
|
+
var e = t, c = e.lib, v = c.Hasher, _ = e.x64, B = _.Word, C = _.WordArray, x = e.algo;
|
|
1847
1846
|
function n() {
|
|
1848
1847
|
return B.create.apply(B, arguments);
|
|
1849
1848
|
}
|
|
@@ -1947,22 +1946,22 @@ function ze() {
|
|
|
1947
1946
|
]);
|
|
1948
1947
|
},
|
|
1949
1948
|
_doProcessBlock: function(u, p) {
|
|
1950
|
-
for (var
|
|
1951
|
-
var
|
|
1952
|
-
if (
|
|
1953
|
-
n0 = m0.high = u[p +
|
|
1949
|
+
for (var l = this._hash.words, D = l[0], i = l[1], o = l[2], d = l[3], b = l[4], g = l[5], y = l[6], k = l[7], R = D.high, F = D.low, w = i.high, H = i.low, $ = o.high, z = o.low, O = d.high, q = d.low, U = b.high, T = b.low, N = g.high, j = g.low, S = y.high, f = y.low, A = k.high, m = k.low, I = R, P = F, L = w, W = H, Z = $, Q = z, i0 = O, K = q, G = U, Y = T, r0 = N, u0 = j, b0 = S, B0 = f, pr = A, C0 = m, e0 = 0; e0 < 80; e0++) {
|
|
1950
|
+
var J, n0, m0 = a[e0];
|
|
1951
|
+
if (e0 < 16)
|
|
1952
|
+
n0 = m0.high = u[p + e0 * 2] | 0, J = m0.low = u[p + e0 * 2 + 1] | 0;
|
|
1954
1953
|
else {
|
|
1955
|
-
var wr = a[
|
|
1956
|
-
|
|
1954
|
+
var wr = a[e0 - 15], d0 = wr.high, E0 = wr.low, Me = (d0 >>> 1 | E0 << 31) ^ (d0 >>> 8 | E0 << 24) ^ d0 >>> 7, kr = (E0 >>> 1 | d0 << 31) ^ (E0 >>> 8 | d0 << 24) ^ (E0 >>> 7 | d0 << 25), Sr = a[e0 - 2], l0 = Sr.high, A0 = Sr.low, Ne = (l0 >>> 19 | A0 << 13) ^ (l0 << 3 | A0 >>> 29) ^ l0 >>> 6, Hr = (A0 >>> 19 | l0 << 13) ^ (A0 << 3 | l0 >>> 29) ^ (A0 >>> 6 | l0 << 26), $r = a[e0 - 7], Ue = $r.high, je = $r.low, Rr = a[e0 - 16], Ge = Rr.high, Pr = Rr.low;
|
|
1955
|
+
J = kr + je, n0 = Me + Ue + (J >>> 0 < kr >>> 0 ? 1 : 0), J = J + Hr, n0 = n0 + Ne + (J >>> 0 < Hr >>> 0 ? 1 : 0), J = J + Pr, n0 = n0 + Ge + (J >>> 0 < Pr >>> 0 ? 1 : 0), m0.high = n0, m0.low = J;
|
|
1957
1956
|
}
|
|
1958
|
-
var Ke = G &
|
|
1959
|
-
pr = b0, C0 = B0, b0 =
|
|
1957
|
+
var Ke = G & r0 ^ ~G & b0, zr = Y & u0 ^ ~Y & B0, Xe = I & L ^ I & Z ^ L & Z, Ye = P & W ^ P & Q ^ W & Q, Ze = (I >>> 28 | P << 4) ^ (I << 30 | P >>> 2) ^ (I << 25 | P >>> 7), Ir = (P >>> 28 | I << 4) ^ (P << 30 | I >>> 2) ^ (P << 25 | I >>> 7), Qe = (G >>> 14 | Y << 18) ^ (G >>> 18 | Y << 14) ^ (G << 23 | Y >>> 9), Ve = (Y >>> 14 | G << 18) ^ (Y >>> 18 | G << 14) ^ (Y << 23 | G >>> 9), Wr = E[e0], Je = Wr.high, Lr = Wr.low, V = C0 + Ve, a0 = pr + Qe + (V >>> 0 < C0 >>> 0 ? 1 : 0), V = V + zr, a0 = a0 + Ke + (V >>> 0 < zr >>> 0 ? 1 : 0), V = V + Lr, a0 = a0 + Je + (V >>> 0 < Lr >>> 0 ? 1 : 0), V = V + J, a0 = a0 + n0 + (V >>> 0 < J >>> 0 ? 1 : 0), Or = Ir + Ye, rt = Ze + Xe + (Or >>> 0 < Ir >>> 0 ? 1 : 0);
|
|
1958
|
+
pr = b0, C0 = B0, b0 = r0, B0 = u0, r0 = G, u0 = Y, Y = K + V | 0, G = i0 + a0 + (Y >>> 0 < K >>> 0 ? 1 : 0) | 0, i0 = Z, K = Q, Z = L, Q = W, L = I, W = P, P = V + Or | 0, I = a0 + rt + (P >>> 0 < V >>> 0 ? 1 : 0) | 0;
|
|
1960
1959
|
}
|
|
1961
|
-
F = D.low = F + P, D.high =
|
|
1960
|
+
F = D.low = F + P, D.high = R + I + (F >>> 0 < P >>> 0 ? 1 : 0), H = i.low = H + W, i.high = w + L + (H >>> 0 < W >>> 0 ? 1 : 0), z = o.low = z + Q, o.high = $ + Z + (z >>> 0 < Q >>> 0 ? 1 : 0), q = d.low = q + K, d.high = O + i0 + (q >>> 0 < K >>> 0 ? 1 : 0), T = b.low = T + Y, b.high = U + G + (T >>> 0 < Y >>> 0 ? 1 : 0), j = g.low = j + u0, g.high = N + r0 + (j >>> 0 < u0 >>> 0 ? 1 : 0), f = y.low = f + B0, y.high = S + b0 + (f >>> 0 < B0 >>> 0 ? 1 : 0), m = k.low = m + C0, k.high = A + pr + (m >>> 0 < C0 >>> 0 ? 1 : 0);
|
|
1962
1961
|
},
|
|
1963
1962
|
_doFinalize: function() {
|
|
1964
|
-
var u = this._data, p = u.words,
|
|
1965
|
-
p[D >>> 5] |= 128 << 24 - D % 32, p[(D + 128 >>> 10 << 5) + 30] = Math.floor(
|
|
1963
|
+
var u = this._data, p = u.words, l = this._nDataBytes * 8, D = u.sigBytes * 8;
|
|
1964
|
+
p[D >>> 5] |= 128 << 24 - D % 32, p[(D + 128 >>> 10 << 5) + 30] = Math.floor(l / 4294967296), p[(D + 128 >>> 10 << 5) + 31] = l, u.sigBytes = p.length * 4, this._process();
|
|
1966
1965
|
var i = this._hash.toX32();
|
|
1967
1966
|
return i;
|
|
1968
1967
|
},
|
|
@@ -1979,14 +1978,14 @@ function ze() {
|
|
|
1979
1978
|
}
|
|
1980
1979
|
var T0 = { exports: {} }, Xt = T0.exports, re;
|
|
1981
1980
|
function Yt() {
|
|
1982
|
-
return re || (re = 1, (function(r,
|
|
1981
|
+
return re || (re = 1, (function(r, h) {
|
|
1983
1982
|
(function(t, e, c) {
|
|
1984
1983
|
r.exports = e(M(), vr(), ze());
|
|
1985
1984
|
})(Xt, function(t) {
|
|
1986
1985
|
return (function() {
|
|
1987
|
-
var e = t, c = e.x64, v = c.Word,
|
|
1986
|
+
var e = t, c = e.x64, v = c.Word, _ = c.WordArray, B = e.algo, C = B.SHA512, x = B.SHA384 = C.extend({
|
|
1988
1987
|
_doReset: function() {
|
|
1989
|
-
this._hash = new
|
|
1988
|
+
this._hash = new _.init([
|
|
1990
1989
|
new v.init(3418070365, 3238371032),
|
|
1991
1990
|
new v.init(1654270250, 914150663),
|
|
1992
1991
|
new v.init(2438529370, 812702999),
|
|
@@ -2009,36 +2008,36 @@ function Yt() {
|
|
|
2009
2008
|
}
|
|
2010
2009
|
var M0 = { exports: {} }, Zt = M0.exports, ee;
|
|
2011
2010
|
function Qt() {
|
|
2012
|
-
return ee || (ee = 1, (function(r,
|
|
2011
|
+
return ee || (ee = 1, (function(r, h) {
|
|
2013
2012
|
(function(t, e, c) {
|
|
2014
2013
|
r.exports = e(M(), vr());
|
|
2015
2014
|
})(Zt, function(t) {
|
|
2016
2015
|
return (function(e) {
|
|
2017
|
-
var c = t, v = c.lib,
|
|
2016
|
+
var c = t, v = c.lib, _ = v.WordArray, B = v.Hasher, C = c.x64, x = C.Word, n = c.algo, E = [], a = [], s = [];
|
|
2018
2017
|
(function() {
|
|
2019
|
-
for (var
|
|
2020
|
-
E[
|
|
2021
|
-
var o = D % 5,
|
|
2022
|
-
|
|
2018
|
+
for (var l = 1, D = 0, i = 0; i < 24; i++) {
|
|
2019
|
+
E[l + 5 * D] = (i + 1) * (i + 2) / 2 % 64;
|
|
2020
|
+
var o = D % 5, d = (2 * l + 3 * D) % 5;
|
|
2021
|
+
l = o, D = d;
|
|
2023
2022
|
}
|
|
2024
|
-
for (var
|
|
2023
|
+
for (var l = 0; l < 5; l++)
|
|
2025
2024
|
for (var D = 0; D < 5; D++)
|
|
2026
|
-
a[
|
|
2025
|
+
a[l + 5 * D] = D + (2 * l + 3 * D) % 5 * 5;
|
|
2027
2026
|
for (var b = 1, g = 0; g < 24; g++) {
|
|
2028
|
-
for (var
|
|
2027
|
+
for (var y = 0, k = 0, R = 0; R < 7; R++) {
|
|
2029
2028
|
if (b & 1) {
|
|
2030
|
-
var F = (1 <<
|
|
2031
|
-
F < 32 ? k ^= 1 << F :
|
|
2029
|
+
var F = (1 << R) - 1;
|
|
2030
|
+
F < 32 ? k ^= 1 << F : y ^= 1 << F - 32;
|
|
2032
2031
|
}
|
|
2033
2032
|
b & 128 ? b = b << 1 ^ 113 : b <<= 1;
|
|
2034
2033
|
}
|
|
2035
|
-
s[g] = x.create(
|
|
2034
|
+
s[g] = x.create(y, k);
|
|
2036
2035
|
}
|
|
2037
2036
|
})();
|
|
2038
2037
|
var u = [];
|
|
2039
2038
|
(function() {
|
|
2040
|
-
for (var
|
|
2041
|
-
u[
|
|
2039
|
+
for (var l = 0; l < 25; l++)
|
|
2040
|
+
u[l] = x.create();
|
|
2042
2041
|
})();
|
|
2043
2042
|
var p = n.SHA3 = B.extend({
|
|
2044
2043
|
/**
|
|
@@ -2053,63 +2052,63 @@ function Qt() {
|
|
|
2053
2052
|
outputLength: 512
|
|
2054
2053
|
}),
|
|
2055
2054
|
_doReset: function() {
|
|
2056
|
-
for (var
|
|
2057
|
-
|
|
2055
|
+
for (var l = this._state = [], D = 0; D < 25; D++)
|
|
2056
|
+
l[D] = new x.init();
|
|
2058
2057
|
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
|
|
2059
2058
|
},
|
|
2060
|
-
_doProcessBlock: function(
|
|
2061
|
-
for (var i = this._state, o = this.blockSize / 2,
|
|
2062
|
-
var b =
|
|
2059
|
+
_doProcessBlock: function(l, D) {
|
|
2060
|
+
for (var i = this._state, o = this.blockSize / 2, d = 0; d < o; d++) {
|
|
2061
|
+
var b = l[D + 2 * d], g = l[D + 2 * d + 1];
|
|
2063
2062
|
b = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, g = (g << 8 | g >>> 24) & 16711935 | (g << 24 | g >>> 8) & 4278255360;
|
|
2064
|
-
var
|
|
2065
|
-
|
|
2063
|
+
var y = i[d];
|
|
2064
|
+
y.high ^= g, y.low ^= b;
|
|
2066
2065
|
}
|
|
2067
2066
|
for (var k = 0; k < 24; k++) {
|
|
2068
|
-
for (var
|
|
2067
|
+
for (var R = 0; R < 5; R++) {
|
|
2069
2068
|
for (var F = 0, w = 0, H = 0; H < 5; H++) {
|
|
2070
|
-
var
|
|
2071
|
-
F ^=
|
|
2069
|
+
var y = i[R + 5 * H];
|
|
2070
|
+
F ^= y.high, w ^= y.low;
|
|
2072
2071
|
}
|
|
2073
|
-
var
|
|
2074
|
-
|
|
2072
|
+
var $ = u[R];
|
|
2073
|
+
$.high = F, $.low = w;
|
|
2075
2074
|
}
|
|
2076
|
-
for (var
|
|
2077
|
-
for (var z = u[(
|
|
2078
|
-
var
|
|
2079
|
-
|
|
2075
|
+
for (var R = 0; R < 5; R++)
|
|
2076
|
+
for (var z = u[(R + 4) % 5], O = u[(R + 1) % 5], q = O.high, U = O.low, F = z.high ^ (q << 1 | U >>> 31), w = z.low ^ (U << 1 | q >>> 31), H = 0; H < 5; H++) {
|
|
2077
|
+
var y = i[R + 5 * H];
|
|
2078
|
+
y.high ^= F, y.low ^= w;
|
|
2080
2079
|
}
|
|
2081
2080
|
for (var T = 1; T < 25; T++) {
|
|
2082
|
-
var F, w,
|
|
2081
|
+
var F, w, y = i[T], N = y.high, j = y.low, S = E[T];
|
|
2083
2082
|
S < 32 ? (F = N << S | j >>> 32 - S, w = j << S | N >>> 32 - S) : (F = j << S - 32 | N >>> 64 - S, w = N << S - 32 | j >>> 64 - S);
|
|
2084
2083
|
var f = u[a[T]];
|
|
2085
2084
|
f.high = F, f.low = w;
|
|
2086
2085
|
}
|
|
2087
2086
|
var A = u[0], m = i[0];
|
|
2088
2087
|
A.high = m.high, A.low = m.low;
|
|
2089
|
-
for (var
|
|
2088
|
+
for (var R = 0; R < 5; R++)
|
|
2090
2089
|
for (var H = 0; H < 5; H++) {
|
|
2091
|
-
var T =
|
|
2092
|
-
|
|
2090
|
+
var T = R + 5 * H, y = i[T], I = u[T], P = u[(R + 1) % 5 + 5 * H], L = u[(R + 2) % 5 + 5 * H];
|
|
2091
|
+
y.high = I.high ^ ~P.high & L.high, y.low = I.low ^ ~P.low & L.low;
|
|
2093
2092
|
}
|
|
2094
|
-
var
|
|
2095
|
-
|
|
2093
|
+
var y = i[0], W = s[k];
|
|
2094
|
+
y.high ^= W.high, y.low ^= W.low;
|
|
2096
2095
|
}
|
|
2097
2096
|
},
|
|
2098
2097
|
_doFinalize: function() {
|
|
2099
|
-
var
|
|
2098
|
+
var l = this._data, D = l.words;
|
|
2100
2099
|
this._nDataBytes * 8;
|
|
2101
|
-
var i =
|
|
2102
|
-
D[i >>> 5] |= 1 << 24 - i % 32, D[(e.ceil((i + 1) / o) * o >>> 5) - 1] |= 128,
|
|
2103
|
-
for (var
|
|
2104
|
-
var
|
|
2105
|
-
F = (F << 8 | F >>> 24) & 16711935 | (F << 24 | F >>> 8) & 4278255360, w = (w << 8 | w >>> 24) & 16711935 | (w << 24 | w >>> 8) & 4278255360,
|
|
2100
|
+
var i = l.sigBytes * 8, o = this.blockSize * 32;
|
|
2101
|
+
D[i >>> 5] |= 1 << 24 - i % 32, D[(e.ceil((i + 1) / o) * o >>> 5) - 1] |= 128, l.sigBytes = D.length * 4, this._process();
|
|
2102
|
+
for (var d = this._state, b = this.cfg.outputLength / 8, g = b / 8, y = [], k = 0; k < g; k++) {
|
|
2103
|
+
var R = d[k], F = R.high, w = R.low;
|
|
2104
|
+
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);
|
|
2106
2105
|
}
|
|
2107
|
-
return new
|
|
2106
|
+
return new _.init(y, b);
|
|
2108
2107
|
},
|
|
2109
2108
|
clone: function() {
|
|
2110
|
-
for (var
|
|
2109
|
+
for (var l = B.clone.call(this), D = l._state = this._state.slice(0), i = 0; i < 25; i++)
|
|
2111
2110
|
D[i] = D[i].clone();
|
|
2112
|
-
return
|
|
2111
|
+
return l;
|
|
2113
2112
|
}
|
|
2114
2113
|
});
|
|
2115
2114
|
c.SHA3 = B._createHelper(p), c.HmacSHA3 = B._createHmacHelper(p);
|
|
@@ -2119,12 +2118,12 @@ function Qt() {
|
|
|
2119
2118
|
}
|
|
2120
2119
|
var N0 = { exports: {} }, Vt = N0.exports, te;
|
|
2121
2120
|
function Jt() {
|
|
2122
|
-
return te || (te = 1, (function(r,
|
|
2121
|
+
return te || (te = 1, (function(r, h) {
|
|
2123
2122
|
(function(t, e) {
|
|
2124
2123
|
r.exports = e(M());
|
|
2125
2124
|
})(Vt, function(t) {
|
|
2126
2125
|
return (function(e) {
|
|
2127
|
-
var c = t, v = c.lib,
|
|
2126
|
+
var c = t, v = c.lib, _ = v.WordArray, B = v.Hasher, C = c.algo, x = _.create([
|
|
2128
2127
|
0,
|
|
2129
2128
|
1,
|
|
2130
2129
|
2,
|
|
@@ -2205,7 +2204,7 @@ function Jt() {
|
|
|
2205
2204
|
6,
|
|
2206
2205
|
15,
|
|
2207
2206
|
13
|
|
2208
|
-
]), n =
|
|
2207
|
+
]), n = _.create([
|
|
2209
2208
|
5,
|
|
2210
2209
|
14,
|
|
2211
2210
|
7,
|
|
@@ -2286,7 +2285,7 @@ function Jt() {
|
|
|
2286
2285
|
3,
|
|
2287
2286
|
9,
|
|
2288
2287
|
11
|
|
2289
|
-
]), E =
|
|
2288
|
+
]), E = _.create([
|
|
2290
2289
|
11,
|
|
2291
2290
|
14,
|
|
2292
2291
|
15,
|
|
@@ -2367,7 +2366,7 @@ function Jt() {
|
|
|
2367
2366
|
8,
|
|
2368
2367
|
5,
|
|
2369
2368
|
6
|
|
2370
|
-
]), a =
|
|
2369
|
+
]), a = _.create([
|
|
2371
2370
|
8,
|
|
2372
2371
|
9,
|
|
2373
2372
|
9,
|
|
@@ -2448,27 +2447,27 @@ function Jt() {
|
|
|
2448
2447
|
13,
|
|
2449
2448
|
11,
|
|
2450
2449
|
11
|
|
2451
|
-
]), s =
|
|
2450
|
+
]), s = _.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), u = _.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), p = C.RIPEMD160 = B.extend({
|
|
2452
2451
|
_doReset: function() {
|
|
2453
|
-
this._hash =
|
|
2452
|
+
this._hash = _.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2454
2453
|
},
|
|
2455
|
-
_doProcessBlock: function(g,
|
|
2454
|
+
_doProcessBlock: function(g, y) {
|
|
2456
2455
|
for (var k = 0; k < 16; k++) {
|
|
2457
|
-
var
|
|
2458
|
-
g[
|
|
2456
|
+
var R = y + k, F = g[R];
|
|
2457
|
+
g[R] = (F << 8 | F >>> 24) & 16711935 | (F << 24 | F >>> 8) & 4278255360;
|
|
2459
2458
|
}
|
|
2460
|
-
var w = this._hash.words, H = s.words,
|
|
2461
|
-
A = T = w[0], m = N = w[1],
|
|
2462
|
-
for (var
|
|
2463
|
-
|
|
2464
|
-
|
|
2459
|
+
var w = this._hash.words, H = s.words, $ = u.words, z = x.words, O = n.words, q = E.words, U = a.words, T, N, j, S, f, A, m, I, P, L;
|
|
2460
|
+
A = T = w[0], m = N = w[1], I = j = w[2], P = S = w[3], L = f = w[4];
|
|
2461
|
+
for (var W, k = 0; k < 80; k += 1)
|
|
2462
|
+
W = T + g[y + z[k]] | 0, k < 16 ? W += l(N, j, S) + H[0] : k < 32 ? W += D(N, j, S) + H[1] : k < 48 ? W += i(N, j, S) + H[2] : k < 64 ? W += o(N, j, S) + H[3] : W += d(N, j, S) + H[4], W = W | 0, W = b(W, q[k]), W = W + f | 0, T = f, f = S, S = b(j, 10), j = N, N = W, W = A + g[y + O[k]] | 0, k < 16 ? W += d(m, I, P) + $[0] : k < 32 ? W += o(m, I, P) + $[1] : k < 48 ? W += i(m, I, P) + $[2] : k < 64 ? W += D(m, I, P) + $[3] : W += l(m, I, P) + $[4], W = W | 0, W = b(W, U[k]), W = W + L | 0, A = L, L = P, P = b(I, 10), I = m, m = W;
|
|
2463
|
+
W = w[1] + j + P | 0, w[1] = w[2] + S + L | 0, w[2] = w[3] + f + A | 0, w[3] = w[4] + T + m | 0, w[4] = w[0] + N + I | 0, w[0] = W;
|
|
2465
2464
|
},
|
|
2466
2465
|
_doFinalize: function() {
|
|
2467
|
-
var g = this._data,
|
|
2468
|
-
|
|
2466
|
+
var g = this._data, y = g.words, k = this._nDataBytes * 8, R = g.sigBytes * 8;
|
|
2467
|
+
y[R >>> 5] |= 128 << 24 - R % 32, y[(R + 64 >>> 9 << 4) + 14] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360, g.sigBytes = (y.length + 1) * 4, this._process();
|
|
2469
2468
|
for (var F = this._hash, w = F.words, H = 0; H < 5; H++) {
|
|
2470
|
-
var
|
|
2471
|
-
w[H] = (
|
|
2469
|
+
var $ = w[H];
|
|
2470
|
+
w[H] = ($ << 8 | $ >>> 24) & 16711935 | ($ << 24 | $ >>> 8) & 4278255360;
|
|
2472
2471
|
}
|
|
2473
2472
|
return F;
|
|
2474
2473
|
},
|
|
@@ -2477,23 +2476,23 @@ function Jt() {
|
|
|
2477
2476
|
return g._hash = this._hash.clone(), g;
|
|
2478
2477
|
}
|
|
2479
2478
|
});
|
|
2480
|
-
function
|
|
2481
|
-
return g ^
|
|
2479
|
+
function l(g, y, k) {
|
|
2480
|
+
return g ^ y ^ k;
|
|
2482
2481
|
}
|
|
2483
|
-
function D(g,
|
|
2484
|
-
return g &
|
|
2482
|
+
function D(g, y, k) {
|
|
2483
|
+
return g & y | ~g & k;
|
|
2485
2484
|
}
|
|
2486
|
-
function i(g,
|
|
2487
|
-
return (g | ~
|
|
2485
|
+
function i(g, y, k) {
|
|
2486
|
+
return (g | ~y) ^ k;
|
|
2488
2487
|
}
|
|
2489
|
-
function o(g,
|
|
2490
|
-
return g & k |
|
|
2488
|
+
function o(g, y, k) {
|
|
2489
|
+
return g & k | y & ~k;
|
|
2491
2490
|
}
|
|
2492
|
-
function
|
|
2493
|
-
return g ^ (
|
|
2491
|
+
function d(g, y, k) {
|
|
2492
|
+
return g ^ (y | ~k);
|
|
2494
2493
|
}
|
|
2495
|
-
function b(g,
|
|
2496
|
-
return g <<
|
|
2494
|
+
function b(g, y) {
|
|
2495
|
+
return g << y | g >>> 32 - y;
|
|
2497
2496
|
}
|
|
2498
2497
|
c.RIPEMD160 = B._createHelper(p), c.HmacRIPEMD160 = B._createHmacHelper(p);
|
|
2499
2498
|
})(), t.RIPEMD160;
|
|
@@ -2502,12 +2501,12 @@ function Jt() {
|
|
|
2502
2501
|
}
|
|
2503
2502
|
var U0 = { exports: {} }, rx = U0.exports, xe;
|
|
2504
2503
|
function _r() {
|
|
2505
|
-
return xe || (xe = 1, (function(r,
|
|
2504
|
+
return xe || (xe = 1, (function(r, h) {
|
|
2506
2505
|
(function(t, e) {
|
|
2507
2506
|
r.exports = e(M());
|
|
2508
2507
|
})(rx, function(t) {
|
|
2509
2508
|
(function() {
|
|
2510
|
-
var e = t, c = e.lib, v = c.Base,
|
|
2509
|
+
var e = t, c = e.lib, v = c.Base, _ = e.enc, B = _.Utf8, C = e.algo;
|
|
2511
2510
|
C.HMAC = v.extend({
|
|
2512
2511
|
/**
|
|
2513
2512
|
* Initializes a newly created HMAC.
|
|
@@ -2523,8 +2522,8 @@ function _r() {
|
|
|
2523
2522
|
x = this._hasher = new x.init(), typeof n == "string" && (n = B.parse(n));
|
|
2524
2523
|
var E = x.blockSize, a = E * 4;
|
|
2525
2524
|
n.sigBytes > a && (n = x.finalize(n)), n.clamp();
|
|
2526
|
-
for (var s = this._oKey = n.clone(), u = this._iKey = n.clone(), p = s.words,
|
|
2527
|
-
p[D] ^= 1549556828,
|
|
2525
|
+
for (var s = this._oKey = n.clone(), u = this._iKey = n.clone(), p = s.words, l = u.words, D = 0; D < E; D++)
|
|
2526
|
+
p[D] ^= 1549556828, l[D] ^= 909522486;
|
|
2528
2527
|
s.sigBytes = u.sigBytes = a, this.reset();
|
|
2529
2528
|
},
|
|
2530
2529
|
/**
|
|
@@ -2580,12 +2579,12 @@ function _r() {
|
|
|
2580
2579
|
}
|
|
2581
2580
|
var j0 = { exports: {} }, ex = j0.exports, ne;
|
|
2582
2581
|
function tx() {
|
|
2583
|
-
return ne || (ne = 1, (function(r,
|
|
2582
|
+
return ne || (ne = 1, (function(r, h) {
|
|
2584
2583
|
(function(t, e, c) {
|
|
2585
2584
|
r.exports = e(M(), mr(), _r());
|
|
2586
2585
|
})(ex, function(t) {
|
|
2587
2586
|
return (function() {
|
|
2588
|
-
var e = t, c = e.lib, v = c.Base,
|
|
2587
|
+
var e = t, c = e.lib, v = c.Base, _ = c.WordArray, B = e.algo, C = B.SHA256, x = B.HMAC, n = B.PBKDF2 = v.extend({
|
|
2589
2588
|
/**
|
|
2590
2589
|
* Configuration options.
|
|
2591
2590
|
*
|
|
@@ -2625,12 +2624,12 @@ function tx() {
|
|
|
2625
2624
|
* var key = kdf.compute(password, salt);
|
|
2626
2625
|
*/
|
|
2627
2626
|
compute: function(E, a) {
|
|
2628
|
-
for (var s = this.cfg, u = x.create(s.hasher, E), p =
|
|
2629
|
-
var b = u.update(a).finalize(
|
|
2627
|
+
for (var s = this.cfg, u = x.create(s.hasher, E), p = _.create(), l = _.create([1]), D = p.words, i = l.words, o = s.keySize, d = s.iterations; D.length < o; ) {
|
|
2628
|
+
var b = u.update(a).finalize(l);
|
|
2630
2629
|
u.reset();
|
|
2631
|
-
for (var g = b.words,
|
|
2630
|
+
for (var g = b.words, y = g.length, k = b, R = 1; R < d; R++) {
|
|
2632
2631
|
k = u.finalize(k), u.reset();
|
|
2633
|
-
for (var F = k.words, w = 0; w <
|
|
2632
|
+
for (var F = k.words, w = 0; w < y; w++)
|
|
2634
2633
|
g[w] ^= F[w];
|
|
2635
2634
|
}
|
|
2636
2635
|
p.concat(b), i[0]++;
|
|
@@ -2647,12 +2646,12 @@ function tx() {
|
|
|
2647
2646
|
}
|
|
2648
2647
|
var G0 = { exports: {} }, xx = G0.exports, ae;
|
|
2649
2648
|
function o0() {
|
|
2650
|
-
return ae || (ae = 1, (function(r,
|
|
2649
|
+
return ae || (ae = 1, (function(r, h) {
|
|
2651
2650
|
(function(t, e, c) {
|
|
2652
2651
|
r.exports = e(M(), Pe(), _r());
|
|
2653
2652
|
})(xx, function(t) {
|
|
2654
2653
|
return (function() {
|
|
2655
|
-
var e = t, c = e.lib, v = c.Base,
|
|
2654
|
+
var e = t, c = e.lib, v = c.Base, _ = c.WordArray, B = e.algo, C = B.MD5, x = B.EvpKDF = v.extend({
|
|
2656
2655
|
/**
|
|
2657
2656
|
* Configuration options.
|
|
2658
2657
|
*
|
|
@@ -2692,7 +2691,7 @@ function o0() {
|
|
|
2692
2691
|
* var key = kdf.compute(password, salt);
|
|
2693
2692
|
*/
|
|
2694
2693
|
compute: function(n, E) {
|
|
2695
|
-
for (var a, s = this.cfg, u = s.hasher.create(), p =
|
|
2694
|
+
for (var a, s = this.cfg, u = s.hasher.create(), p = _.create(), l = p.words, D = s.keySize, i = s.iterations; l.length < D; ) {
|
|
2696
2695
|
a && u.update(a), a = u.update(n).finalize(E), u.reset();
|
|
2697
2696
|
for (var o = 1; o < i; o++)
|
|
2698
2697
|
a = u.finalize(a), u.reset();
|
|
@@ -2710,12 +2709,12 @@ function o0() {
|
|
|
2710
2709
|
}
|
|
2711
2710
|
var K0 = { exports: {} }, nx = K0.exports, oe;
|
|
2712
2711
|
function X() {
|
|
2713
|
-
return oe || (oe = 1, (function(r,
|
|
2712
|
+
return oe || (oe = 1, (function(r, h) {
|
|
2714
2713
|
(function(t, e, c) {
|
|
2715
2714
|
r.exports = e(M(), o0());
|
|
2716
2715
|
})(nx, function(t) {
|
|
2717
2716
|
t.lib.Cipher || (function(e) {
|
|
2718
|
-
var c = t, v = c.lib,
|
|
2717
|
+
var c = t, v = c.lib, _ = v.Base, B = v.WordArray, C = v.BufferedBlockAlgorithm, x = c.enc;
|
|
2719
2718
|
x.Utf8;
|
|
2720
2719
|
var n = x.Base64, E = c.algo, a = E.EvpKDF, s = v.Cipher = C.extend({
|
|
2721
2720
|
/**
|
|
@@ -2723,7 +2722,7 @@ function X() {
|
|
|
2723
2722
|
*
|
|
2724
2723
|
* @property {WordArray} iv The IV to use for this operation.
|
|
2725
2724
|
*/
|
|
2726
|
-
cfg:
|
|
2725
|
+
cfg: _.extend(),
|
|
2727
2726
|
/**
|
|
2728
2727
|
* Creates this cipher in encryption mode.
|
|
2729
2728
|
*
|
|
@@ -2835,15 +2834,15 @@ function X() {
|
|
|
2835
2834
|
*/
|
|
2836
2835
|
_createHelper: /* @__PURE__ */ (function() {
|
|
2837
2836
|
function F(w) {
|
|
2838
|
-
return typeof w == "string" ?
|
|
2837
|
+
return typeof w == "string" ? R : g;
|
|
2839
2838
|
}
|
|
2840
2839
|
return function(w) {
|
|
2841
2840
|
return {
|
|
2842
|
-
encrypt: function(H,
|
|
2843
|
-
return F(
|
|
2841
|
+
encrypt: function(H, $, z) {
|
|
2842
|
+
return F($).encrypt(w, H, $, z);
|
|
2844
2843
|
},
|
|
2845
|
-
decrypt: function(H,
|
|
2846
|
-
return F(
|
|
2844
|
+
decrypt: function(H, $, z) {
|
|
2845
|
+
return F($).decrypt(w, H, $, z);
|
|
2847
2846
|
}
|
|
2848
2847
|
};
|
|
2849
2848
|
};
|
|
@@ -2856,7 +2855,7 @@ function X() {
|
|
|
2856
2855
|
},
|
|
2857
2856
|
blockSize: 1
|
|
2858
2857
|
});
|
|
2859
|
-
var u = c.mode = {}, p = v.BlockCipherMode =
|
|
2858
|
+
var u = c.mode = {}, p = v.BlockCipherMode = _.extend({
|
|
2860
2859
|
/**
|
|
2861
2860
|
* Creates this mode for encryption.
|
|
2862
2861
|
*
|
|
@@ -2900,7 +2899,7 @@ function X() {
|
|
|
2900
2899
|
init: function(F, w) {
|
|
2901
2900
|
this._cipher = F, this._iv = w;
|
|
2902
2901
|
}
|
|
2903
|
-
}),
|
|
2902
|
+
}), l = u.CBC = (function() {
|
|
2904
2903
|
var F = p.extend();
|
|
2905
2904
|
F.Encryptor = F.extend({
|
|
2906
2905
|
/**
|
|
@@ -2913,9 +2912,9 @@ function X() {
|
|
|
2913
2912
|
*
|
|
2914
2913
|
* mode.processBlock(data.words, offset);
|
|
2915
2914
|
*/
|
|
2916
|
-
processBlock: function(H,
|
|
2915
|
+
processBlock: function(H, $) {
|
|
2917
2916
|
var z = this._cipher, O = z.blockSize;
|
|
2918
|
-
w.call(this, H,
|
|
2917
|
+
w.call(this, H, $, O), z.encryptBlock(H, $), this._prevBlock = H.slice($, $ + O);
|
|
2919
2918
|
}
|
|
2920
2919
|
}), F.Decryptor = F.extend({
|
|
2921
2920
|
/**
|
|
@@ -2928,16 +2927,16 @@ function X() {
|
|
|
2928
2927
|
*
|
|
2929
2928
|
* mode.processBlock(data.words, offset);
|
|
2930
2929
|
*/
|
|
2931
|
-
processBlock: function(H,
|
|
2932
|
-
var z = this._cipher, O = z.blockSize, q = H.slice(
|
|
2933
|
-
z.decryptBlock(H,
|
|
2930
|
+
processBlock: function(H, $) {
|
|
2931
|
+
var z = this._cipher, O = z.blockSize, q = H.slice($, $ + O);
|
|
2932
|
+
z.decryptBlock(H, $), w.call(this, H, $, O), this._prevBlock = q;
|
|
2934
2933
|
}
|
|
2935
2934
|
});
|
|
2936
|
-
function w(H,
|
|
2935
|
+
function w(H, $, z) {
|
|
2937
2936
|
var O, q = this._iv;
|
|
2938
2937
|
q ? (O = q, this._iv = e) : O = this._prevBlock;
|
|
2939
2938
|
for (var U = 0; U < z; U++)
|
|
2940
|
-
H[
|
|
2939
|
+
H[$ + U] ^= O[U];
|
|
2941
2940
|
}
|
|
2942
2941
|
return F;
|
|
2943
2942
|
})(), D = c.pad = {}, i = D.Pkcs7 = {
|
|
@@ -2954,9 +2953,9 @@ function X() {
|
|
|
2954
2953
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
2955
2954
|
*/
|
|
2956
2955
|
pad: function(F, w) {
|
|
2957
|
-
for (var H = w * 4,
|
|
2956
|
+
for (var H = w * 4, $ = H - F.sigBytes % H, z = $ << 24 | $ << 16 | $ << 8 | $, O = [], q = 0; q < $; q += 4)
|
|
2958
2957
|
O.push(z);
|
|
2959
|
-
var U = B.create(O,
|
|
2958
|
+
var U = B.create(O, $);
|
|
2960
2959
|
F.concat(U);
|
|
2961
2960
|
},
|
|
2962
2961
|
/**
|
|
@@ -2983,14 +2982,14 @@ function X() {
|
|
|
2983
2982
|
* @property {Padding} padding The padding strategy to use. Default: Pkcs7
|
|
2984
2983
|
*/
|
|
2985
2984
|
cfg: s.cfg.extend({
|
|
2986
|
-
mode:
|
|
2985
|
+
mode: l,
|
|
2987
2986
|
padding: i
|
|
2988
2987
|
}),
|
|
2989
2988
|
reset: function() {
|
|
2990
2989
|
var F;
|
|
2991
2990
|
s.reset.call(this);
|
|
2992
|
-
var w = this.cfg, H = w.iv,
|
|
2993
|
-
this._xformMode == this._ENC_XFORM_MODE ? F =
|
|
2991
|
+
var w = this.cfg, H = w.iv, $ = w.mode;
|
|
2992
|
+
this._xformMode == this._ENC_XFORM_MODE ? F = $.createEncryptor : (F = $.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == F ? this._mode.init(this, H && H.words) : (this._mode = F.call($, this, H && H.words), this._mode.__creator = F);
|
|
2994
2993
|
},
|
|
2995
2994
|
_doProcessBlock: function(F, w) {
|
|
2996
2995
|
this._mode.processBlock(F, w);
|
|
@@ -3001,7 +3000,7 @@ function X() {
|
|
|
3001
3000
|
},
|
|
3002
3001
|
blockSize: 128 / 32
|
|
3003
3002
|
});
|
|
3004
|
-
var o = v.CipherParams =
|
|
3003
|
+
var o = v.CipherParams = _.extend({
|
|
3005
3004
|
/**
|
|
3006
3005
|
* Initializes a newly created cipher params object.
|
|
3007
3006
|
*
|
|
@@ -3042,7 +3041,7 @@ function X() {
|
|
|
3042
3041
|
toString: function(F) {
|
|
3043
3042
|
return (F || this.formatter).stringify(this);
|
|
3044
3043
|
}
|
|
3045
|
-
}),
|
|
3044
|
+
}), d = c.format = {}, b = d.OpenSSL = {
|
|
3046
3045
|
/**
|
|
3047
3046
|
* Converts a cipher params object to an OpenSSL-compatible string.
|
|
3048
3047
|
*
|
|
@@ -3057,8 +3056,8 @@ function X() {
|
|
|
3057
3056
|
* var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
|
|
3058
3057
|
*/
|
|
3059
3058
|
stringify: function(F) {
|
|
3060
|
-
var w, H = F.ciphertext,
|
|
3061
|
-
return
|
|
3059
|
+
var w, H = F.ciphertext, $ = F.salt;
|
|
3060
|
+
return $ ? w = B.create([1398893684, 1701076831]).concat($).concat(H) : w = H, w.toString(n);
|
|
3062
3061
|
},
|
|
3063
3062
|
/**
|
|
3064
3063
|
* Converts an OpenSSL-compatible string to a cipher params object.
|
|
@@ -3074,16 +3073,16 @@ function X() {
|
|
|
3074
3073
|
* var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
|
|
3075
3074
|
*/
|
|
3076
3075
|
parse: function(F) {
|
|
3077
|
-
var w, H = n.parse(F),
|
|
3078
|
-
return
|
|
3076
|
+
var w, H = n.parse(F), $ = H.words;
|
|
3077
|
+
return $[0] == 1398893684 && $[1] == 1701076831 && (w = B.create($.slice(2, 4)), $.splice(0, 4), H.sigBytes -= 16), o.create({ ciphertext: H, salt: w });
|
|
3079
3078
|
}
|
|
3080
|
-
}, g = v.SerializableCipher =
|
|
3079
|
+
}, g = v.SerializableCipher = _.extend({
|
|
3081
3080
|
/**
|
|
3082
3081
|
* Configuration options.
|
|
3083
3082
|
*
|
|
3084
3083
|
* @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
|
|
3085
3084
|
*/
|
|
3086
|
-
cfg:
|
|
3085
|
+
cfg: _.extend({
|
|
3087
3086
|
format: b
|
|
3088
3087
|
}),
|
|
3089
3088
|
/**
|
|
@@ -3104,9 +3103,9 @@ function X() {
|
|
|
3104
3103
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
|
|
3105
3104
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3106
3105
|
*/
|
|
3107
|
-
encrypt: function(F, w, H,
|
|
3108
|
-
|
|
3109
|
-
var z = F.createEncryptor(H,
|
|
3106
|
+
encrypt: function(F, w, H, $) {
|
|
3107
|
+
$ = this.cfg.extend($);
|
|
3108
|
+
var z = F.createEncryptor(H, $), O = z.finalize(w), q = z.cfg;
|
|
3110
3109
|
return o.create({
|
|
3111
3110
|
ciphertext: O,
|
|
3112
3111
|
key: H,
|
|
@@ -3115,7 +3114,7 @@ function X() {
|
|
|
3115
3114
|
mode: q.mode,
|
|
3116
3115
|
padding: q.padding,
|
|
3117
3116
|
blockSize: F.blockSize,
|
|
3118
|
-
formatter:
|
|
3117
|
+
formatter: $.format
|
|
3119
3118
|
});
|
|
3120
3119
|
},
|
|
3121
3120
|
/**
|
|
@@ -3135,9 +3134,9 @@ function X() {
|
|
|
3135
3134
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3136
3135
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3137
3136
|
*/
|
|
3138
|
-
decrypt: function(F, w, H,
|
|
3139
|
-
|
|
3140
|
-
var z = F.createDecryptor(H,
|
|
3137
|
+
decrypt: function(F, w, H, $) {
|
|
3138
|
+
$ = this.cfg.extend($), w = this._parse(w, $.format);
|
|
3139
|
+
var z = F.createDecryptor(H, $).finalize(w.ciphertext);
|
|
3141
3140
|
return z;
|
|
3142
3141
|
},
|
|
3143
3142
|
/**
|
|
@@ -3158,7 +3157,7 @@ function X() {
|
|
|
3158
3157
|
_parse: function(F, w) {
|
|
3159
3158
|
return typeof F == "string" ? w.parse(F, this) : F;
|
|
3160
3159
|
}
|
|
3161
|
-
}),
|
|
3160
|
+
}), y = c.kdf = {}, k = y.OpenSSL = {
|
|
3162
3161
|
/**
|
|
3163
3162
|
* Derives a key and IV from a password.
|
|
3164
3163
|
*
|
|
@@ -3176,15 +3175,15 @@ function X() {
|
|
|
3176
3175
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
3177
3176
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
3178
3177
|
*/
|
|
3179
|
-
execute: function(F, w, H,
|
|
3180
|
-
if (
|
|
3181
|
-
var O = a.create({ keySize: w + H, hasher: z }).compute(F,
|
|
3178
|
+
execute: function(F, w, H, $, z) {
|
|
3179
|
+
if ($ || ($ = B.random(64 / 8)), z)
|
|
3180
|
+
var O = a.create({ keySize: w + H, hasher: z }).compute(F, $);
|
|
3182
3181
|
else
|
|
3183
|
-
var O = a.create({ keySize: w + H }).compute(F,
|
|
3182
|
+
var O = a.create({ keySize: w + H }).compute(F, $);
|
|
3184
3183
|
var q = B.create(O.words.slice(w), H * 4);
|
|
3185
|
-
return O.sigBytes = w * 4, o.create({ key: O, iv: q, salt:
|
|
3184
|
+
return O.sigBytes = w * 4, o.create({ key: O, iv: q, salt: $ });
|
|
3186
3185
|
}
|
|
3187
|
-
},
|
|
3186
|
+
}, R = v.PasswordBasedCipher = g.extend({
|
|
3188
3187
|
/**
|
|
3189
3188
|
* Configuration options.
|
|
3190
3189
|
*
|
|
@@ -3210,11 +3209,11 @@ function X() {
|
|
|
3210
3209
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
|
|
3211
3210
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3212
3211
|
*/
|
|
3213
|
-
encrypt: function(F, w, H,
|
|
3214
|
-
|
|
3215
|
-
var z =
|
|
3216
|
-
|
|
3217
|
-
var O = g.encrypt.call(this, F, w, z.key,
|
|
3212
|
+
encrypt: function(F, w, H, $) {
|
|
3213
|
+
$ = this.cfg.extend($);
|
|
3214
|
+
var z = $.kdf.execute(H, F.keySize, F.ivSize, $.salt, $.hasher);
|
|
3215
|
+
$.iv = z.iv;
|
|
3216
|
+
var O = g.encrypt.call(this, F, w, z.key, $);
|
|
3218
3217
|
return O.mixIn(z), O;
|
|
3219
3218
|
},
|
|
3220
3219
|
/**
|
|
@@ -3234,11 +3233,11 @@ function X() {
|
|
|
3234
3233
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3235
3234
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3236
3235
|
*/
|
|
3237
|
-
decrypt: function(F, w, H,
|
|
3238
|
-
|
|
3239
|
-
var z =
|
|
3240
|
-
|
|
3241
|
-
var O = g.decrypt.call(this, F, w, z.key,
|
|
3236
|
+
decrypt: function(F, w, H, $) {
|
|
3237
|
+
$ = this.cfg.extend($), w = this._parse(w, $.format);
|
|
3238
|
+
var z = $.kdf.execute(H, F.keySize, F.ivSize, w.salt, $.hasher);
|
|
3239
|
+
$.iv = z.iv;
|
|
3240
|
+
var O = g.decrypt.call(this, F, w, z.key, $);
|
|
3242
3241
|
return O;
|
|
3243
3242
|
}
|
|
3244
3243
|
});
|
|
@@ -3248,28 +3247,28 @@ function X() {
|
|
|
3248
3247
|
}
|
|
3249
3248
|
var X0 = { exports: {} }, ax = X0.exports, ie;
|
|
3250
3249
|
function ox() {
|
|
3251
|
-
return ie || (ie = 1, (function(r,
|
|
3250
|
+
return ie || (ie = 1, (function(r, h) {
|
|
3252
3251
|
(function(t, e, c) {
|
|
3253
3252
|
r.exports = e(M(), X());
|
|
3254
3253
|
})(ax, function(t) {
|
|
3255
3254
|
return t.mode.CFB = (function() {
|
|
3256
3255
|
var e = t.lib.BlockCipherMode.extend();
|
|
3257
3256
|
e.Encryptor = e.extend({
|
|
3258
|
-
processBlock: function(v,
|
|
3257
|
+
processBlock: function(v, _) {
|
|
3259
3258
|
var B = this._cipher, C = B.blockSize;
|
|
3260
|
-
c.call(this, v,
|
|
3259
|
+
c.call(this, v, _, C, B), this._prevBlock = v.slice(_, _ + C);
|
|
3261
3260
|
}
|
|
3262
3261
|
}), e.Decryptor = e.extend({
|
|
3263
|
-
processBlock: function(v,
|
|
3264
|
-
var B = this._cipher, C = B.blockSize, x = v.slice(
|
|
3265
|
-
c.call(this, v,
|
|
3262
|
+
processBlock: function(v, _) {
|
|
3263
|
+
var B = this._cipher, C = B.blockSize, x = v.slice(_, _ + C);
|
|
3264
|
+
c.call(this, v, _, C, B), this._prevBlock = x;
|
|
3266
3265
|
}
|
|
3267
3266
|
});
|
|
3268
|
-
function c(v,
|
|
3267
|
+
function c(v, _, B, C) {
|
|
3269
3268
|
var x, n = this._iv;
|
|
3270
3269
|
n ? (x = n.slice(0), this._iv = void 0) : x = this._prevBlock, C.encryptBlock(x, 0);
|
|
3271
3270
|
for (var E = 0; E < B; E++)
|
|
3272
|
-
v[
|
|
3271
|
+
v[_ + E] ^= x[E];
|
|
3273
3272
|
}
|
|
3274
3273
|
return e;
|
|
3275
3274
|
})(), t.mode.CFB;
|
|
@@ -3278,19 +3277,19 @@ function ox() {
|
|
|
3278
3277
|
}
|
|
3279
3278
|
var Y0 = { exports: {} }, ix = Y0.exports, se;
|
|
3280
3279
|
function sx() {
|
|
3281
|
-
return se || (se = 1, (function(r,
|
|
3280
|
+
return se || (se = 1, (function(r, h) {
|
|
3282
3281
|
(function(t, e, c) {
|
|
3283
3282
|
r.exports = e(M(), X());
|
|
3284
3283
|
})(ix, function(t) {
|
|
3285
3284
|
return t.mode.CTR = (function() {
|
|
3286
3285
|
var e = t.lib.BlockCipherMode.extend(), c = e.Encryptor = e.extend({
|
|
3287
|
-
processBlock: function(v,
|
|
3286
|
+
processBlock: function(v, _) {
|
|
3288
3287
|
var B = this._cipher, C = B.blockSize, x = this._iv, n = this._counter;
|
|
3289
3288
|
x && (n = this._counter = x.slice(0), this._iv = void 0);
|
|
3290
3289
|
var E = n.slice(0);
|
|
3291
3290
|
B.encryptBlock(E, 0), n[C - 1] = n[C - 1] + 1 | 0;
|
|
3292
3291
|
for (var a = 0; a < C; a++)
|
|
3293
|
-
v[
|
|
3292
|
+
v[_ + a] ^= E[a];
|
|
3294
3293
|
}
|
|
3295
3294
|
});
|
|
3296
3295
|
return e.Decryptor = c, e;
|
|
@@ -3300,7 +3299,7 @@ function sx() {
|
|
|
3300
3299
|
}
|
|
3301
3300
|
var Z0 = { exports: {} }, cx = Z0.exports, ce;
|
|
3302
3301
|
function fx() {
|
|
3303
|
-
return ce || (ce = 1, (function(r,
|
|
3302
|
+
return ce || (ce = 1, (function(r, h) {
|
|
3304
3303
|
(function(t, e, c) {
|
|
3305
3304
|
r.exports = e(M(), X());
|
|
3306
3305
|
})(cx, function(t) {
|
|
@@ -3317,7 +3316,7 @@ function fx() {
|
|
|
3317
3316
|
function v(B) {
|
|
3318
3317
|
return (B[0] = c(B[0])) === 0 && (B[1] = c(B[1])), B;
|
|
3319
3318
|
}
|
|
3320
|
-
var
|
|
3319
|
+
var _ = e.Encryptor = e.extend({
|
|
3321
3320
|
processBlock: function(B, C) {
|
|
3322
3321
|
var x = this._cipher, n = x.blockSize, E = this._iv, a = this._counter;
|
|
3323
3322
|
E && (a = this._counter = E.slice(0), this._iv = void 0), v(a);
|
|
@@ -3327,24 +3326,24 @@ function fx() {
|
|
|
3327
3326
|
B[C + u] ^= s[u];
|
|
3328
3327
|
}
|
|
3329
3328
|
});
|
|
3330
|
-
return e.Decryptor =
|
|
3329
|
+
return e.Decryptor = _, e;
|
|
3331
3330
|
})(), t.mode.CTRGladman;
|
|
3332
3331
|
});
|
|
3333
3332
|
})(Z0)), Z0.exports;
|
|
3334
3333
|
}
|
|
3335
3334
|
var Q0 = { exports: {} }, ux = Q0.exports, fe;
|
|
3336
3335
|
function dx() {
|
|
3337
|
-
return fe || (fe = 1, (function(r,
|
|
3336
|
+
return fe || (fe = 1, (function(r, h) {
|
|
3338
3337
|
(function(t, e, c) {
|
|
3339
3338
|
r.exports = e(M(), X());
|
|
3340
3339
|
})(ux, function(t) {
|
|
3341
3340
|
return t.mode.OFB = (function() {
|
|
3342
3341
|
var e = t.lib.BlockCipherMode.extend(), c = e.Encryptor = e.extend({
|
|
3343
|
-
processBlock: function(v,
|
|
3342
|
+
processBlock: function(v, _) {
|
|
3344
3343
|
var B = this._cipher, C = B.blockSize, x = this._iv, n = this._keystream;
|
|
3345
3344
|
x && (n = this._keystream = x.slice(0), this._iv = void 0), B.encryptBlock(n, 0);
|
|
3346
3345
|
for (var E = 0; E < C; E++)
|
|
3347
|
-
v[
|
|
3346
|
+
v[_ + E] ^= n[E];
|
|
3348
3347
|
}
|
|
3349
3348
|
});
|
|
3350
3349
|
return e.Decryptor = c, e;
|
|
@@ -3354,7 +3353,7 @@ function dx() {
|
|
|
3354
3353
|
}
|
|
3355
3354
|
var V0 = { exports: {} }, lx = V0.exports, ue;
|
|
3356
3355
|
function hx() {
|
|
3357
|
-
return ue || (ue = 1, (function(r,
|
|
3356
|
+
return ue || (ue = 1, (function(r, h) {
|
|
3358
3357
|
(function(t, e, c) {
|
|
3359
3358
|
r.exports = e(M(), X());
|
|
3360
3359
|
})(lx, function(t) {
|
|
@@ -3375,13 +3374,13 @@ function hx() {
|
|
|
3375
3374
|
}
|
|
3376
3375
|
var J0 = { exports: {} }, vx = J0.exports, de;
|
|
3377
3376
|
function px() {
|
|
3378
|
-
return de || (de = 1, (function(r,
|
|
3377
|
+
return de || (de = 1, (function(r, h) {
|
|
3379
3378
|
(function(t, e, c) {
|
|
3380
3379
|
r.exports = e(M(), X());
|
|
3381
3380
|
})(vx, function(t) {
|
|
3382
3381
|
return t.pad.AnsiX923 = {
|
|
3383
3382
|
pad: function(e, c) {
|
|
3384
|
-
var v = e.sigBytes,
|
|
3383
|
+
var v = e.sigBytes, _ = c * 4, B = _ - v % _, C = v + B - 1;
|
|
3385
3384
|
e.clamp(), e.words[C >>> 2] |= B << 24 - C % 4 * 8, e.sigBytes += B;
|
|
3386
3385
|
},
|
|
3387
3386
|
unpad: function(e) {
|
|
@@ -3394,14 +3393,14 @@ function px() {
|
|
|
3394
3393
|
}
|
|
3395
3394
|
var rr = { exports: {} }, Bx = rr.exports, le;
|
|
3396
3395
|
function Cx() {
|
|
3397
|
-
return le || (le = 1, (function(r,
|
|
3396
|
+
return le || (le = 1, (function(r, h) {
|
|
3398
3397
|
(function(t, e, c) {
|
|
3399
3398
|
r.exports = e(M(), X());
|
|
3400
3399
|
})(Bx, function(t) {
|
|
3401
3400
|
return t.pad.Iso10126 = {
|
|
3402
3401
|
pad: function(e, c) {
|
|
3403
|
-
var v = c * 4,
|
|
3404
|
-
e.concat(t.lib.WordArray.random(
|
|
3402
|
+
var v = c * 4, _ = v - e.sigBytes % v;
|
|
3403
|
+
e.concat(t.lib.WordArray.random(_ - 1)).concat(t.lib.WordArray.create([_ << 24], 1));
|
|
3405
3404
|
},
|
|
3406
3405
|
unpad: function(e) {
|
|
3407
3406
|
var c = e.words[e.sigBytes - 1 >>> 2] & 255;
|
|
@@ -3413,7 +3412,7 @@ function Cx() {
|
|
|
3413
3412
|
}
|
|
3414
3413
|
var er = { exports: {} }, Ex = er.exports, he;
|
|
3415
3414
|
function Ax() {
|
|
3416
|
-
return he || (he = 1, (function(r,
|
|
3415
|
+
return he || (he = 1, (function(r, h) {
|
|
3417
3416
|
(function(t, e, c) {
|
|
3418
3417
|
r.exports = e(M(), X());
|
|
3419
3418
|
})(Ex, function(t) {
|
|
@@ -3430,7 +3429,7 @@ function Ax() {
|
|
|
3430
3429
|
}
|
|
3431
3430
|
var tr = { exports: {} }, Fx = tr.exports, ve;
|
|
3432
3431
|
function gx() {
|
|
3433
|
-
return ve || (ve = 1, (function(r,
|
|
3432
|
+
return ve || (ve = 1, (function(r, h) {
|
|
3434
3433
|
(function(t, e, c) {
|
|
3435
3434
|
r.exports = e(M(), X());
|
|
3436
3435
|
})(Fx, function(t) {
|
|
@@ -3452,7 +3451,7 @@ function gx() {
|
|
|
3452
3451
|
}
|
|
3453
3452
|
var xr = { exports: {} }, Dx = xr.exports, pe;
|
|
3454
3453
|
function bx() {
|
|
3455
|
-
return pe || (pe = 1, (function(r,
|
|
3454
|
+
return pe || (pe = 1, (function(r, h) {
|
|
3456
3455
|
(function(t, e, c) {
|
|
3457
3456
|
r.exports = e(M(), X());
|
|
3458
3457
|
})(Dx, function(t) {
|
|
@@ -3467,12 +3466,12 @@ function bx() {
|
|
|
3467
3466
|
}
|
|
3468
3467
|
var nr = { exports: {} }, mx = nr.exports, Be;
|
|
3469
3468
|
function _x() {
|
|
3470
|
-
return Be || (Be = 1, (function(r,
|
|
3469
|
+
return Be || (Be = 1, (function(r, h) {
|
|
3471
3470
|
(function(t, e, c) {
|
|
3472
3471
|
r.exports = e(M(), X());
|
|
3473
3472
|
})(mx, function(t) {
|
|
3474
3473
|
return (function(e) {
|
|
3475
|
-
var c = t, v = c.lib,
|
|
3474
|
+
var c = t, v = c.lib, _ = v.CipherParams, B = c.enc, C = B.Hex, x = c.format;
|
|
3476
3475
|
x.Hex = {
|
|
3477
3476
|
/**
|
|
3478
3477
|
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
@@ -3505,7 +3504,7 @@ function _x() {
|
|
|
3505
3504
|
*/
|
|
3506
3505
|
parse: function(n) {
|
|
3507
3506
|
var E = C.parse(n);
|
|
3508
|
-
return
|
|
3507
|
+
return _.create({ ciphertext: E });
|
|
3509
3508
|
}
|
|
3510
3509
|
};
|
|
3511
3510
|
})(), t.format.Hex;
|
|
@@ -3514,56 +3513,56 @@ function _x() {
|
|
|
3514
3513
|
}
|
|
3515
3514
|
var ar = { exports: {} }, yx = ar.exports, Ce;
|
|
3516
3515
|
function wx() {
|
|
3517
|
-
return Ce || (Ce = 1, (function(r,
|
|
3516
|
+
return Ce || (Ce = 1, (function(r, h) {
|
|
3518
3517
|
(function(t, e, c) {
|
|
3519
3518
|
r.exports = e(M(), c0(), f0(), o0(), X());
|
|
3520
3519
|
})(yx, function(t) {
|
|
3521
3520
|
return (function() {
|
|
3522
|
-
var e = t, c = e.lib, v = c.BlockCipher,
|
|
3521
|
+
var e = t, c = e.lib, v = c.BlockCipher, _ = e.algo, B = [], C = [], x = [], n = [], E = [], a = [], s = [], u = [], p = [], l = [];
|
|
3523
3522
|
(function() {
|
|
3524
|
-
for (var o = [],
|
|
3525
|
-
|
|
3526
|
-
for (var b = 0, g = 0,
|
|
3527
|
-
var
|
|
3528
|
-
|
|
3529
|
-
var k = o[b],
|
|
3523
|
+
for (var o = [], d = 0; d < 256; d++)
|
|
3524
|
+
d < 128 ? o[d] = d << 1 : o[d] = d << 1 ^ 283;
|
|
3525
|
+
for (var b = 0, g = 0, d = 0; d < 256; d++) {
|
|
3526
|
+
var y = g ^ g << 1 ^ g << 2 ^ g << 3 ^ g << 4;
|
|
3527
|
+
y = y >>> 8 ^ y & 255 ^ 99, B[b] = y, C[y] = b;
|
|
3528
|
+
var k = o[b], R = o[k], F = o[R], w = o[y] * 257 ^ y * 16843008;
|
|
3530
3529
|
x[b] = w << 24 | w >>> 8, n[b] = w << 16 | w >>> 16, E[b] = w << 8 | w >>> 24, a[b] = w;
|
|
3531
|
-
var w = F * 16843009 ^
|
|
3532
|
-
s[
|
|
3530
|
+
var w = F * 16843009 ^ R * 65537 ^ k * 257 ^ b * 16843008;
|
|
3531
|
+
s[y] = w << 24 | w >>> 8, u[y] = w << 16 | w >>> 16, p[y] = w << 8 | w >>> 24, l[y] = w, b ? (b = k ^ o[o[o[F ^ k]]], g ^= o[o[g]]) : b = g = 1;
|
|
3533
3532
|
}
|
|
3534
3533
|
})();
|
|
3535
|
-
var D = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], i =
|
|
3534
|
+
var D = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], i = _.AES = v.extend({
|
|
3536
3535
|
_doReset: function() {
|
|
3537
3536
|
var o;
|
|
3538
3537
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
3539
|
-
for (var
|
|
3540
|
-
F < g ?
|
|
3538
|
+
for (var d = this._keyPriorReset = this._key, b = d.words, g = d.sigBytes / 4, y = this._nRounds = g + 6, k = (y + 1) * 4, R = this._keySchedule = [], F = 0; F < k; F++)
|
|
3539
|
+
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);
|
|
3541
3540
|
for (var w = this._invKeySchedule = [], H = 0; H < k; H++) {
|
|
3542
3541
|
var F = k - H;
|
|
3543
3542
|
if (H % 4)
|
|
3544
|
-
var o =
|
|
3543
|
+
var o = R[F];
|
|
3545
3544
|
else
|
|
3546
|
-
var o =
|
|
3547
|
-
H < 4 || F <= 4 ? w[H] = o : w[H] = s[B[o >>> 24]] ^ u[B[o >>> 16 & 255]] ^ p[B[o >>> 8 & 255]] ^
|
|
3545
|
+
var o = R[F - 4];
|
|
3546
|
+
H < 4 || F <= 4 ? w[H] = o : w[H] = s[B[o >>> 24]] ^ u[B[o >>> 16 & 255]] ^ p[B[o >>> 8 & 255]] ^ l[B[o & 255]];
|
|
3548
3547
|
}
|
|
3549
3548
|
}
|
|
3550
3549
|
},
|
|
3551
|
-
encryptBlock: function(o,
|
|
3552
|
-
this._doCryptBlock(o,
|
|
3550
|
+
encryptBlock: function(o, d) {
|
|
3551
|
+
this._doCryptBlock(o, d, this._keySchedule, x, n, E, a, B);
|
|
3553
3552
|
},
|
|
3554
|
-
decryptBlock: function(o,
|
|
3555
|
-
var b = o[
|
|
3556
|
-
o[
|
|
3557
|
-
var b = o[
|
|
3558
|
-
o[
|
|
3553
|
+
decryptBlock: function(o, d) {
|
|
3554
|
+
var b = o[d + 1];
|
|
3555
|
+
o[d + 1] = o[d + 3], o[d + 3] = b, this._doCryptBlock(o, d, this._invKeySchedule, s, u, p, l, C);
|
|
3556
|
+
var b = o[d + 1];
|
|
3557
|
+
o[d + 1] = o[d + 3], o[d + 3] = b;
|
|
3559
3558
|
},
|
|
3560
|
-
_doCryptBlock: function(o,
|
|
3561
|
-
for (var w = this._nRounds, H = o[
|
|
3562
|
-
var T = g[H >>> 24] ^
|
|
3563
|
-
H = T,
|
|
3559
|
+
_doCryptBlock: function(o, d, b, g, y, k, R, F) {
|
|
3560
|
+
for (var w = this._nRounds, H = o[d] ^ b[0], $ = o[d + 1] ^ b[1], z = o[d + 2] ^ b[2], O = o[d + 3] ^ b[3], q = 4, U = 1; U < w; U++) {
|
|
3561
|
+
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++];
|
|
3562
|
+
H = T, $ = N, z = j, O = S;
|
|
3564
3563
|
}
|
|
3565
|
-
var T = (F[H >>> 24] << 24 | F[
|
|
3566
|
-
o[
|
|
3564
|
+
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++];
|
|
3565
|
+
o[d] = T, o[d + 1] = N, o[d + 2] = j, o[d + 3] = S;
|
|
3567
3566
|
},
|
|
3568
3567
|
keySize: 256 / 32
|
|
3569
3568
|
});
|
|
@@ -3574,12 +3573,12 @@ function wx() {
|
|
|
3574
3573
|
}
|
|
3575
3574
|
var or = { exports: {} }, kx = or.exports, Ee;
|
|
3576
3575
|
function Sx() {
|
|
3577
|
-
return Ee || (Ee = 1, (function(r,
|
|
3576
|
+
return Ee || (Ee = 1, (function(r, h) {
|
|
3578
3577
|
(function(t, e, c) {
|
|
3579
3578
|
r.exports = e(M(), c0(), f0(), o0(), X());
|
|
3580
3579
|
})(kx, function(t) {
|
|
3581
3580
|
return (function() {
|
|
3582
|
-
var e = t, c = e.lib, v = c.WordArray,
|
|
3581
|
+
var e = t, c = e.lib, v = c.WordArray, _ = c.BlockCipher, B = e.algo, C = [
|
|
3583
3582
|
57,
|
|
3584
3583
|
49,
|
|
3585
3584
|
41,
|
|
@@ -4223,22 +4222,22 @@ function Sx() {
|
|
|
4223
4222
|
8064,
|
|
4224
4223
|
504,
|
|
4225
4224
|
2147483679
|
|
4226
|
-
], s = B.DES =
|
|
4225
|
+
], s = B.DES = _.extend({
|
|
4227
4226
|
_doReset: function() {
|
|
4228
|
-
for (var D = this._key, i = D.words, o = [],
|
|
4229
|
-
var b = C[
|
|
4230
|
-
o[
|
|
4227
|
+
for (var D = this._key, i = D.words, o = [], d = 0; d < 56; d++) {
|
|
4228
|
+
var b = C[d] - 1;
|
|
4229
|
+
o[d] = i[b >>> 5] >>> 31 - b % 32 & 1;
|
|
4231
4230
|
}
|
|
4232
|
-
for (var g = this._subKeys = [],
|
|
4233
|
-
for (var k = g[
|
|
4234
|
-
k[
|
|
4231
|
+
for (var g = this._subKeys = [], y = 0; y < 16; y++) {
|
|
4232
|
+
for (var k = g[y] = [], R = n[y], d = 0; d < 24; d++)
|
|
4233
|
+
k[d / 6 | 0] |= o[(x[d] - 1 + R) % 28] << 31 - d % 6, k[4 + (d / 6 | 0)] |= o[28 + (x[d + 24] - 1 + R) % 28] << 31 - d % 6;
|
|
4235
4234
|
k[0] = k[0] << 1 | k[0] >>> 31;
|
|
4236
|
-
for (var
|
|
4237
|
-
k[
|
|
4235
|
+
for (var d = 1; d < 7; d++)
|
|
4236
|
+
k[d] = k[d] >>> (d - 1) * 4 + 3;
|
|
4238
4237
|
k[7] = k[7] << 5 | k[7] >>> 27;
|
|
4239
4238
|
}
|
|
4240
|
-
for (var F = this._invSubKeys = [],
|
|
4241
|
-
F[
|
|
4239
|
+
for (var F = this._invSubKeys = [], d = 0; d < 16; d++)
|
|
4240
|
+
F[d] = g[15 - d];
|
|
4242
4241
|
},
|
|
4243
4242
|
encryptBlock: function(D, i) {
|
|
4244
4243
|
this._doCryptBlock(D, i, this._subKeys);
|
|
@@ -4248,10 +4247,10 @@ function Sx() {
|
|
|
4248
4247
|
},
|
|
4249
4248
|
_doCryptBlock: function(D, i, o) {
|
|
4250
4249
|
this._lBlock = D[i], this._rBlock = D[i + 1], u.call(this, 4, 252645135), u.call(this, 16, 65535), p.call(this, 2, 858993459), p.call(this, 8, 16711935), u.call(this, 1, 1431655765);
|
|
4251
|
-
for (var
|
|
4252
|
-
for (var b = o[
|
|
4253
|
-
k |= E[
|
|
4254
|
-
this._lBlock =
|
|
4250
|
+
for (var d = 0; d < 16; d++) {
|
|
4251
|
+
for (var b = o[d], g = this._lBlock, y = this._rBlock, k = 0, R = 0; R < 8; R++)
|
|
4252
|
+
k |= E[R][((y ^ b[R]) & a[R]) >>> 0];
|
|
4253
|
+
this._lBlock = y, this._rBlock = g ^ k;
|
|
4255
4254
|
}
|
|
4256
4255
|
var F = this._lBlock;
|
|
4257
4256
|
this._lBlock = this._rBlock, this._rBlock = F, u.call(this, 1, 1431655765), p.call(this, 8, 16711935), p.call(this, 2, 858993459), u.call(this, 16, 65535), u.call(this, 4, 252645135), D[i] = this._lBlock, D[i + 1] = this._rBlock;
|
|
@@ -4268,14 +4267,14 @@ function Sx() {
|
|
|
4268
4267
|
var o = (this._rBlock >>> D ^ this._lBlock) & i;
|
|
4269
4268
|
this._lBlock ^= o, this._rBlock ^= o << D;
|
|
4270
4269
|
}
|
|
4271
|
-
e.DES =
|
|
4272
|
-
var
|
|
4270
|
+
e.DES = _._createHelper(s);
|
|
4271
|
+
var l = B.TripleDES = _.extend({
|
|
4273
4272
|
_doReset: function() {
|
|
4274
4273
|
var D = this._key, i = D.words;
|
|
4275
4274
|
if (i.length !== 2 && i.length !== 4 && i.length < 6)
|
|
4276
4275
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
4277
|
-
var o = i.slice(0, 2),
|
|
4278
|
-
this._des1 = s.createEncryptor(v.create(o)), this._des2 = s.createEncryptor(v.create(
|
|
4276
|
+
var o = i.slice(0, 2), d = i.length < 4 ? i.slice(0, 2) : i.slice(2, 4), b = i.length < 6 ? i.slice(0, 2) : i.slice(4, 6);
|
|
4277
|
+
this._des1 = s.createEncryptor(v.create(o)), this._des2 = s.createEncryptor(v.create(d)), this._des3 = s.createEncryptor(v.create(b));
|
|
4279
4278
|
},
|
|
4280
4279
|
encryptBlock: function(D, i) {
|
|
4281
4280
|
this._des1.encryptBlock(D, i), this._des2.decryptBlock(D, i), this._des3.encryptBlock(D, i);
|
|
@@ -4287,24 +4286,24 @@ function Sx() {
|
|
|
4287
4286
|
ivSize: 64 / 32,
|
|
4288
4287
|
blockSize: 64 / 32
|
|
4289
4288
|
});
|
|
4290
|
-
e.TripleDES =
|
|
4289
|
+
e.TripleDES = _._createHelper(l);
|
|
4291
4290
|
})(), t.TripleDES;
|
|
4292
4291
|
});
|
|
4293
4292
|
})(or)), or.exports;
|
|
4294
4293
|
}
|
|
4295
4294
|
var ir = { exports: {} }, Hx = ir.exports, Ae;
|
|
4296
|
-
function
|
|
4297
|
-
return Ae || (Ae = 1, (function(r,
|
|
4295
|
+
function $x() {
|
|
4296
|
+
return Ae || (Ae = 1, (function(r, h) {
|
|
4298
4297
|
(function(t, e, c) {
|
|
4299
4298
|
r.exports = e(M(), c0(), f0(), o0(), X());
|
|
4300
4299
|
})(Hx, function(t) {
|
|
4301
4300
|
return (function() {
|
|
4302
|
-
var e = t, c = e.lib, v = c.StreamCipher,
|
|
4301
|
+
var e = t, c = e.lib, v = c.StreamCipher, _ = e.algo, B = _.RC4 = v.extend({
|
|
4303
4302
|
_doReset: function() {
|
|
4304
4303
|
for (var n = this._key, E = n.words, a = n.sigBytes, s = this._S = [], u = 0; u < 256; u++)
|
|
4305
4304
|
s[u] = u;
|
|
4306
4305
|
for (var u = 0, p = 0; u < 256; u++) {
|
|
4307
|
-
var
|
|
4306
|
+
var l = u % a, D = E[l >>> 2] >>> 24 - l % 4 * 8 & 255;
|
|
4308
4307
|
p = (p + s[u] + D) % 256;
|
|
4309
4308
|
var i = s[u];
|
|
4310
4309
|
s[u] = s[p], s[p] = i;
|
|
@@ -4326,7 +4325,7 @@ function Rx() {
|
|
|
4326
4325
|
return this._i = E, this._j = a, s;
|
|
4327
4326
|
}
|
|
4328
4327
|
e.RC4 = v._createHelper(B);
|
|
4329
|
-
var x =
|
|
4328
|
+
var x = _.RC4Drop = B.extend({
|
|
4330
4329
|
/**
|
|
4331
4330
|
* Configuration options.
|
|
4332
4331
|
*
|
|
@@ -4346,14 +4345,14 @@ function Rx() {
|
|
|
4346
4345
|
});
|
|
4347
4346
|
})(ir)), ir.exports;
|
|
4348
4347
|
}
|
|
4349
|
-
var sr = { exports: {} },
|
|
4348
|
+
var sr = { exports: {} }, Rx = sr.exports, Fe;
|
|
4350
4349
|
function Px() {
|
|
4351
|
-
return Fe || (Fe = 1, (function(r,
|
|
4350
|
+
return Fe || (Fe = 1, (function(r, h) {
|
|
4352
4351
|
(function(t, e, c) {
|
|
4353
4352
|
r.exports = e(M(), c0(), f0(), o0(), X());
|
|
4354
|
-
})(
|
|
4353
|
+
})(Rx, function(t) {
|
|
4355
4354
|
return (function() {
|
|
4356
|
-
var e = t, c = e.lib, v = c.StreamCipher,
|
|
4355
|
+
var e = t, c = e.lib, v = c.StreamCipher, _ = e.algo, B = [], C = [], x = [], n = _.Rabbit = v.extend({
|
|
4357
4356
|
_doReset: function() {
|
|
4358
4357
|
for (var a = this._key.words, s = this.cfg.iv, u = 0; u < 4; u++)
|
|
4359
4358
|
a[u] = (a[u] << 8 | a[u] >>> 24) & 16711935 | (a[u] << 24 | a[u] >>> 8) & 4278255360;
|
|
@@ -4366,7 +4365,7 @@ function Px() {
|
|
|
4366
4365
|
a[1] << 16 | a[0] >>> 16,
|
|
4367
4366
|
a[3],
|
|
4368
4367
|
a[2] << 16 | a[1] >>> 16
|
|
4369
|
-
],
|
|
4368
|
+
], l = this._C = [
|
|
4370
4369
|
a[2] << 16 | a[2] >>> 16,
|
|
4371
4370
|
a[0] & 4294901760 | a[1] & 65535,
|
|
4372
4371
|
a[3] << 16 | a[3] >>> 16,
|
|
@@ -4380,10 +4379,10 @@ function Px() {
|
|
|
4380
4379
|
for (var u = 0; u < 4; u++)
|
|
4381
4380
|
E.call(this);
|
|
4382
4381
|
for (var u = 0; u < 8; u++)
|
|
4383
|
-
|
|
4382
|
+
l[u] ^= p[u + 4 & 7];
|
|
4384
4383
|
if (s) {
|
|
4385
|
-
var D = s.words, i = D[0], o = D[1],
|
|
4386
|
-
|
|
4384
|
+
var D = s.words, i = D[0], o = D[1], d = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, b = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, g = d >>> 16 | b & 4294901760, y = b << 16 | d & 65535;
|
|
4385
|
+
l[0] ^= d, l[1] ^= g, l[2] ^= b, l[3] ^= y, l[4] ^= d, l[5] ^= g, l[6] ^= b, l[7] ^= y;
|
|
4387
4386
|
for (var u = 0; u < 4; u++)
|
|
4388
4387
|
E.call(this);
|
|
4389
4388
|
}
|
|
@@ -4402,7 +4401,7 @@ function Px() {
|
|
|
4402
4401
|
C[u] = s[u];
|
|
4403
4402
|
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;
|
|
4404
4403
|
for (var u = 0; u < 8; u++) {
|
|
4405
|
-
var p = a[u] + s[u],
|
|
4404
|
+
var p = a[u] + s[u], l = p & 65535, D = p >>> 16, i = ((l * l >>> 17) + l * D >>> 15) + D * D, o = ((p & 4294901760) * p | 0) + ((p & 65535) * p | 0);
|
|
4406
4405
|
x[u] = i ^ o;
|
|
4407
4406
|
}
|
|
4408
4407
|
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;
|
|
@@ -4413,13 +4412,13 @@ function Px() {
|
|
|
4413
4412
|
})(sr)), sr.exports;
|
|
4414
4413
|
}
|
|
4415
4414
|
var cr = { exports: {} }, zx = cr.exports, ge;
|
|
4416
|
-
function
|
|
4417
|
-
return ge || (ge = 1, (function(r,
|
|
4415
|
+
function Ix() {
|
|
4416
|
+
return ge || (ge = 1, (function(r, h) {
|
|
4418
4417
|
(function(t, e, c) {
|
|
4419
4418
|
r.exports = e(M(), c0(), f0(), o0(), X());
|
|
4420
4419
|
})(zx, function(t) {
|
|
4421
4420
|
return (function() {
|
|
4422
|
-
var e = t, c = e.lib, v = c.StreamCipher,
|
|
4421
|
+
var e = t, c = e.lib, v = c.StreamCipher, _ = e.algo, B = [], C = [], x = [], n = _.RabbitLegacy = v.extend({
|
|
4423
4422
|
_doReset: function() {
|
|
4424
4423
|
var a = this._key.words, s = this.cfg.iv, u = this._X = [
|
|
4425
4424
|
a[0],
|
|
@@ -4441,14 +4440,14 @@ function Wx() {
|
|
|
4441
4440
|
a[3] & 4294901760 | a[0] & 65535
|
|
4442
4441
|
];
|
|
4443
4442
|
this._b = 0;
|
|
4444
|
-
for (var
|
|
4443
|
+
for (var l = 0; l < 4; l++)
|
|
4445
4444
|
E.call(this);
|
|
4446
|
-
for (var
|
|
4447
|
-
p[
|
|
4445
|
+
for (var l = 0; l < 8; l++)
|
|
4446
|
+
p[l] ^= u[l + 4 & 7];
|
|
4448
4447
|
if (s) {
|
|
4449
|
-
var D = s.words, i = D[0], o = D[1],
|
|
4450
|
-
p[0] ^=
|
|
4451
|
-
for (var
|
|
4448
|
+
var D = s.words, i = D[0], o = D[1], d = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, b = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, g = d >>> 16 | b & 4294901760, y = b << 16 | d & 65535;
|
|
4449
|
+
p[0] ^= d, p[1] ^= g, p[2] ^= b, p[3] ^= y, p[4] ^= d, p[5] ^= g, p[6] ^= b, p[7] ^= y;
|
|
4450
|
+
for (var l = 0; l < 4; l++)
|
|
4452
4451
|
E.call(this);
|
|
4453
4452
|
}
|
|
4454
4453
|
},
|
|
@@ -4466,7 +4465,7 @@ function Wx() {
|
|
|
4466
4465
|
C[u] = s[u];
|
|
4467
4466
|
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;
|
|
4468
4467
|
for (var u = 0; u < 8; u++) {
|
|
4469
|
-
var p = a[u] + s[u],
|
|
4468
|
+
var p = a[u] + s[u], l = p & 65535, D = p >>> 16, i = ((l * l >>> 17) + l * D >>> 15) + D * D, o = ((p & 4294901760) * p | 0) + ((p & 65535) * p | 0);
|
|
4470
4469
|
x[u] = i ^ o;
|
|
4471
4470
|
}
|
|
4472
4471
|
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;
|
|
@@ -4476,14 +4475,14 @@ function Wx() {
|
|
|
4476
4475
|
});
|
|
4477
4476
|
})(cr)), cr.exports;
|
|
4478
4477
|
}
|
|
4479
|
-
var fr = { exports: {} },
|
|
4478
|
+
var fr = { exports: {} }, Wx = fr.exports, De;
|
|
4480
4479
|
function Lx() {
|
|
4481
|
-
return De || (De = 1, (function(r,
|
|
4480
|
+
return De || (De = 1, (function(r, h) {
|
|
4482
4481
|
(function(t, e, c) {
|
|
4483
4482
|
r.exports = e(M(), c0(), f0(), o0(), X());
|
|
4484
|
-
})(
|
|
4483
|
+
})(Wx, function(t) {
|
|
4485
4484
|
return (function() {
|
|
4486
|
-
var e = t, c = e.lib, v = c.BlockCipher,
|
|
4485
|
+
var e = t, c = e.lib, v = c.BlockCipher, _ = e.algo;
|
|
4487
4486
|
const B = 16, C = [
|
|
4488
4487
|
608135816,
|
|
4489
4488
|
2242054355,
|
|
@@ -5541,53 +5540,53 @@ function Lx() {
|
|
|
5541
5540
|
pbox: [],
|
|
5542
5541
|
sbox: []
|
|
5543
5542
|
};
|
|
5544
|
-
function E(
|
|
5545
|
-
let i = D >> 24 & 255, o = D >> 16 & 255,
|
|
5546
|
-
return g = g ^
|
|
5543
|
+
function E(l, D) {
|
|
5544
|
+
let i = D >> 24 & 255, o = D >> 16 & 255, d = D >> 8 & 255, b = D & 255, g = l.sbox[0][i] + l.sbox[1][o];
|
|
5545
|
+
return g = g ^ l.sbox[2][d], g = g + l.sbox[3][b], g;
|
|
5547
5546
|
}
|
|
5548
|
-
function a(
|
|
5549
|
-
let o = D,
|
|
5547
|
+
function a(l, D, i) {
|
|
5548
|
+
let o = D, d = i, b;
|
|
5550
5549
|
for (let g = 0; g < B; ++g)
|
|
5551
|
-
o = o ^
|
|
5552
|
-
return b = o, o =
|
|
5550
|
+
o = o ^ l.pbox[g], d = E(l, o) ^ d, b = o, o = d, d = b;
|
|
5551
|
+
return b = o, o = d, d = b, d = d ^ l.pbox[B], o = o ^ l.pbox[B + 1], { left: o, right: d };
|
|
5553
5552
|
}
|
|
5554
|
-
function s(
|
|
5555
|
-
let o = D,
|
|
5553
|
+
function s(l, D, i) {
|
|
5554
|
+
let o = D, d = i, b;
|
|
5556
5555
|
for (let g = B + 1; g > 1; --g)
|
|
5557
|
-
o = o ^
|
|
5558
|
-
return b = o, o =
|
|
5556
|
+
o = o ^ l.pbox[g], d = E(l, o) ^ d, b = o, o = d, d = b;
|
|
5557
|
+
return b = o, o = d, d = b, d = d ^ l.pbox[1], o = o ^ l.pbox[0], { left: o, right: d };
|
|
5559
5558
|
}
|
|
5560
|
-
function u(
|
|
5561
|
-
for (let
|
|
5562
|
-
|
|
5559
|
+
function u(l, D, i) {
|
|
5560
|
+
for (let y = 0; y < 4; y++) {
|
|
5561
|
+
l.sbox[y] = [];
|
|
5563
5562
|
for (let k = 0; k < 256; k++)
|
|
5564
|
-
|
|
5563
|
+
l.sbox[y][k] = x[y][k];
|
|
5565
5564
|
}
|
|
5566
5565
|
let o = 0;
|
|
5567
|
-
for (let
|
|
5568
|
-
|
|
5569
|
-
let
|
|
5570
|
-
for (let
|
|
5571
|
-
g = a(
|
|
5572
|
-
for (let
|
|
5566
|
+
for (let y = 0; y < B + 2; y++)
|
|
5567
|
+
l.pbox[y] = C[y] ^ D[o], o++, o >= i && (o = 0);
|
|
5568
|
+
let d = 0, b = 0, g = 0;
|
|
5569
|
+
for (let y = 0; y < B + 2; y += 2)
|
|
5570
|
+
g = a(l, d, b), d = g.left, b = g.right, l.pbox[y] = d, l.pbox[y + 1] = b;
|
|
5571
|
+
for (let y = 0; y < 4; y++)
|
|
5573
5572
|
for (let k = 0; k < 256; k += 2)
|
|
5574
|
-
g = a(
|
|
5573
|
+
g = a(l, d, b), d = g.left, b = g.right, l.sbox[y][k] = d, l.sbox[y][k + 1] = b;
|
|
5575
5574
|
return !0;
|
|
5576
5575
|
}
|
|
5577
|
-
var p =
|
|
5576
|
+
var p = _.Blowfish = v.extend({
|
|
5578
5577
|
_doReset: function() {
|
|
5579
5578
|
if (this._keyPriorReset !== this._key) {
|
|
5580
|
-
var
|
|
5579
|
+
var l = this._keyPriorReset = this._key, D = l.words, i = l.sigBytes / 4;
|
|
5581
5580
|
u(n, D, i);
|
|
5582
5581
|
}
|
|
5583
5582
|
},
|
|
5584
|
-
encryptBlock: function(
|
|
5585
|
-
var i = a(n,
|
|
5586
|
-
|
|
5583
|
+
encryptBlock: function(l, D) {
|
|
5584
|
+
var i = a(n, l[D], l[D + 1]);
|
|
5585
|
+
l[D] = i.left, l[D + 1] = i.right;
|
|
5587
5586
|
},
|
|
5588
|
-
decryptBlock: function(
|
|
5589
|
-
var i = s(n,
|
|
5590
|
-
|
|
5587
|
+
decryptBlock: function(l, D) {
|
|
5588
|
+
var i = s(n, l[D], l[D + 1]);
|
|
5589
|
+
l[D] = i.left, l[D + 1] = i.right;
|
|
5591
5590
|
},
|
|
5592
5591
|
blockSize: 64 / 32,
|
|
5593
5592
|
keySize: 128 / 32,
|
|
@@ -5600,34 +5599,34 @@ function Lx() {
|
|
|
5600
5599
|
}
|
|
5601
5600
|
var Ox = k0.exports, be;
|
|
5602
5601
|
function qx() {
|
|
5603
|
-
return be || (be = 1, (function(r,
|
|
5602
|
+
return be || (be = 1, (function(r, h) {
|
|
5604
5603
|
(function(t, e, c) {
|
|
5605
|
-
r.exports = e(M(), vr(),
|
|
5604
|
+
r.exports = e(M(), vr(), It(), Lt(), c0(), Tt(), f0(), Pe(), mr(), Gt(), ze(), Yt(), Qt(), Jt(), _r(), tx(), o0(), X(), ox(), sx(), fx(), dx(), hx(), px(), Cx(), Ax(), gx(), bx(), _x(), wx(), Sx(), $x(), Px(), Ix(), Lx());
|
|
5606
5605
|
})(Ox, function(t) {
|
|
5607
5606
|
return t;
|
|
5608
5607
|
});
|
|
5609
5608
|
})(k0)), k0.exports;
|
|
5610
5609
|
}
|
|
5611
5610
|
qx();
|
|
5612
|
-
let
|
|
5611
|
+
let Ie = null, We = null, Le = null, Oe = null;
|
|
5613
5612
|
Math.random().toString(36).substring(7);
|
|
5614
5613
|
function Tx(r) {
|
|
5615
|
-
|
|
5614
|
+
Ie = r.token, We = r.apiUrl, Le = r.deviceId, Oe = r.domain;
|
|
5616
5615
|
}
|
|
5617
5616
|
function Mx() {
|
|
5618
5617
|
return {
|
|
5619
|
-
token:
|
|
5620
|
-
apiUrl:
|
|
5618
|
+
token: Ie,
|
|
5619
|
+
apiUrl: We,
|
|
5621
5620
|
deviceId: Le,
|
|
5622
5621
|
domain: Oe
|
|
5623
5622
|
};
|
|
5624
5623
|
}
|
|
5625
5624
|
function Nx(r) {
|
|
5626
|
-
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.
|
|
5625
|
+
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.172`;
|
|
5627
5626
|
}
|
|
5628
|
-
function Ux(r,
|
|
5627
|
+
function Ux(r, h) {
|
|
5629
5628
|
const t = Nx(r);
|
|
5630
|
-
return new Worker(t, { type: "module", ...
|
|
5629
|
+
return new Worker(t, { type: "module", ...h });
|
|
5631
5630
|
}
|
|
5632
5631
|
const yr = () => {
|
|
5633
5632
|
try {
|
|
@@ -5642,19 +5641,19 @@ const yr = () => {
|
|
|
5642
5641
|
}, _e = /* @__PURE__ */ new Map(), gr = /* @__PURE__ */ new Map();
|
|
5643
5642
|
let jx = 0;
|
|
5644
5643
|
function Gx(r) {
|
|
5645
|
-
const
|
|
5646
|
-
if (
|
|
5644
|
+
const h = _e.get(r);
|
|
5645
|
+
if (h) return h;
|
|
5647
5646
|
const t = Ux("./deform.worker.ts");
|
|
5648
5647
|
try {
|
|
5649
5648
|
t.postMessage({ type: "SET_DEBUG", debugRender: yr() });
|
|
5650
5649
|
} catch {
|
|
5651
5650
|
}
|
|
5652
5651
|
t.onmessage = (c) => {
|
|
5653
|
-
const { id: v, imageBitmap:
|
|
5652
|
+
const { id: v, imageBitmap: _, error: B, duration: C } = c.data ?? {}, x = C ? ` worker耗时=${Math.round(C)}ms` : "";
|
|
5654
5653
|
_0(`[renderService] deform worker 响应 id=${v}${x}`, {
|
|
5655
|
-
hasImageBitmap: !!
|
|
5656
|
-
width:
|
|
5657
|
-
height:
|
|
5654
|
+
hasImageBitmap: !!_,
|
|
5655
|
+
width: _?.width,
|
|
5656
|
+
height: _?.height,
|
|
5658
5657
|
error: B
|
|
5659
5658
|
});
|
|
5660
5659
|
const n = gr.get(v);
|
|
@@ -5663,7 +5662,7 @@ function Gx(r) {
|
|
|
5663
5662
|
n.reject(new Error(B));
|
|
5664
5663
|
return;
|
|
5665
5664
|
}
|
|
5666
|
-
n.resolve(
|
|
5665
|
+
n.resolve(_);
|
|
5667
5666
|
}
|
|
5668
5667
|
}, t.onerror = (c) => {
|
|
5669
5668
|
};
|
|
@@ -5694,10 +5693,10 @@ function Kx(r) {
|
|
|
5694
5693
|
type: r.type,
|
|
5695
5694
|
blendMode: r.blendMode,
|
|
5696
5695
|
transform: Array.isArray(r.transform) ? [...r.transform] : [],
|
|
5697
|
-
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((
|
|
5698
|
-
x:
|
|
5699
|
-
y:
|
|
5700
|
-
type:
|
|
5696
|
+
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((h) => ({
|
|
5697
|
+
x: h.x,
|
|
5698
|
+
y: h.y,
|
|
5699
|
+
type: h.type
|
|
5701
5700
|
})) : [],
|
|
5702
5701
|
bounds: r.bounds ? {
|
|
5703
5702
|
width: r.bounds.width,
|
|
@@ -5720,30 +5719,30 @@ function Kx(r) {
|
|
|
5720
5719
|
layerOrder: r.layerOrder,
|
|
5721
5720
|
imagePath: r.imagePath,
|
|
5722
5721
|
vectorMask: r.vectorMask ? {
|
|
5723
|
-
paths: r.vectorMask.paths?.map((
|
|
5724
|
-
open:
|
|
5725
|
-
knots:
|
|
5722
|
+
paths: r.vectorMask.paths?.map((h) => ({
|
|
5723
|
+
open: h.open,
|
|
5724
|
+
knots: h.knots?.map((t) => ({
|
|
5726
5725
|
linked: t.linked,
|
|
5727
5726
|
points: [...t.points]
|
|
5728
5727
|
})),
|
|
5729
|
-
fillRule:
|
|
5730
|
-
operation:
|
|
5728
|
+
fillRule: h.fillRule,
|
|
5729
|
+
operation: h.operation
|
|
5731
5730
|
})),
|
|
5732
|
-
points: r.vectorMask.points?.map((
|
|
5733
|
-
x:
|
|
5734
|
-
y:
|
|
5735
|
-
type:
|
|
5731
|
+
points: r.vectorMask.points?.map((h) => ({
|
|
5732
|
+
x: h.x,
|
|
5733
|
+
y: h.y,
|
|
5734
|
+
type: h.type
|
|
5736
5735
|
})),
|
|
5737
5736
|
invert: r.vectorMask.invert,
|
|
5738
5737
|
notLink: r.vectorMask.notLink,
|
|
5739
5738
|
disable: r.vectorMask.disable,
|
|
5740
5739
|
fillStartsWithAllPixels: r.vectorMask.fillStartsWithAllPixels
|
|
5741
5740
|
} : void 0,
|
|
5742
|
-
filterList: r.filterList ? r.filterList.map((
|
|
5743
|
-
type:
|
|
5744
|
-
enabled:
|
|
5745
|
-
filter:
|
|
5746
|
-
puppetShapeList:
|
|
5741
|
+
filterList: r.filterList ? r.filterList.map((h) => ({
|
|
5742
|
+
type: h.type,
|
|
5743
|
+
enabled: h.enabled,
|
|
5744
|
+
filter: h.filter ? {
|
|
5745
|
+
puppetShapeList: h.filter.puppetShapeList?.map((t) => ({
|
|
5747
5746
|
originalVertexArray: t.originalVertexArray.map((e) => ({
|
|
5748
5747
|
x: e.x,
|
|
5749
5748
|
y: e.y
|
|
@@ -5760,33 +5759,33 @@ function Kx(r) {
|
|
|
5760
5759
|
clipping: r.clipping
|
|
5761
5760
|
};
|
|
5762
5761
|
}
|
|
5763
|
-
function Xx(r,
|
|
5762
|
+
function Xx(r, h, t, e) {
|
|
5764
5763
|
const c = ++jx, v = Gx(t);
|
|
5765
|
-
return performance.now(), (/* @__PURE__ */ new Date()).toISOString(), new Promise((
|
|
5764
|
+
return performance.now(), (/* @__PURE__ */ new Date()).toISOString(), new Promise((_, B) => {
|
|
5766
5765
|
gr.set(c, {
|
|
5767
5766
|
resolve: (x) => {
|
|
5768
|
-
performance.now(), (/* @__PURE__ */ new Date()).toISOString(),
|
|
5767
|
+
performance.now(), (/* @__PURE__ */ new Date()).toISOString(), _(x);
|
|
5769
5768
|
},
|
|
5770
5769
|
reject: B
|
|
5771
5770
|
});
|
|
5772
|
-
const C = Kx(
|
|
5771
|
+
const C = Kx(h);
|
|
5773
5772
|
v.postMessage({ id: c, designBitmap: r, layerData: C, canvasSize: e }, [
|
|
5774
5773
|
r
|
|
5775
5774
|
]);
|
|
5776
5775
|
});
|
|
5777
5776
|
}
|
|
5778
|
-
async function Yx(r,
|
|
5779
|
-
const
|
|
5780
|
-
if (!
|
|
5777
|
+
async function Yx(r, h, t = 0, e, c, v) {
|
|
5778
|
+
const _ = await _t(r, c, v);
|
|
5779
|
+
if (!_ || _.width === 0 || _.height === 0)
|
|
5781
5780
|
throw new Error("图片无效:尺寸为 0");
|
|
5782
|
-
return await Xx(
|
|
5781
|
+
return await Xx(_, h, t, e);
|
|
5783
5782
|
}
|
|
5784
|
-
function h0(r,
|
|
5783
|
+
function h0(r, h) {
|
|
5785
5784
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
5786
|
-
return new OffscreenCanvas(r,
|
|
5785
|
+
return new OffscreenCanvas(r, h);
|
|
5787
5786
|
if (typeof document < "u") {
|
|
5788
5787
|
const t = document.createElement("canvas");
|
|
5789
|
-
return t.width = r, t.height =
|
|
5788
|
+
return t.width = r, t.height = h, t;
|
|
5790
5789
|
} else
|
|
5791
5790
|
throw new Error("无法创建 canvas:不在 Worker 或主线程环境中");
|
|
5792
5791
|
}
|
|
@@ -5794,13 +5793,13 @@ function g0(r) {
|
|
|
5794
5793
|
return r.getContext("2d");
|
|
5795
5794
|
}
|
|
5796
5795
|
function ye(r) {
|
|
5797
|
-
const
|
|
5798
|
-
if (!
|
|
5796
|
+
const h = g0(r);
|
|
5797
|
+
if (!h)
|
|
5799
5798
|
throw new Error("无法创建 canvas context");
|
|
5800
|
-
return
|
|
5799
|
+
return h;
|
|
5801
5800
|
}
|
|
5802
5801
|
async function Zx(r) {
|
|
5803
|
-
const
|
|
5802
|
+
const h = performance.now(), t = () => {
|
|
5804
5803
|
try {
|
|
5805
5804
|
if (globalThis.__DEBUG_RENDER__ === !0 || typeof localStorage < "u" && localStorage.getItem("DEBUG_RENDER") === "1") return !0;
|
|
5806
5805
|
} catch {
|
|
@@ -5812,7 +5811,7 @@ async function Zx(r) {
|
|
|
5812
5811
|
t();
|
|
5813
5812
|
}, {
|
|
5814
5813
|
psdJson: v,
|
|
5815
|
-
materialList:
|
|
5814
|
+
materialList: _,
|
|
5816
5815
|
fabricScreenshotList: B,
|
|
5817
5816
|
width: C,
|
|
5818
5817
|
height: x,
|
|
@@ -5850,7 +5849,7 @@ async function Zx(r) {
|
|
|
5850
5849
|
return;
|
|
5851
5850
|
}
|
|
5852
5851
|
}, s = {}, u = /* @__PURE__ */ new Map();
|
|
5853
|
-
for (const f of
|
|
5852
|
+
for (const f of _) {
|
|
5854
5853
|
const A = f.sourceName || f.layerName;
|
|
5855
5854
|
A && (s[A] = {
|
|
5856
5855
|
url: f.url
|
|
@@ -5868,32 +5867,32 @@ async function Zx(r) {
|
|
|
5868
5867
|
hasChildren: !!f.children,
|
|
5869
5868
|
childrenCount: f.children?.length || 0
|
|
5870
5869
|
})));
|
|
5871
|
-
function
|
|
5870
|
+
function l(f, A) {
|
|
5872
5871
|
const m = f.color || (f.name && ["粉", "白", "绿", "红", "蓝", "黄", "黑", "灰"].includes(f.name) ? f.name : A);
|
|
5873
5872
|
if (f.type === "Layer") {
|
|
5874
5873
|
if (f.imagePath) {
|
|
5875
|
-
const
|
|
5874
|
+
const I = _.find((P) => {
|
|
5876
5875
|
const L = P.sourceName || P.layerName;
|
|
5877
5876
|
return !L || !f.imagePath ? !1 : L === f.imagePath || L.endsWith(f.imagePath) || f.imagePath.endsWith(L);
|
|
5878
5877
|
});
|
|
5879
|
-
|
|
5880
|
-
url:
|
|
5878
|
+
I && (s[f.imagePath] = {
|
|
5879
|
+
url: I.url
|
|
5881
5880
|
});
|
|
5882
5881
|
}
|
|
5883
5882
|
if (f.name) {
|
|
5884
5883
|
if (m) {
|
|
5885
|
-
const
|
|
5886
|
-
const
|
|
5887
|
-
return
|
|
5884
|
+
const I = `${m}-${f.name}`, P = _.find((L) => {
|
|
5885
|
+
const W = L.sourceName || L.layerName;
|
|
5886
|
+
return W ? (W.split("/").pop() || W).replace(/\.(png|jpg|jpeg|gif|webp)$/i, "").startsWith(`${m}-${f.name}`) : !1;
|
|
5888
5887
|
});
|
|
5889
|
-
P && (s[
|
|
5888
|
+
P && (s[I] = {
|
|
5890
5889
|
url: P.url
|
|
5891
5890
|
});
|
|
5892
5891
|
}
|
|
5893
5892
|
if (f.imagePath && f.name) {
|
|
5894
|
-
const
|
|
5895
|
-
const
|
|
5896
|
-
return
|
|
5893
|
+
const I = f.imagePath.split("/").pop() || f.imagePath, P = _.find((L) => {
|
|
5894
|
+
const W = L.sourceName || L.layerName;
|
|
5895
|
+
return W ? (W.split("/").pop() || W) === I : !1;
|
|
5897
5896
|
});
|
|
5898
5897
|
P && (s[f.imagePath] = {
|
|
5899
5898
|
url: P.url
|
|
@@ -5902,32 +5901,32 @@ async function Zx(r) {
|
|
|
5902
5901
|
}
|
|
5903
5902
|
}
|
|
5904
5903
|
if (f.children)
|
|
5905
|
-
for (const
|
|
5906
|
-
|
|
5904
|
+
for (const I of f.children)
|
|
5905
|
+
I && l(I, m);
|
|
5907
5906
|
}
|
|
5908
5907
|
function D(f, A) {
|
|
5909
5908
|
const m = f.id ?? A;
|
|
5910
5909
|
if (f.type === "Group" && m)
|
|
5911
5910
|
if (e(`[renderByJson] processLayer 检查 Group: name="${f.name}", id=${m}, hasFabricScreenshot=${p.has(m)}`), p.has(m)) {
|
|
5912
|
-
const
|
|
5913
|
-
if (e(`[renderByJson] ✅ 找到匹配的 fabricScreenshot: Group id=${m}, name="${f.name}", url=${
|
|
5911
|
+
const I = p.get(m);
|
|
5912
|
+
if (e(`[renderByJson] ✅ 找到匹配的 fabricScreenshot: Group id=${m}, name="${f.name}", url=${I.substring(0, 50)}...`), f.children) {
|
|
5914
5913
|
e(`[renderByJson] Group "${f.name}" 有 ${f.children.length} 个子图层`);
|
|
5915
5914
|
for (const P of f.children)
|
|
5916
5915
|
if (P && P.isSmartObject === !0) {
|
|
5917
5916
|
const L = P?.name || "";
|
|
5918
|
-
e(`[renderByJson] 找到智能对象: name="${L}"`), L && !s[L] && (s[L] = {}), L ? (s[L].designImage =
|
|
5917
|
+
e(`[renderByJson] 找到智能对象: name="${L}"`), L && !s[L] && (s[L] = {}), L ? (s[L].designImage = I, e(`[renderByJson] ✅ 为智能对象 "${L}" 设置 designImage: ${I.substring(0, 50)}...`)) : c("[renderByJson] ⚠️ 智能对象没有 name,无法设置 designImage");
|
|
5919
5918
|
}
|
|
5920
5919
|
} else
|
|
5921
5920
|
c(`[renderByJson] ⚠️ Group id=${m} 没有 children`);
|
|
5922
5921
|
} else
|
|
5923
5922
|
e(`[renderByJson] ⚠️ Group id=${m}, name="${f.name}" 没有匹配的 fabricScreenshot`);
|
|
5924
5923
|
if (f.children)
|
|
5925
|
-
for (const
|
|
5926
|
-
|
|
5924
|
+
for (const I of f.children)
|
|
5925
|
+
I && D(I, m);
|
|
5927
5926
|
}
|
|
5928
5927
|
if (v.layerList)
|
|
5929
5928
|
for (const f of v.layerList)
|
|
5930
|
-
f &&
|
|
5929
|
+
f && l(f);
|
|
5931
5930
|
if (v.layerList)
|
|
5932
5931
|
for (const f of v.layerList)
|
|
5933
5932
|
f && D(f);
|
|
@@ -5940,40 +5939,40 @@ async function Zx(r) {
|
|
|
5940
5939
|
});
|
|
5941
5940
|
if (!o.models || o.models.length === 0)
|
|
5942
5941
|
throw new Error("无法解析 JSON 数据");
|
|
5943
|
-
const
|
|
5944
|
-
if (!
|
|
5942
|
+
const d = o.models[0];
|
|
5943
|
+
if (!d.psdPartData)
|
|
5945
5944
|
throw new Error("JSON 数据中没有 psdPartData");
|
|
5946
|
-
const b =
|
|
5945
|
+
const b = d.width, g = d.height, y = h0(b, g), k = ye(y), R = [], F = (f) => {
|
|
5947
5946
|
if (f.url && s[f.url])
|
|
5948
5947
|
return s[f.url];
|
|
5949
5948
|
if (f.url) {
|
|
5950
5949
|
const A = f.url.split("/").pop() || f.url;
|
|
5951
5950
|
if (s[A])
|
|
5952
5951
|
return s[A];
|
|
5953
|
-
const m =
|
|
5954
|
-
const P =
|
|
5952
|
+
const m = _.find((I) => {
|
|
5953
|
+
const P = I.sourceName || I.layerName;
|
|
5955
5954
|
return !P || !f.url ? !1 : (P.split("/").pop() || P) === A || P === f.url || P.endsWith(f.url) || f.url.endsWith(P);
|
|
5956
5955
|
});
|
|
5957
5956
|
if (m) {
|
|
5958
|
-
const
|
|
5959
|
-
if (
|
|
5960
|
-
return s[
|
|
5957
|
+
const I = m.sourceName || m.layerName;
|
|
5958
|
+
if (I)
|
|
5959
|
+
return s[I] || { url: m.url };
|
|
5961
5960
|
}
|
|
5962
5961
|
}
|
|
5963
5962
|
};
|
|
5964
|
-
for (let f = 0; f <
|
|
5965
|
-
const A =
|
|
5963
|
+
for (let f = 0; f < d.psdPartData.length; f++) {
|
|
5964
|
+
const A = d.psdPartData[f], m = F(A);
|
|
5966
5965
|
if (A.type === D0.Layer) {
|
|
5967
5966
|
if (!m || !m.url) {
|
|
5968
5967
|
c(`图层 "${A.name}" 没有匹配的 material,跳过`);
|
|
5969
5968
|
continue;
|
|
5970
5969
|
}
|
|
5971
|
-
const
|
|
5970
|
+
const I = m.url, P = a(I);
|
|
5972
5971
|
if (!P) {
|
|
5973
5972
|
c(`图层 "${A.name}" 没有有效的 url,跳过`);
|
|
5974
5973
|
continue;
|
|
5975
5974
|
}
|
|
5976
|
-
|
|
5975
|
+
R.push({
|
|
5977
5976
|
index: f,
|
|
5978
5977
|
type: "layer",
|
|
5979
5978
|
partData: A,
|
|
@@ -5982,42 +5981,42 @@ async function Zx(r) {
|
|
|
5982
5981
|
} else if (A.type === D0.Group) {
|
|
5983
5982
|
if (!A.smartObjects || A.smartObjects.length === 0)
|
|
5984
5983
|
continue;
|
|
5985
|
-
for (let
|
|
5986
|
-
const P = A.smartObjects[
|
|
5984
|
+
for (let I = 0; I < A.smartObjects.length; I++) {
|
|
5985
|
+
const P = A.smartObjects[I];
|
|
5987
5986
|
if (!P || !P.name)
|
|
5988
5987
|
continue;
|
|
5989
5988
|
let L = s[P.name] ?? m;
|
|
5990
5989
|
if (!L && P.imagePath && (L = s[P.imagePath], !L)) {
|
|
5991
5990
|
const K = P.imagePath.split("/").pop() || P.imagePath;
|
|
5992
5991
|
if (L = s[K], !L) {
|
|
5993
|
-
const G =
|
|
5994
|
-
const
|
|
5995
|
-
return !
|
|
5992
|
+
const G = _.find((Y) => {
|
|
5993
|
+
const r0 = Y.sourceName || Y.layerName;
|
|
5994
|
+
return !r0 || !P.imagePath ? !1 : (r0.split("/").pop() || r0) === K || r0 === P.imagePath || r0.endsWith(P.imagePath) || P.imagePath.endsWith(r0);
|
|
5996
5995
|
});
|
|
5997
5996
|
G && (L = { url: G.url });
|
|
5998
5997
|
}
|
|
5999
5998
|
}
|
|
6000
5999
|
if (!L || !L.designImage && !L.url)
|
|
6001
6000
|
continue;
|
|
6002
|
-
let
|
|
6003
|
-
if (!
|
|
6001
|
+
let W = L.designImage ?? L.url;
|
|
6002
|
+
if (!W)
|
|
6004
6003
|
continue;
|
|
6005
|
-
if (typeof
|
|
6006
|
-
/^(https?:)?\/\//i.test(
|
|
6007
|
-
const G = a(
|
|
6004
|
+
if (typeof W == "string") {
|
|
6005
|
+
/^(https?:)?\/\//i.test(W) || W.startsWith("data:") || W.startsWith("blob:") || (W = u.get(W) ?? W);
|
|
6006
|
+
const G = a(W);
|
|
6008
6007
|
if (!G)
|
|
6009
6008
|
continue;
|
|
6010
|
-
|
|
6009
|
+
W = G;
|
|
6011
6010
|
}
|
|
6012
|
-
const Z = (A.partId ?? A.id) * 100 +
|
|
6013
|
-
|
|
6014
|
-
index: f +
|
|
6011
|
+
const Z = (A.partId ?? A.id) * 100 + I, Q = ot(at(P)), i0 = { width: b, height: g };
|
|
6012
|
+
R.push({
|
|
6013
|
+
index: f + I * 0.01,
|
|
6015
6014
|
type: "group",
|
|
6016
6015
|
partData: A,
|
|
6017
6016
|
smartObject: P,
|
|
6018
6017
|
maskData: Q,
|
|
6019
6018
|
promise: Yx(
|
|
6020
|
-
|
|
6019
|
+
W,
|
|
6021
6020
|
P,
|
|
6022
6021
|
Z,
|
|
6023
6022
|
i0,
|
|
@@ -6028,42 +6027,42 @@ async function Zx(r) {
|
|
|
6028
6027
|
}
|
|
6029
6028
|
}
|
|
6030
6029
|
}
|
|
6031
|
-
const w = await Promise.all(
|
|
6030
|
+
const w = await Promise.all(R.map((f) => f.promise)), H = R.map((f, A) => ({
|
|
6032
6031
|
task: f,
|
|
6033
6032
|
imageBitmap: w[A]
|
|
6034
6033
|
})).sort((f, A) => {
|
|
6035
|
-
const m = f.task.type === "group" && f.task.smartObject?.layerOrder !== void 0 ? f.task.smartObject.layerOrder : f.task.partData.layerOrder ?? f.task.index,
|
|
6036
|
-
return m -
|
|
6034
|
+
const m = f.task.type === "group" && f.task.smartObject?.layerOrder !== void 0 ? f.task.smartObject.layerOrder : f.task.partData.layerOrder ?? f.task.index, I = A.task.type === "group" && A.task.smartObject?.layerOrder !== void 0 ? A.task.smartObject.layerOrder : A.task.partData.layerOrder ?? A.task.index;
|
|
6035
|
+
return m - I;
|
|
6037
6036
|
});
|
|
6038
|
-
let
|
|
6037
|
+
let $ = h0(b, g), z = g0($), O = !1, q = "normal";
|
|
6039
6038
|
for (let f = 0; f < H.length; f++) {
|
|
6040
6039
|
const { task: A, imageBitmap: m } = H[f];
|
|
6041
6040
|
if (!m) {
|
|
6042
6041
|
c(`[renderByJson] 图层 "${A.partData.name}" 没有 imageBitmap,跳过`);
|
|
6043
6042
|
continue;
|
|
6044
6043
|
}
|
|
6045
|
-
const { partData:
|
|
6044
|
+
const { partData: I } = A, P = I.bounds;
|
|
6046
6045
|
let L;
|
|
6047
|
-
A.type === "group" && A.smartObject ? L = A.smartObject.opacity ??
|
|
6048
|
-
let
|
|
6049
|
-
A.type === "group" && A.smartObject ?
|
|
6046
|
+
A.type === "group" && A.smartObject ? L = A.smartObject.opacity ?? I.opacity : L = I.opacity, (typeof L != "number" || isNaN(L)) && (L = 1);
|
|
6047
|
+
let W;
|
|
6048
|
+
A.type === "group" && A.smartObject ? W = A.smartObject.clipping ?? I.clipping === !0 : W = I.clipping === !0;
|
|
6050
6049
|
const Z = H[f + 1];
|
|
6051
6050
|
let Q = !1;
|
|
6052
6051
|
if (Z) {
|
|
6053
6052
|
const K = Z.task.partData;
|
|
6054
6053
|
Z.task.type === "group" && Z.task.smartObject ? Q = Z.task.smartObject.clipping ?? K.clipping === !0 : Q = K.clipping === !0;
|
|
6055
6054
|
}
|
|
6056
|
-
const i0 = A.type === "group" && A.smartObject && A.smartObject.name ? A.smartObject.name :
|
|
6055
|
+
const i0 = A.type === "group" && A.smartObject && A.smartObject.name ? A.smartObject.name : I?.name || "未命名图层";
|
|
6057
6056
|
if (e(`[renderByJson] 绘制图层 "${i0}"`, {
|
|
6058
6057
|
type: A.type,
|
|
6059
6058
|
bitmapSize: { width: m.width, height: m.height },
|
|
6060
6059
|
bounds: P,
|
|
6061
6060
|
hasMask: !!A.maskData,
|
|
6062
|
-
blendMode:
|
|
6061
|
+
blendMode: I.blendMode,
|
|
6063
6062
|
opacity: L,
|
|
6064
|
-
clipping:
|
|
6065
|
-
}), !
|
|
6066
|
-
if (O = !0, q =
|
|
6063
|
+
clipping: W
|
|
6064
|
+
}), !W && Q) {
|
|
6065
|
+
if (O = !0, q = I.blendMode || "normal", z) {
|
|
6067
6066
|
if (z.clearRect(0, 0, b, g), z.globalCompositeOperation = "source-over", z.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6068
6067
|
if (A.maskData) {
|
|
6069
6068
|
const K = h0(b, g), G = g0(K);
|
|
@@ -6079,7 +6078,7 @@ async function Zx(r) {
|
|
|
6079
6078
|
) : z.drawImage(m, 0, 0));
|
|
6080
6079
|
z.globalAlpha = 1;
|
|
6081
6080
|
}
|
|
6082
|
-
} else if (
|
|
6081
|
+
} else if (W) {
|
|
6083
6082
|
if (z) {
|
|
6084
6083
|
if (z.globalCompositeOperation = "source-atop", z.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6085
6084
|
if (A.maskData) {
|
|
@@ -6097,7 +6096,7 @@ async function Zx(r) {
|
|
|
6097
6096
|
z.globalAlpha = 1, z.globalCompositeOperation = "source-over";
|
|
6098
6097
|
}
|
|
6099
6098
|
} else {
|
|
6100
|
-
if (k.globalCompositeOperation = Mr(
|
|
6099
|
+
if (k.globalCompositeOperation = Mr(I.blendMode), k.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6101
6100
|
if (A.maskData) {
|
|
6102
6101
|
const K = h0(b, g), G = g0(K);
|
|
6103
6102
|
G && (G.drawImage(m, 0, 0), Br(G, A.maskData), k.drawImage(K, 0, 0));
|
|
@@ -6112,10 +6111,10 @@ async function Zx(r) {
|
|
|
6112
6111
|
) : k.drawImage(m, 0, 0));
|
|
6113
6112
|
k.globalAlpha = 1, k.globalCompositeOperation = "source-over";
|
|
6114
6113
|
}
|
|
6115
|
-
O && !Q && (k.globalCompositeOperation = Mr(q), k.drawImage(
|
|
6114
|
+
O && !Q && (k.globalCompositeOperation = Mr(q), k.drawImage($, 0, 0), k.globalCompositeOperation = "source-over", O = !1);
|
|
6116
6115
|
}
|
|
6117
|
-
|
|
6118
|
-
let U =
|
|
6116
|
+
$ = null, z = null;
|
|
6117
|
+
let U = y, T = b, N = g;
|
|
6119
6118
|
if (C !== void 0 || x !== void 0) {
|
|
6120
6119
|
if (C !== void 0 && x !== void 0)
|
|
6121
6120
|
T = C, N = x;
|
|
@@ -6128,9 +6127,9 @@ async function Zx(r) {
|
|
|
6128
6127
|
}
|
|
6129
6128
|
U = h0(T, N);
|
|
6130
6129
|
const f = ye(U);
|
|
6131
|
-
f.imageSmoothingEnabled = !0, f.imageSmoothingQuality = "high", f.drawImage(
|
|
6130
|
+
f.imageSmoothingEnabled = !0, f.imageSmoothingQuality = "high", f.drawImage(y, 0, 0, b, g, 0, 0, T, N), e(`[renderByJson] 已缩放结果: ${b}x${g} -> ${T}x${N}`);
|
|
6132
6131
|
}
|
|
6133
|
-
const S = performance.now() -
|
|
6132
|
+
const S = performance.now() - h;
|
|
6134
6133
|
return e(`[renderByJson] 绘制完成,总渲染时间: ${Math.round(S)}ms`), {
|
|
6135
6134
|
canvas: U,
|
|
6136
6135
|
width: T,
|
|
@@ -6150,17 +6149,17 @@ const Te = async () => {
|
|
|
6150
6149
|
const r = s0;
|
|
6151
6150
|
s0 = null;
|
|
6152
6151
|
try {
|
|
6153
|
-
const
|
|
6152
|
+
const h = await qe(r.renderData);
|
|
6154
6153
|
if (s0) {
|
|
6155
|
-
|
|
6154
|
+
h?.close?.();
|
|
6156
6155
|
continue;
|
|
6157
6156
|
}
|
|
6158
|
-
self.postMessage({ id: r.id, bitmap:
|
|
6159
|
-
} catch (
|
|
6157
|
+
self.postMessage({ id: r.id, bitmap: h }, h ? [h] : []);
|
|
6158
|
+
} catch (h) {
|
|
6160
6159
|
if (s0) continue;
|
|
6161
6160
|
self.postMessage({
|
|
6162
6161
|
id: r.id,
|
|
6163
|
-
error:
|
|
6162
|
+
error: h instanceof Error ? h.message : String(h)
|
|
6164
6163
|
});
|
|
6165
6164
|
}
|
|
6166
6165
|
}
|
|
@@ -6170,9 +6169,9 @@ const Te = async () => {
|
|
|
6170
6169
|
}
|
|
6171
6170
|
};
|
|
6172
6171
|
self.onmessage = async (r) => {
|
|
6173
|
-
const
|
|
6174
|
-
if (
|
|
6175
|
-
const e =
|
|
6172
|
+
const h = r.data;
|
|
6173
|
+
if (h && typeof h == "object" && "type" in h && h.type === "SET_LICENSE") {
|
|
6174
|
+
const e = h;
|
|
6176
6175
|
Tx({
|
|
6177
6176
|
token: e.licenseToken,
|
|
6178
6177
|
apiUrl: e.licenseApiUrl,
|
|
@@ -6181,7 +6180,7 @@ self.onmessage = async (r) => {
|
|
|
6181
6180
|
});
|
|
6182
6181
|
return;
|
|
6183
6182
|
}
|
|
6184
|
-
const t =
|
|
6183
|
+
const t = h;
|
|
6185
6184
|
if (t.coalesce === !0) {
|
|
6186
6185
|
s0 = { id: t.id, renderData: t.renderData }, Te();
|
|
6187
6186
|
return;
|