text: 'use strict';var k,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},ba="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function ca(){ca=function(){};ba.Symbol||(ba.Symbol=da)}var da=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}();
  function ea(){ca();var a=ba.Symbol.iterator;a||(a=ba.Symbol.iterator=ba.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&aa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return fa(this)}});ea=function(){}}function fa(a){var b=0;return ha(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})}function ha(a){ea();a={next:a};a[ba.Symbol.iterator]=function(){return this};return a}function ia(a){ea();var b=a[Symbol.iterator];return b?b.call(a):fa(a)}
  function ka(a,b){if(b){var c=ba;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&aa(c,a,{configurable:!0,writable:!0,value:b})}}
  ka("String.prototype.endsWith",function(a){return a?a:function(a,c){if(null==this)throw new TypeError("The 'this' value for String.prototype.endsWith must not be null or undefined");if(a instanceof RegExp)throw new TypeError("First argument to String.prototype.endsWith must not be a regular expression");void 0===c&&(c=this.length);c=Math.max(0,Math.min(c|0,this.length));for(var b=a.length;0<b&&0<c;)if(this[--c]!=a[--b])return!1;return 0>=b}});
  ka("Math.trunc",function(a){return a?a:function(a){a=Number(a);if(isNaN(a)||Infinity===a||-Infinity===a||0===a)return a;var b=Math.floor(Math.abs(a));return 0>a?-b:b}});function la(a,b){ea();a instanceof String&&(a+="");var c=0,d={next:function(){if(c<a.length){var e=c++;return{value:b(e,a[e]),done:!1}}d.next=function(){return{done:!0,value:void 0}};return d.next()}};d[Symbol.iterator]=function(){return d};return d}
  ka("Array.prototype.entries",function(a){return a?a:function(){return la(this,function(a,c){return[a,c]})}});function ma(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
  ka("WeakMap",function(a){function b(a){this.a=(f+=Math.random()+1).toString();if(a){ca();ea();a=ia(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}}function c(a){ma(a,e)||aa(a,e,{value:{}})}function d(a){var b=Object[a];b&&(Object[a]=function(a){c(a);return b(a)})}if(function(){if(!a||!Object.seal)return!1;try{var b=Object.seal({}),c=Object.seal({}),e=new a([[b,2],[c,3]]);if(2!=e.get(b)||3!=e.get(c))return!1;e.delete(b);e.set(c,4);return!e.has(b)&&4==e.get(c)}catch(r){return!1}}())return a;
  var e="$jscomp_hidden_"+Math.random();d("freeze");d("preventExtensions");d("seal");var f=0;b.prototype.set=function(a,b){c(a);if(!ma(a,e))throw Error("WeakMap key fail: "+a);a[e][this.a]=b;return this};b.prototype.get=function(a){return ma(a,e)?a[e][this.a]:void 0};b.prototype.has=function(a){return ma(a,e)&&ma(a[e],this.a)};b.prototype.delete=function(a){return ma(a,e)&&ma(a[e],this.a)?delete a[e][this.a]:!1};return b});
  ka("Map",function(a){function b(){var a={};return a.Fc=a.next=a.head=a}function c(a,b){var c=a.a;return ha(function(){if(c){for(;c.head!=a.a;)c=c.Fc;for(;c.next!=c.head;)return c=c.next,{done:!1,value:b(c)};c=null}return{done:!0,value:void 0}})}function d(a,b){var c=b&&typeof b;"object"==c||"function"==c?f.has(b)?c=f.get(b):(c=""+ ++h,f.set(b,c)):c="p_"+b;var e=a.g[c];if(e&&ma(a.g,c))for(a=0;a<e.length;a++){var d=e[a];if(b!==b&&d.key!==d.key||b===d.key)return{id:c,list:e,index:a,eb:d}}return{id:c,
  list:e,index:-1,eb:void 0}}function e(a){this.g={};this.a=b();this.size=0;if(a){a=ia(a);for(var c;!(c=a.next()).done;)c=c.value,this.set(c[0],c[1])}}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var b=Object.seal({x:4}),c=new a(ia([[b,"s"]]));if("s"!=c.get(b)||1!=c.size||c.get({x:4})||c.set({x:4},"t")!=c||2!=c.size)return!1;var e=c.entries(),d=e.next();if(d.done||d.value[0]!=b||"s"!=d.value[1])return!1;d=e.next();return d.done||4!=d.value[0].x||
  "t"!=d.value[1]||!e.next().done?!1:!0}catch(E){return!1}}())return a;ca();ea();var f=new WeakMap;e.prototype.set=function(a,b){a=0===a?0:a;var c=d(this,a);c.list||(c.list=this.g[c.id]=[]);c.eb?c.eb.value=b:(c.eb={next:this.a,Fc:this.a.Fc,head:this.a,key:a,value:b},c.list.push(c.eb),this.a.Fc.next=c.eb,this.a.Fc=c.eb,this.size++);return this};e.prototype.delete=function(a){a=d(this,a);return a.eb&&a.list?(a.list.splice(a.index,1),a.list.length||delete this.g[a.id],a.eb.Fc.next=a.eb.next,a.eb.next.Fc=
  a.eb.Fc,a.eb.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.g={};this.a=this.a.Fc=b();this.size=0};e.prototype.has=function(a){return!!d(this,a).eb};e.prototype.get=function(a){return(a=d(this,a).eb)&&a.value};e.prototype.entries=function(){return c(this,function(a){return[a.key,a.value]})};e.prototype.keys=function(){return c(this,function(a){return a.key})};e.prototype.values=function(){return c(this,function(a){return a.value})};e.prototype.forEach=function(a,b){for(var c=this.entries(),
  e;!(e=c.next()).done;)e=e.value,a.call(b,e[1],e[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var h=0;return e});
  var oa="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},pa=function(){function a(){function a(){}Reflect.construct(a,[],function(){});return new a instanceof a}if("undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(a,d,e){a=b(a,d);e&&Reflect.setPrototypeOf(a,e.prototype);return a}}return function(a,b,e){void 0===e&&(e=a);e=oa(e.prototype||Object.prototype);return Function.prototype.apply.call(a,
  e,b)||e}}();ka("Reflect.construct",function(){return pa});var qa;if("function"==typeof Object.setPrototypeOf)qa=Object.setPrototypeOf;else{var ra;a:{var sa={Th:!0},ta={};try{ta.__proto__=sa;ra=ta.Th;break a}catch(a){}ra=!1}qa=ra?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ua=qa;ka("Reflect.setPrototypeOf",function(a){return a?a:ua?function(a,c){try{return ua(a,c),!0}catch(d){return!1}}:null});function va(a,b){this.g=a;this.w=b;this.oa=function(){};this.A=9;this.F=1;this.m=new Uint8Array([6,0,104,111,115,116,57,112]);this.v="9P2000.L";this.h=this.l=8192;this.Da=new Uint8Array(2*this.h);this.Wf=0;this.a=[]}va.prototype.Ua=function(){var a=[];a[0]=this.A;a[1]=this.F;a[2]=this.m;a[3]=this.v;a[4]=this.l;a[5]=this.h;a[6]=this.Da;a[7]=this.Wf;a[8]=this.a.map(function(a){return[a.ea,a.type,a.uid]});return a};
  va.prototype.hb=function(a){this.A=a[0];this.F=a[1];this.m=a[2];this.v=a[3];this.l=a[4];this.h=a[5];this.Da=a[6];this.Wf=a[7];this.a=a[8].map(function(a){return{ea:a[0],type:a[1],uid:a[2]}})};function wa(a,b,c,d){xa(["w","b","h"],[d+7,b+1,c],a.Da,0);a.Wf=d+7}function ya(a,b,c){c=xa(["w"],[c],a.Da,7);wa(a,6,b,c)}
  function za(a,b,c){var d=Aa(["w","b","h"],c),e=d[0],f=d[1],h=d[2];switch(f){case 8:e=a.g.A;var g=[16914839];g[1]=a.l;g[2]=Math.floor(274877906944/g[1]);g[3]=g[2]-Math.floor(e/g[1]);g[4]=g[2]-Math.floor(e/g[1]);g[5]=a.g.a.length;g[6]=1048576;g[7]=0;g[8]=256;e=xa("wwddddddw".split(""),g,a.Da,7);wa(a,f,h,e);a.oa(0,b);break;case 112:case 12:g=Aa(["w","w"],c);var p=g[0];d=g[1];c=a.a[p].ea;var r=Ba(a.g,c);c=Ca(a.g,c);Da(a.g,a.a[p].ea,function(){g[0]=r.ob;g[1]=this.h-24;xa(["Q","w"],g,this.Da,7);wa(this,
  f,h,17);this.oa(0,b)}.bind(a));break;case 70:g=Aa(["w","w","s"],c);e=g[0];p=g[1];c=g[2];r=Ea(a.g);d=Ba(a.g,a.a[p].ea);var v=a.g.g[a.a[p].ea];r.mode=d.mode;r.size=d.size;r.lf=d.lf;var E=a.g.g[a.g.a.length]=new Uint8Array(r.size);for(d=0;d<r.size;d++)E[d]=v[d];r.name=c;r.xa=a.a[e].ea;Fa(a.g,r);wa(a,f,h,0);a.oa(0,b);break;case 16:g=Aa(["w","s","s","w"],c);p=g[0];c=g[1];e=g[3];c=Ga(a.g,c,a.a[p].ea,g[2]);r=Ba(a.g,c);r.uid=a.a[p].uid;r.sb=e;xa(["Q"],[r.ob],a.Da,7);wa(a,f,h,13);a.oa(0,b);break;case 18:g=
  Aa("wswwww".split(""),c);p=g[0];c=g[1];d=g[2];v=g[3];E=g[4];e=g[5];c=Ha(a.g,c,a.a[p].ea,v,E);r=Ba(a.g,c);r.mode=d;r.uid=a.a[p].uid;r.sb=e;xa(["Q"],[r.ob],a.Da,7);wa(a,f,h,13);a.oa(0,b);break;case 22:g=Aa(["w"],c);p=g[0];r=Ba(a.g,a.a[p].ea);e=xa(["s"],[r.lf],a.Da,7);wa(a,f,h,e);a.oa(0,b);break;case 72:g=Aa(["w","s","w","w"],c);p=g[0];c=g[1];d=g[2];e=g[3];c=Ia(a.g,c,a.a[p].ea);r=Ba(a.g,c);r.mode=d|Ja;r.uid=a.a[p].uid;r.sb=e;xa(["Q"],[r.ob],a.Da,7);wa(a,f,h,13);a.oa(0,b);break;case 14:g=Aa(["w","s",
  "w","w","w"],c);p=g[0];c=g[1];d=g[3];e=g[4];c=Ka(a.g,c,a.a[p].ea);a.a[p].ea=c;a.a[p].type=1;r=Ba(a.g,c);r.uid=a.a[p].uid;r.sb=e;r.mode=d;xa(["Q","w"],[r.ob,a.h-24],a.Da,7);wa(a,f,h,17);a.oa(0,b);break;case 52:xa(["w"],[0],a.Da,7);wa(a,f,h,1);a.oa(0,b);break;case 24:g=Aa(["w","d"],c);p=g[0];r=Ba(a.g,a.a[p].ea);if(!r||r.status===La){ya(a,h,2);a.oa(0,b);break}g[0]|=4096;g[0]=g[1];g[1]=r.ob;g[2]=r.mode;g[3]=r.uid;g[4]=r.sb;g[5]=r.Tb;g[6]=r.dh<<8|r.eh;g[7]=r.size;g[8]=a.l;g[9]=Math.floor(r.size/512+1);
  g[10]=r.sf;g[11]=0;g[12]=r.te;g[13]=0;g[14]=r.gg;g[15]=0;g[16]=0;g[17]=0;g[18]=0;g[19]=0;xa("dQwwwddddddddddddddd".split(""),g,a.Da,7);wa(a,f,h,153);a.oa(0,b);break;case 26:g=Aa("wwwwwddddd".split(""),c);p=g[0];r=Ba(a.g,a.a[p].ea);g[1]&1&&(r.mode=g[2]);g[1]&2&&(r.uid=g[3]);g[1]&4&&(r.sb=g[4]);g[1]&16&&(r.sf=Math.floor((new Date).getTime()/1E3));g[1]&32&&(r.te=Math.floor((new Date).getTime()/1E3));g[1]&64&&(r.gg=Math.floor((new Date).getTime()/1E3));g[1]&128&&(r.sf=g[6]);g[1]&256&&(r.te=g[8]);g[1]&
  8&&Ma(a.g,a.a[p].ea,g[5]);wa(a,f,h,0);a.oa(0,b);break;case 50:g=Aa(["w","d"],c);p=g[0];wa(a,f,h,0);a.oa(0,b);break;case 40:case 116:g=Aa(["w","d","w"],c);p=g[0];var z=g[1],C=g[2];r=Ba(a.g,a.a[p].ea);if(!r||r.status===La){ya(a,h,2);a.oa(0,b);break}if(2==a.a[p].type){r.Ra.length<z+C&&(C=r.Ra.length-z);for(d=0;d<C;d++)a.Da[11+d]=r.Ra[z+d];xa(["w"],[C],a.Da,7);wa(a,f,h,4+C);a.oa(0,b)}else{var K=a.g.a[a.a[p].ea];a.w.send("9p-read-start");Ca(a.g,a.a[p].ea);Da(a.g,a.a[p].ea,function(){this.w.send("9p-read-end",
  [K.name,C]);r.size<z+C&&(C=r.size-z);var a=this.g.g[this.a[p].ea];if(a)for(var c=0;c<C;c++)this.Da[11+c]=a[z+c];xa(["w"],[C],this.Da,7);wa(this,f,h,4+C);this.oa(0,b)}.bind(a))}break;case 118:g=Aa(["w","d","w"],c);p=g[0];z=g[1];C=g[2];Na(a.g,a.a[p].ea,z,C,c);K=a.g.a[a.a[p].ea];a.w.send("9p-write-end",[K.name,C]);xa(["w"],[C],a.Da,7);wa(a,f,h,4);a.oa(0,b);break;case 74:g=Aa(["w","s","w","s"],c);c=Oa(a.g,a.a[g[0]].ea,g[1],a.a[g[2]].ea,g[3]);if(0==c){ya(a,h,2);a.oa(0,b);break}wa(a,f,h,0);a.oa(0,b);break;
  case 76:g=Aa(["w","s","w"],c);d=g[0];c=g[1];p=Pa(a.g,a.a[d].ea,c);if(-1==p){ya(a,h,2);a.oa(0,b);break}c=Qa(a.g,p);if(!c){ya(a,h,39);a.oa(0,b);break}wa(a,f,h,0);a.oa(0,b);break;case 100:c=Aa(["w","s"],c);a.h=c[0];e=xa(["w","s"],[a.h,a.v],a.Da,7);wa(a,f,h,e);a.oa(0,b);break;case 104:g=Aa(["w","w","s","s","w"],c);p=g[0];a.a[p]={ea:0,type:1,uid:g[4]};r=Ba(a.g,a.a[p].ea);xa(["Q"],[r.ob],a.Da,7);wa(a,f,h,13);a.oa(0,b);break;case 108:g=Aa(["h"],c);wa(a,f,h,0);a.oa(0,b);break;case 110:g=Aa(["w","w","h"],
  c);p=g[0];e=g[1];v=g[2];if(0==v){a.a[e]={ea:a.a[p].ea,type:1,uid:a.a[p].uid};xa(["h"],[0],a.Da,7);wa(a,f,h,2);a.oa(0,b);break}E=[];for(d=0;d<v;d++)E.push("s");E=Aa(E,c);c=a.a[p].ea;z=9;var ja=0;for(d=0;d<v;d++){c=Pa(a.g,c,E[d]);if(-1==c)break;z+=xa(["Q"],[a.g.a[c].ob],a.Da,z);ja++;a.a[e]={ea:c,type:1,uid:a.a[p].uid}}xa(["h"],[ja],a.Da,7);wa(a,f,h,z-7);a.oa(0,b);break;case 120:g=Aa(["w"],c);a.a[g[0]]&&0<=a.a[g[0]].ea&&(Ra(a.g,a.a[g[0]].ea),a.a[g[0]].ea=-1,a.a[g[0]].type=-1);wa(a,f,h,0);a.oa(0,b);break;
  case 32:g=Aa(["w","s","d","w"],c);p=g[0];c=g[1];wa(a,f,h,0);a.oa(0,b);break;case 30:g=Aa(["w","w","s"],c),p=g[0],d=g[1],c=g[2],a.a[d]={ea:a.a[p].ea,type:-1,uid:a.a[p].uid},e=0,"security.capability"==c&&(e=Sa(a.g,a.a[p].ea),a.a[d].type=2),xa(["d"],[e],a.Da,7),wa(a,f,h,8),a.oa(0,b)}};"undefined"===typeof window||window.requestAnimationFrame||(window.requestAnimationFrame=window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame);
  function Ta(a,b){function c(a){a=a.toString(16);return"#"+Array(7-a.length).join("0")+a}function d(a,b,c,d){a.style.width="";a.style.height="";d&&(a.style.transform=a.style.webkitTransform=a.style.MozTransform="");var f=a.getBoundingClientRect();d?a.style.transform=a.style.webkitTransform=a.style.MozTransform=(1===b?"":" scaleX("+b+")")+(1===c?"":" scaleY("+c+")"):(0===b%1&&0===c%1?(e.style.Ai="pixelated",e.style["-ms-interpolation-mode"]="nearest-neighbor"):(e.style.Ai="",e.style["-ms-interpolation-mode"]=
  ""),d=window.devicePixelRatio||1,0!==d%1&&(b/=d,c/=d));1!==b&&(a.style.width=f.width*b+"px");1!==c&&(a.style.height=f.height*c+"px")}console.assert(a,"1st argument must be a DOM container");var e=a.getElementsByTagName("canvas")[0],f=e.getContext("2d"),h=a.getElementsByTagName("div")[0],g=document.createElement("div"),p,r,v,E,z=1,C=1,K,ja=!1,na,ac,Hd,Vh=this;a=new Uint16Array([199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,162,163,165,8359,
  402,225,237,243,250,241,209,170,186,191,8976,172,189,188,161,171,187,9617,9618,9619,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9561,9560,9554,9555,9579,9578,9496,9484,9608,9604,9612,9616,9600,945,223,915,960,931,963,181,964,934,920,937,948,8734,966,949,8745,8801,177,8805,8804,8992,8993,247,8776,176,8729,183,8730,8319,178,9632,160]);for(var Nc=new Uint16Array([32,9786,9787,9829,9830,
  9827,9824,8226,9688,9675,9689,9794,9792,9834,9835,9788,9658,9668,8597,8252,182,167,9644,8616,8593,8595,8594,8592,8735,8596,9650,9660]),bc=[],kc,Ib=0;256>Ib;Ib++)kc=127<Ib?a[Ib-128]:32>Ib?Nc[Ib]:Ib,bc[Ib]=String.fromCharCode(kc);f.imageSmoothingEnabled=!1;g.style.position="absolute";g.style.backgroundColor="#ccc";g.style.width="7px";g.style.display="inline-block";h.style.display="block";e.style.display="none";this.w=b;b.register("screen-set-mode",function(a){this.Ag(a)},this);b.register("screen-fill-buffer-end",
  function(a){this.Cg(a)},this);b.register("screen-put-char",function(a){this.tg(a[0],a[1],a[2],a[3],a[4])},this);b.register("screen-update-cursor",function(a){this.Sd(a[0],a[1])},this);b.register("screen-update-cursor-scanline",function(a){this.Td(a[0],a[1])},this);b.register("screen-clear",function(){this.Gg()},this);b.register("screen-set-size-text",function(a){this.Nd(a[0],a[1])},this);b.register("screen-set-size-graphical",function(a){this.Md(a[0],a[1],a[2],a[3])},this);this.Sb=function(){this.Nd(80,
  25);this.Jc()};this.h=function(){try{window.open(e.toDataURL())}catch(Bi){}};this.tg=function(a,b,c,e,d){a<Hd&&b<ac&&(b=3*(a*ac+b),na[b]=c,na[b+1]=e,na[b+2]=d,K[a]=1)};this.Jc=function(){requestAnimationFrame(ja?Wh:Xh)};var Xh=function(){for(var a=0;a<Hd;a++)K[a]&&(Vh.g(a),K[a]=0);this.Jc()}.bind(this),Wh=function(){this.w.send("screen-fill-buffer");this.Jc()}.bind(this);this.Qb=function(){};this.Ag=function(a){(ja=a)?(h.style.display="none",e.style.display="block"):(h.style.display="block",e.style.display=
  "none")};this.Gg=function(){f.fillStyle="#000";f.fillRect(0,0,e.width,e.height)};this.Nd=function(a,b){if(a!==ac||b!==Hd){K=new Int8Array(b);na=new Int32Array(a*b*3);ac=a;for(Hd=b;h.childNodes.length>b;)h.removeChild(h.firstChild);for(;h.childNodes.length<b;)h.appendChild(document.createElement("div"));for(a=0;a<b;a++)this.g(a);d(h,z,C,!0)}};this.Md=function(a,b,c,g){e.style.display="block";e.width=a;e.height=b;p=f.createImageData(c,g);new Uint8Array(p.data.buffer);r=new Int32Array(p.data.buffer);
  this.w.send("screen-tell-buffer",[r],[r.buffer]);d(e,z,C,!1)};this.a=function(a,b){z=a;C=b;d(h,z,C,!0);d(e,z,C,!1)};this.a(z,C);this.Td=function(a,b){a&32?g.style.display="none":(g.style.display="inline",g.style.height=Math.min(15,b-a)+"px",g.style.marginTop=Math.min(15,a)+"px")};this.Sd=function(a,b){if(a!==v||b!==E)K[a]=1,K[v]=1,v=a,E=b};this.g=function(a){var b=3*a*ac,e;var d=h.childNodes[a];var f=document.createElement("div");for(var p=0;p<ac;){var r=document.createElement("span");var K=na[b+
  1];var C=na[b+2];r.style.backgroundColor=c(K);r.style.color=c(C);for(e="";p<ac&&na[b+1]===K&&na[b+2]===C;)if(e+=bc[na[b]],p++,b+=3,a===v)if(p===E)break;else if(p===E+1){f.appendChild(g);break}r.textContent=e;f.appendChild(r)}d.parentNode.replaceChild(f,d)};this.Cg=function(a){a.forEach(function(a){f.putImageData(p,a.yg-a.uf,a.zg-a.vf,a.uf,a.vf,a.fg,a.eg)})};this.Sb()};(function(){function a(){for(var a=location.search.substr(1).split("&"),b={},c=0;c<a.length;c++){var e=a[c].split("=");b[e[0]]=decodeURIComponent(e[1])}return b}function b(a,b){for(var c="";0<b--;)c+=a;return c}function c(a){return document.getElementById(a)}function d(){function b(a){c("boot_options").style.display="none";document.title=a.name+" - Virtual x86";f.filesystem=a.filesystem;a.state&&(c("reset").style.display="none",f.qe=a.state);f.Ta=a.Ta;f.Sa=a.Sa;f.Oa=a.Oa;f.ue=a.ue;f.Ka=a.Ka;f.La=
  a.La;f.id=a.id;void 0!==a.he&&(f.he=a.he);a.description&&(c("description").style.display="block",c("description").innerHTML="<br>"+a.description);e(f,d)}function d(a){h.c&&setTimeout(function(){a.$g(h.c+"\n")},25)}if("responseType"in new XMLHttpRequest){var f={};c("start_emulation").onclick=function(){c("boot_options").style.display="none";p("custom");var a=c("floppy_image").files[0];if(a){var b=a;f.Ta={buffer:a}}if(a=c("cd_image").files[0])b=a,f.Sa={buffer:a};if(a=c("hd_image").files[0])b=a,f.Oa=
  {buffer:a};c("multiboot_image")&&(a=c("multiboot_image").files[0])&&(b=a,f.ue={buffer:a});b&&(document.title=b.name+" - Virtual x86");e(f)};var g=[{id:"dexos",state:{url:v+"images/DexOSv6.iso",size:142770436},name:"DexOS",Ka:134217728,La:8388608,Oa:{url:v+"images/DexOSv6.iso",size:17179869184,async:!0},filesystem:{basefs:{url:v+"images/fs.json",size:10232633},baseurl:v+"dexos/"}},{id:"msdos",Oa:{url:v+"images/msdos.img",size:8388608},he:306,name:"MS-DOS"},{id:"freedos",Ta:{url:v+"images/freedos722.img",
  size:737280},name:"FreeDOS"},{id:"oberon",Ta:{url:v+"images/oberon-boot.dsk",size:1474560},Oa:{url:v+"images/oberon.dsk",size:41943040},name:"Oberon"},{id:"windows1",Ta:{url:v+"images/windows101.img",size:1474560},name:"Windows"},{id:"linux26",Sa:{url:v+"images/linux.iso",size:5666816},name:"Linux"},{id:"linux3",Sa:{url:v+"images/linux3.iso",size:8624128},name:"Linux",filesystem:{}},{id:"kolibrios",Ta:{url:r||E?"images/kolibri.img":"//builds.kolibrios.org/eng/data/data/kolibri.img",size:1474560},
  name:"KolibriOS"},{id:"kolibrios-fallback",Ta:{url:v+"images/kolibri.img",size:1474560},name:"KolibriOS"},{id:"openbsd",Ta:{url:v+"images/openbsd.img",size:1474560},name:"OpenBSD"},{id:"solos",Ta:{url:v+"images/os8.dsk",size:1474560},name:"Sol OS"},{id:"dexos",Sa:{url:v+"images/DexOSv6.iso",size:1837056},name:"DexOS"},{id:"bootchess",Ta:{url:v+"images/bootchess.img"},name:"Bootchess"},{id:"windows98",Ka:67108864,Oa:{url:v+"images/windows98.img",async:!0,size:314572800},name:"Windows 98",state:{url:v+
  "images/windows98_state.bin",size:75705744}},{id:"windows95",Ka:33554432,Oa:{url:v+"images/W95.IMG",size:242049024,async:!0},name:"Windows 95",state:{url:v+"images/windows95_state.bin",size:42151316}},{id:"freebsd",Ka:134217728,state:{url:v+"images/freebsd_state.bin",size:142815292},Oa:{url:r?"../v86-images/os/freebsd3.img":z+"images/freebsd3.img",size:17179869184,async:!0},name:"FreeBSD"},{id:"reactos",Ka:268435456,Sa:{url:v+"images/ReactOS-0.4.9-RC-Live.iso",async:!0},state:{url:v+"images/reactos_state.bin",
  size:276971224},name:"ReactOS",description:'Running <a href="https://reactos.org/">ReactOS</a>'}],h=a(),C=h.profile;h.use_bochs_bios&&(f.wk=!0);for(var Nc=0;Nc<g.length;Nc++){var bc=g[Nc];if(C===bc.id){b(bc);return}var kc=c("start_"+bc.id);kc&&(kc.onclick=function(a,c){p(a.id);c.blur();b(a)}.bind(this,bc,kc))}"custom"===C&&(h["hda.url"]&&(f.Oa={size:parseInt(h["hda.size"],10)||void 0,url:h["hda.url"],async:!0}),h["cdrom.url"]&&(f.Sa={size:parseInt(h["cdrom.size"],10)||void 0,url:h["cdrom.url"],async:!0}),
  h["fda.url"]&&(f.Ta={size:parseInt(h["fda.size"],10)||void 0,url:h["fda.url"],async:!0}),f.Ta||f.Sa||f.Oa)&&(c("boot_options").style.display="none",e(f,d))}else alert("Your browser is not supported because it doesn't have XMLHttpRequest.responseType")}function e(a,e){var d=a.Ka;d||(d=1048576*parseInt(c("memory_size").value,10),d||(alert("Invalid memory size - reset to 128MB"),d=134217728));var h=a.La;h||(h=1048576*parseInt(c("video_memory_size").value,10),h||(alert("Invalid video memory size - reset to 8MB"),
  h=8388608));if(!a.Ta){var g=c("floppy_image").files[0];g&&(a.Ta={buffer:g})}if(a.wk){g="bochs-bios.bin";var p="bochs-vgabios.bin"}else g="seabios.bin",p="vgabios.bin";if(!a.qe){var r={url:"bios/"+g};var v={url:"bios/"+p}}var K=new l({memory_size:d,vga_memory_size:h,screen_container:c("screen_container"),serial_container:c("serial"),boot_order:a.he||parseInt(c("boot_order").value,16)||0,network_relay_url:"wss://relay.widgetry.org/",bios:r,vga_bios:v,fda:a.Ta,hda:a.Oa,cdrom:a.Sa,multiboot:a.ue,initial_state:a.qe,
  filesystem:a.filesystem||{},autostart:!0});K.ab("emulator-ready",function(){f(a,K);e&&e(K)});K.ab("download-progress",function(a){var e=c("loading");e.style.display="block";if(a.zf===a.yf-1&&a.loaded>=a.total-2048)e.textContent="Done downloading. Starting now ...";else{var d="Downloading images ";"number"===typeof a.zf&&a.yf&&(d+="["+(a.zf+1)+"/"+a.yf+"] ");if(a.total&&"number"===typeof a.loaded){a=Math.floor(a.loaded/a.total*100);a=Math.min(100,Math.max(0,a));var f=Math.floor(a/2);d=d+(a+"% [")+
  b("#",f);d+=b(" ",50-f)+"]"}else d+=b(".",C++%50);e.textContent=d}});K.ab("download-error",function(a){var b=c("loading");b.style.display="block";b.textContent="Loading "+a.Rg+" failed. Check your connection and reload the page to try again."})}function f(a,b){function e(){var a=Date.now(),e=b.lg(),d=e-v;v=e;var f=a-p;r+=f;p=a;c("speed").textContent=d/f|0;c("avg_speed").textContent=e/r|0;a=c("running_time");e=r/1E3|0;a.textContent=60>e?e+"s":3600>e?(e/60|0)+"m "+Ua(e%60,2)+"s":(e/3600|0)+"h "+Ua((e/
  60|0)%60,2)+"m "+Ua(e%60,2)+"s"}function d(e,d){var f=c("get_"+d+"_image");!e||104857600<e.size?f.style.display="none":f.onclick=function(){var c=b.md[d],e=a.id+("cdrom"===d?".iso":".img");c.Wg?(c=c.Wg(e),Va(c,e)):c.Ve(function(a){a?Wa(a,e):alert("The file could not be loaded. Maybe it's too big?")});f.blur()}}function f(a){a.ctrlKey?window.onbeforeunload=function(){window.onbeforeunload=null;return"CTRL-W cannot be sent to the emulator."}:window.onbeforeunload=null}c("boot_options").style.display=
  "none";c("loading").style.display="none";c("runtime_options").style.display="block";c("runtime_infos").style.display="block";c("screen_container").style.display="block";a.filesystem&&h(b);c("run").onclick=function(){b.Ke?(c("run").value="Run",b.stop()):(c("run").value="Pause",b.hf());c("run").blur()};c("exit").onclick=function(){b.stop();location.href=location.pathname};c("lock_mouse").onclick=function(){if(!g)c("toggle_mouse").onclick();b.Hf();c("lock_mouse").blur()};var g=!0;c("toggle_mouse").onclick=
  function(){g=!g;b.m&&(b.m.a=g);c("toggle_mouse").value=(g?"Dis":"En")+"able mouse";c("toggle_mouse").blur()};var p=0,r=0,v=0,C,K=!1;b.ab("emulator-started",function(){p=Date.now();C=setInterval(e,1E3)});b.ab("emulator-stopped",function(){e();clearInterval(C)});var z=0,E=0;b.ab("9p-read-start",function(){c("info_filesystem").style.display="block";c("info_filesystem_status").textContent="Loading ..."});b.ab("9p-read-end",function(a){z+=a[1];c("info_filesystem_status").textContent="Idle";c("info_filesystem_last_file").textContent=
  a[0];c("info_filesystem_bytes_read").textContent=z});b.ab("9p-write-end",function(a){E+=a[1];c("info_filesystem_last_file").textContent=a[0];c("info_filesystem_bytes_written").textContent=E});var ja=0,Yf=0,Zf=0,$f=0;b.ab("ide-read-start",function(){c("info_storage").style.display="block";c("info_storage_status").textContent="Loading ..."});b.ab("ide-read-end",function(a){ja+=a[1];Yf+=a[2];c("info_storage_status").textContent="Idle";c("info_storage_bytes_read").textContent=ja;c("info_storage_sectors_read").textContent=
  Yf});b.ab("ide-write-end",function(a){Zf+=a[1];$f+=a[2];c("info_storage_bytes_written").textContent=Zf;c("info_storage_sectors_written").textContent=$f});var ag=0,bg=0;b.ab("eth-receive-end",function(a){bg+=a[0];c("info_network").style.display="block";c("info_network_bytes_received").textContent=bg});b.ab("eth-transmit-end",function(a){ag+=a[0];c("info_network").style.display="block";c("info_network_bytes_transmitted").textContent=ag});b.ab("mouse-enable",function(a){K=a;c("info_mouse_enabled").textContent=
  a?"Yes":"No"});b.ab("screen-set-mode",function(a){a?c("info_vga_mode").textContent="Graphical":(c("info_vga_mode").textContent="Text",c("info_res").textContent="-",c("info_bpp").textContent="-")});b.ab("screen-set-size-graphical",function(a){c("info_res").textContent=a[0]+"x"+a[1];c("info_bpp").textContent=a[4]});c("reset").onclick=function(){b.Xf();c("reset").blur()};d(a.Oa,"hda");d(a.Cf,"hdb");d(a.Ta,"fda");d(a.Og,"fdb");d(a.Sa,"cdrom");c("memory_dump").onclick=function(){Wa(b.a.j.fa,"v86memory.bin");
  c("memory_dump").blur()};c("save_state").onclick=function(){b.Be(function(a,b){a?(console.log(a.stack),console.log("Couldn't save state: ",a)):Wa(b,"v86state.bin")});c("save_state").blur()};c("load_state").onclick=function(){c("load_state_input").click();c("load_state").blur()};c("load_state_input").onchange=function(){var a=this.files[0];if(a){var c=b.Ke;c&&b.stop();var e=new FileReader;e.onload=function(a){try{b.Ld(a.target.result)}catch(cg){throw alert("Something bad happened while restoring the state:\n"+
  cg+"\n\nNote that the current configuration must be the same as the original"),cg;}c&&b.hf()};e.readAsArrayBuffer(a);this.value=""}};c("ctrlaltdel").onclick=function(){b.Gf([29,56,83,157,184,211]);c("ctrlaltdel").blur()};c("alttab").onclick=function(){b.Gf([56,15]);setTimeout(function(){b.Gf([184,143])},100);c("alttab").blur()};c("scale").onchange=function(){var a=parseFloat(this.value);(a||0<a)&&b.Jh(a,a)};c("fullscreen").onclick=function(){b.Hh()};c("screen_container").onclick=function(){if(g&&
  K)b.Hf(),c("lock_mouse").blur();else if(window.getSelection().isCollapsed){var a=document.getElementsByClassName("phone_keyboard")[0];a.style.top=document.body.scrollTop+100+"px";a.style.left=document.body.scrollLeft+100+"px";a.focus()}};var Oc=document.getElementsByClassName("phone_keyboard")[0];Oc.setAttribute("autocorrect","off");Oc.setAttribute("autocapitalize","off");Oc.setAttribute("spellcheck","false");Oc.tabIndex=0;c("screen_container").addEventListener("mousedown",function(){Oc.focus()},
  !1);c("take_screenshot").onclick=function(){b.Ih();c("take_screenshot").blur()};c("serial").style.display="block";window.addEventListener("keydown",f,!1);window.addEventListener("keyup",f,!1);window.addEventListener("blur",f,!1)}function h(a){c("filesystem_panel").style.display="block";c("filesystem_send_file").onchange=function(){Array.prototype.forEach.call(this.files,function(b){var c=new Xa(b);c.onload=function(){c.Ve(function(c){a.Hg("/"+b.name,new Uint8Array(c))})};c.load()},this);this.value=
  "";this.blur()};c("filesystem_get_file").onkeypress=function(b){13===b.which&&(this.disabled=!0,a.Bh(this.value,function(a,b){this.disabled=!1;b?(a=this.value.replace(/\/$/,"").split("/"),a=a[a.length-1]||"root",Wa(b,a),this.value=""):alert("Can't read file")}.bind(this)))}}function g(){location.reload()}function p(a){window.history.pushState&&window.history.pushState({profile:a},"","?profile="+a)}var r=!location.hostname.endsWith("copy.sh"),v=r?"":"//i.copy.sh/",E="https:"===location.protocol,z=
  r?"":E?"//j.copy.sh:8443/":"//j.copy.sh:8880/",C=0;window.addEventListener("load",d,!1);window.addEventListener("load",function(){setTimeout(function(){window.addEventListener("popstate",g)},0)});"complete"===document.readyState&&d()})();function Ya(a){this.ports=[];this.j=a;for(var b=0;65536>b;b++)this.ports[b]=Za(this);var c=a.Ka;for(b=0;b<<17<c;b++)a.bf[b]=a.cf[b]=void 0,a.Jf[b]=a.Kf[b]=void 0;$a(this,c,4294967296-c,function(){return 255},function(){},function(){return-1},function(){})}function Za(a){return{na:a.oi,pa:a.mi,zh:a.ni,Ba:a.hg,Ee:a.hg,hd:a.hg,ma:void 0}}k=Ya.prototype;k.oi=function(){return 255};k.mi=function(){return 65535};k.ni=function(){return-1};k.hg=function(){};
  function m(a,b,c,d,e,f){d&&(a.ports[b].na=d);e&&(a.ports[b].pa=e);f&&(a.ports[b].zh=f);a.ports[b].ma=c}function n(a,b,c,d,e,f){d&&(a.ports[b].Ba=d);e&&(a.ports[b].Ee=e);f&&(a.ports[b].hd=f);a.ports[b].ma=c}
  k.Kd=function(a,b,c,d,e,f){function h(){return c.call(this)|d.call(this)<<8}function g(){return e.call(this)|f.call(this)<<8}function p(){return c.call(this)|d.call(this)<<8|e.call(this)<<16|f.call(this)<<24}e&&f?(m(this,a,b,c,h,p),m(this,a+1,b,d),m(this,a+2,b,e,g),m(this,a+3,b,f)):(m(this,a,b,c,h),m(this,a+1,b,d))};
  k.uc=function(a,b,c,d,e,f){function h(a){c.call(this,a&255);d.call(this,a>>8&255)}function g(a){e.call(this,a&255);f.call(this,a>>8&255)}function p(a){c.call(this,a&255);d.call(this,a>>8&255);e.call(this,a>>16&255);f.call(this,a>>>24)}e&&f?(n(this,a,b,c,h,p),n(this,a+1,b,d),n(this,a+2,b,e,g),n(this,a+3,b,f)):(n(this,a,b,c,h),n(this,a+1,b,d))};function ab(a,b,c){b>>>=0;c=b+(c>>>0);if(c>=a.j.Ka)return!0;for(b&=-131072;b<c;){if(bb(a.j,b))return!0;b+=131072}return!1}
  k.Hi=function(a){var b=this.j.bf[a>>>17];return b(a)|b(a+1)<<8|b(a+2)<<16|b(a+3)<<24};k.Ii=function(a,b){var c=this.j.cf[a>>>17];c(a,b&255);c(a+1,b>>8&255);c(a+2,b>>16&255);c(a+3,b>>>24)};function $a(a,b,c,d,e,f,h){f||(f=a.Hi.bind(a));h||(h=a.Ii.bind(a));for(b>>>=17;0<c;b++)a.j.bf[b]=d,a.j.cf[b]=e,a.j.Jf[b]=f,a.j.Kf[b]=h,c-=131072}function cb(a,b,c){a=a.ports[b];a.Ba.call(a.ma,c)}function db(a,b,c){a=a.ports[b];a.Ee.call(a.ma,c)}function eb(a,b,c){a=a.ports[b];a.hd.call(a.ma,c)}
  function fb(a,b){a=a.ports[b];return a.na.call(a.ma)}function gb(a,b){a=a.ports[b];return a.pa.call(a.ma)}function hb(a,b){a=a.ports[b];return a.zh.call(a.ma)};function ib(a){this.g=this.a=!1;this.j=new q(a);this.w=a;a.register("cpu-init",this.Sb,this);a.register("cpu-run",this.hf,this);a.register("cpu-stop",this.stop,this);a.register("cpu-restart",this.Xf,this);this.kk()}ib.prototype.hf=function(){this.a||(this.w.send("emulator-started"),this.ig())};
  function jb(a){if(a.g)a.g=a.a=!1,a.w.send("emulator-stopped");else{a.a=!0;a:{var b=a.j;if(b.Uc){var c=kb();b.H.Nf.Jc(c,!1);b.H.dd.Jc(c,!1);lb(b);if(b.Uc){b=0;break a}}for(var d=c=kb();1>d-c;){var e=b;e.H.Nf.Jc(d,!1);e.H.dd.Jc(d,!1);lb(b);b.ra();if(b.Uc)break;d=kb()}b=0}0>=b?a.ig():a.Ji(b)}}ib.prototype.stop=function(){this.a&&(this.g=!0)};ib.prototype.Xf=function(){this.j.reset();mb(this.j)};ib.prototype.Sb=function(a){this.j.Sb(a,this.w);this.w.send("emulator-ready")};
  if("undefined"!==typeof setImmediate)var nb=function(){var a=this;setImmediate(function(){jb(a)})},ob=function(){};else"undefined"!==typeof window&&"undefined"!==typeof postMessage?(nb=function(){window.postMessage(43605,"*")},ob=function(){var a=this;window.addEventListener("message",function(b){b.source===window&&43605===b.data&&jb(a)},!1)}):(nb=function(){var a=this;setTimeout(function(){jb(a)},0)},ob=function(){});k=ib.prototype;k.ig=nb;k.kk=ob;
  k.Ji="undefined"!==typeof document&&"boolean"===typeof document.hidden?function(a){var b=this;4>a||document.hidden?this.ig():setTimeout(function(){jb(b)},a)}:function(a){var b=this;setTimeout(function(){jb(b)},a)};k.Be=function(){return this.j.Be()};k.Ld=function(a){return this.j.Ld(a)};var kb="object"===typeof performance&&performance.now?function(){return performance.now()}:Date.now;var Xa,pb,qb,rb,sb,tb;function Ua(a,b){for(a=a?a+"":"";a.length<b;)a="0"+a;return a}function ub(a,b){return"0x"+Ua((a?a.toString(16):"").toUpperCase(),b||1)}if("undefined"!==typeof window&&window.crypto&&window.crypto.getRandomValues)var vb=new Int32Array(1),wb=function(){return!0},xb=function(){window.crypto.getRandomValues(vb);return vb[0]};else wb=function(){return!1},xb=function(){console.assert(!1)};function yb(a){this.buffer=a;this.byteLength=a.byteLength;this.onload=void 0}
  yb.prototype.load=function(){this.onload&&this.onload({buffer:this.buffer})};yb.prototype.get=function(a,b,c){c(new Uint8Array(this.buffer,a,b))};yb.prototype.set=function(a,b,c){(new Uint8Array(this.buffer,a,b.byteLength)).set(b);c()};yb.prototype.Ve=function(a){a(this.buffer)};(function(){for(var a=new Int8Array(256),b=0,c=-2;256>b;b++)b&b-1||c++,a[b]=c;pb=function(b){return a[b]};qb=function(b){var c=b>>>16;if(c){var d=c>>>8;return d?24+a[d]:16+a[c]}return(d=b>>>8)?8+a[d]:a[b]}})();
  function zb(a){var b=new Uint8Array(a),c,d;this.length=0;this.push=function(c){this.length!==a&&this.length++;b[d]=c;d=d+1&a-1};this.shift=function(){if(this.length){var e=b[c];c=c+1&a-1;this.length--;return e}return-1};this.clear=function(){this.length=d=c=0};this.clear()}function Ab(){this.size=65536;this.data=new Float32Array(65536);this.length=this.a=this.start=0}
  Ab.prototype.push=function(a){this.length===this.size?this.start=this.start+1&this.size-1:this.length++;this.data[this.a]=a;this.a=this.a+1&this.size-1};Ab.prototype.shift=function(){if(this.length){var a=this.data[this.start];this.start=this.start+1&this.size-1;this.length--;return a}};
  function Bb(a,b){var c=new Float32Array(b);b>a.length&&(b=a.length);var d=a.start+b,e=a.data.subarray(a.start,d);c.set(e);d>=a.size&&(d-=a.size,c.set(a.data.subarray(0,d),e.length));a.start=d;a.length-=b;return c}Ab.prototype.clear=function(){this.length=this.a=this.start=0};function Wa(a,b){a instanceof Array||(a=[a]);Va(new Blob(a),b)}
  function Va(a,b){var c=document.createElement("a");c.download=b;c.href=window.URL.createObjectURL(a);c.dataset.downloadurl=["application/octet-stream",c.download,c.href].join(":");document.createEvent?(a=document.createEvent("MouseEvent"),a.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),c.dispatchEvent(a)):c.click();window.URL.revokeObjectURL(c.href)};function Cb(a){this.j=a;this.J=new Float64Array(8);this.m=new Float32Array(1);new Uint8Array(this.m.buffer);this.v=new Int32Array(this.m.buffer);this.l=new Float64Array(1);this.g=new Uint8Array(this.l.buffer);this.h=new Int32Array(this.l.buffer);this.L=new Uint8Array(this.J.buffer);new Int32Array(this.J.buffer);this.ha=255;this.C=0;this.hc=895;this.rd=this.qd=this.sd=this.Te=this.Pc=this.a=0;this.A=NaN;this.F=new Float64Array([1,Math.log(10)/Math.LN2,Math.LOG2E,Math.PI,Math.log(2)/Math.LN10,Math.LN2,
  0])}k=Cb.prototype;k.Ua=function(){var a=[];a[0]=this.J;a[1]=this.ha;a[2]=this.C;a[3]=this.hc;a[4]=this.rd;a[5]=this.Pc;a[6]=this.Te;a[7]=this.qd;a[8]=this.rd;a[9]=this.sd;return a};k.hb=function(a){this.J.set(a[0]);this.ha=a[1];this.C=a[2];this.hc=a[3];this.Pc=a[5];this.Te=a[6];this.qd=a[7];this.rd=a[8];this.sd=a[9]};function Db(a){t(a.j)}function Eb(a){a.a|=1}function Fb(a,b){var c=Gb(a);a.a&=-18177;c>b||(a.a=b>c?a.a|256:c===b?a.a|16384:a.a|17664)}
  function Hb(a,b){var c=a.J[a.C];a.j.u&=-70;a.j.flags&=-70;c>b||(a.j.flags=b>c?a.j.flags|1:c===b?a.j.flags|64:a.j.flags|69)}function Jb(a){a.hc=895;a.a=0;a.Pc=0;a.qd=0;a.sd=0;a.ha=255;a.C=0}function Kb(a){return a.a&-14337|a.C<<11}
  function Lb(a,b){if(Mb(a.j)){Nb(a.j,b,26);u(a.j,b,a.hc);u(a.j,b+4,Kb(a));for(var c=0,d,e=0;8>e;e++)d=a.J[e],a.ha>>e&1?c|=3<<(e<<1):0===d?c|=1<<(e<<1):isFinite(d)||(c|=2<<(e<<1));u(a.j,b+8,c);w(a.j,b+12,a.Pc);u(a.j,b+16,a.Te);u(a.j,b+18,a.sd);w(a.j,b+20,a.qd);u(a.j,b+24,a.rd)}else Db(a)}
  function Ob(a,b){if(Mb(a.j)){a.hc=x(a.j,b);var c=x(a.j,b+4);a.a=c&-14337;a.C=c>>11&7;c=x(a.j,b+8);for(var d=a.ha=0;8>d;d++)a.ha|=c>>d&c>>d+1&1<<d;a.Pc=y(a.j,b+12);a.Te=x(a.j,b+16);a.sd=x(a.j,b+18);a.qd=y(a.j,b+20);a.rd=x(a.j,b+24)}else Db(a)}function Pb(a,b){a=a.hc>>10&3;return 0===a?(a=Math.round(b),.5===a-b&&a%2&&a--,a):1===a||3===a&&0<b?Math.floor(b):Math.ceil(b)}function Qb(a){return 0<a?Math.floor(a):Math.ceil(a)}
  k.push=function(a){this.C=this.C-1&7;this.ha>>this.C&1?(this.a&=-513,this.ha&=~(1<<this.C),this.J[this.C]=a):(this.a|=512,this.a|=65,this.J[this.C]=this.A)};k.pop=function(){this.ha|=1<<this.C;this.C=this.C+1&7};function Rb(a,b){b=b+a.C&7;return a.ha>>b&1?(a.a&=-513,a.a|=65,a.A):a.J[b]}function Gb(a){return a.ha>>a.C&1?(a.a&=-513,a.a|=65,a.A):a.J[a.C]}
  function Sb(a,b){var c=x(a.j,b+8),d=y(a.j,b)>>>0,e=y(a.j,b+4)>>>0;b=c>>15;c&=-32769;if(0===c)return 0;if(!(32767>c))return a.g[7]=127|b<<7,a.g[6]=240|e>>30<<3&8,a.g[5]=0,a.g[4]=0,a.h[0]=0,a.l[0];a=d+4294967296*e;b&&(a=-a);return a*Math.pow(2,c-16383-63)}
  function Tb(a,b,c){a.l[0]=c;c=a.g[7]&128;var d=(a.g[7]&127)<<4|a.g[6]>>4;if(2047===d){d=32767;var e=0;var f=2147483648|(a.h[1]&524288)<<11}else 0===d?f=e=0:(d+=15360,e=a.h[0]<<11,f=2147483648|(a.h[1]&1048575)<<11|a.h[0]>>>21);w(a.j,b,e);w(a.j,b+4,f);u(a.j,b+8,c<<8|d)}function Ub(a,b){var c=y(a.j,b);b=y(a.j,b+4);a.h[0]=c;a.h[1]=b;return a.l[0]}function Vb(a,b){Nb(a.j,b,8);a.l[0]=Rb(a,0);w(a.j,b,a.h[0]);w(a.j,b+4,a.h[1])}function Wb(a,b){a.v[0]=y(a.j,b);return a.m[0]}
  k.sign=function(a){return this.L[(this.C+a&7)<<3|7]>>7};function Xb(a,b,c,d,e){this.ua=new Yb(this,a,b,c,d,e);this.Fa=new Yb(this,a,void 0,!1,d,e);this.Ma=this.ua;this.j=a;0===d?(this.a=496,this.wa=14,this.Lb=240):1===d&&(this.a=368,this.wa=15,this.Lb=248);this.h=this.a|516;this.g=46080;this.we=[134,128,16,112,5,0,160,2,0,128,1,1,0,0,0,0,this.a&255|1,this.a>>8,0,0,this.h&255|1,this.h>>8,0,0,0,0,0,0,0,0,0,0,this.g&255|1,this.g>>8,0,0,0,0,0,0,0,0,0,0,67,16,212,130,0,0,0,0,0,0,0,0,0,0,0,0,this.wa,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.tc=[{size:8},{size:4},void 0,void 0,{size:16}];this.name="ide"+d;this.m=2;m(a.o,this.a|7,this,function(){Zb(this.j,this.wa);return this.Fh()});m(a.o,this.h|2,this,this.Fh);n(a.o,this.h|2,this,this.Ak);m(a.o,this.a|0,this,function(){return $b(this.Ma,1)},function(){return $b(this.Ma,2)},function(){return $b(this.Ma,4)});m(a.o,this.a|1,this,function(){return this.Ma.error});
  m(a.o,this.a|2,this,function(){return this.Ma.sa&255});m(a.o,this.a|3,this,function(){return this.Ma.Pa&255});m(a.o,this.a|4,this,function(){return this.Ma.Ga&255});m(a.o,this.a|5,this,function(){return this.Ma.Ia&255});m(a.o,this.a|6,this,function(){return this.Ma.Nc});n(a.o,this.a|0,this,function(a){cc(this.Ma,a,1)},function(a){cc(this.Ma,a,2)},function(a){cc(this.Ma,a,4)});n(a.o,this.a|1,this,function(a){this.ua.xd=(this.ua.xd<<8|a)&65535;this.Fa.xd=(this.Fa.xd<<8|a)&65535});n(a.o,this.a|2,this,
  function(a){this.ua.sa=(this.ua.sa<<8|a)&65535;this.Fa.sa=(this.Fa.sa<<8|a)&65535});n(a.o,this.a|3,this,function(a){this.ua.Pa=(this.ua.Pa<<8|a)&65535;this.Fa.Pa=(this.Fa.Pa<<8|a)&65535});n(a.o,this.a|4,this,function(a){this.ua.Ga=(this.ua.Ga<<8|a)&65535;this.Fa.Ga=(this.Fa.Ga<<8|a)&65535});n(a.o,this.a|5,this,function(a){this.ua.Ia=(this.ua.Ia<<8|a)&65535;this.Fa.Ia=(this.Fa.Ia<<8|a)&65535});n(a.o,this.a|6,this,function(a){this.Ma=a&16?this.Fa:this.ua;this.ua.Nc=a;this.Fa.Nc=a;this.ua.re=this.Fa.re=
  a>>6&1;this.ua.head=this.Fa.head=a&15});this.l=this.Ja=this.Gd=0;n(a.o,this.a|7,this,function(a){Zb(this.j,this.wa);var b=this.Ma;if(b.buffer)switch(b.v=a,b.error=0,a){case 8:b.h=0;b.a=0;b.g=0;dc(b);b.ca();break;case 16:b.status=80;b.Ga=0;b.ca();break;case 248:b.status=80;var c=b.l-1;b.Pa=c&255;b.Ga=c>>8&255;b.Ia=c>>16&255;b.Nc=b.Nc&240|c>>24&15;b.ca();break;case 39:b.status=80;c=b.l-1;b.Pa=c&255;b.Ga=c>>8&255;b.Ia=c>>16&255;b.Pa|=c>>24<<8&65280;b.ca();break;case 32:case 36:case 41:case 196:ec(b,
  a);break;case 48:case 52:case 57:case 197:var e=52===a||57===a;c=fc(b,e);e=gc(b,e);a=48===a||52===a;c*=b.m;e*=b.m;e+c>b.buffer.byteLength?(b.status=255,b.ca()):(b.status=88,hc(b,c),b.a=a?512:Math.min(c,512*b.T),b.ra=e);break;case 144:b.ca();b.error=257;b.status=80;break;case 145:b.status=80;b.ca();break;case 160:b.P&&(b.status=88,ic(b,12),b.a=12,b.sa=1,b.ca());break;case 161:b.P?(jc(b),b.status=88,b.Ga=20,b.Ia=235):b.status=65;b.ca();break;case 198:b.T=b.sa&255;b.status=80;b.ca();break;case 37:case 200:c=
  37===a;e=fc(b,c);gc(b,c)*b.m+e*b.m>b.buffer.byteLength?(b.status=255,b.ca()):(b.status=88,b.ma.Ja|=1);break;case 53:case 202:c=53===a;e=fc(b,c);gc(b,c)*b.m+e*b.m>b.buffer.byteLength?(b.status=255,b.ca()):(b.status=88,b.ma.Ja|=1);break;case 64:b.status=80;b.ca();break;case 218:b.status=65;b.error=4;b.ca();break;case 224:b.status=80;b.ca();break;case 225:b.status=80;b.ca();break;case 231:b.status=80;b.ca();break;case 236:if(b.P){b.status=65;b.error=4;b.ca();break}jc(b);b.status=88;b.ca();break;case 234:b.status=
  80;b.ca();break;case 239:b.status=80;b.ca();break;case 245:b.status=80;b.ca();break;case 249:b.status=65;b.error=4;break;default:b.status=65,b.error=4}else b.error=4,b.status=65,b.ca()});m(a.o,this.g|4,this,void 0,void 0,this.fi);n(a.o,this.g|4,this,void 0,void 0,this.ji);m(a.o,this.g,this,this.hi,void 0,this.gi);n(a.o,this.g,this,this.Lg,void 0,this.ki);m(a.o,this.g|2,this,this.ii);n(a.o,this.g|2,this,this.Mg);m(a.o,this.g|8,this,function(){return 0});m(a.o,this.g|10,this,function(){return 0});lc(a.H.zb,
  this)}k=Xb.prototype;k.Fh=function(){return this.Ma.buffer?this.Ma.status:0};k.Ak=function(a){a&4&&(Zb(this.j,this.wa),dc(this.ua),dc(this.Fa));this.m=a};k.fi=function(){return this.Gd};k.ji=function(a){this.Gd=a};k.ii=function(){return this.Ja};k.Mg=function(a){this.Ja&=~(a&6)};k.gi=function(){return this.l|this.Ja<<16};k.hi=function(){return this.l};k.ki=function(a){this.Lg(a&255);this.Mg(a>>16&255)};
  k.Lg=function(a){var b=this.l;this.l=a&9;if((b&1)!==(a&1))if(0===(a&1))this.Ja&=-2;else switch(this.Ja|=1,this.Ma.v){case 37:case 200:mc(this.Ma);break;case 202:case 53:nc(this.Ma);break;case 160:oc(this.Ma)}};k.ca=function(){0===(this.m&2)&&(this.Ja|=4,this.j.Gb(this.wa))};k.Ua=function(){var a=[];a[0]=this.ua;a[1]=this.Fa;a[2]=this.a;a[3]=this.wa;a[4]=this.Lb;a[5]=this.h;a[6]=this.g;a[7]=this.name;a[8]=this.m;a[9]=this.Gd;a[10]=this.Ja;a[11]=this.Ma===this.ua;a[12]=this.l;return a};
  k.hb=function(a){this.ua=a[0];this.Fa=a[1];this.a=a[2];this.wa=a[3];this.Lb=a[4];this.h=a[5];this.g=a[6];this.name=a[7];this.m=a[8];this.Gd=a[9];this.Ja=a[10];this.Ma=a[11]?this.ua:this.Fa;this.l=a[12]};
  function Yb(a,b,c,d,e,f){this.ma=a;this.w=f;this.Ca=e;this.j=b;this.buffer=c;this.m=d?2048:512;this.P=d;this.L=this.A=this.F=this.l=0;this.buffer&&(this.l=this.buffer.byteLength/this.m,this.l!==(this.l|0)&&(this.l=Math.ceil(this.l)),d?(this.F=1,this.A=0):(this.F=16,this.A=63),this.L=this.l/this.F/this.A,this.L!==(this.L|0)&&(this.L=Math.floor(this.L)),a=b.H.dd,a.la[57]|=1<<4*this.Ca,a.la[18]=a.la[18]&15|240,a.la[27]=this.L&255,a.la[28]=this.L>>8&255,a.la[29]=this.F&255,a.la[30]=255,a.la[31]=255,a.la[32]=
  200,a.la[33]=this.L&255,a.la[34]=this.L>>8&255,a.la[35]=this.A&255);this.Qa={Kh:0,Lh:0,Eg:0,Fg:0,ah:!1};this.buffer=c;this.Nc=this.head=this.Ia=this.Ga=this.xd=this.Pa=this.sa=this.re=0;this.status=80;this.T=128;this.h=this.error=0;this.data=new Uint8Array(65536);this.ka=new Uint16Array(this.data.buffer);this.W=new Int32Array(this.data.buffer);this.a=this.g=0;this.ja=this.v=-1;this.ra=0;Object.seal(this)}
  function dc(a){a.P?(a.status=0,a.sa=1,a.error=1,a.Pa=1,a.Ga=20,a.Ia=235):(a.status=81,a.sa=1,a.error=1,a.Pa=1,a.Ga=0,a.Ia=0)}Yb.prototype.ca=function(){this.ma.ca()};Yb.prototype.Pe=function(){this.status=80;var a=this.data.subarray(0,this.g);pc(this,this.v,this.g/512);this.ca();this.buffer.set(this.ra,a,function(){});qc(this,this.g)};
  function rc(a,b){var c=(b[7]<<8|b[8])*a.m;b=(b[2]<<24|b[3]<<16|b[4]<<8|b[5])*a.m;a.g=0;var d=a.Ia<<8&65280|a.Ga&255;a.Ga=a.Ia=0;65535===d&&d--;d>c&&(d=c);b>=a.buffer.byteLength?(a.status=255,a.ca()):0===c?(a.status=80,a.h=0):(c=Math.min(c,a.buffer.byteLength-b),a.status=208,sc(a),a.buffer.get(b,c,function(b){tc(a,b);a.status=88;a.sa=a.sa&-8|2;a.ca();d&=-4;a.a=d;a.a>a.g&&(a.a=a.g);a.Ga=a.a&255;a.Ia=a.a>>8&255;uc(a,c)}))}
  function vc(a,b){var c=(b[7]<<8|b[8])*a.m;b=(b[2]<<24|b[3]<<16|b[4]<<8|b[5])*a.m;b>=a.buffer.byteLength?(a.status=255,a.ca()):(a.status=208,sc(a),a.buffer.get(b,c,function(b){uc(a,c);a.status=88;a.sa=a.sa&-8|2;tc(a,b);oc(a)}))}
  function oc(a){if(0!==(a.ma.Ja&1)&&0!==(a.status&8)){var b=a.ma.Gd,c=0,d=a.data;do{var e=wc(a.j,b),f=a.j.pa(b+4),h=a.j.na(b+7)&128;f||(f=65536);a.j.fa.set(d.subarray(c,Math.min(c+f,a.g)),e);c+=f;b+=8;if(c>=a.g&&!h)break}while(!h);a.status=80;a.ma.Ja&=-2;a.sa=a.sa&-8|3;a.ca()}}
  function $b(a,b){if(a.h<a.a){var c=1===b?a.data[a.h]:2===b?a.ka[a.h>>>1]:a.W[a.h>>>2];a.h+=b;a.h>=a.a&&(160===a.v?a.a===a.g?(a.status=80,a.sa=a.sa&-8|3,a.ca()):(a.status=88,a.sa=a.sa&-8|2,a.ca(),b=a.Ia<<8&65280|a.Ga&255,a.a+b>a.g?(a.Ga=a.g-a.a&255,a.Ia=a.g-a.a>>8&255,a.a=a.g):a.a+=b):(a.error=0,a.h>=a.g?a.status=80:(b=196===a.v||41===a.v?Math.min(a.T,(a.g-a.a)/512):1,pc(a,a.v,b),a.a+=512*b,a.status=88),a.ca()));return c}a.h+=b;return 0}
  function cc(a,b,c){if(!(a.h>=a.a)&&(1===c?a.data[a.h++]=b:2===c?(a.ka[a.h>>>1]=b,a.h+=2):(a.W[a.h>>>2]=b,a.h+=4),a.h===a.a))if(160===a.v){a.h=0;a.ja=a.data[0];switch(a.ja){case 0:ic(a,0);a.a=a.g;a.status=80;break;case 3:ic(a,a.data[4]);a.a=a.g;a.status=88;a.data[0]=240;a.data[2]=5;a.data[7]=8;break;case 18:b=a.data[4];a.status=88;a.data.set([5,128,1,49,31,0,0,0,83,79,78,89,32,32,32,32,67,68,45,82,79,77,32,67,68,85,45,49,48,48,48,32,49,46,49,97]);a.a=a.g=Math.min(36,b);break;case 26:ic(a,a.data[4]);
  a.a=a.g;a.status=88;break;case 30:ic(a,0);a.a=a.g;a.status=80;break;case 37:b=a.l-1;tc(a,new Uint8Array([b>>24&255,b>>16&255,b>>8&255,b&255,0,0,a.m>>8&255,a.m&255]));a.a=a.g;a.status=88;break;case 40:a.xd&1?vc(a,a.data):rc(a,a.data);break;case 66:b=a.data[8];ic(a,Math.min(8,b));a.a=a.g;a.status=88;break;case 67:b=a.data[8]|a.data[7]<<8;c=a.data[9]>>6;ic(a,b);a.a=a.g;0===c?(b=a.l,a.data.set(new Uint8Array([0,18,1,1,0,20,1,0,0,0,0,0,0,22,170,0,b>>24,b>>16&255,b>>8&255,b&255]))):1===c&&a.data.set(new Uint8Array([0,
  10,1,1,0,0,0,0,0,0,0,0]));a.status=88;break;case 70:b=a.data[8]|a.data[7]<<8;b=Math.min(b,32);ic(a,b);a.a=a.g;a.data[0]=b-4>>24&255;a.data[1]=b-4>>16&255;a.data[2]=b-4>>8&255;a.data[3]=b-4&255;a.data[6]=8;a.data[10]=3;a.status=88;break;case 81:ic(a,0);a.a=a.g;a.status=80;break;case 82:a.status=81;a.g=0;a.error=80;break;case 90:b=a.data[8]|a.data[7]<<8;42===a.data[2]&&ic(a,Math.min(30,b));a.a=a.g;a.status=88;break;case 189:ic(a,a.data[9]|a.data[8]<<8);a.a=a.g;a.data[5]=1;a.status=88;break;case 74:a.status=
  81;a.g=0;a.error=80;break;default:a.status=81,a.g=0,a.error=80}a.sa=a.sa&-8|2;0===(a.status&128)&&a.ca();0===(a.status&128)&&0===a.g&&(a.sa|=1,a.status&=-9)}else a.h>=a.g?a.Pe():(a.status=88,a.a+=512,a.ca())}
  function pc(a,b,c){a.sa-=c;36===b||41===b||52===b||57===b||37===b||53===b?(b=c+xc(a),a.Pa=b&255|b>>16&65280,a.Ga=b>>8&255,a.Ia=b>>16&255):a.re?(b=c+yc(a),a.Pa=b&255,a.Ga=b>>8&255,a.Ia=b>>16&255,a.head=a.head&-16|b&15):(b=c+zc(a),c=b/(a.F*a.A)|0,a.Ga=c&255,a.Ia=c>>8&255,a.head=(b/a.A|0)%a.F&15,a.Pa=b%a.A+1&255,zc(a))}
  function ec(a,b){var c=36===b||41===b,d=fc(a,c);c=gc(a,c);var e=32===b||36===b,f=d*a.m;c*=a.m;c+f>a.buffer.byteLength?(a.status=255,a.ca()):(a.status=192,sc(a),a.buffer.get(c,f,function(c){tc(a,c);a.status=88;a.a=e?512:Math.min(f,512*a.T);pc(a,b,e?1:Math.min(d,a.A));a.ca();uc(a,f)}))}
  function mc(a){var b=37===a.v,c=fc(a,b);b=gc(a,b);var d=c*a.m;b*=a.m;sc(a);a.buffer.get(b,d,function(b){var e=a.ma.Gd,h=0;do{var g=wc(a.j,e),p=a.j.pa(e+4),r=a.j.na(e+7)&128;p||(p=65536);a.j.fa.set(b.subarray(h,h+p),g);h+=p;e+=8}while(!r);pc(a,a.v,c);a.status=80;a.ma.Ja&=-2;a.v=-1;a.ca();uc(a,d)})}
  function nc(a){var b=53===a.v,c=fc(a,b),d=gc(a,b);b=c*a.m;d*=a.m;var e=a.ma.Gd,f=0,h=0,g=0;do{var p=wc(a.j,e),r=a.j.pa(e+4),v=a.j.na(e+7)&128;r||(r=65536);a.buffer.set(d+g,a.j.fa.subarray(p,p+r),function(){h++});g+=r;e+=8;f++}while(!v);h===f&&(pc(a,a.v,c),a.status=80,a.ca(),a.ma.Ja&=-2,a.v=-1);qc(a,b)}function zc(a){return((a.Ga&255|a.Ia<<8&65280)*a.F+a.head)*a.A+(a.Pa&255)-1}function yc(a){return a.Pa&255|a.Ga<<8&65280|a.Ia<<16&16711680|(a.head&15)<<24}
  function xc(a){return(a.Pa&255|a.Ga<<8&65280|a.Ia<<16&16711680|a.Pa>>8<<24&4278190080)>>>0}function gc(a,b){return b?xc(a):a.re?yc(a):zc(a)}function fc(a,b){b?(a=a.sa,0===a&&(a=65536)):(a=a.sa&255,0===a&&(a=256));return a}
  function jc(a){if(a.Nc&16)ic(a,0);else{for(var b=0;512>b;b++)a.data[b]=0;b=Math.min(16383,a.L);tc(a,[64,a.P?133:0,b,b>>8,0,0,a.F,a.F>>8,a.A/512,a.A/512>>8,0,2,a.A,a.A>>8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,2,4,0,0,0,0,0,0,0,0,0,56,118,32,54,68,72,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,128,0,1,0,0,2,0,0,0,2,0,2,7,0,b,b>>8,a.F,a.F>>8,a.A,0,a.l&255,a.l>>8&255,a.l>>16&255,a.l>>24&255,0,0,a.l&255,a.l>>8&255,a.l>>16&255,
  a.l>>24&255,0,0,160===a.v?0:7,160===a.v?0:4,0,0,30,0,30,0,30,0,30,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,126,0,0,0,0,0,0,116,0,64,0,64,0,116,0,64,0,0,0,0,0,0,0,0,0,0,1,96,0,0,0,0,0,0,0,0,0,0,0,0,a.l&255,a.l>>8&255,a.l>>16&255,a.l>>24&255]);a.g=512;a.a=512}}function ic(a,b){hc(a,b);for(var c=0;c<b+3>>2;c++)a.W[c]=0}function hc(a,b){a.data.length<b&&(a.data=new Uint8Array(b+3&-4),a.ka=new Uint16Array(a.data.buffer),a.W=new Int32Array(a.data.buffer));a.g=b;a.h=0}
  function tc(a,b){hc(a,b.length);a.data.set(b)}function sc(a){a.Qa.ah=!0;a.w.send("ide-read-start")}function uc(a,b){a.Qa.ah=!1;var c=b/a.m|0;a.Qa.Kh+=c;a.Qa.Eg+=b;a.w.send("ide-read-end",[a.Ca,b,c])}function qc(a,b){var c=b/a.m|0;a.Qa.Lh+=c;a.Qa.Fg+=b;a.w.send("ide-write-end",[a.Ca,b,c])}
  Yb.prototype.Ua=function(){var a=[];a[0]=this.sa;a[1]=this.L;a[2]=this.Ia;a[3]=this.Ga;a[4]=this.h;a[5]=0;a[6]=0;a[7]=0;a[8]=0;a[9]=this.Nc;a[10]=this.error;a[11]=this.head;a[12]=this.F;a[13]=this.P;a[14]=this.re;a[15]=this.xd;a[16]=this.data;a[17]=this.g;a[18]=this.Pa;a[19]=this.l;a[20]=this.m;a[21]=this.T;a[22]=this.A;a[23]=this.status;a[24]=this.ra;a[25]=this.v;a[26]=this.a;a[27]=this.ja;return a};
  Yb.prototype.hb=function(a){this.sa=a[0];this.L=a[1];this.Ia=a[2];this.Ga=a[3];this.h=a[4];this.Nc=a[9];this.error=a[10];this.head=a[11];this.F=a[12];this.P=a[13];this.re=a[14];this.xd=a[15];this.data=a[16];this.g=a[17];this.Pa=a[18];this.l=a[19];this.m=a[20];this.T=a[21];this.A=a[22];this.status=a[23];this.ra=a[24];this.v=a[25];this.a=a[26];this.ja=a[27];this.ka=new Uint16Array(this.data.buffer);this.W=new Int32Array(this.data.buffer)};function Ac(a){this.sc=new Uint8Array(4);this.a=new Uint8Array(4);this.Cd=new Uint8Array(4);this.Dd=new Uint8Array(4);this.Bd=new Int32Array(this.sc.buffer);new Int32Array(this.a.buffer);this.hh=new Int32Array(this.Cd.buffer);this.jh=new Int32Array(this.Dd.buffer);this.jc=[];this.H=[];this.j=a;for(var b=0;256>b;b++)this.jc[b]=void 0,this.H[b]=void 0;this.o=a.o;n(a.o,3324,this,function(a){Bc(this,this.Bd[0],a)},function(a){Cc(this,this.Bd[0],a)},function(a){var b=this.Bd[0],c=b>>8&65535,f=b&255;b=
  this.jc[c];c=this.H[c];if(b)if(16<=f&&40>f)if(c=c.tc[f-16>>2]){f>>=2;var h=b[f]&1;-1===(a|3|c.size-1)?(a=~(c.size-1)|h,0===h&&(b[f]=a)):0===h&&(b[f]=c.gh);1===h&&(Dc(this,c,b[f]&65534,a&65534),b[f]=a|1)}else b[f>>2]=0;else 48===f?b[f>>2]=c.ih?-1===(a|2047)?-c.ih|0:c.Li|0:0:b[f>>>2]=a});n(a.o,3325,this,function(a){Bc(this,this.Bd[0]+1|0,a)});n(a.o,3326,this,function(a){Bc(this,this.Bd[0]+2|0,a)},function(a){Cc(this,this.Bd[0]+2|0,a)});n(a.o,3327,this,function(a){Bc(this,this.Bd[0]+3|0,a)});a.o.Kd(3324,
  this,function(){return this.Cd[0]},function(){return this.Cd[1]},function(){return this.Cd[2]},function(){return this.Cd[3]});a.o.Kd(3320,this,function(){return this.Dd[0]},function(){return this.Dd[1]},function(){return this.Dd[2]},function(){return this.Dd[3]});a.o.uc(3320,this,function(a){this.sc[0]=a&252},function(a){this.sc[1]=a},function(a){this.sc[2]=a},function(a){this.sc[3]=a;a=this.sc[0]&252;var b=this.jc[this.sc[2]<<8|this.sc[1]];void 0!==b?(this.jh[0]=-2147483648,this.hh[0]=a<b.byteLength?
  b[a>>2]:0):(this.hh[0]=-1,this.jh[0]=0)});lc(this,{Lb:0,we:[134,128,55,18,0,0,0,0,2,0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],tc:[],name:"82441FX PMC"});this.h={Lb:8,we:[134,128,0,112,7,0,0,2,0,0,1,6,0,0,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],tc:[],name:"82371SB PIIX3 ISA"};this.l=lc(this,this.h);this.g=new Uint8Array(this.l.buffer)}
  Ac.prototype.Ua=function(){for(var a=[],b=0;256>b;b++)a[b]=this.jc[b];a[256]=this.sc;a[257]=this.a;a[258]=this.Cd;a[259]=this.Dd;return a};Ac.prototype.hb=function(a){for(var b=0;256>b;b++){var c=this.H[b],d=a[b];if(c&&d){for(var e=0;e<c.tc.length;e++){var f=d[4+e];if(f&1){var h=c.tc[e];Dc(this,h,h.gh&65534,f&65534)}}this.jc[b].set(d)}}this.sc.set(a[256]);this.a.set(a[257]);this.Cd.set(a[258]);this.Dd.set(a[259])};function Bc(a,b,c){var d=b&255;(new Uint8Array(a.jc[b>>8&65535].buffer))[d]=c}
  function Cc(a,b,c){var d=b&255;(new Uint16Array(a.jc[b>>8&65535].buffer))[d>>>1]=c}function lc(a,b){var c=b.Lb,d=new Int32Array(64);d.set(new Int32Array((new Uint8Array(b.we)).buffer));a.jc[c]=d;a.H[c]=b;c=d.slice(4,10);for(var e=0;e<b.tc.length;e++){var f=b.tc[e];if(f){var h=c[e],g=h&1;f.gh=h;f.entries=[];if(0!==g)for(h&=-2,g=0;g<f.size;g++)f.entries[g]=a.o.ports[h+g]}}return d}function Dc(a,b,c,d){for(var e=b.size,f=a.o.ports,h=0;h<e;h++)f[c+h]=Za(a.o),f[d+h]=b.entries[h]}
  Ac.prototype.Bb=function(a){this.j.Gb(this.g[96+((this.jc[a][15]>>8&255)-1+((a>>3)-1&255)&3)])};function Ec(a,b){Zb(a.j,a.g[96+((a.jc[b][15]>>8&255)+(b>>3&255)-2&3)])};function Fc(a,b){this.o=a.o;this.j=a;this.Yb=a.H.Yb;this.g=0;this.ja=new Uint8Array(10);this.ka=0;this.l=null;this.a=new Uint8Array(10);this.A=this.m=this.h=0;this.T=b;this.W=this.L=this.Ya=this.Fb=this.ib=this.Za=0;this.ra=1;this.v=0;if(b){this.A=b.byteLength;var c;if((c={160:{type:1,ec:40,dc:8,ac:1},180:{type:1,ec:40,dc:9,ac:1},200:{type:1,ec:40,dc:10,ac:1},320:{type:1,ec:40,dc:8,ac:2},360:{type:1,ec:40,dc:9,ac:2},400:{type:1,ec:40,dc:10,ac:2},720:{type:3,ec:80,dc:9,ac:2},1200:{type:2,ec:80,dc:15,
  ac:2},1440:{type:4,ec:80,dc:18,ac:2},1722:{type:5,ec:82,dc:21,ac:2},2880:{type:5,ec:80,dc:36,ac:2}}[this.A>>10])&&0===(this.A&1023))a.H.dd.la[16]=c.type<<4,a=c.dc,b=c.ac,c=c.ec;else throw"Unknown floppy size: "+ub(b.byteLength);this.F=a;this.P=b;this.Ca=c}else a.H.dd.la[16]=64,this.A=this.Ca=this.P=this.F=0;m(this.o,1008,this,this.Rj);m(this.o,1010,this,this.Sj);m(this.o,1012,this,this.Uj);m(this.o,1013,this,this.Vj);m(this.o,1015,this,this.Xj);n(this.o,1010,this,this.Tj);n(this.o,1013,this,this.Wj)}
  k=Fc.prototype;k.Ua=function(){var a=[];a[0]=this.g;a[1]=this.ja;a[2]=this.ka;a[4]=this.a;a[5]=this.h;a[6]=this.m;a[7]=this.A;a[8]=this.Za;a[9]=this.ib;a[10]=this.Fb;a[11]=this.Ya;a[12]=this.L;a[13]=this.W;a[14]=this.ra;a[15]=this.v;a[16]=this.F;a[17]=this.P;a[18]=this.Ca;return a};
  k.hb=function(a){this.g=a[0];this.ja=a[1];this.ka=a[2];this.l=a[3];this.a=a[4];this.h=a[5];this.m=a[6];this.A=a[7];this.Za=a[8];this.ib=a[9];this.Fb=a[10];this.Ya=a[11];this.L=a[12];this.W=a[13];this.ra=a[14];this.v=a[15];this.F=a[16];this.P=a[17];this.Ca=a[18]};k.Rj=function(){return 0};k.Uj=function(){var a=128;this.h<this.m&&(a|=80);0===(this.v&8)&&(a|=32);return a};k.Xj=function(){return 0};k.Vj=function(){return this.h<this.m?(Zb(this.j,6),this.a[this.h++]):255};
  k.Wj=function(a){if(this.T)if(0<this.g)this.ja[this.ka++]=a,this.g--,0===this.g&&this.l.call(this,this.ja);else{switch(a){case 3:this.l=this.ti;this.g=2;break;case 4:this.l=this.Yh;this.g=1;break;case 5:case 197:this.l=function(a){Gc(this,!0,a)};this.g=8;break;case 230:this.l=function(a){Gc(this,!1,a)};this.g=8;break;case 7:this.l=this.Xh;this.g=1;break;case 8:this.h=0;this.m=2;this.a[0]=32;this.a[1]=this.L;break;case 74:this.l=this.ik;this.g=1;break;case 15:this.g=2;this.l=this.Rh;break;case 14:this.a[0]=
  128,this.h=0,this.m=1,this.g=0}this.ka=0}};k.Sj=function(){return this.v};k.Tj=function(a){4===(a&4)&&0===(this.v&4)&&this.j.Gb(6);this.v=a};k.Yh=function(){this.h=0;this.m=1;this.a[0]=32};k.Rh=function(a){this.L=a[1];this.W=a[0]>>2&1;this.Bb()};k.Xh=function(){this.Bb()};function Gc(a,b,c){var d=c[2],e=c[1],f=c[3],h=128<<c[4],g=c[5]-c[3]+1,p=((d+a.P*e)*a.F+f-1)*h;a.T&&(b?a.Yb.Pe(a.T,p,g*h,2,a.done.bind(a,c,e,d,f)):Hc(a.Yb,a.T,p,a.done.bind(a,c,e,d,f)))}
  k.done=function(a,b,c,d,e){e||(d++,d>this.F&&(d=1,c++,c>=this.P&&(c=0,b++)),this.L=b,this.W=c,this.ra=d,this.h=0,this.m=7,this.a[0]=c<<2|32,this.a[1]=0,this.a[2]=0,this.a[3]=b,this.a[4]=c,this.a[5]=d,this.a[6]=a[4],this.Bb())};k.ti=function(){};k.ik=function(){this.h=0;this.m=7;this.a[0]=0;this.a[1]=0;this.a[2]=0;this.a[3]=0;this.a[4]=0;this.a[5]=0;this.a[6]=0;this.Bb()};k.Bb=function(){this.v&8&&this.j.Gb(6)};function Ic(a,b){a=a.bf[b>>>17];return a(b)|a(b+1|0)<<8}function Jc(a,b,c){a=a.cf[b>>>17];a(b,c&255);a(b+1|0,c>>8&255)}function bb(a,b){return 655360<=(b|0)&&786432>(b|0)||b>>>0>=a.Ka>>>0}k=q.prototype;k.na=function(a){return bb(this,a)?this.bf[a>>>17](a):this.fa[a]};k.pa=function(a){return bb(this,a)?Ic(this,a):this.fa[a]|this.fa[a+1|0]<<8};function Kc(a,b){return bb(a,b<<1)?Ic(a,b<<1):a.If[b]}
  function wc(a,b){return bb(a,b)?a.Jf[b>>>17](b):a.fa[b]|a.fa[b+1|0]<<8|a.fa[b+2|0]<<16|a.fa[b+3|0]<<24}function Lc(a,b){bb(a,b<<2)?(b<<=2,a=a.Jf[b>>>17](b)):a=a.Dc[b];return a}k.Ba=function(a,b){if(bb(this,a))this.cf[a>>>17](a,b);else this.fa[a]=b};k.Ee=function(a,b){bb(this,a)?Jc(this,a,b):(this.fa[a]=b,this.fa[a+1|0]=b>>8)};function Mc(a,b,c){bb(a,b<<1)?Jc(a,b<<1,c):a.If[b]=c}
  k.hd=function(a,b){if(bb(this,a))this.Kf[a>>>17](a,b);else this.fa[a]=b,this.fa[a+1|0]=b>>8,this.fa[a+2|0]=b>>16,this.fa[a+3|0]=b>>24};function Pc(a,b,c){bb(a,b<<2)?(b<<=2,a.Kf[b>>>17](b,c)):a.Dc[b]=c};function Qc(a){this.j=a;this.v=new Uint8Array(8);this.A=new Uint8Array(8);this.a=new Uint16Array(8);this.l=new Uint16Array(8);this.g=new Uint16Array(8);this.m=new Uint16Array(8);this.xc=new Uint8Array(8);this.F=new Uint8Array(8);this.ag=[];this.h=0;a=a.o;n(a,0,this,this.Zc.bind(this,0));n(a,2,this,this.Zc.bind(this,1));n(a,4,this,this.Zc.bind(this,2));n(a,6,this,this.Zc.bind(this,3));n(a,1,this,this.ad.bind(this,0));n(a,3,this,this.ad.bind(this,1));n(a,5,this,this.ad.bind(this,2));n(a,7,this,this.ad.bind(this,
  3));m(a,0,this,this.Yc.bind(this,0));m(a,2,this,this.Yc.bind(this,1));m(a,4,this,this.Yc.bind(this,2));m(a,6,this,this.Yc.bind(this,3));m(a,1,this,this.$c.bind(this,0));m(a,3,this,this.$c.bind(this,1));m(a,5,this,this.$c.bind(this,2));m(a,7,this,this.$c.bind(this,3));n(a,192,this,this.Zc.bind(this,4));n(a,196,this,this.Zc.bind(this,5));n(a,200,this,this.Zc.bind(this,6));n(a,204,this,this.Zc.bind(this,7));n(a,194,this,this.ad.bind(this,4));n(a,198,this,this.ad.bind(this,5));n(a,202,this,this.ad.bind(this,
  6));n(a,206,this,this.ad.bind(this,7));m(a,192,this,this.Yc.bind(this,4));m(a,196,this,this.Yc.bind(this,5));m(a,200,this,this.Yc.bind(this,6));m(a,204,this,this.Yc.bind(this,7));m(a,194,this,this.$c.bind(this,4));m(a,198,this,this.$c.bind(this,5));m(a,202,this,this.$c.bind(this,6));m(a,206,this,this.$c.bind(this,7));n(a,135,this,this.cd.bind(this,0));n(a,131,this,this.cd.bind(this,1));n(a,129,this,this.cd.bind(this,2));n(a,130,this,this.cd.bind(this,3));n(a,143,this,this.cd.bind(this,4));n(a,139,
  this,this.cd.bind(this,5));n(a,137,this,this.cd.bind(this,6));n(a,138,this,this.cd.bind(this,7));m(a,135,this,this.bd.bind(this,0));m(a,131,this,this.bd.bind(this,1));m(a,129,this,this.bd.bind(this,2));m(a,130,this,this.bd.bind(this,3));m(a,143,this,this.bd.bind(this,4));m(a,139,this,this.bd.bind(this,5));m(a,137,this,this.bd.bind(this,6));m(a,138,this,this.bd.bind(this,7));n(a,1159,this,this.Fd.bind(this,0));n(a,1155,this,this.Fd.bind(this,1));n(a,1153,this,this.Fd.bind(this,2));n(a,1154,this,this.Fd.bind(this,
  3));n(a,1163,this,this.Fd.bind(this,5));n(a,1161,this,this.Fd.bind(this,6));n(a,1162,this,this.Fd.bind(this,7));m(a,1159,this,this.Ed.bind(this,0));m(a,1155,this,this.Ed.bind(this,1));m(a,1153,this,this.Ed.bind(this,2));m(a,1154,this,this.Ed.bind(this,3));m(a,1163,this,this.Ed.bind(this,5));m(a,1161,this,this.Ed.bind(this,6));m(a,1162,this,this.Ed.bind(this,7));n(a,10,this,this.xh.bind(this,0));n(a,212,this,this.xh.bind(this,4));n(a,15,this,this.wh.bind(this,0));n(a,222,this,this.wh.bind(this,4));
  m(a,15,this,this.vh.bind(this,0));m(a,222,this,this.vh.bind(this,4));n(a,11,this,this.uh.bind(this,0));n(a,214,this,this.uh.bind(this,4));n(a,12,this,this.th);n(a,216,this,this.th)}k=Qc.prototype;k.Ua=function(){return[this.v,this.A,this.a,this.l,this.g,this.m,this.xc,this.F,this.h]};k.hb=function(a){this.v=a[0];this.A=a[1];this.a=a[2];this.l=a[3];this.g=a[4];this.m=a[5];this.xc=a[6];this.F=a[7];this.h=a[8]};k.ad=function(a,b){this.g[a]=Rc(this,this.g[a],b,!1);this.m[a]=Rc(this,this.m[a],b,!0)};
  k.$c=function(a){return Sc(this,this.g[a])};k.Zc=function(a,b){this.a[a]=Rc(this,this.a[a],b,!1);this.l[a]=Rc(this,this.l[a],b,!0)};k.Yc=function(a){return Sc(this,this.a[a])};k.Fd=function(a,b){this.A[a]=b};k.Ed=function(a){return this.A[a]};k.cd=function(a,b){this.v[a]=b};k.bd=function(a){return this.v[a]};k.xh=function(a,b){Tc(this,(b&3)+a,b&4?1:0)};k.wh=function(a,b){for(var c=0;4>c;c++)Tc(this,a+c,b&1<<c)};
  k.vh=function(a){var b=0|this.xc[a+0];b|=this.xc[a+1]<<1;b|=this.xc[a+2]<<2;return b|=this.xc[a+3]<<3};k.uh=function(a,b){this.F[(b&3)+a]=b};k.th=function(){this.h=0};function Tc(a,b,c){if(a.xc[b]!==c&&(a.xc[b]=c,!c))for(c=0;c<a.ag.length;c++)a.ag[c].Af.call(a.ag[c].Bg,b)}function Hc(a,b,c,d){var e=a.g[2]+1,f=Uc(a,2);if(c+e>b.byteLength)d(!0);else{var h=a.j;a.a[2]+=e;b.get(c,e,function(a){h.fa.set(a,f);d(!1)})}}
  k.Pe=function(a,b,c,d,e){var f=this,h=this.g[d]+1&65535,g=5<=d?2:1,p=h*g,r=Uc(this,d),v=!1,E=!1,z=this.F[d]&16;c<p?(h=Math.floor(c/g),p=h*g,v=!0):c>p&&(E=!0);b+p>a.byteLength?e(!0):(this.a[d]+=h,this.g[d]-=h,!v&&z&&(this.a[d]=this.l[d],this.g[d]=this.m[d]),a.set(b,this.j.fa.subarray(r,r+p),function(){E&&z?f.Pe(a,b+p,c-p,d,e):e(!1)}))};function Uc(a,b){var c=a.a[b];5<=b&&(c<<=1);c=c&65535|a.v[b]<<16;return c|=a.A[b]<<24}function Rc(a,b,c,d){d||(a.h^=1);return a.h?b&-256|c:b&-65281|c<<8}
  function Sc(a,b){a.h^=1;return a.h?b&255:b>>8&255};function Vc(a,b){this.j=a;this.w=b;this.m=new Float64Array(3);this.v=new Uint16Array(3);this.g=new Uint8Array(4);this.l=new Uint8Array(4);this.h=new Uint8Array(4);this.L=new Uint8Array(4);this.A=new Uint8Array(4);this.F=new Uint16Array(3);this.a=new Uint16Array(3);m(a.o,97,this,function(){var a=kb(),b=66.66666666666667*a&1;a=Wc(this,2,a);return b<<4|a<<5});n(a.o,97,this,function(a){a&1?this.w.send("pcspeaker-enable"):this.w.send("pcspeaker-disable")});m(a.o,64,this,function(){return Xc(this,0)});
  m(a.o,65,this,function(){return Xc(this,1)});m(a.o,66,this,function(){return Xc(this,2)});n(a.o,64,this,function(a){Yc(this,0,a)});n(a.o,65,this,function(a){Yc(this,1,a)});n(a.o,66,this,function(a){Yc(this,2,a)});n(a.o,67,this,this.P)}Vc.prototype.Ua=function(){var a=[];a[0]=this.g;a[1]=this.l;a[2]=this.h;a[3]=this.L;a[4]=this.A;a[5]=this.F;a[6]=this.a;a[7]=this.m;a[8]=this.v;return a};
  Vc.prototype.hb=function(a){this.g=a[0];this.l=a[1];this.h=a[2];this.L=a[3];this.A=a[4];this.F=a[5];this.a=a[6];this.m=a[7];this.v=a[8]};Vc.prototype.Jc=function(a,b){b||(this.l[0]&&Wc(this,0,a)?(this.v[0]=Zc(this,0,a),this.m[0]=a,this.j.Gb(0),0===this.h[0]&&(this.l[0]=0)):Zb(this.j,0))};function Zc(a,b,c){if(!a.l[b])return 0;c=a.v[b]-Math.floor(1193.1816666*(c-a.m[b]));a=a.a[b];c>=a?c%=a:0>c&&(c=c%a+a);return c}function Wc(a,b,c){c-=a.m[b];return 0>c?!0:a.v[b]<Math.floor(1193.1816666*c)}
  function Xc(a,b){var c=a.A[b];if(c)return a.A[b]--,2===c?a.F[b]&255:a.F[b]>>8;c=a.g[b];3===a.h[b]&&(a.g[b]^=1);a=Zc(a,b,kb());return c?a&255:a>>8}function Yc(a,b,c){a.a[b]=a.g[b]?a.a[b]&-256|c:a.a[b]&255|c<<8;3===a.L[b]&&a.g[b]||(a.a[b]||(a.a[b]=65535),a.v[b]=a.a[b],a.l[b]=!0,a.m[b]=kb());3===a.L[b]&&(a.g[b]^=1);a.w.send("pcspeaker-update",[a.h[2],a.a[2]])}
  Vc.prototype.P=function(a){var b=a>>1&7,c=a>>6&3;a=a>>4&3;3!==c&&(0===a?(this.A[c]=2,b=Zc(this,c,kb()),this.F[c]=b?b-1:0):(6<=b&&(b&=-5),this.g[c]=1===a?0:1,0===c&&Zb(this.j,0),this.h[c]=b,this.L[c]=a,this.w.send("pcspeaker-update",[this.h[2],this.a[2]])))};var $c=Uint32Array.from([655360,655360,720896,753664]),ad=Uint32Array.from([131072,65536,32768,32768]);
  function bd(a,b,c){var d=this;this.w=b;this.La=c;this.F=0;this.Ge=14;this.Fe=15;this.P=80;this.$d=25;this.Zg=this.vb=this.Ue=this.Ca=0;this.Cc=[];this.Xe=this.Wa=0;this.Kc=new Uint8Array(25);this.v=this.T=this.Se=this.W=this.a=this.h=this.Xd=this.Yd=this.bb=0;this.Ie=!0;this.$a=!1;setTimeout(function(){b.send("screen-set-mode",d.$a)},0);this.Ob=new Int32Array(256);this.A=this.ub=this.g=0;this.rb=!1;this.Ic=32;this.pg=this.gc=0;this.we=[222,16,32,10,7,0,0,0,162,0,0,3,0,0,128,0,8,14680064,57344,224,
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,1,0,0];this.Lb=144;this.tc=[{size:c}];this.ih=65536;this.Li=4272947200;this.name="vga";this.Qa={ng:!1,mk:0,nk:0,Dg:0};this.Za=this.Lc=this.Ya=this.L=0;this.Me=new Uint8Array(16);this.m=-1;this.ae=32;this.kd=this.Zd=this.je=this.wb=0;this.de=-1;this.ce=15;this.wc=this.ee=0;this.Wd=-1;this.fc=this.Ec=this.Qe=0;this.Je=255;this.ra=this.ka=this.ja=this.Fb=this.Le=this.be=0;this.l=this.Df=255;c=a.o;n(c,960,this,this.wj);
  m(c,960,this,this.qh,this.vj);m(c,961,this,this.rh);n(c,962,this,this.xj);c.uc(964,this,this.zj,this.Bj);m(c,964,this,this.yj);m(c,965,this,this.Aj);c.uc(974,this,this.Kj,this.Mj);m(c,974,this,this.Jj);m(c,975,this,this.Lj);n(c,967,this,this.Dj);m(c,967,this,this.Cj);n(c,968,this,this.Fj);m(c,968,this,this.Ej);n(c,969,this,this.Hj);m(c,969,this,this.Gj);m(c,972,this,this.Ij);c.uc(980,this,this.Oj,this.Qj);m(c,980,this,this.Nj);m(c,981,this,this.Pj);m(c,970,this,function(){return 0});m(c,986,this,
  this.sh);m(c,954,this,this.sh);this.Vd=-1;this.ib=0;n(c,462,this,void 0,this.Ni);n(c,463,this,void 0,this.Pi);m(c,463,this,void 0,this.Oi);void 0===this.La||786432>this.La?this.La=786432:this.La&65535&&(this.La|=65535,this.La++);this.Aa=new Uint8Array(this.La);this.kb=this.La;this.cb=0;this.me=this.La;this.le=0;this.ke=void 0;b.register("screen-tell-buffer",function(a){this.ke&&a[0]&&a[0].set(this.ke.subarray(0,a[0].length));this.ke=a[0]},this);b.register("screen-fill-buffer",function(){if(this.$a&&
  this.ke)if(this.cb<this.kb&&this.le<this.me)this.w.send("screen-fill-buffer-end",this.Cc);else{if(this.rb){var a=this.ke,b=this.kb,c=this.cb;switch(this.Ic){case 32:var e=b>>2,d=(c>>2)+1;for(b=e;b<d;b++)c=this.Ph[b],a[b]=c<<16|c>>16&255|c&65280|4278190080;break;case 24:e=b/3|0;d=(c/3|0)+1;var v=3*e;for(b=e;v<c;b++){var E=this.Aa[v++],z=this.Aa[v++],C=this.Aa[v++];a[b]=E<<16|z<<8|C|4278190080}break;case 16:e=b>>1;d=(c>>1)+1;for(b=e;b<d;b++)c=this.sk[b],C=255*(c>>11)/31|0,z=255*(c>>5&63)/63|0,E=255*
  (c&31)/31|0,a[b]=E<<16|z<<8|C|4278190080;break;case 8:for(e=b,d=c+1;b<=c;b++)z=this.Ob[this.Aa[b]],a[b]=z&65280|z<<16|z>>16|4278190080}a=e/this.ub|0;this.w.send("screen-fill-buffer-end",[{yg:0,zg:a,uf:0,vf:a,fg:this.ub,eg:(d/this.ub|0)-a+1}])}else{d=Math.min(this.le|15,524287);a=cd(this);e=~this.bb&3;b=this.Ec&96;c=this.wb&64;for(z=this.me&-16;z<=d;){var K=z>>>a;if(e){C=z/this.vb|0;v=z-this.vb*C;switch(e){case 1:K=(C&1)<<13;C>>>=1;break;case 2:K=(C&1)<<14;C>>>=1;break;case 3:K=(C&3)<<13,C>>>=2}K|=
  (C*this.vb+v>>>a)+this.Wa}C=this.Pf[K];v=this.Qf[K];E=this.Rf[K];var ja=this.Sf[K];K=new Uint8Array(8);switch(b){case 0:C<<=0;v<<=1;E<<=2;ja<<=3;for(var na=7;0<=na;na--)K[7-na]=C>>na&1|v>>na&2|E>>na&4|ja>>na&8;break;case 32:K[0]=C>>6&3|E>>4&12;K[1]=C>>4&3|E>>2&12;K[2]=C>>2&3|E>>0&12;K[3]=C>>0&3|E<<2&12;K[4]=v>>6&3|ja>>4&12;K[5]=v>>4&3|ja>>2&12;K[6]=v>>2&3|ja>>0&12;K[7]=v>>0&3|ja<<2&12;break;case 64:case 96:K[0]=C>>4&15,K[1]=C>>0&15,K[2]=v>>4&15,K[3]=v>>0&15,K[4]=E>>4&15,K[5]=E>>0&15,K[6]=ja>>4&15,
  K[7]=ja>>0&15}if(c)for(C=na=0;4>na;na++,z++,C+=2)this.Of[z]=K[C]<<4|K[C+1];else for(na=0;8>na;na++,z++)this.Of[z]=K[na]}c=this.kb;d=Math.min(this.cb,524287);if(a=this.ke)if(e=255,b=0,this.wb&128&&(e&=207,b|=this.kd<<4&48),this.wb&64)for(;c<=d;c++)z=this.Of[c]&e|b,z=this.Ob[z],a[c]=z&65280|z<<16|z>>16|4278190080;else for(e&=63,b|=this.kd<<4&192;c<=d;c++)z=this.Me[this.Of[c]&this.je]&e|b,z=this.Ob[z],a[c]=z&65280|z<<16|z>>16|4278190080;this.w.send("screen-fill-buffer-end",this.Cc)}this.kb=this.La;this.cb=
  0;this.me=this.La;this.le=0}dd(this)},this);this.sk=new Uint16Array(this.Aa.buffer);this.Ph=new Int32Array(this.Aa.buffer);this.fe=new Uint8Array(this.Aa.buffer,0,262144);this.Pf=new Uint8Array(this.Aa.buffer,0,65536);this.Qf=new Uint8Array(this.Aa.buffer,65536,65536);this.Rf=new Uint8Array(this.Aa.buffer,131072,65536);this.Sf=new Uint8Array(this.Aa.buffer,196608,65536);this.Of=new Uint8Array(this.Aa.buffer,262144,524288);var e=this;$a(c,655360,131072,function(a){return ed(e,a)},function(a,b){if(e.rb&&
  e.$a&&e.Ie){var c=a-655360|e.gc;e.kb=c<e.kb?c:e.kb;e.cb=c>e.cb?c:e.cb;e.Aa[c]=b}else{var d=e.Fb>>2&3;a-=$c[d];if(!(0>a||a>=ad[d]))if(e.$a){var f=b;b=fd(e.Je);var h=gd(e.be);d=gd(e.Le);switch(e.Ec&3){case 0:f=(f|f<<8)>>>(e.fc&7)&255;c=fd(f);f=gd(e.be);c=hd(e,(c|d&f)&(~d|f),e.g);c=b&c|~b&e.g;break;case 1:c=e.g;break;case 2:c=gd(f);c=hd(e,c,e.g);c=b&c|~b&e.g;break;case 3:f=(f|f<<8)>>>(e.fc&7)&255,b&=fd(f),c=b&h|~b&e.g}b=15;switch(e.ee&12){case 0:b=5<<(a&1);a&=-2;break;case 8:case 12:b=1<<(a&3),a&=-4}b&=
  e.ce;b&1&&(e.Pf[a]=c>>0&255);b&2&&(e.Qf[a]=c>>8&255);b&4&&(e.Rf[a]=c>>16&255);b&8&&(e.Sf[a]=c>>24&255);b=id(e,a);c=b+7;b<e.me&&(e.me=b);c>e.le&&(e.le=c);b<e.kb&&(e.kb=b);c>e.cb&&(e.cb=c)}else e.ce&3&&(c=a,d=(c>>1)-e.Wa,a=d/e.P|0,d%=e.P,c&1?(h=b,f=e.fe[c&-2]):(f=b,h=e.fe[c|1]),e.w.send("screen-put-char",[a,d,f,e.Ob[h>>4&15],e.Ob[h&15]]),e.fe[c]=b)}});$a(c,3758096384,this.La,function(a){return e.Aa[a&268435455]},function(a,b){a&=268435455;e.Aa[a]=b;e.kb=a<e.kb?a:e.kb;e.cb=a>e.cb?a:e.cb},function(a){a&=
  268435455;return a&3?e.Aa[a]|e.Aa[a+1]<<8|e.Aa[a+2]<<16|e.Aa[a+3]<<24:e.Ph[a>>2]},function(a,b){a&=268435455;e.kb=a<e.kb?a:e.kb;e.cb=a+3>e.cb?a+3:e.cb;e.Aa[a]=b;e.Aa[a+1]=b>>8;e.Aa[a+2]=b>>16;e.Aa[a+3]=b>>24});lc(a.H.zb,this)}k=bd.prototype;
  k.Ua=function(){var a=[];a[0]=this.La;a[1]=this.F;a[2]=this.Ge;a[3]=this.Fe;a[4]=this.P;a[5]=this.$d;a[6]=this.Cc;a[7]=this.Za;a[8]=this.Wa;a[9]=this.$a;a[10]=this.Ob;a[11]=this.g;a[12]=this.ja;a[13]=this.ka;a[14]=this.Fb;a[15]=this.ub;a[16]=this.A;a[17]=this.bb;a[18]=this.rb;a[19]=this.Ic;a[20]=this.gc;a[21]=this.pg;a[22]=this.L;a[23]=this.Ya;a[24]=this.Lc;a[25]=this.Me;a[26]=this.de;a[27]=this.ce;a[28]=this.ee;a[29]=this.Wd;a[30]=this.Qe;a[31]=this.Ec;a[32]=this.fc;a[33]=this.Je;a[34]=this.ra;a[35]=
  this.Df;a[36]=this.l;a[37]=this.Vd;a[38]=this.ib;a[39]=this.Aa;a[40]=this.Ie;a[41]=this.m;a[42]=this.T;a[43]=this.be;a[44]=this.Le;a[45]=this.Xe;a[46]=this.Kc;a[47]=this.Yd;a[48]=this.Xd;a[49]=this.h;a[50]=this.a;a[51]=this.W;a[52]=this.Se;a[53]=this.T;a[54]=this.ae;a[55]=this.wb;a[56]=this.je;a[57]=this.Zd;a[58]=this.kd;a[59]=this.wc;a[60]=this.v;return a};
  k.hb=function(a){this.La=a[0];this.F=a[1];this.Ge=a[2];this.Fe=a[3];this.P=a[4];this.$d=a[5];this.Cc=a[6];this.Za=a[7];this.Wa=a[8];this.$a=a[9];this.Ob=a[10];this.g=a[11];this.ja=a[12];this.ka=a[13];this.Fb=a[14];this.ub=a[15];this.A=a[16];this.bb=a[17];this.rb=a[18];this.Ic=a[19];this.gc=a[20];this.pg=a[21];this.L=a[22];this.Ya=a[23];this.Lc=a[24];this.Me=a[25];this.de=a[26];this.ce=a[27];this.ee=a[28];this.Wd=a[29];this.Qe=a[30];this.Ec=a[31];this.fc=a[32];this.Je=a[33];this.ra=a[34];this.Df=a[35];
  this.l=a[36];this.Vd=a[37];this.ib=a[38];this.Aa.set(a[39]);this.Ie=a[40];this.m=a[41];this.T=a[42];this.be=a[43];this.Le=a[44];this.Xe=a[45];this.Kc.set(a[46]);this.Yd=a[47];this.Xd=a[48];this.h=a[49];this.a=a[50];this.W=a[51];this.Se=a[52];this.T=a[53];this.ae=a[54];this.wb=a[55];this.je=a[56];this.Zd=a[57];this.kd=a[58];this.wc=a[59];this.v=a[60];this.w.send("screen-set-mode",this.$a);this.$a?(this.Ue=this.Ca=0,this.rb?(this.Md(this.ub,this.A,this.Ic,this.ub,this.A),jd(this)):(kd(this),ld(this))):
  (this.Nd(this.P,this.$d),this.Td(),this.Sd());md(this)};function ed(a,b){if(a.rb&&a.Ie)return b=b-655360|a.gc,a.Aa[b];var c=a.Fb>>2&3;b-=$c[c];if(0>b||b>=ad[c])return 0;a.g=a.Pf[b];a.g|=a.Qf[b]<<8;a.g|=a.Rf[b]<<16;a.g|=a.Sf[b]<<24;if(a.Ec&8)return c=255,a.ka&1&&(c&=a.Pf[b]^~(a.ja&1?255:0)),a.ka&2&&(c&=a.Qf[b]^~(a.ja&2?255:0)),a.ka&4&&(c&=a.Rf[b]^~(a.ja&4?255:0)),a.ka&8&&(c&=a.Sf[b]^~(a.ja&8?255:0)),c;c=a.Qe;a.$a?a.ee&8?(c=b&3,b&=-4):a.Ec&16&&(c=b&1,b&=-2):c=0;return a.fe[c<<16|b]}
  function fd(a){return a|a<<8|a<<16|a<<24}function gd(a){return(a&1?255:0)|(a&2?255:0)<<8|(a&4?255:0)<<16|(a&8?255:0)<<24}function hd(a,b,c){switch(a.fc&24){case 8:return b&c;case 16:return b|c;case 24:return b^c}return b}function nd(a){for(var b=a.Wa<<1,c,d,e=0;e<a.$d;e++)for(var f=0;f<a.P;f++)c=a.fe[b],d=a.fe[b|1],a.w.send("screen-put-char",[e,f,c,a.Ob[d>>4&15],a.Ob[d&15]]),b+=2}
  k.Sd=function(){var a=(this.F-this.Wa)/this.P|0,b=(this.F-this.Wa)%this.P;a=Math.min(this.$d-1,a);this.w.send("screen-update-cursor",[a,b])};function md(a){a.$a?(a.kb=0,a.rb?a.cb=a.La:a.cb=524288):nd(a)}function ld(a){a.$a&&!a.rb&&(a.me=0,a.le=524288,md(a))}k.Qb=function(){};function cd(a){var b=128+(~a.W&a.bb&64);b-=a.W&64;b-=a.wb&64;return b>>>6}
  function id(a,b){var c=cd(a);if(~a.bb&3){var d=b-a.Wa;d&=a.bb<<13|-24577;d<<=c;var e=d/a.vb|0;d%=a.vb;switch(a.bb&3){case 2:e=e<<1|b>>13&1;break;case 1:e=e<<1|b>>14&1;break;case 0:e=e<<2|b>>13&3}return e*a.vb+d+(a.Wa<<c)}return b<<c}function od(a,b){a.ra&128&&(b>>>=1);b=Math.ceil(b/(1+(a.ra&31)));a.bb&1||(b<<=1);a.bb&2||(b<<=1);return b}k.Nd=function(a,b){this.P=a;this.$d=b;this.w.send("screen-set-size-text",[a,b])};
  k.Md=function(a,b,c,d,e){this.Qa.ng&&this.Qa.Dg===c&&this.Ca===a&&this.Ue===b&&this.vb===d&&this.Zg===e||(this.Ca=a,this.Ue=b,this.vb=d,this.Zg=e,this.Qa.Dg=c,this.Qa.ng=!0,this.Qa.mk=a,this.Qa.nk=b,this.w.send("screen-set-size-graphical",[a,b,d,e,c]))};
  function kd(a){if(!a.rb){var b=Math.min(1+a.Yd,a.Xd),c=Math.min(1+a.h,a.a);if(b&&c)if(a.$a){b<<=3;var d=a.T<<4;a.wb&64&&(b>>>=1,d>>>=1);var e=a.T<<2;a.W&64?e<<=1:a.bb&64&&(e>>>=1);a.Md(b,od(a,c),8,d,Math.ceil(ad[0]/e));dd(a);jd(a)}else a.ra&128&&(c>>>=1),c=c/(1+(a.ra&31))|0,b&&c&&a.Nd(b,c)}}
  function jd(a){a.$a||nd(a);if(a.rb)a.Cc=[];else if(a.vb&&a.Ca)if(!a.ae||a.wc&32)a.Cc=[],a.w.send("screen-clear");else{var b=a.Xe,c=a.Zd;a.wb&64&&(c>>>=1);var d=a.Se>>5&3,e=id(a,b+d);b=e/a.vb|0;var f=e%a.vb+c;e=od(a,1+a.v);e=Math.min(e,a.Ue);var h=a.Ue-e;a.Cc=[];f=-f;for(var g=0;f<a.Ca;f+=a.vb,g++)a.Cc.push({yg:f,zg:0,uf:0,vf:b+g,fg:a.vb,eg:e});b=0;a.wb&32||(b=id(a,d)+c);f=-b;for(g=0;f<a.Ca;f+=a.vb,g++)a.Cc.push({yg:f,zg:e,uf:0,vf:g,fg:a.vb,eg:h})}}
  function dd(a){a.l|=8;a.Xe!==a.Wa&&(a.Xe=a.Wa,jd(a))}k.Td=function(){this.w.send("screen-update-cursor-scanline",[this.Ge,this.Fe])};
  k.wj=function(a){if(-1===this.m)this.m=a&31,this.ae!==(a&32)&&(this.ae=a&32,jd(this));else{if(16>this.m)this.Me[this.m]=a,this.wb&64||md(this);else switch(this.m){case 16:if(this.wb!==a){var b=this.wb;this.wb=a;var c=0<(a&1);this.rb||this.$a===c||(this.$a=c,this.w.send("screen-set-mode",this.$a));(b^a)&64&&ld(this);kd(this);md(this)}break;case 18:this.je!==a&&(this.je=a,md(this));break;case 19:this.Zd!==a&&(this.Zd=a&15,jd(this));break;case 20:this.kd!==a&&(this.kd=a,md(this))}this.m=-1}};
  k.qh=function(){return this.m|this.ae};k.vj=function(){return this.qh()&255|this.rh()<<8&65280};k.rh=function(){if(16>this.m)return this.Me[this.m];switch(this.m){case 16:return this.wb;case 18:return this.je;case 19:return this.Zd;case 20:return this.kd}return-1};k.xj=function(a){this.Df=a};k.zj=function(a){this.de=a};k.yj=function(){return this.de};k.Bj=function(a){switch(this.de){case 1:var b=this.wc;this.wc=a;(b^a)&32&&jd(this);break;case 2:this.ce=a;break;case 4:this.ee=a}};
  k.Aj=function(){switch(this.de){case 1:return this.wc;case 2:return this.ce;case 4:return this.ee;case 6:return 18}return 0};k.Dj=function(a){this.Lc=3*a;this.Za&=0};k.Cj=function(){return this.Za};k.Fj=function(a){this.Ya=3*a;this.Za|=3};k.Ej=function(){return this.Ya/3|0};k.Hj=function(a){var b=this.Ya/3|0,c=this.Ya%3,d=this.Ob[b];a=255*(a&63)/63|0;d=0===c?d&-16711681|a<<16:1===c?d&-65281|a<<8:d&-256|a;this.Ob[b]!==d&&(this.Ob[b]=d,md(this));this.Ya++};
  k.Gj=function(){var a=this.Lc%3,b=this.Ob[this.Lc/3|0];this.Lc++;return(b>>8*(2-a)&255)/255*63|0};k.Ij=function(){return this.Df};k.Kj=function(a){this.Wd=a};k.Jj=function(){return this.Wd};k.Mj=function(a){switch(this.Wd){case 0:this.be=a;break;case 1:this.Le=a;break;case 2:this.ja=a;break;case 3:this.fc=a;break;case 4:this.Qe=a;break;case 5:var b=this.Ec;this.Ec=a;(b^a)&96&&ld(this);break;case 6:this.Fb!==a&&(this.Fb=a,kd(this));break;case 7:this.ka=a;break;case 8:this.Je=a}};
  k.Lj=function(){switch(this.Wd){case 0:return this.be;case 1:return this.Le;case 2:return this.ja;case 3:return this.fc;case 4:return this.Qe;case 5:return this.Ec;case 6:return this.Fb;case 7:return this.ka;case 8:return this.Je}return 0};k.Oj=function(a){this.L=a};k.Nj=function(){return this.L};
  k.Qj=function(a){switch(this.L){case 1:this.Yd!==a&&(this.Yd=a,kd(this));break;case 2:this.Xd!==a&&(this.Xd=a,kd(this));break;case 7:var b=this.h;this.h&=255;this.h=this.h|a<<3&512|a<<7&256;b!=this.h&&kd(this);this.v=this.v&767|a<<4&256;b=this.a;this.a=this.a&767|a<<5&256;b!==this.a&&kd(this);jd(this);break;case 8:this.Se=a;jd(this);break;case 9:this.ra=a;this.v=this.v&511|a<<3&512;b=this.a;this.a=this.a&511|a<<4&512;b!==this.a&&kd(this);jd(this);break;case 10:this.Ge=a;this.Td();break;case 11:this.Fe=
  a;this.Td();break;case 12:(this.Wa>>8&255)!==a&&(this.Wa=this.Wa&255|a<<8,jd(this),~this.bb&3&&ld(this));break;case 13:(this.Wa&255)!==a&&(this.Wa=this.Wa&65280|a,jd(this),~this.bb&3&&ld(this));break;case 14:this.F=this.F&255|a<<8;this.Sd();break;case 15:this.F=this.F&65280|a;this.Sd();break;case 18:(this.h&255)!==a&&(this.h=this.h&768|a,kd(this));break;case 19:this.T!==a&&(this.T=a,kd(this),~this.bb&3&&ld(this));break;case 20:this.W!==a&&(b=this.W,this.W=a,kd(this),(b^a)&64&&ld(this));break;case 21:(this.a&
  255)!==a&&(this.a=this.a&768|a,kd(this));break;case 23:this.bb!==a&&(b=this.bb,this.bb=a,kd(this),(b^a)&67&&ld(this));break;case 24:this.v=this.v&768|a;jd(this);break;default:this.L<this.Kc.length&&(this.Kc[this.L]=a)}};
  k.Pj=function(){switch(this.L){case 1:return this.Yd;case 2:return this.Xd;case 7:return this.h>>7&2|this.a>>5&8|this.v>>4&16|this.h>>3&64;case 8:return this.Se;case 9:return this.ra;case 10:return this.Ge;case 11:return this.Fe;case 12:return this.Wa&255;case 13:return this.Wa>>8;case 14:return this.F>>8;case 15:return this.F&255;case 18:return this.h&255;case 19:return this.T;case 20:return this.W;case 21:return this.a&255;case 23:return this.bb;case 24:return this.v&255}return this.L<this.Kc.length?
  this.Kc[this.L]:0};k.sh=function(){var a=this.l;this.$a?(this.l^=1,this.l&=1):(this.l&1&&(this.l^=8),this.l^=1);this.m=-1;return a};k.Ni=function(a){this.Vd=a};
  k.Pi=function(a){switch(this.Vd){case 1:this.ub=a;2560<this.ub&&(this.ub=2560);break;case 2:this.A=a;1600<this.A&&(this.A=1600);break;case 3:this.Ic=a;break;case 4:this.rb=1===(a&1);this.ib=a;break;case 5:this.gc=a<<16;break;case 9:this.pg=this.ub*(15===this.Ic?16:this.Ic)/8*a,md(this)}!this.rb||this.ub&&this.A||(this.rb=!1);this.rb&&4===this.Vd&&(this.Md(this.ub,this.A,this.Ic,this.ub,this.A),this.w.send("screen-set-mode",!0),this.Ie=this.$a=!0);this.rb||(this.gc=0);jd(this)};
  k.Oi=function(){return pd(this,this.Vd)};function pd(a,b){switch(b){case 0:return 45248;case 1:return a.ib&2?2560:a.ub;case 2:return a.ib&2?1600:a.A;case 3:return a.ib&2?32:a.Ic;case 4:return a.ib;case 5:return a.gc>>>16;case 6:return a.Ca?a.Ca:1;case 8:return 0;case 10:return a.La/65536|0}return 255};function qd(a,b){this.j=a;this.w=b;this.gd=this.Oc=!1;this.Ye=!0;this.Ad=this.rc=this.qc=0;this.ra=!0;this.T=this.P=this.A=this.L=this.W=this.F=this.Re=!1;this.ta=new zb(1024);this.h=0;this.ed=100;this.Ae=4;this.m=!1;this.a=new zb(1024);this.v=this.l=!1;this.w.register("keyboard-code",function(a){this.Re&&(this.ta.push(a),this.Bb())},this);this.w.register("mouse-click",function(a){this.Ye&&this.gd&&(this.Ad=a[0]|a[2]<<1|a[1]<<2,this.Oc&&rd(this,0,0))},this);this.w.register("mouse-delta",function(a){var b=
  a[1];if(this.Ye&&this.gd){var c=this.Ae*this.ed/80;this.qc+=a[0]*c;this.rc+=b*c;this.Oc&&(a=this.qc|0,b=this.rc|0,a||b)&&(this.qc-=a,this.rc-=b,rd(this,a,b))}},this);this.w.register("mouse-wheel",function(){},this);this.g=5;this.ja=this.ka=!1;m(a.o,96,this,this.dk);m(a.o,100,this,this.fk);n(a.o,96,this,this.ek);n(a.o,100,this,this.gk)}k=qd.prototype;
  k.Ua=function(){var a=[];a[0]=this.Oc;a[1]=this.gd;a[2]=this.Ye;a[3]=this.qc;a[4]=this.rc;a[5]=this.Ad;a[6]=this.ra;a[7]=this.Re;a[8]=this.F;a[9]=this.W;a[10]=this.L;a[11]=this.A;a[12]=this.P;a[13]=this.T;a[15]=this.h;a[16]=this.ed;a[17]=this.Ae;a[18]=this.m;a[20]=this.g;a[21]=this.ka;a[22]=this.ja;return a};
  k.hb=function(a){this.Oc=a[0];this.gd=a[1];this.Ye=a[2];this.qc=a[3];this.rc=a[4];this.Ad=a[5];this.ra=a[6];this.Re=a[7];this.F=a[8];this.W=a[9];this.L=a[10];this.A=a[11];this.P=a[12];this.T=a[13];this.h=a[15];this.ed=a[16];this.Ae=a[17];this.m=a[18];this.g=a[20];this.ka=a[21];this.ja=a[22];this.v=this.l=!1;this.ta.clear();this.a.clear();this.w.send("mouse-enable",this.gd)};k.Bb=function(){this.l||(this.ta.length?sd(this):this.a.length&&td(this))};
  function td(a){a.l=!0;a.v=!0;a.g&2&&(Zb(a.j,12),a.j.Gb(12))}function sd(a){a.l=!0;a.v=!1;a.g&1&&(Zb(a.j,1),a.j.Gb(1))}function rd(a,b,c){a.a.push((0>c)<<5|(0>b)<<4|8|a.Ad);a.a.push(b);a.a.push(c);a.Bb()}k.dk=function(){this.l=!1;if(!this.ta.length&&!this.a.length)return this.h;this.v?(Zb(this.j,12),this.h=this.a.shift()):(Zb(this.j,1),this.h=this.ta.shift());(this.ta.length||this.a.length)&&this.Bb();return this.h};k.fk=function(){var a=16;this.l&&(a|=1);this.v&&(a|=32);return a};
  k.ek=function(a){if(this.ja)this.g=a,this.ja=!1;else if(this.ka)this.ka=!1,this.a.clear(),this.a.push(a),td(this);else if(this.W)this.W=!1,this.a.clear(),this.a.push(250),this.ed=a,this.ed||(this.ed=100),td(this);else if(this.T)this.T=!1,this.a.clear(),this.a.push(250),this.Ae=3<a?4:1<<a,td(this);else if(this.L)this.L=!1,this.ta.push(250),sd(this);else if(this.A)this.A=!1,this.ta.push(250),sd(this),a||this.ta.push(2);else if(this.P)this.P=!1,this.ta.push(250),sd(this);else if(this.F){if(this.F=!1,
  this.Ye){this.ta.clear();this.a.clear();this.a.push(250);switch(a){case 230:this.m=!1;break;case 231:this.m=!0;break;case 232:this.T=!0;break;case 233:rd(this,0,0);break;case 235:rd(this,0,0);break;case 242:this.a.push(0);this.a.push(0);this.Ad=this.qc=this.rc=0;break;case 243:this.W=!0;break;case 244:this.gd=this.Oc=!0;this.w.send("mouse-enable",!0);this.Ad=this.qc=this.rc=0;break;case 245:this.Oc=!1;break;case 246:this.Oc=!1;this.ed=100;this.m=!1;this.Ae=4;break;case 255:this.a.push(170),this.a.push(0),
  this.gd=!0,this.w.send("mouse-enable",!0),this.Oc=!1,this.ed=100,this.m=!1,this.Ae=4,this.Ad=this.qc=this.rc=0}td(this)}}else{this.a.clear();this.ta.clear();this.ta.push(250);switch(a){case 237:this.L=!0;break;case 240:this.A=!0;break;case 242:this.ta.push(171);this.ta.push(83);break;case 243:this.P=!0;break;case 244:this.Re=!0;break;case 245:this.Re=!1;break;case 255:this.ta.clear(),this.ta.push(250),this.ta.push(170),this.ta.push(0)}sd(this)}};
  k.gk=function(a){switch(a){case 32:this.ta.clear();this.a.clear();this.ta.push(this.g);sd(this);break;case 96:this.ja=!0;break;case 211:this.ka=!0;break;case 212:this.F=!0;break;case 167:this.g|=32;break;case 168:this.g&=-33;break;case 169:this.ta.clear();this.a.clear();this.ta.push(0);sd(this);break;case 170:this.ta.clear();this.a.clear();this.ta.push(85);sd(this);break;case 171:this.ta.clear();this.a.clear();this.ta.push(0);sd(this);break;case 173:this.g|=16;break;case 174:this.g&=-17;break;case 254:throw a=
  this.j,a.reset(),mb(a),233495534;}};function ud(a,b){this.g=this.a=this.ba=this.v=this.m=0;this.h=-1;this.ua=b;this.L=void 0===this.ua;this.Fa=void 0;this.name=this.L?"master":"slave ";this.P=!1;this.T=this.state=0;this.A=1;this.F=this.W=0;this.j=a;this.L?(this.Fa=new ud(this.j,this),this.l=function(){if(0<=this.h)lb(this.j);else{var a=this.a&this.m;if(a){a&=-a;var b=this.W?this.m:-1;this.ba&&(this.ba&-this.ba&b)<=a||(this.h=pb(a),lb(this.j))}}},this.rf=function(){if(-1!==this.h)if(0===this.a)this.h=-1,vd(this.j,this.v|7);else{var a=
  1<<this.h;0===(this.F&a)&&(this.a&=~a);this.A||(this.ba|=a);2===this.h?this.Fa.rf():vd(this.j,this.v|this.h);this.h=-1;this.l()}}):(this.l=function(){if(0<=this.h)lb(this.j);else{var a=this.a&this.m;if(a){a&=-a;var b=this.W?this.m:-1;this.ba&&(this.ba&-this.ba&b)<=a||(this.h=pb(a),this.ua.kf(2))}}},this.rf=function(){if(-1!==this.h)if(0===this.a)this.h=-1,this.ua.g&=-5,vd(this.j,this.v|7);else{var a=1<<this.h;0===(this.F&a)&&(this.a&=~a);this.A||(this.ba|=a);this.ua.g&=-5;vd(this.j,this.v|this.h);
  this.h=-1;this.l()}});this.L?(a=32,b=1232):(a=160,b=1233);n(this.j.o,a,this,this.Ri);m(this.j.o,a,this,this.Qi);n(this.j.o,a|1,this,this.Ti);m(this.j.o,a|1,this,this.Si);n(this.j.o,b,this,this.ck);m(this.j.o,b,this,this.bk);this.L?(this.kf=function(a){8<=a?this.Fa.kf(a-8):(a=1<<a,0===(this.g&a)&&(this.a|=a,this.g|=a,this.l()))},this.wf=function(a){8<=a?this.Fa.wf(a-8):(a=1<<a,this.g&a&&(this.g&=~a,this.a&=~a,this.l()))}):(this.kf=function(a){a=1<<a;0===(this.g&a)&&(this.a|=a,this.g|=a,this.l())},
  this.wf=function(a){a=1<<a;this.g&a&&(this.g&=~a,this.a&=~a,this.l())})}k=ud.prototype;k.Ua=function(){var a=[];a[0]=this.m;a[1]=this.v;a[2]=this.ba;a[3]=this.a;a[4]=this.L;a[5]=this.Fa;a[6]=this.P;a[7]=this.state;a[8]=this.T;a[9]=this.A;a[10]=this.F;return a};k.hb=function(a){this.m=a[0];this.v=a[1];this.ba=a[2];this.a=a[3];this.L=a[4];this.Fa=a[5];this.P=a[6];this.state=a[7];this.T=a[8];this.A=a[9];this.F=a[10]};
  k.Ri=function(a){if(a&16)this.g=this.m=this.a=this.ba=0,this.A=1,this.h=-1,this.P=a&1,this.state=1;else if(a&8)a&2&&(this.T=a&1),a&64&&(this.W=32===(a&32));else{var b=a>>5;1===b?this.ba&=this.ba-1:3===b?this.ba&=~(1<<(a&7)):192!==(a&200)&&(this.ba&=this.ba-1);this.l()}};k.Qi=function(){return this.T?this.ba:this.a};k.Ti=function(a){0===this.state?this.P?(this.P=!1,this.A=a&2):(this.m=~a,this.l()):1===this.state?(this.v=a,this.state++):2===this.state&&(this.state=0)};
  k.Si=function(){return~this.m&255};k.bk=function(){return this.F};k.ck=function(a){this.F=a};function wd(a){this.j=a;this.ie=0;this.la=new Uint8Array(128);this.A=this.a=Date.now();this.l=0;this.F=!1;this.v=.9765625;this.m=38;this.g=2;this.sg=this.h=0;n(a.o,112,this,function(a){this.ie=a&127;this.sg=a>>7});n(a.o,113,this,this.ai);m(a.o,113,this,this.$h)}k=wd.prototype;k.Ua=function(){var a=[];a[0]=this.ie;a[1]=this.la;a[2]=this.a;a[3]=this.A;a[4]=this.l;a[6]=this.F;a[7]=this.v;a[8]=this.m;a[9]=this.g;a[10]=this.h;a[11]=this.sg;return a};
  k.hb=function(a){this.ie=a[0];this.la=a[1];this.a=a[2];this.A=a[3];this.l=a[4];this.F=a[6];this.v=a[7];this.m=a[8];this.g=a[9];this.h=a[10];this.sg=a[11]};k.Jc=function(a){a=Date.now();this.a+=a-this.A;this.A=a;this.F&&this.l<a&&(this.j.Gb(8),this.h|=192,this.l+=this.v*Math.ceil((a-this.l)/this.v))};function xd(a,b){if(a.g&4)a=b;else{a=b;for(var c=b=0,d;a;)d=a%10,c|=d<<4*b,b++,a=(a-d)/10;a=c}return a}
  k.$h=function(){switch(this.ie){case 0:return xd(this,(new Date(this.a)).getUTCSeconds());case 2:return xd(this,(new Date(this.a)).getUTCMinutes());case 4:return xd(this,(new Date(this.a)).getUTCHours());case 7:return xd(this,(new Date(this.a)).getUTCDate());case 8:return xd(this,(new Date(this.a)).getUTCMonth()+1);case 9:return xd(this,(new Date(this.a)).getUTCFullYear()%100);case 10:return this.m;case 11:return this.g;case 12:Zb(this.j,8);var a=this.h;this.h&=-241;return a;case 13:return 255;case 50:return xd(this,
  (new Date(this.a)).getUTCFullYear()/100|0);default:return this.la[this.ie]}};k.ai=function(a){switch(this.ie){case 10:this.m=a&127;this.v=1E3/(32768>>(this.m&15)-1);break;case 11:this.g=a,this.g&64&&(this.l=Date.now())}this.F=64===(this.g&64)&&0<(this.m&15)};function yd(a,b){this.w=b;this.j=a;this.Ib=4;this.Vc=this.Mc=0;this.zd=96;this.ud=this.jg=0;this.Tc=1;this.wa=this.Zf=this.rg=this.Lf=0;this.input=new zb(4096);this.a=[];this.wa=4;this.w.register("serial0-input",function(a){this.input.push(a);this.zd|=1;this.Ib|=4096;zd(this)},this);a=a.o;n(a,1016,this,function(a){Ad(this,a)},function(a){Ad(this,a&255);Ad(this,a>>8)});n(a,1017,this,function(a){this.Vc&128?this.Mc=this.Mc&255|a<<8:(this.ud=a&15,zd(this))});m(a,1016,this,function(){if(this.Vc&128)return this.Mc&
  255;var a=this.input.shift();0===this.input.length&&(this.zd&=-2,this.Ib&=-4097,zd(this));return a});m(a,1017,this,function(){return this.Vc&128?this.Mc>>8:this.ud&15});m(a,1018,this,function(){var a=this.Tc&15|192;2==this.Tc&&(this.Ib&=-5,zd(this));return a});n(a,1018,this,function(a){this.jg=a});m(a,1019,this,function(){return this.Vc});n(a,1019,this,function(a){this.Vc=a});m(a,1020,this,function(){return this.Lf});n(a,1020,this,function(a){this.Lf=a});m(a,1021,this,function(){return this.zd});
  n(a,1021,this,function(){});m(a,1022,this,function(){return this.rg});n(a,1022,this,function(){});m(a,1023,this,function(){return this.Zf});n(a,1023,this,function(a){this.Zf=a})}yd.prototype.Ua=function(){var a=[];a[0]=this.Ib;a[1]=this.Mc;a[2]=this.Vc;a[3]=this.zd;a[4]=this.jg;a[5]=this.ud;a[6]=this.Tc;a[7]=this.Lf;a[8]=this.rg;a[9]=this.Zf;a[10]=this.wa;return a};
  yd.prototype.hb=function(a){this.Ib=a[0];this.Mc=a[1];this.Vc=a[2];this.zd=a[3];this.jg=a[4];this.ud=a[5];this.Tc=a[6];this.Lf=a[7];this.rg=a[8];this.Zf=a[9];this.wa=a[10]};function zd(a){a.Ib&4096&&a.ud&1?(a.Tc=12,a.j.Gb(a.wa)):a.Ib&4&&a.ud&2?(a.Tc=2,a.j.Gb(a.wa)):a.Ib&1&&a.ud&8?(a.Tc=0,a.j.Gb(a.wa)):(a.Tc=1,Zb(a.j,a.wa))}
  function Ad(a,b){if(a.Vc&128)a.Mc=a.Mc&-256|b;else if(a.Ib|=4,zd(a),255!==b){var c=String.fromCharCode(b);a.w.send("serial0-output-char",c);a.a.push(b);"\n"===c&&(a.w.send("serial0-output-line",String.fromCharCode.apply("",a.a)),a.a=[])}};function Bd(a){this.message=a}Bd.prototype=Error();function Cd(a,b){if("object"!==typeof a||null===a||a instanceof Array)return a;if(a.BYTES_PER_ELEMENT){var c=new Uint8Array(a.buffer,a.byteOffset,a.length*a.BYTES_PER_ELEMENT);return{__state_type__:a.constructor.name,buffer_id:b.push(c)-1}}a=a.Ua();c=[];for(var d=0;d<a.length;d++)c[d]=Cd(a[d],b);return c}
  function Dd(a,b,c){if("object"!==typeof b||null===b)return b;if(a instanceof Array)return b;var d=b.__state_type__;if(void 0===d){d=a.Ua();for(var e=0;e<b.length;e++)b[e]=Dd(d[e],b[e],c);a.hb(b);return a}a={Uint8Array:Uint8Array,Int8Array:Int8Array,Uint16Array:Uint16Array,Int16Array:Int16Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Float32Array:Float32Array,Float64Array:Float64Array}[d];b=c.Bi[b.buffer_id];return 1048576<=b.length&&a===Uint8Array?new Uint8Array(c.Tg,b.offset,b.length):new a(c.Tg.slice(b.offset,
  b.offset+b.length))}q.prototype.Be=function(){for(var a=[],b=Cd(this,a),c=[],d=0,e=0;e<a.length;e++){var f=a[e].byteLength;c[e]={offset:d,length:f};d+=f;d=d+3&-4}b=JSON.stringify({buffer_infos:c,state:b});e=16+2*b.length;e=e+3&-4;var h=e+d;d=new ArrayBuffer(h);var g=new Int32Array(d,0,4);f=new Uint16Array(d,16,b.length);var p=new Uint8Array(d,e);g[0]=-2039052682;g[1]=5;g[2]=h;g[3]=2*b.length;for(e=0;e<b.length;e++)f[e]=b.charCodeAt(e);for(e=0;e<a.length;e++)p.set(a[e],c[e].offset);return d};
  q.prototype.Ld=function(a){var b=a.byteLength;if(16>b)throw new Bd("Invalid length: "+b);var c=new Int32Array(a,0,4);if(-2039052682!==c[0])throw new Bd("Invalid header: "+ub(c[0]>>>0));if(5!==c[1])throw new Bd("Version mismatch: dump="+c[1]+" we=5");if(c[2]!==b)throw new Bd("Length doesn't match header: real="+b+" header="+c[2]);c=c[3];if(0>c||c+12>=b||c%2)throw new Bd("Invalid info block length: "+c);var d=c/2,e=new Uint16Array(a,16,d),f="";for(b=0;b<d-8;)f+=String.fromCharCode(e[b++],e[b++],e[b++],
  e[b++],e[b++],e[b++],e[b++],e[b++]);for(;b<d;)f+=String.fromCharCode(e[b++]);b=JSON.parse(f);d=b.state;e=b.buffer_infos;c=c+19&-4;for(b=0;b<e.length;b++)e[b].offset+=c;Dd(this,d,{Tg:a,Bi:e})};function Ed(a,b){this.j=a;this.zb=a.H.zb;this.w=b;this.w.register("net0-receive",function(a){if(!(this.K&1)&&(this.w.send("eth-receive-end",[a.length]),this.Yf&16||this.Yf&4&&255===a[0]&&255===a[1]&&255===a[2]&&255===a[3]&&255===a[4]&&255===a[5]||!(this.Yf&8&&1===(a[0]&1)||a[0]!==this.memory[0]||a[1]!==this.memory[2]||a[2]!==this.memory[4]||a[3]!==this.memory[6]||a[4]!==this.memory[8]||a[5]!==this.memory[10]))){var b=this.ld<<8,c=Math.max(60,a.length)+4,d=b+4,g=this.ld+1+(c>>8);if(b+c>this.memory.length){var p=
  this.memory.length-d;this.memory.set(a.subarray(0,p),d);this.memory.set(a.subarray(p),76)}else if(this.memory.set(a,d),60>a.length)for(a=a.length;60>a;a++)this.memory[d+a]=0;g>=this.Hd&&(g+=this.xe-this.Hd);this.memory[b]=1;this.memory[b+1]=g;this.memory[b+2]=c;this.memory[b+3]=c>>8;this.ld=g;Fd(this,1)}},this);this.port=768;this.name="ne2k";this.we=[236,16,41,128,3,1,0,0,0,0,0,2,0,0,0,0,this.port&255|1,this.port>>8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,244,26,0,17,0,0,184,254,0,0,0,
  0,0,0,0,0,0,1,0,0];this.Lb=40;this.tc=[{size:32}];this.Ef=this.ba=0;this.K=1;this.$f=this.Qd=this.bc=this.Ne=0;this.memory=new Uint8Array(32768);this.Yf=0;this.vk=1;b=[0,34,21,255*Math.random()|0,255*Math.random()|0,255*Math.random()|0];for(var c=0;6>c;c++)this.memory[c<<1]=this.memory[c<<1|1]=b[c];this.memory[14]=this.memory[15]=87;this.qb=0;this.xe=64;this.Hd=128;this.tf=this.ld=76;b=a.o;m(b,this.port|0,this,function(){return this.K});n(b,this.port|0,this,function(a){this.K=a&-5;this.K&1||(a|24&&
  0===this.bc&&Fd(this,64),a&4&&(a=this.$f<<8,a=this.memory.subarray(a,a+this.Qd),this.w.send("net0-send",a),this.w.send("eth-transmit-end",[a.length]),Fd(this,2)))});m(b,this.port|13,this,function(){return 0});m(b,this.port|14,this,function(){return 0});m(b,this.port|15,this,function(){return 0});m(b,this.port|31,this,function(){0===(this.K&192)&&Fd(this,128);return 0});n(b,this.port|31,this,function(){});n(b,this.port|1,this,function(a){0===(this.K&192)&&(this.xe=a)});n(b,this.port|2,this,function(a){0===
  (this.K&192)&&(this.Hd=a)});m(b,this.port|7,this,function(){return 0===(this.K&192)?this.ba:this.ld});n(b,this.port|7,this,function(a){0===(this.K&192)?(this.ba&=~a,Gd(this)):this.ld=a});n(b,this.port|13,this,function(){});n(b,this.port|14,this,function(a){0===(this.K&192)&&(this.Ne=a)});n(b,this.port|10,this,function(a){0===(this.K&192)&&(this.bc=this.bc&65280|a&255)});n(b,this.port|11,this,function(a){0===(this.K&192)&&(this.bc=this.bc&255|a<<8&65280)});n(b,this.port|8,this,function(a){0===(this.K&
  192)&&(this.qb=this.qb&65280|a&255)});n(b,this.port|9,this,function(a){0===(this.K&192)&&(this.qb=this.qb&255|a<<8&65280)});n(b,this.port|15,this,function(a){0===(this.K&192)&&(this.Ef=a,Gd(this))});m(b,this.port|3,this,function(){return 0===(this.K&192)?this.tf:0});n(b,this.port|3,this,function(a){0===(this.K&192)&&(this.tf=a)});m(b,this.port|4,this,function(){return 0===(this.K&192)?this.vk:0});n(b,this.port|4,this,function(a){0===(this.K&192)&&(this.$f=a)});n(b,this.port|5,this,function(a){0===
  (this.K&192)&&(this.Qd=this.Qd&-256|a)});n(b,this.port|6,this,function(a){0===(this.K&192)&&(this.Qd=this.Qd&255|a<<8)});m(b,this.port|12,this,function(){return 0===(this.K&192)?9:0});n(b,this.port|12,this,function(a){this.Yf=a});m(b,this.port|16,this,this.di,this.Jg,this.ci);n(b,this.port|16,this,this.Kg,this.Kg,this.ei);lc(a.H.zb,this)}k=Ed.prototype;
  k.Ua=function(){var a=[];a[0]=this.ba;a[1]=this.Ef;a[2]=this.K;a[3]=this.Ne;a[4]=this.bc;a[5]=this.Qd;a[6]=this.$f;a[7]=this.qb;a[8]=this.xe;a[9]=this.ld;a[10]=this.tf;return a};k.hb=function(a){this.ba=a[0];this.Ef=a[1];this.K=a[2];this.Ne=a[3];this.bc=a[4];this.Qd=a[5];this.$f=a[6];this.qb=a[7];this.xe=a[8];this.ld=a[9];this.tf=a[10]};function Fd(a,b){a.ba|=b;Gd(a)}function Gd(a){a.Ef&a.ba?a.zb.Bb(a.Lb):Ec(a.zb,a.Lb)}
  function Id(a,b){16<a.qb&&16384>a.qb||(a.bc--,a.memory[a.qb++]=b,a.qb>=a.Hd<<8&&(a.qb+=a.xe-a.Hd<<8),0===a.bc&&Fd(a,64))}k.Kg=function(a){Id(this,a);this.Ne&1&&Id(this,a>>8)};k.ei=function(a){Id(this,a);Id(this,a>>8);Id(this,a>>16);Id(this,a>>24)};function Jd(a){var b=a.memory[a.qb++];a.bc--;a.qb>=a.Hd<<8&&(a.qb+=a.xe-a.Hd<<8);0===a.bc&&Fd(a,64);return b}k.di=function(){return this.Jg()&255};k.Jg=function(){return this.Ne&1?Jd(this)|Jd(this)<<8:Jd(this)};
  k.ci=function(){return Jd(this)|Jd(this)<<8|Jd(this)<<16|Jd(this)<<24};var Kd=new Uint8Array(256),Ld=[],Md=[],Nd=[],Od=[];
  function Pd(a,b){this.j=a;this.w=b;this.Xa=new zb(64);this.Ha=new zb(64);this.h=this.v=this.Xb=this.T=0;this.S=new Uint8Array(256);Qd(this);this.ne=!1;this.nf=0;this.$b=this.Zb=this.pd=this.zc=!1;this.ic=[new Ab,new Ab];this.Yb=a.H.Yb;this.Rb=this.yc=this.l=this.lc=this.m=this.L=0;this.mc=1;this.nd=5;this.kc=!1;this.a=new ArrayBuffer(65536);this.Za=new Int8Array(this.a);this.F=new Uint8Array(this.a);this.Ya=new Int16Array(this.a);this.ib=new Uint16Array(this.a);this.fc=new yb(this.a);this.nc=this.A=
  !1;this.Nb=22050;b.send("dac-tell-sampling-rate",this.Nb);this.g=1;this.ja=170;this.W=0;this.jd=new Uint8Array(256);this.P=new zb(64);this.ra=this.ka=this.wc=0;this.ui=!1;this.wa=5;this.vd=new Uint8Array(16);a.o.Kd(544,this,this.mh,this.oh,this.Ui,this.Wi);a.o.Kd(904,this,this.mh,this.oh);a.o.Kd(548,this,this.Yi,this.$i);m(a.o,550,this,this.bj);m(a.o,551,this,this.dj);m(a.o,552,this,this.fj);m(a.o,553,this,this.hj);m(a.o,554,this,this.jj);m(a.o,555,this,this.lj);m(a.o,556,this,this.nj);m(a.o,557,
  this,this.pj);a.o.Kd(558,this,this.rj,this.tj);a.o.uc(544,this,this.nh,this.ph,this.Vi,this.Xi);a.o.uc(904,this,this.nh,this.ph);a.o.uc(548,this,this.Zi,this.aj);n(a.o,550,this,this.cj);n(a.o,551,this,this.ej);a.o.uc(552,this,this.gj,this.ij);n(a.o,554,this,this.kj);n(a.o,555,this,this.mj);n(a.o,556,this,this.oj);n(a.o,557,this,this.qj);n(a.o,558,this,this.sj);n(a.o,559,this,this.uj);a.o.Kd(816,this,this.Yj,this.$j);a.o.uc(816,this,this.Zj,this.ak);this.Yb.ag.push({Af:this.Fb,Bg:this});b.register("dac-request-data",
  function(){!this.lc||this.nc?Rd(this):Sd(this)},this);b.register("speaker-has-initialized",function(){Qd(this)},this);b.send("speaker-confirm-initialized");Td(this)}function Td(a){a.Xa.clear();a.Ha.clear();a.Xb=0;a.v=0;a.ne=!1;a.nf=0;a.zc=!1;a.pd=!1;a.Zb=!1;a.$b=!1;a.ic[0].clear();a.ic[1].clear();a.L=0;a.m=0;a.lc=0;a.l=0;a.yc=0;a.Rb=0;a.kc=!1;a.F.fill(0);a.A=!1;a.nc=!1;a.ja=170;a.W=0;a.Nb=22050;a.g=1;Ud(a,1);a.vd.fill(0);a.jd.fill(0);a.jd[5]=1;a.jd[9]=248}k=Pd.prototype;
  k.Ua=function(){var a=[];a[2]=this.T;a[3]=this.Xb;a[4]=this.v;a[5]=this.h;a[6]=this.S;a[7]=this.ne;a[8]=this.nf;a[9]=this.zc;a[10]=this.pd;a[11]=this.Zb;a[12]=this.$b;a[15]=this.L;a[16]=this.m;a[17]=this.lc;a[18]=this.l;a[19]=this.yc;a[20]=this.Rb;a[21]=this.mc;a[22]=this.nd;a[23]=this.kc;a[24]=this.F;a[25]=this.A;a[26]=this.nc;a[27]=this.Nb;a[28]=this.g;a[29]=this.ja;a[30]=this.W;a[31]=this.jd;a[33]=this.Lc;a[34]=this.wa;a[35]=this.vd;return a};
  k.hb=function(a){this.T=a[2];this.Xb=a[3];this.v=a[4];this.h=a[5];this.S=a[6];Vd(this);this.ne=a[7];this.nf=a[8];this.zc=a[9];this.pd=a[10];this.Zb=a[11];this.$b=a[12];this.L=a[15];this.m=a[16];this.lc=a[17];this.l=a[18];this.yc=a[19];this.Rb=a[20];this.mc=a[21];this.nd=a[22];this.kc=a[23];this.F=a[24];this.A=a[25];this.nc=a[26];this.Nb=a[27];this.g=a[28];this.ja=a[29];this.W=a[30];this.jd=a[31];this.Lc=a[33];this.wa=a[34];this.vd=a[35];this.a=this.F.buffer;this.Za=new Int8Array(this.a);this.Ya=new Int16Array(this.a);
  this.ib=new Uint16Array(this.a);this.fc=new yb(this.a);this.nc?this.w.send("dac-disable"):this.w.send("dac-enable")};k.mh=function(){return 255};k.oh=function(){return 255};k.Ui=function(){return 255};k.Wi=function(){return 255};k.Yi=function(){return this.h};k.$i=function(){var a=this.h,b=Md[a],c;b?c=b.call(this):c=this.S[a];return c};k.bj=function(){return 255};k.dj=function(){return 255};k.fj=function(){return 255};k.hj=function(){return 255};
  k.jj=function(){this.Ha.length&&(this.T=this.Ha.shift());return this.T};k.lj=function(){return 255};k.nj=function(){return 127};k.pj=function(){return 255};k.rj=function(){this.vd[1]&&Ud(this,1);return(this.Ha.length&&!this.zc)<<7|127};k.tj=function(){Ud(this,2);return 0};k.nh=function(){this.ka=0};k.ph=function(a){var b=Od[this.ka];b||(b=this.Ca);b.call(this,a,0,this.ka)};k.Vi=function(){this.ra=0};k.Xi=function(a){var b=Od[this.ra];b||(b=this.Ca);b.call(this,a,1,this.ra)};
  k.Zi=function(a){this.h=a};k.aj=function(a){Wd(this,this.h,a)};k.cj=function(a){this.zc?this.zc=!1:a&&Td(this);this.Ha.clear();this.Ha.push(170)};k.ej=function(){};k.gj=function(){};k.ij=function(){};k.kj=function(){};k.mj=function(){};k.oj=function(a){0===this.Xb?(this.Xb=a,this.Xa.clear(),this.v=Kd[a]):this.Xa.push(a);this.Xa.length>=this.v&&(a=Ld[this.Xb],a||(a=this.Ng),a.call(this),this.v=this.Xb=0,this.Xa.clear())};k.qj=function(){};k.sj=function(){};k.uj=function(){};
  k.Yj=function(){this.P.length&&(this.wc=this.P.shift());return this.wc};k.Zj=function(){};k.$j=function(){return 0|128*!this.P.length};k.ak=function(a){255==a&&(this.P.clear(),this.P.push(254))};k.Ng=function(){};function A(a,b,c){c||(c=Pd.prototype.Ng);for(var d=0;d<a.length;d++)Kd[a[d]]=b,Ld[a[d]]=c}function Xd(a){for(var b=[],c=0;16>c;c++)b.push(a+c);return b}A([14],2,function(){this.jd[this.Xa.shift()]=this.Xa.shift()});A([15],1,function(){this.Ha.clear();this.Ha.push(this.jd[this.Xa.shift()])});
  A([16],1,function(){var a=this.Xa.shift();a=Yd(a/127.5+-1);this.ic[0].push(a);this.ic[1].push(a);this.w.send("dac-enable")});A([20,21],2,function(){this.yc=1;this.Rb=this.mc;this.zc=this.Zb=this.$b=this.kc=!1;Zd(this);$d(this)});A([22],2);A([23],2);A([28],0,function(){this.yc=1;this.Rb=this.mc;this.kc=!0;this.zc=this.Zb=this.$b=!1;$d(this)});A([31],0);A([32],0,function(){this.Ha.clear();this.Ha.push(127)});A([36],2);A([44],0);A([48],0);A([49],0);A([52],0);A([53],0);A([54],0);A([55],0);A([56],0);
  A([64],1,function(){ae(this,1E6/(256-this.Xa.shift())/(this.pd?2:1))});A([65,66],2,function(){ae(this,this.Xa.shift()<<8|this.Xa.shift())});A([72],2,function(){Zd(this)});A([116],2);A([117],2);A([118],2);A([119],2);A([125],0);A([127],0);A([128],2);A([144],0,function(){this.yc=1;this.Rb=this.mc;this.kc=!0;this.$b=!1;this.zc=!0;this.Zb=!1;$d(this)});A([145],0);A([152],0);A([153],0);A([160],0);A([168],0);
  A(Xd(176),3,function(){if(!(this.Xb&8)){var a=this.Xa.shift();this.yc=2;this.Rb=this.nd;this.kc=!!(this.Xb&4);this.$b=!!(a&16);this.pd=!!(a&32);this.Zb=!0;Zd(this);$d(this)}});A(Xd(192),3,function(){if(!(this.Xb&8)){var a=this.Xa.shift();this.yc=1;this.Rb=this.mc;this.kc=!!(this.Xb&4);this.$b=!!(a&16);this.pd=!!(a&32);this.Zb=!1;Zd(this);$d(this)}});A([208],0,function(){this.nc=!0;this.w.send("dac-disable")});A([209],0,function(){this.ne=!0});A([211],0,function(){this.ne=!1});
  A([212],0,function(){this.nc=!1;this.w.send("dac-enable")});A([213],0,function(){this.nc=!0;this.w.send("dac-disable")});A([214],0,function(){this.nc=!1;this.w.send("dac-enable")});A([216],0,function(){this.Ha.clear();this.Ha.push(255*this.ne)});A([217,218],0,function(){this.kc=!1});A([224],1,function(){this.Ha.clear();this.Ha.push(~this.Xa.shift())});A([225],0,function(){this.Ha.clear();this.Ha.push(4);this.Ha.push(5)});A([226],1);
  A([227],0,function(){this.Ha.clear();for(var a=0;44>a;a++)this.Ha.push("COPYRIGHT (C) CREATIVE TECHNOLOGY LTD, 1992.".charCodeAt(a));this.Ha.push(0)});A([228],1,function(){this.nf=this.Xa.shift()});A([232],0,function(){this.Ha.clear();this.Ha.push(this.nf)});A([242,243],0,function(){this.Bb()});var be=new Uint8Array(256);be[14]=255;be[15]=7;be[55]=56;A([249],1,function(){var a=this.Xa.shift();this.Ha.clear();this.Ha.push(be[a])});function Wd(a,b,c){(b=Nd[b])&&b.call(a,c)}Pd.prototype.gc=function(){return this.S[this.h]};
  Pd.prototype.Kc=function(a){this.S[this.h]=a};function Qd(a){a.S[4]=204;a.S[34]=204;a.S[38]=204;a.S[40]=0;a.S[46]=0;a.S[10]=0;a.S[48]=192;a.S[49]=192;a.S[50]=192;a.S[51]=192;a.S[52]=192;a.S[53]=192;a.S[54]=0;a.S[55]=0;a.S[56]=0;a.S[57]=0;a.S[59]=0;a.S[60]=31;a.S[61]=21;a.S[62]=11;a.S[63]=0;a.S[64]=0;a.S[65]=0;a.S[66]=0;a.S[67]=0;a.S[68]=128;a.S[69]=128;a.S[70]=128;a.S[71]=128;Vd(a)}function Vd(a){for(var b=1;b<a.S.length;b++)Wd(a,b,a.S[b])}function ce(a,b){b||(b=Pd.prototype.gc);Md[a]=b}
  function de(a,b){b||(b=Pd.prototype.Kc);Nd[a]=b}function ee(a,b,c){Md[a]=function(){return this.S[b]&240|this.S[c]>>>4};Nd[a]=function(d){this.S[a]=d;var e=d<<4&240|this.S[c]&15;Wd(this,b,d&240|this.S[b]&15);Wd(this,c,e)}}function fe(a,b,c){Md[a]=Pd.prototype.gc;Nd[a]=function(d){this.S[a]=d;this.w.send("mixer-volume",[b,c,(d>>>2)-62])}}ce(0,function(){Qd(this);return 0});de(0);ee(4,50,51);ee(34,48,49);ee(38,52,53);ee(40,54,55);ee(46,56,57);fe(48,0,0);fe(49,0,1);fe(50,2,0);fe(51,2,1);ce(59);
  de(59,function(a){this.S[59]=a;this.w.send("mixer-volume",[1,2,6*(a>>>6)-18])});ce(65);de(65,function(a){this.S[65]=a;this.w.send("mixer-gain-left",6*(a>>>6))});ce(66);de(66,function(a){this.S[66]=a;this.w.send("mixer-gain-right",6*(a>>>6))});ce(68);de(68,function(a){this.S[68]=a;a>>>=3;this.w.send("mixer-treble-left",a-(16>a?14:16))});ce(69);de(69,function(a){this.S[69]=a;a>>>=3;this.w.send("mixer-treble-right",a-(16>a?14:16))});ce(70);
  de(70,function(a){this.S[70]=a;a>>>=3;this.w.send("mixer-bass-right",a-(16>a?14:16))});ce(71);de(71,function(a){this.S[71]=a;a>>>=3;this.w.send("mixer-bass-right",a-(16>a?14:16))});ce(128,function(){switch(this.wa){case 2:return 1;case 5:return 2;case 7:return 4;case 10:return 8;default:return 0}});de(128,function(a){a&1&&(this.wa=2);a&2&&(this.wa=5);a&4&&(this.wa=7);a&8&&(this.wa=10)});
  ce(129,function(){var a=0;switch(this.mc){case 0:a|=1;break;case 1:a|=2;break;case 3:a|=8}switch(this.nd){case 5:a|=32;break;case 6:a|=64;break;case 7:a|=128}return a});de(129,function(a){a&1&&(this.mc=0);a&2&&(this.mc=1);a&8&&(this.mc=3);a&32&&(this.nd=5);a&64&&(this.nd=6);a&128&&(this.nd=7)});ce(130,function(){for(var a=32,b=0;16>b;b++)a|=b*this.vd[b];return a});Pd.prototype.Ca=function(){};function ge(a,b){b||(b=Pd.prototype.Ca);for(var c=0;c<a.length;c++)Od[a[c]]=b}
  function he(a,b){for(var c=[];a<=b;a++)c.push(a);return c}var ie=new Uint8Array(32);ie[0]=0;ie[1]=1;ie[2]=2;ie[3]=3;ie[4]=4;ie[5]=5;ie[8]=6;ie[9]=7;ie[10]=8;ie[11]=9;ie[12]=10;ie[13]=11;ie[16]=12;ie[17]=13;ie[18]=14;ie[19]=15;ie[20]=16;ie[21]=17;ge([1],function(a,b){this.ui[b]=a&1});ge([2]);ge([3]);ge([4],function(){});ge([5],function(){});ge([8],function(){});ge(he(32,53),function(){});ge(he(64,85),function(){});ge(he(96,117),function(){});ge(he(128,149),function(){});ge(he(160,168),function(){});
  ge(he(176,184),function(){});ge([189],function(){});ge(he(192,200),function(){});ge(he(224,245),function(){});function ae(a,b){a.Nb=b;a.w.send("dac-tell-sampling-rate",b)}function Zd(a){a.L=1+(a.Xa.shift()<<0)+(a.Xa.shift()<<8)}function $d(a){a.g=1;a.Zb&&(a.g*=2);a.m=a.L*a.g;a.l=1024*a.g;a.l=Math.min(Math.max(a.m>>2&-4,32),a.l);a.A=!0;a.Yb.xc[a.Rb]||a.Fb(a.Rb)}Pd.prototype.Fb=function(a){a===this.Rb&&this.A&&(this.A=!1,this.lc=this.m,this.nc=!1,this.w.send("dac-enable"))};
  function Sd(a){var b=Math.min(a.lc,a.l),c=Math.floor(b/a.g);a.Yb.Pe(a.fc,0,b,a.Rb,function(d){if(!d){d=a.Zb?32767.5:127.5;var e=a.$b?0:-1,f=a.pd?1:2,h;a.Zb?h=a.$b?a.Ya:a.ib:h=a.$b?a.Za:a.F;for(var g=0,p=0;p<c;p++)for(var r=Yd(h[p]/d+e),v=0;v<f;v++)a.ic[g].push(r),g^=1;Rd(a);a.lc-=b;a.lc||(a.Bb(a.yc),a.kc&&(a.lc=a.m))}})}function Rd(a){if(a.ic[0].length){var b=Bb(a.ic[0],a.ic[0].length),c=Bb(a.ic[1],a.ic[1].length);a.w.send("dac-send-data",[b,c],[b.buffer,c.buffer])}}
  Pd.prototype.Bb=function(a){this.vd[a]=1;this.j.Gb(this.wa)};function Ud(a,b){a.vd[b]=0;Zb(a.j,a.wa)}function Yd(a){return-1*(-1>a)+1*(1<a)+(-1<=a&&1>=a)*a};function je(a,b,c){this.we=[244,26,9,16,7,5,16,0,0,0,2,0,0,0,0,0,1,168,0,0,0,16,191,254,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,244,26,9,0,0,0,0,0,64,0,0,0,0,0,0,0,0,1,0,0];this.Lb=48;this.tc=[{size:256}];this.name="virtio";var d=a.o;m(d,43008,this,function(){return 1},void 0,function(){return 1});n(d,43012,this,void 0,void 0,function(){});n(d,43022,this,void 0,function(a){this.ff=a},void 0);m(d,43020,this,void 0,function(){return this.Ab},void 0);m(d,43016,this,void 0,void 0,function(){return 0===
  this.ff?this.Hc:0});n(d,43016,this,void 0,void 0,function(a){this.Hc=a});n(d,43026,this,function(a){0===a&&this.reset();this.Oe=a});m(d,43026,this,function(){return this.Oe});m(d,43027,this,function(){var a=this.ba;this.ba=0;Ec(this.zb,this.Lb);return a});n(d,43024,this,void 0,function(){var a=(this.Hc<<12)+16*this.Ab,b=a+4;a=this.j.pa(a+2);var c=this.Ab-1;for(a&=c;this.wd!==a;){var e=this.j.pa(b+2*this.wd);ke(this,e);this.wd=this.wd+1&c}});this.j=a;this.zb=a.H.zb;this.w=b;this.wd=this.ba=this.Oe=
  this.ff=0;this.Ab=32;for(var e=this.Hc=0;128>e;e++)m(d,43028+e,this,function(a){return a<this.ma.m.length?this.ma.m[a]:0}.bind(this,e),void 0,void 0),n(d,43028+e,this,function(){}.bind(this,e),void 0,void 0);this.ma=new va(c,b);this.ma.oa=this.a.bind(this);lc(a.H.zb,this)}je.prototype.Ua=function(){var a=[0];a[1]=this.ff;a[2]=this.Oe;a[3]=this.ba;a[4]=this.wd;a[5]=this.Ab;a[6]=this.Hc;a[7]=this.ma;return a};
  je.prototype.hb=function(a){this.ff=a[1];this.Oe=a[2];this.ba=a[3];this.wd=a[4];this.Ab=a[5];this.Hc=a[6];this.ma=a[7];this.ma.oa=this.a.bind(this)};je.prototype.reset=function(){this.wd=this.ba=this.Oe=this.ff=0;this.Ab=32;this.Hc=0};
  function ke(a,b){var c=b,d=a.Hc<<12,e=0,f=[];do{var h=d+16*c,g=a.j.pa(h+12);if(g&2)break;var p=wc(a.j,h);c=wc(a.j,h+4);var r=wc(a.j,h+8)>>>0;f.push({cg:p,Vh:c,qg:r});if(g&1)c=a.j.pa(h+14);else{c=-1;break}}while(1);var v=-1,E=0;za(a.ma,{start:b,next:c},function(){if(E>=v){if(e===f.length)return 0;var a=f[e++];p=a.cg;v=a.qg;E=0}return this.j.na(p+E++)}.bind(a))}
  je.prototype.a=function(a,b){if(-1!==b.next){var c=this.Ab-1;a=this.ma.Wf;var d=b.next,e=this.Hc<<12,f=0,h=[];do{d=e+16*d;var g=this.j.pa(d+12);if(0===(g&2))break;var p=wc(this.j,d),r=wc(this.j,d+4),v=wc(this.j,d+8)>>>0;h.push({cg:p,Vh:r,qg:v});if(g&1)d=this.j.pa(d+14);else break}while(1);g=-1;for(e=r=0;e<a;e++){d=this.ma.Da[e];if(r>=g){if(f===h.length)return 0;g=h[f++];p=g.cg;g=g.qg;r=0}this.j.Ba(p+r++,d)}p=(this.Hc<<12)+16*this.Ab+4+2*this.Ab;p=p+4095&-4096;this.j.pa(p);f=this.j.pa(p+2);this.j.Ee(p+
  2,f+1);c=p+4+8*(f&c);this.j.hd(c,b.start);this.j.hd(c+4,a);this.ba|=1;this.zb.Bb(this.Lb)}};function le(){this.af={};this.a=void 0}le.prototype.register=function(a,b,c){var d=this.af[a];void 0===d&&(d=this.af[a]=[]);d.push({Af:b,Bg:c})};le.prototype.unregister=function(a,b){var c=this.af[a];void 0!==c&&(this.af[a]=c.filter(function(a){return a.Af!==b}))};le.prototype.send=function(a,b){if(this.a&&(a=this.a.af[a],void 0!==a))for(var c=0;c<a.length;c++){var d=a[c];d.Af.call(d.Bg,b)}};function me(){var a=new le,b=new le;a.a=b;b.a=a;return[a,b]};function q(a){this.Ka=0;this.T=!0;this.fa=new Uint8Array(0);this.If=new Uint16Array(this.fa.buffer);this.Dc=new Int32Array(this.fa.buffer);this.gb=new Uint8Array(8);this.Na=new Uint32Array(8);this.za=new Int32Array(8);this.P=new Int32Array(1048576);this.vc=new Uint8Array(1048576);this.pf=new Uint8Array(1048576);this.va=!1;this.Rc=this.oe=this.Sc=this.pe=0;this.F=this.Rd=!1;this.K=new Int32Array(8);this.K[0]=0;this.K[2]=0;this.K[3]=0;this.ef=this.O=this.K[4]=0;this.Uc=this.tb=this.A=!1;this.G=this.l=
  this.U=this.nb=this.mb=this.u=this.flags=this.I=this.Ce=this.De=this.Pd=this.Ya=this.se=this.L=this.pc=0;this.ja=new Int32Array(2);this.W=new Float64Array(2);this.v=this.m=this.f=this.qf=0;this.H={};this.ka=[];this.Y=!1;this.ia=this.B=0;this.Wh=!0;this.$=0;this.b=new Int32Array(8);this.Id=new Uint32Array(this.b.buffer);this.ze=new Int16Array(this.b.buffer);this.i=new Uint16Array(this.b.buffer);this.wg=new Int8Array(this.b.buffer);this.D=new Uint8Array(this.b.buffer);this.s=new Int32Array(16);new Uint32Array(this.s.buffer);
  this.Jd=new Int8Array(this.s.buffer);this.xg=new Uint8Array(this.s.buffer);this.qa=new Int32Array(32);this.df=8064;this.N=new Uint16Array(8);this.od=new Int32Array(8);this.bf=[];this.cf=[];this.Jf=[];this.Kf=[];this.ge={bh:null,Ud:null};this.Ac=0;this.V=this.o=void 0;this.w=a;ne(this);this.qf=kb();oe(this)}k=q.prototype;
  k.Ua=function(){var a=[];a[0]=this.Ka;a[1]=this.gb;a[2]=this.za;a[3]=this.Na;a[4]=this.va;a[5]=this.Sc;a[6]=this.pe;a[7]=this.Rc;a[8]=this.oe;a[9]=this.F;a[10]=this.K;a[11]=this.O;a[12]=this.ef;a[13]=this.A;a[16]=this.tb;a[17]=this.Uc;a[18]=this.pc;a[19]=this.L;a[20]=this.se;a[21]=this.Ya;a[22]=this.Pd;a[23]=this.Ce;a[24]=this.De;a[25]=this.I;a[26]=this.flags;a[27]=this.u;a[28]=this.mb;a[29]=this.nb;a[30]=this.U;a[31]=this.l;a[32]=this.f;a[36]=this.Y;a[37]=this.B;a[38]=this.ia;a[39]=this.b;a[40]=
  this.N;a[41]=this.od;a[42]=this.fa;a[43]=this.V;a[45]=this.H.bg;a[46]=this.H.dg;a[47]=this.H.dd;a[48]=this.H.zb;a[49]=this.H.Yb;a[50]=this.H.Uh;a[51]=this.H.zi;a[52]=this.H.Ud;a[53]=this.H.Tf;a[54]=this.H.Qh;a[55]=this.H.Pg;a[56]=this.H.Sa;a[57]=this.H.Oa;a[58]=this.H.Nf;a[59]=this.H.fh;a[60]=this.H.Xc;a[61]=this.H.Gh;a[62]=this.T;a[63]=this.Ac;a[64]=this.H.Ze;a[65]=this.Rd;a[66]=this.s;return a};
  k.hb=function(a){this.Ka=a[0];this.gb=a[1];this.za=a[2];this.Na=a[3];this.va=a[4];this.Sc=a[5];this.pe=a[6];this.Rc=a[7];this.oe=a[8];this.F=a[9];this.K=a[10];this.O=a[11];this.ef=a[12];this.A=a[13];this.tb=a[16];this.Uc=a[17];this.pc=a[18];this.L=a[19];this.se=a[20];this.Ya=a[21];this.Pd=a[22];this.Ce=a[23];this.De=a[24];this.I=a[25];this.flags=a[26];this.u=a[27];this.mb=a[28];this.nb=a[29];this.U=a[30];this.l=a[31];this.f=a[32];this.Y=a[36];this.B=a[37];this.ia=a[38];this.b=a[39];this.N=a[40];this.od=
  a[41];this.fa=a[42];this.V=a[43];this.H.bg=a[45];this.H.dg=a[46];this.H.dd=a[47];this.H.zb=a[48];this.H.Yb=a[49];this.H.Uh=a[50];this.H.zi=a[51];this.H.Ud=a[52];this.H.Tf=a[53];this.H.Qh=a[54];this.H.Pg=a[55];this.H.Sa=a[56];this.H.Oa=a[57];this.H.Nf=a[58];this.H.fh=a[59];this.H.Xc=a[60];this.H.Gh=a[61];this.T=a[62];this.Ac=a[63];this.H.Ze=a[64];this.Rd=a[65];this.s=a[66];this.If=new Uint16Array(this.fa.buffer,this.fa.byteOffset,this.fa.length>>1);this.Dc=new Int32Array(this.fa.buffer,this.fa.byteOffset,
  this.fa.length>>2);pe(this);this.Id=new Uint32Array(this.b.buffer);this.ze=new Int16Array(this.b.buffer);this.i=new Uint16Array(this.b.buffer);this.wg=new Int8Array(this.b.buffer);this.D=new Uint8Array(this.b.buffer);new Uint32Array(this.s.buffer);this.Jd=new Int8Array(this.s.buffer);this.xg=new Uint8Array(this.s.buffer);ne(this)};k.xf=function(a){if(233495534===a)this.F=!1,this.I=0;else throw console.log(a),console.log(a.stack),a;};
  k.reset=function(){this.T=!0;for(var a=0;8>a;a++)this.gb[a]=0,this.Na[a]=0,this.za[a]=0;pe(this);for(a=0;8>a;a++)this.b[a]=0,this.N[a]=0,this.K[a]=0,this.od[a]=0;for(a=0;a<this.s.length;a++)this.s[a]=0;for(a=0;a<this.qa.length;a++)this.qa[a]=0;this.df=8064;this.va=!1;this.Rc=this.oe=this.Sc=this.pe=0;this.F=!1;this.K[0]=1610612752;this.K[2]=0;this.K[3]=0;this.K[4]=0;this.od[6]=-61456;this.od[7]=1024;this.O=0;this.Y=!1;this.ef=0;this.tb=this.A=!1;this.I=0;this.se=this.pc=-1;ne(this);this.ia=this.$=
  0;this.Uc=!1;this.Ce=this.De=this.Pd=0;this.flags=2;this.U=this.nb=this.mb=this.l=this.G=this.u=0;this.qf=kb();this.B=1048560;qe(this,61440);re(this,2,48);this.i[8]=256;this.H.bg&&this.H.bg.reset();this.Ac=0};k.Ig=function(a){1048576>a?a=1048576:0>(a|0)&&(a=Math.pow(2,31)-131072);this.Ka=a=(a-1|131071)+1|0;a=new ArrayBuffer(a);this.fa=new Uint8Array(a);this.If=new Uint16Array(a);this.Dc=new Int32Array(a)};q.prototype.create_memory=q.prototype.Ig;
  q.prototype.Sb=function(a,b){this.Ig("number"===typeof a.Ka?a.Ka:67108864);this.reset();var c=new Ya(this);this.o=c;this.ge.bh=a.ge;this.ge.Ud=a.zk;mb(this);var d=0;m(c,179,this,function(){return 0});m(c,146,this,function(){return d});n(c,146,this,function(a){d=a});m(c,1297,this,function(){var a=this.Ac&255;this.Ac>>>=8;return a});n(c,1296,this,void 0,function(a){0===a?this.Ac=-89064784:3===a?this.Ac=this.Ka:this.Ac=5===a?1:0});this.H={};a.Fi&&(this.H.Xc=new ud(this),this.H.zb=new Ac(this),this.H.dd=
  new wd(this),se(this,this.H.dd,a),this.H.Yb=new Qc(this),this.H.Ud=new bd(this,b,a.La||8388608),this.V=new Cb(this),this.H.Tf=new qd(this,b),this.H.Qh=new yd(this,b),this.H.Pg=new Fc(this,a.Ta),c=0,a.Oa&&(this.H.Oa=new Xb(this,a.Oa,!1,c++,b)),a.Sa&&(this.H.Sa=new Xb(this,a.Sa,!0,c++,b)),a.Cf&&(this.H.Cf=new Xb(this,a.Cf,!1,c++,b)),this.H.Nf=new Vc(this,b),a.pi&&(this.H.fh=new Ed(this,b)),a.Qc&&(this.H.bg=new je(this,b,a.Qc)),this.H.Gh=new Pd(this,b));a.ue&&te(this,a.ue.buffer)};
  function te(a,b){if(8192>b.byteLength){var c=new Int32Array(2048);(new Uint8Array(c.buffer)).set(new Uint8Array(b))}else c=new Int32Array(b,0,2048);for(var d=0;8192>d;d+=4)if(464367618===c[d>>2]){var e=c[d+4>>2];if(!(464367618+e+c[d+8>>2]|0)){a.b[0]=732803074;a.b[3]=31744;a.hd(31744,0);a.K[0]=1;a.va=!0;a.flags=2;ue(a,!0);a.tb=!0;for(var f=0;6>f;f++)a.gb[f]=0,a.za[f]=0,a.Na[f]=4294967295,a.N[f]=45058;if(e&65536){e=c[d+16>>2];var h=c[d+20>>2];f=c[d+28>>2];b=new Uint8Array(b,d-(c[d+12>>2]-e),0===h?void 0:
  h-e);a.fa.set(b,e);a.B=B(a,1)+f|0}else if(1179403647===c[0])for(c=ve(b),a.B=B(a,1)+c.mg.eb|0,c=ia(c.hk),d=c.next();!d.done;d=c.next())d=d.value,0!==d.type&&1===d.type&&(e=new Uint8Array(b,d.offset,d.si),a.fa.set(e,d.Ki));a.o.uc(244,a,function(a){console.log("Test exited with code "+ub(a,2));throw"HALT";},function(){},function(){},function(){});for(b={td:14};15>=b.td;b={td:b.td},b.td++)n(a.o,8192+b.td,a,function(a){return function(b){b?this.Gb(a.td):Zb(this,a.td)}}(b));break}}}
  function se(a,b,c){var d=c.he||531;b.la[56]=1|d>>4&240;b.la[61]=d&255;b.la[21]=128;b.la[22]=2;d=0;1048576<=a.Ka&&(d=a.Ka-1048576>>10,d=Math.min(d,65535));b.la[23]=d&255;b.la[24]=d>>8&255;b.la[48]=d&255;b.la[49]=d>>8&255;d=0;16777216<=a.Ka&&(d=a.Ka-16777216>>16,d=Math.min(d,65535));b.la[52]=d&255;b.la[53]=d>>8&255;b.la[91]=0;b.la[92]=0;b.la[93]=0;b.la[20]=47;b.la[95]=0;c.ri&&(b.la[63]=1)}
  function mb(a){var b=a.ge.bh,c=a.ge.Ud;if(b){var d=new Uint8Array(b);a.fa.set(d,1048576-b.byteLength);if(c){var e=new Uint8Array(c);a.fa.set(e,786432);$a(a.o,4272947200,1048576,function(a){a=a-4272947200|0;return a<e.length?e[a]:0},function(){})}$a(a.o,4293918720,1048576,function(a){return this.fa[a&1048575]}.bind(a),function(a,b){this.fa[a&1048575]=b}.bind(a))}}q.prototype.ra=function(){try{this.Ca()}catch(a){this.xf(a)}};q.prototype.Ca=function(){for(var a=11001;a--;)we(this)};
  "undefined"!==typeof window&&(window.__no_inline_for_closure_compiler__=[q.prototype.xf,q.prototype.Ca,q.prototype.ra]);function we(a){a.ia=a.B;a.$++;var b=a.cc();a.ka[b](a)}q.prototype.bi=function(){try{we(this)}catch(a){this.xf(a)}};q.prototype.cycle=q.prototype.bi;function xe(a,b){a.I|=b+1;ye(a);a.I=0}function ye(a){if(Mb(a))a.ib[a.cc()](a);else a.Za[a.cc()](a)}
  function ze(a,b){if(-2147483648===(b&-2147483647))throw a.debug.R("#GP handler");a.K[0]=b;a.V||(a.K[0]|=4);a.K[0]|=16;b=-2147483648===(a.K[0]&-2147483648);b!==a.Y&&(a.Y=b,pe(a));a.va=1===(a.K[0]&1)}function Ae(a){a.pc=-1;a.se=-1}k=q.prototype;k.cc=function(){this.B&-4096^this.pc&&(this.L=Be(this,this.B)^this.B,this.pc=this.B&-4096);var a=this.na(this.L^this.B);this.B=this.B+1|0;return a};k.Dh=function(){return this.cc()<<24>>24};
  k.Vf=function(){if(4094<(this.B^this.pc)>>>0)return this.cc()|this.cc()<<8;var a=this.pa(this.L^this.B);this.B=this.B+2|0;return a};k.Ch=function(){if(4092<(this.B^this.pc)>>>0)return this.Vf()|this.Vf()<<16;var a=wc(this,this.L^this.B);this.B=this.B+4|0;return a};function Ce(a,b){var c=new Int32Array(2);c[0]=a;c[1]=b;return c}function De(a,b,c,d){var e=new Int32Array(4);e[0]=a;e[1]=b;e[2]=c;e[3]=d;return e}function D(a){a.f=a.cc()}k.Eh=q.prototype.cc;k.jk=q.prototype.cc;k.M=q.prototype.cc;k.ya=q.prototype.Dh;
  k.X=q.prototype.Vf;k.ga=q.prototype.Ch;k.Ah=q.prototype.cc;k.pb=q.prototype.Dh;k.Mb=q.prototype.Vf;k.Z=q.prototype.Ch;function F(a,b){return(Ee(a)?a.h:a.g)[b](a)}function Fe(a,b){return a.a[a.jk()](a,b)}function Ge(a,b,c,d){a.Ba(b,d);a.Ba(c,d>>24);b&1?b&2?(a.Ba(c-2,d>>8),a.Ba(c-1,d>>16)):(a.Ba(b+1|0,d>>8),a.Ba(b+2|0,d>>16)):(a.Ba(b+1|0,d>>8),a.Ba(c-1,d>>16))}function He(a,b){return a.na(Be(a,b))}function x(a,b){return a.Y&&4095===(b&4095)?He(a,b)|He(a,b+1|0)<<8:a.pa(Be(a,b))}
  function y(a,b){return a.Y&&4093<=(b&4095)?x(a,b)|x(a,b+2|0)<<16:wc(a,Be(a,b))}function Ie(a,b){var c=Ce(0,0);a.Y&&4089<=(b&4095)?(c[0]=y(a,b),c[1]=y(a,b+4|0)):(c[0]=wc(a,Be(a,b)),c[1]=wc(a,Be(a,b+4|0)));return c}function Je(a,b,c){a.Ba(Ke(a,b),c)}function u(a,b,c){var d=Ke(a,b);4095===(b&4095)?(b=Ke(a,b+1|0),a.Ba(d,c),a.Ba(b,c>>8)):a.Ee(d,c)}function w(a,b,c){var d=Ke(a,b);4093<=(b&4095)?Ge(a,d,Ke(a,b+3&-4)|b+3&3,c):a.hd(d,c)}function Le(a,b,c,d){Nb(a,b,8);w(a,b,c);w(a,b+4|0,d)}
  function Me(a,b,c,d,e,f){Nb(a,b,16);w(a,b,c);w(a,b+4|0,d);w(a,b+8|0,e);w(a,b+12|0,f)}function Ne(a){return Ee(a)?Oe(a,3)+a.ga()|0:Oe(a,3)+a.X()|0}function Pe(a){return a.flags>>12&3}function Qe(a){return!!(a.flags&131072)}function Re(a){return a.flags&-2262|!!a.fb()|!!a.Xg()<<2|!!Se(a)<<4|!!a.Bc()<<6|!!a.Bf()<<7|!!a.We()<<11}function Te(a,b){var c=1769472,d=2588629;a.flags&131072?(c|=12288,d|=1572864):a.O&&(c|=12288,a.O>Pe(a)&&(c|=512));a.flags=(b^(a.flags^b)&c)&d|2;a.u=0}
  function Ue(a){return a.tb?a.b[4]:a.i[8]}function Ve(a,b){a.tb?a.b[4]=b:a.i[8]=b}function G(a,b){a.tb?a.b[4]+=b:a.i[8]+=b}function H(a,b){return a.tb?B(a,2)+a.b[4]+b|0:B(a,2)+(a.i[8]+b&65535)|0}function We(a){return a.B-B(a,1)|0}
  function Xe(a,b,c,d){a.Uc=!1;if(a.va){if(Qe(a)&&a.K[4]&1)throw a.debug.R("VME");Qe(a)&&c&&3>Pe(a)&&I(a,0);if((b<<3|7)>a.pe)throw a.debug.R("#GP handler");var e=a.Sc+(b<<3)|0;a.Y&&(e=Ye(a,e));var f=a.pa(e)|a.pa(e+6|0)<<16,h=a.pa(e+2|0),g=a.na(e+5|0),p=g>>5&3;e=g&31;if(0===(g&128))throw a.debug.R("#NP handler");c&&p<a.O&&I(a,b<<3|2);if(5===e){f=Ze(a,h);c=3>=f.type;g=2===(f.type&2);if(!f.Kb||f.Va||!f.kg)throw a.debug.R("#GP handler");if(11===(f.Wb&31))throw a.debug.R("#GP handler");if(!f.lb)throw a.debug.R("#NP handler");
  if(103>f.Hb)throw a.debug.R("#NP handler");e=a.za[6];b=Re(a);g&&(b&=-16385);Nb(a,e,102);w(a,e+32,We(a));w(a,e+36,b);w(a,e+40,a.b[0]);w(a,e+44,a.b[1]);w(a,e+48,a.b[2]);w(a,e+52,a.b[3]);w(a,e+56,a.b[4]);w(a,e+60,a.b[5]);w(a,e+64,a.b[6]);w(a,e+68,a.b[7]);w(a,e+72,a.N[0]);w(a,e+76,a.N[1]);w(a,e+80,a.N[2]);w(a,e+84,a.N[3]);w(a,e+88,a.N[4]);w(a,e+92,a.N[5]);a.Ba(f.mf+5|0,a.na(f.mf+5|0)|2);g=f.jb;u(a,g+0,a.N[6]);b=y(a,g+28);a.flags&=-131073;p=y(a,g+32);var r=x(a,g+76),v=Ze(a,r);if(v.Va)throw a.debug.R("#TS handler");
  if(!v.Kb)throw a.debug.R("#TS handler");if(v.Jb)throw a.debug.R("#TS handler");if(!v.oc)throw a.debug.R("#TS handler");if(v.Pb&&v.aa>v.Ea)throw a.debug.R("#TS handler");if(!v.Pb&&v.aa!==v.Ea)throw a.debug.R("#TS handler");if(!v.lb)throw a.debug.R("#TS handler");a.gb[1]=0;a.Na[1]=v.Hb;a.za[1]=v.jb;a.N[1]=r;a.O=v.aa;Ae(a);ue(a,v.size);r=y(a,g+36);w(a,e+0,h);r|=16384;if(r&131072)throw a.debug.R("task switch to VM mode");Te(a,r);a.flags|=16384;e=x(a,g+96);$e(a,e);a.b[0]=y(a,g+40);a.b[1]=y(a,g+44);a.b[2]=
  y(a,g+48);a.b[3]=y(a,g+52);a.b[4]=y(a,g+56);a.b[5]=y(a,g+60);a.b[6]=y(a,g+64);a.b[7]=y(a,g+68);re(a,0,x(a,g+72));re(a,2,x(a,g+80));re(a,3,x(a,g+84));re(a,4,x(a,g+88));re(a,5,x(a,g+92));a.B=B(a,1)+p|0;a.za[6]=f.jb;a.Na[6]=f.Hb;a.N[6]=h;a.K[3]=b;af(a);a.K[0]|=8;!1!==d&&(c?J(a,d&65535):L(a,d))}else{if(6!==(e&-10))throw a.debug.R("#GP handler");c=1===(e&1);e=0===(e&8);g=Ze(a,h);if(g.Va)throw a.debug.R("#GP handler");if(!g.oc||g.aa>a.O)throw a.debug.R("#GP handler");g.lb||bf(a,b<<3|2);b=Re(a);if(!g.Pb&&
  g.aa<a.O){r=cf(a,g.aa);a.Rd?(p=wc(a,r),r=a.pa(r+4|0)):(p=a.pa(r),r=a.pa(r+2|0));v=Ze(a,r);if(v.Va)throw a.debug.R("#TS handler");if(v.Ea!==g.aa)throw a.debug.R("#TS handler");if(v.aa!==g.aa||!v.jf)throw a.debug.R("#TS handler");if(!v.lb)throw a.debug.R("#TS handler");var E=a.b[4],z=a.N[2],C=(e?2:4)*(5+(!1!==d)+4*(131072===(b&131072)));df(a,v.jb+(v.size?p-C:p-C&65535));df(a,v.jb+p-1);a.O=g.aa;Ae(a);ue(a,g.size);a.flags&=-196609;re(a,2,r);Ve(a,p);b&131072&&!e&&(L(a,a.N[5]),L(a,a.N[4]),L(a,a.N[3]),L(a,
  a.N[0]));e?(J(a,z),J(a,E)):(L(a,z),L(a,E))}else if(g.Pb||g.aa===a.O)a.flags&131072&&I(a,h&-4),C=(e?2:4)*(3+(!1!==d)),Nb(a,H(a,-C),C);else throw a.debug.R("#GP handler");e?(J(a,b),J(a,a.N[1]),J(a,We(a)),!1!==d&&J(a,d),f&=65535):(L(a,b),L(a,a.N[1]),L(a,We(a)),!1!==d&&L(a,d));b&131072&&(re(a,5,0),re(a,4,0),re(a,3,0),re(a,0,0));a.N[1]=h&-4|a.O;ue(a,g.size);a.Na[1]=g.Hb;a.za[1]=g.jb;a.B=B(a,1)+f|0;a.flags&=-213249;c?a.flags&512&&!(b&512)&&(a.F[0]||lb(a)):a.flags&=-513}}else h=b<<2,d=a.pa(h),h=a.pa(h+2|
  0),J(a,Re(a)),J(a,a.N[1]),J(a,We(a)),a.flags&=-513,qe(a,h),a.B=B(a,1)+d|0}
  function ef(a,b){Qe(a)&&3>Pe(a)&&I(a,0);if(b)var c=x(a,H(a,0)),d=x(a,H(a,2)),e=x(a,H(a,4));else c=y(a,H(a,0)),d=x(a,H(a,4)),e=y(a,H(a,8));if(!a.va||Qe(a)&&3===Pe(a)){if(c&4294901760)throw a.debug.R("#GP handler");qe(a,d);a.B=c+B(a,1)|0;b?(Te(a,e|a.flags&-65536),G(a,6)):(Te(a,e),G(a,12))}else{a.flags&16384&&I(a,0);if(e&131072){if(0===a.O){var f=y(a,H(a,12)),h=x(a,H(a,16));b=x(a,H(a,20));var g=x(a,H(a,24)),p=x(a,H(a,28)),r=x(a,H(a,32));Te(a,e);a.flags|=131072;qe(a,d);a.B=(c&65535)+B(a,1)|0;re(a,0,b);
  re(a,3,g);re(a,4,p);re(a,5,r);G(a,36);a.b[4]=f;re(a,2,h);a.O=3;Ae(a);ue(a,!1);return}e&=-131073}g=Ze(a,d);if(g.Va)throw a.debug.R("is null");if(!g.lb)throw a.debug.R("not present");if(!g.oc)throw a.debug.R("not exec");if(g.Ea<a.O)throw a.debug.R("rpl < cpl");if(g.Pb&&g.aa>g.Ea)throw a.debug.R("conforming and dpl > rpl");g.Pb||g.Ea===g.aa||I(a,d&-4);if(g.Ea>a.O){b?(f=x(a,H(a,6)),h=x(a,H(a,8))):(f=y(a,H(a,12)),h=x(a,H(a,16)));p=Ze(a,h);r=g.Ea;p.Va&&I(a,0);p.Kb&&!p.Jb&&p.Ea===r&&p.Ff&&p.aa===r||I(a,
  h&-4);if(!p.lb)throw a.B=a.ia,Xe(a,12,!1,h&-4),233495534;b?Te(a,e|a.flags&-65536):Te(a,e);a.O=g.Ea;Ae(a);re(a,2,h);Ve(a,f);0===a.O&&(a.flags=a.flags&-1572865|e&1572864)}else g.Ea===a.O&&(b?(G(a,6),Te(a,e|a.flags&-65536)):(G(a,12),Te(a,e)),0===a.O&&(a.flags=a.flags&-1572865|e&1572864));a.N[1]=d;ue(a,g.size);a.Na[1]=g.Hb;a.za[1]=g.jb;a.B=c+B(a,1)|0}lb(a)}function qe(a,b){a.N[1]=b;a.gb[1]=0;a.za[1]=b<<4}
  function ff(a,b,c,d){if(!a.va||Qe(a))qe(a,c),a.B=B(a,1)+b|0,G(a,2*(Mb(a)?4:2)+d);else{var e=Ze(a,c);e.Va&&I(a,0);e.Kb||I(a,c&-4);e.Jb&&I(a,c&-4);e.oc||I(a,c&-4);e.Ea<a.O&&I(a,c&-4);e.Pb&&e.aa>e.Ea&&I(a,c&-4);e.Pb||e.aa===e.Ea||I(a,c&-4);e.lb||bf(a,c&-4);if(e.Ea>a.O){if(Mb(a))var f=y(a,H(a,d+8)),h=x(a,H(a,d+12));else f=x(a,H(a,d+4)),h=x(a,H(a,d+6));a.O=e.Ea;Ae(a);re(a,2,h);Ve(a,f+d)}else Mb(a)?G(a,8+d):G(a,4+d);ue(a,e.size);a.gb[1]=0;a.Na[1]=e.Hb;a.za[1]=e.jb;a.N[1]=c;a.B=B(a,1)+b|0}}
  function gf(a,b,c,d){if(!a.va||Qe(a))d&&(Mb(a)?(Nb(a,H(a,-8),8),L(a,a.N[1]),L(a,We(a))):(Nb(a,H(a,-4),4),J(a,a.N[1]),J(a,We(a)))),qe(a,c),a.B=B(a,1)+b|0;else{var e=Ze(a,c);e.Va&&I(a,0);e.Kb||I(a,c&-4);if(e.Jb)if(12===e.type||4===e.type){b=4===e.type;(e.aa<a.O||e.aa<e.Ea)&&I(a,c&-4);e.lb||bf(a,c&-4);c=e.vg>>>16;var f=Ze(a,c);f.Va&&I(a,0);f.Kb||I(a,c&-4);f.oc||I(a,c&-4);f.aa>a.O&&I(a,c&-4);f.lb||bf(a,c&-4);if(!f.Pb&&f.aa<a.O){var h=cf(a,f.aa);if(a.Rd){var g=wc(a,h);h=a.pa(h+4|0)}else g=a.pa(h),h=a.pa(h+
  2|0);var p=Ze(a,h);if(p.Va)throw a.debug.R("#TS handler");if(p.Ea!==f.aa)throw a.debug.R("#TS handler");if(p.aa!==f.aa||!p.jf)throw a.debug.R("#TS handler");if(!p.lb)throw a.debug.R("#SS handler");var r=e.Uf&31,v=b?4:8;d&&(v+=b?4+2*r:8+4*r);p.size?Nb(a,p.jb+g-v|0,v):Nb(a,p.jb+(g-v&65535)|0,v);v=a.b[4];var E=a.N[2];p=H(a,0);a.O=f.aa;Ae(a);ue(a,f.size);re(a,2,h);Ve(a,g);b?(J(a,E),J(a,v)):(L(a,E),L(a,v));if(d)if(b){for(d=r-1;0<=d;d--)g=x(a,p+2*d),J(a,g);J(a,a.N[1]);J(a,We(a))}else{for(d=r-1;0<=d;d--)g=
  y(a,p+4*d),L(a,g);L(a,a.N[1]);L(a,We(a))}}else d&&(b?(Nb(a,H(a,-4),4),J(a,a.N[1]),J(a,We(a))):(Nb(a,H(a,-8),8),L(a,a.N[1]),L(a,We(a))));d=e.vg&65535;b||(d|=e.Uf&4294901760);ue(a,f.size);a.gb[1]=0;a.Na[1]=f.Hb;a.za[1]=f.jb;a.N[1]=c&-4|a.O;a.B=B(a,1)+d|0}else throw a.debug.R("load system segment descriptor, type = "+(e.Wb&15)+" ("+{9:"Available 386 TSS",11:"Busy 386 TSS",4:"286 Call Gate",12:"386 Call Gate"}[e.Wb&15]+")");else e.oc||I(a,c&-4),e.Pb?e.aa>a.O&&I(a,c&-4):(e.Ea>a.O||e.aa!==a.O)&&I(a,c&-4),
  e.lb||bf(a,c&-4),d&&(Mb(a)?(Nb(a,H(a,-8),8),L(a,a.N[1]),L(a,We(a))):(Nb(a,H(a,-4),4),J(a,a.N[1]),J(a,We(a)))),ue(a,e.size),a.gb[1]=0,a.Na[1]=e.Hb,a.za[1]=e.jb,a.N[1]=c&-4|a.O,a.B=B(a,1)+b|0}}function cf(a,b){b=a.Rd?(b<<3)+4|0:(b<<2)+2|0;if((b+5|0)>a.Na[6])throw a.debug.R("#TS handler");b=b+a.za[6]|0;a.Y&&(b=Ye(a,b));return b}function hf(a){a.B=a.ia;Xe(a,0,!1,!1);throw 233495534;}function t(a){a.B=a.ia;Xe(a,6,!1,!1);throw 233495534;}function jf(a){a.B=a.ia;Xe(a,7,!1,!1);throw 233495534;}
  function I(a,b){a.B=a.ia;Xe(a,13,!1,b);throw 233495534;}function bf(a,b){a.B=a.ia;Xe(a,11,!1,b);throw 233495534;}function kf(a){a.K[0]&12&&jf(a)}function M(a){a.K[0]&12&&(a.K[0]&8?jf(a):t(a))}function N(a){return Oe(a,3)}function O(a){return Oe(a,2)}function Oe(a,b){var c=a.I&7;return c?7===c?0:B(a,c-1):B(a,b)}function B(a,b){a.va&&a.gb[b]&&I(a,0);return a.za[b]}function lf(a){return 192>a.f?He(a,F(a,a.f)):a.D[a.f<<2&12|a.f>>2&1]}function P(a){return 192>a.f?x(a,F(a,a.f)):a.i[a.f<<1&14]}
  function mf(a){return 192>a.f?y(a,F(a,a.f)):a.b[a.f&7]}function nf(a){return 192>a.f?y(a,F(a,a.f)):a.s[2*(a.f&7)]}function Q(a){return 192>a.f?Ie(a,F(a,a.f)):Ce(a.s[2*(a.f&7)],a.s[2*(a.f&7)+1])}function of(a){if(192>a.f)return Ie(a,F(a,a.f));var b=(a.f&7)<<2;return Ce(a.qa[b],a.qa[b|1])}function pf(a){if(192>a.f){var b=F(a,a.f);b=Be(a,b);return De(wc(a,b),wc(a,b+4|0),wc(a,b+8|0),wc(a,b+12|0))}b=(a.f&7)<<2;return De(a.qa[b],a.qa[b|1],a.qa[b|2],a.qa[b|3])}
  function qf(a,b){if(192>a.f){var c=F(a,a.f);Je(a,c,b)}else a.D[a.f<<2&12|a.f>>2&1]=b}function rf(a,b){if(192>a.f){var c=F(a,a.f);u(a,c,b)}else a.i[a.f<<1&14]=b}function sf(a,b){if(192>a.f){var c=F(a,a.f);w(a,c,b)}else a.b[a.f&7]=b}function tf(a){if(192>a.f){var b=F(a,a.f);a.m=Ke(a,b);return a.na(a.m)}return a.D[a.f<<2&12|a.f>>2&1]}function uf(a,b){192>a.f?a.Ba(a.m,b):a.D[a.f<<2&12|a.f>>2&1]=b}
  function R(a){if(192>a.f){var b=F(a,a.f);a.m=Ke(a,b);if(a.Y&&4095===(b&4095))return a.v=Ke(a,b+1|0),b=a.v,a.na(a.m)|a.na(b)<<8;a.v=0;return a.pa(a.m)}return a.i[a.f<<1&14]}function S(a,b){if(192>a.f)if(a.v){var c=a.v;a.Ba(a.m,b);a.Ba(c,b>>8)}else a.Ee(a.m,b);else a.i[a.f<<1&14]=b}
  function vf(a){if(192>a.f){var b=F(a,a.f);a.m=Ke(a,b);if(a.Y&&4093<=(b&4095)){a.v=Ke(a,b+3&-4)|b+3&3;b=a.m;var c=a.v;if(b&1)var d=b&2?Kc(a,c-2>>1):Kc(a,b+1>>1);else d=c-1|0,d=a.na(b+1|0)|a.na(d)<<8;return a.na(b)|d<<8|a.na(c)<<24}a.v=0;return wc(a,a.m)}return a.b[a.f&7]}function wf(a,b){192>a.f?a.v?Ge(a,a.m,a.v,b):a.hd(a.m,b):a.b[a.f&7]=b}function xf(a){return a.i[a.f<<1&14]}function yf(a,b){a.i[a.f<<1&14]=b}function zf(a){return a.b[a.f&7]}function Af(a,b){a.b[a.f&7]=b}
  function Bf(a){return a.D[a.f>>1&12|a.f>>5&1]}function Cf(a,b){a.D[a.f>>1&12|a.f>>5&1]=b}function Df(a){return a.i[a.f>>2&14]}function Ef(a){return a.ze[a.f>>2&14]}function Ff(a,b){a.i[a.f>>2&14]=b}function T(a){return a.b[a.f>>3&7]}function Gf(a,b){a.Id[a.f>>3&7]=b}function Hf(a){return Ce(a.qa[(a.f>>3&7)<<2],a.qa[(a.f>>3&7)<<2|1])}function If(a){var b=(a.f>>3&7)<<2;return De(a.qa[b|0],a.qa[b|1],a.qa[b|2],a.qa[b|3])}function Jf(a){return Ce(a.s[2*(a.f>>3&7)],a.s[2*(a.f>>3&7)+1])}
  function U(a,b,c){a.s[2*(a.f>>3&7)]=b;a.s[2*(a.f>>3&7)+1]=c}function Kf(a,b,c,d,e){var f=(a.f>>3&7)<<2;a.qa[f]=b;a.qa[f+1]=c;a.qa[f+2]=d;a.qa[f+3]=e}function vd(a,b){try{a.ia=a.B,Xe(a,b,!1,!1)}catch(c){a.xf(c)}}function lb(a){a.flags&512&&!a.F&&(a.H.Xc&&a.H.Xc.rf(),a.H.dg&&a.H.dg.rf())}k.Gb=function(a){this.H.Xc&&this.H.Xc.kf(a);this.H.Ze&&this.H.Ze.kf(a)};function Zb(a,b){a.H.Xc&&a.H.Xc.wf(b);a.H.Ze&&a.H.Ze.wf(b)}
  function Lf(a,b,c){if(a.va&&(a.O>Pe(a)||a.flags&131072)){a.Rd||I(a,0);var d=a.Na[6],e=a.za[6];if(103<=d){var f=a.pa(Ye(a,e+100+2|0));if(d>=(f+((b+c-1|0)>>3)|0)&&(c=(1<<c)-1<<(b&7),b=Ye(a,e+f+(b>>3)|0),!((c&65280?a.pa(b):a.na(b))&c)))return}I(a,0)}}function ue(a,b){a.A!==b&&(a.A=b,ne(a))}function ne(a){a.ka=a.A?a.ib:a.Za}
  function Ze(a,b){var c=0===(b&4),d=b&-8;var e={Ea:b&3,kg:c,Va:!1,Kb:!0,jb:0,Wb:0,flags:0,type:0,aa:0,Jb:!1,lb:!1,oc:!1,jf:!1,Pb:!1,size:!1,$e:!1,Hb:0,Ff:!1,og:!1,mf:0,vg:0,Uf:0};if(c){var f=a.Rc;var h=a.oe}else f=a.za[7],h=a.Na[7];if(c&&0===d)return e.Va=!0,e;if((b|7)>h)return e.Kb=!1,e;f=f+d|0;a.Y&&(f=Ye(a,f));e.mf=f;e.jb=a.pa(f+2|0)|a.na(f+4|0)<<16|a.na(f+7|0)<<24;e.Wb=a.na(f+5|0);e.flags=a.na(f+6|0)>>4;e.vg=wc(a,f|0);e.Uf=wc(a,f+4|0);e.type=e.Wb&15;e.aa=e.Wb>>5&3;e.Jb=0===(e.Wb&16);e.lb=128===
  (e.Wb&128);e.oc=8===(e.Wb&8);e.jf=2===(e.Wb&2);e.Pb=4===(e.Wb&4);e.$e=e.Pb&&e.oc;e.size=4===(e.flags&4);a=a.pa(f)|(a.na(f+6|0)&15)<<16;e.Hb=e.flags&8?(a<<12|4095)>>>0:a;e.Ff=e.jf&&!e.oc;e.og=e.jf||!e.oc;return e}
  function re(a,b,c){if(!a.va||Qe(a))a.N[b]=c,a.gb[b]=0,a.za[b]=c<<4,2===b&&(a.tb=!1);else{var d=Ze(a,c);if(2===b){d.Va&&I(a,0);d.Kb&&!d.Jb&&d.Ea===a.O&&d.Ff&&d.aa===a.O||I(a,c&-4);if(!d.lb)throw a.B=a.ia,Xe(a,12,!1,c&-4),233495534;a.tb=d.size}else if(1!==b){if(d.Va){a.N[b]=c;a.gb[b]=1;return}(!d.Kb||d.Jb||!d.og||!d.$e&&(d.Ea>d.aa||a.O>d.aa))&&I(a,c&-4);d.lb||bf(a,c&-4)}a.gb[b]=0;a.Na[b]=d.Hb;a.za[b]=d.jb;a.N[b]=c}}
  function $e(a,b){var c=Ze(a,b);if(c.Va)a.za[7]=0,a.Na[7]=0;else{if(!c.kg)throw a.debug.R("LDTR can only be loaded from GDT");if(!c.lb)throw a.debug.R("#GP handler");if(!c.Jb)throw a.debug.R("#GP handler");if(2!==c.type)throw a.debug.R("#GP handler");a.za[7]=c.jb;a.Na[7]=c.Hb;a.N[7]=b}}function Mf(a,b,c){b=Ze(a,b);a.u&=-65;var d=b.aa<a.O||b.aa<b.Ea;if(b.Va||!b.Kb||(b.Jb?58817>>b.type&1||d:!b.$e&&d))return a.flags&=-65,c;a.flags|=64;return b.Uf&16776960}
  function Nf(a,b,c){b=Ze(a,b);a.u&=-65;var d=b.aa<a.O||b.aa<b.Ea;if(b.Va||!b.Kb||(b.Jb?62833>>b.type&1||d:!b.$e&&d))return a.flags&=-65,c;a.flags|=64;return b.Hb|0}function af(a){a.pc=-1;a.se=-1;a.vc.set(a.pf)}function pe(a){for(var b=new Int32Array(a.pf.buffer),c=0;262144>c;)b[c++]=b[c++]=b[c++]=b[c++]=0;af(a)}function Be(a,b){if(a.Y)if(3===a.O)if(a.Y){var c=b>>>12;a=a.vc[c]&4?a.P[c]^b:Of(a,b,0,1)|b&4095}else a=b;else a=Ye(a,b);else a=b;return a}
  function Ke(a,b){if(a.Y)if(3===a.O)if(a.Y){var c=b>>>12;a=a.vc[c]&8?a.P[c]^b:Of(a,b,1,1)|b&4095}else a=b;else a=df(a,b);else a=b;return a}function df(a,b){if(!a.Y)return b;var c=b>>>12;return a.vc[c]&2?a.P[c]^b:Of(a,b,1,0)|b&4095}function Ye(a,b){if(!a.Y)return b;var c=b>>>12;return a.vc[c]&1?a.P[c]^b:Of(a,b,0,0)|b&4095}
  function Of(a,b,c,d){var e=b>>>12,f=(a.K[3]>>>2)+(e>>10)|0,h=a.Dc[f],g=!0,p=!0;h&1||(a.K[2]=b,Pf(a,c,d,0));0===(h&2)&&(g=!1,c&&(d||a.K[0]&65536)&&(a.K[2]=b,Pf(a,c,d,1)));0===(h&4)&&(p=!1,d&&(a.K[2]=b,Pf(a,c,d,1)));if(h&a.ef)a.Dc[f]=h|32|c<<6,b=h&4290772992|b&4190208,h&=256;else{var r=((h&4294963200)>>>2)+(e&1023)|0,v=a.Dc[r];0===(v&1)&&(a.K[2]=b,Pf(a,c,d,0));0===(v&2)&&(g=!1,c&&(d||a.K[0]&65536)&&(a.K[2]=b,Pf(a,c,d,1)));0===(v&4)&&(p=!1,d&&(a.K[2]=b,Pf(a,c,d,1)));Pc(a,f,h|32);Pc(a,r,v|32|c<<6);b=
  v&4294963200;h=v&256}a.P[e]=b^e<<12;g=p?g?15:5:g?3:1;a.vc[e]=g;h&&a.K[4]&128&&(a.pf[e]=g);return b}function Nb(a,b,c){if(a.Y){var d=3===a.O?1:0,e=d?8:2,f=b>>>12;0===(a.vc[f]&e)&&Of(a,b,1,d);4096<=(b&4095)+c-1&&0===(a.vc[f+1|0]&e)&&Of(a,b+c-1|0,1,d)}}function Pf(a,b,c,d){if(a.F)throw a.debug.R("Double fault");var e=a.K[2]>>>12;a.vc[e]=0;a.pf[e]=0;a.B=a.ia;a.F=!0;Xe(a,14,!1,c<<2|b<<1|d);throw 233495534;}function Mb(a){return a.A!==(32===(a.I&32))}function Ee(a){return a.A!==(64===(a.I&64))}
  function V(a,b){b=a.b[b];return Ee(a)?b:b&65535}function Qf(a,b){Ee(a)?a.b[1]=b:a.i[2]=b}function W(a,b,c){Ee(a)?a.b[b]+=c:a.i[b<<1]+=c}function Rf(a){return Ee(a)?--a.b[1]:--a.i[2]}"undefined"!==typeof window?window.CPU=q:"undefined"!==typeof module&&"undefined"!==typeof module.exports?module.exports.CPU=q:"function"===typeof importScripts&&(self.CPU=q);(function(){q.prototype.g=Array(192);q.prototype.h=Array(192);q.prototype.a=Array(256);q.prototype.g[0]=function(a){return N(a)+(a.i[6]+a.i[12]&65535)|0};q.prototype.g[64]=function(a){return N(a)+(a.i[6]+a.i[12]+a.pb()&65535)|0};q.prototype.g[128]=function(a){return N(a)+(a.i[6]+a.i[12]+a.Mb()&65535)|0};q.prototype.g[1]=function(a){return N(a)+(a.i[6]+a.i[14]&65535)|0};q.prototype.g[65]=function(a){return N(a)+(a.i[6]+a.i[14]+a.pb()&65535)|0};q.prototype.g[129]=function(a){return N(a)+(a.i[6]+a.i[14]+
  a.Mb()&65535)|0};q.prototype.g[2]=function(a){return O(a)+(a.i[10]+a.i[12]&65535)|0};q.prototype.g[66]=function(a){return O(a)+(a.i[10]+a.i[12]+a.pb()&65535)|0};q.prototype.g[130]=function(a){return O(a)+(a.i[10]+a.i[12]+a.Mb()&65535)|0};q.prototype.g[3]=function(a){return O(a)+(a.i[10]+a.i[14]&65535)|0};q.prototype.g[67]=function(a){return O(a)+(a.i[10]+a.i[14]+a.pb()&65535)|0};q.prototype.g[131]=function(a){return O(a)+(a.i[10]+a.i[14]+a.Mb()&65535)|0};q.prototype.g[4]=function(a){return N(a)+(a.i[12]&
  65535)|0};q.prototype.g[68]=function(a){return N(a)+(a.i[12]+a.pb()&65535)|0};q.prototype.g[132]=function(a){return N(a)+(a.i[12]+a.Mb()&65535)|0};q.prototype.g[5]=function(a){return N(a)+(a.i[14]&65535)|0};q.prototype.g[69]=function(a){return N(a)+(a.i[14]+a.pb()&65535)|0};q.prototype.g[133]=function(a){return N(a)+(a.i[14]+a.Mb()&65535)|0};q.prototype.g[6]=function(a){return O(a)+(a.i[10]&65535)|0};q.prototype.g[70]=function(a){return O(a)+(a.i[10]+a.pb()&65535)|0};q.prototype.g[134]=function(a){return O(a)+
  (a.i[10]+a.Mb()&65535)|0};q.prototype.g[7]=function(a){return N(a)+(a.i[6]&65535)|0};q.prototype.g[71]=function(a){return N(a)+(a.i[6]+a.pb()&65535)|0};q.prototype.g[135]=function(a){return N(a)+(a.i[6]+a.Mb()&65535)|0};q.prototype.h[0]=function(a){return N(a)+a.b[0]|0};q.prototype.h[64]=function(a){return N(a)+a.b[0]+a.pb()|0};q.prototype.h[128]=function(a){return N(a)+a.b[0]+a.Z()|0};q.prototype.h[1]=function(a){return N(a)+a.b[1]|0};q.prototype.h[65]=function(a){return N(a)+a.b[1]+a.pb()|0};q.prototype.h[129]=
  function(a){return N(a)+a.b[1]+a.Z()|0};q.prototype.h[2]=function(a){return N(a)+a.b[2]|0};q.prototype.h[66]=function(a){return N(a)+a.b[2]+a.pb()|0};q.prototype.h[130]=function(a){return N(a)+a.b[2]+a.Z()|0};q.prototype.h[3]=function(a){return N(a)+a.b[3]|0};q.prototype.h[67]=function(a){return N(a)+a.b[3]+a.pb()|0};q.prototype.h[131]=function(a){return N(a)+a.b[3]+a.Z()|0};q.prototype.h[5]=function(a){return O(a)+a.b[5]|0};q.prototype.h[69]=function(a){return O(a)+a.b[5]+a.pb()|0};q.prototype.h[133]=
  function(a){return O(a)+a.b[5]+a.Z()|0};q.prototype.h[6]=function(a){return N(a)+a.b[6]|0};q.prototype.h[70]=function(a){return N(a)+a.b[6]+a.pb()|0};q.prototype.h[134]=function(a){return N(a)+a.b[6]+a.Z()|0};q.prototype.h[7]=function(a){return N(a)+a.b[7]|0};q.prototype.h[71]=function(a){return N(a)+a.b[7]+a.pb()|0};q.prototype.h[135]=function(a){return N(a)+a.b[7]+a.Z()|0};q.prototype.g[6]=function(a){return N(a)+a.Mb()|0};q.prototype.h[5]=function(a){return N(a)+a.Z()|0};q.prototype.h[4]=function(a){return Fe(a,
  !1)|0};q.prototype.h[68]=function(a){return Fe(a,!0)+a.pb()|0};q.prototype.h[132]=function(a){return Fe(a,!0)+a.Z()|0};for(var a=0;8>a;a++)for(var b=0;3>b;b++)for(var c=a|b<<6,d=1;8>d;d++)q.prototype.h[c|d<<3]=q.prototype.h[c],q.prototype.g[c|d<<3]=q.prototype.g[c];q.prototype.a[0]=function(a){return a.b[0]+N(a)+a.b[0]|0};q.prototype.a[1]=function(a){return a.b[0]+N(a)+a.b[1]|0};q.prototype.a[2]=function(a){return a.b[0]+N(a)+a.b[2]|0};q.prototype.a[3]=function(a){return a.b[0]+N(a)+a.b[3]|0};q.prototype.a[4]=
  function(a){return a.b[0]+O(a)+a.b[4]|0};q.prototype.a[5]=function(a,b){return a.b[0]+(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[6]=function(a){return a.b[0]+N(a)+a.b[6]|0};q.prototype.a[7]=function(a){return a.b[0]+N(a)+a.b[7]|0};q.prototype.a[64]=function(a){return(a.b[0]<<1)+N(a)+a.b[0]|0};q.prototype.a[65]=function(a){return(a.b[0]<<1)+N(a)+a.b[1]|0};q.prototype.a[66]=function(a){return(a.b[0]<<1)+N(a)+a.b[2]|0};q.prototype.a[67]=function(a){return(a.b[0]<<1)+N(a)+a.b[3]|0};q.prototype.a[68]=
  function(a){return(a.b[0]<<1)+O(a)+a.b[4]|0};q.prototype.a[69]=function(a,b){return(a.b[0]<<1)+(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[70]=function(a){return(a.b[0]<<1)+N(a)+a.b[6]|0};q.prototype.a[71]=function(a){return(a.b[0]<<1)+N(a)+a.b[7]|0};q.prototype.a[128]=function(a){return(a.b[0]<<2)+N(a)+a.b[0]|0};q.prototype.a[129]=function(a){return(a.b[0]<<2)+N(a)+a.b[1]|0};q.prototype.a[130]=function(a){return(a.b[0]<<2)+N(a)+a.b[2]|0};q.prototype.a[131]=function(a){return(a.b[0]<<2)+N(a)+a.b[3]|
  0};q.prototype.a[132]=function(a){return(a.b[0]<<2)+O(a)+a.b[4]|0};q.prototype.a[133]=function(a,b){return(a.b[0]<<2)+(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[134]=function(a){return(a.b[0]<<2)+N(a)+a.b[6]|0};q.prototype.a[135]=function(a){return(a.b[0]<<2)+N(a)+a.b[7]|0};q.prototype.a[192]=function(a){return(a.b[0]<<3)+N(a)+a.b[0]|0};q.prototype.a[193]=function(a){return(a.b[0]<<3)+N(a)+a.b[1]|0};q.prototype.a[194]=function(a){return(a.b[0]<<3)+N(a)+a.b[2]|0};q.prototype.a[195]=function(a){return(a.b[0]<<
  3)+N(a)+a.b[3]|0};q.prototype.a[196]=function(a){return(a.b[0]<<3)+O(a)+a.b[4]|0};q.prototype.a[197]=function(a,b){return(a.b[0]<<3)+(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[198]=function(a){return(a.b[0]<<3)+N(a)+a.b[6]|0};q.prototype.a[199]=function(a){return(a.b[0]<<3)+N(a)+a.b[7]|0};q.prototype.a[8]=function(a){return a.b[1]+N(a)+a.b[0]|0};q.prototype.a[9]=function(a){return a.b[1]+N(a)+a.b[1]|0};q.prototype.a[10]=function(a){return a.b[1]+N(a)+a.b[2]|0};q.prototype.a[11]=function(a){return a.b[1]+
  N(a)+a.b[3]|0};q.prototype.a[12]=function(a){return a.b[1]+O(a)+a.b[4]|0};q.prototype.a[13]=function(a,b){return a.b[1]+(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[14]=function(a){return a.b[1]+N(a)+a.b[6]|0};q.prototype.a[15]=function(a){return a.b[1]+N(a)+a.b[7]|0};q.prototype.a[72]=function(a){return(a.b[1]<<1)+N(a)+a.b[0]|0};q.prototype.a[73]=function(a){return(a.b[1]<<1)+N(a)+a.b[1]|0};q.prototype.a[74]=function(a){return(a.b[1]<<1)+N(a)+a.b[2]|0};q.prototype.a[75]=function(a){return(a.b[1]<<
  1)+N(a)+a.b[3]|0};q.prototype.a[76]=function(a){return(a.b[1]<<1)+O(a)+a.b[4]|0};q.prototype.a[77]=function(a,b){return(a.b[1]<<1)+(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[78]=function(a){return(a.b[1]<<1)+N(a)+a.b[6]|0};q.prototype.a[79]=function(a){return(a.b[1]<<1)+N(a)+a.b[7]|0};q.prototype.a[136]=function(a){return(a.b[1]<<2)+N(a)+a.b[0]|0};q.prototype.a[137]=function(a){return(a.b[1]<<2)+N(a)+a.b[1]|0};q.prototype.a[138]=function(a){return(a.b[1]<<2)+N(a)+a.b[2]|0};q.prototype.a[139]=function(a){return(a.b[1]<<
  2)+N(a)+a.b[3]|0};q.prototype.a[140]=function(a){return(a.b[1]<<2)+O(a)+a.b[4]|0};q.prototype.a[141]=function(a,b){return(a.b[1]<<2)+(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[142]=function(a){return(a.b[1]<<2)+N(a)+a.b[6]|0};q.prototype.a[143]=function(a){return(a.b[1]<<2)+N(a)+a.b[7]|0};q.prototype.a[200]=function(a){return(a.b[1]<<3)+N(a)+a.b[0]|0};q.prototype.a[201]=function(a){return(a.b[1]<<3)+N(a)+a.b[1]|0};q.prototype.a[202]=function(a){return(a.b[1]<<3)+N(a)+a.b[2]|0};q.prototype.a[203]=
  function(a){return(a.b[1]<<3)+N(a)+a.b[3]|0};q.prototype.a[204]=function(a){return(a.b[1]<<3)+O(a)+a.b[4]|0};q.prototype.a[205]=function(a,b){return(a.b[1]<<3)+(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[206]=function(a){return(a.b[1]<<3)+N(a)+a.b[6]|0};q.prototype.a[207]=function(a){return(a.b[1]<<3)+N(a)+a.b[7]|0};q.prototype.a[16]=function(a){return a.b[2]+N(a)+a.b[0]|0};q.prototype.a[17]=function(a){return a.b[2]+N(a)+a.b[1]|0};q.prototype.a[18]=function(a){return a.b[2]+N(a)+a.b[2]|0};q.prototype.a[19]=
  function(a){return a.b[2]+N(a)+a.b[3]|0};q.prototype.a[20]=function(a){return a.b[2]+O(a)+a.b[4]|0};q.prototype.a[21]=function(a,b){return a.b[2]+(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[22]=function(a){return a.b[2]+N(a)+a.b[6]|0};q.prototype.a[23]=function(a){return a.b[2]+N(a)+a.b[7]|0};q.prototype.a[80]=function(a){return(a.b[2]<<1)+N(a)+a.b[0]|0};q.prototype.a[81]=function(a){return(a.b[2]<<1)+N(a)+a.b[1]|0};q.prototype.a[82]=function(a){return(a.b[2]<<1)+N(a)+a.b[2]|0};q.prototype.a[83]=
  function(a){return(a.b[2]<<1)+N(a)+a.b[3]|0};q.prototype.a[84]=function(a){return(a.b[2]<<1)+O(a)+a.b[4]|0};q.prototype.a[85]=function(a,b){return(a.b[2]<<1)+(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[86]=function(a){return(a.b[2]<<1)+N(a)+a.b[6]|0};q.prototype.a[87]=function(a){return(a.b[2]<<1)+N(a)+a.b[7]|0};q.prototype.a[144]=function(a){return(a.b[2]<<2)+N(a)+a.b[0]|0};q.prototype.a[145]=function(a){return(a.b[2]<<2)+N(a)+a.b[1]|0};q.prototype.a[146]=function(a){return(a.b[2]<<2)+N(a)+a.b[2]|
  0};q.prototype.a[147]=function(a){return(a.b[2]<<2)+N(a)+a.b[3]|0};q.prototype.a[148]=function(a){return(a.b[2]<<2)+O(a)+a.b[4]|0};q.prototype.a[149]=function(a,b){return(a.b[2]<<2)+(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[150]=function(a){return(a.b[2]<<2)+N(a)+a.b[6]|0};q.prototype.a[151]=function(a){return(a.b[2]<<2)+N(a)+a.b[7]|0};q.prototype.a[208]=function(a){return(a.b[2]<<3)+N(a)+a.b[0]|0};q.prototype.a[209]=function(a){return(a.b[2]<<3)+N(a)+a.b[1]|0};q.prototype.a[210]=function(a){return(a.b[2]<<
  3)+N(a)+a.b[2]|0};q.prototype.a[211]=function(a){return(a.b[2]<<3)+N(a)+a.b[3]|0};q.prototype.a[212]=function(a){return(a.b[2]<<3)+O(a)+a.b[4]|0};q.prototype.a[213]=function(a,b){return(a.b[2]<<3)+(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[214]=function(a){return(a.b[2]<<3)+N(a)+a.b[6]|0};q.prototype.a[215]=function(a){return(a.b[2]<<3)+N(a)+a.b[7]|0};q.prototype.a[24]=function(a){return a.b[3]+N(a)+a.b[0]|0};q.prototype.a[25]=function(a){return a.b[3]+N(a)+a.b[1]|0};q.prototype.a[26]=function(a){return a.b[3]+
  N(a)+a.b[2]|0};q.prototype.a[27]=function(a){return a.b[3]+N(a)+a.b[3]|0};q.prototype.a[28]=function(a){return a.b[3]+O(a)+a.b[4]|0};q.prototype.a[29]=function(a,b){return a.b[3]+(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[30]=function(a){return a.b[3]+N(a)+a.b[6]|0};q.prototype.a[31]=function(a){return a.b[3]+N(a)+a.b[7]|0};q.prototype.a[88]=function(a){return(a.b[3]<<1)+N(a)+a.b[0]|0};q.prototype.a[89]=function(a){return(a.b[3]<<1)+N(a)+a.b[1]|0};q.prototype.a[90]=function(a){return(a.b[3]<<1)+
  N(a)+a.b[2]|0};q.prototype.a[91]=function(a){return(a.b[3]<<1)+N(a)+a.b[3]|0};q.prototype.a[92]=function(a){return(a.b[3]<<1)+O(a)+a.b[4]|0};q.prototype.a[93]=function(a,b){return(a.b[3]<<1)+(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[94]=function(a){return(a.b[3]<<1)+N(a)+a.b[6]|0};q.prototype.a[95]=function(a){return(a.b[3]<<1)+N(a)+a.b[7]|0};q.prototype.a[152]=function(a){return(a.b[3]<<2)+N(a)+a.b[0]|0};q.prototype.a[153]=function(a){return(a.b[3]<<2)+N(a)+a.b[1]|0};q.prototype.a[154]=function(a){return(a.b[3]<<
  2)+N(a)+a.b[2]|0};q.prototype.a[155]=function(a){return(a.b[3]<<2)+N(a)+a.b[3]|0};q.prototype.a[156]=function(a){return(a.b[3]<<2)+O(a)+a.b[4]|0};q.prototype.a[157]=function(a,b){return(a.b[3]<<2)+(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[158]=function(a){return(a.b[3]<<2)+N(a)+a.b[6]|0};q.prototype.a[159]=function(a){return(a.b[3]<<2)+N(a)+a.b[7]|0};q.prototype.a[216]=function(a){return(a.b[3]<<3)+N(a)+a.b[0]|0};q.prototype.a[217]=function(a){return(a.b[3]<<3)+N(a)+a.b[1]|0};q.prototype.a[218]=
  function(a){return(a.b[3]<<3)+N(a)+a.b[2]|0};q.prototype.a[219]=function(a){return(a.b[3]<<3)+N(a)+a.b[3]|0};q.prototype.a[220]=function(a){return(a.b[3]<<3)+O(a)+a.b[4]|0};q.prototype.a[221]=function(a,b){return(a.b[3]<<3)+(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[222]=function(a){return(a.b[3]<<3)+N(a)+a.b[6]|0};q.prototype.a[223]=function(a){return(a.b[3]<<3)+N(a)+a.b[7]|0};q.prototype.a[32]=function(a){return N(a)+a.b[0]|0};q.prototype.a[33]=function(a){return N(a)+a.b[1]|0};q.prototype.a[34]=
  function(a){return N(a)+a.b[2]|0};q.prototype.a[35]=function(a){return N(a)+a.b[3]|0};q.prototype.a[36]=function(a){return O(a)+a.b[4]|0};q.prototype.a[37]=function(a,b){return(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[38]=function(a){return N(a)+a.b[6]|0};q.prototype.a[39]=function(a){return N(a)+a.b[7]|0};q.prototype.a[96]=function(a){return N(a)+a.b[0]|0};q.prototype.a[97]=function(a){return N(a)+a.b[1]|0};q.prototype.a[98]=function(a){return N(a)+a.b[2]|0};q.prototype.a[99]=function(a){return N(a)+
  a.b[3]|0};q.prototype.a[100]=function(a){return O(a)+a.b[4]|0};q.prototype.a[101]=function(a,b){return(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[102]=function(a){return N(a)+a.b[6]|0};q.prototype.a[103]=function(a){return N(a)+a.b[7]|0};q.prototype.a[160]=function(a){return N(a)+a.b[0]|0};q.prototype.a[161]=function(a){return N(a)+a.b[1]|0};q.prototype.a[162]=function(a){return N(a)+a.b[2]|0};q.prototype.a[163]=function(a){return N(a)+a.b[3]|0};q.prototype.a[164]=function(a){return O(a)+a.b[4]|0};
  q.prototype.a[165]=function(a,b){return(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[166]=function(a){return N(a)+a.b[6]|0};q.prototype.a[167]=function(a){return N(a)+a.b[7]|0};q.prototype.a[224]=function(a){return N(a)+a.b[0]|0};q.prototype.a[225]=function(a){return N(a)+a.b[1]|0};q.prototype.a[226]=function(a){return N(a)+a.b[2]|0};q.prototype.a[227]=function(a){return N(a)+a.b[3]|0};q.prototype.a[228]=function(a){return O(a)+a.b[4]|0};q.prototype.a[229]=function(a,b){return(b?O(a)+a.b[5]:N(a)+a.Z())|
  0};q.prototype.a[230]=function(a){return N(a)+a.b[6]|0};q.prototype.a[231]=function(a){return N(a)+a.b[7]|0};q.prototype.a[40]=function(a){return a.b[5]+N(a)+a.b[0]|0};q.prototype.a[41]=function(a){return a.b[5]+N(a)+a.b[1]|0};q.prototype.a[42]=function(a){return a.b[5]+N(a)+a.b[2]|0};q.prototype.a[43]=function(a){return a.b[5]+N(a)+a.b[3]|0};q.prototype.a[44]=function(a){return a.b[5]+O(a)+a.b[4]|0};q.prototype.a[45]=function(a,b){return a.b[5]+(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[46]=function(a){return a.b[5]+
  N(a)+a.b[6]|0};q.prototype.a[47]=function(a){return a.b[5]+N(a)+a.b[7]|0};q.prototype.a[104]=function(a){return(a.b[5]<<1)+N(a)+a.b[0]|0};q.prototype.a[105]=function(a){return(a.b[5]<<1)+N(a)+a.b[1]|0};q.prototype.a[106]=function(a){return(a.b[5]<<1)+N(a)+a.b[2]|0};q.prototype.a[107]=function(a){return(a.b[5]<<1)+N(a)+a.b[3]|0};q.prototype.a[108]=function(a){return(a.b[5]<<1)+O(a)+a.b[4]|0};q.prototype.a[109]=function(a,b){return(a.b[5]<<1)+(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[110]=function(a){return(a.b[5]<<
  1)+N(a)+a.b[6]|0};q.prototype.a[111]=function(a){return(a.b[5]<<1)+N(a)+a.b[7]|0};q.prototype.a[168]=function(a){return(a.b[5]<<2)+N(a)+a.b[0]|0};q.prototype.a[169]=function(a){return(a.b[5]<<2)+N(a)+a.b[1]|0};q.prototype.a[170]=function(a){return(a.b[5]<<2)+N(a)+a.b[2]|0};q.prototype.a[171]=function(a){return(a.b[5]<<2)+N(a)+a.b[3]|0};q.prototype.a[172]=function(a){return(a.b[5]<<2)+O(a)+a.b[4]|0};q.prototype.a[173]=function(a,b){return(a.b[5]<<2)+(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[174]=
  function(a){return(a.b[5]<<2)+N(a)+a.b[6]|0};q.prototype.a[175]=function(a){return(a.b[5]<<2)+N(a)+a.b[7]|0};q.prototype.a[232]=function(a){return(a.b[5]<<3)+N(a)+a.b[0]|0};q.prototype.a[233]=function(a){return(a.b[5]<<3)+N(a)+a.b[1]|0};q.prototype.a[234]=function(a){return(a.b[5]<<3)+N(a)+a.b[2]|0};q.prototype.a[235]=function(a){return(a.b[5]<<3)+N(a)+a.b[3]|0};q.prototype.a[236]=function(a){return(a.b[5]<<3)+O(a)+a.b[4]|0};q.prototype.a[237]=function(a,b){return(a.b[5]<<3)+(b?O(a)+a.b[5]:N(a)+a.Z())|
  0};q.prototype.a[238]=function(a){return(a.b[5]<<3)+N(a)+a.b[6]|0};q.prototype.a[239]=function(a){return(a.b[5]<<3)+N(a)+a.b[7]|0};q.prototype.a[48]=function(a){return a.b[6]+N(a)+a.b[0]|0};q.prototype.a[49]=function(a){return a.b[6]+N(a)+a.b[1]|0};q.prototype.a[50]=function(a){return a.b[6]+N(a)+a.b[2]|0};q.prototype.a[51]=function(a){return a.b[6]+N(a)+a.b[3]|0};q.prototype.a[52]=function(a){return a.b[6]+O(a)+a.b[4]|0};q.prototype.a[53]=function(a,b){return a.b[6]+(b?O(a)+a.b[5]:N(a)+a.Z())|0};
  q.prototype.a[54]=function(a){return a.b[6]+N(a)+a.b[6]|0};q.prototype.a[55]=function(a){return a.b[6]+N(a)+a.b[7]|0};q.prototype.a[112]=function(a){return(a.b[6]<<1)+N(a)+a.b[0]|0};q.prototype.a[113]=function(a){return(a.b[6]<<1)+N(a)+a.b[1]|0};q.prototype.a[114]=function(a){return(a.b[6]<<1)+N(a)+a.b[2]|0};q.prototype.a[115]=function(a){return(a.b[6]<<1)+N(a)+a.b[3]|0};q.prototype.a[116]=function(a){return(a.b[6]<<1)+O(a)+a.b[4]|0};q.prototype.a[117]=function(a,b){return(a.b[6]<<1)+(b?O(a)+a.b[5]:
  N(a)+a.Z())|0};q.prototype.a[118]=function(a){return(a.b[6]<<1)+N(a)+a.b[6]|0};q.prototype.a[119]=function(a){return(a.b[6]<<1)+N(a)+a.b[7]|0};q.prototype.a[176]=function(a){return(a.b[6]<<2)+N(a)+a.b[0]|0};q.prototype.a[177]=function(a){return(a.b[6]<<2)+N(a)+a.b[1]|0};q.prototype.a[178]=function(a){return(a.b[6]<<2)+N(a)+a.b[2]|0};q.prototype.a[179]=function(a){return(a.b[6]<<2)+N(a)+a.b[3]|0};q.prototype.a[180]=function(a){return(a.b[6]<<2)+O(a)+a.b[4]|0};q.prototype.a[181]=function(a,b){return(a.b[6]<<
  2)+(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[182]=function(a){return(a.b[6]<<2)+N(a)+a.b[6]|0};q.prototype.a[183]=function(a){return(a.b[6]<<2)+N(a)+a.b[7]|0};q.prototype.a[240]=function(a){return(a.b[6]<<3)+N(a)+a.b[0]|0};q.prototype.a[241]=function(a){return(a.b[6]<<3)+N(a)+a.b[1]|0};q.prototype.a[242]=function(a){return(a.b[6]<<3)+N(a)+a.b[2]|0};q.prototype.a[243]=function(a){return(a.b[6]<<3)+N(a)+a.b[3]|0};q.prototype.a[244]=function(a){return(a.b[6]<<3)+O(a)+a.b[4]|0};q.prototype.a[245]=function(a,
  b){return(a.b[6]<<3)+(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[246]=function(a){return(a.b[6]<<3)+N(a)+a.b[6]|0};q.prototype.a[247]=function(a){return(a.b[6]<<3)+N(a)+a.b[7]|0};q.prototype.a[56]=function(a){return a.b[7]+N(a)+a.b[0]|0};q.prototype.a[57]=function(a){return a.b[7]+N(a)+a.b[1]|0};q.prototype.a[58]=function(a){return a.b[7]+N(a)+a.b[2]|0};q.prototype.a[59]=function(a){return a.b[7]+N(a)+a.b[3]|0};q.prototype.a[60]=function(a){return a.b[7]+O(a)+a.b[4]|0};q.prototype.a[61]=function(a,
  b){return a.b[7]+(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[62]=function(a){return a.b[7]+N(a)+a.b[6]|0};q.prototype.a[63]=function(a){return a.b[7]+N(a)+a.b[7]|0};q.prototype.a[120]=function(a){return(a.b[7]<<1)+N(a)+a.b[0]|0};q.prototype.a[121]=function(a){return(a.b[7]<<1)+N(a)+a.b[1]|0};q.prototype.a[122]=function(a){return(a.b[7]<<1)+N(a)+a.b[2]|0};q.prototype.a[123]=function(a){return(a.b[7]<<1)+N(a)+a.b[3]|0};q.prototype.a[124]=function(a){return(a.b[7]<<1)+O(a)+a.b[4]|0};q.prototype.a[125]=
  function(a,b){return(a.b[7]<<1)+(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[126]=function(a){return(a.b[7]<<1)+N(a)+a.b[6]|0};q.prototype.a[127]=function(a){return(a.b[7]<<1)+N(a)+a.b[7]|0};q.prototype.a[184]=function(a){return(a.b[7]<<2)+N(a)+a.b[0]|0};q.prototype.a[185]=function(a){return(a.b[7]<<2)+N(a)+a.b[1]|0};q.prototype.a[186]=function(a){return(a.b[7]<<2)+N(a)+a.b[2]|0};q.prototype.a[187]=function(a){return(a.b[7]<<2)+N(a)+a.b[3]|0};q.prototype.a[188]=function(a){return(a.b[7]<<2)+O(a)+a.b[4]|
  0};q.prototype.a[189]=function(a,b){return(a.b[7]<<2)+(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[190]=function(a){return(a.b[7]<<2)+N(a)+a.b[6]|0};q.prototype.a[191]=function(a){return(a.b[7]<<2)+N(a)+a.b[7]|0};q.prototype.a[248]=function(a){return(a.b[7]<<3)+N(a)+a.b[0]|0};q.prototype.a[249]=function(a){return(a.b[7]<<3)+N(a)+a.b[1]|0};q.prototype.a[250]=function(a){return(a.b[7]<<3)+N(a)+a.b[2]|0};q.prototype.a[251]=function(a){return(a.b[7]<<3)+N(a)+a.b[3]|0};q.prototype.a[252]=function(a){return(a.b[7]<<
  3)+O(a)+a.b[4]|0};q.prototype.a[253]=function(a,b){return(a.b[7]<<3)+(b?O(a)+a.b[5]:N(a)+a.Z())|0};q.prototype.a[254]=function(a){return(a.b[7]<<3)+N(a)+a.b[6]|0};q.prototype.a[255]=function(a){return(a.b[7]<<3)+N(a)+a.b[7]|0}})();function Sf(a,b){return 0>a?(b&4095)>>(-a>>1):(~b&4095)>>a}function Tf(a,b,c){return Math.min(Sf(a,b),Sf(a,c))};function Uf(a,b,c){return a.add(b,c,7)}function Vf(a,b,c){return a.add(b,c,15)}function Wf(a,b,c){return a.add(b,c,31)}function Xf(a,b,c){return dg(a,b,c,7)}function eg(a,b,c){return dg(a,b,c,15)}function fg(a,b,c){return dg(a,b,c,31)}function gg(a,b,c){return a.sub(b,c,7)}function hg(a,b,c){return a.sub(b,c,15)}function ig(a,b,c){return a.sub(b,c,31)}function jg(a,b,c){return kg(a,b,c,7)}function lg(a,b,c){return kg(a,b,c,15)}function mg(a,b,c){return kg(a,b,c,31)}k=q.prototype;
  k.add=function(a,b,c){this.mb=a;this.nb=b;this.l=this.G=a+b|0;this.U=c;this.u=2261;return this.G};function dg(a,b,c,d){var e=a.fb();a.mb=b;a.nb=c;a.l=a.G=(b+c|0)+e|0;a.U=d;a.u=2261;return a.G}k.sub=function(a,b,c){this.l=a;this.nb=b;this.mb=this.G=a-b|0;this.U=c;this.u=2261;return this.G};function kg(a,b,c,d){var e=a.fb();a.l=b;a.nb=c;a.mb=a.G=b-c-e|0;a.U=d;a.u=2261;return a.G}function ng(a,b,c){a.flags=a.flags&-2|a.fb();a.mb=b;a.nb=1;a.l=a.G=b+1|0;a.U=c;a.u=2260;return a.G}
  function og(a,b,c){a.flags=a.flags&-2|a.fb();a.l=b;a.nb=1;a.mb=a.G=b-1|0;a.U=c;a.u=2260;return a.G}function pg(a,b,c){a.mb=a.G=-b|0;a.u=2261;a.l=0;a.nb=b;a.U=c;return a.G}function qg(a,b,c){b*=c;a.G=b&65535;a.U=15;a.flags=32767<b||-32768>b?a.flags|2049:a.flags&-2050;a.u=212;return b}function rg(a,b,c){var d=b&65535;b>>>=16;var e=c&65535;c>>>=16;var f=d*e;e=(f>>>16)+(b*e|0)|0;var h=e>>>16;e=(e&65535)+(d*c|0)|0;a.ja[0]=e<<16|f&65535;a.ja[1]=((e>>>16)+(b*c|0)|0)+h|0;return a.ja}
  function sg(a,b,c){var d=!1;0>b&&(d=!0,b=-b|0);0>c&&(d=!d,c=-c|0);a=rg(a,b,c);d&&(a[0]=-a[0]|0,a[1]=~a[1]+!a[0]|0);return a}function tg(a,b,c){b=sg(a,b,c);a.G=b[0];a.U=31;a.flags=b[1]===b[0]>>31?a.flags&-2050:a.flags|2049;a.u=212;return b[0]}function ug(a,b,c,d){(c>=d||0===d)&&hf(a);var e=0;if(1048576<c){for(var f=32,h=d;h>c;)h>>>=1,f--;for(;1048576<c;){if(c>=h){c-=h;var g=d<<f>>>0;g>b&&c--;b=b-g>>>0;e|=1<<f}f--;h>>=1}e>>>=0}b+=4294967296*c;a.W[0]=e+(b/d|0);a.W[1]=b%d;return a.W}
  function vg(a,b,c){return a.and(b,c,7)}function wg(a,b,c){return a.and(b,c,15)}function xg(a,b,c){return a.and(b,c,31)}function yg(a,b,c){return a.or(b,c,7)}function zg(a,b,c){return a.or(b,c,15)}function Ag(a,b,c){return a.or(b,c,31)}function Bg(a,b,c){return a.xor(b,c,7)}function Cg(a,b,c){return a.xor(b,c,15)}function Dg(a,b,c){return a.xor(b,c,31)}k.and=function(a,b,c){this.G=a&b;this.U=c;this.flags&=-2066;this.u=196;return this.G};
  k.or=function(a,b,c){this.G=a|b;this.U=c;this.flags&=-2066;this.u=196;return this.G};k.xor=function(a,b,c){this.G=a^b;this.U=c;this.flags&=-2066;this.u=196;return this.G};function Eg(a,b,c){if(!c)return b;c&=7;b=b<<c|b>>8-c;a.u&=-2050;a.flags=a.flags&-2050|b&1|(b<<11^b<<4)&2048;return b}function Fg(a,b,c){if(!c)return b;c&=15;b=b<<c|b>>16-c;a.u&=-2050;a.flags=a.flags&-2050|b&1|(b<<11^b>>4)&2048;return b}
  function Gg(a,b,c){if(!c)return b;b=b<<c|b>>>32-c;a.u&=-2050;a.flags=a.flags&-2050|b&1|(b<<11^b>>20)&2048;return b}function Hg(a,b,c){c%=9;if(!c)return b;b=b<<c|a.fb()<<c-1|b>>9-c;a.u&=-2050;a.flags=a.flags&-2050|b>>8&1|(b<<3^b<<4)&2048;return b}function Ig(a,b,c){c%=17;if(!c)return b;b=b<<c|a.fb()<<c-1|b>>17-c;a.u&=-2050;a.flags=a.flags&-2050|b>>16&1|(b>>5^b>>4)&2048;return b}
  function Jg(a,b,c){if(!c)return b;var d=b<<c|a.fb()<<c-1;1<c&&(d|=b>>>33-c);a.u&=-2050;a.flags=a.flags&-2050|b>>>32-c&1;a.flags|=(a.flags<<11^d>>20)&2048;return d}function Kg(a,b,c){if(!c)return b;c&=7;b=b>>c|b<<8-c;a.u&=-2050;a.flags=a.flags&-2050|b>>7&1|(b<<4^b<<5)&2048;return b}function Lg(a,b,c){if(!c)return b;c&=15;b=b>>c|b<<16-c;a.u&=-2050;a.flags=a.flags&-2050|b>>15&1|(b>>4^b>>3)&2048;return b}
  function Mg(a,b,c){if(!c)return b;b=b>>>c|b<<32-c;a.u&=-2050;a.flags=a.flags&-2050|b>>31&1|(b>>20^b>>19)&2048;return b}function Ng(a,b,c){c%=9;if(!c)return b;b=b>>c|a.fb()<<8-c|b<<9-c;a.u&=-2050;a.flags=a.flags&-2050|b>>8&1|(b<<4^b<<5)&2048;return b}function Og(a,b,c){c%=17;if(!c)return b;b=b>>c|a.fb()<<16-c|b<<17-c;a.u&=-2050;a.flags=a.flags&-2050|b>>16&1|(b>>4^b>>3)&2048;return b}
  function Pg(a,b,c){if(!c)return b;var d=b>>>c|a.fb()<<32-c;1<c&&(d|=b<<33-c);a.u&=-2050;a.flags=a.flags&-2050|b>>c-1&1|(d>>20^d>>19)&2048;return d}function Qg(a,b,c){if(0===c)return b;a.G=b<<c;a.U=7;a.u=212;a.flags=a.flags&-2050|a.G>>8&1|(a.G<<3^a.G<<4)&2048;return a.G}function Rg(a,b,c){if(0===c)return b;a.G=b<<c;a.U=15;a.u=212;a.flags=a.flags&-2050|a.G>>16&1|(a.G>>5^a.G>>4)&2048;return a.G}
  function Sg(a,b,c){if(0===c)return b;a.G=b<<c;a.U=31;a.u=212;a.flags=a.flags&-2050|b>>>32-c&1;a.flags|=(a.flags&1^a.G>>31&1)<<11&2048;return a.G}function Tg(a,b,c){if(0===c)return b;a.G=b>>c;a.U=7;a.u=212;a.flags=a.flags&-2050|b>>c-1&1|(b>>7&1)<<11&2048;return a.G}function Ug(a,b,c){if(0===c)return b;a.G=b>>c;a.U=15;a.u=212;a.flags=a.flags&-2050|b>>c-1&1|b>>4&2048;return a.G}function Vg(a,b,c){if(0===c)return b;a.G=b>>>c;a.U=31;a.u=212;a.flags=a.flags&-2050|b>>>c-1&1|b>>20&2048;return a.G}
  function Wg(a,b,c){if(0===c)return b;8>c?(a.G=b<<24>>c+24,a.flags=a.flags&-2050|b>>c-1&1):(a.G=b<<24>>31,a.flags=a.flags&-2050|a.G&1);a.U=7;a.u=212;return a.G}function Xg(a,b,c){if(0===c)return b;16>c?(a.G=b<<16>>c+16,a.flags=a.flags&-2050|b>>c-1&1):(a.G=b<<16>>31,a.flags=a.flags&-2050|a.G&1);a.U=15;a.u=212;return a.G}function Yg(a,b,c){if(0===c)return b;a.G=b>>c;a.U=31;a.u=212;a.flags=a.flags&-2050|b>>>c-1&1;return a.G}
  function Zg(a,b,c,d){if(0===d)return b;16>=d?(a.G=b>>d|c<<16-d,a.flags=a.flags&-2|b>>d-1&1):(a.G=b<<32-d|c>>d-16,a.flags=a.flags&-2|c>>d-17&1);a.U=15;a.u=212;a.flags=a.flags&-2049|(a.G^b)>>4&2048;return a.G}function $g(a,b,c,d){if(0===d)return b;a.G=b>>>d|c<<32-d;a.U=31;a.u=212;a.flags=a.flags&-2|b>>>d-1&1;a.flags=a.flags&-2049|(a.G^b)>>20&2048;return a.G}
  function ah(a,b,c,d){if(0===d)return b;16>=d?(a.G=b<<d|c>>>16-d,a.flags=a.flags&-2|b>>>16-d&1):(a.G=b>>32-d|c<<d-16,a.flags=a.flags&-2|c>>>32-d&1);a.U=15;a.u=212;a.flags=a.flags&-2049|(a.flags&1^a.G>>15&1)<<11;return a.G}function bh(a,b,c,d){if(0===d)return b;a.G=b<<d|c>>>32-d;a.U=31;a.u=212;a.flags=a.flags&-2|b>>>32-d&1;a.flags=1===d?a.flags&-2049|(a.flags&1^a.G>>31&1)<<11:a.flags&-2049;return a.G}function ch(a,b,c){a.flags=a.flags&-2|b>>c&1;a.u&=-2}
  function dh(a,b,c){a.flags=a.flags&-2|b>>c&1;a.u&=-2;return b^1<<c}function eh(a,b,c){a.flags=a.flags&-2|b>>c&1;a.u&=-2;return b|1<<c}function fh(a,b,c){a.flags=a.flags&-2|b>>c&1;a.u&=-2;return b&~(1<<c)}function gh(a,b,c){b=He(a,b+(c>>3)|0);a.flags=a.flags&-2|b>>(c&7)&1;a.u&=-2}function hh(a,b,c){b=Ke(a,b+(c>>3)|0);var d=a.na(b);c&=7;a.flags=a.flags&-2|d>>c&1;a.u&=-2;a.Ba(b,d^1<<c)}function ih(a,b,c){b=Ke(a,b+(c>>3)|0);var d=a.na(b);c&=7;a.flags=a.flags&-2|d>>c&1;a.u&=-2;a.Ba(b,d&~(1<<c))}
  function jh(a,b,c){b=Ke(a,b+(c>>3)|0);var d=a.na(b);c&=7;a.flags=a.flags&-2|d>>c&1;a.u&=-2;a.Ba(b,d|1<<c)}function kh(a,b){a.u=0;a.flags&=-2262;if(b)return b-=b>>1&1431655765,b=(b&858993459)+(b>>2&858993459),16843009*(b+(b>>4)&252645135)>>24;a.flags|=64;return 0}function lh(a){a>>>=0;32768<=a?a=0:255<a&&(a=255);return a}function mh(a){65408<a?a&=255:32767<a?a=128:127<a&&(a=127);return a}function nh(a){a>>>=0;4294934528<a?a&=65535:2147483647<a?a=32768:32767<a&&(a=32767);return a}
  function oh(a){a>>>=0;4294967168<a?a&=255:2147483647<a?a=128:127<a&&(a=127);return a}function ph(a){a|=0;0>a&&(a=0);return a}function qh(a){a>>>=0;255<a&&(a=255);return a}function rh(a){return 65535<a?65535:a};function sh(a,b){var c=a.ya();b&&(a.B=a.B+c|0)}function th(a,b){var c=B(a,1);a.B-=c;a.B=a.B+b&65535;a.B=a.B+c|0}function uh(a,b){var c=a.X();b&&th(a,c)}function vh(a,b){var c=a.ga();b&&(a.B=a.B+c|0)}function wh(a,b){var c=P(a);b&&Ff(a,c)}function xh(a,b){var c=mf(a);b&&Gf(a,c)}function yh(a,b){qf(a,b?1:0)}k=q.prototype;k.loop=function(a){Rf(this)&&(this.B=this.B+a|0)};k.fb=function(){return this.u&1?(this.mb^(this.mb^this.nb)&(this.nb^this.l))>>>this.U&1:this.flags&1};
  k.Xg=function(){return this.u&4?154020>>((this.G^this.G>>4)&15)&4:this.flags&4};function Se(a){return a.u&16?(a.mb^a.nb^a.l)&16:a.flags&16}k.Bc=function(){return this.u&64?(~this.G&this.G-1)>>>this.U&1:this.flags&64};k.Bf=function(){return this.u&128?this.G>>>this.U&1:this.flags&128};k.We=function(){return this.u&2048?((this.mb^this.l)&(this.nb^this.l))>>>this.U&1:this.flags&2048};k.Ub=q.prototype.We;k.Cb=q.prototype.fb;k.Eb=q.prototype.Bc;k.Vb=q.prototype.Bf;k.Db=q.prototype.Xg;
  function zh(a){return a.fb()||a.Bc()}function Ah(a){return!a.Bf()!==!a.We()}function Bh(a){return a.Bc()||!a.Bf()!==!a.We()}function J(a,b){var c=H(a,-2);u(a,c,b);G(a,-2)}function L(a,b){var c=H(a,-4);w(a,c,b);G(a,-4)}function Ch(a){var b=B(a,2)+Ue(a)|0;b=x(a,b);G(a,2);return b}function Dh(a){var b=B(a,2)+Ue(a)|0;b=y(a,b);G(a,4);return b}function Eh(a,b){var c=a.i[0];a.i[0]=a.i[b];a.i[b]=c}function Fh(a,b){var c=a.b[0];a.b[0]=a.b[b];a.b[b]=c}
  function Gh(a,b){192<=a.f&&t(a);var c=F(a,a.f),d=x(a,c);c=x(a,c+2|0);re(a,b,c);a.i[a.f>>2&14]=d}function Hh(a,b){192<=a.f&&t(a);var c=F(a,a.f),d=y(a,c);c=x(a,c+4|0);re(a,b,c);a.b[a.f>>3&7]=d}function Ih(a,b){var c=a.b[b];a.b[b]=c>>>24|c<<24|c>>8&65280|c<<8&16711680};var X=[],Y=[],Z=[];X[0]=function(a){D(a);uf(a,Uf(a,tf(a),Bf(a)))};Y[1]=function(a){D(a);S(a,Vf(a,R(a),Df(a)))};Z[1]=function(a){D(a);wf(a,Wf(a,vf(a),T(a)))};X[2]=function(a){D(a);Cf(a,Uf(a,Bf(a),lf(a)))};Y[3]=function(a){D(a);Ff(a,Vf(a,Df(a),P(a)))};Z[3]=function(a){D(a);Gf(a,Wf(a,T(a),mf(a)))};X[4]=function(a){a.D[0]=Uf(a,a.D[0],a.M())};Y[5]=function(a){a.i[0]=Vf(a,a.i[0],a.X())};Z[5]=function(a){a.b[0]=Wf(a,a.b[0],a.ga())};Y[6]=function(a){J(a,a.N[0])};Z[6]=function(a){L(a,a.N[0])};
  Y[7]=function(a){re(a,0,x(a,H(a,0)));G(a,2)};Z[7]=function(a){re(a,0,y(a,H(a,0))&65535);G(a,4)};X[8]=function(a){D(a);uf(a,yg(a,tf(a),Bf(a)))};Y[9]=function(a){D(a);S(a,zg(a,R(a),Df(a)))};Z[9]=function(a){D(a);wf(a,Ag(a,vf(a),T(a)))};X[10]=function(a){D(a);Cf(a,yg(a,Bf(a),lf(a)))};Y[11]=function(a){D(a);Ff(a,zg(a,Df(a),P(a)))};Z[11]=function(a){D(a);Gf(a,Ag(a,T(a),mf(a)))};X[12]=function(a){a.D[0]=yg(a,a.D[0],a.M())};Y[13]=function(a){a.i[0]=zg(a,a.i[0],a.X())};
  Z[13]=function(a){a.b[0]=Ag(a,a.b[0],a.ga())};Y[14]=function(a){J(a,a.N[1])};Z[14]=function(a){L(a,a.N[1])};Y[15]=function(a){a.tk[a.Eh()](a)};Z[15]=function(a){a.uk[a.Eh()](a)};X[16]=function(a){D(a);uf(a,Xf(a,tf(a),Bf(a)))};Y[17]=function(a){D(a);S(a,eg(a,R(a),Df(a)))};Z[17]=function(a){D(a);wf(a,fg(a,vf(a),T(a)))};X[18]=function(a){D(a);Cf(a,Xf(a,Bf(a),lf(a)))};Y[19]=function(a){D(a);Ff(a,eg(a,Df(a),P(a)))};Z[19]=function(a){D(a);Gf(a,fg(a,T(a),mf(a)))};X[20]=function(a){a.D[0]=Xf(a,a.D[0],a.M())};
  Y[21]=function(a){a.i[0]=eg(a,a.i[0],a.X())};Z[21]=function(a){a.b[0]=fg(a,a.b[0],a.ga())};Y[22]=function(a){J(a,a.N[2])};Z[22]=function(a){L(a,a.N[2])};Y[23]=function(a){re(a,2,x(a,H(a,0)));G(a,2);a.I=0;we(a)};Z[23]=function(a){re(a,2,y(a,H(a,0))&65535);G(a,4);a.I=0;we(a)};X[24]=function(a){D(a);uf(a,jg(a,tf(a),Bf(a)))};Y[25]=function(a){D(a);S(a,lg(a,R(a),Df(a)))};Z[25]=function(a){D(a);wf(a,mg(a,vf(a),T(a)))};X[26]=function(a){D(a);Cf(a,jg(a,Bf(a),lf(a)))};
  Y[27]=function(a){D(a);Ff(a,lg(a,Df(a),P(a)))};Z[27]=function(a){D(a);Gf(a,mg(a,T(a),mf(a)))};X[28]=function(a){a.D[0]=jg(a,a.D[0],a.M())};Y[29]=function(a){a.i[0]=lg(a,a.i[0],a.X())};Z[29]=function(a){a.b[0]=mg(a,a.b[0],a.ga())};Y[30]=function(a){J(a,a.N[3])};Z[30]=function(a){L(a,a.N[3])};Y[31]=function(a){re(a,3,x(a,H(a,0)));G(a,2)};Z[31]=function(a){re(a,3,y(a,H(a,0))&65535);G(a,4)};X[32]=function(a){D(a);uf(a,vg(a,tf(a),Bf(a)))};Y[33]=function(a){D(a);S(a,wg(a,R(a),Df(a)))};
  Z[33]=function(a){D(a);wf(a,xg(a,vf(a),T(a)))};X[34]=function(a){D(a);Cf(a,vg(a,Bf(a),lf(a)))};Y[35]=function(a){D(a);Ff(a,wg(a,Df(a),P(a)))};Z[35]=function(a){D(a);Gf(a,xg(a,T(a),mf(a)))};X[36]=function(a){a.D[0]=vg(a,a.D[0],a.M())};Y[37]=function(a){a.i[0]=wg(a,a.i[0],a.X())};Z[37]=function(a){a.b[0]=xg(a,a.b[0],a.ga())};X[38]=function(a){xe(a,0)};
  X[39]=function(a){var b=a.D[0],c=a.fb(),d=Se(a);a.flags&=-18;if(9<(b&15)||d)a.D[0]+=6,a.flags|=16;if(153<b||c)a.D[0]+=96,a.flags|=1;a.G=a.D[0];a.U=7;a.mb=a.nb=0;a.u=196};X[40]=function(a){D(a);uf(a,gg(a,tf(a),Bf(a)))};Y[41]=function(a){D(a);S(a,hg(a,R(a),Df(a)))};Z[41]=function(a){D(a);wf(a,ig(a,vf(a),T(a)))};X[42]=function(a){D(a);Cf(a,gg(a,Bf(a),lf(a)))};Y[43]=function(a){D(a);Ff(a,hg(a,Df(a),P(a)))};Z[43]=function(a){D(a);Gf(a,ig(a,T(a),mf(a)))};X[44]=function(a){a.D[0]=gg(a,a.D[0],a.M())};
  Y[45]=function(a){a.i[0]=hg(a,a.i[0],a.X())};Z[45]=function(a){a.b[0]=ig(a,a.b[0],a.ga())};X[46]=function(a){xe(a,1)};X[47]=function(a){var b=a.D[0],c=a.fb();a.flags&=-2;9<(b&15)||Se(a)?(a.D[0]-=6,a.flags|=16,a.flags=a.flags&-2|c|6>b):a.flags&=-17;if(153<b||c)a.D[0]-=96,a.flags|=1;a.G=a.D[0];a.U=7;a.mb=a.nb=0;a.u=196};X[48]=function(a){D(a);uf(a,Bg(a,tf(a),Bf(a)))};Y[49]=function(a){D(a);S(a,Cg(a,R(a),Df(a)))};Z[49]=function(a){D(a);wf(a,Dg(a,vf(a),T(a)))};X[50]=function(a){D(a);Cf(a,Bg(a,Bf(a),lf(a)))};
  Y[51]=function(a){D(a);Ff(a,Cg(a,Df(a),P(a)))};Z[51]=function(a){D(a);Gf(a,Dg(a,T(a),mf(a)))};X[52]=function(a){a.D[0]=Bg(a,a.D[0],a.M())};Y[53]=function(a){a.i[0]=Cg(a,a.i[0],a.X())};Z[53]=function(a){a.b[0]=Dg(a,a.b[0],a.ga())};X[54]=function(a){xe(a,2)};X[55]=function(a){9<(a.D[0]&15)||Se(a)?(a.i[0]+=6,a.D[1]+=1,a.flags|=17):a.flags&=-18;a.D[0]&=15;a.u&=-18};X[56]=function(a){D(a);var b=lf(a);a.sub(b,Bf(a),7)};Y[57]=function(a){D(a);var b=P(a);a.sub(b,Df(a),15)};
  Z[57]=function(a){D(a);var b=mf(a);a.sub(b,T(a),31)};X[58]=function(a){D(a);var b=lf(a);a.sub(Bf(a),b,7)};Y[59]=function(a){D(a);var b=P(a);a.sub(Df(a),b,15)};Z[59]=function(a){D(a);var b=mf(a);a.sub(T(a),b,31)};X[60]=function(a){var b=a.M();a.sub(a.D[0],b,7)};Y[61]=function(a){var b=a.X();a.sub(a.i[0],b,15)};Z[61]=function(a){var b=a.ga();a.sub(a.b[0],b,31)};X[62]=function(a){xe(a,3)};X[63]=function(a){9<(a.D[0]&15)||Se(a)?(a.i[0]-=6,--a.D[1],a.flags|=17):a.flags&=-18;a.D[0]&=15;a.u&=-18};
  Y[64]=function(a){a.i[0]=ng(a,a.i[0],15)};Z[64]=function(a){a.b[0]=ng(a,a.b[0],31)};Y[65]=function(a){a.i[2]=ng(a,a.i[2],15)};Z[65]=function(a){a.b[1]=ng(a,a.b[1],31)};Y[66]=function(a){a.i[4]=ng(a,a.i[4],15)};Z[66]=function(a){a.b[2]=ng(a,a.b[2],31)};Y[67]=function(a){a.i[6]=ng(a,a.i[6],15)};Z[67]=function(a){a.b[3]=ng(a,a.b[3],31)};Y[68]=function(a){a.i[8]=ng(a,a.i[8],15)};Z[68]=function(a){a.b[4]=ng(a,a.b[4],31)};Y[69]=function(a){a.i[10]=ng(a,a.i[10],15)};
  Z[69]=function(a){a.b[5]=ng(a,a.b[5],31)};Y[70]=function(a){a.i[12]=ng(a,a.i[12],15)};Z[70]=function(a){a.b[6]=ng(a,a.b[6],31)};Y[71]=function(a){a.i[14]=ng(a,a.i[14],15)};Z[71]=function(a){a.b[7]=ng(a,a.b[7],31)};Y[72]=function(a){a.i[0]=og(a,a.i[0],15)};Z[72]=function(a){a.b[0]=og(a,a.b[0],31)};Y[73]=function(a){a.i[2]=og(a,a.i[2],15)};Z[73]=function(a){a.b[1]=og(a,a.b[1],31)};Y[74]=function(a){a.i[4]=og(a,a.i[4],15)};Z[74]=function(a){a.b[2]=og(a,a.b[2],31)};
  Y[75]=function(a){a.i[6]=og(a,a.i[6],15)};Z[75]=function(a){a.b[3]=og(a,a.b[3],31)};Y[76]=function(a){a.i[8]=og(a,a.i[8],15)};Z[76]=function(a){a.b[4]=og(a,a.b[4],31)};Y[77]=function(a){a.i[10]=og(a,a.i[10],15)};Z[77]=function(a){a.b[5]=og(a,a.b[5],31)};Y[78]=function(a){a.i[12]=og(a,a.i[12],15)};Z[78]=function(a){a.b[6]=og(a,a.b[6],31)};Y[79]=function(a){a.i[14]=og(a,a.i[14],15)};Z[79]=function(a){a.b[7]=og(a,a.b[7],31)};Y[80]=function(a){J(a,a.i[0])};Z[80]=function(a){L(a,a.b[0])};
  Y[81]=function(a){J(a,a.i[2])};Z[81]=function(a){L(a,a.b[1])};Y[82]=function(a){J(a,a.i[4])};Z[82]=function(a){L(a,a.b[2])};Y[83]=function(a){J(a,a.i[6])};Z[83]=function(a){L(a,a.b[3])};Y[84]=function(a){J(a,a.i[8])};Z[84]=function(a){L(a,a.b[4])};Y[85]=function(a){J(a,a.i[10])};Z[85]=function(a){L(a,a.b[5])};Y[86]=function(a){J(a,a.i[12])};Z[86]=function(a){L(a,a.b[6])};Y[87]=function(a){J(a,a.i[14])};Z[87]=function(a){L(a,a.b[7])};Y[88]=function(a){a.i[0]=Ch(a)};Z[88]=function(a){a.b[0]=Dh(a)};
  Y[89]=function(a){a.i[2]=Ch(a)};Z[89]=function(a){a.b[1]=Dh(a)};Y[90]=function(a){a.i[4]=Ch(a)};Z[90]=function(a){a.b[2]=Dh(a)};Y[91]=function(a){a.i[6]=Ch(a)};Z[91]=function(a){a.b[3]=Dh(a)};Y[92]=function(a){a.i[8]=Ch(a)};Z[92]=function(a){a.b[4]=Dh(a)};Y[93]=function(a){a.i[10]=Ch(a)};Z[93]=function(a){a.b[5]=Dh(a)};Y[94]=function(a){a.i[12]=Ch(a)};Z[94]=function(a){a.b[6]=Dh(a)};Y[95]=function(a){a.i[14]=Ch(a)};Z[95]=function(a){a.b[7]=Dh(a)};
  Y[96]=function(a){var b=a.i[8];Nb(a,H(a,-16),16);J(a,a.i[0]);J(a,a.i[2]);J(a,a.i[4]);J(a,a.i[6]);J(a,b);J(a,a.i[10]);J(a,a.i[12]);J(a,a.i[14])};Z[96]=function(a){var b=a.b[4];Nb(a,H(a,-32),32);L(a,a.b[0]);L(a,a.b[1]);L(a,a.b[2]);L(a,a.b[3]);L(a,b);L(a,a.b[5]);L(a,a.b[6]);L(a,a.b[7])};Y[97]=function(a){Be(a,H(a,0));Be(a,H(a,15));a.i[14]=Ch(a);a.i[12]=Ch(a);a.i[10]=Ch(a);G(a,2);a.i[6]=Ch(a);a.i[4]=Ch(a);a.i[2]=Ch(a);a.i[0]=Ch(a)};
  Z[97]=function(a){Be(a,H(a,0));Be(a,H(a,31));a.b[7]=Dh(a);a.b[6]=Dh(a);a.b[5]=Dh(a);G(a,4);a.b[3]=Dh(a);a.b[2]=Dh(a);a.b[1]=Dh(a);a.b[0]=Dh(a)};X[98]=function(){};X[99]=function(a){D(a);if(a.va&&!Qe(a)){var b=R(a);var c=a.f>>2&14;a.u&=-65;(b&3)<(a.i[c]&3)?(a.flags|=64,b=b&-4|a.i[c]&3):a.flags&=-65;S(a,b)}else t(a)};X[100]=function(a){xe(a,4)};X[101]=function(a){xe(a,5)};X[102]=function(a){a.I|=32;ye(a);a.I=0};X[103]=function(a){a.I|=64;ye(a);a.I=0};Y[104]=function(a){J(a,a.X())};
  Z[104]=function(a){L(a,a.ga())};Y[105]=function(a){D(a);Ff(a,qg(a,P(a)<<16>>16,a.X()<<16>>16))};Z[105]=function(a){D(a);Gf(a,tg(a,mf(a),a.ga()))};Y[106]=function(a){J(a,a.ya())};Z[106]=function(a){L(a,a.ya())};Y[107]=function(a){D(a);Ff(a,qg(a,P(a)<<16>>16,a.ya()))};Z[107]=function(a){D(a);Gf(a,tg(a,mf(a),a.ya()))};
  X[108]=function(a){var b=a.i[4];Lf(a,b,1);var c=B(a,0)+V(a,7)|0,d=a.flags&1024?-1:1;if(a.I&24){var e=V(a,1)>>>0;if(0!==e){var f=e,h=4096,g=Ke(a,c);a.Y&&(h=Sf(d,c));do a.Ba(g,fb(a.o,b)),g+=d,c=0!==--e;while(c&&h--);W(a,7,d*(f-e)|0);Qf(a,e);a.$+=f-e;c&&(a.B=a.ia)}}else Nb(a,c,1),Je(a,c,fb(a.o,b)),W(a,7,d)};
  Y[109]=function(a){var b=a.i[4];Lf(a,b,2);var c=B(a,0)+V(a,7)|0,d=a.flags&1024?-2:2;if(a.I&24){var e=V(a,1)>>>0;if(0!==e){var f=e,h=4096;if(c&1){do{u(a,c,gb(a.o,b));c+=d;W(a,7,d);var g=0!==Rf(a)}while(g&&h--)}else{var p=0>d?-1:1,r=Ke(a,c)>>>1;a.Y&&(h=Sf(d,c));do Mc(a,r,gb(a.o,b)),r+=p,g=0!==--e;while(g&&h--);W(a,7,d*(f-e)|0);Qf(a,e);a.$+=f-e}g&&(a.B=a.ia)}}else Nb(a,c,2),u(a,c,gb(a.o,b)),W(a,7,d)};
  Z[109]=function(a){var b=a.i[4];Lf(a,b,4);var c=B(a,0)+V(a,7)|0,d=a.flags&1024?-4:4;if(a.I&24){var e=V(a,1)>>>0;if(0!==e){var f=e,h=4096;if(c&3){do{w(a,c,hb(a.o,b));c+=d;W(a,7,d);var g=0!==Rf(a)}while(g&&h--)}else{var p=0>d?-1:1,r=Ke(a,c)>>>2;a.Y&&(h=Sf(d,c));do Pc(a,r,hb(a.o,b)),r+=p,g=0!==--e;while(g&&h--);W(a,7,d*(f-e)|0);Qf(a,e);a.$+=f-e}g&&(a.B=a.ia)}}else Nb(a,c,4),w(a,c,hb(a.o,b)),W(a,7,d)};
  X[110]=function(a){var b=a.i[4];Lf(a,b,1);var c=Oe(a,3)+V(a,6)|0,d=a.flags&1024?-1:1;if(a.I&24){var e=V(a,1)>>>0;if(0!==e){var f=e,h=4096,g=Be(a,c);a.Y&&(h=Sf(d,c));do cb(a.o,b,a.na(g)),g+=d,c=0!==--e;while(c&&h--);W(a,6,d*(f-e)|0);Qf(a,e);a.$+=f-e;c&&(a.B=a.ia)}}else cb(a.o,b,He(a,c)),W(a,6,d)};
  Y[111]=function(a){var b=a.i[4];Lf(a,b,2);var c=Oe(a,3)+V(a,6)|0,d=a.flags&1024?-2:2;if(a.I&24){var e=V(a,1)>>>0;if(0!==e){var f=e,h=4096;if(c&1){do{db(a.o,b,x(a,c));c+=d;W(a,6,d);var g=0!==Rf(a)}while(g&&h--)}else{var p=0>d?-1:1,r=Be(a,c)>>>1;a.Y&&(h=Sf(d,c));do db(a.o,b,Kc(a,r)),r+=p,g=0!==--e;while(g&&h--);W(a,6,d*(f-e)|0);Qf(a,e);a.$+=f-e}g&&(a.B=a.ia)}}else db(a.o,b,x(a,c)),W(a,6,d)};
  Z[111]=function(a){var b=a.i[4];Lf(a,b,4);var c=Oe(a,3)+V(a,6)|0,d=a.flags&1024?-4:4;if(a.I&24){var e=V(a,1)>>>0;if(0!==e){var f=e,h=4096;if(c&3){do{eb(a.o,b,y(a,c));c+=d;W(a,6,d);var g=0!==Rf(a)}while(g&&h--)}else{var p=0>d?-1:1,r=Be(a,c)>>>2;a.Y&&(h=Sf(d,c));do eb(a.o,b,Lc(a,r)),r+=p,g=0!==--e;while(g&&h--);W(a,6,d*(f-e)|0);Qf(a,e);a.$+=f-e}g&&(a.B=a.ia)}}else eb(a.o,b,y(a,c)),W(a,6,d)};X[112]=function(a){sh(a,a.Ub())};X[113]=function(a){sh(a,!a.Ub())};X[114]=function(a){sh(a,a.Cb())};
  X[115]=function(a){sh(a,!a.Cb())};X[116]=function(a){sh(a,a.Eb())};X[117]=function(a){sh(a,!a.Eb())};X[118]=function(a){sh(a,zh(a))};X[119]=function(a){sh(a,!zh(a))};X[120]=function(a){sh(a,a.Vb())};X[121]=function(a){sh(a,!a.Vb())};X[122]=function(a){sh(a,a.Db())};X[123]=function(a){sh(a,!a.Db())};X[124]=function(a){sh(a,Ah(a))};X[125]=function(a){sh(a,!Ah(a))};X[126]=function(a){sh(a,Bh(a))};X[127]=function(a){sh(a,!Bh(a))};
  X[128]=function(a){D(a);switch(a.f>>3&7){case 0:uf(a,Uf(a,tf(a),a.M()));break;case 1:uf(a,yg(a,tf(a),a.M()));break;case 2:uf(a,Xf(a,tf(a),a.M()));break;case 3:uf(a,jg(a,tf(a),a.M()));break;case 4:uf(a,vg(a,tf(a),a.M()));break;case 5:uf(a,gg(a,tf(a),a.M()));break;case 6:uf(a,Bg(a,tf(a),a.M()));break;case 7:var b=lf(a),c=a.M();a.sub(b,c,7)}};
  Y[129]=function(a){D(a);switch(a.f>>3&7){case 0:S(a,Vf(a,R(a),a.X()));break;case 1:S(a,zg(a,R(a),a.X()));break;case 2:S(a,eg(a,R(a),a.X()));break;case 3:S(a,lg(a,R(a),a.X()));break;case 4:S(a,wg(a,R(a),a.X()));break;case 5:S(a,hg(a,R(a),a.X()));break;case 6:S(a,Cg(a,R(a),a.X()));break;case 7:var b=P(a),c=a.X();a.sub(b,c,15)}};
  Z[129]=function(a){D(a);switch(a.f>>3&7){case 0:wf(a,Wf(a,vf(a),a.ga()));break;case 1:wf(a,Ag(a,vf(a),a.ga()));break;case 2:wf(a,fg(a,vf(a),a.ga()));break;case 3:wf(a,mg(a,vf(a),a.ga()));break;case 4:wf(a,xg(a,vf(a),a.ga()));break;case 5:wf(a,ig(a,vf(a),a.ga()));break;case 6:wf(a,Dg(a,vf(a),a.ga()));break;case 7:var b=mf(a),c=a.ga();a.sub(b,c,31)}};X[130]=X[128];
  Y[131]=function(a){D(a);switch(a.f>>3&7){case 0:S(a,Vf(a,R(a),a.ya()));break;case 1:S(a,zg(a,R(a),a.ya()));break;case 2:S(a,eg(a,R(a),a.ya()));break;case 3:S(a,lg(a,R(a),a.ya()));break;case 4:S(a,wg(a,R(a),a.ya()));break;case 5:S(a,hg(a,R(a),a.ya()));break;case 6:S(a,Cg(a,R(a),a.ya()));break;case 7:var b=P(a),c=a.ya();a.sub(b,c,15)}};
  Z[131]=function(a){D(a);switch(a.f>>3&7){case 0:wf(a,Wf(a,vf(a),a.ya()));break;case 1:wf(a,Ag(a,vf(a),a.ya()));break;case 2:wf(a,fg(a,vf(a),a.ya()));break;case 3:wf(a,mg(a,vf(a),a.ya()));break;case 4:wf(a,xg(a,vf(a),a.ya()));break;case 5:wf(a,ig(a,vf(a),a.ya()));break;case 6:wf(a,Dg(a,vf(a),a.ya()));break;case 7:var b=mf(a),c=a.ya();a.sub(b,c,31)}};X[132]=function(a){D(a);var b=lf(a);a.and(b,Bf(a),7)};Y[133]=function(a){D(a);var b=P(a);a.and(b,Df(a),15)};
  Z[133]=function(a){D(a);var b=mf(a);a.and(b,T(a),31)};X[134]=function(a){D(a);var b=tf(a),c=a.f;c=c>>1&12|c>>5&1;var d=a.D[c];a.D[c]=b;uf(a,d)};Y[135]=function(a){D(a);var b=R(a),c=a.f>>2&14,d=a.i[c];a.i[c]=b;S(a,d)};Z[135]=function(a){D(a);var b=vf(a),c=a.f>>3&7,d=a.b[c];a.b[c]=b;wf(a,d)};X[136]=function(a){D(a);qf(a,Bf(a))};Y[137]=function(a){D(a);rf(a,Df(a))};Z[137]=function(a){D(a);sf(a,T(a))};X[138]=function(a){D(a);var b=lf(a);Cf(a,b)};Y[139]=function(a){D(a);var b=P(a);Ff(a,b)};
  Z[139]=function(a){D(a);var b=mf(a);Gf(a,b)};Y[140]=function(a){D(a);rf(a,a.N[a.f>>3&7])};Z[140]=function(a){D(a);sf(a,a.N[a.f>>3&7])};Y[141]=function(a){D(a);192<=a.f&&t(a);var b=a.f>>3&7;a.I|=7;a.i[b<<1]=F(a,a.f);a.I=0};Z[141]=function(a){D(a);192<=a.f&&t(a);var b=a.f>>3&7;a.I|=7;a.b[b]=F(a,a.f);a.I=0};X[142]=function(a){D(a);var b=a.f>>3&7,c=P(a);re(a,b,c);2===b&&(a.I=0,we(a))};Y[143]=function(a){D(a);var b=x(a,H(a,0));G(a,2);if(192>a.f){var c=F(a,a.f);G(a,-2);u(a,c,b);G(a,2)}else yf(a,b)};
  Z[143]=function(a){D(a);var b=y(a,H(a,0));G(a,4);if(192>a.f){var c=F(a,a.f);G(a,-4);w(a,c,b);G(a,4)}else Af(a,b)};X[144]=function(){};Y[145]=function(a){Eh(a,2)};Z[145]=function(a){Fh(a,1)};Y[146]=function(a){Eh(a,4)};Z[146]=function(a){Fh(a,2)};Y[147]=function(a){Eh(a,6)};Z[147]=function(a){Fh(a,3)};Y[148]=function(a){Eh(a,8)};Z[148]=function(a){Fh(a,4)};Y[149]=function(a){Eh(a,10)};Z[149]=function(a){Fh(a,5)};Y[150]=function(a){Eh(a,12)};Z[150]=function(a){Fh(a,6)};Y[151]=function(a){Eh(a,14)};
  Z[151]=function(a){Fh(a,7)};Y[152]=function(a){a.i[0]=a.wg[0]};Z[152]=function(a){a.b[0]=a.ze[0]};Y[153]=function(a){a.i[4]=a.ze[0]>>15};Z[153]=function(a){a.b[2]=a.b[0]>>31};Y[154]=function(a){var b=a.X(),c=a.Mb();gf(a,b,c,!0);Ee(a)||We(a)};Z[154]=function(a){var b=a.ga(),c=a.Mb();if((!a.va||Qe(a))&&b&4294901760)throw a.debug.R("#GP handler");gf(a,b,c,!0);Ee(a)||We(a)};X[155]=function(a){10===(a.K[0]&10)&&jf(a)};Y[156]=function(a){a.flags&131072&&3>Pe(a)?I(a,0):J(a,Re(a))};
  Z[156]=function(a){a.flags&131072&&3>Pe(a)?I(a,0):L(a,Re(a)&16580607)};Y[157]=function(a){a.flags&131072&&3>Pe(a)&&I(a,0);Te(a,a.flags&-65536|Ch(a));a.flags&256?a.flags&=-257:lb(a)};Z[157]=function(a){a.flags&131072&&3>Pe(a)&&I(a,0);Te(a,Dh(a));lb(a)};X[158]=function(a){a.flags=a.flags&-256|a.D[1];a.flags=a.flags&4161493|2;a.u=0};X[159]=function(a){a.D[1]=Re(a)};X[160]=function(a){var b=He(a,Ne(a));a.D[0]=b};Y[161]=function(a){var b=x(a,Ne(a));a.i[0]=b};
  Z[161]=function(a){var b=y(a,Ne(a));a.b[0]=b};X[162]=function(a){Je(a,Ne(a),a.D[0])};Y[163]=function(a){u(a,Ne(a),a.i[0])};Z[163]=function(a){w(a,Ne(a),a.b[0])};X[164]=function(a){var b=Oe(a,3)+V(a,6)|0,c=B(a,0)+V(a,7)|0,d=a.flags&1024?-1:1;if(a.I&24){var e=V(a,1)>>>0;if(0!==e){var f=e,h=4096,g=Be(a,b),p=Ke(a,c);a.Y&&(h=Tf(d,b,c));do a.Ba(p,a.na(g)),p+=d,g+=d,b=0!==--e;while(b&&h--);d=d*(f-e)|0;W(a,7,d);W(a,6,d);Qf(a,e);a.$+=f-e;b&&(a.B=a.ia)}}else Je(a,c,He(a,b)),W(a,7,d),W(a,6,d)};
  Y[165]=function(a){var b=Oe(a,3)+V(a,6)|0,c=B(a,0)+V(a,7)|0,d=a.flags&1024?-2:2;if(a.I&24){var e=V(a,1)>>>0;if(0!==e){var f=e,h=4096;if(c&1||b&1){do{u(a,c,x(a,b));c+=d;W(a,7,d);b+=d;W(a,6,d);var g=0!==Rf(a)}while(g&&h--)}else{var p=0>d?-1:1,r=Be(a,b)>>>1,v=Ke(a,c)>>>1;a.Y&&(h=Tf(d,b,c));do Mc(a,v,Kc(a,r)),v+=p,r+=p,g=0!==--e;while(g&&h--);b=d*(f-e)|0;W(a,7,b);W(a,6,b);Qf(a,e);a.$+=f-e}g&&(a.B=a.ia)}}else u(a,c,x(a,b)),W(a,7,d),W(a,6,d)};
  Z[165]=function(a){a:{if(a.I&24){var b=Oe(a,3)+V(a,6)|0,c=B(a,0)+V(a,7)|0,d=V(a,1)>>>0;if(!d)break a;var e=a.Y?4095:3;if(0===(c&e)&&0===(b&e)&&0===(a.flags&1024)&&(e=!1,a.Y&&(b=Be(a,b),c=Ke(a,c),1024<d&&(d=1024,e=!0)),!ab(a.o,b,d)&&!ab(a.o,c,d))){var f=d<<2;W(a,1,-d);W(a,7,f);W(a,6,f);b>>>=2;a.Dc.set(a.Dc.subarray(b,b+d),c>>>2);e&&(a.B=a.ia);break a}}b=Oe(a,3)+V(a,6)|0;c=B(a,0)+V(a,7)|0;f=a.flags&1024?-4:4;if(a.I&24){if(d=V(a,1)>>>0,0!==d){var h=d,g=4096;if(c&3||b&3){do w(a,c,y(a,b)),c+=f,W(a,7,f),
  b+=f,W(a,6,f),e=0!==Rf(a);while(e&&g--)}else{var p=0>f?-1:1,r=Be(a,b)>>>2,v=Ke(a,c)>>>2;a.Y&&(g=Tf(f,b,c));do Pc(a,v,Lc(a,r)),v+=p,r+=p,e=0!==--d;while(e&&g--);f=f*(h-d)|0;W(a,7,f);W(a,6,f);Qf(a,d);a.$+=h-d}e&&(a.B=a.ia)}}else w(a,c,y(a,b)),W(a,7,f),W(a,6,f)}};
  X[166]=function(a){a:{var b=Oe(a,3)+V(a,6)|0,c=B(a,0)+V(a,7)|0,d=a.flags&1024?-1:1;if(a.I&24){var e=V(a,1)>>>0;if(0===e)break a;var f=e,h=8===(a.I&24),g=4096,p=Be(a,b),r=Be(a,c);a.Y&&(g=Tf(d,b,c));do{c=a.na(r);b=a.na(p);r+=d;p+=d;var v=0!==--e&&b===c===h}while(v&&g--);d=d*(f-e)|0;W(a,7,d);W(a,6,d);Qf(a,e);a.$+=f-e;v&&(a.B=a.ia)}else b=He(a,b),c=He(a,c),W(a,7,d),W(a,6,d);a.sub(b,c,7)}};
  Y[167]=function(a){a:{var b=Oe(a,3)+V(a,6)|0,c=B(a,0)+V(a,7)|0,d=a.flags&1024?-2:2;if(a.I&24){var e=V(a,1)>>>0;if(0===e)break a;var f=e,h=8===(a.I&24),g=4096;if(c&1||b&1){do{var p=x(a,c);var r=x(a,b);c+=d;W(a,7,d);b+=d;W(a,6,d);var v=0!==Rf(a)&&r===p===h}while(v&&g--)}else{var E=0>d?-1:1,z=Be(a,b)>>>1,C=Be(a,c)>>>1;a.Y&&(g=Tf(d,b,c));do p=Kc(a,C),r=Kc(a,z),C+=E,z+=E,v=0!==--e&&r===p===h;while(v&&g--);b=d*(f-e)|0;W(a,7,b);W(a,6,b);Qf(a,e);a.$+=f-e}v&&(a.B=a.ia)}else p=x(a,c),r=x(a,b),W(a,7,d),W(a,
  6,d);a.sub(r,p,15)}};
  Z[167]=function(a){a:{var b=Oe(a,3)+V(a,6)|0,c=B(a,0)+V(a,7)|0,d=a.flags&1024?-4:4;if(a.I&24){var e=V(a,1)>>>0;if(0===e)break a;var f=e,h=8===(a.I&24),g=4096;if(c&3||b&3){do{var p=y(a,c);var r=y(a,b);c+=d;W(a,7,d);b+=d;W(a,6,d);var v=0!==Rf(a)&&r===p===h}while(v&&g--)}else{var E=0>d?-1:1,z=Be(a,b)>>>2,C=Be(a,c)>>>2;a.Y&&(g=Tf(d,b,c));do p=Lc(a,C),r=Lc(a,z),C+=E,z+=E,v=0!==--e&&r===p===h;while(v&&g--);b=d*(f-e)|0;W(a,7,b);W(a,6,b);Qf(a,e);a.$+=f-e}v&&(a.B=a.ia)}else p=y(a,c),r=y(a,b),W(a,7,d),W(a,
  6,d);a.sub(r,p,31)}};X[168]=function(a){var b=a.M();a.and(a.D[0],b,7)};Y[169]=function(a){var b=a.X();a.and(a.i[0],b,15)};Z[169]=function(a){var b=a.ga();a.and(a.b[0],b,31)};X[170]=function(a){var b=a.D[0],c=B(a,0)+V(a,7)|0,d=a.flags&1024?-1:1;if(a.I&24){var e=V(a,1)>>>0;if(0!==e){var f=e,h=4096,g=Ke(a,c);a.Y&&(h=Sf(d,c));do a.Ba(g,b),g+=d,c=0!==--e;while(c&&h--);W(a,7,d*(f-e)|0);Qf(a,e);a.$+=f-e;c&&(a.B=a.ia)}}else Je(a,c,b),W(a,7,d)};
  Y[171]=function(a){var b=a.i[0],c=B(a,0)+V(a,7)|0,d=a.flags&1024?-2:2;if(a.I&24){var e=V(a,1)>>>0;if(0!==e){var f=e,h=4096;if(c&1){do{u(a,c,b);c+=d;W(a,7,d);var g=0!==Rf(a)}while(g&&h--)}else{var p=0>d?-1:1,r=Ke(a,c)>>>1;a.Y&&(h=Sf(d,c));do Mc(a,r,b),r+=p,g=0!==--e;while(g&&h--);W(a,7,d*(f-e)|0);Qf(a,e);a.$+=f-e}g&&(a.B=a.ia)}}else u(a,c,b),W(a,7,d)};
  Z[171]=function(a){var b=a.b[0],c=B(a,0)+V(a,7)|0,d=a.flags&1024?-4:4;if(a.I&24){var e=V(a,1)>>>0;if(0!==e){var f=e,h=4096;if(c&3){do{w(a,c,b);c+=d;W(a,7,d);var g=0!==Rf(a)}while(g&&h--)}else{var p=0>d?-1:1,r=Ke(a,c)>>>2;a.Y&&(h=Sf(d,c));do Pc(a,r,b),r+=p,g=0!==--e;while(g&&h--);W(a,7,d*(f-e)|0);Qf(a,e);a.$+=f-e}g&&(a.B=a.ia)}}else w(a,c,b),W(a,7,d)};
  X[172]=function(a){var b=Oe(a,3)+V(a,6)|0,c=a.flags&1024?-1:1;if(a.I&24){var d=V(a,1)>>>0;if(0!==d){var e=d,f=4096,h=Be(a,b);a.Y&&(f=Sf(c,b));do a.D[0]=a.na(h),h+=c,b=0!==--d;while(b&&f--);W(a,6,c*(e-d)|0);Qf(a,d);a.$+=e-d;b&&(a.B=a.ia)}}else a.D[0]=He(a,b),W(a,6,c)};Y[173]=function(a){var b=Oe(a,3)+V(a,6)|0,c=a.flags&1024?-2:2;if(a.I&24){if(0!==V(a,1)>>>0){var d=4096;do{a.i[0]=x(a,b);b+=c;W(a,6,c);var e=0!==Rf(a)}while(e&&d--);e&&(a.B=a.ia)}}else a.i[0]=x(a,b),W(a,6,c)};
  Z[173]=function(a){var b=Oe(a,3)+V(a,6)|0,c=a.flags&1024?-4:4;if(a.I&24){if(0!==V(a,1)>>>0){var d=4096;do{a.b[0]=y(a,b);b+=c;W(a,6,c);var e=0!==Rf(a)}while(e&&d--);e&&(a.B=a.ia)}}else a.b[0]=y(a,b),W(a,6,c)};
  X[174]=function(a){a:{var b=B(a,0)+V(a,7)|0,c=a.flags&1024?-1:1,d=a.D[0];if(a.I&24){var e=V(a,1)>>>0;if(0===e)break a;var f=e,h=8===(a.I&24),g=4096,p=Be(a,b);a.Y&&(g=Sf(c,b));do{b=a.na(p);p+=c;var r=0!==--e&&d===b===h}while(r&&g--);W(a,7,c*(f-e)|0);Qf(a,e);a.$+=f-e;r&&(a.B=a.ia)}else b=He(a,b),W(a,7,c);a.sub(d,b,7)}};
  Y[175]=function(a){a:{var b=B(a,0)+V(a,7)|0,c=a.flags&1024?-2:2,d=a.i[0];if(a.I&24){var e=V(a,1)>>>0;if(0===e)break a;var f=e,h=8===(a.I&24),g=4096;if(b&1){do{var p=x(a,b);b+=c;W(a,7,c);var r=0!==Rf(a)&&d===p===h}while(r&&g--)}else{var v=0>c?-1:1,E=Be(a,b)>>>1;a.Y&&(g=Sf(c,b));do p=Kc(a,E),E+=v,r=0!==--e&&d===p===h;while(r&&g--);W(a,7,c*(f-e)|0);Qf(a,e);a.$+=f-e}r&&(a.B=a.ia)}else p=x(a,b),W(a,7,c);a.sub(d,p,15)}};
  Z[175]=function(a){a:{var b=B(a,0)+V(a,7)|0,c=a.flags&1024?-4:4,d=a.b[0];if(a.I&24){var e=V(a,1)>>>0;if(0===e)break a;var f=e,h=8===(a.I&24),g=4096;if(b&3){do{var p=y(a,b);b+=c;W(a,7,c);var r=0!==Rf(a)&&d===p===h}while(r&&g--)}else{var v=0>c?-1:1,E=Be(a,b)>>>2;a.Y&&(g=Sf(c,b));do p=Lc(a,E),E+=v,r=0!==--e&&d===p===h;while(r&&g--);W(a,7,c*(f-e)|0);Qf(a,e);a.$+=f-e}r&&(a.B=a.ia)}else p=y(a,b),W(a,7,c);a.sub(d,p,31)}};X[176]=function(a){a.D[0]=a.M()};X[177]=function(a){a.D[4]=a.M()};
  X[178]=function(a){a.D[8]=a.M()};X[179]=function(a){a.D[12]=a.M()};X[180]=function(a){a.D[1]=a.M()};X[181]=function(a){a.D[5]=a.M()};X[182]=function(a){a.D[9]=a.M()};X[183]=function(a){a.D[13]=a.M()};Y[184]=function(a){a.i[0]=a.X()};Z[184]=function(a){a.b[0]=a.ga()};Y[185]=function(a){a.i[2]=a.X()};Z[185]=function(a){a.b[1]=a.ga()};Y[186]=function(a){a.i[4]=a.X()};Z[186]=function(a){a.b[2]=a.ga()};Y[187]=function(a){a.i[6]=a.X()};Z[187]=function(a){a.b[3]=a.ga()};Y[188]=function(a){a.i[8]=a.X()};
  Z[188]=function(a){a.b[4]=a.ga()};Y[189]=function(a){a.i[10]=a.X()};Z[189]=function(a){a.b[5]=a.ga()};Y[190]=function(a){a.i[12]=a.X()};Z[190]=function(a){a.b[6]=a.ga()};Y[191]=function(a){a.i[14]=a.X()};Z[191]=function(a){a.b[7]=a.ga()};
  X[192]=function(a){D(a);var b=tf(a),c=a.M()&31,d=0;switch(a.f>>3&7){case 0:d=Eg(a,b,c);break;case 1:d=Kg(a,b,c);break;case 2:d=Hg(a,b,c);break;case 3:d=Ng(a,b,c);break;case 4:d=Qg(a,b,c);break;case 5:d=Tg(a,b,c);break;case 6:d=Qg(a,b,c);break;case 7:d=Wg(a,b,c)}uf(a,d)};
  Y[193]=function(a){D(a);var b=R(a),c=a.M()&31,d=0;switch(a.f>>3&7){case 0:d=Fg(a,b,c);break;case 1:d=Lg(a,b,c);break;case 2:d=Ig(a,b,c);break;case 3:d=Og(a,b,c);break;case 4:d=Rg(a,b,c);break;case 5:d=Ug(a,b,c);break;case 6:d=Rg(a,b,c);break;case 7:d=Xg(a,b,c)}S(a,d)};
  Z[193]=function(a){D(a);var b=vf(a),c=a.M()&31,d=0;switch(a.f>>3&7){case 0:d=Gg(a,b,c);break;case 1:d=Mg(a,b,c);break;case 2:d=Jg(a,b,c);break;case 3:d=Pg(a,b,c);break;case 4:d=Sg(a,b,c);break;case 5:d=Vg(a,b,c);break;case 6:d=Sg(a,b,c);break;case 7:d=Yg(a,b,c)}wf(a,d)};Y[194]=function(a){var b=a.X();a.B=B(a,1)+Ch(a)|0;Ee(a)||We(a);G(a,b)};Z[194]=function(a){var b=a.X(),c=Dh(a);a.B=B(a,1)+c|0;G(a,b)};Y[195]=function(a){a.B=B(a,1)+Ch(a)|0};Z[195]=function(a){var b=Dh(a);a.B=B(a,1)+b|0};
  Y[196]=function(a){D(a);Gh(a,0)};Z[196]=function(a){D(a);Hh(a,0)};Y[197]=function(a){D(a);Gh(a,3)};Z[197]=function(a){D(a);Hh(a,3)};X[198]=function(a){D(a);192>a.f?Je(a,F(a,a.f),a.M()):a.D[a.f<<2&12|a.f>>2&1]=a.M()};Y[199]=function(a){D(a);192>a.f?u(a,F(a,a.f),a.X()):a.i[a.f<<1&14]=a.X()};Z[199]=function(a){D(a);192>a.f?w(a,F(a,a.f),a.ga()):a.b[a.f&7]=a.ga()};
  Y[200]=function(a){var b=a.X(),c=a.Ah();c&=31;J(a,a.i[10]);var d=a.i[8];if(0<c){for(var e=a.i[5],f=1;f<c;f++)e-=2,J(a,x(a,B(a,2)+e|0));J(a,d)}a.i[10]=d;G(a,-b)};Z[200]=function(a){var b=a.X(),c=a.Ah();c&=31;L(a,a.b[5]);var d=a.b[4];if(0<c){for(var e=a.b[5],f=1;f<c;f++)e-=4,L(a,y(a,B(a,2)+e|0));L(a,d)}a.b[5]=d;G(a,-b)};Y[201]=function(a){var b=a.tb?a.b[5]:a.i[10],c=x(a,B(a,2)+b|0);Ve(a,b+2|0);a.i[10]=c};Z[201]=function(a){var b=a.tb?a.b[5]:a.i[10],c=y(a,B(a,2)+b|0);Ve(a,b+4|0);a.b[5]=c};
  Y[202]=function(a){var b=a.X(),c=x(a,H(a,0)),d=x(a,H(a,2));ff(a,c,d,b)};Z[202]=function(a){var b=a.X(),c=y(a,H(a,0)),d=y(a,H(a,4))&65535;ff(a,c,d,b);Ee(a)||We(a)};Y[203]=function(a){var b=x(a,H(a,0)),c=x(a,H(a,2));ff(a,b,c,0);Ee(a)||We(a)};Z[203]=function(a){var b=y(a,H(a,0)),c=y(a,H(a,4))&65535;ff(a,b,c,0);Ee(a)||We(a)};X[204]=function(a){Xe(a,3,!0,!1)};X[205]=function(a){var b=a.M();Xe(a,b,!0,!1)};X[206]=function(a){a.We()&&Xe(a,4,!0,!1)};Y[207]=function(a){ef(a,!0)};Z[207]=function(a){ef(a,!1)};
  X[208]=function(a){D(a);var b=tf(a),c=0;switch(a.f>>3&7){case 0:c=Eg(a,b,1);break;case 1:c=Kg(a,b,1);break;case 2:c=Hg(a,b,1);break;case 3:c=Ng(a,b,1);break;case 4:c=Qg(a,b,1);break;case 5:c=Tg(a,b,1);break;case 6:c=Qg(a,b,1);break;case 7:c=Wg(a,b,1)}uf(a,c)};
  Y[209]=function(a){D(a);var b=R(a),c=0;switch(a.f>>3&7){case 0:c=Fg(a,b,1);break;case 1:c=Lg(a,b,1);break;case 2:c=Ig(a,b,1);break;case 3:c=Og(a,b,1);break;case 4:c=Rg(a,b,1);break;case 5:c=Ug(a,b,1);break;case 6:c=Rg(a,b,1);break;case 7:c=Xg(a,b,1)}S(a,c)};
  Z[209]=function(a){D(a);var b=vf(a),c=0;switch(a.f>>3&7){case 0:c=Gg(a,b,1);break;case 1:c=Mg(a,b,1);break;case 2:c=Jg(a,b,1);break;case 3:c=Pg(a,b,1);break;case 4:c=Sg(a,b,1);break;case 5:c=Vg(a,b,1);break;case 6:c=Sg(a,b,1);break;case 7:c=Yg(a,b,1)}wf(a,c)};
  X[210]=function(a){D(a);var b=tf(a),c=a.D[4]&31,d=0;switch(a.f>>3&7){case 0:d=Eg(a,b,c);break;case 1:d=Kg(a,b,c);break;case 2:d=Hg(a,b,c);break;case 3:d=Ng(a,b,c);break;case 4:d=Qg(a,b,c);break;case 5:d=Tg(a,b,c);break;case 6:d=Qg(a,b,c);break;case 7:d=Wg(a,b,c)}uf(a,d)};
  Y[211]=function(a){D(a);var b=R(a),c=a.D[4]&31,d=0;switch(a.f>>3&7){case 0:d=Fg(a,b,c);break;case 1:d=Lg(a,b,c);break;case 2:d=Ig(a,b,c);break;case 3:d=Og(a,b,c);break;case 4:d=Rg(a,b,c);break;case 5:d=Ug(a,b,c);break;case 6:d=Rg(a,b,c);break;case 7:d=Xg(a,b,c)}S(a,d)};
  Z[211]=function(a){D(a);var b=vf(a),c=a.D[4]&31,d=0;switch(a.f>>3&7){case 0:d=Gg(a,b,c);break;case 1:d=Mg(a,b,c);break;case 2:d=Jg(a,b,c);break;case 3:d=Pg(a,b,c);break;case 4:d=Sg(a,b,c);break;case 5:d=Vg(a,b,c);break;case 6:d=Sg(a,b,c);break;case 7:d=Yg(a,b,c)}wf(a,d)};X[212]=function(a){var b=a.M();if(0===b)hf(a);else{var c=a.D[0];a.D[1]=c/b;a.D[0]=c%b;a.G=a.D[0];a.u=196;a.flags&=-2066}};
  X[213]=function(a){var b=a.M();b=a.D[0]+a.D[1]*b;a.G=b&255;a.i[0]=a.G;a.U=7;a.u=196;a.flags&=-2066;65535<b&&(a.flags|=1)};X[214]=function(a){a.D[0]=-a.fb()};X[215]=function(a){a.D[0]=Ee(a)?He(a,Oe(a,3)+a.b[3]+a.D[0]|0):He(a,Oe(a,3)+(a.i[6]+a.D[0]&65535)|0)};
  X[216]=function(a){D(a);kf(a);if(192>a.f){var b=a.V,c=a.f,d=F(a,a.f);a=c>>3&7;c=Wb(b,d);d=Gb(b);switch(a){case 0:b.J[b.C]=d+c;break;case 1:b.J[b.C]=d*c;break;case 2:Fb(b,c);break;case 3:Fb(b,c);b.pop();break;case 4:b.J[b.C]=d-c;break;case 5:b.J[b.C]=c-d;break;case 6:b.J[b.C]=d/c;break;case 7:b.J[b.C]=c/d}}else switch(b=a.V,c=a.f,a=c>>3&7,c=Rb(b,c&7),d=Gb(b),a){case 0:b.J[b.C]=d+c;break;case 1:b.J[b.C]=d*c;break;case 2:Fb(b,c);break;case 3:Fb(b,c);b.pop();break;case 4:b.J[b.C]=d-c;break;case 5:b.J[b.C]=
  c-d;break;case 6:b.J[b.C]=d/c;break;case 7:b.J[b.C]=c/d}};
  X[217]=function(a){D(a);kf(a);if(192>a.f){var b=a.V,c=a.f;a=F(a,a.f);switch(c>>3&7){case 0:a=Wb(b,a);b.push(a);break;case 1:Db(b);break;case 2:c=Gb(b);b.m[0]=c;w(b.j,a,b.v[0]);break;case 3:c=Gb(b);b.m[0]=c;w(b.j,a,b.v[0]);b.pop();break;case 4:Ob(b,a);break;case 5:b.hc=x(b.j,a);break;case 6:Lb(b,a);break;case 7:u(b.j,a,b.hc)}}else switch(b=a.V,c=a.f,a=c&7,c>>3&7){case 0:c=Rb(b,a);b.push(c);break;case 1:c=Rb(b,a);b.J[b.C+a&7]=Gb(b);b.J[b.C]=c;break;case 2:switch(a){case 0:break;default:Db(b)}break;
  case 3:Db(b);break;case 4:c=Gb(b);switch(a){case 0:b.J[b.C]=-c;break;case 1:b.J[b.C]=Math.abs(c);break;case 4:a=c;b.a&=-18177;isNaN(a)?b.a|=17664:0===a?b.a|=16384:0>a&&(b.a|=256);break;case 5:a=c;b.a&=-18177;b.a|=b.sign(0)<<9;b.a=b.ha>>b.C&1?b.a|16640:isNaN(a)?b.a|256:0===a?b.a|16384:Infinity===a||-Infinity===a?b.a|1280:b.a|1024;break;default:Db(b)}break;case 5:b.push(b.F[a]);break;case 6:c=Gb(b);switch(a){case 0:b.J[b.C]=Math.pow(2,c)-1;break;case 1:b.J[b.C+1&7]=Rb(b,1)*Math.log(c)/Math.LN2;b.pop();
  break;case 2:b.J[b.C]=Math.tan(c);b.push(1);break;case 3:b.J[b.C+1&7]=Math.atan2(Rb(b,1),c);b.pop();break;case 4:b.l[0]=Gb(b);a=((b.g[7]&127)<<4|b.g[6]>>4)-1023;b.g[7]=63|b.g[7]&128;b.g[6]|=240;b.J[b.C]=a;b.push(b.l[0]);break;case 5:b.J[b.C]=c%Rb(b,1);break;case 6:b.C=b.C-1&7;b.a&=-513;break;case 7:b.C=b.C+1&7,b.a&=-513}break;case 7:switch(c=Gb(b),a){case 0:a=Rb(b,1);var d=Math.trunc(c/a);b.J[b.C]=c%a;b.a&=-17153;d&1&&(b.a|=512);d&2&&(b.a|=16384);d&4&&(b.a|=256);b.a&=-1025;break;case 1:b.J[b.C+1&
  7]=Rb(b,1)*Math.log(c+1)/Math.LN2;b.pop();break;case 2:b.J[b.C]=Math.sqrt(c);break;case 3:b.J[b.C]=Math.sin(c);b.push(Math.cos(c));break;case 4:b.J[b.C]=Pb(b,c);break;case 5:b.J[b.C]=c*Math.pow(2,Qb(Rb(b,1)));break;case 6:b.J[b.C]=Math.sin(c);break;case 7:b.J[b.C]=Math.cos(c)}}};
  X[218]=function(a){D(a);kf(a);if(192>a.f){var b=a.V,c=a.f,d=F(a,a.f);a=c>>3&7;c=y(b.j,d);d=Gb(b);switch(a){case 0:b.J[b.C]=d+c;break;case 1:b.J[b.C]=d*c;break;case 2:Fb(b,c);break;case 3:Fb(b,c);b.pop();break;case 4:b.J[b.C]=d-c;break;case 5:b.J[b.C]=c-d;break;case 6:b.J[b.C]=d/c;break;case 7:b.J[b.C]=c/d}}else switch(b=a.V,a=a.f,c=a&7,a>>3&7){case 0:b.j.Cb()&&(b.J[b.C]=Rb(b,c),b.ha&=~(1<<b.C));break;case 1:b.j.Eb()&&(b.J[b.C]=Rb(b,c),b.ha&=~(1<<b.C));break;case 2:zh(b.j)&&(b.J[b.C]=Rb(b,c),b.ha&=
  ~(1<<b.C));break;case 3:b.j.Db()&&(b.J[b.C]=Rb(b,c),b.ha&=~(1<<b.C));break;case 5:1===c?(a=Rb(b,1),Fb(b,a),b.pop(),b.pop()):Db(b);break;default:Db(b)}};
  X[219]=function(a){D(a);kf(a);if(192>a.f){var b=a.V,c=a.f;a=F(a,a.f);switch(c>>3&7){case 0:a=y(b.j,a);b.push(a);break;case 2:c=Pb(b,Gb(b));2147483647>=c&&-2147483648<=c?w(b.j,a,c):(Eb(b),w(b.j,a,-2147483648));break;case 3:c=Pb(b,Gb(b));2147483647>=c&&-2147483648<=c?w(b.j,a,c):(Eb(b),w(b.j,a,-2147483648));b.pop();break;case 5:b.push(Sb(b,a));break;case 7:Nb(b.j,a,10);Tb(b,a,Gb(b));b.pop();break;default:Db(b)}}else switch(b=a.V,a=a.f,c=a&7,a>>3&7){case 0:b.j.Cb()||(b.J[b.C]=Rb(b,c),b.ha&=~(1<<b.C));
  break;case 1:b.j.Eb()||(b.J[b.C]=Rb(b,c),b.ha&=~(1<<b.C));break;case 2:zh(b.j)||(b.J[b.C]=Rb(b,c),b.ha&=~(1<<b.C));break;case 3:b.j.Db()||(b.J[b.C]=Rb(b,c),b.ha&=~(1<<b.C));break;case 4:227===a?Jb(b):228!==a&&225!==a&&(226===a?b.a=0:Db(b));break;case 5:a=Rb(b,c);Hb(b,a);break;case 6:Hb(b,Rb(b,c));break;default:Db(b)}};
  X[220]=function(a){D(a);kf(a);if(192>a.f){var b=a.V,c=a.f,d=F(a,a.f);a=c>>3&7;c=Ub(b,d);d=Gb(b);switch(a){case 0:b.J[b.C]=d+c;break;case 1:b.J[b.C]=d*c;break;case 2:Fb(b,c);break;case 3:Fb(b,c);b.pop();break;case 4:b.J[b.C]=d-c;break;case 5:b.J[b.C]=c-d;break;case 6:b.J[b.C]=d/c;break;case 7:b.J[b.C]=c/d}}else{b=a.V;c=a.f;a=c>>3&7;d=c&7;c=b.C+d&7;d=Rb(b,d);var e=Gb(b);switch(a){case 0:b.J[c]=d+e;break;case 1:b.J[c]=d*e;break;case 2:Fb(b,d);break;case 3:Fb(b,d);b.pop();break;case 4:b.J[c]=e-d;break;
  case 5:b.J[c]=d-e;break;case 6:b.J[c]=e/d;break;case 7:b.J[c]=d/e}}};
  X[221]=function(a){D(a);kf(a);if(192>a.f){var b=a.V,c=a.f;a=F(a,a.f);switch(c>>3&7){case 0:a=Ub(b,a);b.push(a);break;case 1:Db(b);break;case 2:Vb(b,a);break;case 3:Vb(b,a);b.pop();break;case 4:Ob(b,a);a+=28;for(c=0;8>c;c++)b.J[c+b.C&7]=Sb(b,a),a+=10;break;case 5:Db(b);break;case 6:Nb(b.j,a,108);Lb(b,a);a+=28;for(c=0;8>c;c++)Tb(b,a,b.J[b.C+c&7]),a+=10;Jb(b);break;case 7:u(b.j,a,Kb(b))}}else switch(b=a.V,a=a.f,c=a&7,a>>3&7){case 0:b.ha|=1<<(b.C+c&7);break;case 2:b.J[b.C+c&7]=Gb(b);break;case 3:0!==
  c&&(b.J[b.C+c&7]=Gb(b));b.pop();break;case 4:a=Rb(b,c);Fb(b,a);break;case 5:a=Rb(b,c);Fb(b,a);b.pop();break;default:Db(b)}};
  X[222]=function(a){D(a);kf(a);if(192>a.f){var b=a.V,c=a.f,d=F(a,a.f);a=c>>3&7;c=x(b.j,d)<<16>>16;d=Gb(b);switch(a){case 0:b.J[b.C]=d+c;break;case 1:b.J[b.C]=d*c;break;case 2:Fb(b,c);break;case 3:Fb(b,c);b.pop();break;case 4:b.J[b.C]=d-c;break;case 5:b.J[b.C]=c-d;break;case 6:b.J[b.C]=d/c;break;case 7:b.J[b.C]=c/d}}else{b=a.V;c=a.f;a=c>>3&7;c&=7;d=b.C+c&7;var e=Rb(b,c),f=Gb(b);switch(a){case 0:b.J[d]=e+f;break;case 1:b.J[d]=e*f;break;case 2:Fb(b,e);break;case 3:1===c?(Fb(b,b.J[d]),b.pop()):Db(b);break;
  case 4:b.J[d]=f-e;break;case 5:b.J[d]=e-f;break;case 6:b.J[d]=f/e;break;case 7:b.J[d]=e/f}b.pop()}};
  X[223]=function(a){D(a);kf(a);if(192>a.f){var b=a.V,c=a.f;a=F(a,a.f);switch(c>>3&7){case 0:a=x(b.j,a)<<16>>16;b.push(a);break;case 1:Db(b);break;case 2:c=Pb(b,Gb(b));32767>=c&&-32768<=c?u(b.j,a,c):(Eb(b),u(b.j,a,32768));break;case 3:c=Pb(b,Gb(b));32767>=c&&-32768<=c?u(b.j,a,c):(Eb(b),u(b.j,a,32768));b.pop();break;case 4:Db(b);break;case 5:c=y(b.j,a)>>>0;a=y(b.j,a+4);b.push(c+4294967296*a);break;case 6:Db(b);break;case 7:Nb(b.j,a,8);c=Pb(b,Gb(b));if(0x7fffffffffffffff>c&&-9223372036854775808<=c){var d=
  c|0;var e=c/4294967296|0;0===e&&0>c&&(e=-1)}else d=0,e=-2147483648,Eb(b);w(b.j,a,d);w(b.j,a+4,e);b.pop()}}else switch(b=a.V,a=a.f,c=a&7,a>>3&7){case 4:224===a?b.j.i[0]=Kb(b):Db(b);break;case 5:a=Rb(b,c);Hb(b,a);b.pop();break;case 6:Hb(b,Rb(b,c));b.pop();break;default:Db(b)}};X[224]=function(a){var b=a.ya();Rf(a)&&!a.Bc()&&(a.B=a.B+b|0)};X[225]=function(a){var b=a.ya();Rf(a)&&a.Bc()&&(a.B=a.B+b|0)};X[226]=function(a){a.loop(a.ya())};X[227]=function(a){var b=a.ya();0===V(a,1)&&(a.B=a.B+b|0)};
  X[228]=function(a){var b=a.M();Lf(a,b,1);a.D[0]=fb(a.o,b)};Y[229]=function(a){var b=a.M();Lf(a,b,2);a.i[0]=gb(a.o,b)};Z[229]=function(a){var b=a.M();Lf(a,b,4);a.b[0]=hb(a.o,b)};X[230]=function(a){var b=a.M();Lf(a,b,1);cb(a.o,b,a.D[0])};Y[231]=function(a){var b=a.M();Lf(a,b,2);db(a.o,b,a.i[0])};Z[231]=function(a){var b=a.M();Lf(a,b,4);eb(a.o,b,a.b[0])};Y[232]=function(a){var b=a.X();J(a,We(a));th(a,b)};Z[232]=function(a){var b=a.ga();L(a,We(a));a.B=a.B+b|0;Ee(a)||We(a)};
  Y[233]=function(a){var b=a.X();th(a,b)};Z[233]=function(a){var b=a.ga();a.B=a.B+b|0;Ee(a)||We(a)};Y[234]=function(a){var b=a.X(),c=a.Mb();gf(a,b,c,!1);Ee(a)||We(a)};Z[234]=function(a){var b=a.ga(),c=a.Mb();gf(a,b,c,!1);Ee(a)||We(a)};X[235]=function(a){var b=a.ya();a.B=a.B+b|0;Ee(a)||We(a)};X[236]=function(a){var b=a.i[4];Lf(a,b,1);a.D[0]=fb(a.o,b)};Y[237]=function(a){var b=a.i[4];Lf(a,b,2);a.i[0]=gb(a.o,b)};Z[237]=function(a){var b=a.i[4];Lf(a,b,4);a.b[0]=hb(a.o,b)};
  X[238]=function(a){var b=a.i[4];Lf(a,b,1);cb(a.o,b,a.D[0])};Y[239]=function(a){var b=a.i[4];Lf(a,b,2);db(a.o,b,a.i[0])};Z[239]=function(a){var b=a.i[4];Lf(a,b,4);eb(a.o,b,a.b[0])};X[240]=function(a){ye(a)};X[241]=function(a){throw a.debug.R("int1 instruction");};X[242]=function(a){a.I|=16;ye(a);a.I=0};X[243]=function(a){a.I|=8;ye(a);a.I=0};X[244]=function(a){a.O&&I(a,0);if(0===(a.flags&512))throw a.debug.show("cpu halted"),a.w.send("cpu-event-halt"),"HALT";a.Uc=!0;throw 233495534;};
  X[245]=function(a){a.flags=(a.flags|1)^a.fb();a.u&=-2};
  X[246]=function(a){D(a);switch(a.f>>3&7){case 0:var b=lf(a),c=a.M();a.and(b,c,7);break;case 1:b=lf(a);c=a.M();a.and(b,c,7);break;case 2:b=tf(a);uf(a,~b);break;case 3:b=tf(a);uf(a,pg(a,b,7));break;case 4:b=lf(a);b*=a.D[0];a.i[0]=b;a.G=b&255;a.U=7;a.flags=256>b?a.flags&-2050:a.flags|2049;a.u=212;break;case 5:b=lf(a)<<24>>24;b*=a.wg[0];a.i[0]=b;a.G=b&255;a.U=7;a.flags=127<b||-128>b?a.flags|2049:a.flags&-2050;a.u=212;break;case 6:b=lf(a);if(0===b)hf(a);else{c=a.i[0];var d=c/b|0;256<=d?hf(a):(a.D[0]=d,
  a.D[1]=c%b)}break;case 7:b=lf(a)<<24>>24,0===b?hf(a):(c=a.ze[0],d=c/b|0,128<=d||-129>=d?hf(a):(a.D[0]=d,a.D[1]=c%b))}};
  Y[247]=function(a){D(a);switch(a.f>>3&7){case 0:var b=P(a),c=a.X();a.and(b,c,15);break;case 1:b=P(a);c=a.X();a.and(b,c,15);break;case 2:b=R(a);S(a,~b);break;case 3:b=R(a);S(a,pg(a,b,15));break;case 4:b=P(a);b*=a.i[0];c=b>>>16;a.i[0]=b;a.i[4]=c;a.G=b&65535;a.U=15;a.flags=0===c?a.flags&-2050:a.flags|2049;a.u=212;break;case 5:b=P(a)<<16>>16;b*=a.ze[0];a.i[0]=b;a.i[4]=b>>16;a.G=b&65535;a.U=15;a.flags=32767<b||-32768>b?a.flags|2049:a.flags&-2050;a.u=212;break;case 6:b=P(a);if(0===b)hf(a);else{c=(a.i[0]|
  a.i[4]<<16)>>>0;var d=c/b|0;65536<=d||0>d?hf(a):(a.i[0]=d,a.i[4]=c%b)}break;case 7:b=P(a)<<16>>16,0===b?hf(a):(c=a.i[0]|a.i[4]<<16,d=c/b|0,32768<=d||-32769>=d?hf(a):(a.i[0]=d,a.i[4]=c%b))}};
  Z[247]=function(a){D(a);switch(a.f>>3&7){case 0:var b=mf(a),c=a.ga();a.and(b,c,31);break;case 1:b=mf(a);c=a.ga();a.and(b,c,31);break;case 2:b=vf(a);wf(a,~b);break;case 3:b=vf(a);wf(a,pg(a,b,31));break;case 4:b=mf(a)>>>0;b=rg(a,a.b[0],b);a.b[0]=b[0];a.b[2]=b[1];a.G=b[0];a.U=31;a.flags=0===b[1]?a.flags&-2050:a.flags|2049;a.u=212;break;case 5:b=mf(a);b=sg(a,a.b[0],b);a.b[0]=b[0];a.b[2]=b[1];a.G=b[0];a.U=31;a.flags=b[1]===b[0]>>31?a.flags&-2050:a.flags|2049;a.u=212;break;case 6:b=mf(a)>>>0;c=ug(a,a.Id[0],
  a.Id[2],b);b=c[0];c=c[1];4294967296<=b?hf(a):(a.b[0]=b,a.b[2]=c);break;case 7:var d=b=mf(a),e=a.Id[0],f=a.b[2];c=b=!1;0>d&&(c=!0,d=-d);0>f&&(b=!0,c=!c,e=-e>>>0,f=~f+!e);e=ug(a,e,f,d);d=e[0];e=e[1];c&&(d=-d|0);b&&(e=-e|0);2147483648<=d||-2147483649>=d?hf(a):(a.b[0]=d,a.b[2]=e)}};X[248]=function(a){a.flags&=-2;a.u&=-2};X[249]=function(a){a.flags|=1;a.u&=-2};X[250]=function(a){!a.va||(a.flags&131072?3===Pe(a):Pe(a)>=a.O)?a.flags&=-513:I(a,0)};
  X[251]=function(a){!a.va||(a.flags&131072?3===Pe(a):Pe(a)>=a.O)?(a.flags|=512,a.I=0,we(a),lb(a)):I(a,0)};X[252]=function(a){a.flags&=-1025};X[253]=function(a){a.flags|=1024};X[254]=function(a){D(a);var b=a.f&56;0===b?(b=tf(a),uf(a,ng(a,b,7))):8===b?(b=tf(a),uf(a,og(a,b,7))):t(a)};
  Y[255]=function(a){D(a);switch(a.f>>3&7){case 0:var b=R(a);S(a,ng(a,b,15));break;case 1:b=R(a);S(a,og(a,b,15));break;case 2:b=P(a);J(a,We(a));a.B=B(a,1)+b|0;Ee(a)||We(a);break;case 3:192<=a.f&&t(a);var c=F(a,a.f);b=x(a,c);c=x(a,c+2|0);gf(a,b,c,!0);Ee(a)||We(a);break;case 4:b=P(a);a.B=B(a,1)+b|0;Ee(a)||We(a);break;case 5:192<=a.f&&t(a);c=F(a,a.f);b=x(a,c);c=x(a,c+2|0);gf(a,b,c,!1);Ee(a)||We(a);break;case 6:b=P(a);J(a,b);break;case 7:t(a)}};
  Z[255]=function(a){D(a);switch(a.f>>3&7){case 0:var b=vf(a);wf(a,ng(a,b,31));break;case 1:b=vf(a);wf(a,og(a,b,31));break;case 2:b=mf(a);L(a,We(a));a.B=B(a,1)+b|0;break;case 3:192<=a.f&&t(a);var c=F(a,a.f);b=y(a,c);c=x(a,c+4|0);if((!a.va||Qe(a))&&b&4294901760)throw a.debug.R("#GP handler");gf(a,b,c,!0);break;case 4:b=mf(a);a.B=B(a,1)+b|0;break;case 5:192<=a.f&&t(a);c=F(a,a.f);b=y(a,c);c=x(a,c+4|0);if((!a.va||Qe(a))&&b&4294901760)throw a.debug.R("#GP handler");gf(a,b,c,!1);break;case 6:b=mf(a);L(a,
  b);break;case 7:t(a)}};var Jh=[],Kh=[];q.prototype.Za=Jh;q.prototype.ib=Kh;for(var Lh=0;256>Lh;Lh++)X[Lh]?Jh[Lh]=Kh[Lh]=X[Lh]:Y[Lh]&&(Jh[Lh]=Y[Lh],Kh[Lh]=Z[Lh]);X=[];Y=[];Z=[];
  X[0]=function(a){D(a);a.va&&!Qe(a)||t(a);switch(a.f>>3&7){case 0:rf(a,a.N[7]);Mb(a)&&192<=a.f&&(a.b[a.f&7]&=65535);break;case 1:rf(a,a.N[6]);Mb(a)&&192<=a.f&&(a.b[a.f&7]&=65535);break;case 2:a.O&&I(a,0);var b=P(a);$e(a,b);break;case 3:a.O&&I(a,0);b=P(a);var c=Ze(a,b);if(!c.kg)throw a.debug.R("TR can only be loaded from GDT");if(c.Va)throw a.debug.R("#GP handler");if(!c.Jb)throw a.debug.R("#GP handler (happens when running kvm-unit-test without ACPI)");if(9!==c.type&&1!==c.type)throw a.debug.R("#GP handler");
  if(!c.lb)throw a.debug.R("#NT handler");a.Rd=9===c.type;a.za[6]=c.jb;a.Na[6]=c.Hb;a.N[6]=b;a.Ba(c.mf+5|0,a.na(c.mf+5|0)|2);break;case 4:b=P(a);b=Ze(a,b);a.u&=-65;a.flags=b.Va||!b.Kb||b.Jb||!b.og||!b.$e&&(b.aa<a.O||b.aa<b.Ea)?a.flags&-65:a.flags|64;break;case 5:b=P(a);b=Ze(a,b);a.u&=-65;a.flags=b.Va||!b.Kb||b.Jb||!b.Ff||b.aa<a.O||b.aa<b.Ea?a.flags&-65:a.flags|64;break;default:t(a)}};
  X[1]=function(a){D(a);var b=a.f>>3&7;if(4===b)192<=a.f&&Mb(a)?sf(a,a.K[0]):rf(a,a.K[0]);else if(6===b){a.O&&I(a,0);var c=P(a);c=a.K[0]&-16|c&15;a.va&&(c|=1);ze(a,c)}else switch(192<=a.f&&t(a),c=F(a,a.f),b){case 0:Nb(a,c,6);u(a,c,a.oe);b=Mb(a)?-1:16777215;w(a,c+2,a.Rc&b);break;case 1:Nb(a,c,6);u(a,c,a.pe);b=Mb(a)?-1:16777215;w(a,c+2,a.Sc&b);break;case 2:a.O&&I(a,0);b=x(a,c);c=y(a,c+2);a.oe=b;a.Rc=c;Mb(a)||(a.Rc&=16777215);break;case 3:a.O&&I(a,0);b=x(a,c);c=y(a,c+2);a.pe=b;a.Sc=c;Mb(a)||(a.Sc&=16777215);
  break;case 7:a.O&&I(a,0);c>>>=12;a.vc[c]=0;a.pf[c]=0;a.pc=-1;a.se=-1;break;default:t(a)}};Y[2]=function(a){D(a);a.va&&!Qe(a)||t(a);var b=P(a);Ff(a,Mf(a,b,Df(a)))};Z[2]=function(a){D(a);a.va&&!Qe(a)||t(a);var b=P(a);Gf(a,Mf(a,b,T(a)))};Y[3]=function(a){D(a);a.va&&!Qe(a)||t(a);var b=P(a);Ff(a,Nf(a,b,Df(a)))};Z[3]=function(a){D(a);a.va&&!Qe(a)||t(a);var b=P(a);Gf(a,Nf(a,b,T(a)))};X[4]=function(a){t(a)};X[5]=function(a){t(a)};X[6]=function(a){a.O?I(a,0):a.K[0]&=-9};X[7]=function(a){t(a)};X[8]=function(a){t(a)};
  X[9]=function(a){a.O&&I(a,0)};X[10]=function(a){t(a)};X[11]=function(a){t(a)};X[12]=function(a){t(a)};X[13]=function(a){t(a)};X[14]=function(a){t(a)};X[15]=function(a){t(a)};X[16]=function(a){t(a)};X[17]=function(a){t(a)};X[18]=function(a){M(a);D(a);var b=of(a),c=b[1],d=(a.f>>3&7)<<2;a.qa[d]=b[0];a.qa[d+1]=c};X[19]=function(a){M(a);D(a);var b=Hf(a),c=F(a,a.f);Le(a,c,b[0],b[1])};X[20]=function(a){t(a)};X[21]=function(a){t(a)};X[22]=function(a){t(a)};X[23]=function(a){t(a)};
  X[24]=function(a){D(a);192>a.f&&F(a,a.f)};X[25]=function(a){t(a)};X[26]=function(a){t(a)};X[27]=function(a){t(a)};X[28]=function(a){t(a)};X[29]=function(a){t(a)};X[30]=function(a){t(a)};X[31]=function(a){D(a);192>a.f&&F(a,a.f)};X[32]=function(a){D(a);a.O&&I(a,0);switch(a.f>>3&7){case 0:Af(a,a.K[0]);break;case 2:Af(a,a.K[2]);break;case 3:Af(a,a.K[3]);break;case 4:Af(a,a.K[4]);break;default:t(a)}};X[33]=function(a){D(a);a.O&&I(a,0);var b=a.f>>3&7;a.K[4]&8&&(4===b||5===b)&&t(a);a.b[a.f&7]=a.od[b]};
  X[34]=function(a){D(a);a.O&&I(a,0);var b=zf(a);switch(a.f>>3&7){case 0:ze(a,b);break;case 2:a.K[2]=b;break;case 3:a.K[3]=b&-4072;af(a);break;case 4:b&-3565568&&I(a,0);(a.K[4]^b)&128&&(b&128?af(a):pe(a));a.K[4]=b;a.ef=b&16?128:0;if(b&32)throw a.debug.R("PAE");b&4294965504&&t(a);break;default:t(a)}};X[35]=function(a){D(a);a.O&&I(a,0);var b=a.f>>3&7;a.K[4]&8&&(4===b||5===b)&&t(a);a.od[b]=zf(a)};X[36]=function(a){t(a)};X[37]=function(a){t(a)};X[38]=function(a){t(a)};X[39]=function(a){t(a)};
  X[40]=function(a){M(a);D(a);var b=pf(a);Kf(a,b[0],b[1],b[2],b[3])};X[41]=function(a){M(a);D(a);if(32===(a.I&56)){var b=If(a),c=F(a,a.f);Me(a,c,b[0],b[1],b[2],b[3])}else b=If(a),c=F(a,a.f),Me(a,c,b[0],b[1],b[2],b[3])};X[42]=function(a){t(a)};X[43]=function(a){t(a)};X[44]=function(a){t(a)};X[45]=function(a){t(a)};X[46]=function(a){t(a)};X[47]=function(a){t(a)};
  X[48]=function(a){a.O&&I(a,0);var b=a.b[0],c=a.b[2];switch(a.b[1]){case 372:a.Pd=b&65535;break;case 374:a.Ce=b;break;case 373:a.De=b;break;case 27:a.Wh=2048===(b&2048);break;case 16:b=(b>>>0)+4294967296*(c>>>0),a.qf=kb()-b/8192}};X[49]=function(a){if(a.O&&a.K[4]&4)I(a,0);else{var b=kb()-a.qf;a.b[0]=8192*b;a.b[2]=1.9073486328125E-6*b}};
  X[50]=function(a){a.O&&I(a,0);var b=0,c=0;switch(a.b[1]){case 372:b=a.Pd;break;case 374:b=a.Ce;break;case 373:b=a.De;break;case 16:c=kb()-a.qf;b=8192*c;c*=1.9073486328125E-6;break;case 44:b=16777216}a.b[0]=b;a.b[2]=c};X[51]=function(a){t(a)};X[52]=function(a){var b=a.Pd&65532;a.va&&0!==b||I(a,0);a.flags&=-131585;a.B=a.Ce;a.b[4]=a.De;a.N[1]=b;a.gb[1]=0;a.Na[1]=-1;a.za[1]=0;ue(a,!0);a.O=0;Ae(a);a.N[2]=b+8;a.gb[2]=0;a.Na[2]=-1;a.za[2]=0;a.tb=!0};
  X[53]=function(a){var b=a.Pd&65532;a.va&&!a.O&&0!==b||I(a,0);a.B=a.b[2];a.b[4]=a.b[1];a.N[1]=b+16|3;a.gb[1]=0;a.Na[1]=-1;a.za[1]=0;ue(a,!0);a.O=3;Ae(a);a.N[2]=b+24|3;a.gb[2]=0;a.Na[2]=-1;a.za[2]=0;a.tb=!0};X[54]=function(a){t(a)};X[55]=function(a){t(a)};X[56]=function(a){t(a)};X[57]=function(a){t(a)};X[58]=function(a){t(a)};X[59]=function(a){t(a)};X[60]=function(a){t(a)};X[61]=function(a){t(a)};X[62]=function(a){t(a)};X[63]=function(a){t(a)};Y[64]=function(a){D(a);wh(a,a.Ub())};
  Z[64]=function(a){D(a);xh(a,a.Ub())};Y[65]=function(a){D(a);wh(a,!a.Ub())};Z[65]=function(a){D(a);xh(a,!a.Ub())};Y[66]=function(a){D(a);wh(a,a.Cb())};Z[66]=function(a){D(a);xh(a,a.Cb())};Y[67]=function(a){D(a);wh(a,!a.Cb())};Z[67]=function(a){D(a);xh(a,!a.Cb())};Y[68]=function(a){D(a);wh(a,a.Eb())};Z[68]=function(a){D(a);xh(a,a.Eb())};Y[69]=function(a){D(a);wh(a,!a.Eb())};Z[69]=function(a){D(a);xh(a,!a.Eb())};Y[70]=function(a){D(a);wh(a,zh(a))};Z[70]=function(a){D(a);xh(a,zh(a))};
  Y[71]=function(a){D(a);wh(a,!zh(a))};Z[71]=function(a){D(a);xh(a,!zh(a))};Y[72]=function(a){D(a);wh(a,a.Vb())};Z[72]=function(a){D(a);xh(a,a.Vb())};Y[73]=function(a){D(a);wh(a,!a.Vb())};Z[73]=function(a){D(a);xh(a,!a.Vb())};Y[74]=function(a){D(a);wh(a,a.Db())};Z[74]=function(a){D(a);xh(a,a.Db())};Y[75]=function(a){D(a);wh(a,!a.Db())};Z[75]=function(a){D(a);xh(a,!a.Db())};Y[76]=function(a){D(a);wh(a,Ah(a))};Z[76]=function(a){D(a);xh(a,Ah(a))};Y[77]=function(a){D(a);wh(a,!Ah(a))};
  Z[77]=function(a){D(a);xh(a,!Ah(a))};Y[78]=function(a){D(a);wh(a,Bh(a))};Z[78]=function(a){D(a);xh(a,Bh(a))};Y[79]=function(a){D(a);wh(a,!Bh(a))};Z[79]=function(a){D(a);xh(a,!Bh(a))};X[80]=function(a){t(a)};X[81]=function(a){t(a)};X[82]=function(a){t(a)};X[83]=function(a){t(a)};X[84]=function(a){t(a)};X[85]=function(a){t(a)};X[86]=function(a){t(a)};X[87]=function(a){M(a);D(a);var b=pf(a),c=If(a);Kf(a,b[0]^c[0],b[1]^c[1],b[2]^c[2],b[3]^c[3])};X[88]=function(a){t(a)};X[89]=function(a){t(a)};X[90]=function(a){t(a)};
  X[91]=function(a){t(a)};X[92]=function(a){t(a)};X[93]=function(a){t(a)};X[94]=function(a){t(a)};X[95]=function(a){t(a)};
  X[96]=function(a){M(a);D(a);if(32==(a.I&56)){var b=of(a);b=new Uint8Array(b.buffer);var c=Hf(a);c=new Uint8Array(c.buffer);Kf(a,c[0]|b[0]<<8|c[1]<<16|b[1]<<24,c[2]|b[2]<<8|c[3]<<16|b[3]<<24,c[4]|b[4]<<8|c[5]<<16|b[5]<<24,c[6]|b[6]<<8|c[7]<<16|b[7]<<24)}else b=nf(a),c=a.s[2*(a.f>>3&7)],U(a,c&255|(b&255)<<8|(c>>8&255)<<16|(b>>8&255)<<24,c>>16&255|(b>>16&255)<<8|c>>>24<<16|b>>>24<<24)};
  X[97]=function(a){M(a);D(a);if(32==(a.I&56)){var b=of(a);b=new Uint16Array(b.buffer);var c=Hf(a);c=new Uint16Array(c.buffer);Kf(a,c[0]|b[0]<<16,c[1]|b[1]<<16,c[2]|b[2]<<16,c[3]|b[3]<<16)}else b=nf(a),c=a.s[2*(a.f>>3&7)],U(a,c&65535|(b&65535)<<16,c>>>16|b>>>16<<16)};X[98]=function(a){M(a);D(a);var b=nf(a);U(a,a.s[2*(a.f>>3&7)],b)};
  X[99]=function(a){M(a);D(a);var b=Q(a),c=a.s[2*(a.f>>3&7)],d=a.s[2*(a.f>>3&7)+1];var e=0|mh(c&65535);e|=mh(c>>>16)<<8;e|=mh(d&65535)<<16;e|=mh(d>>>16)<<24;c=0|mh(b[0]&65535);c|=mh(b[0]>>>16)<<8;c|=mh(b[1]&65535)<<16;c|=mh(b[1]>>>16)<<24;U(a,e,c)};
  X[100]=function(a){M(a);D(a);var b=Q(a);b=new Int8Array(b.buffer);var c=8*(a.f>>3&7),d=a.Jd;U(a,(d[c]>b[0]?255:0)|(d[c+1]>b[1]?255:0)<<8|(d[c+2]>b[2]?255:0)<<16|(d[c+3]>b[3]?255:0)<<24,(d[c+4]>b[4]?255:0)|(d[c+5]>b[5]?255:0)<<8|(d[c+6]>b[6]?255:0)<<16|(d[c+7]>b[7]?255:0)<<24)};X[101]=function(a){M(a);D(a);var b=Q(a),c=a.s[2*(a.f>>3&7)],d=a.s[2*(a.f>>3&7)+1];U(a,(c<<16>>16>b[0]<<16>>16?65535:0)|(c>>16>b[0]>>16?65535:0)<<16,(d<<16>>16>b[1]<<16>>16?65535:0)|(d>>16>b[1]>>16?65535:0)<<16)};
  X[102]=function(a){M(a);D(a);var b=Q(a);U(a,a.s[2*(a.f>>3&7)]>b[0]?-1:0,a.s[2*(a.f>>3&7)+1]>b[1]?-1:0)};
  X[103]=function(a){M(a);D(a);if(32==(a.I&56)){var b=pf(a);b=new Int16Array(b.buffer);var c=If(a);c=new Int16Array(c.buffer);for(var d=De(0,0,0,0),e=new Uint8Array(d.buffer),f=0;8>f;f++)e[f]=lh(c[f]),e[f|8]=lh(b[f]);Kf(a,d[0],d[1],d[2],d[3])}else b=Q(a),d=a.s[2*(a.f>>3&7)],e=a.s[2*(a.f>>3&7)+1],c=0|lh(d&65535),c|=lh(d>>>16)<<8,c|=lh(e&65535)<<16,c|=lh(e>>>16)<<24,d=0|lh(b[0]&65535),d|=lh(b[0]>>>16)<<8,d|=lh(b[1]&65535)<<16,d|=lh(b[1]>>>16)<<24,U(a,c,d)};
  X[104]=function(a){M(a);D(a);if(32==(a.I&56)){var b=pf(a);b=new Uint8Array(b.buffer);var c=If(a);c=new Uint8Array(c.buffer);Kf(a,c[8]|b[8]<<8|c[9]<<16|b[9]<<24,c[10]|b[10]<<8|c[11]<<16|b[11]<<24,c[12]|b[12]<<8|c[13]<<16|b[13]<<24,c[14]|b[14]<<8|c[15]<<16|b[15]<<24)}else b=Q(a),c=a.s[2*(a.f>>3&7)+1],U(a,c&255|(b[1]&255)<<8|(c>>8&255)<<16|(b[1]>>8&255)<<24,c>>16&255|(b[1]>>16&255)<<8|c>>>24<<16|b[1]>>>24<<24)};
  X[105]=function(a){M(a);D(a);var b=Q(a),c=a.s[2*(a.f>>3&7)+1];U(a,c&65535|(b[1]&65535)<<16,c>>>16|b[1]>>>16<<16)};X[106]=function(a){M(a);D(a);var b=Q(a);U(a,a.s[2*(a.f>>3&7)+1],b[1])};X[107]=function(a){M(a);D(a);var b=Q(a),c=a.s[2*(a.f>>3&7)+1];var d=0|nh(a.s[2*(a.f>>3&7)]);d|=nh(c)<<16;c=0|nh(b[0]);c|=nh(b[1])<<16;U(a,d,c)};X[108]=function(a){t(a)};X[109]=function(a){t(a)};X[110]=function(a){M(a);D(a);if(32===(a.I&56)){var b=mf(a);Kf(a,b,0,0,0)}else b=mf(a),U(a,b,0)};
  X[111]=function(a){M(a);D(a);if(32==(a.I&56)){var b=pf(a);Kf(a,b[0],b[1],b[2],b[3])}else 8==(a.I&56)?(192>a.f?(b=F(a,a.f),b=De(y(a,b),y(a,b+4|0),y(a,b+8|0),y(a,b+12|0))):(b=(a.f&7)<<2,b=De(a.qa[b],a.qa[b|1],a.qa[b|2],a.qa[b|3])),Kf(a,b[0],b[1],b[2],b[3])):(b=Q(a),U(a,b[0],b[1]))};
  X[112]=function(a){M(a);D(a);if(32===(a.I&56)){var b=pf(a),c=a.M();Kf(a,b[c&3],b[c>>2&3],b[c>>4&3],b[c>>6&3])}else if(16===(a.I&56)){b=pf(a);c=new Uint16Array(b.buffer);var d=a.M();Kf(a,c[d&3]|c[d>>2&3]<<16,c[d>>4&3]|c[d>>6&3]<<16,b[2],b[3])}else if(8===(a.I&56))b=pf(a),c=new Uint16Array(b.buffer),d=a.M(),Kf(a,b[0],b[1],c[d&3|4]|c[d>>2&3|4]<<16,c[d>>4&3|4]|c[d>>6&3|4]<<16);else{b=Q(a);var e=a.M();c=e&3;d=e>>2&3;var f=e>>4&3;e>>>=6;U(a,b[c>>1]>>>16*(c&1)&65535|b[d>>1]>>>16*(d&1)<<16,b[f>>1]>>>16*(f&
  1)&65535|b[e>>1]>>>16*(e&1)<<16)}};
  X[113]=function(a){D(a);M(a);192>a.f&&t(a);switch(a.f>>3&7){case 2:var b=a.M(),c=a.f&7,d=a.s[2*c],e=a.s[2*c+1],f=0,h=0;15>=b&&(f=(d&65535)>>>b|d>>>16>>>b<<16,h=(e&65535)>>>b|e>>>16>>>b<<16);a.s[2*c]=f;a.s[2*c+1]=h;break;case 4:b=a.M();c=a.f&7;d=a.s[2*c];e=a.s[2*c+1];15<b&&(b=16);a.s[2*c]=d<<16>>16>>b&65535|(d>>16>>b&65535)<<16;a.s[2*c+1]=e<<16>>16>>b&65535|(e>>16>>b&65535)<<16;break;case 6:b=a.M();c=a.f&7;d=a.s[2*c];e=a.s[2*c+1];h=f=0;15>=b&&(f=(d&65535)<<b&65535|d>>>16<<b<<16,h=(e&65535)<<b&65535|
  e>>>16<<b<<16);a.s[2*c]=f;a.s[2*c+1]=h;break;default:t(a)}};X[114]=function(a){D(a);M(a);192>a.f&&t(a);switch(a.f>>3&7){case 2:var b=a.M(),c=a.f&7,d=a.s[2*c],e=a.s[2*c+1],f=0,h=0;31>=b&&(f=d>>>b,h=e>>>b);a.s[2*c]=f;a.s[2*c+1]=h;break;case 4:b=a.M();c=a.f&7;d=a.s[2*c];e=a.s[2*c+1];31<b&&(b=31);a.s[2*c]=d>>b;a.s[2*c+1]=e>>b;break;case 6:b=a.M();c=a.f&7;d=a.s[2*c];e=a.s[2*c+1];h=f=0;31>=b&&(f=d<<b,h=e<<b);a.s[2*c]=f;a.s[2*c+1]=h;break;default:t(a)}};
  X[115]=function(a){D(a);M(a);192>a.f&&t(a);switch(a.f>>3&7){case 2:var b=a.M(),c=a.f&7,d=a.s[2*c],e=a.s[2*c+1],f=0,h=0;31>=b?(f=d>>>b|e<<32-b,h=e>>>b):63>=b&&(f=e>>>(b&31),h=0);a.s[2*c]=f;a.s[2*c+1]=h;break;case 6:b=a.M();c=a.f&7;d=a.s[2*c];e=a.s[2*c+1];h=f=0;31>=b?(f=d<<b,h=e<<b|d>>>32-b):63>=b&&(h=d<<(b&31),f=0);a.s[2*c]=f;a.s[2*c+1]=h;break;default:t(a)}};
  X[116]=function(a){M(a);D(a);if(32==(a.I&56)){var b=pf(a);b=new Uint8Array(b.buffer);var c=If(a);c=new Uint8Array(c.buffer);for(var d=De(0,0,0,0),e=new Uint8Array(d.buffer),f=0;16>f;f++)e[f]=b[f]===c[f]?255:0;Kf(a,d[0],d[1],d[2],d[3])}else b=Q(a),b=new Int8Array(b.buffer),c=8*(a.f>>3&7),d=a.Jd,U(a,(d[c]===b[0]?255:0)|(d[c+1]===b[1]?255:0)<<8|(d[c+2]===b[2]?255:0)<<16|(d[c+3]===b[3]?255:0)<<24,(d[c+4]===b[4]?255:0)|(d[c+5]===b[5]?255:0)<<8|(d[c+6]===b[6]?255:0)<<16|(d[c+7]===b[7]?255:0)<<24)};
  X[117]=function(a){M(a);D(a);var b=Q(a),c=a.s[2*(a.f>>3&7)],d=a.s[2*(a.f>>3&7)+1];U(a,((c&65535)===(b[0]&65535)?65535:0)|((c&4294901760)===(b[0]&4294901760)?65535:0)<<16,((d&65535)===(b[1]&65535)?65535:0)|((d&4294901760)===(b[1]&4294901760)?65535:0)<<16)};X[118]=function(a){M(a);D(a);if(32==(a.I&56)){var b=pf(a),c=If(a);Kf(a,b[0]===c[0]?-1:0,b[1]===c[1]?-1:0,b[2]===c[2]?-1:0,b[3]===c[3]?-1:0)}else b=Q(a),U(a,a.s[2*(a.f>>3&7)]===b[0]?-1:0,a.s[2*(a.f>>3&7)+1]===b[1]?-1:0)};
  X[119]=function(a){M(a);a.V.ha=255};X[120]=function(a){t(a)};X[121]=function(a){t(a)};X[122]=function(a){t(a)};X[123]=function(a){t(a)};X[124]=function(a){t(a)};X[125]=function(a){t(a)};X[126]=function(a){M(a);D(a);if(8===(a.I&56)){var b=of(a);Kf(a,b[0],b[1],0,0)}else 32==(a.I&56)?(b=Hf(a),sf(a,b[0])):(b=Jf(a),sf(a,b[0]))};
  X[127]=function(a){M(a);D(a);if(8==(a.I&56)){var b=If(a),c=F(a,a.f);Me(a,c,b[0],b[1],b[2],b[3])}else if(32==(a.I&56))b=If(a),c=F(a,a.f),Me(a,c,b[0],b[1],b[2],b[3]);else if(c=Jf(a),b=c[0],c=c[1],192>a.f){var d=F(a,a.f);Le(a,d,b,c)}else a.s[2*(a.f&7)]=b,a.s[2*(a.f&7)+1]=c};Y[128]=function(a){uh(a,a.Ub())};Z[128]=function(a){vh(a,a.Ub())};Y[129]=function(a){uh(a,!a.Ub())};Z[129]=function(a){vh(a,!a.Ub())};Y[130]=function(a){uh(a,a.Cb())};Z[130]=function(a){vh(a,a.Cb())};Y[131]=function(a){uh(a,!a.Cb())};
  Z[131]=function(a){vh(a,!a.Cb())};Y[132]=function(a){uh(a,a.Eb())};Z[132]=function(a){vh(a,a.Eb())};Y[133]=function(a){uh(a,!a.Eb())};Z[133]=function(a){vh(a,!a.Eb())};Y[134]=function(a){uh(a,zh(a))};Z[134]=function(a){vh(a,zh(a))};Y[135]=function(a){uh(a,!zh(a))};Z[135]=function(a){vh(a,!zh(a))};Y[136]=function(a){uh(a,a.Vb())};Z[136]=function(a){vh(a,a.Vb())};Y[137]=function(a){uh(a,!a.Vb())};Z[137]=function(a){vh(a,!a.Vb())};Y[138]=function(a){uh(a,a.Db())};Z[138]=function(a){vh(a,a.Db())};
  Y[139]=function(a){uh(a,!a.Db())};Z[139]=function(a){vh(a,!a.Db())};Y[140]=function(a){uh(a,Ah(a))};Z[140]=function(a){vh(a,Ah(a))};Y[141]=function(a){uh(a,!Ah(a))};Z[141]=function(a){vh(a,!Ah(a))};Y[142]=function(a){uh(a,Bh(a))};Z[142]=function(a){vh(a,Bh(a))};Y[143]=function(a){uh(a,!Bh(a))};Z[143]=function(a){vh(a,!Bh(a))};X[144]=function(a){D(a);yh(a,a.Ub())};X[145]=function(a){D(a);yh(a,!a.Ub())};X[146]=function(a){D(a);yh(a,a.Cb())};X[147]=function(a){D(a);yh(a,!a.Cb())};
  X[148]=function(a){D(a);yh(a,a.Eb())};X[149]=function(a){D(a);yh(a,!a.Eb())};X[150]=function(a){D(a);yh(a,zh(a))};X[151]=function(a){D(a);yh(a,!zh(a))};X[152]=function(a){D(a);yh(a,a.Vb())};X[153]=function(a){D(a);yh(a,!a.Vb())};X[154]=function(a){D(a);yh(a,a.Db())};X[155]=function(a){D(a);yh(a,!a.Db())};X[156]=function(a){D(a);yh(a,Ah(a))};X[157]=function(a){D(a);yh(a,!Ah(a))};X[158]=function(a){D(a);yh(a,Bh(a))};X[159]=function(a){D(a);yh(a,!Bh(a))};Y[160]=function(a){J(a,a.N[4])};
  Z[160]=function(a){L(a,a.N[4])};Y[161]=function(a){re(a,4,x(a,H(a,0)));G(a,2)};Z[161]=function(a){re(a,4,y(a,H(a,0))&65535);G(a,4)};
  X[162]=function(a){var b=0,c=0,d=0,e=0;switch(a.b[0]){case 0:b=5;e=1970169159;d=1231384169;c=1818588270;break;case 1:b=3939;e=67584;c=-1065353216;d=(a.V?1:0)|43320;break;case 2:b=1717260289;c=e=0;d=8024064;break;case 4:switch(a.b[1]){case 0:b=289;e=29360191;c=63;d=1;break;case 1:b=290;e=29360191;c=63;d=1;break;case 2:b=323,e=96469055,c=4095,d=1}break;case 5:e=b=64;c=3;d=1319200;break;case -2147483648:b=5;break;case 1073741824:e=1635208534,c=1297507698,d=1701994871}a.b[0]=b;a.b[1]=c;a.b[2]=d;a.b[3]=
  e};Y[163]=function(a){D(a);192>a.f?gh(a,F(a,a.f),Ef(a)):ch(a,xf(a),Df(a)&15)};Z[163]=function(a){D(a);192>a.f?gh(a,F(a,a.f),T(a)):ch(a,zf(a),T(a)&31)};Y[164]=function(a){D(a);var b=R(a);S(a,ah(a,b,Df(a),a.M()&31))};Z[164]=function(a){D(a);var b=vf(a);wf(a,bh(a,b,T(a),a.M()&31))};Y[165]=function(a){D(a);var b=R(a);S(a,ah(a,b,Df(a),a.D[4]&31))};Z[165]=function(a){D(a);var b=vf(a);wf(a,bh(a,b,T(a),a.D[4]&31))};X[166]=function(a){t(a)};X[167]=function(a){t(a)};Y[168]=function(a){J(a,a.N[5])};
  Z[168]=function(a){L(a,a.N[5])};Y[169]=function(a){re(a,5,x(a,H(a,0)));G(a,2)};Z[169]=function(a){re(a,5,y(a,H(a,0))&65535);G(a,4)};X[170]=function(a){t(a)};Y[171]=function(a){D(a);192>a.f?jh(a,F(a,a.f),Ef(a)):yf(a,eh(a,xf(a),Ef(a)&15))};Z[171]=function(a){D(a);192>a.f?jh(a,F(a,a.f),T(a)):Af(a,eh(a,zf(a),T(a)&31))};Y[172]=function(a){D(a);var b=R(a);S(a,Zg(a,b,Df(a),a.M()&31))};Z[172]=function(a){D(a);var b=vf(a);wf(a,$g(a,b,T(a),a.M()&31))};
  Y[173]=function(a){D(a);var b=R(a);S(a,Zg(a,b,Df(a),a.D[4]&31))};Z[173]=function(a){D(a);var b=vf(a);wf(a,$g(a,b,T(a),a.D[4]&31))};
  X[174]=function(a){D(a);a.I&56&&t(a);switch(a.f>>3&7){case 0:192<=a.f&&t(a);var b=F(a,a.f);Nb(a,b,512);u(a,b+0|0,a.V.hc);u(a,b+2|0,Kb(a.V));Je(a,b+4|0,~a.V.ha&255);u(a,b+6|0,a.V.sd);w(a,b+8|0,a.V.Pc);u(a,b+12|0,a.V.Te);w(a,b+16|0,a.V.qd);u(a,b+20|0,a.V.rd);w(a,b+24|0,a.df);w(a,b+28|0,65471);for(var c=0;8>c;c++)Tb(a.V,b+32+(c<<4)|0,a.V.J[a.V.C+c&7]);for(c=0;8>c;c++)w(a,b+160+(c<<4)+0|0,a.qa[c<<2|0]),w(a,b+160+(c<<4)+4|0,a.qa[c<<2|1]),w(a,b+160+(c<<4)+8|0,a.qa[c<<2|2]),w(a,b+160+(c<<4)+12|0,a.qa[c<<
  2|3]);break;case 1:192<=a.f&&t(a);b=F(a,a.f);Be(a,b|0);Be(a,b+511|0);c=y(a,b+24|0);c&-65472&&I(a,0);a.V.hc=x(a,b+0|0);var d=a.V,e=x(a,b+2|0);d.a=e&-14337;d.C=e>>11&7;a.V.ha=~He(a,b+4|0)&255;a.V.sd=x(a,b+6|0);a.V.Pc=y(a,b+8|0);a.V.Pc=x(a,b+12|0);a.V.qd=y(a,b+16|0);a.V.rd=x(a,b+20|0);a.df=c;for(c=0;8>c;c++)a.V.J[a.V.C+c&7]=Sb(a.V,b+32+(c<<4)|0);for(c=0;8>c;c++)a.qa[c<<2|0]=y(a,b+160+(c<<4)+0|0),a.qa[c<<2|1]=y(a,b+160+(c<<4)+4|0),a.qa[c<<2|2]=y(a,b+160+(c<<4)+8|0),a.qa[c<<2|3]=y(a,b+160+(c<<4)+12|0);
  break;case 2:192<=a.f&&t(a);b=F(a,a.f);b=y(a,b);b&-65472&&I(a,0);a.df=b;break;case 3:192<=a.f&&t(a);b=F(a,a.f);w(a,b,a.df);break;case 5:192>a.f&&t(a);break;case 6:192>a.f&&t(a);break;case 7:192>a.f&&t(a);break;default:t(a)}};Y[175]=function(a){D(a);var b=P(a)<<16>>16;Ff(a,qg(a,Ef(a),b))};Z[175]=function(a){D(a);var b=mf(a);Gf(a,tg(a,T(a),b))};
  X[176]=function(a){D(a);if(192>a.f){var b=F(a,a.f);Nb(a,b,1);var c=He(a,b)}else c=a.D[a.f<<2&12|a.f>>2&1];a.sub(a.D[0],c,7);a.Bc()?192>a.f?Je(a,b,Bf(a)):a.D[a.f<<2&12|a.f>>2&1]=Bf(a):(192>a.f&&Je(a,b,c),a.D[0]=c)};Y[177]=function(a){D(a);if(192>a.f){var b=F(a,a.f);Nb(a,b,2);var c=x(a,b)}else c=xf(a);a.sub(a.i[0],c,15);a.Bc()?192>a.f?u(a,b,Df(a)):yf(a,Df(a)):(192>a.f&&u(a,b,c),a.i[0]=c)};
  Z[177]=function(a){D(a);if(192>a.f){var b=F(a,a.f);Nb(a,b,4);var c=y(a,b)}else c=zf(a);a.sub(a.b[0],c,31);a.Bc()?192>a.f?w(a,b,T(a)):Af(a,T(a)):(192>a.f&&w(a,b,c),a.b[0]=c)};Y[178]=function(a){D(a);Gh(a,2)};Z[178]=function(a){D(a);Hh(a,2)};Y[179]=function(a){D(a);192>a.f?ih(a,F(a,a.f),Ef(a)):yf(a,fh(a,xf(a),Ef(a)&15))};Z[179]=function(a){D(a);192>a.f?ih(a,F(a,a.f),T(a)):Af(a,fh(a,zf(a),T(a)&31))};Y[180]=function(a){D(a);Gh(a,4)};Z[180]=function(a){D(a);Hh(a,4)};Y[181]=function(a){D(a);Gh(a,5)};
  Z[181]=function(a){D(a);Hh(a,5)};Y[182]=function(a){D(a);var b=lf(a);Ff(a,b)};Z[182]=function(a){D(a);var b=lf(a);Gf(a,b)};Y[183]=function(a){D(a);var b=P(a);Ff(a,b)};Z[183]=function(a){D(a);var b=P(a);Gf(a,b)};Y[184]=function(a){D(a);0===(a.I&8)&&t(a);var b=P(a);Ff(a,kh(a,b))};Z[184]=function(a){D(a);0===(a.I&8)&&t(a);var b=mf(a);Gf(a,kh(a,b))};X[185]=function(a){t(a)};
  Y[186]=function(a){D(a);switch(a.f>>3&7){case 4:192>a.f?gh(a,F(a,a.f),a.M()&15):ch(a,xf(a),a.M()&15);break;case 5:192>a.f?jh(a,F(a,a.f),a.M()&15):yf(a,eh(a,xf(a),a.M()&15));break;case 6:192>a.f?ih(a,F(a,a.f),a.M()&15):yf(a,fh(a,xf(a),a.M()&15));break;case 7:192>a.f?hh(a,F(a,a.f),a.M()&15):yf(a,dh(a,xf(a),a.M()&15));break;default:t(a)}};
  Z[186]=function(a){D(a);switch(a.f>>3&7){case 4:192>a.f?gh(a,F(a,a.f),a.M()&31):ch(a,zf(a),a.M()&31);break;case 5:192>a.f?jh(a,F(a,a.f),a.M()&31):Af(a,eh(a,zf(a),a.M()&31));break;case 6:192>a.f?ih(a,F(a,a.f),a.M()&31):Af(a,fh(a,zf(a),a.M()&31));break;case 7:192>a.f?hh(a,F(a,a.f),a.M()&31):Af(a,dh(a,zf(a),a.M()&31));break;default:t(a)}};Y[187]=function(a){D(a);192>a.f?hh(a,F(a,a.f),Ef(a)):yf(a,dh(a,xf(a),Ef(a)&15))};Z[187]=function(a){D(a);192>a.f?hh(a,F(a,a.f),T(a)):Af(a,dh(a,zf(a),T(a)&31))};
  Y[188]=function(a){D(a);var b=P(a);var c=Df(a);a.u=2197;a.U=15;0===b?(a.flags|=64,a.G=b,b=c):(a.flags&=-65,b=a.G=qb(-b&b));Ff(a,b)};Z[188]=function(a){D(a);var b=mf(a);var c=T(a);a.u=2197;a.U=31;0===b?(a.flags|=64,a.G=b,b=c):(a.flags&=-65,b=a.G=qb((-b&b)>>>0));Gf(a,b)};Y[189]=function(a){D(a);var b=P(a);var c=Df(a);a.u=2197;a.U=15;0===b?(a.flags|=64,a.G=b,b=c):(a.flags&=-65,b=a.G=qb(b));Ff(a,b)};
  Z[189]=function(a){D(a);var b=mf(a);var c=T(a);a.u=2197;a.U=31;0===b?(a.flags|=64,a.G=b,b=c):(a.flags&=-65,b=a.G=qb(b>>>0));Gf(a,b)};Y[190]=function(a){D(a);var b=lf(a)<<24>>24;Ff(a,b)};Z[190]=function(a){D(a);var b=lf(a)<<24>>24;Gf(a,b)};Y[191]=function(a){D(a);var b=P(a);Ff(a,b)};Z[191]=function(a){D(a);var b=P(a)<<16>>16;Gf(a,b)};X[192]=function(a){D(a);var b=tf(a),c=a.f>>1&12|a.f>>5&1,d=a.D[c];a.D[c]=b;b=a.add(b,d,7);uf(a,b)};
  Y[193]=function(a){D(a);var b=R(a),c=a.f>>2&14,d=a.i[c];a.i[c]=b;b=a.add(b,d,15);S(a,b)};Z[193]=function(a){D(a);var b=vf(a),c=a.f>>3&7,d=a.b[c];a.b[c]=b;b=a.add(b,d,31);wf(a,b)};X[194]=function(a){t(a)};X[195]=function(a){D(a);192<=a.f&&t(a);sf(a,T(a))};X[196]=function(a){t(a)};X[197]=function(a){t(a)};X[198]=function(a){t(a)};
  X[199]=function(a){D(a);switch(a.f>>3&7){case 1:192<=a.f&&t(a);var b=F(a,a.f);Nb(a,b,8);var c=y(a,b),d=y(a,b+4|0);a.b[0]===c&&a.b[2]===d?(a.flags|=64,w(a,b,a.b[3]),w(a,b+4|0,a.b[1])):(a.flags&=-65,a.b[0]=c,a.b[2]=d,w(a,b,c),w(a,b+4|0,d));a.u&=-65;break;case 6:c=(b=wb())?xb():0;Mb(a)?sf(a,c):rf(a,c);a.flags&=-2262;a.flags|=b;a.u=0;break;default:t(a)}};X[200]=function(a){Ih(a,0)};X[201]=function(a){Ih(a,1)};X[202]=function(a){Ih(a,2)};X[203]=function(a){Ih(a,3)};X[204]=function(a){Ih(a,4)};
  X[205]=function(a){Ih(a,5)};X[206]=function(a){Ih(a,6)};X[207]=function(a){Ih(a,7)};X[208]=function(a){t(a)};X[209]=function(a){M(a);D(a);var b=Q(a),c=a.s[2*(a.f>>3&7)],d=a.s[2*(a.f>>3&7)+1];b=b[0]>>>0;var e=0,f=0;15>=b&&(e=(c&65535)>>>b|c>>>16>>>b<<16,f=(d&65535)>>>b|d>>>16>>>b<<16);U(a,e,f)};X[210]=function(a){M(a);D(a);var b=Q(a),c=a.s[2*(a.f>>3&7)],d=a.s[2*(a.f>>3&7)+1];b=b[0]>>>0;var e=0,f=0;31>=b&&(e=c>>>b,f=d>>>b);U(a,e,f)};
  X[211]=function(a){M(a);D(a);var b=Q(a),c=a.s[2*(a.f>>3&7)],d=a.s[2*(a.f>>3&7)+1];b=b[0]>>>0;if(0!==b){var e=0,f=0;31>=b?(e=c>>>b|d<<32-b,f=d>>>b):63>=b&&(e=d>>>(b&31),f=0);U(a,e,f)}};X[212]=function(a){t(a)};
  X[213]=function(a){M(a);D(a);if(32==(a.I&56)){var b=pf(a);b=new Int16Array(b.buffer);var c=If(a);c=new Int16Array(c.buffer);Kf(a,b[0]*c[0]&65535|b[1]*c[1]<<16,b[2]*c[2]&65535|b[3]*c[3]<<16,b[4]*c[4]&65535|b[5]*c[5]<<16,b[6]*c[6]&65535|b[7]*c[7]<<16)}else{b=Q(a);c=a.s[2*(a.f>>3&7)];var d=a.s[2*(a.f>>3&7)+1];U(a,(c&65535)*(b[0]&65535)&65535|((c>>>16)*(b[0]>>>16)&65535)<<16,(d&65535)*(b[1]&65535)&65535|((d>>>16)*(b[1]>>>16)&65535)<<16)}};
  X[214]=function(a){M(a);D(a);var b=Hf(a),c=F(a,a.f);Le(a,c,b[0],b[1])};X[215]=function(a){M(a);D(a);192>a.f&&t(a);var b=pf(a);b=new Uint8Array(b.buffer);Gf(a,b[0]>>7<<0|b[1]>>7<<1|b[2]>>7<<2|b[3]>>7<<3|b[4]>>7<<4|b[5]>>7<<5|b[6]>>7<<6|b[7]>>7<<7|b[8]>>7<<8|b[9]>>7<<9|b[10]>>7<<10|b[11]>>7<<11|b[12]>>7<<12|b[13]>>7<<13|b[14]>>7<<14|b[15]>>7<<15)};
  X[216]=function(a){M(a);D(a);var b=Q(a),c=new Uint8Array(b.buffer),d=8*(a.f>>3&7),e=a.xg;b=ph(e[d]-c[0]);var f=ph(e[d+1]-c[1]),h=ph(e[d+2]-c[2]),g=ph(e[d+3]-c[3]),p=ph(e[d+4]-c[4]),r=ph(e[d+5]-c[5]),v=ph(e[d+6]-c[6]);c=ph(e[d+7]-c[7]);U(a,b|f<<8|h<<16|g<<24,p|r<<8|v<<16|c<<24)};
  X[217]=function(a){M(a);D(a);var b=Q(a),c=a.s[2*(a.f>>3&7)],d=a.s[2*(a.f>>3&7)+1],e=(c&65535)-(b[0]&65535);c=(c>>>16)-(b[0]>>>16);0>e&&(e=0);0>c&&(c=0);var f=(d&65535)-(b[1]&65535);b=(d>>>16)-(b[1]>>>16);0>f&&(f=0);0>b&&(b=0);U(a,e|c<<16,f|b<<16)};X[218]=function(a){M(a);D(a);var b=pf(a);b=new Uint8Array(b.buffer);var c=If(a);c=new Uint8Array(c.buffer);for(var d=De(0,0,0,0),e=new Uint8Array(d.buffer),f=0;16>f;f++)e[f]=b[f]<c[f]?b[f]:c[f];Kf(a,d[0],d[1],d[2],d[3])};
  X[219]=function(a){M(a);D(a);var b=Q(a);U(a,b[0]&a.s[2*(a.f>>3&7)],b[1]&a.s[2*(a.f>>3&7)+1])};
  X[220]=function(a){M(a);D(a);if(32==(a.I&56)){var b=pf(a);b=new Uint8Array(b.buffer);var c=If(a);c=new Uint8Array(c.buffer);for(var d=De(0,0,0,0),e=new Uint8Array(d.buffer),f=0;16>f;f++)e[f]=qh(b[f]+c[f]);Kf(a,d[0],d[1],d[2],d[3])}else{b=Q(a);var h=new Uint8Array(b.buffer),g=8*(a.f>>3&7),p=a.xg;b=qh(p[g]+h[0]);c=qh(p[g+1]+h[1]);d=qh(p[g+2]+h[2]);e=qh(p[g+3]+h[3]);f=qh(p[g+4]+h[4]);var r=qh(p[g+5]+h[5]),v=qh(p[g+6]+h[6]);h=qh(p[g+7]+h[7]);U(a,b|c<<8|d<<16|e<<24,f|r<<8|v<<16|h<<24)}};
  X[221]=function(a){M(a);D(a);if(32==(a.I&56)){var b=pf(a);b=new Uint16Array(b.buffer);var c=If(a);c=new Uint16Array(c.buffer);Kf(a,rh(b[0]+c[0])|rh(b[1]+c[1])<<16,rh(b[2]+c[2])|rh(b[3]+c[3])<<16,rh(b[4]+c[4])|rh(b[5]+c[5])<<16,rh(b[6]+c[6])|rh(b[7]+c[7])<<16)}else{c=Q(a);var d=a.s[2*(a.f>>3&7)],e=a.s[2*(a.f>>3&7)+1];b=rh((d&65535)+(c[0]&65535));d=rh((d>>>16)+(c[0]>>>16));var f=rh((e&65535)+(c[1]&65535));c=rh((e>>>16)+(c[1]>>>16));U(a,b|d<<16,f|c<<16)}};
  X[222]=function(a){M(a);D(a);if(32==(a.I&56)){var b=pf(a);b=new Uint8Array(b.buffer);var c=If(a);c=new Uint8Array(c.buffer);for(var d=De(0,0,0,0),e=new Uint8Array(d.buffer),f=0;16>f;f++)e[f]=b[f]>c[f]?b[f]:c[f];Kf(a,d[0],d[1],d[2],d[3])}};X[223]=function(a){M(a);D(a);var b=Q(a);U(a,b[0]&~a.s[2*(a.f>>3&7)],b[1]&~a.s[2*(a.f>>3&7)+1])};X[224]=function(a){t(a)};
  X[225]=function(a){M(a);D(a);var b=Q(a),c=a.s[2*(a.f>>3&7)],d=a.s[2*(a.f>>3&7)+1];b=b[0]>>>0;15<b&&(b=16);U(a,c<<16>>16>>b&65535|(c>>16>>b&65535)<<16,d<<16>>16>>b&65535|(d>>16>>b&65535)<<16)};X[226]=function(a){M(a);D(a);var b=Q(a),c=a.s[2*(a.f>>3&7)],d=a.s[2*(a.f>>3&7)+1];b=b[0]>>>0;31<b&&(b=31);U(a,c>>b,d>>b)};X[227]=function(a){t(a)};
  X[228]=function(a){M(a);D(a);var b=pf(a);b=new Uint16Array(b.buffer);var c=If(a);c=new Uint16Array(c.buffer);Kf(a,b[0]*c[0]>>>16|b[1]*c[1]&4294901760,b[2]*c[2]>>>16|b[3]*c[3]&4294901760,b[4]*c[4]>>>16|b[5]*c[5]&4294901760,b[6]*c[6]>>>16|b[7]*c[7]&4294901760)};X[229]=function(a){M(a);D(a);var b=Q(a),c=a.s[2*(a.f>>3&7)],d=a.s[2*(a.f>>3&7)+1];U(a,(c<<16>>16)*(b[0]<<16>>16)>>>16|(c>>16)*(b[0]>>16)>>>16<<16,(d<<16>>16)*(b[1]<<16>>16)>>>16|(d>>16)*(b[1]>>16)>>>16<<16)};X[230]=function(a){t(a)};
  X[231]=function(a){M(a);D(a);192<=a.f&&t(a);if(32==(a.I&56)){var b=If(a),c=F(a,a.f);Me(a,c,b[0],b[1],b[2],b[3])}};X[232]=function(a){M(a);D(a);var b=Q(a),c=new Int8Array(b.buffer),d=8*(a.f>>3&7),e=a.Jd;b=oh(e[d]-c[0]);var f=oh(e[d+1]-c[1]),h=oh(e[d+2]-c[2]),g=oh(e[d+3]-c[3]),p=oh(e[d+4]-c[4]),r=oh(e[d+5]-c[5]),v=oh(e[d+6]-c[6]);c=oh(e[d+7]-c[7]);U(a,b|f<<8|h<<16|g<<24,p|r<<8|v<<16|c<<24)};
  X[233]=function(a){M(a);D(a);var b=Q(a),c=a.s[2*(a.f>>3&7)],d=a.s[2*(a.f>>3&7)+1],e=nh((c<<16>>16)-(b[0]<<16>>16));c=nh((c>>16)-(b[0]>>16));var f=nh((d<<16>>16)-(b[1]<<16>>16));b=nh((d>>16)-(b[1]>>16));U(a,e|c<<16,f|b<<16)};X[234]=function(a){t(a)};X[235]=function(a){M(a);D(a);if(32===(a.I&56)){var b=pf(a),c=If(a);Kf(a,b[0]|c[0],b[1]|c[1],b[2]|c[2],b[3]|c[3])}else b=Q(a),U(a,b[0]|a.s[2*(a.f>>3&7)],b[1]|a.s[2*(a.f>>3&7)+1])};
  X[236]=function(a){M(a);D(a);var b=Q(a),c=new Int8Array(b.buffer),d=8*(a.f>>3&7),e=a.Jd;b=oh(e[d]+c[0]);var f=oh(e[d+1]+c[1]),h=oh(e[d+2]+c[2]),g=oh(e[d+3]+c[3]),p=oh(e[d+4]+c[4]),r=oh(e[d+5]+c[5]),v=oh(e[d+6]+c[6]);c=oh(e[d+7]+c[7]);U(a,b|f<<8|h<<16|g<<24,p|r<<8|v<<16|c<<24)};X[237]=function(a){M(a);D(a);var b=Q(a),c=a.s[2*(a.f>>3&7)],d=a.s[2*(a.f>>3&7)+1],e=nh((c<<16>>16)+(b[0]<<16>>16));c=nh((c>>16)+(b[0]>>16));var f=nh((d<<16>>16)+(b[1]<<16>>16));b=nh((d>>16)+(b[1]>>16));U(a,e|c<<16,f|b<<16)};
  X[238]=function(a){t(a)};X[239]=function(a){M(a);D(a);if(32==(a.I&56)){var b=pf(a),c=If(a);Kf(a,b[0]^c[0],b[1]^c[1],b[2]^c[2],b[3]^c[3])}else b=Q(a),U(a,b[0]^a.s[2*(a.f>>3&7)],b[1]^a.s[2*(a.f>>3&7)+1])};X[240]=function(a){t(a)};X[241]=function(a){M(a);D(a);var b=Q(a),c=a.s[2*(a.f>>3&7)],d=a.s[2*(a.f>>3&7)+1];b=b[0]>>>0;var e=0,f=0;15>=b&&(e=(c&65535)<<b&65535|c>>>16<<b<<16,f=(d&65535)<<b&65535|d>>>16<<b<<16);U(a,e,f)};
  X[242]=function(a){M(a);D(a);var b=Q(a),c=a.s[2*(a.f>>3&7)],d=a.s[2*(a.f>>3&7)+1];b=b[0]>>>0;var e=0,f=0;31>=b&&(e=c<<b,f=d<<b);U(a,e,f)};X[243]=function(a){M(a);D(a);var b=Q(a),c=a.s[2*(a.f>>3&7)],d=a.s[2*(a.f>>3&7)+1];b=b[0]>>>0;if(0!==b){var e=0,f=0;31>=b?(e=c<<b,f=d<<b|c>>>32-b):63>=b&&(f=c<<(b&31),e=0);U(a,e,f)}};X[244]=function(a){t(a)};
  X[245]=function(a){M(a);D(a);var b=Q(a),c=a.s[2*(a.f>>3&7)],d=a.s[2*(a.f>>3&7)+1];U(a,(c<<16>>16)*(b[0]<<16>>16)+(c>>16)*(b[0]>>16)|0,(d<<16>>16)*(b[1]<<16>>16)+(d>>16)*(b[1]>>16)|0)};X[246]=function(a){t(a)};X[247]=function(a){t(a)};X[248]=function(a){M(a);D(a);var b=Q(a);b=new Int8Array(b.buffer);var c=8*(a.f>>3&7),d=a.Jd;U(a,d[c]-b[0]&255|(d[c+1]-b[1]&255)<<8|(d[c+2]-b[2]&255)<<16|(d[c+3]-b[3]&255)<<24,d[c+4]-b[4]&255|(d[c+5]-b[5]&255)<<8|(d[c+6]-b[6]&255)<<16|(d[c+7]-b[7]&255)<<24)};
  X[249]=function(a){M(a);D(a);var b=Q(a),c=a.s[2*(a.f>>3&7)],d=a.s[2*(a.f>>3&7)+1];U(a,c-b[0]&65535|((c>>>16)-(b[0]>>>16)&65535)<<16,d-b[1]&65535|((d>>>16)-(b[1]>>>16)&65535)<<16)};X[250]=function(a){M(a);D(a);var b=Q(a);U(a,a.s[2*(a.f>>3&7)]-b[0],a.s[2*(a.f>>3&7)+1]-b[1])};X[251]=function(a){t(a)};
  X[252]=function(a){M(a);D(a);var b=Q(a);b=new Int8Array(b.buffer);var c=8*(a.f>>3&7),d=a.Jd;U(a,d[c]+b[0]&255|(d[c+1]+b[1]&255)<<8|(d[c+2]+b[2]&255)<<16|(d[c+3]+b[3]&255)<<24,d[c+4]+b[4]&255|(d[c+5]+b[5]&255)<<8|(d[c+6]+b[6]&255)<<16|(d[c+7]+b[7]&255)<<24)};X[253]=function(a){M(a);D(a);var b=Q(a),c=a.s[2*(a.f>>3&7)],d=a.s[2*(a.f>>3&7)+1];U(a,c+b[0]&65535|((c>>>16)+(b[0]>>>16)&65535)<<16,d+b[1]&65535|((d>>>16)+(b[1]>>>16)&65535)<<16)};
  X[254]=function(a){M(a);D(a);var b=Q(a);U(a,a.s[2*(a.f>>3&7)]+b[0]|0,a.s[2*(a.f>>3&7)+1]+b[1]|0)};X[255]=function(a){t(a)};var Mh=[],Nh=[];q.prototype.tk=Mh;q.prototype.uk=Nh;for(Lh=0;256>Lh;Lh++)X[Lh]?Mh[Lh]=Nh[Lh]=X[Lh]:Y[Lh]&&(Mh[Lh]=Y[Lh],Nh[Lh]=Z[Lh]);function oe(a){var b={};a.debug=b;b.bl=!1;b.Wk=void 0;b.Ek=[];b.cl=!1;b.show=function(a){if("undefined"!==typeof document){var b=document.getElementById("log");if(b){b.textContent+=a+"\n";b.style.display="block";b.scrollTop=1E9;return}}console.log(a)};b.Sb=function(){};b.Qk=function(){for(var b={eax:0,ecx:1,edx:2,ebx:3,esp:4,ebp:5,esi:6,edi:7},d="eax ecx edx ebx esp ebp esi edi".split(" "),e="",f="",h=0;4>h;h++)e+=d[h]+"="+ub(a.Id[b[d[h]]],8)+" ",f+=d[h+4]+"="+ub(a.Id[b[d[h+4]]],8)+" ";e+="  ds="+
  ub(a.N[3],4)+" es="+ub(a.N[0],4)+" fs="+ub(a.N[4],4);f+="  gs="+ub(a.N[5],4)+" cs="+ub(a.N[1],4)+" ss="+ub(a.N[2],4);return[e,f]};b.Kk=function(){};b.Ik=function(){};b.Ok=function(){};b.Ua=function(){var b=a.flags&131072?1:0;b=a.va?b?"vm86":"prot":"real";var d=Re(a),e=Pe(a),f=a.O,h=ub(a.N[1],4)+":"+ub(We(a)>>>0,8),g=ub(a.N[2],4)+":"+ub(Ue(a)>>>0,8),p=a.A?"32":"16",r=a.flags&512?1:0,v={};v=(v[1]="c",v[4]="p",v[16]="a",v[64]="z",v[128]="s",v[256]="t",v[512]="i",v[1024]="d",v[2048]="o",v);for(var E=
  "",z=0;16>z;z++)v[1<<z]&&(d&1<<z?E+=v[1<<z]:E+=" ");return"mode="+b+"/"+p+" paging="+ +a.Y+" iopl="+e+" cpl="+f+" if="+r+" cs:eip="+h+" cs_off="+ub(B(a,1)>>>0,8)+" flgs="+ub(Re(a)>>>0,6)+" ("+E+") ss:esp="+g+" ssize="+ +a.tb};b.Mk=function(){};b.Lk=function(){};b.Jk=function(){};b.Gk=function(){};b.Hk=function(){};b.Pk=function(){};b.Uk=function(){};b.dl=function(){};b.step=function(){};b.Zk=function(){};b.R=function(a){a="Unimplemented"+(a?": "+a:"");b.show(a);b.show("Execution stopped");return a};
  b.Sk=function(){};b.Fk=function(){}};var Oh=DataView.prototype,Ph={size:1,get:Oh.getUint8,set:Oh.setUint8},Qh={size:2,get:Oh.getUint16,set:Oh.setUint16},Rh={size:4,get:Oh.getUint32,set:Oh.setUint32},Th=Sh([{Gi:Rh},{Zh:Ph},{data:Ph},{xk:Ph},{Xk:Ph},{Bk:Ph},{Yk:function(a){return{size:a,get:function(){return-1}}}(7)},{type:Qh},{Tk:Qh},{yk:Rh},{eb:Rh},{Mi:Rh},{qk:Rh},{flags:Rh},{li:Qh},{kh:Qh},{lh:Qh},{Nh:Qh},{Oh:Qh},{al:Qh}]);console.assert(52===Th.reduce(function(a,b){return a+b.size},0));
  var Uh=Sh([{type:Rh},{offset:Rh},{el:Rh},{Ki:Rh},{si:Rh},{Vk:Rh},{flags:Rh},{align:Rh}]);console.assert(32===Uh.reduce(function(a,b){return a+b.size},0));var Yh=Sh([{name:Rh},{type:Rh},{flags:Rh},{Ck:Rh},{offset:Rh},{size:Rh},{link:Rh},{info:Rh},{Dk:Rh},{Nk:Rh}]);console.assert(40===Yh.reduce(function(a,b){return a+b.size},0));
  function Sh(a){return a.map(function(a){var b=Object.keys(a);console.assert(1===b.length);b=b[0];a=a[b];console.assert(0<a.size);return{name:b,type:a,size:a.size,get:a.get,set:a.set}})}
  function ve(a){var b=new DataView(a),c=ia(Zh(b,Th));a=c.next().value;c=c.next().value;console.assert(52===c);console.assert(1179403647===a.Gi,"Bad magic");console.assert(1===a.Zh,"Unimplemented: 64 bit elf");console.assert(1===a.data,"Unimplemented: big endian");console.assert(1===a.xk,"Bad version0");console.assert(2===a.type,"Unimplemented type");console.assert(1===a.yk,"Bad version1");console.assert(52===a.li,"Bad header size");console.assert(32===a.kh,"Bad program header size");console.assert(40===
  a.Nh,"Bad section header size");var d=ia($h(new DataView(b.buffer,b.byteOffset+a.Mi,a.kh*a.lh),Uh,a.lh));c=d.next().value;d.next();b=ia($h(new DataView(b.buffer,b.byteOffset+a.qk,a.Nh*a.Oh),Yh,a.Oh));d=b.next().value;b.next();return{mg:a,hk:c,$k:d}}function Zh(a,b){var c={},d=0;b=ia(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.get.call(a,d,!0);console.assert(void 0===c[e.name]);c[e.name]=f;d+=e.size}return[c,d]}
  function $h(a,b,c){for(var d=[],e=0,f=0;f<c;f++){var h=ia(Zh(new DataView(a.buffer,a.byteOffset+e,void 0),b)),g=h.next().value;h=h.next().value;d.push(g);e+=h}return[d,e]};var Ja=16384,La=4;function ai(a){this.a=[];this.h=[];this.v=a;this.l=this.F=0;this.m=function(){};this.g={};this.A=0;Ia(this,"",-1)}function Da(a,b,c){0==Ba(a,b).status?c():a.h.push({id:b,Sh:c})}function bi(a,b){0==a.l&&(a.m=function(){});for(var c=[],d=0;d<a.h.length;d++)a.h[d].id==b?a.h[d].Sh():c.push(a.h[d]);a.h=c}
  function ci(a,b){b=JSON.parse(b);if(2!==b.version)throw"The filesystem JSON format has changed. Please update your fs2json (https://github.com/copy/fs2json) and recreate the filesystem JSON.";var c=b.fsroot;a.A=b.size;setTimeout(function(){for(var b=0;b<c.length;b++)di(a,c[b],0);a.m=function(){}},0)}
  function di(a,b,c){var d=Ea(a);d.name=b[0];d.size=b[1];d.te=b[2];d.gg=d.te;d.sf=d.te;d.mode=b[3];d.uid=b[4];d.sb=b[5];d.xa=c;a.a[d.xa].Tb++;c=d.mode&61440;if(c===Ja)for(b=b[6],d.fd=!0,d.Tb=2,c=a.a.length,Fa(a,d),d=0;d<b.length;d++)di(a,b[d],c);else 32768===c?(d.status=2,Fa(a,d)):40960===c&&(d.lf=b[6],Fa(a,d))}
  function ei(a,b){var c=a.a[b];2==c.status&&(c.status=3,a.l++,a.v&&fi(a.v+gi(a,c.Qg),function(a){a=this.g[b]=new Uint8Array(a);c.size=a.length;c.status=0;this.l--;bi(this,b)}.bind(a),function(a){throw a;}))}function Fa(a,b){if(-1!=b.xa){a.a.push(b);b.Qg=a.a.length-1;var c=a.a[b.xa];c.fd=!0;b.yb=c.xb;c.xb=a.a.length-1}else 0==a.a.length&&a.a.push(b)}
  function hi(a){this.fd=!1;this.yb=this.xb=this.xa=-1;this.status=0;this.name="";this.eh=this.dh=this.te=this.sf=this.gg=this.Qg=this.sb=this.uid=this.size=0;this.lf="";this.Tb=1;this.mode=493;this.ob={type:0,version:0,path:a};this.Ra=void 0}function Ea(a){return new hi(++a.F)}function Ia(a,b,c){var d=Ea(a);d.name=b;d.xa=c;d.mode=511|Ja;d.fd=!0;d.Tb=2;0<=c&&(d.uid=a.a[c].uid,d.sb=a.a[c].sb,d.mode=a.a[c].mode&511|Ja,a.a[c].Tb++);d.ob.type=Ja>>8;Fa(a,d);return a.a.length-1}
  function Ka(a,b,c){var d=Ea(a);d.name=b;d.xa=c;d.uid=a.a[c].uid;d.sb=a.a[c].sb;a.a[c].Tb++;d.ob.type=128;d.mode=a.a[c].mode&438|32768;Fa(a,d);return a.a.length-1}function Ha(a,b,c,d,e){var f=Ea(a);f.name=b;f.xa=c;f.dh=d;f.eh=e;f.uid=a.a[c].uid;f.sb=a.a[c].sb;a.a[c].Tb++;f.ob.type=192;f.mode=a.a[c].mode&438;Fa(a,f);return a.a.length-1}function Ga(a,b,c,d){var e=Ea(a);e.name=b;e.xa=c;e.uid=a.a[c].uid;e.sb=a.a[c].sb;a.a[c].Tb++;e.ob.type=160;e.lf=d;e.mode=40960;Fa(a,e);return a.a.length-1}
  function ii(a,b,c,d){b=Ka(a,b,c);c=a.a[b];(a.g[b]=new Uint8Array(d.length)).set(d);c.size=d.length}
  function Ca(a,b){var c=Ba(a,b);if((c.mode&61440)==Ja){var d=Ba(a,b);if(d.fd){var e=d.xa;-1==e&&(e=0);for(var f=0,h=a.a[b].xb;-1!=h;)f+=24+ji(a.a[h].name),h=a.a[h].yb;f=f+25+26;var g=a.g[b]=new Uint8Array(f);d.size=f;f=0;f+=xa(["Q","d","b","s"],[a.a[b].ob,f+25,a.a[b].mode>>12,"."],g,f);f+=xa(["Q","d","b","s"],[a.a[e].ob,f+13+8+1+2+2,a.a[e].mode>>12,".."],g,f);for(h=a.a[b].xb;-1!=h;)f+=xa(["Q","d","b","s"],[a.a[h].ob,f+13+8+1+2+ji(a.a[h].name),a.a[h].mode>>12,a.a[h].name],g,f),h=a.a[h].yb;d.fd=!1}}return 2==
  c.status?(ei(a,b),!1):!0}function Ra(a,b){var c=Ba(a,b);c.status==La&&(c.status=-1,delete a.g[b],c.size=0)}function Oa(a,b,c,d,e){if(b==d&&c==e)return!0;c=Pa(a,b,c);if(-1==c)return!1;var f=Pa(a,d,e);-1!=f&&Qa(a,f);f=a.a[c];if(a.a[f.xa].xb==c)a.a[f.xa].xb=f.yb;else{var h=ki(a,c);a.a[h].yb=f.yb}f.xa=d;f.name=e;f.ob.version++;f.yb=a.a[f.xa].xb;a.a[f.xa].xb=c;a.a[b].fd=!0;a.a[d].fd=!0;a.a[b].Tb--;a.a[d].Tb++;return!0}
  function Na(a,b,c,d,e){var f=a.a[b],h=a.g[b];!h||h.length<c+d?(Ma(a,b,Math.floor(3*(c+d)/2)),f.size=c+d,h=a.g[b]):f.size<c+d&&(f.size=c+d);for(a=0;a<d;a++)h[c+a]=e()}function Pa(a,b,c){for(b=a.a[b].xb;-1!=b;){if(a.a[b].name==c)return b;b=a.a[b].yb}return-1}function gi(a,b){for(var c="";0!=b;)c="/"+a.a[b].name+c,b=a.a[b].xa;return c.substring(1)}function ki(a,b){var c=Ba(a,b);for(c=a.a[c.xa].xb;-1!=c&&a.a[c].yb!=b;)c=a.a[c].yb;return c}
  function Qa(a,b){if(0==b)return!1;var c=Ba(a,b);if((c.mode&61440)==Ja&&-1!=c.xb)return!1;a.a[c.xa].xb==b?a.a[c.xa].xb=c.yb:(b=ki(a,b),a.a[b].yb=c.yb);a.a[c.xa].fd=!0;a.a[c.xa].Tb--;c.status=La;c.yb=-1;c.xb=-1;c.xa=-1;c.Tb--;return!0}function Ba(a,b){return isNaN(b)||0>b||b>a.a.length?0:a.a[b]}function Ma(a,b,c){var d=Ba(a,b),e=a.g[b];if(c!=d.size&&(a=a.g[b]=new Uint8Array(c),d.size=c,e))for(c=Math.min(e.length,d.size),d=0;d<c;d++)a[d]=e[d]}
  function li(a,b){b=b.replace("//","/");b=b.split("/");var c=b.length;0==b[c-1].length&&b.pop();0==b[0].length&&b.shift();c=b.length;for(var d=0,e=-1,f=0;f<c;f++){e=Pa(a,d,b[f]);if(-1==e)return f<c-1?{id:-1,xa:-1,name:b[f]}:{id:-1,xa:d,name:b[f]};d=e}return{id:e,xa:d,name:b[f]}}
  function Sa(a,b){a=Ba(a,b);if(a.Ra)return a.Ra.length;a.Ra=new Uint8Array(12);a.Ra[0]=0;a.Ra[1]=0;a.Ra[2]=0;a.Ra[3]=1;a.Ra[4]=255;a.Ra[5]=255;a.Ra[6]=255;a.Ra[7]=255;a.Ra[8]=255;a.Ra[9]=255;a.Ra[10]=255;a.Ra[11]=255;return a.Ra.length};var fi;fi="undefined"!==typeof XMLHttpRequest?function(a,b,c){var d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType="arraybuffer";d.onreadystatechange=function(){if(4==d.readyState)if(200!=d.status&&0!=d.status)c("Error: Could not load file "+a);else{var e=d.response;e?b(e):c("Error: No data received from: "+a)}};d.send(null)}:function(a,b,c){require("fs").readFile(a,function(a,e){a?c(a):b((new Uint8Array(e)).buffer)})};function xa(a,b,c,d){for(var e,f=0,h=0;h<a.length;h++)switch(e=b[h],a[h]){case "w":c[d++]=e&255;c[d++]=e>>8&255;c[d++]=e>>16&255;c[d++]=e>>24&255;f+=4;break;case "d":c[d++]=e&255;c[d++]=e>>8&255;c[d++]=e>>16&255;c[d++]=e>>24&255;c[d++]=0;c[d++]=0;c[d++]=0;c[d++]=0;f+=8;break;case "h":c[d++]=e&255;c[d++]=e>>8;f+=2;break;case "b":c[d++]=e;f+=1;break;case "s":var g=d,p=0;c[d++]=0;c[d++]=0;f+=2;for(var r in e)mi(e.charCodeAt(r)).forEach(function(a){c[d++]=a;f+=1;p++});c[g+0]=p&255;c[g+1]=p>>8&255;break;
  case "Q":xa(["b","w","d"],[e.type,e.version,e.path],c,d),d+=13,f+=13}return f}function Aa(a,b){for(var c=[],d=0;d<a.length;d++)switch(a[d]){case "w":var e=b();e+=b()<<8;e+=b()<<16;e+=b()<<24>>>0;c.push(e);break;case "d":e=b();e+=b()<<8;e+=b()<<16;e+=b()<<24>>>0;b();b();b();b();c.push(e);break;case "h":e=b();c.push(e+(b()<<8));break;case "b":c.push(b());break;case "s":e=b();e+=b()<<8;for(var f="",h=new ni,g=0;g<e;g++){var p=h.h(b());-1!=p&&(f+=String.fromCharCode(p))}c.push(f)}return c};function ni(){this.a=new Uint8Array(5);this.g=0;this.h=function(a){this.a[this.g]=a;this.g++;switch(this.g){case 1:if(128>this.a[0])return this.g=0,this.a[0];break;case 2:if(192==(this.a[0]&224)&&128==(this.a[1]&192))return this.g=0,(this.a[0]&31)<<6|this.a[1]&63}return-1}}function mi(a){if(128>a)return[a];if(2048>a)return[192|a>>6&31,128|a&63]}function ji(a){for(var b=0,c=0;c<a.length;c++)b+=128>a.charCodeAt(c)?1:2;return b};function oi(a){function b(a){!a.altKey&&g[56]&&f(56,!1);return e(a,!1)}function c(a){!a.altKey&&g[56]&&f(56,!1);return e(a,!0)}function d(){for(var a=Object.keys(g),b,c=0;c<a.length;c++)b=+a[c],g[b]&&f(b,!1);g={}}function e(a,b){if(p.w&&(a.shiftKey&&a.ctrlKey&&(74===a.keyCode||75===a.keyCode)||!p.g?0:a.target?"phone_keyboard"===a.target.className||"INPUT"!==a.target.nodeName&&"TEXTAREA"!==a.target.nodeName:1)){a:{if(void 0!==a.code){var c=z[a.code];if(void 0!==c)break a}c=r[a.keyCode]}if(c)return f(c,
  b),a.preventDefault&&a.preventDefault(),!1;console.log("Missing char in map: "+a.keyCode.toString(16))}}function f(a,b){if(b)g[a]&&f(a,!1);else if(!g[a])return;(g[a]=b)||(a|=128);255<a?(h(a>>8),h(a&255)):h(a)}function h(a){p.w.send("keyboard-code",a)}var g={},p=this;this.g=!0;var r=new Uint16Array([0,0,0,0,0,0,0,0,14,15,0,0,0,28,0,0,42,29,56,0,58,0,0,0,0,0,0,1,0,0,0,0,57,57417,57425,57423,57415,57419,57416,57421,80,0,0,0,0,82,83,0,11,2,3,4,5,6,7,8,9,10,0,39,0,13,0,0,0,30,48,46,32,18,33,34,35,23,36,
  37,38,50,49,24,25,16,19,31,20,22,47,17,45,21,44,57435,57436,57437,0,0,82,79,80,81,75,76,77,71,72,73,0,0,0,0,0,0,59,60,61,62,63,64,65,66,67,68,87,88,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,39,13,51,12,52,53,41,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,26,43,27,40,0,57435,57400,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),v={10:13,32:32,39:222,44:188,45:189,46:190,47:191,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,
  56:56,57:57,59:186,61:187,91:219,92:220,93:221,96:192,97:65,98:66,99:67,100:68,101:69,102:70,103:71,104:72,105:73,106:74,107:75,108:76,109:77,110:78,111:79,112:80,113:81,114:82,115:83,116:84,117:85,118:86,119:87,120:88,121:89,122:90},E={33:49,34:222,35:51,36:52,37:53,38:55,40:57,41:48,42:56,43:187,58:186,60:188,62:190,63:191,64:50,65:65,66:66,67:67,68:68,69:69,70:70,71:71,72:72,73:73,74:74,75:75,76:76,77:77,78:78,79:79,80:80,81:81,82:82,83:83,84:84,85:85,86:86,87:87,88:88,89:89,90:90,94:54,95:189,
  123:219,124:220,125:221,126:192},z={Escape:1,Digit1:2,Digit2:3,Digit3:4,Digit4:5,Digit5:6,Digit6:7,Digit7:8,Digit8:9,Digit9:10,Digit0:11,Minus:12,Equal:13,Backspace:14,Tab:15,KeyQ:16,KeyW:17,KeyE:18,KeyR:19,KeyT:20,KeyY:21,KeyU:22,KeyI:23,KeyO:24,KeyP:25,BracketLeft:26,BracketRight:27,Enter:28,ControlLeft:29,KeyA:30,KeyS:31,KeyD:32,KeyF:33,KeyG:34,KeyH:35,KeyJ:36,KeyK:37,KeyL:38,Semicolon:39,Quote:40,Backquote:41,ShiftLeft:42,Backslash:43,KeyZ:44,KeyX:45,KeyC:46,KeyV:47,KeyB:48,KeyN:49,KeyM:50,Comma:51,
  Period:52,Slash:53,ShiftRight:54,NumpadMultiply:55,AltLeft:56,Space:57,CapsLock:58,F1:59,F2:60,F3:61,F4:62,F5:63,F6:64,F7:65,F8:66,F9:67,F10:68,NumLock:69,ScrollLock:70,Numpad7:71,Numpad8:72,Numpad9:73,NumpadSubtract:74,Numpad4:75,Numpad5:76,Numpad6:77,NumpadAdd:78,Numpad1:79,Numpad2:80,Numpad3:81,Numpad0:82,NumpadDecimal:83,IntlBackslash:86,F11:87,F12:88,NumpadEnter:57372,ControlRight:57373,NumpadDivide:57397,AltRight:57400,Home:57423,ArrowUp:57416,PageUp:57417,ArrowLeft:57419,ArrowRight:57421,End:57423,
  ArrowDown:57424,PageDown:57425,Insert:57426,Delete:57427,OSLeft:57435,OSRight:57436,ContextMenu:57437};this.w=a;this.Qb=function(){"undefined"!==typeof window&&(window.removeEventListener("keyup",b,!1),window.removeEventListener("keydown",c,!1),window.removeEventListener("blur",d,!1))};this.Sb=function(){"undefined"!==typeof window&&(this.Qb(),window.addEventListener("keyup",b,!1),window.addEventListener("keydown",c,!1),window.addEventListener("blur",d,!1))};this.Sb();this.a=function(a){a={keyCode:a};
  e(a,!0);e(a,!1)};this.h=function(a){var b=a.charCodeAt(0);b in v?this.a(v[b]):b in E?(h(42),this.a(E[b]),h(170)):console.log("ascii -> keyCode not found: ",b,a)}};function pi(a,b){function c(a){if(ja.enabled&&ja.a)if("mousemove"===a.type||"touchmove"===a.type)a=!0;else if("mousewheel"===a.type||"DOMMouseScroll"===a.type)a:{for(a=a.target;a.parentNode;){if(a===(b||document.body)){a=!0;break a}a=a.parentNode}a=!1}else a=!a.target||"INPUT"!==a.target.nodeName&&"TEXTAREA"!==a.target.nodeName;else a=!1;return a}function d(a){c(a)&&(a=a.changedTouches)&&a.length&&(a=a[a.length-1],C=a.clientX,K=a.clientY)}function e(){if(v||z||E)ja.w.send("mouse-click",[!1,!1,!1]),
  v=z=E=!1}function f(a){if(ja.w&&c(a)){var d=0,e=0,f=a.changedTouches;f?f.length&&(f=f[f.length-1],d=f.clientX-C,e=f.clientY-K,C=f.clientX,K=f.clientY,a.preventDefault()):"number"===typeof a.movementX?(d=a.movementX,e=a.movementY):"number"===typeof a.webkitMovementX?(d=a.webkitMovementX,e=a.webkitMovementY):"number"===typeof a.mozMovementX?(d=a.mozMovementX,e=a.mozMovementY):(d=a.clientX-C,e=a.clientY-K,C=a.clientX,K=a.clientY);ja.w.send("mouse-delta",[.15*d,-(.15*e)]);ja.w.send("mouse-absolute",[a.pageX-
  b.offsetLeft,a.pageY-b.offsetTop,b.offsetWidth,b.offsetHeight])}}function h(a){c(a)&&p(a,!0)}function g(a){c(a)&&p(a,!1)}function p(a,b){ja.w&&(1===a.which?v=b:2===a.which?z=b:3===a.which?E=b:console.log("Unknown event.which: "+a.which),ja.w.send("mouse-click",[v,z,E]))}function r(a){if(c(a)){var b=a.wheelDelta||-a.detail;0>b?b=-1:0<b&&(b=1);ja.w.send("mouse-wheel",[b,0]);a.preventDefault()}}var v=!1,E=!1,z=!1,C=0,K=0,ja=this;this.enabled=!1;this.a=!0;this.w=a;this.w.register("mouse-enable",function(a){this.enabled=
  a},this);this.Qb=function(){window.removeEventListener("touchstart",d,!1);window.removeEventListener("touchend",e,!1);window.removeEventListener("touchmove",f,!1);window.removeEventListener("mousemove",f,!1);window.removeEventListener("mousedown",h,!1);window.removeEventListener("mouseup",g,!1);window.removeEventListener("DOMMouseScroll",r,!1);window.removeEventListener("mousewheel",r,!1)};this.Sb=function(){"undefined"!==typeof window&&(this.Qb(),window.addEventListener("touchstart",d,!1),window.addEventListener("touchend",
  e,!1),window.addEventListener("touchmove",f,!1),window.addEventListener("mousemove",f,!1),window.addEventListener("mousedown",h,!1),window.addEventListener("mouseup",g,!1),window.addEventListener("DOMMouseScroll",r,!1),window.addEventListener("mousewheel",r,!1))};this.Sb()};function qi(a){if("undefined"!==typeof window)if(window.AudioContext||window.webkitAudioContext){var b=window.AudioWorklet?ri:si;this.w=a;this.da=new (window.AudioContext||window.webkitAudioContext);this.a=new ti(a,this.da);this.g=new ui(a,this.da,this.a);new b(a,this.da,this.a);this.g.start();a.register("emulator-stopped",function(){this.da.suspend()},this);a.register("emulator-started",function(){this.da.resume()},this);a.register("speaker-confirm-initialized",function(){a.send("speaker-has-initialized")},
  this);a.send("speaker-has-initialized")}else console.warn("Web browser doesn't support Web Audio API")}
  function ti(a,b){function c(a){return function(b){a.gain.setValueAtTime(b,this.da.currentTime)}}this.da=b;this.Od=new Map;this.Vg=this.Ug=this.P=this.L=this.A=1;this.h=this.da.createBiquadFilter();this.l=this.da.createBiquadFilter();this.h.type="highshelf";this.l.type="highshelf";this.h.frequency.setValueAtTime(2E3,this.da.currentTime);this.l.frequency.setValueAtTime(2E3,this.da.currentTime);this.a=this.da.createBiquadFilter();this.g=this.da.createBiquadFilter();this.a.type="lowshelf";this.g.type=
  "lowshelf";this.a.frequency.setValueAtTime(200,this.da.currentTime);this.g.frequency.setValueAtTime(200,this.da.currentTime);this.m=this.da.createGain();this.v=this.da.createGain();this.F=this.da.createChannelMerger(2);this.T=this.h;this.W=this.l;this.h.connect(this.a);this.a.connect(this.m);this.m.connect(this.F,0,0);this.l.connect(this.g);this.g.connect(this.v);this.v.connect(this.F,0,1);this.F.connect(this.da.destination);a.register("mixer-connect",function(a){var b=a[1];a=this.Od.get(a[0]);void 0===
  a||a.connect(b)},this);a.register("mixer-disconnect",function(a){var b=a[1];a=this.Od.get(a[0]);void 0===a||a.disconnect(b)},this);a.register("mixer-volume",function(a){var b=a[0],c=a[1];a=Math.pow(10,a[2]/20);b=0===b?this:this.Od.get(b);void 0===b||b.Mh(a,c)},this);a.register("mixer-gain-left",function(a){this.Ug=Math.pow(10,a/20);this.update()},this);a.register("mixer-gain-right",function(a){this.Vg=Math.pow(10,a/20);this.update()},this);a.register("mixer-treble-left",c(this.h),this);a.register("mixer-treble-right",
  c(this.l),this);a.register("mixer-bass-left",c(this.a),this);a.register("mixer-bass-right",c(this.g),this)}function vi(a,b,c){b=new wi(a.da,b,a.T,a.W);a.Od.has(c);a.Od.set(c,b);return b}ti.prototype.Mh=function(a,b){void 0===b&&(b=2);switch(b){case 0:this.L=a;break;case 1:this.P=a;break;case 2:this.A=a;break;default:return}this.update()};ti.prototype.update=function(){var a=this.A*this.P*this.Vg;this.m.gain.setValueAtTime(this.A*this.L*this.Ug,this.da.currentTime);this.v.gain.setValueAtTime(a,this.da.currentTime)};
  function wi(a,b,c,d){this.da=a;this.v=this.m=!0;this.L=this.F=this.l=this.a=1;this.A=a.createChannelSplitter(2);this.g=a.createGain();this.h=a.createGain();b.connect(this.A);this.A.connect(this.g,0);this.g.connect(c);this.A.connect(this.h,1);this.h.connect(d)}wi.prototype.update=function(){var a=this.v*this.a*this.l*this.L;this.g.gain.setValueAtTime(this.m*this.a*this.l*this.F,this.da.currentTime);this.h.gain.setValueAtTime(a,this.da.currentTime)};
  wi.prototype.connect=function(a){var b=!a||2===a;if(b||0===a)this.m=!0;if(b||1===a)this.v=!0;this.update()};wi.prototype.disconnect=function(a){var b=!a||2===a;if(b||0===a)this.m=!1;if(b||1===a)this.v=!1;this.update()};wi.prototype.Mh=function(a,b){void 0===b&&(b=2);switch(b){case 0:this.F=a;break;case 1:this.L=a;break;case 2:this.l=a;break;default:return}this.update()};
  function ui(a,b,c){this.ve=b.createOscillator();this.ve.type="square";this.ve.frequency.setValueAtTime(440,b.currentTime);this.a=vi(c,this.ve,1);this.a.disconnect();a.register("pcspeaker-enable",function(){var a=c.Od.get(1);void 0===a||a.connect(void 0)},this);a.register("pcspeaker-disable",function(){var a=c.Od.get(1);void 0===a||a.disconnect(void 0)},this);a.register("pcspeaker-update",function(a){var c=a[1],d=0;3===a[0]&&(d=Math.min(1193181.6665999999/c,this.ve.frequency.maxValue),d=Math.max(d,
  0));this.ve.frequency.setValueAtTime(d,b.currentTime)},this)}ui.prototype.start=function(){this.ve.start()};
  function ri(a,b,c){var d=this;this.w=a;this.da=b;this.enabled=!1;this.Nb=48E3;b=function(){function a(a){if(0===a)return 1;a*=Math.PI;return Math.sin(a)/a}function b(){var a=Reflect.construct(AudioWorkletProcessor,[],b);a.L=3;a.m=Array(1024);a.A=0;a.P=0;a.v=0;a.Ab=a.m.length;a.F=0;a.T=c;a.a=c;a.W=1;a.l=0;a.h=0;a.g=0;a.port.onmessage=function(b){switch(b.data.type){case "queue":a.Za(b.data.value);break;case "sampling-rate":a.W=b.data.value/sampleRate}};return a}var c=[new Float32Array(256),new Float32Array(256)];
  Reflect.setPrototypeOf(b.prototype,AudioWorkletProcessor.prototype);Reflect.setPrototypeOf(b,AudioWorkletProcessor);b.prototype.process=function(a,b){for(a=0;a<b[0][0].length;a++){for(var c=0,d=0,e=this.g+this.L,f=this.g-this.L+1;f<=e;f++){var g=this.l+f;c+=this.ja(g,0)*this.ka(this.h-f);d+=this.ja(g,1)*this.ka(this.h-f)}if(isNaN(c)||isNaN(d))c=d=0;b[0][0][a]=c;b[0][1][a]=d;this.h+=this.W;this.g=Math.floor(this.h)}b=this.g;b+=this.L+2;this.h-=this.g;this.l+=this.g;this.g=0;this.Ca(b);return!0};b.prototype.ka=
  function(b){return a(b)*a(b/this.L)};b.prototype.ja=function(a,b){return 0>a?(a+=this.T[0].length,this.T[b][a]):this.a[b][a]};b.prototype.Ca=function(a){var b=this.a[0].length;b-this.l<a&&(this.Ya(),this.l-=b)};b.prototype.Ya=function(){this.T=this.a;this.a=this.ra();var a=this.a[0].length;if(256>a){for(var b=this.A,c=0;256>a&&c<this.v;)a+=this.m[b][0].length,b=b+1&this.Ab-1,c++;a=Math.max(a,256);a=[new Float32Array(a),new Float32Array(a)];a[0].set(this.a[0]);a[1].set(this.a[1]);b=this.a[0].length;
  for(var d=0;d<c;d++){var e=this.ra();a[0].set(e[0],b);a[1].set(e[1],b);b+=e[0].length}this.a=a}this.Gc()};b.prototype.Gc=function(){1024>this.F/this.W&&this.port.postMessage({type:"pump"})};b.prototype.Za=function(a){this.v<this.Ab&&(this.m[this.P]=a,this.P=this.P+1&this.Ab-1,this.v++,this.F+=a[0].length,this.Gc())};b.prototype.ra=function(){if(!this.v)return c;var a=this.m[this.A];this.m[this.A]=null;this.A=this.A+1&this.Ab-1;this.v--;this.F-=a[0].length;return a};registerProcessor("dac-processor",
  b)}.toString();var e=URL.createObjectURL(new Blob([b.substring(b.indexOf("{")+1,b.lastIndexOf("}"))],{type:"application/javascript"}));this.Wc=null;this.a=this.da.createGain();this.da.audioWorklet.addModule(e).then(function(){URL.revokeObjectURL(e);d.Wc=new AudioWorkletNode(d.da,"dac-processor",{numberOfInputs:0,numberOfOutputs:1,outputChannelCount:[2]});d.Wc.port.postMessage({type:"sampling-rate",value:d.Nb});d.Wc.port.onmessage=function(a){switch(a.data.type){case "pump":d.Gc()}};d.Wc.connect(d.a)});
  this.g=vi(c,this.a,2);this.g.a=3;a.register("dac-send-data",function(a){this.ug(a)},this);a.register("dac-enable",function(){this.enabled=!0},this);a.register("dac-disable",function(){this.enabled=!1},this);a.register("dac-tell-sampling-rate",function(a){this.Nb=a;this.Wc&&this.Wc.port.postMessage({type:"sampling-rate",value:a})},this)}ri.prototype.ug=function(a){this.Wc&&this.Wc.port.postMessage({type:"queue",value:a},[a[0].buffer,a[1].buffer])};ri.prototype.Gc=function(){this.enabled&&this.w.send("dac-request-data")};
  function si(a,b,c){this.w=a;this.da=b;this.enabled=!1;this.Nb=22050;this.a=0;this.gf=1;this.Mf=this.da.createBiquadFilter();this.Mf.type="lowpass";this.h=this.Mf;this.g=vi(c,this.h,2);this.g.a=3;a.register("dac-send-data",function(a){this.ug(a)},this);a.register("dac-enable",function(){this.enabled=!0;this.Gc()},this);a.register("dac-disable",function(){this.enabled=!1},this);a.register("dac-tell-sampling-rate",function(a){this.Nb=a;this.gf=Math.ceil(8E3/a);this.Mf.frequency.setValueAtTime(a/2,this.da.currentTime)},
  this)}
  si.prototype.ug=function(a){var b=this,c=a[0].length,d=c/this.Nb;if(1<this.gf){var e=this.da.createBuffer(2,c*this.gf,this.Nb*this.gf);for(var f=e.getChannelData(0),h=e.getChannelData(1),g=0,p=0;p<c;p++)for(var r=0;r<this.gf;r++,g++)f[g]=a[0][p],h[g]=a[1][p]}else e=this.da.createBuffer(2,c,this.Nb),e.copyToChannel(a[0],0),e.copyToChannel(a[1],1);a=this.da.createBufferSource();a.buffer=e;a.connect(this.Mf);a.addEventListener("ended",this.Gc.bind(this));e=this.da.currentTime;if(this.a<e)for(this.a=e,
  e=.2-d,c=0;c<=e;)c+=d,this.a+=d,setTimeout(function(){return b.Gc()},1E3*c);a.start(this.a);this.a+=d;setTimeout(function(){return b.Gc()},0)};si.prototype.Gc=function(){this.enabled&&(.2<this.a-this.da.currentTime||this.w.send("dac-request-data"))};function xi(a,b){function c(a){h.w&&h.enabled&&(h.g(a.which),a.preventDefault())}function d(a){var b=a.which;8===b?(h.g(127),a.preventDefault()):9===b&&(h.g(9),a.preventDefault())}function e(a){if(h.enabled){for(var b=a.clipboardData.getData("text/plain"),c=0;c<b.length;c++)h.g(b.charCodeAt(c));a.preventDefault()}}function f(b){b.target!==a&&a.blur()}var h=this;this.enabled=!0;this.w=b;this.text="";this.l=!1;this.h=0;this.w.register("serial0-output-char",function(a){this.rk(a)},this);this.Qb=function(){a.removeEventListener("keypress",
  c,!1);a.removeEventListener("keydown",d,!1);a.removeEventListener("paste",e,!1);window.removeEventListener("mousedown",f,!1)};this.Sb=function(){this.Qb();a.addEventListener("keypress",c,!1);a.addEventListener("keydown",d,!1);a.addEventListener("paste",e,!1);window.addEventListener("mousedown",f,!1)};this.Sb();this.rk=function(a){"\b"===a?(this.text=this.text.slice(0,-1),this.update()):"\r"!==a&&(this.text+=a,"\n"===a&&(this.l=!0),this.update())};this.update=function(){var a=this,b=Date.now(),c=b-
  this.h;16>c?void 0===this.a&&(this.a=setTimeout(function(){a.a=void 0;a.h=Date.now();a.m()},16-c)):(void 0!==this.a&&(clearTimeout(this.a),this.a=void 0),this.h=b,this.m())};this.m=function(){a.value=this.text;this.l&&(this.l=!1,a.scrollTop=1E9)};this.g=function(a){h.w&&h.w.send("serial0-input",a)}};function yi(a,b){this.w=b;this.a=void 0;this.g=[];this.url=a;this.h=Date.now()-1E4;this.w.register("net0-send",function(a){this.send(a)},this)}k=yi.prototype;k.xi=function(a){this.w&&this.w.send("net0-receive",new Uint8Array(a.data))};k.Yg=function(){this.connect();setTimeout(this.connect.bind(this),1E4)};k.yi=function(){for(var a=0;a<this.g.length;a++)this.send(this.g[a]);this.g=[]};k.wi=function(){};k.Qb=function(){this.a&&this.a.close()};
  k.connect=function(){if(this.a){var a=this.a.readyState;if(0===a||1===a)return}if(!(this.h+1E4>Date.now())){this.h=Date.now();try{this.a=new WebSocket(this.url)}catch(b){this.Yg(void 0);return}this.a.binaryType="arraybuffer";this.a.onopen=this.yi.bind(this);this.a.onmessage=this.xi.bind(this);this.a.onclose=this.Yg.bind(this);this.a.onerror=this.wi.bind(this)}};k.send=function(a){this.a&&1===this.a.readyState?this.a.send(a):(this.g.push(a),128<this.g.length&&(this.g=this.g.slice(-64)),this.connect())};(function(){function a(a,b){var c=new XMLHttpRequest;c.open(b.method||"get",a,!0);b.He||(c.responseType="arraybuffer");if(b.headers)for(var d=Object.keys(b.headers),e=0;e<d.length;e++){var f=d[e];c.setRequestHeader(f,b.headers[f])}b.ye&&(d=b.ye.start,c.setRequestHeader("Range","bytes="+d+"-"+(d+b.ye.length-1)));c.onload=function(){4===c.readyState&&(200!==c.status&&206!==c.status?console.error("Loading the image `"+a+"` failed (status %d)",c.status):c.response&&b.done&&b.done(c.response,c))};b.yh&&
  (c.onprogress=function(a){b.yh(a)});c.send(null)}function b(a,b){var c=require("fs");b.ye?c.open(a,"r",function(a,d){if(a)throw a;a=b.ye.length;var e=new global.Buffer(a);c.read(d,e,0,a,b.ye.start,function(a){if(a)throw a;b.done&&b.done(new Uint8Array(e));c.close(d,function(a){if(a)throw a;})})}):c.readFile(a,{encoding:b.He?"utf-8":null},function(c,d){c?console.log("Could not read file:",a,c):(c=d,b.He||(c=(new Uint8Array(c)).buffer),b.done(c))})}function c(a,b){this.filename=a;this.a=256;this.byteLength=
  b;this.g={};this.onload=void 0}function d(a){this.a=a;this.byteLength=a.size;1073741824<a.size&&console.warn("SyncFileBuffer: Allocating buffer of "+(a.size>>20)+" MB ...");this.buffer=new ArrayBuffer(a.size);this.onload=void 0}function e(a){this.h=a;this.byteLength=a.size;this.a=256;this.g={};this.onload=void 0}"undefined"===typeof XMLHttpRequest?rb=b:rb=a;sb=c;tb=e;Xa=d;var f="undefined"===typeof XMLHttpRequest?function(a,b){require("fs").stat(a,function(a,c){a?b(a):b(null,c.size)})}:function(a,
  b){rb(a,{done:function(a,c){a=c.getResponseHeader("Content-Range")||"";(c=a.match(/\/(\d+)\s*$/))?b(null,+c[1]):b({mg:a})},headers:{Range:"bytes=0-0"}})};c.prototype.load=function(){var a=this;void 0!==this.byteLength?this.onload&&this.onload({}):f(this.filename,function(b,c){b?console.assert(!1,"Cannot use: "+a.filename+". `Range: bytes=...` header not supported (Got `"+b.mg+"`)"):(a.byteLength=c,a.onload&&a.onload({}))})};c.prototype.h=function(a,b){var c=b/this.a;a/=this.a;for(var d=0;d<c;d++)if(!this.g[a+
  d])return;if(1===c)return this.g[a];b=new Uint8Array(b);for(d=0;d<c;d++)b.set(this.g[a+d],d*this.a);return b};c.prototype.get=function(a,b,c){console.assert(a+b<=this.byteLength);console.assert(0===a%this.a);console.assert(0===b%this.a);console.assert(b);var d=this.h(a,b,c);d?c(d):rb(this.filename,{done:function(d){d=new Uint8Array(d);this.l(a,b,d);c(d)}.bind(this),ye:{start:a,length:b}})};c.prototype.set=function(a,b,c){console.assert(a+b.byteLength<=this.byteLength);var d=b.length;console.assert(0===
  a%this.a);console.assert(0===d%this.a);console.assert(d);a/=this.a;d/=this.a;for(var e=0;e<d;e++){var f=this.g[a+e];void 0===f&&(f=this.g[a+e]=new Uint8Array(this.a));var g=b.subarray(e*this.a,(e+1)*this.a);f.set(g);console.assert(f.byteLength===g.length)}c()};c.prototype.l=function(a,b,c){a/=this.a;b/=this.a;for(var d=0;d<b;d++){var e=this.g[a+d];e&&c.set(e,d*this.a)}};c.prototype.Ve=function(a){a()};d.prototype.load=function(){this.g(0)};d.prototype.g=function(a){var b=new FileReader;b.onload=function(b){b=
  new Uint8Array(b.target.result);(new Uint8Array(this.buffer,a)).set(b);this.g(a+4194304)}.bind(this);a<this.byteLength?b.readAsArrayBuffer(this.a.slice(a,Math.min(a+4194304,this.byteLength))):(this.a=void 0,this.onload&&this.onload({buffer:this.buffer}))};d.prototype.get=function(a,b,c){console.assert(a+b<=this.byteLength);c(new Uint8Array(this.buffer,a,b))};d.prototype.set=function(a,b,c){console.assert(a+b.byteLength<=this.byteLength);(new Uint8Array(this.buffer,a,b.byteLength)).set(b);c()};d.prototype.Ve=
  function(a){a(this.buffer)};e.prototype.load=function(){this.onload&&this.onload({})};e.prototype.get=function(a,b,c){console.assert(0===a%this.a);console.assert(0===b%this.a);console.assert(b);var d=this.l(a,b,c);d?c(d):(d=new FileReader,d.onload=function(d){d=new Uint8Array(d.target.result);this.m(a,b,d);c(d)}.bind(this),d.readAsArrayBuffer(this.h.slice(a,a+b)))};e.prototype.l=c.prototype.h;e.prototype.set=c.prototype.set;e.prototype.m=c.prototype.l;e.prototype.Ve=function(a){a()};e.prototype.Wg=
  function(a){for(var b=[],c=Object.keys(this.g).map(Number).sort(function(a,b){return a-b}),d=0,e=0;e<c.length;e++){var f=c[e],h=this.g[f];f*=this.a;console.assert(f>=d);f!==d&&(b.push(this.h.slice(d,f)),d=f);b.push(h);d+=h.length}d!==this.h.size&&b.push(this.h.slice(d));a=new File(b,a);console.assert(a.size===this.h.size);return a}})();function l(a){function b(a,b){switch(a){case "hda":g.Oa=this.md.hda=b;break;case "hdb":g.Cf=this.md.hdb=b;break;case "cdrom":g.Sa=this.md.cdrom=b;break;case "fda":g.Ta=this.md.fda=b;break;case "fdb":g.Og=this.md.fdb=b;break;case "multiboot":g.ue=this.md.multiboot=b;break;case "bios":g.ge=b.buffer;break;case "vga_bios":g.zk=b.buffer;break;case "initial_state":g.qe=b.buffer;break;case "fs9p_json":g.Sg=b.buffer}}function c(a,b){if(b)if(b.get&&b.set&&b.load)p.push({name:a,yd:b});else{b={buffer:b.buffer,
  async:b.async,url:b.url,size:b.size};if("bios"===a||"vga_bios"===a||"initial_state"===a||"multiboot"===a)b.async=!1;b.buffer instanceof ArrayBuffer?(b=new yb(b.buffer),p.push({name:a,yd:b})):"undefined"!==typeof File&&b.buffer instanceof File?(void 0===b.async&&(b.async=268435456<=b.buffer.size),b=b.async?new tb(b.buffer):new Xa(b.buffer),p.push({name:a,yd:b})):b.url&&(b.async?(b=new sb(b.url,b.size),p.push({name:a,yd:b})):p.push({name:a,url:b.url,size:b.size}))}}function d(){g.qe&&(g.Ka=0);this.w.send("cpu-init",
  g);setTimeout(function(){g.qe&&h.Ld(g.qe);setTimeout(function(){g.Qc&&g.Sg&&ci(g.Qc,g.Sg);a.autostart&&this.w.send("cpu-run")}.bind(this),0)}.bind(this),0)}this.Ke=!1;var e=me(),f=this.w=e[0];this.l=e[1];var h=this.a=new ib(this.l);this.w.register("emulator-stopped",function(){this.Ke=!1},this);this.w.register("emulator-started",function(){this.Ke=!0},this);var g={};this.md={fda:void 0,fdb:void 0,hda:void 0,hdb:void 0,cdrom:void 0};g.Fi=!0;g.Ka=a.memory_size||67108864;g.La=a.vga_memory_size||8388608;
  g.he=a.boot_order||531;g.ri=a.fastboot||!1;g.Ta=void 0;g.Og=void 0;a.network_relay_url&&(new yi(a.network_relay_url,f),g.pi=!0);a.disable_keyboard||(this.h=new oi(f));a.disable_mouse||(this.m=new pi(f,a.screen_container));a.screen_container?this.g=new Ta(a.screen_container,f):a.screen_dummy&&(this.g=new zi(f));a.serial_container&&new xi(a.serial_container,f);a.disable_speaker||new qi(f);var p=[];e="bios vga_bios cdrom hda hdb fda fdb initial_state multiboot".split(" ");for(f=0;f<e.length;f++)c(e[f],
  a[e[f]]);if(a.filesystem&&(e=a.filesystem.basefs,f=a.filesystem.baseurl,this.Qc=new ai(f),g.Qc=this.Qc,e)){console.assert(f,"Filesystem: baseurl must be specified");if("object"===typeof e){var r=e.size;e=e.url}p.push({name:"fs9p_json",url:e,size:r,He:!0})}var v=this,E=p.length,z=function(a){if(a===E)setTimeout(d.bind(this),0);else{var c=p[a];c.yd?(c.yd.onload=function(){b.call(this,c.name,c.yd);z(a+1)}.bind(this),c.yd.load()):rb(c.url,{done:function(d){b.call(this,c.name,new yb(d));z(a+1)}.bind(this),
  yh:function(b){200===b.target.status?v.l.send("download-progress",{zf:a,yf:E,Rg:c.url,lengthComputable:b.lengthComputable,total:b.total||c.size,loaded:b.loaded}):v.l.send("download-error",{zf:a,yf:E,Rg:c.url,request:b.target})},He:c.He})}}.bind(this);z(0)}l.prototype.hf=function(){this.w.send("cpu-run")};l.prototype.run=l.prototype.hf;l.prototype.stop=function(){this.w.send("cpu-stop")};l.prototype.stop=l.prototype.stop;l.prototype.Qb=function(){this.h.Qb()};l.prototype.destroy=l.prototype.Qb;
  l.prototype.Xf=function(){this.w.send("cpu-restart")};l.prototype.restart=l.prototype.Xf;l.prototype.ab=function(a,b){this.w.register(a,b,this)};l.prototype.add_listener=l.prototype.ab;l.prototype.lk=function(a,b){this.w.unregister(a,b)};l.prototype.remove_listener=l.prototype.lk;l.prototype.Ld=function(a){this.a.Ld(a)};l.prototype.restore_state=l.prototype.Ld;l.prototype.Be=function(a){setTimeout(function(){try{a(null,this.a.Be())}catch(b){a(b,null)}}.bind(this),0)};l.prototype.save_state=l.prototype.Be;
  l.prototype.vi=function(){console.warn("V86Starter.prototype.get_statistics is deprecated. Use events instead.");var a={j:{Rk:this.lg()}};if(!this.a)return a;var b=this.a.j.H;b.Oa&&(a.Oa=b.Oa.Qa);b.Sa&&(a.Sa=b.Sa.Qa);b.Tf&&(a.mouse={enabled:b.Tf.gd});b.Ud&&(a.vga={is_graphical:b.Ud.Qa.ng});return a};l.prototype.get_statistics=l.prototype.vi;l.prototype.lg=function(){return this.a?this.a.j.$:0};l.prototype.get_instruction_counter=l.prototype.lg;l.prototype.Ci=function(){return this.Ke};
  l.prototype.is_running=l.prototype.Ci;l.prototype.Gf=function(a){for(var b=0;b<a.length;b++)this.w.send("keyboard-code",a[b])};l.prototype.keyboard_send_scancodes=l.prototype.Gf;l.prototype.Di=function(a){for(var b=0;b<a.length;b++)this.h.a(a[b])};l.prototype.keyboard_send_keys=l.prototype.Di;l.prototype.$g=function(a){for(var b=0;b<a.length;b++)this.h.h(a[b])};l.prototype.keyboard_send_text=l.prototype.$g;l.prototype.Ih=function(){this.g&&this.g.h()};l.prototype.screen_make_screenshot=l.prototype.Ih;
  l.prototype.Jh=function(a,b){this.g&&this.g.a(a,b)};l.prototype.screen_set_scale=l.prototype.Jh;l.prototype.Hh=function(){if(this.g){var a=document.getElementById("screen_container");if(a){var b=a.requestFullScreen||a.webkitRequestFullscreen||a.mozRequestFullScreen||a.msRequestFullScreen;b&&(b.call(a),(a=document.getElementsByClassName("phone_keyboard")[0])&&a.focus());this.Hf()}}};l.prototype.screen_go_fullscreen=l.prototype.Hh;
  l.prototype.Hf=function(){var a=document.body,b=a.requestPointerLock||a.mozRequestPointerLock||a.webkitRequestPointerLock;b&&b.call(a)};l.prototype.lock_mouse=l.prototype.Hf;l.prototype.Ei=function(a){this.h&&(this.h.g=a)};l.prototype.keyboard_set_status=l.prototype.Ei;l.prototype.pk=function(a){for(var b=0;b<a.length;b++)this.w.send("serial0-input",a.charCodeAt(b))};l.prototype.serial0_send=l.prototype.pk;
  l.prototype.Hg=function(a,b,c){var d=this.Qc;if(d){var e=a.split("/");e=e[e.length-1];a=li(d,a).xa;var f=""===e||-1===a;f||ii(d,e,a,b);c&&setTimeout(function(){f?c(new Ai):c(null)},0)}};l.prototype.create_file=l.prototype.Hg;l.prototype.Bh=function(a,b){var c=this.Qc;if(c){var d=li(c,a).id;-1===d?b(new Ai,null):(Ca(c,d),Da(c,d,function(){var a=c.g[d];a?b(null,a.subarray(0,c.a[d].size)):b(new Ai,null)}))}};l.prototype.read_file=l.prototype.Bh;function Ai(){this.message="File not found"}
  Ai.prototype=Error.prototype;"undefined"!==typeof window?(window.V86Starter=l,window.V86=l):"undefined"!==typeof module&&"undefined"!==typeof module.exports?(module.exports.V86Starter=l,module.exports.V86=l):"function"===typeof importScripts&&(self.V86Starter=l,self.V86=l);function zi(a){var b,c,d,e,f,h,g;this.w=a;a.register("screen-set-mode",function(a){this.Ag(a)},this);a.register("screen-fill-buffer-end",function(a){this.Cg(a[0])},this);a.register("screen-put-char",function(a){this.tg(a[0],a[1],a[2],a[3],a[4])},this);a.register("screen-text-scroll",function(a){console.log("scroll",a)},this);a.register("screen-update-cursor",function(a){this.Sd(a[0],a[1])},this);a.register("screen-update-cursor-scanline",function(a){this.Td(a[0],a[1])},this);a.register("screen-set-size-text",
  function(a){this.Nd(a[0],a[1])},this);a.register("screen-set-size-graphical",function(a){this.Md(a[0],a[1])},this);this.tg=function(a,b,c,d,e){a<g&&b<h&&(a=3*(a*h+b),f[a]=c,f[a+1]=d,f[a+2]=e)};this.Qb=function(){};this.Ag=function(){};this.Gg=function(){};this.Nd=function(a,b){if(a!==h||b!==g)f=new Int32Array(a*b*3),h=a,g=b};this.Md=function(a,d){b=new Uint8Array(4*a*d);c=new Int32Array(b.buffer);this.w.send("screen-tell-buffer",[c],[c.buffer])};this.a=function(){};this.Td=function(){};this.Sd=function(a,
  b){if(a!==d||b!==e)d=a,e=b};this.Cg=function(){}};
  //# sourceMappingURL=v86_all.js.map
  