Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update retrograph lib

  • Loading branch information...
commit 14c7adf017d4ed0070274de3e3837fd463078ace 1 parent dd52e9d
@mental authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  javascripts/retrograph.js
View
2  javascripts/retrograph.js
@@ -1513,7 +1513,7 @@ function asmPrintFloat(x, y) {
// EMSCRIPTEN_START_ASM
var asm=(function(global,env,buffer){"use asm";var a=new global.Int8Array(buffer);var b=new global.Int16Array(buffer);var c=new global.Int32Array(buffer);var d=new global.Uint8Array(buffer);var e=new global.Uint16Array(buffer);var f=new global.Uint32Array(buffer);var g=new global.Float32Array(buffer);var h=new global.Float64Array(buffer);var i=env.STACKTOP|0;var j=env.STACK_MAX|0;var k=env.tempDoublePtr|0;var l=env.ABORT|0;var m=+env.NaN;var n=+env.Infinity;var o=0;var p=0;var q=0;var r=0;var s=0,t=0,u=0,v=0,w=0.0,x=0,y=0,z=0,A=0.0;var B=0;var C=0;var D=0;var E=0;var F=0;var G=0;var H=0;var I=0;var J=0;var K=0;var L=global.Math.floor;var M=global.Math.abs;var N=global.Math.sqrt;var O=global.Math.pow;var P=global.Math.cos;var Q=global.Math.sin;var R=global.Math.tan;var S=global.Math.acos;var T=global.Math.asin;var U=global.Math.atan;var V=global.Math.atan2;var W=global.Math.exp;var X=global.Math.log;var Y=global.Math.ceil;var Z=global.Math.imul;var _=env.abort;var $=env.assert;var aa=env.asmPrintInt;var ab=env.asmPrintFloat;var ac=env.copyTempDouble;var ad=env.copyTempFloat;var ae=env.min;var af=env.invoke_vi;var ag=env.invoke_ii;var ah=env.invoke_v;var ai=env.invoke_iii;var aj=env.invoke_viiii;var ak=env._llvm_lifetime_end;var al=env._sbrk;var am=env._sysconf;var an=env.___setErrNo;var ao=env.___errno_location;var ap=env._llvm_lifetime_start;var aq=env._abort;var ar=env._time;
// EMSCRIPTEN_START_FUNCS
-function ax(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+7>>3<<3;return b|0}function ay(){return i|0}function az(a){a=a|0;i=a}function aA(a,b){a=a|0;b=b|0;if((o|0)==0){o=a;p=b}}function aB(a){a=a|0;B=a}function aC(a){a=a|0;C=a}function aD(a){a=a|0;D=a}function aE(a){a=a|0;E=a}function aF(a){a=a|0;F=a}function aG(a){a=a|0;G=a}function aH(a){a=a|0;H=a}function aI(a){a=a|0;I=a}function aJ(a){a=a|0;J=a}function aK(a){a=a|0;K=a}function aL(a){a=a|0;var b=0;if((a|0)==0|(a|0)==8){return}b=a+4|0;c[b>>2]=(c[b>>2]|0)+1;return}function aM(a){a=a|0;var b=0,d=0,e=0;do{if((a|0)==0){b=2}else{d=a|0;e=c[d>>2]|0;if((a|0)==8){b=e;break}c[d>>2]=0;b=e}}while(0);return b|0}function aN(a){a=a|0;if((a|0)==0){return}if((c[a>>2]|0)!=0){return}c[a+16696>>2]=0;return}function aO(){var d=0,e=0,f=0;d=a2(17916)|0;if((d|0)==0){e=8;return e|0}c[d>>2]=0;c[d+4>>2]=1;a6(d+8|0,0,16674);f=d+16684|0;c[f>>2]=0;c[f+4>>2]=0;b[d+16692>>1]=2048;a[d+16694|0]=0;a[d+16695|0]=0;c[d+16696>>2]=224;e=d;return e|0}function aP(d,e){d=d|0;e=e|0;var f=0,g=0;if((d|0)==0){return}f=d|0;if((c[f>>2]|0)!=0){return}g=c[e>>2]|0;if((g|0)==0){a5(d+8|0,e+8|0,16384);a5(d+16392|0,e+16392|0,256);a5(d+16648|0,e+16648|0,32);a[d+16680|0]=a[e+16680|0]|0;a[d+16681|0]=a[e+16681|0]|0;c[d+16684>>2]=c[e+16684>>2];b[d+16688>>1]=b[e+16688>>1]|0;b[d+16690>>1]=b[e+16690>>1]|0;b[d+16692>>1]=b[e+16692>>1]|0;a[d+16694|0]=a[e+16694|0]|0;a[d+16695|0]=a[e+16695|0]|0;return}else{c[f>>2]=g;return}}function aQ(a){a=a|0;var b=0,d=0;if((a|0)==0|(a|0)==8){return}b=a+4|0;d=(c[b>>2]|0)-1|0;c[b>>2]=d;if((d|0)!=0){return}a3(a);return}function aR(a,b,d,f){a=a|0;b=b|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;if((a|0)==0){return}if((c[a>>2]|0)!=0|(f|0)==0){return}g=b&65535;b=d;d=f;while(1){f=g&32767;h=40;while(1){i=h+8|0;j=e[i>>1]|0;if(f>>>0<j>>>0){break}else{h=i}}i=d+f|0;k=i>>>0<j>>>0?i:j;i=k-f|0;aw[c[h+4>>2]&15](a,f-(e[h>>1]|0)&65535,b,i&65535);if((d|0)==(i|0)){break}else{g=k;b=b+i|0;d=d-i|0}}return}function aS(a,b,d){a=a|0;b=b|0;d=d|0;if((a|0)==0){return}if((c[a>>2]|0)!=0|d>>>0<1024){return}d=a+16828|0;aT(a,d|0);a5(b|0,d|0,1024);return}function aT(f,g){f=f|0;g=g|0;var h=0,j=0,k=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;h=i;i=i+16|0;j=h|0;k=h+8|0;l=0;do{m=a[l+(f+16648)|0]|0;n=m&255;o=m<<2&-64;p=(o&255)>>>2|o;o=m<<4&-64;m=(o&255)>>>2|o;o=n<<6&192|n<<4&48;c[f+16700+(l<<2)>>2]=(o>>>4|o)<<16|((p&255)>>>4|p)&255|(((m&255)>>>4|m)&255)<<8|-16777216;l=l+1|0;}while((l|0)<32);l=f+16696|0;m=c[l>>2]|0;if(m>>>0>=224){p=c[f+16700>>2]|0;o=0;do{c[g+(o<<2)>>2]=p;o=o+1|0;}while((o|0)<256);i=h;return}o=f+16684|0;p=c[o>>2]|0;n=(p|0)==0;q=n?12:0;r=n?80:64;if((p|0)==1){s=28}else if((p|0)==0){s=25}else{s=32}p=f+16700|0;n=c[p>>2]|0;t=0;do{c[g+(t<<2)>>2]=n;t=t+1|0;}while((t|0)<256);do{if(q>>>0<=m>>>0){t=c[o>>2]|0;if(((t|0)==0?212:224)>>>0<=m>>>0){break}n=t>>>0<2;if(n){u=0;v=0}else{w=a[f+16694|0]|0;u=(w&255)>>>3;v=w&7}w=d[f+16695|0]|0;x=(n?w&248:w)+(m-q|0)|0;w=x&7;n=e[f+16692>>1]|0;y=(n+Z(((x>>>3&255)>>>0)%(s>>>0)>>>0&63,r)|0)+(f+8)|0;if((t|0)==0){x=e[f+16688>>1]|0;if((a[f+16680|0]|0)==0){break}n=w&255;z=j+4|0;A=j|0;B=y;C=g+32|0;D=0;while(1){E=a[B]|0;F=d[B+1|0]|0;c[z>>2]=c[f+16700+((F&15)<<2)>>2];c[A>>2]=c[f+16700+(F>>>4<<2)>>2];F=a[(((E&255)<<3|n)+x|0)+(f+8)|0]|0;c[C>>2]=c[j+(((F&255)>>>5&1)<<2)>>2];c[C+4>>2]=c[j+(((F<<1&255)>>>5&1)<<2)>>2];c[C+8>>2]=c[j+(((F<<2&255)>>>5&1)<<2)>>2];c[C+12>>2]=c[j+(((F<<3&255)>>>5&1)<<2)>>2];c[C+16>>2]=c[j+(((F<<4&255)>>>5&1)<<2)>>2];c[C+20>>2]=c[j+(((F<<5&255)>>>5&1)<<2)>>2];F=D+1|0;if((F|0)<40){B=B+2|0;C=C+24|0;D=F}else{break}}}else if((t|0)==1){D=e[f+16688>>1]|0;if((a[f+16680|0]|0)==0){break}C=w&255;B=j+4|0;x=j|0;n=y;A=g;z=0;while(1){F=a[n]|0;E=d[n+1|0]|0;c[B>>2]=c[f+16700+((E&15)<<2)>>2];c[x>>2]=c[f+16700+(E>>>4<<2)>>2];E=a[(((F&255)<<3|C)+D|0)+(f+8)|0]|0;c[A>>2]=c[j+((E&255)>>>7<<2)>>2];c[A+4>>2]=c[j+((E<<1&255)>>>7<<2)>>2];c[A+8>>2]=c[j+((E<<2&255)>>>7<<2)>>2];c[A+12>>2]=c[j+((E<<3&255)>>>7<<2)>>2];c[A+16>>2]=c[j+((E<<4&255)>>>7<<2)>>2];c[A+20>>2]=c[j+((E<<5&255)>>>7<<2)>>2];c[A+24>>2]=c[j+((E<<6&255)>>>7<<2)>>2];c[A+28>>2]=c[j+((E<<7&255)>>>7<<2)>>2];E=z+1|0;if((E|0)<32){n=n+2|0;A=A+32|0;z=E}else{break}}}else if((t|0)==2){z=b[f+16690>>1]|0;A=a[f+16680|0]|0;n=a[f+16681|0]|0;D=z&65535;C=(w&255)<<1;x=k|0;c[x>>2]=(D+C|0)+(f+8);c[k+4>>2]=(D+(C^14)|0)+(f+8);C=A<<24>>24!=0;if(C){aZ(g,u,v,y,x,0,p)}if(n<<24>>24!=0){aY(g,m&255,f+16392|0,(8192-z&65535)+(f+8)|0,p)}if(!C){break}aZ(g,u,v,y,x,-32768,p);break}else if((t|0)==3){x=b[f+16690>>1]|0;C=a[f+16680|0]|0;z=a[f+16681|0]|0;n=(x<<16>>16!=0&1)<<9;A=(w&255)<<2;D=k|0;c[D>>2]=A+(f+8);c[k+4>>2]=(A^28)+(f+8);A=C<<24>>24!=0;if(A){aU(g,u,v,y,D,n,p)}if(z<<24>>24!=0){aY(g,m&255,f+16392|0,(8192-x&65535)+(f+8)|0,p)}if(!A){break}aU(g,u,v,y,D,n|-32768,p);break}else{break}}}while(0);c[l>>2]=(c[l>>2]|0)+1;i=h;return}function aU(b,c,e,f,g,h,i){b=b|0;c=c|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=0;j=(8-(e&255)|0)%8&-1;k=(e<<24>>24!=0&1)+c&255;c=k&31;e=c&255;l=(j+256|0)-((k&31)<<3)|0;k=e;m=f+(e<<1)|0;n=b+(j<<2)|0;while(1){j=a[m+1|0]|0;o=(((j<<1&-32|j&15)&255)<<8|(d[m]|0))^h;if(o<<16>>16>=0){aW(n,o,g,i)}o=k+1|0;if((o|0)<32){k=o;m=m+2|0;n=n+32|0}else{break}}if(c<<24>>24==0){return}c=0;n=f;f=b+(l<<2)|0;while(1){l=((d[n+1|0]|0)<<8|(d[n]|0))^h;if(l<<16>>16>=0){aW(f,l,g,i)}l=c+1|0;if((l|0)<(e|0)){c=l;n=n+2|0;f=f+32|0}else{break}}return}function aV(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return}function aW(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;g=d&65535;h=c[e+((g>>>13&1)<<2)>>2]|0;e=g<<5&16352;i=a[h+(e|3)|0]|0;j=i&255;k=a[h+(e|2)|0]|0;l=k&255;m=a[h+(e|1)|0]|0;n=m&255;o=a[h+e|0]|0;e=o&255;h=(d&65535)>>>7&28;if((g&16384|0)==0){g=h&255;d=j>>>4;if((d|0)!=0){c[b>>2]=c[f+((d|g)<<2)>>2]}d=e&15;p=j&15;if((p|0)!=0){c[b+4>>2]=c[f+((p|g)<<2)>>2]}p=l>>>4;if((p|0)!=0){c[b+8>>2]=c[f+((p|g)<<2)>>2]}p=l&15;if((p|0)!=0){c[b+12>>2]=c[f+((p|g)<<2)>>2]}p=n>>>4;if((p|0)!=0){c[b+16>>2]=c[f+((p|g)<<2)>>2]}p=n&15;if((p|0)!=0){c[b+20>>2]=c[f+((p|g)<<2)>>2]}p=e>>>4;if((p|0)!=0){c[b+24>>2]=c[f+((p|g)<<2)>>2]}if((d|0)==0){return}c[b+28>>2]=c[f+((d|g)<<2)>>2];return}else{g=o&15;if(g<<24>>24!=0){c[b>>2]=c[f+(((g|h)&255)<<2)>>2]}g=(o&255)>>>4;if(g<<24>>24!=0){c[b+4>>2]=c[f+(((g|h)&255)<<2)>>2]}g=m&15;if(g<<24>>24!=0){c[b+8>>2]=c[f+(((g|h)&255)<<2)>>2]}g=(m&255)>>>4;if(g<<24>>24!=0){c[b+12>>2]=c[f+(((g|h)&255)<<2)>>2]}g=k&15;if(g<<24>>24!=0){c[b+16>>2]=c[f+(((g|h)&255)<<2)>>2]}g=(k&255)>>>4;if(g<<24>>24!=0){c[b+20>>2]=c[f+(((g|h)&255)<<2)>>2]}g=i&15;if(g<<24>>24!=0){c[b+24>>2]=c[f+(((g|h)&255)<<2)>>2]}g=(i&255)>>>4;if(g<<24>>24==0){return}c[b+28>>2]=c[f+(((g|h)&255)<<2)>>2];return}}function aX(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;g=d&65535;h=c[e+((g>>>13&1)<<2)>>2]|0;e=g<<4&8176;i=a[h+e|0]|0;j=a[h+(e|1)|0]|0;e=j&255;h=i&255;k=(d&65535)>>>7&28;if((g&16384|0)==0){g=k&255;d=(e&65535)>>>6;if(d<<16>>16!=0){c[b>>2]=c[f+((d&65535|g)<<2)>>2]}d=h&3;l=(e&65535)>>>4&3;if(l<<16>>16!=0){c[b+4>>2]=c[f+((l&65535|g)<<2)>>2]}l=(e&65535)>>>2&3;if(l<<16>>16!=0){c[b+8>>2]=c[f+((l&65535|g)<<2)>>2]}l=e&3;if(l<<16>>16!=0){c[b+12>>2]=c[f+((l&65535|g)<<2)>>2]}l=(h&65535)>>>6;if(l<<16>>16!=0){c[b+16>>2]=c[f+((l&65535|g)<<2)>>2]}l=(h&65535)>>>4&3;if(l<<16>>16!=0){c[b+20>>2]=c[f+((l&65535|g)<<2)>>2]}l=(h&65535)>>>2&3;if(l<<16>>16!=0){c[b+24>>2]=c[f+((l&65535|g)<<2)>>2]}if(d<<16>>16==0){return}c[b+28>>2]=c[f+((d&65535|g)<<2)>>2];return}else{g=i&3;if(g<<24>>24!=0){c[b>>2]=c[f+(((g|k)&255)<<2)>>2]}g=(i&255)>>>2&3;if(g<<24>>24!=0){c[b+4>>2]=c[f+(((g|k)&255)<<2)>>2]}g=(i&255)>>>4&3;if(g<<24>>24!=0){c[b+8>>2]=c[f+(((g|k)&255)<<2)>>2]}g=(i&255)>>>6;if(g<<24>>24!=0){c[b+12>>2]=c[f+(((g|k)&255)<<2)>>2]}g=j&3;if(g<<24>>24!=0){c[b+16>>2]=c[f+(((g|k)&255)<<2)>>2]}g=(j&255)>>>2&3;if(g<<24>>24!=0){c[b+20>>2]=c[f+(((g|k)&255)<<2)>>2]}g=(j&255)>>>4&3;if(g<<24>>24!=0){c[b+24>>2]=c[f+(((g|k)&255)<<2)>>2]}g=(j&255)>>>6;if(g<<24>>24==0){return}c[b+28>>2]=c[f+(((g|k)&255)<<2)>>2];return}}function aY(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=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;j=i;i=i+264|0;k=j|0;l=j+256|0;m=(e&255)+1|0;e=0;n=0;while(1){o=n<<2;p=(m-(d[f+(o|1)|0]|0)|0)>>>(((a[f+(o|3)|0]<<1&255)>>>3&1)>>>0);o=(p>>>0<8&1)+e|0;c[k+(n<<2)>>2]=p;q=n+1|0;if((q|0)<64&(o|0)<8){e=o;n=q}else{break}}if((q|0)<=0){i=j;return}q=l|0;e=l+4|0;m=n;n=p;while(1){p=m<<2;L248:do{if(n>>>0<8){o=d[f+(p|2)|0]|0;r=(a[f+(p|3)|0]<<1&255)<<8;c[q>>2]=g+(n<<2);c[e>>2]=g+(7-n<<2);s=o|r&26112|2048;o=d[f+p|0]|0;t=b+(o<<2)|0;if((r&4096)==0){aW(t,s,q,h);break}r=s&65535;u=c[l+((r>>>13&1)<<2)>>2]|0;v=r<<5&8160;w=d[u+(v|3)|0]|0;x=d[u+(v|2)|0]|0;y=d[u+(v|1)|0]|0;z=d[u+v|0]|0;v=(s&65535)>>>7&28;if((r&16384|0)!=0){r=0;s=x<<16|w<<24|y<<8|z;while(1){u=s&15;if(u<<24>>24!=0){A=h+(((u|v)&255)<<2)|0;u=r<<1;c[b+(u+o<<2)>>2]=c[A>>2];c[b+((u|1)+o<<2)>>2]=c[A>>2]}A=r+1|0;if((A|0)<8){r=A;s=s>>>4}else{break L248}}}s=v&255;r=w>>>4;if((r|0)!=0){A=h+((r|s)<<2)|0;c[t>>2]=c[A>>2];c[b+(o+1<<2)>>2]=c[A>>2]}A=z&15;r=w&15;if((r|0)!=0){u=h+((r|s)<<2)|0;c[b+(o+2<<2)>>2]=c[u>>2];c[b+(o+3<<2)>>2]=c[u>>2]}u=x>>>4;if((u|0)!=0){r=h+((u|s)<<2)|0;c[b+(o+4<<2)>>2]=c[r>>2];c[b+(o+5<<2)>>2]=c[r>>2]}r=x&15;if((r|0)!=0){u=h+((r|s)<<2)|0;c[b+(o+6<<2)>>2]=c[u>>2];c[b+(o+7<<2)>>2]=c[u>>2]}u=y>>>4;if((u|0)!=0){r=h+((u|s)<<2)|0;c[b+(o+8<<2)>>2]=c[r>>2];c[b+(o+9<<2)>>2]=c[r>>2]}r=y&15;if((r|0)!=0){u=h+((r|s)<<2)|0;c[b+(o+10<<2)>>2]=c[u>>2];c[b+(o+11<<2)>>2]=c[u>>2]}u=z>>>4;if((u|0)!=0){r=h+((u|s)<<2)|0;c[b+(o+12<<2)>>2]=c[r>>2];c[b+(o+13<<2)>>2]=c[r>>2]}if((A|0)==0){break}r=h+((A|s)<<2)|0;c[b+(o+14<<2)>>2]=c[r>>2];c[b+(o+15<<2)>>2]=c[r>>2]}}while(0);p=m-1|0;if((m|0)<=0){break}m=p;n=c[k+(p<<2)>>2]|0}i=j;return}function aZ(b,c,e,f,g,h,i){b=b|0;c=c|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=0;j=(8-(e&255)|0)%8&-1;k=(e<<24>>24!=0&1)+c&255;c=k&31;e=c&255;l=(j+256|0)-((k&31)<<3)|0;k=e;m=f+(e<<1)|0;n=b+(j<<2)|0;while(1){j=a[m+1|0]|0;o=(((j<<1&-32|j&15)&255)<<8|(d[m]|0))^h;if(o<<16>>16>=0){aX(n,o,g,i)}o=k+1|0;if((o|0)<32){k=o;m=m+2|0;n=n+32|0}else{break}}if(c<<24>>24==0){return}c=0;n=f;f=b+(l<<2)|0;while(1){l=((d[n+1|0]|0)<<8|(d[n]|0))^h;if(l<<16>>16>=0){aX(f,l,g,i)}l=c+1|0;if((l|0)<(e|0)){c=l;n=n+2|0;f=f+32|0}else{break}}return}function a_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a5((b&65535)+(a+8)|0,c|0,d&65535);return}function a$(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a5((b&65535)+(a+16392)|0,c|0,d&65535);return}function a0(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a5((b&65535)+(a+16648)|0,c|0,d&65535);return}function a1(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;if(h<<16>>16==0){return}i=e+16681|0;j=e+16680|0;k=e+16684|0;l=e+16688|0;m=e+16690|0;n=e+16692|0;o=e+16694|0;p=e+16695|0;e=f;f=g;g=h;while(1){h=e&65535;if((h|0)==0){a[i]=(d[f]|0)>>>3&1;a[j]=(d[f]|0)>>>2&1;c[k>>2]=a[f]&3}else if((h|0)==1){b[l>>1]=(d[f]|0)<<8&12288;b[m>>1]=(d[f]|0)<<8&8192}else if((h|0)==2){b[n>>1]=(d[f]|0)<<8&12288|2048}else if((h|0)==4){a[o]=a[f]|0}else if((h|0)==5){a[p]=a[f]|0}h=g-1&65535;if(h<<16>>16==0){break}else{e=e+1&65535;f=f+1|0;g=h}}return}function a2(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=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,H=0,I=0,J=0,K=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,_=0,$=0,aa=0,ab=0,ac=0,ad=0,ae=0,af=0,ag=0,ah=0,ai=0,aj=0,ak=0,an=0,ap=0,as=0,at=0,au=0,av=0,aw=0,ax=0,ay=0,az=0,aA=0,aB=0,aC=0,aD=0,aE=0,aF=0,aG=0,aH=0,aI=0,aJ=0,aK=0,aL=0;do{if(a>>>0<245){if(a>>>0<11){b=16}else{b=a+11&-8}d=b>>>3;e=c[24]|0;f=e>>>(d>>>0);if((f&3|0)!=0){g=(f&1^1)+d|0;h=g<<1;i=136+(h<<2)|0;j=136+(h+2<<2)|0;h=c[j>>2]|0;k=h+8|0;l=c[k>>2]|0;do{if((i|0)==(l|0)){c[24]=e&(1<<g^-1)}else{if(l>>>0<(c[28]|0)>>>0){aq();return 0;return 0}m=l+12|0;if((c[m>>2]|0)==(h|0)){c[m>>2]=i;c[j>>2]=l;break}else{aq();return 0;return 0}}}while(0);l=g<<3;c[h+4>>2]=l|3;j=h+(l|4)|0;c[j>>2]=c[j>>2]|1;n=k;return n|0}if(b>>>0<=(c[26]|0)>>>0){o=b;break}if((f|0)!=0){j=2<<d;l=f<<d&(j|-j);j=(l&-l)-1|0;l=j>>>12&16;i=j>>>(l>>>0);j=i>>>5&8;m=i>>>(j>>>0);i=m>>>2&4;p=m>>>(i>>>0);m=p>>>1&2;q=p>>>(m>>>0);p=q>>>1&1;r=(j|l|i|m|p)+(q>>>(p>>>0))|0;p=r<<1;q=136+(p<<2)|0;m=136+(p+2<<2)|0;p=c[m>>2]|0;i=p+8|0;l=c[i>>2]|0;do{if((q|0)==(l|0)){c[24]=e&(1<<r^-1)}else{if(l>>>0<(c[28]|0)>>>0){aq();return 0;return 0}j=l+12|0;if((c[j>>2]|0)==(p|0)){c[j>>2]=q;c[m>>2]=l;break}else{aq();return 0;return 0}}}while(0);l=r<<3;m=l-b|0;c[p+4>>2]=b|3;q=p;e=q+b|0;c[q+(b|4)>>2]=m|1;c[q+l>>2]=m;l=c[26]|0;if((l|0)!=0){q=c[29]|0;d=l>>>3;l=d<<1;f=136+(l<<2)|0;k=c[24]|0;h=1<<d;do{if((k&h|0)==0){c[24]=k|h;s=f;t=136+(l+2<<2)|0}else{d=136+(l+2<<2)|0;g=c[d>>2]|0;if(g>>>0>=(c[28]|0)>>>0){s=g;t=d;break}aq();return 0;return 0}}while(0);c[t>>2]=q;c[s+12>>2]=q;c[q+8>>2]=s;c[q+12>>2]=f}c[26]=m;c[29]=e;n=i;return n|0}l=c[25]|0;if((l|0)==0){o=b;break}h=(l&-l)-1|0;l=h>>>12&16;k=h>>>(l>>>0);h=k>>>5&8;p=k>>>(h>>>0);k=p>>>2&4;r=p>>>(k>>>0);p=r>>>1&2;d=r>>>(p>>>0);r=d>>>1&1;g=c[400+((h|l|k|p|r)+(d>>>(r>>>0))<<2)>>2]|0;r=g;d=g;p=(c[g+4>>2]&-8)-b|0;while(1){g=c[r+16>>2]|0;if((g|0)==0){k=c[r+20>>2]|0;if((k|0)==0){break}else{u=k}}else{u=g}g=(c[u+4>>2]&-8)-b|0;k=g>>>0<p>>>0;r=u;d=k?u:d;p=k?g:p}r=d;i=c[28]|0;if(r>>>0<i>>>0){aq();return 0;return 0}e=r+b|0;m=e;if(r>>>0>=e>>>0){aq();return 0;return 0}e=c[d+24>>2]|0;f=c[d+12>>2]|0;do{if((f|0)==(d|0)){q=d+20|0;g=c[q>>2]|0;if((g|0)==0){k=d+16|0;l=c[k>>2]|0;if((l|0)==0){v=0;break}else{w=l;x=k}}else{w=g;x=q}while(1){q=w+20|0;g=c[q>>2]|0;if((g|0)!=0){w=g;x=q;continue}q=w+16|0;g=c[q>>2]|0;if((g|0)==0){break}else{w=g;x=q}}if(x>>>0<i>>>0){aq();return 0;return 0}else{c[x>>2]=0;v=w;break}}else{q=c[d+8>>2]|0;if(q>>>0<i>>>0){aq();return 0;return 0}g=q+12|0;if((c[g>>2]|0)!=(d|0)){aq();return 0;return 0}k=f+8|0;if((c[k>>2]|0)==(d|0)){c[g>>2]=f;c[k>>2]=q;v=f;break}else{aq();return 0;return 0}}}while(0);L397:do{if((e|0)!=0){f=d+28|0;i=400+(c[f>>2]<<2)|0;do{if((d|0)==(c[i>>2]|0)){c[i>>2]=v;if((v|0)!=0){break}c[25]=c[25]&(1<<c[f>>2]^-1);break L397}else{if(e>>>0<(c[28]|0)>>>0){aq();return 0;return 0}q=e+16|0;if((c[q>>2]|0)==(d|0)){c[q>>2]=v}else{c[e+20>>2]=v}if((v|0)==0){break L397}}}while(0);if(v>>>0<(c[28]|0)>>>0){aq();return 0;return 0}c[v+24>>2]=e;f=c[d+16>>2]|0;do{if((f|0)!=0){if(f>>>0<(c[28]|0)>>>0){aq();return 0;return 0}else{c[v+16>>2]=f;c[f+24>>2]=v;break}}}while(0);f=c[d+20>>2]|0;if((f|0)==0){break}if(f>>>0<(c[28]|0)>>>0){aq();return 0;return 0}else{c[v+20>>2]=f;c[f+24>>2]=v;break}}}while(0);if(p>>>0<16){e=p+b|0;c[d+4>>2]=e|3;f=r+(e+4|0)|0;c[f>>2]=c[f>>2]|1}else{c[d+4>>2]=b|3;c[r+(b|4)>>2]=p|1;c[r+(p+b|0)>>2]=p;f=c[26]|0;if((f|0)!=0){e=c[29]|0;i=f>>>3;f=i<<1;q=136+(f<<2)|0;k=c[24]|0;g=1<<i;do{if((k&g|0)==0){c[24]=k|g;y=q;z=136+(f+2<<2)|0}else{i=136+(f+2<<2)|0;l=c[i>>2]|0;if(l>>>0>=(c[28]|0)>>>0){y=l;z=i;break}aq();return 0;return 0}}while(0);c[z>>2]=e;c[y+12>>2]=e;c[e+8>>2]=y;c[e+12>>2]=q}c[26]=p;c[29]=m}f=d+8|0;if((f|0)==0){o=b;break}else{n=f}return n|0}else{if(a>>>0>4294967231){o=-1;break}f=a+11|0;g=f&-8;k=c[25]|0;if((k|0)==0){o=g;break}r=-g|0;i=f>>>8;do{if((i|0)==0){A=0}else{if(g>>>0>16777215){A=31;break}f=(i+1048320|0)>>>16&8;l=i<<f;h=(l+520192|0)>>>16&4;j=l<<h;l=(j+245760|0)>>>16&2;B=(14-(h|f|l)|0)+(j<<l>>>15)|0;A=g>>>((B+7|0)>>>0)&1|B<<1}}while(0);i=c[400+(A<<2)>>2]|0;L445:do{if((i|0)==0){C=0;D=r;E=0}else{if((A|0)==31){F=0}else{F=25-(A>>>1)|0}d=0;m=r;p=i;q=g<<F;e=0;while(1){B=c[p+4>>2]&-8;l=B-g|0;if(l>>>0<m>>>0){if((B|0)==(g|0)){C=p;D=l;E=p;break L445}else{G=p;H=l}}else{G=d;H=m}l=c[p+20>>2]|0;B=c[p+16+(q>>>31<<2)>>2]|0;j=(l|0)==0|(l|0)==(B|0)?e:l;if((B|0)==0){C=G;D=H;E=j;break}else{d=G;m=H;p=B;q=q<<1;e=j}}}}while(0);if((E|0)==0&(C|0)==0){i=2<<A;r=k&(i|-i);if((r|0)==0){o=g;break}i=(r&-r)-1|0;r=i>>>12&16;e=i>>>(r>>>0);i=e>>>5&8;q=e>>>(i>>>0);e=q>>>2&4;p=q>>>(e>>>0);q=p>>>1&2;m=p>>>(q>>>0);p=m>>>1&1;I=c[400+((i|r|e|q|p)+(m>>>(p>>>0))<<2)>>2]|0}else{I=E}if((I|0)==0){J=D;K=C}else{p=I;m=D;q=C;while(1){e=(c[p+4>>2]&-8)-g|0;r=e>>>0<m>>>0;i=r?e:m;e=r?p:q;r=c[p+16>>2]|0;if((r|0)!=0){p=r;m=i;q=e;continue}r=c[p+20>>2]|0;if((r|0)==0){J=i;K=e;break}else{p=r;m=i;q=e}}}if((K|0)==0){o=g;break}if(J>>>0>=((c[26]|0)-g|0)>>>0){o=g;break}q=K;m=c[28]|0;if(q>>>0<m>>>0){aq();return 0;return 0}p=q+g|0;k=p;if(q>>>0>=p>>>0){aq();return 0;return 0}e=c[K+24>>2]|0;i=c[K+12>>2]|0;do{if((i|0)==(K|0)){r=K+20|0;d=c[r>>2]|0;if((d|0)==0){j=K+16|0;B=c[j>>2]|0;if((B|0)==0){L=0;break}else{M=B;N=j}}else{M=d;N=r}while(1){r=M+20|0;d=c[r>>2]|0;if((d|0)!=0){M=d;N=r;continue}r=M+16|0;d=c[r>>2]|0;if((d|0)==0){break}else{M=d;N=r}}if(N>>>0<m>>>0){aq();return 0;return 0}else{c[N>>2]=0;L=M;break}}else{r=c[K+8>>2]|0;if(r>>>0<m>>>0){aq();return 0;return 0}d=r+12|0;if((c[d>>2]|0)!=(K|0)){aq();return 0;return 0}j=i+8|0;if((c[j>>2]|0)==(K|0)){c[d>>2]=i;c[j>>2]=r;L=i;break}else{aq();return 0;return 0}}}while(0);L495:do{if((e|0)!=0){i=K+28|0;m=400+(c[i>>2]<<2)|0;do{if((K|0)==(c[m>>2]|0)){c[m>>2]=L;if((L|0)!=0){break}c[25]=c[25]&(1<<c[i>>2]^-1);break L495}else{if(e>>>0<(c[28]|0)>>>0){aq();return 0;return 0}r=e+16|0;if((c[r>>2]|0)==(K|0)){c[r>>2]=L}else{c[e+20>>2]=L}if((L|0)==0){break L495}}}while(0);if(L>>>0<(c[28]|0)>>>0){aq();return 0;return 0}c[L+24>>2]=e;i=c[K+16>>2]|0;do{if((i|0)!=0){if(i>>>0<(c[28]|0)>>>0){aq();return 0;return 0}else{c[L+16>>2]=i;c[i+24>>2]=L;break}}}while(0);i=c[K+20>>2]|0;if((i|0)==0){break}if(i>>>0<(c[28]|0)>>>0){aq();return 0;return 0}else{c[L+20>>2]=i;c[i+24>>2]=L;break}}}while(0);do{if(J>>>0<16){e=J+g|0;c[K+4>>2]=e|3;i=q+(e+4|0)|0;c[i>>2]=c[i>>2]|1}else{c[K+4>>2]=g|3;c[q+(g|4)>>2]=J|1;c[q+(J+g|0)>>2]=J;i=J>>>3;if(J>>>0<256){e=i<<1;m=136+(e<<2)|0;r=c[24]|0;j=1<<i;do{if((r&j|0)==0){c[24]=r|j;O=m;P=136+(e+2<<2)|0}else{i=136+(e+2<<2)|0;d=c[i>>2]|0;if(d>>>0>=(c[28]|0)>>>0){O=d;P=i;break}aq();return 0;return 0}}while(0);c[P>>2]=k;c[O+12>>2]=k;c[q+(g+8|0)>>2]=O;c[q+(g+12|0)>>2]=m;break}e=p;j=J>>>8;do{if((j|0)==0){Q=0}else{if(J>>>0>16777215){Q=31;break}r=(j+1048320|0)>>>16&8;i=j<<r;d=(i+520192|0)>>>16&4;B=i<<d;i=(B+245760|0)>>>16&2;l=(14-(d|r|i)|0)+(B<<i>>>15)|0;Q=J>>>((l+7|0)>>>0)&1|l<<1}}while(0);j=400+(Q<<2)|0;c[q+(g+28|0)>>2]=Q;c[q+(g+20|0)>>2]=0;c[q+(g+16|0)>>2]=0;m=c[25]|0;l=1<<Q;if((m&l|0)==0){c[25]=m|l;c[j>>2]=e;c[q+(g+24|0)>>2]=j;c[q+(g+12|0)>>2]=e;c[q+(g+8|0)>>2]=e;break}if((Q|0)==31){R=0}else{R=25-(Q>>>1)|0}l=J<<R;m=c[j>>2]|0;while(1){if((c[m+4>>2]&-8|0)==(J|0)){break}S=m+16+(l>>>31<<2)|0;j=c[S>>2]|0;if((j|0)==0){T=392;break}else{l=l<<1;m=j}}if((T|0)==392){if(S>>>0<(c[28]|0)>>>0){aq();return 0;return 0}else{c[S>>2]=e;c[q+(g+24|0)>>2]=m;c[q+(g+12|0)>>2]=e;c[q+(g+8|0)>>2]=e;break}}l=m+8|0;j=c[l>>2]|0;i=c[28]|0;if(m>>>0<i>>>0){aq();return 0;return 0}if(j>>>0<i>>>0){aq();return 0;return 0}else{c[j+12>>2]=e;c[l>>2]=e;c[q+(g+8|0)>>2]=j;c[q+(g+12|0)>>2]=m;c[q+(g+24|0)>>2]=0;break}}}while(0);q=K+8|0;if((q|0)==0){o=g;break}else{n=q}return n|0}}while(0);K=c[26]|0;if(o>>>0<=K>>>0){S=K-o|0;J=c[29]|0;if(S>>>0>15){R=J;c[29]=R+o;c[26]=S;c[R+(o+4|0)>>2]=S|1;c[R+K>>2]=S;c[J+4>>2]=o|3}else{c[26]=0;c[29]=0;c[J+4>>2]=K|3;S=J+(K+4|0)|0;c[S>>2]=c[S>>2]|1}n=J+8|0;return n|0}J=c[27]|0;if(o>>>0<J>>>0){S=J-o|0;c[27]=S;J=c[30]|0;K=J;c[30]=K+o;c[K+(o+4|0)>>2]=S|1;c[J+4>>2]=o|3;n=J+8|0;return n|0}do{if((c[4]|0)==0){J=am(8)|0;if((J-1&J|0)==0){c[6]=J;c[5]=J;c[7]=-1;c[8]=2097152;c[9]=0;c[135]=0;c[4]=ar(0)&-16^1431655768;break}else{aq();return 0;return 0}}}while(0);J=o+48|0;S=c[6]|0;K=o+47|0;R=S+K|0;Q=-S|0;S=R&Q;if(S>>>0<=o>>>0){n=0;return n|0}O=c[134]|0;do{if((O|0)!=0){P=c[132]|0;L=P+S|0;if(L>>>0<=P>>>0|L>>>0>O>>>0){n=0}else{break}return n|0}}while(0);L587:do{if((c[135]&4|0)==0){O=c[30]|0;L589:do{if((O|0)==0){T=422}else{L=O;P=544;while(1){U=P|0;M=c[U>>2]|0;if(M>>>0<=L>>>0){V=P+4|0;if((M+(c[V>>2]|0)|0)>>>0>L>>>0){break}}M=c[P+8>>2]|0;if((M|0)==0){T=422;break L589}else{P=M}}if((P|0)==0){T=422;break}L=R-(c[27]|0)&Q;if(L>>>0>=2147483647){W=0;break}m=al(L|0)|0;e=(m|0)==((c[U>>2]|0)+(c[V>>2]|0)|0);X=e?m:-1;Y=e?L:0;Z=m;_=L;T=431}}while(0);do{if((T|0)==422){O=al(0)|0;if((O|0)==-1){W=0;break}g=O;L=c[5]|0;m=L-1|0;if((m&g|0)==0){$=S}else{$=(S-g|0)+(m+g&-L)|0}L=c[132]|0;g=L+$|0;if(!($>>>0>o>>>0&$>>>0<2147483647)){W=0;break}m=c[134]|0;if((m|0)!=0){if(g>>>0<=L>>>0|g>>>0>m>>>0){W=0;break}}m=al($|0)|0;g=(m|0)==(O|0);X=g?O:-1;Y=g?$:0;Z=m;_=$;T=431}}while(0);L609:do{if((T|0)==431){m=-_|0;if((X|0)!=-1){aa=Y;ab=X;T=442;break L587}do{if((Z|0)!=-1&_>>>0<2147483647&_>>>0<J>>>0){g=c[6]|0;O=(K-_|0)+g&-g;if(O>>>0>=2147483647){ac=_;break}if((al(O|0)|0)==-1){al(m|0);W=Y;break L609}else{ac=O+_|0;break}}else{ac=_}}while(0);if((Z|0)==-1){W=Y}else{aa=ac;ab=Z;T=442;break L587}}}while(0);c[135]=c[135]|4;ad=W;T=439}else{ad=0;T=439}}while(0);do{if((T|0)==439){if(S>>>0>=2147483647){break}W=al(S|0)|0;Z=al(0)|0;if(!((Z|0)!=-1&(W|0)!=-1&W>>>0<Z>>>0)){break}ac=Z-W|0;Z=ac>>>0>(o+40|0)>>>0;Y=Z?W:-1;if((Y|0)!=-1){aa=Z?ac:ad;ab=Y;T=442}}}while(0);do{if((T|0)==442){ad=(c[132]|0)+aa|0;c[132]=ad;if(ad>>>0>(c[133]|0)>>>0){c[133]=ad}ad=c[30]|0;L629:do{if((ad|0)==0){S=c[28]|0;if((S|0)==0|ab>>>0<S>>>0){c[28]=ab}c[136]=ab;c[137]=aa;c[139]=0;c[33]=c[4];c[32]=-1;S=0;do{Y=S<<1;ac=136+(Y<<2)|0;c[136+(Y+3<<2)>>2]=ac;c[136+(Y+2<<2)>>2]=ac;S=S+1|0;}while(S>>>0<32);S=ab+8|0;if((S&7|0)==0){ae=0}else{ae=-S&7}S=(aa-40|0)-ae|0;c[30]=ab+ae;c[27]=S;c[ab+(ae+4|0)>>2]=S|1;c[ab+(aa-36|0)>>2]=40;c[31]=c[8]}else{S=544;while(1){af=c[S>>2]|0;ag=S+4|0;ah=c[ag>>2]|0;if((ab|0)==(af+ah|0)){T=454;break}ac=c[S+8>>2]|0;if((ac|0)==0){break}else{S=ac}}do{if((T|0)==454){if((c[S+12>>2]&8|0)!=0){break}ac=ad;if(!(ac>>>0>=af>>>0&ac>>>0<ab>>>0)){break}c[ag>>2]=ah+aa;ac=c[30]|0;Y=(c[27]|0)+aa|0;Z=ac;W=ac+8|0;if((W&7|0)==0){ai=0}else{ai=-W&7}W=Y-ai|0;c[30]=Z+ai;c[27]=W;c[Z+(ai+4|0)>>2]=W|1;c[Z+(Y+4|0)>>2]=40;c[31]=c[8];break L629}}while(0);if(ab>>>0<(c[28]|0)>>>0){c[28]=ab}S=ab+aa|0;Y=544;while(1){aj=Y|0;if((c[aj>>2]|0)==(S|0)){T=464;break}Z=c[Y+8>>2]|0;if((Z|0)==0){break}else{Y=Z}}do{if((T|0)==464){if((c[Y+12>>2]&8|0)!=0){break}c[aj>>2]=ab;S=Y+4|0;c[S>>2]=(c[S>>2]|0)+aa;S=ab+8|0;if((S&7|0)==0){ak=0}else{ak=-S&7}S=ab+(aa+8|0)|0;if((S&7|0)==0){an=0}else{an=-S&7}S=ab+(an+aa|0)|0;Z=S;W=ak+o|0;ac=ab+W|0;_=ac;K=(S-(ab+ak|0)|0)-o|0;c[ab+(ak+4|0)>>2]=o|3;do{if((Z|0)==(c[30]|0)){J=(c[27]|0)+K|0;c[27]=J;c[30]=_;c[ab+(W+4|0)>>2]=J|1}else{if((Z|0)==(c[29]|0)){J=(c[26]|0)+K|0;c[26]=J;c[29]=_;c[ab+(W+4|0)>>2]=J|1;c[ab+(J+W|0)>>2]=J;break}J=aa+4|0;X=c[ab+(J+an|0)>>2]|0;if((X&3|0)==1){$=X&-8;V=X>>>3;L674:do{if(X>>>0<256){U=c[ab+((an|8)+aa|0)>>2]|0;Q=c[ab+((aa+12|0)+an|0)>>2]|0;R=136+(V<<1<<2)|0;do{if((U|0)!=(R|0)){if(U>>>0<(c[28]|0)>>>0){aq();return 0;return 0}if((c[U+12>>2]|0)==(Z|0)){break}aq();return 0;return 0}}while(0);if((Q|0)==(U|0)){c[24]=c[24]&(1<<V^-1);break}do{if((Q|0)==(R|0)){ap=Q+8|0}else{if(Q>>>0<(c[28]|0)>>>0){aq();return 0;return 0}m=Q+8|0;if((c[m>>2]|0)==(Z|0)){ap=m;break}aq();return 0;return 0}}while(0);c[U+12>>2]=Q;c[ap>>2]=U}else{R=S;m=c[ab+((an|24)+aa|0)>>2]|0;P=c[ab+((aa+12|0)+an|0)>>2]|0;do{if((P|0)==(R|0)){O=an|16;g=ab+(J+O|0)|0;L=c[g>>2]|0;if((L|0)==0){e=ab+(O+aa|0)|0;O=c[e>>2]|0;if((O|0)==0){as=0;break}else{at=O;au=e}}else{at=L;au=g}while(1){g=at+20|0;L=c[g>>2]|0;if((L|0)!=0){at=L;au=g;continue}g=at+16|0;L=c[g>>2]|0;if((L|0)==0){break}else{at=L;au=g}}if(au>>>0<(c[28]|0)>>>0){aq();return 0;return 0}else{c[au>>2]=0;as=at;break}}else{g=c[ab+((an|8)+aa|0)>>2]|0;if(g>>>0<(c[28]|0)>>>0){aq();return 0;return 0}L=g+12|0;if((c[L>>2]|0)!=(R|0)){aq();return 0;return 0}e=P+8|0;if((c[e>>2]|0)==(R|0)){c[L>>2]=P;c[e>>2]=g;as=P;break}else{aq();return 0;return 0}}}while(0);if((m|0)==0){break}P=ab+((aa+28|0)+an|0)|0;U=400+(c[P>>2]<<2)|0;do{if((R|0)==(c[U>>2]|0)){c[U>>2]=as;if((as|0)!=0){break}c[25]=c[25]&(1<<c[P>>2]^-1);break L674}else{if(m>>>0<(c[28]|0)>>>0){aq();return 0;return 0}Q=m+16|0;if((c[Q>>2]|0)==(R|0)){c[Q>>2]=as}else{c[m+20>>2]=as}if((as|0)==0){break L674}}}while(0);if(as>>>0<(c[28]|0)>>>0){aq();return 0;return 0}c[as+24>>2]=m;R=an|16;P=c[ab+(R+aa|0)>>2]|0;do{if((P|0)!=0){if(P>>>0<(c[28]|0)>>>0){aq();return 0;return 0}else{c[as+16>>2]=P;c[P+24>>2]=as;break}}}while(0);P=c[ab+(J+R|0)>>2]|0;if((P|0)==0){break}if(P>>>0<(c[28]|0)>>>0){aq();return 0;return 0}else{c[as+20>>2]=P;c[P+24>>2]=as;break}}}while(0);av=ab+(($|an)+aa|0)|0;aw=$+K|0}else{av=Z;aw=K}J=av+4|0;c[J>>2]=c[J>>2]&-2;c[ab+(W+4|0)>>2]=aw|1;c[ab+(aw+W|0)>>2]=aw;J=aw>>>3;if(aw>>>0<256){V=J<<1;X=136+(V<<2)|0;P=c[24]|0;m=1<<J;do{if((P&m|0)==0){c[24]=P|m;ax=X;ay=136+(V+2<<2)|0}else{J=136+(V+2<<2)|0;U=c[J>>2]|0;if(U>>>0>=(c[28]|0)>>>0){ax=U;ay=J;break}aq();return 0;return 0}}while(0);c[ay>>2]=_;c[ax+12>>2]=_;c[ab+(W+8|0)>>2]=ax;c[ab+(W+12|0)>>2]=X;break}V=ac;m=aw>>>8;do{if((m|0)==0){az=0}else{if(aw>>>0>16777215){az=31;break}P=(m+1048320|0)>>>16&8;$=m<<P;J=($+520192|0)>>>16&4;U=$<<J;$=(U+245760|0)>>>16&2;Q=(14-(J|P|$)|0)+(U<<$>>>15)|0;az=aw>>>((Q+7|0)>>>0)&1|Q<<1}}while(0);m=400+(az<<2)|0;c[ab+(W+28|0)>>2]=az;c[ab+(W+20|0)>>2]=0;c[ab+(W+16|0)>>2]=0;X=c[25]|0;Q=1<<az;if((X&Q|0)==0){c[25]=X|Q;c[m>>2]=V;c[ab+(W+24|0)>>2]=m;c[ab+(W+12|0)>>2]=V;c[ab+(W+8|0)>>2]=V;break}if((az|0)==31){aA=0}else{aA=25-(az>>>1)|0}Q=aw<<aA;X=c[m>>2]|0;while(1){if((c[X+4>>2]&-8|0)==(aw|0)){break}aB=X+16+(Q>>>31<<2)|0;m=c[aB>>2]|0;if((m|0)==0){T=537;break}else{Q=Q<<1;X=m}}if((T|0)==537){if(aB>>>0<(c[28]|0)>>>0){aq();return 0;return 0}else{c[aB>>2]=V;c[ab+(W+24|0)>>2]=X;c[ab+(W+12|0)>>2]=V;c[ab+(W+8|0)>>2]=V;break}}Q=X+8|0;m=c[Q>>2]|0;$=c[28]|0;if(X>>>0<$>>>0){aq();return 0;return 0}if(m>>>0<$>>>0){aq();return 0;return 0}else{c[m+12>>2]=V;c[Q>>2]=V;c[ab+(W+8|0)>>2]=m;c[ab+(W+12|0)>>2]=X;c[ab+(W+24|0)>>2]=0;break}}}while(0);n=ab+(ak|8)|0;return n|0}}while(0);Y=ad;W=544;while(1){aC=c[W>>2]|0;if(aC>>>0<=Y>>>0){aD=c[W+4>>2]|0;aE=aC+aD|0;if(aE>>>0>Y>>>0){break}}W=c[W+8>>2]|0}W=aC+(aD-39|0)|0;if((W&7|0)==0){aF=0}else{aF=-W&7}W=aC+((aD-47|0)+aF|0)|0;ac=W>>>0<(ad+16|0)>>>0?Y:W;W=ac+8|0;_=ab+8|0;if((_&7|0)==0){aG=0}else{aG=-_&7}_=(aa-40|0)-aG|0;c[30]=ab+aG;c[27]=_;c[ab+(aG+4|0)>>2]=_|1;c[ab+(aa-36|0)>>2]=40;c[31]=c[8];c[ac+4>>2]=27;c[W>>2]=c[136];c[W+4>>2]=c[548>>2];c[W+8>>2]=c[552>>2];c[W+12>>2]=c[556>>2];c[136]=ab;c[137]=aa;c[139]=0;c[138]=W;W=ac+28|0;c[W>>2]=7;if((ac+32|0)>>>0<aE>>>0){_=W;while(1){W=_+4|0;c[W>>2]=7;if((_+8|0)>>>0<aE>>>0){_=W}else{break}}}if((ac|0)==(Y|0)){break}_=ac-ad|0;W=Y+(_+4|0)|0;c[W>>2]=c[W>>2]&-2;c[ad+4>>2]=_|1;c[Y+_>>2]=_;W=_>>>3;if(_>>>0<256){K=W<<1;Z=136+(K<<2)|0;S=c[24]|0;m=1<<W;do{if((S&m|0)==0){c[24]=S|m;aH=Z;aI=136+(K+2<<2)|0}else{W=136+(K+2<<2)|0;Q=c[W>>2]|0;if(Q>>>0>=(c[28]|0)>>>0){aH=Q;aI=W;break}aq();return 0;return 0}}while(0);c[aI>>2]=ad;c[aH+12>>2]=ad;c[ad+8>>2]=aH;c[ad+12>>2]=Z;break}K=ad;m=_>>>8;do{if((m|0)==0){aJ=0}else{if(_>>>0>16777215){aJ=31;break}S=(m+1048320|0)>>>16&8;Y=m<<S;ac=(Y+520192|0)>>>16&4;W=Y<<ac;Y=(W+245760|0)>>>16&2;Q=(14-(ac|S|Y)|0)+(W<<Y>>>15)|0;aJ=_>>>((Q+7|0)>>>0)&1|Q<<1}}while(0);m=400+(aJ<<2)|0;c[ad+28>>2]=aJ;c[ad+20>>2]=0;c[ad+16>>2]=0;Z=c[25]|0;Q=1<<aJ;if((Z&Q|0)==0){c[25]=Z|Q;c[m>>2]=K;c[ad+24>>2]=m;c[ad+12>>2]=ad;c[ad+8>>2]=ad;break}if((aJ|0)==31){aK=0}else{aK=25-(aJ>>>1)|0}Q=_<<aK;Z=c[m>>2]|0;while(1){if((c[Z+4>>2]&-8|0)==(_|0)){break}aL=Z+16+(Q>>>31<<2)|0;m=c[aL>>2]|0;if((m|0)==0){T=572;break}else{Q=Q<<1;Z=m}}if((T|0)==572){if(aL>>>0<(c[28]|0)>>>0){aq();return 0;return 0}else{c[aL>>2]=K;c[ad+24>>2]=Z;c[ad+12>>2]=ad;c[ad+8>>2]=ad;break}}Q=Z+8|0;_=c[Q>>2]|0;m=c[28]|0;if(Z>>>0<m>>>0){aq();return 0;return 0}if(_>>>0<m>>>0){aq();return 0;return 0}else{c[_+12>>2]=K;c[Q>>2]=K;c[ad+8>>2]=_;c[ad+12>>2]=Z;c[ad+24>>2]=0;break}}}while(0);ad=c[27]|0;if(ad>>>0<=o>>>0){break}_=ad-o|0;c[27]=_;ad=c[30]|0;Q=ad;c[30]=Q+o;c[Q+(o+4|0)>>2]=_|1;c[ad+4>>2]=o|3;n=ad+8|0;return n|0}}while(0);c[ao()>>2]=12;n=0;return n|0}function a3(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=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,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0;if((a|0)==0){return}b=a-8|0;d=b;e=c[28]|0;if(b>>>0<e>>>0){aq()}f=c[a-4>>2]|0;g=f&3;if((g|0)==1){aq()}h=f&-8;i=a+(h-8|0)|0;j=i;L846:do{if((f&1|0)==0){k=c[b>>2]|0;if((g|0)==0){return}l=-8-k|0;m=a+l|0;n=m;o=k+h|0;if(m>>>0<e>>>0){aq()}if((n|0)==(c[29]|0)){p=a+(h-4|0)|0;if((c[p>>2]&3|0)!=3){q=n;r=o;break}c[26]=o;c[p>>2]=c[p>>2]&-2;c[a+(l+4|0)>>2]=o|1;c[i>>2]=o;return}p=k>>>3;if(k>>>0<256){k=c[a+(l+8|0)>>2]|0;s=c[a+(l+12|0)>>2]|0;t=136+(p<<1<<2)|0;do{if((k|0)!=(t|0)){if(k>>>0<e>>>0){aq()}if((c[k+12>>2]|0)==(n|0)){break}aq()}}while(0);if((s|0)==(k|0)){c[24]=c[24]&(1<<p^-1);q=n;r=o;break}do{if((s|0)==(t|0)){u=s+8|0}else{if(s>>>0<e>>>0){aq()}v=s+8|0;if((c[v>>2]|0)==(n|0)){u=v;break}aq()}}while(0);c[k+12>>2]=s;c[u>>2]=k;q=n;r=o;break}t=m;p=c[a+(l+24|0)>>2]|0;v=c[a+(l+12|0)>>2]|0;do{if((v|0)==(t|0)){w=a+(l+20|0)|0;x=c[w>>2]|0;if((x|0)==0){y=a+(l+16|0)|0;z=c[y>>2]|0;if((z|0)==0){A=0;break}else{B=z;C=y}}else{B=x;C=w}while(1){w=B+20|0;x=c[w>>2]|0;if((x|0)!=0){B=x;C=w;continue}w=B+16|0;x=c[w>>2]|0;if((x|0)==0){break}else{B=x;C=w}}if(C>>>0<e>>>0){aq()}else{c[C>>2]=0;A=B;break}}else{w=c[a+(l+8|0)>>2]|0;if(w>>>0<e>>>0){aq()}x=w+12|0;if((c[x>>2]|0)!=(t|0)){aq()}y=v+8|0;if((c[y>>2]|0)==(t|0)){c[x>>2]=v;c[y>>2]=w;A=v;break}else{aq()}}}while(0);if((p|0)==0){q=n;r=o;break}v=a+(l+28|0)|0;m=400+(c[v>>2]<<2)|0;do{if((t|0)==(c[m>>2]|0)){c[m>>2]=A;if((A|0)!=0){break}c[25]=c[25]&(1<<c[v>>2]^-1);q=n;r=o;break L846}else{if(p>>>0<(c[28]|0)>>>0){aq()}k=p+16|0;if((c[k>>2]|0)==(t|0)){c[k>>2]=A}else{c[p+20>>2]=A}if((A|0)==0){q=n;r=o;break L846}}}while(0);if(A>>>0<(c[28]|0)>>>0){aq()}c[A+24>>2]=p;t=c[a+(l+16|0)>>2]|0;do{if((t|0)!=0){if(t>>>0<(c[28]|0)>>>0){aq()}else{c[A+16>>2]=t;c[t+24>>2]=A;break}}}while(0);t=c[a+(l+20|0)>>2]|0;if((t|0)==0){q=n;r=o;break}if(t>>>0<(c[28]|0)>>>0){aq()}else{c[A+20>>2]=t;c[t+24>>2]=A;q=n;r=o;break}}else{q=d;r=h}}while(0);d=q;if(d>>>0>=i>>>0){aq()}A=a+(h-4|0)|0;e=c[A>>2]|0;if((e&1|0)==0){aq()}do{if((e&2|0)==0){if((j|0)==(c[30]|0)){B=(c[27]|0)+r|0;c[27]=B;c[30]=q;c[q+4>>2]=B|1;if((q|0)==(c[29]|0)){c[29]=0;c[26]=0}if(B>>>0<=(c[31]|0)>>>0){return}a4(0);return}if((j|0)==(c[29]|0)){B=(c[26]|0)+r|0;c[26]=B;c[29]=q;c[q+4>>2]=B|1;c[d+B>>2]=B;return}B=(e&-8)+r|0;C=e>>>3;L952:do{if(e>>>0<256){u=c[a+h>>2]|0;g=c[a+(h|4)>>2]|0;b=136+(C<<1<<2)|0;do{if((u|0)!=(b|0)){if(u>>>0<(c[28]|0)>>>0){aq()}if((c[u+12>>2]|0)==(j|0)){break}aq()}}while(0);if((g|0)==(u|0)){c[24]=c[24]&(1<<C^-1);break}do{if((g|0)==(b|0)){D=g+8|0}else{if(g>>>0<(c[28]|0)>>>0){aq()}f=g+8|0;if((c[f>>2]|0)==(j|0)){D=f;break}aq()}}while(0);c[u+12>>2]=g;c[D>>2]=u}else{b=i;f=c[a+(h+16|0)>>2]|0;t=c[a+(h|4)>>2]|0;do{if((t|0)==(b|0)){p=a+(h+12|0)|0;v=c[p>>2]|0;if((v|0)==0){m=a+(h+8|0)|0;k=c[m>>2]|0;if((k|0)==0){E=0;break}else{F=k;G=m}}else{F=v;G=p}while(1){p=F+20|0;v=c[p>>2]|0;if((v|0)!=0){F=v;G=p;continue}p=F+16|0;v=c[p>>2]|0;if((v|0)==0){break}else{F=v;G=p}}if(G>>>0<(c[28]|0)>>>0){aq()}else{c[G>>2]=0;E=F;break}}else{p=c[a+h>>2]|0;if(p>>>0<(c[28]|0)>>>0){aq()}v=p+12|0;if((c[v>>2]|0)!=(b|0)){aq()}m=t+8|0;if((c[m>>2]|0)==(b|0)){c[v>>2]=t;c[m>>2]=p;E=t;break}else{aq()}}}while(0);if((f|0)==0){break}t=a+(h+20|0)|0;u=400+(c[t>>2]<<2)|0;do{if((b|0)==(c[u>>2]|0)){c[u>>2]=E;if((E|0)!=0){break}c[25]=c[25]&(1<<c[t>>2]^-1);break L952}else{if(f>>>0<(c[28]|0)>>>0){aq()}g=f+16|0;if((c[g>>2]|0)==(b|0)){c[g>>2]=E}else{c[f+20>>2]=E}if((E|0)==0){break L952}}}while(0);if(E>>>0<(c[28]|0)>>>0){aq()}c[E+24>>2]=f;b=c[a+(h+8|0)>>2]|0;do{if((b|0)!=0){if(b>>>0<(c[28]|0)>>>0){aq()}else{c[E+16>>2]=b;c[b+24>>2]=E;break}}}while(0);b=c[a+(h+12|0)>>2]|0;if((b|0)==0){break}if(b>>>0<(c[28]|0)>>>0){aq()}else{c[E+20>>2]=b;c[b+24>>2]=E;break}}}while(0);c[q+4>>2]=B|1;c[d+B>>2]=B;if((q|0)!=(c[29]|0)){H=B;break}c[26]=B;return}else{c[A>>2]=e&-2;c[q+4>>2]=r|1;c[d+r>>2]=r;H=r}}while(0);r=H>>>3;if(H>>>0<256){d=r<<1;e=136+(d<<2)|0;A=c[24]|0;E=1<<r;do{if((A&E|0)==0){c[24]=A|E;I=e;J=136+(d+2<<2)|0}else{r=136+(d+2<<2)|0;h=c[r>>2]|0;if(h>>>0>=(c[28]|0)>>>0){I=h;J=r;break}aq()}}while(0);c[J>>2]=q;c[I+12>>2]=q;c[q+8>>2]=I;c[q+12>>2]=e;return}e=q;I=H>>>8;do{if((I|0)==0){K=0}else{if(H>>>0>16777215){K=31;break}J=(I+1048320|0)>>>16&8;d=I<<J;E=(d+520192|0)>>>16&4;A=d<<E;d=(A+245760|0)>>>16&2;r=(14-(E|J|d)|0)+(A<<d>>>15)|0;K=H>>>((r+7|0)>>>0)&1|r<<1}}while(0);I=400+(K<<2)|0;c[q+28>>2]=K;c[q+20>>2]=0;c[q+16>>2]=0;r=c[25]|0;d=1<<K;do{if((r&d|0)==0){c[25]=r|d;c[I>>2]=e;c[q+24>>2]=I;c[q+12>>2]=q;c[q+8>>2]=q}else{if((K|0)==31){L=0}else{L=25-(K>>>1)|0}A=H<<L;J=c[I>>2]|0;while(1){if((c[J+4>>2]&-8|0)==(H|0)){break}M=J+16+(A>>>31<<2)|0;E=c[M>>2]|0;if((E|0)==0){N=751;break}else{A=A<<1;J=E}}if((N|0)==751){if(M>>>0<(c[28]|0)>>>0){aq()}else{c[M>>2]=e;c[q+24>>2]=J;c[q+12>>2]=q;c[q+8>>2]=q;break}}A=J+8|0;B=c[A>>2]|0;E=c[28]|0;if(J>>>0<E>>>0){aq()}if(B>>>0<E>>>0){aq()}else{c[B+12>>2]=e;c[A>>2]=e;c[q+8>>2]=B;c[q+12>>2]=J;c[q+24>>2]=0;break}}}while(0);q=(c[32]|0)-1|0;c[32]=q;if((q|0)==0){O=552}else{return}while(1){q=c[O>>2]|0;if((q|0)==0){break}else{O=q+8|0}}c[32]=-1;return}function a4(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;do{if((c[4]|0)==0){b=am(8)|0;if((b-1&b|0)==0){c[6]=b;c[5]=b;c[7]=-1;c[8]=2097152;c[9]=0;c[135]=0;c[4]=ar(0)&-16^1431655768;break}else{aq();return 0;return 0}}}while(0);if(a>>>0>=4294967232){d=0;return d|0}b=c[30]|0;if((b|0)==0){d=0;return d|0}e=c[27]|0;do{if(e>>>0>(a+40|0)>>>0){f=c[6]|0;g=Z(((((((-40-a|0)-1|0)+e|0)+f|0)>>>0)/(f>>>0)>>>0)-1|0,f);h=b;i=544;while(1){j=c[i>>2]|0;if(j>>>0<=h>>>0){if((j+(c[i+4>>2]|0)|0)>>>0>h>>>0){k=i;break}}j=c[i+8>>2]|0;if((j|0)==0){k=0;break}else{i=j}}if((c[k+12>>2]&8|0)!=0){break}i=al(0)|0;h=k+4|0;if((i|0)!=((c[k>>2]|0)+(c[h>>2]|0)|0)){break}j=al(-(g>>>0>2147483646?-2147483648-f|0:g)|0)|0;l=al(0)|0;if(!((j|0)!=-1&l>>>0<i>>>0)){break}j=i-l|0;if((i|0)==(l|0)){break}c[h>>2]=(c[h>>2]|0)-j;c[132]=(c[132]|0)-j;h=c[30]|0;m=(c[27]|0)-j|0;j=h;n=h+8|0;if((n&7|0)==0){o=0}else{o=-n&7}n=m-o|0;c[30]=j+o;c[27]=n;c[j+(o+4|0)>>2]=n|1;c[j+(m+4|0)>>2]=40;c[31]=c[8];d=(i|0)!=(l|0)&1;return d|0}}while(0);if((c[27]|0)>>>0<=(c[31]|0)>>>0){d=0;return d|0}c[31]=-1;d=0;return d|0}function a5(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;f=b|0;if((b&3)==(d&3)){while(b&3){if((e|0)==0)return f|0;a[b]=a[d]|0;b=b+1|0;d=d+1|0;e=e-1|0}while((e|0)>=4){c[b>>2]=c[d>>2];b=b+4|0;d=d+4|0;e=e-4|0}}while((e|0)>0){a[b]=a[d]|0;b=b+1|0;d=d+1|0;e=e-1|0}return f|0}function a6(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=b+e|0;if((e|0)>=20){d=d&255;e=b&3;g=d|d<<8|d<<16|d<<24;h=f&~3;if(e){e=b+4-e|0;while((b|0)<(e|0)){a[b]=d;b=b+1|0}}while((b|0)<(h|0)){c[b>>2]=g;b=b+4|0}}while((b|0)<(f|0)){a[b]=d;b=b+1|0}}function a7(b){b=b|0;var c=0;c=b;while(a[c]|0){c=c+1|0}return c-b|0}function a8(a,b){a=a|0;b=b|0;as[a&1](b|0)}function a9(a,b){a=a|0;b=b|0;return at[a&1](b|0)|0}function ba(a){a=a|0;au[a&1]()}function bb(a,b,c){a=a|0;b=b|0;c=c|0;return av[a&1](b|0,c|0)|0}function bc(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;aw[a&15](b|0,c|0,d|0,e|0)}function bd(a){a=a|0;_(0)}function be(a){a=a|0;_(1);return 0}function bf(){_(2)}function bg(a,b){a=a|0;b=b|0;_(3);return 0}function bh(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;_(4)}
+function ax(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+7>>3<<3;return b|0}function ay(){return i|0}function az(a){a=a|0;i=a}function aA(a,b){a=a|0;b=b|0;if((o|0)==0){o=a;p=b}}function aB(a){a=a|0;B=a}function aC(a){a=a|0;C=a}function aD(a){a=a|0;D=a}function aE(a){a=a|0;E=a}function aF(a){a=a|0;F=a}function aG(a){a=a|0;G=a}function aH(a){a=a|0;H=a}function aI(a){a=a|0;I=a}function aJ(a){a=a|0;J=a}function aK(a){a=a|0;K=a}function aL(a){a=a|0;var b=0;if((a|0)==0|(a|0)==8){return}b=a+4|0;c[b>>2]=(c[b>>2]|0)+1;return}function aM(a){a=a|0;var b=0,d=0,e=0;do{if((a|0)==0){b=2}else{d=a|0;e=c[d>>2]|0;if((a|0)==8){b=e;break}c[d>>2]=0;b=e}}while(0);return b|0}function aN(a){a=a|0;if((a|0)==0){return}if((c[a>>2]|0)!=0){return}c[a+16696>>2]=0;return}function aO(){var d=0,e=0,f=0;d=a2(17916)|0;if((d|0)==0){e=8;return e|0}c[d>>2]=0;c[d+4>>2]=1;a6(d+8|0,0,16674);f=d+16684|0;c[f>>2]=0;c[f+4>>2]=0;b[d+16692>>1]=2048;a[d+16694|0]=0;a[d+16695|0]=0;c[d+16696>>2]=224;e=d;return e|0}function aP(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;if((a|0)==0){return}d=a|0;if((c[d>>2]|0)!=0){return}e=c[b>>2]|0;if((e|0)==0){f=a+4|0;g=c[f>>2]|0;a5(a|0,b|0,17916);c[f>>2]=g;return}else{c[d>>2]=e;return}}function aQ(a){a=a|0;var b=0,d=0;if((a|0)==0|(a|0)==8){return}b=a+4|0;d=(c[b>>2]|0)-1|0;c[b>>2]=d;if((d|0)!=0){return}a3(a);return}function aR(a,b,d,f){a=a|0;b=b|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;if((a|0)==0){return}if((c[a>>2]|0)!=0|(f|0)==0){return}g=b&65535;b=d;d=f;while(1){f=g&32767;h=40;while(1){i=h+8|0;j=e[i>>1]|0;if(f>>>0<j>>>0){break}else{h=i}}i=d+f|0;k=i>>>0<j>>>0?i:j;i=k-f|0;aw[c[h+4>>2]&15](a,f-(e[h>>1]|0)&65535,b,i&65535);if((d|0)==(i|0)){break}else{g=k;b=b+i|0;d=d-i|0}}return}function aS(a,b,d){a=a|0;b=b|0;d=d|0;if((a|0)==0){return}if((c[a>>2]|0)!=0|d>>>0<1024){return}d=a+16828|0;aT(a,d|0);a5(b|0,d|0,1024);return}function aT(f,g){f=f|0;g=g|0;var h=0,j=0,k=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;h=i;i=i+16|0;j=h|0;k=h+8|0;l=0;do{m=a[l+(f+16648)|0]|0;n=m&255;o=m<<2&-64;p=(o&255)>>>2|o;o=m<<4&-64;m=(o&255)>>>2|o;o=n<<6&192|n<<4&48;c[f+16700+(l<<2)>>2]=(o>>>4|o)<<16|((p&255)>>>4|p)&255|(((m&255)>>>4|m)&255)<<8|-16777216;l=l+1|0;}while((l|0)<32);l=f+16696|0;m=c[l>>2]|0;if(m>>>0>=224){p=c[f+16700>>2]|0;o=0;do{c[g+(o<<2)>>2]=p;o=o+1|0;}while((o|0)<256);i=h;return}o=f+16684|0;p=c[o>>2]|0;n=(p|0)==0;q=n?12:0;r=n?80:64;if((p|0)==0){s=25}else if((p|0)==1){s=28}else{s=32}p=f+16700|0;n=c[p>>2]|0;t=0;do{c[g+(t<<2)>>2]=n;t=t+1|0;}while((t|0)<256);do{if(q>>>0<=m>>>0){t=c[o>>2]|0;if(((t|0)==0?212:224)>>>0<=m>>>0){break}n=t>>>0<2;if(n){u=0;v=0}else{w=a[f+16694|0]|0;u=(w&255)>>>3;v=w&7}w=d[f+16695|0]|0;x=(n?w&248:w)+(m-q|0)|0;w=x&7;n=e[f+16692>>1]|0;y=(n+Z(((x>>>3&255)>>>0)%(s>>>0)>>>0&63,r)|0)+(f+8)|0;if((t|0)==0){x=e[f+16688>>1]|0;if((a[f+16680|0]|0)==0){break}n=w&255;z=j+4|0;A=j|0;B=y;C=g+32|0;D=0;while(1){E=a[B]|0;F=d[B+1|0]|0;c[z>>2]=c[f+16700+((F&15)<<2)>>2];c[A>>2]=c[f+16700+(F>>>4<<2)>>2];F=a[(((E&255)<<3|n)+x|0)+(f+8)|0]|0;c[C>>2]=c[j+(((F&255)>>>5&1)<<2)>>2];c[C+4>>2]=c[j+(((F<<1&255)>>>5&1)<<2)>>2];c[C+8>>2]=c[j+(((F<<2&255)>>>5&1)<<2)>>2];c[C+12>>2]=c[j+(((F<<3&255)>>>5&1)<<2)>>2];c[C+16>>2]=c[j+(((F<<4&255)>>>5&1)<<2)>>2];c[C+20>>2]=c[j+(((F<<5&255)>>>5&1)<<2)>>2];F=D+1|0;if((F|0)<40){B=B+2|0;C=C+24|0;D=F}else{break}}}else if((t|0)==1){D=e[f+16688>>1]|0;if((a[f+16680|0]|0)==0){break}C=w&255;B=j+4|0;x=j|0;n=y;A=g;z=0;while(1){F=a[n]|0;E=d[n+1|0]|0;c[B>>2]=c[f+16700+((E&15)<<2)>>2];c[x>>2]=c[f+16700+(E>>>4<<2)>>2];E=a[(((F&255)<<3|C)+D|0)+(f+8)|0]|0;c[A>>2]=c[j+((E&255)>>>7<<2)>>2];c[A+4>>2]=c[j+((E<<1&255)>>>7<<2)>>2];c[A+8>>2]=c[j+((E<<2&255)>>>7<<2)>>2];c[A+12>>2]=c[j+((E<<3&255)>>>7<<2)>>2];c[A+16>>2]=c[j+((E<<4&255)>>>7<<2)>>2];c[A+20>>2]=c[j+((E<<5&255)>>>7<<2)>>2];c[A+24>>2]=c[j+((E<<6&255)>>>7<<2)>>2];c[A+28>>2]=c[j+((E<<7&255)>>>7<<2)>>2];E=z+1|0;if((E|0)<32){n=n+2|0;A=A+32|0;z=E}else{break}}}else if((t|0)==2){z=b[f+16690>>1]|0;A=a[f+16680|0]|0;n=a[f+16681|0]|0;D=z&65535;C=(w&255)<<1;x=k|0;c[x>>2]=(D+C|0)+(f+8);c[k+4>>2]=(D+(C^14)|0)+(f+8);C=A<<24>>24!=0;if(C){aZ(g,u,v,y,x,0,p)}if(n<<24>>24!=0){aY(g,m&255,f+16392|0,(8192-z&65535)+(f+8)|0,p)}if(!C){break}aZ(g,u,v,y,x,-32768,p);break}else if((t|0)==3){x=b[f+16690>>1]|0;C=a[f+16680|0]|0;z=a[f+16681|0]|0;n=(x<<16>>16!=0&1)<<9;A=(w&255)<<2;D=k|0;c[D>>2]=A+(f+8);c[k+4>>2]=(A^28)+(f+8);A=C<<24>>24!=0;if(A){aU(g,u,v,y,D,n,p)}if(z<<24>>24!=0){aY(g,m&255,f+16392|0,(8192-x&65535)+(f+8)|0,p)}if(!A){break}aU(g,u,v,y,D,n|-32768,p);break}else{break}}}while(0);c[l>>2]=(c[l>>2]|0)+1;i=h;return}function aU(b,c,e,f,g,h,i){b=b|0;c=c|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=0;j=(8-(e&255)|0)%8&-1;k=(e<<24>>24!=0&1)+c&255;c=k&31;e=c&255;l=(j+256|0)-((k&31)<<3)|0;k=e;m=f+(e<<1)|0;n=b+(j<<2)|0;while(1){j=a[m+1|0]|0;o=(((j<<1&-32|j&15)&255)<<8|(d[m]|0))^h;if(o<<16>>16>=0){aW(n,o,g,i)}o=k+1|0;if((o|0)<32){k=o;m=m+2|0;n=n+32|0}else{break}}if(c<<24>>24==0){return}c=0;n=f;f=b+(l<<2)|0;while(1){l=((d[n+1|0]|0)<<8|(d[n]|0))^h;if(l<<16>>16>=0){aW(f,l,g,i)}l=c+1|0;if((l|0)<(e|0)){c=l;n=n+2|0;f=f+32|0}else{break}}return}function aV(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return}function aW(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;g=d&65535;h=c[e+((g>>>13&1)<<2)>>2]|0;e=g<<5&16352;i=a[h+(e|3)|0]|0;j=i&255;k=a[h+(e|2)|0]|0;l=k&255;m=a[h+(e|1)|0]|0;n=m&255;o=a[h+e|0]|0;e=o&255;h=(d&65535)>>>7&28;if((g&16384|0)==0){g=h&255;d=j>>>4;if((d|0)!=0){c[b>>2]=c[f+((d|g)<<2)>>2]}d=e&15;p=j&15;if((p|0)!=0){c[b+4>>2]=c[f+((p|g)<<2)>>2]}p=l>>>4;if((p|0)!=0){c[b+8>>2]=c[f+((p|g)<<2)>>2]}p=l&15;if((p|0)!=0){c[b+12>>2]=c[f+((p|g)<<2)>>2]}p=n>>>4;if((p|0)!=0){c[b+16>>2]=c[f+((p|g)<<2)>>2]}p=n&15;if((p|0)!=0){c[b+20>>2]=c[f+((p|g)<<2)>>2]}p=e>>>4;if((p|0)!=0){c[b+24>>2]=c[f+((p|g)<<2)>>2]}if((d|0)==0){return}c[b+28>>2]=c[f+((d|g)<<2)>>2];return}else{g=o&15;if(g<<24>>24!=0){c[b>>2]=c[f+(((g|h)&255)<<2)>>2]}g=(o&255)>>>4;if(g<<24>>24!=0){c[b+4>>2]=c[f+(((g|h)&255)<<2)>>2]}g=m&15;if(g<<24>>24!=0){c[b+8>>2]=c[f+(((g|h)&255)<<2)>>2]}g=(m&255)>>>4;if(g<<24>>24!=0){c[b+12>>2]=c[f+(((g|h)&255)<<2)>>2]}g=k&15;if(g<<24>>24!=0){c[b+16>>2]=c[f+(((g|h)&255)<<2)>>2]}g=(k&255)>>>4;if(g<<24>>24!=0){c[b+20>>2]=c[f+(((g|h)&255)<<2)>>2]}g=i&15;if(g<<24>>24!=0){c[b+24>>2]=c[f+(((g|h)&255)<<2)>>2]}g=(i&255)>>>4;if(g<<24>>24==0){return}c[b+28>>2]=c[f+(((g|h)&255)<<2)>>2];return}}function aX(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;g=d&65535;h=c[e+((g>>>13&1)<<2)>>2]|0;e=g<<4&8176;i=a[h+e|0]|0;j=a[h+(e|1)|0]|0;e=j&255;h=i&255;k=(d&65535)>>>7&28;if((g&16384|0)==0){g=k&255;d=(e&65535)>>>6;if(d<<16>>16!=0){c[b>>2]=c[f+((d&65535|g)<<2)>>2]}d=h&3;l=(e&65535)>>>4&3;if(l<<16>>16!=0){c[b+4>>2]=c[f+((l&65535|g)<<2)>>2]}l=(e&65535)>>>2&3;if(l<<16>>16!=0){c[b+8>>2]=c[f+((l&65535|g)<<2)>>2]}l=e&3;if(l<<16>>16!=0){c[b+12>>2]=c[f+((l&65535|g)<<2)>>2]}l=(h&65535)>>>6;if(l<<16>>16!=0){c[b+16>>2]=c[f+((l&65535|g)<<2)>>2]}l=(h&65535)>>>4&3;if(l<<16>>16!=0){c[b+20>>2]=c[f+((l&65535|g)<<2)>>2]}l=(h&65535)>>>2&3;if(l<<16>>16!=0){c[b+24>>2]=c[f+((l&65535|g)<<2)>>2]}if(d<<16>>16==0){return}c[b+28>>2]=c[f+((d&65535|g)<<2)>>2];return}else{g=i&3;if(g<<24>>24!=0){c[b>>2]=c[f+(((g|k)&255)<<2)>>2]}g=(i&255)>>>2&3;if(g<<24>>24!=0){c[b+4>>2]=c[f+(((g|k)&255)<<2)>>2]}g=(i&255)>>>4&3;if(g<<24>>24!=0){c[b+8>>2]=c[f+(((g|k)&255)<<2)>>2]}g=(i&255)>>>6;if(g<<24>>24!=0){c[b+12>>2]=c[f+(((g|k)&255)<<2)>>2]}g=j&3;if(g<<24>>24!=0){c[b+16>>2]=c[f+(((g|k)&255)<<2)>>2]}g=(j&255)>>>2&3;if(g<<24>>24!=0){c[b+20>>2]=c[f+(((g|k)&255)<<2)>>2]}g=(j&255)>>>4&3;if(g<<24>>24!=0){c[b+24>>2]=c[f+(((g|k)&255)<<2)>>2]}g=(j&255)>>>6;if(g<<24>>24==0){return}c[b+28>>2]=c[f+(((g|k)&255)<<2)>>2];return}}function aY(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=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;j=i;i=i+264|0;k=j|0;l=j+256|0;m=(e&255)+1|0;e=0;n=0;while(1){o=n<<2;p=(m-(d[f+(o|1)|0]|0)|0)>>>(((a[f+(o|3)|0]<<1&255)>>>3&1)>>>0);o=(p>>>0<8&1)+e|0;c[k+(n<<2)>>2]=p;q=n+1|0;if((q|0)<64&(o|0)<8){e=o;n=q}else{break}}if((q|0)<=0){i=j;return}q=l|0;e=l+4|0;m=n;n=p;while(1){p=m<<2;L248:do{if(n>>>0<8){o=d[f+(p|2)|0]|0;r=(a[f+(p|3)|0]<<1&255)<<8;c[q>>2]=g+(n<<2);c[e>>2]=g+(7-n<<2);s=o|r&26112|2048;o=d[f+p|0]|0;t=b+(o<<2)|0;if((r&4096)==0){aW(t,s,q,h);break}r=s&65535;u=c[l+((r>>>13&1)<<2)>>2]|0;v=r<<5&8160;w=d[u+(v|3)|0]|0;x=d[u+(v|2)|0]|0;y=d[u+(v|1)|0]|0;z=d[u+v|0]|0;v=(s&65535)>>>7&28;if((r&16384|0)!=0){r=0;s=x<<16|w<<24|y<<8|z;while(1){u=s&15;if(u<<24>>24!=0){A=h+(((u|v)&255)<<2)|0;u=r<<1;c[b+(u+o<<2)>>2]=c[A>>2];c[b+((u|1)+o<<2)>>2]=c[A>>2]}A=r+1|0;if((A|0)<8){r=A;s=s>>>4}else{break L248}}}s=v&255;r=w>>>4;if((r|0)!=0){A=h+((r|s)<<2)|0;c[t>>2]=c[A>>2];c[b+(o+1<<2)>>2]=c[A>>2]}A=z&15;r=w&15;if((r|0)!=0){u=h+((r|s)<<2)|0;c[b+(o+2<<2)>>2]=c[u>>2];c[b+(o+3<<2)>>2]=c[u>>2]}u=x>>>4;if((u|0)!=0){r=h+((u|s)<<2)|0;c[b+(o+4<<2)>>2]=c[r>>2];c[b+(o+5<<2)>>2]=c[r>>2]}r=x&15;if((r|0)!=0){u=h+((r|s)<<2)|0;c[b+(o+6<<2)>>2]=c[u>>2];c[b+(o+7<<2)>>2]=c[u>>2]}u=y>>>4;if((u|0)!=0){r=h+((u|s)<<2)|0;c[b+(o+8<<2)>>2]=c[r>>2];c[b+(o+9<<2)>>2]=c[r>>2]}r=y&15;if((r|0)!=0){u=h+((r|s)<<2)|0;c[b+(o+10<<2)>>2]=c[u>>2];c[b+(o+11<<2)>>2]=c[u>>2]}u=z>>>4;if((u|0)!=0){r=h+((u|s)<<2)|0;c[b+(o+12<<2)>>2]=c[r>>2];c[b+(o+13<<2)>>2]=c[r>>2]}if((A|0)==0){break}r=h+((A|s)<<2)|0;c[b+(o+14<<2)>>2]=c[r>>2];c[b+(o+15<<2)>>2]=c[r>>2]}}while(0);p=m-1|0;if((m|0)<=0){break}m=p;n=c[k+(p<<2)>>2]|0}i=j;return}function aZ(b,c,e,f,g,h,i){b=b|0;c=c|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=0;j=(8-(e&255)|0)%8&-1;k=(e<<24>>24!=0&1)+c&255;c=k&31;e=c&255;l=(j+256|0)-((k&31)<<3)|0;k=e;m=f+(e<<1)|0;n=b+(j<<2)|0;while(1){j=a[m+1|0]|0;o=(((j<<1&-32|j&15)&255)<<8|(d[m]|0))^h;if(o<<16>>16>=0){aX(n,o,g,i)}o=k+1|0;if((o|0)<32){k=o;m=m+2|0;n=n+32|0}else{break}}if(c<<24>>24==0){return}c=0;n=f;f=b+(l<<2)|0;while(1){l=((d[n+1|0]|0)<<8|(d[n]|0))^h;if(l<<16>>16>=0){aX(f,l,g,i)}l=c+1|0;if((l|0)<(e|0)){c=l;n=n+2|0;f=f+32|0}else{break}}return}function a_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a5((b&65535)+(a+8)|0,c|0,d&65535);return}function a$(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a5((b&65535)+(a+16392)|0,c|0,d&65535);return}function a0(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a5((b&65535)+(a+16648)|0,c|0,d&65535);return}function a1(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;if(h<<16>>16==0){return}i=e+16681|0;j=e+16680|0;k=e+16684|0;l=e+16688|0;m=e+16690|0;n=e+16692|0;o=e+16694|0;p=e+16695|0;e=f;f=g;g=h;while(1){h=e&65535;if((h|0)==0){a[i]=(d[f]|0)>>>3&1;a[j]=(d[f]|0)>>>2&1;c[k>>2]=a[f]&3}else if((h|0)==1){b[l>>1]=(d[f]|0)<<8&12288;b[m>>1]=(d[f]|0)<<8&8192}else if((h|0)==2){b[n>>1]=(d[f]|0)<<8&12288|2048}else if((h|0)==4){a[o]=a[f]|0}else if((h|0)==5){a[p]=a[f]|0}h=g-1&65535;if(h<<16>>16==0){break}else{e=e+1&65535;f=f+1|0;g=h}}return}function a2(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=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,H=0,I=0,J=0,K=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,_=0,$=0,aa=0,ab=0,ac=0,ad=0,ae=0,af=0,ag=0,ah=0,ai=0,aj=0,ak=0,an=0,ap=0,as=0,at=0,au=0,av=0,aw=0,ax=0,ay=0,az=0,aA=0,aB=0,aC=0,aD=0,aE=0,aF=0,aG=0,aH=0,aI=0,aJ=0,aK=0,aL=0;do{if(a>>>0<245){if(a>>>0<11){b=16}else{b=a+11&-8}d=b>>>3;e=c[24]|0;f=e>>>(d>>>0);if((f&3|0)!=0){g=(f&1^1)+d|0;h=g<<1;i=136+(h<<2)|0;j=136+(h+2<<2)|0;h=c[j>>2]|0;k=h+8|0;l=c[k>>2]|0;do{if((i|0)==(l|0)){c[24]=e&(1<<g^-1)}else{if(l>>>0<(c[28]|0)>>>0){aq();return 0;return 0}m=l+12|0;if((c[m>>2]|0)==(h|0)){c[m>>2]=i;c[j>>2]=l;break}else{aq();return 0;return 0}}}while(0);l=g<<3;c[h+4>>2]=l|3;j=h+(l|4)|0;c[j>>2]=c[j>>2]|1;n=k;return n|0}if(b>>>0<=(c[26]|0)>>>0){o=b;break}if((f|0)!=0){j=2<<d;l=f<<d&(j|-j);j=(l&-l)-1|0;l=j>>>12&16;i=j>>>(l>>>0);j=i>>>5&8;m=i>>>(j>>>0);i=m>>>2&4;p=m>>>(i>>>0);m=p>>>1&2;q=p>>>(m>>>0);p=q>>>1&1;r=(j|l|i|m|p)+(q>>>(p>>>0))|0;p=r<<1;q=136+(p<<2)|0;m=136+(p+2<<2)|0;p=c[m>>2]|0;i=p+8|0;l=c[i>>2]|0;do{if((q|0)==(l|0)){c[24]=e&(1<<r^-1)}else{if(l>>>0<(c[28]|0)>>>0){aq();return 0;return 0}j=l+12|0;if((c[j>>2]|0)==(p|0)){c[j>>2]=q;c[m>>2]=l;break}else{aq();return 0;return 0}}}while(0);l=r<<3;m=l-b|0;c[p+4>>2]=b|3;q=p;e=q+b|0;c[q+(b|4)>>2]=m|1;c[q+l>>2]=m;l=c[26]|0;if((l|0)!=0){q=c[29]|0;d=l>>>3;l=d<<1;f=136+(l<<2)|0;k=c[24]|0;h=1<<d;do{if((k&h|0)==0){c[24]=k|h;s=f;t=136+(l+2<<2)|0}else{d=136+(l+2<<2)|0;g=c[d>>2]|0;if(g>>>0>=(c[28]|0)>>>0){s=g;t=d;break}aq();return 0;return 0}}while(0);c[t>>2]=q;c[s+12>>2]=q;c[q+8>>2]=s;c[q+12>>2]=f}c[26]=m;c[29]=e;n=i;return n|0}l=c[25]|0;if((l|0)==0){o=b;break}h=(l&-l)-1|0;l=h>>>12&16;k=h>>>(l>>>0);h=k>>>5&8;p=k>>>(h>>>0);k=p>>>2&4;r=p>>>(k>>>0);p=r>>>1&2;d=r>>>(p>>>0);r=d>>>1&1;g=c[400+((h|l|k|p|r)+(d>>>(r>>>0))<<2)>>2]|0;r=g;d=g;p=(c[g+4>>2]&-8)-b|0;while(1){g=c[r+16>>2]|0;if((g|0)==0){k=c[r+20>>2]|0;if((k|0)==0){break}else{u=k}}else{u=g}g=(c[u+4>>2]&-8)-b|0;k=g>>>0<p>>>0;r=u;d=k?u:d;p=k?g:p}r=d;i=c[28]|0;if(r>>>0<i>>>0){aq();return 0;return 0}e=r+b|0;m=e;if(r>>>0>=e>>>0){aq();return 0;return 0}e=c[d+24>>2]|0;f=c[d+12>>2]|0;do{if((f|0)==(d|0)){q=d+20|0;g=c[q>>2]|0;if((g|0)==0){k=d+16|0;l=c[k>>2]|0;if((l|0)==0){v=0;break}else{w=l;x=k}}else{w=g;x=q}while(1){q=w+20|0;g=c[q>>2]|0;if((g|0)!=0){w=g;x=q;continue}q=w+16|0;g=c[q>>2]|0;if((g|0)==0){break}else{w=g;x=q}}if(x>>>0<i>>>0){aq();return 0;return 0}else{c[x>>2]=0;v=w;break}}else{q=c[d+8>>2]|0;if(q>>>0<i>>>0){aq();return 0;return 0}g=q+12|0;if((c[g>>2]|0)!=(d|0)){aq();return 0;return 0}k=f+8|0;if((c[k>>2]|0)==(d|0)){c[g>>2]=f;c[k>>2]=q;v=f;break}else{aq();return 0;return 0}}}while(0);L397:do{if((e|0)!=0){f=d+28|0;i=400+(c[f>>2]<<2)|0;do{if((d|0)==(c[i>>2]|0)){c[i>>2]=v;if((v|0)!=0){break}c[25]=c[25]&(1<<c[f>>2]^-1);break L397}else{if(e>>>0<(c[28]|0)>>>0){aq();return 0;return 0}q=e+16|0;if((c[q>>2]|0)==(d|0)){c[q>>2]=v}else{c[e+20>>2]=v}if((v|0)==0){break L397}}}while(0);if(v>>>0<(c[28]|0)>>>0){aq();return 0;return 0}c[v+24>>2]=e;f=c[d+16>>2]|0;do{if((f|0)!=0){if(f>>>0<(c[28]|0)>>>0){aq();return 0;return 0}else{c[v+16>>2]=f;c[f+24>>2]=v;break}}}while(0);f=c[d+20>>2]|0;if((f|0)==0){break}if(f>>>0<(c[28]|0)>>>0){aq();return 0;return 0}else{c[v+20>>2]=f;c[f+24>>2]=v;break}}}while(0);if(p>>>0<16){e=p+b|0;c[d+4>>2]=e|3;f=r+(e+4|0)|0;c[f>>2]=c[f>>2]|1}else{c[d+4>>2]=b|3;c[r+(b|4)>>2]=p|1;c[r+(p+b|0)>>2]=p;f=c[26]|0;if((f|0)!=0){e=c[29]|0;i=f>>>3;f=i<<1;q=136+(f<<2)|0;k=c[24]|0;g=1<<i;do{if((k&g|0)==0){c[24]=k|g;y=q;z=136+(f+2<<2)|0}else{i=136+(f+2<<2)|0;l=c[i>>2]|0;if(l>>>0>=(c[28]|0)>>>0){y=l;z=i;break}aq();return 0;return 0}}while(0);c[z>>2]=e;c[y+12>>2]=e;c[e+8>>2]=y;c[e+12>>2]=q}c[26]=p;c[29]=m}f=d+8|0;if((f|0)==0){o=b;break}else{n=f}return n|0}else{if(a>>>0>4294967231){o=-1;break}f=a+11|0;g=f&-8;k=c[25]|0;if((k|0)==0){o=g;break}r=-g|0;i=f>>>8;do{if((i|0)==0){A=0}else{if(g>>>0>16777215){A=31;break}f=(i+1048320|0)>>>16&8;l=i<<f;h=(l+520192|0)>>>16&4;j=l<<h;l=(j+245760|0)>>>16&2;B=(14-(h|f|l)|0)+(j<<l>>>15)|0;A=g>>>((B+7|0)>>>0)&1|B<<1}}while(0);i=c[400+(A<<2)>>2]|0;L445:do{if((i|0)==0){C=0;D=r;E=0}else{if((A|0)==31){F=0}else{F=25-(A>>>1)|0}d=0;m=r;p=i;q=g<<F;e=0;while(1){B=c[p+4>>2]&-8;l=B-g|0;if(l>>>0<m>>>0){if((B|0)==(g|0)){C=p;D=l;E=p;break L445}else{G=p;H=l}}else{G=d;H=m}l=c[p+20>>2]|0;B=c[p+16+(q>>>31<<2)>>2]|0;j=(l|0)==0|(l|0)==(B|0)?e:l;if((B|0)==0){C=G;D=H;E=j;break}else{d=G;m=H;p=B;q=q<<1;e=j}}}}while(0);if((E|0)==0&(C|0)==0){i=2<<A;r=k&(i|-i);if((r|0)==0){o=g;break}i=(r&-r)-1|0;r=i>>>12&16;e=i>>>(r>>>0);i=e>>>5&8;q=e>>>(i>>>0);e=q>>>2&4;p=q>>>(e>>>0);q=p>>>1&2;m=p>>>(q>>>0);p=m>>>1&1;I=c[400+((i|r|e|q|p)+(m>>>(p>>>0))<<2)>>2]|0}else{I=E}if((I|0)==0){J=D;K=C}else{p=I;m=D;q=C;while(1){e=(c[p+4>>2]&-8)-g|0;r=e>>>0<m>>>0;i=r?e:m;e=r?p:q;r=c[p+16>>2]|0;if((r|0)!=0){p=r;m=i;q=e;continue}r=c[p+20>>2]|0;if((r|0)==0){J=i;K=e;break}else{p=r;m=i;q=e}}}if((K|0)==0){o=g;break}if(J>>>0>=((c[26]|0)-g|0)>>>0){o=g;break}q=K;m=c[28]|0;if(q>>>0<m>>>0){aq();return 0;return 0}p=q+g|0;k=p;if(q>>>0>=p>>>0){aq();return 0;return 0}e=c[K+24>>2]|0;i=c[K+12>>2]|0;do{if((i|0)==(K|0)){r=K+20|0;d=c[r>>2]|0;if((d|0)==0){j=K+16|0;B=c[j>>2]|0;if((B|0)==0){L=0;break}else{M=B;N=j}}else{M=d;N=r}while(1){r=M+20|0;d=c[r>>2]|0;if((d|0)!=0){M=d;N=r;continue}r=M+16|0;d=c[r>>2]|0;if((d|0)==0){break}else{M=d;N=r}}if(N>>>0<m>>>0){aq();return 0;return 0}else{c[N>>2]=0;L=M;break}}else{r=c[K+8>>2]|0;if(r>>>0<m>>>0){aq();return 0;return 0}d=r+12|0;if((c[d>>2]|0)!=(K|0)){aq();return 0;return 0}j=i+8|0;if((c[j>>2]|0)==(K|0)){c[d>>2]=i;c[j>>2]=r;L=i;break}else{aq();return 0;return 0}}}while(0);L495:do{if((e|0)!=0){i=K+28|0;m=400+(c[i>>2]<<2)|0;do{if((K|0)==(c[m>>2]|0)){c[m>>2]=L;if((L|0)!=0){break}c[25]=c[25]&(1<<c[i>>2]^-1);break L495}else{if(e>>>0<(c[28]|0)>>>0){aq();return 0;return 0}r=e+16|0;if((c[r>>2]|0)==(K|0)){c[r>>2]=L}else{c[e+20>>2]=L}if((L|0)==0){break L495}}}while(0);if(L>>>0<(c[28]|0)>>>0){aq();return 0;return 0}c[L+24>>2]=e;i=c[K+16>>2]|0;do{if((i|0)!=0){if(i>>>0<(c[28]|0)>>>0){aq();return 0;return 0}else{c[L+16>>2]=i;c[i+24>>2]=L;break}}}while(0);i=c[K+20>>2]|0;if((i|0)==0){break}if(i>>>0<(c[28]|0)>>>0){aq();return 0;return 0}else{c[L+20>>2]=i;c[i+24>>2]=L;break}}}while(0);do{if(J>>>0<16){e=J+g|0;c[K+4>>2]=e|3;i=q+(e+4|0)|0;c[i>>2]=c[i>>2]|1}else{c[K+4>>2]=g|3;c[q+(g|4)>>2]=J|1;c[q+(J+g|0)>>2]=J;i=J>>>3;if(J>>>0<256){e=i<<1;m=136+(e<<2)|0;r=c[24]|0;j=1<<i;do{if((r&j|0)==0){c[24]=r|j;O=m;P=136+(e+2<<2)|0}else{i=136+(e+2<<2)|0;d=c[i>>2]|0;if(d>>>0>=(c[28]|0)>>>0){O=d;P=i;break}aq();return 0;return 0}}while(0);c[P>>2]=k;c[O+12>>2]=k;c[q+(g+8|0)>>2]=O;c[q+(g+12|0)>>2]=m;break}e=p;j=J>>>8;do{if((j|0)==0){Q=0}else{if(J>>>0>16777215){Q=31;break}r=(j+1048320|0)>>>16&8;i=j<<r;d=(i+520192|0)>>>16&4;B=i<<d;i=(B+245760|0)>>>16&2;l=(14-(d|r|i)|0)+(B<<i>>>15)|0;Q=J>>>((l+7|0)>>>0)&1|l<<1}}while(0);j=400+(Q<<2)|0;c[q+(g+28|0)>>2]=Q;c[q+(g+20|0)>>2]=0;c[q+(g+16|0)>>2]=0;m=c[25]|0;l=1<<Q;if((m&l|0)==0){c[25]=m|l;c[j>>2]=e;c[q+(g+24|0)>>2]=j;c[q+(g+12|0)>>2]=e;c[q+(g+8|0)>>2]=e;break}if((Q|0)==31){R=0}else{R=25-(Q>>>1)|0}l=J<<R;m=c[j>>2]|0;while(1){if((c[m+4>>2]&-8|0)==(J|0)){break}S=m+16+(l>>>31<<2)|0;j=c[S>>2]|0;if((j|0)==0){T=392;break}else{l=l<<1;m=j}}if((T|0)==392){if(S>>>0<(c[28]|0)>>>0){aq();return 0;return 0}else{c[S>>2]=e;c[q+(g+24|0)>>2]=m;c[q+(g+12|0)>>2]=e;c[q+(g+8|0)>>2]=e;break}}l=m+8|0;j=c[l>>2]|0;i=c[28]|0;if(m>>>0<i>>>0){aq();return 0;return 0}if(j>>>0<i>>>0){aq();return 0;return 0}else{c[j+12>>2]=e;c[l>>2]=e;c[q+(g+8|0)>>2]=j;c[q+(g+12|0)>>2]=m;c[q+(g+24|0)>>2]=0;break}}}while(0);q=K+8|0;if((q|0)==0){o=g;break}else{n=q}return n|0}}while(0);K=c[26]|0;if(o>>>0<=K>>>0){S=K-o|0;J=c[29]|0;if(S>>>0>15){R=J;c[29]=R+o;c[26]=S;c[R+(o+4|0)>>2]=S|1;c[R+K>>2]=S;c[J+4>>2]=o|3}else{c[26]=0;c[29]=0;c[J+4>>2]=K|3;S=J+(K+4|0)|0;c[S>>2]=c[S>>2]|1}n=J+8|0;return n|0}J=c[27]|0;if(o>>>0<J>>>0){S=J-o|0;c[27]=S;J=c[30]|0;K=J;c[30]=K+o;c[K+(o+4|0)>>2]=S|1;c[J+4>>2]=o|3;n=J+8|0;return n|0}do{if((c[4]|0)==0){J=am(8)|0;if((J-1&J|0)==0){c[6]=J;c[5]=J;c[7]=-1;c[8]=2097152;c[9]=0;c[135]=0;c[4]=ar(0)&-16^1431655768;break}else{aq();return 0;return 0}}}while(0);J=o+48|0;S=c[6]|0;K=o+47|0;R=S+K|0;Q=-S|0;S=R&Q;if(S>>>0<=o>>>0){n=0;return n|0}O=c[134]|0;do{if((O|0)!=0){P=c[132]|0;L=P+S|0;if(L>>>0<=P>>>0|L>>>0>O>>>0){n=0}else{break}return n|0}}while(0);L587:do{if((c[135]&4|0)==0){O=c[30]|0;L589:do{if((O|0)==0){T=422}else{L=O;P=544;while(1){U=P|0;M=c[U>>2]|0;if(M>>>0<=L>>>0){V=P+4|0;if((M+(c[V>>2]|0)|0)>>>0>L>>>0){break}}M=c[P+8>>2]|0;if((M|0)==0){T=422;break L589}else{P=M}}if((P|0)==0){T=422;break}L=R-(c[27]|0)&Q;if(L>>>0>=2147483647){W=0;break}m=al(L|0)|0;e=(m|0)==((c[U>>2]|0)+(c[V>>2]|0)|0);X=e?m:-1;Y=e?L:0;Z=m;_=L;T=431}}while(0);do{if((T|0)==422){O=al(0)|0;if((O|0)==-1){W=0;break}g=O;L=c[5]|0;m=L-1|0;if((m&g|0)==0){$=S}else{$=(S-g|0)+(m+g&-L)|0}L=c[132]|0;g=L+$|0;if(!($>>>0>o>>>0&$>>>0<2147483647)){W=0;break}m=c[134]|0;if((m|0)!=0){if(g>>>0<=L>>>0|g>>>0>m>>>0){W=0;break}}m=al($|0)|0;g=(m|0)==(O|0);X=g?O:-1;Y=g?$:0;Z=m;_=$;T=431}}while(0);L609:do{if((T|0)==431){m=-_|0;if((X|0)!=-1){aa=Y;ab=X;T=442;break L587}do{if((Z|0)!=-1&_>>>0<2147483647&_>>>0<J>>>0){g=c[6]|0;O=(K-_|0)+g&-g;if(O>>>0>=2147483647){ac=_;break}if((al(O|0)|0)==-1){al(m|0);W=Y;break L609}else{ac=O+_|0;break}}else{ac=_}}while(0);if((Z|0)==-1){W=Y}else{aa=ac;ab=Z;T=442;break L587}}}while(0);c[135]=c[135]|4;ad=W;T=439}else{ad=0;T=439}}while(0);do{if((T|0)==439){if(S>>>0>=2147483647){break}W=al(S|0)|0;Z=al(0)|0;if(!((Z|0)!=-1&(W|0)!=-1&W>>>0<Z>>>0)){break}ac=Z-W|0;Z=ac>>>0>(o+40|0)>>>0;Y=Z?W:-1;if((Y|0)!=-1){aa=Z?ac:ad;ab=Y;T=442}}}while(0);do{if((T|0)==442){ad=(c[132]|0)+aa|0;c[132]=ad;if(ad>>>0>(c[133]|0)>>>0){c[133]=ad}ad=c[30]|0;L629:do{if((ad|0)==0){S=c[28]|0;if((S|0)==0|ab>>>0<S>>>0){c[28]=ab}c[136]=ab;c[137]=aa;c[139]=0;c[33]=c[4];c[32]=-1;S=0;do{Y=S<<1;ac=136+(Y<<2)|0;c[136+(Y+3<<2)>>2]=ac;c[136+(Y+2<<2)>>2]=ac;S=S+1|0;}while(S>>>0<32);S=ab+8|0;if((S&7|0)==0){ae=0}else{ae=-S&7}S=(aa-40|0)-ae|0;c[30]=ab+ae;c[27]=S;c[ab+(ae+4|0)>>2]=S|1;c[ab+(aa-36|0)>>2]=40;c[31]=c[8]}else{S=544;while(1){af=c[S>>2]|0;ag=S+4|0;ah=c[ag>>2]|0;if((ab|0)==(af+ah|0)){T=454;break}ac=c[S+8>>2]|0;if((ac|0)==0){break}else{S=ac}}do{if((T|0)==454){if((c[S+12>>2]&8|0)!=0){break}ac=ad;if(!(ac>>>0>=af>>>0&ac>>>0<ab>>>0)){break}c[ag>>2]=ah+aa;ac=c[30]|0;Y=(c[27]|0)+aa|0;Z=ac;W=ac+8|0;if((W&7|0)==0){ai=0}else{ai=-W&7}W=Y-ai|0;c[30]=Z+ai;c[27]=W;c[Z+(ai+4|0)>>2]=W|1;c[Z+(Y+4|0)>>2]=40;c[31]=c[8];break L629}}while(0);if(ab>>>0<(c[28]|0)>>>0){c[28]=ab}S=ab+aa|0;Y=544;while(1){aj=Y|0;if((c[aj>>2]|0)==(S|0)){T=464;break}Z=c[Y+8>>2]|0;if((Z|0)==0){break}else{Y=Z}}do{if((T|0)==464){if((c[Y+12>>2]&8|0)!=0){break}c[aj>>2]=ab;S=Y+4|0;c[S>>2]=(c[S>>2]|0)+aa;S=ab+8|0;if((S&7|0)==0){ak=0}else{ak=-S&7}S=ab+(aa+8|0)|0;if((S&7|0)==0){an=0}else{an=-S&7}S=ab+(an+aa|0)|0;Z=S;W=ak+o|0;ac=ab+W|0;_=ac;K=(S-(ab+ak|0)|0)-o|0;c[ab+(ak+4|0)>>2]=o|3;do{if((Z|0)==(c[30]|0)){J=(c[27]|0)+K|0;c[27]=J;c[30]=_;c[ab+(W+4|0)>>2]=J|1}else{if((Z|0)==(c[29]|0)){J=(c[26]|0)+K|0;c[26]=J;c[29]=_;c[ab+(W+4|0)>>2]=J|1;c[ab+(J+W|0)>>2]=J;break}J=aa+4|0;X=c[ab+(J+an|0)>>2]|0;if((X&3|0)==1){$=X&-8;V=X>>>3;L674:do{if(X>>>0<256){U=c[ab+((an|8)+aa|0)>>2]|0;Q=c[ab+((aa+12|0)+an|0)>>2]|0;R=136+(V<<1<<2)|0;do{if((U|0)!=(R|0)){if(U>>>0<(c[28]|0)>>>0){aq();return 0;return 0}if((c[U+12>>2]|0)==(Z|0)){break}aq();return 0;return 0}}while(0);if((Q|0)==(U|0)){c[24]=c[24]&(1<<V^-1);break}do{if((Q|0)==(R|0)){ap=Q+8|0}else{if(Q>>>0<(c[28]|0)>>>0){aq();return 0;return 0}m=Q+8|0;if((c[m>>2]|0)==(Z|0)){ap=m;break}aq();return 0;return 0}}while(0);c[U+12>>2]=Q;c[ap>>2]=U}else{R=S;m=c[ab+((an|24)+aa|0)>>2]|0;P=c[ab+((aa+12|0)+an|0)>>2]|0;do{if((P|0)==(R|0)){O=an|16;g=ab+(J+O|0)|0;L=c[g>>2]|0;if((L|0)==0){e=ab+(O+aa|0)|0;O=c[e>>2]|0;if((O|0)==0){as=0;break}else{at=O;au=e}}else{at=L;au=g}while(1){g=at+20|0;L=c[g>>2]|0;if((L|0)!=0){at=L;au=g;continue}g=at+16|0;L=c[g>>2]|0;if((L|0)==0){break}else{at=L;au=g}}if(au>>>0<(c[28]|0)>>>0){aq();return 0;return 0}else{c[au>>2]=0;as=at;break}}else{g=c[ab+((an|8)+aa|0)>>2]|0;if(g>>>0<(c[28]|0)>>>0){aq();return 0;return 0}L=g+12|0;if((c[L>>2]|0)!=(R|0)){aq();return 0;return 0}e=P+8|0;if((c[e>>2]|0)==(R|0)){c[L>>2]=P;c[e>>2]=g;as=P;break}else{aq();return 0;return 0}}}while(0);if((m|0)==0){break}P=ab+((aa+28|0)+an|0)|0;U=400+(c[P>>2]<<2)|0;do{if((R|0)==(c[U>>2]|0)){c[U>>2]=as;if((as|0)!=0){break}c[25]=c[25]&(1<<c[P>>2]^-1);break L674}else{if(m>>>0<(c[28]|0)>>>0){aq();return 0;return 0}Q=m+16|0;if((c[Q>>2]|0)==(R|0)){c[Q>>2]=as}else{c[m+20>>2]=as}if((as|0)==0){break L674}}}while(0);if(as>>>0<(c[28]|0)>>>0){aq();return 0;return 0}c[as+24>>2]=m;R=an|16;P=c[ab+(R+aa|0)>>2]|0;do{if((P|0)!=0){if(P>>>0<(c[28]|0)>>>0){aq();return 0;return 0}else{c[as+16>>2]=P;c[P+24>>2]=as;break}}}while(0);P=c[ab+(J+R|0)>>2]|0;if((P|0)==0){break}if(P>>>0<(c[28]|0)>>>0){aq();return 0;return 0}else{c[as+20>>2]=P;c[P+24>>2]=as;break}}}while(0);av=ab+(($|an)+aa|0)|0;aw=$+K|0}else{av=Z;aw=K}J=av+4|0;c[J>>2]=c[J>>2]&-2;c[ab+(W+4|0)>>2]=aw|1;c[ab+(aw+W|0)>>2]=aw;J=aw>>>3;if(aw>>>0<256){V=J<<1;X=136+(V<<2)|0;P=c[24]|0;m=1<<J;do{if((P&m|0)==0){c[24]=P|m;ax=X;ay=136+(V+2<<2)|0}else{J=136+(V+2<<2)|0;U=c[J>>2]|0;if(U>>>0>=(c[28]|0)>>>0){ax=U;ay=J;break}aq();return 0;return 0}}while(0);c[ay>>2]=_;c[ax+12>>2]=_;c[ab+(W+8|0)>>2]=ax;c[ab+(W+12|0)>>2]=X;break}V=ac;m=aw>>>8;do{if((m|0)==0){az=0}else{if(aw>>>0>16777215){az=31;break}P=(m+1048320|0)>>>16&8;$=m<<P;J=($+520192|0)>>>16&4;U=$<<J;$=(U+245760|0)>>>16&2;Q=(14-(J|P|$)|0)+(U<<$>>>15)|0;az=aw>>>((Q+7|0)>>>0)&1|Q<<1}}while(0);m=400+(az<<2)|0;c[ab+(W+28|0)>>2]=az;c[ab+(W+20|0)>>2]=0;c[ab+(W+16|0)>>2]=0;X=c[25]|0;Q=1<<az;if((X&Q|0)==0){c[25]=X|Q;c[m>>2]=V;c[ab+(W+24|0)>>2]=m;c[ab+(W+12|0)>>2]=V;c[ab+(W+8|0)>>2]=V;break}if((az|0)==31){aA=0}else{aA=25-(az>>>1)|0}Q=aw<<aA;X=c[m>>2]|0;while(1){if((c[X+4>>2]&-8|0)==(aw|0)){break}aB=X+16+(Q>>>31<<2)|0;m=c[aB>>2]|0;if((m|0)==0){T=537;break}else{Q=Q<<1;X=m}}if((T|0)==537){if(aB>>>0<(c[28]|0)>>>0){aq();return 0;return 0}else{c[aB>>2]=V;c[ab+(W+24|0)>>2]=X;c[ab+(W+12|0)>>2]=V;c[ab+(W+8|0)>>2]=V;break}}Q=X+8|0;m=c[Q>>2]|0;$=c[28]|0;if(X>>>0<$>>>0){aq();return 0;return 0}if(m>>>0<$>>>0){aq();return 0;return 0}else{c[m+12>>2]=V;c[Q>>2]=V;c[ab+(W+8|0)>>2]=m;c[ab+(W+12|0)>>2]=X;c[ab+(W+24|0)>>2]=0;break}}}while(0);n=ab+(ak|8)|0;return n|0}}while(0);Y=ad;W=544;while(1){aC=c[W>>2]|0;if(aC>>>0<=Y>>>0){aD=c[W+4>>2]|0;aE=aC+aD|0;if(aE>>>0>Y>>>0){break}}W=c[W+8>>2]|0}W=aC+(aD-39|0)|0;if((W&7|0)==0){aF=0}else{aF=-W&7}W=aC+((aD-47|0)+aF|0)|0;ac=W>>>0<(ad+16|0)>>>0?Y:W;W=ac+8|0;_=ab+8|0;if((_&7|0)==0){aG=0}else{aG=-_&7}_=(aa-40|0)-aG|0;c[30]=ab+aG;c[27]=_;c[ab+(aG+4|0)>>2]=_|1;c[ab+(aa-36|0)>>2]=40;c[31]=c[8];c[ac+4>>2]=27;c[W>>2]=c[136];c[W+4>>2]=c[548>>2];c[W+8>>2]=c[552>>2];c[W+12>>2]=c[556>>2];c[136]=ab;c[137]=aa;c[139]=0;c[138]=W;W=ac+28|0;c[W>>2]=7;if((ac+32|0)>>>0<aE>>>0){_=W;while(1){W=_+4|0;c[W>>2]=7;if((_+8|0)>>>0<aE>>>0){_=W}else{break}}}if((ac|0)==(Y|0)){break}_=ac-ad|0;W=Y+(_+4|0)|0;c[W>>2]=c[W>>2]&-2;c[ad+4>>2]=_|1;c[Y+_>>2]=_;W=_>>>3;if(_>>>0<256){K=W<<1;Z=136+(K<<2)|0;S=c[24]|0;m=1<<W;do{if((S&m|0)==0){c[24]=S|m;aH=Z;aI=136+(K+2<<2)|0}else{W=136+(K+2<<2)|0;Q=c[W>>2]|0;if(Q>>>0>=(c[28]|0)>>>0){aH=Q;aI=W;break}aq();return 0;return 0}}while(0);c[aI>>2]=ad;c[aH+12>>2]=ad;c[ad+8>>2]=aH;c[ad+12>>2]=Z;break}K=ad;m=_>>>8;do{if((m|0)==0){aJ=0}else{if(_>>>0>16777215){aJ=31;break}S=(m+1048320|0)>>>16&8;Y=m<<S;ac=(Y+520192|0)>>>16&4;W=Y<<ac;Y=(W+245760|0)>>>16&2;Q=(14-(ac|S|Y)|0)+(W<<Y>>>15)|0;aJ=_>>>((Q+7|0)>>>0)&1|Q<<1}}while(0);m=400+(aJ<<2)|0;c[ad+28>>2]=aJ;c[ad+20>>2]=0;c[ad+16>>2]=0;Z=c[25]|0;Q=1<<aJ;if((Z&Q|0)==0){c[25]=Z|Q;c[m>>2]=K;c[ad+24>>2]=m;c[ad+12>>2]=ad;c[ad+8>>2]=ad;break}if((aJ|0)==31){aK=0}else{aK=25-(aJ>>>1)|0}Q=_<<aK;Z=c[m>>2]|0;while(1){if((c[Z+4>>2]&-8|0)==(_|0)){break}aL=Z+16+(Q>>>31<<2)|0;m=c[aL>>2]|0;if((m|0)==0){T=572;break}else{Q=Q<<1;Z=m}}if((T|0)==572){if(aL>>>0<(c[28]|0)>>>0){aq();return 0;return 0}else{c[aL>>2]=K;c[ad+24>>2]=Z;c[ad+12>>2]=ad;c[ad+8>>2]=ad;break}}Q=Z+8|0;_=c[Q>>2]|0;m=c[28]|0;if(Z>>>0<m>>>0){aq();return 0;return 0}if(_>>>0<m>>>0){aq();return 0;return 0}else{c[_+12>>2]=K;c[Q>>2]=K;c[ad+8>>2]=_;c[ad+12>>2]=Z;c[ad+24>>2]=0;break}}}while(0);ad=c[27]|0;if(ad>>>0<=o>>>0){break}_=ad-o|0;c[27]=_;ad=c[30]|0;Q=ad;c[30]=Q+o;c[Q+(o+4|0)>>2]=_|1;c[ad+4>>2]=o|3;n=ad+8|0;return n|0}}while(0);c[ao()>>2]=12;n=0;return n|0}function a3(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=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,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0;if((a|0)==0){return}b=a-8|0;d=b;e=c[28]|0;if(b>>>0<e>>>0){aq()}f=c[a-4>>2]|0;g=f&3;if((g|0)==1){aq()}h=f&-8;i=a+(h-8|0)|0;j=i;L846:do{if((f&1|0)==0){k=c[b>>2]|0;if((g|0)==0){return}l=-8-k|0;m=a+l|0;n=m;o=k+h|0;if(m>>>0<e>>>0){aq()}if((n|0)==(c[29]|0)){p=a+(h-4|0)|0;if((c[p>>2]&3|0)!=3){q=n;r=o;break}c[26]=o;c[p>>2]=c[p>>2]&-2;c[a+(l+4|0)>>2]=o|1;c[i>>2]=o;return}p=k>>>3;if(k>>>0<256){k=c[a+(l+8|0)>>2]|0;s=c[a+(l+12|0)>>2]|0;t=136+(p<<1<<2)|0;do{if((k|0)!=(t|0)){if(k>>>0<e>>>0){aq()}if((c[k+12>>2]|0)==(n|0)){break}aq()}}while(0);if((s|0)==(k|0)){c[24]=c[24]&(1<<p^-1);q=n;r=o;break}do{if((s|0)==(t|0)){u=s+8|0}else{if(s>>>0<e>>>0){aq()}v=s+8|0;if((c[v>>2]|0)==(n|0)){u=v;break}aq()}}while(0);c[k+12>>2]=s;c[u>>2]=k;q=n;r=o;break}t=m;p=c[a+(l+24|0)>>2]|0;v=c[a+(l+12|0)>>2]|0;do{if((v|0)==(t|0)){w=a+(l+20|0)|0;x=c[w>>2]|0;if((x|0)==0){y=a+(l+16|0)|0;z=c[y>>2]|0;if((z|0)==0){A=0;break}else{B=z;C=y}}else{B=x;C=w}while(1){w=B+20|0;x=c[w>>2]|0;if((x|0)!=0){B=x;C=w;continue}w=B+16|0;x=c[w>>2]|0;if((x|0)==0){break}else{B=x;C=w}}if(C>>>0<e>>>0){aq()}else{c[C>>2]=0;A=B;break}}else{w=c[a+(l+8|0)>>2]|0;if(w>>>0<e>>>0){aq()}x=w+12|0;if((c[x>>2]|0)!=(t|0)){aq()}y=v+8|0;if((c[y>>2]|0)==(t|0)){c[x>>2]=v;c[y>>2]=w;A=v;break}else{aq()}}}while(0);if((p|0)==0){q=n;r=o;break}v=a+(l+28|0)|0;m=400+(c[v>>2]<<2)|0;do{if((t|0)==(c[m>>2]|0)){c[m>>2]=A;if((A|0)!=0){break}c[25]=c[25]&(1<<c[v>>2]^-1);q=n;r=o;break L846}else{if(p>>>0<(c[28]|0)>>>0){aq()}k=p+16|0;if((c[k>>2]|0)==(t|0)){c[k>>2]=A}else{c[p+20>>2]=A}if((A|0)==0){q=n;r=o;break L846}}}while(0);if(A>>>0<(c[28]|0)>>>0){aq()}c[A+24>>2]=p;t=c[a+(l+16|0)>>2]|0;do{if((t|0)!=0){if(t>>>0<(c[28]|0)>>>0){aq()}else{c[A+16>>2]=t;c[t+24>>2]=A;break}}}while(0);t=c[a+(l+20|0)>>2]|0;if((t|0)==0){q=n;r=o;break}if(t>>>0<(c[28]|0)>>>0){aq()}else{c[A+20>>2]=t;c[t+24>>2]=A;q=n;r=o;break}}else{q=d;r=h}}while(0);d=q;if(d>>>0>=i>>>0){aq()}A=a+(h-4|0)|0;e=c[A>>2]|0;if((e&1|0)==0){aq()}do{if((e&2|0)==0){if((j|0)==(c[30]|0)){B=(c[27]|0)+r|0;c[27]=B;c[30]=q;c[q+4>>2]=B|1;if((q|0)==(c[29]|0)){c[29]=0;c[26]=0}if(B>>>0<=(c[31]|0)>>>0){return}a4(0);return}if((j|0)==(c[29]|0)){B=(c[26]|0)+r|0;c[26]=B;c[29]=q;c[q+4>>2]=B|1;c[d+B>>2]=B;return}B=(e&-8)+r|0;C=e>>>3;L951:do{if(e>>>0<256){u=c[a+h>>2]|0;g=c[a+(h|4)>>2]|0;b=136+(C<<1<<2)|0;do{if((u|0)!=(b|0)){if(u>>>0<(c[28]|0)>>>0){aq()}if((c[u+12>>2]|0)==(j|0)){break}aq()}}while(0);if((g|0)==(u|0)){c[24]=c[24]&(1<<C^-1);break}do{if((g|0)==(b|0)){D=g+8|0}else{if(g>>>0<(c[28]|0)>>>0){aq()}f=g+8|0;if((c[f>>2]|0)==(j|0)){D=f;break}aq()}}while(0);c[u+12>>2]=g;c[D>>2]=u}else{b=i;f=c[a+(h+16|0)>>2]|0;t=c[a+(h|4)>>2]|0;do{if((t|0)==(b|0)){p=a+(h+12|0)|0;v=c[p>>2]|0;if((v|0)==0){m=a+(h+8|0)|0;k=c[m>>2]|0;if((k|0)==0){E=0;break}else{F=k;G=m}}else{F=v;G=p}while(1){p=F+20|0;v=c[p>>2]|0;if((v|0)!=0){F=v;G=p;continue}p=F+16|0;v=c[p>>2]|0;if((v|0)==0){break}else{F=v;G=p}}if(G>>>0<(c[28]|0)>>>0){aq()}else{c[G>>2]=0;E=F;break}}else{p=c[a+h>>2]|0;if(p>>>0<(c[28]|0)>>>0){aq()}v=p+12|0;if((c[v>>2]|0)!=(b|0)){aq()}m=t+8|0;if((c[m>>2]|0)==(b|0)){c[v>>2]=t;c[m>>2]=p;E=t;break}else{aq()}}}while(0);if((f|0)==0){break}t=a+(h+20|0)|0;u=400+(c[t>>2]<<2)|0;do{if((b|0)==(c[u>>2]|0)){c[u>>2]=E;if((E|0)!=0){break}c[25]=c[25]&(1<<c[t>>2]^-1);break L951}else{if(f>>>0<(c[28]|0)>>>0){aq()}g=f+16|0;if((c[g>>2]|0)==(b|0)){c[g>>2]=E}else{c[f+20>>2]=E}if((E|0)==0){break L951}}}while(0);if(E>>>0<(c[28]|0)>>>0){aq()}c[E+24>>2]=f;b=c[a+(h+8|0)>>2]|0;do{if((b|0)!=0){if(b>>>0<(c[28]|0)>>>0){aq()}else{c[E+16>>2]=b;c[b+24>>2]=E;break}}}while(0);b=c[a+(h+12|0)>>2]|0;if((b|0)==0){break}if(b>>>0<(c[28]|0)>>>0){aq()}else{c[E+20>>2]=b;c[b+24>>2]=E;break}}}while(0);c[q+4>>2]=B|1;c[d+B>>2]=B;if((q|0)!=(c[29]|0)){H=B;break}c[26]=B;return}else{c[A>>2]=e&-2;c[q+4>>2]=r|1;c[d+r>>2]=r;H=r}}while(0);r=H>>>3;if(H>>>0<256){d=r<<1;e=136+(d<<2)|0;A=c[24]|0;E=1<<r;do{if((A&E|0)==0){c[24]=A|E;I=e;J=136+(d+2<<2)|0}else{r=136+(d+2<<2)|0;h=c[r>>2]|0;if(h>>>0>=(c[28]|0)>>>0){I=h;J=r;break}aq()}}while(0);c[J>>2]=q;c[I+12>>2]=q;c[q+8>>2]=I;c[q+12>>2]=e;return}e=q;I=H>>>8;do{if((I|0)==0){K=0}else{if(H>>>0>16777215){K=31;break}J=(I+1048320|0)>>>16&8;d=I<<J;E=(d+520192|0)>>>16&4;A=d<<E;d=(A+245760|0)>>>16&2;r=(14-(E|J|d)|0)+(A<<d>>>15)|0;K=H>>>((r+7|0)>>>0)&1|r<<1}}while(0);I=400+(K<<2)|0;c[q+28>>2]=K;c[q+20>>2]=0;c[q+16>>2]=0;r=c[25]|0;d=1<<K;do{if((r&d|0)==0){c[25]=r|d;c[I>>2]=e;c[q+24>>2]=I;c[q+12>>2]=q;c[q+8>>2]=q}else{if((K|0)==31){L=0}else{L=25-(K>>>1)|0}A=H<<L;J=c[I>>2]|0;while(1){if((c[J+4>>2]&-8|0)==(H|0)){break}M=J+16+(A>>>31<<2)|0;E=c[M>>2]|0;if((E|0)==0){N=751;break}else{A=A<<1;J=E}}if((N|0)==751){if(M>>>0<(c[28]|0)>>>0){aq()}else{c[M>>2]=e;c[q+24>>2]=J;c[q+12>>2]=q;c[q+8>>2]=q;break}}A=J+8|0;B=c[A>>2]|0;E=c[28]|0;if(J>>>0<E>>>0){aq()}if(B>>>0<E>>>0){aq()}else{c[B+12>>2]=e;c[A>>2]=e;c[q+8>>2]=B;c[q+12>>2]=J;c[q+24>>2]=0;break}}}while(0);q=(c[32]|0)-1|0;c[32]=q;if((q|0)==0){O=552}else{return}while(1){q=c[O>>2]|0;if((q|0)==0){break}else{O=q+8|0}}c[32]=-1;return}function a4(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;do{if((c[4]|0)==0){b=am(8)|0;if((b-1&b|0)==0){c[6]=b;c[5]=b;c[7]=-1;c[8]=2097152;c[9]=0;c[135]=0;c[4]=ar(0)&-16^1431655768;break}else{aq();return 0;return 0}}}while(0);if(a>>>0>=4294967232){d=0;return d|0}b=c[30]|0;if((b|0)==0){d=0;return d|0}e=c[27]|0;do{if(e>>>0>(a+40|0)>>>0){f=c[6]|0;g=Z(((((((-40-a|0)-1|0)+e|0)+f|0)>>>0)/(f>>>0)>>>0)-1|0,f);h=b;i=544;while(1){j=c[i>>2]|0;if(j>>>0<=h>>>0){if((j+(c[i+4>>2]|0)|0)>>>0>h>>>0){k=i;break}}j=c[i+8>>2]|0;if((j|0)==0){k=0;break}else{i=j}}if((c[k+12>>2]&8|0)!=0){break}i=al(0)|0;h=k+4|0;if((i|0)!=((c[k>>2]|0)+(c[h>>2]|0)|0)){break}j=al(-(g>>>0>2147483646?-2147483648-f|0:g)|0)|0;l=al(0)|0;if(!((j|0)!=-1&l>>>0<i>>>0)){break}j=i-l|0;if((i|0)==(l|0)){break}c[h>>2]=(c[h>>2]|0)-j;c[132]=(c[132]|0)-j;h=c[30]|0;m=(c[27]|0)-j|0;j=h;n=h+8|0;if((n&7|0)==0){o=0}else{o=-n&7}n=m-o|0;c[30]=j+o;c[27]=n;c[j+(o+4|0)>>2]=n|1;c[j+(m+4|0)>>2]=40;c[31]=c[8];d=(i|0)!=(l|0)&1;return d|0}}while(0);if((c[27]|0)>>>0<=(c[31]|0)>>>0){d=0;return d|0}c[31]=-1;d=0;return d|0}function a5(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;f=b|0;if((b&3)==(d&3)){while(b&3){if((e|0)==0)return f|0;a[b]=a[d]|0;b=b+1|0;d=d+1|0;e=e-1|0}while((e|0)>=4){c[b>>2]=c[d>>2];b=b+4|0;d=d+4|0;e=e-4|0}}while((e|0)>0){a[b]=a[d]|0;b=b+1|0;d=d+1|0;e=e-1|0}return f|0}function a6(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=b+e|0;if((e|0)>=20){d=d&255;e=b&3;g=d|d<<8|d<<16|d<<24;h=f&~3;if(e){e=b+4-e|0;while((b|0)<(e|0)){a[b]=d;b=b+1|0}}while((b|0)<(h|0)){c[b>>2]=g;b=b+4|0}}while((b|0)<(f|0)){a[b]=d;b=b+1|0}}function a7(b){b=b|0;var c=0;c=b;while(a[c]|0){c=c+1|0}return c-b|0}function a8(a,b){a=a|0;b=b|0;as[a&1](b|0)}function a9(a,b){a=a|0;b=b|0;return at[a&1](b|0)|0}function ba(a){a=a|0;au[a&1]()}function bb(a,b,c){a=a|0;b=b|0;c=c|0;return av[a&1](b|0,c|0)|0}function bc(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;aw[a&15](b|0,c|0,d|0,e|0)}function bd(a){a=a|0;_(0)}function be(a){a=a|0;_(1);return 0}function bf(){_(2)}function bg(a,b){a=a|0;b=b|0;_(3);return 0}function bh(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;_(4)}
// EMSCRIPTEN_END_FUNCS
var as=[bd,bd];var at=[be,be];var au=[bf,bf];var av=[bg,bg];var aw=[bh,bh,a_,bh,aV,bh,a$,bh,a0,bh,a1,bh,bh,bh,bh,bh];return{_malloc:a2,_strlen:a7,_retrograph_destroy:aQ,_free:a3,_retrograph_new:aO,_retrograph_begin_frame:aN,_memset:a6,_retrograph_get_error:aM,_memcpy:a5,_retrograph_render_scanline:aS,_retrograph_clone:aP,_retrograph_ref:aL,_retrograph_write:aR,stackAlloc:ax,stackSave:ay,stackRestore:az,setThrew:aA,setTempRet0:aB,setTempRet1:aC,setTempRet2:aD,setTempRet3:aE,setTempRet4:aF,setTempRet5:aG,setTempRet6:aH,setTempRet7:aI,setTempRet8:aJ,setTempRet9:aK,dynCall_vi:a8,dynCall_ii:a9,dynCall_v:ba,dynCall_iii:bb,dynCall_viiii:bc}})
// EMSCRIPTEN_END_ASM
Please sign in to comment.
Something went wrong with that request. Please try again.