varModule;if(!Module)Module=(typeofModule!=="undefined"?Module:null)||{};varmoduleOverrides={};for(varkeyinModule){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}varENVIRONMENT_IS_WEB=false;varENVIRONMENT_IS_WORKER=false;varENVIRONMENT_IS_NODE=false;varENVIRONMENT_IS_SHELL=false;if(Module["ENVIRONMENT"]){if(Module["ENVIRONMENT"]==="WEB"){ENVIRONMENT_IS_WEB=true}elseif(Module["ENVIRONMENT"]==="WORKER"){ENVIRONMENT_IS_WORKER=true}elseif(Module["ENVIRONMENT"]==="NODE"){ENVIRONMENT_IS_NODE=true}elseif(Module["ENVIRONMENT"]==="SHELL"){ENVIRONMENT_IS_SHELL=true}else{thrownewError("The provided Module['ENVIRONMENT'] value is not valid. It must be one of: WEB|WORKER|NODE|SHELL.")}}else{ENVIRONMENT_IS_WEB=typeofwindow==="object";ENVIRONMENT_IS_WORKER=typeofimportScripts==="function";ENVIRONMENT_IS_NODE=typeofprocess==="object"&&typeofrequire==="function"&&!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER;ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER}if(ENVIRONMENT_IS_NODE){if(!Module["print"])Module["print"]=console.log;if(!Module["printErr"])Module["printErr"]=console.warn;varnodeFS;varnodePath;Module["read"]=functionshell_read(filename,binary){if(!nodeFS)nodeFS=require("fs");if(!nodePath)nodePath=require("path");filename=nodePath["normalize"](filename);varret=nodeFS["readFileSync"](filename);returnbinary?ret:ret.toString()};Module["readBinary"]=functionreadBinary(filename){varret=Module["read"](filename,true);if(!ret.buffer){ret=newUint8Array(ret)}assert(ret.buffer);returnret};Module["load"]=functionload(f){globalEval(read(f))};if(!Module["thisProgram"]){if(process["argv"].length>1){Module["thisProgram"]=process["argv"][1].replace(/\\/g,"/")}else{Module["thisProgram"]="unknown-program"}}Module["arguments"]=process["argv"].slice(2);if(typeofmodule!=="undefined"){module["exports"]=Module}process["on"]("uncaughtException",(function(ex){if(!(exinstanceofExitStatus)){throwex}}));Module["inspect"]=(function(){return"[Emscripten Module object]"})}elseif(ENVIRONMENT_IS_SHELL){if(!Module["print"])Module["print"]=print;if(typeofprintErr!="undefined")Module["printErr"]=printErr;if(typeofread!="undefined"){Module["read"]=read}else{Module["read"]=functionshell_read(){throw"no read() available"}}Module["readBinary"]=functionreadBinary(f){if(typeofreadbuffer==="function"){returnnewUint8Array(readbuffer(f))}vardata=read(f,"binary");assert(typeofdata==="object");returndata};if(typeofscriptArgs!="undefined"){Module["arguments"]=scriptArgs}elseif(typeofarguments!="undefined"){Module["arguments"]=arguments}if(typeofquit==="function"){Module["quit"]=(function(status,toThrow){quit(status)})}}elseif(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){Module["read"]=functionshell_read(url){varxhr=newXMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);returnxhr.responseText};if(ENVIRONMENT_IS_WORKER){Module["readBinary"]=functionreadBinary(url){varxhr=newXMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);returnnewUint8Array(xhr.response)}}Module["readAsync"]=functionreadAsync(url,onload,onerror){varxhr=newXMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=functionxhr_onload(){if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response)}else{onerror()}};xhr.onerror=onerror;xhr.send(null)};if(typeofarguments!="undefined"){Module["arguments"]=arguments}if(typeofconsole!=="undefined"){if(!Module["print"])Module["print"]=functionshell_print(x){console.log(x)};if(!Module["printErr"])Module["printErr"]=functionshell_printErr(x){console.warn(x)}}else{varTRY_USE_DUMP=false;if(!Module["print"])Module["print"]=TRY_USE_DUMP&&typeofdump!=="undefined"?(function(x){dump(x)}):(function(x){})}if(ENVIRONMENT_IS_WORKER){Module["load"]=importScripts}if(typeofModule["setWindowTitle"]==="undefined"){Module["setWindowTitle"]=(function(title){document.title=title})}}else{throw"Unknown runtime environment. Where are we?"}functionglobalEval(x){eval.call(null,x)}if(!Module["load"]&&Module["read"]){Module["load"]=functionload(f){globalEval(Module["read"](f))}}if(!Module["print"]){Module["print"]=(function(){})}if(!Module["printErr"]){Module["printErr"]=Module["print"]}if(!Module["arguments"]){Module["arguments"]=[]}if(!Module["thisProgram"]){Module["thisProgram"]="./this.program"}if(!Module["quit"]){Module["quit"]=(function(status,toThrow){throwtoThrow})}Module.print=Module["print"];Module.printErr=Module["printErr"];Module["preRun"]=[];Module["postRun"]=[];for(varkeyinmoduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=moduleOverrides[key]}}moduleOverrides=undefined;varRuntime={setTempRet0:(function(value){tempRet0=value;returnvalue}),getTempRet0:(function(){returntempRet0}),stackSave:(function(){returnSTACKTOP}),stackRestore:(function(stackTop){STACKTOP=stackTop}),getNativeTypeSize:(function(type){switch(type){case"i1":case"i8":return1;case"i16":return2;case"i32":return4;case"i64":return8;case"float":return4;case"double":return8;default:{if(type[type.length-1]==="*"){returnRuntime.QUANTUM_SIZE}elseif(type[0]==="i"){varbits=parseInt(type.substr(1));assert(bits%8===0);returnbits/8}else{return0}}}}),getNativeFieldSize:(function(type){returnMath.max(Runtime.getNativeTypeSize(type),Runtime.QUANTUM_SIZE)}),STACK_ALIGN:16,prepVararg:(function(ptr,type){if(type==="double"||type==="i64"){if(ptr&7){assert((ptr&7)===4);ptr+=4}}else{assert((ptr&3)===0)}returnptr}),getAlignSize:(function(type,size,vararg){if(!vararg&&(type=="i64"||type=="double"))return8;if(!type)returnMath.min(size,8);returnMath.min(size||(type?Runtime.getNativeFieldSize(type):0),Runtime.QUANTUM_SIZE)}),dynCall:(function(sig,ptr,args){if(args&&args.length){returnModule["dynCall_"+sig].apply(null,[ptr].concat(args))}else{returnModule["dynCall_"+sig].call(null,ptr)}}),functionPointers:[],addFunction:(function(func){for(vari=0;i<Runtime.functionPointers.length;i++){if(!Runtime.functionPointers[i]){Runtime.functionPointers[i]=func;return2*(1+i)}}throw"Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS."}),removeFunction:(function(index){Runtime.functionPointers[(index-2)/2]=null}),warnOnce:(function(text){if(!Runtime.warnOnce.shown)Runtime.warnOnce.shown={};if(!Runtime.warnOnce.shown[text]){Runtime.warnOnce.shown[text]=1;Module.printErr(text)}}),funcWrappers:{},getFuncWrapper:(function(func,sig){if(!func)return;assert(sig);if(!Runtime.funcWrappers[sig]){Runtime.funcWrappers[sig]={}}varsigCache=Runtime.funcWrappers[sig];if(!sigCache[func]){if(sig.length===1){sigCache[func]=functiondynCall_wrapper(){returnRuntime.dynCall(sig,func)}}elseif(sig.length===2){sigCache[func]=functiondynCall_wrapper(arg){returnRuntime.dynCall(sig,func,[arg])}}else{sigCache[func]=functiondynCall_wrapper(){returnRuntime.dynCall(sig,func,Array.prototype.slice.call(arguments))}}}returnsigCache[func]}),getCompilerSetting:(function(name){throw"You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work"}),stackAlloc:(function(size){varret=STACKTOP;STACKTOP=STACKTOP+size|0;STACKTOP=STACKTOP+15&-16;returnret}),staticAlloc:(function(size){varret=STATICTOP;STATICTOP=STATICTOP+size|0;STATICTOP=STATICTOP+15&-16;returnret}),dynamicAlloc:(function(size){varret=HEAP32[DYNAMICTOP_PTR>>2];varend=(ret+size+15|0)&-16;HEAP32[DYNAMICTOP_PTR>>2]=end;if(end>=TOTAL_MEMORY){varsuccess=enlargeMemory();if(!success){HEAP32[DYNAMICTOP_PTR>>2]=ret;return0}}returnret}),alignMemory:(function(size,quantum){varret=size=Math.ceil(size/(quantum?quantum:16))*(quantum?quantum:16);returnret}),makeBigInt:(function(low,high,unsigned){varret=unsigned?+(low>>>0)++(high>>>0)*4294967296:+(low>>>0)++(high|0)*4294967296;returnret}),GLOBAL_BASE:1024,QUANTUM_SIZE:4,__dummy__:0};Module["Runtime"]=Runtime;varABORT=0;varEXITSTATUS=0;functionassert(condition,text){if(!condition){abort("Assertion failed: "+text)}}functiongetCFunc(ident){varfunc=Module["_"+ident];if(!func){try{func=eval("_"+ident)}catch(e){}}assert(func,"Cannot call unknown function "+ident+" (perhaps LLVM optimizations or closure removed it?)");returnfunc}varcwrap,ccall;((function(){varJSfuncs={"stackSave":(function(){Runtime.stackSave()}),"stackRestore":(function(){Runtime.stackRestore()}),"arrayToC":(function(arr){varret=Runtime.stackAlloc(arr.length);writeArrayToMemory(arr,ret);returnret}),"stringToC":(function(str){varret=0;if(str!==null&&str!==undefined&&str!==0){varlen=(str.length<<2)+1;ret=Runtime.stackAlloc(len);stringToUTF8(str,ret,len)}returnret})};vartoC={"string":JSfuncs["stringToC"],"array":JSfuncs["arrayToC"]};ccall=functionccallFunc(ident,returnType,argTypes,args,opts){varfunc=getCFunc(ident);varcArgs=[];varstack=0;if(args){for(vari=0;i<args.length;i++){varconverter=toC[argTypes[i]];if(converter){if(stack===0)stack=Runtime.stackSave();cArgs[i]=converter(args[i])}else{cArgs[i]=args[i]}}}varret=func.apply(null,cArgs);if(returnType==="string")ret=Pointer_stringify(ret);if(stack!==0){if(opts&&opts.async){EmterpreterAsync.asyncFinalizers.push((function(){Runtime.stackRestore(stack)}));return}Runtime.stackRestore(stack)}returnret};varsourceRegex=/^function\s*[a-zA-Z$_0-9]*\s*\(([^)]*)\)\s*{\s*([^*]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/;functionparseJSFunc(jsfunc){varparsed=jsfunc.toString().match(sourceRegex).slice(1);return{arguments:parsed[0],body:parsed[1],returnValue:parsed[2]}}varJSsource=null;functionensureJSsource(){if(!JSsource){JSsource={};for(varfuninJSfuncs){if(JSfuncs.hasOwnProperty(fun)){JSsource[fun]=parseJSFunc(JSfuncs[fun])}}}}cwrap=functioncwrap(ident,returnType,argTypes){argTypes=argTypes||[];varcfunc=getCFunc(ident);varnumericArgs=argTypes.every((function(type){returntype==="number"}));varnumericRet=returnType!=="string";if(numericRet&&numericArgs){returncfunc}varargNames=argTypes.map((function(x,i){return"$"+i}));varfuncstr="(function("+argNames.join(",")+") {";varnargs=argTypes.length;if(!numericArgs){ensureJSsource();funcstr+="var stack = "+JSsource["stackSave"].body+";";for(vari=0;i<nargs;i++){vararg=argNames[i],type=argTypes[i];if(type==="number")continue;varconvertCode=JSsource[type+"ToC"];funcstr+="var "+convertCode.arguments+" = "+arg+";";funcstr+=convertCode.body+";";funcstr+=arg+"=("+convertCode.returnValue+");"}}varcfuncname=parseJSFunc((function(){returncfunc})).returnValue;funcstr+="var ret = "+cfuncname+"("+argNames.join(",")+");";if(!numericRet){varstrgfy=parseJSFunc((function(){returnPointer_stringify})).returnValue;funcstr+="ret = "+strgfy+"(ret);"}if(!numericArgs){ensureJSsource();funcstr+=JSsource["stackRestore"].body.replace("()","(stack)")+";"}funcstr+="return ret})";returneval(funcstr)}}))();Module["ccall"]=ccall;Module["cwrap"]=cwrap;functionsetValue(ptr,value,type,noSafe){type=type||"i8";if(type.charAt(type.length-1)==="*")type="i32";switch(type){case"i1":HEAP8[ptr>>0]=value;break;case"i8":HEAP8[ptr>>0]=value;break;case"i16":HEAP16[ptr>>1]=value;break;case"i32":HEAP32[ptr>>2]=value;break;case"i64":tempI64=[value>>>0,(tempDouble=value,+Math_abs(tempDouble)>=1?tempDouble>0?(Math_min(+Math_floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math_ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[ptr>>2]=tempI64[0],HEAP32[ptr+4>>2]=tempI64[1];break;case"float":HEAPF32[ptr>>2]=value;break;case"double":HEAPF64[ptr>>3]=value;break;default:abort("invalid type for setValue: "+type)}}Module["setValue"]=setValue;functiongetValue(ptr,type,noSafe){type=type||"i8";if(type.charAt(type.length-1)==="*")type="i32";switch(type){case"i1":returnHEAP8[ptr>>0];case"i8":returnHEAP8[ptr>>0];case"i16":returnHEAP16[ptr>>1];case"i32":returnHEAP32[ptr>>2];case"i64":returnHEAP32[ptr>>2];case"float":returnHEAPF32[ptr>>2];case"double":returnHEAPF64[ptr>>3];default:abort("invalid type for setValue: "+type)}returnnull}Module["getValue"]=getValue;varALLOC_NORMAL=0;varALLOC_STACK=1;varALLOC_STATIC=2;varALLOC_DYNAMIC=3;varALLOC_NONE=4;Module["ALLOC_NORMAL"]=ALLOC_NORMAL;Module["ALLOC_STACK"]=ALLOC_STACK;Module["ALLOC_STATIC"]=ALLOC_STATIC;Module["ALLOC_DYNAMIC"]=ALLOC_DYNAMIC;Module["ALLOC_NONE"]=ALLOC_NONE;functionallocate(slab,types,allocator,ptr){varzeroinit,size;if(typeofslab==="number"){zeroinit=true;size=slab}else{zeroinit=false;size=slab.length}varsingleType=typeoftypes==="string"?types:null;varret;if(allocator==ALLOC_NONE){ret=ptr}else{ret=[typeof_malloc==="function"?_malloc:Runtime.staticAlloc,Runtime.stackAlloc,Runtime.staticAlloc,Runtime.dynamicAlloc][allocator===undefined?ALLOC_STATIC:allocator](Math.max(size,singleType?1:types.length))}if(zeroinit){varptr=ret,stop;assert((ret&3)==0);stop=ret+(size&~3);for(;ptr<stop;ptr+=4){HEAP32[ptr>>2]=0}stop=ret+size;while(ptr<stop){HEAP8[ptr++>>0]=0}returnret}if(singleType==="i8"){if(slab.subarray||slab.slice){HEAPU8.set(slab,ret)}else{HEAPU8.set(newUint8Array(slab),ret)}returnret}vari=0,type,typeSize,previousType;while(i<size){varcurr=slab[i];if(typeofcurr==="function"){curr=Runtime.getFunctionIndex(curr)}type=singleType||types[i];if(type===0){i++;continue}if(type=="i64")type="i32";setValue(ret+i,curr,type);if(previousType!==type){typeSize=Runtime.getNativeTypeSize(type);previousType=type}i+=typeSize}returnret}Module["allocate"]=allocate;functiongetMemory(size){if(!staticSealed)returnRuntime.staticAlloc(size);if(!runtimeInitialized)returnRuntime.dynamicAlloc(size);return_malloc(size)}Module["getMemory"]=getMemory;functionPointer_stringify(ptr,length){if(length===0||!ptr)return"";varhasUtf=0;vart;vari=0;while(1){t=HEAPU8[ptr+i>>0];hasUtf|=t;if(t==0&&!length)break;i++;if(length&&i==length)break}if(!length)length=i;varret="";if(hasUtf<128){varMAX_CHUNK=1024;varcurr;while(length>0){curr=String.fromCharCode.apply(String,HEAPU8.subarray(ptr,ptr+Math.min(length,MAX_CHUNK)));ret=ret?ret+curr:curr;ptr+=MAX_CHUNK;length-=MAX_CHUNK}returnret}returnModule["UTF8ToString"](ptr)}Module["Pointer_stringify"]=Pointer_stringify;functionAsciiToString(ptr){varstr="";while(1){varch=HEAP8[ptr++>>0];if(!ch)returnstr;str+=String.fromCharCode(ch)}}Module["AsciiToString"]=AsciiToString;functionstringToAscii(str,outPtr){returnwriteAsciiToMemory(str,outPtr,false)}Module["stringToAscii"]=stringToAscii;varUTF8Decoder=typeofTextDecoder!=="undefined"?newTextDecoder("utf8"):undefined;functionUTF8ArrayToString(u8Array,idx){varendPtr=idx;while(u8Array[endPtr])++endPtr;if(endPtr-idx>16&&u8Array.subarray&&UTF8Decoder){returnUTF8Decoder.decode(u8Array.subarray(idx,endPtr))}else{varu0,u1,u2,u3,u4,u5;varstr="";while(1){u0=u8Array[idx++];if(!u0)returnstr;if(!(u0&128)){str+=String.fromCharCode(u0);continue}u1=u8Array[idx++]&63;if((u0&224)==192){str+=String.fromCharCode((u0&31)<<6|u1);continue}u2=u8Array[idx++]&63;if((u0&240)==224){u0=(u0&15)<<12|u1<<6|u2}else{u3=u8Array[idx++]&63;if((u0&248)==240){u0=(u0&7)<<18|u1<<12|u2<<6|u3}else{u4=u8Array[idx++]&63;if((u0&252)==248){u0=(u0&3)<<24|u1<<18|u2<<12|u3<<6|u4}else{u5=u8Array[idx++]&63;u0=(u0&1)<<30|u1<<24|u2<<18|u3<<12|u4<<6|u5}}}if(u0<65536){str+=String.fromCharCode(u0)}else{varch=u0-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}}}}Module["UTF8ArrayToString"]=UTF8ArrayToString;functionUTF8ToString(ptr){returnUTF8ArrayToString(HEAPU8,ptr)}Module["UTF8ToString"]=UTF8ToString;functionstringToUTF8Array(str,outU8Array,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return0;varstartIdx=outIdx;varendIdx=outIdx+maxBytesToWrite-1;for(vari=0;i<str.length;++i){varu=str.charCodeAt(i);if(u>=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127){if(outIdx>=endIdx)break;outU8Array[outIdx++]=u}elseif(u<=2047){if(outIdx+1>=endIdx)break;outU8Array[outIdx++]=192|u>>6;outU8Array[outIdx++]=128|u&63}elseif(u<=65535){if(outIdx+2>=endIdx)break;outU8Array[outIdx++]=224|u>>12;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}elseif(u<=2097151){if(outIdx+3>=endIdx)break;outU8Array[outIdx++]=240|u>>18;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}elseif(u<=67108863){if(outIdx+4>=endIdx)break;outU8Array[outIdx++]=248|u>>24;outU8Array[outIdx++]=128|u>>18&63;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}else{if(outIdx+5>=endIdx)break;outU8Array[outIdx++]=252|u>>30;outU8Array[outIdx++]=128|u>>24&63;outU8Array[outIdx++]=128|u>>18&63;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}}outU8Array[outIdx]=0;returnoutIdx-startIdx}Module["stringToUTF8Array"]=stringToUTF8Array;functionstringToUTF8(str,outPtr,maxBytesToWrite){returnstringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}Module["stringToUTF8"]=stringToUTF8;functionlengthBytesUTF8(str){varlen=0;for(vari=0;i<str.length;++i){varu=str.charCodeAt(i);if(u>=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127){++len}elseif(u<=2047){len+=2}elseif(u<=65535){len+=3}elseif(u<=2097151){len+=4}elseif(u<=67108863){len+=5}else{len+=6}}returnlen}Module["lengthBytesUTF8"]=lengthBytesUTF8;varUTF16Decoder=typeofTextDecoder!=="undefined"?newTextDecoder("utf-16le"):undefined;functiondemangle(func){var__cxa_demangle_func=Module["___cxa_demangle"]||Module["__cxa_demangle"];if(__cxa_demangle_func){try{vars=func.substr(1);varlen=lengthBytesUTF8(s)+1;varbuf=_malloc(len);stringToUTF8(s,buf,len);varstatus=_malloc(4);varret=__cxa_demangle_func(buf,0,0,status);if(getValue(status,"i32")===0&&ret){returnPointer_stringify(ret)}}catch(e){}finally{if(buf)_free(buf);if(status)_free(status);if(ret)_free(ret)}returnfunc}Runtime.warnOnce("warning: build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling");returnfunc}functiondemangleAll(text){varregex=/__Z[\w\d_]+/g;returntext.replace(regex,(function(x){vary=demangle(x);returnx===y?x:x+" ["+y+"]"}))}functionjsStackTrace(){varerr=newError;if(!err.stack){try{thrownewError(0)}catch(e){err=e}if(!err.stack){return"(no stack trace available)"}}returnerr.stack.toString()}functionstackTrace(){varjs=jsStackTrace();if(Module["extraStackTrace"])js+="\n"+Module["extraStackTrace"]();returndemangleAll(js)}Module["stackTrace"]=stackTrace;varWASM_PAGE_SIZE=65536;varASMJS_PAGE_SIZE=16777216;functionalignUp(x,multiple){if(x%multiple>0){x+=multiple-x%multiple}returnx}varHEAP,buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;functionupdateGlobalBuffer(buf){Module["buffer"]=buffer=buf}functionupdateGlobalBufferViews(){Module["HEAP8"]=HEAP8=newInt8Array(buffer);Module["HEAP16"]=HEAP16=newInt16Array(buffer);Module["HEAP32"]=HEAP32=newInt32Array(buffer);Module["HEAPU8"]=HEAPU8=newUint8Array(buffer);Module["HEAPU16"]=HEAPU16=newUint16Array(buffer);Module["HEAPU32"]=HEAPU32=newUint32Array(buffer);Module["HEAPF32"]=HEAPF32=newFloat32Array(buffer);Module["HEAPF64"]=HEAPF64=newFloat64Array(buffer)}varSTATIC_BASE,STATICTOP,staticSealed;varSTACK_BASE,STACKTOP,STACK_MAX;varDYNAMIC_BASE,DYNAMICTOP_PTR;STATIC_BASE=STATICTOP=STACK_BASE=STACKTOP=STACK_MAX=DYNAMIC_BASE=DYNAMICTOP_PTR=0;staticSealed=false;functionabortOnCannotGrowMemory(){abort("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value "+TOTAL_MEMORY+", (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 ")}functionenlargeMemory(){abortOnCannotGrowMemory()}varTOTAL_STACK=Module["TOTAL_STACK"]||5242880;varTOTAL_MEMORY=Module["TOTAL_MEMORY"]||134217728;if(TOTAL_MEMORY<TOTAL_STACK)Module.printErr("TOTAL_MEMORY should be larger than TOTAL_STACK, was "+TOTAL_MEMORY+"! (TOTAL_STACK="+TOTAL_STACK+")");if(Module["buffer"]){buffer=Module["buffer"]}else{if(typeofWebAssembly==="object"&&typeofWebAssembly.Memory==="function"){Module["wasmMemory"]=newWebAssembly.Memory({"initial":TOTAL_MEMORY/WASM_PAGE_SIZE,"maximum":TOTAL_MEMORY/WASM_PAGE_SIZE});buffer=Module["wasmMemory"].buffer}else{buffer=newArrayBuffer(TOTAL_MEMORY)}}updateGlobalBufferViews();functiongetTotalMemory(){returnTOTAL_MEMORY}HEAP32[0]=1668509029;HEAP16[1]=25459;if(HEAPU8[2]!==115||HEAPU8[3]!==99)throw"Runtime error: expected the system to be little-endian!";Module["HEAP"]=HEAP;Module["buffer"]=buffer;Module["HEAP8"]=HEAP8;Module["HEAP16"]=HEAP16;Module["HEAP32"]=HEAP32;Module["HEAPU8"]=HEAPU8;Module["HEAPU16"]=HEAPU16;Module["HEAPU32"]=HEAPU32;Module["HEAPF32"]=HEAPF32;Module["HEAPF64"]=HEAPF64;functioncallRuntimeCallbacks(callbacks){while(callbacks.length>0){varcallback=callbacks.shift();if(typeofcallback=="function"){callback();continue}varfunc=callback.func;if(typeoffunc==="number"){if(callback.arg===undefined){Module["dynCall_v"](func)}else{Module["dynCall_vi"](func,callback.arg)}}else{func(callback.arg===undefined?null:callback.arg)}}}var__ATPRERUN__=[];var__ATINIT__=[];var__ATMAIN__=[];var__ATEXIT__=[];var__ATPOSTRUN__=[];varruntimeInitialized=false;varruntimeExited=false;functionpreRun(){if(Module["preRun"]){if(typeofModule["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}functionensureInitRuntime(){if(runtimeInitialized)return;runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}functionpreMain(){callRuntimeCallbacks(__ATMAIN__)}functionexitRuntime(){callRuntimeCallbacks(__ATEXIT__);runtimeExited=true}functionpostRun(){if(Module["postRun"]){if(typeofModule["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}functionaddOnPreRun(cb){__ATPRERUN__.unshift(cb)}Module["addOnPreRun"]=addOnPreRun;functionaddOnInit(cb){__ATINIT__.unshift(cb)}Module["addOnInit"]=addOnInit;functionaddOnPreMain(cb){__ATMAIN__.unshift(cb)}Module["addOnPreMain"]=addOnPreMain;functionaddOnExit(cb){__ATEXIT__.unshift(cb)}Module["addOnExit"]=addOnExit;functionaddOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}Module["addOnPostRun"]=addOnPostRun;functionintArrayFromString(stringy,dontAddNull,length){varlen=length>0?length:lengthBytesUTF8(stringy)+1;varu8array=newArray(len);varnumBytesWritten=stringToUTF8Array(stringy,u8array,0,u8array.length);if(dontAddNull)u8array.length=numBytesWritten;returnu8array}Module["intArrayFromString"]=intArrayFromString;functionintArrayToString(array){varret=[];for(vari=0;i<array.length;i++){varchr=array[i];if(chr>255){chr&=255}ret.push(String.fromCharCode(chr))}returnret.join("")}Module["intArrayToString"]=intArrayToString;functionwriteStringToMemory(string,buffer,dontAddNull){Runtime.warnOnce("writeStringToMemory is deprecated and should not be called! Use stringToUTF8() instead!");varlastChar,end;if(dontAddNull){end=buffer+lengthBytesUTF8(string);lastChar=HEAP8[end]}stringToUTF8(string,buffer,Infinity);if(dontAddNull)HEAP8[end]=lastChar}Module["writeStringToMemory"]=writeStringToMemory;functionwriteArrayToMemory(array,buffer){HEAP8.set(array,buffer)}Module["writeArrayToMemory"]=writeArrayToMemory;functionwriteAsciiToMemory(str,buffer,dontAddNull){for(vari=0;i<str.length;++i){HEAP8[buffer++>>0]=str.charCodeAt(i)}if(!dontAddNull)HEAP8[buffer>>0]=0}Module["writeAsciiToMemory"]=writeAsciiToMemory;if(!Math["imul"]||Math["imul"](4294967295,5)!==-5)Math["imul"]=functionimul(a,b){varah=a>>>16;varal=a&65535;varbh=b>>>16;varbl=b&65535;returnal*bl+(ah*bl+al*bh<<16)|0};Math.imul=Math["imul"];if(!Math["fround"]){varfroundBuffer=newFloat32Array(1);Math["fround"]=(function(x){froundBuffer[0]=x;returnfroundBuffer[0]})}Math.fround=Math["fround"];if(!Math["clz32"])Math["clz32"]=(function(x){x=x>>>0;for(vari=0;i<32;i++){if(x&1<<31-i)returni}return32});Math.clz32=Math["clz32"];if(!Math["trunc"])Math["trunc"]=(function(x){returnx<0?Math.ceil(x):Math.floor(x)});Math.trunc=Math["trunc"];varMath_abs=Math.abs;varMath_cos=Math.cos;varMath_sin=Math.sin;varMath_tan=Math.tan;varMath_acos=Math.acos;varMath_asin=Math.asin;varMath_atan=Math.atan;varMath_atan2=Math.atan2;varMath_exp=Math.exp;varMath_log=Math.log;varMath_sqrt=Math.sqrt;varMath_ceil=Math.ceil;varMath_floor=Math.floor;varMath_pow=Math.pow;varMath_imul=Math.imul;varMath_fround=Math.fround;varMath_round=Math.round;varMath_min=Math.min;varMath_clz32=Math.clz32;varMath_trunc=Math.trunc;varrunDependencies=0;varrunDependencyWatcher=null;vardependenciesFulfilled=null;functionaddRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}}Module["addRunDependency"]=addRunDependency;functionremoveRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){varcallback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}Module["removeRunDependency"]=removeRunDependency;Module["preloadedImages"]={};Module["preloadedAudios"]={};varmemoryInitializer=null;functionintegrateWasmJS(){varmethod=Module["wasmJSMethod"]||"native-wasm";Module["wasmJSMethod"]=method;varwasmTextFile=Module["wasmTextFile"]||"Decoder.wast";varwasmBinaryFile=Module["wasmBinaryFile"]||"Decoder.wasm";varasmjsCodeFile=Module["asmjsCodeFile"]||"Decoder.temp.asm.js";if(typeofModule["locateFile"]==="function"){wasmTextFile=Module["locateFile"](wasmTextFile);wasmBinaryFile=Module["locateFile"](wasmBinaryFile);asmjsCodeFile=Module["locateFile"](asmjsCodeFile)}varwasmPageSize=64*1024;varasm2wasmImports={"f64-rem":(function(x,y){returnx%y}),"f64-to-int":(function(x){returnx|0}),"i32s-div":(function(x,y){return(x|0)/(y|0)|0}),"i32u-div":(function(x,y){return(x>>>0)/(y>>>0)>>>0}),"i32s-rem":(function(x,y){return(x|0)%(y|0)|0}),"i32u-rem":(function(x,y){return(x>>>0)%(y>>>0)>>>0}),"debugger":(function(){debugger})};varinfo={"global":null,"env":null,"asm2wasm":asm2wasmImports,"parent":Module};varexports=null;functionlookupImport(mod,base){varlookup=info;if(mod.indexOf(".")<0){lookup=(lookup||{})[mod]}else{varparts=mod.split(".");lookup=(lookup||{})[parts[0]];lookup=(lookup||{})[parts[1]]}if(base){lookup=(lookup||{})[base]}if(lookup===undefined){abort("bad lookupImport to ("+mod+")."+base)}returnlookup}functionmergeMemory(newBuffer){varoldBuffer=Module["buffer"];if(newBuffer.byteLength<oldBuffer.byteLength){Module["printErr"]("the new buffer in mergeMemory is smaller than the previous one. in native wasm, we should grow memory here")}varoldView=newInt8Array(oldBuffer);varnewView=newInt8Array(newBuffer);if(!memoryInitializer){oldView.set(newView.subarray(Module["STATIC_BASE"],Module["STATIC_BASE"]+Module["STATIC_BUMP"]),Module["STATIC_BASE"])}newView.set(oldView);updateGlobalBuffer(newBuffer);updateGlobalBufferViews()}varWasmTypes={none:0,i32:1,i64:2,f32:3,f64:4};functionfixImports(imports){if(!0)returnimports;varret={};for(variinimports){varfixed=i;if(fixed[0]=="_")fixed=fixed.substr(1);ret[fixed]=imports[i]}returnret}functiongetBinary(){try{varbinary;if(Module["wasmBinary"]){binary=Module["wasmBinary"];binary=newUint8Array(binary)}elseif(Module["readBinary"]){binary=Module["readBinary"](wasmBinaryFile)}else{throw"on the web, we need the wasm binary to be preloaded and set on Module['wasmBinary']. emcc.py will do that for you when generating HTML (but not JS)"}returnbinary}catch(err){abort(err)}}functiongetBinaryPromise(){if(!Module["wasmBinary"]&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&typeoffetch==="function"){returnfetch(wasmBinaryFile,{credentials:"same-origin"}).then((function(response){if(!response["ok"]){throw"failed to load wasm binary file at '"+wasmBinaryFile+"'"}returnresponse["arrayBuffer"]()}))}returnnewPromise((function(resolve,reject){resolve(getBinary())}))}functiondoNativeWasm(global,env,providedBuffer){if(typeofWebAssembly!=="object"){Module["printErr"]("no native wasm support detected");returnfalse}if(!(Module["wasmMemory"]instanceofWebAssembly.Memory)){Module["printErr"]("no native wasm Memory in use");returnfalse}env["memory"]=Module["wasmMemory"];info["global"]={"NaN":NaN,"Infinity":Infinity};info["global.Math"]=global.Math;info["env"]=env;functionreceiveInstance(instance){exports=instance.exports;if(exports.memory)mergeMemory(exports.memory);Module["asm"]=exports;Module["usingWasm"]=true;removeRunDependency("wasm-instantiate")}addRunDependency("wasm-instantiate");if(Module["instantiateWasm"]){try{returnModule["instantiateWasm"](info,receiveInstance)}catch(e){Module["printErr"]("Module.instantiateWasm callback failed with error: "+e);returnfalse}}functionreceiveInstantiatedSource(output){receiveInstance(output["instance"])}functioninstantiateArrayBuffer(receiver){getBinaryPromise().then((function(binary){returnWebAssembly.instantiate(binary,info)})).then(receiver).catch((function(reason){Module["printErr"]("failed to asynchronously prepare wasm: "+reason);abort(reason)}))}if(!Module["wasmBinary"]&&typeofWebAssembly.instantiateStreaming==="function"){WebAssembly.instantiateStreaming(fetch(wasmBinaryFile,{credentials:"same-origin"}),info).then(receiveInstantiatedSource).catch((function(reason){Module["printErr"]("wasm streaming compile failed: "+reason);Module["printErr"]("falling back to ArrayBuffer instantiation");instantiateArrayBuffer(receiveInstantiatedSource)}))}else{instantiateArrayBuffer(receiveInstantiatedSource)}return{}}Module["asmPreload"]=Module["asm"];varasmjsReallocBuffer=Module["reallocBuffer"];varwasmReallocBuffer=(function(size){varPAGE_MULTIPLE=Module["usingWasm"]?WASM_PAGE_SIZE:ASMJS_PAGE_SIZE;size=alignUp(size,PAGE_MULTIPLE);varold=Module["buffer"];varoldSize=old.byteLength;if(Module["usingWasm"]){try{varresult=Module["wasmMemory"].grow((size-oldSize)/wasmPageSize);if(result!==(-1|0)){returnModule["buffer"]=Module["wasmMemory"].buffer}else{returnnull}}catch(e){returnnull}}else{exports["__growWasmMemory"]((size-oldSize)/wasmPageSize);returnModule["buffer"]!==old?Module["buffer"]:null}});Module["reallocBuffer"]=(function(size){if(finalMethod==="asmjs"){returnasmjsReallocBuffer(size)}else{returnwasmReallocBuffer(size)}});varfinalMethod="";Module["asm"]=(function(global,env,providedBuffer){global=fixImports(global);env=fixImports(env);if(!env["table"]){varTABLE_SIZE=Module["wasmTableSize"];if(TABLE_SIZE===undefined)TABLE_SIZE=1024;varMAX_TABLE_SIZE=Module["wasmMaxTableSize"];if(typeofWebAssembly==="object"&&typeofWebAssembly.Table==="function"){if(MAX_TABLE_SIZE!==undefined){env["table"]=newWebAssembly.Table({"initial":TABLE_SIZE,"maximum":MAX_TABLE_SIZE,"element":"anyfunc"})}else{env["table"]=newWebAssembly.Table({"initial":TABLE_SIZE,element:"anyfunc"})}}else{env["table"]=newArray(TABLE_SIZE)}Module["wasmTable"]=env["table"]}if(!env["memoryBase"]){env["memoryBase"]=Module["STATIC_BASE"]}if(!env["tableBase"]){env["tableBase"]=0}varexports;exports=doNativeWasm(global,env,providedBuffer);if(!exports)abort("no binaryen method succeeded. consider enabling more options, like interpreting, if you want that: https://github.com/kripken/emscripten/wiki/WebAssembly#binaryen-methods");returnexports});varmethodHandler=Module["asm"]}integrateWasmJS();varASM_CONSTS=[];STATIC_BASE=Runtime.GLOBAL_BASE;STATICTOP=STATIC_BASE+282224;__ATINIT__.push({func:(function(){__GLOBAL__sub_I_Decoder_cpp()})},{func:(function(){__GLOBAL__sub_I_bind_cpp()})});memoryInitializer=Module["wasmJSMethod"].indexOf("asmjs")>=0||Module["wasmJSMethod"].indexOf("interpret-asm2wasm")>=0?"Decoder.js.mem":null;varSTATIC_BUMP=282224;Module["STATIC_BASE"]=STATIC_BASE;Module["STATIC_BUMP"]=STATIC_BUMP;vartempDoublePtr=STATICTOP;STATICTOP+=16;varstructRegistrations={};functionembind_init_charCodes(){varcodes=newArray(256);for(vari=0;i<256;++i){codes[i]=String.fromCharCode(i)}embind_charCodes=codes}varembind_charCodes=undefined;functionreadLatin1String(ptr){varret="";varc=ptr;while(HEAPU8[c]){ret+=embind_charCodes[HEAPU8[c++]]}returnret}varchar_0=48;varchar_9=57;functionmakeLegalFunctionName(name){if(undefined===name){return"_unknown"}name=name.replace(/[^a-zA-Z0-9_]/g,"$");varf=name.charCodeAt(0);if(f>=char_0&&f<=char_9){return"_"+name}else{returnname}}functioncreateNamedFunction(name,body){name=makeLegalFunctionName(name);return(newFunction("body","return function "+name+"() {\n"+' "use strict";'+" return body.apply(this, arguments);\n"+"};\n"))(body)}functionextendError(baseErrorType,errorName){varerrorClass=createNamedFunction(errorName,(function(message){this.name=errorName;this.message=message;varstack=(newError(message)).stack;if(stack!==undefined){this.stack=this.toString()+"\n"+stack.replace(/^Error(:[^\n]*)?\n/,"")}}));errorClass.prototype=Object.create(baseErrorType.prototype);errorClass.prototype.constructor=errorClass;errorClass.prototype.toString=(function(){if(this.message===undefined){returnthis.name}else{returnthis.name+": "+this.message}});returnerrorClass}varBindingError=undefined;functionthrowBindingError(message){thrownewBindingError(message)}functionrequireFunction(signature,rawFunction){signature=readLatin1String(signature);functionmakeDynCaller(dynCall){varargs=[];for(vari=1;i<signature.length;++i){args.push("a"+i)}varname="dynCall_"+signature+"_"+rawFunction;varbody="return function "+name+"("+args.join(", ")+") {\n";body+=" return dynCall(rawFunction"+(args.length?", ":"")+args.join(", ")+");\n";body+="};\n";return(newFunction("dynCall","rawFunction",body))(dynCall,rawFunction)}varfp;if(Module["FUNCTION_TABLE_"+signature]!==undefined){fp=Module["FUNCTION_TABLE_"+signature][rawFunction]}elseif(typeofFUNCTION_TABLE!=="undefined"){fp=FUNCTION_TABLE[rawFunction]}else{vardc=Module["asm"]["dynCall_"+signature];if(dc===undefined){dc=Module["asm"]["dynCall_"+signature.replace(/f/g,"d")];if(dc===undefined){throwBindingError("No dynCall invoker for signature: "+signature)}}fp=makeDynCaller(dc)}if(typeoffp!=="function"){throwBindingError("unknown function pointer with signature "+signature+": "+rawFunction)}returnfp}function__embind_register_value_object(rawType,name,constructorSignature,rawConstructor,destructorSignature,rawDestructor){structRegistrations[rawType]={name:readLatin1String(name),rawConstructor:requireFunction(constructorSignature,rawConstructor),rawDestructor:requireFunction(destructorSignature,rawDestructor),fields:[]}}function___assert_fail(condition,filename,line,func){ABORT=true;throw"Assertion failed: "+Pointer_stringify(condition)+", at: "+[filename?Pointer_stringify(filename):"unknown filename",line,func?Pointer_stringify(func):"unknown function"]+" at "+stackTrace()}varawaitingDependencies={};varregisteredTypes={};vartypeDependencies={};varInternalError=undefined;functionthrowInternalError(message){thrownewInternalError(message)}functionwhenDependentTypesAreResolved(myTypes,dependentTypes,getTypeConverters){myTypes.forEach((function(type){typeDependencies[type]=dependentTypes}));functiononComplete(typeConverters){varmyTypeConverters=getTypeConverters(typeConverters);if(myTypeConverters.length!==myTypes.length){throwInternalError("Mismatched type converter count")}for(vari=0;i<myTypes.length;++i){registerType(myTypes[i],myTypeConverters[i])}}vartypeConverters=newArray(dependentTypes.length);varunregisteredTypes=[];varregistered=0;dependentTypes.forEach((function(dt,i){if(registeredTypes.hasOwnProperty(dt)){typeConverters[i]=registeredTypes[dt]}else{unregisteredTypes.push(dt);if(!awaitingDependencies.hasOwnProperty(dt)){awaitingDependencies[dt]=[]}awaitingDependencies[dt].push((function(){typeConverters[i]=registeredTypes[dt];++registered;if(registered===unregisteredTypes.length){onComplete(typeConverters)}}))}}));if(0===unregisteredTypes.length){onComplete(typeConverters)}}functionregisterType(rawType,registeredInstance,options){options=options||{};if(!("argPackAdvance"inregisteredInstance)){thrownewTypeError("registerType registeredInstance requires argPackAdvance")}varname=registeredInstance.name;if(!rawType){throwBindingError('type "'+name+'" must have a positive integer typeid pointer')}if(registeredTypes.hasOwnProperty(rawType)){if(options.ignoreDuplicateRegistrations){return}else{throwBindingError("Cannot register type '"+name+"' twice")}}registeredTypes[rawType]=registeredInstance;deletetypeDependencies[rawType];if(awaitingDependencies.hasOwnProperty(rawType)){varcallbacks=awaitingDependencies[rawType];deleteawaitingDependencies[rawType];callbacks.forEach((function(cb){cb()}))}}function__embind_register_void(rawType,name){name=readLatin1String(name);registerType(rawType,{isVoid:true,name:name,"argPackAdvance":0,"fromWireType":(function(){returnundefined}),"toWireType":(function(destructors,o){returnundefined})})}function_pthread_mutex_destroy(){}function__ZSt18uncaught_exceptionv(){return!!__ZSt18uncaught_exceptionv.uncaught_exception}varEXCEPTIONS={last:0,caught:[],infos:{},deAdjust:(function(adjusted){if(!adjusted||EXCEPTIONS.infos[adjusted])returnadjusted;for(varptrinEXCEPTIONS.infos){varinfo=EXCEPTIONS.infos[ptr];if(info.adjusted===adjusted){returnptr}}returnadjusted}),addRef:(function(ptr){if(!ptr)return;varinfo=EXCEPTIONS.infos[ptr];info.refcount++}),decRef:(function(ptr){if(!ptr)return;varinfo=EXCEPTIONS.infos[ptr];assert(info.refcount>0);info.refcount--;if(info.refcount===0&&!info.rethrown){if(info.destructor){Module["dynCall_vi"](info.destructor,ptr)}deleteEXCEPTIONS.infos[ptr];___cxa_free_exception(ptr)}}),clearRef:(function(ptr){if(!ptr)return;varinfo=EXCEPTIONS.infos[ptr];info.refcount=0})};function___resumeException(ptr){if(!EXCEPTIONS.last){EXCEPTIONS.last=ptr}throwptr+" - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch."}function___cxa_find_matching_catch(){varthrown=EXCEPTIONS.last;if(!thrown){return(Runtime.setTempRet0(0),0)|0}varinfo=EXCEPTIONS.infos[thrown];varthrowntype=info.type;if(!throwntype){return(Runtime.setTempRet0(0),thrown)|0}vartypeArray=Array.prototype.slice.call(arguments);varpointer=Module["___cxa_is_pointer_type"](throwntype);if(!___cxa_find_matching_catch.buffer)___cxa_find_matching_catch.buffer=_malloc(4);HEAP32[___cxa_find_matching_catch.buffer>>2]=thrown;thrown=___cxa_find_matching_catch.buffer;for(vari=0;i<typeArray.length;i++){if(typeArray[i]&&Module["___cxa_can_catch"](typeArray[i],throwntype,thrown)){thrown=HEAP32[thrown>>2];info.adjusted=thrown;return(Runtime.setTempRet0(typeArray[i]),thrown)|0}}thrown=HEAP32[thrown>>2];return(Runtime.setTempRet0(throwntype),thrown)|0}function___cxa_throw(ptr,type,destructor){EXCEPTIONS.infos[ptr]={ptr:ptr,adjusted:ptr,type:type,destructor:destructor,refcount:0,caught:false,rethrown:false};EXCEPTIONS.last=ptr;if(!("uncaught_exception"in__ZSt18uncaught_exceptionv)){__ZSt18uncaught_exceptionv.uncaught_exception=1}else{__ZSt18uncaught_exceptionv.uncaught_exception++}throwptr+" - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch."}functiongetShiftFromSize(size){switch(size){case1:return0;case2:return1;case4:return2;case8:return3;default:thrownewTypeError("Unknown type size: "+size)}}function__embind_register_bool(rawType,name,size,trueValue,falseValue){varshift=getShiftFromSize(size);name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":(function(wt){return!!wt}),"toWireType":(function(destructors,o){returno?trueValue:falseValue}),"argPackAdvance":8,"readValueFromPointer":(function(pointer){varheap;if(size===1){heap=HEAP8}elseif(size===2){heap=HEAP16}elseif(size===4){heap=HEAP32}else{thrownewTypeError("Unknown boolean type size: "+name)}returnthis["fromWireType"](heap[pointer>>shift])}),destructorFunction:null})}function___gxx_personality_v0(){}function_pthread_cond_signal(){return0}function_abort(){Module["abort"]()}function_pthread_cond_destroy(){return0}functionsimpleReadValueFromPointer(pointer){returnthis["fromWireType"](HEAPU32[pointer>>2])}function__embind_register_std_string(rawType,name){name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":(function(value){varlength=HEAPU32[value>>2];vara=newArray(length);for(vari=0;i<length;++i){a[i]=String.fromCharCode(HEAPU8[value+4+i])}_free(value);returna.join("")}),"toWireType":(function(destructors,value){if(valueinstanceofArrayBuffer){value=newUint8Array(value)}functiongetTAElement(ta,index){returnta[index]}functiongetStringElement(string,index){returnstring.charCodeAt(index)}vargetElement;if(valueinstanceofUint8Array){getElement=getTAElement}elseif(valueinstanceofUint8ClampedArray){getElement=getTAElement}elseif(valueinstanceofInt8Array){getElement=getTAElement}elseif(typeofvalue==="string"){getElement=getStringElement}else{throwBindingError("Cannot pass non-string to std::string")}varlength=value.length;varptr=_malloc(4+length);HEAPU32[ptr>>2]=length;for(vari=0;i<length;++i){varcharCode=getElement(value,i);if(charCode>255){_free(ptr);throwBindingError("String has UTF-16 code units that do not fit in 8 bits")}HEAPU8[ptr+4+i]=charCode}if(destructors!==null){destructors.push(_free,ptr)}returnptr}),"argPackAdvance":8,"readValueFromPointer":simpleReadValueFromPointer,destructorFunction:(function(ptr){_free(ptr)})})}function_embind_repr(v){if(v===null){return"null"}vart=typeofv;if(t==="object"||t==="array"||t==="function"){returnv.toString()}else{return""+v}}functionintegerReadValueFromPointer(name,shift,signed){switch(shift){case0:returnsigned?functionreadS8FromPointer(pointer){returnHEAP8[pointer]}:functionreadU8FromPointer(pointer){returnHEAPU8[pointer]};case1:returnsigned?functionreadS16FromPointer(pointer){returnHEAP16[pointer>>1]}:functionreadU16FromPointer(pointer){returnHEAPU16[pointer>>1]};case2:returnsigned?functionreadS32FromPointer(pointer){returnHEAP32[pointer>>2]}:functionreadU32FromPointer(pointer){returnHEAPU32[pointer>>2]};default:thrownewTypeError("Unknown integer type: "+name)}}function__embind_register_integer(primitiveType,name,size,minRange,maxRange){name=readLatin1String(name);if(maxRange===-1){maxRange=4294967295}varshift=getShiftFromSize(size);varfromWireType=(function(value){returnvalue});if(minRange===0){varbitshift=32-8*size;fromWireType=(function(value){returnvalue<<bitshift>>>bitshift})}varisUnsignedType=name.indexOf("unsigned")!=-1;registerType(primitiveType,{name:name,"fromWireType":fromWireType,"toWireType":(function(destructors,value){if(typeofvalue!=="number"&&typeofvalue!=="boolean"){thrownewTypeError('Cannot convert "'+_embind_repr(value)+'" to '+this.name)}if(value<minRange||value>maxRange){thrownewTypeError('Passing a number "'+_embind_repr(value)+'" from JS side to C/C++ side to an argument of type "'+name+'", which is outside the valid range ['+minRange+", "+maxRange+"]!")}returnisUnsignedType?value>>>0:value|0}),"argPackAdvance":8,"readValueFromPointer":integerReadValueFromPointer(name,shift,minRange!==0),destructorFunction:null})}function_pthread_once(ptr,func){if(!_pthread_once.seen)_pthread_once.seen={};if(ptrin_pthread_once.seen)return;Module["dynCall_v"](func);_pthread_once.seen[ptr]=1}function_pthread_create(){return11}function__embind_register_value_object_field(structType,fieldName,getterReturnType,getterSignature,getter,getterContext,setterArgumentType,setterSignature,setter,setterContext){structRegistrations[structType].fields.push({fieldName:readLatin1String(fieldName),getterReturnType:getterReturnType,getter:requireFunction(getterSignature,getter),getterContext:getterContext,setterArgumentType:setterArgumentType,setter:requireFunction(setterSignature,setter),setterContext:setterContext})}function___lock(){}function___unlock(){}varPTHREAD_SPECIFIC={};function_pthread_getspecific(key){returnPTHREAD_SPECIFIC[key]||0}functionrunDestructors(destructors){while(destructors.length){varptr=destructors.pop();vardel=destructors.pop();del(ptr)}}function__embind_finalize_value_object(structType){varreg=structRegistrations[structType];deletestructRegistrations[structType];varrawConstructor=reg.rawConstructor;varrawDestructor=reg.rawDestructor;varfieldRecords=reg.fields;varfieldTypes=fieldRecords.map((function(field){returnfield.getterReturnType})).concat(fieldRecords.map((function(field){returnfield.setterArgumentType})));whenDependentTypesAreResolved([structType],fieldTypes,(function(fieldTypes){varfields={};fieldRecords.forEach((function(field,i){varfieldName=field.fieldName;vargetterReturnType=fieldTypes[i];vargetter=field.getter;vargetterContext=field.getterContext;varsetterArgumentType=fieldTypes[i+fieldRecords.length];varsetter=field.setter;varsetterContext=field.setterContext;fields[fieldName]={read:(function(ptr){returngetterReturnType["fromWireType"](getter(getterContext,ptr))}),write:(function(ptr,o){vardestructors=[];setter(setterContext,ptr,setterArgumentType["toWireType"](destructors,o));runDestructors(destructors)})}}));return[{name:reg.name,"fromWireType":(function(ptr){varrv={};for(variinfields){rv[i]=fields[i].read(ptr)}rawDestructor(ptr);returnrv}),"toWireType":(function(destructors,o){for(varfieldNameinfields){if(!(fieldNameino)){thrownewTypeError("Missing field")}}varptr=rawConstructor();for(fieldNameinfields){fields[fieldName].write(ptr,o[fieldName])}if(destructors!==null){destructors.push(rawDestructor,ptr)}returnptr}),"argPackAdvance":8,"readValueFromPointer":simpleReadValueFromPointer,destructorFunction:rawDestructor}]}))}varPTHREAD_SPECIFIC_NEXT_KEY=1;varERRNO_CODES={EPERM:1,ENOENT:2,ESRCH:3,EINTR:4,EIO:5,ENXIO:6,E2BIG:7,ENOEXEC:8,EBADF:9,ECHILD:10,EAGAIN:11,EWOULDBLOCK:11,ENOMEM:12,EACCES:13,EFAULT:14,ENOTBLK:15,EBUSY:16,EEXIST:17,EXDEV:18,ENODEV:19,ENOTDIR:20,EISDIR:21,EINVAL:22,ENFILE:23,EMFILE:24,ENOTTY:25,ETXTBSY:26,EFBIG:27,ENOSPC:28,ESPIPE:29,EROFS:30,EMLINK:31,EPIPE:32,EDOM:33,ERANGE:34,ENOMSG:42,EIDRM:43,ECHRNG:44,EL2NSYNC:45,EL3HLT:46,EL3RST:47,ELNRNG:48,EUNATCH:49,ENOCSI:50,EL2HLT:51,EDEADLK:35,ENOLCK:37,EBADE:52,EBADR:53,EXFULL:54,ENOANO:55,EBADRQC:56,EBADSLT:57,EDEADLOCK:35,EBFONT:59,ENOSTR:60,ENODATA:61,ETIME:62,ENOSR:63,ENONET:64,ENOPKG:65,EREMOTE:66,ENOLINK:67,EADV:68,ESRMNT:69,ECOMM:70,EPROTO:71,EMULTIHOP:72,EDOTDOT:73,EBADMSG:74,ENOTUNIQ:76,EBADFD:77,EREMCHG:78,ELIBACC:79,ELIBBAD:80,ELIBSCN:81,ELIBMAX:82,ELIBEXEC:83,ENOSYS:38,ENOTEMPTY:39,ENAMETOOLONG:36,ELOOP:40,EOPNOTSUPP:95,EPFNOSUPPORT:96,ECONNRESET:104,ENOBUFS:105,EAFNOSUPPORT:97,EPROTOTYPE:91,ENOTSOCK:88,ENOPROTOOPT:92,ESHUTDOWN:108,ECONNREFUSED:111,EADDRINUSE:98,ECONNABORTED:103,ENETUNREACH:101,ENETDOWN:100,ETIMEDOUT:110,EHOSTDOWN:112,EHOSTUNREACH:113,EINPROGRESS:115,EALREADY:114,EDESTADDRREQ:89,EMSGSIZE:90,EPROTONOSUPPORT:93,ESOCKTNOSUPPORT:94,EADDRNOTAVAIL:99,ENETRESET:102,EISCONN:106,ENOTCONN:107,ETOOMANYREFS:109,EUSERS:87,EDQUOT:122,ESTALE:116,ENOTSUP:95,ENOMEDIUM:123,EILSEQ:84,EOVERFLOW:75,ECANCELED:125,ENOTRECOVERABLE:131,EOWNERDEAD:130,ESTRPIPE:86};function_pthread_key_create(key,destructor){if(key==0){returnERRNO_CODES.EINVAL}HEAP32[key>>2]=PTHREAD_SPECIFIC_NEXT_KEY;PTHREAD_SPECIFIC[PTHREAD_SPECIFIC_NEXT_KEY]=0;PTHREAD_SPECIFIC_NEXT_KEY++;return0}function_pthread_mutex_init(){}varemval_free_list=[];varemval_handle_array=[{},{value:undefined},{value:null},{value:true},{value:false}];function__emval_decref(handle){if(handle>4&&0===--emval_handle_array[handle].refcount){emval_handle_array[handle]=undefined;emval_free_list.push(handle)}}functioncount_emval_handles(){varcount=0;for(vari=5;i<emval_handle_array.length;++i){if(emval_handle_array[i]!==undefined){++count}}returncount}functionget_first_emval(){for(vari=5;i<emval_handle_array.length;++i){if(emval_handle_array[i]!==undefined){returnemval_handle_array[i]}}returnnull}functioninit_emval(){Module["count_emval_handles"]=count_emval_handles;Module["get_first_emval"]=get_first_emval}function__emval_register(value){switch(value){caseundefined:{return1};casenull:{return2};casetrue:{return3};casefalse:{return4};default:{varhandle=emval_free_list.length?emval_free_list.pop():emval_handle_array.length;emval_handle_array[handle]={refcount:1,value:value};returnhandle}}}function__embind_register_emval(rawType,name){name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":(function(handle){varrv=emval_handle_array[handle].value;__emval_decref(handle);returnrv}),"toWireType":(function(destructors,value){return__emval_register(value)}),"argPackAdvance":8,"readValueFromPointer":simpleReadValueFromPointer,destructorFunction:null})}function_pthread_setspecific(key,value){if(!(keyinPTHREAD_SPECIFIC)){returnERRNO_CODES.EINVAL}PTHREAD_SPECIFIC[key]=value;return0}function_pthread_cond_timedwait(){return0}function___cxa_allocate_exception(size){return_malloc(size)}varSYSCALLS={varargs:0,get:(function(varargs){SYSCALLS.varargs+=4;varret=HEAP32[SYSCALLS.varargs-4>>2];returnret}),getStr:(function(){varret=Pointer_stringify(SYSCALLS.get());returnret}),get64:(function(){varlow=SYSCALLS.get(),high=SYSCALLS.get();if(low>=0)assert(high===0);elseassert(high===-1);returnlow}),getZero:(function(){assert(SYSCALLS.get()===0)})};function___syscall54(which,varargs){SYSCALLS.varargs=varargs;try{return0}catch(e){if(typeofFS==="undefined"||!(einstanceofFS.ErrnoError))abort(e);return-e.errno}}function___cxa_pure_virtual(){ABORT=true;throw"Pure virtual function called!"}functionfloatReadValueFromPointer(name,shift){switch(shift){case2:return(function(pointer){returnthis["fromWireType"](HEAPF32[pointer>>2])});case3:return(function(pointer){returnthis["fromWireType"](HEAPF64[pointer>>3])});default:thrownewTypeError("Unknown float type: "+name)}}function__embind_register_float(rawType,name,size){varshift=getShiftFromSize(size);name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":(function(value){returnvalue}),"toWireType":(function(destructors,value){if(typeofvalue!=="number"&&typeofvalue!=="boolean"){thrownewTypeError('Cannot convert "'+_embind_repr(value)+'" to '+this.name)}returnvalue}),"argPackAdvance":8,"readValueFromPointer":floatReadValueFromPointer(name,shift),destructorFunction:null})}function_gettimeofday(ptr){varnow=Date.now();HEAP32[ptr>>2]=now/1e3|0;HEAP32[ptr+4>>2]=now%1e3*1e3|0;return0}function_pthread_join(){}function_pthread_cond_init(){return0}function___syscall6(which,varargs){SYSCALLS.varargs=varargs;try{varstream=SYSCALLS.getStreamFromFD();FS.close(stream);return0}catch(e){if(typeofFS==="undefined"||!(einstanceofFS.ErrnoError))abort(e);return-e.errno}}function___setErrNo(value){if(Module["___errno_location"])HEAP32[Module["___errno_location"]()>>2]=value;returnvalue}function_emscripten_memcpy_big(dest,src,num){HEAPU8.set(HEAPU8.subarray(src,src+num),dest);returndest}function__embind_register_std_wstring(rawType,charSize,name){name=readLatin1String(name);vargetHeap,shift;if(charSize===2){getHeap=(function(){returnHEAPU16});shift=1}elseif(charSize===4){getHeap=(function(){returnHEAPU32});shift=2}registerType(rawType,{name:name,"fromWireType":(function(value){varHEAP=getHeap();varlength=HEAPU32[value>>2];vara=newArray(length);varstart=value+4>>shift;for(vari=0;i<length;++i){a[i]=String.fromCharCode(HEAP[start+i])}_free(value);returna.join("")}),"toWireType":(function(destructors,value){varHEAP=getHeap();varlength=value.length;varptr=_malloc(4+length*charSize);HEAPU32[ptr>>2]=length;varstart=ptr+4>>shift;for(vari=0;i<length;++i){HEAP[start+i]=value.charCodeAt(i)}if(destructors!==null){destructors.push(_free,ptr)}returnptr}),"argPackAdvance":8,"readValueFromPointer":simpleReadValueFromPointer,destructorFunction:(function(ptr){_free(ptr)})})}function___cxa_begin_catch(ptr){varinfo=EXCEPTIONS.infos[ptr];if(info&&!info.caught){info.caught=true;__ZSt18uncaught_exceptionv.uncaught_exception--}if(info)info.rethrown=false;EXCEPTIONS.caught.push(ptr);EXCEPTIONS.addRef(EXCEPTIONS.deAdjust(ptr));returnptr}functionnew_(constructor,argumentList){if(!(constructorinstanceofFunction)){thrownewTypeError("new_ called with constructor type "+typeofconstructor+" which is not a function")}vardummy=createNamedFunction(constructor.name||"unknownFunctionName",(function(){}));dummy.prototype=constructor.prototype;varobj=newdummy;varr=constructor.apply(obj,argumentList);returnrinstanceofObject?r:obj}functioncraftInvokerFunction(humanName,argTypes,classType,cppInvokerFunc,cppTargetFunc){varargCount=argTypes.length;if(argCount<2){throwBindingError("argTypes array size mismatch! Must at least get return value and 'this' types!")}varisClassMethodFunc=argTypes[1]!==null&&classType!==null;varneedsDestructorStack=false;for(vari=1;i<argTypes.length;++i){if(argTypes[i]!==null&&argTypes[i].destructorFunction===undefined){needsDestructorStack=true;break}}varreturns=argTypes[0].name!=="void";varargsList="";varargsListWired="";for(vari=0;i<argCount-2;++i){argsList+=(i!==0?", ":"")+"arg"+i;argsListWired+=(i!==0?", ":"")+"arg"+i+"Wired"}varinvokerFnBody="return function "+makeLegalFunctionName(humanName)+"("+argsList+") {\n"+"if (arguments.length !== "+(argCount-2)+") {\n"+"throwBindingError('function "+humanName+" called with ' + arguments.length + ' arguments, expected "+(argCount-2)+" args!');\n"+"}\n";if(needsDestructorStack){invokerFnBody+="var destructors = [];\n"}vardtorStack=needsDestructorStack?"destructors":"null";varargs1=["throwBindingError","invoker","fn","runDestructors","retType","classParam"];varargs2=[throwBindingError,cppInvokerFunc,cppTargetFunc,runDestructors,argTypes[0],argTypes[1]];if(isClassMethodFunc){invokerFnBody+="var thisWired = classParam.toWireType("+dtorStack+", this);\n"}for(vari=0;i<argCount-2;++i){invokerFnBody+="var arg"+i+"Wired = argType"+i+".toWireType("+dtorStack+", arg"+i+"); // "+argTypes[i+2].name+"\n";args1.push("argType"+i);args2.push(argTypes[i+2])}if(isClassMethodFunc){argsListWired="thisWired"+(argsListWired.length>0?", ":"")+argsListWired}invokerFnBody+=(returns?"var rv = ":"")+"invoker(fn"+(argsListWired.length>0?", ":"")+argsListWired+");\n";if(needsDestructorStack){invokerFnBody+="runDestructors(destructors);\n"}else{for(vari=isClassMethodFunc?1:2;i<argTypes.length;++i){varparamName=i===1?"thisWired":"arg"+(i-2)+"Wired";if(argTypes[i].destructorFunction!==null){invokerFnBody+=paramName+"_dtor("+paramName+"); // "+argTypes[i].name+"\n";args1.push(paramName+"_dtor");args2.push(argTypes[i].destructorFunction)}}}if(returns){invokerFnBody+="var ret = retType.fromWireType(rv);\n"+"return ret;\n"}else{}invokerFnBody+="}\n";args1.push(invokerFnBody);varinvokerFunction=new_(Function,args1).apply(null,args2);returninvokerFunction}functionensureOverloadTable(proto,methodName,humanName){if(undefined===proto[methodName].overloadTable){varprevFunc=proto[methodName];proto[methodName]=(function(){if(!proto[methodName].overloadTable.hasOwnProperty(arguments.length)){throwBindingError("Function '"+humanName+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+proto[methodName].overloadTable+")!")}returnproto[methodName].overloadTable[arguments.length].apply(this,arguments)});proto[methodName].overloadTable=[];proto[methodName].overloadTable[prevFunc.argCount]=prevFunc}}functionexposePublicSymbol(name,value,numArguments){if(Module.hasOwnProperty(name)){if(undefined===numArguments||undefined!==Module[name].overloadTable&&undefined!==Module[name].overloadTable[numArguments]){throwBindingError("Cannot register public name '"+name+"' twice")}ensureOverloadTable(Module,name,name);if(Module.hasOwnProperty(numArguments)){throwBindingError("Cannot register multiple overloads of a function with the same number of arguments ("+numArguments+")!")}Module[name].overloadTable[numArguments]=value}else{Module[name]=value;if(undefined!==numArguments){Module[name].numArguments=numArguments}}}functionheap32VectorToArray(count,firstElement){vararray=[];for(vari=0;i<count;i++){array.push(HEAP32[(firstElement>>2)+i])}returnarray}functionreplacePublicSymbol(name,value,numArguments){if(!Module.hasOwnProperty(name)){throwInternalError("Replacing nonexistant public symbol")}if(undefined!==Module[name].overloadTable&&undefined!==numArguments){Module[name].overloadTable[numArguments]=value}else{Module[name]=value;Module[name].argCount=numArguments}}varUnboundTypeError=undefined;functiongetTypeName(type){varptr=___getTypeName(type);varrv=readLatin1String(ptr);_free(ptr);returnrv}functionthrowUnboundTypeError(message,types){varunboundTypes=[];varseen={};functionvisit(type){if(seen[type]){return}if(registeredTypes[type]){return}if(typeDependencies[type]){typeDependencies[type].forEach(visit);return}unboundTypes.push(type);seen[type]=true}types.forEach(visit);thrownewUnboundTypeError(message+": "+unboundTypes.map(getTypeName).join([", "]))}function__embind_register_function(name,argCount,rawArgTypesAddr,signature,rawInvoker,fn){varargTypes=heap32VectorToArray(argCount,rawArgTypesAddr);name=readLatin1String(name);rawInvoker=requireFunction(signature,rawInvoker);exposePublicSymbol(name,(function(){throwUnboundTypeError("Cannot call "+name+" due to unbound types",argTypes)}),argCount-1);whenDependentTypesAreResolved([],argTypes,(function(argTypes){varinvokerArgsArray=[argTypes[0],null].concat(argTypes.slice(1));replacePublicSymbol(name,craftInvokerFunction(name,invokerArgsArray,null,rawInvoker,fn),argCount-1);return[]}))}function_pthread_cond_wait(){return0}function__embind_register_memory_view(rawType,dataTypeIndex,name){vartypeMapping=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];varTA=typeMapping[dataTypeIndex];functiondecodeMemoryView(handle){handle=handle>>2;varheap=HEAPU32;varsize=heap[handle];vardata=heap[handle+1];returnnewTA(heap["buffer"],data,size)}name=readLatin1String(name);registerType(rawType,{name:name,"fromWireType":decodeMemoryView,"argPackAdvance":8,"readValueFromPointer":decodeMemoryView},{ignoreDuplicateRegistrations:true})}function___syscall140(which,varargs){SYSCALLS.varargs=varargs;try{varstream=SYSCALLS.getStreamFromFD(),offset_high=SYSCALLS.get(),offset_low=SYSCALLS.get(),result=SYSCALLS.get(),whence=SYSCALLS.get();varoffset=offset_low;FS.llseek(stream,offset,whence);HEAP32[result>>2]=stream.position;if(stream.getdents&&offset===0&&whence===0)stream.getdents=null;return0}catch(e){if(typeofFS==="undefined"||!(einstanceofFS.ErrnoError))abort(e);return-e.errno}}function___syscall146(which,varargs){SYSCALLS.varargs=varargs;try{varstream=SYSCALLS.get(),iov=SYSCALLS.get(),iovcnt=SYSCALLS.get();varret=0;if(!___syscall146.buffer){___syscall146.buffers=[null,[],[]];___syscall146.printChar=(function(stream,curr){varbuffer=___syscall146.buffers[stream];assert(buffer);if(curr===0||curr===10){(stream===1?Module["print"]:Module["printErr"])(UTF8ArrayToString(buffer,0));buffer.length=0}else{buffer.push(curr)}})}for(vari=0;i<iovcnt;i++){varptr=HEAP32[iov+i*8>>2];varlen=HEAP32[iov+(i*8+4)>>2];for(varj=0;j<len;j++){___syscall146.printChar(stream,HEAPU8[ptr+j])}ret+=len}returnret}catch(e){if(typeofFS==="undefined"||!(einstanceofFS.ErrnoError))abort(e);return-e.errno}}embind_init_charCodes();BindingError=Module["BindingError"]=extendError(Error,"BindingError");InternalError=Module["InternalError"]=extendError(Error,"InternalError");init_emval();UnboundTypeError=Module["UnboundTypeError"]=extendError(Error,"UnboundTypeError");__ATEXIT__.push((function(){varfflush=Module["_fflush"];if(fflush)fflush(0);varprintChar=___syscall146.printChar;if(!printChar)return;varbuffers=___syscall146.buffers;if(buffers[1].length)printChar(1,10);if(buffers[2].length)printChar(2,10)}));DYNAMICTOP_PTR=allocate(1,"i32",ALLOC_STATIC);STACK_BASE=STACKTOP=Runtime.alignMemory(STATICTOP);STACK_MAX=STACK_BASE+TOTAL_STACK;DYNAMIC_BASE=Runtime.alignMemory(STACK_MAX);HEAP32[DYNAMICTOP_PTR>>2]=DYNAMIC_BASE;staticSealed=true;Module["wasmTableSize"]=564;Module["wasmMaxTableSize"]=564;functioninvoke_iiiiiiii(index,a1,a2,a3,a4,a5,a6,a7){try{returnModule["dynCall_iiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7)}catch(e){if(typeofe!=="number"&&e!=="longjmp")throwe;Module["setThrew"](1,0)}}functioninvoke_viiiii(index,a1,a2,a3,a4,a5){try{Module["dynCall_viiiii"](index,a1,a2,a3,a4,a5)}catch(e){if(typeofe!=="number"&&e!=="longjmp")throwe;Module["setThrew"](1,0)}}functioninvoke_vi(index,a1){try{Module["dynCall_vi"](index,a1)}catch(e){if(typeofe!=="number"&&e!=="longjmp")throwe;Module["setThrew"](1,0)}}functioninvoke_vii(index,a1,a2){try{Module["dynCall_vii"](index,a1,a2)}catch(e){if(typeofe!=="number"&&e!=="longjmp")throwe;Module["setThrew"](1,0)}}functioninvoke_iiiiiii(index,a1,a2,a3,a4,a5,a6){try{returnModule["dynCall_iiiiiii"](index,a1,a2,a3,a4,a5,a6)}catch(e){if(typeofe!=="number"&&e!=="longjmp")throwe;Module["setThrew"](1,0)}}functioninvoke_ii(index,a1){try{returnModule["dynCall_ii"](index,a1)}catch(e){if(typeofe!=="number"&&e!=="longjmp")throwe;Module["setThrew"](1,0)}}functioninvoke_viiiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11){try{Module["dynCall_viiiiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11)}catch(e){if(typeofe!=="number"&&e!=="longjmp")throwe;Module["setThrew"](1,0)}}functioninvoke_iiiiii(index,a1,a2,a3,a4,a5){try{returnModule["dynCall_iiiiii"](index,a1,a2,a3,a4,a5)}catch(e){if(typeofe!=="number"&&e!=="longjmp")throwe;Module["setThrew"](1,0)}}functioninvoke_iiii(index,a1,a2,a3){try{returnModule["dynCall_iiii"](index,a1,a2,a3)}catch(e){if(typeofe!=="number"&&e!=="longjmp")throwe;Module["setThrew"](1,0)}}functioninvoke_viiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8){try{Module["dynCall_viiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8)}catch(e){if(typeofe!=="number"&&e!=="longjmp")throwe;Module["setThrew"](1,0)}}functioninvoke_viiiiii(index,a1,a2,a3,a4,a5,a6){try{Module["dynCall_viiiiii"](index,a1,a2,a3,a4,a5,a6)}catch(e){if(typeofe!=="number"&&e!=="longjmp")throwe;Module["setThrew"](1,0)}}functioninvoke_viiiiiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13){try{Module["dynCall_viiiiiiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13)}catch(e){if(typeofe!=="number"&&e!=="longjmp")throwe;Module["setThrew"](1,0)}}functioninvoke_viiiiiii(index,a1,a2,a3,a4,a5,a6,a7){try{Module["dynCall_viiiiiii"](index,a1,a2,a3,a4,a5,a6,a7)}catch(e){if(typeofe!=="number"&&e!=="longjmp")throwe;Module["setThrew"](1,0)}}functioninvoke_viiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9){try{Module["dynCall_viiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8,a9)}catch(e){if(typeofe!=="number"&&e!=="longjmp")throwe;Module["setThrew"](1,0)}}functioninvoke_viiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10){try{Module["dynCall_viiiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10)}catch(e){if(typeofe!=="number"&&e!=="longjmp")throwe;Module["setThrew"](1,0)}}functioninvoke_iii(index,a1,a2){try{returnModule["dynCall_iii"](index,a1,a2)}catch(e){if(typeofe!=="number"&&e!=="longjmp")throwe;Module["setThrew"](1,0)}}functioninvoke_i(index){try{returnModule["dynCall_i"](index)}catch(e){if(typeofe!=="number"&&e!=="longjmp")throwe;Module["setThrew"](1,0)}}functioninvoke_viiiiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12){try{Module["dynCall_viiiiiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12)}catch(e){if(typeofe!=="number"&&e!=="longjmp")throwe;Module["setThrew"](1,0)}}functioninvoke_iiiii(index,a1,a2,a3,a4){try{returnModule["dynCall_iiiii"](index,a1,a2,a3,a4)}catch(e){if(typeofe!=="number"&&e!=="longjmp")throwe;Module["setThrew"](1,0)}}functioninvoke_viii(index,a1,a2,a3){try{Module["dynCall_viii"](index,a1,a2,a3)}catch(e){if(typeofe!=="number"&&e!=="longjmp")throwe;Module["setThrew"](1,0)}}functioninvoke_v(index){try{Module["dynCall_v"](index)}catch(e){if(typeofe!=="number"&&e!=="longjmp")throwe;Module["setThrew"](1,0)}}functioninvoke_iiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8){try{returnModule["dynCall_iiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8)}catch(e){if(typeofe!=="number"&&e!=="longjmp")throwe;Module["setThrew"](1,0)}}functioninvoke_viiii(index,a1,a2,a3,a4){try{Module["dynCall_viiii"](index,a1,a2,a3,a4)}catch(e){if(typeofe!=="number"&&e!=="longjmp")throwe;Module["setThrew"](1,0)}}Module.asmGlobalArg={"Math":Math,"Int8Array":Int8Array,"Int16Array":Int16Array,"Int32Array":Int32Array,"Uint8Array":Uint8Array,"Uint16Array":Uint16Array,"Uint32Array":Uint32Array,"Float32Array":Float32Array,"Float64Array":Float64Array,"NaN":NaN,"Infinity":Infinity};Module.asmLibraryArg={"abort":abort,"assert":assert,"enlargeMemory":enlargeMemory,"getTotalMemory":getTotalMemory,"abortOnCannotGrowMemory":abortOnCannotGrowMemory,"invoke_iiiiiiii":invoke_iiiiiiii,"invoke_viiiii":invoke_viiiii,"invoke_vi":invoke_vi,"invoke_vii":invoke_vii,"invoke_iiiiiii":invoke_iiiiiii,"invoke_ii":invoke_ii,"invoke_viiiiiiiiiii":invoke_viiiiiiiiiii,"invoke_iiiiii":invoke_iiiiii,"invoke_iiii":invoke_iiii,"invoke_viiiiiiii":invoke_viiiiiiii,"invoke_viiiiii":invoke_viiiiii,"invoke_viiiiiiiiiiiii":invoke_viiiiiiiiiiiii,"invoke_viiiiiii":invoke_viiiiiii,"invoke_viiiiiiiii":invoke_viiiiiiiii,"invoke_viiiiiiiiii":invoke_viiiiiiiiii,"invoke_iii":invoke_iii,"invoke_i":invoke_i,"invoke_viiiiiiiiiiii":invoke_viiiiiiiiiiii,"invoke_iiiii":invoke_iiiii,"invoke_viii":invoke_viii,"invoke_v":invoke_v,"invoke_iiiiiiiii":invoke_iiiiiiiii,"invoke_viiii":invoke_viiii,"requireFunction":requireFunction,"_pthread_cond_wait":_pthread_cond_wait,"_pthread_join":_pthread_join,"simpleReadValueFromPointer":simpleReadValueFromPointer,"new_":new_,"___syscall54":___syscall54,"__embind_register_integer":__embind_register_integer,"throwInternalError":throwInternalError,"get_first_emval":get_first_emval,"_abort":_abort,"whenDependentTypesAreResolved":whenDependentTypesAreResolved,"___gxx_personality_v0":___gxx_personality_v0,"extendError":extendError,"___assert_fail":___assert_fail,"__embind_register_void":__embind_register_void,"___cxa_find_matching_catch":___cxa_find_matching_catch,"__embind_register_value_object_field":__embind_register_value_object_field,"exposePublicSymbol":exposePublicSymbol,"_pthread_cond_init":_pthread_cond_init,"__embind_register_function":__embind_register_function,"embind_init_charCodes":embind_init_charCodes,"___cxa_begin_catch":___cxa_begin_catch,"___setErrNo":___setErrNo,"__emval_register":__emval_register,"readLatin1String":readLatin1String,"___cxa_allocate_exception":___cxa_allocate_exception,"_emscripten_memcpy_big":_emscripten_memcpy_big,"__embind_register_bool":__embind_register_bool,"___resumeException":___resumeException,"__ZSt18uncaught_exceptionv":__ZSt18uncaught_exceptionv,"_embind_repr":_embind_repr,"__embind_register_std_wstring":__embind_register_std_wstring,"_pthread_getspecific":_pthread_getspecific,"createNamedFunction":createNamedFunction,"__embind_register_emval":__embind_register_emval,"_pthread_cond_signal":_pthread_cond_signal,"__embind_finalize_value_object":__embind_finalize_value_object,"_pthread_mutex_destroy":_pthread_mutex_destroy,"throwUnboundTypeError":throwUnboundTypeError,"craftInvokerFunction":craftInvokerFunction,"__emval_decref":__emval_decref,"_pthread_once":_pthread_once,"getShiftFromSize":getShiftFromSize,"makeLegalFunctionName":makeLegalFunctionName,"_pthread_key_create":_pthread_key_create,"___unlock":___unlock,"heap32VectorToArray":heap32VectorToArray,"init_emval":init_emval,"_pthread_create":_pthread_create,"floatReadValueFromPointer":floatReadValueFromPointer,"__embind_register_value_object":__embind_register_value_object,"_pthread_setspecific":_pthread_setspecific,"integerReadValueFromPointer":integerReadValueFromPointer,"registerType":registerType,"___cxa_throw":___cxa_throw,"___lock":___lock,"_pthread_cond_timedwait":_pthread_cond_timedwait,"___syscall6":___syscall6,"throwBindingError":throwBindingError,"ensureOverloadTable":ensureOverloadTable,"count_emval_handles":count_emval_handles,"_pthread_cond_destroy":_pthread_cond_destroy,"__embind_register_float":__embind_register_float,"_gettimeofday":_gettimeofday,"getTypeName":getTypeName,"___syscall140":___syscall140,"_pthread_mutex_init":_pthread_mutex_init,"__embind_register_memory_view":__embind_register_memory_view,"__embind_register_std_string":__embind_register_std_string,"replacePublicSymbol":replacePublicSymbol,"___cxa_pure_virtual":___cxa_pure_virtual,"___syscall146":___syscall146,"runDestructors":runDestructors,"DYNAMICTOP_PTR":DYNAMICTOP_PTR,"tempDoublePtr":tempDoublePtr,"ABORT":ABORT,"STACKTOP":STACKTOP,"STACK_MAX":STACK_MAX};varasm=Module["asm"](Module.asmGlobalArg,Module.asmLibraryArg,buffer);Module["asm"]=asm;varstackSave=Module["stackSave"]=(function(){returnModule["asm"]["stackSave"].apply(null,arguments)});var_SetIFrameDecInterval=Module["_SetIFrameDecInterval"]=(function(){returnModule["asm"]["_SetIFrameDecInterval"].apply(null,arguments)});var_CloseStream=Module["_CloseStream"]=(function(){returnModule["asm"]["_CloseStream"].apply(null,arguments)});varsetThrew=Module["setThrew"]=(function(){returnModule["asm"]["setThrew"].apply(null,arguments)});var_GetFrameData=Module["_GetFrameData"]=(function(){returnModule["asm"]["_GetFrameData"].apply(null,arguments)});var_sbrk=Module["_sbrk"]=(function(){returnModule["asm"]["_sbrk"].apply(null,arguments)});var_fflush=Module["_fflush"]=(function(){returnModule["asm"]["_fflush"].apply(null,arguments)});var_SetPrintLogFlag=Module["_SetPrintLogFlag"]=(function(){returnModule["asm"]["_SetPrintLogFlag"].apply(null,arguments)});var___cxa_is_pointer_type=Module["___cxa_is_pointer_type"]=(function(){returnModule["asm"]["___cxa_is_pointer_type"].apply(null,arguments)});var_memset=Module["_memset"]=(function(){returnModule["asm"]["_memset"].apply(null,arguments)});var_SetDisplayRegion=Module["_SetDisplayRegion"]=(function(){returnModule["asm"]["_SetDisplayRegion"].apply(null,arguments)});var_memcpy=Module["_memcpy"]=(function(){returnModule["asm"]["_memcpy"].apply(null,arguments)});var___errno_location=Module["___errno_location"]=(function(){returnModule["asm"]["___errno_location"].apply(null,arguments)});varstackAlloc=Module["stackAlloc"]=(function(){returnModule["asm"]["stackAlloc"].apply(null,arguments)});vargetTempRet0=Module["getTempRet0"]=(function(){returnModule["asm"]["getTempRet0"].apply(null,arguments)});var__GLOBAL__sub_I_bind_cpp=Module["__GLOBAL__sub_I_bind_cpp"]=(function(){returnModule["asm"]["__GLOBAL__sub_I_bind_cpp"].apply(null,arguments)});varsetTempRet0=Module["setTempRet0"]=(function(){returnModule["asm"]["setTempRet0"].apply(null,arguments)});var_SetSecretKey=Module["_SetSecretKey"]=(function(){returnModule["asm"]["_SetSecretKey"].apply(null,arguments)});var_DestroyAudEncode=Module["_DestroyAudEncode"]=(function(){returnModule["asm"]["_DestroyAudEncode"].apply(null,arguments)});var_pthread_mutex_unlock=Module["_pthread_mutex_unlock"]=(function(){returnModule["asm"]["_pthread_mutex_unlock"].apply(null,arguments)});var_GetRawDataBuffer=Module["_GetRawDataBuffer"]=(function(){returnModule["asm"]["_GetRawDataBuffer"].apply(null,arguments)});var__GLOBAL__sub_I_Decoder_cpp=Module["__GLOBAL__sub_I_Decoder_cpp"]=(function(){returnModule["asm"]["__GLOBAL__sub_I_Decoder_cpp"].apply(null,arguments)});varrunPostSets=Module["runPostSets"]=(function(){returnModule["asm"]["runPostSets"].apply(null,arguments)});var_SetPlayPosition=Module["_SetPlayPosition"]=(function(){returnModule["asm"]["_SetPlayPosition"].apply(null,arguments)});var_emscripten_get_global_libc=Module["_emscripten_get_global_libc"]=(function(){returnModule["asm"]["_emscripten_get_global_libc"].apply(null,arguments)});var_InputData=Module["_InputData"]=(function(){returnModule["asm"]["_InputData"].apply(null,arguments)});var___getTypeName=Module["___getTypeName"]=(function(){returnModule["asm"]["___getTypeName"].apply(null,arguments)});var_GetJPEG=Module["_GetJPEG"]=(function(){returnModule["asm"]["_GetJPEG"].apply(null,arguments)});var_OpenStream=Module["_OpenStream"]=(function(){returnModule["asm"]["_OpenStream"].apply(null,arguments)});var_GetBMP=Module["_GetBMP"]=(function(){returnModule["asm"]["_GetBMP"].apply(null,arguments)});var_pthread_cond_broadcast=Module["_pthread_cond_broadcast"]=(function(){returnModule["asm"]["_pthread_cond_broadcast"].apply(null,arguments)});var_InputAudEncodeData=Module["_InputAudEncodeData"]=(function(){returnModule["asm"]["_InputAudEncodeData"].apply(null,arguments)});var_llvm_bswap_i32=Module["_llvm_bswap_i32"]=(function(){returnModule["asm"]["_llvm_bswap_i32"].apply(null,arguments)});var_GetFrameBuffer=Module["_GetFrameBuffer"]=(function(){returnModule["asm"]["_GetFrameBuffer"].apply(null,arguments)});var___cxa_can_catch=Module["___cxa_can_catch"]=(function(){returnModule["asm"]["___cxa_can_catch"].apply(null,arguments)});var_free=Module["_free"]=(function(){returnModule["asm"]["_free"].apply(null,arguments)});var_CreateAudEncode=Module["_CreateAudEncode"]=(function(){returnModule["asm"]["_CreateAudEncode"].apply(null,arguments)});varestablishStackSpace=Module["establishStackSpace"]=(function(){returnModule["asm"]["establishStackSpace"].apply(null,arguments)});var_SetDecodeFrameType=Module["_SetDecodeFrameType"]=(function(){returnModule["asm"]["_SetDecodeFrameType"].apply(null,arguments)});var_SetStreamOpenMode=Module["_SetStreamOpenMode"]=(function(){returnModule["asm"]["_SetStreamOpenMode"].apply(null,arguments)});var_GetAudFrameBuffer=Module["_GetAudFrameBuffer"]=(function(){returnModule["asm"]["_GetAudFrameBuffer"].apply(null,arguments)});varstackRestore=Module["stackRestore"]=(function(){returnModule["asm"]["stackRestore"].apply(null,arguments)});var_malloc=Module["_malloc"]=(function(){returnModule["asm"]["_malloc"].apply(null,arguments)});var_Pause=Module["_Pause"]=(function(){returnModule["asm"]["_Pause"].apply(null,arguments)});var_pthread_mutex_lock=Module["_pthread_mutex_lock"]=(function(){returnModule["asm"]["_pthread_mutex_lock"].apply(null,arguments)});var_SetAudEncodeParam=Module["_SetAudEncodeParam"]=(function(){returnModule["asm"]["_SetAudEncodeParam"].apply(null,arguments)});var_memmove=Module["_memmove"]=(function(){returnModule["asm"]["_memmove"].apply(null,arguments)});var_GetAudFrameData=Module["_GetAudFrameData"]=(function(){returnModule["asm"]["_GetAudFrameData"].apply(null,arguments)});var_Stop=Module["_Stop"]=(function(){returnModule["asm"]["_Stop"].apply(null,arguments)});vardynCall_iiiiiiii=Module["dynCall_iiiiiiii"]=(function(){returnModule["asm"]["dynCall_iiiiiiii"].apply(null,arguments)});vardynCall_viiiii=Module["dynCall_viiiii"]=(function(){returnModule["asm"]["dynCall_viiiii"].apply(null,arguments)});vardynCall_vi=Module["dynCall_vi"]=(function(){returnModule["asm"]["dynCall_vi"].apply(null,arguments)});vardynCall_vii=Module["dynCall_vii"]=(function(){returnModule["asm"]["dynCall_vii"].apply(null,arguments)});vardynCall_iiiiiii=Module["dynCall_iiiiiii"]=(function(){returnModule["asm"]["dynCall_iiiiiii"].apply(null,arguments)});vardynCall_ii=Module["dynCall_ii"]=(function(){returnModule["asm"]["dynCall_ii"].apply(null,arguments)});vardynCall_viiiiiiiiiii=Module["dynCall_viiiiiiiiiii"]=(function(){returnModule["asm"]["dynCall_viiiiiiiiiii"].apply(null,arguments)});vardynCall_iiiiii=Module["dynCall_iiiiii"]=(function(){returnModule["asm"]["dynCall_iiiiii"].apply(null,arguments)});vardynCall_iiii=Module["dynCall_iiii"]=(function(){returnModule["asm"]["dynCall_iiii"].apply(null,arguments)});vardynCall_viiiiiiii=Module["dynCall_viiiiiiii"]=(function(){returnModule["asm"]["dynCall_viiiiiiii"].apply(null,arguments)});vardynCall_viiiiii=Module["dynCall_viiiiii"]=(function(){returnModule["asm"]["dynCall_viiiiii"].apply(null,arguments)});vardynCall_viiiiiiiiiiiii=Module["dynCall_viiiiiiiiiiiii"]=(function(){returnModule["asm"]["dynCall_viiiiiiiiiiiii"].apply(null,arguments)});vardynCall_viiiiiii=Module["dynCall_viiiiiii"]=(function(){returnModule["asm"]["dynCall_viiiiiii"].apply(null,arguments)});vardynCall_viiiiiiiii=Module["dynCall_viiiiiiiii"]=(function(){returnModule["asm"]["dynCall_viiiiiiiii"].apply(null,arguments)});vardynCall_viiiiiiiiii=Module["dynCall_viiiiiiiiii"]=(function(){returnModule["asm"]["dynCall_viiiiiiiiii"].apply(null,arguments)});vardynCall_iii=Module["dynCall_iii"]=(function(){returnModule["asm"]["dynCall_iii"].apply(null,arguments)});vardynCall_i=Module["dynCall_i"]=(function(){returnModule["asm"]["dynCall_i"].apply(null,arguments)});vardynCall_viiiiiiiiiiii=Module["dynCall_viiiiiiiiiiii"]=(function(){returnModule["asm"]["dynCall_viiiiiiiiiiii"].apply(null,arguments)});vardynCall_iiiii=Module["dynCall_iiiii"]=(function(){returnModule["asm"]["dynCall_iiiii"].apply(null,arguments)});vardynCall_viii=Module["dynCall_viii"]=(function(){returnModule["asm"]["dynCall_viii"].apply(null,arguments)});vardynCall_v=Module["dynCall_v"]=(function(){returnModule["asm"]["dynCall_v"].apply(null,arguments)});vardynCall_iiiiiiiii=Module["dynCall_iiiiiiiii"]=(function(){returnModule["asm"]["dynCall_iiiiiiiii"].apply(null,arguments)});vardynCall_viiii=Module["dynCall_viiii"]=(function(){returnModule["asm"]["dynCall_viiii"].apply(null,arguments)});Runtime.stackAlloc=Module["stackAlloc"];Runtime.stackSave=Module["stackSave"];Runtime.stackRestore=Module["stackRestore"];Runtime.establishStackSpace=Module["establishStackSpace"];Runtime.setTempRet0=Module["setTempRet0"];Runtime.getTempRet0=Module["getTempRet0"];Module["asm"]=asm;if(memoryInitializer){if(typeofModule["locateFile"]==="function"){memoryInitializer=Module["locateFile"](memoryInitializer)}elseif(Module["memoryInitializerPrefixURL"]){memoryInitializer=Module["memoryInitializerPrefixURL"]+memoryInitializer}if(ENVIRONMENT_IS_NODE||ENVIRONMENT_IS_SHELL){vardata=Module["readBinary"](memoryInitializer);HEAPU8.set(data,Runtime.GLOBAL_BASE)}else{addRunDependency("memory initializer");varapplyMemoryInitializer=(function(data){if(data.byteLength)data=newUint8Array(data);HEAPU8.set(data,Runtime.GLOBAL_BASE);if(Module["memoryInitializerRequest"])deleteModule["memoryInitializerRequest"].response;removeRunDependency("memory initializer")});functiondoBrowserLoad(){Module["readAsync"](memoryInitializer,applyMemoryInitializer,(function(){throw"could not load memory initializer "+memoryInitializer}))}if(Module["memoryInitializerRequest"]){functionuseRequest(){varrequest=Module["memoryInitializerRequest"];if(request.status!==200&&request.status!==0){console.warn("a problem seems to have happened with Module.memoryInitializerRequest, status: "+request.status+", retrying "+memoryInitializer);doBrowserLoad();return}applyMemoryInitializer(request.response)}if(Module["memoryInitializerRequest"].response){setTimeout(useRequest,0)}else{Module["memoryInitializerRequest"].addEventListener("load",useRequest)}}else{doBrowserLoad()}}}functionExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}ExitStatus.prototype=newError;ExitStatus.prototype.constructor=ExitStatus;varinitialStackTop;varpreloadStartTime=null;varcalledMain=false;dependenciesFulfilled=functionrunCaller(){if(!Module["calledRun"])run();if(!Module["calledRun"])dependenciesFulfilled=runCaller};Module["callMain"]=Module.callMain=functioncallMain(args){args=args||[];ensureInitRuntime();varargc=args.length+1;functionpad(){for(vari=0;i<4-1;i++){argv.push(0)}}varargv=[allocate(intArrayFromString(Module["thisProgram"]),"i8",ALLOC_NORMAL)];pad();for(vari=0;i<argc-1;i=i+1){argv.push(allocate(intArrayFromString(args[i]),"i8",ALLOC_NORMAL));pad()}argv.push(0);argv=allocate(argv,"i32",ALLOC_NORMAL);try{varret=Module["_main"](argc,argv,0);exit(ret,true)}catch(e){if(einstanceofExitStatus){return}elseif(e=="SimulateInfiniteLoop"){Module["noExitRuntime"]=true;return}else{vartoLog=e;if(e&&typeofe==="object"&&e.stack){toLog=[e,e.stack]}Module.printErr("exception thrown: "+toLog);Module["quit"](1,e)}}finally{calledMain=true}};functionrun(args){args=args||Module["arguments"];if(preloadStartTime===null)preloadStartTime=Date.now();if(runDependencies>0){return}preRun();if(runDependencies>0)return;if(Module["calledRun"])return;functiondoRun(){if(Module["calledRun"])return;Module["calledRun"]=true;if(ABORT)return;ensureInitRuntime();preMain();if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();if(Module["_main"]&&shouldRunNow)Module["callMain"](args);postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout((function(){setTimeout((function(){Module["setStatus"]("")}),1);doRun()}),1)}else{doRun()}}Module["run"]=Module.run=run;functionexit(status,implicit){if(implicit&&Module["noExitRuntime"]){return}if(Module["noExitRuntime"]){}else{ABORT=true;EXITSTATUS=status;STACKTOP=initialStackTop;exitRuntime();if(Module["onExit"])Module["onExit"](status)}if(ENVIRONMENT_IS_NODE){process["exit"](status)}Module["quit"](status,newExitStatus(status))}Module["exit"]=Module.exit=exit;varabortDecorators=[];functionabort(what){if(Module["onAbort"]){Module["onAbort"](what)}if(what!==undefined){Module.print(what);Module.printErr(what);what=JSON.stringify(what)}else{what=""}ABORT=true;EXITSTATUS=1;varextra="\nIf this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.";varoutput="abort("+what+") at "+stackTrace()+extra;if(abortDecorators){abortDecorators.forEach((function(decorator){output=decorator(output,what)}))}throwoutput}Module["abort"]=Module.abort=abort;if(Module["preInit"]){if(typeofModule["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()()}}varshouldRunNow=true;if(Module["noInitialRun"]){shouldRunNow=false}run()