@jieyin/editor-sdk-test 1.1.158 → 1.1.159
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 +1739 -1734
- package/dist/renderWorker.js +745 -745
- package/package.json +1 -1
package/dist/renderWorker.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
function
|
|
3
|
-
let
|
|
1
|
+
var D0 = /* @__PURE__ */ ((r) => (r[r.Group = 0] = "Group", r[r.Layer = 1] = "Layer", r))(D0 || {});
|
|
2
|
+
function Ze(r) {
|
|
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
|
|
9
|
+
function Ve(r, h) {
|
|
10
10
|
return {
|
|
11
11
|
name: r.name || "",
|
|
12
12
|
type: r.type || "Layer",
|
|
@@ -23,16 +23,16 @@ function Ze(r, d) {
|
|
|
23
23
|
quiltSliceY: r.quiltSliceY,
|
|
24
24
|
layerOrder: r.layerOrder,
|
|
25
25
|
imagePath: r.imagePath,
|
|
26
|
-
vectorMask: r.vectorMask ??
|
|
26
|
+
vectorMask: r.vectorMask ?? h,
|
|
27
27
|
filterList: r.filterList,
|
|
28
28
|
opacity: r.opacity,
|
|
29
29
|
clipping: r.clipping
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
function Qe(r,
|
|
33
|
-
let u = r.name || "", p =
|
|
32
|
+
function Qe(r, h, t, e) {
|
|
33
|
+
let u = r.name || "", p = h[u], m = p?.partId ?? (r.type === "Group" ? t.get(u) : void 0);
|
|
34
34
|
if (r.type === "Group" && m === void 0 && (!p || p.id === void 0) && r.children && r.children.length === 1) {
|
|
35
|
-
const x = r.children[0].name, n =
|
|
35
|
+
const x = r.children[0].name, n = h[x], E = n?.partId ?? t.get(x);
|
|
36
36
|
(E !== void 0 || n?.id !== void 0) && (u = x, p = n, m = E);
|
|
37
37
|
}
|
|
38
38
|
const B = r.id ?? p?.id ?? e();
|
|
@@ -43,9 +43,9 @@ function Qe(r, d, t, e) {
|
|
|
43
43
|
name: u,
|
|
44
44
|
blendMode: r.blendMode || "normal",
|
|
45
45
|
bounds: r.bounds || { left: 0, top: 0, width: 0, height: 0 },
|
|
46
|
-
type:
|
|
46
|
+
type: D0.Group,
|
|
47
47
|
smartObjects: (r.children ?? []).map(
|
|
48
|
-
(x) =>
|
|
48
|
+
(x) => Ve(x, r.vectorMask)
|
|
49
49
|
),
|
|
50
50
|
opacity: r.opacity,
|
|
51
51
|
clipping: r.clipping,
|
|
@@ -57,17 +57,17 @@ function Qe(r, d, t, e) {
|
|
|
57
57
|
name: r.name || "",
|
|
58
58
|
blendMode: r.blendMode || "normal",
|
|
59
59
|
bounds: r.bounds || { left: 0, top: 0, width: 0, height: 0 },
|
|
60
|
-
type:
|
|
60
|
+
type: D0.Layer,
|
|
61
61
|
url: C,
|
|
62
62
|
opacity: r.opacity,
|
|
63
63
|
clipping: r.clipping,
|
|
64
64
|
layerOrder: r.layerOrder
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
const t = new Map(
|
|
67
|
+
function Je(r, h) {
|
|
68
|
+
const t = new Map(h.parts.map((u) => [u.name, u.id])), e = Ze(h.defaultIdStart ?? 1);
|
|
69
69
|
return {
|
|
70
|
-
parts:
|
|
70
|
+
parts: h.parts,
|
|
71
71
|
models: r.map((u) => {
|
|
72
72
|
const p = u.layerExtrasByName ?? {}, m = u.psdJson, B = m.layerList || m.layerList || [], C = m.canvasWidth, x = m.canvasHeight;
|
|
73
73
|
if (!C || !x)
|
|
@@ -76,19 +76,19 @@ function Ve(r, d) {
|
|
|
76
76
|
const f = [];
|
|
77
77
|
for (const v of s)
|
|
78
78
|
if (v.type === "Group" && v.children) {
|
|
79
|
-
const
|
|
80
|
-
const b = o.layerOrder ?? 0,
|
|
81
|
-
return b -
|
|
79
|
+
const l = [], g = [], i = [...v.children].sort((o, d) => {
|
|
80
|
+
const b = o.layerOrder ?? 0, D = d.layerOrder ?? 0;
|
|
81
|
+
return b - D;
|
|
82
82
|
});
|
|
83
83
|
for (const o of i)
|
|
84
|
-
o.isSmartObject === !0 ?
|
|
85
|
-
if (
|
|
86
|
-
const o = n(
|
|
84
|
+
o.isSmartObject === !0 ? l.push(o) : g.push(o);
|
|
85
|
+
if (g.length > 0) {
|
|
86
|
+
const o = n(g);
|
|
87
87
|
f.push(...o);
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
l.length > 0 && f.push({
|
|
90
90
|
...v,
|
|
91
|
-
children:
|
|
91
|
+
children: l
|
|
92
92
|
});
|
|
93
93
|
} else
|
|
94
94
|
f.push(v);
|
|
@@ -104,32 +104,32 @@ function Ve(r, d) {
|
|
|
104
104
|
})
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function rt(r) {
|
|
108
108
|
return r ? r.vectorMask && r.vectorMask.paths && Array.isArray(r.vectorMask.paths) ? { type: "bezier", paths: r.vectorMask.paths } : Array.isArray(r.vectorMask) ? { type: "simple", points: r.vectorMask } : null : null;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function et(r) {
|
|
111
111
|
return r ? r.type === "bezier" ? {
|
|
112
112
|
type: "bezier",
|
|
113
|
-
paths: r.paths.map((
|
|
114
|
-
open: !!
|
|
115
|
-
knots:
|
|
113
|
+
paths: r.paths.map((h) => ({
|
|
114
|
+
open: !!h.open,
|
|
115
|
+
knots: h.knots.map((t) => ({
|
|
116
116
|
linked: !!t.linked,
|
|
117
117
|
points: Array.isArray(t.points) ? [...t.points] : []
|
|
118
118
|
}))
|
|
119
119
|
}))
|
|
120
120
|
} : r.type === "simple" ? {
|
|
121
121
|
type: "simple",
|
|
122
|
-
points: r.points.map((
|
|
123
|
-
x:
|
|
124
|
-
y:
|
|
125
|
-
type:
|
|
122
|
+
points: r.points.map((h) => ({
|
|
123
|
+
x: h.x,
|
|
124
|
+
y: h.y,
|
|
125
|
+
type: h.type
|
|
126
126
|
}))
|
|
127
127
|
} : null : null;
|
|
128
128
|
}
|
|
129
|
-
function 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
135
|
const u = e[0];
|
|
@@ -146,8 +146,8 @@ function lr(r, d) {
|
|
|
146
146
|
}
|
|
147
147
|
t.open || r.closePath();
|
|
148
148
|
});
|
|
149
|
-
else if (
|
|
150
|
-
const t =
|
|
149
|
+
else if (h.type === "simple" && Array.isArray(h.points)) {
|
|
150
|
+
const t = h.points;
|
|
151
151
|
if (t.length < 3) return;
|
|
152
152
|
r.moveTo(t[0].x, t[0].y);
|
|
153
153
|
for (let e = 1; e < t.length; e++) r.lineTo(t[e].x, t[e].y);
|
|
@@ -161,10 +161,10 @@ class v0 {
|
|
|
161
161
|
/**
|
|
162
162
|
* 获取存储项
|
|
163
163
|
*/
|
|
164
|
-
static getItem(
|
|
164
|
+
static getItem(h) {
|
|
165
165
|
if (!this.hasStorage) return null;
|
|
166
166
|
try {
|
|
167
|
-
return localStorage.getItem(
|
|
167
|
+
return localStorage.getItem(h);
|
|
168
168
|
} catch {
|
|
169
169
|
return null;
|
|
170
170
|
}
|
|
@@ -172,10 +172,10 @@ class v0 {
|
|
|
172
172
|
/**
|
|
173
173
|
* 设置存储项
|
|
174
174
|
*/
|
|
175
|
-
static setItem(
|
|
175
|
+
static setItem(h, t) {
|
|
176
176
|
if (!this.hasStorage) return !1;
|
|
177
177
|
try {
|
|
178
|
-
return localStorage.setItem(
|
|
178
|
+
return localStorage.setItem(h, t), !0;
|
|
179
179
|
} catch {
|
|
180
180
|
return !1;
|
|
181
181
|
}
|
|
@@ -183,10 +183,10 @@ class v0 {
|
|
|
183
183
|
/**
|
|
184
184
|
* 移除存储项
|
|
185
185
|
*/
|
|
186
|
-
static removeItem(
|
|
186
|
+
static removeItem(h) {
|
|
187
187
|
if (!this.hasStorage) return !1;
|
|
188
188
|
try {
|
|
189
|
-
return localStorage.removeItem(
|
|
189
|
+
return localStorage.removeItem(h), !0;
|
|
190
190
|
} catch {
|
|
191
191
|
return !1;
|
|
192
192
|
}
|
|
@@ -251,10 +251,10 @@ class h0 {
|
|
|
251
251
|
/**
|
|
252
252
|
* 安全地解析 URL
|
|
253
253
|
*/
|
|
254
|
-
static parse(
|
|
254
|
+
static parse(h) {
|
|
255
255
|
try {
|
|
256
256
|
const t = fr.getOrigin();
|
|
257
|
-
return new URL(
|
|
257
|
+
return new URL(h, t);
|
|
258
258
|
} catch {
|
|
259
259
|
return null;
|
|
260
260
|
}
|
|
@@ -262,171 +262,171 @@ class h0 {
|
|
|
262
262
|
/**
|
|
263
263
|
* 添加查询参数
|
|
264
264
|
*/
|
|
265
|
-
static addParam(
|
|
266
|
-
const u = this.parse(
|
|
267
|
-
return !u || u.searchParams.has(t) ?
|
|
265
|
+
static addParam(h, t, e) {
|
|
266
|
+
const u = this.parse(h);
|
|
267
|
+
return !u || u.searchParams.has(t) ? h : (u.searchParams.set(t, e), this.formatUrl(h, u));
|
|
268
268
|
}
|
|
269
269
|
/**
|
|
270
270
|
* 移除查询参数
|
|
271
271
|
*/
|
|
272
|
-
static removeParam(
|
|
273
|
-
const e = this.parse(
|
|
274
|
-
return !e || !e.searchParams.has(t) ?
|
|
272
|
+
static removeParam(h, t) {
|
|
273
|
+
const e = this.parse(h);
|
|
274
|
+
return !e || !e.searchParams.has(t) ? h : (e.searchParams.delete(t), this.formatUrl(h, e));
|
|
275
275
|
}
|
|
276
276
|
/**
|
|
277
277
|
* 检查是否有指定参数
|
|
278
278
|
*/
|
|
279
|
-
static hasParam(
|
|
280
|
-
return this.parse(
|
|
279
|
+
static hasParam(h, t) {
|
|
280
|
+
return this.parse(h)?.searchParams.has(t) ?? !1;
|
|
281
281
|
}
|
|
282
282
|
/**
|
|
283
283
|
* 格式化 URL(保持原始格式)
|
|
284
284
|
*/
|
|
285
|
-
static formatUrl(
|
|
286
|
-
const e = /^(https?:)?\/\//i.test(
|
|
285
|
+
static formatUrl(h, t) {
|
|
286
|
+
const e = /^(https?:)?\/\//i.test(h), u = h.startsWith("//");
|
|
287
287
|
return e ? t.toString() : u ? t.toString().replace(/^https?:/, "") : `${t.pathname}${t.search}${t.hash}`;
|
|
288
288
|
}
|
|
289
289
|
/**
|
|
290
290
|
* 检查是否为数据 URL
|
|
291
291
|
*/
|
|
292
|
-
static isDataUrl(
|
|
293
|
-
return
|
|
292
|
+
static isDataUrl(h) {
|
|
293
|
+
return h?.startsWith("data:") ?? !1;
|
|
294
294
|
}
|
|
295
295
|
/**
|
|
296
296
|
* 检查是否为 Blob URL
|
|
297
297
|
*/
|
|
298
|
-
static isBlobUrl(
|
|
299
|
-
return
|
|
298
|
+
static isBlobUrl(h) {
|
|
299
|
+
return h?.startsWith("blob:") ?? !1;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
return r;
|
|
306
|
-
}, cr();
|
|
307
|
-
}
|
|
308
|
-
(function(r, d) {
|
|
309
|
-
const t = r0, e = r();
|
|
302
|
+
const t0 = Ar;
|
|
303
|
+
(function(r, h) {
|
|
304
|
+
const t = Ar, e = r();
|
|
310
305
|
for (; ; )
|
|
311
306
|
try {
|
|
312
|
-
if (
|
|
307
|
+
if (parseInt(t(429)) / 1 + -parseInt(t(427)) / 2 * (parseInt(t(414)) / 3) + parseInt(t(413)) / 4 * (-parseInt(t(409)) / 5) + -parseInt(t(408)) / 6 + parseInt(t(404)) / 7 + -parseInt(t(412)) / 8 * (parseInt(t(426)) / 9) + parseInt(t(419)) / 10 === h) break;
|
|
313
308
|
e.push(e.shift());
|
|
314
309
|
} catch {
|
|
315
310
|
e.push(e.shift());
|
|
316
311
|
}
|
|
317
|
-
})(cr, -
|
|
312
|
+
})(cr, -68737 * -7 + 41 * -7046 + -76376 * -1);
|
|
318
313
|
const A0 = /* @__PURE__ */ (function() {
|
|
319
314
|
let r = !0;
|
|
320
|
-
return function(
|
|
315
|
+
return function(h, t) {
|
|
321
316
|
const e = r ? function() {
|
|
322
317
|
if (t) {
|
|
323
|
-
const u = t.apply(
|
|
318
|
+
const u = t.apply(h, arguments);
|
|
324
319
|
return t = null, u;
|
|
325
320
|
}
|
|
326
321
|
} : function() {
|
|
327
322
|
};
|
|
328
323
|
return r = !1, e;
|
|
329
324
|
};
|
|
330
|
-
})(),
|
|
331
|
-
const r =
|
|
332
|
-
let
|
|
325
|
+
})(), tt = A0(void 0, function() {
|
|
326
|
+
const r = Ar;
|
|
327
|
+
let h;
|
|
333
328
|
try {
|
|
334
|
-
|
|
329
|
+
h = Function(r(430) + "n (functio" + r(416) + '{}.constructor("return this")( ));')();
|
|
335
330
|
} catch {
|
|
336
|
-
|
|
331
|
+
h = window;
|
|
337
332
|
}
|
|
338
|
-
const t =
|
|
339
|
-
for (let u =
|
|
340
|
-
const p = A0
|
|
341
|
-
p
|
|
333
|
+
const t = h.console = h[r(439) + "le"] || {}, e = ["log", "warn", "info", "error", r(435) + "tion", "table", r(406)];
|
|
334
|
+
for (let u = 8234 + 5 * -1433 + -1069; u < e[r(403) + "h"]; u++) {
|
|
335
|
+
const p = A0[r(425) + "ructor"].prototype.bind(A0), m = e[u], B = t[m] || p;
|
|
336
|
+
p[r(428) + "to__"] = A0.bind(A0), p["toStr" + r(422)] = B.toString.bind(B), t[m] = p;
|
|
342
337
|
}
|
|
343
338
|
});
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
return r = r - (-739 * 11 + 2989 + -5 * -1077), cr()[r];
|
|
347
|
-
}
|
|
348
|
-
const Cr = "file_token", Er = "file_token_expire_time", tt = 60 * (-10361 + -1623 * -7);
|
|
339
|
+
tt();
|
|
340
|
+
const Cr = "file_" + t0(415), Er = t0(401) + t0(415) + "_expire_time", xt = (4037 + -3977 * 1) * (-5314 + -641 * 4 + 8878);
|
|
349
341
|
function pr() {
|
|
350
342
|
return v0.getItem(Cr);
|
|
351
343
|
}
|
|
352
|
-
function
|
|
353
|
-
const d = r0;
|
|
344
|
+
function nt(r = xt) {
|
|
354
345
|
if (!pr()) return !0;
|
|
355
|
-
const
|
|
356
|
-
if (!
|
|
357
|
-
const
|
|
358
|
-
return Date
|
|
346
|
+
const t = v0.getItem(Er);
|
|
347
|
+
if (!t) return !1;
|
|
348
|
+
const e = Number(t);
|
|
349
|
+
return Date.now() + r > e;
|
|
359
350
|
}
|
|
360
|
-
function
|
|
361
|
-
const t =
|
|
362
|
-
if (v0.setItem(Cr, r), typeof
|
|
363
|
-
const e = Date
|
|
364
|
-
v0
|
|
351
|
+
function at(r, h) {
|
|
352
|
+
const t = t0;
|
|
353
|
+
if (v0.setItem(Cr, r), typeof h == "number" && h > 0) {
|
|
354
|
+
const e = Date.now() + h * 1e3;
|
|
355
|
+
v0[t(431) + "em"](Er, String(e));
|
|
365
356
|
}
|
|
366
357
|
}
|
|
367
|
-
function
|
|
368
|
-
const r =
|
|
369
|
-
v0
|
|
358
|
+
function ot() {
|
|
359
|
+
const r = t0;
|
|
360
|
+
v0.removeItem(Cr), v0["remov" + r(421)](Er);
|
|
370
361
|
}
|
|
371
362
|
async function zr(r) {
|
|
372
|
-
const
|
|
373
|
-
return t?.
|
|
363
|
+
const h = t0, t = await r(), e = t?.data?.data;
|
|
364
|
+
return t?.data?.code === 409 * -2 + -7165 + 8183 && e?.["file_token"] ? (at(e.file_token, e["expir" + h(434)]), e.file_token) : null;
|
|
374
365
|
}
|
|
375
|
-
let
|
|
376
|
-
function
|
|
377
|
-
const r =
|
|
378
|
-
return
|
|
366
|
+
let it = null;
|
|
367
|
+
function cr() {
|
|
368
|
+
const r = ["okenR", "wser", "const", "1616931gjCtbh", "16cyjIxu", "__pro", "124159WVLUtN", "retur", "setIt", "remov", "FileT", "es_in", "excep", "oken=", "fetch", "ame", "conso", "file_", "/file", "lengt", "3354029VCSbYf", "oken", "trace", "isDat", "3055014BwDfXh", "40yWowGK", "statu", "hasPa", "8VTbIYZ", "139364UJyGKO", "190167qnofPT", "token", "n() ", "fileT", "bUrl", "11400110ViAqxD", "aUrl", "eItem", "ing"];
|
|
369
|
+
return cr = function() {
|
|
370
|
+
return r;
|
|
371
|
+
}, cr();
|
|
379
372
|
}
|
|
380
|
-
|
|
381
|
-
|
|
373
|
+
function Ir() {
|
|
374
|
+
return fr.isBrowser() ? it : null;
|
|
375
|
+
}
|
|
376
|
+
async function be() {
|
|
377
|
+
const r = t0;
|
|
382
378
|
if (!fr.isBrowser()) return pr();
|
|
383
|
-
const
|
|
384
|
-
if (
|
|
379
|
+
const h = pr();
|
|
380
|
+
if (h && !nt()) return h;
|
|
385
381
|
try {
|
|
386
|
-
const t = await
|
|
387
|
-
if (
|
|
388
|
-
const e = await zr(t["
|
|
382
|
+
const t = await Ir();
|
|
383
|
+
if (h && t?.["fetch" + r(433) + "okenRefresh"]) {
|
|
384
|
+
const e = await zr(t["fetchFileT" + r(423) + "efresh"]);
|
|
389
385
|
if (e) return e;
|
|
390
386
|
}
|
|
391
387
|
} catch {
|
|
392
388
|
}
|
|
393
389
|
try {
|
|
394
|
-
const t =
|
|
395
|
-
return t?.["
|
|
390
|
+
const t = Ir();
|
|
391
|
+
return t?.[r(437) + "FileT" + r(405)] ? await zr(t["fetch" + r(433) + "oken"]) : null;
|
|
396
392
|
} catch {
|
|
397
393
|
return null;
|
|
398
394
|
}
|
|
399
395
|
}
|
|
400
|
-
function
|
|
401
|
-
const
|
|
402
|
-
if (!r || h0[
|
|
403
|
-
const t = h0
|
|
404
|
-
return t ? t.
|
|
396
|
+
function me(r) {
|
|
397
|
+
const h = t0;
|
|
398
|
+
if (!r || h0[h(407) + h(420)](r) || h0["isBlo" + h(418)](r)) return !1;
|
|
399
|
+
const t = h0.parse(r);
|
|
400
|
+
return t ? t["pathn" + h(438)].includes(h(402) + "s/") && !h0[h(411) + "ram"](r, "fileToken") : r.includes("/files/") && !r.includes("fileT" + h(436));
|
|
401
|
+
}
|
|
402
|
+
function _e(r, h) {
|
|
403
|
+
const t = t0;
|
|
404
|
+
return !h || !me(r) ? r : h0.addParam(r, "fileT" + t(405), h);
|
|
405
405
|
}
|
|
406
|
-
function
|
|
407
|
-
|
|
408
|
-
return !d || !be(r) ? r : h0[t(281) + "ram"](r, t(266) + t(275), d);
|
|
406
|
+
function Ar(r, h) {
|
|
407
|
+
return r = r - (-4596 + -1 * -1733 + 3264), cr()[r];
|
|
409
408
|
}
|
|
410
|
-
function
|
|
411
|
-
const
|
|
412
|
-
return h0[
|
|
409
|
+
function st(r) {
|
|
410
|
+
const h = t0;
|
|
411
|
+
return h0[h(432) + "eParam"](r, h(417) + "oken");
|
|
413
412
|
}
|
|
414
|
-
async function
|
|
415
|
-
if (!
|
|
416
|
-
const
|
|
417
|
-
return
|
|
413
|
+
async function ct(r) {
|
|
414
|
+
if (!me(r)) return r;
|
|
415
|
+
const h = await be();
|
|
416
|
+
return _e(r, h);
|
|
418
417
|
}
|
|
419
|
-
async function
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
418
|
+
async function ye(r, h) {
|
|
419
|
+
const t = t0;
|
|
420
|
+
if (!fr["isBro" + t(424)]()) return fetch(r, h);
|
|
421
|
+
const e = st(r), u = await ct(e), p = await fetch(u, h);
|
|
422
|
+
if (p[t(410) + "s"] !== -7612 + -8013 * -1) return p;
|
|
423
|
+
ot();
|
|
424
|
+
const m = await be(), B = _e(e, m);
|
|
425
|
+
return fetch(B, h);
|
|
426
426
|
}
|
|
427
|
-
const
|
|
427
|
+
const we = (r, h) => {
|
|
428
428
|
if (!r) return r;
|
|
429
|
-
const t = (
|
|
429
|
+
const t = (h || "").replace(/\/$/, "");
|
|
430
430
|
if (t && r.startsWith(t))
|
|
431
431
|
return r;
|
|
432
432
|
if (typeof window < "u") {
|
|
@@ -449,22 +449,22 @@ const ye = (r, d) => {
|
|
|
449
449
|
if (typeof window < "u" && window.location.hostname !== "localhost") return r;
|
|
450
450
|
const e = r.match(/^https?:\/\/([^/]+\.oss[^/]*\.aliyuncs\.com)(.*)$/);
|
|
451
451
|
return e ? `/oss${e[2]}` : r;
|
|
452
|
-
},
|
|
452
|
+
}, ft = (r, h) => {
|
|
453
453
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
454
|
-
return new OffscreenCanvas(r,
|
|
454
|
+
return new OffscreenCanvas(r, h);
|
|
455
455
|
const t = document.createElement("canvas");
|
|
456
|
-
return t.width = r, t.height =
|
|
457
|
-
}, _0 = async (r,
|
|
458
|
-
if (!
|
|
456
|
+
return t.width = r, t.height = h, t;
|
|
457
|
+
}, _0 = async (r, h) => {
|
|
458
|
+
if (!h || h <= 0) return r;
|
|
459
459
|
const t = Math.max(r.width, r.height);
|
|
460
|
-
if (t <=
|
|
461
|
-
const e =
|
|
460
|
+
if (t <= h) return r;
|
|
461
|
+
const e = h / t, u = Math.max(1, Math.round(r.width * e)), p = Math.max(1, Math.round(r.height * e)), m = ft(u, p), B = m.getContext("2d");
|
|
462
462
|
return B ? (B.drawImage(r, 0, 0, u, p), r.close?.(), await createImageBitmap(m)) : r;
|
|
463
463
|
};
|
|
464
|
-
async function
|
|
464
|
+
async function ut(r, h, t) {
|
|
465
465
|
if (typeof r == "string")
|
|
466
466
|
try {
|
|
467
|
-
const e =
|
|
467
|
+
const e = we(r, t), u = await ye(e);
|
|
468
468
|
if (!u.ok) {
|
|
469
469
|
const m = u.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${u.status} ${u.statusText}): ${r}`;
|
|
470
470
|
throw new Error(m);
|
|
@@ -474,7 +474,7 @@ async function ft(r, d, t) {
|
|
|
474
474
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
475
475
|
try {
|
|
476
476
|
const m = await createImageBitmap(p);
|
|
477
|
-
return await _0(m,
|
|
477
|
+
return await _0(m, h);
|
|
478
478
|
} catch (m) {
|
|
479
479
|
throw new Error(`图片解码失败: URL=${r}, 错误=${m instanceof Error ? m.message : m}`);
|
|
480
480
|
}
|
|
@@ -488,7 +488,7 @@ async function ft(r, d, t) {
|
|
|
488
488
|
throw new Error(`图片尺寸无效: src=${r.src}, width=${r.naturalWidth}, height=${r.naturalHeight}`);
|
|
489
489
|
try {
|
|
490
490
|
const e = await createImageBitmap(r);
|
|
491
|
-
return await _0(e,
|
|
491
|
+
return await _0(e, h);
|
|
492
492
|
} catch (e) {
|
|
493
493
|
throw new Error(`图片解码失败: src=${r.src}, 错误=${e instanceof Error ? e.message : e}`);
|
|
494
494
|
}
|
|
@@ -496,13 +496,13 @@ async function ft(r, d, t) {
|
|
|
496
496
|
if (r instanceof ImageBitmap) {
|
|
497
497
|
if (r.width === 0 || r.height === 0)
|
|
498
498
|
throw new Error(`ImageBitmap 尺寸无效: width=${r.width}, height=${r.height}`);
|
|
499
|
-
return await _0(r,
|
|
499
|
+
return await _0(r, h);
|
|
500
500
|
}
|
|
501
501
|
throw new Error("不支持的图片类型");
|
|
502
502
|
}
|
|
503
|
-
async function
|
|
503
|
+
async function dt(r, h, t) {
|
|
504
504
|
try {
|
|
505
|
-
const e =
|
|
505
|
+
const e = we(r, t), u = await ye(e);
|
|
506
506
|
if (!u.ok) {
|
|
507
507
|
const m = u.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${u.status} ${u.statusText}): ${r}`;
|
|
508
508
|
throw new Error(m);
|
|
@@ -512,7 +512,7 @@ async function ut(r, d, t) {
|
|
|
512
512
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
513
513
|
try {
|
|
514
514
|
const m = await createImageBitmap(p);
|
|
515
|
-
return await _0(m,
|
|
515
|
+
return await _0(m, h);
|
|
516
516
|
} catch (m) {
|
|
517
517
|
throw new Error(`图片解码失败: URL=${r}, 错误=${m instanceof Error ? m.message : m}`);
|
|
518
518
|
}
|
|
@@ -520,9 +520,9 @@ async function ut(r, d, t) {
|
|
|
520
520
|
throw e instanceof Error ? e : new Error(`加载图片失败: ${r}, ${e}`);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function Lr(r) {
|
|
524
524
|
if (!r) return "source-over";
|
|
525
|
-
const
|
|
525
|
+
const h = r.trim().toLowerCase();
|
|
526
526
|
return {
|
|
527
527
|
normal: "source-over",
|
|
528
528
|
multiply: "multiply",
|
|
@@ -548,22 +548,22 @@ function Ir(r) {
|
|
|
548
548
|
"linear dodge": "lighter",
|
|
549
549
|
lighter: "lighter",
|
|
550
550
|
"pass-through": "source-over"
|
|
551
|
-
}[
|
|
551
|
+
}[h] || "source-over";
|
|
552
552
|
}
|
|
553
553
|
var hr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
554
|
-
function
|
|
554
|
+
function lt(r) {
|
|
555
555
|
if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
|
|
556
|
-
var
|
|
557
|
-
if (typeof
|
|
556
|
+
var h = r.default;
|
|
557
|
+
if (typeof h == "function") {
|
|
558
558
|
var t = function e() {
|
|
559
559
|
var u = !1;
|
|
560
560
|
try {
|
|
561
561
|
u = this instanceof e;
|
|
562
562
|
} catch {
|
|
563
563
|
}
|
|
564
|
-
return u ? Reflect.construct(
|
|
564
|
+
return u ? Reflect.construct(h, arguments, this.constructor) : h.apply(this, arguments);
|
|
565
565
|
};
|
|
566
|
-
t.prototype =
|
|
566
|
+
t.prototype = h.prototype;
|
|
567
567
|
} else t = {};
|
|
568
568
|
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(r).forEach(function(e) {
|
|
569
569
|
var u = Object.getOwnPropertyDescriptor(r, e);
|
|
@@ -576,23 +576,23 @@ function dt(r) {
|
|
|
576
576
|
}), t;
|
|
577
577
|
}
|
|
578
578
|
var y0 = { exports: {} };
|
|
579
|
-
function
|
|
579
|
+
function ht(r) {
|
|
580
580
|
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.');
|
|
581
581
|
}
|
|
582
|
-
var w0 = { exports: {} },
|
|
582
|
+
var w0 = { exports: {} }, vt = {}, pt = /* @__PURE__ */ Object.freeze({
|
|
583
583
|
__proto__: null,
|
|
584
|
-
default:
|
|
585
|
-
}),
|
|
584
|
+
default: vt
|
|
585
|
+
}), Bt = /* @__PURE__ */ lt(pt), Ct = w0.exports, Or;
|
|
586
586
|
function M() {
|
|
587
|
-
return
|
|
587
|
+
return Or || (Or = 1, (function(r, h) {
|
|
588
588
|
(function(t, e) {
|
|
589
589
|
r.exports = e();
|
|
590
|
-
})(
|
|
590
|
+
})(Ct, function() {
|
|
591
591
|
var t = t || (function(e, u) {
|
|
592
592
|
var p;
|
|
593
|
-
if (typeof window < "u" && window.crypto && (p = window.crypto), typeof self < "u" && self.crypto && (p = self.crypto), typeof globalThis < "u" && globalThis.crypto && (p = globalThis.crypto), !p && typeof window < "u" && window.msCrypto && (p = window.msCrypto), !p && typeof hr < "u" && hr.crypto && (p = hr.crypto), !p && typeof
|
|
593
|
+
if (typeof window < "u" && window.crypto && (p = window.crypto), typeof self < "u" && self.crypto && (p = self.crypto), typeof globalThis < "u" && globalThis.crypto && (p = globalThis.crypto), !p && typeof window < "u" && window.msCrypto && (p = window.msCrypto), !p && typeof hr < "u" && hr.crypto && (p = hr.crypto), !p && typeof ht == "function")
|
|
594
594
|
try {
|
|
595
|
-
p =
|
|
595
|
+
p = Bt;
|
|
596
596
|
} catch {
|
|
597
597
|
}
|
|
598
598
|
var m = function() {
|
|
@@ -613,8 +613,8 @@ function M() {
|
|
|
613
613
|
function i() {
|
|
614
614
|
}
|
|
615
615
|
return function(o) {
|
|
616
|
-
var
|
|
617
|
-
return i.prototype = o,
|
|
616
|
+
var d;
|
|
617
|
+
return i.prototype = o, d = new i(), i.prototype = null, d;
|
|
618
618
|
};
|
|
619
619
|
})(), C = {}, x = C.lib = {}, n = x.Base = /* @__PURE__ */ (function() {
|
|
620
620
|
return {
|
|
@@ -745,16 +745,16 @@ function M() {
|
|
|
745
745
|
* wordArray1.concat(wordArray2);
|
|
746
746
|
*/
|
|
747
747
|
concat: function(i) {
|
|
748
|
-
var o = this.words,
|
|
748
|
+
var o = this.words, d = i.words, b = this.sigBytes, D = i.sigBytes;
|
|
749
749
|
if (this.clamp(), b % 4)
|
|
750
|
-
for (var y = 0; y <
|
|
751
|
-
var k =
|
|
750
|
+
for (var y = 0; y < D; y++) {
|
|
751
|
+
var k = d[y >>> 2] >>> 24 - y % 4 * 8 & 255;
|
|
752
752
|
o[b + y >>> 2] |= k << 24 - (b + y) % 4 * 8;
|
|
753
753
|
}
|
|
754
754
|
else
|
|
755
|
-
for (var R = 0; R <
|
|
756
|
-
o[b + R >>> 2] =
|
|
757
|
-
return this.sigBytes +=
|
|
755
|
+
for (var R = 0; R < D; R += 4)
|
|
756
|
+
o[b + R >>> 2] = d[R >>> 2];
|
|
757
|
+
return this.sigBytes += D, this;
|
|
758
758
|
},
|
|
759
759
|
/**
|
|
760
760
|
* Removes insignificant bits.
|
|
@@ -794,7 +794,7 @@ function M() {
|
|
|
794
794
|
* var wordArray = CryptoJS.lib.WordArray.random(16);
|
|
795
795
|
*/
|
|
796
796
|
random: function(i) {
|
|
797
|
-
for (var o = [],
|
|
797
|
+
for (var o = [], d = 0; d < i; d += 4)
|
|
798
798
|
o.push(m());
|
|
799
799
|
return new E.init(o, i);
|
|
800
800
|
}
|
|
@@ -813,8 +813,8 @@ function M() {
|
|
|
813
813
|
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
814
814
|
*/
|
|
815
815
|
stringify: function(i) {
|
|
816
|
-
for (var o = i.words,
|
|
817
|
-
var y = o[
|
|
816
|
+
for (var o = i.words, d = i.sigBytes, b = [], D = 0; D < d; D++) {
|
|
817
|
+
var y = o[D >>> 2] >>> 24 - D % 4 * 8 & 255;
|
|
818
818
|
b.push((y >>> 4).toString(16)), b.push((y & 15).toString(16));
|
|
819
819
|
}
|
|
820
820
|
return b.join("");
|
|
@@ -833,9 +833,9 @@ function M() {
|
|
|
833
833
|
* var wordArray = CryptoJS.enc.Hex.parse(hexString);
|
|
834
834
|
*/
|
|
835
835
|
parse: function(i) {
|
|
836
|
-
for (var o = i.length,
|
|
837
|
-
|
|
838
|
-
return new E.init(
|
|
836
|
+
for (var o = i.length, d = [], b = 0; b < o; b += 2)
|
|
837
|
+
d[b >>> 3] |= parseInt(i.substr(b, 2), 16) << 24 - b % 8 * 4;
|
|
838
|
+
return new E.init(d, o / 2);
|
|
839
839
|
}
|
|
840
840
|
}, f = a.Latin1 = {
|
|
841
841
|
/**
|
|
@@ -852,8 +852,8 @@ function M() {
|
|
|
852
852
|
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
853
853
|
*/
|
|
854
854
|
stringify: function(i) {
|
|
855
|
-
for (var o = i.words,
|
|
856
|
-
var y = o[
|
|
855
|
+
for (var o = i.words, d = i.sigBytes, b = [], D = 0; D < d; D++) {
|
|
856
|
+
var y = o[D >>> 2] >>> 24 - D % 4 * 8 & 255;
|
|
857
857
|
b.push(String.fromCharCode(y));
|
|
858
858
|
}
|
|
859
859
|
return b.join("");
|
|
@@ -872,9 +872,9 @@ function M() {
|
|
|
872
872
|
* var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
|
|
873
873
|
*/
|
|
874
874
|
parse: function(i) {
|
|
875
|
-
for (var o = i.length,
|
|
876
|
-
|
|
877
|
-
return new E.init(
|
|
875
|
+
for (var o = i.length, d = [], b = 0; b < o; b++)
|
|
876
|
+
d[b >>> 2] |= (i.charCodeAt(b) & 255) << 24 - b % 4 * 8;
|
|
877
|
+
return new E.init(d, o);
|
|
878
878
|
}
|
|
879
879
|
}, v = a.Utf8 = {
|
|
880
880
|
/**
|
|
@@ -913,7 +913,7 @@ function M() {
|
|
|
913
913
|
parse: function(i) {
|
|
914
914
|
return f.parse(unescape(encodeURIComponent(i)));
|
|
915
915
|
}
|
|
916
|
-
},
|
|
916
|
+
}, l = x.BufferedBlockAlgorithm = n.extend({
|
|
917
917
|
/**
|
|
918
918
|
* Resets this block algorithm's data buffer to its initial state.
|
|
919
919
|
*
|
|
@@ -952,13 +952,13 @@ function M() {
|
|
|
952
952
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
953
953
|
*/
|
|
954
954
|
_process: function(i) {
|
|
955
|
-
var o,
|
|
955
|
+
var o, d = this._data, b = d.words, D = d.sigBytes, y = this.blockSize, k = y * 4, R = D / k;
|
|
956
956
|
i ? R = e.ceil(R) : R = e.max((R | 0) - this._minBufferSize, 0);
|
|
957
|
-
var F = R * y, w = e.min(F * 4,
|
|
957
|
+
var F = R * y, w = e.min(F * 4, D);
|
|
958
958
|
if (F) {
|
|
959
959
|
for (var H = 0; H < F; H += y)
|
|
960
960
|
this._doProcessBlock(b, H);
|
|
961
|
-
o = b.splice(0, F),
|
|
961
|
+
o = b.splice(0, F), d.sigBytes -= w;
|
|
962
962
|
}
|
|
963
963
|
return new E.init(o, w);
|
|
964
964
|
},
|
|
@@ -977,7 +977,7 @@ function M() {
|
|
|
977
977
|
},
|
|
978
978
|
_minBufferSize: 0
|
|
979
979
|
});
|
|
980
|
-
x.Hasher =
|
|
980
|
+
x.Hasher = l.extend({
|
|
981
981
|
/**
|
|
982
982
|
* Configuration options.
|
|
983
983
|
*/
|
|
@@ -1002,7 +1002,7 @@ function M() {
|
|
|
1002
1002
|
* hasher.reset();
|
|
1003
1003
|
*/
|
|
1004
1004
|
reset: function() {
|
|
1005
|
-
|
|
1005
|
+
l.reset.call(this), this._doReset();
|
|
1006
1006
|
},
|
|
1007
1007
|
/**
|
|
1008
1008
|
* Updates this hasher with a message.
|
|
@@ -1053,8 +1053,8 @@ function M() {
|
|
|
1053
1053
|
* var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
|
|
1054
1054
|
*/
|
|
1055
1055
|
_createHelper: function(i) {
|
|
1056
|
-
return function(o,
|
|
1057
|
-
return new i.init(
|
|
1056
|
+
return function(o, d) {
|
|
1057
|
+
return new i.init(d).finalize(o);
|
|
1058
1058
|
};
|
|
1059
1059
|
},
|
|
1060
1060
|
/**
|
|
@@ -1071,24 +1071,24 @@ function M() {
|
|
|
1071
1071
|
* var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
|
|
1072
1072
|
*/
|
|
1073
1073
|
_createHmacHelper: function(i) {
|
|
1074
|
-
return function(o,
|
|
1075
|
-
return new
|
|
1074
|
+
return function(o, d) {
|
|
1075
|
+
return new g.HMAC.init(i, d).finalize(o);
|
|
1076
1076
|
};
|
|
1077
1077
|
}
|
|
1078
1078
|
});
|
|
1079
|
-
var
|
|
1079
|
+
var g = C.algo = {};
|
|
1080
1080
|
return C;
|
|
1081
1081
|
})(Math);
|
|
1082
1082
|
return t;
|
|
1083
1083
|
});
|
|
1084
1084
|
})(w0)), w0.exports;
|
|
1085
1085
|
}
|
|
1086
|
-
var k0 = { exports: {} },
|
|
1086
|
+
var k0 = { exports: {} }, Et = k0.exports, qr;
|
|
1087
1087
|
function ur() {
|
|
1088
|
-
return
|
|
1088
|
+
return qr || (qr = 1, (function(r, h) {
|
|
1089
1089
|
(function(t, e) {
|
|
1090
1090
|
r.exports = e(M());
|
|
1091
|
-
})(
|
|
1091
|
+
})(Et, function(t) {
|
|
1092
1092
|
return (function(e) {
|
|
1093
1093
|
var u = t, p = u.lib, m = p.Base, B = p.WordArray, C = u.x64 = {};
|
|
1094
1094
|
C.Word = m.extend({
|
|
@@ -1313,12 +1313,12 @@ function ur() {
|
|
|
1313
1313
|
});
|
|
1314
1314
|
})(k0)), k0.exports;
|
|
1315
1315
|
}
|
|
1316
|
-
var S0 = { exports: {} },
|
|
1317
|
-
function
|
|
1318
|
-
return
|
|
1316
|
+
var S0 = { exports: {} }, At = S0.exports, Tr;
|
|
1317
|
+
function Ft() {
|
|
1318
|
+
return Tr || (Tr = 1, (function(r, h) {
|
|
1319
1319
|
(function(t, e) {
|
|
1320
1320
|
r.exports = e(M());
|
|
1321
|
-
})(
|
|
1321
|
+
})(At, function(t) {
|
|
1322
1322
|
return (function() {
|
|
1323
1323
|
if (typeof ArrayBuffer == "function") {
|
|
1324
1324
|
var e = t, u = e.lib, p = u.WordArray, m = p.init, B = p.init = function(C) {
|
|
@@ -1335,12 +1335,12 @@ function At() {
|
|
|
1335
1335
|
});
|
|
1336
1336
|
})(S0)), S0.exports;
|
|
1337
1337
|
}
|
|
1338
|
-
var H0 = { exports: {} },
|
|
1338
|
+
var H0 = { exports: {} }, Dt = H0.exports, Mr;
|
|
1339
1339
|
function gt() {
|
|
1340
|
-
return
|
|
1340
|
+
return Mr || (Mr = 1, (function(r, h) {
|
|
1341
1341
|
(function(t, e) {
|
|
1342
1342
|
r.exports = e(M());
|
|
1343
|
-
})(
|
|
1343
|
+
})(Dt, function(t) {
|
|
1344
1344
|
return (function() {
|
|
1345
1345
|
var e = t, u = e.lib, p = u.WordArray, m = e.enc;
|
|
1346
1346
|
m.Utf16 = m.Utf16BE = {
|
|
@@ -1429,12 +1429,12 @@ function gt() {
|
|
|
1429
1429
|
});
|
|
1430
1430
|
})(H0)), H0.exports;
|
|
1431
1431
|
}
|
|
1432
|
-
var $0 = { exports: {} },
|
|
1432
|
+
var $0 = { exports: {} }, bt = $0.exports, Nr;
|
|
1433
1433
|
function s0() {
|
|
1434
|
-
return
|
|
1434
|
+
return Nr || (Nr = 1, (function(r, h) {
|
|
1435
1435
|
(function(t, e) {
|
|
1436
1436
|
r.exports = e(M());
|
|
1437
|
-
})(
|
|
1437
|
+
})(bt, function(t) {
|
|
1438
1438
|
return (function() {
|
|
1439
1439
|
var e = t, u = e.lib, p = u.WordArray, m = e.enc;
|
|
1440
1440
|
m.Base64 = {
|
|
@@ -1455,8 +1455,8 @@ function s0() {
|
|
|
1455
1455
|
var x = C.words, n = C.sigBytes, E = this._map;
|
|
1456
1456
|
C.clamp();
|
|
1457
1457
|
for (var a = [], s = 0; s < n; s += 3)
|
|
1458
|
-
for (var f = x[s >>> 2] >>> 24 - s % 4 * 8 & 255, v = x[s + 1 >>> 2] >>> 24 - (s + 1) % 4 * 8 & 255,
|
|
1459
|
-
a.push(E.charAt(
|
|
1458
|
+
for (var f = x[s >>> 2] >>> 24 - s % 4 * 8 & 255, v = x[s + 1 >>> 2] >>> 24 - (s + 1) % 4 * 8 & 255, l = x[s + 2 >>> 2] >>> 24 - (s + 2) % 4 * 8 & 255, g = f << 16 | v << 8 | l, i = 0; i < 4 && s + i * 0.75 < n; i++)
|
|
1459
|
+
a.push(E.charAt(g >>> 6 * (3 - i) & 63));
|
|
1460
1460
|
var o = E.charAt(64);
|
|
1461
1461
|
if (o)
|
|
1462
1462
|
for (; a.length % 4; )
|
|
@@ -1495,8 +1495,8 @@ function s0() {
|
|
|
1495
1495
|
function B(C, x, n) {
|
|
1496
1496
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1497
1497
|
if (s % 4) {
|
|
1498
|
-
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, v = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2,
|
|
1499
|
-
E[a >>> 2] |=
|
|
1498
|
+
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, v = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, l = f | v;
|
|
1499
|
+
E[a >>> 2] |= l << 24 - a % 4 * 8, a++;
|
|
1500
1500
|
}
|
|
1501
1501
|
return p.create(E, a);
|
|
1502
1502
|
}
|
|
@@ -1504,12 +1504,12 @@ function s0() {
|
|
|
1504
1504
|
});
|
|
1505
1505
|
})($0)), $0.exports;
|
|
1506
1506
|
}
|
|
1507
|
-
var R0 = { exports: {} },
|
|
1508
|
-
function
|
|
1509
|
-
return
|
|
1507
|
+
var R0 = { exports: {} }, mt = R0.exports, Ur;
|
|
1508
|
+
function _t() {
|
|
1509
|
+
return Ur || (Ur = 1, (function(r, h) {
|
|
1510
1510
|
(function(t, e) {
|
|
1511
1511
|
r.exports = e(M());
|
|
1512
|
-
})(
|
|
1512
|
+
})(mt, function(t) {
|
|
1513
1513
|
return (function() {
|
|
1514
1514
|
var e = t, u = e.lib, p = u.WordArray, m = e.enc;
|
|
1515
1515
|
m.Base64url = {
|
|
@@ -1533,12 +1533,12 @@ function mt() {
|
|
|
1533
1533
|
var n = C.words, E = C.sigBytes, a = x ? this._safe_map : this._map;
|
|
1534
1534
|
C.clamp();
|
|
1535
1535
|
for (var s = [], f = 0; f < E; f += 3)
|
|
1536
|
-
for (var v = n[f >>> 2] >>> 24 - f % 4 * 8 & 255,
|
|
1536
|
+
for (var v = n[f >>> 2] >>> 24 - f % 4 * 8 & 255, l = n[f + 1 >>> 2] >>> 24 - (f + 1) % 4 * 8 & 255, g = n[f + 2 >>> 2] >>> 24 - (f + 2) % 4 * 8 & 255, i = v << 16 | l << 8 | g, o = 0; o < 4 && f + o * 0.75 < E; o++)
|
|
1537
1537
|
s.push(a.charAt(i >>> 6 * (3 - o) & 63));
|
|
1538
|
-
var
|
|
1539
|
-
if (
|
|
1538
|
+
var d = a.charAt(64);
|
|
1539
|
+
if (d)
|
|
1540
1540
|
for (; s.length % 4; )
|
|
1541
|
-
s.push(
|
|
1541
|
+
s.push(d);
|
|
1542
1542
|
return s.join("");
|
|
1543
1543
|
},
|
|
1544
1544
|
/**
|
|
@@ -1577,8 +1577,8 @@ function mt() {
|
|
|
1577
1577
|
function B(C, x, n) {
|
|
1578
1578
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1579
1579
|
if (s % 4) {
|
|
1580
|
-
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, v = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2,
|
|
1581
|
-
E[a >>> 2] |=
|
|
1580
|
+
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, v = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, l = f | v;
|
|
1581
|
+
E[a >>> 2] |= l << 24 - a % 4 * 8, a++;
|
|
1582
1582
|
}
|
|
1583
1583
|
return p.create(E, a);
|
|
1584
1584
|
}
|
|
@@ -1586,12 +1586,12 @@ function mt() {
|
|
|
1586
1586
|
});
|
|
1587
1587
|
})(R0)), R0.exports;
|
|
1588
1588
|
}
|
|
1589
|
-
var P0 = { exports: {} },
|
|
1589
|
+
var P0 = { exports: {} }, yt = P0.exports, jr;
|
|
1590
1590
|
function c0() {
|
|
1591
|
-
return
|
|
1591
|
+
return jr || (jr = 1, (function(r, h) {
|
|
1592
1592
|
(function(t, e) {
|
|
1593
1593
|
r.exports = e(M());
|
|
1594
|
-
})(
|
|
1594
|
+
})(yt, function(t) {
|
|
1595
1595
|
return (function(e) {
|
|
1596
1596
|
var u = t, p = u.lib, m = p.WordArray, B = p.Hasher, C = u.algo, x = [];
|
|
1597
1597
|
(function() {
|
|
@@ -1607,22 +1607,22 @@ function c0() {
|
|
|
1607
1607
|
271733878
|
|
1608
1608
|
]);
|
|
1609
1609
|
},
|
|
1610
|
-
_doProcessBlock: function(v,
|
|
1611
|
-
for (var
|
|
1612
|
-
var i =
|
|
1610
|
+
_doProcessBlock: function(v, l) {
|
|
1611
|
+
for (var g = 0; g < 16; g++) {
|
|
1612
|
+
var i = l + g, o = v[i];
|
|
1613
1613
|
v[i] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360;
|
|
1614
1614
|
}
|
|
1615
|
-
var
|
|
1616
|
-
S = E(S, c, A, _, b, 7, x[0]), _ = E(_, S, c, A,
|
|
1615
|
+
var d = this._hash.words, b = v[l + 0], D = v[l + 1], y = v[l + 2], k = v[l + 3], R = v[l + 4], F = v[l + 5], w = v[l + 6], H = v[l + 7], $ = v[l + 8], W = v[l + 9], O = v[l + 10], q = v[l + 11], U = v[l + 12], T = v[l + 13], N = v[l + 14], j = v[l + 15], S = d[0], c = d[1], A = d[2], _ = d[3];
|
|
1616
|
+
S = E(S, c, A, _, b, 7, x[0]), _ = E(_, S, c, A, D, 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, _, D, 5, x[16]), _ = a(_, S, c, A, w, 9, x[17]), A = a(A, _, S, c, q, 14, x[18]), c = a(c, A, _, S, b, 20, x[19]), S = a(S, c, A, _, F, 5, x[20]), _ = a(_, S, c, A, O, 9, x[21]), A = a(A, _, S, c, j, 14, x[22]), c = a(c, A, _, S, R, 20, x[23]), S = a(S, c, A, _, W, 5, x[24]), _ = a(_, S, c, A, N, 9, x[25]), A = a(A, _, S, c, k, 14, x[26]), c = a(c, A, _, S, $, 20, x[27]), S = a(S, c, A, _, T, 5, x[28]), _ = a(_, S, c, A, y, 9, x[29]), A = a(A, _, S, c, H, 14, x[30]), c = a(c, A, _, S, U, 20, x[31]), S = s(S, c, A, _, F, 4, x[32]), _ = s(_, S, c, A, $, 11, x[33]), A = s(A, _, S, c, q, 16, x[34]), c = s(c, A, _, S, N, 23, x[35]), S = s(S, c, A, _, D, 4, x[36]), _ = s(_, S, c, A, R, 11, x[37]), A = s(A, _, S, c, H, 16, x[38]), c = s(c, A, _, S, O, 23, x[39]), S = s(S, c, A, _, T, 4, x[40]), _ = s(_, S, c, A, b, 11, x[41]), A = s(A, _, S, c, k, 16, x[42]), c = s(c, A, _, S, w, 23, x[43]), S = s(S, c, A, _, W, 4, x[44]), _ = s(_, S, c, A, U, 11, x[45]), A = s(A, _, S, c, j, 16, x[46]), c = s(c, A, _, S, y, 23, x[47]), S = f(S, c, A, _, b, 6, x[48]), _ = f(_, S, c, A, H, 10, x[49]), A = f(A, _, S, c, N, 15, x[50]), c = f(c, A, _, S, F, 21, x[51]), S = f(S, c, A, _, U, 6, x[52]), _ = f(_, S, c, A, k, 10, x[53]), A = f(A, _, S, c, O, 15, x[54]), c = f(c, A, _, S, D, 21, x[55]), S = f(S, c, A, _, $, 6, x[56]), _ = f(_, S, c, A, j, 10, x[57]), A = f(A, _, S, c, w, 15, x[58]), c = f(c, A, _, S, T, 21, x[59]), S = f(S, c, A, _, R, 6, x[60]), _ = f(_, S, c, A, q, 10, x[61]), A = f(A, _, S, c, y, 15, x[62]), c = f(c, A, _, S, W, 21, x[63]), d[0] = d[0] + S | 0, d[1] = d[1] + c | 0, d[2] = d[2] + A | 0, d[3] = d[3] + _ | 0;
|
|
1617
1617
|
},
|
|
1618
1618
|
_doFinalize: function() {
|
|
1619
|
-
var v = this._data,
|
|
1620
|
-
|
|
1621
|
-
var o = e.floor(
|
|
1622
|
-
|
|
1623
|
-
for (var b = this._hash,
|
|
1624
|
-
var k =
|
|
1625
|
-
|
|
1619
|
+
var v = this._data, l = v.words, g = this._nDataBytes * 8, i = v.sigBytes * 8;
|
|
1620
|
+
l[i >>> 5] |= 128 << 24 - i % 32;
|
|
1621
|
+
var o = e.floor(g / 4294967296), d = g;
|
|
1622
|
+
l[(i + 64 >>> 9 << 4) + 15] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, l[(i + 64 >>> 9 << 4) + 14] = (d << 8 | d >>> 24) & 16711935 | (d << 24 | d >>> 8) & 4278255360, v.sigBytes = (l.length + 1) * 4, this._process();
|
|
1623
|
+
for (var b = this._hash, D = b.words, y = 0; y < 4; y++) {
|
|
1624
|
+
var k = D[y];
|
|
1625
|
+
D[y] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
|
|
1626
1626
|
}
|
|
1627
1627
|
return b;
|
|
1628
1628
|
},
|
|
@@ -1631,33 +1631,33 @@ function c0() {
|
|
|
1631
1631
|
return v._hash = this._hash.clone(), v;
|
|
1632
1632
|
}
|
|
1633
1633
|
});
|
|
1634
|
-
function E(v,
|
|
1635
|
-
var
|
|
1636
|
-
return (
|
|
1634
|
+
function E(v, l, g, i, o, d, b) {
|
|
1635
|
+
var D = v + (l & g | ~l & i) + o + b;
|
|
1636
|
+
return (D << d | D >>> 32 - d) + l;
|
|
1637
1637
|
}
|
|
1638
|
-
function a(v,
|
|
1639
|
-
var
|
|
1640
|
-
return (
|
|
1638
|
+
function a(v, l, g, i, o, d, b) {
|
|
1639
|
+
var D = v + (l & i | g & ~i) + o + b;
|
|
1640
|
+
return (D << d | D >>> 32 - d) + l;
|
|
1641
1641
|
}
|
|
1642
|
-
function s(v,
|
|
1643
|
-
var
|
|
1644
|
-
return (
|
|
1642
|
+
function s(v, l, g, i, o, d, b) {
|
|
1643
|
+
var D = v + (l ^ g ^ i) + o + b;
|
|
1644
|
+
return (D << d | D >>> 32 - d) + l;
|
|
1645
1645
|
}
|
|
1646
|
-
function f(v,
|
|
1647
|
-
var
|
|
1648
|
-
return (
|
|
1646
|
+
function f(v, l, g, i, o, d, b) {
|
|
1647
|
+
var D = v + (g ^ (l | ~i)) + o + b;
|
|
1648
|
+
return (D << d | D >>> 32 - d) + l;
|
|
1649
1649
|
}
|
|
1650
1650
|
u.MD5 = B._createHelper(n), u.HmacMD5 = B._createHmacHelper(n);
|
|
1651
1651
|
})(Math), t.MD5;
|
|
1652
1652
|
});
|
|
1653
1653
|
})(P0)), P0.exports;
|
|
1654
1654
|
}
|
|
1655
|
-
var
|
|
1656
|
-
function
|
|
1657
|
-
return
|
|
1655
|
+
var W0 = { exports: {} }, wt = W0.exports, Gr;
|
|
1656
|
+
function ke() {
|
|
1657
|
+
return Gr || (Gr = 1, (function(r, h) {
|
|
1658
1658
|
(function(t, e) {
|
|
1659
1659
|
r.exports = e(M());
|
|
1660
|
-
})(
|
|
1660
|
+
})(wt, function(t) {
|
|
1661
1661
|
return (function() {
|
|
1662
1662
|
var e = t, u = e.lib, p = u.WordArray, m = u.Hasher, B = e.algo, C = [], x = B.SHA1 = m.extend({
|
|
1663
1663
|
_doReset: function() {
|
|
@@ -1670,17 +1670,17 @@ function we() {
|
|
|
1670
1670
|
]);
|
|
1671
1671
|
},
|
|
1672
1672
|
_doProcessBlock: function(n, E) {
|
|
1673
|
-
for (var a = this._hash.words, s = a[0], f = a[1], v = a[2],
|
|
1673
|
+
for (var a = this._hash.words, s = a[0], f = a[1], v = a[2], l = a[3], g = a[4], i = 0; i < 80; i++) {
|
|
1674
1674
|
if (i < 16)
|
|
1675
1675
|
C[i] = n[E + i] | 0;
|
|
1676
1676
|
else {
|
|
1677
1677
|
var o = C[i - 3] ^ C[i - 8] ^ C[i - 14] ^ C[i - 16];
|
|
1678
1678
|
C[i] = o << 1 | o >>> 31;
|
|
1679
1679
|
}
|
|
1680
|
-
var
|
|
1681
|
-
i < 20 ?
|
|
1680
|
+
var d = (s << 5 | s >>> 27) + g + C[i];
|
|
1681
|
+
i < 20 ? d += (f & v | ~f & l) + 1518500249 : i < 40 ? d += (f ^ v ^ l) + 1859775393 : i < 60 ? d += (f & v | f & l | v & l) - 1894007588 : d += (f ^ v ^ l) - 899497514, g = l, l = v, v = f << 30 | f >>> 2, f = s, s = d;
|
|
1682
1682
|
}
|
|
1683
|
-
a[0] = a[0] + s | 0, a[1] = a[1] + f | 0, a[2] = a[2] + v | 0, a[3] = a[3] +
|
|
1683
|
+
a[0] = a[0] + s | 0, a[1] = a[1] + f | 0, a[2] = a[2] + v | 0, a[3] = a[3] + l | 0, a[4] = a[4] + g | 0;
|
|
1684
1684
|
},
|
|
1685
1685
|
_doFinalize: function() {
|
|
1686
1686
|
var n = this._data, E = n.words, a = this._nDataBytes * 8, s = n.sigBytes * 8;
|
|
@@ -1694,49 +1694,49 @@ function we() {
|
|
|
1694
1694
|
e.SHA1 = m._createHelper(x), e.HmacSHA1 = m._createHmacHelper(x);
|
|
1695
1695
|
})(), t.SHA1;
|
|
1696
1696
|
});
|
|
1697
|
-
})(
|
|
1697
|
+
})(W0)), W0.exports;
|
|
1698
1698
|
}
|
|
1699
|
-
var
|
|
1700
|
-
function
|
|
1701
|
-
return
|
|
1699
|
+
var z0 = { exports: {} }, kt = z0.exports, Kr;
|
|
1700
|
+
function Fr() {
|
|
1701
|
+
return Kr || (Kr = 1, (function(r, h) {
|
|
1702
1702
|
(function(t, e) {
|
|
1703
1703
|
r.exports = e(M());
|
|
1704
|
-
})(
|
|
1704
|
+
})(kt, function(t) {
|
|
1705
1705
|
return (function(e) {
|
|
1706
1706
|
var u = t, p = u.lib, m = p.WordArray, B = p.Hasher, C = u.algo, x = [], n = [];
|
|
1707
1707
|
(function() {
|
|
1708
|
-
function s(
|
|
1709
|
-
for (var i = e.sqrt(
|
|
1710
|
-
if (!(
|
|
1708
|
+
function s(g) {
|
|
1709
|
+
for (var i = e.sqrt(g), o = 2; o <= i; o++)
|
|
1710
|
+
if (!(g % o))
|
|
1711
1711
|
return !1;
|
|
1712
1712
|
return !0;
|
|
1713
1713
|
}
|
|
1714
|
-
function f(
|
|
1715
|
-
return (
|
|
1714
|
+
function f(g) {
|
|
1715
|
+
return (g - (g | 0)) * 4294967296 | 0;
|
|
1716
1716
|
}
|
|
1717
|
-
for (var v = 2,
|
|
1718
|
-
s(v) && (
|
|
1717
|
+
for (var v = 2, l = 0; l < 64; )
|
|
1718
|
+
s(v) && (l < 8 && (x[l] = f(e.pow(v, 1 / 2))), n[l] = f(e.pow(v, 1 / 3)), l++), v++;
|
|
1719
1719
|
})();
|
|
1720
1720
|
var E = [], a = C.SHA256 = B.extend({
|
|
1721
1721
|
_doReset: function() {
|
|
1722
1722
|
this._hash = new m.init(x.slice(0));
|
|
1723
1723
|
},
|
|
1724
1724
|
_doProcessBlock: function(s, f) {
|
|
1725
|
-
for (var v = this._hash.words,
|
|
1725
|
+
for (var v = this._hash.words, l = v[0], g = v[1], i = v[2], o = v[3], d = v[4], b = v[5], D = v[6], y = v[7], k = 0; k < 64; k++) {
|
|
1726
1726
|
if (k < 16)
|
|
1727
1727
|
E[k] = s[f + k] | 0;
|
|
1728
1728
|
else {
|
|
1729
1729
|
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;
|
|
1730
1730
|
E[k] = F + E[k - 7] + H + E[k - 16];
|
|
1731
1731
|
}
|
|
1732
|
-
var $ =
|
|
1733
|
-
y =
|
|
1732
|
+
var $ = d & b ^ ~d & D, W = l & g ^ l & i ^ g & i, O = (l << 30 | l >>> 2) ^ (l << 19 | l >>> 13) ^ (l << 10 | l >>> 22), q = (d << 26 | d >>> 6) ^ (d << 21 | d >>> 11) ^ (d << 7 | d >>> 25), U = y + q + $ + n[k] + E[k], T = O + W;
|
|
1733
|
+
y = D, D = b, b = d, d = o + U | 0, o = i, i = g, g = l, l = U + T | 0;
|
|
1734
1734
|
}
|
|
1735
|
-
v[0] = v[0] +
|
|
1735
|
+
v[0] = v[0] + l | 0, v[1] = v[1] + g | 0, v[2] = v[2] + i | 0, v[3] = v[3] + o | 0, v[4] = v[4] + d | 0, v[5] = v[5] + b | 0, v[6] = v[6] + D | 0, v[7] = v[7] + y | 0;
|
|
1736
1736
|
},
|
|
1737
1737
|
_doFinalize: function() {
|
|
1738
|
-
var s = this._data, f = s.words, v = this._nDataBytes * 8,
|
|
1739
|
-
return f[
|
|
1738
|
+
var s = this._data, f = s.words, v = this._nDataBytes * 8, l = s.sigBytes * 8;
|
|
1739
|
+
return f[l >>> 5] |= 128 << 24 - l % 32, f[(l + 64 >>> 9 << 4) + 14] = e.floor(v / 4294967296), f[(l + 64 >>> 9 << 4) + 15] = v, s.sigBytes = f.length * 4, this._process(), this._hash;
|
|
1740
1740
|
},
|
|
1741
1741
|
clone: function() {
|
|
1742
1742
|
var s = B.clone.call(this);
|
|
@@ -1746,14 +1746,14 @@ function Ar() {
|
|
|
1746
1746
|
u.SHA256 = B._createHelper(a), u.HmacSHA256 = B._createHmacHelper(a);
|
|
1747
1747
|
})(Math), t.SHA256;
|
|
1748
1748
|
});
|
|
1749
|
-
})(
|
|
1749
|
+
})(z0)), z0.exports;
|
|
1750
1750
|
}
|
|
1751
|
-
var I0 = { exports: {} },
|
|
1752
|
-
function
|
|
1753
|
-
return
|
|
1751
|
+
var I0 = { exports: {} }, St = I0.exports, Xr;
|
|
1752
|
+
function Ht() {
|
|
1753
|
+
return Xr || (Xr = 1, (function(r, h) {
|
|
1754
1754
|
(function(t, e, u) {
|
|
1755
|
-
r.exports = e(M(),
|
|
1756
|
-
})(
|
|
1755
|
+
r.exports = e(M(), Fr());
|
|
1756
|
+
})(St, function(t) {
|
|
1757
1757
|
return (function() {
|
|
1758
1758
|
var e = t, u = e.lib, p = u.WordArray, m = e.algo, B = m.SHA256, C = m.SHA224 = B.extend({
|
|
1759
1759
|
_doReset: function() {
|
|
@@ -1778,12 +1778,12 @@ function St() {
|
|
|
1778
1778
|
});
|
|
1779
1779
|
})(I0)), I0.exports;
|
|
1780
1780
|
}
|
|
1781
|
-
var L0 = { exports: {} },
|
|
1782
|
-
function
|
|
1783
|
-
return
|
|
1781
|
+
var L0 = { exports: {} }, $t = L0.exports, Yr;
|
|
1782
|
+
function Se() {
|
|
1783
|
+
return Yr || (Yr = 1, (function(r, h) {
|
|
1784
1784
|
(function(t, e, u) {
|
|
1785
1785
|
r.exports = e(M(), ur());
|
|
1786
|
-
})(
|
|
1786
|
+
})($t, function(t) {
|
|
1787
1787
|
return (function() {
|
|
1788
1788
|
var e = t, u = e.lib, p = u.Hasher, m = e.x64, B = m.Word, C = m.WordArray, x = e.algo;
|
|
1789
1789
|
function n() {
|
|
@@ -1889,22 +1889,22 @@ function ke() {
|
|
|
1889
1889
|
]);
|
|
1890
1890
|
},
|
|
1891
1891
|
_doProcessBlock: function(f, v) {
|
|
1892
|
-
for (var
|
|
1893
|
-
var J, x0, b0 = a[
|
|
1894
|
-
if (
|
|
1895
|
-
x0 = b0.high = f[v +
|
|
1892
|
+
for (var l = this._hash.words, g = l[0], i = l[1], o = l[2], d = l[3], b = l[4], D = l[5], y = l[6], k = l[7], R = g.high, F = g.low, w = i.high, H = i.low, $ = o.high, W = o.low, O = d.high, q = d.low, U = b.high, T = b.low, N = D.high, j = D.low, S = y.high, c = y.low, A = k.high, _ = k.low, z = R, P = F, L = w, I = H, Z = $, V = W, o0 = O, K = q, G = U, Y = T, r0 = N, f0 = j, g0 = S, p0 = c, dr = A, B0 = _, e0 = 0; e0 < 80; e0++) {
|
|
1893
|
+
var J, x0, b0 = a[e0];
|
|
1894
|
+
if (e0 < 16)
|
|
1895
|
+
x0 = b0.high = f[v + e0 * 2] | 0, J = b0.low = f[v + e0 * 2 + 1] | 0;
|
|
1896
1896
|
else {
|
|
1897
|
-
var
|
|
1898
|
-
J =
|
|
1897
|
+
var br = a[e0 - 15], u0 = br.high, C0 = br.low, Ie = (u0 >>> 1 | C0 << 31) ^ (u0 >>> 8 | C0 << 24) ^ u0 >>> 7, mr = (C0 >>> 1 | u0 << 31) ^ (C0 >>> 8 | u0 << 24) ^ (C0 >>> 7 | u0 << 25), _r = a[e0 - 2], d0 = _r.high, E0 = _r.low, Le = (d0 >>> 19 | E0 << 13) ^ (d0 << 3 | E0 >>> 29) ^ d0 >>> 6, yr = (E0 >>> 19 | d0 << 13) ^ (E0 << 3 | d0 >>> 29) ^ (E0 >>> 6 | d0 << 26), wr = a[e0 - 7], Oe = wr.high, qe = wr.low, kr = a[e0 - 16], Te = kr.high, Sr = kr.low;
|
|
1898
|
+
J = mr + qe, x0 = Ie + Oe + (J >>> 0 < mr >>> 0 ? 1 : 0), J = J + yr, x0 = x0 + Le + (J >>> 0 < yr >>> 0 ? 1 : 0), J = J + Sr, x0 = x0 + Te + (J >>> 0 < Sr >>> 0 ? 1 : 0), b0.high = x0, b0.low = J;
|
|
1899
1899
|
}
|
|
1900
|
-
var
|
|
1901
|
-
dr =
|
|
1900
|
+
var Me = G & r0 ^ ~G & g0, Hr = Y & f0 ^ ~Y & p0, Ne = z & L ^ z & Z ^ L & Z, Ue = P & I ^ P & V ^ I & V, je = (z >>> 28 | P << 4) ^ (z << 30 | P >>> 2) ^ (z << 25 | P >>> 7), $r = (P >>> 28 | z << 4) ^ (P << 30 | z >>> 2) ^ (P << 25 | z >>> 7), Ge = (G >>> 14 | Y << 18) ^ (G >>> 18 | Y << 14) ^ (G << 23 | Y >>> 9), Ke = (Y >>> 14 | G << 18) ^ (Y >>> 18 | G << 14) ^ (Y << 23 | G >>> 9), Rr = E[e0], Xe = Rr.high, Pr = Rr.low, Q = B0 + Ke, n0 = dr + Ge + (Q >>> 0 < B0 >>> 0 ? 1 : 0), Q = Q + Hr, n0 = n0 + Me + (Q >>> 0 < Hr >>> 0 ? 1 : 0), Q = Q + Pr, n0 = n0 + Xe + (Q >>> 0 < Pr >>> 0 ? 1 : 0), Q = Q + J, n0 = n0 + x0 + (Q >>> 0 < J >>> 0 ? 1 : 0), Wr = $r + Ue, Ye = je + Ne + (Wr >>> 0 < $r >>> 0 ? 1 : 0);
|
|
1901
|
+
dr = g0, B0 = p0, g0 = r0, p0 = f0, r0 = G, f0 = Y, Y = K + Q | 0, G = o0 + n0 + (Y >>> 0 < K >>> 0 ? 1 : 0) | 0, o0 = Z, K = V, Z = L, V = I, L = z, I = P, P = Q + Wr | 0, z = n0 + Ye + (P >>> 0 < Q >>> 0 ? 1 : 0) | 0;
|
|
1902
1902
|
}
|
|
1903
|
-
F =
|
|
1903
|
+
F = g.low = F + P, g.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 + V, o.high = $ + Z + (W >>> 0 < V >>> 0 ? 1 : 0), q = d.low = q + K, d.high = O + o0 + (q >>> 0 < K >>> 0 ? 1 : 0), T = b.low = T + Y, b.high = U + G + (T >>> 0 < Y >>> 0 ? 1 : 0), j = D.low = j + f0, D.high = N + r0 + (j >>> 0 < f0 >>> 0 ? 1 : 0), c = y.low = c + p0, y.high = S + g0 + (c >>> 0 < p0 >>> 0 ? 1 : 0), _ = k.low = _ + B0, k.high = A + dr + (_ >>> 0 < B0 >>> 0 ? 1 : 0);
|
|
1904
1904
|
},
|
|
1905
1905
|
_doFinalize: function() {
|
|
1906
|
-
var f = this._data, v = f.words,
|
|
1907
|
-
v[
|
|
1906
|
+
var f = this._data, v = f.words, l = this._nDataBytes * 8, g = f.sigBytes * 8;
|
|
1907
|
+
v[g >>> 5] |= 128 << 24 - g % 32, v[(g + 128 >>> 10 << 5) + 30] = Math.floor(l / 4294967296), v[(g + 128 >>> 10 << 5) + 31] = l, f.sigBytes = v.length * 4, this._process();
|
|
1908
1908
|
var i = this._hash.toX32();
|
|
1909
1909
|
return i;
|
|
1910
1910
|
},
|
|
@@ -1919,12 +1919,12 @@ function ke() {
|
|
|
1919
1919
|
});
|
|
1920
1920
|
})(L0)), L0.exports;
|
|
1921
1921
|
}
|
|
1922
|
-
var O0 = { exports: {} },
|
|
1923
|
-
function
|
|
1924
|
-
return
|
|
1922
|
+
var O0 = { exports: {} }, Rt = O0.exports, Zr;
|
|
1923
|
+
function Pt() {
|
|
1924
|
+
return Zr || (Zr = 1, (function(r, h) {
|
|
1925
1925
|
(function(t, e, u) {
|
|
1926
|
-
r.exports = e(M(), ur(),
|
|
1927
|
-
})(
|
|
1926
|
+
r.exports = e(M(), ur(), Se());
|
|
1927
|
+
})(Rt, function(t) {
|
|
1928
1928
|
return (function() {
|
|
1929
1929
|
var e = t, u = e.x64, p = u.Word, m = u.WordArray, B = e.algo, C = B.SHA512, x = B.SHA384 = C.extend({
|
|
1930
1930
|
_doReset: function() {
|
|
@@ -1949,24 +1949,24 @@ function Rt() {
|
|
|
1949
1949
|
});
|
|
1950
1950
|
})(O0)), O0.exports;
|
|
1951
1951
|
}
|
|
1952
|
-
var q0 = { exports: {} },
|
|
1952
|
+
var q0 = { exports: {} }, Wt = q0.exports, Vr;
|
|
1953
1953
|
function zt() {
|
|
1954
|
-
return
|
|
1954
|
+
return Vr || (Vr = 1, (function(r, h) {
|
|
1955
1955
|
(function(t, e, u) {
|
|
1956
1956
|
r.exports = e(M(), ur());
|
|
1957
|
-
})(
|
|
1957
|
+
})(Wt, function(t) {
|
|
1958
1958
|
return (function(e) {
|
|
1959
1959
|
var u = t, p = u.lib, m = p.WordArray, B = p.Hasher, C = u.x64, x = C.Word, n = u.algo, E = [], a = [], s = [];
|
|
1960
1960
|
(function() {
|
|
1961
|
-
for (var
|
|
1962
|
-
E[
|
|
1963
|
-
var o =
|
|
1964
|
-
|
|
1961
|
+
for (var l = 1, g = 0, i = 0; i < 24; i++) {
|
|
1962
|
+
E[l + 5 * g] = (i + 1) * (i + 2) / 2 % 64;
|
|
1963
|
+
var o = g % 5, d = (2 * l + 3 * g) % 5;
|
|
1964
|
+
l = o, g = d;
|
|
1965
1965
|
}
|
|
1966
|
-
for (var
|
|
1967
|
-
for (var
|
|
1968
|
-
a[
|
|
1969
|
-
for (var b = 1,
|
|
1966
|
+
for (var l = 0; l < 5; l++)
|
|
1967
|
+
for (var g = 0; g < 5; g++)
|
|
1968
|
+
a[l + 5 * g] = g + (2 * l + 3 * g) % 5 * 5;
|
|
1969
|
+
for (var b = 1, D = 0; D < 24; D++) {
|
|
1970
1970
|
for (var y = 0, k = 0, R = 0; R < 7; R++) {
|
|
1971
1971
|
if (b & 1) {
|
|
1972
1972
|
var F = (1 << R) - 1;
|
|
@@ -1974,13 +1974,13 @@ function zt() {
|
|
|
1974
1974
|
}
|
|
1975
1975
|
b & 128 ? b = b << 1 ^ 113 : b <<= 1;
|
|
1976
1976
|
}
|
|
1977
|
-
s[
|
|
1977
|
+
s[D] = x.create(y, k);
|
|
1978
1978
|
}
|
|
1979
1979
|
})();
|
|
1980
1980
|
var f = [];
|
|
1981
1981
|
(function() {
|
|
1982
|
-
for (var
|
|
1983
|
-
f[
|
|
1982
|
+
for (var l = 0; l < 25; l++)
|
|
1983
|
+
f[l] = x.create();
|
|
1984
1984
|
})();
|
|
1985
1985
|
var v = n.SHA3 = B.extend({
|
|
1986
1986
|
/**
|
|
@@ -1995,16 +1995,16 @@ function zt() {
|
|
|
1995
1995
|
outputLength: 512
|
|
1996
1996
|
}),
|
|
1997
1997
|
_doReset: function() {
|
|
1998
|
-
for (var
|
|
1999
|
-
|
|
1998
|
+
for (var l = this._state = [], g = 0; g < 25; g++)
|
|
1999
|
+
l[g] = new x.init();
|
|
2000
2000
|
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
|
|
2001
2001
|
},
|
|
2002
|
-
_doProcessBlock: function(
|
|
2003
|
-
for (var i = this._state, o = this.blockSize / 2,
|
|
2004
|
-
var b =
|
|
2005
|
-
b = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360,
|
|
2006
|
-
var y = i[
|
|
2007
|
-
y.high ^=
|
|
2002
|
+
_doProcessBlock: function(l, g) {
|
|
2003
|
+
for (var i = this._state, o = this.blockSize / 2, d = 0; d < o; d++) {
|
|
2004
|
+
var b = l[g + 2 * d], D = l[g + 2 * d + 1];
|
|
2005
|
+
b = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, D = (D << 8 | D >>> 24) & 16711935 | (D << 24 | D >>> 8) & 4278255360;
|
|
2006
|
+
var y = i[d];
|
|
2007
|
+
y.high ^= D, y.low ^= b;
|
|
2008
2008
|
}
|
|
2009
2009
|
for (var k = 0; k < 24; k++) {
|
|
2010
2010
|
for (var R = 0; R < 5; R++) {
|
|
@@ -2016,7 +2016,7 @@ function zt() {
|
|
|
2016
2016
|
$.high = F, $.low = w;
|
|
2017
2017
|
}
|
|
2018
2018
|
for (var R = 0; R < 5; R++)
|
|
2019
|
-
for (var
|
|
2019
|
+
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++) {
|
|
2020
2020
|
var y = i[R + 5 * H];
|
|
2021
2021
|
y.high ^= F, y.low ^= w;
|
|
2022
2022
|
}
|
|
@@ -2030,28 +2030,28 @@ function zt() {
|
|
|
2030
2030
|
A.high = _.high, A.low = _.low;
|
|
2031
2031
|
for (var R = 0; R < 5; R++)
|
|
2032
2032
|
for (var H = 0; H < 5; H++) {
|
|
2033
|
-
var T = R + 5 * H, y = i[T],
|
|
2034
|
-
y.high =
|
|
2033
|
+
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];
|
|
2034
|
+
y.high = z.high ^ ~P.high & L.high, y.low = z.low ^ ~P.low & L.low;
|
|
2035
2035
|
}
|
|
2036
2036
|
var y = i[0], I = s[k];
|
|
2037
2037
|
y.high ^= I.high, y.low ^= I.low;
|
|
2038
2038
|
}
|
|
2039
2039
|
},
|
|
2040
2040
|
_doFinalize: function() {
|
|
2041
|
-
var
|
|
2041
|
+
var l = this._data, g = l.words;
|
|
2042
2042
|
this._nDataBytes * 8;
|
|
2043
|
-
var i =
|
|
2044
|
-
|
|
2045
|
-
for (var
|
|
2046
|
-
var R =
|
|
2043
|
+
var i = l.sigBytes * 8, o = this.blockSize * 32;
|
|
2044
|
+
g[i >>> 5] |= 1 << 24 - i % 32, g[(e.ceil((i + 1) / o) * o >>> 5) - 1] |= 128, l.sigBytes = g.length * 4, this._process();
|
|
2045
|
+
for (var d = this._state, b = this.cfg.outputLength / 8, D = b / 8, y = [], k = 0; k < D; k++) {
|
|
2046
|
+
var R = d[k], F = R.high, w = R.low;
|
|
2047
2047
|
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);
|
|
2048
2048
|
}
|
|
2049
2049
|
return new m.init(y, b);
|
|
2050
2050
|
},
|
|
2051
2051
|
clone: function() {
|
|
2052
|
-
for (var
|
|
2053
|
-
|
|
2054
|
-
return
|
|
2052
|
+
for (var l = B.clone.call(this), g = l._state = this._state.slice(0), i = 0; i < 25; i++)
|
|
2053
|
+
g[i] = g[i].clone();
|
|
2054
|
+
return l;
|
|
2055
2055
|
}
|
|
2056
2056
|
});
|
|
2057
2057
|
u.SHA3 = B._createHelper(v), u.HmacSHA3 = B._createHmacHelper(v);
|
|
@@ -2059,12 +2059,12 @@ function zt() {
|
|
|
2059
2059
|
});
|
|
2060
2060
|
})(q0)), q0.exports;
|
|
2061
2061
|
}
|
|
2062
|
-
var T0 = { exports: {} },
|
|
2063
|
-
function
|
|
2064
|
-
return Qr || (Qr = 1, (function(r,
|
|
2062
|
+
var T0 = { exports: {} }, It = T0.exports, Qr;
|
|
2063
|
+
function Lt() {
|
|
2064
|
+
return Qr || (Qr = 1, (function(r, h) {
|
|
2065
2065
|
(function(t, e) {
|
|
2066
2066
|
r.exports = e(M());
|
|
2067
|
-
})(
|
|
2067
|
+
})(It, function(t) {
|
|
2068
2068
|
return (function(e) {
|
|
2069
2069
|
var u = t, p = u.lib, m = p.WordArray, B = p.Hasher, C = u.algo, x = m.create([
|
|
2070
2070
|
0,
|
|
@@ -2394,20 +2394,20 @@ function It() {
|
|
|
2394
2394
|
_doReset: function() {
|
|
2395
2395
|
this._hash = m.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2396
2396
|
},
|
|
2397
|
-
_doProcessBlock: function(
|
|
2397
|
+
_doProcessBlock: function(D, y) {
|
|
2398
2398
|
for (var k = 0; k < 16; k++) {
|
|
2399
|
-
var R = y + k, F =
|
|
2400
|
-
|
|
2399
|
+
var R = y + k, F = D[R];
|
|
2400
|
+
D[R] = (F << 8 | F >>> 24) & 16711935 | (F << 24 | F >>> 8) & 4278255360;
|
|
2401
2401
|
}
|
|
2402
|
-
var w = this._hash.words, H = s.words, $ = f.words,
|
|
2403
|
-
A = T = w[0], _ = N = w[1],
|
|
2402
|
+
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;
|
|
2403
|
+
A = T = w[0], _ = N = w[1], z = j = w[2], P = S = w[3], L = c = w[4];
|
|
2404
2404
|
for (var I, k = 0; k < 80; k += 1)
|
|
2405
|
-
I = T +
|
|
2406
|
-
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 +
|
|
2405
|
+
I = T + D[y + W[k]] | 0, k < 16 ? I += l(N, j, S) + H[0] : k < 32 ? I += g(N, j, S) + H[1] : k < 48 ? I += i(N, j, S) + H[2] : k < 64 ? I += o(N, j, S) + H[3] : I += d(N, j, S) + H[4], I = I | 0, I = b(I, q[k]), I = I + c | 0, T = c, c = S, S = b(j, 10), j = N, N = I, I = A + D[y + O[k]] | 0, k < 16 ? I += d(_, z, P) + $[0] : k < 32 ? I += o(_, z, P) + $[1] : k < 48 ? I += i(_, z, P) + $[2] : k < 64 ? I += g(_, z, P) + $[3] : I += l(_, z, P) + $[4], I = I | 0, I = b(I, U[k]), I = I + L | 0, A = L, L = P, P = b(z, 10), z = _, _ = I;
|
|
2406
|
+
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;
|
|
2407
2407
|
},
|
|
2408
2408
|
_doFinalize: function() {
|
|
2409
|
-
var
|
|
2410
|
-
y[R >>> 5] |= 128 << 24 - R % 32, y[(R + 64 >>> 9 << 4) + 14] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360,
|
|
2409
|
+
var D = this._data, y = D.words, k = this._nDataBytes * 8, R = D.sigBytes * 8;
|
|
2410
|
+
y[R >>> 5] |= 128 << 24 - R % 32, y[(R + 64 >>> 9 << 4) + 14] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360, D.sigBytes = (y.length + 1) * 4, this._process();
|
|
2411
2411
|
for (var F = this._hash, w = F.words, H = 0; H < 5; H++) {
|
|
2412
2412
|
var $ = w[H];
|
|
2413
2413
|
w[H] = ($ << 8 | $ >>> 24) & 16711935 | ($ << 24 | $ >>> 8) & 4278255360;
|
|
@@ -2415,39 +2415,39 @@ function It() {
|
|
|
2415
2415
|
return F;
|
|
2416
2416
|
},
|
|
2417
2417
|
clone: function() {
|
|
2418
|
-
var
|
|
2419
|
-
return
|
|
2418
|
+
var D = B.clone.call(this);
|
|
2419
|
+
return D._hash = this._hash.clone(), D;
|
|
2420
2420
|
}
|
|
2421
2421
|
});
|
|
2422
|
-
function
|
|
2423
|
-
return
|
|
2422
|
+
function l(D, y, k) {
|
|
2423
|
+
return D ^ y ^ k;
|
|
2424
2424
|
}
|
|
2425
|
-
function D
|
|
2426
|
-
return
|
|
2425
|
+
function g(D, y, k) {
|
|
2426
|
+
return D & y | ~D & k;
|
|
2427
2427
|
}
|
|
2428
|
-
function i(
|
|
2429
|
-
return (
|
|
2428
|
+
function i(D, y, k) {
|
|
2429
|
+
return (D | ~y) ^ k;
|
|
2430
2430
|
}
|
|
2431
|
-
function o(
|
|
2432
|
-
return
|
|
2431
|
+
function o(D, y, k) {
|
|
2432
|
+
return D & k | y & ~k;
|
|
2433
2433
|
}
|
|
2434
|
-
function
|
|
2435
|
-
return
|
|
2434
|
+
function d(D, y, k) {
|
|
2435
|
+
return D ^ (y | ~k);
|
|
2436
2436
|
}
|
|
2437
|
-
function b(
|
|
2438
|
-
return
|
|
2437
|
+
function b(D, y) {
|
|
2438
|
+
return D << y | D >>> 32 - y;
|
|
2439
2439
|
}
|
|
2440
2440
|
u.RIPEMD160 = B._createHelper(v), u.HmacRIPEMD160 = B._createHmacHelper(v);
|
|
2441
2441
|
})(), t.RIPEMD160;
|
|
2442
2442
|
});
|
|
2443
2443
|
})(T0)), T0.exports;
|
|
2444
2444
|
}
|
|
2445
|
-
var M0 = { exports: {} },
|
|
2446
|
-
function
|
|
2447
|
-
return
|
|
2445
|
+
var M0 = { exports: {} }, Ot = M0.exports, Jr;
|
|
2446
|
+
function Dr() {
|
|
2447
|
+
return Jr || (Jr = 1, (function(r, h) {
|
|
2448
2448
|
(function(t, e) {
|
|
2449
2449
|
r.exports = e(M());
|
|
2450
|
-
})(
|
|
2450
|
+
})(Ot, function(t) {
|
|
2451
2451
|
(function() {
|
|
2452
2452
|
var e = t, u = e.lib, p = u.Base, m = e.enc, B = m.Utf8, C = e.algo;
|
|
2453
2453
|
C.HMAC = p.extend({
|
|
@@ -2465,8 +2465,8 @@ function Fr() {
|
|
|
2465
2465
|
x = this._hasher = new x.init(), typeof n == "string" && (n = B.parse(n));
|
|
2466
2466
|
var E = x.blockSize, a = E * 4;
|
|
2467
2467
|
n.sigBytes > a && (n = x.finalize(n)), n.clamp();
|
|
2468
|
-
for (var s = this._oKey = n.clone(), f = this._iKey = n.clone(), v = s.words,
|
|
2469
|
-
v[
|
|
2468
|
+
for (var s = this._oKey = n.clone(), f = this._iKey = n.clone(), v = s.words, l = f.words, g = 0; g < E; g++)
|
|
2469
|
+
v[g] ^= 1549556828, l[g] ^= 909522486;
|
|
2470
2470
|
s.sigBytes = f.sigBytes = a, this.reset();
|
|
2471
2471
|
},
|
|
2472
2472
|
/**
|
|
@@ -2520,12 +2520,12 @@ function Fr() {
|
|
|
2520
2520
|
});
|
|
2521
2521
|
})(M0)), M0.exports;
|
|
2522
2522
|
}
|
|
2523
|
-
var N0 = { exports: {} },
|
|
2524
|
-
function
|
|
2525
|
-
return
|
|
2523
|
+
var N0 = { exports: {} }, qt = N0.exports, re;
|
|
2524
|
+
function Tt() {
|
|
2525
|
+
return re || (re = 1, (function(r, h) {
|
|
2526
2526
|
(function(t, e, u) {
|
|
2527
|
-
r.exports = e(M(),
|
|
2528
|
-
})(
|
|
2527
|
+
r.exports = e(M(), Fr(), Dr());
|
|
2528
|
+
})(qt, function(t) {
|
|
2529
2529
|
return (function() {
|
|
2530
2530
|
var e = t, u = e.lib, p = u.Base, m = u.WordArray, B = e.algo, C = B.SHA256, x = B.HMAC, n = B.PBKDF2 = p.extend({
|
|
2531
2531
|
/**
|
|
@@ -2567,13 +2567,13 @@ function qt() {
|
|
|
2567
2567
|
* var key = kdf.compute(password, salt);
|
|
2568
2568
|
*/
|
|
2569
2569
|
compute: function(E, a) {
|
|
2570
|
-
for (var s = this.cfg, f = x.create(s.hasher, E), v = m.create(),
|
|
2571
|
-
var b = f.update(a).finalize(
|
|
2570
|
+
for (var s = this.cfg, f = x.create(s.hasher, E), v = m.create(), l = m.create([1]), g = v.words, i = l.words, o = s.keySize, d = s.iterations; g.length < o; ) {
|
|
2571
|
+
var b = f.update(a).finalize(l);
|
|
2572
2572
|
f.reset();
|
|
2573
|
-
for (var
|
|
2573
|
+
for (var D = b.words, y = D.length, k = b, R = 1; R < d; R++) {
|
|
2574
2574
|
k = f.finalize(k), f.reset();
|
|
2575
2575
|
for (var F = k.words, w = 0; w < y; w++)
|
|
2576
|
-
|
|
2576
|
+
D[w] ^= F[w];
|
|
2577
2577
|
}
|
|
2578
2578
|
v.concat(b), i[0]++;
|
|
2579
2579
|
}
|
|
@@ -2587,12 +2587,12 @@ function qt() {
|
|
|
2587
2587
|
});
|
|
2588
2588
|
})(N0)), N0.exports;
|
|
2589
2589
|
}
|
|
2590
|
-
var U0 = { exports: {} },
|
|
2590
|
+
var U0 = { exports: {} }, Mt = U0.exports, ee;
|
|
2591
2591
|
function a0() {
|
|
2592
|
-
return
|
|
2592
|
+
return ee || (ee = 1, (function(r, h) {
|
|
2593
2593
|
(function(t, e, u) {
|
|
2594
|
-
r.exports = e(M(),
|
|
2595
|
-
})(
|
|
2594
|
+
r.exports = e(M(), ke(), Dr());
|
|
2595
|
+
})(Mt, function(t) {
|
|
2596
2596
|
return (function() {
|
|
2597
2597
|
var e = t, u = e.lib, p = u.Base, m = u.WordArray, B = e.algo, C = B.MD5, x = B.EvpKDF = p.extend({
|
|
2598
2598
|
/**
|
|
@@ -2634,13 +2634,13 @@ function a0() {
|
|
|
2634
2634
|
* var key = kdf.compute(password, salt);
|
|
2635
2635
|
*/
|
|
2636
2636
|
compute: function(n, E) {
|
|
2637
|
-
for (var a, s = this.cfg, f = s.hasher.create(), v = m.create(),
|
|
2637
|
+
for (var a, s = this.cfg, f = s.hasher.create(), v = m.create(), l = v.words, g = s.keySize, i = s.iterations; l.length < g; ) {
|
|
2638
2638
|
a && f.update(a), a = f.update(n).finalize(E), f.reset();
|
|
2639
2639
|
for (var o = 1; o < i; o++)
|
|
2640
2640
|
a = f.finalize(a), f.reset();
|
|
2641
2641
|
v.concat(a);
|
|
2642
2642
|
}
|
|
2643
|
-
return v.sigBytes =
|
|
2643
|
+
return v.sigBytes = g * 4, v;
|
|
2644
2644
|
}
|
|
2645
2645
|
});
|
|
2646
2646
|
e.EvpKDF = function(n, E, a) {
|
|
@@ -2650,12 +2650,12 @@ function a0() {
|
|
|
2650
2650
|
});
|
|
2651
2651
|
})(U0)), U0.exports;
|
|
2652
2652
|
}
|
|
2653
|
-
var j0 = { exports: {} },
|
|
2653
|
+
var j0 = { exports: {} }, Nt = j0.exports, te;
|
|
2654
2654
|
function X() {
|
|
2655
|
-
return
|
|
2655
|
+
return te || (te = 1, (function(r, h) {
|
|
2656
2656
|
(function(t, e, u) {
|
|
2657
2657
|
r.exports = e(M(), a0());
|
|
2658
|
-
})(
|
|
2658
|
+
})(Nt, function(t) {
|
|
2659
2659
|
t.lib.Cipher || (function(e) {
|
|
2660
2660
|
var u = t, p = u.lib, m = p.Base, B = p.WordArray, C = p.BufferedBlockAlgorithm, x = u.enc;
|
|
2661
2661
|
x.Utf8;
|
|
@@ -2777,15 +2777,15 @@ function X() {
|
|
|
2777
2777
|
*/
|
|
2778
2778
|
_createHelper: /* @__PURE__ */ (function() {
|
|
2779
2779
|
function F(w) {
|
|
2780
|
-
return typeof w == "string" ? R :
|
|
2780
|
+
return typeof w == "string" ? R : D;
|
|
2781
2781
|
}
|
|
2782
2782
|
return function(w) {
|
|
2783
2783
|
return {
|
|
2784
|
-
encrypt: function(H, $,
|
|
2785
|
-
return F($).encrypt(w, H, $,
|
|
2784
|
+
encrypt: function(H, $, W) {
|
|
2785
|
+
return F($).encrypt(w, H, $, W);
|
|
2786
2786
|
},
|
|
2787
|
-
decrypt: function(H, $,
|
|
2788
|
-
return F($).decrypt(w, H, $,
|
|
2787
|
+
decrypt: function(H, $, W) {
|
|
2788
|
+
return F($).decrypt(w, H, $, W);
|
|
2789
2789
|
}
|
|
2790
2790
|
};
|
|
2791
2791
|
};
|
|
@@ -2842,7 +2842,7 @@ function X() {
|
|
|
2842
2842
|
init: function(F, w) {
|
|
2843
2843
|
this._cipher = F, this._iv = w;
|
|
2844
2844
|
}
|
|
2845
|
-
}),
|
|
2845
|
+
}), l = f.CBC = (function() {
|
|
2846
2846
|
var F = v.extend();
|
|
2847
2847
|
F.Encryptor = F.extend({
|
|
2848
2848
|
/**
|
|
@@ -2856,8 +2856,8 @@ function X() {
|
|
|
2856
2856
|
* mode.processBlock(data.words, offset);
|
|
2857
2857
|
*/
|
|
2858
2858
|
processBlock: function(H, $) {
|
|
2859
|
-
var
|
|
2860
|
-
w.call(this, H, $, O),
|
|
2859
|
+
var W = this._cipher, O = W.blockSize;
|
|
2860
|
+
w.call(this, H, $, O), W.encryptBlock(H, $), this._prevBlock = H.slice($, $ + O);
|
|
2861
2861
|
}
|
|
2862
2862
|
}), F.Decryptor = F.extend({
|
|
2863
2863
|
/**
|
|
@@ -2871,18 +2871,18 @@ function X() {
|
|
|
2871
2871
|
* mode.processBlock(data.words, offset);
|
|
2872
2872
|
*/
|
|
2873
2873
|
processBlock: function(H, $) {
|
|
2874
|
-
var
|
|
2875
|
-
|
|
2874
|
+
var W = this._cipher, O = W.blockSize, q = H.slice($, $ + O);
|
|
2875
|
+
W.decryptBlock(H, $), w.call(this, H, $, O), this._prevBlock = q;
|
|
2876
2876
|
}
|
|
2877
2877
|
});
|
|
2878
|
-
function w(H, $,
|
|
2878
|
+
function w(H, $, W) {
|
|
2879
2879
|
var O, q = this._iv;
|
|
2880
2880
|
q ? (O = q, this._iv = e) : O = this._prevBlock;
|
|
2881
|
-
for (var U = 0; U <
|
|
2881
|
+
for (var U = 0; U < W; U++)
|
|
2882
2882
|
H[$ + U] ^= O[U];
|
|
2883
2883
|
}
|
|
2884
2884
|
return F;
|
|
2885
|
-
})(),
|
|
2885
|
+
})(), g = u.pad = {}, i = g.Pkcs7 = {
|
|
2886
2886
|
/**
|
|
2887
2887
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
2888
2888
|
*
|
|
@@ -2896,8 +2896,8 @@ function X() {
|
|
|
2896
2896
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
2897
2897
|
*/
|
|
2898
2898
|
pad: function(F, w) {
|
|
2899
|
-
for (var H = w * 4, $ = H - F.sigBytes % H,
|
|
2900
|
-
O.push(
|
|
2899
|
+
for (var H = w * 4, $ = H - F.sigBytes % H, W = $ << 24 | $ << 16 | $ << 8 | $, O = [], q = 0; q < $; q += 4)
|
|
2900
|
+
O.push(W);
|
|
2901
2901
|
var U = B.create(O, $);
|
|
2902
2902
|
F.concat(U);
|
|
2903
2903
|
},
|
|
@@ -2925,7 +2925,7 @@ function X() {
|
|
|
2925
2925
|
* @property {Padding} padding The padding strategy to use. Default: Pkcs7
|
|
2926
2926
|
*/
|
|
2927
2927
|
cfg: s.cfg.extend({
|
|
2928
|
-
mode:
|
|
2928
|
+
mode: l,
|
|
2929
2929
|
padding: i
|
|
2930
2930
|
}),
|
|
2931
2931
|
reset: function() {
|
|
@@ -2984,7 +2984,7 @@ function X() {
|
|
|
2984
2984
|
toString: function(F) {
|
|
2985
2985
|
return (F || this.formatter).stringify(this);
|
|
2986
2986
|
}
|
|
2987
|
-
}),
|
|
2987
|
+
}), d = u.format = {}, b = d.OpenSSL = {
|
|
2988
2988
|
/**
|
|
2989
2989
|
* Converts a cipher params object to an OpenSSL-compatible string.
|
|
2990
2990
|
*
|
|
@@ -3019,7 +3019,7 @@ function X() {
|
|
|
3019
3019
|
var w, H = n.parse(F), $ = H.words;
|
|
3020
3020
|
return $[0] == 1398893684 && $[1] == 1701076831 && (w = B.create($.slice(2, 4)), $.splice(0, 4), H.sigBytes -= 16), o.create({ ciphertext: H, salt: w });
|
|
3021
3021
|
}
|
|
3022
|
-
},
|
|
3022
|
+
}, D = p.SerializableCipher = m.extend({
|
|
3023
3023
|
/**
|
|
3024
3024
|
* Configuration options.
|
|
3025
3025
|
*
|
|
@@ -3048,7 +3048,7 @@ function X() {
|
|
|
3048
3048
|
*/
|
|
3049
3049
|
encrypt: function(F, w, H, $) {
|
|
3050
3050
|
$ = this.cfg.extend($);
|
|
3051
|
-
var
|
|
3051
|
+
var W = F.createEncryptor(H, $), O = W.finalize(w), q = W.cfg;
|
|
3052
3052
|
return o.create({
|
|
3053
3053
|
ciphertext: O,
|
|
3054
3054
|
key: H,
|
|
@@ -3079,8 +3079,8 @@ function X() {
|
|
|
3079
3079
|
*/
|
|
3080
3080
|
decrypt: function(F, w, H, $) {
|
|
3081
3081
|
$ = this.cfg.extend($), w = this._parse(w, $.format);
|
|
3082
|
-
var
|
|
3083
|
-
return
|
|
3082
|
+
var W = F.createDecryptor(H, $).finalize(w.ciphertext);
|
|
3083
|
+
return W;
|
|
3084
3084
|
},
|
|
3085
3085
|
/**
|
|
3086
3086
|
* Converts serialized ciphertext to CipherParams,
|
|
@@ -3118,21 +3118,21 @@ function X() {
|
|
|
3118
3118
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
3119
3119
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
3120
3120
|
*/
|
|
3121
|
-
execute: function(F, w, H, $,
|
|
3122
|
-
if ($ || ($ = B.random(64 / 8)),
|
|
3123
|
-
var O = a.create({ keySize: w + H, hasher:
|
|
3121
|
+
execute: function(F, w, H, $, W) {
|
|
3122
|
+
if ($ || ($ = B.random(64 / 8)), W)
|
|
3123
|
+
var O = a.create({ keySize: w + H, hasher: W }).compute(F, $);
|
|
3124
3124
|
else
|
|
3125
3125
|
var O = a.create({ keySize: w + H }).compute(F, $);
|
|
3126
3126
|
var q = B.create(O.words.slice(w), H * 4);
|
|
3127
3127
|
return O.sigBytes = w * 4, o.create({ key: O, iv: q, salt: $ });
|
|
3128
3128
|
}
|
|
3129
|
-
}, R = p.PasswordBasedCipher =
|
|
3129
|
+
}, R = p.PasswordBasedCipher = D.extend({
|
|
3130
3130
|
/**
|
|
3131
3131
|
* Configuration options.
|
|
3132
3132
|
*
|
|
3133
3133
|
* @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
|
|
3134
3134
|
*/
|
|
3135
|
-
cfg:
|
|
3135
|
+
cfg: D.cfg.extend({
|
|
3136
3136
|
kdf: k
|
|
3137
3137
|
}),
|
|
3138
3138
|
/**
|
|
@@ -3154,10 +3154,10 @@ function X() {
|
|
|
3154
3154
|
*/
|
|
3155
3155
|
encrypt: function(F, w, H, $) {
|
|
3156
3156
|
$ = this.cfg.extend($);
|
|
3157
|
-
var
|
|
3158
|
-
$.iv =
|
|
3159
|
-
var O =
|
|
3160
|
-
return O.mixIn(
|
|
3157
|
+
var W = $.kdf.execute(H, F.keySize, F.ivSize, $.salt, $.hasher);
|
|
3158
|
+
$.iv = W.iv;
|
|
3159
|
+
var O = D.encrypt.call(this, F, w, W.key, $);
|
|
3160
|
+
return O.mixIn(W), O;
|
|
3161
3161
|
},
|
|
3162
3162
|
/**
|
|
3163
3163
|
* Decrypts serialized ciphertext using a password.
|
|
@@ -3178,9 +3178,9 @@ function X() {
|
|
|
3178
3178
|
*/
|
|
3179
3179
|
decrypt: function(F, w, H, $) {
|
|
3180
3180
|
$ = this.cfg.extend($), w = this._parse(w, $.format);
|
|
3181
|
-
var
|
|
3182
|
-
$.iv =
|
|
3183
|
-
var O =
|
|
3181
|
+
var W = $.kdf.execute(H, F.keySize, F.ivSize, w.salt, $.hasher);
|
|
3182
|
+
$.iv = W.iv;
|
|
3183
|
+
var O = D.decrypt.call(this, F, w, W.key, $);
|
|
3184
3184
|
return O;
|
|
3185
3185
|
}
|
|
3186
3186
|
});
|
|
@@ -3188,12 +3188,12 @@ function X() {
|
|
|
3188
3188
|
});
|
|
3189
3189
|
})(j0)), j0.exports;
|
|
3190
3190
|
}
|
|
3191
|
-
var G0 = { exports: {} },
|
|
3192
|
-
function
|
|
3193
|
-
return
|
|
3191
|
+
var G0 = { exports: {} }, Ut = G0.exports, xe;
|
|
3192
|
+
function jt() {
|
|
3193
|
+
return xe || (xe = 1, (function(r, h) {
|
|
3194
3194
|
(function(t, e, u) {
|
|
3195
3195
|
r.exports = e(M(), X());
|
|
3196
|
-
})(
|
|
3196
|
+
})(Ut, function(t) {
|
|
3197
3197
|
return t.mode.CFB = (function() {
|
|
3198
3198
|
var e = t.lib.BlockCipherMode.extend();
|
|
3199
3199
|
e.Encryptor = e.extend({
|
|
@@ -3218,12 +3218,12 @@ function Ut() {
|
|
|
3218
3218
|
});
|
|
3219
3219
|
})(G0)), G0.exports;
|
|
3220
3220
|
}
|
|
3221
|
-
var K0 = { exports: {} },
|
|
3222
|
-
function
|
|
3223
|
-
return
|
|
3221
|
+
var K0 = { exports: {} }, Gt = K0.exports, ne;
|
|
3222
|
+
function Kt() {
|
|
3223
|
+
return ne || (ne = 1, (function(r, h) {
|
|
3224
3224
|
(function(t, e, u) {
|
|
3225
3225
|
r.exports = e(M(), X());
|
|
3226
|
-
})(
|
|
3226
|
+
})(Gt, function(t) {
|
|
3227
3227
|
return t.mode.CTR = (function() {
|
|
3228
3228
|
var e = t.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3229
3229
|
processBlock: function(p, m) {
|
|
@@ -3240,12 +3240,12 @@ function Gt() {
|
|
|
3240
3240
|
});
|
|
3241
3241
|
})(K0)), K0.exports;
|
|
3242
3242
|
}
|
|
3243
|
-
var X0 = { exports: {} },
|
|
3244
|
-
function
|
|
3245
|
-
return
|
|
3243
|
+
var X0 = { exports: {} }, Xt = X0.exports, ae;
|
|
3244
|
+
function Yt() {
|
|
3245
|
+
return ae || (ae = 1, (function(r, h) {
|
|
3246
3246
|
(function(t, e, u) {
|
|
3247
3247
|
r.exports = e(M(), X());
|
|
3248
|
-
})(
|
|
3248
|
+
})(Xt, function(t) {
|
|
3249
3249
|
return t.mode.CTRGladman = (function() {
|
|
3250
3250
|
var e = t.lib.BlockCipherMode.extend();
|
|
3251
3251
|
function u(B) {
|
|
@@ -3274,12 +3274,12 @@ function Xt() {
|
|
|
3274
3274
|
});
|
|
3275
3275
|
})(X0)), X0.exports;
|
|
3276
3276
|
}
|
|
3277
|
-
var Y0 = { exports: {} },
|
|
3278
|
-
function
|
|
3279
|
-
return
|
|
3277
|
+
var Y0 = { exports: {} }, Zt = Y0.exports, oe;
|
|
3278
|
+
function Vt() {
|
|
3279
|
+
return oe || (oe = 1, (function(r, h) {
|
|
3280
3280
|
(function(t, e, u) {
|
|
3281
3281
|
r.exports = e(M(), X());
|
|
3282
|
-
})(
|
|
3282
|
+
})(Zt, function(t) {
|
|
3283
3283
|
return t.mode.OFB = (function() {
|
|
3284
3284
|
var e = t.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3285
3285
|
processBlock: function(p, m) {
|
|
@@ -3294,9 +3294,9 @@ function Zt() {
|
|
|
3294
3294
|
});
|
|
3295
3295
|
})(Y0)), Y0.exports;
|
|
3296
3296
|
}
|
|
3297
|
-
var Z0 = { exports: {} }, Qt = Z0.exports,
|
|
3298
|
-
function
|
|
3299
|
-
return
|
|
3297
|
+
var Z0 = { exports: {} }, Qt = Z0.exports, ie;
|
|
3298
|
+
function Jt() {
|
|
3299
|
+
return ie || (ie = 1, (function(r, h) {
|
|
3300
3300
|
(function(t, e, u) {
|
|
3301
3301
|
r.exports = e(M(), X());
|
|
3302
3302
|
})(Qt, function(t) {
|
|
@@ -3315,12 +3315,12 @@ function Vt() {
|
|
|
3315
3315
|
});
|
|
3316
3316
|
})(Z0)), Z0.exports;
|
|
3317
3317
|
}
|
|
3318
|
-
var
|
|
3319
|
-
function
|
|
3320
|
-
return
|
|
3318
|
+
var V0 = { exports: {} }, rx = V0.exports, se;
|
|
3319
|
+
function ex() {
|
|
3320
|
+
return se || (se = 1, (function(r, h) {
|
|
3321
3321
|
(function(t, e, u) {
|
|
3322
3322
|
r.exports = e(M(), X());
|
|
3323
|
-
})(
|
|
3323
|
+
})(rx, function(t) {
|
|
3324
3324
|
return t.pad.AnsiX923 = {
|
|
3325
3325
|
pad: function(e, u) {
|
|
3326
3326
|
var p = e.sigBytes, m = u * 4, B = m - p % m, C = p + B - 1;
|
|
@@ -3332,14 +3332,14 @@ function rx() {
|
|
|
3332
3332
|
}
|
|
3333
3333
|
}, t.pad.Ansix923;
|
|
3334
3334
|
});
|
|
3335
|
-
})(
|
|
3335
|
+
})(V0)), V0.exports;
|
|
3336
3336
|
}
|
|
3337
|
-
var
|
|
3338
|
-
function
|
|
3339
|
-
return
|
|
3337
|
+
var Q0 = { exports: {} }, tx = Q0.exports, ce;
|
|
3338
|
+
function xx() {
|
|
3339
|
+
return ce || (ce = 1, (function(r, h) {
|
|
3340
3340
|
(function(t, e, u) {
|
|
3341
3341
|
r.exports = e(M(), X());
|
|
3342
|
-
})(
|
|
3342
|
+
})(tx, function(t) {
|
|
3343
3343
|
return t.pad.Iso10126 = {
|
|
3344
3344
|
pad: function(e, u) {
|
|
3345
3345
|
var p = u * 4, m = p - e.sigBytes % p;
|
|
@@ -3351,14 +3351,14 @@ function tx() {
|
|
|
3351
3351
|
}
|
|
3352
3352
|
}, t.pad.Iso10126;
|
|
3353
3353
|
});
|
|
3354
|
-
})(
|
|
3354
|
+
})(Q0)), Q0.exports;
|
|
3355
3355
|
}
|
|
3356
|
-
var J0 = { exports: {} },
|
|
3357
|
-
function
|
|
3358
|
-
return
|
|
3356
|
+
var J0 = { exports: {} }, nx = J0.exports, fe;
|
|
3357
|
+
function ax() {
|
|
3358
|
+
return fe || (fe = 1, (function(r, h) {
|
|
3359
3359
|
(function(t, e, u) {
|
|
3360
3360
|
r.exports = e(M(), X());
|
|
3361
|
-
})(
|
|
3361
|
+
})(nx, function(t) {
|
|
3362
3362
|
return t.pad.Iso97971 = {
|
|
3363
3363
|
pad: function(e, u) {
|
|
3364
3364
|
e.concat(t.lib.WordArray.create([2147483648], 1)), t.pad.ZeroPadding.pad(e, u);
|
|
@@ -3370,12 +3370,12 @@ function nx() {
|
|
|
3370
3370
|
});
|
|
3371
3371
|
})(J0)), J0.exports;
|
|
3372
3372
|
}
|
|
3373
|
-
var rr = { exports: {} },
|
|
3374
|
-
function
|
|
3375
|
-
return
|
|
3373
|
+
var rr = { exports: {} }, ox = rr.exports, ue;
|
|
3374
|
+
function ix() {
|
|
3375
|
+
return ue || (ue = 1, (function(r, h) {
|
|
3376
3376
|
(function(t, e, u) {
|
|
3377
3377
|
r.exports = e(M(), X());
|
|
3378
|
-
})(
|
|
3378
|
+
})(ox, function(t) {
|
|
3379
3379
|
return t.pad.ZeroPadding = {
|
|
3380
3380
|
pad: function(e, u) {
|
|
3381
3381
|
var p = u * 4;
|
|
@@ -3392,12 +3392,12 @@ function ox() {
|
|
|
3392
3392
|
});
|
|
3393
3393
|
})(rr)), rr.exports;
|
|
3394
3394
|
}
|
|
3395
|
-
var er = { exports: {} },
|
|
3396
|
-
function
|
|
3397
|
-
return
|
|
3395
|
+
var er = { exports: {} }, sx = er.exports, de;
|
|
3396
|
+
function cx() {
|
|
3397
|
+
return de || (de = 1, (function(r, h) {
|
|
3398
3398
|
(function(t, e, u) {
|
|
3399
3399
|
r.exports = e(M(), X());
|
|
3400
|
-
})(
|
|
3400
|
+
})(sx, function(t) {
|
|
3401
3401
|
return t.pad.NoPadding = {
|
|
3402
3402
|
pad: function() {
|
|
3403
3403
|
},
|
|
@@ -3407,12 +3407,12 @@ function sx() {
|
|
|
3407
3407
|
});
|
|
3408
3408
|
})(er)), er.exports;
|
|
3409
3409
|
}
|
|
3410
|
-
var tr = { exports: {} },
|
|
3411
|
-
function
|
|
3412
|
-
return
|
|
3410
|
+
var tr = { exports: {} }, fx = tr.exports, le;
|
|
3411
|
+
function ux() {
|
|
3412
|
+
return le || (le = 1, (function(r, h) {
|
|
3413
3413
|
(function(t, e, u) {
|
|
3414
3414
|
r.exports = e(M(), X());
|
|
3415
|
-
})(
|
|
3415
|
+
})(fx, function(t) {
|
|
3416
3416
|
return (function(e) {
|
|
3417
3417
|
var u = t, p = u.lib, m = p.CipherParams, B = u.enc, C = B.Hex, x = u.format;
|
|
3418
3418
|
x.Hex = {
|
|
@@ -3454,58 +3454,58 @@ function fx() {
|
|
|
3454
3454
|
});
|
|
3455
3455
|
})(tr)), tr.exports;
|
|
3456
3456
|
}
|
|
3457
|
-
var xr = { exports: {} },
|
|
3458
|
-
function
|
|
3459
|
-
return
|
|
3457
|
+
var xr = { exports: {} }, dx = xr.exports, he;
|
|
3458
|
+
function lx() {
|
|
3459
|
+
return he || (he = 1, (function(r, h) {
|
|
3460
3460
|
(function(t, e, u) {
|
|
3461
3461
|
r.exports = e(M(), s0(), c0(), a0(), X());
|
|
3462
|
-
})(
|
|
3462
|
+
})(dx, function(t) {
|
|
3463
3463
|
return (function() {
|
|
3464
|
-
var e = t, u = e.lib, p = u.BlockCipher, m = e.algo, B = [], C = [], x = [], n = [], E = [], a = [], s = [], f = [], v = [],
|
|
3464
|
+
var e = t, u = e.lib, p = u.BlockCipher, m = e.algo, B = [], C = [], x = [], n = [], E = [], a = [], s = [], f = [], v = [], l = [];
|
|
3465
3465
|
(function() {
|
|
3466
|
-
for (var o = [],
|
|
3467
|
-
|
|
3468
|
-
for (var b = 0,
|
|
3469
|
-
var y =
|
|
3466
|
+
for (var o = [], d = 0; d < 256; d++)
|
|
3467
|
+
d < 128 ? o[d] = d << 1 : o[d] = d << 1 ^ 283;
|
|
3468
|
+
for (var b = 0, D = 0, d = 0; d < 256; d++) {
|
|
3469
|
+
var y = D ^ D << 1 ^ D << 2 ^ D << 3 ^ D << 4;
|
|
3470
3470
|
y = y >>> 8 ^ y & 255 ^ 99, B[b] = y, C[y] = b;
|
|
3471
3471
|
var k = o[b], R = o[k], F = o[R], w = o[y] * 257 ^ y * 16843008;
|
|
3472
3472
|
x[b] = w << 24 | w >>> 8, n[b] = w << 16 | w >>> 16, E[b] = w << 8 | w >>> 24, a[b] = w;
|
|
3473
3473
|
var w = F * 16843009 ^ R * 65537 ^ k * 257 ^ b * 16843008;
|
|
3474
|
-
s[y] = w << 24 | w >>> 8, f[y] = w << 16 | w >>> 16, v[y] = w << 8 | w >>> 24,
|
|
3474
|
+
s[y] = w << 24 | w >>> 8, f[y] = w << 16 | w >>> 16, v[y] = w << 8 | w >>> 24, l[y] = w, b ? (b = k ^ o[o[o[F ^ k]]], D ^= o[o[D]]) : b = D = 1;
|
|
3475
3475
|
}
|
|
3476
3476
|
})();
|
|
3477
|
-
var
|
|
3477
|
+
var g = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], i = m.AES = p.extend({
|
|
3478
3478
|
_doReset: function() {
|
|
3479
3479
|
var o;
|
|
3480
3480
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
3481
|
-
for (var
|
|
3482
|
-
F <
|
|
3481
|
+
for (var d = this._keyPriorReset = this._key, b = d.words, D = d.sigBytes / 4, y = this._nRounds = D + 6, k = (y + 1) * 4, R = this._keySchedule = [], F = 0; F < k; F++)
|
|
3482
|
+
F < D ? R[F] = b[F] : (o = R[F - 1], F % D ? D > 6 && F % D == 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 ^= g[F / D | 0] << 24), R[F] = R[F - D] ^ o);
|
|
3483
3483
|
for (var w = this._invKeySchedule = [], H = 0; H < k; H++) {
|
|
3484
3484
|
var F = k - H;
|
|
3485
3485
|
if (H % 4)
|
|
3486
3486
|
var o = R[F];
|
|
3487
3487
|
else
|
|
3488
3488
|
var o = R[F - 4];
|
|
3489
|
-
H < 4 || F <= 4 ? w[H] = o : w[H] = s[B[o >>> 24]] ^ f[B[o >>> 16 & 255]] ^ v[B[o >>> 8 & 255]] ^
|
|
3489
|
+
H < 4 || F <= 4 ? w[H] = o : w[H] = s[B[o >>> 24]] ^ f[B[o >>> 16 & 255]] ^ v[B[o >>> 8 & 255]] ^ l[B[o & 255]];
|
|
3490
3490
|
}
|
|
3491
3491
|
}
|
|
3492
3492
|
},
|
|
3493
|
-
encryptBlock: function(o,
|
|
3494
|
-
this._doCryptBlock(o,
|
|
3493
|
+
encryptBlock: function(o, d) {
|
|
3494
|
+
this._doCryptBlock(o, d, this._keySchedule, x, n, E, a, B);
|
|
3495
3495
|
},
|
|
3496
|
-
decryptBlock: function(o,
|
|
3497
|
-
var b = o[
|
|
3498
|
-
o[
|
|
3499
|
-
var b = o[
|
|
3500
|
-
o[
|
|
3496
|
+
decryptBlock: function(o, d) {
|
|
3497
|
+
var b = o[d + 1];
|
|
3498
|
+
o[d + 1] = o[d + 3], o[d + 3] = b, this._doCryptBlock(o, d, this._invKeySchedule, s, f, v, l, C);
|
|
3499
|
+
var b = o[d + 1];
|
|
3500
|
+
o[d + 1] = o[d + 3], o[d + 3] = b;
|
|
3501
3501
|
},
|
|
3502
|
-
_doCryptBlock: function(o,
|
|
3503
|
-
for (var w = this._nRounds, H = o[
|
|
3504
|
-
var T =
|
|
3505
|
-
H = T, $ = N,
|
|
3502
|
+
_doCryptBlock: function(o, d, b, D, y, k, R, F) {
|
|
3503
|
+
for (var w = this._nRounds, H = o[d] ^ b[0], $ = o[d + 1] ^ b[1], W = o[d + 2] ^ b[2], O = o[d + 3] ^ b[3], q = 4, U = 1; U < w; U++) {
|
|
3504
|
+
var T = D[H >>> 24] ^ y[$ >>> 16 & 255] ^ k[W >>> 8 & 255] ^ R[O & 255] ^ b[q++], N = D[$ >>> 24] ^ y[W >>> 16 & 255] ^ k[O >>> 8 & 255] ^ R[H & 255] ^ b[q++], j = D[W >>> 24] ^ y[O >>> 16 & 255] ^ k[H >>> 8 & 255] ^ R[$ & 255] ^ b[q++], S = D[O >>> 24] ^ y[H >>> 16 & 255] ^ k[$ >>> 8 & 255] ^ R[W & 255] ^ b[q++];
|
|
3505
|
+
H = T, $ = N, W = j, O = S;
|
|
3506
3506
|
}
|
|
3507
|
-
var T = (F[H >>> 24] << 24 | F[$ >>> 16 & 255] << 16 | F[
|
|
3508
|
-
o[
|
|
3507
|
+
var T = (F[H >>> 24] << 24 | F[$ >>> 16 & 255] << 16 | F[W >>> 8 & 255] << 8 | F[O & 255]) ^ b[q++], N = (F[$ >>> 24] << 24 | F[W >>> 16 & 255] << 16 | F[O >>> 8 & 255] << 8 | F[H & 255]) ^ b[q++], j = (F[W >>> 24] << 24 | F[O >>> 16 & 255] << 16 | F[H >>> 8 & 255] << 8 | F[$ & 255]) ^ b[q++], S = (F[O >>> 24] << 24 | F[H >>> 16 & 255] << 16 | F[$ >>> 8 & 255] << 8 | F[W & 255]) ^ b[q++];
|
|
3508
|
+
o[d] = T, o[d + 1] = N, o[d + 2] = j, o[d + 3] = S;
|
|
3509
3509
|
},
|
|
3510
3510
|
keySize: 256 / 32
|
|
3511
3511
|
});
|
|
@@ -3514,12 +3514,12 @@ function dx() {
|
|
|
3514
3514
|
});
|
|
3515
3515
|
})(xr)), xr.exports;
|
|
3516
3516
|
}
|
|
3517
|
-
var nr = { exports: {} },
|
|
3518
|
-
function
|
|
3519
|
-
return
|
|
3517
|
+
var nr = { exports: {} }, hx = nr.exports, ve;
|
|
3518
|
+
function vx() {
|
|
3519
|
+
return ve || (ve = 1, (function(r, h) {
|
|
3520
3520
|
(function(t, e, u) {
|
|
3521
3521
|
r.exports = e(M(), s0(), c0(), a0(), X());
|
|
3522
|
-
})(
|
|
3522
|
+
})(hx, function(t) {
|
|
3523
3523
|
return (function() {
|
|
3524
3524
|
var e = t, u = e.lib, p = u.WordArray, m = u.BlockCipher, B = e.algo, C = [
|
|
3525
3525
|
57,
|
|
@@ -4167,87 +4167,87 @@ function hx() {
|
|
|
4167
4167
|
2147483679
|
|
4168
4168
|
], s = B.DES = m.extend({
|
|
4169
4169
|
_doReset: function() {
|
|
4170
|
-
for (var
|
|
4171
|
-
var b = C[
|
|
4172
|
-
o[
|
|
4170
|
+
for (var g = this._key, i = g.words, o = [], d = 0; d < 56; d++) {
|
|
4171
|
+
var b = C[d] - 1;
|
|
4172
|
+
o[d] = i[b >>> 5] >>> 31 - b % 32 & 1;
|
|
4173
4173
|
}
|
|
4174
|
-
for (var
|
|
4175
|
-
for (var k =
|
|
4176
|
-
k[
|
|
4174
|
+
for (var D = this._subKeys = [], y = 0; y < 16; y++) {
|
|
4175
|
+
for (var k = D[y] = [], R = n[y], d = 0; d < 24; d++)
|
|
4176
|
+
k[d / 6 | 0] |= o[(x[d] - 1 + R) % 28] << 31 - d % 6, k[4 + (d / 6 | 0)] |= o[28 + (x[d + 24] - 1 + R) % 28] << 31 - d % 6;
|
|
4177
4177
|
k[0] = k[0] << 1 | k[0] >>> 31;
|
|
4178
|
-
for (var
|
|
4179
|
-
k[
|
|
4178
|
+
for (var d = 1; d < 7; d++)
|
|
4179
|
+
k[d] = k[d] >>> (d - 1) * 4 + 3;
|
|
4180
4180
|
k[7] = k[7] << 5 | k[7] >>> 27;
|
|
4181
4181
|
}
|
|
4182
|
-
for (var F = this._invSubKeys = [],
|
|
4183
|
-
F[
|
|
4182
|
+
for (var F = this._invSubKeys = [], d = 0; d < 16; d++)
|
|
4183
|
+
F[d] = D[15 - d];
|
|
4184
4184
|
},
|
|
4185
|
-
encryptBlock: function(
|
|
4186
|
-
this._doCryptBlock(
|
|
4185
|
+
encryptBlock: function(g, i) {
|
|
4186
|
+
this._doCryptBlock(g, i, this._subKeys);
|
|
4187
4187
|
},
|
|
4188
|
-
decryptBlock: function(
|
|
4189
|
-
this._doCryptBlock(
|
|
4188
|
+
decryptBlock: function(g, i) {
|
|
4189
|
+
this._doCryptBlock(g, i, this._invSubKeys);
|
|
4190
4190
|
},
|
|
4191
|
-
_doCryptBlock: function(
|
|
4192
|
-
this._lBlock =
|
|
4193
|
-
for (var
|
|
4194
|
-
for (var b = o[
|
|
4191
|
+
_doCryptBlock: function(g, i, o) {
|
|
4192
|
+
this._lBlock = g[i], this._rBlock = g[i + 1], f.call(this, 4, 252645135), f.call(this, 16, 65535), v.call(this, 2, 858993459), v.call(this, 8, 16711935), f.call(this, 1, 1431655765);
|
|
4193
|
+
for (var d = 0; d < 16; d++) {
|
|
4194
|
+
for (var b = o[d], D = this._lBlock, y = this._rBlock, k = 0, R = 0; R < 8; R++)
|
|
4195
4195
|
k |= E[R][((y ^ b[R]) & a[R]) >>> 0];
|
|
4196
|
-
this._lBlock = y, this._rBlock =
|
|
4196
|
+
this._lBlock = y, this._rBlock = D ^ k;
|
|
4197
4197
|
}
|
|
4198
4198
|
var F = this._lBlock;
|
|
4199
|
-
this._lBlock = this._rBlock, this._rBlock = F, f.call(this, 1, 1431655765), v.call(this, 8, 16711935), v.call(this, 2, 858993459), f.call(this, 16, 65535), f.call(this, 4, 252645135),
|
|
4199
|
+
this._lBlock = this._rBlock, this._rBlock = F, f.call(this, 1, 1431655765), v.call(this, 8, 16711935), v.call(this, 2, 858993459), f.call(this, 16, 65535), f.call(this, 4, 252645135), g[i] = this._lBlock, g[i + 1] = this._rBlock;
|
|
4200
4200
|
},
|
|
4201
4201
|
keySize: 64 / 32,
|
|
4202
4202
|
ivSize: 64 / 32,
|
|
4203
4203
|
blockSize: 64 / 32
|
|
4204
4204
|
});
|
|
4205
|
-
function f(
|
|
4206
|
-
var o = (this._lBlock >>>
|
|
4207
|
-
this._rBlock ^= o, this._lBlock ^= o <<
|
|
4205
|
+
function f(g, i) {
|
|
4206
|
+
var o = (this._lBlock >>> g ^ this._rBlock) & i;
|
|
4207
|
+
this._rBlock ^= o, this._lBlock ^= o << g;
|
|
4208
4208
|
}
|
|
4209
|
-
function v(
|
|
4210
|
-
var o = (this._rBlock >>>
|
|
4211
|
-
this._lBlock ^= o, this._rBlock ^= o <<
|
|
4209
|
+
function v(g, i) {
|
|
4210
|
+
var o = (this._rBlock >>> g ^ this._lBlock) & i;
|
|
4211
|
+
this._lBlock ^= o, this._rBlock ^= o << g;
|
|
4212
4212
|
}
|
|
4213
4213
|
e.DES = m._createHelper(s);
|
|
4214
|
-
var
|
|
4214
|
+
var l = B.TripleDES = m.extend({
|
|
4215
4215
|
_doReset: function() {
|
|
4216
|
-
var
|
|
4216
|
+
var g = this._key, i = g.words;
|
|
4217
4217
|
if (i.length !== 2 && i.length !== 4 && i.length < 6)
|
|
4218
4218
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
4219
|
-
var o = i.slice(0, 2),
|
|
4220
|
-
this._des1 = s.createEncryptor(p.create(o)), this._des2 = s.createEncryptor(p.create(
|
|
4219
|
+
var o = i.slice(0, 2), d = i.length < 4 ? i.slice(0, 2) : i.slice(2, 4), b = i.length < 6 ? i.slice(0, 2) : i.slice(4, 6);
|
|
4220
|
+
this._des1 = s.createEncryptor(p.create(o)), this._des2 = s.createEncryptor(p.create(d)), this._des3 = s.createEncryptor(p.create(b));
|
|
4221
4221
|
},
|
|
4222
|
-
encryptBlock: function(
|
|
4223
|
-
this._des1.encryptBlock(
|
|
4222
|
+
encryptBlock: function(g, i) {
|
|
4223
|
+
this._des1.encryptBlock(g, i), this._des2.decryptBlock(g, i), this._des3.encryptBlock(g, i);
|
|
4224
4224
|
},
|
|
4225
|
-
decryptBlock: function(
|
|
4226
|
-
this._des3.decryptBlock(
|
|
4225
|
+
decryptBlock: function(g, i) {
|
|
4226
|
+
this._des3.decryptBlock(g, i), this._des2.encryptBlock(g, i), this._des1.decryptBlock(g, i);
|
|
4227
4227
|
},
|
|
4228
4228
|
keySize: 192 / 32,
|
|
4229
4229
|
ivSize: 64 / 32,
|
|
4230
4230
|
blockSize: 64 / 32
|
|
4231
4231
|
});
|
|
4232
|
-
e.TripleDES = m._createHelper(
|
|
4232
|
+
e.TripleDES = m._createHelper(l);
|
|
4233
4233
|
})(), t.TripleDES;
|
|
4234
4234
|
});
|
|
4235
4235
|
})(nr)), nr.exports;
|
|
4236
4236
|
}
|
|
4237
|
-
var ar = { exports: {} },
|
|
4238
|
-
function
|
|
4239
|
-
return
|
|
4237
|
+
var ar = { exports: {} }, px = ar.exports, pe;
|
|
4238
|
+
function Bx() {
|
|
4239
|
+
return pe || (pe = 1, (function(r, h) {
|
|
4240
4240
|
(function(t, e, u) {
|
|
4241
4241
|
r.exports = e(M(), s0(), c0(), a0(), X());
|
|
4242
|
-
})(
|
|
4242
|
+
})(px, function(t) {
|
|
4243
4243
|
return (function() {
|
|
4244
4244
|
var e = t, u = e.lib, p = u.StreamCipher, m = e.algo, B = m.RC4 = p.extend({
|
|
4245
4245
|
_doReset: function() {
|
|
4246
4246
|
for (var n = this._key, E = n.words, a = n.sigBytes, s = this._S = [], f = 0; f < 256; f++)
|
|
4247
4247
|
s[f] = f;
|
|
4248
4248
|
for (var f = 0, v = 0; f < 256; f++) {
|
|
4249
|
-
var
|
|
4250
|
-
v = (v + s[f] +
|
|
4249
|
+
var l = f % a, g = E[l >>> 2] >>> 24 - l % 4 * 8 & 255;
|
|
4250
|
+
v = (v + s[f] + g) % 256;
|
|
4251
4251
|
var i = s[f];
|
|
4252
4252
|
s[f] = s[v], s[v] = i;
|
|
4253
4253
|
}
|
|
@@ -4288,12 +4288,12 @@ function px() {
|
|
|
4288
4288
|
});
|
|
4289
4289
|
})(ar)), ar.exports;
|
|
4290
4290
|
}
|
|
4291
|
-
var or = { exports: {} },
|
|
4292
|
-
function
|
|
4293
|
-
return
|
|
4291
|
+
var or = { exports: {} }, Cx = or.exports, Be;
|
|
4292
|
+
function Ex() {
|
|
4293
|
+
return Be || (Be = 1, (function(r, h) {
|
|
4294
4294
|
(function(t, e, u) {
|
|
4295
4295
|
r.exports = e(M(), s0(), c0(), a0(), X());
|
|
4296
|
-
})(
|
|
4296
|
+
})(Cx, function(t) {
|
|
4297
4297
|
return (function() {
|
|
4298
4298
|
var e = t, u = e.lib, p = u.StreamCipher, m = e.algo, B = [], C = [], x = [], n = m.Rabbit = p.extend({
|
|
4299
4299
|
_doReset: function() {
|
|
@@ -4308,7 +4308,7 @@ function Cx() {
|
|
|
4308
4308
|
a[1] << 16 | a[0] >>> 16,
|
|
4309
4309
|
a[3],
|
|
4310
4310
|
a[2] << 16 | a[1] >>> 16
|
|
4311
|
-
],
|
|
4311
|
+
], l = this._C = [
|
|
4312
4312
|
a[2] << 16 | a[2] >>> 16,
|
|
4313
4313
|
a[0] & 4294901760 | a[1] & 65535,
|
|
4314
4314
|
a[3] << 16 | a[3] >>> 16,
|
|
@@ -4322,10 +4322,10 @@ function Cx() {
|
|
|
4322
4322
|
for (var f = 0; f < 4; f++)
|
|
4323
4323
|
E.call(this);
|
|
4324
4324
|
for (var f = 0; f < 8; f++)
|
|
4325
|
-
|
|
4325
|
+
l[f] ^= v[f + 4 & 7];
|
|
4326
4326
|
if (s) {
|
|
4327
|
-
var
|
|
4328
|
-
|
|
4327
|
+
var g = s.words, i = g[0], o = g[1], d = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, b = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, D = d >>> 16 | b & 4294901760, y = b << 16 | d & 65535;
|
|
4328
|
+
l[0] ^= d, l[1] ^= D, l[2] ^= b, l[3] ^= y, l[4] ^= d, l[5] ^= D, l[6] ^= b, l[7] ^= y;
|
|
4329
4329
|
for (var f = 0; f < 4; f++)
|
|
4330
4330
|
E.call(this);
|
|
4331
4331
|
}
|
|
@@ -4344,7 +4344,7 @@ function Cx() {
|
|
|
4344
4344
|
C[f] = s[f];
|
|
4345
4345
|
s[0] = s[0] + 1295307597 + this._b | 0, s[1] = s[1] + 3545052371 + (s[0] >>> 0 < C[0] >>> 0 ? 1 : 0) | 0, s[2] = s[2] + 886263092 + (s[1] >>> 0 < C[1] >>> 0 ? 1 : 0) | 0, s[3] = s[3] + 1295307597 + (s[2] >>> 0 < C[2] >>> 0 ? 1 : 0) | 0, s[4] = s[4] + 3545052371 + (s[3] >>> 0 < C[3] >>> 0 ? 1 : 0) | 0, s[5] = s[5] + 886263092 + (s[4] >>> 0 < C[4] >>> 0 ? 1 : 0) | 0, s[6] = s[6] + 1295307597 + (s[5] >>> 0 < C[5] >>> 0 ? 1 : 0) | 0, s[7] = s[7] + 3545052371 + (s[6] >>> 0 < C[6] >>> 0 ? 1 : 0) | 0, this._b = s[7] >>> 0 < C[7] >>> 0 ? 1 : 0;
|
|
4346
4346
|
for (var f = 0; f < 8; f++) {
|
|
4347
|
-
var v = a[f] + s[f],
|
|
4347
|
+
var v = a[f] + s[f], l = v & 65535, g = v >>> 16, i = ((l * l >>> 17) + l * g >>> 15) + g * g, o = ((v & 4294901760) * v | 0) + ((v & 65535) * v | 0);
|
|
4348
4348
|
x[f] = i ^ o;
|
|
4349
4349
|
}
|
|
4350
4350
|
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,12 +4354,12 @@ function Cx() {
|
|
|
4354
4354
|
});
|
|
4355
4355
|
})(or)), or.exports;
|
|
4356
4356
|
}
|
|
4357
|
-
var ir = { exports: {} },
|
|
4358
|
-
function
|
|
4359
|
-
return
|
|
4357
|
+
var ir = { exports: {} }, Ax = ir.exports, Ce;
|
|
4358
|
+
function Fx() {
|
|
4359
|
+
return Ce || (Ce = 1, (function(r, h) {
|
|
4360
4360
|
(function(t, e, u) {
|
|
4361
4361
|
r.exports = e(M(), s0(), c0(), a0(), X());
|
|
4362
|
-
})(
|
|
4362
|
+
})(Ax, function(t) {
|
|
4363
4363
|
return (function() {
|
|
4364
4364
|
var e = t, u = e.lib, p = u.StreamCipher, m = e.algo, B = [], C = [], x = [], n = m.RabbitLegacy = p.extend({
|
|
4365
4365
|
_doReset: function() {
|
|
@@ -4383,14 +4383,14 @@ function Ax() {
|
|
|
4383
4383
|
a[3] & 4294901760 | a[0] & 65535
|
|
4384
4384
|
];
|
|
4385
4385
|
this._b = 0;
|
|
4386
|
-
for (var
|
|
4386
|
+
for (var l = 0; l < 4; l++)
|
|
4387
4387
|
E.call(this);
|
|
4388
|
-
for (var
|
|
4389
|
-
v[
|
|
4388
|
+
for (var l = 0; l < 8; l++)
|
|
4389
|
+
v[l] ^= f[l + 4 & 7];
|
|
4390
4390
|
if (s) {
|
|
4391
|
-
var
|
|
4392
|
-
v[0] ^=
|
|
4393
|
-
for (var
|
|
4391
|
+
var g = s.words, i = g[0], o = g[1], d = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, b = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, D = d >>> 16 | b & 4294901760, y = b << 16 | d & 65535;
|
|
4392
|
+
v[0] ^= d, v[1] ^= D, v[2] ^= b, v[3] ^= y, v[4] ^= d, v[5] ^= D, v[6] ^= b, v[7] ^= y;
|
|
4393
|
+
for (var l = 0; l < 4; l++)
|
|
4394
4394
|
E.call(this);
|
|
4395
4395
|
}
|
|
4396
4396
|
},
|
|
@@ -4408,7 +4408,7 @@ function Ax() {
|
|
|
4408
4408
|
C[f] = s[f];
|
|
4409
4409
|
s[0] = s[0] + 1295307597 + this._b | 0, s[1] = s[1] + 3545052371 + (s[0] >>> 0 < C[0] >>> 0 ? 1 : 0) | 0, s[2] = s[2] + 886263092 + (s[1] >>> 0 < C[1] >>> 0 ? 1 : 0) | 0, s[3] = s[3] + 1295307597 + (s[2] >>> 0 < C[2] >>> 0 ? 1 : 0) | 0, s[4] = s[4] + 3545052371 + (s[3] >>> 0 < C[3] >>> 0 ? 1 : 0) | 0, s[5] = s[5] + 886263092 + (s[4] >>> 0 < C[4] >>> 0 ? 1 : 0) | 0, s[6] = s[6] + 1295307597 + (s[5] >>> 0 < C[5] >>> 0 ? 1 : 0) | 0, s[7] = s[7] + 3545052371 + (s[6] >>> 0 < C[6] >>> 0 ? 1 : 0) | 0, this._b = s[7] >>> 0 < C[7] >>> 0 ? 1 : 0;
|
|
4410
4410
|
for (var f = 0; f < 8; f++) {
|
|
4411
|
-
var v = a[f] + s[f],
|
|
4411
|
+
var v = a[f] + s[f], l = v & 65535, g = v >>> 16, i = ((l * l >>> 17) + l * g >>> 15) + g * g, o = ((v & 4294901760) * v | 0) + ((v & 65535) * v | 0);
|
|
4412
4412
|
x[f] = i ^ o;
|
|
4413
4413
|
}
|
|
4414
4414
|
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,12 +4418,12 @@ function Ax() {
|
|
|
4418
4418
|
});
|
|
4419
4419
|
})(ir)), ir.exports;
|
|
4420
4420
|
}
|
|
4421
|
-
var sr = { exports: {} },
|
|
4421
|
+
var sr = { exports: {} }, Dx = sr.exports, Ee;
|
|
4422
4422
|
function gx() {
|
|
4423
|
-
return
|
|
4423
|
+
return Ee || (Ee = 1, (function(r, h) {
|
|
4424
4424
|
(function(t, e, u) {
|
|
4425
4425
|
r.exports = e(M(), s0(), c0(), a0(), X());
|
|
4426
|
-
})(
|
|
4426
|
+
})(Dx, function(t) {
|
|
4427
4427
|
return (function() {
|
|
4428
4428
|
var e = t, u = e.lib, p = u.BlockCipher, m = e.algo;
|
|
4429
4429
|
const B = 16, C = [
|
|
@@ -5483,53 +5483,53 @@ function gx() {
|
|
|
5483
5483
|
pbox: [],
|
|
5484
5484
|
sbox: []
|
|
5485
5485
|
};
|
|
5486
|
-
function E(
|
|
5487
|
-
let i =
|
|
5488
|
-
return
|
|
5486
|
+
function E(l, g) {
|
|
5487
|
+
let i = g >> 24 & 255, o = g >> 16 & 255, d = g >> 8 & 255, b = g & 255, D = l.sbox[0][i] + l.sbox[1][o];
|
|
5488
|
+
return D = D ^ l.sbox[2][d], D = D + l.sbox[3][b], D;
|
|
5489
5489
|
}
|
|
5490
|
-
function a(
|
|
5491
|
-
let o =
|
|
5492
|
-
for (let
|
|
5493
|
-
o = o ^
|
|
5494
|
-
return b = o, o =
|
|
5490
|
+
function a(l, g, i) {
|
|
5491
|
+
let o = g, d = i, b;
|
|
5492
|
+
for (let D = 0; D < B; ++D)
|
|
5493
|
+
o = o ^ l.pbox[D], d = E(l, o) ^ d, b = o, o = d, d = b;
|
|
5494
|
+
return b = o, o = d, d = b, d = d ^ l.pbox[B], o = o ^ l.pbox[B + 1], { left: o, right: d };
|
|
5495
5495
|
}
|
|
5496
|
-
function s(
|
|
5497
|
-
let o =
|
|
5498
|
-
for (let
|
|
5499
|
-
o = o ^
|
|
5500
|
-
return b = o, o =
|
|
5496
|
+
function s(l, g, i) {
|
|
5497
|
+
let o = g, d = i, b;
|
|
5498
|
+
for (let D = B + 1; D > 1; --D)
|
|
5499
|
+
o = o ^ l.pbox[D], d = E(l, o) ^ d, b = o, o = d, d = b;
|
|
5500
|
+
return b = o, o = d, d = b, d = d ^ l.pbox[1], o = o ^ l.pbox[0], { left: o, right: d };
|
|
5501
5501
|
}
|
|
5502
|
-
function f(
|
|
5502
|
+
function f(l, g, i) {
|
|
5503
5503
|
for (let y = 0; y < 4; y++) {
|
|
5504
|
-
|
|
5504
|
+
l.sbox[y] = [];
|
|
5505
5505
|
for (let k = 0; k < 256; k++)
|
|
5506
|
-
|
|
5506
|
+
l.sbox[y][k] = x[y][k];
|
|
5507
5507
|
}
|
|
5508
5508
|
let o = 0;
|
|
5509
5509
|
for (let y = 0; y < B + 2; y++)
|
|
5510
|
-
|
|
5511
|
-
let
|
|
5510
|
+
l.pbox[y] = C[y] ^ g[o], o++, o >= i && (o = 0);
|
|
5511
|
+
let d = 0, b = 0, D = 0;
|
|
5512
5512
|
for (let y = 0; y < B + 2; y += 2)
|
|
5513
|
-
|
|
5513
|
+
D = a(l, d, b), d = D.left, b = D.right, l.pbox[y] = d, l.pbox[y + 1] = b;
|
|
5514
5514
|
for (let y = 0; y < 4; y++)
|
|
5515
5515
|
for (let k = 0; k < 256; k += 2)
|
|
5516
|
-
|
|
5516
|
+
D = a(l, d, b), d = D.left, b = D.right, l.sbox[y][k] = d, l.sbox[y][k + 1] = b;
|
|
5517
5517
|
return !0;
|
|
5518
5518
|
}
|
|
5519
5519
|
var v = m.Blowfish = p.extend({
|
|
5520
5520
|
_doReset: function() {
|
|
5521
5521
|
if (this._keyPriorReset !== this._key) {
|
|
5522
|
-
var
|
|
5523
|
-
f(n,
|
|
5522
|
+
var l = this._keyPriorReset = this._key, g = l.words, i = l.sigBytes / 4;
|
|
5523
|
+
f(n, g, i);
|
|
5524
5524
|
}
|
|
5525
5525
|
},
|
|
5526
|
-
encryptBlock: function(
|
|
5527
|
-
var i = a(n,
|
|
5528
|
-
|
|
5526
|
+
encryptBlock: function(l, g) {
|
|
5527
|
+
var i = a(n, l[g], l[g + 1]);
|
|
5528
|
+
l[g] = i.left, l[g + 1] = i.right;
|
|
5529
5529
|
},
|
|
5530
|
-
decryptBlock: function(
|
|
5531
|
-
var i = s(n,
|
|
5532
|
-
|
|
5530
|
+
decryptBlock: function(l, g) {
|
|
5531
|
+
var i = s(n, l[g], l[g + 1]);
|
|
5532
|
+
l[g] = i.left, l[g + 1] = i.right;
|
|
5533
5533
|
},
|
|
5534
5534
|
blockSize: 64 / 32,
|
|
5535
5535
|
keySize: 128 / 32,
|
|
@@ -5540,36 +5540,36 @@ function gx() {
|
|
|
5540
5540
|
});
|
|
5541
5541
|
})(sr)), sr.exports;
|
|
5542
5542
|
}
|
|
5543
|
-
var
|
|
5544
|
-
function
|
|
5545
|
-
return
|
|
5543
|
+
var bx = y0.exports, Ae;
|
|
5544
|
+
function mx() {
|
|
5545
|
+
return Ae || (Ae = 1, (function(r, h) {
|
|
5546
5546
|
(function(t, e, u) {
|
|
5547
|
-
r.exports = e(M(), ur(),
|
|
5548
|
-
})(
|
|
5547
|
+
r.exports = e(M(), ur(), Ft(), gt(), s0(), _t(), c0(), ke(), Fr(), Ht(), Se(), Pt(), zt(), Lt(), Dr(), Tt(), a0(), X(), jt(), Kt(), Yt(), Vt(), Jt(), ex(), xx(), ax(), ix(), cx(), ux(), lx(), vx(), Bx(), Ex(), Fx(), gx());
|
|
5548
|
+
})(bx, function(t) {
|
|
5549
5549
|
return t;
|
|
5550
5550
|
});
|
|
5551
5551
|
})(y0)), y0.exports;
|
|
5552
5552
|
}
|
|
5553
|
-
|
|
5554
|
-
let
|
|
5553
|
+
mx();
|
|
5554
|
+
let He = null, $e = null, Re = null, Pe = null;
|
|
5555
5555
|
Math.random().toString(36).substring(7);
|
|
5556
|
-
function
|
|
5557
|
-
|
|
5556
|
+
function _x(r) {
|
|
5557
|
+
He = r.token, $e = r.apiUrl, Re = r.deviceId, Pe = r.domain;
|
|
5558
5558
|
}
|
|
5559
|
-
function
|
|
5559
|
+
function yx() {
|
|
5560
5560
|
return {
|
|
5561
|
-
token:
|
|
5562
|
-
apiUrl:
|
|
5563
|
-
deviceId:
|
|
5564
|
-
domain:
|
|
5561
|
+
token: He,
|
|
5562
|
+
apiUrl: $e,
|
|
5563
|
+
deviceId: Re,
|
|
5564
|
+
domain: Pe
|
|
5565
5565
|
};
|
|
5566
5566
|
}
|
|
5567
|
-
function
|
|
5568
|
-
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.
|
|
5567
|
+
function wx(r) {
|
|
5568
|
+
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.159`;
|
|
5569
5569
|
}
|
|
5570
|
-
function
|
|
5571
|
-
const t =
|
|
5572
|
-
return new Worker(t, { type: "module", ...
|
|
5570
|
+
function kx(r, h) {
|
|
5571
|
+
const t = wx(r);
|
|
5572
|
+
return new Worker(t, { type: "module", ...h });
|
|
5573
5573
|
}
|
|
5574
5574
|
const gr = () => {
|
|
5575
5575
|
try {
|
|
@@ -5579,14 +5579,14 @@ const gr = () => {
|
|
|
5579
5579
|
return !1;
|
|
5580
5580
|
}, m0 = (...r) => {
|
|
5581
5581
|
gr();
|
|
5582
|
-
},
|
|
5582
|
+
}, Fe = (...r) => {
|
|
5583
5583
|
gr();
|
|
5584
|
-
},
|
|
5585
|
-
let
|
|
5586
|
-
function
|
|
5587
|
-
const
|
|
5588
|
-
if (
|
|
5589
|
-
const t =
|
|
5584
|
+
}, De = /* @__PURE__ */ new Map(), Br = /* @__PURE__ */ new Map();
|
|
5585
|
+
let Sx = 0;
|
|
5586
|
+
function Hx(r) {
|
|
5587
|
+
const h = De.get(r);
|
|
5588
|
+
if (h) return h;
|
|
5589
|
+
const t = kx("./deform.worker.ts");
|
|
5590
5590
|
try {
|
|
5591
5591
|
t.postMessage({ type: "SET_DEBUG", debugRender: gr() });
|
|
5592
5592
|
} catch {
|
|
@@ -5610,7 +5610,7 @@ function Sx(r) {
|
|
|
5610
5610
|
}, t.onerror = (u) => {
|
|
5611
5611
|
};
|
|
5612
5612
|
const e = () => {
|
|
5613
|
-
const u =
|
|
5613
|
+
const u = yx();
|
|
5614
5614
|
return m0("🔍 [workerManager] 检查 License Token:", {
|
|
5615
5615
|
hasToken: !!u.token,
|
|
5616
5616
|
tokenPreview: u.token ? u.token.substring(0, 20) + "..." : "undefined",
|
|
@@ -5625,21 +5625,21 @@ function Sx(r) {
|
|
|
5625
5625
|
}), !0) : !1;
|
|
5626
5626
|
};
|
|
5627
5627
|
return e() || (m0("⏳ [workerManager] License Token 未设置,等待后重试...", { faceId: r }), setTimeout(() => {
|
|
5628
|
-
e() ||
|
|
5628
|
+
e() || Fe("⚠️ [workerManager] 等待后 License Token 仍未设置", { faceId: r });
|
|
5629
5629
|
}, 200), setTimeout(() => {
|
|
5630
|
-
e() ||
|
|
5631
|
-
}, 500)),
|
|
5630
|
+
e() || Fe("⚠️ [workerManager] 第二次等待后 License Token 仍未设置", { faceId: r });
|
|
5631
|
+
}, 500)), De.set(r, t), t;
|
|
5632
5632
|
}
|
|
5633
|
-
function
|
|
5633
|
+
function $x(r) {
|
|
5634
5634
|
return {
|
|
5635
5635
|
name: r.name,
|
|
5636
5636
|
type: r.type,
|
|
5637
5637
|
blendMode: r.blendMode,
|
|
5638
5638
|
transform: Array.isArray(r.transform) ? [...r.transform] : [],
|
|
5639
|
-
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((
|
|
5640
|
-
x:
|
|
5641
|
-
y:
|
|
5642
|
-
type:
|
|
5639
|
+
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((h) => ({
|
|
5640
|
+
x: h.x,
|
|
5641
|
+
y: h.y,
|
|
5642
|
+
type: h.type
|
|
5643
5643
|
})) : [],
|
|
5644
5644
|
bounds: r.bounds ? {
|
|
5645
5645
|
width: r.bounds.width,
|
|
@@ -5662,30 +5662,30 @@ function Hx(r) {
|
|
|
5662
5662
|
layerOrder: r.layerOrder,
|
|
5663
5663
|
imagePath: r.imagePath,
|
|
5664
5664
|
vectorMask: r.vectorMask ? {
|
|
5665
|
-
paths: r.vectorMask.paths?.map((
|
|
5666
|
-
open:
|
|
5667
|
-
knots:
|
|
5665
|
+
paths: r.vectorMask.paths?.map((h) => ({
|
|
5666
|
+
open: h.open,
|
|
5667
|
+
knots: h.knots?.map((t) => ({
|
|
5668
5668
|
linked: t.linked,
|
|
5669
5669
|
points: [...t.points]
|
|
5670
5670
|
})),
|
|
5671
|
-
fillRule:
|
|
5672
|
-
operation:
|
|
5671
|
+
fillRule: h.fillRule,
|
|
5672
|
+
operation: h.operation
|
|
5673
5673
|
})),
|
|
5674
|
-
points: r.vectorMask.points?.map((
|
|
5675
|
-
x:
|
|
5676
|
-
y:
|
|
5677
|
-
type:
|
|
5674
|
+
points: r.vectorMask.points?.map((h) => ({
|
|
5675
|
+
x: h.x,
|
|
5676
|
+
y: h.y,
|
|
5677
|
+
type: h.type
|
|
5678
5678
|
})),
|
|
5679
5679
|
invert: r.vectorMask.invert,
|
|
5680
5680
|
notLink: r.vectorMask.notLink,
|
|
5681
5681
|
disable: r.vectorMask.disable,
|
|
5682
5682
|
fillStartsWithAllPixels: r.vectorMask.fillStartsWithAllPixels
|
|
5683
5683
|
} : void 0,
|
|
5684
|
-
filterList: r.filterList ? r.filterList.map((
|
|
5685
|
-
type:
|
|
5686
|
-
enabled:
|
|
5687
|
-
filter:
|
|
5688
|
-
puppetShapeList:
|
|
5684
|
+
filterList: r.filterList ? r.filterList.map((h) => ({
|
|
5685
|
+
type: h.type,
|
|
5686
|
+
enabled: h.enabled,
|
|
5687
|
+
filter: h.filter ? {
|
|
5688
|
+
puppetShapeList: h.filter.puppetShapeList?.map((t) => ({
|
|
5689
5689
|
originalVertexArray: t.originalVertexArray.map((e) => ({
|
|
5690
5690
|
x: e.x,
|
|
5691
5691
|
y: e.y
|
|
@@ -5702,8 +5702,8 @@ function Hx(r) {
|
|
|
5702
5702
|
clipping: r.clipping
|
|
5703
5703
|
};
|
|
5704
5704
|
}
|
|
5705
|
-
function
|
|
5706
|
-
const u = ++
|
|
5705
|
+
function Rx(r, h, t, e) {
|
|
5706
|
+
const u = ++Sx, p = Hx(t);
|
|
5707
5707
|
return performance.now(), (/* @__PURE__ */ new Date()).toISOString(), new Promise((m, B) => {
|
|
5708
5708
|
Br.set(u, {
|
|
5709
5709
|
resolve: (x) => {
|
|
@@ -5711,24 +5711,24 @@ function $x(r, d, t, e) {
|
|
|
5711
5711
|
},
|
|
5712
5712
|
reject: B
|
|
5713
5713
|
});
|
|
5714
|
-
const C =
|
|
5714
|
+
const C = $x(h);
|
|
5715
5715
|
p.postMessage({ id: u, designBitmap: r, layerData: C, canvasSize: e }, [
|
|
5716
5716
|
r
|
|
5717
5717
|
]);
|
|
5718
5718
|
});
|
|
5719
5719
|
}
|
|
5720
|
-
async function
|
|
5721
|
-
const m = await
|
|
5720
|
+
async function Px(r, h, t = 0, e, u, p) {
|
|
5721
|
+
const m = await ut(r, u, p);
|
|
5722
5722
|
if (!m || m.width === 0 || m.height === 0)
|
|
5723
5723
|
throw new Error("图片无效:尺寸为 0");
|
|
5724
|
-
return await
|
|
5724
|
+
return await Rx(m, h, t, e);
|
|
5725
5725
|
}
|
|
5726
|
-
function l0(r,
|
|
5726
|
+
function l0(r, h) {
|
|
5727
5727
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
5728
|
-
return new OffscreenCanvas(r,
|
|
5728
|
+
return new OffscreenCanvas(r, h);
|
|
5729
5729
|
if (typeof document < "u") {
|
|
5730
5730
|
const t = document.createElement("canvas");
|
|
5731
|
-
return t.width = r, t.height =
|
|
5731
|
+
return t.width = r, t.height = h, t;
|
|
5732
5732
|
} else
|
|
5733
5733
|
throw new Error("无法创建 canvas:不在 Worker 或主线程环境中");
|
|
5734
5734
|
}
|
|
@@ -5736,13 +5736,13 @@ function F0(r) {
|
|
|
5736
5736
|
return r.getContext("2d");
|
|
5737
5737
|
}
|
|
5738
5738
|
function ge(r) {
|
|
5739
|
-
const
|
|
5740
|
-
if (!
|
|
5739
|
+
const h = F0(r);
|
|
5740
|
+
if (!h)
|
|
5741
5741
|
throw new Error("无法创建 canvas context");
|
|
5742
|
-
return
|
|
5742
|
+
return h;
|
|
5743
5743
|
}
|
|
5744
|
-
async function
|
|
5745
|
-
const
|
|
5744
|
+
async function Wx(r) {
|
|
5745
|
+
const h = performance.now(), t = () => {
|
|
5746
5746
|
try {
|
|
5747
5747
|
if (globalThis.__DEBUG_RENDER__ === !0 || typeof localStorage < "u" && localStorage.getItem("DEBUG_RENDER") === "1") return !0;
|
|
5748
5748
|
} catch {
|
|
@@ -5810,32 +5810,32 @@ async function Px(r) {
|
|
|
5810
5810
|
hasChildren: !!c.children,
|
|
5811
5811
|
childrenCount: c.children?.length || 0
|
|
5812
5812
|
})));
|
|
5813
|
-
function
|
|
5813
|
+
function l(c, A) {
|
|
5814
5814
|
const _ = c.color || (c.name && ["粉", "白", "绿", "红", "蓝", "黄", "黑", "灰"].includes(c.name) ? c.name : A);
|
|
5815
5815
|
if (c.type === "Layer") {
|
|
5816
5816
|
if (c.imagePath) {
|
|
5817
|
-
const
|
|
5817
|
+
const z = m.find((P) => {
|
|
5818
5818
|
const L = P.sourceName || P.layerName;
|
|
5819
5819
|
return !L || !c.imagePath ? !1 : L === c.imagePath || L.endsWith(c.imagePath) || c.imagePath.endsWith(L);
|
|
5820
5820
|
});
|
|
5821
|
-
|
|
5822
|
-
url:
|
|
5821
|
+
z && (s[c.imagePath] = {
|
|
5822
|
+
url: z.url
|
|
5823
5823
|
});
|
|
5824
5824
|
}
|
|
5825
5825
|
if (c.name) {
|
|
5826
5826
|
if (_) {
|
|
5827
|
-
const
|
|
5827
|
+
const z = `${_}-${c.name}`, P = m.find((L) => {
|
|
5828
5828
|
const I = L.sourceName || L.layerName;
|
|
5829
5829
|
return I ? (I.split("/").pop() || I).replace(/\.(png|jpg|jpeg|gif|webp)$/i, "").startsWith(`${_}-${c.name}`) : !1;
|
|
5830
5830
|
});
|
|
5831
|
-
P && (s[
|
|
5831
|
+
P && (s[z] = {
|
|
5832
5832
|
url: P.url
|
|
5833
5833
|
});
|
|
5834
5834
|
}
|
|
5835
5835
|
if (c.imagePath && c.name) {
|
|
5836
|
-
const
|
|
5836
|
+
const z = c.imagePath.split("/").pop() || c.imagePath, P = m.find((L) => {
|
|
5837
5837
|
const I = L.sourceName || L.layerName;
|
|
5838
|
-
return I ? (I.split("/").pop() || I) ===
|
|
5838
|
+
return I ? (I.split("/").pop() || I) === z : !1;
|
|
5839
5839
|
});
|
|
5840
5840
|
P && (s[c.imagePath] = {
|
|
5841
5841
|
url: P.url
|
|
@@ -5844,36 +5844,36 @@ async function Px(r) {
|
|
|
5844
5844
|
}
|
|
5845
5845
|
}
|
|
5846
5846
|
if (c.children)
|
|
5847
|
-
for (const
|
|
5848
|
-
|
|
5847
|
+
for (const z of c.children)
|
|
5848
|
+
z && l(z, _);
|
|
5849
5849
|
}
|
|
5850
|
-
function
|
|
5850
|
+
function g(c, A) {
|
|
5851
5851
|
const _ = c.id ?? A;
|
|
5852
5852
|
if (c.type === "Group" && _)
|
|
5853
5853
|
if (e(`[renderByJson] processLayer 检查 Group: name="${c.name}", id=${_}, hasFabricScreenshot=${v.has(_)}`), v.has(_)) {
|
|
5854
|
-
const
|
|
5855
|
-
if (e(`[renderByJson] ✅ 找到匹配的 fabricScreenshot: Group id=${_}, name="${c.name}", url=${
|
|
5854
|
+
const z = v.get(_);
|
|
5855
|
+
if (e(`[renderByJson] ✅ 找到匹配的 fabricScreenshot: Group id=${_}, name="${c.name}", url=${z.substring(0, 50)}...`), c.children) {
|
|
5856
5856
|
e(`[renderByJson] Group "${c.name}" 有 ${c.children.length} 个子图层`);
|
|
5857
5857
|
for (const P of c.children)
|
|
5858
5858
|
if (P && P.isSmartObject === !0) {
|
|
5859
5859
|
const L = P?.name || "";
|
|
5860
|
-
e(`[renderByJson] 找到智能对象: name="${L}"`), L && !s[L] && (s[L] = {}), L ? (s[L].designImage =
|
|
5860
|
+
e(`[renderByJson] 找到智能对象: name="${L}"`), L && !s[L] && (s[L] = {}), L ? (s[L].designImage = z, e(`[renderByJson] ✅ 为智能对象 "${L}" 设置 designImage: ${z.substring(0, 50)}...`)) : u("[renderByJson] ⚠️ 智能对象没有 name,无法设置 designImage");
|
|
5861
5861
|
}
|
|
5862
5862
|
} else
|
|
5863
5863
|
u(`[renderByJson] ⚠️ Group id=${_} 没有 children`);
|
|
5864
5864
|
} else
|
|
5865
5865
|
e(`[renderByJson] ⚠️ Group id=${_}, name="${c.name}" 没有匹配的 fabricScreenshot`);
|
|
5866
5866
|
if (c.children)
|
|
5867
|
-
for (const
|
|
5868
|
-
|
|
5867
|
+
for (const z of c.children)
|
|
5868
|
+
z && g(z, _);
|
|
5869
5869
|
}
|
|
5870
5870
|
if (p.layerList)
|
|
5871
5871
|
for (const c of p.layerList)
|
|
5872
|
-
c &&
|
|
5872
|
+
c && l(c);
|
|
5873
5873
|
if (p.layerList)
|
|
5874
5874
|
for (const c of p.layerList)
|
|
5875
|
-
c &&
|
|
5876
|
-
const o =
|
|
5875
|
+
c && g(c);
|
|
5876
|
+
const o = Je([{
|
|
5877
5877
|
psdJson: p,
|
|
5878
5878
|
layerExtrasByName: s
|
|
5879
5879
|
}], {
|
|
@@ -5882,35 +5882,35 @@ async function Px(r) {
|
|
|
5882
5882
|
});
|
|
5883
5883
|
if (!o.models || o.models.length === 0)
|
|
5884
5884
|
throw new Error("无法解析 JSON 数据");
|
|
5885
|
-
const
|
|
5886
|
-
if (!
|
|
5885
|
+
const d = o.models[0];
|
|
5886
|
+
if (!d.psdPartData)
|
|
5887
5887
|
throw new Error("JSON 数据中没有 psdPartData");
|
|
5888
|
-
const b =
|
|
5888
|
+
const b = d.width, D = d.height, y = l0(b, D), k = ge(y), R = [], F = (c) => {
|
|
5889
5889
|
if (c.url && s[c.url])
|
|
5890
5890
|
return s[c.url];
|
|
5891
5891
|
if (c.url) {
|
|
5892
5892
|
const A = c.url.split("/").pop() || c.url;
|
|
5893
5893
|
if (s[A])
|
|
5894
5894
|
return s[A];
|
|
5895
|
-
const _ = m.find((
|
|
5896
|
-
const P =
|
|
5895
|
+
const _ = m.find((z) => {
|
|
5896
|
+
const P = z.sourceName || z.layerName;
|
|
5897
5897
|
return !P || !c.url ? !1 : (P.split("/").pop() || P) === A || P === c.url || P.endsWith(c.url) || c.url.endsWith(P);
|
|
5898
5898
|
});
|
|
5899
5899
|
if (_) {
|
|
5900
|
-
const
|
|
5901
|
-
if (
|
|
5902
|
-
return s[
|
|
5900
|
+
const z = _.sourceName || _.layerName;
|
|
5901
|
+
if (z)
|
|
5902
|
+
return s[z] || { url: _.url };
|
|
5903
5903
|
}
|
|
5904
5904
|
}
|
|
5905
5905
|
};
|
|
5906
|
-
for (let c = 0; c <
|
|
5907
|
-
const A =
|
|
5908
|
-
if (A.type ===
|
|
5906
|
+
for (let c = 0; c < d.psdPartData.length; c++) {
|
|
5907
|
+
const A = d.psdPartData[c], _ = F(A);
|
|
5908
|
+
if (A.type === D0.Layer) {
|
|
5909
5909
|
if (!_ || !_.url) {
|
|
5910
5910
|
u(`图层 "${A.name}" 没有匹配的 material,跳过`);
|
|
5911
5911
|
continue;
|
|
5912
5912
|
}
|
|
5913
|
-
const
|
|
5913
|
+
const z = _.url, P = a(z);
|
|
5914
5914
|
if (!P) {
|
|
5915
5915
|
u(`图层 "${A.name}" 没有有效的 url,跳过`);
|
|
5916
5916
|
continue;
|
|
@@ -5919,13 +5919,13 @@ async function Px(r) {
|
|
|
5919
5919
|
index: c,
|
|
5920
5920
|
type: "layer",
|
|
5921
5921
|
partData: A,
|
|
5922
|
-
promise:
|
|
5922
|
+
promise: dt(P, E, n).catch((L) => null)
|
|
5923
5923
|
});
|
|
5924
|
-
} else if (A.type ===
|
|
5924
|
+
} else if (A.type === D0.Group) {
|
|
5925
5925
|
if (!A.smartObjects || A.smartObjects.length === 0)
|
|
5926
5926
|
continue;
|
|
5927
|
-
for (let
|
|
5928
|
-
const P = A.smartObjects[
|
|
5927
|
+
for (let z = 0; z < A.smartObjects.length; z++) {
|
|
5928
|
+
const P = A.smartObjects[z];
|
|
5929
5929
|
if (!P || !P.name)
|
|
5930
5930
|
continue;
|
|
5931
5931
|
let L = s[P.name] ?? _;
|
|
@@ -5933,8 +5933,8 @@ async function Px(r) {
|
|
|
5933
5933
|
const K = P.imagePath.split("/").pop() || P.imagePath;
|
|
5934
5934
|
if (L = s[K], !L) {
|
|
5935
5935
|
const G = m.find((Y) => {
|
|
5936
|
-
const
|
|
5937
|
-
return !
|
|
5936
|
+
const r0 = Y.sourceName || Y.layerName;
|
|
5937
|
+
return !r0 || !P.imagePath ? !1 : (r0.split("/").pop() || r0) === K || r0 === P.imagePath || r0.endsWith(P.imagePath) || P.imagePath.endsWith(r0);
|
|
5938
5938
|
});
|
|
5939
5939
|
G && (L = { url: G.url });
|
|
5940
5940
|
}
|
|
@@ -5951,14 +5951,14 @@ async function Px(r) {
|
|
|
5951
5951
|
continue;
|
|
5952
5952
|
I = G;
|
|
5953
5953
|
}
|
|
5954
|
-
const Z = (A.partId ?? A.id) * 100 +
|
|
5954
|
+
const Z = (A.partId ?? A.id) * 100 + z, V = et(rt(P)), o0 = { width: b, height: D };
|
|
5955
5955
|
R.push({
|
|
5956
|
-
index: c +
|
|
5956
|
+
index: c + z * 0.01,
|
|
5957
5957
|
type: "group",
|
|
5958
5958
|
partData: A,
|
|
5959
5959
|
smartObject: P,
|
|
5960
|
-
maskData:
|
|
5961
|
-
promise:
|
|
5960
|
+
maskData: V,
|
|
5961
|
+
promise: Px(
|
|
5962
5962
|
I,
|
|
5963
5963
|
P,
|
|
5964
5964
|
Z,
|
|
@@ -5974,74 +5974,74 @@ async function Px(r) {
|
|
|
5974
5974
|
task: c,
|
|
5975
5975
|
imageBitmap: w[A]
|
|
5976
5976
|
})).sort((c, A) => {
|
|
5977
|
-
const _ = c.task.type === "group" && c.task.smartObject?.layerOrder !== void 0 ? c.task.smartObject.layerOrder : c.task.partData.layerOrder ?? c.task.index,
|
|
5978
|
-
return _ -
|
|
5977
|
+
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;
|
|
5978
|
+
return _ - z;
|
|
5979
5979
|
});
|
|
5980
|
-
let $ = l0(b,
|
|
5980
|
+
let $ = l0(b, D), W = F0($), O = !1, q = "normal";
|
|
5981
5981
|
for (let c = 0; c < H.length; c++) {
|
|
5982
5982
|
const { task: A, imageBitmap: _ } = H[c];
|
|
5983
5983
|
if (!_) {
|
|
5984
5984
|
u(`[renderByJson] 图层 "${A.partData.name}" 没有 imageBitmap,跳过`);
|
|
5985
5985
|
continue;
|
|
5986
5986
|
}
|
|
5987
|
-
const { partData:
|
|
5987
|
+
const { partData: z } = A, P = z.bounds;
|
|
5988
5988
|
let L;
|
|
5989
|
-
A.type === "group" && A.smartObject ? L = A.smartObject.opacity ??
|
|
5989
|
+
A.type === "group" && A.smartObject ? L = A.smartObject.opacity ?? z.opacity : L = z.opacity, (typeof L != "number" || isNaN(L)) && (L = 1);
|
|
5990
5990
|
let I;
|
|
5991
|
-
A.type === "group" && A.smartObject ? I = A.smartObject.clipping ??
|
|
5991
|
+
A.type === "group" && A.smartObject ? I = A.smartObject.clipping ?? z.clipping === !0 : I = z.clipping === !0;
|
|
5992
5992
|
const Z = H[c + 1];
|
|
5993
|
-
let
|
|
5993
|
+
let V = !1;
|
|
5994
5994
|
if (Z) {
|
|
5995
5995
|
const K = Z.task.partData;
|
|
5996
|
-
Z.task.type === "group" && Z.task.smartObject ?
|
|
5996
|
+
Z.task.type === "group" && Z.task.smartObject ? V = Z.task.smartObject.clipping ?? K.clipping === !0 : V = K.clipping === !0;
|
|
5997
5997
|
}
|
|
5998
|
-
const o0 = A.type === "group" && A.smartObject && A.smartObject.name ? A.smartObject.name :
|
|
5998
|
+
const o0 = A.type === "group" && A.smartObject && A.smartObject.name ? A.smartObject.name : z?.name || "未命名图层";
|
|
5999
5999
|
if (e(`[renderByJson] 绘制图层 "${o0}"`, {
|
|
6000
6000
|
type: A.type,
|
|
6001
6001
|
bitmapSize: { width: _.width, height: _.height },
|
|
6002
6002
|
bounds: P,
|
|
6003
6003
|
hasMask: !!A.maskData,
|
|
6004
|
-
blendMode:
|
|
6004
|
+
blendMode: z.blendMode,
|
|
6005
6005
|
opacity: L,
|
|
6006
6006
|
clipping: I
|
|
6007
|
-
}), !I &&
|
|
6008
|
-
if (O = !0, q =
|
|
6009
|
-
if (
|
|
6007
|
+
}), !I && V) {
|
|
6008
|
+
if (O = !0, q = z.blendMode || "normal", W) {
|
|
6009
|
+
if (W.clearRect(0, 0, b, D), W.globalCompositeOperation = "source-over", W.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6010
6010
|
if (A.maskData) {
|
|
6011
|
-
const K = l0(b,
|
|
6012
|
-
G && (G.drawImage(_, 0, 0), lr(G, A.maskData),
|
|
6011
|
+
const K = l0(b, D), G = F0(K);
|
|
6012
|
+
G && (G.drawImage(_, 0, 0), lr(G, A.maskData), W.drawImage(K, 0, 0));
|
|
6013
6013
|
} else
|
|
6014
|
-
|
|
6015
|
-
else A.type === "layer" && (P ?
|
|
6014
|
+
W.drawImage(_, 0, 0);
|
|
6015
|
+
else A.type === "layer" && (P ? W.drawImage(
|
|
6016
6016
|
_,
|
|
6017
6017
|
P.left,
|
|
6018
6018
|
P.top,
|
|
6019
6019
|
P.width,
|
|
6020
6020
|
P.height
|
|
6021
|
-
) :
|
|
6022
|
-
|
|
6021
|
+
) : W.drawImage(_, 0, 0));
|
|
6022
|
+
W.globalAlpha = 1;
|
|
6023
6023
|
}
|
|
6024
6024
|
} else if (I) {
|
|
6025
|
-
if (
|
|
6026
|
-
if (
|
|
6025
|
+
if (W) {
|
|
6026
|
+
if (W.globalCompositeOperation = "source-atop", W.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6027
6027
|
if (A.maskData) {
|
|
6028
|
-
const K = l0(b,
|
|
6029
|
-
G && (G.drawImage(_, 0, 0), lr(G, A.maskData),
|
|
6028
|
+
const K = l0(b, D), G = F0(K);
|
|
6029
|
+
G && (G.drawImage(_, 0, 0), lr(G, A.maskData), W.drawImage(K, 0, 0));
|
|
6030
6030
|
} else
|
|
6031
|
-
|
|
6032
|
-
else A.type === "layer" && (P ?
|
|
6031
|
+
W.drawImage(_, 0, 0);
|
|
6032
|
+
else A.type === "layer" && (P ? W.drawImage(
|
|
6033
6033
|
_,
|
|
6034
6034
|
P.left,
|
|
6035
6035
|
P.top,
|
|
6036
6036
|
P.width,
|
|
6037
6037
|
P.height
|
|
6038
|
-
) :
|
|
6039
|
-
|
|
6038
|
+
) : W.drawImage(_, 0, 0));
|
|
6039
|
+
W.globalAlpha = 1, W.globalCompositeOperation = "source-over";
|
|
6040
6040
|
}
|
|
6041
6041
|
} else {
|
|
6042
|
-
if (k.globalCompositeOperation =
|
|
6042
|
+
if (k.globalCompositeOperation = Lr(z.blendMode), k.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6043
6043
|
if (A.maskData) {
|
|
6044
|
-
const K = l0(b,
|
|
6044
|
+
const K = l0(b, D), G = F0(K);
|
|
6045
6045
|
G && (G.drawImage(_, 0, 0), lr(G, A.maskData), k.drawImage(K, 0, 0));
|
|
6046
6046
|
} else
|
|
6047
6047
|
k.drawImage(_, 0, 0);
|
|
@@ -6054,33 +6054,33 @@ async function Px(r) {
|
|
|
6054
6054
|
) : k.drawImage(_, 0, 0));
|
|
6055
6055
|
k.globalAlpha = 1, k.globalCompositeOperation = "source-over";
|
|
6056
6056
|
}
|
|
6057
|
-
O && !
|
|
6057
|
+
O && !V && (k.globalCompositeOperation = Lr(q), k.drawImage($, 0, 0), k.globalCompositeOperation = "source-over", O = !1);
|
|
6058
6058
|
}
|
|
6059
|
-
$ = null,
|
|
6060
|
-
let U = y, T = b, N =
|
|
6059
|
+
$ = null, W = null;
|
|
6060
|
+
let U = y, T = b, N = D;
|
|
6061
6061
|
if (C !== void 0 || x !== void 0) {
|
|
6062
6062
|
if (C !== void 0 && x !== void 0)
|
|
6063
6063
|
T = C, N = x;
|
|
6064
6064
|
else if (C !== void 0) {
|
|
6065
6065
|
const A = C / b;
|
|
6066
|
-
T = C, N = Math.round(
|
|
6066
|
+
T = C, N = Math.round(D * A);
|
|
6067
6067
|
} else if (x !== void 0) {
|
|
6068
|
-
const A = x /
|
|
6068
|
+
const A = x / D;
|
|
6069
6069
|
T = Math.round(b * A), N = x;
|
|
6070
6070
|
}
|
|
6071
6071
|
U = l0(T, N);
|
|
6072
6072
|
const c = ge(U);
|
|
6073
|
-
c.imageSmoothingEnabled = !0, c.imageSmoothingQuality = "high", c.drawImage(y, 0, 0, b,
|
|
6073
|
+
c.imageSmoothingEnabled = !0, c.imageSmoothingQuality = "high", c.drawImage(y, 0, 0, b, D, 0, 0, T, N), e(`[renderByJson] 已缩放结果: ${b}x${D} -> ${T}x${N}`);
|
|
6074
6074
|
}
|
|
6075
|
-
const S = performance.now() -
|
|
6075
|
+
const S = performance.now() - h;
|
|
6076
6076
|
return e(`[renderByJson] 绘制完成,总渲染时间: ${Math.round(S)}ms`), {
|
|
6077
6077
|
canvas: U,
|
|
6078
6078
|
width: T,
|
|
6079
6079
|
height: N
|
|
6080
6080
|
};
|
|
6081
6081
|
}
|
|
6082
|
-
const
|
|
6083
|
-
const t = (await
|
|
6082
|
+
const We = async (r) => {
|
|
6083
|
+
const t = (await Wx(r)).canvas;
|
|
6084
6084
|
return t ? createImageBitmap(t) : null;
|
|
6085
6085
|
};
|
|
6086
6086
|
let i0 = null, vr = !1;
|
|
@@ -6092,17 +6092,17 @@ const ze = async () => {
|
|
|
6092
6092
|
const r = i0;
|
|
6093
6093
|
i0 = null;
|
|
6094
6094
|
try {
|
|
6095
|
-
const
|
|
6095
|
+
const h = await We(r.renderData);
|
|
6096
6096
|
if (i0) {
|
|
6097
|
-
|
|
6097
|
+
h?.close?.();
|
|
6098
6098
|
continue;
|
|
6099
6099
|
}
|
|
6100
|
-
self.postMessage({ id: r.id, bitmap:
|
|
6101
|
-
} catch (
|
|
6100
|
+
self.postMessage({ id: r.id, bitmap: h }, h ? [h] : []);
|
|
6101
|
+
} catch (h) {
|
|
6102
6102
|
if (i0) continue;
|
|
6103
6103
|
self.postMessage({
|
|
6104
6104
|
id: r.id,
|
|
6105
|
-
error:
|
|
6105
|
+
error: h instanceof Error ? h.message : String(h)
|
|
6106
6106
|
});
|
|
6107
6107
|
}
|
|
6108
6108
|
}
|
|
@@ -6112,10 +6112,10 @@ const ze = async () => {
|
|
|
6112
6112
|
}
|
|
6113
6113
|
};
|
|
6114
6114
|
self.onmessage = async (r) => {
|
|
6115
|
-
const
|
|
6116
|
-
if (
|
|
6117
|
-
const e =
|
|
6118
|
-
|
|
6115
|
+
const h = r.data;
|
|
6116
|
+
if (h && typeof h == "object" && "type" in h && h.type === "SET_LICENSE") {
|
|
6117
|
+
const e = h;
|
|
6118
|
+
_x({
|
|
6119
6119
|
token: e.licenseToken,
|
|
6120
6120
|
apiUrl: e.licenseApiUrl,
|
|
6121
6121
|
deviceId: e.deviceId,
|
|
@@ -6123,13 +6123,13 @@ self.onmessage = async (r) => {
|
|
|
6123
6123
|
});
|
|
6124
6124
|
return;
|
|
6125
6125
|
}
|
|
6126
|
-
const t =
|
|
6126
|
+
const t = h;
|
|
6127
6127
|
if (t.coalesce === !0) {
|
|
6128
6128
|
i0 = { id: t.id, renderData: t.renderData }, ze();
|
|
6129
6129
|
return;
|
|
6130
6130
|
}
|
|
6131
6131
|
try {
|
|
6132
|
-
const e = await
|
|
6132
|
+
const e = await We(t.renderData);
|
|
6133
6133
|
self.postMessage({ id: t.id, bitmap: e }, e ? [e] : []);
|
|
6134
6134
|
} catch (e) {
|
|
6135
6135
|
self.postMessage({
|