@jieyin/editor-sdk-test 1.1.143 → 1.1.145
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 +5597 -5557
- package/dist/renderWorker.js +792 -793
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/renderWorker.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var F0 = /* @__PURE__ */ ((r) => (r[r.Group = 0] = "Group", r[r.Layer = 1] = "Layer", r))(F0 || {});
|
|
2
2
|
function Ge(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 Ke(r,
|
|
9
|
+
function Ke(r, h) {
|
|
10
10
|
return {
|
|
11
11
|
name: r.name || "",
|
|
12
12
|
type: r.type || "Layer",
|
|
@@ -23,24 +23,24 @@ function Ke(r, v) {
|
|
|
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 Xe(r,
|
|
33
|
-
let
|
|
34
|
-
if (r.type === "Group" &&
|
|
35
|
-
const x = r.children[0].name, n =
|
|
36
|
-
(E !== void 0 || n?.id !== void 0) && (
|
|
32
|
+
function Xe(r, h, t, e) {
|
|
33
|
+
let d = r.name || "", v = h[d], b = v?.partId ?? (r.type === "Group" ? t.get(d) : void 0);
|
|
34
|
+
if (r.type === "Group" && b === 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) && (d = x, v = n, b = E);
|
|
37
37
|
}
|
|
38
|
-
const B = r.id ??
|
|
38
|
+
const B = r.id ?? v?.id ?? e();
|
|
39
39
|
if (r.type === "Group")
|
|
40
40
|
return {
|
|
41
41
|
id: B,
|
|
42
|
-
partId:
|
|
43
|
-
name:
|
|
42
|
+
partId: b,
|
|
43
|
+
name: d,
|
|
44
44
|
blendMode: r.blendMode || "normal",
|
|
45
45
|
bounds: r.bounds || { left: 0, top: 0, width: 0, height: 0 },
|
|
46
46
|
type: F0.Group,
|
|
@@ -51,7 +51,7 @@ function Xe(r, v, t, e) {
|
|
|
51
51
|
clipping: r.clipping,
|
|
52
52
|
layerOrder: r.layerOrder
|
|
53
53
|
};
|
|
54
|
-
let C =
|
|
54
|
+
let C = v?.url;
|
|
55
55
|
return !C && r.imagePath && (C = r.imagePath), {
|
|
56
56
|
id: B,
|
|
57
57
|
name: r.name || "",
|
|
@@ -64,21 +64,21 @@ function Xe(r, v, t, e) {
|
|
|
64
64
|
layerOrder: r.layerOrder
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
function Ye(r,
|
|
68
|
-
const t = new Map(
|
|
67
|
+
function Ye(r, h) {
|
|
68
|
+
const t = new Map(h.parts.map((d) => [d.name, d.id])), e = Ge(h.defaultIdStart ?? 1);
|
|
69
69
|
return {
|
|
70
|
-
parts:
|
|
71
|
-
models: r.map((
|
|
72
|
-
const
|
|
70
|
+
parts: h.parts,
|
|
71
|
+
models: r.map((d) => {
|
|
72
|
+
const v = d.layerExtrasByName ?? {}, b = d.psdJson, B = b.layerList || b.layerList || [], C = b.canvasWidth, x = b.canvasHeight;
|
|
73
73
|
if (!C || !x)
|
|
74
74
|
throw new Error(`无法获取 PSD 画布尺寸: canvasWidth=${C}, canvasHeight=${x}。请确保 jsonurl 中的 canvasWidth 和 canvasHeight 存在`);
|
|
75
75
|
const n = (s) => {
|
|
76
76
|
const f = [];
|
|
77
77
|
for (const p of s)
|
|
78
78
|
if (p.type === "Group" && p.children) {
|
|
79
|
-
const l = [], D = [], i = [...p.children].sort((o,
|
|
80
|
-
const
|
|
81
|
-
return
|
|
79
|
+
const l = [], D = [], i = [...p.children].sort((o, u) => {
|
|
80
|
+
const m = o.layerOrder ?? 0, g = u.layerOrder ?? 0;
|
|
81
|
+
return m - g;
|
|
82
82
|
});
|
|
83
83
|
for (const o of i)
|
|
84
84
|
o.isSmartObject === !0 ? l.push(o) : D.push(o);
|
|
@@ -94,7 +94,7 @@ function Ye(r, v) {
|
|
|
94
94
|
f.push(p);
|
|
95
95
|
return f;
|
|
96
96
|
}, a = n(B).map(
|
|
97
|
-
(s) => Xe(s,
|
|
97
|
+
(s) => Xe(s, v, t, e)
|
|
98
98
|
);
|
|
99
99
|
return {
|
|
100
100
|
width: C,
|
|
@@ -110,44 +110,44 @@ function Ze(r) {
|
|
|
110
110
|
function Qe(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 lr(r,
|
|
130
|
-
if (
|
|
131
|
-
if (r.globalCompositeOperation = "destination-in", r.beginPath(),
|
|
132
|
-
|
|
129
|
+
function lr(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
|
-
const
|
|
136
|
-
r.moveTo(
|
|
137
|
-
for (let
|
|
138
|
-
const
|
|
139
|
-
let B = (
|
|
140
|
-
if (!t.open &&
|
|
135
|
+
const d = e[0];
|
|
136
|
+
r.moveTo(d.points[2], d.points[3]);
|
|
137
|
+
for (let v = 0; v < e.length; v++) {
|
|
138
|
+
const b = e[v];
|
|
139
|
+
let B = (v + 1) % e.length;
|
|
140
|
+
if (!t.open && v === e.length - 1)
|
|
141
141
|
B = 0;
|
|
142
|
-
else if (t.open &&
|
|
142
|
+
else if (t.open && v === e.length - 1)
|
|
143
143
|
break;
|
|
144
|
-
const C = e[B], x =
|
|
144
|
+
const C = e[B], x = b.points[4], n = b.points[5], E = C.points[0], a = C.points[1], s = C.points[2], f = C.points[3];
|
|
145
145
|
r.bezierCurveTo(x, n, E, a, s, f);
|
|
146
146
|
}
|
|
147
147
|
t.open || r.closePath();
|
|
148
148
|
});
|
|
149
|
-
else if (
|
|
150
|
-
const t =
|
|
149
|
+
else if (h.type === "simple" && Array.isArray(h.points)) {
|
|
150
|
+
const t = h.points;
|
|
151
151
|
if (t.length < 3) return;
|
|
152
152
|
r.moveTo(t[0].x, t[0].y);
|
|
153
153
|
for (let e = 1; e < t.length; e++) r.lineTo(t[e].x, t[e].y);
|
|
@@ -161,10 +161,10 @@ class h0 {
|
|
|
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 h0 {
|
|
|
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 h0 {
|
|
|
183
183
|
/**
|
|
184
184
|
* 移除存储项
|
|
185
185
|
*/
|
|
186
|
-
static removeItem(
|
|
186
|
+
static removeItem(h) {
|
|
187
187
|
if (!this.hasStorage) return !1;
|
|
188
188
|
try {
|
|
189
|
-
return localStorage.removeItem(
|
|
189
|
+
return localStorage.removeItem(h), !0;
|
|
190
190
|
} catch {
|
|
191
191
|
return !1;
|
|
192
192
|
}
|
|
@@ -251,10 +251,10 @@ class l0 {
|
|
|
251
251
|
/**
|
|
252
252
|
* 安全地解析 URL
|
|
253
253
|
*/
|
|
254
|
-
static parse(
|
|
254
|
+
static parse(h) {
|
|
255
255
|
try {
|
|
256
256
|
const t = fr.getOrigin();
|
|
257
|
-
return new URL(
|
|
257
|
+
return new URL(h, t);
|
|
258
258
|
} catch {
|
|
259
259
|
return null;
|
|
260
260
|
}
|
|
@@ -262,236 +262,235 @@ class l0 {
|
|
|
262
262
|
/**
|
|
263
263
|
* 添加查询参数
|
|
264
264
|
*/
|
|
265
|
-
static addParam(
|
|
266
|
-
const
|
|
267
|
-
return !
|
|
265
|
+
static addParam(h, t, e) {
|
|
266
|
+
const d = this.parse(h);
|
|
267
|
+
return !d || d.searchParams.has(t) ? h : (d.searchParams.set(t, e), this.formatUrl(h, d));
|
|
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(
|
|
287
|
-
return e ? t.toString() :
|
|
285
|
+
static formatUrl(h, t) {
|
|
286
|
+
const e = /^(https?:)?\/\//i.test(h), d = h.startsWith("//");
|
|
287
|
+
return e ? t.toString() : d ? 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
|
-
const
|
|
303
|
-
(function(r,
|
|
304
|
-
const t =
|
|
302
|
+
const t0 = cr;
|
|
303
|
+
(function(r, h) {
|
|
304
|
+
const t = cr, e = r();
|
|
305
305
|
for (; ; )
|
|
306
306
|
try {
|
|
307
|
-
if (parseInt(t(
|
|
307
|
+
if (parseInt(t(309)) / 1 * (-parseInt(t(327)) / 2) + parseInt(t(319)) / 3 + parseInt(t(336)) / 4 * (-parseInt(t(339)) / 5) + -parseInt(t(322)) / 6 * (-parseInt(t(314)) / 7) + parseInt(t(321)) / 8 + -parseInt(t(325)) / 9 + parseInt(t(310)) / 10 === h) break;
|
|
308
308
|
e.push(e.shift());
|
|
309
309
|
} catch {
|
|
310
310
|
e.push(e.shift());
|
|
311
311
|
}
|
|
312
|
-
})(
|
|
312
|
+
})(sr, -105317 * -1 + 10 * 12239 + 264421);
|
|
313
313
|
const E0 = /* @__PURE__ */ (function() {
|
|
314
314
|
let r = !0;
|
|
315
|
-
return function(
|
|
315
|
+
return function(h, t) {
|
|
316
316
|
const e = r ? function() {
|
|
317
|
-
const u = g0;
|
|
318
317
|
if (t) {
|
|
319
|
-
const
|
|
320
|
-
return t = null,
|
|
318
|
+
const d = t.apply(h, arguments);
|
|
319
|
+
return t = null, d;
|
|
321
320
|
}
|
|
322
321
|
} : function() {
|
|
323
322
|
};
|
|
324
323
|
return r = !1, e;
|
|
325
324
|
};
|
|
326
325
|
})(), Ve = E0(void 0, function() {
|
|
327
|
-
const r =
|
|
328
|
-
const
|
|
329
|
-
let
|
|
326
|
+
const r = cr, h = function() {
|
|
327
|
+
const v = cr;
|
|
328
|
+
let b;
|
|
330
329
|
try {
|
|
331
|
-
|
|
330
|
+
b = Function("return (functio" + v(328) + ("{}.co" + v(334) + 'ctor("return this")( )') + ");")();
|
|
332
331
|
} catch {
|
|
333
|
-
|
|
332
|
+
b = window;
|
|
334
333
|
}
|
|
335
|
-
return
|
|
336
|
-
}, t =
|
|
337
|
-
for (let
|
|
338
|
-
const
|
|
339
|
-
|
|
334
|
+
return b;
|
|
335
|
+
}, t = h(), e = t.console = t.console || {}, d = ["log", "warn", "info", "error", "exception", r(337), "trace"];
|
|
336
|
+
for (let v = -1409 + 1409 * 1; v < d[r(320) + "h"]; v++) {
|
|
337
|
+
const b = E0[r(330) + "ructor"].prototype.bind(E0), B = d[v], C = e[B] || b;
|
|
338
|
+
b.__proto__ = E0.bind(E0), b.toString = C.toString.bind(C), e[B] = b;
|
|
340
339
|
}
|
|
341
340
|
});
|
|
342
341
|
Ve();
|
|
343
|
-
const Br = "
|
|
342
|
+
const Br = "file_token", Cr = t0(326) + "token_expire_time", Je = (7361 + -2243 * -1 + -9544) * (3978 + -3316 * -2 + -1922 * 5);
|
|
344
343
|
function vr() {
|
|
345
344
|
return h0.getItem(Br);
|
|
346
345
|
}
|
|
347
|
-
function g0(r, v) {
|
|
348
|
-
return r = r - (-4070 + -2 * -314 + 1 * 3911), cr()[r];
|
|
349
|
-
}
|
|
350
346
|
function rt(r = Je) {
|
|
351
|
-
const v = J;
|
|
352
347
|
if (!vr()) return !0;
|
|
353
|
-
const
|
|
354
|
-
if (!
|
|
355
|
-
const
|
|
356
|
-
return Date.now() + r >
|
|
348
|
+
const t = h0.getItem(Cr);
|
|
349
|
+
if (!t) return !1;
|
|
350
|
+
const e = Number(t);
|
|
351
|
+
return Date.now() + r > e;
|
|
357
352
|
}
|
|
358
|
-
function et(r,
|
|
359
|
-
const t =
|
|
360
|
-
if (h0
|
|
361
|
-
const e = Date
|
|
362
|
-
h0
|
|
353
|
+
function et(r, h) {
|
|
354
|
+
const t = t0;
|
|
355
|
+
if (h0[t(317) + "em"](Br, r), typeof h == t(338) + "r" && h > -5061 + 3 * -3194 + 14643) {
|
|
356
|
+
const e = Date.now() + h * 1e3;
|
|
357
|
+
h0.setItem(Cr, String(e));
|
|
363
358
|
}
|
|
364
359
|
}
|
|
365
|
-
function cr() {
|
|
366
|
-
const r = ["isBro", "token", "apply", "getIt", "ing", "numbe", "trace", "pathn", "39ZFVgQJ", "_expi", "file_", "oken", "n() ", "ructo", "__pro", "1025227dbIUQn", "470630UUqfLg", "re_ti", "42542xqwVIm", "inclu", "remov", "code", "147983sckYzK", "/file", '"retu', "1020936AdlqcR", "wser", "hasPa", "FileT", "976293XXekms", "parse", "data", "now", "24AHlqrk", "excep", "setIt", "644696uuWxhN", "des"];
|
|
367
|
-
return cr = function() {
|
|
368
|
-
return r;
|
|
369
|
-
}, cr();
|
|
370
|
-
}
|
|
371
360
|
function tt() {
|
|
372
|
-
const r =
|
|
373
|
-
h0
|
|
361
|
+
const r = t0;
|
|
362
|
+
h0["remov" + r(332)](Br), h0[r(316) + "eItem"](Cr);
|
|
363
|
+
}
|
|
364
|
+
function sr() {
|
|
365
|
+
const r = ["n() ", "token", "const", "bUrl", "eItem", "code", "nstru", "fileT", "604wFrQmc", "table", "numbe", "1130hWUtTl", "pathn", "FileT", "isBro", "1OStBHO", "2821500gaQTEK", "statu", "inclu", "ePara", "84ASFoFX", "data", "remov", "setIt", "oken", "1305540XNzsTe", "lengt", "1926528KfMJEm", "353406sBgUgG", "fetch", "des", "3827907NiBlWm", "file_", "1426762MiKEpY"];
|
|
366
|
+
return sr = function() {
|
|
367
|
+
return r;
|
|
368
|
+
}, sr();
|
|
374
369
|
}
|
|
375
370
|
async function Pr(r) {
|
|
376
|
-
const
|
|
377
|
-
return t?.[
|
|
371
|
+
const h = t0, t = await r(), e = t?.[h(315)]?.data;
|
|
372
|
+
return t?.[h(315)]?.[h(333)] === 200 && e?.[h(326) + "token"] ? (et(e["file_" + h(329)], e.expires_in), e[h(326) + "token"]) : null;
|
|
378
373
|
}
|
|
379
374
|
let xt = null;
|
|
380
|
-
function
|
|
375
|
+
function Wr() {
|
|
381
376
|
return fr.isBrowser() ? xt : null;
|
|
382
377
|
}
|
|
383
378
|
async function ge() {
|
|
384
|
-
const r =
|
|
385
|
-
if (!fr[
|
|
386
|
-
const
|
|
387
|
-
if (
|
|
379
|
+
const r = t0;
|
|
380
|
+
if (!fr[r(308) + "wser"]()) return vr();
|
|
381
|
+
const h = vr();
|
|
382
|
+
if (h && !rt()) return h;
|
|
388
383
|
try {
|
|
389
|
-
const t = await
|
|
390
|
-
if (
|
|
391
|
-
const e = await Pr(t
|
|
384
|
+
const t = await Wr();
|
|
385
|
+
if (h && t?.[r(323) + "FileTokenRefresh"]) {
|
|
386
|
+
const e = await Pr(t.fetchFileTokenRefresh);
|
|
392
387
|
if (e) return e;
|
|
393
388
|
}
|
|
394
389
|
} catch {
|
|
395
390
|
}
|
|
396
391
|
try {
|
|
397
|
-
const t =
|
|
398
|
-
return t?.["
|
|
392
|
+
const t = Wr();
|
|
393
|
+
return t?.["fetch" + r(307) + "oken"] ? await Pr(t[r(323) + "FileToken"]) : null;
|
|
399
394
|
} catch {
|
|
400
395
|
return null;
|
|
401
396
|
}
|
|
402
397
|
}
|
|
398
|
+
function cr(r, h) {
|
|
399
|
+
return r = r - (-7 * -915 + -7342 + 622 * 2), sr()[r];
|
|
400
|
+
}
|
|
403
401
|
function De(r) {
|
|
404
|
-
const
|
|
405
|
-
if (!r || l0.isDataUrl(r) || l0
|
|
406
|
-
const t = l0
|
|
407
|
-
return t ? t[
|
|
402
|
+
const h = t0;
|
|
403
|
+
if (!r || l0.isDataUrl(r) || l0["isBlo" + h(331)](r)) return !1;
|
|
404
|
+
const t = l0.parse(r);
|
|
405
|
+
return t ? t[h(340) + "ame"].includes("/files/") && !l0.hasParam(r, "fileT" + h(318)) : r["inclu" + h(324)]("/files/") && !r[h(312) + "des"](h(335) + "oken=");
|
|
408
406
|
}
|
|
409
|
-
function
|
|
410
|
-
const t =
|
|
411
|
-
return !
|
|
407
|
+
function me(r, h) {
|
|
408
|
+
const t = t0;
|
|
409
|
+
return !h || !De(r) ? r : l0.addParam(r, t(335) + "oken", h);
|
|
412
410
|
}
|
|
413
411
|
function nt(r) {
|
|
414
|
-
const
|
|
415
|
-
return l0
|
|
412
|
+
const h = t0;
|
|
413
|
+
return l0["remov" + h(313) + "m"](r, "fileT" + h(318));
|
|
416
414
|
}
|
|
417
415
|
async function at(r) {
|
|
418
416
|
if (!De(r)) return r;
|
|
419
|
-
const
|
|
420
|
-
return
|
|
417
|
+
const h = await ge();
|
|
418
|
+
return me(r, h);
|
|
421
419
|
}
|
|
422
|
-
async function
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
420
|
+
async function be(r, h) {
|
|
421
|
+
const t = t0;
|
|
422
|
+
if (!fr.isBrowser()) return fetch(r, h);
|
|
423
|
+
const e = nt(r), d = await at(e), v = await fetch(d, h);
|
|
424
|
+
if (v[t(311) + "s"] !== -1 * 1163 + -2675 + -1413 * -3) return v;
|
|
426
425
|
tt();
|
|
427
|
-
const
|
|
428
|
-
return fetch(B,
|
|
426
|
+
const b = await ge(), B = me(e, b);
|
|
427
|
+
return fetch(B, h);
|
|
429
428
|
}
|
|
430
|
-
const _e = (r,
|
|
429
|
+
const _e = (r, h) => {
|
|
431
430
|
if (!r) return r;
|
|
432
|
-
const t = (
|
|
431
|
+
const t = (h || "").replace(/\/$/, "");
|
|
433
432
|
if (t && r.startsWith(t))
|
|
434
433
|
return r;
|
|
435
434
|
if (typeof window < "u") {
|
|
436
|
-
const
|
|
437
|
-
if (
|
|
435
|
+
const d = window.location.hostname;
|
|
436
|
+
if (d === "localhost" || d === "127.0.0.1")
|
|
438
437
|
try {
|
|
439
|
-
const
|
|
438
|
+
const v = new URL(r);
|
|
440
439
|
if (t)
|
|
441
440
|
try {
|
|
442
|
-
const
|
|
443
|
-
if (
|
|
441
|
+
const b = new URL(t).origin;
|
|
442
|
+
if (v.origin === b)
|
|
444
443
|
return r;
|
|
445
444
|
} catch {
|
|
446
445
|
}
|
|
447
|
-
if (
|
|
448
|
-
return t ? `${t}${
|
|
446
|
+
if (v.pathname.startsWith("/files/"))
|
|
447
|
+
return t ? `${t}${v.pathname}${v.search}${v.hash}` : `${v.pathname}${v.search}${v.hash}`;
|
|
449
448
|
} catch {
|
|
450
449
|
}
|
|
451
450
|
}
|
|
452
451
|
if (typeof window < "u" && window.location.hostname !== "localhost") return r;
|
|
453
452
|
const e = r.match(/^https?:\/\/([^/]+\.oss[^/]*\.aliyuncs\.com)(.*)$/);
|
|
454
453
|
return e ? `/oss${e[2]}` : r;
|
|
455
|
-
}, ot = (r,
|
|
454
|
+
}, ot = (r, h) => {
|
|
456
455
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
457
|
-
return new OffscreenCanvas(r,
|
|
456
|
+
return new OffscreenCanvas(r, h);
|
|
458
457
|
const t = document.createElement("canvas");
|
|
459
|
-
return t.width = r, t.height =
|
|
460
|
-
},
|
|
461
|
-
if (!
|
|
458
|
+
return t.width = r, t.height = h, t;
|
|
459
|
+
}, b0 = async (r, h) => {
|
|
460
|
+
if (!h || h <= 0) return r;
|
|
462
461
|
const t = Math.max(r.width, r.height);
|
|
463
|
-
if (t <=
|
|
464
|
-
const e =
|
|
465
|
-
return B ? (B.drawImage(r, 0, 0,
|
|
462
|
+
if (t <= h) return r;
|
|
463
|
+
const e = h / t, d = Math.max(1, Math.round(r.width * e)), v = Math.max(1, Math.round(r.height * e)), b = ot(d, v), B = b.getContext("2d");
|
|
464
|
+
return B ? (B.drawImage(r, 0, 0, d, v), r.close?.(), await createImageBitmap(b)) : r;
|
|
466
465
|
};
|
|
467
|
-
async function it(r,
|
|
466
|
+
async function it(r, h, t) {
|
|
468
467
|
if (typeof r == "string")
|
|
469
468
|
try {
|
|
470
|
-
const e = _e(r, t),
|
|
471
|
-
if (!
|
|
472
|
-
const
|
|
473
|
-
throw new Error(
|
|
469
|
+
const e = _e(r, t), d = await be(e);
|
|
470
|
+
if (!d.ok) {
|
|
471
|
+
const b = d.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${d.status} ${d.statusText}): ${r}`;
|
|
472
|
+
throw new Error(b);
|
|
474
473
|
}
|
|
475
|
-
const
|
|
476
|
-
if (!
|
|
474
|
+
const v = await d.blob();
|
|
475
|
+
if (!v.type.startsWith("image/") && v.size === 0)
|
|
477
476
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
478
477
|
try {
|
|
479
|
-
const
|
|
480
|
-
return await
|
|
481
|
-
} catch (
|
|
482
|
-
throw new Error(`图片解码失败: URL=${r}, 错误=${
|
|
478
|
+
const b = await createImageBitmap(v);
|
|
479
|
+
return await b0(b, h);
|
|
480
|
+
} catch (b) {
|
|
481
|
+
throw new Error(`图片解码失败: URL=${r}, 错误=${b instanceof Error ? b.message : b}`);
|
|
483
482
|
}
|
|
484
483
|
} catch (e) {
|
|
485
484
|
throw e instanceof Error ? e : new Error(`加载图片失败: ${r}, ${e}`);
|
|
486
485
|
}
|
|
487
486
|
if (r instanceof HTMLImageElement) {
|
|
488
|
-
if ((!r.complete || r.naturalWidth === 0) && await new Promise((e,
|
|
489
|
-
r.onload = e, r.onerror = () =>
|
|
487
|
+
if ((!r.complete || r.naturalWidth === 0) && await new Promise((e, d) => {
|
|
488
|
+
r.onload = e, r.onerror = () => d(new Error(`图片加载失败: src=${r.src}`)), r.complete && e(null);
|
|
490
489
|
}), r.naturalWidth === 0 || r.naturalHeight === 0)
|
|
491
490
|
throw new Error(`图片尺寸无效: src=${r.src}, width=${r.naturalWidth}, height=${r.naturalHeight}`);
|
|
492
491
|
try {
|
|
493
492
|
const e = await createImageBitmap(r);
|
|
494
|
-
return await
|
|
493
|
+
return await b0(e, h);
|
|
495
494
|
} catch (e) {
|
|
496
495
|
throw new Error(`图片解码失败: src=${r.src}, 错误=${e instanceof Error ? e.message : e}`);
|
|
497
496
|
}
|
|
@@ -499,33 +498,33 @@ async function it(r, v, t) {
|
|
|
499
498
|
if (r instanceof ImageBitmap) {
|
|
500
499
|
if (r.width === 0 || r.height === 0)
|
|
501
500
|
throw new Error(`ImageBitmap 尺寸无效: width=${r.width}, height=${r.height}`);
|
|
502
|
-
return await
|
|
501
|
+
return await b0(r, h);
|
|
503
502
|
}
|
|
504
503
|
throw new Error("不支持的图片类型");
|
|
505
504
|
}
|
|
506
|
-
async function st(r,
|
|
505
|
+
async function st(r, h, t) {
|
|
507
506
|
try {
|
|
508
|
-
const e = _e(r, t),
|
|
509
|
-
if (!
|
|
510
|
-
const
|
|
511
|
-
throw new Error(
|
|
507
|
+
const e = _e(r, t), d = await be(e);
|
|
508
|
+
if (!d.ok) {
|
|
509
|
+
const b = d.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${d.status} ${d.statusText}): ${r}`;
|
|
510
|
+
throw new Error(b);
|
|
512
511
|
}
|
|
513
|
-
const
|
|
514
|
-
if (!
|
|
512
|
+
const v = await d.blob();
|
|
513
|
+
if (!v.type.startsWith("image/") && v.size === 0)
|
|
515
514
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
516
515
|
try {
|
|
517
|
-
const
|
|
518
|
-
return await
|
|
519
|
-
} catch (
|
|
520
|
-
throw new Error(`图片解码失败: URL=${r}, 错误=${
|
|
516
|
+
const b = await createImageBitmap(v);
|
|
517
|
+
return await b0(b, h);
|
|
518
|
+
} catch (b) {
|
|
519
|
+
throw new Error(`图片解码失败: URL=${r}, 错误=${b instanceof Error ? b.message : b}`);
|
|
521
520
|
}
|
|
522
521
|
} catch (e) {
|
|
523
522
|
throw e instanceof Error ? e : new Error(`加载图片失败: ${r}, ${e}`);
|
|
524
523
|
}
|
|
525
524
|
}
|
|
526
|
-
function
|
|
525
|
+
function zr(r) {
|
|
527
526
|
if (!r) return "source-over";
|
|
528
|
-
const
|
|
527
|
+
const h = r.trim().toLowerCase();
|
|
529
528
|
return {
|
|
530
529
|
normal: "source-over",
|
|
531
530
|
multiply: "multiply",
|
|
@@ -551,26 +550,26 @@ function Wr(r) {
|
|
|
551
550
|
"linear dodge": "lighter",
|
|
552
551
|
lighter: "lighter",
|
|
553
552
|
"pass-through": "source-over"
|
|
554
|
-
}[
|
|
553
|
+
}[h] || "source-over";
|
|
555
554
|
}
|
|
556
555
|
var hr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
557
556
|
function ct(r) {
|
|
558
557
|
if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
|
|
559
|
-
var
|
|
560
|
-
if (typeof
|
|
558
|
+
var h = r.default;
|
|
559
|
+
if (typeof h == "function") {
|
|
561
560
|
var t = function e() {
|
|
562
|
-
var
|
|
561
|
+
var d = !1;
|
|
563
562
|
try {
|
|
564
|
-
|
|
563
|
+
d = this instanceof e;
|
|
565
564
|
} catch {
|
|
566
565
|
}
|
|
567
|
-
return
|
|
566
|
+
return d ? Reflect.construct(h, arguments, this.constructor) : h.apply(this, arguments);
|
|
568
567
|
};
|
|
569
|
-
t.prototype =
|
|
568
|
+
t.prototype = h.prototype;
|
|
570
569
|
} else t = {};
|
|
571
570
|
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(r).forEach(function(e) {
|
|
572
|
-
var
|
|
573
|
-
Object.defineProperty(t, e,
|
|
571
|
+
var d = Object.getOwnPropertyDescriptor(r, e);
|
|
572
|
+
Object.defineProperty(t, e, d.get ? d : {
|
|
574
573
|
enumerable: !0,
|
|
575
574
|
get: function() {
|
|
576
575
|
return r[e];
|
|
@@ -578,36 +577,36 @@ function ct(r) {
|
|
|
578
577
|
});
|
|
579
578
|
}), t;
|
|
580
579
|
}
|
|
581
|
-
var
|
|
580
|
+
var _0 = { exports: {} };
|
|
582
581
|
function ft(r) {
|
|
583
582
|
throw new Error('Could not dynamically require "' + r + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
584
583
|
}
|
|
585
|
-
var
|
|
584
|
+
var y0 = { exports: {} }, ut = {}, dt = /* @__PURE__ */ Object.freeze({
|
|
586
585
|
__proto__: null,
|
|
587
586
|
default: ut
|
|
588
|
-
}), lt = /* @__PURE__ */ ct(dt), ht =
|
|
587
|
+
}), lt = /* @__PURE__ */ ct(dt), ht = y0.exports, Ir;
|
|
589
588
|
function M() {
|
|
590
|
-
return Ir || (Ir = 1, (function(r,
|
|
589
|
+
return Ir || (Ir = 1, (function(r, h) {
|
|
591
590
|
(function(t, e) {
|
|
592
591
|
r.exports = e();
|
|
593
592
|
})(ht, function() {
|
|
594
|
-
var t = t || (function(e,
|
|
595
|
-
var
|
|
596
|
-
if (typeof window < "u" && window.crypto && (
|
|
593
|
+
var t = t || (function(e, d) {
|
|
594
|
+
var v;
|
|
595
|
+
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 hr < "u" && hr.crypto && (v = hr.crypto), !v && typeof ft == "function")
|
|
597
596
|
try {
|
|
598
|
-
|
|
597
|
+
v = lt;
|
|
599
598
|
} catch {
|
|
600
599
|
}
|
|
601
|
-
var
|
|
602
|
-
if (
|
|
603
|
-
if (typeof
|
|
600
|
+
var b = function() {
|
|
601
|
+
if (v) {
|
|
602
|
+
if (typeof v.getRandomValues == "function")
|
|
604
603
|
try {
|
|
605
|
-
return
|
|
604
|
+
return v.getRandomValues(new Uint32Array(1))[0];
|
|
606
605
|
} catch {
|
|
607
606
|
}
|
|
608
|
-
if (typeof
|
|
607
|
+
if (typeof v.randomBytes == "function")
|
|
609
608
|
try {
|
|
610
|
-
return
|
|
609
|
+
return v.randomBytes(4).readInt32LE();
|
|
611
610
|
} catch {
|
|
612
611
|
}
|
|
613
612
|
}
|
|
@@ -616,8 +615,8 @@ function M() {
|
|
|
616
615
|
function i() {
|
|
617
616
|
}
|
|
618
617
|
return function(o) {
|
|
619
|
-
var
|
|
620
|
-
return i.prototype = o,
|
|
618
|
+
var u;
|
|
619
|
+
return i.prototype = o, u = new i(), i.prototype = null, u;
|
|
621
620
|
};
|
|
622
621
|
})(), C = {}, x = C.lib = {}, n = x.Base = /* @__PURE__ */ (function() {
|
|
623
622
|
return {
|
|
@@ -718,7 +717,7 @@ function M() {
|
|
|
718
717
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
|
|
719
718
|
*/
|
|
720
719
|
init: function(i, o) {
|
|
721
|
-
i = this.words = i || [], o !=
|
|
720
|
+
i = this.words = i || [], o != d ? this.sigBytes = o : this.sigBytes = i.length * 4;
|
|
722
721
|
},
|
|
723
722
|
/**
|
|
724
723
|
* Converts this word array to a string.
|
|
@@ -748,15 +747,15 @@ function M() {
|
|
|
748
747
|
* wordArray1.concat(wordArray2);
|
|
749
748
|
*/
|
|
750
749
|
concat: function(i) {
|
|
751
|
-
var o = this.words,
|
|
752
|
-
if (this.clamp(),
|
|
750
|
+
var o = this.words, u = i.words, m = this.sigBytes, g = i.sigBytes;
|
|
751
|
+
if (this.clamp(), m % 4)
|
|
753
752
|
for (var y = 0; y < g; y++) {
|
|
754
|
-
var k =
|
|
755
|
-
o[
|
|
753
|
+
var k = u[y >>> 2] >>> 24 - y % 4 * 8 & 255;
|
|
754
|
+
o[m + y >>> 2] |= k << 24 - (m + y) % 4 * 8;
|
|
756
755
|
}
|
|
757
756
|
else
|
|
758
757
|
for (var R = 0; R < g; R += 4)
|
|
759
|
-
o[
|
|
758
|
+
o[m + R >>> 2] = u[R >>> 2];
|
|
760
759
|
return this.sigBytes += g, this;
|
|
761
760
|
},
|
|
762
761
|
/**
|
|
@@ -797,8 +796,8 @@ function M() {
|
|
|
797
796
|
* var wordArray = CryptoJS.lib.WordArray.random(16);
|
|
798
797
|
*/
|
|
799
798
|
random: function(i) {
|
|
800
|
-
for (var o = [],
|
|
801
|
-
o.push(
|
|
799
|
+
for (var o = [], u = 0; u < i; u += 4)
|
|
800
|
+
o.push(b());
|
|
802
801
|
return new E.init(o, i);
|
|
803
802
|
}
|
|
804
803
|
}), a = C.enc = {}, s = a.Hex = {
|
|
@@ -816,11 +815,11 @@ function M() {
|
|
|
816
815
|
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
817
816
|
*/
|
|
818
817
|
stringify: function(i) {
|
|
819
|
-
for (var o = i.words,
|
|
818
|
+
for (var o = i.words, u = i.sigBytes, m = [], g = 0; g < u; g++) {
|
|
820
819
|
var y = o[g >>> 2] >>> 24 - g % 4 * 8 & 255;
|
|
821
|
-
|
|
820
|
+
m.push((y >>> 4).toString(16)), m.push((y & 15).toString(16));
|
|
822
821
|
}
|
|
823
|
-
return
|
|
822
|
+
return m.join("");
|
|
824
823
|
},
|
|
825
824
|
/**
|
|
826
825
|
* Converts a hex string to a word array.
|
|
@@ -836,9 +835,9 @@ function M() {
|
|
|
836
835
|
* var wordArray = CryptoJS.enc.Hex.parse(hexString);
|
|
837
836
|
*/
|
|
838
837
|
parse: function(i) {
|
|
839
|
-
for (var o = i.length,
|
|
840
|
-
|
|
841
|
-
return new E.init(
|
|
838
|
+
for (var o = i.length, u = [], m = 0; m < o; m += 2)
|
|
839
|
+
u[m >>> 3] |= parseInt(i.substr(m, 2), 16) << 24 - m % 8 * 4;
|
|
840
|
+
return new E.init(u, o / 2);
|
|
842
841
|
}
|
|
843
842
|
}, f = a.Latin1 = {
|
|
844
843
|
/**
|
|
@@ -855,11 +854,11 @@ function M() {
|
|
|
855
854
|
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
856
855
|
*/
|
|
857
856
|
stringify: function(i) {
|
|
858
|
-
for (var o = i.words,
|
|
857
|
+
for (var o = i.words, u = i.sigBytes, m = [], g = 0; g < u; g++) {
|
|
859
858
|
var y = o[g >>> 2] >>> 24 - g % 4 * 8 & 255;
|
|
860
|
-
|
|
859
|
+
m.push(String.fromCharCode(y));
|
|
861
860
|
}
|
|
862
|
-
return
|
|
861
|
+
return m.join("");
|
|
863
862
|
},
|
|
864
863
|
/**
|
|
865
864
|
* Converts a Latin1 string to a word array.
|
|
@@ -875,9 +874,9 @@ function M() {
|
|
|
875
874
|
* var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
|
|
876
875
|
*/
|
|
877
876
|
parse: function(i) {
|
|
878
|
-
for (var o = i.length,
|
|
879
|
-
|
|
880
|
-
return new E.init(
|
|
877
|
+
for (var o = i.length, u = [], m = 0; m < o; m++)
|
|
878
|
+
u[m >>> 2] |= (i.charCodeAt(m) & 255) << 24 - m % 4 * 8;
|
|
879
|
+
return new E.init(u, o);
|
|
881
880
|
}
|
|
882
881
|
}, p = a.Utf8 = {
|
|
883
882
|
/**
|
|
@@ -955,13 +954,13 @@ function M() {
|
|
|
955
954
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
956
955
|
*/
|
|
957
956
|
_process: function(i) {
|
|
958
|
-
var o,
|
|
957
|
+
var o, u = this._data, m = u.words, g = u.sigBytes, y = this.blockSize, k = y * 4, R = g / k;
|
|
959
958
|
i ? R = e.ceil(R) : R = e.max((R | 0) - this._minBufferSize, 0);
|
|
960
959
|
var F = R * y, w = e.min(F * 4, g);
|
|
961
960
|
if (F) {
|
|
962
961
|
for (var H = 0; H < F; H += y)
|
|
963
|
-
this._doProcessBlock(
|
|
964
|
-
o =
|
|
962
|
+
this._doProcessBlock(m, H);
|
|
963
|
+
o = m.splice(0, F), u.sigBytes -= w;
|
|
965
964
|
}
|
|
966
965
|
return new E.init(o, w);
|
|
967
966
|
},
|
|
@@ -1056,8 +1055,8 @@ function M() {
|
|
|
1056
1055
|
* var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
|
|
1057
1056
|
*/
|
|
1058
1057
|
_createHelper: function(i) {
|
|
1059
|
-
return function(o,
|
|
1060
|
-
return new i.init(
|
|
1058
|
+
return function(o, u) {
|
|
1059
|
+
return new i.init(u).finalize(o);
|
|
1061
1060
|
};
|
|
1062
1061
|
},
|
|
1063
1062
|
/**
|
|
@@ -1074,8 +1073,8 @@ function M() {
|
|
|
1074
1073
|
* var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
|
|
1075
1074
|
*/
|
|
1076
1075
|
_createHmacHelper: function(i) {
|
|
1077
|
-
return function(o,
|
|
1078
|
-
return new D.HMAC.init(i,
|
|
1076
|
+
return function(o, u) {
|
|
1077
|
+
return new D.HMAC.init(i, u).finalize(o);
|
|
1079
1078
|
};
|
|
1080
1079
|
}
|
|
1081
1080
|
});
|
|
@@ -1084,17 +1083,17 @@ function M() {
|
|
|
1084
1083
|
})(Math);
|
|
1085
1084
|
return t;
|
|
1086
1085
|
});
|
|
1087
|
-
})(
|
|
1086
|
+
})(y0)), y0.exports;
|
|
1088
1087
|
}
|
|
1089
|
-
var
|
|
1088
|
+
var w0 = { exports: {} }, vt = w0.exports, Lr;
|
|
1090
1089
|
function ur() {
|
|
1091
|
-
return Lr || (Lr = 1, (function(r,
|
|
1090
|
+
return Lr || (Lr = 1, (function(r, h) {
|
|
1092
1091
|
(function(t, e) {
|
|
1093
1092
|
r.exports = e(M());
|
|
1094
1093
|
})(vt, function(t) {
|
|
1095
1094
|
return (function(e) {
|
|
1096
|
-
var
|
|
1097
|
-
C.Word =
|
|
1095
|
+
var d = t, v = d.lib, b = v.Base, B = v.WordArray, C = d.x64 = {};
|
|
1096
|
+
C.Word = b.extend({
|
|
1098
1097
|
/**
|
|
1099
1098
|
* Initializes a newly created 64-bit word.
|
|
1100
1099
|
*
|
|
@@ -1257,7 +1256,7 @@ function ur() {
|
|
|
1257
1256
|
// var high = (this.high + word.high + carry) | 0;
|
|
1258
1257
|
// return X64Word.create(high, low);
|
|
1259
1258
|
// }
|
|
1260
|
-
}), C.WordArray =
|
|
1259
|
+
}), C.WordArray = b.extend({
|
|
1261
1260
|
/**
|
|
1262
1261
|
* Initializes a newly created word array.
|
|
1263
1262
|
*
|
|
@@ -1307,46 +1306,46 @@ function ur() {
|
|
|
1307
1306
|
* var clone = x64WordArray.clone();
|
|
1308
1307
|
*/
|
|
1309
1308
|
clone: function() {
|
|
1310
|
-
for (var x =
|
|
1309
|
+
for (var x = b.clone.call(this), n = x.words = this.words.slice(0), E = n.length, a = 0; a < E; a++)
|
|
1311
1310
|
n[a] = n[a].clone();
|
|
1312
1311
|
return x;
|
|
1313
1312
|
}
|
|
1314
1313
|
});
|
|
1315
1314
|
})(), t;
|
|
1316
1315
|
});
|
|
1317
|
-
})(
|
|
1316
|
+
})(w0)), w0.exports;
|
|
1318
1317
|
}
|
|
1319
|
-
var
|
|
1318
|
+
var k0 = { exports: {} }, pt = k0.exports, Or;
|
|
1320
1319
|
function Bt() {
|
|
1321
|
-
return Or || (Or = 1, (function(r,
|
|
1320
|
+
return Or || (Or = 1, (function(r, h) {
|
|
1322
1321
|
(function(t, e) {
|
|
1323
1322
|
r.exports = e(M());
|
|
1324
1323
|
})(pt, function(t) {
|
|
1325
1324
|
return (function() {
|
|
1326
1325
|
if (typeof ArrayBuffer == "function") {
|
|
1327
|
-
var e = t,
|
|
1326
|
+
var e = t, d = e.lib, v = d.WordArray, b = v.init, B = v.init = function(C) {
|
|
1328
1327
|
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) {
|
|
1329
1328
|
for (var x = C.byteLength, n = [], E = 0; E < x; E++)
|
|
1330
1329
|
n[E >>> 2] |= C[E] << 24 - E % 4 * 8;
|
|
1331
|
-
|
|
1330
|
+
b.call(this, n, x);
|
|
1332
1331
|
} else
|
|
1333
|
-
|
|
1332
|
+
b.apply(this, arguments);
|
|
1334
1333
|
};
|
|
1335
|
-
B.prototype =
|
|
1334
|
+
B.prototype = v;
|
|
1336
1335
|
}
|
|
1337
1336
|
})(), t.lib.WordArray;
|
|
1338
1337
|
});
|
|
1339
|
-
})(
|
|
1338
|
+
})(k0)), k0.exports;
|
|
1340
1339
|
}
|
|
1341
|
-
var
|
|
1340
|
+
var S0 = { exports: {} }, Ct = S0.exports, qr;
|
|
1342
1341
|
function Et() {
|
|
1343
|
-
return qr || (qr = 1, (function(r,
|
|
1342
|
+
return qr || (qr = 1, (function(r, h) {
|
|
1344
1343
|
(function(t, e) {
|
|
1345
1344
|
r.exports = e(M());
|
|
1346
1345
|
})(Ct, function(t) {
|
|
1347
1346
|
return (function() {
|
|
1348
|
-
var e = t,
|
|
1349
|
-
|
|
1347
|
+
var e = t, d = e.lib, v = d.WordArray, b = e.enc;
|
|
1348
|
+
b.Utf16 = b.Utf16BE = {
|
|
1350
1349
|
/**
|
|
1351
1350
|
* Converts a word array to a UTF-16 BE string.
|
|
1352
1351
|
*
|
|
@@ -1383,9 +1382,9 @@ function Et() {
|
|
|
1383
1382
|
parse: function(C) {
|
|
1384
1383
|
for (var x = C.length, n = [], E = 0; E < x; E++)
|
|
1385
1384
|
n[E >>> 1] |= C.charCodeAt(E) << 16 - E % 2 * 16;
|
|
1386
|
-
return
|
|
1385
|
+
return v.create(n, x * 2);
|
|
1387
1386
|
}
|
|
1388
|
-
},
|
|
1387
|
+
}, b.Utf16LE = {
|
|
1389
1388
|
/**
|
|
1390
1389
|
* Converts a word array to a UTF-16 LE string.
|
|
1391
1390
|
*
|
|
@@ -1422,7 +1421,7 @@ function Et() {
|
|
|
1422
1421
|
parse: function(C) {
|
|
1423
1422
|
for (var x = C.length, n = [], E = 0; E < x; E++)
|
|
1424
1423
|
n[E >>> 1] |= B(C.charCodeAt(E) << 16 - E % 2 * 16);
|
|
1425
|
-
return
|
|
1424
|
+
return v.create(n, x * 2);
|
|
1426
1425
|
}
|
|
1427
1426
|
};
|
|
1428
1427
|
function B(C) {
|
|
@@ -1430,17 +1429,17 @@ function Et() {
|
|
|
1430
1429
|
}
|
|
1431
1430
|
})(), t.enc.Utf16;
|
|
1432
1431
|
});
|
|
1433
|
-
})(
|
|
1432
|
+
})(S0)), S0.exports;
|
|
1434
1433
|
}
|
|
1435
|
-
var
|
|
1434
|
+
var H0 = { exports: {} }, At = H0.exports, Tr;
|
|
1436
1435
|
function i0() {
|
|
1437
|
-
return Tr || (Tr = 1, (function(r,
|
|
1436
|
+
return Tr || (Tr = 1, (function(r, h) {
|
|
1438
1437
|
(function(t, e) {
|
|
1439
1438
|
r.exports = e(M());
|
|
1440
1439
|
})(At, function(t) {
|
|
1441
1440
|
return (function() {
|
|
1442
|
-
var e = t,
|
|
1443
|
-
|
|
1441
|
+
var e = t, d = e.lib, v = d.WordArray, b = e.enc;
|
|
1442
|
+
b.Base64 = {
|
|
1444
1443
|
/**
|
|
1445
1444
|
* Converts a word array to a Base64 string.
|
|
1446
1445
|
*
|
|
@@ -1501,21 +1500,21 @@ function i0() {
|
|
|
1501
1500
|
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, p = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, l = f | p;
|
|
1502
1501
|
E[a >>> 2] |= l << 24 - a % 4 * 8, a++;
|
|
1503
1502
|
}
|
|
1504
|
-
return
|
|
1503
|
+
return v.create(E, a);
|
|
1505
1504
|
}
|
|
1506
1505
|
})(), t.enc.Base64;
|
|
1507
1506
|
});
|
|
1508
|
-
})(
|
|
1507
|
+
})(H0)), H0.exports;
|
|
1509
1508
|
}
|
|
1510
|
-
var
|
|
1509
|
+
var $0 = { exports: {} }, Ft = $0.exports, Mr;
|
|
1511
1510
|
function gt() {
|
|
1512
|
-
return Mr || (Mr = 1, (function(r,
|
|
1511
|
+
return Mr || (Mr = 1, (function(r, h) {
|
|
1513
1512
|
(function(t, e) {
|
|
1514
1513
|
r.exports = e(M());
|
|
1515
1514
|
})(Ft, function(t) {
|
|
1516
1515
|
return (function() {
|
|
1517
|
-
var e = t,
|
|
1518
|
-
|
|
1516
|
+
var e = t, d = e.lib, v = d.WordArray, b = e.enc;
|
|
1517
|
+
b.Base64url = {
|
|
1519
1518
|
/**
|
|
1520
1519
|
* Converts a word array to a Base64url string.
|
|
1521
1520
|
*
|
|
@@ -1538,10 +1537,10 @@ function gt() {
|
|
|
1538
1537
|
for (var s = [], f = 0; f < E; f += 3)
|
|
1539
1538
|
for (var p = n[f >>> 2] >>> 24 - f % 4 * 8 & 255, l = n[f + 1 >>> 2] >>> 24 - (f + 1) % 4 * 8 & 255, D = n[f + 2 >>> 2] >>> 24 - (f + 2) % 4 * 8 & 255, i = p << 16 | l << 8 | D, o = 0; o < 4 && f + o * 0.75 < E; o++)
|
|
1540
1539
|
s.push(a.charAt(i >>> 6 * (3 - o) & 63));
|
|
1541
|
-
var
|
|
1542
|
-
if (
|
|
1540
|
+
var u = a.charAt(64);
|
|
1541
|
+
if (u)
|
|
1543
1542
|
for (; s.length % 4; )
|
|
1544
|
-
s.push(
|
|
1543
|
+
s.push(u);
|
|
1545
1544
|
return s.join("");
|
|
1546
1545
|
},
|
|
1547
1546
|
/**
|
|
@@ -1583,27 +1582,27 @@ function gt() {
|
|
|
1583
1582
|
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, p = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, l = f | p;
|
|
1584
1583
|
E[a >>> 2] |= l << 24 - a % 4 * 8, a++;
|
|
1585
1584
|
}
|
|
1586
|
-
return
|
|
1585
|
+
return v.create(E, a);
|
|
1587
1586
|
}
|
|
1588
1587
|
})(), t.enc.Base64url;
|
|
1589
1588
|
});
|
|
1590
|
-
})(
|
|
1589
|
+
})($0)), $0.exports;
|
|
1591
1590
|
}
|
|
1592
|
-
var
|
|
1591
|
+
var R0 = { exports: {} }, Dt = R0.exports, Nr;
|
|
1593
1592
|
function s0() {
|
|
1594
|
-
return Nr || (Nr = 1, (function(r,
|
|
1593
|
+
return Nr || (Nr = 1, (function(r, h) {
|
|
1595
1594
|
(function(t, e) {
|
|
1596
1595
|
r.exports = e(M());
|
|
1597
1596
|
})(Dt, function(t) {
|
|
1598
1597
|
return (function(e) {
|
|
1599
|
-
var
|
|
1598
|
+
var d = t, v = d.lib, b = v.WordArray, B = v.Hasher, C = d.algo, x = [];
|
|
1600
1599
|
(function() {
|
|
1601
1600
|
for (var p = 0; p < 64; p++)
|
|
1602
1601
|
x[p] = e.abs(e.sin(p + 1)) * 4294967296 | 0;
|
|
1603
1602
|
})();
|
|
1604
1603
|
var n = C.MD5 = B.extend({
|
|
1605
1604
|
_doReset: function() {
|
|
1606
|
-
this._hash = new
|
|
1605
|
+
this._hash = new b.init([
|
|
1607
1606
|
1732584193,
|
|
1608
1607
|
4023233417,
|
|
1609
1608
|
2562383102,
|
|
@@ -1615,56 +1614,56 @@ function s0() {
|
|
|
1615
1614
|
var i = l + D, o = p[i];
|
|
1616
1615
|
p[i] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360;
|
|
1617
1616
|
}
|
|
1618
|
-
var
|
|
1619
|
-
S = E(S, c, A, _,
|
|
1617
|
+
var u = this._hash.words, m = p[l + 0], g = p[l + 1], y = p[l + 2], k = p[l + 3], R = p[l + 4], F = p[l + 5], w = p[l + 6], H = p[l + 7], $ = p[l + 8], W = p[l + 9], O = p[l + 10], q = p[l + 11], U = p[l + 12], T = p[l + 13], N = p[l + 14], j = p[l + 15], S = u[0], c = u[1], A = u[2], _ = u[3];
|
|
1618
|
+
S = E(S, c, A, _, m, 7, x[0]), _ = E(_, S, c, A, g, 12, x[1]), A = E(A, _, S, c, y, 17, x[2]), c = E(c, A, _, S, k, 22, x[3]), S = E(S, c, A, _, R, 7, x[4]), _ = E(_, S, c, A, F, 12, x[5]), A = E(A, _, S, c, w, 17, x[6]), c = E(c, A, _, S, H, 22, x[7]), S = E(S, c, A, _, $, 7, x[8]), _ = E(_, S, c, A, W, 12, x[9]), A = E(A, _, S, c, O, 17, x[10]), c = E(c, A, _, S, q, 22, x[11]), S = E(S, c, A, _, U, 7, x[12]), _ = E(_, S, c, A, T, 12, x[13]), A = E(A, _, S, c, N, 17, x[14]), c = E(c, A, _, S, j, 22, x[15]), S = a(S, c, A, _, g, 5, x[16]), _ = a(_, S, c, A, w, 9, x[17]), A = a(A, _, S, c, q, 14, x[18]), c = a(c, A, _, S, m, 20, x[19]), S = a(S, c, A, _, F, 5, x[20]), _ = a(_, S, c, A, O, 9, x[21]), A = a(A, _, S, c, j, 14, x[22]), c = a(c, A, _, S, R, 20, x[23]), S = a(S, c, A, _, W, 5, x[24]), _ = a(_, S, c, A, N, 9, x[25]), A = a(A, _, S, c, k, 14, x[26]), c = a(c, A, _, S, $, 20, x[27]), S = a(S, c, A, _, T, 5, x[28]), _ = a(_, S, c, A, y, 9, x[29]), A = a(A, _, S, c, H, 14, x[30]), c = a(c, A, _, S, U, 20, x[31]), S = s(S, c, A, _, F, 4, x[32]), _ = s(_, S, c, A, $, 11, x[33]), A = s(A, _, S, c, q, 16, x[34]), c = s(c, A, _, S, N, 23, x[35]), S = s(S, c, A, _, g, 4, x[36]), _ = s(_, S, c, A, R, 11, x[37]), A = s(A, _, S, c, H, 16, x[38]), c = s(c, A, _, S, O, 23, x[39]), S = s(S, c, A, _, T, 4, x[40]), _ = s(_, S, c, A, m, 11, x[41]), A = s(A, _, S, c, k, 16, x[42]), c = s(c, A, _, S, w, 23, x[43]), S = s(S, c, A, _, W, 4, x[44]), _ = s(_, S, c, A, U, 11, x[45]), A = s(A, _, S, c, j, 16, x[46]), c = s(c, A, _, S, y, 23, x[47]), S = f(S, c, A, _, m, 6, x[48]), _ = f(_, S, c, A, H, 10, x[49]), A = f(A, _, S, c, N, 15, x[50]), c = f(c, A, _, S, F, 21, x[51]), S = f(S, c, A, _, U, 6, x[52]), _ = f(_, S, c, A, k, 10, x[53]), A = f(A, _, S, c, O, 15, x[54]), c = f(c, A, _, S, g, 21, x[55]), S = f(S, c, A, _, $, 6, x[56]), _ = f(_, S, c, A, j, 10, x[57]), A = f(A, _, S, c, w, 15, x[58]), c = f(c, A, _, S, T, 21, x[59]), S = f(S, c, A, _, R, 6, x[60]), _ = f(_, S, c, A, q, 10, x[61]), A = f(A, _, S, c, y, 15, x[62]), c = f(c, A, _, S, W, 21, x[63]), u[0] = u[0] + S | 0, u[1] = u[1] + c | 0, u[2] = u[2] + A | 0, u[3] = u[3] + _ | 0;
|
|
1620
1619
|
},
|
|
1621
1620
|
_doFinalize: function() {
|
|
1622
1621
|
var p = this._data, l = p.words, D = this._nDataBytes * 8, i = p.sigBytes * 8;
|
|
1623
1622
|
l[i >>> 5] |= 128 << 24 - i % 32;
|
|
1624
|
-
var o = e.floor(D / 4294967296),
|
|
1625
|
-
l[(i + 64 >>> 9 << 4) + 15] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, l[(i + 64 >>> 9 << 4) + 14] = (
|
|
1626
|
-
for (var
|
|
1623
|
+
var o = e.floor(D / 4294967296), u = D;
|
|
1624
|
+
l[(i + 64 >>> 9 << 4) + 15] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, l[(i + 64 >>> 9 << 4) + 14] = (u << 8 | u >>> 24) & 16711935 | (u << 24 | u >>> 8) & 4278255360, p.sigBytes = (l.length + 1) * 4, this._process();
|
|
1625
|
+
for (var m = this._hash, g = m.words, y = 0; y < 4; y++) {
|
|
1627
1626
|
var k = g[y];
|
|
1628
1627
|
g[y] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
|
|
1629
1628
|
}
|
|
1630
|
-
return
|
|
1629
|
+
return m;
|
|
1631
1630
|
},
|
|
1632
1631
|
clone: function() {
|
|
1633
1632
|
var p = B.clone.call(this);
|
|
1634
1633
|
return p._hash = this._hash.clone(), p;
|
|
1635
1634
|
}
|
|
1636
1635
|
});
|
|
1637
|
-
function E(p, l, D, i, o,
|
|
1638
|
-
var g = p + (l & D | ~l & i) + o +
|
|
1639
|
-
return (g <<
|
|
1636
|
+
function E(p, l, D, i, o, u, m) {
|
|
1637
|
+
var g = p + (l & D | ~l & i) + o + m;
|
|
1638
|
+
return (g << u | g >>> 32 - u) + l;
|
|
1640
1639
|
}
|
|
1641
|
-
function a(p, l, D, i, o,
|
|
1642
|
-
var g = p + (l & i | D & ~i) + o +
|
|
1643
|
-
return (g <<
|
|
1640
|
+
function a(p, l, D, i, o, u, m) {
|
|
1641
|
+
var g = p + (l & i | D & ~i) + o + m;
|
|
1642
|
+
return (g << u | g >>> 32 - u) + l;
|
|
1644
1643
|
}
|
|
1645
|
-
function s(p, l, D, i, o,
|
|
1646
|
-
var g = p + (l ^ D ^ i) + o +
|
|
1647
|
-
return (g <<
|
|
1644
|
+
function s(p, l, D, i, o, u, m) {
|
|
1645
|
+
var g = p + (l ^ D ^ i) + o + m;
|
|
1646
|
+
return (g << u | g >>> 32 - u) + l;
|
|
1648
1647
|
}
|
|
1649
|
-
function f(p, l, D, i, o,
|
|
1650
|
-
var g = p + (D ^ (l | ~i)) + o +
|
|
1651
|
-
return (g <<
|
|
1648
|
+
function f(p, l, D, i, o, u, m) {
|
|
1649
|
+
var g = p + (D ^ (l | ~i)) + o + m;
|
|
1650
|
+
return (g << u | g >>> 32 - u) + l;
|
|
1652
1651
|
}
|
|
1653
|
-
|
|
1652
|
+
d.MD5 = B._createHelper(n), d.HmacMD5 = B._createHmacHelper(n);
|
|
1654
1653
|
})(Math), t.MD5;
|
|
1655
1654
|
});
|
|
1656
|
-
})(
|
|
1655
|
+
})(R0)), R0.exports;
|
|
1657
1656
|
}
|
|
1658
|
-
var
|
|
1657
|
+
var P0 = { exports: {} }, mt = P0.exports, Ur;
|
|
1659
1658
|
function ye() {
|
|
1660
|
-
return Ur || (Ur = 1, (function(r,
|
|
1659
|
+
return Ur || (Ur = 1, (function(r, h) {
|
|
1661
1660
|
(function(t, e) {
|
|
1662
1661
|
r.exports = e(M());
|
|
1663
|
-
})(
|
|
1662
|
+
})(mt, function(t) {
|
|
1664
1663
|
return (function() {
|
|
1665
|
-
var e = t,
|
|
1664
|
+
var e = t, d = e.lib, v = d.WordArray, b = d.Hasher, B = e.algo, C = [], x = B.SHA1 = b.extend({
|
|
1666
1665
|
_doReset: function() {
|
|
1667
|
-
this._hash = new
|
|
1666
|
+
this._hash = new v.init([
|
|
1668
1667
|
1732584193,
|
|
1669
1668
|
4023233417,
|
|
1670
1669
|
2562383102,
|
|
@@ -1680,8 +1679,8 @@ function ye() {
|
|
|
1680
1679
|
var o = C[i - 3] ^ C[i - 8] ^ C[i - 14] ^ C[i - 16];
|
|
1681
1680
|
C[i] = o << 1 | o >>> 31;
|
|
1682
1681
|
}
|
|
1683
|
-
var
|
|
1684
|
-
i < 20 ?
|
|
1682
|
+
var u = (s << 5 | s >>> 27) + D + C[i];
|
|
1683
|
+
i < 20 ? u += (f & p | ~f & l) + 1518500249 : i < 40 ? u += (f ^ p ^ l) + 1859775393 : i < 60 ? u += (f & p | f & l | p & l) - 1894007588 : u += (f ^ p ^ l) - 899497514, D = l, l = p, p = f << 30 | f >>> 2, f = s, s = u;
|
|
1685
1684
|
}
|
|
1686
1685
|
a[0] = a[0] + s | 0, a[1] = a[1] + f | 0, a[2] = a[2] + p | 0, a[3] = a[3] + l | 0, a[4] = a[4] + D | 0;
|
|
1687
1686
|
},
|
|
@@ -1690,23 +1689,23 @@ function ye() {
|
|
|
1690
1689
|
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;
|
|
1691
1690
|
},
|
|
1692
1691
|
clone: function() {
|
|
1693
|
-
var n =
|
|
1692
|
+
var n = b.clone.call(this);
|
|
1694
1693
|
return n._hash = this._hash.clone(), n;
|
|
1695
1694
|
}
|
|
1696
1695
|
});
|
|
1697
|
-
e.SHA1 =
|
|
1696
|
+
e.SHA1 = b._createHelper(x), e.HmacSHA1 = b._createHmacHelper(x);
|
|
1698
1697
|
})(), t.SHA1;
|
|
1699
1698
|
});
|
|
1700
|
-
})(
|
|
1699
|
+
})(P0)), P0.exports;
|
|
1701
1700
|
}
|
|
1702
|
-
var W0 = { exports: {} },
|
|
1701
|
+
var W0 = { exports: {} }, bt = W0.exports, jr;
|
|
1703
1702
|
function Er() {
|
|
1704
|
-
return jr || (jr = 1, (function(r,
|
|
1703
|
+
return jr || (jr = 1, (function(r, h) {
|
|
1705
1704
|
(function(t, e) {
|
|
1706
1705
|
r.exports = e(M());
|
|
1707
|
-
})(
|
|
1706
|
+
})(bt, function(t) {
|
|
1708
1707
|
return (function(e) {
|
|
1709
|
-
var
|
|
1708
|
+
var d = t, v = d.lib, b = v.WordArray, B = v.Hasher, C = d.algo, x = [], n = [];
|
|
1710
1709
|
(function() {
|
|
1711
1710
|
function s(D) {
|
|
1712
1711
|
for (var i = e.sqrt(D), o = 2; o <= i; o++)
|
|
@@ -1722,20 +1721,20 @@ function Er() {
|
|
|
1722
1721
|
})();
|
|
1723
1722
|
var E = [], a = C.SHA256 = B.extend({
|
|
1724
1723
|
_doReset: function() {
|
|
1725
|
-
this._hash = new
|
|
1724
|
+
this._hash = new b.init(x.slice(0));
|
|
1726
1725
|
},
|
|
1727
1726
|
_doProcessBlock: function(s, f) {
|
|
1728
|
-
for (var p = this._hash.words, l = p[0], D = p[1], i = p[2], o = p[3],
|
|
1727
|
+
for (var p = this._hash.words, l = p[0], D = p[1], i = p[2], o = p[3], u = p[4], m = p[5], g = p[6], y = p[7], k = 0; k < 64; k++) {
|
|
1729
1728
|
if (k < 16)
|
|
1730
1729
|
E[k] = s[f + k] | 0;
|
|
1731
1730
|
else {
|
|
1732
1731
|
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;
|
|
1733
1732
|
E[k] = F + E[k - 7] + H + E[k - 16];
|
|
1734
1733
|
}
|
|
1735
|
-
var $ =
|
|
1736
|
-
y = g, g =
|
|
1734
|
+
var $ = u & m ^ ~u & g, W = l & D ^ l & i ^ D & i, O = (l << 30 | l >>> 2) ^ (l << 19 | l >>> 13) ^ (l << 10 | l >>> 22), q = (u << 26 | u >>> 6) ^ (u << 21 | u >>> 11) ^ (u << 7 | u >>> 25), U = y + q + $ + n[k] + E[k], T = O + W;
|
|
1735
|
+
y = g, g = m, m = u, u = o + U | 0, o = i, i = D, D = l, l = U + T | 0;
|
|
1737
1736
|
}
|
|
1738
|
-
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] +
|
|
1737
|
+
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] + u | 0, p[5] = p[5] + m | 0, p[6] = p[6] + g | 0, p[7] = p[7] + y | 0;
|
|
1739
1738
|
},
|
|
1740
1739
|
_doFinalize: function() {
|
|
1741
1740
|
var s = this._data, f = s.words, p = this._nDataBytes * 8, l = s.sigBytes * 8;
|
|
@@ -1746,21 +1745,21 @@ function Er() {
|
|
|
1746
1745
|
return s._hash = this._hash.clone(), s;
|
|
1747
1746
|
}
|
|
1748
1747
|
});
|
|
1749
|
-
|
|
1748
|
+
d.SHA256 = B._createHelper(a), d.HmacSHA256 = B._createHmacHelper(a);
|
|
1750
1749
|
})(Math), t.SHA256;
|
|
1751
1750
|
});
|
|
1752
1751
|
})(W0)), W0.exports;
|
|
1753
1752
|
}
|
|
1754
|
-
var
|
|
1753
|
+
var z0 = { exports: {} }, _t = z0.exports, Gr;
|
|
1755
1754
|
function yt() {
|
|
1756
|
-
return Gr || (Gr = 1, (function(r,
|
|
1757
|
-
(function(t, e,
|
|
1755
|
+
return Gr || (Gr = 1, (function(r, h) {
|
|
1756
|
+
(function(t, e, d) {
|
|
1758
1757
|
r.exports = e(M(), Er());
|
|
1759
1758
|
})(_t, function(t) {
|
|
1760
1759
|
return (function() {
|
|
1761
|
-
var e = t,
|
|
1760
|
+
var e = t, d = e.lib, v = d.WordArray, b = e.algo, B = b.SHA256, C = b.SHA224 = B.extend({
|
|
1762
1761
|
_doReset: function() {
|
|
1763
|
-
this._hash = new
|
|
1762
|
+
this._hash = new v.init([
|
|
1764
1763
|
3238371032,
|
|
1765
1764
|
914150663,
|
|
1766
1765
|
812702999,
|
|
@@ -1779,16 +1778,16 @@ function yt() {
|
|
|
1779
1778
|
e.SHA224 = B._createHelper(C), e.HmacSHA224 = B._createHmacHelper(C);
|
|
1780
1779
|
})(), t.SHA224;
|
|
1781
1780
|
});
|
|
1782
|
-
})(
|
|
1781
|
+
})(z0)), z0.exports;
|
|
1783
1782
|
}
|
|
1784
|
-
var
|
|
1783
|
+
var I0 = { exports: {} }, wt = I0.exports, Kr;
|
|
1785
1784
|
function we() {
|
|
1786
|
-
return Kr || (Kr = 1, (function(r,
|
|
1787
|
-
(function(t, e,
|
|
1785
|
+
return Kr || (Kr = 1, (function(r, h) {
|
|
1786
|
+
(function(t, e, d) {
|
|
1788
1787
|
r.exports = e(M(), ur());
|
|
1789
1788
|
})(wt, function(t) {
|
|
1790
1789
|
return (function() {
|
|
1791
|
-
var e = t,
|
|
1790
|
+
var e = t, d = e.lib, v = d.Hasher, b = e.x64, B = b.Word, C = b.WordArray, x = e.algo;
|
|
1792
1791
|
function n() {
|
|
1793
1792
|
return B.create.apply(B, arguments);
|
|
1794
1793
|
}
|
|
@@ -1878,7 +1877,7 @@ function we() {
|
|
|
1878
1877
|
for (var f = 0; f < 80; f++)
|
|
1879
1878
|
a[f] = n();
|
|
1880
1879
|
})();
|
|
1881
|
-
var s = x.SHA512 =
|
|
1880
|
+
var s = x.SHA512 = v.extend({
|
|
1882
1881
|
_doReset: function() {
|
|
1883
1882
|
this._hash = new C.init([
|
|
1884
1883
|
new B.init(1779033703, 4089235720),
|
|
@@ -1892,18 +1891,18 @@ function we() {
|
|
|
1892
1891
|
]);
|
|
1893
1892
|
},
|
|
1894
1893
|
_doProcessBlock: function(f, p) {
|
|
1895
|
-
for (var l = this._hash.words, D = l[0], i = l[1], o = l[2],
|
|
1896
|
-
var
|
|
1897
|
-
if (
|
|
1898
|
-
x0 =
|
|
1894
|
+
for (var l = this._hash.words, D = l[0], i = l[1], o = l[2], u = l[3], m = l[4], g = l[5], y = l[6], k = l[7], R = D.high, F = D.low, w = i.high, H = i.low, $ = o.high, W = o.low, O = u.high, q = u.low, U = m.high, T = m.low, N = g.high, j = g.low, S = y.high, c = y.low, A = k.high, _ = k.low, z = R, P = F, L = w, I = H, Z = $, Q = W, o0 = O, K = q, G = U, Y = T, r0 = N, c0 = j, g0 = S, v0 = c, dr = A, p0 = _, e0 = 0; e0 < 80; e0++) {
|
|
1895
|
+
var J, x0, D0 = a[e0];
|
|
1896
|
+
if (e0 < 16)
|
|
1897
|
+
x0 = D0.high = f[p + e0 * 2] | 0, J = D0.low = f[p + e0 * 2 + 1] | 0;
|
|
1899
1898
|
else {
|
|
1900
|
-
var gr = a[
|
|
1901
|
-
|
|
1899
|
+
var gr = a[e0 - 15], f0 = gr.high, B0 = gr.low, Re = (f0 >>> 1 | B0 << 31) ^ (f0 >>> 8 | B0 << 24) ^ f0 >>> 7, Dr = (B0 >>> 1 | f0 << 31) ^ (B0 >>> 8 | f0 << 24) ^ (B0 >>> 7 | f0 << 25), mr = a[e0 - 2], u0 = mr.high, C0 = mr.low, Pe = (u0 >>> 19 | C0 << 13) ^ (u0 << 3 | C0 >>> 29) ^ u0 >>> 6, br = (C0 >>> 19 | u0 << 13) ^ (C0 << 3 | u0 >>> 29) ^ (C0 >>> 6 | u0 << 26), _r = a[e0 - 7], We = _r.high, ze = _r.low, yr = a[e0 - 16], Ie = yr.high, wr = yr.low;
|
|
1900
|
+
J = Dr + ze, x0 = Re + We + (J >>> 0 < Dr >>> 0 ? 1 : 0), J = J + br, x0 = x0 + Pe + (J >>> 0 < br >>> 0 ? 1 : 0), J = J + wr, x0 = x0 + Ie + (J >>> 0 < wr >>> 0 ? 1 : 0), D0.high = x0, D0.low = J;
|
|
1902
1901
|
}
|
|
1903
|
-
var Le = G &
|
|
1904
|
-
dr =
|
|
1902
|
+
var Le = G & r0 ^ ~G & g0, kr = Y & c0 ^ ~Y & v0, Oe = z & L ^ z & Z ^ L & Z, qe = P & I ^ P & Q ^ I & Q, Te = (z >>> 28 | P << 4) ^ (z << 30 | P >>> 2) ^ (z << 25 | P >>> 7), Sr = (P >>> 28 | z << 4) ^ (P << 30 | z >>> 2) ^ (P << 25 | z >>> 7), Me = (G >>> 14 | Y << 18) ^ (G >>> 18 | Y << 14) ^ (G << 23 | Y >>> 9), Ne = (Y >>> 14 | G << 18) ^ (Y >>> 18 | G << 14) ^ (Y << 23 | G >>> 9), Hr = E[e0], Ue = Hr.high, $r = Hr.low, V = p0 + Ne, n0 = dr + Me + (V >>> 0 < p0 >>> 0 ? 1 : 0), V = V + kr, n0 = n0 + Le + (V >>> 0 < kr >>> 0 ? 1 : 0), V = V + $r, n0 = n0 + Ue + (V >>> 0 < $r >>> 0 ? 1 : 0), V = V + J, n0 = n0 + x0 + (V >>> 0 < J >>> 0 ? 1 : 0), Rr = Sr + qe, je = Te + Oe + (Rr >>> 0 < Sr >>> 0 ? 1 : 0);
|
|
1903
|
+
dr = g0, p0 = v0, g0 = r0, v0 = c0, r0 = G, c0 = Y, Y = K + V | 0, G = o0 + n0 + (Y >>> 0 < K >>> 0 ? 1 : 0) | 0, o0 = Z, K = Q, Z = L, Q = I, L = z, I = P, P = V + Rr | 0, z = n0 + je + (P >>> 0 < V >>> 0 ? 1 : 0) | 0;
|
|
1905
1904
|
}
|
|
1906
|
-
F = D.low = F + P, D.high = R +
|
|
1905
|
+
F = D.low = F + P, D.high = R + z + (F >>> 0 < P >>> 0 ? 1 : 0), H = i.low = H + I, i.high = w + L + (H >>> 0 < I >>> 0 ? 1 : 0), W = o.low = W + Q, o.high = $ + Z + (W >>> 0 < Q >>> 0 ? 1 : 0), q = u.low = q + K, u.high = O + o0 + (q >>> 0 < K >>> 0 ? 1 : 0), T = m.low = T + Y, m.high = U + G + (T >>> 0 < Y >>> 0 ? 1 : 0), j = g.low = j + c0, g.high = N + r0 + (j >>> 0 < c0 >>> 0 ? 1 : 0), c = y.low = c + v0, y.high = S + g0 + (c >>> 0 < v0 >>> 0 ? 1 : 0), _ = k.low = _ + p0, k.high = A + dr + (_ >>> 0 < p0 >>> 0 ? 1 : 0);
|
|
1907
1906
|
},
|
|
1908
1907
|
_doFinalize: function() {
|
|
1909
1908
|
var f = this._data, p = f.words, l = this._nDataBytes * 8, D = f.sigBytes * 8;
|
|
@@ -1912,34 +1911,34 @@ function we() {
|
|
|
1912
1911
|
return i;
|
|
1913
1912
|
},
|
|
1914
1913
|
clone: function() {
|
|
1915
|
-
var f =
|
|
1914
|
+
var f = v.clone.call(this);
|
|
1916
1915
|
return f._hash = this._hash.clone(), f;
|
|
1917
1916
|
},
|
|
1918
1917
|
blockSize: 1024 / 32
|
|
1919
1918
|
});
|
|
1920
|
-
e.SHA512 =
|
|
1919
|
+
e.SHA512 = v._createHelper(s), e.HmacSHA512 = v._createHmacHelper(s);
|
|
1921
1920
|
})(), t.SHA512;
|
|
1922
1921
|
});
|
|
1923
|
-
})(
|
|
1922
|
+
})(I0)), I0.exports;
|
|
1924
1923
|
}
|
|
1925
|
-
var
|
|
1924
|
+
var L0 = { exports: {} }, kt = L0.exports, Xr;
|
|
1926
1925
|
function St() {
|
|
1927
|
-
return Xr || (Xr = 1, (function(r,
|
|
1928
|
-
(function(t, e,
|
|
1926
|
+
return Xr || (Xr = 1, (function(r, h) {
|
|
1927
|
+
(function(t, e, d) {
|
|
1929
1928
|
r.exports = e(M(), ur(), we());
|
|
1930
1929
|
})(kt, function(t) {
|
|
1931
1930
|
return (function() {
|
|
1932
|
-
var e = t,
|
|
1931
|
+
var e = t, d = e.x64, v = d.Word, b = d.WordArray, B = e.algo, C = B.SHA512, x = B.SHA384 = C.extend({
|
|
1933
1932
|
_doReset: function() {
|
|
1934
|
-
this._hash = new
|
|
1935
|
-
new
|
|
1936
|
-
new
|
|
1937
|
-
new
|
|
1938
|
-
new
|
|
1939
|
-
new
|
|
1940
|
-
new
|
|
1941
|
-
new
|
|
1942
|
-
new
|
|
1933
|
+
this._hash = new b.init([
|
|
1934
|
+
new v.init(3418070365, 3238371032),
|
|
1935
|
+
new v.init(1654270250, 914150663),
|
|
1936
|
+
new v.init(2438529370, 812702999),
|
|
1937
|
+
new v.init(355462360, 4144912697),
|
|
1938
|
+
new v.init(1731405415, 4290775857),
|
|
1939
|
+
new v.init(2394180231, 1750603025),
|
|
1940
|
+
new v.init(3675008525, 1694076839),
|
|
1941
|
+
new v.init(1203062813, 3204075428)
|
|
1943
1942
|
]);
|
|
1944
1943
|
},
|
|
1945
1944
|
_doFinalize: function() {
|
|
@@ -1950,32 +1949,32 @@ function St() {
|
|
|
1950
1949
|
e.SHA384 = C._createHelper(x), e.HmacSHA384 = C._createHmacHelper(x);
|
|
1951
1950
|
})(), t.SHA384;
|
|
1952
1951
|
});
|
|
1953
|
-
})(
|
|
1952
|
+
})(L0)), L0.exports;
|
|
1954
1953
|
}
|
|
1955
|
-
var
|
|
1954
|
+
var O0 = { exports: {} }, Ht = O0.exports, Yr;
|
|
1956
1955
|
function $t() {
|
|
1957
|
-
return Yr || (Yr = 1, (function(r,
|
|
1958
|
-
(function(t, e,
|
|
1956
|
+
return Yr || (Yr = 1, (function(r, h) {
|
|
1957
|
+
(function(t, e, d) {
|
|
1959
1958
|
r.exports = e(M(), ur());
|
|
1960
1959
|
})(Ht, function(t) {
|
|
1961
1960
|
return (function(e) {
|
|
1962
|
-
var
|
|
1961
|
+
var d = t, v = d.lib, b = v.WordArray, B = v.Hasher, C = d.x64, x = C.Word, n = d.algo, E = [], a = [], s = [];
|
|
1963
1962
|
(function() {
|
|
1964
1963
|
for (var l = 1, D = 0, i = 0; i < 24; i++) {
|
|
1965
1964
|
E[l + 5 * D] = (i + 1) * (i + 2) / 2 % 64;
|
|
1966
|
-
var o = D % 5,
|
|
1967
|
-
l = o, D =
|
|
1965
|
+
var o = D % 5, u = (2 * l + 3 * D) % 5;
|
|
1966
|
+
l = o, D = u;
|
|
1968
1967
|
}
|
|
1969
1968
|
for (var l = 0; l < 5; l++)
|
|
1970
1969
|
for (var D = 0; D < 5; D++)
|
|
1971
1970
|
a[l + 5 * D] = D + (2 * l + 3 * D) % 5 * 5;
|
|
1972
|
-
for (var
|
|
1971
|
+
for (var m = 1, g = 0; g < 24; g++) {
|
|
1973
1972
|
for (var y = 0, k = 0, R = 0; R < 7; R++) {
|
|
1974
|
-
if (
|
|
1973
|
+
if (m & 1) {
|
|
1975
1974
|
var F = (1 << R) - 1;
|
|
1976
1975
|
F < 32 ? k ^= 1 << F : y ^= 1 << F - 32;
|
|
1977
1976
|
}
|
|
1978
|
-
|
|
1977
|
+
m & 128 ? m = m << 1 ^ 113 : m <<= 1;
|
|
1979
1978
|
}
|
|
1980
1979
|
s[g] = x.create(y, k);
|
|
1981
1980
|
}
|
|
@@ -2003,11 +2002,11 @@ function $t() {
|
|
|
2003
2002
|
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
|
|
2004
2003
|
},
|
|
2005
2004
|
_doProcessBlock: function(l, D) {
|
|
2006
|
-
for (var i = this._state, o = this.blockSize / 2,
|
|
2007
|
-
var
|
|
2008
|
-
|
|
2009
|
-
var y = i[
|
|
2010
|
-
y.high ^= g, y.low ^=
|
|
2005
|
+
for (var i = this._state, o = this.blockSize / 2, u = 0; u < o; u++) {
|
|
2006
|
+
var m = l[D + 2 * u], g = l[D + 2 * u + 1];
|
|
2007
|
+
m = (m << 8 | m >>> 24) & 16711935 | (m << 24 | m >>> 8) & 4278255360, g = (g << 8 | g >>> 24) & 16711935 | (g << 24 | g >>> 8) & 4278255360;
|
|
2008
|
+
var y = i[u];
|
|
2009
|
+
y.high ^= g, y.low ^= m;
|
|
2011
2010
|
}
|
|
2012
2011
|
for (var k = 0; k < 24; k++) {
|
|
2013
2012
|
for (var R = 0; R < 5; R++) {
|
|
@@ -2019,7 +2018,7 @@ function $t() {
|
|
|
2019
2018
|
$.high = F, $.low = w;
|
|
2020
2019
|
}
|
|
2021
2020
|
for (var R = 0; R < 5; R++)
|
|
2022
|
-
for (var
|
|
2021
|
+
for (var W = f[(R + 4) % 5], O = f[(R + 1) % 5], q = O.high, U = O.low, F = W.high ^ (q << 1 | U >>> 31), w = W.low ^ (U << 1 | q >>> 31), H = 0; H < 5; H++) {
|
|
2023
2022
|
var y = i[R + 5 * H];
|
|
2024
2023
|
y.high ^= F, y.low ^= w;
|
|
2025
2024
|
}
|
|
@@ -2033,8 +2032,8 @@ function $t() {
|
|
|
2033
2032
|
A.high = _.high, A.low = _.low;
|
|
2034
2033
|
for (var R = 0; R < 5; R++)
|
|
2035
2034
|
for (var H = 0; H < 5; H++) {
|
|
2036
|
-
var T = R + 5 * H, y = i[T],
|
|
2037
|
-
y.high =
|
|
2035
|
+
var T = R + 5 * H, y = i[T], z = f[T], P = f[(R + 1) % 5 + 5 * H], L = f[(R + 2) % 5 + 5 * H];
|
|
2036
|
+
y.high = z.high ^ ~P.high & L.high, y.low = z.low ^ ~P.low & L.low;
|
|
2038
2037
|
}
|
|
2039
2038
|
var y = i[0], I = s[k];
|
|
2040
2039
|
y.high ^= I.high, y.low ^= I.low;
|
|
@@ -2045,11 +2044,11 @@ function $t() {
|
|
|
2045
2044
|
this._nDataBytes * 8;
|
|
2046
2045
|
var i = l.sigBytes * 8, o = this.blockSize * 32;
|
|
2047
2046
|
D[i >>> 5] |= 1 << 24 - i % 32, D[(e.ceil((i + 1) / o) * o >>> 5) - 1] |= 128, l.sigBytes = D.length * 4, this._process();
|
|
2048
|
-
for (var
|
|
2049
|
-
var R =
|
|
2047
|
+
for (var u = this._state, m = this.cfg.outputLength / 8, g = m / 8, y = [], k = 0; k < g; k++) {
|
|
2048
|
+
var R = u[k], F = R.high, w = R.low;
|
|
2050
2049
|
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);
|
|
2051
2050
|
}
|
|
2052
|
-
return new
|
|
2051
|
+
return new b.init(y, m);
|
|
2053
2052
|
},
|
|
2054
2053
|
clone: function() {
|
|
2055
2054
|
for (var l = B.clone.call(this), D = l._state = this._state.slice(0), i = 0; i < 25; i++)
|
|
@@ -2057,19 +2056,19 @@ function $t() {
|
|
|
2057
2056
|
return l;
|
|
2058
2057
|
}
|
|
2059
2058
|
});
|
|
2060
|
-
|
|
2059
|
+
d.SHA3 = B._createHelper(p), d.HmacSHA3 = B._createHmacHelper(p);
|
|
2061
2060
|
})(Math), t.SHA3;
|
|
2062
2061
|
});
|
|
2063
|
-
})(
|
|
2062
|
+
})(O0)), O0.exports;
|
|
2064
2063
|
}
|
|
2065
|
-
var
|
|
2064
|
+
var q0 = { exports: {} }, Rt = q0.exports, Zr;
|
|
2066
2065
|
function Pt() {
|
|
2067
|
-
return Zr || (Zr = 1, (function(r,
|
|
2066
|
+
return Zr || (Zr = 1, (function(r, h) {
|
|
2068
2067
|
(function(t, e) {
|
|
2069
2068
|
r.exports = e(M());
|
|
2070
2069
|
})(Rt, function(t) {
|
|
2071
2070
|
return (function(e) {
|
|
2072
|
-
var
|
|
2071
|
+
var d = t, v = d.lib, b = v.WordArray, B = v.Hasher, C = d.algo, x = b.create([
|
|
2073
2072
|
0,
|
|
2074
2073
|
1,
|
|
2075
2074
|
2,
|
|
@@ -2150,7 +2149,7 @@ function Pt() {
|
|
|
2150
2149
|
6,
|
|
2151
2150
|
15,
|
|
2152
2151
|
13
|
|
2153
|
-
]), n =
|
|
2152
|
+
]), n = b.create([
|
|
2154
2153
|
5,
|
|
2155
2154
|
14,
|
|
2156
2155
|
7,
|
|
@@ -2231,7 +2230,7 @@ function Pt() {
|
|
|
2231
2230
|
3,
|
|
2232
2231
|
9,
|
|
2233
2232
|
11
|
|
2234
|
-
]), E =
|
|
2233
|
+
]), E = b.create([
|
|
2235
2234
|
11,
|
|
2236
2235
|
14,
|
|
2237
2236
|
15,
|
|
@@ -2312,7 +2311,7 @@ function Pt() {
|
|
|
2312
2311
|
8,
|
|
2313
2312
|
5,
|
|
2314
2313
|
6
|
|
2315
|
-
]), a =
|
|
2314
|
+
]), a = b.create([
|
|
2316
2315
|
8,
|
|
2317
2316
|
9,
|
|
2318
2317
|
9,
|
|
@@ -2393,20 +2392,20 @@ function Pt() {
|
|
|
2393
2392
|
13,
|
|
2394
2393
|
11,
|
|
2395
2394
|
11
|
|
2396
|
-
]), s =
|
|
2395
|
+
]), s = b.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), f = b.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), p = C.RIPEMD160 = B.extend({
|
|
2397
2396
|
_doReset: function() {
|
|
2398
|
-
this._hash =
|
|
2397
|
+
this._hash = b.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2399
2398
|
},
|
|
2400
2399
|
_doProcessBlock: function(g, y) {
|
|
2401
2400
|
for (var k = 0; k < 16; k++) {
|
|
2402
2401
|
var R = y + k, F = g[R];
|
|
2403
2402
|
g[R] = (F << 8 | F >>> 24) & 16711935 | (F << 24 | F >>> 8) & 4278255360;
|
|
2404
2403
|
}
|
|
2405
|
-
var w = this._hash.words, H = s.words, $ = f.words,
|
|
2406
|
-
A = T = w[0], _ = N = w[1],
|
|
2404
|
+
var w = this._hash.words, H = s.words, $ = f.words, W = x.words, O = n.words, q = E.words, U = a.words, T, N, j, S, c, A, _, z, P, L;
|
|
2405
|
+
A = T = w[0], _ = N = w[1], z = j = w[2], P = S = w[3], L = c = w[4];
|
|
2407
2406
|
for (var I, k = 0; k < 80; k += 1)
|
|
2408
|
-
I = T + g[y +
|
|
2409
|
-
I = w[1] + j + P | 0, w[1] = w[2] + S + L | 0, w[2] = w[3] + c + A | 0, w[3] = w[4] + T + _ | 0, w[4] = w[0] + N +
|
|
2407
|
+
I = T + g[y + W[k]] | 0, k < 16 ? I += l(N, j, S) + H[0] : k < 32 ? I += D(N, j, S) + H[1] : k < 48 ? I += i(N, j, S) + H[2] : k < 64 ? I += o(N, j, S) + H[3] : I += u(N, j, S) + H[4], I = I | 0, I = m(I, q[k]), I = I + c | 0, T = c, c = S, S = m(j, 10), j = N, N = I, I = A + g[y + O[k]] | 0, k < 16 ? I += u(_, z, P) + $[0] : k < 32 ? I += o(_, z, P) + $[1] : k < 48 ? I += i(_, z, P) + $[2] : k < 64 ? I += D(_, z, P) + $[3] : I += l(_, z, P) + $[4], I = I | 0, I = m(I, U[k]), I = I + L | 0, A = L, L = P, P = m(z, 10), z = _, _ = I;
|
|
2408
|
+
I = w[1] + j + P | 0, w[1] = w[2] + S + L | 0, w[2] = w[3] + c + A | 0, w[3] = w[4] + T + _ | 0, w[4] = w[0] + N + z | 0, w[0] = I;
|
|
2410
2409
|
},
|
|
2411
2410
|
_doFinalize: function() {
|
|
2412
2411
|
var g = this._data, y = g.words, k = this._nDataBytes * 8, R = g.sigBytes * 8;
|
|
@@ -2434,26 +2433,26 @@ function Pt() {
|
|
|
2434
2433
|
function o(g, y, k) {
|
|
2435
2434
|
return g & k | y & ~k;
|
|
2436
2435
|
}
|
|
2437
|
-
function
|
|
2436
|
+
function u(g, y, k) {
|
|
2438
2437
|
return g ^ (y | ~k);
|
|
2439
2438
|
}
|
|
2440
|
-
function
|
|
2439
|
+
function m(g, y) {
|
|
2441
2440
|
return g << y | g >>> 32 - y;
|
|
2442
2441
|
}
|
|
2443
|
-
|
|
2442
|
+
d.RIPEMD160 = B._createHelper(p), d.HmacRIPEMD160 = B._createHmacHelper(p);
|
|
2444
2443
|
})(), t.RIPEMD160;
|
|
2445
2444
|
});
|
|
2446
|
-
})(
|
|
2445
|
+
})(q0)), q0.exports;
|
|
2447
2446
|
}
|
|
2448
|
-
var
|
|
2447
|
+
var T0 = { exports: {} }, Wt = T0.exports, Qr;
|
|
2449
2448
|
function Ar() {
|
|
2450
|
-
return Qr || (Qr = 1, (function(r,
|
|
2449
|
+
return Qr || (Qr = 1, (function(r, h) {
|
|
2451
2450
|
(function(t, e) {
|
|
2452
2451
|
r.exports = e(M());
|
|
2453
|
-
})(
|
|
2452
|
+
})(Wt, function(t) {
|
|
2454
2453
|
(function() {
|
|
2455
|
-
var e = t,
|
|
2456
|
-
C.HMAC =
|
|
2454
|
+
var e = t, d = e.lib, v = d.Base, b = e.enc, B = b.Utf8, C = e.algo;
|
|
2455
|
+
C.HMAC = v.extend({
|
|
2457
2456
|
/**
|
|
2458
2457
|
* Initializes a newly created HMAC.
|
|
2459
2458
|
*
|
|
@@ -2521,16 +2520,16 @@ function Ar() {
|
|
|
2521
2520
|
});
|
|
2522
2521
|
})();
|
|
2523
2522
|
});
|
|
2524
|
-
})(
|
|
2523
|
+
})(T0)), T0.exports;
|
|
2525
2524
|
}
|
|
2526
|
-
var
|
|
2525
|
+
var M0 = { exports: {} }, zt = M0.exports, Vr;
|
|
2527
2526
|
function It() {
|
|
2528
|
-
return Vr || (Vr = 1, (function(r,
|
|
2529
|
-
(function(t, e,
|
|
2527
|
+
return Vr || (Vr = 1, (function(r, h) {
|
|
2528
|
+
(function(t, e, d) {
|
|
2530
2529
|
r.exports = e(M(), Er(), Ar());
|
|
2531
|
-
})(
|
|
2530
|
+
})(zt, function(t) {
|
|
2532
2531
|
return (function() {
|
|
2533
|
-
var e = t,
|
|
2532
|
+
var e = t, d = e.lib, v = d.Base, b = d.WordArray, B = e.algo, C = B.SHA256, x = B.HMAC, n = B.PBKDF2 = v.extend({
|
|
2534
2533
|
/**
|
|
2535
2534
|
* Configuration options.
|
|
2536
2535
|
*
|
|
@@ -2538,7 +2537,7 @@ function It() {
|
|
|
2538
2537
|
* @property {Hasher} hasher The hasher to use. Default: SHA256
|
|
2539
2538
|
* @property {number} iterations The number of iterations to perform. Default: 250000
|
|
2540
2539
|
*/
|
|
2541
|
-
cfg:
|
|
2540
|
+
cfg: v.extend({
|
|
2542
2541
|
keySize: 128 / 32,
|
|
2543
2542
|
hasher: C,
|
|
2544
2543
|
iterations: 25e4
|
|
@@ -2570,15 +2569,15 @@ function It() {
|
|
|
2570
2569
|
* var key = kdf.compute(password, salt);
|
|
2571
2570
|
*/
|
|
2572
2571
|
compute: function(E, a) {
|
|
2573
|
-
for (var s = this.cfg, f = x.create(s.hasher, E), p =
|
|
2574
|
-
var
|
|
2572
|
+
for (var s = this.cfg, f = x.create(s.hasher, E), p = b.create(), l = b.create([1]), D = p.words, i = l.words, o = s.keySize, u = s.iterations; D.length < o; ) {
|
|
2573
|
+
var m = f.update(a).finalize(l);
|
|
2575
2574
|
f.reset();
|
|
2576
|
-
for (var g =
|
|
2575
|
+
for (var g = m.words, y = g.length, k = m, R = 1; R < u; R++) {
|
|
2577
2576
|
k = f.finalize(k), f.reset();
|
|
2578
2577
|
for (var F = k.words, w = 0; w < y; w++)
|
|
2579
2578
|
g[w] ^= F[w];
|
|
2580
2579
|
}
|
|
2581
|
-
p.concat(
|
|
2580
|
+
p.concat(m), i[0]++;
|
|
2582
2581
|
}
|
|
2583
2582
|
return p.sigBytes = o * 4, p;
|
|
2584
2583
|
}
|
|
@@ -2588,16 +2587,16 @@ function It() {
|
|
|
2588
2587
|
};
|
|
2589
2588
|
})(), t.PBKDF2;
|
|
2590
2589
|
});
|
|
2591
|
-
})(
|
|
2590
|
+
})(M0)), M0.exports;
|
|
2592
2591
|
}
|
|
2593
|
-
var
|
|
2592
|
+
var N0 = { exports: {} }, Lt = N0.exports, Jr;
|
|
2594
2593
|
function a0() {
|
|
2595
|
-
return Jr || (Jr = 1, (function(r,
|
|
2596
|
-
(function(t, e,
|
|
2594
|
+
return Jr || (Jr = 1, (function(r, h) {
|
|
2595
|
+
(function(t, e, d) {
|
|
2597
2596
|
r.exports = e(M(), ye(), Ar());
|
|
2598
2597
|
})(Lt, function(t) {
|
|
2599
2598
|
return (function() {
|
|
2600
|
-
var e = t,
|
|
2599
|
+
var e = t, d = e.lib, v = d.Base, b = d.WordArray, B = e.algo, C = B.MD5, x = B.EvpKDF = v.extend({
|
|
2601
2600
|
/**
|
|
2602
2601
|
* Configuration options.
|
|
2603
2602
|
*
|
|
@@ -2605,7 +2604,7 @@ function a0() {
|
|
|
2605
2604
|
* @property {Hasher} hasher The hash algorithm to use. Default: MD5
|
|
2606
2605
|
* @property {number} iterations The number of iterations to perform. Default: 1
|
|
2607
2606
|
*/
|
|
2608
|
-
cfg:
|
|
2607
|
+
cfg: v.extend({
|
|
2609
2608
|
keySize: 128 / 32,
|
|
2610
2609
|
hasher: C,
|
|
2611
2610
|
iterations: 1
|
|
@@ -2637,7 +2636,7 @@ function a0() {
|
|
|
2637
2636
|
* var key = kdf.compute(password, salt);
|
|
2638
2637
|
*/
|
|
2639
2638
|
compute: function(n, E) {
|
|
2640
|
-
for (var a, s = this.cfg, f = s.hasher.create(), p =
|
|
2639
|
+
for (var a, s = this.cfg, f = s.hasher.create(), p = b.create(), l = p.words, D = s.keySize, i = s.iterations; l.length < D; ) {
|
|
2641
2640
|
a && f.update(a), a = f.update(n).finalize(E), f.reset();
|
|
2642
2641
|
for (var o = 1; o < i; o++)
|
|
2643
2642
|
a = f.finalize(a), f.reset();
|
|
@@ -2651,24 +2650,24 @@ function a0() {
|
|
|
2651
2650
|
};
|
|
2652
2651
|
})(), t.EvpKDF;
|
|
2653
2652
|
});
|
|
2654
|
-
})(
|
|
2653
|
+
})(N0)), N0.exports;
|
|
2655
2654
|
}
|
|
2656
|
-
var
|
|
2655
|
+
var U0 = { exports: {} }, Ot = U0.exports, re;
|
|
2657
2656
|
function X() {
|
|
2658
|
-
return re || (re = 1, (function(r,
|
|
2659
|
-
(function(t, e,
|
|
2657
|
+
return re || (re = 1, (function(r, h) {
|
|
2658
|
+
(function(t, e, d) {
|
|
2660
2659
|
r.exports = e(M(), a0());
|
|
2661
2660
|
})(Ot, function(t) {
|
|
2662
2661
|
t.lib.Cipher || (function(e) {
|
|
2663
|
-
var
|
|
2662
|
+
var d = t, v = d.lib, b = v.Base, B = v.WordArray, C = v.BufferedBlockAlgorithm, x = d.enc;
|
|
2664
2663
|
x.Utf8;
|
|
2665
|
-
var n = x.Base64, E =
|
|
2664
|
+
var n = x.Base64, E = d.algo, a = E.EvpKDF, s = v.Cipher = C.extend({
|
|
2666
2665
|
/**
|
|
2667
2666
|
* Configuration options.
|
|
2668
2667
|
*
|
|
2669
2668
|
* @property {WordArray} iv The IV to use for this operation.
|
|
2670
2669
|
*/
|
|
2671
|
-
cfg:
|
|
2670
|
+
cfg: b.extend(),
|
|
2672
2671
|
/**
|
|
2673
2672
|
* Creates this cipher in encryption mode.
|
|
2674
2673
|
*
|
|
@@ -2784,24 +2783,24 @@ function X() {
|
|
|
2784
2783
|
}
|
|
2785
2784
|
return function(w) {
|
|
2786
2785
|
return {
|
|
2787
|
-
encrypt: function(H, $,
|
|
2788
|
-
return F($).encrypt(w, H, $,
|
|
2786
|
+
encrypt: function(H, $, W) {
|
|
2787
|
+
return F($).encrypt(w, H, $, W);
|
|
2789
2788
|
},
|
|
2790
|
-
decrypt: function(H, $,
|
|
2791
|
-
return F($).decrypt(w, H, $,
|
|
2789
|
+
decrypt: function(H, $, W) {
|
|
2790
|
+
return F($).decrypt(w, H, $, W);
|
|
2792
2791
|
}
|
|
2793
2792
|
};
|
|
2794
2793
|
};
|
|
2795
2794
|
})()
|
|
2796
2795
|
});
|
|
2797
|
-
|
|
2796
|
+
v.StreamCipher = s.extend({
|
|
2798
2797
|
_doFinalize: function() {
|
|
2799
2798
|
var F = this._process(!0);
|
|
2800
2799
|
return F;
|
|
2801
2800
|
},
|
|
2802
2801
|
blockSize: 1
|
|
2803
2802
|
});
|
|
2804
|
-
var f =
|
|
2803
|
+
var f = d.mode = {}, p = v.BlockCipherMode = b.extend({
|
|
2805
2804
|
/**
|
|
2806
2805
|
* Creates this mode for encryption.
|
|
2807
2806
|
*
|
|
@@ -2859,8 +2858,8 @@ function X() {
|
|
|
2859
2858
|
* mode.processBlock(data.words, offset);
|
|
2860
2859
|
*/
|
|
2861
2860
|
processBlock: function(H, $) {
|
|
2862
|
-
var
|
|
2863
|
-
w.call(this, H, $, O),
|
|
2861
|
+
var W = this._cipher, O = W.blockSize;
|
|
2862
|
+
w.call(this, H, $, O), W.encryptBlock(H, $), this._prevBlock = H.slice($, $ + O);
|
|
2864
2863
|
}
|
|
2865
2864
|
}), F.Decryptor = F.extend({
|
|
2866
2865
|
/**
|
|
@@ -2874,18 +2873,18 @@ function X() {
|
|
|
2874
2873
|
* mode.processBlock(data.words, offset);
|
|
2875
2874
|
*/
|
|
2876
2875
|
processBlock: function(H, $) {
|
|
2877
|
-
var
|
|
2878
|
-
|
|
2876
|
+
var W = this._cipher, O = W.blockSize, q = H.slice($, $ + O);
|
|
2877
|
+
W.decryptBlock(H, $), w.call(this, H, $, O), this._prevBlock = q;
|
|
2879
2878
|
}
|
|
2880
2879
|
});
|
|
2881
|
-
function w(H, $,
|
|
2880
|
+
function w(H, $, W) {
|
|
2882
2881
|
var O, q = this._iv;
|
|
2883
2882
|
q ? (O = q, this._iv = e) : O = this._prevBlock;
|
|
2884
|
-
for (var U = 0; U <
|
|
2883
|
+
for (var U = 0; U < W; U++)
|
|
2885
2884
|
H[$ + U] ^= O[U];
|
|
2886
2885
|
}
|
|
2887
2886
|
return F;
|
|
2888
|
-
})(), D =
|
|
2887
|
+
})(), D = d.pad = {}, i = D.Pkcs7 = {
|
|
2889
2888
|
/**
|
|
2890
2889
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
2891
2890
|
*
|
|
@@ -2899,8 +2898,8 @@ function X() {
|
|
|
2899
2898
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
2900
2899
|
*/
|
|
2901
2900
|
pad: function(F, w) {
|
|
2902
|
-
for (var H = w * 4, $ = H - F.sigBytes % H,
|
|
2903
|
-
O.push(
|
|
2901
|
+
for (var H = w * 4, $ = H - F.sigBytes % H, W = $ << 24 | $ << 16 | $ << 8 | $, O = [], q = 0; q < $; q += 4)
|
|
2902
|
+
O.push(W);
|
|
2904
2903
|
var U = B.create(O, $);
|
|
2905
2904
|
F.concat(U);
|
|
2906
2905
|
},
|
|
@@ -2920,7 +2919,7 @@ function X() {
|
|
|
2920
2919
|
F.sigBytes -= w;
|
|
2921
2920
|
}
|
|
2922
2921
|
};
|
|
2923
|
-
|
|
2922
|
+
v.BlockCipher = s.extend({
|
|
2924
2923
|
/**
|
|
2925
2924
|
* Configuration options.
|
|
2926
2925
|
*
|
|
@@ -2946,7 +2945,7 @@ function X() {
|
|
|
2946
2945
|
},
|
|
2947
2946
|
blockSize: 128 / 32
|
|
2948
2947
|
});
|
|
2949
|
-
var o =
|
|
2948
|
+
var o = v.CipherParams = b.extend({
|
|
2950
2949
|
/**
|
|
2951
2950
|
* Initializes a newly created cipher params object.
|
|
2952
2951
|
*
|
|
@@ -2987,7 +2986,7 @@ function X() {
|
|
|
2987
2986
|
toString: function(F) {
|
|
2988
2987
|
return (F || this.formatter).stringify(this);
|
|
2989
2988
|
}
|
|
2990
|
-
}),
|
|
2989
|
+
}), u = d.format = {}, m = u.OpenSSL = {
|
|
2991
2990
|
/**
|
|
2992
2991
|
* Converts a cipher params object to an OpenSSL-compatible string.
|
|
2993
2992
|
*
|
|
@@ -3022,14 +3021,14 @@ function X() {
|
|
|
3022
3021
|
var w, H = n.parse(F), $ = H.words;
|
|
3023
3022
|
return $[0] == 1398893684 && $[1] == 1701076831 && (w = B.create($.slice(2, 4)), $.splice(0, 4), H.sigBytes -= 16), o.create({ ciphertext: H, salt: w });
|
|
3024
3023
|
}
|
|
3025
|
-
}, g =
|
|
3024
|
+
}, g = v.SerializableCipher = b.extend({
|
|
3026
3025
|
/**
|
|
3027
3026
|
* Configuration options.
|
|
3028
3027
|
*
|
|
3029
3028
|
* @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
|
|
3030
3029
|
*/
|
|
3031
|
-
cfg:
|
|
3032
|
-
format:
|
|
3030
|
+
cfg: b.extend({
|
|
3031
|
+
format: m
|
|
3033
3032
|
}),
|
|
3034
3033
|
/**
|
|
3035
3034
|
* Encrypts a message.
|
|
@@ -3051,7 +3050,7 @@ function X() {
|
|
|
3051
3050
|
*/
|
|
3052
3051
|
encrypt: function(F, w, H, $) {
|
|
3053
3052
|
$ = this.cfg.extend($);
|
|
3054
|
-
var
|
|
3053
|
+
var W = F.createEncryptor(H, $), O = W.finalize(w), q = W.cfg;
|
|
3055
3054
|
return o.create({
|
|
3056
3055
|
ciphertext: O,
|
|
3057
3056
|
key: H,
|
|
@@ -3082,8 +3081,8 @@ function X() {
|
|
|
3082
3081
|
*/
|
|
3083
3082
|
decrypt: function(F, w, H, $) {
|
|
3084
3083
|
$ = this.cfg.extend($), w = this._parse(w, $.format);
|
|
3085
|
-
var
|
|
3086
|
-
return
|
|
3084
|
+
var W = F.createDecryptor(H, $).finalize(w.ciphertext);
|
|
3085
|
+
return W;
|
|
3087
3086
|
},
|
|
3088
3087
|
/**
|
|
3089
3088
|
* Converts serialized ciphertext to CipherParams,
|
|
@@ -3103,7 +3102,7 @@ function X() {
|
|
|
3103
3102
|
_parse: function(F, w) {
|
|
3104
3103
|
return typeof F == "string" ? w.parse(F, this) : F;
|
|
3105
3104
|
}
|
|
3106
|
-
}), y =
|
|
3105
|
+
}), y = d.kdf = {}, k = y.OpenSSL = {
|
|
3107
3106
|
/**
|
|
3108
3107
|
* Derives a key and IV from a password.
|
|
3109
3108
|
*
|
|
@@ -3121,15 +3120,15 @@ function X() {
|
|
|
3121
3120
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
3122
3121
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
3123
3122
|
*/
|
|
3124
|
-
execute: function(F, w, H, $,
|
|
3125
|
-
if ($ || ($ = B.random(64 / 8)),
|
|
3126
|
-
var O = a.create({ keySize: w + H, hasher:
|
|
3123
|
+
execute: function(F, w, H, $, W) {
|
|
3124
|
+
if ($ || ($ = B.random(64 / 8)), W)
|
|
3125
|
+
var O = a.create({ keySize: w + H, hasher: W }).compute(F, $);
|
|
3127
3126
|
else
|
|
3128
3127
|
var O = a.create({ keySize: w + H }).compute(F, $);
|
|
3129
3128
|
var q = B.create(O.words.slice(w), H * 4);
|
|
3130
3129
|
return O.sigBytes = w * 4, o.create({ key: O, iv: q, salt: $ });
|
|
3131
3130
|
}
|
|
3132
|
-
}, R =
|
|
3131
|
+
}, R = v.PasswordBasedCipher = g.extend({
|
|
3133
3132
|
/**
|
|
3134
3133
|
* Configuration options.
|
|
3135
3134
|
*
|
|
@@ -3157,10 +3156,10 @@ function X() {
|
|
|
3157
3156
|
*/
|
|
3158
3157
|
encrypt: function(F, w, H, $) {
|
|
3159
3158
|
$ = this.cfg.extend($);
|
|
3160
|
-
var
|
|
3161
|
-
$.iv =
|
|
3162
|
-
var O = g.encrypt.call(this, F, w,
|
|
3163
|
-
return O.mixIn(
|
|
3159
|
+
var W = $.kdf.execute(H, F.keySize, F.ivSize, $.salt, $.hasher);
|
|
3160
|
+
$.iv = W.iv;
|
|
3161
|
+
var O = g.encrypt.call(this, F, w, W.key, $);
|
|
3162
|
+
return O.mixIn(W), O;
|
|
3164
3163
|
},
|
|
3165
3164
|
/**
|
|
3166
3165
|
* Decrypts serialized ciphertext using a password.
|
|
@@ -3181,77 +3180,77 @@ function X() {
|
|
|
3181
3180
|
*/
|
|
3182
3181
|
decrypt: function(F, w, H, $) {
|
|
3183
3182
|
$ = this.cfg.extend($), w = this._parse(w, $.format);
|
|
3184
|
-
var
|
|
3185
|
-
$.iv =
|
|
3186
|
-
var O = g.decrypt.call(this, F, w,
|
|
3183
|
+
var W = $.kdf.execute(H, F.keySize, F.ivSize, w.salt, $.hasher);
|
|
3184
|
+
$.iv = W.iv;
|
|
3185
|
+
var O = g.decrypt.call(this, F, w, W.key, $);
|
|
3187
3186
|
return O;
|
|
3188
3187
|
}
|
|
3189
3188
|
});
|
|
3190
3189
|
})();
|
|
3191
3190
|
});
|
|
3192
|
-
})(
|
|
3191
|
+
})(U0)), U0.exports;
|
|
3193
3192
|
}
|
|
3194
|
-
var
|
|
3193
|
+
var j0 = { exports: {} }, qt = j0.exports, ee;
|
|
3195
3194
|
function Tt() {
|
|
3196
|
-
return ee || (ee = 1, (function(r,
|
|
3197
|
-
(function(t, e,
|
|
3195
|
+
return ee || (ee = 1, (function(r, h) {
|
|
3196
|
+
(function(t, e, d) {
|
|
3198
3197
|
r.exports = e(M(), X());
|
|
3199
3198
|
})(qt, function(t) {
|
|
3200
3199
|
return t.mode.CFB = (function() {
|
|
3201
3200
|
var e = t.lib.BlockCipherMode.extend();
|
|
3202
3201
|
e.Encryptor = e.extend({
|
|
3203
|
-
processBlock: function(
|
|
3202
|
+
processBlock: function(v, b) {
|
|
3204
3203
|
var B = this._cipher, C = B.blockSize;
|
|
3205
|
-
|
|
3204
|
+
d.call(this, v, b, C, B), this._prevBlock = v.slice(b, b + C);
|
|
3206
3205
|
}
|
|
3207
3206
|
}), e.Decryptor = e.extend({
|
|
3208
|
-
processBlock: function(
|
|
3209
|
-
var B = this._cipher, C = B.blockSize, x =
|
|
3210
|
-
|
|
3207
|
+
processBlock: function(v, b) {
|
|
3208
|
+
var B = this._cipher, C = B.blockSize, x = v.slice(b, b + C);
|
|
3209
|
+
d.call(this, v, b, C, B), this._prevBlock = x;
|
|
3211
3210
|
}
|
|
3212
3211
|
});
|
|
3213
|
-
function
|
|
3212
|
+
function d(v, b, B, C) {
|
|
3214
3213
|
var x, n = this._iv;
|
|
3215
3214
|
n ? (x = n.slice(0), this._iv = void 0) : x = this._prevBlock, C.encryptBlock(x, 0);
|
|
3216
3215
|
for (var E = 0; E < B; E++)
|
|
3217
|
-
|
|
3216
|
+
v[b + E] ^= x[E];
|
|
3218
3217
|
}
|
|
3219
3218
|
return e;
|
|
3220
3219
|
})(), t.mode.CFB;
|
|
3221
3220
|
});
|
|
3222
|
-
})(
|
|
3221
|
+
})(j0)), j0.exports;
|
|
3223
3222
|
}
|
|
3224
|
-
var
|
|
3223
|
+
var G0 = { exports: {} }, Mt = G0.exports, te;
|
|
3225
3224
|
function Nt() {
|
|
3226
|
-
return te || (te = 1, (function(r,
|
|
3227
|
-
(function(t, e,
|
|
3225
|
+
return te || (te = 1, (function(r, h) {
|
|
3226
|
+
(function(t, e, d) {
|
|
3228
3227
|
r.exports = e(M(), X());
|
|
3229
3228
|
})(Mt, function(t) {
|
|
3230
3229
|
return t.mode.CTR = (function() {
|
|
3231
|
-
var e = t.lib.BlockCipherMode.extend(),
|
|
3232
|
-
processBlock: function(
|
|
3230
|
+
var e = t.lib.BlockCipherMode.extend(), d = e.Encryptor = e.extend({
|
|
3231
|
+
processBlock: function(v, b) {
|
|
3233
3232
|
var B = this._cipher, C = B.blockSize, x = this._iv, n = this._counter;
|
|
3234
3233
|
x && (n = this._counter = x.slice(0), this._iv = void 0);
|
|
3235
3234
|
var E = n.slice(0);
|
|
3236
3235
|
B.encryptBlock(E, 0), n[C - 1] = n[C - 1] + 1 | 0;
|
|
3237
3236
|
for (var a = 0; a < C; a++)
|
|
3238
|
-
|
|
3237
|
+
v[b + a] ^= E[a];
|
|
3239
3238
|
}
|
|
3240
3239
|
});
|
|
3241
|
-
return e.Decryptor =
|
|
3240
|
+
return e.Decryptor = d, e;
|
|
3242
3241
|
})(), t.mode.CTR;
|
|
3243
3242
|
});
|
|
3244
|
-
})(
|
|
3243
|
+
})(G0)), G0.exports;
|
|
3245
3244
|
}
|
|
3246
|
-
var
|
|
3245
|
+
var K0 = { exports: {} }, Ut = K0.exports, xe;
|
|
3247
3246
|
function jt() {
|
|
3248
|
-
return xe || (xe = 1, (function(r,
|
|
3249
|
-
(function(t, e,
|
|
3247
|
+
return xe || (xe = 1, (function(r, h) {
|
|
3248
|
+
(function(t, e, d) {
|
|
3250
3249
|
r.exports = e(M(), X());
|
|
3251
3250
|
})(Ut, function(t) {
|
|
3252
3251
|
return t.mode.CTRGladman = (function() {
|
|
3253
3252
|
var e = t.lib.BlockCipherMode.extend();
|
|
3254
|
-
function
|
|
3253
|
+
function d(B) {
|
|
3255
3254
|
if ((B >> 24 & 255) === 255) {
|
|
3256
3255
|
var C = B >> 16 & 255, x = B >> 8 & 255, n = B & 255;
|
|
3257
3256
|
C === 255 ? (C = 0, x === 255 ? (x = 0, n === 255 ? n = 0 : ++n) : ++x) : ++C, B = 0, B += C << 16, B += x << 8, B += n;
|
|
@@ -3259,146 +3258,146 @@ function jt() {
|
|
|
3259
3258
|
B += 1 << 24;
|
|
3260
3259
|
return B;
|
|
3261
3260
|
}
|
|
3262
|
-
function
|
|
3263
|
-
return (B[0] =
|
|
3261
|
+
function v(B) {
|
|
3262
|
+
return (B[0] = d(B[0])) === 0 && (B[1] = d(B[1])), B;
|
|
3264
3263
|
}
|
|
3265
|
-
var
|
|
3264
|
+
var b = e.Encryptor = e.extend({
|
|
3266
3265
|
processBlock: function(B, C) {
|
|
3267
3266
|
var x = this._cipher, n = x.blockSize, E = this._iv, a = this._counter;
|
|
3268
|
-
E && (a = this._counter = E.slice(0), this._iv = void 0),
|
|
3267
|
+
E && (a = this._counter = E.slice(0), this._iv = void 0), v(a);
|
|
3269
3268
|
var s = a.slice(0);
|
|
3270
3269
|
x.encryptBlock(s, 0);
|
|
3271
3270
|
for (var f = 0; f < n; f++)
|
|
3272
3271
|
B[C + f] ^= s[f];
|
|
3273
3272
|
}
|
|
3274
3273
|
});
|
|
3275
|
-
return e.Decryptor =
|
|
3274
|
+
return e.Decryptor = b, e;
|
|
3276
3275
|
})(), t.mode.CTRGladman;
|
|
3277
3276
|
});
|
|
3278
|
-
})(
|
|
3277
|
+
})(K0)), K0.exports;
|
|
3279
3278
|
}
|
|
3280
|
-
var
|
|
3279
|
+
var X0 = { exports: {} }, Gt = X0.exports, ne;
|
|
3281
3280
|
function Kt() {
|
|
3282
|
-
return ne || (ne = 1, (function(r,
|
|
3283
|
-
(function(t, e,
|
|
3281
|
+
return ne || (ne = 1, (function(r, h) {
|
|
3282
|
+
(function(t, e, d) {
|
|
3284
3283
|
r.exports = e(M(), X());
|
|
3285
3284
|
})(Gt, function(t) {
|
|
3286
3285
|
return t.mode.OFB = (function() {
|
|
3287
|
-
var e = t.lib.BlockCipherMode.extend(),
|
|
3288
|
-
processBlock: function(
|
|
3286
|
+
var e = t.lib.BlockCipherMode.extend(), d = e.Encryptor = e.extend({
|
|
3287
|
+
processBlock: function(v, b) {
|
|
3289
3288
|
var B = this._cipher, C = B.blockSize, x = this._iv, n = this._keystream;
|
|
3290
3289
|
x && (n = this._keystream = x.slice(0), this._iv = void 0), B.encryptBlock(n, 0);
|
|
3291
3290
|
for (var E = 0; E < C; E++)
|
|
3292
|
-
|
|
3291
|
+
v[b + E] ^= n[E];
|
|
3293
3292
|
}
|
|
3294
3293
|
});
|
|
3295
|
-
return e.Decryptor =
|
|
3294
|
+
return e.Decryptor = d, e;
|
|
3296
3295
|
})(), t.mode.OFB;
|
|
3297
3296
|
});
|
|
3298
|
-
})(
|
|
3297
|
+
})(X0)), X0.exports;
|
|
3299
3298
|
}
|
|
3300
|
-
var
|
|
3299
|
+
var Y0 = { exports: {} }, Xt = Y0.exports, ae;
|
|
3301
3300
|
function Yt() {
|
|
3302
|
-
return ae || (ae = 1, (function(r,
|
|
3303
|
-
(function(t, e,
|
|
3301
|
+
return ae || (ae = 1, (function(r, h) {
|
|
3302
|
+
(function(t, e, d) {
|
|
3304
3303
|
r.exports = e(M(), X());
|
|
3305
3304
|
})(Xt, function(t) {
|
|
3306
3305
|
return t.mode.ECB = (function() {
|
|
3307
3306
|
var e = t.lib.BlockCipherMode.extend();
|
|
3308
3307
|
return e.Encryptor = e.extend({
|
|
3309
|
-
processBlock: function(
|
|
3310
|
-
this._cipher.encryptBlock(
|
|
3308
|
+
processBlock: function(d, v) {
|
|
3309
|
+
this._cipher.encryptBlock(d, v);
|
|
3311
3310
|
}
|
|
3312
3311
|
}), e.Decryptor = e.extend({
|
|
3313
|
-
processBlock: function(
|
|
3314
|
-
this._cipher.decryptBlock(
|
|
3312
|
+
processBlock: function(d, v) {
|
|
3313
|
+
this._cipher.decryptBlock(d, v);
|
|
3315
3314
|
}
|
|
3316
3315
|
}), e;
|
|
3317
3316
|
})(), t.mode.ECB;
|
|
3318
3317
|
});
|
|
3319
|
-
})(
|
|
3318
|
+
})(Y0)), Y0.exports;
|
|
3320
3319
|
}
|
|
3321
|
-
var
|
|
3320
|
+
var Z0 = { exports: {} }, Zt = Z0.exports, oe;
|
|
3322
3321
|
function Qt() {
|
|
3323
|
-
return oe || (oe = 1, (function(r,
|
|
3324
|
-
(function(t, e,
|
|
3322
|
+
return oe || (oe = 1, (function(r, h) {
|
|
3323
|
+
(function(t, e, d) {
|
|
3325
3324
|
r.exports = e(M(), X());
|
|
3326
3325
|
})(Zt, function(t) {
|
|
3327
3326
|
return t.pad.AnsiX923 = {
|
|
3328
|
-
pad: function(e,
|
|
3329
|
-
var
|
|
3327
|
+
pad: function(e, d) {
|
|
3328
|
+
var v = e.sigBytes, b = d * 4, B = b - v % b, C = v + B - 1;
|
|
3330
3329
|
e.clamp(), e.words[C >>> 2] |= B << 24 - C % 4 * 8, e.sigBytes += B;
|
|
3331
3330
|
},
|
|
3332
3331
|
unpad: function(e) {
|
|
3333
|
-
var
|
|
3334
|
-
e.sigBytes -=
|
|
3332
|
+
var d = e.words[e.sigBytes - 1 >>> 2] & 255;
|
|
3333
|
+
e.sigBytes -= d;
|
|
3335
3334
|
}
|
|
3336
3335
|
}, t.pad.Ansix923;
|
|
3337
3336
|
});
|
|
3338
|
-
})(
|
|
3337
|
+
})(Z0)), Z0.exports;
|
|
3339
3338
|
}
|
|
3340
|
-
var
|
|
3339
|
+
var Q0 = { exports: {} }, Vt = Q0.exports, ie;
|
|
3341
3340
|
function Jt() {
|
|
3342
|
-
return ie || (ie = 1, (function(r,
|
|
3343
|
-
(function(t, e,
|
|
3341
|
+
return ie || (ie = 1, (function(r, h) {
|
|
3342
|
+
(function(t, e, d) {
|
|
3344
3343
|
r.exports = e(M(), X());
|
|
3345
3344
|
})(Vt, function(t) {
|
|
3346
3345
|
return t.pad.Iso10126 = {
|
|
3347
|
-
pad: function(e,
|
|
3348
|
-
var
|
|
3349
|
-
e.concat(t.lib.WordArray.random(
|
|
3346
|
+
pad: function(e, d) {
|
|
3347
|
+
var v = d * 4, b = v - e.sigBytes % v;
|
|
3348
|
+
e.concat(t.lib.WordArray.random(b - 1)).concat(t.lib.WordArray.create([b << 24], 1));
|
|
3350
3349
|
},
|
|
3351
3350
|
unpad: function(e) {
|
|
3352
|
-
var
|
|
3353
|
-
e.sigBytes -=
|
|
3351
|
+
var d = e.words[e.sigBytes - 1 >>> 2] & 255;
|
|
3352
|
+
e.sigBytes -= d;
|
|
3354
3353
|
}
|
|
3355
3354
|
}, t.pad.Iso10126;
|
|
3356
3355
|
});
|
|
3357
|
-
})(
|
|
3356
|
+
})(Q0)), Q0.exports;
|
|
3358
3357
|
}
|
|
3359
|
-
var
|
|
3358
|
+
var V0 = { exports: {} }, rx = V0.exports, se;
|
|
3360
3359
|
function ex() {
|
|
3361
|
-
return se || (se = 1, (function(r,
|
|
3362
|
-
(function(t, e,
|
|
3360
|
+
return se || (se = 1, (function(r, h) {
|
|
3361
|
+
(function(t, e, d) {
|
|
3363
3362
|
r.exports = e(M(), X());
|
|
3364
3363
|
})(rx, function(t) {
|
|
3365
3364
|
return t.pad.Iso97971 = {
|
|
3366
|
-
pad: function(e,
|
|
3367
|
-
e.concat(t.lib.WordArray.create([2147483648], 1)), t.pad.ZeroPadding.pad(e,
|
|
3365
|
+
pad: function(e, d) {
|
|
3366
|
+
e.concat(t.lib.WordArray.create([2147483648], 1)), t.pad.ZeroPadding.pad(e, d);
|
|
3368
3367
|
},
|
|
3369
3368
|
unpad: function(e) {
|
|
3370
3369
|
t.pad.ZeroPadding.unpad(e), e.sigBytes--;
|
|
3371
3370
|
}
|
|
3372
3371
|
}, t.pad.Iso97971;
|
|
3373
3372
|
});
|
|
3374
|
-
})(
|
|
3373
|
+
})(V0)), V0.exports;
|
|
3375
3374
|
}
|
|
3376
|
-
var
|
|
3375
|
+
var J0 = { exports: {} }, tx = J0.exports, ce;
|
|
3377
3376
|
function xx() {
|
|
3378
|
-
return ce || (ce = 1, (function(r,
|
|
3379
|
-
(function(t, e,
|
|
3377
|
+
return ce || (ce = 1, (function(r, h) {
|
|
3378
|
+
(function(t, e, d) {
|
|
3380
3379
|
r.exports = e(M(), X());
|
|
3381
3380
|
})(tx, function(t) {
|
|
3382
3381
|
return t.pad.ZeroPadding = {
|
|
3383
|
-
pad: function(e,
|
|
3384
|
-
var
|
|
3385
|
-
e.clamp(), e.sigBytes +=
|
|
3382
|
+
pad: function(e, d) {
|
|
3383
|
+
var v = d * 4;
|
|
3384
|
+
e.clamp(), e.sigBytes += v - (e.sigBytes % v || v);
|
|
3386
3385
|
},
|
|
3387
3386
|
unpad: function(e) {
|
|
3388
|
-
for (var
|
|
3389
|
-
if (
|
|
3390
|
-
e.sigBytes =
|
|
3387
|
+
for (var d = e.words, v = e.sigBytes - 1, v = e.sigBytes - 1; v >= 0; v--)
|
|
3388
|
+
if (d[v >>> 2] >>> 24 - v % 4 * 8 & 255) {
|
|
3389
|
+
e.sigBytes = v + 1;
|
|
3391
3390
|
break;
|
|
3392
3391
|
}
|
|
3393
3392
|
}
|
|
3394
3393
|
}, t.pad.ZeroPadding;
|
|
3395
3394
|
});
|
|
3396
|
-
})(
|
|
3395
|
+
})(J0)), J0.exports;
|
|
3397
3396
|
}
|
|
3398
|
-
var
|
|
3397
|
+
var rr = { exports: {} }, nx = rr.exports, fe;
|
|
3399
3398
|
function ax() {
|
|
3400
|
-
return fe || (fe = 1, (function(r,
|
|
3401
|
-
(function(t, e,
|
|
3399
|
+
return fe || (fe = 1, (function(r, h) {
|
|
3400
|
+
(function(t, e, d) {
|
|
3402
3401
|
r.exports = e(M(), X());
|
|
3403
3402
|
})(nx, function(t) {
|
|
3404
3403
|
return t.pad.NoPadding = {
|
|
@@ -3408,16 +3407,16 @@ function ax() {
|
|
|
3408
3407
|
}
|
|
3409
3408
|
}, t.pad.NoPadding;
|
|
3410
3409
|
});
|
|
3411
|
-
})(
|
|
3410
|
+
})(rr)), rr.exports;
|
|
3412
3411
|
}
|
|
3413
|
-
var
|
|
3412
|
+
var er = { exports: {} }, ox = er.exports, ue;
|
|
3414
3413
|
function ix() {
|
|
3415
|
-
return ue || (ue = 1, (function(r,
|
|
3416
|
-
(function(t, e,
|
|
3414
|
+
return ue || (ue = 1, (function(r, h) {
|
|
3415
|
+
(function(t, e, d) {
|
|
3417
3416
|
r.exports = e(M(), X());
|
|
3418
3417
|
})(ox, function(t) {
|
|
3419
3418
|
return (function(e) {
|
|
3420
|
-
var
|
|
3419
|
+
var d = t, v = d.lib, b = v.CipherParams, B = d.enc, C = B.Hex, x = d.format;
|
|
3421
3420
|
x.Hex = {
|
|
3422
3421
|
/**
|
|
3423
3422
|
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
@@ -3450,39 +3449,39 @@ function ix() {
|
|
|
3450
3449
|
*/
|
|
3451
3450
|
parse: function(n) {
|
|
3452
3451
|
var E = C.parse(n);
|
|
3453
|
-
return
|
|
3452
|
+
return b.create({ ciphertext: E });
|
|
3454
3453
|
}
|
|
3455
3454
|
};
|
|
3456
3455
|
})(), t.format.Hex;
|
|
3457
3456
|
});
|
|
3458
|
-
})(
|
|
3457
|
+
})(er)), er.exports;
|
|
3459
3458
|
}
|
|
3460
|
-
var
|
|
3459
|
+
var tr = { exports: {} }, sx = tr.exports, de;
|
|
3461
3460
|
function cx() {
|
|
3462
|
-
return de || (de = 1, (function(r,
|
|
3463
|
-
(function(t, e,
|
|
3461
|
+
return de || (de = 1, (function(r, h) {
|
|
3462
|
+
(function(t, e, d) {
|
|
3464
3463
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
3465
3464
|
})(sx, function(t) {
|
|
3466
3465
|
return (function() {
|
|
3467
|
-
var e = t,
|
|
3466
|
+
var e = t, d = e.lib, v = d.BlockCipher, b = e.algo, B = [], C = [], x = [], n = [], E = [], a = [], s = [], f = [], p = [], l = [];
|
|
3468
3467
|
(function() {
|
|
3469
|
-
for (var o = [],
|
|
3470
|
-
|
|
3471
|
-
for (var
|
|
3468
|
+
for (var o = [], u = 0; u < 256; u++)
|
|
3469
|
+
u < 128 ? o[u] = u << 1 : o[u] = u << 1 ^ 283;
|
|
3470
|
+
for (var m = 0, g = 0, u = 0; u < 256; u++) {
|
|
3472
3471
|
var y = g ^ g << 1 ^ g << 2 ^ g << 3 ^ g << 4;
|
|
3473
|
-
y = y >>> 8 ^ y & 255 ^ 99, B[
|
|
3474
|
-
var k = o[
|
|
3475
|
-
x[
|
|
3476
|
-
var w = F * 16843009 ^ R * 65537 ^ k * 257 ^
|
|
3477
|
-
s[y] = w << 24 | w >>> 8, f[y] = w << 16 | w >>> 16, p[y] = w << 8 | w >>> 24, l[y] = w,
|
|
3472
|
+
y = y >>> 8 ^ y & 255 ^ 99, B[m] = y, C[y] = m;
|
|
3473
|
+
var k = o[m], R = o[k], F = o[R], w = o[y] * 257 ^ y * 16843008;
|
|
3474
|
+
x[m] = w << 24 | w >>> 8, n[m] = w << 16 | w >>> 16, E[m] = w << 8 | w >>> 24, a[m] = w;
|
|
3475
|
+
var w = F * 16843009 ^ R * 65537 ^ k * 257 ^ m * 16843008;
|
|
3476
|
+
s[y] = w << 24 | w >>> 8, f[y] = w << 16 | w >>> 16, p[y] = w << 8 | w >>> 24, l[y] = w, m ? (m = k ^ o[o[o[F ^ k]]], g ^= o[o[g]]) : m = g = 1;
|
|
3478
3477
|
}
|
|
3479
3478
|
})();
|
|
3480
|
-
var D = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], i =
|
|
3479
|
+
var D = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], i = b.AES = v.extend({
|
|
3481
3480
|
_doReset: function() {
|
|
3482
3481
|
var o;
|
|
3483
3482
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
3484
|
-
for (var
|
|
3485
|
-
F < g ? R[F] =
|
|
3483
|
+
for (var u = this._keyPriorReset = this._key, m = u.words, g = u.sigBytes / 4, y = this._nRounds = g + 6, k = (y + 1) * 4, R = this._keySchedule = [], F = 0; F < k; F++)
|
|
3484
|
+
F < g ? R[F] = m[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);
|
|
3486
3485
|
for (var w = this._invKeySchedule = [], H = 0; H < k; H++) {
|
|
3487
3486
|
var F = k - H;
|
|
3488
3487
|
if (H % 4)
|
|
@@ -3493,38 +3492,38 @@ function cx() {
|
|
|
3493
3492
|
}
|
|
3494
3493
|
}
|
|
3495
3494
|
},
|
|
3496
|
-
encryptBlock: function(o,
|
|
3497
|
-
this._doCryptBlock(o,
|
|
3495
|
+
encryptBlock: function(o, u) {
|
|
3496
|
+
this._doCryptBlock(o, u, this._keySchedule, x, n, E, a, B);
|
|
3498
3497
|
},
|
|
3499
|
-
decryptBlock: function(o,
|
|
3500
|
-
var
|
|
3501
|
-
o[
|
|
3502
|
-
var
|
|
3503
|
-
o[
|
|
3498
|
+
decryptBlock: function(o, u) {
|
|
3499
|
+
var m = o[u + 1];
|
|
3500
|
+
o[u + 1] = o[u + 3], o[u + 3] = m, this._doCryptBlock(o, u, this._invKeySchedule, s, f, p, l, C);
|
|
3501
|
+
var m = o[u + 1];
|
|
3502
|
+
o[u + 1] = o[u + 3], o[u + 3] = m;
|
|
3504
3503
|
},
|
|
3505
|
-
_doCryptBlock: function(o,
|
|
3506
|
-
for (var w = this._nRounds, H = o[
|
|
3507
|
-
var T = g[H >>> 24] ^ y[$ >>> 16 & 255] ^ k[
|
|
3508
|
-
H = T, $ = N,
|
|
3504
|
+
_doCryptBlock: function(o, u, m, g, y, k, R, F) {
|
|
3505
|
+
for (var w = this._nRounds, H = o[u] ^ m[0], $ = o[u + 1] ^ m[1], W = o[u + 2] ^ m[2], O = o[u + 3] ^ m[3], q = 4, U = 1; U < w; U++) {
|
|
3506
|
+
var T = g[H >>> 24] ^ y[$ >>> 16 & 255] ^ k[W >>> 8 & 255] ^ R[O & 255] ^ m[q++], N = g[$ >>> 24] ^ y[W >>> 16 & 255] ^ k[O >>> 8 & 255] ^ R[H & 255] ^ m[q++], j = g[W >>> 24] ^ y[O >>> 16 & 255] ^ k[H >>> 8 & 255] ^ R[$ & 255] ^ m[q++], S = g[O >>> 24] ^ y[H >>> 16 & 255] ^ k[$ >>> 8 & 255] ^ R[W & 255] ^ m[q++];
|
|
3507
|
+
H = T, $ = N, W = j, O = S;
|
|
3509
3508
|
}
|
|
3510
|
-
var T = (F[H >>> 24] << 24 | F[$ >>> 16 & 255] << 16 | F[
|
|
3511
|
-
o[
|
|
3509
|
+
var T = (F[H >>> 24] << 24 | F[$ >>> 16 & 255] << 16 | F[W >>> 8 & 255] << 8 | F[O & 255]) ^ m[q++], N = (F[$ >>> 24] << 24 | F[W >>> 16 & 255] << 16 | F[O >>> 8 & 255] << 8 | F[H & 255]) ^ m[q++], j = (F[W >>> 24] << 24 | F[O >>> 16 & 255] << 16 | F[H >>> 8 & 255] << 8 | F[$ & 255]) ^ m[q++], S = (F[O >>> 24] << 24 | F[H >>> 16 & 255] << 16 | F[$ >>> 8 & 255] << 8 | F[W & 255]) ^ m[q++];
|
|
3510
|
+
o[u] = T, o[u + 1] = N, o[u + 2] = j, o[u + 3] = S;
|
|
3512
3511
|
},
|
|
3513
3512
|
keySize: 256 / 32
|
|
3514
3513
|
});
|
|
3515
|
-
e.AES =
|
|
3514
|
+
e.AES = v._createHelper(i);
|
|
3516
3515
|
})(), t.AES;
|
|
3517
3516
|
});
|
|
3518
|
-
})(
|
|
3517
|
+
})(tr)), tr.exports;
|
|
3519
3518
|
}
|
|
3520
|
-
var
|
|
3519
|
+
var xr = { exports: {} }, fx = xr.exports, le;
|
|
3521
3520
|
function ux() {
|
|
3522
|
-
return le || (le = 1, (function(r,
|
|
3523
|
-
(function(t, e,
|
|
3521
|
+
return le || (le = 1, (function(r, h) {
|
|
3522
|
+
(function(t, e, d) {
|
|
3524
3523
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
3525
3524
|
})(fx, function(t) {
|
|
3526
3525
|
return (function() {
|
|
3527
|
-
var e = t,
|
|
3526
|
+
var e = t, d = e.lib, v = d.WordArray, b = d.BlockCipher, B = e.algo, C = [
|
|
3528
3527
|
57,
|
|
3529
3528
|
49,
|
|
3530
3529
|
41,
|
|
@@ -4168,22 +4167,22 @@ function ux() {
|
|
|
4168
4167
|
8064,
|
|
4169
4168
|
504,
|
|
4170
4169
|
2147483679
|
|
4171
|
-
], s = B.DES =
|
|
4170
|
+
], s = B.DES = b.extend({
|
|
4172
4171
|
_doReset: function() {
|
|
4173
|
-
for (var D = this._key, i = D.words, o = [],
|
|
4174
|
-
var
|
|
4175
|
-
o[
|
|
4172
|
+
for (var D = this._key, i = D.words, o = [], u = 0; u < 56; u++) {
|
|
4173
|
+
var m = C[u] - 1;
|
|
4174
|
+
o[u] = i[m >>> 5] >>> 31 - m % 32 & 1;
|
|
4176
4175
|
}
|
|
4177
4176
|
for (var g = this._subKeys = [], y = 0; y < 16; y++) {
|
|
4178
|
-
for (var k = g[y] = [], R = n[y],
|
|
4179
|
-
k[
|
|
4177
|
+
for (var k = g[y] = [], R = n[y], u = 0; u < 24; u++)
|
|
4178
|
+
k[u / 6 | 0] |= o[(x[u] - 1 + R) % 28] << 31 - u % 6, k[4 + (u / 6 | 0)] |= o[28 + (x[u + 24] - 1 + R) % 28] << 31 - u % 6;
|
|
4180
4179
|
k[0] = k[0] << 1 | k[0] >>> 31;
|
|
4181
|
-
for (var
|
|
4182
|
-
k[
|
|
4180
|
+
for (var u = 1; u < 7; u++)
|
|
4181
|
+
k[u] = k[u] >>> (u - 1) * 4 + 3;
|
|
4183
4182
|
k[7] = k[7] << 5 | k[7] >>> 27;
|
|
4184
4183
|
}
|
|
4185
|
-
for (var F = this._invSubKeys = [],
|
|
4186
|
-
F[
|
|
4184
|
+
for (var F = this._invSubKeys = [], u = 0; u < 16; u++)
|
|
4185
|
+
F[u] = g[15 - u];
|
|
4187
4186
|
},
|
|
4188
4187
|
encryptBlock: function(D, i) {
|
|
4189
4188
|
this._doCryptBlock(D, i, this._subKeys);
|
|
@@ -4193,9 +4192,9 @@ function ux() {
|
|
|
4193
4192
|
},
|
|
4194
4193
|
_doCryptBlock: function(D, i, o) {
|
|
4195
4194
|
this._lBlock = D[i], this._rBlock = D[i + 1], f.call(this, 4, 252645135), f.call(this, 16, 65535), p.call(this, 2, 858993459), p.call(this, 8, 16711935), f.call(this, 1, 1431655765);
|
|
4196
|
-
for (var
|
|
4197
|
-
for (var
|
|
4198
|
-
k |= E[R][((y ^
|
|
4195
|
+
for (var u = 0; u < 16; u++) {
|
|
4196
|
+
for (var m = o[u], g = this._lBlock, y = this._rBlock, k = 0, R = 0; R < 8; R++)
|
|
4197
|
+
k |= E[R][((y ^ m[R]) & a[R]) >>> 0];
|
|
4199
4198
|
this._lBlock = y, this._rBlock = g ^ k;
|
|
4200
4199
|
}
|
|
4201
4200
|
var F = this._lBlock;
|
|
@@ -4213,14 +4212,14 @@ function ux() {
|
|
|
4213
4212
|
var o = (this._rBlock >>> D ^ this._lBlock) & i;
|
|
4214
4213
|
this._lBlock ^= o, this._rBlock ^= o << D;
|
|
4215
4214
|
}
|
|
4216
|
-
e.DES =
|
|
4217
|
-
var l = B.TripleDES =
|
|
4215
|
+
e.DES = b._createHelper(s);
|
|
4216
|
+
var l = B.TripleDES = b.extend({
|
|
4218
4217
|
_doReset: function() {
|
|
4219
4218
|
var D = this._key, i = D.words;
|
|
4220
4219
|
if (i.length !== 2 && i.length !== 4 && i.length < 6)
|
|
4221
4220
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
4222
|
-
var o = i.slice(0, 2),
|
|
4223
|
-
this._des1 = s.createEncryptor(
|
|
4221
|
+
var o = i.slice(0, 2), u = i.length < 4 ? i.slice(0, 2) : i.slice(2, 4), m = i.length < 6 ? i.slice(0, 2) : i.slice(4, 6);
|
|
4222
|
+
this._des1 = s.createEncryptor(v.create(o)), this._des2 = s.createEncryptor(v.create(u)), this._des3 = s.createEncryptor(v.create(m));
|
|
4224
4223
|
},
|
|
4225
4224
|
encryptBlock: function(D, i) {
|
|
4226
4225
|
this._des1.encryptBlock(D, i), this._des2.decryptBlock(D, i), this._des3.encryptBlock(D, i);
|
|
@@ -4232,19 +4231,19 @@ function ux() {
|
|
|
4232
4231
|
ivSize: 64 / 32,
|
|
4233
4232
|
blockSize: 64 / 32
|
|
4234
4233
|
});
|
|
4235
|
-
e.TripleDES =
|
|
4234
|
+
e.TripleDES = b._createHelper(l);
|
|
4236
4235
|
})(), t.TripleDES;
|
|
4237
4236
|
});
|
|
4238
|
-
})(
|
|
4237
|
+
})(xr)), xr.exports;
|
|
4239
4238
|
}
|
|
4240
|
-
var
|
|
4239
|
+
var nr = { exports: {} }, dx = nr.exports, he;
|
|
4241
4240
|
function lx() {
|
|
4242
|
-
return he || (he = 1, (function(r,
|
|
4243
|
-
(function(t, e,
|
|
4241
|
+
return he || (he = 1, (function(r, h) {
|
|
4242
|
+
(function(t, e, d) {
|
|
4244
4243
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
4245
4244
|
})(dx, function(t) {
|
|
4246
4245
|
return (function() {
|
|
4247
|
-
var e = t,
|
|
4246
|
+
var e = t, d = e.lib, v = d.StreamCipher, b = e.algo, B = b.RC4 = v.extend({
|
|
4248
4247
|
_doReset: function() {
|
|
4249
4248
|
for (var n = this._key, E = n.words, a = n.sigBytes, s = this._S = [], f = 0; f < 256; f++)
|
|
4250
4249
|
s[f] = f;
|
|
@@ -4270,8 +4269,8 @@ function lx() {
|
|
|
4270
4269
|
}
|
|
4271
4270
|
return this._i = E, this._j = a, s;
|
|
4272
4271
|
}
|
|
4273
|
-
e.RC4 =
|
|
4274
|
-
var x =
|
|
4272
|
+
e.RC4 = v._createHelper(B);
|
|
4273
|
+
var x = b.RC4Drop = B.extend({
|
|
4275
4274
|
/**
|
|
4276
4275
|
* Configuration options.
|
|
4277
4276
|
*
|
|
@@ -4286,19 +4285,19 @@ function lx() {
|
|
|
4286
4285
|
C.call(this);
|
|
4287
4286
|
}
|
|
4288
4287
|
});
|
|
4289
|
-
e.RC4Drop =
|
|
4288
|
+
e.RC4Drop = v._createHelper(x);
|
|
4290
4289
|
})(), t.RC4;
|
|
4291
4290
|
});
|
|
4292
|
-
})(
|
|
4291
|
+
})(nr)), nr.exports;
|
|
4293
4292
|
}
|
|
4294
|
-
var
|
|
4293
|
+
var ar = { exports: {} }, hx = ar.exports, ve;
|
|
4295
4294
|
function vx() {
|
|
4296
|
-
return ve || (ve = 1, (function(r,
|
|
4297
|
-
(function(t, e,
|
|
4295
|
+
return ve || (ve = 1, (function(r, h) {
|
|
4296
|
+
(function(t, e, d) {
|
|
4298
4297
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
4299
4298
|
})(hx, function(t) {
|
|
4300
4299
|
return (function() {
|
|
4301
|
-
var e = t,
|
|
4300
|
+
var e = t, d = e.lib, v = d.StreamCipher, b = e.algo, B = [], C = [], x = [], n = b.Rabbit = v.extend({
|
|
4302
4301
|
_doReset: function() {
|
|
4303
4302
|
for (var a = this._key.words, s = this.cfg.iv, f = 0; f < 4; f++)
|
|
4304
4303
|
a[f] = (a[f] << 8 | a[f] >>> 24) & 16711935 | (a[f] << 24 | a[f] >>> 8) & 4278255360;
|
|
@@ -4327,8 +4326,8 @@ function vx() {
|
|
|
4327
4326
|
for (var f = 0; f < 8; f++)
|
|
4328
4327
|
l[f] ^= p[f + 4 & 7];
|
|
4329
4328
|
if (s) {
|
|
4330
|
-
var D = s.words, i = D[0], o = D[1],
|
|
4331
|
-
l[0] ^=
|
|
4329
|
+
var D = s.words, i = D[0], o = D[1], u = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, m = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, g = u >>> 16 | m & 4294901760, y = m << 16 | u & 65535;
|
|
4330
|
+
l[0] ^= u, l[1] ^= g, l[2] ^= m, l[3] ^= y, l[4] ^= u, l[5] ^= g, l[6] ^= m, l[7] ^= y;
|
|
4332
4331
|
for (var f = 0; f < 4; f++)
|
|
4333
4332
|
E.call(this);
|
|
4334
4333
|
}
|
|
@@ -4352,19 +4351,19 @@ function vx() {
|
|
|
4352
4351
|
}
|
|
4353
4352
|
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;
|
|
4354
4353
|
}
|
|
4355
|
-
e.Rabbit =
|
|
4354
|
+
e.Rabbit = v._createHelper(n);
|
|
4356
4355
|
})(), t.Rabbit;
|
|
4357
4356
|
});
|
|
4358
|
-
})(
|
|
4357
|
+
})(ar)), ar.exports;
|
|
4359
4358
|
}
|
|
4360
|
-
var
|
|
4359
|
+
var or = { exports: {} }, px = or.exports, pe;
|
|
4361
4360
|
function Bx() {
|
|
4362
|
-
return pe || (pe = 1, (function(r,
|
|
4363
|
-
(function(t, e,
|
|
4361
|
+
return pe || (pe = 1, (function(r, h) {
|
|
4362
|
+
(function(t, e, d) {
|
|
4364
4363
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
4365
4364
|
})(px, function(t) {
|
|
4366
4365
|
return (function() {
|
|
4367
|
-
var e = t,
|
|
4366
|
+
var e = t, d = e.lib, v = d.StreamCipher, b = e.algo, B = [], C = [], x = [], n = b.RabbitLegacy = v.extend({
|
|
4368
4367
|
_doReset: function() {
|
|
4369
4368
|
var a = this._key.words, s = this.cfg.iv, f = this._X = [
|
|
4370
4369
|
a[0],
|
|
@@ -4391,8 +4390,8 @@ function Bx() {
|
|
|
4391
4390
|
for (var l = 0; l < 8; l++)
|
|
4392
4391
|
p[l] ^= f[l + 4 & 7];
|
|
4393
4392
|
if (s) {
|
|
4394
|
-
var D = s.words, i = D[0], o = D[1],
|
|
4395
|
-
p[0] ^=
|
|
4393
|
+
var D = s.words, i = D[0], o = D[1], u = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, m = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, g = u >>> 16 | m & 4294901760, y = m << 16 | u & 65535;
|
|
4394
|
+
p[0] ^= u, p[1] ^= g, p[2] ^= m, p[3] ^= y, p[4] ^= u, p[5] ^= g, p[6] ^= m, p[7] ^= y;
|
|
4396
4395
|
for (var l = 0; l < 4; l++)
|
|
4397
4396
|
E.call(this);
|
|
4398
4397
|
}
|
|
@@ -4416,19 +4415,19 @@ function Bx() {
|
|
|
4416
4415
|
}
|
|
4417
4416
|
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;
|
|
4418
4417
|
}
|
|
4419
|
-
e.RabbitLegacy =
|
|
4418
|
+
e.RabbitLegacy = v._createHelper(n);
|
|
4420
4419
|
})(), t.RabbitLegacy;
|
|
4421
4420
|
});
|
|
4422
|
-
})(
|
|
4421
|
+
})(or)), or.exports;
|
|
4423
4422
|
}
|
|
4424
|
-
var
|
|
4423
|
+
var ir = { exports: {} }, Cx = ir.exports, Be;
|
|
4425
4424
|
function Ex() {
|
|
4426
|
-
return Be || (Be = 1, (function(r,
|
|
4427
|
-
(function(t, e,
|
|
4425
|
+
return Be || (Be = 1, (function(r, h) {
|
|
4426
|
+
(function(t, e, d) {
|
|
4428
4427
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
4429
4428
|
})(Cx, function(t) {
|
|
4430
4429
|
return (function() {
|
|
4431
|
-
var e = t,
|
|
4430
|
+
var e = t, d = e.lib, v = d.BlockCipher, b = e.algo;
|
|
4432
4431
|
const B = 16, C = [
|
|
4433
4432
|
608135816,
|
|
4434
4433
|
2242054355,
|
|
@@ -5487,20 +5486,20 @@ function Ex() {
|
|
|
5487
5486
|
sbox: []
|
|
5488
5487
|
};
|
|
5489
5488
|
function E(l, D) {
|
|
5490
|
-
let i = D >> 24 & 255, o = D >> 16 & 255,
|
|
5491
|
-
return g = g ^ l.sbox[2][
|
|
5489
|
+
let i = D >> 24 & 255, o = D >> 16 & 255, u = D >> 8 & 255, m = D & 255, g = l.sbox[0][i] + l.sbox[1][o];
|
|
5490
|
+
return g = g ^ l.sbox[2][u], g = g + l.sbox[3][m], g;
|
|
5492
5491
|
}
|
|
5493
5492
|
function a(l, D, i) {
|
|
5494
|
-
let o = D,
|
|
5493
|
+
let o = D, u = i, m;
|
|
5495
5494
|
for (let g = 0; g < B; ++g)
|
|
5496
|
-
o = o ^ l.pbox[g],
|
|
5497
|
-
return
|
|
5495
|
+
o = o ^ l.pbox[g], u = E(l, o) ^ u, m = o, o = u, u = m;
|
|
5496
|
+
return m = o, o = u, u = m, u = u ^ l.pbox[B], o = o ^ l.pbox[B + 1], { left: o, right: u };
|
|
5498
5497
|
}
|
|
5499
5498
|
function s(l, D, i) {
|
|
5500
|
-
let o = D,
|
|
5499
|
+
let o = D, u = i, m;
|
|
5501
5500
|
for (let g = B + 1; g > 1; --g)
|
|
5502
|
-
o = o ^ l.pbox[g],
|
|
5503
|
-
return
|
|
5501
|
+
o = o ^ l.pbox[g], u = E(l, o) ^ u, m = o, o = u, u = m;
|
|
5502
|
+
return m = o, o = u, u = m, u = u ^ l.pbox[1], o = o ^ l.pbox[0], { left: o, right: u };
|
|
5504
5503
|
}
|
|
5505
5504
|
function f(l, D, i) {
|
|
5506
5505
|
for (let y = 0; y < 4; y++) {
|
|
@@ -5511,15 +5510,15 @@ function Ex() {
|
|
|
5511
5510
|
let o = 0;
|
|
5512
5511
|
for (let y = 0; y < B + 2; y++)
|
|
5513
5512
|
l.pbox[y] = C[y] ^ D[o], o++, o >= i && (o = 0);
|
|
5514
|
-
let
|
|
5513
|
+
let u = 0, m = 0, g = 0;
|
|
5515
5514
|
for (let y = 0; y < B + 2; y += 2)
|
|
5516
|
-
g = a(l,
|
|
5515
|
+
g = a(l, u, m), u = g.left, m = g.right, l.pbox[y] = u, l.pbox[y + 1] = m;
|
|
5517
5516
|
for (let y = 0; y < 4; y++)
|
|
5518
5517
|
for (let k = 0; k < 256; k += 2)
|
|
5519
|
-
g = a(l,
|
|
5518
|
+
g = a(l, u, m), u = g.left, m = g.right, l.sbox[y][k] = u, l.sbox[y][k + 1] = m;
|
|
5520
5519
|
return !0;
|
|
5521
5520
|
}
|
|
5522
|
-
var p =
|
|
5521
|
+
var p = b.Blowfish = v.extend({
|
|
5523
5522
|
_doReset: function() {
|
|
5524
5523
|
if (this._keyPriorReset !== this._key) {
|
|
5525
5524
|
var l = this._keyPriorReset = this._key, D = l.words, i = l.sigBytes / 4;
|
|
@@ -5538,20 +5537,20 @@ function Ex() {
|
|
|
5538
5537
|
keySize: 128 / 32,
|
|
5539
5538
|
ivSize: 64 / 32
|
|
5540
5539
|
});
|
|
5541
|
-
e.Blowfish =
|
|
5540
|
+
e.Blowfish = v._createHelper(p);
|
|
5542
5541
|
})(), t.Blowfish;
|
|
5543
5542
|
});
|
|
5544
|
-
})(
|
|
5543
|
+
})(ir)), ir.exports;
|
|
5545
5544
|
}
|
|
5546
|
-
var Ax =
|
|
5545
|
+
var Ax = _0.exports, Ce;
|
|
5547
5546
|
function Fx() {
|
|
5548
|
-
return Ce || (Ce = 1, (function(r,
|
|
5549
|
-
(function(t, e,
|
|
5547
|
+
return Ce || (Ce = 1, (function(r, h) {
|
|
5548
|
+
(function(t, e, d) {
|
|
5550
5549
|
r.exports = e(M(), ur(), Bt(), Et(), i0(), gt(), s0(), ye(), Er(), yt(), we(), St(), $t(), Pt(), Ar(), It(), a0(), X(), Tt(), Nt(), jt(), Kt(), Yt(), Qt(), Jt(), ex(), xx(), ax(), ix(), cx(), ux(), lx(), vx(), Bx(), Ex());
|
|
5551
5550
|
})(Ax, function(t) {
|
|
5552
5551
|
return t;
|
|
5553
5552
|
});
|
|
5554
|
-
})(
|
|
5553
|
+
})(_0)), _0.exports;
|
|
5555
5554
|
}
|
|
5556
5555
|
Fx();
|
|
5557
5556
|
let ke = null, Se = null, He = null, $e = null;
|
|
@@ -5567,12 +5566,12 @@ function Dx() {
|
|
|
5567
5566
|
domain: $e
|
|
5568
5567
|
};
|
|
5569
5568
|
}
|
|
5570
|
-
function
|
|
5571
|
-
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.
|
|
5569
|
+
function mx(r) {
|
|
5570
|
+
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.145`;
|
|
5572
5571
|
}
|
|
5573
|
-
function
|
|
5574
|
-
const t =
|
|
5575
|
-
return new Worker(t, { type: "module", ...
|
|
5572
|
+
function bx(r, h) {
|
|
5573
|
+
const t = mx(r);
|
|
5574
|
+
return new Worker(t, { type: "module", ...h });
|
|
5576
5575
|
}
|
|
5577
5576
|
const Fr = () => {
|
|
5578
5577
|
try {
|
|
@@ -5587,44 +5586,44 @@ const Fr = () => {
|
|
|
5587
5586
|
}, Ae = /* @__PURE__ */ new Map(), pr = /* @__PURE__ */ new Map();
|
|
5588
5587
|
let _x = 0;
|
|
5589
5588
|
function yx(r) {
|
|
5590
|
-
const
|
|
5591
|
-
if (
|
|
5592
|
-
const t =
|
|
5589
|
+
const h = Ae.get(r);
|
|
5590
|
+
if (h) return h;
|
|
5591
|
+
const t = bx("./deform.worker.ts");
|
|
5593
5592
|
try {
|
|
5594
5593
|
t.postMessage({ type: "SET_DEBUG", debugRender: Fr() });
|
|
5595
5594
|
} catch {
|
|
5596
5595
|
}
|
|
5597
|
-
t.onmessage = (
|
|
5598
|
-
const { id:
|
|
5599
|
-
m0(`[renderService] deform worker 响应 id=${
|
|
5600
|
-
hasImageBitmap: !!
|
|
5601
|
-
width:
|
|
5602
|
-
height:
|
|
5596
|
+
t.onmessage = (d) => {
|
|
5597
|
+
const { id: v, imageBitmap: b, error: B, duration: C } = d.data ?? {}, x = C ? ` worker耗时=${Math.round(C)}ms` : "";
|
|
5598
|
+
m0(`[renderService] deform worker 响应 id=${v}${x}`, {
|
|
5599
|
+
hasImageBitmap: !!b,
|
|
5600
|
+
width: b?.width,
|
|
5601
|
+
height: b?.height,
|
|
5603
5602
|
error: B
|
|
5604
5603
|
});
|
|
5605
|
-
const n = pr.get(
|
|
5604
|
+
const n = pr.get(v);
|
|
5606
5605
|
if (n) {
|
|
5607
|
-
if (pr.delete(
|
|
5606
|
+
if (pr.delete(v), B) {
|
|
5608
5607
|
n.reject(new Error(B));
|
|
5609
5608
|
return;
|
|
5610
5609
|
}
|
|
5611
|
-
n.resolve(
|
|
5610
|
+
n.resolve(b);
|
|
5612
5611
|
}
|
|
5613
|
-
}, t.onerror = (
|
|
5612
|
+
}, t.onerror = (d) => {
|
|
5614
5613
|
};
|
|
5615
5614
|
const e = () => {
|
|
5616
|
-
const
|
|
5615
|
+
const d = Dx();
|
|
5617
5616
|
return m0("🔍 [workerManager] 检查 License Token:", {
|
|
5618
|
-
hasToken: !!
|
|
5619
|
-
tokenPreview:
|
|
5617
|
+
hasToken: !!d.token,
|
|
5618
|
+
tokenPreview: d.token ? d.token.substring(0, 20) + "..." : "undefined",
|
|
5620
5619
|
faceId: r,
|
|
5621
5620
|
source: "licenseStore模块"
|
|
5622
|
-
}),
|
|
5621
|
+
}), d.token ? (m0("📤 [workerManager] 发送 License 到新创建的 Worker", { faceId: r }), t.postMessage({
|
|
5623
5622
|
type: "SET_LICENSE",
|
|
5624
|
-
licenseToken:
|
|
5625
|
-
licenseApiUrl:
|
|
5626
|
-
deviceId:
|
|
5627
|
-
domain:
|
|
5623
|
+
licenseToken: d.token,
|
|
5624
|
+
licenseApiUrl: d.apiUrl,
|
|
5625
|
+
deviceId: d.deviceId,
|
|
5626
|
+
domain: d.domain
|
|
5628
5627
|
}), !0) : !1;
|
|
5629
5628
|
};
|
|
5630
5629
|
return e() || (m0("⏳ [workerManager] License Token 未设置,等待后重试...", { faceId: r }), setTimeout(() => {
|
|
@@ -5639,10 +5638,10 @@ function wx(r) {
|
|
|
5639
5638
|
type: r.type,
|
|
5640
5639
|
blendMode: r.blendMode,
|
|
5641
5640
|
transform: Array.isArray(r.transform) ? [...r.transform] : [],
|
|
5642
|
-
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((
|
|
5643
|
-
x:
|
|
5644
|
-
y:
|
|
5645
|
-
type:
|
|
5641
|
+
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((h) => ({
|
|
5642
|
+
x: h.x,
|
|
5643
|
+
y: h.y,
|
|
5644
|
+
type: h.type
|
|
5646
5645
|
})) : [],
|
|
5647
5646
|
bounds: r.bounds ? {
|
|
5648
5647
|
width: r.bounds.width,
|
|
@@ -5665,30 +5664,30 @@ function wx(r) {
|
|
|
5665
5664
|
layerOrder: r.layerOrder,
|
|
5666
5665
|
imagePath: r.imagePath,
|
|
5667
5666
|
vectorMask: r.vectorMask ? {
|
|
5668
|
-
paths: r.vectorMask.paths?.map((
|
|
5669
|
-
open:
|
|
5670
|
-
knots:
|
|
5667
|
+
paths: r.vectorMask.paths?.map((h) => ({
|
|
5668
|
+
open: h.open,
|
|
5669
|
+
knots: h.knots?.map((t) => ({
|
|
5671
5670
|
linked: t.linked,
|
|
5672
5671
|
points: [...t.points]
|
|
5673
5672
|
})),
|
|
5674
|
-
fillRule:
|
|
5675
|
-
operation:
|
|
5673
|
+
fillRule: h.fillRule,
|
|
5674
|
+
operation: h.operation
|
|
5676
5675
|
})),
|
|
5677
|
-
points: r.vectorMask.points?.map((
|
|
5678
|
-
x:
|
|
5679
|
-
y:
|
|
5680
|
-
type:
|
|
5676
|
+
points: r.vectorMask.points?.map((h) => ({
|
|
5677
|
+
x: h.x,
|
|
5678
|
+
y: h.y,
|
|
5679
|
+
type: h.type
|
|
5681
5680
|
})),
|
|
5682
5681
|
invert: r.vectorMask.invert,
|
|
5683
5682
|
notLink: r.vectorMask.notLink,
|
|
5684
5683
|
disable: r.vectorMask.disable,
|
|
5685
5684
|
fillStartsWithAllPixels: r.vectorMask.fillStartsWithAllPixels
|
|
5686
5685
|
} : void 0,
|
|
5687
|
-
filterList: r.filterList ? r.filterList.map((
|
|
5688
|
-
type:
|
|
5689
|
-
enabled:
|
|
5690
|
-
filter:
|
|
5691
|
-
puppetShapeList:
|
|
5686
|
+
filterList: r.filterList ? r.filterList.map((h) => ({
|
|
5687
|
+
type: h.type,
|
|
5688
|
+
enabled: h.enabled,
|
|
5689
|
+
filter: h.filter ? {
|
|
5690
|
+
puppetShapeList: h.filter.puppetShapeList?.map((t) => ({
|
|
5692
5691
|
originalVertexArray: t.originalVertexArray.map((e) => ({
|
|
5693
5692
|
x: e.x,
|
|
5694
5693
|
y: e.y
|
|
@@ -5705,33 +5704,33 @@ function wx(r) {
|
|
|
5705
5704
|
clipping: r.clipping
|
|
5706
5705
|
};
|
|
5707
5706
|
}
|
|
5708
|
-
function kx(r,
|
|
5709
|
-
const
|
|
5710
|
-
return performance.now(), (/* @__PURE__ */ new Date()).toISOString(), new Promise((
|
|
5711
|
-
pr.set(
|
|
5707
|
+
function kx(r, h, t, e) {
|
|
5708
|
+
const d = ++_x, v = yx(t);
|
|
5709
|
+
return performance.now(), (/* @__PURE__ */ new Date()).toISOString(), new Promise((b, B) => {
|
|
5710
|
+
pr.set(d, {
|
|
5712
5711
|
resolve: (x) => {
|
|
5713
|
-
performance.now(), (/* @__PURE__ */ new Date()).toISOString(),
|
|
5712
|
+
performance.now(), (/* @__PURE__ */ new Date()).toISOString(), b(x);
|
|
5714
5713
|
},
|
|
5715
5714
|
reject: B
|
|
5716
5715
|
});
|
|
5717
|
-
const C = wx(
|
|
5718
|
-
|
|
5716
|
+
const C = wx(h);
|
|
5717
|
+
v.postMessage({ id: d, designBitmap: r, layerData: C, canvasSize: e }, [
|
|
5719
5718
|
r
|
|
5720
5719
|
]);
|
|
5721
5720
|
});
|
|
5722
5721
|
}
|
|
5723
|
-
async function Sx(r,
|
|
5724
|
-
const
|
|
5725
|
-
if (!
|
|
5722
|
+
async function Sx(r, h, t = 0, e, d, v) {
|
|
5723
|
+
const b = await it(r, d, v);
|
|
5724
|
+
if (!b || b.width === 0 || b.height === 0)
|
|
5726
5725
|
throw new Error("图片无效:尺寸为 0");
|
|
5727
|
-
return await kx(
|
|
5726
|
+
return await kx(b, h, t, e);
|
|
5728
5727
|
}
|
|
5729
|
-
function d0(r,
|
|
5728
|
+
function d0(r, h) {
|
|
5730
5729
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
5731
|
-
return new OffscreenCanvas(r,
|
|
5730
|
+
return new OffscreenCanvas(r, h);
|
|
5732
5731
|
if (typeof document < "u") {
|
|
5733
5732
|
const t = document.createElement("canvas");
|
|
5734
|
-
return t.width = r, t.height =
|
|
5733
|
+
return t.width = r, t.height = h, t;
|
|
5735
5734
|
} else
|
|
5736
5735
|
throw new Error("无法创建 canvas:不在 Worker 或主线程环境中");
|
|
5737
5736
|
}
|
|
@@ -5739,13 +5738,13 @@ function A0(r) {
|
|
|
5739
5738
|
return r.getContext("2d");
|
|
5740
5739
|
}
|
|
5741
5740
|
function Fe(r) {
|
|
5742
|
-
const
|
|
5743
|
-
if (!
|
|
5741
|
+
const h = A0(r);
|
|
5742
|
+
if (!h)
|
|
5744
5743
|
throw new Error("无法创建 canvas context");
|
|
5745
|
-
return
|
|
5744
|
+
return h;
|
|
5746
5745
|
}
|
|
5747
5746
|
async function Hx(r) {
|
|
5748
|
-
const
|
|
5747
|
+
const h = performance.now(), t = () => {
|
|
5749
5748
|
try {
|
|
5750
5749
|
if (globalThis.__DEBUG_RENDER__ === !0 || typeof localStorage < "u" && localStorage.getItem("DEBUG_RENDER") === "1") return !0;
|
|
5751
5750
|
} catch {
|
|
@@ -5753,19 +5752,19 @@ async function Hx(r) {
|
|
|
5753
5752
|
return !1;
|
|
5754
5753
|
}, e = (...c) => {
|
|
5755
5754
|
t();
|
|
5756
|
-
},
|
|
5755
|
+
}, d = (...c) => {
|
|
5757
5756
|
t();
|
|
5758
5757
|
}, {
|
|
5759
|
-
psdJson:
|
|
5760
|
-
materialList:
|
|
5758
|
+
psdJson: v,
|
|
5759
|
+
materialList: b,
|
|
5761
5760
|
fabricScreenshotList: B,
|
|
5762
5761
|
width: C,
|
|
5763
5762
|
height: x,
|
|
5764
5763
|
baseUrl: n
|
|
5765
5764
|
} = r, E = r.maxImageSize;
|
|
5766
5765
|
e("[renderByJson] 接收到的数据:", {
|
|
5767
|
-
psdJsonLayerCount:
|
|
5768
|
-
psdJsonLayers:
|
|
5766
|
+
psdJsonLayerCount: v.layerList?.length || 0,
|
|
5767
|
+
psdJsonLayers: v.layerList?.map((c) => ({
|
|
5769
5768
|
name: c.name,
|
|
5770
5769
|
type: c.type,
|
|
5771
5770
|
id: c.id,
|
|
@@ -5791,11 +5790,11 @@ async function Hx(r) {
|
|
|
5791
5790
|
const _ = new URL(c, n).toString();
|
|
5792
5791
|
return !_.includes("http") && !_.startsWith("data:") && !_.startsWith("blob:") ? void 0 : _;
|
|
5793
5792
|
} catch (_) {
|
|
5794
|
-
|
|
5793
|
+
d(`[renderByJson] 解析图片 URL 失败: ${c}`, _);
|
|
5795
5794
|
return;
|
|
5796
5795
|
}
|
|
5797
5796
|
}, s = {}, f = /* @__PURE__ */ new Map();
|
|
5798
|
-
for (const c of
|
|
5797
|
+
for (const c of b) {
|
|
5799
5798
|
const A = c.sourceName || c.layerName;
|
|
5800
5799
|
A && (s[A] = {
|
|
5801
5800
|
url: c.url
|
|
@@ -5806,7 +5805,7 @@ async function Hx(r) {
|
|
|
5806
5805
|
const p = /* @__PURE__ */ new Map();
|
|
5807
5806
|
for (const c of B)
|
|
5808
5807
|
p.set(c.id, c.url);
|
|
5809
|
-
e("[renderByJson] fabricScreenshotMap:", Array.from(p.entries())), e("[renderByJson] psdJson.layerList 结构:",
|
|
5808
|
+
e("[renderByJson] fabricScreenshotMap:", Array.from(p.entries())), e("[renderByJson] psdJson.layerList 结构:", v.layerList?.map((c) => ({
|
|
5810
5809
|
name: c.name,
|
|
5811
5810
|
type: c.type,
|
|
5812
5811
|
id: c.id,
|
|
@@ -5817,28 +5816,28 @@ async function Hx(r) {
|
|
|
5817
5816
|
const _ = c.color || (c.name && ["粉", "白", "绿", "红", "蓝", "黄", "黑", "灰"].includes(c.name) ? c.name : A);
|
|
5818
5817
|
if (c.type === "Layer") {
|
|
5819
5818
|
if (c.imagePath) {
|
|
5820
|
-
const
|
|
5819
|
+
const z = b.find((P) => {
|
|
5821
5820
|
const L = P.sourceName || P.layerName;
|
|
5822
5821
|
return !L || !c.imagePath ? !1 : L === c.imagePath || L.endsWith(c.imagePath) || c.imagePath.endsWith(L);
|
|
5823
5822
|
});
|
|
5824
|
-
|
|
5825
|
-
url:
|
|
5823
|
+
z && (s[c.imagePath] = {
|
|
5824
|
+
url: z.url
|
|
5826
5825
|
});
|
|
5827
5826
|
}
|
|
5828
5827
|
if (c.name) {
|
|
5829
5828
|
if (_) {
|
|
5830
|
-
const
|
|
5829
|
+
const z = `${_}-${c.name}`, P = b.find((L) => {
|
|
5831
5830
|
const I = L.sourceName || L.layerName;
|
|
5832
5831
|
return I ? (I.split("/").pop() || I).replace(/\.(png|jpg|jpeg|gif|webp)$/i, "").startsWith(`${_}-${c.name}`) : !1;
|
|
5833
5832
|
});
|
|
5834
|
-
P && (s[
|
|
5833
|
+
P && (s[z] = {
|
|
5835
5834
|
url: P.url
|
|
5836
5835
|
});
|
|
5837
5836
|
}
|
|
5838
5837
|
if (c.imagePath && c.name) {
|
|
5839
|
-
const
|
|
5838
|
+
const z = c.imagePath.split("/").pop() || c.imagePath, P = b.find((L) => {
|
|
5840
5839
|
const I = L.sourceName || L.layerName;
|
|
5841
|
-
return I ? (I.split("/").pop() || I) ===
|
|
5840
|
+
return I ? (I.split("/").pop() || I) === z : !1;
|
|
5842
5841
|
});
|
|
5843
5842
|
P && (s[c.imagePath] = {
|
|
5844
5843
|
url: P.url
|
|
@@ -5847,37 +5846,37 @@ async function Hx(r) {
|
|
|
5847
5846
|
}
|
|
5848
5847
|
}
|
|
5849
5848
|
if (c.children)
|
|
5850
|
-
for (const
|
|
5851
|
-
|
|
5849
|
+
for (const z of c.children)
|
|
5850
|
+
z && l(z, _);
|
|
5852
5851
|
}
|
|
5853
5852
|
function D(c, A) {
|
|
5854
5853
|
const _ = c.id ?? A;
|
|
5855
5854
|
if (c.type === "Group" && _)
|
|
5856
5855
|
if (e(`[renderByJson] processLayer 检查 Group: name="${c.name}", id=${_}, hasFabricScreenshot=${p.has(_)}`), p.has(_)) {
|
|
5857
|
-
const
|
|
5858
|
-
if (e(`[renderByJson] ✅ 找到匹配的 fabricScreenshot: Group id=${_}, name="${c.name}", url=${
|
|
5856
|
+
const z = p.get(_);
|
|
5857
|
+
if (e(`[renderByJson] ✅ 找到匹配的 fabricScreenshot: Group id=${_}, name="${c.name}", url=${z.substring(0, 50)}...`), c.children) {
|
|
5859
5858
|
e(`[renderByJson] Group "${c.name}" 有 ${c.children.length} 个子图层`);
|
|
5860
5859
|
for (const P of c.children)
|
|
5861
5860
|
if (P && P.isSmartObject === !0) {
|
|
5862
5861
|
const L = P?.name || "";
|
|
5863
|
-
e(`[renderByJson] 找到智能对象: name="${L}"`), L && !s[L] && (s[L] = {}), L ? (s[L].designImage =
|
|
5862
|
+
e(`[renderByJson] 找到智能对象: name="${L}"`), L && !s[L] && (s[L] = {}), L ? (s[L].designImage = z, e(`[renderByJson] ✅ 为智能对象 "${L}" 设置 designImage: ${z.substring(0, 50)}...`)) : d("[renderByJson] ⚠️ 智能对象没有 name,无法设置 designImage");
|
|
5864
5863
|
}
|
|
5865
5864
|
} else
|
|
5866
|
-
|
|
5865
|
+
d(`[renderByJson] ⚠️ Group id=${_} 没有 children`);
|
|
5867
5866
|
} else
|
|
5868
5867
|
e(`[renderByJson] ⚠️ Group id=${_}, name="${c.name}" 没有匹配的 fabricScreenshot`);
|
|
5869
5868
|
if (c.children)
|
|
5870
|
-
for (const
|
|
5871
|
-
|
|
5869
|
+
for (const z of c.children)
|
|
5870
|
+
z && D(z, _);
|
|
5872
5871
|
}
|
|
5873
|
-
if (
|
|
5874
|
-
for (const c of
|
|
5872
|
+
if (v.layerList)
|
|
5873
|
+
for (const c of v.layerList)
|
|
5875
5874
|
c && l(c);
|
|
5876
|
-
if (
|
|
5877
|
-
for (const c of
|
|
5875
|
+
if (v.layerList)
|
|
5876
|
+
for (const c of v.layerList)
|
|
5878
5877
|
c && D(c);
|
|
5879
5878
|
const o = Ye([{
|
|
5880
|
-
psdJson:
|
|
5879
|
+
psdJson: v,
|
|
5881
5880
|
layerExtrasByName: s
|
|
5882
5881
|
}], {
|
|
5883
5882
|
parts: [],
|
|
@@ -5885,37 +5884,37 @@ async function Hx(r) {
|
|
|
5885
5884
|
});
|
|
5886
5885
|
if (!o.models || o.models.length === 0)
|
|
5887
5886
|
throw new Error("无法解析 JSON 数据");
|
|
5888
|
-
const
|
|
5889
|
-
if (!
|
|
5887
|
+
const u = o.models[0];
|
|
5888
|
+
if (!u.psdPartData)
|
|
5890
5889
|
throw new Error("JSON 数据中没有 psdPartData");
|
|
5891
|
-
const
|
|
5890
|
+
const m = u.width, g = u.height, y = d0(m, g), k = Fe(y), R = [], F = (c) => {
|
|
5892
5891
|
if (c.url && s[c.url])
|
|
5893
5892
|
return s[c.url];
|
|
5894
5893
|
if (c.url) {
|
|
5895
5894
|
const A = c.url.split("/").pop() || c.url;
|
|
5896
5895
|
if (s[A])
|
|
5897
5896
|
return s[A];
|
|
5898
|
-
const _ =
|
|
5899
|
-
const P =
|
|
5897
|
+
const _ = b.find((z) => {
|
|
5898
|
+
const P = z.sourceName || z.layerName;
|
|
5900
5899
|
return !P || !c.url ? !1 : (P.split("/").pop() || P) === A || P === c.url || P.endsWith(c.url) || c.url.endsWith(P);
|
|
5901
5900
|
});
|
|
5902
5901
|
if (_) {
|
|
5903
|
-
const
|
|
5904
|
-
if (
|
|
5905
|
-
return s[
|
|
5902
|
+
const z = _.sourceName || _.layerName;
|
|
5903
|
+
if (z)
|
|
5904
|
+
return s[z] || { url: _.url };
|
|
5906
5905
|
}
|
|
5907
5906
|
}
|
|
5908
5907
|
};
|
|
5909
|
-
for (let c = 0; c <
|
|
5910
|
-
const A =
|
|
5908
|
+
for (let c = 0; c < u.psdPartData.length; c++) {
|
|
5909
|
+
const A = u.psdPartData[c], _ = F(A);
|
|
5911
5910
|
if (A.type === F0.Layer) {
|
|
5912
5911
|
if (!_ || !_.url) {
|
|
5913
|
-
|
|
5912
|
+
d(`图层 "${A.name}" 没有匹配的 material,跳过`);
|
|
5914
5913
|
continue;
|
|
5915
5914
|
}
|
|
5916
|
-
const
|
|
5915
|
+
const z = _.url, P = a(z);
|
|
5917
5916
|
if (!P) {
|
|
5918
|
-
|
|
5917
|
+
d(`图层 "${A.name}" 没有有效的 url,跳过`);
|
|
5919
5918
|
continue;
|
|
5920
5919
|
}
|
|
5921
5920
|
R.push({
|
|
@@ -5927,17 +5926,17 @@ async function Hx(r) {
|
|
|
5927
5926
|
} else if (A.type === F0.Group) {
|
|
5928
5927
|
if (!A.smartObjects || A.smartObjects.length === 0)
|
|
5929
5928
|
continue;
|
|
5930
|
-
for (let
|
|
5931
|
-
const P = A.smartObjects[
|
|
5929
|
+
for (let z = 0; z < A.smartObjects.length; z++) {
|
|
5930
|
+
const P = A.smartObjects[z];
|
|
5932
5931
|
if (!P || !P.name)
|
|
5933
5932
|
continue;
|
|
5934
5933
|
let L = s[P.name] ?? _;
|
|
5935
5934
|
if (!L && P.imagePath && (L = s[P.imagePath], !L)) {
|
|
5936
5935
|
const K = P.imagePath.split("/").pop() || P.imagePath;
|
|
5937
5936
|
if (L = s[K], !L) {
|
|
5938
|
-
const G =
|
|
5939
|
-
const
|
|
5940
|
-
return !
|
|
5937
|
+
const G = b.find((Y) => {
|
|
5938
|
+
const r0 = Y.sourceName || Y.layerName;
|
|
5939
|
+
return !r0 || !P.imagePath ? !1 : (r0.split("/").pop() || r0) === K || r0 === P.imagePath || r0.endsWith(P.imagePath) || P.imagePath.endsWith(r0);
|
|
5941
5940
|
});
|
|
5942
5941
|
G && (L = { url: G.url });
|
|
5943
5942
|
}
|
|
@@ -5954,9 +5953,9 @@ async function Hx(r) {
|
|
|
5954
5953
|
continue;
|
|
5955
5954
|
I = G;
|
|
5956
5955
|
}
|
|
5957
|
-
const Z = (A.partId ?? A.id) * 100 +
|
|
5956
|
+
const Z = (A.partId ?? A.id) * 100 + z, Q = Qe(Ze(P)), o0 = { width: m, height: g };
|
|
5958
5957
|
R.push({
|
|
5959
|
-
index: c +
|
|
5958
|
+
index: c + z * 0.01,
|
|
5960
5959
|
type: "group",
|
|
5961
5960
|
partData: A,
|
|
5962
5961
|
smartObject: P,
|
|
@@ -5977,74 +5976,74 @@ async function Hx(r) {
|
|
|
5977
5976
|
task: c,
|
|
5978
5977
|
imageBitmap: w[A]
|
|
5979
5978
|
})).sort((c, A) => {
|
|
5980
|
-
const _ = c.task.type === "group" && c.task.smartObject?.layerOrder !== void 0 ? c.task.smartObject.layerOrder : c.task.partData.layerOrder ?? c.task.index,
|
|
5981
|
-
return _ -
|
|
5979
|
+
const _ = c.task.type === "group" && c.task.smartObject?.layerOrder !== void 0 ? c.task.smartObject.layerOrder : c.task.partData.layerOrder ?? c.task.index, z = A.task.type === "group" && A.task.smartObject?.layerOrder !== void 0 ? A.task.smartObject.layerOrder : A.task.partData.layerOrder ?? A.task.index;
|
|
5980
|
+
return _ - z;
|
|
5982
5981
|
});
|
|
5983
|
-
let $ = d0(
|
|
5982
|
+
let $ = d0(m, g), W = A0($), O = !1, q = "normal";
|
|
5984
5983
|
for (let c = 0; c < H.length; c++) {
|
|
5985
5984
|
const { task: A, imageBitmap: _ } = H[c];
|
|
5986
5985
|
if (!_) {
|
|
5987
|
-
|
|
5986
|
+
d(`[renderByJson] 图层 "${A.partData.name}" 没有 imageBitmap,跳过`);
|
|
5988
5987
|
continue;
|
|
5989
5988
|
}
|
|
5990
|
-
const { partData:
|
|
5989
|
+
const { partData: z } = A, P = z.bounds;
|
|
5991
5990
|
let L;
|
|
5992
|
-
A.type === "group" && A.smartObject ? L = A.smartObject.opacity ??
|
|
5991
|
+
A.type === "group" && A.smartObject ? L = A.smartObject.opacity ?? z.opacity : L = z.opacity, (typeof L != "number" || isNaN(L)) && (L = 1);
|
|
5993
5992
|
let I;
|
|
5994
|
-
A.type === "group" && A.smartObject ? I = A.smartObject.clipping ??
|
|
5993
|
+
A.type === "group" && A.smartObject ? I = A.smartObject.clipping ?? z.clipping === !0 : I = z.clipping === !0;
|
|
5995
5994
|
const Z = H[c + 1];
|
|
5996
5995
|
let Q = !1;
|
|
5997
5996
|
if (Z) {
|
|
5998
5997
|
const K = Z.task.partData;
|
|
5999
5998
|
Z.task.type === "group" && Z.task.smartObject ? Q = Z.task.smartObject.clipping ?? K.clipping === !0 : Q = K.clipping === !0;
|
|
6000
5999
|
}
|
|
6001
|
-
const o0 = A.type === "group" && A.smartObject && A.smartObject.name ? A.smartObject.name :
|
|
6000
|
+
const o0 = A.type === "group" && A.smartObject && A.smartObject.name ? A.smartObject.name : z?.name || "未命名图层";
|
|
6002
6001
|
if (e(`[renderByJson] 绘制图层 "${o0}"`, {
|
|
6003
6002
|
type: A.type,
|
|
6004
6003
|
bitmapSize: { width: _.width, height: _.height },
|
|
6005
6004
|
bounds: P,
|
|
6006
6005
|
hasMask: !!A.maskData,
|
|
6007
|
-
blendMode:
|
|
6006
|
+
blendMode: z.blendMode,
|
|
6008
6007
|
opacity: L,
|
|
6009
6008
|
clipping: I
|
|
6010
6009
|
}), !I && Q) {
|
|
6011
|
-
if (O = !0, q =
|
|
6012
|
-
if (
|
|
6010
|
+
if (O = !0, q = z.blendMode || "normal", W) {
|
|
6011
|
+
if (W.clearRect(0, 0, m, g), W.globalCompositeOperation = "source-over", W.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6013
6012
|
if (A.maskData) {
|
|
6014
|
-
const K = d0(
|
|
6015
|
-
G && (G.drawImage(_, 0, 0), lr(G, A.maskData),
|
|
6013
|
+
const K = d0(m, g), G = A0(K);
|
|
6014
|
+
G && (G.drawImage(_, 0, 0), lr(G, A.maskData), W.drawImage(K, 0, 0));
|
|
6016
6015
|
} else
|
|
6017
|
-
|
|
6018
|
-
else A.type === "layer" && (P ?
|
|
6016
|
+
W.drawImage(_, 0, 0);
|
|
6017
|
+
else A.type === "layer" && (P ? W.drawImage(
|
|
6019
6018
|
_,
|
|
6020
6019
|
P.left,
|
|
6021
6020
|
P.top,
|
|
6022
6021
|
P.width,
|
|
6023
6022
|
P.height
|
|
6024
|
-
) :
|
|
6025
|
-
|
|
6023
|
+
) : W.drawImage(_, 0, 0));
|
|
6024
|
+
W.globalAlpha = 1;
|
|
6026
6025
|
}
|
|
6027
6026
|
} else if (I) {
|
|
6028
|
-
if (
|
|
6029
|
-
if (
|
|
6027
|
+
if (W) {
|
|
6028
|
+
if (W.globalCompositeOperation = "source-atop", W.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6030
6029
|
if (A.maskData) {
|
|
6031
|
-
const K = d0(
|
|
6032
|
-
G && (G.drawImage(_, 0, 0), lr(G, A.maskData),
|
|
6030
|
+
const K = d0(m, g), G = A0(K);
|
|
6031
|
+
G && (G.drawImage(_, 0, 0), lr(G, A.maskData), W.drawImage(K, 0, 0));
|
|
6033
6032
|
} else
|
|
6034
|
-
|
|
6035
|
-
else A.type === "layer" && (P ?
|
|
6033
|
+
W.drawImage(_, 0, 0);
|
|
6034
|
+
else A.type === "layer" && (P ? W.drawImage(
|
|
6036
6035
|
_,
|
|
6037
6036
|
P.left,
|
|
6038
6037
|
P.top,
|
|
6039
6038
|
P.width,
|
|
6040
6039
|
P.height
|
|
6041
|
-
) :
|
|
6042
|
-
|
|
6040
|
+
) : W.drawImage(_, 0, 0));
|
|
6041
|
+
W.globalAlpha = 1, W.globalCompositeOperation = "source-over";
|
|
6043
6042
|
}
|
|
6044
6043
|
} else {
|
|
6045
|
-
if (k.globalCompositeOperation =
|
|
6044
|
+
if (k.globalCompositeOperation = zr(z.blendMode), k.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6046
6045
|
if (A.maskData) {
|
|
6047
|
-
const K = d0(
|
|
6046
|
+
const K = d0(m, g), G = A0(K);
|
|
6048
6047
|
G && (G.drawImage(_, 0, 0), lr(G, A.maskData), k.drawImage(K, 0, 0));
|
|
6049
6048
|
} else
|
|
6050
6049
|
k.drawImage(_, 0, 0);
|
|
@@ -6057,25 +6056,25 @@ async function Hx(r) {
|
|
|
6057
6056
|
) : k.drawImage(_, 0, 0));
|
|
6058
6057
|
k.globalAlpha = 1, k.globalCompositeOperation = "source-over";
|
|
6059
6058
|
}
|
|
6060
|
-
O && !Q && (k.globalCompositeOperation =
|
|
6059
|
+
O && !Q && (k.globalCompositeOperation = zr(q), k.drawImage($, 0, 0), k.globalCompositeOperation = "source-over", O = !1);
|
|
6061
6060
|
}
|
|
6062
|
-
$ = null,
|
|
6063
|
-
let U = y, T =
|
|
6061
|
+
$ = null, W = null;
|
|
6062
|
+
let U = y, T = m, N = g;
|
|
6064
6063
|
if (C !== void 0 || x !== void 0) {
|
|
6065
6064
|
if (C !== void 0 && x !== void 0)
|
|
6066
6065
|
T = C, N = x;
|
|
6067
6066
|
else if (C !== void 0) {
|
|
6068
|
-
const A = C /
|
|
6067
|
+
const A = C / m;
|
|
6069
6068
|
T = C, N = Math.round(g * A);
|
|
6070
6069
|
} else if (x !== void 0) {
|
|
6071
6070
|
const A = x / g;
|
|
6072
|
-
T = Math.round(
|
|
6071
|
+
T = Math.round(m * A), N = x;
|
|
6073
6072
|
}
|
|
6074
6073
|
U = d0(T, N);
|
|
6075
6074
|
const c = Fe(U);
|
|
6076
|
-
c.imageSmoothingEnabled = !0, c.imageSmoothingQuality = "high", c.drawImage(y, 0, 0,
|
|
6075
|
+
c.imageSmoothingEnabled = !0, c.imageSmoothingQuality = "high", c.drawImage(y, 0, 0, m, g, 0, 0, T, N), e(`[renderByJson] 已缩放结果: ${m}x${g} -> ${T}x${N}`);
|
|
6077
6076
|
}
|
|
6078
|
-
const S = performance.now() -
|
|
6077
|
+
const S = performance.now() - h;
|
|
6079
6078
|
return e(`[renderByJson] 绘制完成,总渲染时间: ${Math.round(S)}ms`), {
|
|
6080
6079
|
canvas: U,
|
|
6081
6080
|
width: T,
|
|
@@ -6087,9 +6086,9 @@ const $x = async (r) => {
|
|
|
6087
6086
|
return t ? createImageBitmap(t) : null;
|
|
6088
6087
|
};
|
|
6089
6088
|
self.onmessage = async (r) => {
|
|
6090
|
-
const
|
|
6091
|
-
if (
|
|
6092
|
-
const e =
|
|
6089
|
+
const h = r.data;
|
|
6090
|
+
if (h && typeof h == "object" && "type" in h && h.type === "SET_LICENSE") {
|
|
6091
|
+
const e = h;
|
|
6093
6092
|
gx({
|
|
6094
6093
|
token: e.licenseToken,
|
|
6095
6094
|
apiUrl: e.licenseApiUrl,
|
|
@@ -6098,7 +6097,7 @@ self.onmessage = async (r) => {
|
|
|
6098
6097
|
});
|
|
6099
6098
|
return;
|
|
6100
6099
|
}
|
|
6101
|
-
const t =
|
|
6100
|
+
const t = h;
|
|
6102
6101
|
try {
|
|
6103
6102
|
const e = await $x(t.renderData);
|
|
6104
6103
|
self.postMessage({ id: t.id, bitmap: e }, e ? [e] : []);
|