Skip to content

Instantly share code, notes, and snippets.

@lmccart
Created May 9, 2019
Embed
What would you like to do?
p5.gif
/*! p5.js v0.8.0 May 07, 2019 */
! function(e) {
if ("object" == typeof exports && "undefined" != typeof module) module.exports = e();
else if ("function" == typeof define && define.amd) define([], e);
else {
("undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this).p5 = e()
}
}(function() {
return function o(a, s, h) {
function l(t, e) {
if (!s[t]) {
if (!a[t]) {
var r = "function" == typeof require && require;
if (!e && r) return r(t, !0);
if (u) return u(t, !0);
var i = new Error("Cannot find module '" + t + "'");
throw i.code = "MODULE_NOT_FOUND", i
}
var n = s[t] = {
exports: {}
};
a[t][0].call(n.exports, function(e) {
return l(a[t][1][e] || e)
}, n, n.exports, o, a, s, h)
}
return s[t].exports
}
for (var u = "function" == typeof require && require, e = 0; e < h.length; e++) l(h[e]);
return l
}({
1: [function(e, t, r) {
"use strict";
r.byteLength = function(e) {
var t = d(e),
r = t[0],
i = t[1];
return 3 * (r + i) / 4 - i
}, r.toByteArray = function(e) {
for (var t, r = d(e), i = r[0], n = r[1], o = new p((l = i, u = n, 3 * (l + u) / 4 - u)), a = 0, s = 0 < n ? i - 4 : i, h = 0; h < s; h += 4) t = c[e.charCodeAt(h)] << 18 | c[e.charCodeAt(h + 1)] << 12 | c[e.charCodeAt(h + 2)] << 6 | c[e.charCodeAt(h + 3)], o[a++] = t >> 16 & 255, o[a++] = t >> 8 & 255, o[a++] = 255 & t;
var l, u;
2 === n && (t = c[e.charCodeAt(h)] << 2 | c[e.charCodeAt(h + 1)] >> 4, o[a++] = 255 & t);
1 === n && (t = c[e.charCodeAt(h)] << 10 | c[e.charCodeAt(h + 1)] << 4 | c[e.charCodeAt(h + 2)] >> 2, o[a++] = t >> 8 & 255, o[a++] = 255 & t);
return o
}, r.fromByteArray = function(e) {
for (var t, r = e.length, i = r % 3, n = [], o = 0, a = r - i; o < a; o += 16383) n.push(h(e, o, a < o + 16383 ? a : o + 16383));
1 === i ? (t = e[r - 1], n.push(s[t >> 2] + s[t << 4 & 63] + "==")) : 2 === i && (t = (e[r - 2] << 8) + e[r - 1], n.push(s[t >> 10] + s[t >> 4 & 63] + s[t << 2 & 63] + "="));
return n.join("")
};
for (var s = [], c = [], p = "undefined" != typeof Uint8Array ? Uint8Array : Array, i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", n = 0, o = i.length; n < o; ++n) s[n] = i[n], c[i.charCodeAt(n)] = n;
function d(e) {
var t = e.length;
if (0 < t % 4) throw new Error("Invalid string. Length must be a multiple of 4");
var r = e.indexOf("=");
return -1 === r && (r = t), [r, r === t ? 0 : 4 - r % 4]
}
function h(e, t, r) {
for (var i, n, o = [], a = t; a < r; a += 3) i = (e[a] << 16 & 16711680) + (e[a + 1] << 8 & 65280) + (255 & e[a + 2]), o.push(s[(n = i) >> 18 & 63] + s[n >> 12 & 63] + s[n >> 6 & 63] + s[63 & n]);
return o.join("")
}
c["-".charCodeAt(0)] = 62, c["_".charCodeAt(0)] = 63
}, {}],
2: [function(e, t, r) {}, {}],
3: [function(e, t, r) {
"use strict";
var i = e("base64-js"),
o = e("ieee754");
r.Buffer = c, r.SlowBuffer = function(e) {
+e != e && (e = 0);
return c.alloc(+e)
}, r.INSPECT_MAX_BYTES = 50;
var n = 2147483647;
function a(e) {
if (n < e) throw new RangeError('The value "' + e + '" is invalid for option "size"');
var t = new Uint8Array(e);
return t.__proto__ = c.prototype, t
}
function c(e, t, r) {
if ("number" != typeof e) return s(e, t, r);
if ("string" == typeof t) throw new TypeError('The "string" argument must be of type string. Received type number');
return l(e)
}
function s(e, t, r) {
if ("string" == typeof e) return function(e, t) {
"string" == typeof t && "" !== t || (t = "utf8");
if (!c.isEncoding(t)) throw new TypeError("Unknown encoding: " + t);
var r = 0 | d(e, t),
i = a(r),
n = i.write(e, t);
n !== r && (i = i.slice(0, n));
return i
}(e, t);
if (ArrayBuffer.isView(e)) return u(e);
if (null == e) throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e);
if (O(e, ArrayBuffer) || e && O(e.buffer, ArrayBuffer)) return function(e, t, r) {
if (t < 0 || e.byteLength < t) throw new RangeError('"offset" is outside of buffer bounds');
if (e.byteLength < t + (r || 0)) throw new RangeError('"length" is outside of buffer bounds');
var i;
i = void 0 === t && void 0 === r ? new Uint8Array(e) : void 0 === r ? new Uint8Array(e, t) : new Uint8Array(e, t, r);
return i.__proto__ = c.prototype, i
}(e, t, r);
if ("number" == typeof e) throw new TypeError('The "value" argument must not be of type number. Received type number');
var i = e.valueOf && e.valueOf();
if (null != i && i !== e) return c.from(i, t, r);
var n = function(e) {
if (c.isBuffer(e)) {
var t = 0 | p(e.length),
r = a(t);
return 0 === r.length || e.copy(r, 0, 0, t), r
}
if (void 0 !== e.length) return "number" != typeof e.length || B(e.length) ? a(0) : u(e);
if ("Buffer" === e.type && Array.isArray(e.data)) return u(e.data)
}(e);
if (n) return n;
if ("undefined" != typeof Symbol && null != Symbol.toPrimitive && "function" == typeof e[Symbol.toPrimitive]) return c.from(e[Symbol.toPrimitive]("string"), t, r);
throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e)
}
function h(e) {
if ("number" != typeof e) throw new TypeError('"size" argument must be of type number');
if (e < 0) throw new RangeError('The value "' + e + '" is invalid for option "size"')
}
function l(e) {
return h(e), a(e < 0 ? 0 : 0 | p(e))
}
function u(e) {
for (var t = e.length < 0 ? 0 : 0 | p(e.length), r = a(t), i = 0; i < t; i += 1) r[i] = 255 & e[i];
return r
}
function p(e) {
if (n <= e) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + n.toString(16) + " bytes");
return 0 | e
}
function d(e, t) {
if (c.isBuffer(e)) return e.length;
if (ArrayBuffer.isView(e) || O(e, ArrayBuffer)) return e.byteLength;
if ("string" != typeof e) throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof e);
var r = e.length,
i = 2 < arguments.length && !0 === arguments[2];
if (!i && 0 === r) return 0;
for (var n = !1;;) switch (t) {
case "ascii":
case "latin1":
case "binary":
return r;
case "utf8":
case "utf-8":
return k(e).length;
case "ucs2":
case "ucs-2":
case "utf16le":
case "utf-16le":
return 2 * r;
case "hex":
return r >>> 1;
case "base64":
return I(e).length;
default:
if (n) return i ? -1 : k(e).length;
t = ("" + t).toLowerCase(), n = !0
}
}
function f(e, t, r) {
var i = e[t];
e[t] = e[r], e[r] = i
}
function m(e, t, r, i, n) {
if (0 === e.length) return -1;
if ("string" == typeof r ? (i = r, r = 0) : 2147483647 < r ? r = 2147483647 : r < -2147483648 && (r = -2147483648), B(r = +r) && (r = n ? 0 : e.length - 1), r < 0 && (r = e.length + r), r >= e.length) {
if (n) return -1;
r = e.length - 1
} else if (r < 0) {
if (!n) return -1;
r = 0
}
if ("string" == typeof t && (t = c.from(t, i)), c.isBuffer(t)) return 0 === t.length ? -1 : v(e, t, r, i, n);
if ("number" == typeof t) return t &= 255, "function" == typeof Uint8Array.prototype.indexOf ? n ? Uint8Array.prototype.indexOf.call(e, t, r) : Uint8Array.prototype.lastIndexOf.call(e, t, r) : v(e, [t], r, i, n);
throw new TypeError("val must be string, number or Buffer")
}
function v(e, t, r, i, n) {
var o, a = 1,
s = e.length,
h = t.length;
if (void 0 !== i && ("ucs2" === (i = String(i).toLowerCase()) || "ucs-2" === i || "utf16le" === i || "utf-16le" === i)) {
if (e.length < 2 || t.length < 2) return -1;
s /= a = 2, h /= 2, r /= 2
}
function l(e, t) {
return 1 === a ? e[t] : e.readUInt16BE(t * a)
}
if (n) {
var u = -1;
for (o = r; o < s; o++)
if (l(e, o) === l(t, -1 === u ? 0 : o - u)) {
if (-1 === u && (u = o), o - u + 1 === h) return u * a
} else -1 !== u && (o -= o - u), u = -1
} else
for (s < r + h && (r = s - h), o = r; 0 <= o; o--) {
for (var c = !0, p = 0; p < h; p++)
if (l(e, o + p) !== l(t, p)) {
c = !1;
break
}
if (c) return o
}
return -1
}
function g(e, t, r, i) {
r = Number(r) || 0;
var n = e.length - r;
i ? n < (i = Number(i)) && (i = n) : i = n;
var o = t.length;
o / 2 < i && (i = o / 2);
for (var a = 0; a < i; ++a) {
var s = parseInt(t.substr(2 * a, 2), 16);
if (B(s)) return a;
e[r + a] = s
}
return a
}
function y(e, t, r, i) {
return U(function(e) {
for (var t = [], r = 0; r < e.length; ++r) t.push(255 & e.charCodeAt(r));
return t
}(t), e, r, i)
}
function b(e, t, r) {
return 0 === t && r === e.length ? i.fromByteArray(e) : i.fromByteArray(e.slice(t, r))
}
function _(e, t, r) {
r = Math.min(e.length, r);
for (var i = [], n = t; n < r;) {
var o, a, s, h, l = e[n],
u = null,
c = 239 < l ? 4 : 223 < l ? 3 : 191 < l ? 2 : 1;
if (n + c <= r) switch (c) {
case 1:
l < 128 && (u = l);
break;
case 2:
128 == (192 & (o = e[n + 1])) && 127 < (h = (31 & l) << 6 | 63 & o) && (u = h);
break;
case 3:
o = e[n + 1], a = e[n + 2], 128 == (192 & o) && 128 == (192 & a) && 2047 < (h = (15 & l) << 12 | (63 & o) << 6 | 63 & a) && (h < 55296 || 57343 < h) && (u = h);
break;
case 4:
o = e[n + 1], a = e[n + 2], s = e[n + 3], 128 == (192 & o) && 128 == (192 & a) && 128 == (192 & s) && 65535 < (h = (15 & l) << 18 | (63 & o) << 12 | (63 & a) << 6 | 63 & s) && h < 1114112 && (u = h)
}
null === u ? (u = 65533, c = 1) : 65535 < u && (u -= 65536, i.push(u >>> 10 & 1023 | 55296), u = 56320 | 1023 & u), i.push(u), n += c
}
return function(e) {
var t = e.length;
if (t <= x) return String.fromCharCode.apply(String, e);
var r = "",
i = 0;
for (; i < t;) r += String.fromCharCode.apply(String, e.slice(i, i += x));
return r
}(i)
}
r.kMaxLength = n, (c.TYPED_ARRAY_SUPPORT = function() {
try {
var e = new Uint8Array(1);
return e.__proto__ = {
__proto__: Uint8Array.prototype,
foo: function() {
return 42
}
}, 42 === e.foo()
} catch (e) {
return !1
}
}()) || "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."), Object.defineProperty(c.prototype, "parent", {
enumerable: !0,
get: function() {
if (c.isBuffer(this)) return this.buffer
}
}), Object.defineProperty(c.prototype, "offset", {
enumerable: !0,
get: function() {
if (c.isBuffer(this)) return this.byteOffset
}
}), "undefined" != typeof Symbol && null != Symbol.species && c[Symbol.species] === c && Object.defineProperty(c, Symbol.species, {
value: null,
configurable: !0,
enumerable: !1,
writable: !1
}), c.poolSize = 8192, c.from = function(e, t, r) {
return s(e, t, r)
}, c.prototype.__proto__ = Uint8Array.prototype, c.__proto__ = Uint8Array, c.alloc = function(e, t, r) {
return n = t, o = r, h(i = e), i <= 0 ? a(i) : void 0 !== n ? "string" == typeof o ? a(i).fill(n, o) : a(i).fill(n) : a(i);
var i, n, o
}, c.allocUnsafe = function(e) {
return l(e)
}, c.allocUnsafeSlow = function(e) {
return l(e)
}, c.isBuffer = function(e) {
return null != e && !0 === e._isBuffer && e !== c.prototype
}, c.compare = function(e, t) {
if (O(e, Uint8Array) && (e = c.from(e, e.offset, e.byteLength)), O(t, Uint8Array) && (t = c.from(t, t.offset, t.byteLength)), !c.isBuffer(e) || !c.isBuffer(t)) throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');
if (e === t) return 0;
for (var r = e.length, i = t.length, n = 0, o = Math.min(r, i); n < o; ++n)
if (e[n] !== t[n]) {
r = e[n], i = t[n];
break
}
return r < i ? -1 : i < r ? 1 : 0
}, c.isEncoding = function(e) {
switch (String(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
}
}, c.concat = function(e, t) {
if (!Array.isArray(e)) throw new TypeError('"list" argument must be an Array of Buffers');
if (0 === e.length) return c.alloc(0);
var r;
if (void 0 === t)
for (r = t = 0; r < e.length; ++r) t += e[r].length;
var i = c.allocUnsafe(t),
n = 0;
for (r = 0; r < e.length; ++r) {
var o = e[r];
if (O(o, Uint8Array) && (o = c.from(o)), !c.isBuffer(o)) throw new TypeError('"list" argument must be an Array of Buffers');
o.copy(i, n), n += o.length
}
return i
}, c.byteLength = d, c.prototype._isBuffer = !0, c.prototype.swap16 = function() {
var e = this.length;
if (e % 2 != 0) throw new RangeError("Buffer size must be a multiple of 16-bits");
for (var t = 0; t < e; t += 2) f(this, t, t + 1);
return this
}, c.prototype.swap32 = function() {
var e = this.length;
if (e % 4 != 0) throw new RangeError("Buffer size must be a multiple of 32-bits");
for (var t = 0; t < e; t += 4) f(this, t, t + 3), f(this, t + 1, t + 2);
return this
}, c.prototype.swap64 = function() {
var e = this.length;
if (e % 8 != 0) throw new RangeError("Buffer size must be a multiple of 64-bits");
for (var t = 0; t < e; t += 8) f(this, t, t + 7), f(this, t + 1, t + 6), f(this, t + 2, t + 5), f(this, t + 3, t + 4);
return this
}, c.prototype.toLocaleString = c.prototype.toString = function() {
var e = this.length;
return 0 === e ? "" : 0 === arguments.length ? _(this, 0, e) : function(e, t, r) {
var i = !1;
if ((void 0 === t || t < 0) && (t = 0), t > this.length) return "";
if ((void 0 === r || r > this.length) && (r = this.length), r <= 0) return "";
if ((r >>>= 0) <= (t >>>= 0)) return "";
for (e || (e = "utf8");;) switch (e) {
case "hex":
return T(this, t, r);
case "utf8":
case "utf-8":
return _(this, t, r);
case "ascii":
return w(this, t, r);
case "latin1":
case "binary":
return S(this, t, r);
case "base64":
return b(this, t, r);
case "ucs2":
case "ucs-2":
case "utf16le":
case "utf-16le":
return M(this, t, r);
default:
if (i) throw new TypeError("Unknown encoding: " + e);
e = (e + "").toLowerCase(), i = !0
}
}.apply(this, arguments)
}, c.prototype.equals = function(e) {
if (!c.isBuffer(e)) throw new TypeError("Argument must be a Buffer");
return this === e || 0 === c.compare(this, e)
}, c.prototype.inspect = function() {
var e = "",
t = r.INSPECT_MAX_BYTES;
return e = this.toString("hex", 0, t).replace(/(.{2})/g, "$1 ").trim(), this.length > t && (e += " ... "), "<Buffer " + e + ">"
}, c.prototype.compare = function(e, t, r, i, n) {
if (O(e, Uint8Array) && (e = c.from(e, e.offset, e.byteLength)), !c.isBuffer(e)) throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof e);
if (void 0 === t && (t = 0), void 0 === r && (r = e ? e.length : 0), void 0 === i && (i = 0), void 0 === n && (n = this.length), t < 0 || r > e.length || i < 0 || n > this.length) throw new RangeError("out of range index");
if (n <= i && r <= t) return 0;
if (n <= i) return -1;
if (r <= t) return 1;
if (this === e) return 0;
for (var o = (n >>>= 0) - (i >>>= 0), a = (r >>>= 0) - (t >>>= 0), s = Math.min(o, a), h = this.slice(i, n), l = e.slice(t, r), u = 0; u < s; ++u)
if (h[u] !== l[u]) {
o = h[u], a = l[u];
break
}
return o < a ? -1 : a < o ? 1 : 0
}, c.prototype.includes = function(e, t, r) {
return -1 !== this.indexOf(e, t, r)
}, c.prototype.indexOf = function(e, t, r) {
return m(this, e, t, r, !0)
}, c.prototype.lastIndexOf = function(e, t, r) {
return m(this, e, t, r, !1)
}, c.prototype.write = function(e, t, r, i) {
if (void 0 === t) i = "utf8", r = this.length, t = 0;
else if (void 0 === r && "string" == typeof t) i = t, r = this.length, t = 0;
else {
if (!isFinite(t)) throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
t >>>= 0, isFinite(r) ? (r >>>= 0, void 0 === i && (i = "utf8")) : (i = r, r = void 0)
}
var n = this.length - t;
if ((void 0 === r || n < r) && (r = n), 0 < e.length && (r < 0 || t < 0) || t > this.length) throw new RangeError("Attempt to write outside buffer bounds");
i || (i = "utf8");
for (var o, a, s, h, l, u, c, p, d, f = !1;;) switch (i) {
case "hex":
return g(this, e, t, r);
case "utf8":
case "utf-8":
return p = t, d = r, U(k(e, (c = this).length - p), c, p, d);
case "ascii":
return y(this, e, t, r);
case "latin1":
case "binary":
return y(this, e, t, r);
case "base64":
return h = this, l = t, u = r, U(I(e), h, l, u);
case "ucs2":
case "ucs-2":
case "utf16le":
case "utf-16le":
return a = t, s = r, U(function(e, t) {
for (var r, i, n, o = [], a = 0; a < e.length && !((t -= 2) < 0); ++a) r = e.charCodeAt(a), i = r >> 8, n = r % 256, o.push(n), o.push(i);
return o
}(e, (o = this).length - a), o, a, s);
default:
if (f) throw new TypeError("Unknown encoding: " + i);
i = ("" + i).toLowerCase(), f = !0
}
}, c.prototype.toJSON = function() {
return {
type: "Buffer",
data: Array.prototype.slice.call(this._arr || this, 0)
}
};
var x = 4096;
function w(e, t, r) {
var i = "";
r = Math.min(e.length, r);
for (var n = t; n < r; ++n) i += String.fromCharCode(127 & e[n]);
return i
}
function S(e, t, r) {
var i = "";
r = Math.min(e.length, r);
for (var n = t; n < r; ++n) i += String.fromCharCode(e[n]);
return i
}
function T(e, t, r) {
var i = e.length;
(!t || t < 0) && (t = 0), (!r || r < 0 || i < r) && (r = i);
for (var n = "", o = t; o < r; ++o) n += A(e[o]);
return n
}
function M(e, t, r) {
for (var i = e.slice(t, r), n = "", o = 0; o < i.length; o += 2) n += String.fromCharCode(i[o] + 256 * i[o + 1]);
return n
}
function E(e, t, r) {
if (e % 1 != 0 || e < 0) throw new RangeError("offset is not uint");
if (r < e + t) throw new RangeError("Trying to access beyond buffer length")
}
function C(e, t, r, i, n, o) {
if (!c.isBuffer(e)) throw new TypeError('"buffer" argument must be a Buffer instance');
if (n < t || t < o) throw new RangeError('"value" argument is out of bounds');
if (r + i > e.length) throw new RangeError("Index out of range")
}
function R(e, t, r, i, n, o) {
if (r + i > e.length) throw new RangeError("Index out of range");
if (r < 0) throw new RangeError("Index out of range")
}
function L(e, t, r, i, n) {
return t = +t, r >>>= 0, n || R(e, 0, r, 4), o.write(e, t, r, i, 23, 4), r + 4
}
function P(e, t, r, i, n) {
return t = +t, r >>>= 0, n || R(e, 0, r, 8), o.write(e, t, r, i, 52, 8), r + 8
}
c.prototype.slice = function(e, t) {
var r = this.length;
(e = ~~e) < 0 ? (e += r) < 0 && (e = 0) : r < e && (e = r), (t = void 0 === t ? r : ~~t) < 0 ? (t += r) < 0 && (t = 0) : r < t && (t = r), t < e && (t = e);
var i = this.subarray(e, t);
return i.__proto__ = c.prototype, i
}, c.prototype.readUIntLE = function(e, t, r) {
e >>>= 0, t >>>= 0, r || E(e, t, this.length);
for (var i = this[e], n = 1, o = 0; ++o < t && (n *= 256);) i += this[e + o] * n;
return i
}, c.prototype.readUIntBE = function(e, t, r) {
e >>>= 0, t >>>= 0, r || E(e, t, this.length);
for (var i = this[e + --t], n = 1; 0 < t && (n *= 256);) i += this[e + --t] * n;
return i
}, c.prototype.readUInt8 = function(e, t) {
return e >>>= 0, t || E(e, 1, this.length), this[e]
}, c.prototype.readUInt16LE = function(e, t) {
return e >>>= 0, t || E(e, 2, this.length), this[e] | this[e + 1] << 8
}, c.prototype.readUInt16BE = function(e, t) {
return e >>>= 0, t || E(e, 2, this.length), this[e] << 8 | this[e + 1]
}, c.prototype.readUInt32LE = function(e, t) {
return e >>>= 0, t || E(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + 16777216 * this[e + 3]
}, c.prototype.readUInt32BE = function(e, t) {
return e >>>= 0, t || E(e, 4, this.length), 16777216 * this[e] + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3])
}, c.prototype.readIntLE = function(e, t, r) {
e >>>= 0, t >>>= 0, r || E(e, t, this.length);
for (var i = this[e], n = 1, o = 0; ++o < t && (n *= 256);) i += this[e + o] * n;
return (n *= 128) <= i && (i -= Math.pow(2, 8 * t)), i
}, c.prototype.readIntBE = function(e, t, r) {
e >>>= 0, t >>>= 0, r || E(e, t, this.length);
for (var i = t, n = 1, o = this[e + --i]; 0 < i && (n *= 256);) o += this[e + --i] * n;
return (n *= 128) <= o && (o -= Math.pow(2, 8 * t)), o
}, c.prototype.readInt8 = function(e, t) {
return e >>>= 0, t || E(e, 1, this.length), 128 & this[e] ? -1 * (255 - this[e] + 1) : this[e]
}, c.prototype.readInt16LE = function(e, t) {
e >>>= 0, t || E(e, 2, this.length);
var r = this[e] | this[e + 1] << 8;
return 32768 & r ? 4294901760 | r : r
}, c.prototype.readInt16BE = function(e, t) {
e >>>= 0, t || E(e, 2, this.length);
var r = this[e + 1] | this[e] << 8;
return 32768 & r ? 4294901760 | r : r
}, c.prototype.readInt32LE = function(e, t) {
return e >>>= 0, t || E(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24
}, c.prototype.readInt32BE = function(e, t) {
return e >>>= 0, t || E(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]
}, c.prototype.readFloatLE = function(e, t) {
return e >>>= 0, t || E(e, 4, this.length), o.read(this, e, !0, 23, 4)
}, c.prototype.readFloatBE = function(e, t) {
return e >>>= 0, t || E(e, 4, this.length), o.read(this, e, !1, 23, 4)
}, c.prototype.readDoubleLE = function(e, t) {
return e >>>= 0, t || E(e, 8, this.length), o.read(this, e, !0, 52, 8)
}, c.prototype.readDoubleBE = function(e, t) {
return e >>>= 0, t || E(e, 8, this.length), o.read(this, e, !1, 52, 8)
}, c.prototype.writeUIntLE = function(e, t, r, i) {
(e = +e, t >>>= 0, r >>>= 0, i) || C(this, e, t, r, Math.pow(2, 8 * r) - 1, 0);
var n = 1,
o = 0;
for (this[t] = 255 & e; ++o < r && (n *= 256);) this[t + o] = e / n & 255;
return t + r
}, c.prototype.writeUIntBE = function(e, t, r, i) {
(e = +e, t >>>= 0, r >>>= 0, i) || C(this, e, t, r, Math.pow(2, 8 * r) - 1, 0);
var n = r - 1,
o = 1;
for (this[t + n] = 255 & e; 0 <= --n && (o *= 256);) this[t + n] = e / o & 255;
return t + r
}, c.prototype.writeUInt8 = function(e, t, r) {
return e = +e, t >>>= 0, r || C(this, e, t, 1, 255, 0), this[t] = 255 & e, t + 1
}, c.prototype.writeUInt16LE = function(e, t, r) {
return e = +e, t >>>= 0, r || C(this, e, t, 2, 65535, 0), this[t] = 255 & e, this[t + 1] = e >>> 8, t + 2
}, c.prototype.writeUInt16BE = function(e, t, r) {
return e = +e, t >>>= 0, r || C(this, e, t, 2, 65535, 0), this[t] = e >>> 8, this[t + 1] = 255 & e, t + 2
}, c.prototype.writeUInt32LE = function(e, t, r) {
return e = +e, t >>>= 0, r || C(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
}, c.prototype.writeUInt32BE = function(e, t, r) {
return e = +e, t >>>= 0, r || C(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
}, c.prototype.writeIntLE = function(e, t, r, i) {
if (e = +e, t >>>= 0, !i) {
var n = Math.pow(2, 8 * r - 1);
C(this, e, t, r, n - 1, -n)
}
var o = 0,
a = 1,
s = 0;
for (this[t] = 255 & e; ++o < r && (a *= 256);) e < 0 && 0 === s && 0 !== this[t + o - 1] && (s = 1), this[t + o] = (e / a >> 0) - s & 255;
return t + r
}, c.prototype.writeIntBE = function(e, t, r, i) {
if (e = +e, t >>>= 0, !i) {
var n = Math.pow(2, 8 * r - 1);
C(this, e, t, r, n - 1, -n)
}
var o = r - 1,
a = 1,
s = 0;
for (this[t + o] = 255 & e; 0 <= --o && (a *= 256);) e < 0 && 0 === s && 0 !== this[t + o + 1] && (s = 1), this[t + o] = (e / a >> 0) - s & 255;
return t + r
}, c.prototype.writeInt8 = function(e, t, r) {
return e = +e, t >>>= 0, r || C(this, e, t, 1, 127, -128), e < 0 && (e = 255 + e + 1), this[t] = 255 & e, t + 1
}, c.prototype.writeInt16LE = function(e, t, r) {
return e = +e, t >>>= 0, r || C(this, e, t, 2, 32767, -32768), this[t] = 255 & e, this[t + 1] = e >>> 8, t + 2
}, c.prototype.writeInt16BE = function(e, t, r) {
return e = +e, t >>>= 0, r || C(this, e, t, 2, 32767, -32768), this[t] = e >>> 8, this[t + 1] = 255 & e, t + 2
}, c.prototype.writeInt32LE = function(e, t, r) {
return e = +e, t >>>= 0, r || C(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
}, c.prototype.writeInt32BE = function(e, t, r) {
return e = +e, t >>>= 0, r || C(this, e, t, 4, 2147483647, -2147483648), e < 0 && (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
}, c.prototype.writeFloatLE = function(e, t, r) {
return L(this, e, t, !0, r)
}, c.prototype.writeFloatBE = function(e, t, r) {
return L(this, e, t, !1, r)
}, c.prototype.writeDoubleLE = function(e, t, r) {
return P(this, e, t, !0, r)
}, c.prototype.writeDoubleBE = function(e, t, r) {
return P(this, e, t, !1, r)
}, c.prototype.copy = function(e, t, r, i) {
if (!c.isBuffer(e)) throw new TypeError("argument should be a Buffer");
if (r || (r = 0), i || 0 === i || (i = this.length), t >= e.length && (t = e.length), t || (t = 0), 0 < i && i < r && (i = r), i === r) return 0;
if (0 === e.length || 0 === this.length) return 0;
if (t < 0) throw new RangeError("targetStart out of bounds");
if (r < 0 || r >= this.length) throw new RangeError("Index out of range");
if (i < 0) throw new RangeError("sourceEnd out of bounds");
i > this.length && (i = this.length), e.length - t < i - r && (i = e.length - t + r);
var n = i - r;
if (this === e && "function" == typeof Uint8Array.prototype.copyWithin) this.copyWithin(t, r, i);
else if (this === e && r < t && t < i)
for (var o = n - 1; 0 <= o; --o) e[o + t] = this[o + r];
else Uint8Array.prototype.set.call(e, this.subarray(r, i), t);
return n
}, c.prototype.fill = function(e, t, r, i) {
if ("string" == typeof e) {
if ("string" == typeof t ? (i = t, t = 0, r = this.length) : "string" == typeof r && (i = r, r = this.length), void 0 !== i && "string" != typeof i) throw new TypeError("encoding must be a string");
if ("string" == typeof i && !c.isEncoding(i)) throw new TypeError("Unknown encoding: " + i);
if (1 === e.length) {
var n = e.charCodeAt(0);
("utf8" === i && n < 128 || "latin1" === i) && (e = n)
}
} else "number" == typeof e && (e &= 255);
if (t < 0 || this.length < t || this.length < r) throw new RangeError("Out of range index");
if (r <= t) return this;
var o;
if (t >>>= 0, r = void 0 === r ? this.length : r >>> 0, e || (e = 0), "number" == typeof e)
for (o = t; o < r; ++o) this[o] = e;
else {
var a = c.isBuffer(e) ? e : c.from(e, i),
s = a.length;
if (0 === s) throw new TypeError('The value "' + e + '" is invalid for argument "value"');
for (o = 0; o < r - t; ++o) this[o + t] = a[o % s]
}
return this
};
var D = /[^+/0-9A-Za-z-_]/g;
function A(e) {
return e < 16 ? "0" + e.toString(16) : e.toString(16)
}
function k(e, t) {
var r;
t = t || 1 / 0;
for (var i = e.length, n = null, o = [], a = 0; a < i; ++a) {
if (55295 < (r = e.charCodeAt(a)) && r < 57344) {
if (!n) {
if (56319 < r) {
-1 < (t -= 3) && o.push(239, 191, 189);
continue
}
if (a + 1 === i) {
-1 < (t -= 3) && o.push(239, 191, 189);
continue
}
n = r;
continue
}
if (r < 56320) {
-1 < (t -= 3) && o.push(239, 191, 189), n = r;
continue
}
r = 65536 + (n - 55296 << 10 | r - 56320)
} else n && -1 < (t -= 3) && o.push(239, 191, 189);
if (n = null, r < 128) {
if ((t -= 1) < 0) break;
o.push(r)
} else if (r < 2048) {
if ((t -= 2) < 0) break;
o.push(r >> 6 | 192, 63 & r | 128)
} else if (r < 65536) {
if ((t -= 3) < 0) break;
o.push(r >> 12 | 224, r >> 6 & 63 | 128, 63 & r | 128)
} else {
if (!(r < 1114112)) throw new Error("Invalid code point");
if ((t -= 4) < 0) break;
o.push(r >> 18 | 240, r >> 12 & 63 | 128, r >> 6 & 63 | 128, 63 & r | 128)
}
}
return o
}
function I(e) {
return i.toByteArray(function(e) {
if ((e = (e = e.split("=")[0]).trim().replace(D, "")).length < 2) return "";
for (; e.length % 4 != 0;) e += "=";
return e
}(e))
}
function U(e, t, r, i) {
for (var n = 0; n < i && !(n + r >= t.length || n >= e.length); ++n) t[n + r] = e[n];
return n
}
function O(e, t) {
return e instanceof t || null != e && null != e.constructor && null != e.constructor.name && e.constructor.name === t.name
}
function B(e) {
return e != e
}
}, {
"base64-js": 1,
ieee754: 7
}],
4: [function(z, r, i) {
(function(G, V) {
var e, t;
e = this, t = function() {
"use strict";
function l(e) {
return "function" == typeof e
}
var r = Array.isArray ? Array.isArray : function(e) {
return "[object Array]" === Object.prototype.toString.call(e)
},
i = 0,
t = void 0,
n = void 0,
s = function(e, t) {
p[i] = e, p[i + 1] = t, 2 === (i += 2) && (n ? n(d) : y())
};
var e = "undefined" != typeof window ? window : void 0,
o = e || {},
a = o.MutationObserver || o.WebKitMutationObserver,
h = "undefined" == typeof self && void 0 !== G && "[object process]" === {}.toString.call(G),
u = "undefined" != typeof Uint8ClampedArray && "undefined" != typeof importScripts && "undefined" != typeof MessageChannel;
function c() {
var e = setTimeout;
return function() {
return e(d, 1)
}
}
var p = new Array(1e3);
function d() {
for (var e = 0; e < i; e += 2) {
(0, p[e])(p[e + 1]), p[e] = void 0, p[e + 1] = void 0
}
i = 0
}
var f, m, v, g, y = void 0;
function b(e, t) {
var r = this,
i = new this.constructor(w);
void 0 === i[x] && B(i);
var n = r._state;
if (n) {
var o = arguments[n - 1];
s(function() {
return U(n, i, o, r._result)
})
} else k(r, i, e, t);
return i
}
function _(e) {
if (e && "object" == typeof e && e.constructor === this) return e;
var t = new this(w);
return L(t, e), t
}
y = h ? function() {
return G.nextTick(d)
} : a ? (m = 0, v = new a(d), g = document.createTextNode(""), v.observe(g, {
characterData: !0
}), function() {
g.data = m = ++m % 2
}) : u ? ((f = new MessageChannel).port1.onmessage = d, function() {
return f.port2.postMessage(0)
}) : void 0 === e && "function" == typeof z ? function() {
try {
var e = Function("return this")().require("vertx");
return void 0 !== (t = e.runOnLoop || e.runOnContext) ? function() {
t(d)
} : c()
} catch (e) {
return c()
}
}() : c();
var x = Math.random().toString(36).substring(2);
function w() {}
var S = void 0,
T = 1,
M = 2,
E = {
error: null
};
function C(e) {
try {
return e.then
} catch (e) {
return E.error = e, E
}
}
function R(e, t, r) {
var i, n, o, a;
t.constructor === e.constructor && r === b && t.constructor.resolve === _ ? (o = e, (a = t)._state === T ? D(o, a._result) : a._state === M ? A(o, a._result) : k(a, void 0, function(e) {
return L(o, e)
}, function(e) {
return A(o, e)
})) : r === E ? (A(e, E.error), E.error = null) : void 0 === r ? D(e, t) : l(r) ? (i = t, n = r, s(function(t) {
var r = !1,
e = function(e, t, r, i) {
try {
e.call(t, r, i)
} catch (e) {
return e
}
}(n, i, function(e) {
r || (r = !0, i !== e ? L(t, e) : D(t, e))
}, function(e) {
r || (r = !0, A(t, e))
}, t._label);
!r && e && (r = !0, A(t, e))
}, e)) : D(e, t)
}
function L(e, t) {
var r, i;
e === t ? A(e, new TypeError("You cannot resolve a promise with itself")) : (i = typeof(r = t), null === r || "object" !== i && "function" !== i ? D(e, t) : R(e, t, C(t)))
}
function P(e) {
e._onerror && e._onerror(e._result), I(e)
}
function D(e, t) {
e._state === S && (e._result = t, e._state = T, 0 !== e._subscribers.length && s(I, e))
}
function A(e, t) {
e._state === S && (e._state = M, e._result = t, s(P, e))
}
function k(e, t, r, i) {
var n = e._subscribers,
o = n.length;
e._onerror = null, n[o] = t, n[o + T] = r, n[o + M] = i, 0 === o && e._state && s(I, e)
}
function I(e) {
var t = e._subscribers,
r = e._state;
if (0 !== t.length) {
for (var i = void 0, n = void 0, o = e._result, a = 0; a < t.length; a += 3) i = t[a], n = t[a + r], i ? U(r, i, n, o) : n(o);
e._subscribers.length = 0
}
}
function U(e, t, r, i) {
var n = l(r),
o = void 0,
a = void 0,
s = void 0,
h = void 0;
if (n) {
if ((o = function(e, t) {
try {
return e(t)
} catch (e) {
return E.error = e, E
}
}(r, i)) === E ? (h = !0, a = o.error, o.error = null) : s = !0, t === o) return void A(t, new TypeError("A promises callback cannot return that same promise."))
} else o = i, s = !0;
t._state !== S || (n && s ? L(t, o) : h ? A(t, a) : e === T ? D(t, o) : e === M && A(t, o))
}
var O = 0;
function B(e) {
e[x] = O++, e._state = void 0, e._result = void 0, e._subscribers = []
}
var N = function() {
function e(e, t) {
this._instanceConstructor = e, this.promise = new e(w), this.promise[x] || B(this.promise), r(t) ? (this.length = t.length, this._remaining = t.length, this._result = new Array(this.length), 0 === this.length ? D(this.promise, this._result) : (this.length = this.length || 0, this._enumerate(t), 0 === this._remaining && D(this.promise, this._result))) : A(this.promise, new Error("Array Methods must be provided an Array"))
}
return e.prototype._enumerate = function(e) {
for (var t = 0; this._state === S && t < e.length; t++) this._eachEntry(e[t], t)
}, e.prototype._eachEntry = function(t, e) {
var r = this._instanceConstructor,
i = r.resolve;
if (i === _) {
var n = C(t);
if (n === b && t._state !== S) this._settledAt(t._state, e, t._result);
else if ("function" != typeof n) this._remaining--, this._result[e] = t;
else if (r === F) {
var o = new r(w);
R(o, t, n), this._willSettleAt(o, e)
} else this._willSettleAt(new r(function(e) {
return e(t)
}), e)
} else this._willSettleAt(i(t), e)
}, e.prototype._settledAt = function(e, t, r) {
var i = this.promise;
i._state === S && (this._remaining--, e === M ? A(i, r) : this._result[t] = r), 0 === this._remaining && D(i, this._result)
}, e.prototype._willSettleAt = function(e, t) {
var r = this;
k(e, void 0, function(e) {
return r._settledAt(T, t, e)
}, function(e) {
return r._settledAt(M, t, e)
})
}, e
}();
var F = function() {
function t(e) {
this[x] = O++, this._result = this._state = void 0, this._subscribers = [], w !== e && ("function" != typeof e && function() {
throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")
}(), this instanceof t ? function(t, e) {
try {
e(function(e) {
L(t, e)
}, function(e) {
A(t, e)
})
} catch (e) {
A(t, e)
}
}(this, e) : function() {
throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")
}())
}
return t.prototype.catch = function(e) {
return this.then(null, e)
}, t.prototype.finally = function(t) {
var r = this.constructor;
return l(t) ? this.then(function(e) {
return r.resolve(t()).then(function() {
return e
})
}, function(e) {
return r.resolve(t()).then(function() {
throw e
})
}) : this.then(t, t)
}, t
}();
return F.prototype.then = b, F.all = function(e) {
return new N(this, e).promise
}, F.race = function(n) {
var o = this;
return r(n) ? new o(function(e, t) {
for (var r = n.length, i = 0; i < r; i++) o.resolve(n[i]).then(e, t)
}) : new o(function(e, t) {
return t(new TypeError("You must pass an array to race."))
})
}, F.resolve = _, F.reject = function(e) {
var t = new this(w);
return A(t, e), t
}, F._setScheduler = function(e) {
n = e
}, F._setAsap = function(e) {
s = e
}, F._asap = s, F.polyfill = function() {
var e = void 0;
if (void 0 !== V) e = V;
else if ("undefined" != typeof self) e = self;
else try {
e = Function("return this")()
} catch (e) {
throw new Error("polyfill failed because global object is unavailable in this environment")
}
var t = e.Promise;
if (t) {
var r = null;
try {
r = Object.prototype.toString.call(t.resolve())
} catch (e) {}
if ("[object Promise]" === r && !t.cast) return
}
e.Promise = F
}, F.Promise = F
}, "object" == typeof i && void 0 !== r ? r.exports = t() : e.ES6Promise = t()
}).call(this, z("_process"), "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
}, {
_process: 11
}],
5: [function(e, i, n) {
! function(e, t) {
if (void 0 !== n && void 0 !== i) t(n, i);
else {
var r = {
exports: {}
};
t(r.exports, r), e.fetchJsonp = r.exports
}
}(this, function(e, t) {
"use strict";
var r = 5e3,
i = "callback";
function c(t) {
try {
delete window[t]
} catch (e) {
window[t] = void 0
}
}
function p(e) {
var t = document.getElementById(e);
t && document.getElementsByTagName("head")[0].removeChild(t)
}
t.exports = function(o) {
var a = arguments.length <= 1 || void 0 === arguments[1] ? {} : arguments[1],
s = o,
h = a.timeout || r,
l = a.jsonpCallback || i,
u = void 0;
return new Promise(function(t, e) {
var r = a.jsonpCallbackFunction || "jsonp_" + Date.now() + "_" + Math.ceil(1e5 * Math.random()),
i = l + "_" + r;
window[r] = function(e) {
t({
ok: !0,
json: function() {
return Promise.resolve(e)
}
}), u && clearTimeout(u), p(i), c(r)
}, s += -1 === s.indexOf("?") ? "?" : "&";
var n = document.createElement("script");
n.setAttribute("src", "" + s + l + "=" + r), a.charset && n.setAttribute("charset", a.charset), n.id = i, document.getElementsByTagName("head")[0].appendChild(n), u = setTimeout(function() {
e(new Error("JSONP request to " + o + " timed out")), c(r), p(i), window[r] = function() {
c(r)
}
}, h), n.onerror = function() {
e(new Error("JSONP request to " + o + " failed")), c(r), p(i), u && clearTimeout(u)
}
})
}
})
}, {}],
6: [function(e, t, r) {
var i = i || function(s) {
"use strict";
if (!(void 0 === s || "undefined" != typeof navigator && /MSIE [1-9]\./.test(navigator.userAgent))) {
var e = s.document,
h = function() {
return s.URL || s.webkitURL || s
},
l = e.createElementNS("http://www.w3.org/1999/xhtml", "a"),
u = "download" in l,
c = /constructor/i.test(s.HTMLElement) || s.safari,
p = /CriOS\/[\d]+/.test(navigator.userAgent),
d = function(e) {
(s.setImmediate || s.setTimeout)(function() {
throw e
}, 0)
},
f = function(e) {
setTimeout(function() {
"string" == typeof e ? h().revokeObjectURL(e) : e.remove()
}, 4e4)
},
m = function(e) {
return /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob([String.fromCharCode(65279), e], {
type: e.type
}) : e
},
i = function(e, r, t) {
t || (e = m(e));
var i, n = this,
o = "application/octet-stream" === e.type,
a = function() {
! function(e, t, r) {
for (var i = (t = [].concat(t)).length; i--;) {
var n = e["on" + t[i]];
if ("function" == typeof n) try {
n.call(e, r || e)
} catch (e) {
d(e)
}
}
}(n, "writestart progress write writeend".split(" "))
};
if (n.readyState = n.INIT, u) return i = h().createObjectURL(e), void setTimeout(function() {
var e, t;
l.href = i, l.download = r, e = l, t = new MouseEvent("click"), e.dispatchEvent(t), a(), f(i), n.readyState = n.DONE
});
! function() {
if ((p || o && c) && s.FileReader) {
var t = new FileReader;
return t.onloadend = function() {
var e = p ? t.result : t.result.replace(/^data:[^;]*;/, "data:attachment/file;");
s.open(e, "_blank") || (s.location.href = e), e = void 0, n.readyState = n.DONE, a()
}, t.readAsDataURL(e), n.readyState = n.INIT
}
i || (i = h().createObjectURL(e)), o ? s.location.href = i : s.open(i, "_blank") || (s.location.href = i);
n.readyState = n.DONE, a(), f(i)
}()
},
t = i.prototype;
return "undefined" != typeof navigator && navigator.msSaveOrOpenBlob ? function(e, t, r) {
return t = t || e.name || "download", r || (e = m(e)), navigator.msSaveOrOpenBlob(e, t)
} : (t.abort = function() {}, t.readyState = t.INIT = 0, t.WRITING = 1, t.DONE = 2, t.error = t.onwritestart = t.onprogress = t.onwrite = t.onabort = t.onerror = t.onwriteend = null, function(e, t, r) {
return new i(e, t || e.name || "download", r)
})
}
}("undefined" != typeof self && self || "undefined" != typeof window && window || this.content);
void 0 !== t && t.exports && (t.exports.saveAs = i)
}, {}],
7: [function(e, t, r) {
r.read = function(e, t, r, i, n) {
var o, a, s = 8 * n - i - 1,
h = (1 << s) - 1,
l = h >> 1,
u = -7,
c = r ? n - 1 : 0,
p = r ? -1 : 1,
d = e[t + c];
for (c += p, o = d & (1 << -u) - 1, d >>= -u, u += s; 0 < u; o = 256 * o + e[t + c], c += p, u -= 8);
for (a = o & (1 << -u) - 1, o >>= -u, u += i; 0 < u; a = 256 * a + e[t + c], c += p, u -= 8);
if (0 === o) o = 1 - l;
else {
if (o === h) return a ? NaN : 1 / 0 * (d ? -1 : 1);
a += Math.pow(2, i), o -= l
}
return (d ? -1 : 1) * a * Math.pow(2, o - i)
}, r.write = function(e, t, r, i, n, o) {
var a, s, h, l = 8 * o - n - 1,
u = (1 << l) - 1,
c = u >> 1,
p = 23 === n ? Math.pow(2, -24) - Math.pow(2, -77) : 0,
d = i ? 0 : o - 1,
f = i ? 1 : -1,
m = t < 0 || 0 === t && 1 / t < 0 ? 1 : 0;
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (s = isNaN(t) ? 1 : 0, a = u) : (a = Math.floor(Math.log(t) / Math.LN2), t * (h = Math.pow(2, -a)) < 1 && (a--, h *= 2), 2 <= (t += 1 <= a + c ? p / h : p * Math.pow(2, 1 - c)) * h && (a++, h /= 2), u <= a + c ? (s = 0, a = u) : 1 <= a + c ? (s = (t * h - 1) * Math.pow(2, n), a += c) : (s = t * Math.pow(2, c - 1) * Math.pow(2, n), a = 0)); 8 <= n; e[r + d] = 255 & s, d += f, s /= 256, n -= 8);
for (a = a << n | s, l += n; 0 < l; e[r + d] = 255 & a, d += f, a /= 256, l -= 8);
e[r + d - f] |= 128 * m
}
}, {}],
8: [function(e, t, r) {
"use strict";
var i;
function v(e, t) {
return e.b === t.b && e.a === t.a
}
function g(e, t) {
return e.b < t.b || e.b === t.b && e.a <= t.a
}
function y(e, t, r) {
var i = t.b - e.b,
n = r.b - t.b;
return 0 < i + n ? i < n ? t.a - e.a + i / (i + n) * (e.a - r.a) : t.a - r.a + n / (i + n) * (r.a - e.a) : 0
}
function b(e, t, r) {
var i = t.b - e.b,
n = r.b - t.b;
return 0 < i + n ? (t.a - r.a) * i + (t.a - e.a) * n : 0
}
function _(e, t) {
return e.a < t.a || e.a === t.a && e.b <= t.b
}
function x(e, t, r) {
var i = t.a - e.a,
n = r.a - t.a;
return 0 < i + n ? i < n ? t.b - e.b + i / (i + n) * (e.b - r.b) : t.b - r.b + n / (i + n) * (r.b - e.b) : 0
}
function w(e, t, r) {
var i = t.a - e.a,
n = r.a - t.a;
return 0 < i + n ? (t.b - r.b) * i + (t.b - e.b) * n : 0
}
function S(e, t, r, i) {
return (e = e < 0 ? 0 : e) <= (r = r < 0 ? 0 : r) ? 0 === r ? (t + i) / 2 : t + e / (e + r) * (i - t) : i + r / (e + r) * (t - i)
}
function a(e) {
var t = o(e.b);
return n(t, e.c), n(t.b, e.c), s(t, e.a), t
}
function T(e, t) {
var r = !1,
i = !1;
e !== t && (t.a !== e.a && (i = !0, m(t.a, e.a)), t.d !== e.d && (r = !0, h(t.d, e.d)), d(t, e), i || (n(t, e.a), e.a.c = e), r || (s(t, e.d), e.d.a = e))
}
function c(e) {
var t = e.b,
r = !1;
e.d !== e.b.d && (r = !0, h(e.d, e.b.d)), e.c === e ? m(e.a, null) : (e.b.d.a = J(e), e.a.c = e.c, d(e, J(e)), r || s(e, e.d)), t.c === t ? (m(t.a, null), h(t.d, null)) : (e.d.a = J(t), t.a.c = t.c, d(t, J(t))), f(e)
}
function M(e) {
var t = o(e),
r = t.b;
return d(t, e.e), t.a = e.b.a, n(r, t.a), t.d = r.d = e.d, t = t.b, d(e.b, J(e.b)), d(e.b, t), e.b.a = t.a, t.b.a.c = t.b, t.b.d = e.b.d, t.f = e.f, t.b.f = e.b.f, t
}
function p(e, t) {
var r = !1,
i = o(e),
n = i.b;
return t.d !== e.d && (r = !0, h(t.d, e.d)), d(i, e.e), d(n, t), i.a = e.b.a, n.a = t.a, i.d = n.d = e.d, e.d.a = n, r || s(i, e.d), i
}
function o(e) {
var t = new K,
r = new K,
i = e.b.h;
return (((r.h = i).b.h = t).h = e).b.h = r, t.b = r, ((t.c = t).e = r).b = t, (r.c = r).e = t
}
function d(e, t) {
var r = e.c,
i = t.c;
r.b.e = t, (i.b.e = e).c = i, t.c = r
}
function n(e, t) {
var r = t.f,
i = new ee(t, r);
for (r.e = i, r = (t.f = i).c = e; r.a = i, (r = r.c) !== e;);
}
function s(e, t) {
var r = t.d,
i = new Q(t, r);
for (r.b = i, (t.d = i).a = e, i.c = t.c, r = e; r.d = i, (r = r.e) !== e;);
}
function f(e) {
var t = e.h;
e = e.b.h, (t.b.h = e).b.h = t
}
function m(e, t) {
for (var r = e.c, i = r; i.a = t, (i = i.c) !== r;);
r = e.f, ((i = e.e).f = r).e = i
}
function h(e, t) {
for (var r = e.a, i = r; i.d = t, (i = i.e) !== r;);
r = e.d, ((i = e.b).d = r).b = i
}
function E(e) {
var t = 0;
return Math.abs(e[1]) > Math.abs(e[0]) && (t = 1), Math.abs(e[2]) > Math.abs(e[t]) && (t = 2), t
}
var C = 4e150;
function R(e, t) {
e.f += t.f, e.b.f += t.b.f
}
function l(e, t, r) {
return e = e.a, t = t.a, r = r.a, t.b.a === e ? r.b.a === e ? g(t.a, r.a) ? b(r.b.a, t.a, r.a) <= 0 : 0 <= b(t.b.a, r.a, t.a) : b(r.b.a, e, r.a) <= 0 : r.b.a === e ? 0 <= b(t.b.a, e, t.a) : (t = y(t.b.a, e, t.a), (e = y(r.b.a, e, r.a)) <= t)
}
function L(e) {
e.a.i = null;
var t = e.e;
t.a.c = t.c, t.c.a = t.a, e.e = null
}
function u(e, t) {
c(e.a), e.c = !1, (e.a = t).i = e
}
function P(e) {
for (var t = e.a.a;
(e = pe(e)).a.a === t;);
return e.c && (u(e, t = p(ce(e).a.b, e.a.e)), e = pe(e)), e
}
function D(e, t, r) {
var i = new ue;
return i.a = r, i.e = W(e.f, t.e, i), r.i = i
}
function A(e, t) {
switch (e.s) {
case 100130:
return 0 != (1 & t);
case 100131:
return 0 !== t;
case 100132:
return 0 < t;
case 100133:
return t < 0;
case 100134:
return 2 <= t || t <= -2
}
return !1
}
function k(e) {
var t = e.a,
r = t.d;
r.c = e.d, r.a = t, L(e)
}
function I(e, t, r) {
for (t = (e = t).a; e !== r;) {
e.c = !1;
var i = ce(e),
n = i.a;
if (n.a !== t.a) {
if (!i.c) {
k(e);
break
}
u(i, n = p(t.c.b, n.b))
}
t.c !== n && (T(J(n), n), T(t, n)), k(e), t = i.a, e = i
}
return t
}
function U(e, t, r, i, n, o) {
for (var a = !0; D(e, t, r.b), (r = r.c) !== i;);
for (null === n && (n = ce(t).a.b.c);
(r = (i = ce(t)).a.b).a === n.a;) r.c !== n && (T(J(r), r), T(J(n), r)), i.f = t.f - r.f, i.d = A(e, i.f), t.b = !0, !a && F(e, t) && (R(r, n), L(t), c(n)), a = !1, t = i, n = r;
t.b = !0, o && V(e, t)
}
function O(e, t, r, i, n) {
var o = [t.g[0], t.g[1], t.g[2]];
t.d = null, t.d = e.o && e.o(o, r, i, e.c) || null, null === t.d && (n ? e.n || (Z(e, 100156), e.n = !0) : t.d = r[0])
}
function B(e, t, r) {
var i = [null, null, null, null];
i[0] = t.a.d, i[1] = r.a.d, O(e, t.a, i, [.5, .5, 0, 0], !1), T(t, r)
}
function N(e, t, r, i, n) {
var o = Math.abs(t.b - e.b) + Math.abs(t.a - e.a),
a = Math.abs(r.b - e.b) + Math.abs(r.a - e.a),
s = n + 1;
i[n] = .5 * a / (o + a), i[s] = .5 * o / (o + a), e.g[0] += i[n] * t.g[0] + i[s] * r.g[0], e.g[1] += i[n] * t.g[1] + i[s] * r.g[1], e.g[2] += i[n] * t.g[2] + i[s] * r.g[2]
}
function F(e, t) {
var r = ce(t),
i = t.a,
n = r.a;
if (g(i.a, n.a)) {
if (0 < b(n.b.a, i.a, n.a)) return !1;
if (v(i.a, n.a)) {
if (i.a !== n.a) {
r = e.e;
var o = i.a.h;
if (0 <= o) {
var a = (r = r.b).d,
s = r.e,
h = r.c,
l = h[o];
a[l] = a[r.a], (h[a[l]] = l) <= --r.a && (l <= 1 ? he(r, l) : g(s[a[l >> 1]], s[a[l]]) ? he(r, l) : le(r, l)), s[o] = null, h[o] = r.b, r.b = o
} else
for (r.c[-(o + 1)] = null; 0 < r.a && null === r.c[r.d[r.a - 1]];) --r.a;
B(e, J(n), i)
}
} else M(n.b), T(i, J(n)), t.b = r.b = !0
} else {
if (b(i.b.a, n.a, i.a) < 0) return !1;
pe(t).b = t.b = !0, M(i.b), T(J(n), i)
}
return !0
}
function G(e, t) {
var r = ce(t),
i = t.a,
n = r.a,
o = i.a,
a = n.a,
s = i.b.a,
h = n.b.a,
l = new ee;
if (b(s, e.a, o), b(h, e.a, a), o === a || Math.min(o.a, s.a) > Math.max(a.a, h.a)) return !1;
if (g(o, a)) {
if (0 < b(h, o, a)) return !1
} else if (b(s, a, o) < 0) return !1;
var u, c, p = s,
d = o,
f = h,
m = a;
if (g(p, d) || (u = p, p = d, d = u), g(f, m) || (u = f, f = m, m = u), g(p, f) || (u = p, p = f, f = u, u = d, d = m, m = u), g(f, d) ? g(d, m) ? ((u = y(p, f, d)) + (c = y(f, d, m)) < 0 && (u = -u, c = -c), l.b = S(u, f.b, c, d.b)) : ((u = b(p, f, d)) + (c = -b(p, m, d)) < 0 && (u = -u, c = -c), l.b = S(u, f.b, c, m.b)) : l.b = (f.b + d.b) / 2, _(p, d) || (u = p, p = d, d = u), _(f, m) || (u = f, f = m, m = u), _(p, f) || (u = p, p = f, f = u, u = d, d = m, m = u), _(f, d) ? _(d, m) ? ((u = x(p, f, d)) + (c = x(f, d, m)) < 0 && (u = -u, c = -c), l.a = S(u, f.a, c, d.a)) : ((u = w(p, f, d)) + (c = -w(p, m, d)) < 0 && (u = -u, c = -c), l.a = S(u, f.a, c, m.a)) : l.a = (f.a + d.a) / 2, g(l, e.a) && (l.b = e.a.b, l.a = e.a.a), g(p = g(o, a) ? o : a, l) && (l.b = p.b, l.a = p.a), v(l, o) || v(l, a)) return F(e, t), !1;
if (!v(s, e.a) && 0 <= b(s, e.a, l) || !v(h, e.a) && b(h, e.a, l) <= 0) {
if (h === e.a) return M(i.b), T(n.b, i), i = ce(t = P(t)).a, I(e, ce(t), r), U(e, t, J(i), i, i, !0), !0;
if (s !== e.a) return 0 <= b(s, e.a, l) && (pe(t).b = t.b = !0, M(i.b), i.a.b = e.a.b, i.a.a = e.a.a), b(h, e.a, l) <= 0 && (t.b = r.b = !0, M(n.b), n.a.b = e.a.b, n.a.a = e.a.a), !1;
for (M(n.b), T(i.e, J(n)), a = (o = r = t).a.b.a;
(o = pe(o)).a.b.a === a;);
return o = ce(t = o).a.b.c, r.a = J(n), U(e, t, (n = I(e, r, null)).c, i.b.c, o, !0), !0
}
return M(i.b), M(n.b), T(J(n), i), i.a.b = l.b, i.a.a = l.a, i.a.h = re(e.e, i.a), i = i.a, n = [0, 0, 0, 0], l = [o.d, s.d, a.d, h.d], i.g[0] = i.g[1] = i.g[2] = 0, N(i, o, s, n, 0), N(i, a, h, n, 2), O(e, i, l, n, !0), pe(t).b = t.b = r.b = !0, !1
}
function V(e, t) {
for (var r = ce(t);;) {
for (; r.b;) r = ce(t = r);
if (!t.b && (null === (t = pe(r = t)) || !t.b)) break;
t.b = !1;
var i, n = t.a,
o = r.a;
if (i = n.b.a !== o.b.a) e: {
var a = ce(i = t),
s = i.a,
h = a.a,
l = void 0;
if (g(s.b.a, h.b.a)) {
if (b(s.b.a, h.b.a, s.a) < 0) {
i = !1;
break e
}
pe(i).b = i.b = !0, l = M(s), T(h.b, l), l.d.c = i.d
} else {
if (0 < b(h.b.a, s.b.a, h.a)) {
i = !1;
break e
}
i.b = a.b = !0, l = M(h), T(s.e, h.b), l.b.d.c = i.d
}
i = !0
}
if (i && (r.c ? (L(r), c(o), o = (r = ce(t)).a) : t.c && (L(t), c(n), n = (t = pe(r)).a)), n.a !== o.a)
if (n.b.a === o.b.a || t.c || r.c || n.b.a !== e.a && o.b.a !== e.a) F(e, t);
else if (G(e, t)) break;
n.a === o.a && n.b.a === o.b.a && (R(o, n), L(t), c(n), t = pe(r))
}
}
function z(e, t) {
for (var r = (e.a = t).c; null === r.i;)
if ((r = r.c) === t.c) {
r = e;
var i = t;
(a = new ue).a = i.c.b;
for (var n = (h = r.f).a; null !== (n = n.a).b && !h.c(h.b, a, n.b););
var o = ce(h = n.b),
a = h.a;
n = o.a;
if (0 === b(a.b.a, i, a.a)) v((a = h.a).a, i) || v(a.b.a, i) || (M(a.b), h.c && (c(a.c), h.c = !1), T(i.c, a), z(r, i));
else {
var s = g(n.b.a, a.b.a) ? h : o;
o = void 0;
h.d || s.c ? (o = s === h ? p(i.c.b, a.e) : p(n.b.c.b, i.c).b, s.c ? u(s, o) : ((h = D(a = r, h, o)).f = pe(h).f + h.a.f, h.d = A(a, h.f)), z(r, i)) : U(r, h, i.c, i.c, null, !0)
}
return
}
if (h = (a = ce(r = P(r.i))).a, (a = I(e, a, null)).c === h) {
a = (h = a).c, n = ce(r), o = r.a, s = n.a;
var h, l = !1;
o.b.a !== s.b.a && G(e, r), v(o.a, e.a) && (T(J(a), o), a = ce(r = P(r)).a, I(e, ce(r), n), l = !0), v(s.a, e.a) && (T(h, J(s)), h = I(e, n, null), l = !0), l ? U(e, r, h.c, a, a, !0) : (i = g(s.a, o.a) ? J(s) : o, U(e, r, i = p(h.c.b, i), i.c, i.c, !1), i.b.i.c = !0, V(e, r))
} else U(e, r, a.c, h, h, !0)
}
function H(e, t) {
var r = new ue,
i = a(e.b);
i.a.b = C, i.a.a = t, i.b.a.b = -C, i.b.a.a = t, e.a = i.b.a, r.a = i, r.f = 0, r.d = !1, r.c = !1, r.h = !0, r.b = !1, i = W(i = e.f, i.a, r), r.e = i
}
function j(e) {
this.a = new X, this.b = e, this.c = l
}
function W(e, t, r) {
for (; null !== (t = t.c).b && !e.c(e.b, t.b, r););
return e = new X(r, t.a, t), t.a.c = e, t.a = e
}
function X(e, t, r) {
this.b = e || null, this.a = t || this, this.c = r || this
}
function q() {
this.d = 0, this.p = this.b = this.q = null, this.j = [0, 0, 0], this.s = 100130, this.n = !1, this.o = this.a = this.e = this.f = null, this.m = !1, this.c = this.r = this.i = this.k = this.l = this.h = null
}
function Y(e, t) {
if (e.d !== t)
for (; e.d !== t;)
if (e.d < t) switch (e.d) {