(function(){var t;t=function(){function t(t){this.dx=[0,0],this.canvas=document.getElementById(t),this.canvas.width=this.canvas.parentNode.offsetWidth-10,this.plate=new createjs.Shape,this.plate.graphics.beginFill("#01EFFF").drawRect(0,0,60,10),this.border=this.canvas.width-60,document.onkeydown=function(t){return function(e){return t._setDX(e,-1,1)}}(this),document.onkeyup=function(t){return function(e){return t._setDX(e,0,0)}}(this)}var e,s;return e=37,s=39,t.prototype.init=function(){return this.plate.x=this.border/2,this.plate.y=this.canvas.height-10,this.stage=new createjs.Stage(this.canvas),this.stage.addChild(this.plate),createjs.Ticker.addListener(this),createjs.Ticker.useRAF=!0,createjs.Ticker.setFPS(60)},t.prototype.reset=function(){return this.stage.removeAllChildren(),createjs.Ticker.removeAllListeners(),this.stage.update()},t.prototype.tick=function(){return this.plate.x+=this.dx[0]+this.dx[1],this.plate.x<0&&(this.plate.x=0),this.plate.x>this.border&&(this.plate.x=this.border),this.stage.update()},t.prototype._setDX=function(t,i,n){switch(t||(t=window.event),t.keyCode){case e:return this.dx[0]=i;case s:return this.dx[1]=n}},t}(),window.easeljs1_3=new t("easeljs1_3")}).call(this);