1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// This is lzma.js, powered by lzip (which is GPL, source code at https://github.com/kripken/lzma.js)
var LZMA = {
run: function(data, decompress) {
var inputIndex = 0;
var returnValue = [];
var Module = {
arguments: ['-q'].concat(decompress ? ['-d'] : []),
stdin: function() { return inputIndex < data.length ? data[inputIndex++] : null },
stdout: function(x) { if (x !== null) returnValue.push(x) }
};
function a(b){throw b}var ba=void 0,j=null,ja=[],qa=typeof process==="object",sa=typeof window==="object",Aa=typeof importScripts==="function",Ha=!sa&&!qa&&!Aa;if(qa){print=(function(b){process.stdout.write(b+"\n")});printErr=(function(b){process.stderr.write(b+"\n")});var $a=require("fs");read=(function(b){var d=$a.readFileSync(b).toString();!d&&b[0]!="/"&&(b=__dirname.split("/").slice(0,-1).join("/")+"/src/"+b,d=$a.readFileSync(b).toString());return d});load=(function(b){ab(read(b))});ja=process.argv.slice(2)}else{Ha?(this.read||(this.read=(function(b){snarf(b)})),typeof scriptArgs!="undefined"?ja=scriptArgs:typeof arguments!="undefined"&&(ja=arguments)):sa?(this.print=printErr=(function(b){console.log(b)}),this.read=(function(b){var d=new XMLHttpRequest;d.open("GET",b,!1);d.send(j);return d.responseText}),this.arguments&&(ja=arguments)):Aa?this.load=importScripts:a("Unknown runtime environment. Where are we?")}function ab(b){eval.call(j,b)}typeof load=="undefined"&&typeof read!="undefined"&&(this.load=(function(b){ab(read(b))}));typeof printErr==="undefined"&&(this.printErr=(function(){}));typeof print==="undefined"&&(this.print=printErr);try{this.Module=Module}catch(bb){this.Module=Module={}}if(!Module.arguments){Module.arguments=ja}if(Module.print){print=Module.print}function qb(b){if(rb==1){return 1}var d={"%i1":1,"%i8":1,"%i16":2,"%i32":4,"%i64":8,"%float":4,"%double":8}["%"+b];d||(b[b.length-1]=="*"?d=rb:b[0]=="i"&&(b=parseInt(b.substr(1)),sb(b%8==0),d=b/8));return d}function Fb(b){var d=l;l+=b;l=l+3>>2<<2;return d}function Gb(b){var d=Ob;Ob+=b;Ob=Ob+3>>2<<2;if(Ob>=Pb){for(;Pb<=Ob;){Pb=2*Pb+4095>>12<<12}var b=m,c=new ArrayBuffer(Pb);m=new Int8Array(c);Qb=new Int16Array(c);o=new Int32Array(c);p=new Uint8Array(c);Rb=new Uint16Array(c);r=new Uint32Array(c);Sb=new Float32Array(c);Tb=new Float64Array(c);m.set(b)}return d}var rb=4,Wb={},Xb,s,Yb;function $b(b){print(b+":\n"+Error().stack);a("Assertion: "+b)}function sb(b,d){b||$b("Assertion failed: "+d)}var ac=this;Module.ccall=(function(b,d,c,e){try{var f=eval("_"+b)}catch(i){try{f=ac.Module["_"+b]}catch(h){}}sb(f,"Cannot call unknown function "+b+" (perhaps LLVM optimizations or closure removed it?)");var g=0,b=e?e.map((function(b){if(c[g++]=="string"){var d=l;Fb(b.length+1);bc(b,d);b=d}return b})):[];return(function(b,c){return c=="string"?cc(b):b})(f.apply(j,b),d)});function dc(b,d,c){c=c||"i8";c[c.length-1]==="*"&&(c="i32");switch(c){case"i1":m[b]=d;break;case"i8":m[b]=d;break;case"i16":Qb[b>>1]=d;break;case"i32":o[b>>2]=d;break;case"i64":o[b>>2]=d;break;case"float":Sb[b>>2]=d;break;case"double":ec[0]=d;o[b>>2]=fc[0];o[b+4>>2]=fc[1];break;default:$b("invalid type for setValue: "+c)}}Module.setValue=dc;Module.getValue=(function(b,d){d=d||"i8";d[d.length-1]==="*"&&(d="i32");switch(d){case"i1":return m[b];case"i8":return m[b];case"i16":return Qb[b>>1];case"i32":return o[b>>2];case"i64":return o[b>>2];case"float":return Sb[b>>2];case"double":return fc[0]=o[b>>2],fc[1]=o[b+4>>2],ec[0];default:$b("invalid type for setValue: "+d)}return j});var gc=1,A=2;Module.ALLOC_NORMAL=0;Module.ALLOC_STACK=gc;Module.ALLOC_STATIC=A;function C(b,d,c){var e,f;typeof b==="number"?(e=!0,f=b):(e=!1,f=b.length);var i=typeof d==="string"?d:j,c=[hc,Fb,Gb][c===ba?A:c](Math.max(f,i?1:d.length));if(e){return ic(c,f),c}e=0;for(var h;e<f;){var g=b[e];typeof g==="function"&&(g=Wb.Ua(g));h=i||d[e];h===0?e++:(h=="i64"&&(h="i32"),dc(c+e,g,h),e+=qb(h))}return c}Module.allocate=C;function cc(b,d){for(var c=typeof d=="undefined",e="",f=0,i,h=String.fromCharCode(0);;){i=String.fromCharCode(p[b+f]);if(c&&i==h){break}e+=i;f+=1;if(!c&&f==d){break}}return e}Module.Pointer_stringify=cc;Module.Array_stringify=(function(b){for(var d="",c=0;c<b.length;c++){d+=String.fromCharCode(b[c])}return d});var kc,lc=4096,m,p,Qb,Rb,o,r,Sb,Tb,l,mc,Ob,nc=Module.TOTAL_STACK||5242880,Pb=Module.TOTAL_MEMORY||10485760;sb(!!Int32Array&&!!Float64Array&&!!(new Int32Array(1)).subarray&&!!(new Int32Array(1)).set,"Cannot fallback to non-typed array case: Code is too specialized");var oc=new ArrayBuffer(Pb);m=new Int8Array(oc);Qb=new Int16Array(oc);o=new Int32Array(oc);p=new Uint8Array(oc);Rb=new Uint16Array(oc);r=new Uint32Array(oc);Sb=new Float32Array(oc);Tb=new Float64Array(oc);o[0]=255;sb(p[0]===255&&p[3]===0,"Typed arrays 2 must be run on a little-endian system");var qc=pc("(null)");Ob=qc.length;for(var rc=0;rc<qc.length;rc++){m[rc]=qc[rc]}Module.HEAP=ba;Module.HEAP8=m;Module.HEAP16=Qb;Module.HEAP32=o;Module.HEAPU8=p;Module.HEAPU16=Rb;Module.HEAPU32=r;Module.HEAPF32=Sb;Module.HEAPF64=Tb;mc=(l=Math.ceil(Ob/4)*4)+nc;var sc=Math.ceil(mc/8)*8;m.subarray(sc);var fc=o.subarray(sc>>2);Sb.subarray(sc>>2);var ec=Tb.subarray(sc>>3);mc=sc+8;Ob=mc+4095>>12<<12;function tc(b){for(;b.length>0;){var d=b.shift(),c=d.l;typeof c==="number"&&(c=kc[c]);c(d.Pa===ba?j:d.Pa
|