@jieyin/editor-sdk 1.1.128 → 1.1.130
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 +11237 -10217
- package/dist/renderWorker.js +570 -567
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/renderWorker.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var E0 = /* @__PURE__ */ ((r) => (r[r.Group = 0] = "Group", r[r.Layer = 1] = "Layer", r))(E0 || {});
|
|
2
2
|
function Ne(r) {
|
|
3
|
-
let
|
|
3
|
+
let d = r;
|
|
4
4
|
return () => {
|
|
5
|
-
const x =
|
|
6
|
-
return
|
|
5
|
+
const x = d;
|
|
6
|
+
return d += 1, x;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
function Ue(r,
|
|
9
|
+
function Ue(r, d) {
|
|
10
10
|
return {
|
|
11
11
|
name: r.name || "",
|
|
12
12
|
type: r.type || "Layer",
|
|
@@ -23,24 +23,24 @@ function Ue(r, l) {
|
|
|
23
23
|
quiltSliceY: r.quiltSliceY,
|
|
24
24
|
layerOrder: r.layerOrder,
|
|
25
25
|
imagePath: r.imagePath,
|
|
26
|
-
vectorMask: r.vectorMask ??
|
|
26
|
+
vectorMask: r.vectorMask ?? d,
|
|
27
27
|
filterList: r.filterList,
|
|
28
28
|
opacity: r.opacity,
|
|
29
29
|
clipping: r.clipping
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
function je(r,
|
|
33
|
-
let
|
|
32
|
+
function je(r, d, x, e) {
|
|
33
|
+
let u = r.name || "", v = d[u], g = v?.partId ?? (r.type === "Group" ? x.get(u) : void 0);
|
|
34
34
|
if (r.type === "Group" && g === void 0 && (!v || v.id === void 0) && r.children && r.children.length === 1) {
|
|
35
|
-
const t = r.children[0].name, n =
|
|
36
|
-
(A !== void 0 || n?.id !== void 0) && (
|
|
35
|
+
const t = r.children[0].name, n = d[t], A = n?.partId ?? x.get(t);
|
|
36
|
+
(A !== void 0 || n?.id !== void 0) && (u = t, v = n, g = A);
|
|
37
37
|
}
|
|
38
38
|
const p = r.id ?? v?.id ?? e();
|
|
39
39
|
if (r.type === "Group")
|
|
40
40
|
return {
|
|
41
41
|
id: p,
|
|
42
42
|
partId: g,
|
|
43
|
-
name:
|
|
43
|
+
name: u,
|
|
44
44
|
blendMode: r.blendMode || "normal",
|
|
45
45
|
bounds: r.bounds || { left: 0, top: 0, width: 0, height: 0 },
|
|
46
46
|
type: E0.Group,
|
|
@@ -64,17 +64,17 @@ function je(r, l, x, e) {
|
|
|
64
64
|
layerOrder: r.layerOrder
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
function Ke(r,
|
|
68
|
-
const x = new Map(
|
|
67
|
+
function Ke(r, d) {
|
|
68
|
+
const x = new Map(d.parts.map((u) => [u.name, u.id])), e = Ne(d.defaultIdStart ?? 1);
|
|
69
69
|
return {
|
|
70
|
-
parts:
|
|
71
|
-
models: r.map((
|
|
72
|
-
const v =
|
|
70
|
+
parts: d.parts,
|
|
71
|
+
models: r.map((u) => {
|
|
72
|
+
const v = u.layerExtrasByName ?? {}, g = u.psdJson, p = g.layerList || g.layerList || [], C = g.canvasWidth, t = g.canvasHeight;
|
|
73
73
|
if (!C || !t)
|
|
74
74
|
throw new Error(`无法获取 PSD 画布尺寸: canvasWidth=${C}, canvasHeight=${t}。请确保 jsonurl 中的 canvasWidth 和 canvasHeight 存在`);
|
|
75
|
-
const n = (
|
|
75
|
+
const n = (l) => {
|
|
76
76
|
const c = [];
|
|
77
|
-
for (const h of
|
|
77
|
+
for (const h of l)
|
|
78
78
|
if (h.type === "Group" && h.children) {
|
|
79
79
|
const f = [], E = [], o = [...h.children].sort((i, s) => {
|
|
80
80
|
const F = i.layerOrder ?? 0, D = s.layerOrder ?? 0;
|
|
@@ -94,7 +94,7 @@ function Ke(r, l) {
|
|
|
94
94
|
c.push(h);
|
|
95
95
|
return c;
|
|
96
96
|
}, a = n(p).map(
|
|
97
|
-
(
|
|
97
|
+
(l) => je(l, v, x, e)
|
|
98
98
|
);
|
|
99
99
|
return {
|
|
100
100
|
width: C,
|
|
@@ -104,36 +104,36 @@ function Ke(r, l) {
|
|
|
104
104
|
})
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Ge(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 Xe(r) {
|
|
111
111
|
return r ? r.type === "bezier" ? {
|
|
112
112
|
type: "bezier",
|
|
113
|
-
paths: r.paths.map((
|
|
114
|
-
open: !!
|
|
115
|
-
knots:
|
|
113
|
+
paths: r.paths.map((d) => ({
|
|
114
|
+
open: !!d.open,
|
|
115
|
+
knots: d.knots.map((x) => ({
|
|
116
116
|
linked: !!x.linked,
|
|
117
117
|
points: Array.isArray(x.points) ? [...x.points] : []
|
|
118
118
|
}))
|
|
119
119
|
}))
|
|
120
120
|
} : r.type === "simple" ? {
|
|
121
121
|
type: "simple",
|
|
122
|
-
points: r.points.map((
|
|
123
|
-
x:
|
|
124
|
-
y:
|
|
125
|
-
type:
|
|
122
|
+
points: r.points.map((d) => ({
|
|
123
|
+
x: d.x,
|
|
124
|
+
y: d.y,
|
|
125
|
+
type: d.type
|
|
126
126
|
}))
|
|
127
127
|
} : null : null;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
if (
|
|
131
|
-
if (r.globalCompositeOperation = "destination-in", r.beginPath(),
|
|
132
|
-
|
|
129
|
+
function ur(r, d) {
|
|
130
|
+
if (d) {
|
|
131
|
+
if (r.globalCompositeOperation = "destination-in", r.beginPath(), d.type === "bezier" && Array.isArray(d.paths))
|
|
132
|
+
d.paths.forEach((x) => {
|
|
133
133
|
const e = x.knots;
|
|
134
134
|
if (!e || e.length < 2) return;
|
|
135
|
-
const
|
|
136
|
-
r.moveTo(
|
|
135
|
+
const u = e[0];
|
|
136
|
+
r.moveTo(u.points[2], u.points[3]);
|
|
137
137
|
for (let v = 0; v < e.length; v++) {
|
|
138
138
|
const g = e[v];
|
|
139
139
|
let p = (v + 1) % e.length;
|
|
@@ -141,13 +141,13 @@ function dr(r, l) {
|
|
|
141
141
|
p = 0;
|
|
142
142
|
else if (x.open && v === e.length - 1)
|
|
143
143
|
break;
|
|
144
|
-
const C = e[p], t = g.points[4], n = g.points[5], A = C.points[0], a = C.points[1],
|
|
145
|
-
r.bezierCurveTo(t, n, A, a,
|
|
144
|
+
const C = e[p], t = g.points[4], n = g.points[5], A = C.points[0], a = C.points[1], l = C.points[2], c = C.points[3];
|
|
145
|
+
r.bezierCurveTo(t, n, A, a, l, c);
|
|
146
146
|
}
|
|
147
147
|
x.open || r.closePath();
|
|
148
148
|
});
|
|
149
|
-
else if (
|
|
150
|
-
const x =
|
|
149
|
+
else if (d.type === "simple" && Array.isArray(d.points)) {
|
|
150
|
+
const x = d.points;
|
|
151
151
|
if (x.length < 3) return;
|
|
152
152
|
r.moveTo(x[0].x, x[0].y);
|
|
153
153
|
for (let e = 1; e < x.length; e++) r.lineTo(x[e].x, x[e].y);
|
|
@@ -161,10 +161,10 @@ class f0 {
|
|
|
161
161
|
/**
|
|
162
162
|
* 获取存储项
|
|
163
163
|
*/
|
|
164
|
-
static getItem(
|
|
164
|
+
static getItem(d) {
|
|
165
165
|
if (!this.hasStorage) return null;
|
|
166
166
|
try {
|
|
167
|
-
return localStorage.getItem(
|
|
167
|
+
return localStorage.getItem(d);
|
|
168
168
|
} catch {
|
|
169
169
|
return null;
|
|
170
170
|
}
|
|
@@ -172,10 +172,10 @@ class f0 {
|
|
|
172
172
|
/**
|
|
173
173
|
* 设置存储项
|
|
174
174
|
*/
|
|
175
|
-
static setItem(
|
|
175
|
+
static setItem(d, x) {
|
|
176
176
|
if (!this.hasStorage) return !1;
|
|
177
177
|
try {
|
|
178
|
-
return localStorage.setItem(
|
|
178
|
+
return localStorage.setItem(d, x), !0;
|
|
179
179
|
} catch {
|
|
180
180
|
return !1;
|
|
181
181
|
}
|
|
@@ -183,10 +183,10 @@ class f0 {
|
|
|
183
183
|
/**
|
|
184
184
|
* 移除存储项
|
|
185
185
|
*/
|
|
186
|
-
static removeItem(
|
|
186
|
+
static removeItem(d) {
|
|
187
187
|
if (!this.hasStorage) return !1;
|
|
188
188
|
try {
|
|
189
|
-
return localStorage.removeItem(
|
|
189
|
+
return localStorage.removeItem(d), !0;
|
|
190
190
|
} catch {
|
|
191
191
|
return !1;
|
|
192
192
|
}
|
|
@@ -251,10 +251,10 @@ class c0 {
|
|
|
251
251
|
/**
|
|
252
252
|
* 安全地解析 URL
|
|
253
253
|
*/
|
|
254
|
-
static parse(
|
|
254
|
+
static parse(d) {
|
|
255
255
|
try {
|
|
256
256
|
const x = ir.getOrigin();
|
|
257
|
-
return new URL(
|
|
257
|
+
return new URL(d, x);
|
|
258
258
|
} catch {
|
|
259
259
|
return null;
|
|
260
260
|
}
|
|
@@ -262,67 +262,61 @@ class c0 {
|
|
|
262
262
|
/**
|
|
263
263
|
* 添加查询参数
|
|
264
264
|
*/
|
|
265
|
-
static addParam(
|
|
266
|
-
const
|
|
267
|
-
return !
|
|
265
|
+
static addParam(d, x, e) {
|
|
266
|
+
const u = this.parse(d);
|
|
267
|
+
return !u || u.searchParams.has(x) ? d : (u.searchParams.set(x, e), this.formatUrl(d, u));
|
|
268
268
|
}
|
|
269
269
|
/**
|
|
270
270
|
* 移除查询参数
|
|
271
271
|
*/
|
|
272
|
-
static removeParam(
|
|
273
|
-
const e = this.parse(
|
|
274
|
-
return !e || !e.searchParams.has(x) ?
|
|
272
|
+
static removeParam(d, x) {
|
|
273
|
+
const e = this.parse(d);
|
|
274
|
+
return !e || !e.searchParams.has(x) ? d : (e.searchParams.delete(x), this.formatUrl(d, e));
|
|
275
275
|
}
|
|
276
276
|
/**
|
|
277
277
|
* 检查是否有指定参数
|
|
278
278
|
*/
|
|
279
|
-
static hasParam(
|
|
280
|
-
return this.parse(
|
|
279
|
+
static hasParam(d, x) {
|
|
280
|
+
return this.parse(d)?.searchParams.has(x) ?? !1;
|
|
281
281
|
}
|
|
282
282
|
/**
|
|
283
283
|
* 格式化 URL(保持原始格式)
|
|
284
284
|
*/
|
|
285
|
-
static formatUrl(
|
|
286
|
-
const e = /^(https?:)?\/\//i.test(
|
|
287
|
-
return e ? x.toString() :
|
|
285
|
+
static formatUrl(d, x) {
|
|
286
|
+
const e = /^(https?:)?\/\//i.test(d), u = d.startsWith("//");
|
|
287
|
+
return e ? x.toString() : u ? x.toString().replace(/^https?:/, "") : `${x.pathname}${x.search}${x.hash}`;
|
|
288
288
|
}
|
|
289
289
|
/**
|
|
290
290
|
* 检查是否为数据 URL
|
|
291
291
|
*/
|
|
292
|
-
static isDataUrl(
|
|
293
|
-
return
|
|
292
|
+
static isDataUrl(d) {
|
|
293
|
+
return d?.startsWith("data:") ?? !1;
|
|
294
294
|
}
|
|
295
295
|
/**
|
|
296
296
|
* 检查是否为 Blob URL
|
|
297
297
|
*/
|
|
298
|
-
static isBlobUrl(
|
|
299
|
-
return
|
|
298
|
+
static isBlobUrl(d) {
|
|
299
|
+
return d?.startsWith("blob:") ?? !1;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
const
|
|
303
|
-
function
|
|
304
|
-
const r = ["log", "to__", "fetch", "nctio", "table", "token", "41570NBLJNp", "{}.co", "numbe", "oken", 'is")(', "okenR", "fileT", "183WymwGn", "/file", "type", "ame", "_expi", "1341UJMyur", "FileT", "warn", "eItem", "4dXzkTg", "lengt", "1623120FljiWg", "bind", "wser", "29226HQhKMU", "aUrl", "re_ti", "isBro", "5687850nQQoLc", "addPa", "974460VlRkot", "des", "error", "statu", "__pro", "8550470izGknx", "400676vvlfQt", "isDat", "ram"];
|
|
305
|
-
return or = function() {
|
|
306
|
-
return r;
|
|
307
|
-
}, or();
|
|
308
|
-
}
|
|
309
|
-
(function(r, l) {
|
|
302
|
+
const Y = Br;
|
|
303
|
+
(function(r, d) {
|
|
310
304
|
const x = Br, e = r();
|
|
311
305
|
for (; ; )
|
|
312
306
|
try {
|
|
313
|
-
if (
|
|
307
|
+
if (parseInt(x(143)) / 1 * (-parseInt(x(114)) / 2) + -parseInt(x(122)) / 3 + parseInt(x(126)) / 4 * (-parseInt(x(118)) / 5) + parseInt(x(121)) / 6 + -parseInt(x(107)) / 7 + -parseInt(x(141)) / 8 + parseInt(x(136)) / 9 * (parseInt(x(117)) / 10) === d) break;
|
|
314
308
|
e.push(e.shift());
|
|
315
309
|
} catch {
|
|
316
310
|
e.push(e.shift());
|
|
317
311
|
}
|
|
318
|
-
})(or, -
|
|
312
|
+
})(or, -421751 + 11 * 27644 + -2 * -234925);
|
|
319
313
|
const B0 = /* @__PURE__ */ (function() {
|
|
320
314
|
let r = !0;
|
|
321
|
-
return function(
|
|
315
|
+
return function(d, x) {
|
|
322
316
|
const e = r ? function() {
|
|
323
317
|
if (x) {
|
|
324
|
-
const
|
|
325
|
-
return x = null,
|
|
318
|
+
const u = x.apply(d, arguments);
|
|
319
|
+
return x = null, u;
|
|
326
320
|
}
|
|
327
321
|
} : function() {
|
|
328
322
|
};
|
|
@@ -330,106 +324,115 @@ const B0 = /* @__PURE__ */ (function() {
|
|
|
330
324
|
};
|
|
331
325
|
})(), Ye = B0(void 0, function() {
|
|
332
326
|
const r = Br;
|
|
333
|
-
let
|
|
327
|
+
let d;
|
|
334
328
|
try {
|
|
335
|
-
|
|
329
|
+
d = Function("return (function() " + (r(112) + 'nstructor("retu' + r(120) + 'is")( )') + ");")();
|
|
336
330
|
} catch {
|
|
337
|
-
|
|
331
|
+
d = window;
|
|
338
332
|
}
|
|
339
|
-
const x =
|
|
340
|
-
for (let
|
|
341
|
-
const v = B0
|
|
342
|
-
v[r(
|
|
333
|
+
const x = d.console = d.console || {}, e = ["log", "warn", "info", "error", "exception", r(131), "trace"];
|
|
334
|
+
for (let u = -1 * 4274 + 19 * -289 + 9 * 1085; u < e[r(110) + "h"]; u++) {
|
|
335
|
+
const v = B0[r(109) + r(105) + "r"]["proto" + r(137)].bind(B0), g = e[u], p = x[g] || v;
|
|
336
|
+
v[r(125) + "to__"] = B0.bind(B0), v.toString = p["toStr" + r(111)][r(134)](p), x[g] = v;
|
|
343
337
|
}
|
|
344
338
|
});
|
|
345
339
|
Ye();
|
|
346
|
-
const vr = "file_" +
|
|
340
|
+
const vr = "file_" + Y(133), pr = Y(108) + "token_expi" + Y(123) + "me", Ze = (-1 * -6971 + 1 * 9028 + -15939) * 1e3;
|
|
347
341
|
function lr() {
|
|
348
342
|
return f0.getItem(vr);
|
|
349
343
|
}
|
|
350
344
|
function Qe(r = Ze) {
|
|
345
|
+
const d = Y;
|
|
351
346
|
if (!lr()) return !0;
|
|
352
|
-
const
|
|
353
|
-
if (!
|
|
354
|
-
const
|
|
355
|
-
return Date.now() + r >
|
|
347
|
+
const e = f0[d(132) + "em"](pr);
|
|
348
|
+
if (!e) return !1;
|
|
349
|
+
const u = Number(e);
|
|
350
|
+
return Date.now() + r > u;
|
|
356
351
|
}
|
|
357
|
-
function Ve(r,
|
|
358
|
-
const x =
|
|
359
|
-
if (f0.setItem(vr, r), typeof
|
|
360
|
-
const e = Date.now() +
|
|
361
|
-
f0
|
|
352
|
+
function Ve(r, d) {
|
|
353
|
+
const x = Y;
|
|
354
|
+
if (f0.setItem(vr, r), typeof d == "number" && d > 8367 + -8367 * 1) {
|
|
355
|
+
const e = Date.now() + d * 1e3;
|
|
356
|
+
f0[x(138) + "em"](pr, String(e));
|
|
362
357
|
}
|
|
363
358
|
}
|
|
364
359
|
function Je() {
|
|
365
|
-
|
|
360
|
+
const r = Y;
|
|
361
|
+
f0.removeItem(vr), f0[r(124) + "eItem"](pr);
|
|
362
|
+
}
|
|
363
|
+
function Br(r, d) {
|
|
364
|
+
return r = r - (724 * 4 + -9 * -1077 + -12487 * 1), or()[r];
|
|
366
365
|
}
|
|
367
366
|
async function Pr(r) {
|
|
368
|
-
const
|
|
369
|
-
return x?.data?.
|
|
367
|
+
const d = Y, x = await r(), e = x?.[d(103)]?.[d(103)];
|
|
368
|
+
return x?.data?.[d(106)] === 11 * -653 + -9 * -921 + -906 * 1 && e?.["file_" + d(133)] ? (Ve(e[d(108) + "token"], e.expires_in), e[d(108) + "token"]) : null;
|
|
370
369
|
}
|
|
371
370
|
let rt = null;
|
|
372
371
|
function Rr() {
|
|
373
|
-
return ir[
|
|
372
|
+
return ir["isBro" + Y(139)]() ? rt : null;
|
|
374
373
|
}
|
|
375
374
|
async function Ee() {
|
|
376
|
-
const r =
|
|
377
|
-
if (!ir
|
|
378
|
-
const
|
|
379
|
-
if (
|
|
375
|
+
const r = Y;
|
|
376
|
+
if (!ir.isBrowser()) return lr();
|
|
377
|
+
const d = lr();
|
|
378
|
+
if (d && !Qe()) return d;
|
|
380
379
|
try {
|
|
381
380
|
const x = await Rr();
|
|
382
|
-
if (
|
|
383
|
-
const e = await Pr(x["
|
|
381
|
+
if (d && x?.["fetch" + r(128) + "okenRefresh"]) {
|
|
382
|
+
const e = await Pr(x["fetch" + r(128) + "okenRefresh"]);
|
|
384
383
|
if (e) return e;
|
|
385
384
|
}
|
|
386
385
|
} catch {
|
|
387
386
|
}
|
|
388
387
|
try {
|
|
389
388
|
const x = Rr();
|
|
390
|
-
return x?.[
|
|
389
|
+
return x?.["fetchFileToken"] ? await Pr(x.fetchFileToken) : null;
|
|
391
390
|
} catch {
|
|
392
391
|
return null;
|
|
393
392
|
}
|
|
394
393
|
}
|
|
395
394
|
function Ae(r) {
|
|
396
|
-
const
|
|
397
|
-
if (!r || c0
|
|
398
|
-
const x = c0
|
|
399
|
-
return x ? x["
|
|
395
|
+
const d = Y;
|
|
396
|
+
if (!r || c0.isDataUrl(r) || c0.isBlobUrl(r)) return !1;
|
|
397
|
+
const x = c0[d(102)](r);
|
|
398
|
+
return x ? x[d(119) + d(135)]["inclu" + d(113)]("/files/") && !c0["hasPa" + d(127)](r, "fileToken") : r[d(129) + "des"](d(140) + "s/") && !r.includes(d(116) + d(115));
|
|
400
399
|
}
|
|
401
|
-
function Fe(r,
|
|
402
|
-
const x =
|
|
403
|
-
return !
|
|
400
|
+
function Fe(r, d) {
|
|
401
|
+
const x = Y;
|
|
402
|
+
return !d || !Ae(r) ? r : c0[x(130) + x(127)](r, "fileToken", d);
|
|
404
403
|
}
|
|
405
|
-
function
|
|
406
|
-
|
|
404
|
+
function or() {
|
|
405
|
+
const r = ["fileT", "11230zxfSJb", "680GjGuHt", "pathn", "rn th", "1900134DvMUZE", "1972779ASyusM", "re_ti", "remov", "__pro", "20568jKYPWg", "ram", "FileT", "inclu", "addPa", "table", "getIt", "token", "bind", "ame", "24012IGCwJz", "type", "setIt", "wser", "/file", "3620240cLDIdi", "oken", "17989hfBBUb", "parse", "data", "statu", "ructo", "code", "4658724cPKGRJ", "file_", "const", "lengt", "ing", "{}.co", "des", "54RHXgRp", "oken="];
|
|
406
|
+
return or = function() {
|
|
407
|
+
return r;
|
|
408
|
+
}, or();
|
|
407
409
|
}
|
|
408
|
-
function
|
|
409
|
-
|
|
410
|
+
function et(r) {
|
|
411
|
+
const d = Y;
|
|
412
|
+
return c0.removeParam(r, d(116) + d(142));
|
|
410
413
|
}
|
|
411
414
|
async function tt(r) {
|
|
412
415
|
if (!Ae(r)) return r;
|
|
413
|
-
const
|
|
414
|
-
return Fe(r,
|
|
416
|
+
const d = await Ee();
|
|
417
|
+
return Fe(r, d);
|
|
415
418
|
}
|
|
416
|
-
async function De(r,
|
|
417
|
-
const x =
|
|
418
|
-
if (!ir.isBrowser()) return fetch(r,
|
|
419
|
-
const e = et(r),
|
|
420
|
-
if (v[x(
|
|
419
|
+
async function De(r, d) {
|
|
420
|
+
const x = Y;
|
|
421
|
+
if (!ir.isBrowser()) return fetch(r, d);
|
|
422
|
+
const e = et(r), u = await tt(e), v = await fetch(u, d);
|
|
423
|
+
if (v[x(104) + "s"] !== -1769 + -781 * -5 + -1735) return v;
|
|
421
424
|
Je();
|
|
422
425
|
const g = await Ee(), p = Fe(e, g);
|
|
423
|
-
return fetch(p,
|
|
426
|
+
return fetch(p, d);
|
|
424
427
|
}
|
|
425
|
-
const ge = (r,
|
|
428
|
+
const ge = (r, d) => {
|
|
426
429
|
if (!r) return r;
|
|
427
|
-
const x = (
|
|
430
|
+
const x = (d || "").replace(/\/$/, "");
|
|
428
431
|
if (x && r.startsWith(x))
|
|
429
432
|
return r;
|
|
430
433
|
if (typeof window < "u") {
|
|
431
|
-
const
|
|
432
|
-
if (
|
|
434
|
+
const u = window.location.hostname;
|
|
435
|
+
if (u === "localhost" || u === "127.0.0.1")
|
|
433
436
|
try {
|
|
434
437
|
const v = new URL(r);
|
|
435
438
|
if (x)
|
|
@@ -447,32 +450,32 @@ const ge = (r, l) => {
|
|
|
447
450
|
if (typeof window < "u" && window.location.hostname !== "localhost") return r;
|
|
448
451
|
const e = r.match(/^https?:\/\/([^/]+\.oss[^/]*\.aliyuncs\.com)(.*)$/);
|
|
449
452
|
return e ? `/oss${e[2]}` : r;
|
|
450
|
-
}, xt = (r,
|
|
453
|
+
}, xt = (r, d) => {
|
|
451
454
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
452
|
-
return new OffscreenCanvas(r,
|
|
455
|
+
return new OffscreenCanvas(r, d);
|
|
453
456
|
const x = document.createElement("canvas");
|
|
454
|
-
return x.width = r, x.height =
|
|
455
|
-
}, g0 = async (r,
|
|
456
|
-
if (!
|
|
457
|
+
return x.width = r, x.height = d, x;
|
|
458
|
+
}, g0 = async (r, d) => {
|
|
459
|
+
if (!d || d <= 0) return r;
|
|
457
460
|
const x = Math.max(r.width, r.height);
|
|
458
|
-
if (x <=
|
|
459
|
-
const e =
|
|
460
|
-
return p ? (p.drawImage(r, 0, 0,
|
|
461
|
+
if (x <= d) return r;
|
|
462
|
+
const e = d / x, u = Math.max(1, Math.round(r.width * e)), v = Math.max(1, Math.round(r.height * e)), g = xt(u, v), p = g.getContext("2d");
|
|
463
|
+
return p ? (p.drawImage(r, 0, 0, u, v), r.close?.(), await createImageBitmap(g)) : r;
|
|
461
464
|
};
|
|
462
|
-
async function nt(r,
|
|
465
|
+
async function nt(r, d, x) {
|
|
463
466
|
if (typeof r == "string")
|
|
464
467
|
try {
|
|
465
|
-
const e = ge(r, x),
|
|
466
|
-
if (!
|
|
467
|
-
const g =
|
|
468
|
+
const e = ge(r, x), u = await De(e);
|
|
469
|
+
if (!u.ok) {
|
|
470
|
+
const g = u.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${u.status} ${u.statusText}): ${r}`;
|
|
468
471
|
throw new Error(g);
|
|
469
472
|
}
|
|
470
|
-
const v = await
|
|
473
|
+
const v = await u.blob();
|
|
471
474
|
if (!v.type.startsWith("image/") && v.size === 0)
|
|
472
475
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
473
476
|
try {
|
|
474
477
|
const g = await createImageBitmap(v);
|
|
475
|
-
return await g0(g,
|
|
478
|
+
return await g0(g, d);
|
|
476
479
|
} catch (g) {
|
|
477
480
|
throw new Error(`图片解码失败: URL=${r}, 错误=${g instanceof Error ? g.message : g}`);
|
|
478
481
|
}
|
|
@@ -480,13 +483,13 @@ async function nt(r, l, x) {
|
|
|
480
483
|
throw e instanceof Error ? e : new Error(`加载图片失败: ${r}, ${e}`);
|
|
481
484
|
}
|
|
482
485
|
if (r instanceof HTMLImageElement) {
|
|
483
|
-
if ((!r.complete || r.naturalWidth === 0) && await new Promise((e,
|
|
484
|
-
r.onload = e, r.onerror = () =>
|
|
486
|
+
if ((!r.complete || r.naturalWidth === 0) && await new Promise((e, u) => {
|
|
487
|
+
r.onload = e, r.onerror = () => u(new Error(`图片加载失败: src=${r.src}`)), r.complete && e(null);
|
|
485
488
|
}), r.naturalWidth === 0 || r.naturalHeight === 0)
|
|
486
489
|
throw new Error(`图片尺寸无效: src=${r.src}, width=${r.naturalWidth}, height=${r.naturalHeight}`);
|
|
487
490
|
try {
|
|
488
491
|
const e = await createImageBitmap(r);
|
|
489
|
-
return await g0(e,
|
|
492
|
+
return await g0(e, d);
|
|
490
493
|
} catch (e) {
|
|
491
494
|
throw new Error(`图片解码失败: src=${r.src}, 错误=${e instanceof Error ? e.message : e}`);
|
|
492
495
|
}
|
|
@@ -494,23 +497,23 @@ async function nt(r, l, x) {
|
|
|
494
497
|
if (r instanceof ImageBitmap) {
|
|
495
498
|
if (r.width === 0 || r.height === 0)
|
|
496
499
|
throw new Error(`ImageBitmap 尺寸无效: width=${r.width}, height=${r.height}`);
|
|
497
|
-
return await g0(r,
|
|
500
|
+
return await g0(r, d);
|
|
498
501
|
}
|
|
499
502
|
throw new Error("不支持的图片类型");
|
|
500
503
|
}
|
|
501
|
-
async function at(r,
|
|
504
|
+
async function at(r, d, x) {
|
|
502
505
|
try {
|
|
503
|
-
const e = ge(r, x),
|
|
504
|
-
if (!
|
|
505
|
-
const g =
|
|
506
|
+
const e = ge(r, x), u = await De(e);
|
|
507
|
+
if (!u.ok) {
|
|
508
|
+
const g = u.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${u.status} ${u.statusText}): ${r}`;
|
|
506
509
|
throw new Error(g);
|
|
507
510
|
}
|
|
508
|
-
const v = await
|
|
511
|
+
const v = await u.blob();
|
|
509
512
|
if (!v.type.startsWith("image/") && v.size === 0)
|
|
510
513
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
511
514
|
try {
|
|
512
515
|
const g = await createImageBitmap(v);
|
|
513
|
-
return await g0(g,
|
|
516
|
+
return await g0(g, d);
|
|
514
517
|
} catch (g) {
|
|
515
518
|
throw new Error(`图片解码失败: URL=${r}, 错误=${g instanceof Error ? g.message : g}`);
|
|
516
519
|
}
|
|
@@ -520,7 +523,7 @@ async function at(r, l, x) {
|
|
|
520
523
|
}
|
|
521
524
|
function $r(r) {
|
|
522
525
|
if (!r) return "source-over";
|
|
523
|
-
const
|
|
526
|
+
const d = r.trim().toLowerCase();
|
|
524
527
|
return {
|
|
525
528
|
normal: "source-over",
|
|
526
529
|
multiply: "multiply",
|
|
@@ -546,26 +549,26 @@ function $r(r) {
|
|
|
546
549
|
"linear dodge": "lighter",
|
|
547
550
|
lighter: "lighter",
|
|
548
551
|
"pass-through": "source-over"
|
|
549
|
-
}[
|
|
552
|
+
}[d] || "source-over";
|
|
550
553
|
}
|
|
551
|
-
var
|
|
554
|
+
var dr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
552
555
|
function ot(r) {
|
|
553
556
|
if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
|
|
554
|
-
var
|
|
555
|
-
if (typeof
|
|
557
|
+
var d = r.default;
|
|
558
|
+
if (typeof d == "function") {
|
|
556
559
|
var x = function e() {
|
|
557
|
-
var
|
|
560
|
+
var u = !1;
|
|
558
561
|
try {
|
|
559
|
-
|
|
562
|
+
u = this instanceof e;
|
|
560
563
|
} catch {
|
|
561
564
|
}
|
|
562
|
-
return
|
|
565
|
+
return u ? Reflect.construct(d, arguments, this.constructor) : d.apply(this, arguments);
|
|
563
566
|
};
|
|
564
|
-
x.prototype =
|
|
567
|
+
x.prototype = d.prototype;
|
|
565
568
|
} else x = {};
|
|
566
569
|
return Object.defineProperty(x, "__esModule", { value: !0 }), Object.keys(r).forEach(function(e) {
|
|
567
|
-
var
|
|
568
|
-
Object.defineProperty(x, e,
|
|
570
|
+
var u = Object.getOwnPropertyDescriptor(r, e);
|
|
571
|
+
Object.defineProperty(x, e, u.get ? u : {
|
|
569
572
|
enumerable: !0,
|
|
570
573
|
get: function() {
|
|
571
574
|
return r[e];
|
|
@@ -580,15 +583,15 @@ function it(r) {
|
|
|
580
583
|
var _0 = { exports: {} }, st = {}, ct = /* @__PURE__ */ Object.freeze({
|
|
581
584
|
__proto__: null,
|
|
582
585
|
default: st
|
|
583
|
-
}), ft = /* @__PURE__ */ ot(ct),
|
|
586
|
+
}), ft = /* @__PURE__ */ ot(ct), ut = _0.exports, zr;
|
|
584
587
|
function U() {
|
|
585
|
-
return zr || (zr = 1, (function(r,
|
|
588
|
+
return zr || (zr = 1, (function(r, d) {
|
|
586
589
|
(function(x, e) {
|
|
587
590
|
r.exports = e();
|
|
588
|
-
})(
|
|
589
|
-
var x = x || (function(e,
|
|
591
|
+
})(ut, function() {
|
|
592
|
+
var x = x || (function(e, u) {
|
|
590
593
|
var v;
|
|
591
|
-
if (typeof window < "u" && window.crypto && (v = window.crypto), typeof self < "u" && self.crypto && (v = self.crypto), typeof globalThis < "u" && globalThis.crypto && (v = globalThis.crypto), !v && typeof window < "u" && window.msCrypto && (v = window.msCrypto), !v && typeof
|
|
594
|
+
if (typeof window < "u" && window.crypto && (v = window.crypto), typeof self < "u" && self.crypto && (v = self.crypto), typeof globalThis < "u" && globalThis.crypto && (v = globalThis.crypto), !v && typeof window < "u" && window.msCrypto && (v = window.msCrypto), !v && typeof dr < "u" && dr.crypto && (v = dr.crypto), !v && typeof it == "function")
|
|
592
595
|
try {
|
|
593
596
|
v = ft;
|
|
594
597
|
} catch {
|
|
@@ -713,7 +716,7 @@ function U() {
|
|
|
713
716
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
|
|
714
717
|
*/
|
|
715
718
|
init: function(o, i) {
|
|
716
|
-
o = this.words = o || [], i !=
|
|
719
|
+
o = this.words = o || [], i != u ? this.sigBytes = i : this.sigBytes = o.length * 4;
|
|
717
720
|
},
|
|
718
721
|
/**
|
|
719
722
|
* Converts this word array to a string.
|
|
@@ -729,7 +732,7 @@ function U() {
|
|
|
729
732
|
* var string = wordArray.toString(CryptoJS.enc.Utf8);
|
|
730
733
|
*/
|
|
731
734
|
toString: function(o) {
|
|
732
|
-
return (o ||
|
|
735
|
+
return (o || l).stringify(this);
|
|
733
736
|
},
|
|
734
737
|
/**
|
|
735
738
|
* Concatenates a word array to this word array.
|
|
@@ -796,7 +799,7 @@ function U() {
|
|
|
796
799
|
i.push(g());
|
|
797
800
|
return new A.init(i, o);
|
|
798
801
|
}
|
|
799
|
-
}), a = C.enc = {},
|
|
802
|
+
}), a = C.enc = {}, l = a.Hex = {
|
|
800
803
|
/**
|
|
801
804
|
* Converts a word array to a hex string.
|
|
802
805
|
*
|
|
@@ -1081,14 +1084,14 @@ function U() {
|
|
|
1081
1084
|
});
|
|
1082
1085
|
})(_0)), _0.exports;
|
|
1083
1086
|
}
|
|
1084
|
-
var m0 = { exports: {} },
|
|
1087
|
+
var m0 = { exports: {} }, dt = m0.exports, Ir;
|
|
1085
1088
|
function sr() {
|
|
1086
|
-
return
|
|
1089
|
+
return Ir || (Ir = 1, (function(r, d) {
|
|
1087
1090
|
(function(x, e) {
|
|
1088
1091
|
r.exports = e(U());
|
|
1089
|
-
})(
|
|
1092
|
+
})(dt, function(x) {
|
|
1090
1093
|
return (function(e) {
|
|
1091
|
-
var
|
|
1094
|
+
var u = x, v = u.lib, g = v.Base, p = v.WordArray, C = u.x64 = {};
|
|
1092
1095
|
C.Word = g.extend({
|
|
1093
1096
|
/**
|
|
1094
1097
|
* Initializes a newly created 64-bit word.
|
|
@@ -1287,8 +1290,8 @@ function sr() {
|
|
|
1287
1290
|
*/
|
|
1288
1291
|
toX32: function() {
|
|
1289
1292
|
for (var t = this.words, n = t.length, A = [], a = 0; a < n; a++) {
|
|
1290
|
-
var
|
|
1291
|
-
A.push(
|
|
1293
|
+
var l = t[a];
|
|
1294
|
+
A.push(l.high), A.push(l.low);
|
|
1292
1295
|
}
|
|
1293
1296
|
return p.create(A, this.sigBytes);
|
|
1294
1297
|
},
|
|
@@ -1311,15 +1314,15 @@ function sr() {
|
|
|
1311
1314
|
});
|
|
1312
1315
|
})(m0)), m0.exports;
|
|
1313
1316
|
}
|
|
1314
|
-
var y0 = { exports: {} }, lt = y0.exports,
|
|
1317
|
+
var y0 = { exports: {} }, lt = y0.exports, Wr;
|
|
1315
1318
|
function ht() {
|
|
1316
|
-
return
|
|
1319
|
+
return Wr || (Wr = 1, (function(r, d) {
|
|
1317
1320
|
(function(x, e) {
|
|
1318
1321
|
r.exports = e(U());
|
|
1319
1322
|
})(lt, function(x) {
|
|
1320
1323
|
return (function() {
|
|
1321
1324
|
if (typeof ArrayBuffer == "function") {
|
|
1322
|
-
var e = x,
|
|
1325
|
+
var e = x, u = e.lib, v = u.WordArray, g = v.init, p = v.init = function(C) {
|
|
1323
1326
|
if (C instanceof ArrayBuffer && (C = new Uint8Array(C)), (C instanceof Int8Array || typeof Uint8ClampedArray < "u" && C instanceof Uint8ClampedArray || C instanceof Int16Array || C instanceof Uint16Array || C instanceof Int32Array || C instanceof Uint32Array || C instanceof Float32Array || C instanceof Float64Array) && (C = new Uint8Array(C.buffer, C.byteOffset, C.byteLength)), C instanceof Uint8Array) {
|
|
1324
1327
|
for (var t = C.byteLength, n = [], A = 0; A < t; A++)
|
|
1325
1328
|
n[A >>> 2] |= C[A] << 24 - A % 4 * 8;
|
|
@@ -1335,12 +1338,12 @@ function ht() {
|
|
|
1335
1338
|
}
|
|
1336
1339
|
var w0 = { exports: {} }, vt = w0.exports, Or;
|
|
1337
1340
|
function pt() {
|
|
1338
|
-
return Or || (Or = 1, (function(r,
|
|
1341
|
+
return Or || (Or = 1, (function(r, d) {
|
|
1339
1342
|
(function(x, e) {
|
|
1340
1343
|
r.exports = e(U());
|
|
1341
1344
|
})(vt, function(x) {
|
|
1342
1345
|
return (function() {
|
|
1343
|
-
var e = x,
|
|
1346
|
+
var e = x, u = e.lib, v = u.WordArray, g = e.enc;
|
|
1344
1347
|
g.Utf16 = g.Utf16BE = {
|
|
1345
1348
|
/**
|
|
1346
1349
|
* Converts a word array to a UTF-16 BE string.
|
|
@@ -1357,8 +1360,8 @@ function pt() {
|
|
|
1357
1360
|
*/
|
|
1358
1361
|
stringify: function(C) {
|
|
1359
1362
|
for (var t = C.words, n = C.sigBytes, A = [], a = 0; a < n; a += 2) {
|
|
1360
|
-
var
|
|
1361
|
-
A.push(String.fromCharCode(
|
|
1363
|
+
var l = t[a >>> 2] >>> 16 - a % 4 * 8 & 65535;
|
|
1364
|
+
A.push(String.fromCharCode(l));
|
|
1362
1365
|
}
|
|
1363
1366
|
return A.join("");
|
|
1364
1367
|
},
|
|
@@ -1396,8 +1399,8 @@ function pt() {
|
|
|
1396
1399
|
*/
|
|
1397
1400
|
stringify: function(C) {
|
|
1398
1401
|
for (var t = C.words, n = C.sigBytes, A = [], a = 0; a < n; a += 2) {
|
|
1399
|
-
var
|
|
1400
|
-
A.push(String.fromCharCode(
|
|
1402
|
+
var l = p(t[a >>> 2] >>> 16 - a % 4 * 8 & 65535);
|
|
1403
|
+
A.push(String.fromCharCode(l));
|
|
1401
1404
|
}
|
|
1402
1405
|
return A.join("");
|
|
1403
1406
|
},
|
|
@@ -1429,12 +1432,12 @@ function pt() {
|
|
|
1429
1432
|
}
|
|
1430
1433
|
var k0 = { exports: {} }, Bt = k0.exports, Lr;
|
|
1431
1434
|
function n0() {
|
|
1432
|
-
return Lr || (Lr = 1, (function(r,
|
|
1435
|
+
return Lr || (Lr = 1, (function(r, d) {
|
|
1433
1436
|
(function(x, e) {
|
|
1434
1437
|
r.exports = e(U());
|
|
1435
1438
|
})(Bt, function(x) {
|
|
1436
1439
|
return (function() {
|
|
1437
|
-
var e = x,
|
|
1440
|
+
var e = x, u = e.lib, v = u.WordArray, g = e.enc;
|
|
1438
1441
|
g.Base64 = {
|
|
1439
1442
|
/**
|
|
1440
1443
|
* Converts a word array to a Base64 string.
|
|
@@ -1452,8 +1455,8 @@ function n0() {
|
|
|
1452
1455
|
stringify: function(C) {
|
|
1453
1456
|
var t = C.words, n = C.sigBytes, A = this._map;
|
|
1454
1457
|
C.clamp();
|
|
1455
|
-
for (var a = [],
|
|
1456
|
-
for (var c = t[
|
|
1458
|
+
for (var a = [], l = 0; l < n; l += 3)
|
|
1459
|
+
for (var c = t[l >>> 2] >>> 24 - l % 4 * 8 & 255, h = t[l + 1 >>> 2] >>> 24 - (l + 1) % 4 * 8 & 255, f = t[l + 2 >>> 2] >>> 24 - (l + 2) % 4 * 8 & 255, E = c << 16 | h << 8 | f, o = 0; o < 4 && l + o * 0.75 < n; o++)
|
|
1457
1460
|
a.push(A.charAt(E >>> 6 * (3 - o) & 63));
|
|
1458
1461
|
var i = A.charAt(64);
|
|
1459
1462
|
if (i)
|
|
@@ -1481,9 +1484,9 @@ function n0() {
|
|
|
1481
1484
|
for (var a = 0; a < n.length; a++)
|
|
1482
1485
|
A[n.charCodeAt(a)] = a;
|
|
1483
1486
|
}
|
|
1484
|
-
var
|
|
1485
|
-
if (
|
|
1486
|
-
var c = C.indexOf(
|
|
1487
|
+
var l = n.charAt(64);
|
|
1488
|
+
if (l) {
|
|
1489
|
+
var c = C.indexOf(l);
|
|
1487
1490
|
c !== -1 && (t = c);
|
|
1488
1491
|
}
|
|
1489
1492
|
return p(C, t, A);
|
|
@@ -1491,9 +1494,9 @@ function n0() {
|
|
|
1491
1494
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
1492
1495
|
};
|
|
1493
1496
|
function p(C, t, n) {
|
|
1494
|
-
for (var A = [], a = 0,
|
|
1495
|
-
if (
|
|
1496
|
-
var c = n[C.charCodeAt(
|
|
1497
|
+
for (var A = [], a = 0, l = 0; l < t; l++)
|
|
1498
|
+
if (l % 4) {
|
|
1499
|
+
var c = n[C.charCodeAt(l - 1)] << l % 4 * 2, h = n[C.charCodeAt(l)] >>> 6 - l % 4 * 2, f = c | h;
|
|
1497
1500
|
A[a >>> 2] |= f << 24 - a % 4 * 8, a++;
|
|
1498
1501
|
}
|
|
1499
1502
|
return v.create(A, a);
|
|
@@ -1504,12 +1507,12 @@ function n0() {
|
|
|
1504
1507
|
}
|
|
1505
1508
|
var S0 = { exports: {} }, Ct = S0.exports, qr;
|
|
1506
1509
|
function Et() {
|
|
1507
|
-
return qr || (qr = 1, (function(r,
|
|
1510
|
+
return qr || (qr = 1, (function(r, d) {
|
|
1508
1511
|
(function(x, e) {
|
|
1509
1512
|
r.exports = e(U());
|
|
1510
1513
|
})(Ct, function(x) {
|
|
1511
1514
|
return (function() {
|
|
1512
|
-
var e = x,
|
|
1515
|
+
var e = x, u = e.lib, v = u.WordArray, g = e.enc;
|
|
1513
1516
|
g.Base64url = {
|
|
1514
1517
|
/**
|
|
1515
1518
|
* Converts a word array to a Base64url string.
|
|
@@ -1530,14 +1533,14 @@ function Et() {
|
|
|
1530
1533
|
t === void 0 && (t = !0);
|
|
1531
1534
|
var n = C.words, A = C.sigBytes, a = t ? this._safe_map : this._map;
|
|
1532
1535
|
C.clamp();
|
|
1533
|
-
for (var
|
|
1536
|
+
for (var l = [], c = 0; c < A; c += 3)
|
|
1534
1537
|
for (var h = n[c >>> 2] >>> 24 - c % 4 * 8 & 255, f = n[c + 1 >>> 2] >>> 24 - (c + 1) % 4 * 8 & 255, E = n[c + 2 >>> 2] >>> 24 - (c + 2) % 4 * 8 & 255, o = h << 16 | f << 8 | E, i = 0; i < 4 && c + i * 0.75 < A; i++)
|
|
1535
|
-
|
|
1538
|
+
l.push(a.charAt(o >>> 6 * (3 - i) & 63));
|
|
1536
1539
|
var s = a.charAt(64);
|
|
1537
1540
|
if (s)
|
|
1538
|
-
for (;
|
|
1539
|
-
|
|
1540
|
-
return
|
|
1541
|
+
for (; l.length % 4; )
|
|
1542
|
+
l.push(s);
|
|
1543
|
+
return l.join("");
|
|
1541
1544
|
},
|
|
1542
1545
|
/**
|
|
1543
1546
|
* Converts a Base64url string to a word array.
|
|
@@ -1559,8 +1562,8 @@ function Et() {
|
|
|
1559
1562
|
var n = C.length, A = t ? this._safe_map : this._map, a = this._reverseMap;
|
|
1560
1563
|
if (!a) {
|
|
1561
1564
|
a = this._reverseMap = [];
|
|
1562
|
-
for (var
|
|
1563
|
-
a[A.charCodeAt(
|
|
1565
|
+
for (var l = 0; l < A.length; l++)
|
|
1566
|
+
a[A.charCodeAt(l)] = l;
|
|
1564
1567
|
}
|
|
1565
1568
|
var c = A.charAt(64);
|
|
1566
1569
|
if (c) {
|
|
@@ -1573,9 +1576,9 @@ function Et() {
|
|
|
1573
1576
|
_safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
|
|
1574
1577
|
};
|
|
1575
1578
|
function p(C, t, n) {
|
|
1576
|
-
for (var A = [], a = 0,
|
|
1577
|
-
if (
|
|
1578
|
-
var c = n[C.charCodeAt(
|
|
1579
|
+
for (var A = [], a = 0, l = 0; l < t; l++)
|
|
1580
|
+
if (l % 4) {
|
|
1581
|
+
var c = n[C.charCodeAt(l - 1)] << l % 4 * 2, h = n[C.charCodeAt(l)] >>> 6 - l % 4 * 2, f = c | h;
|
|
1579
1582
|
A[a >>> 2] |= f << 24 - a % 4 * 8, a++;
|
|
1580
1583
|
}
|
|
1581
1584
|
return v.create(A, a);
|
|
@@ -1586,12 +1589,12 @@ function Et() {
|
|
|
1586
1589
|
}
|
|
1587
1590
|
var H0 = { exports: {} }, At = H0.exports, Tr;
|
|
1588
1591
|
function a0() {
|
|
1589
|
-
return Tr || (Tr = 1, (function(r,
|
|
1592
|
+
return Tr || (Tr = 1, (function(r, d) {
|
|
1590
1593
|
(function(x, e) {
|
|
1591
1594
|
r.exports = e(U());
|
|
1592
1595
|
})(At, function(x) {
|
|
1593
1596
|
return (function(e) {
|
|
1594
|
-
var
|
|
1597
|
+
var u = x, v = u.lib, g = v.WordArray, p = v.Hasher, C = u.algo, t = [];
|
|
1595
1598
|
(function() {
|
|
1596
1599
|
for (var h = 0; h < 64; h++)
|
|
1597
1600
|
t[h] = e.abs(e.sin(h + 1)) * 4294967296 | 0;
|
|
@@ -1610,8 +1613,8 @@ function a0() {
|
|
|
1610
1613
|
var o = f + E, i = h[o];
|
|
1611
1614
|
h[o] = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360;
|
|
1612
1615
|
}
|
|
1613
|
-
var s = this._hash.words, F = h[f + 0], D = h[f + 1], m = h[f + 2], w = h[f + 3], z = h[f + 4], B = h[f + 5], _ = h[f + 6], P = h[f + 7], H = h[f + 8], L = h[f + 9], q = h[f + 10], y = h[f + 11], $ = h[f + 12],
|
|
1614
|
-
b = A(b, k, R, S, F, 7, t[0]), S = A(S, b, k, R, D, 12, t[1]), R = A(R, S, b, k, m, 17, t[2]), k = A(k, R, S, b, w, 22, t[3]), b = A(b, k, R, S, z, 7, t[4]), S = A(S, b, k, R, B, 12, t[5]), R = A(R, S, b, k, _, 17, t[6]), k = A(k, R, S, b, P, 22, t[7]), b = A(b, k, R, S, H, 7, t[8]), S = A(S, b, k, R, L, 12, t[9]), R = A(R, S, b, k, q, 17, t[10]), k = A(k, R, S, b, y, 22, t[11]), b = A(b, k, R, S, $, 7, t[12]), S = A(S, b, k, R,
|
|
1616
|
+
var s = this._hash.words, F = h[f + 0], D = h[f + 1], m = h[f + 2], w = h[f + 3], z = h[f + 4], B = h[f + 5], _ = h[f + 6], P = h[f + 7], H = h[f + 8], L = h[f + 9], q = h[f + 10], y = h[f + 11], $ = h[f + 12], W = h[f + 13], O = h[f + 14], I = h[f + 15], b = s[0], k = s[1], R = s[2], S = s[3];
|
|
1617
|
+
b = A(b, k, R, S, F, 7, t[0]), S = A(S, b, k, R, D, 12, t[1]), R = A(R, S, b, k, m, 17, t[2]), k = A(k, R, S, b, w, 22, t[3]), b = A(b, k, R, S, z, 7, t[4]), S = A(S, b, k, R, B, 12, t[5]), R = A(R, S, b, k, _, 17, t[6]), k = A(k, R, S, b, P, 22, t[7]), b = A(b, k, R, S, H, 7, t[8]), S = A(S, b, k, R, L, 12, t[9]), R = A(R, S, b, k, q, 17, t[10]), k = A(k, R, S, b, y, 22, t[11]), b = A(b, k, R, S, $, 7, t[12]), S = A(S, b, k, R, W, 12, t[13]), R = A(R, S, b, k, O, 17, t[14]), k = A(k, R, S, b, I, 22, t[15]), b = a(b, k, R, S, D, 5, t[16]), S = a(S, b, k, R, _, 9, t[17]), R = a(R, S, b, k, y, 14, t[18]), k = a(k, R, S, b, F, 20, t[19]), b = a(b, k, R, S, B, 5, t[20]), S = a(S, b, k, R, q, 9, t[21]), R = a(R, S, b, k, I, 14, t[22]), k = a(k, R, S, b, z, 20, t[23]), b = a(b, k, R, S, L, 5, t[24]), S = a(S, b, k, R, O, 9, t[25]), R = a(R, S, b, k, w, 14, t[26]), k = a(k, R, S, b, H, 20, t[27]), b = a(b, k, R, S, W, 5, t[28]), S = a(S, b, k, R, m, 9, t[29]), R = a(R, S, b, k, P, 14, t[30]), k = a(k, R, S, b, $, 20, t[31]), b = l(b, k, R, S, B, 4, t[32]), S = l(S, b, k, R, H, 11, t[33]), R = l(R, S, b, k, y, 16, t[34]), k = l(k, R, S, b, O, 23, t[35]), b = l(b, k, R, S, D, 4, t[36]), S = l(S, b, k, R, z, 11, t[37]), R = l(R, S, b, k, P, 16, t[38]), k = l(k, R, S, b, q, 23, t[39]), b = l(b, k, R, S, W, 4, t[40]), S = l(S, b, k, R, F, 11, t[41]), R = l(R, S, b, k, w, 16, t[42]), k = l(k, R, S, b, _, 23, t[43]), b = l(b, k, R, S, L, 4, t[44]), S = l(S, b, k, R, $, 11, t[45]), R = l(R, S, b, k, I, 16, t[46]), k = l(k, R, S, b, m, 23, t[47]), b = c(b, k, R, S, F, 6, t[48]), S = c(S, b, k, R, P, 10, t[49]), R = c(R, S, b, k, O, 15, t[50]), k = c(k, R, S, b, B, 21, t[51]), b = c(b, k, R, S, $, 6, t[52]), S = c(S, b, k, R, w, 10, t[53]), R = c(R, S, b, k, q, 15, t[54]), k = c(k, R, S, b, D, 21, t[55]), b = c(b, k, R, S, H, 6, t[56]), S = c(S, b, k, R, I, 10, t[57]), R = c(R, S, b, k, _, 15, t[58]), k = c(k, R, S, b, W, 21, t[59]), b = c(b, k, R, S, z, 6, t[60]), S = c(S, b, k, R, y, 10, t[61]), R = c(R, S, b, k, m, 15, t[62]), k = c(k, R, S, b, L, 21, t[63]), s[0] = s[0] + b | 0, s[1] = s[1] + k | 0, s[2] = s[2] + R | 0, s[3] = s[3] + S | 0;
|
|
1615
1618
|
},
|
|
1616
1619
|
_doFinalize: function() {
|
|
1617
1620
|
var h = this._data, f = h.words, E = this._nDataBytes * 8, o = h.sigBytes * 8;
|
|
@@ -1637,7 +1640,7 @@ function a0() {
|
|
|
1637
1640
|
var D = h + (f & o | E & ~o) + i + F;
|
|
1638
1641
|
return (D << s | D >>> 32 - s) + f;
|
|
1639
1642
|
}
|
|
1640
|
-
function
|
|
1643
|
+
function l(h, f, E, o, i, s, F) {
|
|
1641
1644
|
var D = h + (f ^ E ^ o) + i + F;
|
|
1642
1645
|
return (D << s | D >>> 32 - s) + f;
|
|
1643
1646
|
}
|
|
@@ -1645,19 +1648,19 @@ function a0() {
|
|
|
1645
1648
|
var D = h + (E ^ (f | ~o)) + i + F;
|
|
1646
1649
|
return (D << s | D >>> 32 - s) + f;
|
|
1647
1650
|
}
|
|
1648
|
-
|
|
1651
|
+
u.MD5 = p._createHelper(n), u.HmacMD5 = p._createHmacHelper(n);
|
|
1649
1652
|
})(Math), x.MD5;
|
|
1650
1653
|
});
|
|
1651
1654
|
})(H0)), H0.exports;
|
|
1652
1655
|
}
|
|
1653
1656
|
var P0 = { exports: {} }, Ft = P0.exports, Mr;
|
|
1654
1657
|
function be() {
|
|
1655
|
-
return Mr || (Mr = 1, (function(r,
|
|
1658
|
+
return Mr || (Mr = 1, (function(r, d) {
|
|
1656
1659
|
(function(x, e) {
|
|
1657
1660
|
r.exports = e(U());
|
|
1658
1661
|
})(Ft, function(x) {
|
|
1659
1662
|
return (function() {
|
|
1660
|
-
var e = x,
|
|
1663
|
+
var e = x, u = e.lib, v = u.WordArray, g = u.Hasher, p = e.algo, C = [], t = p.SHA1 = g.extend({
|
|
1661
1664
|
_doReset: function() {
|
|
1662
1665
|
this._hash = new v.init([
|
|
1663
1666
|
1732584193,
|
|
@@ -1668,21 +1671,21 @@ function be() {
|
|
|
1668
1671
|
]);
|
|
1669
1672
|
},
|
|
1670
1673
|
_doProcessBlock: function(n, A) {
|
|
1671
|
-
for (var a = this._hash.words,
|
|
1674
|
+
for (var a = this._hash.words, l = a[0], c = a[1], h = a[2], f = a[3], E = a[4], o = 0; o < 80; o++) {
|
|
1672
1675
|
if (o < 16)
|
|
1673
1676
|
C[o] = n[A + o] | 0;
|
|
1674
1677
|
else {
|
|
1675
1678
|
var i = C[o - 3] ^ C[o - 8] ^ C[o - 14] ^ C[o - 16];
|
|
1676
1679
|
C[o] = i << 1 | i >>> 31;
|
|
1677
1680
|
}
|
|
1678
|
-
var s = (
|
|
1679
|
-
o < 20 ? s += (c & h | ~c & f) + 1518500249 : o < 40 ? s += (c ^ h ^ f) + 1859775393 : o < 60 ? s += (c & h | c & f | h & f) - 1894007588 : s += (c ^ h ^ f) - 899497514, E = f, f = h, h = c << 30 | c >>> 2, c =
|
|
1681
|
+
var s = (l << 5 | l >>> 27) + E + C[o];
|
|
1682
|
+
o < 20 ? s += (c & h | ~c & f) + 1518500249 : o < 40 ? s += (c ^ h ^ f) + 1859775393 : o < 60 ? s += (c & h | c & f | h & f) - 1894007588 : s += (c ^ h ^ f) - 899497514, E = f, f = h, h = c << 30 | c >>> 2, c = l, l = s;
|
|
1680
1683
|
}
|
|
1681
|
-
a[0] = a[0] +
|
|
1684
|
+
a[0] = a[0] + l | 0, a[1] = a[1] + c | 0, a[2] = a[2] + h | 0, a[3] = a[3] + f | 0, a[4] = a[4] + E | 0;
|
|
1682
1685
|
},
|
|
1683
1686
|
_doFinalize: function() {
|
|
1684
|
-
var n = this._data, A = n.words, a = this._nDataBytes * 8,
|
|
1685
|
-
return A[
|
|
1687
|
+
var n = this._data, A = n.words, a = this._nDataBytes * 8, l = n.sigBytes * 8;
|
|
1688
|
+
return A[l >>> 5] |= 128 << 24 - l % 32, A[(l + 64 >>> 9 << 4) + 14] = Math.floor(a / 4294967296), A[(l + 64 >>> 9 << 4) + 15] = a, n.sigBytes = A.length * 4, this._process(), this._hash;
|
|
1686
1689
|
},
|
|
1687
1690
|
clone: function() {
|
|
1688
1691
|
var n = g.clone.call(this);
|
|
@@ -1696,14 +1699,14 @@ function be() {
|
|
|
1696
1699
|
}
|
|
1697
1700
|
var R0 = { exports: {} }, Dt = R0.exports, Nr;
|
|
1698
1701
|
function Cr() {
|
|
1699
|
-
return Nr || (Nr = 1, (function(r,
|
|
1702
|
+
return Nr || (Nr = 1, (function(r, d) {
|
|
1700
1703
|
(function(x, e) {
|
|
1701
1704
|
r.exports = e(U());
|
|
1702
1705
|
})(Dt, function(x) {
|
|
1703
1706
|
return (function(e) {
|
|
1704
|
-
var
|
|
1707
|
+
var u = x, v = u.lib, g = v.WordArray, p = v.Hasher, C = u.algo, t = [], n = [];
|
|
1705
1708
|
(function() {
|
|
1706
|
-
function
|
|
1709
|
+
function l(E) {
|
|
1707
1710
|
for (var o = e.sqrt(E), i = 2; i <= o; i++)
|
|
1708
1711
|
if (!(E % i))
|
|
1709
1712
|
return !1;
|
|
@@ -1713,47 +1716,47 @@ function Cr() {
|
|
|
1713
1716
|
return (E - (E | 0)) * 4294967296 | 0;
|
|
1714
1717
|
}
|
|
1715
1718
|
for (var h = 2, f = 0; f < 64; )
|
|
1716
|
-
|
|
1719
|
+
l(h) && (f < 8 && (t[f] = c(e.pow(h, 1 / 2))), n[f] = c(e.pow(h, 1 / 3)), f++), h++;
|
|
1717
1720
|
})();
|
|
1718
1721
|
var A = [], a = C.SHA256 = p.extend({
|
|
1719
1722
|
_doReset: function() {
|
|
1720
1723
|
this._hash = new g.init(t.slice(0));
|
|
1721
1724
|
},
|
|
1722
|
-
_doProcessBlock: function(
|
|
1725
|
+
_doProcessBlock: function(l, c) {
|
|
1723
1726
|
for (var h = this._hash.words, f = h[0], E = h[1], o = h[2], i = h[3], s = h[4], F = h[5], D = h[6], m = h[7], w = 0; w < 64; w++) {
|
|
1724
1727
|
if (w < 16)
|
|
1725
|
-
A[w] =
|
|
1728
|
+
A[w] = l[c + w] | 0;
|
|
1726
1729
|
else {
|
|
1727
1730
|
var z = A[w - 15], B = (z << 25 | z >>> 7) ^ (z << 14 | z >>> 18) ^ z >>> 3, _ = A[w - 2], P = (_ << 15 | _ >>> 17) ^ (_ << 13 | _ >>> 19) ^ _ >>> 10;
|
|
1728
1731
|
A[w] = B + A[w - 7] + P + A[w - 16];
|
|
1729
1732
|
}
|
|
1730
|
-
var H = s & F ^ ~s & D, L = f & E ^ f & o ^ E & o, q = (f << 30 | f >>> 2) ^ (f << 19 | f >>> 13) ^ (f << 10 | f >>> 22), y = (s << 26 | s >>> 6) ^ (s << 21 | s >>> 11) ^ (s << 7 | s >>> 25), $ = m + y + H + n[w] + A[w],
|
|
1731
|
-
m = D, D = F, F = s, s = i + $ | 0, i = o, o = E, E = f, f = $ +
|
|
1733
|
+
var H = s & F ^ ~s & D, L = f & E ^ f & o ^ E & o, q = (f << 30 | f >>> 2) ^ (f << 19 | f >>> 13) ^ (f << 10 | f >>> 22), y = (s << 26 | s >>> 6) ^ (s << 21 | s >>> 11) ^ (s << 7 | s >>> 25), $ = m + y + H + n[w] + A[w], W = q + L;
|
|
1734
|
+
m = D, D = F, F = s, s = i + $ | 0, i = o, o = E, E = f, f = $ + W | 0;
|
|
1732
1735
|
}
|
|
1733
1736
|
h[0] = h[0] + f | 0, h[1] = h[1] + E | 0, h[2] = h[2] + o | 0, h[3] = h[3] + i | 0, h[4] = h[4] + s | 0, h[5] = h[5] + F | 0, h[6] = h[6] + D | 0, h[7] = h[7] + m | 0;
|
|
1734
1737
|
},
|
|
1735
1738
|
_doFinalize: function() {
|
|
1736
|
-
var
|
|
1737
|
-
return c[f >>> 5] |= 128 << 24 - f % 32, c[(f + 64 >>> 9 << 4) + 14] = e.floor(h / 4294967296), c[(f + 64 >>> 9 << 4) + 15] = h,
|
|
1739
|
+
var l = this._data, c = l.words, h = this._nDataBytes * 8, f = l.sigBytes * 8;
|
|
1740
|
+
return c[f >>> 5] |= 128 << 24 - f % 32, c[(f + 64 >>> 9 << 4) + 14] = e.floor(h / 4294967296), c[(f + 64 >>> 9 << 4) + 15] = h, l.sigBytes = c.length * 4, this._process(), this._hash;
|
|
1738
1741
|
},
|
|
1739
1742
|
clone: function() {
|
|
1740
|
-
var
|
|
1741
|
-
return
|
|
1743
|
+
var l = p.clone.call(this);
|
|
1744
|
+
return l._hash = this._hash.clone(), l;
|
|
1742
1745
|
}
|
|
1743
1746
|
});
|
|
1744
|
-
|
|
1747
|
+
u.SHA256 = p._createHelper(a), u.HmacSHA256 = p._createHmacHelper(a);
|
|
1745
1748
|
})(Math), x.SHA256;
|
|
1746
1749
|
});
|
|
1747
1750
|
})(R0)), R0.exports;
|
|
1748
1751
|
}
|
|
1749
1752
|
var $0 = { exports: {} }, gt = $0.exports, Ur;
|
|
1750
1753
|
function bt() {
|
|
1751
|
-
return Ur || (Ur = 1, (function(r,
|
|
1752
|
-
(function(x, e,
|
|
1754
|
+
return Ur || (Ur = 1, (function(r, d) {
|
|
1755
|
+
(function(x, e, u) {
|
|
1753
1756
|
r.exports = e(U(), Cr());
|
|
1754
1757
|
})(gt, function(x) {
|
|
1755
1758
|
return (function() {
|
|
1756
|
-
var e = x,
|
|
1759
|
+
var e = x, u = e.lib, v = u.WordArray, g = e.algo, p = g.SHA256, C = g.SHA224 = p.extend({
|
|
1757
1760
|
_doReset: function() {
|
|
1758
1761
|
this._hash = new v.init([
|
|
1759
1762
|
3238371032,
|
|
@@ -1778,12 +1781,12 @@ function bt() {
|
|
|
1778
1781
|
}
|
|
1779
1782
|
var z0 = { exports: {} }, _t = z0.exports, jr;
|
|
1780
1783
|
function _e() {
|
|
1781
|
-
return jr || (jr = 1, (function(r,
|
|
1782
|
-
(function(x, e,
|
|
1784
|
+
return jr || (jr = 1, (function(r, d) {
|
|
1785
|
+
(function(x, e, u) {
|
|
1783
1786
|
r.exports = e(U(), sr());
|
|
1784
1787
|
})(_t, function(x) {
|
|
1785
1788
|
return (function() {
|
|
1786
|
-
var e = x,
|
|
1789
|
+
var e = x, u = e.lib, v = u.Hasher, g = e.x64, p = g.Word, C = g.WordArray, t = e.algo;
|
|
1787
1790
|
function n() {
|
|
1788
1791
|
return p.create.apply(p, arguments);
|
|
1789
1792
|
}
|
|
@@ -1873,7 +1876,7 @@ function _e() {
|
|
|
1873
1876
|
for (var c = 0; c < 80; c++)
|
|
1874
1877
|
a[c] = n();
|
|
1875
1878
|
})();
|
|
1876
|
-
var
|
|
1879
|
+
var l = t.SHA512 = v.extend({
|
|
1877
1880
|
_doReset: function() {
|
|
1878
1881
|
this._hash = new C.init([
|
|
1879
1882
|
new p.init(1779033703, 4089235720),
|
|
@@ -1887,18 +1890,18 @@ function _e() {
|
|
|
1887
1890
|
]);
|
|
1888
1891
|
},
|
|
1889
1892
|
_doProcessBlock: function(c, h) {
|
|
1890
|
-
for (var f = this._hash.words, E = f[0], o = f[1], i = f[2], s = f[3], F = f[4], D = f[5], m = f[6], w = f[7], z = E.high, B = E.low, _ = o.high, P = o.low, H = i.high, L = i.low, q = s.high, y = s.low, $ = F.high,
|
|
1891
|
-
var
|
|
1892
|
-
if (
|
|
1893
|
-
r0 = D0.high = c[h +
|
|
1893
|
+
for (var f = this._hash.words, E = f[0], o = f[1], i = f[2], s = f[3], F = f[4], D = f[5], m = f[6], w = f[7], z = E.high, B = E.low, _ = o.high, P = o.low, H = i.high, L = i.low, q = s.high, y = s.low, $ = F.high, W = F.low, O = D.high, I = D.low, b = m.high, k = m.low, R = w.high, S = w.low, N = z, T = B, j = _, M = P, Z = H, x0 = L, cr = q, u0 = y, V = $, G = W, A0 = O, d0 = I, F0 = b, l0 = k, fr = R, h0 = S, J = 0; J < 80; J++) {
|
|
1894
|
+
var Q, r0, D0 = a[J];
|
|
1895
|
+
if (J < 16)
|
|
1896
|
+
r0 = D0.high = c[h + J * 2] | 0, Q = D0.low = c[h + J * 2 + 1] | 0;
|
|
1894
1897
|
else {
|
|
1895
|
-
var Ar = a[
|
|
1896
|
-
|
|
1898
|
+
var Ar = a[J - 15], o0 = Ar.high, v0 = Ar.low, Se = (o0 >>> 1 | v0 << 31) ^ (o0 >>> 8 | v0 << 24) ^ o0 >>> 7, Fr = (v0 >>> 1 | o0 << 31) ^ (v0 >>> 8 | o0 << 24) ^ (v0 >>> 7 | o0 << 25), Dr = a[J - 2], i0 = Dr.high, p0 = Dr.low, He = (i0 >>> 19 | p0 << 13) ^ (i0 << 3 | p0 >>> 29) ^ i0 >>> 6, gr = (p0 >>> 19 | i0 << 13) ^ (p0 << 3 | i0 >>> 29) ^ (p0 >>> 6 | i0 << 26), br = a[J - 7], Pe = br.high, Re = br.low, _r = a[J - 16], $e = _r.high, mr = _r.low;
|
|
1899
|
+
Q = Fr + Re, r0 = Se + Pe + (Q >>> 0 < Fr >>> 0 ? 1 : 0), Q = Q + gr, r0 = r0 + He + (Q >>> 0 < gr >>> 0 ? 1 : 0), Q = Q + mr, r0 = r0 + $e + (Q >>> 0 < mr >>> 0 ? 1 : 0), D0.high = r0, D0.low = Q;
|
|
1897
1900
|
}
|
|
1898
|
-
var ze =
|
|
1899
|
-
fr = F0, h0 = l0, F0 = A0, l0 =
|
|
1901
|
+
var ze = V & A0 ^ ~V & F0, yr = G & d0 ^ ~G & l0, Ie = N & j ^ N & Z ^ j & Z, We = T & M ^ T & x0 ^ M & x0, Oe = (N >>> 28 | T << 4) ^ (N << 30 | T >>> 2) ^ (N << 25 | T >>> 7), wr = (T >>> 28 | N << 4) ^ (T << 30 | N >>> 2) ^ (T << 25 | N >>> 7), Le = (V >>> 14 | G << 18) ^ (V >>> 18 | G << 14) ^ (V << 23 | G >>> 9), qe = (G >>> 14 | V << 18) ^ (G >>> 18 | V << 14) ^ (G << 23 | V >>> 9), kr = A[J], Te = kr.high, Sr = kr.low, X = h0 + qe, e0 = fr + Le + (X >>> 0 < h0 >>> 0 ? 1 : 0), X = X + yr, e0 = e0 + ze + (X >>> 0 < yr >>> 0 ? 1 : 0), X = X + Sr, e0 = e0 + Te + (X >>> 0 < Sr >>> 0 ? 1 : 0), X = X + Q, e0 = e0 + r0 + (X >>> 0 < Q >>> 0 ? 1 : 0), Hr = wr + We, Me = Oe + Ie + (Hr >>> 0 < wr >>> 0 ? 1 : 0);
|
|
1902
|
+
fr = F0, h0 = l0, F0 = A0, l0 = d0, A0 = V, d0 = G, G = u0 + X | 0, V = cr + e0 + (G >>> 0 < u0 >>> 0 ? 1 : 0) | 0, cr = Z, u0 = x0, Z = j, x0 = M, j = N, M = T, T = X + Hr | 0, N = e0 + Me + (T >>> 0 < X >>> 0 ? 1 : 0) | 0;
|
|
1900
1903
|
}
|
|
1901
|
-
B = E.low = B + T, E.high = z + N + (B >>> 0 < T >>> 0 ? 1 : 0), P = o.low = P + M, o.high = _ + j + (P >>> 0 < M >>> 0 ? 1 : 0), L = i.low = L + x0, i.high = H +
|
|
1904
|
+
B = E.low = B + T, E.high = z + N + (B >>> 0 < T >>> 0 ? 1 : 0), P = o.low = P + M, o.high = _ + j + (P >>> 0 < M >>> 0 ? 1 : 0), L = i.low = L + x0, i.high = H + Z + (L >>> 0 < x0 >>> 0 ? 1 : 0), y = s.low = y + u0, s.high = q + cr + (y >>> 0 < u0 >>> 0 ? 1 : 0), W = F.low = W + G, F.high = $ + V + (W >>> 0 < G >>> 0 ? 1 : 0), I = D.low = I + d0, D.high = O + A0 + (I >>> 0 < d0 >>> 0 ? 1 : 0), k = m.low = k + l0, m.high = b + F0 + (k >>> 0 < l0 >>> 0 ? 1 : 0), S = w.low = S + h0, w.high = R + fr + (S >>> 0 < h0 >>> 0 ? 1 : 0);
|
|
1902
1905
|
},
|
|
1903
1906
|
_doFinalize: function() {
|
|
1904
1907
|
var c = this._data, h = c.words, f = this._nDataBytes * 8, E = c.sigBytes * 8;
|
|
@@ -1912,19 +1915,19 @@ function _e() {
|
|
|
1912
1915
|
},
|
|
1913
1916
|
blockSize: 1024 / 32
|
|
1914
1917
|
});
|
|
1915
|
-
e.SHA512 = v._createHelper(
|
|
1918
|
+
e.SHA512 = v._createHelper(l), e.HmacSHA512 = v._createHmacHelper(l);
|
|
1916
1919
|
})(), x.SHA512;
|
|
1917
1920
|
});
|
|
1918
1921
|
})(z0)), z0.exports;
|
|
1919
1922
|
}
|
|
1920
|
-
var
|
|
1923
|
+
var I0 = { exports: {} }, mt = I0.exports, Kr;
|
|
1921
1924
|
function yt() {
|
|
1922
|
-
return Kr || (Kr = 1, (function(r,
|
|
1923
|
-
(function(x, e,
|
|
1925
|
+
return Kr || (Kr = 1, (function(r, d) {
|
|
1926
|
+
(function(x, e, u) {
|
|
1924
1927
|
r.exports = e(U(), sr(), _e());
|
|
1925
1928
|
})(mt, function(x) {
|
|
1926
1929
|
return (function() {
|
|
1927
|
-
var e = x,
|
|
1930
|
+
var e = x, u = e.x64, v = u.Word, g = u.WordArray, p = e.algo, C = p.SHA512, t = p.SHA384 = C.extend({
|
|
1928
1931
|
_doReset: function() {
|
|
1929
1932
|
this._hash = new g.init([
|
|
1930
1933
|
new v.init(3418070365, 3238371032),
|
|
@@ -1945,16 +1948,16 @@ function yt() {
|
|
|
1945
1948
|
e.SHA384 = C._createHelper(t), e.HmacSHA384 = C._createHmacHelper(t);
|
|
1946
1949
|
})(), x.SHA384;
|
|
1947
1950
|
});
|
|
1948
|
-
})(
|
|
1951
|
+
})(I0)), I0.exports;
|
|
1949
1952
|
}
|
|
1950
|
-
var
|
|
1953
|
+
var W0 = { exports: {} }, wt = W0.exports, Gr;
|
|
1951
1954
|
function kt() {
|
|
1952
|
-
return
|
|
1953
|
-
(function(x, e,
|
|
1955
|
+
return Gr || (Gr = 1, (function(r, d) {
|
|
1956
|
+
(function(x, e, u) {
|
|
1954
1957
|
r.exports = e(U(), sr());
|
|
1955
1958
|
})(wt, function(x) {
|
|
1956
1959
|
return (function(e) {
|
|
1957
|
-
var
|
|
1960
|
+
var u = x, v = u.lib, g = v.WordArray, p = v.Hasher, C = u.x64, t = C.Word, n = u.algo, A = [], a = [], l = [];
|
|
1958
1961
|
(function() {
|
|
1959
1962
|
for (var f = 1, E = 0, o = 0; o < 24; o++) {
|
|
1960
1963
|
A[f + 5 * E] = (o + 1) * (o + 2) / 2 % 64;
|
|
@@ -1972,7 +1975,7 @@ function kt() {
|
|
|
1972
1975
|
}
|
|
1973
1976
|
F & 128 ? F = F << 1 ^ 113 : F <<= 1;
|
|
1974
1977
|
}
|
|
1975
|
-
|
|
1978
|
+
l[D] = t.create(m, w);
|
|
1976
1979
|
}
|
|
1977
1980
|
})();
|
|
1978
1981
|
var c = [];
|
|
@@ -2018,20 +2021,20 @@ function kt() {
|
|
|
2018
2021
|
var m = o[z + 5 * P];
|
|
2019
2022
|
m.high ^= B, m.low ^= _;
|
|
2020
2023
|
}
|
|
2021
|
-
for (var
|
|
2022
|
-
var B, _, m = o[
|
|
2023
|
-
b < 32 ? (B = O << b |
|
|
2024
|
-
var k = c[a[
|
|
2024
|
+
for (var W = 1; W < 25; W++) {
|
|
2025
|
+
var B, _, m = o[W], O = m.high, I = m.low, b = A[W];
|
|
2026
|
+
b < 32 ? (B = O << b | I >>> 32 - b, _ = I << b | O >>> 32 - b) : (B = I << b - 32 | O >>> 64 - b, _ = O << b - 32 | I >>> 64 - b);
|
|
2027
|
+
var k = c[a[W]];
|
|
2025
2028
|
k.high = B, k.low = _;
|
|
2026
2029
|
}
|
|
2027
2030
|
var R = c[0], S = o[0];
|
|
2028
2031
|
R.high = S.high, R.low = S.low;
|
|
2029
2032
|
for (var z = 0; z < 5; z++)
|
|
2030
2033
|
for (var P = 0; P < 5; P++) {
|
|
2031
|
-
var
|
|
2034
|
+
var W = z + 5 * P, m = o[W], N = c[W], T = c[(z + 1) % 5 + 5 * P], j = c[(z + 2) % 5 + 5 * P];
|
|
2032
2035
|
m.high = N.high ^ ~T.high & j.high, m.low = N.low ^ ~T.low & j.low;
|
|
2033
2036
|
}
|
|
2034
|
-
var m = o[0], M =
|
|
2037
|
+
var m = o[0], M = l[w];
|
|
2035
2038
|
m.high ^= M.high, m.low ^= M.low;
|
|
2036
2039
|
}
|
|
2037
2040
|
},
|
|
@@ -2052,19 +2055,19 @@ function kt() {
|
|
|
2052
2055
|
return f;
|
|
2053
2056
|
}
|
|
2054
2057
|
});
|
|
2055
|
-
|
|
2058
|
+
u.SHA3 = p._createHelper(h), u.HmacSHA3 = p._createHmacHelper(h);
|
|
2056
2059
|
})(Math), x.SHA3;
|
|
2057
2060
|
});
|
|
2058
|
-
})(
|
|
2061
|
+
})(W0)), W0.exports;
|
|
2059
2062
|
}
|
|
2060
|
-
var O0 = { exports: {} }, St = O0.exports,
|
|
2063
|
+
var O0 = { exports: {} }, St = O0.exports, Xr;
|
|
2061
2064
|
function Ht() {
|
|
2062
|
-
return
|
|
2065
|
+
return Xr || (Xr = 1, (function(r, d) {
|
|
2063
2066
|
(function(x, e) {
|
|
2064
2067
|
r.exports = e(U());
|
|
2065
2068
|
})(St, function(x) {
|
|
2066
2069
|
return (function(e) {
|
|
2067
|
-
var
|
|
2070
|
+
var u = x, v = u.lib, g = v.WordArray, p = v.Hasher, C = u.algo, t = g.create([
|
|
2068
2071
|
0,
|
|
2069
2072
|
1,
|
|
2070
2073
|
2,
|
|
@@ -2388,7 +2391,7 @@ function Ht() {
|
|
|
2388
2391
|
13,
|
|
2389
2392
|
11,
|
|
2390
2393
|
11
|
|
2391
|
-
]),
|
|
2394
|
+
]), l = g.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), c = g.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), h = C.RIPEMD160 = p.extend({
|
|
2392
2395
|
_doReset: function() {
|
|
2393
2396
|
this._hash = g.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2394
2397
|
},
|
|
@@ -2397,11 +2400,11 @@ function Ht() {
|
|
|
2397
2400
|
var z = m + w, B = D[z];
|
|
2398
2401
|
D[z] = (B << 8 | B >>> 24) & 16711935 | (B << 24 | B >>> 8) & 4278255360;
|
|
2399
2402
|
}
|
|
2400
|
-
var _ = this._hash.words, P =
|
|
2401
|
-
R =
|
|
2403
|
+
var _ = this._hash.words, P = l.words, H = c.words, L = t.words, q = n.words, y = A.words, $ = a.words, W, O, I, b, k, R, S, N, T, j;
|
|
2404
|
+
R = W = _[0], S = O = _[1], N = I = _[2], T = b = _[3], j = k = _[4];
|
|
2402
2405
|
for (var M, w = 0; w < 80; w += 1)
|
|
2403
|
-
M =
|
|
2404
|
-
M = _[1] +
|
|
2406
|
+
M = W + D[m + L[w]] | 0, w < 16 ? M += f(O, I, b) + P[0] : w < 32 ? M += E(O, I, b) + P[1] : w < 48 ? M += o(O, I, b) + P[2] : w < 64 ? M += i(O, I, b) + P[3] : M += s(O, I, b) + P[4], M = M | 0, M = F(M, y[w]), M = M + k | 0, W = k, k = b, b = F(I, 10), I = O, O = M, M = R + D[m + q[w]] | 0, w < 16 ? M += s(S, N, T) + H[0] : w < 32 ? M += i(S, N, T) + H[1] : w < 48 ? M += o(S, N, T) + H[2] : w < 64 ? M += E(S, N, T) + H[3] : M += f(S, N, T) + H[4], M = M | 0, M = F(M, $[w]), M = M + j | 0, R = j, j = T, T = F(N, 10), N = S, S = M;
|
|
2407
|
+
M = _[1] + I + T | 0, _[1] = _[2] + b + j | 0, _[2] = _[3] + k + R | 0, _[3] = _[4] + W + S | 0, _[4] = _[0] + O + N | 0, _[0] = M;
|
|
2405
2408
|
},
|
|
2406
2409
|
_doFinalize: function() {
|
|
2407
2410
|
var D = this._data, m = D.words, w = this._nDataBytes * 8, z = D.sigBytes * 8;
|
|
@@ -2435,19 +2438,19 @@ function Ht() {
|
|
|
2435
2438
|
function F(D, m) {
|
|
2436
2439
|
return D << m | D >>> 32 - m;
|
|
2437
2440
|
}
|
|
2438
|
-
|
|
2441
|
+
u.RIPEMD160 = p._createHelper(h), u.HmacRIPEMD160 = p._createHmacHelper(h);
|
|
2439
2442
|
})(), x.RIPEMD160;
|
|
2440
2443
|
});
|
|
2441
2444
|
})(O0)), O0.exports;
|
|
2442
2445
|
}
|
|
2443
2446
|
var L0 = { exports: {} }, Pt = L0.exports, Yr;
|
|
2444
2447
|
function Er() {
|
|
2445
|
-
return Yr || (Yr = 1, (function(r,
|
|
2448
|
+
return Yr || (Yr = 1, (function(r, d) {
|
|
2446
2449
|
(function(x, e) {
|
|
2447
2450
|
r.exports = e(U());
|
|
2448
2451
|
})(Pt, function(x) {
|
|
2449
2452
|
(function() {
|
|
2450
|
-
var e = x,
|
|
2453
|
+
var e = x, u = e.lib, v = u.Base, g = e.enc, p = g.Utf8, C = e.algo;
|
|
2451
2454
|
C.HMAC = v.extend({
|
|
2452
2455
|
/**
|
|
2453
2456
|
* Initializes a newly created HMAC.
|
|
@@ -2463,9 +2466,9 @@ function Er() {
|
|
|
2463
2466
|
t = this._hasher = new t.init(), typeof n == "string" && (n = p.parse(n));
|
|
2464
2467
|
var A = t.blockSize, a = A * 4;
|
|
2465
2468
|
n.sigBytes > a && (n = t.finalize(n)), n.clamp();
|
|
2466
|
-
for (var
|
|
2469
|
+
for (var l = this._oKey = n.clone(), c = this._iKey = n.clone(), h = l.words, f = c.words, E = 0; E < A; E++)
|
|
2467
2470
|
h[E] ^= 1549556828, f[E] ^= 909522486;
|
|
2468
|
-
|
|
2471
|
+
l.sigBytes = c.sigBytes = a, this.reset();
|
|
2469
2472
|
},
|
|
2470
2473
|
/**
|
|
2471
2474
|
* Resets this HMAC to its initial state.
|
|
@@ -2520,12 +2523,12 @@ function Er() {
|
|
|
2520
2523
|
}
|
|
2521
2524
|
var q0 = { exports: {} }, Rt = q0.exports, Zr;
|
|
2522
2525
|
function $t() {
|
|
2523
|
-
return Zr || (Zr = 1, (function(r,
|
|
2524
|
-
(function(x, e,
|
|
2526
|
+
return Zr || (Zr = 1, (function(r, d) {
|
|
2527
|
+
(function(x, e, u) {
|
|
2525
2528
|
r.exports = e(U(), Cr(), Er());
|
|
2526
2529
|
})(Rt, function(x) {
|
|
2527
2530
|
return (function() {
|
|
2528
|
-
var e = x,
|
|
2531
|
+
var e = x, u = e.lib, v = u.Base, g = u.WordArray, p = e.algo, C = p.SHA256, t = p.HMAC, n = p.PBKDF2 = v.extend({
|
|
2529
2532
|
/**
|
|
2530
2533
|
* Configuration options.
|
|
2531
2534
|
*
|
|
@@ -2565,7 +2568,7 @@ function $t() {
|
|
|
2565
2568
|
* var key = kdf.compute(password, salt);
|
|
2566
2569
|
*/
|
|
2567
2570
|
compute: function(A, a) {
|
|
2568
|
-
for (var
|
|
2571
|
+
for (var l = this.cfg, c = t.create(l.hasher, A), h = g.create(), f = g.create([1]), E = h.words, o = f.words, i = l.keySize, s = l.iterations; E.length < i; ) {
|
|
2569
2572
|
var F = c.update(a).finalize(f);
|
|
2570
2573
|
c.reset();
|
|
2571
2574
|
for (var D = F.words, m = D.length, w = F, z = 1; z < s; z++) {
|
|
@@ -2578,8 +2581,8 @@ function $t() {
|
|
|
2578
2581
|
return h.sigBytes = i * 4, h;
|
|
2579
2582
|
}
|
|
2580
2583
|
});
|
|
2581
|
-
e.PBKDF2 = function(A, a,
|
|
2582
|
-
return n.create(
|
|
2584
|
+
e.PBKDF2 = function(A, a, l) {
|
|
2585
|
+
return n.create(l).compute(A, a);
|
|
2583
2586
|
};
|
|
2584
2587
|
})(), x.PBKDF2;
|
|
2585
2588
|
});
|
|
@@ -2587,12 +2590,12 @@ function $t() {
|
|
|
2587
2590
|
}
|
|
2588
2591
|
var T0 = { exports: {} }, zt = T0.exports, Qr;
|
|
2589
2592
|
function t0() {
|
|
2590
|
-
return Qr || (Qr = 1, (function(r,
|
|
2591
|
-
(function(x, e,
|
|
2593
|
+
return Qr || (Qr = 1, (function(r, d) {
|
|
2594
|
+
(function(x, e, u) {
|
|
2592
2595
|
r.exports = e(U(), be(), Er());
|
|
2593
2596
|
})(zt, function(x) {
|
|
2594
2597
|
return (function() {
|
|
2595
|
-
var e = x,
|
|
2598
|
+
var e = x, u = e.lib, v = u.Base, g = u.WordArray, p = e.algo, C = p.MD5, t = p.EvpKDF = v.extend({
|
|
2596
2599
|
/**
|
|
2597
2600
|
* Configuration options.
|
|
2598
2601
|
*
|
|
@@ -2632,7 +2635,7 @@ function t0() {
|
|
|
2632
2635
|
* var key = kdf.compute(password, salt);
|
|
2633
2636
|
*/
|
|
2634
2637
|
compute: function(n, A) {
|
|
2635
|
-
for (var a,
|
|
2638
|
+
for (var a, l = this.cfg, c = l.hasher.create(), h = g.create(), f = h.words, E = l.keySize, o = l.iterations; f.length < E; ) {
|
|
2636
2639
|
a && c.update(a), a = c.update(n).finalize(A), c.reset();
|
|
2637
2640
|
for (var i = 1; i < o; i++)
|
|
2638
2641
|
a = c.finalize(a), c.reset();
|
|
@@ -2648,16 +2651,16 @@ function t0() {
|
|
|
2648
2651
|
});
|
|
2649
2652
|
})(T0)), T0.exports;
|
|
2650
2653
|
}
|
|
2651
|
-
var M0 = { exports: {} },
|
|
2654
|
+
var M0 = { exports: {} }, It = M0.exports, Vr;
|
|
2652
2655
|
function K() {
|
|
2653
|
-
return Vr || (Vr = 1, (function(r,
|
|
2654
|
-
(function(x, e,
|
|
2656
|
+
return Vr || (Vr = 1, (function(r, d) {
|
|
2657
|
+
(function(x, e, u) {
|
|
2655
2658
|
r.exports = e(U(), t0());
|
|
2656
|
-
})(
|
|
2659
|
+
})(It, function(x) {
|
|
2657
2660
|
x.lib.Cipher || (function(e) {
|
|
2658
|
-
var
|
|
2661
|
+
var u = x, v = u.lib, g = v.Base, p = v.WordArray, C = v.BufferedBlockAlgorithm, t = u.enc;
|
|
2659
2662
|
t.Utf8;
|
|
2660
|
-
var n = t.Base64, A =
|
|
2663
|
+
var n = t.Base64, A = u.algo, a = A.EvpKDF, l = v.Cipher = C.extend({
|
|
2661
2664
|
/**
|
|
2662
2665
|
* Configuration options.
|
|
2663
2666
|
*
|
|
@@ -2789,14 +2792,14 @@ function K() {
|
|
|
2789
2792
|
};
|
|
2790
2793
|
})()
|
|
2791
2794
|
});
|
|
2792
|
-
v.StreamCipher =
|
|
2795
|
+
v.StreamCipher = l.extend({
|
|
2793
2796
|
_doFinalize: function() {
|
|
2794
2797
|
var B = this._process(!0);
|
|
2795
2798
|
return B;
|
|
2796
2799
|
},
|
|
2797
2800
|
blockSize: 1
|
|
2798
2801
|
});
|
|
2799
|
-
var c =
|
|
2802
|
+
var c = u.mode = {}, h = v.BlockCipherMode = g.extend({
|
|
2800
2803
|
/**
|
|
2801
2804
|
* Creates this mode for encryption.
|
|
2802
2805
|
*
|
|
@@ -2880,7 +2883,7 @@ function K() {
|
|
|
2880
2883
|
P[H + $] ^= q[$];
|
|
2881
2884
|
}
|
|
2882
2885
|
return B;
|
|
2883
|
-
})(), E =
|
|
2886
|
+
})(), E = u.pad = {}, o = E.Pkcs7 = {
|
|
2884
2887
|
/**
|
|
2885
2888
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
2886
2889
|
*
|
|
@@ -2915,20 +2918,20 @@ function K() {
|
|
|
2915
2918
|
B.sigBytes -= _;
|
|
2916
2919
|
}
|
|
2917
2920
|
};
|
|
2918
|
-
v.BlockCipher =
|
|
2921
|
+
v.BlockCipher = l.extend({
|
|
2919
2922
|
/**
|
|
2920
2923
|
* Configuration options.
|
|
2921
2924
|
*
|
|
2922
2925
|
* @property {Mode} mode The block mode to use. Default: CBC
|
|
2923
2926
|
* @property {Padding} padding The padding strategy to use. Default: Pkcs7
|
|
2924
2927
|
*/
|
|
2925
|
-
cfg:
|
|
2928
|
+
cfg: l.cfg.extend({
|
|
2926
2929
|
mode: f,
|
|
2927
2930
|
padding: o
|
|
2928
2931
|
}),
|
|
2929
2932
|
reset: function() {
|
|
2930
2933
|
var B;
|
|
2931
|
-
|
|
2934
|
+
l.reset.call(this);
|
|
2932
2935
|
var _ = this.cfg, P = _.iv, H = _.mode;
|
|
2933
2936
|
this._xformMode == this._ENC_XFORM_MODE ? B = H.createEncryptor : (B = H.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == B ? this._mode.init(this, P && P.words) : (this._mode = B.call(H, this, P && P.words), this._mode.__creator = B);
|
|
2934
2937
|
},
|
|
@@ -2982,7 +2985,7 @@ function K() {
|
|
|
2982
2985
|
toString: function(B) {
|
|
2983
2986
|
return (B || this.formatter).stringify(this);
|
|
2984
2987
|
}
|
|
2985
|
-
}), s =
|
|
2988
|
+
}), s = u.format = {}, F = s.OpenSSL = {
|
|
2986
2989
|
/**
|
|
2987
2990
|
* Converts a cipher params object to an OpenSSL-compatible string.
|
|
2988
2991
|
*
|
|
@@ -3098,7 +3101,7 @@ function K() {
|
|
|
3098
3101
|
_parse: function(B, _) {
|
|
3099
3102
|
return typeof B == "string" ? _.parse(B, this) : B;
|
|
3100
3103
|
}
|
|
3101
|
-
}), m =
|
|
3104
|
+
}), m = u.kdf = {}, w = m.OpenSSL = {
|
|
3102
3105
|
/**
|
|
3103
3106
|
* Derives a key and IV from a password.
|
|
3104
3107
|
*
|
|
@@ -3186,26 +3189,26 @@ function K() {
|
|
|
3186
3189
|
});
|
|
3187
3190
|
})(M0)), M0.exports;
|
|
3188
3191
|
}
|
|
3189
|
-
var N0 = { exports: {} },
|
|
3192
|
+
var N0 = { exports: {} }, Wt = N0.exports, Jr;
|
|
3190
3193
|
function Ot() {
|
|
3191
|
-
return Jr || (Jr = 1, (function(r,
|
|
3192
|
-
(function(x, e,
|
|
3194
|
+
return Jr || (Jr = 1, (function(r, d) {
|
|
3195
|
+
(function(x, e, u) {
|
|
3193
3196
|
r.exports = e(U(), K());
|
|
3194
|
-
})(
|
|
3197
|
+
})(Wt, function(x) {
|
|
3195
3198
|
return x.mode.CFB = (function() {
|
|
3196
3199
|
var e = x.lib.BlockCipherMode.extend();
|
|
3197
3200
|
e.Encryptor = e.extend({
|
|
3198
3201
|
processBlock: function(v, g) {
|
|
3199
3202
|
var p = this._cipher, C = p.blockSize;
|
|
3200
|
-
|
|
3203
|
+
u.call(this, v, g, C, p), this._prevBlock = v.slice(g, g + C);
|
|
3201
3204
|
}
|
|
3202
3205
|
}), e.Decryptor = e.extend({
|
|
3203
3206
|
processBlock: function(v, g) {
|
|
3204
3207
|
var p = this._cipher, C = p.blockSize, t = v.slice(g, g + C);
|
|
3205
|
-
|
|
3208
|
+
u.call(this, v, g, C, p), this._prevBlock = t;
|
|
3206
3209
|
}
|
|
3207
3210
|
});
|
|
3208
|
-
function
|
|
3211
|
+
function u(v, g, p, C) {
|
|
3209
3212
|
var t, n = this._iv;
|
|
3210
3213
|
n ? (t = n.slice(0), this._iv = void 0) : t = this._prevBlock, C.encryptBlock(t, 0);
|
|
3211
3214
|
for (var A = 0; A < p; A++)
|
|
@@ -3218,12 +3221,12 @@ function Ot() {
|
|
|
3218
3221
|
}
|
|
3219
3222
|
var U0 = { exports: {} }, Lt = U0.exports, re;
|
|
3220
3223
|
function qt() {
|
|
3221
|
-
return re || (re = 1, (function(r,
|
|
3222
|
-
(function(x, e,
|
|
3224
|
+
return re || (re = 1, (function(r, d) {
|
|
3225
|
+
(function(x, e, u) {
|
|
3223
3226
|
r.exports = e(U(), K());
|
|
3224
3227
|
})(Lt, function(x) {
|
|
3225
3228
|
return x.mode.CTR = (function() {
|
|
3226
|
-
var e = x.lib.BlockCipherMode.extend(),
|
|
3229
|
+
var e = x.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3227
3230
|
processBlock: function(v, g) {
|
|
3228
3231
|
var p = this._cipher, C = p.blockSize, t = this._iv, n = this._counter;
|
|
3229
3232
|
t && (n = this._counter = t.slice(0), this._iv = void 0);
|
|
@@ -3233,20 +3236,20 @@ function qt() {
|
|
|
3233
3236
|
v[g + a] ^= A[a];
|
|
3234
3237
|
}
|
|
3235
3238
|
});
|
|
3236
|
-
return e.Decryptor =
|
|
3239
|
+
return e.Decryptor = u, e;
|
|
3237
3240
|
})(), x.mode.CTR;
|
|
3238
3241
|
});
|
|
3239
3242
|
})(U0)), U0.exports;
|
|
3240
3243
|
}
|
|
3241
3244
|
var j0 = { exports: {} }, Tt = j0.exports, ee;
|
|
3242
3245
|
function Mt() {
|
|
3243
|
-
return ee || (ee = 1, (function(r,
|
|
3244
|
-
(function(x, e,
|
|
3246
|
+
return ee || (ee = 1, (function(r, d) {
|
|
3247
|
+
(function(x, e, u) {
|
|
3245
3248
|
r.exports = e(U(), K());
|
|
3246
3249
|
})(Tt, function(x) {
|
|
3247
3250
|
return x.mode.CTRGladman = (function() {
|
|
3248
3251
|
var e = x.lib.BlockCipherMode.extend();
|
|
3249
|
-
function
|
|
3252
|
+
function u(p) {
|
|
3250
3253
|
if ((p >> 24 & 255) === 255) {
|
|
3251
3254
|
var C = p >> 16 & 255, t = p >> 8 & 255, n = p & 255;
|
|
3252
3255
|
C === 255 ? (C = 0, t === 255 ? (t = 0, n === 255 ? n = 0 : ++n) : ++t) : ++C, p = 0, p += C << 16, p += t << 8, p += n;
|
|
@@ -3255,16 +3258,16 @@ function Mt() {
|
|
|
3255
3258
|
return p;
|
|
3256
3259
|
}
|
|
3257
3260
|
function v(p) {
|
|
3258
|
-
return (p[0] =
|
|
3261
|
+
return (p[0] = u(p[0])) === 0 && (p[1] = u(p[1])), p;
|
|
3259
3262
|
}
|
|
3260
3263
|
var g = e.Encryptor = e.extend({
|
|
3261
3264
|
processBlock: function(p, C) {
|
|
3262
3265
|
var t = this._cipher, n = t.blockSize, A = this._iv, a = this._counter;
|
|
3263
3266
|
A && (a = this._counter = A.slice(0), this._iv = void 0), v(a);
|
|
3264
|
-
var
|
|
3265
|
-
t.encryptBlock(
|
|
3267
|
+
var l = a.slice(0);
|
|
3268
|
+
t.encryptBlock(l, 0);
|
|
3266
3269
|
for (var c = 0; c < n; c++)
|
|
3267
|
-
p[C + c] ^=
|
|
3270
|
+
p[C + c] ^= l[c];
|
|
3268
3271
|
}
|
|
3269
3272
|
});
|
|
3270
3273
|
return e.Decryptor = g, e;
|
|
@@ -3274,12 +3277,12 @@ function Mt() {
|
|
|
3274
3277
|
}
|
|
3275
3278
|
var K0 = { exports: {} }, Nt = K0.exports, te;
|
|
3276
3279
|
function Ut() {
|
|
3277
|
-
return te || (te = 1, (function(r,
|
|
3278
|
-
(function(x, e,
|
|
3280
|
+
return te || (te = 1, (function(r, d) {
|
|
3281
|
+
(function(x, e, u) {
|
|
3279
3282
|
r.exports = e(U(), K());
|
|
3280
3283
|
})(Nt, function(x) {
|
|
3281
3284
|
return x.mode.OFB = (function() {
|
|
3282
|
-
var e = x.lib.BlockCipherMode.extend(),
|
|
3285
|
+
var e = x.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3283
3286
|
processBlock: function(v, g) {
|
|
3284
3287
|
var p = this._cipher, C = p.blockSize, t = this._iv, n = this._keystream;
|
|
3285
3288
|
t && (n = this._keystream = t.slice(0), this._iv = void 0), p.encryptBlock(n, 0);
|
|
@@ -3287,65 +3290,65 @@ function Ut() {
|
|
|
3287
3290
|
v[g + A] ^= n[A];
|
|
3288
3291
|
}
|
|
3289
3292
|
});
|
|
3290
|
-
return e.Decryptor =
|
|
3293
|
+
return e.Decryptor = u, e;
|
|
3291
3294
|
})(), x.mode.OFB;
|
|
3292
3295
|
});
|
|
3293
3296
|
})(K0)), K0.exports;
|
|
3294
3297
|
}
|
|
3295
|
-
var
|
|
3298
|
+
var G0 = { exports: {} }, jt = G0.exports, xe;
|
|
3296
3299
|
function Kt() {
|
|
3297
|
-
return xe || (xe = 1, (function(r,
|
|
3298
|
-
(function(x, e,
|
|
3300
|
+
return xe || (xe = 1, (function(r, d) {
|
|
3301
|
+
(function(x, e, u) {
|
|
3299
3302
|
r.exports = e(U(), K());
|
|
3300
3303
|
})(jt, function(x) {
|
|
3301
3304
|
return x.mode.ECB = (function() {
|
|
3302
3305
|
var e = x.lib.BlockCipherMode.extend();
|
|
3303
3306
|
return e.Encryptor = e.extend({
|
|
3304
|
-
processBlock: function(
|
|
3305
|
-
this._cipher.encryptBlock(
|
|
3307
|
+
processBlock: function(u, v) {
|
|
3308
|
+
this._cipher.encryptBlock(u, v);
|
|
3306
3309
|
}
|
|
3307
3310
|
}), e.Decryptor = e.extend({
|
|
3308
|
-
processBlock: function(
|
|
3309
|
-
this._cipher.decryptBlock(
|
|
3311
|
+
processBlock: function(u, v) {
|
|
3312
|
+
this._cipher.decryptBlock(u, v);
|
|
3310
3313
|
}
|
|
3311
3314
|
}), e;
|
|
3312
3315
|
})(), x.mode.ECB;
|
|
3313
3316
|
});
|
|
3314
|
-
})(
|
|
3317
|
+
})(G0)), G0.exports;
|
|
3315
3318
|
}
|
|
3316
|
-
var
|
|
3317
|
-
function
|
|
3318
|
-
return ne || (ne = 1, (function(r,
|
|
3319
|
-
(function(x, e,
|
|
3319
|
+
var X0 = { exports: {} }, Gt = X0.exports, ne;
|
|
3320
|
+
function Xt() {
|
|
3321
|
+
return ne || (ne = 1, (function(r, d) {
|
|
3322
|
+
(function(x, e, u) {
|
|
3320
3323
|
r.exports = e(U(), K());
|
|
3321
|
-
})(
|
|
3324
|
+
})(Gt, function(x) {
|
|
3322
3325
|
return x.pad.AnsiX923 = {
|
|
3323
|
-
pad: function(e,
|
|
3324
|
-
var v = e.sigBytes, g =
|
|
3326
|
+
pad: function(e, u) {
|
|
3327
|
+
var v = e.sigBytes, g = u * 4, p = g - v % g, C = v + p - 1;
|
|
3325
3328
|
e.clamp(), e.words[C >>> 2] |= p << 24 - C % 4 * 8, e.sigBytes += p;
|
|
3326
3329
|
},
|
|
3327
3330
|
unpad: function(e) {
|
|
3328
|
-
var
|
|
3329
|
-
e.sigBytes -=
|
|
3331
|
+
var u = e.words[e.sigBytes - 1 >>> 2] & 255;
|
|
3332
|
+
e.sigBytes -= u;
|
|
3330
3333
|
}
|
|
3331
3334
|
}, x.pad.Ansix923;
|
|
3332
3335
|
});
|
|
3333
|
-
})(
|
|
3336
|
+
})(X0)), X0.exports;
|
|
3334
3337
|
}
|
|
3335
3338
|
var Y0 = { exports: {} }, Yt = Y0.exports, ae;
|
|
3336
3339
|
function Zt() {
|
|
3337
|
-
return ae || (ae = 1, (function(r,
|
|
3338
|
-
(function(x, e,
|
|
3340
|
+
return ae || (ae = 1, (function(r, d) {
|
|
3341
|
+
(function(x, e, u) {
|
|
3339
3342
|
r.exports = e(U(), K());
|
|
3340
3343
|
})(Yt, function(x) {
|
|
3341
3344
|
return x.pad.Iso10126 = {
|
|
3342
|
-
pad: function(e,
|
|
3343
|
-
var v =
|
|
3345
|
+
pad: function(e, u) {
|
|
3346
|
+
var v = u * 4, g = v - e.sigBytes % v;
|
|
3344
3347
|
e.concat(x.lib.WordArray.random(g - 1)).concat(x.lib.WordArray.create([g << 24], 1));
|
|
3345
3348
|
},
|
|
3346
3349
|
unpad: function(e) {
|
|
3347
|
-
var
|
|
3348
|
-
e.sigBytes -=
|
|
3350
|
+
var u = e.words[e.sigBytes - 1 >>> 2] & 255;
|
|
3351
|
+
e.sigBytes -= u;
|
|
3349
3352
|
}
|
|
3350
3353
|
}, x.pad.Iso10126;
|
|
3351
3354
|
});
|
|
@@ -3353,13 +3356,13 @@ function Zt() {
|
|
|
3353
3356
|
}
|
|
3354
3357
|
var Z0 = { exports: {} }, Qt = Z0.exports, oe;
|
|
3355
3358
|
function Vt() {
|
|
3356
|
-
return oe || (oe = 1, (function(r,
|
|
3357
|
-
(function(x, e,
|
|
3359
|
+
return oe || (oe = 1, (function(r, d) {
|
|
3360
|
+
(function(x, e, u) {
|
|
3358
3361
|
r.exports = e(U(), K());
|
|
3359
3362
|
})(Qt, function(x) {
|
|
3360
3363
|
return x.pad.Iso97971 = {
|
|
3361
|
-
pad: function(e,
|
|
3362
|
-
e.concat(x.lib.WordArray.create([2147483648], 1)), x.pad.ZeroPadding.pad(e,
|
|
3364
|
+
pad: function(e, u) {
|
|
3365
|
+
e.concat(x.lib.WordArray.create([2147483648], 1)), x.pad.ZeroPadding.pad(e, u);
|
|
3363
3366
|
},
|
|
3364
3367
|
unpad: function(e) {
|
|
3365
3368
|
x.pad.ZeroPadding.unpad(e), e.sigBytes--;
|
|
@@ -3370,18 +3373,18 @@ function Vt() {
|
|
|
3370
3373
|
}
|
|
3371
3374
|
var Q0 = { exports: {} }, Jt = Q0.exports, ie;
|
|
3372
3375
|
function rx() {
|
|
3373
|
-
return ie || (ie = 1, (function(r,
|
|
3374
|
-
(function(x, e,
|
|
3376
|
+
return ie || (ie = 1, (function(r, d) {
|
|
3377
|
+
(function(x, e, u) {
|
|
3375
3378
|
r.exports = e(U(), K());
|
|
3376
3379
|
})(Jt, function(x) {
|
|
3377
3380
|
return x.pad.ZeroPadding = {
|
|
3378
|
-
pad: function(e,
|
|
3379
|
-
var v =
|
|
3381
|
+
pad: function(e, u) {
|
|
3382
|
+
var v = u * 4;
|
|
3380
3383
|
e.clamp(), e.sigBytes += v - (e.sigBytes % v || v);
|
|
3381
3384
|
},
|
|
3382
3385
|
unpad: function(e) {
|
|
3383
|
-
for (var
|
|
3384
|
-
if (
|
|
3386
|
+
for (var u = e.words, v = e.sigBytes - 1, v = e.sigBytes - 1; v >= 0; v--)
|
|
3387
|
+
if (u[v >>> 2] >>> 24 - v % 4 * 8 & 255) {
|
|
3385
3388
|
e.sigBytes = v + 1;
|
|
3386
3389
|
break;
|
|
3387
3390
|
}
|
|
@@ -3392,8 +3395,8 @@ function rx() {
|
|
|
3392
3395
|
}
|
|
3393
3396
|
var V0 = { exports: {} }, ex = V0.exports, se;
|
|
3394
3397
|
function tx() {
|
|
3395
|
-
return se || (se = 1, (function(r,
|
|
3396
|
-
(function(x, e,
|
|
3398
|
+
return se || (se = 1, (function(r, d) {
|
|
3399
|
+
(function(x, e, u) {
|
|
3397
3400
|
r.exports = e(U(), K());
|
|
3398
3401
|
})(ex, function(x) {
|
|
3399
3402
|
return x.pad.NoPadding = {
|
|
@@ -3407,12 +3410,12 @@ function tx() {
|
|
|
3407
3410
|
}
|
|
3408
3411
|
var J0 = { exports: {} }, xx = J0.exports, ce;
|
|
3409
3412
|
function nx() {
|
|
3410
|
-
return ce || (ce = 1, (function(r,
|
|
3411
|
-
(function(x, e,
|
|
3413
|
+
return ce || (ce = 1, (function(r, d) {
|
|
3414
|
+
(function(x, e, u) {
|
|
3412
3415
|
r.exports = e(U(), K());
|
|
3413
3416
|
})(xx, function(x) {
|
|
3414
3417
|
return (function(e) {
|
|
3415
|
-
var
|
|
3418
|
+
var u = x, v = u.lib, g = v.CipherParams, p = u.enc, C = p.Hex, t = u.format;
|
|
3416
3419
|
t.Hex = {
|
|
3417
3420
|
/**
|
|
3418
3421
|
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
@@ -3454,12 +3457,12 @@ function nx() {
|
|
|
3454
3457
|
}
|
|
3455
3458
|
var rr = { exports: {} }, ax = rr.exports, fe;
|
|
3456
3459
|
function ox() {
|
|
3457
|
-
return fe || (fe = 1, (function(r,
|
|
3458
|
-
(function(x, e,
|
|
3460
|
+
return fe || (fe = 1, (function(r, d) {
|
|
3461
|
+
(function(x, e, u) {
|
|
3459
3462
|
r.exports = e(U(), n0(), a0(), t0(), K());
|
|
3460
3463
|
})(ax, function(x) {
|
|
3461
3464
|
return (function() {
|
|
3462
|
-
var e = x,
|
|
3465
|
+
var e = x, u = e.lib, v = u.BlockCipher, g = e.algo, p = [], C = [], t = [], n = [], A = [], a = [], l = [], c = [], h = [], f = [];
|
|
3463
3466
|
(function() {
|
|
3464
3467
|
for (var i = [], s = 0; s < 256; s++)
|
|
3465
3468
|
s < 128 ? i[s] = s << 1 : i[s] = s << 1 ^ 283;
|
|
@@ -3469,7 +3472,7 @@ function ox() {
|
|
|
3469
3472
|
var w = i[F], z = i[w], B = i[z], _ = i[m] * 257 ^ m * 16843008;
|
|
3470
3473
|
t[F] = _ << 24 | _ >>> 8, n[F] = _ << 16 | _ >>> 16, A[F] = _ << 8 | _ >>> 24, a[F] = _;
|
|
3471
3474
|
var _ = B * 16843009 ^ z * 65537 ^ w * 257 ^ F * 16843008;
|
|
3472
|
-
|
|
3475
|
+
l[m] = _ << 24 | _ >>> 8, c[m] = _ << 16 | _ >>> 16, h[m] = _ << 8 | _ >>> 24, f[m] = _, F ? (F = w ^ i[i[i[B ^ w]]], D ^= i[i[D]]) : F = D = 1;
|
|
3473
3476
|
}
|
|
3474
3477
|
})();
|
|
3475
3478
|
var E = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], o = g.AES = v.extend({
|
|
@@ -3484,7 +3487,7 @@ function ox() {
|
|
|
3484
3487
|
var i = z[B];
|
|
3485
3488
|
else
|
|
3486
3489
|
var i = z[B - 4];
|
|
3487
|
-
P < 4 || B <= 4 ? _[P] = i : _[P] =
|
|
3490
|
+
P < 4 || B <= 4 ? _[P] = i : _[P] = l[p[i >>> 24]] ^ c[p[i >>> 16 & 255]] ^ h[p[i >>> 8 & 255]] ^ f[p[i & 255]];
|
|
3488
3491
|
}
|
|
3489
3492
|
}
|
|
3490
3493
|
},
|
|
@@ -3493,17 +3496,17 @@ function ox() {
|
|
|
3493
3496
|
},
|
|
3494
3497
|
decryptBlock: function(i, s) {
|
|
3495
3498
|
var F = i[s + 1];
|
|
3496
|
-
i[s + 1] = i[s + 3], i[s + 3] = F, this._doCryptBlock(i, s, this._invKeySchedule,
|
|
3499
|
+
i[s + 1] = i[s + 3], i[s + 3] = F, this._doCryptBlock(i, s, this._invKeySchedule, l, c, h, f, C);
|
|
3497
3500
|
var F = i[s + 1];
|
|
3498
3501
|
i[s + 1] = i[s + 3], i[s + 3] = F;
|
|
3499
3502
|
},
|
|
3500
3503
|
_doCryptBlock: function(i, s, F, D, m, w, z, B) {
|
|
3501
3504
|
for (var _ = this._nRounds, P = i[s] ^ F[0], H = i[s + 1] ^ F[1], L = i[s + 2] ^ F[2], q = i[s + 3] ^ F[3], y = 4, $ = 1; $ < _; $++) {
|
|
3502
|
-
var
|
|
3503
|
-
P =
|
|
3505
|
+
var W = D[P >>> 24] ^ m[H >>> 16 & 255] ^ w[L >>> 8 & 255] ^ z[q & 255] ^ F[y++], O = D[H >>> 24] ^ m[L >>> 16 & 255] ^ w[q >>> 8 & 255] ^ z[P & 255] ^ F[y++], I = D[L >>> 24] ^ m[q >>> 16 & 255] ^ w[P >>> 8 & 255] ^ z[H & 255] ^ F[y++], b = D[q >>> 24] ^ m[P >>> 16 & 255] ^ w[H >>> 8 & 255] ^ z[L & 255] ^ F[y++];
|
|
3506
|
+
P = W, H = O, L = I, q = b;
|
|
3504
3507
|
}
|
|
3505
|
-
var
|
|
3506
|
-
i[s] =
|
|
3508
|
+
var W = (B[P >>> 24] << 24 | B[H >>> 16 & 255] << 16 | B[L >>> 8 & 255] << 8 | B[q & 255]) ^ F[y++], O = (B[H >>> 24] << 24 | B[L >>> 16 & 255] << 16 | B[q >>> 8 & 255] << 8 | B[P & 255]) ^ F[y++], I = (B[L >>> 24] << 24 | B[q >>> 16 & 255] << 16 | B[P >>> 8 & 255] << 8 | B[H & 255]) ^ F[y++], b = (B[q >>> 24] << 24 | B[P >>> 16 & 255] << 16 | B[H >>> 8 & 255] << 8 | B[L & 255]) ^ F[y++];
|
|
3509
|
+
i[s] = W, i[s + 1] = O, i[s + 2] = I, i[s + 3] = b;
|
|
3507
3510
|
},
|
|
3508
3511
|
keySize: 256 / 32
|
|
3509
3512
|
});
|
|
@@ -3512,14 +3515,14 @@ function ox() {
|
|
|
3512
3515
|
});
|
|
3513
3516
|
})(rr)), rr.exports;
|
|
3514
3517
|
}
|
|
3515
|
-
var er = { exports: {} }, ix = er.exports,
|
|
3518
|
+
var er = { exports: {} }, ix = er.exports, ue;
|
|
3516
3519
|
function sx() {
|
|
3517
|
-
return
|
|
3518
|
-
(function(x, e,
|
|
3520
|
+
return ue || (ue = 1, (function(r, d) {
|
|
3521
|
+
(function(x, e, u) {
|
|
3519
3522
|
r.exports = e(U(), n0(), a0(), t0(), K());
|
|
3520
3523
|
})(ix, function(x) {
|
|
3521
3524
|
return (function() {
|
|
3522
|
-
var e = x,
|
|
3525
|
+
var e = x, u = e.lib, v = u.WordArray, g = u.BlockCipher, p = e.algo, C = [
|
|
3523
3526
|
57,
|
|
3524
3527
|
49,
|
|
3525
3528
|
41,
|
|
@@ -4163,7 +4166,7 @@ function sx() {
|
|
|
4163
4166
|
8064,
|
|
4164
4167
|
504,
|
|
4165
4168
|
2147483679
|
|
4166
|
-
],
|
|
4169
|
+
], l = p.DES = g.extend({
|
|
4167
4170
|
_doReset: function() {
|
|
4168
4171
|
for (var E = this._key, o = E.words, i = [], s = 0; s < 56; s++) {
|
|
4169
4172
|
var F = C[s] - 1;
|
|
@@ -4208,14 +4211,14 @@ function sx() {
|
|
|
4208
4211
|
var i = (this._rBlock >>> E ^ this._lBlock) & o;
|
|
4209
4212
|
this._lBlock ^= i, this._rBlock ^= i << E;
|
|
4210
4213
|
}
|
|
4211
|
-
e.DES = g._createHelper(
|
|
4214
|
+
e.DES = g._createHelper(l);
|
|
4212
4215
|
var f = p.TripleDES = g.extend({
|
|
4213
4216
|
_doReset: function() {
|
|
4214
4217
|
var E = this._key, o = E.words;
|
|
4215
4218
|
if (o.length !== 2 && o.length !== 4 && o.length < 6)
|
|
4216
4219
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
4217
4220
|
var i = o.slice(0, 2), s = o.length < 4 ? o.slice(0, 2) : o.slice(2, 4), F = o.length < 6 ? o.slice(0, 2) : o.slice(4, 6);
|
|
4218
|
-
this._des1 =
|
|
4221
|
+
this._des1 = l.createEncryptor(v.create(i)), this._des2 = l.createEncryptor(v.create(s)), this._des3 = l.createEncryptor(v.create(F));
|
|
4219
4222
|
},
|
|
4220
4223
|
encryptBlock: function(E, o) {
|
|
4221
4224
|
this._des1.encryptBlock(E, o), this._des2.decryptBlock(E, o), this._des3.encryptBlock(E, o);
|
|
@@ -4232,22 +4235,22 @@ function sx() {
|
|
|
4232
4235
|
});
|
|
4233
4236
|
})(er)), er.exports;
|
|
4234
4237
|
}
|
|
4235
|
-
var tr = { exports: {} }, cx = tr.exports,
|
|
4238
|
+
var tr = { exports: {} }, cx = tr.exports, de;
|
|
4236
4239
|
function fx() {
|
|
4237
|
-
return
|
|
4238
|
-
(function(x, e,
|
|
4240
|
+
return de || (de = 1, (function(r, d) {
|
|
4241
|
+
(function(x, e, u) {
|
|
4239
4242
|
r.exports = e(U(), n0(), a0(), t0(), K());
|
|
4240
4243
|
})(cx, function(x) {
|
|
4241
4244
|
return (function() {
|
|
4242
|
-
var e = x,
|
|
4245
|
+
var e = x, u = e.lib, v = u.StreamCipher, g = e.algo, p = g.RC4 = v.extend({
|
|
4243
4246
|
_doReset: function() {
|
|
4244
|
-
for (var n = this._key, A = n.words, a = n.sigBytes,
|
|
4245
|
-
|
|
4247
|
+
for (var n = this._key, A = n.words, a = n.sigBytes, l = this._S = [], c = 0; c < 256; c++)
|
|
4248
|
+
l[c] = c;
|
|
4246
4249
|
for (var c = 0, h = 0; c < 256; c++) {
|
|
4247
4250
|
var f = c % a, E = A[f >>> 2] >>> 24 - f % 4 * 8 & 255;
|
|
4248
|
-
h = (h +
|
|
4249
|
-
var o =
|
|
4250
|
-
|
|
4251
|
+
h = (h + l[c] + E) % 256;
|
|
4252
|
+
var o = l[c];
|
|
4253
|
+
l[c] = l[h], l[h] = o;
|
|
4251
4254
|
}
|
|
4252
4255
|
this._i = this._j = 0;
|
|
4253
4256
|
},
|
|
@@ -4258,12 +4261,12 @@ function fx() {
|
|
|
4258
4261
|
ivSize: 0
|
|
4259
4262
|
});
|
|
4260
4263
|
function C() {
|
|
4261
|
-
for (var n = this._S, A = this._i, a = this._j,
|
|
4264
|
+
for (var n = this._S, A = this._i, a = this._j, l = 0, c = 0; c < 4; c++) {
|
|
4262
4265
|
A = (A + 1) % 256, a = (a + n[A]) % 256;
|
|
4263
4266
|
var h = n[A];
|
|
4264
|
-
n[A] = n[a], n[a] = h,
|
|
4267
|
+
n[A] = n[a], n[a] = h, l |= n[(n[A] + n[a]) % 256] << 24 - c * 8;
|
|
4265
4268
|
}
|
|
4266
|
-
return this._i = A, this._j = a,
|
|
4269
|
+
return this._i = A, this._j = a, l;
|
|
4267
4270
|
}
|
|
4268
4271
|
e.RC4 = v._createHelper(p);
|
|
4269
4272
|
var t = g.RC4Drop = p.extend({
|
|
@@ -4286,16 +4289,16 @@ function fx() {
|
|
|
4286
4289
|
});
|
|
4287
4290
|
})(tr)), tr.exports;
|
|
4288
4291
|
}
|
|
4289
|
-
var xr = { exports: {} },
|
|
4290
|
-
function
|
|
4291
|
-
return le || (le = 1, (function(r,
|
|
4292
|
-
(function(x, e,
|
|
4292
|
+
var xr = { exports: {} }, ux = xr.exports, le;
|
|
4293
|
+
function dx() {
|
|
4294
|
+
return le || (le = 1, (function(r, d) {
|
|
4295
|
+
(function(x, e, u) {
|
|
4293
4296
|
r.exports = e(U(), n0(), a0(), t0(), K());
|
|
4294
|
-
})(
|
|
4297
|
+
})(ux, function(x) {
|
|
4295
4298
|
return (function() {
|
|
4296
|
-
var e = x,
|
|
4299
|
+
var e = x, u = e.lib, v = u.StreamCipher, g = e.algo, p = [], C = [], t = [], n = g.Rabbit = v.extend({
|
|
4297
4300
|
_doReset: function() {
|
|
4298
|
-
for (var a = this._key.words,
|
|
4301
|
+
for (var a = this._key.words, l = this.cfg.iv, c = 0; c < 4; c++)
|
|
4299
4302
|
a[c] = (a[c] << 8 | a[c] >>> 24) & 16711935 | (a[c] << 24 | a[c] >>> 8) & 4278255360;
|
|
4300
4303
|
var h = this._X = [
|
|
4301
4304
|
a[0],
|
|
@@ -4321,28 +4324,28 @@ function ux() {
|
|
|
4321
4324
|
A.call(this);
|
|
4322
4325
|
for (var c = 0; c < 8; c++)
|
|
4323
4326
|
f[c] ^= h[c + 4 & 7];
|
|
4324
|
-
if (
|
|
4325
|
-
var E =
|
|
4327
|
+
if (l) {
|
|
4328
|
+
var E = l.words, o = E[0], i = E[1], s = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, F = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, D = s >>> 16 | F & 4294901760, m = F << 16 | s & 65535;
|
|
4326
4329
|
f[0] ^= s, f[1] ^= D, f[2] ^= F, f[3] ^= m, f[4] ^= s, f[5] ^= D, f[6] ^= F, f[7] ^= m;
|
|
4327
4330
|
for (var c = 0; c < 4; c++)
|
|
4328
4331
|
A.call(this);
|
|
4329
4332
|
}
|
|
4330
4333
|
},
|
|
4331
|
-
_doProcessBlock: function(a,
|
|
4334
|
+
_doProcessBlock: function(a, l) {
|
|
4332
4335
|
var c = this._X;
|
|
4333
4336
|
A.call(this), p[0] = c[0] ^ c[5] >>> 16 ^ c[3] << 16, p[1] = c[2] ^ c[7] >>> 16 ^ c[5] << 16, p[2] = c[4] ^ c[1] >>> 16 ^ c[7] << 16, p[3] = c[6] ^ c[3] >>> 16 ^ c[1] << 16;
|
|
4334
4337
|
for (var h = 0; h < 4; h++)
|
|
4335
|
-
p[h] = (p[h] << 8 | p[h] >>> 24) & 16711935 | (p[h] << 24 | p[h] >>> 8) & 4278255360, a[
|
|
4338
|
+
p[h] = (p[h] << 8 | p[h] >>> 24) & 16711935 | (p[h] << 24 | p[h] >>> 8) & 4278255360, a[l + h] ^= p[h];
|
|
4336
4339
|
},
|
|
4337
4340
|
blockSize: 128 / 32,
|
|
4338
4341
|
ivSize: 64 / 32
|
|
4339
4342
|
});
|
|
4340
4343
|
function A() {
|
|
4341
|
-
for (var a = this._X,
|
|
4342
|
-
C[c] =
|
|
4343
|
-
|
|
4344
|
+
for (var a = this._X, l = this._C, c = 0; c < 8; c++)
|
|
4345
|
+
C[c] = l[c];
|
|
4346
|
+
l[0] = l[0] + 1295307597 + this._b | 0, l[1] = l[1] + 3545052371 + (l[0] >>> 0 < C[0] >>> 0 ? 1 : 0) | 0, l[2] = l[2] + 886263092 + (l[1] >>> 0 < C[1] >>> 0 ? 1 : 0) | 0, l[3] = l[3] + 1295307597 + (l[2] >>> 0 < C[2] >>> 0 ? 1 : 0) | 0, l[4] = l[4] + 3545052371 + (l[3] >>> 0 < C[3] >>> 0 ? 1 : 0) | 0, l[5] = l[5] + 886263092 + (l[4] >>> 0 < C[4] >>> 0 ? 1 : 0) | 0, l[6] = l[6] + 1295307597 + (l[5] >>> 0 < C[5] >>> 0 ? 1 : 0) | 0, l[7] = l[7] + 3545052371 + (l[6] >>> 0 < C[6] >>> 0 ? 1 : 0) | 0, this._b = l[7] >>> 0 < C[7] >>> 0 ? 1 : 0;
|
|
4344
4347
|
for (var c = 0; c < 8; c++) {
|
|
4345
|
-
var h = a[c] +
|
|
4348
|
+
var h = a[c] + l[c], f = h & 65535, E = h >>> 16, o = ((f * f >>> 17) + f * E >>> 15) + E * E, i = ((h & 4294901760) * h | 0) + ((h & 65535) * h | 0);
|
|
4346
4349
|
t[c] = o ^ i;
|
|
4347
4350
|
}
|
|
4348
4351
|
a[0] = t[0] + (t[7] << 16 | t[7] >>> 16) + (t[6] << 16 | t[6] >>> 16) | 0, a[1] = t[1] + (t[0] << 8 | t[0] >>> 24) + t[7] | 0, a[2] = t[2] + (t[1] << 16 | t[1] >>> 16) + (t[0] << 16 | t[0] >>> 16) | 0, a[3] = t[3] + (t[2] << 8 | t[2] >>> 24) + t[1] | 0, a[4] = t[4] + (t[3] << 16 | t[3] >>> 16) + (t[2] << 16 | t[2] >>> 16) | 0, a[5] = t[5] + (t[4] << 8 | t[4] >>> 24) + t[3] | 0, a[6] = t[6] + (t[5] << 16 | t[5] >>> 16) + (t[4] << 16 | t[4] >>> 16) | 0, a[7] = t[7] + (t[6] << 8 | t[6] >>> 24) + t[5] | 0;
|
|
@@ -4354,14 +4357,14 @@ function ux() {
|
|
|
4354
4357
|
}
|
|
4355
4358
|
var nr = { exports: {} }, lx = nr.exports, he;
|
|
4356
4359
|
function hx() {
|
|
4357
|
-
return he || (he = 1, (function(r,
|
|
4358
|
-
(function(x, e,
|
|
4360
|
+
return he || (he = 1, (function(r, d) {
|
|
4361
|
+
(function(x, e, u) {
|
|
4359
4362
|
r.exports = e(U(), n0(), a0(), t0(), K());
|
|
4360
4363
|
})(lx, function(x) {
|
|
4361
4364
|
return (function() {
|
|
4362
|
-
var e = x,
|
|
4365
|
+
var e = x, u = e.lib, v = u.StreamCipher, g = e.algo, p = [], C = [], t = [], n = g.RabbitLegacy = v.extend({
|
|
4363
4366
|
_doReset: function() {
|
|
4364
|
-
var a = this._key.words,
|
|
4367
|
+
var a = this._key.words, l = this.cfg.iv, c = this._X = [
|
|
4365
4368
|
a[0],
|
|
4366
4369
|
a[3] << 16 | a[2] >>> 16,
|
|
4367
4370
|
a[1],
|
|
@@ -4385,28 +4388,28 @@ function hx() {
|
|
|
4385
4388
|
A.call(this);
|
|
4386
4389
|
for (var f = 0; f < 8; f++)
|
|
4387
4390
|
h[f] ^= c[f + 4 & 7];
|
|
4388
|
-
if (
|
|
4389
|
-
var E =
|
|
4391
|
+
if (l) {
|
|
4392
|
+
var E = l.words, o = E[0], i = E[1], s = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, F = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, D = s >>> 16 | F & 4294901760, m = F << 16 | s & 65535;
|
|
4390
4393
|
h[0] ^= s, h[1] ^= D, h[2] ^= F, h[3] ^= m, h[4] ^= s, h[5] ^= D, h[6] ^= F, h[7] ^= m;
|
|
4391
4394
|
for (var f = 0; f < 4; f++)
|
|
4392
4395
|
A.call(this);
|
|
4393
4396
|
}
|
|
4394
4397
|
},
|
|
4395
|
-
_doProcessBlock: function(a,
|
|
4398
|
+
_doProcessBlock: function(a, l) {
|
|
4396
4399
|
var c = this._X;
|
|
4397
4400
|
A.call(this), p[0] = c[0] ^ c[5] >>> 16 ^ c[3] << 16, p[1] = c[2] ^ c[7] >>> 16 ^ c[5] << 16, p[2] = c[4] ^ c[1] >>> 16 ^ c[7] << 16, p[3] = c[6] ^ c[3] >>> 16 ^ c[1] << 16;
|
|
4398
4401
|
for (var h = 0; h < 4; h++)
|
|
4399
|
-
p[h] = (p[h] << 8 | p[h] >>> 24) & 16711935 | (p[h] << 24 | p[h] >>> 8) & 4278255360, a[
|
|
4402
|
+
p[h] = (p[h] << 8 | p[h] >>> 24) & 16711935 | (p[h] << 24 | p[h] >>> 8) & 4278255360, a[l + h] ^= p[h];
|
|
4400
4403
|
},
|
|
4401
4404
|
blockSize: 128 / 32,
|
|
4402
4405
|
ivSize: 64 / 32
|
|
4403
4406
|
});
|
|
4404
4407
|
function A() {
|
|
4405
|
-
for (var a = this._X,
|
|
4406
|
-
C[c] =
|
|
4407
|
-
|
|
4408
|
+
for (var a = this._X, l = this._C, c = 0; c < 8; c++)
|
|
4409
|
+
C[c] = l[c];
|
|
4410
|
+
l[0] = l[0] + 1295307597 + this._b | 0, l[1] = l[1] + 3545052371 + (l[0] >>> 0 < C[0] >>> 0 ? 1 : 0) | 0, l[2] = l[2] + 886263092 + (l[1] >>> 0 < C[1] >>> 0 ? 1 : 0) | 0, l[3] = l[3] + 1295307597 + (l[2] >>> 0 < C[2] >>> 0 ? 1 : 0) | 0, l[4] = l[4] + 3545052371 + (l[3] >>> 0 < C[3] >>> 0 ? 1 : 0) | 0, l[5] = l[5] + 886263092 + (l[4] >>> 0 < C[4] >>> 0 ? 1 : 0) | 0, l[6] = l[6] + 1295307597 + (l[5] >>> 0 < C[5] >>> 0 ? 1 : 0) | 0, l[7] = l[7] + 3545052371 + (l[6] >>> 0 < C[6] >>> 0 ? 1 : 0) | 0, this._b = l[7] >>> 0 < C[7] >>> 0 ? 1 : 0;
|
|
4408
4411
|
for (var c = 0; c < 8; c++) {
|
|
4409
|
-
var h = a[c] +
|
|
4412
|
+
var h = a[c] + l[c], f = h & 65535, E = h >>> 16, o = ((f * f >>> 17) + f * E >>> 15) + E * E, i = ((h & 4294901760) * h | 0) + ((h & 65535) * h | 0);
|
|
4410
4413
|
t[c] = o ^ i;
|
|
4411
4414
|
}
|
|
4412
4415
|
a[0] = t[0] + (t[7] << 16 | t[7] >>> 16) + (t[6] << 16 | t[6] >>> 16) | 0, a[1] = t[1] + (t[0] << 8 | t[0] >>> 24) + t[7] | 0, a[2] = t[2] + (t[1] << 16 | t[1] >>> 16) + (t[0] << 16 | t[0] >>> 16) | 0, a[3] = t[3] + (t[2] << 8 | t[2] >>> 24) + t[1] | 0, a[4] = t[4] + (t[3] << 16 | t[3] >>> 16) + (t[2] << 16 | t[2] >>> 16) | 0, a[5] = t[5] + (t[4] << 8 | t[4] >>> 24) + t[3] | 0, a[6] = t[6] + (t[5] << 16 | t[5] >>> 16) + (t[4] << 16 | t[4] >>> 16) | 0, a[7] = t[7] + (t[6] << 8 | t[6] >>> 24) + t[5] | 0;
|
|
@@ -4418,12 +4421,12 @@ function hx() {
|
|
|
4418
4421
|
}
|
|
4419
4422
|
var ar = { exports: {} }, vx = ar.exports, ve;
|
|
4420
4423
|
function px() {
|
|
4421
|
-
return ve || (ve = 1, (function(r,
|
|
4422
|
-
(function(x, e,
|
|
4424
|
+
return ve || (ve = 1, (function(r, d) {
|
|
4425
|
+
(function(x, e, u) {
|
|
4423
4426
|
r.exports = e(U(), n0(), a0(), t0(), K());
|
|
4424
4427
|
})(vx, function(x) {
|
|
4425
4428
|
return (function() {
|
|
4426
|
-
var e = x,
|
|
4429
|
+
var e = x, u = e.lib, v = u.BlockCipher, g = e.algo;
|
|
4427
4430
|
const p = 16, C = [
|
|
4428
4431
|
608135816,
|
|
4429
4432
|
2242054355,
|
|
@@ -5491,7 +5494,7 @@ function px() {
|
|
|
5491
5494
|
i = i ^ f.pbox[D], s = A(f, i) ^ s, F = i, i = s, s = F;
|
|
5492
5495
|
return F = i, i = s, s = F, s = s ^ f.pbox[p], i = i ^ f.pbox[p + 1], { left: i, right: s };
|
|
5493
5496
|
}
|
|
5494
|
-
function
|
|
5497
|
+
function l(f, E, o) {
|
|
5495
5498
|
let i = E, s = o, F;
|
|
5496
5499
|
for (let D = p + 1; D > 1; --D)
|
|
5497
5500
|
i = i ^ f.pbox[D], s = A(f, i) ^ s, F = i, i = s, s = F;
|
|
@@ -5526,7 +5529,7 @@ function px() {
|
|
|
5526
5529
|
f[E] = o.left, f[E + 1] = o.right;
|
|
5527
5530
|
},
|
|
5528
5531
|
decryptBlock: function(f, E) {
|
|
5529
|
-
var o =
|
|
5532
|
+
var o = l(n, f[E], f[E + 1]);
|
|
5530
5533
|
f[E] = o.left, f[E + 1] = o.right;
|
|
5531
5534
|
},
|
|
5532
5535
|
blockSize: 64 / 32,
|
|
@@ -5540,9 +5543,9 @@ function px() {
|
|
|
5540
5543
|
}
|
|
5541
5544
|
var Bx = b0.exports, pe;
|
|
5542
5545
|
function Cx() {
|
|
5543
|
-
return pe || (pe = 1, (function(r,
|
|
5544
|
-
(function(x, e,
|
|
5545
|
-
r.exports = e(U(), sr(), ht(), pt(), n0(), Et(), a0(), be(), Cr(), bt(), _e(), yt(), kt(), Ht(), Er(), $t(), t0(), K(), Ot(), qt(), Mt(), Ut(), Kt(),
|
|
5546
|
+
return pe || (pe = 1, (function(r, d) {
|
|
5547
|
+
(function(x, e, u) {
|
|
5548
|
+
r.exports = e(U(), sr(), ht(), pt(), n0(), Et(), a0(), be(), Cr(), bt(), _e(), yt(), kt(), Ht(), Er(), $t(), t0(), K(), Ot(), qt(), Mt(), Ut(), Kt(), Xt(), Zt(), Vt(), rx(), tx(), nx(), ox(), sx(), fx(), dx(), hx(), px());
|
|
5546
5549
|
})(Bx, function(x) {
|
|
5547
5550
|
return x;
|
|
5548
5551
|
});
|
|
@@ -5563,20 +5566,20 @@ function Ax() {
|
|
|
5563
5566
|
};
|
|
5564
5567
|
}
|
|
5565
5568
|
function Fx(r) {
|
|
5566
|
-
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.
|
|
5569
|
+
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.130`;
|
|
5567
5570
|
}
|
|
5568
|
-
function Dx(r,
|
|
5571
|
+
function Dx(r, d) {
|
|
5569
5572
|
const x = Fx(r);
|
|
5570
|
-
return new Worker(x, { type: "module", ...
|
|
5573
|
+
return new Worker(x, { type: "module", ...d });
|
|
5571
5574
|
}
|
|
5572
5575
|
const Be = /* @__PURE__ */ new Map(), hr = /* @__PURE__ */ new Map();
|
|
5573
5576
|
let gx = 0;
|
|
5574
5577
|
function bx(r) {
|
|
5575
|
-
const
|
|
5576
|
-
if (
|
|
5578
|
+
const d = Be.get(r);
|
|
5579
|
+
if (d) return d;
|
|
5577
5580
|
const x = Dx("./deform.worker.ts");
|
|
5578
|
-
x.onmessage = (
|
|
5579
|
-
const { id: v, imageBitmap: g, error: p, duration: C } =
|
|
5581
|
+
x.onmessage = (u) => {
|
|
5582
|
+
const { id: v, imageBitmap: g, error: p, duration: C } = u.data ?? {}, t = hr.get(v);
|
|
5580
5583
|
if (t) {
|
|
5581
5584
|
if (hr.delete(v), p) {
|
|
5582
5585
|
t.reject(new Error(p));
|
|
@@ -5584,16 +5587,16 @@ function bx(r) {
|
|
|
5584
5587
|
}
|
|
5585
5588
|
t.resolve(g);
|
|
5586
5589
|
}
|
|
5587
|
-
}, x.onerror = (
|
|
5590
|
+
}, x.onerror = (u) => {
|
|
5588
5591
|
};
|
|
5589
5592
|
const e = () => {
|
|
5590
|
-
const
|
|
5591
|
-
return
|
|
5593
|
+
const u = Ax();
|
|
5594
|
+
return u.token ? (x.postMessage({
|
|
5592
5595
|
type: "SET_LICENSE",
|
|
5593
|
-
licenseToken:
|
|
5594
|
-
licenseApiUrl:
|
|
5595
|
-
deviceId:
|
|
5596
|
-
domain:
|
|
5596
|
+
licenseToken: u.token,
|
|
5597
|
+
licenseApiUrl: u.apiUrl,
|
|
5598
|
+
deviceId: u.deviceId,
|
|
5599
|
+
domain: u.domain
|
|
5597
5600
|
}), !0) : !1;
|
|
5598
5601
|
};
|
|
5599
5602
|
return e() || (setTimeout(() => {
|
|
@@ -5608,10 +5611,10 @@ function _x(r) {
|
|
|
5608
5611
|
type: r.type,
|
|
5609
5612
|
blendMode: r.blendMode,
|
|
5610
5613
|
transform: Array.isArray(r.transform) ? [...r.transform] : [],
|
|
5611
|
-
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((
|
|
5612
|
-
x:
|
|
5613
|
-
y:
|
|
5614
|
-
type:
|
|
5614
|
+
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((d) => ({
|
|
5615
|
+
x: d.x,
|
|
5616
|
+
y: d.y,
|
|
5617
|
+
type: d.type
|
|
5615
5618
|
})) : [],
|
|
5616
5619
|
bounds: r.bounds ? {
|
|
5617
5620
|
width: r.bounds.width,
|
|
@@ -5634,30 +5637,30 @@ function _x(r) {
|
|
|
5634
5637
|
layerOrder: r.layerOrder,
|
|
5635
5638
|
imagePath: r.imagePath,
|
|
5636
5639
|
vectorMask: r.vectorMask ? {
|
|
5637
|
-
paths: r.vectorMask.paths?.map((
|
|
5638
|
-
open:
|
|
5639
|
-
knots:
|
|
5640
|
+
paths: r.vectorMask.paths?.map((d) => ({
|
|
5641
|
+
open: d.open,
|
|
5642
|
+
knots: d.knots?.map((x) => ({
|
|
5640
5643
|
linked: x.linked,
|
|
5641
5644
|
points: [...x.points]
|
|
5642
5645
|
})),
|
|
5643
|
-
fillRule:
|
|
5644
|
-
operation:
|
|
5646
|
+
fillRule: d.fillRule,
|
|
5647
|
+
operation: d.operation
|
|
5645
5648
|
})),
|
|
5646
|
-
points: r.vectorMask.points?.map((
|
|
5647
|
-
x:
|
|
5648
|
-
y:
|
|
5649
|
-
type:
|
|
5649
|
+
points: r.vectorMask.points?.map((d) => ({
|
|
5650
|
+
x: d.x,
|
|
5651
|
+
y: d.y,
|
|
5652
|
+
type: d.type
|
|
5650
5653
|
})),
|
|
5651
5654
|
invert: r.vectorMask.invert,
|
|
5652
5655
|
notLink: r.vectorMask.notLink,
|
|
5653
5656
|
disable: r.vectorMask.disable,
|
|
5654
5657
|
fillStartsWithAllPixels: r.vectorMask.fillStartsWithAllPixels
|
|
5655
5658
|
} : void 0,
|
|
5656
|
-
filterList: r.filterList ? r.filterList.map((
|
|
5657
|
-
type:
|
|
5658
|
-
enabled:
|
|
5659
|
-
filter:
|
|
5660
|
-
puppetShapeList:
|
|
5659
|
+
filterList: r.filterList ? r.filterList.map((d) => ({
|
|
5660
|
+
type: d.type,
|
|
5661
|
+
enabled: d.enabled,
|
|
5662
|
+
filter: d.filter ? {
|
|
5663
|
+
puppetShapeList: d.filter.puppetShapeList?.map((x) => ({
|
|
5661
5664
|
originalVertexArray: x.originalVertexArray.map((e) => ({
|
|
5662
5665
|
x: e.x,
|
|
5663
5666
|
y: e.y
|
|
@@ -5674,33 +5677,33 @@ function _x(r) {
|
|
|
5674
5677
|
clipping: r.clipping
|
|
5675
5678
|
};
|
|
5676
5679
|
}
|
|
5677
|
-
function mx(r,
|
|
5678
|
-
const
|
|
5680
|
+
function mx(r, d, x, e) {
|
|
5681
|
+
const u = ++gx, v = bx(x);
|
|
5679
5682
|
return performance.now(), (/* @__PURE__ */ new Date()).toISOString(), new Promise((g, p) => {
|
|
5680
|
-
hr.set(
|
|
5683
|
+
hr.set(u, {
|
|
5681
5684
|
resolve: (t) => {
|
|
5682
5685
|
performance.now(), (/* @__PURE__ */ new Date()).toISOString(), g(t);
|
|
5683
5686
|
},
|
|
5684
5687
|
reject: p
|
|
5685
5688
|
});
|
|
5686
|
-
const C = _x(
|
|
5687
|
-
v.postMessage({ id:
|
|
5689
|
+
const C = _x(d);
|
|
5690
|
+
v.postMessage({ id: u, designBitmap: r, layerData: C, canvasSize: e }, [
|
|
5688
5691
|
r
|
|
5689
5692
|
]);
|
|
5690
5693
|
});
|
|
5691
5694
|
}
|
|
5692
|
-
async function yx(r,
|
|
5693
|
-
const g = await nt(r,
|
|
5695
|
+
async function yx(r, d, x = 0, e, u, v) {
|
|
5696
|
+
const g = await nt(r, u, v);
|
|
5694
5697
|
if (!g || g.width === 0 || g.height === 0)
|
|
5695
5698
|
throw new Error("图片无效:尺寸为 0");
|
|
5696
|
-
return await mx(g,
|
|
5699
|
+
return await mx(g, d, x, e);
|
|
5697
5700
|
}
|
|
5698
|
-
function s0(r,
|
|
5701
|
+
function s0(r, d) {
|
|
5699
5702
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
5700
|
-
return new OffscreenCanvas(r,
|
|
5703
|
+
return new OffscreenCanvas(r, d);
|
|
5701
5704
|
if (typeof document < "u") {
|
|
5702
5705
|
const x = document.createElement("canvas");
|
|
5703
|
-
return x.width = r, x.height =
|
|
5706
|
+
return x.width = r, x.height = d, x;
|
|
5704
5707
|
} else
|
|
5705
5708
|
throw new Error("无法创建 canvas:不在 Worker 或主线程环境中");
|
|
5706
5709
|
}
|
|
@@ -5708,18 +5711,18 @@ function C0(r) {
|
|
|
5708
5711
|
return r.getContext("2d");
|
|
5709
5712
|
}
|
|
5710
5713
|
function Ce(r) {
|
|
5711
|
-
const
|
|
5712
|
-
if (!
|
|
5714
|
+
const d = C0(r);
|
|
5715
|
+
if (!d)
|
|
5713
5716
|
throw new Error("无法创建 canvas context");
|
|
5714
|
-
return
|
|
5717
|
+
return d;
|
|
5715
5718
|
}
|
|
5716
5719
|
async function wx(r) {
|
|
5717
5720
|
performance.now();
|
|
5718
5721
|
const {
|
|
5719
|
-
psdJson:
|
|
5722
|
+
psdJson: d,
|
|
5720
5723
|
materialList: x,
|
|
5721
5724
|
fabricScreenshotList: e,
|
|
5722
|
-
width:
|
|
5725
|
+
width: u,
|
|
5723
5726
|
height: v,
|
|
5724
5727
|
baseUrl: g
|
|
5725
5728
|
} = r, p = r.maxImageSize, C = (y) => {
|
|
@@ -5729,8 +5732,8 @@ async function wx(r) {
|
|
|
5729
5732
|
if (!g)
|
|
5730
5733
|
return !y.includes("http") && !y.startsWith("data:") && !y.startsWith("blob:") ? void 0 : y;
|
|
5731
5734
|
try {
|
|
5732
|
-
const
|
|
5733
|
-
return !
|
|
5735
|
+
const W = new URL(y, g).toString();
|
|
5736
|
+
return !W.includes("http") && !W.startsWith("data:") && !W.startsWith("blob:") ? void 0 : W;
|
|
5734
5737
|
} catch {
|
|
5735
5738
|
return;
|
|
5736
5739
|
}
|
|
@@ -5747,11 +5750,11 @@ async function wx(r) {
|
|
|
5747
5750
|
for (const y of e)
|
|
5748
5751
|
A.set(y.id, y.url);
|
|
5749
5752
|
function a(y, $) {
|
|
5750
|
-
const
|
|
5753
|
+
const W = y.color || (y.name && ["粉", "白", "绿", "红", "蓝", "黄", "黑", "灰"].includes(y.name) ? y.name : $);
|
|
5751
5754
|
if (y.type === "Layer") {
|
|
5752
5755
|
if (y.imagePath) {
|
|
5753
|
-
const O = x.find((
|
|
5754
|
-
const b =
|
|
5756
|
+
const O = x.find((I) => {
|
|
5757
|
+
const b = I.sourceName || I.layerName;
|
|
5755
5758
|
return !b || !y.imagePath ? !1 : b === y.imagePath || b.endsWith(y.imagePath) || y.imagePath.endsWith(b);
|
|
5756
5759
|
});
|
|
5757
5760
|
O && (t[y.imagePath] = {
|
|
@@ -5759,54 +5762,54 @@ async function wx(r) {
|
|
|
5759
5762
|
});
|
|
5760
5763
|
}
|
|
5761
5764
|
if (y.name) {
|
|
5762
|
-
if (
|
|
5763
|
-
const O = `${
|
|
5765
|
+
if (W) {
|
|
5766
|
+
const O = `${W}-${y.name}`, I = x.find((b) => {
|
|
5764
5767
|
const k = b.sourceName || b.layerName;
|
|
5765
|
-
return k ? (k.split("/").pop() || k).replace(/\.(png|jpg|jpeg|gif|webp)$/i, "").startsWith(`${
|
|
5768
|
+
return k ? (k.split("/").pop() || k).replace(/\.(png|jpg|jpeg|gif|webp)$/i, "").startsWith(`${W}-${y.name}`) : !1;
|
|
5766
5769
|
});
|
|
5767
|
-
|
|
5768
|
-
url:
|
|
5770
|
+
I && (t[O] = {
|
|
5771
|
+
url: I.url
|
|
5769
5772
|
});
|
|
5770
5773
|
}
|
|
5771
5774
|
if (y.imagePath && y.name) {
|
|
5772
|
-
const O = y.imagePath.split("/").pop() || y.imagePath,
|
|
5775
|
+
const O = y.imagePath.split("/").pop() || y.imagePath, I = x.find((b) => {
|
|
5773
5776
|
const k = b.sourceName || b.layerName;
|
|
5774
5777
|
return k ? (k.split("/").pop() || k) === O : !1;
|
|
5775
5778
|
});
|
|
5776
|
-
|
|
5777
|
-
url:
|
|
5779
|
+
I && (t[y.imagePath] = {
|
|
5780
|
+
url: I.url
|
|
5778
5781
|
});
|
|
5779
5782
|
}
|
|
5780
5783
|
}
|
|
5781
5784
|
}
|
|
5782
5785
|
if (y.children)
|
|
5783
5786
|
for (const O of y.children)
|
|
5784
|
-
O && a(O,
|
|
5787
|
+
O && a(O, W);
|
|
5785
5788
|
}
|
|
5786
|
-
function
|
|
5787
|
-
const
|
|
5788
|
-
if (y.type === "Group" &&
|
|
5789
|
-
const O = A.get(
|
|
5789
|
+
function l(y, $) {
|
|
5790
|
+
const W = y.id ?? $;
|
|
5791
|
+
if (y.type === "Group" && W && A.has(W)) {
|
|
5792
|
+
const O = A.get(W);
|
|
5790
5793
|
if (y.children) {
|
|
5791
|
-
for (const
|
|
5792
|
-
if (
|
|
5793
|
-
const b =
|
|
5794
|
+
for (const I of y.children)
|
|
5795
|
+
if (I && I.isSmartObject === !0) {
|
|
5796
|
+
const b = I?.name || "";
|
|
5794
5797
|
b && !t[b] && (t[b] = {}), b && (t[b].designImage = O);
|
|
5795
5798
|
}
|
|
5796
5799
|
}
|
|
5797
5800
|
}
|
|
5798
5801
|
if (y.children)
|
|
5799
5802
|
for (const O of y.children)
|
|
5800
|
-
O &&
|
|
5803
|
+
O && l(O, W);
|
|
5801
5804
|
}
|
|
5802
|
-
if (
|
|
5803
|
-
for (const y of
|
|
5805
|
+
if (d.layerList)
|
|
5806
|
+
for (const y of d.layerList)
|
|
5804
5807
|
y && a(y);
|
|
5805
|
-
if (
|
|
5806
|
-
for (const y of
|
|
5807
|
-
y &&
|
|
5808
|
+
if (d.layerList)
|
|
5809
|
+
for (const y of d.layerList)
|
|
5810
|
+
y && l(y);
|
|
5808
5811
|
const h = Ke([{
|
|
5809
|
-
psdJson:
|
|
5812
|
+
psdJson: d,
|
|
5810
5813
|
layerExtrasByName: t
|
|
5811
5814
|
}], {
|
|
5812
5815
|
parts: [],
|
|
@@ -5824,45 +5827,45 @@ async function wx(r) {
|
|
|
5824
5827
|
const $ = y.url.split("/").pop() || y.url;
|
|
5825
5828
|
if (t[$])
|
|
5826
5829
|
return t[$];
|
|
5827
|
-
const
|
|
5828
|
-
const
|
|
5829
|
-
return !
|
|
5830
|
+
const W = x.find((O) => {
|
|
5831
|
+
const I = O.sourceName || O.layerName;
|
|
5832
|
+
return !I || !y.url ? !1 : (I.split("/").pop() || I) === $ || I === y.url || I.endsWith(y.url) || y.url.endsWith(I);
|
|
5830
5833
|
});
|
|
5831
|
-
if (
|
|
5832
|
-
const O =
|
|
5834
|
+
if (W) {
|
|
5835
|
+
const O = W.sourceName || W.layerName;
|
|
5833
5836
|
if (O)
|
|
5834
|
-
return t[O] || { url:
|
|
5837
|
+
return t[O] || { url: W.url };
|
|
5835
5838
|
}
|
|
5836
5839
|
}
|
|
5837
5840
|
};
|
|
5838
5841
|
for (let y = 0; y < f.psdPartData.length; y++) {
|
|
5839
|
-
const $ = f.psdPartData[y],
|
|
5842
|
+
const $ = f.psdPartData[y], W = D($);
|
|
5840
5843
|
if ($.type === E0.Layer) {
|
|
5841
|
-
if (!
|
|
5844
|
+
if (!W || !W.url)
|
|
5842
5845
|
continue;
|
|
5843
|
-
const O =
|
|
5844
|
-
if (!
|
|
5846
|
+
const O = W.url, I = C(O);
|
|
5847
|
+
if (!I)
|
|
5845
5848
|
continue;
|
|
5846
5849
|
F.push({
|
|
5847
5850
|
index: y,
|
|
5848
5851
|
type: "layer",
|
|
5849
5852
|
partData: $,
|
|
5850
|
-
promise: at(
|
|
5853
|
+
promise: at(I, p, g).catch((b) => null)
|
|
5851
5854
|
});
|
|
5852
5855
|
} else if ($.type === E0.Group) {
|
|
5853
5856
|
if (!$.smartObjects || $.smartObjects.length === 0)
|
|
5854
5857
|
continue;
|
|
5855
5858
|
for (let O = 0; O < $.smartObjects.length; O++) {
|
|
5856
|
-
const
|
|
5857
|
-
if (!
|
|
5859
|
+
const I = $.smartObjects[O];
|
|
5860
|
+
if (!I || !I.name)
|
|
5858
5861
|
continue;
|
|
5859
|
-
let b = t[
|
|
5860
|
-
if (!b &&
|
|
5861
|
-
const T =
|
|
5862
|
+
let b = t[I.name] ?? W;
|
|
5863
|
+
if (!b && I.imagePath && (b = t[I.imagePath], !b)) {
|
|
5864
|
+
const T = I.imagePath.split("/").pop() || I.imagePath;
|
|
5862
5865
|
if (b = t[T], !b) {
|
|
5863
5866
|
const j = x.find((M) => {
|
|
5864
|
-
const
|
|
5865
|
-
return !
|
|
5867
|
+
const Z = M.sourceName || M.layerName;
|
|
5868
|
+
return !Z || !I.imagePath ? !1 : (Z.split("/").pop() || Z) === T || Z === I.imagePath || Z.endsWith(I.imagePath) || I.imagePath.endsWith(Z);
|
|
5866
5869
|
});
|
|
5867
5870
|
j && (b = { url: j.url });
|
|
5868
5871
|
}
|
|
@@ -5879,16 +5882,16 @@ async function wx(r) {
|
|
|
5879
5882
|
continue;
|
|
5880
5883
|
k = j;
|
|
5881
5884
|
}
|
|
5882
|
-
const R = ($.partId ?? $.id) * 100 + O, S = Ge(
|
|
5885
|
+
const R = ($.partId ?? $.id) * 100 + O, S = Xe(Ge(I)), N = { width: E, height: o };
|
|
5883
5886
|
F.push({
|
|
5884
5887
|
index: y + O * 0.01,
|
|
5885
5888
|
type: "group",
|
|
5886
5889
|
partData: $,
|
|
5887
|
-
smartObject:
|
|
5890
|
+
smartObject: I,
|
|
5888
5891
|
maskData: S,
|
|
5889
5892
|
promise: yx(
|
|
5890
5893
|
k,
|
|
5891
|
-
|
|
5894
|
+
I,
|
|
5892
5895
|
R,
|
|
5893
5896
|
N,
|
|
5894
5897
|
p,
|
|
@@ -5902,15 +5905,15 @@ async function wx(r) {
|
|
|
5902
5905
|
task: y,
|
|
5903
5906
|
imageBitmap: m[$]
|
|
5904
5907
|
})).sort((y, $) => {
|
|
5905
|
-
const
|
|
5906
|
-
return
|
|
5908
|
+
const W = y.task.type === "group" && y.task.smartObject?.layerOrder !== void 0 ? y.task.smartObject.layerOrder : y.task.partData.layerOrder ?? y.task.index, O = $.task.type === "group" && $.task.smartObject?.layerOrder !== void 0 ? $.task.smartObject.layerOrder : $.task.partData.layerOrder ?? $.task.index;
|
|
5909
|
+
return W - O;
|
|
5907
5910
|
});
|
|
5908
5911
|
let z = s0(E, o), B = C0(z), _ = !1, P = "normal";
|
|
5909
5912
|
for (let y = 0; y < w.length; y++) {
|
|
5910
|
-
const { task: $, imageBitmap:
|
|
5911
|
-
if (!
|
|
5913
|
+
const { task: $, imageBitmap: W } = w[y];
|
|
5914
|
+
if (!W)
|
|
5912
5915
|
continue;
|
|
5913
|
-
const { partData: O } = $,
|
|
5916
|
+
const { partData: O } = $, I = O.bounds;
|
|
5914
5917
|
let b;
|
|
5915
5918
|
$.type === "group" && $.smartObject ? b = $.smartObject.opacity ?? O.opacity : b = O.opacity, (typeof b != "number" || isNaN(b)) && (b = 1);
|
|
5916
5919
|
let k;
|
|
@@ -5926,16 +5929,16 @@ async function wx(r) {
|
|
|
5926
5929
|
if (B.clearRect(0, 0, E, o), B.globalCompositeOperation = "source-over", B.globalAlpha = b, $.type === "group" && $.smartObject)
|
|
5927
5930
|
if ($.maskData) {
|
|
5928
5931
|
const N = s0(E, o), T = C0(N);
|
|
5929
|
-
T && (T.drawImage(
|
|
5932
|
+
T && (T.drawImage(W, 0, 0), ur(T, $.maskData), B.drawImage(N, 0, 0));
|
|
5930
5933
|
} else
|
|
5931
|
-
B.drawImage(
|
|
5932
|
-
else $.type === "layer" && (
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
) : B.drawImage(
|
|
5934
|
+
B.drawImage(W, 0, 0);
|
|
5935
|
+
else $.type === "layer" && (I ? B.drawImage(
|
|
5936
|
+
W,
|
|
5937
|
+
I.left,
|
|
5938
|
+
I.top,
|
|
5939
|
+
I.width,
|
|
5940
|
+
I.height
|
|
5941
|
+
) : B.drawImage(W, 0, 0));
|
|
5939
5942
|
B.globalAlpha = 1;
|
|
5940
5943
|
}
|
|
5941
5944
|
} else if (k) {
|
|
@@ -5943,44 +5946,44 @@ async function wx(r) {
|
|
|
5943
5946
|
if (B.globalCompositeOperation = "source-atop", B.globalAlpha = b, $.type === "group" && $.smartObject)
|
|
5944
5947
|
if ($.maskData) {
|
|
5945
5948
|
const N = s0(E, o), T = C0(N);
|
|
5946
|
-
T && (T.drawImage(
|
|
5949
|
+
T && (T.drawImage(W, 0, 0), ur(T, $.maskData), B.drawImage(N, 0, 0));
|
|
5947
5950
|
} else
|
|
5948
|
-
B.drawImage(
|
|
5949
|
-
else $.type === "layer" && (
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
) : B.drawImage(
|
|
5951
|
+
B.drawImage(W, 0, 0);
|
|
5952
|
+
else $.type === "layer" && (I ? B.drawImage(
|
|
5953
|
+
W,
|
|
5954
|
+
I.left,
|
|
5955
|
+
I.top,
|
|
5956
|
+
I.width,
|
|
5957
|
+
I.height
|
|
5958
|
+
) : B.drawImage(W, 0, 0));
|
|
5956
5959
|
B.globalAlpha = 1, B.globalCompositeOperation = "source-over";
|
|
5957
5960
|
}
|
|
5958
5961
|
} else {
|
|
5959
5962
|
if (s.globalCompositeOperation = $r(O.blendMode), s.globalAlpha = b, $.type === "group" && $.smartObject)
|
|
5960
5963
|
if ($.maskData) {
|
|
5961
5964
|
const N = s0(E, o), T = C0(N);
|
|
5962
|
-
T && (T.drawImage(
|
|
5965
|
+
T && (T.drawImage(W, 0, 0), ur(T, $.maskData), s.drawImage(N, 0, 0));
|
|
5963
5966
|
} else
|
|
5964
|
-
s.drawImage(
|
|
5965
|
-
else $.type === "layer" && (
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
) : s.drawImage(
|
|
5967
|
+
s.drawImage(W, 0, 0);
|
|
5968
|
+
else $.type === "layer" && (I ? s.drawImage(
|
|
5969
|
+
W,
|
|
5970
|
+
I.left,
|
|
5971
|
+
I.top,
|
|
5972
|
+
I.width,
|
|
5973
|
+
I.height
|
|
5974
|
+
) : s.drawImage(W, 0, 0));
|
|
5972
5975
|
s.globalAlpha = 1, s.globalCompositeOperation = "source-over";
|
|
5973
5976
|
}
|
|
5974
5977
|
_ && !S && (s.globalCompositeOperation = $r(P), s.drawImage(z, 0, 0), s.globalCompositeOperation = "source-over", _ = !1);
|
|
5975
5978
|
}
|
|
5976
5979
|
z = null, B = null;
|
|
5977
5980
|
let H = i, L = E, q = o;
|
|
5978
|
-
if (
|
|
5979
|
-
if (
|
|
5980
|
-
L =
|
|
5981
|
-
else if (
|
|
5982
|
-
const $ =
|
|
5983
|
-
L =
|
|
5981
|
+
if (u !== void 0 || v !== void 0) {
|
|
5982
|
+
if (u !== void 0 && v !== void 0)
|
|
5983
|
+
L = u, q = v;
|
|
5984
|
+
else if (u !== void 0) {
|
|
5985
|
+
const $ = u / E;
|
|
5986
|
+
L = u, q = Math.round(o * $);
|
|
5984
5987
|
} else if (v !== void 0) {
|
|
5985
5988
|
const $ = v / o;
|
|
5986
5989
|
L = Math.round(E * $), q = v;
|
|
@@ -6000,9 +6003,9 @@ const kx = async (r) => {
|
|
|
6000
6003
|
return x ? createImageBitmap(x) : null;
|
|
6001
6004
|
};
|
|
6002
6005
|
self.onmessage = async (r) => {
|
|
6003
|
-
const
|
|
6004
|
-
if (
|
|
6005
|
-
const e =
|
|
6006
|
+
const d = r.data;
|
|
6007
|
+
if (d && typeof d == "object" && "type" in d && d.type === "SET_LICENSE") {
|
|
6008
|
+
const e = d;
|
|
6006
6009
|
Ex({
|
|
6007
6010
|
token: e.licenseToken,
|
|
6008
6011
|
apiUrl: e.licenseApiUrl,
|
|
@@ -6011,7 +6014,7 @@ self.onmessage = async (r) => {
|
|
|
6011
6014
|
});
|
|
6012
6015
|
return;
|
|
6013
6016
|
}
|
|
6014
|
-
const x =
|
|
6017
|
+
const x = d;
|
|
6015
6018
|
try {
|
|
6016
6019
|
const e = await kx(x.renderData);
|
|
6017
6020
|
self.postMessage({ id: x.id, bitmap: e }, e ? [e] : []);
|