@jieyin/editor-sdk-test 1.1.153 → 1.1.155
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 +6673 -6736
- package/dist/renderWorker.js +728 -695
- package/dist/style.css +1 -1
- 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 Ye(r) {
|
|
3
|
+
let l = r;
|
|
4
4
|
return () => {
|
|
5
|
-
const t =
|
|
6
|
-
return
|
|
5
|
+
const t = l;
|
|
6
|
+
return l += 1, t;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Qe(r, l) {
|
|
10
10
|
return {
|
|
11
11
|
name: r.name || "",
|
|
12
12
|
type: r.type || "Layer",
|
|
@@ -23,16 +23,16 @@ function Ke(r, h) {
|
|
|
23
23
|
quiltSliceY: r.quiltSliceY,
|
|
24
24
|
layerOrder: r.layerOrder,
|
|
25
25
|
imagePath: r.imagePath,
|
|
26
|
-
vectorMask: r.vectorMask ??
|
|
26
|
+
vectorMask: r.vectorMask ?? l,
|
|
27
27
|
filterList: r.filterList,
|
|
28
28
|
opacity: r.opacity,
|
|
29
29
|
clipping: r.clipping
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
let u = r.name || "", p =
|
|
32
|
+
function Ve(r, l, t, e) {
|
|
33
|
+
let u = r.name || "", p = l[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 = l[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 Xe(r, h, 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) => Qe(x, r.vectorMask)
|
|
49
49
|
),
|
|
50
50
|
opacity: r.opacity,
|
|
51
51
|
clipping: r.clipping,
|
|
@@ -57,17 +57,17 @@ function Xe(r, h, 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, l) {
|
|
68
|
+
const t = new Map(l.parts.map((u) => [u.name, u.id])), e = Ye(l.defaultIdStart ?? 1);
|
|
69
69
|
return {
|
|
70
|
-
parts:
|
|
70
|
+
parts: l.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,25 +76,25 @@ function Ye(r, h) {
|
|
|
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 h = [], 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 ? h.push(o) : g.push(o);
|
|
85
|
+
if (g.length > 0) {
|
|
86
|
+
const o = n(g);
|
|
87
87
|
f.push(...o);
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
h.length > 0 && f.push({
|
|
90
90
|
...v,
|
|
91
|
-
children:
|
|
91
|
+
children: h
|
|
92
92
|
});
|
|
93
93
|
} else
|
|
94
94
|
f.push(v);
|
|
95
95
|
return f;
|
|
96
96
|
}, a = n(B).map(
|
|
97
|
-
(s) =>
|
|
97
|
+
(s) => Ve(s, p, t, e)
|
|
98
98
|
);
|
|
99
99
|
return {
|
|
100
100
|
width: C,
|
|
@@ -104,32 +104,32 @@ function Ye(r, h) {
|
|
|
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((l) => ({
|
|
114
|
+
open: !!l.open,
|
|
115
|
+
knots: l.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((l) => ({
|
|
123
|
+
x: l.x,
|
|
124
|
+
y: l.y,
|
|
125
|
+
type: l.type
|
|
126
126
|
}))
|
|
127
127
|
} : null : null;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
if (
|
|
131
|
-
if (r.globalCompositeOperation = "destination-in", r.beginPath(),
|
|
132
|
-
|
|
129
|
+
function hr(r, l) {
|
|
130
|
+
if (l) {
|
|
131
|
+
if (r.globalCompositeOperation = "destination-in", r.beginPath(), l.type === "bezier" && Array.isArray(l.paths))
|
|
132
|
+
l.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 dr(r, h) {
|
|
|
146
146
|
}
|
|
147
147
|
t.open || r.closePath();
|
|
148
148
|
});
|
|
149
|
-
else if (
|
|
150
|
-
const t =
|
|
149
|
+
else if (l.type === "simple" && Array.isArray(l.points)) {
|
|
150
|
+
const t = l.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);
|
|
@@ -156,15 +156,15 @@ function dr(r, h) {
|
|
|
156
156
|
r.fillStyle = "#000", r.fill(), r.globalCompositeOperation = "source-over";
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
class
|
|
159
|
+
class v0 {
|
|
160
160
|
static hasStorage = typeof window < "u" && typeof localStorage < "u";
|
|
161
161
|
/**
|
|
162
162
|
* 获取存储项
|
|
163
163
|
*/
|
|
164
|
-
static getItem(
|
|
164
|
+
static getItem(l) {
|
|
165
165
|
if (!this.hasStorage) return null;
|
|
166
166
|
try {
|
|
167
|
-
return localStorage.getItem(
|
|
167
|
+
return localStorage.getItem(l);
|
|
168
168
|
} catch {
|
|
169
169
|
return null;
|
|
170
170
|
}
|
|
@@ -172,10 +172,10 @@ class h0 {
|
|
|
172
172
|
/**
|
|
173
173
|
* 设置存储项
|
|
174
174
|
*/
|
|
175
|
-
static setItem(
|
|
175
|
+
static setItem(l, t) {
|
|
176
176
|
if (!this.hasStorage) return !1;
|
|
177
177
|
try {
|
|
178
|
-
return localStorage.setItem(
|
|
178
|
+
return localStorage.setItem(l, t), !0;
|
|
179
179
|
} catch {
|
|
180
180
|
return !1;
|
|
181
181
|
}
|
|
@@ -183,10 +183,10 @@ class h0 {
|
|
|
183
183
|
/**
|
|
184
184
|
* 移除存储项
|
|
185
185
|
*/
|
|
186
|
-
static removeItem(
|
|
186
|
+
static removeItem(l) {
|
|
187
187
|
if (!this.hasStorage) return !1;
|
|
188
188
|
try {
|
|
189
|
-
return localStorage.removeItem(
|
|
189
|
+
return localStorage.removeItem(l), !0;
|
|
190
190
|
} catch {
|
|
191
191
|
return !1;
|
|
192
192
|
}
|
|
@@ -209,7 +209,7 @@ class h0 {
|
|
|
209
209
|
return this.hasStorage;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
class
|
|
212
|
+
class fr {
|
|
213
213
|
/**
|
|
214
214
|
* 是否在浏览器环境
|
|
215
215
|
*/
|
|
@@ -247,14 +247,14 @@ class cr {
|
|
|
247
247
|
return this.isBrowser() ? window.location.origin : "http://localhost";
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
class
|
|
250
|
+
class h0 {
|
|
251
251
|
/**
|
|
252
252
|
* 安全地解析 URL
|
|
253
253
|
*/
|
|
254
|
-
static parse(
|
|
254
|
+
static parse(l) {
|
|
255
255
|
try {
|
|
256
|
-
const t =
|
|
257
|
-
return new URL(
|
|
256
|
+
const t = fr.getOrigin();
|
|
257
|
+
return new URL(l, t);
|
|
258
258
|
} catch {
|
|
259
259
|
return null;
|
|
260
260
|
}
|
|
@@ -262,169 +262,170 @@ class l0 {
|
|
|
262
262
|
/**
|
|
263
263
|
* 添加查询参数
|
|
264
264
|
*/
|
|
265
|
-
static addParam(
|
|
266
|
-
const u = this.parse(
|
|
267
|
-
return !u || u.searchParams.has(t) ?
|
|
265
|
+
static addParam(l, t, e) {
|
|
266
|
+
const u = this.parse(l);
|
|
267
|
+
return !u || u.searchParams.has(t) ? l : (u.searchParams.set(t, e), this.formatUrl(l, 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(l, t) {
|
|
273
|
+
const e = this.parse(l);
|
|
274
|
+
return !e || !e.searchParams.has(t) ? l : (e.searchParams.delete(t), this.formatUrl(l, e));
|
|
275
275
|
}
|
|
276
276
|
/**
|
|
277
277
|
* 检查是否有指定参数
|
|
278
278
|
*/
|
|
279
|
-
static hasParam(
|
|
280
|
-
return this.parse(
|
|
279
|
+
static hasParam(l, t) {
|
|
280
|
+
return this.parse(l)?.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(l, t) {
|
|
286
|
+
const e = /^(https?:)?\/\//i.test(l), u = l.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(l) {
|
|
293
|
+
return l?.startsWith("data:") ?? !1;
|
|
294
294
|
}
|
|
295
295
|
/**
|
|
296
296
|
* 检查是否为 Blob URL
|
|
297
297
|
*/
|
|
298
|
-
static isBlobUrl(
|
|
299
|
-
return
|
|
298
|
+
static isBlobUrl(l) {
|
|
299
|
+
return l?.startsWith("blob:") ?? !1;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
|
|
303
|
-
(
|
|
304
|
-
|
|
302
|
+
function ur(r, l) {
|
|
303
|
+
return r = r - (2 * 2854 + -3695 + -1732), cr()[r];
|
|
304
|
+
}
|
|
305
|
+
const t0 = ur;
|
|
306
|
+
(function(r, l) {
|
|
307
|
+
const t = ur, e = r();
|
|
305
308
|
for (; ; )
|
|
306
309
|
try {
|
|
307
|
-
if (parseInt(t(
|
|
310
|
+
if (parseInt(t(286)) / 1 * (parseInt(t(288)) / 2) + parseInt(t(303)) / 3 + -parseInt(t(284)) / 4 + -parseInt(t(283)) / 5 * (-parseInt(t(289)) / 6) + -parseInt(t(299)) / 7 + -parseInt(t(306)) / 8 * (-parseInt(t(301)) / 9) + parseInt(t(300)) / 10 * (parseInt(t(298)) / 11) === l) break;
|
|
308
311
|
e.push(e.shift());
|
|
309
312
|
} catch {
|
|
310
313
|
e.push(e.shift());
|
|
311
314
|
}
|
|
312
|
-
})(
|
|
313
|
-
const
|
|
315
|
+
})(cr, -89302 + -1 * -238642);
|
|
316
|
+
const A0 = /* @__PURE__ */ (function() {
|
|
314
317
|
let r = !0;
|
|
315
|
-
return function(
|
|
318
|
+
return function(l, t) {
|
|
316
319
|
const e = r ? function() {
|
|
320
|
+
const u = ur;
|
|
317
321
|
if (t) {
|
|
318
|
-
const
|
|
319
|
-
return t = null,
|
|
322
|
+
const p = t[u(290)](l, arguments);
|
|
323
|
+
return t = null, p;
|
|
320
324
|
}
|
|
321
325
|
} : function() {
|
|
322
326
|
};
|
|
323
327
|
return r = !1, e;
|
|
324
328
|
};
|
|
325
|
-
})(),
|
|
326
|
-
const r =
|
|
327
|
-
let
|
|
329
|
+
})(), tt = A0(void 0, function() {
|
|
330
|
+
const r = ur;
|
|
331
|
+
let l;
|
|
328
332
|
try {
|
|
329
|
-
|
|
333
|
+
l = Function("retur" + r(295) + r(310) + "n() " + (r(314) + 'nstructor("return this")( )') + ");")();
|
|
330
334
|
} catch {
|
|
331
|
-
|
|
335
|
+
l = window;
|
|
332
336
|
}
|
|
333
|
-
const t =
|
|
334
|
-
for (let u =
|
|
335
|
-
const p =
|
|
336
|
-
p
|
|
337
|
+
const t = l.console = l[r(309) + "le"] || {}, e = ["log", "warn", "info", "error", "exception", "table", "trace"];
|
|
338
|
+
for (let u = 561 + -5351 * 1 + -479 * -10; u < e.length; u++) {
|
|
339
|
+
const p = A0.constructor.prototype.bind(A0), m = e[u], B = t[m] || p;
|
|
340
|
+
p[r(293) + "to__"] = A0.bind(A0), p["toStr" + r(312)] = B[r(292) + "ing"].bind(B), t[m] = p;
|
|
337
341
|
}
|
|
338
342
|
});
|
|
339
|
-
|
|
340
|
-
const
|
|
341
|
-
function
|
|
342
|
-
return
|
|
343
|
+
tt();
|
|
344
|
+
const Er = t0(317) + "token", Ar = "file_token_expire_time", xt = (4304 * -1 + 9889 + -5525) * (-773 * -2 + -3368 + 2822);
|
|
345
|
+
function Br() {
|
|
346
|
+
return v0[t0(285) + "em"](Er);
|
|
343
347
|
}
|
|
344
|
-
function
|
|
345
|
-
const
|
|
346
|
-
if (!
|
|
347
|
-
const e =
|
|
348
|
+
function nt(r = xt) {
|
|
349
|
+
const l = t0;
|
|
350
|
+
if (!Br()) return !0;
|
|
351
|
+
const e = v0[l(285) + "em"](Ar);
|
|
348
352
|
if (!e) return !1;
|
|
349
353
|
const u = Number(e);
|
|
350
354
|
return Date.now() + r > u;
|
|
351
355
|
}
|
|
352
|
-
function
|
|
353
|
-
const
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
}
|
|
358
|
-
function Cr(r, h) {
|
|
359
|
-
return r = r - (-2459 + -4499 * 2 + 11850), sr()[r];
|
|
360
|
-
}
|
|
361
|
-
function et(r, h) {
|
|
362
|
-
if (h0.setItem(pr, r), typeof h == "number" && h > 296 + -11 * -437 + -5103) {
|
|
363
|
-
const t = Date.now() + h * 1e3;
|
|
364
|
-
h0.setItem(Br, String(t));
|
|
356
|
+
function at(r, l) {
|
|
357
|
+
const t = t0;
|
|
358
|
+
if (v0.setItem(Er, r), typeof l == "number" && l > 0) {
|
|
359
|
+
const e = Date[t(302)]() + l * 1e3;
|
|
360
|
+
v0.setItem(Ar, String(e));
|
|
365
361
|
}
|
|
366
362
|
}
|
|
367
|
-
function
|
|
368
|
-
|
|
363
|
+
function ot() {
|
|
364
|
+
v0.removeItem(Er), v0.removeItem(Ar);
|
|
365
|
+
}
|
|
366
|
+
async function Wr(r) {
|
|
367
|
+
const l = t0, t = await r(), e = t?.data?.data;
|
|
368
|
+
return t?.[l(311)]?.[l(307)] === 3 * -3046 + -2 * -4363 + 612 && e?.["file_token"] ? (at(e[l(317) + "token"], e["expir" + l(291)]), e.file_token) : null;
|
|
369
369
|
}
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
370
|
+
let it = null;
|
|
371
|
+
function cr() {
|
|
372
|
+
const r = ["now", "185694XSRTZa", "okenR", "FileT", "8EQzdVh", "code", "oken=", "conso", "nctio", "data", "ing", "inclu", "{}.co", "fetch", "wser", "file_", "pathn", "/file", "des", "412840LIJaKq", "894788DMYwhu", "getIt", "84673juKjlt", "fileT", "2InPXLw", "12ytsyZL", "apply", "es_in", "toStr", "__pro", "parse", "n (fu", "bUrl", "oken", "11ATrtrX", "924819rjQnyr", "1629800Ofepmw", "274203dljRDV"];
|
|
373
|
+
return cr = function() {
|
|
374
|
+
return r;
|
|
375
|
+
}, cr();
|
|
373
376
|
}
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
return cr.isBrowser() ? xt : null;
|
|
377
|
+
function Ir() {
|
|
378
|
+
return fr["isBro" + t0(316)]() ? it : null;
|
|
377
379
|
}
|
|
378
|
-
async function
|
|
380
|
+
async function be() {
|
|
379
381
|
const r = t0;
|
|
380
|
-
if (!
|
|
381
|
-
const
|
|
382
|
-
if (
|
|
382
|
+
if (!fr.isBrowser()) return Br();
|
|
383
|
+
const l = Br();
|
|
384
|
+
if (l && !nt()) return l;
|
|
383
385
|
try {
|
|
384
|
-
const t = await
|
|
385
|
-
if (
|
|
386
|
-
const e = await
|
|
386
|
+
const t = await Ir();
|
|
387
|
+
if (l && t?.[r(315) + "FileT" + r(304) + "efresh"]) {
|
|
388
|
+
const e = await Wr(t["fetch" + r(305) + r(304) + "efresh"]);
|
|
387
389
|
if (e) return e;
|
|
388
390
|
}
|
|
389
391
|
} catch {
|
|
390
392
|
}
|
|
391
393
|
try {
|
|
392
|
-
const t =
|
|
393
|
-
return t?.["
|
|
394
|
+
const t = Ir();
|
|
395
|
+
return t?.["fetchFileToken"] ? await Wr(t.fetchFileToken) : null;
|
|
394
396
|
} catch {
|
|
395
397
|
return null;
|
|
396
398
|
}
|
|
397
399
|
}
|
|
398
|
-
function
|
|
399
|
-
const
|
|
400
|
-
if (!r ||
|
|
401
|
-
const t =
|
|
402
|
-
return t ? t
|
|
400
|
+
function me(r) {
|
|
401
|
+
const l = t0;
|
|
402
|
+
if (!r || h0.isDataUrl(r) || h0["isBlo" + l(296)](r)) return !1;
|
|
403
|
+
const t = h0[l(294)](r);
|
|
404
|
+
return t ? t[l(318) + "ame"].includes(l(281) + "s/") && !h0.hasParam(r, "fileT" + l(297)) : r[l(313) + l(282)]("/files/") && !r.includes(l(287) + l(308));
|
|
403
405
|
}
|
|
404
|
-
function
|
|
405
|
-
|
|
406
|
-
return !h || !De(r) ? r : l0["addPa" + t(393)](r, "fileToken", h);
|
|
406
|
+
function _e(r, l) {
|
|
407
|
+
return !l || !me(r) ? r : h0.addParam(r, "fileToken", l);
|
|
407
408
|
}
|
|
408
|
-
function
|
|
409
|
-
|
|
409
|
+
function st(r) {
|
|
410
|
+
const l = t0;
|
|
411
|
+
return h0.removeParam(r, "fileT" + l(297));
|
|
410
412
|
}
|
|
411
|
-
async function
|
|
412
|
-
if (!
|
|
413
|
-
const
|
|
414
|
-
return
|
|
413
|
+
async function ct(r) {
|
|
414
|
+
if (!me(r)) return r;
|
|
415
|
+
const l = await be();
|
|
416
|
+
return _e(r, l);
|
|
415
417
|
}
|
|
416
|
-
async function
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
return fetch(B, h);
|
|
418
|
+
async function ye(r, l) {
|
|
419
|
+
if (!fr.isBrowser()) return fetch(r, l);
|
|
420
|
+
const t = st(r), e = await ct(t), u = await fetch(e, l);
|
|
421
|
+
if (u.status !== 401) return u;
|
|
422
|
+
ot();
|
|
423
|
+
const p = await be(), m = _e(t, p);
|
|
424
|
+
return fetch(m, l);
|
|
424
425
|
}
|
|
425
|
-
const
|
|
426
|
+
const we = (r, l) => {
|
|
426
427
|
if (!r) return r;
|
|
427
|
-
const t = (
|
|
428
|
+
const t = (l || "").replace(/\/$/, "");
|
|
428
429
|
if (t && r.startsWith(t))
|
|
429
430
|
return r;
|
|
430
431
|
if (typeof window < "u") {
|
|
@@ -447,22 +448,22 @@ const _e = (r, h) => {
|
|
|
447
448
|
if (typeof window < "u" && window.location.hostname !== "localhost") return r;
|
|
448
449
|
const e = r.match(/^https?:\/\/([^/]+\.oss[^/]*\.aliyuncs\.com)(.*)$/);
|
|
449
450
|
return e ? `/oss${e[2]}` : r;
|
|
450
|
-
},
|
|
451
|
+
}, ft = (r, l) => {
|
|
451
452
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
452
|
-
return new OffscreenCanvas(r,
|
|
453
|
+
return new OffscreenCanvas(r, l);
|
|
453
454
|
const t = document.createElement("canvas");
|
|
454
|
-
return t.width = r, t.height =
|
|
455
|
-
},
|
|
456
|
-
if (!
|
|
455
|
+
return t.width = r, t.height = l, t;
|
|
456
|
+
}, _0 = async (r, l) => {
|
|
457
|
+
if (!l || l <= 0) return r;
|
|
457
458
|
const t = Math.max(r.width, r.height);
|
|
458
|
-
if (t <=
|
|
459
|
-
const e =
|
|
459
|
+
if (t <= l) return r;
|
|
460
|
+
const e = l / 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");
|
|
460
461
|
return B ? (B.drawImage(r, 0, 0, u, p), r.close?.(), await createImageBitmap(m)) : r;
|
|
461
462
|
};
|
|
462
|
-
async function
|
|
463
|
+
async function ut(r, l, t) {
|
|
463
464
|
if (typeof r == "string")
|
|
464
465
|
try {
|
|
465
|
-
const e =
|
|
466
|
+
const e = we(r, t), u = await ye(e);
|
|
466
467
|
if (!u.ok) {
|
|
467
468
|
const m = u.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${u.status} ${u.statusText}): ${r}`;
|
|
468
469
|
throw new Error(m);
|
|
@@ -472,7 +473,7 @@ async function it(r, h, t) {
|
|
|
472
473
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
473
474
|
try {
|
|
474
475
|
const m = await createImageBitmap(p);
|
|
475
|
-
return await
|
|
476
|
+
return await _0(m, l);
|
|
476
477
|
} catch (m) {
|
|
477
478
|
throw new Error(`图片解码失败: URL=${r}, 错误=${m instanceof Error ? m.message : m}`);
|
|
478
479
|
}
|
|
@@ -486,7 +487,7 @@ async function it(r, h, t) {
|
|
|
486
487
|
throw new Error(`图片尺寸无效: src=${r.src}, width=${r.naturalWidth}, height=${r.naturalHeight}`);
|
|
487
488
|
try {
|
|
488
489
|
const e = await createImageBitmap(r);
|
|
489
|
-
return await
|
|
490
|
+
return await _0(e, l);
|
|
490
491
|
} catch (e) {
|
|
491
492
|
throw new Error(`图片解码失败: src=${r.src}, 错误=${e instanceof Error ? e.message : e}`);
|
|
492
493
|
}
|
|
@@ -494,13 +495,13 @@ async function it(r, h, t) {
|
|
|
494
495
|
if (r instanceof ImageBitmap) {
|
|
495
496
|
if (r.width === 0 || r.height === 0)
|
|
496
497
|
throw new Error(`ImageBitmap 尺寸无效: width=${r.width}, height=${r.height}`);
|
|
497
|
-
return await
|
|
498
|
+
return await _0(r, l);
|
|
498
499
|
}
|
|
499
500
|
throw new Error("不支持的图片类型");
|
|
500
501
|
}
|
|
501
|
-
async function
|
|
502
|
+
async function dt(r, l, t) {
|
|
502
503
|
try {
|
|
503
|
-
const e =
|
|
504
|
+
const e = we(r, t), u = await ye(e);
|
|
504
505
|
if (!u.ok) {
|
|
505
506
|
const m = u.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${u.status} ${u.statusText}): ${r}`;
|
|
506
507
|
throw new Error(m);
|
|
@@ -510,7 +511,7 @@ async function st(r, h, t) {
|
|
|
510
511
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
511
512
|
try {
|
|
512
513
|
const m = await createImageBitmap(p);
|
|
513
|
-
return await
|
|
514
|
+
return await _0(m, l);
|
|
514
515
|
} catch (m) {
|
|
515
516
|
throw new Error(`图片解码失败: URL=${r}, 错误=${m instanceof Error ? m.message : m}`);
|
|
516
517
|
}
|
|
@@ -518,9 +519,9 @@ async function st(r, h, t) {
|
|
|
518
519
|
throw e instanceof Error ? e : new Error(`加载图片失败: ${r}, ${e}`);
|
|
519
520
|
}
|
|
520
521
|
}
|
|
521
|
-
function
|
|
522
|
+
function Lr(r) {
|
|
522
523
|
if (!r) return "source-over";
|
|
523
|
-
const
|
|
524
|
+
const l = r.trim().toLowerCase();
|
|
524
525
|
return {
|
|
525
526
|
normal: "source-over",
|
|
526
527
|
multiply: "multiply",
|
|
@@ -546,22 +547,22 @@ function Wr(r) {
|
|
|
546
547
|
"linear dodge": "lighter",
|
|
547
548
|
lighter: "lighter",
|
|
548
549
|
"pass-through": "source-over"
|
|
549
|
-
}[
|
|
550
|
+
}[l] || "source-over";
|
|
550
551
|
}
|
|
551
|
-
var
|
|
552
|
-
function
|
|
552
|
+
var vr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
553
|
+
function lt(r) {
|
|
553
554
|
if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
|
|
554
|
-
var
|
|
555
|
-
if (typeof
|
|
555
|
+
var l = r.default;
|
|
556
|
+
if (typeof l == "function") {
|
|
556
557
|
var t = function e() {
|
|
557
558
|
var u = !1;
|
|
558
559
|
try {
|
|
559
560
|
u = this instanceof e;
|
|
560
561
|
} catch {
|
|
561
562
|
}
|
|
562
|
-
return u ? Reflect.construct(
|
|
563
|
+
return u ? Reflect.construct(l, arguments, this.constructor) : l.apply(this, arguments);
|
|
563
564
|
};
|
|
564
|
-
t.prototype =
|
|
565
|
+
t.prototype = l.prototype;
|
|
565
566
|
} else t = {};
|
|
566
567
|
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(r).forEach(function(e) {
|
|
567
568
|
var u = Object.getOwnPropertyDescriptor(r, e);
|
|
@@ -573,24 +574,24 @@ function ct(r) {
|
|
|
573
574
|
});
|
|
574
575
|
}), t;
|
|
575
576
|
}
|
|
576
|
-
var
|
|
577
|
-
function
|
|
577
|
+
var y0 = { exports: {} };
|
|
578
|
+
function ht(r) {
|
|
578
579
|
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.');
|
|
579
580
|
}
|
|
580
|
-
var
|
|
581
|
+
var w0 = { exports: {} }, vt = {}, pt = /* @__PURE__ */ Object.freeze({
|
|
581
582
|
__proto__: null,
|
|
582
|
-
default:
|
|
583
|
-
}),
|
|
583
|
+
default: vt
|
|
584
|
+
}), Bt = /* @__PURE__ */ lt(pt), Ct = w0.exports, Or;
|
|
584
585
|
function M() {
|
|
585
|
-
return
|
|
586
|
+
return Or || (Or = 1, (function(r, l) {
|
|
586
587
|
(function(t, e) {
|
|
587
588
|
r.exports = e();
|
|
588
|
-
})(
|
|
589
|
+
})(Ct, function() {
|
|
589
590
|
var t = t || (function(e, u) {
|
|
590
591
|
var p;
|
|
591
|
-
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
|
|
592
|
+
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 vr < "u" && vr.crypto && (p = vr.crypto), !p && typeof ht == "function")
|
|
592
593
|
try {
|
|
593
|
-
p =
|
|
594
|
+
p = Bt;
|
|
594
595
|
} catch {
|
|
595
596
|
}
|
|
596
597
|
var m = function() {
|
|
@@ -743,16 +744,16 @@ function M() {
|
|
|
743
744
|
* wordArray1.concat(wordArray2);
|
|
744
745
|
*/
|
|
745
746
|
concat: function(i) {
|
|
746
|
-
var o = this.words, d = i.words, b = this.sigBytes,
|
|
747
|
+
var o = this.words, d = i.words, b = this.sigBytes, D = i.sigBytes;
|
|
747
748
|
if (this.clamp(), b % 4)
|
|
748
|
-
for (var y = 0; y <
|
|
749
|
+
for (var y = 0; y < D; y++) {
|
|
749
750
|
var k = d[y >>> 2] >>> 24 - y % 4 * 8 & 255;
|
|
750
751
|
o[b + y >>> 2] |= k << 24 - (b + y) % 4 * 8;
|
|
751
752
|
}
|
|
752
753
|
else
|
|
753
|
-
for (var R = 0; R <
|
|
754
|
+
for (var R = 0; R < D; R += 4)
|
|
754
755
|
o[b + R >>> 2] = d[R >>> 2];
|
|
755
|
-
return this.sigBytes +=
|
|
756
|
+
return this.sigBytes += D, this;
|
|
756
757
|
},
|
|
757
758
|
/**
|
|
758
759
|
* Removes insignificant bits.
|
|
@@ -811,8 +812,8 @@ function M() {
|
|
|
811
812
|
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
812
813
|
*/
|
|
813
814
|
stringify: function(i) {
|
|
814
|
-
for (var o = i.words, d = i.sigBytes, b = [],
|
|
815
|
-
var y = o[
|
|
815
|
+
for (var o = i.words, d = i.sigBytes, b = [], D = 0; D < d; D++) {
|
|
816
|
+
var y = o[D >>> 2] >>> 24 - D % 4 * 8 & 255;
|
|
816
817
|
b.push((y >>> 4).toString(16)), b.push((y & 15).toString(16));
|
|
817
818
|
}
|
|
818
819
|
return b.join("");
|
|
@@ -850,8 +851,8 @@ function M() {
|
|
|
850
851
|
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
851
852
|
*/
|
|
852
853
|
stringify: function(i) {
|
|
853
|
-
for (var o = i.words, d = i.sigBytes, b = [],
|
|
854
|
-
var y = o[
|
|
854
|
+
for (var o = i.words, d = i.sigBytes, b = [], D = 0; D < d; D++) {
|
|
855
|
+
var y = o[D >>> 2] >>> 24 - D % 4 * 8 & 255;
|
|
855
856
|
b.push(String.fromCharCode(y));
|
|
856
857
|
}
|
|
857
858
|
return b.join("");
|
|
@@ -911,7 +912,7 @@ function M() {
|
|
|
911
912
|
parse: function(i) {
|
|
912
913
|
return f.parse(unescape(encodeURIComponent(i)));
|
|
913
914
|
}
|
|
914
|
-
},
|
|
915
|
+
}, h = x.BufferedBlockAlgorithm = n.extend({
|
|
915
916
|
/**
|
|
916
917
|
* Resets this block algorithm's data buffer to its initial state.
|
|
917
918
|
*
|
|
@@ -950,9 +951,9 @@ function M() {
|
|
|
950
951
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
951
952
|
*/
|
|
952
953
|
_process: function(i) {
|
|
953
|
-
var o, d = this._data, b = d.words,
|
|
954
|
+
var o, d = this._data, b = d.words, D = d.sigBytes, y = this.blockSize, k = y * 4, R = D / k;
|
|
954
955
|
i ? R = e.ceil(R) : R = e.max((R | 0) - this._minBufferSize, 0);
|
|
955
|
-
var F = R * y, w = e.min(F * 4,
|
|
956
|
+
var F = R * y, w = e.min(F * 4, D);
|
|
956
957
|
if (F) {
|
|
957
958
|
for (var H = 0; H < F; H += y)
|
|
958
959
|
this._doProcessBlock(b, H);
|
|
@@ -975,7 +976,7 @@ function M() {
|
|
|
975
976
|
},
|
|
976
977
|
_minBufferSize: 0
|
|
977
978
|
});
|
|
978
|
-
x.Hasher =
|
|
979
|
+
x.Hasher = h.extend({
|
|
979
980
|
/**
|
|
980
981
|
* Configuration options.
|
|
981
982
|
*/
|
|
@@ -1000,7 +1001,7 @@ function M() {
|
|
|
1000
1001
|
* hasher.reset();
|
|
1001
1002
|
*/
|
|
1002
1003
|
reset: function() {
|
|
1003
|
-
|
|
1004
|
+
h.reset.call(this), this._doReset();
|
|
1004
1005
|
},
|
|
1005
1006
|
/**
|
|
1006
1007
|
* Updates this hasher with a message.
|
|
@@ -1070,23 +1071,23 @@ function M() {
|
|
|
1070
1071
|
*/
|
|
1071
1072
|
_createHmacHelper: function(i) {
|
|
1072
1073
|
return function(o, d) {
|
|
1073
|
-
return new
|
|
1074
|
+
return new g.HMAC.init(i, d).finalize(o);
|
|
1074
1075
|
};
|
|
1075
1076
|
}
|
|
1076
1077
|
});
|
|
1077
|
-
var
|
|
1078
|
+
var g = C.algo = {};
|
|
1078
1079
|
return C;
|
|
1079
1080
|
})(Math);
|
|
1080
1081
|
return t;
|
|
1081
1082
|
});
|
|
1082
|
-
})(
|
|
1083
|
+
})(w0)), w0.exports;
|
|
1083
1084
|
}
|
|
1084
|
-
var
|
|
1085
|
-
function
|
|
1086
|
-
return
|
|
1085
|
+
var k0 = { exports: {} }, Et = k0.exports, qr;
|
|
1086
|
+
function dr() {
|
|
1087
|
+
return qr || (qr = 1, (function(r, l) {
|
|
1087
1088
|
(function(t, e) {
|
|
1088
1089
|
r.exports = e(M());
|
|
1089
|
-
})(
|
|
1090
|
+
})(Et, function(t) {
|
|
1090
1091
|
return (function(e) {
|
|
1091
1092
|
var u = t, p = u.lib, m = p.Base, B = p.WordArray, C = u.x64 = {};
|
|
1092
1093
|
C.Word = m.extend({
|
|
@@ -1309,14 +1310,14 @@ function fr() {
|
|
|
1309
1310
|
});
|
|
1310
1311
|
})(), t;
|
|
1311
1312
|
});
|
|
1312
|
-
})(
|
|
1313
|
+
})(k0)), k0.exports;
|
|
1313
1314
|
}
|
|
1314
|
-
var
|
|
1315
|
-
function
|
|
1316
|
-
return
|
|
1315
|
+
var S0 = { exports: {} }, At = S0.exports, Tr;
|
|
1316
|
+
function Ft() {
|
|
1317
|
+
return Tr || (Tr = 1, (function(r, l) {
|
|
1317
1318
|
(function(t, e) {
|
|
1318
1319
|
r.exports = e(M());
|
|
1319
|
-
})(
|
|
1320
|
+
})(At, function(t) {
|
|
1320
1321
|
return (function() {
|
|
1321
1322
|
if (typeof ArrayBuffer == "function") {
|
|
1322
1323
|
var e = t, u = e.lib, p = u.WordArray, m = p.init, B = p.init = function(C) {
|
|
@@ -1331,14 +1332,14 @@ function Bt() {
|
|
|
1331
1332
|
}
|
|
1332
1333
|
})(), t.lib.WordArray;
|
|
1333
1334
|
});
|
|
1334
|
-
})(
|
|
1335
|
+
})(S0)), S0.exports;
|
|
1335
1336
|
}
|
|
1336
|
-
var
|
|
1337
|
-
function
|
|
1338
|
-
return
|
|
1337
|
+
var H0 = { exports: {} }, Dt = H0.exports, Mr;
|
|
1338
|
+
function gt() {
|
|
1339
|
+
return Mr || (Mr = 1, (function(r, l) {
|
|
1339
1340
|
(function(t, e) {
|
|
1340
1341
|
r.exports = e(M());
|
|
1341
|
-
})(
|
|
1342
|
+
})(Dt, function(t) {
|
|
1342
1343
|
return (function() {
|
|
1343
1344
|
var e = t, u = e.lib, p = u.WordArray, m = e.enc;
|
|
1344
1345
|
m.Utf16 = m.Utf16BE = {
|
|
@@ -1425,14 +1426,14 @@ function Et() {
|
|
|
1425
1426
|
}
|
|
1426
1427
|
})(), t.enc.Utf16;
|
|
1427
1428
|
});
|
|
1428
|
-
})(
|
|
1429
|
+
})(H0)), H0.exports;
|
|
1429
1430
|
}
|
|
1430
|
-
var
|
|
1431
|
-
function
|
|
1432
|
-
return
|
|
1431
|
+
var $0 = { exports: {} }, bt = $0.exports, Nr;
|
|
1432
|
+
function s0() {
|
|
1433
|
+
return Nr || (Nr = 1, (function(r, l) {
|
|
1433
1434
|
(function(t, e) {
|
|
1434
1435
|
r.exports = e(M());
|
|
1435
|
-
})(
|
|
1436
|
+
})(bt, function(t) {
|
|
1436
1437
|
return (function() {
|
|
1437
1438
|
var e = t, u = e.lib, p = u.WordArray, m = e.enc;
|
|
1438
1439
|
m.Base64 = {
|
|
@@ -1453,8 +1454,8 @@ function i0() {
|
|
|
1453
1454
|
var x = C.words, n = C.sigBytes, E = this._map;
|
|
1454
1455
|
C.clamp();
|
|
1455
1456
|
for (var a = [], s = 0; s < n; s += 3)
|
|
1456
|
-
for (var f = x[s >>> 2] >>> 24 - s % 4 * 8 & 255, v = x[s + 1 >>> 2] >>> 24 - (s + 1) % 4 * 8 & 255,
|
|
1457
|
-
a.push(E.charAt(
|
|
1457
|
+
for (var f = x[s >>> 2] >>> 24 - s % 4 * 8 & 255, v = x[s + 1 >>> 2] >>> 24 - (s + 1) % 4 * 8 & 255, h = x[s + 2 >>> 2] >>> 24 - (s + 2) % 4 * 8 & 255, g = f << 16 | v << 8 | h, i = 0; i < 4 && s + i * 0.75 < n; i++)
|
|
1458
|
+
a.push(E.charAt(g >>> 6 * (3 - i) & 63));
|
|
1458
1459
|
var o = E.charAt(64);
|
|
1459
1460
|
if (o)
|
|
1460
1461
|
for (; a.length % 4; )
|
|
@@ -1493,21 +1494,21 @@ function i0() {
|
|
|
1493
1494
|
function B(C, x, n) {
|
|
1494
1495
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1495
1496
|
if (s % 4) {
|
|
1496
|
-
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, v = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2,
|
|
1497
|
-
E[a >>> 2] |=
|
|
1497
|
+
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, v = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, h = f | v;
|
|
1498
|
+
E[a >>> 2] |= h << 24 - a % 4 * 8, a++;
|
|
1498
1499
|
}
|
|
1499
1500
|
return p.create(E, a);
|
|
1500
1501
|
}
|
|
1501
1502
|
})(), t.enc.Base64;
|
|
1502
1503
|
});
|
|
1503
|
-
})(
|
|
1504
|
+
})($0)), $0.exports;
|
|
1504
1505
|
}
|
|
1505
|
-
var
|
|
1506
|
-
function
|
|
1507
|
-
return
|
|
1506
|
+
var R0 = { exports: {} }, mt = R0.exports, Ur;
|
|
1507
|
+
function _t() {
|
|
1508
|
+
return Ur || (Ur = 1, (function(r, l) {
|
|
1508
1509
|
(function(t, e) {
|
|
1509
1510
|
r.exports = e(M());
|
|
1510
|
-
})(
|
|
1511
|
+
})(mt, function(t) {
|
|
1511
1512
|
return (function() {
|
|
1512
1513
|
var e = t, u = e.lib, p = u.WordArray, m = e.enc;
|
|
1513
1514
|
m.Base64url = {
|
|
@@ -1531,7 +1532,7 @@ function gt() {
|
|
|
1531
1532
|
var n = C.words, E = C.sigBytes, a = x ? this._safe_map : this._map;
|
|
1532
1533
|
C.clamp();
|
|
1533
1534
|
for (var s = [], f = 0; f < E; f += 3)
|
|
1534
|
-
for (var v = n[f >>> 2] >>> 24 - f % 4 * 8 & 255,
|
|
1535
|
+
for (var v = n[f >>> 2] >>> 24 - f % 4 * 8 & 255, h = n[f + 1 >>> 2] >>> 24 - (f + 1) % 4 * 8 & 255, g = n[f + 2 >>> 2] >>> 24 - (f + 2) % 4 * 8 & 255, i = v << 16 | h << 8 | g, o = 0; o < 4 && f + o * 0.75 < E; o++)
|
|
1535
1536
|
s.push(a.charAt(i >>> 6 * (3 - o) & 63));
|
|
1536
1537
|
var d = a.charAt(64);
|
|
1537
1538
|
if (d)
|
|
@@ -1575,21 +1576,21 @@ function gt() {
|
|
|
1575
1576
|
function B(C, x, n) {
|
|
1576
1577
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1577
1578
|
if (s % 4) {
|
|
1578
|
-
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, v = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2,
|
|
1579
|
-
E[a >>> 2] |=
|
|
1579
|
+
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, v = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, h = f | v;
|
|
1580
|
+
E[a >>> 2] |= h << 24 - a % 4 * 8, a++;
|
|
1580
1581
|
}
|
|
1581
1582
|
return p.create(E, a);
|
|
1582
1583
|
}
|
|
1583
1584
|
})(), t.enc.Base64url;
|
|
1584
1585
|
});
|
|
1585
|
-
})(
|
|
1586
|
+
})(R0)), R0.exports;
|
|
1586
1587
|
}
|
|
1587
|
-
var
|
|
1588
|
-
function
|
|
1589
|
-
return
|
|
1588
|
+
var P0 = { exports: {} }, yt = P0.exports, jr;
|
|
1589
|
+
function c0() {
|
|
1590
|
+
return jr || (jr = 1, (function(r, l) {
|
|
1590
1591
|
(function(t, e) {
|
|
1591
1592
|
r.exports = e(M());
|
|
1592
|
-
})(
|
|
1593
|
+
})(yt, function(t) {
|
|
1593
1594
|
return (function(e) {
|
|
1594
1595
|
var u = t, p = u.lib, m = p.WordArray, B = p.Hasher, C = u.algo, x = [];
|
|
1595
1596
|
(function() {
|
|
@@ -1605,22 +1606,22 @@ function s0() {
|
|
|
1605
1606
|
271733878
|
|
1606
1607
|
]);
|
|
1607
1608
|
},
|
|
1608
|
-
_doProcessBlock: function(v,
|
|
1609
|
-
for (var
|
|
1610
|
-
var i =
|
|
1609
|
+
_doProcessBlock: function(v, h) {
|
|
1610
|
+
for (var g = 0; g < 16; g++) {
|
|
1611
|
+
var i = h + g, o = v[i];
|
|
1611
1612
|
v[i] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360;
|
|
1612
1613
|
}
|
|
1613
|
-
var d = this._hash.words, b = v[
|
|
1614
|
-
S = E(S, c, A, _, b, 7, x[0]), _ = E(_, S, c, A,
|
|
1614
|
+
var d = this._hash.words, b = v[h + 0], D = v[h + 1], y = v[h + 2], k = v[h + 3], R = v[h + 4], F = v[h + 5], w = v[h + 6], H = v[h + 7], $ = v[h + 8], z = v[h + 9], O = v[h + 10], q = v[h + 11], U = v[h + 12], T = v[h + 13], N = v[h + 14], j = v[h + 15], S = d[0], c = d[1], A = d[2], _ = d[3];
|
|
1615
|
+
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, z, 12, x[9]), A = E(A, _, S, c, O, 17, x[10]), c = E(c, A, _, S, q, 22, x[11]), S = E(S, c, A, _, U, 7, x[12]), _ = E(_, S, c, A, T, 12, x[13]), A = E(A, _, S, c, N, 17, x[14]), c = E(c, A, _, S, j, 22, x[15]), S = a(S, c, A, _, 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, _, z, 5, x[24]), _ = a(_, S, c, A, N, 9, x[25]), A = a(A, _, S, c, k, 14, x[26]), c = a(c, A, _, S, $, 20, x[27]), S = a(S, c, A, _, T, 5, x[28]), _ = a(_, S, c, A, y, 9, x[29]), A = a(A, _, S, c, H, 14, x[30]), c = a(c, A, _, S, U, 20, x[31]), S = s(S, c, A, _, F, 4, x[32]), _ = s(_, S, c, A, $, 11, x[33]), A = s(A, _, S, c, q, 16, x[34]), c = s(c, A, _, S, N, 23, x[35]), S = s(S, c, A, _, 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, _, z, 4, x[44]), _ = s(_, S, c, A, U, 11, x[45]), A = s(A, _, S, c, j, 16, x[46]), c = s(c, A, _, S, y, 23, x[47]), S = f(S, c, A, _, b, 6, x[48]), _ = f(_, S, c, A, H, 10, x[49]), A = f(A, _, S, c, N, 15, x[50]), c = f(c, A, _, S, F, 21, x[51]), S = f(S, c, A, _, U, 6, x[52]), _ = f(_, S, c, A, k, 10, x[53]), A = f(A, _, S, c, O, 15, x[54]), c = f(c, A, _, S, 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, z, 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;
|
|
1615
1616
|
},
|
|
1616
1617
|
_doFinalize: function() {
|
|
1617
|
-
var v = this._data,
|
|
1618
|
-
|
|
1619
|
-
var o = e.floor(
|
|
1620
|
-
|
|
1621
|
-
for (var b = this._hash,
|
|
1622
|
-
var k =
|
|
1623
|
-
|
|
1618
|
+
var v = this._data, h = v.words, g = this._nDataBytes * 8, i = v.sigBytes * 8;
|
|
1619
|
+
h[i >>> 5] |= 128 << 24 - i % 32;
|
|
1620
|
+
var o = e.floor(g / 4294967296), d = g;
|
|
1621
|
+
h[(i + 64 >>> 9 << 4) + 15] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, h[(i + 64 >>> 9 << 4) + 14] = (d << 8 | d >>> 24) & 16711935 | (d << 24 | d >>> 8) & 4278255360, v.sigBytes = (h.length + 1) * 4, this._process();
|
|
1622
|
+
for (var b = this._hash, D = b.words, y = 0; y < 4; y++) {
|
|
1623
|
+
var k = D[y];
|
|
1624
|
+
D[y] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
|
|
1624
1625
|
}
|
|
1625
1626
|
return b;
|
|
1626
1627
|
},
|
|
@@ -1629,33 +1630,33 @@ function s0() {
|
|
|
1629
1630
|
return v._hash = this._hash.clone(), v;
|
|
1630
1631
|
}
|
|
1631
1632
|
});
|
|
1632
|
-
function E(v,
|
|
1633
|
-
var
|
|
1634
|
-
return (
|
|
1633
|
+
function E(v, h, g, i, o, d, b) {
|
|
1634
|
+
var D = v + (h & g | ~h & i) + o + b;
|
|
1635
|
+
return (D << d | D >>> 32 - d) + h;
|
|
1635
1636
|
}
|
|
1636
|
-
function a(v,
|
|
1637
|
-
var
|
|
1638
|
-
return (
|
|
1637
|
+
function a(v, h, g, i, o, d, b) {
|
|
1638
|
+
var D = v + (h & i | g & ~i) + o + b;
|
|
1639
|
+
return (D << d | D >>> 32 - d) + h;
|
|
1639
1640
|
}
|
|
1640
|
-
function s(v,
|
|
1641
|
-
var
|
|
1642
|
-
return (
|
|
1641
|
+
function s(v, h, g, i, o, d, b) {
|
|
1642
|
+
var D = v + (h ^ g ^ i) + o + b;
|
|
1643
|
+
return (D << d | D >>> 32 - d) + h;
|
|
1643
1644
|
}
|
|
1644
|
-
function f(v,
|
|
1645
|
-
var
|
|
1646
|
-
return (
|
|
1645
|
+
function f(v, h, g, i, o, d, b) {
|
|
1646
|
+
var D = v + (g ^ (h | ~i)) + o + b;
|
|
1647
|
+
return (D << d | D >>> 32 - d) + h;
|
|
1647
1648
|
}
|
|
1648
1649
|
u.MD5 = B._createHelper(n), u.HmacMD5 = B._createHmacHelper(n);
|
|
1649
1650
|
})(Math), t.MD5;
|
|
1650
1651
|
});
|
|
1651
|
-
})(
|
|
1652
|
+
})(P0)), P0.exports;
|
|
1652
1653
|
}
|
|
1653
|
-
var
|
|
1654
|
-
function
|
|
1655
|
-
return
|
|
1654
|
+
var z0 = { exports: {} }, wt = z0.exports, Gr;
|
|
1655
|
+
function ke() {
|
|
1656
|
+
return Gr || (Gr = 1, (function(r, l) {
|
|
1656
1657
|
(function(t, e) {
|
|
1657
1658
|
r.exports = e(M());
|
|
1658
|
-
})(
|
|
1659
|
+
})(wt, function(t) {
|
|
1659
1660
|
return (function() {
|
|
1660
1661
|
var e = t, u = e.lib, p = u.WordArray, m = u.Hasher, B = e.algo, C = [], x = B.SHA1 = m.extend({
|
|
1661
1662
|
_doReset: function() {
|
|
@@ -1668,17 +1669,17 @@ function ye() {
|
|
|
1668
1669
|
]);
|
|
1669
1670
|
},
|
|
1670
1671
|
_doProcessBlock: function(n, E) {
|
|
1671
|
-
for (var a = this._hash.words, s = a[0], f = a[1], v = a[2],
|
|
1672
|
+
for (var a = this._hash.words, s = a[0], f = a[1], v = a[2], h = a[3], g = a[4], i = 0; i < 80; i++) {
|
|
1672
1673
|
if (i < 16)
|
|
1673
1674
|
C[i] = n[E + i] | 0;
|
|
1674
1675
|
else {
|
|
1675
1676
|
var o = C[i - 3] ^ C[i - 8] ^ C[i - 14] ^ C[i - 16];
|
|
1676
1677
|
C[i] = o << 1 | o >>> 31;
|
|
1677
1678
|
}
|
|
1678
|
-
var d = (s << 5 | s >>> 27) +
|
|
1679
|
-
i < 20 ? d += (f & v | ~f &
|
|
1679
|
+
var d = (s << 5 | s >>> 27) + g + C[i];
|
|
1680
|
+
i < 20 ? d += (f & v | ~f & h) + 1518500249 : i < 40 ? d += (f ^ v ^ h) + 1859775393 : i < 60 ? d += (f & v | f & h | v & h) - 1894007588 : d += (f ^ v ^ h) - 899497514, g = h, h = v, v = f << 30 | f >>> 2, f = s, s = d;
|
|
1680
1681
|
}
|
|
1681
|
-
a[0] = a[0] + s | 0, a[1] = a[1] + f | 0, a[2] = a[2] + v | 0, a[3] = a[3] +
|
|
1682
|
+
a[0] = a[0] + s | 0, a[1] = a[1] + f | 0, a[2] = a[2] + v | 0, a[3] = a[3] + h | 0, a[4] = a[4] + g | 0;
|
|
1682
1683
|
},
|
|
1683
1684
|
_doFinalize: function() {
|
|
1684
1685
|
var n = this._data, E = n.words, a = this._nDataBytes * 8, s = n.sigBytes * 8;
|
|
@@ -1692,49 +1693,49 @@ function ye() {
|
|
|
1692
1693
|
e.SHA1 = m._createHelper(x), e.HmacSHA1 = m._createHmacHelper(x);
|
|
1693
1694
|
})(), t.SHA1;
|
|
1694
1695
|
});
|
|
1695
|
-
})(
|
|
1696
|
+
})(z0)), z0.exports;
|
|
1696
1697
|
}
|
|
1697
|
-
var
|
|
1698
|
-
function
|
|
1699
|
-
return
|
|
1698
|
+
var W0 = { exports: {} }, kt = W0.exports, Kr;
|
|
1699
|
+
function Fr() {
|
|
1700
|
+
return Kr || (Kr = 1, (function(r, l) {
|
|
1700
1701
|
(function(t, e) {
|
|
1701
1702
|
r.exports = e(M());
|
|
1702
|
-
})(
|
|
1703
|
+
})(kt, function(t) {
|
|
1703
1704
|
return (function(e) {
|
|
1704
1705
|
var u = t, p = u.lib, m = p.WordArray, B = p.Hasher, C = u.algo, x = [], n = [];
|
|
1705
1706
|
(function() {
|
|
1706
|
-
function s(
|
|
1707
|
-
for (var i = e.sqrt(
|
|
1708
|
-
if (!(
|
|
1707
|
+
function s(g) {
|
|
1708
|
+
for (var i = e.sqrt(g), o = 2; o <= i; o++)
|
|
1709
|
+
if (!(g % o))
|
|
1709
1710
|
return !1;
|
|
1710
1711
|
return !0;
|
|
1711
1712
|
}
|
|
1712
|
-
function f(
|
|
1713
|
-
return (
|
|
1713
|
+
function f(g) {
|
|
1714
|
+
return (g - (g | 0)) * 4294967296 | 0;
|
|
1714
1715
|
}
|
|
1715
|
-
for (var v = 2,
|
|
1716
|
-
s(v) && (
|
|
1716
|
+
for (var v = 2, h = 0; h < 64; )
|
|
1717
|
+
s(v) && (h < 8 && (x[h] = f(e.pow(v, 1 / 2))), n[h] = f(e.pow(v, 1 / 3)), h++), v++;
|
|
1717
1718
|
})();
|
|
1718
1719
|
var E = [], a = C.SHA256 = B.extend({
|
|
1719
1720
|
_doReset: function() {
|
|
1720
1721
|
this._hash = new m.init(x.slice(0));
|
|
1721
1722
|
},
|
|
1722
1723
|
_doProcessBlock: function(s, f) {
|
|
1723
|
-
for (var v = this._hash.words,
|
|
1724
|
+
for (var v = this._hash.words, h = 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++) {
|
|
1724
1725
|
if (k < 16)
|
|
1725
1726
|
E[k] = s[f + k] | 0;
|
|
1726
1727
|
else {
|
|
1727
1728
|
var R = E[k - 15], F = (R << 25 | R >>> 7) ^ (R << 14 | R >>> 18) ^ R >>> 3, w = E[k - 2], H = (w << 15 | w >>> 17) ^ (w << 13 | w >>> 19) ^ w >>> 10;
|
|
1728
1729
|
E[k] = F + E[k - 7] + H + E[k - 16];
|
|
1729
1730
|
}
|
|
1730
|
-
var $ = d & b ^ ~d &
|
|
1731
|
-
y =
|
|
1731
|
+
var $ = d & b ^ ~d & D, z = h & g ^ h & i ^ g & i, O = (h << 30 | h >>> 2) ^ (h << 19 | h >>> 13) ^ (h << 10 | h >>> 22), q = (d << 26 | d >>> 6) ^ (d << 21 | d >>> 11) ^ (d << 7 | d >>> 25), U = y + q + $ + n[k] + E[k], T = O + z;
|
|
1732
|
+
y = D, D = b, b = d, d = o + U | 0, o = i, i = g, g = h, h = U + T | 0;
|
|
1732
1733
|
}
|
|
1733
|
-
v[0] = v[0] +
|
|
1734
|
+
v[0] = v[0] + h | 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;
|
|
1734
1735
|
},
|
|
1735
1736
|
_doFinalize: function() {
|
|
1736
|
-
var s = this._data, f = s.words, v = this._nDataBytes * 8,
|
|
1737
|
-
return f[
|
|
1737
|
+
var s = this._data, f = s.words, v = this._nDataBytes * 8, h = s.sigBytes * 8;
|
|
1738
|
+
return f[h >>> 5] |= 128 << 24 - h % 32, f[(h + 64 >>> 9 << 4) + 14] = e.floor(v / 4294967296), f[(h + 64 >>> 9 << 4) + 15] = v, s.sigBytes = f.length * 4, this._process(), this._hash;
|
|
1738
1739
|
},
|
|
1739
1740
|
clone: function() {
|
|
1740
1741
|
var s = B.clone.call(this);
|
|
@@ -1744,14 +1745,14 @@ function Er() {
|
|
|
1744
1745
|
u.SHA256 = B._createHelper(a), u.HmacSHA256 = B._createHmacHelper(a);
|
|
1745
1746
|
})(Math), t.SHA256;
|
|
1746
1747
|
});
|
|
1747
|
-
})(
|
|
1748
|
+
})(W0)), W0.exports;
|
|
1748
1749
|
}
|
|
1749
|
-
var
|
|
1750
|
-
function
|
|
1751
|
-
return
|
|
1750
|
+
var I0 = { exports: {} }, St = I0.exports, Xr;
|
|
1751
|
+
function Ht() {
|
|
1752
|
+
return Xr || (Xr = 1, (function(r, l) {
|
|
1752
1753
|
(function(t, e, u) {
|
|
1753
|
-
r.exports = e(M(),
|
|
1754
|
-
})(
|
|
1754
|
+
r.exports = e(M(), Fr());
|
|
1755
|
+
})(St, function(t) {
|
|
1755
1756
|
return (function() {
|
|
1756
1757
|
var e = t, u = e.lib, p = u.WordArray, m = e.algo, B = m.SHA256, C = m.SHA224 = B.extend({
|
|
1757
1758
|
_doReset: function() {
|
|
@@ -1774,14 +1775,14 @@ function yt() {
|
|
|
1774
1775
|
e.SHA224 = B._createHelper(C), e.HmacSHA224 = B._createHmacHelper(C);
|
|
1775
1776
|
})(), t.SHA224;
|
|
1776
1777
|
});
|
|
1777
|
-
})(
|
|
1778
|
+
})(I0)), I0.exports;
|
|
1778
1779
|
}
|
|
1779
|
-
var
|
|
1780
|
-
function
|
|
1781
|
-
return
|
|
1780
|
+
var L0 = { exports: {} }, $t = L0.exports, Zr;
|
|
1781
|
+
function Se() {
|
|
1782
|
+
return Zr || (Zr = 1, (function(r, l) {
|
|
1782
1783
|
(function(t, e, u) {
|
|
1783
|
-
r.exports = e(M(),
|
|
1784
|
-
})(
|
|
1784
|
+
r.exports = e(M(), dr());
|
|
1785
|
+
})($t, function(t) {
|
|
1785
1786
|
return (function() {
|
|
1786
1787
|
var e = t, u = e.lib, p = u.Hasher, m = e.x64, B = m.Word, C = m.WordArray, x = e.algo;
|
|
1787
1788
|
function n() {
|
|
@@ -1887,22 +1888,22 @@ function we() {
|
|
|
1887
1888
|
]);
|
|
1888
1889
|
},
|
|
1889
1890
|
_doProcessBlock: function(f, v) {
|
|
1890
|
-
for (var
|
|
1891
|
-
var J, x0,
|
|
1891
|
+
for (var h = this._hash.words, g = h[0], i = h[1], o = h[2], d = h[3], b = h[4], D = h[5], y = h[6], k = h[7], R = g.high, F = g.low, w = i.high, H = i.low, $ = o.high, z = o.low, O = d.high, q = d.low, U = b.high, T = b.low, N = D.high, j = D.low, S = y.high, c = y.low, A = k.high, _ = k.low, W = R, P = F, L = w, I = H, Y = $, Q = z, o0 = O, K = q, G = U, Z = T, r0 = N, f0 = j, g0 = S, p0 = c, lr = A, B0 = _, e0 = 0; e0 < 80; e0++) {
|
|
1892
|
+
var J, x0, b0 = a[e0];
|
|
1892
1893
|
if (e0 < 16)
|
|
1893
|
-
x0 =
|
|
1894
|
+
x0 = b0.high = f[v + e0 * 2] | 0, J = b0.low = f[v + e0 * 2 + 1] | 0;
|
|
1894
1895
|
else {
|
|
1895
|
-
var
|
|
1896
|
-
J =
|
|
1896
|
+
var br = a[e0 - 15], u0 = br.high, C0 = br.low, Ie = (u0 >>> 1 | C0 << 31) ^ (u0 >>> 8 | C0 << 24) ^ u0 >>> 7, mr = (C0 >>> 1 | u0 << 31) ^ (C0 >>> 8 | u0 << 24) ^ (C0 >>> 7 | u0 << 25), _r = a[e0 - 2], d0 = _r.high, E0 = _r.low, Le = (d0 >>> 19 | E0 << 13) ^ (d0 << 3 | E0 >>> 29) ^ d0 >>> 6, yr = (E0 >>> 19 | d0 << 13) ^ (E0 << 3 | d0 >>> 29) ^ (E0 >>> 6 | d0 << 26), wr = a[e0 - 7], Oe = wr.high, qe = wr.low, kr = a[e0 - 16], Te = kr.high, Sr = kr.low;
|
|
1897
|
+
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;
|
|
1897
1898
|
}
|
|
1898
|
-
var
|
|
1899
|
-
|
|
1899
|
+
var Me = G & r0 ^ ~G & g0, Hr = Z & f0 ^ ~Z & p0, Ne = W & L ^ W & Y ^ L & Y, Ue = P & I ^ P & Q ^ I & Q, je = (W >>> 28 | P << 4) ^ (W << 30 | P >>> 2) ^ (W << 25 | P >>> 7), $r = (P >>> 28 | W << 4) ^ (P << 30 | W >>> 2) ^ (P << 25 | W >>> 7), Ge = (G >>> 14 | Z << 18) ^ (G >>> 18 | Z << 14) ^ (G << 23 | Z >>> 9), Ke = (Z >>> 14 | G << 18) ^ (Z >>> 18 | G << 14) ^ (Z << 23 | G >>> 9), Rr = E[e0], Xe = Rr.high, Pr = Rr.low, V = B0 + Ke, n0 = lr + Ge + (V >>> 0 < B0 >>> 0 ? 1 : 0), V = V + Hr, n0 = n0 + Me + (V >>> 0 < Hr >>> 0 ? 1 : 0), V = V + Pr, n0 = n0 + Xe + (V >>> 0 < Pr >>> 0 ? 1 : 0), V = V + J, n0 = n0 + x0 + (V >>> 0 < J >>> 0 ? 1 : 0), zr = $r + Ue, Ze = je + Ne + (zr >>> 0 < $r >>> 0 ? 1 : 0);
|
|
1900
|
+
lr = g0, B0 = p0, g0 = r0, p0 = f0, r0 = G, f0 = Z, Z = K + V | 0, G = o0 + n0 + (Z >>> 0 < K >>> 0 ? 1 : 0) | 0, o0 = Y, K = Q, Y = L, Q = I, L = W, I = P, P = V + zr | 0, W = n0 + Ze + (P >>> 0 < V >>> 0 ? 1 : 0) | 0;
|
|
1900
1901
|
}
|
|
1901
|
-
F =
|
|
1902
|
+
F = g.low = F + P, g.high = R + W + (F >>> 0 < P >>> 0 ? 1 : 0), H = i.low = H + I, i.high = w + L + (H >>> 0 < I >>> 0 ? 1 : 0), z = o.low = z + Q, o.high = $ + Y + (z >>> 0 < Q >>> 0 ? 1 : 0), q = d.low = q + K, d.high = O + o0 + (q >>> 0 < K >>> 0 ? 1 : 0), T = b.low = T + Z, b.high = U + G + (T >>> 0 < Z >>> 0 ? 1 : 0), j = 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 + lr + (_ >>> 0 < B0 >>> 0 ? 1 : 0);
|
|
1902
1903
|
},
|
|
1903
1904
|
_doFinalize: function() {
|
|
1904
|
-
var f = this._data, v = f.words,
|
|
1905
|
-
v[
|
|
1905
|
+
var f = this._data, v = f.words, h = this._nDataBytes * 8, g = f.sigBytes * 8;
|
|
1906
|
+
v[g >>> 5] |= 128 << 24 - g % 32, v[(g + 128 >>> 10 << 5) + 30] = Math.floor(h / 4294967296), v[(g + 128 >>> 10 << 5) + 31] = h, f.sigBytes = v.length * 4, this._process();
|
|
1906
1907
|
var i = this._hash.toX32();
|
|
1907
1908
|
return i;
|
|
1908
1909
|
},
|
|
@@ -1915,14 +1916,14 @@ function we() {
|
|
|
1915
1916
|
e.SHA512 = p._createHelper(s), e.HmacSHA512 = p._createHmacHelper(s);
|
|
1916
1917
|
})(), t.SHA512;
|
|
1917
1918
|
});
|
|
1918
|
-
})(
|
|
1919
|
+
})(L0)), L0.exports;
|
|
1919
1920
|
}
|
|
1920
|
-
var
|
|
1921
|
-
function
|
|
1922
|
-
return
|
|
1921
|
+
var O0 = { exports: {} }, Rt = O0.exports, Yr;
|
|
1922
|
+
function Pt() {
|
|
1923
|
+
return Yr || (Yr = 1, (function(r, l) {
|
|
1923
1924
|
(function(t, e, u) {
|
|
1924
|
-
r.exports = e(M(),
|
|
1925
|
-
})(
|
|
1925
|
+
r.exports = e(M(), dr(), Se());
|
|
1926
|
+
})(Rt, function(t) {
|
|
1926
1927
|
return (function() {
|
|
1927
1928
|
var e = t, u = e.x64, p = u.Word, m = u.WordArray, B = e.algo, C = B.SHA512, x = B.SHA384 = C.extend({
|
|
1928
1929
|
_doReset: function() {
|
|
@@ -1945,26 +1946,26 @@ function St() {
|
|
|
1945
1946
|
e.SHA384 = C._createHelper(x), e.HmacSHA384 = C._createHmacHelper(x);
|
|
1946
1947
|
})(), t.SHA384;
|
|
1947
1948
|
});
|
|
1948
|
-
})(
|
|
1949
|
+
})(O0)), O0.exports;
|
|
1949
1950
|
}
|
|
1950
|
-
var
|
|
1951
|
-
function
|
|
1952
|
-
return
|
|
1951
|
+
var q0 = { exports: {} }, zt = q0.exports, Qr;
|
|
1952
|
+
function Wt() {
|
|
1953
|
+
return Qr || (Qr = 1, (function(r, l) {
|
|
1953
1954
|
(function(t, e, u) {
|
|
1954
|
-
r.exports = e(M(),
|
|
1955
|
-
})(
|
|
1955
|
+
r.exports = e(M(), dr());
|
|
1956
|
+
})(zt, function(t) {
|
|
1956
1957
|
return (function(e) {
|
|
1957
1958
|
var u = t, p = u.lib, m = p.WordArray, B = p.Hasher, C = u.x64, x = C.Word, n = u.algo, E = [], a = [], s = [];
|
|
1958
1959
|
(function() {
|
|
1959
|
-
for (var
|
|
1960
|
-
E[
|
|
1961
|
-
var o =
|
|
1962
|
-
|
|
1960
|
+
for (var h = 1, g = 0, i = 0; i < 24; i++) {
|
|
1961
|
+
E[h + 5 * g] = (i + 1) * (i + 2) / 2 % 64;
|
|
1962
|
+
var o = g % 5, d = (2 * h + 3 * g) % 5;
|
|
1963
|
+
h = o, g = d;
|
|
1963
1964
|
}
|
|
1964
|
-
for (var
|
|
1965
|
-
for (var
|
|
1966
|
-
a[
|
|
1967
|
-
for (var b = 1,
|
|
1965
|
+
for (var h = 0; h < 5; h++)
|
|
1966
|
+
for (var g = 0; g < 5; g++)
|
|
1967
|
+
a[h + 5 * g] = g + (2 * h + 3 * g) % 5 * 5;
|
|
1968
|
+
for (var b = 1, D = 0; D < 24; D++) {
|
|
1968
1969
|
for (var y = 0, k = 0, R = 0; R < 7; R++) {
|
|
1969
1970
|
if (b & 1) {
|
|
1970
1971
|
var F = (1 << R) - 1;
|
|
@@ -1972,13 +1973,13 @@ function $t() {
|
|
|
1972
1973
|
}
|
|
1973
1974
|
b & 128 ? b = b << 1 ^ 113 : b <<= 1;
|
|
1974
1975
|
}
|
|
1975
|
-
s[
|
|
1976
|
+
s[D] = x.create(y, k);
|
|
1976
1977
|
}
|
|
1977
1978
|
})();
|
|
1978
1979
|
var f = [];
|
|
1979
1980
|
(function() {
|
|
1980
|
-
for (var
|
|
1981
|
-
f[
|
|
1981
|
+
for (var h = 0; h < 25; h++)
|
|
1982
|
+
f[h] = x.create();
|
|
1982
1983
|
})();
|
|
1983
1984
|
var v = n.SHA3 = B.extend({
|
|
1984
1985
|
/**
|
|
@@ -1993,16 +1994,16 @@ function $t() {
|
|
|
1993
1994
|
outputLength: 512
|
|
1994
1995
|
}),
|
|
1995
1996
|
_doReset: function() {
|
|
1996
|
-
for (var
|
|
1997
|
-
|
|
1997
|
+
for (var h = this._state = [], g = 0; g < 25; g++)
|
|
1998
|
+
h[g] = new x.init();
|
|
1998
1999
|
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
|
|
1999
2000
|
},
|
|
2000
|
-
_doProcessBlock: function(
|
|
2001
|
+
_doProcessBlock: function(h, g) {
|
|
2001
2002
|
for (var i = this._state, o = this.blockSize / 2, d = 0; d < o; d++) {
|
|
2002
|
-
var b =
|
|
2003
|
-
b = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360,
|
|
2003
|
+
var b = h[g + 2 * d], D = h[g + 2 * d + 1];
|
|
2004
|
+
b = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, D = (D << 8 | D >>> 24) & 16711935 | (D << 24 | D >>> 8) & 4278255360;
|
|
2004
2005
|
var y = i[d];
|
|
2005
|
-
y.high ^=
|
|
2006
|
+
y.high ^= D, y.low ^= b;
|
|
2006
2007
|
}
|
|
2007
2008
|
for (var k = 0; k < 24; k++) {
|
|
2008
2009
|
for (var R = 0; R < 5; R++) {
|
|
@@ -2036,33 +2037,33 @@ function $t() {
|
|
|
2036
2037
|
}
|
|
2037
2038
|
},
|
|
2038
2039
|
_doFinalize: function() {
|
|
2039
|
-
var
|
|
2040
|
+
var h = this._data, g = h.words;
|
|
2040
2041
|
this._nDataBytes * 8;
|
|
2041
|
-
var i =
|
|
2042
|
-
|
|
2043
|
-
for (var d = this._state, b = this.cfg.outputLength / 8,
|
|
2042
|
+
var i = h.sigBytes * 8, o = this.blockSize * 32;
|
|
2043
|
+
g[i >>> 5] |= 1 << 24 - i % 32, g[(e.ceil((i + 1) / o) * o >>> 5) - 1] |= 128, h.sigBytes = g.length * 4, this._process();
|
|
2044
|
+
for (var d = this._state, b = this.cfg.outputLength / 8, D = b / 8, y = [], k = 0; k < D; k++) {
|
|
2044
2045
|
var R = d[k], F = R.high, w = R.low;
|
|
2045
2046
|
F = (F << 8 | F >>> 24) & 16711935 | (F << 24 | F >>> 8) & 4278255360, w = (w << 8 | w >>> 24) & 16711935 | (w << 24 | w >>> 8) & 4278255360, y.push(w), y.push(F);
|
|
2046
2047
|
}
|
|
2047
2048
|
return new m.init(y, b);
|
|
2048
2049
|
},
|
|
2049
2050
|
clone: function() {
|
|
2050
|
-
for (var
|
|
2051
|
-
|
|
2052
|
-
return
|
|
2051
|
+
for (var h = B.clone.call(this), g = h._state = this._state.slice(0), i = 0; i < 25; i++)
|
|
2052
|
+
g[i] = g[i].clone();
|
|
2053
|
+
return h;
|
|
2053
2054
|
}
|
|
2054
2055
|
});
|
|
2055
2056
|
u.SHA3 = B._createHelper(v), u.HmacSHA3 = B._createHmacHelper(v);
|
|
2056
2057
|
})(Math), t.SHA3;
|
|
2057
2058
|
});
|
|
2058
|
-
})(
|
|
2059
|
+
})(q0)), q0.exports;
|
|
2059
2060
|
}
|
|
2060
|
-
var
|
|
2061
|
-
function
|
|
2062
|
-
return
|
|
2061
|
+
var T0 = { exports: {} }, It = T0.exports, Vr;
|
|
2062
|
+
function Lt() {
|
|
2063
|
+
return Vr || (Vr = 1, (function(r, l) {
|
|
2063
2064
|
(function(t, e) {
|
|
2064
2065
|
r.exports = e(M());
|
|
2065
|
-
})(
|
|
2066
|
+
})(It, function(t) {
|
|
2066
2067
|
return (function(e) {
|
|
2067
2068
|
var u = t, p = u.lib, m = p.WordArray, B = p.Hasher, C = u.algo, x = m.create([
|
|
2068
2069
|
0,
|
|
@@ -2392,20 +2393,20 @@ function Pt() {
|
|
|
2392
2393
|
_doReset: function() {
|
|
2393
2394
|
this._hash = m.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2394
2395
|
},
|
|
2395
|
-
_doProcessBlock: function(
|
|
2396
|
+
_doProcessBlock: function(D, y) {
|
|
2396
2397
|
for (var k = 0; k < 16; k++) {
|
|
2397
|
-
var R = y + k, F =
|
|
2398
|
-
|
|
2398
|
+
var R = y + k, F = D[R];
|
|
2399
|
+
D[R] = (F << 8 | F >>> 24) & 16711935 | (F << 24 | F >>> 8) & 4278255360;
|
|
2399
2400
|
}
|
|
2400
2401
|
var w = this._hash.words, H = s.words, $ = f.words, z = x.words, O = n.words, q = E.words, U = a.words, T, N, j, S, c, A, _, W, P, L;
|
|
2401
2402
|
A = T = w[0], _ = N = w[1], W = j = w[2], P = S = w[3], L = c = w[4];
|
|
2402
2403
|
for (var I, k = 0; k < 80; k += 1)
|
|
2403
|
-
I = T +
|
|
2404
|
+
I = T + D[y + z[k]] | 0, k < 16 ? I += h(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(_, W, P) + $[0] : k < 32 ? I += o(_, W, P) + $[1] : k < 48 ? I += i(_, W, P) + $[2] : k < 64 ? I += g(_, W, P) + $[3] : I += h(_, W, P) + $[4], I = I | 0, I = b(I, U[k]), I = I + L | 0, A = L, L = P, P = b(W, 10), W = _, _ = I;
|
|
2404
2405
|
I = w[1] + j + P | 0, w[1] = w[2] + S + L | 0, w[2] = w[3] + c + A | 0, w[3] = w[4] + T + _ | 0, w[4] = w[0] + N + W | 0, w[0] = I;
|
|
2405
2406
|
},
|
|
2406
2407
|
_doFinalize: function() {
|
|
2407
|
-
var
|
|
2408
|
-
y[R >>> 5] |= 128 << 24 - R % 32, y[(R + 64 >>> 9 << 4) + 14] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360,
|
|
2408
|
+
var D = this._data, y = D.words, k = this._nDataBytes * 8, R = D.sigBytes * 8;
|
|
2409
|
+
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();
|
|
2409
2410
|
for (var F = this._hash, w = F.words, H = 0; H < 5; H++) {
|
|
2410
2411
|
var $ = w[H];
|
|
2411
2412
|
w[H] = ($ << 8 | $ >>> 24) & 16711935 | ($ << 24 | $ >>> 8) & 4278255360;
|
|
@@ -2413,39 +2414,39 @@ function Pt() {
|
|
|
2413
2414
|
return F;
|
|
2414
2415
|
},
|
|
2415
2416
|
clone: function() {
|
|
2416
|
-
var
|
|
2417
|
-
return
|
|
2417
|
+
var D = B.clone.call(this);
|
|
2418
|
+
return D._hash = this._hash.clone(), D;
|
|
2418
2419
|
}
|
|
2419
2420
|
});
|
|
2420
|
-
function
|
|
2421
|
-
return
|
|
2421
|
+
function h(D, y, k) {
|
|
2422
|
+
return D ^ y ^ k;
|
|
2422
2423
|
}
|
|
2423
|
-
function D
|
|
2424
|
-
return
|
|
2424
|
+
function g(D, y, k) {
|
|
2425
|
+
return D & y | ~D & k;
|
|
2425
2426
|
}
|
|
2426
|
-
function i(
|
|
2427
|
-
return (
|
|
2427
|
+
function i(D, y, k) {
|
|
2428
|
+
return (D | ~y) ^ k;
|
|
2428
2429
|
}
|
|
2429
|
-
function o(
|
|
2430
|
-
return
|
|
2430
|
+
function o(D, y, k) {
|
|
2431
|
+
return D & k | y & ~k;
|
|
2431
2432
|
}
|
|
2432
|
-
function d(
|
|
2433
|
-
return
|
|
2433
|
+
function d(D, y, k) {
|
|
2434
|
+
return D ^ (y | ~k);
|
|
2434
2435
|
}
|
|
2435
|
-
function b(
|
|
2436
|
-
return
|
|
2436
|
+
function b(D, y) {
|
|
2437
|
+
return D << y | D >>> 32 - y;
|
|
2437
2438
|
}
|
|
2438
2439
|
u.RIPEMD160 = B._createHelper(v), u.HmacRIPEMD160 = B._createHmacHelper(v);
|
|
2439
2440
|
})(), t.RIPEMD160;
|
|
2440
2441
|
});
|
|
2441
|
-
})(
|
|
2442
|
+
})(T0)), T0.exports;
|
|
2442
2443
|
}
|
|
2443
|
-
var
|
|
2444
|
-
function
|
|
2445
|
-
return
|
|
2444
|
+
var M0 = { exports: {} }, Ot = M0.exports, Jr;
|
|
2445
|
+
function Dr() {
|
|
2446
|
+
return Jr || (Jr = 1, (function(r, l) {
|
|
2446
2447
|
(function(t, e) {
|
|
2447
2448
|
r.exports = e(M());
|
|
2448
|
-
})(
|
|
2449
|
+
})(Ot, function(t) {
|
|
2449
2450
|
(function() {
|
|
2450
2451
|
var e = t, u = e.lib, p = u.Base, m = e.enc, B = m.Utf8, C = e.algo;
|
|
2451
2452
|
C.HMAC = p.extend({
|
|
@@ -2463,8 +2464,8 @@ function Ar() {
|
|
|
2463
2464
|
x = this._hasher = new x.init(), typeof n == "string" && (n = B.parse(n));
|
|
2464
2465
|
var E = x.blockSize, a = E * 4;
|
|
2465
2466
|
n.sigBytes > a && (n = x.finalize(n)), n.clamp();
|
|
2466
|
-
for (var s = this._oKey = n.clone(), f = this._iKey = n.clone(), v = s.words,
|
|
2467
|
-
v[
|
|
2467
|
+
for (var s = this._oKey = n.clone(), f = this._iKey = n.clone(), v = s.words, h = f.words, g = 0; g < E; g++)
|
|
2468
|
+
v[g] ^= 1549556828, h[g] ^= 909522486;
|
|
2468
2469
|
s.sigBytes = f.sigBytes = a, this.reset();
|
|
2469
2470
|
},
|
|
2470
2471
|
/**
|
|
@@ -2516,14 +2517,14 @@ function Ar() {
|
|
|
2516
2517
|
});
|
|
2517
2518
|
})();
|
|
2518
2519
|
});
|
|
2519
|
-
})(
|
|
2520
|
+
})(M0)), M0.exports;
|
|
2520
2521
|
}
|
|
2521
|
-
var
|
|
2522
|
-
function
|
|
2523
|
-
return
|
|
2522
|
+
var N0 = { exports: {} }, qt = N0.exports, re;
|
|
2523
|
+
function Tt() {
|
|
2524
|
+
return re || (re = 1, (function(r, l) {
|
|
2524
2525
|
(function(t, e, u) {
|
|
2525
|
-
r.exports = e(M(),
|
|
2526
|
-
})(
|
|
2526
|
+
r.exports = e(M(), Fr(), Dr());
|
|
2527
|
+
})(qt, function(t) {
|
|
2527
2528
|
return (function() {
|
|
2528
2529
|
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({
|
|
2529
2530
|
/**
|
|
@@ -2565,13 +2566,13 @@ function It() {
|
|
|
2565
2566
|
* var key = kdf.compute(password, salt);
|
|
2566
2567
|
*/
|
|
2567
2568
|
compute: function(E, a) {
|
|
2568
|
-
for (var s = this.cfg, f = x.create(s.hasher, E), v = m.create(),
|
|
2569
|
-
var b = f.update(a).finalize(
|
|
2569
|
+
for (var s = this.cfg, f = x.create(s.hasher, E), v = m.create(), h = m.create([1]), g = v.words, i = h.words, o = s.keySize, d = s.iterations; g.length < o; ) {
|
|
2570
|
+
var b = f.update(a).finalize(h);
|
|
2570
2571
|
f.reset();
|
|
2571
|
-
for (var
|
|
2572
|
+
for (var D = b.words, y = D.length, k = b, R = 1; R < d; R++) {
|
|
2572
2573
|
k = f.finalize(k), f.reset();
|
|
2573
2574
|
for (var F = k.words, w = 0; w < y; w++)
|
|
2574
|
-
|
|
2575
|
+
D[w] ^= F[w];
|
|
2575
2576
|
}
|
|
2576
2577
|
v.concat(b), i[0]++;
|
|
2577
2578
|
}
|
|
@@ -2583,14 +2584,14 @@ function It() {
|
|
|
2583
2584
|
};
|
|
2584
2585
|
})(), t.PBKDF2;
|
|
2585
2586
|
});
|
|
2586
|
-
})(
|
|
2587
|
+
})(N0)), N0.exports;
|
|
2587
2588
|
}
|
|
2588
|
-
var
|
|
2589
|
+
var U0 = { exports: {} }, Mt = U0.exports, ee;
|
|
2589
2590
|
function a0() {
|
|
2590
|
-
return
|
|
2591
|
+
return ee || (ee = 1, (function(r, l) {
|
|
2591
2592
|
(function(t, e, u) {
|
|
2592
|
-
r.exports = e(M(),
|
|
2593
|
-
})(
|
|
2593
|
+
r.exports = e(M(), ke(), Dr());
|
|
2594
|
+
})(Mt, function(t) {
|
|
2594
2595
|
return (function() {
|
|
2595
2596
|
var e = t, u = e.lib, p = u.Base, m = u.WordArray, B = e.algo, C = B.MD5, x = B.EvpKDF = p.extend({
|
|
2596
2597
|
/**
|
|
@@ -2632,13 +2633,13 @@ function a0() {
|
|
|
2632
2633
|
* var key = kdf.compute(password, salt);
|
|
2633
2634
|
*/
|
|
2634
2635
|
compute: function(n, E) {
|
|
2635
|
-
for (var a, s = this.cfg, f = s.hasher.create(), v = m.create(),
|
|
2636
|
+
for (var a, s = this.cfg, f = s.hasher.create(), v = m.create(), h = v.words, g = s.keySize, i = s.iterations; h.length < g; ) {
|
|
2636
2637
|
a && f.update(a), a = f.update(n).finalize(E), f.reset();
|
|
2637
2638
|
for (var o = 1; o < i; o++)
|
|
2638
2639
|
a = f.finalize(a), f.reset();
|
|
2639
2640
|
v.concat(a);
|
|
2640
2641
|
}
|
|
2641
|
-
return v.sigBytes =
|
|
2642
|
+
return v.sigBytes = g * 4, v;
|
|
2642
2643
|
}
|
|
2643
2644
|
});
|
|
2644
2645
|
e.EvpKDF = function(n, E, a) {
|
|
@@ -2646,14 +2647,14 @@ function a0() {
|
|
|
2646
2647
|
};
|
|
2647
2648
|
})(), t.EvpKDF;
|
|
2648
2649
|
});
|
|
2649
|
-
})(
|
|
2650
|
+
})(U0)), U0.exports;
|
|
2650
2651
|
}
|
|
2651
|
-
var
|
|
2652
|
+
var j0 = { exports: {} }, Nt = j0.exports, te;
|
|
2652
2653
|
function X() {
|
|
2653
|
-
return
|
|
2654
|
+
return te || (te = 1, (function(r, l) {
|
|
2654
2655
|
(function(t, e, u) {
|
|
2655
2656
|
r.exports = e(M(), a0());
|
|
2656
|
-
})(
|
|
2657
|
+
})(Nt, function(t) {
|
|
2657
2658
|
t.lib.Cipher || (function(e) {
|
|
2658
2659
|
var u = t, p = u.lib, m = p.Base, B = p.WordArray, C = p.BufferedBlockAlgorithm, x = u.enc;
|
|
2659
2660
|
x.Utf8;
|
|
@@ -2775,7 +2776,7 @@ function X() {
|
|
|
2775
2776
|
*/
|
|
2776
2777
|
_createHelper: /* @__PURE__ */ (function() {
|
|
2777
2778
|
function F(w) {
|
|
2778
|
-
return typeof w == "string" ? R :
|
|
2779
|
+
return typeof w == "string" ? R : D;
|
|
2779
2780
|
}
|
|
2780
2781
|
return function(w) {
|
|
2781
2782
|
return {
|
|
@@ -2840,7 +2841,7 @@ function X() {
|
|
|
2840
2841
|
init: function(F, w) {
|
|
2841
2842
|
this._cipher = F, this._iv = w;
|
|
2842
2843
|
}
|
|
2843
|
-
}),
|
|
2844
|
+
}), h = f.CBC = (function() {
|
|
2844
2845
|
var F = v.extend();
|
|
2845
2846
|
F.Encryptor = F.extend({
|
|
2846
2847
|
/**
|
|
@@ -2880,7 +2881,7 @@ function X() {
|
|
|
2880
2881
|
H[$ + U] ^= O[U];
|
|
2881
2882
|
}
|
|
2882
2883
|
return F;
|
|
2883
|
-
})(),
|
|
2884
|
+
})(), g = u.pad = {}, i = g.Pkcs7 = {
|
|
2884
2885
|
/**
|
|
2885
2886
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
2886
2887
|
*
|
|
@@ -2923,7 +2924,7 @@ function X() {
|
|
|
2923
2924
|
* @property {Padding} padding The padding strategy to use. Default: Pkcs7
|
|
2924
2925
|
*/
|
|
2925
2926
|
cfg: s.cfg.extend({
|
|
2926
|
-
mode:
|
|
2927
|
+
mode: h,
|
|
2927
2928
|
padding: i
|
|
2928
2929
|
}),
|
|
2929
2930
|
reset: function() {
|
|
@@ -3017,7 +3018,7 @@ function X() {
|
|
|
3017
3018
|
var w, H = n.parse(F), $ = H.words;
|
|
3018
3019
|
return $[0] == 1398893684 && $[1] == 1701076831 && (w = B.create($.slice(2, 4)), $.splice(0, 4), H.sigBytes -= 16), o.create({ ciphertext: H, salt: w });
|
|
3019
3020
|
}
|
|
3020
|
-
},
|
|
3021
|
+
}, D = p.SerializableCipher = m.extend({
|
|
3021
3022
|
/**
|
|
3022
3023
|
* Configuration options.
|
|
3023
3024
|
*
|
|
@@ -3124,13 +3125,13 @@ function X() {
|
|
|
3124
3125
|
var q = B.create(O.words.slice(w), H * 4);
|
|
3125
3126
|
return O.sigBytes = w * 4, o.create({ key: O, iv: q, salt: $ });
|
|
3126
3127
|
}
|
|
3127
|
-
}, R = p.PasswordBasedCipher =
|
|
3128
|
+
}, R = p.PasswordBasedCipher = D.extend({
|
|
3128
3129
|
/**
|
|
3129
3130
|
* Configuration options.
|
|
3130
3131
|
*
|
|
3131
3132
|
* @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
|
|
3132
3133
|
*/
|
|
3133
|
-
cfg:
|
|
3134
|
+
cfg: D.cfg.extend({
|
|
3134
3135
|
kdf: k
|
|
3135
3136
|
}),
|
|
3136
3137
|
/**
|
|
@@ -3154,7 +3155,7 @@ function X() {
|
|
|
3154
3155
|
$ = this.cfg.extend($);
|
|
3155
3156
|
var z = $.kdf.execute(H, F.keySize, F.ivSize, $.salt, $.hasher);
|
|
3156
3157
|
$.iv = z.iv;
|
|
3157
|
-
var O =
|
|
3158
|
+
var O = D.encrypt.call(this, F, w, z.key, $);
|
|
3158
3159
|
return O.mixIn(z), O;
|
|
3159
3160
|
},
|
|
3160
3161
|
/**
|
|
@@ -3178,20 +3179,20 @@ function X() {
|
|
|
3178
3179
|
$ = this.cfg.extend($), w = this._parse(w, $.format);
|
|
3179
3180
|
var z = $.kdf.execute(H, F.keySize, F.ivSize, w.salt, $.hasher);
|
|
3180
3181
|
$.iv = z.iv;
|
|
3181
|
-
var O =
|
|
3182
|
+
var O = D.decrypt.call(this, F, w, z.key, $);
|
|
3182
3183
|
return O;
|
|
3183
3184
|
}
|
|
3184
3185
|
});
|
|
3185
3186
|
})();
|
|
3186
3187
|
});
|
|
3187
|
-
})(
|
|
3188
|
+
})(j0)), j0.exports;
|
|
3188
3189
|
}
|
|
3189
|
-
var
|
|
3190
|
-
function
|
|
3191
|
-
return
|
|
3190
|
+
var G0 = { exports: {} }, Ut = G0.exports, xe;
|
|
3191
|
+
function jt() {
|
|
3192
|
+
return xe || (xe = 1, (function(r, l) {
|
|
3192
3193
|
(function(t, e, u) {
|
|
3193
3194
|
r.exports = e(M(), X());
|
|
3194
|
-
})(
|
|
3195
|
+
})(Ut, function(t) {
|
|
3195
3196
|
return t.mode.CFB = (function() {
|
|
3196
3197
|
var e = t.lib.BlockCipherMode.extend();
|
|
3197
3198
|
e.Encryptor = e.extend({
|
|
@@ -3214,14 +3215,14 @@ function Tt() {
|
|
|
3214
3215
|
return e;
|
|
3215
3216
|
})(), t.mode.CFB;
|
|
3216
3217
|
});
|
|
3217
|
-
})(
|
|
3218
|
+
})(G0)), G0.exports;
|
|
3218
3219
|
}
|
|
3219
|
-
var
|
|
3220
|
-
function
|
|
3221
|
-
return
|
|
3220
|
+
var K0 = { exports: {} }, Gt = K0.exports, ne;
|
|
3221
|
+
function Kt() {
|
|
3222
|
+
return ne || (ne = 1, (function(r, l) {
|
|
3222
3223
|
(function(t, e, u) {
|
|
3223
3224
|
r.exports = e(M(), X());
|
|
3224
|
-
})(
|
|
3225
|
+
})(Gt, function(t) {
|
|
3225
3226
|
return t.mode.CTR = (function() {
|
|
3226
3227
|
var e = t.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3227
3228
|
processBlock: function(p, m) {
|
|
@@ -3236,14 +3237,14 @@ function Nt() {
|
|
|
3236
3237
|
return e.Decryptor = u, e;
|
|
3237
3238
|
})(), t.mode.CTR;
|
|
3238
3239
|
});
|
|
3239
|
-
})(
|
|
3240
|
+
})(K0)), K0.exports;
|
|
3240
3241
|
}
|
|
3241
|
-
var
|
|
3242
|
-
function
|
|
3243
|
-
return
|
|
3242
|
+
var X0 = { exports: {} }, Xt = X0.exports, ae;
|
|
3243
|
+
function Zt() {
|
|
3244
|
+
return ae || (ae = 1, (function(r, l) {
|
|
3244
3245
|
(function(t, e, u) {
|
|
3245
3246
|
r.exports = e(M(), X());
|
|
3246
|
-
})(
|
|
3247
|
+
})(Xt, function(t) {
|
|
3247
3248
|
return t.mode.CTRGladman = (function() {
|
|
3248
3249
|
var e = t.lib.BlockCipherMode.extend();
|
|
3249
3250
|
function u(B) {
|
|
@@ -3270,14 +3271,14 @@ function jt() {
|
|
|
3270
3271
|
return e.Decryptor = m, e;
|
|
3271
3272
|
})(), t.mode.CTRGladman;
|
|
3272
3273
|
});
|
|
3273
|
-
})(
|
|
3274
|
+
})(X0)), X0.exports;
|
|
3274
3275
|
}
|
|
3275
|
-
var
|
|
3276
|
-
function
|
|
3277
|
-
return
|
|
3276
|
+
var Z0 = { exports: {} }, Yt = Z0.exports, oe;
|
|
3277
|
+
function Qt() {
|
|
3278
|
+
return oe || (oe = 1, (function(r, l) {
|
|
3278
3279
|
(function(t, e, u) {
|
|
3279
3280
|
r.exports = e(M(), X());
|
|
3280
|
-
})(
|
|
3281
|
+
})(Yt, function(t) {
|
|
3281
3282
|
return t.mode.OFB = (function() {
|
|
3282
3283
|
var e = t.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3283
3284
|
processBlock: function(p, m) {
|
|
@@ -3290,14 +3291,14 @@ function Kt() {
|
|
|
3290
3291
|
return e.Decryptor = u, e;
|
|
3291
3292
|
})(), t.mode.OFB;
|
|
3292
3293
|
});
|
|
3293
|
-
})(
|
|
3294
|
+
})(Z0)), Z0.exports;
|
|
3294
3295
|
}
|
|
3295
|
-
var Y0 = { exports: {} },
|
|
3296
|
-
function
|
|
3297
|
-
return
|
|
3296
|
+
var Y0 = { exports: {} }, Vt = Y0.exports, ie;
|
|
3297
|
+
function Jt() {
|
|
3298
|
+
return ie || (ie = 1, (function(r, l) {
|
|
3298
3299
|
(function(t, e, u) {
|
|
3299
3300
|
r.exports = e(M(), X());
|
|
3300
|
-
})(
|
|
3301
|
+
})(Vt, function(t) {
|
|
3301
3302
|
return t.mode.ECB = (function() {
|
|
3302
3303
|
var e = t.lib.BlockCipherMode.extend();
|
|
3303
3304
|
return e.Encryptor = e.extend({
|
|
@@ -3313,12 +3314,12 @@ function Yt() {
|
|
|
3313
3314
|
});
|
|
3314
3315
|
})(Y0)), Y0.exports;
|
|
3315
3316
|
}
|
|
3316
|
-
var
|
|
3317
|
-
function
|
|
3318
|
-
return
|
|
3317
|
+
var Q0 = { exports: {} }, rx = Q0.exports, se;
|
|
3318
|
+
function ex() {
|
|
3319
|
+
return se || (se = 1, (function(r, l) {
|
|
3319
3320
|
(function(t, e, u) {
|
|
3320
3321
|
r.exports = e(M(), X());
|
|
3321
|
-
})(
|
|
3322
|
+
})(rx, function(t) {
|
|
3322
3323
|
return t.pad.AnsiX923 = {
|
|
3323
3324
|
pad: function(e, u) {
|
|
3324
3325
|
var p = e.sigBytes, m = u * 4, B = m - p % m, C = p + B - 1;
|
|
@@ -3330,14 +3331,14 @@ function Qt() {
|
|
|
3330
3331
|
}
|
|
3331
3332
|
}, t.pad.Ansix923;
|
|
3332
3333
|
});
|
|
3333
|
-
})(
|
|
3334
|
+
})(Q0)), Q0.exports;
|
|
3334
3335
|
}
|
|
3335
|
-
var
|
|
3336
|
-
function
|
|
3337
|
-
return
|
|
3336
|
+
var V0 = { exports: {} }, tx = V0.exports, ce;
|
|
3337
|
+
function xx() {
|
|
3338
|
+
return ce || (ce = 1, (function(r, l) {
|
|
3338
3339
|
(function(t, e, u) {
|
|
3339
3340
|
r.exports = e(M(), X());
|
|
3340
|
-
})(
|
|
3341
|
+
})(tx, function(t) {
|
|
3341
3342
|
return t.pad.Iso10126 = {
|
|
3342
3343
|
pad: function(e, u) {
|
|
3343
3344
|
var p = u * 4, m = p - e.sigBytes % p;
|
|
@@ -3349,14 +3350,14 @@ function Jt() {
|
|
|
3349
3350
|
}
|
|
3350
3351
|
}, t.pad.Iso10126;
|
|
3351
3352
|
});
|
|
3352
|
-
})(
|
|
3353
|
+
})(V0)), V0.exports;
|
|
3353
3354
|
}
|
|
3354
|
-
var
|
|
3355
|
-
function
|
|
3356
|
-
return
|
|
3355
|
+
var J0 = { exports: {} }, nx = J0.exports, fe;
|
|
3356
|
+
function ax() {
|
|
3357
|
+
return fe || (fe = 1, (function(r, l) {
|
|
3357
3358
|
(function(t, e, u) {
|
|
3358
3359
|
r.exports = e(M(), X());
|
|
3359
|
-
})(
|
|
3360
|
+
})(nx, function(t) {
|
|
3360
3361
|
return t.pad.Iso97971 = {
|
|
3361
3362
|
pad: function(e, u) {
|
|
3362
3363
|
e.concat(t.lib.WordArray.create([2147483648], 1)), t.pad.ZeroPadding.pad(e, u);
|
|
@@ -3366,14 +3367,14 @@ function ex() {
|
|
|
3366
3367
|
}
|
|
3367
3368
|
}, t.pad.Iso97971;
|
|
3368
3369
|
});
|
|
3369
|
-
})(
|
|
3370
|
+
})(J0)), J0.exports;
|
|
3370
3371
|
}
|
|
3371
|
-
var
|
|
3372
|
-
function
|
|
3373
|
-
return
|
|
3372
|
+
var rr = { exports: {} }, ox = rr.exports, ue;
|
|
3373
|
+
function ix() {
|
|
3374
|
+
return ue || (ue = 1, (function(r, l) {
|
|
3374
3375
|
(function(t, e, u) {
|
|
3375
3376
|
r.exports = e(M(), X());
|
|
3376
|
-
})(
|
|
3377
|
+
})(ox, function(t) {
|
|
3377
3378
|
return t.pad.ZeroPadding = {
|
|
3378
3379
|
pad: function(e, u) {
|
|
3379
3380
|
var p = u * 4;
|
|
@@ -3388,14 +3389,14 @@ function xx() {
|
|
|
3388
3389
|
}
|
|
3389
3390
|
}, t.pad.ZeroPadding;
|
|
3390
3391
|
});
|
|
3391
|
-
})(
|
|
3392
|
+
})(rr)), rr.exports;
|
|
3392
3393
|
}
|
|
3393
|
-
var
|
|
3394
|
-
function
|
|
3395
|
-
return
|
|
3394
|
+
var er = { exports: {} }, sx = er.exports, de;
|
|
3395
|
+
function cx() {
|
|
3396
|
+
return de || (de = 1, (function(r, l) {
|
|
3396
3397
|
(function(t, e, u) {
|
|
3397
3398
|
r.exports = e(M(), X());
|
|
3398
|
-
})(
|
|
3399
|
+
})(sx, function(t) {
|
|
3399
3400
|
return t.pad.NoPadding = {
|
|
3400
3401
|
pad: function() {
|
|
3401
3402
|
},
|
|
@@ -3403,14 +3404,14 @@ function ax() {
|
|
|
3403
3404
|
}
|
|
3404
3405
|
}, t.pad.NoPadding;
|
|
3405
3406
|
});
|
|
3406
|
-
})(
|
|
3407
|
+
})(er)), er.exports;
|
|
3407
3408
|
}
|
|
3408
|
-
var
|
|
3409
|
-
function
|
|
3410
|
-
return
|
|
3409
|
+
var tr = { exports: {} }, fx = tr.exports, le;
|
|
3410
|
+
function ux() {
|
|
3411
|
+
return le || (le = 1, (function(r, l) {
|
|
3411
3412
|
(function(t, e, u) {
|
|
3412
3413
|
r.exports = e(M(), X());
|
|
3413
|
-
})(
|
|
3414
|
+
})(fx, function(t) {
|
|
3414
3415
|
return (function(e) {
|
|
3415
3416
|
var u = t, p = u.lib, m = p.CipherParams, B = u.enc, C = B.Hex, x = u.format;
|
|
3416
3417
|
x.Hex = {
|
|
@@ -3450,41 +3451,41 @@ function ix() {
|
|
|
3450
3451
|
};
|
|
3451
3452
|
})(), t.format.Hex;
|
|
3452
3453
|
});
|
|
3453
|
-
})(
|
|
3454
|
+
})(tr)), tr.exports;
|
|
3454
3455
|
}
|
|
3455
|
-
var
|
|
3456
|
-
function
|
|
3457
|
-
return
|
|
3456
|
+
var xr = { exports: {} }, dx = xr.exports, he;
|
|
3457
|
+
function lx() {
|
|
3458
|
+
return he || (he = 1, (function(r, l) {
|
|
3458
3459
|
(function(t, e, u) {
|
|
3459
|
-
r.exports = e(M(),
|
|
3460
|
-
})(
|
|
3460
|
+
r.exports = e(M(), s0(), c0(), a0(), X());
|
|
3461
|
+
})(dx, function(t) {
|
|
3461
3462
|
return (function() {
|
|
3462
|
-
var e = t, u = e.lib, p = u.BlockCipher, m = e.algo, B = [], C = [], x = [], n = [], E = [], a = [], s = [], f = [], v = [],
|
|
3463
|
+
var e = t, u = e.lib, p = u.BlockCipher, m = e.algo, B = [], C = [], x = [], n = [], E = [], a = [], s = [], f = [], v = [], h = [];
|
|
3463
3464
|
(function() {
|
|
3464
3465
|
for (var o = [], d = 0; d < 256; d++)
|
|
3465
3466
|
d < 128 ? o[d] = d << 1 : o[d] = d << 1 ^ 283;
|
|
3466
|
-
for (var b = 0,
|
|
3467
|
-
var y =
|
|
3467
|
+
for (var b = 0, D = 0, d = 0; d < 256; d++) {
|
|
3468
|
+
var y = D ^ D << 1 ^ D << 2 ^ D << 3 ^ D << 4;
|
|
3468
3469
|
y = y >>> 8 ^ y & 255 ^ 99, B[b] = y, C[y] = b;
|
|
3469
3470
|
var k = o[b], R = o[k], F = o[R], w = o[y] * 257 ^ y * 16843008;
|
|
3470
3471
|
x[b] = w << 24 | w >>> 8, n[b] = w << 16 | w >>> 16, E[b] = w << 8 | w >>> 24, a[b] = w;
|
|
3471
3472
|
var w = F * 16843009 ^ R * 65537 ^ k * 257 ^ b * 16843008;
|
|
3472
|
-
s[y] = w << 24 | w >>> 8, f[y] = w << 16 | w >>> 16, v[y] = w << 8 | w >>> 24,
|
|
3473
|
+
s[y] = w << 24 | w >>> 8, f[y] = w << 16 | w >>> 16, v[y] = w << 8 | w >>> 24, h[y] = w, b ? (b = k ^ o[o[o[F ^ k]]], D ^= o[o[D]]) : b = D = 1;
|
|
3473
3474
|
}
|
|
3474
3475
|
})();
|
|
3475
|
-
var
|
|
3476
|
+
var g = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], i = m.AES = p.extend({
|
|
3476
3477
|
_doReset: function() {
|
|
3477
3478
|
var o;
|
|
3478
3479
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
3479
|
-
for (var d = this._keyPriorReset = this._key, b = d.words,
|
|
3480
|
-
F <
|
|
3480
|
+
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++)
|
|
3481
|
+
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);
|
|
3481
3482
|
for (var w = this._invKeySchedule = [], H = 0; H < k; H++) {
|
|
3482
3483
|
var F = k - H;
|
|
3483
3484
|
if (H % 4)
|
|
3484
3485
|
var o = R[F];
|
|
3485
3486
|
else
|
|
3486
3487
|
var o = R[F - 4];
|
|
3487
|
-
H < 4 || F <= 4 ? w[H] = o : w[H] = s[B[o >>> 24]] ^ f[B[o >>> 16 & 255]] ^ v[B[o >>> 8 & 255]] ^
|
|
3488
|
+
H < 4 || F <= 4 ? w[H] = o : w[H] = s[B[o >>> 24]] ^ f[B[o >>> 16 & 255]] ^ v[B[o >>> 8 & 255]] ^ h[B[o & 255]];
|
|
3488
3489
|
}
|
|
3489
3490
|
}
|
|
3490
3491
|
},
|
|
@@ -3493,13 +3494,13 @@ function cx() {
|
|
|
3493
3494
|
},
|
|
3494
3495
|
decryptBlock: function(o, d) {
|
|
3495
3496
|
var b = o[d + 1];
|
|
3496
|
-
o[d + 1] = o[d + 3], o[d + 3] = b, this._doCryptBlock(o, d, this._invKeySchedule, s, f, v,
|
|
3497
|
+
o[d + 1] = o[d + 3], o[d + 3] = b, this._doCryptBlock(o, d, this._invKeySchedule, s, f, v, h, C);
|
|
3497
3498
|
var b = o[d + 1];
|
|
3498
3499
|
o[d + 1] = o[d + 3], o[d + 3] = b;
|
|
3499
3500
|
},
|
|
3500
|
-
_doCryptBlock: function(o, d, b,
|
|
3501
|
+
_doCryptBlock: function(o, d, b, D, y, k, R, F) {
|
|
3501
3502
|
for (var w = this._nRounds, H = o[d] ^ b[0], $ = o[d + 1] ^ b[1], z = o[d + 2] ^ b[2], O = o[d + 3] ^ b[3], q = 4, U = 1; U < w; U++) {
|
|
3502
|
-
var T =
|
|
3503
|
+
var T = D[H >>> 24] ^ y[$ >>> 16 & 255] ^ k[z >>> 8 & 255] ^ R[O & 255] ^ b[q++], N = D[$ >>> 24] ^ y[z >>> 16 & 255] ^ k[O >>> 8 & 255] ^ R[H & 255] ^ b[q++], j = D[z >>> 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[z & 255] ^ b[q++];
|
|
3503
3504
|
H = T, $ = N, z = j, O = S;
|
|
3504
3505
|
}
|
|
3505
3506
|
var T = (F[H >>> 24] << 24 | F[$ >>> 16 & 255] << 16 | F[z >>> 8 & 255] << 8 | F[O & 255]) ^ b[q++], N = (F[$ >>> 24] << 24 | F[z >>> 16 & 255] << 16 | F[O >>> 8 & 255] << 8 | F[H & 255]) ^ b[q++], j = (F[z >>> 24] << 24 | F[O >>> 16 & 255] << 16 | F[H >>> 8 & 255] << 8 | F[$ & 255]) ^ b[q++], S = (F[O >>> 24] << 24 | F[H >>> 16 & 255] << 16 | F[$ >>> 8 & 255] << 8 | F[z & 255]) ^ b[q++];
|
|
@@ -3510,14 +3511,14 @@ function cx() {
|
|
|
3510
3511
|
e.AES = p._createHelper(i);
|
|
3511
3512
|
})(), t.AES;
|
|
3512
3513
|
});
|
|
3513
|
-
})(
|
|
3514
|
+
})(xr)), xr.exports;
|
|
3514
3515
|
}
|
|
3515
|
-
var
|
|
3516
|
-
function
|
|
3517
|
-
return
|
|
3516
|
+
var nr = { exports: {} }, hx = nr.exports, ve;
|
|
3517
|
+
function vx() {
|
|
3518
|
+
return ve || (ve = 1, (function(r, l) {
|
|
3518
3519
|
(function(t, e, u) {
|
|
3519
|
-
r.exports = e(M(),
|
|
3520
|
-
})(
|
|
3520
|
+
r.exports = e(M(), s0(), c0(), a0(), X());
|
|
3521
|
+
})(hx, function(t) {
|
|
3521
3522
|
return (function() {
|
|
3522
3523
|
var e = t, u = e.lib, p = u.WordArray, m = u.BlockCipher, B = e.algo, C = [
|
|
3523
3524
|
57,
|
|
@@ -4165,12 +4166,12 @@ function ux() {
|
|
|
4165
4166
|
2147483679
|
|
4166
4167
|
], s = B.DES = m.extend({
|
|
4167
4168
|
_doReset: function() {
|
|
4168
|
-
for (var
|
|
4169
|
+
for (var g = this._key, i = g.words, o = [], d = 0; d < 56; d++) {
|
|
4169
4170
|
var b = C[d] - 1;
|
|
4170
4171
|
o[d] = i[b >>> 5] >>> 31 - b % 32 & 1;
|
|
4171
4172
|
}
|
|
4172
|
-
for (var
|
|
4173
|
-
for (var k =
|
|
4173
|
+
for (var D = this._subKeys = [], y = 0; y < 16; y++) {
|
|
4174
|
+
for (var k = D[y] = [], R = n[y], d = 0; d < 24; d++)
|
|
4174
4175
|
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;
|
|
4175
4176
|
k[0] = k[0] << 1 | k[0] >>> 31;
|
|
4176
4177
|
for (var d = 1; d < 7; d++)
|
|
@@ -4178,74 +4179,74 @@ function ux() {
|
|
|
4178
4179
|
k[7] = k[7] << 5 | k[7] >>> 27;
|
|
4179
4180
|
}
|
|
4180
4181
|
for (var F = this._invSubKeys = [], d = 0; d < 16; d++)
|
|
4181
|
-
F[d] =
|
|
4182
|
+
F[d] = D[15 - d];
|
|
4182
4183
|
},
|
|
4183
|
-
encryptBlock: function(
|
|
4184
|
-
this._doCryptBlock(
|
|
4184
|
+
encryptBlock: function(g, i) {
|
|
4185
|
+
this._doCryptBlock(g, i, this._subKeys);
|
|
4185
4186
|
},
|
|
4186
|
-
decryptBlock: function(
|
|
4187
|
-
this._doCryptBlock(
|
|
4187
|
+
decryptBlock: function(g, i) {
|
|
4188
|
+
this._doCryptBlock(g, i, this._invSubKeys);
|
|
4188
4189
|
},
|
|
4189
|
-
_doCryptBlock: function(
|
|
4190
|
-
this._lBlock =
|
|
4190
|
+
_doCryptBlock: function(g, i, o) {
|
|
4191
|
+
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);
|
|
4191
4192
|
for (var d = 0; d < 16; d++) {
|
|
4192
|
-
for (var b = o[d],
|
|
4193
|
+
for (var b = o[d], D = this._lBlock, y = this._rBlock, k = 0, R = 0; R < 8; R++)
|
|
4193
4194
|
k |= E[R][((y ^ b[R]) & a[R]) >>> 0];
|
|
4194
|
-
this._lBlock = y, this._rBlock =
|
|
4195
|
+
this._lBlock = y, this._rBlock = D ^ k;
|
|
4195
4196
|
}
|
|
4196
4197
|
var F = this._lBlock;
|
|
4197
|
-
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),
|
|
4198
|
+
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;
|
|
4198
4199
|
},
|
|
4199
4200
|
keySize: 64 / 32,
|
|
4200
4201
|
ivSize: 64 / 32,
|
|
4201
4202
|
blockSize: 64 / 32
|
|
4202
4203
|
});
|
|
4203
|
-
function f(
|
|
4204
|
-
var o = (this._lBlock >>>
|
|
4205
|
-
this._rBlock ^= o, this._lBlock ^= o <<
|
|
4204
|
+
function f(g, i) {
|
|
4205
|
+
var o = (this._lBlock >>> g ^ this._rBlock) & i;
|
|
4206
|
+
this._rBlock ^= o, this._lBlock ^= o << g;
|
|
4206
4207
|
}
|
|
4207
|
-
function v(
|
|
4208
|
-
var o = (this._rBlock >>>
|
|
4209
|
-
this._lBlock ^= o, this._rBlock ^= o <<
|
|
4208
|
+
function v(g, i) {
|
|
4209
|
+
var o = (this._rBlock >>> g ^ this._lBlock) & i;
|
|
4210
|
+
this._lBlock ^= o, this._rBlock ^= o << g;
|
|
4210
4211
|
}
|
|
4211
4212
|
e.DES = m._createHelper(s);
|
|
4212
|
-
var
|
|
4213
|
+
var h = B.TripleDES = m.extend({
|
|
4213
4214
|
_doReset: function() {
|
|
4214
|
-
var
|
|
4215
|
+
var g = this._key, i = g.words;
|
|
4215
4216
|
if (i.length !== 2 && i.length !== 4 && i.length < 6)
|
|
4216
4217
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
4217
4218
|
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);
|
|
4218
4219
|
this._des1 = s.createEncryptor(p.create(o)), this._des2 = s.createEncryptor(p.create(d)), this._des3 = s.createEncryptor(p.create(b));
|
|
4219
4220
|
},
|
|
4220
|
-
encryptBlock: function(
|
|
4221
|
-
this._des1.encryptBlock(
|
|
4221
|
+
encryptBlock: function(g, i) {
|
|
4222
|
+
this._des1.encryptBlock(g, i), this._des2.decryptBlock(g, i), this._des3.encryptBlock(g, i);
|
|
4222
4223
|
},
|
|
4223
|
-
decryptBlock: function(
|
|
4224
|
-
this._des3.decryptBlock(
|
|
4224
|
+
decryptBlock: function(g, i) {
|
|
4225
|
+
this._des3.decryptBlock(g, i), this._des2.encryptBlock(g, i), this._des1.decryptBlock(g, i);
|
|
4225
4226
|
},
|
|
4226
4227
|
keySize: 192 / 32,
|
|
4227
4228
|
ivSize: 64 / 32,
|
|
4228
4229
|
blockSize: 64 / 32
|
|
4229
4230
|
});
|
|
4230
|
-
e.TripleDES = m._createHelper(
|
|
4231
|
+
e.TripleDES = m._createHelper(h);
|
|
4231
4232
|
})(), t.TripleDES;
|
|
4232
4233
|
});
|
|
4233
|
-
})(
|
|
4234
|
+
})(nr)), nr.exports;
|
|
4234
4235
|
}
|
|
4235
|
-
var
|
|
4236
|
-
function
|
|
4237
|
-
return
|
|
4236
|
+
var ar = { exports: {} }, px = ar.exports, pe;
|
|
4237
|
+
function Bx() {
|
|
4238
|
+
return pe || (pe = 1, (function(r, l) {
|
|
4238
4239
|
(function(t, e, u) {
|
|
4239
|
-
r.exports = e(M(),
|
|
4240
|
-
})(
|
|
4240
|
+
r.exports = e(M(), s0(), c0(), a0(), X());
|
|
4241
|
+
})(px, function(t) {
|
|
4241
4242
|
return (function() {
|
|
4242
4243
|
var e = t, u = e.lib, p = u.StreamCipher, m = e.algo, B = m.RC4 = p.extend({
|
|
4243
4244
|
_doReset: function() {
|
|
4244
4245
|
for (var n = this._key, E = n.words, a = n.sigBytes, s = this._S = [], f = 0; f < 256; f++)
|
|
4245
4246
|
s[f] = f;
|
|
4246
4247
|
for (var f = 0, v = 0; f < 256; f++) {
|
|
4247
|
-
var
|
|
4248
|
-
v = (v + s[f] +
|
|
4248
|
+
var h = f % a, g = E[h >>> 2] >>> 24 - h % 4 * 8 & 255;
|
|
4249
|
+
v = (v + s[f] + g) % 256;
|
|
4249
4250
|
var i = s[f];
|
|
4250
4251
|
s[f] = s[v], s[v] = i;
|
|
4251
4252
|
}
|
|
@@ -4284,14 +4285,14 @@ function lx() {
|
|
|
4284
4285
|
e.RC4Drop = p._createHelper(x);
|
|
4285
4286
|
})(), t.RC4;
|
|
4286
4287
|
});
|
|
4287
|
-
})(
|
|
4288
|
+
})(ar)), ar.exports;
|
|
4288
4289
|
}
|
|
4289
|
-
var
|
|
4290
|
-
function
|
|
4291
|
-
return
|
|
4290
|
+
var or = { exports: {} }, Cx = or.exports, Be;
|
|
4291
|
+
function Ex() {
|
|
4292
|
+
return Be || (Be = 1, (function(r, l) {
|
|
4292
4293
|
(function(t, e, u) {
|
|
4293
|
-
r.exports = e(M(),
|
|
4294
|
-
})(
|
|
4294
|
+
r.exports = e(M(), s0(), c0(), a0(), X());
|
|
4295
|
+
})(Cx, function(t) {
|
|
4295
4296
|
return (function() {
|
|
4296
4297
|
var e = t, u = e.lib, p = u.StreamCipher, m = e.algo, B = [], C = [], x = [], n = m.Rabbit = p.extend({
|
|
4297
4298
|
_doReset: function() {
|
|
@@ -4306,7 +4307,7 @@ function vx() {
|
|
|
4306
4307
|
a[1] << 16 | a[0] >>> 16,
|
|
4307
4308
|
a[3],
|
|
4308
4309
|
a[2] << 16 | a[1] >>> 16
|
|
4309
|
-
],
|
|
4310
|
+
], h = this._C = [
|
|
4310
4311
|
a[2] << 16 | a[2] >>> 16,
|
|
4311
4312
|
a[0] & 4294901760 | a[1] & 65535,
|
|
4312
4313
|
a[3] << 16 | a[3] >>> 16,
|
|
@@ -4320,10 +4321,10 @@ function vx() {
|
|
|
4320
4321
|
for (var f = 0; f < 4; f++)
|
|
4321
4322
|
E.call(this);
|
|
4322
4323
|
for (var f = 0; f < 8; f++)
|
|
4323
|
-
|
|
4324
|
+
h[f] ^= v[f + 4 & 7];
|
|
4324
4325
|
if (s) {
|
|
4325
|
-
var
|
|
4326
|
-
|
|
4326
|
+
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;
|
|
4327
|
+
h[0] ^= d, h[1] ^= D, h[2] ^= b, h[3] ^= y, h[4] ^= d, h[5] ^= D, h[6] ^= b, h[7] ^= y;
|
|
4327
4328
|
for (var f = 0; f < 4; f++)
|
|
4328
4329
|
E.call(this);
|
|
4329
4330
|
}
|
|
@@ -4342,7 +4343,7 @@ function vx() {
|
|
|
4342
4343
|
C[f] = s[f];
|
|
4343
4344
|
s[0] = s[0] + 1295307597 + this._b | 0, s[1] = s[1] + 3545052371 + (s[0] >>> 0 < C[0] >>> 0 ? 1 : 0) | 0, s[2] = s[2] + 886263092 + (s[1] >>> 0 < C[1] >>> 0 ? 1 : 0) | 0, s[3] = s[3] + 1295307597 + (s[2] >>> 0 < C[2] >>> 0 ? 1 : 0) | 0, s[4] = s[4] + 3545052371 + (s[3] >>> 0 < C[3] >>> 0 ? 1 : 0) | 0, s[5] = s[5] + 886263092 + (s[4] >>> 0 < C[4] >>> 0 ? 1 : 0) | 0, s[6] = s[6] + 1295307597 + (s[5] >>> 0 < C[5] >>> 0 ? 1 : 0) | 0, s[7] = s[7] + 3545052371 + (s[6] >>> 0 < C[6] >>> 0 ? 1 : 0) | 0, this._b = s[7] >>> 0 < C[7] >>> 0 ? 1 : 0;
|
|
4344
4345
|
for (var f = 0; f < 8; f++) {
|
|
4345
|
-
var v = a[f] + s[f],
|
|
4346
|
+
var v = a[f] + s[f], h = v & 65535, g = v >>> 16, i = ((h * h >>> 17) + h * g >>> 15) + g * g, o = ((v & 4294901760) * v | 0) + ((v & 65535) * v | 0);
|
|
4346
4347
|
x[f] = i ^ o;
|
|
4347
4348
|
}
|
|
4348
4349
|
a[0] = x[0] + (x[7] << 16 | x[7] >>> 16) + (x[6] << 16 | x[6] >>> 16) | 0, a[1] = x[1] + (x[0] << 8 | x[0] >>> 24) + x[7] | 0, a[2] = x[2] + (x[1] << 16 | x[1] >>> 16) + (x[0] << 16 | x[0] >>> 16) | 0, a[3] = x[3] + (x[2] << 8 | x[2] >>> 24) + x[1] | 0, a[4] = x[4] + (x[3] << 16 | x[3] >>> 16) + (x[2] << 16 | x[2] >>> 16) | 0, a[5] = x[5] + (x[4] << 8 | x[4] >>> 24) + x[3] | 0, a[6] = x[6] + (x[5] << 16 | x[5] >>> 16) + (x[4] << 16 | x[4] >>> 16) | 0, a[7] = x[7] + (x[6] << 8 | x[6] >>> 24) + x[5] | 0;
|
|
@@ -4350,14 +4351,14 @@ function vx() {
|
|
|
4350
4351
|
e.Rabbit = p._createHelper(n);
|
|
4351
4352
|
})(), t.Rabbit;
|
|
4352
4353
|
});
|
|
4353
|
-
})(
|
|
4354
|
+
})(or)), or.exports;
|
|
4354
4355
|
}
|
|
4355
|
-
var
|
|
4356
|
-
function
|
|
4357
|
-
return
|
|
4356
|
+
var ir = { exports: {} }, Ax = ir.exports, Ce;
|
|
4357
|
+
function Fx() {
|
|
4358
|
+
return Ce || (Ce = 1, (function(r, l) {
|
|
4358
4359
|
(function(t, e, u) {
|
|
4359
|
-
r.exports = e(M(),
|
|
4360
|
-
})(
|
|
4360
|
+
r.exports = e(M(), s0(), c0(), a0(), X());
|
|
4361
|
+
})(Ax, function(t) {
|
|
4361
4362
|
return (function() {
|
|
4362
4363
|
var e = t, u = e.lib, p = u.StreamCipher, m = e.algo, B = [], C = [], x = [], n = m.RabbitLegacy = p.extend({
|
|
4363
4364
|
_doReset: function() {
|
|
@@ -4381,14 +4382,14 @@ function Bx() {
|
|
|
4381
4382
|
a[3] & 4294901760 | a[0] & 65535
|
|
4382
4383
|
];
|
|
4383
4384
|
this._b = 0;
|
|
4384
|
-
for (var
|
|
4385
|
+
for (var h = 0; h < 4; h++)
|
|
4385
4386
|
E.call(this);
|
|
4386
|
-
for (var
|
|
4387
|
-
v[
|
|
4387
|
+
for (var h = 0; h < 8; h++)
|
|
4388
|
+
v[h] ^= f[h + 4 & 7];
|
|
4388
4389
|
if (s) {
|
|
4389
|
-
var
|
|
4390
|
-
v[0] ^= d, v[1] ^=
|
|
4391
|
-
for (var
|
|
4390
|
+
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;
|
|
4391
|
+
v[0] ^= d, v[1] ^= D, v[2] ^= b, v[3] ^= y, v[4] ^= d, v[5] ^= D, v[6] ^= b, v[7] ^= y;
|
|
4392
|
+
for (var h = 0; h < 4; h++)
|
|
4392
4393
|
E.call(this);
|
|
4393
4394
|
}
|
|
4394
4395
|
},
|
|
@@ -4406,7 +4407,7 @@ function Bx() {
|
|
|
4406
4407
|
C[f] = s[f];
|
|
4407
4408
|
s[0] = s[0] + 1295307597 + this._b | 0, s[1] = s[1] + 3545052371 + (s[0] >>> 0 < C[0] >>> 0 ? 1 : 0) | 0, s[2] = s[2] + 886263092 + (s[1] >>> 0 < C[1] >>> 0 ? 1 : 0) | 0, s[3] = s[3] + 1295307597 + (s[2] >>> 0 < C[2] >>> 0 ? 1 : 0) | 0, s[4] = s[4] + 3545052371 + (s[3] >>> 0 < C[3] >>> 0 ? 1 : 0) | 0, s[5] = s[5] + 886263092 + (s[4] >>> 0 < C[4] >>> 0 ? 1 : 0) | 0, s[6] = s[6] + 1295307597 + (s[5] >>> 0 < C[5] >>> 0 ? 1 : 0) | 0, s[7] = s[7] + 3545052371 + (s[6] >>> 0 < C[6] >>> 0 ? 1 : 0) | 0, this._b = s[7] >>> 0 < C[7] >>> 0 ? 1 : 0;
|
|
4408
4409
|
for (var f = 0; f < 8; f++) {
|
|
4409
|
-
var v = a[f] + s[f],
|
|
4410
|
+
var v = a[f] + s[f], h = v & 65535, g = v >>> 16, i = ((h * h >>> 17) + h * g >>> 15) + g * g, o = ((v & 4294901760) * v | 0) + ((v & 65535) * v | 0);
|
|
4410
4411
|
x[f] = i ^ o;
|
|
4411
4412
|
}
|
|
4412
4413
|
a[0] = x[0] + (x[7] << 16 | x[7] >>> 16) + (x[6] << 16 | x[6] >>> 16) | 0, a[1] = x[1] + (x[0] << 8 | x[0] >>> 24) + x[7] | 0, a[2] = x[2] + (x[1] << 16 | x[1] >>> 16) + (x[0] << 16 | x[0] >>> 16) | 0, a[3] = x[3] + (x[2] << 8 | x[2] >>> 24) + x[1] | 0, a[4] = x[4] + (x[3] << 16 | x[3] >>> 16) + (x[2] << 16 | x[2] >>> 16) | 0, a[5] = x[5] + (x[4] << 8 | x[4] >>> 24) + x[3] | 0, a[6] = x[6] + (x[5] << 16 | x[5] >>> 16) + (x[4] << 16 | x[4] >>> 16) | 0, a[7] = x[7] + (x[6] << 8 | x[6] >>> 24) + x[5] | 0;
|
|
@@ -4414,14 +4415,14 @@ function Bx() {
|
|
|
4414
4415
|
e.RabbitLegacy = p._createHelper(n);
|
|
4415
4416
|
})(), t.RabbitLegacy;
|
|
4416
4417
|
});
|
|
4417
|
-
})(
|
|
4418
|
+
})(ir)), ir.exports;
|
|
4418
4419
|
}
|
|
4419
|
-
var
|
|
4420
|
-
function
|
|
4421
|
-
return
|
|
4420
|
+
var sr = { exports: {} }, Dx = sr.exports, Ee;
|
|
4421
|
+
function gx() {
|
|
4422
|
+
return Ee || (Ee = 1, (function(r, l) {
|
|
4422
4423
|
(function(t, e, u) {
|
|
4423
|
-
r.exports = e(M(),
|
|
4424
|
-
})(
|
|
4424
|
+
r.exports = e(M(), s0(), c0(), a0(), X());
|
|
4425
|
+
})(Dx, function(t) {
|
|
4425
4426
|
return (function() {
|
|
4426
4427
|
var e = t, u = e.lib, p = u.BlockCipher, m = e.algo;
|
|
4427
4428
|
const B = 16, C = [
|
|
@@ -5481,53 +5482,53 @@ function Ex() {
|
|
|
5481
5482
|
pbox: [],
|
|
5482
5483
|
sbox: []
|
|
5483
5484
|
};
|
|
5484
|
-
function E(
|
|
5485
|
-
let i =
|
|
5486
|
-
return
|
|
5485
|
+
function E(h, g) {
|
|
5486
|
+
let i = g >> 24 & 255, o = g >> 16 & 255, d = g >> 8 & 255, b = g & 255, D = h.sbox[0][i] + h.sbox[1][o];
|
|
5487
|
+
return D = D ^ h.sbox[2][d], D = D + h.sbox[3][b], D;
|
|
5487
5488
|
}
|
|
5488
|
-
function a(
|
|
5489
|
-
let o =
|
|
5490
|
-
for (let
|
|
5491
|
-
o = o ^
|
|
5492
|
-
return b = o, o = d, d = b, d = d ^
|
|
5489
|
+
function a(h, g, i) {
|
|
5490
|
+
let o = g, d = i, b;
|
|
5491
|
+
for (let D = 0; D < B; ++D)
|
|
5492
|
+
o = o ^ h.pbox[D], d = E(h, o) ^ d, b = o, o = d, d = b;
|
|
5493
|
+
return b = o, o = d, d = b, d = d ^ h.pbox[B], o = o ^ h.pbox[B + 1], { left: o, right: d };
|
|
5493
5494
|
}
|
|
5494
|
-
function s(
|
|
5495
|
-
let o =
|
|
5496
|
-
for (let
|
|
5497
|
-
o = o ^
|
|
5498
|
-
return b = o, o = d, d = b, d = d ^
|
|
5495
|
+
function s(h, g, i) {
|
|
5496
|
+
let o = g, d = i, b;
|
|
5497
|
+
for (let D = B + 1; D > 1; --D)
|
|
5498
|
+
o = o ^ h.pbox[D], d = E(h, o) ^ d, b = o, o = d, d = b;
|
|
5499
|
+
return b = o, o = d, d = b, d = d ^ h.pbox[1], o = o ^ h.pbox[0], { left: o, right: d };
|
|
5499
5500
|
}
|
|
5500
|
-
function f(
|
|
5501
|
+
function f(h, g, i) {
|
|
5501
5502
|
for (let y = 0; y < 4; y++) {
|
|
5502
|
-
|
|
5503
|
+
h.sbox[y] = [];
|
|
5503
5504
|
for (let k = 0; k < 256; k++)
|
|
5504
|
-
|
|
5505
|
+
h.sbox[y][k] = x[y][k];
|
|
5505
5506
|
}
|
|
5506
5507
|
let o = 0;
|
|
5507
5508
|
for (let y = 0; y < B + 2; y++)
|
|
5508
|
-
|
|
5509
|
-
let d = 0, b = 0,
|
|
5509
|
+
h.pbox[y] = C[y] ^ g[o], o++, o >= i && (o = 0);
|
|
5510
|
+
let d = 0, b = 0, D = 0;
|
|
5510
5511
|
for (let y = 0; y < B + 2; y += 2)
|
|
5511
|
-
|
|
5512
|
+
D = a(h, d, b), d = D.left, b = D.right, h.pbox[y] = d, h.pbox[y + 1] = b;
|
|
5512
5513
|
for (let y = 0; y < 4; y++)
|
|
5513
5514
|
for (let k = 0; k < 256; k += 2)
|
|
5514
|
-
|
|
5515
|
+
D = a(h, d, b), d = D.left, b = D.right, h.sbox[y][k] = d, h.sbox[y][k + 1] = b;
|
|
5515
5516
|
return !0;
|
|
5516
5517
|
}
|
|
5517
5518
|
var v = m.Blowfish = p.extend({
|
|
5518
5519
|
_doReset: function() {
|
|
5519
5520
|
if (this._keyPriorReset !== this._key) {
|
|
5520
|
-
var
|
|
5521
|
-
f(n,
|
|
5521
|
+
var h = this._keyPriorReset = this._key, g = h.words, i = h.sigBytes / 4;
|
|
5522
|
+
f(n, g, i);
|
|
5522
5523
|
}
|
|
5523
5524
|
},
|
|
5524
|
-
encryptBlock: function(
|
|
5525
|
-
var i = a(n,
|
|
5526
|
-
|
|
5525
|
+
encryptBlock: function(h, g) {
|
|
5526
|
+
var i = a(n, h[g], h[g + 1]);
|
|
5527
|
+
h[g] = i.left, h[g + 1] = i.right;
|
|
5527
5528
|
},
|
|
5528
|
-
decryptBlock: function(
|
|
5529
|
-
var i = s(n,
|
|
5530
|
-
|
|
5529
|
+
decryptBlock: function(h, g) {
|
|
5530
|
+
var i = s(n, h[g], h[g + 1]);
|
|
5531
|
+
h[g] = i.left, h[g + 1] = i.right;
|
|
5531
5532
|
},
|
|
5532
5533
|
blockSize: 64 / 32,
|
|
5533
5534
|
keySize: 128 / 32,
|
|
@@ -5536,70 +5537,70 @@ function Ex() {
|
|
|
5536
5537
|
e.Blowfish = p._createHelper(v);
|
|
5537
5538
|
})(), t.Blowfish;
|
|
5538
5539
|
});
|
|
5539
|
-
})(
|
|
5540
|
+
})(sr)), sr.exports;
|
|
5540
5541
|
}
|
|
5541
|
-
var
|
|
5542
|
-
function
|
|
5543
|
-
return
|
|
5542
|
+
var bx = y0.exports, Ae;
|
|
5543
|
+
function mx() {
|
|
5544
|
+
return Ae || (Ae = 1, (function(r, l) {
|
|
5544
5545
|
(function(t, e, u) {
|
|
5545
|
-
r.exports = e(M(),
|
|
5546
|
-
})(
|
|
5546
|
+
r.exports = e(M(), dr(), Ft(), gt(), s0(), _t(), c0(), ke(), Fr(), Ht(), Se(), Pt(), Wt(), Lt(), Dr(), Tt(), a0(), X(), jt(), Kt(), Zt(), Qt(), Jt(), ex(), xx(), ax(), ix(), cx(), ux(), lx(), vx(), Bx(), Ex(), Fx(), gx());
|
|
5547
|
+
})(bx, function(t) {
|
|
5547
5548
|
return t;
|
|
5548
5549
|
});
|
|
5549
|
-
})(
|
|
5550
|
+
})(y0)), y0.exports;
|
|
5550
5551
|
}
|
|
5551
|
-
|
|
5552
|
-
let
|
|
5552
|
+
mx();
|
|
5553
|
+
let He = null, $e = null, Re = null, Pe = null;
|
|
5553
5554
|
Math.random().toString(36).substring(7);
|
|
5554
|
-
function
|
|
5555
|
-
|
|
5555
|
+
function _x(r) {
|
|
5556
|
+
He = r.token, $e = r.apiUrl, Re = r.deviceId, Pe = r.domain;
|
|
5556
5557
|
}
|
|
5557
|
-
function
|
|
5558
|
+
function yx() {
|
|
5558
5559
|
return {
|
|
5559
|
-
token:
|
|
5560
|
-
apiUrl:
|
|
5561
|
-
deviceId:
|
|
5562
|
-
domain:
|
|
5560
|
+
token: He,
|
|
5561
|
+
apiUrl: $e,
|
|
5562
|
+
deviceId: Re,
|
|
5563
|
+
domain: Pe
|
|
5563
5564
|
};
|
|
5564
5565
|
}
|
|
5565
|
-
function
|
|
5566
|
-
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.
|
|
5566
|
+
function wx(r) {
|
|
5567
|
+
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.155`;
|
|
5567
5568
|
}
|
|
5568
|
-
function
|
|
5569
|
-
const t =
|
|
5570
|
-
return new Worker(t, { type: "module", ...
|
|
5569
|
+
function kx(r, l) {
|
|
5570
|
+
const t = wx(r);
|
|
5571
|
+
return new Worker(t, { type: "module", ...l });
|
|
5571
5572
|
}
|
|
5572
|
-
const
|
|
5573
|
+
const gr = () => {
|
|
5573
5574
|
try {
|
|
5574
5575
|
if (globalThis.__DEBUG_RENDER__ === !0 || typeof localStorage < "u" && localStorage.getItem("DEBUG_RENDER") === "1") return !0;
|
|
5575
5576
|
} catch {
|
|
5576
5577
|
}
|
|
5577
5578
|
return !1;
|
|
5578
|
-
},
|
|
5579
|
-
|
|
5580
|
-
},
|
|
5581
|
-
|
|
5582
|
-
},
|
|
5583
|
-
let
|
|
5584
|
-
function
|
|
5585
|
-
const
|
|
5586
|
-
if (
|
|
5587
|
-
const t =
|
|
5579
|
+
}, m0 = (...r) => {
|
|
5580
|
+
gr();
|
|
5581
|
+
}, Fe = (...r) => {
|
|
5582
|
+
gr();
|
|
5583
|
+
}, De = /* @__PURE__ */ new Map(), Cr = /* @__PURE__ */ new Map();
|
|
5584
|
+
let Sx = 0;
|
|
5585
|
+
function Hx(r) {
|
|
5586
|
+
const l = De.get(r);
|
|
5587
|
+
if (l) return l;
|
|
5588
|
+
const t = kx("./deform.worker.ts");
|
|
5588
5589
|
try {
|
|
5589
|
-
t.postMessage({ type: "SET_DEBUG", debugRender:
|
|
5590
|
+
t.postMessage({ type: "SET_DEBUG", debugRender: gr() });
|
|
5590
5591
|
} catch {
|
|
5591
5592
|
}
|
|
5592
5593
|
t.onmessage = (u) => {
|
|
5593
5594
|
const { id: p, imageBitmap: m, error: B, duration: C } = u.data ?? {}, x = C ? ` worker耗时=${Math.round(C)}ms` : "";
|
|
5594
|
-
|
|
5595
|
+
m0(`[renderService] deform worker 响应 id=${p}${x}`, {
|
|
5595
5596
|
hasImageBitmap: !!m,
|
|
5596
5597
|
width: m?.width,
|
|
5597
5598
|
height: m?.height,
|
|
5598
5599
|
error: B
|
|
5599
5600
|
});
|
|
5600
|
-
const n =
|
|
5601
|
+
const n = Cr.get(p);
|
|
5601
5602
|
if (n) {
|
|
5602
|
-
if (
|
|
5603
|
+
if (Cr.delete(p), B) {
|
|
5603
5604
|
n.reject(new Error(B));
|
|
5604
5605
|
return;
|
|
5605
5606
|
}
|
|
@@ -5608,13 +5609,13 @@ function yx(r) {
|
|
|
5608
5609
|
}, t.onerror = (u) => {
|
|
5609
5610
|
};
|
|
5610
5611
|
const e = () => {
|
|
5611
|
-
const u =
|
|
5612
|
-
return
|
|
5612
|
+
const u = yx();
|
|
5613
|
+
return m0("🔍 [workerManager] 检查 License Token:", {
|
|
5613
5614
|
hasToken: !!u.token,
|
|
5614
5615
|
tokenPreview: u.token ? u.token.substring(0, 20) + "..." : "undefined",
|
|
5615
5616
|
faceId: r,
|
|
5616
5617
|
source: "licenseStore模块"
|
|
5617
|
-
}), u.token ? (
|
|
5618
|
+
}), u.token ? (m0("📤 [workerManager] 发送 License 到新创建的 Worker", { faceId: r }), t.postMessage({
|
|
5618
5619
|
type: "SET_LICENSE",
|
|
5619
5620
|
licenseToken: u.token,
|
|
5620
5621
|
licenseApiUrl: u.apiUrl,
|
|
@@ -5622,22 +5623,22 @@ function yx(r) {
|
|
|
5622
5623
|
domain: u.domain
|
|
5623
5624
|
}), !0) : !1;
|
|
5624
5625
|
};
|
|
5625
|
-
return e() || (
|
|
5626
|
-
e() ||
|
|
5626
|
+
return e() || (m0("⏳ [workerManager] License Token 未设置,等待后重试...", { faceId: r }), setTimeout(() => {
|
|
5627
|
+
e() || Fe("⚠️ [workerManager] 等待后 License Token 仍未设置", { faceId: r });
|
|
5627
5628
|
}, 200), setTimeout(() => {
|
|
5628
|
-
e() ||
|
|
5629
|
-
}, 500)),
|
|
5629
|
+
e() || Fe("⚠️ [workerManager] 第二次等待后 License Token 仍未设置", { faceId: r });
|
|
5630
|
+
}, 500)), De.set(r, t), t;
|
|
5630
5631
|
}
|
|
5631
|
-
function
|
|
5632
|
+
function $x(r) {
|
|
5632
5633
|
return {
|
|
5633
5634
|
name: r.name,
|
|
5634
5635
|
type: r.type,
|
|
5635
5636
|
blendMode: r.blendMode,
|
|
5636
5637
|
transform: Array.isArray(r.transform) ? [...r.transform] : [],
|
|
5637
|
-
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((
|
|
5638
|
-
x:
|
|
5639
|
-
y:
|
|
5640
|
-
type:
|
|
5638
|
+
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((l) => ({
|
|
5639
|
+
x: l.x,
|
|
5640
|
+
y: l.y,
|
|
5641
|
+
type: l.type
|
|
5641
5642
|
})) : [],
|
|
5642
5643
|
bounds: r.bounds ? {
|
|
5643
5644
|
width: r.bounds.width,
|
|
@@ -5660,30 +5661,30 @@ function wx(r) {
|
|
|
5660
5661
|
layerOrder: r.layerOrder,
|
|
5661
5662
|
imagePath: r.imagePath,
|
|
5662
5663
|
vectorMask: r.vectorMask ? {
|
|
5663
|
-
paths: r.vectorMask.paths?.map((
|
|
5664
|
-
open:
|
|
5665
|
-
knots:
|
|
5664
|
+
paths: r.vectorMask.paths?.map((l) => ({
|
|
5665
|
+
open: l.open,
|
|
5666
|
+
knots: l.knots?.map((t) => ({
|
|
5666
5667
|
linked: t.linked,
|
|
5667
5668
|
points: [...t.points]
|
|
5668
5669
|
})),
|
|
5669
|
-
fillRule:
|
|
5670
|
-
operation:
|
|
5670
|
+
fillRule: l.fillRule,
|
|
5671
|
+
operation: l.operation
|
|
5671
5672
|
})),
|
|
5672
|
-
points: r.vectorMask.points?.map((
|
|
5673
|
-
x:
|
|
5674
|
-
y:
|
|
5675
|
-
type:
|
|
5673
|
+
points: r.vectorMask.points?.map((l) => ({
|
|
5674
|
+
x: l.x,
|
|
5675
|
+
y: l.y,
|
|
5676
|
+
type: l.type
|
|
5676
5677
|
})),
|
|
5677
5678
|
invert: r.vectorMask.invert,
|
|
5678
5679
|
notLink: r.vectorMask.notLink,
|
|
5679
5680
|
disable: r.vectorMask.disable,
|
|
5680
5681
|
fillStartsWithAllPixels: r.vectorMask.fillStartsWithAllPixels
|
|
5681
5682
|
} : void 0,
|
|
5682
|
-
filterList: r.filterList ? r.filterList.map((
|
|
5683
|
-
type:
|
|
5684
|
-
enabled:
|
|
5685
|
-
filter:
|
|
5686
|
-
puppetShapeList:
|
|
5683
|
+
filterList: r.filterList ? r.filterList.map((l) => ({
|
|
5684
|
+
type: l.type,
|
|
5685
|
+
enabled: l.enabled,
|
|
5686
|
+
filter: l.filter ? {
|
|
5687
|
+
puppetShapeList: l.filter.puppetShapeList?.map((t) => ({
|
|
5687
5688
|
originalVertexArray: t.originalVertexArray.map((e) => ({
|
|
5688
5689
|
x: e.x,
|
|
5689
5690
|
y: e.y
|
|
@@ -5700,47 +5701,47 @@ function wx(r) {
|
|
|
5700
5701
|
clipping: r.clipping
|
|
5701
5702
|
};
|
|
5702
5703
|
}
|
|
5703
|
-
function
|
|
5704
|
-
const u = ++
|
|
5704
|
+
function Rx(r, l, t, e) {
|
|
5705
|
+
const u = ++Sx, p = Hx(t);
|
|
5705
5706
|
return performance.now(), (/* @__PURE__ */ new Date()).toISOString(), new Promise((m, B) => {
|
|
5706
|
-
|
|
5707
|
+
Cr.set(u, {
|
|
5707
5708
|
resolve: (x) => {
|
|
5708
5709
|
performance.now(), (/* @__PURE__ */ new Date()).toISOString(), m(x);
|
|
5709
5710
|
},
|
|
5710
5711
|
reject: B
|
|
5711
5712
|
});
|
|
5712
|
-
const C =
|
|
5713
|
+
const C = $x(l);
|
|
5713
5714
|
p.postMessage({ id: u, designBitmap: r, layerData: C, canvasSize: e }, [
|
|
5714
5715
|
r
|
|
5715
5716
|
]);
|
|
5716
5717
|
});
|
|
5717
5718
|
}
|
|
5718
|
-
async function
|
|
5719
|
-
const m = await
|
|
5719
|
+
async function Px(r, l, t = 0, e, u, p) {
|
|
5720
|
+
const m = await ut(r, u, p);
|
|
5720
5721
|
if (!m || m.width === 0 || m.height === 0)
|
|
5721
5722
|
throw new Error("图片无效:尺寸为 0");
|
|
5722
|
-
return await
|
|
5723
|
+
return await Rx(m, l, t, e);
|
|
5723
5724
|
}
|
|
5724
|
-
function
|
|
5725
|
+
function l0(r, l) {
|
|
5725
5726
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
5726
|
-
return new OffscreenCanvas(r,
|
|
5727
|
+
return new OffscreenCanvas(r, l);
|
|
5727
5728
|
if (typeof document < "u") {
|
|
5728
5729
|
const t = document.createElement("canvas");
|
|
5729
|
-
return t.width = r, t.height =
|
|
5730
|
+
return t.width = r, t.height = l, t;
|
|
5730
5731
|
} else
|
|
5731
5732
|
throw new Error("无法创建 canvas:不在 Worker 或主线程环境中");
|
|
5732
5733
|
}
|
|
5733
|
-
function
|
|
5734
|
+
function F0(r) {
|
|
5734
5735
|
return r.getContext("2d");
|
|
5735
5736
|
}
|
|
5736
|
-
function
|
|
5737
|
-
const
|
|
5738
|
-
if (!
|
|
5737
|
+
function ge(r) {
|
|
5738
|
+
const l = F0(r);
|
|
5739
|
+
if (!l)
|
|
5739
5740
|
throw new Error("无法创建 canvas context");
|
|
5740
|
-
return
|
|
5741
|
+
return l;
|
|
5741
5742
|
}
|
|
5742
|
-
async function
|
|
5743
|
-
const
|
|
5743
|
+
async function zx(r) {
|
|
5744
|
+
const l = performance.now(), t = () => {
|
|
5744
5745
|
try {
|
|
5745
5746
|
if (globalThis.__DEBUG_RENDER__ === !0 || typeof localStorage < "u" && localStorage.getItem("DEBUG_RENDER") === "1") return !0;
|
|
5746
5747
|
} catch {
|
|
@@ -5808,7 +5809,7 @@ async function Hx(r) {
|
|
|
5808
5809
|
hasChildren: !!c.children,
|
|
5809
5810
|
childrenCount: c.children?.length || 0
|
|
5810
5811
|
})));
|
|
5811
|
-
function
|
|
5812
|
+
function h(c, A) {
|
|
5812
5813
|
const _ = c.color || (c.name && ["粉", "白", "绿", "红", "蓝", "黄", "黑", "灰"].includes(c.name) ? c.name : A);
|
|
5813
5814
|
if (c.type === "Layer") {
|
|
5814
5815
|
if (c.imagePath) {
|
|
@@ -5843,9 +5844,9 @@ async function Hx(r) {
|
|
|
5843
5844
|
}
|
|
5844
5845
|
if (c.children)
|
|
5845
5846
|
for (const W of c.children)
|
|
5846
|
-
W &&
|
|
5847
|
+
W && h(W, _);
|
|
5847
5848
|
}
|
|
5848
|
-
function
|
|
5849
|
+
function g(c, A) {
|
|
5849
5850
|
const _ = c.id ?? A;
|
|
5850
5851
|
if (c.type === "Group" && _)
|
|
5851
5852
|
if (e(`[renderByJson] processLayer 检查 Group: name="${c.name}", id=${_}, hasFabricScreenshot=${v.has(_)}`), v.has(_)) {
|
|
@@ -5863,15 +5864,15 @@ async function Hx(r) {
|
|
|
5863
5864
|
e(`[renderByJson] ⚠️ Group id=${_}, name="${c.name}" 没有匹配的 fabricScreenshot`);
|
|
5864
5865
|
if (c.children)
|
|
5865
5866
|
for (const W of c.children)
|
|
5866
|
-
W &&
|
|
5867
|
+
W && g(W, _);
|
|
5867
5868
|
}
|
|
5868
5869
|
if (p.layerList)
|
|
5869
5870
|
for (const c of p.layerList)
|
|
5870
|
-
c &&
|
|
5871
|
+
c && h(c);
|
|
5871
5872
|
if (p.layerList)
|
|
5872
5873
|
for (const c of p.layerList)
|
|
5873
|
-
c &&
|
|
5874
|
-
const o =
|
|
5874
|
+
c && g(c);
|
|
5875
|
+
const o = Je([{
|
|
5875
5876
|
psdJson: p,
|
|
5876
5877
|
layerExtrasByName: s
|
|
5877
5878
|
}], {
|
|
@@ -5883,7 +5884,7 @@ async function Hx(r) {
|
|
|
5883
5884
|
const d = o.models[0];
|
|
5884
5885
|
if (!d.psdPartData)
|
|
5885
5886
|
throw new Error("JSON 数据中没有 psdPartData");
|
|
5886
|
-
const b = d.width,
|
|
5887
|
+
const b = d.width, D = d.height, y = l0(b, D), k = ge(y), R = [], F = (c) => {
|
|
5887
5888
|
if (c.url && s[c.url])
|
|
5888
5889
|
return s[c.url];
|
|
5889
5890
|
if (c.url) {
|
|
@@ -5903,7 +5904,7 @@ async function Hx(r) {
|
|
|
5903
5904
|
};
|
|
5904
5905
|
for (let c = 0; c < d.psdPartData.length; c++) {
|
|
5905
5906
|
const A = d.psdPartData[c], _ = F(A);
|
|
5906
|
-
if (A.type ===
|
|
5907
|
+
if (A.type === D0.Layer) {
|
|
5907
5908
|
if (!_ || !_.url) {
|
|
5908
5909
|
u(`图层 "${A.name}" 没有匹配的 material,跳过`);
|
|
5909
5910
|
continue;
|
|
@@ -5917,9 +5918,9 @@ async function Hx(r) {
|
|
|
5917
5918
|
index: c,
|
|
5918
5919
|
type: "layer",
|
|
5919
5920
|
partData: A,
|
|
5920
|
-
promise:
|
|
5921
|
+
promise: dt(P, E, n).catch((L) => null)
|
|
5921
5922
|
});
|
|
5922
|
-
} else if (A.type ===
|
|
5923
|
+
} else if (A.type === D0.Group) {
|
|
5923
5924
|
if (!A.smartObjects || A.smartObjects.length === 0)
|
|
5924
5925
|
continue;
|
|
5925
5926
|
for (let W = 0; W < A.smartObjects.length; W++) {
|
|
@@ -5930,8 +5931,8 @@ async function Hx(r) {
|
|
|
5930
5931
|
if (!L && P.imagePath && (L = s[P.imagePath], !L)) {
|
|
5931
5932
|
const K = P.imagePath.split("/").pop() || P.imagePath;
|
|
5932
5933
|
if (L = s[K], !L) {
|
|
5933
|
-
const G = m.find((
|
|
5934
|
-
const r0 =
|
|
5934
|
+
const G = m.find((Z) => {
|
|
5935
|
+
const r0 = Z.sourceName || Z.layerName;
|
|
5935
5936
|
return !r0 || !P.imagePath ? !1 : (r0.split("/").pop() || r0) === K || r0 === P.imagePath || r0.endsWith(P.imagePath) || P.imagePath.endsWith(r0);
|
|
5936
5937
|
});
|
|
5937
5938
|
G && (L = { url: G.url });
|
|
@@ -5949,17 +5950,17 @@ async function Hx(r) {
|
|
|
5949
5950
|
continue;
|
|
5950
5951
|
I = G;
|
|
5951
5952
|
}
|
|
5952
|
-
const
|
|
5953
|
+
const Y = (A.partId ?? A.id) * 100 + W, Q = et(rt(P)), o0 = { width: b, height: D };
|
|
5953
5954
|
R.push({
|
|
5954
5955
|
index: c + W * 0.01,
|
|
5955
5956
|
type: "group",
|
|
5956
5957
|
partData: A,
|
|
5957
5958
|
smartObject: P,
|
|
5958
5959
|
maskData: Q,
|
|
5959
|
-
promise:
|
|
5960
|
+
promise: Px(
|
|
5960
5961
|
I,
|
|
5961
5962
|
P,
|
|
5962
|
-
|
|
5963
|
+
Y,
|
|
5963
5964
|
o0,
|
|
5964
5965
|
E,
|
|
5965
5966
|
n
|
|
@@ -5975,7 +5976,7 @@ async function Hx(r) {
|
|
|
5975
5976
|
const _ = c.task.type === "group" && c.task.smartObject?.layerOrder !== void 0 ? c.task.smartObject.layerOrder : c.task.partData.layerOrder ?? c.task.index, W = A.task.type === "group" && A.task.smartObject?.layerOrder !== void 0 ? A.task.smartObject.layerOrder : A.task.partData.layerOrder ?? A.task.index;
|
|
5976
5977
|
return _ - W;
|
|
5977
5978
|
});
|
|
5978
|
-
let $ =
|
|
5979
|
+
let $ = l0(b, D), z = F0($), O = !1, q = "normal";
|
|
5979
5980
|
for (let c = 0; c < H.length; c++) {
|
|
5980
5981
|
const { task: A, imageBitmap: _ } = H[c];
|
|
5981
5982
|
if (!_) {
|
|
@@ -5987,11 +5988,11 @@ async function Hx(r) {
|
|
|
5987
5988
|
A.type === "group" && A.smartObject ? L = A.smartObject.opacity ?? W.opacity : L = W.opacity, (typeof L != "number" || isNaN(L)) && (L = 1);
|
|
5988
5989
|
let I;
|
|
5989
5990
|
A.type === "group" && A.smartObject ? I = A.smartObject.clipping ?? W.clipping === !0 : I = W.clipping === !0;
|
|
5990
|
-
const
|
|
5991
|
+
const Y = H[c + 1];
|
|
5991
5992
|
let Q = !1;
|
|
5992
|
-
if (
|
|
5993
|
-
const K =
|
|
5994
|
-
|
|
5993
|
+
if (Y) {
|
|
5994
|
+
const K = Y.task.partData;
|
|
5995
|
+
Y.task.type === "group" && Y.task.smartObject ? Q = Y.task.smartObject.clipping ?? K.clipping === !0 : Q = K.clipping === !0;
|
|
5995
5996
|
}
|
|
5996
5997
|
const o0 = A.type === "group" && A.smartObject && A.smartObject.name ? A.smartObject.name : W?.name || "未命名图层";
|
|
5997
5998
|
if (e(`[renderByJson] 绘制图层 "${o0}"`, {
|
|
@@ -6004,10 +6005,10 @@ async function Hx(r) {
|
|
|
6004
6005
|
clipping: I
|
|
6005
6006
|
}), !I && Q) {
|
|
6006
6007
|
if (O = !0, q = W.blendMode || "normal", z) {
|
|
6007
|
-
if (z.clearRect(0, 0, b,
|
|
6008
|
+
if (z.clearRect(0, 0, b, D), z.globalCompositeOperation = "source-over", z.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6008
6009
|
if (A.maskData) {
|
|
6009
|
-
const K =
|
|
6010
|
-
G && (G.drawImage(_, 0, 0),
|
|
6010
|
+
const K = l0(b, D), G = F0(K);
|
|
6011
|
+
G && (G.drawImage(_, 0, 0), hr(G, A.maskData), z.drawImage(K, 0, 0));
|
|
6011
6012
|
} else
|
|
6012
6013
|
z.drawImage(_, 0, 0);
|
|
6013
6014
|
else A.type === "layer" && (P ? z.drawImage(
|
|
@@ -6023,8 +6024,8 @@ async function Hx(r) {
|
|
|
6023
6024
|
if (z) {
|
|
6024
6025
|
if (z.globalCompositeOperation = "source-atop", z.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6025
6026
|
if (A.maskData) {
|
|
6026
|
-
const K =
|
|
6027
|
-
G && (G.drawImage(_, 0, 0),
|
|
6027
|
+
const K = l0(b, D), G = F0(K);
|
|
6028
|
+
G && (G.drawImage(_, 0, 0), hr(G, A.maskData), z.drawImage(K, 0, 0));
|
|
6028
6029
|
} else
|
|
6029
6030
|
z.drawImage(_, 0, 0);
|
|
6030
6031
|
else A.type === "layer" && (P ? z.drawImage(
|
|
@@ -6037,10 +6038,10 @@ async function Hx(r) {
|
|
|
6037
6038
|
z.globalAlpha = 1, z.globalCompositeOperation = "source-over";
|
|
6038
6039
|
}
|
|
6039
6040
|
} else {
|
|
6040
|
-
if (k.globalCompositeOperation =
|
|
6041
|
+
if (k.globalCompositeOperation = Lr(W.blendMode), k.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6041
6042
|
if (A.maskData) {
|
|
6042
|
-
const K =
|
|
6043
|
-
G && (G.drawImage(_, 0, 0),
|
|
6043
|
+
const K = l0(b, D), G = F0(K);
|
|
6044
|
+
G && (G.drawImage(_, 0, 0), hr(G, A.maskData), k.drawImage(K, 0, 0));
|
|
6044
6045
|
} else
|
|
6045
6046
|
k.drawImage(_, 0, 0);
|
|
6046
6047
|
else A.type === "layer" && (P ? k.drawImage(
|
|
@@ -6052,40 +6053,68 @@ async function Hx(r) {
|
|
|
6052
6053
|
) : k.drawImage(_, 0, 0));
|
|
6053
6054
|
k.globalAlpha = 1, k.globalCompositeOperation = "source-over";
|
|
6054
6055
|
}
|
|
6055
|
-
O && !Q && (k.globalCompositeOperation =
|
|
6056
|
+
O && !Q && (k.globalCompositeOperation = Lr(q), k.drawImage($, 0, 0), k.globalCompositeOperation = "source-over", O = !1);
|
|
6056
6057
|
}
|
|
6057
6058
|
$ = null, z = null;
|
|
6058
|
-
let U = y, T = b, N =
|
|
6059
|
+
let U = y, T = b, N = D;
|
|
6059
6060
|
if (C !== void 0 || x !== void 0) {
|
|
6060
6061
|
if (C !== void 0 && x !== void 0)
|
|
6061
6062
|
T = C, N = x;
|
|
6062
6063
|
else if (C !== void 0) {
|
|
6063
6064
|
const A = C / b;
|
|
6064
|
-
T = C, N = Math.round(
|
|
6065
|
+
T = C, N = Math.round(D * A);
|
|
6065
6066
|
} else if (x !== void 0) {
|
|
6066
|
-
const A = x /
|
|
6067
|
+
const A = x / D;
|
|
6067
6068
|
T = Math.round(b * A), N = x;
|
|
6068
6069
|
}
|
|
6069
|
-
U =
|
|
6070
|
-
const c =
|
|
6071
|
-
c.imageSmoothingEnabled = !0, c.imageSmoothingQuality = "high", c.drawImage(y, 0, 0, b,
|
|
6070
|
+
U = l0(T, N);
|
|
6071
|
+
const c = ge(U);
|
|
6072
|
+
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}`);
|
|
6072
6073
|
}
|
|
6073
|
-
const S = performance.now() -
|
|
6074
|
+
const S = performance.now() - l;
|
|
6074
6075
|
return e(`[renderByJson] 绘制完成,总渲染时间: ${Math.round(S)}ms`), {
|
|
6075
6076
|
canvas: U,
|
|
6076
6077
|
width: T,
|
|
6077
6078
|
height: N
|
|
6078
6079
|
};
|
|
6079
6080
|
}
|
|
6080
|
-
const
|
|
6081
|
-
const t = (await
|
|
6081
|
+
const ze = async (r) => {
|
|
6082
|
+
const t = (await zx(r)).canvas;
|
|
6082
6083
|
return t ? createImageBitmap(t) : null;
|
|
6083
6084
|
};
|
|
6085
|
+
let i0 = null, pr = !1;
|
|
6086
|
+
const We = async () => {
|
|
6087
|
+
if (!pr) {
|
|
6088
|
+
pr = !0;
|
|
6089
|
+
try {
|
|
6090
|
+
for (; i0; ) {
|
|
6091
|
+
const r = i0;
|
|
6092
|
+
i0 = null;
|
|
6093
|
+
try {
|
|
6094
|
+
const l = await ze(r.renderData);
|
|
6095
|
+
if (i0) {
|
|
6096
|
+
l?.close?.();
|
|
6097
|
+
continue;
|
|
6098
|
+
}
|
|
6099
|
+
self.postMessage({ id: r.id, bitmap: l }, l ? [l] : []);
|
|
6100
|
+
} catch (l) {
|
|
6101
|
+
if (i0) continue;
|
|
6102
|
+
self.postMessage({
|
|
6103
|
+
id: r.id,
|
|
6104
|
+
error: l instanceof Error ? l.message : String(l)
|
|
6105
|
+
});
|
|
6106
|
+
}
|
|
6107
|
+
}
|
|
6108
|
+
} finally {
|
|
6109
|
+
pr = !1, i0 && We();
|
|
6110
|
+
}
|
|
6111
|
+
}
|
|
6112
|
+
};
|
|
6084
6113
|
self.onmessage = async (r) => {
|
|
6085
|
-
const
|
|
6086
|
-
if (
|
|
6087
|
-
const e =
|
|
6088
|
-
|
|
6114
|
+
const l = r.data;
|
|
6115
|
+
if (l && typeof l == "object" && "type" in l && l.type === "SET_LICENSE") {
|
|
6116
|
+
const e = l;
|
|
6117
|
+
_x({
|
|
6089
6118
|
token: e.licenseToken,
|
|
6090
6119
|
apiUrl: e.licenseApiUrl,
|
|
6091
6120
|
deviceId: e.deviceId,
|
|
@@ -6093,9 +6122,13 @@ self.onmessage = async (r) => {
|
|
|
6093
6122
|
});
|
|
6094
6123
|
return;
|
|
6095
6124
|
}
|
|
6096
|
-
const t =
|
|
6125
|
+
const t = l;
|
|
6126
|
+
if (t.coalesce === !0) {
|
|
6127
|
+
i0 = { id: t.id, renderData: t.renderData }, We();
|
|
6128
|
+
return;
|
|
6129
|
+
}
|
|
6097
6130
|
try {
|
|
6098
|
-
const e = await
|
|
6131
|
+
const e = await ze(t.renderData);
|
|
6099
6132
|
self.postMessage({ id: t.id, bitmap: e }, e ? [e] : []);
|
|
6100
6133
|
} catch (e) {
|
|
6101
6134
|
self.postMessage({
|