!function(e){functiont(r){if(n[r])returnn[r].exports;vari=n[r]={exports:{},id:r,loaded:!1};returne[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}varn={};returnt.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){functionr(){vare=this;i.call(e),e.runtime=news,e.blockListener=function(t){if("object"==typeoft&&"string"==typeoft.blockId){switch(t.type){case"create":e.runtime.createBlock({id:t.blockId,opcode:t.xml.attributes.type.value});break;case"move":e.runtime.moveBlock({id:t.blockId,oldParent:t.oldParentId,oldInput:t.oldInputName,newParent:t.newParentId,newInput:t.newInputName});break;case"change":e.runtime.changeBlock({id:t.blockId});break;case"delete":e.runtime.deleteBlock({id:t.blockId})}if("undefined"!=typeoft.element)switch(t.element){case"click":e.runtime.runStack({id:t.blockId})}}}}vari=n(1),o=n(2),s=n(6);o.inherits(r,i),r.prototype.start=function(){},r.prototype.stop=function(){},r.prototype.save=function(){},r.prototype.load=function(){},e.exports=r,"undefined"!=typeofwindow&&(window.VirtualMachine=e.exports)},function(e,t){functionn(){this._events=this._events||{},this._maxListeners=this._maxListeners||void0}functionr(e){return"function"==typeofe}functioni(e){return"number"==typeofe}functiono(e){return"object"==typeofe&&null!==e}functions(e){returnvoid0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void0,n.prototype._maxListeners=void0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!i(e)||0>e||isNaN(e))throwTypeError("n must be a positive number");returnthis._maxListeners=e,this},n.prototype.emit=function(e){vart,n,i,u,c,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if(t=arguments[1],tinstanceofError)throwt;throwTypeError('Uncaught, unspecified "error" event.')}if(n=this._events[e],s(n))return!1;if(r(n))switch(arguments.length){case1:n.call(this);break;case2:n.call(this,arguments[1]);break;case3:n.call(this,arguments[1],arguments[2]);break;default:u=Array.prototype.slice.call(arguments,1),n.apply(this,u)}elseif(o(n))for(u=Array.prototype.slice.call(arguments,1),l=n.slice(),i=l.length,c=0;i>c;c++)l[c].apply(this,u);return!0},n.prototype.addListener=function(e,t){vari;if(!r(t))throwTypeError("listener must be a function");returnthis._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?o(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,o(this._events[e])&&!this._events[e].warned&&(i=s(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,i&&i>0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeofconsole.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){functionn(){this.removeListener(e,n),i||(i=!0,t.apply(this,arguments))}if(!r(t))throwTypeError("listener must be a function");vari=!1;returnn.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){varn,i,s,u;if(!r(t))throwTypeError("listener must be a function");if(!this._events||!this._events[e])returnthis;if(n=this._events[e],s=n.length,i=-1,n===t||r(n.listener)&&n.listener===t)deletethis._events[e],this._events.removeListener&&this.emit("removeListener",e,t);elseif(o(n)){for(u=s;u-->0;)if(n[u]===t||n[u].listener&&n[u].listener===t){i=u;break}if(0>i)returnthis;1===n.length?(n.length=0,deletethis._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}returnthis},n.prototype.removeAllListeners=function(e){vart,n;if(!this._events)returnthis;if(!this._events.removeListener)return0===arguments.length?this._events={}:this._events[e]&&deletethis._events[e],this;if(0===arguments.length){for(tinthis._events)"removeListener"!==t&&this.removeAllListeners(t);returnthis.removeAllListeners("removeListener"),thi