@jieyin/editor-sdk-test 1.1.150 → 1.1.152
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 +6021 -5977
- package/dist/renderWorker.js +494 -493
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/renderWorker.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var F0 = /* @__PURE__ */ ((r) => (r[r.Group = 0] = "Group", r[r.Layer = 1] = "Layer", r))(F0 || {});
|
|
2
|
-
function
|
|
2
|
+
function je(r) {
|
|
3
3
|
let h = r;
|
|
4
4
|
return () => {
|
|
5
5
|
const t = h;
|
|
6
6
|
return h += 1, t;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Ge(r, h) {
|
|
10
10
|
return {
|
|
11
11
|
name: r.name || "",
|
|
12
12
|
type: r.type || "Layer",
|
|
@@ -29,13 +29,13 @@ function Ke(r, h) {
|
|
|
29
29
|
clipping: r.clipping
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
let u = r.name || "",
|
|
34
|
-
if (r.type === "Group" && m === void 0 && (!
|
|
32
|
+
function Ke(r, h, t, e) {
|
|
33
|
+
let u = r.name || "", v = h[u], m = v?.partId ?? (r.type === "Group" ? t.get(u) : void 0);
|
|
34
|
+
if (r.type === "Group" && m === void 0 && (!v || v.id === void 0) && r.children && r.children.length === 1) {
|
|
35
35
|
const x = r.children[0].name, n = h[x], E = n?.partId ?? t.get(x);
|
|
36
|
-
(E !== void 0 || n?.id !== void 0) && (u = x,
|
|
36
|
+
(E !== void 0 || n?.id !== void 0) && (u = x, v = n, m = E);
|
|
37
37
|
}
|
|
38
|
-
const B = r.id ??
|
|
38
|
+
const B = r.id ?? v?.id ?? e();
|
|
39
39
|
if (r.type === "Group")
|
|
40
40
|
return {
|
|
41
41
|
id: B,
|
|
@@ -45,13 +45,13 @@ function Xe(r, h, t, e) {
|
|
|
45
45
|
bounds: r.bounds || { left: 0, top: 0, width: 0, height: 0 },
|
|
46
46
|
type: F0.Group,
|
|
47
47
|
smartObjects: (r.children ?? []).map(
|
|
48
|
-
(x) =>
|
|
48
|
+
(x) => Ge(x, r.vectorMask)
|
|
49
49
|
),
|
|
50
50
|
opacity: r.opacity,
|
|
51
51
|
clipping: r.clipping,
|
|
52
52
|
layerOrder: r.layerOrder
|
|
53
53
|
};
|
|
54
|
-
let C =
|
|
54
|
+
let C = v?.url;
|
|
55
55
|
return !C && r.imagePath && (C = r.imagePath), {
|
|
56
56
|
id: B,
|
|
57
57
|
name: r.name || "",
|
|
@@ -64,19 +64,19 @@ function Xe(r, h, t, e) {
|
|
|
64
64
|
layerOrder: r.layerOrder
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
const t = new Map(h.parts.map((u) => [u.name, u.id])), e =
|
|
67
|
+
function Xe(r, h) {
|
|
68
|
+
const t = new Map(h.parts.map((u) => [u.name, u.id])), e = je(h.defaultIdStart ?? 1);
|
|
69
69
|
return {
|
|
70
70
|
parts: h.parts,
|
|
71
71
|
models: r.map((u) => {
|
|
72
|
-
const
|
|
72
|
+
const v = u.layerExtrasByName ?? {}, m = u.psdJson, B = m.layerList || m.layerList || [], C = m.canvasWidth, x = m.canvasHeight;
|
|
73
73
|
if (!C || !x)
|
|
74
74
|
throw new Error(`无法获取 PSD 画布尺寸: canvasWidth=${C}, canvasHeight=${x}。请确保 jsonurl 中的 canvasWidth 和 canvasHeight 存在`);
|
|
75
75
|
const n = (s) => {
|
|
76
76
|
const f = [];
|
|
77
|
-
for (const
|
|
78
|
-
if (
|
|
79
|
-
const l = [], g = [], i = [...
|
|
77
|
+
for (const p of s)
|
|
78
|
+
if (p.type === "Group" && p.children) {
|
|
79
|
+
const l = [], g = [], i = [...p.children].sort((o, d) => {
|
|
80
80
|
const b = o.layerOrder ?? 0, D = d.layerOrder ?? 0;
|
|
81
81
|
return b - D;
|
|
82
82
|
});
|
|
@@ -87,14 +87,14 @@ function Ye(r, h) {
|
|
|
87
87
|
f.push(...o);
|
|
88
88
|
}
|
|
89
89
|
l.length > 0 && f.push({
|
|
90
|
-
...
|
|
90
|
+
...p,
|
|
91
91
|
children: l
|
|
92
92
|
});
|
|
93
93
|
} else
|
|
94
|
-
f.push(
|
|
94
|
+
f.push(p);
|
|
95
95
|
return f;
|
|
96
96
|
}, a = n(B).map(
|
|
97
|
-
(s) =>
|
|
97
|
+
(s) => Ke(s, v, t, e)
|
|
98
98
|
);
|
|
99
99
|
return {
|
|
100
100
|
width: C,
|
|
@@ -104,10 +104,10 @@ function Ye(r, h) {
|
|
|
104
104
|
})
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Ye(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 Ze(r) {
|
|
111
111
|
return r ? r.type === "bezier" ? {
|
|
112
112
|
type: "bezier",
|
|
113
113
|
paths: r.paths.map((h) => ({
|
|
@@ -134,12 +134,12 @@ function dr(r, h) {
|
|
|
134
134
|
if (!e || e.length < 2) return;
|
|
135
135
|
const u = e[0];
|
|
136
136
|
r.moveTo(u.points[2], u.points[3]);
|
|
137
|
-
for (let
|
|
138
|
-
const m = e[
|
|
139
|
-
let B = (
|
|
140
|
-
if (!t.open &&
|
|
137
|
+
for (let v = 0; v < e.length; v++) {
|
|
138
|
+
const m = e[v];
|
|
139
|
+
let B = (v + 1) % e.length;
|
|
140
|
+
if (!t.open && v === e.length - 1)
|
|
141
141
|
B = 0;
|
|
142
|
-
else if (t.open &&
|
|
142
|
+
else if (t.open && v === e.length - 1)
|
|
143
143
|
break;
|
|
144
144
|
const C = e[B], x = m.points[4], n = m.points[5], E = C.points[0], a = C.points[1], s = C.points[2], f = C.points[3];
|
|
145
145
|
r.bezierCurveTo(x, n, E, a, s, f);
|
|
@@ -299,17 +299,16 @@ class l0 {
|
|
|
299
299
|
return h?.startsWith("blob:") ?? !1;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
const t0 = Cr;
|
|
303
302
|
(function(r, h) {
|
|
304
|
-
const t =
|
|
303
|
+
const t = t0, e = r();
|
|
305
304
|
for (; ; )
|
|
306
305
|
try {
|
|
307
|
-
if (-parseInt(t(
|
|
306
|
+
if (-parseInt(t(514)) / 1 + -parseInt(t(527)) / 2 * (-parseInt(t(532)) / 3) + -parseInt(t(520)) / 4 + parseInt(t(503)) / 5 + -parseInt(t(506)) / 6 * (parseInt(t(497)) / 7) + -parseInt(t(498)) / 8 * (-parseInt(t(502)) / 9) + -parseInt(t(513)) / 10 * (-parseInt(t(519)) / 11) === h) break;
|
|
308
307
|
e.push(e.shift());
|
|
309
308
|
} catch {
|
|
310
309
|
e.push(e.shift());
|
|
311
310
|
}
|
|
312
|
-
})(sr, -
|
|
311
|
+
})(sr, -966345 + -3919 * 323 + 3347 * 937);
|
|
313
312
|
const E0 = /* @__PURE__ */ (function() {
|
|
314
313
|
let r = !0;
|
|
315
314
|
return function(h, t) {
|
|
@@ -322,107 +321,109 @@ const E0 = /* @__PURE__ */ (function() {
|
|
|
322
321
|
};
|
|
323
322
|
return r = !1, e;
|
|
324
323
|
};
|
|
325
|
-
})(),
|
|
326
|
-
const r =
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
324
|
+
})(), Qe = E0(void 0, function() {
|
|
325
|
+
const r = t0, h = function() {
|
|
326
|
+
const v = t0;
|
|
327
|
+
let m;
|
|
328
|
+
try {
|
|
329
|
+
m = Function("return (function() " + ("{}.constructor(" + v(529) + v(525) + v(501) + " )") + ");")();
|
|
330
|
+
} catch {
|
|
331
|
+
m = window;
|
|
332
|
+
}
|
|
333
|
+
return m;
|
|
334
|
+
}, t = h(), e = t.console = t.console || {}, u = [r(507), "warn", "info", r(521), r(533) + r(509), "table", "trace"];
|
|
335
|
+
for (let v = 4867 + -1 * 4801 + -66; v < u.length; v++) {
|
|
336
|
+
const m = E0.constructor[r(530) + "type"].bind(E0), B = u[v], C = e[B] || m;
|
|
337
|
+
m.__proto__ = E0[r(508)](E0), m[r(523) + r(531)] = C[r(523) + "ing"].bind(C), e[B] = m;
|
|
337
338
|
}
|
|
338
339
|
});
|
|
339
|
-
|
|
340
|
-
|
|
340
|
+
Qe();
|
|
341
|
+
function sr() {
|
|
342
|
+
const r = ['is")(', "10683vtNloC", "8945740yBTlKR", "isDat", "ame", "1823646KJAOBO", "log", "bind", "tion", "des", "oken", "aUrl", "10645630yzxaSO", "1317143eZcWTb", "file_", "wser", "fetch", "FileT", "11sNqaet", "2066104MLYoJl", "error", "oken=", "toStr", "ram", "rn th", "now", "12882BqGtUJ", "efres", '"retu', "proto", "ing", "102XQCjvJ", "excep", "fileT", "data", "/file", "getIt", "35WuPxHc", "7984ULlsfz", "inclu", "token"];
|
|
343
|
+
return sr = function() {
|
|
344
|
+
return r;
|
|
345
|
+
}, sr();
|
|
346
|
+
}
|
|
347
|
+
const pr = "file_token", Br = "file_token_expire_time", Ve = (2426 * -2 + 9505 * -1 + 14417) * 1e3;
|
|
341
348
|
function hr() {
|
|
342
349
|
return h0.getItem(pr);
|
|
343
350
|
}
|
|
344
|
-
function
|
|
351
|
+
function Je(r = Ve) {
|
|
345
352
|
const h = t0;
|
|
346
353
|
if (!hr()) return !0;
|
|
347
|
-
const e = h0
|
|
354
|
+
const e = h0[h(537) + "em"](Br);
|
|
348
355
|
if (!e) return !1;
|
|
349
356
|
const u = Number(e);
|
|
350
|
-
return Date[h(
|
|
357
|
+
return Date[h(526)]() + r > u;
|
|
351
358
|
}
|
|
352
|
-
function
|
|
353
|
-
|
|
354
|
-
|
|
359
|
+
function rt(r, h) {
|
|
360
|
+
const t = t0;
|
|
361
|
+
if (h0.setItem(pr, r), typeof h == "number" && h > -5178 + 3 * 1726) {
|
|
362
|
+
const e = Date[t(526)]() + h * 1e3;
|
|
355
363
|
h0.setItem(Br, String(e));
|
|
356
364
|
}
|
|
357
365
|
}
|
|
358
|
-
function
|
|
359
|
-
|
|
360
|
-
}
|
|
361
|
-
async function Pr(r) {
|
|
362
|
-
const h = await r(), t = h?.data?.data;
|
|
363
|
-
return h?.data?.code === 200 && t?.["file_token"] ? (et(t.file_token, t.expires_in), t.file_token) : null;
|
|
366
|
+
function t0(r, h) {
|
|
367
|
+
return r = r - (-8778 + 371 * 25), sr()[r];
|
|
364
368
|
}
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
const r = ["eItem", "2TfMjhv", "token", "addPa", "60974330XHJOyR", "ePara", "inclu", "setIt", "table", "ram", "oken", "116OtoCRk", "des", "remov", "bind", "toStr", "fetch", "11970RYOvGE", "5252370hkJnPb", "10545199MyiOWt", "nstru", "now", "130010oEnepY", "ing", "file_", "fileT", "272378pxgiTo", "7769262SnSkBF", "FileT", "10072CqzCKJ"];
|
|
368
|
-
return sr = function() {
|
|
369
|
-
return r;
|
|
370
|
-
}, sr();
|
|
369
|
+
function et() {
|
|
370
|
+
h0.removeItem(pr), h0.removeItem(Br);
|
|
371
371
|
}
|
|
372
|
-
function
|
|
373
|
-
|
|
372
|
+
async function Rr(r) {
|
|
373
|
+
const h = t0, t = await r(), e = t?.[h(535)]?.data;
|
|
374
|
+
return t?.data?.code === -9143 + -6233 * 1 + -7788 * -2 && e?.[h(515) + h(500)] ? (rt(e[h(515) + "token"], e.expires_in), e[h(515) + "token"]) : null;
|
|
374
375
|
}
|
|
375
|
-
|
|
376
|
-
|
|
376
|
+
let tt = null;
|
|
377
|
+
function Pr() {
|
|
378
|
+
return cr.isBrowser() ? tt : null;
|
|
377
379
|
}
|
|
378
|
-
async function
|
|
380
|
+
async function Fe() {
|
|
379
381
|
const r = t0;
|
|
380
|
-
if (!cr
|
|
382
|
+
if (!cr["isBro" + r(516)]()) return hr();
|
|
381
383
|
const h = hr();
|
|
382
|
-
if (h && !
|
|
384
|
+
if (h && !Je()) return h;
|
|
383
385
|
try {
|
|
384
|
-
const t = await
|
|
385
|
-
if (h && t?.[r(
|
|
386
|
-
const e = await
|
|
386
|
+
const t = await Pr();
|
|
387
|
+
if (h && t?.[r(517) + r(518) + "okenRefresh"]) {
|
|
388
|
+
const e = await Rr(t[r(517) + "FileTokenR" + r(528) + "h"]);
|
|
387
389
|
if (e) return e;
|
|
388
390
|
}
|
|
389
391
|
} catch {
|
|
390
392
|
}
|
|
391
393
|
try {
|
|
392
|
-
const t =
|
|
393
|
-
return t?.["
|
|
394
|
+
const t = Pr();
|
|
395
|
+
return t?.["fetchFileToken"] ? await Rr(t[r(517) + "FileToken"]) : null;
|
|
394
396
|
} catch {
|
|
395
397
|
return null;
|
|
396
398
|
}
|
|
397
399
|
}
|
|
398
|
-
function
|
|
400
|
+
function De(r) {
|
|
399
401
|
const h = t0;
|
|
400
|
-
if (!r || l0
|
|
402
|
+
if (!r || l0[h(504) + h(512)](r) || l0.isBlobUrl(r)) return !1;
|
|
401
403
|
const t = l0.parse(r);
|
|
402
|
-
return t ? t
|
|
404
|
+
return t ? t["pathn" + h(505)][h(499) + h(510)](h(536) + "s/") && !l0["hasPa" + h(524)](r, "fileT" + h(511)) : r[h(499) + "des"]("/files/") && !r[h(499) + "des"](h(534) + h(522));
|
|
403
405
|
}
|
|
404
|
-
function
|
|
405
|
-
|
|
406
|
-
return !h || !ge(r) ? r : l0[t(472) + t(448)](r, "fileToken", h);
|
|
406
|
+
function ge(r, h) {
|
|
407
|
+
return !h || !De(r) ? r : l0.addParam(r, "fileToken", h);
|
|
407
408
|
}
|
|
408
|
-
function
|
|
409
|
+
function xt(r) {
|
|
409
410
|
const h = t0;
|
|
410
|
-
return l0
|
|
411
|
+
return l0.removeParam(r, "fileT" + h(511));
|
|
411
412
|
}
|
|
412
|
-
async function
|
|
413
|
-
if (!
|
|
414
|
-
const h = await
|
|
415
|
-
return
|
|
413
|
+
async function nt(r) {
|
|
414
|
+
if (!De(r)) return r;
|
|
415
|
+
const h = await Fe();
|
|
416
|
+
return ge(r, h);
|
|
416
417
|
}
|
|
417
|
-
async function
|
|
418
|
+
async function be(r, h) {
|
|
418
419
|
if (!cr.isBrowser()) return fetch(r, h);
|
|
419
|
-
const t =
|
|
420
|
-
if (u.status !==
|
|
421
|
-
|
|
422
|
-
const
|
|
420
|
+
const t = xt(r), e = await nt(t), u = await fetch(e, h);
|
|
421
|
+
if (u.status !== 1873 * 4 + 1235 + -8326) return u;
|
|
422
|
+
et();
|
|
423
|
+
const v = await Fe(), m = ge(t, v);
|
|
423
424
|
return fetch(m, h);
|
|
424
425
|
}
|
|
425
|
-
const
|
|
426
|
+
const me = (r, h) => {
|
|
426
427
|
if (!r) return r;
|
|
427
428
|
const t = (h || "").replace(/\/$/, "");
|
|
428
429
|
if (t && r.startsWith(t))
|
|
@@ -431,23 +432,23 @@ const _e = (r, h) => {
|
|
|
431
432
|
const u = window.location.hostname;
|
|
432
433
|
if (u === "localhost" || u === "127.0.0.1")
|
|
433
434
|
try {
|
|
434
|
-
const
|
|
435
|
+
const v = new URL(r);
|
|
435
436
|
if (t)
|
|
436
437
|
try {
|
|
437
438
|
const m = new URL(t).origin;
|
|
438
|
-
if (
|
|
439
|
+
if (v.origin === m)
|
|
439
440
|
return r;
|
|
440
441
|
} catch {
|
|
441
442
|
}
|
|
442
|
-
if (
|
|
443
|
-
return t ? `${t}${
|
|
443
|
+
if (v.pathname.startsWith("/files/"))
|
|
444
|
+
return t ? `${t}${v.pathname}${v.search}${v.hash}` : `${v.pathname}${v.search}${v.hash}`;
|
|
444
445
|
} catch {
|
|
445
446
|
}
|
|
446
447
|
}
|
|
447
448
|
if (typeof window < "u" && window.location.hostname !== "localhost") return r;
|
|
448
449
|
const e = r.match(/^https?:\/\/([^/]+\.oss[^/]*\.aliyuncs\.com)(.*)$/);
|
|
449
450
|
return e ? `/oss${e[2]}` : r;
|
|
450
|
-
},
|
|
451
|
+
}, at = (r, h) => {
|
|
451
452
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
452
453
|
return new OffscreenCanvas(r, h);
|
|
453
454
|
const t = document.createElement("canvas");
|
|
@@ -456,22 +457,22 @@ const _e = (r, h) => {
|
|
|
456
457
|
if (!h || h <= 0) return r;
|
|
457
458
|
const t = Math.max(r.width, r.height);
|
|
458
459
|
if (t <= h) return r;
|
|
459
|
-
const e = h / t, u = Math.max(1, Math.round(r.width * e)),
|
|
460
|
-
return B ? (B.drawImage(r, 0, 0, u,
|
|
460
|
+
const e = h / t, u = Math.max(1, Math.round(r.width * e)), v = Math.max(1, Math.round(r.height * e)), m = at(u, v), B = m.getContext("2d");
|
|
461
|
+
return B ? (B.drawImage(r, 0, 0, u, v), r.close?.(), await createImageBitmap(m)) : r;
|
|
461
462
|
};
|
|
462
|
-
async function
|
|
463
|
+
async function ot(r, h, t) {
|
|
463
464
|
if (typeof r == "string")
|
|
464
465
|
try {
|
|
465
|
-
const e =
|
|
466
|
+
const e = me(r, t), u = await be(e);
|
|
466
467
|
if (!u.ok) {
|
|
467
468
|
const m = u.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${u.status} ${u.statusText}): ${r}`;
|
|
468
469
|
throw new Error(m);
|
|
469
470
|
}
|
|
470
|
-
const
|
|
471
|
-
if (!
|
|
471
|
+
const v = await u.blob();
|
|
472
|
+
if (!v.type.startsWith("image/") && v.size === 0)
|
|
472
473
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
473
474
|
try {
|
|
474
|
-
const m = await createImageBitmap(
|
|
475
|
+
const m = await createImageBitmap(v);
|
|
475
476
|
return await m0(m, h);
|
|
476
477
|
} catch (m) {
|
|
477
478
|
throw new Error(`图片解码失败: URL=${r}, 错误=${m instanceof Error ? m.message : m}`);
|
|
@@ -498,18 +499,18 @@ async function it(r, h, t) {
|
|
|
498
499
|
}
|
|
499
500
|
throw new Error("不支持的图片类型");
|
|
500
501
|
}
|
|
501
|
-
async function
|
|
502
|
+
async function it(r, h, t) {
|
|
502
503
|
try {
|
|
503
|
-
const e =
|
|
504
|
+
const e = me(r, t), u = await be(e);
|
|
504
505
|
if (!u.ok) {
|
|
505
506
|
const m = u.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${u.status} ${u.statusText}): ${r}`;
|
|
506
507
|
throw new Error(m);
|
|
507
508
|
}
|
|
508
|
-
const
|
|
509
|
-
if (!
|
|
509
|
+
const v = await u.blob();
|
|
510
|
+
if (!v.type.startsWith("image/") && v.size === 0)
|
|
510
511
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
511
512
|
try {
|
|
512
|
-
const m = await createImageBitmap(
|
|
513
|
+
const m = await createImageBitmap(v);
|
|
513
514
|
return await m0(m, h);
|
|
514
515
|
} catch (m) {
|
|
515
516
|
throw new Error(`图片解码失败: URL=${r}, 错误=${m instanceof Error ? m.message : m}`);
|
|
@@ -518,7 +519,7 @@ async function st(r, h, t) {
|
|
|
518
519
|
throw e instanceof Error ? e : new Error(`加载图片失败: ${r}, ${e}`);
|
|
519
520
|
}
|
|
520
521
|
}
|
|
521
|
-
function
|
|
522
|
+
function zr(r) {
|
|
522
523
|
if (!r) return "source-over";
|
|
523
524
|
const h = r.trim().toLowerCase();
|
|
524
525
|
return {
|
|
@@ -549,7 +550,7 @@ function Wr(r) {
|
|
|
549
550
|
}[h] || "source-over";
|
|
550
551
|
}
|
|
551
552
|
var lr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
552
|
-
function
|
|
553
|
+
function st(r) {
|
|
553
554
|
if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
|
|
554
555
|
var h = r.default;
|
|
555
556
|
if (typeof h == "function") {
|
|
@@ -574,35 +575,35 @@ function ct(r) {
|
|
|
574
575
|
}), t;
|
|
575
576
|
}
|
|
576
577
|
var _0 = { exports: {} };
|
|
577
|
-
function
|
|
578
|
+
function ct(r) {
|
|
578
579
|
throw new Error('Could not dynamically require "' + r + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
579
580
|
}
|
|
580
|
-
var y0 = { exports: {} },
|
|
581
|
+
var y0 = { exports: {} }, ft = {}, ut = /* @__PURE__ */ Object.freeze({
|
|
581
582
|
__proto__: null,
|
|
582
|
-
default:
|
|
583
|
-
}),
|
|
583
|
+
default: ft
|
|
584
|
+
}), dt = /* @__PURE__ */ st(ut), lt = y0.exports, Wr;
|
|
584
585
|
function M() {
|
|
585
|
-
return
|
|
586
|
+
return Wr || (Wr = 1, (function(r, h) {
|
|
586
587
|
(function(t, e) {
|
|
587
588
|
r.exports = e();
|
|
588
|
-
})(
|
|
589
|
+
})(lt, function() {
|
|
589
590
|
var t = t || (function(e, u) {
|
|
590
|
-
var
|
|
591
|
-
if (typeof window < "u" && window.crypto && (
|
|
591
|
+
var v;
|
|
592
|
+
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 lr < "u" && lr.crypto && (v = lr.crypto), !v && typeof ct == "function")
|
|
592
593
|
try {
|
|
593
|
-
|
|
594
|
+
v = dt;
|
|
594
595
|
} catch {
|
|
595
596
|
}
|
|
596
597
|
var m = function() {
|
|
597
|
-
if (
|
|
598
|
-
if (typeof
|
|
598
|
+
if (v) {
|
|
599
|
+
if (typeof v.getRandomValues == "function")
|
|
599
600
|
try {
|
|
600
|
-
return
|
|
601
|
+
return v.getRandomValues(new Uint32Array(1))[0];
|
|
601
602
|
} catch {
|
|
602
603
|
}
|
|
603
|
-
if (typeof
|
|
604
|
+
if (typeof v.randomBytes == "function")
|
|
604
605
|
try {
|
|
605
|
-
return
|
|
606
|
+
return v.randomBytes(4).readInt32LE();
|
|
606
607
|
} catch {
|
|
607
608
|
}
|
|
608
609
|
}
|
|
@@ -874,7 +875,7 @@ function M() {
|
|
|
874
875
|
d[b >>> 2] |= (i.charCodeAt(b) & 255) << 24 - b % 4 * 8;
|
|
875
876
|
return new E.init(d, o);
|
|
876
877
|
}
|
|
877
|
-
},
|
|
878
|
+
}, p = a.Utf8 = {
|
|
878
879
|
/**
|
|
879
880
|
* Converts a word array to a UTF-8 string.
|
|
880
881
|
*
|
|
@@ -933,7 +934,7 @@ function M() {
|
|
|
933
934
|
* bufferedBlockAlgorithm._append(wordArray);
|
|
934
935
|
*/
|
|
935
936
|
_append: function(i) {
|
|
936
|
-
typeof i == "string" && (i =
|
|
937
|
+
typeof i == "string" && (i = p.parse(i)), this._data.concat(i), this._nDataBytes += i.sigBytes;
|
|
937
938
|
},
|
|
938
939
|
/**
|
|
939
940
|
* Processes available data blocks.
|
|
@@ -1081,14 +1082,14 @@ function M() {
|
|
|
1081
1082
|
});
|
|
1082
1083
|
})(y0)), y0.exports;
|
|
1083
1084
|
}
|
|
1084
|
-
var w0 = { exports: {} },
|
|
1085
|
+
var w0 = { exports: {} }, ht = w0.exports, Ir;
|
|
1085
1086
|
function fr() {
|
|
1086
|
-
return
|
|
1087
|
+
return Ir || (Ir = 1, (function(r, h) {
|
|
1087
1088
|
(function(t, e) {
|
|
1088
1089
|
r.exports = e(M());
|
|
1089
|
-
})(
|
|
1090
|
+
})(ht, function(t) {
|
|
1090
1091
|
return (function(e) {
|
|
1091
|
-
var u = t,
|
|
1092
|
+
var u = t, v = u.lib, m = v.Base, B = v.WordArray, C = u.x64 = {};
|
|
1092
1093
|
C.Word = m.extend({
|
|
1093
1094
|
/**
|
|
1094
1095
|
* Initializes a newly created 64-bit word.
|
|
@@ -1311,15 +1312,15 @@ function fr() {
|
|
|
1311
1312
|
});
|
|
1312
1313
|
})(w0)), w0.exports;
|
|
1313
1314
|
}
|
|
1314
|
-
var k0 = { exports: {} },
|
|
1315
|
-
function
|
|
1316
|
-
return
|
|
1315
|
+
var k0 = { exports: {} }, vt = k0.exports, Lr;
|
|
1316
|
+
function pt() {
|
|
1317
|
+
return Lr || (Lr = 1, (function(r, h) {
|
|
1317
1318
|
(function(t, e) {
|
|
1318
1319
|
r.exports = e(M());
|
|
1319
|
-
})(
|
|
1320
|
+
})(vt, function(t) {
|
|
1320
1321
|
return (function() {
|
|
1321
1322
|
if (typeof ArrayBuffer == "function") {
|
|
1322
|
-
var e = t, u = e.lib,
|
|
1323
|
+
var e = t, u = e.lib, v = u.WordArray, m = v.init, B = v.init = function(C) {
|
|
1323
1324
|
if (C instanceof ArrayBuffer && (C = new Uint8Array(C)), (C instanceof Int8Array || typeof Uint8ClampedArray < "u" && C instanceof Uint8ClampedArray || C instanceof Int16Array || C instanceof Uint16Array || C instanceof Int32Array || C instanceof Uint32Array || C instanceof Float32Array || C instanceof Float64Array) && (C = new Uint8Array(C.buffer, C.byteOffset, C.byteLength)), C instanceof Uint8Array) {
|
|
1324
1325
|
for (var x = C.byteLength, n = [], E = 0; E < x; E++)
|
|
1325
1326
|
n[E >>> 2] |= C[E] << 24 - E % 4 * 8;
|
|
@@ -1327,20 +1328,20 @@ function Bt() {
|
|
|
1327
1328
|
} else
|
|
1328
1329
|
m.apply(this, arguments);
|
|
1329
1330
|
};
|
|
1330
|
-
B.prototype =
|
|
1331
|
+
B.prototype = v;
|
|
1331
1332
|
}
|
|
1332
1333
|
})(), t.lib.WordArray;
|
|
1333
1334
|
});
|
|
1334
1335
|
})(k0)), k0.exports;
|
|
1335
1336
|
}
|
|
1336
|
-
var S0 = { exports: {} },
|
|
1337
|
-
function
|
|
1338
|
-
return
|
|
1337
|
+
var S0 = { exports: {} }, Bt = S0.exports, Or;
|
|
1338
|
+
function Ct() {
|
|
1339
|
+
return Or || (Or = 1, (function(r, h) {
|
|
1339
1340
|
(function(t, e) {
|
|
1340
1341
|
r.exports = e(M());
|
|
1341
|
-
})(
|
|
1342
|
+
})(Bt, function(t) {
|
|
1342
1343
|
return (function() {
|
|
1343
|
-
var e = t, u = e.lib,
|
|
1344
|
+
var e = t, u = e.lib, v = u.WordArray, m = e.enc;
|
|
1344
1345
|
m.Utf16 = m.Utf16BE = {
|
|
1345
1346
|
/**
|
|
1346
1347
|
* Converts a word array to a UTF-16 BE string.
|
|
@@ -1378,7 +1379,7 @@ function Et() {
|
|
|
1378
1379
|
parse: function(C) {
|
|
1379
1380
|
for (var x = C.length, n = [], E = 0; E < x; E++)
|
|
1380
1381
|
n[E >>> 1] |= C.charCodeAt(E) << 16 - E % 2 * 16;
|
|
1381
|
-
return
|
|
1382
|
+
return v.create(n, x * 2);
|
|
1382
1383
|
}
|
|
1383
1384
|
}, m.Utf16LE = {
|
|
1384
1385
|
/**
|
|
@@ -1417,7 +1418,7 @@ function Et() {
|
|
|
1417
1418
|
parse: function(C) {
|
|
1418
1419
|
for (var x = C.length, n = [], E = 0; E < x; E++)
|
|
1419
1420
|
n[E >>> 1] |= B(C.charCodeAt(E) << 16 - E % 2 * 16);
|
|
1420
|
-
return
|
|
1421
|
+
return v.create(n, x * 2);
|
|
1421
1422
|
}
|
|
1422
1423
|
};
|
|
1423
1424
|
function B(C) {
|
|
@@ -1427,14 +1428,14 @@ function Et() {
|
|
|
1427
1428
|
});
|
|
1428
1429
|
})(S0)), S0.exports;
|
|
1429
1430
|
}
|
|
1430
|
-
var H0 = { exports: {} },
|
|
1431
|
+
var H0 = { exports: {} }, Et = H0.exports, qr;
|
|
1431
1432
|
function i0() {
|
|
1432
|
-
return
|
|
1433
|
+
return qr || (qr = 1, (function(r, h) {
|
|
1433
1434
|
(function(t, e) {
|
|
1434
1435
|
r.exports = e(M());
|
|
1435
|
-
})(
|
|
1436
|
+
})(Et, function(t) {
|
|
1436
1437
|
return (function() {
|
|
1437
|
-
var e = t, u = e.lib,
|
|
1438
|
+
var e = t, u = e.lib, v = u.WordArray, m = e.enc;
|
|
1438
1439
|
m.Base64 = {
|
|
1439
1440
|
/**
|
|
1440
1441
|
* Converts a word array to a Base64 string.
|
|
@@ -1453,7 +1454,7 @@ function i0() {
|
|
|
1453
1454
|
var x = C.words, n = C.sigBytes, E = this._map;
|
|
1454
1455
|
C.clamp();
|
|
1455
1456
|
for (var a = [], s = 0; s < n; s += 3)
|
|
1456
|
-
for (var f = x[s >>> 2] >>> 24 - s % 4 * 8 & 255,
|
|
1457
|
+
for (var f = x[s >>> 2] >>> 24 - s % 4 * 8 & 255, p = x[s + 1 >>> 2] >>> 24 - (s + 1) % 4 * 8 & 255, l = x[s + 2 >>> 2] >>> 24 - (s + 2) % 4 * 8 & 255, g = f << 16 | p << 8 | l, i = 0; i < 4 && s + i * 0.75 < n; i++)
|
|
1457
1458
|
a.push(E.charAt(g >>> 6 * (3 - i) & 63));
|
|
1458
1459
|
var o = E.charAt(64);
|
|
1459
1460
|
if (o)
|
|
@@ -1493,23 +1494,23 @@ function i0() {
|
|
|
1493
1494
|
function B(C, x, n) {
|
|
1494
1495
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1495
1496
|
if (s % 4) {
|
|
1496
|
-
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2,
|
|
1497
|
+
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, p = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, l = f | p;
|
|
1497
1498
|
E[a >>> 2] |= l << 24 - a % 4 * 8, a++;
|
|
1498
1499
|
}
|
|
1499
|
-
return
|
|
1500
|
+
return v.create(E, a);
|
|
1500
1501
|
}
|
|
1501
1502
|
})(), t.enc.Base64;
|
|
1502
1503
|
});
|
|
1503
1504
|
})(H0)), H0.exports;
|
|
1504
1505
|
}
|
|
1505
|
-
var $0 = { exports: {} },
|
|
1506
|
-
function
|
|
1507
|
-
return
|
|
1506
|
+
var $0 = { exports: {} }, At = $0.exports, Tr;
|
|
1507
|
+
function Ft() {
|
|
1508
|
+
return Tr || (Tr = 1, (function(r, h) {
|
|
1508
1509
|
(function(t, e) {
|
|
1509
1510
|
r.exports = e(M());
|
|
1510
|
-
})(
|
|
1511
|
+
})(At, function(t) {
|
|
1511
1512
|
return (function() {
|
|
1512
|
-
var e = t, u = e.lib,
|
|
1513
|
+
var e = t, u = e.lib, v = u.WordArray, m = e.enc;
|
|
1513
1514
|
m.Base64url = {
|
|
1514
1515
|
/**
|
|
1515
1516
|
* Converts a word array to a Base64url string.
|
|
@@ -1531,7 +1532,7 @@ function Dt() {
|
|
|
1531
1532
|
var n = C.words, E = C.sigBytes, a = x ? this._safe_map : this._map;
|
|
1532
1533
|
C.clamp();
|
|
1533
1534
|
for (var s = [], f = 0; f < E; f += 3)
|
|
1534
|
-
for (var
|
|
1535
|
+
for (var p = n[f >>> 2] >>> 24 - f % 4 * 8 & 255, l = n[f + 1 >>> 2] >>> 24 - (f + 1) % 4 * 8 & 255, g = n[f + 2 >>> 2] >>> 24 - (f + 2) % 4 * 8 & 255, i = p << 16 | l << 8 | g, o = 0; o < 4 && f + o * 0.75 < E; o++)
|
|
1535
1536
|
s.push(a.charAt(i >>> 6 * (3 - o) & 63));
|
|
1536
1537
|
var d = a.charAt(64);
|
|
1537
1538
|
if (d)
|
|
@@ -1564,8 +1565,8 @@ function Dt() {
|
|
|
1564
1565
|
}
|
|
1565
1566
|
var f = E.charAt(64);
|
|
1566
1567
|
if (f) {
|
|
1567
|
-
var
|
|
1568
|
-
|
|
1568
|
+
var p = C.indexOf(f);
|
|
1569
|
+
p !== -1 && (n = p);
|
|
1569
1570
|
}
|
|
1570
1571
|
return B(C, n, a);
|
|
1571
1572
|
},
|
|
@@ -1575,26 +1576,26 @@ function Dt() {
|
|
|
1575
1576
|
function B(C, x, n) {
|
|
1576
1577
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1577
1578
|
if (s % 4) {
|
|
1578
|
-
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2,
|
|
1579
|
+
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, p = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, l = f | p;
|
|
1579
1580
|
E[a >>> 2] |= l << 24 - a % 4 * 8, a++;
|
|
1580
1581
|
}
|
|
1581
|
-
return
|
|
1582
|
+
return v.create(E, a);
|
|
1582
1583
|
}
|
|
1583
1584
|
})(), t.enc.Base64url;
|
|
1584
1585
|
});
|
|
1585
1586
|
})($0)), $0.exports;
|
|
1586
1587
|
}
|
|
1587
|
-
var R0 = { exports: {} },
|
|
1588
|
+
var R0 = { exports: {} }, Dt = R0.exports, Mr;
|
|
1588
1589
|
function s0() {
|
|
1589
|
-
return
|
|
1590
|
+
return Mr || (Mr = 1, (function(r, h) {
|
|
1590
1591
|
(function(t, e) {
|
|
1591
1592
|
r.exports = e(M());
|
|
1592
|
-
})(
|
|
1593
|
+
})(Dt, function(t) {
|
|
1593
1594
|
return (function(e) {
|
|
1594
|
-
var u = t,
|
|
1595
|
+
var u = t, v = u.lib, m = v.WordArray, B = v.Hasher, C = u.algo, x = [];
|
|
1595
1596
|
(function() {
|
|
1596
|
-
for (var
|
|
1597
|
-
x[
|
|
1597
|
+
for (var p = 0; p < 64; p++)
|
|
1598
|
+
x[p] = e.abs(e.sin(p + 1)) * 4294967296 | 0;
|
|
1598
1599
|
})();
|
|
1599
1600
|
var n = C.MD5 = B.extend({
|
|
1600
1601
|
_doReset: function() {
|
|
@@ -1605,19 +1606,19 @@ function s0() {
|
|
|
1605
1606
|
271733878
|
|
1606
1607
|
]);
|
|
1607
1608
|
},
|
|
1608
|
-
_doProcessBlock: function(
|
|
1609
|
+
_doProcessBlock: function(p, l) {
|
|
1609
1610
|
for (var g = 0; g < 16; g++) {
|
|
1610
|
-
var i = l + g, o =
|
|
1611
|
-
|
|
1611
|
+
var i = l + g, o = p[i];
|
|
1612
|
+
p[i] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360;
|
|
1612
1613
|
}
|
|
1613
|
-
var d = this._hash.words, b =
|
|
1614
|
+
var d = this._hash.words, b = p[l + 0], D = p[l + 1], y = p[l + 2], k = p[l + 3], R = p[l + 4], F = p[l + 5], w = p[l + 6], H = p[l + 7], $ = p[l + 8], z = p[l + 9], O = p[l + 10], q = p[l + 11], U = p[l + 12], T = p[l + 13], N = p[l + 14], j = p[l + 15], S = d[0], c = d[1], A = d[2], _ = d[3];
|
|
1614
1615
|
S = E(S, c, A, _, b, 7, x[0]), _ = E(_, S, c, A, D, 12, x[1]), A = E(A, _, S, c, y, 17, x[2]), c = E(c, A, _, S, k, 22, x[3]), S = E(S, c, A, _, R, 7, x[4]), _ = E(_, S, c, A, F, 12, x[5]), A = E(A, _, S, c, w, 17, x[6]), c = E(c, A, _, S, H, 22, x[7]), S = E(S, c, A, _, $, 7, x[8]), _ = E(_, S, c, A, z, 12, x[9]), A = E(A, _, S, c, O, 17, x[10]), c = E(c, A, _, S, q, 22, x[11]), S = E(S, c, A, _, U, 7, x[12]), _ = E(_, S, c, A, T, 12, x[13]), A = E(A, _, S, c, N, 17, x[14]), c = E(c, A, _, S, j, 22, x[15]), S = a(S, c, A, _, D, 5, x[16]), _ = a(_, S, c, A, w, 9, x[17]), A = a(A, _, S, c, q, 14, x[18]), c = a(c, A, _, S, b, 20, x[19]), S = a(S, c, A, _, F, 5, x[20]), _ = a(_, S, c, A, O, 9, x[21]), A = a(A, _, S, c, j, 14, x[22]), c = a(c, A, _, S, R, 20, x[23]), S = a(S, c, A, _, z, 5, x[24]), _ = a(_, S, c, A, N, 9, x[25]), A = a(A, _, S, c, k, 14, x[26]), c = a(c, A, _, S, $, 20, x[27]), S = a(S, c, A, _, T, 5, x[28]), _ = a(_, S, c, A, y, 9, x[29]), A = a(A, _, S, c, H, 14, x[30]), c = a(c, A, _, S, U, 20, x[31]), S = s(S, c, A, _, F, 4, x[32]), _ = s(_, S, c, A, $, 11, x[33]), A = s(A, _, S, c, q, 16, x[34]), c = s(c, A, _, S, N, 23, x[35]), S = s(S, c, A, _, D, 4, x[36]), _ = s(_, S, c, A, R, 11, x[37]), A = s(A, _, S, c, H, 16, x[38]), c = s(c, A, _, S, O, 23, x[39]), S = s(S, c, A, _, T, 4, x[40]), _ = s(_, S, c, A, b, 11, x[41]), A = s(A, _, S, c, k, 16, x[42]), c = s(c, A, _, S, w, 23, x[43]), S = s(S, c, A, _, z, 4, x[44]), _ = s(_, S, c, A, U, 11, x[45]), A = s(A, _, S, c, j, 16, x[46]), c = s(c, A, _, S, y, 23, x[47]), S = f(S, c, A, _, b, 6, x[48]), _ = f(_, S, c, A, H, 10, x[49]), A = f(A, _, S, c, N, 15, x[50]), c = f(c, A, _, S, F, 21, x[51]), S = f(S, c, A, _, U, 6, x[52]), _ = f(_, S, c, A, k, 10, x[53]), A = f(A, _, S, c, O, 15, x[54]), c = f(c, A, _, S, D, 21, x[55]), S = f(S, c, A, _, $, 6, x[56]), _ = f(_, S, c, A, j, 10, x[57]), A = f(A, _, S, c, w, 15, x[58]), c = f(c, A, _, S, T, 21, x[59]), S = f(S, c, A, _, R, 6, x[60]), _ = f(_, S, c, A, q, 10, x[61]), A = f(A, _, S, c, y, 15, x[62]), c = f(c, A, _, S, z, 21, x[63]), d[0] = d[0] + S | 0, d[1] = d[1] + c | 0, d[2] = d[2] + A | 0, d[3] = d[3] + _ | 0;
|
|
1615
1616
|
},
|
|
1616
1617
|
_doFinalize: function() {
|
|
1617
|
-
var
|
|
1618
|
+
var p = this._data, l = p.words, g = this._nDataBytes * 8, i = p.sigBytes * 8;
|
|
1618
1619
|
l[i >>> 5] |= 128 << 24 - i % 32;
|
|
1619
1620
|
var o = e.floor(g / 4294967296), d = g;
|
|
1620
|
-
l[(i + 64 >>> 9 << 4) + 15] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, l[(i + 64 >>> 9 << 4) + 14] = (d << 8 | d >>> 24) & 16711935 | (d << 24 | d >>> 8) & 4278255360,
|
|
1621
|
+
l[(i + 64 >>> 9 << 4) + 15] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, l[(i + 64 >>> 9 << 4) + 14] = (d << 8 | d >>> 24) & 16711935 | (d << 24 | d >>> 8) & 4278255360, p.sigBytes = (l.length + 1) * 4, this._process();
|
|
1621
1622
|
for (var b = this._hash, D = b.words, y = 0; y < 4; y++) {
|
|
1622
1623
|
var k = D[y];
|
|
1623
1624
|
D[y] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
|
|
@@ -1625,24 +1626,24 @@ function s0() {
|
|
|
1625
1626
|
return b;
|
|
1626
1627
|
},
|
|
1627
1628
|
clone: function() {
|
|
1628
|
-
var
|
|
1629
|
-
return
|
|
1629
|
+
var p = B.clone.call(this);
|
|
1630
|
+
return p._hash = this._hash.clone(), p;
|
|
1630
1631
|
}
|
|
1631
1632
|
});
|
|
1632
|
-
function E(
|
|
1633
|
-
var D =
|
|
1633
|
+
function E(p, l, g, i, o, d, b) {
|
|
1634
|
+
var D = p + (l & g | ~l & i) + o + b;
|
|
1634
1635
|
return (D << d | D >>> 32 - d) + l;
|
|
1635
1636
|
}
|
|
1636
|
-
function a(
|
|
1637
|
-
var D =
|
|
1637
|
+
function a(p, l, g, i, o, d, b) {
|
|
1638
|
+
var D = p + (l & i | g & ~i) + o + b;
|
|
1638
1639
|
return (D << d | D >>> 32 - d) + l;
|
|
1639
1640
|
}
|
|
1640
|
-
function s(
|
|
1641
|
-
var D =
|
|
1641
|
+
function s(p, l, g, i, o, d, b) {
|
|
1642
|
+
var D = p + (l ^ g ^ i) + o + b;
|
|
1642
1643
|
return (D << d | D >>> 32 - d) + l;
|
|
1643
1644
|
}
|
|
1644
|
-
function f(
|
|
1645
|
-
var D =
|
|
1645
|
+
function f(p, l, g, i, o, d, b) {
|
|
1646
|
+
var D = p + (g ^ (l | ~i)) + o + b;
|
|
1646
1647
|
return (D << d | D >>> 32 - d) + l;
|
|
1647
1648
|
}
|
|
1648
1649
|
u.MD5 = B._createHelper(n), u.HmacMD5 = B._createHmacHelper(n);
|
|
@@ -1650,16 +1651,16 @@ function s0() {
|
|
|
1650
1651
|
});
|
|
1651
1652
|
})(R0)), R0.exports;
|
|
1652
1653
|
}
|
|
1653
|
-
var P0 = { exports: {} },
|
|
1654
|
-
function
|
|
1655
|
-
return
|
|
1654
|
+
var P0 = { exports: {} }, gt = P0.exports, Nr;
|
|
1655
|
+
function _e() {
|
|
1656
|
+
return Nr || (Nr = 1, (function(r, h) {
|
|
1656
1657
|
(function(t, e) {
|
|
1657
1658
|
r.exports = e(M());
|
|
1658
|
-
})(
|
|
1659
|
+
})(gt, function(t) {
|
|
1659
1660
|
return (function() {
|
|
1660
|
-
var e = t, u = e.lib,
|
|
1661
|
+
var e = t, u = e.lib, v = u.WordArray, m = u.Hasher, B = e.algo, C = [], x = B.SHA1 = m.extend({
|
|
1661
1662
|
_doReset: function() {
|
|
1662
|
-
this._hash = new
|
|
1663
|
+
this._hash = new v.init([
|
|
1663
1664
|
1732584193,
|
|
1664
1665
|
4023233417,
|
|
1665
1666
|
2562383102,
|
|
@@ -1668,7 +1669,7 @@ function ye() {
|
|
|
1668
1669
|
]);
|
|
1669
1670
|
},
|
|
1670
1671
|
_doProcessBlock: function(n, E) {
|
|
1671
|
-
for (var a = this._hash.words, s = a[0], f = a[1],
|
|
1672
|
+
for (var a = this._hash.words, s = a[0], f = a[1], p = a[2], l = a[3], g = a[4], i = 0; i < 80; i++) {
|
|
1672
1673
|
if (i < 16)
|
|
1673
1674
|
C[i] = n[E + i] | 0;
|
|
1674
1675
|
else {
|
|
@@ -1676,9 +1677,9 @@ function ye() {
|
|
|
1676
1677
|
C[i] = o << 1 | o >>> 31;
|
|
1677
1678
|
}
|
|
1678
1679
|
var d = (s << 5 | s >>> 27) + g + C[i];
|
|
1679
|
-
i < 20 ? d += (f &
|
|
1680
|
+
i < 20 ? d += (f & p | ~f & l) + 1518500249 : i < 40 ? d += (f ^ p ^ l) + 1859775393 : i < 60 ? d += (f & p | f & l | p & l) - 1894007588 : d += (f ^ p ^ l) - 899497514, g = l, l = p, p = f << 30 | f >>> 2, f = s, s = d;
|
|
1680
1681
|
}
|
|
1681
|
-
a[0] = a[0] + s | 0, a[1] = a[1] + f | 0, a[2] = a[2] +
|
|
1682
|
+
a[0] = a[0] + s | 0, a[1] = a[1] + f | 0, a[2] = a[2] + p | 0, a[3] = a[3] + l | 0, a[4] = a[4] + g | 0;
|
|
1682
1683
|
},
|
|
1683
1684
|
_doFinalize: function() {
|
|
1684
1685
|
var n = this._data, E = n.words, a = this._nDataBytes * 8, s = n.sigBytes * 8;
|
|
@@ -1694,14 +1695,14 @@ function ye() {
|
|
|
1694
1695
|
});
|
|
1695
1696
|
})(P0)), P0.exports;
|
|
1696
1697
|
}
|
|
1697
|
-
var z0 = { exports: {} },
|
|
1698
|
-
function
|
|
1699
|
-
return
|
|
1698
|
+
var z0 = { exports: {} }, bt = z0.exports, Ur;
|
|
1699
|
+
function Cr() {
|
|
1700
|
+
return Ur || (Ur = 1, (function(r, h) {
|
|
1700
1701
|
(function(t, e) {
|
|
1701
1702
|
r.exports = e(M());
|
|
1702
|
-
})(
|
|
1703
|
+
})(bt, function(t) {
|
|
1703
1704
|
return (function(e) {
|
|
1704
|
-
var u = t,
|
|
1705
|
+
var u = t, v = u.lib, m = v.WordArray, B = v.Hasher, C = u.algo, x = [], n = [];
|
|
1705
1706
|
(function() {
|
|
1706
1707
|
function s(g) {
|
|
1707
1708
|
for (var i = e.sqrt(g), o = 2; o <= i; o++)
|
|
@@ -1712,15 +1713,15 @@ function Er() {
|
|
|
1712
1713
|
function f(g) {
|
|
1713
1714
|
return (g - (g | 0)) * 4294967296 | 0;
|
|
1714
1715
|
}
|
|
1715
|
-
for (var
|
|
1716
|
-
s(
|
|
1716
|
+
for (var p = 2, l = 0; l < 64; )
|
|
1717
|
+
s(p) && (l < 8 && (x[l] = f(e.pow(p, 1 / 2))), n[l] = f(e.pow(p, 1 / 3)), l++), p++;
|
|
1717
1718
|
})();
|
|
1718
1719
|
var E = [], a = C.SHA256 = B.extend({
|
|
1719
1720
|
_doReset: function() {
|
|
1720
1721
|
this._hash = new m.init(x.slice(0));
|
|
1721
1722
|
},
|
|
1722
1723
|
_doProcessBlock: function(s, f) {
|
|
1723
|
-
for (var
|
|
1724
|
+
for (var p = this._hash.words, l = p[0], g = p[1], i = p[2], o = p[3], d = p[4], b = p[5], D = p[6], y = p[7], k = 0; k < 64; k++) {
|
|
1724
1725
|
if (k < 16)
|
|
1725
1726
|
E[k] = s[f + k] | 0;
|
|
1726
1727
|
else {
|
|
@@ -1730,11 +1731,11 @@ function Er() {
|
|
|
1730
1731
|
var $ = d & b ^ ~d & D, z = l & g ^ l & i ^ g & i, O = (l << 30 | l >>> 2) ^ (l << 19 | l >>> 13) ^ (l << 10 | l >>> 22), q = (d << 26 | d >>> 6) ^ (d << 21 | d >>> 11) ^ (d << 7 | d >>> 25), U = y + q + $ + n[k] + E[k], T = O + z;
|
|
1731
1732
|
y = D, D = b, b = d, d = o + U | 0, o = i, i = g, g = l, l = U + T | 0;
|
|
1732
1733
|
}
|
|
1733
|
-
|
|
1734
|
+
p[0] = p[0] + l | 0, p[1] = p[1] + g | 0, p[2] = p[2] + i | 0, p[3] = p[3] + o | 0, p[4] = p[4] + d | 0, p[5] = p[5] + b | 0, p[6] = p[6] + D | 0, p[7] = p[7] + y | 0;
|
|
1734
1735
|
},
|
|
1735
1736
|
_doFinalize: function() {
|
|
1736
|
-
var s = this._data, f = s.words,
|
|
1737
|
-
return f[l >>> 5] |= 128 << 24 - l % 32, f[(l + 64 >>> 9 << 4) + 14] = e.floor(
|
|
1737
|
+
var s = this._data, f = s.words, p = this._nDataBytes * 8, l = s.sigBytes * 8;
|
|
1738
|
+
return f[l >>> 5] |= 128 << 24 - l % 32, f[(l + 64 >>> 9 << 4) + 14] = e.floor(p / 4294967296), f[(l + 64 >>> 9 << 4) + 15] = p, s.sigBytes = f.length * 4, this._process(), this._hash;
|
|
1738
1739
|
},
|
|
1739
1740
|
clone: function() {
|
|
1740
1741
|
var s = B.clone.call(this);
|
|
@@ -1746,16 +1747,16 @@ function Er() {
|
|
|
1746
1747
|
});
|
|
1747
1748
|
})(z0)), z0.exports;
|
|
1748
1749
|
}
|
|
1749
|
-
var W0 = { exports: {} },
|
|
1750
|
-
function
|
|
1751
|
-
return
|
|
1750
|
+
var W0 = { exports: {} }, mt = W0.exports, jr;
|
|
1751
|
+
function _t() {
|
|
1752
|
+
return jr || (jr = 1, (function(r, h) {
|
|
1752
1753
|
(function(t, e, u) {
|
|
1753
|
-
r.exports = e(M(),
|
|
1754
|
-
})(
|
|
1754
|
+
r.exports = e(M(), Cr());
|
|
1755
|
+
})(mt, function(t) {
|
|
1755
1756
|
return (function() {
|
|
1756
|
-
var e = t, u = e.lib,
|
|
1757
|
+
var e = t, u = e.lib, v = u.WordArray, m = e.algo, B = m.SHA256, C = m.SHA224 = B.extend({
|
|
1757
1758
|
_doReset: function() {
|
|
1758
|
-
this._hash = new
|
|
1759
|
+
this._hash = new v.init([
|
|
1759
1760
|
3238371032,
|
|
1760
1761
|
914150663,
|
|
1761
1762
|
812702999,
|
|
@@ -1776,14 +1777,14 @@ function yt() {
|
|
|
1776
1777
|
});
|
|
1777
1778
|
})(W0)), W0.exports;
|
|
1778
1779
|
}
|
|
1779
|
-
var I0 = { exports: {} },
|
|
1780
|
-
function
|
|
1781
|
-
return
|
|
1780
|
+
var I0 = { exports: {} }, yt = I0.exports, Gr;
|
|
1781
|
+
function ye() {
|
|
1782
|
+
return Gr || (Gr = 1, (function(r, h) {
|
|
1782
1783
|
(function(t, e, u) {
|
|
1783
1784
|
r.exports = e(M(), fr());
|
|
1784
|
-
})(
|
|
1785
|
+
})(yt, function(t) {
|
|
1785
1786
|
return (function() {
|
|
1786
|
-
var e = t, u = e.lib,
|
|
1787
|
+
var e = t, u = e.lib, v = u.Hasher, m = e.x64, B = m.Word, C = m.WordArray, x = e.algo;
|
|
1787
1788
|
function n() {
|
|
1788
1789
|
return B.create.apply(B, arguments);
|
|
1789
1790
|
}
|
|
@@ -1873,7 +1874,7 @@ function we() {
|
|
|
1873
1874
|
for (var f = 0; f < 80; f++)
|
|
1874
1875
|
a[f] = n();
|
|
1875
1876
|
})();
|
|
1876
|
-
var s = x.SHA512 =
|
|
1877
|
+
var s = x.SHA512 = v.extend({
|
|
1877
1878
|
_doReset: function() {
|
|
1878
1879
|
this._hash = new C.init([
|
|
1879
1880
|
new B.init(1779033703, 4089235720),
|
|
@@ -1886,55 +1887,55 @@ function we() {
|
|
|
1886
1887
|
new B.init(1541459225, 327033209)
|
|
1887
1888
|
]);
|
|
1888
1889
|
},
|
|
1889
|
-
_doProcessBlock: function(f,
|
|
1890
|
+
_doProcessBlock: function(f, p) {
|
|
1890
1891
|
for (var l = this._hash.words, g = l[0], i = l[1], o = l[2], d = l[3], b = l[4], D = l[5], y = l[6], k = l[7], R = g.high, F = g.low, w = i.high, H = i.low, $ = o.high, z = o.low, O = d.high, q = d.low, U = b.high, T = b.low, N = D.high, j = D.low, S = y.high, c = y.low, A = k.high, _ = k.low, W = R, P = F, L = w, I = H, Z = $, Q = z, o0 = O, K = q, G = U, Y = T, r0 = N, c0 = j, D0 = S, v0 = c, ur = A, p0 = _, e0 = 0; e0 < 80; e0++) {
|
|
1891
1892
|
var J, x0, g0 = a[e0];
|
|
1892
1893
|
if (e0 < 16)
|
|
1893
|
-
x0 = g0.high = f[
|
|
1894
|
+
x0 = g0.high = f[p + e0 * 2] | 0, J = g0.low = f[p + e0 * 2 + 1] | 0;
|
|
1894
1895
|
else {
|
|
1895
|
-
var
|
|
1896
|
-
J =
|
|
1896
|
+
var Fr = a[e0 - 15], f0 = Fr.high, B0 = Fr.low, $e = (f0 >>> 1 | B0 << 31) ^ (f0 >>> 8 | B0 << 24) ^ f0 >>> 7, Dr = (B0 >>> 1 | f0 << 31) ^ (B0 >>> 8 | f0 << 24) ^ (B0 >>> 7 | f0 << 25), gr = a[e0 - 2], u0 = gr.high, C0 = gr.low, Re = (u0 >>> 19 | C0 << 13) ^ (u0 << 3 | C0 >>> 29) ^ u0 >>> 6, br = (C0 >>> 19 | u0 << 13) ^ (C0 << 3 | u0 >>> 29) ^ (C0 >>> 6 | u0 << 26), mr = a[e0 - 7], Pe = mr.high, ze = mr.low, _r = a[e0 - 16], We = _r.high, yr = _r.low;
|
|
1897
|
+
J = Dr + ze, x0 = $e + Pe + (J >>> 0 < Dr >>> 0 ? 1 : 0), J = J + br, x0 = x0 + Re + (J >>> 0 < br >>> 0 ? 1 : 0), J = J + yr, x0 = x0 + We + (J >>> 0 < yr >>> 0 ? 1 : 0), g0.high = x0, g0.low = J;
|
|
1897
1898
|
}
|
|
1898
|
-
var
|
|
1899
|
-
ur = D0, p0 = v0, D0 = r0, v0 = c0, r0 = G, c0 = Y, Y = K + V | 0, G = o0 + n0 + (Y >>> 0 < K >>> 0 ? 1 : 0) | 0, o0 = Z, K = Q, Z = L, Q = I, L = W, I = P, P = V +
|
|
1899
|
+
var Ie = G & r0 ^ ~G & D0, wr = Y & c0 ^ ~Y & v0, Le = W & L ^ W & Z ^ L & Z, Oe = P & I ^ P & Q ^ I & Q, qe = (W >>> 28 | P << 4) ^ (W << 30 | P >>> 2) ^ (W << 25 | P >>> 7), kr = (P >>> 28 | W << 4) ^ (P << 30 | W >>> 2) ^ (P << 25 | W >>> 7), Te = (G >>> 14 | Y << 18) ^ (G >>> 18 | Y << 14) ^ (G << 23 | Y >>> 9), Me = (Y >>> 14 | G << 18) ^ (Y >>> 18 | G << 14) ^ (Y << 23 | G >>> 9), Sr = E[e0], Ne = Sr.high, Hr = Sr.low, V = p0 + Me, n0 = ur + Te + (V >>> 0 < p0 >>> 0 ? 1 : 0), V = V + wr, n0 = n0 + Ie + (V >>> 0 < wr >>> 0 ? 1 : 0), V = V + Hr, n0 = n0 + Ne + (V >>> 0 < Hr >>> 0 ? 1 : 0), V = V + J, n0 = n0 + x0 + (V >>> 0 < J >>> 0 ? 1 : 0), $r = kr + Oe, Ue = qe + Le + ($r >>> 0 < kr >>> 0 ? 1 : 0);
|
|
1900
|
+
ur = D0, p0 = v0, D0 = r0, v0 = c0, r0 = G, c0 = Y, Y = K + V | 0, G = o0 + n0 + (Y >>> 0 < K >>> 0 ? 1 : 0) | 0, o0 = Z, K = Q, Z = L, Q = I, L = W, I = P, P = V + $r | 0, W = n0 + Ue + (P >>> 0 < V >>> 0 ? 1 : 0) | 0;
|
|
1900
1901
|
}
|
|
1901
1902
|
F = g.low = F + P, g.high = R + W + (F >>> 0 < P >>> 0 ? 1 : 0), H = i.low = H + I, i.high = w + L + (H >>> 0 < I >>> 0 ? 1 : 0), z = o.low = z + Q, o.high = $ + Z + (z >>> 0 < Q >>> 0 ? 1 : 0), q = d.low = q + K, d.high = O + o0 + (q >>> 0 < K >>> 0 ? 1 : 0), T = b.low = T + Y, b.high = U + G + (T >>> 0 < Y >>> 0 ? 1 : 0), j = D.low = j + c0, D.high = N + r0 + (j >>> 0 < c0 >>> 0 ? 1 : 0), c = y.low = c + v0, y.high = S + D0 + (c >>> 0 < v0 >>> 0 ? 1 : 0), _ = k.low = _ + p0, k.high = A + ur + (_ >>> 0 < p0 >>> 0 ? 1 : 0);
|
|
1902
1903
|
},
|
|
1903
1904
|
_doFinalize: function() {
|
|
1904
|
-
var f = this._data,
|
|
1905
|
-
|
|
1905
|
+
var f = this._data, p = f.words, l = this._nDataBytes * 8, g = f.sigBytes * 8;
|
|
1906
|
+
p[g >>> 5] |= 128 << 24 - g % 32, p[(g + 128 >>> 10 << 5) + 30] = Math.floor(l / 4294967296), p[(g + 128 >>> 10 << 5) + 31] = l, f.sigBytes = p.length * 4, this._process();
|
|
1906
1907
|
var i = this._hash.toX32();
|
|
1907
1908
|
return i;
|
|
1908
1909
|
},
|
|
1909
1910
|
clone: function() {
|
|
1910
|
-
var f =
|
|
1911
|
+
var f = v.clone.call(this);
|
|
1911
1912
|
return f._hash = this._hash.clone(), f;
|
|
1912
1913
|
},
|
|
1913
1914
|
blockSize: 1024 / 32
|
|
1914
1915
|
});
|
|
1915
|
-
e.SHA512 =
|
|
1916
|
+
e.SHA512 = v._createHelper(s), e.HmacSHA512 = v._createHmacHelper(s);
|
|
1916
1917
|
})(), t.SHA512;
|
|
1917
1918
|
});
|
|
1918
1919
|
})(I0)), I0.exports;
|
|
1919
1920
|
}
|
|
1920
|
-
var L0 = { exports: {} },
|
|
1921
|
-
function
|
|
1922
|
-
return
|
|
1921
|
+
var L0 = { exports: {} }, wt = L0.exports, Kr;
|
|
1922
|
+
function kt() {
|
|
1923
|
+
return Kr || (Kr = 1, (function(r, h) {
|
|
1923
1924
|
(function(t, e, u) {
|
|
1924
|
-
r.exports = e(M(), fr(),
|
|
1925
|
-
})(
|
|
1925
|
+
r.exports = e(M(), fr(), ye());
|
|
1926
|
+
})(wt, function(t) {
|
|
1926
1927
|
return (function() {
|
|
1927
|
-
var e = t, u = e.x64,
|
|
1928
|
+
var e = t, u = e.x64, v = u.Word, m = u.WordArray, B = e.algo, C = B.SHA512, x = B.SHA384 = C.extend({
|
|
1928
1929
|
_doReset: function() {
|
|
1929
1930
|
this._hash = new m.init([
|
|
1930
|
-
new
|
|
1931
|
-
new
|
|
1932
|
-
new
|
|
1933
|
-
new
|
|
1934
|
-
new
|
|
1935
|
-
new
|
|
1936
|
-
new
|
|
1937
|
-
new
|
|
1931
|
+
new v.init(3418070365, 3238371032),
|
|
1932
|
+
new v.init(1654270250, 914150663),
|
|
1933
|
+
new v.init(2438529370, 812702999),
|
|
1934
|
+
new v.init(355462360, 4144912697),
|
|
1935
|
+
new v.init(1731405415, 4290775857),
|
|
1936
|
+
new v.init(2394180231, 1750603025),
|
|
1937
|
+
new v.init(3675008525, 1694076839),
|
|
1938
|
+
new v.init(1203062813, 3204075428)
|
|
1938
1939
|
]);
|
|
1939
1940
|
},
|
|
1940
1941
|
_doFinalize: function() {
|
|
@@ -1947,14 +1948,14 @@ function St() {
|
|
|
1947
1948
|
});
|
|
1948
1949
|
})(L0)), L0.exports;
|
|
1949
1950
|
}
|
|
1950
|
-
var O0 = { exports: {} },
|
|
1951
|
-
function
|
|
1952
|
-
return
|
|
1951
|
+
var O0 = { exports: {} }, St = O0.exports, Xr;
|
|
1952
|
+
function Ht() {
|
|
1953
|
+
return Xr || (Xr = 1, (function(r, h) {
|
|
1953
1954
|
(function(t, e, u) {
|
|
1954
1955
|
r.exports = e(M(), fr());
|
|
1955
|
-
})(
|
|
1956
|
+
})(St, function(t) {
|
|
1956
1957
|
return (function(e) {
|
|
1957
|
-
var u = t,
|
|
1958
|
+
var u = t, v = u.lib, m = v.WordArray, B = v.Hasher, C = u.x64, x = C.Word, n = u.algo, E = [], a = [], s = [];
|
|
1958
1959
|
(function() {
|
|
1959
1960
|
for (var l = 1, g = 0, i = 0; i < 24; i++) {
|
|
1960
1961
|
E[l + 5 * g] = (i + 1) * (i + 2) / 2 % 64;
|
|
@@ -1980,7 +1981,7 @@ function $t() {
|
|
|
1980
1981
|
for (var l = 0; l < 25; l++)
|
|
1981
1982
|
f[l] = x.create();
|
|
1982
1983
|
})();
|
|
1983
|
-
var
|
|
1984
|
+
var p = n.SHA3 = B.extend({
|
|
1984
1985
|
/**
|
|
1985
1986
|
* Configuration options.
|
|
1986
1987
|
*
|
|
@@ -2052,19 +2053,19 @@ function $t() {
|
|
|
2052
2053
|
return l;
|
|
2053
2054
|
}
|
|
2054
2055
|
});
|
|
2055
|
-
u.SHA3 = B._createHelper(
|
|
2056
|
+
u.SHA3 = B._createHelper(p), u.HmacSHA3 = B._createHmacHelper(p);
|
|
2056
2057
|
})(Math), t.SHA3;
|
|
2057
2058
|
});
|
|
2058
2059
|
})(O0)), O0.exports;
|
|
2059
2060
|
}
|
|
2060
|
-
var q0 = { exports: {} },
|
|
2061
|
-
function
|
|
2062
|
-
return
|
|
2061
|
+
var q0 = { exports: {} }, $t = q0.exports, Yr;
|
|
2062
|
+
function Rt() {
|
|
2063
|
+
return Yr || (Yr = 1, (function(r, h) {
|
|
2063
2064
|
(function(t, e) {
|
|
2064
2065
|
r.exports = e(M());
|
|
2065
|
-
})(
|
|
2066
|
+
})($t, function(t) {
|
|
2066
2067
|
return (function(e) {
|
|
2067
|
-
var u = t,
|
|
2068
|
+
var u = t, v = u.lib, m = v.WordArray, B = v.Hasher, C = u.algo, x = m.create([
|
|
2068
2069
|
0,
|
|
2069
2070
|
1,
|
|
2070
2071
|
2,
|
|
@@ -2388,7 +2389,7 @@ function Pt() {
|
|
|
2388
2389
|
13,
|
|
2389
2390
|
11,
|
|
2390
2391
|
11
|
|
2391
|
-
]), s = m.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), f = m.create([1352829926, 1548603684, 1836072691, 2053994217, 0]),
|
|
2392
|
+
]), s = m.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), f = m.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), p = C.RIPEMD160 = B.extend({
|
|
2392
2393
|
_doReset: function() {
|
|
2393
2394
|
this._hash = m.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2394
2395
|
},
|
|
@@ -2435,20 +2436,20 @@ function Pt() {
|
|
|
2435
2436
|
function b(D, y) {
|
|
2436
2437
|
return D << y | D >>> 32 - y;
|
|
2437
2438
|
}
|
|
2438
|
-
u.RIPEMD160 = B._createHelper(
|
|
2439
|
+
u.RIPEMD160 = B._createHelper(p), u.HmacRIPEMD160 = B._createHmacHelper(p);
|
|
2439
2440
|
})(), t.RIPEMD160;
|
|
2440
2441
|
});
|
|
2441
2442
|
})(q0)), q0.exports;
|
|
2442
2443
|
}
|
|
2443
|
-
var T0 = { exports: {} },
|
|
2444
|
-
function
|
|
2445
|
-
return
|
|
2444
|
+
var T0 = { exports: {} }, Pt = T0.exports, Zr;
|
|
2445
|
+
function Er() {
|
|
2446
|
+
return Zr || (Zr = 1, (function(r, h) {
|
|
2446
2447
|
(function(t, e) {
|
|
2447
2448
|
r.exports = e(M());
|
|
2448
|
-
})(
|
|
2449
|
+
})(Pt, function(t) {
|
|
2449
2450
|
(function() {
|
|
2450
|
-
var e = t, u = e.lib,
|
|
2451
|
-
C.HMAC =
|
|
2451
|
+
var e = t, u = e.lib, v = u.Base, m = e.enc, B = m.Utf8, C = e.algo;
|
|
2452
|
+
C.HMAC = v.extend({
|
|
2452
2453
|
/**
|
|
2453
2454
|
* Initializes a newly created HMAC.
|
|
2454
2455
|
*
|
|
@@ -2463,8 +2464,8 @@ function Ar() {
|
|
|
2463
2464
|
x = this._hasher = new x.init(), typeof n == "string" && (n = B.parse(n));
|
|
2464
2465
|
var E = x.blockSize, a = E * 4;
|
|
2465
2466
|
n.sigBytes > a && (n = x.finalize(n)), n.clamp();
|
|
2466
|
-
for (var s = this._oKey = n.clone(), f = this._iKey = n.clone(),
|
|
2467
|
-
|
|
2467
|
+
for (var s = this._oKey = n.clone(), f = this._iKey = n.clone(), p = s.words, l = f.words, g = 0; g < E; g++)
|
|
2468
|
+
p[g] ^= 1549556828, l[g] ^= 909522486;
|
|
2468
2469
|
s.sigBytes = f.sigBytes = a, this.reset();
|
|
2469
2470
|
},
|
|
2470
2471
|
/**
|
|
@@ -2518,14 +2519,14 @@ function Ar() {
|
|
|
2518
2519
|
});
|
|
2519
2520
|
})(T0)), T0.exports;
|
|
2520
2521
|
}
|
|
2521
|
-
var M0 = { exports: {} },
|
|
2522
|
-
function
|
|
2523
|
-
return
|
|
2522
|
+
var M0 = { exports: {} }, zt = M0.exports, Qr;
|
|
2523
|
+
function Wt() {
|
|
2524
|
+
return Qr || (Qr = 1, (function(r, h) {
|
|
2524
2525
|
(function(t, e, u) {
|
|
2525
|
-
r.exports = e(M(),
|
|
2526
|
-
})(
|
|
2526
|
+
r.exports = e(M(), Cr(), Er());
|
|
2527
|
+
})(zt, function(t) {
|
|
2527
2528
|
return (function() {
|
|
2528
|
-
var e = t, u = e.lib,
|
|
2529
|
+
var e = t, u = e.lib, v = u.Base, m = u.WordArray, B = e.algo, C = B.SHA256, x = B.HMAC, n = B.PBKDF2 = v.extend({
|
|
2529
2530
|
/**
|
|
2530
2531
|
* Configuration options.
|
|
2531
2532
|
*
|
|
@@ -2533,7 +2534,7 @@ function It() {
|
|
|
2533
2534
|
* @property {Hasher} hasher The hasher to use. Default: SHA256
|
|
2534
2535
|
* @property {number} iterations The number of iterations to perform. Default: 250000
|
|
2535
2536
|
*/
|
|
2536
|
-
cfg:
|
|
2537
|
+
cfg: v.extend({
|
|
2537
2538
|
keySize: 128 / 32,
|
|
2538
2539
|
hasher: C,
|
|
2539
2540
|
iterations: 25e4
|
|
@@ -2565,7 +2566,7 @@ function It() {
|
|
|
2565
2566
|
* var key = kdf.compute(password, salt);
|
|
2566
2567
|
*/
|
|
2567
2568
|
compute: function(E, a) {
|
|
2568
|
-
for (var s = this.cfg, f = x.create(s.hasher, E),
|
|
2569
|
+
for (var s = this.cfg, f = x.create(s.hasher, E), p = m.create(), l = m.create([1]), g = p.words, i = l.words, o = s.keySize, d = s.iterations; g.length < o; ) {
|
|
2569
2570
|
var b = f.update(a).finalize(l);
|
|
2570
2571
|
f.reset();
|
|
2571
2572
|
for (var D = b.words, y = D.length, k = b, R = 1; R < d; R++) {
|
|
@@ -2573,9 +2574,9 @@ function It() {
|
|
|
2573
2574
|
for (var F = k.words, w = 0; w < y; w++)
|
|
2574
2575
|
D[w] ^= F[w];
|
|
2575
2576
|
}
|
|
2576
|
-
|
|
2577
|
+
p.concat(b), i[0]++;
|
|
2577
2578
|
}
|
|
2578
|
-
return
|
|
2579
|
+
return p.sigBytes = o * 4, p;
|
|
2579
2580
|
}
|
|
2580
2581
|
});
|
|
2581
2582
|
e.PBKDF2 = function(E, a, s) {
|
|
@@ -2585,14 +2586,14 @@ function It() {
|
|
|
2585
2586
|
});
|
|
2586
2587
|
})(M0)), M0.exports;
|
|
2587
2588
|
}
|
|
2588
|
-
var N0 = { exports: {} },
|
|
2589
|
+
var N0 = { exports: {} }, It = N0.exports, Vr;
|
|
2589
2590
|
function a0() {
|
|
2590
|
-
return
|
|
2591
|
+
return Vr || (Vr = 1, (function(r, h) {
|
|
2591
2592
|
(function(t, e, u) {
|
|
2592
|
-
r.exports = e(M(),
|
|
2593
|
-
})(
|
|
2593
|
+
r.exports = e(M(), _e(), Er());
|
|
2594
|
+
})(It, function(t) {
|
|
2594
2595
|
return (function() {
|
|
2595
|
-
var e = t, u = e.lib,
|
|
2596
|
+
var e = t, u = e.lib, v = u.Base, m = u.WordArray, B = e.algo, C = B.MD5, x = B.EvpKDF = v.extend({
|
|
2596
2597
|
/**
|
|
2597
2598
|
* Configuration options.
|
|
2598
2599
|
*
|
|
@@ -2600,7 +2601,7 @@ function a0() {
|
|
|
2600
2601
|
* @property {Hasher} hasher The hash algorithm to use. Default: MD5
|
|
2601
2602
|
* @property {number} iterations The number of iterations to perform. Default: 1
|
|
2602
2603
|
*/
|
|
2603
|
-
cfg:
|
|
2604
|
+
cfg: v.extend({
|
|
2604
2605
|
keySize: 128 / 32,
|
|
2605
2606
|
hasher: C,
|
|
2606
2607
|
iterations: 1
|
|
@@ -2632,13 +2633,13 @@ function a0() {
|
|
|
2632
2633
|
* var key = kdf.compute(password, salt);
|
|
2633
2634
|
*/
|
|
2634
2635
|
compute: function(n, E) {
|
|
2635
|
-
for (var a, s = this.cfg, f = s.hasher.create(),
|
|
2636
|
+
for (var a, s = this.cfg, f = s.hasher.create(), p = m.create(), l = p.words, g = s.keySize, i = s.iterations; l.length < g; ) {
|
|
2636
2637
|
a && f.update(a), a = f.update(n).finalize(E), f.reset();
|
|
2637
2638
|
for (var o = 1; o < i; o++)
|
|
2638
2639
|
a = f.finalize(a), f.reset();
|
|
2639
|
-
|
|
2640
|
+
p.concat(a);
|
|
2640
2641
|
}
|
|
2641
|
-
return
|
|
2642
|
+
return p.sigBytes = g * 4, p;
|
|
2642
2643
|
}
|
|
2643
2644
|
});
|
|
2644
2645
|
e.EvpKDF = function(n, E, a) {
|
|
@@ -2648,16 +2649,16 @@ function a0() {
|
|
|
2648
2649
|
});
|
|
2649
2650
|
})(N0)), N0.exports;
|
|
2650
2651
|
}
|
|
2651
|
-
var U0 = { exports: {} },
|
|
2652
|
+
var U0 = { exports: {} }, Lt = U0.exports, Jr;
|
|
2652
2653
|
function X() {
|
|
2653
|
-
return
|
|
2654
|
+
return Jr || (Jr = 1, (function(r, h) {
|
|
2654
2655
|
(function(t, e, u) {
|
|
2655
2656
|
r.exports = e(M(), a0());
|
|
2656
|
-
})(
|
|
2657
|
+
})(Lt, function(t) {
|
|
2657
2658
|
t.lib.Cipher || (function(e) {
|
|
2658
|
-
var u = t,
|
|
2659
|
+
var u = t, v = u.lib, m = v.Base, B = v.WordArray, C = v.BufferedBlockAlgorithm, x = u.enc;
|
|
2659
2660
|
x.Utf8;
|
|
2660
|
-
var n = x.Base64, E = u.algo, a = E.EvpKDF, s =
|
|
2661
|
+
var n = x.Base64, E = u.algo, a = E.EvpKDF, s = v.Cipher = C.extend({
|
|
2661
2662
|
/**
|
|
2662
2663
|
* Configuration options.
|
|
2663
2664
|
*
|
|
@@ -2789,14 +2790,14 @@ function X() {
|
|
|
2789
2790
|
};
|
|
2790
2791
|
})()
|
|
2791
2792
|
});
|
|
2792
|
-
|
|
2793
|
+
v.StreamCipher = s.extend({
|
|
2793
2794
|
_doFinalize: function() {
|
|
2794
2795
|
var F = this._process(!0);
|
|
2795
2796
|
return F;
|
|
2796
2797
|
},
|
|
2797
2798
|
blockSize: 1
|
|
2798
2799
|
});
|
|
2799
|
-
var f = u.mode = {},
|
|
2800
|
+
var f = u.mode = {}, p = v.BlockCipherMode = m.extend({
|
|
2800
2801
|
/**
|
|
2801
2802
|
* Creates this mode for encryption.
|
|
2802
2803
|
*
|
|
@@ -2841,7 +2842,7 @@ function X() {
|
|
|
2841
2842
|
this._cipher = F, this._iv = w;
|
|
2842
2843
|
}
|
|
2843
2844
|
}), l = f.CBC = (function() {
|
|
2844
|
-
var F =
|
|
2845
|
+
var F = p.extend();
|
|
2845
2846
|
F.Encryptor = F.extend({
|
|
2846
2847
|
/**
|
|
2847
2848
|
* Processes the data block at offset.
|
|
@@ -2915,7 +2916,7 @@ function X() {
|
|
|
2915
2916
|
F.sigBytes -= w;
|
|
2916
2917
|
}
|
|
2917
2918
|
};
|
|
2918
|
-
|
|
2919
|
+
v.BlockCipher = s.extend({
|
|
2919
2920
|
/**
|
|
2920
2921
|
* Configuration options.
|
|
2921
2922
|
*
|
|
@@ -2941,7 +2942,7 @@ function X() {
|
|
|
2941
2942
|
},
|
|
2942
2943
|
blockSize: 128 / 32
|
|
2943
2944
|
});
|
|
2944
|
-
var o =
|
|
2945
|
+
var o = v.CipherParams = m.extend({
|
|
2945
2946
|
/**
|
|
2946
2947
|
* Initializes a newly created cipher params object.
|
|
2947
2948
|
*
|
|
@@ -3017,7 +3018,7 @@ function X() {
|
|
|
3017
3018
|
var w, H = n.parse(F), $ = H.words;
|
|
3018
3019
|
return $[0] == 1398893684 && $[1] == 1701076831 && (w = B.create($.slice(2, 4)), $.splice(0, 4), H.sigBytes -= 16), o.create({ ciphertext: H, salt: w });
|
|
3019
3020
|
}
|
|
3020
|
-
}, D =
|
|
3021
|
+
}, D = v.SerializableCipher = m.extend({
|
|
3021
3022
|
/**
|
|
3022
3023
|
* Configuration options.
|
|
3023
3024
|
*
|
|
@@ -3124,7 +3125,7 @@ function X() {
|
|
|
3124
3125
|
var q = B.create(O.words.slice(w), H * 4);
|
|
3125
3126
|
return O.sigBytes = w * 4, o.create({ key: O, iv: q, salt: $ });
|
|
3126
3127
|
}
|
|
3127
|
-
}, R =
|
|
3128
|
+
}, R = v.PasswordBasedCipher = D.extend({
|
|
3128
3129
|
/**
|
|
3129
3130
|
* Configuration options.
|
|
3130
3131
|
*
|
|
@@ -3186,51 +3187,51 @@ function X() {
|
|
|
3186
3187
|
});
|
|
3187
3188
|
})(U0)), U0.exports;
|
|
3188
3189
|
}
|
|
3189
|
-
var j0 = { exports: {} },
|
|
3190
|
-
function
|
|
3191
|
-
return
|
|
3190
|
+
var j0 = { exports: {} }, Ot = j0.exports, re;
|
|
3191
|
+
function qt() {
|
|
3192
|
+
return re || (re = 1, (function(r, h) {
|
|
3192
3193
|
(function(t, e, u) {
|
|
3193
3194
|
r.exports = e(M(), X());
|
|
3194
|
-
})(
|
|
3195
|
+
})(Ot, function(t) {
|
|
3195
3196
|
return t.mode.CFB = (function() {
|
|
3196
3197
|
var e = t.lib.BlockCipherMode.extend();
|
|
3197
3198
|
e.Encryptor = e.extend({
|
|
3198
|
-
processBlock: function(
|
|
3199
|
+
processBlock: function(v, m) {
|
|
3199
3200
|
var B = this._cipher, C = B.blockSize;
|
|
3200
|
-
u.call(this,
|
|
3201
|
+
u.call(this, v, m, C, B), this._prevBlock = v.slice(m, m + C);
|
|
3201
3202
|
}
|
|
3202
3203
|
}), e.Decryptor = e.extend({
|
|
3203
|
-
processBlock: function(
|
|
3204
|
-
var B = this._cipher, C = B.blockSize, x =
|
|
3205
|
-
u.call(this,
|
|
3204
|
+
processBlock: function(v, m) {
|
|
3205
|
+
var B = this._cipher, C = B.blockSize, x = v.slice(m, m + C);
|
|
3206
|
+
u.call(this, v, m, C, B), this._prevBlock = x;
|
|
3206
3207
|
}
|
|
3207
3208
|
});
|
|
3208
|
-
function u(
|
|
3209
|
+
function u(v, m, B, C) {
|
|
3209
3210
|
var x, n = this._iv;
|
|
3210
3211
|
n ? (x = n.slice(0), this._iv = void 0) : x = this._prevBlock, C.encryptBlock(x, 0);
|
|
3211
3212
|
for (var E = 0; E < B; E++)
|
|
3212
|
-
|
|
3213
|
+
v[m + E] ^= x[E];
|
|
3213
3214
|
}
|
|
3214
3215
|
return e;
|
|
3215
3216
|
})(), t.mode.CFB;
|
|
3216
3217
|
});
|
|
3217
3218
|
})(j0)), j0.exports;
|
|
3218
3219
|
}
|
|
3219
|
-
var G0 = { exports: {} },
|
|
3220
|
-
function
|
|
3221
|
-
return
|
|
3220
|
+
var G0 = { exports: {} }, Tt = G0.exports, ee;
|
|
3221
|
+
function Mt() {
|
|
3222
|
+
return ee || (ee = 1, (function(r, h) {
|
|
3222
3223
|
(function(t, e, u) {
|
|
3223
3224
|
r.exports = e(M(), X());
|
|
3224
|
-
})(
|
|
3225
|
+
})(Tt, function(t) {
|
|
3225
3226
|
return t.mode.CTR = (function() {
|
|
3226
3227
|
var e = t.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3227
|
-
processBlock: function(
|
|
3228
|
+
processBlock: function(v, m) {
|
|
3228
3229
|
var B = this._cipher, C = B.blockSize, x = this._iv, n = this._counter;
|
|
3229
3230
|
x && (n = this._counter = x.slice(0), this._iv = void 0);
|
|
3230
3231
|
var E = n.slice(0);
|
|
3231
3232
|
B.encryptBlock(E, 0), n[C - 1] = n[C - 1] + 1 | 0;
|
|
3232
3233
|
for (var a = 0; a < C; a++)
|
|
3233
|
-
|
|
3234
|
+
v[m + a] ^= E[a];
|
|
3234
3235
|
}
|
|
3235
3236
|
});
|
|
3236
3237
|
return e.Decryptor = u, e;
|
|
@@ -3238,12 +3239,12 @@ function Nt() {
|
|
|
3238
3239
|
});
|
|
3239
3240
|
})(G0)), G0.exports;
|
|
3240
3241
|
}
|
|
3241
|
-
var K0 = { exports: {} },
|
|
3242
|
-
function
|
|
3243
|
-
return
|
|
3242
|
+
var K0 = { exports: {} }, Nt = K0.exports, te;
|
|
3243
|
+
function Ut() {
|
|
3244
|
+
return te || (te = 1, (function(r, h) {
|
|
3244
3245
|
(function(t, e, u) {
|
|
3245
3246
|
r.exports = e(M(), X());
|
|
3246
|
-
})(
|
|
3247
|
+
})(Nt, function(t) {
|
|
3247
3248
|
return t.mode.CTRGladman = (function() {
|
|
3248
3249
|
var e = t.lib.BlockCipherMode.extend();
|
|
3249
3250
|
function u(B) {
|
|
@@ -3254,13 +3255,13 @@ function jt() {
|
|
|
3254
3255
|
B += 1 << 24;
|
|
3255
3256
|
return B;
|
|
3256
3257
|
}
|
|
3257
|
-
function
|
|
3258
|
+
function v(B) {
|
|
3258
3259
|
return (B[0] = u(B[0])) === 0 && (B[1] = u(B[1])), B;
|
|
3259
3260
|
}
|
|
3260
3261
|
var m = e.Encryptor = e.extend({
|
|
3261
3262
|
processBlock: function(B, C) {
|
|
3262
3263
|
var x = this._cipher, n = x.blockSize, E = this._iv, a = this._counter;
|
|
3263
|
-
E && (a = this._counter = E.slice(0), this._iv = void 0),
|
|
3264
|
+
E && (a = this._counter = E.slice(0), this._iv = void 0), v(a);
|
|
3264
3265
|
var s = a.slice(0);
|
|
3265
3266
|
x.encryptBlock(s, 0);
|
|
3266
3267
|
for (var f = 0; f < n; f++)
|
|
@@ -3272,19 +3273,19 @@ function jt() {
|
|
|
3272
3273
|
});
|
|
3273
3274
|
})(K0)), K0.exports;
|
|
3274
3275
|
}
|
|
3275
|
-
var X0 = { exports: {} },
|
|
3276
|
-
function
|
|
3277
|
-
return
|
|
3276
|
+
var X0 = { exports: {} }, jt = X0.exports, xe;
|
|
3277
|
+
function Gt() {
|
|
3278
|
+
return xe || (xe = 1, (function(r, h) {
|
|
3278
3279
|
(function(t, e, u) {
|
|
3279
3280
|
r.exports = e(M(), X());
|
|
3280
|
-
})(
|
|
3281
|
+
})(jt, function(t) {
|
|
3281
3282
|
return t.mode.OFB = (function() {
|
|
3282
3283
|
var e = t.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3283
|
-
processBlock: function(
|
|
3284
|
+
processBlock: function(v, m) {
|
|
3284
3285
|
var B = this._cipher, C = B.blockSize, x = this._iv, n = this._keystream;
|
|
3285
3286
|
x && (n = this._keystream = x.slice(0), this._iv = void 0), B.encryptBlock(n, 0);
|
|
3286
3287
|
for (var E = 0; E < C; E++)
|
|
3287
|
-
|
|
3288
|
+
v[m + E] ^= n[E];
|
|
3288
3289
|
}
|
|
3289
3290
|
});
|
|
3290
3291
|
return e.Decryptor = u, e;
|
|
@@ -3292,36 +3293,36 @@ function Kt() {
|
|
|
3292
3293
|
});
|
|
3293
3294
|
})(X0)), X0.exports;
|
|
3294
3295
|
}
|
|
3295
|
-
var Y0 = { exports: {} },
|
|
3296
|
-
function
|
|
3297
|
-
return
|
|
3296
|
+
var Y0 = { exports: {} }, Kt = Y0.exports, ne;
|
|
3297
|
+
function Xt() {
|
|
3298
|
+
return ne || (ne = 1, (function(r, h) {
|
|
3298
3299
|
(function(t, e, u) {
|
|
3299
3300
|
r.exports = e(M(), X());
|
|
3300
|
-
})(
|
|
3301
|
+
})(Kt, function(t) {
|
|
3301
3302
|
return t.mode.ECB = (function() {
|
|
3302
3303
|
var e = t.lib.BlockCipherMode.extend();
|
|
3303
3304
|
return e.Encryptor = e.extend({
|
|
3304
|
-
processBlock: function(u,
|
|
3305
|
-
this._cipher.encryptBlock(u,
|
|
3305
|
+
processBlock: function(u, v) {
|
|
3306
|
+
this._cipher.encryptBlock(u, v);
|
|
3306
3307
|
}
|
|
3307
3308
|
}), e.Decryptor = e.extend({
|
|
3308
|
-
processBlock: function(u,
|
|
3309
|
-
this._cipher.decryptBlock(u,
|
|
3309
|
+
processBlock: function(u, v) {
|
|
3310
|
+
this._cipher.decryptBlock(u, v);
|
|
3310
3311
|
}
|
|
3311
3312
|
}), e;
|
|
3312
3313
|
})(), t.mode.ECB;
|
|
3313
3314
|
});
|
|
3314
3315
|
})(Y0)), Y0.exports;
|
|
3315
3316
|
}
|
|
3316
|
-
var Z0 = { exports: {} },
|
|
3317
|
-
function
|
|
3318
|
-
return
|
|
3317
|
+
var Z0 = { exports: {} }, Yt = Z0.exports, ae;
|
|
3318
|
+
function Zt() {
|
|
3319
|
+
return ae || (ae = 1, (function(r, h) {
|
|
3319
3320
|
(function(t, e, u) {
|
|
3320
3321
|
r.exports = e(M(), X());
|
|
3321
|
-
})(
|
|
3322
|
+
})(Yt, function(t) {
|
|
3322
3323
|
return t.pad.AnsiX923 = {
|
|
3323
3324
|
pad: function(e, u) {
|
|
3324
|
-
var
|
|
3325
|
+
var v = e.sigBytes, m = u * 4, B = m - v % m, C = v + B - 1;
|
|
3325
3326
|
e.clamp(), e.words[C >>> 2] |= B << 24 - C % 4 * 8, e.sigBytes += B;
|
|
3326
3327
|
},
|
|
3327
3328
|
unpad: function(e) {
|
|
@@ -3332,15 +3333,15 @@ function Qt() {
|
|
|
3332
3333
|
});
|
|
3333
3334
|
})(Z0)), Z0.exports;
|
|
3334
3335
|
}
|
|
3335
|
-
var Q0 = { exports: {} },
|
|
3336
|
-
function
|
|
3337
|
-
return
|
|
3336
|
+
var Q0 = { exports: {} }, Qt = Q0.exports, oe;
|
|
3337
|
+
function Vt() {
|
|
3338
|
+
return oe || (oe = 1, (function(r, h) {
|
|
3338
3339
|
(function(t, e, u) {
|
|
3339
3340
|
r.exports = e(M(), X());
|
|
3340
|
-
})(
|
|
3341
|
+
})(Qt, function(t) {
|
|
3341
3342
|
return t.pad.Iso10126 = {
|
|
3342
3343
|
pad: function(e, u) {
|
|
3343
|
-
var
|
|
3344
|
+
var v = u * 4, m = v - e.sigBytes % v;
|
|
3344
3345
|
e.concat(t.lib.WordArray.random(m - 1)).concat(t.lib.WordArray.create([m << 24], 1));
|
|
3345
3346
|
},
|
|
3346
3347
|
unpad: function(e) {
|
|
@@ -3351,12 +3352,12 @@ function Jt() {
|
|
|
3351
3352
|
});
|
|
3352
3353
|
})(Q0)), Q0.exports;
|
|
3353
3354
|
}
|
|
3354
|
-
var V0 = { exports: {} },
|
|
3355
|
-
function
|
|
3356
|
-
return
|
|
3355
|
+
var V0 = { exports: {} }, Jt = V0.exports, ie;
|
|
3356
|
+
function rx() {
|
|
3357
|
+
return ie || (ie = 1, (function(r, h) {
|
|
3357
3358
|
(function(t, e, u) {
|
|
3358
3359
|
r.exports = e(M(), X());
|
|
3359
|
-
})(
|
|
3360
|
+
})(Jt, function(t) {
|
|
3360
3361
|
return t.pad.Iso97971 = {
|
|
3361
3362
|
pad: function(e, u) {
|
|
3362
3363
|
e.concat(t.lib.WordArray.create([2147483648], 1)), t.pad.ZeroPadding.pad(e, u);
|
|
@@ -3368,21 +3369,21 @@ function ex() {
|
|
|
3368
3369
|
});
|
|
3369
3370
|
})(V0)), V0.exports;
|
|
3370
3371
|
}
|
|
3371
|
-
var J0 = { exports: {} },
|
|
3372
|
-
function
|
|
3373
|
-
return
|
|
3372
|
+
var J0 = { exports: {} }, ex = J0.exports, se;
|
|
3373
|
+
function tx() {
|
|
3374
|
+
return se || (se = 1, (function(r, h) {
|
|
3374
3375
|
(function(t, e, u) {
|
|
3375
3376
|
r.exports = e(M(), X());
|
|
3376
|
-
})(
|
|
3377
|
+
})(ex, function(t) {
|
|
3377
3378
|
return t.pad.ZeroPadding = {
|
|
3378
3379
|
pad: function(e, u) {
|
|
3379
|
-
var
|
|
3380
|
-
e.clamp(), e.sigBytes +=
|
|
3380
|
+
var v = u * 4;
|
|
3381
|
+
e.clamp(), e.sigBytes += v - (e.sigBytes % v || v);
|
|
3381
3382
|
},
|
|
3382
3383
|
unpad: function(e) {
|
|
3383
|
-
for (var u = e.words,
|
|
3384
|
-
if (u[
|
|
3385
|
-
e.sigBytes =
|
|
3384
|
+
for (var u = e.words, v = e.sigBytes - 1, v = e.sigBytes - 1; v >= 0; v--)
|
|
3385
|
+
if (u[v >>> 2] >>> 24 - v % 4 * 8 & 255) {
|
|
3386
|
+
e.sigBytes = v + 1;
|
|
3386
3387
|
break;
|
|
3387
3388
|
}
|
|
3388
3389
|
}
|
|
@@ -3390,12 +3391,12 @@ function xx() {
|
|
|
3390
3391
|
});
|
|
3391
3392
|
})(J0)), J0.exports;
|
|
3392
3393
|
}
|
|
3393
|
-
var rr = { exports: {} },
|
|
3394
|
-
function
|
|
3395
|
-
return
|
|
3394
|
+
var rr = { exports: {} }, xx = rr.exports, ce;
|
|
3395
|
+
function nx() {
|
|
3396
|
+
return ce || (ce = 1, (function(r, h) {
|
|
3396
3397
|
(function(t, e, u) {
|
|
3397
3398
|
r.exports = e(M(), X());
|
|
3398
|
-
})(
|
|
3399
|
+
})(xx, function(t) {
|
|
3399
3400
|
return t.pad.NoPadding = {
|
|
3400
3401
|
pad: function() {
|
|
3401
3402
|
},
|
|
@@ -3405,14 +3406,14 @@ function ax() {
|
|
|
3405
3406
|
});
|
|
3406
3407
|
})(rr)), rr.exports;
|
|
3407
3408
|
}
|
|
3408
|
-
var er = { exports: {} },
|
|
3409
|
-
function
|
|
3410
|
-
return
|
|
3409
|
+
var er = { exports: {} }, ax = er.exports, fe;
|
|
3410
|
+
function ox() {
|
|
3411
|
+
return fe || (fe = 1, (function(r, h) {
|
|
3411
3412
|
(function(t, e, u) {
|
|
3412
3413
|
r.exports = e(M(), X());
|
|
3413
|
-
})(
|
|
3414
|
+
})(ax, function(t) {
|
|
3414
3415
|
return (function(e) {
|
|
3415
|
-
var u = t,
|
|
3416
|
+
var u = t, v = u.lib, m = v.CipherParams, B = u.enc, C = B.Hex, x = u.format;
|
|
3416
3417
|
x.Hex = {
|
|
3417
3418
|
/**
|
|
3418
3419
|
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
@@ -3452,14 +3453,14 @@ function ix() {
|
|
|
3452
3453
|
});
|
|
3453
3454
|
})(er)), er.exports;
|
|
3454
3455
|
}
|
|
3455
|
-
var tr = { exports: {} },
|
|
3456
|
-
function
|
|
3457
|
-
return
|
|
3456
|
+
var tr = { exports: {} }, ix = tr.exports, ue;
|
|
3457
|
+
function sx() {
|
|
3458
|
+
return ue || (ue = 1, (function(r, h) {
|
|
3458
3459
|
(function(t, e, u) {
|
|
3459
3460
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
3460
|
-
})(
|
|
3461
|
+
})(ix, function(t) {
|
|
3461
3462
|
return (function() {
|
|
3462
|
-
var e = t, u = e.lib,
|
|
3463
|
+
var e = t, u = e.lib, v = u.BlockCipher, m = e.algo, B = [], C = [], x = [], n = [], E = [], a = [], s = [], f = [], p = [], l = [];
|
|
3463
3464
|
(function() {
|
|
3464
3465
|
for (var o = [], d = 0; d < 256; d++)
|
|
3465
3466
|
d < 128 ? o[d] = d << 1 : o[d] = d << 1 ^ 283;
|
|
@@ -3469,10 +3470,10 @@ function cx() {
|
|
|
3469
3470
|
var k = o[b], R = o[k], F = o[R], w = o[y] * 257 ^ y * 16843008;
|
|
3470
3471
|
x[b] = w << 24 | w >>> 8, n[b] = w << 16 | w >>> 16, E[b] = w << 8 | w >>> 24, a[b] = w;
|
|
3471
3472
|
var w = F * 16843009 ^ R * 65537 ^ k * 257 ^ b * 16843008;
|
|
3472
|
-
s[y] = w << 24 | w >>> 8, f[y] = w << 16 | w >>> 16,
|
|
3473
|
+
s[y] = w << 24 | w >>> 8, f[y] = w << 16 | w >>> 16, p[y] = w << 8 | w >>> 24, l[y] = w, b ? (b = k ^ o[o[o[F ^ k]]], D ^= o[o[D]]) : b = D = 1;
|
|
3473
3474
|
}
|
|
3474
3475
|
})();
|
|
3475
|
-
var g = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], i = m.AES =
|
|
3476
|
+
var g = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], i = m.AES = v.extend({
|
|
3476
3477
|
_doReset: function() {
|
|
3477
3478
|
var o;
|
|
3478
3479
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
@@ -3484,7 +3485,7 @@ function cx() {
|
|
|
3484
3485
|
var o = R[F];
|
|
3485
3486
|
else
|
|
3486
3487
|
var o = R[F - 4];
|
|
3487
|
-
H < 4 || F <= 4 ? w[H] = o : w[H] = s[B[o >>> 24]] ^ f[B[o >>> 16 & 255]] ^
|
|
3488
|
+
H < 4 || F <= 4 ? w[H] = o : w[H] = s[B[o >>> 24]] ^ f[B[o >>> 16 & 255]] ^ p[B[o >>> 8 & 255]] ^ l[B[o & 255]];
|
|
3488
3489
|
}
|
|
3489
3490
|
}
|
|
3490
3491
|
},
|
|
@@ -3493,7 +3494,7 @@ function cx() {
|
|
|
3493
3494
|
},
|
|
3494
3495
|
decryptBlock: function(o, d) {
|
|
3495
3496
|
var b = o[d + 1];
|
|
3496
|
-
o[d + 1] = o[d + 3], o[d + 3] = b, this._doCryptBlock(o, d, this._invKeySchedule, s, f,
|
|
3497
|
+
o[d + 1] = o[d + 3], o[d + 3] = b, this._doCryptBlock(o, d, this._invKeySchedule, s, f, p, l, C);
|
|
3497
3498
|
var b = o[d + 1];
|
|
3498
3499
|
o[d + 1] = o[d + 3], o[d + 3] = b;
|
|
3499
3500
|
},
|
|
@@ -3507,19 +3508,19 @@ function cx() {
|
|
|
3507
3508
|
},
|
|
3508
3509
|
keySize: 256 / 32
|
|
3509
3510
|
});
|
|
3510
|
-
e.AES =
|
|
3511
|
+
e.AES = v._createHelper(i);
|
|
3511
3512
|
})(), t.AES;
|
|
3512
3513
|
});
|
|
3513
3514
|
})(tr)), tr.exports;
|
|
3514
3515
|
}
|
|
3515
|
-
var xr = { exports: {} },
|
|
3516
|
-
function
|
|
3517
|
-
return
|
|
3516
|
+
var xr = { exports: {} }, cx = xr.exports, de;
|
|
3517
|
+
function fx() {
|
|
3518
|
+
return de || (de = 1, (function(r, h) {
|
|
3518
3519
|
(function(t, e, u) {
|
|
3519
3520
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
3520
|
-
})(
|
|
3521
|
+
})(cx, function(t) {
|
|
3521
3522
|
return (function() {
|
|
3522
|
-
var e = t, u = e.lib,
|
|
3523
|
+
var e = t, u = e.lib, v = u.WordArray, m = u.BlockCipher, B = e.algo, C = [
|
|
3523
3524
|
57,
|
|
3524
3525
|
49,
|
|
3525
3526
|
41,
|
|
@@ -4187,14 +4188,14 @@ function ux() {
|
|
|
4187
4188
|
this._doCryptBlock(g, i, this._invSubKeys);
|
|
4188
4189
|
},
|
|
4189
4190
|
_doCryptBlock: function(g, i, o) {
|
|
4190
|
-
this._lBlock = g[i], this._rBlock = g[i + 1], f.call(this, 4, 252645135), f.call(this, 16, 65535),
|
|
4191
|
+
this._lBlock = g[i], this._rBlock = g[i + 1], f.call(this, 4, 252645135), f.call(this, 16, 65535), p.call(this, 2, 858993459), p.call(this, 8, 16711935), f.call(this, 1, 1431655765);
|
|
4191
4192
|
for (var d = 0; d < 16; d++) {
|
|
4192
4193
|
for (var b = o[d], D = this._lBlock, y = this._rBlock, k = 0, R = 0; R < 8; R++)
|
|
4193
4194
|
k |= E[R][((y ^ b[R]) & a[R]) >>> 0];
|
|
4194
4195
|
this._lBlock = y, this._rBlock = D ^ k;
|
|
4195
4196
|
}
|
|
4196
4197
|
var F = this._lBlock;
|
|
4197
|
-
this._lBlock = this._rBlock, this._rBlock = F, f.call(this, 1, 1431655765),
|
|
4198
|
+
this._lBlock = this._rBlock, this._rBlock = F, f.call(this, 1, 1431655765), p.call(this, 8, 16711935), p.call(this, 2, 858993459), f.call(this, 16, 65535), f.call(this, 4, 252645135), g[i] = this._lBlock, g[i + 1] = this._rBlock;
|
|
4198
4199
|
},
|
|
4199
4200
|
keySize: 64 / 32,
|
|
4200
4201
|
ivSize: 64 / 32,
|
|
@@ -4204,7 +4205,7 @@ function ux() {
|
|
|
4204
4205
|
var o = (this._lBlock >>> g ^ this._rBlock) & i;
|
|
4205
4206
|
this._rBlock ^= o, this._lBlock ^= o << g;
|
|
4206
4207
|
}
|
|
4207
|
-
function
|
|
4208
|
+
function p(g, i) {
|
|
4208
4209
|
var o = (this._rBlock >>> g ^ this._lBlock) & i;
|
|
4209
4210
|
this._lBlock ^= o, this._rBlock ^= o << g;
|
|
4210
4211
|
}
|
|
@@ -4215,7 +4216,7 @@ function ux() {
|
|
|
4215
4216
|
if (i.length !== 2 && i.length !== 4 && i.length < 6)
|
|
4216
4217
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
4217
4218
|
var o = i.slice(0, 2), d = i.length < 4 ? i.slice(0, 2) : i.slice(2, 4), b = i.length < 6 ? i.slice(0, 2) : i.slice(4, 6);
|
|
4218
|
-
this._des1 = s.createEncryptor(
|
|
4219
|
+
this._des1 = s.createEncryptor(v.create(o)), this._des2 = s.createEncryptor(v.create(d)), this._des3 = s.createEncryptor(v.create(b));
|
|
4219
4220
|
},
|
|
4220
4221
|
encryptBlock: function(g, i) {
|
|
4221
4222
|
this._des1.encryptBlock(g, i), this._des2.decryptBlock(g, i), this._des3.encryptBlock(g, i);
|
|
@@ -4232,22 +4233,22 @@ function ux() {
|
|
|
4232
4233
|
});
|
|
4233
4234
|
})(xr)), xr.exports;
|
|
4234
4235
|
}
|
|
4235
|
-
var nr = { exports: {} },
|
|
4236
|
-
function
|
|
4237
|
-
return
|
|
4236
|
+
var nr = { exports: {} }, ux = nr.exports, le;
|
|
4237
|
+
function dx() {
|
|
4238
|
+
return le || (le = 1, (function(r, h) {
|
|
4238
4239
|
(function(t, e, u) {
|
|
4239
4240
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
4240
|
-
})(
|
|
4241
|
+
})(ux, function(t) {
|
|
4241
4242
|
return (function() {
|
|
4242
|
-
var e = t, u = e.lib,
|
|
4243
|
+
var e = t, u = e.lib, v = u.StreamCipher, m = e.algo, B = m.RC4 = v.extend({
|
|
4243
4244
|
_doReset: function() {
|
|
4244
4245
|
for (var n = this._key, E = n.words, a = n.sigBytes, s = this._S = [], f = 0; f < 256; f++)
|
|
4245
4246
|
s[f] = f;
|
|
4246
|
-
for (var f = 0,
|
|
4247
|
+
for (var f = 0, p = 0; f < 256; f++) {
|
|
4247
4248
|
var l = f % a, g = E[l >>> 2] >>> 24 - l % 4 * 8 & 255;
|
|
4248
|
-
|
|
4249
|
+
p = (p + s[f] + g) % 256;
|
|
4249
4250
|
var i = s[f];
|
|
4250
|
-
s[f] = s[
|
|
4251
|
+
s[f] = s[p], s[p] = i;
|
|
4251
4252
|
}
|
|
4252
4253
|
this._i = this._j = 0;
|
|
4253
4254
|
},
|
|
@@ -4260,12 +4261,12 @@ function lx() {
|
|
|
4260
4261
|
function C() {
|
|
4261
4262
|
for (var n = this._S, E = this._i, a = this._j, s = 0, f = 0; f < 4; f++) {
|
|
4262
4263
|
E = (E + 1) % 256, a = (a + n[E]) % 256;
|
|
4263
|
-
var
|
|
4264
|
-
n[E] = n[a], n[a] =
|
|
4264
|
+
var p = n[E];
|
|
4265
|
+
n[E] = n[a], n[a] = p, s |= n[(n[E] + n[a]) % 256] << 24 - f * 8;
|
|
4265
4266
|
}
|
|
4266
4267
|
return this._i = E, this._j = a, s;
|
|
4267
4268
|
}
|
|
4268
|
-
e.RC4 =
|
|
4269
|
+
e.RC4 = v._createHelper(B);
|
|
4269
4270
|
var x = m.RC4Drop = B.extend({
|
|
4270
4271
|
/**
|
|
4271
4272
|
* Configuration options.
|
|
@@ -4281,23 +4282,23 @@ function lx() {
|
|
|
4281
4282
|
C.call(this);
|
|
4282
4283
|
}
|
|
4283
4284
|
});
|
|
4284
|
-
e.RC4Drop =
|
|
4285
|
+
e.RC4Drop = v._createHelper(x);
|
|
4285
4286
|
})(), t.RC4;
|
|
4286
4287
|
});
|
|
4287
4288
|
})(nr)), nr.exports;
|
|
4288
4289
|
}
|
|
4289
|
-
var ar = { exports: {} },
|
|
4290
|
-
function
|
|
4291
|
-
return
|
|
4290
|
+
var ar = { exports: {} }, lx = ar.exports, he;
|
|
4291
|
+
function hx() {
|
|
4292
|
+
return he || (he = 1, (function(r, h) {
|
|
4292
4293
|
(function(t, e, u) {
|
|
4293
4294
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
4294
|
-
})(
|
|
4295
|
+
})(lx, function(t) {
|
|
4295
4296
|
return (function() {
|
|
4296
|
-
var e = t, u = e.lib,
|
|
4297
|
+
var e = t, u = e.lib, v = u.StreamCipher, m = e.algo, B = [], C = [], x = [], n = m.Rabbit = v.extend({
|
|
4297
4298
|
_doReset: function() {
|
|
4298
4299
|
for (var a = this._key.words, s = this.cfg.iv, f = 0; f < 4; f++)
|
|
4299
4300
|
a[f] = (a[f] << 8 | a[f] >>> 24) & 16711935 | (a[f] << 24 | a[f] >>> 8) & 4278255360;
|
|
4300
|
-
var
|
|
4301
|
+
var p = this._X = [
|
|
4301
4302
|
a[0],
|
|
4302
4303
|
a[3] << 16 | a[2] >>> 16,
|
|
4303
4304
|
a[1],
|
|
@@ -4320,7 +4321,7 @@ function vx() {
|
|
|
4320
4321
|
for (var f = 0; f < 4; f++)
|
|
4321
4322
|
E.call(this);
|
|
4322
4323
|
for (var f = 0; f < 8; f++)
|
|
4323
|
-
l[f] ^=
|
|
4324
|
+
l[f] ^= p[f + 4 & 7];
|
|
4324
4325
|
if (s) {
|
|
4325
4326
|
var g = s.words, i = g[0], o = g[1], d = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, b = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, D = d >>> 16 | b & 4294901760, y = b << 16 | d & 65535;
|
|
4326
4327
|
l[0] ^= d, l[1] ^= D, l[2] ^= b, l[3] ^= y, l[4] ^= d, l[5] ^= D, l[6] ^= b, l[7] ^= y;
|
|
@@ -4331,8 +4332,8 @@ function vx() {
|
|
|
4331
4332
|
_doProcessBlock: function(a, s) {
|
|
4332
4333
|
var f = this._X;
|
|
4333
4334
|
E.call(this), B[0] = f[0] ^ f[5] >>> 16 ^ f[3] << 16, B[1] = f[2] ^ f[7] >>> 16 ^ f[5] << 16, B[2] = f[4] ^ f[1] >>> 16 ^ f[7] << 16, B[3] = f[6] ^ f[3] >>> 16 ^ f[1] << 16;
|
|
4334
|
-
for (var
|
|
4335
|
-
B[
|
|
4335
|
+
for (var p = 0; p < 4; p++)
|
|
4336
|
+
B[p] = (B[p] << 8 | B[p] >>> 24) & 16711935 | (B[p] << 24 | B[p] >>> 8) & 4278255360, a[s + p] ^= B[p];
|
|
4336
4337
|
},
|
|
4337
4338
|
blockSize: 128 / 32,
|
|
4338
4339
|
ivSize: 64 / 32
|
|
@@ -4342,24 +4343,24 @@ function vx() {
|
|
|
4342
4343
|
C[f] = s[f];
|
|
4343
4344
|
s[0] = s[0] + 1295307597 + this._b | 0, s[1] = s[1] + 3545052371 + (s[0] >>> 0 < C[0] >>> 0 ? 1 : 0) | 0, s[2] = s[2] + 886263092 + (s[1] >>> 0 < C[1] >>> 0 ? 1 : 0) | 0, s[3] = s[3] + 1295307597 + (s[2] >>> 0 < C[2] >>> 0 ? 1 : 0) | 0, s[4] = s[4] + 3545052371 + (s[3] >>> 0 < C[3] >>> 0 ? 1 : 0) | 0, s[5] = s[5] + 886263092 + (s[4] >>> 0 < C[4] >>> 0 ? 1 : 0) | 0, s[6] = s[6] + 1295307597 + (s[5] >>> 0 < C[5] >>> 0 ? 1 : 0) | 0, s[7] = s[7] + 3545052371 + (s[6] >>> 0 < C[6] >>> 0 ? 1 : 0) | 0, this._b = s[7] >>> 0 < C[7] >>> 0 ? 1 : 0;
|
|
4344
4345
|
for (var f = 0; f < 8; f++) {
|
|
4345
|
-
var
|
|
4346
|
+
var p = a[f] + s[f], l = p & 65535, g = p >>> 16, i = ((l * l >>> 17) + l * g >>> 15) + g * g, o = ((p & 4294901760) * p | 0) + ((p & 65535) * p | 0);
|
|
4346
4347
|
x[f] = i ^ o;
|
|
4347
4348
|
}
|
|
4348
4349
|
a[0] = x[0] + (x[7] << 16 | x[7] >>> 16) + (x[6] << 16 | x[6] >>> 16) | 0, a[1] = x[1] + (x[0] << 8 | x[0] >>> 24) + x[7] | 0, a[2] = x[2] + (x[1] << 16 | x[1] >>> 16) + (x[0] << 16 | x[0] >>> 16) | 0, a[3] = x[3] + (x[2] << 8 | x[2] >>> 24) + x[1] | 0, a[4] = x[4] + (x[3] << 16 | x[3] >>> 16) + (x[2] << 16 | x[2] >>> 16) | 0, a[5] = x[5] + (x[4] << 8 | x[4] >>> 24) + x[3] | 0, a[6] = x[6] + (x[5] << 16 | x[5] >>> 16) + (x[4] << 16 | x[4] >>> 16) | 0, a[7] = x[7] + (x[6] << 8 | x[6] >>> 24) + x[5] | 0;
|
|
4349
4350
|
}
|
|
4350
|
-
e.Rabbit =
|
|
4351
|
+
e.Rabbit = v._createHelper(n);
|
|
4351
4352
|
})(), t.Rabbit;
|
|
4352
4353
|
});
|
|
4353
4354
|
})(ar)), ar.exports;
|
|
4354
4355
|
}
|
|
4355
|
-
var or = { exports: {} },
|
|
4356
|
-
function
|
|
4357
|
-
return
|
|
4356
|
+
var or = { exports: {} }, vx = or.exports, ve;
|
|
4357
|
+
function px() {
|
|
4358
|
+
return ve || (ve = 1, (function(r, h) {
|
|
4358
4359
|
(function(t, e, u) {
|
|
4359
4360
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
4360
|
-
})(
|
|
4361
|
+
})(vx, function(t) {
|
|
4361
4362
|
return (function() {
|
|
4362
|
-
var e = t, u = e.lib,
|
|
4363
|
+
var e = t, u = e.lib, v = u.StreamCipher, m = e.algo, B = [], C = [], x = [], n = m.RabbitLegacy = v.extend({
|
|
4363
4364
|
_doReset: function() {
|
|
4364
4365
|
var a = this._key.words, s = this.cfg.iv, f = this._X = [
|
|
4365
4366
|
a[0],
|
|
@@ -4370,7 +4371,7 @@ function Bx() {
|
|
|
4370
4371
|
a[1] << 16 | a[0] >>> 16,
|
|
4371
4372
|
a[3],
|
|
4372
4373
|
a[2] << 16 | a[1] >>> 16
|
|
4373
|
-
],
|
|
4374
|
+
], p = this._C = [
|
|
4374
4375
|
a[2] << 16 | a[2] >>> 16,
|
|
4375
4376
|
a[0] & 4294901760 | a[1] & 65535,
|
|
4376
4377
|
a[3] << 16 | a[3] >>> 16,
|
|
@@ -4384,10 +4385,10 @@ function Bx() {
|
|
|
4384
4385
|
for (var l = 0; l < 4; l++)
|
|
4385
4386
|
E.call(this);
|
|
4386
4387
|
for (var l = 0; l < 8; l++)
|
|
4387
|
-
|
|
4388
|
+
p[l] ^= f[l + 4 & 7];
|
|
4388
4389
|
if (s) {
|
|
4389
4390
|
var g = s.words, i = g[0], o = g[1], d = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, b = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, D = d >>> 16 | b & 4294901760, y = b << 16 | d & 65535;
|
|
4390
|
-
|
|
4391
|
+
p[0] ^= d, p[1] ^= D, p[2] ^= b, p[3] ^= y, p[4] ^= d, p[5] ^= D, p[6] ^= b, p[7] ^= y;
|
|
4391
4392
|
for (var l = 0; l < 4; l++)
|
|
4392
4393
|
E.call(this);
|
|
4393
4394
|
}
|
|
@@ -4395,8 +4396,8 @@ function Bx() {
|
|
|
4395
4396
|
_doProcessBlock: function(a, s) {
|
|
4396
4397
|
var f = this._X;
|
|
4397
4398
|
E.call(this), B[0] = f[0] ^ f[5] >>> 16 ^ f[3] << 16, B[1] = f[2] ^ f[7] >>> 16 ^ f[5] << 16, B[2] = f[4] ^ f[1] >>> 16 ^ f[7] << 16, B[3] = f[6] ^ f[3] >>> 16 ^ f[1] << 16;
|
|
4398
|
-
for (var
|
|
4399
|
-
B[
|
|
4399
|
+
for (var p = 0; p < 4; p++)
|
|
4400
|
+
B[p] = (B[p] << 8 | B[p] >>> 24) & 16711935 | (B[p] << 24 | B[p] >>> 8) & 4278255360, a[s + p] ^= B[p];
|
|
4400
4401
|
},
|
|
4401
4402
|
blockSize: 128 / 32,
|
|
4402
4403
|
ivSize: 64 / 32
|
|
@@ -4406,24 +4407,24 @@ function Bx() {
|
|
|
4406
4407
|
C[f] = s[f];
|
|
4407
4408
|
s[0] = s[0] + 1295307597 + this._b | 0, s[1] = s[1] + 3545052371 + (s[0] >>> 0 < C[0] >>> 0 ? 1 : 0) | 0, s[2] = s[2] + 886263092 + (s[1] >>> 0 < C[1] >>> 0 ? 1 : 0) | 0, s[3] = s[3] + 1295307597 + (s[2] >>> 0 < C[2] >>> 0 ? 1 : 0) | 0, s[4] = s[4] + 3545052371 + (s[3] >>> 0 < C[3] >>> 0 ? 1 : 0) | 0, s[5] = s[5] + 886263092 + (s[4] >>> 0 < C[4] >>> 0 ? 1 : 0) | 0, s[6] = s[6] + 1295307597 + (s[5] >>> 0 < C[5] >>> 0 ? 1 : 0) | 0, s[7] = s[7] + 3545052371 + (s[6] >>> 0 < C[6] >>> 0 ? 1 : 0) | 0, this._b = s[7] >>> 0 < C[7] >>> 0 ? 1 : 0;
|
|
4408
4409
|
for (var f = 0; f < 8; f++) {
|
|
4409
|
-
var
|
|
4410
|
+
var p = a[f] + s[f], l = p & 65535, g = p >>> 16, i = ((l * l >>> 17) + l * g >>> 15) + g * g, o = ((p & 4294901760) * p | 0) + ((p & 65535) * p | 0);
|
|
4410
4411
|
x[f] = i ^ o;
|
|
4411
4412
|
}
|
|
4412
4413
|
a[0] = x[0] + (x[7] << 16 | x[7] >>> 16) + (x[6] << 16 | x[6] >>> 16) | 0, a[1] = x[1] + (x[0] << 8 | x[0] >>> 24) + x[7] | 0, a[2] = x[2] + (x[1] << 16 | x[1] >>> 16) + (x[0] << 16 | x[0] >>> 16) | 0, a[3] = x[3] + (x[2] << 8 | x[2] >>> 24) + x[1] | 0, a[4] = x[4] + (x[3] << 16 | x[3] >>> 16) + (x[2] << 16 | x[2] >>> 16) | 0, a[5] = x[5] + (x[4] << 8 | x[4] >>> 24) + x[3] | 0, a[6] = x[6] + (x[5] << 16 | x[5] >>> 16) + (x[4] << 16 | x[4] >>> 16) | 0, a[7] = x[7] + (x[6] << 8 | x[6] >>> 24) + x[5] | 0;
|
|
4413
4414
|
}
|
|
4414
|
-
e.RabbitLegacy =
|
|
4415
|
+
e.RabbitLegacy = v._createHelper(n);
|
|
4415
4416
|
})(), t.RabbitLegacy;
|
|
4416
4417
|
});
|
|
4417
4418
|
})(or)), or.exports;
|
|
4418
4419
|
}
|
|
4419
|
-
var ir = { exports: {} },
|
|
4420
|
-
function
|
|
4421
|
-
return
|
|
4420
|
+
var ir = { exports: {} }, Bx = ir.exports, pe;
|
|
4421
|
+
function Cx() {
|
|
4422
|
+
return pe || (pe = 1, (function(r, h) {
|
|
4422
4423
|
(function(t, e, u) {
|
|
4423
4424
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
4424
|
-
})(
|
|
4425
|
+
})(Bx, function(t) {
|
|
4425
4426
|
return (function() {
|
|
4426
|
-
var e = t, u = e.lib,
|
|
4427
|
+
var e = t, u = e.lib, v = u.BlockCipher, m = e.algo;
|
|
4427
4428
|
const B = 16, C = [
|
|
4428
4429
|
608135816,
|
|
4429
4430
|
2242054355,
|
|
@@ -5514,7 +5515,7 @@ function Ex() {
|
|
|
5514
5515
|
D = a(l, d, b), d = D.left, b = D.right, l.sbox[y][k] = d, l.sbox[y][k + 1] = b;
|
|
5515
5516
|
return !0;
|
|
5516
5517
|
}
|
|
5517
|
-
var
|
|
5518
|
+
var p = m.Blowfish = v.extend({
|
|
5518
5519
|
_doReset: function() {
|
|
5519
5520
|
if (this._keyPriorReset !== this._key) {
|
|
5520
5521
|
var l = this._keyPriorReset = this._key, g = l.words, i = l.sigBytes / 4;
|
|
@@ -5533,73 +5534,73 @@ function Ex() {
|
|
|
5533
5534
|
keySize: 128 / 32,
|
|
5534
5535
|
ivSize: 64 / 32
|
|
5535
5536
|
});
|
|
5536
|
-
e.Blowfish =
|
|
5537
|
+
e.Blowfish = v._createHelper(p);
|
|
5537
5538
|
})(), t.Blowfish;
|
|
5538
5539
|
});
|
|
5539
5540
|
})(ir)), ir.exports;
|
|
5540
5541
|
}
|
|
5541
|
-
var
|
|
5542
|
-
function
|
|
5543
|
-
return
|
|
5542
|
+
var Ex = _0.exports, Be;
|
|
5543
|
+
function Ax() {
|
|
5544
|
+
return Be || (Be = 1, (function(r, h) {
|
|
5544
5545
|
(function(t, e, u) {
|
|
5545
|
-
r.exports = e(M(), fr(),
|
|
5546
|
-
})(
|
|
5546
|
+
r.exports = e(M(), fr(), pt(), Ct(), i0(), Ft(), s0(), _e(), Cr(), _t(), ye(), kt(), Ht(), Rt(), Er(), Wt(), a0(), X(), qt(), Mt(), Ut(), Gt(), Xt(), Zt(), Vt(), rx(), tx(), nx(), ox(), sx(), fx(), dx(), hx(), px(), Cx());
|
|
5547
|
+
})(Ex, function(t) {
|
|
5547
5548
|
return t;
|
|
5548
5549
|
});
|
|
5549
5550
|
})(_0)), _0.exports;
|
|
5550
5551
|
}
|
|
5551
|
-
|
|
5552
|
-
let
|
|
5552
|
+
Ax();
|
|
5553
|
+
let we = null, ke = null, Se = null, He = null;
|
|
5553
5554
|
Math.random().toString(36).substring(7);
|
|
5554
|
-
function
|
|
5555
|
-
|
|
5555
|
+
function Fx(r) {
|
|
5556
|
+
we = r.token, ke = r.apiUrl, Se = r.deviceId, He = r.domain;
|
|
5556
5557
|
}
|
|
5557
|
-
function
|
|
5558
|
+
function Dx() {
|
|
5558
5559
|
return {
|
|
5559
|
-
token:
|
|
5560
|
-
apiUrl:
|
|
5561
|
-
deviceId:
|
|
5562
|
-
domain:
|
|
5560
|
+
token: we,
|
|
5561
|
+
apiUrl: ke,
|
|
5562
|
+
deviceId: Se,
|
|
5563
|
+
domain: He
|
|
5563
5564
|
};
|
|
5564
5565
|
}
|
|
5565
|
-
function
|
|
5566
|
-
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.
|
|
5566
|
+
function gx(r) {
|
|
5567
|
+
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.152`;
|
|
5567
5568
|
}
|
|
5568
|
-
function
|
|
5569
|
-
const t =
|
|
5569
|
+
function bx(r, h) {
|
|
5570
|
+
const t = gx(r);
|
|
5570
5571
|
return new Worker(t, { type: "module", ...h });
|
|
5571
5572
|
}
|
|
5572
|
-
const
|
|
5573
|
+
const Ar = () => {
|
|
5573
5574
|
try {
|
|
5574
5575
|
if (globalThis.__DEBUG_RENDER__ === !0 || typeof localStorage < "u" && localStorage.getItem("DEBUG_RENDER") === "1") return !0;
|
|
5575
5576
|
} catch {
|
|
5576
5577
|
}
|
|
5577
5578
|
return !1;
|
|
5578
5579
|
}, b0 = (...r) => {
|
|
5579
|
-
|
|
5580
|
-
},
|
|
5581
|
-
|
|
5582
|
-
},
|
|
5583
|
-
let
|
|
5584
|
-
function
|
|
5585
|
-
const h =
|
|
5580
|
+
Ar();
|
|
5581
|
+
}, Ce = (...r) => {
|
|
5582
|
+
Ar();
|
|
5583
|
+
}, Ee = /* @__PURE__ */ new Map(), vr = /* @__PURE__ */ new Map();
|
|
5584
|
+
let mx = 0;
|
|
5585
|
+
function _x(r) {
|
|
5586
|
+
const h = Ee.get(r);
|
|
5586
5587
|
if (h) return h;
|
|
5587
|
-
const t =
|
|
5588
|
+
const t = bx("./deform.worker.ts");
|
|
5588
5589
|
try {
|
|
5589
|
-
t.postMessage({ type: "SET_DEBUG", debugRender:
|
|
5590
|
+
t.postMessage({ type: "SET_DEBUG", debugRender: Ar() });
|
|
5590
5591
|
} catch {
|
|
5591
5592
|
}
|
|
5592
5593
|
t.onmessage = (u) => {
|
|
5593
|
-
const { id:
|
|
5594
|
-
b0(`[renderService] deform worker 响应 id=${
|
|
5594
|
+
const { id: v, imageBitmap: m, error: B, duration: C } = u.data ?? {}, x = C ? ` worker耗时=${Math.round(C)}ms` : "";
|
|
5595
|
+
b0(`[renderService] deform worker 响应 id=${v}${x}`, {
|
|
5595
5596
|
hasImageBitmap: !!m,
|
|
5596
5597
|
width: m?.width,
|
|
5597
5598
|
height: m?.height,
|
|
5598
5599
|
error: B
|
|
5599
5600
|
});
|
|
5600
|
-
const n = vr.get(
|
|
5601
|
+
const n = vr.get(v);
|
|
5601
5602
|
if (n) {
|
|
5602
|
-
if (vr.delete(
|
|
5603
|
+
if (vr.delete(v), B) {
|
|
5603
5604
|
n.reject(new Error(B));
|
|
5604
5605
|
return;
|
|
5605
5606
|
}
|
|
@@ -5608,7 +5609,7 @@ function yx(r) {
|
|
|
5608
5609
|
}, t.onerror = (u) => {
|
|
5609
5610
|
};
|
|
5610
5611
|
const e = () => {
|
|
5611
|
-
const u =
|
|
5612
|
+
const u = Dx();
|
|
5612
5613
|
return b0("🔍 [workerManager] 检查 License Token:", {
|
|
5613
5614
|
hasToken: !!u.token,
|
|
5614
5615
|
tokenPreview: u.token ? u.token.substring(0, 20) + "..." : "undefined",
|
|
@@ -5623,12 +5624,12 @@ function yx(r) {
|
|
|
5623
5624
|
}), !0) : !1;
|
|
5624
5625
|
};
|
|
5625
5626
|
return e() || (b0("⏳ [workerManager] License Token 未设置,等待后重试...", { faceId: r }), setTimeout(() => {
|
|
5626
|
-
e() ||
|
|
5627
|
+
e() || Ce("⚠️ [workerManager] 等待后 License Token 仍未设置", { faceId: r });
|
|
5627
5628
|
}, 200), setTimeout(() => {
|
|
5628
|
-
e() ||
|
|
5629
|
-
}, 500)),
|
|
5629
|
+
e() || Ce("⚠️ [workerManager] 第二次等待后 License Token 仍未设置", { faceId: r });
|
|
5630
|
+
}, 500)), Ee.set(r, t), t;
|
|
5630
5631
|
}
|
|
5631
|
-
function
|
|
5632
|
+
function yx(r) {
|
|
5632
5633
|
return {
|
|
5633
5634
|
name: r.name,
|
|
5634
5635
|
type: r.type,
|
|
@@ -5700,8 +5701,8 @@ function wx(r) {
|
|
|
5700
5701
|
clipping: r.clipping
|
|
5701
5702
|
};
|
|
5702
5703
|
}
|
|
5703
|
-
function
|
|
5704
|
-
const u = ++
|
|
5704
|
+
function wx(r, h, t, e) {
|
|
5705
|
+
const u = ++mx, v = _x(t);
|
|
5705
5706
|
return performance.now(), (/* @__PURE__ */ new Date()).toISOString(), new Promise((m, B) => {
|
|
5706
5707
|
vr.set(u, {
|
|
5707
5708
|
resolve: (x) => {
|
|
@@ -5709,17 +5710,17 @@ function kx(r, h, t, e) {
|
|
|
5709
5710
|
},
|
|
5710
5711
|
reject: B
|
|
5711
5712
|
});
|
|
5712
|
-
const C =
|
|
5713
|
-
|
|
5713
|
+
const C = yx(h);
|
|
5714
|
+
v.postMessage({ id: u, designBitmap: r, layerData: C, canvasSize: e }, [
|
|
5714
5715
|
r
|
|
5715
5716
|
]);
|
|
5716
5717
|
});
|
|
5717
5718
|
}
|
|
5718
|
-
async function
|
|
5719
|
-
const m = await
|
|
5719
|
+
async function kx(r, h, t = 0, e, u, v) {
|
|
5720
|
+
const m = await ot(r, u, v);
|
|
5720
5721
|
if (!m || m.width === 0 || m.height === 0)
|
|
5721
5722
|
throw new Error("图片无效:尺寸为 0");
|
|
5722
|
-
return await
|
|
5723
|
+
return await wx(m, h, t, e);
|
|
5723
5724
|
}
|
|
5724
5725
|
function d0(r, h) {
|
|
5725
5726
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
@@ -5733,13 +5734,13 @@ function d0(r, h) {
|
|
|
5733
5734
|
function A0(r) {
|
|
5734
5735
|
return r.getContext("2d");
|
|
5735
5736
|
}
|
|
5736
|
-
function
|
|
5737
|
+
function Ae(r) {
|
|
5737
5738
|
const h = A0(r);
|
|
5738
5739
|
if (!h)
|
|
5739
5740
|
throw new Error("无法创建 canvas context");
|
|
5740
5741
|
return h;
|
|
5741
5742
|
}
|
|
5742
|
-
async function
|
|
5743
|
+
async function Sx(r) {
|
|
5743
5744
|
const h = performance.now(), t = () => {
|
|
5744
5745
|
try {
|
|
5745
5746
|
if (globalThis.__DEBUG_RENDER__ === !0 || typeof localStorage < "u" && localStorage.getItem("DEBUG_RENDER") === "1") return !0;
|
|
@@ -5751,7 +5752,7 @@ async function Hx(r) {
|
|
|
5751
5752
|
}, u = (...c) => {
|
|
5752
5753
|
t();
|
|
5753
5754
|
}, {
|
|
5754
|
-
psdJson:
|
|
5755
|
+
psdJson: v,
|
|
5755
5756
|
materialList: m,
|
|
5756
5757
|
fabricScreenshotList: B,
|
|
5757
5758
|
width: C,
|
|
@@ -5759,8 +5760,8 @@ async function Hx(r) {
|
|
|
5759
5760
|
baseUrl: n
|
|
5760
5761
|
} = r, E = r.maxImageSize;
|
|
5761
5762
|
e("[renderByJson] 接收到的数据:", {
|
|
5762
|
-
psdJsonLayerCount:
|
|
5763
|
-
psdJsonLayers:
|
|
5763
|
+
psdJsonLayerCount: v.layerList?.length || 0,
|
|
5764
|
+
psdJsonLayers: v.layerList?.map((c) => ({
|
|
5764
5765
|
name: c.name,
|
|
5765
5766
|
type: c.type,
|
|
5766
5767
|
id: c.id,
|
|
@@ -5798,10 +5799,10 @@ async function Hx(r) {
|
|
|
5798
5799
|
url: c.url
|
|
5799
5800
|
}), f.set(c.layerName, c.url));
|
|
5800
5801
|
}
|
|
5801
|
-
const
|
|
5802
|
+
const p = /* @__PURE__ */ new Map();
|
|
5802
5803
|
for (const c of B)
|
|
5803
|
-
|
|
5804
|
-
e("[renderByJson] fabricScreenshotMap:", Array.from(
|
|
5804
|
+
p.set(c.id, c.url);
|
|
5805
|
+
e("[renderByJson] fabricScreenshotMap:", Array.from(p.entries())), e("[renderByJson] psdJson.layerList 结构:", v.layerList?.map((c) => ({
|
|
5805
5806
|
name: c.name,
|
|
5806
5807
|
type: c.type,
|
|
5807
5808
|
id: c.id,
|
|
@@ -5848,8 +5849,8 @@ async function Hx(r) {
|
|
|
5848
5849
|
function g(c, A) {
|
|
5849
5850
|
const _ = c.id ?? A;
|
|
5850
5851
|
if (c.type === "Group" && _)
|
|
5851
|
-
if (e(`[renderByJson] processLayer 检查 Group: name="${c.name}", id=${_}, hasFabricScreenshot=${
|
|
5852
|
-
const W =
|
|
5852
|
+
if (e(`[renderByJson] processLayer 检查 Group: name="${c.name}", id=${_}, hasFabricScreenshot=${p.has(_)}`), p.has(_)) {
|
|
5853
|
+
const W = p.get(_);
|
|
5853
5854
|
if (e(`[renderByJson] ✅ 找到匹配的 fabricScreenshot: Group id=${_}, name="${c.name}", url=${W.substring(0, 50)}...`), c.children) {
|
|
5854
5855
|
e(`[renderByJson] Group "${c.name}" 有 ${c.children.length} 个子图层`);
|
|
5855
5856
|
for (const P of c.children)
|
|
@@ -5865,14 +5866,14 @@ async function Hx(r) {
|
|
|
5865
5866
|
for (const W of c.children)
|
|
5866
5867
|
W && g(W, _);
|
|
5867
5868
|
}
|
|
5868
|
-
if (
|
|
5869
|
-
for (const c of
|
|
5869
|
+
if (v.layerList)
|
|
5870
|
+
for (const c of v.layerList)
|
|
5870
5871
|
c && l(c);
|
|
5871
|
-
if (
|
|
5872
|
-
for (const c of
|
|
5872
|
+
if (v.layerList)
|
|
5873
|
+
for (const c of v.layerList)
|
|
5873
5874
|
c && g(c);
|
|
5874
|
-
const o =
|
|
5875
|
-
psdJson:
|
|
5875
|
+
const o = Xe([{
|
|
5876
|
+
psdJson: v,
|
|
5876
5877
|
layerExtrasByName: s
|
|
5877
5878
|
}], {
|
|
5878
5879
|
parts: [],
|
|
@@ -5883,7 +5884,7 @@ async function Hx(r) {
|
|
|
5883
5884
|
const d = o.models[0];
|
|
5884
5885
|
if (!d.psdPartData)
|
|
5885
5886
|
throw new Error("JSON 数据中没有 psdPartData");
|
|
5886
|
-
const b = d.width, D = d.height, y = d0(b, D), k =
|
|
5887
|
+
const b = d.width, D = d.height, y = d0(b, D), k = Ae(y), R = [], F = (c) => {
|
|
5887
5888
|
if (c.url && s[c.url])
|
|
5888
5889
|
return s[c.url];
|
|
5889
5890
|
if (c.url) {
|
|
@@ -5917,7 +5918,7 @@ async function Hx(r) {
|
|
|
5917
5918
|
index: c,
|
|
5918
5919
|
type: "layer",
|
|
5919
5920
|
partData: A,
|
|
5920
|
-
promise:
|
|
5921
|
+
promise: it(P, E, n).catch((L) => null)
|
|
5921
5922
|
});
|
|
5922
5923
|
} else if (A.type === F0.Group) {
|
|
5923
5924
|
if (!A.smartObjects || A.smartObjects.length === 0)
|
|
@@ -5949,14 +5950,14 @@ async function Hx(r) {
|
|
|
5949
5950
|
continue;
|
|
5950
5951
|
I = G;
|
|
5951
5952
|
}
|
|
5952
|
-
const Z = (A.partId ?? A.id) * 100 + W, Q =
|
|
5953
|
+
const Z = (A.partId ?? A.id) * 100 + W, Q = Ze(Ye(P)), o0 = { width: b, height: D };
|
|
5953
5954
|
R.push({
|
|
5954
5955
|
index: c + W * 0.01,
|
|
5955
5956
|
type: "group",
|
|
5956
5957
|
partData: A,
|
|
5957
5958
|
smartObject: P,
|
|
5958
5959
|
maskData: Q,
|
|
5959
|
-
promise:
|
|
5960
|
+
promise: kx(
|
|
5960
5961
|
I,
|
|
5961
5962
|
P,
|
|
5962
5963
|
Z,
|
|
@@ -6037,7 +6038,7 @@ async function Hx(r) {
|
|
|
6037
6038
|
z.globalAlpha = 1, z.globalCompositeOperation = "source-over";
|
|
6038
6039
|
}
|
|
6039
6040
|
} else {
|
|
6040
|
-
if (k.globalCompositeOperation =
|
|
6041
|
+
if (k.globalCompositeOperation = zr(W.blendMode), k.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6041
6042
|
if (A.maskData) {
|
|
6042
6043
|
const K = d0(b, D), G = A0(K);
|
|
6043
6044
|
G && (G.drawImage(_, 0, 0), dr(G, A.maskData), k.drawImage(K, 0, 0));
|
|
@@ -6052,7 +6053,7 @@ async function Hx(r) {
|
|
|
6052
6053
|
) : k.drawImage(_, 0, 0));
|
|
6053
6054
|
k.globalAlpha = 1, k.globalCompositeOperation = "source-over";
|
|
6054
6055
|
}
|
|
6055
|
-
O && !Q && (k.globalCompositeOperation =
|
|
6056
|
+
O && !Q && (k.globalCompositeOperation = zr(q), k.drawImage($, 0, 0), k.globalCompositeOperation = "source-over", O = !1);
|
|
6056
6057
|
}
|
|
6057
6058
|
$ = null, z = null;
|
|
6058
6059
|
let U = y, T = b, N = D;
|
|
@@ -6067,7 +6068,7 @@ async function Hx(r) {
|
|
|
6067
6068
|
T = Math.round(b * A), N = x;
|
|
6068
6069
|
}
|
|
6069
6070
|
U = d0(T, N);
|
|
6070
|
-
const c =
|
|
6071
|
+
const c = Ae(U);
|
|
6071
6072
|
c.imageSmoothingEnabled = !0, c.imageSmoothingQuality = "high", c.drawImage(y, 0, 0, b, D, 0, 0, T, N), e(`[renderByJson] 已缩放结果: ${b}x${D} -> ${T}x${N}`);
|
|
6072
6073
|
}
|
|
6073
6074
|
const S = performance.now() - h;
|
|
@@ -6077,15 +6078,15 @@ async function Hx(r) {
|
|
|
6077
6078
|
height: N
|
|
6078
6079
|
};
|
|
6079
6080
|
}
|
|
6080
|
-
const
|
|
6081
|
-
const t = (await
|
|
6081
|
+
const Hx = async (r) => {
|
|
6082
|
+
const t = (await Sx(r)).canvas;
|
|
6082
6083
|
return t ? createImageBitmap(t) : null;
|
|
6083
6084
|
};
|
|
6084
6085
|
self.onmessage = async (r) => {
|
|
6085
6086
|
const h = r.data;
|
|
6086
6087
|
if (h && typeof h == "object" && "type" in h && h.type === "SET_LICENSE") {
|
|
6087
6088
|
const e = h;
|
|
6088
|
-
|
|
6089
|
+
Fx({
|
|
6089
6090
|
token: e.licenseToken,
|
|
6090
6091
|
apiUrl: e.licenseApiUrl,
|
|
6091
6092
|
deviceId: e.deviceId,
|
|
@@ -6095,7 +6096,7 @@ self.onmessage = async (r) => {
|
|
|
6095
6096
|
}
|
|
6096
6097
|
const t = h;
|
|
6097
6098
|
try {
|
|
6098
|
-
const e = await
|
|
6099
|
+
const e = await Hx(t.renderData);
|
|
6099
6100
|
self.postMessage({ id: t.id, bitmap: e }, e ? [e] : []);
|
|
6100
6101
|
} catch (e) {
|
|
6101
6102
|
self.postMessage({
|