Lines Matching refs:Db
1 input.shift()}),put_char:(function(tty,val){if(val===null||val===10){Module["print"](UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}}),flush:(function(tty){if(tty.output&&tty.output.length>0){Module["print"](UTF8ArrayToString(tty.output,0));tty.output=[]}})},default_tty1_ops:{put_char:(function(tty,val){if(val===null||val===10){Module["printErr"](UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}}),flush:(function(tty){if(tty.output&&tty.output.length>0){Module["printErr"](UTF8ArrayToString(tty.output,0));tty.output=[]}})}};var MEMFS={ops_table:null,mount:(function(mount){return MEMFS.createNode(null,"/",16384|511,0)}),createNode:(function(parent,name,mode,dev){if(FS.isBlkdev(mode)||FS.isFIFO(mode)){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(!MEMFS.ops_table){MEMFS.ops_table={dir:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,lookup:MEMFS.node_ops.lookup,mknod:MEMFS.node_ops.mknod,rename:MEMFS.node_ops.rename,unlink:MEMFS.node_ops.unlink,rmdir:MEMFS.node_ops.rmdir,readdir:MEMFS.node_ops.readdir,symlink:MEMFS.node_ops.symlink},stream:{llseek:MEMFS.stream_ops.llseek}},file:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:{llseek:MEMFS.stream_ops.llseek,read:MEMFS.stream_ops.read,write:MEMFS.stream_ops.write,allocate:MEMFS.stream_ops.allocate,mmap:MEMFS.stream_ops.mmap}},link:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,readlink:MEMFS.node_ops.readlink},stream:{}},chrdev:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:FS.chrdev_stream_ops}}}var node=FS.createNode(parent,name,mode,dev);if(FS.isDir(node.mode)){node.node_ops=MEMFS.ops_table.dir.node;node.stream_ops=MEMFS.ops_table.dir.stream;node.contents={}}else if(FS.isFile(node.mode)){node.node_ops=MEMFS.ops_table.file.node;node.stream_ops=MEMFS.ops_table.file.stream;node.usedBytes=0;node.contents=null}else if(FS.isLink(node.mode)){node.node_ops=MEMFS.ops_table.link.node;node.stream_ops=MEMFS.ops_table.link.stream}else if(FS.isChrdev(node.mode)){node.node_ops=MEMFS.ops_table.chrdev.node;node.stream_ops=MEMFS.ops_table.chrdev.stream}node.timestamp=Date.now();if(parent){parent.contents[name]=node}return node}),getFileDataAsRegularArray:(function(node){if(node.contents&&node.contents.subarray){var arr=[];for(var i=0;i<node.usedBytes;++i)arr.push(node.contents[i]);return arr}return node.contents}),getFileDataAsTypedArray:(function(node){if(!node.contents)return new Uint8Array;if(node.contents.subarray)return node.contents.subarray(0,node.usedBytes);return new Uint8Array(node.contents)}),expandFileStorage:(function(node,newCapacity){if(node.contents&&node.contents.subarray&&newCapacity>node.contents.length){node.contents=MEMFS.getFileDataAsRegularArray(node);node.usedBytes=node.contents.length}if(!node.contents||node.contents.subarray){var prevCapacity=node.contents?node.contents.buffer.byteLength:0;if(prevCapacity>=newCapacity)return;var CAPACITY_DOUBLING_MAX=1024*1024;newCapacity=Math.max(newCapacity,prevCapacity*(prevCapacity<CAPACITY_DOUBLING_MAX?2:1.125)|0);if(prevCapacity!=0)newCapacity=Math.max(newCapacity,256);var oldContents=node.contents;node.contents=new Uint8Array(newCapacity);if(node.usedBytes>0)node.contents.set(oldContents.subarray(0,node.usedBytes),0);return}if(!node.contents&&newCapacity>0)node.contents=[];while(node.contents.length<newCapacity)node.contents.push(0)}),resizeFileStorage:(function(node,newSize){if(node.usedBytes==newSize)return;if(newSize==0){node.contents=null;node.usedBytes=0;return}if(!node.contents||node.contents.subarray){var oldContents=node.contents;node.contents=new Uint8Array(new ArrayBuffer(newSize));if(oldContents){node.contents.set(oldContents.subarray(0,Math.min(newSize,node.usedBytes)))}node.usedBytes=newSize;return}if(!node.contents)node.contents=[];if(node.contents.length>newSize)node.contents.length=newSize;else while(node.contents.length<newSize)node.contents.push(0);node.usedBytes=newSize}),node_ops:{getattr:(function(node){var attr={};attr.dev=FS.isChrdev(node.mode)?node.id:1;attr.ino=node.id;attr.mode=node.mode;attr.nlink=1;attr.uid=0;attr.gid=0;attr.rdev=node.rdev;if(FS.isDir(node.mode)){attr.size=4096}else if(FS.isFile(node.mode)){attr.size=node.usedBytes}else if(FS.isLink(node.mode)){attr.size=node.link.length}else{attr.size=0}attr.atime=new Date(node.timestamp);attr.mtime=new Date(node.timestamp);attr.ctime=new Date(node.timestamp);attr.blksize=4096;attr.blocks=Math.ceil(attr.size/attr.blksize);return attr}),setattr:(function(node,attr){if(attr.mode!==undefined){node.mode=attr.mode}if(attr.timestamp!==undefined){node.timestamp=attr.timestamp}if(attr.size!==undefined){MEMFS.resizeFileStorage(node,attr.size)}}),lookup:(function(parent,name){throw FS.genericErrors[ERRNO_CODES.ENOENT]}),mknod:(function(parent,name,mode,dev){return MEMFS.createNode(parent,name,mode,dev)}),rename:(function(old_node,new_dir,new_name){if(FS.isDir(old_node.mode)){var new_node;try{new_node=FS.lookupNode(new_dir,new_name)}catch(e){}if(new_node){for(var i in new_node.contents){throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY)}}}delete old_node.parent.contents[old_node.name];old_node.name=new_name;new_dir.contents[new_name]=old_node;old_node.parent=new_dir}),unlink:(function(parent,name){delete parent.contents[name]}),rmdir:(function(parent,name){var node=FS.lookupNode(parent,name);for(var i in node.contents){throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY)}delete parent.contents[name]}),readdir:(function(node){var entries=[".",".."];for(var key in node.contents){if(!node.contents.hasOwnProperty(key)){continue}entries.push(key)}return entries}),symlink:(function(parent,newname,oldpath){var node=MEMFS.createNode(parent,newname,511|40960,0);node.link=oldpath;return node}),readlink:(function(node){if(!FS.isLink(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return node.link})},stream_ops:{read:(function(stream,buffer,offset,length,position){var contents=stream.node.contents;if(position>=stream.node.usedBytes)return 0;var size=Math.min(stream.node.usedBytes-position,length);assert(size>=0);if(size>8&&contents.subarray){buffer.set(contents.subarray(position,position+size),offset)}else{for(var i=0;i<size;i++)buffer[offset+i]=contents[position+i]}return size}),write:(function(stream,buffer,offset,length,position,canOwn){if(!length)return 0;var node=stream.node;node.timestamp=Date.now();if(buffer.subarray&&(!node.contents||node.contents.subarray)){if(canOwn){assert(position===0,"canOwn must imply no weird position inside the file");node.contents=buffer.subarray(offset,offset+length);node.usedBytes=length;return length}else if(node.usedBytes===0&&position===0){node.contents=new Uint8Array(buffer.subarray(offset,offset+length));node.usedBytes=length;return length}else if(position+length<=node.usedBytes){node.contents.set(buffer.subarray(offset,offset+length),position);return length}}MEMFS.expandFileStorage(node,position+length);if(node.contents.subarray&&buffer.subarray)node.contents.set(buffer.subarray(offset,offset+length),position);else for(var i=0;i<length;i++){node.contents[position+i]=buffer[offset+i]}node.usedBytes=Math.max(node.usedBytes,position+length);return length}),llseek:(function(stream,offset,whence){var position=offset;if(whence===1){position+=stream.position}else if(whence===2){if(FS.isFile(stream.node.mode)){position+=stream.node.usedBytes}}if(position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return position}),allocate:(function(stream,offset,length){MEMFS.expandFileStorage(stream.node,offset+length);stream.node.usedBytes=Math.max(stream.node.usedBytes,offset+length)}),mmap:(function(stream,buffer,offset,length,position,prot,flags){if(!FS.isFile(stream.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}var ptr;var allocated;var contents=stream.node.contents;if(!(flags&2)&&(contents.buffer===buffer||contents.buffer===buffer.buffer)){allocated=false;ptr=contents.byteOffset}else{if(position>0||position+length<stream.node.usedBytes){if(contents.subarray){contents=contents.subarray(position,position+length)}else{contents=Array.prototype.slice.call(contents,position,position+length)}}allocated=true;ptr=_malloc(length);if(!ptr){throw new FS.ErrnoError(ERRNO_CODES.ENOMEM)}buffer.set(contents,ptr)}return{ptr:ptr,allocated:allocated}})}};var IDBFS={dbs:{},indexedDB:(function(){if(typeof indexedDB!=="undefined")return indexedDB;var ret=null;if(typeof window==="object")ret=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB;assert(ret,"IDBFS used, but indexedDB not supported");return ret}),DB_VERSION:21,DB_STORE_NAME:"FILE_DATA",mount:(function(mount){return MEMFS.mount.apply(null,arguments)}),syncfs:(function(mount,populate,callback){IDBFS.getLocalSet(mount,(function(err,local){if(err)return callback(err);IDBFS.getRemoteSet(mount,(function(err,remote){if(err)return callback(err);var src=populate?remote:local;var dst=populate?local:remote;IDBFS.reconcile(src,dst,callback)}))}))}),getDB:(function(name,callback){var db=IDBFS.dbs[name];if(db){return callback(null,db)}var req;try{req=IDBFS.indexedDB().open(name,IDBFS.DB_VERSION)}catch(e){return callback(e)}req.onupgradeneeded=(function(e){var db=e.target.result;var transaction=e.target.transaction;var fileStore;if(db.objectStoreNames.contains(IDBFS.DB_STORE_NAME)){fileStore=transaction.objectStore(IDBFS.DB_STORE_NAME)}else{fileStore=db.createObjectStore(IDBFS.DB_STORE_NAME)}if(!fileStore.indexNames.contains("timestamp")){fileStore.createIndex("timestamp","timestamp",{unique:false})}});req.onsuccess=(function(){db=req.result;IDBFS.dbs[name]=db;callback(null,db)});req.onerror=(function(e){callback(this.error);e.preventDefault()})}),getLocalSet:(function(mount,callback){var entries={};function isRealDir(p){return p!=="."&&p!==".."}function toAbsolute(root){return(function(p){return PATH.join2(root,p)})}var check=FS.readdir(mount.mountpoint).filter(isRealDir).map(toAbsolute(mount.mountpoint));while(check.length){var path=check.pop();var stat;try{stat=FS.stat(path)}catch(e){return callback(e)}if(FS.isDir(stat.mode)){check.push.apply(check,FS.readdir(path).filter(isRealDir).map(toAbsolute(path)))}entries[path]={timestamp:stat.mtime}}return callback(null,{type:"local",entries:entries})}),getRemoteSet:(function(mount,callback){var entries={};IDBFS.getDB(mount.mountpoint,(function(err,db){if(err)return callback(err);var transaction=db.transaction([IDBFS.DB_STORE_NAME],"readonly");transaction.onerror=(function(e){callback(this.error);e.preventDefault()});var store=transaction.objectStore(IDBFS.DB_STORE_NAME);var index=store.index("timestamp");index.openKeyCursor().onsuccess=(function(event){var cursor=event.target.result;if(!cursor){return callback(null,{type:"remote",db:db,entries:entries})}entries[cursor.primaryKey]={timestamp:cursor.key};cursor.continue()})}))}),loadLocalEntry:(function(path,callback){var stat,node;try{var lookup=FS.lookupPath(path);node=lookup.node;stat=FS.stat(path)}catch(e){return callback(e)}if(FS.isDir(stat.mode)){return callback(null,{timestamp:stat.mtime,mode:stat.mode})}else if(FS.isFile(stat.mode)){node.contents=MEMFS.getFileDataAsTypedArray(node);return callback(null,{timestamp:stat.mtime,mode:stat.mode,contents:node.contents})}else{return callback(new Error("node type not supported"))}}),storeLocalEntry:(function(path,entry,callback){try{if(FS.isDir(entry.mode)){FS.mkdir(path,entry.mode)}else if(FS.isFile(entry.mode)){FS.writeFile(path,entry.contents,{encoding:"binary",canOwn:true})}else{return callback(new Error("node type not supported"))}FS.chmod(path,entry.mode);FS.utime(path,entry.timestamp,entry.timestamp)}catch(e){return callback(e)}callback(null)}),removeLocalEntry:(function(path,callback){try{var lookup=FS.lookupPath(path);var stat=FS.stat(path);if(FS.isDir(stat.mode)){FS.rmdir(path)}else if(FS.isFile(stat.mode)){FS.unlink(path)}}catch(e){return callback(e)}callback(null)}),loadRemoteEntry:(function(store,path,callback){var req=store.get(path);req.onsuccess=(function(event){callback(null,event.target.result)});req.onerror=(function(e){callback(this.error);e.preventDefault()})}),storeRemoteEntry:(function(store,path,entry,callback){var req=store.put(entry,path);req.onsuccess=(function(){callback(null)});req.onerror=(function(e){callback(this.error);e.preventDefault()})}),removeRemoteEntry:(function(store,path,callback){var req=store.delete(path);req.onsuccess=(function(){callback(null)});req.onerror=(function(e){callback(this.error);e.preventDefault()})}),reconcile:(function(src,dst,callback){var total=0;var create=[];Object.keys(src.entries).forEach((function(key){var e=src.entries[key];var e2=dst.entries[key];if(!e2||e.timestamp>e2.timestamp){create.push(key);total++}}));var remove=[];Object.keys(dst.entries).forEach((function(key){var e=dst.entries[key];var e2=src.entries[key];if(!e2){remove.push(key);total++}}));if(!total){return callback(null)}var errored=false;var completed=0;var db=src.type==="remote"?src.db:dst.db;var transaction=dbdb");var db=openRequest.result;db.createObjectStore(FS.DB_STORE_NAME)};openRequest.onsuccess=function openRequest_onsuccess(){var db=openRequest.result;var transaction=db.transaction([FS.DB_STORE_NAME],"readwrite");var files=transaction.objectStore(FS.DB_STORE_NAME);var ok=0,fail=0,total=paths.length;function finish(){if(fail==0)onload();else onerror()}paths.forEach((function(path){var putRequest=files.put(FS.analyzePath(path).object.contents,path);putRequest.onsuccess=function putRequest_onsuccess(){ok++;if(ok+fail==total)finish()};putRequest.onerror=function putRequest_onerror(){fail++;if(ok+fail==total)finish()}}));transaction.onerror=onerror};openRequest.onerror=onerror}),loadFilesFromDB:(function(paths,onload,onerror){onload=onload||(function(){});onerror=onerror||(function(){});var indexedDB=FS.indexedDB();try{var openRequest=indexedDB.open(FS.DB_NAME(),FS.DB_VERSION)}catch(e){return onerror(e)}openRequest.onupgradeneeded=onerror;openRequest.onsuccess=function openRequest_onsuccess(){var db=openRequest.result;try{var transaction=db:nullFunc_vid,"nullFunc_di":nullFunc_di,"nullFunc_i":nullFunc_i,"nullFunc_iiiiiiiiii":nullFunc_iiiiiiiiii,"nullFunc_vii":nullFunc_vii,"nullFunc_iiiiiii":nullFunc_iiiiiii,"nullFunc_ii":nullFunc_ii,"nullFunc_viii":nullFunc_viii,"nullFunc_v":nullFunc_v,"nullFunc_iiiiiiiii":nullFunc_iiiiiiiii,"nullFunc_iiiii":nullFunc_iiiii,"nullFunc_viiii":nullFunc_viiii,"nullFunc_iii":nullFunc_iii,"nullFunc_iiid":nullFunc_iiid,"nullFunc_iiiiii":nullFunc_iiiiii,"invoke_iiiiiiii":invoke_iiiiiiii,"invoke_iiii":invoke_iiii,"invoke_viiiiii":invoke_viiiiii,"invoke_vi":invoke_vi,"invoke_viiiii":invoke_viiiii,"invoke_dii":invoke_dii,"invoke_vid":invoke_vid,"invoke_di":invoke_di,"invoke_i":invoke_i,"invoke_iiiiiiiiii":invoke_iiiiiiiiii,"invoke_vii":invoke_vii,"invoke_iiiiiii":invoke_iiiiiii,"invoke_ii":invoke_ii,"invoke_viii":invoke_viii,"invoke_v":invoke_v,"invoke_iiiiiiiii":invoke_iiiiiiiii,"invoke_iiiii":invoke_iiiii,"invoke_viiii":invoke_viiii,"invoke_iii":invoke_iii,"invoke_iiid":invoke_iiid,"invoke_iiiiii":invoke_iiiiii,"_dlerror":_dlerror,"_utimes":_utimes,"_getuid":_getuid,"_send":_send,"_dlsym":_dlsym,"_mknod":_mknod,"_chown":_chown,"_lseek":_lseek,"_emscripten_set_main_loop_timing":_emscripten_set_main_loop_timing,"_access":_access,"_fstat":_fstat,"_chmod":_chmod,"_rmdir":_rmdir,"___assert_fail":___assert_fail,"_usleep":_usleep,"___buildEnvironment":___buildEnvironment,"_fflush":_fflush,"_pwrite":_pwrite,"_strerror_r":_strerror_r,"_localtime_r":_localtime_r,"_tzset":_tzset,"_open":_open,"_getpid":_getpid,"_sbrk":_sbrk,"_fcntl":_fcntl,"_emscripten_memcpy_big":_emscripten_memcpy_big,"_unlink":_unlink,"_sysconf":_sysconf,"_fchmod":_fchmod,"___setErrNo":___setErrNo,"_ftruncate":_ftruncate,"_mkdir":_mkdir,"_pread":_pread,"_mkport":_mkport,"_dlopen":_dlopen,"_dlclose":_dlclose,"_write":_write,"_fsync":_fsync,"___errno_location":___errno_location,"_stat":_stat,"_recv":_recv,"_geteuid":_geteuid,"_getenv":_getenv,"_sleep":_sleep,"_emscripten_set_main_loop":_emscripten_set_main_loop,"_abort":_abort,"_time":_time,"_fchown":_fchown,"_strerror":_strerror,"_gettimeofday":_gettimeofday,"_munmap":_munmap,"_mmap":_mmap,"_localtime":_localtime,"_getcwd":_getcwd,"_close":_close,"_read":_read,"_truncate":_truncate,"STACKTOP":STACKTOP,"STACK_MAX":STACK_MAX,"tempDoublePtr":tempDoublePtr,"ABORT":ABORT,"cttz_i8":cttz_i8};// EMSCRIPTEN_START_ASM
3 "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.cttz_i8|0;var n=0;var o=0;var p=0;var q=0;var r=global.NaN,s=global.Infinity;var t=0,u=0,v=0,w=0,x=0.0,y=0,z=0,A=0,B=0.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=0;var M=global.Math.floor;var N=global.Math.abs;var O=global.Math.sqrt;var P=global.Math.pow;var Q=global.Math.cos;var R=global.Math.sin;var S=global.Math.tan;var T=global.Math.acos;var U=global.Math.asin;var V=global.Math.atan;var W=global.Math.atan2;var X=global.Math.exp;var Y=global.Math.log;var Z=global.Math.ceil;var _=global.Math.imul;var $=global.Math.min;var aa=global.Math.clz32;var ba=env.abort;var ca=env.assert;var da=env.SAFE_HEAP_LOAD;var ea=env.SAFE_HEAP_STORE;var fa=env.SAFE_FT_MASK;var ga=env.nullFunc_iiiiiiii;var ha=env.nullFunc_iiii;var ia=env.nullFunc_viiiiii;var ja=env.nullFunc_vi;var ka=env.nullFunc_viiiii;var la=env.nullFunc_dii;var ma=env.nullFunc_vid;var na=env.nullFunc_di;var oa=env.nullFunc_i;var pa=env.nullFunc_iiiiiiiiii;var qa=env.nullFunc_vii;var ra=env.nullFunc_iiiiiii;var sa=env.nullFunc_ii;var ta=env.nullFunc_viii;var ua=env.nullFunc_v;var va=env.nullFunc_iiiiiiiii;var wa=env.nullFunc_iiiii;var xa=env.nullFunc_viiii;var ya=env.nullFunc_iii;var za=env.nullFunc_iiid;var Aa=env.nullFunc_iiiiii;var Ba=env.invoke_iiiiiiii;var Ca=env.invoke_iiii;var Da=env.invoke_viiiiii;var Ea=env.invoke_vi;var Fa=env.invoke_viiiii;var Ga=env.invoke_dii;var Ha=env.invoke_vid;var Ia=env.invoke_di;var Ja=env.invoke_i;var Ka=env.invoke_iiiiiiiiii;var La=env.invoke_vii;var Ma=env.invoke_iiiiiii;var Na=env.invoke_ii;var Oa=env.invoke_viii;var Pa=env.invoke_v;var Qa=env.invoke_iiiiiiiii;var Ra=env.invoke_iiiii;var Sa=env.invoke_viiii;var Ta=env.invoke_iii;var Ua=env.invoke_iiid;var Va=env.invoke_iiiiii;var Wa=env._dlerror;var Xa=env._utimes;var Ya=env._getuid;var Za=env._send;var _a=env._dlsym;var $a=env._mknod;var ab=env._chown;var bb=env._lseek;var cb=env._emscripten_set_main_loop_timing;var db=env._access;var eb=env._fstat;var fb=env._chmod;var gb=env._rmdir;var hb=env.___assert_fail;var ib=env._usleep;var jb=env.___buildEnvironment;var kb=env._fflush;var lb=env._pwrite;var mb=env._strerror_r;var nb=env._localtime_r;var ob=env._tzset;var pb=env._open;var qb=env._getpid;var rb=env._sbrk;var sb=env._fcntl;var tb=env._emscripten_memcpy_big;var ub=env._unlink;var vb=env._sysconf;var wb=env._fchmod;var xb=env.___setErrNo;var yb=env._ftruncate;var zb=env._mkdir;var Ab=env._pread;var Bb=env._mkport;var Cb=env._dlopen;var Db=env._dlclose;var Eb=env._write;var Fb=env._fsync;var Gb=env.___errno_location;var Hb=env._stat;var Ib=env._recv;var Jb=env._geteuid;var Kb=env._getenv;var Lb=env._sleep;var Mb=env._emscripten_set_main_loop;var Nb=env._abort;var Ob=env._time;var Pb=env._fchown;var Qb=env._strerror;var Rb=env._gettimeofday;var Sb=env._munmap;var Tb=env._mmap;var Ub=env._localtime;var Vb=env._getcwd;var Wb=env._close;var Xb=env._read;var Yb=env._truncate;var Zb=0.0;
5 Db
13 function fh(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0.0,s=0,t=0.0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,aa=0,ca=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0,$a=0,ab=0,bb=0,cb=0,db=0,eb=0,fb=0,gb=0,hb=0,ib=0,jb=0,kb=0,lb=0,mb=0,nb=0,ob=0,pb=0,qb=0,rb=0,sb=0,tb=0,ub=0,vb=0,wb=0,xb=0,yb=0,zb=0,Ab=0,Bb=0,Cb=0,Db=0,Eb=0,Fb=0,Gb=0,Hb=0,Ib=0,Jb=0,Kb=0,Lb=0,Mb=0,Nb=0,Ob=0,Pb=0,Qb=0,Rb=0,Sb=0,Tb=0,Ub=0,Vb=0,Wb=0,Xb=0,Yb=0,Zb=0,_b=0,bc=0,cc=0,dc=0,ec=0,fc=0,gc=0,hc=0,jc=0,mc=0,nc=0,pc=0,rc=0,tc=0,uc=0,vc=0,wc=0,xc=0,yc=0,zc=0,Ac=0,Bc=0,Cc=0,Dc=0,Ec=0,Fc=0,Gc=0,Hc=0,Ic=0,Jc=0,Kc=0,Lc=0,Mc=0,Nc=0,Oc=0,Pc=0,Qc=0,Rc=0,Sc=0,Tc=0,Uc=0,Wc=0,Xc=0,Yc=0,Zc=0,_c=0,$c=0,dd=0,ed=0,hd=0,id=0,jd=0,kd=0,ld=0,md=0,nd=0,od=0,pd=0,qd=0,rd=0,sd=0,td=0,ud=0,vd=0,wd=0,xd=0,yd=0,zd=0,Ad=0,Bd=0,Cd=0,Dd=0,Ed=0,Fd=0,Gd=0,Hd=0,Id=0,Jd=0,Kd=0,Ld=0,Md=0,Nd=0,Od=0,Pd=0,Qd=0,Rd=0,Sd=0,Td=0,Ud=0,Vd=0,Wd=0,Xd=0,Yd=0,Zd=0,_d=0,$d=0,ae=0,be=0,ce=0,de=0,ee=0,fe=0,ge=0,he=0,ie=0,je=0;he=i;i=i+1040|0;if((i|0)>=(j|0))ba();de=he+400|0;Mc=he+792|0;Yc=he+392|0;Uc=he+788|0;Ld=he+320|0;dd=he+784|0;id=he+780|0;jd=he+280|0;Gd=he+680|0;Tc=he+240|0;Jd=he+200|0;Sc=he+676|0;Pc=he+672|0;Hd=he+160|0;Nc=he+644|0;md=he+152|0;Cd=he+112|0;_c=he+640|0;Ed=he+636|0;Qc=he+632|0;nd=he+628|0;td=he+624|0;pd=he+604|0;ud=he+600|0;hd=he+596|0;qd=he+576|0;Lc=he+840|0;vd=he+572|0;Id=he+104|0;wd=he+568|0;Wc=he+564|0;Xc=he+96|0;Kd=he+88|0;xd=he+560|0;yd=he+556|0;zd=he+552|0;rd=he+532|0;sd=he+512|0;Zc=he+508|0;od=he+504|0;Rc=he+488|0;Fd=he+48|0;Oc=he+456|0;Kc=he+444|0;Dd=he+8|0;ld=he+440|0;Bd=he+412|0;Ad=he;rc=a+4|0;f=da(rc|0,4,0,0)|0|0;ee=da(a|0,4,0,0)|0|0;Cc=da(ee+62>>0|0,1,0,0)|0|0;Gc=a+8|0;p=da(Gc|0,4,0,0)|0|0;ge=ee+32|0;c=ge;d=da(c|0,4,0,0)|0|0;c=da(c+4|0,4,0,0)|0|0;fe=a+80|0;a:do if((da(fe|0,4,0,0)|0|0)==7){o=ee+65|0;p=a+44|0;e=d;b=0;g=0;d=0;be=1317}else{ea(fe|0,0|0,4,0);Yd=a+136|0;ea(Yd|0,0|0,4,0);ea(Yd+4|0,0|0,4,0);Yd=a+20|0;ea(Yd|0,0|0,4,0);ea(ee+452|0,0|0,4,0);vc=ee+240|0;b:do if(!(da(vc|0,4,0,0)|0)){Wd=ee+292|0;if(da(Wd|0,4,0,0)|0){e=da(a+124|0,4,0,0)|0|0;b=ee+300|0;o=da(b|0,4,0,0)|0|0;if(!e)pc=b;else{pc=b;o=(e>>>0)%(o>>>0)|0}}else{pc=ee+300|0;o=0}ae=a+76|0;$d=ee+65|0;Sd=ee+296|0;lb=a+176|0;mb=a+184|0;nb=a+92|0;ob=ee+80|0;pb=ee+84|0;qb=Cc&255;rb=Cc<<24>>24==1;sb=ee+88|0;tb=a+60|0;Td=a+144|0;_d=a+86|0;ce=a+44|0;ub=a+12|0;vb=Nc+4|0;wb=Nc+16|0;xb=Nc+12|0;yb=Nc+25|0;zb=Nc+20|0;Ab=a+200|0;Bb=a+56|0;Ud=a+72|0;Cb=Cd+16|0;Db=Cd+8|0;Eb=Cd+24|0;Fb=a+87|0;Vd=ee+156|0;Gb=ee+500|0;Hb=ee+496|0;Zd=ee+63|0;Ib=ee+488|0;Jb=ee+504|0;Kb=ee+512|0;Lb=ee+70|0;Mb=ee+24|0;Nb=ee+20|0;Qd=ee+16|0;Ob=ee+4|0;Rd=a+88|0;Pb=a+104|0;Qb=a+152|0;Rb=a+160|0;Sb=ee+152|0;Tb=ee+64|0;Ub=pd+4|0;Vb=pd+6|0;Wb=pd+8|0;Xb=qd+4|0;Yb=qd+8|0;Zb=ee+212|0;_b=ee+208|0;bc=a+116|0;cc=rd+4|0;dc=rd+6|0;ec=rd+8|0;fc=Tc+8|0;gc=Tc+32|0;hc=Tc+24|0;jc=Tc+16|0;mc=Tc+12|0;nc=sd+4|0;O=sd+6|0;P=sd+8|0;Q=jd+8|0;R=jd+32|0;S=jd+24|0;T=jd+12|0;U=jd+16|0;V=ee+164|0;W=Rc+8|0;X=Rc+4|0;Y=ee+145|0;aa=Rc+12|0;ca=Ld+4|0;ga=Ld+12|0;ha=Ld+16|0;ia=Ld+20|0;ja=Ld+24|0;ka=Ld+28|0;la=Ld+8|0;ma=Ld+40|0;na=Ld+44|0;oa=Ld+48|0;pa=Ld+52|0;qa=Ld+56|0;ra=Ld+60|0;sa=Ld+64|0;ta=Ld+65|0;ua=ee+128|0;va=a+28|0;wa=a+36|0;xa=a+32|0;ya=a+196|0;za=Oc+4|0;Aa=Oc+8|0;Ba=Fd+8|0;Ca=Fd+32|0;Da=Fd+24|0;Ea=Oc+20|0;Fa=Oc+12|0;Ga=Oc+16|0;Ha=Oc+24|0;Ia=Kc+8|0;Ja=Kc+4|0;Ka=ee+148|0;La=ee+176|0;Ma=ee+72|0;Na=ee+67|0;Oa=Mc+20|0;Pa=Mc+24|0;Qa=Mc+4|0;Ra=Mc+16|0;Sa=ee+304|0;Ta=ee+328|0;Ua=Dd+32|0;Va=Dd+8|0;Wa=Dd+24|0;Xa=ee+308|0;Ya=Bd+20|0;Za=ee+69|0;Xd=a+168|0;_a=jd+4|0;$a=jd+8|0;ab=jd+12|0;bb=jd+16|0;cb=jd+20|0;db,0,1)|0|0;if((s|0)==89)r=t+r;else if((s|0)==90)r=r-t;else if((s|0)==91)r=t*r;else if((s|0)==92){if(t==0.0)break;r=r/t}else{u=~~t>>>0;s=+N(t)>=1.0?(t>0.0?~~+$(+M(t/4294967296.0),4294967295.0)>>>0:~~+Z((t-+(~~t>>>0))/4294967296.0)>>>0):0;x=~~r>>>0;y=+N(r)>=1.0?(r>0.0?~~+$(+M(r/4294967296.0),4294967295.0)>>>0:~~+Z((r-+(~~r>>>0))/4294967296.0)>>>0):0;if(!u){if(!s)break}else if((u|0)==-1?(s|0)==-1:0){u=1;s=0}J=qw(x|0,y|0,u|0,s|0)|0;r=+(J>>>0)+4294967296.0*+(C|0)}ea(de|0,+r,8,1);ea(Ld|0,+(+(+da(de|0,8,1,0))),8,1);if(!(+(+da(de|0,8,1,0))!=+(+da(Ld|0,8,1,0)))){ea(h|0,+r,8,1);J=p+(I*40|0)+8|0;ea(J|0,(da(J|0,2,0,1)|0)&48640|8|0,2,0);if(((H|G)&8)!=0|A<<24>>24!=0){G=p;H=f;I=K;J=L;break q}cm(h);G=p;H=f;I=K;J=L;break q}}while(0);g=p+(I*40|0)+8|0;if(!((da(g|0,2,0,0)|0)&9312)){ea(g|0,1|0,2,0);G=p;H=f;I=K;J=L;break}else{ug(h);G=p;H=f;I=K;J=L;break}}case 166:{be=0;g=da(f+(e*20|0)+4|0,4,0,0)|0|0;if(g){h=p+(g*40|0)|0;g=p+(g*40|0)+8|0;if(!((da(g|0,2,0,0)|0)&9312)){G=h;ea(G|0,0|0,4,0);ea(G+4|0,0|0,4,0);ea(g|0,4|0,2,0);G=p;H=f;I=K;J=L;h=y;break}else{Yg(h,0,0);G=p;H=f;I=K;J=L;h=y;break}}else{G=p;H=f;I=K;J=L;h=y}break}case 184:{be=0;s=da(f+(e*20|0)+4|0,4,0,0)|0|0;g=da(f+(e*20|0)+8|0,4,0,0)|0|0;z=da(f+(e*20|0)+12|0,4,0,0)|0|0;h=p+(z*40|0)|0;if((da(p+(g*40|0)+8|0,2,0,0)|0|(da(p+(s*40|0)+8|0,2,0,0)|0))&1){g=p+(z*40|0)+8|0;if(!((da(g|0,2,0,0)|0)&9312)){ea(g|0,1|0,2,0);G=p;H=f;I=K;J=L;break}else{ug(h);G=p;H=f;I=K;J=L;break}}q=Ug(p+(g*40|0)|0)|0;A=C;y=Ug(p+(s*40|0)|0)|0;x=C;g=da(w>>0|0,1,0,0)|0|0;s=g&255;do if(g<<24>>24==86){q=y|q;g=x|A}else if(g<<24>>24!=85)if(!((y|0)==0&(x|0)==0)){if((x|0)<0){g=175-s&255;s=cw(0,0,y|0,x|0)|0;if((x|0)>-1|(x|0)==-1&y>>>0>4294967232){x=C;be=194}}else{s=y;be=194}if((be|0)==194){be=0;if(!((x|0)>0|(x|0)==0&s>>>0>63)){if(g<<24>>24==87){q=hw(q|0,A|0,s|0)|0;g=C;break}q=lw(q|0,A|0,s|0)|0;g=C;if((A|0)>=0)break;J=cw(64,0,s|0,x|0)|0;J=hw(-1,-1,J|0)|0;q=J|q;g=C|g;break}}if((A|0)>-1|(A|0)==-1&q>>>0>4294967295){q=0;g=0}else{g=(g<<24>>24!=87)<<31>>31;q=g;g=((g|0)<0)<<31>>31}}else g=A;else{q=y&q;g=x&A}while(0);G=h;ea(G|0,q|0,4,0);ea(G+4|0,g|0,4,0);G=p+(z*40|0)+8|0;ea(G|0,(da(G|0,2,0,1)|0)&48640|4|0,2,0);G=p;H=f;I=K;J=L;break}case 202:{be=0;H=da(f+(e*20|0)+4|0,4,0,0)|0|0;G=p+(H*40|0)|0;I=Ug(G)|0;H=p+(H*40|0)+8|0;ea(H|0,(da(H|0,2,0,1)|0)&48640|4|0,2,0);H=da(f+(e*20|0)+8|0,4,0,0)|0|0;H=iw(I|0,C|0,H|0,((H|0)<0)<<31>>31|0)|0;ea(G|0,H|0,4,0);ea(G+4|0,C|0,4,0);G=p;H=f;I=K;J=L;break}case 203:{be=0;h=da(f+(e*20|0)+4|0,4,0,0)|0|0;l=p+(h*40|0)+8|0;g=da(l|0,2,0,0)|0|0;if(!(g&4)){em(p+(h*40|0)|0,67,Cc);g=da(l|0,2,0,0)|0|0;if(!(g&4)){u=da(f+(e*20|0)+8|0,4,0,0)|0|0;if(!u){g=e;h=20;be=1318;break c}G=p;H=f;I=K;J=L;h=y;e=u+-1|0;break}}ea(l|0,g&48640|4|0,2,0);G=p;H=f;I=K;J=L;h=y;break}case 208:{be=0;g=da(f+(e*20|0)+4|0,4,0,0)|0|0;h=p+(g*40|0)+8|0;if(!((da(h|0,2,0,0)|0)&4)){G=p;H=f;I=K;J=L;h=y}else{G=p+(g*40|0)|0;ea(G|0,+(+Tg(G)),8,1);ea(h|0,(da(h|0,2,0,1)|0)&48640|8|0,2,0);G=p;H=f;I=K;J=L;h=y}break}case 213:{be=0;D=da(f+(g*20|0)+4|0,4,0,0)|0|0;A=p+(D*40|0)|0;m=da(f+(g*20|0)+12|0,4,0,0)|0|0;z=p+(m*40|0)|0;D=p+(D*40|0)+8|0;v=da(D|0,2,0,0)|0|0;m=p+(m*40|0)+8|0;B=da(m|0,2,0,0)|0|0;w=v&65535;q=B&65535;l=f+(g*20|0)+3|0;y=da(l>>0|0,1,0,1)|0|0;do if(!((B|v)&1)){y=y&71;if(y>>>0>66){if((w&14|0)==2){qh(A,0);q=da(m|0,2,0,0)|0|0}else q=B;if((q&14)==2){qh(z,0);y=v;u=B}else{y=v;u=B}}else if((y|0)==66){if((w&2|0)!=0|(w&12|0)==0){x=B;y=v}else{am(A,Cc,1)|0;x=da(m|0,2,0,0)|0|0;y=((da(D|0,2,0,1)|0)&65024|w&511)&65535}J=x&65535;if((J&2|0)!=0|(J&12|0)==0)u=B;else{am(z,Cc,1)|0;u=((da(m|0,2,0,1)|0)&65024|q&511)&65535}}else{y=v;u=B}if((da(D|0,2,0,0)|0)&16384){Qg(A)|0;y=y&49151}if((da(m|0,2,0,0)|0)&16384){Qg(z)|0;u=u&49151}if(da($d>>0|0,1,0,0)|0){o=$d;p=ce;e=d;d=n;be=1317;break a}J=gm(z,A,da(f+(g*20|0)+16|0,4,0,0)|0|0)|0;x=da(s>>0|0,1,0,0)|0|0;e=g;s=J}else{if(y&128){y=v;u=B;e=g;s=(v&1&B)<<16>>16!=0&(q&256|0)==0&1^1;break}if(y&32){h=da(f+(g*20|0)+8|0,4,0,0)|0|0;G=p+(h*40|0)+8|0;ea(G|0,(da(G|0,2,0,1)|0)&48640|1|0,2,0);G=p;H=f;I=K;J=L;h=p+(h*40|0)|0;e=g;break q}if(!(y&16)){G=p;H=f;I=K;J=L;e=g;break q}G=p;H=f;I=K;J=L;e=(da(f+(g*20|0)+8|0,4,0,0)|0|0)+-1|0;break q}while(0);switch(x&255|0){case 79:{s=(s|0)==0&1;break}case 78:{s=(s|0)!=0&1;break}case 82:{s=s>>>31;break}case 81:{s=(s|0)<1&1;break}case 80:{s=(s|0)>0&1;break}default:s=s>>>31^1}if(!((da(l>>0|0,1,0,0)|0)&32)){if(s)e=(da(f+(e*20|0)+8|0,4,0,0)|0|0)+-1|0}else{J=da(f+(e*20|0)+8|0,4,0,0)|0|0;h=p+(J*40|0)|0;J=p+(J*40|0)+8|0;ea(J|0,(da(J|0,2,0,1)|0)&48640|4|0,2,0);J=h;ea(J|0,s|0,4,0);ea(J+4|0,0|0,4,0)}ea(D|0,y|0,2,0);ea(m|0,u|0,2,0);G=p;H=f;I=K;J=L;break}case 248:{be=0;G=p;H=f;I=da(f+(e*20|0)+16|0,4,0,0)|0|0;J=L;break}case 249:{be=0;m=((da(f+(e*20|0)+3>>0|0,1,0,0)|0)&1)==0?0:K;v=da(f+(e*20|0)+12|0,4,0,0)|0|0;w=da(f+(e*20|0)+16|0,4,0,0)|0|0;x=da(f+(e*20|0)+4|0,4,0,0)|0|0;y=da(f+(e*20|0)+8|0,4,0,0)|0|0;if((v|0)>0){g=(m|0)==0;l=w+16|0;u=0;while(1){if(g)q=u;else q=da(m+(u<<2)|0,4,0,0)|0|0;s=da((da(l|0,4,0,0)|0|0)+u>>0|0,1,0,0)|0|0;q=gm(p+((q+x|0)*40|0)|0,p+((q+y|0)*40|0)|0,da(w+(u<<2)+20|0,4,0,0)|0|0)|0;u=u+1|0;if(q)break;if((u|0)>=(v|0)){G=p;H=f;I=0;J=0;break q}}G=p;H=f;I=0;J=s<<24>>24==0?q:0-q|0}else{G=p;H=f;I=0;J=L}break}case 256:{be=0;if((L|0)<0){G=p;H=f;I=K;J=L;e=(da(f+(g*20|0)+4|0,4,0,0)|0|0)+-1|0;break}if(!L){G=p;H=f;I=K;J=0;e=(da(f+(g*20|0)+8|0,4,0,0)|0|0)+-1|0;break}else{G=p;H=f;I=K;J=L;e=(da(f+(g*20|0)+12|0,4,0,0)|0|0)+-1|0;break}}case 261:{be=0;g=da(f+(e*20|0)+4|0,4,0,0)|0|0;if(!((da(p+(g*40|0)+8|0,2,0,0)|0)&1)){h=Ug(p+(g*40|0)|0)|0;h=(h|0)!=0|(C|0)!=0?3:0}else h=6;g=da(f+(e*20|0)+8|0,4,0,0)|0|0;if(!((da(p+(g*40|0)+8|0,2,0,0)|0)&1)){g=Ug(p+(g*40|0)|0)|0;g=((g|0)!=0|(C|0)!=0)&1}else g=2;g=da(((da(s>>0|0,1,0,0)|0|0)==72?41680:41696)+(g+h)>>0|0,1,0,0)|0|0;h=da(f+(e*20|0)+12|0,4,0,0)|0|0;y=p+(h*40|0)|0;if(g<<24>>24==2){G=p+(h*40|0)+8|0;ea(G|0,(da(G|0,2,0,1)|0)&48640|1|0,2,0);G=p;H=f;I=K;J=L;h=y;break}else{G=y;ea(G|0,g&255|0,4,0);ea(G+4|0,0|0,4,0);G=p+(h*40|0)+8|0;ea(G|0,(da(G|0,2,0,1)|0)&48640|4|0,2,0);G=p;H=f;I=K;J=L;h=y;break}}case 268:{be=0;g=da(f+(e*20|0)+4|0,4,0,0)|0|0;h=da(f+(e*20|0)+8|0,4,0,0)|0|0;y=p+(h*40|0)|0;h=p+(h*40|0)+8|0;if(!((da(h|0,2,0,0)|0)&9312))ea(h|0,1|0,2,0);else ug(y);if(!((da(p+(g*40|0)+8|0,2,0,0)|0)&1)){ea(h|0,4|0,2,0);H=Ug(p+(g*40|0)|0)|0;G=y;ea(G|0,(H|0)==0&(C|0)==0&1|0,4,0);ea(G+4|0,0|0,4,0);G=p;H=f;I=K;J=L;h=y}else{G=p;H=f;I=K;J=L;h=y}break}case 273:{be=0;g=da(f+(e*20|0)+4|0,4,0,0)|0|0;h=da(f+(e*20|0)+8|0,4,0,0)|0|0;y=p+(h*40|0)|0;h=p+(h*40|0)+8|0;if(!((da(h|0,2,0,0)|0)&9312))ea(h|0,1|0,2,0);else ug(y);if(!((da(p+(g*40|0)+8|0,2,0,0)|0)&1)){ea(h|0,4|0,2,0);H=Ug(p+(g*40|0)|0)|0;G=y;ea(G|0,~H|0,4,0);ea(G+4|0,~C|0,4,0);G=p;H=f;I=K;J=L;h=y}else{G=p;H=f;I=K;J=L;h=y}break}case 278:{be=0;g=(da(Ab|0,4,0,0)|0|0)+(da(f+(e*20|0)+4|0,4,0,0)|0|0)|0;if(!(da(g>>0|0,1,0,0)|0)){ea(g>>0|0,1|0,1,0);G=p;H=f;I=K;J=L;break}else{G=p;H=f;I=K;J=L;e=(da(f+(e*20|0)+8|0,4,0,0)|0|0)+-1|0;break}}case 281:{be=0;g=da(f+(e*20|0)+4|0,4,0,0)|0|0;if(!((da(p+(g*40|0)+8|0,2,0,0)|0)&1)){g=+Tg(p+(g*40|0)|0)!=0.0;g=(g^(da(s>>0|0,1,0,0)|0|0)==46)&1}else g=da(f+(e*20|0)+12|0,4,0,0)|0|0;if(!g){G=p;H=f;I=K;J=L}else{G=p;H=f;I=K;J=L;e=(da(f+(e*20|0)+8|0,4,0,0)|0|0)+-1|0}break}case 286:{be=0;if(!((da(p+((da(f+(e*20|0)+4|0,4,0,0)|0|0)*40|0)+8|0,2,0,0)|0)&1)){G=p;H=f;I=K;J=L}else{G=p;H=f;I=K;J=L;e=(da(f+(e*20|0)+8|0,4,0,0)|0|0)+-1|0}break}case 288:{be=0;if(!((da(p+((da(f+(e*20|0)+4|0,4,0,0)|0|0)*40|0)+8|0,2,0,0)|0)&1)){G=p;H=f;I=K;J=L;e=(da(f+(e*20|0)+8|0,4,0,0)|0|0)+-1|0}else{G=p;H=f;I=K;J=L}break}case 290:{be=0;H=da(f+(g*20|0)+8|0,4,0,0)|0|0;B=da(f+(g*20|0)+12|0,4,0,0)|0|0;q=p+(B*40|0)|0;G=da((da(Bb|0,4,0,0)|0|0)+((da(f+(g*20|0)+4|0,4,0,0)|0)<<2)|0,4,0,0)|0|0;m=da(G+80|0,4,0,0)|0|0;l=da(G|0,4,0,0)|0|0;if(!(da(G+26>>0|0,1,0,0)|0)){if((l|0)!=0?(da(l+73>>0|0,1,0,0)|0|0)!=1:0){Md=im(G)|0;be=295}}else{Md=hm(G)|0;be=295}if((be|0)==295?(be=0,(Md|0)!=0):0){h=Md;be=1318;break c}A=G+60|0;s=da(Ud|0,4,0,0)|0|0;u:do if((da(A|0,4,0,0)|0|0)==(s|0)){s=da(G+22|0,2,0,0)|0|0;if((s&65535|0)>(H|0))be=350;else{x=G+72|0;be=318}}else{do if(da(G+25>>0|0,1,0,0)|0){if(!l){y=da(G+16|0,4,0,0)|0|0;v=da(p+(y*40|0)+12|0,4,0,0)|0|0;ea(G+68|0,v|0,4,0);ea(G+64|0,v|0,4,0);y=da(p+(y*40|0)+16|0,4,0,0)|0|0;z=G+76|0;ea(z|0,y|0,4,0);break}e=p+(B*40|0)+8|0;if(!((da(e|0,2,0,0)|0)&9312)){ea(e|0,1|0,2,0);break u}else{ug(q);break u}}else{if(!((da(G+27>>0|0,1,0,0)|0)&4)){jm(l,md);x=da(l+40|0,2,0,1)|0|0;y=da(l+32|0,4,0,0)|0|0;ea(G+76|0,y|0,4,0);s=da(md|0,4,0,0)|0|0;ea(G+64|0,s|0,4,0)}else{s=G+64|0;km(l,s);x=da(l+40|0,2,0,1)|0|0;y=da(l+32|0,4,0,0)|0|0;ea(G+76|0,y|0,4,0);s=da(s|0,4,0,0)|0|0}ea(G+68|0,(s>>>0>x>>>0?x:s)|0,4,0);if(s>>>0>(da(sb|0,4,0,0)|0|0)>>>0){h=n;be=1316;break c}z=G+76|0;s=da(Ud|0,4,0,0)|0|0;v=x}while(0);ea(A|0,s|0,4,0);s=da(y>>0|0,1,0,0)|0|0;if(s<<24>>24>-1){w=s&255;ea(_c|0,w|0,4,0);y=1}else{y=lm(y,_c)|0;w=da(_c|0,4,0,0)|0|0}x=G+72|0;ea(x|0,y&255|0,4,0);ea(G+22|0,0|0,2,0);ea(m|0,w|0,4,0);if(w>>>0>98307){h=n;be=313;break c}if(w>>>0>(da(G+64|0,4,0,0)|0|0)>>>0){h=n;be=313;break c}if(v>>>0<w>>>0){ea(z|0,0|0,4,0);ea(G+68|0,0|0,4,0);s=0;be=318}else{s=0;be=318}}while(0);do if((be|0)==318){be=0;y=da(x|0,4,0,0)|0|0;w=da(m|0,4,0,0)|0|0;if(y>>>0<w>>>0){F=G+76|0;v=da(F|0,4,0,0)|0|0;if(!v){I=Cd+0|0;J=I+40|0;do{ea(I|0,0|0,4,0);I=I+4|0}while((I|0)<(J|0));y=mm(l,0,da(m|0,4,0,0)|0|0,((da(G+27>>0|0,1,0,1)|0|0)>>>2&1^1)&255,Cd)|0;if(y){f=y;h=n;be=1309;break c}s=G+22|0;E=s;s=da(s|0,2,0,0)|0|0;y=da(x|0,4,0,0)|0|0;w=da(m|0,4,0,0)|0|0;D=da(Cb|0,4,0,0)|0|0}else{E=G+22|0;D=v}u=s&65535;z=da(m+(u<<2)|0,4,0,0)|0|0;ea(_c|0,z|0,4,0);s=D+w|0;y=D+y|0;while(1){v=da(y>>0|0,1,0,0)|0|0;if(v<<24>>24>-1){A=v&255;ea(Ed|0,A|0,4,0);y=y+1|0}else{y=y+((lm(y,Ed)|0)&255)|0;A=da(Ed|0,4,0,0)|0|0}ea(G+(u<<2)+84|0,A|0,4,0);if(A>>>0>11)v=(A+-12|0)>>>1;else v=da(34336+A>>0|0,1,0,1)|0|0;A=z+v|0;ea(_c|0,A|0,4,0);if(A>>>0<z>>>0){y=A;v=u;be=331;break}v=u+1|0;ea(m+(v<<2)|0,A|0,4,0);if((u|0)<(H|0)&y>>>0<s>>>0){z=A;u=v}else break}if((be|0)==331){be=0;A=y;y=D+(w+1)|0}ea(E|0,v|0,2,0);ea(x|0,y-D|0,4,0);if(!(da(F|0,4,0,0)|0)){if(!(((da(Db|0,2,0,0)|0)&9312)==0&(da(Eb|0,4,0,0)|0|0)==0))Pg(Cd);ea(Dbdb
14 db(a|0,b|0)|0}function px(a,b){a=a|0;b=b|0;return Vb(a|0,b|0)|0}function qx(a,b){a=a|0;b=b|0;return Hb(a|0,b|0)|0}function rx(a,b){a=a|0;b=b|0;return eb(a|0,b|0)|0}function sx(a,b){a=a|0;b=b|0;return yb(a|0,b|0)|0}function tx(a,b){a=a|0;b=b|0;return wb(a|0,b|0)|0}function ux(a,b){a=a|0;b=b|0;return zb(a|0,b|0)|0}function vx(a,b){a=a|0;b=b|0;return Sb(a|0,b|0)|0}function wx(a,b,c){a=a|0;b=b|0;c=+c;za(19);return 0}function xx(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;Aa(20);return 0}
18 =63;if(numBits==0){return this}else{var high=this.high_;if(numBits<32){var low=this.low_;return goog.math.Long.fromBits(low>>>numBits|high<<32-numBits,high>>>numBits)}else if(numBits==32){return goog.math.Long.fromBits(high,0)}else{return goog.math.Long.fromBits(high>>>numBits-32,0)}}});var navigator={appName:"Modern Browser"};var dbits;var canary=0xdeadbeefcafe;var j_lm=(canary&16777215)==15715070;function BigInteger(a,b,c){if(a!=null)if("number"==typeof a)this.fromNumber(a,b,c);else if(b==null&&"string"!=typeof a)this.fromString(a,256);else this.fromString(a,b)}function nbi(){return new BigInteger(null)}function am1(i,x,w,j,c,n){while(--n>=0){var v=x*this[i++]+w[j]+c;c=Math.floor(v/67108864);w[j++]=v&67108863}return c}function am2(i,x,w,j,c,n){var xl=x&32767,xh=x>>15;while(--n>=0){var l=this[i]&32767;var h=this[i++]>>15;var m=xh*l+h*xl;l=xl*l+((m&32767)<<15)+w[j]+(c&1073741823);c=(l>>>30)+(m>>>15)+xh*h+(c>>>30);w[j++]=l&1073741823}return c}function am3(i,x,w,j,c,n){var xl=x&16383,xh=x>>14;while(--n>=0){var l=this[i]&16383;var h=this[i++]>>14;var m=xh*l+h*xl;l=xl*l+((m&16383)<<14)+w[j]+c;c=(l>>28)+(m>>14)+xh*h;w[j++]=l&268435455}return c}if(j_lm&&navigator.appName=="Microsoft Internet Explorer"){BigInteger.prototype.am=am2;dbits=30}else if(j_lm&&navigator.appName!="Netscape"){BigInteger.prototype.am=am1;dbits=26}else{BigInteger.prototype.am=am3;dbits=28}BigInteger.prototype.DB=dbits;BigInteger.prototype.DM=(1<<dbits)-1;BigInteger.prototype.DV=1<<dbits;var BI_FP=52;BigInteger.prototype.FV=Math.pow(2,BI_FP);BigInteger.prototype.F1=BI_FP-dbits;BigInteger.prototype.F2=2*dbits-BI_FP;var BI_RM="0123456789abcdefghijklmnopqrstuvwxyz";var BI_RC=new Array;var rr,vv;rr="0".charCodeAt(0);for(vv=0;vv<=9;++vv)BI_RC[rr++]=vv;rr="a".charCodeAt(0);for(vv=10;vv<36;++vv)BI_RC[rr++]=vv;rr="A".charCodeAt(0);for(vv=10;vv<36;++vv)BI_RC[rr++]=vv;function int2char(n){return BI_RM.charAt(n)}function intAt(s,i){var c=BI_RC[s.charCodeAt(i)];return c==null?-1:c}function bnpCopyTo(r){for(var i=this.t-1;i>=0;--i)r[i]=this[i];r.t=this.t;r.s=this.s}function bnpFromInt(x){this.t=1;this.s=x<0?-1:0;if(x>0)this[0]=x;else if(x<-1)this[0]=x+DV;else this.t=0}function nbv(i){var r=nbi();r.fromInt(i);return r}function bnpFromString(s,b){var k;if(b==16)k=4;else if(b==8)k=3;else if(b==256)k=8;else if(b==2)k=1;else if(b==32)k=5;else if(b==4)k=2;else{this.fromRadix(s,b);return}this.t=0;this.s=0;var i=s.length,mi=false,sh=0;while(--i>=0){var x=k==8?s[i]&255:intAt(s,i);if(x<0){if(s.charAt(i)=="-")mi=true;continue}mi=false;if(sh==0)this[this.t++]=x;else if(sh+k>this.DB){this[this.t-1]|=(x&(1<<this.DB-sh)-1)<<sh;this[this.t++]=x>>this.DB-sh}else this[this.t-1]|=x<<sh;sh+=k;if(sh>=this.DB)sh-=this.DB}if(k==8&&(s[0]&128)!=0){this.s=-1;if(sh>0)this[this.t-1]|=(1<<this.DB-sh)-1<<sh}this.clamp();if(mi)BigInteger.ZERO.subTo(this,this)}function bnpClamp(){var c=this.s&this.DM;while(this.t>0&&this[this.t-1]==c)--this.t}function bnToString(b){if(this.s<0)return"-"+this.negate().toString(b);var k;if(b==16)k=4;else if(b==8)k=3;else if(b==2)k=1;else if(b==32)k=5;else if(b==4)k=2;else return this.toRadix(b);var km=(1<<k)-1,d,m=false,r="",i=this.t;var p=this.DB-i*this.DB%k;if(i-->0){if(p<this.DB&&(d=this[i]>>p)>0){m=true;r=int2char(d)}while(i>=0){if(p<k){d=(this[i]&(1<<p)-1)<<k-p;d|=this[--i]>>(p+=this.DB-k)}else{d=this[i]>>(p-=k)&km;if(p<=0){p+=this.DB;--i}}if(d>0)m=true;if(m)r+=int2char(d)}}return m?r:"0"}function bnNegate(){var r=nbi();BigInteger.ZERO.subTo(this,r);return r}function bnAbs(){return this.s<0?this.negate():this}function bnCompareTo(a){var r=this.s-a.s;if(r!=0)return r;var i=this.t;r=i-a.t;if(r!=0)return this.s<0?-r:r;while(--i>=0)if((r=this[i]-a[i])!=0)return r;return 0}function nbits(x){var r=1,t;if((t=x>>>16)!=0){x=t;r+=16}if((t=x>>8)!=0){x=t;r+=8}if((t=x>>4)!=0){x=t;r+=4}if((t=x>>2)!=0){x=t;r+=2}if((t=x>>1)!=0){x=t;r+=1}return r}function bnBitLength(){if(this.t<=0)return 0;return this.DB*(this.t-1)+nbits(this[this.t-1]^this.s&this.DM)}function bnpDLShiftTo(n,r){var i;for(i=this.t-1;i>=0;--i)r[i+n]=this[i];for(i=n-1;i>=0;--i)r[i]=0;r.t=this.t+n;r.s=this.s}function bnpDRShiftTo(n,r){for(var i=n;i<this.t;++i)r[i-n]=this[i];r.t=Math.max(this.t-n,0);r.s=this.s}function bnpLShiftTo(n,r){var bs=n%this.DB;var cbs=this.DB-bs;var bm=(1<<cbs)-1;var ds=Math.floor(n/this.DB),c=this.s<<bs&this.DM,i;for(i=this.t-1;i>=0;--i){r[i+ds+1]=this[i]>>cbs|c;c=(this[i]&bm)<<bs}for(i=ds-1;i>=0;--i)r[i]=0;r[ds]=c;r.t=this.t+ds+1;r.s=this.s;r.clamp()}function bnpRShiftTo(n,r){r.s=this.s;var ds=Math.floor(n/this.DB);if(ds>=this.t){r.t=0;return}var bs=n%this.DB;var cbs=this.DB-bs;var bm=(1<<bs)-1;r[0]=this[ds]>>bs;for(var i=ds+1;i<this.t;++i){r[i-ds-1]|=(this[i]&bm)<<cbs;r[i-ds]=this[i]>>bs}if(bs>0)r[this.t-ds-1]|=(this.s&bm)<<cbs;r.t=this.t-ds;r.clamp()}function bnpSubTo(a,r){var i=0,c=0,m=Math.min(a.t,this.t);while(i<m){c+=this[i]-a[i];r[i++]=c&this.DM;c>>=this.DB}if(a.t<this.t){c-=a.s;while(i<this.t){c+=this[i];r[i++]=c&this.DM;c>>=this.DB}c+=this.s}else{c+=this.s;while(i<a.t){c-=a[i];r[i++]=c&this.DM;c>>=this.DB}c-=a.s}r.s=c<0?-1:0;if(c<-1)r[i++]=this.DV+c;else if(c>0)r[i++]=c;r.t=i;r.clamp()}function bnpMultiplyTo(a,r){var x=this.abs(),y=a.abs();var i=x.t;r.t=i+y.t;while(--i>=0)r[i]=0;for(i=0;i<y.t;++i)r[i+x.t]=x.am(0,y[i],r,i,0,x.t);r.s=0;r.clamp();if(this.s!=a.s)BigInteger.ZERO.subTo(r,r)}function bnpSquareTo(r){var x=this.abs();var i=r.t=2*x.t;while(--i>=0)r[i]=0;for(i=0;i<x.t-1;++i){var c=x.am(i,x[i],r,2*i,0,1);if((r[i+x.t]+=x.am(i+1,2*x[i],r,2*i+1,c,x.t-i-1))>=x.DV){r[i+x.t]-=x.DV;r[i+x.t+1]=1}}if(r.t>0)r[r.t-1]+=x.am(i,x[i],r,2*i,0,1);r.s=0;r.clamp()}function bnpDivRemTo(m,q,r){var pm=m.abs();if(pm.t<=0)return;var pt=this.abs();if(pt.t<pm.t){if(q!=null)q.fromInt(0);if(r!=null)this.copyTo(r);return}if(r==null)r=nbi();var y=nbi(),ts=this.s,ms=m.s;var nsh=this.DB-nbits(pm[pm.t-1]);if(nsh>0){pm.lShiftTo(nsh,y);pt.lShiftTo(nsh,r)}else{pm.copyTo(y);pt.copyTo(r)}var ys=y.t;var y0=y[ys-1];if(y0==0)return;var yt=y0*(1<<this.F1)+(ys>1?y[ys-2]>>this.F2:0);var d1=this.FV/yt,d2=(1<<this.F1)/yt,e=1<<this.F2;var i=r.t,j=i-ys,t=q==null?nbi():q;y.dlShiftTo(j,t);if(r.compareTo(t)>=0){r[r.t++]=1;r.subTo(t,r)}BigInteger.ONE.dlShiftTo(ys,t);t.subTo(y,y);while(y.t<ys)y[y.t++]=0;while(--j>=0){var qd=r[--i]==y0?this.DM:Math.floor(r[i]*d1+(r[i-1]+e)*d2);if((r[i]+=y.am(0,qd,r,j,0,ys))<qd){y.dlShiftTo(j,t);r.subTo(t,r);while(r[i]<--qd)r.subTo(t,r)}}if(q!=null){r.drShiftTo(ys,q);if(ts!=ms)BigInteger.ZERO.subTo(q,q)}r.t=ys;r.clamp();if(nsh>0)r.rShiftTo(nsh,r);if(ts<0)BigInteger.ZERO.subTo(r,r)}function bnMod(a){var r=nbi();this.abs().divRemTo(a,null,r);if(this.s<0&&r.compareTo(BigInteger.ZERO)>0)a.subTo(r,r);return r}function Classic(m){this.m=m}function cConvert(x){if(x.s<0||x.compareTo(this.m)>=0)return x.mod(this.m);else return x}function cRevert(x){return x}function cReduce(x){x.divRemTo(this.m,null,x)}function cMulTo(x,y,r){x.multiplyTo(y,r);this.reduce(r)}function cSqrTo(x,r){x.squareTo(r);this.reduce(r)}Classic.prototype.convert=cConvert;Classic.prototype.revert=cRevert;Classic.prototype.reduce=cReduce;Classic.prototype.mulTo=cMulTo;Classic.prototype.sqrTo=cSqrTo;function bnpInvDigit(){if(this.t<1)return 0;var x=this[0];if((x&1)==0)return 0;var y=x&3;y=y*(2-(x&15)*y)&15;y=y*(2-(x&255)*y)&255;y=y*(2-((x&65535)*y&65535))&65535;y=y*(2-x*y%this.DV)%this.DV;return y>0?this.DV-y:-y}function Montgomery(m){this.m=m;this.mp=m.invDigit();this.mpl=this.mp&32767;this.mph=this.mp>>15;this.um=(1<<m.DB-15)-1;this.mt2=2*m.t}function montConvert(x){var r=nbi();x.abs().dlShiftTo(this.m.t,r);r.divRemTo(this.m,null,r);if(x.s<0&&r.compareTo(BigInteger.ZERO)>0)this.m.subTo(r,r);return r}function montRevert(x){var r=nbi();x.copyTo(r);this.reduce(r);return r}function montReduce(x){while(x.t<=this.mt2)x[x.t++]=0;for(var i=0;i<this.m.t;++i){var j=x[i]&32767;var u0=j*this.mpl+((j*this.mph+(x[i]>>15)*this.mpl&this.um)<<15)&x.DM;j=i+this.m.t;x[j]+=this.m.am(0,u0,x,i,0,this.m.t);while(x[j]>=x.DV){x[j]-=x.DV;x[++j]++}}x.clamp();x.drShiftTo(this.m.t,x);if(x.compareTo(this.m)>=0)x.subTo(this.m,x)}function montSqrTo(x,r){x.squareTo(r);this.reduce(r)}function montMulTo(x,y,r){x.multiplyTo(y,r);this.reduce(r)}Montgomery.prototype.convert=montConvert;Montgomery.prototype.revert=montRevert;Montgomery.prototype.reduce=montReduce;Montgomery.prototype.mulTo=montMulTo;Montgomery.prototype.sqrTo=montSqrTo;function bnpIsEven(){return(this.t>0?this[0]&1:this.s)==0}function bnpExp(e,z){if(e>4294967295||e<1)return BigInteger.ONE;var r=nbi(),r2=nbi(),g=z.convert(this),i=nbits(e)-1;g.copyTo(r);while(--i>=0){z.sqrTo(r,r2);if((e&1<<i)>0)z.mulTo(r2,g,r);else{var t=r;r=r2;r2=t}}return z.revert(r)}function bnModPowInt(e,m){var z;if(e<256||m.isEven())z=new Classic(m);else z=new Montgomery(m);return this.exp(e,z)}BigInteger.prototype.copyTo=bnpCopyTo;BigInteger.prototype.fromInt=bnpFromInt;BigInteger.prototype.fromString=bnpFromString;BigInteger.prototype.clamp=bnpClamp;BigInteger.prototype.dlShiftTo=bnpDLShiftTo;BigInteger.prototype.drShiftTo=bnpDRShiftTo;BigInteger.prototype.lShiftTo=bnpLShiftTo;BigInteger.prototype.rShiftTo=bnpRShiftTo;BigInteger.prototype.subTo=bnpSubTo;BigInteger.prototype.multiplyTo=bnpMultiplyTo;BigInteger.prototype.squareTo=bnpSquareTo;BigInteger.prototype.divRemTo=bnpDivRemTo;BigInteger.prototype.invDigit=bnpInvDigit;BigInteger.prototype.isEven=bnpIsEven;BigInteger.prototype.exp=bnpExp;BigInteger.prototype.toString=bnToString;BigInteger.prototype.negate=bnNegate;BigInteger.prototype.abs=bnAbs;BigInteger.prototype.compareTo=bnCompareTo;BigInteger.prototype.bitLength=bnBitLength;BigInteger.prototype.mod=bnMod;BigInteger.prototype.modPowInt=bnModPowInt;BigInteger.ZERO=nbv(0);BigInteger.ONE=nbv(1);function bnpFromRadix(s,b){this.fromInt(0);if(b==null)b=10;var cs=this.chunkSize(b);var d=Math.pow(b,cs),mi=false,j=0,w=0;for(var i=0;i<s.length;++i){var x=intAt(s,i);if(x<0){if(s.charAt(i)=="-"&&this.signum()==0)mi=true;continue}w=b*w+x;if(++j>=cs){this.dMultiply(d);this.dAddOffset(w,0);j=0;w=0}}if(j>0){this.dMultiply(Math.pow(b,j));this.dAddOffset(w,0)}if(mi)BigInteger.ZERO.subTo(this,this)}function bnpChunkSize(r){return Math.floor(Math.LN2*this.DB/Math.log(r))}function bnSigNum(){if(this.s<0)return-1;else if(this.t<=0||this.t==1&&this[0]<=0)return 0;else return 1}function bnpDMultiply(n){this[this.t]=this.am(0,n-1,this,0,0,this.t);++this.t;this.clamp()}function bnpDAddOffset(n,w){if(n==0)return;while(this.t<=w)this[this.t++]=0;this[w]+=n;while(this[w]>=this.DV){this[w]-=this.DV;if(++w>=this.t)this[this.t++]=0;++this[w]}}function bnpToRadix(b){if(b==null)b=10;if(this.signum()==0||b<2||b>36)return"0";var cs=this.chunkSize(b);var a=Math.pow(b,cs);var d=nbv(a),y=nbi(),z=nbi(),r="";this.divRemTo(d,y,z);while(y.signum()>0){r=(a+z.intValue()).toString(b).substr(1)+r;y.divRemTo(d,y,z)}return z.intValue().toString(b)+r}function bnIntValue(){if(this.s<0){if(this.t==1)return this[0]-this.DV;else if(this.t==0)return-1}else if(this.t==1)return this[0];else if(this.t==0)return 0;return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function bnpAddTo(a,r){var i=0,c=0,m=Math.min(a.t,this.t);while(i<m){c+=this[i]+a[i];r[i++]=c&this.DM;c>>=this.DB}if(a.t<this.t){c+=a.s;while(i<this.t){c+=this[i];r[i++]=c&this.DM;c>>=this.DB}c+=this.s}else{c+=this.s;while(i<a.t){c+=a[i];r[i++]=c&this.DM;c>>=this.DB