function r(e) {
for (var t = N ? "0123456789ABCDEF" : "0123456789abcdef", n = "", a = 0; a < 4 e.length; a++)
n += t.charAt(e[a >> 2] >> a % 4 8 + 4 & 15) + t.charAt(e[a >> 2] >> a % 4 * 8 & 15);
return n
}
var o = "hanyastarsmkeyaa"
, s = [214, 144, 233, 254, 204, 225, 61, 183, 22, 182, 20, 194, 40, 251, 44, 5, 43, 103, 154, 118, 42, 190, 4, 195, 170, 68, 19, 38, 73, 134, 6, 153, 156, 66, 80, 244, 145, 239, 152, 122, 51, 84, 11, 67, 237, 207, 172, 98, 228, 179, 28, 169, 201, 8, 232, 149, 128, 223, 148, 250, 117, 143, 63, 166, 71, 7, 167, 252, 243, 115, 23, 186, 131, 89, 60, 25, 230, 133, 79, 168, 104, 107, 129, 178, 113, 100, 218, 139, 248, 235, 15, 75, 112, 86, 157, 53, 30, 36, 14, 94, 99, 88, 209, 162, 37, 34, 124, 59, 1, 33, 120, 135, 212, 0, 70, 87, 159, 211, 39, 82, 76, 54, 2, 231, 160, 196, 200, 158, 234, 191, 138, 210, 64, 199, 56, 181, 163, 247, 242, 206, 249, 97, 21, 161, 224, 174, 93, 164, 155, 52, 26, 85, 173, 147, 50, 48, 245, 140, 177, 227, 29, 246, 226, 46, 130, 102, 202, 96, 192, 41, 35, 171, 13, 83, 78, 111, 213, 219, 55, 69, 222, 253, 142, 47, 3, 255, 106, 114, 109, 108, 91, 81, 141, 27, 175, 146, 187, 221, 188, 127, 17, 217, 92, 65, 31, 16, 90, 216, 10, 193, 49, 136, 165, 205, 123, 189, 45, 116, 208, 18, 184, 229, 180, 176, 137, 105, 151, 74, 12, 150, 119, 126, 101, 185, 241, 9, 197, 110, 198, 132, 24, 240, 125, 236, 58, 220, 77, 32, 121, 238, 95, 62, 215, 203, 57, 72]
, c = [462357, 472066609, 943670861, 1415275113, 1886879365, 2358483617, 2830087869, 3301692121, 3773296373, 4228057617, 404694573, 876298825, 1347903077, 1819507329, 2291111581, 2762715833, 3234320085, 3705924337, 4177462797, 337322537, 808926789, 1280531041, 1752135293, 2223739545, 2695343797, 3166948049, 3638552301, 4110090761, 269950501, 741554753, 1213159005, 1684763257]
, u = [2746333894, 1453994832, 1736282519, 2993693404]
, d = function(e) {
return /string/gi.test(Object.prototype.toString.call(e)) || (e = JSON.stringify(e)),
unescape(encodeURIComponent(e)).split("").map((function(e) {
return e.charCodeAt()
}
))
}
, l = function(e, t) {
return e << t | e >>> 32 - t
}
, h = function(e) {
return s[e >>> 24 & 255] << 24 | s[e >>> 16 & 255] << 16 | s[e >>> 8 & 255] << 8 | s[255 & e]
}
, m = function(e) {
var t = h(e)
, n = t ^ l(t, 2) ^ l(t, 10) ^ l(t, 18) ^ l(t, 24);
return n
}
, p = function(e) {
var t = h(e)
, n = t ^ l(t, 13) ^ l(t, 23);
return n
}
, f = function(e) {
var t = []
, n = [e[0] << 24 | e[1] << 16 | e[2] << 8 | e[3], e[4] << 24 | e[5] << 16 | e[6] << 8 | e[7], e[8] << 24 | e[9] << 16 | e[10] << 8 | e[11], e[12] << 24 | e[13] << 16 | e[14] << 8 | e[15]]
, a = new Array(36);
a[0] = n[0] ^ u[0],
a[1] = n[1] ^ u[1],
a[2] = n[2] ^ u[2],
a[3] = n[3] ^ u[3];
for (var i = 0; i < 32; i++)
a[i + 4] = a[i] ^ p(a[i + 1] ^ a[i + 2] ^ a[i + 3] ^ c[i]),
t[i] = a[i + 4];
return t
}
, v = 16
, g = function(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0
, n = [e[t] << 24 | e[t + 1] << 16 | e[t + 2] << 8 | e[t + 3], e[t + 4] << 24 | e[t + 5] << 16 | e[t + 6] << 8 | e[t + 7], e[t + 8] << 24 | e[t + 9] << 16 | e[t + 10] << 8 | e[t + 11], e[t + 12] << 24 | e[t + 13] << 16 | e[t + 14] << 8 | e[t + 15]];
return n
}
, b = function(e, t) {
var n = new Array(36);
e.forEach((function(e, t) {
return n[t] = e
}
));
for (var a = 0; a < 32; a++)
n[a + 4] = n[a] ^ m(n[a + 1] ^ n[a + 2] ^ n[a + 3] ^ t[a]);
var i = [n[35], n[34], n[33], n[32]];
return i
}
, w = function(e) {
if (null === e)
return null;
var t = v - e.length % v
, n = new Array(e.length + t);
return e.forEach((function(e, t) {
return n[t] = e
}
)),
n.fill(t, e.length),
n
};
let base64js={};
!function(n){
n.byteLength = f;
n.toByteArray = i;
n.fromByteArray = p;
var u = [];
var v = [];
var d = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
for (var o = 0, a = t.length; o < a; ++o) {
u[o] = t[o];
v[t.charCodeAt(o)] = o
}
v["-".charCodeAt(0)] = 62;
v["_".charCodeAt(0)] = 63;
function c(r) {
var e = r.length;
if (e % 4 > 0) {
throw new Error("Invalid string. Length must be a multiple of 4")
}
var n = r.indexOf("=");
if (n === -1)
n = e;
var t = n === e ? 0 : 4 - n % 4;
return [n, t]
}
function f(r) {
var e = c(r);
var n = e[0];
var t = e[1];
return (n + t) 3 / 4 - t
}
function h(r, e, n) {
return (e + n) 3 / 4 - n
}
function i(r) {
var e;
var n = c(r);
var t = n[0];
var o = n[1];
var a = new d(h(r, t, o));
var f = 0;
var i = o > 0 ? t - 4 : t;
var u;
for (u = 0; u < i; u += 4) {
e = v[r.charCodeAt(u)] << 18 | v[r.charCodeAt(u + 1)] << 12 | v[r.charCodeAt(u + 2)] << 6 | v[r.charCodeAt(u + 3)];
a[f++] = e >> 16 & 255;
a[f++] = e >> 8 & 255;
a[f++] = e & 255
}
if (o === 2) {
e = v[r.charCodeAt(u)] << 2 | v[r.charCodeAt(u + 1)] >> 4;
a[f++] = e & 255
}
if (o === 1) {
e = v[r.charCodeAt(u)] << 10 | v[r.charCodeAt(u + 1)] << 4 | v[r.charCodeAt(u + 2)] >> 2;
a[f++] = e >> 8 & 255;
a[f++] = e & 255
}
return a
}
function s(r) {
return u[r >> 18 & 63] + u[r >> 12 & 63] + u[r >> 6 & 63] + u[r & 63]
}
function l(r, e, n) {
var t;
var o = [];
for (var a = e; a < n; a += 3) {
t = (r[a] << 16 & 16711680) + (r[a + 1] << 8 & 65280) + (r[a + 2] & 255);
o.push(s(t))
}
return o.join("")
}
function p(r) {
var e;
var n = r.length;
var t = n % 3;
var o = [];
var a = 16383;
for (var f = 0, i = n - t; f < i; f += a) {
o.push(l(r, f, f + a > i ? i : f + a))
}
if (t === 1) {
e = r[n - 1];
o.push(u[e >> 2] + u[e << 4 & 63] + "==")
} else if (t === 2) {
e = (r[n - 2] << 8) + r[n - 1];
o.push(u[e >> 10] + u[e >> 4 & 63] + u[e << 2 & 63] + "=")
}
return o.join("")
}
}(base64js)
function A(e, t) {
for (var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "base64", a = (o + "0000000000000000").slice(0, 16), i = f(d(a)), r = d(e), s = w(r), c = s.length / v, u = [], l = 0; l < c; l++)
for (var h = l v, m = g(s, h), p = b(m, i), A = 0; A < v; A++)
u[h + A] = p[parseInt(A / 4)] >> (3 - A) % 4 8 & 255;
return "base64" === n ? base64js.fromByteArray(u) : decodeURIComponent(escape(String.fromCharCode.apply(String, u)))
}
console.log(A({
"packageCode": "d8d843a863b040858ec1ff9ada8391c8",
"classCode": "e3a28e22986a4912aba8c21d999b9b3a",
"courseCode": "d8d843a863b040858ec1ff9ada8391c8",
"resCode": "a039b400f75e4b5f8f60e9ef5707c4a4",
"playTime": 2790,
"sectionCode": "69bc054b48fe455cb1a113b370cc9df7",
"userCode": "73c62367a8114fff83db8d656e01fd57",
"studyTimeDiff": 13,
"isStudyFinish": 0,
"city": "cbda7c8eecb211e9ad5d00163e08da4d",
"studyLimitTime": "",
"systemTime": 1660211914826
}));
请问这个js该怎么调用到易语言直接使用啊