functionaddWorker(){varc=newWorker(URL.createObjectURL(newBlob(["("+function(){functionc(b){returna.locateFile?a.locateFile(b,r):r+b}functionf(b,a){b||v("Assertion failed: "+a)}functionp(b){vare=a["_"+b];f(e,"Cannot call unknown function "+b+", make sure it is exported");returne}functionq(b,a,d,n,c){c={string:function(b){vara=0;if(null!==b&&void0!==b&&0!==b){vare=(b.length<<2)+1;a=Q(e);C(b,B,a,e)}returna},array:function(b){vara=Q(b.length);R.set(b,a);returna}};vare=p(b),g=[];b=0;
63}a[d++]=128|g>>6&63}a[d++]=128|g&63}}a[d]=0;returnd-e}functionG(b){for(;0<b.length;){vare=b.shift();if("function"==typeofe)e();else{vard=e.func;"number"===typeofd?void0===e.arg?a.dynCall_v(d):a.dynCall_vi(d,e.arg):d(void0===e.arg?null:e.arg)}}}functionK(b){returnString.prototype.startsWith?b.startsWith(L):0===b.indexOf(L)}functionT(){try{if(a.wasmBinary)returnnewUint8Array(a.wasmBinary);varb=w(t);if(b)returnb;if(a.readBinary)returna.readBinary(t);throw"both async and sync fetching of the wasm failed";
}catch(e){v(e)}}functionja(){returna.wasmBinary||!D&&!x||"function"!==typeoffetch?newPromise(function(b,a){b(T())}):fetch(t,{credentials:"same-origin"}).then(function(b){if(!b.ok)throw"failed to load wasm binary file at '"+t+"'";returnb.arrayBuffer()})["catch"](function(){returnT()})}functionka(b){functione(b,e){a.asm=b.exports;y--;a.monitorRunDependencies&&a.monitorRunDependencies(y);if(0==y&&(null!==M&&(clearInterval(M),M=null),E)){vard=E;E=null;d()}}functiond(b){e(b.instance)}functionc(b){ja().then(function(b){returnWebAssembly.instantiate(b,
l)}).then(b,function(b){z("failed to asynchronously prepare wasm: "+b);v(b)})}varl={env:b,global:{NaN:NaN,Infinity:Infinity},"global.Math":Math,asm2wasm:la};y++;a.monitorRunDependencies&&a.monitorRunDependencies(y);if(a.instantiateWasm)try{returna.instantiateWasm(l,e)}catch(J){returnz("Module.instantiateWasm callback failed with error: "+J),!1}a.wasmBinary||"function"!==typeofWebAssembly.instantiateStreaming||K(t)||"function"!==typeoffetch?c(d):WebAssembly.instantiateStreaming(fetch(t,{credentials:"same-origin"}),
l).then(d,function(b){z("wasm streaming compile failed: "+b);z("falling back to ArrayBuffer instantiation");c(d)});return{}}functionU(b){v("Cannot enlarge memory arrays to size "+b+" bytes. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value "+A+", (2) compile with -s ALLOW_MEMORY_GROWTH=1 which allows increasing the size at runtime, or (3) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ")}functionV(b){for(vara=[],
d=0;d<b.length;d++){varc=b[d];255<c&&(ma&&f(!1,"Character code "+c+" ("+String.fromCharCode(c)+") at offset "+d+" not in 0x00-0xFF."),c&=255);a.push(String.fromCharCode(c))}returna.join("")}functionw(b){if(K(b)){b=b.slice(L.length);if("boolean"===typeofF&&F){try{vara=Buffer.from(b,"base64")}catch(J){a=newBuffer(b,"base64")}vard=newUint8Array(a.buffer,a.byteOffset,a.byteLength)}elsetry{varc=na(b),l=newUint8Array(c.length);for(a=0;a<c.length;++a)l[a]=c.charCodeAt(a);d=l}catch(J){throwError("Converting base64 string to bytes failed.");
}returnd}}functionH(b){this.name="ExitStatus";this.message="Program terminated with exit("+b+")";this.status=b}functionN(b){functione(){if(!a.calledRun&&(a.calledRun=!0,!W)){X||(X=!0,G(oa));G(pa);if(a.onRuntimeInitialized)a.onRuntimeInitialized();if(a.postRun)for("function"==typeofa.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)Y.unshift(a.postRun.shift());G(Y)}}if(!(0<y)){if(a.preRun)for("function"==typeofa.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)Z.unshift(a.preRun.shift());G(Z);
0<y||a.calledRun||(a.setStatus?(a.setStatus("Running..."),setTimeout(function(){setTimeout(function(){a.setStatus("")},1);e()},1)):e())}}functionv(b){if(a.onAbort)a.onAbort(b);void0!==b?(aa(b),z(b),b=JSON.stringify(b)):b="";W=!0;throw"abort("+b+"). Build with -s ASSERTIONS=1 for more info.";}functionba(b){returnparseInt(b.match(/[a-fA-F0-9]{2}/g).reverse().join(""),16)}vara="undefined"!==typeofa?a:{},h={},u;for(uina)a.hasOwnProperty(u)&&(h[u]=a[u]);a.arguments=[];a.thisProgram="./this.program";
function(b){document.title=b};varaa=a.print||("undefined"!==typeofconsole?console.log.bind(console):"undefined"!==typeofprint?print:null),z=a.printErr||("undefined"!==typeofprintErr?printErr:"undefined"!==typeofconsole&&console.warn.bind(console)||aa);for(uinh)h.hasOwnProperty(u)&&(a[u]=h[u]);h=void0;varla={"f64-rem":function(b,a){returnb%a},"debugger":function(){debugger}};"object"!==typeofWebAssembly&&z("no native wasm support detected");varW=!1,S="undefined"!==typeofTextDecoder?newTextDecoder("utf8"):
void0;"undefined"!==typeofTextDecoder&&newTextDecoder("utf-16le");varR,B,I,m,A=a.TOTAL_MEMORY||67108864;5242880>A&&z("TOTAL_MEMORY should be larger than TOTAL_STACK, was "+A+"! (TOTAL_STACK=5242880)");if(a.buffer)h=a.buffer;else{if("object"===typeofWebAssembly&&"function"===typeofWebAssembly.Memory){varda=newWebAssembly.Memory({initial:A/65536,maximum:A/65536});h=da.buffer}elseh=newArrayBuffer(A);a.buffer=h}a.HEAP8=R=newInt8Array(h);a.HEAP16=I=newInt16Array(h);a.HEAP32=m=newInt32Array(h);
d).match(/[a-fA-F0-9]{2}/g).reverse().join("");d=c.blob.substring(0,78)+h+c.blob.substring(86,c.blob.length);try{if("cn"===c.algo)f=ea(d,0,c.variant,c.height);elseif("cn-lite"===c.algo)f=ea(d,1,c.variant,c.height);elsethrow"algorithm not supported!";e=ba(f.substring(56,64))<a}catch(ha){console.log(ha)}}},k=function(){e?postMessage(JSON.stringify({identifier:"solved",job_id:c.job_id,nonce:h,result:f})):postMessage("nothing")};if(0===a)g(),k();else{varm=performance.now();g();g=performance.now()-