bot18
Version:
A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f
1,367 lines (1,366 loc) • 256 kB
JavaScript
//adapted from https://github.com/tonyg/js-scrypt/blob/master/browser/scrypt.js
module.exports = (function (requested_total_memory) {
var Module = {TOTAL_MEMORY: (requested_total_memory || 33554432)};
var scrypt_raw = Module;
function g(a) {
throw a;
}
var k = void 0, l = !0, m = null, p = !1;
function aa() {
return function() {
}
}
var q, s;
s || (s = eval("(function() { try { return Module || {} } catch(e) { return {} } })()"));
var ba = {}, t;
for(t in s) {
s.hasOwnProperty(t) && (ba[t] = s[t])
}
var ca = "object" === typeof process && "function" === typeof require, da = "object" === typeof window, ea = "function" === typeof importScripts, fa = !da && !ca && !ea;
if(ca) {
s.print = function(a) {
process.stdout.write(a + "\n")
};
s.printErr = function(a) {
process.stderr.write(a + "\n")
};
var ga = require("fs"), ha = require("path");
s.read = function(a, b) {
var a = ha.normalize(a), c = ga.readFileSync(a);
!c && a != ha.resolve(a) && (a = path.join(__dirname, "..", "src", a), c = ga.readFileSync(a));
c && !b && (c = c.toString());
return c
};
s.readBinary = function(a) {
return s.read(a, l)
};
s.load = function(a) {
ia(read(a))
};
s.arguments = process.argv.slice(2);
module.ee = s
}else {
fa ? (s.print = print, "undefined" != typeof printErr && (s.printErr = printErr), s.read = read, s.readBinary = function(a) {
return read(a, "binary")
}, "undefined" != typeof scriptArgs ? s.arguments = scriptArgs : "undefined" != typeof arguments && (s.arguments = arguments), this.Module = s) : da || ea ? (s.read = function(a) {
var b = new XMLHttpRequest;
b.open("GET", a, p);
b.send(m);
return b.responseText
}, "undefined" != typeof arguments && (s.arguments = arguments), da ? (s.print = function(a) {
console.log(a)
}, s.printErr = function(a) {
console.log(a)
}, this.Module = s) : ea && (s.print = aa(), s.load = importScripts)) : g("Unknown runtime environment. Where are we?")
}
function ia(a) {
eval.call(m, a)
}
"undefined" == !s.load && s.read && (s.load = function(a) {
ia(s.read(a))
});
s.print || (s.print = aa());
s.printErr || (s.printErr = s.print);
s.arguments || (s.arguments = []);
s.print = s.print;
s.P = s.printErr;
s.preRun = [];
s.postRun = [];
for(t in ba) {
ba.hasOwnProperty(t) && (s[t] = ba[t])
}
function ja() {
return u
}
function ka(a) {
u = a
}
function la(a) {
if(1 == ma) {
return 1
}
var b = {"%i1":1, "%i8":1, "%i16":2, "%i32":4, "%i64":8, "%float":4, "%double":8}["%" + a];
b || ("*" == a.charAt(a.length - 1) ? b = ma : "i" == a[0] && (a = parseInt(a.substr(1)), w(0 == a % 8), b = a / 8));
return b
}
function na(a, b, c) {
c && c.length ? (c.splice || (c = Array.prototype.slice.call(c)), c.splice(0, 0, b), s["dynCall_" + a].apply(m, c)) : s["dynCall_" + a].call(m, b)
}
var oa;
function pa() {
var a = [], b = 0;
this.oa = function(c) {
c &= 255;
b && (a.push(c), b--);
if(0 == a.length) {
if(128 > c) {
return String.fromCharCode(c)
}
a.push(c);
b = 191 < c && 224 > c ? 1 : 2;
return""
}
if(0 < b) {
return""
}
var c = a[0], d = a[1], e = a[2], c = 191 < c && 224 > c ? String.fromCharCode((c & 31) << 6 | d & 63) : String.fromCharCode((c & 15) << 12 | (d & 63) << 6 | e & 63);
a.length = 0;
return c
};
this.yb = function(a) {
for(var a = unescape(encodeURIComponent(a)), b = [], e = 0;e < a.length;e++) {
b.push(a.charCodeAt(e))
}
return b
}
}
function qa(a) {
var b = u;
u = u + a | 0;
u = u + 7 >> 3 << 3;
return b
}
function ra(a) {
var b = sa;
sa = sa + a | 0;
sa = sa + 7 >> 3 << 3;
return b
}
function ua(a) {
var b = z;
z = z + a | 0;
z = z + 7 >> 3 << 3;
z >= va && wa("Cannot enlarge memory arrays in asm.js. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value, or (2) set Module.TOTAL_MEMORY before the program runs.");
return b
}
function xa(a, b) {
return Math.ceil(a / (b ? b : 8)) * (b ? b : 8)
}
var ma = 4, ya = {}, za = p, Aa;
function w(a, b) {
a || wa("Assertion failed: " + b)
}
s.ccall = function(a, b, c, d) {
return Ba(Ca(a), b, c, d)
};
function Ca(a) {
try {
var b = s["_" + a];
b || (b = eval("_" + a))
}catch(c) {
}
w(b, "Cannot call unknown function " + a + " (perhaps LLVM optimizations or closure removed it?)");
return b
}
function Ba(a, b, c, d) {
function e(a, b) {
if("string" == b) {
if(a === m || a === k || 0 === a) {
return 0
}
f || (f = ja());
var c = qa(a.length + 1);
Da(a, c);
return c
}
return"array" == b ? (f || (f = ja()), c = qa(a.length), Ea(a, c), c) : a
}
var f = 0, h = 0, d = d ? d.map(function(a) {
return e(a, c[h++])
}) : [];
a = a.apply(m, d);
"string" == b ? b = Fa(a) : (w("array" != b), b = a);
f && ka(f);
return b
}
s.cwrap = function(a, b, c) {
var d = Ca(a);
return function() {
return Ba(d, b, c, Array.prototype.slice.call(arguments))
}
};
function Ga(a, b, c) {
c = c || "i8";
"*" === c.charAt(c.length - 1) && (c = "i32");
switch(c) {
case "i1":
A[a] = b;
break;
case "i8":
A[a] = b;
break;
case "i16":
Ha[a >> 1] = b;
break;
case "i32":
B[a >> 2] = b;
break;
case "i64":
Aa = [b >>> 0, (Math.min(+Math.floor(b / 4294967296), 4294967295) | 0) >>> 0];
B[a >> 2] = Aa[0];
B[a + 4 >> 2] = Aa[1];
break;
case "float":
Ia[a >> 2] = b;
break;
case "double":
Ja[a >> 3] = b;
break;
default:
wa("invalid type for setValue: " + c)
}
}
s.setValue = Ga;
s.getValue = function(a, b) {
b = b || "i8";
"*" === b.charAt(b.length - 1) && (b = "i32");
switch(b) {
case "i1":
return A[a];
case "i8":
return A[a];
case "i16":
return Ha[a >> 1];
case "i32":
return B[a >> 2];
case "i64":
return B[a >> 2];
case "float":
return Ia[a >> 2];
case "double":
return Ja[a >> 3];
default:
wa("invalid type for setValue: " + b)
}
return m
};
var Ka = 0, La = 1, E = 2, Na = 4;
s.ALLOC_NORMAL = Ka;
s.ALLOC_STACK = La;
s.ALLOC_STATIC = E;
s.ALLOC_DYNAMIC = 3;
s.ALLOC_NONE = Na;
function F(a, b, c, d) {
var e, f;
"number" === typeof a ? (e = l, f = a) : (e = p, f = a.length);
var h = "string" === typeof b ? b : m, c = c == Na ? d : [Oa, qa, ra, ua][c === k ? E : c](Math.max(f, h ? 1 : b.length));
if(e) {
d = c;
w(0 == (c & 3));
for(a = c + (f & -4);d < a;d += 4) {
B[d >> 2] = 0
}
for(a = c + f;d < a;) {
A[d++ | 0] = 0
}
return c
}
if("i8" === h) {
return a.subarray || a.slice ? G.set(a, c) : G.set(new Uint8Array(a), c), c
}
for(var d = 0, i, j;d < f;) {
var n = a[d];
"function" === typeof n && (n = ya.fe(n));
e = h || b[d];
0 === e ? d++ : ("i64" == e && (e = "i32"), Ga(c + d, n, e), j !== e && (i = la(e), j = e), d += i)
}
return c
}
s.allocate = F;
function Fa(a, b) {
for(var c = p, d, e = 0;;) {
d = G[a + e | 0];
if(128 <= d) {
c = l
}else {
if(0 == d && !b) {
break
}
}
e++;
if(b && e == b) {
break
}
}
b || (b = e);
var f = "";
if(!c) {
for(;0 < b;) {
d = String.fromCharCode.apply(String, G.subarray(a, a + Math.min(b, 1024))), f = f ? f + d : d, a += 1024, b -= 1024
}
return f
}
c = new pa;
for(e = 0;e < b;e++) {
d = G[a + e | 0], f += c.oa(d)
}
return f
}
s.Pointer_stringify = Fa;
var A, G, Ha, Pa, B, Qa, Ia, Ja, Ra = 0, sa = 0, Sa = 0, u = 0, Ta = 0, Ua = 0, z = 0, va = s.TOTAL_MEMORY || 33554432;
w(!!Int32Array && !!Float64Array && !!(new Int32Array(1)).subarray && !!(new Int32Array(1)).set, "Cannot fallback to non-typed array case: Code is too specialized");
var I = new ArrayBuffer(va);
A = new Int8Array(I);
Ha = new Int16Array(I);
B = new Int32Array(I);
G = new Uint8Array(I);
Pa = new Uint16Array(I);
Qa = new Uint32Array(I);
Ia = new Float32Array(I);
Ja = new Float64Array(I);
B[0] = 255;
w(255 === G[0] && 0 === G[3], "Typed arrays 2 must be run on a little-endian system");
s.HEAP = k;
s.HEAP8 = A;
s.HEAP16 = Ha;
s.HEAP32 = B;
s.HEAPU8 = G;
s.HEAPU16 = Pa;
s.HEAPU32 = Qa;
s.HEAPF32 = Ia;
s.HEAPF64 = Ja;
function Va(a) {
for(;0 < a.length;) {
var b = a.shift();
if("function" == typeof b) {
b()
}else {
var c = b.V;
"number" === typeof c ? b.ha === k ? na("v", c) : na("vi", c, [b.ha]) : c(b.ha === k ? m : b.ha)
}
}
}
var Wa = [], Xa = [], Ya = [], Za = [], $a = [], ab = p;
function bb(a) {
Wa.unshift(a)
}
s.addOnPreRun = s.Vd = bb;
s.addOnInit = s.Sd = function(a) {
Xa.unshift(a)
};
s.addOnPreMain = s.Ud = function(a) {
Ya.unshift(a)
};
s.addOnExit = s.Rd = function(a) {
Za.unshift(a)
};
function cb(a) {
$a.unshift(a)
}
s.addOnPostRun = s.Td = cb;
function J(a, b, c) {
a = (new pa).yb(a);
c && (a.length = c);
b || a.push(0);
return a
}
s.intArrayFromString = J;
s.intArrayToString = function(a) {
for(var b = [], c = 0;c < a.length;c++) {
var d = a[c];
255 < d && (d &= 255);
b.push(String.fromCharCode(d))
}
return b.join("")
};
function Da(a, b, c) {
a = J(a, c);
for(c = 0;c < a.length;) {
A[b + c | 0] = a[c], c += 1
}
}
s.writeStringToMemory = Da;
function Ea(a, b) {
for(var c = 0;c < a.length;c++) {
A[b + c | 0] = a[c]
}
}
s.writeArrayToMemory = Ea;
function db(a, b) {
return 0 <= a ? a : 32 >= b ? 2 * Math.abs(1 << b - 1) + a : Math.pow(2, b) + a
}
function eb(a, b) {
if(0 >= a) {
return a
}
var c = 32 >= b ? Math.abs(1 << b - 1) : Math.pow(2, b - 1);
if(a >= c && (32 >= b || a > c)) {
a = -2 * c + a
}
return a
}
Math.imul || (Math.imul = function(a, b) {
var c = a & 65535, d = b & 65535;
return c * d + ((a >>> 16) * d + c * (b >>> 16) << 16) | 0
});
Math.ie = Math.imul;
var L = 0, fb = {}, gb = p, hb = m;
function ib(a) {
L++;
s.monitorRunDependencies && s.monitorRunDependencies(L);
a ? (w(!fb[a]), fb[a] = 1) : s.P("warning: run dependency added without ID")
}
s.addRunDependency = ib;
function jb(a) {
L--;
s.monitorRunDependencies && s.monitorRunDependencies(L);
a ? (w(fb[a]), delete fb[a]) : s.P("warning: run dependency removed without ID");
0 == L && (hb !== m && (clearInterval(hb), hb = m), !gb && kb && lb())
}
s.removeRunDependency = jb;
s.preloadedImages = {};
s.preloadedAudios = {};
Ra = 8;
sa = Ra + 1312;
Xa.push({V:function() {
mb()
}});
var nb, ob, pb;
nb = nb = F([0, 0, 0, 0, 0, 0, 0, 0], "i8", E);
ob = ob = F([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "i8", E);
pb = pb = F([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "i8", E);
F([111, 112, 116, 105, 111, 110, 32, 114, 101, 113, 117, 105, 114, 101, 115, 32, 97, 110, 32, 97, 114, 103, 117, 109, 101, 110, 116, 32, 45, 45, 32, 37, 115, 0, 0, 0, 0, 0, 0, 0, 111, 112, 116, 105, 111, 110, 32, 114, 101, 113, 117, 105, 114, 101, 115, 32, 97, 110, 32, 97, 114, 103, 117, 109, 101, 110, 116, 32, 45, 45, 32, 37, 99, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36, 64, 0, 0, 0, 0, 0, 0, 89, 64, 0, 0, 0, 0, 0, 136, 195, 64, 0, 0, 0, 0, 132, 215, 151, 65, 0, 128, 224, 55, 121, 195, 65, 67,
23, 110, 5, 181, 181, 184, 147, 70, 245, 249, 63, 233, 3, 79, 56, 77, 50, 29, 48, 249, 72, 119, 130, 90, 60, 191, 115, 127, 221, 79, 21, 117, 56, 3, 0, 0, 0, 0, 0, 0, 63, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 111, 112, 116, 105, 111, 110, 32, 100, 111, 101, 115, 110, 39, 116, 32, 116, 97, 107, 101, 32, 97, 110, 32, 97, 114, 103, 117, 109, 101, 110, 116, 32, 45, 45, 32, 37, 46, 42, 115, 0, 117, 110, 107,
110, 111, 119, 110, 32, 111, 112, 116, 105, 111, 110, 32, 45, 45, 32, 37, 115, 0, 0, 0, 0, 117, 110, 107, 110, 111, 119, 110, 32, 111, 112, 116, 105, 111, 110, 32, 45, 45, 32, 37, 99, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 97, 109, 98, 105, 103, 117, 111, 117, 115, 32, 111, 112, 116, 105, 111, 110, 32, 45, 45, 32, 37, 46, 42, 115, 0, 0, 0, 0, 0, 0, 0, 0, 37, 115, 58, 32, 0, 0, 0, 0, 80, 79, 83, 73, 88, 76, 89, 95, 67, 79, 82, 82, 69, 67, 84, 0, 115, 116, 100, 58, 58, 98, 97, 100, 95, 97, 108,
108, 111, 99, 0, 0, 37, 115, 58, 32, 0, 0, 0, 0, 37, 115, 10, 0, 0, 0, 0, 0, 37, 115, 10, 0, 0, 0, 0, 0, 105, 110, 32, 117, 115, 101, 32, 98, 121, 116, 101, 115, 32, 32, 32, 32, 32, 61, 32, 37, 49, 48, 108, 117, 10, 0, 0, 0, 0, 0, 0, 0, 37, 115, 58, 32, 0, 0, 0, 0, 37, 115, 58, 32, 0, 0, 0, 0, 98, 97, 100, 95, 97, 114, 114, 97, 121, 95, 110, 101, 119, 95, 108, 101, 110, 103, 116, 104, 0, 0, 0, 0, 58, 32, 0, 0, 0, 0, 0, 0, 58, 32, 0, 0, 0, 0, 0, 0, 115, 121, 115, 116, 101, 109, 32, 98, 121, 116, 101,
115, 32, 32, 32, 32, 32, 61, 32, 37, 49, 48, 108, 117, 10, 0, 0, 0, 0, 0, 0, 0, 109, 97, 120, 32, 115, 121, 115, 116, 101, 109, 32, 98, 121, 116, 101, 115, 32, 61, 32, 37, 49, 48, 108, 117, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 2, 0, 0, 6, 0, 0, 0, 10, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 2, 0, 0, 6, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 83, 116, 57, 101, 120, 99, 101, 112, 116, 105, 111, 110, 0, 0, 0, 0, 83, 116, 57, 98, 97,
100, 95, 97, 108, 108, 111, 99, 0, 0, 0, 0, 83, 116, 50, 48, 98, 97, 100, 95, 97, 114, 114, 97, 121, 95, 110, 101, 119, 95, 108, 101, 110, 103, 116, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 2, 0, 0, 0, 0, 0, 0, 120, 2, 0, 0, 168, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 136, 2, 0, 0, 176, 2, 0, 0, 0, 0, 0, 0, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"i8", Na, 8);
var qb = xa(F(12, "i8", E), 8);
w(0 == qb % 8);
var rb = 0;
function M(a) {
return B[rb >> 2] = a
}
s._memcpy = sb;
s._memset = tb;
var N = {L:1, ca:2, Bd:3, sc:4, I:5, za:6, Jb:7, Sc:8, $:9, Zb:10, ua:11, Ld:11, $a:12, Ya:13, kc:14, ed:15, Wb:16, va:17, Md:18, wa:19, gd:20, aa:21, A:22, Mc:23, Za:24, ld:25, Id:26, lc:27, ad:28, da:29, yd:30, Fc:31, rd:32, hc:33, ab:34, Wc:35, pc:36, $b:37, vc:38, wc:39, xc:40, Ec:41, Jd:42, Qc:43, uc:44, ec:45, Tc:46, Pb:50, Sb:51, Nd:52, Oc:53, Tb:54, Ub:55, fc:56, Vb:57, cd:60, Rc:61, Fd:62, bd:63, Xc:64, Yc:65, xd:66, Uc:67, Mb:68, Cd:69, ac:70, td:71, Hc:74, yc:75, ic:76, Rb:77, mc:79, md:80,
Qb:81, wd:82, zc:83, Ac:84, Dc:85, Cc:86, Bc:87, dd:88, Nc:89, ya:90, Ic:91, ba:92, nd:95, qd:96, dc:104, Pc:105, Nb:106, vd:107, jd:108, Zc:109, zd:110, cc:111, Kb:112, bc:113, Lc:114, Jc:115, Gd:116, nc:117, oc:118, rc:119, Ob:120, gc:121, Gc:122, ud:123, Ad:124, Lb:125, Kc:126, tc:127, fd:128, Hd:129, sd:130, Kd:131, jc:132, Dd:133, kd:134, Vc:135, $c:136, Yb:137, qc:138, od:139, Xb:140, hd:141, pd:142, Ed:143}, ub = {"0":"Success", 1:"Not super-user", 2:"No such file or directory", 3:"No such process",
4:"Interrupted system call", 5:"I/O error", 6:"No such device or address", 7:"Arg list too long", 8:"Exec format error", 9:"Bad file number", 10:"No children", 11:"No more processes", 12:"Not enough core", 13:"Permission denied", 14:"Bad address", 15:"Block device required", 16:"Mount device busy", 17:"File exists", 18:"Cross-device link", 19:"No such device", 20:"Not a directory", 21:"Is a directory", 22:"Invalid argument", 23:"Too many open files in system", 24:"Too many open files", 25:"Not a typewriter",
26:"Text file busy", 27:"File too large", 28:"No space left on device", 29:"Illegal seek", 30:"Read only file system", 31:"Too many links", 32:"Broken pipe", 33:"Math arg out of domain of func", 34:"Math result not representable", 35:"No message of desired type", 36:"Identifier removed", 37:"Channel number out of range", 38:"Level 2 not synchronized", 39:"Level 3 halted", 40:"Level 3 reset", 41:"Link number out of range", 42:"Protocol driver not attached", 43:"No CSI structure available", 44:"Level 2 halted",
45:"Deadlock condition", 46:"No record locks available", 50:"Invalid exchange", 51:"Invalid request descriptor", 52:"Exchange full", 53:"No anode", 54:"Invalid request code", 55:"Invalid slot", 56:"File locking deadlock error", 57:"Bad font file fmt", 60:"Device not a stream", 61:"No data (for no delay io)", 62:"Timer expired", 63:"Out of streams resources", 64:"Machine is not on the network", 65:"Package not installed", 66:"The object is remote", 67:"The link has been severed", 68:"Advertise error",
69:"Srmount error", 70:"Communication error on send", 71:"Protocol error", 74:"Multihop attempted", 75:"Inode is remote (not really error)", 76:"Cross mount point (not really error)", 77:"Trying to read unreadable message", 79:"Inappropriate file type or format", 80:"Given log. name not unique", 81:"f.d. invalid for this operation", 82:"Remote address changed", 83:"Can\t access a needed shared lib", 84:"Accessing a corrupted shared lib", 85:".lib section in a.out corrupted", 86:"Attempting to link in too many libs",
87:"Attempting to exec a shared library", 88:"Function not implemented", 89:"No more files", 90:"Directory not empty", 91:"File or path name too long", 92:"Too many symbolic links", 95:"Operation not supported on transport endpoint", 96:"Protocol family not supported", 104:"Connection reset by peer", 105:"No buffer space available", 106:"Address family not supported by protocol family", 107:"Protocol wrong type for socket", 108:"Socket operation on non-socket", 109:"Protocol not available", 110:"Can't send after socket shutdown",
111:"Connection refused", 112:"Address already in use", 113:"Connection aborted", 114:"Network is unreachable", 115:"Network interface is not configured", 116:"Connection timed out", 117:"Host is down", 118:"Host is unreachable", 119:"Connection already in progress", 120:"Socket already connected", 121:"Destination address required", 122:"Message too long", 123:"Unknown protocol", 124:"Socket type not supported", 125:"Address not available", 126:"ENETRESET", 127:"Socket is already connected", 128:"Socket is not connected",
129:"TOOMANYREFS", 130:"EPROCLIM", 131:"EUSERS", 132:"EDQUOT", 133:"ESTALE", 134:"Not supported", 135:"No medium (in tape drive)", 136:"No such host or network path", 137:"Filename exists with different case", 138:"EILSEQ", 139:"Value too large for defined data type", 140:"Operation canceled", 141:"State not recoverable", 142:"Previous owner died", 143:"Streams pipe error"};
function vb(a, b, c) {
var d = O(a, {parent:l}).d, a = "/" === a ? "/" : wb(a)[2], e = xb(d, a);
e && g(new Q(e));
d.l.Ta || g(new Q(N.L));
return d.l.Ta(d, a, b, c)
}
function yb(a, b) {
b = b & 4095 | 32768;
return vb(a, b, 0)
}
function zb(a, b) {
b = b & 1023 | 16384;
return vb(a, b, 0)
}
function Ab(a, b, c) {
return vb(a, b | 8192, c)
}
function Bb(a, b) {
var c = O(b, {parent:l}).d, d = "/" === b ? "/" : wb(b)[2], e = xb(c, d);
e && g(new Q(e));
c.l.Wa || g(new Q(N.L));
return c.l.Wa(c, d, a)
}
function Cb(a, b) {
var c;
c = "string" === typeof a ? O(a, {N:l}).d : a;
c.l.Y || g(new Q(N.L));
c.l.Y(c, {mode:b & 4095 | c.mode & -4096, timestamp:Date.now()})
}
function Db(a, b) {
var c, a = Eb(a), d;
"string" === typeof b ? (d = Fb[b], "undefined" === typeof d && g(Error("Unknown file open mode: " + b))) : d = b;
b = d;
c = b & 512 ? c & 4095 | 32768 : 0;
var e;
try {
var f = O(a, {N:!(b & 65536)});
e = f.d;
a = f.path
}catch(h) {
}
b & 512 && (e ? b & 2048 && g(new Q(N.va)) : e = vb(a, c, 0));
e || g(new Q(N.ca));
8192 === (e.mode & 61440) && (b &= -1025);
e ? 40960 === (e.mode & 61440) ? c = N.ba : 16384 === (e.mode & 61440) && (0 !== (b & 3) || b & 1024) ? c = N.aa : (c = ["r", "w", "rw"][b & 3], b & 1024 && (c += "w"), c = Gb(e, c)) : c = N.ca;
c && g(new Q(c));
b & 1024 && (c = e, c = "string" === typeof c ? O(c, {N:l}).d : c, c.l.Y || g(new Q(N.L)), 16384 === (c.mode & 61440) && g(new Q(N.aa)), 32768 !== (c.mode & 61440) && g(new Q(N.A)), (f = Gb(c, "w")) && g(new Q(f)), c.l.Y(c, {size:0, timestamp:Date.now()}));
var i = {path:a, d:e, M:b, seekable:l, position:0, e:e.e, Gb:[], error:p}, j;
a: {
e = k || 4096;
for(c = k || 1;c <= e;c++) {
if(!R[c]) {
j = c;
break a
}
}
g(new Q(N.Za))
}
i.s = j;
Object.defineProperty(i, "object", {get:function() {
return i.d
}, set:function(a) {
i.d = a
}});
Object.defineProperty(i, "isRead", {get:function() {
return 1 !== (i.M & 3)
}});
Object.defineProperty(i, "isWrite", {get:function() {
return 0 !== (i.M & 3)
}});
Object.defineProperty(i, "isAppend", {get:function() {
return i.M & 8
}});
R[j] = i;
i.e.open && i.e.open(i);
return i
}
function Hb(a) {
try {
a.e.close && a.e.close(a)
}catch(b) {
g(b)
}finally {
R[a.s] = m
}
}
function Ib(a, b, c, d, e) {
(0 > d || 0 > e) && g(new Q(N.A));
0 === (a.M & 3) && g(new Q(N.$));
16384 === (a.d.mode & 61440) && g(new Q(N.aa));
a.e.write || g(new Q(N.A));
var f = l;
"undefined" === typeof e ? (e = a.position, f = p) : a.seekable || g(new Q(N.da));
a.M & 8 && ((!a.seekable || !a.e.na) && g(new Q(N.da)), a.e.na(a, 0, 2));
b = a.e.write(a, b, c, d, e);
f || (a.position += b);
return b
}
function wb(a) {
return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1)
}
function Jb(a, b) {
for(var c = 0, d = a.length - 1;0 <= d;d--) {
var e = a[d];
"." === e ? a.splice(d, 1) : ".." === e ? (a.splice(d, 1), c++) : c && (a.splice(d, 1), c--)
}
if(b) {
for(;c--;c) {
a.unshift("..")
}
}
return a
}
function Eb(a) {
var b = "/" === a.charAt(0), c = "/" === a.substr(-1), a = Jb(a.split("/").filter(function(a) {
return!!a
}), !b).join("/");
!a && !b && (a = ".");
a && c && (a += "/");
return(b ? "/" : "") + a
}
function S() {
var a = Array.prototype.slice.call(arguments, 0);
return Eb(a.filter(function(a) {
"string" !== typeof a && g(new TypeError("Arguments to path.join must be strings"));
return a
}).join("/"))
}
function Kb() {
for(var a = "", b = p, c = arguments.length - 1;-1 <= c && !b;c--) {
var d = 0 <= c ? arguments[c] : "/";
"string" !== typeof d && g(new TypeError("Arguments to path.resolve must be strings"));
d && (a = d + "/" + a, b = "/" === d.charAt(0))
}
a = Jb(a.split("/").filter(function(a) {
return!!a
}), !b).join("/");
return(b ? "/" : "") + a || "."
}
var Lb = [];
function Mb(a, b) {
Lb[a] = {input:[], H:[], O:b};
Nb[a] = {e:Ob}
}
var Ob = {open:function(a) {
Pb || (Pb = new pa);
var b = Lb[a.d.X];
b || g(new Q(N.wa));
a.q = b;
a.seekable = p
}, close:function(a) {
a.q.H.length && a.q.O.W(a.q, 10)
}, Q:function(a, b, c, d) {
(!a.q || !a.q.O.Na) && g(new Q(N.za));
for(var e = 0, f = 0;f < d;f++) {
var h;
try {
h = a.q.O.Na(a.q)
}catch(i) {
g(new Q(N.I))
}
h === k && 0 === e && g(new Q(N.ua));
if(h === m || h === k) {
break
}
e++;
b[c + f] = h
}
e && (a.d.timestamp = Date.now());
return e
}, write:function(a, b, c, d) {
(!a.q || !a.q.O.W) && g(new Q(N.za));
for(var e = 0;e < d;e++) {
try {
a.q.O.W(a.q, b[c + e])
}catch(f) {
g(new Q(N.I))
}
}
d && (a.d.timestamp = Date.now());
return e
}}, Pb, T = {z:function() {
return T.ka(m, "/", 16895, 0)
}, ka:function(a, b, c, d) {
(24576 === (c & 61440) || 4096 === (c & 61440)) && g(new Q(N.L));
c = Qb(a, b, c, d);
c.l = T.l;
16384 === (c.mode & 61440) ? (c.e = T.e, c.g = {}) : 32768 === (c.mode & 61440) ? (c.e = T.e, c.g = []) : 40960 === (c.mode & 61440) ? c.e = T.e : 8192 === (c.mode & 61440) && (c.e = Rb);
c.timestamp = Date.now();
a && (a.g[b] = c);
return c
}, l:{ge:function(a) {
var b = {};
b.ce = 8192 === (a.mode & 61440) ? a.id : 1;
b.je = a.id;
b.mode = a.mode;
b.pe = 1;
b.uid = 0;
b.he = 0;
b.X = a.X;
b.size = 16384 === (a.mode & 61440) ? 4096 : 32768 === (a.mode & 61440) ? a.g.length : 40960 === (a.mode & 61440) ? a.link.length : 0;
b.Yd = new Date(a.timestamp);
b.oe = new Date(a.timestamp);
b.ae = new Date(a.timestamp);
b.ib = 4096;
b.Zd = Math.ceil(b.size / b.ib);
return b
}, Y:function(a, b) {
b.mode !== k && (a.mode = b.mode);
b.timestamp !== k && (a.timestamp = b.timestamp);
if(b.size !== k) {
var c = a.g;
if(b.size < c.length) {
c.length = b.size
}else {
for(;b.size > c.length;) {
c.push(0)
}
}
}
}, tb:function() {
g(new Q(N.ca))
}, Ta:function(a, b, c, d) {
return T.ka(a, b, c, d)
}, rename:function(a, b, c) {
if(16384 === (a.mode & 61440)) {
var d;
try {
d = Sb(b, c)
}catch(e) {
}
if(d) {
for(var f in d.g) {
g(new Q(N.ya))
}
}
}
delete a.parent.g[a.name];
a.name = c;
b.g[c] = a
}, ze:function(a, b) {
delete a.g[b]
}, ve:function(a, b) {
var c = Sb(a, b), d;
for(d in c.g) {
g(new Q(N.ya))
}
delete a.g[b]
}, Wa:function(a, b, c) {
a = T.ka(a, b, 41471, 0);
a.link = c;
return a
}, Va:function(a) {
40960 !== (a.mode & 61440) && g(new Q(N.A));
return a.link
}}, e:{open:function(a) {
if(16384 === (a.d.mode & 61440)) {
var b = [".", ".."], c;
for(c in a.d.g) {
a.d.g.hasOwnProperty(c) && b.push(c)
}
a.lb = b
}
}, Q:function(a, b, c, d, e) {
a = a.d.g;
d = Math.min(a.length - e, d);
if(a.subarray) {
b.set(a.subarray(e, e + d), c)
}else {
for(var f = 0;f < d;f++) {
b[c + f] = a[e + f]
}
}
return d
}, write:function(a, b, c, d, e) {
for(var f = a.d.g;f.length < e;) {
f.push(0)
}
for(var h = 0;h < d;h++) {
f[e + h] = b[c + h]
}
a.d.timestamp = Date.now();
return d
}, na:function(a, b, c) {
1 === c ? b += a.position : 2 === c && 32768 === (a.d.mode & 61440) && (b += a.d.g.length);
0 > b && g(new Q(N.A));
a.Gb = [];
return a.position = b
}, ue:function(a) {
return a.lb
}, Wd:function(a, b, c) {
a = a.d.g;
for(b += c;b > a.length;) {
a.push(0)
}
}, ne:function(a, b, c, d, e, f, h) {
32768 !== (a.d.mode & 61440) && g(new Q(N.wa));
a = a.d.g;
if(h & 2) {
if(0 < e || e + d < a.length) {
a = a.subarray ? a.subarray(e, e + d) : Array.prototype.slice.call(a, e, e + d)
}
e = l;
(d = Oa(d)) || g(new Q(N.$a));
b.set(a, d)
}else {
w(a.buffer === b || a.buffer === b.buffer), e = p, d = a.byteOffset
}
return{te:d, Xd:e}
}}}, Tb = F(1, "i32*", E), Ub = F(1, "i32*", E);
nb = F(1, "i32*", E);
var Vb = m, Nb = [m], R = [m], Wb = 1, Xb = [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ], Yb = l;
function Q(a) {
this.mb = a;
for(var b in N) {
if(N[b] === a) {
this.code = b;
break
}
}
this.message = ub[a]
}
function Zb(a) {
a instanceof Q || g(a + " : " + Error().stack);
M(a.mb)
}
function $b(a, b) {
for(var c = 0, d = 0;d < b.length;d++) {
c = (c << 5) - c + b.charCodeAt(d) | 0
}
return(a + c) % Xb.length
}
function Sb(a, b) {
var c = Gb(a, "x");
c && g(new Q(c));
for(c = Xb[$b(a.id, b)];c;c = c.wb) {
if(c.parent.id === a.id && c.name === b) {
return c
}
}
return a.l.tb(a, b)
}
function Qb(a, b, c, d) {
var e = {id:Wb++, name:b, mode:c, l:{}, e:{}, X:d, parent:m, z:m};
a || (a = e);
e.parent = a;
e.z = a.z;
Object.defineProperty(e, "read", {get:function() {
return 365 === (e.mode & 365)
}, set:function(a) {
a ? e.mode |= 365 : e.mode &= -366
}});
Object.defineProperty(e, "write", {get:function() {
return 146 === (e.mode & 146)
}, set:function(a) {
a ? e.mode |= 146 : e.mode &= -147
}});
a = $b(e.parent.id, e.name);
e.wb = Xb[a];
return Xb[a] = e
}
function O(a, b) {
a = Kb("/", a);
b = b || {pa:0};
8 < b.pa && g(new Q(N.ba));
for(var c = Jb(a.split("/").filter(function(a) {
return!!a
}), p), d = Vb, e = "/", f = 0;f < c.length;f++) {
var h = f === c.length - 1;
if(h && b.parent) {
break
}
d = Sb(d, c[f]);
e = S(e, c[f]);
d.ub && (d = d.z.root);
if(!h || b.N) {
for(h = 0;40960 === (d.mode & 61440);) {
d = O(e, {N:p}).d;
d.l.Va || g(new Q(N.A));
var d = d.l.Va(d), i = Kb;
var j = wb(e), e = j[0], j = j[1];
!e && !j ? e = "." : (j && (j = j.substr(0, j.length - 1)), e += j);
e = i(e, d);
d = O(e, {pa:b.pa}).d;
40 < h++ && g(new Q(N.ba))
}
}
}
return{path:e, d:d}
}
function ac(a) {
for(var b;;) {
if(a === a.parent) {
return b ? S(a.z.Ua, b) : a.z.Ua
}
b = b ? S(a.name, b) : a.name;
a = a.parent
}
}
var Fb = {r:0, rs:8192, "r+":2, w:1537, wx:3585, xw:3585, "w+":1538, "wx+":3586, "xw+":3586, a:521, ax:2569, xa:2569, "a+":522, "ax+":2570, "xa+":2570};
function Gb(a, b) {
return Yb ? 0 : -1 !== b.indexOf("r") && !(a.mode & 292) || -1 !== b.indexOf("w") && !(a.mode & 146) || -1 !== b.indexOf("x") && !(a.mode & 73) ? N.Ya : 0
}
function xb(a, b) {
try {
return Sb(a, b), N.va
}catch(c) {
}
return Gb(a, "wx")
}
var Rb = {open:function(a) {
a.e = Nb[a.d.X].e;
a.e.open && a.e.open(a)
}, na:function() {
g(new Q(N.da))
}}, bc;
function cc(a, b) {
var c = 0;
a && (c |= 365);
b && (c |= 146);
return c
}
function dc(a, b, c, d, e) {
a = S("string" === typeof a ? a : ac(a), b);
d = cc(d, e);
e = yb(a, d);
if(c) {
if("string" === typeof c) {
for(var b = Array(c.length), f = 0, h = c.length;f < h;++f) {
b[f] = c.charCodeAt(f)
}
c = b
}
Cb(a, d | 146);
b = Db(a, "w");
Ib(b, c, 0, c.length, 0);
Hb(b);
Cb(a, d)
}
return e
}
function ec(a, b, c, d) {
a = S("string" === typeof a ? a : ac(a), b);
ec.Sa || (ec.Sa = 64);
b = ec.Sa++ << 8 | 0;
Nb[b] = {e:{open:function(a) {
a.seekable = p
}, close:function() {
d && (d.buffer && d.buffer.length) && d(10)
}, Q:function(a, b, d, i) {
for(var j = 0, n = 0;n < i;n++) {
var y;
try {
y = c()
}catch(v) {
g(new Q(N.I))
}
y === k && 0 === j && g(new Q(N.ua));
if(y === m || y === k) {
break
}
j++;
b[d + n] = y
}
j && (a.d.timestamp = Date.now());
return j
}, write:function(a, b, c, i) {
for(var j = 0;j < i;j++) {
try {
d(b[c + j])
}catch(n) {
g(new Q(N.I))
}
}
i && (a.d.timestamp = Date.now());
return j
}}};
return Ab(a, c && d ? 511 : c ? 219 : 365, b)
}
function fc(a, b, c) {
a = R[a];
if(!a) {
return-1
}
a.sender(G.subarray(b, b + c));
return c
}
function gc(a, b, c) {
var d = R[a];
if(!d) {
return M(N.$), -1
}
if(d && "socket" in d) {
return fc(a, b, c)
}
try {
return Ib(d, A, b, c)
}catch(e) {
return Zb(e), -1
}
}
function hc(a, b, c, d) {
c *= b;
if(0 == c) {
return 0
}
a = gc(d, a, c);
if(-1 == a) {
if(b = R[d]) {
b.error = l
}
return 0
}
return Math.floor(a / b)
}
s._strlen = ic;
function jc(a) {
return 0 > a || 0 === a && -Infinity === 1 / a
}
function kc(a, b) {
function c(a) {
var c;
"double" === a ? c = Ja[b + e >> 3] : "i64" == a ? (c = [B[b + e >> 2], B[b + (e + 8) >> 2]], e += 8) : (a = "i32", c = B[b + e >> 2]);
e += Math.max(Math.max(la(a), ma), 8);
return c
}
for(var d = a, e = 0, f = [], h, i;;) {
var j = d;
h = A[d];
if(0 === h) {
break
}
i = A[d + 1 | 0];
if(37 == h) {
var n = p, y = p, v = p, C = p;
a:for(;;) {
switch(i) {
case 43:
n = l;
break;
case 45:
y = l;
break;
case 35:
v = l;
break;
case 48:
if(C) {
break a
}else {
C = l;
break
}
;
default:
break a
}
d++;
i = A[d + 1 | 0]
}
var D = 0;
if(42 == i) {
D = c("i32"), d++, i = A[d + 1 | 0]
}else {
for(;48 <= i && 57 >= i;) {
D = 10 * D + (i - 48), d++, i = A[d + 1 | 0]
}
}
var K = p;
if(46 == i) {
var H = 0, K = l;
d++;
i = A[d + 1 | 0];
if(42 == i) {
H = c("i32"), d++
}else {
for(;;) {
i = A[d + 1 | 0];
if(48 > i || 57 < i) {
break
}
H = 10 * H + (i - 48);
d++
}
}
i = A[d + 1 | 0]
}else {
H = 6
}
var x;
switch(String.fromCharCode(i)) {
case "h":
i = A[d + 2 | 0];
104 == i ? (d++, x = 1) : x = 2;
break;
case "l":
i = A[d + 2 | 0];
108 == i ? (d++, x = 8) : x = 4;
break;
case "L":
;
case "q":
;
case "j":
x = 8;
break;
case "z":
;
case "t":
;
case "I":
x = 4;
break;
default:
x = m
}
x && d++;
i = A[d + 1 | 0];
switch(String.fromCharCode(i)) {
case "d":
;
case "i":
;
case "u":
;
case "o":
;
case "x":
;
case "X":
;
case "p":
j = 100 == i || 105 == i;
x = x || 4;
var P = h = c("i" + 8 * x), r;
8 == x && (h = 117 == i ? +(h[0] >>> 0) + 4294967296 * +(h[1] >>> 0) : +(h[0] >>> 0) + 4294967296 * +(h[1] | 0));
4 >= x && (h = (j ? eb : db)(h & Math.pow(256, x) - 1, 8 * x));
var ta = Math.abs(h), j = "";
if(100 == i || 105 == i) {
r = 8 == x && lc ? lc.stringify(P[0], P[1], m) : eb(h, 8 * x).toString(10)
}else {
if(117 == i) {
r = 8 == x && lc ? lc.stringify(P[0], P[1], l) : db(h, 8 * x).toString(10), h = Math.abs(h)
}else {
if(111 == i) {
r = (v ? "0" : "") + ta.toString(8)
}else {
if(120 == i || 88 == i) {
j = v && 0 != h ? "0x" : "";
if(8 == x && lc) {
if(P[1]) {
r = (P[1] >>> 0).toString(16);
for(v = (P[0] >>> 0).toString(16);8 > v.length;) {
v = "0" + v
}
r += v
}else {
r = (P[0] >>> 0).toString(16)
}
}else {
if(0 > h) {
h = -h;
r = (ta - 1).toString(16);
P = [];
for(v = 0;v < r.length;v++) {
P.push((15 - parseInt(r[v], 16)).toString(16))
}
for(r = P.join("");r.length < 2 * x;) {
r = "f" + r
}
}else {
r = ta.toString(16)
}
}
88 == i && (j = j.toUpperCase(), r = r.toUpperCase())
}else {
112 == i && (0 === ta ? r = "(nil)" : (j = "0x", r = ta.toString(16)))
}
}
}
}
if(K) {
for(;r.length < H;) {
r = "0" + r
}
}
for(n && (j = 0 > h ? "-" + j : "+" + j);j.length + r.length < D;) {
y ? r += " " : C ? r = "0" + r : j = " " + j
}
r = j + r;
r.split("").forEach(function(a) {
f.push(a.charCodeAt(0))
});
break;
case "f":
;
case "F":
;
case "e":
;
case "E":
;
case "g":
;
case "G":
h = c("double");
if(isNaN(h)) {
r = "nan", C = p
}else {
if(isFinite(h)) {
K = p;
x = Math.min(H, 20);
if(103 == i || 71 == i) {
K = l, H = H || 1, x = parseInt(h.toExponential(x).split("e")[1], 10), H > x && -4 <= x ? (i = (103 == i ? "f" : "F").charCodeAt(0), H -= x + 1) : (i = (103 == i ? "e" : "E").charCodeAt(0), H--), x = Math.min(H, 20)
}
if(101 == i || 69 == i) {
r = h.toExponential(x), /[eE][-+]\d$/.test(r) && (r = r.slice(0, -1) + "0" + r.slice(-1))
}else {
if(102 == i || 70 == i) {
r = h.toFixed(x), 0 === h && jc(h) && (r = "-" + r)
}
}
j = r.split("e");
if(K && !v) {
for(;1 < j[0].length && -1 != j[0].indexOf(".") && ("0" == j[0].slice(-1) || "." == j[0].slice(-1));) {
j[0] = j[0].slice(0, -1)
}
}else {
for(v && -1 == r.indexOf(".") && (j[0] += ".");H > x++;) {
j[0] += "0"
}
}
r = j[0] + (1 < j.length ? "e" + j[1] : "");
69 == i && (r = r.toUpperCase());
n && 0 <= h && (r = "+" + r)
}else {
r = (0 > h ? "-" : "") + "inf", C = p
}
}
for(;r.length < D;) {
r = y ? r + " " : C && ("-" == r[0] || "+" == r[0]) ? r[0] + "0" + r.slice(1) : (C ? "0" : " ") + r
}
97 > i && (r = r.toUpperCase());
r.split("").forEach(function(a) {
f.push(a.charCodeAt(0))
});
break;
case "s":
C = (n = c("i8*")) ? ic(n) : 6;
K && (C = Math.min(C, H));
if(!y) {
for(;C < D--;) {
f.push(32)
}
}
if(n) {
for(v = 0;v < C;v++) {
f.push(G[n++ | 0])
}
}else {
f = f.concat(J("(null)".substr(0, C), l))
}
if(y) {
for(;C < D--;) {
f.push(32)
}
}
break;
case "c":
for(y && f.push(c("i8"));0 < --D;) {
f.push(32)
}
y || f.push(c("i8"));
break;
case "n":
y = c("i32*");
B[y >> 2] = f.length;
break;
case "%":
f.push(h);
break;
default:
for(v = j;v < d + 2;v++) {
f.push(A[v])
}
}
d += 2
}else {
f.push(h), d += 1
}
}
return f
}
function mc(a, b, c) {
c = kc(b, c);
b = ja();
a = hc(F(c, "i8", La), 1, c.length, a);
ka(b);
return a
}
function nc(a) {
nc.ia || (z = z + 4095 >> 12 << 12, nc.ia = l, w(ua), nc.hb = ua, ua = function() {
wa("cannot dynamically allocate, sbrk now has control")
});
var b = z;
0 != a && nc.hb(a);
return b
}
function U() {
return B[U.m >> 2]
}
function oc() {
return!!oc.ta
}
function pc(a) {
var b = p;
try {
a == __ZTIi && (b = l)
}catch(c) {
}
try {
a == __ZTIj && (b = l)
}catch(d) {
}
try {
a == __ZTIl && (b = l)
}catch(e) {
}
try {
a == __ZTIm && (b = l)
}catch(f) {
}
try {
a == __ZTIx && (b = l)
}catch(h) {
}
try {
a == __ZTIy && (b = l)
}catch(i) {
}
try {
a == __ZTIf && (b = l)
}catch(j) {
}
try {
a == __ZTId && (b = l)
}catch(n) {
}
try {
a == __ZTIe && (b = l)
}catch(y) {
}
try {
a == __ZTIc && (b = l)
}catch(v) {
}
try {
a == __ZTIa && (b = l)
}catch(C) {
}
try {
a == __ZTIh && (b = l)
}catch(D) {
}
try {
a == __ZTIs && (b = l)
}catch(K) {
}
try {
a == __ZTIt && (b = l)
}catch(H) {
}
return b
}
function qc(a, b, c) {
if(0 == c) {
return p
}
if(0 == b || b == a) {
return l
}
switch(pc(b) ? b : B[B[b >> 2] - 8 >> 2]) {
case 0:
return 0 == B[B[a >> 2] - 8 >> 2] ? qc(B[a + 8 >> 2], B[b + 8 >> 2], c) : p;
case 1:
return p;
case 2:
return qc(a, B[b + 8 >> 2], c);
default:
return p
}
}
function rc(a, b, c) {
if(!rc.sb) {
try {
B[__ZTVN10__cxxabiv119__pointer_type_infoE >> 2] = 0
}catch(d) {
}
try {
B[pb >> 2] = 1
}catch(e) {
}
try {
B[ob >> 2] = 2
}catch(f) {