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