1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 19:23:18 +00:00
musix-oss/node_modules/opusscript/build/opusscript_native.js

22 lines
669 KiB
JavaScript
Raw Normal View History

var Module;if(!Module)Module=(typeof Module!=="undefined"?Module:null)||{};var moduleOverrides={};for(var key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;if(Module["ENVIRONMENT"]){if(Module["ENVIRONMENT"]==="WEB"){ENVIRONMENT_IS_WEB=true}else if(Module["ENVIRONMENT"]==="WORKER"){ENVIRONMENT_IS_WORKER=true}else if(Module["ENVIRONMENT"]==="NODE"){ENVIRONMENT_IS_NODE=true}else if(Module["ENVIRONMENT"]==="SHELL"){ENVIRONMENT_IS_SHELL=true}else{throw new Error("The provided Module['ENVIRONMENT'] value is not valid. It must be one of: WEB|WORKER|NODE|SHELL.")}}else{ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScripts==="function";ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof require==="function"&&!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;var nodeFS;var nodePath;Module["read"]=function read(filename,binary){if(!nodeFS)nodeFS=require("fs");if(!nodePath)nodePath=require("path");filename=nodePath["normalize"](filename);var ret=nodeFS["readFileSync"](filename);if(!ret&&filename!=nodePath["resolve"](filename)){filename=path.join(__dirname,"..","src",filename);ret=nodeFS["readFileSync"](filename)}if(ret&&!binary)ret=ret.toString();return ret};Module["readBinary"]=function readBinary(filename){var ret=Module["read"](filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}assert(ret.buffer);return ret};Module["load"]=function load(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(typeof module!=="undefined"){module["exports"]=Module}Module["inspect"]=(function(){return"[Emscripten Module object]"})}else if(ENVIRONMENT_IS_SHELL){if(!Module["print"])Module["print"]=print;if(typeof printErr!="undefined")Module["printErr"]=printErr;if(typeof read!="undefined"){Module["read"]=read}else{Module["read"]=function read(){throw"no read() available (jsc?)"}}Module["readBinary"]=function readBinary(f){if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}var data=read(f,"binary");assert(typeof data==="object");return data};if(typeof scriptArgs!="undefined"){Module["arguments"]=scriptArgs}else if(typeof arguments!="undefined"){Module["arguments"]=arguments}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){Module["read"]=function read(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText};Module["readAsync"]=function readAsync(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=function xhr_onload(){if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response)}else{onerror()}};xhr.onerror=onerror;xhr.send(null)};if(typeof arguments!="undefined"){Module["arguments"]=arguments}if(typeof console!=="undefined"){if(!Module["print"])Module["print"]=function print(x){console.log(x)};if(!Module["printErr"])Module["printErr"]=function printErr(x){console.warn(x)}}else{var TRY_USE_DUMP=false;if(!Module["print"])Module["print"]=TRY_USE_DUMP&&typeof dump!=="undefined"?(function(x){dump(x)}):(function(x){})}if(ENVIRONMENT_IS_WORKER){Module["load"]=importScripts}if(typeof Module["setWindowTitle"]==="undefined"){Module["setWindowTitle"]=(function(title){document.title=title})}}else{throw"Unknown runtime environment. Where are we?"}function globalEval(x){eval.call(null,x)}if(!Module["load"]&&Module["read"]){Module["load"]=function load(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"
var asm=(function(global,env,buffer) {
"almost asm";var a=global.Int8Array;var b=global.Int16Array;var c=global.Int32Array;var d=global.Uint8Array;var e=global.Uint16Array;var f=global.Uint32Array;var g=global.Float32Array;var h=global.Float64Array;var i=new a(buffer);var j=new b(buffer);var k=new c(buffer);var l=new d(buffer);var m=new e(buffer);var n=new f(buffer);var o=new g(buffer);var p=new h(buffer);var q=global.byteLength;var r=env.STACKTOP|0;var s=env.STACK_MAX|0;var t=env.tempDoublePtr|0;var u=env.ABORT|0;var v=env.cttz_i8|0;var w=0;var x=0;var y=0;var z=0;var A=global.NaN,B=global.Infinity;var C=0,D=0,E=0,F=0,G=0.0,H=0,I=0,J=0,K=0.0;var L=0;var M=0;var N=0;var O=0;var P=0;var Q=0;var R=0;var S=0;var T=0;var U=0;var V=global.Math.floor;var W=global.Math.abs;var X=global.Math.sqrt;var Y=global.Math.pow;var Z=global.Math.cos;var _=global.Math.sin;var $=global.Math.tan;var aa=global.Math.acos;var ba=global.Math.asin;var ca=global.Math.atan;var da=global.Math.atan2;var ea=global.Math.exp;var fa=global.Math.log;var ga=global.Math.ceil;var ha=global.Math.imul;var ia=global.Math.min;var ja=global.Math.clz32;var ka=env.abort;var la=env.assert;var ma=env.invoke_iiii;var na=env.invoke_viiiii;var oa=env.invoke_vi;var pa=env.invoke_vii;var qa=env.invoke_iiiiiii;var ra=env.invoke_ii;var sa=env.invoke_viiiiiii;var ta=env.invoke_v;var ua=env.invoke_iiiii;var va=env.invoke_viiiiii;var wa=env.invoke_iiiiii;var xa=env.invoke_viiii;var ya=env.floatReadValueFromPointer;var za=env.simpleReadValueFromPointer;var Aa=env.throwInternalError;var Ba=env.get_first_emval;var Ca=env._llvm_fabs_f64;var Da=env.getLiveInheritedInstances;var Ea=env.__ZSt18uncaught_exceptionv;var Fa=env.ClassHandle;var Ga=env.getShiftFromSize;var Ha=env._sbrk;var Ia=env._emscripten_memcpy_big;var Ja=env.runDestructor;var Ka=env._sysconf;var La=env.throwInstanceAlreadyDeleted;var Ma=env.__embind_register_std_string;var Na=env.init_RegisteredPointer;var Oa=env.ClassHandle_isAliasOf;var Pa=env._llvm_stacksave;var Qa=env.flushPendingDeletes;var Ra=env.makeClassHandle;var Sa=env.whenDependentTypesAreResolved;var Ta=env.__embind_register_class_constructor;var Ua=env.init_ClassHandle;var Va=env.ClassHandle_clone;var Wa=env.RegisteredClass;var Xa=env._llvm_stackrestore;var Ya=env.___cxa_find_matching_catch;var Za=env.embind_init_charCodes;var _a=env.___setErrNo;var $a=env.readLatin1String;var ab=env.__embind_register_bool;var bb=env.___resumeException;var cb=env.createNamedFunction;var db=env.__embind_register_emval;var eb=env.__emval_decref;var fb=env.init_embind;var gb=env.constNoSmartPtrRawPointerToWireType;var hb=env.heap32VectorToArray;var ib=env.ClassHandle_delete;var jb=env.RegisteredPointer_destructor;var kb=env.ensureOverloadTable;var lb=env._time;var mb=env.new_;var nb=env.downcastPointer;var ob=env.replacePublicSymbol;var pb=env.__embind_register_class;var qb=env._llvm_pow_f64;var rb=env.ClassHandle_deleteLater;var sb=env.RegisteredPointer_deleteObject;var tb=env.ClassHandle_isDeleted;var ub=env.__embind_register_integer;var vb=env.___cxa_allocate_exception;var wb=env._embind_repr;var xb=env.throwUnboundTypeError;var yb=env.craftInvokerFunction;var zb=env.runDestructors;var Ab=env.makeLegalFunctionName;var Bb=env.upcastPointer;var Cb=env.init_emval;var Db=env.shallowCopyInternalPointer;var Eb=env.nonConstNoSmartPtrRawPointerToWireType;var Fb=env._abort;var Gb=env.throwBindingError;var Hb=env.getTypeName;var Ib=env.exposePublicSymbol;var Jb=env.RegisteredPointer_fromWireType;var Kb=env.__embind_register_memory_view;var Lb=env.getInheritedInstance;var Mb=env.setDelayFunction;var Nb=env.___gxx_personality_v0;var Ob=env.extendError;var Pb=env.__embind_register_void;var Qb=env.RegisteredPointer_getPointee;var Rb=env.__emval_register;var Sb=env.__embind_register_std_wstring;var Tb=env.__embind_register_class_function;var Ub=env.RegisteredPointer;var Vb=env.__embind_register_class_class_function;var Wb=env._pthread_self;var Xb=env.getBasestPointer;var Yb=env.getInheritedInstanceCount;var Zb=env.__embind_register_float;var _b=env.integerReadValueFromPointer;var $b=env.genericPointerToWireType;var ac=env.r
// EMSCRIPTEN_START_FUNCS
function je(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;F=r;r=r+32|0;A=F;if((d|0)==0?(k[a+2404+(c<<2)>>2]|0)==0:0){v=b+28|0;h=k[v>>2]|0;w=b+32|0;d=k[w>>2]|0;f=h>>>8;c=-1;while(1){c=c+1|0;g=ha(l[33950+c>>0]|0,f)|0;if(d>>>0>=g>>>0)break;else h=g}n=d-g|0;k[w>>2]=n;d=h-g|0;k[v>>2]=d;if(d>>>0<8388609){q=b+20|0;s=b+40|0;t=b+24|0;p=k[b+4>>2]|0;u=k[q>>2]|0;f=k[t>>2]|0;o=k[s>>2]|0;h=n;while(1){u=u+8|0;k[q>>2]=u;d=d<<8;k[v>>2]=d;if(f>>>0<p>>>0){E=f+1|0;k[t>>2]=E;g=l[(k[b>>2]|0)+f>>0]|0;f=E}else g=0;k[s>>2]=g;h=((g|o<<8)>>>1&255|h<<8&2147483392)^255;k[w>>2]=h;if(d>>>0>=8388609)break;else o=g}}}else{t=b+28|0;h=k[t>>2]|0;u=b+32|0;c=k[u>>2]|0;d=h>>>8;v=-1;while(1){f=v+1|0;g=ha(l[33946+f>>0]|0,d)|0;if(c>>>0<g>>>0){v=f;h=g}else break}f=c-g|0;k[u>>2]=f;c=h-g|0;k[t>>2]=c;if(c>>>0<8388609){o=b+20|0;p=b+40|0;q=b+24|0;n=k[b+4>>2]|0;s=k[o>>2]|0;d=k[q>>2]|0;h=k[p>>2]|0;g=f;while(1){s=s+8|0;k[o>>2]=s;c=c<<8;k[t>>2]=c;if(d>>>0<n>>>0){E=d+1|0;k[q>>2]=E;f=l[(k[b>>2]|0)+d>>0]|0;d=E}else f=0;k[p>>2]=f;g=((f|h<<8)>>>1&255|g<<8&2147483392)^255;k[u>>2]=g;if(c>>>0>=8388609)break;else h=f}}c=v+3|0}d=c>>>1;x=a+2736|0;E=a+2765|0;i[E>>0]=d;i[a+2766>>0]=c&1;z=(e|0)==2;if(z){w=b+28|0;g=k[w>>2]|0;u=b+32|0;c=k[u>>2]|0;d=g>>>8;v=-1;while(1){v=v+1|0;f=ha(l[33409+v>>0]|0,d)|0;if(c>>>0>=f>>>0)break;else g=f}h=c-f|0;k[u>>2]=h;c=g-f|0;k[w>>2]=c;if(c>>>0<8388609){p=b+20|0;q=b+40|0;s=b+24|0;o=k[b+4>>2]|0;t=k[p>>2]|0;d=k[s>>2]|0;n=k[q>>2]|0;g=h;while(1){t=t+8|0;k[p>>2]=t;c=c<<8;k[w>>2]=c;if(d>>>0<o>>>0){D=d+1|0;k[s>>2]=D;f=l[(k[b>>2]|0)+d>>0]|0;d=D}else f=0;k[q>>2]=f;g=((f|n<<8)>>>1&255|g<<8&2147483392)^255;k[u>>2]=g;if(c>>>0>=8388609)break;else n=f}}i[x>>0]=v;D=u}else{c=d<<24>>24;w=b+28|0;h=k[w>>2]|0;v=b+32|0;d=k[v>>2]|0;f=h>>>8;t=-1;while(1){t=t+1|0;g=ha(l[33385+(c<<3)+t>>0]|0,f)|0;if(d>>>0>=g>>>0)break;else h=g}f=d-g|0;k[v>>2]=f;c=h-g|0;k[w>>2]=c;if(c>>>0<8388609){o=b+20|0;p=b+40|0;q=b+24|0;n=k[b+4>>2]|0;s=k[o>>2]|0;d=k[q>>2]|0;h=k[p>>2]|0;g=f;while(1){s=s+8|0;k[o>>2]=s;c=c<<8;k[w>>2]=c;if(d>>>0<n>>>0){D=d+1|0;k[q>>2]=D;f=l[(k[b>>2]|0)+d>>0]|0;d=D}else f=0;k[p>>2]=f;g=((f|h<<8)>>>1&255|g<<8&2147483392)^255;k[v>>2]=g;if(c>>>0>=8388609)break;else h=f}}i[x>>0]=t<<3;g=k[w>>2]|0;c=k[v>>2]|0;d=g>>>8;u=-1;while(1){u=u+1|0;f=ha(l[33975+u>>0]|0,d)|0;if(c>>>0>=f>>>0)break;else g=f}h=c-f|0;k[v>>2]=h;c=g-f|0;k[w>>2]=c;if(c>>>0<8388609){p=b+20|0;q=b+40|0;s=b+24|0;o=k[b+4>>2]|0;t=k[p>>2]|0;d=k[s>>2]|0;n=k[q>>2]|0;g=h;while(1){t=t+8|0;k[p>>2]=t;c=c<<8;k[w>>2]=c;if(d>>>0<o>>>0){D=d+1|0;k[s>>2]=D;f=l[(k[b>>2]|0)+d>>0]|0;d=D}else f=0;k[q>>2]=f;g=((f|n<<8)>>>1&255|g<<8&2147483392)^255;k[v>>2]=g;if(c>>>0>=8388609)break;else n=f}}i[x>>0]=(l[x>>0]|0)+u;D=v}B=a+2324|0;if((k[B>>2]|0)>1){q=b+20|0;s=b+40|0;t=b+24|0;u=b+4|0;v=1;do{g=k[w>>2]|0;c=k[D>>2]|0;d=g>>>8;x=-1;while(1){x=x+1|0;f=ha(l[33409+x>>0]|0,d)|0;if(c>>>0>=f>>>0)break;else g=f}h=c-f|0;k[D>>2]=h;c=g-f|0;k[w>>2]=c;if(c>>>0<8388609){o=k[u>>2]|0;p=k[q>>2]|0;d=k[t>>2]|0;n=k[s>>2]|0;g=h;while(1){p=p+8|0;k[q>>2]=p;c=c<<8;k[w>>2]=c;if(d>>>0<o>>>0){y=d+1|0;k[t>>2]=y;f=l[(k[b>>2]|0)+d>>0]|0;d=y}else f=0;k[s>>2]=f;g=((f|n<<8)>>>1&255|g<<8&2147483392)^255;k[D>>2]=g;if(c>>>0>=8388609)break;else n=f}}i[a+2736+v>>0]=x;v=v+1|0}while((v|0)<(k[B>>2]|0))}y=a+2732|0;h=k[y>>2]|0;c=ha(j[h>>1]|0,i[E>>0]>>1)|0;c=(k[h+16>>2]|0)+c|0;h=k[w>>2]|0;d=k[D>>2]|0;f=h>>>8;t=-1;while(1){t=t+1|0;g=ha(l[c+t>>0]|0,f)|0;if(d>>>0>=g>>>0)break;else h=g}f=d-g|0;k[D>>2]=f;c=h-g|0;k[w>>2]=c;if(c>>>0<8388609){o=b+20|0;p=b+40|0;q=b+24|0;n=k[b+4>>2]|0;s=k[o>>2]|0;d=k[q>>2]|0;h=k[p>>2]|0;g=f;while(1){s=s+8|0;k[o>>2]=s;c=c<<8;k[w>>2]=c;if(d>>>0<n>>>0){x=d+1|0;k[q>>2]=x;f=l[(k[b>>2]|0)+d>>0]|0;d=x}else f=0;k[p>>2]=f;g=((f|h<<8)>>>1&255|g<<8&2147483392)^255;k[D>>2]=g;if(c>>>0>=8388609)break;else h=f}}i[a+2744>>0]=t;g=k[y>>2]|0;c=j[g+2>>1]|0;a:do if(c<<16>>16>0){f=c<<16>>16;c=(k[g+24>>2]|0)+((ha(f,t<<24>>24)|0)/2|0)|0;d=0;while(1){x=i[c>>0]|0;j[A+(d<<1)>>1]=((x&255)>>>1&7)*9;j[A+((d|1)<<1)>>1]=((x&255)>>>5&255)*9;d=d+2|0;if((d|0)>=(f|0))break;else c=c+1|0}t=b+20|0;u=b+40|0;v=b+24|0;x=b+4|0;c=g
function bd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0.0,v=0.0,w=0,x=0.0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0.0,G=0,H=0,I=0.0,J=0,K=0.0,L=0.0,M=0,N=0,O=0,P=0,Q=0.0,R=0,S=0,T=0,U=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0.0,da=0,ea=0,ga=0,ia=0,ka=0,la=0,ma=0,na=0,oa=0,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S>>2]|0;C=a+184+(D<<2)|0;v=+o[y>>2];u=+o[C>>2];if(c|((s|0)!=1|+o[z>>2]!=0.0)){d=(Ma|0)/(s|0)|0;if((s|0)!=1)rf(t|0,0,B|0)|0;if((d|0)>0){q=0;do{Ba=f+((ha(q,db)|0)<<2)|0;La=t+((ha(q,s)|0)<<2)|0;o[La>>2]=+o[Ba>>2]*32768.0;q=q+1|0}while((q|0)!=(d|0));if(c){c=0;do{La=t+((ha(c,s)|0)<<2)|0;Ka=+o[La>>2];ya=Ka>65536.0;Ba=(ya?65536.0:Ka)<-65536.0;o[La>>2]=ya|Ba?(Ba?-65536.0:65536.0):Ka;c=c+1|0}while((c|0)!=(d|0))}}if(A){c=0;do{La=t+(c<<2)|0;Ka=+o[La>>2];o[La>>2]=Ka-u;u=v*Ka;c=c+1|0}while((c|0)!=(Ma|0))}}else if(A){c=0;do{La=f+((ha(c,db)|
function sc(a){a=a|0;var b=0;b=r;r=r+a|0;r=r+15&-16;return b|0}function tc(){return r|0}function uc(a){a=a|0;r=a}function vc(a,b){a=a|0;b=b|0;r=a;s=b}function wc(a,b){a=a|0;b=b|0;if(!w){w=a;x=b}}function xc(a){a=a|0;i[t>>0]=i[a>>0];i[t+1>>0]=i[a+1>>0];i[t+2>>0]=i[a+2>>0];i[t+3>>0]=i[a+3>>0]}function yc(a){a=a|0;i[t>>0]=i[a>>0];i[t+1>>0]=i[a+1>>0];i[t+2>>0]=i[a+2>>0];i[t+3>>0]=i[a+3>>0];i[t+4>>0]=i[a+4>>0];i[t+5>>0]=i[a+5>>0];i[t+6>>0]=i[a+6>>0];i[t+7>>0]=i[a+7>>0]}function zc(a){a=a|0;L=a}function Ac(){return L|0}function Bc(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;if((c|0)>0){f=0;do{g=f<<1;j[b+(f<<1)>>1]=j[b+((g|1)<<1)>>1]<<8|m[b+(g<<1)>>1];f=f+1|0}while((f|0)!=(c|0))}return Xc(k[a+12>>2]|0,b,e,d)|0}function Cc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=a+20|0;f=Sc(k[a+16>>2]|0,b,c,k[e>>2]|0)|0;a=ha(k[a+4>>2]|0,f)|0;if((a|0)<=0)return f|0;c=k[e>>2]|0;b=0;do{g=c+(b<<1)|0;e=b<<1;j[d+(e<<1)>>1]=(m[g>>1]|0)&255;j[d+((e|1)<<1)>>1]=(m[g>>1]|0)>>>8;b=b+1|0}while((b|0)!=(a|0));return f|0}function Dc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=r;r=r+16|0;e=d;a=k[a+12>>2]|0;k[e>>2]=c;a=Yc(a,b,e)|0;r=d;return a|0}function Ec(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=r;r=r+16|0;e=d;a=k[a+16>>2]|0;k[e>>2]=c;a=Tc(a,b,e)|0;r=d;return a|0}function Fc(a){a=a|0;var b=0;if(!a)return;Me(k[a+12>>2]|0);Me(k[a+16>>2]|0);b=k[a+20>>2]|0;if(b|0)Me(b);Me(a);return}function Gc(a){a=a|0;return 8}function Hc(a){a=a|0;var b=0;if(!a)return;Me(k[a+12>>2]|0);Me(k[a+16>>2]|0);b=k[a+20>>2]|0;if(b|0)Me(b);Me(a);return}function Ic(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,l=0,m=0,n=0,p=0,q=0,s=0,t=0,u=0;s=r;r=r+48|0;q=s+32|0;p=s+24|0;m=s+16|0;l=s+8|0;i=s;d=Le(24)|0;a:do if(!d){while(1){d=k[9872]|0;k[9872]=d+0;if(!d)break;nc[d&0]();d=Le(24)|0;if(d|0){t=d;break a}}u=vb(4)|0;k[u>>2]=27116;bc(u|0,4392,6)}else t=d;while(0);n=k[a>>2]|0;h=k[b>>2]|0;g=k[c>>2]|0;k[t>>2]=g;k[t+4>>2]=h;k[t+8>>2]=n;a=h*11520|0;a=a>>>0>2147483647?-1:a<<1;a=(a|0)==0?1:a;d=Le(a)|0;b:do if(!d){while(1){d=k[9872]|0;k[9872]=d+0;if(!d)break;nc[d&0]();d=Le(a)|0;if(d|0)break b}u=vb(4)|0;k[u>>2]=27116;bc(u|0,4392,6)}while(0);k[t+20>>2]=d;c:do if((n|0)<16e3)if((n|0)<12e3)switch(n|0){case 8e3:{u=10;break c}default:{d=-1;break c}}else switch(n|0){case 12e3:{u=10;break c}default:{d=-1;break c}}else{if((n|0)<24e3)switch(n|0){case 16e3:{u=10;break c}default:{d=-1;break c}}if((n|0)<48e3)switch(n|0){case 24e3:{u=10;break c}default:{d=-1;break c}}else switch(n|0){case 48e3:{u=10;break c}default:{d=-1;break c}}}while(0);d:do if((u|0)==10)if((h+-1|0)>>>0<=1){switch(g|0){case 2048:case 2049:case 2051:break;default:{d=-1;break d}}a=h*4912|0;d=a+38480|0;f=Le(d)|0;if(!f)d=-7;else{e:do if((n|0)<16e3)if((n|0)<12e3)switch(n|0){case 8e3:{u=14;break e}default:{d=-1;break e}}else switch(n|0){case 12e3:{u=14;break e}default:{d=-1;break e}}else{if((n|0)<24e3)switch(n|0){case 16e3:{u=14;break e}default:{d=-1;break e}}if((n|0)<48e3)switch(n|0){case 24e3:{u=14;break e}default:{d=-1;break e}}else switch(n|0){case 48e3:{u=14;break e}default:{d=-1;break e}}}while(0);f:do if((u|0)==14){switch(g|0){case 2048:case 2049:case 2051:break;default:{d=-1;break f}}rf(f|0,0,d|0)|0;k[f+4>>2]=18036;k[f>>2]=38244;b=f+38244|0;k[f+112>>2]=h;k[f+14088>>2]=h;c=f+144|0;k[c>>2]=n;d=f+180|0;k[d>>2]=0;e=f+8|0;Id(f+18036|0,0,e);k[e>>2]=h;k[f+12>>2]=h;k[f+16>>2]=k[c>>2];k[f+20>>2]=16e3;k[f+24>>2]=8e3;k[f+28>>2]=16e3;k[f+32>>2]=20;k[f+36>>2]=25e3;k[f+40>>2]=0;e=f+44|0;k[e>>2]=9;k[f+48>>2]=0;k[f+56>>2]=0;k[f+60>>2]=0;k[f+76>>2]=0;if(h>>>0>2)d=-3;else{d=k[d>>2]|0;rf(b|0,0,a+236|0)|0;k[b>>2]=9268;k[f+38248>>2]=h;k[f+38252>>2]=h;a=f+38272|0;k[a>>2]=1;k[f+38276>>2]=0;k[f+38280>>2]=21;k[f+38292>>2]=1;k[f+38316>>2]=d;k[f+38296>>2]=1;k[f+38260>>2]=1;k[f+38284>>2]=-1;k[f+38288>>2]=0;k[f+38256>>2]=0;k[f+38268>>2]=5;k[f+38304>>2]=24;ad(b,4028,i)|0;g:do if((n|0)<16e3)if((n|0)<12e3){switch(n|0){case 8e3:break;default:{u=21;break g}}d=6;break}else{switch(n|0){case 12e3:break;default:{u=21;break g}}d=4;break}else{if((n|0)<24e3){switch(n|0){case 16e3:break;default:{u=21;break g}}d=3;break}if((n|0)>=48e3)switch(n|0){case 48e3:{d=1;break g}de
function Xd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0.0,h=0,n=0,q=0,s=0.0,u=0,v=0,w=0.0,x=0.0,y=0.0,z=0.0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,M=0,N=0,O=0,P=0,Q=0.0,R=0.0,S=0,T=0.0,U=0,V=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,fa=0,ga=0,ia=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0.0;Xa=r;r=r+35664|0;Ba=Xa+248|0;Aa=Xa+48|0;za=Xa+27480|0;xa=Xa+26840|0;ra=Xa+26200|0;sa=Xa+25880|0;ta=Xa+23496|0;u=Xa+23232|0;ya=Xa+21696|0;ba=Xa+9360|0;aa=Xa+34072|0;na=Xa+6640|0;ma=Xa+3920|0;Y=Xa+32792|0;V=Xa+31832|0;U=Xa+3848|0;wa=Xa+3784|0;va=Xa+3720|0;ua=Xa+2184|0;Ra=Xa+20944|0;ca=Xa+18256|0;Ua=Xa+18208|0;Va=Xa+24|0;Wa=Xa;Sa=Xa+13856|0;Ta=Xa+9504|0;Qa=Xa+9488|0;Oa=Xa+34384|0;Pa=Xa+9472|0;Ma=Xa+34376|0;Na=Xa+9456|0;k[Pa>>2]=0;k[Pa+4>>2]=0;k[Pa+8>>2]=0;k[Pa+12>>2]=0;Ia=a+4616|0;Ka=k[Ia>>2]|0;k[Ia>>2]=Ka+1;Ia=a+4732|0;Ja=a+4766|0;i[Ja>>0]=Ka&3;Ka=a+7176|0;La=a+4588|0;pa=k[La>>2]|0;Ga=a+7176+(pa<<2)|0;pa=ca+(pa<<2)|0;S=a+5094|0;Ha=a+4580|0;n=k[Ha>>2]|0;M=k[a+28>>2]|0;do if(!M)Da=13;else{N=a+24|0;O=k[N>>2]|0;h=256-O<<10;K=h>>16;h=h-(K<<16)|0;do if((K|0)<4){if((h|0)<=0){q=21552+(K<<3)|0;h=k[q>>2]|0;q=k[q+4>>2]|0;v=k[21492+(K*12|0)>>2]|0;P=k[21492+(K*12|0)+8>>2]|0;A=k[21492+(K*12|0)+4>>2]|0;break}q=K+1|0;F=h<<16>>16;G=k[21492+(K*12|0)>>2]|0;H=k[21492+(q*12|0)>>2]|0;v=k[21492+(K*12|0)+4>>2]|0;J=H-G|0;I=ha(J>>16,F)|0;J=(ha(J&65535,F)|0)>>16;A=k[21492+(q*12|0)+4>>2]|0;B=k[21492+(K*12|0)+8>>2]|0;C=k[21492+(q*12|0)+8>>2]|0;D=k[21552+(K<<3)>>2]|0;E=k[21552+(q<<3)>>2]|0;if((h|0)<32768){A=A-v|0;A=(ha(A>>16,F)|0)+v+((ha(A&65535,F)|0)>>16)|0;P=C-B|0;P=(ha(P>>16,F)|0)+B+((ha(P&65535,F)|0)>>16)|0;h=E-D|0;h=(ha(h>>16,F)|0)+D+((ha(h&65535,F)|0)>>16)|0;v=k[21552+(K<<3)+4>>2]|0;q=(k[21552+(q<<3)+4>>2]|0)-v|0;q=(ha(q>>16,F)|0)+v+((ha(q&65535,F)|0)>>16)|0;v=I+G+J|0;break}else{P=A-v|0;A=(ha(P>>16,F)|0)+A+((ha(P&65535,F)|0)>>16)|0;P=C-B|0;P=(ha(P>>16,F)|0)+C+((ha(P&65535,F)|0)>>16)|0;h=E-D|0;h=(ha(h>>16,F)|0)+E+((ha(h&65535,F)|0)>>16)|0;v=k[21552+(q<<3)+4>>2]|0;q=v-(k[21552+(K<<3)+4>>2]|0)|0;q=(ha(q>>16,F)|0)+v+((ha(q&65535,F)|0)>>16)|0;v=I+H+J|0;break}}else{h=35497197;q=57401098;v=89306658;P=89306658;A=178584282}while(0);J=M+O|0;k[N>>2]=(J|0)>256?256:(J|0)<0?0:J;J=a+16|0;h=0-h|0;I=h&16383;q=0-q|0;H=q&16383;if((n|0)<=0){Fa=a+4572|0;h=k[Fa>>2]|0;break}G=a+20|0;F=h<<2>>16;D=q<<2>>16;E=v>>16;B=v&65535;C=A>>16;v=A&65535;A=P>>16;h=P&65535;q=0;do{Fa=S+(q<<1)|0;qa=j[Fa>>1]|0;Ea=(ha(E,qa)|0)+(k[J>>2]|0)+((ha(B,qa)|0)>>16)<<2;Da=Ea>>16;Ca=Ea&65532;oa=((ha(v,qa)|0)>>16)+(ha(C,qa)|0)+((ha(Da,F)|0)+(k[G>>2]|0)+((ha(Ca,F)|0)>>16)+((((ha(Ca,I)|0)>>>16)+(ha(Da,I)|0)>>13)+1>>1))|0;k[J>>2]=oa;Da=((ha(h,qa)|0)>>16)+(ha(A,qa)|0)+(((ha(Ca,D)|0)>>16)+(ha(Da,D)|0)+((((ha(Ca,H)|0)>>>16)+(ha(Da,H)|0)>>13)+1>>1))|0;k[G>>2]=Da;Ea=Ea+16383>>14;j[Fa>>1]=(Ea|0)>32767?32767:((Ea|0)<-32768?-32768:Ea)&65535;q=q+1|0}while((q|0)!=(n|0));n=k[Ha>>2]|0;Da=13}while(0);if((Da|0)==13){v=a+4572|0;h=k[v>>2]|0;q=Ga+(h*5<<2)|0;if((n|0)>0){h=n;do{Fa=h;h=h+-1|0;o[q+(h<<2)>>2]=+(j[S+(h<<1)>>1]|0)}while((Fa|0)>1);h=k[v>>2]|0;Fa=v}else Fa=v}Ea=Ga+(h*5<<2)|0;o[Ea>>2]=+o[Ea>>2]+9.999999974752427e-07;Ea=Ga+((k[Ha>>2]>>3)+((k[Fa>>2]|0)*5|0)<<2)|0;o[Ea>>2]=+o[Ea>>2]+9.999999974752427e-07;Ea=Ga+((k[Ha>>2]>>3<<1)+((k[Fa>>2]|0)*5|0)<<2)|0;o[Ea>>2]=+o[Ea>>2]+-9.999999974752427e-07;Ea=Ga+(((k[Ha>>2]>>3)*3|0)+((k[Fa>>2]|0)*5|0)<<2)|0;o[Ea>>2]=+o[Ea>>2]+-9.999999974752427e-07;Ea=Ga+((k[Ha>>2]>>3<<2)+((k[Fa>>2]|0)*5|0)<<2)|0;o[Ea>>2]=+o[Ea>>2]+9.999999974752427e-07;Ea=Ga+(((k[Ha>>2]>>3)+(k[Fa>>2]|0)|0)*5<<2)|0;o[Ea>>2]=+o[Ea>>2]+9.999999974752427e-07;Ea=Ga+(((k[Ha>>2]>>3)*6|0)+((k[Fa>>2]|0)*5|0)<<2)|0;o[Ea>>2]=+o[Ea>>2]+-9.999999974752427e-07;Ea=Ga+(((k[Ha>>2]>>3)*7|0)+((k[Fa>>2]|0)*5|0)<<2)|0;o[Ea>>2]=+o[Ea>>2]+-9.999999974752427e-07;Ea=a+4676|0;a:do if(!(k[Ea>>2]|0)){A=k[a+4592>>2]|0;E=k[La>>2]|0;D=(k[Ha>>2]|0)+A+E|0;E=Ga+(0-E<<2)|0;B=k[a+4544>>2]|0;n=E+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0;F=k[J>>2]|0;y=c;z=0;f=0;while(1){B=y+-1|0;y=j[C+(y<<1)>>1]|0;b:do if(z){y=ha((y<<16>>16)-(j[C+(B<<1)>>1]|0)|0,q)|0;y=(ha(y,l[F+(B+D)>>0]|0)|0)<<s>>2;if((y|0)>0){y=(k[N+(B<<2)>>2]|0)+y|0;y=(y|0)<0?0:y}A=B;y=(k[d+(B<<2)>>2]|0)+y|0}else{A=B;while(1){z=y;y=j[C+(A<<1)>>1]|0;z=ha((z<<16>>16)-(y<<16>>16)|0,q)|0;z=(ha(z,l[F+(A+D)>>0]|0)|0)<<s>>2;if((z|0)>0){z=(k[N+(A<<2)>>2]|0)+z|0;z=(z|0)<0?0:z}z=(k[d+(A<<2)>>2]|0)+z|0;if((z|0)>=(k[X+(A<<2)>>2]|0)){y=z;break b}f=((z|0)<(E|0)?0:E)+f|0;if((A|0)<=(b|0))break a;else A=A+-1|0}}while(0);W=k[e+(A<<2)>>2]|0;f=((y|0)<(W|0)?y:W)+f|0;if((A|0)>(b|0)){y=A;z=1}else break}}else f=0;while(0);W=(f|0)>(i|0);H=W?G+-1|0:H;L=W?L:G+1|0}while((L|0)<=(H|0));if(I){H=k[$>>2]|0;I=ha(L+-1|0,M)|0;G=k[J>>2]|0;D=ha(L,M)|0;F=(L|0)>1;f=j[H+(b<<1)>>1]|0;if((L|0)<(K|0)){B=b;y=b;do{C=B;B=B+1|0;A=f;f=j[H+(B<<1)>>1]|0;A=ha((f<<16>>16)-(A<<16>>16)|0,q)|0;z=(ha(A,l[G+(C+I)>>0]|0)|0)<<s>>2;A=(ha(l[G+(C+D)>>0]|0,A)|0)<<s>>2;if((z|0)>0){z=(k[N+(C<<2)>>2]|0)+z|0;z=(z|0)<0?0:z}if((A|0)>0){A=(k[N+(C<<2)>>2]|0)+A|0;A=(A|0)<0?0:A}W=k[d+(C<<2)>>2]|0;V=z+(F?W:0)|0;y=(W|0)>0?C:y;W=A-V+W|0;k[O+(C<<2)>>2]=V;k[P+(C<<2)>>2]=(W|0)<0?0:W}while((B|0)!=(c|0));I=y}else{B=b;y=b;do{C=B;B=B+1|0;z=f;f=j[H+(B<<1)>>1]|0;z=ha((f<<16>>16)-(z<<16>>16)|0,q)|0;z=(ha(z,l[G+(C+I)>>0]|0)|0)<<s>>2;A=k[e+(C<<2)>>2]|0;if((z|0)>0){z=(k[N+(C<<2)>>2]|0)+z|0;z=(z|0)<0?0:z}if((A|0)>0){A=(k[N+(C<<2)>>2]|0)+A|0;A=(A|0)<0?0:A}W=k[d+(C<<2)>>2]|0;V=z+(F?W:0)|0;y=(W|0)>0?C:y;W=A-V+W|0;k[O+(C<<2)>>2]=V;k[P+(C<<2)>>2]=(W|0)<0?0:W}while((B|0)!=(c|0));I=y}F=(q|0)>1;H=F&1;C=64;D=0;G=0;while(1){B=C+G>>1;y=c;A=0;f=0;c:while(1){z=y+-1|0;d:do if(A)y=((ha(k[P+(z<<2)>>2]|0,B)|0)>>6)+(k[O+(z<<2)>>2]|0)|0;else while(1){y=((ha(k[P+(z<<2)>>2]|0,B)|0)>>6)+(k[O+(z<<2)>>2]|0)|0;if((y|0)>=(k[X+(z<<2)>>2]|0))break d;f=((y|0)<(E|0)?0:E)+f|0;if((z|0)>(b|0))z=z+-1|0;else break c}while(0);W=k[e+(z<<2)>>2]|0;f=((y|0)<(W|0)?y:W)+f|0;if((z|0)>(b|0)){y=z;A=1}else break}f=(f|0)>(i|0);G=f?G:B;D=D+1|0;if((D|0)==6){y=c;z=0;f=0;break}else C=f?B:C}while(1){y=y+-1|0;V=((ha(k[P+(y<<2)>>2]|0,G)|0)>>6)+(k[O+(y<<2)>>2]|0)|0;A=z|0?1:(V|0)>=(k[X+(y<<2)>>2]|0);V=A?V:(V|0)<(E|0)?0:E;W=k[e+(y<<2)>>2]|0;W=(V|0)<(W|0)?V:W;k[n+(y<<2)>>2]=W;f=W+f|0;if((y|0)<=(b|0)){U=F;W=H;break}else z=A?1:z}}else{W=(q|0)>1;U=W;W=W&1;f=0;I=b}V=s<<3;y=c+-1|0;e:do if((y|0)>(I|0)){M=E+8|0;N=(u|0)==0;d=t+28|0;O=t+32|0;P=t+20|0;Q=t+40|0;R=t+24|0;S=t+4|0;T=b+2|0;K=c;while(1){G=i-f|0;z=k[$>>2]|0;L=j[z+(K<<1)>>1]|0;J=j[z+(b<<1)>>1]|0;A=L-J|0;H=(G>>>0)/(A>>>0)|0;A=G-(ha(A,H)|0)|0;z=j[z+(y<<1)>>1]|0;J=A+(J-z)|0;z=L-z|0;L=n+(y<<2)|0;A=k[L>>2]|0;J=(ha(z,H)|0)+A+((J|0)>0?J:0)|0;H=k[X+(y<<2)>>2]|0;if((J|0)<(((H|0)>(M|0)?H:M)|0))z=J;else{if(N){z=k[d>>2]|0;B=k[O>>2]|0;A=z>>>1;H=B>>>0<A>>>0;if(!H){B=B-A|0;k[O>>2]=B;A=z-A|0}k[d>>2]=A;if(A>>>0<8388609){F=k[S>>2]|0;G=k[P>>2]|0;z=k[R>>2]|0;D=k[Q>>2]|0;while(1){G=G+8|0;k[P>>2]=G;A=A<<8;k[d>>2]=A;if(z>>>0<F>>>0){ca=z+1|0;k[R>>2]=ca;C=l[(k[t>>2]|0)+z>>0]|0;z=ca}else C=0;k[Q>>2]=C;B=((C|D<<8)>>>1&255|B<<8&2147483392)^255;k[O>>2]=B;if(A>>>0>=8388609)break;else D=C}}if(H){M=K;L=f;break e}}else{if((K|0)<=(T|0))break;
function Ke(a){a=+a;var b=0,c=0,d=0,e=0,f=0.0,g=0.0,h=0.0,i=0.0,j=0.0;p[t>>3]=a;c=k[t>>2]|0;b=k[t+4>>2]|0;d=(b|0)<0;do if(d|b>>>0<1048576){f=+W(+a);p[t>>3]=f;if((k[t>>2]|0)==0&(k[t+4>>2]|0)==0){a=-1.0/(a*a);break}if(d){a=(a-a)/0.0;break}else{p[t>>3]=a*18014398509481984.0;b=k[t+4>>2]|0;d=k[t>>2]|0;c=-1077;e=9;break}}else if(b>>>0<=2146435071)if((c|0)==0&0==0&(b|0)==1072693248)a=0.0;else{d=c;c=-1023;e=9}while(0);if((e|0)==9){e=b+614242|0;k[t>>2]=d;k[t+4>>2]=(e&1048575)+1072079006;h=+p[t>>3]+-1.0;g=h*(h*.5);i=h/(h+2.0);j=i*i;a=j*j;p[t>>3]=h-g;d=k[t+4>>2]|0;k[t>>2]=0;k[t+4>>2]=d;f=+p[t>>3];a=h-f-g+i*(g+(a*(a*(a*.15313837699209373+.22222198432149784)+.3999999999940942)+j*(a*(a*(a*.14798198605116586+.1818357216161805)+.2857142874366239)+.6666666666666735)));j=f*.4342944818781689;g=+((e>>>20)+c|0);i=g*.30102999566361177;h=i+j;a=h+(j+(i-h)+(a*.4342944818781689+(g*3.694239077158931e-13+(f+a)*2.5082946711645275e-11)))}return +a}function Le(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;do if(a>>>0<245){o=a>>>0<11?16:a+11&-8;a=o>>>3;i=k[9748]|0;b=i>>>a;if(b&3|0){b=(b&1^1)+a|0;c=39032+(b<<1<<2)|0;d=c+8|0;e=k[d>>2]|0;f=e+8|0;g=k[f>>2]|0;do if((c|0)!=(g|0)){if(g>>>0<(k[9752]|0)>>>0)Fb();a=g+12|0;if((k[a>>2]|0)==(e|0)){k[a>>2]=c;k[d>>2]=g;break}else Fb()}else k[9748]=i&~(1<<b);while(0);G=b<<3;k[e+4>>2]=G|3;G=e+G+4|0;k[G>>2]=k[G>>2]|1;G=f;return G|0}g=k[9750]|0;if(o>>>0>g>>>0){if(b|0){c=2<<a;c=b<<a&(c|0-c);c=(c&0-c)+-1|0;h=c>>>12&16;c=c>>>h;e=c>>>5&8;c=c>>>e;f=c>>>2&4;c=c>>>f;d=c>>>1&2;c=c>>>d;b=c>>>1&1;b=(e|h|f|d|b)+(c>>>b)|0;c=39032+(b<<1<<2)|0;d=c+8|0;f=k[d>>2]|0;h=f+8|0;e=k[h>>2]|0;do if((c|0)!=(e|0)){if(e>>>0<(k[9752]|0)>>>0)Fb();a=e+12|0;if((k[a>>2]|0)==(f|0)){k[a>>2]=c;k[d>>2]=e;j=k[9750]|0;break}else Fb()}else{k[9748]=i&~(1<<b);j=g}while(0);g=(b<<3)-o|0;k[f+4>>2]=o|3;d=f+o|0;k[d+4>>2]=g|1;k[d+g>>2]=g;if(j|0){e=k[9753]|0;b=j>>>3;c=39032+(b<<1<<2)|0;a=k[9748]|0;b=1<<b;if(a&b){a=c+8|0;b=k[a>>2]|0;if(b>>>0<(k[9752]|0)>>>0)Fb();else{l=a;m=b}}else{k[9748]=a|b;l=c+8|0;m=c}k[l>>2]=e;k[m+12>>2]=e;k[e+8>>2]=m;k[e+12>>2]=c}k[9750]=g;k[9753]=d;G=h;return G|0}a=k[9749]|0;if(a){h=(a&0-a)+-1|0;F=h>>>12&16;h=h>>>F;E=h>>>5&8;h=h>>>E;G=h>>>2&4;h=h>>>G;b=h>>>1&2;h=h>>>b;i=h>>>1&1;i=k[39296+((E|F|G|b|i)+(h>>>i)<<2)>>2]|0;h=(k[i+4>>2]&-8)-o|0;b=i;while(1){a=k[b+16>>2]|0;if(!a){a=k[b+20>>2]|0;if(!a)break}b=(k[a+4>>2]&-8)-o|0;G=b>>>0<h>>>0;h=G?b:h;b=a;i=G?a:i}e=k[9752]|0;if(i>>>0<e>>>0)Fb();g=i+o|0;if(i>>>0>=g>>>0)Fb();f=k[i+24>>2]|0;c=k[i+12>>2]|0;do if((c|0)==(i|0)){b=i+20|0;a=k[b>>2]|0;if(!a){b=i+16|0;a=k[b>>2]|0;if(!a){n=0;break}}while(1){c=a+20|0;d=k[c>>2]|0;if(d|0){a=d;b=c;continue}c=a+16|0;d=k[c>>2]|0;if(!d)break;else{a=d;b=c}}if(b>>>0<e>>>0)Fb();else{k[b>>2]=0;n=a;break}}else{d=k[i+8>>2]|0;if(d>>>0<e>>>0)Fb();a=d+12|0;if((k[a>>2]|0)!=(i|0))Fb();b=c+8|0;if((k[b>>2]|0)==(i|0)){k[a>>2]=c;k[b>>2]=d;n=c;break}else Fb()}while(0);do if(f|0){a=k[i+28>>2]|0;b=39296+(a<<2)|0;if((i|0)==(k[b>>2]|0)){k[b>>2]=n;if(!n){k[9749]=k[9749]&~(1<<a);break}}else{if(f>>>0<(k[9752]|0)>>>0)Fb();a=f+16|0;if((k[a>>2]|0)==(i|0))k[a>>2]=n;else k[f+20>>2]=n;if(!n)break}b=k[9752]|0;if(n>>>0<b>>>0)Fb();k[n+24>>2]=f;a=k[i+16>>2]|0;do if(a|0)if(a>>>0<b>>>0)Fb();else{k[n+16>>2]=a;k[a+24>>2]=n;break}while(0);a=k[i+20>>2]|0;if(a|0)if(a>>>0<(k[9752]|0)>>>0)Fb();else{k[n+20>>2]=a;k[a+24>>2]=n;break}}while(0);if(h>>>0<16){G=h+o|0;k[i+4>>2]=G|3;G=i+G+4|0;k[G>>2]=k[G>>2]|1}else{k[i+4>>2]=o|3;k[g+4>>2]=h|1;k[g+h>>2]=h;a=k[9750]|0;if(a|0){d=k[9753]|0;b=a>>>3;c=39032+(b<<1<<2)|0;a=k[9748]|0;b=1<<b;if(a&b){a=c+8|0;b=k[a>>2]|0;if(b>>>0<(k[9752]|0)>>>0)Fb();else{p=a;q=b}}else{k[9748]=a|b;p=c+8|0;q=c}k[p>>2]=d;k[q+12>>2]=d;k[d+8>>2]=q;k[d+12>>2]=c}k[9750]=h;k[9753]=g}G=i+8|0;return G|0}}}else if(a>>>0<=4294967231){a=a+11|0;o=a&-8;j=k[9749]|0;if(j){c=0-o|0;a=a>>>8;if(a)if(o>>>0>16777215)i=31;else{q=(a+1048320|0)>>>16&8;z=a<<q;p=(z+520192|0)>>>16&4;z=z<<p;i=(z+245760|0)>>>16&2;i=14-(p|q|i)+(z<<i>>>15)|0;i=o>>>(i+7|0)&1|i<<1}else i=0;b=k[39296+(i<<2)>>2]|0;a:do if(!b){a=0;b=0;z=86}else{e=c;a=0;g=o<<((i|0)=
// EMSCRIPTEN_END_FUNCS
var gc=[Tf,Re,df,ff,Ic,Dc,Ec,Tf];var hc=[Uf,Ze,Ve,kf];var ic=[Vf,Ne,Xe,Pe,Qe,Oe,$e,af,cf,ef,gf,Hc,Fc,Vf,Vf,Vf];var jc=[Wf,Nc];var kc=[Xf,Kc];var lc=[Yf,bf,Gc,Yf];var mc=[Zf,Uc];var nc=[_f];var oc=[$f,Jc,Cc,Mc];var pc=[ag,Ye,Te,hf];var qc=[bg,Bc,Lc,bg];var rc=[cg,_e,We,mf];return{___cxa_can_catch:of,_free:Me,_opus_strerror:Qc,___cxa_is_pointer_type:pf,_i64Add:tf,_memmove:xf,_bitshift64Ashr:uf,_memset:rf,_malloc:Le,_memcpy:wf,___getTypeName:Je,_bitshift64Lshr:vf,_bitshift64Shl:sf,__GLOBAL__sub_I_opusscript_encoder_cpp:Oc,__GLOBAL__sub_I_bind_cpp:Ie,runPostSets:qf,_emscripten_replace_memory:fc,stackAlloc:sc,stackSave:tc,stackRestore:uc,establishStackSpace:vc,setThrew:wc,setTempRet0:zc,getTempRet0:Ac,dynCall_iiii:Hf,dynCall_viiiii:If,dynCall_vi:Jf,dynCall_vii:Kf,dynCall_iiiiiii:Lf,dynCall_ii:Mf,dynCall_viiiiiii:Nf,dynCall_v:Of,dynCall_iiiii:Pf,dynCall_viiiiii:Qf,dynCall_iiiiii:Rf,dynCall_viiii:Sf}})
// EMSCRIPTEN_END_ASM
(Module.asmGlobalArg,Module.asmLibraryArg,buffer);var ___cxa_can_catch=Module["___cxa_can_catch"]=asm["___cxa_can_catch"];var __GLOBAL__sub_I_bind_cpp=Module["__GLOBAL__sub_I_bind_cpp"]=asm["__GLOBAL__sub_I_bind_cpp"];var _free=Module["_free"]=asm["_free"];var __GLOBAL__sub_I_opusscript_encoder_cpp=Module["__GLOBAL__sub_I_opusscript_encoder_cpp"]=asm["__GLOBAL__sub_I_opusscript_encoder_cpp"];var _opus_strerror=Module["_opus_strerror"]=asm["_opus_strerror"];var ___cxa_is_pointer_type=Module["___cxa_is_pointer_type"]=asm["___cxa_is_pointer_type"];var _i64Add=Module["_i64Add"]=asm["_i64Add"];var _memmove=Module["_memmove"]=asm["_memmove"];var _bitshift64Ashr=Module["_bitshift64Ashr"]=asm["_bitshift64Ashr"];var _memset=Module["_memset"]=asm["_memset"];var runPostSets=Module["runPostSets"]=asm["runPostSets"];var _malloc=Module["_malloc"]=asm["_malloc"];var _memcpy=Module["_memcpy"]=asm["_memcpy"];var ___getTypeName=Module["___getTypeName"]=asm["___getTypeName"];var _bitshift64Lshr=Module["_bitshift64Lshr"]=asm["_bitshift64Lshr"];var _emscripten_replace_memory=Module["_emscripten_replace_memory"]=asm["_emscripten_replace_memory"];var _bitshift64Shl=Module["_bitshift64Shl"]=asm["_bitshift64Shl"];var dynCall_iiii=Module["dynCall_iiii"]=asm["dynCall_iiii"];var dynCall_viiiii=Module["dynCall_viiiii"]=asm["dynCall_viiiii"];var dynCall_vi=Module["dynCall_vi"]=asm["dynCall_vi"];var dynCall_vii=Module["dynCall_vii"]=asm["dynCall_vii"];var dynCall_iiiiiii=Module["dynCall_iiiiiii"]=asm["dynCall_iiiiiii"];var dynCall_ii=Module["dynCall_ii"]=asm["dynCall_ii"];var dynCall_viiiiiii=Module["dynCall_viiiiiii"]=asm["dynCall_viiiiiii"];var dynCall_v=Module["dynCall_v"]=asm["dynCall_v"];var dynCall_iiiii=Module["dynCall_iiiii"]=asm["dynCall_iiiii"];var dynCall_viiiiii=Module["dynCall_viiiiii"]=asm["dynCall_viiiiii"];var dynCall_iiiiii=Module["dynCall_iiiiii"]=asm["dynCall_iiiiii"];var dynCall_viiii=Module["dynCall_viiii"]=asm["dynCall_viiii"];Runtime.stackAlloc=asm["stackAlloc"];Runtime.stackSave=asm["stackSave"];Runtime.stackRestore=asm["stackRestore"];Runtime.establishStackSpace=asm["establishStackSpace"];Runtime.setTempRet0=asm["setTempRet0"];Runtime.getTempRet0=asm["getTempRet0"];function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}ExitStatus.prototype=new Error;ExitStatus.prototype.constructor=ExitStatus;var initialStackTop;var preloadStartTime=null;var calledMain=false;dependenciesFulfilled=function runCaller(){if(!Module["calledRun"])run();if(!Module["calledRun"])dependenciesFulfilled=runCaller};Module["callMain"]=Module.callMain=function callMain(args){args=args||[];ensureInitRuntime();var argc=args.length+1;function pad(){for(var i=0;i<4-1;i++){argv.push(0)}}var argv=[allocate(intArrayFromString(Module["thisProgram"]),"i8",ALLOC_NORMAL)];pad();for(var i=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{var ret=Module["_main"](argc,argv,0);exit(ret,true)}catch(e){if(e instanceof ExitStatus){return}else if(e=="SimulateInfiniteLoop"){Module["noExitRuntime"]=true;return}else{if(e&&typeof e==="object"&&e.stack)Module.printErr("exception thrown: "+[e,e.stack]);throw e}}finally{calledMain=true}};function run(args){args=args||Module["arguments"];if(preloadStartTime===null)preloadStartTime=Date.now();if(runDependencies>0){return}preRun();if(runDependencies>0)return;if(Module["calledRun"])return;function doRun(){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;function exit(status,implicit){if(implicit&&Module["noExitRuntime"]){return}if(Module["noExitRuntime"]){}else{ABORT=true;EXITSTATUS=status;STACKTOP=init