1096 lines
37 KiB
JavaScript
1096 lines
37 KiB
JavaScript
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
|
|
[1191],
|
|
{
|
|
57473: function (t, e, n) {
|
|
"use strict";
|
|
n.d(e, {
|
|
T: function () {
|
|
return l;
|
|
},
|
|
});
|
|
var r,
|
|
i,
|
|
o = n(40331),
|
|
s = n(54535),
|
|
a = n(75239),
|
|
c = function (t, e, n, r) {
|
|
return new (n || (n = Promise))(function (i, o) {
|
|
function s(t) {
|
|
try {
|
|
c(r.next(t));
|
|
} catch (e) {
|
|
o(e);
|
|
}
|
|
}
|
|
function a(t) {
|
|
try {
|
|
c(r.throw(t));
|
|
} catch (e) {
|
|
o(e);
|
|
}
|
|
}
|
|
function c(t) {
|
|
var e;
|
|
t.done
|
|
? i(t.value)
|
|
: ((e = t.value) instanceof n
|
|
? e
|
|
: new n(function (t) {
|
|
t(e);
|
|
})
|
|
).then(s, a);
|
|
}
|
|
c((r = r.apply(t, e || [])).next());
|
|
});
|
|
},
|
|
u = function (t, e) {
|
|
var n,
|
|
r,
|
|
i,
|
|
o,
|
|
s = {
|
|
label: 0,
|
|
sent: function () {
|
|
if (1 & i[0]) throw i[1];
|
|
return i[1];
|
|
},
|
|
trys: [],
|
|
ops: [],
|
|
};
|
|
return (
|
|
(o = { next: a(0), throw: a(1), return: a(2) }),
|
|
"function" == typeof Symbol &&
|
|
(o[Symbol.iterator] = function () {
|
|
return this;
|
|
}),
|
|
o
|
|
);
|
|
function a(a) {
|
|
return function (c) {
|
|
return (function (a) {
|
|
if (n) throw TypeError("Generator is already executing.");
|
|
for (; o && ((o = 0), a[0] && (s = 0)), s; )
|
|
try {
|
|
if (
|
|
((n = 1),
|
|
r &&
|
|
(i =
|
|
2 & a[0]
|
|
? r.return
|
|
: a[0]
|
|
? r.throw || ((i = r.return) && i.call(r), 0)
|
|
: r.next) &&
|
|
!(i = i.call(r, a[1])).done)
|
|
)
|
|
return i;
|
|
switch (((r = 0), i && (a = [2 & a[0], i.value]), a[0])) {
|
|
case 0:
|
|
case 1:
|
|
i = a;
|
|
break;
|
|
case 4:
|
|
return s.label++, { value: a[1], done: !1 };
|
|
case 5:
|
|
s.label++, (r = a[1]), (a = [0]);
|
|
continue;
|
|
case 7:
|
|
(a = s.ops.pop()), s.trys.pop();
|
|
continue;
|
|
default:
|
|
if (
|
|
!(i = (i = s.trys).length > 0 && i[i.length - 1]) &&
|
|
(6 === a[0] || 2 === a[0])
|
|
) {
|
|
s = 0;
|
|
continue;
|
|
}
|
|
if (
|
|
3 === a[0] &&
|
|
(!i || (a[1] > i[0] && a[1] < i[3]))
|
|
) {
|
|
s.label = a[1];
|
|
break;
|
|
}
|
|
if (6 === a[0] && s.label < i[1]) {
|
|
(s.label = i[1]), (i = a);
|
|
break;
|
|
}
|
|
if (i && s.label < i[2]) {
|
|
(s.label = i[2]), s.ops.push(a);
|
|
break;
|
|
}
|
|
i[2] && s.ops.pop(), s.trys.pop();
|
|
continue;
|
|
}
|
|
a = e.call(t, s);
|
|
} catch (c) {
|
|
(a = [6, c]), (r = 0);
|
|
} finally {
|
|
n = i = 0;
|
|
}
|
|
if (5 & a[0]) throw a[1];
|
|
return { value: a[0] ? a[1] : void 0, done: !0 };
|
|
})([a, c]);
|
|
};
|
|
}
|
|
};
|
|
((i = r || (r = {})).BEFORE_START = "BEFORE_START"),
|
|
(i.ONGOING = "ONGOING"),
|
|
(i.END = "END"),
|
|
(i.DELETE = "DELETE");
|
|
var f = {
|
|
dev: "https://yapi.baidu-int.com/mock/23718/api/abtest/:id",
|
|
devServer: "https://yapi.baidu-int.com/mock/23718/api/abtest/:id",
|
|
devConsole: "https://yapi.baidu-int.com/mock/23718/api/abtest/:id",
|
|
sandbox: "https://bce.bdstatic.com/portal-cms/sandbox/abtest/:id.js",
|
|
sandboxServer:
|
|
"https://bce-cdn.bj.bcebos.com/portal-cms/sandbox/abtest/:id.js",
|
|
sandboxConsole:
|
|
"https://bce.bdstatic.com/portal-cms/sandbox/abtest/:id.js",
|
|
online: "https://bce.bdstatic.com/portal-cms/online/abtest/:id.js",
|
|
onlineServer:
|
|
"https://bce-cdn.bj.bcebos.com/portal-cms/online/abtest/:id.js",
|
|
onlineConsole:
|
|
"https://bce.bdstatic.com/portal-cms/online/abtest/:id.js",
|
|
},
|
|
l = (function () {
|
|
function t(t) {
|
|
(this.params = null),
|
|
(this.abInfo = null),
|
|
(this.ruleId = ""),
|
|
(this.params = t),
|
|
this.setUp();
|
|
}
|
|
return (
|
|
(t.prototype.setUp = function () {
|
|
return c(this, void 0, void 0, function () {
|
|
var t, e;
|
|
return u(this, function (n) {
|
|
switch (n.label) {
|
|
case 0:
|
|
return (t = this), [4, this.getAbInfo()];
|
|
case 1:
|
|
return (
|
|
(t.abInfo = n.sent()),
|
|
(this.ruleId = this.getRuleId()),
|
|
(e = this.flowHandler()),
|
|
this.params.callback(e, this.abInfo),
|
|
[2]
|
|
);
|
|
}
|
|
});
|
|
});
|
|
}),
|
|
(t.prototype.flowHandler = function () {
|
|
var t,
|
|
e = this,
|
|
n = -1;
|
|
try {
|
|
if (
|
|
(null === (t = this.abInfo) || void 0 === t
|
|
? void 0
|
|
: t.abtestStatus) === r.ONGOING
|
|
) {
|
|
if (this.params.rule)
|
|
return this.params.rule(this.abInfo) || this.defaultVersion;
|
|
var i = this.abInfo.testList[0],
|
|
o = this.abInfo.testList[1],
|
|
s = (i.flow / 100) * 16;
|
|
(n =
|
|
parseInt(
|
|
this.isAccountId
|
|
? this.ruleId[this.ruleId.length - 1]
|
|
: this.ruleId[0],
|
|
16
|
|
) < s
|
|
? i.version
|
|
: o.version),
|
|
this.abInfo.testList.forEach(function (t) {
|
|
var r;
|
|
(null === (r = null == t ? void 0 : t.whitelist) ||
|
|
void 0 === r
|
|
? void 0
|
|
: r.includes(e.ruleId)) && (n = t.version);
|
|
});
|
|
} else n = this.defaultVersion;
|
|
} catch (a) {
|
|
(n = this.defaultVersion),
|
|
console.error("flowHandler-error", a);
|
|
}
|
|
return n;
|
|
}),
|
|
(t.prototype.getRuleId = function () {
|
|
if ((this.isServer || this.isConsole) && !this.params.ruleId) {
|
|
var t = "缺少分流规则id,请手动传入百度Id或accountId";
|
|
console.error("getRuleId", t),
|
|
this.params.errHandler && this.params.errHandler(t);
|
|
}
|
|
return this.params.ruleId || (0, o.ej)("BAIDUID");
|
|
}),
|
|
(t.prototype.getAbInfo = function () {
|
|
return c(this, void 0, void 0, function () {
|
|
var t, e, n, r;
|
|
return u(this, function (i) {
|
|
switch (i.label) {
|
|
case 0:
|
|
if (this.abInfo) return [2, this.abInfo];
|
|
(t = ""), (i.label = 1);
|
|
case 1:
|
|
return (
|
|
i.trys.push([1, 3, , 4]),
|
|
(t = this.getAbinfoHttpUrl()),
|
|
[
|
|
4,
|
|
a.y.get(
|
|
t,
|
|
null,
|
|
this.isDev ? { id: this.params.id } : null,
|
|
{
|
|
withCredentials: !0,
|
|
headers: {
|
|
"is-server": this.isServer ? "1" : "0",
|
|
},
|
|
}
|
|
),
|
|
]
|
|
);
|
|
case 2:
|
|
return (e = i.sent()), [2, this.isDev ? e.result : e];
|
|
case 3:
|
|
return (
|
|
(n = i.sent()),
|
|
(r = ""
|
|
.concat(n, "-abtest信息获取出错-url:")
|
|
.concat(t)),
|
|
console.error("getAbInfo", r),
|
|
this.params.errHandler && this.params.errHandler(r),
|
|
[3, 4]
|
|
);
|
|
case 4:
|
|
return [2];
|
|
}
|
|
});
|
|
});
|
|
}),
|
|
(t.prototype.getAbinfoHttpUrl = function () {
|
|
var t = this.params.env || "online",
|
|
e = t;
|
|
return this.isConsole
|
|
? f[(e = "".concat(t, "Console"))]
|
|
: ((e = this.isClient ? t : "".concat(t, "Server")),
|
|
this.isDev
|
|
? f[e]
|
|
: (0, s.TL)(f[e], { ":id": this.params.id }));
|
|
}),
|
|
Object.defineProperty(t.prototype, "isDev", {
|
|
get: function () {
|
|
return "dev" === this.params.env;
|
|
},
|
|
enumerable: !1,
|
|
configurable: !0,
|
|
}),
|
|
Object.defineProperty(t.prototype, "isClient", {
|
|
get: function () {
|
|
return "object" == typeof window;
|
|
},
|
|
enumerable: !1,
|
|
configurable: !0,
|
|
}),
|
|
Object.defineProperty(t.prototype, "isServer", {
|
|
get: function () {
|
|
return !this.isClient;
|
|
},
|
|
enumerable: !1,
|
|
configurable: !0,
|
|
}),
|
|
Object.defineProperty(t.prototype, "defaultVersion", {
|
|
get: function () {
|
|
var t, e;
|
|
return null !==
|
|
(e =
|
|
null === (t = this.abInfo) || void 0 === t
|
|
? void 0
|
|
: t.defaultVersion) && void 0 !== e
|
|
? e
|
|
: this.params.defaultVersion;
|
|
},
|
|
enumerable: !1,
|
|
configurable: !0,
|
|
}),
|
|
Object.defineProperty(t.prototype, "isConsole", {
|
|
get: function () {
|
|
try {
|
|
var t = window.location.href;
|
|
return (
|
|
(this.abInfo && "CONSOLE" === this.abInfo.system) ||
|
|
t.includes("qasandbox.bcetest.baidu.com") ||
|
|
t.includes("console.bce.baidu.com")
|
|
);
|
|
} catch (e) {
|
|
return !1;
|
|
}
|
|
},
|
|
enumerable: !1,
|
|
configurable: !0,
|
|
}),
|
|
Object.defineProperty(t.prototype, "isAccountId", {
|
|
get: function () {
|
|
return (
|
|
this.abInfo && "accountId" === this.abInfo.diversionBasis
|
|
);
|
|
},
|
|
enumerable: !1,
|
|
configurable: !0,
|
|
}),
|
|
t
|
|
);
|
|
})();
|
|
},
|
|
40331: function (t, e, n) {
|
|
"use strict";
|
|
function r(t) {
|
|
var e,
|
|
n,
|
|
r =
|
|
((e = document.cookie.split(";")),
|
|
(n = {}),
|
|
e.forEach(function (t) {
|
|
var e = t.split("=");
|
|
n[e[0].trim()] = decodeURIComponent(e[1]);
|
|
}),
|
|
n);
|
|
return t ? r[t] : r;
|
|
}
|
|
n.d(e, {
|
|
ej: function () {
|
|
return r;
|
|
},
|
|
});
|
|
},
|
|
1753: function (t, e, n) {
|
|
"use strict";
|
|
function r(t, e) {
|
|
return (
|
|
void 0 === e && (e = {}),
|
|
new Promise(function (n, r) {
|
|
var i = document.createElement("script"),
|
|
o = e.prefix,
|
|
s = e.param,
|
|
a = e.timeout,
|
|
c = void 0 === a ? 6e4 : a,
|
|
u = e.data,
|
|
f = void 0 === u ? {} : u,
|
|
l = ""
|
|
.concat(void 0 === o ? "headerDisplayNameCallBack" : o)
|
|
.concat(new Date().getTime()),
|
|
d = null;
|
|
function p() {
|
|
i.parentNode &&
|
|
(i.parentNode.removeChild(i),
|
|
(window[l] = null),
|
|
d && clearTimeout(d));
|
|
}
|
|
c &&
|
|
(d = setTimeout(function () {
|
|
p(), r("timeout");
|
|
}, c)),
|
|
(window[l] = function (t) {
|
|
window[l] && p(), n(t);
|
|
});
|
|
var h = "";
|
|
for (var v in f) {
|
|
var b = void 0 !== f[v] ? f[v] : "";
|
|
h += "&".concat(v, "=").concat(encodeURIComponent(b));
|
|
}
|
|
(t = t + (t.indexOf("?") > 0 ? "" : "?") + h.substr(1)),
|
|
(t = ""
|
|
.concat(t)
|
|
.concat(void 0 === s ? "callback" : s, "=")
|
|
.concat(l)),
|
|
(i.src = t),
|
|
document.head.appendChild(i);
|
|
})
|
|
);
|
|
}
|
|
n.d(e, {
|
|
R: function () {
|
|
return r;
|
|
},
|
|
});
|
|
},
|
|
42369: function (t, e) {
|
|
"use strict";
|
|
var n =
|
|
(this && this.__assign) ||
|
|
function () {
|
|
return (n =
|
|
Object.assign ||
|
|
function (t) {
|
|
for (var e, n = 1, r = arguments.length; n < r; n++)
|
|
for (var i in (e = arguments[n]))
|
|
Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
|
|
return t;
|
|
}).apply(this, arguments);
|
|
};
|
|
Object.defineProperty(e, "__esModule", { value: !0 }),
|
|
(e.wxSdkLoad = e.wxLogin = void 0),
|
|
(e.wxLogin = function (t) {
|
|
var e = t.appId,
|
|
n = t.loginWay,
|
|
r = encodeURIComponent(window.location.href);
|
|
window.location.href =
|
|
"https://open.weixin.qq.com/connect/oauth2/authorize?appid=" +
|
|
e +
|
|
"&redirect_uri=" +
|
|
r +
|
|
"&response_type=code&scope=" +
|
|
(void 0 === n ? "snsapi_base" : n) +
|
|
"&state=#wechat_redirect";
|
|
}),
|
|
(e.wxSdkLoad = function (t) {
|
|
var e = document.createElement("script");
|
|
(e.src = "https://res.wx.qq.com/open/js/jweixin-1.6.0.js"),
|
|
(e.onload = function () {
|
|
var e = window.wx;
|
|
e.config({
|
|
debug: !1,
|
|
appId: t.appId,
|
|
timestamp: t.timestamp,
|
|
nonceStr: t.nonceStr,
|
|
signature: t.signature,
|
|
jsApiList: t.jsApiList || [
|
|
"updateAppMessageShareData",
|
|
"updateTimelineShareData",
|
|
"onMenuShareAppMessage",
|
|
"onMenuShareTimeline",
|
|
],
|
|
}),
|
|
e.error(function (t) {
|
|
console.log("error", t);
|
|
}),
|
|
e.ready(function () {
|
|
e.updateAppMessageShareData(
|
|
n(n({}, t.shareInfo), {
|
|
success: function () {
|
|
t.shareInfo.success && t.shareInfo.success();
|
|
},
|
|
})
|
|
),
|
|
e.updateTimelineShareData(
|
|
n(n({}, t.shareInfo), {
|
|
success: function () {
|
|
t.shareInfo.success && t.shareInfo.success();
|
|
},
|
|
})
|
|
);
|
|
});
|
|
}),
|
|
document.body.appendChild(e);
|
|
});
|
|
},
|
|
40708: function (t, e, n) {
|
|
var r;
|
|
(r = function () {
|
|
var t =
|
|
t ||
|
|
(function (t, e) {
|
|
if (
|
|
("undefined" != typeof window &&
|
|
window.crypto &&
|
|
(i = window.crypto),
|
|
"undefined" != typeof self && self.crypto && (i = self.crypto),
|
|
"undefined" != typeof globalThis &&
|
|
globalThis.crypto &&
|
|
(i = globalThis.crypto),
|
|
!i &&
|
|
"undefined" != typeof window &&
|
|
window.msCrypto &&
|
|
(i = window.msCrypto),
|
|
!i && void 0 !== n.g && n.g.crypto && (i = n.g.crypto),
|
|
!i)
|
|
)
|
|
try {
|
|
i = n(86010);
|
|
} catch (r) {}
|
|
var i,
|
|
o = function () {
|
|
if (i) {
|
|
if ("function" == typeof i.getRandomValues)
|
|
try {
|
|
return i.getRandomValues(new Uint32Array(1))[0];
|
|
} catch (t) {}
|
|
if ("function" == typeof i.randomBytes)
|
|
try {
|
|
return i.randomBytes(4).readInt32LE();
|
|
} catch (e) {}
|
|
}
|
|
throw Error(
|
|
"Native crypto module could not be used to get secure random number."
|
|
);
|
|
},
|
|
s =
|
|
Object.create ||
|
|
(function () {
|
|
function t() {}
|
|
return function (e) {
|
|
var n;
|
|
return (
|
|
(t.prototype = e), (n = new t()), (t.prototype = null), n
|
|
);
|
|
};
|
|
})(),
|
|
a = {},
|
|
c = (a.lib = {}),
|
|
u = (c.Base = {
|
|
extend: function (t) {
|
|
var e = s(this);
|
|
return (
|
|
t && e.mixIn(t),
|
|
(e.hasOwnProperty("init") && this.init !== e.init) ||
|
|
(e.init = function () {
|
|
e.$super.init.apply(this, arguments);
|
|
}),
|
|
(e.init.prototype = e),
|
|
(e.$super = this),
|
|
e
|
|
);
|
|
},
|
|
create: function () {
|
|
var t = this.extend();
|
|
return t.init.apply(t, arguments), t;
|
|
},
|
|
init: function () {},
|
|
mixIn: function (t) {
|
|
for (var e in t) t.hasOwnProperty(e) && (this[e] = t[e]);
|
|
t.hasOwnProperty("toString") && (this.toString = t.toString);
|
|
},
|
|
clone: function () {
|
|
return this.init.prototype.extend(this);
|
|
},
|
|
}),
|
|
f = (c.WordArray = u.extend({
|
|
init: function (t, e) {
|
|
(t = this.words = t || []),
|
|
void 0 != e
|
|
? (this.sigBytes = e)
|
|
: (this.sigBytes = 4 * t.length);
|
|
},
|
|
toString: function (t) {
|
|
return (t || d).stringify(this);
|
|
},
|
|
concat: function (t) {
|
|
var e = this.words,
|
|
n = t.words,
|
|
r = this.sigBytes,
|
|
i = t.sigBytes;
|
|
if ((this.clamp(), r % 4))
|
|
for (var o = 0; o < i; o++) {
|
|
var s = (n[o >>> 2] >>> (24 - (o % 4) * 8)) & 255;
|
|
e[(r + o) >>> 2] |= s << (24 - ((r + o) % 4) * 8);
|
|
}
|
|
else
|
|
for (var a = 0; a < i; a += 4)
|
|
e[(r + a) >>> 2] = n[a >>> 2];
|
|
return (this.sigBytes += i), this;
|
|
},
|
|
clamp: function () {
|
|
var e = this.words,
|
|
n = this.sigBytes;
|
|
(e[n >>> 2] &= 4294967295 << (32 - (n % 4) * 8)),
|
|
(e.length = t.ceil(n / 4));
|
|
},
|
|
clone: function () {
|
|
var t = u.clone.call(this);
|
|
return (t.words = this.words.slice(0)), t;
|
|
},
|
|
random: function (t) {
|
|
for (var e = [], n = 0; n < t; n += 4) e.push(o());
|
|
return new f.init(e, t);
|
|
},
|
|
})),
|
|
l = (a.enc = {}),
|
|
d = (l.Hex = {
|
|
stringify: function (t) {
|
|
for (
|
|
var e = t.words, n = t.sigBytes, r = [], i = 0;
|
|
i < n;
|
|
i++
|
|
) {
|
|
var o = (e[i >>> 2] >>> (24 - (i % 4) * 8)) & 255;
|
|
r.push((o >>> 4).toString(16)),
|
|
r.push((15 & o).toString(16));
|
|
}
|
|
return r.join("");
|
|
},
|
|
parse: function (t) {
|
|
for (var e = t.length, n = [], r = 0; r < e; r += 2)
|
|
n[r >>> 3] |=
|
|
parseInt(t.substr(r, 2), 16) << (24 - (r % 8) * 4);
|
|
return new f.init(n, e / 2);
|
|
},
|
|
}),
|
|
p = (l.Latin1 = {
|
|
stringify: function (t) {
|
|
for (
|
|
var e = t.words, n = t.sigBytes, r = [], i = 0;
|
|
i < n;
|
|
i++
|
|
) {
|
|
var o = (e[i >>> 2] >>> (24 - (i % 4) * 8)) & 255;
|
|
r.push(String.fromCharCode(o));
|
|
}
|
|
return r.join("");
|
|
},
|
|
parse: function (t) {
|
|
for (var e = t.length, n = [], r = 0; r < e; r++)
|
|
n[r >>> 2] |= (255 & t.charCodeAt(r)) << (24 - (r % 4) * 8);
|
|
return new f.init(n, e);
|
|
},
|
|
}),
|
|
h = (l.Utf8 = {
|
|
stringify: function (t) {
|
|
try {
|
|
return decodeURIComponent(escape(p.stringify(t)));
|
|
} catch (e) {
|
|
throw Error("Malformed UTF-8 data");
|
|
}
|
|
},
|
|
parse: function (t) {
|
|
return p.parse(unescape(encodeURIComponent(t)));
|
|
},
|
|
}),
|
|
v = (c.BufferedBlockAlgorithm = u.extend({
|
|
reset: function () {
|
|
(this._data = new f.init()), (this._nDataBytes = 0);
|
|
},
|
|
_append: function (t) {
|
|
"string" == typeof t && (t = h.parse(t)),
|
|
this._data.concat(t),
|
|
(this._nDataBytes += t.sigBytes);
|
|
},
|
|
_process: function (e) {
|
|
var n,
|
|
r = this._data,
|
|
i = r.words,
|
|
o = r.sigBytes,
|
|
s = this.blockSize,
|
|
a = o / (4 * s),
|
|
c =
|
|
(a = e
|
|
? t.ceil(a)
|
|
: t.max((0 | a) - this._minBufferSize, 0)) * s,
|
|
u = t.min(4 * c, o);
|
|
if (c) {
|
|
for (var l = 0; l < c; l += s) this._doProcessBlock(i, l);
|
|
(n = i.splice(0, c)), (r.sigBytes -= u);
|
|
}
|
|
return new f.init(n, u);
|
|
},
|
|
clone: function () {
|
|
var t = u.clone.call(this);
|
|
return (t._data = this._data.clone()), t;
|
|
},
|
|
_minBufferSize: 0,
|
|
}));
|
|
c.Hasher = v.extend({
|
|
cfg: u.extend(),
|
|
init: function (t) {
|
|
(this.cfg = this.cfg.extend(t)), this.reset();
|
|
},
|
|
reset: function () {
|
|
v.reset.call(this), this._doReset();
|
|
},
|
|
update: function (t) {
|
|
return this._append(t), this._process(), this;
|
|
},
|
|
finalize: function (t) {
|
|
return t && this._append(t), this._doFinalize();
|
|
},
|
|
blockSize: 16,
|
|
_createHelper: function (t) {
|
|
return function (e, n) {
|
|
return new t.init(n).finalize(e);
|
|
};
|
|
},
|
|
_createHmacHelper: function (t) {
|
|
return function (e, n) {
|
|
return new b.HMAC.init(t, n).finalize(e);
|
|
};
|
|
},
|
|
});
|
|
var b = (a.algo = {});
|
|
return a;
|
|
})(Math);
|
|
return t;
|
|
}),
|
|
(t.exports = r());
|
|
},
|
|
56719: function (t, e, n) {
|
|
var r;
|
|
(r = function (t) {
|
|
var e;
|
|
return (
|
|
(e = t.lib.WordArray),
|
|
(t.enc.Base64 = {
|
|
stringify: function (t) {
|
|
var e = t.words,
|
|
n = t.sigBytes,
|
|
r = this._map;
|
|
t.clamp();
|
|
for (var i = [], o = 0; o < n; o += 3)
|
|
for (
|
|
var s = (e[o >>> 2] >>> (24 - (o % 4) * 8)) & 255,
|
|
a = (e[(o + 1) >>> 2] >>> (24 - ((o + 1) % 4) * 8)) & 255,
|
|
c =
|
|
(s << 16) |
|
|
(a << 8) |
|
|
((e[(o + 2) >>> 2] >>> (24 - ((o + 2) % 4) * 8)) & 255),
|
|
u = 0;
|
|
u < 4 && o + 0.75 * u < n;
|
|
u++
|
|
)
|
|
i.push(r.charAt((c >>> (6 * (3 - u))) & 63));
|
|
var f = r.charAt(64);
|
|
if (f) for (; i.length % 4; ) i.push(f);
|
|
return i.join("");
|
|
},
|
|
parse: function (t) {
|
|
var n = t.length,
|
|
r = this._map,
|
|
i = this._reverseMap;
|
|
if (!i) {
|
|
i = this._reverseMap = [];
|
|
for (var o = 0; o < r.length; o++) i[r.charCodeAt(o)] = o;
|
|
}
|
|
var s = r.charAt(64);
|
|
if (s) {
|
|
var a = t.indexOf(s);
|
|
-1 !== a && (n = a);
|
|
}
|
|
return (function (t, n, r) {
|
|
for (var i = [], o = 0, s = 0; s < n; s++)
|
|
if (s % 4) {
|
|
var a,
|
|
c =
|
|
(r[t.charCodeAt(s - 1)] << ((s % 4) * 2)) |
|
|
(r[t.charCodeAt(s)] >>> (6 - (s % 4) * 2));
|
|
(i[o >>> 2] |= c << (24 - (o % 4) * 8)), o++;
|
|
}
|
|
return e.create(i, o);
|
|
})(t, n, i);
|
|
},
|
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
|
|
}),
|
|
t.enc.Base64
|
|
);
|
|
}),
|
|
(t.exports = r(n(40708)));
|
|
},
|
|
93881: function (t, e, n) {
|
|
var r;
|
|
(r = function (t) {
|
|
var e, n, r, i, o, s, a, c, u, f;
|
|
return (
|
|
(e = Math),
|
|
(i = (r = (n = t).lib).WordArray),
|
|
(o = r.Hasher),
|
|
(s = n.algo),
|
|
(a = []),
|
|
(c = []),
|
|
(function () {
|
|
function t(t) {
|
|
for (var n = e.sqrt(t), r = 2; r <= n; r++)
|
|
if (!(t % r)) return !1;
|
|
return !0;
|
|
}
|
|
function n(t) {
|
|
return ((t - (0 | t)) * 4294967296) | 0;
|
|
}
|
|
for (var r = 2, i = 0; i < 64; )
|
|
t(r) &&
|
|
(i < 8 && (a[i] = n(e.pow(r, 0.5))),
|
|
(c[i] = n(e.pow(r, 1 / 3))),
|
|
i++),
|
|
r++;
|
|
})(),
|
|
(u = []),
|
|
(f = s.SHA256 =
|
|
o.extend({
|
|
_doReset: function () {
|
|
this._hash = new i.init(a.slice(0));
|
|
},
|
|
_doProcessBlock: function (t, e) {
|
|
for (
|
|
var n = this._hash.words,
|
|
r = n[0],
|
|
i = n[1],
|
|
o = n[2],
|
|
s = n[3],
|
|
a = n[4],
|
|
f = n[5],
|
|
l = n[6],
|
|
d = n[7],
|
|
p = 0;
|
|
p < 64;
|
|
p++
|
|
) {
|
|
if (p < 16) u[p] = 0 | t[e + p];
|
|
else {
|
|
var h = u[p - 15],
|
|
v =
|
|
((h << 25) | (h >>> 7)) ^
|
|
((h << 14) | (h >>> 18)) ^
|
|
(h >>> 3),
|
|
b = u[p - 2],
|
|
m =
|
|
((b << 15) | (b >>> 17)) ^
|
|
((b << 13) | (b >>> 19)) ^
|
|
(b >>> 10);
|
|
u[p] = v + u[p - 7] + m + u[p - 16];
|
|
}
|
|
var y = (a & f) ^ (~a & l),
|
|
g = (r & i) ^ (r & o) ^ (i & o),
|
|
w =
|
|
((r << 30) | (r >>> 2)) ^
|
|
((r << 19) | (r >>> 13)) ^
|
|
((r << 10) | (r >>> 22)),
|
|
I =
|
|
d +
|
|
(((a << 26) | (a >>> 6)) ^
|
|
((a << 21) | (a >>> 11)) ^
|
|
((a << 7) | (a >>> 25))) +
|
|
y +
|
|
c[p] +
|
|
u[p],
|
|
_ = w + g;
|
|
(d = l),
|
|
(l = f),
|
|
(f = a),
|
|
(a = (s + I) | 0),
|
|
(s = o),
|
|
(o = i),
|
|
(i = r),
|
|
(r = (I + _) | 0);
|
|
}
|
|
(n[0] = (n[0] + r) | 0),
|
|
(n[1] = (n[1] + i) | 0),
|
|
(n[2] = (n[2] + o) | 0),
|
|
(n[3] = (n[3] + s) | 0),
|
|
(n[4] = (n[4] + a) | 0),
|
|
(n[5] = (n[5] + f) | 0),
|
|
(n[6] = (n[6] + l) | 0),
|
|
(n[7] = (n[7] + d) | 0);
|
|
},
|
|
_doFinalize: function () {
|
|
var t = this._data,
|
|
n = t.words,
|
|
r = 8 * this._nDataBytes,
|
|
i = 8 * t.sigBytes;
|
|
return (
|
|
(n[i >>> 5] |= 128 << (24 - (i % 32))),
|
|
(n[(((i + 64) >>> 9) << 4) + 14] = e.floor(r / 4294967296)),
|
|
(n[(((i + 64) >>> 9) << 4) + 15] = r),
|
|
(t.sigBytes = 4 * n.length),
|
|
this._process(),
|
|
this._hash
|
|
);
|
|
},
|
|
clone: function () {
|
|
var t = o.clone.call(this);
|
|
return (t._hash = this._hash.clone()), t;
|
|
},
|
|
})),
|
|
(n.SHA256 = o._createHelper(f)),
|
|
(n.HmacSHA256 = o._createHmacHelper(f)),
|
|
t.SHA256
|
|
);
|
|
}),
|
|
(t.exports = r(n(40708)));
|
|
},
|
|
8160: function (t, e, n) {
|
|
"use strict";
|
|
function r(t, e) {
|
|
(null == e || e > t.length) && (e = t.length);
|
|
for (var n = 0, r = Array(e); n < e; n++) r[n] = t[n];
|
|
return r;
|
|
}
|
|
n.d(e, {
|
|
Z: function () {
|
|
return r;
|
|
},
|
|
});
|
|
},
|
|
45421: function (t, e, n) {
|
|
"use strict";
|
|
function r(t) {
|
|
if (
|
|
("undefined" != typeof Symbol && null != t[Symbol.iterator]) ||
|
|
null != t["@@iterator"]
|
|
)
|
|
return Array.from(t);
|
|
}
|
|
n.d(e, {
|
|
Z: function () {
|
|
return r;
|
|
},
|
|
});
|
|
},
|
|
59072: function (t, e, n) {
|
|
"use strict";
|
|
n.d(e, {
|
|
Z: function () {
|
|
return o;
|
|
},
|
|
});
|
|
var r = n(45421),
|
|
i = n(27319);
|
|
function o(t, e) {
|
|
return (
|
|
(function (t) {
|
|
if (Array.isArray(t)) return t;
|
|
})(t) ||
|
|
(0, r.Z)(t, e) ||
|
|
(0, i.Z)(t, e) ||
|
|
(function () {
|
|
throw TypeError(
|
|
"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
|
|
);
|
|
})()
|
|
);
|
|
}
|
|
},
|
|
9970: function (t, e, n) {
|
|
"use strict";
|
|
n.d(e, {
|
|
Z: function () {
|
|
return s;
|
|
},
|
|
});
|
|
var r = n(8160),
|
|
i = n(45421),
|
|
o = n(27319);
|
|
function s(t) {
|
|
return (
|
|
(function (t) {
|
|
if (Array.isArray(t)) return (0, r.Z)(t);
|
|
})(t) ||
|
|
(0, i.Z)(t) ||
|
|
(0, o.Z)(t) ||
|
|
(function () {
|
|
throw TypeError(
|
|
"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
|
|
);
|
|
})()
|
|
);
|
|
}
|
|
},
|
|
27319: function (t, e, n) {
|
|
"use strict";
|
|
n.d(e, {
|
|
Z: function () {
|
|
return i;
|
|
},
|
|
});
|
|
var r = n(8160);
|
|
function i(t, e) {
|
|
if (t) {
|
|
if ("string" == typeof t) return (0, r.Z)(t, e);
|
|
var n = Object.prototype.toString.call(t).slice(8, -1);
|
|
if (
|
|
("Object" === n && t.constructor && (n = t.constructor.name),
|
|
"Map" === n || "Set" === n)
|
|
)
|
|
return Array.from(n);
|
|
if (
|
|
"Arguments" === n ||
|
|
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
|
|
)
|
|
return (0, r.Z)(t, e);
|
|
}
|
|
}
|
|
},
|
|
96131: function (t, e) {
|
|
"use strict";
|
|
/*! js-cookie v3.0.1 | MIT */ function n(t) {
|
|
for (var e = 1; e < arguments.length; e++) {
|
|
var n = arguments[e];
|
|
for (var r in n) t[r] = n[r];
|
|
}
|
|
return t;
|
|
}
|
|
var r = (function t(e, r) {
|
|
function i(t, i, o) {
|
|
if ("undefined" != typeof document) {
|
|
"number" == typeof (o = n({}, r, o)).expires &&
|
|
(o.expires = new Date(Date.now() + 864e5 * o.expires)),
|
|
o.expires && (o.expires = o.expires.toUTCString()),
|
|
(t = encodeURIComponent(t)
|
|
.replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)
|
|
.replace(/[()]/g, escape));
|
|
var s = "";
|
|
for (var a in o) {
|
|
if (o[a])
|
|
(s += "; " + a), !0 !== o[a] && (s += "=" + o[a].split(";")[0]);
|
|
}
|
|
return (document.cookie = t + "=" + e.write(i, t) + s);
|
|
}
|
|
}
|
|
return Object.create(
|
|
{
|
|
set: i,
|
|
get: function (t) {
|
|
if ("undefined" != typeof document && (!arguments.length || t)) {
|
|
for (
|
|
var n = document.cookie ? document.cookie.split("; ") : [],
|
|
r = {},
|
|
i = 0;
|
|
i < n.length;
|
|
i++
|
|
) {
|
|
var o = n[i].split("="),
|
|
s = o.slice(1).join("=");
|
|
try {
|
|
var a = decodeURIComponent(o[0]);
|
|
if (((r[a] = e.read(s, a)), t === a)) break;
|
|
} catch (c) {}
|
|
}
|
|
return t ? r[t] : r;
|
|
}
|
|
},
|
|
remove: function (t, e) {
|
|
i(t, "", n({}, e, { expires: -1 }));
|
|
},
|
|
withAttributes: function (e) {
|
|
return t(this.converter, n({}, this.attributes, e));
|
|
},
|
|
withConverter: function (e) {
|
|
return t(n({}, this.converter, e), this.attributes);
|
|
},
|
|
},
|
|
{
|
|
attributes: { value: Object.freeze(r) },
|
|
converter: { value: Object.freeze(e) },
|
|
}
|
|
);
|
|
})(
|
|
{
|
|
read: function (t) {
|
|
return (
|
|
'"' === t[0] && (t = t.slice(1, -1)),
|
|
t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent)
|
|
);
|
|
},
|
|
write: function (t) {
|
|
return encodeURIComponent(t).replace(
|
|
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
decodeURIComponent
|
|
);
|
|
},
|
|
},
|
|
{ path: "/" }
|
|
);
|
|
e.Z = r;
|
|
},
|
|
},
|
|
]);
|