diff --git a/examples/playcanvas/index.html b/examples/playcanvas/index.html index 3b73270a..862b6e7f 100644 --- a/examples/playcanvas/index.html +++ b/examples/playcanvas/index.html @@ -14,9 +14,9 @@
- - - + + + diff --git a/examples/playcanvas/index.js b/examples/playcanvas/index.js index 8f2c00cf..b92d9beb 100644 --- a/examples/playcanvas/index.js +++ b/examples/playcanvas/index.js @@ -23,7 +23,7 @@ if (!modelInfo) { throw new Error('Model not specified or not found in list.'); } -const pcRoot = '../../libs/playcanvas/v2.0.0'; +const pcRoot = '../../libs/playcanvas/v2.1.0'; const DEFAULT_NAME = "[default]"; diff --git a/libs/playcanvas/v2.1.0/basis/basis.js b/libs/playcanvas/v2.1.0/basis/basis.js new file mode 100644 index 00000000..0e0a9763 --- /dev/null +++ b/libs/playcanvas/v2.1.0/basis/basis.js @@ -0,0 +1,196 @@ + +var BASIS = (() => { + var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined; + if (typeof __filename !== 'undefined') _scriptDir = _scriptDir || __filename; + return ( +function(moduleArg = {}) { + +var Module=moduleArg; +var Promise=function(){function noop(){}function bind(fn,thisArg){return function(){fn.apply(thisArg,arguments)}}function Promise(fn){if(!(this instanceof Promise))throw new TypeError("Promises must be constructed via new");if(typeof fn!="function")throw new TypeError("not a function");this._state=0;this._handled=false;this._value=undefined;this._deferreds=[];doResolve(fn,this)}function handle(self,deferred){while(self._state===3)self=self._value;if(self._state===0){self._deferreds.push(deferred);return}self._handled= +true;Promise._immediateFn(function(){var cb=self._state===1?deferred.onFulfilled:deferred.onRejected;if(cb===null){(self._state===1?resolve:reject)(deferred.promise,self._value);return}var ret;try{ret=cb(self._value)}catch(e){reject(deferred.promise,e);return}resolve(deferred.promise,ret)})}function resolve(self,newValue){try{if(newValue===self)throw new TypeError("A promise cannot be resolved with itself.");if(newValue&&(typeof newValue=="object"||typeof newValue=="function")){var then=newValue.then; +if(newValue instanceof Promise){self._state=3;self._value=newValue;finale(self);return}else if(typeof then=="function"){doResolve(bind(then,newValue),self);return}}self._state=1;self._value=newValue;finale(self)}catch(e){reject(self,e)}}function reject(self,newValue){self._state=2;self._value=newValue;finale(self)}function finale(self){if(self._state===2&&self._deferreds.length===0)Promise._immediateFn(function(){if(!self._handled)Promise._unhandledRejectionFn(self._value)});for(var i=0,len=self._deferreds.length;i< +len;i++)handle(self,self._deferreds[i]);self._deferreds=null}function Handler(onFulfilled,onRejected,promise){this.onFulfilled=typeof onFulfilled=="function"?onFulfilled:null;this.onRejected=typeof onRejected=="function"?onRejected:null;this.promise=promise}function doResolve(fn,self){var done=false;try{fn(function(value){if(done)return;done=true;resolve(self,value)},function(reason){if(done)return;done=true;reject(self,reason)})}catch(ex){if(done)return;done=true;reject(self,ex)}}Promise.prototype["catch"]= +function(onRejected){return this.then(null,onRejected)};Promise.prototype.then=function(onFulfilled,onRejected){var prom=new this.constructor(noop);handle(this,new Handler(onFulfilled,onRejected,prom));return prom};Promise.all=function(arr){return new Promise(function(resolve,reject){if(!Array.isArray(arr))return reject(new TypeError("Promise.all accepts an array"));var args=Array.prototype.slice.call(arr);if(args.length===0)return resolve([]);var remaining=args.length;function res(i,val){try{if(val&& +(typeof val=="object"||typeof val=="function")){var then=val.then;if(typeof then=="function"){then.call(val,function(val){res(i,val)},reject);return}}args[i]=val;if(--remaining===0)resolve(args)}catch(ex){reject(ex)}}for(var i=0;i>>0;u=H[k+74714>>1]+(H[l+136154>>1]+H[f+74714>>1]|0)|0;m=s?m:p;p=u>>>0 >>0?p:m;while(1){if((m|0)==(p|0)){break Ea}p=p+1|0;if(F[(t+112|0)+(p<<2)>>2]==(l|0)){continue}break}l=-1;break Da}if((l|0)>249){break Ca}}s=G[v+9|0];m=G[v+8|0];S=G[v+10|0];A=G[u+4|0];p=G[u|0];O=G[u+1|0];Q=G[u+2|0];Ha=x>>>0>=256?-1:x;D[t+111|0]=Ha;Sa=w>>>0>=256?-1:w;D[t+107|0]=Sa;Ia=y>>>0>=256?-1:y;D[t+103|0]=Ia;ba=f>>>0>=256?-1:f;D[t+99|0]=ba;u=A<<4;f=F[u+12764>>2];x=Q<<3|Q>>>2;w=f+x|0;Ja=w>>>0<256?w:(w^-1)>>31;D[t+110|0]=Ja;w=O<<3|O>>>2;y=w+f|0;Xa=y>>>0<256?y:(y^-1)>>31;D[t+109|0]=Xa;y=p<<3|p>>>2;f=y+f|0;Za=f>>>0<256?f:(f^-1)>>31;D[t+108|0]=Za;f=F[u+12760>>2];p=f+x|0;_a=p>>>0<256?p:(p^-1)>>31;D[t+106|0]=_a;p=f+w|0;Da=p>>>0<256?p:(p^-1)>>31;D[t+105|0]=Da;f=f+y|0;$a=f>>>0<256?f:(f^-1)>>31;D[t+104|0]=$a;f=F[u+12756>>2];p=f+x|0;ab=p>>>0<256?p:(p^-1)>>31;D[t+102|0]=ab;p=f+w|0;bb=p>>>0<256?p:(p^-1)>>31;D[t+101|0]=bb;f=f+y|0;cb=f>>>0<256?f:(f^-1)>>31;D[t+100|0]=cb;f=F[u+12752>>2];p=f+x|0;db=p>>>0<256?p:(p^-1)>>31;D[t+98|0]=db;p=f+w|0;Ua=p>>>0<256?p:(p^-1)>>31;D[t+97|0]=Ua;f=f+y|0;Va=f>>>0<256?f:(f^-1)>>31;D[t+96|0]=Va;Fa:{Ga:{Ha:{if(S>>>0<2){break Ha}S=m>>>0>s>>>0?m:s;p=(t+96|0)+(m<<2)|0;f=m;while(1){if((f|0)==(S|0)){break Ha}O=G[p|0];f=f+1|0;Q=(t+96|0)+(f<<2)|0;if(!((O|0)!=G[Q|0]|G[p+1|0]!=G[Q+1|0])&G[p+2|0]==G[Q+2|0]){continue}break}if((l|0)<0){Ia:{if(!O){break Ia}f=(t+96|0)+(s<<2)|0;l=G[f|0];if((l|0)==255){break Ia}m=G[p+1|0];if(!m){break Ia}s=G[f+1|0];if((s|0)==255){break Ia}p=G[p+2|0];if(!p){break Ia}f=G[f+2|0];if((f|0)==255){break Ia}eb=G[(G[n+8|0]<<2)+za|0];if(!eb){break Ia}fb=G[(G[n+9|0]<<2)+za|0];if((fb|0)==255){break Ia}F[t+28>>2]=L(Ha&255,3);F[t+16>>2]=L(ba&255,3);F[t+20>>2]=L(Ia&255,3);F[t+24>>2]=L(Sa&255,3);F[t+32>>2]=((Ua&255)+(Va&255)|0)+(db&255);F[t+36>>2]=((bb&255)+(cb&255)|0)+(ab&255);F[t+40>>2]=((Da&255)+($a&255)|0)+(_a&255);F[t+44>>2]=((Xa&255)+(Za&255)|0)+(Ja&255);Y=M(M(f>>>0)*M(.003921568859368563));ia=M(M(s>>>0)*M(.003921568859368563));P=M(M(l>>>0)*M(.003921568859368563));_=M(M(p>>>0)*M(.003921568859368563));la=M(M(m>>>0)*M(.003921568859368563));na=M(M(O>>>0)*M(.003921568859368563));ea=t+32|0;f=ea;m=G[v|0];gb=F[(f|(m&3)<<2)>>2];Pa=t+16|0;l=Pa;p=G[n|0];hb=F[(l|(p&3)<<2)>>2];s=gb-hb|0;ib=F[(f|m&12)>>2];jb=F[(l|p&12)>>2];u=ib-jb|0;w=(s|0)>(u|0)?s:u;kb=F[(f|m>>>2&12)>>2];lb=F[(l|p>>>2&12)>>2];x=kb-lb|0;w=(w|0)>(x|0)?w:x;mb=F[(f|m>>>4&12)>>2];nb=F[(l|p>>>4&12)>>2];m=mb-nb|0;O=(m|0)<(w|0)?w:m;p=G[v+1|0];ob=F[(f|(p&3)<<2)>>2];w=G[n+1|0];pb=F[(l|(w&3)<<2)>>2];y=ob-pb|0;Q=(y|0)<(O|0)?O:y;qb=F[(f|p&12)>>2];rb=F[(l|w&12)>>2];O=qb-rb|0;S=(O|0)<(Q|0)?Q:O;sb=F[(f|p>>>2&12)>>2];tb=F[(l|w>>>2&12)>>2];Q=sb-tb|0;S=(Q|0)<(S|0)?S:Q;zb=F[(f|p>>>4&12)>>2];Ab=F[(l|w>>>4&12)>>2];p=zb-Ab|0;ka=(p|0)<(S|0)?S:p;w=G[v+2|0];Bb=F[(f|(w&3)<<2)>>2];S=G[n+2|0];Cb=F[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0);Y=M(T*M(.00024509805371053517));Ka:{if(Y >>Q<<2)|0;m=H[B>>1];D[q|0]=m;D[q+1|0]=m>>>8;q=q+G[B+3|0]|0;p=p+G[B+2|0]|0;if(p>>>0<33){continue}break}o=z-2|0;break $}while(1){ca:{if((J|0)>=4){p=m&7;K=m>>>3|0;m=0;break ca}if(!J){p=m;break $}p=m;w=s;s=m>>>3|0;m=r>>>0>w-s>>>0;K=m?J:s;p=p-(K<<3)|0}J=J-K|0;s=r+J|0;K=G[s|0]|G[s+1|0]<<8|(G[s+2|0]<<16|G[s+3|0]<<24);if(m|o>>>0 >>Q<<2)|0;m=H[t>>1];D[q|0]=m;D[q+1|0]=m>>>8;q=G[t+3|0]+q|0;m=G[t+2|0]+p|0;if(m>>>0<=32){continue}break}p=m}if(o>>>0>=q>>>0){while(1){t=y+(K< >>Q<<2)|0;m=H[t>>1];D[q|0]=m;D[q+1|0]=m>>>8;p=G[t+2|0]+p|0;q=G[t+3|0]+q|0;if(q>>>0<=o>>>0){continue}break}}da:{if(q>>>0>=z>>>0){break da}w=q;m=K< >>Q|0;q=y+(m<<2)|0;D[w|0]=G[q|0];if(G[q+3|0]==1){p=G[q+2|0]+p|0;break da}if(p>>>0>31){break da}m=G[(y+(m<<2)|0)+2|0]+p|0;p=m>>>0>=32?32:m}s=(r|0)!=(s|0)?-20:(p|0)!=32?-20:n}}m=s;break V}m=Mc(q,n,r,Y,m)}break U}ea:{if(G[m+1|0]){m=Jc(q,n,r,Y,m);break ea}m=Lc(q,n,r,Y,m)}break U}p=x+27308|0;ka=q+aa|0;ga=x+29688|0;t=x+10280|0;if(!s){m=Nc(t,ka,Y,p);if(m>>>0>4294967176){break U}if(m>>>0 >>0-q< >>0-q|0)|0;p=p+Z|0;if(p>>>0>32){q=p;break Xa}if(o>>>0>=ea>>>0){q=p&7;F[u+48>>2]=q;o=o-(p>>>3|0)|0;F[u+52>>2]=o;F[u+44>>2]=G[o|0]|G[o+1|0]<<8|(G[o+2|0]<<16|G[o+3|0]<<24);break Xa}r=F[u+56>>2];if((r|0)==(o|0)){q=p;break Xa}q=p>>>3|0;q=r>>>0>o-q>>>0?o-r|0:q;o=o-q|0;F[u+52>>2]=o;q=p-(q<<3)|0;F[u+48>>2]=q;F[u+44>>2]=G[o|0]|G[o+1|0]<<8|(G[o+2|0]<<16|G[o+3|0]<<24)}r=F[u+88>>2];p=F[u+92>>2];F[u+88>>2]=v;F[u+92>>2]=r;F[u+96>>2]=p;break Wa}if(!Z){if(K){v=F[u+88>>2];q=p;break Wa}v=F[u+92>>2];F[u+92>>2]=F[u+88>>2];F[u+88>>2]=v;q=p;break Wa}q=p+1|0;F[u+48>>2]=q;r=T+!K+(F[u+44>>2]< >>31)|0;_a:{$a:{if((r|0)==3){p=F[u+88>>2]-1|0;v=!p+p|0;break $a}p=F[((r<<2)+u|0)+88>>2];v=!p+p|0;if((r|0)==1){break _a}}F[u+96>>2]=F[u+92>>2]}F[u+92>>2]=F[u+88>>2];F[u+88>>2]=v}p=m;if(la&16711680){p=(F[u+44>>2]< >>0-n< >>0-n|0)|0;p=p+ga|0;if(p>>>0>32){n=p;break Db}B=F[w+32>>2];if(B>>>0>=I[w+40>>2]){n=p&7;F[w+28>>2]=n;p=B-(p>>>3|0)|0;F[w+32>>2]=p;F[w+24>>2]=G[p|0]|G[p+1|0]<<8|(G[p+2|0]<<16|G[p+3|0]<<24);break Db}n=F[w+36>>2];if((n|0)==(B|0)){n=p;break Db}K=p;p=p>>>3|0;p=n>>>0>B-p>>>0?B-n|0:p;n=K-(p<<3)|0;F[w+28>>2]=n;p=B-p|0;F[w+32>>2]=p;F[w+24>>2]=G[p|0]|G[p+1|0]<<8|(G[p+2|0]<<16|G[p+3|0]<<24)}B=F[w+68>>2];p=F[w+72>>2];F[w+68>>2]=A;F[w+72>>2]=B;F[w+76>>2]=p;break Cb}if(!ga){if(r){A=F[w+68>>2];n=p;break Cb}A=F[w+72>>2];F[w+72>>2]=F[w+68>>2];F[w+68>>2]=A;n=p;break Cb}n=p+1|0;F[w+28>>2]=n;B=S+!r+(F[w+24>>2]< >>31)|0;Gb:{Hb:{if((B|0)==3){p=F[w+68>>2]-1|0;A=!p+p|0;break Hb}p=F[(w+(B<<2)|0)+68>>2];A=!p+p|0;if((B|0)==1){break Gb}}F[w+76>>2]=F[w+72>>2]}F[w+72>>2]=F[w+68>>2];F[w+68>>2]=A}if(Z&16711680){v=(F[w+24>>2]< >>0){continue}break}}n=p-A|0;F[w+92>>2]=B;if(p-t>>>0>>0){if(p-X>>>0>>0){o=-20;break Ob}r=n-t|0;n=r+ia|0;if(ia>>>0>=n+v>>>0){db(p,n,v);break Ob}p=db(p,n,0-r|0);v=r+v|0;F[w+100>>2]=v;n=t;p=p-r|0}if(A>>>0>=16){r=G[n+4|0]|G[n+5|0]<<8|(G[n+6|0]<<16|G[n+7|0]<<24);A=G[n|0]|G[n+1|0]<<8|(G[n+2|0]<<16|G[n+3|0]<<24);D[p|0]=A;D[p+1|0]=A>>>8;D[p+2|0]=A>>>16;D[p+3|0]=A>>>24;D[p+4|0]=r;D[p+5|0]=r>>>8;D[p+6|0]=r>>>16;D[p+7|0]=r>>>24;r=G[n+12|0]|G[n+13|0]<<8|(G[n+14|0]<<16|G[n+15|0]<<24);A=G[n+8|0]|G[n+9|0]<<8|(G[n+10|0]<<16|G[n+11|0]<<24);D[p+8|0]=A;D[p+9|0]=A>>>8;D[p+10|0]=A>>>16;D[p+11|0]=A>>>24;D[p+12|0]=r;D[p+13|0]=r>>>8;D[p+14|0]=r>>>16;D[p+15|0]=r>>>24;if((v|0)<17){break Ob}A=p+v|0;r=p+16|0;while(1){v=G[n+20|0]|G[n+21|0]<<8|(G[n+22|0]<<16|G[n+23|0]<<24);p=G[n+16|0]|G[n+17|0]<<8|(G[n+18|0]<<16|G[n+19|0]<<24);D[r|0]=p;D[r+1|0]=p>>>8;D[r+2|0]=p>>>16;D[r+3|0]=p>>>24;D[r+4|0]=v;D[r+5|0]=v>>>8;D[r+6|0]=v>>>16;D[r+7|0]=v>>>24;v=G[n+28|0]|G[n+29|0]<<8|(G[n+30|0]<<16|G[n+31|0]<<24);p=G[n+24|0]|G[n+25|0]<<8|(G[n+26|0]<<16|G[n+27|0]<<24);D[r+8|0]=p;D[r+9|0]=p>>>8;D[r+10|0]=p>>>16;D[r+11|0]=p>>>24;D[r+12|0]=v;D[r+13|0]=v>>>8;D[r+14|0]=v>>>16;D[r+15|0]=v>>>24;v=G[n+36|0]|G[n+37|0]<<8|(G[n+38|0]<<16|G[n+39|0]<<24);p=G[n+32|0]|G[n+33|0]<<8|(G[n+34|0]<<16|G[n+35|0]<<24);D[r+16|0]=p;D[r+17|0]=p>>>8;D[r+18|0]=p>>>16;D[r+19|0]=p>>>24;D[r+20|0]=v;D[r+21|0]=v>>>8;D[r+22|0]=v>>>16;D[r+23|0]=v>>>24;v=G[n+44|0]|G[n+45|0]<<8|(G[n+46|0]<<16|G[n+47|0]<<24);p=G[n+40|0]|G[n+41|0]<<8|(G[n+42|0]<<16|G[n+43|0]<<24);D[r+24|0]=p;D[r+25|0]=p>>>8;D[r+26|0]=p>>>16;D[r+27|0]=p>>>24;D[r+28|0]=v;D[r+29|0]=v>>>8;D[r+30|0]=v>>>16;D[r+31|0]=v>>>24;n=n+32|0;r=r+32|0;if(A>>>0>r>>>0){continue}break}break Ob}Sb:{if(A>>>0<=7){D[p|0]=G[n|0];D[p+1|0]=G[n+1|0];D[p+2|0]=G[n+2|0];D[p+3|0]=G[n+3|0];r=n;n=A<<2;r=r+F[n+403152>>2]|0;A=G[r|0]|G[r+1|0]<<8|(G[r+2|0]<<16|G[r+3|0]<<24);D[p+4|0]=A;D[p+5|0]=A>>>8;D[p+6|0]=A>>>16;D[p+7|0]=A>>>24;n=r-F[n+403184>>2]|0;break Sb}r=G[n+4|0]|G[n+5|0]<<8|(G[n+6|0]<<16|G[n+7|0]<<24);A=G[n|0]|G[n+1|0]<<8|(G[n+2|0]<<16|G[n+3|0]<<24);D[p|0]=A;D[p+1|0]=A>>>8;D[p+2|0]=A>>>16;D[p+3|0]=A>>>24;D[p+4|0]=r;D[p+5|0]=r>>>8;D[p+6|0]=r>>>16;D[p+7|0]=r>>>24}if(v>>>0<9){break Ob}A=p+v|0;r=p+8|0;n=n+8|0;if((r-n|0)<=15){while(1){v=G[n+4|0]|G[n+5|0]<<8|(G[n+6|0]<<16|G[n+7|0]<<24);p=G[n|0]|G[n+1|0]<<8|(G[n+2|0]<<16|G[n+3|0]<<24);D[r|0]=p;D[r+1|0]=p>>>8;D[r+2|0]=p>>>16;D[r+3|0]=p>>>24;D[r+4|0]=v;D[r+5|0]=v>>>8;D[r+6|0]=v>>>16;D[r+7|0]=v>>>24;n=n+8|0;r=r+8|0;if(A>>>0>r>>>0){continue}break Ob}}z=G[n+4|0]|G[n+5|0]<<8|(G[n+6|0]<<16|G[n+7|0]<<24);B=G[n|0]|G[n+1|0]<<8|(G[n+2|0]<<16|G[n+3|0]<<24);D[r|0]=B;D[r+1|0]=B>>>8;D[r+2|0]=B>>>16;D[r+3|0]=B>>>24;D[r+4|0]=z;D[r+5|0]=z>>>8;D[r+6|0]=z>>>16;D[r+7|0]=z>>>24;z=G[n+12|0]|G[n+13|0]<<8|(G[n+14|0]<<16|G[n+15|0]<<24);B=G[n+8|0]|G[n+9|0]<<8|(G[n+10|0]<<16|G[n+11|0]<<24);D[r+8|0]=B;D[r+9|0]=B>>>8;D[r+10|0]=B>>>16;D[r+11|0]=B>>>24;D[r+12|0]=z;D[r+13|0]=z>>>8;D[r+14|0]=z>>>16;D[r+15|0]=z>>>24;if((v|0)<25){break Ob}r=p+24|0;while(1){v=G[n+20|0]|G[n+21|0]<<8|(G[n+22|0]<<16|G[n+23|0]<<24);p=G[n+16|0]|G[n+17|0]<<8|(G[n+18|0]<<16|G[n+19|0]<<24);D[r|0]=p;D[r+1|0]=p>>>8;D[r+2|0]=p>>>16;D[r+3|0]=p>>>24;D[r+4|0]=v;D[r+5|0]=v>>>8;D[r+6|0]=v>>>16;D[r+7|0]=v>>>24;v=G[n+28|0]|G[n+29|0]<<8|(G[n+30|0]<<16|G[n+31|0]<<24);p=G[n+24|0]|G[n+25|0]<<8|(G[n+26|0]<<16|G[n+27|0]<<24);D[r+8|0]=p;D[r+9|0]=p>>>8;D[r+10|0]=p>>>16;D[r+11|0]=p>>>24;D[r+12|0]=v;D[r+13|0]=v>>>8;D[r+14|0]=v>>>16;D[r+15|0]=v>>>24;v=G[n+36|0]|G[n+37|0]<<8|(G[n+38|0]<<16|G[n+39|0]<<24);p=G[n+32|0]|G[n+33|0]<<8|(G[n+34|0]<<16|G[n+35|0]<<24);D[r+16|0]=p;D[r+17|0]=p>>>8;D[r+18|0]=p>>>16;D[r+19|0]=p>>>24;D[r+20|0]=v;D[r+21|0]=v>>>8;D[r+22|0]=v>>>16;D[r+23|0]=v>>>24;v=G[n+44|0]|G[n+45|0]<<8|(G[n+46|0]<<16|G[n+47|0]<<24);p=G[n+40|0]|G[n+41|0]<<8|(G[n+42|0]<<16|G[n+43|0]<<24);D[r+24|0]=p;D[r+25|0]=p>>>8;D[r+26|0]=p>>>16;D[r+27|0]=p>>>24;D[r+28|0]=v;D[r+29|0]=v>>>8;D[r+30|0]=v>>>16;D[r+31|0]=v>>>24;n=n+32|0;r=r+32|0;if(A>>>0>r>>>0){continue}break}}n=F[w+28>>2];Tb:{if(n>>>0>32){p=n;break Tb}v=F[w+32>>2];if(v>>>0>=I[w+40>>2]){p=n&7;F[w+28>>2]=p;n=v-(n>>>3|0)|0;F[w+32>>2]=n;F[w+24>>2]=G[n|0]|G[n+1|0]<<8|(G[n+2|0]<<16|G[n+3|0]<<24);break Tb}A=F[w+36>>2];if((A|0)==(v|0)){p=n;break Tb}r=n;p=n>>>3|0;n=A>>>0>v-p>>>0?v-A|0:p;p=r-(n<<3)|0;F[w+28>>2]=p;n=v-n|0;F[w+32>>2]=n;F[w+24>>2]=G[n|0]|G[n+1|0]<<8|(G[n+2|0]<<16|G[n+3|0]<<24)}A=$-1|0;n=o>>>0<4294967177;$=n?A:$;s=n?s:o;m=m+o|0;if(A?o>>>0<=4294967176:0){continue}break}if(s>>>0>4294967176){break qb}if($){s=-20;break qb}if(p>>>0<=32){if((p|0)!=32){s=-20;break qb}p=F[w+32>>2];if(p>>>0>=I[w+40>>2]){s=-20;break qb}s=-20;if((p|0)!=F[w+36>>2]){break qb}}p=F[w+72>>2];F[q>>2]=F[w+68>>2];F[q+4>>2]=p;F[q+8>>2]=F[w+76>>2];p=F[w+92>>2]}s=-70;n=ea-p|0;if(n>>>0>ca-m>>>0){break qb}if(m){m=Va(m,p,n)+n|0}else{m=0}s=m-U|0}Ea=w+112|0}Ea=u+192|0;m=s;if(m>>>0>4294967176){break m}}if(F[x+29548>>2]){n=U;p=F[N+4>>2];s=F[N>>2]+m|0;p=s>>>0 >>0?p:m;p=G[s+198|0];z=n>>>0>p>>>0?n:p;n=G[s+202|0];r=n>>>0>>0;y=f;A=n;u=H[f+13242>>1]+(H[l+13242>>1]+H[m+13242>>1]|0)|0;n=n?p:s;p=u>>>0>>0;y=k;A=n;u=H[k+207850>>1]+(H[l+269290>>1]+H[m+207850>>1]|0)|0;n=n?p:s;p=u>>>0>>0?-72:s;if(M>>>0>4294967176){break i}n=n+M|0;p=p-M|0;if(p>>>0>=m>>>0){continue}break j}F[x+29436>>2]=0;F[x+29372>>2]=m;F[ua+8>>2]=0;F[ua+12>>2]=0;F[ua>>2]=0;F[ua+4>>2]=0;F[ra+8>>2]=0;F[ra+12>>2]=0;F[ra>>2]=0;F[ra+4>>2]=0;F[x+10280>>2]=201326604;F[x+29592>>2]=0;F[x+29440>>2]=0;F[x+29444>>2]=0;F[x+29432>>2]=3;F[wa+8>>2]=F[100414];m=F[100413];F[wa>>2]=F[100412];F[wa+4>>2]=m;F[x+12>>2]=Da;F[x+8>>2]=Ba;F[x+4>>2]=Ca;F[x>>2]=Ha;if(!(!ta|!ha)){F[x+29368>>2]=0;F[x+29360>>2]=ha;F[x+29356>>2]=ha;F[x+29364>>2]=ha}v=F[x+29540>>2];if((v?5:9)>>>0>p>>>0){break h}k:{s=v?1:5;q=G[(s+n|0)-1|0];m=q&32;m=(!m+(F[(q>>>4&12)+403136>>2]+(s+F[((q&3)<<2)+403120>>2]|0)|0)|0)+(m>>>5&q>>>0<64)|0;l:{m:{if(m>>>0>4294967176){break m}if(m+3>>>0>p>>>0){break h}q=0;A=0;F[ba>>2]=0;F[ba+4>>2]=0;F[ba+32>>2]=0;F[ba+36>>2]=0;F[ba+24>>2]=0;F[ba+28>>2]=0;F[ba+16>>2]=0;F[ba+20>>2]=0;F[ba+8>>2]=0;F[ba+12>>2]=0;U=m;M=s;n:{if(m>>>0>>0){break n}M=-1;if(!n){break n}m=1;o:{p:{q:{r:{s:{t:{u:{v:{if((v|0)==1){r=n;if(U){break v}M=-72;break u}m=G[n|0]|G[n+1|0]<<8|(G[n+2|0]<<16|G[n+3|0]<<24);if((m|0)!=-47205080){break t}m=s;r=(n+m|0)-1|0}v=G[r|0];M=v&32;M=(!M+(F[(v>>>4&12)+403136>>2]+(F[((v&3)<<2)+403120>>2]+m|0)|0)|0)+(M>>>5&v>>>0<64)|0}if(U>>>0>>0){break $}t=y+(K<
>2]=p;y=p+(r<>2]=y}r=na-z|0;if(T>>>0<2|r>>>0>=(o-r|0)+1>>>0){break ka}J=z&-4;z=z&3;m=r;while(1){C=L(m,52)+Q|0;p=0;K=1;if(P>>>0>=3){while(1){y=K<<2;F[y+C>>2]=F[y+Q>>2]>>>m;B=y+4|0;F[B+C>>2]=F[B+Q>>2]>>>m;B=y+8|0;F[B+C>>2]=F[B+Q>>2]>>>m;B=y+12|0;F[B+C>>2]=F[B+Q>>2]>>>m;K=K+4|0;p=p+4|0;if((J|0)!=(p|0)){continue}break}}y=0;if(z){while(1){p=K<<2;F[p+C>>2]=F[p+Q>>2]>>>m;K=K+1|0;y=y+1|0;if((z|0)!=(y|0)){continue}break}}m=m+1|0;if((s|0)!=(m|0)){continue}break}break ka}r=na-z|0}F[W+432>>2]=F[Q+48>>2];m=F[Q+44>>2];F[W+424>>2]=F[Q+40>>2];F[W+428>>2]=m;m=F[Q+36>>2];F[W+416>>2]=F[Q+32>>2];F[W+420>>2]=m;m=F[Q+28>>2];F[W+408>>2]=F[Q+24>>2];F[W+412>>2]=m;m=F[Q+20>>2];F[W+400>>2]=F[Q+16>>2];F[W+404>>2]=m;m=F[Q+4>>2];F[W+384>>2]=F[Q>>2];F[W+388>>2]=m;m=F[Q+12>>2];F[W+392>>2]=F[Q+8>>2];F[W+396>>2]=m;if(R){X=Q+676|0;_=t+4|0;P=na-o|0;ca=0;while(1){p=(ca<<1)+ma|0;m=G[p+1|0];oa=na-m|0;w=o-oa|0;V=1<>>0-X|0)+v|0;q=q+X|0;break Xa}v=T+(F[u+44>>2]<
>>0-t|0)+m|0;q=q+C|0}ab:{if(C+P>>>0<20|q>>>0>32){break ab}bb:{if(o>>>0>=ea>>>0){o=o-(q>>>3|0)|0;F[u+52>>2]=o;q=q&7;break bb}r=F[u+56>>2];if((r|0)==(o|0)){break ab}m=q>>>3|0;m=r>>>0>o-m>>>0?o-r|0:m;o=o-m|0;F[u+52>>2]=o;q=q-(m<<3)|0}F[u+48>>2]=q;F[u+44>>2]=G[o|0]|G[o+1|0]<<8|(G[o+2|0]<<16|G[o+3|0]<<24)}if(ia&16711680){K=(F[u+44>>2]<
>>0-Q|0)+K|0;q=q+P|0}Q=la>>>24|0;t=ia>>>24|0;cb:{if(q>>>0>32){break cb}db:{if(o>>>0>=ea>>>0){o=o-(q>>>3|0)|0;F[u+52>>2]=o;q=q&7;break db}r=F[u+56>>2];if((r|0)==(o|0)){break cb}m=q>>>3|0;m=r>>>0>o-m>>>0?o-r|0:m;o=o-m|0;F[u+52>>2]=o;q=q-(m<<3)|0}F[u+48>>2]=q;F[u+44>>2]=G[o|0]|G[o+1|0]<<8|(G[o+2|0]<<16|G[o+3|0]<<24)}J=F[u+108>>2]+K|0;F[u+108>>2]=J+p;m=F[u+44>>2];q=q+t|0;F[u+64>>2]=(F[(t<<2)+402992>>2]&m>>>0-q)+(ia&65535);q=q+Q|0;F[u+80>>2]=(F[(Q<<2)+402992>>2]&m>>>0-q)+(la&65535);Q=F[(u+44|0)+(v>>>0>J>>>0?60:56)>>2];eb:{if(q>>>0>32){break eb}fb:{if(o>>>0>=ea>>>0){o=o-(q>>>3|0)|0;F[u+52>>2]=o;q=q&7;break fb}r=F[u+56>>2];if((r|0)==(o|0)){break eb}m=q>>>3|0;m=r>>>0>o-m>>>0?o-r|0:m;o=o-m|0;F[u+52>>2]=o;q=q-(m<<3)|0}F[u+48>>2]=q;m=G[o|0]|G[o+1|0]<<8|(G[o+2|0]<<16|G[o+3|0]<<24);F[u+44>>2]=m}r=S>>>24|0;q=q+r|0;F[u+48>>2]=q;F[u+72>>2]=(F[(r<<2)+402992>>2]&m>>>0-q)+(S&65535);gb:{hb:{P=F[u+188>>2];T=(u+112|0)+((A&3)<<4)|0;C=F[T>>2];m=P+C|0;ib:{if(m>>>0>na>>>0){break ib}V=F[T+4>>2];r=C+V|0;if(y>>>0
>>0){continue}break}}o=q-X|0;F[u+188>>2]=m;if(X>>>0>q-B>>>0){if(X>>>0>q-oa>>>0){break I}t=o-B|0;m=t+da|0;if(m+V>>>0<=da>>>0){db(q,m,V);break gb}V=t+V|0;o=B;q=db(q,m,0-t|0)-t|0}if(X>>>0>=16){t=G[o+4|0]|G[o+5|0]<<8|(G[o+6|0]<<16|G[o+7|0]<<24);m=G[o|0]|G[o+1|0]<<8|(G[o+2|0]<<16|G[o+3|0]<<24);D[q|0]=m;D[q+1|0]=m>>>8;D[q+2|0]=m>>>16;D[q+3|0]=m>>>24;D[q+4|0]=t;D[q+5|0]=t>>>8;D[q+6|0]=t>>>16;D[q+7|0]=t>>>24;t=G[o+12|0]|G[o+13|0]<<8|(G[o+14|0]<<16|G[o+15|0]<<24);m=G[o+8|0]|G[o+9|0]<<8|(G[o+10|0]<<16|G[o+11|0]<<24);D[q+8|0]=m;D[q+9|0]=m>>>8;D[q+10|0]=m>>>16;D[q+11|0]=m>>>24;D[q+12|0]=t;D[q+13|0]=t>>>8;D[q+14|0]=t>>>16;D[q+15|0]=t>>>24;if((V|0)<17){break gb}m=q+V|0;q=q+16|0;while(1){C=G[o+20|0]|G[o+21|0]<<8|(G[o+22|0]<<16|G[o+23|0]<<24);t=G[o+16|0]|G[o+17|0]<<8|(G[o+18|0]<<16|G[o+19|0]<<24);D[q|0]=t;D[q+1|0]=t>>>8;D[q+2|0]=t>>>16;D[q+3|0]=t>>>24;D[q+4|0]=C;D[q+5|0]=C>>>8;D[q+6|0]=C>>>16;D[q+7|0]=C>>>24;C=G[o+28|0]|G[o+29|0]<<8|(G[o+30|0]<<16|G[o+31|0]<<24);t=G[o+24|0]|G[o+25|0]<<8|(G[o+26|0]<<16|G[o+27|0]<<24);D[q+8|0]=t;D[q+9|0]=t>>>8;D[q+10|0]=t>>>16;D[q+11|0]=t>>>24;D[q+12|0]=C;D[q+13|0]=C>>>8;D[q+14|0]=C>>>16;D[q+15|0]=C>>>24;C=G[o+36|0]|G[o+37|0]<<8|(G[o+38|0]<<16|G[o+39|0]<<24);t=G[o+32|0]|G[o+33|0]<<8|(G[o+34|0]<<16|G[o+35|0]<<24);D[q+16|0]=t;D[q+17|0]=t>>>8;D[q+18|0]=t>>>16;D[q+19|0]=t>>>24;D[q+20|0]=C;D[q+21|0]=C>>>8;D[q+22|0]=C>>>16;D[q+23|0]=C>>>24;C=G[o+44|0]|G[o+45|0]<<8|(G[o+46|0]<<16|G[o+47|0]<<24);t=G[o+40|0]|G[o+41|0]<<8|(G[o+42|0]<<16|G[o+43|0]<<24);D[q+24|0]=t;D[q+25|0]=t>>>8;D[q+26|0]=t>>>16;D[q+27|0]=t>>>24;D[q+28|0]=C;D[q+29|0]=C>>>8;D[q+30|0]=C>>>16;D[q+31|0]=C>>>24;o=o+32|0;q=q+32|0;if(m>>>0>q>>>0){continue}break}break gb}kb:{if(X>>>0<=7){D[q|0]=G[o|0];D[q+1|0]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=C>>>16;D[m+11|0]=C>>>24;D[m+12|0]=P;D[m+13|0]=P>>>8;D[m+14|0]=P>>>16;D[m+15|0]=P>>>24;if((V|0)<25){break gb}q=q+24|0;while(1){C=G[o+20|0]|G[o+21|0]<<8|(G[o+22|0]<<16|G[o+23|0]<<24);m=G[o+16|0]|G[o+17|0]<<8|(G[o+18|0]<<16|G[o+19|0]<<24);D[q|0]=m;D[q+1|0]=m>>>8;D[q+2|0]=m>>>16;D[q+3|0]=m>>>24;D[q+4|0]=C;D[q+5|0]=C>>>8;D[q+6|0]=C>>>16;D[q+7|0]=C>>>24;C=G[o+28|0]|G[o+29|0]<<8|(G[o+30|0]<<16|G[o+31|0]<<24);m=G[o+24|0]|G[o+25|0]<<8|(G[o+26|0]<<16|G[o+27|0]<<24);D[q+8|0]=m;D[q+9|0]=m>>>8;D[q+10|0]=m>>>16;D[q+11|0]=m>>>24;D[q+12|0]=C;D[q+13|0]=C>>>8;D[q+14|0]=C>>>16;D[q+15|0]=C>>>24;C=G[o+36|0]|G[o+37|0]<<8|(G[o+38|0]<<16|G[o+39|0]<<24);m=G[o+32|0]|G[o+33|0]<<8|(G[o+34|0]<<16|G[o+35|0]<<24);D[q+16|0]=m;D[q+17|0]=m>>>8;D[q+18|0]=m>>>16;D[q+19|0]=m>>>24;D[q+20|0]=C;D[q+21|0]=C>>>8;D[q+22|0]=C>>>16;D[q+23|0]=C>>>24;C=G[o+44|0]|G[o+45|0]<<8|(G[o+46|0]<<16|G[o+47|0]<<24);m=G[o+40|0]|G[o+41|0]<<8|(G[o+42|0]<<16|G[o+43|0]<<24);D[q+24|0]=m;D[q+25|0]=m>>>8;D[q+26|0]=m>>>16;D[q+27|0]=m>>>24;D[q+28|0]=C;D[q+29|0]=C>>>8;D[q+30|0]=C>>>16;D[q+31|0]=C>>>24;o=o+32|0;q=q+32|0;if(t>>>0>q>>>0){continue}break}}if(r>>>0<=4294967176){F[T+12>>2]=(J+Q|0)-v;F[T+8>>2]=v;F[T+4>>2]=p;F[T>>2]=K;A=A+1|0;n=n+r|0;m=F[u+48>>2];continue}break}s=r;break I}p=A-w|0;if(($|0)>(p|0)){v=ka-32|0;while(1){lb:{mb:{J=F[u+188>>2];t=(u+112|0)+((p&3)<<4)|0;Q=F[t>>2];m=J+Q|0;nb:{if(m>>>0>na>>>0){break nb}r=F[t+4>>2];A=Q+r|0;if(v>>>0>>0){break nb}if(A+32>>>0<=ka-n>>>0){break mb}}m=F[t+12>>2];F[u+16>>2]=F[t+8>>2];F[u+20>>2]=m;m=F[t+4>>2];F[u+8>>2]=F[t>>2];F[u+12>>2]=m;A=Pb(n,ka,u+8|0,u+188|0,na,B,oa,da);break lb}q=n+Q|0;y=F[t+8>>2];o=G[J+4|0]|G[J+5|0]<<8|(G[J+6|0]<<16|G[J+7|0]<<24);t=G[J|0]|G[J+1|0]<<8|(G[J+2|0]<<16|G[J+3|0]<<24);D[n|0]=t;D[n+1|0]=t>>>8;D[n+2|0]=t>>>16;D[n+3|0]=t>>>24;D[n+4|0]=o;D[n+5|0]=o>>>8;D[n+6|0]=o>>>16;D[n+7|0]=o>>>24;o=G[J+12|0]|G[J+13|0]<<8|(G[J+14|0]<<16|G[J+15|0]<<24);t=G[J+8|0]|G[J+9|0]<<8|(G[J+10|0]<<16|G[J+11|0]<<24);D[n+8|0]=t;D[n+9|0]=t>>>8;D[n+10|0]=t>>>16;D[n+11|0]=t>>>24;D[n+12|0]=o;D[n+13|0]=o>>>8;D[n+14|0]=o>>>16;D[n+15|0]=o>>>24;ob:{if(Q>>>0<17){break ob}o=G[J+20|0]|G[J+21|0]<<8|(G[J+22|0]<<16|G[J+23|0]<<24);t=G[J+16|0]|G[J+17|0]<<8|(G[J+18|0]<<16|G[J+19|0]<<24);D[n+16|0]=t;D[n+17|0]=t>>>8;D[n+18|0]=t>>>16;D[n+19|0]=t>>>24;D[n+20|0]=o;D[n+21|0]=o>>>8;D[n+22|0]=o>>>16;D[n+23|0]=o>>>24;o=G[J+28|0]|G[J+29|0]<<8|(G[J+30|0]<<16|G[J+31|0]<<24);t=G[J+24|0]|G[J+25|0]<<8|(G[J+26|0]<<16|G[J+27|0]<<24);D[n+24|0]=t;D[n+25|0]=t>>>8;D[n+26|0]=t>>>16;D[n+27|0]=t>>>24;D[n+28|0]=o;D[n+29|0]=o>>>8;D[n+30|0]=o>>>16;D[n+31|0]=o>>>24;if((Q-16|0)<17){break ob}o=J+16|0;K=n+32|0;while(1){Q=G[o+20|0]|G[o+21|0]<<8|(G[o+22|0]<<16|G[o+23|0]<<24);t=G[o+16|0]|G[o+17|0]<<8|(G[o+18|0]<<16|G[o+19|0]<<24);D[K|0]=t;D[K+1|0]=t>>>8;D[K+2|0]=t>>>16;D[K+3|0]=t>>>24;D[K+4|0]=Q;D[K+5|0]=Q>>>8;D[K+6|0]=Q>>>16;D[K+7|0]=Q>>>24;Q=G[o+28|0]|G[o+29|0]<<8|(G[o+30|0]<<16|G[o+31|0]<<24);t=G[o+24|0]|G[o+25|0]<<8|(G[o+26|0]<<16|G[o+27|0]<<24);D[K+8|0]=t;D[K+9|0]=t>>>8;D[K+10|0]=t>>>16;D[K+11|0]=t>>>24;D[K+12|0]=Q;D[K+13|0]=Q>>>8;D[K+14|0]=Q>>>16;D[K+15|0]=Q>>>24;Q=G[o+36|0]|G[o+37|0]<<8|(G[o+38|0]<<16|G[o+39|0]<<24);t=G[o+32|0]|G[o+33|0]<<8|(G[o+34|0]<<16|G[o+35|0]<<24);D[K+16|0]=t;D[K+17|0]=t>>>8;D[K+18|0]=t>>>16;D[K+19|0]=t>>>24;D[K+20|0]=Q;D[K+21|0]=Q>>>8;D[K+22|0]=Q>>>16;D[K+23|0]=Q>>>24;Q=G[o+44|0]|G[o+45|0]<<8|(G[o+46|0]<<16|G[o+47|0]<<24);t=G[o+40|0]|G[o+41|0]<<8|(G[o+42|0]<<16|G[o+43|0]<<24);D[K+24|0]=t;D[K+25|0]=t>>>8;D[K+26|0]=t>>>16;D[K+27|0]=t>>>24;D[K+28|0]=Q;D[K+29|0]=Q>>>8;D[K+30|0]=Q>>>16;D[K+31|0]=Q>>>24;o=o+32|0;K=K+32|0;if(K>>>0
>>0){continue}break}}o=q-y|0;F[u+188>>2]=m;if(y>>>0>q-B>>>0){if(y>>>0>q-oa>>>0){break I}t=o-B|0;m=t+da|0;if(m+r>>>0<=da>>>0){db(q,m,r);break lb}r=r+t|0;o=B;q=db(q,m,0-t|0)-t|0}if(y>>>0>=16){t=G[o+4|0]|G[o+5|0]<<8|(G[o+6|0]<<16|G[o+7|0]<<24);m=G[o|0]|G[o+1|0]<<8|(G[o+2|0]<<16|G[o+3|0]<<24);D[q|0]=m;D[q+1|0]=m>>>8;D[q+2|0]=m>>>16;D[q+3|0]=m>>>24;D[q+4|0]=t;D[q+5|0]=t>>>8;D[q+6|0]=t>>>16;D[q+7|0]=t>>>24;t=G[o+12|0]|G[o+13|0]<<8|(G[o+14|0]<<16|G[o+15|0]<<24);m=G[o+8|0]|G[o+9|0]<<8|(G[o+10|0]<<16|G[o+11|0]<<24);D[q+8|0]=m;D[q+9|0]=m>>>8;D[q+10|0]=m>>>16;D[q+11|0]=m>>>24;D[q+12|0]=t;D[q+13|0]=t>>>8;D[q+14|0]=t>>>16;D[q+15|0]=t>>>24;if((r|0)<17){break lb}m=q+r|0;q=q+16|0;while(1){t=G[o+20|0]|G[o+21|0]<<8|(G[o+22|0]<<16|G[o+23|0]<<24);r=G[o+16|0]|G[o+17|0]<<8|(G[o+18|0]<<16|G[o+19|0]<<24);D[q|0]=r;D[q+1|0]=r>>>8;D[q+2|0]=r>>>16;D[q+3|0]=r>>>24;D[q+4|0]=t;D[q+5|0]=t>>>8;D[q+6|0]=t>>>16;D[q+7|0]=t>>>24;t=G[o+28|0]|G[o+29|0]<<8|(G[o+30|0]<<16|G[o+31|0]<<24);r=G[o+24|0]|G[o+25|0]<<8|(G[o+26|0]<<16|G[o+27|0]<<24);D[q+8|0]=r;D[q+9|0]=r>>>8;D[q+10|0]=r>>>16;D[q+11|0]=r>>>24;D[q+12|0]=t;D[q+13|0]=t>>>8;D[q+14|0]=t>>>16;D[q+15|0]=t>>>24;t=G[o+36|0]|G[o+37|0]<<8|(G[o+38|0]<<16|G[o+39|0]<<24);r=G[o+32|0]|G[o+33|0]<<8|(G[o+34|0]<<16|G[o+35|0]<<24);D[q+16|0]=r;D[q+17|0]=r>>>8;D[q+18|0]=r>>>16;D[q+19|0]=r>>>24;D[q+20|0]=t;D[q+21|0]=t>>>8;D[q+22|0]=t>>>16;D[q+23|0]=t>>>24;t=G[o+44|0]|G[o+45|0]<<8|(G[o+46|0]<<16|G[o+47|0]<<24);r=G[o+40|0]|G[o+41|0]<<8|(G[o+42|0]<<16|G[o+43|0]<<24);D[q+24|0]=r;D[q+25|0]=r>>>8;D[q+26|0]=r>>>16;D[q+27|0]=r>>>24;D[q+28|0]=t;D[q+29|0]=t>>>8;D[q+30|0]=t>>>16;D[q+31|0]=t>>>24;o=o+32|0;q=q+32|0;if(m>>>0>q>>>0){continue}break}break lb}pb:{if(y>>>0<=7){D[q|0]=G[o|0];D[q+1|0]=G[o+1|0];D[q+2|0]=G[o+2|0];D[q+3|0]=G[o+3|0];m=y<<2;o=o+F[m+403152>>2]|0;t=G[o|0]|G[o+1|0]<<8|(G[o+2|0]<<16|G[o+3|0]<<24);D[q+4|0]=t;D[q+5|0]=t>>>8;D[q+6|0]=t>>>16;D[q+7|0]=t>>>24;o=o-F[m+403184>>2]|0;break pb}t=G[o+4|0]|G[o+5|0]<<8|(G[o+6|0]<<16|G[o+7|0]<<24);m=G[o|0]|G[o+1|0]<<8|(G[o+2|0]<<16|G[o+3|0]<<24);D[q|0]=m;D[q+1|0]=m>>>8;D[q+2|0]=m>>>16;D[q+3|0]=m>>>24;D[q+4|0]=t;D[q+5|0]=t>>>8;D[q+6|0]=t>>>16;D[q+7|0]=t>>>24}if(r>>>0<9){break lb}t=q+r|0;m=q+8|0;o=o+8|0;if((m-o|0)<=15){while(1){r=G[o+4|0]|G[o+5|0]<<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24;D[q+12|0]=r;D[q+13|0]=r>>>8;D[q+14|0]=r>>>16;D[q+15|0]=r>>>24;r=G[o+36|0]|G[o+37|0]<<8|(G[o+38|0]<<16|G[o+39|0]<<24);m=G[o+32|0]|G[o+33|0]<<8|(G[o+34|0]<<16|G[o+35|0]<<24);D[q+16|0]=m;D[q+17|0]=m>>>8;D[q+18|0]=m>>>16;D[q+19|0]=m>>>24;D[q+20|0]=r;D[q+21|0]=r>>>8;D[q+22|0]=r>>>16;D[q+23|0]=r>>>24;r=G[o+44|0]|G[o+45|0]<<8|(G[o+46|0]<<16|G[o+47|0]<<24);m=G[o+40|0]|G[o+41|0]<<8|(G[o+42|0]<<16|G[o+43|0]<<24);D[q+24|0]=m;D[q+25|0]=m>>>8;D[q+26|0]=m>>>16;D[q+27|0]=m>>>24;D[q+28|0]=r;D[q+29|0]=r>>>8;D[q+30|0]=r>>>16;D[q+31|0]=r>>>24;o=o+32|0;q=q+32|0;if(t>>>0>q>>>0){continue}break}}if(A>>>0>4294967176){s=A;break I}n=n+A|0;p=p+1|0;if(($|0)!=(p|0)){continue}break}}m=F[u+92>>2];F[z>>2]=F[u+88>>2];F[z+4>>2]=m;F[z+8>>2]=F[u+96>>2];q=F[u+188>>2]}s=-70;m=na-q|0;if(m>>>0>ka-n>>>0){break I}if(n){m=Va(n,q,m)+m|0}else{m=0}s=m-U|0;break I}F[x+29596>>2]=0}n=p;o=0;s=0;w=Ea-112|0;Ea=w;p=F[x+29552>>2];F[w+92>>2]=p;ca=U+ea|0;ea=F[x+29568>>2]+p|0;qb:{rb:{if(!$){m=U;break rb}ia=F[x+29368>>2];X=F[x+29364>>2];t=F[x+29360>>2];F[x+29444>>2]=1;F[w+76>>2]=F[x+26676>>2];q=x+26668|0;m=F[q+4>>2];F[w+68>>2]=F[q>>2];F[w+72>>2]=m;if(!n){s=-20;break qb}F[w+36>>2]=R;F[w+40>>2]=R+4;sb:{tb:{ub:{if(n>>>0>=4){o=n-4|0;m=R+o|0;F[w+32>>2]=m;m=G[m|0]|G[m+1|0]<<8|(G[m+2|0]<<16|G[m+3|0]<<24);F[w+24>>2]=m;if(m>>>0>=16777216){break ub}s=-20;break qb}F[w+32>>2]=R;m=G[R|0];F[w+24>>2]=m;vb:{switch(n-2|0){case 1:m=G[R+2|0]<<16|m;case 0:m=(G[R+1|0]<<8)+m|0;F[w+24>>2]=m;break;default:break vb}}p=G[(n+R|0)-1|0];if(p){break tb}s=-20;break qb}p=O(m>>>24|0)-23|0;F[w+28>>2]=p;if(n>>>0<=4294967176){break sb}s=-20;break qb}p=(O(p)-(n<<3)|0)+9|0;F[w+28>>2]=p}A=F[x>>2];n=F[A+4>>2];v=p+n|0;F[w+28>>2]=v;F[w+44>>2]=F[(n<<2)+402992>>2]&m>>>0-v;wb:{if(v>>>0>32){break wb}xb:{if((o|0)>=4){o=o-(v>>>3|0)|0;F[w+32>>2]=R+o;v=v&7;break xb}if(!o){o=0;break wb}m=v>>>3|0;m=(o+R|0)-m>>>0
>>q|0;n=n+q|0;h=h-q|0;if(h){continue}break}h=(n>>3)+e|0;r=n&7;q=(F[u+12>>2]<<2&60)<
>>0>8-q>>>0){k=k+p|0;D[k+17|0]=G[k+17|0]|C>>>8}n=n+o|0;h=h+1|0;if((t|0)!=(h|0)){continue}break}break m}B=(r+t|0)/(q|0)|0;if((B|0)<=0){break m}if(!k){n=0;while(1){D[p+12|0]=0;F[p+8>>2]=0;h=L(n,q);if((h|0)<(t|0)){k=h+s|0;h=t-h|0;h=(h|0)>(q|0)?q:h;Va(p+8|0,k,(h|0)<=1?1:h)}Vb(p+16|0,p+8|0,p+44|0,o);n=n+1|0;if((B|0)!=(n|0)){continue}break}break m}h=L(o,3);k=h+7|0;if(!k){break m}S=o+3|0;Q=h+5|0;h=o<<1;K=h+5|0;A=h+3|0;v=-1<
>>3&3)<>>5&3)<>3)|0;V=y;ja=G[y|0];y=n&7;D[V|0]=ja|r<
>>q|0;k=k+q|0;h=h-q|0;if(h){continue}break};p=r|r<<8;h=16;while(1){r=(k>>3)+e|0;o=r;q=G[r|0];r=k&7;D[o|0]=q|p<
>>0>q>>>0?q:n;h=h+q|0;k=k>>>q|0;n=n-q|0;if(n){continue}break}v=(r&-2)==4;if(v){k=F[w+92>>2];n=2;while(1){q=(h>>>3|0)+e|0;o=q;u=G[q|0];q=h&7;D[o|0]=u|k<
>>0>q>>>0?q:n;h=h+q|0;k=k>>>q|0;n=n-q|0;if(n){continue}break}}if((r|0)==4){k=(h>>>3|0)+e|0;D[k|0]=G[k|0]|F[w+88>>2]<<(h&7);h=h+1|0;break P}if(za>>>0<3){break P}}n=142>>>r&1?6:4;k=F[w+4>>2];while(1){q=(h>>>3|0)+e|0;o=q;u=G[q|0];q=h&7;D[o|0]=u|k<
>>0>q>>>0?q:n;h=h+q|0;k=k>>>q|0;n=n-q|0;if(n){continue}break}}O=t>>>0<=1?1:t;B=r>>>0>3?4:3;o=0;u=r+10152|0;C=r+10144|0;while(1){y=(p+48|0)+o|0;S=(p- -64|0)+o|0;q=0;while(1){s=q<<2;Q=(o|0)==3;n=Q?D[u|0]:G[C|0];if(n){k=G[s+S|0];while(1){x=(h>>>3|0)+e|0;K=x;V=G[x|0];x=h&7;D[K|0]=V|k<
>>0>s>>>0?s:n;h=h+s|0;k=k>>>s|0;n=n-s|0;if(n){continue}break}}q=q+1|0;if((O|0)!=(q|0)){continue}break}o=o+1|0;if((B|0)!=(o|0)){continue}break};if(!(52>>>r&1)){q=t>>>0<=1?1:t;n=0;while(1){k=(h>>>3|0)+e|0;u=(p+16|0)+(n<<3)|0;D[k|0]=G[k|0]|F[u>>2]<<(h&7);k=h+1|0;if((r|0)==1){h=k}else{o=(k>>>3|0)+e|0;D[o|0]=G[o|0]|F[u+4>>2]<<(k&7);h=h+2|0}n=n+1|0;if((q|0)!=(n|0)){continue}break}}C=0;q=F[p+8>>2];u=F[p+4>>2];t=F[p>>2];x=r+10136|0;O=r+10160|0;while(1){k=F[w+88>>2];Q:{if(k){o=p+80|0;n=G[O|0]-k|0;break Q}o=p+96|0;n=G[x|0]}s=C<<2;n=n-((s|0)==(t|0)|(s|0)==(u|0)|(q|0)==(s|0))|0;if(n){k=G[o+s|0];while(1){o=(h>>>3|0)+e|0;y=o;B=G[o|0];o=h&7;D[y|0]=B|k<>2]=b;a=F[b+(t<<2)>>2];ga:{if(a&32768){P=(a>>>1&15)+398144|0;k=(a>>>5&31)+398112|0;j=(a>>>10&31)+398112|0;f=255;break ga}P=(a>>>1&7)+398160|0;k=(a>>>4&15)+398144|0;j=(a>>>8&15)+398144|0;f=G[(a>>>12&7)+398168|0]}e=d+(v+160|0)|0;F[e>>2]=G[P|0]+(G[j|0]+(f+G[k|0]|0)|0);f=a>>>16|0;ha:{if((a|0)<0){P=(f&31)+398112|0;k=(a>>>21&31)+398112|0;j=(a>>>26&31)+398112|0;a=255;break ha}P=(f&15)+398144|0;k=(a>>>20&15)+398144|0;j=(a>>>24&15)+398144|0;a=G[(a>>>28|0)+398168|0]}f=d+(v+96|0)|0;F[f>>2]=G[P|0]+(G[j|0]+(a+G[k|0]|0)|0);a=F[b>>2];ia:{if(a&32768){P=(a>>>1&15)+398144|0;k=(a>>>5&31)+398112|0;j=(a>>>10&31)+398112|0;d=255;break ia}P=(a>>>1&7)+398160|0;k=(a>>>4&15)+398144|0;j=(a>>>8&15)+398144|0;d=G[(a>>>12&7)+398168|0]}F[e+16>>2]=G[P|0]+(G[j|0]+(d+G[k|0]|0)|0);d=a>>>16|0;ja:{if((a|0)<0){P=(d&31)+398112|0;k=(a>>>21&31)+398112|0;j=(a>>>26&31)+398112|0;a=255;break ja}P=(d&15)+398144|0;k=(a>>>20&15)+398144|0;j=(a>>>24&15)+398144|0;a=G[(a>>>28|0)+398168|0]}F[f+16>>2]=G[P|0]+(G[j|0]+(a+G[k|0]|0)|0);b=F[b+Ja>>2];ka:{if(b&32768){P=(b>>>5&31)+398112|0;k=(b>>>10&31)+398112|0;j=255;a=(b>>>1&15)+398144|0;break ka}P=(b>>>4&15)+398144|0;k=(b>>>8&15)+398144|0;j=G[(b>>>12&7)+398168|0];a=(b>>>1&7)+398160|0}F[e+32>>2]=G[a|0]+(G[k|0]+(G[P|0]+j|0)|0);a=b>>>16|0;la:{if((b|0)<0){d=(a&31)+398112|0;P=(b>>>26&31)+398112|0;a=255;b=(b>>>21&31)+398112|0;break la}d=(a&15)+398144|0;P=(b>>>24&15)+398144|0;a=G[(b>>>28|0)+398168|0];b=(b>>>20&15)+398144|0}F[f+32>>2]=G[d|0]+(G[P|0]+(G[b|0]+a|0)|0);c=c+1|0;if((c|0)!=3){continue}break}d=F[v+96>>2];e=F[v+160>>2];ma:{if((n|0)<=0){c=d;b=e;break ma}Ka=H[((y&255)<<1)+396320>>1]|H[(y>>>7&33554430)+396320>>1]<<16;La=y>>>S<
>2];r=F[v+104>>2];a=F[v+184>>2];q=F[v+168>>2];k=F[v+116>>2];m=F[v+100>>2];u=F[v+112>>2];j=F[v+180>>2];z=F[v+164>>2];l=F[v+176>>2];Ba=F[v+92>>2];ta=F[v+88>>2];Na=F[v+84>>2];while(1){b=l;f=j;c=u;g=v+232|0;if(Za(C+(ha<<4)|0,g,0,0)){$a(F[v+336>>2],F[v+340>>2],va,g,v+16|0)}g=k;h=a;i=p;a=Ka|H[(P>>>7&33554430)+396320>>1]<<17|H[((P&255)<<1)+396320>>1]<<1;j=a;na:{if((n|0)==(o|0)){break na}a=a&ua;j=a|P>>>S<
>>0>o>>>0){break na}j=a|La}Ga=(j<<3)+s|0;F[Ga+4>>2]=F[(ha<<2)+B>>2];P=P+1|0;j=(t&P)<<2;a=F[j+Na>>2];oa:{if(a&32768){u=(a>>>10&31)+398112|0;k=255;l=(a>>>1&15)+398144|0;x=(a>>>5&31)+398112|0;break oa}u=(a>>>8&15)+398144|0;k=G[(a>>>12&7)+398168|0];l=(a>>>1&7)+398160|0;x=(a>>>4&15)+398144|0}p=a>>>16|0;K=G[x|0];u=G[u|0];A=G[l|0];pa:{if((a|0)<0){l=(p&31)+398112|0;p=(a>>>21&31)+398112|0;I=255;a=(a>>>26&31)+398112|0;break pa}l=(p&15)+398144|0;p=(a>>>20&15)+398144|0;I=G[(a>>>28|0)+398168|0];a=(a>>>24&15)+398144|0}p=G[p|0];ga=G[a|0];W=G[l|0];a=F[j+ta>>2];qa:{if(a&32768){x=(a>>>5&31)+398112|0;O=(a>>>10&31)+398112|0;l=255;T=(a>>>1&15)+398144|0;break qa}x=(a>>>4&15)+398144|0;O=(a>>>8&15)+398144|0;l=G[(a>>>12&7)+398168|0];T=(a>>>1&7)+398160|0}K=k+K|0;p=p+I|0;k=a>>>16|0;l=G[x|0]+l|0;I=G[O|0];V=G[T|0];ra:{if((a|0)<0){k=(k&31)+398112|0;x=(a>>>21&31)+398112|0;O=(a>>>26&31)+398112|0;a=255;break ra}k=(k&15)+398144|0;x=(a>>>20&15)+398144|0;O=(a>>>24&15)+398144|0;a=G[(a>>>28|0)+398168|0]}u=u+K|0;X=p+ga|0;l=l+I|0;ea=G[O|0]+(a+G[x|0]|0)|0;k=G[k|0];p=F[j+Ba>>2];sa:{if(p&32768){I=(p>>>1&15)+398144|0;x=(p>>>10&31)+398112|0;O=255;xa=(p>>>5&31)+398112|0;break sa}I=(p>>>1&7)+398160|0;x=(p>>>8&15)+398144|0;O=G[(p>>>12&7)+398168|0];xa=(p>>>4&15)+398144|0}fa=p>>>16|0;j=b+f|0;aa=L(j,6);ka=aa+(e+z<<1)|0;a=(G[v+23|0]+(G[v+22|0]+(G[v+21|0]+G[v+20|0]|0)|0)<<8)-(ka<<4)|0;Z=c+g|0;ba=L(Z,6);qa=ba+(d+m<<1)|0;za=(qa|0)<(ka|0);ga=za?0-a|0:a;K=b+e|0;a=f+z|0;T=K+a|0;Y=(G[v+19|0]+(G[v+18|0]+(G[v+17|0]+G[v+16|0]|0)|0)<<8)-(T<<6)|0;pa=0-Y|0;ja=Y;Y=c+d|0;_=g+m|0;Ha=Y+_<<2;Aa=T<<2;Ia=(Ha|0)<(Aa|0);T=Ia?pa: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p+(bb+lb|0)|0;fa=(K|0)<(O|0);x=fa?pa:xa;I=qa-ka|0;I=za?0-I|0:I;qa=(ga|0)>(L(I,13)|0)?12:(ga|0)>I<<3?8:((ga|0)>(L(I,3)|0))<<2;I=Ha-Aa|0;I=Ia?0-I|0:I;T=qa|((T|0)>(L(I,13)|0)?3:(T|0)>I<<3?2:(T|0)>(L(I,3)|0));I=Ca-la|0;I=Ma?0-I|0:I;T=T|((Y|0)>(L(I,13)|0)?768:(Y|0)>I<<3?512:((Y|0)>(L(I,3)|0))<<8);I=Pa-ma|0;I=Qa?0-I|0:I;T=T|((d|0)>(L(I,13)|0)?3072:(d|0)>I<<3?2048:((d|0)>(L(I,3)|0))<<10);d=Sa-Ua|0;d=Da?0-d|0:d;e=T|((e|0)>(L(d,13)|0)?48:(e|0)>d<<3?32:((e|0)>(L(d,3)|0))<<4);d=Xa-Z|0;d=Ya?0-d|0:d;e=e|((A|0)>(L(d,13)|0)?192:(A|0)>d<<3?128:((A|0)>(L(d,3)|0))<<6);d=_a-ba|0;d=ab?0-d|0:d;e=e|((X|0)>(L(d,13)|0)?12288:(X|0)>d<<3?8192:((X|0)>(L(d,3)|0))<<12);d=wa-ca|0;d=cb?0-d|0:d;e=e|((ea|0)>(L(d,13)|0)?49152:(ea|0)>d<<3?32768:((ea|0)>(L(d,3)|0))<<14);d=db-eb|0;d=fb?0-d|0:d;e=e|((_|0)>(L(d,13)|0)?196608:(_|0)>d<<3?131072:((_|0)>(L(d,3)|0))<<16);d=gb-da|0;d=hb?0-d|0:d;e=e|((m|0)>(L(d,13)|0)?786432:(m|0)>d<<3?524288:((m|0)>(L(d,3)|0))<<18);d=ib-oa|0;d=jb?0-d|0:d;e=e|((z|0)>(L(d,13)|0)?50331648:(z|0)>d<<3?33554432:((z|0)>(L(d,3)|0))<<24);d=nb-ja|0;d=ob?0-d|0:d;e=e|((r|0)>(L(d,13)|0)?201326592:(r|0)>d<<3?134217728:((r|0)>(L(d,3)|0))<<26);d=pb-qb|0;d=rb?0-d|0:d;e=e|((q|0)>(L(d,13)|0)?3145728:(q|0)>d<<3?2097152:((q|0)>(L(d,3)|0))<<20);d=Eb-na|0;d=Fb?0-d|0:d;e=e|((aa|0)>(L(d,13)|0)?12582912:(aa|0)>d<<3?8388608:((aa|0)>(L(d,3)|0))<<22);d=V-ra|0;d=Hb?0-d|0:d;e=e|((W|0)>(L(d,13)|0)?805306368:(W|0)>d<<3?536870912:((W|0)>(L(d,3)|0))<<28);d=K-O|0;d=fa?0-d|0:d;F[Ga>>2]=e|((x|0)>(L(d,13)|0)?-1073741824:(x|0)>d<<3?-2147483648:((x|0)>(L(d,3)|0))<<30);ha=ha+1|0;r=i;q=h;m=g;z=f;e=b;d=c;if((n|0)!=(P|0)){continue}break}F[v+180>>2]=j;F[v+164>>2]=z;F[v+176>>2]=l;F[v+112>>2]=u;F[v+116>>2]=k;F[v+100>>2]=m;F[v+184>>2]=a;F[v+168>>2]=h;F[v+120>>2]=p;F[v+104>>2]=r}F[v+96>>2]=c;F[v+160>>2]=b;y=y+1|0;if((o|0)!=(y|0)){continue}break}B=F[v+4>>2]}if(!B){break da}Ra(B)}Ea=v+384|0;break ca}o=d;ia=a;d=0;s=Ea-384|0;Ea=s;h=c;ua:{if(!b|!h){break ua}if((Xe(b<<2)|0)!=1){break ua}if((Xe(h<<2)|0)!=1){break ua}F[s+12>>2]=0;F[s+4>>2]=0;F[s+8>>2]=0;g=b;a=L(h,b);if(a){Wa(s+4|0,a,(a|0)==1,4);C=F[s+4>>2];b=F[s+8>>2];Ta(C+(b<<2)|0,0,a-b<<2);F[s+8>>2]=a}ra=s+344|0;va:{while(1){ua=L(d,g);a=0;while(1){va=a+ua|0;b=s+232|0;if(!Za(o+(va<<4)|0,b,0,0)){break va}$a(F[s+336>>2],F[s+340>>2],ra,b,s+160|0);b=G[s+162|0];c=G[s+166|0];f=b>>>0>c>>>0?b:c;e=G[s+170|0];i=e>>>0