!function(t){functione(n){if(r[n])returnr[n].exports;vari=r[n]={exports:{},id:n,loaded:!1};returnt[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}varr={};returne.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){functionn(){vart=this;i.call(t),t.runtime=news,t.blockListener=function(e){if("object"==typeofe&&"string"==typeofe.blockId)switch(e.type){case"create":t.runtime.createBlock(a(e),!1);break;case"change":t.runtime.changeBlock({id:e.blockId,element:e.element,name:e.name,value:e.newValue});break;case"move":t.runtime.moveBlock({id:e.blockId,oldParent:e.oldParentId,oldField:e.oldInputName,newParent:e.newParentId,newField:e.newInputName});break;case"delete":t.runtime.deleteBlock({id:e.blockId});break;case"stackclick":t.runtime.toggleStack(e.blockId)}},t.flyoutBlockListener=function(e){switch(e.type){case"create":t.runtime.createBlock(a(e),!0);break;case"change":t.runtime.changeBlock({id:e.blockId,element:e.element,name:e.name,value:e.newValue});break;case"delete":t.runtime.deleteBlock({id:e.blockId});break;case"stackclick":t.runtime.toggleStack(e.blockId)}}}vari=r(1),o=r(2),s=r(6),a=r(13);o.inherits(n,i),t.exports=n,"undefined"!=typeofwindow&&(window.VirtualMachine=t.exports)},function(t,e){functionr(){this._events=this._events||{},this._maxListeners=this._maxListeners||void0}functionn(t){return"function"==typeoft}functioni(t){return"number"==typeoft}functiono(t){return"object"==typeoft&&null!==t}functions(t){returnvoid0===t}t.exports=r,r.EventEmitter=r,r.prototype._events=void0,r.prototype._maxListeners=void0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(t){if(!i(t)||0>t||isNaN(t))throwTypeError("n must be a positive number");returnthis._maxListeners=t,this},r.prototype.emit=function(t){vare,r,i,a,c,u;if(this._events||(this._events={}),"error"===t&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if(e=arguments[1],einstanceofError)throwe;throwTypeError('Uncaught, unspecified "error" event.')}if(r=this._events[t],s(r))return!1;if(n(r))switch(arguments.length){case1:r.call(this);break;case2:r.call(this,arguments[1]);break;case3:r.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),r.apply(this,a)}elseif(o(r))for(a=Array.prototype.slice.call(arguments,1),u=r.slice(),i=u.length,c=0;i>c;c++)u[c].apply(this,a);return!0},r.prototype.addListener=function(t,e){vari;if(!n(e))throwTypeError("listener must be a function");returnthis._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,n(e.listener)?e.listener:e),this._events[t]?o(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,o(this._events[t])&&!this._events[t].warned&&(i=s(this._maxListeners)?r.defaultMaxListeners:this._maxListeners,i&&i>0&&this._events[t].length>i&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeofconsole.trace&&console.trace())),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(t,e){functionr(){this.removeListener(t,r),i||(i=!0,e.apply(this,arguments))}if(!n(e))throwTypeError("listener must be a function");vari=!1;returnr.listener=e,this.on(t,r),this},r.prototype.removeListener=function(t,e){varr,i,s,a;if(!n(e))throwTypeError("listener must be a function");if(!this._events||!this._events[t])returnthis;if(r=this._events[t],s=r.length,i=-1,r===e||n(r.listener)&&r.listener===e)deletethis._events[t],this._events.removeListener&&this.emit("removeListener",t,e);elseif(o(r)){for(a=s;a-->0;)if(r[a]===e||r[a].listener&&r[a].listener===e){i=a;break}if(0>i)returnthis;1===r.length?(r.length=0,deletethis._events[t]):r.splice(i,1),this._events.removeListener&&this.emit("removeListener",t,e)}returnthis},r.prototype.removeAllListeners=function(t){vare,r;if(!this._events)returnthis;if(!this._events.removeListener)return0===arguments.length?this._events={}:this._events[t]&&deletethis._eve
"use strict";functioni(){functiont(){}try{vare=newUint8Array(1);returne.foo=function(){return42},e.constructor=t,42===e.foo()&&e.constructor===t&&"function"==typeofe.subarray&&0===e.subarray(1,1).byteLength}catch(r){return!1}}functiono(){returnt.TYPED_ARRAY_SUPPORT?2147483647:1073741823}functiont(e){returnthisinstanceoft?(t.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void0),"number"==typeofe?s(this,e):"string"==typeofe?a(this,e,arguments.length>1?arguments[1]:"utf8"):c(this,e)):arguments.length>1?newt(e,arguments[1]):newt(e)}functions(e,r){if(e=g(e,0>r?0:0|_(r)),!t.TYPED_ARRAY_SUPPORT)for(varn=0;r>n;n++)e[n]=0;returne}functiona(t,e,r){"string"==typeofr&&""!==r||(r="utf8");varn=0|b(e,r);returnt=g(t,n),t.write(e,r),t}functionc(e,r){if(t.isBuffer(r))returnu(e,r);if(X(r))returnl(e,r);if(null==r)thrownewTypeError("must start with number, buffer, array or string");if("undefined"!=typeofArrayBuffer){if(r.bufferinstanceofArrayBuffer)returnh(e,r);if(rinstanceofArrayBuffer)returnf(e,r)}returnr.length?p(e,r):d(e,r)}functionu(t,e){varr=0|_(e.length);returnt=g(t,r),e.copy(t,0,0,r),t}functionl(t,e){varr=0|_(e.length);t=g(t,r);for(varn=0;r>n;n+=1)t[n]=255&e[n];returnt}functionh(t,e){varr=0|_(e.length);t=g(t,r);for(varn=0;r>n;n+=1)t[n]=255&e[n];returnt}functionf(e,r){returnt.TYPED_ARRAY_SUPPORT?(r.byteLength,e=t._augment(newUint8Array(r))):e=h(e,newUint8Array(r)),e}functionp(t,e){varr=0|_(e.length);t=g(t,r);for(varn=0;r>n;n+=1)t[n]=255&e[n];returnt}functiond(t,e){varr,n=0;"Buffer"===e.type&&X(e.data)&&(r=e.data,n=0|_(r.length)),t=g(t,n);for(vari=0;n>i;i+=1)t[i]=255&r[i];returnt}functiong(e,r){t.TYPED_ARRAY_SUPPORT?(e=t._augment(newUint8Array(r)),e.__proto__=t.prototype):(e.length=r,e._isBuffer=!0);varn=0!==r&&r<=t.poolSize>>>1;returnn&&(e.parent=Q),e}function_(t){if(t>=o())thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return0|t}functionm(e,r){if(!(thisinstanceofm))returnnewm(e,r);varn=newt(e,r);returndeleten.parent,n}functionb(t,e){"string"!=typeoft&&(t=""+t);varr=t.length;if(0===r)return0;for(varn=!1;;)switch(e){case"ascii":case"binary":case"raw":case"raws":returnr;case"utf8":case"utf-8":returnH(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return2*r;case"hex":returnr>>>1;case"base64":returnY(t).length;default:if(n)returnH(t).length;e=(""+e).toLowerCase(),n=!0}}functiony(t,e,r){varn=!1;if(e=0|e,r=void0===r||r===1/0?this.length:0|r,t||(t="utf8"),0>e&&(e=0),r>this.length&&(r=this.length),e>=r)return"";for(;;)switch(t){case"hex":returnC(this,e,r);case"utf8":case"utf-8":returnA(this,e,r);case"ascii":returnO(this,e,r);case"binary":returnI(this,e,r);case"base64":returnT(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":returnB(this,e,r);default:if(n)thrownewTypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}functionv(t,e,r,n){r=Number(r)||0;vari=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;varo=e.length;if(o%2!==0)thrownewError("Invalid hex string");n>o/2&&(n=o/2);for(vars=0;n>s;s++){vara=parseInt(e.substr(2*s,2),16);if(isNaN(a))thrownewError("Invalid hex string");t[r+s]=a}returns}functionw(t,e,r,n){returnW(H(e,t.length-r),t,r,n)}functionS(t,e,r,n){returnW(V(e),t,r,n)}functionx(t,e,r,n){returnS(t,e,r,n)}functionE(t,e,r,n){returnW(Y(e),t,r,n)}functionk(t,e,r,n){returnW(G(e,t.length-r),t,r,n)}functionT(t,e,r){return0===e&&r===t.length?K.fromByteArray(t):K.fromByteArray(t.slice(e,r))}functionA(t,e,r){r=Math.min(t.length,r);for(varn=[],i=e;r>i;){varo=t[i],s=null,a=o>239?4:o>223?3:o>191?2:1;if(r>=i+a){varc,u,l,h;switch(a){case1:128>o&&(s=o);break;case2:c=t[i+1],128===(192&c)&&(h=(31&o)<<6|63&c,h>127&&(s=h));break;case3:c=t[i+1],u=t[i+2],128===(192&c)&&128===(192&u)&&(h=(15&o)<<12|(63&c)<<6|63&u,h>2047&&(55296>h||h>57343)&&(s=h));break;case4:c=t[i+1],u=t[i+2],l=t[i+3],128===(192&c)&&128===(192&u)&&128===(192&l)&&(h=(15&o)<<18|(63&c)<<12|(63&u)<<6|63&l,h>65535&&1114112>h&&(s=h))}}null===s?(s=65533,a=1):s>65535&&(s-=65536,n