Created
March 18, 2019 22:27
-
-
Save 117/d20adcacad37b91b50d445d3e3309553 to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function d(p, e, t) { | |
function a(i, o) { | |
if (!e[i]) { | |
if (!p[i]) { | |
var s = "function" == typeof require && require; | |
if (!o && s) | |
return s(i, !0); | |
if (n) | |
return n(i, !0); | |
var u = new Error("Cannot find module '" + i + "'"); | |
throw u.code = "MODULE_NOT_FOUND", | |
u | |
} | |
var c = e[i] = { | |
exports: {} | |
}; | |
p[i][0].call(c.exports, function(t) { | |
var e = p[i][1][t]; | |
return a(e ? e : t) | |
}, c, c.exports, d, p, e, t) | |
} | |
return e[i].exports | |
} | |
for (var n = "function" == typeof require && require, i = 0; i < t.length; i++) | |
a(t[i]); | |
return a | |
} | |
)({ | |
1: [function() {} | |
, {}], | |
2: [function(e, t, n) { | |
"use strict"; | |
function a(e) { | |
var t = e.length; | |
if (0 < t % 4) | |
throw new Error("Invalid string. Length must be a multiple of 4"); | |
return "=" === e[t - 2] ? 2 : "=" === e[t - 1] ? 1 : 0 | |
} | |
function o(e) { | |
var t = e.length, n, o, s, d, u; | |
d = a(e), | |
u = new c(3 * t / 4 - d), | |
o = 0 < d ? t - 4 : t; | |
var f = 0; | |
for (n = 0; n < o; n += 4) | |
s = p[e.charCodeAt(n)] << 18 | p[e.charCodeAt(n + 1)] << 12 | p[e.charCodeAt(n + 2)] << 6 | p[e.charCodeAt(n + 3)], | |
u[f++] = 255 & s >> 16, | |
u[f++] = 255 & s >> 8, | |
u[f++] = 255 & s; | |
return 2 === d ? (s = p[e.charCodeAt(n)] << 2 | p[e.charCodeAt(n + 1)] >> 4, | |
u[f++] = 255 & s) : 1 === d && (s = p[e.charCodeAt(n)] << 10 | p[e.charCodeAt(n + 1)] << 4 | p[e.charCodeAt(n + 2)] >> 2, | |
u[f++] = 255 & s >> 8, | |
u[f++] = 255 & s), | |
u | |
} | |
function s(e) { | |
return u[63 & e >> 18] + u[63 & e >> 12] + u[63 & e >> 6] + u[63 & e] | |
} | |
function d(e, t, n) { | |
for (var a = [], o = t, d; o < n; o += 3) | |
d = (e[o] << 16) + (e[o + 1] << 8) + e[o + 2], | |
a.push(s(d)); | |
return a.join("") | |
} | |
function l(e) { | |
for (var t = e.length, n = t % 3, a = "", o = [], s = 16383, l = 0, p = t - n, c; l < p; l += s) | |
o.push(d(e, l, l + s > p ? p : l + s)); | |
return 1 === n ? (c = e[t - 1], | |
a += u[c >> 2], | |
a += u[63 & c << 4], | |
a += "==") : 2 === n && (c = (e[t - 2] << 8) + e[t - 1], | |
a += u[c >> 10], | |
a += u[63 & c >> 4], | |
a += u[63 & c << 2], | |
a += "="), | |
o.push(a), | |
o.join("") | |
} | |
n.byteLength = function(e) { | |
return 3 * e.length / 4 - a(e) | |
} | |
, | |
n.toByteArray = o, | |
n.fromByteArray = l; | |
for (var u = [], p = [], c = "undefined" == typeof Uint8Array ? Array : Uint8Array, f = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", h = 0, m = f.length; h < m; ++h) | |
u[h] = f[h], | |
p[f.charCodeAt(h)] = h; | |
p[45] = 62, | |
p[95] = 63 | |
} | |
, {}], | |
3: [function(e, t, n) { | |
arguments[4][1][0].apply(n, arguments) | |
} | |
, { | |
dup: 1 | |
}], | |
4: [function(e, t, n) { | |
"use strict"; | |
function a(e) { | |
if (2147483647 < e) | |
throw new RangeError("Invalid typed array length"); | |
var t = new Uint8Array(e); | |
return t.__proto__ = o.prototype, | |
t | |
} | |
function o(e, t, n) { | |
if ("number" == typeof e) { | |
if ("string" == typeof t) | |
throw new Error("If encoding is specified then the first argument must be a string"); | |
return l(e) | |
} | |
return i(e, t, n) | |
} | |
function i(e, t, n) { | |
if ("number" == typeof e) | |
throw new TypeError("\"value\" argument must not be a number"); | |
return X(e) ? c(e, t, n) : "string" == typeof e ? u(e, t) : f(e) | |
} | |
function s(e) { | |
if ("number" != typeof e) | |
throw new TypeError("\"size\" argument must be a number"); | |
else if (0 > e) | |
throw new RangeError("\"size\" argument must not be negative") | |
} | |
function d(e, t, n) { | |
return s(e), | |
0 >= e ? a(e) : void 0 === t ? a(e) : "string" == typeof n ? a(e).fill(t, n) : a(e).fill(t) | |
} | |
function l(e) { | |
return s(e), | |
a(0 > e ? 0 : 0 | h(e)) | |
} | |
function u(e, t) { | |
if (("string" != typeof t || "" === t) && (t = "utf8"), | |
!o.isEncoding(t)) | |
throw new TypeError("\"encoding\" must be a valid string encoding"); | |
var n = 0 | m(e, t) | |
, i = a(n) | |
, s = i.write(e, t); | |
return s !== n && (i = i.slice(0, s)), | |
i | |
} | |
function p(e) { | |
for (var t = 0 > e.length ? 0 : 0 | h(e.length), n = a(t), o = 0; o < t; o += 1) | |
n[o] = 255 & e[o]; | |
return n | |
} | |
function c(e, t, n) { | |
if (0 > t || e.byteLength < t) | |
throw new RangeError("'offset' is out of bounds"); | |
if (e.byteLength < t + (n || 0)) | |
throw new RangeError("'length' is out of bounds"); | |
var a; | |
return a = void 0 === t && void 0 === n ? new Uint8Array(e) : void 0 === n ? new Uint8Array(e,t) : new Uint8Array(e,t,n), | |
a.__proto__ = o.prototype, | |
a | |
} | |
function f(e) { | |
if (o.isBuffer(e)) { | |
var t = 0 | h(e.length) | |
, n = a(t); | |
return 0 === n.length ? n : (e.copy(n, 0, 0, t), | |
n) | |
} | |
if (e) { | |
if (G(e) || "length"in e) | |
return "number" != typeof e.length || Z(e.length) ? a(0) : p(e); | |
if ("Buffer" === e.type && Array.isArray(e.data)) | |
return p(e.data) | |
} | |
throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.") | |
} | |
function h(e) { | |
/*if (e >= 2147483647) | |
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + 2147483647.toString(16) + " bytes");*/ | |
return 0 | e | |
} | |
function m(e, t) { | |
if (o.isBuffer(e)) | |
return e.length; | |
if (G(e) || X(e)) | |
return e.byteLength; | |
"string" != typeof e && (e = "" + e); | |
var n = e.length; | |
if (0 === n) | |
return 0; | |
for (var a = !1; ; ) | |
switch (t) { | |
case "ascii": | |
case "latin1": | |
case "binary": | |
return n; | |
case "utf8": | |
case "utf-8": | |
case void 0: | |
return j(e).length; | |
case "ucs2": | |
case "ucs-2": | |
case "utf16le": | |
case "utf-16le": | |
return 2 * n; | |
case "hex": | |
return n >>> 1; | |
case "base64": | |
return V(e).length; | |
default: | |
if (a) | |
return j(e).length; | |
t = ("" + t).toLowerCase(), | |
a = !0; | |
} | |
} | |
function y(e, t, n) { | |
var a = !1; | |
if ((void 0 === t || 0 > t) && (t = 0), | |
t > this.length) | |
return ""; | |
if ((void 0 === n || n > this.length) && (n = this.length), | |
0 >= n) | |
return ""; | |
if (n >>>= 0, | |
t >>>= 0, | |
n <= t) | |
return ""; | |
for (e || (e = "utf8"); ; ) | |
switch (e) { | |
case "hex": | |
return I(this, t, n); | |
case "utf8": | |
case "utf-8": | |
return D(this, t, n); | |
case "ascii": | |
return M(this, t, n); | |
case "latin1": | |
case "binary": | |
return R(this, t, n); | |
case "base64": | |
return P(this, t, n); | |
case "ucs2": | |
case "ucs-2": | |
case "utf16le": | |
case "utf-16le": | |
return z(this, t, n); | |
default: | |
if (a) | |
throw new TypeError("Unknown encoding: " + e); | |
e = (e + "").toLowerCase(), | |
a = !0; | |
} | |
} | |
function x(e, t, n) { | |
var a = e[t]; | |
e[t] = e[n], | |
e[n] = a | |
} | |
function _(e, t, n, a, i) { | |
if (0 === e.length) | |
return -1; | |
if ("string" == typeof n ? (a = n, | |
n = 0) : 2147483647 < n ? n = 2147483647 : -2147483648 > n && (n = -2147483648), | |
n = +n, | |
Z(n) && (n = i ? 0 : e.length - 1), | |
0 > n && (n = e.length + n), | |
n >= e.length) { | |
if (i) | |
return -1; | |
n = e.length - 1 | |
} else if (0 > n) | |
if (i) | |
n = 0; | |
else | |
return -1; | |
if ("string" == typeof t && (t = o.from(t, a)), | |
o.isBuffer(t)) | |
return 0 === t.length ? -1 : v(e, t, n, a, i); | |
if ("number" == typeof t) | |
return t &= 255, | |
"function" == typeof Uint8Array.prototype.indexOf ? i ? Uint8Array.prototype.indexOf.call(e, t, n) : Uint8Array.prototype.lastIndexOf.call(e, t, n) : v(e, [t], n, a, i); | |
throw new TypeError("val must be string, number or Buffer") | |
} | |
function v(e, t, n, a, o) { | |
function s(e, t) { | |
return 1 === d ? e[t] : e.readUInt16BE(t * d) | |
} | |
var d = 1 | |
, l = e.length | |
, u = t.length; | |
if (void 0 !== a && (a = (a + "").toLowerCase(), | |
"ucs2" === a || "ucs-2" === a || "utf16le" === a || "utf-16le" === a)) { | |
if (2 > e.length || 2 > t.length) | |
return -1; | |
d = 2, | |
l /= 2, | |
u /= 2, | |
n /= 2 | |
} | |
var p; | |
if (o) { | |
var c = -1; | |
for (p = n; p < l; p++) | |
if (s(e, p) !== s(t, -1 === c ? 0 : p - c)) | |
-1 !== c && (p -= p - c), | |
c = -1; | |
else if (-1 === c && (c = p), | |
p - c + 1 === u) | |
return c * d | |
} else | |
for (n + u > l && (n = l - u), | |
p = n; 0 <= p; p--) { | |
for (var f = !0, h = 0; h < u; h++) | |
if (s(e, p + h) !== s(t, h)) { | |
f = !1; | |
break | |
} | |
if (f) | |
return p | |
} | |
return -1 | |
} | |
function k(e, t, n, a) { | |
n = +n || 0; | |
var o = e.length - n; | |
a ? (a = +a, | |
a > o && (a = o)) : a = o; | |
var s = t.length; | |
if (0 != s % 2) | |
throw new TypeError("Invalid hex string"); | |
a > s / 2 && (a = s / 2); | |
for (var d = 0, l; d < a; ++d) { | |
if (l = parseInt(t.substr(2 * d, 2), 16), | |
Z(l)) | |
return d; | |
e[n + d] = l | |
} | |
return d | |
} | |
function w(e, t, n, a) { | |
return q(j(t, e.length - n), e, n, a) | |
} | |
function S(e, t, n, a) { | |
return q(H(t), e, n, a) | |
} | |
function C(e, t, n, a) { | |
return S(e, t, n, a) | |
} | |
function E(e, t, n, a) { | |
return q(V(t), e, n, a) | |
} | |
function T(e, t, n, a) { | |
return q(Y(t, e.length - n), e, n, a) | |
} | |
function P(e, t, n) { | |
return 0 === t && n === e.length ? J.fromByteArray(e) : J.fromByteArray(e.slice(t, n)) | |
} | |
function D(e, t, n) { | |
n = Q(e.length, n); | |
for (var a = [], o = t; o < n; ) { | |
var s = e[o] | |
, d = null | |
, l = 239 < s ? 4 : 223 < s ? 3 : 191 < s ? 2 : 1; | |
if (o + l <= n) { | |
var u, p, c, f; | |
1 === l ? 128 > s && (d = s) : 2 === l ? (u = e[o + 1], | |
128 == (192 & u) && (f = (31 & s) << 6 | 63 & u, | |
127 < f && (d = f))) : 3 === l ? (u = e[o + 1], | |
p = e[o + 2], | |
128 == (192 & u) && 128 == (192 & p) && (f = (15 & s) << 12 | (63 & u) << 6 | 63 & p, | |
2047 < f && (55296 > f || 57343 < f) && (d = f))) : 4 === l ? (u = e[o + 1], | |
p = e[o + 2], | |
c = e[o + 3], | |
128 == (192 & u) && 128 == (192 & p) && 128 == (192 & c) && (f = (15 & s) << 18 | (63 & u) << 12 | (63 & p) << 6 | 63 & c, | |
65535 < f && 1114112 > f && (d = f))) : void 0 | |
} | |
null === d ? (d = 65533, | |
l = 1) : 65535 < d && (d -= 65536, | |
a.push(55296 | 1023 & d >>> 10), | |
d = 56320 | 1023 & d), | |
a.push(d), | |
o += l | |
} | |
return O(a) | |
} | |
function O(e) { | |
var t = e.length; | |
if (t <= 4096) | |
return $.apply(String, e); | |
for (var n = "", a = 0; a < t; ) | |
n += $.apply(String, e.slice(a, a += 4096)); | |
return n | |
} | |
function M(e, t, n) { | |
var a = ""; | |
n = Q(e.length, n); | |
for (var o = t; o < n; ++o) | |
a += $(127 & e[o]); | |
return a | |
} | |
function R(e, t, n) { | |
var a = ""; | |
n = Q(e.length, n); | |
for (var o = t; o < n; ++o) | |
a += $(e[o]); | |
return a | |
} | |
function I(e, t, n) { | |
var a = e.length; | |
(!t || 0 > t) && (t = 0), | |
(!n || 0 > n || n > a) && (n = a); | |
for (var o = "", s = t; s < n; ++s) | |
o += W(e[s]); | |
return o | |
} | |
function z(e, t, n) { | |
for (var a = e.slice(t, n), o = "", s = 0; s < a.length; s += 2) | |
o += $(a[s] + 256 * a[s + 1]); | |
return o | |
} | |
function A(e, t, n) { | |
if (0 != e % 1 || 0 > e) | |
throw new RangeError("offset is not uint"); | |
if (e + t > n) | |
throw new RangeError("Trying to access beyond buffer length") | |
} | |
function U(e, t, n, a, i, s) { | |
if (!o.isBuffer(e)) | |
throw new TypeError("\"buffer\" argument must be a Buffer instance"); | |
if (t > i || t < s) | |
throw new RangeError("\"value\" argument is out of bounds"); | |
if (n + a > e.length) | |
throw new RangeError("Index out of range") | |
} | |
function L(e, t, n, a) { | |
if (n + a > e.length) | |
throw new RangeError("Index out of range"); | |
if (0 > n) | |
throw new RangeError("Index out of range") | |
} | |
function B(e, t, n, a, o) { | |
return t = +t, | |
n >>>= 0, | |
o || L(e, t, n, 4, 34028234663852886e22, -34028234663852886e22), | |
ee.write(e, t, n, a, 23, 4), | |
n + 4 | |
} | |
function N(e, t, n, a, o) { | |
return t = +t, | |
n >>>= 0, | |
o || L(e, t, n, 8, 17976931348623157e292, -17976931348623157e292), | |
ee.write(e, t, n, a, 52, 8), | |
n + 8 | |
} | |
function F(e) { | |
if (e = e.trim().replace(te, ""), | |
2 > e.length) | |
return ""; | |
for (; 0 != e.length % 4; ) | |
e += "="; | |
return e | |
} | |
function W(e) { | |
return 16 > e ? "0" + e.toString(16) : e.toString(16) | |
} | |
function j(e, t) { | |
t = t || 1 / 0; | |
for (var n = e.length, a = null, o = [], s = 0, d; s < n; ++s) { | |
if (d = e.charCodeAt(s), | |
55295 < d && 57344 > d) { | |
if (!a) { | |
if (56319 < d) { | |
-1 < (t -= 3) && o.push(239, 191, 189); | |
continue | |
} else if (s + 1 === n) { | |
-1 < (t -= 3) && o.push(239, 191, 189); | |
continue | |
} | |
a = d; | |
continue | |
} | |
if (56320 > d) { | |
-1 < (t -= 3) && o.push(239, 191, 189), | |
a = d; | |
continue | |
} | |
d = (a - 55296 << 10 | d - 56320) + 65536 | |
} else | |
a && -1 < (t -= 3) && o.push(239, 191, 189); | |
if (a = null, | |
128 > d) { | |
if (0 > (t -= 1)) | |
break; | |
o.push(d) | |
} else if (2048 > d) { | |
if (0 > (t -= 2)) | |
break; | |
o.push(192 | d >> 6, 128 | 63 & d) | |
} else if (65536 > d) { | |
if (0 > (t -= 3)) | |
break; | |
o.push(224 | d >> 12, 128 | 63 & d >> 6, 128 | 63 & d) | |
} else if (1114112 > d) { | |
if (0 > (t -= 4)) | |
break; | |
o.push(240 | d >> 18, 128 | 63 & d >> 12, 128 | 63 & d >> 6, 128 | 63 & d) | |
} else | |
throw new Error("Invalid code point") | |
} | |
return o | |
} | |
function H(e) { | |
for (var t = [], n = 0; n < e.length; ++n) | |
t.push(255 & e.charCodeAt(n)); | |
return t | |
} | |
function Y(e, t) { | |
for (var n = [], a = 0, o, s, d; a < e.length && !(0 > (t -= 2)); ++a) | |
o = e.charCodeAt(a), | |
s = o >> 8, | |
d = o % 256, | |
n.push(d), | |
n.push(s); | |
return n | |
} | |
function V(e) { | |
return J.toByteArray(F(e)) | |
} | |
function q(e, t, n, a) { | |
for (var o = 0; o < a && !(o + n >= t.length || o >= e.length); ++o) | |
t[o + n] = e[o]; | |
return o | |
} | |
function X(e) { | |
return e instanceof ArrayBuffer || null != e && null != e.constructor && "ArrayBuffer" === e.constructor.name && "number" == typeof e.byteLength | |
} | |
function G(e) { | |
return "function" == typeof ArrayBuffer.isView && ArrayBuffer.isView(e) | |
} | |
function Z(e) { | |
return e !== e | |
} | |
var K = Math.pow | |
, $ = String.fromCharCode | |
, Q = Math.min | |
, J = e("base64-js") | |
, ee = e("ieee754"); | |
n.Buffer = o, | |
n.SlowBuffer = function(e) { | |
return +e != e && (e = 0), | |
o.alloc(+e) | |
} | |
, | |
n.INSPECT_MAX_BYTES = 50; | |
n.kMaxLength = 2147483647, | |
o.TYPED_ARRAY_SUPPORT = function() { | |
try { | |
var e = new Uint8Array(1); | |
return e.__proto__ = { | |
__proto__: Uint8Array.prototype, | |
foo: function() { | |
return 42 | |
} | |
}, | |
42 === e.foo() | |
} catch (t) { | |
return !1 | |
} | |
}(), | |
o.TYPED_ARRAY_SUPPORT || "undefined" == typeof console || "function" != typeof console.error || console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."), | |
"undefined" != typeof Symbol && Symbol.species && o[Symbol.species] === o && Object.defineProperty(o, Symbol.species, { | |
value: null, | |
configurable: !0, | |
enumerable: !1, | |
writable: !1 | |
}), | |
o.poolSize = 8192, | |
o.from = function(e, t, n) { | |
return i(e, t, n) | |
} | |
, | |
o.prototype.__proto__ = Uint8Array.prototype, | |
o.__proto__ = Uint8Array, | |
o.alloc = function(e, t, n) { | |
return d(e, t, n) | |
} | |
, | |
o.allocUnsafe = function(e) { | |
return l(e) | |
} | |
, | |
o.allocUnsafeSlow = function(e) { | |
return l(e) | |
} | |
, | |
o.isBuffer = function(e) { | |
return null != e && !0 === e._isBuffer | |
} | |
, | |
o.compare = function(e, t) { | |
if (!o.isBuffer(e) || !o.isBuffer(t)) | |
throw new TypeError("Arguments must be Buffers"); | |
if (e === t) | |
return 0; | |
for (var n = e.length, a = t.length, s = 0, d = Q(n, a); s < d; ++s) | |
if (e[s] !== t[s]) { | |
n = e[s], | |
a = t[s]; | |
break | |
} | |
return n < a ? -1 : a < n ? 1 : 0 | |
} | |
, | |
o.isEncoding = function(e) { | |
switch ((e + "").toLowerCase()) { | |
case "hex": | |
case "utf8": | |
case "utf-8": | |
case "ascii": | |
case "latin1": | |
case "binary": | |
case "base64": | |
case "ucs2": | |
case "ucs-2": | |
case "utf16le": | |
case "utf-16le": | |
return !0; | |
default: | |
return !1; | |
} | |
} | |
, | |
o.concat = function(e, t) { | |
if (!Array.isArray(e)) | |
throw new TypeError("\"list\" argument must be an Array of Buffers"); | |
if (0 === e.length) | |
return o.alloc(0); | |
var n; | |
if (t === void 0) | |
for (t = 0, | |
n = 0; n < e.length; ++n) | |
t += e[n].length; | |
var a = o.allocUnsafe(t) | |
, s = 0; | |
for (n = 0; n < e.length; ++n) { | |
var d = e[n]; | |
if (!o.isBuffer(d)) | |
throw new TypeError("\"list\" argument must be an Array of Buffers"); | |
d.copy(a, s), | |
s += d.length | |
} | |
return a | |
} | |
, | |
o.byteLength = m, | |
o.prototype._isBuffer = !0, | |
o.prototype.swap16 = function() { | |
var e = this.length; | |
if (0 != e % 2) | |
throw new RangeError("Buffer size must be a multiple of 16-bits"); | |
for (var t = 0; t < e; t += 2) | |
x(this, t, t + 1); | |
return this | |
} | |
, | |
o.prototype.swap32 = function() { | |
var e = this.length; | |
if (0 != e % 4) | |
throw new RangeError("Buffer size must be a multiple of 32-bits"); | |
for (var t = 0; t < e; t += 4) | |
x(this, t, t + 3), | |
x(this, t + 1, t + 2); | |
return this | |
} | |
, | |
o.prototype.swap64 = function() { | |
var e = this.length; | |
if (0 != e % 8) | |
throw new RangeError("Buffer size must be a multiple of 64-bits"); | |
for (var t = 0; t < e; t += 8) | |
x(this, t, t + 7), | |
x(this, t + 1, t + 6), | |
x(this, t + 2, t + 5), | |
x(this, t + 3, t + 4); | |
return this | |
} | |
, | |
o.prototype.toString = function() { | |
var e = this.length; | |
return 0 === e ? "" : 0 === arguments.length ? D(this, 0, e) : y.apply(this, arguments) | |
} | |
, | |
o.prototype.equals = function(e) { | |
if (!o.isBuffer(e)) | |
throw new TypeError("Argument must be a Buffer"); | |
return this === e || 0 === o.compare(this, e) | |
} | |
, | |
o.prototype.inspect = function() { | |
var e = "" | |
, t = n.INSPECT_MAX_BYTES; | |
return 0 < this.length && (e = this.toString("hex", 0, t).match(/.{2}/g).join(" "), | |
this.length > t && (e += " ... ")), | |
"<Buffer " + e + ">" | |
} | |
, | |
o.prototype.compare = function(e, t, n, a, s) { | |
if (!o.isBuffer(e)) | |
throw new TypeError("Argument must be a Buffer"); | |
if (void 0 === t && (t = 0), | |
void 0 === n && (n = e ? e.length : 0), | |
void 0 === a && (a = 0), | |
void 0 === s && (s = this.length), | |
0 > t || n > e.length || 0 > a || s > this.length) | |
throw new RangeError("out of range index"); | |
if (a >= s && t >= n) | |
return 0; | |
if (a >= s) | |
return -1; | |
if (t >= n) | |
return 1; | |
if (t >>>= 0, | |
n >>>= 0, | |
a >>>= 0, | |
s >>>= 0, | |
this === e) | |
return 0; | |
for (var d = s - a, l = n - t, u = Q(d, l), p = this.slice(a, s), c = e.slice(t, n), f = 0; f < u; ++f) | |
if (p[f] !== c[f]) { | |
d = p[f], | |
l = c[f]; | |
break | |
} | |
return d < l ? -1 : l < d ? 1 : 0 | |
} | |
, | |
o.prototype.includes = function(e, t, n) { | |
return -1 !== this.indexOf(e, t, n) | |
} | |
, | |
o.prototype.indexOf = function(e, t, n) { | |
return _(this, e, t, n, !0) | |
} | |
, | |
o.prototype.lastIndexOf = function(e, t, n) { | |
return _(this, e, t, n, !1) | |
} | |
, | |
o.prototype.write = function(e, t, n, a) { | |
if (void 0 === t) | |
a = "utf8", | |
n = this.length, | |
t = 0; | |
else if (void 0 === n && "string" == typeof t) | |
a = t, | |
n = this.length, | |
t = 0; | |
else if (isFinite(t)) | |
t >>>= 0, | |
isFinite(n) ? (n >>>= 0, | |
void 0 === a && (a = "utf8")) : (a = n, | |
n = void 0); | |
else | |
throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported"); | |
var o = this.length - t; | |
if ((void 0 === n || n > o) && (n = o), | |
0 < e.length && (0 > n || 0 > t) || t > this.length) | |
throw new RangeError("Attempt to write outside buffer bounds"); | |
a || (a = "utf8"); | |
for (var i = !1; ; ) | |
switch (a) { | |
case "hex": | |
return k(this, e, t, n); | |
case "utf8": | |
case "utf-8": | |
return w(this, e, t, n); | |
case "ascii": | |
return S(this, e, t, n); | |
case "latin1": | |
case "binary": | |
return C(this, e, t, n); | |
case "base64": | |
return E(this, e, t, n); | |
case "ucs2": | |
case "ucs-2": | |
case "utf16le": | |
case "utf-16le": | |
return T(this, e, t, n); | |
default: | |
if (i) | |
throw new TypeError("Unknown encoding: " + a); | |
a = ("" + a).toLowerCase(), | |
i = !0; | |
} | |
} | |
, | |
o.prototype.toJSON = function() { | |
return { | |
type: "Buffer", | |
data: Array.prototype.slice.call(this._arr || this, 0) | |
} | |
} | |
; | |
o.prototype.slice = function(e, t) { | |
var n = this.length; | |
e = ~~e, | |
t = void 0 === t ? n : ~~t, | |
0 > e ? (e += n, | |
0 > e && (e = 0)) : e > n && (e = n), | |
0 > t ? (t += n, | |
0 > t && (t = 0)) : t > n && (t = n), | |
t < e && (t = e); | |
var a = this.subarray(e, t); | |
return a.__proto__ = o.prototype, | |
a | |
} | |
, | |
o.prototype.readUIntLE = function(e, t, n) { | |
e >>>= 0, | |
t >>>= 0, | |
n || A(e, t, this.length); | |
for (var a = this[e], o = 1, s = 0; ++s < t && (o *= 256); ) | |
a += this[e + s] * o; | |
return a | |
} | |
, | |
o.prototype.readUIntBE = function(e, t, n) { | |
e >>>= 0, | |
t >>>= 0, | |
n || A(e, t, this.length); | |
for (var a = this[e + --t], o = 1; 0 < t && (o *= 256); ) | |
a += this[e + --t] * o; | |
return a | |
} | |
, | |
o.prototype.readUInt8 = function(e, t) { | |
return e >>>= 0, | |
t || A(e, 1, this.length), | |
this[e] | |
} | |
, | |
o.prototype.readUInt16LE = function(e, t) { | |
return e >>>= 0, | |
t || A(e, 2, this.length), | |
this[e] | this[e + 1] << 8 | |
} | |
, | |
o.prototype.readUInt16BE = function(e, t) { | |
return e >>>= 0, | |
t || A(e, 2, this.length), | |
this[e] << 8 | this[e + 1] | |
} | |
, | |
o.prototype.readUInt32LE = function(e, t) { | |
return e >>>= 0, | |
t || A(e, 4, this.length), | |
(this[e] | this[e + 1] << 8 | this[e + 2] << 16) + 16777216 * this[e + 3] | |
} | |
, | |
o.prototype.readUInt32BE = function(e, t) { | |
return e >>>= 0, | |
t || A(e, 4, this.length), | |
16777216 * this[e] + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]) | |
} | |
, | |
o.prototype.readIntLE = function(e, t, n) { | |
e >>>= 0, | |
t >>>= 0, | |
n || A(e, t, this.length); | |
for (var a = this[e], o = 1, s = 0; ++s < t && (o *= 256); ) | |
a += this[e + s] * o; | |
return o *= 128, | |
a >= o && (a -= K(2, 8 * t)), | |
a | |
} | |
, | |
o.prototype.readIntBE = function(e, t, n) { | |
e >>>= 0, | |
t >>>= 0, | |
n || A(e, t, this.length); | |
for (var a = t, o = 1, s = this[e + --a]; 0 < a && (o *= 256); ) | |
s += this[e + --a] * o; | |
return o *= 128, | |
s >= o && (s -= K(2, 8 * t)), | |
s | |
} | |
, | |
o.prototype.readInt8 = function(e, t) { | |
return e >>>= 0, | |
t || A(e, 1, this.length), | |
128 & this[e] ? -1 * (255 - this[e] + 1) : this[e] | |
} | |
, | |
o.prototype.readInt16LE = function(e, t) { | |
e >>>= 0, | |
t || A(e, 2, this.length); | |
var n = this[e] | this[e + 1] << 8; | |
return 32768 & n ? 4294901760 | n : n | |
} | |
, | |
o.prototype.readInt16BE = function(e, t) { | |
e >>>= 0, | |
t || A(e, 2, this.length); | |
var n = this[e + 1] | this[e] << 8; | |
return 32768 & n ? 4294901760 | n : n | |
} | |
, | |
o.prototype.readInt32LE = function(e, t) { | |
return e >>>= 0, | |
t || A(e, 4, this.length), | |
this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24 | |
} | |
, | |
o.prototype.readInt32BE = function(e, t) { | |
return e >>>= 0, | |
t || A(e, 4, this.length), | |
this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3] | |
} | |
, | |
o.prototype.readFloatLE = function(e, t) { | |
return e >>>= 0, | |
t || A(e, 4, this.length), | |
ee.read(this, e, !0, 23, 4) | |
} | |
, | |
o.prototype.readFloatBE = function(e, t) { | |
return e >>>= 0, | |
t || A(e, 4, this.length), | |
ee.read(this, e, !1, 23, 4) | |
} | |
, | |
o.prototype.readDoubleLE = function(e, t) { | |
return e >>>= 0, | |
t || A(e, 8, this.length), | |
ee.read(this, e, !0, 52, 8) | |
} | |
, | |
o.prototype.readDoubleBE = function(e, t) { | |
return e >>>= 0, | |
t || A(e, 8, this.length), | |
ee.read(this, e, !1, 52, 8) | |
} | |
, | |
o.prototype.writeUIntLE = function(e, t, n, a) { | |
if (e = +e, | |
t >>>= 0, | |
n >>>= 0, | |
!a) { | |
var o = K(2, 8 * n) - 1; | |
U(this, e, t, n, o, 0) | |
} | |
var s = 1 | |
, d = 0; | |
for (this[t] = 255 & e; ++d < n && (s *= 256); ) | |
this[t + d] = 255 & e / s; | |
return t + n | |
} | |
, | |
o.prototype.writeUIntBE = function(e, t, n, a) { | |
if (e = +e, | |
t >>>= 0, | |
n >>>= 0, | |
!a) { | |
var o = K(2, 8 * n) - 1; | |
U(this, e, t, n, o, 0) | |
} | |
var s = n - 1 | |
, d = 1; | |
for (this[t + s] = 255 & e; 0 <= --s && (d *= 256); ) | |
this[t + s] = 255 & e / d; | |
return t + n | |
} | |
, | |
o.prototype.writeUInt8 = function(e, t, n) { | |
return e = +e, | |
t >>>= 0, | |
n || U(this, e, t, 1, 255, 0), | |
this[t] = 255 & e, | |
t + 1 | |
} | |
, | |
o.prototype.writeUInt16LE = function(e, t, n) { | |
return e = +e, | |
t >>>= 0, | |
n || U(this, e, t, 2, 65535, 0), | |
this[t] = 255 & e, | |
this[t + 1] = e >>> 8, | |
t + 2 | |
} | |
, | |
o.prototype.writeUInt16BE = function(e, t, n) { | |
return e = +e, | |
t >>>= 0, | |
n || U(this, e, t, 2, 65535, 0), | |
this[t] = e >>> 8, | |
this[t + 1] = 255 & e, | |
t + 2 | |
} | |
, | |
o.prototype.writeUInt32LE = function(e, t, n) { | |
return e = +e, | |
t >>>= 0, | |
n || U(this, e, t, 4, 4294967295, 0), | |
this[t + 3] = e >>> 24, | |
this[t + 2] = e >>> 16, | |
this[t + 1] = e >>> 8, | |
this[t] = 255 & e, | |
t + 4 | |
} | |
, | |
o.prototype.writeUInt32BE = function(e, t, n) { | |
return e = +e, | |
t >>>= 0, | |
n || U(this, e, t, 4, 4294967295, 0), | |
this[t] = e >>> 24, | |
this[t + 1] = e >>> 16, | |
this[t + 2] = e >>> 8, | |
this[t + 3] = 255 & e, | |
t + 4 | |
} | |
, | |
o.prototype.writeIntLE = function(e, t, n, a) { | |
if (e = +e, | |
t >>>= 0, | |
!a) { | |
var o = K(2, 8 * n - 1); | |
U(this, e, t, n, o - 1, -o) | |
} | |
var s = 0 | |
, d = 1 | |
, l = 0; | |
for (this[t] = 255 & e; ++s < n && (d *= 256); ) | |
0 > e && 0 === l && 0 !== this[t + s - 1] && (l = 1), | |
this[t + s] = 255 & (e / d >> 0) - l; | |
return t + n | |
} | |
, | |
o.prototype.writeIntBE = function(e, t, n, a) { | |
if (e = +e, | |
t >>>= 0, | |
!a) { | |
var o = K(2, 8 * n - 1); | |
U(this, e, t, n, o - 1, -o) | |
} | |
var s = n - 1 | |
, d = 1 | |
, l = 0; | |
for (this[t + s] = 255 & e; 0 <= --s && (d *= 256); ) | |
0 > e && 0 === l && 0 !== this[t + s + 1] && (l = 1), | |
this[t + s] = 255 & (e / d >> 0) - l; | |
return t + n | |
} | |
, | |
o.prototype.writeInt8 = function(e, t, n) { | |
return e = +e, | |
t >>>= 0, | |
n || U(this, e, t, 1, 127, -128), | |
0 > e && (e = 255 + e + 1), | |
this[t] = 255 & e, | |
t + 1 | |
} | |
, | |
o.prototype.writeInt16LE = function(e, t, n) { | |
return e = +e, | |
t >>>= 0, | |
n || U(this, e, t, 2, 32767, -32768), | |
this[t] = 255 & e, | |
this[t + 1] = e >>> 8, | |
t + 2 | |
} | |
, | |
o.prototype.writeInt16BE = function(e, t, n) { | |
return e = +e, | |
t >>>= 0, | |
n || U(this, e, t, 2, 32767, -32768), | |
this[t] = e >>> 8, | |
this[t + 1] = 255 & e, | |
t + 2 | |
} | |
, | |
o.prototype.writeInt32LE = function(e, t, n) { | |
return e = +e, | |
t >>>= 0, | |
n || U(this, e, t, 4, 2147483647, -2147483648), | |
this[t] = 255 & e, | |
this[t + 1] = e >>> 8, | |
this[t + 2] = e >>> 16, | |
this[t + 3] = e >>> 24, | |
t + 4 | |
} | |
, | |
o.prototype.writeInt32BE = function(e, t, n) { | |
return e = +e, | |
t >>>= 0, | |
n || U(this, e, t, 4, 2147483647, -2147483648), | |
0 > e && (e = 4294967295 + e + 1), | |
this[t] = e >>> 24, | |
this[t + 1] = e >>> 16, | |
this[t + 2] = e >>> 8, | |
this[t + 3] = 255 & e, | |
t + 4 | |
} | |
, | |
o.prototype.writeFloatLE = function(e, t, n) { | |
return B(this, e, t, !0, n) | |
} | |
, | |
o.prototype.writeFloatBE = function(e, t, n) { | |
return B(this, e, t, !1, n) | |
} | |
, | |
o.prototype.writeDoubleLE = function(e, t, n) { | |
return N(this, e, t, !0, n) | |
} | |
, | |
o.prototype.writeDoubleBE = function(e, t, n) { | |
return N(this, e, t, !1, n) | |
} | |
, | |
o.prototype.copy = function(e, t, n, a) { | |
if (n || (n = 0), | |
a || 0 === a || (a = this.length), | |
t >= e.length && (t = e.length), | |
t || (t = 0), | |
0 < a && a < n && (a = n), | |
a === n) | |
return 0; | |
if (0 === e.length || 0 === this.length) | |
return 0; | |
if (0 > t) | |
throw new RangeError("targetStart out of bounds"); | |
if (0 > n || n >= this.length) | |
throw new RangeError("sourceStart out of bounds"); | |
if (0 > a) | |
throw new RangeError("sourceEnd out of bounds"); | |
a > this.length && (a = this.length), | |
e.length - t < a - n && (a = e.length - t + n); | |
var o = a - n, s; | |
if (this === e && n < t && t < a) | |
for (s = o - 1; 0 <= s; --s) | |
e[s + t] = this[s + n]; | |
else if (1e3 > o) | |
for (s = 0; s < o; ++s) | |
e[s + t] = this[s + n]; | |
else | |
Uint8Array.prototype.set.call(e, this.subarray(n, n + o), t); | |
return o | |
} | |
, | |
o.prototype.fill = function(e, t, n, a) { | |
if ("string" == typeof e) { | |
if ("string" == typeof t ? (a = t, | |
t = 0, | |
n = this.length) : "string" == typeof n && (a = n, | |
n = this.length), | |
1 === e.length) { | |
var s = e.charCodeAt(0); | |
256 > s && (e = s) | |
} | |
if (void 0 !== a && "string" != typeof a) | |
throw new TypeError("encoding must be a string"); | |
if ("string" == typeof a && !o.isEncoding(a)) | |
throw new TypeError("Unknown encoding: " + a) | |
} else | |
"number" == typeof e && (e &= 255); | |
if (0 > t || this.length < t || this.length < n) | |
throw new RangeError("Out of range index"); | |
if (n <= t) | |
return this; | |
t >>>= 0, | |
n = n === void 0 ? this.length : n >>> 0, | |
e || (e = 0); | |
var d; | |
if ("number" == typeof e) | |
for (d = t; d < n; ++d) | |
this[d] = e; | |
else { | |
var l = o.isBuffer(e) ? e : new o(e,a) | |
, u = l.length; | |
for (d = 0; d < n - t; ++d) | |
this[d + t] = l[d % u] | |
} | |
return this | |
} | |
; | |
var te = /[^+/0-9A-Za-z-_]/g | |
} | |
, { | |
"base64-js": 2, | |
ieee754: 7 | |
}], | |
5: [function(e, t, n) { | |
(function(e) { | |
function t(e) { | |
return Object.prototype.toString.call(e) | |
} | |
n.isArray = function(e) { | |
return Array.isArray ? Array.isArray(e) : "[object Array]" === t(e) | |
} | |
, | |
n.isBoolean = function(e) { | |
return "boolean" == typeof e | |
} | |
, | |
n.isNull = function(e) { | |
return null === e | |
} | |
, | |
n.isNullOrUndefined = function(e) { | |
return null == e | |
} | |
, | |
n.isNumber = function(e) { | |
return "number" == typeof e | |
} | |
, | |
n.isString = function(e) { | |
return "string" == typeof e | |
} | |
, | |
n.isSymbol = function(e) { | |
return "symbol" == typeof e | |
} | |
, | |
n.isUndefined = function(e) { | |
return void 0 === e | |
} | |
, | |
n.isRegExp = function(e) { | |
return "[object RegExp]" === t(e) | |
} | |
, | |
n.isObject = function(e) { | |
return "object" == typeof e && null !== e | |
} | |
, | |
n.isDate = function(e) { | |
return "[object Date]" === t(e) | |
} | |
, | |
n.isError = function(n) { | |
return "[object Error]" === t(n) || n instanceof Error | |
} | |
, | |
n.isFunction = function(e) { | |
return "function" == typeof e | |
} | |
, | |
n.isPrimitive = function(e) { | |
return null === e || "boolean" == typeof e || "number" == typeof e || "string" == typeof e || "symbol" == typeof e || "undefined" == typeof e | |
} | |
, | |
n.isBuffer = e.isBuffer | |
} | |
).call(this, { | |
isBuffer: e("../../is-buffer/index.js") | |
}) | |
} | |
, { | |
"../../is-buffer/index.js": 9 | |
}], | |
6: [function(e, t) { | |
function n() { | |
this._events = this._events || {}, | |
this._maxListeners = this._maxListeners || void 0 | |
} | |
function a(e) { | |
return "function" == typeof e | |
} | |
function o(e) { | |
return "number" == typeof e | |
} | |
function s(e) { | |
return "object" == typeof e && null !== e | |
} | |
function d(e) { | |
return void 0 === e | |
} | |
t.exports = n, | |
n.EventEmitter = n, | |
n.prototype._events = void 0, | |
n.prototype._maxListeners = void 0, | |
n.defaultMaxListeners = 10, | |
n.prototype.setMaxListeners = function(e) { | |
if (!o(e) || 0 > e || isNaN(e)) | |
throw TypeError("n must be a positive number"); | |
return this._maxListeners = e, | |
this | |
} | |
, | |
n.prototype.emit = function(e) { | |
var t, n, o, l, u, p; | |
if (this._events || (this._events = {}), | |
"error" === e && (!this._events.error || s(this._events.error) && !this._events.error.length)) | |
if (t = arguments[1], | |
t instanceof Error) | |
throw t; | |
else { | |
var c = new Error("Uncaught, unspecified \"error\" event. (" + t + ")"); | |
throw c.context = t, | |
c | |
} | |
if (n = this._events[e], | |
d(n)) | |
return !1; | |
if (a(n)) | |
switch (arguments.length) { | |
case 1: | |
n.call(this); | |
break; | |
case 2: | |
n.call(this, arguments[1]); | |
break; | |
case 3: | |
n.call(this, arguments[1], arguments[2]); | |
break; | |
default: | |
l = Array.prototype.slice.call(arguments, 1), | |
n.apply(this, l); | |
} | |
else if (s(n)) | |
for (l = Array.prototype.slice.call(arguments, 1), | |
p = n.slice(), | |
o = p.length, | |
u = 0; u < o; u++) | |
p[u].apply(this, l); | |
return !0 | |
} | |
, | |
n.prototype.addListener = function(e, t) { | |
var o; | |
if (!a(t)) | |
throw TypeError("listener must be a function"); | |
return this._events || (this._events = {}), | |
this._events.newListener && this.emit("newListener", e, a(t.listener) ? t.listener : t), | |
this._events[e] ? s(this._events[e]) ? this._events[e].push(t) : this._events[e] = [this._events[e], t] : this._events[e] = t, | |
s(this._events[e]) && !this._events[e].warned && (o = d(this._maxListeners) ? n.defaultMaxListeners : this._maxListeners, | |
o && 0 < o && this._events[e].length > o && (this._events[e].warned = !0, | |
console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.", this._events[e].length), | |
"function" == typeof console.trace && console.trace())), | |
this | |
} | |
, | |
n.prototype.on = n.prototype.addListener, | |
n.prototype.once = function(e, t) { | |
function n() { | |
this.removeListener(e, n), | |
o || (o = !0, | |
t.apply(this, arguments)) | |
} | |
if (!a(t)) | |
throw TypeError("listener must be a function"); | |
var o = !1; | |
return n.listener = t, | |
this.on(e, n), | |
this | |
} | |
, | |
n.prototype.removeListener = function(e, t) { | |
var n, o, d, l; | |
if (!a(t)) | |
throw TypeError("listener must be a function"); | |
if (!this._events || !this._events[e]) | |
return this; | |
if (n = this._events[e], | |
d = n.length, | |
o = -1, | |
n === t || a(n.listener) && n.listener === t) | |
delete this._events[e], | |
this._events.removeListener && this.emit("removeListener", e, t); | |
else if (s(n)) { | |
for (l = d; 0 < l--; ) | |
if (n[l] === t || n[l].listener && n[l].listener === t) { | |
o = l; | |
break | |
} | |
if (0 > o) | |
return this; | |
1 === n.length ? (n.length = 0, | |
delete this._events[e]) : n.splice(o, 1), | |
this._events.removeListener && this.emit("removeListener", e, t) | |
} | |
return this | |
} | |
, | |
n.prototype.removeAllListeners = function(e) { | |
var t, n; | |
if (!this._events) | |
return this; | |
if (!this._events.removeListener) | |
return 0 === arguments.length ? this._events = {} : this._events[e] && delete this._events[e], | |
this; | |
if (0 === arguments.length) { | |
for (t in this._events) | |
"removeListener" !== t && this.removeAllListeners(t); | |
return this.removeAllListeners("removeListener"), | |
this._events = {}, | |
this | |
} | |
if (n = this._events[e], | |
a(n)) | |
this.removeListener(e, n); | |
else if (n) | |
for (; n.length; ) | |
this.removeListener(e, n[n.length - 1]); | |
return delete this._events[e], | |
this | |
} | |
, | |
n.prototype.listeners = function(e) { | |
var t; | |
return t = this._events && this._events[e] ? a(this._events[e]) ? [this._events[e]] : this._events[e].slice() : [], | |
t | |
} | |
, | |
n.prototype.listenerCount = function(e) { | |
if (this._events) { | |
var t = this._events[e]; | |
if (a(t)) | |
return 1; | |
if (t) | |
return t.length | |
} | |
return 0 | |
} | |
, | |
n.listenerCount = function(e, t) { | |
return e.listenerCount(t) | |
} | |
} | |
, {}], | |
7: [function(e, t, n) { | |
var a = Math.pow; | |
n.read = function(t, n, o, l, u) { | |
var p = 8 * u - l - 1, c = (1 << p) - 1, f = c >> 1, h = -7, y = o ? u - 1 : 0, x = o ? -1 : 1, d = t[n + y], _, v; | |
for (y += x, | |
_ = d & (1 << -h) - 1, | |
d >>= -h, | |
h += p; 0 < h; _ = 256 * _ + t[n + y], | |
y += x, | |
h -= 8) | |
; | |
for (v = _ & (1 << -h) - 1, | |
_ >>= -h, | |
h += l; 0 < h; v = 256 * v + t[n + y], | |
y += x, | |
h -= 8) | |
; | |
if (0 === _) | |
_ = 1 - f; | |
else { | |
if (_ === c) | |
return v ? NaN : (d ? -1 : 1) * (1 / 0); | |
v += a(2, l), | |
_ -= f | |
} | |
return (d ? -1 : 1) * v * a(2, _ - l) | |
} | |
, | |
n.write = function(t, n, o, l, u, p) { | |
var f = 8 * p - u - 1, h = (1 << f) - 1, y = h >> 1, x = 23 === u ? 5.960464477539063e-8 - 6.617444900424222e-24 : 0, _ = l ? 0 : p - 1, v = l ? 1 : -1, d = 0 > n || 0 === n && 0 > 1 / n ? 1 : 0, s, k, w; | |
for (n = Math.abs(n), | |
isNaN(n) || n === 1 / 0 ? (k = isNaN(n) ? 1 : 0, | |
s = h) : (s = Math.floor(Math.log(n) / Math.LN2), | |
1 > n * (w = a(2, -s)) && (s--, | |
w *= 2), | |
n += 1 <= s + y ? x / w : x * a(2, 1 - y), | |
2 <= n * w && (s++, | |
w /= 2), | |
s + y >= h ? (k = 0, | |
s = h) : 1 <= s + y ? (k = (n * w - 1) * a(2, u), | |
s += y) : (k = n * a(2, y - 1) * a(2, u), | |
s = 0)); 8 <= u; t[o + _] = 255 & k, | |
_ += v, | |
k /= 256, | |
u -= 8) | |
; | |
for (s = s << u | k, | |
f += u; 0 < f; t[o + _] = 255 & s, | |
_ += v, | |
s /= 256, | |
f -= 8) | |
; | |
t[o + _ - v] |= 128 * d | |
} | |
} | |
, {}], | |
8: [function(e, t) { | |
t.exports = "function" == typeof Object.create ? function(e, t) { | |
e.super_ = t, | |
e.prototype = Object.create(t.prototype, { | |
constructor: { | |
value: e, | |
enumerable: !1, | |
writable: !0, | |
configurable: !0 | |
} | |
}) | |
} | |
: function(e, t) { | |
e.super_ = t; | |
var n = function() {}; | |
n.prototype = t.prototype, | |
e.prototype = new n, | |
e.prototype.constructor = e | |
} | |
} | |
, {}], | |
9: [function(e, t) { | |
function n(e) { | |
return !!e.constructor && "function" == typeof e.constructor.isBuffer && e.constructor.isBuffer(e) | |
} | |
function a(e) { | |
return "function" == typeof e.readFloatLE && "function" == typeof e.slice && n(e.slice(0, 0)) | |
} | |
t.exports = function(e) { | |
return null != e && (n(e) || a(e) || !!e._isBuffer) | |
} | |
} | |
, {}], | |
10: [function(e, t) { | |
var n = {}.toString; | |
t.exports = Array.isArray || function(e) { | |
return "[object Array]" == n.call(e) | |
} | |
} | |
, {}], | |
11: [function(e, t) { | |
(function(e) { | |
"use strict"; | |
t.exports = e.version && 0 !== e.version.indexOf("v0.") && (0 !== e.version.indexOf("v1.") || 0 === e.version.indexOf("v1.8.")) ? e.nextTick : function(t, n, a, o) { | |
if ("function" != typeof t) | |
throw new TypeError("\"callback\" argument must be a function"); | |
var s = arguments.length, d, l; | |
switch (s) { | |
case 0: | |
case 1: | |
return e.nextTick(t); | |
case 2: | |
return e.nextTick(function() { | |
t.call(null, n) | |
}); | |
case 3: | |
return e.nextTick(function() { | |
t.call(null, n, a) | |
}); | |
case 4: | |
return e.nextTick(function() { | |
t.call(null, n, a, o) | |
}); | |
default: | |
for (d = Array(s - 1), | |
l = 0; l < d.length; ) | |
d[l++] = arguments[l]; | |
return e.nextTick(function() { | |
t.apply(null, d) | |
}); | |
} | |
} | |
} | |
).call(this, e("_process")) | |
} | |
, { | |
_process: 12 | |
}], | |
12: [function(e, t) { | |
function n() { | |
throw new Error("setTimeout has not been defined") | |
} | |
function a() { | |
throw new Error("clearTimeout has not been defined") | |
} | |
function o(t) { | |
if (c === setTimeout) | |
return setTimeout(t, 0); | |
if ((c === n || !c) && setTimeout) | |
return c = setTimeout, | |
setTimeout(t, 0); | |
try { | |
return c(t, 0) | |
} catch (n) { | |
try { | |
return c.call(null, t, 0) | |
} catch (n) { | |
return c.call(this, t, 0) | |
} | |
} | |
} | |
function i(t) { | |
if (f === clearTimeout) | |
return clearTimeout(t); | |
if ((f === a || !f) && clearTimeout) | |
return f = clearTimeout, | |
clearTimeout(t); | |
try { | |
return f(t) | |
} catch (n) { | |
try { | |
return f.call(null, t) | |
} catch (n) { | |
return f.call(this, t) | |
} | |
} | |
} | |
function s() { | |
m && x && (m = !1, | |
x.length ? h = x.concat(h) : y = -1, | |
h.length && d()) | |
} | |
function d() { | |
if (!m) { | |
var e = o(s); | |
m = !0; | |
for (var t = h.length; t; ) { | |
for (x = h, | |
h = []; ++y < t; ) | |
x && x[y].run(); | |
y = -1, | |
t = h.length | |
} | |
x = null, | |
m = !1, | |
i(e) | |
} | |
} | |
function l(e, t) { | |
this.fun = e, | |
this.array = t | |
} | |
function u() {} | |
var p = t.exports = {}, c, f; | |
(function() { | |
try { | |
c = "function" == typeof setTimeout ? setTimeout : n | |
} catch (t) { | |
c = n | |
} | |
try { | |
f = "function" == typeof clearTimeout ? clearTimeout : a | |
} catch (t) { | |
f = a | |
} | |
} | |
)(); | |
var h = [], m = !1, y = -1, x; | |
p.nextTick = function(e) { | |
var t = Array(arguments.length - 1); | |
if (1 < arguments.length) | |
for (var n = 1; n < arguments.length; n++) | |
t[n - 1] = arguments[n]; | |
h.push(new l(e,t)), | |
1 !== h.length || m || o(d) | |
} | |
, | |
l.prototype.run = function() { | |
this.fun.apply(null, this.array) | |
} | |
, | |
p.title = "browser", | |
p.browser = !0, | |
p.env = {}, | |
p.argv = [], | |
p.version = "", | |
p.versions = {}, | |
p.on = u, | |
p.addListener = u, | |
p.once = u, | |
p.off = u, | |
p.removeListener = u, | |
p.removeAllListeners = u, | |
p.emit = u, | |
p.prependListener = u, | |
p.prependOnceListener = u, | |
p.listeners = function() { | |
return [] | |
} | |
, | |
p.binding = function() { | |
throw new Error("process.binding is not supported") | |
} | |
, | |
p.cwd = function() { | |
return "/" | |
} | |
, | |
p.chdir = function() { | |
throw new Error("process.chdir is not supported") | |
} | |
, | |
p.umask = function() { | |
return 0 | |
} | |
} | |
, {}], | |
13: [function(e, t) { | |
t.exports = e("./lib/_stream_duplex.js") | |
} | |
, { | |
"./lib/_stream_duplex.js": 14 | |
}], | |
14: [function(e, t) { | |
"use strict"; | |
function n(e) { | |
return this instanceof n ? void (l.call(this, e), | |
u.call(this, e), | |
e && !1 === e.readable && (this.readable = !1), | |
e && !1 === e.writable && (this.writable = !1), | |
this.allowHalfOpen = !0, | |
e && !1 === e.allowHalfOpen && (this.allowHalfOpen = !1), | |
this.once("end", a)) : new n(e) | |
} | |
function a() { | |
this.allowHalfOpen || this._writableState.ended || i(o, this) | |
} | |
function o(e) { | |
e.end() | |
} | |
var i = e("process-nextick-args") | |
, s = Object.keys || function(e) { | |
var t = []; | |
for (var n in e) | |
t.push(n); | |
return t | |
} | |
; | |
t.exports = n; | |
var d = e("core-util-is"); | |
d.inherits = e("inherits"); | |
var l = e("./_stream_readable") | |
, u = e("./_stream_writable"); | |
d.inherits(n, l); | |
for (var p = s(u.prototype), c = 0, f; c < p.length; c++) | |
f = p[c], | |
n.prototype[f] || (n.prototype[f] = u.prototype[f]); | |
Object.defineProperty(n.prototype, "destroyed", { | |
get: function() { | |
return void 0 !== this._readableState && void 0 !== this._writableState && this._readableState.destroyed && this._writableState.destroyed | |
}, | |
set: function(e) { | |
void 0 === this._readableState || void 0 === this._writableState || (this._readableState.destroyed = e, | |
this._writableState.destroyed = e) | |
} | |
}), | |
n.prototype._destroy = function(e, t) { | |
this.push(null), | |
this.end(), | |
i(t, e) | |
} | |
} | |
, { | |
"./_stream_readable": 16, | |
"./_stream_writable": 18, | |
"core-util-is": 5, | |
inherits: 8, | |
"process-nextick-args": 11 | |
}], | |
15: [function(e, t) { | |
"use strict"; | |
function n(e) { | |
return this instanceof n ? void a.call(this, e) : new n(e) | |
} | |
t.exports = n; | |
var a = e("./_stream_transform") | |
, o = e("core-util-is"); | |
o.inherits = e("inherits"), | |
o.inherits(n, a), | |
n.prototype._transform = function(e, t, n) { | |
n(null, e) | |
} | |
} | |
, { | |
"./_stream_transform": 17, | |
"core-util-is": 5, | |
inherits: 8 | |
}], | |
16: [function(e, t) { | |
(function(n, a) { | |
"use strict"; | |
function o(e) { | |
return W.from(e) | |
} | |
function i(e) { | |
return W.isBuffer(e) || e instanceof j | |
} | |
function s(e, t, n) { | |
return "function" == typeof e.prependListener ? e.prependListener(t, n) : void (e._events && e._events[t] ? U(e._events[t]) ? e._events[t].unshift(n) : e._events[t] = [n, e._events[t]] : e.on(t, n)) | |
} | |
function d(t, n) { | |
L = L || e("./_stream_duplex"), | |
t = t || {}, | |
this.objectMode = !!t.objectMode, | |
n instanceof L && (this.objectMode = this.objectMode || !!t.readableObjectMode); | |
var a = t.highWaterMark | |
, o = this.objectMode ? 16 : 16384; | |
this.highWaterMark = a || 0 === a ? a : o, | |
this.highWaterMark = Math.floor(this.highWaterMark), | |
this.buffer = new q, | |
this.length = 0, | |
this.pipes = null, | |
this.pipesCount = 0, | |
this.flowing = null, | |
this.ended = !1, | |
this.endEmitted = !1, | |
this.reading = !1, | |
this.sync = !0, | |
this.needReadable = !1, | |
this.emittedReadable = !1, | |
this.readableListening = !1, | |
this.resumeScheduled = !1, | |
this.destroyed = !1, | |
this.defaultEncoding = t.defaultEncoding || "utf8", | |
this.awaitDrain = 0, | |
this.readingMore = !1, | |
this.decoder = null, | |
this.encoding = null, | |
t.encoding && (!G && (G = e("string_decoder/").StringDecoder), | |
this.decoder = new G(t.encoding), | |
this.encoding = t.encoding) | |
} | |
function l(t) { | |
return L = L || e("./_stream_duplex"), | |
this instanceof l ? void (this._readableState = new d(t,this), | |
this.readable = !0, | |
t && ("function" == typeof t.read && (this._read = t.read), | |
"function" == typeof t.destroy && (this._destroy = t.destroy)), | |
F.call(this)) : new l(t) | |
} | |
function u(e, t, n, a, i) { | |
var s = e._readableState; | |
if (null === t) | |
s.reading = !1, | |
y(e, s); | |
else { | |
var d; | |
i || (d = c(s, t)), | |
d ? e.emit("error", d) : s.objectMode || t && 0 < t.length ? ("string" != typeof t && !s.objectMode && Object.getPrototypeOf(t) !== W.prototype && (t = o(t)), | |
a ? s.endEmitted ? e.emit("error", new Error("stream.unshift() after end event")) : p(e, s, t, !0) : s.ended ? e.emit("error", new Error("stream.push() after EOF")) : (s.reading = !1, | |
s.decoder && !n ? (t = s.decoder.write(t), | |
s.objectMode || 0 !== t.length ? p(e, s, t, !1) : v(e, s)) : p(e, s, t, !1))) : !a && (s.reading = !1) | |
} | |
return f(s) | |
} | |
function p(e, t, n, a) { | |
t.flowing && 0 === t.length && !t.sync ? (e.emit("data", n), | |
e.read(0)) : (t.length += t.objectMode ? 1 : n.length, | |
a ? t.buffer.unshift(n) : t.buffer.push(n), | |
t.needReadable && x(e)), | |
v(e, t) | |
} | |
function c(e, t) { | |
var n; | |
return i(t) || "string" == typeof t || void 0 === t || e.objectMode || (n = new TypeError("Invalid non-string/buffer chunk")), | |
n | |
} | |
function f(e) { | |
return !e.ended && (e.needReadable || e.length < e.highWaterMark || 0 === e.length) | |
} | |
function h(e) { | |
return 8388608 <= e ? e = 8388608 : (e--, | |
e |= e >>> 1, | |
e |= e >>> 2, | |
e |= e >>> 4, | |
e |= e >>> 8, | |
e |= e >>> 16, | |
e++), | |
e | |
} | |
function m(e, t) { | |
return 0 >= e || 0 === t.length && t.ended ? 0 : t.objectMode ? 1 : e === e ? (e > t.highWaterMark && (t.highWaterMark = h(e)), | |
e <= t.length ? e : t.ended ? t.length : (t.needReadable = !0, | |
0)) : t.flowing && t.length ? t.buffer.head.data.length : t.length | |
} | |
function y(e, t) { | |
if (!t.ended) { | |
if (t.decoder) { | |
var n = t.decoder.end(); | |
n && n.length && (t.buffer.push(n), | |
t.length += t.objectMode ? 1 : n.length) | |
} | |
t.ended = !0, | |
x(e) | |
} | |
} | |
function x(e) { | |
var t = e._readableState; | |
t.needReadable = !1, | |
t.emittedReadable || (V("emitReadable", t.flowing), | |
t.emittedReadable = !0, | |
t.sync ? A(_, e) : _(e)) | |
} | |
function _(e) { | |
V("emit readable"), | |
e.emit("readable"), | |
T(e) | |
} | |
function v(e, t) { | |
t.readingMore || (t.readingMore = !0, | |
A(k, e, t)) | |
} | |
function k(e, t) { | |
for (var n = t.length; !t.reading && !t.flowing && !t.ended && t.length < t.highWaterMark && (V("maybeReadMore read 0"), | |
e.read(0), | |
n !== t.length); ) | |
n = t.length; | |
t.readingMore = !1 | |
} | |
function w(e) { | |
return function() { | |
var t = e._readableState; | |
V("pipeOnDrain", t.awaitDrain), | |
t.awaitDrain && t.awaitDrain--, | |
0 === t.awaitDrain && N(e, "data") && (t.flowing = !0, | |
T(e)) | |
} | |
} | |
function S(e) { | |
V("readable nexttick read 0"), | |
e.read(0) | |
} | |
function C(e, t) { | |
t.resumeScheduled || (t.resumeScheduled = !0, | |
A(E, e, t)) | |
} | |
function E(e, t) { | |
t.reading || (V("resume read 0"), | |
e.read(0)), | |
t.resumeScheduled = !1, | |
t.awaitDrain = 0, | |
e.emit("resume"), | |
T(e), | |
t.flowing && !t.reading && e.read(0) | |
} | |
function T(e) { | |
var t = e._readableState; | |
for (V("flow", t.flowing); t.flowing && null !== e.read(); ) | |
; | |
} | |
function P(e, t) { | |
if (0 === t.length) | |
return null; | |
var n; | |
return t.objectMode ? n = t.buffer.shift() : !e || e >= t.length ? (n = t.decoder ? t.buffer.join("") : 1 === t.buffer.length ? t.buffer.head.data : t.buffer.concat(t.length), | |
t.buffer.clear()) : n = D(e, t.buffer, t.decoder), | |
n | |
} | |
function D(e, t, n) { | |
var a; | |
return e < t.head.data.length ? (a = t.head.data.slice(0, e), | |
t.head.data = t.head.data.slice(e)) : e === t.head.data.length ? a = t.shift() : a = n ? O(e, t) : M(e, t), | |
a | |
} | |
function O(e, t) { | |
var a = t.head | |
, o = 1 | |
, i = a.data; | |
for (e -= i.length; a = a.next; ) { | |
var s = a.data | |
, d = e > s.length ? s.length : e; | |
if (i += d === s.length ? s : s.slice(0, e), | |
e -= d, | |
0 === e) { | |
d === s.length ? (++o, | |
t.head = a.next ? a.next : t.tail = null) : (t.head = a, | |
a.data = s.slice(d)); | |
break | |
} | |
++o | |
} | |
return t.length -= o, | |
i | |
} | |
function M(e, t) { | |
var a = W.allocUnsafe(e) | |
, o = t.head | |
, i = 1; | |
for (o.data.copy(a), | |
e -= o.data.length; o = o.next; ) { | |
var s = o.data | |
, d = e > s.length ? s.length : e; | |
if (s.copy(a, a.length - e, 0, d), | |
e -= d, | |
0 === e) { | |
d === s.length ? (++i, | |
t.head = o.next ? o.next : t.tail = null) : (t.head = o, | |
o.data = s.slice(d)); | |
break | |
} | |
++i | |
} | |
return t.length -= i, | |
a | |
} | |
function R(e) { | |
var t = e._readableState; | |
if (0 < t.length) | |
throw new Error("\"endReadable()\" called on non-empty stream"); | |
t.endEmitted || (t.ended = !0, | |
A(I, t, e)) | |
} | |
function I(e, t) { | |
e.endEmitted || 0 !== e.length || (e.endEmitted = !0, | |
t.readable = !1, | |
t.emit("end")) | |
} | |
function z(e, t) { | |
for (var n = 0, a = e.length; n < a; n++) | |
if (e[n] === t) | |
return n; | |
return -1 | |
} | |
var A = e("process-nextick-args"); | |
t.exports = l; | |
var U = e("isarray"), L; | |
l.ReadableState = d; | |
var B = e("events").EventEmitter | |
, N = function(e, t) { | |
return e.listeners(t).length | |
} | |
, F = e("./internal/streams/stream") | |
, W = e("safe-buffer").Buffer | |
, j = a.Uint8Array || function() {} | |
, H = e("core-util-is"); | |
H.inherits = e("inherits"); | |
var Y = e("util") | |
, V = void 0; | |
V = Y && Y.debuglog ? Y.debuglog("stream") : function() {} | |
; | |
var q = e("./internal/streams/BufferList"), X = e("./internal/streams/destroy"), G; | |
H.inherits(l, F); | |
var Z = ["error", "close", "destroy", "pause", "resume"]; | |
Object.defineProperty(l.prototype, "destroyed", { | |
get: function() { | |
return void 0 !== this._readableState && this._readableState.destroyed | |
}, | |
set: function(e) { | |
this._readableState && (this._readableState.destroyed = e) | |
} | |
}), | |
l.prototype.destroy = X.destroy, | |
l.prototype._undestroy = X.undestroy, | |
l.prototype._destroy = function(e, t) { | |
this.push(null), | |
t(e) | |
} | |
, | |
l.prototype.push = function(e, t) { | |
var n = this._readableState, a; | |
return n.objectMode ? a = !0 : "string" == typeof e && (t = t || n.defaultEncoding, | |
t !== n.encoding && (e = W.from(e, t), | |
t = ""), | |
a = !0), | |
u(this, e, t, !1, a) | |
} | |
, | |
l.prototype.unshift = function(e) { | |
return u(this, e, null, !0, !1) | |
} | |
, | |
l.prototype.isPaused = function() { | |
return !1 === this._readableState.flowing | |
} | |
, | |
l.prototype.setEncoding = function(t) { | |
return G || (G = e("string_decoder/").StringDecoder), | |
this._readableState.decoder = new G(t), | |
this._readableState.encoding = t, | |
this | |
} | |
; | |
l.prototype.read = function(e) { | |
V("read", e), | |
e = parseInt(e, 10); | |
var t = this._readableState | |
, a = e; | |
if (0 !== e && (t.emittedReadable = !1), | |
0 === e && t.needReadable && (t.length >= t.highWaterMark || t.ended)) | |
return V("read: emitReadable", t.length, t.ended), | |
0 === t.length && t.ended ? R(this) : x(this), | |
null; | |
if (e = m(e, t), | |
0 === e && t.ended) | |
return 0 === t.length && R(this), | |
null; | |
var o = t.needReadable; | |
V("need readable", o), | |
(0 === t.length || t.length - e < t.highWaterMark) && (o = !0, | |
V("length less than watermark", o)), | |
t.ended || t.reading ? (o = !1, | |
V("reading or ended", o)) : o && (V("do read"), | |
t.reading = !0, | |
t.sync = !0, | |
0 === t.length && (t.needReadable = !0), | |
this._read(t.highWaterMark), | |
t.sync = !1, | |
!t.reading && (e = m(a, t))); | |
var i; | |
return i = 0 < e ? P(e, t) : null, | |
null === i ? (t.needReadable = !0, | |
e = 0) : t.length -= e, | |
0 === t.length && (!t.ended && (t.needReadable = !0), | |
a !== e && t.ended && R(this)), | |
null !== i && this.emit("data", i), | |
i | |
} | |
, | |
l.prototype._read = function() { | |
this.emit("error", new Error("_read() is not implemented")) | |
} | |
, | |
l.prototype.pipe = function(e, t) { | |
function a(e, t) { | |
V("onunpipe"), | |
e === f && t && !1 === t.hasUnpiped && (t.hasUnpiped = !0, | |
i()) | |
} | |
function o() { | |
V("onend"), | |
e.end() | |
} | |
function i() { | |
V("cleanup"), | |
e.removeListener("close", u), | |
e.removeListener("finish", p), | |
e.removeListener("drain", x), | |
e.removeListener("error", l), | |
e.removeListener("unpipe", a), | |
f.removeListener("end", o), | |
f.removeListener("end", c), | |
f.removeListener("data", d), | |
_ = !0, | |
h.awaitDrain && (!e._writableState || e._writableState.needDrain) && x() | |
} | |
function d(t) { | |
V("ondata"), | |
v = !1; | |
var n = e.write(t); | |
!1 !== n || v || ((1 === h.pipesCount && h.pipes === e || 1 < h.pipesCount && -1 !== z(h.pipes, e)) && !_ && (V("false write response, pause", f._readableState.awaitDrain), | |
f._readableState.awaitDrain++, | |
v = !0), | |
f.pause()) | |
} | |
function l(t) { | |
V("onerror", t), | |
c(), | |
e.removeListener("error", l), | |
0 === N(e, "error") && e.emit("error", t) | |
} | |
function u() { | |
e.removeListener("finish", p), | |
c() | |
} | |
function p() { | |
V("onfinish"), | |
e.removeListener("close", u), | |
c() | |
} | |
function c() { | |
V("unpipe"), | |
f.unpipe(e) | |
} | |
var f = this | |
, h = this._readableState; | |
switch (h.pipesCount) { | |
case 0: | |
h.pipes = e; | |
break; | |
case 1: | |
h.pipes = [h.pipes, e]; | |
break; | |
default: | |
h.pipes.push(e); | |
} | |
h.pipesCount += 1, | |
V("pipe count=%d opts=%j", h.pipesCount, t); | |
var m = (!t || !1 !== t.end) && e !== n.stdout && e !== n.stderr | |
, y = m ? o : c; | |
h.endEmitted ? A(y) : f.once("end", y), | |
e.on("unpipe", a); | |
var x = w(f); | |
e.on("drain", x); | |
var _ = !1 | |
, v = !1; | |
return f.on("data", d), | |
s(e, "error", l), | |
e.once("close", u), | |
e.once("finish", p), | |
e.emit("pipe", f), | |
h.flowing || (V("pipe resume"), | |
f.resume()), | |
e | |
} | |
, | |
l.prototype.unpipe = function(e) { | |
var t = this._readableState | |
, n = { | |
hasUnpiped: !1 | |
}; | |
if (0 === t.pipesCount) | |
return this; | |
if (1 === t.pipesCount) | |
return e && e !== t.pipes ? this : (e || (e = t.pipes), | |
t.pipes = null, | |
t.pipesCount = 0, | |
t.flowing = !1, | |
e && e.emit("unpipe", this, n), | |
this); | |
if (!e) { | |
var a = t.pipes | |
, o = t.pipesCount; | |
t.pipes = null, | |
t.pipesCount = 0, | |
t.flowing = !1; | |
for (var s = 0; s < o; s++) | |
a[s].emit("unpipe", this, n); | |
return this | |
} | |
var d = z(t.pipes, e); | |
return -1 === d ? this : (t.pipes.splice(d, 1), | |
t.pipesCount -= 1, | |
1 === t.pipesCount && (t.pipes = t.pipes[0]), | |
e.emit("unpipe", this, n), | |
this) | |
} | |
, | |
l.prototype.on = function(e, t) { | |
var n = F.prototype.on.call(this, e, t); | |
if ("data" === e) | |
!1 !== this._readableState.flowing && this.resume(); | |
else if ("readable" === e) { | |
var a = this._readableState; | |
a.endEmitted || a.readableListening || (a.readableListening = a.needReadable = !0, | |
a.emittedReadable = !1, | |
a.reading ? a.length && x(this) : A(S, this)) | |
} | |
return n | |
} | |
, | |
l.prototype.addListener = l.prototype.on, | |
l.prototype.resume = function() { | |
var e = this._readableState; | |
return e.flowing || (V("resume"), | |
e.flowing = !0, | |
C(this, e)), | |
this | |
} | |
, | |
l.prototype.pause = function() { | |
return V("call pause flowing=%j", this._readableState.flowing), | |
!1 !== this._readableState.flowing && (V("pause"), | |
this._readableState.flowing = !1, | |
this.emit("pause")), | |
this | |
} | |
, | |
l.prototype.wrap = function(e) { | |
var t = this._readableState | |
, a = !1 | |
, o = this; | |
for (var s in e.on("end", function() { | |
if (V("wrapped end"), | |
t.decoder && !t.ended) { | |
var e = t.decoder.end(); | |
e && e.length && o.push(e) | |
} | |
o.push(null) | |
}), | |
e.on("data", function(n) { | |
if ((V("wrapped data"), | |
t.decoder && (n = t.decoder.write(n)), | |
!(t.objectMode && (null === n || void 0 === n))) && (t.objectMode || n && n.length)) { | |
var i = o.push(n); | |
i || (a = !0, | |
e.pause()) | |
} | |
}), | |
e) | |
void 0 === this[s] && "function" == typeof e[s] && (this[s] = function(t) { | |
return function() { | |
return e[t].apply(e, arguments) | |
} | |
}(s)); | |
for (var i = 0; i < Z.length; i++) | |
e.on(Z[i], o.emit.bind(o, Z[i])); | |
return o._read = function(t) { | |
V("wrapped _read", t), | |
a && (a = !1, | |
e.resume()) | |
} | |
, | |
o | |
} | |
, | |
l._fromList = P | |
} | |
).call(this, e("_process"), "undefined" == typeof global ? "undefined" == typeof self ? "undefined" == typeof window ? {} : window : self : global) | |
} | |
, { | |
"./_stream_duplex": 14, | |
"./internal/streams/BufferList": 19, | |
"./internal/streams/destroy": 20, | |
"./internal/streams/stream": 21, | |
_process: 12, | |
"core-util-is": 5, | |
events: 6, | |
inherits: 8, | |
isarray: 10, | |
"process-nextick-args": 11, | |
"safe-buffer": 26, | |
"string_decoder/": 28, | |
util: 3 | |
}], | |
17: [function(e, t) { | |
"use strict"; | |
function n(e) { | |
this.afterTransform = function(t, n) { | |
return a(e, t, n) | |
} | |
, | |
this.needTransform = !1, | |
this.transforming = !1, | |
this.writecb = null, | |
this.writechunk = null, | |
this.writeencoding = null | |
} | |
function a(e, t, n) { | |
var a = e._transformState; | |
a.transforming = !1; | |
var o = a.writecb; | |
if (!o) | |
return e.emit("error", new Error("write callback called multiple times")); | |
a.writechunk = null, | |
a.writecb = null, | |
null !== n && n !== void 0 && e.push(n), | |
o(t); | |
var i = e._readableState; | |
i.reading = !1, | |
(i.needReadable || i.length < i.highWaterMark) && e._read(i.highWaterMark) | |
} | |
function o(e) { | |
if (!(this instanceof o)) | |
return new o(e); | |
s.call(this, e), | |
this._transformState = new n(this); | |
var t = this; | |
this._readableState.needReadable = !0, | |
this._readableState.sync = !1, | |
e && ("function" == typeof e.transform && (this._transform = e.transform), | |
"function" == typeof e.flush && (this._flush = e.flush)), | |
this.once("prefinish", function() { | |
"function" == typeof this._flush ? this._flush(function(e, n) { | |
i(t, e, n) | |
}) : i(t) | |
}) | |
} | |
function i(e, t, n) { | |
if (t) | |
return e.emit("error", t); | |
null !== n && n !== void 0 && e.push(n); | |
var a = e._writableState | |
, o = e._transformState; | |
if (a.length) | |
throw new Error("Calling transform done when ws.length != 0"); | |
if (o.transforming) | |
throw new Error("Calling transform done when still transforming"); | |
return e.push(null) | |
} | |
t.exports = o; | |
var s = e("./_stream_duplex") | |
, d = e("core-util-is"); | |
d.inherits = e("inherits"), | |
d.inherits(o, s), | |
o.prototype.push = function(e, t) { | |
return this._transformState.needTransform = !1, | |
s.prototype.push.call(this, e, t) | |
} | |
, | |
o.prototype._transform = function() { | |
throw new Error("_transform() is not implemented") | |
} | |
, | |
o.prototype._write = function(e, t, n) { | |
var a = this._transformState; | |
if (a.writecb = n, | |
a.writechunk = e, | |
a.writeencoding = t, | |
!a.transforming) { | |
var o = this._readableState; | |
(a.needTransform || o.needReadable || o.length < o.highWaterMark) && this._read(o.highWaterMark) | |
} | |
} | |
, | |
o.prototype._read = function() { | |
var e = this._transformState; | |
null !== e.writechunk && e.writecb && !e.transforming ? (e.transforming = !0, | |
this._transform(e.writechunk, e.writeencoding, e.afterTransform)) : e.needTransform = !0 | |
} | |
, | |
o.prototype._destroy = function(e, t) { | |
var n = this; | |
s.prototype._destroy.call(this, e, function(e) { | |
t(e), | |
n.emit("close") | |
}) | |
} | |
} | |
, { | |
"./_stream_duplex": 14, | |
"core-util-is": 5, | |
inherits: 8 | |
}], | |
18: [function(e, t) { | |
(function(n, a) { | |
"use strict"; | |
function o(e) { | |
var t = this; | |
this.next = null, | |
this.entry = null, | |
this.finish = function() { | |
D(t, e) | |
} | |
} | |
function i(e) { | |
return U.from(e) | |
} | |
function s(e) { | |
return U.isBuffer(e) || e instanceof L | |
} | |
function d() {} | |
function l(t, n) { | |
R = R || e("./_stream_duplex"), | |
t = t || {}, | |
this.objectMode = !!t.objectMode, | |
n instanceof R && (this.objectMode = this.objectMode || !!t.writableObjectMode); | |
var a = t.highWaterMark | |
, i = this.objectMode ? 16 : 16384; | |
this.highWaterMark = a || 0 === a ? a : i, | |
this.highWaterMark = Math.floor(this.highWaterMark), | |
this.finalCalled = !1, | |
this.needDrain = !1, | |
this.ending = !1, | |
this.ended = !1, | |
this.finished = !1, | |
this.destroyed = !1; | |
var s = !1 === t.decodeStrings; | |
this.decodeStrings = !s, | |
this.defaultEncoding = t.defaultEncoding || "utf8", | |
this.length = 0, | |
this.writing = !1, | |
this.corked = 0, | |
this.sync = !0, | |
this.bufferProcessing = !1, | |
this.onwrite = function(e) { | |
_(n, e) | |
} | |
, | |
this.writecb = null, | |
this.writelen = 0, | |
this.bufferedRequest = null, | |
this.lastBufferedRequest = null, | |
this.pendingcb = 0, | |
this.prefinished = !1, | |
this.errorEmitted = !1, | |
this.bufferedRequestCount = 0, | |
this.corkedRequestsFree = new o(this) | |
} | |
function u(t) { | |
return R = R || e("./_stream_duplex"), | |
N.call(u, this) || this instanceof R ? void (this._writableState = new l(t,this), | |
this.writable = !0, | |
t && ("function" == typeof t.write && (this._write = t.write), | |
"function" == typeof t.writev && (this._writev = t.writev), | |
"function" == typeof t.destroy && (this._destroy = t.destroy), | |
"function" == typeof t.final && (this._final = t.final)), | |
A.call(this)) : new u(t) | |
} | |
function p(e, t) { | |
var n = new Error("write after end"); | |
e.emit("error", n), | |
O(t, n) | |
} | |
function c(e, t, n, a) { | |
var o = !0 | |
, i = !1; | |
return null === n ? i = new TypeError("May not write null values to stream") : "string" != typeof n && void 0 !== n && !t.objectMode && (i = new TypeError("Invalid non-string/buffer chunk")), | |
i && (e.emit("error", i), | |
O(a, i), | |
o = !1), | |
o | |
} | |
function f(e, t, n) { | |
return e.objectMode || !1 === e.decodeStrings || "string" != typeof t || (t = U.from(t, n)), | |
t | |
} | |
function h(e, t, n, a, o, i) { | |
if (!n) { | |
var s = f(t, a, o); | |
a !== s && (n = !0, | |
o = "buffer", | |
a = s) | |
} | |
var d = t.objectMode ? 1 : a.length; | |
t.length += d; | |
var l = t.length < t.highWaterMark; | |
if (l || (t.needDrain = !0), | |
t.writing || t.corked) { | |
var u = t.lastBufferedRequest; | |
t.lastBufferedRequest = { | |
chunk: a, | |
encoding: o, | |
isBuf: n, | |
callback: i, | |
next: null | |
}, | |
u ? u.next = t.lastBufferedRequest : t.bufferedRequest = t.lastBufferedRequest, | |
t.bufferedRequestCount += 1 | |
} else | |
m(e, t, !1, d, a, o, i); | |
return l | |
} | |
function m(e, t, n, a, o, i, s) { | |
t.writelen = a, | |
t.writecb = s, | |
t.writing = !0, | |
t.sync = !0, | |
n ? e._writev(o, t.onwrite) : e._write(o, i, t.onwrite), | |
t.sync = !1 | |
} | |
function y(e, t, n, a, o) { | |
--t.pendingcb, | |
n ? (O(o, a), | |
O(T, e, t), | |
e._writableState.errorEmitted = !0, | |
e.emit("error", a)) : (o(a), | |
e._writableState.errorEmitted = !0, | |
e.emit("error", a), | |
T(e, t)) | |
} | |
function x(e) { | |
e.writing = !1, | |
e.writecb = null, | |
e.length -= e.writelen, | |
e.writelen = 0 | |
} | |
function _(e, t) { | |
var n = e._writableState | |
, a = n.sync | |
, o = n.writecb; | |
if (x(n), | |
t) | |
y(e, n, a, t, o); | |
else { | |
var i = S(n); | |
i || n.corked || n.bufferProcessing || !n.bufferedRequest || w(e, n), | |
a ? M(v, e, n, i, o) : v(e, n, i, o) | |
} | |
} | |
function v(e, t, n, a) { | |
n || k(e, t), | |
t.pendingcb--, | |
a(), | |
T(e, t) | |
} | |
function k(e, t) { | |
0 === t.length && t.needDrain && (t.needDrain = !1, | |
e.emit("drain")) | |
} | |
function w(e, t) { | |
t.bufferProcessing = !0; | |
var n = t.bufferedRequest; | |
if (e._writev && n && n.next) { | |
var a = t.bufferedRequestCount | |
, i = Array(a) | |
, s = t.corkedRequestsFree; | |
s.entry = n; | |
for (var d = 0, l = !0; n; ) | |
i[d] = n, | |
n.isBuf || (l = !1), | |
n = n.next, | |
d += 1; | |
i.allBuffers = l, | |
m(e, t, !0, t.length, i, "", s.finish), | |
t.pendingcb++, | |
t.lastBufferedRequest = null, | |
s.next ? (t.corkedRequestsFree = s.next, | |
s.next = null) : t.corkedRequestsFree = new o(t) | |
} else { | |
for (; n; ) { | |
var u = n.chunk | |
, p = n.encoding | |
, c = n.callback | |
, f = t.objectMode ? 1 : u.length; | |
if (m(e, t, !1, f, u, p, c), | |
n = n.next, | |
t.writing) | |
break | |
} | |
null === n && (t.lastBufferedRequest = null) | |
} | |
t.bufferedRequestCount = 0, | |
t.bufferedRequest = n, | |
t.bufferProcessing = !1 | |
} | |
function S(e) { | |
return e.ending && 0 === e.length && null === e.bufferedRequest && !e.finished && !e.writing | |
} | |
function C(e, t) { | |
e._final(function(n) { | |
t.pendingcb--, | |
n && e.emit("error", n), | |
t.prefinished = !0, | |
e.emit("prefinish"), | |
T(e, t) | |
}) | |
} | |
function E(e, t) { | |
t.prefinished || t.finalCalled || ("function" == typeof e._final ? (t.pendingcb++, | |
t.finalCalled = !0, | |
O(C, e, t)) : (t.prefinished = !0, | |
e.emit("prefinish"))) | |
} | |
function T(e, t) { | |
var n = S(t); | |
return n && (E(e, t), | |
0 === t.pendingcb && (t.finished = !0, | |
e.emit("finish"))), | |
n | |
} | |
function P(e, t, n) { | |
t.ending = !0, | |
T(e, t), | |
n && (t.finished ? O(n) : e.once("finish", n)), | |
t.ended = !0, | |
e.writable = !1 | |
} | |
function D(e, t, n) { | |
var a = e.entry; | |
for (e.entry = null; a; ) { | |
var o = a.callback; | |
t.pendingcb--, | |
o(n), | |
a = a.next | |
} | |
t.corkedRequestsFree ? t.corkedRequestsFree.next = e : t.corkedRequestsFree = e | |
} | |
var O = e("process-nextick-args"); | |
t.exports = u; | |
var M = !n.browser && -1 < ["v0.10", "v0.9."].indexOf(n.version.slice(0, 5)) ? setImmediate : O, R; | |
u.WritableState = l; | |
var I = e("core-util-is"); | |
I.inherits = e("inherits"); | |
var z = { | |
deprecate: e("util-deprecate") | |
} | |
, A = e("./internal/streams/stream") | |
, U = e("safe-buffer").Buffer | |
, L = a.Uint8Array || function() {} | |
, B = e("./internal/streams/destroy"); | |
I.inherits(u, A), | |
l.prototype.getBuffer = function() { | |
for (var e = this.bufferedRequest, t = []; e; ) | |
t.push(e), | |
e = e.next; | |
return t | |
} | |
, | |
function() { | |
try { | |
Object.defineProperty(l.prototype, "buffer", { | |
get: z.deprecate(function() { | |
return this.getBuffer() | |
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") | |
}) | |
} catch (e) {} | |
}(); | |
var N; | |
"function" == typeof Symbol && Symbol.hasInstance && "function" == typeof Function.prototype[Symbol.hasInstance] ? (N = Function.prototype[Symbol.hasInstance], | |
Object.defineProperty(u, Symbol.hasInstance, { | |
value: function(e) { | |
return !!N.call(this, e) || e && e._writableState instanceof l | |
} | |
})) : N = function(e) { | |
return e instanceof this | |
} | |
, | |
u.prototype.pipe = function() { | |
this.emit("error", new Error("Cannot pipe, not readable")) | |
} | |
, | |
u.prototype.write = function(e, t, n) { | |
var a = this._writableState | |
, o = !1 | |
, l = s(e) && !a.objectMode; | |
return l && !U.isBuffer(e) && (e = i(e)), | |
"function" == typeof t && (n = t, | |
t = null), | |
l ? t = "buffer" : !t && (t = a.defaultEncoding), | |
"function" != typeof n && (n = d), | |
a.ended ? p(this, n) : (l || c(this, a, e, n)) && (a.pendingcb++, | |
o = h(this, a, l, e, t, n)), | |
o | |
} | |
, | |
u.prototype.cork = function() { | |
var e = this._writableState; | |
e.corked++ | |
} | |
, | |
u.prototype.uncork = function() { | |
var e = this._writableState; | |
e.corked && (e.corked--, | |
!e.writing && !e.corked && !e.finished && !e.bufferProcessing && e.bufferedRequest && w(this, e)) | |
} | |
, | |
u.prototype.setDefaultEncoding = function(e) { | |
if ("string" == typeof e && (e = e.toLowerCase()), | |
!(-1 < ["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((e + "").toLowerCase()))) | |
throw new TypeError("Unknown encoding: " + e); | |
return this._writableState.defaultEncoding = e, | |
this | |
} | |
, | |
u.prototype._write = function(e, t, n) { | |
n(new Error("_write() is not implemented")) | |
} | |
, | |
u.prototype._writev = null, | |
u.prototype.end = function(e, t, n) { | |
var a = this._writableState; | |
"function" == typeof e ? (n = e, | |
e = null, | |
t = null) : "function" == typeof t && (n = t, | |
t = null), | |
null !== e && e !== void 0 && this.write(e, t), | |
a.corked && (a.corked = 1, | |
this.uncork()), | |
a.ending || a.finished || P(this, a, n) | |
} | |
, | |
Object.defineProperty(u.prototype, "destroyed", { | |
get: function() { | |
return void 0 !== this._writableState && this._writableState.destroyed | |
}, | |
set: function(e) { | |
this._writableState && (this._writableState.destroyed = e) | |
} | |
}), | |
u.prototype.destroy = B.destroy, | |
u.prototype._undestroy = B.undestroy, | |
u.prototype._destroy = function(e, t) { | |
this.end(), | |
t(e) | |
} | |
} | |
).call(this, e("_process"), "undefined" == typeof global ? "undefined" == typeof self ? "undefined" == typeof window ? {} : window : self : global) | |
} | |
, { | |
"./_stream_duplex": 14, | |
"./internal/streams/destroy": 20, | |
"./internal/streams/stream": 21, | |
_process: 12, | |
"core-util-is": 5, | |
inherits: 8, | |
"process-nextick-args": 11, | |
"safe-buffer": 26, | |
"util-deprecate": 29 | |
}], | |
19: [function(e, t) { | |
"use strict"; | |
function n(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
function a(e, t, n) { | |
e.copy(t, n) | |
} | |
var o = e("safe-buffer").Buffer; | |
t.exports = function() { | |
function e() { | |
n(this, e), | |
this.head = null, | |
this.tail = null, | |
this.length = 0 | |
} | |
return e.prototype.push = function(e) { | |
var t = { | |
data: e, | |
next: null | |
}; | |
0 < this.length ? this.tail.next = t : this.head = t, | |
this.tail = t, | |
++this.length | |
} | |
, | |
e.prototype.unshift = function(e) { | |
var t = { | |
data: e, | |
next: this.head | |
}; | |
0 === this.length && (this.tail = t), | |
this.head = t, | |
++this.length | |
} | |
, | |
e.prototype.shift = function() { | |
if (0 !== this.length) { | |
var e = this.head.data; | |
return this.head = 1 === this.length ? this.tail = null : this.head.next, | |
--this.length, | |
e | |
} | |
} | |
, | |
e.prototype.clear = function() { | |
this.head = this.tail = null, | |
this.length = 0 | |
} | |
, | |
e.prototype.join = function(e) { | |
if (0 === this.length) | |
return ""; | |
for (var t = this.head, n = "" + t.data; t = t.next; ) | |
n += e + t.data; | |
return n | |
} | |
, | |
e.prototype.concat = function(e) { | |
if (0 === this.length) | |
return o.alloc(0); | |
if (1 === this.length) | |
return this.head.data; | |
for (var t = o.allocUnsafe(e >>> 0), n = this.head, s = 0; n; ) | |
a(n.data, t, s), | |
s += n.data.length, | |
n = n.next; | |
return t | |
} | |
, | |
e | |
}() | |
} | |
, { | |
"safe-buffer": 26 | |
}], | |
20: [function(e, t) { | |
"use strict"; | |
function n(e, t) { | |
e.emit("error", t) | |
} | |
var a = e("process-nextick-args"); | |
t.exports = { | |
destroy: function(e, t) { | |
var o = this | |
, i = this._readableState && this._readableState.destroyed | |
, s = this._writableState && this._writableState.destroyed; | |
return i || s ? void (t ? t(e) : e && (!this._writableState || !this._writableState.errorEmitted) && a(n, this, e)) : void (this._readableState && (this._readableState.destroyed = !0), | |
this._writableState && (this._writableState.destroyed = !0), | |
this._destroy(e || null, function(e) { | |
!t && e ? (a(n, o, e), | |
o._writableState && (o._writableState.errorEmitted = !0)) : t && t(e) | |
})) | |
}, | |
undestroy: function() { | |
this._readableState && (this._readableState.destroyed = !1, | |
this._readableState.reading = !1, | |
this._readableState.ended = !1, | |
this._readableState.endEmitted = !1), | |
this._writableState && (this._writableState.destroyed = !1, | |
this._writableState.ended = !1, | |
this._writableState.ending = !1, | |
this._writableState.finished = !1, | |
this._writableState.errorEmitted = !1) | |
} | |
} | |
} | |
, { | |
"process-nextick-args": 11 | |
}], | |
21: [function(e, t) { | |
t.exports = e("events").EventEmitter | |
} | |
, { | |
events: 6 | |
}], | |
22: [function(e, t) { | |
t.exports = e("./readable").PassThrough | |
} | |
, { | |
"./readable": 23 | |
}], | |
23: [function(e, t, n) { | |
n = t.exports = e("./lib/_stream_readable.js"), | |
n.Stream = n, | |
n.Readable = n, | |
n.Writable = e("./lib/_stream_writable.js"), | |
n.Duplex = e("./lib/_stream_duplex.js"), | |
n.Transform = e("./lib/_stream_transform.js"), | |
n.PassThrough = e("./lib/_stream_passthrough.js") | |
} | |
, { | |
"./lib/_stream_duplex.js": 14, | |
"./lib/_stream_passthrough.js": 15, | |
"./lib/_stream_readable.js": 16, | |
"./lib/_stream_transform.js": 17, | |
"./lib/_stream_writable.js": 18 | |
}], | |
24: [function(e, t) { | |
t.exports = e("./readable").Transform | |
} | |
, { | |
"./readable": 23 | |
}], | |
25: [function(e, t) { | |
t.exports = e("./lib/_stream_writable.js") | |
} | |
, { | |
"./lib/_stream_writable.js": 18 | |
}], | |
26: [function(e, t, n) { | |
function a(e, t) { | |
for (var n in e) | |
t[n] = e[n] | |
} | |
function o(e, t, n) { | |
return s(e, t, n) | |
} | |
var i = e("buffer") | |
, s = i.Buffer; | |
s.from && s.alloc && s.allocUnsafe && s.allocUnsafeSlow ? t.exports = i : (a(i, n), | |
n.Buffer = o), | |
a(s, o), | |
o.from = function(e, t, n) { | |
if ("number" == typeof e) | |
throw new TypeError("Argument must not be a number"); | |
return s(e, t, n) | |
} | |
, | |
o.alloc = function(e, t, n) { | |
if ("number" != typeof e) | |
throw new TypeError("Argument must be a number"); | |
var a = s(e); | |
return void 0 === t ? a.fill(0) : "string" == typeof n ? a.fill(t, n) : a.fill(t), | |
a | |
} | |
, | |
o.allocUnsafe = function(e) { | |
if ("number" != typeof e) | |
throw new TypeError("Argument must be a number"); | |
return s(e) | |
} | |
, | |
o.allocUnsafeSlow = function(e) { | |
if ("number" != typeof e) | |
throw new TypeError("Argument must be a number"); | |
return i.SlowBuffer(e) | |
} | |
} | |
, { | |
buffer: 4 | |
}], | |
27: [function(e, t) { | |
function n() { | |
a.call(this) | |
} | |
t.exports = n; | |
var a = e("events").EventEmitter | |
, o = e("inherits"); | |
o(n, a), | |
n.Readable = e("readable-stream/readable.js"), | |
n.Writable = e("readable-stream/writable.js"), | |
n.Duplex = e("readable-stream/duplex.js"), | |
n.Transform = e("readable-stream/transform.js"), | |
n.PassThrough = e("readable-stream/passthrough.js"), | |
n.Stream = n, | |
n.prototype.pipe = function(e, t) { | |
function n(t) { | |
e.writable && !1 === e.write(t) && u.pause && u.pause() | |
} | |
function o() { | |
u.readable && u.resume && u.resume() | |
} | |
function i() { | |
p || (p = !0, | |
e.end()) | |
} | |
function s() { | |
p || (p = !0, | |
"function" == typeof e.destroy && e.destroy()) | |
} | |
function d(e) { | |
if (l(), | |
0 === a.listenerCount(this, "error")) | |
throw e | |
} | |
function l() { | |
u.removeListener("data", n), | |
e.removeListener("drain", o), | |
u.removeListener("end", i), | |
u.removeListener("close", s), | |
u.removeListener("error", d), | |
e.removeListener("error", d), | |
u.removeListener("end", l), | |
u.removeListener("close", l), | |
e.removeListener("close", l) | |
} | |
var u = this; | |
u.on("data", n), | |
e.on("drain", o), | |
e._isStdio || t && !1 === t.end || (u.on("end", i), | |
u.on("close", s)); | |
var p = !1; | |
return u.on("error", d), | |
e.on("error", d), | |
u.on("end", l), | |
u.on("close", l), | |
e.on("close", l), | |
e.emit("pipe", u), | |
e | |
} | |
} | |
, { | |
events: 6, | |
inherits: 8, | |
"readable-stream/duplex.js": 13, | |
"readable-stream/passthrough.js": 22, | |
"readable-stream/readable.js": 23, | |
"readable-stream/transform.js": 24, | |
"readable-stream/writable.js": 25 | |
}], | |
28: [function(e, t, n) { | |
"use strict"; | |
function a(e) { | |
if (!e) | |
return "utf8"; | |
for (var t; ; ) | |
switch (e) { | |
case "utf8": | |
case "utf-8": | |
return "utf8"; | |
case "ucs2": | |
case "ucs-2": | |
case "utf16le": | |
case "utf-16le": | |
return "utf16le"; | |
case "latin1": | |
case "binary": | |
return "latin1"; | |
case "base64": | |
case "ascii": | |
case "hex": | |
return e; | |
default: | |
if (t) | |
return; | |
e = ("" + e).toLowerCase(), | |
t = !0; | |
} | |
} | |
function o(e) { | |
var t = a(e); | |
if ("string" != typeof t && (x.isEncoding === _ || !_(e))) | |
throw new Error("Unknown encoding: " + e); | |
return t || e | |
} | |
function i(e) { | |
this.encoding = o(e); | |
var t; | |
switch (this.encoding) { | |
case "utf16le": | |
this.text = p, | |
this.end = c, | |
t = 4; | |
break; | |
case "utf8": | |
this.fillLast = u, | |
t = 4; | |
break; | |
case "base64": | |
this.text = f, | |
this.end = h, | |
t = 3; | |
break; | |
default: | |
return this.write = m, | |
void (this.end = y); | |
} | |
this.lastNeed = 0, | |
this.lastTotal = 0, | |
this.lastChar = x.allocUnsafe(t) | |
} | |
function s(e) { | |
if (127 >= e) | |
return 0; | |
return 6 == e >> 5 ? 2 : 14 == e >> 4 ? 3 : 30 == e >> 3 ? 4 : -1 | |
} | |
function d(e, t, n) { | |
var a = t.length - 1; | |
if (a < n) | |
return 0; | |
var o = s(t[a]); | |
return 0 <= o ? (0 < o && (e.lastNeed = o - 1), | |
o) : --a < n ? 0 : (o = s(t[a]), | |
0 <= o) ? (0 < o && (e.lastNeed = o - 2), | |
o) : --a < n ? 0 : (o = s(t[a]), | |
0 <= o ? (0 < o && (2 === o ? o = 0 : e.lastNeed = o - 3), | |
o) : 0) | |
} | |
function l(e, t, n) { | |
if (128 != (192 & t[0])) | |
return e.lastNeed = 0, | |
"\uFFFD".repeat(n); | |
if (1 < e.lastNeed && 1 < t.length) { | |
if (128 != (192 & t[1])) | |
return e.lastNeed = 1, | |
"\uFFFD".repeat(n + 1); | |
if (2 < e.lastNeed && 2 < t.length && 128 != (192 & t[2])) | |
return e.lastNeed = 2, | |
"\uFFFD".repeat(n + 2) | |
} | |
} | |
function u(e) { | |
var t = this.lastTotal - this.lastNeed | |
, n = l(this, e, t); | |
return void 0 === n ? this.lastNeed <= e.length ? (e.copy(this.lastChar, t, 0, this.lastNeed), | |
this.lastChar.toString(this.encoding, 0, this.lastTotal)) : void (e.copy(this.lastChar, t, 0, e.length), | |
this.lastNeed -= e.length) : n | |
} | |
function p(e, t) { | |
if (0 == (e.length - t) % 2) { | |
var n = e.toString("utf16le", t); | |
if (n) { | |
var a = n.charCodeAt(n.length - 1); | |
if (55296 <= a && 56319 >= a) | |
return this.lastNeed = 2, | |
this.lastTotal = 4, | |
this.lastChar[0] = e[e.length - 2], | |
this.lastChar[1] = e[e.length - 1], | |
n.slice(0, -1) | |
} | |
return n | |
} | |
return this.lastNeed = 1, | |
this.lastTotal = 2, | |
this.lastChar[0] = e[e.length - 1], | |
e.toString("utf16le", t, e.length - 1) | |
} | |
function c(e) { | |
var t = e && e.length ? this.write(e) : ""; | |
if (this.lastNeed) { | |
var n = this.lastTotal - this.lastNeed; | |
return t + this.lastChar.toString("utf16le", 0, n) | |
} | |
return t | |
} | |
function f(e, t) { | |
var a = (e.length - t) % 3; | |
return 0 == a ? e.toString("base64", t) : (this.lastNeed = 3 - a, | |
this.lastTotal = 3, | |
1 == a ? this.lastChar[0] = e[e.length - 1] : (this.lastChar[0] = e[e.length - 2], | |
this.lastChar[1] = e[e.length - 1]), | |
e.toString("base64", t, e.length - a)) | |
} | |
function h(e) { | |
var t = e && e.length ? this.write(e) : ""; | |
return this.lastNeed ? t + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : t | |
} | |
function m(e) { | |
return e.toString(this.encoding) | |
} | |
function y(e) { | |
return e && e.length ? this.write(e) : "" | |
} | |
var x = e("safe-buffer").Buffer | |
, _ = x.isEncoding || function(e) { | |
switch (e = "" + e, | |
e && e.toLowerCase()) { | |
case "hex": | |
case "utf8": | |
case "utf-8": | |
case "ascii": | |
case "binary": | |
case "base64": | |
case "ucs2": | |
case "ucs-2": | |
case "utf16le": | |
case "utf-16le": | |
case "raw": | |
return !0; | |
default: | |
return !1; | |
} | |
} | |
; | |
n.StringDecoder = i, | |
i.prototype.write = function(e) { | |
if (0 === e.length) | |
return ""; | |
var t, n; | |
if (this.lastNeed) { | |
if (t = this.fillLast(e), | |
void 0 === t) | |
return ""; | |
n = this.lastNeed, | |
this.lastNeed = 0 | |
} else | |
n = 0; | |
return n < e.length ? t ? t + this.text(e, n) : this.text(e, n) : t || "" | |
} | |
, | |
i.prototype.end = function(e) { | |
var t = e && e.length ? this.write(e) : ""; | |
return this.lastNeed ? t + "\uFFFD".repeat(this.lastTotal - this.lastNeed) : t | |
} | |
, | |
i.prototype.text = function(e, t) { | |
var n = d(this, e, t); | |
if (!this.lastNeed) | |
return e.toString("utf8", t); | |
this.lastTotal = n; | |
var a = e.length - (n - this.lastNeed); | |
return e.copy(this.lastChar, 0, a), | |
e.toString("utf8", t, a) | |
} | |
, | |
i.prototype.fillLast = function(e) { | |
return this.lastNeed <= e.length ? (e.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), | |
this.lastChar.toString(this.encoding, 0, this.lastTotal)) : void (e.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, e.length), | |
this.lastNeed -= e.length) | |
} | |
} | |
, { | |
"safe-buffer": 26 | |
}], | |
29: [function(e, t) { | |
(function(e) { | |
function n(t) { | |
try { | |
if (!e.localStorage) | |
return !1 | |
} catch (e) { | |
return !1 | |
} | |
var n = e.localStorage[t]; | |
return null != n && "true" === (n + "").toLowerCase() | |
} | |
t.exports = function(e, t) { | |
function a() { | |
if (!o) { | |
if (n("throwDeprecation")) | |
throw new Error(t); | |
else | |
n("traceDeprecation") ? console.trace(t) : console.warn(t); | |
o = !0 | |
} | |
return e.apply(this, arguments) | |
} | |
if (n("noDeprecation")) | |
return e; | |
var o = !1; | |
return a | |
} | |
} | |
).call(this, "undefined" == typeof global ? "undefined" == typeof self ? "undefined" == typeof window ? {} : window : self : global) | |
} | |
, {}], | |
30: [function(e, t, n) { | |
arguments[4][8][0].apply(n, arguments) | |
} | |
, { | |
dup: 8 | |
}], | |
31: [function(e, t) { | |
t.exports = function(e) { | |
return e && "object" == typeof e && "function" == typeof e.copy && "function" == typeof e.fill && "function" == typeof e.readUInt8 | |
} | |
} | |
, {}], | |
32: [function(e, t, a) { | |
(function(t, n) { | |
function o(e, t) { | |
var n = { | |
seen: [], | |
stylize: s | |
}; | |
return 3 <= arguments.length && (n.depth = arguments[2]), | |
4 <= arguments.length && (n.colors = arguments[3]), | |
y(t) ? n.showHidden = t : t && a._extend(n, t), | |
k(n.showHidden) && (n.showHidden = !1), | |
k(n.depth) && (n.depth = 2), | |
k(n.colors) && (n.colors = !1), | |
k(n.customInspect) && (n.customInspect = !0), | |
n.colors && (n.stylize = i), | |
l(n, e, n.depth) | |
} | |
function i(e, t) { | |
var n = o.styles[t]; | |
return n ? "\x1B[" + o.colors[n][0] + "m" + e + "\x1B[" + o.colors[n][1] + "m" : e | |
} | |
function s(e) { | |
return e | |
} | |
function d(e) { | |
var t = {}; | |
return e.forEach(function(e) { | |
t[e] = !0 | |
}), | |
t | |
} | |
function l(e, t, o) { | |
if (e.customInspect && t && T(t.inspect) && t.inspect !== a.inspect && !(t.constructor && t.constructor.prototype === t)) { | |
var i = t.inspect(o, e); | |
return v(i) || (i = l(e, i, o)), | |
i | |
} | |
var s = u(e, t); | |
if (s) | |
return s; | |
var y = Object.keys(t) | |
, x = d(y); | |
if (e.showHidden && (y = Object.getOwnPropertyNames(t)), | |
E(t) && (0 <= y.indexOf("message") || 0 <= y.indexOf("description"))) | |
return p(t); | |
if (0 === y.length) { | |
if (T(t)) { | |
var _ = t.name ? ": " + t.name : ""; | |
return e.stylize("[Function" + _ + "]", "special") | |
} | |
if (w(t)) | |
return e.stylize(RegExp.prototype.toString.call(t), "regexp"); | |
if (C(t)) | |
return e.stylize(Date.prototype.toString.call(t), "date"); | |
if (E(t)) | |
return p(t) | |
} | |
var k = "" | |
, S = !1 | |
, P = ["{", "}"]; | |
if (m(t) && (S = !0, | |
P = ["[", "]"]), | |
T(t)) { | |
var D = t.name ? ": " + t.name : ""; | |
k = " [Function" + D + "]" | |
} | |
if (w(t) && (k = " " + RegExp.prototype.toString.call(t)), | |
C(t) && (k = " " + Date.prototype.toUTCString.call(t)), | |
E(t) && (k = " " + p(t)), | |
0 === y.length && (!S || 0 == t.length)) | |
return P[0] + k + P[1]; | |
if (0 > o) | |
return w(t) ? e.stylize(RegExp.prototype.toString.call(t), "regexp") : e.stylize("[Object]", "special"); | |
e.seen.push(t); | |
var n; | |
return n = S ? c(e, t, o, x, y) : y.map(function(n) { | |
return f(e, t, o, x, n, S) | |
}), | |
e.seen.pop(), | |
h(n, k, P) | |
} | |
function u(e, t) { | |
if (k(t)) | |
return e.stylize("undefined", "undefined"); | |
if (v(t)) { | |
var n = "'" + JSON.stringify(t).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, "\"") + "'"; | |
return e.stylize(n, "string") | |
} | |
return x(t) ? e.stylize("" + t, "number") : y(t) ? e.stylize("" + t, "boolean") : _(t) ? e.stylize("null", "null") : void 0 | |
} | |
function p(e) { | |
return "[" + Error.prototype.toString.call(e) + "]" | |
} | |
function c(e, t, n, a, o) { | |
for (var s = [], d = 0, u = t.length; d < u; ++d) | |
M(t, d + "") ? s.push(f(e, t, n, a, d + "", !0)) : s.push(""); | |
return o.forEach(function(o) { | |
o.match(/^\d+$/) || s.push(f(e, t, n, a, o, !0)) | |
}), | |
s | |
} | |
function f(e, t, n, a, o, i) { | |
var s, d, u; | |
if (u = Object.getOwnPropertyDescriptor(t, o) || { | |
value: t[o] | |
}, | |
u.get ? u.set ? d = e.stylize("[Getter/Setter]", "special") : d = e.stylize("[Getter]", "special") : u.set && (d = e.stylize("[Setter]", "special")), | |
M(a, o) || (s = "[" + o + "]"), | |
d || (0 > e.seen.indexOf(u.value) ? (d = _(n) ? l(e, u.value, null) : l(e, u.value, n - 1), | |
-1 < d.indexOf("\n") && (i ? d = d.split("\n").map(function(e) { | |
return " " + e | |
}).join("\n").substr(2) : d = "\n" + d.split("\n").map(function(e) { | |
return " " + e | |
}).join("\n"))) : d = e.stylize("[Circular]", "special")), | |
k(s)) { | |
if (i && o.match(/^\d+$/)) | |
return d; | |
s = JSON.stringify("" + o), | |
s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (s = s.substr(1, s.length - 2), | |
s = e.stylize(s, "name")) : (s = s.replace(/'/g, "\\'").replace(/\\"/g, "\"").replace(/(^"|"$)/g, "'"), | |
s = e.stylize(s, "string")) | |
} | |
return s + ": " + d | |
} | |
function h(e, t, n) { | |
var a = 0 | |
, o = e.reduce(function(e, t) { | |
return a++, | |
0 <= t.indexOf("\n") && a++, | |
e + t.replace(/\u001b\[\d\d?m/g, "").length + 1 | |
}, 0); | |
return 60 < o ? n[0] + ("" === t ? "" : t + "\n ") + " " + e.join(",\n ") + " " + n[1] : n[0] + t + " " + e.join(", ") + " " + n[1] | |
} | |
function m(e) { | |
return Array.isArray(e) | |
} | |
function y(e) { | |
return "boolean" == typeof e | |
} | |
function _(e) { | |
return null === e | |
} | |
function x(e) { | |
return "number" == typeof e | |
} | |
function v(e) { | |
return "string" == typeof e | |
} | |
function k(e) { | |
return void 0 === e | |
} | |
function w(e) { | |
return S(e) && "[object RegExp]" === P(e) | |
} | |
function S(e) { | |
return "object" == typeof e && null !== e | |
} | |
function C(e) { | |
return S(e) && "[object Date]" === P(e) | |
} | |
function E(t) { | |
return S(t) && ("[object Error]" === P(t) || t instanceof Error) | |
} | |
function T(e) { | |
return "function" == typeof e | |
} | |
function P(e) { | |
return Object.prototype.toString.call(e) | |
} | |
function D(e) { | |
return 10 > e ? "0" + e.toString(10) : e.toString(10) | |
} | |
function O() { | |
var e = new Date | |
, t = [D(e.getHours()), D(e.getMinutes()), D(e.getSeconds())].join(":"); | |
return [e.getDate(), A[e.getMonth()], t].join(" ") | |
} | |
function M(e, t) { | |
return Object.prototype.hasOwnProperty.call(e, t) | |
} | |
var R = /%[sdj%]/g; | |
a.format = function(e) { | |
if (!v(e)) { | |
for (var t = [], n = 0; n < arguments.length; n++) | |
t.push(o(arguments[n])); | |
return t.join(" ") | |
} | |
for (var n = 1, a = arguments, s = a.length, d = (e + "").replace(R, function(e) { | |
if ("%%" === e) | |
return "%"; | |
if (n >= s) | |
return e; | |
switch (e) { | |
case "%s": | |
return a[n++] + ""; | |
case "%d": | |
return +a[n++]; | |
case "%j": | |
try { | |
return JSON.stringify(a[n++]) | |
} catch (e) { | |
return "[Circular]" | |
} | |
default: | |
return e; | |
} | |
}), l = a[n]; n < s; l = a[++n]) | |
d += _(l) || !S(l) ? " " + l : " " + o(l); | |
return d | |
} | |
, | |
a.deprecate = function(e, o) { | |
function i() { | |
if (!s) { | |
if (t.throwDeprecation) | |
throw new Error(o); | |
else | |
t.traceDeprecation ? console.trace(o) : console.error(o); | |
s = !0 | |
} | |
return e.apply(this, arguments) | |
} | |
if (k(n.process)) | |
return function() { | |
return a.deprecate(e, o).apply(this, arguments) | |
} | |
; | |
if (!0 === t.noDeprecation) | |
return e; | |
var s = !1; | |
return i | |
} | |
; | |
var I = {}, z; | |
a.debuglog = function(e) { | |
if (k(z) && (z = t.env.NODE_DEBUG || ""), | |
e = e.toUpperCase(), | |
!I[e]) | |
if (new RegExp("\\b" + e + "\\b","i").test(z)) { | |
var n = t.pid; | |
I[e] = function() { | |
var t = a.format.apply(a, arguments); | |
console.error("%s %d: %s", e, n, t) | |
} | |
} else | |
I[e] = function() {} | |
; | |
return I[e] | |
} | |
, | |
a.inspect = o, | |
o.colors = { | |
bold: [1, 22], | |
italic: [3, 23], | |
underline: [4, 24], | |
inverse: [7, 27], | |
white: [37, 39], | |
grey: [90, 39], | |
black: [30, 39], | |
blue: [34, 39], | |
cyan: [36, 39], | |
green: [32, 39], | |
magenta: [35, 39], | |
red: [31, 39], | |
yellow: [33, 39] | |
}, | |
o.styles = { | |
special: "cyan", | |
number: "yellow", | |
boolean: "yellow", | |
undefined: "grey", | |
null: "bold", | |
string: "green", | |
date: "magenta", | |
regexp: "red" | |
}, | |
a.isArray = m, | |
a.isBoolean = y, | |
a.isNull = _, | |
a.isNullOrUndefined = function(e) { | |
return null == e | |
} | |
, | |
a.isNumber = x, | |
a.isString = v, | |
a.isSymbol = function(e) { | |
return "symbol" == typeof e | |
} | |
, | |
a.isUndefined = k, | |
a.isRegExp = w, | |
a.isObject = S, | |
a.isDate = C, | |
a.isError = E, | |
a.isFunction = T, | |
a.isPrimitive = function(e) { | |
return null === e || "boolean" == typeof e || "number" == typeof e || "string" == typeof e || "symbol" == typeof e || "undefined" == typeof e | |
} | |
, | |
a.isBuffer = e("./support/isBuffer"); | |
var A = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; | |
a.log = function() { | |
console.log("%s - %s", O(), a.format.apply(a, arguments)) | |
} | |
, | |
a.inherits = e("inherits"), | |
a._extend = function(e, t) { | |
if (!t || !S(t)) | |
return e; | |
for (var n = Object.keys(t), a = n.length; a--; ) | |
e[n[a]] = t[n[a]]; | |
return e | |
} | |
} | |
).call(this, e("_process"), "undefined" == typeof global ? "undefined" == typeof self ? "undefined" == typeof window ? {} : window : self : global) | |
} | |
, { | |
"./support/isBuffer": 31, | |
_process: 12, | |
inherits: 30 | |
}], | |
33: [function(e) { | |
function t() {} | |
function n(e) { | |
var t = e | |
, n = h(t / 3600) | |
, a = h((t - 3600 * n) / 60); | |
return n + "h " + a + "min " + (t - 3600 * n - 60 * a) + "s" | |
} | |
function a(e, t) { | |
var n = e % S.chunkSize, a = t % S.chunkSize, o; | |
0 > n && (n += S.chunkSize), | |
0 > a && (a += S.chunkSize); | |
var o = W.tiledCanvas.chunks[h(e / S.chunkSize)][h(t / S.chunkSize)].canvas.getContext("2d").getImageData(n, a, 1, 1).data; | |
return new Uint8ClampedArray([o[0], o[1], o[2]]) | |
} | |
function o(e, t, n) { | |
var o = a(e, t); | |
id = O.getColorIdFromRGB(o); | |
id == document.ESU.palette.currentColorId || (document.ESU.stats.personal.incrementTotalPlacedPixelsArray(1, n), | |
W.setPixel(e, t, O.getColorStrFromId(n)), | |
window.canPlace = Q = !1, | |
J = Date.now(), | |
M.emit("t", (e + S.worldSize / 2 << 13 | t + S.worldSize / 2) << 4 | n), | |
!q && (document.ESU.selector.hide(), | |
document.ESU.selector.onClick()), | |
Y.play(), | |
document.ESU.timer.setTimerCounter(S.delay), | |
document.ESU.timer.show(), | |
document.ESU.message.hide()) | |
} | |
function i() { | |
L = f(W.tiledCanvas.leftTopX + window.innerWidth / 2 / W.tiledCanvas.zoom), | |
B = f(W.tiledCanvas.leftTopY + window.innerHeight / 2 / W.tiledCanvas.zoom), | |
1 == W.tiledCanvas.zoom ? s("coords", "/?p=" + L + "," + B) : s("coords", "/?p=" + L + "," + B + "," + f(W.tiledCanvas.zoom)), | |
document.ESU.message.setShareLinksURL(window.location.href) | |
} | |
function s(e, t) { | |
if ("file:" != window.location.protocol) | |
if ("undefined" != typeof history.replaceState) { | |
var n = { | |
Page: e, | |
Url: t | |
}; | |
history.replaceState(n, n.Page, n.Url) | |
} else | |
alert("HTML5 isn't supported on this browser.") | |
} | |
function d(e, t, a) { | |
if (document.ESU.settings.notif) { | |
var o = new Notification(a,{ | |
body: e, | |
icon: t, | |
sound: "res/sfx/bip2.mp3" | |
}); | |
o.onclick = function() { | |
window.focus(), | |
this.close() | |
} | |
} | |
} | |
function l() { | |
return Q || 4e3 < Date.now() - J | |
} | |
function u(e) { | |
re = (e.touches[0].pageX - e.touches[1].pageX) * (e.touches[0].pageX - e.touches[1].pageX) + (e.touches[0].pageY - e.touches[1].pageY) * (e.touches[0].pageY - e.touches[1].pageY) | |
} | |
function p(e) { | |
var t = ((e.touches[0].pageX - e.touches[1].pageX) * (e.touches[0].pageX - e.touches[1].pageX) + (e.touches[0].pageY - e.touches[1].pageY) * (e.touches[0].pageY - e.touches[1].pageY)) / re | |
, n = { | |
x: (e.touches[0].pageX + e.touches[1].pageX) / 2, | |
y: (e.touches[0].pageY + e.touches[1].pageY) / 2 | |
}; | |
0 == document.ESU.mode.getCurrentModeId() && (W.tiledCanvas.leftTopX += n.x / W.tiledCanvas.zoom, | |
W.tiledCanvas.leftTopY += n.y / W.tiledCanvas.zoom, | |
W.tiledCanvas.zoom = t * ne, | |
64 < W.tiledCanvas.zoom ? W.tiledCanvas.zoom = 64 : 1 > W.tiledCanvas.zoom && (W.tiledCanvas.zoom = 1), | |
W.tiledCanvas.leftTopX -= n.x / W.tiledCanvas.zoom, | |
W.tiledCanvas.leftTopY -= n.y / W.tiledCanvas.zoom, | |
W.tiledCanvas.redraw(!0), | |
j.limit()) | |
} | |
function c() { | |
0 == document.ESU.mode.getCurrentModeId() && (ne = W.tiledCanvas.zoom, | |
i()) | |
} | |
var f = Math.round | |
, h = Math.floor; | |
document.ESU = {}; | |
var m = e("socket.io-stream") | |
, _ = e("socket.io-client") | |
, v = e("fs") | |
, k = e("./src/TiledCanvas/TiledCanvas.js") | |
, w = e("./src/pzntg/pzntg.js") | |
, S = e("../common/config/global_config.js") | |
, C = e("../common/src/Compressor.js") | |
, E = e("../common/src/Uint4Array.js") | |
, T = e("./src/View.js") | |
, P = e("./src/World.js") | |
, D = e("./src/ChunkManager.js") | |
, O = e("./src/Colors"); | |
document.ESU.onCookiesAgreement = function() { | |
document.ESU.storage && localStorage.setItem("acceptCookies", !0) | |
} | |
, | |
document.ESU.settings = {}, | |
document.ESU.settings.apply = function(e) { | |
var t; | |
Object.keys(e).forEach(function(n) { | |
switch (t = e[n], | |
n) { | |
case "soundVolume": | |
Y.volume = t, | |
V.volume = t; | |
break; | |
case "grid": | |
j.setGridVisibility(t); | |
break; | |
default: | |
} | |
}) | |
} | |
, | |
document.ESU.stats = {}, | |
document.ESU.stats.react = {}, | |
document.ESU.stats.react.handleOpen = function() { | |
M && M.emit("listenLiveStats") | |
} | |
, | |
document.ESU.stats.react.handleClose = function() { | |
M && M.emit("closeLiveStats") | |
} | |
, | |
document.ESU.stats.react.config = { | |
backgroundColor: O.colorsPalette.map(e=>O.getColorStrFromRGB(e)), | |
labels: ["Dark grey", "Black", "Grey", "White", "Brown", "Pink", "Fuchsia", "Purple", "Red", "Orange", "Yellow", "Light green", "Green", "Cyan", "Turquoise", "Blue"] | |
}, | |
document.ESU.stats.react.connectedPlayersUpdate = function() { | |
"undefined" == typeof document.ESU.stats.global.connectedPlayers || document.ESU.stats.react.textg1 && document.ESU.stats.react.textg1.setContent(" \u2022 Live connected players : " + document.ESU.stats.global.connectedPlayers) | |
} | |
, | |
document.ESU.stats.react.placedPixelsUpdate = function() { | |
"undefined" == typeof document.ESU.stats.global.placedPixels || document.ESU.stats.react.textg2 && document.ESU.stats.react.textg2.setContent(" \u2022 Live placed pixels in the last 24 hours : " + document.ESU.stats.global.placedPixels) | |
} | |
, | |
document.ESU.stats.react.pieUpdate = function() { | |
"undefined" == typeof document.ESU.stats.personal.totalPlacedPixelsArray || document.ESU.stats.react.chartp1 && (document.ESU.stats.react.chartp1.setLabels(document.ESU.stats.react.config.labels), | |
document.ESU.stats.react.chartp1.setData(document.ESU.stats.personal.totalPlacedPixelsArray), | |
document.ESU.stats.react.chartp1.setBackgroundColor(document.ESU.stats.react.config.backgroundColor), | |
document.ESU.stats.react.chartp1.setHoverBackgroundColor(document.ESU.stats.react.config.backgroundColor)) | |
} | |
, | |
document.ESU.stats.react.totalPlacedPixelsUpdate = function() { | |
"undefined" == typeof document.ESU.stats.personal.totalPlacedPixels || document.ESU.stats.react.textp1 && document.ESU.stats.react.textp1.setContent(" \u2022 Your total placed pixels : " + document.ESU.stats.personal.totalPlacedPixels) | |
} | |
, | |
document.ESU.stats.react.totalPlayTimeUpdate = function() { | |
"undefined" == typeof document.ESU.stats.personal.totalPlayTime || document.ESU.stats.react.textp2 && document.ESU.stats.react.textp2.setContent(" \u2022 Your total play time : " + n(document.ESU.stats.personal.totalPlayTime)) | |
} | |
, | |
document.ESU.stats.global = {}, | |
document.ESU.stats.global.placedPixels = void 0, | |
document.ESU.stats.global.connectedPlayers = void 0, | |
document.ESU.stats.global.setPlacedPixels = function(e) { | |
document.ESU.stats.global.placedPixels = e, | |
document.ESU.stats.react.placedPixelsUpdate() | |
} | |
, | |
document.ESU.stats.global.setConnectedPlayers = function(e) { | |
document.ESU.stats.global.connectedPlayers = e, | |
document.ESU.stats.react.connectedPlayersUpdate() | |
} | |
, | |
document.ESU.stats.personal = {}, | |
document.ESU.stats.personal.totalPlayTime = void 0, | |
document.ESU.stats.personal.totalPlacedPixels = void 0, | |
document.ESU.stats.personal.totalPlacedPixelsArray = void 0, | |
document.ESU.stats.personal.incrementTotalPlayTime = function(e) { | |
"undefined" == typeof document.ESU.stats.personal.totalPlayTime || (document.ESU.stats.personal.totalPlayTime += e, | |
document.ESU.stats.react.totalPlayTimeUpdate()) | |
} | |
, | |
document.ESU.stats.personal.incrementTotalPlacedPixelsArray = function(e, t) { | |
"undefined" == typeof document.ESU.stats.personal.totalPlacedPixels || "undefined" == typeof document.ESU.stats.personal.totalPlacedPixelsArray || (document.ESU.stats.personal.totalPlacedPixels += e, | |
document.ESU.stats.personal.totalPlacedPixelsArray[t] += e, | |
document.ESU.stats.react.totalPlacedPixelsUpdate(), | |
document.ESU.stats.react.pieUpdate()) | |
} | |
, | |
document.ESU.stats.personal.load = function() { | |
if (document.ESU.storage) { | |
var e = localStorage.getItem("pixelzonePlacedPixelsArray"); | |
if ("string" == typeof e) | |
try { | |
document.ESU.stats.personal.totalPlacedPixelsArray = JSON.parse(e), | |
(!document.ESU.stats.personal.totalPlacedPixelsArray.length || 16 < document.ESU.stats.personal.totalPlacedPixelsArray.length) && (e = "[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]", | |
localStorage.setItem("pixelzonePlacedPixelsArray", e)), | |
document.ESU.stats.personal.totalPlacedPixels = 0; | |
for (var t = 0; 16 > t; t++) | |
document.ESU.stats.personal.totalPlacedPixels += document.ESU.stats.personal.totalPlacedPixelsArray[t] | |
} catch (t) { | |
console.log("ERROR document.ESU.stats.personal.load : JSON parsing error !"), | |
console.log(t) | |
} | |
else | |
e = "[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]", | |
localStorage.setItem("pixelzonePlacedPixelsArray", e), | |
document.ESU.stats.personal.totalPlacedPixels = 0; | |
if (e = localStorage.getItem("pixelzoneTotalPlayTime"), | |
"string" == typeof e) { | |
var n = parseFloat(e); | |
"number" == typeof n ? document.ESU.stats.personal.totalPlayTime = n : (document.ESU.stats.personal.totalPlayTime = 0, | |
localStorage.setItem("pixelzoneTotalPlayTime", "0")) | |
} else | |
document.ESU.stats.personal.totalPlayTime = 0, | |
localStorage.setItem("pixelzoneTotalPlayTime", "0"); | |
document.ESU.stats.react.totalPlacedPixelsUpdate(), | |
document.ESU.stats.react.totalPlayTimeUpdate(), | |
document.ESU.stats.react.pieUpdate() | |
} | |
} | |
, | |
document.ESU.stats.personal.save = function() { | |
document.ESU.storage && ("undefined" != typeof document.ESU.stats.personal.totalPlacedPixelsArray && localStorage.setItem("pixelzonePlacedPixelsArray", JSON.stringify(document.ESU.stats.personal.totalPlacedPixelsArray)), | |
"undefined" != typeof document.ESU.stats.personal.totalPlayTime && localStorage.setItem("pixelzoneTotalPlayTime", JSON.stringify(document.ESU.stats.personal.totalPlayTime))) | |
} | |
, | |
document.ESU.image = {}, | |
document.ESU.image.getImageFromCompressedChunkData = function(e, t) { | |
C.decompressChunkData(e, 0, function(e) { | |
document.ESU.image.getImageFromDecompressedChunkData(e, function(n) { | |
t(n, e) | |
}) | |
}) | |
} | |
, | |
document.ESU.image.getImageFromDecompressedChunkData = function(e, t) { | |
var n = S.chunkSize * S.chunkSize | |
, a = new E(e) | |
, o = new Uint8Array(n); | |
if (!(n > 2 * a.uint8Array.length)) { | |
for (var s = 0; s < n; s++) | |
o[s] = a.get(s); | |
a = []; | |
var d = [], l = S.chunkSize, s, u; | |
for (s = 0, | |
u = o.length; s < u; s += l) | |
d.push(o.slice(s, s + l)); | |
o = [], | |
w.create({ | |
pixels: d, | |
palette: O.getRGBAColorsPalette(), | |
scale: 1, | |
callback: function(e) { | |
var n = new Image; | |
n.src = e, | |
t(n) | |
} | |
}) | |
} | |
} | |
, | |
document.ESU.mode = {}, | |
document.ESU.mode.currentModeId = 0, | |
document.ESU.mode.setCurrentModeId = function(e) { | |
document.ESU.mode.currentModeId = e, | |
0 == e && (N.leftTopX = W.tiledCanvas.leftTopX, | |
N.leftTopY = W.tiledCanvas.leftTopY, | |
N.zoom = W.tiledCanvas.zoom, | |
N.newZoom = W.tiledCanvas.newZoom, | |
W.tiledCanvas = N, | |
W.tiledCanvas.execute()) | |
} | |
, | |
document.ESU.mode.getCurrentModeId = function() { | |
return document.ESU.mode.currentModeId | |
} | |
, | |
document.ESU.timer = {}, | |
document.ESU.message = {}, | |
document.ESU.message.spawnRate = .1, | |
document.ESU.palette = {}, | |
document.ESU.palette.currentColorId = 1, | |
document.ESU.coords = {}, | |
document.ESU.playerCounter = {}, | |
document.ESU.selector = {}, | |
document.ESU.selector.lastColorId = 0, | |
document.ESU.selector.setMousePos = function(e, t, n) { | |
const o = W.tiledCanvas.zoom | |
, i = e / W.tiledCanvas.zoom | |
, s = t / W.tiledCanvas.zoom; | |
var d = W.convertScreenPosToWorldPos(i * W.tiledCanvas.zoom, s * W.tiledCanvas.zoom); | |
d.x = h(d.x) + .5, | |
d.y = h(d.y) + .5; | |
var l = W.convertWorldPosToScreenPos(d.x, d.y); | |
document.ESU.selector.setPos(l.x / W.tiledCanvas.zoom, l.y / W.tiledCanvas.zoom, n); | |
var u = O.getColorIdFromRGB(a(d.x, d.y)); | |
document.ESU.selector.lastColorId != u && (1 == u ? document.ESU.selector.setBorderColor("grey") : document.ESU.selector.setBorderColor("black"), | |
document.ESU.selector.lastColorId = u) | |
} | |
; | |
e("./react-client/build/static/js/main.js"); | |
console.log("hey"); | |
var M = _() | |
, R = document.getElementById("canvas") | |
, I = R.getContext("2d") | |
, z = window.devicePixelRatio || 1; | |
window.proxySocket = _; | |
window.socket = M; | |
M.emit("m"); //hello | |
R.width = screen.width * z, | |
R.height = screen.height * z; | |
var A = function(e) { | |
return decodeURIComponent((RegExp("[?|&]" + e + "=(.+?)(&|$)").exec(location.search) || [null, null])[1]) | |
}("p") | |
, U = 1 | |
, L = 0 | |
, B = 0; | |
"null" != A && (A = A.split(","), | |
L = +A[0], | |
B = +A[1], | |
2 < A.length && (U = +A[2])); | |
var N = new k(R,{ | |
chunkSize: S.chunkSize, | |
fadeTime: 100, | |
maxLoadedChunks: 5 | |
}) | |
, F = new Image; | |
F.src = "res/img/bg_512.png", | |
N.loadingImage = F, | |
N.drawingRegion(-S.worldSize / 2, -S.worldSize / 2, S.worldSize / 2, S.worldSize / 2); | |
var W = new P(N) | |
, j = new T(W,window,L,B,U) | |
, H = new D(M,N); | |
N.redrawCallback = function() { | |
0 == document.ESU.mode.getCurrentModeId() ? j.drawGrid() : I.clearRect(0, 0, R.width, R.height) | |
} | |
, | |
j.smoothZoomCallback = function() { | |
i() | |
} | |
; | |
var Y = new Audio("res/sfx/bip1.ogg") | |
, V = new Audio("res/sfx/bip2.mp3"); | |
window.mobilecheck = function() { | |
var e = !1; | |
return function(t) { | |
(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0, 4))) && (e = !0) | |
}(navigator.userAgent || navigator.vendor || window.opera), | |
e | |
} | |
, | |
window.mobileAndTabletcheck = function() { | |
var e = !1; | |
return function(t) { | |
(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0, 4))) && (e = !0) | |
}(navigator.userAgent || navigator.vendor || window.opera), | |
e | |
} | |
; | |
var q = window.mobileAndTabletcheck() | |
, X = 0; | |
M.on("b", function(e) { //count | |
-1 == e ? (document.ESU.timer.hide(), | |
X = Math.random(), | |
X < document.ESU.message.spawnRate && (document.ESU.message.setMessageId(h(1 + 2 * Math.random())), | |
document.ESU.message.show()), | |
window.canPlace = Q = !0, | |
!G && !Z && (d("Your next pixel is now available", "res/img/logo64.png", "PIXEL ZONE"), | |
V.play()), | |
!q && document.ESU.selector.show()) : (document.ESU.timer.setTimerCounter(Math.max(S.delay - e, 0)), | |
document.ESU.timer.show(), | |
document.ESU.message.hide(), | |
window.canPlace = Q = !1) | |
}), | |
M.on("t", function(e) { //pp | |
W.setPixel((e >>> 17) - S.worldSize / 2, ((131056 & e) >>> 4) - S.worldSize / 2, O.getColorStrFromId(15 & e)) | |
}), | |
M.on("c", function(e) { | |
setTimeout(function() { | |
document.ESU.image.getImageFromCompressedChunkData(e.data, t=>{ | |
H.pushChunkImg({ | |
img: t, | |
cx: e.cx - S.worldSize / S.chunkSize / 2, | |
cy: e.cy - S.worldSize / S.chunkSize / 2 | |
}) | |
} | |
) | |
}, 0) | |
}), | |
M.on("e", function(e) { // connectedPlayers | |
document.ESU.stats.global.setConnectedPlayers(e), | |
document.ESU.playerCounter.setCount(e) | |
}), | |
M.on("placedPixels", function(e) { // idk | |
document.ESU.stats.global.setPlacedPixels(e) | |
}), | |
M.on("timestamps", function(e) { // idk | |
C.decompressString(e, function(e) { | |
try { | |
for (var t = JSON.parse(e), n = [], a = [], o = 0; o < t.connectedPlayersTimestamp.length; o++) | |
n.push(new Date(t.connectedPlayersTimestamp[o].date).toLocaleTimeString()), | |
a.push(t.connectedPlayersTimestamp[o].val); | |
document.ESU.stats.react.config.datesg1 = n, | |
document.ESU.stats.react.config.valsg1 = a, | |
document.ESU.stats.react.chartg1 && (document.ESU.stats.react.chartg1.setLabels(n), | |
document.ESU.stats.react.chartg1.setData(a)), | |
n = [], | |
a = []; | |
for (var o = 0; o < t.placedPixelsTimestamp.length; o++) | |
n.push(new Date(t.placedPixelsTimestamp[o].date).toLocaleTimeString()), | |
a.push(t.placedPixelsTimestamp[o].val); | |
document.ESU.stats.react.config.datesg2 = n, | |
document.ESU.stats.react.config.valsg2 = a, | |
document.ESU.stats.react.chartg2 && (document.ESU.stats.react.chartg2.setLabels(n), | |
document.ESU.stats.react.chartg2.setData(a)) | |
} catch (t) { | |
console.log("ERROR socket.on(\"timestamps\") : JSON parsing error !"), | |
console.log(t) | |
} | |
}) | |
}), | |
M.on("info", function(e) { | |
console.log(e) | |
}); | |
var G = !0; | |
window.onfocus = function() { | |
G = !0 | |
} | |
, | |
window.onblur = function() { | |
G = !1 | |
} | |
, | |
document.ESU.message.setShareLinksURL(window.location.href), | |
document.ESU.onCaptchaSub = function(e) { | |
M.emit("j", { // captcha? | |
token: e | |
}) | |
} | |
; | |
var Z = !1 | |
, K = !1 | |
, $ = !1; | |
window.captchaTest = Z; | |
M.on("u", function() { // captcha test | |
window.captchaTest = Z = !0 | |
}), | |
window.onload = function() { | |
M.on("j", function(e) { | |
K = !1, | |
e.success ? (window.captchaTest = Z = !1, | |
t()) : (window.captchaTest = Z = !0, | |
grecaptcha.reset(), | |
grecaptcha.execute()) | |
}) | |
} | |
, | |
"undefined" != typeof Storage && (document.ESU.storage = !0), | |
document.ESU.storage && "true" != localStorage.getItem("acceptCookies") && document.ESU.message.show(), | |
document.ESU.storage && document.ESU.stats.personal.load(); | |
var Q = !0 | |
, J = Date.now(); | |
document.ESU.coords.setCoords(L, B), | |
document.ESU.playerCounter.setCount("?"), | |
q || (document.ESU.selector.show(), | |
document.ESU.selector.setZoom(U)), | |
document.title = "pixelzone.io", | |
setInterval(function() { | |
$ = !1 | |
}, 3e3), | |
setInterval(function() { | |
G && document.ESU.stats.personal.incrementTotalPlayTime(1) | |
}, 1e3), | |
setTimeout(function() { | |
setInterval(function() { | |
0 == document.ESU.mode.getCurrentModeId() && (!H.req || 100 < Date.now() - H.lastReq) && H.update() | |
}, 40) | |
}, 200), | |
window.onunload = function() { | |
document.ESU.storage && document.ESU.stats.personal.save() | |
} | |
; | |
var ee = !1, te = 0, ne = 1, ae = 0, oe = 0, re; | |
R.addEventListener("touchstart", function(e) { | |
if (2 == e.touches.length) | |
ee = !0, | |
u(e); | |
else { | |
ae = e.touches[0].pageX, | |
oe = e.touches[0].pageY, | |
i(); | |
const t = W.convertScreenPosToWorldPos(R.width / 2, R.height / 2); | |
document.ESU.coords.setCoords(t.x, t.y) | |
} | |
}, !1), | |
R.addEventListener("touchmove", function(e) { | |
e.preventDefault(), | |
te = e.touches.length, | |
ee ? p(e) : (0 == document.ESU.mode.getCurrentModeId() && (W.tiledCanvas.goto(W.tiledCanvas.leftTopX + (ae - e.touches[0].pageX) / W.tiledCanvas.zoom, W.tiledCanvas.leftTopY + (oe - e.touches[0].pageY) / W.tiledCanvas.zoom), | |
j.limit()), | |
ae = e.touches[0].pageX, | |
oe = e.touches[0].pageY) | |
}, !1), | |
R.addEventListener("touchend", function(e) { | |
if (ee) | |
c(e), | |
ee = !1, | |
ae = e.touches[0].pageX, | |
oe = e.touches[0].pageY; | |
else { | |
i(); | |
const e = W.convertScreenPosToWorldPos(R.width / 2, R.height / 2); | |
document.ESU.coords.setCoords(e.x, e.y) | |
} | |
}, !1); | |
document.addEventListener("keydown", function(t) { | |
var e = 0 | |
, a = 0 | |
, o = 0 | |
, i = document.ESU.mode.getCurrentModeId(); | |
switch (t.key) { | |
case "ArrowUp": | |
a -= 1; | |
break; | |
case "ArrowDown": | |
a += 1; | |
break; | |
case "ArrowRight": | |
e += 1; | |
break; | |
case "ArrowLeft": | |
e -= 1; | |
break; | |
case "g": | |
if (0 == i) { | |
var s = !document.ESU.settings.getTemp("grid"); | |
document.ESU.settings.set("grid", s), | |
j.setGridVisibility(s) | |
} | |
break; | |
default: | |
} | |
o = Math.sqrt(e * e + a * a), | |
0 < o && 0 == i && (W.tiledCanvas.goto(W.tiledCanvas.leftTopX + 64 * e / o / W.tiledCanvas.zoom, W.tiledCanvas.leftTopY + 64 * a / o / W.tiledCanvas.zoom), | |
j.limit()) | |
}); | |
var ie = 0 | |
, se = !1; | |
document.addEventListener("mouseup", function() { | |
se = !1, | |
i(), | |
l() && !q && document.ESU.selector.show(), | |
document.body.style.cursor = "auto" | |
}, !1), | |
R.addEventListener("mouseup", function(e) { | |
if (se = !1, | |
i(), | |
10 > ie && 0 == document.ESU.mode.getCurrentModeId()) | |
if (Z) { | |
if (t = function() { | |
var t = W.convertScreenPosToWorldPos(e.x, e.y) | |
, n = h(t.x) | |
, a = h(t.y); | |
o(n, a, document.ESU.palette.currentColorId) | |
} | |
, | |
K) | |
return $ || (grecaptcha.reset(), | |
grecaptcha.execute()), | |
void ($ = !0); | |
grecaptcha.reset(), | |
grecaptcha.execute(), | |
K = !0 | |
} else if (l()) { | |
var n = W.convertScreenPosToWorldPos(e.x, e.y) | |
, a = h(n.x) | |
, s = h(n.y); | |
o(a, s, document.ESU.palette.currentColorId) | |
} | |
l() || (document.body.style.cursor = "auto") | |
}, !1), | |
R.addEventListener("mousedown", function() { | |
se = !0, | |
ie = 0 | |
}, !1), | |
R.addEventListener("mousewheel", function(e) { | |
if (e.preventDefault(), | |
0 == document.ESU.mode.getCurrentModeId()) { | |
var t = e.wheelDelta / 120; | |
0 < t && (W.tiledCanvas.newZoom *= 2), | |
0 > t && (W.tiledCanvas.newZoom /= 2), | |
64 < W.tiledCanvas.newZoom ? (W.tiledCanvas.newZoom = 64, | |
t = 0) : 1 > W.tiledCanvas.newZoom && (W.tiledCanvas.newZoom = 1, | |
t = 0), | |
i(), | |
j.smoothZoom(ae, oe, W.tiledCanvas.newZoom) | |
} | |
}, !1), | |
R.addEventListener("DOMMouseScroll", function(e) { | |
if (e.preventDefault(), | |
0 == document.ESU.mode.getCurrentModeId()) { | |
var t = -e.detail / 120; | |
0 < t && (W.tiledCanvas.newZoom *= 2), | |
0 > t && (W.tiledCanvas.newZoom /= 2), | |
64 < W.tiledCanvas.newZoom ? (W.tiledCanvas.newZoom = 64, | |
t = 0) : 1 > W.tiledCanvas.newZoom && (W.tiledCanvas.newZoom = 1, | |
t = 0), | |
j.smoothZoom(ae, oe, W.tiledCanvas.newZoom), | |
i() | |
} | |
}, !1), | |
document.addEventListener("mousemove", function(e) { | |
var t = document.ESU.mode.getCurrentModeId(); | |
if (se && (e.preventDefault(), | |
0 == t && (W.tiledCanvas.goto(W.tiledCanvas.leftTopX - (e.x - ae) / W.tiledCanvas.zoom, W.tiledCanvas.leftTopY - (e.y - oe) / W.tiledCanvas.zoom), | |
j.limit()), | |
ie++, | |
1 < ie && "move" != document.body.style.cursor && (document.body.style.cursor = "move", | |
!q && document.ESU.selector.hide())), | |
0 == t) { | |
const t = W.convertScreenPosToWorldPos(e.x, e.y); | |
document.ESU.coords.setCoords(t.x, t.y), | |
q || document.ESU.selector.setMousePos(e.x, e.y, !se) | |
} | |
ae = e.x, | |
oe = e.y | |
}, !1) | |
} | |
, { | |
"../common/config/global_config.js": 109, | |
"../common/src/Compressor.js": 115, | |
"../common/src/Uint4Array.js": 116, | |
"./react-client/build/static/js/main.js": 100, | |
"./src/ChunkManager.js": 101, | |
"./src/Colors": 102, | |
"./src/TiledCanvas/TiledCanvas.js": 103, | |
"./src/View.js": 104, | |
"./src/World.js": 105, | |
"./src/pzntg/pzntg.js": 107, | |
fs: 1, | |
"socket.io-client": 80, | |
"socket.io-stream": 88 | |
}], | |
34: [function(e, t) { | |
function n() {} | |
t.exports = function(e, t, a) { | |
function o(e, n) { | |
if (0 >= o.count) | |
throw new Error("after called too many times"); | |
--o.count, | |
e ? (i = !0, | |
t(e), | |
t = a) : 0 === o.count && !i && t(null, n) | |
} | |
var i = !1; | |
return a = a || n, | |
o.count = e, | |
0 === e ? t() : o | |
} | |
} | |
, {}], | |
35: [function(e, t) { | |
t.exports = function(e, t, n) { | |
var a = e.byteLength; | |
if (t = t || 0, | |
n = n || a, | |
e.slice) | |
return e.slice(t, n); | |
if (0 > t && (t += a), | |
0 > n && (n += a), | |
n > a && (n = a), | |
t >= a || t >= n || 0 === a) | |
return new ArrayBuffer(0); | |
for (var o = new Uint8Array(e), s = new Uint8Array(n - t), d = t, l = 0; d < n; d++, | |
l++) | |
s[l] = o[d]; | |
return s.buffer | |
} | |
} | |
, {}], | |
36: [function(e, t) { | |
function n(e) { | |
e = e || {}, | |
this.ms = e.min || 100, | |
this.max = e.max || 1e4, | |
this.factor = e.factor || 2, | |
this.jitter = 0 < e.jitter && 1 >= e.jitter ? e.jitter : 0, | |
this.attempts = 0 | |
} | |
var a = Math.floor; | |
t.exports = n, | |
n.prototype.duration = function() { | |
var e = this.ms * Math.pow(this.factor, this.attempts++); | |
if (this.jitter) { | |
var t = Math.random() | |
, n = a(t * this.jitter * e); | |
e = 0 == (1 & a(10 * t)) ? e - n : e + n | |
} | |
return 0 | Math.min(e, this.max) | |
} | |
, | |
n.prototype.reset = function() { | |
this.attempts = 0 | |
} | |
, | |
n.prototype.setMin = function(e) { | |
this.ms = e | |
} | |
, | |
n.prototype.setMax = function(e) { | |
this.max = e | |
} | |
, | |
n.prototype.setJitter = function(e) { | |
this.jitter = e | |
} | |
} | |
, {}], | |
37: [function(e, t, n) { | |
(function() { | |
"use strict"; | |
for (var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", t = new Uint8Array(256), a = 0; a < e.length; a++) | |
t[e.charCodeAt(a)] = a; | |
n.encode = function(t) { | |
var n = new Uint8Array(t), a = n.length, o = "", s; | |
for (s = 0; s < a; s += 3) | |
o += e[n[s] >> 2], | |
o += e[(3 & n[s]) << 4 | n[s + 1] >> 4], | |
o += e[(15 & n[s + 1]) << 2 | n[s + 2] >> 6], | |
o += e[63 & n[s + 2]]; | |
return 2 == a % 3 ? o = o.substring(0, o.length - 1) + "=" : 1 == a % 3 && (o = o.substring(0, o.length - 2) + "=="), | |
o | |
} | |
, | |
n.decode = function(e) { | |
var n = .75 * e.length, a = e.length, o = 0, s, d, l, u, c; | |
"=" === e[e.length - 1] && (n--, | |
"=" === e[e.length - 2] && n--); | |
var f = new ArrayBuffer(n) | |
, h = new Uint8Array(f); | |
for (s = 0; s < a; s += 4) | |
d = t[e.charCodeAt(s)], | |
l = t[e.charCodeAt(s + 1)], | |
u = t[e.charCodeAt(s + 2)], | |
c = t[e.charCodeAt(s + 3)], | |
h[o++] = d << 2 | l >> 4, | |
h[o++] = (15 & l) << 4 | u >> 2, | |
h[o++] = (3 & u) << 6 | 63 & c; | |
return f | |
} | |
} | |
)() | |
} | |
, {}], | |
38: [function(e, t, n) { | |
"use strict"; | |
function a(e) { | |
var t = e.length; | |
if (0 < t % 4) | |
throw new Error("Invalid string. Length must be a multiple of 4"); | |
var n = e.indexOf("="); | |
-1 === n && (n = t); | |
var a = n === t ? 0 : 4 - n % 4; | |
return [n, a] | |
} | |
function o(e, t, n) { | |
return 3 * (t + n) / 4 - n | |
} | |
function s(e) { | |
for (var t = a(e), n = t[0], s = t[1], d = new f(o(e, n, s)), l = 0, u = 0 < s ? n - 4 : n, p = 0, h; p < u; p += 4) | |
h = c[e.charCodeAt(p)] << 18 | c[e.charCodeAt(p + 1)] << 12 | c[e.charCodeAt(p + 2)] << 6 | c[e.charCodeAt(p + 3)], | |
d[l++] = 255 & h >> 16, | |
d[l++] = 255 & h >> 8, | |
d[l++] = 255 & h; | |
return 2 === s && (h = c[e.charCodeAt(p)] << 2 | c[e.charCodeAt(p + 1)] >> 4, | |
d[l++] = 255 & h), | |
1 === s && (h = c[e.charCodeAt(p)] << 10 | c[e.charCodeAt(p + 1)] << 4 | c[e.charCodeAt(p + 2)] >> 2, | |
d[l++] = 255 & h >> 8, | |
d[l++] = 255 & h), | |
d | |
} | |
function d(e) { | |
return p[63 & e >> 18] + p[63 & e >> 12] + p[63 & e >> 6] + p[63 & e] | |
} | |
function l(e, t, n) { | |
for (var a = [], o = t, s; o < n; o += 3) | |
s = (16711680 & e[o] << 16) + (65280 & e[o + 1] << 8) + (255 & e[o + 2]), | |
a.push(d(s)); | |
return a.join("") | |
} | |
function u(e) { | |
for (var t = e.length, n = t % 3, a = [], o = 16383, s = 0, d = t - n, u; s < d; s += o) | |
a.push(l(e, s, s + o > d ? d : s + o)); | |
return 1 === n ? (u = e[t - 1], | |
a.push(p[u >> 2] + p[63 & u << 4] + "==")) : 2 === n && (u = (e[t - 2] << 8) + e[t - 1], | |
a.push(p[u >> 10] + p[63 & u >> 4] + p[63 & u << 2] + "=")), | |
a.join("") | |
} | |
n.byteLength = function(e) { | |
var t = a(e) | |
, n = t[0] | |
, o = t[1]; | |
return 3 * (n + o) / 4 - o | |
} | |
, | |
n.toByteArray = s, | |
n.fromByteArray = u; | |
for (var p = [], c = [], f = "undefined" == typeof Uint8Array ? Array : Uint8Array, h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", m = 0, y = h.length; m < y; ++m) | |
p[m] = h[m], | |
c[h.charCodeAt(m)] = m; | |
c[45] = 62, | |
c[95] = 63 | |
} | |
, {}], | |
39: [function(e, t) { | |
function n(e) { | |
return e.map(function(e) { | |
if (e.buffer instanceof ArrayBuffer) { | |
var t = e.buffer; | |
if (e.byteLength !== t.byteLength) { | |
var n = new Uint8Array(e.byteLength); | |
n.set(new Uint8Array(t,e.byteOffset,e.byteLength)), | |
t = n.buffer | |
} | |
return t | |
} | |
return e | |
}) | |
} | |
function a(e, t) { | |
t = t || {}; | |
var a = new i; | |
return n(e).forEach(function(e) { | |
a.append(e) | |
}), | |
t.type ? a.getBlob(t.type) : a.getBlob() | |
} | |
function o(e, t) { | |
return new Blob(n(e),t || {}) | |
} | |
var i = "undefined" == typeof i ? "undefined" == typeof WebKitBlobBuilder ? "undefined" == typeof MSBlobBuilder ? "undefined" != typeof MozBlobBuilder && MozBlobBuilder : MSBlobBuilder : WebKitBlobBuilder : i | |
, s = function() { | |
try { | |
var e = new Blob(["hi"]); | |
return 2 === e.size | |
} catch (t) { | |
return !1 | |
} | |
}() | |
, d = s && function() { | |
try { | |
var e = new Blob([new Uint8Array([1, 2])]); | |
return 2 === e.size | |
} catch (t) { | |
return !1 | |
} | |
}() | |
, l = i && i.prototype.append && i.prototype.getBlob; | |
"undefined" != typeof Blob && (a.prototype = Blob.prototype, | |
o.prototype = Blob.prototype), | |
t.exports = function() { | |
return s ? d ? Blob : o : l ? a : void 0 | |
}() | |
} | |
, {}], | |
40: [function(e, t) { | |
var n = [].slice; | |
t.exports = function(e, t) { | |
if ("string" == typeof t && (t = e[t]), | |
"function" != typeof t) | |
throw new Error("bind() requires a function"); | |
var a = n.call(arguments, 2); | |
return function() { | |
return t.apply(e, a.concat(n.call(arguments))) | |
} | |
} | |
} | |
, {}], | |
41: [function(e, t) { | |
function n(e) { | |
if (e) | |
return a(e) | |
} | |
function a(e) { | |
for (var t in n.prototype) | |
e[t] = n.prototype[t]; | |
return e | |
} | |
"undefined" != typeof t && (t.exports = n); | |
n.prototype.on = n.prototype.addEventListener = function(e, t) { | |
return this._callbacks = this._callbacks || {}, | |
(this._callbacks["$" + e] = this._callbacks["$" + e] || []).push(t), | |
this | |
} | |
, | |
n.prototype.once = function(e, t) { | |
function n() { | |
this.off(e, n), | |
t.apply(this, arguments) | |
} | |
return n.fn = t, | |
this.on(e, n), | |
this | |
} | |
, | |
n.prototype.off = n.prototype.removeListener = n.prototype.removeAllListeners = n.prototype.removeEventListener = function(e, t) { | |
if (this._callbacks = this._callbacks || {}, | |
0 == arguments.length) | |
return this._callbacks = {}, | |
this; | |
var n = this._callbacks["$" + e]; | |
if (!n) | |
return this; | |
if (1 == arguments.length) | |
return delete this._callbacks["$" + e], | |
this; | |
for (var a = 0, o; a < n.length; a++) | |
if (o = n[a], | |
o === t || o.fn === t) { | |
n.splice(a, 1); | |
break | |
} | |
return this | |
} | |
, | |
n.prototype.emit = function(e) { | |
this._callbacks = this._callbacks || {}; | |
var t = [].slice.call(arguments, 1) | |
, n = this._callbacks["$" + e]; | |
if (n) { | |
n = n.slice(0); | |
for (var a = 0, o = n.length; a < o; ++a) | |
n[a].apply(this, t) | |
} | |
return this | |
} | |
, | |
n.prototype.listeners = function(e) { | |
return this._callbacks = this._callbacks || {}, | |
this._callbacks["$" + e] || [] | |
} | |
, | |
n.prototype.hasListeners = function(e) { | |
return !!this.listeners(e).length | |
} | |
} | |
, {}], | |
42: [function(e, t) { | |
t.exports = function(e, t) { | |
var n = function() {}; | |
n.prototype = t.prototype, | |
e.prototype = new n, | |
e.prototype.constructor = e | |
} | |
} | |
, {}], | |
43: [function(e, t, n) { | |
(function(a) { | |
function o(e) { | |
var t = this.useColors; | |
if (e[0] = (t ? "%c" : "") + this.namespace + (t ? " %c" : " ") + e[0] + (t ? "%c " : " ") + "+" + n.humanize(this.diff), | |
!!t) { | |
var a = "color: " + this.color; | |
e.splice(1, 0, a, "color: inherit"); | |
var o = 0 | |
, i = 0; | |
e[0].replace(/%[a-zA-Z%]/g, function(e) { | |
"%%" === e || (o++, | |
"%c" === e && (i = o)) | |
}), | |
e.splice(i, 0, a) | |
} | |
} | |
function i(e) { | |
try { | |
null == e ? n.storage.removeItem("debug") : n.storage.debug = e | |
} catch (t) {} | |
} | |
function s() { | |
var e; | |
try { | |
e = n.storage.debug | |
} catch (t) {} | |
return !e && "undefined" != typeof a && "env"in a && (e = a.env.DEBUG), | |
e | |
} | |
n = t.exports = e("./debug"), | |
n.log = function() { | |
return "object" == typeof console && console.log && Function.prototype.apply.call(console.log, console, arguments) | |
} | |
, | |
n.formatArgs = o, | |
n.save = i, | |
n.load = s, | |
n.useColors = function() { | |
return !!("undefined" != typeof window && window.process && "renderer" === window.process.type) || !("undefined" != typeof navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) && ("undefined" != typeof document && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || "undefined" != typeof window && window.console && (window.console.firebug || window.console.exception && window.console.table) || "undefined" != typeof navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && 31 <= parseInt(RegExp.$1, 10) || "undefined" != typeof navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)) | |
} | |
, | |
n.storage = "undefined" != typeof chrome && "undefined" != typeof chrome.storage ? chrome.storage.local : function() { | |
try { | |
return window.localStorage | |
} catch (t) {} | |
}(), | |
n.colors = ["#0000CC", "#0000FF", "#0033CC", "#0033FF", "#0066CC", "#0066FF", "#0099CC", "#0099FF", "#00CC00", "#00CC33", "#00CC66", "#00CC99", "#00CCCC", "#00CCFF", "#3300CC", "#3300FF", "#3333CC", "#3333FF", "#3366CC", "#3366FF", "#3399CC", "#3399FF", "#33CC00", "#33CC33", "#33CC66", "#33CC99", "#33CCCC", "#33CCFF", "#6600CC", "#6600FF", "#6633CC", "#6633FF", "#66CC00", "#66CC33", "#9900CC", "#9900FF", "#9933CC", "#9933FF", "#99CC00", "#99CC33", "#CC0000", "#CC0033", "#CC0066", "#CC0099", "#CC00CC", "#CC00FF", "#CC3300", "#CC3333", "#CC3366", "#CC3399", "#CC33CC", "#CC33FF", "#CC6600", "#CC6633", "#CC9900", "#CC9933", "#CCCC00", "#CCCC33", "#FF0000", "#FF0033", "#FF0066", "#FF0099", "#FF00CC", "#FF00FF", "#FF3300", "#FF3333", "#FF3366", "#FF3399", "#FF33CC", "#FF33FF", "#FF6600", "#FF6633", "#FF9900", "#FF9933", "#FFCC00", "#FFCC33"], | |
n.formatters.j = function(e) { | |
try { | |
return JSON.stringify(e) | |
} catch (e) { | |
return "[UnexpectedJSONParseError]: " + e.message | |
} | |
} | |
, | |
n.enable(s()) | |
} | |
).call(this, e("_process")) | |
} | |
, { | |
"./debug": 44, | |
_process: 12 | |
}], | |
44: [function(e, t, n) { | |
function a(e) { | |
var t = 0, a; | |
for (a in e) | |
t = (t << 5) - t + e.charCodeAt(a), | |
t |= 0; | |
return n.colors[Math.abs(t) % n.colors.length] | |
} | |
function o(e) { | |
function t() { | |
if (t.enabled) { | |
var e = t | |
, a = +new Date | |
, s = a - (o || a); | |
e.diff = s, | |
e.prev = o, | |
e.curr = a, | |
o = a; | |
for (var d = Array(arguments.length), l = 0; l < d.length; l++) | |
d[l] = arguments[l]; | |
d[0] = n.coerce(d[0]), | |
"string" != typeof d[0] && d.unshift("%O"); | |
var u = 0; | |
d[0] = d[0].replace(/%([a-zA-Z%])/g, function(t, a) { | |
if ("%%" === t) | |
return t; | |
u++; | |
var o = n.formatters[a]; | |
if ("function" == typeof o) { | |
var i = d[u]; | |
t = o.call(e, i), | |
d.splice(u, 1), | |
u-- | |
} | |
return t | |
}), | |
n.formatArgs.call(e, d); | |
var p = t.log || n.log || console.log.bind(console); | |
p.apply(e, d) | |
} | |
} | |
var o; | |
return t.namespace = e, | |
t.enabled = n.enabled(e), | |
t.useColors = n.useColors(), | |
t.color = a(e), | |
t.destroy = i, | |
"function" == typeof n.init && n.init(t), | |
n.instances.push(t), | |
t | |
} | |
function i() { | |
var e = n.instances.indexOf(this); | |
return -1 !== e && (n.instances.splice(e, 1), | |
!0) | |
} | |
function s(e) { | |
n.save(e), | |
n.names = [], | |
n.skips = []; | |
var t = ("string" == typeof e ? e : "").split(/[\s,]+/), a = t.length, o; | |
for (o = 0; o < a; o++) | |
t[o] && (e = t[o].replace(/\*/g, ".*?"), | |
"-" === e[0] ? n.skips.push(new RegExp("^" + e.substr(1) + "$")) : n.names.push(new RegExp("^" + e + "$"))); | |
for (o = 0; o < n.instances.length; o++) { | |
var s = n.instances[o]; | |
s.enabled = n.enabled(s.namespace) | |
} | |
} | |
function d() { | |
n.enable("") | |
} | |
function l(e) { | |
if ("*" === e[e.length - 1]) | |
return !0; | |
var t, a; | |
for (t = 0, | |
a = n.skips.length; t < a; t++) | |
if (n.skips[t].test(e)) | |
return !1; | |
for (t = 0, | |
a = n.names.length; t < a; t++) | |
if (n.names[t].test(e)) | |
return !0; | |
return !1 | |
} | |
n = t.exports = o.debug = o["default"] = o, | |
n.coerce = function(e) { | |
return e instanceof Error ? e.stack || e.message : e | |
} | |
, | |
n.disable = d, | |
n.enable = s, | |
n.enabled = l, | |
n.humanize = e("ms"), | |
n.instances = [], | |
n.names = [], | |
n.skips = [], | |
n.formatters = {} | |
} | |
, { | |
ms: 61 | |
}], | |
45: [function(e, t) { | |
t.exports = e("./socket"), | |
t.exports.parser = e("engine.io-parser") | |
} | |
, { | |
"./socket": 46, | |
"engine.io-parser": 54 | |
}], | |
46: [function(e, t) { | |
(function(n) { | |
function a(e, t) { | |
if (!(this instanceof a)) | |
return new a(e,t); | |
t = t || {}, | |
e && "object" == typeof e && (t = e, | |
e = null), | |
e ? (e = p(e), | |
t.hostname = e.host, | |
t.secure = "https" === e.protocol || "wss" === e.protocol, | |
t.port = e.port, | |
e.query && (t.query = e.query)) : t.host && (t.hostname = p(t.host).host), | |
this.secure = null == t.secure ? n.location && "https:" === location.protocol : t.secure, | |
t.hostname && !t.port && (t.port = this.secure ? "443" : "80"), | |
this.agent = t.agent || !1, | |
this.hostname = t.hostname || (n.location ? location.hostname : "localhost"), | |
this.port = t.port || (n.location && location.port ? location.port : this.secure ? 443 : 80), | |
this.query = t.query || {}, | |
"string" == typeof this.query && (this.query = c.decode(this.query)), | |
this.upgrade = !1 !== t.upgrade, | |
this.path = (t.path || "/engine.io").replace(/\/$/, "") + "/", | |
this.forceJSONP = !!t.forceJSONP, | |
this.jsonp = !1 !== t.jsonp, | |
this.forceBase64 = !!t.forceBase64, | |
this.enablesXDR = !!t.enablesXDR, | |
this.timestampParam = t.timestampParam || "t", | |
this.timestampRequests = t.timestampRequests, | |
this.transports = t.transports || ["polling", "websocket"], | |
this.transportOptions = t.transportOptions || {}, | |
this.readyState = "", | |
this.writeBuffer = [], | |
this.prevBufferLen = 0, | |
this.policyPort = t.policyPort || 843, | |
this.rememberUpgrade = t.rememberUpgrade || !1, | |
this.binaryType = null, | |
this.onlyBinaryUpgrades = t.onlyBinaryUpgrades, | |
this.perMessageDeflate = !1 !== t.perMessageDeflate && (t.perMessageDeflate || {}), | |
!0 === this.perMessageDeflate && (this.perMessageDeflate = {}), | |
this.perMessageDeflate && null == this.perMessageDeflate.threshold && (this.perMessageDeflate.threshold = 1024), | |
this.pfx = t.pfx || null, | |
this.key = t.key || null, | |
this.passphrase = t.passphrase || null, | |
this.cert = t.cert || null, | |
this.ca = t.ca || null, | |
this.ciphers = t.ciphers || null, | |
this.rejectUnauthorized = !(t.rejectUnauthorized !== void 0) || t.rejectUnauthorized, | |
this.forceNode = !!t.forceNode; | |
var o = "object" == typeof n && n; | |
o.global === o && (t.extraHeaders && 0 < Object.keys(t.extraHeaders).length && (this.extraHeaders = t.extraHeaders), | |
t.localAddress && (this.localAddress = t.localAddress)), | |
this.id = null, | |
this.upgrades = null, | |
this.pingInterval = null, | |
this.pingTimeout = null, | |
this.pingIntervalTimer = null, | |
this.pingTimeoutTimer = null, | |
this.open() | |
} | |
function o(e) { | |
var t = {}; | |
for (var n in e) | |
e.hasOwnProperty(n) && (t[n] = e[n]); | |
return t | |
} | |
var i = e("./transports/index") | |
, s = e("component-emitter") | |
, d = e("debug")("engine.io-client:socket") | |
, l = e("indexof") | |
, u = e("engine.io-parser") | |
, p = e("parseuri") | |
, c = e("parseqs"); | |
t.exports = a, | |
a.priorWebsocketSuccess = !1, | |
s(a.prototype), | |
a.protocol = u.protocol, | |
a.Socket = a, | |
a.Transport = e("./transport"), | |
a.transports = e("./transports/index"), | |
a.parser = e("engine.io-parser"), | |
a.prototype.createTransport = function(e) { | |
d("creating transport \"%s\"", e); | |
var t = o(this.query); | |
t.EIO = u.protocol, | |
t.transport = e; | |
var n = this.transportOptions[e] || {}; | |
this.id && (t.sid = this.id); | |
var a = new i[e]({ | |
query: t, | |
socket: this, | |
agent: n.agent || this.agent, | |
hostname: n.hostname || this.hostname, | |
port: n.port || this.port, | |
secure: n.secure || this.secure, | |
path: n.path || this.path, | |
forceJSONP: n.forceJSONP || this.forceJSONP, | |
jsonp: n.jsonp || this.jsonp, | |
forceBase64: n.forceBase64 || this.forceBase64, | |
enablesXDR: n.enablesXDR || this.enablesXDR, | |
timestampRequests: n.timestampRequests || this.timestampRequests, | |
timestampParam: n.timestampParam || this.timestampParam, | |
policyPort: n.policyPort || this.policyPort, | |
pfx: n.pfx || this.pfx, | |
key: n.key || this.key, | |
passphrase: n.passphrase || this.passphrase, | |
cert: n.cert || this.cert, | |
ca: n.ca || this.ca, | |
ciphers: n.ciphers || this.ciphers, | |
rejectUnauthorized: n.rejectUnauthorized || this.rejectUnauthorized, | |
perMessageDeflate: n.perMessageDeflate || this.perMessageDeflate, | |
extraHeaders: n.extraHeaders || this.extraHeaders, | |
forceNode: n.forceNode || this.forceNode, | |
localAddress: n.localAddress || this.localAddress, | |
requestTimeout: n.requestTimeout || this.requestTimeout, | |
protocols: n.protocols || void 0 | |
}); | |
return a | |
} | |
, | |
a.prototype.open = function() { | |
var e; | |
if (this.rememberUpgrade && a.priorWebsocketSuccess && -1 !== this.transports.indexOf("websocket")) | |
e = "websocket"; | |
else { | |
if (0 === this.transports.length) { | |
var t = this; | |
return void setTimeout(function() { | |
t.emit("error", "No transports available") | |
}, 0) | |
} | |
e = this.transports[0] | |
} | |
this.readyState = "opening"; | |
try { | |
e = this.createTransport(e) | |
} catch (t) { | |
return this.transports.shift(), | |
void this.open() | |
} | |
e.open(), | |
this.setTransport(e) | |
} | |
, | |
a.prototype.setTransport = function(e) { | |
d("setting transport %s", e.name); | |
var t = this; | |
this.transport && (d("clearing existing transport %s", this.transport.name), | |
this.transport.removeAllListeners()), | |
this.transport = e, | |
e.on("drain", function() { | |
t.onDrain() | |
}).on("packet", function(e) { | |
t.onPacket(e) | |
}).on("error", function(n) { | |
t.onError(n) | |
}).on("close", function() { | |
t.onClose("transport close") | |
}) | |
} | |
, | |
a.prototype.probe = function(e) { | |
function t() { | |
if (f.onlyBinaryUpgrades) { | |
var t = !this.supportsBinary && f.transport.supportsBinary; | |
c = c || t | |
} | |
c || (d("probe transport \"%s\" opened", e), | |
p.send([{ | |
type: "ping", | |
data: "probe" | |
}]), | |
p.once("packet", function(t) { | |
if (!c) | |
if ("pong" === t.type && "probe" === t.data) { | |
if (d("probe transport \"%s\" pong", e), | |
f.upgrading = !0, | |
f.emit("upgrading", p), | |
!p) | |
return; | |
a.priorWebsocketSuccess = "websocket" === p.name, | |
d("pausing current transport \"%s\"", f.transport.name), | |
f.transport.pause(function() { | |
c || "closed" === f.readyState || (d("changing transport and sending upgrade packet"), | |
u(), | |
f.setTransport(p), | |
p.send([{ | |
type: "upgrade" | |
}]), | |
f.emit("upgrade", p), | |
p = null, | |
f.upgrading = !1, | |
f.flush()) | |
}) | |
} else { | |
d("probe transport \"%s\" failed", e); | |
var n = new Error("probe error"); | |
n.transport = p.name, | |
f.emit("upgradeError", n) | |
} | |
})) | |
} | |
function n() { | |
c || (c = !0, | |
u(), | |
p.close(), | |
p = null) | |
} | |
function o(t) { | |
var a = new Error("probe error: " + t); | |
a.transport = p.name, | |
n(), | |
d("probe transport \"%s\" failed because of error: %s", e, t), | |
f.emit("upgradeError", a) | |
} | |
function i() { | |
o("transport closed") | |
} | |
function s() { | |
o("socket closed") | |
} | |
function l(e) { | |
p && e.name !== p.name && (d("\"%s\" works - aborting \"%s\"", e.name, p.name), | |
n()) | |
} | |
function u() { | |
p.removeListener("open", t), | |
p.removeListener("error", o), | |
p.removeListener("close", i), | |
f.removeListener("close", s), | |
f.removeListener("upgrading", l) | |
} | |
d("probing transport \"%s\"", e); | |
var p = this.createTransport(e, { | |
probe: 1 | |
}) | |
, c = !1 | |
, f = this; | |
a.priorWebsocketSuccess = !1, | |
p.once("open", t), | |
p.once("error", o), | |
p.once("close", i), | |
this.once("close", s), | |
this.once("upgrading", l), | |
p.open() | |
} | |
, | |
a.prototype.onOpen = function() { | |
if (d("socket open"), | |
this.readyState = "open", | |
a.priorWebsocketSuccess = "websocket" === this.transport.name, | |
this.emit("open"), | |
this.flush(), | |
"open" === this.readyState && this.upgrade && this.transport.pause) { | |
d("starting upgrade probes"); | |
for (var e = 0, t = this.upgrades.length; e < t; e++) | |
this.probe(this.upgrades[e]) | |
} | |
} | |
, | |
a.prototype.onPacket = function(e) { | |
if ("opening" === this.readyState || "open" === this.readyState || "closing" === this.readyState) | |
switch (d("socket receive: type \"%s\", data \"%s\"", e.type, e.data), | |
this.emit("packet", e), | |
this.emit("heartbeat"), | |
e.type) { | |
case "open": | |
this.onHandshake(JSON.parse(e.data)); | |
break; | |
case "pong": | |
this.setPing(), | |
this.emit("pong"); | |
break; | |
case "error": | |
var t = new Error("server error"); | |
t.code = e.data, | |
this.onError(t); | |
break; | |
case "message": | |
this.emit("data", e.data), | |
this.emit("message", e.data); | |
} | |
else | |
d("packet received with socket readyState \"%s\"", this.readyState) | |
} | |
, | |
a.prototype.onHandshake = function(e) { | |
this.emit("handshake", e), | |
this.id = e.sid, | |
this.transport.query.sid = e.sid, | |
this.upgrades = this.filterUpgrades(e.upgrades), | |
this.pingInterval = e.pingInterval, | |
this.pingTimeout = e.pingTimeout, | |
this.onOpen(); | |
"closed" === this.readyState || (this.setPing(), | |
this.removeListener("heartbeat", this.onHeartbeat), | |
this.on("heartbeat", this.onHeartbeat)) | |
} | |
, | |
a.prototype.onHeartbeat = function(e) { | |
clearTimeout(this.pingTimeoutTimer); | |
var t = this; | |
t.pingTimeoutTimer = setTimeout(function() { | |
"closed" === t.readyState || t.onClose("ping timeout") | |
}, e || t.pingInterval + t.pingTimeout) | |
} | |
, | |
a.prototype.setPing = function() { | |
var e = this; | |
clearTimeout(e.pingIntervalTimer), | |
e.pingIntervalTimer = setTimeout(function() { | |
d("writing ping packet - expecting pong within %sms", e.pingTimeout), | |
e.ping(), | |
e.onHeartbeat(e.pingTimeout) | |
}, e.pingInterval) | |
} | |
, | |
a.prototype.ping = function() { | |
var e = this; | |
this.sendPacket("ping", function() { | |
e.emit("ping") | |
}) | |
} | |
, | |
a.prototype.onDrain = function() { | |
this.writeBuffer.splice(0, this.prevBufferLen), | |
this.prevBufferLen = 0, | |
0 === this.writeBuffer.length ? this.emit("drain") : this.flush() | |
} | |
, | |
a.prototype.flush = function() { | |
"closed" !== this.readyState && this.transport.writable && !this.upgrading && this.writeBuffer.length && (d("flushing %d packets in socket", this.writeBuffer.length), | |
this.transport.send(this.writeBuffer), | |
this.prevBufferLen = this.writeBuffer.length, | |
this.emit("flush")) | |
} | |
, | |
a.prototype.write = a.prototype.send = function(e, t, n) { | |
return this.sendPacket("message", e, t, n), | |
this | |
} | |
, | |
a.prototype.sendPacket = function(e, t, n, a) { | |
if ("function" == typeof t && (a = t, | |
t = void 0), | |
"function" == typeof n && (a = n, | |
n = null), | |
"closing" !== this.readyState && "closed" !== this.readyState) { | |
n = n || {}, | |
n.compress = !1 !== n.compress; | |
var o = { | |
type: e, | |
data: t, | |
options: n | |
}; | |
this.emit("packetCreate", o), | |
this.writeBuffer.push(o), | |
a && this.once("flush", a), | |
this.flush() | |
} | |
} | |
, | |
a.prototype.close = function() { | |
function e() { | |
a.onClose("forced close"), | |
d("socket closing - telling transport to close"), | |
a.transport.close() | |
} | |
function t() { | |
a.removeListener("upgrade", t), | |
a.removeListener("upgradeError", t), | |
e() | |
} | |
function n() { | |
a.once("upgrade", t), | |
a.once("upgradeError", t) | |
} | |
if ("opening" === this.readyState || "open" === this.readyState) { | |
this.readyState = "closing"; | |
var a = this; | |
this.writeBuffer.length ? this.once("drain", function() { | |
this.upgrading ? n() : e() | |
}) : this.upgrading ? n() : e() | |
} | |
return this | |
} | |
, | |
a.prototype.onError = function(e) { | |
d("socket error %j", e), | |
a.priorWebsocketSuccess = !1, | |
this.emit("error", e), | |
this.onClose("transport error", e) | |
} | |
, | |
a.prototype.onClose = function(e, t) { | |
if ("opening" === this.readyState || "open" === this.readyState || "closing" === this.readyState) { | |
d("socket close with reason: \"%s\"", e); | |
var n = this; | |
clearTimeout(this.pingIntervalTimer), | |
clearTimeout(this.pingTimeoutTimer), | |
this.transport.removeAllListeners("close"), | |
this.transport.close(), | |
this.transport.removeAllListeners(), | |
this.readyState = "closed", | |
this.id = null, | |
this.emit("close", e, t), | |
n.writeBuffer = [], | |
n.prevBufferLen = 0 | |
} | |
} | |
, | |
a.prototype.filterUpgrades = function(e) { | |
for (var t = [], n = 0, a = e.length; n < a; n++) | |
~l(this.transports, e[n]) && t.push(e[n]); | |
return t | |
} | |
} | |
).call(this, "undefined" == typeof global ? "undefined" == typeof self ? "undefined" == typeof window ? {} : window : self : global) | |
} | |
, { | |
"./transport": 47, | |
"./transports/index": 48, | |
"component-emitter": 41, | |
debug: 43, | |
"engine.io-parser": 54, | |
indexof: 59, | |
parseqs: 78, | |
parseuri: 79 | |
}], | |
47: [function(e, t) { | |
function n(e) { | |
this.path = e.path, | |
this.hostname = e.hostname, | |
this.port = e.port, | |
this.secure = e.secure, | |
this.query = e.query, | |
this.timestampParam = e.timestampParam, | |
this.timestampRequests = e.timestampRequests, | |
this.readyState = "", | |
this.agent = e.agent || !1, | |
this.socket = e.socket, | |
this.enablesXDR = e.enablesXDR, | |
this.pfx = e.pfx, | |
this.key = e.key, | |
this.passphrase = e.passphrase, | |
this.cert = e.cert, | |
this.ca = e.ca, | |
this.ciphers = e.ciphers, | |
this.rejectUnauthorized = e.rejectUnauthorized, | |
this.forceNode = e.forceNode, | |
this.extraHeaders = e.extraHeaders, | |
this.localAddress = e.localAddress | |
} | |
var a = e("engine.io-parser") | |
, o = e("component-emitter"); | |
t.exports = n, | |
o(n.prototype), | |
n.prototype.onError = function(e, t) { | |
var n = new Error(e); | |
return n.type = "TransportError", | |
n.description = t, | |
this.emit("error", n), | |
this | |
} | |
, | |
n.prototype.open = function() { | |
return ("closed" === this.readyState || "" === this.readyState) && (this.readyState = "opening", | |
this.doOpen()), | |
this | |
} | |
, | |
n.prototype.close = function() { | |
return ("opening" === this.readyState || "open" === this.readyState) && (this.doClose(), | |
this.onClose()), | |
this | |
} | |
, | |
n.prototype.send = function(e) { | |
if ("open" === this.readyState) | |
this.write(e); | |
else | |
throw new Error("Transport not open") | |
} | |
, | |
n.prototype.onOpen = function() { | |
this.readyState = "open", | |
this.writable = !0, | |
this.emit("open") | |
} | |
, | |
n.prototype.onData = function(e) { | |
var t = a.decodePacket(e, this.socket.binaryType); | |
this.onPacket(t) | |
} | |
, | |
n.prototype.onPacket = function(e) { | |
this.emit("packet", e) | |
} | |
, | |
n.prototype.onClose = function() { | |
this.readyState = "closed", | |
this.emit("close") | |
} | |
} | |
, { | |
"component-emitter": 41, | |
"engine.io-parser": 54 | |
}], | |
48: [function(e, t, n) { | |
(function(t) { | |
function a(e) { | |
var n = !1, a = !1, d = !1 !== e.jsonp, l; | |
if (t.location) { | |
var u = "https:" === location.protocol | |
, p = location.port; | |
p || (p = u ? 443 : 80), | |
n = e.hostname !== location.hostname || p !== e.port, | |
a = e.secure !== u | |
} | |
if (e.xdomain = n, | |
e.xscheme = a, | |
l = new o(e), | |
"open"in l && !e.forceJSONP) | |
return new i(e); | |
if (!d) | |
throw new Error("JSONP disabled"); | |
return new s(e) | |
} | |
var o = e("xmlhttprequest-ssl") | |
, i = e("./polling-xhr") | |
, s = e("./polling-jsonp") | |
, d = e("./websocket"); | |
n.polling = a, | |
n.websocket = d | |
} | |
).call(this, "undefined" == typeof global ? "undefined" == typeof self ? "undefined" == typeof window ? {} : window : self : global) | |
} | |
, { | |
"./polling-jsonp": 49, | |
"./polling-xhr": 50, | |
"./websocket": 52, | |
"xmlhttprequest-ssl": 53 | |
}], | |
49: [function(e, t) { | |
(function(n) { | |
function a() {} | |
function o(e) { | |
i.call(this, e), | |
this.query = this.query || {}, | |
u || (!n.___eio && (n.___eio = []), | |
u = n.___eio), | |
this.index = u.length; | |
var t = this; | |
u.push(function(e) { | |
t.onData(e) | |
}), | |
this.query.j = this.index, | |
n.document && n.addEventListener && n.addEventListener("beforeunload", function() { | |
t.script && (t.script.onerror = a) | |
}, !1) | |
} | |
var i = e("./polling") | |
, s = e("component-inherit"); | |
t.exports = o; | |
var d = /\n/g, l = /\\n/g, u; | |
s(o, i), | |
o.prototype.supportsBinary = !1, | |
o.prototype.doClose = function() { | |
this.script && (this.script.parentNode.removeChild(this.script), | |
this.script = null), | |
this.form && (this.form.parentNode.removeChild(this.form), | |
this.form = null, | |
this.iframe = null), | |
i.prototype.doClose.call(this) | |
} | |
, | |
o.prototype.doPoll = function() { | |
var t = this | |
, e = document.createElement("script"); | |
this.script && (this.script.parentNode.removeChild(this.script), | |
this.script = null), | |
e.async = !0, | |
e.src = this.uri(), | |
e.onerror = function(n) { | |
t.onError("jsonp poll error", n) | |
} | |
; | |
var n = document.getElementsByTagName("script")[0]; | |
n ? n.parentNode.insertBefore(e, n) : (document.head || document.body).appendChild(e), | |
this.script = e; | |
var a = "undefined" != typeof navigator && /gecko/i.test(navigator.userAgent); | |
a && setTimeout(function() { | |
var e = document.createElement("iframe"); | |
document.body.appendChild(e), | |
document.body.removeChild(e) | |
}, 100) | |
} | |
, | |
o.prototype.doWrite = function(e, t) { | |
function n() { | |
a(), | |
t() | |
} | |
function a() { | |
if (o.iframe) | |
try { | |
o.form.removeChild(o.iframe) | |
} catch (t) { | |
o.onError("jsonp polling iframe removal error", t) | |
} | |
try { | |
var e = "<iframe src=\"javascript:0\" name=\"" + o.iframeId + "\">"; | |
p = document.createElement(e) | |
} catch (t) { | |
p = document.createElement("iframe"), | |
p.name = o.iframeId, | |
p.src = "javascript:0" | |
} | |
p.id = o.iframeId, | |
o.form.appendChild(p), | |
o.iframe = p | |
} | |
var o = this; | |
if (!this.form) { | |
var i = document.createElement("form"), s = document.createElement("textarea"), u = this.iframeId = "eio_iframe_" + this.index, p; | |
i.className = "socketio", | |
i.style.position = "absolute", | |
i.style.top = "-1000px", | |
i.style.left = "-1000px", | |
i.target = u, | |
i.method = "POST", | |
i.setAttribute("accept-charset", "utf-8"), | |
s.name = "d", | |
i.appendChild(s), | |
document.body.appendChild(i), | |
this.form = i, | |
this.area = s | |
} | |
this.form.action = this.uri(), | |
a(), | |
e = e.replace(l, "\\\n"), | |
this.area.value = e.replace(d, "\\n"); | |
try { | |
this.form.submit() | |
} catch (t) {} | |
this.iframe.attachEvent ? this.iframe.onreadystatechange = function() { | |
"complete" === o.iframe.readyState && n() | |
} | |
: this.iframe.onload = n | |
} | |
} | |
).call(this, "undefined" == typeof global ? "undefined" == typeof self ? "undefined" == typeof window ? {} : window : self : global) | |
} | |
, { | |
"./polling": 51, | |
"component-inherit": 42 | |
}], | |
50: [function(e, t) { | |
(function(n) { | |
function a() {} | |
function o(e) { | |
if (l.call(this, e), | |
this.requestTimeout = e.requestTimeout, | |
this.extraHeaders = e.extraHeaders, | |
n.location) { | |
var t = "https:" === location.protocol | |
, a = location.port; | |
a || (a = t ? 443 : 80), | |
this.xd = e.hostname !== n.location.hostname || a !== e.port, | |
this.xs = e.secure !== t | |
} | |
} | |
function s(e) { | |
this.method = e.method || "GET", | |
this.uri = e.uri, | |
this.xd = !!e.xd, | |
this.xs = !!e.xs, | |
this.async = !1 !== e.async, | |
this.data = void 0 === e.data ? null : e.data, | |
this.agent = e.agent, | |
this.isBinary = e.isBinary, | |
this.supportsBinary = e.supportsBinary, | |
this.enablesXDR = e.enablesXDR, | |
this.requestTimeout = e.requestTimeout, | |
this.pfx = e.pfx, | |
this.key = e.key, | |
this.passphrase = e.passphrase, | |
this.cert = e.cert, | |
this.ca = e.ca, | |
this.ciphers = e.ciphers, | |
this.rejectUnauthorized = e.rejectUnauthorized, | |
this.extraHeaders = e.extraHeaders, | |
this.create() | |
} | |
function i() { | |
for (var e in s.requests) | |
s.requests.hasOwnProperty(e) && s.requests[e].abort() | |
} | |
var d = e("xmlhttprequest-ssl") | |
, l = e("./polling") | |
, u = e("component-emitter") | |
, p = e("component-inherit") | |
, c = e("debug")("engine.io-client:polling-xhr"); | |
t.exports = o, | |
t.exports.Request = s, | |
p(o, l), | |
o.prototype.supportsBinary = !0, | |
o.prototype.request = function(e) { | |
return e = e || {}, | |
e.uri = this.uri(), | |
e.xd = this.xd, | |
e.xs = this.xs, | |
e.agent = this.agent || !1, | |
e.supportsBinary = this.supportsBinary, | |
e.enablesXDR = this.enablesXDR, | |
e.pfx = this.pfx, | |
e.key = this.key, | |
e.passphrase = this.passphrase, | |
e.cert = this.cert, | |
e.ca = this.ca, | |
e.ciphers = this.ciphers, | |
e.rejectUnauthorized = this.rejectUnauthorized, | |
e.requestTimeout = this.requestTimeout, | |
e.extraHeaders = this.extraHeaders, | |
new s(e) | |
} | |
, | |
o.prototype.doWrite = function(e, t) { | |
var n = this.request({ | |
method: "POST", | |
data: e, | |
isBinary: "string" != typeof e && e !== void 0 | |
}) | |
, a = this; | |
n.on("success", t), | |
n.on("error", function(e) { | |
a.onError("xhr post error", e) | |
}), | |
this.sendXhr = n | |
} | |
, | |
o.prototype.doPoll = function() { | |
c("xhr poll"); | |
var e = this.request() | |
, t = this; | |
e.on("data", function(e) { | |
t.onData(e) | |
}), | |
e.on("error", function(e) { | |
t.onError("xhr poll error", e) | |
}), | |
this.pollXhr = e | |
} | |
, | |
u(s.prototype), | |
s.prototype.create = function() { | |
var e = { | |
agent: this.agent, | |
xdomain: this.xd, | |
xscheme: this.xs, | |
enablesXDR: this.enablesXDR, | |
pfx: this.pfx, | |
key: this.key, | |
passphrase: this.passphrase, | |
cert: this.cert, | |
ca: this.ca, | |
ciphers: this.ciphers, | |
rejectUnauthorized: this.rejectUnauthorized | |
} | |
, t = this.xhr = new d(e) | |
, a = this; | |
try { | |
c("xhr open %s: %s", this.method, this.uri), | |
t.open(this.method, this.uri, this.async); | |
try { | |
if (this.extraHeaders) | |
for (var o in t.setDisableHeaderCheck && t.setDisableHeaderCheck(!0), | |
this.extraHeaders) | |
this.extraHeaders.hasOwnProperty(o) && t.setRequestHeader(o, this.extraHeaders[o]) | |
} catch (t) {} | |
if ("POST" === this.method) | |
try { | |
this.isBinary ? t.setRequestHeader("Content-type", "application/octet-stream") : t.setRequestHeader("Content-type", "text/plain;charset=UTF-8") | |
} catch (t) {} | |
try { | |
t.setRequestHeader("Accept", "*/*") | |
} catch (t) {} | |
"withCredentials"in t && (t.withCredentials = !0), | |
this.requestTimeout && (t.timeout = this.requestTimeout), | |
this.hasXDR() ? (t.onload = function() { | |
a.onLoad() | |
} | |
, | |
t.onerror = function() { | |
a.onError(t.responseText) | |
} | |
) : t.onreadystatechange = function() { | |
if (2 === t.readyState) | |
try { | |
var e = t.getResponseHeader("Content-Type"); | |
a.supportsBinary && "application/octet-stream" === e && (t.responseType = "arraybuffer") | |
} catch (t) {} | |
4 !== t.readyState || (200 === t.status || 1223 === t.status ? a.onLoad() : setTimeout(function() { | |
a.onError(t.status) | |
}, 0)) | |
} | |
, | |
c("xhr data %s", this.data), | |
t.send(this.data) | |
} catch (t) { | |
return void setTimeout(function() { | |
a.onError(t) | |
}, 0) | |
} | |
n.document && (this.index = s.requestsCount++, | |
s.requests[this.index] = this) | |
} | |
, | |
s.prototype.onSuccess = function() { | |
this.emit("success"), | |
this.cleanup() | |
} | |
, | |
s.prototype.onData = function(e) { | |
this.emit("data", e), | |
this.onSuccess() | |
} | |
, | |
s.prototype.onError = function(e) { | |
this.emit("error", e), | |
this.cleanup(!0) | |
} | |
, | |
s.prototype.cleanup = function(e) { | |
if ("undefined" != typeof this.xhr && null !== this.xhr) { | |
if (this.hasXDR() ? this.xhr.onload = this.xhr.onerror = a : this.xhr.onreadystatechange = a, | |
e) | |
try { | |
this.xhr.abort() | |
} catch (t) {} | |
n.document && delete s.requests[this.index], | |
this.xhr = null | |
} | |
} | |
, | |
s.prototype.onLoad = function() { | |
var e; | |
try { | |
var t; | |
try { | |
t = this.xhr.getResponseHeader("Content-Type") | |
} catch (t) {} | |
e = "application/octet-stream" === t ? this.xhr.response || this.xhr.responseText : this.xhr.responseText | |
} catch (t) { | |
this.onError(t) | |
} | |
null != e && this.onData(e) | |
} | |
, | |
s.prototype.hasXDR = function() { | |
return "undefined" != typeof n.XDomainRequest && !this.xs && this.enablesXDR | |
} | |
, | |
s.prototype.abort = function() { | |
this.cleanup() | |
} | |
, | |
s.requestsCount = 0, | |
s.requests = {}, | |
n.document && (n.attachEvent ? n.attachEvent("onunload", i) : n.addEventListener && n.addEventListener("beforeunload", i, !1)) | |
} | |
).call(this, "undefined" == typeof global ? "undefined" == typeof self ? "undefined" == typeof window ? {} : window : self : global) | |
} | |
, { | |
"./polling": 51, | |
"component-emitter": 41, | |
"component-inherit": 42, | |
debug: 43, | |
"xmlhttprequest-ssl": 53 | |
}], | |
51: [function(e, t) { | |
function n(e) { | |
var t = e && e.forceBase64; | |
(!u || t) && (this.supportsBinary = !1), | |
a.call(this, e) | |
} | |
var a = e("../transport") | |
, o = e("parseqs") | |
, i = e("engine.io-parser") | |
, s = e("component-inherit") | |
, d = e("yeast") | |
, l = e("debug")("engine.io-client:polling"); | |
t.exports = n; | |
var u = function() { | |
var t = e("xmlhttprequest-ssl") | |
, n = new t({ | |
xdomain: !1 | |
}); | |
return null != n.responseType | |
}(); | |
s(n, a), | |
n.prototype.name = "polling", | |
n.prototype.doOpen = function() { | |
this.poll() | |
} | |
, | |
n.prototype.pause = function(e) { | |
function t() { | |
l("paused"), | |
n.readyState = "paused", | |
e() | |
} | |
var n = this; | |
if (this.readyState = "pausing", | |
this.polling || !this.writable) { | |
var a = 0; | |
this.polling && (l("we are currently polling - waiting to pause"), | |
a++, | |
this.once("pollComplete", function() { | |
l("pre-pause polling complete"), | |
--a || t() | |
})), | |
this.writable || (l("we are currently writing - waiting to pause"), | |
a++, | |
this.once("drain", function() { | |
l("pre-pause writing complete"), | |
--a || t() | |
})) | |
} else | |
t() | |
} | |
, | |
n.prototype.poll = function() { | |
l("polling"), | |
this.polling = !0, | |
this.doPoll(), | |
this.emit("poll") | |
} | |
, | |
n.prototype.onData = function(e) { | |
var t = this; | |
l("polling got data %s", e); | |
i.decodePayload(e, this.socket.binaryType, function(e) { | |
return "opening" === t.readyState && t.onOpen(), | |
"close" === e.type ? (t.onClose(), | |
!1) : void t.onPacket(e) | |
}), | |
"closed" !== this.readyState && (this.polling = !1, | |
this.emit("pollComplete"), | |
"open" === this.readyState ? this.poll() : l("ignoring poll - transport state \"%s\"", this.readyState)) | |
} | |
, | |
n.prototype.doClose = function() { | |
function e() { | |
l("writing close packet"), | |
t.write([{ | |
type: "close" | |
}]) | |
} | |
var t = this; | |
"open" === this.readyState ? (l("transport open - closing"), | |
e()) : (l("transport not open - deferring close"), | |
this.once("open", e)) | |
} | |
, | |
n.prototype.write = function(e) { | |
var t = this; | |
this.writable = !1; | |
var n = function() { | |
t.writable = !0, | |
t.emit("drain") | |
}; | |
i.encodePayload(e, this.supportsBinary, function(e) { | |
t.doWrite(e, n) | |
}) | |
} | |
, | |
n.prototype.uri = function() { | |
var e = this.query || {} | |
, t = this.secure ? "https" : "http" | |
, n = ""; | |
!1 !== this.timestampRequests && (e[this.timestampParam] = d()), | |
this.supportsBinary || e.sid || (e.b64 = 1), | |
e = o.encode(e), | |
this.port && ("https" === t && 443 !== +this.port || "http" === t && 80 !== +this.port) && (n = ":" + this.port), | |
e.length && (e = "?" + e); | |
var a = -1 !== this.hostname.indexOf(":"); | |
return t + "://" + (a ? "[" + this.hostname + "]" : this.hostname) + n + this.path + e | |
} | |
} | |
, { | |
"../transport": 47, | |
"component-inherit": 42, | |
debug: 43, | |
"engine.io-parser": 54, | |
parseqs: 78, | |
"xmlhttprequest-ssl": 53, | |
yeast: 99 | |
}], | |
52: [function(e, t) { | |
(function(n) { | |
function a(e) { | |
var t = e && e.forceBase64; | |
t && (this.supportsBinary = !1), | |
this.perMessageDeflate = e.perMessageDeflate, | |
this.usingBrowserWebSocket = p && !e.forceNode, | |
this.protocols = e.protocols, | |
this.usingBrowserWebSocket || (f = c), | |
o.call(this, e) | |
} | |
var o = e("../transport"), i = e("engine.io-parser"), s = e("parseqs"), d = e("component-inherit"), l = e("yeast"), u = e("debug")("engine.io-client:websocket"), p = n.WebSocket || n.MozWebSocket, c; | |
if ("undefined" == typeof window) | |
try { | |
c = e("ws") | |
} catch (t) {} | |
var f = p; | |
f || "undefined" != typeof window || (f = c), | |
t.exports = a, | |
d(a, o), | |
a.prototype.name = "websocket", | |
a.prototype.supportsBinary = !0, | |
a.prototype.doOpen = function() { | |
if (this.check()) { | |
var e = this.uri() | |
, t = this.protocols | |
, n = { | |
agent: this.agent, | |
perMessageDeflate: this.perMessageDeflate | |
}; | |
n.pfx = this.pfx, | |
n.key = this.key, | |
n.passphrase = this.passphrase, | |
n.cert = this.cert, | |
n.ca = this.ca, | |
n.ciphers = this.ciphers, | |
n.rejectUnauthorized = this.rejectUnauthorized, | |
this.extraHeaders && (n.headers = this.extraHeaders), | |
this.localAddress && (n.localAddress = this.localAddress); | |
try { | |
this.ws = this.usingBrowserWebSocket ? t ? new f(e,t) : new f(e) : new f(e,t,n) | |
} catch (e) { | |
return this.emit("error", e) | |
} | |
void 0 === this.ws.binaryType && (this.supportsBinary = !1), | |
this.ws.supports && this.ws.supports.binary ? (this.supportsBinary = !0, | |
this.ws.binaryType = "nodebuffer") : this.ws.binaryType = "arraybuffer", | |
this.addEventListeners() | |
} | |
} | |
, | |
a.prototype.addEventListeners = function() { | |
var t = this; | |
this.ws.onopen = function() { | |
t.onOpen() | |
} | |
, | |
this.ws.onclose = function() { | |
t.onClose() | |
} | |
, | |
this.ws.onmessage = function(e) { | |
t.onData(e.data) | |
} | |
, | |
this.ws.onerror = function(n) { | |
t.onError("websocket error", n) | |
} | |
} | |
, | |
a.prototype.write = function(e) { | |
function t() { | |
a.emit("flush"), | |
setTimeout(function() { | |
a.writable = !0, | |
a.emit("drain") | |
}, 0) | |
} | |
var a = this; | |
this.writable = !1; | |
for (var o = e.length, s = 0, d = o; s < d; s++) | |
(function(e) { | |
i.encodePacket(e, a.supportsBinary, function(i) { | |
if (!a.usingBrowserWebSocket) { | |
var s = {}; | |
if (e.options && (s.compress = e.options.compress), | |
a.perMessageDeflate) { | |
var d = "string" == typeof i ? n.Buffer.byteLength(i) : i.length; | |
d < a.perMessageDeflate.threshold && (s.compress = !1) | |
} | |
} | |
try { | |
a.usingBrowserWebSocket ? a.ws.send(i) : a.ws.send(i, s) | |
} catch (t) { | |
u("websocket closed before onclose event") | |
} | |
--o || t() | |
}) | |
} | |
)(e[s]) | |
} | |
, | |
a.prototype.onClose = function() { | |
o.prototype.onClose.call(this) | |
} | |
, | |
a.prototype.doClose = function() { | |
"undefined" != typeof this.ws && this.ws.close() | |
} | |
, | |
a.prototype.uri = function() { | |
var e = this.query || {} | |
, t = this.secure ? "wss" : "ws" | |
, n = ""; | |
this.port && ("wss" === t && 443 !== +this.port || "ws" === t && 80 !== +this.port) && (n = ":" + this.port), | |
this.timestampRequests && (e[this.timestampParam] = l()), | |
this.supportsBinary || (e.b64 = 1), | |
e = s.encode(e), | |
e.length && (e = "?" + e); | |
var a = -1 !== this.hostname.indexOf(":"); | |
return t + "://" + (a ? "[" + this.hostname + "]" : this.hostname) + n + this.path + e | |
} | |
, | |
a.prototype.check = function() { | |
return !!f && !("__initialize"in f && this.name === a.prototype.name) | |
} | |
} | |
).call(this, "undefined" == typeof global ? "undefined" == typeof self ? "undefined" == typeof window ? {} : window : self : global) | |
} | |
, { | |
"../transport": 47, | |
"component-inherit": 42, | |
debug: 43, | |
"engine.io-parser": 54, | |
parseqs: 78, | |
ws: 3, | |
yeast: 99 | |
}], | |
53: [function(e, t) { | |
(function(n) { | |
var a = e("has-cors"); | |
t.exports = function(e) { | |
var t = e.xdomain | |
, o = e.xscheme | |
, i = e.enablesXDR; | |
try { | |
if ("undefined" != typeof XMLHttpRequest && (!t || a)) | |
return new XMLHttpRequest | |
} catch (t) {} | |
try { | |
if ("undefined" != typeof XDomainRequest && !o && i) | |
return new XDomainRequest | |
} catch (t) {} | |
if (!t) | |
try { | |
return new n[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP") | |
} catch (t) {} | |
} | |
} | |
).call(this, "undefined" == typeof global ? "undefined" == typeof self ? "undefined" == typeof window ? {} : window : self : global) | |
} | |
, { | |
"has-cors": 58 | |
}], | |
54: [function(e, t, a) { | |
function n(e, t) { | |
var n = "b" + a.packets[e.type] + e.data.data; | |
return t(n) | |
} | |
function o(e, t, n) { | |
if (!t) | |
return a.encodeBase64Packet(e, n); | |
var o = e.data | |
, s = new Uint8Array(o) | |
, d = new Uint8Array(1 + o.byteLength); | |
d[0] = k[e.type]; | |
for (var l = 0; l < s.length; l++) | |
d[l + 1] = s[l]; | |
return n(d.buffer) | |
} | |
function i(e, t, n) { | |
if (!t) | |
return a.encodeBase64Packet(e, n); | |
var o = new FileReader; | |
return o.onload = function() { | |
a.encodePacket({ | |
type: e.type, | |
data: o.result | |
}, t, !0, n) | |
} | |
, | |
o.readAsArrayBuffer(e.data) | |
} | |
function s(e, t, n) { | |
if (!t) | |
return a.encodeBase64Packet(e, n); | |
if (v) | |
return i(e, t, n); | |
var o = new Uint8Array(1); | |
o[0] = k[e.type]; | |
var s = new C([o.buffer, e.data]); | |
return n(s) | |
} | |
function d(e) { | |
try { | |
e = m.decode(e, { | |
strict: !1 | |
}) | |
} catch (t) { | |
return !1 | |
} | |
return e | |
} | |
function l(e, t, n) { | |
for (var a = Array(e.length), o = h(e.length, n), s = function(e, n, o) { | |
t(n, function(t, n) { | |
a[e] = n, | |
o(t, a) | |
}) | |
}, d = 0; d < e.length; d++) | |
s(d, e[d], o) | |
} | |
var u = String.fromCharCode, p = e("./keys"), c = e("has-binary2"), f = e("arraybuffer.slice"), h = e("after"), m = e("./utf8"), y; | |
"undefined" != typeof ArrayBuffer && (y = e("base64-arraybuffer")); | |
var x = "undefined" != typeof navigator && /Android/i.test(navigator.userAgent) | |
, _ = "undefined" != typeof navigator && /PhantomJS/i.test(navigator.userAgent) | |
, v = x || _; | |
a.protocol = 3; | |
var k = a.packets = { | |
open: 0, | |
close: 1, | |
ping: 2, | |
pong: 3, | |
message: 4, | |
upgrade: 5, | |
noop: 6 | |
} | |
, w = p(k) | |
, S = { | |
type: "error", | |
data: "parser error" | |
} | |
, C = e("blob"); | |
a.encodePacket = function(e, t, a, i) { | |
"function" == typeof t && (i = t, | |
t = !1), | |
"function" == typeof a && (i = a, | |
a = null); | |
var d = void 0 === e.data ? void 0 : e.data.buffer || e.data; | |
if ("undefined" != typeof ArrayBuffer && d instanceof ArrayBuffer) | |
return o(e, t, i); | |
if ("undefined" != typeof C && d instanceof C) | |
return s(e, t, i); | |
if (d && d.base64) | |
return n(e, i); | |
var l = k[e.type]; | |
return void 0 !== e.data && (l += a ? m.encode(e.data + "", { | |
strict: !1 | |
}) : e.data + ""), | |
i("" + l) | |
} | |
, | |
a.encodeBase64Packet = function(e, t) { | |
var n = "b" + a.packets[e.type]; | |
if ("undefined" != typeof C && e.data instanceof C) { | |
var o = new FileReader; | |
return o.onload = function() { | |
var e = o.result.split(",")[1]; | |
t(n + e) | |
} | |
, | |
o.readAsDataURL(e.data) | |
} | |
var s; | |
try { | |
s = u.apply(null, new Uint8Array(e.data)) | |
} catch (t) { | |
for (var d = new Uint8Array(e.data), l = Array(d.length), p = 0; p < d.length; p++) | |
l[p] = d[p]; | |
s = u.apply(null, l) | |
} | |
return n += btoa(s), | |
t(n) | |
} | |
, | |
a.decodePacket = function(e, t, n) { | |
if (void 0 === e) | |
return S; | |
if ("string" == typeof e) { | |
if ("b" === e.charAt(0)) | |
return a.decodeBase64Packet(e.substr(1), t); | |
if (n && (e = d(e), | |
!1 === e)) | |
return S; | |
var o = e.charAt(0); | |
return +o == o && w[o] ? 1 < e.length ? { | |
type: w[o], | |
data: e.substring(1) | |
} : { | |
type: w[o] | |
} : S | |
} | |
var i = new Uint8Array(e) | |
, o = i[0] | |
, s = f(e, 1); | |
return C && "blob" === t && (s = new C([s])), | |
{ | |
type: w[o], | |
data: s | |
} | |
} | |
, | |
a.decodeBase64Packet = function(e, t) { | |
var n = w[e.charAt(0)]; | |
if (!y) | |
return { | |
type: n, | |
data: { | |
base64: !0, | |
data: e.substr(1) | |
} | |
}; | |
var a = y.decode(e.substr(1)); | |
return "blob" === t && C && (a = new C([a])), | |
{ | |
type: n, | |
data: a | |
} | |
} | |
, | |
a.encodePayload = function(e, t, n) { | |
function o(e) { | |
return e.length + ":" + e | |
} | |
function i(e, n) { | |
a.encodePacket(e, !!s && t, !1, function(e) { | |
n(null, o(e)) | |
}) | |
} | |
"function" == typeof t && (n = t, | |
t = null); | |
var s = c(e); | |
return t && s ? C && !v ? a.encodePayloadAsBlob(e, n) : a.encodePayloadAsArrayBuffer(e, n) : e.length ? void l(e, i, function(e, t) { | |
return n(t.join("")) | |
}) : n("0:") | |
} | |
, | |
a.decodePayload = function(e, t, o) { | |
if ("string" != typeof e) | |
return a.decodePayloadAsBinary(e, t, o); | |
"function" == typeof t && (o = t, | |
t = null); | |
var s; | |
if ("" === e) | |
return o(S, 0, 1); | |
for (var d = "", u = 0, p = e.length, l, c, f; u < p; u++) { | |
if (f = e.charAt(u), | |
":" !== f) { | |
d += f; | |
continue | |
} | |
if ("" === d || d != (l = +d)) | |
return o(S, 0, 1); | |
if (c = e.substr(u + 1, l), | |
d != c.length) | |
return o(S, 0, 1); | |
if (c.length) { | |
if (s = a.decodePacket(c, t, !1), | |
S.type === s.type && S.data === s.data) | |
return o(S, 0, 1); | |
var h = o(s, u + l, p); | |
if (!1 === h) | |
return | |
} | |
u += l, | |
d = "" | |
} | |
if ("" !== d) | |
return o(S, 0, 1) | |
} | |
, | |
a.encodePayloadAsArrayBuffer = function(e, t) { | |
return e.length ? void l(e, function(e, t) { | |
a.encodePacket(e, !0, !0, function(e) { | |
return t(null, e) | |
}) | |
}, function(e, n) { | |
var a = n.reduce(function(e, t) { | |
var n; | |
return n = "string" == typeof t ? t.length : t.byteLength, | |
e + n.toString().length + n + 2 | |
}, 0) | |
, o = new Uint8Array(a) | |
, s = 0; | |
return n.forEach(function(e) { | |
var t = "string" == typeof e | |
, n = e; | |
if (t) { | |
for (var a = new Uint8Array(e.length), d = 0; d < e.length; d++) | |
a[d] = e.charCodeAt(d); | |
n = a.buffer | |
} | |
o[s++] = t ? 0 : 1; | |
for (var l = n.byteLength.toString(), d = 0; d < l.length; d++) | |
o[s++] = parseInt(l[d]); | |
o[s++] = 255; | |
for (var a = new Uint8Array(n), d = 0; d < a.length; d++) | |
o[s++] = a[d] | |
}), | |
t(o.buffer) | |
}) : t(new ArrayBuffer(0)) | |
} | |
, | |
a.encodePayloadAsBlob = function(e, t) { | |
l(e, function(e, t) { | |
a.encodePacket(e, !0, !0, function(e) { | |
var n = new Uint8Array(1); | |
if (n[0] = 1, | |
"string" == typeof e) { | |
for (var a = new Uint8Array(e.length), o = 0; o < e.length; o++) | |
a[o] = e.charCodeAt(o); | |
e = a.buffer, | |
n[0] = 0 | |
} | |
for (var s = e instanceof ArrayBuffer ? e.byteLength : e.size, d = s.toString(), l = new Uint8Array(d.length + 1), o = 0; o < d.length; o++) | |
l[o] = parseInt(d[o]); | |
if (l[d.length] = 255, | |
C) { | |
var u = new C([n.buffer, l.buffer, e]); | |
t(null, u) | |
} | |
}) | |
}, function(e, n) { | |
return t(new C(n)) | |
}) | |
} | |
, | |
a.decodePayloadAsBinary = function(e, t, n) { | |
"function" == typeof t && (n = t, | |
t = null); | |
for (var o = e, s = []; 0 < o.byteLength; ) { | |
for (var d = new Uint8Array(o), l = 0 === d[0], p = "", c = 1; ; c++) { | |
if (255 === d[c]) | |
break; | |
if (310 < p.length) | |
return n(S, 0, 1); | |
p += d[c] | |
} | |
o = f(o, 2 + p.length), | |
p = parseInt(p); | |
var h = f(o, 0, p); | |
if (l) | |
try { | |
h = u.apply(null, new Uint8Array(h)) | |
} catch (t) { | |
var m = new Uint8Array(h); | |
h = ""; | |
for (var c = 0; c < m.length; c++) | |
h += u(m[c]) | |
} | |
s.push(h), | |
o = f(o, p) | |
} | |
var y = s.length; | |
s.forEach(function(e, o) { | |
n(a.decodePacket(e, t, !0), o, y) | |
}) | |
} | |
} | |
, { | |
"./keys": 55, | |
"./utf8": 56, | |
after: 34, | |
"arraybuffer.slice": 35, | |
"base64-arraybuffer": 37, | |
blob: 39, | |
"has-binary2": 57 | |
}], | |
55: [function(e, t) { | |
t.exports = Object.keys || function(e) { | |
var t = [] | |
, n = Object.prototype.hasOwnProperty; | |
for (var a in e) | |
n.call(e, a) && t.push(a); | |
return t | |
} | |
} | |
, {}], | |
56: [function(e, t) { | |
function n(e) { | |
for (var t = [], n = 0, a = e.length, o, i; n < a; ) | |
o = e.charCodeAt(n++), | |
55296 <= o && 56319 >= o && n < a ? (i = e.charCodeAt(n++), | |
56320 == (64512 & i) ? t.push(((1023 & o) << 10) + (1023 & i) + 65536) : (t.push(o), | |
n--)) : t.push(o); | |
return t | |
} | |
function a(e) { | |
for (var t = e.length, n = -1, a = "", o; ++n < t; ) | |
o = e[n], | |
65535 < o && (o -= 65536, | |
a += p(55296 | 1023 & o >>> 10), | |
o = 56320 | 1023 & o), | |
a += p(o); | |
return a | |
} | |
function o(e, t) { | |
if (55296 <= e && 57343 >= e) { | |
if (t) | |
throw Error("Lone surrogate U+" + e.toString(16).toUpperCase() + " is not a scalar value"); | |
return !1 | |
} | |
return !0 | |
} | |
function i(e, t) { | |
return p(128 | 63 & e >> t) | |
} | |
function s(e, t) { | |
if (0 == (4294967168 & e)) | |
return p(e); | |
var n = ""; | |
return 0 == (4294965248 & e) ? n = p(192 | 31 & e >> 6) : 0 == (4294901760 & e) ? (!o(e, t) && (e = 65533), | |
n = p(224 | 15 & e >> 12), | |
n += i(e, 6)) : 0 == (4292870144 & e) && (n = p(240 | 7 & e >> 18), | |
n += i(e, 12), | |
n += i(e, 6)), | |
n += p(128 | 63 & e), | |
n | |
} | |
function d() { | |
if (h >= f) | |
throw Error("Invalid byte index"); | |
var e = 255 & c[h]; | |
if (h++, | |
128 == (192 & e)) | |
return 63 & e; | |
throw Error("Invalid continuation byte") | |
} | |
function l(e) { | |
var t, n, a, i, s; | |
if (h > f) | |
throw Error("Invalid byte index"); | |
if (h == f) | |
return !1; | |
if (t = 255 & c[h], | |
h++, | |
0 == (128 & t)) | |
return t; | |
if (192 == (224 & t)) { | |
if (n = d(), | |
s = (31 & t) << 6 | n, | |
128 <= s) | |
return s; | |
throw Error("Invalid continuation byte") | |
} | |
if (224 == (240 & t)) { | |
if (n = d(), | |
a = d(), | |
s = (15 & t) << 12 | n << 6 | a, | |
2048 <= s) | |
return o(s, e) ? s : 65533; | |
throw Error("Invalid continuation byte") | |
} | |
if (240 == (248 & t) && (n = d(), | |
a = d(), | |
i = d(), | |
s = (7 & t) << 18 | n << 12 | a << 6 | i, | |
65536 <= s && 1114111 >= s)) | |
return s; | |
throw Error("Invalid UTF-8 detected") | |
} | |
function u(e, t) { | |
t = t || {}; | |
var o = !1 !== t.strict; | |
c = n(e), | |
f = c.length, | |
h = 0; | |
for (var i = [], s; !1 !== (s = l(o)); ) | |
i.push(s); | |
return a(i) | |
} | |
var p = String.fromCharCode, c, f, h; | |
t.exports = { | |
version: "2.1.2", | |
encode: function(e, t) { | |
t = t || {}; | |
for (var a = !1 !== t.strict, o = n(e), i = o.length, d = -1, l = "", u; ++d < i; ) | |
u = o[d], | |
l += s(u, a); | |
return l | |
}, | |
decode: u | |
} | |
} | |
, {}], | |
57: [function(e, t) { | |
(function(n) { | |
function a(e) { | |
if (!e || "object" != typeof e) | |
return !1; | |
if (o(e)) { | |
for (var t = 0, u = e.length; t < u; t++) | |
if (a(e[t])) | |
return !0; | |
return !1 | |
} | |
if ("function" == typeof n && n.isBuffer && n.isBuffer(e) || "function" == typeof ArrayBuffer && e instanceof ArrayBuffer || s && e instanceof Blob || d && e instanceof File) | |
return !0; | |
if (e.toJSON && "function" == typeof e.toJSON && 1 === arguments.length) | |
return a(e.toJSON(), !0); | |
for (var l in e) | |
if (Object.prototype.hasOwnProperty.call(e, l) && a(e[l])) | |
return !0; | |
return !1 | |
} | |
var o = e("isarray") | |
, i = Object.prototype.toString | |
, s = "function" == typeof Blob || "undefined" != typeof Blob && "[object BlobConstructor]" === i.call(Blob) | |
, d = "function" == typeof File || "undefined" != typeof File && "[object FileConstructor]" === i.call(File); | |
t.exports = a | |
} | |
).call(this, e("buffer").Buffer) | |
} | |
, { | |
buffer: 4, | |
isarray: 60 | |
}], | |
58: [function(e, t) { | |
try { | |
t.exports = "undefined" != typeof XMLHttpRequest && "withCredentials"in new XMLHttpRequest | |
} catch (e) { | |
t.exports = !1 | |
} | |
} | |
, {}], | |
59: [function(e, t) { | |
var n = [].indexOf; | |
t.exports = function(e, t) { | |
if (n) | |
return e.indexOf(t); | |
for (var a = 0; a < e.length; ++a) | |
if (e[a] === t) | |
return a; | |
return -1 | |
} | |
} | |
, {}], | |
60: [function(e, t, n) { | |
arguments[4][10][0].apply(n, arguments) | |
} | |
, { | |
dup: 10 | |
}], | |
61: [function(e, t) { | |
function n(e) { | |
if (e += "", | |
!(100 < e.length)) { | |
var t = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e); | |
if (t) { | |
var a = parseFloat(t[1]) | |
, n = (t[2] || "ms").toLowerCase(); | |
return "years" === n || "year" === n || "yrs" === n || "yr" === n || "y" === n ? 31557600000 * a : "days" === n || "day" === n || "d" === n ? 86400000 * a : "hours" === n || "hour" === n || "hrs" === n || "hr" === n || "h" === n ? 3600000 * a : "minutes" === n || "minute" === n || "mins" === n || "min" === n || "m" === n ? 60000 * a : "seconds" === n || "second" === n || "secs" === n || "sec" === n || "s" === n ? 1000 * a : "milliseconds" === n || "millisecond" === n || "msecs" === n || "msec" === n || "ms" === n ? a : void 0 | |
} | |
} | |
} | |
function a(e) { | |
return 86400000 <= e ? s(e / 86400000) + "d" : 3600000 <= e ? s(e / 3600000) + "h" : 60000 <= e ? s(e / 60000) + "m" : 1000 <= e ? s(e / 1000) + "s" : e + "ms" | |
} | |
function o(e) { | |
return i(e, 86400000, "day") || i(e, 3600000, "hour") || i(e, 60000, "minute") || i(e, 1000, "second") || e + " ms" | |
} | |
function i(e, t, n) { | |
return e < t ? void 0 : e < 1.5 * t ? Math.floor(e / t) + " " + n : Math.ceil(e / t) + " " + n + "s" | |
} | |
var s = Math.round; | |
t.exports = function(e, t) { | |
t = t || {}; | |
var i = typeof e; | |
if ("string" == i && 0 < e.length) | |
return n(e); | |
if ("number" == i && !1 === isNaN(e)) | |
return t.long ? o(e) : a(e); | |
throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(e)) | |
} | |
} | |
, {}], | |
62: [function(e, t) { | |
"use strict"; | |
var n = e("./lib/utils/common").assign | |
, a = e("./lib/deflate") | |
, o = e("./lib/inflate") | |
, i = e("./lib/zlib/constants") | |
, s = {}; | |
n(s, a, o, i), | |
t.exports = s | |
} | |
, { | |
"./lib/deflate": 63, | |
"./lib/inflate": 64, | |
"./lib/utils/common": 65, | |
"./lib/zlib/constants": 68 | |
}], | |
63: [function(e, t, n) { | |
"use strict"; | |
function a(e) { | |
if (!(this instanceof a)) | |
return new a(e); | |
this.options = s.assign({ | |
level: -1, | |
method: 8, | |
chunkSize: 16384, | |
windowBits: 15, | |
memLevel: 8, | |
strategy: 0, | |
to: "" | |
}, e || {}); | |
var t = this.options; | |
t.raw && 0 < t.windowBits ? t.windowBits = -t.windowBits : t.gzip && 0 < t.windowBits && 16 > t.windowBits && (t.windowBits += 16), | |
this.err = 0, | |
this.msg = "", | |
this.ended = !1, | |
this.chunks = [], | |
this.strm = new u, | |
this.strm.avail_out = 0; | |
var n = i.deflateInit2(this.strm, t.level, t.method, t.windowBits, t.memLevel, t.strategy); | |
if (0 !== n) | |
throw new Error(l[n]); | |
if (t.header && i.deflateSetHeader(this.strm, t.header), | |
t.dictionary) { | |
var o; | |
if (o = "string" == typeof t.dictionary ? d.string2buf(t.dictionary) : "[object ArrayBuffer]" === p.call(t.dictionary) ? new Uint8Array(t.dictionary) : t.dictionary, | |
n = i.deflateSetDictionary(this.strm, o), | |
0 !== n) | |
throw new Error(l[n]); | |
this._dict_set = !0 | |
} | |
} | |
function o(e, t) { | |
var n = new a(t); | |
if (n.push(e, !0), | |
n.err) | |
throw n.msg || l[n.err]; | |
return n.result | |
} | |
var i = e("./zlib/deflate") | |
, s = e("./utils/common") | |
, d = e("./utils/strings") | |
, l = e("./zlib/messages") | |
, u = e("./zlib/zstream") | |
, p = Object.prototype.toString | |
, c = 4 | |
, f = 0 | |
, h = 1 | |
, m = 2; | |
a.prototype.push = function(e, t) { | |
var n = this.strm, a = this.options.chunkSize, o, l; | |
if (this.ended) | |
return !1; | |
l = t === ~~t ? t : !0 === t ? c : 0, | |
n.input = "string" == typeof e ? d.string2buf(e) : "[object ArrayBuffer]" === p.call(e) ? new Uint8Array(e) : e, | |
n.next_in = 0, | |
n.avail_in = n.input.length; | |
do { | |
if (0 === n.avail_out && (n.output = new s.Buf8(a), | |
n.next_out = 0, | |
n.avail_out = a), | |
o = i.deflate(n, l), | |
o !== h && o !== f) | |
return this.onEnd(o), | |
this.ended = !0, | |
!1; | |
(0 === n.avail_out || 0 === n.avail_in && (l === c || l === m)) && ("string" === this.options.to ? this.onData(d.buf2binstring(s.shrinkBuf(n.output, n.next_out))) : this.onData(s.shrinkBuf(n.output, n.next_out))) | |
} while ((0 < n.avail_in || 0 === n.avail_out) && o !== h);return l === c ? (o = i.deflateEnd(this.strm), | |
this.onEnd(o), | |
this.ended = !0, | |
o === f) : l !== m || (this.onEnd(f), | |
n.avail_out = 0, | |
!0) | |
} | |
, | |
a.prototype.onData = function(e) { | |
this.chunks.push(e) | |
} | |
, | |
a.prototype.onEnd = function(e) { | |
e === f && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = s.flattenChunks(this.chunks)), | |
this.chunks = [], | |
this.err = e, | |
this.msg = this.strm.msg | |
} | |
, | |
n.Deflate = a, | |
n.deflate = o, | |
n.deflateRaw = function(e, t) { | |
return t = t || {}, | |
t.raw = !0, | |
o(e, t) | |
} | |
, | |
n.gzip = function(e, t) { | |
return t = t || {}, | |
t.gzip = !0, | |
o(e, t) | |
} | |
} | |
, { | |
"./utils/common": 65, | |
"./utils/strings": 66, | |
"./zlib/deflate": 70, | |
"./zlib/messages": 75, | |
"./zlib/zstream": 77 | |
}], | |
64: [function(e, t, n) { | |
"use strict"; | |
function a(e) { | |
if (!(this instanceof a)) | |
return new a(e); | |
this.options = s.assign({ | |
chunkSize: 16384, | |
windowBits: 0, | |
to: "" | |
}, e || {}); | |
var t = this.options; | |
t.raw && 0 <= t.windowBits && 16 > t.windowBits && (t.windowBits = -t.windowBits, | |
0 === t.windowBits && (t.windowBits = -15)), | |
0 <= t.windowBits && 16 > t.windowBits && !(e && e.windowBits) && (t.windowBits += 32), | |
15 < t.windowBits && 48 > t.windowBits && 0 == (15 & t.windowBits) && (t.windowBits |= 15), | |
this.err = 0, | |
this.msg = "", | |
this.ended = !1, | |
this.chunks = [], | |
this.strm = new p, | |
this.strm.avail_out = 0; | |
var n = i.inflateInit2(this.strm, t.windowBits); | |
if (n !== l.Z_OK) | |
throw new Error(u[n]); | |
this.header = new c, | |
i.inflateGetHeader(this.strm, this.header) | |
} | |
function o(e, t) { | |
var n = new a(t); | |
if (n.push(e, !0), | |
n.err) | |
throw n.msg || u[n.err]; | |
return n.result | |
} | |
var i = e("./zlib/inflate") | |
, s = e("./utils/common") | |
, d = e("./utils/strings") | |
, l = e("./zlib/constants") | |
, u = e("./zlib/messages") | |
, p = e("./zlib/zstream") | |
, c = e("./zlib/gzheader") | |
, f = Object.prototype.toString; | |
a.prototype.push = function(e, t) { | |
var n = this.strm, a = this.options.chunkSize, o = this.options.dictionary, u = !1, p, c, h, m, y, x; | |
if (this.ended) | |
return !1; | |
c = t === ~~t ? t : !0 === t ? l.Z_FINISH : l.Z_NO_FLUSH, | |
n.input = "string" == typeof e ? d.binstring2buf(e) : "[object ArrayBuffer]" === f.call(e) ? new Uint8Array(e) : e, | |
n.next_in = 0, | |
n.avail_in = n.input.length; | |
do { | |
if (0 === n.avail_out && (n.output = new s.Buf8(a), | |
n.next_out = 0, | |
n.avail_out = a), | |
p = i.inflate(n, l.Z_NO_FLUSH), | |
p === l.Z_NEED_DICT && o && (x = "string" == typeof o ? d.string2buf(o) : "[object ArrayBuffer]" === f.call(o) ? new Uint8Array(o) : o, | |
p = i.inflateSetDictionary(this.strm, x)), | |
p === l.Z_BUF_ERROR && !0 === u && (p = l.Z_OK, | |
u = !1), | |
p !== l.Z_STREAM_END && p !== l.Z_OK) | |
return this.onEnd(p), | |
this.ended = !0, | |
!1; | |
n.next_out && (0 === n.avail_out || p === l.Z_STREAM_END || 0 === n.avail_in && (c === l.Z_FINISH || c === l.Z_SYNC_FLUSH)) && ("string" === this.options.to ? (h = d.utf8border(n.output, n.next_out), | |
m = n.next_out - h, | |
y = d.buf2string(n.output, h), | |
n.next_out = m, | |
n.avail_out = a - m, | |
m && s.arraySet(n.output, n.output, h, m, 0), | |
this.onData(y)) : this.onData(s.shrinkBuf(n.output, n.next_out))), | |
0 === n.avail_in && 0 === n.avail_out && (u = !0) | |
} while ((0 < n.avail_in || 0 === n.avail_out) && p !== l.Z_STREAM_END);return p === l.Z_STREAM_END && (c = l.Z_FINISH), | |
c === l.Z_FINISH ? (p = i.inflateEnd(this.strm), | |
this.onEnd(p), | |
this.ended = !0, | |
p === l.Z_OK) : c !== l.Z_SYNC_FLUSH || (this.onEnd(l.Z_OK), | |
n.avail_out = 0, | |
!0) | |
} | |
, | |
a.prototype.onData = function(e) { | |
this.chunks.push(e) | |
} | |
, | |
a.prototype.onEnd = function(e) { | |
e === l.Z_OK && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = s.flattenChunks(this.chunks)), | |
this.chunks = [], | |
this.err = e, | |
this.msg = this.strm.msg | |
} | |
, | |
n.Inflate = a, | |
n.inflate = o, | |
n.inflateRaw = function(e, t) { | |
return t = t || {}, | |
t.raw = !0, | |
o(e, t) | |
} | |
, | |
n.ungzip = o | |
} | |
, { | |
"./utils/common": 65, | |
"./utils/strings": 66, | |
"./zlib/constants": 68, | |
"./zlib/gzheader": 71, | |
"./zlib/inflate": 73, | |
"./zlib/messages": 75, | |
"./zlib/zstream": 77 | |
}], | |
65: [function(e, t, n) { | |
"use strict"; | |
function a(e, t) { | |
return Object.prototype.hasOwnProperty.call(e, t) | |
} | |
var o = "undefined" != typeof Uint8Array && "undefined" != typeof Uint16Array && "undefined" != typeof Int32Array; | |
n.assign = function(e) { | |
for (var t = Array.prototype.slice.call(arguments, 1); t.length; ) { | |
var n = t.shift(); | |
if (n) { | |
if ("object" != typeof n) | |
throw new TypeError(n + "must be non-object"); | |
for (var o in n) | |
a(n, o) && (e[o] = n[o]) | |
} | |
} | |
return e | |
} | |
, | |
n.shrinkBuf = function(e, t) { | |
return e.length === t ? e : e.subarray ? e.subarray(0, t) : (e.length = t, | |
e) | |
} | |
; | |
var i = { | |
arraySet: function(e, t, n, a, o) { | |
if (t.subarray && e.subarray) | |
return void e.set(t.subarray(n, n + a), o); | |
for (var s = 0; s < a; s++) | |
e[o + s] = t[n + s] | |
}, | |
flattenChunks: function(e) { | |
var t, n, a, o, s, d; | |
for (a = 0, | |
t = 0, | |
n = e.length; t < n; t++) | |
a += e[t].length; | |
for (d = new Uint8Array(a), | |
o = 0, | |
(t = 0, | |
n = e.length); t < n; t++) | |
s = e[t], | |
d.set(s, o), | |
o += s.length; | |
return d | |
} | |
} | |
, s = { | |
arraySet: function(e, t, n, a, o) { | |
for (var s = 0; s < a; s++) | |
e[o + s] = t[n + s] | |
}, | |
flattenChunks: function(e) { | |
return [].concat.apply([], e) | |
} | |
}; | |
n.setTyped = function(e) { | |
e ? (n.Buf8 = Uint8Array, | |
n.Buf16 = Uint16Array, | |
n.Buf32 = Int32Array, | |
n.assign(n, i)) : (n.Buf8 = Array, | |
n.Buf16 = Array, | |
n.Buf32 = Array, | |
n.assign(n, s)) | |
} | |
, | |
n.setTyped(o) | |
} | |
, {}], | |
66: [function(e, t, n) { | |
"use strict"; | |
function a(e, t) { | |
if (65537 > t && (e.subarray && l || !e.subarray && d)) | |
return o.apply(null, s.shrinkBuf(e, t)); | |
for (var n = "", a = 0; a < t; a++) | |
n += o(e[a]); | |
return n | |
} | |
var o = String.fromCharCode | |
, s = e("./common") | |
, d = !0 | |
, l = !0; | |
try { | |
o.apply(null, [0]) | |
} catch (e) { | |
d = !1 | |
} | |
try { | |
o.apply(null, new Uint8Array(1)) | |
} catch (e) { | |
l = !1 | |
} | |
for (var u = new s.Buf8(256), i = 0; 256 > i; i++) | |
u[i] = 252 <= i ? 6 : 248 <= i ? 5 : 240 <= i ? 4 : 224 <= i ? 3 : 192 <= i ? 2 : 1; | |
u[254] = u[254] = 1, | |
n.string2buf = function(e) { | |
var t = e.length, n = 0, a, o, d, l, u; | |
for (l = 0; l < t; l++) | |
o = e.charCodeAt(l), | |
55296 == (64512 & o) && l + 1 < t && (d = e.charCodeAt(l + 1), | |
56320 == (64512 & d) && (o = 65536 + (o - 55296 << 10) + (d - 56320), | |
l++)), | |
n += 128 > o ? 1 : 2048 > o ? 2 : 65536 > o ? 3 : 4; | |
for (a = new s.Buf8(n), | |
u = 0, | |
l = 0; u < n; l++) | |
o = e.charCodeAt(l), | |
55296 == (64512 & o) && l + 1 < t && (d = e.charCodeAt(l + 1), | |
56320 == (64512 & d) && (o = 65536 + (o - 55296 << 10) + (d - 56320), | |
l++)), | |
128 > o ? a[u++] = o : 2048 > o ? (a[u++] = 192 | o >>> 6, | |
a[u++] = 128 | 63 & o) : 65536 > o ? (a[u++] = 224 | o >>> 12, | |
a[u++] = 128 | 63 & o >>> 6, | |
a[u++] = 128 | 63 & o) : (a[u++] = 240 | o >>> 18, | |
a[u++] = 128 | 63 & o >>> 12, | |
a[u++] = 128 | 63 & o >>> 6, | |
a[u++] = 128 | 63 & o); | |
return a | |
} | |
, | |
n.buf2binstring = function(e) { | |
return a(e, e.length) | |
} | |
, | |
n.binstring2buf = function(e) { | |
for (var t = new s.Buf8(e.length), n = 0, a = t.length; n < a; n++) | |
t[n] = e.charCodeAt(n); | |
return t | |
} | |
, | |
n.buf2string = function(e, t) { | |
var n = t || e.length, o = Array(2 * n), s, d, l, p; | |
for (d = 0, | |
s = 0; s < n; ) { | |
if (l = e[s++], | |
128 > l) { | |
o[d++] = l; | |
continue | |
} | |
if (p = u[l], | |
4 < p) { | |
o[d++] = 65533, | |
s += p - 1; | |
continue | |
} | |
for (l &= 2 === p ? 31 : 3 === p ? 15 : 7; 1 < p && s < n; ) | |
l = l << 6 | 63 & e[s++], | |
p--; | |
if (1 < p) { | |
o[d++] = 65533; | |
continue | |
} | |
65536 > l ? o[d++] = l : (l -= 65536, | |
o[d++] = 55296 | 1023 & l >> 10, | |
o[d++] = 56320 | 1023 & l) | |
} | |
return a(o, d) | |
} | |
, | |
n.utf8border = function(e, t) { | |
var n; | |
for (t = t || e.length, | |
t > e.length && (t = e.length), | |
n = t - 1; 0 <= n && 128 == (192 & e[n]); ) | |
n--; | |
return 0 > n ? t : 0 === n ? t : n + u[e[n]] > t ? n : t | |
} | |
} | |
, { | |
"./common": 65 | |
}], | |
67: [function(e, t) { | |
"use strict"; | |
t.exports = function(e, t, a, o) { | |
for (var i = 0 | 65535 & e, s = 0 | 65535 & e >>> 16, d = 0; 0 !== a; ) { | |
d = 2e3 < a ? 2e3 : a, | |
a -= d; | |
do | |
i = 0 | i + t[o++], | |
s = 0 | s + i; | |
while (--d);i %= 65521, | |
s %= 65521 | |
} | |
return 0 | (i | s << 16) | |
} | |
} | |
, {}], | |
68: [function(e, t) { | |
"use strict"; | |
t.exports = { | |
Z_NO_FLUSH: 0, | |
Z_PARTIAL_FLUSH: 1, | |
Z_SYNC_FLUSH: 2, | |
Z_FULL_FLUSH: 3, | |
Z_FINISH: 4, | |
Z_BLOCK: 5, | |
Z_TREES: 6, | |
Z_OK: 0, | |
Z_STREAM_END: 1, | |
Z_NEED_DICT: 2, | |
Z_ERRNO: -1, | |
Z_STREAM_ERROR: -2, | |
Z_DATA_ERROR: -3, | |
Z_BUF_ERROR: -5, | |
Z_NO_COMPRESSION: 0, | |
Z_BEST_SPEED: 1, | |
Z_BEST_COMPRESSION: 9, | |
Z_DEFAULT_COMPRESSION: -1, | |
Z_FILTERED: 1, | |
Z_HUFFMAN_ONLY: 2, | |
Z_RLE: 3, | |
Z_FIXED: 4, | |
Z_DEFAULT_STRATEGY: 0, | |
Z_BINARY: 0, | |
Z_TEXT: 1, | |
Z_UNKNOWN: 2, | |
Z_DEFLATED: 8 | |
} | |
} | |
, {}], | |
69: [function(e, t) { | |
"use strict"; | |
var n = function() { | |
for (var e = [], t = 0, a; 256 > t; t++) { | |
a = t; | |
for (var o = 0; 8 > o; o++) | |
a = 1 & a ? 3988292384 ^ a >>> 1 : a >>> 1; | |
e[t] = a | |
} | |
return e | |
}(); | |
t.exports = function(e, t, a, o) { | |
e ^= -1; | |
for (var s = o; s < o + a; s++) | |
e = e >>> 8 ^ n[255 & (e ^ t[s])]; | |
return -1 ^ e | |
} | |
} | |
, {}], | |
70: [function(e, t, n) { | |
"use strict"; | |
function a(e, t) { | |
return e.msg = M[t], | |
t | |
} | |
function o(e) { | |
return (e << 1) - (4 < e ? 9 : 0) | |
} | |
function i(e) { | |
for (var t = e.length; 0 <= --t; ) | |
e[t] = 0 | |
} | |
function d(e) { | |
var t = e.state | |
, n = t.pending; | |
n > e.avail_out && (n = e.avail_out); | |
0 === n || (T.arraySet(e.output, t.pending_buf, t.pending_out, n, e.next_out), | |
e.next_out += n, | |
t.pending_out += n, | |
e.total_out += n, | |
e.avail_out -= n, | |
t.pending -= n, | |
0 === t.pending && (t.pending_out = 0)) | |
} | |
function l(e, t) { | |
P._tr_flush_block(e, 0 <= e.block_start ? e.block_start : -1, e.strstart - e.block_start, t), | |
e.block_start = e.strstart, | |
d(e.strm) | |
} | |
function u(e, t) { | |
e.pending_buf[e.pending++] = t | |
} | |
function p(e, t) { | |
e.pending_buf[e.pending++] = 255 & t >>> 8, | |
e.pending_buf[e.pending++] = 255 & t | |
} | |
function c(e, t, n, a) { | |
var o = e.avail_in; | |
return (o > a && (o = a), | |
0 === o) ? 0 : (e.avail_in -= o, | |
T.arraySet(t, e.input, e.next_in, o, n), | |
1 === e.state.wrap ? e.adler = D(e.adler, t, o, n) : 2 === e.state.wrap && (e.adler = O(e.adler, t, o, n)), | |
e.next_in += o, | |
e.total_in += o, | |
o) | |
} | |
function f(e, t) { | |
var n = e.max_chain_length, a = e.strstart, o = e.prev_length, i = e.nice_match, s = e.strstart > e.w_size - 262 ? e.strstart - (e.w_size - 262) : 0, d = e.window, l = e.w_mask, u = e.prev, p = e.strstart + 258, c = d[a + o - 1], f = d[a + o], h, m; | |
e.prev_length >= e.good_match && (n >>= 2), | |
i > e.lookahead && (i = e.lookahead); | |
do { | |
if (h = t, | |
d[h + o] !== f || d[h + o - 1] !== c || d[h] !== d[a] || d[++h] !== d[a + 1]) | |
continue; | |
a += 2, | |
h++; | |
do | |
; | |
while (d[++a] === d[++h] && d[++a] === d[++h] && d[++a] === d[++h] && d[++a] === d[++h] && d[++a] === d[++h] && d[++a] === d[++h] && d[++a] === d[++h] && d[++a] === d[++h] && a < p);if (m = 258 - (p - a), | |
a = p - 258, | |
m > o) { | |
if (e.match_start = t, | |
o = m, | |
m >= i) | |
break; | |
c = d[a + o - 1], | |
f = d[a + o] | |
} | |
} while ((t = u[t & l]) > s && 0 != --n);return o <= e.lookahead ? o : e.lookahead | |
} | |
function h(e) { | |
var t = e.w_size, a, o, i, s, d; | |
do { | |
if (s = e.window_size - e.lookahead - e.strstart, | |
e.strstart >= t + (t - 262)) { | |
T.arraySet(e.window, e.window, t, t, 0), | |
e.match_start -= t, | |
e.strstart -= t, | |
e.block_start -= t, | |
o = e.hash_size, | |
a = o; | |
do | |
i = e.head[--a], | |
e.head[a] = i >= t ? i - t : 0; | |
while (--o);o = t, | |
a = o; | |
do | |
i = e.prev[--a], | |
e.prev[a] = i >= t ? i - t : 0; | |
while (--o);s += t | |
} | |
if (0 === e.strm.avail_in) | |
break; | |
if (o = c(e.strm, e.window, e.strstart + e.lookahead, s), | |
e.lookahead += o, | |
3 <= e.lookahead + e.insert) | |
for (d = e.strstart - e.insert, | |
e.ins_h = e.window[d], | |
e.ins_h = (e.ins_h << e.hash_shift ^ e.window[d + 1]) & e.hash_mask; e.insert && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[d + 3 - 1]) & e.hash_mask, | |
e.prev[d & e.w_mask] = e.head[e.ins_h], | |
e.head[e.ins_h] = d, | |
d++, | |
e.insert--, | |
!(3 > e.lookahead + e.insert)); ) | |
; | |
} while (262 > e.lookahead && 0 !== e.strm.avail_in) | |
} | |
function s(e, t) { | |
for (var n, a; ; ) { | |
if (262 > e.lookahead) { | |
if (h(e), | |
262 > e.lookahead && 0 === t) | |
return 1; | |
if (0 === e.lookahead) | |
break | |
} | |
if (n = 0, | |
3 <= e.lookahead && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + 3 - 1]) & e.hash_mask, | |
n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], | |
e.head[e.ins_h] = e.strstart), | |
0 !== n && e.strstart - n <= e.w_size - 262 && (e.match_length = f(e, n)), | |
!(3 <= e.match_length)) | |
a = P._tr_tally(e, 0, e.window[e.strstart]), | |
e.lookahead--, | |
e.strstart++; | |
else if (a = P._tr_tally(e, e.strstart - e.match_start, e.match_length - 3), | |
e.lookahead -= e.match_length, | |
e.match_length <= e.max_lazy_match && 3 <= e.lookahead) { | |
e.match_length--; | |
do | |
e.strstart++, | |
e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + 3 - 1]) & e.hash_mask, | |
n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], | |
e.head[e.ins_h] = e.strstart; | |
while (0 != --e.match_length);e.strstart++ | |
} else | |
e.strstart += e.match_length, | |
e.match_length = 0, | |
e.ins_h = e.window[e.strstart], | |
e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + 1]) & e.hash_mask; | |
if (a && (l(e, !1), | |
0 === e.strm.avail_out)) | |
return 1 | |
} | |
return e.insert = 2 > e.strstart ? e.strstart : 2, | |
4 === t ? (l(e, !0), | |
0 === e.strm.avail_out ? 3 : 4) : e.last_lit && (l(e, !1), | |
0 === e.strm.avail_out) ? 1 : 2 | |
} | |
function m(e, t) { | |
for (var n, a, o; ; ) { | |
if (262 > e.lookahead) { | |
if (h(e), | |
262 > e.lookahead && 0 === t) | |
return 1; | |
if (0 === e.lookahead) | |
break | |
} | |
if (n = 0, | |
3 <= e.lookahead && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + 3 - 1]) & e.hash_mask, | |
n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], | |
e.head[e.ins_h] = e.strstart), | |
e.prev_length = e.match_length, | |
e.prev_match = e.match_start, | |
e.match_length = 2, | |
0 !== n && e.prev_length < e.max_lazy_match && e.strstart - n <= e.w_size - 262 && (e.match_length = f(e, n), | |
5 >= e.match_length && (1 === e.strategy || 3 === e.match_length && 4096 < e.strstart - e.match_start) && (e.match_length = 2)), | |
3 <= e.prev_length && e.match_length <= e.prev_length) { | |
o = e.strstart + e.lookahead - 3, | |
a = P._tr_tally(e, e.strstart - 1 - e.prev_match, e.prev_length - 3), | |
e.lookahead -= e.prev_length - 1, | |
e.prev_length -= 2; | |
do | |
++e.strstart <= o && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + 3 - 1]) & e.hash_mask, | |
n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], | |
e.head[e.ins_h] = e.strstart); | |
while (0 != --e.prev_length);if (e.match_available = 0, | |
e.match_length = 2, | |
e.strstart++, | |
a && (l(e, !1), | |
0 === e.strm.avail_out)) | |
return 1 | |
} else if (!e.match_available) | |
e.match_available = 1, | |
e.strstart++, | |
e.lookahead--; | |
else if (a = P._tr_tally(e, 0, e.window[e.strstart - 1]), | |
a && l(e, !1), | |
e.strstart++, | |
e.lookahead--, | |
0 === e.strm.avail_out) | |
return 1 | |
} | |
return e.match_available && (a = P._tr_tally(e, 0, e.window[e.strstart - 1]), | |
e.match_available = 0), | |
e.insert = 2 > e.strstart ? e.strstart : 2, | |
4 === t ? (l(e, !0), | |
0 === e.strm.avail_out ? 3 : 4) : e.last_lit && (l(e, !1), | |
0 === e.strm.avail_out) ? 1 : 2 | |
} | |
function y(e, t) { | |
for (var n = e.window, a, o, i, s; ; ) { | |
if (258 >= e.lookahead) { | |
if (h(e), | |
258 >= e.lookahead && 0 === t) | |
return 1; | |
if (0 === e.lookahead) | |
break | |
} | |
if (e.match_length = 0, | |
3 <= e.lookahead && 0 < e.strstart && (i = e.strstart - 1, | |
o = n[i], | |
o === n[++i] && o === n[++i] && o === n[++i])) { | |
s = e.strstart + 258; | |
do | |
; | |
while (o === n[++i] && o === n[++i] && o === n[++i] && o === n[++i] && o === n[++i] && o === n[++i] && o === n[++i] && o === n[++i] && i < s);e.match_length = 258 - (s - i), | |
e.match_length > e.lookahead && (e.match_length = e.lookahead) | |
} | |
if (3 <= e.match_length ? (a = P._tr_tally(e, 1, e.match_length - 3), | |
e.lookahead -= e.match_length, | |
e.strstart += e.match_length, | |
e.match_length = 0) : (a = P._tr_tally(e, 0, e.window[e.strstart]), | |
e.lookahead--, | |
e.strstart++), | |
a && (l(e, !1), | |
0 === e.strm.avail_out)) | |
return 1 | |
} | |
return e.insert = 0, | |
4 === t ? (l(e, !0), | |
0 === e.strm.avail_out ? 3 : 4) : e.last_lit && (l(e, !1), | |
0 === e.strm.avail_out) ? 1 : 2 | |
} | |
function x(e, t) { | |
for (var n; ; ) { | |
if (0 === e.lookahead && (h(e), | |
0 === e.lookahead)) { | |
if (0 === t) | |
return 1; | |
break | |
} | |
if (e.match_length = 0, | |
n = P._tr_tally(e, 0, e.window[e.strstart]), | |
e.lookahead--, | |
e.strstart++, | |
n && (l(e, !1), | |
0 === e.strm.avail_out)) | |
return 1 | |
} | |
return e.insert = 0, | |
4 === t ? (l(e, !0), | |
0 === e.strm.avail_out ? 3 : 4) : e.last_lit && (l(e, !1), | |
0 === e.strm.avail_out) ? 1 : 2 | |
} | |
function _(e, t, n, a, o) { | |
this.good_length = e, | |
this.max_lazy = t, | |
this.nice_length = n, | |
this.max_chain = a, | |
this.func = o | |
} | |
function v(e) { | |
e.window_size = 2 * e.w_size, | |
i(e.head), | |
e.max_lazy_match = R[e.level].max_lazy, | |
e.good_match = R[e.level].good_length, | |
e.nice_match = R[e.level].nice_length, | |
e.max_chain_length = R[e.level].max_chain, | |
e.strstart = 0, | |
e.block_start = 0, | |
e.lookahead = 0, | |
e.insert = 0, | |
e.match_length = e.prev_length = 2, | |
e.match_available = 0, | |
e.ins_h = 0 | |
} | |
function k() { | |
this.strm = null, | |
this.status = 0, | |
this.pending_buf = null, | |
this.pending_buf_size = 0, | |
this.pending_out = 0, | |
this.pending = 0, | |
this.wrap = 0, | |
this.gzhead = null, | |
this.gzindex = 0, | |
this.method = 8, | |
this.last_flush = -1, | |
this.w_size = 0, | |
this.w_bits = 0, | |
this.w_mask = 0, | |
this.window = null, | |
this.window_size = 0, | |
this.prev = null, | |
this.head = null, | |
this.ins_h = 0, | |
this.hash_size = 0, | |
this.hash_bits = 0, | |
this.hash_mask = 0, | |
this.hash_shift = 0, | |
this.block_start = 0, | |
this.match_length = 0, | |
this.prev_match = 0, | |
this.match_available = 0, | |
this.strstart = 0, | |
this.match_start = 0, | |
this.lookahead = 0, | |
this.prev_length = 0, | |
this.max_chain_length = 0, | |
this.max_lazy_match = 0, | |
this.level = 0, | |
this.strategy = 0, | |
this.good_match = 0, | |
this.nice_match = 0, | |
this.dyn_ltree = new T.Buf16(1146), | |
this.dyn_dtree = new T.Buf16(122), | |
this.bl_tree = new T.Buf16(78), | |
i(this.dyn_ltree), | |
i(this.dyn_dtree), | |
i(this.bl_tree), | |
this.l_desc = null, | |
this.d_desc = null, | |
this.bl_desc = null, | |
this.bl_count = new T.Buf16(16), | |
this.heap = new T.Buf16(573), | |
i(this.heap), | |
this.heap_len = 0, | |
this.heap_max = 0, | |
this.depth = new T.Buf16(573), | |
i(this.depth), | |
this.l_buf = 0, | |
this.lit_bufsize = 0, | |
this.last_lit = 0, | |
this.d_buf = 0, | |
this.opt_len = 0, | |
this.static_len = 0, | |
this.matches = 0, | |
this.insert = 0, | |
this.bi_buf = 0, | |
this.bi_valid = 0 | |
} | |
function w(e) { | |
var t; | |
return e && e.state ? (e.total_in = e.total_out = 0, | |
e.data_type = 2, | |
t = e.state, | |
t.pending = 0, | |
t.pending_out = 0, | |
0 > t.wrap && (t.wrap = -t.wrap), | |
t.status = t.wrap ? 42 : 113, | |
e.adler = 2 === t.wrap ? 0 : 1, | |
t.last_flush = 0, | |
P._tr_init(t), | |
0) : a(e, -2) | |
} | |
function S(e) { | |
var t = w(e); | |
return 0 === t && v(e.state), | |
t | |
} | |
function C(e, t, n, o, i, d) { | |
if (!e) | |
return -2; | |
var l = 1; | |
if (-1 === t && (t = 6), | |
0 > o ? (l = 0, | |
o = -o) : 15 < o && (l = 2, | |
o -= 16), | |
1 > i || 9 < i || 8 !== n || 8 > o || 15 < o || 0 > t || 9 < t || 0 > d || 4 < d) | |
return a(e, -2); | |
8 === o && (o = 9); | |
var u = new k; | |
return e.state = u, | |
u.strm = e, | |
u.wrap = l, | |
u.gzhead = null, | |
u.w_bits = o, | |
u.w_size = 1 << u.w_bits, | |
u.w_mask = u.w_size - 1, | |
u.hash_bits = i + 7, | |
u.hash_size = 1 << u.hash_bits, | |
u.hash_mask = u.hash_size - 1, | |
u.hash_shift = ~~((u.hash_bits + 3 - 1) / 3), | |
u.window = new T.Buf8(2 * u.w_size), | |
u.head = new T.Buf16(u.hash_size), | |
u.prev = new T.Buf16(u.w_size), | |
u.lit_bufsize = 1 << i + 6, | |
u.pending_buf_size = 4 * u.lit_bufsize, | |
u.pending_buf = new T.Buf8(u.pending_buf_size), | |
u.d_buf = 1 * u.lit_bufsize, | |
u.l_buf = 3 * u.lit_bufsize, | |
u.level = t, | |
u.strategy = d, | |
u.method = n, | |
S(e) | |
} | |
function E(e, t) { | |
var n, l, c, f; | |
if (!e || !e.state || 5 < t || 0 > t) | |
return e ? a(e, -2) : -2; | |
if (l = e.state, | |
!e.output || !e.input && 0 !== e.avail_in || 666 === l.status && 4 !== t) | |
return a(e, 0 === e.avail_out ? -5 : -2); | |
if (l.strm = e, | |
n = l.last_flush, | |
l.last_flush = t, | |
42 === l.status) | |
if (2 === l.wrap) | |
e.adler = 0, | |
u(l, 31), | |
u(l, 139), | |
u(l, 8), | |
l.gzhead ? (u(l, (l.gzhead.text ? 1 : 0) + (l.gzhead.hcrc ? 2 : 0) + (l.gzhead.extra ? 4 : 0) + (l.gzhead.name ? 8 : 0) + (l.gzhead.comment ? 16 : 0)), | |
u(l, 255 & l.gzhead.time), | |
u(l, 255 & l.gzhead.time >> 8), | |
u(l, 255 & l.gzhead.time >> 16), | |
u(l, 255 & l.gzhead.time >> 24), | |
u(l, 9 === l.level ? 2 : 2 <= l.strategy || 2 > l.level ? 4 : 0), | |
u(l, 255 & l.gzhead.os), | |
l.gzhead.extra && l.gzhead.extra.length && (u(l, 255 & l.gzhead.extra.length), | |
u(l, 255 & l.gzhead.extra.length >> 8)), | |
l.gzhead.hcrc && (e.adler = O(e.adler, l.pending_buf, l.pending, 0)), | |
l.gzindex = 0, | |
l.status = 69) : (u(l, 0), | |
u(l, 0), | |
u(l, 0), | |
u(l, 0), | |
u(l, 0), | |
u(l, 9 === l.level ? 2 : 2 <= l.strategy || 2 > l.level ? 4 : 0), | |
u(l, 3), | |
l.status = 113); | |
else { | |
var h = 8 + (l.w_bits - 8 << 4) << 8 | |
, m = -1; | |
m = 2 <= l.strategy || 2 > l.level ? 0 : 6 > l.level ? 1 : 6 === l.level ? 2 : 3, | |
h |= m << 6, | |
0 !== l.strstart && (h |= 32), | |
h += 31 - h % 31, | |
l.status = 113, | |
p(l, h), | |
0 !== l.strstart && (p(l, e.adler >>> 16), | |
p(l, 65535 & e.adler)), | |
e.adler = 1 | |
} | |
if (69 === l.status) | |
if (l.gzhead.extra) { | |
for (c = l.pending; l.gzindex < (65535 & l.gzhead.extra.length) && !(l.pending === l.pending_buf_size && (l.gzhead.hcrc && l.pending > c && (e.adler = O(e.adler, l.pending_buf, l.pending - c, c)), | |
d(e), | |
c = l.pending, | |
l.pending === l.pending_buf_size)); ) | |
u(l, 255 & l.gzhead.extra[l.gzindex]), | |
l.gzindex++; | |
l.gzhead.hcrc && l.pending > c && (e.adler = O(e.adler, l.pending_buf, l.pending - c, c)), | |
l.gzindex === l.gzhead.extra.length && (l.gzindex = 0, | |
l.status = 73) | |
} else | |
l.status = 73; | |
if (73 === l.status) | |
if (l.gzhead.name) { | |
c = l.pending; | |
do { | |
if (l.pending === l.pending_buf_size && (l.gzhead.hcrc && l.pending > c && (e.adler = O(e.adler, l.pending_buf, l.pending - c, c)), | |
d(e), | |
c = l.pending, | |
l.pending === l.pending_buf_size)) { | |
f = 1; | |
break | |
} | |
f = l.gzindex < l.gzhead.name.length ? 255 & l.gzhead.name.charCodeAt(l.gzindex++) : 0, | |
u(l, f) | |
} while (0 !== f);l.gzhead.hcrc && l.pending > c && (e.adler = O(e.adler, l.pending_buf, l.pending - c, c)), | |
0 === f && (l.gzindex = 0, | |
l.status = 91) | |
} else | |
l.status = 91; | |
if (91 === l.status) | |
if (l.gzhead.comment) { | |
c = l.pending; | |
do { | |
if (l.pending === l.pending_buf_size && (l.gzhead.hcrc && l.pending > c && (e.adler = O(e.adler, l.pending_buf, l.pending - c, c)), | |
d(e), | |
c = l.pending, | |
l.pending === l.pending_buf_size)) { | |
f = 1; | |
break | |
} | |
f = l.gzindex < l.gzhead.comment.length ? 255 & l.gzhead.comment.charCodeAt(l.gzindex++) : 0, | |
u(l, f) | |
} while (0 !== f);l.gzhead.hcrc && l.pending > c && (e.adler = O(e.adler, l.pending_buf, l.pending - c, c)), | |
0 === f && (l.status = 103) | |
} else | |
l.status = 103; | |
if (103 === l.status && (l.gzhead.hcrc ? (l.pending + 2 > l.pending_buf_size && d(e), | |
l.pending + 2 <= l.pending_buf_size && (u(l, 255 & e.adler), | |
u(l, 255 & e.adler >> 8), | |
e.adler = 0, | |
l.status = 113)) : l.status = 113), | |
0 !== l.pending) { | |
if (d(e), | |
0 === e.avail_out) | |
return l.last_flush = -1, | |
0; | |
} else if (0 === e.avail_in && o(t) <= o(n) && 4 !== t) | |
return a(e, -5); | |
if (666 === l.status && 0 !== e.avail_in) | |
return a(e, -5); | |
if (0 !== e.avail_in || 0 !== l.lookahead || 0 !== t && 666 !== l.status) { | |
var _ = 2 === l.strategy ? x(l, t) : 3 === l.strategy ? y(l, t) : R[l.level].func(l, t); | |
if ((3 === _ || 4 === _) && (l.status = 666), | |
1 === _ || 3 === _) | |
return 0 === e.avail_out && (l.last_flush = -1), | |
0; | |
if (2 === _ && (1 === t ? P._tr_align(l) : 5 !== t && (P._tr_stored_block(l, 0, 0, !1), | |
3 === t && (i(l.head), | |
0 === l.lookahead && (l.strstart = 0, | |
l.block_start = 0, | |
l.insert = 0))), | |
d(e), | |
0 === e.avail_out)) | |
return l.last_flush = -1, | |
0 | |
} | |
return 4 === t ? 0 >= l.wrap ? 1 : (2 === l.wrap ? (u(l, 255 & e.adler), | |
u(l, 255 & e.adler >> 8), | |
u(l, 255 & e.adler >> 16), | |
u(l, 255 & e.adler >> 24), | |
u(l, 255 & e.total_in), | |
u(l, 255 & e.total_in >> 8), | |
u(l, 255 & e.total_in >> 16), | |
u(l, 255 & e.total_in >> 24)) : (p(l, e.adler >>> 16), | |
p(l, 65535 & e.adler)), | |
d(e), | |
0 < l.wrap && (l.wrap = -l.wrap), | |
0 === l.pending ? 1 : 0) : 0 | |
} | |
var T = e("../utils/common"), P = e("./trees"), D = e("./adler32"), O = e("./crc32"), M = e("./messages"), R; | |
R = [new _(0,0,0,0,function(e, t) { | |
var n = 65535; | |
for (n > e.pending_buf_size - 5 && (n = e.pending_buf_size - 5); ; ) { | |
if (1 >= e.lookahead) { | |
if (h(e), | |
0 === e.lookahead && 0 === t) | |
return 1; | |
if (0 === e.lookahead) | |
break | |
} | |
e.strstart += e.lookahead, | |
e.lookahead = 0; | |
var a = e.block_start + n; | |
if ((0 === e.strstart || e.strstart >= a) && (e.lookahead = e.strstart - a, | |
e.strstart = a, | |
l(e, !1), | |
0 === e.strm.avail_out)) | |
return 1; | |
if (e.strstart - e.block_start >= e.w_size - 262 && (l(e, !1), | |
0 === e.strm.avail_out)) | |
return 1 | |
} | |
return e.insert = 0, | |
4 === t ? (l(e, !0), | |
0 === e.strm.avail_out ? 3 : 4) : e.strstart > e.block_start && (l(e, !1), | |
0 === e.strm.avail_out) ? 1 : 1 | |
} | |
), new _(4,4,8,4,s), new _(4,5,16,8,s), new _(4,6,32,32,s), new _(4,4,16,16,m), new _(8,16,32,32,m), new _(8,16,128,128,m), new _(8,32,128,256,m), new _(32,128,258,1024,m), new _(32,258,258,4096,m)], | |
n.deflateInit = function(e, t) { | |
return C(e, t, 8, 15, 8, 0) | |
} | |
, | |
n.deflateInit2 = C, | |
n.deflateReset = S, | |
n.deflateResetKeep = w, | |
n.deflateSetHeader = function(e, t) { | |
return e && e.state ? 2 === e.state.wrap ? (e.state.gzhead = t, | |
0) : -2 : -2 | |
} | |
, | |
n.deflate = E, | |
n.deflateEnd = function(e) { | |
var t; | |
return e && e.state ? (t = e.state.status, | |
42 !== t && 69 !== t && 73 !== t && 91 !== t && 103 !== t && 113 !== t && 666 !== t) ? a(e, -2) : (e.state = null, | |
113 === t ? a(e, -3) : 0) : -2 | |
} | |
, | |
n.deflateSetDictionary = function(e, t) { | |
var a = t.length, o, d, l, u, p, c, f, m; | |
if (!e || !e.state) | |
return -2; | |
if (o = e.state, | |
u = o.wrap, | |
2 === u || 1 === u && 42 !== o.status || o.lookahead) | |
return -2; | |
for (1 === u && (e.adler = D(e.adler, t, a, 0)), | |
o.wrap = 0, | |
a >= o.w_size && (0 === u && (i(o.head), | |
o.strstart = 0, | |
o.block_start = 0, | |
o.insert = 0), | |
m = new T.Buf8(o.w_size), | |
T.arraySet(m, t, a - o.w_size, o.w_size, 0), | |
t = m, | |
a = o.w_size), | |
p = e.avail_in, | |
c = e.next_in, | |
f = e.input, | |
e.avail_in = a, | |
e.next_in = 0, | |
e.input = t, | |
h(o); 3 <= o.lookahead; ) { | |
d = o.strstart, | |
l = o.lookahead - 2; | |
do | |
o.ins_h = (o.ins_h << o.hash_shift ^ o.window[d + 3 - 1]) & o.hash_mask, | |
o.prev[d & o.w_mask] = o.head[o.ins_h], | |
o.head[o.ins_h] = d, | |
d++; | |
while (--l);o.strstart = d, | |
o.lookahead = 2, | |
h(o) | |
} | |
return o.strstart += o.lookahead, | |
o.block_start = o.strstart, | |
o.insert = o.lookahead, | |
o.lookahead = 0, | |
o.match_length = o.prev_length = 2, | |
o.match_available = 0, | |
e.next_in = c, | |
e.input = f, | |
e.avail_in = p, | |
o.wrap = u, | |
0 | |
} | |
, | |
n.deflateInfo = "pako deflate (from Nodeca project)" | |
} | |
, { | |
"../utils/common": 65, | |
"./adler32": 67, | |
"./crc32": 69, | |
"./messages": 75, | |
"./trees": 76 | |
}], | |
71: [function(e, t) { | |
"use strict"; | |
t.exports = function() { | |
this.text = 0, | |
this.time = 0, | |
this.xflags = 0, | |
this.os = 0, | |
this.extra = null, | |
this.extra_len = 0, | |
this.name = "", | |
this.comment = "", | |
this.hcrc = 0, | |
this.done = !1 | |
} | |
} | |
, {}], | |
72: [function(e, t) { | |
"use strict"; | |
t.exports = function(e, t) { | |
var n, a, o, i, s, d, l, u, p, c, f, h, m, y, x, _, v, k, w, S, C, E, T, P, D; | |
n = e.state, | |
a = e.next_in, | |
P = e.input, | |
o = a + (e.avail_in - 5), | |
i = e.next_out, | |
D = e.output, | |
s = i - (t - e.avail_out), | |
d = i + (e.avail_out - 257), | |
l = n.dmax, | |
u = n.wsize, | |
p = n.whave, | |
c = n.wnext, | |
f = n.window, | |
h = n.hold, | |
m = n.bits, | |
y = n.lencode, | |
x = n.distcode, | |
_ = (1 << n.lenbits) - 1, | |
v = (1 << n.distbits) - 1; | |
top: do { | |
15 > m && (h += P[a++] << m, | |
m += 8, | |
h += P[a++] << m, | |
m += 8), | |
k = y[h & _]; | |
dolen: for (; ; ) { | |
if (w = k >>> 24, | |
h >>>= w, | |
m -= w, | |
w = 255 & k >>> 16, | |
0 === w) | |
D[i++] = 65535 & k; | |
else if (16 & w) { | |
S = 65535 & k, | |
w &= 15, | |
w && (m < w && (h += P[a++] << m, | |
m += 8), | |
S += h & (1 << w) - 1, | |
h >>>= w, | |
m -= w), | |
15 > m && (h += P[a++] << m, | |
m += 8, | |
h += P[a++] << m, | |
m += 8), | |
k = x[h & v]; | |
dodist: for (; ; ) { | |
if (w = k >>> 24, | |
h >>>= w, | |
m -= w, | |
w = 255 & k >>> 16, | |
16 & w) { | |
if (C = 65535 & k, | |
w &= 15, | |
m < w && (h += P[a++] << m, | |
m += 8, | |
m < w && (h += P[a++] << m, | |
m += 8)), | |
C += h & (1 << w) - 1, | |
C > l) { | |
e.msg = "invalid distance too far back", | |
n.mode = 30; | |
break top | |
} | |
if (h >>>= w, | |
m -= w, | |
w = i - s, | |
C > w) { | |
if (w = C - w, | |
w > p && n.sane) { | |
e.msg = "invalid distance too far back", | |
n.mode = 30; | |
break top | |
} | |
if (E = 0, | |
T = f, | |
0 === c) { | |
if (E += u - w, | |
w < S) { | |
S -= w; | |
do | |
D[i++] = f[E++]; | |
while (--w);E = i - C, | |
T = D | |
} | |
} else if (c < w) { | |
if (E += u + c - w, | |
w -= c, | |
w < S) { | |
S -= w; | |
do | |
D[i++] = f[E++]; | |
while (--w);if (E = 0, | |
c < S) { | |
w = c, | |
S -= w; | |
do | |
D[i++] = f[E++]; | |
while (--w);E = i - C, | |
T = D | |
} | |
} | |
} else if (E += c - w, | |
w < S) { | |
S -= w; | |
do | |
D[i++] = f[E++]; | |
while (--w);E = i - C, | |
T = D | |
} | |
for (; 2 < S; ) | |
D[i++] = T[E++], | |
D[i++] = T[E++], | |
D[i++] = T[E++], | |
S -= 3; | |
S && (D[i++] = T[E++], | |
1 < S && (D[i++] = T[E++])) | |
} else { | |
E = i - C; | |
do | |
D[i++] = D[E++], | |
D[i++] = D[E++], | |
D[i++] = D[E++], | |
S -= 3; | |
while (2 < S);S && (D[i++] = D[E++], | |
1 < S && (D[i++] = D[E++])) | |
} | |
} else if (0 == (64 & w)) { | |
k = x[(65535 & k) + (h & (1 << w) - 1)]; | |
continue dodist | |
} else { | |
e.msg = "invalid distance code", | |
n.mode = 30; | |
break top | |
} | |
break | |
} | |
} else if (0 == (64 & w)) { | |
k = y[(65535 & k) + (h & (1 << w) - 1)]; | |
continue dolen | |
} else if (32 & w) { | |
n.mode = 12; | |
break top | |
} else { | |
e.msg = "invalid literal/length code", | |
n.mode = 30; | |
break top | |
} | |
break | |
} | |
} while (a < o && i < d);return S = m >> 3, | |
a -= S, | |
m -= S << 3, | |
h &= (1 << m) - 1, | |
e.next_in = a, | |
e.next_out = i, | |
e.avail_in = a < o ? 5 + (o - a) : 5 - (a - o), | |
e.avail_out = i < d ? 257 + (d - i) : 257 - (i - d), | |
n.hold = h, | |
void (n.bits = m) | |
} | |
} | |
, {}], | |
73: [function(e, t, n) { | |
"use strict"; | |
function a(e) { | |
return (255 & e >>> 24) + (65280 & e >>> 8) + ((65280 & e) << 8) + ((255 & e) << 24) | |
} | |
function o() { | |
this.mode = 0, | |
this.last = !1, | |
this.wrap = 0, | |
this.havedict = !1, | |
this.flags = 0, | |
this.dmax = 0, | |
this.check = 0, | |
this.total = 0, | |
this.head = null, | |
this.wbits = 0, | |
this.wsize = 0, | |
this.whave = 0, | |
this.wnext = 0, | |
this.window = null, | |
this.hold = 0, | |
this.bits = 0, | |
this.length = 0, | |
this.offset = 0, | |
this.extra = 0, | |
this.lencode = null, | |
this.distcode = null, | |
this.lenbits = 0, | |
this.distbits = 0, | |
this.ncode = 0, | |
this.nlen = 0, | |
this.ndist = 0, | |
this.have = 0, | |
this.next = null, | |
this.lens = new f.Buf16(320), | |
this.work = new f.Buf16(288), | |
this.lendyn = null, | |
this.distdyn = null, | |
this.sane = 0, | |
this.back = 0, | |
this.was = 0 | |
} | |
function i(e) { | |
var t; | |
return e && e.state ? (t = e.state, | |
e.total_in = e.total_out = t.total = 0, | |
e.msg = "", | |
t.wrap && (e.adler = 1 & t.wrap), | |
t.mode = 1, | |
t.last = 0, | |
t.havedict = 0, | |
t.dmax = 32768, | |
t.head = null, | |
t.hold = 0, | |
t.bits = 0, | |
t.lencode = t.lendyn = new f.Buf32(852), | |
t.distcode = t.distdyn = new f.Buf32(592), | |
t.sane = 1, | |
t.back = -1, | |
0) : -2 | |
} | |
function s(e) { | |
var t; | |
return e && e.state ? (t = e.state, | |
t.wsize = 0, | |
t.whave = 0, | |
t.wnext = 0, | |
i(e)) : -2 | |
} | |
function d(e, t) { | |
var n, a; | |
return e && e.state ? (a = e.state, | |
0 > t ? (n = 0, | |
t = -t) : (n = (t >> 4) + 1, | |
48 > t && (t &= 15)), | |
t && (8 > t || 15 < t)) ? -2 : (null !== a.window && a.wbits !== t && (a.window = null), | |
a.wrap = n, | |
a.wbits = t, | |
s(e)) : -2 | |
} | |
function l(e, t) { | |
var n, a; | |
return e ? (a = new o, | |
e.state = a, | |
a.window = null, | |
n = d(e, t), | |
0 !== n && (e.state = null), | |
n) : -2 | |
} | |
function u(e) { | |
if (_) { | |
var t; | |
for (v = new f.Buf32(512), | |
k = new f.Buf32(32), | |
t = 0; 144 > t; ) | |
e.lens[t++] = 8; | |
for (; 256 > t; ) | |
e.lens[t++] = 9; | |
for (; 280 > t; ) | |
e.lens[t++] = 7; | |
for (; 288 > t; ) | |
e.lens[t++] = 8; | |
for (x(1, e.lens, 0, 288, v, 0, e.work, { | |
bits: 9 | |
}), | |
t = 0; 32 > t; ) | |
e.lens[t++] = 5; | |
x(2, e.lens, 0, 32, k, 0, e.work, { | |
bits: 5 | |
}), | |
_ = !1 | |
} | |
e.lencode = v, | |
e.lenbits = 9, | |
e.distcode = k, | |
e.distbits = 5 | |
} | |
function p(e, t, n, a) { | |
var o = e.state, i; | |
return null === o.window && (o.wsize = 1 << o.wbits, | |
o.wnext = 0, | |
o.whave = 0, | |
o.window = new f.Buf8(o.wsize)), | |
a >= o.wsize ? (f.arraySet(o.window, t, n - o.wsize, o.wsize, 0), | |
o.wnext = 0, | |
o.whave = o.wsize) : (i = o.wsize - o.wnext, | |
i > a && (i = a), | |
f.arraySet(o.window, t, n - a, i, o.wnext), | |
a -= i, | |
a ? (f.arraySet(o.window, t, n - a, a, 0), | |
o.wnext = a, | |
o.whave = o.wsize) : (o.wnext += i, | |
o.wnext === o.wsize && (o.wnext = 0), | |
o.whave < o.wsize && (o.whave += i))), | |
0 | |
} | |
var c = String.fromCharCode, f = e("../utils/common"), h = e("./adler32"), m = e("./crc32"), y = e("./inffast"), x = e("./inftrees"), _ = !0, v, k; | |
n.inflateReset = s, | |
n.inflateReset2 = d, | |
n.inflateResetKeep = i, | |
n.inflateInit = function(e) { | |
return l(e, 15) | |
} | |
, | |
n.inflateInit2 = l, | |
n.inflate = function(e, t) { | |
var o = 0, i = new f.Buf8(4), s = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], d, l, _, v, k, w, S, C, E, T, P, D, O, M, R, I, z, A, U, L, B, N, F, W; | |
if (!e || !e.state || !e.output || !e.input && 0 !== e.avail_in) | |
return -2; | |
d = e.state, | |
12 === d.mode && (d.mode = 13), | |
k = e.next_out, | |
_ = e.output, | |
S = e.avail_out, | |
v = e.next_in, | |
l = e.input, | |
w = e.avail_in, | |
C = d.hold, | |
E = d.bits, | |
T = w, | |
P = S, | |
N = 0; | |
inf_leave: for (; ; ) | |
switch (d.mode) { | |
case 1: | |
if (0 === d.wrap) { | |
d.mode = 13; | |
break | |
} | |
for (; 16 > E; ) { | |
if (0 === w) | |
break inf_leave; | |
w--, | |
C += l[v++] << E, | |
E += 8 | |
} | |
if (2 & d.wrap && 35615 === C) { | |
d.check = 0, | |
i[0] = 255 & C, | |
i[1] = 255 & C >>> 8, | |
d.check = m(d.check, i, 2, 0), | |
C = 0, | |
E = 0, | |
d.mode = 2; | |
break | |
} | |
if (d.flags = 0, | |
d.head && (d.head.done = !1), | |
!(1 & d.wrap) || (((255 & C) << 8) + (C >> 8)) % 31) { | |
e.msg = "incorrect header check", | |
d.mode = 30; | |
break | |
} | |
if (8 !== (15 & C)) { | |
e.msg = "unknown compression method", | |
d.mode = 30; | |
break | |
} | |
if (C >>>= 4, | |
E -= 4, | |
B = (15 & C) + 8, | |
0 === d.wbits) | |
d.wbits = B; | |
else if (B > d.wbits) { | |
e.msg = "invalid window size", | |
d.mode = 30; | |
break | |
} | |
d.dmax = 1 << B, | |
e.adler = d.check = 1, | |
d.mode = 512 & C ? 10 : 12, | |
C = 0, | |
E = 0; | |
break; | |
case 2: | |
for (; 16 > E; ) { | |
if (0 === w) | |
break inf_leave; | |
w--, | |
C += l[v++] << E, | |
E += 8 | |
} | |
if (d.flags = C, | |
8 !== (255 & d.flags)) { | |
e.msg = "unknown compression method", | |
d.mode = 30; | |
break | |
} | |
if (57344 & d.flags) { | |
e.msg = "unknown header flags set", | |
d.mode = 30; | |
break | |
} | |
d.head && (d.head.text = 1 & C >> 8), | |
512 & d.flags && (i[0] = 255 & C, | |
i[1] = 255 & C >>> 8, | |
d.check = m(d.check, i, 2, 0)), | |
C = 0, | |
E = 0, | |
d.mode = 3; | |
case 3: | |
for (; 32 > E; ) { | |
if (0 === w) | |
break inf_leave; | |
w--, | |
C += l[v++] << E, | |
E += 8 | |
} | |
d.head && (d.head.time = C), | |
512 & d.flags && (i[0] = 255 & C, | |
i[1] = 255 & C >>> 8, | |
i[2] = 255 & C >>> 16, | |
i[3] = 255 & C >>> 24, | |
d.check = m(d.check, i, 4, 0)), | |
C = 0, | |
E = 0, | |
d.mode = 4; | |
case 4: | |
for (; 16 > E; ) { | |
if (0 === w) | |
break inf_leave; | |
w--, | |
C += l[v++] << E, | |
E += 8 | |
} | |
d.head && (d.head.xflags = 255 & C, | |
d.head.os = C >> 8), | |
512 & d.flags && (i[0] = 255 & C, | |
i[1] = 255 & C >>> 8, | |
d.check = m(d.check, i, 2, 0)), | |
C = 0, | |
E = 0, | |
d.mode = 5; | |
case 5: | |
if (1024 & d.flags) { | |
for (; 16 > E; ) { | |
if (0 === w) | |
break inf_leave; | |
w--, | |
C += l[v++] << E, | |
E += 8 | |
} | |
d.length = C, | |
d.head && (d.head.extra_len = C), | |
512 & d.flags && (i[0] = 255 & C, | |
i[1] = 255 & C >>> 8, | |
d.check = m(d.check, i, 2, 0)), | |
C = 0, | |
E = 0 | |
} else | |
d.head && (d.head.extra = null); | |
d.mode = 6; | |
case 6: | |
if (1024 & d.flags && (D = d.length, | |
D > w && (D = w), | |
D && (d.head && (B = d.head.extra_len - d.length, | |
!d.head.extra && (d.head.extra = Array(d.head.extra_len)), | |
f.arraySet(d.head.extra, l, v, D, B)), | |
512 & d.flags && (d.check = m(d.check, l, D, v)), | |
w -= D, | |
v += D, | |
d.length -= D), | |
d.length)) | |
break inf_leave; | |
d.length = 0, | |
d.mode = 7; | |
case 7: | |
if (2048 & d.flags) { | |
if (0 === w) | |
break inf_leave; | |
D = 0; | |
do | |
B = l[v + D++], | |
d.head && B && 65536 > d.length && (d.head.name += c(B)); | |
while (B && D < w);if (512 & d.flags && (d.check = m(d.check, l, D, v)), | |
w -= D, | |
v += D, | |
B) | |
break inf_leave | |
} else | |
d.head && (d.head.name = null); | |
d.length = 0, | |
d.mode = 8; | |
case 8: | |
if (4096 & d.flags) { | |
if (0 === w) | |
break inf_leave; | |
D = 0; | |
do | |
B = l[v + D++], | |
d.head && B && 65536 > d.length && (d.head.comment += c(B)); | |
while (B && D < w);if (512 & d.flags && (d.check = m(d.check, l, D, v)), | |
w -= D, | |
v += D, | |
B) | |
break inf_leave | |
} else | |
d.head && (d.head.comment = null); | |
d.mode = 9; | |
case 9: | |
if (512 & d.flags) { | |
for (; 16 > E; ) { | |
if (0 === w) | |
break inf_leave; | |
w--, | |
C += l[v++] << E, | |
E += 8 | |
} | |
if (C !== (65535 & d.check)) { | |
e.msg = "header crc mismatch", | |
d.mode = 30; | |
break | |
} | |
C = 0, | |
E = 0 | |
} | |
d.head && (d.head.hcrc = 1 & d.flags >> 9, | |
d.head.done = !0), | |
e.adler = d.check = 0, | |
d.mode = 12; | |
break; | |
case 10: | |
for (; 32 > E; ) { | |
if (0 === w) | |
break inf_leave; | |
w--, | |
C += l[v++] << E, | |
E += 8 | |
} | |
e.adler = d.check = a(C), | |
C = 0, | |
E = 0, | |
d.mode = 11; | |
case 11: | |
if (0 === d.havedict) | |
return e.next_out = k, | |
e.avail_out = S, | |
e.next_in = v, | |
e.avail_in = w, | |
d.hold = C, | |
d.bits = E, | |
2; | |
e.adler = d.check = 1, | |
d.mode = 12; | |
case 12: | |
if (5 === t || 6 === t) | |
break inf_leave; | |
case 13: | |
if (d.last) { | |
C >>>= 7 & E, | |
E -= 7 & E, | |
d.mode = 27; | |
break | |
} | |
for (; 3 > E; ) { | |
if (0 === w) | |
break inf_leave; | |
w--, | |
C += l[v++] << E, | |
E += 8 | |
} | |
switch (d.last = 1 & C, | |
C >>>= 1, | |
E -= 1, | |
3 & C) { | |
case 0: | |
d.mode = 14; | |
break; | |
case 1: | |
if (u(d), | |
d.mode = 20, | |
6 === t) { | |
C >>>= 2, | |
E -= 2; | |
break inf_leave | |
} | |
break; | |
case 2: | |
d.mode = 17; | |
break; | |
case 3: | |
e.msg = "invalid block type", | |
d.mode = 30; | |
} | |
C >>>= 2, | |
E -= 2; | |
break; | |
case 14: | |
for (C >>>= 7 & E, | |
E -= 7 & E; 32 > E; ) { | |
if (0 === w) | |
break inf_leave; | |
w--, | |
C += l[v++] << E, | |
E += 8 | |
} | |
if ((65535 & C) != (65535 ^ C >>> 16)) { | |
e.msg = "invalid stored block lengths", | |
d.mode = 30; | |
break | |
} | |
if (d.length = 65535 & C, | |
C = 0, | |
E = 0, | |
d.mode = 15, | |
6 === t) | |
break inf_leave; | |
case 15: | |
d.mode = 16; | |
case 16: | |
if (D = d.length, | |
D) { | |
if (D > w && (D = w), | |
D > S && (D = S), | |
0 === D) | |
break inf_leave; | |
f.arraySet(_, l, v, D, k), | |
w -= D, | |
v += D, | |
S -= D, | |
k += D, | |
d.length -= D; | |
break | |
} | |
d.mode = 12; | |
break; | |
case 17: | |
for (; 14 > E; ) { | |
if (0 === w) | |
break inf_leave; | |
w--, | |
C += l[v++] << E, | |
E += 8 | |
} | |
if (d.nlen = (31 & C) + 257, | |
C >>>= 5, | |
E -= 5, | |
d.ndist = (31 & C) + 1, | |
C >>>= 5, | |
E -= 5, | |
d.ncode = (15 & C) + 4, | |
C >>>= 4, | |
E -= 4, | |
286 < d.nlen || 30 < d.ndist) { | |
e.msg = "too many length or distance symbols", | |
d.mode = 30; | |
break | |
} | |
d.have = 0, | |
d.mode = 18; | |
case 18: | |
for (; d.have < d.ncode; ) { | |
for (; 3 > E; ) { | |
if (0 === w) | |
break inf_leave; | |
w--, | |
C += l[v++] << E, | |
E += 8 | |
} | |
d.lens[s[d.have++]] = 7 & C, | |
C >>>= 3, | |
E -= 3 | |
} | |
for (; 19 > d.have; ) | |
d.lens[s[d.have++]] = 0; | |
if (d.lencode = d.lendyn, | |
d.lenbits = 7, | |
F = { | |
bits: d.lenbits | |
}, | |
N = x(0, d.lens, 0, 19, d.lencode, 0, d.work, F), | |
d.lenbits = F.bits, | |
N) { | |
e.msg = "invalid code lengths set", | |
d.mode = 30; | |
break | |
} | |
d.have = 0, | |
d.mode = 19; | |
case 19: | |
for (; d.have < d.nlen + d.ndist; ) { | |
for (; ; ) { | |
if (o = d.lencode[C & (1 << d.lenbits) - 1], | |
R = o >>> 24, | |
I = 255 & o >>> 16, | |
z = 65535 & o, | |
R <= E) | |
break; | |
if (0 === w) | |
break inf_leave; | |
w--, | |
C += l[v++] << E, | |
E += 8 | |
} | |
if (16 > z) | |
C >>>= R, | |
E -= R, | |
d.lens[d.have++] = z; | |
else { | |
if (16 === z) { | |
for (W = R + 2; E < W; ) { | |
if (0 === w) | |
break inf_leave; | |
w--, | |
C += l[v++] << E, | |
E += 8 | |
} | |
if (C >>>= R, | |
E -= R, | |
0 === d.have) { | |
e.msg = "invalid bit length repeat", | |
d.mode = 30; | |
break | |
} | |
B = d.lens[d.have - 1], | |
D = 3 + (3 & C), | |
C >>>= 2, | |
E -= 2 | |
} else if (17 === z) { | |
for (W = R + 3; E < W; ) { | |
if (0 === w) | |
break inf_leave; | |
w--, | |
C += l[v++] << E, | |
E += 8 | |
} | |
C >>>= R, | |
E -= R, | |
B = 0, | |
D = 3 + (7 & C), | |
C >>>= 3, | |
E -= 3 | |
} else { | |
for (W = R + 7; E < W; ) { | |
if (0 === w) | |
break inf_leave; | |
w--, | |
C += l[v++] << E, | |
E += 8 | |
} | |
C >>>= R, | |
E -= R, | |
B = 0, | |
D = 11 + (127 & C), | |
C >>>= 7, | |
E -= 7 | |
} | |
if (d.have + D > d.nlen + d.ndist) { | |
e.msg = "invalid bit length repeat", | |
d.mode = 30; | |
break | |
} | |
for (; D--; ) | |
d.lens[d.have++] = B | |
} | |
} | |
if (30 === d.mode) | |
break; | |
if (0 === d.lens[256]) { | |
e.msg = "invalid code -- missing end-of-block", | |
d.mode = 30; | |
break | |
} | |
if (d.lenbits = 9, | |
F = { | |
bits: d.lenbits | |
}, | |
N = x(1, d.lens, 0, d.nlen, d.lencode, 0, d.work, F), | |
d.lenbits = F.bits, | |
N) { | |
e.msg = "invalid literal/lengths set", | |
d.mode = 30; | |
break | |
} | |
if (d.distbits = 6, | |
d.distcode = d.distdyn, | |
F = { | |
bits: d.distbits | |
}, | |
N = x(2, d.lens, d.nlen, d.ndist, d.distcode, 0, d.work, F), | |
d.distbits = F.bits, | |
N) { | |
e.msg = "invalid distances set", | |
d.mode = 30; | |
break | |
} | |
if (d.mode = 20, | |
6 === t) | |
break inf_leave; | |
case 20: | |
d.mode = 21; | |
case 21: | |
if (6 <= w && 258 <= S) { | |
e.next_out = k, | |
e.avail_out = S, | |
e.next_in = v, | |
e.avail_in = w, | |
d.hold = C, | |
d.bits = E, | |
y(e, P), | |
k = e.next_out, | |
_ = e.output, | |
S = e.avail_out, | |
v = e.next_in, | |
l = e.input, | |
w = e.avail_in, | |
C = d.hold, | |
E = d.bits, | |
12 === d.mode && (d.back = -1); | |
break | |
} | |
for (d.back = 0; ; ) { | |
if (o = d.lencode[C & (1 << d.lenbits) - 1], | |
R = o >>> 24, | |
I = 255 & o >>> 16, | |
z = 65535 & o, | |
R <= E) | |
break; | |
if (0 === w) | |
break inf_leave; | |
w--, | |
C += l[v++] << E, | |
E += 8 | |
} | |
if (I && 0 == (240 & I)) { | |
for (A = R, | |
U = I, | |
L = z; ; ) { | |
if (o = d.lencode[L + ((C & (1 << A + U) - 1) >> A)], | |
R = o >>> 24, | |
I = 255 & o >>> 16, | |
z = 65535 & o, | |
A + R <= E) | |
break; | |
if (0 === w) | |
break inf_leave; | |
w--, | |
C += l[v++] << E, | |
E += 8 | |
} | |
C >>>= A, | |
E -= A, | |
d.back += A | |
} | |
if (C >>>= R, | |
E -= R, | |
d.back += R, | |
d.length = z, | |
0 === I) { | |
d.mode = 26; | |
break | |
} | |
if (32 & I) { | |
d.back = -1, | |
d.mode = 12; | |
break | |
} | |
if (64 & I) { | |
e.msg = "invalid literal/length code", | |
d.mode = 30; | |
break | |
} | |
d.extra = 15 & I, | |
d.mode = 22; | |
case 22: | |
if (d.extra) { | |
for (W = d.extra; E < W; ) { | |
if (0 === w) | |
break inf_leave; | |
w--, | |
C += l[v++] << E, | |
E += 8 | |
} | |
d.length += C & (1 << d.extra) - 1, | |
C >>>= d.extra, | |
E -= d.extra, | |
d.back += d.extra | |
} | |
d.was = d.length, | |
d.mode = 23; | |
case 23: | |
for (; ; ) { | |
if (o = d.distcode[C & (1 << d.distbits) - 1], | |
R = o >>> 24, | |
I = 255 & o >>> 16, | |
z = 65535 & o, | |
R <= E) | |
break; | |
if (0 === w) | |
break inf_leave; | |
w--, | |
C += l[v++] << E, | |
E += 8 | |
} | |
if (0 == (240 & I)) { | |
for (A = R, | |
U = I, | |
L = z; ; ) { | |
if (o = d.distcode[L + ((C & (1 << A + U) - 1) >> A)], | |
R = o >>> 24, | |
I = 255 & o >>> 16, | |
z = 65535 & o, | |
A + R <= E) | |
break; | |
if (0 === w) | |
break inf_leave; | |
w--, | |
C += l[v++] << E, | |
E += 8 | |
} | |
C >>>= A, | |
E -= A, | |
d.back += A | |
} | |
if (C >>>= R, | |
E -= R, | |
d.back += R, | |
64 & I) { | |
e.msg = "invalid distance code", | |
d.mode = 30; | |
break | |
} | |
d.offset = z, | |
d.extra = 15 & I, | |
d.mode = 24; | |
case 24: | |
if (d.extra) { | |
for (W = d.extra; E < W; ) { | |
if (0 === w) | |
break inf_leave; | |
w--, | |
C += l[v++] << E, | |
E += 8 | |
} | |
d.offset += C & (1 << d.extra) - 1, | |
C >>>= d.extra, | |
E -= d.extra, | |
d.back += d.extra | |
} | |
if (d.offset > d.dmax) { | |
e.msg = "invalid distance too far back", | |
d.mode = 30; | |
break | |
} | |
d.mode = 25; | |
case 25: | |
if (0 === S) | |
break inf_leave; | |
if (D = P - S, | |
d.offset > D) { | |
if (D = d.offset - D, | |
D > d.whave && d.sane) { | |
e.msg = "invalid distance too far back", | |
d.mode = 30; | |
break | |
} | |
D > d.wnext ? (D -= d.wnext, | |
O = d.wsize - D) : O = d.wnext - D, | |
D > d.length && (D = d.length), | |
M = d.window | |
} else | |
M = _, | |
O = k - d.offset, | |
D = d.length; | |
D > S && (D = S), | |
S -= D, | |
d.length -= D; | |
do | |
_[k++] = M[O++]; | |
while (--D);0 === d.length && (d.mode = 21); | |
break; | |
case 26: | |
if (0 === S) | |
break inf_leave; | |
_[k++] = d.length, | |
S--, | |
d.mode = 21; | |
break; | |
case 27: | |
if (d.wrap) { | |
for (; 32 > E; ) { | |
if (0 === w) | |
break inf_leave; | |
w--, | |
C |= l[v++] << E, | |
E += 8 | |
} | |
if (P -= S, | |
e.total_out += P, | |
d.total += P, | |
P && (e.adler = d.check = d.flags ? m(d.check, _, P, k - P) : h(d.check, _, P, k - P)), | |
P = S, | |
(d.flags ? C : a(C)) !== d.check) { | |
e.msg = "incorrect data check", | |
d.mode = 30; | |
break | |
} | |
C = 0, | |
E = 0 | |
} | |
d.mode = 28; | |
case 28: | |
if (d.wrap && d.flags) { | |
for (; 32 > E; ) { | |
if (0 === w) | |
break inf_leave; | |
w--, | |
C += l[v++] << E, | |
E += 8 | |
} | |
if (C !== (4294967295 & d.total)) { | |
e.msg = "incorrect length check", | |
d.mode = 30; | |
break | |
} | |
C = 0, | |
E = 0 | |
} | |
d.mode = 29; | |
case 29: | |
N = 1; | |
break inf_leave; | |
case 30: | |
N = -3; | |
break inf_leave; | |
case 31: | |
return -4; | |
case 32: | |
default: | |
return -2; | |
} | |
return (e.next_out = k, | |
e.avail_out = S, | |
e.next_in = v, | |
e.avail_in = w, | |
d.hold = C, | |
d.bits = E, | |
(d.wsize || P !== e.avail_out && 30 > d.mode && (27 > d.mode || 4 !== t)) && p(e, e.output, e.next_out, P - e.avail_out)) ? (d.mode = 31, | |
-4) : (T -= e.avail_in, | |
P -= e.avail_out, | |
e.total_in += T, | |
e.total_out += P, | |
d.total += P, | |
d.wrap && P && (e.adler = d.check = d.flags ? m(d.check, _, P, e.next_out - P) : h(d.check, _, P, e.next_out - P)), | |
e.data_type = d.bits + (d.last ? 64 : 0) + (12 === d.mode ? 128 : 0) + (20 === d.mode || 15 === d.mode ? 256 : 0), | |
(0 === T && 0 === P || 4 === t) && 0 === N && (N = -5), | |
N) | |
} | |
, | |
n.inflateEnd = function(e) { | |
if (!e || !e.state) | |
return -2; | |
var t = e.state; | |
return t.window && (t.window = null), | |
e.state = null, | |
0 | |
} | |
, | |
n.inflateGetHeader = function(e, t) { | |
var n; | |
return e && e.state ? (n = e.state, | |
0 == (2 & n.wrap)) ? -2 : (n.head = t, | |
t.done = !1, | |
0) : -2 | |
} | |
, | |
n.inflateSetDictionary = function(e, t) { | |
var n = t.length, a, o, i; | |
return e && e.state ? (a = e.state, | |
0 !== a.wrap && 11 !== a.mode) ? -2 : 11 === a.mode && (o = 1, | |
o = h(o, t, n, 0), | |
o !== a.check) ? -3 : (i = p(e, t, n, n), | |
i) ? (a.mode = 31, | |
-4) : (a.havedict = 1, | |
0) : -2 | |
} | |
, | |
n.inflateInfo = "pako inflate (from Nodeca project)" | |
} | |
, { | |
"../utils/common": 65, | |
"./adler32": 67, | |
"./crc32": 69, | |
"./inffast": 72, | |
"./inftrees": 74 | |
}], | |
74: [function(e, t) { | |
"use strict"; | |
var n = e("../utils/common") | |
, a = 15 | |
, o = 852 | |
, i = 592 | |
, s = 0 | |
, d = 1 | |
, l = 2 | |
, u = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0] | |
, p = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78] | |
, c = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0] | |
, f = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64]; | |
t.exports = function(e, t, h, m, y, x, _, v) { | |
var k = v.bits, w = 0, S = 0, C = 0, E = 0, T = 0, P = 0, D = 0, O = 0, M = 0, R = 0, I = null, z = 0, A = new n.Buf16(a + 1), U = new n.Buf16(a + 1), L = null, B = 0, N, F, W, j, H, Y, V, q, X; | |
for (w = 0; w <= a; w++) | |
A[w] = 0; | |
for (S = 0; S < m; S++) | |
A[t[h + S]]++; | |
for (T = k, | |
E = a; 1 <= E && 0 === A[E]; E--) | |
; | |
if (T > E && (T = E), | |
0 === E) | |
return y[x++] = 20971520, | |
y[x++] = 20971520, | |
v.bits = 1, | |
0; | |
for (C = 1; C < E && 0 === A[C]; C++) | |
; | |
for (T < C && (T = C), | |
O = 1, | |
w = 1; w <= a; w++) | |
if (O <<= 1, | |
O -= A[w], | |
0 > O) | |
return -1; | |
if (0 < O && (e === s || 1 !== E)) | |
return -1; | |
for (U[1] = 0, | |
w = 1; w < a; w++) | |
U[w + 1] = U[w] + A[w]; | |
for (S = 0; S < m; S++) | |
0 !== t[h + S] && (_[U[t[h + S]]++] = S); | |
if (e === s ? (I = L = _, | |
Y = 19) : e === d ? (I = u, | |
z -= 257, | |
L = p, | |
B -= 257, | |
Y = 256) : (I = c, | |
L = f, | |
Y = -1), | |
R = 0, | |
S = 0, | |
w = C, | |
H = x, | |
P = T, | |
D = 0, | |
W = -1, | |
M = 1 << T, | |
j = M - 1, | |
e === d && M > o || e === l && M > i) | |
return 1; | |
for (; ; ) { | |
V = w - D, | |
_[S] < Y ? (q = 0, | |
X = _[S]) : _[S] > Y ? (q = L[B + _[S]], | |
X = I[z + _[S]]) : (q = 96, | |
X = 0), | |
N = 1 << w - D, | |
F = 1 << P, | |
C = F; | |
do | |
F -= N, | |
y[H + (R >> D) + F] = 0 | (V << 24 | q << 16 | X); | |
while (0 !== F);for (N = 1 << w - 1; R & N; ) | |
N >>= 1; | |
if (0 === N ? R = 0 : (R &= N - 1, | |
R += N), | |
S++, | |
0 == --A[w]) { | |
if (w === E) | |
break; | |
w = t[h + _[S]] | |
} | |
if (w > T && (R & j) !== W) { | |
for (0 === D && (D = T), | |
H += C, | |
P = w - D, | |
O = 1 << P; P + D < E && (O -= A[P + D], | |
!(0 >= O)); ) | |
P++, | |
O <<= 1; | |
if (M += 1 << P, | |
e === d && M > o || e === l && M > i) | |
return 1; | |
W = R & j, | |
y[W] = 0 | (T << 24 | P << 16 | H - x) | |
} | |
} | |
return 0 !== R && (y[H + R] = 0 | (4194304 | w - D << 24)), | |
v.bits = T, | |
0 | |
} | |
} | |
, { | |
"../utils/common": 65 | |
}], | |
75: [function(e, t) { | |
"use strict"; | |
t.exports = { | |
2: "need dictionary", | |
1: "stream end", | |
0: "", | |
"-1": "file error", | |
"-2": "stream error", | |
"-3": "data error", | |
"-4": "insufficient memory", | |
"-5": "buffer error", | |
"-6": "incompatible version" | |
} | |
} | |
, {}], | |
76: [function(e, t, n) { | |
"use strict"; | |
function a(e) { | |
for (var t = e.length; 0 <= --t; ) | |
e[t] = 0 | |
} | |
function o(e, t, n, a, o) { | |
this.static_tree = e, | |
this.extra_bits = t, | |
this.extra_base = n, | |
this.elems = a, | |
this.max_length = o, | |
this.has_stree = e && e.length | |
} | |
function i(e, t) { | |
this.dyn_tree = e, | |
this.max_code = 0, | |
this.stat_desc = t | |
} | |
function d(e) { | |
return 256 > e ? j[e] : j[256 + (e >>> 7)] | |
} | |
function l(e, t) { | |
e.pending_buf[e.pending++] = 255 & t, | |
e.pending_buf[e.pending++] = 255 & t >>> 8 | |
} | |
function u(e, t, n) { | |
e.bi_valid > 16 - n ? (e.bi_buf |= 65535 & t << e.bi_valid, | |
l(e, e.bi_buf), | |
e.bi_buf = t >> 16 - e.bi_valid, | |
e.bi_valid += n - 16) : (e.bi_buf |= 65535 & t << e.bi_valid, | |
e.bi_valid += n) | |
} | |
function p(e, t, n) { | |
u(e, n[2 * t], n[2 * t + 1]) | |
} | |
function s(e, t) { | |
var n = 0; | |
do | |
n |= 1 & e, | |
e >>>= 1, | |
n <<= 1; | |
while (0 < --t);return n >>> 1 | |
} | |
function c(e) { | |
16 === e.bi_valid ? (l(e, e.bi_buf), | |
e.bi_buf = 0, | |
e.bi_valid = 0) : 8 <= e.bi_valid && (e.pending_buf[e.pending++] = 255 & e.bi_buf, | |
e.bi_buf >>= 8, | |
e.bi_valid -= 8) | |
} | |
function f(e, t) { | |
var a = t.dyn_tree, o = t.max_code, i = t.stat_desc.static_tree, s = t.stat_desc.has_stree, d = t.stat_desc.extra_bits, l = t.stat_desc.extra_base, u = t.stat_desc.max_length, p = 0, c, y, x, _, v, k; | |
for (_ = 0; _ <= 15; _++) | |
e.bl_count[_] = 0; | |
for (a[2 * e.heap[e.heap_max] + 1] = 0, | |
c = e.heap_max + 1; 573 > c; c++) | |
(y = e.heap[c], | |
_ = a[2 * a[2 * y + 1] + 1] + 1, | |
_ > u && (_ = u, | |
p++), | |
a[2 * y + 1] = _, | |
!(y > o)) && (e.bl_count[_]++, | |
v = 0, | |
y >= l && (v = d[y - l]), | |
k = a[2 * y], | |
e.opt_len += k * (_ + v), | |
s && (e.static_len += k * (i[2 * y + 1] + v))); | |
if (0 !== p) { | |
do { | |
for (_ = u - 1; 0 === e.bl_count[_]; ) | |
_--; | |
e.bl_count[_]--, | |
e.bl_count[_ + 1] += 2, | |
e.bl_count[u]--, | |
p -= 2 | |
} while (0 < p);for (_ = u; 0 !== _; _--) | |
for (y = e.bl_count[_]; 0 !== y; ) | |
(x = e.heap[--c], | |
!(x > o)) && (a[2 * x + 1] !== _ && (e.opt_len += (_ - a[2 * x + 1]) * a[2 * x], | |
a[2 * x + 1] = _), | |
y--) | |
} | |
} | |
function h(e, t, a) { | |
var o = Array(16), i = 0, d, l; | |
for (d = 1; d <= 15; d++) | |
o[d] = i = i + a[d - 1] << 1; | |
for (l = 0; l <= t; l++) { | |
var u = e[2 * l + 1]; | |
0 !== u && (e[2 * l] = s(o[u]++, u)) | |
} | |
} | |
function m() { | |
var e = Array(16), t, a, i, d, l; | |
for (i = 0, | |
d = 0; d < 28; d++) | |
for (Y[d] = i, | |
t = 0; t < 1 << U[d]; t++) | |
H[i++] = d; | |
for (H[i - 1] = d, | |
l = 0, | |
d = 0; 16 > d; d++) | |
for (V[d] = l, | |
t = 0; t < 1 << L[d]; t++) | |
j[l++] = d; | |
for (l >>= 7; d < 30; d++) | |
for (V[d] = l << 7, | |
t = 0; t < 1 << L[d] - 7; t++) | |
j[256 + l++] = d; | |
for (a = 0; a <= 15; a++) | |
e[a] = 0; | |
for (t = 0; 143 >= t; ) | |
F[2 * t + 1] = 8, | |
t++, | |
e[8]++; | |
for (; 255 >= t; ) | |
F[2 * t + 1] = 9, | |
t++, | |
e[9]++; | |
for (; 279 >= t; ) | |
F[2 * t + 1] = 7, | |
t++, | |
e[7]++; | |
for (; 287 >= t; ) | |
F[2 * t + 1] = 8, | |
t++, | |
e[8]++; | |
for (h(F, 287, e), | |
t = 0; t < 30; t++) | |
W[2 * t + 1] = 5, | |
W[2 * t] = s(t, 5); | |
X = new o(F,U,257,286,15), | |
G = new o(W,L,0,30,15), | |
Z = new o([],B,0,19,7) | |
} | |
function y(e) { | |
var t; | |
for (t = 0; t < 286; t++) | |
e.dyn_ltree[2 * t] = 0; | |
for (t = 0; t < 30; t++) | |
e.dyn_dtree[2 * t] = 0; | |
for (t = 0; t < 19; t++) | |
e.bl_tree[2 * t] = 0; | |
e.dyn_ltree[512] = 1, | |
e.opt_len = e.static_len = 0, | |
e.last_lit = e.matches = 0 | |
} | |
function x(e) { | |
8 < e.bi_valid ? l(e, e.bi_buf) : 0 < e.bi_valid && (e.pending_buf[e.pending++] = e.bi_buf), | |
e.bi_buf = 0, | |
e.bi_valid = 0 | |
} | |
function _(e, t, n, a) { | |
x(e), | |
a && (l(e, n), | |
l(e, ~n)), | |
R.arraySet(e.pending_buf, e.window, t, n, e.pending), | |
e.pending += n | |
} | |
function w(e, t, n, a) { | |
var o = 2 * t | |
, i = 2 * n; | |
return e[o] < e[i] || e[o] === e[i] && a[t] <= a[n] | |
} | |
function v(e, t, n) { | |
for (var a = e.heap[n], o = n << 1; o <= e.heap_len && (o < e.heap_len && w(t, e.heap[o + 1], e.heap[o], e.depth) && o++, | |
!w(t, a, e.heap[o], e.depth)); ) | |
e.heap[n] = e.heap[o], | |
n = o, | |
o <<= 1; | |
e.heap[n] = a | |
} | |
function k(e, t, n) { | |
var a = 0, o, i, s, l; | |
if (0 !== e.last_lit) | |
do | |
o = e.pending_buf[e.d_buf + 2 * a] << 8 | e.pending_buf[e.d_buf + 2 * a + 1], | |
i = e.pending_buf[e.l_buf + a], | |
a++, | |
0 === o ? p(e, i, t) : (s = H[i], | |
p(e, s + 256 + 1, t), | |
l = U[s], | |
0 !== l && (i -= Y[s], | |
u(e, i, l)), | |
o--, | |
s = d(o), | |
p(e, s, n), | |
l = L[s], | |
0 !== l && (o -= V[s], | |
u(e, o, l))); | |
while (a < e.last_lit);p(e, 256, t) | |
} | |
function S(e, t) { | |
var a = t.dyn_tree, o = t.stat_desc.static_tree, i = t.stat_desc.has_stree, s = t.stat_desc.elems, d = -1, l, u, p; | |
for (e.heap_len = 0, | |
e.heap_max = 573, | |
l = 0; l < s; l++) | |
0 === a[2 * l] ? a[2 * l + 1] = 0 : (e.heap[++e.heap_len] = d = l, | |
e.depth[l] = 0); | |
for (; 2 > e.heap_len; ) | |
p = e.heap[++e.heap_len] = 2 > d ? ++d : 0, | |
a[2 * p] = 1, | |
e.depth[p] = 0, | |
e.opt_len--, | |
i && (e.static_len -= o[2 * p + 1]); | |
for (t.max_code = d, | |
l = e.heap_len >> 1; 1 <= l; l--) | |
v(e, a, l); | |
p = s; | |
do | |
l = e.heap[1], | |
e.heap[1] = e.heap[e.heap_len--], | |
v(e, a, 1), | |
u = e.heap[1], | |
e.heap[--e.heap_max] = l, | |
e.heap[--e.heap_max] = u, | |
a[2 * p] = a[2 * l] + a[2 * u], | |
e.depth[p] = (e.depth[l] >= e.depth[u] ? e.depth[l] : e.depth[u]) + 1, | |
a[2 * l + 1] = a[2 * u + 1] = p, | |
e.heap[1] = p++, | |
v(e, a, 1); | |
while (2 <= e.heap_len);e.heap[--e.heap_max] = e.heap[1], | |
f(e, t), | |
h(a, d, e.bl_count) | |
} | |
function C(e, t, a) { | |
var o = -1, i = t[1], s = 0, d = 7, l = 4, u, p; | |
for (0 === i && (d = 138, | |
l = 3), | |
t[2 * (a + 1) + 1] = 65535, | |
u = 0; u <= a; u++) { | |
if (p = i, | |
i = t[2 * (u + 1) + 1], | |
++s < d && p === i) | |
continue; | |
else | |
s < l ? e.bl_tree[2 * p] += s : 0 === p ? 10 >= s ? e.bl_tree[34]++ : e.bl_tree[36]++ : (p !== o && e.bl_tree[2 * p]++, | |
e.bl_tree[32]++); | |
s = 0, | |
o = p, | |
0 === i ? (d = 138, | |
l = 3) : p === i ? (d = 6, | |
l = 3) : (d = 7, | |
l = 4) | |
} | |
} | |
function E(e, t, a) { | |
var o = -1, i = t[1], s = 0, d = 7, l = 4, c, f; | |
for (0 === i && (d = 138, | |
l = 3), | |
c = 0; c <= a; c++) { | |
if (f = i, | |
i = t[2 * (c + 1) + 1], | |
++s < d && f === i) | |
continue; | |
else if (s < l) | |
do | |
p(e, f, e.bl_tree); | |
while (0 != --s); | |
else | |
0 === f ? 10 >= s ? (p(e, 17, e.bl_tree), | |
u(e, s - 3, 3)) : (p(e, 18, e.bl_tree), | |
u(e, s - 11, 7)) : (f !== o && (p(e, f, e.bl_tree), | |
s--), | |
p(e, 16, e.bl_tree), | |
u(e, s - 3, 2)); | |
s = 0, | |
o = f, | |
0 === i ? (d = 138, | |
l = 3) : f === i ? (d = 6, | |
l = 3) : (d = 7, | |
l = 4) | |
} | |
} | |
function T(e) { | |
var t; | |
for (C(e, e.dyn_ltree, e.l_desc.max_code), | |
C(e, e.dyn_dtree, e.d_desc.max_code), | |
S(e, e.bl_desc), | |
t = 18; 3 <= t && 0 === e.bl_tree[2 * N[t] + 1]; t--) | |
; | |
return e.opt_len += 3 * (t + 1) + 5 + 5 + 4, | |
t | |
} | |
function P(e, t, n, a) { | |
var o; | |
for (u(e, t - 257, 5), | |
u(e, n - 1, 5), | |
u(e, a - 4, 4), | |
o = 0; o < a; o++) | |
u(e, e.bl_tree[2 * N[o] + 1], 3); | |
E(e, e.dyn_ltree, t - 1), | |
E(e, e.dyn_dtree, n - 1) | |
} | |
function D(e) { | |
var t = 4093624447, a; | |
for (a = 0; 31 >= a; a++, | |
t >>>= 1) | |
if (1 & t && 0 !== e.dyn_ltree[2 * a]) | |
return 0; | |
if (0 !== e.dyn_ltree[18] || 0 !== e.dyn_ltree[20] || 0 !== e.dyn_ltree[26]) | |
return 1; | |
for (a = 32; a < 256; a++) | |
if (0 !== e.dyn_ltree[2 * a]) | |
return 1; | |
return 0 | |
} | |
function O(e) { | |
q || (m(), | |
q = !0), | |
e.l_desc = new i(e.dyn_ltree,X), | |
e.d_desc = new i(e.dyn_dtree,G), | |
e.bl_desc = new i(e.bl_tree,Z), | |
e.bi_buf = 0, | |
e.bi_valid = 0, | |
y(e) | |
} | |
function M(e, t, n, a) { | |
u(e, 0 + (a ? 1 : 0), 3), | |
_(e, t, n, !0) | |
} | |
var R = e("../utils/common") | |
, I = 29 | |
, z = 256 + 1 + I | |
, A = 30 | |
, U = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0] | |
, L = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13] | |
, B = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7] | |
, N = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15] | |
, F = Array(2 * (z + 2)); | |
a(F); | |
var W = Array(2 * A); | |
a(W); | |
var j = Array(512); | |
a(j); | |
var H = Array(258 - 3 + 1); | |
a(H); | |
var Y = Array(I); | |
a(Y); | |
var V = Array(A); | |
a(V); | |
var q = !1, X, G, Z; | |
n._tr_init = O, | |
n._tr_stored_block = M, | |
n._tr_flush_block = function(e, t, n, a) { | |
var o = 0, i, s; | |
0 < e.level ? (e.strm.data_type === 2 && (e.strm.data_type = D(e)), | |
S(e, e.l_desc), | |
S(e, e.d_desc), | |
o = T(e), | |
i = e.opt_len + 3 + 7 >>> 3, | |
s = e.static_len + 3 + 7 >>> 3, | |
s <= i && (i = s)) : i = s = n + 5, | |
n + 4 <= i && -1 !== t ? M(e, t, n, a) : e.strategy === 4 || s === i ? (u(e, 2 + (a ? 1 : 0), 3), | |
k(e, F, W)) : (u(e, 4 + (a ? 1 : 0), 3), | |
P(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, o + 1), | |
k(e, e.dyn_ltree, e.dyn_dtree)), | |
y(e), | |
a && x(e) | |
} | |
, | |
n._tr_tally = function(e, t, n) { | |
return e.pending_buf[e.d_buf + 2 * e.last_lit] = 255 & t >>> 8, | |
e.pending_buf[e.d_buf + 2 * e.last_lit + 1] = 255 & t, | |
e.pending_buf[e.l_buf + e.last_lit] = 255 & n, | |
e.last_lit++, | |
0 === t ? e.dyn_ltree[2 * n]++ : (e.matches++, | |
t--, | |
e.dyn_ltree[2 * (H[n] + 256 + 1)]++, | |
e.dyn_dtree[2 * d(t)]++), | |
e.last_lit === e.lit_bufsize - 1 | |
} | |
, | |
n._tr_align = function(e) { | |
u(e, 2, 3), | |
p(e, 256, F), | |
c(e) | |
} | |
} | |
, { | |
"../utils/common": 65 | |
}], | |
77: [function(e, t) { | |
"use strict"; | |
t.exports = function() { | |
this.input = null, | |
this.next_in = 0, | |
this.avail_in = 0, | |
this.total_in = 0, | |
this.output = null, | |
this.next_out = 0, | |
this.avail_out = 0, | |
this.total_out = 0, | |
this.msg = "", | |
this.state = null, | |
this.data_type = 2, | |
this.adler = 0 | |
} | |
} | |
, {}], | |
78: [function(e, t, n) { | |
n.encode = function(e) { | |
var t = ""; | |
for (var n in e) | |
e.hasOwnProperty(n) && (t.length && (t += "&"), | |
t += encodeURIComponent(n) + "=" + encodeURIComponent(e[n])); | |
return t | |
} | |
, | |
n.decode = function(e) { | |
for (var t = {}, n = e.split("&"), a = 0, o = n.length, s; a < o; a++) | |
s = n[a].split("="), | |
t[decodeURIComponent(s[0])] = decodeURIComponent(s[1]); | |
return t | |
} | |
} | |
, {}], | |
79: [function(e, t) { | |
var n = /^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/ | |
, a = ["source", "protocol", "authority", "userInfo", "user", "password", "host", "port", "relative", "path", "directory", "file", "query", "anchor"]; | |
t.exports = function(t) { | |
var o = t | |
, s = t.indexOf("[") | |
, d = t.indexOf("]"); | |
-1 != s && -1 != d && (t = t.substring(0, s) + t.substring(s, d).replace(/:/g, ";") + t.substring(d, t.length)); | |
for (var e = n.exec(t || ""), l = {}, u = 14; u--; ) | |
l[a[u]] = e[u] || ""; | |
return -1 != s && -1 != d && (l.source = o, | |
l.host = l.host.substring(1, l.host.length - 1).replace(/;/g, ":"), | |
l.authority = l.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), | |
l.ipv6uri = !0), | |
l | |
} | |
} | |
, {}], | |
80: [function(e, t, n) { | |
function a(e, t) { | |
"object" == typeof e && (t = e, | |
e = void 0), | |
t = t || {}; | |
var n = o(e), a = n.source, i = n.id, u = n.path, p = l[i] && u in l[i].nsps, c = t.forceNew || t["force new connection"] || !1 === t.multiplex || p, f; | |
return c ? (d("ignoring socket cache for %s", a), | |
f = s(a, t)) : (!l[i] && (d("new io instance for %s", a), | |
l[i] = s(a, t)), | |
f = l[i]), | |
n.query && !t.query && (t.query = n.query), | |
f.socket(n.path, t) | |
} | |
var o = e("./url") | |
, i = e("socket.io-parser") | |
, s = e("./manager") | |
, d = e("debug")("socket.io-client"); | |
t.exports = n = a; | |
var l = n.managers = {}; | |
n.protocol = i.protocol, | |
n.connect = a, | |
n.Manager = e("./manager"), | |
n.Socket = e("./socket") | |
} | |
, { | |
"./manager": 81, | |
"./socket": 83, | |
"./url": 84, | |
debug: 43, | |
"socket.io-parser": 86 | |
}], | |
81: [function(e, t) { | |
function n(e, t) { | |
if (!(this instanceof n)) | |
return new n(e,t); | |
e && "object" == typeof e && (t = e, | |
e = void 0), | |
t = t || {}, | |
t.path = t.path || "/socket.io", | |
this.nsps = {}, | |
this.subs = [], | |
this.opts = t, | |
this.reconnection(!1 !== t.reconnection), | |
this.reconnectionAttempts(t.reconnectionAttempts || 1 / 0), | |
this.reconnectionDelay(t.reconnectionDelay || 1e3), | |
this.reconnectionDelayMax(t.reconnectionDelayMax || 5e3), | |
this.randomizationFactor(t.randomizationFactor || .5), | |
this.backoff = new c({ | |
min: this.reconnectionDelay(), | |
max: this.reconnectionDelayMax(), | |
jitter: this.randomizationFactor() | |
}), | |
this.timeout(null == t.timeout ? 2e4 : t.timeout), | |
this.readyState = "closed", | |
this.uri = e, | |
this.connecting = [], | |
this.lastPing = null, | |
this.encoding = !1, | |
this.packetBuffer = []; | |
var a = t.parser || s; | |
this.encoder = new a.Encoder, | |
this.decoder = new a.Decoder, | |
this.autoConnect = !1 !== t.autoConnect, | |
this.autoConnect && this.open() | |
} | |
var a = e("engine.io-client") | |
, o = e("./socket") | |
, i = e("component-emitter") | |
, s = e("socket.io-parser") | |
, d = e("./on") | |
, l = e("component-bind") | |
, u = e("debug")("socket.io-client:manager") | |
, p = e("indexof") | |
, c = e("backo2") | |
, f = Object.prototype.hasOwnProperty; | |
t.exports = n, | |
n.prototype.emitAll = function() { | |
for (var e in this.emit.apply(this, arguments), | |
this.nsps) | |
f.call(this.nsps, e) && this.nsps[e].emit.apply(this.nsps[e], arguments) | |
} | |
, | |
n.prototype.updateSocketIds = function() { | |
for (var e in this.nsps) | |
f.call(this.nsps, e) && (this.nsps[e].id = this.generateId(e)) | |
} | |
, | |
n.prototype.generateId = function(e) { | |
return ("/" === e ? "" : e + "#") + this.engine.id | |
} | |
, | |
i(n.prototype), | |
n.prototype.reconnection = function(e) { | |
return arguments.length ? (this._reconnection = !!e, | |
this) : this._reconnection | |
} | |
, | |
n.prototype.reconnectionAttempts = function(e) { | |
return arguments.length ? (this._reconnectionAttempts = e, | |
this) : this._reconnectionAttempts | |
} | |
, | |
n.prototype.reconnectionDelay = function(e) { | |
return arguments.length ? (this._reconnectionDelay = e, | |
this.backoff && this.backoff.setMin(e), | |
this) : this._reconnectionDelay | |
} | |
, | |
n.prototype.randomizationFactor = function(e) { | |
return arguments.length ? (this._randomizationFactor = e, | |
this.backoff && this.backoff.setJitter(e), | |
this) : this._randomizationFactor | |
} | |
, | |
n.prototype.reconnectionDelayMax = function(e) { | |
return arguments.length ? (this._reconnectionDelayMax = e, | |
this.backoff && this.backoff.setMax(e), | |
this) : this._reconnectionDelayMax | |
} | |
, | |
n.prototype.timeout = function(e) { | |
return arguments.length ? (this._timeout = e, | |
this) : this._timeout | |
} | |
, | |
n.prototype.maybeReconnectOnOpen = function() { | |
!this.reconnecting && this._reconnection && 0 === this.backoff.attempts && this.reconnect() | |
} | |
, | |
n.prototype.open = n.prototype.connect = function(e) { | |
if (u("readyState %s", this.readyState), | |
~this.readyState.indexOf("open")) | |
return this; | |
u("opening %s", this.uri), | |
this.engine = a(this.uri, this.opts); | |
var t = this.engine | |
, n = this; | |
this.readyState = "opening", | |
this.skipReconnect = !1; | |
var o = d(t, "open", function() { | |
n.onopen(), | |
e && e() | |
}) | |
, i = d(t, "error", function(t) { | |
if (u("connect_error"), | |
n.cleanup(), | |
n.readyState = "closed", | |
n.emitAll("connect_error", t), | |
e) { | |
var a = new Error("Connection error"); | |
a.data = t, | |
e(a) | |
} else | |
n.maybeReconnectOnOpen() | |
}); | |
if (!1 !== this._timeout) { | |
var s = this._timeout; | |
u("connect attempt will timeout after %d", s); | |
var l = setTimeout(function() { | |
u("connect attempt timed out after %d", s), | |
o.destroy(), | |
t.close(), | |
t.emit("error", "timeout"), | |
n.emitAll("connect_timeout", s) | |
}, s); | |
this.subs.push({ | |
destroy: function() { | |
clearTimeout(l) | |
} | |
}) | |
} | |
return this.subs.push(o), | |
this.subs.push(i), | |
this | |
} | |
, | |
n.prototype.onopen = function() { | |
u("open"), | |
this.cleanup(), | |
this.readyState = "open", | |
this.emit("open"); | |
var e = this.engine; | |
this.subs.push(d(e, "data", l(this, "ondata"))), | |
this.subs.push(d(e, "ping", l(this, "onping"))), | |
this.subs.push(d(e, "pong", l(this, "onpong"))), | |
this.subs.push(d(e, "error", l(this, "onerror"))), | |
this.subs.push(d(e, "close", l(this, "onclose"))), | |
this.subs.push(d(this.decoder, "decoded", l(this, "ondecoded"))) | |
} | |
, | |
n.prototype.onping = function() { | |
this.lastPing = new Date, | |
this.emitAll("ping") | |
} | |
, | |
n.prototype.onpong = function() { | |
this.emitAll("pong", new Date - this.lastPing) | |
} | |
, | |
n.prototype.ondata = function(e) { | |
this.decoder.add(e) | |
} | |
, | |
n.prototype.ondecoded = function(e) { | |
this.emit("packet", e) | |
} | |
, | |
n.prototype.onerror = function(e) { | |
u("error", e), | |
this.emitAll("error", e) | |
} | |
, | |
n.prototype.socket = function(e, t) { | |
function n() { | |
~p(i.connecting, a) || i.connecting.push(a) | |
} | |
var a = this.nsps[e]; | |
if (!a) { | |
a = new o(this,e,t), | |
this.nsps[e] = a; | |
var i = this; | |
a.on("connecting", n), | |
a.on("connect", function() { | |
a.id = i.generateId(e) | |
}), | |
this.autoConnect && n() | |
} | |
return a | |
} | |
, | |
n.prototype.destroy = function(e) { | |
var t = p(this.connecting, e); | |
~t && this.connecting.splice(t, 1); | |
this.connecting.length || this.close() | |
} | |
, | |
n.prototype.packet = function(e) { | |
u("writing packet %j", e); | |
var t = this; | |
e.query && 0 === e.type && (e.nsp += "?" + e.query), | |
t.encoding ? t.packetBuffer.push(e) : (t.encoding = !0, | |
this.encoder.encode(e, function(n) { | |
for (var a = 0; a < n.length; a++) | |
t.engine.write(n[a], e.options); | |
t.encoding = !1, | |
t.processPacketQueue() | |
})) | |
} | |
, | |
n.prototype.processPacketQueue = function() { | |
if (0 < this.packetBuffer.length && !this.encoding) { | |
var e = this.packetBuffer.shift(); | |
this.packet(e) | |
} | |
} | |
, | |
n.prototype.cleanup = function() { | |
u("cleanup"); | |
for (var e = this.subs.length, t = 0, n; t < e; t++) | |
n = this.subs.shift(), | |
n.destroy(); | |
this.packetBuffer = [], | |
this.encoding = !1, | |
this.lastPing = null, | |
this.decoder.destroy() | |
} | |
, | |
n.prototype.close = n.prototype.disconnect = function() { | |
u("disconnect"), | |
this.skipReconnect = !0, | |
this.reconnecting = !1, | |
"opening" === this.readyState && this.cleanup(), | |
this.backoff.reset(), | |
this.readyState = "closed", | |
this.engine && this.engine.close() | |
} | |
, | |
n.prototype.onclose = function(e) { | |
u("onclose"), | |
this.cleanup(), | |
this.backoff.reset(), | |
this.readyState = "closed", | |
this.emit("close", e), | |
this._reconnection && !this.skipReconnect && this.reconnect() | |
} | |
, | |
n.prototype.reconnect = function() { | |
if (this.reconnecting || this.skipReconnect) | |
return this; | |
var e = this; | |
if (this.backoff.attempts >= this._reconnectionAttempts) | |
u("reconnect failed"), | |
this.backoff.reset(), | |
this.emitAll("reconnect_failed"), | |
this.reconnecting = !1; | |
else { | |
var t = this.backoff.duration(); | |
u("will wait %dms before reconnect attempt", t), | |
this.reconnecting = !0; | |
var n = setTimeout(function() { | |
e.skipReconnect || (u("attempting reconnect"), | |
e.emitAll("reconnect_attempt", e.backoff.attempts), | |
e.emitAll("reconnecting", e.backoff.attempts), | |
e.skipReconnect || e.open(function(t) { | |
t ? (u("reconnect attempt error"), | |
e.reconnecting = !1, | |
e.reconnect(), | |
e.emitAll("reconnect_error", t.data)) : (u("reconnect success"), | |
e.onreconnect()) | |
})) | |
}, t); | |
this.subs.push({ | |
destroy: function() { | |
clearTimeout(n) | |
} | |
}) | |
} | |
} | |
, | |
n.prototype.onreconnect = function() { | |
var e = this.backoff.attempts; | |
this.reconnecting = !1, | |
this.backoff.reset(), | |
this.updateSocketIds(), | |
this.emitAll("reconnect", e) | |
} | |
} | |
, { | |
"./on": 82, | |
"./socket": 83, | |
backo2: 36, | |
"component-bind": 40, | |
"component-emitter": 41, | |
debug: 43, | |
"engine.io-client": 45, | |
indexof: 59, | |
"socket.io-parser": 86 | |
}], | |
82: [function(e, t) { | |
t.exports = function(e, t, n) { | |
return e.on(t, n), | |
{ | |
destroy: function() { | |
e.removeListener(t, n) | |
} | |
} | |
} | |
} | |
, {}], | |
83: [function(e, t, n) { | |
function a(e, t, n) { | |
this.io = e, | |
this.nsp = t, | |
this.json = this, | |
this.ids = 0, | |
this.acks = {}, | |
this.receiveBuffer = [], | |
this.sendBuffer = [], | |
this.connected = !1, | |
this.disconnected = !0, | |
this.flags = {}, | |
n && n.query && (this.query = n.query), | |
this.io.autoConnect && this.open() | |
} | |
var o = e("socket.io-parser") | |
, i = e("component-emitter") | |
, s = e("to-array") | |
, d = e("./on") | |
, l = e("component-bind") | |
, u = e("debug")("socket.io-client:socket") | |
, p = e("parseqs") | |
, c = e("has-binary2"); | |
t.exports = n = a; | |
var f = { | |
connect: 1, | |
connect_error: 1, | |
connect_timeout: 1, | |
connecting: 1, | |
disconnect: 1, | |
error: 1, | |
reconnect: 1, | |
reconnect_attempt: 1, | |
reconnect_failed: 1, | |
reconnect_error: 1, | |
reconnecting: 1, | |
ping: 1, | |
pong: 1 | |
} | |
, h = i.prototype.emit; | |
i(a.prototype), | |
a.prototype.subEvents = function() { | |
if (!this.subs) { | |
var e = this.io; | |
this.subs = [d(e, "open", l(this, "onopen")), d(e, "packet", l(this, "onpacket")), d(e, "close", l(this, "onclose"))] | |
} | |
} | |
, | |
a.prototype.open = a.prototype.connect = function() { | |
return this.connected ? this : (this.subEvents(), | |
this.io.open(), | |
"open" === this.io.readyState && this.onopen(), | |
this.emit("connecting"), | |
this) | |
} | |
, | |
a.prototype.send = function() { | |
var e = s(arguments); | |
return e.unshift("message"), | |
this.emit.apply(this, e), | |
this | |
} | |
, | |
a.prototype.emit = function(e) { | |
if (f.hasOwnProperty(e)) | |
return h.apply(this, arguments), | |
this; | |
var t = s(arguments) | |
, n = { | |
type: (void 0 === this.flags.binary ? c(t) : this.flags.binary) ? o.BINARY_EVENT : o.EVENT, | |
data: t | |
}; | |
return n.options = {}, | |
n.options.compress = !this.flags || !1 !== this.flags.compress, | |
"function" == typeof t[t.length - 1] && (u("emitting packet with ack id %d", this.ids), | |
this.acks[this.ids] = t.pop(), | |
n.id = this.ids++), | |
this.connected ? this.packet(n) : this.sendBuffer.push(n), | |
this.flags = {}, | |
this | |
} | |
, | |
a.prototype.packet = function(e) { | |
e.nsp = this.nsp, | |
this.io.packet(e) | |
} | |
, | |
a.prototype.onopen = function() { | |
if (u("transport is open - connecting"), | |
"/" !== this.nsp) | |
if (this.query) { | |
var e = "object" == typeof this.query ? p.encode(this.query) : this.query; | |
u("sending connect packet with query %s", e), | |
this.packet({ | |
type: o.CONNECT, | |
query: e | |
}) | |
} else | |
this.packet({ | |
type: o.CONNECT | |
}) | |
} | |
, | |
a.prototype.onclose = function(e) { | |
u("close (%s)", e), | |
this.connected = !1, | |
this.disconnected = !0, | |
delete this.id, | |
this.emit("disconnect", e) | |
} | |
, | |
a.prototype.onpacket = function(e) { | |
var t = e.nsp === this.nsp | |
, n = e.type === o.ERROR && "/" === e.nsp; | |
if (t || n) | |
switch (e.type) { | |
case o.CONNECT: | |
this.onconnect(); | |
break; | |
case o.EVENT: | |
this.onevent(e); | |
break; | |
case o.BINARY_EVENT: | |
this.onevent(e); | |
break; | |
case o.ACK: | |
this.onack(e); | |
break; | |
case o.BINARY_ACK: | |
this.onack(e); | |
break; | |
case o.DISCONNECT: | |
this.ondisconnect(); | |
break; | |
case o.ERROR: | |
this.emit("error", e.data); | |
} | |
} | |
, | |
a.prototype.onevent = function(e) { | |
var t = e.data || []; | |
u("emitting event %j", t), | |
null != e.id && (u("attaching ack callback to event"), | |
t.push(this.ack(e.id))), | |
this.connected ? h.apply(this, t) : this.receiveBuffer.push(t) | |
} | |
, | |
a.prototype.ack = function(e) { | |
var t = this | |
, n = !1; | |
return function() { | |
if (!n) { | |
n = !0; | |
var a = s(arguments); | |
u("sending ack %j", a), | |
t.packet({ | |
type: c(a) ? o.BINARY_ACK : o.ACK, | |
id: e, | |
data: a | |
}) | |
} | |
} | |
} | |
, | |
a.prototype.onack = function(e) { | |
var t = this.acks[e.id]; | |
"function" == typeof t ? (u("calling ack %s with %j", e.id, e.data), | |
t.apply(this, e.data), | |
delete this.acks[e.id]) : u("bad ack %s", e.id) | |
} | |
, | |
a.prototype.onconnect = function() { | |
this.connected = !0, | |
this.disconnected = !1, | |
this.emit("connect"), | |
this.emitBuffered() | |
} | |
, | |
a.prototype.emitBuffered = function() { | |
var e; | |
for (e = 0; e < this.receiveBuffer.length; e++) | |
h.apply(this, this.receiveBuffer[e]); | |
for (this.receiveBuffer = [], | |
e = 0; e < this.sendBuffer.length; e++) | |
this.packet(this.sendBuffer[e]); | |
this.sendBuffer = [] | |
} | |
, | |
a.prototype.ondisconnect = function() { | |
u("server disconnect (%s)", this.nsp), | |
this.destroy(), | |
this.onclose("io server disconnect") | |
} | |
, | |
a.prototype.destroy = function() { | |
if (this.subs) { | |
for (var e = 0; e < this.subs.length; e++) | |
this.subs[e].destroy(); | |
this.subs = null | |
} | |
this.io.destroy(this) | |
} | |
, | |
a.prototype.close = a.prototype.disconnect = function() { | |
return this.connected && (u("performing disconnect (%s)", this.nsp), | |
this.packet({ | |
type: o.DISCONNECT | |
})), | |
this.destroy(), | |
this.connected && this.onclose("io client disconnect"), | |
this | |
} | |
, | |
a.prototype.compress = function(e) { | |
return this.flags.compress = e, | |
this | |
} | |
, | |
a.prototype.binary = function(e) { | |
return this.flags.binary = e, | |
this | |
} | |
} | |
, { | |
"./on": 82, | |
"component-bind": 40, | |
"component-emitter": 41, | |
debug: 43, | |
"has-binary2": 57, | |
parseqs: 78, | |
"socket.io-parser": 86, | |
"to-array": 98 | |
}], | |
84: [function(e, t) { | |
(function(n) { | |
var a = e("parseuri") | |
, o = e("debug")("socket.io-client:url"); | |
t.exports = function(e, t) { | |
var i = e; | |
t = t || n.location, | |
null == e && (e = t.protocol + "//" + t.host), | |
"string" == typeof e && ("/" === e.charAt(0) && ("/" === e.charAt(1) ? e = t.protocol + e : e = t.host + e), | |
!/^(https?|wss?):\/\//.test(e) && (o("protocol-less url %s", e), | |
e = "undefined" == typeof t ? "https://" + e : t.protocol + "//" + e), | |
o("parse %s", e), | |
i = a(e)), | |
i.port || (/^(http|ws)$/.test(i.protocol) ? i.port = "80" : /^(http|ws)s$/.test(i.protocol) && (i.port = "443")), | |
i.path = i.path || "/"; | |
var s = -1 !== i.host.indexOf(":") | |
, d = s ? "[" + i.host + "]" : i.host; | |
return i.id = i.protocol + "://" + d + ":" + i.port, | |
i.href = i.protocol + "://" + d + (t && t.port === i.port ? "" : ":" + i.port), | |
i | |
} | |
} | |
).call(this, "undefined" == typeof global ? "undefined" == typeof self ? "undefined" == typeof window ? {} : window : self : global) | |
} | |
, { | |
debug: 43, | |
parseuri: 79 | |
}], | |
85: [function(e, t, n) { | |
(function(t) { | |
function a(e, t) { | |
if (!e) | |
return e; | |
if (d(e)) { | |
var n = { | |
_placeholder: !0, | |
num: t.length | |
}; | |
return t.push(e), | |
n | |
} | |
if (s(e)) { | |
for (var o = Array(e.length), l = 0; l < e.length; l++) | |
o[l] = a(e[l], t); | |
return o | |
} | |
if ("object" == typeof e && !(e instanceof Date)) { | |
var o = {}; | |
for (var u in e) | |
o[u] = a(e[u], t); | |
return o | |
} | |
return e | |
} | |
function o(e, t) { | |
if (!e) | |
return e; | |
if (e && e._placeholder) | |
return t[e.num]; | |
if (s(e)) | |
for (var n = 0; n < e.length; n++) | |
e[n] = o(e[n], t); | |
else if ("object" == typeof e) | |
for (var a in e) | |
e[a] = o(e[a], t); | |
return e | |
} | |
var s = e("isarray") | |
, d = e("./is-buffer") | |
, i = Object.prototype.toString | |
, l = "function" == typeof t.Blob || "[object BlobConstructor]" === i.call(t.Blob) | |
, u = "function" == typeof t.File || "[object FileConstructor]" === i.call(t.File); | |
n.deconstructPacket = function(e) { | |
var t = [] | |
, n = e.data | |
, o = e; | |
return o.data = a(n, t), | |
o.attachments = t.length, | |
{ | |
packet: o, | |
buffers: t | |
} | |
} | |
, | |
n.reconstructPacket = function(e, t) { | |
return e.data = o(e.data, t), | |
e.attachments = void 0, | |
e | |
} | |
, | |
n.removeBlobs = function(e, t) { | |
function n(e, p, c) { | |
if (!e) | |
return e; | |
if (l && e instanceof Blob || u && e instanceof File) { | |
a++; | |
var f = new FileReader; | |
f.onload = function() { | |
c ? c[p] = this.result : o = this.result, | |
--a || t(o) | |
} | |
, | |
f.readAsArrayBuffer(e) | |
} else if (s(e)) | |
for (var h = 0; h < e.length; h++) | |
n(e[h], h, e); | |
else if ("object" == typeof e && !d(e)) | |
for (var m in e) | |
n(e[m], m, e) | |
} | |
var a = 0 | |
, o = e; | |
n(o), | |
a || t(o) | |
} | |
} | |
).call(this, "undefined" == typeof global ? "undefined" == typeof self ? "undefined" == typeof window ? {} : window : self : global) | |
} | |
, { | |
"./is-buffer": 87, | |
isarray: 60 | |
}], | |
86: [function(e, t, n) { | |
function a() {} | |
function o(e) { | |
var t = "" + e.type; | |
if ((n.BINARY_EVENT === e.type || n.BINARY_ACK === e.type) && (t += e.attachments + "-"), | |
e.nsp && "/" !== e.nsp && (t += e.nsp + ","), | |
null != e.id && (t += e.id), | |
null != e.data) { | |
var a = i(e.data); | |
if (!1 !== a) | |
t += a; | |
else | |
return _ | |
} | |
return h("encoded %j as %s", e, t), | |
t | |
} | |
function i(e) { | |
try { | |
return JSON.stringify(e) | |
} catch (t) { | |
return !1 | |
} | |
} | |
function s(e, t) { | |
m.removeBlobs(e, function(e) { | |
var n = m.deconstructPacket(e) | |
, a = o(n.packet) | |
, i = n.buffers; | |
i.unshift(a), | |
t(i) | |
}) | |
} | |
function d() { | |
this.reconstructor = null | |
} | |
function l(e) { | |
var t = 0 | |
, a = { | |
type: +e.charAt(0) | |
}; | |
if (null == n.types[a.type]) | |
return f("unknown packet type " + a.type); | |
if (n.BINARY_EVENT === a.type || n.BINARY_ACK === a.type) { | |
for (var o = ""; "-" !== e.charAt(++t) && (o += e.charAt(t), | |
t != e.length); ) | |
; | |
if (o != +o || "-" !== e.charAt(t)) | |
throw new Error("Illegal attachments"); | |
a.attachments = +o | |
} | |
if ("/" === e.charAt(t + 1)) | |
for (a.nsp = ""; ++t; ) { | |
var s = e.charAt(t); | |
if ("," === s) | |
break; | |
if (a.nsp += s, | |
t === e.length) | |
break | |
} | |
else | |
a.nsp = "/"; | |
var d = e.charAt(t + 1); | |
if ("" !== d && +d == d) { | |
for (a.id = ""; ++t; ) { | |
var s = e.charAt(t); | |
if (null == s || +s != s) { | |
--t; | |
break | |
} | |
if (a.id += e.charAt(t), | |
t === e.length) | |
break | |
} | |
a.id = +a.id | |
} | |
if (e.charAt(++t)) { | |
var l = u(e.substr(t)) | |
, p = !1 !== l && (a.type === n.ERROR || y(l)); | |
if (p) | |
a.data = l; | |
else | |
return f("invalid payload") | |
} | |
return h("decoded %s as %j", e, a), | |
a | |
} | |
function u(e) { | |
try { | |
return JSON.parse(e) | |
} catch (t) { | |
return !1 | |
} | |
} | |
function p(e) { | |
this.reconPack = e, | |
this.buffers = [] | |
} | |
function f(e) { | |
return { | |
type: n.ERROR, | |
data: "parser error: " + e | |
} | |
} | |
var h = e("debug")("socket.io-parser") | |
, c = e("component-emitter") | |
, m = e("./binary") | |
, y = e("isarray") | |
, x = e("./is-buffer"); | |
n.protocol = 4, | |
n.types = ["CONNECT", "DISCONNECT", "EVENT", "ACK", "ERROR", "BINARY_EVENT", "BINARY_ACK"], | |
n.CONNECT = 0, | |
n.DISCONNECT = 1, | |
n.EVENT = 2, | |
n.ACK = 3, | |
n.ERROR = 4, | |
n.BINARY_EVENT = 5, | |
n.BINARY_ACK = 6, | |
n.Encoder = a, | |
n.Decoder = d; | |
var _ = n.ERROR + "\"encode error\""; | |
a.prototype.encode = function(e, t) { | |
if (h("encoding packet %j", e), | |
n.BINARY_EVENT === e.type || n.BINARY_ACK === e.type) | |
s(e, t); | |
else { | |
var a = o(e); | |
t([a]) | |
} | |
} | |
, | |
c(d.prototype), | |
d.prototype.add = function(e) { | |
var t; | |
if ("string" == typeof e) | |
t = l(e), | |
n.BINARY_EVENT === t.type || n.BINARY_ACK === t.type ? (this.reconstructor = new p(t), | |
0 === this.reconstructor.reconPack.attachments && this.emit("decoded", t)) : this.emit("decoded", t); | |
else if (!(x(e) || e.base64)) | |
throw new Error("Unknown type: " + e); | |
else if (!this.reconstructor) | |
throw new Error("got binary data when not reconstructing a packet"); | |
else | |
t = this.reconstructor.takeBinaryData(e), | |
t && (this.reconstructor = null, | |
this.emit("decoded", t)) | |
} | |
, | |
d.prototype.destroy = function() { | |
this.reconstructor && this.reconstructor.finishedReconstruction() | |
} | |
, | |
p.prototype.takeBinaryData = function(e) { | |
if (this.buffers.push(e), | |
this.buffers.length === this.reconPack.attachments) { | |
var t = m.reconstructPacket(this.reconPack, this.buffers); | |
return this.finishedReconstruction(), | |
t | |
} | |
return null | |
} | |
, | |
p.prototype.finishedReconstruction = function() { | |
this.reconPack = null, | |
this.buffers = [] | |
} | |
} | |
, { | |
"./binary": 85, | |
"./is-buffer": 87, | |
"component-emitter": 41, | |
debug: 43, | |
isarray: 60 | |
}], | |
87: [function(e, t) { | |
(function(e) { | |
t.exports = function(t) { | |
return n && e.Buffer.isBuffer(t) || a && (t instanceof e.ArrayBuffer || o(t)) | |
} | |
; | |
var n = "function" == typeof e.Buffer && "function" == typeof e.Buffer.isBuffer | |
, a = "function" == typeof e.ArrayBuffer | |
, o = function() { | |
return a && "function" == typeof e.ArrayBuffer.isView ? e.ArrayBuffer.isView : function(t) { | |
return t.buffer instanceof e.ArrayBuffer | |
} | |
}() | |
} | |
).call(this, "undefined" == typeof global ? "undefined" == typeof self ? "undefined" == typeof window ? {} : window : self : global) | |
} | |
, {}], | |
88: [function(e, t) { | |
t.exports = e("./lib") | |
} | |
, { | |
"./lib": 90 | |
}], | |
89: [function(e, t) { | |
(function(n) { | |
function a(e, t) { | |
if (!(this instanceof a)) | |
return new a(e,t); | |
i.call(this, t), | |
t = t || {}, | |
this.blob = e, | |
this.slice = e.slice || e.webkitSlice || e.mozSlice, | |
this.start = 0, | |
this.sync = t.synchronous || !1; | |
var n; | |
n = t.synchronous ? this.fileReader = new FileReaderSync : this.fileReader = new FileReader, | |
n.onload = s(this, "_onload"), | |
n.onerror = s(this, "_onerror") | |
} | |
var o = e("util") | |
, i = e("stream").Readable | |
, s = e("component-bind"); | |
t.exports = a, | |
o.inherits(a, i), | |
a.prototype._read = function(e) { | |
var t = this.start | |
, a = this.start += e | |
, o = this.slice.call(this.blob, t, a); | |
if (!o.size) | |
this.push(null); | |
else if (this.sync) { | |
var i = new n(new Uint8Array(this.fileReader.readAsArrayBuffer(o))); | |
this.push(i) | |
} else | |
this.fileReader.readAsArrayBuffer(o) | |
} | |
, | |
a.prototype._onload = function(t) { | |
var e = new n(new Uint8Array(t.target.result)); | |
this.push(e) | |
} | |
, | |
a.prototype._onerror = function(t) { | |
var e = t.target.error; | |
this.emit("error", e) | |
} | |
} | |
).call(this, e("buffer").Buffer) | |
} | |
, { | |
buffer: 4, | |
"component-bind": 40, | |
stream: 27, | |
util: 32 | |
}], | |
90: [function(e, t, n) { | |
(function(a) { | |
function o(e, t) { | |
return t = t || {}, | |
null == t.forceBase64 && (t.forceBase64 = n.forceBase64), | |
e._streamSocket || (e._streamSocket = new i(e,t)), | |
e._streamSocket | |
} | |
var i = e("./socket") | |
, s = e("./iostream") | |
, d = e("./blob-read-stream"); | |
n = t.exports = o, | |
n.Buffer = a, | |
n.Socket = i, | |
n.IOStream = s, | |
n.forceBase64 = !1, | |
n.createStream = function(e) { | |
return new s(e) | |
} | |
, | |
n.createBlobReadStream = function(e, t) { | |
return new d(e,t) | |
} | |
} | |
).call(this, e("buffer").Buffer) | |
} | |
, { | |
"./blob-read-stream": 89, | |
"./iostream": 91, | |
"./socket": 93, | |
buffer: 4 | |
}], | |
91: [function(e, t) { | |
function n(e) { | |
return this instanceof n ? void (n.super_.call(this, e), | |
this.options = e, | |
this.id = s(), | |
this.socket = null, | |
this.pushBuffer = [], | |
this.writeBuffer = [], | |
this._readable = !1, | |
this._writable = !1, | |
this.destroyed = !1, | |
this.allowHalfOpen = e && e.allowHalfOpen || !1, | |
this.on("finish", this._onfinish), | |
this.on("end", this._onend), | |
this.on("error", this._onerror)) : new n(e) | |
} | |
var a = e("util") | |
, o = e("stream").Duplex | |
, i = e("component-bind") | |
, s = e("./uuid") | |
, d = e("debug")("socket.io-stream:iostream"); | |
t.exports = n, | |
a.inherits(n, o), | |
n.prototype.destroy = function() { | |
return d("destroy"), | |
this.destroyed ? void d("already destroyed") : void (this.readable = this.writable = !1, | |
this.socket && (d("clean up"), | |
this.socket.cleanup(this.id), | |
this.socket = null), | |
this.destroyed = !0) | |
} | |
, | |
n.prototype._read = function(e) { | |
var t; | |
if (!this.destroyed) { | |
if (this.pushBuffer.length) { | |
for (; (t = this.pushBuffer.shift()) && !!t(); ) | |
; | |
return | |
} | |
this._readable = !0, | |
this.socket._read(this.id, e) | |
} | |
} | |
, | |
n.prototype._onread = function() { | |
var e = this.writeBuffer.shift(); | |
return e ? e() : void (this._writable = !0) | |
} | |
, | |
n.prototype._write = function(e, t, n) { | |
function a() { | |
o.destroyed || (o._writable = !1, | |
o.socket._write(o.id, e, t, n)) | |
} | |
var o = this; | |
this._writable ? a() : this.writeBuffer.push(a) | |
} | |
, | |
n.prototype._onwrite = function(e, t, n) { | |
function a() { | |
o._readable = !1; | |
var a = o.push(e || "", t); | |
return n(), | |
a | |
} | |
var o = this; | |
this._readable ? a() : this.pushBuffer.push(a) | |
} | |
, | |
n.prototype._end = function() { | |
this.pushBuffer.length ? this.pushBuffer.push(i(this, "_done")) : this._done() | |
} | |
, | |
n.prototype._done = function() { | |
return this._readable = !1, | |
this.push(null) | |
} | |
, | |
n.prototype._onfinish = function() { | |
return d("_onfinish"), | |
this.socket && this.socket._end(this.id), | |
this.writable = !1, | |
this._writableState.ended = !0, | |
!this.readable || this._readableState.ended ? (d("_onfinish: ended, destroy %s", this._readableState), | |
this.destroy()) : void (d("_onfinish: not ended"), | |
!this.allowHalfOpen && (this.push(null), | |
this.readable && !this._readableState.endEmitted && this.read(0))) | |
} | |
, | |
n.prototype._onend = function() { | |
return d("_onend"), | |
this.readable = !1, | |
this._readableState.ended = !0, | |
!this.writable || this._writableState.finished ? (d("_onend: %s", this._writableState), | |
this.destroy()) : void (d("_onend: not finished"), | |
!this.allowHalfOpen && this.end()) | |
} | |
, | |
n.prototype._onerror = function(e) { | |
!e.remote && this.socket && this.socket._error(this.id, e), | |
this.destroy() | |
} | |
} | |
, { | |
"./uuid": 94, | |
"component-bind": 40, | |
debug: 95, | |
stream: 27, | |
util: 32 | |
}], | |
92: [function(e, t, n) { | |
function a() { | |
s.call(this) | |
} | |
function o() { | |
s.call(this) | |
} | |
var i = e("util") | |
, s = e("events").EventEmitter | |
, d = e("./iostream") | |
, l = Array.prototype.slice; | |
n.Encoder = a, | |
n.Decoder = o, | |
i.inherits(a, s), | |
a.prototype.encode = function(e) { | |
if (e instanceof d) | |
return this.encodeStream(e); | |
return i.isArray(e) ? this.encodeArray(e) : e && "object" == typeof e ? this.encodeObject(e) : e | |
} | |
, | |
a.prototype.encodeStream = function(e) { | |
this.emit("stream", e); | |
var t = { | |
$stream: e.id | |
}; | |
return e.options && (t.options = e.options), | |
t | |
} | |
, | |
a.prototype.encodeArray = function(e) { | |
for (var t = [], n = 0, a = e.length; n < a; n++) | |
t.push(this.encode(e[n])); | |
return t | |
} | |
, | |
a.prototype.encodeObject = function(e) { | |
var t = {}; | |
for (var n in e) | |
e.hasOwnProperty(n) && (t[n] = this.encode(e[n])); | |
return t | |
} | |
, | |
i.inherits(o, s), | |
o.prototype.decode = function(e) { | |
if (e && e.$stream) | |
return this.decodeStream(e); | |
return i.isArray(e) ? this.decodeArray(e) : e && "object" == typeof e ? this.decodeObject(e) : e | |
} | |
, | |
o.prototype.decodeStream = function(e) { | |
var t = new d(e.options); | |
return t.id = e.$stream, | |
this.emit("stream", t), | |
t | |
} | |
, | |
o.prototype.decodeArray = function(e) { | |
for (var t = [], n = 0, a = e.length; n < a; n++) | |
t.push(this.decode(e[n])); | |
return t | |
} | |
, | |
o.prototype.decodeObject = function(e) { | |
var t = {}; | |
for (var n in e) | |
e.hasOwnProperty(n) && (t[n] = this.decode(e[n])); | |
return t | |
} | |
} | |
, { | |
"./iostream": 91, | |
events: 6, | |
util: 32 | |
}], | |
93: [function(e, t, n) { | |
(function(a, o) { | |
function i(e, t) { | |
if (!(this instanceof i)) | |
return new i(e,t); | |
d.call(this), | |
t = t || {}, | |
this.sio = e, | |
this.forceBase64 = !!t.forceBase64, | |
this.streams = {}, | |
this.encoder = new p.Encoder, | |
this.decoder = new p.Decoder; | |
var a = n.event; | |
e.on(a, l(this, f)), | |
e.on(a + "-read", l(this, "_onread")), | |
e.on(a + "-write", l(this, "_onwrite")), | |
e.on(a + "-end", l(this, "_onend")), | |
e.on(a + "-error", l(this, "_onerror")), | |
e.on("error", l(this, f, "error")), | |
e.on("disconnect", l(this, "_ondisconnect")), | |
this.encoder.on("stream", l(this, "_onencode")), | |
this.decoder.on("stream", l(this, "_ondecode")) | |
} | |
var s = e("util") | |
, d = e("events").EventEmitter | |
, l = e("component-bind") | |
, u = e("./iostream") | |
, p = e("./parser") | |
, c = e("debug")("socket.io-stream:socket") | |
, f = d.prototype.emit | |
, h = d.prototype.on | |
, m = Array.prototype.slice; | |
n = t.exports = i, | |
n.event = "$stream", | |
n.events = ["error", "newListener", "removeListener"], | |
s.inherits(i, d), | |
i.prototype.$emit = f, | |
i.prototype.emit = function(e) { | |
return ~n.events.indexOf(e) ? f.apply(this, arguments) : (this._stream.apply(this, arguments), | |
this) | |
} | |
, | |
i.prototype.on = function(e, t) { | |
return ~n.events.indexOf(e) ? h.apply(this, arguments) : (this._onstream(e, t), | |
this) | |
} | |
, | |
i.prototype._stream = function(e) { | |
c("sending new streams"); | |
var t = this | |
, a = m.call(arguments, 1) | |
, o = a[a.length - 1]; | |
"function" == typeof o && (a[a.length - 1] = function() { | |
var e = m.call(arguments); | |
e = t.decoder.decode(e), | |
o.apply(this, e) | |
} | |
), | |
a = this.encoder.encode(a); | |
var i = this.sio; | |
i.emit.apply(i, [n.event, e].concat(a)) | |
} | |
, | |
i.prototype._read = function(e, t) { | |
this.sio.emit(n.event + "-read", e, t) | |
} | |
, | |
i.prototype._write = function(e, t, i, s) { | |
o.isBuffer(t) && (this.forceBase64 ? (i = "base64", | |
t = t.toString(i)) : !a.Buffer && (t.toArrayBuffer ? t = t.toArrayBuffer() : t = t.buffer)), | |
this.sio.emit(n.event + "-write", e, t, i, s) | |
} | |
, | |
i.prototype._end = function(e) { | |
this.sio.emit(n.event + "-end", e) | |
} | |
, | |
i.prototype._error = function(e, t) { | |
this.sio.emit(n.event + "-error", e, t.message || t) | |
} | |
, | |
i.prototype._onstream = function(e, t) { | |
function n() { | |
c("new streams"); | |
var e = this | |
, n = m.call(arguments) | |
, a = n[n.length - 1]; | |
"function" == typeof a && (n[n.length - 1] = function() { | |
var t = m.call(arguments); | |
t = e.encoder.encode(t), | |
a.apply(this, t) | |
} | |
), | |
n = this.decoder.decode(n), | |
t.apply(this, n) | |
} | |
if ("function" != typeof t) | |
throw TypeError("listener must be a function"); | |
n.listener = t, | |
h.call(this, e, n) | |
} | |
, | |
i.prototype._onread = function(e, t) { | |
c("read: \"%s\"", e); | |
var n = this.streams[e]; | |
n ? n._onread(t) : c("ignore invalid stream id") | |
} | |
, | |
i.prototype._onwrite = function(e, t, n, i) { | |
c("write: \"%s\"", e); | |
var s = this.streams[e]; | |
return s ? void (a.ArrayBuffer && t instanceof ArrayBuffer && (t = new o(new Uint8Array(t))), | |
s._onwrite(t, n, i)) : void i("invalid stream id: " + e) | |
} | |
, | |
i.prototype._onend = function(e) { | |
c("end: \"%s\"", e); | |
var t = this.streams[e]; | |
return t ? void t._end() : void c("ignore non-existent stream id: \"%s\"", e) | |
} | |
, | |
i.prototype._onerror = function(e, t) { | |
c("error: \"%s\", \"%s\"", e, t); | |
var n = this.streams[e]; | |
if (!n) | |
return void c("invalid stream id: \"%s\"", e); | |
var a = new Error(t); | |
a.remote = !0, | |
n.emit("error", a) | |
} | |
, | |
i.prototype._ondisconnect = function() { | |
var e; | |
for (var t in this.streams) | |
e = this.streams[t], | |
e.destroy(), | |
e.emit("close"), | |
e.emit("error", new Error("Connection aborted")) | |
} | |
, | |
i.prototype._onencode = function(e) { | |
if (e.socket || e.destroyed) | |
throw new Error("stream has already been sent."); | |
var t = e.id; | |
if (this.streams[t]) | |
throw new Error("Encoded stream already exists: " + t); | |
this.streams[t] = e, | |
e.socket = this | |
} | |
, | |
i.prototype._ondecode = function(e) { | |
var t = e.id; | |
return this.streams[t] ? void this._error(t, new Error("Decoded stream already exists: " + t)) : void (this.streams[t] = e, | |
e.socket = this) | |
} | |
, | |
i.prototype.cleanup = function(e) { | |
delete this.streams[e] | |
} | |
} | |
).call(this, "undefined" == typeof global ? "undefined" == typeof self ? "undefined" == typeof window ? {} : window : self : global, e("buffer").Buffer) | |
} | |
, { | |
"./iostream": 91, | |
"./parser": 92, | |
buffer: 4, | |
"component-bind": 40, | |
debug: 95, | |
events: 6, | |
util: 32 | |
}], | |
94: [function(e, t) { | |
function n(e) { | |
return e ? (e ^ 16 * Math.random() >> e / 4).toString(16) : "10000000-1000-4000-8000-100000000000".replace(/[018]/g, n) | |
} | |
t.exports = n | |
} | |
, {}], | |
95: [function(e, t, n) { | |
function a() { | |
return "WebkitAppearance"in document.documentElement.style || window.console && (console.firebug || console.exception && console.table) || navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && 31 <= parseInt(RegExp.$1, 10) | |
} | |
function o() { | |
var e = arguments | |
, t = this.useColors; | |
if (e[0] = (t ? "%c" : "") + this.namespace + (t ? " %c" : " ") + e[0] + (t ? "%c " : " ") + "+" + n.humanize(this.diff), | |
!t) | |
return e; | |
var a = "color: " + this.color; | |
e = [e[0], a, "color: inherit"].concat(Array.prototype.slice.call(e, 1)); | |
var o = 0 | |
, i = 0; | |
return e[0].replace(/%[a-z%]/g, function(e) { | |
"%%" === e || (o++, | |
"%c" === e && (i = o)) | |
}), | |
e.splice(i, 0, a), | |
e | |
} | |
function i(e) { | |
try { | |
null == e ? n.storage.removeItem("debug") : n.storage.debug = e | |
} catch (t) {} | |
} | |
function s() { | |
var e; | |
try { | |
e = n.storage.debug | |
} catch (t) {} | |
return e | |
} | |
n = t.exports = e("./debug"), | |
n.log = function() { | |
return "object" == typeof console && console.log && Function.prototype.apply.call(console.log, console, arguments) | |
} | |
, | |
n.formatArgs = o, | |
n.save = i, | |
n.load = s, | |
n.useColors = a, | |
n.storage = "undefined" != typeof chrome && "undefined" != typeof chrome.storage ? chrome.storage.local : function() { | |
try { | |
return window.localStorage | |
} catch (t) {} | |
}(), | |
n.colors = ["lightseagreen", "forestgreen", "goldenrod", "dodgerblue", "darkorchid", "crimson"], | |
n.formatters.j = function(e) { | |
return JSON.stringify(e) | |
} | |
, | |
n.enable(s()) | |
} | |
, { | |
"./debug": 96 | |
}], | |
96: [function(e, t, n) { | |
function a() { | |
return n.colors[l++ % n.colors.length] | |
} | |
function o(e) { | |
function t() {} | |
function o() { | |
var e = o | |
, t = +new Date | |
, i = t - (u || t); | |
e.diff = i, | |
e.prev = u, | |
e.curr = t, | |
u = t, | |
null == e.useColors && (e.useColors = n.useColors()), | |
null == e.color && e.useColors && (e.color = a()); | |
var s = Array.prototype.slice.call(arguments); | |
s[0] = n.coerce(s[0]), | |
"string" != typeof s[0] && (s = ["%o"].concat(s)); | |
var d = 0; | |
s[0] = s[0].replace(/%([a-z%])/g, function(t, a) { | |
if ("%%" === t) | |
return t; | |
d++; | |
var o = n.formatters[a]; | |
if ("function" == typeof o) { | |
var i = s[d]; | |
t = o.call(e, i), | |
s.splice(d, 1), | |
d-- | |
} | |
return t | |
}), | |
"function" == typeof n.formatArgs && (s = n.formatArgs.apply(e, s)); | |
var l = o.log || n.log || console.log.bind(console); | |
l.apply(e, s) | |
} | |
t.enabled = !1, | |
o.enabled = !0; | |
var i = n.enabled(e) ? o : t; | |
return i.namespace = e, | |
i | |
} | |
function i(e) { | |
n.save(e); | |
for (var t = (e || "").split(/[\s,]+/), a = t.length, o = 0; o < a; o++) | |
t[o] && (e = t[o].replace(/\*/g, ".*?"), | |
"-" === e[0] ? n.skips.push(new RegExp("^" + e.substr(1) + "$")) : n.names.push(new RegExp("^" + e + "$"))) | |
} | |
function s() { | |
n.enable("") | |
} | |
function d(e) { | |
var t, a; | |
for (t = 0, | |
a = n.skips.length; t < a; t++) | |
if (n.skips[t].test(e)) | |
return !1; | |
for (t = 0, | |
a = n.names.length; t < a; t++) | |
if (n.names[t].test(e)) | |
return !0; | |
return !1 | |
} | |
n = t.exports = o, | |
n.coerce = function(e) { | |
return e instanceof Error ? e.stack || e.message : e | |
} | |
, | |
n.disable = s, | |
n.enable = i, | |
n.enabled = d, | |
n.humanize = e("ms"), | |
n.names = [], | |
n.skips = [], | |
n.formatters = {}; | |
var l = 0, u | |
} | |
, { | |
ms: 97 | |
}], | |
97: [function(e, t) { | |
function n(e) { | |
if (e = "" + e, | |
!(1e4 < e.length)) { | |
var t = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e); | |
if (t) { | |
var a = parseFloat(t[1]) | |
, n = (t[2] || "ms").toLowerCase(); | |
return "years" === n || "year" === n || "yrs" === n || "yr" === n || "y" === n ? 31557600000 * a : "days" === n || "day" === n || "d" === n ? 86400000 * a : "hours" === n || "hour" === n || "hrs" === n || "hr" === n || "h" === n ? 3600000 * a : "minutes" === n || "minute" === n || "mins" === n || "min" === n || "m" === n ? 60000 * a : "seconds" === n || "second" === n || "secs" === n || "sec" === n || "s" === n ? 1000 * a : "milliseconds" === n || "millisecond" === n || "msecs" === n || "msec" === n || "ms" === n ? a : void 0 | |
} | |
} | |
} | |
function a(e) { | |
return 86400000 <= e ? s(e / 86400000) + "d" : 3600000 <= e ? s(e / 3600000) + "h" : 60000 <= e ? s(e / 60000) + "m" : 1000 <= e ? s(e / 1000) + "s" : e + "ms" | |
} | |
function o(e) { | |
return i(e, 86400000, "day") || i(e, 3600000, "hour") || i(e, 60000, "minute") || i(e, 1000, "second") || e + " ms" | |
} | |
function i(e, t, n) { | |
return e < t ? void 0 : e < 1.5 * t ? Math.floor(e / t) + " " + n : Math.ceil(e / t) + " " + n + "s" | |
} | |
var s = Math.round; | |
t.exports = function(e, t) { | |
return t = t || {}, | |
"string" == typeof e ? n(e) : t.long ? o(e) : a(e) | |
} | |
} | |
, {}], | |
98: [function(e, t) { | |
t.exports = function(e, t) { | |
var n = []; | |
t = t || 0; | |
for (var a = t || 0; a < e.length; a++) | |
n[a - t] = e[a]; | |
return n | |
} | |
} | |
, {}], | |
99: [function(e, t) { | |
"use strict"; | |
function n(e) { | |
var t = ""; | |
do | |
t = s[e % 64] + t, | |
e = Math.floor(e / 64); | |
while (0 < e);return t | |
} | |
function a(e) { | |
var t = 0; | |
for (u = 0; u < e.length; u++) | |
t = t * 64 + d[e.charAt(u)]; | |
return t | |
} | |
function o() { | |
var e = n(+new Date); | |
return e === p ? e + "." + n(l++) : (l = 0, | |
p = e) | |
} | |
for (var s = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "-", "_"], d = {}, l = 0, u = 0, p; u < 64; u++) | |
d[s[u]] = u; | |
o.encode = n, | |
o.decode = a, | |
t.exports = o | |
} | |
, {}], | |
100: [function() { | |
var s = Math.atan2 | |
, a = Math.SQRT2 | |
, p = Number.POSITIVE_INFINITY | |
, E = Math.PI | |
, P = Math.sin | |
, D = Math.cos | |
, f = Math.ceil | |
, x = Math.sqrt | |
, T = Math.round | |
, B = Math.max | |
, _ = Math.floor | |
, M = Math.abs | |
, S = Math.pow | |
, o = String.fromCharCode | |
, R = Math.min; | |
!function(a) { | |
function i(t) { | |
if (e[t]) | |
return e[t].exports; | |
var n = e[t] = { | |
i: t, | |
l: !1, | |
exports: {} | |
}; | |
return a[t].call(n.exports, n, n.exports, i), | |
n.l = !0, | |
n.exports | |
} | |
var e = {}; | |
i.m = a, | |
i.c = e, | |
i.d = function(t, e, n) { | |
i.o(t, e) || Object.defineProperty(t, e, { | |
configurable: !1, | |
enumerable: !0, | |
get: n | |
}) | |
} | |
, | |
i.n = function(t) { | |
var e = t && t.__esModule ? function() { | |
return t.default | |
} | |
: function() { | |
return t | |
} | |
; | |
return i.d(e, "a", e), | |
e | |
} | |
, | |
i.o = function(n, e) { | |
return Object.prototype.hasOwnProperty.call(n, e) | |
} | |
, | |
i.p = "./", | |
i(i.s = 138) | |
}([function(t) { | |
t.exports = function(t) { | |
return t && t.__esModule ? t : { | |
default: t | |
} | |
} | |
} | |
, function(a, e, t) { | |
"use strict"; | |
a.exports = t(145) | |
} | |
, function(a, e, t) { | |
a.exports = t(202)() | |
} | |
, function(t) { | |
function e() { | |
return t.exports = e = Object.assign || function(a) { | |
for (var e = 1, o; e < arguments.length; e++) | |
for (var i in o = arguments[e], | |
o) | |
Object.prototype.hasOwnProperty.call(o, i) && (a[i] = o[i]); | |
return a | |
} | |
, | |
e.apply(this, arguments) | |
} | |
t.exports = e | |
} | |
, function(a, e, t) { | |
"use strict"; | |
a.exports = t(52), | |
a.exports.easing = t(303), | |
a.exports.canvas = t(304), | |
a.exports.options = t(305) | |
} | |
, function(a, e, t) { | |
function n(o, e) { | |
if (null == o) | |
return {}; | |
var t = s(o, e), i, d; | |
if (Object.getOwnPropertySymbols) { | |
var l = Object.getOwnPropertySymbols(o); | |
for (d = 0; d < l.length; d++) | |
i = l[d], | |
0 <= e.indexOf(i) || Object.prototype.propertyIsEnumerable.call(o, i) && (t[i] = o[i]) | |
} | |
return t | |
} | |
var s = t(151); | |
a.exports = n | |
} | |
, function(a, e, t) { | |
"use strict"; | |
var n = t(4); | |
a.exports = { | |
_set: function(a, e) { | |
return n.merge(this[a] || (this[a] = {}), e) | |
} | |
} | |
} | |
, function(R, e, t) { | |
"use strict"; | |
function I() { | |
return P || (P = (0, | |
x.default)()) | |
} | |
var n = t(94) | |
, o = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
e.default = e.sheetsManager = void 0; | |
var z = o(t(3)) | |
, a = o(t(10)) | |
, l = o(t(11)) | |
, s = o(t(12)) | |
, u = o(t(13)) | |
, c = o(t(14)) | |
, d = o(t(5)) | |
, f = o(t(1)) | |
, p = o(t(2)) | |
, h = (o(t(15)), | |
o(t(95))) | |
, m = (o(t(70)), | |
o(t(96)), | |
o(t(207))) | |
, i = t(88) | |
, y = n(t(97)) | |
, v = o(t(87)) | |
, A = o(t(209)) | |
, x = o(t(63)) | |
, U = o(t(69)) | |
, k = o(t(86)) | |
, L = o(t(210)) | |
, _ = o(t(211)) | |
, w = (0, | |
i.create)((0, | |
v.default)()) | |
, S = (0, | |
k.default)() | |
, C = -1e11 | |
, E = new Map; | |
e.sheetsManager = E; | |
var T = {}, P; | |
e.default = function(x) { | |
var e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {}; | |
return function(v) { | |
var t = e.withTheme | |
, n = void 0 !== t && t | |
, o = e.flip | |
, k = void 0 === o ? null : o | |
, P = e.name | |
, D = (0, | |
d.default)(e, ["withTheme", "flip", "name"]) | |
, O = (0, | |
L.default)(x) | |
, M = O.themingEnabled || n || "string" == typeof P; | |
C += 1, | |
O.options.index = C; | |
var i = function(o) { | |
function p(t, e) { | |
var n; | |
(0, | |
a.default)(this, p), | |
n = (0, | |
s.default)(this, (0, | |
u.default)(p).call(this, t, e)), | |
n.disableStylesGeneration = !1, | |
n.jss = null, | |
n.sheetOptions = null, | |
n.sheetsManager = E, | |
n.stylesCreatorSaved = null, | |
n.theme = null, | |
n.unsubscribeId = null, | |
n.state = {}, | |
n.jss = e[y.jss] || w; | |
var d = e.muiThemeProviderOptions; | |
return d && (d.sheetsManager && (n.sheetsManager = d.sheetsManager), | |
n.disableStylesGeneration = d.disableStylesGeneration), | |
n.stylesCreatorSaved = O, | |
n.sheetOptions = (0, | |
z.default)({ | |
generateClassName: S | |
}, e[y.sheetOptions]), | |
n.theme = M ? U.default.initial(e) || I() : T, | |
n.attach(n.theme), | |
n.cacheClasses = { | |
value: null, | |
lastProp: null, | |
lastJSS: {} | |
}, | |
n | |
} | |
return (0, | |
c.default)(p, o), | |
(0, | |
l.default)(p, [{ | |
key: "componentDidMount", | |
value: function() { | |
var a = this; | |
M && (this.unsubscribeId = U.default.subscribe(this.context, function(e) { | |
var t = a.theme; | |
a.theme = e, | |
a.attach(a.theme), | |
a.setState({}, function() { | |
a.detach(t) | |
}) | |
})) | |
} | |
}, { | |
key: "componentDidUpdate", | |
value: function() { | |
this.stylesCreatorSaved, | |
0 | |
} | |
}, { | |
key: "componentWillUnmount", | |
value: function() { | |
this.detach(this.theme), | |
null !== this.unsubscribeId && U.default.unsubscribe(this.context, this.unsubscribeId) | |
} | |
}, { | |
key: "getClasses", | |
value: function() { | |
var n = !1; | |
if (!this.disableStylesGeneration) { | |
var a = this.sheetsManager.get(this.stylesCreatorSaved) | |
, t = a.get(this.theme); | |
t.sheet.classes !== this.cacheClasses.lastJSS && (this.cacheClasses.lastJSS = t.sheet.classes, | |
n = !0) | |
} | |
return this.props.classes !== this.cacheClasses.lastProp && (this.cacheClasses.lastProp = this.props.classes, | |
n = !0), | |
n && (this.cacheClasses.value = (0, | |
A.default)({ | |
baseClasses: this.cacheClasses.lastJSS, | |
newClasses: this.props.classes, | |
Component: v, | |
noBase: this.disableStylesGeneration | |
})), | |
this.cacheClasses.value | |
} | |
}, { | |
key: "attach", | |
value: function(a) { | |
if (!this.disableStylesGeneration) { | |
var e = this.stylesCreatorSaved | |
, t = this.sheetsManager.get(e); | |
t || (t = new Map, | |
this.sheetsManager.set(e, t)); | |
var d = t.get(a); | |
if (d || (d = { | |
refs: 0, | |
sheet: null | |
}, | |
t.set(a, d)), | |
0 === d.refs) { | |
var u = e.create(a, P) | |
, o = P | |
, i = this.jss.createStyleSheet(u, (0, | |
z.default)({ | |
meta: o, | |
classNamePrefix: o, | |
flip: "boolean" == typeof k ? k : "rtl" === a.direction, | |
link: !1 | |
}, this.sheetOptions, e.options, { | |
name: P | |
}, D)); | |
d.sheet = i, | |
i.attach(); | |
var l = this.context[y.sheetsRegistry]; | |
l && l.add(i) | |
} | |
d.refs += 1 | |
} | |
} | |
}, { | |
key: "detach", | |
value: function(a) { | |
if (!this.disableStylesGeneration) { | |
var e = this.stylesCreatorSaved | |
, t = this.sheetsManager.get(e) | |
, n = t.get(a); | |
if (n.refs -= 1, | |
0 === n.refs) { | |
t.delete(a), | |
this.jss.removeStyleSheet(n.sheet); | |
var i = this.context[y.sheetsRegistry]; | |
i && i.remove(n.sheet) | |
} | |
} | |
} | |
}, { | |
key: "render", | |
value: function() { | |
var a = this.props | |
, e = (a.classes, | |
a.innerRef) | |
, t = (0, | |
d.default)(a, ["classes", "innerRef"]) | |
, i = (0, | |
_.default)({ | |
theme: this.theme, | |
name: P | |
}); | |
return n && (i.theme = this.theme), | |
f.default.createElement(v, (0, | |
z.default)({}, i, { | |
classes: this.getClasses(), | |
ref: e | |
}, t)) | |
} | |
}]), | |
p | |
}(f.default.Component); | |
return i.propTypes = {}, | |
i.contextTypes = (0, | |
z.default)({ | |
muiThemeProviderOptions: p.default.object | |
}, m.default, M ? U.default.contextTypes : {}), | |
(0, | |
h.default)(i, v), | |
i | |
} | |
} | |
} | |
, function(a, e) { | |
var t, s; | |
!function() { | |
"use strict"; | |
function o() { | |
for (var i = [], e = 0, s; e < arguments.length; e++) | |
if (s = arguments[e], | |
s) { | |
var d = typeof s; | |
if ("string" == d || "number" == d) | |
i.push(s); | |
else if (Array.isArray(s) && s.length) { | |
var u = o.apply(null, s); | |
u && i.push(u) | |
} else if ("object" == d) | |
for (var a in s) | |
n.call(s, a) && s[a] && i.push(a) | |
} | |
return i.join(" ") | |
} | |
var n = {}.hasOwnProperty; | |
"undefined" != typeof a && a.exports ? (o.default = o, | |
a.exports = o) : (t = [], | |
void 0 !== (s = function() { | |
return o | |
} | |
.apply(e, t)) && (a.exports = s)) | |
}() | |
} | |
, function(t) { | |
function e(a, e, t) { | |
return e in a ? Object.defineProperty(a, e, { | |
value: t, | |
enumerable: !0, | |
configurable: !0, | |
writable: !0 | |
}) : a[e] = t, | |
a | |
} | |
t.exports = e | |
} | |
, function(t) { | |
t.exports = function(n, e) { | |
if (!(n instanceof e)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
} | |
, function(t) { | |
function a(a, e) { | |
for (var t = 0, o; t < e.length; t++) | |
o = e[t], | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(a, o.key, o) | |
} | |
function e(n, e, t) { | |
return e && a(n.prototype, e), | |
t && a(n, t), | |
n | |
} | |
t.exports = e | |
} | |
, function(a, e, t) { | |
var n = t(68) | |
, o = t(32); | |
a.exports = function(a, e) { | |
return e && ("object" === n(e) || "function" == typeof e) ? e : o(a) | |
} | |
} | |
, function(a) { | |
function e(n) { | |
return a.exports = e = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { | |
return t.__proto__ || Object.getPrototypeOf(t) | |
} | |
, | |
e(n) | |
} | |
a.exports = e | |
} | |
, function(a, e, t) { | |
var n = t(201); | |
a.exports = function(a, e) { | |
if ("function" != typeof e && null !== e) | |
throw new TypeError("Super expression must either be null or a function"); | |
a.prototype = Object.create(e && e.prototype, { | |
constructor: { | |
value: a, | |
writable: !0, | |
configurable: !0 | |
} | |
}), | |
e && n(a, e) | |
} | |
} | |
, function(t) { | |
"use strict"; | |
t.exports = function() {} | |
} | |
, function(a, e, t) { | |
"use strict"; | |
function n() { | |
if ("undefined" != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE) | |
try { | |
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n) | |
} catch (t) { | |
console.error(t) | |
} | |
} | |
n(), | |
a.exports = t(146) | |
} | |
, function(s, e, t) { | |
"use strict"; | |
function d(o, e, t, m) { | |
var y = Object.keys(t), h, x, _, v, k, w, S, C, E; | |
for (h = 0, | |
x = y.length; h < x; ++h) | |
if (_ = y[h], | |
w = t[_], | |
e.hasOwnProperty(_) || (e[_] = w), | |
(v = e[_]) !== w && "_" !== _[0]) { | |
if (o.hasOwnProperty(_) || (o[_] = v), | |
k = o[_], | |
(S = typeof w) == typeof k) | |
if ("string" === S) { | |
if (C = n(k), | |
C.valid && (E = n(w), | |
E.valid)) { | |
e[_] = E.mix(C, m).rgbString(); | |
continue | |
} | |
} else if ("number" === S && isFinite(k) && isFinite(w)) { | |
e[_] = k + (w - k) * m; | |
continue | |
} | |
e[_] = w | |
} | |
} | |
var n = t(117) | |
, o = t(4) | |
, i = function(t) { | |
o.extend(this, t), | |
this.initialize.apply(this, arguments) | |
}; | |
o.extend(i.prototype, { | |
initialize: function() { | |
this.hidden = !1 | |
}, | |
pivot: function() { | |
var t = this; | |
return t._view || (t._view = o.clone(t._model)), | |
t._start = {}, | |
t | |
}, | |
transition: function(a) { | |
var e = this | |
, t = e._model | |
, n = e._start | |
, s = e._view; | |
return t && 1 !== a ? (s || (s = e._view = {}), | |
n || (n = e._start = {}), | |
d(n, s, t, a), | |
e) : (e._view = t, | |
e._start = null, | |
e) | |
}, | |
tooltipPosition: function() { | |
return { | |
x: this._model.x, | |
y: this._model.y | |
} | |
}, | |
hasValue: function() { | |
return o.isNumber(this._model.x) && o.isNumber(this._model.y) | |
} | |
}), | |
i.extend = o.inherits, | |
s.exports = i | |
} | |
, function(a, e, t) { | |
var n = t(127) | |
, s = "object" == typeof self && self && self.Object === Object && self | |
, o = n || s || Function("return this")(); | |
a.exports = o | |
} | |
, function(t) { | |
var e = Array.isArray; | |
t.exports = e | |
} | |
, function(t) { | |
var a = function() { | |
return this | |
}(); | |
try { | |
a = a || Function("return this")() || (0, | |
eval)("this") | |
} catch (t) { | |
"object" == typeof window && (a = window) | |
} | |
t.exports = a | |
} | |
, function(a, e, t) { | |
"use strict"; | |
function d(a, e) { | |
return Object.keys(e).every(function(t) { | |
return a.hasOwnProperty(t) && a[t] === e[t] | |
}) | |
} | |
function o(a, e) { | |
for (var t = (0, | |
i.default)(e), n = 0; n < a.length; n += 1) { | |
if ("function" === t && !0 == !!e(a[n], n, a)) | |
return n; | |
if ("object" === t && d(a[n], e)) | |
return n; | |
if (-1 !== ["string", "number", "boolean"].indexOf(t)) | |
return a.indexOf(e) | |
} | |
return -1 | |
} | |
var n = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
e.capitalize = function(t) { | |
return t.charAt(0).toUpperCase() + t.slice(1) | |
} | |
, | |
e.contains = d, | |
e.findIndex = o, | |
e.find = function(a, e) { | |
var t = o(a, e); | |
return -1 < t ? a[t] : void 0 | |
} | |
, | |
e.createChainedFunction = function() { | |
for (var a = arguments.length, e = Array(a), t = 0; t < a; t++) | |
e[t] = arguments[t]; | |
return e.reduce(function(a, e) { | |
return null == e ? a : function() { | |
for (var t = arguments.length, n = Array(t), i = 0; i < t; i++) | |
n[i] = arguments[i]; | |
a.apply(this, n), | |
e.apply(this, n) | |
} | |
}, function() {}) | |
} | |
; | |
var i = n(t(68)); | |
n(t(15)) | |
} | |
, function(n, e) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
e.default = void 0; | |
e.default = function(t) { | |
return t && t.ownerDocument || document | |
} | |
} | |
, function(p, e, t) { | |
"use strict"; | |
function f(n, e) { | |
if (!(n instanceof e)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
function h(n, e) { | |
if (!n) | |
throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
return e && ("object" == typeof e || "function" == typeof e) ? e : n | |
} | |
function n(n, e) { | |
if ("function" != typeof e && null !== e) | |
throw new TypeError("Super expression must either be null or a function, not " + typeof e); | |
n.prototype = Object.create(e && e.prototype, { | |
constructor: { | |
value: n, | |
enumerable: !1, | |
writable: !0, | |
configurable: !0 | |
} | |
}), | |
e && (Object.setPrototypeOf ? Object.setPrototypeOf(n, e) : n.__proto__ = e) | |
} | |
var o = t(1) | |
, a = t.n(o) | |
, i = t(76) | |
, s = t(292) | |
, l = function() { | |
function a(a, e) { | |
for (var t = 0, o; t < e.length; t++) | |
o = e[t], | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(a, o.key, o) | |
} | |
return function(e, t, n) { | |
return t && a(e.prototype, t), | |
n && a(e, n), | |
e | |
} | |
}() | |
, u = function(o) { | |
function d(t) { | |
f(this, d); | |
var e = h(this, (d.__proto__ || Object.getPrototypeOf(d)).call(this, t)); | |
e.show = function() { | |
!e.state.isTransition && e.state.isHidden && (e.setState({ | |
isHidden: !1, | |
isTransition: !0 | |
}), | |
setTimeout(function() { | |
return e.setState({ | |
isTransition: !1 | |
}) | |
}, 300), | |
i.a.show()) | |
} | |
, | |
e.hide = function() { | |
e.state.isTransition || e.state.isHidden || (e.setState({ | |
isHidden: !0, | |
isTransition: !0 | |
}), | |
setTimeout(function() { | |
return e.setState({ | |
isTransition: !1 | |
}) | |
}, 300), | |
1 > e.state.scale && i.a.hide()) | |
} | |
, | |
e.onItemClick = e.onItemClick.bind(e), | |
e.show = e.show.bind(e), | |
e.hide = e.hide.bind(e), | |
e.updateWindowDimensions = e.updateWindowDimensions.bind(e); | |
var n = window.innerWidth / 1e3; | |
return e.state = { | |
isHidden: t.isHidden, | |
scale: 1 < n ? 1 : n, | |
isTransition: !1 | |
}, | |
d.current = e, | |
e | |
} | |
return n(d, o), | |
l(d, [{ | |
key: "componentDidMount", | |
value: function() { | |
this.updateWindowDimensions(), | |
window.addEventListener("resize", this.updateWindowDimensions) | |
} | |
}, { | |
key: "componentWillUnmount", | |
value: function() { | |
window.removeEventListener("resize", this.updateWindowDimensions) | |
} | |
}, { | |
key: "updateWindowDimensions", | |
value: function() { | |
var t = window.innerWidth / 1e3; | |
this.setState({ | |
scale: 1 < t ? 1 : t | |
}) | |
} | |
}, { | |
key: "onItemClick", | |
value: function(t) { | |
d.selection !== t && (d.selection = t, | |
this.refs.row1.setState({ | |
selection: t | |
}), | |
this.refs.row2.setState({ | |
selection: t | |
}), | |
document.ESU && document.ESU.palette && (document.ESU.palette.currentColorId = t)) | |
} | |
}, { | |
key: "render", | |
value: function() { | |
var t = 1e3 > window.innerWidth ? window.innerWidth / 1e3 : 1; | |
var e = a.a.createElement("div", { | |
id: "palette", | |
className: "trBg", | |
style: { | |
transformOrigin: "50% 100%", | |
transform: "translate(-50%, -100%) scale(" + t + ")" | |
} | |
}, a.a.createElement(s.a, { | |
isActive: !0, | |
colorSampleIds: d.getSingleRow() ? [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16] : [1, 2, 3, 4, 5, 6, 7, 8], | |
selection: d.selection, | |
onItemClick: this.onItemClick, | |
ref: "row1" | |
}), a.a.createElement(s.a, { | |
isActive: !d.getSingleRow(), | |
colorSampleIds: [9, 10, 11, 12, 13, 14, 15, 16], | |
selection: d.selection, | |
onItemClick: this.onItemClick, | |
ref: "row2" | |
})); | |
return a.a.createElement("div", { | |
style: { | |
display: !this.state.isTransition && this.state.isHidden ? "none" : "block" | |
}, | |
className: this.state.isHidden ? "fadeOut" : "fadeIn" | |
}, e) | |
} | |
}]), | |
d | |
}(a.a.Component); | |
u.selection = 1, | |
u.size = .8, | |
u.singleRow = !1, | |
u.current = void 0, | |
u.setSize = function(t) { | |
u.size = t, | |
u.current.refs.row1.setState({ | |
size: t | |
}), | |
u.current.refs.row2.setState({ | |
size: t | |
}) | |
} | |
, | |
u.getSize = function() { | |
return u.size | |
} | |
, | |
u.setSingleRow = function(t) { | |
u.singleRow = t, | |
t ? (u.current.refs.row1.setState({ | |
colorSampleIds: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16] | |
}), | |
u.current.refs.row2.setState({ | |
isActive: !1 | |
})) : (u.current.refs.row1.setState({ | |
colorSampleIds: [1, 2, 3, 4, 5, 6, 7, 8] | |
}), | |
u.current.refs.row2.setState({ | |
isActive: !0 | |
})) | |
} | |
, | |
u.getSingleRow = function() { | |
return u.singleRow | |
} | |
, | |
u.show = function() { | |
u.current.show() | |
} | |
, | |
u.hide = function() { | |
u.current.hide() | |
} | |
, | |
e.a = u | |
} | |
, function(a, e, t) { | |
"use strict"; | |
var n = t(6) | |
, s = t(4) | |
, o = t(35); | |
a.exports = { | |
constructors: {}, | |
defaults: {}, | |
registerScaleType: function(a, e, t) { | |
this.constructors[a] = e, | |
this.defaults[a] = s.clone(t) | |
}, | |
getScaleConstructor: function(t) { | |
return this.constructors.hasOwnProperty(t) ? this.constructors[t] : void 0 | |
}, | |
getScaleDefaults: function(t) { | |
return this.defaults.hasOwnProperty(t) ? s.merge({}, [n.scale, this.defaults[t]]) : {} | |
}, | |
updateScaleDefaults: function(a, e) { | |
var t = this; | |
t.defaults.hasOwnProperty(a) && (t.defaults[a] = s.extend(t.defaults[a], e)) | |
}, | |
addScalesToLayout: function(n) { | |
s.each(n.scales, function(e) { | |
e.fullWidth = e.options.fullWidth, | |
e.position = e.options.position, | |
e.weight = e.options.weight, | |
o.addBox(n, e) | |
}) | |
} | |
} | |
} | |
, function(a, e, t) { | |
"use strict"; | |
a.exports = {}, | |
a.exports.Arc = t(311), | |
a.exports.Line = t(312), | |
a.exports.Point = t(313), | |
a.exports.Rectangle = t(314) | |
} | |
, function(a, e, t) { | |
var s = t(356) | |
, o = t(361); | |
a.exports = function(a, e) { | |
var t = o(a, e); | |
return s(t) ? t : void 0 | |
} | |
} | |
, function(t) { | |
"use strict"; | |
t.exports = function() {} | |
} | |
, function(m, e, t) { | |
"use strict"; | |
function n(t) { | |
return t && t.__esModule ? t : { | |
default: t | |
} | |
} | |
function y(n, e) { | |
if (!(n instanceof e)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}); | |
var o = Object.assign || function(a) { | |
for (var e = 1, o; e < arguments.length; e++) | |
for (var i in o = arguments[e], | |
o) | |
Object.prototype.hasOwnProperty.call(o, i) && (a[i] = o[i]); | |
return a | |
} | |
, i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { | |
return typeof t | |
} | |
: function(t) { | |
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t | |
} | |
, a = function() { | |
function a(a, e) { | |
for (var t = 0, o; t < e.length; t++) | |
o = e[t], | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(a, o.key, o) | |
} | |
return function(e, t, n) { | |
return t && a(e.prototype, t), | |
n && a(e, n), | |
e | |
} | |
}() | |
, l = t(27) | |
, s = n(l) | |
, u = t(65) | |
, c = n(u) | |
, d = t(43) | |
, f = n(d) | |
, p = function() { | |
function d(e, t, n) { | |
y(this, d), | |
this.type = "style", | |
this.isProcessed = !1; | |
var o = n.sheet | |
, i = n.Renderer | |
, a = n.selector; | |
this.key = e, | |
this.options = n, | |
this.style = t, | |
a && (this.selectorText = a), | |
this.renderer = o ? o.renderer : new i | |
} | |
return a(d, [{ | |
key: "prop", | |
value: function(a, e) { | |
if (void 0 === e) | |
return this.style[a]; | |
if (this.style[a] === e) | |
return this; | |
e = this.options.jss.plugins.onChangeValue(e, a, this); | |
var d = null == e || !1 === e | |
, n = a in this.style; | |
if (d && !n) | |
return this; | |
var l = d && n; | |
if (l ? delete this.style[a] : this.style[a] = e, | |
this.renderable) | |
return l ? this.renderer.removeProperty(this.renderable, a) : this.renderer.setProperty(this.renderable, a, e), | |
this; | |
var o = this.options.sheet; | |
return o && o.attached && (0, | |
s.default)(!1, "Rule is not linked. Missing sheet option \"link: true\"."), | |
this | |
} | |
}, { | |
key: "applyTo", | |
value: function(a) { | |
var e = this.toJSON(); | |
for (var t in e) | |
this.renderer.setProperty(a, t, e[t]); | |
return this | |
} | |
}, { | |
key: "toJSON", | |
value: function() { | |
var a = {}; | |
for (var e in this.style) { | |
var t = this.style[e]; | |
"object" === ("undefined" == typeof t ? "undefined" : i(t)) ? Array.isArray(t) && (a[e] = (0, | |
f.default)(t)) : a[e] = t | |
} | |
return a | |
} | |
}, { | |
key: "toString", | |
value: function(a) { | |
var e = this.options.sheet | |
, t = !!e && e.options.link | |
, n = t ? o({}, a, { | |
allowEmpty: !0 | |
}) : a; | |
return (0, | |
c.default)(this.selector, this.style, n) | |
} | |
}, { | |
key: "selector", | |
set: function(n) { | |
if (n !== this.selectorText && (this.selectorText = n, | |
this.renderable) && !this.renderer.setSelector(this.renderable, n) && this.renderable) { | |
var e = this.renderer.replaceRule(this.renderable, this); | |
e && (this.renderable = e) | |
} | |
}, | |
get: function() { | |
return this.selectorText | |
} | |
}]), | |
d | |
}(); | |
e.default = p | |
} | |
, function(a, e, t) { | |
"use strict"; | |
var n = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
Object.defineProperty(e, "default", { | |
enumerable: !0, | |
get: function() { | |
return i.default | |
} | |
}); | |
var i = n(t(213)) | |
} | |
, function(t) { | |
t.exports = function(t) { | |
return t && t.__esModule ? t : { | |
default: t | |
} | |
} | |
} | |
, function(y, e, t) { | |
"use strict"; | |
function n(t) { | |
return t && t.__esModule ? t : { | |
default: t | |
} | |
} | |
function x(n, e) { | |
if (!(n instanceof e)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}); | |
var _ = Object.assign || function(a) { | |
for (var e = 1, o; e < arguments.length; e++) | |
for (var i in o = arguments[e], | |
o) | |
Object.prototype.hasOwnProperty.call(o, i) && (a[i] = o[i]); | |
return a | |
} | |
, o = function() { | |
function a(a, e) { | |
for (var t = 0, o; t < e.length; t++) | |
o = e[t], | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(a, o.key, o) | |
} | |
return function(e, t, n) { | |
return t && a(e.prototype, t), | |
n && a(e, n), | |
e | |
} | |
}() | |
, a = t(44) | |
, i = n(a) | |
, s = t(91) | |
, l = n(s) | |
, u = t(28) | |
, v = n(u) | |
, d = t(174) | |
, f = n(d) | |
, p = function() { | |
function a(e) { | |
var s = this; | |
x(this, a), | |
this.map = {}, | |
this.raw = {}, | |
this.index = [], | |
this.update = function(n, e) { | |
var t = s.options | |
, d = t.jss.plugins | |
, o = t.sheet; | |
if ("string" == typeof n) | |
d.onUpdate(e, s.get(n), o); | |
else | |
for (var i = 0; i < s.index.length; i++) | |
d.onUpdate(n, s.index[i], o) | |
} | |
, | |
this.options = e, | |
this.classes = e.classes | |
} | |
return o(a, [{ | |
key: "add", | |
value: function(s, e, t) { | |
var h = this.options | |
, y = h.parent | |
, o = h.sheet | |
, a = h.jss | |
, l = h.Renderer | |
, u = h.generateClassName; | |
t = _({ | |
classes: this.classes, | |
parent: y, | |
sheet: o, | |
jss: a, | |
Renderer: l, | |
generateClassName: u | |
}, t), | |
!t.selector && this.classes[s] && (t.selector = "." + (0, | |
f.default)(this.classes[s])), | |
this.raw[s] = e; | |
var c = (0, | |
i.default)(s, e, t), d; | |
!t.selector && c instanceof v.default && (d = u(c, o), | |
c.selector = "." + (0, | |
f.default)(d)), | |
this.register(c, d); | |
var x = void 0 === t.index ? this.index.length : t.index; | |
return this.index.splice(x, 0, c), | |
c | |
} | |
}, { | |
key: "get", | |
value: function(t) { | |
return this.map[t] | |
} | |
}, { | |
key: "remove", | |
value: function(t) { | |
this.unregister(t), | |
this.index.splice(this.indexOf(t), 1) | |
} | |
}, { | |
key: "indexOf", | |
value: function(t) { | |
return this.index.indexOf(t) | |
} | |
}, { | |
key: "process", | |
value: function() { | |
var t = this.options.jss.plugins; | |
this.index.slice(0).forEach(t.onProcessRule, t) | |
} | |
}, { | |
key: "register", | |
value: function(n, e) { | |
this.map[n.key] = n, | |
n instanceof v.default && (this.map[n.selector] = n, | |
e && (this.classes[n.key] = e)) | |
} | |
}, { | |
key: "unregister", | |
value: function(t) { | |
delete this.map[t.key], | |
t instanceof v.default && (delete this.map[t.selector], | |
delete this.classes[t.key]) | |
} | |
}, { | |
key: "link", | |
value: function(a) { | |
for (var e = this.options.sheet.renderer.getUnescapedKeysMap(this.index), t = 0; t < a.length; t++) { | |
var s = a[t] | |
, d = this.options.sheet.renderer.getKey(s); | |
e[d] && (d = e[d]); | |
var u = this.map[d]; | |
u && (0, | |
l.default)(u, s) | |
} | |
} | |
}, { | |
key: "toString", | |
value: function(s) { | |
for (var e = "", d = this.options.sheet, n = !!d && d.options.link, l = 0; l < this.index.length; l++) { | |
var u = this.index[l] | |
, i = u.toString(s); | |
(i || n) && (e && (e += "\n"), | |
e += i) | |
} | |
return e | |
} | |
}]), | |
a | |
}(); | |
e.default = p | |
} | |
, function(t) { | |
t.exports = function(t) { | |
if (void 0 === t) | |
throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
return t | |
} | |
} | |
, function(s, e) { | |
function d(a) { | |
if (a && "object" == typeof a) { | |
var o = a.which || a.keyCode || a.charCode; | |
o && (a = o) | |
} | |
if ("number" == typeof a) | |
return c[a]; | |
var t = a + "" | |
, n = u[t.toLowerCase()]; | |
if (n) | |
return n; | |
var n = p[t.toLowerCase()]; | |
return n || (1 === t.length ? t.charCodeAt(0) : void 0) | |
} | |
d.isEventKey = function(a, e) { | |
if (a && "object" == typeof a) { | |
var t = a.which || a.keyCode || a.charCode; | |
if (null === t || void 0 === t) | |
return !1; | |
if ("string" == typeof e) { | |
var n = u[e.toLowerCase()]; | |
if (n) | |
return n === t; | |
var n = p[e.toLowerCase()]; | |
if (n) | |
return n === t | |
} else if ("number" == typeof e) | |
return e === t; | |
return !1 | |
} | |
} | |
, | |
e = s.exports = d; | |
var u = e.code = e.codes = { | |
backspace: 8, | |
tab: 9, | |
enter: 13, | |
shift: 16, | |
ctrl: 17, | |
alt: 18, | |
"pause/break": 19, | |
"caps lock": 20, | |
esc: 27, | |
space: 32, | |
"page up": 33, | |
"page down": 34, | |
end: 35, | |
home: 36, | |
left: 37, | |
up: 38, | |
right: 39, | |
down: 40, | |
insert: 45, | |
delete: 46, | |
command: 91, | |
"left command": 91, | |
"right command": 93, | |
"numpad *": 106, | |
"numpad +": 107, | |
"numpad -": 109, | |
"numpad .": 110, | |
"numpad /": 111, | |
"num lock": 144, | |
"scroll lock": 145, | |
"my computer": 182, | |
"my calculator": 183, | |
";": 186, | |
"=": 187, | |
",": 188, | |
"-": 189, | |
".": 190, | |
"/": 191, | |
"`": 192, | |
"[": 219, | |
"\\": 220, | |
"]": 221, | |
"'": 222 | |
} | |
, p = e.aliases = { | |
windows: 91, | |
"⇧": 16, | |
"⌥": 18, | |
"⌃": 17, | |
"⌘": 91, | |
ctl: 17, | |
control: 17, | |
option: 18, | |
pause: 19, | |
break: 19, | |
caps: 20, | |
return: 13, | |
escape: 27, | |
spc: 32, | |
spacebar: 32, | |
pgup: 33, | |
pgdn: 34, | |
ins: 45, | |
del: 46, | |
cmd: 91 | |
}; | |
for (n = 97; 123 > n; n++) | |
u[o(n)] = n - 32; | |
for (var n = 48; 58 > n; n++) | |
u[n - 48] = n; | |
for (n = 1; 13 > n; n++) | |
u["f" + n] = n + 111; | |
for (n = 0; 10 > n; n++) | |
u["numpad " + n] = n + 96; | |
var c = e.names = e.title = {}; | |
for (n in u) | |
c[u[n]] = n; | |
for (var a in p) | |
u[a] = p[a] | |
} | |
, function(a, e, t) { | |
"use strict"; | |
var n = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
Object.defineProperty(e, "default", { | |
enumerable: !0, | |
get: function() { | |
return i.default | |
} | |
}); | |
var i = n(t(235)) | |
} | |
, function(a, e, t) { | |
"use strict"; | |
function _(n, a) { | |
return o.where(n, function(t) { | |
return t.position === a | |
}) | |
} | |
function S(n, a) { | |
n.forEach(function(n, e) { | |
return n._tmpIndex_ = e, | |
n | |
}), | |
n.sort(function(t, e) { | |
var n = a ? e : t | |
, i = a ? t : e; | |
return n.weight === i.weight ? n._tmpIndex_ - i._tmpIndex_ : n.weight - i.weight | |
}), | |
n.forEach(function(t) { | |
delete t._tmpIndex_ | |
}) | |
} | |
var o = t(4); | |
a.exports = { | |
defaults: {}, | |
addBox: function(n, e) { | |
n.boxes || (n.boxes = []), | |
e.fullWidth = e.fullWidth || !1, | |
e.position = e.position || "top", | |
e.weight = e.weight || 0, | |
n.boxes.push(e) | |
}, | |
removeBox: function(a, e) { | |
var t = a.boxes ? a.boxes.indexOf(e) : -1; | |
-1 !== t && a.boxes.splice(t, 1) | |
}, | |
configure: function(s, e, t) { | |
for (var n = ["fullWidth", "position", "weight"], o = n.length, i = 0, d; i < o; ++i) | |
d = n[i], | |
t.hasOwnProperty(d) && (e[d] = t[d]) | |
}, | |
update: function(i, Y, e) { | |
function t(a) { | |
var e = a.isHorizontal(), n; | |
e ? (n = a.update(a.fullWidth ? x : T, C), | |
q -= n.height) : (n = a.update(k, q), | |
T -= n.width), | |
X.push({ | |
horizontal: e, | |
minSize: n, | |
box: a | |
}) | |
} | |
function n(a) { | |
var e = o.findNextWhere(X, function(e) { | |
return e.box === a | |
}); | |
if (e) | |
if (a.isHorizontal()) { | |
var t = { | |
left: B($, P), | |
right: B(Q, G), | |
top: 0, | |
bottom: 0 | |
}; | |
a.update(a.fullWidth ? x : T, w / 2, t) | |
} else | |
a.update(e.minSize.width, q) | |
} | |
function a(a) { | |
var e = o.findNextWhere(X, function(e) { | |
return e.box === a | |
}) | |
, t = { | |
left: 0, | |
right: 0, | |
top: J, | |
bottom: ee | |
}; | |
e && a.update(e.minSize.width, q, t) | |
} | |
function s(t) { | |
t.isHorizontal() ? (t.left = t.fullWidth ? d : $, | |
t.right = t.fullWidth ? Y - c : $ + T, | |
t.top = ne, | |
t.bottom = ne + t.height, | |
ne = t.bottom) : (t.left = U, | |
t.right = U + t.width, | |
t.top = J, | |
t.bottom = J + q, | |
U = t.right) | |
} | |
if (i) { | |
var l = i.options.layout || {} | |
, u = o.options.toPadding(l.padding) | |
, d = u.left | |
, c = u.right | |
, p = u.top | |
, f = u.bottom | |
, h = _(i.boxes, "left") | |
, m = _(i.boxes, "right") | |
, y = _(i.boxes, "top") | |
, v = _(i.boxes, "bottom") | |
, V = _(i.boxes, "chartArea"); | |
S(h, !0), | |
S(m, !1), | |
S(y, !0), | |
S(v, !1); | |
var x = Y - d - c | |
, w = e - p - f | |
, k = (Y - x / 2) / (h.length + m.length) | |
, C = (e - w / 2) / (y.length + v.length) | |
, T = x | |
, q = w | |
, X = []; | |
o.each(h.concat(m, y, v), t); | |
var P = 0 | |
, G = 0 | |
, Z = 0 | |
, K = 0; | |
o.each(y.concat(v), function(n) { | |
if (n.getPadding) { | |
var e = n.getPadding(); | |
P = B(P, e.left), | |
G = B(G, e.right) | |
} | |
}), | |
o.each(h.concat(m), function(n) { | |
if (n.getPadding) { | |
var e = n.getPadding(); | |
Z = B(Z, e.top), | |
K = B(K, e.bottom) | |
} | |
}); | |
var $ = d | |
, Q = c | |
, J = p | |
, ee = f; | |
o.each(h.concat(m), n), | |
o.each(h, function(t) { | |
$ += t.width | |
}), | |
o.each(m, function(t) { | |
Q += t.width | |
}), | |
o.each(y.concat(v), n), | |
o.each(y, function(t) { | |
J += t.height | |
}), | |
o.each(v, function(t) { | |
ee += t.height | |
}), | |
o.each(h.concat(m), a), | |
$ = d, | |
Q = c, | |
J = p, | |
ee = f, | |
o.each(h, function(t) { | |
$ += t.width | |
}), | |
o.each(m, function(t) { | |
Q += t.width | |
}), | |
o.each(y, function(t) { | |
J += t.height | |
}), | |
o.each(v, function(t) { | |
ee += t.height | |
}); | |
var te = B(P - $, 0); | |
$ += te, | |
Q += B(G - Q, 0); | |
var L = B(Z - J, 0); | |
J += L, | |
ee += B(K - ee, 0); | |
var W = e - J - ee | |
, z = Y - $ - Q; | |
z === T && W === q || (o.each(h, function(t) { | |
t.height = W | |
}), | |
o.each(m, function(t) { | |
t.height = W | |
}), | |
o.each(y, function(t) { | |
t.fullWidth || (t.width = z) | |
}), | |
o.each(v, function(t) { | |
t.fullWidth || (t.width = z) | |
}), | |
q = W, | |
T = z); | |
var U = d + te | |
, ne = p + L; | |
o.each(h.concat(y), s), | |
U += T, | |
ne += q, | |
o.each(m, s), | |
o.each(v, s), | |
i.chartArea = { | |
left: $, | |
top: J, | |
right: $ + T, | |
bottom: J + q | |
}, | |
o.each(V, function(e) { | |
e.left = i.chartArea.left, | |
e.top = i.chartArea.top, | |
e.right = i.chartArea.right, | |
e.bottom = i.chartArea.bottom, | |
e.update(T, q) | |
}) | |
} | |
} | |
} | |
} | |
, function(p, e, t) { | |
"use strict"; | |
function M(a) { | |
var e = [], o, i; | |
for (o = 0, | |
i = a.length; o < i; ++o) | |
e.push(a[o].label); | |
return e | |
} | |
function m(a, e, t) { | |
var n = a.getPixelForTick(e); | |
return t && (n -= 0 === e ? (a.getPixelForTick(1) - n) / 2 : (n - a.getPixelForTick(e - 1)) / 2), | |
n | |
} | |
function f(a, e, t) { | |
return Y.isArray(e) ? Y.longestText(a, t, e) : a.measureText(e).width | |
} | |
function H(a) { | |
var e = Y.valueOrDefault | |
, t = l.global | |
, n = e(a.fontSize, t.defaultFontSize) | |
, s = e(a.fontStyle, t.defaultFontStyle) | |
, o = e(a.fontFamily, t.defaultFontFamily); | |
return { | |
size: n, | |
style: s, | |
family: o, | |
font: Y.fontString(n, s, o) | |
} | |
} | |
function a(t) { | |
return Y.options.toLineHeight(Y.valueOrDefault(t.lineHeight, 1.2), Y.valueOrDefault(t.fontSize, l.global.defaultFontSize)) | |
} | |
var l = t(6) | |
, n = t(17) | |
, Y = t(4) | |
, o = t(37); | |
l._set("scale", { | |
display: !0, | |
position: "left", | |
offset: !1, | |
gridLines: { | |
display: !0, | |
color: "rgba(0, 0, 0, 0.1)", | |
lineWidth: 1, | |
drawBorder: !0, | |
drawOnChartArea: !0, | |
drawTicks: !0, | |
tickMarkLength: 10, | |
zeroLineWidth: 1, | |
zeroLineColor: "rgba(0,0,0,0.25)", | |
zeroLineBorderDash: [], | |
zeroLineBorderDashOffset: 0, | |
offsetGridLines: !1, | |
borderDash: [], | |
borderDashOffset: 0 | |
}, | |
scaleLabel: { | |
display: !1, | |
labelString: "", | |
lineHeight: 1.2, | |
padding: { | |
top: 4, | |
bottom: 4 | |
} | |
}, | |
ticks: { | |
beginAtZero: !1, | |
minRotation: 0, | |
maxRotation: 50, | |
mirror: !1, | |
padding: 0, | |
reverse: !1, | |
display: !0, | |
autoSkip: !0, | |
autoSkipPadding: 0, | |
labelOffset: 0, | |
callback: o.formatters.values, | |
minor: {}, | |
major: {} | |
} | |
}), | |
p.exports = n.extend({ | |
getPadding: function() { | |
var t = this; | |
return { | |
left: t.paddingLeft || 0, | |
top: t.paddingTop || 0, | |
right: t.paddingRight || 0, | |
bottom: t.paddingBottom || 0 | |
} | |
}, | |
getTicks: function() { | |
return this._ticks | |
}, | |
mergeTicksOptions: function() { | |
var n = this.options.ticks; | |
for (var e in !1 === n.minor && (n.minor = { | |
display: !1 | |
}), | |
!1 === n.major && (n.major = { | |
display: !1 | |
}), | |
n) | |
"major" != e && "minor" != e && ("undefined" == typeof n.minor[e] && (n.minor[e] = n[e]), | |
"undefined" == typeof n.major[e] && (n.major[e] = n[e])) | |
}, | |
beforeUpdate: function() { | |
Y.callback(this.options.beforeUpdate, [this]) | |
}, | |
update: function(d, e, t) { | |
var n = this, u, p, c, f, h, m; | |
for (n.beforeUpdate(), | |
n.maxWidth = d, | |
n.maxHeight = e, | |
n.margins = Y.extend({ | |
left: 0, | |
right: 0, | |
top: 0, | |
bottom: 0 | |
}, t), | |
n.longestTextCache = n.longestTextCache || {}, | |
n.beforeSetDimensions(), | |
n.setDimensions(), | |
n.afterSetDimensions(), | |
n.beforeDataLimits(), | |
n.determineDataLimits(), | |
n.afterDataLimits(), | |
n.beforeBuildTicks(), | |
h = n.buildTicks() || [], | |
n.afterBuildTicks(), | |
n.beforeTickToLabelConversion(), | |
c = n.convertTicksToLabels(h) || n.ticks, | |
n.afterTickToLabelConversion(), | |
n.ticks = c, | |
u = 0, | |
p = c.length; u < p; ++u) | |
f = c[u], | |
m = h[u], | |
m ? m.label = f : h.push(m = { | |
label: f, | |
major: !1 | |
}); | |
return n._ticks = h, | |
n.beforeCalculateTickRotation(), | |
n.calculateTickRotation(), | |
n.afterCalculateTickRotation(), | |
n.beforeFit(), | |
n.fit(), | |
n.afterFit(), | |
n.afterUpdate(), | |
n.minSize | |
}, | |
afterUpdate: function() { | |
Y.callback(this.options.afterUpdate, [this]) | |
}, | |
beforeSetDimensions: function() { | |
Y.callback(this.options.beforeSetDimensions, [this]) | |
}, | |
setDimensions: function() { | |
var t = this; | |
t.isHorizontal() ? (t.width = t.maxWidth, | |
t.left = 0, | |
t.right = t.width) : (t.height = t.maxHeight, | |
t.top = 0, | |
t.bottom = t.height), | |
t.paddingLeft = 0, | |
t.paddingTop = 0, | |
t.paddingRight = 0, | |
t.paddingBottom = 0 | |
}, | |
afterSetDimensions: function() { | |
Y.callback(this.options.afterSetDimensions, [this]) | |
}, | |
beforeDataLimits: function() { | |
Y.callback(this.options.beforeDataLimits, [this]) | |
}, | |
determineDataLimits: Y.noop, | |
afterDataLimits: function() { | |
Y.callback(this.options.afterDataLimits, [this]) | |
}, | |
beforeBuildTicks: function() { | |
Y.callback(this.options.beforeBuildTicks, [this]) | |
}, | |
buildTicks: Y.noop, | |
afterBuildTicks: function() { | |
Y.callback(this.options.afterBuildTicks, [this]) | |
}, | |
beforeTickToLabelConversion: function() { | |
Y.callback(this.options.beforeTickToLabelConversion, [this]) | |
}, | |
convertTicksToLabels: function() { | |
var n = this | |
, e = n.options.ticks; | |
n.ticks = n.ticks.map(e.userCallback || e.callback, this) | |
}, | |
afterTickToLabelConversion: function() { | |
Y.callback(this.options.afterTickToLabelConversion, [this]) | |
}, | |
beforeCalculateTickRotation: function() { | |
Y.callback(this.options.beforeCalculateTickRotation, [this]) | |
}, | |
calculateTickRotation: function() { | |
var a = this | |
, e = a.ctx | |
, t = a.options.ticks | |
, n = M(a._ticks) | |
, o = H(t); | |
e.font = o.font; | |
var i = t.minRotation || 0; | |
if (n.length && a.options.display && a.isHorizontal()) | |
for (var c = Y.longestText(e, o.font, n, a.longestTextCache), u = c, h = a.getPixelForTick(1) - a.getPixelForTick(0) - 6, f, m; u > h && i < t.maxRotation; ) { | |
if (m = Y.toRadians(i), | |
f = D(m), | |
P(m) * c > a.maxHeight) { | |
i--; | |
break | |
} | |
i++, | |
u = f * c | |
} | |
a.labelRotation = i | |
}, | |
afterCalculateTickRotation: function() { | |
Y.callback(this.options.afterCalculateTickRotation, [this]) | |
}, | |
beforeFit: function() { | |
Y.callback(this.options.beforeFit, [this]) | |
}, | |
fit: function() { | |
var i = this | |
, e = i.minSize = { | |
width: 0, | |
height: 0 | |
} | |
, t = M(i._ticks) | |
, n = i.options | |
, o = n.ticks | |
, s = n.scaleLabel | |
, l = n.gridLines | |
, d = n.display | |
, u = i.isHorizontal() | |
, p = H(o) | |
, c = n.gridLines.tickMarkLength; | |
if (e.width = u ? i.isFullWidth() ? i.maxWidth - i.margins.left - i.margins.right : i.maxWidth : d && l.drawTicks ? c : 0, | |
e.height = u ? d && l.drawTicks ? c : 0 : i.maxHeight, | |
s.display && d) { | |
var h = a(s) | |
, m = Y.options.toPadding(s.padding) | |
, y = h + m.height; | |
u ? e.height += y : e.width += y | |
} | |
if (o.display && d) { | |
var v = Y.longestText(i.ctx, p.font, t, i.longestTextCache) | |
, I = Y.numberOfLabelLines(t) | |
, x = .5 * p.size | |
, w = i.options.ticks.padding; | |
if (u) { | |
i.longestLabelWidth = v; | |
var k = Y.toRadians(i.labelRotation) | |
, _ = D(k) | |
, S = P(k) | |
, C = S * v + p.size * I + x * (I - 1) + x; | |
e.height = R(i.maxHeight, e.height + C + w), | |
i.ctx.font = p.font; | |
var T = f(i.ctx, t[0], p.font) | |
, E = f(i.ctx, t[t.length - 1], p.font); | |
0 === i.labelRotation ? (i.paddingLeft = T / 2 + 3, | |
i.paddingRight = E / 2 + 3) : (i.paddingLeft = "bottom" === n.position ? _ * T + 3 : _ * x + 3, | |
i.paddingRight = "bottom" === n.position ? _ * x + 3 : _ * E + 3) | |
} else | |
o.mirror ? v = 0 : v += w + x, | |
e.width = R(i.maxWidth, e.width + v), | |
i.paddingTop = p.size / 2, | |
i.paddingBottom = p.size / 2 | |
} | |
i.handleMargins(), | |
i.width = e.width, | |
i.height = e.height | |
}, | |
handleMargins: function() { | |
var t = this; | |
t.margins && (t.paddingLeft = B(t.paddingLeft - t.margins.left, 0), | |
t.paddingTop = B(t.paddingTop - t.margins.top, 0), | |
t.paddingRight = B(t.paddingRight - t.margins.right, 0), | |
t.paddingBottom = B(t.paddingBottom - t.margins.bottom, 0)) | |
}, | |
afterFit: function() { | |
Y.callback(this.options.afterFit, [this]) | |
}, | |
isHorizontal: function() { | |
return "top" === this.options.position || "bottom" === this.options.position | |
}, | |
isFullWidth: function() { | |
return this.options.fullWidth | |
}, | |
getRightValue: function(t) { | |
if (Y.isNullOrUndef(t)) | |
return NaN; | |
if ("number" == typeof t && !isFinite(t)) | |
return NaN; | |
if (t) | |
if (this.isHorizontal()) { | |
if (void 0 !== t.x) | |
return this.getRightValue(t.x); | |
} else if (void 0 !== t.y) | |
return this.getRightValue(t.y); | |
return t | |
}, | |
getLabelForIndex: Y.noop, | |
getPixelForValue: Y.noop, | |
getValueForPixel: Y.noop, | |
getPixelForTick: function(s) { | |
var e = this | |
, t = e.options.offset; | |
if (e.isHorizontal()) { | |
var n = e.width - (e.paddingLeft + e.paddingRight) | |
, d = n / B(e._ticks.length - (t ? 0 : 1), 1) | |
, o = d * s + e.paddingLeft; | |
t && (o += d / 2); | |
var u = e.left + T(o); | |
return u += e.isFullWidth() ? e.margins.left : 0 | |
} | |
var p = e.height - (e.paddingTop + e.paddingBottom); | |
return e.top + s * (p / (e._ticks.length - 1)) | |
}, | |
getPixelForDecimal: function(a) { | |
var e = this; | |
if (e.isHorizontal()) { | |
var t = e.width - (e.paddingLeft + e.paddingRight) | |
, n = t * a + e.paddingLeft | |
, i = e.left + T(n); | |
return i += e.isFullWidth() ? e.margins.left : 0 | |
} | |
return e.top + a * e.height | |
}, | |
getBasePixel: function() { | |
return this.getPixelForValue(this.getBaseValue()) | |
}, | |
getBaseValue: function() { | |
var a = this | |
, e = a.min | |
, t = a.max; | |
return a.beginAtZero ? 0 : 0 > e && 0 > t ? t : 0 < e && 0 < t ? e : 0 | |
}, | |
_autoSkip: function(c) { | |
var e = this, a = e.isHorizontal(), l = e.options.ticks.minor, s = c.length, u = Y.toRadians(e.labelRotation), d = D(u), f = e.longestLabelWidth * d, p = [], h, m, y, x, v; | |
for (l.maxTicksLimit && (v = l.maxTicksLimit), | |
a && (h = !1, | |
(f + l.autoSkipPadding) * s > e.width - (e.paddingLeft + e.paddingRight) && (h = 1 + _((f + l.autoSkipPadding) * s / (e.width - (e.paddingLeft + e.paddingRight)))), | |
v && s > v && (h = B(h, _(s / v)))), | |
m = 0; m < s; m++) | |
y = c[m], | |
x = 1 < h && 0 < m % h || 0 == m % h && m + h >= s, | |
x && m !== s - 1 && delete y.label, | |
p.push(y); | |
return p | |
}, | |
draw: function(o) { | |
var e = this | |
, t = e.options; | |
if (t.display) { | |
var s = e.ctx | |
, n = l.global | |
, c = t.ticks.minor | |
, i = t.ticks.major || c | |
, u = t.gridLines | |
, d = t.scaleLabel | |
, p = 0 !== e.labelRotation | |
, f = e.isHorizontal() | |
, h = c.autoSkip ? e._autoSkip(e.getTicks()) : e.getTicks() | |
, v = Y.valueOrDefault(c.fontColor, n.defaultFontColor) | |
, y = H(c) | |
, B = Y.valueOrDefault(i.fontColor, n.defaultFontColor) | |
, V = H(i) | |
, x = u.drawTicks ? u.tickMarkLength : 0 | |
, w = Y.valueOrDefault(d.fontColor, n.defaultFontColor) | |
, k = H(d) | |
, _ = Y.options.toPadding(d.padding) | |
, q = Y.toRadians(e.labelRotation) | |
, C = [] | |
, S = e.options.gridLines.lineWidth | |
, T = "right" === t.position ? e.left : e.right - S - x | |
, O = "right" === t.position ? e.left + x : e.right | |
, P = "bottom" === t.position ? e.top + S : e.bottom - x - S | |
, M = "bottom" === t.position ? e.top + S + x : e.bottom + S; | |
if (Y.each(h, function(i, v) { | |
if (!Y.isNullOrUndef(i.label)) { | |
var a = i.label, y, w, E, D; | |
v === e.zeroLineIndex && t.offset === u.offsetGridLines ? (y = u.zeroLineWidth, | |
w = u.zeroLineColor, | |
E = u.zeroLineBorderDash, | |
D = u.zeroLineBorderDashOffset) : (y = Y.valueAtIndexOrDefault(u.lineWidth, v), | |
w = Y.valueAtIndexOrDefault(u.color, v), | |
E = Y.valueOrDefault(u.borderDash, n.borderDash), | |
D = Y.valueOrDefault(u.borderDashOffset, n.borderDashOffset)); | |
var V = "middle", X = "middle", G = c.padding, L, Z, K, $, Q, J, ee, te, ne, ae; | |
if (f) { | |
var oe = x + G; | |
"bottom" === t.position ? (X = p ? "middle" : "top", | |
V = p ? "right" : "center", | |
ae = e.top + oe) : (X = p ? "middle" : "bottom", | |
V = p ? "left" : "center", | |
ae = e.bottom - oe); | |
var W = m(e, v, u.offsetGridLines && 1 < h.length); | |
W < e.left && (w = "rgba(0,0,0,0)"), | |
W += Y.aliasPixel(y), | |
ne = e.getPixelForTick(v) + c.labelOffset, | |
L = K = Q = ee = W, | |
Z = P, | |
$ = M, | |
J = o.top, | |
te = o.bottom + S | |
} else { | |
var re = "left" === t.position, B; | |
c.mirror ? (V = re ? "left" : "right", | |
B = G) : (V = re ? "right" : "left", | |
B = x + G), | |
ne = re ? e.right - B : e.left + B; | |
var ie = m(e, v, u.offsetGridLines && 1 < h.length); | |
ie < e.top && (w = "rgba(0,0,0,0)"), | |
ie += Y.aliasPixel(y), | |
ae = e.getPixelForTick(v) + c.labelOffset, | |
L = T, | |
K = O, | |
Q = o.left, | |
ee = o.right + S, | |
Z = $ = J = te = ie | |
} | |
C.push({ | |
tx1: L, | |
ty1: Z, | |
tx2: K, | |
ty2: $, | |
x1: Q, | |
y1: J, | |
x2: ee, | |
y2: te, | |
labelX: ne, | |
labelY: ae, | |
glWidth: y, | |
glColor: w, | |
glBorderDash: E, | |
glBorderDashOffset: D, | |
rotation: -1 * q, | |
label: a, | |
major: i.major, | |
textBaseline: X, | |
textAlign: V | |
}) | |
} | |
}), | |
Y.each(C, function(t) { | |
if (u.display && (s.save(), | |
s.lineWidth = t.glWidth, | |
s.strokeStyle = t.glColor, | |
s.setLineDash && (s.setLineDash(t.glBorderDash), | |
s.lineDashOffset = t.glBorderDashOffset), | |
s.beginPath(), | |
u.drawTicks && (s.moveTo(t.tx1, t.ty1), | |
s.lineTo(t.tx2, t.ty2)), | |
u.drawOnChartArea && (s.moveTo(t.x1, t.y1), | |
s.lineTo(t.x2, t.y2)), | |
s.stroke(), | |
s.restore()), | |
c.display) { | |
s.save(), | |
s.translate(t.labelX, t.labelY), | |
s.rotate(t.rotation), | |
s.font = t.major ? V.font : y.font, | |
s.fillStyle = t.major ? B : v, | |
s.textBaseline = t.textBaseline, | |
s.textAlign = t.textAlign; | |
var d = t.label; | |
if (Y.isArray(d)) | |
for (var n = d.length, o = 1.5 * y.size, i = e.isHorizontal() ? 0 : -o * (n - 1) / 2, p = 0; p < n; ++p) | |
s.fillText("" + d[p], 0, i), | |
i += o; | |
else | |
s.fillText(d, 0, 0); | |
s.restore() | |
} | |
}), | |
d.display) { | |
var D = 0, X = a(d) / 2, N, G; | |
if (f) | |
N = e.left + (e.right - e.left) / 2, | |
G = "bottom" === t.position ? e.bottom - X - _.bottom : e.top + X + _.top; | |
else { | |
var Z = "left" === t.position; | |
N = Z ? e.left + X + _.top : e.right - X - _.top, | |
G = e.top + (e.bottom - e.top) / 2, | |
D = Z ? -.5 * E : .5 * E | |
} | |
s.save(), | |
s.translate(N, G), | |
s.rotate(D), | |
s.textAlign = "center", | |
s.textBaseline = "middle", | |
s.fillStyle = w, | |
s.font = k.font, | |
s.fillText(d.labelString, 0, 0), | |
s.restore() | |
} | |
if (u.drawBorder) { | |
s.lineWidth = Y.valueAtIndexOrDefault(u.lineWidth, 0), | |
s.strokeStyle = Y.valueAtIndexOrDefault(u.color, 0); | |
var A = e.left | |
, K = e.right + S | |
, $ = e.top | |
, Q = e.bottom + S | |
, J = Y.aliasPixel(s.lineWidth); | |
f ? ($ = Q = "top" === t.position ? e.bottom : e.top, | |
$ += J, | |
Q += J) : (A = K = "left" === t.position ? e.right : e.left, | |
A += J, | |
K += J), | |
s.beginPath(), | |
s.moveTo(A, $), | |
s.lineTo(K, Q), | |
s.stroke() | |
} | |
} | |
} | |
}) | |
} | |
, function(a, e, t) { | |
"use strict"; | |
var d = t(4); | |
a.exports = { | |
formatters: { | |
values: function(t) { | |
return d.isArray(t) ? t : "" + t | |
}, | |
linear: function(u, e, t) { | |
var n = 3 < t.length ? t[2] - t[1] : t[1] - t[0]; | |
1 < M(n) && u !== _(u) && (n = u - _(u)); | |
var p = d.log10(M(n)) | |
, i = ""; | |
if (!(0 !== u)) | |
i = "0"; | |
else if (1e-4 > B(M(t[0]), M(t[t.length - 1]))) { | |
var c = d.log10(M(u)); | |
i = u.toExponential(_(c) - _(p)) | |
} else { | |
var l = -1 * _(p); | |
l = B(R(l, 20), 0), | |
i = u.toFixed(l) | |
} | |
return i | |
}, | |
logarithmic: function(a, e, t) { | |
var n = a / S(10, _(d.log10(a))); | |
return 0 === a ? "0" : 1 == n || 2 == n || 5 == n || 0 === e || e === t.length - 1 ? a.toExponential() : "" | |
} | |
} | |
} | |
} | |
, function(d, e, t) { | |
function n(t) { | |
return null == t ? void 0 === t ? l : a : s && s in Object(t) ? o(t) : i(t) | |
} | |
var p = t(55) | |
, o = t(357) | |
, i = t(358) | |
, a = "[object Null]" | |
, l = "[object Undefined]" | |
, s = p ? p.toStringTag : void 0; | |
d.exports = n | |
} | |
, function(t) { | |
t.exports = function(t) { | |
return null != t && "object" == typeof t | |
} | |
} | |
, function(d, e, t) { | |
"use strict"; | |
var n = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
Object.defineProperty(e, "createGenerateClassName", { | |
enumerable: !0, | |
get: function() { | |
return p.default | |
} | |
}), | |
Object.defineProperty(e, "createMuiTheme", { | |
enumerable: !0, | |
get: function() { | |
return o.default | |
} | |
}), | |
Object.defineProperty(e, "jssPreset", { | |
enumerable: !0, | |
get: function() { | |
return i.default | |
} | |
}), | |
Object.defineProperty(e, "MuiThemeProvider", { | |
enumerable: !0, | |
get: function() { | |
return a.default | |
} | |
}), | |
Object.defineProperty(e, "createStyles", { | |
enumerable: !0, | |
get: function() { | |
return l.default | |
} | |
}), | |
Object.defineProperty(e, "withStyles", { | |
enumerable: !0, | |
get: function() { | |
return s.default | |
} | |
}), | |
Object.defineProperty(e, "withTheme", { | |
enumerable: !0, | |
get: function() { | |
return u.default | |
} | |
}); | |
var p = n(t(86)) | |
, o = n(t(63)) | |
, i = n(t(87)) | |
, a = n(t(200)) | |
, l = n(t(205)) | |
, s = n(t(7)) | |
, u = n(t(47)) | |
} | |
, function(n, e) { | |
"use strict"; | |
function t(t) { | |
return !!t && "object" == typeof t | |
} | |
function h(n) { | |
var e = Object.prototype.toString.call(n); | |
return "[object RegExp]" === e || "[object Date]" === e || o(n) | |
} | |
function o(t) { | |
return t.$$typeof === f | |
} | |
function i(t) { | |
return Array.isArray(t) ? [] : {} | |
} | |
function a(n, e) { | |
return !1 !== e.clone && e.isMergeableObject(n) ? u(i(n), n, e) : n | |
} | |
function l(o, e, t) { | |
return o.concat(e).map(function(n) { | |
return a(n, t) | |
}) | |
} | |
function s(i, e, s) { | |
var n = {}; | |
return s.isMergeableObject(i) && Object.keys(i).forEach(function(e) { | |
n[e] = a(i[e], s) | |
}), | |
Object.keys(e).forEach(function(t) { | |
n[t] = s.isMergeableObject(e[t]) && i[t] ? u(i[t], e[t], s) : a(e[t], s) | |
}), | |
n | |
} | |
function u(o, e, t) { | |
t = t || {}, | |
t.arrayMerge = t.arrayMerge || l, | |
t.isMergeableObject = t.isMergeableObject || c; | |
var i = Array.isArray(e); | |
return i === Array.isArray(o) ? i ? t.arrayMerge(o, e, t) : s(o, e, t) : a(e, t) | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}); | |
var c = function(n) { | |
return t(n) && !h(n) | |
} | |
, d = "function" == typeof Symbol && Symbol.for | |
, f = d ? Symbol.for("react.element") : 60103; | |
u.all = function(n, a) { | |
if (!Array.isArray(n)) | |
throw new Error("first argument should be an array"); | |
return n.reduce(function(t, e) { | |
return u(t, e, a) | |
}, {}) | |
} | |
; | |
e.default = u | |
} | |
, function(i, e, t) { | |
"use strict"; | |
function s(a) { | |
var e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : 0 | |
, t = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : 1; | |
return a < e ? e : a > t ? t : a | |
} | |
function d(a) { | |
a = a.substr(1); | |
var o = new RegExp(".{1,".concat(a.length / 3, "}"),"g") | |
, t = a.match(o); | |
return t && 1 === t[0].length && (t = t.map(function(t) { | |
return t + t | |
})), | |
t ? "rgb(".concat(t.map(function(t) { | |
return parseInt(t, 16) | |
}).join(", "), ")") : "" | |
} | |
function o(a) { | |
if ("#" === a.charAt(0)) | |
return o(d(a)); | |
var e = a.indexOf("(") | |
, t = a.substring(0, e) | |
, n = a.substring(e + 1, a.length - 1).split(","); | |
return n = n.map(function(t) { | |
return parseFloat(t) | |
}), | |
{ | |
type: t, | |
values: n | |
} | |
} | |
function a(a) { | |
var e = a.type | |
, t = a.values; | |
return -1 !== e.indexOf("rgb") && (t = t.map(function(n, e) { | |
return 3 > e ? parseInt(n, 10) : n | |
})), | |
-1 !== e.indexOf("hsl") && (t[1] = "".concat(t[1], "%"), | |
t[2] = "".concat(t[2], "%")), | |
"".concat(a.type, "(").concat(t.join(", "), ")") | |
} | |
function l(a) { | |
var e = o(a); | |
if (-1 !== e.type.indexOf("rgb")) { | |
var t = e.values.map(function(t) { | |
return t /= 255, | |
.03928 >= t ? t / 12.92 : S((t + .055) / 1.055, 2.4) | |
}); | |
return +(.2126 * t[0] + .7152 * t[1] + .0722 * t[2]).toFixed(3) | |
} | |
return e.values[2] / 100 | |
} | |
function n(i, d) { | |
if (!i) | |
return i; | |
if (i = o(i), | |
d = s(d), | |
-1 !== i.type.indexOf("hsl")) | |
i.values[2] *= 1 - d; | |
else if (-1 !== i.type.indexOf("rgb")) | |
for (var l = 0; 3 > l; l += 1) | |
i.values[l] *= 1 - d; | |
return a(i) | |
} | |
function u(i, d) { | |
if (!i) | |
return i; | |
if (i = o(i), | |
d = s(d), | |
-1 !== i.type.indexOf("hsl")) | |
i.values[2] += (100 - i.values[2]) * d; | |
else if (-1 !== i.type.indexOf("rgb")) | |
for (var l = 0; 3 > l; l += 1) | |
i.values[l] += (255 - i.values[l]) * d; | |
return a(i) | |
} | |
var p = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
e.convertHexToRGB = d, | |
e.rgbToHex = function(a) { | |
function i(n) { | |
var e = n.toString(16); | |
return 1 === e.length ? "0".concat(e) : e | |
} | |
if (0 === a.indexOf("#")) | |
return a; | |
var e = o(a) | |
, t = e.values; | |
return t = t.map(function(t) { | |
return i(t) | |
}), | |
"#".concat(t.join("")) | |
} | |
, | |
e.decomposeColor = o, | |
e.recomposeColor = a, | |
e.getContrastRatio = function(a, e) { | |
var t = l(a) | |
, n = l(e); | |
return (B(t, n) + .05) / (R(t, n) + .05) | |
} | |
, | |
e.getLuminance = l, | |
e.emphasize = function(a) { | |
var e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : .15; | |
return .5 < l(a) ? n(a, e) : u(a, e) | |
} | |
, | |
e.fade = function(n, i) { | |
return n ? (n = o(n), | |
i = s(i), | |
"rgb" !== n.type && "hsl" !== n.type || (n.type += "a"), | |
n.values[3] = i, | |
a(n)) : n | |
} | |
, | |
e.darken = n, | |
e.lighten = u, | |
p(t(15)) | |
} | |
, function(n, e) { | |
"use strict"; | |
function t(o) { | |
var e = 1 < arguments.length && void 0 !== arguments[1] && arguments[1]; | |
if (!Array.isArray(o)) | |
return o; | |
var t = ""; | |
if (Array.isArray(o[0])) | |
for (var i = 0; i < o.length && "!important" !== o[i]; i++) | |
t && (t += ", "), | |
t += a(o[i], " "); | |
else | |
t = a(o, ", "); | |
return e || "!important" !== o[o.length - 1] || (t += " !important"), | |
t | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
e.default = t; | |
var a = function(a, e) { | |
for (var t = "", o = 0; o < a.length && "!important" !== a[o]; o++) | |
t && (t += e), | |
t += a[o]; | |
return t | |
} | |
} | |
, function(d, e, t) { | |
"use strict"; | |
function n(t) { | |
return t && t.__esModule ? t : { | |
default: t | |
} | |
} | |
function p() { | |
var a = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : "unnamed" | |
, e = arguments[1] | |
, t = arguments[2] | |
, n = t.jss | |
, d = (0, | |
s.default)(e) | |
, o = n.plugins.onCreateRule(a, d, t); | |
return o || ("@" === a[0] && (0, | |
f.default)(!1, "[JSS] Unknown at-rule %s", a), | |
new l.default(a,d,t)) | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
e.default = p; | |
var o = t(27) | |
, f = n(o) | |
, a = t(28) | |
, l = n(a) | |
, i = t(170) | |
, s = n(i) | |
} | |
, function(a, e, t) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
t.d(e, "isBrowser", function() { | |
return i | |
}); | |
var n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { | |
return typeof t | |
} | |
: function(t) { | |
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t | |
} | |
, i = "object" === ("undefined" == typeof window ? "undefined" : n(window)) && "object" === ("undefined" == typeof document ? "undefined" : n(document)) && 9 === document.nodeType; | |
e.default = i | |
} | |
, function(a, e, t) { | |
"use strict"; | |
var n = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
e.default = e.specialProperty = void 0; | |
n(t(9)), | |
n(t(3)), | |
"exact-prop: \u200B"; | |
e.specialProperty = "exact-prop: \u200B"; | |
e.default = function(t) { | |
return t | |
} | |
} | |
, function(y, e, t) { | |
"use strict"; | |
function x() { | |
return _ || (_ = (0, | |
h.default)()) | |
} | |
var n = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
e.default = void 0; | |
var o = n(t(3)), a = n(t(5)), l = n(t(10)), s = n(t(11)), u = n(t(12)), c = n(t(13)), d = n(t(14)), f = n(t(1)), p = (n(t(2)), | |
n(t(95))), h = (n(t(96)), | |
n(t(63))), m = n(t(69)), _; | |
e.default = function() { | |
return function(i) { | |
var e = function(e) { | |
function p(n, e) { | |
var t; | |
return (0, | |
l.default)(this, p), | |
t = (0, | |
u.default)(this, (0, | |
c.default)(p).call(this)), | |
t.unsubscribeId = null, | |
t.state = {}, | |
t.state = { | |
theme: m.default.initial(e) || x() | |
}, | |
t | |
} | |
return (0, | |
d.default)(p, e), | |
(0, | |
s.default)(p, [{ | |
key: "componentDidMount", | |
value: function() { | |
var n = this; | |
this.unsubscribeId = m.default.subscribe(this.context, function(e) { | |
n.setState({ | |
theme: e | |
}) | |
}) | |
} | |
}, { | |
key: "componentWillUnmount", | |
value: function() { | |
null !== this.unsubscribeId && m.default.unsubscribe(this.context, this.unsubscribeId) | |
} | |
}, { | |
key: "render", | |
value: function() { | |
var e = this.props | |
, t = e.innerRef | |
, n = (0, | |
a.default)(e, ["innerRef"]); | |
return f.default.createElement(i, (0, | |
o.default)({ | |
theme: this.state.theme, | |
ref: t | |
}, n)) | |
} | |
}]), | |
p | |
}(f.default.Component); | |
return e.propTypes = {}, | |
e.contextTypes = m.default.contextTypes, | |
(0, | |
p.default)(e, i), | |
e | |
} | |
} | |
} | |
, function(a, e, t) { | |
"use strict"; | |
var n = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
Object.defineProperty(e, "default", { | |
enumerable: !0, | |
get: function() { | |
return i.default | |
} | |
}); | |
var i = n(t(214)) | |
} | |
, function(a, e, t) { | |
"use strict"; | |
var n = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
Object.defineProperty(e, "default", { | |
enumerable: !0, | |
get: function() { | |
return i.default | |
} | |
}); | |
var i = n(t(215)) | |
} | |
, function(a, e, t) { | |
"use strict"; | |
var n = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
Object.defineProperty(e, "default", { | |
enumerable: !0, | |
get: function() { | |
return i.default | |
} | |
}); | |
var i = n(t(272)) | |
} | |
, function(a, e, t) { | |
"use strict"; | |
var n = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
Object.defineProperty(e, "default", { | |
enumerable: !0, | |
get: function() { | |
return i.default | |
} | |
}); | |
var i = n(t(281)) | |
} | |
, function(t) { | |
"use strict"; | |
var d = { | |
noop: function() {}, | |
uid: function() { | |
var t = 0; | |
return function() { | |
return t++ | |
} | |
}(), | |
isNullOrUndef: function(t) { | |
return null === t || "undefined" == typeof t | |
}, | |
isArray: Array.isArray ? Array.isArray : function(t) { | |
return "[object Array]" === Object.prototype.toString.call(t) | |
} | |
, | |
isObject: function(t) { | |
return null !== t && "[object Object]" === Object.prototype.toString.call(t) | |
}, | |
valueOrDefault: function(n, e) { | |
return "undefined" == typeof n ? e : n | |
}, | |
valueAtIndexOrDefault: function(a, e, t) { | |
return d.valueOrDefault(d.isArray(a) ? a[e] : a, t) | |
}, | |
callback: function(a, e, t) { | |
if (a && "function" == typeof a.call) | |
return a.apply(t, e) | |
}, | |
each: function(s, e, t, n) { | |
var o, u, p; | |
if (d.isArray(s)) { | |
if (u = s.length, | |
n) | |
for (o = u - 1; 0 <= o; o--) | |
e.call(t, s[o], o); | |
else | |
for (o = 0; o < u; o++) | |
e.call(t, s[o], o); | |
} else if (d.isObject(s)) | |
for (p = Object.keys(s), | |
u = p.length, | |
o = 0; o < u; o++) | |
e.call(t, s[p[o]], p[o]) | |
}, | |
arrayEquals: function(s, e) { | |
var t, l, u, p; | |
if (!s || !e || s.length !== e.length) | |
return !1; | |
for (t = 0, | |
l = s.length; t < l; ++t) | |
if (u = s[t], | |
p = e[t], | |
u instanceof Array && p instanceof Array) { | |
if (!d.arrayEquals(u, p)) | |
return !1; | |
} else if (u !== p) | |
return !1; | |
return !0 | |
}, | |
clone: function(a) { | |
if (d.isArray(a)) | |
return a.map(d.clone); | |
if (d.isObject(a)) { | |
for (var e = {}, t = Object.keys(a), n = t.length, o = 0; o < n; ++o) | |
e[t[o]] = d.clone(a[t[o]]); | |
return e | |
} | |
return a | |
}, | |
_merger: function(s, e, t, n) { | |
var o = e[s] | |
, i = t[s]; | |
d.isObject(o) && d.isObject(i) ? d.merge(o, i, n) : e[s] = d.clone(i) | |
}, | |
_mergerIf: function(a, e, t) { | |
var n = e[a] | |
, o = t[a]; | |
d.isObject(n) && d.isObject(o) ? d.mergeIf(n, o) : e.hasOwnProperty(a) || (e[a] = d.clone(o)) | |
}, | |
merge: function(p, e, f) { | |
var h = d.isArray(e) ? e : [e], u = h.length, c, m, y, x, _; | |
if (!d.isObject(p)) | |
return p; | |
for (f = f || {}, | |
c = f.merger || d._merger, | |
m = 0; m < u; ++m) | |
if (e = h[m], | |
d.isObject(e)) | |
for (y = Object.keys(e), | |
_ = 0, | |
x = y.length; _ < x; ++_) | |
c(y[_], p, e, f); | |
return p | |
}, | |
mergeIf: function(n, e) { | |
return d.merge(n, e, { | |
merger: d._mergerIf | |
}) | |
}, | |
extend: function(a) { | |
for (var e = function(e, t) { | |
a[t] = e | |
}, t = 1, i = arguments.length; t < i; ++t) | |
d.each(arguments[t], e); | |
return a | |
}, | |
inherits: function(a) { | |
var e = this | |
, t = a && a.hasOwnProperty("constructor") ? a.constructor : function() { | |
return e.apply(this, arguments) | |
} | |
, n = function() { | |
this.constructor = t | |
}; | |
return n.prototype = e.prototype, | |
t.prototype = new n, | |
t.extend = d.inherits, | |
a && d.extend(t.prototype, a), | |
t.__super__ = e.prototype, | |
t | |
} | |
}; | |
t.exports = d, | |
d.callCallback = d.callback, | |
d.indexOf = function(a, e, t) { | |
return Array.prototype.indexOf.call(a, e, t) | |
} | |
, | |
d.getValueOrDefault = d.valueOrDefault, | |
d.getValueAtIndexOrDefault = d.valueAtIndexOrDefault | |
} | |
, function(d, e, t) { | |
function n(a) { | |
var e = -1 | |
, o = null == a ? 0 : a.length; | |
for (this.clear(); ++e < o; ) { | |
var n = a[e]; | |
this.set(n[0], n[1]) | |
} | |
} | |
var u = t(346) | |
, o = t(347) | |
, i = t(348) | |
, a = t(349) | |
, l = t(350); | |
n.prototype.clear = u, | |
n.prototype.delete = o, | |
n.prototype.get = i, | |
n.prototype.has = a, | |
n.prototype.set = l, | |
d.exports = n | |
} | |
, function(a, e, t) { | |
var i = t(125); | |
a.exports = function(a, e) { | |
for (var t = a.length; t--; ) | |
if (i(a[t][0], e)) | |
return t; | |
return -1 | |
} | |
} | |
, function(a, e, t) { | |
var n = t(18) | |
, i = n.Symbol; | |
a.exports = i | |
} | |
, function(t) { | |
t.exports = function(n) { | |
var e = typeof n; | |
return null != n && ("object" == e || "function" == e) | |
} | |
} | |
, function(a, e, t) { | |
var n = t(26) | |
, i = n(Object, "create"); | |
a.exports = i | |
} | |
, function(a, e, t) { | |
var i = t(370); | |
a.exports = function(a, e) { | |
var t = a.__data__; | |
return i(e) ? t["string" == typeof e ? "string" : "hash"] : t.map | |
} | |
} | |
, function(s, e, t) { | |
var n = t(390) | |
, o = t(397) | |
, i = t(82); | |
s.exports = function(t) { | |
return i(t) ? n(t) : o(t) | |
} | |
} | |
, function(a, e, t) { | |
var n = t(38) | |
, o = t(39); | |
a.exports = function(t) { | |
return "symbol" == typeof t || o(t) && n(t) == "[object Symbol]" | |
} | |
} | |
, function(a, e, t) { | |
var n = t(60); | |
a.exports = function(a) { | |
if ("string" == typeof a || n(a)) | |
return a; | |
var e = a + ""; | |
return "0" == e && 1 / a == -(1 / 0) ? "-0" : e | |
} | |
} | |
, function(t) { | |
"use strict"; | |
function p(t) { | |
if (null === t || void 0 === t) | |
throw new TypeError("Object.assign cannot be called with null or undefined"); | |
return Object(t) | |
} | |
var e = Object.getOwnPropertySymbols | |
, d = Object.prototype.hasOwnProperty | |
, i = Object.prototype.propertyIsEnumerable; | |
t.exports = function() { | |
try { | |
if (!Object.assign) | |
return !1; | |
var a = new String("abc"); | |
if (a[5] = "de", | |
"5" === Object.getOwnPropertyNames(a)[0]) | |
return !1; | |
for (var i = {}, e = 0; 10 > e; e++) | |
i["_" + o(e)] = e; | |
if ("0123456789" !== Object.getOwnPropertyNames(i).map(function(t) { | |
return i[t] | |
}).join("")) | |
return !1; | |
var t = {}; | |
return ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t"].forEach(function(n) { | |
t[n] = n | |
}), | |
"abcdefghijklmnopqrst" === Object.keys(Object.assign({}, t)).join("") | |
} catch (t) { | |
return !1 | |
} | |
}() ? Object.assign : function(t) { | |
for (var a = p(t), o = 1, s, f; o < arguments.length; o++) { | |
for (var h in s = Object(arguments[o]), | |
s) | |
d.call(s, h) && (a[h] = s[h]); | |
if (e) { | |
f = e(s); | |
for (var c = 0; c < f.length; c++) | |
i.call(s, f[c]) && (a[f[c]] = s[f[c]]) | |
} | |
} | |
return a | |
} | |
} | |
, function(x, e, t) { | |
"use strict"; | |
function n() { | |
var y = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {} | |
, e = y.breakpoints | |
, t = void 0 === e ? {} : e | |
, n = y.mixins | |
, P = void 0 === n ? {} : n | |
, o = y.palette | |
, D = void 0 === o ? {} : o | |
, O = y.shadows | |
, x = y.typography | |
, w = void 0 === x ? {} : x | |
, k = (0, | |
i.default)(y, ["breakpoints", "mixins", "palette", "shadows", "typography"]) | |
, _ = (0, | |
c.default)(D) | |
, S = (0, | |
s.default)(t) | |
, C = (0, | |
E.default)({ | |
breakpoints: S, | |
direction: "ltr", | |
mixins: (0, | |
u.default)(S, h.default, P), | |
overrides: {}, | |
palette: _, | |
props: {}, | |
shadows: O || f.default, | |
typography: (0, | |
d.default)(_, w) | |
}, (0, | |
a.default)({ | |
shape: p.default, | |
spacing: h.default, | |
transitions: m.default, | |
zIndex: v.default | |
}, k, { | |
isMergeableObject: l.default | |
})); | |
return C | |
} | |
var _ = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
e.default = void 0; | |
var E = _(t(3)) | |
, i = _(t(5)) | |
, a = _(t(41)) | |
, l = _(t(152)) | |
, s = (_(t(15)), | |
_(t(154))) | |
, u = _(t(155)) | |
, c = _(t(156)) | |
, d = _(t(162)) | |
, f = _(t(163)) | |
, p = _(t(164)) | |
, h = _(t(165)) | |
, m = _(t(64)) | |
, v = _(t(166)); | |
e.default = n | |
} | |
, function(s, e, t) { | |
"use strict"; | |
var n = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
e.default = e.isNumber = e.isString = e.formatMs = e.duration = e.easing = void 0; | |
var p = n(t(5)) | |
, o = (n(t(15)), | |
{ | |
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)", | |
easeOut: "cubic-bezier(0.0, 0, 0.2, 1)", | |
easeIn: "cubic-bezier(0.4, 0, 1, 1)", | |
sharp: "cubic-bezier(0.4, 0, 0.6, 1)" | |
}); | |
e.easing = o; | |
var i = { | |
shortest: 150, | |
shorter: 200, | |
short: 250, | |
standard: 300, | |
complex: 375, | |
enteringScreen: 225, | |
leavingScreen: 195 | |
}; | |
e.duration = i; | |
var a = function(t) { | |
return "".concat(T(t), "ms") | |
}; | |
e.formatMs = a; | |
e.isString = function(t) { | |
return "string" == typeof t | |
} | |
; | |
e.isNumber = function(t) { | |
return !isNaN(parseFloat(t)) | |
} | |
; | |
e.default = { | |
easing: o, | |
duration: i, | |
create: function() { | |
var l = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : ["all"] | |
, e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {} | |
, t = e.duration | |
, n = void 0 === t ? i.standard : t | |
, f = e.easing | |
, s = void 0 === f ? o.easeInOut : f | |
, u = e.delay | |
, c = void 0 === u ? 0 : u; | |
return (0, | |
p.default)(e, ["duration", "easing", "delay"]), | |
(Array.isArray(l) ? l : [l]).map(function(t) { | |
return "".concat(t, " ").concat("string" == typeof n ? n : a(n), " ").concat(s, " ").concat("string" == typeof c ? c : a(c)) | |
}).join(",") | |
}, | |
getAutoHeightDuration: function(n) { | |
if (!n) | |
return 0; | |
var e = n / 36; | |
return T(10 * (4 + 15 * S(e, .25) + e / 5)) | |
} | |
} | |
} | |
, function(s, e, t) { | |
"use strict"; | |
function y(a, e) { | |
for (var t = "", o = 0; o < e; o++) | |
t += " "; | |
return t + a | |
} | |
function n(a, e) { | |
var t = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : {} | |
, n = ""; | |
if (!e) | |
return n; | |
var x = t.indent | |
, _ = void 0 === x ? 0 : x | |
, k = e.fallbacks; | |
if (_++, | |
k) | |
if (Array.isArray(k)) | |
for (var s = 0, w; s < k.length; s++) | |
for (var S in w = k[s], | |
w) { | |
var d = w[S]; | |
null != d && (n += "\n" + y(S + ": " + (0, | |
i.default)(d) + ";", _)) | |
} | |
else | |
for (var f in k) { | |
var p = k[f]; | |
null != p && (n += "\n" + y(f + ": " + (0, | |
i.default)(p) + ";", _)) | |
} | |
for (var h in e) { | |
var m = e[h]; | |
null != m && "fallbacks" != h && (n += "\n" + y(h + ": " + (0, | |
i.default)(m) + ";", _)) | |
} | |
return n || t.allowEmpty ? (_--, | |
n = y(a + " {" + n + "\n", _) + y("}", _)) : n | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
e.default = n; | |
var o = t(43) | |
, i = function(t) { | |
return t && t.__esModule ? t : { | |
default: t | |
} | |
}(o) | |
} | |
, function(a, e, t) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}); | |
var n = t(89) | |
, i = function(t) { | |
return t && t.__esModule ? t : { | |
default: t | |
} | |
}(n); | |
e.default = new i.default | |
} | |
, function(d, e, t) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}); | |
var n = t(45) | |
, p = function(t) { | |
return t && t.__esModule ? t : { | |
default: t | |
} | |
}(n) | |
, o = "" | |
, c = ""; | |
if (p.default) { | |
var f = { | |
Moz: "-moz-", | |
ms: "-ms-", | |
O: "-o-", | |
Webkit: "-webkit-" | |
} | |
, l = document.createElement("p").style; | |
for (var s in f) | |
if (s + "Transform"in l) { | |
o = s, | |
c = f[s]; | |
break | |
} | |
} | |
e.default = { | |
js: o, | |
css: c | |
} | |
} | |
, function(a) { | |
function o(t) { | |
return (o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { | |
return typeof t | |
} | |
: function(t) { | |
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t | |
} | |
)(t) | |
} | |
function e(n) { | |
return a.exports = "function" == typeof Symbol && "symbol" === o(Symbol.iterator) ? e = function(t) { | |
return o(t) | |
} | |
: e = function(t) { | |
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : o(t) | |
} | |
, | |
e(n) | |
} | |
a.exports = e | |
} | |
, function(a, e, t) { | |
"use strict"; | |
var n = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
e.default = e.CHANNEL = void 0; | |
var s = n(t(9)) | |
, o = n(t(2)); | |
e.CHANNEL = "__THEMING__"; | |
var i = { | |
contextTypes: (0, | |
s.default)({}, "__THEMING__", o.default.object), | |
initial: function(t) { | |
return t.__THEMING__ ? t.__THEMING__.getState() : null | |
}, | |
subscribe: function(n, e) { | |
return n.__THEMING__ ? n.__THEMING__.subscribe(e) : null | |
}, | |
unsubscribe: function(n, e) { | |
n.__THEMING__ && n.__THEMING__.unsubscribe(e) | |
} | |
}; | |
e.default = i | |
} | |
, function(n, e) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
e.default = void 0; | |
e.default = function(t) { | |
return "string" == typeof t ? t : t ? t.displayName || t.name || "Component" : void 0 | |
} | |
} | |
, function(a, e, t) { | |
"use strict"; | |
var n = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
e.default = void 0; | |
var o = n(t(22)); | |
e.default = function(a) { | |
var e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : window | |
, t = (0, | |
o.default)(a); | |
return t.defaultView || t.parentView || e | |
} | |
} | |
, function(p, e, t) { | |
"use strict"; | |
function n(t) { | |
return t && t.__esModule ? t : { | |
default: t | |
} | |
} | |
function f(a, e) { | |
if (null == a) | |
return {}; | |
var t = {}, o = Object.keys(a), i, s; | |
for (s = 0; s < o.length; s++) | |
i = o[s], | |
0 <= e.indexOf(i) || (t[i] = a[i]); | |
return t | |
} | |
function o(n, e) { | |
n.prototype = Object.create(e.prototype), | |
n.prototype.constructor = n, | |
n.__proto__ = e | |
} | |
function i() {} | |
e.__esModule = !0, | |
e.default = e.EXITING = e.ENTERED = e.ENTERING = e.EXITED = e.UNMOUNTED = void 0; | |
var a = function(a) { | |
if (a && a.__esModule) | |
return a; | |
var e = {}; | |
if (null != a) | |
for (var t in a) | |
if (Object.prototype.hasOwnProperty.call(a, t)) { | |
var n = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(a, t) : {}; | |
n.get || n.set ? Object.defineProperty(e, t, n) : e[t] = a[t] | |
} | |
return e.default = a, | |
e | |
}(t(2)) | |
, l = n(t(1)) | |
, s = n(t(16)) | |
, u = t(98) | |
, c = (t(225), | |
"unmounted"); | |
e.UNMOUNTED = "unmounted"; | |
e.EXITED = "exited"; | |
e.ENTERING = "entering"; | |
e.ENTERED = "entered", | |
e.EXITING = "exiting"; | |
var d = function(d) { | |
function e(e, t) { | |
var n = d.call(this, e, t) || this; | |
var s = t.transitionGroup, i = s && !s.isMounting ? e.enter : e.appear, a; | |
return n.appearStatus = null, | |
e.in ? i ? (a = "exited", | |
n.appearStatus = "entering") : a = "entered" : a = e.unmountOnExit || e.mountOnEnter ? "unmounted" : "exited", | |
n.state = { | |
status: a | |
}, | |
n.nextCallback = null, | |
n | |
} | |
o(e, d); | |
var t = e.prototype; | |
return t.getChildContext = function() { | |
return { | |
transitionGroup: null | |
} | |
} | |
, | |
e.getDerivedStateFromProps = function(n, e) { | |
return n.in && e.status === "unmounted" ? { | |
status: "exited" | |
} : null | |
} | |
, | |
t.componentDidMount = function() { | |
this.updateStatus(!0, this.appearStatus) | |
} | |
, | |
t.componentDidUpdate = function(a) { | |
var e = null; | |
if (a !== this.props) { | |
var o = this.state.status; | |
this.props.in ? o !== "entering" && o !== "entered" && (e = "entering") : o !== "entering" && o !== "entered" || (e = "exiting") | |
} | |
this.updateStatus(!1, e) | |
} | |
, | |
t.componentWillUnmount = function() { | |
this.cancelNextCallback() | |
} | |
, | |
t.getTimeouts = function() { | |
var a = this.props.timeout, o, i, s; | |
return o = i = s = a, | |
null != a && "number" != typeof a && (o = a.exit, | |
i = a.enter, | |
s = a.appear), | |
{ | |
exit: o, | |
enter: i, | |
appear: s | |
} | |
} | |
, | |
t.updateStatus = function(a, o) { | |
if (void 0 === a && (a = !1), | |
null !== o) { | |
this.cancelNextCallback(); | |
var t = s.default.findDOMNode(this); | |
o === "entering" ? this.performEnter(t, a) : this.performExit(t) | |
} else | |
this.props.unmountOnExit && this.state.status === "exited" && this.setState({ | |
status: "unmounted" | |
}) | |
} | |
, | |
t.performEnter = function(a, e) { | |
var t = this | |
, n = this.props.enter | |
, s = this.context.transitionGroup ? this.context.transitionGroup.isMounting : e | |
, o = this.getTimeouts(); | |
return e || n ? void (this.props.onEnter(a, s), | |
this.safeSetState({ | |
status: "entering" | |
}, function() { | |
t.props.onEntering(a, s), | |
t.onTransitionEnd(a, o.enter, function() { | |
t.safeSetState({ | |
status: "entered" | |
}, function() { | |
t.props.onEntered(a, s) | |
}) | |
}) | |
})) : void this.safeSetState({ | |
status: "entered" | |
}, function() { | |
t.props.onEntered(a) | |
}) | |
} | |
, | |
t.performExit = function(a) { | |
var e = this | |
, t = this.props.exit | |
, n = this.getTimeouts(); | |
return t ? void (this.props.onExit(a), | |
this.safeSetState({ | |
status: "exiting" | |
}, function() { | |
e.props.onExiting(a), | |
e.onTransitionEnd(a, n.exit, function() { | |
e.safeSetState({ | |
status: "exited" | |
}, function() { | |
e.props.onExited(a) | |
}) | |
}) | |
})) : void this.safeSetState({ | |
status: "exited" | |
}, function() { | |
e.props.onExited(a) | |
}) | |
} | |
, | |
t.cancelNextCallback = function() { | |
null !== this.nextCallback && (this.nextCallback.cancel(), | |
this.nextCallback = null) | |
} | |
, | |
t.safeSetState = function(n, e) { | |
e = this.setNextCallback(e), | |
this.setState(n, e) | |
} | |
, | |
t.setNextCallback = function(a) { | |
var e = this | |
, t = !0; | |
return this.nextCallback = function(n) { | |
t && (t = !1, | |
e.nextCallback = null, | |
a(n)) | |
} | |
, | |
this.nextCallback.cancel = function() { | |
t = !1 | |
} | |
, | |
this.nextCallback | |
} | |
, | |
t.onTransitionEnd = function(a, e, t) { | |
this.setNextCallback(t), | |
a ? (this.props.addEndListener && this.props.addEndListener(a, this.nextCallback), | |
null != e && setTimeout(this.nextCallback, e)) : setTimeout(this.nextCallback, 0) | |
} | |
, | |
t.render = function() { | |
var a = this.state.status; | |
if (a === "unmounted") | |
return null; | |
var e = this.props | |
, t = e.children | |
, n = f(e, ["children"]); | |
if (delete n.in, | |
delete n.mountOnEnter, | |
delete n.unmountOnExit, | |
delete n.appear, | |
delete n.enter, | |
delete n.exit, | |
delete n.timeout, | |
delete n.addEndListener, | |
delete n.onEnter, | |
delete n.onEntering, | |
delete n.onEntered, | |
delete n.onExit, | |
delete n.onExiting, | |
delete n.onExited, | |
"function" == typeof t) | |
return t(a, n); | |
var o = l.default.Children.only(t); | |
return l.default.cloneElement(o, n) | |
} | |
, | |
e | |
}(l.default.Component); | |
d.contextTypes = { | |
transitionGroup: a.object | |
}, | |
d.childContextTypes = { | |
transitionGroup: function() {} | |
}, | |
d.propTypes = {}, | |
d.defaultProps = { | |
in: !1, | |
mountOnEnter: !1, | |
unmountOnExit: !1, | |
appear: !1, | |
enter: !0, | |
exit: !0, | |
onEnter: i, | |
onEntering: i, | |
onEntered: i, | |
onExit: i, | |
onExiting: i, | |
onExited: i | |
}, | |
d.UNMOUNTED = 0, | |
d.EXITED = 1, | |
d.ENTERING = 2, | |
d.ENTERED = 3, | |
d.EXITING = 4; | |
var h = (0, | |
u.polyfill)(d); | |
e.default = h | |
} | |
, function(a, e, t) { | |
"use strict"; | |
var n = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
Object.defineProperty(e, "default", { | |
enumerable: !0, | |
get: function() { | |
return i.default | |
} | |
}); | |
var i = n(t(227)) | |
} | |
, function(a, e, t) { | |
"use strict"; | |
var n = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
Object.defineProperty(e, "default", { | |
enumerable: !0, | |
get: function() { | |
return i.default | |
} | |
}); | |
var i = n(t(242)) | |
} | |
, function(p, e, t) { | |
"use strict"; | |
function h(n, e) { | |
if (!(n instanceof e)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
function m(n, e) { | |
if (!n) | |
throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
return e && ("object" == typeof e || "function" == typeof e) ? e : n | |
} | |
function n(n, e) { | |
if ("function" != typeof e && null !== e) | |
throw new TypeError("Super expression must either be null or a function, not " + typeof e); | |
n.prototype = Object.create(e && e.prototype, { | |
constructor: { | |
value: n, | |
enumerable: !1, | |
writable: !0, | |
configurable: !0 | |
} | |
}), | |
e && (Object.setPrototypeOf ? Object.setPrototypeOf(n, e) : n.__proto__ = e) | |
} | |
var o = t(1) | |
, a = t.n(o) | |
, i = t(289) | |
, s = t(51) | |
, l = t.n(s) | |
, u = function() { | |
function a(a, e) { | |
for (var t = 0, o; t < e.length; t++) | |
o = e[t], | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(a, o.key, o) | |
} | |
return function(e, t, n) { | |
return t && a(e.prototype, t), | |
n && a(e, n), | |
e | |
} | |
}() | |
, d = function(o) { | |
function s(t) { | |
h(this, s); | |
var a = m(this, (s.__proto__ || Object.getPrototypeOf(s)).call(this, t)); | |
return a.handleChange = function(n, e) { | |
a.setState({ | |
value: e | |
}), | |
a.props.onChange && a.props.onChange(n, e) | |
} | |
, | |
a.handleChange = a.handleChange.bind(a), | |
a.state = { | |
value: t.getInitVal ? t.getInitVal() : t.initVal, | |
onChange: t.onChange | |
}, | |
a | |
} | |
return n(s, o), | |
u(s, [{ | |
key: "render", | |
value: function() { | |
var t = this.state.value; | |
return a.a.createElement("div", null, a.a.createElement(l.a, { | |
id: "label" | |
}, this.props.label), a.a.createElement(i.a, { | |
value: t, | |
"aria-labelledby": "label", | |
onChange: this.handleChange | |
})) | |
} | |
}]), | |
s | |
}(a.a.Component); | |
e.a = d | |
} | |
, function(d, e, t) { | |
"use strict"; | |
function p(n, e) { | |
if (!(n instanceof e)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
function f(n, e) { | |
if (!n) | |
throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
return e && ("object" == typeof e || "function" == typeof e) ? e : n | |
} | |
function n(n, e) { | |
if ("function" != typeof e && null !== e) | |
throw new TypeError("Super expression must either be null or a function, not " + typeof e); | |
n.prototype = Object.create(e && e.prototype, { | |
constructor: { | |
value: n, | |
enumerable: !1, | |
writable: !0, | |
configurable: !0 | |
} | |
}), | |
e && (Object.setPrototypeOf ? Object.setPrototypeOf(n, e) : n.__proto__ = e) | |
} | |
var o = t(1) | |
, a = t.n(o) | |
, i = t(23) | |
, s = function() { | |
function a(a, e) { | |
for (var t = 0, o; t < e.length; t++) | |
o = e[t], | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(a, o.key, o) | |
} | |
return function(e, t, n) { | |
return t && a(e.prototype, t), | |
n && a(e, n), | |
e | |
} | |
}() | |
, l = function(o) { | |
function d(t) { | |
p(this, d); | |
var a = f(this, (d.__proto__ || Object.getPrototypeOf(d)).call(this, t)); | |
a.setCoords = function(n, e) { | |
a.setState({ | |
x: _(n), | |
y: _(e) | |
}) | |
} | |
, | |
a.show = function() { | |
!a.state.isTransition && a.state.isHidden && (a.setState({ | |
isHidden: !1, | |
isTransition: !0 | |
}), | |
setTimeout(function() { | |
return a.setState({ | |
isTransition: !1 | |
}) | |
}, 300)) | |
} | |
, | |
a.hide = function() { | |
a.state.isTransition || a.state.isHidden || (a.setState({ | |
isHidden: !0, | |
isTransition: !0 | |
}), | |
setTimeout(function() { | |
return a.setState({ | |
isTransition: !1 | |
}) | |
}, 300)) | |
} | |
, | |
a.setCoords = a.setCoords.bind(a), | |
a.show = a.show.bind(a), | |
a.hide = a.hide.bind(a), | |
a.updateWindowDimensions = a.updateWindowDimensions.bind(a); | |
var e = window.innerWidth / 1e3; | |
return document.ESU && document.ESU.coords && (document.ESU.coords.setCoords = a.setCoords), | |
a.state = { | |
x: 0, | |
y: 0, | |
isHidden: t.isHidden, | |
scale: 1 < e ? 1 : e, | |
isTransition: !1 | |
}, | |
d.current = a, | |
a | |
} | |
return n(d, o), | |
s(d, [{ | |
key: "componentDidMount", | |
value: function() { | |
this.updateWindowDimensions(), | |
window.addEventListener("resize", this.updateWindowDimensions) | |
} | |
}, { | |
key: "componentWillUnmount", | |
value: function() { | |
window.removeEventListener("resize", this.updateWindowDimensions) | |
} | |
}, { | |
key: "updateWindowDimensions", | |
value: function() { | |
var t = window.innerWidth / 1e3; | |
this.setState({ | |
scale: 1 < t ? 1 : t | |
}), | |
i.a.current.state.isHidden && 1 > t ? this.hide() : this.show() | |
} | |
}, { | |
key: "render", | |
value: function() { | |
var n = 1e3 > window.innerWidth ? window.innerWidth / 1e3 : 1; | |
var e = a.a.createElement("div", { | |
id: "coords", | |
className: "trBg", | |
style: { | |
transformOrigin: "0% 100%", | |
transform: "translate(0%, -100%) scale(" + n + ")" | |
} | |
}, "x:", this.state.x, " y:", this.state.y); | |
return a.a.createElement("div", { | |
style: { | |
display: !this.state.isTransition && this.state.isHidden ? "none" : "block" | |
}, | |
className: this.state.isHidden ? "fadeOut" : "fadeIn" | |
}, e) | |
} | |
}]), | |
d | |
}(a.a.Component); | |
l.current = void 0, | |
l.show = function() { | |
l.current.show() | |
} | |
, | |
l.hide = function() { | |
l.current.hide() | |
} | |
, | |
e.a = l | |
} | |
, function(t) { | |
t.exports = function(t) { | |
return t.webpackPolyfill || (t.deprecate = function() {} | |
, | |
t.paths = [], | |
t.children || (t.children = []), | |
Object.defineProperty(t, "loaded", { | |
enumerable: !0, | |
get: function() { | |
return t.l | |
} | |
}), | |
Object.defineProperty(t, "id", { | |
enumerable: !0, | |
get: function() { | |
return t.i | |
} | |
}), | |
t.webpackPolyfill = 1), | |
t | |
} | |
} | |
, function(a, e, t) { | |
function s(i, e, t, n, a) { | |
return i === e || (null != i && null != e && (o(i) || o(e)) ? d(i, e, t, n, s, a) : i !== i && e !== e) | |
} | |
var d = t(345) | |
, o = t(39); | |
a.exports = s | |
} | |
, function(a, e, t) { | |
var n = t(26) | |
, s = t(18) | |
, o = n(s, "Map"); | |
a.exports = o | |
} | |
, function(d, e, t) { | |
function n(a) { | |
var e = -1 | |
, o = null == a ? 0 : a.length; | |
for (this.clear(); ++e < o; ) { | |
var n = a[e]; | |
this.set(n[0], n[1]) | |
} | |
} | |
var u = t(362) | |
, o = t(369) | |
, i = t(371) | |
, a = t(372) | |
, l = t(373); | |
n.prototype.clear = u, | |
n.prototype.delete = o, | |
n.prototype.get = i, | |
n.prototype.has = a, | |
n.prototype.set = l, | |
d.exports = n | |
} | |
, function(t) { | |
t.exports = function(t) { | |
return "number" == typeof t && -1 < t && 0 == t % 1 && t <= 9007199254740991 | |
} | |
} | |
, function(a, e, t) { | |
var n = t(126) | |
, o = t(81); | |
a.exports = function(t) { | |
return null != t && o(t.length) && !n(t) | |
} | |
} | |
, function(d, e, t) { | |
var n = t(408) | |
, o = t(411) | |
, i = t(422) | |
, a = t(19) | |
, l = t(423); | |
d.exports = function(t) { | |
return "function" == typeof t ? t : null == t ? i : "object" == typeof t ? a(t) ? o(t[0], t[1]) : n(t) : l(t) | |
} | |
} | |
, function(s, e, t) { | |
function n(s, e) { | |
if (d(s)) | |
return !1; | |
var t = typeof s; | |
return "number" == t || "symbol" == t || "boolean" == t || null == s || o(s) || a.test(s) || !i.test(s) || null != e && s in Object(e) | |
} | |
var d = t(19) | |
, o = t(60) | |
, i = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/ | |
, a = /^\w*$/; | |
s.exports = n | |
} | |
, function(x, e, t) { | |
"use strict"; | |
function _() {} | |
function k(t) { | |
try { | |
return t.then | |
} catch (t) { | |
return h = t, | |
m | |
} | |
} | |
function o(n, e) { | |
try { | |
return n(e) | |
} catch (t) { | |
return h = t, | |
m | |
} | |
} | |
function i(a, e, t) { | |
try { | |
a(e, t) | |
} catch (t) { | |
return h = t, | |
m | |
} | |
} | |
function w(t) { | |
if ("object" != typeof this) | |
throw new TypeError("Promises must be constructed via new"); | |
if ("function" != typeof t) | |
throw new TypeError("Promise constructor's argument is not a function"); | |
this._75 = 0, | |
this._83 = 0, | |
this._18 = null, | |
this._38 = null, | |
t !== _ && c(t, this) | |
} | |
function a(d, e, t) { | |
return new d.constructor(function(n, o) { | |
var i = new w(_); | |
i.then(n, o), | |
s(d, new p(e,t,i)) | |
} | |
) | |
} | |
function s(a, o) { | |
for (; 3 === a._83; ) | |
a = a._18; | |
return (w._47 && w._47(a), | |
0 === a._83) ? 0 === a._75 ? (a._75 = 1, | |
void (a._38 = o)) : 1 === a._75 ? (a._75 = 2, | |
void (a._38 = [a._38, o])) : void a._38.push(o) : void n(a, o) | |
} | |
function n(a, e) { | |
f(function() { | |
var t = 1 === a._83 ? e.onFulfilled : e.onRejected; | |
if (null === t) | |
return void (1 === a._83 ? l(e.promise, a._18) : d(e.promise, a._18)); | |
var n = o(t, a._18); | |
n === m ? d(e.promise, h) : l(e.promise, n) | |
}) | |
} | |
function l(a, e) { | |
if (e === a) | |
return d(a, new TypeError("A promise cannot be resolved with itself.")); | |
if (e && ("object" == typeof e || "function" == typeof e)) { | |
var t = k(e); | |
if (t === m) | |
return d(a, h); | |
if (t === a.then && e instanceof w) | |
return a._83 = 3, | |
a._18 = e, | |
void u(a); | |
if ("function" == typeof t) | |
return void c(t.bind(e), a) | |
} | |
a._83 = 1, | |
a._18 = e, | |
u(a) | |
} | |
function d(n, e) { | |
n._83 = 2, | |
n._18 = e, | |
w._71 && w._71(n, e), | |
u(n) | |
} | |
function u(n) { | |
if (1 === n._75 && (s(n, n._38), | |
n._38 = null), | |
2 === n._75) { | |
for (var e = 0; e < n._38.length; e++) | |
s(n, n._38[e]); | |
n._38 = null | |
} | |
} | |
function p(a, e, t) { | |
this.onFulfilled = "function" == typeof a ? a : null, | |
this.onRejected = "function" == typeof e ? e : null, | |
this.promise = t | |
} | |
function c(a, o) { | |
var t = !1 | |
, e = i(a, function(n) { | |
t || (t = !0, | |
l(o, n)) | |
}, function(n) { | |
t || (t = !0, | |
d(o, n)) | |
}); | |
t || e !== m || (t = !0, | |
d(o, h)) | |
} | |
var f = t(141) | |
, h = null | |
, m = {}; | |
x.exports = w, | |
w._47 = null, | |
w._71 = null, | |
w._44 = _, | |
w.prototype.then = function(o, e) { | |
if (this.constructor !== w) | |
return a(this, o, e); | |
var t = new w(_); | |
return s(this, new p(o,e,t)), | |
t | |
} | |
} | |
, function(a, s, t) { | |
"use strict"; | |
(function(d) { | |
function e() { | |
var e = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {} | |
, o = e.dangerouslyUseGlobalCSS | |
, t = e.productionPrefix | |
, n = void 0 === t ? "jss" : t | |
, a = 0; | |
return "undefined" != typeof window && (d.__MUI_GENERATOR_COUNTER__ += 1, | |
2 < d.__MUI_GENERATOR_COUNTER__ && console.error("Material-UI: we have detected more than needed creation of the class name generator.\nYou should only use one class name generator on the client side.\nIf you do otherwise, you take the risk to have conflicting class names in production.")), | |
function(i, e) { | |
if (a += 1, | |
void 0 !== o && o) { | |
if (e) { | |
if (e.options.name) | |
return "".concat(e.options.name, "-").concat(i.key); | |
e.options.classNamePrefix | |
} | |
return "".concat(n).concat(a) | |
} | |
return "".concat(n).concat(a) | |
} | |
} | |
var n = t(0); | |
Object.defineProperty(s, "__esModule", { | |
value: !0 | |
}), | |
s.default = e, | |
n(t(15)), | |
d.__MUI_GENERATOR_COUNTER__ = 0; | |
var o = /([[\].#*$><+~=|^:(),"'`\s])/g | |
} | |
).call(s, t(20)) | |
} | |
, function(d, e, t) { | |
"use strict"; | |
var n = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
e.default = void 0; | |
var o = n(t(167)) | |
, i = n(t(188)) | |
, a = n(t(190)) | |
, l = n(t(192)) | |
, s = n(t(194)) | |
, u = n(t(199)); | |
e.default = function() { | |
return { | |
plugins: [(0, | |
o.default)(), (0, | |
i.default)(), (0, | |
a.default)(), (0, | |
l.default)(), (0, | |
s.default)(), (0, | |
u.default)()] | |
} | |
} | |
} | |
, function(h, e, t) { | |
"use strict"; | |
function n(t) { | |
return t && t.__esModule ? t : { | |
default: t | |
} | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
e.create = e.createGenerateClassName = e.sheets = e.RuleList = e.SheetsManager = e.SheetsRegistry = e.toCssValue = e.getDynamicStyles = void 0; | |
var m = t(168); | |
Object.defineProperty(e, "getDynamicStyles", { | |
enumerable: !0, | |
get: function() { | |
return n(m).default | |
} | |
}); | |
var o = t(43); | |
Object.defineProperty(e, "toCssValue", { | |
enumerable: !0, | |
get: function() { | |
return n(o).default | |
} | |
}); | |
var i = t(89); | |
Object.defineProperty(e, "SheetsRegistry", { | |
enumerable: !0, | |
get: function() { | |
return n(i).default | |
} | |
}); | |
var a = t(169); | |
Object.defineProperty(e, "SheetsManager", { | |
enumerable: !0, | |
get: function() { | |
return n(a).default | |
} | |
}); | |
var l = t(31); | |
Object.defineProperty(e, "RuleList", { | |
enumerable: !0, | |
get: function() { | |
return n(l).default | |
} | |
}); | |
var s = t(66); | |
Object.defineProperty(e, "sheets", { | |
enumerable: !0, | |
get: function() { | |
return n(s).default | |
} | |
}); | |
var u = t(92); | |
Object.defineProperty(e, "createGenerateClassName", { | |
enumerable: !0, | |
get: function() { | |
return n(u).default | |
} | |
}); | |
var c = t(176) | |
, d = n(c) | |
, f = e.create = function(t) { | |
return new d.default(t) | |
} | |
; | |
e.default = f() | |
} | |
, function(n, e) { | |
"use strict"; | |
function t(n, e) { | |
if (!(n instanceof e)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}); | |
var a = function() { | |
function a(a, e) { | |
for (var t = 0, o; t < e.length; t++) | |
o = e[t], | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(a, o.key, o) | |
} | |
return function(e, t, n) { | |
return t && a(e.prototype, t), | |
n && a(e, n), | |
e | |
} | |
}() | |
, o = function() { | |
function n() { | |
t(this, n), | |
this.registry = [] | |
} | |
return a(n, [{ | |
key: "add", | |
value: function(a) { | |
var e = this.registry | |
, t = a.options.index; | |
if (-1 === e.indexOf(a)) { | |
if (0 === e.length || t >= this.index) | |
return void e.push(a); | |
for (var n = 0; n < e.length; n++) | |
if (e[n].options.index > t) | |
return void e.splice(n, 0, a) | |
} | |
} | |
}, { | |
key: "reset", | |
value: function() { | |
this.registry = [] | |
} | |
}, { | |
key: "remove", | |
value: function(n) { | |
var e = this.registry.indexOf(n); | |
this.registry.splice(e, 1) | |
} | |
}, { | |
key: "toString", | |
value: function(n) { | |
return this.registry.filter(function(t) { | |
return t.attached | |
}).map(function(e) { | |
return e.toString(n) | |
}).join("\n") | |
} | |
}, { | |
key: "index", | |
get: function() { | |
return 0 === this.registry.length ? 0 : this.registry[this.registry.length - 1].options.index | |
} | |
}]), | |
n | |
}(); | |
e.default = o | |
} | |
, function(a, e, t) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}); | |
var n = t(171) | |
, i = function(t) { | |
return t && t.__esModule ? t : { | |
default: t | |
} | |
}(n); | |
e.default = function(t) { | |
return t && t[i.default] && t === t[i.default]() | |
} | |
} | |
, function(n, e) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
e.default = function(n, e) { | |
n.renderable = e, | |
n.rules && e.cssRules && n.rules.link(e.cssRules) | |
} | |
} | |
, function(d, e, t) { | |
"use strict"; | |
function n(t) { | |
return t && t.__esModule ? t : { | |
default: t | |
} | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}); | |
var u = t(27) | |
, p = n(u) | |
, o = t(93) | |
, a = (n(o), | |
t(175)) | |
, i = n(a); | |
e.default = function() { | |
var a = 0; | |
return function(e, t) { | |
1e10 < (a += 1) && (0, | |
p.default)(!1, "[JSS] You might have a memory leak. Rule counter is at %s.", a); | |
var n = "c" | |
, s = ""; | |
return t && (n = t.options.classNamePrefix || "c", | |
null != t.options.jss.id && (s += t.options.jss.id)), | |
"" + n + i.default + s + a | |
} | |
} | |
} | |
, function(p, e, t) { | |
"use strict"; | |
function n(t) { | |
return t && t.__esModule ? t : { | |
default: t | |
} | |
} | |
function f(n, e) { | |
if (!(n instanceof e)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}); | |
var o = Object.assign || function(a) { | |
for (var e = 1, o; e < arguments.length; e++) | |
for (var i in o = arguments[e], | |
o) | |
Object.prototype.hasOwnProperty.call(o, i) && (a[i] = o[i]); | |
return a | |
} | |
, i = function() { | |
function a(a, e) { | |
for (var t = 0, o; t < e.length; t++) | |
o = e[t], | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(a, o.key, o) | |
} | |
return function(e, t, n) { | |
return t && a(e.prototype, t), | |
n && a(e, n), | |
e | |
} | |
}() | |
, a = t(91) | |
, l = n(a) | |
, s = t(31) | |
, u = n(s) | |
, c = function() { | |
function s(e, t) { | |
var n = this; | |
for (var i in f(this, s), | |
this.update = function(a, e) { | |
return "string" == typeof a ? n.rules.update(a, e) : n.rules.update(a), | |
n | |
} | |
, | |
this.attached = !1, | |
this.deployed = !1, | |
this.linked = !1, | |
this.classes = {}, | |
this.options = o({}, t, { | |
sheet: this, | |
parent: this, | |
classes: this.classes | |
}), | |
this.renderer = new t.Renderer(this), | |
this.rules = new u.default(this.options), | |
e) | |
this.rules.add(i, e[i]); | |
this.rules.process() | |
} | |
return i(s, [{ | |
key: "attach", | |
value: function() { | |
return this.attached ? this : (this.deployed || this.deploy(), | |
this.renderer.attach(), | |
!this.linked && this.options.link && this.link(), | |
this.attached = !0, | |
this) | |
} | |
}, { | |
key: "detach", | |
value: function() { | |
return this.attached ? (this.renderer.detach(), | |
this.attached = !1, | |
this) : this | |
} | |
}, { | |
key: "addRule", | |
value: function(a, e, t) { | |
var n = this.queue; | |
this.attached && !n && (this.queue = []); | |
var i = this.rules.add(a, e, t); | |
return this.options.jss.plugins.onProcessRule(i), | |
this.attached ? this.deployed ? (n ? n.push(i) : (this.insertRule(i), | |
this.queue && (this.queue.forEach(this.insertRule, this), | |
this.queue = void 0)), | |
i) : i : (this.deployed = !1, | |
i) | |
} | |
}, { | |
key: "insertRule", | |
value: function(n) { | |
var e = this.renderer.insertRule(n); | |
e && this.options.link && (0, | |
l.default)(n, e) | |
} | |
}, { | |
key: "addRules", | |
value: function(a, e) { | |
var t = []; | |
for (var n in a) | |
t.push(this.addRule(n, a[n], e)); | |
return t | |
} | |
}, { | |
key: "getRule", | |
value: function(t) { | |
return this.rules.get(t) | |
} | |
}, { | |
key: "deleteRule", | |
value: function(n) { | |
var e = this.rules.get(n); | |
return !!e && (this.rules.remove(e), | |
!this.attached || !e.renderable || this.renderer.deleteRule(e.renderable)) | |
} | |
}, { | |
key: "indexOf", | |
value: function(t) { | |
return this.rules.indexOf(t) | |
} | |
}, { | |
key: "deploy", | |
value: function() { | |
return this.renderer.deploy(), | |
this.deployed = !0, | |
this | |
} | |
}, { | |
key: "link", | |
value: function() { | |
var t = this.renderer.getRules(); | |
return t && this.rules.link(t), | |
this.linked = !0, | |
this | |
} | |
}, { | |
key: "toString", | |
value: function(t) { | |
return this.rules.toString(t) | |
} | |
}]), | |
s | |
}(); | |
e.default = c | |
} | |
, function(t) { | |
function e(a) { | |
if (a && a.__esModule) | |
return a; | |
var e = {}; | |
if (null != a) | |
for (var t in a) | |
if (Object.prototype.hasOwnProperty.call(a, t)) { | |
var n = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(a, t) : {}; | |
n.get || n.set ? Object.defineProperty(e, t, n) : e[t] = a[t] | |
} | |
return e.default = a, | |
e | |
} | |
t.exports = e | |
} | |
, function(t) { | |
"use strict"; | |
function p(d, e, t) { | |
if ("string" != typeof e) { | |
if (u) { | |
var c = l(e); | |
c && c !== u && p(d, c, t) | |
} | |
var y = a(e); | |
i && (y = y.concat(i(e))); | |
for (var x = 0, _; x < y.length; ++x) | |
if (_ = y[x], | |
!f[_] && !o[_] && (!t || !t[_])) { | |
var k = s(e, _); | |
try { | |
n(d, _, k) | |
} catch (t) {} | |
} | |
return d | |
} | |
return d | |
} | |
var f = { | |
childContextTypes: !0, | |
contextTypes: !0, | |
defaultProps: !0, | |
displayName: !0, | |
getDefaultProps: !0, | |
getDerivedStateFromProps: !0, | |
mixins: !0, | |
propTypes: !0, | |
type: !0 | |
} | |
, o = { | |
name: !0, | |
length: !0, | |
prototype: !0, | |
caller: !0, | |
callee: !0, | |
arguments: !0, | |
arity: !0 | |
} | |
, n = Object.defineProperty | |
, a = Object.getOwnPropertyNames | |
, i = Object.getOwnPropertySymbols | |
, s = Object.getOwnPropertyDescriptor | |
, l = Object.getPrototypeOf | |
, u = l && l(Object); | |
t.exports = p | |
} | |
, function(a, e, t) { | |
"use strict"; | |
var n = t(206); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
e.default = void 0; | |
var i = n(t(70)); | |
e.default = function(n, e) { | |
return e + "(" + (0, | |
i.default)(n) + ")" | |
} | |
} | |
, function(n, e) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
e.jss = "64a55d578f856d258dc345b094a2a2b3", | |
e.sheetsRegistry = "d4bd0baacbc52bbd48bbb9eb24344ecd", | |
e.managers = "b768b78919504fba9de2c03545c5cd3a", | |
e.sheetOptions = "6fc570d6bd61383819d0f9e7407c452d" | |
} | |
, function(s, e, t) { | |
"use strict"; | |
function d() { | |
var t = this.constructor.getDerivedStateFromProps(this.props, this.state); | |
null !== t && void 0 !== t && this.setState(t) | |
} | |
function p(a) { | |
function e(e) { | |
var t = this.constructor.getDerivedStateFromProps(a, e); | |
return null !== t && void 0 !== t ? t : null | |
} | |
this.setState(e.bind(this)) | |
} | |
function n(a, e) { | |
try { | |
var t = this.props | |
, n = this.state; | |
this.props = a, | |
this.state = e, | |
this.__reactInternalSnapshotFlag = !0, | |
this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(t, n) | |
} finally { | |
this.props = t, | |
this.state = n | |
} | |
} | |
function o(o) { | |
var e = o.prototype; | |
if (!e || !e.isReactComponent) | |
throw new Error("Can only polyfill class components"); | |
if ("function" != typeof o.getDerivedStateFromProps && "function" != typeof e.getSnapshotBeforeUpdate) | |
return o; | |
var t = null | |
, i = null | |
, f = null; | |
if ("function" == typeof e.componentWillMount ? t = "componentWillMount" : "function" == typeof e.UNSAFE_componentWillMount && (t = "UNSAFE_componentWillMount"), | |
"function" == typeof e.componentWillReceiveProps ? i = "componentWillReceiveProps" : "function" == typeof e.UNSAFE_componentWillReceiveProps && (i = "UNSAFE_componentWillReceiveProps"), | |
"function" == typeof e.componentWillUpdate ? f = "componentWillUpdate" : "function" == typeof e.UNSAFE_componentWillUpdate && (f = "UNSAFE_componentWillUpdate"), | |
null !== t || null !== i || null !== f) { | |
var h = o.displayName || o.name | |
, s = "function" == typeof o.getDerivedStateFromProps ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()"; | |
throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n" + h + " uses " + s + " but also contains the following legacy lifecycles:" + (null === t ? "" : "\n " + t) + (null === i ? "" : "\n " + i) + (null === f ? "" : "\n " + f) + "\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks") | |
} | |
if ("function" == typeof o.getDerivedStateFromProps && (e.componentWillMount = d, | |
e.componentWillReceiveProps = p), | |
"function" == typeof e.getSnapshotBeforeUpdate) { | |
if ("function" != typeof e.componentDidUpdate) | |
throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype"); | |
e.componentWillUpdate = n; | |
var u = e.componentDidUpdate; | |
e.componentDidUpdate = function(a, e, t) { | |
var n = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : t; | |
u.call(this, a, e, n) | |
} | |
} | |
return o | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
t.d(e, "polyfill", function() { | |
return o | |
}), | |
d.__suppressDeprecationWarning = !0, | |
p.__suppressDeprecationWarning = !0, | |
n.__suppressDeprecationWarning = !0 | |
} | |
, function(a, e, t) { | |
"use strict"; | |
var n = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
Object.defineProperty(e, "default", { | |
enumerable: !0, | |
get: function() { | |
return i.default | |
} | |
}); | |
var i = n(t(228)) | |
} | |
, function(a, e, t) { | |
"use strict"; | |
var n = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
Object.defineProperty(e, "default", { | |
enumerable: !0, | |
get: function() { | |
return i.default | |
} | |
}); | |
var i = n(t(229)) | |
} | |
, function(n, e) { | |
"use strict"; | |
function t(a, e) { | |
var t = a.timeout | |
, n = a.style | |
, i = void 0 === n ? {} : n; | |
return { | |
duration: i.transitionDuration || "number" == typeof t ? t : t[e.mode], | |
delay: i.transitionDelay | |
} | |
} | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
e.getTransitionProps = t, | |
e.reflow = void 0; | |
e.reflow = function(t) { | |
return t.scrollTop | |
} | |
} | |
, function(a, e, t) { | |
"use strict"; | |
var n = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
Object.defineProperty(e, "default", { | |
enumerable: !0, | |
get: function() { | |
return i.default | |
} | |
}); | |
var i = n(t(233)) | |
} | |
, function(a, e, t) { | |
"use strict"; | |
var n = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
Object.defineProperty(e, "default", { | |
enumerable: !0, | |
get: function() { | |
return i.default | |
} | |
}); | |
var i = n(t(236)) | |
} | |
, function(a, e, t) { | |
"use strict"; | |
function n(n, e) { | |
return i.default.cloneElement(n, { | |
className: (0, | |
s.default)(n.props.className, e) | |
}) | |
} | |
var o = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
e.cloneElementWithClassName = n, | |
e.cloneChildrenWithClassName = function(a, o) { | |
return i.default.Children.map(a, function(t) { | |
return i.default.isValidElement(t) && n(t, o) | |
}) | |
} | |
, | |
e.isMuiElement = function(n, e) { | |
return i.default.isValidElement(n) && -1 !== e.indexOf(n.type.muiName) | |
} | |
, | |
e.isMuiComponent = function(n, e) { | |
return -1 !== e.indexOf(n.muiName) | |
} | |
; | |
var i = o(t(1)) | |
, s = o(t(8)) | |
} | |
, function(a, e, t) { | |
"use strict"; | |
var n = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
Object.defineProperty(e, "default", { | |
enumerable: !0, | |
get: function() { | |
return i.default | |
} | |
}); | |
var i = n(t(239)) | |
} | |
, function(a) { | |
function o(t) { | |
return (o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { | |
return typeof t | |
} | |
: function(t) { | |
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t | |
} | |
)(t) | |
} | |
function e(n) { | |
return a.exports = "function" == typeof Symbol && "symbol" === o(Symbol.iterator) ? e = function(t) { | |
return o(t) | |
} | |
: e = function(t) { | |
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : o(t) | |
} | |
, | |
e(n) | |
} | |
a.exports = e | |
} | |
, function(a, e, t) { | |
"use strict"; | |
var n = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
Object.defineProperty(e, "default", { | |
enumerable: !0, | |
get: function() { | |
return s.default | |
} | |
}), | |
Object.defineProperty(e, "ModalManager", { | |
enumerable: !0, | |
get: function() { | |
return o.default | |
} | |
}); | |
var s = n(t(255)) | |
, o = n(t(108)) | |
} | |
, function(y, e, t) { | |
"use strict"; | |
function x(a, o) { | |
var t = -1; | |
return a.some(function(n, e) { | |
return !!o(n) && (t = e, | |
!0) | |
}), | |
t | |
} | |
function _(t) { | |
return parseInt((0, | |
i.default)(t, "paddingRight") || 0, 10) | |
} | |
function v(o, u) { | |
var t = { | |
overflow: "hidden" | |
}; | |
if (o.style = { | |
overflow: u.style.overflow, | |
paddingRight: u.style.paddingRight | |
}, | |
o.overflowing) { | |
var e = (0, | |
s.default)(); | |
t.paddingRight = "".concat(_(u) + e, "px"); | |
for (var n = (0, | |
d.default)(u).querySelectorAll(".mui-fixed"), i = 0, p; i < n.length; i += 1) | |
p = _(n[i]), | |
o.prevPaddings.push(p), | |
n[i].style.paddingRight = "".concat(p + e, "px") | |
} | |
Object.keys(t).forEach(function(n) { | |
u.style[n] = t[n] | |
}) | |
} | |
function k(a, e) { | |
Object.keys(a.style).forEach(function(t) { | |
e.style[t] = a.style[t] | |
}); | |
for (var t = (0, | |
d.default)(e).querySelectorAll(".mui-fixed"), n = 0; n < t.length; n += 1) | |
t[n].style.paddingRight = "".concat(a.prevPaddings[n], "px") | |
} | |
var n = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
e.default = void 0; | |
var a = n(t(10)) | |
, o = n(t(11)) | |
, i = n(t(256)) | |
, s = n(t(264)) | |
, d = n(t(22)) | |
, l = n(t(265)) | |
, u = t(267) | |
, p = function() { | |
function i() { | |
var e = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {}; | |
(0, | |
a.default)(this, i); | |
var t = e.hideSiblingNodes | |
, n = e.handleContainerOverflow; | |
this.hideSiblingNodes = void 0 === t || t, | |
this.handleContainerOverflow = void 0 === n || n, | |
this.modals = [], | |
this.containers = [], | |
this.data = [] | |
} | |
return (0, | |
o.default)(i, [{ | |
key: "add", | |
value: function(a, e) { | |
var t = this.modals.indexOf(a); | |
if (-1 !== t) | |
return t; | |
t = this.modals.length, | |
this.modals.push(a), | |
this.hideSiblingNodes && (0, | |
u.hideSiblings)(e, a.mountNode); | |
var i = this.containers.indexOf(e); | |
if (-1 !== i) | |
return this.data[i].modals.push(a), | |
t; | |
var s = { | |
modals: [a], | |
overflowing: (0, | |
l.default)(e), | |
prevPaddings: [] | |
}; | |
return this.handleContainerOverflow && v(s, e), | |
this.containers.push(e), | |
this.data.push(s), | |
t | |
} | |
}, { | |
key: "remove", | |
value: function(a) { | |
var e = this.modals.indexOf(a); | |
if (-1 === e) | |
return e; | |
var t = x(this.data, function(e) { | |
return -1 !== e.modals.indexOf(a) | |
}) | |
, n = this.data[t] | |
, o = this.containers[t]; | |
return n.modals.splice(n.modals.indexOf(a), 1), | |
this.modals.splice(e, 1), | |
0 === n.modals.length ? (this.handleContainerOverflow && k(n, o), | |
this.hideSiblingNodes && (0, | |
u.showSiblings)(o, a.mountNode), | |
this.containers.splice(t, 1), | |
this.data.splice(t, 1)) : this.hideSiblingNodes && (0, | |
u.ariaHidden)(!1, n.modals[n.modals.length - 1].mountNode), | |
e | |
} | |
}, { | |
key: "isTopModal", | |
value: function(t) { | |
return !!this.modals.length && this.modals[this.modals.length - 1] === t | |
} | |
}]), | |
i | |
}(); | |
e.default = p | |
} | |
, function(s, e, t) { | |
"use strict"; | |
var n = t(30); | |
e.__esModule = !0, | |
e.default = function(t) { | |
return (0, | |
o.default)(t.replace(i, "ms-")) | |
} | |
; | |
var o = n(t(257)) | |
, i = /^-ms-/; | |
s.exports = e.default | |
} | |
, function(n, e) { | |
"use strict"; | |
e.__esModule = !0, | |
e.default = void 0; | |
var t = "undefined" != typeof window && window.document && window.document.createElement; | |
e.default = t, | |
n.exports = e.default | |
} | |
, function(a, e, t) { | |
"use strict"; | |
var n = t(0); | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}), | |
Object.defineProperty(e, "default", { | |
enumerable: !0, | |
get: function() { | |
return i.default | |
} | |
}); | |
var i = n(t(270)) | |
} | |
, function(w, e, t) { | |
"use strict"; | |
function C(n, e) { | |
if (!(n instanceof e)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
function E(n, e) { | |
if (!n) | |
throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
return e && ("object" == typeof e || "function" == typeof e) ? e : n | |
} | |
function n(n, e) { | |
if ("function" != typeof e && null !== e) | |
throw new TypeError("Super expression must either be null or a function, not " + typeof e); | |
n.prototype = Object.create(e && e.prototype, { | |
constructor: { | |
value: n, | |
enumerable: !1, | |
writable: !0, | |
configurable: !0 | |
} | |
}), | |
e && (Object.setPrototypeOf ? Object.setPrototypeOf(n, e) : n.__proto__ = e) | |
} | |
var o = t(1) | |
, a = t.n(o) | |
, i = t(2) | |
, s = t.n(i) | |
, l = t(40) | |
, u = (t.n(l), | |
t(29)) | |
, d = t.n(u) | |
, c = t(48) | |
, p = t.n(c) | |
, f = t(73) | |
, h = t.n(f) | |
, m = t(75) | |
, y = t(295) | |
, v = t(297) | |
, T = function() { | |
function a(a, e) { | |
for (var t = 0, o; t < e.length; t++) | |
o = e[t], | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(a, o.key, o) | |
} | |
return function(e, t, n) { | |
return t && a(e.prototype, t), | |
n && a(e, n), | |
e | |
} | |
}() | |
, x = function(a) { | |
function o(t) { | |
C(this, o); | |
var e = E(this, (o.__proto__ || Object.getPrototypeOf(o)).call(this, t)); | |
k.call(e), | |
e.show = e.show.bind(e), | |
e.hide = e.hide.bind(e), | |
e.handleClickReplay = e.handleClickReplay.bind(e), | |
e.handleClickPlay = e.handleClickPlay.bind(e), | |
e.pause = e.pause.bind(e), | |
e.onPlay = e.onPlay.bind(e), | |
e.onPause = e.onPause.bind(e), | |
e.updateWindowDimensions = e.updateWindowDimensions.bind(e); | |
var n = window.innerWidth / 1e3; | |
return e.state = { | |
isHidden: t.isHidden, | |
play: !1, | |
scale: 1 < n ? 1 : n, | |
isTransition: !1 | |
}, | |
o.current = e, | |
e | |
} | |
return n(o, a), | |
T(o, [{ | |
key: "componentDidMount", | |
value: function() { | |
this.updateWindowDimensions(), | |
window.addEventListener("resize", this.updateWindowDimensions) | |
} | |
}, { | |
key: "componentWillUnmount", | |
value: function() { | |
window.removeEventListener("resize", this.updateWindowDimensions) | |
} | |
}, { | |
key: "updateWindowDimensions", | |
value: function() { | |
var t = window.innerWidth / 1e3; | |
this.setState({ | |
scale: 1 < t ? 1 : t | |
}) | |
} | |
}]), | |
o | |
}(a.a.Component) | |
, k = function() { | |
var o = this; | |
this.show = function() { | |
!o.state.isTransition && o.state.isHidden && (o.setState({ | |
isHidden: !1, | |
isTransition: !0 | |
}), | |
setTimeout(function() { | |
return o.setState({ | |
isTransition: !1 | |
}) | |
}, 300)) | |
} | |
, | |
this.hide = function() { | |
o.state.isTransition || o.state.isHidden || (o.pause(), | |
o.setState({ | |
isHidden: !0, | |
isTransition: !0 | |
}), | |
setTimeout(function() { | |
return o.setState({ | |
isTransition: !1 | |
}) | |
}, 300)) | |
} | |
, | |
this.handleChange = function(e, a) { | |
o.setState(function(e) { | |
return e.play && o.onPause(), | |
x.setDate(a), | |
{ | |
play: !1 | |
} | |
}) | |
} | |
, | |
this.handleClickReplay = function() { | |
o.setState(function() { | |
return x.setDate(0), | |
o.refs.timelapseSlider1.setState({ | |
value: 0 | |
}), | |
o.onPlay(), | |
{ | |
play: !0 | |
} | |
}) | |
} | |
, | |
this.handleClickPlay = function() { | |
o.setState(function(e) { | |
var t = !e.play; | |
return t ? o.onPlay() : o.onPause(), | |
{ | |
play: t | |
} | |
}) | |
} | |
, | |
this.pause = function() { | |
o.setState(function() { | |
return o.onPause(), | |
{ | |
play: !1 | |
} | |
}) | |
} | |
, | |
this.onPlay = function() {} | |
, | |
this.onPause = function() {} | |
, | |
this.render = function() { | |
var e = o.props.classes | |
, t = 1 > o.state.scale ? { | |
right: "0px", | |
left: "0px" | |
} : {} | |
, n = a.a.createElement("div", null, a.a.createElement(v.a, { | |
isHidden: !0, | |
ref: "timelapseDateBox1" | |
}), a.a.createElement("div", { | |
className: e.panel, | |
style: t | |
}, a.a.createElement(h.a, { | |
id: "tooltip-icon", | |
title: "Replay", | |
enterDelay: 300 | |
}, a.a.createElement(p.a, { | |
"aria-label": "Replay", | |
className: e.tlIconLeft, | |
style: { | |
color: "white" | |
}, | |
onClick: o.handleClickReplay | |
}, a.a.createElement(d.a, null, "replay"))), a.a.createElement(h.a, { | |
id: "tooltip-icon", | |
title: o.state.play ? "Pause" : "Play", | |
enterDelay: 300 | |
}, a.a.createElement(p.a, { | |
"aria-label": "Play", | |
className: e.tlIconLeft, | |
style: { | |
color: "white" | |
}, | |
onClick: o.handleClickPlay | |
}, a.a.createElement(d.a, null, o.state.play ? "pause" : "play_arrow"))), a.a.createElement("div", { | |
style: { | |
flexBasis: "8000px" | |
} | |
}, a.a.createElement(m.a, { | |
label: "", | |
initVal: x.date, | |
onChange: o.handleChange, | |
ref: "timelapseSlider1" | |
})), a.a.createElement("div", { | |
style: { | |
padding: "16px" | |
} | |
}), a.a.createElement(y.a, { | |
className: e.tlIconRight | |
}))); | |
return a.a.createElement("div", { | |
style: { | |
display: !o.state.isTransition && o.state.isHidden ? "none" : "block" | |
}, | |
className: o.state.isHidden ? "fadeOut" : "fadeIn" | |
}, a.a.createElement("div", { | |
style: { | |
width: "100%", | |
height: "75px", | |
background: "linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.5))", | |
left: "0px", | |
bottom: "0px", | |
position: "absolute" | |
} | |
}), n) | |
} | |
}; | |
x.propTypes = { | |
classes: s.a.object.isRequired | |
}, | |
x.current = void 0, | |
x.speed = .5, | |
x.date = 0, | |
x.show = function() { | |
x.current.show() | |
} | |
, | |
x.hide = function() { | |
x.current.hide() | |
} | |
, | |
x.setSpeed = function(t) { | |
x.speed = t, | |
S(10, .602 * (2 * t - 1)) | |
} | |
, | |
x.getSpeed = function() { | |
return x.speed | |
} | |
, | |
x.setDate = function(t) { | |
x.date = t | |
} | |
, | |
x.getDate = function() { | |
return x.date | |
} | |
, | |
e.a = Object(l.withStyles)(function(t) { | |
return { | |
fab: { | |
margin: 2 * t.spacing.unit | |
}, | |
panel: { | |
position: "absolute", | |
right: "200px", | |
left: "200px", | |
bottom: "10px", | |
display: "flex", | |
flexDirection: "row", | |
alignItems: "center" | |
}, | |
tlIconLeft: {}, | |
tlIconRight: {} | |
} | |
})(x) | |
} | |
, function(p, e, t) { | |
"use strict"; | |
function f(n, e) { | |
if (!(n instanceof e)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
function h(n, e) { | |
if (!n) | |
throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
return e && ("object" == typeof e || "function" == typeof e) ? e : n | |
} | |
function n(n, e) { | |
if ("function" != typeof e && null !== e) | |
throw new TypeError("Super expression must either be null or a function, not " + typeof e); | |
n.prototype = Object.create(e && e.prototype, { | |
constructor: { | |
value: n, | |
enumerable: !1, | |
writable: !0, | |
configurable: !0 | |
} | |
}), | |
e && (Object.setPrototypeOf ? Object.setPrototypeOf(n, e) : n.__proto__ = e) | |
} | |
var o = t(1) | |
, a = t.n(o) | |
, i = t(50) | |
, s = t.n(i) | |
, l = function() { | |
function a(a, e) { | |
for (var t = 0, o; t < e.length; t++) | |
o = e[t], | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(a, o.key, o) | |
} | |
return function(e, t, n) { | |
return t && a(e.prototype, t), | |
n && a(e, n), | |
e | |
} | |
}() | |
, u = function(o) { | |
function s(t) { | |
f(this, s); | |
var a = h(this, (s.__proto__ || Object.getPrototypeOf(s)).call(this, t)); | |
a.setMessageId = function(t) { | |
a.setState({ | |
id: t | |
}) | |
} | |
, | |
a.setShareLinksURL = function(t) { | |
a.setState({ | |
currentURL: t | |
}) | |
} | |
, | |
a.show = function() { | |
a.state.isHidden && (document.ESU && document.ESU.mode && 1 === document.ESU.mode.getCurrentModeId() || (a.setState({ | |
isHidden: !1, | |
isTransition: !0 | |
}), | |
setTimeout(function() { | |
return a.setState({ | |
isTransition: !1 | |
}) | |
}, 300))) | |
} | |
, | |
a.hide = function() { | |
a.state.isHidden || (a.setState({ | |
isHidden: !0, | |
isTransition: !0 | |
}), | |
setTimeout(function() { | |
return a.setState({ | |
isTransition: !1 | |
}) | |
}, 300)) | |
} | |
, | |
a.setMessageId = a.setMessageId.bind(a), | |
a.show = a.show.bind(a), | |
a.hide = a.hide.bind(a), | |
a.updateWindowDimensions = a.updateWindowDimensions.bind(a); | |
var e = window.innerWidth / 1e3; | |
return document.ESU && document.ESU.message && (document.ESU.message.setMessageId = a.setMessageId, | |
document.ESU.message.setShareLinksURL = a.setShareLinksURL, | |
document.ESU.message.show = a.show, | |
document.ESU.message.hide = a.hide), | |
a.state = { | |
id: 0, | |
currentURL: "pixelzone.io", | |
isHidden: t.isHidden, | |
scale: 1 < e ? 1 : e, | |
isTransition: !1 | |
}, | |
s.current = a, | |
a | |
} | |
return n(s, o), | |
l(s, [{ | |
key: "componentDidMount", | |
value: function() { | |
this.updateWindowDimensions(), | |
window.addEventListener("resize", this.updateWindowDimensions) | |
} | |
}, { | |
key: "componentWillUnmount", | |
value: function() { | |
window.removeEventListener("resize", this.updateWindowDimensions) | |
} | |
}, { | |
key: "updateWindowDimensions", | |
value: function() { | |
var t = window.innerWidth / 1e3; | |
this.setState({ | |
scale: 1 < t ? 1 : t | |
}) | |
} | |
}, { | |
key: "render", | |
value: function() { | |
var t = 1e3 > window.innerWidth ? window.innerWidth / 1e3 : 1; | |
var e = this.state.id | |
, n = 260 | |
, d = 10; | |
0 === e ? (n = 420, | |
d = 0) : (n = 260, | |
d = 0); | |
var l = a.a.createElement("div", { | |
id: "message", | |
className: "trBg", | |
style: { | |
top: "0px", | |
transformOrigin: "50% 0%", | |
transform: "translate(-50%, 0) scale(" + t + ")", | |
padding: d + "px", | |
width: n + "px" | |
} | |
}, s.getContents(e, this.state.currentURL)); | |
return a.a.createElement("div", { | |
style: { | |
display: !this.state.isTransition && this.state.isHidden ? "none" : "block" | |
}, | |
className: this.state.isHidden ? "fadeOut" : "fadeIn" | |
}, l) | |
} | |
}]), | |
s | |
}(a.a.Component); | |
u.contactDiscordPath = "res/img/contact_discord.png", | |
u.contactFacebookPath = "res/img/contact_fb.png", | |
u.current = void 0, | |
u.getContents = function(n, e) { | |
return [a.a.createElement("ul", { | |
style: { | |
margin: "0 0 0 0", | |
padding: "0px", | |
textAlign: "center", | |
display: "flex" | |
} | |
}, a.a.createElement("div", { | |
style: { | |
padding: "10px" | |
} | |
}), a.a.createElement("div", null, a.a.createElement("p", null, "This site uses cookies to ensure you get the best experience on our site. \xA0")), a.a.createElement("div", { | |
style: { | |
padding: "10px" | |
} | |
}), a.a.createElement("div", null, a.a.createElement(s.a, { | |
onClick: function() { | |
u.current.hide(), | |
document.ESU && document.ESU.onCookiesAgreement && document.ESU.onCookiesAgreement() | |
}, | |
style: { | |
transform: "translate(0%, -50%)", | |
transformOrigin: "0% 50%", | |
top: "50%" | |
}, | |
variant: "contained", | |
color: "primary" | |
}, "Accept")), a.a.createElement("div", { | |
style: { | |
padding: "10px" | |
} | |
})), a.a.createElement("p", { | |
style: { | |
margin: "10px 0 10px 0", | |
textAlign: "center" | |
} | |
}, "Find us on Discord & Facebook:", a.a.createElement("a", { | |
target: "_blank", | |
href: "https://discord.gg/sdqhRKW" | |
}, a.a.createElement("img", { | |
alt: "contactDiscord", | |
src: u.contactDiscordPath, | |
width: "100px", | |
height: "32px", | |
style: { | |
padding: "5px", | |
backgroundSize: "100%" | |
} | |
})), a.a.createElement("a", { | |
target: "_blank", | |
href: "https://www.facebook.com/pixelzoneio" | |
}, a.a.createElement("img", { | |
alt: "contactFb", | |
src: u.contactFacebookPath, | |
width: "100px", | |
height: "32px", | |
style: { | |
padding: "5px", | |
backgroundSize: "100%" | |
} | |
}))), a.a.createElement("p", { | |
style: { | |
margin: "10px 0 10px 0", | |
textAlign: "center" | |
} | |
}, "Ask your friends to help you draw :", a.a.createElement("div", { | |
className: "social-icons", | |
style: { | |
display: "flex", | |
justifyContent: "center" | |
} | |
}, a.a.createElement("div", null, a.a.createElement("a", { | |
id: "share_fb", | |
target: "_blank", | |
href: "http://www.facebook.com/share.php?u=" + e + "&title=Help%20me%20draw%20!", | |
rel: "noopener noreferrer" | |
}, " ", a.a.createElement("i", { | |
className: "fab fa-facebook" | |
}))), a.a.createElement("div", null, a.a.createElement("a", { | |
id: "share_tw", | |
target: "_blank", | |
href: "http://twitter.com/share?url=" + e + "&text=Help%20me%20draw%20!&hashtags=pixelzone", | |
rel: "noopener noreferrer", | |
className: "social-icons" | |
}, " ", a.a.createElement("i", { | |
className: "fab fa-twitter" | |
}))), a.a.createElement("div", null, a.a.createElement("a", { | |
id: "share_rd", | |
target: "_blank", | |
href: "http://www.reddit.com/submit?url=" + e + "&title=Help%20me%20draw%20!", | |
rel: "noopener noreferrer" | |
}, " ", a.a.createElement("i", { | |
className: "fab fa-reddit-alien" | |
}))), a.a.createElement("div", null, a.a.createElement("a", { | |
id: "share_gp", | |
target: "_blank", | |
href: "https://plus.google.com/share?url=" + e, | |
rel: "noopener noreferrer" | |
}, " ", a.a.createElement("i", { | |
className: "fab fa-google-plus-g" | |
}))), a.a.createElement("div", null, a.a.createElement("a", { | |
id: "share_sk", | |
href: "skype:echo123?chat", | |
rel: "noopener noreferrer" | |
}, " ", a.a.createElement("i", { | |
className: "fab fa-skype" | |
}))), a.a.createElement("div", null, a.a.createElement("a", { | |
id: "share_dc", | |
target: "_blank", | |
href: "https://discordapp.com/channels/@me", | |
rel: "noopener noreferrer" | |
}, " ", a.a.createElement("i", { | |
className: "fab fa-discord" | |
})))))][n] | |
} | |
, | |
u.show = function() { | |
u.current.show() | |
} | |
, | |
u.hide = function() { | |
u.current.hide() | |
} | |
, | |
e.a = u | |
} | |
, function(d, e, t) { | |
"use strict"; | |
function p(n, e) { | |
if (!(n instanceof e)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
function f(n, e) { | |
if (!n) | |
throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
return e && ("object" == typeof e || "function" == typeof e) ? e : n | |
} | |
function n(n, e) { | |
if ("function" != typeof e && null !== e) | |
throw new TypeError("Super expression must either be null or a function, not " + typeof e); | |
n.prototype = Object.create(e && e.prototype, { | |
constructor: { | |
value: n, | |
enumerable: !1, | |
writable: !0, | |
configurable: !0 | |
} | |
}), | |
e && (Object.setPrototypeOf ? Object.setPrototypeOf(n, e) : n.__proto__ = e) | |
} | |
var o = t(1) | |
, a = t.n(o) | |
, i = t(50) | |
, s = (t.n(i), | |
function() { | |
function a(a, e) { | |
for (var t = 0, o; t < e.length; t++) | |
o = e[t], | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(a, o.key, o) | |
} | |
return function(e, t, n) { | |
return t && a(e.prototype, t), | |
n && a(e, n), | |
e | |
} | |
}()) | |
, l = function(o) { | |
function i(t) { | |
p(this, i); | |
var a = f(this, (i.__proto__ || Object.getPrototypeOf(i)).call(this, t)); | |
return a.tick = function() { | |
a.setState(function(t) { | |
return { | |
counter: B(t.counter - 1, 0) | |
} | |
}), | |
0 >= a.state.counter && a.resetTimerID() | |
} | |
, | |
a.setTimerCounter = function(t) { | |
a.resetTimerID(), | |
a.timerID = setInterval(function() { | |
return a.tick() | |
}, 1e3), | |
a.setState({ | |
counter: t | |
}) | |
} | |
, | |
a.show = function() { | |
a.state.isHidden && (document.ESU && document.ESU.mode && 1 === document.ESU.mode.getCurrentModeId() || (a.setState({ | |
isHidden: !1, | |
isTransition: !0 | |
}), | |
setTimeout(function() { | |
return a.setState({ | |
isTransition: !1 | |
}) | |
}, 300))) | |
} | |
, | |
a.hide = function() { | |
a.state.isHidden || (a.setState({ | |
isHidden: !0, | |
isTransition: !0 | |
}), | |
setTimeout(function() { | |
return a.setState({ | |
isTransition: !1 | |
}) | |
}, 300)) | |
} | |
, | |
a.resetTimerID = function() { | |
clearInterval(a.timerID), | |
a.timerID = void 0 | |
} | |
, | |
a.setTimerCounter = a.setTimerCounter.bind(a), | |
a.show = a.show.bind(a), | |
a.hide = a.hide.bind(a), | |
a.resetTimerID = a.resetTimerID.bind(a), | |
document.ESU && document.ESU.message && (document.ESU.timer.setTimerCounter = a.setTimerCounter, | |
document.ESU.timer.show = a.show, | |
document.ESU.timer.hide = a.hide), | |
a.state = { | |
counter: 0, | |
isHidden: t.isHidden, | |
isTransition: !1 | |
}, | |
i.current = a, | |
a | |
} | |
return n(i, o), | |
s(i, [{ | |
key: "render", | |
value: function() { | |
1e3 > window.innerWidth && window.innerWidth; | |
var t = a.a.createElement("div", { | |
id: "timer", | |
className: "trBg", | |
style: { | |
display: "flex", | |
justifyContent: "center", | |
alignItems: "center", | |
top: "0px", | |
transformOrigin: "50% 0%", | |
transform: "translate(-50%, 0)" | |
} | |
}, this.state.counter); | |
return a.a.createElement("div", { | |
style: { | |
display: !this.state.isTransition && this.state.isHidden ? "none" : "block" | |
}, | |
className: this.state.isHidden ? "fadeOut" : "fadeIn" | |
}, t) | |
} | |
}]), | |
i | |
}(a.a.Component); | |
l.current = void 0, | |
l.show = function() { | |
l.current.show() | |
} | |
, | |
l.hide = function() { | |
l.current.hide() | |
} | |
, | |
e.a = l | |
} | |
, function(d, e, t) { | |
"use strict"; | |
function p(n, e) { | |
if (!(n instanceof e)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
function f(n, e) { | |
if (!n) | |
throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
return e && ("object" == typeof e || "function" == typeof e) ? e : n | |
} | |
function n(n, e) { | |
if ("function" != typeof e && null !== e) | |
throw new TypeError("Super expression must either be null or a function, not " + typeof e); | |
n.prototype = Object.create(e && e.prototype, { | |
constructor: { | |
value: n, | |
enumerable: !1, | |
writable: !0, | |
configurable: !0 | |
} | |
}), | |
e && (Object.setPrototypeOf ? Object.setPrototypeOf(n, e) : n.__proto__ = e) | |
} | |
var o = t(1) | |
, a = t.n(o) | |
, i = (t(23), | |
t(298)) | |
, s = function() { | |
function a(a, e) { | |
for (var t = 0, o; t < e.length; t++) | |
o = e[t], | |
o.enumerable = o.enumerable || !1, | |
o.configurable = !0, | |
"value"in o && (o.writable = !0), | |
Object.defineProperty(a, o.key, o) | |
} | |
return function(e, t, n) { | |
return t && a(e.prototype, t), | |
n && a(e, n), | |
e | |
} | |
}() | |
, l = function(o) { | |
function d(t) { | |
p(this, d); | |
var a = f(this, (d.__proto__ || Object.getPrototypeOf(d)).call(this, t)); | |
return a.update = function() { | |
a.setState(function(t) { | |
var e = Date.now() | |
, n = (e - t.startDatePos) / 20 | |
, a = (e - t.startDateBorder) / 200; | |
return 1 < n && (n = 1), | |
1 < a && (a = 1), | |
{ | |
fromX: i.a.linear(t.fromX, t.toX, n), | |
fromY: i.a.linear(t.fromY, t.toY, n), | |
borderWidthCoef: i.a.linear(d.onClickBorderWidthCoef, d.defaultBorderWidthCoef, a) | |
} | |
}), | |
a.state.endTime < Date.now() && a.resetUpdateInterval() | |
} | |
, | |
a.resetUpdateInterval = function() { | |
clearInterval(a.updateInterval), | |
a.updateInterval = void 0, | |
a.setState(function(t) { | |
return { | |
borderWidthCoef: d.defaultBorderWidthCoef, | |
fromX: t.toX, | |
fromY: t.toY | |
} | |
}) | |
} | |
, | |
a.onClick = function() { | |
var t = Date.now(); | |
a.setState(function(e) { | |
return { | |
borderWidthCoef: d.onClickBorderWidthCoef, | |
endTime: 200 > e.endTime - t ? t + 200 : e.endTime, | |
startDateBorder: t | |
} | |
}), | |
a.updateInterval || (a.updateInterval = setInterval(a.update, 0)) | |
} | |
, | |
a.setPos = function(i, e, t) { | |
var s = Date.now(); | |
if (t) { | |
if (a.setState(function(t) { | |
return { | |
toX: i, | |
toY: e, | |
endTime: 20 > t.endTime - s ? s + 20 : t.endTime, | |
startDatePos: s | |
} | |
}), | |
a.updateInterval) | |
return; | |
a.updateInterval = setInterval(a.update, 0) | |
} else | |
a.setState(function() { | |
return { | |
fromX: i, | |
fromY: e, | |
toX: i, | |
toY: e, | |
startDatePos: s - 20 | |
} | |
}) | |
} | |
, | |
a.setZoom = function(t) { | |
a.setState({ | |
zoom: t | |
}) | |
} | |
, | |
a.setBorderColor = function(t) { | |
a.setState({ | |
borderColor: t | |
}) | |
} | |
, | |
a.show = function() { | |
!a.state.isTransition && a.state.isHidden && (document.ESU && document.ESU.mode && 1 === document.ESU.mode.getCurrentModeId() || (a.setState({ | |
isHidden: !1 | |
}), | |
setTimeout(function() { | |
return a.setState({ | |
isTransition: !1 | |
}) | |
}, 300))) | |
} | |
, | |
a.hide = function() { | |
a.state.isTransition || a.state.isHidden || (a.setState({ | |
isHidden: !0 | |
}), | |
setTimeout(function() { | |
return a.setState({ | |
isTransition: !1 | |
}) | |
}, 300)) | |
} | |
, | |
a.widthCoef = 1, | |
a.updateInterval = void 0, | |
a.update = a.update.bind(a), | |
a.resetUpdateInterval = a.resetUpdateInterval.bind(a), | |
a.onClick = a.onClick.bind(a), | |
a.setPos = a.setPos.bind(a), | |
a.setZoom = a.setZoom.bind(a), | |
a.setBorderColor = a.setBorderColor.bind(a), | |
a.show = a.show.bind(a), | |
a.hide = a.hide.bind(a), | |
document.ESU && document.ESU.selector && (document.ESU.selector.show = a.show, | |
document.ESU.selector.hide = a.hide, | |
document.ESU.selector.onClick = a.onClick, | |
document.ESU.selector.setPos = a.setPos, | |
document.ESU.selector.setZoom = a.setZoom, | |
document.ESU.selector.setBorderColor = a.setBorderColor), | |
a.state = { | |
borderWidthCoef: d.defaultBorderWidthCoef, | |
startDatePos: Date.now(), | |
startDateBorder: Date.now(), | |
fromX: 0, | |
fromY: 0, | |
toX: 0, | |
toY: 0, | |
borderColor: "black", | |
zoom: 1, | |
endTime: 0, | |
isHidden: t.isHidden | |
}, | |
d.current = a, | |
a | |
} | |
return n(d, o), | |
s(d, [{ | |
key: "render", | |
value: function() { | |
var s = -this.state.zoom * (this.widthCoef + this.state.borderWidthCoef) / 2 | |
, e = this.state.fromX * this.state.zoom + "px" | |
, t = this.state.fromY * this.state.zoom + "px" | |
, n = (this.widthCoef - this.state.borderWidthCoef) * this.state.zoom + "px" | |
, d = this.state.borderWidthCoef * this.state.zoom + "px solid " + this.state.borderColor | |
, o = a.a.createElement("div", { | |
id: "selector", | |
style: { | |
left: e, | |
top: t, | |
margin: s + "px 0 0 " + s + "px", | |
width: n, | |
height: n, | |
border: d | |
} | |
}); | |
return a.a.createElement("div", { | |
className: this.state.isHidden ? "fadeOut400" : "fadeIn" | |
}, o) | |
} | |
}]), | |
d | |
}(a.a.Component); | |
l.current = void 0, | |
l.defaultBorderWidthCoef = .1, | |
l.onClickBorderWidthCoef = .5, | |
l.show = function() { | |
l.current.show() | |
} | |
, | |
l.hide = function() { | |
l.current.hide() | |
} | |
, | |
e.a = l | |
} | |
, function(a, _, t) { | |
"use strict"; | |
(function(n) { | |
function S(a, e) { | |
var t = {}; | |
for (var n in a) | |
0 <= e.indexOf(n) || Object.prototype.hasOwnProperty.call(a, n) && (t[n] = a[n]); | |
return t | |
} | |
function C(n, e) { | |
if (!(n instanceof e)) | |
throw new TypeError("Cannot call a class as a function") | |
} | |
function o(n, e) { | |
if (!n) | |
throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
return e && ("object" == typeof e || "function" == typeof e) ? e : n | |
} | |
function i(n, e) { | |
if ("function" != typeof e && null !== e) | |
throw new TypeError("Super expression must either be null or a function, not " + typeof e); | |
n.prototype = Object.create(e && e.prototype, { | |
constructor: { | |
value: n, | |
enumerable: !1, | |
writable: !0, | |
configurable: !0 | |
} | |
}), | |
e && (Object.setPrototypeOf ? Object.setPrototypeOf(n, e) : n.__proto__ = e) | |
} | |
t.d(_, "b", function() { | |
return x | |
}), | |
t.d(_, "a", function() { | |
return w | |
}); | |
var e = t(1) | |
, a = t.n(e) | |
, s = t(2) | |
, l = t.n(s) | |
, u = t(301) | |
, d = t.n(u) | |
, c = t(344) | |
, p = t.n(c) | |
, f = t(406) | |
, h = (t.n(f), | |
t(431)) | |
, m = t.n(h) | |
, y = Object.assign || function(a) { | |
for (var e = 1, o; e < arguments.length; e++) | |
for (var i in o = arguments[e], | |
o) | |
Object.prototype.hasOwnProperty.call(o, i) && (a[i] = o[i]); | |
return a | |
} | |
, v = "undefined" != typeof n && { | |
NODE_ENV: "production", | |
PUBLIC_URL: "." | |
} && "production" | |
, E = function(c) { | |
function f() { | |
var e, d, t; | |
C(this, f); | |
for (var i = arguments.length, l = Array(i), s = 0; s < i; s++) | |
l[s] = arguments[s]; | |
return e = d = o(this, c.call.apply(c, [this].concat(l))), | |
d.handleOnClick = function(s) { | |
var e = d.chartInstance | |
, t = d.props | |
, n = t.getDatasetAtEvent | |
, o = t.getElementAtEvent | |
, i = t.getElementsAtEvent | |
, a = t.onElementsClick; | |
n && n(e.getDatasetAtEvent(s), s), | |
o && o(e.getElementAtEvent(s), s), | |
i && i(e.getElementsAtEvent(s), s), | |
a && a(e.getElementsAtEvent(s), s) | |
} | |
, | |
d.ref = function(t) { | |
d.element = t | |
} | |
, | |
t = e, | |
o(d, t) | |
} | |
return i(f, c), | |
f.prototype.componentWillMount = function() { | |
this.chartInstance = void 0 | |
} | |
, | |
f.prototype.componentDidMount = function() { | |
this.renderChart() | |
} | |
, | |
f.prototype.componentDidUpdate = function() { | |
return this.props.redraw ? (this.chartInstance.destroy(), | |
void this.renderChart()) : void this.updateChart() | |
} | |
, | |
f.prototype.shouldComponentUpdate = function(d) { | |
var e = this.props | |
, t = (e.redraw, | |
e.type) | |
, n = e.options | |
, u = e.plugins | |
, o = e.legend | |
, i = e.height | |
, a = e.width; | |
if (!0 === d.redraw) | |
return !0; | |
if (i !== d.height || a !== d.width) | |
return !0; | |
if (t !== d.type) | |
return !0; | |
if (!p()(o, d.legend)) | |
return !0; | |
if (!p()(n, d.options)) | |
return !0; | |
var l = this.transformDataProp(d); | |
return !p()(this.shadowDataProp, l) || !p()(u, d.plugins) | |
} | |
, | |
f.prototype.componentWillUnmount = function() { | |
this.chartInstance.destroy() | |
} | |
, | |
f.prototype.transformDataProp = function(n) { | |
var e = n.data; | |
return "function" == typeof e ? e(this.element) : e | |
} | |
, | |
f.prototype.memoizeDataProps = function() { | |
if (this.props.data) { | |
var t = this.transformDataProp(this.props); | |
return this.shadowDataProp = y({}, t, { | |
datasets: t.datasets && t.datasets.map(function(t) { | |
return y({}, t) | |
}) | |
}), | |
t | |
} | |
} | |
, | |
f.prototype.checkDatasets = function(t) { | |
var e = this.props.datasetKeyProvider !== f.getLabelAsKey | |
, n = 1 < t.length; | |
if ("production" !== v && "prod" !== v && n && !e) { | |
var a = !1; | |
t.forEach(function(t) { | |
t.label || (a = !0) | |
}), | |
a && console.error("[react-chartjs-2] Warning: Each dataset needs a unique key. By default, the \"label\" property on each dataset is used. Alternatively, you may provide a \"datasetKeyProvider\" as a prop that returns a unique key.") | |
} | |
} | |
, | |
f.prototype.updateChart = function() { | |
var s = this | |
, e = this.props.options | |
, t = this.memoizeDataProps(this.props); | |
if (this.chartInstance) { | |
e && (this.chartInstance.options = d.a.helpers.configMerge(this.chartInstance.options, e)); | |
var n = this.chartInstance.config.data && this.chartInstance.config.data.datasets || [] | |
, o = t.datasets || []; | |
this.checkDatasets(n); | |
var i = m()(n, this.props.datasetKeyProvider); | |
this.chartInstance.config.data.datasets = o.map(function(a) { | |
var t = i[s.props.datasetKeyProvider(a)]; | |
if (t && t.type === a.type) { | |
t.data.splice(a.data.length), | |
a.data.forEach(function(n, e) { | |
t.data[e] = a.data[e] | |
}); | |
var e = (a.data, | |
S(a, ["data"])); | |
return y({}, t, e) | |
} | |
return a | |
}); | |
var a = (t.datasets, | |
S(t, ["datasets"])); | |
this.chartInstance.config.data = y({}, this.chartInstance.config.data, a), | |
this.chartInstance.update() | |
} | |
} | |
, | |
f.prototype.renderChart = function() { | |
var t = this.props | |
, e = t.options | |
, n = t.legend | |
, s = t.type | |
, o = (t.redraw, | |
t.plugins) | |
, i = this.element | |
, a = this.memoizeDataProps(); | |
"undefined" == typeof n || p()(f.defaultProps.legend, n) || (e.legend = n), | |
this.chartInstance = new d.a(i,{ | |
type: s, | |
data: a, | |
options: e, | |
plugins: o | |
}) | |
} | |
, | |
f.prototype.render = function() { | |
var o = this.props | |
, e = o.height | |
, t = o.width | |
, n = (o.onElementsClick, | |
o.id); | |
return a.a.createElement("canvas", { | |
ref: this.ref, | |
height: e, | |
width: t, | |
id: n, | |
onClick: this.handleOnClick | |
}) | |
} | |
, | |
f | |
}(a.a.Component); | |
E.getLabelAsKey = function(t) { | |
return t.label | |
} | |
, | |
E.propTypes = { | |
data: l.a.oneOfType([l.a.object, l.a.func]).isRequired, | |
getDatasetAtEvent: l.a.func, | |
getElementAtEvent: l.a.func, | |
getElementsAtEvent: l.a.func, | |
height: l.a.number, | |
legend: l.a.object, | |
onElementsClick: l.a.func, | |
options: l.a.object, | |
plugins: l.a.arrayOf(l.a.object), | |
redraw: l.a.bool, | |
type: function(a, e, t) { | |
if (!d.a.controllers[a[e]]) | |
return new Error("Invalid chart type `" + a[e] + "` supplied to `" + t + "`.") | |
}, | |
width: l.a.number, | |
datasetKeyProvider: l.a.func | |
}, | |
E.defaultProps = { | |
legend: { | |
display: !0, | |
position: "bottom" | |
}, | |
type: "doughnut", | |
height: 150, | |
width: 300, | |
redraw: !1, | |
options: {}, | |
datasetKeyProvider: E.getLabelAsKey | |
}; | |
var x = (function(n) { | |
function e() { | |
return C(this, e), | |
o(this, n.apply(this, arguments)) | |
} | |
i(e, n), | |
e.prototype.render = function() { | |
var n = this; | |
return a.a.createElement(E, y({}, this.props, { | |
ref: function(e) { | |
return n.chartInstance = e && e.chartInstance | |
}, | |
type: "doughnut" | |
})) | |
} | |
}(a.a.Component), | |
function(n) { | |
function e() { | |
return C(this, e), | |
o(this, n.apply(this, arguments)) | |
} | |
return i(e, n), | |
e.prototype.render = function() { | |
var n = this; | |
return a.a.createElement(E, y({}, this.props, { | |
ref: function(e) { | |
return n.chartInstance = e && e.chartInstance | |
}, | |
type: "pie" | |
})) | |
} | |
, | |
e | |
}(a.a.Component)) | |
, w = function(n) { | |
function e() { | |
return C(this, e), | |
o(this, n.apply(this, arguments)) | |
} | |
return i(e, n), | |
e.prototype.render = function() { | |
var n = this; | |
return a.a.createElement(E, y({}, this.props, { | |
ref: function(e) { | |
return n.chartInstance = e && e.chartInstance | |
}, | |
type: "line" | |
})) | |
} | |
, | |
e | |
}(a.a.Component); | |
(function(n) { | |
function e() { | |
return C(this, e), | |
o(this, n.apply(this, arguments)) | |
} | |
i(e, n), | |
e.prototype.render = function() { | |
var n = this; | |
return a.a.createElement(E, y({}, this.props, { | |
ref: function(e) { | |
return n.chartInstance = e && e.chartInstance | |
}, | |
type: "bar" | |
})) | |
} | |
} | |
)(a.a.Component), | |
function(n) { | |
function e() { | |
return C(this, e), | |
o(this, n.apply(this, arguments)) | |
} | |
i(e, n), | |
e.prototype.render = function() { | |
var n = this; | |
return a.a.createElement(E, y({}, this.props, { | |
ref: function(e) { | |
return n.chartInstance = e && e.chartInstance | |
}, | |
type: "horizontalBar" | |
})) | |
} | |
}(a.a.Component), | |
function(n) { | |
function e() { | |
return C(this, e), | |
o(this, n.apply(this, arguments)) | |
} | |
i(e, n), | |
e.prototype.render = function() { | |
var n = this; | |
return a.a.createElement(E, y({}, this.props, { | |
ref: function(e) { | |
return n.chartInstance = e && e.chartInstance | |
}, | |
type: "radar" | |
})) | |
} | |
}(a.a.Component), | |
function(n) { | |
function e() { | |
return C(this, e), | |
o(this, n.apply(this, arguments)) | |
} | |
i(e, n), | |
e.prototype.render = function() { | |
var n = this; | |
return a.a.createElement(E, y({}, this.props, { | |
ref: function(e) { | |
return n.chartInstance = e && e.chartInstance | |
}, | |
type: "polarArea" | |
})) | |
} | |
}(a.a.Component), | |
function(n) { | |
function e() { | |
return C(this, e), | |
o(this, n.apply(this, arguments)) | |
} | |
i(e, n), | |
e.prototype.render = function() { | |
var n = this; | |
return a.a.createElement(E, y({}, this.props, { | |
ref: function(e) { | |
return n.chartInstance = e && e.chartInstance | |
}, | |
type: "bubble" | |
})) | |
} | |
}(a.a.Component), | |
function(n) { | |
function e() { | |
return C(this, e), | |
o(this, n.apply(this, arguments)) | |
} | |
i(e, n), | |
e.prototype.render = function() { | |
var n = this; | |
return a.a.createElement(E, y({}, this.props, { | |
ref: function(e) { | |
return n.chartInstance = e && e.chartInstance | |
}, | |
type: "scatter" | |
})) | |
} | |
}(a.a.Component), | |
d.a.defaults | |
} | |
).call(_, t(300)) | |
} | |
, function(a, e, t) { | |
var n = t(307) | |
, s = t(309) | |
, d = function(n) { | |
if (n instanceof d) | |
return n; | |
if (!(this instanceof d)) | |
return new d(n); | |
this.valid = !1, | |
this.values = { | |
rgb: [0, 0, 0], | |
hsl: [0, 0, 0], | |
hsv: [0, 0, 0], | |
hwb: [0, 0, 0], | |
cmyk: [0, 0, 0, 0], | |
alpha: 1 | |
}; | |
var e; | |
"string" == typeof n ? (e = s.getRgba(n), | |
e ? this.setValues("rgb", e) : (e = s.getHsla(n)) ? this.setValues("hsl", e) : (e = s.getHwb(n)) && this.setValues("hwb", e)) : "object" == typeof n && (e = n, | |
void 0 !== e.r || void 0 !== e.red ? this.setValues("rgb", e) : void 0 !== e.l || void 0 !== e.lightness ? this.setValues("hsl", e) : void 0 !== e.v || void 0 !== e.value ? this.setValues("hsv", e) : void 0 !== e.w || void 0 !== e.whiteness ? this.setValues("hwb", e) : void 0 === e.c && void 0 === e.cyan || this.setValues("cmyk", e)) | |
}; | |
d.prototype = { | |
isValid: function() { | |
return this.valid | |
}, | |
rgb: function() { | |
return this.setSpace("rgb", arguments) | |
}, | |
hsl: function() { | |
return this.setSpace("hsl", arguments) | |
}, | |
hsv: function() { | |
return this.setSpace("hsv", arguments) | |
}, | |
hwb: function() { | |
return this.setSpace("hwb", arguments) | |
}, | |
cmyk: function() { | |
return this.setSpace("cmyk", arguments) | |
}, | |
rgbArray: function() { | |
return this.values.rgb | |
}, | |
hslArray: function() { | |
return this.values.hsl | |
}, | |
hsvArray: function() { | |
return this.values.hsv | |
}, | |
hwbArray: function() { | |
var t = this.values; | |
return 1 === t.alpha ? t.hwb : t.hwb.concat([t.alpha]) | |
}, | |
cmykArray: function() { | |
return this.values.cmyk | |
}, | |
rgbaArray: function() { | |
var t = this.values; | |
return t.rgb.concat([t.alpha]) | |
}, | |
hslaArray: function() { | |
var t = this.values; | |
return t.hsl.concat([t.alpha]) | |
}, | |
alpha: function(t) { | |
return void 0 === t ? this.values.alpha : (this.setValues("alpha", t), | |
this) | |
}, | |
red: function(t) { | |
return this.setChannel("rgb", 0, t) | |
}, | |
green: function(t) { | |
return this.setChannel("rgb", 1, t) | |
}, | |
blue: function(t) { | |
return this.setChannel("rgb", 2, t) | |
}, | |
hue: function(t) { | |
return t && (t %= 360, | |
t = 0 > t ? 360 + t : t), | |
this.setChannel("hsl", 0, t) | |
}, | |
saturation: function(t) { | |
return this.setChannel("hsl", 1, t) | |
}, | |
lightness: function(t) { | |
return this.setChannel("hsl", 2, t) | |
}, | |
saturationv: function(t) { | |
return this.setChannel("hsv", 1, t) | |
}, | |
whiteness: function(t) { | |
return this.setChannel("hwb", 1, t) | |
}, | |
blackness: function(t) { | |
return this.setChannel("hwb", 2, t) | |
}, | |
value: function(t) { | |
return this.setChannel("hsv", 2, t) | |
}, | |
cyan: function(t) { | |
return this.setChannel("cmyk", 0, t) | |
}, | |
magenta: function(t) { | |
return this.setChannel("cmyk", 1, t) | |
}, | |
yellow: function(t) { | |
return this.setChannel("cmyk", 2, t) | |
}, | |
black: function(t) { | |
return this.setChannel("cmyk", 3, t) | |
}, | |
hexString: function() { | |
return s.hexString(this.values.rgb) | |
}, | |
rgbString: function() { | |
return s.rgbString(this.values.rgb, this.values.alpha) | |
}, | |
rgbaString: function() { | |
return s.rgbaString(this.values.rgb, this.values.alpha) | |
}, | |
percentString: function() { | |
return s.percentString(this.values.rgb, this.values.alpha) | |
}, | |
hslString: function() { | |
return s.hslString(this.values.hsl, this.values.alpha) | |
}, | |
hslaString: function() { | |
return s.hslaString(this.values.hsl, this.values.alpha) | |
}, | |
hwbString: function() { | |
return s.hwbString(this.values.hwb, this.values.alpha) | |
}, | |
keyword: function() { | |
return s.keyword(this.values.rgb, this.values.alpha) | |
}, | |
rgbNumber: function() { | |
var t = this.values.rgb; | |
return t[0] << 16 | t[1] << 8 | t[2] | |
}, | |
luminosity: function() { | |
for (var a = this.values.rgb, e = [], t = 0, o; t < a.length; t++) | |
o = a[t] / 255, | |
e[t] = .03928 >= o ? o / 12.92 : S((o + .055) / 1.055, 2.4); | |
return .2126 * e[0] + .7152 * e[1] + .0722 * e[2] | |
}, | |
contrast: function(a) { | |
var e = this.luminosity() | |
, t = a.luminosity(); | |
return e > t ? (e + .05) / (t + .05) : (t + .05) / (e + .05) | |
}, | |
level: function(n) { | |
var e = this.contrast(n); | |
return 7.1 <= e ? "AAA" : 4.5 <= e ? "AA" : "" | |
}, | |
dark: function() { | |
var t = this.values.rgb; | |
return 128 > (299 * t[0] + 587 * t[1] + 114 * t[2]) / 1e3 | |
}, | |
light: function() { | |
return !this.dark() | |
}, | |
negate: function() { | |
for (var n = [], e = 0; 3 > e; e++) | |
n[e] = 255 - this.values.rgb[e]; | |
return this.setValues("rgb", n), | |
this | |
}, | |
lighten: function(n) { | |
var e = this.values.hsl; | |
return e[2] += e[2] * n, | |
this.setValues("hsl", e), | |
this | |
}, | |
darken: function(n) { | |
var e = this.values.hsl; | |
return e[2] -= e[2] * n, | |
this.setValues("hsl", e), | |
this | |
}, | |
saturate: function(n) { | |
var e = this.values.hsl; | |
return e[1] += e[1] * n, | |
this.setValues("hsl", e), | |
this | |
}, | |
desaturate: function(n) { | |
var e = this.values.hsl; | |
return e[1] -= e[1] * n, | |
this.setValues("hsl", e), | |
this | |
}, | |
whiten: function(n) { | |
var e = this.values.hwb; | |
return e[1] += e[1] * n, | |
this.setValues("hwb", e), | |
this | |
}, | |
blacken: function(n) { | |
var e = this.values.hwb; | |
return e[2] += e[2] * n, | |
this.setValues("hwb", e), | |
this | |
}, | |
greyscale: function() { | |
var n = this.values.rgb | |
, e = .3 * n[0] + .59 * n[1] + .11 * n[2]; | |
return this.setValues("rgb", [e, e, e]), | |
this | |
}, | |
clearer: function(n) { | |
var e = this.values.alpha; | |
return this.setValues("alpha", e - e * n), | |
this | |
}, | |
opaquer: function(n) { | |
var e = this.values.alpha; | |
return this.setValues("alpha", e + e * n), | |
this | |
}, | |
rotate: function(a) { | |
var e = this.values.hsl | |
, t = (e[0] + a) % 360; | |
return e[0] = 0 > t ? 360 + t : t, | |
this.setValues("hsl", e), | |
this | |
}, | |
mix: function(d, e) { | |
var t = this | |
, n = d | |
, u = void 0 === e ? .5 : e | |
, o = 2 * u - 1 | |
, i = t.alpha() - n.alpha() | |
, a = ((-1 == o * i ? o : (o + i) / (1 + o * i)) + 1) / 2 | |
, l = 1 - a; | |
return this.rgb(a * t.red() + l * n.red(), a * t.green() + l * n.green(), a * t.blue() + l * n.blue()).alpha(t.alpha() * u + n.alpha() * (1 - u)) | |
}, | |
toJSON: function() { | |
return this.rgb() | |
}, | |
clone: function() { | |
var i = new d, n = this.values, s = i.values, o, l; | |
for (var u in n) | |
n.hasOwnProperty(u) && (o = n[u], | |
l = {}.toString.call(o), | |
"[object Array]" === l ? s[u] = o.slice(0) : "[object Number]" === l ? s[u] = o : console.error("unexpected color value:", o)); | |
return i | |
} | |
}, | |
d.prototype.spaces = { | |
rgb: ["red", "green", "blue"], | |
hsl: ["hue", "saturation", "lightness"], | |
hsv: ["hue", "saturation", "value"], | |
hwb: ["hue", "whiteness", "blackness"], | |
cmyk: ["cyan", "magenta", "yellow", "black"] | |
}, | |
d.prototype.maxes = { | |
rgb: [255, 255, 255], | |
hsl: [360, 100, 100], | |
hsv: [360, 100, 100], | |
hwb: [360, 100, 100], | |
cmyk: [100, 100, 100, 100] | |
}, | |
d.prototype.getValues = function(a) { | |
for (var e = this.values, t = {}, n = 0; n < a.length; n++) | |
t[a.charAt(n)] = e[a][n]; | |
return 1 !== e.alpha && (t.a = e.alpha), | |
t | |
} | |
, | |
d.prototype.setValues = function(d, e) { | |
var t = this.values, o = this.spaces, i = this.maxes, a = 1, p; | |
if (this.valid = !0, | |
"alpha" === d) | |
a = e; | |
else if (e.length) | |
t[d] = e.slice(0, d.length), | |
a = e[d.length]; | |
else if (void 0 !== e[d.charAt(0)]) { | |
for (p = 0; p < d.length; p++) | |
t[d][p] = e[d.charAt(p)]; | |
a = e.a | |
} else if (void 0 !== e[o[d][0]]) { | |
var f = o[d]; | |
for (p = 0; p < d.length; p++) | |
t[d][p] = e[f[p]]; | |
a = e.alpha | |
} | |
if (t.alpha = B(0, R(1, void 0 === a ? t.alpha : a)), | |
"alpha" === d) | |
return !1; | |
var s; | |
for (p = 0; p < d.length; p++) | |
s = B(0, R(i[d][p], t[d][p])), | |
t[d][p] = T(s); | |
for (var h in o) | |
h !== d && (t[h] = n[d][h](t[d])); | |
return !0 | |
} | |
, | |
d.prototype.setSpace = function(a, e) { | |
var t = e[0]; | |
return void 0 === t ? this.getValues(a) : ("number" == typeof t && (t = Array.prototype.slice.call(e)), | |
this.setValues(a, t), | |
this) | |
} | |
, | |
d.prototype.setChannel = function(a, e, t) { | |
var n = this.values[a]; | |
return void 0 === t ? n[e] : t === n[e] ? this : (n[e] = t, | |
this.setValues(a, n), | |
this) | |
} | |
, | |
"undefined" != typeof window && (window.Color = d), | |
a.exports = d | |
} | |
, function(a, e, o) { | |
"use strict"; | |
var n = o(17) | |
, e = a.exports = n.extend({ | |
chart: null, | |
currentStep: 0, | |
numSteps: 60, | |
easing: "", | |
render: null, | |
onAnimationProgress: null, | |
onAnimationComplete: null | |
}); | |
Object.defineProperty(e.prototype, "animationObject", { | |
get: function() { | |
return this | |
} | |
}), | |
Object.defineProperty(e.prototype, "chartInstance", { | |
get: function() { | |
return this.chart | |
}, | |
set: function(t) { | |
this.chart = t | |
} | |
}) | |
} | |
, function(a, e, t) { | |
"use strict"; | |
var n = t(6) | |
, s = t(4); | |
n._set("global", { | |
animation: { | |
duration: 1e3, | |
easing: "easeOutQuart", | |
onProgress: s.noop, | |
onComplete: s.noop | |
} | |
}), | |
a.exports = { | |
frameDuration: 17, | |
animations: [], | |
dropFrames: 0, | |
request: null, | |
addAnimation: function(s, e, t, n) { | |
var d = this.animations, a, l; | |
for (e.chart = s, | |
n || (s.animating = !0), | |
a = 0, | |
l = d.length; a < l; ++a) | |
if (d[a].chart === s) | |
return void (d[a] = e); | |
d.push(e), | |
1 === d.length && this.requestAnimationFrame() | |
}, | |
cancelAnimation: function(n) { | |
var e = s.findIndex(this.animations, function(e) { | |
return e.chart === n | |
}); | |
-1 !== e && (this.animations.splice(e, 1), | |
n.animating = !1) | |
}, | |
requestAnimationFrame: function() { | |
var t = this; | |
null === t.request && (t.request = s.requestAnimFrame.call(window, function() { | |
t.request = null, | |
t.startDigest() | |
})) | |
}, | |
startDigest: function() { | |
var a = this | |
, e = Date.now() | |
, t = 0; | |
1 < a.dropFrames && (t = _(a.dropFrames), | |
a.dropFrames %= 1), | |
a.advance(1 + t); | |
var o = Date.now(); | |
a.dropFrames += (o - e) / a.frameDuration, | |
0 < a.animations.length && a.requestAnimationFrame() | |
}, | |
advance: function(a) { | |
for (var e = this.animations, o = 0, d, l; o < e.length; ) | |
d = e[o], | |
l = d.chart, | |
d.currentStep = (d.currentStep || 0) + a, | |
d.currentStep = R(d.currentStep, d.numSteps), | |
s.callback(d.render, [l, d], l), | |
s.callback(d.onAnimationProgress, [d], l), | |
d.currentStep >= d.numSteps ? (s.callback(d.onAnimationComplete, [d], l), | |
l.animating = !1, | |
e.splice(o, 1)) : ++o | |
} | |
} | |
} | |
, function(d, e, t) { | |
"use strict"; | |
function f(n, e) { | |
return n.native ? { | |
x: n.x, | |
y: n.y | |
} : o.getRelativePosition(n, e) | |
} | |
function c(d, e) { | |
var t = d.data.datasets, l, u, p, c, f; | |
for (u = 0, | |
c = t.length; u < c; ++u) | |
if (d.isDatasetVisible(u)) | |
for (l = d.getDatasetMeta(u), | |
p = 0, | |
f = l.data.length; p < f; ++p) { | |
var h = l.data[p]; | |
h._view.skip || e(h) | |
} | |
} | |
function h(a, o) { | |
var t = []; | |
return c(a, function(n) { | |
n.inRange(o.x, o.y) && t.push(n) | |
}), | |
t | |
} | |
function m(o, s, t, n) { | |
var d = p | |
, u = []; | |
return c(o, function(a) { | |
if (!t || a.inRange(s.x, s.y)) { | |
var e = a.getCenterPoint() | |
, o = n(s, e); | |
o < d ? (u = [a], | |
d = o) : o === d && u.push(a) | |
} | |
}), | |
u | |
} | |
function a(a) { | |
var s = -1 !== a.indexOf("x") | |
, t = -1 !== a.indexOf("y"); | |
return function(n, e) { | |
var a = s ? M(n.x - e.x) : 0 | |
, o = t ? M(n.y - e.y) : 0; | |
return x(S(a, 2) + S(o, 2)) | |
} | |
} | |
function n(i, e, t) { | |
var n = f(e, i); | |
t.axis = t.axis || "x"; | |
var o = a(t.axis) | |
, s = t.intersect ? h(i, n) : m(i, n, !1, o) | |
, d = []; | |
return s.length ? (i.data.datasets.forEach(function(e, t) { | |
if (i.isDatasetVisible(t)) { | |
var n = i.getDatasetMeta(t) | |
, a = n.data[s[0]._index]; | |
a && !a._view.skip && d.push(a) | |
} | |
}), | |
d) : [] | |
} | |
var o = t(4); | |
d.exports = { | |
modes: { | |
single: function(a, e) { | |
var t = f(e, a) | |
, n = []; | |
return c(a, function(a) { | |
if (a.inRange(t.x, t.y)) | |
return n.push(a), | |
n | |
}), | |
n.slice(0, 1) | |
}, | |
label: n, | |
index: n, | |
dataset: function(i, e, t) { | |
var n = f(e, i); | |
t.axis = t.axis || "xy"; | |
var o = a(t.axis) | |
, s = t.intersect ? h(i, n) : m(i, n, !1, o); | |
return 0 < s.length && (s = i.getDatasetMeta(s[0]._datasetIndex).data), | |
s | |
}, | |
"x-axis": function(a, e) { | |
return n(a, e, { | |
intersect: !1 | |
}) | |
}, | |
point: function(n, e) { | |
return h(n, f(e, n)) | |
}, | |
nearest: function(d, e, t) { | |
var n = f(e, d); | |
t.axis = t.axis || "xy"; | |
var o = a(t.axis) | |
, i = m(d, n, t.intersect, o); | |
return 1 < i.length && i.sort(function(a, e) { | |
var t = a.getArea() | |
, n = e.getArea() | |
, i = t - n; | |
return 0 == i && (i = a._datasetIndex - e._datasetIndex), | |
i | |
}), | |
i.slice(0, 1) | |
}, | |
x: function(o, e, t) { | |
var n = f(e, o) | |
, i = [] | |
, s = !1; | |
return c(o, function(t) { | |
t.inXRange(n.x) && i.push(t), | |
t.inRange(n.x, n.y) && (s = !0) | |
}), | |
t.intersect && !s && (i = []), | |
i | |
}, | |
y: function(o, e, t) { | |
var n = f(e, o) | |
, i = [] | |
, s = !1; | |
return c(o, function(t) { | |
t.inYRange(n.y) && i.push(t), | |
t.inRange(n.x, n.y) && (s = !0) | |
}), | |
t.intersect && !s && (i = []), | |
i | |
} | |
} | |
} | |
} | |
, function(s, e, t) { | |
"use strict"; | |
var n = t(4) | |
, d = t(315) | |
, o = t(316) | |
, i = o._enabled ? o : d; | |
s.exports = n.extend({ | |
initialize: function() {}, | |
acquireContext: function() {}, | |
releaseContext: function() {}, | |
addEventListener: function() {}, | |
removeEventListener: function() {} | |
}, i) | |
} | |
, function(a, e, t) { | |
"use strict"; | |
var s = t(6) | |
, d = t(4); | |
s._set("global", { | |
plugins: {} | |
}), | |
a.exports = { | |
_plugins: [], | |
_cacheId: 0, | |
register: function(n) { | |
var a = this._plugins; | |
[].concat(n).forEach(function(t) { | |
-1 === a.indexOf(t) && a.push(t) | |
}), | |
this._cacheId++ | |
}, | |
unregister: function(n) { | |
var a = this._plugins; | |
[].concat(n).forEach(function(t) { | |
var e = a.indexOf(t); | |
-1 !== e && a.splice(e, 1) | |
}), | |
this._cacheId++ | |
}, | |
clear: function() { | |
this._plugins = [], | |
this._cacheId++ | |
}, | |
count: function() { | |
return this._plugins.length | |
}, | |
getAll: function() { | |
return this._plugins | |
}, | |
notify: function(d, e, t) { | |
var n = this.descriptors(d), s = n.length, u, p, c, f, h; | |
for (u = 0; u < s; ++u) | |
if (p = n[u], | |
c = p.plugin, | |
"function" == typeof (h = c[e]) && (f = [d].concat(t || []), | |
f.push(p.options), | |
!1 === h.apply(c, f))) | |
return !1; | |
return !0 | |
}, | |
descriptors: function(o) { | |
var e = o.$plugins || (o.$plugins = {}); | |
if (e.id === this._cacheId) | |
return e.descriptors; | |
var u = [] | |
, n = [] | |
, t = o && o.config || {} | |
, i = t.options && t.options.plugins || {}; | |
return this._plugins.concat(t.plugins || []).forEach(function(o) { | |
if (-1 === u.indexOf(o)) { | |
var e = o.id | |
, t = i[e]; | |
!1 !== t && (!0 === t && (t = d.clone(s.global.plugins[e])), | |
u.push(o), | |
n.push({ | |
plugin: o, | |
options: t || {} | |
})) | |
} | |
}), | |
e.descriptors = n, | |
e.id = this._cacheId, | |
n | |
}, | |
_invalidate: function(t) { | |
delete t.$plugins | |
} | |
} | |
} | |
, function(y, e, t) { | |
"use strict"; | |
function x(a, e) { | |
var t = S.color(a); | |
return t.alpha(e * t.alpha()).rgbaString() | |
} | |
function _(n, e) { | |
return e && (S.isArray(e) ? Array.prototype.push.apply(n, e) : n.push(e)), | |
n | |
} | |
function o(t) { | |
return ("string" == typeof t || t instanceof String) && -1 < t.indexOf("\n") ? t.split("\n") : t | |
} | |
function i(a) { | |
var e = a._xScale | |
, t = a._yScale || a._scale | |
, n = a._index | |
, i = a._datasetIndex; | |
return { | |
xLabel: e ? e.getLabelForIndex(n, i) : "", | |
yLabel: t ? t.getLabelForIndex(n, i) : "", | |
index: n, | |
datasetIndex: i, | |
x: a._model.x, | |
y: a._model.y | |
} | |
} | |
function a(a) { | |
var e = d.global | |
, t = S.valueOrDefault; | |
return { | |
xPadding: a.xPadding, | |
yPadding: a.yPadding, | |
xAlign: a.xAlign, | |
yAlign: a.yAlign, | |
bodyFontColor: a.bodyFontColor, | |
_bodyFontFamily: t(a.bodyFontFamily, e.defaultFontFamily), | |
_bodyFontStyle: t(a.bodyFontStyle, e.defaultFontStyle), | |
_bodyAlign: a.bodyAlign, | |
bodyFontSize: t(a.bodyFontSize, e.defaultFontSize), | |
bodySpacing: a.bodySpacing, | |
titleFontColor: a.titleFontColor, | |
_titleFontFamily: t(a.titleFontFamily, e.defaultFontFamily), | |
_titleFontStyle: t(a.titleFontStyle, e.defaultFontStyle), | |
titleFontSize: t(a.titleFontSize, e.defaultFontSize), | |
_titleAlign: a.titleAlign, | |
titleSpacing: a.titleSpacing, | |
titleMarginBottom: a.titleMarginBottom, | |
footerFontColor: a.footerFontColor, | |
_footerFontFamily: t(a.footerFontFamily, e.defaultFontFamily), | |
_footerFontStyle: t(a.footerFontStyle, e.defaultFontStyle), | |
footerFontSize: t(a.footerFontSize, e.defaultFontSize), | |
_footerAlign: a.footerAlign, | |
footerSpacing: a.footerSpacing, | |
footerMarginTop: a.footerMarginTop, | |
caretSize: a.caretSize, | |
cornerRadius: a.cornerRadius, | |
backgroundColor: a.backgroundColor, | |
opacity: 0, | |
legendColorBackground: a.multiKeyBackground, | |
displayColors: a.displayColors, | |
borderColor: a.borderColor, | |
borderWidth: a.borderWidth | |
} | |
} | |
function l(h, e) { | |
var t = h._chart.ctx | |
, n = 2 * e.yPadding | |
, m = 0 | |
, y = e.body | |
, i = y.reduce(function(n, e) { | |
return n + e.before.length + e.lines.length + e.after.length | |
}, 0); | |
i += e.beforeBody.length + e.afterBody.length; | |
var x = e.title.length | |
, l = e.footer.length | |
, s = e.titleFontSize | |
, u = e.bodyFontSize | |
, c = e.footerFontSize; | |
n += x * s, | |
n += x ? (x - 1) * e.titleSpacing : 0, | |
n += x ? e.titleMarginBottom : 0, | |
n += i * u, | |
n += i ? (i - 1) * e.bodySpacing : 0, | |
n += l ? e.footerMarginTop : 0, | |
n += l * c, | |
n += l ? (l - 1) * e.footerSpacing : 0; | |
var d = 0 | |
, _ = function(n) { | |
m = B(m, t.measureText(n).width + d) | |
}; | |
return t.font = S.fontString(s, e._titleFontStyle, e._titleFontFamily), | |
S.each(e.title, _), | |
t.font = S.fontString(u, e._bodyFontStyle, e._bodyFontFamily), | |
S.each(e.beforeBody.concat(e.afterBody), _), | |
d = e.displayColors ? u + 2 : 0, | |
S.each(y, function(t) { | |
S.each(t.before, _), | |
S.each(t.lines, _), | |
S.each(t.after, _) | |
}), | |
d = 0, | |
t.font = S.fontString(c, e._footerFontStyle, e._footerFontFamily), | |
S.each(e.footer, _), | |
m += 2 * e.xPadding, | |
{ | |
width: m, | |
height: n | |
} | |
} | |
function s(m, y) { | |
var t = m._model | |
, n = m._chart | |
, e = m._chart.chartArea | |
, o = "center" | |
, x = "center"; | |
t.y < y.height ? x = "top" : t.y > n.height - y.height && (x = "bottom"); | |
var _ = (e.left + e.right) / 2, f = (e.top + e.bottom) / 2, p, v, k, w, S; | |
"center" === x ? (p = function(t) { | |
return t <= _ | |
} | |
, | |
v = function(t) { | |
return t > _ | |
} | |
) : (p = function(t) { | |
return t <= y.width / 2 | |
} | |
, | |
v = function(t) { | |
return t >= n.width - y.width / 2 | |
} | |
), | |
k = function(a) { | |
return a + y.width + t.caretSize + t.caretPadding > n.width | |
} | |
, | |
w = function(n) { | |
return 0 > n - y.width - t.caretSize - t.caretPadding | |
} | |
, | |
S = function(t) { | |
return t <= f ? "top" : "bottom" | |
} | |
, | |
p(t.x) ? (o = "left", | |
k(t.x) && (o = "center", | |
x = S(t.y))) : v(t.x) && (o = "right", | |
w(t.x) && (o = "center", | |
x = S(t.y))); | |
var C = m._options; | |
return { | |
xAlign: C.xAlign ? C.xAlign : o, | |
yAlign: C.yAlign ? C.yAlign : x | |
} | |
} | |
function u(p, e, t, n) { | |
var h = p.x | |
, m = p.y | |
, y = p.caretSize | |
, a = p.caretPadding | |
, l = p.cornerRadius | |
, s = t.xAlign | |
, u = t.yAlign | |
, c = y + a | |
, d = l + a; | |
return "right" === s ? h -= e.width : "center" === s && (h -= e.width / 2, | |
h + e.width > n.width && (h = n.width - e.width), | |
0 > h && (h = 0)), | |
"top" === u ? m += c : m -= "bottom" === u ? e.height + c : e.height / 2, | |
"center" === u ? "left" === s ? h += c : "right" === s && (h -= c) : "left" === s ? h -= d : "right" === s && (h += d), | |
{ | |
x: h, | |
y: m | |
} | |
} | |
function n(t) { | |
return _([], o(t)) | |
} | |
var d = t(6) | |
, c = t(17) | |
, S = t(4); | |
d._set("global", { | |
tooltips: { | |
enabled: !0, | |
custom: null, | |
mode: "nearest", | |
position: "average", | |
intersect: !0, | |
backgroundColor: "rgba(0,0,0,0.8)", | |
titleFontStyle: "bold", | |
titleSpacing: 2, | |
titleMarginBottom: 6, | |
titleFontColor: "#fff", | |
titleAlign: "left", | |
bodySpacing: 2, | |
bodyFontColor: "#fff", | |
bodyAlign: "left", | |
footerFontStyle: "bold", | |
footerSpacing: 2, | |
footerMarginTop: 6, | |
footerFontColor: "#fff", | |
footerAlign: "left", | |
yPadding: 6, | |
xPadding: 6, | |
caretPadding: 2, | |
caretSize: 5, | |
cornerRadius: 6, | |
multiKeyBackground: "#fff", | |
displayColors: !0, | |
borderColor: "rgba(0,0,0,0)", | |
borderWidth: 0, | |
callbacks: { | |
beforeTitle: S.noop, | |
title: function(a, e) { | |
var t = "" | |
, s = e.labels | |
, d = s ? s.length : 0; | |
if (0 < a.length) { | |
var o = a[0]; | |
o.xLabel ? t = o.xLabel : 0 < d && o.index < d && (t = s[o.index]) | |
} | |
return t | |
}, | |
afterTitle: S.noop, | |
beforeBody: S.noop, | |
beforeLabel: S.noop, | |
label: function(a, e) { | |
var t = e.datasets[a.datasetIndex].label || ""; | |
return t && (t += ": "), | |
t += a.yLabel | |
}, | |
labelColor: function(a, e) { | |
var t = e.getDatasetMeta(a.datasetIndex) | |
, n = t.data[a.index] | |
, i = n._view; | |
return { | |
borderColor: i.borderColor, | |
backgroundColor: i.backgroundColor | |
} | |
}, | |
labelTextColor: function() { | |
return this._options.bodyFontColor | |
}, | |
afterLabel: S.noop, | |
afterBody: S.noop, | |
beforeFooter: S.noop, | |
footer: S.noop, | |
afterFooter: S.noop | |
} | |
} | |
}); | |
var h = { | |
average: function(s) { | |
if (!s.length) | |
return !1; | |
var e = 0, d = 0, u = 0, p, c; | |
for (p = 0, | |
c = s.length; p < c; ++p) { | |
var f = s[p]; | |
if (f && f.hasValue()) { | |
var a = f.tooltipPosition(); | |
e += a.x, | |
d += a.y, | |
++u | |
} | |
} | |
return { | |
x: T(e / u), | |
y: T(d / u) | |
} | |
}, | |
nearest: function(f, e) { | |
var t = e.x, h = e.y, m = p, y, x, _; | |
for (y = 0, | |
x = f.length; y < x; ++y) { | |
var v = f[y]; | |
if (v && v.hasValue()) { | |
var s = v.getCenterPoint() | |
, u = S.distanceBetweenPoints(e, s); | |
u < m && (m = u, | |
_ = v) | |
} | |
} | |
if (_) { | |
var c = _.tooltipPosition(); | |
t = c.x, | |
h = c.y | |
} | |
return { | |
x: t, | |
y: h | |
} | |
} | |
}; | |
(y.exports = c.extend({ | |
initialize: function() { | |
this._model = a(this._options), | |
this._lastActive = [] | |
}, | |
getTitle: function() { | |
var i = this | |
, e = i._options | |
, t = e.callbacks | |
, n = t.beforeTitle.apply(i, arguments) | |
, d = t.title.apply(i, arguments) | |
, a = t.afterTitle.apply(i, arguments) | |
, l = []; | |
return l = _(l, o(n)), | |
l = _(l, o(d)), | |
l = _(l, o(a)) | |
}, | |
getBeforeBody: function() { | |
return n(this._options.callbacks.beforeBody.apply(this, arguments)) | |
}, | |
getBody: function(i, s) { | |
var t = this | |
, n = t._options.callbacks | |
, d = []; | |
return S.each(i, function(a) { | |
var e = { | |
before: [], | |
lines: [], | |
after: [] | |
}; | |
_(e.before, o(n.beforeLabel.call(t, a, s))), | |
_(e.lines, n.label.call(t, a, s)), | |
_(e.after, o(n.afterLabel.call(t, a, s))), | |
d.push(e) | |
}), | |
d | |
}, | |
getAfterBody: function() { | |
return n(this._options.callbacks.afterBody.apply(this, arguments)) | |
}, | |
getFooter: function() { | |
var i = this | |
, e = i._options.callbacks | |
, t = e.beforeFooter.apply(i, arguments) | |
, n = e.footer.apply(i, arguments) | |
, s = e.afterFooter.apply(i, arguments) | |
, a = []; | |
return a = _(a, o(t)), | |
a = _(a, o(n)), | |
a = _(a, o(s)) | |
}, | |
update: function(c) { | |
var m = this, _ = m._options, e = m._model, o = m._model = a(_), d = m._active, f = m._data, p = { | |
xAlign: e.xAlign, | |
yAlign: e.yAlign | |
}, C = { | |
x: e.x, | |
y: e.y | |
}, E = { | |
width: e.width, | |
height: e.height | |
}, P = { | |
x: e.caretX, | |
y: e.caretY | |
}, D, O; | |
if (d.length) { | |
o.opacity = 1; | |
var M = [] | |
, x = []; | |
P = h[_.position].call(m, d, m._eventPosition); | |
var w = []; | |
for (D = 0, | |
O = d.length; D < O; ++D) | |
w.push(i(d[D])); | |
_.filter && (w = w.filter(function(t) { | |
return _.filter(t, f) | |
})), | |
_.itemSort && (w = w.sort(function(n, e) { | |
return _.itemSort(n, e, f) | |
})), | |
S.each(w, function(t) { | |
M.push(_.callbacks.labelColor.call(m, t, m._chart)), | |
x.push(_.callbacks.labelTextColor.call(m, t, m._chart)) | |
}), | |
o.title = m.getTitle(w, f), | |
o.beforeBody = m.getBeforeBody(w, f), | |
o.body = m.getBody(w, f), | |
o.afterBody = m.getAfterBody(w, f), | |
o.footer = m.getFooter(w, f), | |
o.x = T(P.x), | |
o.y = T(P.y), | |
o.caretPadding = _.caretPadding, | |
o.labelColors = M, | |
o.labelTextColors = x, | |
o.dataPoints = w, | |
E = l(this, o), | |
p = s(this, E), | |
C = u(o, E, p, m._chart) | |
} else | |
o.opacity = 0; | |
return o.xAlign = p.xAlign, | |
o.yAlign = p.yAlign, | |
o.x = C.x, | |
o.y = C.y, | |
o.width = E.width, | |
o.height = E.height, | |
o.caretX = P.x, | |
o.caretY = P.y, | |
m._model = o, | |
c && _.custom && _.custom.call(m, o), | |
m | |
}, | |
drawCaret: function(a, e) { | |
var t = this._chart.ctx | |
, n = this._view | |
, i = this.getCaretPosition(a, e, n); | |
t.lineTo(i.x1, i.y1), | |
t.lineTo(i.x2, i.y2), | |
t.lineTo(i.x3, i.y3) | |
}, | |
getCaretPosition: function(x, e, t) { | |
var n = t.caretSize, u = t.cornerRadius, c = t.xAlign, d = t.yAlign, f = x.x, p = x.y, h = e.width, m = e.height, _, v, k, w, S, C; | |
if ("center" === d) | |
S = p + m / 2, | |
"left" === c ? (_ = f, | |
v = _ - n, | |
k = _, | |
w = S + n, | |
C = S - n) : (_ = f + h, | |
v = _ + n, | |
k = _, | |
w = S - n, | |
C = S + n); | |
else if ("left" === c ? (v = f + u + n, | |
_ = v - n, | |
k = v + n) : "right" === c ? (v = f + h - u - n, | |
_ = v - n, | |
k = v + n) : (v = t.caretX, | |
_ = v - n, | |
k = v + n), | |
"top" === d) | |
w = p, | |
S = w - n, | |
C = w; | |
else { | |
w = p + m, | |
S = w + n, | |
C = w; | |
var E = k; | |
k = _, | |
_ = E | |
} | |
return { | |
x1: _, | |
x2: v, | |
x3: k, | |
y1: w, | |
y2: S, | |
y3: C | |
} | |
}, | |
drawTitle: function(d, e, t, n) { | |
var o = e.title; | |
if (o.length) { | |
t.textAlign = e._titleAlign, | |
t.textBaseline = "top"; | |
var i = e.titleFontSize | |
, a = e.titleSpacing; | |
t.fillStyle = x(e.titleFontColor, n), | |
t.font = S.fontString(i, e._titleFontStyle, e._titleFontFamily); | |
var l, p; | |
for (l = 0, | |
p = o.length; l < p; ++l) | |
t.fillText(o[l], d.x, d.y), | |
d.y += i + a, | |
l + 1 === o.length && (d.y += e.titleMarginBottom - a) | |
} | |
}, | |
drawBody: function(d, e, p, t) { | |
var n = e.bodyFontSize | |
, o = e.bodySpacing | |
, a = e.body; | |
p.textAlign = e._bodyAlign, | |
p.textBaseline = "top", | |
p.font = S.fontString(n, e._bodyFontStyle, e._bodyFontFamily); | |
var i = 0 | |
, f = function(e) { | |
p.fillText(e, d.x + i, d.y), | |
d.y += n + o | |
}; | |
p.fillStyle = x(e.bodyFontColor, t), | |
S.each(e.beforeBody, f); | |
var u = e.displayColors; | |
i = u ? n + 2 : 0, | |
S.each(a, function(o, i) { | |
var l = x(e.labelTextColors[i], t); | |
p.fillStyle = l, | |
S.each(o.before, f), | |
S.each(o.lines, function(o) { | |
u && (p.fillStyle = x(e.legendColorBackground, t), | |
p.fillRect(d.x, d.y, n, n), | |
p.lineWidth = 1, | |
p.strokeStyle = x(e.labelColors[i].borderColor, t), | |
p.strokeRect(d.x, d.y, n, n), | |
p.fillStyle = x(e.labelColors[i].backgroundColor, t), | |
p.fillRect(d.x + 1, d.y + 1, n - 2, n - 2), | |
p.fillStyle = l), | |
f(o) | |
}), | |
S.each(o.after, f) | |
}), | |
i = 0, | |
S.each(e.afterBody, f), | |
d.y -= o | |
}, | |
drawFooter: function(a, e, t, n) { | |
var o = e.footer; | |
o.length && (a.y += e.footerMarginTop, | |
t.textAlign = e._footerAlign, | |
t.textBaseline = "top", | |
t.fillStyle = x(e.footerFontColor, n), | |
t.font = S.fontString(e.footerFontSize, e._footerFontStyle, e._footerFontFamily), | |
S.each(o, function(n) { | |
t.fillText(n, a.x, a.y), | |
a.y += e.footerFontSize + e.footerSpacing | |
})) | |
}, | |
drawBackground: function(p, e, t, n, o) { | |
t.fillStyle = x(e.backgroundColor, o), | |
t.strokeStyle = x(e.borderColor, o), | |
t.lineWidth = e.borderWidth; | |
var i = e.xAlign | |
, a = e.yAlign | |
, l = p.x | |
, s = p.y | |
, u = n.width | |
, c = n.height | |
, d = e.cornerRadius; | |
t.beginPath(), | |
t.moveTo(l + d, s), | |
"top" === a && this.drawCaret(p, n), | |
t.lineTo(l + u - d, s), | |
t.quadraticCurveTo(l + u, s, l + u, s + d), | |
"center" === a && "right" === i && this.drawCaret(p, n), | |
t.lineTo(l + u, s + c - d), | |
t.quadraticCurveTo(l + u, s + c, l + u - d, s + c), | |
"bottom" === a && this.drawCaret(p, n), | |
t.lineTo(l + d, s + c), | |
t.quadraticCurveTo(l, s + c, l, s + c - d), | |
"center" === a && "left" === i && this.drawCaret(p, n), | |
t.lineTo(l, s + d), | |
t.quadraticCurveTo(l, s, l + d, s), | |
t.closePath(), | |
t.fill(), | |
0 < e.borderWidth && t.stroke() | |
}, | |
draw: function() { | |
var a = this._chart.ctx | |
, e = this._view; | |
if (0 !== e.opacity) { | |
var t = { | |
width: e.width, | |
height: e.height | |
} | |
, n = { | |
x: e.x, | |
y: e.y | |
} | |
, s = M(.001 > e.opacity) ? 0 : e.opacity | |
, o = e.title.length || e.beforeBody.length || e.body.length || e.afterBody.length || e.footer.length; | |
this._options.enabled && o && (this.drawBackground(n, e, a, t, s), | |
n.x += e.xPadding, | |
n.y += e.yPadding, | |
this.drawTitle(n, e, a, s), | |
this.drawBody(n, e, a, s), | |
this.drawFooter(n, e, a, s)) | |
} | |
}, | |
handleEvent: function(a) { | |
var e = this | |
, t = e._options | |
, n = !1; | |
return e._lastActive = e._lastActive || [], | |
e._active = "mouseout" === a.type ? [] : e._chart.getElementsAtEventForMode(a, t.mode, t), | |
n = !S.arrayEquals(e._active, e._lastActive), | |
n && (e._lastActive = e._active, | |
(t.enabled || t.custom) && (e._eventPosition = { | |
x: a.x, | |
y: a.y | |
}, | |
e.update(!0), | |
e.pivot())), | |
n | |
} | |
})).positioners = h | |
} | |
, function(d, e, t) { | |
function n(n) { | |
var e = this.__data__ = new p(n); | |
this.size = e.size | |
} | |
var p = t(53) | |
, o = t(351) | |
, i = t(352) | |
, a = t(353) | |
, l = t(354) | |
, s = t(355); | |
n.prototype.clear = o, | |
n.prototype.delete = i, | |
n.prototype.get = a, | |
n.prototype.has = l, | |
n.prototype.set = s, | |
d.exports = n | |
} | |
, function(t) { | |
t.exports = function(n, e) { | |
return n === e || n !== n && e !== e | |
} | |
} | |
, function(a, e, t) { | |
var n = t(38) | |
, o = t(56); | |
a.exports = function(a) { | |
if (!o(a)) | |
return !1; | |
var e = n(a); | |
return e == "[object Function]" || e == "[object GeneratorFunction]" || e == "[object AsyncFunction]" || e == "[object Proxy]" | |
} | |
} | |
, function(a, e, t) { | |
(function(e) { | |
var t = "object" == typeof e && e && e.Object === Object && e; | |
a.exports = t | |
} | |
).call(e, t(20)) | |
} | |
, function(t) { | |
var e = Function.prototype | |
, n = e.toString; | |
t.exports = function(t) { | |
if (null != t) { | |
try { | |
return n.call(t) | |
} catch (t) {} | |
try { | |
return t + "" | |
} catch (t) {} | |
} | |
return "" | |
} | |
} | |
, function(d, e, t) { | |
function n(s, e, k, n, w, u) { | |
var t = k & a | |
, d = s.length | |
, c = e.length; | |
if (d != c && !(t && c > d)) | |
return !1; | |
var p = u.get(s); | |
if (p && u.get(e)) | |
return p == e; | |
var f = -1 | |
, h = !0 | |
, S = k & l ? new _ : void 0; | |
for (u.set(s, e), | |
u.set(e, s); ++f < d; ) { | |
var y = s[f] | |
, C = e[f]; | |
if (n) | |
var E = t ? n(C, y, f, e, s, u) : n(y, C, f, s, e, u); | |
if (void 0 !== E) { | |
if (E) | |
continue; | |
h = !1; | |
break | |
} | |
if (S) { | |
if (!o(e, function(a, e) { | |
if (!i(S, e) && (y === a || w(y, a, k, n, u))) | |
return S.push(e) | |
})) { | |
h = !1; | |
break | |
} | |
} else if (y !== C && !w(y, C, k, n, u)) { | |
h = !1; | |
break | |
} | |
} | |
return u.delete(s), | |
u.delete(e), | |
h | |
} | |
var _ = t(374) | |
, o = t(377) | |
, i = t(378) | |
, a = 1 | |
, l = 2; | |
d.exports = n | |
} | |
, function(d, e, t) { | |
var n = t(392) | |
, u = t(39) | |
, o = Object.prototype | |
, i = o.hasOwnProperty | |
, a = o.propertyIsEnumerable | |
, l = n(function() { | |
return arguments | |
}()) ? n : function(t) { | |
return u(t) && i.call(t, "callee") && !a.call(t, "callee") | |
} | |
; | |
d.exports = l | |
} | |
, function(a, d, t) { | |
(function(n) { | |
var e = t(18) | |
, p = t(393) | |
, o = "object" == typeof d && d && !d.nodeType && d | |
, i = o && "object" == typeof n && n && !n.nodeType && n | |
, a = i && i.exports === o | |
, l = a ? e.Buffer : void 0 | |
, s = l ? l.isBuffer : void 0; | |
n.exports = s || p | |
} | |
).call(d, t(77)(a)) | |
} | |
, function(t) { | |
function e(o, e) { | |
var s = typeof o; | |
return !!(e = null == e ? a : e) && ("number" == s || "symbol" != s && i.test(o)) && -1 < o && 0 == o % 1 && o < e | |
} | |
var a = 9007199254740991 | |
, i = /^(?:0|[1-9]\d*)$/; | |
t.exports = e | |
} | |
, function(s, e, t) { | |
var n = t(394) | |
, d = t(395) | |
, o = t(396) | |
, i = o && o.isTypedArray | |
, a = i ? d(i) : n; | |
s.exports = a | |
} | |
, function(a, e, t) { | |
var n = t(56); | |
a.exports = function(t) { | |
return t === t && !n(t) | |
} | |
} | |
, function(t) { | |
t.exports = function(a, e) { | |
return function(t) { | |
return null != t && t[a] === e && (void 0 !== e || a in Object(t)) | |
} | |
} | |
} | |
, function(a, e, t) { | |
function n(a, i) { | |
i = s(i, a); | |
for (var d = 0, l = i.length; null != a && d < l; ) | |
a = a[o(i[d++])]; | |
return d && d == l ? a : void 0 | |
} | |
var s = t(137) | |
, o = t(61); | |
a.exports = n | |
} | |
, function(s, e, t) { | |
var n = t(19) | |
, o = t(84) | |
, i = t(413) | |
, a = t(416); | |
s.exports = function(s, e) { | |
return n(s) ? s : o(s, e) ? [s] : i(a(s)) | |
} | |
} | |
, function(a, e, t) { | |
t(139), | |
a.exports = t(144) | |
} | |
, function(a, e, t) { | |
"use strict"; | |
"undefined" == typeof Promise && (t(140).enable(), | |
window.Promise = t(142)), | |
t(143), | |
Object.assign = t(62) | |
} | |
, function(d, e, t) { | |
"use strict"; | |
function p() { | |
s = !1, | |
a._47 = null, | |
a._71 = null | |
} | |
function n(u) { | |
function f(e) { | |
(u.allRejections || i(m[e].error, u.whitelist || l)) && (m[e].displayId = n++, | |
u.onUnhandled ? (m[e].logged = !0, | |
u.onUnhandled(m[e].displayId, m[e].error)) : (m[e].logged = !0, | |
o(m[e].displayId, m[e].error))) | |
} | |
function t(e) { | |
m[e].logged && (u.onHandled ? u.onHandled(m[e].displayId, m[e].error) : m[e].onUnhandled || (console.warn("Promise Rejection Handled (id: " + m[e].displayId + "):"), | |
console.warn(" This means you can ignore any previous messages of the form \"Possible Unhandled Promise Rejection\" with id " + m[e].displayId + "."))) | |
} | |
u = u || {}, | |
s && p(), | |
s = !0; | |
var h = 0 | |
, n = 0 | |
, m = {}; | |
a._47 = function(n) { | |
2 === n._83 && m[n._56] && (m[n._56].logged ? t(n._56) : clearTimeout(m[n._56].timeout), | |
delete m[n._56]) | |
} | |
, | |
a._71 = function(t, e) { | |
0 === t._75 && (t._56 = h++, | |
m[t._56] = { | |
displayId: null, | |
error: e, | |
timeout: setTimeout(f.bind(null, t._56), i(e, l) ? 100 : 2e3), | |
logged: !1 | |
}) | |
} | |
} | |
function o(n, e) { | |
console.warn("Possible Unhandled Promise Rejection (id: " + n + "):"), | |
((e && (e.stack || e)) + "").split("\n").forEach(function(t) { | |
console.warn(" " + t) | |
}) | |
} | |
function i(n, e) { | |
return e.some(function(e) { | |
return n instanceof e | |
}) | |
} | |
var a = t(85) | |
, l = [ReferenceError, TypeError, RangeError] | |
, s = !1; | |
e.disable = p, | |
e.enable = n | |
} | |
, function(p, e, t) { | |
"use strict"; | |
(function(e) { | |
function t(t) { | |
o.length || (d(), | |
a = !0), | |
o[o.length] = t | |
} | |
function n() { | |
for (; h < o.length; ) { | |
var i = h; | |
if (h += 1, | |
o[i].call(), | |
h > m) { | |
for (var e = 0, s = o.length - h; e < s; e++) | |
o[e] = o[e + h]; | |
o.length -= h, | |
h = 0 | |
} | |
} | |
o.length = 0, | |
h = 0, | |
a = !1 | |
} | |
function f(t) { | |
return function() { | |
function e() { | |
clearTimeout(a), | |
clearInterval(n), | |
t() | |
} | |
var a = setTimeout(e, 0) | |
, n = setInterval(e, 50) | |
} | |
} | |
p.exports = t; | |
var o = [], a = !1, h = 0, m = 1024, u = "undefined" == typeof e ? self : e, c = u.MutationObserver || u.WebKitMutationObserver, d; | |
d = "function" == typeof c ? function(a) { | |
var e = 1 | |
, o = new c(a) | |
, n = document.createTextNode(""); | |
return o.observe(n, { | |
characterData: !0 | |
}), | |
function() { | |
e = -e, | |
n.data = e | |
} | |
}(n) : f(n), | |
t.requestFlush = d, | |
t.makeRequestCallFromTimer = f | |
} | |
).call(e, t(20)) | |
} | |
, function(d, e, t) { | |
"use strict"; | |
function n(n) { | |
var e = new p(p._44); | |
return e._83 = 1, | |
e._18 = n, | |
e | |
} | |
var p = t(85); | |
d.exports = p; | |
var o = n(!0) | |
, i = n(!1) | |
, a = n(null) | |
, l = n(void 0) | |
, s = n(0) | |
, u = n(""); | |
p.resolve = function(d) { | |
if (d instanceof p) | |
return d; | |
if (null === d) | |
return a; | |
if (void 0 === d) | |
return l; | |
if (!0 === d) | |
return o; | |
if (!1 === d) | |
return i; | |
if (0 === d) | |
return s; | |
if ("" === d) | |
return u; | |
if ("object" == typeof d || "function" == typeof d) | |
try { | |
var e = d.then; | |
if ("function" == typeof e) | |
return new p(e.bind(d)) | |
} catch (a) { | |
return new p(function(e, t) { | |
t(a) | |
} | |
) | |
} | |
return n(d) | |
} | |
, | |
p.all = function(n) { | |
var o = Array.prototype.slice.call(n); | |
return new p(function(t, e) { | |
function n(i, a) { | |
if (a && ("object" == typeof a || "function" == typeof a)) { | |
if (a instanceof p && a.then === p.prototype.then) { | |
for (; 3 === a._83; ) | |
a = a._18; | |
return 1 === a._83 ? n(i, a._18) : (2 === a._83 && e(a._18), | |
void a.then(function(t) { | |
n(i, t) | |
}, e)) | |
} | |
var u = a.then; | |
if ("function" == typeof u) | |
return void new p(u.bind(a)).then(function(t) { | |
n(i, t) | |
}, e) | |
} | |
o[i] = a, | |
0 == --d && t(o) | |
} | |
if (0 === o.length) | |
return t([]); | |
for (var d = o.length, s = 0; s < o.length; s++) | |
n(s, o[s]) | |
} | |
) | |
} | |
, | |
p.reject = function(a) { | |
return new p(function(e, t) { | |
t(a) | |
} | |
) | |
} | |
, | |
p.race = function(a) { | |
return new p(function(o, t) { | |
a.forEach(function(n) { | |
p.resolve(n).then(o, t) | |
}) | |
} | |
) | |
} | |
, | |
p.prototype.catch = function(t) { | |
return this.then(null, t) | |
} | |
} | |
, function() { | |
!function(_) { | |
"use strict"; | |
function S(t) { | |
if ("string" != typeof t && (t = t + ""), | |
/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t)) | |
throw new TypeError("Invalid character in header field name"); | |
return t.toLowerCase() | |
} | |
function t(t) { | |
return "string" != typeof t && (t = t + ""), | |
t | |
} | |
function n(n) { | |
var e = { | |
next: function() { | |
var e = n.shift(); | |
return { | |
done: void 0 === e, | |
value: e | |
} | |
} | |
}; | |
return m.iterable && (e[Symbol.iterator] = function() { | |
return e | |
} | |
), | |
e | |
} | |
function C(n) { | |
this.map = {}, | |
n instanceof C ? n.forEach(function(n, e) { | |
this.append(e, n) | |
}, this) : Array.isArray(n) ? n.forEach(function(t) { | |
this.append(t[0], t[1]) | |
}, this) : n && Object.getOwnPropertyNames(n).forEach(function(e) { | |
this.append(e, n[e]) | |
}, this) | |
} | |
function E(t) { | |
return t.bodyUsed ? Promise.reject(new TypeError("Already read")) : void (t.bodyUsed = !0) | |
} | |
function i(a) { | |
return new Promise(function(e, t) { | |
a.onload = function() { | |
e(a.result) | |
} | |
, | |
a.onerror = function() { | |
t(a.error) | |
} | |
} | |
) | |
} | |
function e(a) { | |
var e = new FileReader | |
, t = i(e); | |
return e.readAsArrayBuffer(a), | |
t | |
} | |
function a(a) { | |
var e = new FileReader | |
, t = i(e); | |
return e.readAsText(a), | |
t | |
} | |
function s(a) { | |
for (var e = new Uint8Array(a), t = Array(e.length), n = 0; n < e.length; n++) | |
t[n] = o(e[n]); | |
return t.join("") | |
} | |
function l(n) { | |
if (n.slice) | |
return n.slice(0); | |
var e = new Uint8Array(n.byteLength); | |
return e.set(new Uint8Array(n)), | |
e.buffer | |
} | |
function u() { | |
return this.bodyUsed = !1, | |
this._initBody = function(t) { | |
if (!(this._bodyInit = t, | |
t)) | |
this._bodyText = ""; | |
else if ("string" == typeof t) | |
this._bodyText = t; | |
else if (m.blob && Blob.prototype.isPrototypeOf(t)) | |
this._bodyBlob = t; | |
else if (m.formData && FormData.prototype.isPrototypeOf(t)) | |
this._bodyFormData = t; | |
else if (m.searchParams && URLSearchParams.prototype.isPrototypeOf(t)) | |
this._bodyText = t.toString(); | |
else if (m.arrayBuffer && m.blob && v(t)) | |
this._bodyArrayBuffer = l(t.buffer), | |
this._bodyInit = new Blob([this._bodyArrayBuffer]); | |
else { | |
if (!m.arrayBuffer || !ArrayBuffer.prototype.isPrototypeOf(t) && !T(t)) | |
throw new Error("unsupported BodyInit type"); | |
this._bodyArrayBuffer = l(t) | |
} | |
this.headers.get("content-type") || ("string" == typeof t ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : m.searchParams && URLSearchParams.prototype.isPrototypeOf(t) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8")) | |
} | |
, | |
m.blob && (this.blob = function() { | |
var t = E(this); | |
if (t) | |
return t; | |
if (this._bodyBlob) | |
return Promise.resolve(this._bodyBlob); | |
if (this._bodyArrayBuffer) | |
return Promise.resolve(new Blob([this._bodyArrayBuffer])); | |
if (this._bodyFormData) | |
throw new Error("could not read FormData body as blob"); | |
return Promise.resolve(new Blob([this._bodyText])) | |
} | |
, | |
this.arrayBuffer = function() { | |
return this._bodyArrayBuffer ? E(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(e) | |
} | |
), | |
this.text = function() { | |
var t = E(this); | |
if (t) | |
return t; | |
if (this._bodyBlob) | |
return a(this._bodyBlob); | |
if (this._bodyArrayBuffer) | |
return Promise.resolve(s(this._bodyArrayBuffer)); | |
if (this._bodyFormData) | |
throw new Error("could not read FormData body as text"); | |
return Promise.resolve(this._bodyText) | |
} | |
, | |
m.formData && (this.formData = function() { | |
return this.text().then(p) | |
} | |
), | |
this.json = function() { | |
return this.text().then(JSON.parse) | |
} | |
, | |
this | |
} | |
function d(n) { | |
var e = n.toUpperCase(); | |
return -1 < x.indexOf(e) ? e : n | |
} | |
function c(a, e) { | |
e = e || {}; | |
var o = e.body; | |
if (a instanceof c) { | |
if (a.bodyUsed) | |
throw new TypeError("Already read"); | |
this.url = a.url, | |
this.credentials = a.credentials, | |
e.headers || (this.headers = new C(a.headers)), | |
this.method = a.method, | |
this.mode = a.mode, | |
o || null == a._bodyInit || (o = a._bodyInit, | |
a.bodyUsed = !0) | |
} else | |
this.url = a + ""; | |
if (this.credentials = e.credentials || this.credentials || "omit", | |
!e.headers && this.headers || (this.headers = new C(e.headers)), | |
this.method = d(e.method || this.method || "GET"), | |
this.mode = e.mode || this.mode || null, | |
this.referrer = null, | |
("GET" === this.method || "HEAD" === this.method) && o) | |
throw new TypeError("Body not allowed for GET or HEAD requests"); | |
this._initBody(o) | |
} | |
function p(n) { | |
var a = new FormData; | |
return n.trim().split("&").forEach(function(t) { | |
if (t) { | |
var e = t.split("=") | |
, n = e.shift().replace(/\+/g, " ") | |
, i = e.join("=").replace(/\+/g, " "); | |
a.append(decodeURIComponent(n), decodeURIComponent(i)) | |
} | |
}), | |
a | |
} | |
function f(n) { | |
var e = new C; | |
return n.split(/\r?\n/).forEach(function(t) { | |
var a = t.split(":") | |
, n = a.shift().trim(); | |
if (n) { | |
var i = a.join(":").trim(); | |
e.append(n, i) | |
} | |
}), | |
e | |
} | |
function h(n, e) { | |
e || (e = {}), | |
this.type = "default", | |
this.status = "status"in e ? e.status : 200, | |
this.ok = 200 <= this.status && 300 > this.status, | |
this.statusText = "statusText"in e ? e.statusText : "OK", | |
this.headers = new C(e.headers), | |
this.url = e.url || "", | |
this._initBody(n) | |
} | |
if (!_.fetch) { | |
var m = { | |
searchParams: "URLSearchParams"in _, | |
iterable: "Symbol"in _ && "iterator"in Symbol, | |
blob: "FileReader"in _ && "Blob"in _ && function() { | |
try { | |
return new Blob, | |
!0 | |
} catch (t) { | |
return !1 | |
} | |
}(), | |
formData: "FormData"in _, | |
arrayBuffer: "ArrayBuffer"in _ | |
}; | |
if (m.arrayBuffer) | |
var y = ["[object Int8Array]", "[object Uint8Array]", "[object Uint8ClampedArray]", "[object Int16Array]", "[object Uint16Array]", "[object Int32Array]", "[object Uint32Array]", "[object Float32Array]", "[object Float64Array]"] | |
, v = function(t) { | |
return t && DataView.prototype.isPrototypeOf(t) | |
} | |
, T = ArrayBuffer.isView || function(t) { | |
return t && -1 < y.indexOf(Object.prototype.toString.call(t)) | |
} | |
; | |
C.prototype.append = function(n, a) { | |
n = S(n), | |
a = t(a); | |
var i = this.map[n]; | |
this.map[n] = i ? i + "," + a : a | |
} | |
, | |
C.prototype.delete = function(t) { | |
delete this.map[S(t)] | |
} | |
, | |
C.prototype.get = function(t) { | |
return t = S(t), | |
this.has(t) ? this.map[t] : null | |
} | |
, | |
C.prototype.has = function(t) { | |
return this.map.hasOwnProperty(S(t)) | |
} | |
, | |
C.prototype.set = function(n, e) { | |
this.map[S(n)] = t(e) | |
} | |
, | |
C.prototype.forEach = function(a, e) { | |
for (var t in this.map) | |
this.map.hasOwnProperty(t) && a.call(e, this.map[t], t, this) | |
} | |
, | |
C.prototype.keys = function() { | |
var a = []; | |
return this.forEach(function(e, t) { | |
a.push(t) | |
}), | |
n(a) | |
} | |
, | |
C.prototype.values = function() { | |
var a = []; | |
return this.forEach(function(e) { | |
a.push(e) | |
}), | |
n(a) | |
} | |
, | |
C.prototype.entries = function() { | |
var a = []; | |
return this.forEach(function(e, t) { | |
a.push([t, e]) | |
}), | |
n(a) | |
} | |
, | |
m.iterable && (C.prototype[Symbol.iterator] = C.prototype.entries); | |
var x = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"]; | |
c.prototype.clone = function() { | |
return new c(this,{ | |
body: this._bodyInit | |
}) | |
} | |
, | |
u.call(c.prototype), | |
u.call(h.prototype), | |
h.prototype.clone = function() { | |
return new h(this._bodyInit,{ | |
status: this.status, | |
statusText: this.statusText, | |
headers: new C(this.headers), | |
url: this.url | |
}) | |
} | |
, | |
h.error = function() { | |
var t = new h(null,{ | |
status: 0, | |
statusText: "" | |
}); | |
return t.type = "error", | |
t | |
} | |
; | |
var w = [301, 302, 303, 307, 308]; | |
h.redirect = function(n, e) { | |
if (-1 === w.indexOf(e)) | |
throw new RangeError("Invalid status code"); | |
return new h(null,{ | |
status: e, | |
headers: { | |
location: n | |
} | |
}) | |
} | |
, | |
_.Headers = C, | |
_.Request = c, | |
_.Response = h, | |
_.fetch = function(a, e) { | |
return new Promise(function(s, t) { | |
var n = new c(a,e) | |
, o = new XMLHttpRequest; | |
o.onload = function() { | |
var n = { | |
status: o.status, | |
statusText: o.statusText, | |
headers: f(o.getAllResponseHeaders() || "") | |
}; | |
n.url = "responseURL"in o ? o.responseURL : n.headers.get("X-Request-URL"); | |
var e = "response"in o ? o.response : o.responseText; | |
s(new h(e,n)) | |
} | |
, | |
o.onerror = function() { | |
t(new TypeError("Network request failed")) | |
} | |
, | |
o.ontimeout = function() { | |
t(new TypeError("Network request failed")) | |
} | |
, | |
o.open(n.method, n.url, !0), | |
"include" === n.credentials && (o.withCredentials = !0), | |
"responseType"in o && m.blob && (o.responseType = "blob"), | |
n.headers.forEach(function(n, e) { | |
o.setRequestHeader(e, n) | |
}), | |
o.send("undefined" == typeof n._bodyInit ? null : n._bodyInit) | |
} | |
) | |
} | |
, | |
_.fetch.polyfill = !0 | |
} | |
}("undefined" == typeof self ? this : self) | |
} | |
, function(d, e, t) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { | |
value: !0 | |
}); | |
var n = t(1) | |
, p = t.n(n) | |
, o = t(16) | |
, i = t.n(o) | |
, a = t(149) | |
, l = (t.n(a), | |
t(150)) | |
, s = t(444); | |
i.a.render(p.a.createElement(l.a, null), document.getElementById("root")), | |
Object(s.a)() | |
} | |
, function(q, e, t) { | |
"use strict"; | |
function X(d, p, t, n, c, o, i, a) { | |
if (!d) { | |
if (d = void 0, | |
void 0 === p) | |
d = Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."); | |
else { | |
var l = [t, n, c, o, i, a] | |
, s = 0; | |
d = Error(p.replace(/%s/g, function() { | |
return l[s++] | |
})), | |
d.name = "Invariant Violation" | |
} | |
throw d.framesToPop = 1, | |
d | |
} | |
} | |
function G(a) { | |
for (var e = arguments.length - 1, t = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, i = 0; i < e; i++) | |
t += "&args[]=" + encodeURIComponent(arguments[i + 1]); | |
X(!1, "Minified React error #" + a + "; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ", t) | |
} | |
function n(a, e, t) { | |
this.props = a, | |
this.context = e, | |
this.refs = N, | |
this.updater = t || R | |
} | |
function o() {} | |
function a(a, e, t) { | |
this.props = a, | |
this.context = e, | |
this.refs = N, | |
this.updater = t || R | |
} | |
function i(d, e, t) { | |
var n = {}, o = null, p = null, c; | |
if (null != e) | |
for (c in void 0 !== e.ref && (p = e.ref), | |
void 0 !== e.key && (o = "" + e.key), | |
e) | |
L.call(e, c) && !W.hasOwnProperty(c) && (n[c] = e[c]); | |
var f = arguments.length - 2; | |
if (1 === f) | |
n.children = t; | |
else if (1 < f) { | |
for (var h = Array(f), s = 0; s < f; s++) | |
h[s] = arguments[s + 2]; | |
n.children = h | |
} | |
if (d && d.defaultProps) | |
for (c in f = d.defaultProps) | |
void 0 === n[c] && (n[c] = f[c]); | |
return { | |
$$typeof: w, | |
type: d, | |
key: o, | |
ref: p, | |
props: n, | |
_owner: F.current | |
} | |
} | |
function s(n, e) { | |
return { | |
$$typeof: w, | |
type: n.type, | |
key: e, | |
ref: n.ref, | |
props: n.props, | |
_owner: n._owner | |
} | |
} | |
function l(t) { | |
return "object" == typeof t && null !== t && t.$$typeof === w | |
} | |
function u(n) { | |
var a = { | |
"=": "=0", | |
":": "=2" | |
}; | |
return "$" + ("" + n).replace(/[=:]/g, function(t) { | |
return a[t] | |
}) | |
} | |
function d(a, e, t, n) { | |
if (U.length) { | |
var i = U.pop(); | |
return i.result = a, | |
i.keyPrefix = e, | |
i.func = t, | |
i.context = n, | |
i.count = 0, | |
i | |
} | |
return { | |
result: a, | |
keyPrefix: e, | |
func: t, | |
context: n, | |
count: 0 | |
} | |
} | |
function c(t) { | |
t.result = null, | |
t.keyPrefix = null, | |
t.func = null, | |
t.context = null, | |
t.count = 0, | |
10 > U.length && U.push(t) | |
} | |
function p(o, d, u, c) { | |
var f = typeof o; | |
"undefined" !== f && "boolean" !== f || (o = null); | |
var m = !1; | |
if (null === o) | |
m = !0; | |
else | |
switch (f) { | |
case "string": | |
case "number": | |
m = !0; | |
break; | |
case "object": | |
switch (o.$$typeof) { | |
case w: | |
case k: | |
m = !0; | |
} | |
} | |
if (m) | |
return u(c, o, "" === d ? "." + h(o, 0) : d), | |
1; | |
if (m = 0, | |
d = "" === d ? "." : d + ":", | |
Array.isArray(o)) | |
for (var y = 0; y < o.length; y++) { | |
f = o[y]; | |
var x = d + h(f, y); | |
m += p(f, x, u, c) | |
} | |
else if (null === o || "object" != typeof o ? x = null : (x = I && o[I] || o["@@iterator"], | |
x = "function" == typeof x ? x : null), | |
"function" == typeof x) | |
for (o = x.call(o), | |
y = 0; !(f = o.next()).done; ) | |
f = f.value, | |
x = d + h(f, y++), | |
m += p(f, x, u, c); | |
else | |
"object" === f && (u = "" + o, | |
G("31", "[object Object]" === u ? "object with keys {" + Object.keys(o).join(", ") + "}" : u, "")); | |
return m | |
} | |
function f(a, e, t) { | |
return null == a ? 0 : p(a, "", e, t) | |
} | |
function h(n, e) { | |
return "object" == typeof n && null !== n && null != n.key ? u(n.key) : e.toString(36) | |
} | |
function m(n, e) { | |
n.func.call(n.context, e, n.count++) | |
} | |
function y(a, i, t) { | |
var n = a.result | |
, d = a.keyPrefix; | |
a = a.func.call(a.context, i, a.count++), | |
Array.isArray(a) ? v(a, n, t, function(t) { | |
return t | |
}) : null != a && (l(a) && (a = s(a, d + (!a.key || i && i.key === a.key ? "" : ("" + a.key).replace(z, "$&/") + "/") + t)), | |
n.push(a)) | |
} | |
function v(a, e, s, n, l) { | |
var o = ""; | |
null != s && (o = ("" + s).replace(z, "$&/") + "/"), | |
e = d(e, o, n, l), | |
f(a, y, e), | |
c(e) | |
} | |
var Z = t(62) | |
, x = "function" == typeof Symbol && Symbol.for | |
, w = x ? Symbol.for("react.element") : 60103 | |
, k = x ? Symbol.for("react.portal") : 60106 | |
, _ = x ? Symbol.for("react.fragment") : 60107 | |
, S = x ? Symbol.for("react.strict_mode") : 60108 | |
, C = x ? Symbol.for("react.profiler") : 60114 | |
, T = x ? Symbol.for("react.provider") : 60109 | |
, E = x ? Symbol.for("react.context") : 60110 | |
, O = x ? Symbol.for("react.concurrent_mode") : 60111 | |
, P = x ? Symbol.for("react.forward_ref") : 60112 | |
, M = x ? Symbol.for("react.suspense") : 60113 | |
, D = x ? Symbol.for("react.memo") : 60115 | |
, j = x ? Symbol.for("react.lazy") : 60116 | |
, I = "function" == typeof Symbol && Symbol.iterator | |
, R = { | |
isMounted: function() { | |
return !1 | |
}, | |
enqueueForceUpdate: function() {}, | |
enqueueReplaceState: function() {}, | |
enqueueSetState: function() {} | |
} | |
, N = {}; | |
n.prototype.isReactComponent = {}, | |
n.prototype.setState = function(n, e) { | |
"object" != typeof n && "function" != typeof n && null != n && G("85"), | |
this.updater.enqueueSetState(this, n, e, "setState") | |
} | |
, | |
n.prototype.forceUpdate = function(t) { | |
this.updater.enqueueForceUpdate(this, t, "forceUpdate") | |
} | |
, | |
o.prototype = n.prototype; | |
var A = a.prototype = new o; | |
A.constructor = a, | |
Z(A, n.prototype), | |
A.isPureReactComponent = !0; | |
var F = { | |
current: null, | |
currentDispatcher: null | |
} | |
, L = Object.prototype.hasOwnProperty | |
, W = { | |
key: !0, | |
ref: !0, | |
__self: !0, | |
__source: !0 | |
} | |
, z = /\/+/g | |
, U = [] | |
, B = { | |
Children: { | |
map: function(a, e, t) { | |
if (null == a) | |
return a; | |
var n = []; | |
return v(a, n, null, e, t), | |
n | |
}, | |
forEach: function(a, e, o) { | |
return null == a ? a : void (e = d(null, null, e, o), | |
f(a, m, e), | |
c(e)) | |
}, | |
count: function(t) { | |
return f(t, function() { | |
return null | |
}, null) | |
}, | |
toArray: function(n) { | |
var e = []; | |
return v(n, e, null, function(t) { | |
return t | |
}), | |
e | |
}, | |
only: function(t) { | |
return l(t) || G("143"), | |
t | |
} | |
}, | |
createRef: function() { | |
return { | |
current: null | |
} | |
}, | |
Component: n, | |
PureComponent: a, | |
createContext: function(n, a) { | |
return void 0 === a && (a = null), | |
n = { | |
$$typeof: E, | |
_calculateChangedBits: a, | |
_currentValue: n, | |
_currentValue2: n, | |
Provider: null, | |
Consumer: null | |
}, | |
n.Provider = { | |
$$typeof: T, | |
_context: n | |
}, | |
n.Consumer = n | |
}, | |
forwardRef: function(t) { | |
return { | |
$$typeof: P, | |
render: t | |
} | |
}, | |
lazy: function(t) { | |
return { | |
$$typeof: j, | |
_ctor: t, | |
_status: -1, | |
_result: null | |
} | |
}, | |
memo: function(n, e) { | |
return { | |
$$typeof: D, | |
type: n, | |
compare: void 0 === e ? null : e | |
} | |
}, | |
Fragment: _, | |
StrictMode: S, | |
Suspense: M, | |
createElement: i, | |
cloneElement: function(o, e, t) { | |
(null === o || void 0 === o) && G("267", o); | |
var n = Z({}, o.props), i = o.key, d = o.ref, p = o._owner, f; | |
if (null != e) { | |
void 0 !== e.ref && (d = e.ref, | |
p = F.current), | |
void 0 !== e.key && (i = "" + e.key); | |
var h; | |
for (f in o.type && o.type.defaultProps && (h = o.type.defaultProps), | |
e) | |
L.call(e, f) && !W.hasOwnProperty(f) && (n[f] = void 0 === e[f] && void 0 !== h ? h[f] : e[f]) | |
} | |
if (1 == (f = arguments.length - 2)) | |
n.children = t; | |
else if (1 < f) { | |
h = Array(f); | |
for (var m = 0; m < f; m++) | |
h[m] = arguments[m + 2]; | |
n.children = h | |
} | |
return { | |
$$typeof: w, | |
type: o.type, | |
key: i, | |
ref: d, | |
props: n, | |
_owner: p | |
} | |
}, | |
createFactory: function(n) { | |
var e = i.bind(null, n); | |
return e.type = n, | |
e | |
}, | |
isValidElement: l, | |
version: "16.6.1", | |
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { | |
ReactCurrentOwner: F, | |
assign: Z | |
} | |
}; | |
B.unstable_ConcurrentMode = O, | |
B.unstable_Profiler = C; | |
var H = { | |
default: B | |
} | |
, V = H && B || H; | |
q.exports = V.default || V | |
} | |
, function(Co, e, t) { | |
"use strict"; | |
function pi(d, p, t, n, c, o, i, a) { | |
if (!d) { | |
if (d = void 0, | |
void 0 === p) | |
d = Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."); | |
else { | |
var l = [t, n, c, o, i, a] | |
, s = 0; | |
d = Error(p.replace(/%s/g, function() { | |
return l[s++] | |
})), | |
d.name = "Invariant Violation" | |
} | |
throw d.framesToPop = 1, | |
d | |
} | |
} | |
function Ci(a) { | |
for (var e = arguments.length - 1, t = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, i = 0; i < e; i++) | |
t += "&args[]=" + encodeURIComponent(arguments[i + 1]); | |
pi(!1, "Minified React error #" + a + "; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ", t) | |
} | |
function n(a, e, t) { | |
var n = Array.prototype.slice.call(arguments, 3); | |
try { | |
e.apply(t, n) | |
} catch (t) { | |
this.onError(t) | |
} | |
} | |
function i() { | |
Nr = !1, | |
rs = null, | |
n.apply(ds, arguments) | |
} | |
function a() { | |
if (i.apply(this, arguments), | |
Nr) { | |
if (Nr) { | |
var e = rs; | |
Nr = !1, | |
rs = null | |
} else | |
Ci("198"), | |
e = void 0; | |
is || (is = !0, | |
ss = e) | |
} | |
} | |
function l() { | |
if (zr) | |
for (var o in ls) { | |
var e = ls[o] | |
, t = zr.indexOf(o); | |
if (-1 < t || Ci("96", o), | |
!Br[t]) | |
for (var d in e.extractEvents || Ci("97", o), | |
Br[t] = e, | |
t = e.eventTypes, | |
t) { | |
var u = void 0 | |
, p = t[d] | |
, a = e | |
, l = d; | |
Hr.hasOwnProperty(l) && Ci("99", l), | |
Hr[l] = p; | |
var s = p.phasedRegistrationNames; | |
if (s) { | |
for (u in s) | |
s.hasOwnProperty(u) && Ui(s[u], a, l); | |
u = !0 | |
} else | |
p.registrationName ? (Ui(p.registrationName, a, l), | |
u = !0) : u = !1; | |
u || Ci("98", d, o) | |
} | |
} | |
} | |
function Ui(a, e, t) { | |
Vr[a] && Ci("100", a), | |
Vr[a] = e, | |
Yr[a] = e.eventTypes[t].dependencies | |
} | |
function s(o, e, t) { | |
var n = o.type || "unknown-event"; | |
o.currentTarget = ps(t), | |
a(n, e, void 0, o), | |
o.currentTarget = null | |
} | |
function u(n, e) { | |
return null == e && Ci("30"), | |
null == n ? e : Array.isArray(n) ? Array.isArray(e) ? (n.push.apply(n, e), | |
n) : (n.push(e), | |
n) : Array.isArray(e) ? [n].concat(e) : [n, e] | |
} | |
function d(a, e, t) { | |
Array.isArray(a) ? a.forEach(e, t) : a && e.call(t, a) | |
} | |
function c(a) { | |
if (a) { | |
var e = a._dispatchListeners | |
, t = a._dispatchInstances; | |
if (Array.isArray(e)) | |
for (var n = 0; n < e.length && !a.isPropagationStopped(); n++) | |
s(a, e[n], t[n]); | |
else | |
e && s(a, e, t); | |
a._dispatchListeners = null, | |
a._dispatchInstances = null, | |
a.isPersistent() || a.constructor.release(a) | |
} | |
} | |
function p(a, o) { | |
var t = a.stateNode; | |
if (!t) | |
return null; | |
var i = Gr(t); | |
if (!i) | |
return null; | |
t = i[o]; | |
e: "onClick" === o || "onClickCapture" === o || "onDoubleClick" === o || "onDoubleClickCapture" === o || "onMouseDown" === o || "onMouseDownCapture" === o || "onMouseMove" === o || "onMouseMoveCapture" === o || "onMouseUp" === o || "onMouseUpCapture" === o ? ((i = !i.disabled) || (a = a.type, | |
i = "button" !== a && "input" !== a && "select" !== a && "textarea" !== a), | |
a = !i) : a = !1; | |
return a ? null : (t && "function" != typeof t && Ci("231", o, typeof t), | |
t) | |
} | |
function f(t) { | |
if (null !== t && (cs = u(cs, t)), | |
t = cs, | |
cs = null, | |
t && (d(t, c), | |
cs && Ci("95"), | |
is)) | |
throw t = ss, | |
is = !1, | |
ss = null, | |
t | |
} | |
function h(t) { | |
if (t[Jr]) | |
return t[Jr]; | |
for (; !t[Jr]; ) { | |
if (!t.parentNode) | |
return null; | |
t = t.parentNode | |
} | |
return t = t[Jr], | |
5 === t.tag || 6 === t.tag ? t : null | |
} | |
function m(t) { | |
return t = t[Jr], | |
t && (5 === t.tag || 6 === t.tag) ? t : null | |
} | |
function y(t) { | |
return 5 === t.tag || 6 === t.tag ? t.stateNode : void Ci("33") | |
} | |
function v(t) { | |
return t[Qr] || null | |
} | |
function es(t) { | |
do | |
t = t.return; | |
while (t && 5 !== t.tag);return t || null | |
} | |
function x(a, e, o) { | |
(e = p(a, o.dispatchConfig.phasedRegistrationNames[e])) && (o._dispatchListeners = u(o._dispatchListeners, e), | |
o._dispatchInstances = u(o._dispatchInstances, a)) | |
} | |
function w(a) { | |
if (a && a.dispatchConfig.phasedRegistrationNames) { | |
for (var e = a._targetInst, o = []; e; ) | |
o.push(e), | |
e = es(e); | |
for (e = o.length; 0 < e--; ) | |
x(o[e], "captured", a); | |
for (e = 0; e < o.length; e++) | |
x(o[e], "bubbled", a) | |
} | |
} | |
function k(a, e, o) { | |
a && o && o.dispatchConfig.registrationName && (e = p(a, o.dispatchConfig.registrationName)) && (o._dispatchListeners = u(o._dispatchListeners, e), | |
o._dispatchInstances = u(o._dispatchInstances, a)) | |
} | |
function _(t) { | |
t && t.dispatchConfig.registrationName && k(t._targetInst, null, t) | |
} | |
function S(t) { | |
d(t, w) | |
} | |
function C(a, e) { | |
var t = {}; | |
return t[a.toLowerCase()] = e.toLowerCase(), | |
t["Webkit" + a] = "webkit" + e, | |
t["Moz" + a] = "moz" + e, | |
t | |
} | |
function T(a) { | |
if (no[a]) | |
return no[a]; | |
if (!to[a]) | |
return a; | |
var e = to[a], n; | |
for (n in e) | |
if (e.hasOwnProperty(n) && n in ro) | |
return no[a] = e[n]; | |
return a | |
} | |
function E() { | |
if (gs) | |
return gs; | |
var s = ms, n = s.length, d = "value"in uo ? uo.value : uo.textContent, o = d.length, i, l; | |
for (i = 0; i < n && s[i] === d[i]; i++) | |
; | |
var u = n - i; | |
for (l = 1; l <= u && s[n - l] === d[o - l]; l++) | |
; | |
return gs = d.slice(i, 1 < l ? 1 - l : void 0) | |
} | |
function O() { | |
return !0 | |
} | |
function P() { | |
return !1 | |
} | |
function M(a, i, s, n) { | |
for (var d in this.dispatchConfig = a, | |
this._targetInst = i, | |
this.nativeEvent = s, | |
a = this.constructor.Interface, | |
a) | |
a.hasOwnProperty(d) && ((i = a[d]) ? this[d] = i(s) : "target" == d ? this.target = n : this[d] = s[d]); | |
return this.isDefaultPrevented = (null == s.defaultPrevented ? !1 === s.returnValue : s.defaultPrevented) ? O : P, | |
this.isPropagationStopped = P, | |
this | |
} | |
function D(a, e, t, n) { | |
if (this.eventPool.length) { | |
var i = this.eventPool.pop(); | |
return this.call(i, a, e, t, n), | |
i | |
} | |
return new this(a,e,t,n) | |
} | |
function j(t) { | |
t instanceof this || Ci("279"), | |
t.destructor(), | |
10 > this.eventPool.length && this.eventPool.push(t) | |
} | |
function I(t) { | |
t.eventPool = [], | |
t.getPooled = D, | |
t.release = j | |
} | |
function ts(n, e) { | |
return "keyup" === n ? -1 !== mo.indexOf(e.keyCode) : "keydown" === n ? 229 !== e.keyCode : !("keypress" != n && "mousedown" != n && "blur" != n) | |
} | |
function N(t) { | |
return t = t.detail, | |
"object" == typeof t && "data"in t ? t.data : null | |
} | |
function A(n, a) { | |
return "compositionend" === n ? N(a) : "keypress" === n ? 32 === a.which ? (ko = !0, | |
xo) : null : "textInput" === n ? (n = a.data, | |
n === xo && ko ? null : n) : null | |
} | |
function F(n, a) { | |
if (xs) | |
return "compositionend" === n || !vo && ts(n, a) ? (n = E(), | |
gs = ms = uo = null, | |
xs = !1, | |
n) : null; | |
switch (n) { | |
case "paste": | |
return null; | |
case "keypress": | |
if (!(a.ctrlKey || a.altKey || a.metaKey) || a.ctrlKey && a.altKey) { | |
if (a.char && 1 < a.char.length) | |
return a.char; | |
if (a.which) | |
return o(a.which) | |
} | |
return null; | |
case "compositionend": | |
return bo && "ko" !== a.locale ? null : a.data; | |
default: | |
return null; | |
} | |
} | |
function L(n) { | |
if (n = us(n)) { | |
"function" != typeof _s && Ci("280"); | |
var a = Gr(n.stateNode); | |
_s(n.stateNode, n.type, a) | |
} | |
} | |
function W(t) { | |
vs ? ks ? ks.push(t) : ks = [t] : vs = t | |
} | |
function z() { | |
if (vs) { | |
var n = vs | |
, a = ks; | |
if (ks = vs = null, | |
L(n), | |
a) | |
for (n = 0; n < a.length; n++) | |
L(a[n]) | |
} | |
} | |
function U(n, e) { | |
return n(e) | |
} | |
function ns(a, e, t) { | |
return a(e, t) | |
} | |
function as() {} | |
function os(n, e) { | |
if (ws) | |
return n(e); | |
ws = !0; | |
try { | |
return U(n, e) | |
} finally { | |
ws = !1, | |
(null !== vs || null !== ks) && (as(), | |
z()) | |
} | |
} | |
function Y(n) { | |
var e = n && n.nodeName && n.nodeName.toLowerCase(); | |
return "input" === e ? !!Ss[n.type] : "textarea" === e | |
} | |
function G(t) { | |
return t = t.target || t.srcElement || window, | |
t.correspondingUseElement && (t = t.correspondingUseElement), | |
3 === t.nodeType ? t.parentNode : t | |
} | |
function q(n) { | |
if (!eo) | |
return !1; | |
n = "on" + n; | |
var a = n in document; | |
return a || (a = document.createElement("div"), | |
a.setAttribute(n, "return;"), | |
a = "function" == typeof a[n]), | |
a | |
} | |
function $(n) { | |
var a = n.type; | |
return (n = n.nodeName) && "input" === n.toLowerCase() && ("checkbox" === a || "radio" === a) | |
} | |
function K(a) { | |
var e = $(a) ? "checked" : "value" | |
, t = Object.getOwnPropertyDescriptor(a.constructor.prototype, e) | |
, n = "" + a[e]; | |
if (!a.hasOwnProperty(e) && "undefined" != typeof t && "function" == typeof t.get && "function" == typeof t.set) { | |
var s = t.get | |
, o = t.set; | |
return Object.defineProperty(a, e, { | |
configurable: !0, | |
get: function() { | |
return s.call(this) | |
}, | |
set: function(t) { | |
n = "" + t, | |
o.call(this, t) | |
} | |
}), | |
Object.defineProperty(a, e, { | |
enumerable: t.enumerable | |
}), | |
{ | |
getValue: function() { | |
return n | |
}, | |
setValue: function(t) { | |
n = "" + t | |
}, | |
stopTracking: function() { | |
a._valueTracker = null, | |
delete a[e] | |
} | |
} | |
} | |
} | |
function X(t) { | |
t._valueTracker || (t._valueTracker = K(t)) | |
} | |
function Z(a) { | |
if (!a) | |
return !1; | |
var o = a._valueTracker; | |
if (!o) | |
return !0; | |
var t = o.getValue() | |
, n = ""; | |
return a && (n = $(a) ? a.checked ? "true" : "false" : a.value), | |
(a = n) !== t && (o.setValue(a), | |
!0) | |
} | |
function J(t) { | |
return null === t || "object" != typeof t ? null : (t = Yo && t[Yo] || t["@@iterator"], | |
"function" == typeof t ? t : null) | |
} | |
function Q(n) { | |
if (null == n) | |
return null; | |
if ("function" == typeof n) | |
return n.displayName || n.name || null; | |
if ("string" == typeof n) | |
return n; | |
switch (n) { | |
case zo: | |
return "ConcurrentMode"; | |
case No: | |
return "Fragment"; | |
case Ro: | |
return "Portal"; | |
case Fo: | |
return "Profiler"; | |
case Ao: | |
return "StrictMode"; | |
case Bo: | |
return "Suspense"; | |
} | |
if ("object" == typeof n) | |
switch (n.$$typeof) { | |
case Wo: | |
return "Context.Consumer"; | |
case Lo: | |
return "Context.Provider"; | |
case Uo: | |
var a = n.render; | |
return a = a.displayName || a.name || "", | |
n.displayName || ("" === a ? "ForwardRef" : "ForwardRef(" + a + ")"); | |
case Ho: | |
return Q(n.type); | |
case Vo: | |
if (n = 1 === n._status ? n._result : null) | |
return Q(n); | |
} | |
return null | |
} | |
function ee(a) { | |
var s = ""; | |
do { | |
e: switch (a.tag) { | |
case 2: | |
case 16: | |
case 0: | |
case 1: | |
case 5: | |
case 8: | |
case 13: | |
var d = a._debugOwner | |
, l = a._debugSource | |
, u = Q(a.type) | |
, p = null; | |
d && (p = Q(d.type)), | |
d = u, | |
u = "", | |
l ? u = " (at " + l.fileName.replace(Do, "") + ":" + l.lineNumber + ")" : p && (u = " (created by " + p + ")"), | |
p = "\n in " + (d || "Unknown") + u; | |
break e; | |
default: | |
p = ""; | |
} | |
s += p, | |
a = a.return | |
} while (a);return s | |
} | |
function te(t) { | |
return !!qo.call(Ko, t) || !qo.call($o, t) && (Go.test(t) ? Ko[t] = !0 : ($o[t] = !0, | |
!1)) | |
} | |
function ne(a, o, t, n) { | |
if (null !== t && 0 === t.type) | |
return !1; | |
switch (typeof o) { | |
case "function": | |
case "symbol": | |
return !0; | |
case "boolean": | |
return !n && (null === t ? "data-" !== (a = a.toLowerCase().slice(0, 5)) && "aria-" !== a : !t.acceptsBooleans); | |
default: | |
return !1; | |
} | |
} | |
function re(a, e, t, n) { | |
if (null === e || "undefined" == typeof e || ne(a, e, t, n)) | |
return !0; | |
if (n) | |
return !1; | |
if (null !== t) | |
switch (t.type) { | |
case 3: | |
return !e; | |
case 4: | |
return !1 === e; | |
case 5: | |
return isNaN(e); | |
case 6: | |
return isNaN(e) || 1 > e; | |
} | |
return !1 | |
} | |
function oe(a, e, t, n, i) { | |
this.acceptsBooleans = 2 === e || 3 === e || 4 === e, | |
this.attributeName = n, | |
this.attributeNamespace = i, | |
this.mustUseProperty = t, | |
this.propertyName = a, | |
this.type = e | |
} | |
function ie(t) { | |
return t[1].toUpperCase() | |
} | |
function ae(a, e, i, s) { | |
var d = Xo.hasOwnProperty(e) ? Xo[e] : null; | |
(null === d ? !s && 2 < e.length && ("o" === e[0] || "O" === e[0]) && ("n" === e[1] || "N" === e[1]) : 0 === d.type) || (re(e, i, d, s) && (i = null), | |
s || null === d ? te(e) && (null === i ? a.removeAttribute(e) : a.setAttribute(e, "" + i)) : d.mustUseProperty ? a[d.propertyName] = null === i ? 3 !== d.type && "" : i : (e = d.attributeName, | |
s = d.attributeNamespace, | |
null === i ? a.removeAttribute(e) : (d = d.type, | |
i = 3 === d || 4 === d && !0 === i ? "" : "" + i, | |
s ? a.setAttributeNS(s, e, i) : a.setAttribute(e, i)))) | |
} | |
function le(t) { | |
switch (typeof t) { | |
case "boolean": | |
case "number": | |
case "object": | |
case "string": | |
case "undefined": | |
return t; | |
default: | |
return ""; | |
} | |
} | |
function se(a, e) { | |
var t = e.checked; | |
return Ir({}, e, { | |
defaultChecked: void 0, | |
defaultValue: void 0, | |
value: void 0, | |
checked: null == t ? a._wrapperState.initialChecked : t | |
}) | |
} | |
function ue(a, e) { | |
var t = null == e.defaultValue ? "" : e.defaultValue | |
, o = null == e.checked ? e.defaultChecked : e.checked; | |
t = le(null == e.value ? t : e.value), | |
a._wrapperState = { | |
initialChecked: o, | |
initialValue: t, | |
controlled: "checkbox" === e.type || "radio" === e.type ? null != e.checked : null != e.value | |
} | |
} | |
function ce(n, e) { | |
null != (e = e.checked) && ae(n, "checked", e, !1) | |
} | |
function de(a, e) { | |
ce(a, e); | |
var t = le(e.value) | |
, n = e.type; | |
if (null != t) | |
"number" === n ? (0 === t && "" === a.value || a.value != t) && (a.value = "" + t) : a.value !== "" + t && (a.value = "" + t); | |
else if ("submit" === n || "reset" === n) | |
return void a.removeAttribute("value"); | |
e.hasOwnProperty("value") ? pe(a, e.type, t) : e.hasOwnProperty("defaultValue") && pe(a, e.type, le(e.defaultValue)), | |
null == e.checked && null != e.defaultChecked && (a.defaultChecked = !!e.defaultChecked) | |
} | |
function fe(a, e, o) { | |
if (e.hasOwnProperty("value") || e.hasOwnProperty("defaultValue")) { | |
var i = e.type; | |
if (("submit" === i || "reset" === i) && (void 0 === e.value || null === e.value)) | |
return; | |
e = "" + a._wrapperState.initialValue, | |
o || e === a.value || (a.value = e), | |
a.defaultValue = e | |
} | |
o = a.name, | |
"" !== o && (a.name = ""), | |
a.defaultChecked = !a.defaultChecked, | |
a.defaultChecked = !!a._wrapperState.initialChecked, | |
"" !== o && (a.name = o) | |
} | |
function pe(a, e, t) { | |
"number" === e && a.ownerDocument.activeElement === a || (null == t ? a.defaultValue = "" + a._wrapperState.initialValue : a.defaultValue !== "" + t && (a.defaultValue = "" + t)) | |
} | |
function he(a, o, t) { | |
return a = M.getPooled(Jo.change, a, o, t), | |
a.type = "change", | |
W(t), | |
S(a), | |
a | |
} | |
function me(t) { | |
f(t) | |
} | |
function ve(t) { | |
if (Z(y(t))) | |
return t | |
} | |
function ye(n, e) { | |
if ("change" === n) | |
return e | |
} | |
function ge() { | |
Qo && (Qo.detachEvent("onpropertychange", be), | |
Cs = Qo = null) | |
} | |
function be(t) { | |
"value" === t.propertyName && ve(Cs) && (t = he(Cs, t, G(t)), | |
os(me, t)) | |
} | |
function xe(a, e, t) { | |
"focus" === a ? (ge(), | |
Qo = e, | |
Cs = t, | |
Qo.attachEvent("onpropertychange", be)) : "blur" == a && ge() | |
} | |
function we(t) { | |
if ("selectionchange" === t || "keyup" === t || "keydown" === t) | |
return ve(Cs) | |
} | |
function ke(n, e) { | |
if ("click" === n) | |
return ve(e) | |
} | |
function _e(n, e) { | |
if ("input" === n || "change" === n) | |
return ve(e) | |
} | |
function Se(n) { | |
var a = this.nativeEvent; | |
return a.getModifierState ? a.getModifierState(n) : !!(n = oi[n]) && !!a[n] | |
} | |
function Ce() { | |
return Se | |
} | |
function Te(n, e) { | |
return n === e ? 0 !== n || 0 !== e || 1 / n == 1 / e : n !== n && e !== e | |
} | |
function Ee(a, e) { | |
if (Te(a, e)) | |
return !0; | |
if ("object" != typeof a || null === a || "object" != typeof e || null === e) | |
return !1; | |
var t = Object.keys(a) | |
, n = Object.keys(e); | |
if (t.length !== n.length) | |
return !1; | |
for (n = 0; n < t.length; n++) | |
if (!fi.call(e, t[n]) || !Te(a[t[n]], e[t[n]])) | |
return !1; | |
return !0 | |
} | |
function Oe(n) { | |
var e = n; | |
if (n.alternate) | |
for (; e.return; ) | |
e = e.return; | |
else { | |
if (0 != (2 & e.effectTag)) | |
return 1; | |
for (; e.return; ) | |
if (e = e.return, | |
0 != (2 & e.effectTag)) | |
return 1 | |
} | |
return 3 === e.tag ? 2 : 3 | |
} | |
function Pe(t) { | |
2 !== Oe(t) && Ci("188") | |
} | |
function Me(o) { | |
var e = o.alternate; | |
if (!e) | |
return e = Oe(o), | |
3 === e && Ci("188"), | |
1 === e ? null : o; | |
for (var d = o, u = e; ; ) { | |
var p = d.return | |
, i = p ? p.alternate : null; | |
if (!p || !i) | |
break; | |
if (p.child === i.child) { | |
for (var a = p.child; a; ) { | |
if (a === d) | |
return Pe(p), | |
o; | |
if (a === u) | |
return Pe(p), | |
e; | |
a = a.sibling | |
} | |
Ci("188") | |
} | |
if (d.return !== u.return) | |
d = p, | |
u = i; | |
else { | |
a = !1; | |
for (var c = p.child; c; ) { | |
if (c === d) { | |
a = !0, | |
d = p, | |
u = i; | |
break | |
} | |
if (c === u) { | |
a = !0, | |
u = p, | |
d = i; | |
break | |
} | |
c = c.sibling | |
} | |
if (!a) { | |
for (c = i.child; c; ) { | |
if (c === d) { | |
a = !0, | |
d = i, | |
u = p; | |
break | |
} | |
if (c === u) { | |
a = !0, | |
u = i, | |
d = p; | |
break | |
} | |
c = c.sibling | |
} | |
a || Ci("189") | |
} | |
} | |
d.alternate !== u && Ci("190") | |
} | |
return 3 !== d.tag && Ci("188"), | |
d.stateNode.current === d ? o : e | |
} | |
function De(n) { | |
if (!(n = Me(n))) | |
return null; | |
for (var a = n; ; ) { | |
if (5 === a.tag || 6 === a.tag) | |
return a; | |
if (a.child) | |
a.child.return = a, | |
a = a.child; | |
else { | |
if (a === n) | |
break; | |
for (; !a.sibling; ) { | |
if (!a.return || a.return === n) | |
return null; | |
a = a.return | |
} | |
a.sibling.return = a.return, | |
a = a.sibling | |
} | |
} | |
return null | |
} | |
function je(n) { | |
var a = n.keyCode; | |
return "charCode"in n ? 0 === (n = n.charCode) && 13 === a && (n = 13) : n = a, | |
10 === n && (n = 13), | |
32 <= n || 13 === n ? n : 0 | |
} | |
function Ie(a, o) { | |
var i = a[0]; | |
a = a[1]; | |
var n = "on" + (a[0].toUpperCase() + a.slice(1)); | |
o = { | |
phasedRegistrationNames: { | |
bubbled: n, | |
captured: n + "Capture" | |
}, | |
dependencies: [i], | |
isInteractive: o | |
}, | |
Si[a] = o, | |
Ti[i] = o | |
} | |
function Re(d) { | |
var e = d.targetInst | |
, p = e; | |
do { | |
if (!p) { | |
d.ancestors.push(p); | |
break | |
} | |
var c; | |
for (c = p; c.return; ) | |
c = c.return; | |
if (!(c = 3 === c.tag ? c.stateNode.containerInfo : null)) | |
break; | |
d.ancestors.push(p), | |
p = h(c) | |
} while (p);for (p = 0; p < d.ancestors.length; p++) { | |
e = d.ancestors[p]; | |
var m = G(d.nativeEvent); | |
c = d.topLevelType; | |
for (var o = d.nativeEvent, i = null, y = 0, x; y < Br.length; y++) | |
x = Br[y], | |
x && (x = x.extractEvents(c, e, o, m)) && (i = u(i, x)); | |
f(i) | |
} | |
} | |
function Ne(a, e) { | |
if (!e) | |
return null; | |
var t = (Oi(a) ? Fe : Le).bind(null, a); | |
e.addEventListener(a, t, !1) | |
} | |
function Ae(a, e) { | |
if (!e) | |
return null; | |
var t = (Oi(a) ? Fe : Le).bind(null, a); | |
e.addEventListener(a, t, !0) | |
} | |
function Fe(n, e) { | |
ns(Le, n, e) | |
} | |
function Le(a, o) { | |
if (Mi) { | |
var t = G(o); | |
if (t = h(t), | |
null === t || "number" != typeof t.tag || 2 === Oe(t) || (t = null), | |
Pi.length) { | |
var i = Pi.pop(); | |
i.topLevelType = a, | |
i.nativeEvent = o, | |
i.targetInst = t, | |
a = i | |
} else | |
a = { | |
topLevelType: a, | |
nativeEvent: o, | |
targetInst: t, | |
ancestors: [] | |
}; | |
try { | |
os(Re, a) | |
} finally { | |
a.topLevelType = null, | |
a.nativeEvent = null, | |
a.targetInst = null, | |
a.ancestors.length = 0, | |
10 > Pi.length && Pi.push(a) | |
} | |
} | |
} | |
function We(t) { | |
return Object.prototype.hasOwnProperty.call(t, Is) || (t[Is] = ji++, | |
Rs[t[Is]] = {}), | |
Rs[t[Is]] | |
} | |
function ze(n) { | |
if ("undefined" == typeof (n = n || ("undefined" == typeof document ? void 0 : document))) | |
return null; | |
try { | |
return n.activeElement || n.body | |
} catch (e) { | |
return n.body | |
} | |
} | |
function Ue(t) { | |
for (; t && t.firstChild; ) | |
t = t.firstChild; | |
return t | |
} | |
function Be(a, o) { | |
var t = Ue(a); | |
a = 0; | |
for (var i; t; ) { | |
if (3 === t.nodeType) { | |
if (i = a + t.textContent.length, | |
a <= o && i >= o) | |
return { | |
node: t, | |
offset: o - a | |
}; | |
a = i | |
} | |
e: { | |
for (; t; ) { | |
if (t.nextSibling) { | |
t = t.nextSibling; | |
break e | |
} | |
t = t.parentNode | |
} | |
t = void 0 | |
} | |
t = Ue(t) | |
} | |
} | |
function He(n, e) { | |
return n && e && (n === e || (!n || 3 !== n.nodeType) && (e && 3 === e.nodeType ? He(n, e.parentNode) : "contains"in n ? n.contains(e) : !!n.compareDocumentPosition && !!(16 & n.compareDocumentPosition(e)))) | |
} | |
function Ve() { | |
for (var n = window, a = ze(); a instanceof n.HTMLIFrameElement; ) { | |
try { | |
n = a.contentDocument.defaultView | |
} catch (t) { | |
break | |
} | |
a = ze(n.document) | |
} | |
return a | |
} | |
function Ye(n) { | |
var e = n && n.nodeName && n.nodeName.toLowerCase(); | |
return e && ("input" === e && ("text" === n.type || "search" === n.type || "tel" === n.type || "url" === n.type || "password" === n.type) || "textarea" === e || "true" === n.contentEditable) | |
} | |
function Ge(a, o) { | |
var t = o.window === o ? o.document : 9 === o.nodeType ? o : o.ownerDocument; | |
return Us || null == Ai || Ai !== ze(t) ? null : (t = Ai, | |
"selectionStart"in t && Ye(t) ? t = { | |
start: t.selectionStart, | |
end: t.selectionEnd | |
} : (t = (t.ownerDocument && t.ownerDocument.defaultView || window).getSelection(), | |
t = { | |
anchorNode: t.anchorNode, | |
anchorOffset: t.anchorOffset, | |
focusNode: t.focusNode, | |
focusOffset: t.focusOffset | |
}), | |
As && Ee(As, t) ? null : (As = t, | |
a = M.getPooled(Ni.select, zs, a, o), | |
a.type = "select", | |
a.target = Ai, | |
S(a), | |
a)) | |
} | |
function qe(n) { | |
var a = ""; | |
return jr.Children.forEach(n, function(t) { | |
null != t && (a += t) | |
}), | |
a | |
} | |
function $e(n, a) { | |
return n = Ir({ | |
children: void 0 | |
}, a), | |
(a = qe(a.children)) && (n.children = a), | |
n | |
} | |
function Ke(a, i, s, d) { | |
if (a = a.options, | |
i) { | |
i = {}; | |
for (var l = 0; l < s.length; l++) | |
i["$" + s[l]] = !0; | |
for (s = 0; s < a.length; s++) | |
l = i.hasOwnProperty("$" + a[s].value), | |
a[s].selected !== l && (a[s].selected = l), | |
l && d && (a[s].defaultSelected = !0) | |
} else { | |
for (s = "" + le(s), | |
i = null, | |
l = 0; l < a.length; l++) { | |
if (a[l].value === s) | |
return a[l].selected = !0, | |
void (d && (a[l].defaultSelected = !0)); | |
null !== i || a[l].disabled || (i = a[l]) | |
} | |
null !== i && (i.selected = !0) | |
} | |
} | |
function Xe(n, e) { | |
return null != e.dangerouslySetInnerHTML && Ci("91"), | |
Ir({}, e, { | |
value: void 0, | |
defaultValue: void 0, | |
children: "" + n._wrapperState.initialValue | |
}) | |
} | |
function Ze(a, e) { | |
var o = e.value; | |
null == o && (o = e.defaultValue, | |
e = e.children, | |
null != e && (null != o && Ci("92"), | |
Array.isArray(e) && (1 >= e.length || Ci("93"), | |
e = e[0]), | |
o = e), | |
null == o && (o = "")), | |
a._wrapperState = { | |
initialValue: le(o) | |
} | |
} | |
function Je(a, e) { | |
var t = le(e.value) | |
, o = le(e.defaultValue); | |
null != t && (t = "" + t, | |
t !== a.value && (a.value = t), | |
null == e.defaultValue && a.defaultValue !== t && (a.defaultValue = t)), | |
null != o && (a.defaultValue = "" + o) | |
} | |
function Qe(n) { | |
var e = n.textContent; | |
e === n._wrapperState.initialValue && (n.value = e) | |
} | |
function et(t) { | |
return "svg" === t ? "http://www.w3.org/2000/svg" : "math" === t ? "http://www.w3.org/1998/Math/MathML" : "http://www.w3.org/1999/xhtml" | |
} | |
function tt(n, e) { | |
return null == n || "http://www.w3.org/1999/xhtml" === n ? et(e) : "http://www.w3.org/2000/svg" === n && "foreignObject" === e ? "http://www.w3.org/1999/xhtml" : n | |
} | |
function nt(a, e) { | |
if (e) { | |
var t = a.firstChild; | |
if (t && t === a.lastChild && 3 === t.nodeType) | |
return void (t.nodeValue = e) | |
} | |
a.textContent = e | |
} | |
function rt(a, e, t) { | |
return null == e || "boolean" == typeof e || "" === e ? "" : t || "number" != typeof e || 0 === e || Vi.hasOwnProperty(a) && Vi[a] ? ("" + e).trim() : e + "px" | |
} | |
function ot(a, i) { | |
for (var t in a = a.style, | |
i) | |
if (i.hasOwnProperty(t)) { | |
var s = 0 === t.indexOf("--") | |
, d = rt(t, i[t], s); | |
"float" == t && (t = "cssFloat"), | |
s ? a.setProperty(t, d) : a[t] = d | |
} | |
} | |
function it(n, e) { | |
e && (Bs[n] && (null != e.children || null != e.dangerouslySetInnerHTML) && Ci("137", n, ""), | |
null != e.dangerouslySetInnerHTML && (null != e.children && Ci("60"), | |
"object" == typeof e.dangerouslySetInnerHTML && "__html"in e.dangerouslySetInnerHTML || Ci("61")), | |
null != e.style && "object" != typeof e.style && Ci("62", "")) | |
} | |
function at(n, e) { | |
if (-1 === n.indexOf("-")) | |
return "string" == typeof e.is; | |
return "annotation-xml" !== n && "color-profile" !== n && "font-face" !== n && "font-face-src" !== n && "font-face-uri" !== n && "font-face-format" !== n && "font-face-name" !== n && "missing-glyph" !== n | |
} | |
function lt(a, i) { | |
a = 9 === a.nodeType || 11 === a.nodeType ? a : a.ownerDocument; | |
var s = We(a); | |
i = Yr[i]; | |
for (var n = 0, d; n < i.length; n++) | |
if (d = i[n], | |
!s.hasOwnProperty(d) || !s[d]) { | |
switch (d) { | |
case "scroll": | |
Ae("scroll", a); | |
break; | |
case "focus": | |
case "blur": | |
Ae("focus", a), | |
Ae("blur", a), | |
s.blur = !0, | |
s.focus = !0; | |
break; | |
case "cancel": | |
case "close": | |
q(d) && Ae(d, a); | |
break; | |
case "invalid": | |
case "submit": | |
case "reset": | |
break; | |
default: | |
-1 === so.indexOf(d) && Ne(d, a); | |
} | |
s[d] = !0 | |
} | |
} | |
function st() {} | |
function ut(n, e) { | |
return !("button" !== n && "input" !== n && "select" !== n && "textarea" !== n) && !!e.autoFocus | |
} | |
function ct(n, e) { | |
return "textarea" === n || "option" === n || "noscript" === n || "string" == typeof e.children || "number" == typeof e.children || "object" == typeof e.dangerouslySetInnerHTML && null !== e.dangerouslySetInnerHTML && null != e.dangerouslySetInnerHTML.__html | |
} | |
function dt(t) { | |
for (t = t.nextSibling; t && 1 !== t.nodeType && 3 !== t.nodeType; ) | |
t = t.nextSibling; | |
return t | |
} | |
function ft(t) { | |
for (t = t.firstChild; t && 1 !== t.nodeType && 3 !== t.nodeType; ) | |
t = t.nextSibling; | |
return t | |
} | |
function pt(t) { | |
0 > Ji || (t.current = Zi[Ji], | |
Zi[Ji] = null, | |
Ji--) | |
} | |
function ht(n, e) { | |
Ji++, | |
Zi[Ji] = n.current, | |
n.current = e | |
} | |
function mt(a, s) { | |
var t = a.type.contextTypes; | |
if (!t) | |
return Ws; | |
var n = a.stateNode; | |
if (n && n.__reactInternalMemoizedUnmaskedChildContext === s) | |
return n.__reactInternalMemoizedMaskedChildContext; | |
var d = {}, i; | |
for (i in t) | |
d[i] = s[i]; | |
return n && (a = a.stateNode, | |
a.__reactInternalMemoizedUnmaskedChildContext = s, | |
a.__reactInternalMemoizedMaskedChildContext = d), | |
d | |
} | |
function vt(t) { | |
return null !== (t = t.childContextTypes) && void 0 !== t | |
} | |
function yt(t) { | |
pt(ta, t), | |
pt(ea, t) | |
} | |
function gt(t) { | |
pt(ta, t), | |
pt(ea, t) | |
} | |
function bt(a, e, t) { | |
ea.current !== Ws && Ci("168"), | |
ht(ea, e, a), | |
ht(ta, t, a) | |
} | |
function xt(a, o, t) { | |
var n = a.stateNode; | |
if (a = o.childContextTypes, | |
"function" != typeof n.getChildContext) | |
return t; | |
for (var s in n = n.getChildContext(), | |
n) | |
s in a || Ci("108", Q(o) || "Unknown", s); | |
return Ir({}, t, n) | |
} | |
function wt(n) { | |
var e = n.stateNode; | |
return e = e && e.__reactInternalMemoizedMergedChildContext || Ws, | |
na = ea.current, | |
ht(ea, e, n), | |
ht(ta, ta.current, n), | |
!0 | |
} | |
function kt(a, e, o) { | |
var n = a.stateNode; | |
n || Ci("169"), | |
o ? (e = xt(a, e, na), | |
n.__reactInternalMemoizedMergedChildContext = e, | |
pt(ta, a), | |
pt(ea, a), | |
ht(ea, e, a)) : pt(ta, a), | |
ht(ta, o, a) | |
} | |
function _t(n) { | |
return function(e) { | |
try { | |
return n(e) | |
} catch (t) {} | |
} | |
} | |
function St(a) { | |
if ("undefined" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) | |
return !1; | |
var o = __REACT_DEVTOOLS_GLOBAL_HOOK__; | |
if (o.isDisabled || !o.supportsFiber) | |
return !0; | |
try { | |
var t = o.inject(a); | |
js = _t(function(n) { | |
return o.onCommitFiberRoot(t, n) | |
}), | |
Hs = _t(function(n) { | |
return o.onCommitFiberUnmount(t, n) | |
}) | |
} catch (t) {} | |
return !0 | |
} | |
function Ct(a, e, t, n) { | |
this.tag = a, | |
this.key = t, | |
this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, | |
this.index = 0, | |
this.ref = null, | |
this.pendingProps = e, | |
this.firstContextDependency = this.memoizedState = this.updateQueue = this.memoizedProps = null, | |
this.mode = n, | |
this.effectTag = 0, | |
this.lastEffect = this.firstEffect = this.nextEffect = null, | |
this.childExpirationTime = this.expirationTime = 0, | |
this.alternate = null | |
} | |
function Tt(a, e, t, n) { | |
return new Ct(a,e,t,n) | |
} | |
function Et(t) { | |
return (t = t.prototype) && t.isReactComponent | |
} | |
function Ot(t) { | |
if ("function" == typeof t) | |
return Et(t) ? 1 : 0; | |
if (void 0 !== t && null !== t) { | |
if ((t = t.$$typeof) === Uo) | |
return 11; | |
if (t === Ho) | |
return 14 | |
} | |
return 2 | |
} | |
function Pt(a, e) { | |
var t = a.alternate; | |
return null === t ? (t = Tt(a.tag, e, a.key, a.mode), | |
t.elementType = a.elementType, | |
t.type = a.type, | |
t.stateNode = a.stateNode, | |
t.alternate = a, | |
a.alternate = t) : (t.pendingProps = e, | |
t.effectTag = 0, | |
t.nextEffect = null, | |
t.firstEffect = null, | |
t.lastEffect = null), | |
t.childExpirationTime = a.childExpirationTime, | |
t.expirationTime = a.expirationTime, | |
t.child = a.child, | |
t.memoizedProps = a.memoizedProps, | |
t.memoizedState = a.memoizedState, | |
t.updateQueue = a.updateQueue, | |
t.firstContextDependency = a.firstContextDependency, | |
t.sibling = a.sibling, | |
t.index = a.index, | |
t.ref = a.ref, | |
t | |
} | |
function Mt(o, s, d, n, u, i) { | |
var a = 2; | |
if (n = o, | |
"function" == typeof o) | |
Et(o) && (a = 1); | |
else if ("string" == typeof o) | |
a = 5; | |
else | |
e: switch (o) { | |
case No: | |
return Dt(d.children, u, i, s); | |
case zo: | |
return jt(d, 3 | u, i, s); | |
case Ao: | |
return jt(d, 2 | u, i, s); | |
case Fo: | |
return o = Tt(12, d, s, 4 | u), | |
o.elementType = Fo, | |
o.type = Fo, | |
o.expirationTime = i, | |
o; | |
case Bo: | |
return o = Tt(13, d, s, u), | |
o.elementType = Bo, | |
o.type = Bo, | |
o.expirationTime = i, | |
o; | |
default: | |
if ("object" == typeof o && null !== o) | |
switch (o.$$typeof) { | |
case Lo: | |
a = 10; | |
break e; | |
case Wo: | |
a = 9; | |
break e; | |
case Uo: | |
a = 11; | |
break e; | |
case Ho: | |
a = 14; | |
break e; | |
case Vo: | |
a = 16, | |
n = null; | |
break e; | |
} | |
Ci("130", null == o ? o : typeof o, ""); | |
} | |
return s = Tt(a, d, s, u), | |
s.elementType = o, | |
s.type = n, | |
s.expirationTime = i, | |
s | |
} | |
function Dt(a, o, t, n) { | |
return a = Tt(7, a, n, o), | |
a.expirationTime = t, | |
a | |
} | |
function jt(a, o, i, n) { | |
return a = Tt(8, a, n, o), | |
o = 0 == (1 & o) ? Ao : zo, | |
a.elementType = o, | |
a.type = o, | |
a.expirationTime = i, | |
a | |
} | |
function It(a, o, t) { | |
return a = Tt(6, a, null, o), | |
a.expirationTime = t, | |
a | |
} | |
function Rt(a, e, o) { | |
return e = Tt(4, null === a.children ? [] : a.children, a.key, e), | |
e.expirationTime = o, | |
e.stateNode = { | |
containerInfo: a.containerInfo, | |
pendingChildren: null, | |
implementation: a.implementation | |
}, | |
e | |
} | |
function Nt(a, e) { | |
a.didError = !1; | |
var t = a.earliestPendingTime; | |
0 === t ? a.earliestPendingTime = a.latestPendingTime = e : t < e ? a.earliestPendingTime = e : a.latestPendingTime > e && (a.latestPendingTime = e), | |
Lt(e, a) | |
} | |
function At(a, e) { | |
a.didError = !1; | |
var t = a.latestPingedTime; | |
0 !== t && t >= e && (a.latestPingedTime = 0), | |
t = a.earliestPendingTime; | |
var o = a.latestPendingTime; | |
t === e ? a.earliestPendingTime = o === e ? a.latestPendingTime = 0 : o : o === e && (a.latestPendingTime = t), | |
t = a.earliestSuspendedTime, | |
o = a.latestSuspendedTime, | |
0 === t ? a.earliestSuspendedTime = a.latestSuspendedTime = e : t < e ? a.earliestSuspendedTime = e : o > e && (a.latestSuspendedTime = e), | |
Lt(e, a) | |
} | |
function Ft(a, o) { | |
var i = a.earliestPendingTime; | |
return a = a.earliestSuspendedTime, | |
i > o && (o = i), | |
a > o && (o = a), | |
o | |
} | |
function Lt(a, s) { | |
var t = s.earliestSuspendedTime | |
, n = s.latestSuspendedTime | |
, d = s.earliestPendingTime | |
, l = s.latestPingedTime; | |
d = 0 === d ? l : d, | |
0 === d && (0 === a || n < a) && (d = n), | |
a = d, | |
0 !== a && t > a && (a = t), | |
s.nextExpirationTimeToWorkOn = d, | |
s.expirationTime = a | |
} | |
function Wt(t) { | |
return { | |
baseState: t, | |
firstUpdate: null, | |
lastUpdate: null, | |
firstCapturedUpdate: null, | |
lastCapturedUpdate: null, | |
firstEffect: null, | |
lastEffect: null, | |
firstCapturedEffect: null, | |
lastCapturedEffect: null | |
} | |
} | |
function zt(t) { | |
return { | |
baseState: t.baseState, | |
firstUpdate: t.firstUpdate, | |
lastUpdate: t.lastUpdate, | |
firstCapturedUpdate: null, | |
lastCapturedUpdate: null, | |
firstEffect: null, | |
lastEffect: null, | |
firstCapturedEffect: null, | |
lastCapturedEffect: null | |
} | |
} | |
function Ut(t) { | |
return { | |
expirationTime: t, | |
tag: 0, | |
payload: null, | |
callback: null, | |
next: null, | |
nextEffect: null | |
} | |
} | |
function Bt(n, e) { | |
null === n.lastUpdate ? n.firstUpdate = n.lastUpdate = e : (n.lastUpdate.next = e, | |
n.lastUpdate = e) | |
} | |
function Ht(a, e) { | |
var t = a.alternate; | |
if (null === t) { | |
var n = a.updateQueue | |
, i = null; | |
null === n && (n = a.updateQueue = Wt(a.memoizedState)) | |
} else | |
n = a.updateQueue, | |
i = t.updateQueue, | |
null === n ? null === i ? (n = a.updateQueue = Wt(a.memoizedState), | |
i = t.updateQueue = Wt(t.memoizedState)) : n = a.updateQueue = zt(i) : null === i && (i = t.updateQueue = zt(n)); | |
null === i || n === i ? Bt(n, e) : null === n.lastUpdate || null === i.lastUpdate ? (Bt(n, e), | |
Bt(i, e)) : (Bt(n, e), | |
i.lastUpdate = e) | |
} | |
function Vt(a, e) { | |
var t = a.updateQueue; | |
t = null === t ? a.updateQueue = Wt(a.memoizedState) : Yt(a, t), | |
null === t.lastCapturedUpdate ? t.firstCapturedUpdate = t.lastCapturedUpdate = e : (t.lastCapturedUpdate.next = e, | |
t.lastCapturedUpdate = e) | |
} | |
function Yt(a, e) { | |
var o = a.alternate; | |
return null !== o && e === o.updateQueue && (e = a.updateQueue = zt(e)), | |
e | |
} | |
function Gt(a, s, t, n, d, l) { | |
switch (t.tag) { | |
case 1: | |
return a = t.payload, | |
"function" == typeof a ? a.call(l, n, d) : a; | |
case 3: | |
a.effectTag = 64 | -2049 & a.effectTag; | |
case 0: | |
if (a = t.payload, | |
null === (d = "function" == typeof a ? a.call(l, n, d) : a) || void 0 === d) | |
break; | |
return Ir({}, n, d); | |
case 2: | |
Ys = !0; | |
} | |
return n | |
} | |
function qt(p, e, f, n, h) { | |
Ys = !1, | |
e = Yt(p, e); | |
for (var o = e.baseState, m = null, y = 0, x = e.firstUpdate, _ = o, v; null !== x; ) | |
v = x.expirationTime, | |
v < h ? (null === m && (m = x, | |
o = _), | |
y < v && (y = v)) : (_ = Gt(p, e, x, _, f, n), | |
null !== x.callback && (p.effectTag |= 32, | |
x.nextEffect = null, | |
null === e.lastEffect ? e.firstEffect = e.lastEffect = x : (e.lastEffect.nextEffect = x, | |
e.lastEffect = x))), | |
x = x.next; | |
for (v = null, | |
x = e.firstCapturedUpdate; null !== x; ) { | |
var k = x.expirationTime; | |
k < h ? (null === v && (v = x, | |
null === m && (o = _)), | |
y < k && (y = k)) : (_ = Gt(p, e, x, _, f, n), | |
null !== x.callback && (p.effectTag |= 32, | |
x.nextEffect = null, | |
null === e.lastCapturedEffect ? e.firstCapturedEffect = e.lastCapturedEffect = x : (e.lastCapturedEffect.nextEffect = x, | |
e.lastCapturedEffect = x))), | |
x = x.next | |
} | |
null === m && (e.lastUpdate = null), | |
null === v ? e.lastCapturedUpdate = null : p.effectTag |= 32, | |
null === m && null === v && (o = _), | |
e.baseState = o, | |
e.firstUpdate = m, | |
e.firstCapturedUpdate = v, | |
p.expirationTime = y, | |
p.memoizedState = _ | |
} | |
function $t(a, e, t) { | |
null !== e.firstCapturedUpdate && (null !== e.lastUpdate && (e.lastUpdate.next = e.firstCapturedUpdate, | |
e.lastUpdate = e.lastCapturedUpdate), | |
e.firstCapturedUpdate = e.lastCapturedUpdate = null), | |
Kt(e.firstEffect, t), | |
e.firstEffect = e.lastEffect = null, | |
Kt(e.firstCapturedEffect, t), | |
e.firstCapturedEffect = e.lastCapturedEffect = null | |
} | |
function Kt(a, o) { | |
for (; null !== a; ) { | |
var t = a.callback; | |
if (null !== t) { | |
a.callback = null; | |
"function" != typeof t && Ci("191", t), | |
t.call(o) | |
} | |
a = a.nextEffect | |
} | |
} | |
function Xt(n, e) { | |
return { | |
value: n, | |
source: e, | |
stack: ee(e) | |
} | |
} | |
function Zt(a, e) { | |
var t = a.type._context; | |
ht(Vs, t._currentValue, a), | |
t._currentValue = e | |
} | |
function Jt(n) { | |
var e = Vs.current; | |
pt(Vs, n), | |
n.type._context._currentValue = e | |
} | |
function Qt(t) { | |
la = t, | |
Xs = qs = null, | |
t.firstContextDependency = null | |
} | |
function en(n, e) { | |
return Xs !== n && !1 !== e && 0 !== e && ("number" == typeof e && 1073741823 !== e || (Xs = n, | |
e = 1073741823), | |
e = { | |
context: n, | |
observedBits: e, | |
next: null | |
}, | |
null === qs ? (null === la && Ci("293"), | |
la.firstContextDependency = qs = e) : qs = qs.next = e), | |
n._currentValue | |
} | |
function tn(t) { | |
return t === Gs && Ci("174"), | |
t | |
} | |
function nn(a, e) { | |
ht(pa, e, a), | |
ht(fa, a, a), | |
ht(da, Gs, a); | |
var o = e.nodeType; | |
9 === o || 11 === o ? e = (e = e.documentElement) ? e.namespaceURI : tt(null, "") : (o = 8 === o ? e.parentNode : e, | |
e = o.namespaceURI || null, | |
o = o.tagName, | |
e = tt(e, o)); | |
pt(da, a), | |
ht(da, e, a) | |
} | |
function rn(t) { | |
pt(da, t), | |
pt(fa, t), | |
pt(pa, t) | |
} | |
function on(a) { | |
tn(pa.current); | |
var e = tn(da.current) | |
, t = tt(e, a.type); | |
e !== t && (ht(fa, a, a), | |
ht(da, t, a)) | |
} | |
function an(t) { | |
fa.current === t && (pt(da, t), | |
pt(fa, t)) | |
} | |
function ln(a, o) { | |
if (a && a.defaultProps) | |
for (var i in o = Ir({}, o), | |
a = a.defaultProps, | |
a) | |
void 0 === o[i] && (o[i] = a[i]); | |
return o | |
} | |
function sn(n) { | |
var e = n._result; | |
switch (n._status) { | |
case 1: | |
return e; | |
case 2: | |
case 0: | |
throw e; | |
default: | |
throw n._status = 0, | |
e = n._ctor, | |
e = e(), | |
e.then(function(e) { | |
0 === n._status && (e = e.default, | |
n._status = 1, | |
n._result = e) | |
}, function(e) { | |
0 === n._status && (n._status = 2, | |
n._result = e) | |
}), | |
n._result = e, | |
e; | |
} | |
} | |
function un(a, e, o, i) { | |
e = a.memoizedState, | |
o = o(i, e), | |
o = null === o || void 0 === o ? e : Ir({}, e, o), | |
a.memoizedState = o, | |
null !== (i = a.updateQueue) && 0 === a.expirationTime && (i.baseState = o) | |
} | |
function cn(s, d, t, n, l, o, i) { | |
return s = s.stateNode, | |
"function" == typeof s.shouldComponentUpdate ? s.shouldComponentUpdate(n, o, i) : !d.prototype || !d.prototype.isPureReactComponent || !Ee(t, n) || !Ee(l, o) | |
} | |
function dn(a, s, d) { | |
var n = !1 | |
, l = Ws | |
, u = s.contextType; | |
return "object" == typeof u && null !== u ? u = ha.currentDispatcher.readContext(u) : (l = vt(s) ? na : ea.current, | |
n = s.contextTypes, | |
u = (n = null !== n && void 0 !== n) ? mt(a, l) : Ws), | |
s = new s(d,u), | |
a.memoizedState = null !== s.state && void 0 !== s.state ? s.state : null, | |
s.updater = va, | |
a.stateNode = s, | |
s._reactInternalFiber = a, | |
n && (a = a.stateNode, | |
a.__reactInternalMemoizedUnmaskedChildContext = l, | |
a.__reactInternalMemoizedMaskedChildContext = u), | |
s | |
} | |
function fn(a, o, t, n) { | |
a = o.state, | |
"function" == typeof o.componentWillReceiveProps && o.componentWillReceiveProps(t, n), | |
"function" == typeof o.UNSAFE_componentWillReceiveProps && o.UNSAFE_componentWillReceiveProps(t, n), | |
o.state !== a && va.enqueueReplaceState(o, o.state, null) | |
} | |
function pn(a, e, s, n) { | |
var d = a.stateNode; | |
d.props = s, | |
d.state = a.memoizedState, | |
d.refs = ma; | |
var o = e.contextType; | |
"object" == typeof o && null !== o ? d.context = ha.currentDispatcher.readContext(o) : (o = vt(e) ? na : ea.current, | |
d.context = mt(a, o)), | |
o = a.updateQueue, | |
null !== o && (qt(a, o, s, d, n), | |
d.state = a.memoizedState), | |
o = e.getDerivedStateFromProps, | |
"function" == typeof o && (un(a, e, o, s), | |
d.state = a.memoizedState), | |
"function" == typeof e.getDerivedStateFromProps || "function" == typeof d.getSnapshotBeforeUpdate || "function" != typeof d.UNSAFE_componentWillMount && "function" != typeof d.componentWillMount || (e = d.state, | |
"function" == typeof d.componentWillMount && d.componentWillMount(), | |
"function" == typeof d.UNSAFE_componentWillMount && d.UNSAFE_componentWillMount(), | |
e !== d.state && va.enqueueReplaceState(d, d.state, null), | |
null !== (o = a.updateQueue) && (qt(a, o, s, d, n), | |
d.state = a.memoizedState)), | |
"function" == typeof d.componentDidMount && (a.effectTag |= 4) | |
} | |
function hn(a, o, s) { | |
if (null !== (a = s.ref) && "function" != typeof a && "object" != typeof a) { | |
if (s._owner) { | |
s = s._owner; | |
var d; | |
s && (1 !== s.tag && Ci("289"), | |
d = s.stateNode), | |
d || Ci("147", a); | |
var l = "" + a; | |
return null !== o && null !== o.ref && "function" == typeof o.ref && o.ref._stringRef === l ? o.ref : (o = function(n) { | |
var e = d.refs; | |
e === ma && (e = d.refs = {}), | |
null === n ? delete e[l] : e[l] = n | |
} | |
, | |
o._stringRef = l, | |
o) | |
} | |
"string" != typeof a && Ci("284"), | |
s._owner || Ci("290", a) | |
} | |
return a | |
} | |
function mn(n, e) { | |
"textarea" !== n.type && Ci("31", "[object Object]" === Object.prototype.toString.call(e) ? "object with keys {" + Object.keys(e).join(", ") + "}" : e, "") | |
} | |
function vn(x) { | |
function _(e, t) { | |
if (x) { | |
var n = e.lastEffect; | |
null === n ? e.firstEffect = e.lastEffect = t : (n.nextEffect = t, | |
e.lastEffect = t), | |
t.nextEffect = null, | |
t.effectTag = 8 | |
} | |
} | |
function t(e, t) { | |
if (!x) | |
return null; | |
for (; null !== t; ) | |
_(e, t), | |
t = t.sibling; | |
return null | |
} | |
function e(n, a) { | |
for (n = new Map; null !== a; ) | |
null === a.key ? n.set(a.index, a) : n.set(a.key, a), | |
a = a.sibling; | |
return n | |
} | |
function y(a, o, t) { | |
return a = Pt(a, o, t), | |
a.index = 0, | |
a.sibling = null, | |
a | |
} | |
function n(e, t, n) { | |
return e.index = n, | |
x ? null === (n = e.alternate) ? (e.effectTag = 2, | |
t) : (n = n.index, | |
n < t ? (e.effectTag = 2, | |
t) : n) : t | |
} | |
function o(e) { | |
return x && null === e.alternate && (e.effectTag = 2), | |
e | |
} | |
function a(a, e, o, n) { | |
return null === e || 6 !== e.tag ? (e = It(o, a.mode, n), | |
e.return = a, | |
e) : (e = y(e, o, n), | |
e.return = a, | |
e) | |
} | |
function i(a, e, t, n) { | |
return null !== e && e.elementType === t.type ? (n = y(e, t.props, n), | |
n.ref = hn(a, e, t), | |
n.return = a, | |
n) : (n = Mt(t.type, t.key, t.props, null, a.mode, n), | |
n.ref = hn(a, e, t), | |
n.return = a, | |
n) | |
} | |
function s(a, e, o, n) { | |
return null === e || 4 !== e.tag || e.stateNode.containerInfo !== o.containerInfo || e.stateNode.implementation !== o.implementation ? (e = Rt(o, a.mode, n), | |
e.return = a, | |
e) : (e = y(e, o.children || [], n), | |
e.return = a, | |
e) | |
} | |
function l(a, e, i, n, s) { | |
return null === e || 7 !== e.tag ? (e = Dt(i, a.mode, n, s), | |
e.return = a, | |
e) : (e = y(e, i, n), | |
e.return = a, | |
e) | |
} | |
function k(a, e, o) { | |
if ("string" == typeof e || "number" == typeof e) | |
return e = It("" + e, a.mode, o), | |
e.return = a, | |
e; | |
if ("object" == typeof e && null !== e) { | |
switch (e.$$typeof) { | |
case Io: | |
return o = Mt(e.type, e.key, e.props, null, a.mode, o), | |
o.ref = hn(a, null, e), | |
o.return = a, | |
o; | |
case Ro: | |
return e = Rt(e, a.mode, o), | |
e.return = a, | |
e; | |
} | |
if (ya(e) || J(e)) | |
return e = Dt(e, a.mode, o, null), | |
e.return = a, | |
e; | |
mn(a, e) | |
} | |
return null | |
} | |
function f(d, e, t, n) { | |
var u = null === e ? null : e.key; | |
if ("string" == typeof t || "number" == typeof t) | |
return null === u ? a(d, e, "" + t, n) : null; | |
if ("object" == typeof t && null !== t) { | |
switch (t.$$typeof) { | |
case Io: | |
return t.key === u ? t.type === No ? l(d, e, t.props.children, n, u) : i(d, e, t, n) : null; | |
case Ro: | |
return t.key === u ? s(d, e, t, n) : null; | |
} | |
if (ya(t) || J(t)) | |
return null === u ? l(d, e, t, n, null) : null; | |
mn(d, t) | |
} | |
return null | |
} | |
function p(d, u, t, n, p) { | |
if ("string" == typeof n || "number" == typeof n) | |
return d = d.get(t) || null, | |
a(u, d, "" + n, p); | |
if ("object" == typeof n && null !== n) { | |
switch (n.$$typeof) { | |
case Io: | |
return d = d.get(null === n.key ? t : n.key) || null, | |
n.type === No ? l(u, d, n.props.children, p, n.key) : i(u, d, n, p); | |
case Ro: | |
return d = d.get(null === n.key ? t : n.key) || null, | |
s(u, d, n, p); | |
} | |
if (ya(n) || J(n)) | |
return d = d.get(t) || null, | |
l(u, d, n, p, null); | |
mn(u, n) | |
} | |
return null | |
} | |
function d(a, o, h, l) { | |
for (var s = null, w = null, S = o, C = o = 0, E = null; null !== S && C < h.length; C++) { | |
S.index > C ? (E = S, | |
S = null) : E = S.sibling; | |
var T = f(a, S, h[C], l); | |
if (null === T) { | |
null === S && (S = E); | |
break | |
} | |
x && S && null === T.alternate && _(a, S), | |
o = n(T, o, C), | |
null === w ? s = T : w.sibling = T, | |
w = T, | |
S = E | |
} | |
if (C === h.length) | |
return t(a, S), | |
s; | |
if (null === S) { | |
for (; C < h.length; C++) | |
(S = k(a, h[C], l)) && (o = n(S, o, C), | |
null === w ? s = S : w.sibling = S, | |
w = S); | |
return s | |
} | |
for (S = e(a, S); C < h.length; C++) | |
(E = p(S, a, C, h[C], l)) && (x && null !== E.alternate && S.delete(null === E.key ? C : E.key), | |
o = n(E, o, C), | |
null === w ? s = E : w.sibling = E, | |
w = E); | |
return x && S.forEach(function(t) { | |
return _(a, t) | |
}), | |
s | |
} | |
function h(a, o, i, h) { | |
var u = J(i); | |
"function" != typeof u && Ci("150"), | |
null == (i = u.call(i)) && Ci("151"); | |
for (var w = u = null, S = o, C = o = 0, E = null, T = i.next(); null !== S && !T.done; C++, | |
T = i.next()) { | |
S.index > C ? (E = S, | |
S = null) : E = S.sibling; | |
var P = f(a, S, T.value, h); | |
if (null === P) { | |
S || (S = E); | |
break | |
} | |
x && S && null === P.alternate && _(a, S), | |
o = n(P, o, C), | |
null === w ? u = P : w.sibling = P, | |
w = P, | |
S = E | |
} | |
if (T.done) | |
return t(a, S), | |
u; | |
if (null === S) { | |
for (; !T.done; C++, | |
T = i.next()) | |
null !== (T = k(a, T.value, h)) && (o = n(T, o, C), | |
null === w ? u = T : w.sibling = T, | |
w = T); | |
return u | |
} | |
for (S = e(a, S); !T.done; C++, | |
T = i.next()) | |
null !== (T = p(S, a, C, T.value, h)) && (x && null !== T.alternate && S.delete(null === T.key ? C : T.key), | |
o = n(T, o, C), | |
null === w ? u = T : w.sibling = T, | |
w = T); | |
return x && S.forEach(function(t) { | |
return _(a, t) | |
}), | |
u | |
} | |
return function(n, i, l, p) { | |
var f = "object" == typeof l && null !== l && l.type === No && null === l.key; | |
f && (l = l.props.children); | |
var m = "object" == typeof l && null !== l; | |
if (m) | |
switch (l.$$typeof) { | |
case Io: | |
e: { | |
for (m = l.key, | |
f = i; null !== f; ) { | |
if (f.key === m) { | |
if (7 === f.tag ? l.type === No : f.elementType === l.type) { | |
t(n, f.sibling), | |
i = y(f, l.type === No ? l.props.children : l.props, p), | |
i.ref = hn(n, f, l), | |
i.return = n, | |
n = i; | |
break e | |
} | |
t(n, f); | |
break | |
} | |
_(n, f), | |
f = f.sibling | |
} | |
l.type === No ? (i = Dt(l.props.children, n.mode, p, l.key), | |
i.return = n, | |
n = i) : (p = Mt(l.type, l.key, l.props, null, n.mode, p), | |
p.ref = hn(n, i, l), | |
p.return = n, | |
n = p) | |
} | |
return o(n); | |
case Ro: | |
e: { | |
for (f = l.key; null !== i; ) { | |
if (i.key === f) { | |
if (4 === i.tag && i.stateNode.containerInfo === l.containerInfo && i.stateNode.implementation === l.implementation) { | |
t(n, i.sibling), | |
i = y(i, l.children || [], p), | |
i.return = n, | |
n = i; | |
break e | |
} | |
t(n, i); | |
break | |
} | |
_(n, i), | |
i = i.sibling | |
} | |
i = Rt(l, n.mode, p), | |
i.return = n, | |
n = i | |
} | |
return o(n); | |
} | |
if ("string" == typeof l || "number" == typeof l) | |
return l = "" + l, | |
null !== i && 6 === i.tag ? (t(n, i.sibling), | |
i = y(i, l, p), | |
i.return = n, | |
n = i) : (t(n, i), | |
i = It(l, n.mode, p), | |
i.return = n, | |
n = i), | |
o(n); | |
if (ya(l)) | |
return d(n, i, l, p); | |
if (J(l)) | |
return h(n, i, l, p); | |
if (m && mn(n, l), | |
"undefined" == typeof l && !f) | |
switch (n.tag) { | |
case 1: | |
case 0: | |
p = n.type, | |
Ci("152", p.displayName || p.name || "Component"); | |
} | |
return t(n, i) | |
} | |
} | |
function yn(a, e) { | |
var t = Tt(5, null, null, 0); | |
t.elementType = "DELETED", | |
t.type = "DELETED", | |
t.stateNode = e, | |
t.return = a, | |
t.effectTag = 8, | |
null === a.lastEffect ? a.firstEffect = a.lastEffect = t : (a.lastEffect.nextEffect = t, | |
a.lastEffect = t) | |
} | |
function gn(a, e) { | |
switch (a.tag) { | |
case 5: | |
var o = a.type; | |
return null !== (e = 1 !== e.nodeType || o.toLowerCase() !== e.nodeName.toLowerCase() ? null : e) && (a.stateNode = e, | |
!0); | |
case 6: | |
return null !== (e = "" === a.pendingProps || 3 !== e.nodeType ? null : e) && (a.stateNode = e, | |
!0); | |
default: | |
return !1; | |
} | |
} | |
function bn(a) { | |
if (Ks) { | |
var e = Zs; | |
if (e) { | |
var o = e; | |
if (!gn(a, e)) { | |
if (!(e = dt(o)) || !gn(a, e)) | |
return a.effectTag |= 2, | |
Ks = !1, | |
void (xa = a); | |
yn(xa, o) | |
} | |
xa = a, | |
Zs = ft(e) | |
} else | |
a.effectTag |= 2, | |
Ks = !1, | |
xa = a | |
} | |
} | |
function xn(t) { | |
for (t = t.return; null !== t && 5 !== t.tag && 3 !== t.tag; ) | |
t = t.return; | |
xa = t | |
} | |
function wn(n) { | |
if (n !== xa) | |
return !1; | |
if (!Ks) | |
return xn(n), | |
Ks = !0, | |
!1; | |
var e = n.type; | |
if (5 !== n.tag || "head" !== e && "body" !== e && !ct(e, n.memoizedProps)) | |
for (e = Zs; e; ) | |
yn(n, e), | |
e = dt(e); | |
return xn(n), | |
Zs = xa ? dt(n.stateNode) : null, | |
!0 | |
} | |
function kn() { | |
Zs = xa = null, | |
Ks = !1 | |
} | |
function _n(a, e, t, n) { | |
e.child = null === a ? ba(e, null, t, n) : ga(e, a.child, t, n) | |
} | |
function Sn(a, e, t, s, d) { | |
t = t.render; | |
var o = e.ref; | |
return Qt(e, d), | |
s = t(s, o), | |
e.effectTag |= 1, | |
_n(a, e, s, d), | |
e.child | |
} | |
function Cn(s, d, t, l, u, p) { | |
if (null === s) { | |
var i = t.type; | |
return "function" != typeof i || Et(i) || void 0 !== i.defaultProps || null !== t.compare ? (s = Mt(t.type, null, l, null, d.mode, p), | |
s.ref = d.ref, | |
s.return = d, | |
d.child = s) : (d.tag = 15, | |
d.type = i, | |
Tn(s, d, i, l, u, p)) | |
} | |
return i = s.child, | |
u < p && (u = i.memoizedProps, | |
t = t.compare, | |
(t = null === t ? Ee : t)(u, l) && s.ref === d.ref) ? Rn(s, d, p) : (s = Pt(i, l, p), | |
s.ref = d.ref, | |
s.return = d, | |
d.child = s) | |
} | |
function Tn(a, e, t, n, s, o) { | |
return null !== a && s < o && Ee(a.memoizedProps, n) && a.ref === e.ref ? Rn(a, e, o) : On(a, e, t, n, o) | |
} | |
function En(a, e) { | |
var t = e.ref; | |
(null === a && null !== t || null !== a && a.ref !== t) && (e.effectTag |= 128) | |
} | |
function On(a, e, t, s, d) { | |
var o = vt(t) ? na : ea.current; | |
return o = mt(e, o), | |
Qt(e, d), | |
t = t(s, o), | |
e.effectTag |= 1, | |
_n(a, e, t, d), | |
e.child | |
} | |
function Pn(h, e, t, n, m) { | |
if (vt(t)) { | |
var o = !0; | |
wt(e) | |
} else | |
o = !1; | |
if (Qt(e, m), | |
null === e.stateNode) | |
null !== h && (h.alternate = null, | |
e.alternate = null, | |
e.effectTag |= 2), | |
dn(e, t, n, m), | |
pn(e, t, n, m), | |
n = !0; | |
else if (null === h) { | |
var y = e.stateNode | |
, x = e.memoizedProps; | |
y.props = x; | |
var _ = y.context | |
, v = t.contextType; | |
"object" == typeof v && null !== v ? v = ha.currentDispatcher.readContext(v) : (v = vt(t) ? na : ea.current, | |
v = mt(e, v)); | |
var k = t.getDerivedStateFromProps | |
, w = "function" == typeof k || "function" == typeof y.getSnapshotBeforeUpdate; | |
w || "function" != typeof y.UNSAFE_componentWillReceiveProps && "function" != typeof y.componentWillReceiveProps || (x !== n || _ !== v) && fn(e, y, n, v), | |
Ys = !1; | |
var S = e.memoizedState; | |
_ = y.state = S; | |
var C = e.updateQueue; | |
null !== C && (qt(e, C, n, y, m), | |
_ = e.memoizedState), | |
x !== n || S !== _ || ta.current || Ys ? ("function" == typeof k && (un(e, t, k, n), | |
_ = e.memoizedState), | |
(x = Ys || cn(e, t, x, n, S, _, v)) ? (w || "function" != typeof y.UNSAFE_componentWillMount && "function" != typeof y.componentWillMount || ("function" == typeof y.componentWillMount && y.componentWillMount(), | |
"function" == typeof y.UNSAFE_componentWillMount && y.UNSAFE_componentWillMount()), | |
"function" == typeof y.componentDidMount && (e.effectTag |= 4)) : ("function" == typeof y.componentDidMount && (e.effectTag |= 4), | |
e.memoizedProps = n, | |
e.memoizedState = _), | |
y.props = n, | |
y.state = _, | |
y.context = v, | |
n = x) : ("function" == typeof y.componentDidMount && (e.effectTag |= 4), | |
n = !1) | |
} else | |
y = e.stateNode, | |
x = e.memoizedProps, | |
y.props = e.type === e.elementType ? x : ln(e.type, x), | |
_ = y.context, | |
v = t.contextType, | |
"object" == typeof v && null !== v ? v = ha.currentDispatcher.readContext(v) : (v = vt(t) ? na : ea.current, | |
v = mt(e, v)), | |
k = t.getDerivedStateFromProps, | |
(w = "function" == typeof k || "function" == typeof y.getSnapshotBeforeUpdate) || "function" != typeof y.UNSAFE_componentWillReceiveProps && "function" != typeof y.componentWillReceiveProps || (x !== n || _ !== v) && fn(e, y, n, v), | |
Ys = !1, | |
_ = e.memoizedState, | |
S = y.state = _, | |
C = e.updateQueue, | |
null !== C && (qt(e, C, n, y, m), | |
S = e.memoizedState), | |
x !== n || _ !== S || ta.current || Ys ? ("function" == typeof k && (un(e, t, k, n), | |
S = e.memoizedState), | |
(k = Ys || cn(e, t, x, n, _, S, v)) ? (w || "function" != typeof y.UNSAFE_componentWillUpdate && "function" != typeof y.componentWillUpdate || ("function" == typeof y.componentWillUpdate && y.componentWillUpdate(n, S, v), | |
"function" == typeof y.UNSAFE_componentWillUpdate && y.UNSAFE_componentWillUpdate(n, S, v)), | |
"function" == typeof y.componentDidUpdate && (e.effectTag |= 4), | |
"function" == typeof y.getSnapshotBeforeUpdate && (e.effectTag |= 256)) : ("function" != typeof y.componentDidUpdate || x === h.memoizedProps && _ === h.memoizedState || (e.effectTag |= 4), | |
"function" != typeof y.getSnapshotBeforeUpdate || x === h.memoizedProps && _ === h.memoizedState || (e.effectTag |= 256), | |
e.memoizedProps = n, | |
e.memoizedState = S), | |
y.props = n, | |
y.state = S, | |
y.context = v, | |
n = k) : ("function" != typeof y.componentDidUpdate || x === h.memoizedProps && _ === h.memoizedState || (e.effectTag |= 4), | |
"function" != typeof y.getSnapshotBeforeUpdate || x === h.memoizedProps && _ === h.memoizedState || (e.effectTag |= 256), | |
n = !1); | |
return Mn(h, e, t, n, o, m) | |
} | |
function Mn(s, e, t, n, d, o) { | |
En(s, e); | |
var i = 0 != (64 & e.effectTag); | |
if (!n && !i) | |
return d && kt(e, t, !1), | |
Rn(s, e, o); | |
n = e.stateNode, | |
$s.current = e; | |
var a = i && "function" != typeof t.getDerivedStateFromError ? null : n.render(); | |
return e.effectTag |= 1, | |
null !== s && i ? (e.child = ga(e, s.child, null, o), | |
e.child = ga(e, null, a, o)) : _n(s, e, a, o), | |
e.memoizedState = n.state, | |
d && kt(e, t, !0), | |
e.child | |
} | |
function Dn(n) { | |
var e = n.stateNode; | |
e.pendingContext ? bt(n, e.pendingContext, e.pendingContext !== e.context) : e.context && bt(n, e.context, !1), | |
nn(n, e.containerInfo) | |
} | |
function jn(s, d, t) { | |
var l = d.mode | |
, u = d.pendingProps | |
, p = d.memoizedState; | |
if (0 == (64 & d.effectTag)) { | |
p = null; | |
var c = !1 | |
} else | |
p = { | |
timedOutAt: null === p ? 0 : p.timedOutAt | |
}, | |
c = !0, | |
d.effectTag &= -65; | |
return null === s ? c ? (c = u.fallback, | |
u = Dt(null, l, 0, null), | |
0 == (1 & d.mode) && In(d, u, null === d.memoizedState ? d.child : d.child.child), | |
l = Dt(c, l, t, null), | |
u.sibling = l, | |
t = u, | |
t.return = l.return = d) : t = l = ba(d, null, u.children, t) : null === s.memoizedState ? (s = s.child, | |
c ? (c = u.fallback, | |
u = Dt(null, l, 0, null), | |
u.effectTag |= 2, | |
u.child = s, | |
s.return = u, | |
0 == (1 & d.mode) && In(d, u, null === d.memoizedState ? d.child : d.child.child), | |
l = u.sibling = Dt(c, l, t, null), | |
l.effectTag |= 2, | |
t = u, | |
u.childExpirationTime = 0, | |
t.return = l.return = d) : l = t = ga(d, s, u.children, t)) : (l = s.child, | |
s = l.sibling, | |
c ? (t = u.fallback, | |
u = Pt(l, l.pendingProps, 0), | |
u.effectTag |= 2, | |
0 == (1 & d.mode) && (c = null === d.memoizedState ? d.child : d.child.child) !== l.child && In(d, u, c), | |
l = u.sibling = Pt(s, t, s.expirationTime), | |
l.effectTag |= 2, | |
t = u, | |
u.childExpirationTime = 0, | |
t.return = l.return = d) : (c = s.child, | |
l = ga(d, l.child, u.children, t), | |
ga(d, c, null, t), | |
t = l)), | |
d.memoizedState = p, | |
d.child = t, | |
l | |
} | |
function In(a, e, t) { | |
for (t = e.child = t; null !== t; ) | |
null === e.firstEffect && (e.firstEffect = t.firstEffect), | |
null !== t.lastEffect && (null !== e.lastEffect && (e.lastEffect.nextEffect = t.firstEffect), | |
e.lastEffect = t.lastEffect), | |
1 < t.effectTag && (null === e.lastEffect ? e.firstEffect = t : e.lastEffect.nextEffect = t, | |
e.lastEffect = t), | |
t.return = e, | |
t = t.sibling; | |
a.firstEffect = e.firstEffect, | |
a.lastEffect = e.lastEffect | |
} | |
function Rn(a, o, t) { | |
if (null !== a && (o.firstContextDependency = a.firstContextDependency), | |
o.childExpirationTime < t) | |
return null; | |
if (null !== a && o.child !== a.child && Ci("153"), | |
null !== o.child) { | |
for (a = o.child, | |
t = Pt(a, a.pendingProps, a.expirationTime), | |
o.child = t, | |
t.return = o; null !== a.sibling; ) | |
a = a.sibling, | |
t = t.sibling = Pt(a, a.pendingProps, a.expirationTime), | |
t.return = o; | |
t.sibling = null | |
} | |
return o.child | |
} | |
function Nn(o, d, p) { | |
var n = d.expirationTime; | |
if (null !== o && o.memoizedProps === d.pendingProps && !ta.current && n < p) { | |
switch (d.tag) { | |
case 3: | |
Dn(d), | |
kn(); | |
break; | |
case 5: | |
on(d); | |
break; | |
case 1: | |
vt(d.type) && wt(d); | |
break; | |
case 4: | |
nn(d, d.stateNode.containerInfo); | |
break; | |
case 10: | |
Zt(d, d.memoizedProps.value); | |
break; | |
case 13: | |
if (null !== d.memoizedState) | |
return 0 !== (n = d.child.childExpirationTime) && n >= p ? jn(o, d, p) : (d = Rn(o, d, p), | |
null === d ? null : d.sibling); | |
} | |
return Rn(o, d, p) | |
} | |
switch (d.expirationTime = 0, | |
d.tag) { | |
case 2: | |
n = d.elementType, | |
null !== o && (o.alternate = null, | |
d.alternate = null, | |
d.effectTag |= 2), | |
o = d.pendingProps; | |
var f = mt(d, ea.current); | |
if (Qt(d, p), | |
f = n(o, f), | |
d.effectTag |= 1, | |
"object" == typeof f && null !== f && "function" == typeof f.render && void 0 === f.$$typeof) { | |
if (d.tag = 1, | |
vt(n)) { | |
var h = !0; | |
wt(d) | |
} else | |
h = !1; | |
d.memoizedState = null !== f.state && void 0 !== f.state ? f.state : null; | |
var m = n.getDerivedStateFromProps; | |
"function" == typeof m && un(d, n, m, o), | |
f.updater = va, | |
d.stateNode = f, | |
f._reactInternalFiber = d, | |
pn(d, n, o, p), | |
d = Mn(null, d, n, !0, h, p) | |
} else | |
d.tag = 0, | |
_n(null, d, f, p), | |
d = d.child; | |
return d; | |
case 16: | |
switch (f = d.elementType, | |
null !== o && (o.alternate = null, | |
d.alternate = null, | |
d.effectTag |= 2), | |
h = d.pendingProps, | |
o = sn(f), | |
d.type = o, | |
f = d.tag = Ot(o), | |
h = ln(o, h), | |
m = void 0, | |
f) { | |
case 0: | |
m = On(null, d, o, h, p); | |
break; | |
case 1: | |
m = Pn(null, d, o, h, p); | |
break; | |
case 11: | |
m = Sn(null, d, o, h, p); | |
break; | |
case 14: | |
m = Cn(null, d, o, ln(o.type, h), n, p); | |
break; | |
default: | |
Ci("283", o); | |
} | |
return m; | |
case 0: | |
return n = d.type, | |
f = d.pendingProps, | |
f = d.elementType === n ? f : ln(n, f), | |
On(o, d, n, f, p); | |
case 1: | |
return n = d.type, | |
f = d.pendingProps, | |
f = d.elementType === n ? f : ln(n, f), | |
Pn(o, d, n, f, p); | |
case 3: | |
return Dn(d), | |
n = d.updateQueue, | |
null === n && Ci("282"), | |
f = d.memoizedState, | |
f = null === f ? null : f.element, | |
qt(d, n, d.pendingProps, null, p), | |
n = d.memoizedState.element, | |
n === f ? (kn(), | |
d = Rn(o, d, p)) : (f = d.stateNode, | |
(f = (null === o || null === o.child) && f.hydrate) && (Zs = ft(d.stateNode.containerInfo), | |
xa = d, | |
f = Ks = !0), | |
f ? (d.effectTag |= 2, | |
d.child = ba(d, null, n, p)) : (_n(o, d, n, p), | |
kn()), | |
d = d.child), | |
d; | |
case 5: | |
return on(d), | |
null === o && bn(d), | |
n = d.type, | |
f = d.pendingProps, | |
h = null === o ? null : o.memoizedProps, | |
m = f.children, | |
ct(n, f) ? m = null : null !== h && ct(n, h) && (d.effectTag |= 16), | |
En(o, d), | |
1 !== p && 1 & d.mode && f.hidden ? (d.expirationTime = 1, | |
d = null) : (_n(o, d, m, p), | |
d = d.child), | |
d; | |
case 6: | |
return null === o && bn(d), | |
null; | |
case 13: | |
return jn(o, d, p); | |
case 4: | |
return nn(d, d.stateNode.containerInfo), | |
n = d.pendingProps, | |
null === o ? d.child = ga(d, null, n, p) : _n(o, d, n, p), | |
d.child; | |
case 11: | |
return n = d.type, | |
f = d.pendingProps, | |
f = d.elementType === n ? f : ln(n, f), | |
Sn(o, d, n, f, p); | |
case 7: | |
return _n(o, d, d.pendingProps, p), | |
d.child; | |
case 8: | |
case 12: | |
return _n(o, d, d.pendingProps.children, p), | |
d.child; | |
case 10: | |
e: { | |
if (n = d.type._context, | |
f = d.pendingProps, | |
m = d.memoizedProps, | |
h = f.value, | |
Zt(d, h), | |
null !== m) { | |
var y = m.value; | |
if (!(0 == (h = y === h && (0 !== y || 1 / y == 1 / h) || y !== y && h !== h ? 0 : 0 | ("function" == typeof n._calculateChangedBits ? n._calculateChangedBits(y, h) : 1073741823)))) | |
for (null !== (m = d.child) && (m.return = d); null !== m; ) { | |
if (null !== (y = m.firstContextDependency)) | |
do { | |
if (y.context === n && 0 != (y.observedBits & h)) { | |
if (1 === m.tag) { | |
var x = Ut(p); | |
x.tag = 2, | |
Ht(m, x) | |
} | |
m.expirationTime < p && (m.expirationTime = p), | |
x = m.alternate, | |
null !== x && x.expirationTime < p && (x.expirationTime = p); | |
for (var _ = m.return; null !== _; ) { | |
if (x = _.alternate, | |
_.childExpirationTime < p) | |
_.childExpirationTime = p, | |
null !== x && x.childExpirationTime < p && (x.childExpirationTime = p); | |
else { | |
if (!(null !== x && x.childExpirationTime < p)) | |
break; | |
x.childExpirationTime = p | |
} | |
_ = _.return | |
} | |
} | |
x = m.child, | |
y = y.next | |
} while (null !== y); | |
else | |
x = 10 === m.tag && m.type === d.type ? null : m.child; | |
if (null !== x) | |
x.return = m; | |
else | |
for (x = m; null !== x; ) { | |
if (x === d) { | |
x = null; | |
break | |
} | |
if (null !== (m = x.sibling)) { | |
m.return = x.return, | |
x = m; | |
break | |
} | |
x = x.return | |
} | |
m = x | |
} | |
else if (m.children === f.children && !ta.current) { | |
d = Rn(o, d, p); | |
break e | |
} | |
} | |
_n(o, d, f.children, p), | |
d = d.child | |
} | |
return d; | |
case 9: | |
return f = d.type, | |
h = d.pendingProps, | |
n = h.children, | |
Qt(d, p), | |
f = en(f, h.unstable_observedBits), | |
n = n(f), | |
d.effectTag |= 1, | |
_n(o, d, n, p), | |
d.child; | |
case 14: | |
return f = d.type, | |
h = ln(f.type, d.pendingProps), | |
Cn(o, d, f, h, n, p); | |
case 15: | |
return Tn(o, d, d.type, d.pendingProps, n, p); | |
case 17: | |
return n = d.type, | |
f = d.pendingProps, | |
f = d.elementType === n ? f : ln(n, f), | |
null !== o && (o.alternate = null, | |
d.alternate = null, | |
d.effectTag |= 2), | |
d.tag = 1, | |
vt(n) ? (o = !0, | |
wt(d)) : o = !1, | |
Qt(d, p), | |
dn(d, n, f, p), | |
pn(d, n, f, p), | |
Mn(null, d, n, !0, o, p); | |
default: | |
Ci("156"); | |
} | |
} | |
function An(t) { | |
t.effectTag |= 4 | |
} | |
function Fn(a, e) { | |
var o = e.source | |
, n = e.stack; | |
null === n && null !== o && (n = ee(o)), | |
null !== o && Q(o.type), | |
e = e.value, | |
null !== a && 1 === a.tag && Q(a.type); | |
try { | |
console.error(e) | |
} catch (t) { | |
setTimeout(function() { | |
throw t | |
}) | |
} | |
} | |
function Ln(n) { | |
var e = n.ref; | |
if (null !== e) | |
if ("function" == typeof e) | |
try { | |
e(null) | |
} catch (e) { | |
Jn(n, e) | |
} | |
else | |
e.current = null | |
} | |
function Wn(a) { | |
switch ("function" == typeof Hs && Hs(a), | |
a.tag) { | |
case 0: | |
case 11: | |
case 14: | |
case 15: | |
var e = a.updateQueue; | |
if (null !== e && null !== (e = e.lastEffect)) { | |
var i = e = e.next; | |
do { | |
var s = i.destroy; | |
if (null !== s) { | |
var d = a; | |
try { | |
s() | |
} catch (t) { | |
Jn(d, t) | |
} | |
} | |
i = i.next | |
} while (i !== e) | |
} | |
break; | |
case 1: | |
if (Ln(a), | |
e = a.stateNode, | |
"function" == typeof e.componentWillUnmount) | |
try { | |
e.props = a.memoizedProps, | |
e.state = a.memoizedState, | |
e.componentWillUnmount() | |
} catch (e) { | |
Jn(a, e) | |
} | |
break; | |
case 5: | |
Ln(a); | |
break; | |
case 4: | |
Bn(a); | |
} | |
} | |
function zn(t) { | |
return 5 === t.tag || 3 === t.tag || 4 === t.tag | |
} | |
function Un(o) { | |
e: { | |
for (var e = o.return; null !== e; ) { | |
if (zn(e)) { | |
var d = e; | |
break e | |
} | |
e = e.return | |
} | |
Ci("160"), | |
d = void 0 | |
} | |
var u = e = void 0; | |
switch (d.tag) { | |
case 5: | |
e = d.stateNode, | |
u = !1; | |
break; | |
case 3: | |
case 4: | |
e = d.stateNode.containerInfo, | |
u = !0; | |
break; | |
default: | |
Ci("161"); | |
} | |
16 & d.effectTag && (nt(e, ""), | |
d.effectTag &= -17); | |
e: t: for (d = o; ; ) { | |
for (; null === d.sibling; ) { | |
if (null === d.return || zn(d.return)) { | |
d = null; | |
break e | |
} | |
d = d.return | |
} | |
for (d.sibling.return = d.return, | |
d = d.sibling; 5 !== d.tag && 6 !== d.tag; ) { | |
if (2 & d.effectTag) | |
continue t; | |
if (null === d.child || 4 === d.tag) | |
continue t; | |
d.child.return = d, | |
d = d.child | |
} | |
if (!(2 & d.effectTag)) { | |
d = d.stateNode; | |
break e | |
} | |
} | |
for (var p = o; ; ) { | |
if (5 === p.tag || 6 === p.tag) { | |
if (!d) | |
u ? (f = e, | |
h = p.stateNode, | |
8 === f.nodeType ? (c = f.parentNode, | |
c.insertBefore(h, f)) : (c = f, | |
c.appendChild(h)), | |
null !== (f = f._reactRootContainer) && void 0 !== f || null !== c.onclick || (c.onclick = st)) : e.appendChild(p.stateNode); | |
else if (u) { | |
var c = e | |
, f = p.stateNode | |
, h = d; | |
8 === c.nodeType ? c.parentNode.insertBefore(f, h) : c.insertBefore(f, h) | |
} else | |
e.insertBefore(p.stateNode, d); | |
} else if (4 !== p.tag && null !== p.child) { | |
p.child.return = p, | |
p = p.child; | |
continue | |
} | |
if (p === o) | |
break; | |
for (; null === p.sibling; ) { | |
if (null === p.return || p.return === o) | |
return; | |
p = p.return | |
} | |
p.sibling.return = p.return, | |
p = p.sibling | |
} | |
} | |
function Bn(o) { | |
for (var e = o, s = !1, d = void 0, u = void 0; ; ) { | |
if (!s) { | |
s = e.return; | |
e: for (; ; ) { | |
switch (null === s && Ci("160"), | |
s.tag) { | |
case 5: | |
d = s.stateNode, | |
u = !1; | |
break e; | |
case 3: | |
case 4: | |
d = s.stateNode.containerInfo, | |
u = !0; | |
break e; | |
} | |
s = s.return | |
} | |
s = !0 | |
} | |
if (5 === e.tag || 6 === e.tag) { | |
e: for (var p = e, c = p; ; ) | |
if (Wn(c), | |
null !== c.child && 4 !== c.tag) | |
c.child.return = c, | |
c = c.child; | |
else { | |
if (c === p) | |
break; | |
for (; null === c.sibling; ) { | |
if (null === c.return || c.return === p) | |
break e; | |
c = c.return | |
} | |
c.sibling.return = c.return, | |
c = c.sibling | |
} | |
u ? (p = d, | |
c = e.stateNode, | |
8 === p.nodeType ? p.parentNode.removeChild(c) : p.removeChild(c)) : d.removeChild(e.stateNode) | |
} else if (4 === e.tag ? (d = e.stateNode.containerInfo, | |
u = !0) : Wn(e), | |
null !== e.child) { | |
e.child.return = e, | |
e = e.child; | |
continue | |
} | |
if (e === o) | |
break; | |
for (; null === e.sibling; ) { | |
if (null === e.return || e.return === o) | |
return; | |
e = e.return, | |
4 === e.tag && (s = !1) | |
} | |
e.sibling.return = e.return, | |
e = e.sibling | |
} | |
} | |
function Hn(o, d) { | |
switch (d.tag) { | |
case 0: | |
case 11: | |
case 14: | |
case 15: | |
case 1: | |
break; | |
case 5: | |
var u = d.stateNode; | |
if (null != u) { | |
var p = d.memoizedProps | |
, c = null === o ? p : o.memoizedProps; | |
o = d.type; | |
var f = d.updateQueue; | |
if (d.updateQueue = null, | |
null !== f) { | |
for (u[Qr] = p, | |
"input" === o && "radio" === p.type && null != p.name && ce(u, p), | |
at(o, c), | |
d = at(o, p), | |
c = 0; c < f.length; c += 2) { | |
var h = f[c] | |
, l = f[c + 1]; | |
"style" === h ? ot(u, l) : "dangerouslySetInnerHTML" === h ? Bi(u, l) : "children" === h ? nt(u, l) : ae(u, h, l, d) | |
} | |
"input" === o ? de(u, p) : "textarea" === o ? Je(u, p) : "select" === o ? (d = u._wrapperState.wasMultiple, | |
u._wrapperState.wasMultiple = !!p.multiple, | |
o = p.value, | |
null == o ? d !== !!p.multiple && (null == p.defaultValue ? Ke(u, !!p.multiple, p.multiple ? [] : "", !1) : Ke(u, !!p.multiple, p.defaultValue, !0)) : Ke(u, !!p.multiple, o, !1)) : void 0 | |
} | |
} | |
break; | |
case 6: | |
null === d.stateNode && Ci("162"), | |
d.stateNode.nodeValue = d.memoizedProps; | |
break; | |
case 3: | |
case 12: | |
break; | |
case 13: | |
if (u = d.memoizedState, | |
o = d, | |
null === u ? p = !1 : (p = !0, | |
o = d.child, | |
0 === u.timedOutAt && (u.timedOutAt = sr())), | |
null !== o) | |
e: for (d = u = o; ; ) { | |
if (5 === d.tag) | |
o = d.stateNode, | |
p ? o.style.display = "none" : (o = d.stateNode, | |
f = d.memoizedProps.style, | |
f = void 0 !== f && null !== f && f.hasOwnProperty("display") ? f.display : null, | |
o.style.display = rt("display", f)); | |
else if (6 === d.tag) | |
d.stateNode.nodeValue = p ? "" : d.memoizedProps; | |
else if (null !== d.child) { | |
d.child.return = d, | |
d = d.child; | |
continue | |
} | |
if (d === u) | |
break e; | |
for (; null === d.sibling; ) { | |
if (null === d.return || d.return === u) | |
break e; | |
d = d.return | |
} | |
d.sibling.return = d.return, | |
d = d.sibling | |
} | |
break; | |
case 17: | |
break; | |
default: | |
Ci("163"); | |
} | |
} | |
function Vn(a, e, t) { | |
t = Ut(t), | |
t.tag = 3, | |
t.payload = { | |
element: null | |
}; | |
var o = e.value; | |
return t.callback = function() { | |
yr(o), | |
Fn(a, e) | |
} | |
, | |
t | |
} | |
function Yn(a, e, t) { | |
t = Ut(t), | |
t.tag = 3; | |
var s = a.type.getDerivedStateFromError; | |
if ("function" == typeof s) { | |
var d = e.value; | |
t.payload = function() { | |
return s(d) | |
} | |
} | |
var o = a.stateNode; | |
return null !== o && "function" == typeof o.componentDidCatch && (t.callback = function() { | |
"function" != typeof s && (null === Ba ? Ba = new Set([this]) : Ba.add(this)); | |
var t = e.value | |
, n = e.stack; | |
Fn(a, e), | |
this.componentDidCatch(t, { | |
componentStack: null === n ? "" : n | |
}) | |
} | |
), | |
t | |
} | |
function Gn(n) { | |
switch (n.tag) { | |
case 1: | |
vt(n.type) && yt(n); | |
var e = n.effectTag; | |
return 2048 & e ? (n.effectTag = 64 | -2049 & e, | |
n) : null; | |
case 3: | |
return rn(n), | |
gt(n), | |
e = n.effectTag, | |
0 != (64 & e) && Ci("285"), | |
n.effectTag = 64 | -2049 & e, | |
n; | |
case 5: | |
return an(n), | |
null; | |
case 13: | |
return e = n.effectTag, | |
2048 & e ? (n.effectTag = 64 | -2049 & e, | |
n) : null; | |
case 4: | |
return rn(n), | |
null; | |
case 10: | |
return Jt(n), | |
null; | |
default: | |
return null; | |
} | |
} | |
function qn() { | |
if (null !== od) | |
for (var a = od.return, o; null !== a; ) { | |
switch (o = a, | |
o.tag) { | |
case 1: | |
var i = o.type.childContextTypes; | |
null !== i && void 0 !== i && yt(o); | |
break; | |
case 3: | |
rn(o), | |
gt(o); | |
break; | |
case 5: | |
an(o); | |
break; | |
case 4: | |
rn(o); | |
break; | |
case 10: | |
Jt(o); | |
} | |
a = a.return | |
} | |
rd = null, | |
sd = 0, | |
dd = -1, | |
ld = !1, | |
od = null | |
} | |
function $n() { | |
null !== Ua && (Rr.unstable_cancelCallback(cd), | |
Ua()) | |
} | |
function Kn(o) { | |
for (; ; ) { | |
var x = o.alternate | |
, _ = o.return | |
, n = o.sibling; | |
if (0 == (1024 & o.effectTag)) { | |
od = o; | |
e: { | |
var k = x; | |
x = o; | |
var w = sd | |
, S = x.pendingProps; | |
switch (x.tag) { | |
case 2: | |
case 16: | |
break; | |
case 15: | |
case 0: | |
break; | |
case 1: | |
vt(x.type) && yt(x); | |
break; | |
case 3: | |
rn(x), | |
gt(x), | |
S = x.stateNode, | |
S.pendingContext && (S.context = S.pendingContext, | |
S.pendingContext = null), | |
null !== k && null !== k.child || (wn(x), | |
x.effectTag &= -3), | |
Qs(x); | |
break; | |
case 5: | |
an(x); | |
var C = tn(pa.current); | |
if (w = x.type, | |
null !== k && null != x.stateNode) | |
Js(k, x, w, S, C), | |
k.ref !== x.ref && (x.effectTag |= 128); | |
else if (S) { | |
var E = tn(da.current); | |
if (wn(x)) { | |
S = x, | |
k = S.stateNode; | |
var T = S.type | |
, P = S.memoizedProps | |
, D = C; | |
switch (k[Jr] = S, | |
k[Qr] = P, | |
w = void 0, | |
C = T) { | |
case "iframe": | |
case "object": | |
Ne("load", k); | |
break; | |
case "video": | |
case "audio": | |
for (T = 0; T < so.length; T++) | |
Ne(so[T], k); | |
break; | |
case "source": | |
Ne("error", k); | |
break; | |
case "img": | |
case "image": | |
case "link": | |
Ne("error", k), | |
Ne("load", k); | |
break; | |
case "form": | |
Ne("reset", k), | |
Ne("submit", k); | |
break; | |
case "details": | |
Ne("toggle", k); | |
break; | |
case "input": | |
ue(k, P), | |
Ne("invalid", k), | |
lt(D, "onChange"); | |
break; | |
case "select": | |
k._wrapperState = { | |
wasMultiple: !!P.multiple | |
}, | |
Ne("invalid", k), | |
lt(D, "onChange"); | |
break; | |
case "textarea": | |
Ze(k, P), | |
Ne("invalid", k), | |
lt(D, "onChange"); | |
} | |
for (w in it(C, P), | |
T = null, | |
P) | |
P.hasOwnProperty(w) && (E = P[w], | |
"children" === w ? "string" == typeof E ? k.textContent !== E && (T = ["children", E]) : "number" == typeof E && k.textContent !== "" + E && (T = ["children", "" + E]) : Vr.hasOwnProperty(w) && null != E && lt(D, w)); | |
switch (C) { | |
case "input": | |
X(k), | |
fe(k, P, !0); | |
break; | |
case "textarea": | |
X(k), | |
Qe(k, P); | |
break; | |
case "select": | |
case "option": | |
break; | |
default: | |
"function" == typeof P.onClick && (k.onclick = st); | |
} | |
w = T, | |
S.updateQueue = w, | |
S = null !== w, | |
S && An(x) | |
} else { | |
P = x, | |
k = w, | |
D = S, | |
T = 9 === C.nodeType ? C : C.ownerDocument, | |
E === Ls.html && (E = et(k)), | |
E === Ls.html ? "script" === k ? (k = T.createElement("div"), | |
k.innerHTML = "<script></script>", | |
T = k.removeChild(k.firstChild)) : "string" == typeof D.is ? T = T.createElement(k, { | |
is: D.is | |
}) : (T = T.createElement(k), | |
"select" === k && D.multiple && (T.multiple = !0)) : T = T.createElementNS(E, k), | |
k = T, | |
k[Jr] = P, | |
k[Qr] = S, | |
Sa(k, x, !1, !1), | |
D = k, | |
T = w, | |
P = S; | |
var O = C | |
, p = at(T, P); | |
switch (T) { | |
case "iframe": | |
case "object": | |
Ne("load", D), | |
C = P; | |
break; | |
case "video": | |
case "audio": | |
for (C = 0; C < so.length; C++) | |
Ne(so[C], D); | |
C = P; | |
break; | |
case "source": | |
Ne("error", D), | |
C = P; | |
break; | |
case "img": | |
case "image": | |
case "link": | |
Ne("error", D), | |
Ne("load", D), | |
C = P; | |
break; | |
case "form": | |
Ne("reset", D), | |
Ne("submit", D), | |
C = P; | |
break; | |
case "details": | |
Ne("toggle", D), | |
C = P; | |
break; | |
case "input": | |
ue(D, P), | |
C = se(D, P), | |
Ne("invalid", D), | |
lt(O, "onChange"); | |
break; | |
case "option": | |
C = $e(D, P); | |
break; | |
case "select": | |
D._wrapperState = { | |
wasMultiple: !!P.multiple | |
}, | |
C = Ir({}, P, { | |
value: void 0 | |
}), | |
Ne("invalid", D), | |
lt(O, "onChange"); | |
break; | |
case "textarea": | |
Ze(D, P), | |
C = Xe(D, P), | |
Ne("invalid", D), | |
lt(O, "onChange"); | |
break; | |
default: | |
C = P; | |
} | |
it(T, C), | |
E = void 0; | |
var h = T | |
, m = D | |
, v = C; | |
for (E in v) | |
if (v.hasOwnProperty(E)) { | |
var y = v[E]; | |
"style" === E ? ot(m, y) : "dangerouslySetInnerHTML" === E ? null != (y = y ? y.__html : void 0) && Bi(m, y) : "children" === E ? "string" == typeof y ? ("textarea" !== h || "" !== y) && nt(m, y) : "number" == typeof y && nt(m, "" + y) : "suppressContentEditableWarning" !== E && "suppressHydrationWarning" !== E && "autoFocus" !== E && (Vr.hasOwnProperty(E) ? null != y && lt(O, E) : null != y && ae(m, E, y, p)) | |
} | |
"input" === T ? (X(D), | |
fe(D, P, !1)) : "textarea" === T ? (X(D), | |
Qe(D, P)) : "option" === T ? null != P.value && D.setAttribute("value", "" + le(P.value)) : "select" === T ? (C = D, | |
C.multiple = !!P.multiple, | |
D = P.value, | |
null == D ? null != P.defaultValue && Ke(C, !!P.multiple, P.defaultValue, !0) : Ke(C, !!P.multiple, D, !1)) : "function" == typeof C.onClick && (D.onclick = st), | |
(S = ut(w, S)) && An(x), | |
x.stateNode = k | |
} | |
null !== x.ref && (x.effectTag |= 128) | |
} else | |
null === x.stateNode && Ci("166"); | |
break; | |
case 6: | |
k && null != x.stateNode ? ed(k, x, k.memoizedProps, S) : ("string" != typeof S && null === x.stateNode && Ci("166"), | |
k = tn(pa.current), | |
tn(da.current), | |
wn(x) ? (S = x, | |
w = S.stateNode, | |
k = S.memoizedProps, | |
w[Jr] = S, | |
(S = w.nodeValue !== k) && An(x)) : (w = x, | |
S = (9 === k.nodeType ? k : k.ownerDocument).createTextNode(S), | |
S[Jr] = x, | |
w.stateNode = S)); | |
break; | |
case 11: | |
break; | |
case 13: | |
if (S = x.memoizedState, | |
0 != (64 & x.effectTag)) { | |
x.expirationTime = w, | |
x.firstEffect = x.lastEffect = null, | |
od = x; | |
break e | |
} | |
S = null !== S, | |
(S !== (null !== k && null !== k.memoizedState) || 0 == (1 & x.effectTag) && S) && (x.effectTag |= 4); | |
break; | |
case 7: | |
case 8: | |
case 12: | |
break; | |
case 4: | |
rn(x), | |
Qs(x); | |
break; | |
case 10: | |
Jt(x); | |
break; | |
case 9: | |
case 14: | |
break; | |
case 17: | |
vt(x.type) && yt(x); | |
break; | |
default: | |
Ci("156"); | |
} | |
od = null | |
} | |
if (x = o, | |
1 === sd || 1 !== x.childExpirationTime) { | |
for (S = 0, | |
w = x.child; null !== w; ) | |
k = w.expirationTime, | |
C = w.childExpirationTime, | |
k > S && (S = k), | |
C > S && (S = C), | |
w = w.sibling; | |
x.childExpirationTime = S | |
} | |
if (null !== od) | |
return od.firstEffect = od.lastEffect = null, | |
od; | |
null !== _ && 0 == (1024 & _.effectTag) && (null === _.firstEffect && (_.firstEffect = o.firstEffect), | |
null !== o.lastEffect && (null !== _.lastEffect && (_.lastEffect.nextEffect = o.firstEffect), | |
_.lastEffect = o.lastEffect), | |
1 < o.effectTag && (null === _.lastEffect ? _.firstEffect = o : _.lastEffect.nextEffect = o, | |
_.lastEffect = o)) | |
} else { | |
if (null !== (o = Gn(o, sd))) | |
return o.effectTag &= 1023, | |
o; | |
null !== _ && (_.firstEffect = _.lastEffect = null, | |
_.effectTag |= 1024) | |
} | |
if (null !== n) | |
return n; | |
if (null === _) | |
break; | |
o = _ | |
} | |
return null | |
} | |
function Xn(n) { | |
var e = Nn(n.alternate, n, sd); | |
return n.memoizedProps = n.pendingProps, | |
null === e && (e = Kn(n)), | |
Pa.current = null, | |
e | |
} | |
function Zn(o, e) { | |
ad && Ci("243"), | |
$n(), | |
ad = !0, | |
Pa.currentDispatcher = td; | |
var m = o.nextExpirationTimeToWorkOn; | |
m === sd && o === rd && null !== od || (qn(), | |
rd = o, | |
sd = m, | |
od = Pt(rd.current, null, sd), | |
o.pendingCommitExpirationTime = 0); | |
for (var y = !1; ; ) { | |
try { | |
if (e) | |
for (; null !== od && !dr(); ) | |
od = Xn(od); | |
else | |
for (; null !== od; ) | |
od = Xn(od) | |
} catch (e) { | |
if (Xs = qs = la = null, | |
null === od) | |
y = !0, | |
yr(e); | |
else { | |
null === od && Ci("271"); | |
var x = od | |
, _ = x.return; | |
if (null !== _) { | |
e: { | |
var v = o | |
, k = _ | |
, w = x | |
, S = e; | |
if (_ = sd, | |
w.effectTag |= 1024, | |
w.firstEffect = w.lastEffect = null, | |
null !== S && "object" == typeof S && "function" == typeof S.then) { | |
var C = S; | |
S = k; | |
var E = -1 | |
, T = -1; | |
do { | |
if (13 === S.tag) { | |
var P = S.alternate; | |
if (null !== P && null !== (P = P.memoizedState)) { | |
T = 10 * (1073741822 - P.timedOutAt); | |
break | |
} | |
P = S.pendingProps.maxDuration, | |
"number" == typeof P && (0 >= P ? E = 0 : (-1 == E || P < E) && (E = P)) | |
} | |
S = S.return | |
} while (null !== S);S = k; | |
do { | |
if ((P = 13 === S.tag) && (P = void 0 !== S.memoizedProps.fallback && null === S.memoizedState), | |
P) { | |
if (k = er.bind(null, v, S, w, 0 == (1 & S.mode) ? 1073741823 : _), | |
C.then(k, k), | |
0 == (1 & S.mode)) { | |
S.effectTag |= 64, | |
_n(w.alternate, w, null, _), | |
w.effectTag &= -1025, | |
w.effectTag &= -933, | |
1 === w.tag && null === w.alternate && (w.tag = 17), | |
w.expirationTime = _; | |
break e | |
} | |
-1 == E ? v = 1073741823 : (-1 == T && (T = 10 * (1073741822 - Ft(v, _)) - 5e3), | |
v = T + E), | |
0 <= v && dd < v && (dd = v), | |
S.effectTag |= 2048, | |
S.expirationTime = _; | |
break e | |
} | |
S = S.return | |
} while (null !== S);S = Error((Q(w.type) || "A React component") + " suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display." + ee(w)) | |
} | |
ld = !0, | |
S = Xt(S, w), | |
v = k; | |
do { | |
switch (v.tag) { | |
case 3: | |
w = S, | |
v.effectTag |= 2048, | |
v.expirationTime = _, | |
_ = Vn(v, w, _), | |
Vt(v, _); | |
break e; | |
case 1: | |
if (w = S, | |
k = v.type, | |
C = v.stateNode, | |
0 == (64 & v.effectTag) && ("function" == typeof k.getDerivedStateFromError || null !== C && "function" == typeof C.componentDidCatch && (null === Ba || !Ba.has(C)))) { | |
v.effectTag |= 2048, | |
v.expirationTime = _, | |
_ = Yn(v, w, _), | |
Vt(v, _); | |
break e | |
} | |
} | |
v = v.return | |
} while (null !== v) | |
} | |
od = Kn(x); | |
continue | |
} | |
y = !0, | |
yr(e) | |
} | |
} | |
break | |
} | |
if (ad = !1, | |
Xs = qs = la = Pa.currentDispatcher = null, | |
y) | |
rd = null, | |
o.finishedWork = null; | |
else if (null !== od) | |
o.finishedWork = null; | |
else { | |
if (y = o.current.alternate, | |
null === y && Ci("281"), | |
rd = null, | |
ld) { | |
if (x = o.latestPendingTime, | |
_ = o.latestSuspendedTime, | |
v = o.latestPingedTime, | |
0 !== x && x < m || 0 !== _ && _ < m || 0 !== v && v < m) | |
return At(o, m), | |
void ar(o, y, m, o.expirationTime, -1); | |
if (!o.didError && e) | |
return o.didError = !0, | |
m = o.nextExpirationTimeToWorkOn = m, | |
e = o.expirationTime = 1073741823, | |
void ar(o, y, m, e, -1) | |
} | |
e && -1 !== dd ? (At(o, m), | |
e = 10 * (1073741822 - Ft(o, m)), | |
e < dd && (dd = e), | |
e = 10 * (1073741822 - sr()), | |
e = dd - e, | |
ar(o, y, m, o.expirationTime, 0 > e ? 0 : e)) : (o.pendingCommitExpirationTime = m, | |
o.finishedWork = y) | |
} | |
} | |
function Jn(a, o) { | |
for (var t = a.return; null !== t; ) { | |
switch (t.tag) { | |
case 1: | |
var i = t.stateNode; | |
if ("function" == typeof t.type.getDerivedStateFromError || "function" == typeof i.componentDidCatch && (null === Ba || !Ba.has(i))) | |
return a = Xt(o, a), | |
a = Yn(t, a, 1073741823), | |
Ht(t, a), | |
void nr(t, 1073741823); | |
break; | |
case 3: | |
return a = Xt(o, a), | |
a = Vn(t, a, 1073741823), | |
Ht(t, a), | |
void nr(t, 1073741823); | |
} | |
t = t.return | |
} | |
3 === a.tag && (t = Xt(o, a), | |
t = Vn(a, t, 1073741823), | |
Ht(a, t), | |
nr(a, 1073741823)) | |
} | |
function Qn(n, a) { | |
return 0 === nd ? ad ? n = pd ? 1073741823 : sd : 1 & a.mode ? (n = Cd ? 1073741822 - 10 * (1 + (0 | (1073741822 - n + 15) / 10)) : 1073741822 - 25 * (1 + (0 | (1073741822 - n + 500) / 25)), | |
null !== rd && n === sd && --n) : n = 1073741823 : n = nd, | |
Cd && (0 === _d || n < _d) && (_d = n), | |
n | |
} | |
function er(s, e, d, l) { | |
var u = s.earliestSuspendedTime | |
, p = s.latestSuspendedTime; | |
if (0 !== u && l <= u && l >= p) { | |
p = u = l, | |
s.didError = !1; | |
var c = s.latestPingedTime; | |
(0 === c || c > p) && (s.latestPingedTime = p), | |
Lt(p, s) | |
} else | |
u = sr(), | |
u = Qn(u, e), | |
Nt(s, u); | |
0 != (1 & e.mode) && s === rd && sd === l && (rd = null), | |
tr(e, u), | |
0 == (1 & e.mode) && (tr(d, u), | |
1 === d.tag && null !== d.stateNode && (e = Ut(u), | |
e.tag = 2, | |
Ht(d, e))), | |
0 !== (d = s.expirationTime) && ur(s, d) | |
} | |
function tr(a, e) { | |
a.expirationTime < e && (a.expirationTime = e); | |
var t = a.alternate; | |
null !== t && t.expirationTime < e && (t.expirationTime = e); | |
var i = a.return | |
, s = null; | |
if (null === i && 3 === a.tag) | |
s = a.stateNode; | |
else | |
for (; null !== i; ) { | |
if (t = i.alternate, | |
i.childExpirationTime < e && (i.childExpirationTime = e), | |
null !== t && t.childExpirationTime < e && (t.childExpirationTime = e), | |
null === i.return && 3 === i.tag) { | |
s = i.stateNode; | |
break | |
} | |
i = i.return | |
} | |
return null === s ? null : s | |
} | |
function nr(n, a) { | |
null !== (n = tr(n, a)) && (!ad && 0 !== sd && a > sd && qn(), | |
Nt(n, a), | |
ad && !pd && rd === n || ur(n, n.expirationTime), | |
Md > Od && (Md = 0, | |
Ci("185"))) | |
} | |
function rr(a, e, t, n, s) { | |
var o = nd; | |
nd = 1073741823; | |
try { | |
return a(e, t, n, s) | |
} finally { | |
nd = o | |
} | |
} | |
function or() { | |
Pd = 1073741822 - (0 | (Rr.unstable_now() - Td) / 10) | |
} | |
function ir(n, a) { | |
if (0 !== md) { | |
if (a < md) | |
return; | |
null !== gd && Rr.unstable_cancelCallback(gd) | |
} | |
md = a, | |
n = Rr.unstable_now() - Td, | |
gd = Rr.unstable_scheduleCallback(fr, { | |
timeout: 10 * (1073741822 - a) - n | |
}) | |
} | |
function ar(a, e, t, n, i) { | |
a.expirationTime = n, | |
0 !== i || dr() ? 0 < i && (a.timeoutHandle = Fs(lr.bind(null, a, e, t), i)) : (a.pendingCommitExpirationTime = t, | |
a.finishedWork = e) | |
} | |
function lr(a, e, t) { | |
a.pendingCommitExpirationTime = t, | |
a.finishedWork = e, | |
or(), | |
Dd = Pd, | |
hr(a, t) | |
} | |
function sr() { | |
return yd ? Dd : (cr(), | |
0 !== xd && 1 !== xd || (or(), | |
Dd = Pd), | |
Dd) | |
} | |
function ur(n, e) { | |
null === n.nextScheduledRoot ? (n.expirationTime = e, | |
null === hd ? (fd = hd = n, | |
n.nextScheduledRoot = n) : (hd = hd.nextScheduledRoot = n, | |
hd.nextScheduledRoot = fd)) : e > n.expirationTime && (n.expirationTime = e), | |
yd || (wd ? Sd && (bd = n, | |
xd = 1073741823, | |
mr(n, 1073741823, !1)) : 1073741823 === e ? pr(1073741823, !1) : ir(n, e)) | |
} | |
function cr() { | |
var a = 0 | |
, o = null; | |
if (null !== hd) | |
for (var s = hd, d = fd, l; null !== d; ) | |
if (l = d.expirationTime, | |
0 === l) { | |
if ((null === s || null === hd) && Ci("244"), | |
d === d.nextScheduledRoot) { | |
fd = hd = d.nextScheduledRoot = null; | |
break | |
} | |
if (d === fd) | |
fd = l = d.nextScheduledRoot, | |
hd.nextScheduledRoot = l, | |
d.nextScheduledRoot = null; | |
else { | |
if (d === hd) { | |
hd = s, | |
hd.nextScheduledRoot = fd, | |
d.nextScheduledRoot = null; | |
break | |
} | |
s.nextScheduledRoot = d.nextScheduledRoot, | |
d.nextScheduledRoot = null | |
} | |
d = s.nextScheduledRoot | |
} else { | |
if (l > a && (a = l, | |
o = d), | |
d === hd) | |
break; | |
if (1073741823 === a) | |
break; | |
s = d, | |
d = d.nextScheduledRoot | |
} | |
bd = o, | |
xd = a | |
} | |
function dr() { | |
return !!Id || !!Rr.unstable_shouldYield() && (Id = !0) | |
} | |
function fr() { | |
try { | |
if (!dr() && null !== fd) { | |
or(); | |
var n = fd; | |
do { | |
var a = n.expirationTime; | |
0 !== a && Pd <= a && (n.nextExpirationTimeToWorkOn = Pd), | |
n = n.nextScheduledRoot | |
} while (n !== fd) | |
} | |
pr(0, !0) | |
} finally { | |
Id = !1 | |
} | |
} | |
function pr(a, o) { | |
if (cr(), | |
o) | |
for (or(), | |
Dd = Pd; null !== bd && 0 !== xd && a <= xd && !(Id && Pd > xd); ) | |
mr(bd, xd, Pd > xd), | |
cr(), | |
or(), | |
Dd = Pd; | |
else | |
for (; null !== bd && 0 !== xd && a <= xd; ) | |
mr(bd, xd, !1), | |
cr(); | |
if (o && (md = 0, | |
gd = null), | |
0 !== xd && ir(bd, xd), | |
Md = 0, | |
Rd = null, | |
null !== Ed) | |
for (a = Ed, | |
Ed = null, | |
o = 0; o < a.length; o++) { | |
var i = a[o]; | |
try { | |
i._onComplete() | |
} catch (t) { | |
vd || (vd = !0, | |
kd = t) | |
} | |
} | |
if (vd) | |
throw a = kd, | |
kd = null, | |
vd = !1, | |
a | |
} | |
function hr(n, e) { | |
yd && Ci("253"), | |
bd = n, | |
xd = e, | |
mr(n, e, !1), | |
pr(1073741823, !1) | |
} | |
function mr(a, e, t) { | |
if (yd && Ci("245"), | |
yd = !0, | |
t) { | |
var n = a.finishedWork; | |
null === n ? (a.finishedWork = null, | |
n = a.timeoutHandle, | |
-1 !== n && (a.timeoutHandle = -1, | |
Xi(n)), | |
Zn(a, t), | |
null !== (n = a.finishedWork) && (dr() ? a.finishedWork = n : vr(a, n, e))) : vr(a, n, e) | |
} else | |
n = a.finishedWork, | |
null === n ? (a.finishedWork = null, | |
n = a.timeoutHandle, | |
-1 !== n && (a.timeoutHandle = -1, | |
Xi(n)), | |
Zn(a, t), | |
null !== (n = a.finishedWork) && vr(a, n, e)) : vr(a, n, e); | |
yd = !1 | |
} | |
function vr(o, e, z) { | |
var A = o.firstBatch; | |
if (null !== A && A._expirationTime >= z && (null === Ed ? Ed = [A] : Ed.push(A), | |
A._defer)) | |
return o.finishedWork = e, | |
void (o.expirationTime = 0); | |
o.finishedWork = null, | |
o === Rd ? Md++ : (Rd = o, | |
Md = 0), | |
pd = ad = !0, | |
o.current === e && Ci("177"), | |
z = o.pendingCommitExpirationTime, | |
0 === z && Ci("261"), | |
o.pendingCommitExpirationTime = 0, | |
A = e.expirationTime; | |
var U = e.childExpirationTime; | |
if (A = U > A ? U : A, | |
o.didError = !1, | |
0 === A ? (o.earliestPendingTime = 0, | |
o.latestPendingTime = 0, | |
o.earliestSuspendedTime = 0, | |
o.latestSuspendedTime = 0, | |
o.latestPingedTime = 0) : (U = o.latestPendingTime, | |
0 !== U && (U > A ? o.earliestPendingTime = o.latestPendingTime = 0 : o.earliestPendingTime > A && (o.earliestPendingTime = o.latestPendingTime)), | |
U = o.earliestSuspendedTime, | |
0 === U ? Nt(o, A) : A < o.latestSuspendedTime ? (o.earliestSuspendedTime = 0, | |
o.latestSuspendedTime = 0, | |
o.latestPingedTime = 0, | |
Nt(o, A)) : A > U && Nt(o, A)), | |
Lt(0, o), | |
Pa.current = null, | |
1 < e.effectTag ? null === e.lastEffect ? A = e : (e.lastEffect.nextEffect = e, | |
A = e.firstEffect) : A = e.firstEffect, | |
qi = Mi, | |
U = Ve(), | |
Ye(U)) { | |
if ("selectionStart"in U) | |
var L = { | |
start: U.selectionStart, | |
end: U.selectionEnd | |
}; | |
else | |
e: { | |
L = (L = U.ownerDocument) && L.defaultView || window; | |
var B = L.getSelection && L.getSelection(); | |
if (B && 0 !== B.rangeCount) { | |
L = B.anchorNode; | |
var F = B.anchorOffset | |
, W = B.focusNode; | |
B = B.focusOffset; | |
try { | |
L.nodeType, | |
W.nodeType | |
} catch (t) { | |
L = null; | |
break e | |
} | |
var u = 0 | |
, H = -1 | |
, Y = -1 | |
, V = 0 | |
, q = 0 | |
, X = U | |
, G = null; | |
t: for (; ; ) { | |
for (var Z; X !== L || 0 !== F && 3 !== X.nodeType || (H = u + F), | |
X !== W || 0 !== B && 3 !== X.nodeType || (Y = u + B), | |
3 === X.nodeType && (u += X.nodeValue.length), | |
null !== (Z = X.firstChild); ) | |
G = X, | |
X = Z; | |
for (; ; ) { | |
if (X === U) | |
break t; | |
if (G === L && ++V === F && (H = u), | |
G === W && ++q === B && (Y = u), | |
null !== (Z = X.nextSibling)) | |
break; | |
X = G, | |
G = X.parentNode | |
} | |
X = Z | |
} | |
L = -1 === H || -1 === Y ? null : { | |
start: H, | |
end: Y | |
} | |
} else | |
L = null | |
} | |
L = L || { | |
start: 0, | |
end: 0 | |
} | |
} else | |
L = null; | |
for (Ns = { | |
focusedElem: U, | |
selectionRange: L | |
}, | |
Mi = !1, | |
ud = A; null !== ud; ) { | |
U = !1, | |
L = void 0; | |
try { | |
for (; null !== ud; ) { | |
if (256 & ud.effectTag) | |
e: { | |
var K = ud.alternate; | |
switch (F = ud, | |
F.tag) { | |
case 0: | |
case 11: | |
case 15: | |
break e; | |
case 1: | |
if (256 & F.effectTag && null !== K) { | |
var $ = K.memoizedProps | |
, Q = K.memoizedState | |
, J = F.stateNode | |
, ee = J.getSnapshotBeforeUpdate(F.elementType === F.type ? $ : ln(F.type, $), Q); | |
J.__reactInternalSnapshotBeforeUpdate = ee | |
} | |
break e; | |
case 3: | |
case 5: | |
case 6: | |
case 4: | |
case 17: | |
break e; | |
default: | |
Ci("163"); | |
} | |
} | |
ud = ud.nextEffect | |
} | |
} catch (t) { | |
U = !0, | |
L = t | |
} | |
U && (null === ud && Ci("178"), | |
Jn(ud, L), | |
null !== ud && (ud = ud.nextEffect)) | |
} | |
for (ud = A; null !== ud; ) { | |
K = !1, | |
$ = void 0; | |
try { | |
for (; null !== ud; ) { | |
var k = ud.effectTag; | |
if (16 & k && nt(ud.stateNode, ""), | |
128 & k) { | |
var te = ud.alternate; | |
if (null !== te) { | |
var ne = te.ref; | |
null !== ne && ("function" == typeof ne ? ne(null) : ne.current = null) | |
} | |
} | |
switch (14 & k) { | |
case 2: | |
Un(ud), | |
ud.effectTag &= -3; | |
break; | |
case 6: | |
Un(ud), | |
ud.effectTag &= -3, | |
Hn(ud.alternate, ud); | |
break; | |
case 4: | |
Hn(ud.alternate, ud); | |
break; | |
case 8: | |
Q = ud, | |
Bn(Q), | |
Q.return = null, | |
Q.child = null, | |
Q.alternate && (Q.alternate.child = null, | |
Q.alternate.return = null); | |
} | |
ud = ud.nextEffect | |
} | |
} catch (t) { | |
K = !0, | |
$ = t | |
} | |
K && (null === ud && Ci("178"), | |
Jn(ud, $), | |
null !== ud && (ud = ud.nextEffect)) | |
} | |
if (ne = Ns, | |
te = Ve(), | |
k = ne.focusedElem, | |
$ = ne.selectionRange, | |
te !== k && k && k.ownerDocument && He(k.ownerDocument.documentElement, k)) { | |
for (null !== $ && Ye(k) && (te = $.start, | |
ne = $.end, | |
void 0 === ne && (ne = te), | |
("selectionStart"in k) ? (k.selectionStart = te, | |
k.selectionEnd = R(ne, k.value.length)) : (ne = (te = k.ownerDocument || document) && te.defaultView || window, | |
ne.getSelection && (ne = ne.getSelection(), | |
Q = k.textContent.length, | |
K = R($.start, Q), | |
$ = void 0 === $.end ? K : R($.end, Q), | |
!ne.extend && K > $ && (Q = $, | |
$ = K, | |
K = Q), | |
Q = Be(k, K), | |
J = Be(k, $), | |
Q && J && (1 !== ne.rangeCount || ne.anchorNode !== Q.node || ne.anchorOffset !== Q.offset || ne.focusNode !== J.node || ne.focusOffset !== J.offset) && (te = te.createRange(), | |
te.setStart(Q.node, Q.offset), | |
ne.removeAllRanges(), | |
K > $ ? (ne.addRange(te), | |
ne.extend(J.node, J.offset)) : (te.setEnd(J.node, J.offset), | |
ne.addRange(te)))))), | |
te = [], | |
ne = k; ne = ne.parentNode; ) | |
1 === ne.nodeType && te.push({ | |
element: ne, | |
left: ne.scrollLeft, | |
top: ne.scrollTop | |
}); | |
for ("function" == typeof k.focus && k.focus(), | |
k = 0; k < te.length; k++) | |
ne = te[k], | |
ne.element.scrollLeft = ne.left, | |
ne.element.scrollTop = ne.top | |
} | |
for (Ns = null, | |
Mi = !!qi, | |
qi = null, | |
o.current = e, | |
ud = A; null !== ud; ) { | |
A = !1, | |
k = void 0; | |
try { | |
for (te = z; null !== ud; ) { | |
var ae = ud.effectTag; | |
if (36 & ae) { | |
var oe = ud.alternate; | |
switch (ne = ud, | |
K = te, | |
ne.tag) { | |
case 0: | |
case 11: | |
case 15: | |
break; | |
case 1: | |
var E = ne.stateNode; | |
if (4 & ne.effectTag) | |
if (null === oe) | |
E.componentDidMount(); | |
else { | |
var O = ne.elementType === ne.type ? oe.memoizedProps : ln(ne.type, oe.memoizedProps); | |
E.componentDidUpdate(O, oe.memoizedState, E.__reactInternalSnapshotBeforeUpdate) | |
} | |
var P = ne.updateQueue; | |
null !== P && $t(ne, P, E, K); | |
break; | |
case 3: | |
var M = ne.updateQueue; | |
if (null !== M) { | |
if ($ = null, | |
null !== ne.child) | |
switch (ne.child.tag) { | |
case 5: | |
$ = ne.child.stateNode; | |
break; | |
case 1: | |
$ = ne.child.stateNode; | |
} | |
$t(ne, M, $, K) | |
} | |
break; | |
case 5: | |
var D = ne.stateNode; | |
null === oe && 4 & ne.effectTag && ut(ne.type, ne.memoizedProps) && D.focus(); | |
break; | |
case 6: | |
case 4: | |
case 12: | |
case 13: | |
case 17: | |
break; | |
default: | |
Ci("163"); | |
} | |
} | |
if (128 & ae) { | |
var j = ud.ref; | |
if (null !== j) { | |
var I = ud.stateNode; | |
switch (ud.tag) { | |
case 5: | |
var re = I; | |
break; | |
default: | |
re = I; | |
} | |
"function" == typeof j ? j(re) : j.current = re | |
} | |
} | |
ud = ud.nextEffect | |
} | |
} catch (t) { | |
A = !0, | |
k = t | |
} | |
A && (null === ud && Ci("178"), | |
Jn(ud, k), | |
null !== ud && (ud = ud.nextEffect)) | |
} | |
ad = pd = !1, | |
"function" == typeof js && js(e.stateNode), | |
ae = e.expirationTime, | |
e = e.childExpirationTime, | |
e = e > ae ? e : ae, | |
0 === e && (Ba = null), | |
o.expirationTime = e, | |
o.finishedWork = null | |
} | |
function yr(t) { | |
null === bd && Ci("246"), | |
bd.expirationTime = 0, | |
vd || (vd = !0, | |
kd = t) | |
} | |
function gr(a, e) { | |
var t = wd; | |
wd = !0; | |
try { | |
return a(e) | |
} finally { | |
(wd = t) || yd || pr(1073741823, !1) | |
} | |
} | |
function br(n, e) { | |
if (wd && !Sd) { | |
Sd = !0; | |
try { | |
return n(e) | |
} finally { | |
Sd = !1 | |
} | |
} | |
return n(e) | |
} | |
function xr(a, e, t) { | |
if (Cd) | |
return a(e, t); | |
wd || yd || 0 === _d || (pr(_d, !1), | |
_d = 0); | |
var n = Cd | |
, i = wd; | |
wd = Cd = !0; | |
try { | |
return a(e, t) | |
} finally { | |
Cd = n, | |
(wd = i) || yd || pr(1073741823, !1) | |
} | |
} | |
function wr(o, e, d, u, p) { | |
var c = e.current; | |
e: if (d) { | |
d = d._reactInternalFiber; | |
t: { | |
2 === Oe(d) && 1 === d.tag || Ci("170"); | |
var a = d; | |
do { | |
switch (a.tag) { | |
case 3: | |
a = a.stateNode.context; | |
break t; | |
case 1: | |
if (vt(a.type)) { | |
a = a.stateNode.__reactInternalMemoizedMergedChildContext; | |
break t | |
} | |
} | |
a = a.return | |
} while (null !== a);Ci("171"), | |
a = void 0 | |
} | |
if (1 === d.tag) { | |
var f = d.type; | |
if (vt(f)) { | |
d = xt(d, f, a); | |
break e | |
} | |
} | |
d = a | |
} else | |
d = Ws; | |
return null === e.context ? e.context = d : e.pendingContext = d, | |
e = p, | |
p = Ut(u), | |
p.payload = { | |
element: o | |
}, | |
e = void 0 === e ? null : e, | |
null !== e && (p.callback = e), | |
$n(), | |
Ht(c, p), | |
nr(c, u), | |
u | |
} | |
function kr(a, e, t, n) { | |
var i = e.current; | |
return i = Qn(sr(), i), | |
wr(a, e, t, i, n) | |
} | |
function _r(t) { | |
if (t = t.current, | |
!t.child) | |
return null; | |
switch (t.child.tag) { | |
case 5: | |
default: | |
return t.child.stateNode; | |
} | |
} | |
function Sr(a, e, t) { | |
var n = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; | |
return { | |
$$typeof: Ro, | |
key: null == n ? null : "" + n, | |
children: a, | |
containerInfo: e, | |
implementation: t | |
} | |
} | |
function Cr(n) { | |
var e = 1073741822 - 25 * (1 + (0 | (1073741822 - sr() + 500) / 25)); | |
e >= Ma && (e = Ma - 1), | |
this._expirationTime = Ma = e, | |
this._root = n, | |
this._callbacks = this._next = null, | |
this._hasChildren = this._didComplete = !1, | |
this._children = null, | |
this._defer = !0 | |
} | |
function Tr() { | |
this._callbacks = null, | |
this._didCommit = !1, | |
this._onCommit = this._onCommit.bind(this) | |
} | |
function Er(a, o, i) { | |
o = Tt(3, null, null, o ? 3 : 0), | |
a = { | |
current: o, | |
containerInfo: a, | |
pendingChildren: null, | |
earliestPendingTime: 0, | |
latestPendingTime: 0, | |
earliestSuspendedTime: 0, | |
latestSuspendedTime: 0, | |
latestPingedTime: 0, | |
didError: !1, | |
pendingCommitExpirationTime: 0, | |
finishedWork: null, | |
timeoutHandle: -1, | |
context: null, | |
pendingContext: null, | |
hydrate: i, | |
nextExpirationTimeToWorkOn: 0, | |
expirationTime: 0, | |
firstBatch: null, | |
nextScheduledRoot: null | |
}, | |
this._internalRoot = o.stateNode = a | |
} | |
function Or(t) { | |
return t && (1 === t.nodeType || 9 === t.nodeType || 11 === t.nodeType || 8 === t.nodeType && " react-mount-point-unstable " === t.nodeValue) | |
} | |
function Pr(a, e) { | |
if (e || (e = a ? 9 === a.nodeType ? a.documentElement : a.firstChild : null, | |
e = e && 1 === e.nodeType && e.hasAttribute("data-reactroot")), | |
!e) | |
for (var o; o = a.lastChild; ) | |
a.removeChild(o); | |
return new Er(a,!1,e) | |
} | |
function Mr(o, e, t, n, d) { | |
Or(t) || Ci("200"); | |
var u = t._reactRootContainer; | |
if (u) { | |
if ("function" == typeof d) { | |
var p = d; | |
d = function() { | |
var t = _r(u._internalRoot); | |
p.call(t) | |
} | |
} | |
null == o ? u.render(e, d) : u.legacy_renderSubtreeIntoContainer(o, e, d) | |
} else { | |
if (u = t._reactRootContainer = Pr(t, n), | |
"function" == typeof d) { | |
var l = d; | |
d = function() { | |
var t = _r(u._internalRoot); | |
l.call(t) | |
} | |
} | |
br(function() { | |
null == o ? u.render(e, d) : u.legacy_renderSubtreeIntoContainer(o, e, d) | |
}) | |
} | |
return _r(u._internalRoot) | |
} | |
function Dr(a, e) { | |
var t = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null; | |
return Or(e) || Ci("200"), | |
Sr(a, e, null, t) | |
} | |
var jr = t(1) | |
, Ir = t(62) | |
, Rr = t(147); | |
jr || Ci("227"); | |
var Nr = !1 | |
, rs = null | |
, is = !1 | |
, ss = null | |
, ds = { | |
onError: function(t) { | |
Nr = !0, | |
rs = t | |
} | |
} | |
, zr = null | |
, ls = {} | |
, Br = [] | |
, Hr = {} | |
, Vr = {} | |
, Yr = {} | |
, Gr = null | |
, us = null | |
, ps = null | |
, cs = null | |
, fs = { | |
injectEventPluginOrder: function(t) { | |
zr && Ci("101"), | |
zr = Array.prototype.slice.call(t), | |
l() | |
}, | |
injectEventPluginsByName: function(a) { | |
var e = !1, o; | |
for (o in a) | |
if (a.hasOwnProperty(o)) { | |
var i = a[o]; | |
ls.hasOwnProperty(o) && ls[o] === i || (ls[o] && Ci("102", o), | |
ls[o] = i, | |
e = !0) | |
} | |
e && l() | |
} | |
} | |
, Zr = Math.random().toString(36).slice(2) | |
, Jr = "__reactInternalInstance$" + Zr | |
, Qr = "__reactEventHandlers$" + Zr | |
, eo = "undefined" != typeof window && window.document && window.document.createElement | |
, to = { | |
animationend: C("Animation", "AnimationEnd"), | |
animationiteration: C("Animation", "AnimationIteration"), | |
animationstart: C("Animation", "AnimationStart"), | |
transitionend: C("Transition", "TransitionEnd") | |
} | |
, no = {} | |
, ro = {}; | |
eo && (ro = document.createElement("div").style, | |
"AnimationEvent"in window || (delete to.animationend.animation, | |
delete to.animationiteration.animation, | |
delete to.animationstart.animation), | |
"TransitionEvent"in window || delete to.transitionend.transition); | |
var hs = T("animationend") | |
, io = T("animationiteration") | |
, ao = T("animationstart") | |
, lo = T("transitionend") | |
, so = ["abort", "canplay", "canplaythrough", "durationchange", "emptied", "encrypted", "ended", "error", "loadeddata", "loadedmetadata", "loadstart", "pause", "play", "playing", "progress", "ratechange", "seeked", "seeking", "stalled", "suspend", "timeupdate", "volumechange", "waiting"] | |
, uo = null | |
, ms = null | |
, gs = null; | |
Ir(M.prototype, { | |
preventDefault: function() { | |
this.defaultPrevented = !0; | |
var t = this.nativeEvent; | |
t && (t.preventDefault ? t.preventDefault() : "unknown" != typeof t.returnValue && (t.return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment