herorush.js 466 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887
  1. (function(Mc){function t(a,b){function c(){}c.prototype=a;var d=new c,e;for(e in b)d[e]=b[e];b.toString!==Object.prototype.toString&&(d.toString=b.toString);return d}function db(a){return a instanceof Array?function(){return E.iter(a)}:"function"==typeof a.iterator?n(a,a.iterator):a.iterator}function n(a,b){if(null==b)return null;null==b.__id__&&(b.__id__=jg++);var c;null==a.hx__closures__?a.hx__closures__={}:c=a.hx__closures__[b.__id__];null==c&&(c=function(){return c.method.apply(c.scope,arguments)},
  2. c.scope=a,c.method=b,a.hx__closures__[b.__id__]=c);return c}Mc.openfl=Mc.openfl||{};Mc.lime=Mc.lime||{};var g={},q=function(){return v.__string_rec(this,"")},Nf=function(){};g["openfl.events.IEventDispatcher"]=Nf;Nf.__name__=["openfl","events","IEventDispatcher"];var V=function(a){null!=a&&(this.__targetDispatcher=a)};g["openfl.events.EventDispatcher"]=V;V.__name__=["openfl","events","EventDispatcher"];V.__interfaces__=[Nf];V.__sortByPriority=function(a,b){return a.priority==b.priority?0:a.priority>
  3. b.priority?-1:1};V.prototype={addEventListener:function(a,b,c,d,e){null==d&&(d=0);null==c&&(c=!1);null==this.__eventMap&&(this.__eventMap=new sa);if(this.__eventMap.exists(a)){a=this.__eventMap.get(a);e=0;for(var f=a.length;e<f;){var p=e++;if(r.compareMethods(a[p].callback,b))return}a.push(new jd(b,c,d));a.sort(V.__sortByPriority)}else e=[],e.push(new jd(b,c,d)),this.__eventMap.set(a,e)},dispatchEvent:function(a){if(null==this.__eventMap||null==a)return!1;var b=this.__eventMap.get(a.type);if(null==
  4. b)return!1;null==a.target&&(a.target=null!=this.__targetDispatcher?this.__targetDispatcher:this);a.currentTarget=this;for(var c=a.eventPhase==da.CAPTURING_PHASE,d=0,e;d<b.length;){e=b[d];if(e.useCapture==c&&(e.callback(a),a.__isCancelledNow))break;e==b[d]&&d++}return!0},hasEventListener:function(a){return null==this.__eventMap?!1:this.__eventMap.exists(a)},removeEventListener:function(a,b,c){null==c&&(c=!1);if(null!=this.__eventMap){var d=this.__eventMap.get(a);if(null!=d){for(var e=0,f=d.length;e<
  5. f;){var p=e++;if(d[p].match(b,c)){d.splice(p,1);break}}0==d.length&&this.__eventMap.remove(a);this.__eventMap.iterator().hasNext()||(this.__eventMap=null)}}},__class__:V};var Af=function(){};g["openfl.display.IBitmapDrawable"]=Af;Af.__name__=["openfl","display","IBitmapDrawable"];var ca=function(){V.call(this);this.__alpha=1;this.__rotation=0;this.__scaleY=this.__scaleX=1;this.__visible=!0;this.__y=this.__x=0;this.__worldAlpha=1;this.__worldTransform=new mb;this.__rotationSine=this.__rotationCache=
  6. 0;this.__rotationCosine=1;this.set_name("instance"+ ++ca.__instanceCount)};g["openfl.display.DisplayObject"]=ca;ca.__name__=["openfl","display","DisplayObject"];ca.__interfaces__=[Af];ca.__super__=V;ca.prototype=t(V.prototype,{dispatchEvent:function(a){var b=V.prototype.dispatchEvent.call(this,a);if(a.__isCancelled)return!0;a.bubbles&&null!=this.parent&&this.parent!=this&&(a.eventPhase=da.BUBBLING_PHASE,this.parent.dispatchEvent(a));return b},globalToLocal:function(a){return this.__getTransform().clone().invert().transformPoint(a)},
  7. localToGlobal:function(a){return this.__getTransform().transformPoint(a)},__broadcast:function(a,b){if(null!=this.__eventMap&&this.hasEventListener(a.type)){var c=V.prototype.dispatchEvent.call(this,a);return a.__isCancelled?!0:c}return!1},__getBounds:function(a,b){},__getTransform:function(){if(this.__transformDirty||0<ca.__worldTransformDirty){var a=[],b=this,c=this.__transformDirty;if(null==this.parent)c&&this.__update(!0,!1);else for(;null!=b.parent;)a.push(b),b=b.parent,b.__transformDirty&&(c=
  8. !0);if(c)for(b=a.length;0<=--b;)a[b].__update(!0,!1)}return this.__worldTransform},__hitTest:function(a,b,c,d,e){return!1},__renderCanvas:function(a){},__renderDOM:function(a){},__renderGL:function(a){},__renderMask:function(a){},__setStageReference:function(a){this.stage!=a&&(null!=this.stage&&this.dispatchEvent(new u(u.REMOVED_FROM_STAGE,!1,!1)),this.stage=a,null!=a&&this.dispatchEvent(new u(u.ADDED_TO_STAGE,!1,!1)))},__update:function(a,b){this.__renderable=this.get_visible()&&0!=this.get_scaleX()&&
  9. 0!=this.get_scaleY()&&!this.__isMask;if(this.get_rotation()!=this.__rotationCache){this.__rotationCache=this.get_rotation();var c=this.get_rotation()*(Math.PI/180);this.__rotationSine=Math.sin(c);this.__rotationCosine=Math.cos(c)}if(null!=this.parent){var c=this.parent.__worldTransform,d=this.__rotationCosine*this.get_scaleX(),e=this.__rotationSine*this.get_scaleX(),f=-this.__rotationSine*this.get_scaleY(),p=this.__rotationCosine*this.get_scaleY(),h=c.a,g=c.b,kd=c.c,F=c.d;null==this.__worldTransform&&
  10. (this.__worldTransform=new mb);this.__worldTransform.a=d*h+e*kd;this.__worldTransform.b=d*g+e*F;this.__worldTransform.c=f*h+p*kd;this.__worldTransform.d=f*g+p*F;null==this.get_scrollRect()?(this.__worldTransform.tx=this.get_x()*h+this.get_y()*kd+c.tx,this.__worldTransform.ty=this.get_x()*g+this.get_y()*F+c.ty):(this.__worldTransform.tx=(this.get_x()-this.get_scrollRect().x)*h+(this.get_y()-this.get_scrollRect().y)*kd+c.tx,this.__worldTransform.ty=(this.get_x()-this.get_scrollRect().x)*g+(this.get_y()-
  11. this.get_scrollRect().y)*F+c.ty)}else this.__worldTransform.a=this.__rotationCosine*this.get_scaleX(),this.__worldTransform.c=-this.__rotationSine*this.get_scaleY(),this.__worldTransform.b=this.__rotationSine*this.get_scaleX(),this.__worldTransform.d=this.__rotationCosine*this.get_scaleY(),null==this.get_scrollRect()?(this.__worldTransform.tx=this.get_x(),this.__worldTransform.ty=this.get_y()):(this.__worldTransform.tx=this.get_y()-this.get_scrollRect().x,this.__worldTransform.ty=this.get_y()-this.get_scrollRect().y);
  12. b&&this.__transformDirty&&(this.__transformDirty=!1,ca.__worldTransformDirty--);a||(this.__worldAlpha=null!=this.parent?this.get_alpha()*this.parent.__worldAlpha:this.get_alpha(),b&&this.__renderDirty&&(this.__renderDirty=!1))},__updateChildren:function(a){if((this.__renderable=this.get_visible()&&0!=this.get_scaleX()&&0!=this.get_scaleY()&&!this.__isMask)||this.__isMask)this.__worldAlpha=this.get_alpha(),this.__transformDirty&&(this.__transformDirty=!1,ca.__worldTransformDirty--)},get_alpha:function(){return this.__alpha},
  13. set_alpha:function(a){a==this.__alpha||this.__renderDirty||(this.__renderDirty=!0,ca.__worldRenderDirty++);return this.__alpha=a},get_filters:function(){return null==this.__filters?[]:this.__filters.slice()},set_filters:function(a){return a},get_mouseX:function(){return null!=this.stage?this.globalToLocal(new la(this.stage.__mouseX,0)).x:0},get_mouseY:function(){return null!=this.stage?this.globalToLocal(new la(0,this.stage.__mouseY)).y:0},set_name:function(a){return this.__name=a},get_rotation:function(){return this.__rotation},
  14. set_rotation:function(a){a==this.__rotation||this.__transformDirty||(this.__transformDirty=!0,ca.__worldTransformDirty++);return this.__rotation=a},get_scaleX:function(){return this.__scaleX},set_scaleX:function(a){a==this.__scaleX||this.__transformDirty||(this.__transformDirty=!0,ca.__worldTransformDirty++);return this.__scaleX=a},get_scaleY:function(){return this.__scaleY},set_scaleY:function(a){this.__scaleY==a||this.__transformDirty||(this.__transformDirty=!0,ca.__worldTransformDirty++);return this.__scaleY=
  15. a},get_scrollRect:function(){return this.__scrollRect},get_visible:function(){return this.__visible},set_visible:function(a){a==this.__visible||this.__renderDirty||(this.__renderDirty=!0,ca.__worldRenderDirty++);return this.__visible=a},get_x:function(){return this.__x},set_x:function(a){a==this.__x||this.__transformDirty||(this.__transformDirty=!0,ca.__worldTransformDirty++);return this.__x=a},get_y:function(){return this.__y},set_y:function(a){a==this.__y||this.__transformDirty||(this.__transformDirty=
  16. !0,ca.__worldTransformDirty++);return this.__y=a},__class__:ca,__properties__:{set_y:"set_y",get_y:"get_y",set_x:"set_x",get_x:"get_x",set_visible:"set_visible",get_visible:"get_visible",get_scrollRect:"get_scrollRect",set_scaleY:"set_scaleY",get_scaleY:"get_scaleY",set_scaleX:"set_scaleX",get_scaleX:"get_scaleX",set_rotation:"set_rotation",get_rotation:"get_rotation",set_name:"set_name",get_mouseY:"get_mouseY",get_mouseX:"get_mouseX",set_filters:"set_filters",get_filters:"get_filters",set_alpha:"set_alpha",
  17. get_alpha:"get_alpha"}});var vb=function(){ca.call(this);this.doubleClickEnabled=!1;this.mouseEnabled=!0;this.needsSoftKeyboard=!1;this.tabEnabled=!0;this.tabIndex=-1};g["openfl.display.InteractiveObject"]=vb;vb.__name__=["openfl","display","InteractiveObject"];vb.__super__=ca;vb.prototype=t(ca.prototype,{__getInteractive:function(a){a.push(this);null!=this.parent&&this.parent.__getInteractive(a)},__class__:vb});var Ua=function(){vb.call(this);this.mouseChildren=!0;this.__children=[];this.__removedChildren=
  18. []};g["openfl.display.DisplayObjectContainer"]=Ua;Ua.__name__=["openfl","display","DisplayObjectContainer"];Ua.__super__=vb;Ua.prototype=t(vb.prototype,{addChild:function(a){if(null!=a){null!=a.parent&&a.parent.removeChild(a);this.__children.push(a);a.parent=this;null!=this.stage&&a.__setStageReference(this.stage);a.__transformDirty||(a.__transformDirty=!0,ca.__worldTransformDirty++);a.__renderDirty||(a.__renderDirty=!0,ca.__worldRenderDirty++);var b=new u(u.ADDED,!0);b.target=a;a.dispatchEvent(b)}return a},
  19. removeChild:function(a){null!=a&&a.parent==this&&(null!=this.stage&&a.__setStageReference(null),a.parent=null,E.remove(this.__children,a),this.__removedChildren.push(a),a.__transformDirty||(a.__transformDirty=!0,ca.__worldTransformDirty++),a.__renderDirty||(a.__renderDirty=!0,ca.__worldRenderDirty++),a.dispatchEvent(new u(u.REMOVED,!0)));return a},setChildIndex:function(a,b){0<=b&&b<=this.__children.length&&a.parent==this&&(E.remove(this.__children,a),this.__children.splice(b,0,a))},__broadcast:function(a,
  20. b){null==a.target&&(a.target=this);if(b)for(var c=0,d=this.__children;c<d.length;){var e=d[c];++c;e.__broadcast(a,!0);if(a.__isCancelled)return!0}return vb.prototype.__broadcast.call(this,a,b)},__getBounds:function(a,b){if(0!=this.__children.length){var c=null;null!=b&&(c=this.__worldTransform,this.__worldTransform=b,this.__updateChildren(!0));for(var d=0,e=this.__children;d<e.length;){var f=e[d];++d;f.__renderable&&f.__getBounds(a,null)}null!=b&&(this.__worldTransform=c,this.__updateChildren(!0))}},
  21. __hitTest:function(a,b,c,d,e){if(!this.get_visible()||e&&!this.mouseEnabled)return!1;var f=this.__children.length;if(e)if(null==d||!this.mouseChildren)for(;0<=--f;){if(this.__children[f].__hitTest(a,b,c,null,!0))return null!=d&&d.push(this),!0}else{if(null!=d)for(var p=d.length;0<=--f;)if(this.__children[f].__hitTest(a,b,c,d,e))return d.splice(p,0,this),!0}else for(;0<=--f;)this.__children[f].__hitTest(a,b,c,d,!1);return!1},__renderCanvas:function(a){if(this.__renderable&&!(0>=this.__worldAlpha)){this.get_scrollRect();
  22. null!=this.__mask&&a.maskManager.pushMask(this.__mask);for(var b=0,c=this.__children;b<c.length;){var d=c[b];++b;d.__renderCanvas(a)}this.__removedChildren=[];null!=this.__mask&&a.maskManager.popMask();this.get_scrollRect()}},__renderDOM:function(a){null!=this.__mask&&a.maskManager.pushMask(this.__mask);for(var b=0,c=this.__children;b<c.length;){var d=c[b];++b;d.__renderDOM(a)}b=0;for(c=this.__removedChildren;b<c.length;)d=c[b],++b,null==d.stage&&d.__renderDOM(a);this.__removedChildren=[];null!=this.__mask&&
  23. a.maskManager.popMask()},__renderGL:function(a){if(this.__renderable&&!(0>=this.__worldAlpha)){for(var b=0,c=this.__children;b<c.length;){var d=c[b];++b;d.__renderGL(a)}this.__removedChildren=[]}},__renderMask:function(a){var b=new oa;this.__getTransform();this.__getBounds(b,new mb);a.context.rect(0,0,b.width,b.height)},__setStageReference:function(a){if(this.stage!=a&&(null!=this.stage&&this.dispatchEvent(new u(u.REMOVED_FROM_STAGE,!1,!1)),this.stage=a,null!=a&&this.dispatchEvent(new u(u.ADDED_TO_STAGE,
  24. !1,!1)),null!=this.__children))for(var b=0,c=this.__children;b<c.length;){var d=c[b];++b;d.__setStageReference(a)}},__update:function(a,b){vb.prototype.__update.call(this,a,b);if(this.__renderable&&b)for(var c=0,d=this.__children;c<d.length;){var e=d[c];++c;e.__update(a,!0)}},__updateChildren:function(a){vb.prototype.__updateChildren.call(this,a);for(var b=0,c=this.__children;b<c.length;){var d=c[b];++b;d.__update(a,!0)}},__class__:Ua});var A=function(){Ua.call(this);this.buttonMode=!1;this.useHandCursor=
  25. !0;this.loaderInfo=Xb.create(null)};g["openfl.display.Sprite"]=A;A.__name__=["openfl","display","Sprite"];A.__super__=Ua;A.prototype=t(Ua.prototype,{__getBounds:function(a,b){Ua.prototype.__getBounds.call(this,a,b);null!=this.__graphics&&this.__graphics.__getBounds(a,null!=b?b:this.__worldTransform)},__hitTest:function(a,b,c,d,e){return!this.get_visible()||e&&!this.mouseEnabled?!1:Ua.prototype.__hitTest.call(this,a,b,c,d,e)?e:null!=this.__graphics&&this.__graphics.__hitTest(a,b,c,this.__getTransform())?
  26. (null!=d&&d.push(this),!0):!1},__renderCanvas:function(a){Bf.render(this,a);Ua.prototype.__renderCanvas.call(this,a)},__renderDOM:function(a){Cf.render(this,a);Ua.prototype.__renderDOM.call(this,a)},__renderGL:function(a){!this.__renderable||0>=this.__worldAlpha||(null!=this.__graphics&&G.render(this,a),Ua.prototype.__renderGL.call(this,a))},__renderMask:function(a){null!=this.__graphics?k.renderMask(this.__graphics,a):Ua.prototype.__renderMask.call(this,a)},get_graphics:function(){null==this.__graphics&&
  27. (this.__graphics=new Ae);return this.__graphics},__class__:A,__properties__:t(Ua.prototype.__properties__,{get_graphics:"get_graphics"})});var yc=function(a,b,c){null==c&&(c=18);A.call(this);this.layer=K.get_instance().get(a);this.animId=b;this.fps=c;this.init()};g.AnimSpawner=yc;yc.__name__=["AnimSpawner"];yc.__super__=A;yc.prototype=t(A.prototype,{init:function(){this.active=!1;this.items=[];this.pool=[];this.trash=[];this.minTimeout=0;this.maxTimeout=1;this.maxY=this.minY=this.maxX=this.minX=this.counter=
  28. 0},genTimeout:function(){return D.randTo(this.minTimeout,this.maxTimeout,2)},start:function(){this.active=!0;this.timeout=this.genTimeout();this.spawn()},update:function(a){0<this.trash.length&&this.cleanTrash();1==this.active&&this.updateTimer(a)},updateTimer:function(a){this.counter+=a;this.counter>=this.timeout&&(this.timeout=this.genTimeout(),this.counter=0,this.spawn())},spawn:function(){var a;0<this.pool.length?a=this.pool.pop():(a=Va.create(this.layer,this.animId,this.fps),this.items.push(a));
  29. var b=this.get_x()+D.randTo(this.minX,this.maxX),c=this.get_y()+D.randTo(this.minY,this.maxY);a.x=b;a.y=c;a.onComplete=n(this,this.completeAnim);a.play();this.layer.addChild(a)},completeAnim:function(a){this.trash.push(a)},cleanTrash:function(){for(var a=0,b=this.trash;a<b.length;){var c=b[a];++a;this.layer.removeChild(c);c.stop();this.pool.push(c)}this.trash=[]},stop:function(){this.active=!1;for(var a=0,b=this.items;a<b.length;){var c=b[a];++a;null!=c.parent&&this.trash.push(c)}},free:function(){this.active=
  30. !1;this.layer=null;this.items=[];this.pool=[];this.pool=null;this.trash=[];this.trash=null},__class__:yc});var pa=function(){};g.ApplicationMain=pa;pa.__name__=["ApplicationMain"];pa.config=null;pa.preloader=null;pa.create=function(){var a=new ld;a.create(pa.config);var b=new Wa;pa.preloader=new md(b);pa.preloader.onComplete=pa.init;pa.preloader.create(pa.config);var b=[],c=[];b.push("assets/configs/anim.json");c.push("TEXT");b.push("assets/configs/awards.json");c.push("TEXT");b.push("assets/configs/bg.json");
  31. c.push("TEXT");b.push("assets/configs/cars.json");c.push("TEXT");b.push("Tw Cen MT Bold");c.push("FONT");b.push("assets/images/hd/arrow_key.png");c.push("IMAGE");b.push("assets/images/hd/award_block.png");c.push("IMAGE");b.push("assets/images/hd/buttons/btn_back.png");c.push("IMAGE");b.push("assets/images/hd/dot.png");c.push("IMAGE");b.push("assets/images/hd/score_panel.png");c.push("IMAGE");b.push("assets/images/hd/space_key.png");c.push("IMAGE");b.push("assets/images/hd/spritelists/bg.png");c.push("IMAGE");
  32. b.push("assets/images/hd/spritelists/bg.xml");c.push("TEXT");b.push("assets/images/hd/spritelists/main.png");c.push("IMAGE");b.push("assets/images/hd/spritelists/main.xml");c.push("TEXT");b.push("assets/images/hd/spritelists/ui.png");c.push("IMAGE");b.push("assets/images/hd/spritelists/ui.xml");c.push("TEXT");b.push("assets/images/hd/white_line.png");c.push("IMAGE");b.push("assets/images/hd/window_bg.png");c.push("IMAGE");b.push("assets/images/hd/window_bg_down.png");c.push("IMAGE");b.push("assets/images/hd/window_bg_up.png");
  33. c.push("IMAGE");b.push("assets/sound/music/in_game.mp3");c.push("MUSIC");b.push("assets/sound/music/in_game.ogg");c.push("SOUND");b.push("assets/sound/sfx/award.mp3");c.push("MUSIC");b.push("assets/sound/sfx/award.ogg");c.push("SOUND");b.push("assets/sound/sfx/boost.mp3");c.push("MUSIC");b.push("assets/sound/sfx/boost.ogg");c.push("SOUND");b.push("assets/sound/sfx/click.mp3");c.push("MUSIC");b.push("assets/sound/sfx/click.ogg");c.push("SOUND");b.push("assets/sound/sfx/coin.mp3");c.push("MUSIC");b.push("assets/sound/sfx/coin.ogg");
  34. c.push("SOUND");b.push("assets/sound/sfx/crash.mp3");c.push("MUSIC");b.push("assets/sound/sfx/crash.ogg");c.push("SOUND");b.push("assets/sound/sfx/gift.mp3");c.push("MUSIC");b.push("assets/sound/sfx/gift.ogg");c.push("SOUND");b.push("assets/sound/sfx/jump.mp3");c.push("MUSIC");b.push("assets/sound/sfx/jump.ogg");c.push("SOUND");b.push("assets/sound/sfx/swap.mp3");c.push("MUSIC");b.push("assets/sound/sfx/swap.ogg");c.push("SOUND");if(null!=pa.config.assetsPrefix)for(var d=0,e=b.length;d<e;){var f=
  35. d++;"FONT"!=c[f]&&(b[f]=pa.config.assetsPrefix+b[f])}pa.preloader.load(b,c);a.exec()};pa.init=function(){pa.preloader=null;pa.start()};pa.main=function(){pa.config={antialiasing:0,background:4749498,borderless:!1,depthBuffer:!1,fps:0,fullscreen:!1,height:960,orientation:"",resizable:!0,stencilBuffer:!1,title:"Hero Rush",vsync:!1,width:640}};pa.start=function(){for(var a=!1,b=Q.resolveClass("Main"),c=0,d=Q.getClassFields(b);c<d.length;){var e=d[c];++c;if("main"==e){a=!0;break}}a?r.callMethod(b,r.field(b,
  36. "main"),[]):Q.createInstance(nd,[]);B.current.stage.dispatchEvent(new u(u.RESIZE,!1,!1))};var x=function(){A.call(this);x.instance=this;this.active=!0;this.init();this.completeIntro()};g.Main=x;x.__name__=["Main"];x.scaleManager=null;x.instance=null;x.configs=null;x.curCar=null;x.money=null;x.score=null;x.carCrash=null;x.initStage=function(){Z.get_instance().init("heroRush");Xa.get_instance().init("UA-59792812-8","none");Xa.get_instance().save("load");X.get_instance().init("576742227280295810");X.get_instance().putLogo(0,
  37. 40);x.scaleManager=new M(640,960,1);x.configs=new od};x.completePreloader=function(){0==Wa.isIE&&x.initSounds()};x.initSounds=function(){R.get_instance().addMusic("in_game","assets/sound/music/in_game.ogg");R.get_instance().addSfx("award","assets/sound/sfx/award.ogg");R.get_instance().addSfx("click","assets/sound/sfx/click.ogg");R.get_instance().addSfx("crash","assets/sound/sfx/crash.ogg");R.get_instance().addSfx("jump","assets/sound/sfx/jump.ogg");R.get_instance().addSfx("swap","assets/sound/sfx/swap.ogg");
  38. R.get_instance().addSfx("gift","assets/sound/sfx/gift.ogg");R.get_instance().addSfx("coin","assets/sound/sfx/coin.ogg");R.get_instance().addSfx("boost","assets/sound/sfx/boost.ogg");1==Z.get_instance().get("soundMuted")&&R.get_instance().mute(!0)};x.__super__=A;x.prototype=t(A.prototype,{init:function(){this.firstPlay=!0;this.soundDeactivated=!1;x.carCrash=!1;this.initAwards();this.loadSaves();this.sceneManager=new pd;this.addChild(this.sceneManager);var a=new Nc;this.addChild(a);this.frameTimer=
  39. new Oc(30,1);B.current.stage.addEventListener(u.ACTIVATE,n(this,this.activate));B.current.stage.addEventListener(u.DEACTIVATE,n(this,this.deactivate));B.current.stage.addEventListener(u.ENTER_FRAME,n(this,this.update));window.document.addEventListener("visibilitychange",n(this,this.visibilityHandler))},visibilityHandler:function(a){"hidden"==window.document.visibilityState?this.deactivate(a):this.activate(a)},initAwards:function(){for(var a=x.configs.getAwardsCount(),b,c,d=0;d<a;){var e=d++;b="award"+
  40. (e+1);c=x.configs.getAwardConfig(e);eb.get_instance().register(e,b);eb.get_instance().addCondition(b,c.statId,c.count)}},completeIntro:function(){0==Wa.isIE&&R.get_instance().playMusic("in_game");var a=ma.buildSprite("assets/images/"+M.graphicsFolder+"/window_bg.png");a.setAnchorPoint(0,0);this.addChild(a);this.setChildIndex(a,0);this.showScene(T.Menu)},loadSaves:function(){x.curCar=1;x.money=0;null!=Z.get_instance().get("money")&&(x.money=z["int"](Z.get_instance().get("money")));null==Z.get_instance().get("st_countCars")&&
  41. (Z.get_instance().save("car_1",!0),Z.get_instance().save("st_countCars",1))},activate:function(a){1!=this.active&&(this.active=!0,1==this.soundDeactivated&&(this.soundDeactivated=!1,R.get_instance().mute(!1)),this.frameTimer.resume())},deactivate:function(a){0!=this.active&&(this.active=!1,0==R.get_instance().isMuted()&&(R.get_instance().mute(!0),this.soundDeactivated=!0),this.frameTimer.pause())},update:function(a){0!=this.active&&(this.frameTimer.update(),1==this.sceneManager.isReady()&&this.sceneManager.udpate(this.frameTimer.getDelta(),
  42. this.frameTimer.checkUpdate()))},showScene:function(a,b){null==b&&(b=!0);if(0==this.sceneManager.isReady())return null;var c="scenes."+z.string(a),d=D.createObjectByClassName(c);if(null==d)return console.log("No scene: "+c+" founded"),null;this.sceneManager.show(d,b);return d},updateMoney:function(a){x.money+=a;Z.get_instance().save("money",x.money)},__class__:x});var nd=function(){B.current.addChild(this);x.call(this);this.dispatchEvent(new u(u.ADDED_TO_STAGE,!1,!1))};g.DocumentClass=nd;nd.__name__=
  43. ["DocumentClass"];nd.__super__=x;nd.prototype=t(x.prototype,{__class__:nd});var qd=function(){A.call(this);this.init()};g.Award=qd;qd.__name__=["Award"];qd.__super__=A;qd.prototype=t(A.prototype,{init:function(){var a=ma.buildSprite("assets/images/"+M.graphicsFolder+"/award_block.png");this.addChild(a);a=new ha;a.set_size(32);a.mouseEnabled=!0;a.set_align("center");a.set_fieldWidth(382);a.set_text("ACHIEVEMENT UNLOCKED");a.set_x(-115);a.set_y(-63);this.addChild(a);this.captionLabel=new ha;this.captionLabel.set_size(28);
  44. this.captionLabel.mouseEnabled=!0;this.captionLabel.set_align("center");this.captionLabel.set_fieldWidth(382);this.captionLabel.set_x(-115);this.captionLabel.set_y(-25);this.addChild(this.captionLabel);this.prizeLabel=new ha;this.prizeLabel.set_size(26);this.prizeLabel.mouseEnabled=!0;this.prizeLabel.set_align("center");this.prizeLabel.set_fieldWidth(382);this.prizeLabel.set_x(-115);this.prizeLabel.set_y(8);this.addChild(this.prizeLabel)},setText:function(a,b){this.captionLabel.set_text(a);this.prizeLabel.set_text(b)},
  45. __class__:qd});var rd=function(){};g["com.alagatar.NotifiReceiver"]=rd;rd.__name__=["com","alagatar","NotifiReceiver"];var Nc=function(){A.call(this);this.init()};g.AwardShower=Nc;Nc.__name__=["AwardShower"];Nc.__interfaces__=[rd];Nc.__super__=A;Nc.prototype=t(A.prototype,{init:function(){ta.get_instance().signToNotify("newAchievement",this,"global");this.startY=-80;this.endY=75;this.showTime=.9;this.hideTime=.3;this.delayTime=2;this.showed=!1;this.pool=[];this.award=new qd;this.award.set_x(320);
  46. this.award.set_y(this.startY);this.award.set_visible(!1);this.addChild(this.award);this.timer=new kc(1E3*(this.showTime+this.delayTime),1);this.timer.addEventListener(Fa.TIMER,n(this,this.hide))},receiveNotify:function(a,b,c){this.pool.push(c.id);this.showAward()},showAward:function(){if(1!=this.showed){R.get_instance().playSound("award");this.showed=!0;this.timer.start();this.award.set_visible(!0);var a=this.pool.shift(),a=x.configs.getAwardConfig(a),b=W.replace(a.dsc,"%c%",""+z.string(a.count)),
  47. c=W.replace("+%c% COINS","%c%",""+z.string(a.prize));this.award.setText(b,c);a=z.parseInt(a.prize);x.instance.updateMoney(a);I.tween(this.award,this.showTime,{y:this.endY}).ease(lc.get_easeOut())}},hide:function(a){I.tween(this.award,this.hideTime,{y:this.startY}).ease(lc.get_easeIn()).onComplete(n(this,this.completeHide))},completeHide:function(){this.timer.reset();this.award.set_visible(!1);this.showed=!1;0!=this.pool.length&&this.showAward()},__class__:Nc});var sd=function(){};g["com.alagatar.entity.ComponentCleaner"]=
  48. sd;sd.__name__=["com","alagatar","entity","ComponentCleaner"];sd.prototype={clean:function(a){},__class__:sd};var td=function(){};g.ComponentCleaner=td;td.__name__=["ComponentCleaner"];td.__super__=sd;td.prototype=t(sd.prototype,{clean:function(a){switch(Q.getClassName(Q.getClass(a))){case "components.Tile":this.clearTile(a);break;case "components.Car":this.clearCar(a)}},clearTile:function(a){null!=a.graph?(a.graph.parent.removeChild(a.graph),a.graph.destroyToCache(),a.graph=null):(a.group.parent.removeChild(a.group),
  49. a.group.destroyChildsToCache(),a.group=null)},clearCar:function(a){a.graph.parent.removeChild(a.graph);a.graph.destroyToCache();a.graph=null;a.shadow.parent.removeChild(a.shadow);a.shadow.destroyToCache();a.shadow=null;null!=a.wheel1&&(a.wheel1.parent.removeChild(a.wheel1),a.wheel1.destroyToCache(),a.wheel1=null);null!=a.wheel2&&(a.wheel2.parent.removeChild(a.wheel2),a.wheel2.destroyToCache(),a.wheel2=null)},__class__:td});var od=function(){V.call(this);this.init()};g.Configs=od;od.__name__=["Configs"];
  50. od.__super__=V;od.prototype=t(V.prototype,{init:function(){this.list=[];this.initParseList()},initParseList:function(){this.parseList=[{id:"cars",value:"assets/configs/cars.json"},{id:"bg",value:"assets/configs/bg.json"},{id:"awards",value:"assets/configs/awards.json"},{id:"animation",value:"assets/configs/anim.json"}]},getParseCount:function(){return this.parseList.length},getConfig:function(a){for(var b=0,c=this.list.length;b<c;){var d=b++;if(this.list[d].id==a)return this.list[d].value}return null},
  51. parse:function(){var a=this.parseList.pop(),a={id:a.id,value:D.parseConfig(a.value)};this.list.push(a);this.dispatchEvent(new u(u.COMPLETE))},getAnimationConfig:function(a){var b=this.getConfig("animation");if(null==b||null==b.a)return null;var c=b.a.length;if(0==c)return null;for(var d,e=0;e<c;)if(d=e++,d=b.a[d],d.n==a)return d;console.log("Animation "+a+" no founded");return null},getCarConfig:function(a,b){var c=this.getConfig("cars");if(null==c)return null;var c="hero"==a?c.hero:c.npc,d=c.length,
  52. e=b;if(-1!=b){if(b>d)return console.log("Not car found config with id: "+b),null;for(var f=0;f<d;){var p=f++;c[p].n==b&&(e=p)}}return c[e]},getRandomCarIndex:function(a){var b=this.getConfig("cars");return null==b?-1:D.randTo(1,("hero"==a?b.hero:b.npc).length)},getCountCars:function(a){var b=this.getConfig("cars");return null==b?(console.log("No bg config"),-1):("hero"==a?b.hero:b.npc).length},getRandomBgConfigIndex:function(a,b,c,d){null==d&&(d=!1);null==c&&(c=-1);var e=this.getConfig("bg");if(null==
  53. e)return console.log("No bg config"),-1;if(a>e.themes.length)return console.log("No theme "+a+" founded"),-1;e=e.themes[a-1];e=1==b?e.iUp:e.iDown;c=1==d?this.getFinalBgIndex(e):this.genRandBgNormalIndex(e,c);-1==c&&console.log("No config theme:"+a+" pos:"+b+" isFinal:"+(null==d?"null":""+d));return c},getFinalBgIndex:function(a){var b=a.length;if(0==b)return-1;for(var c=-1,d=0;d<b;){var e=d++;if(null!=a[e].t&&"end"==a[e].t){c=e;break}}return c},genRandBgNormalIndex:function(a,b){var c=a.length;if(0==
  54. c)return-1;if(1==c)return 0;var d=z["int"](D.randTo(0,c-1));if(-1!=b&&d==b||null!=a[d].t&&"end"==a[d].t)for(d=b;d==b;)d=z["int"](D.randTo(0,c-1)),null!=a[d].t&&"end"==a[d].t&&(d=b);return d},getBgConfig:function(a,b,c){var d=this.getConfig("bg");if(null==d)return console.log("No bg config"),-1;a=d.themes[a-1];return(1==b?a.iUp:a.iDown)[c].i},getCountBg:function(){var a=this.getConfig("bg");return null==a?(console.log("No bg config"),-1):a.themes.length},getAwardConfig:function(a){var b=this.getConfig("awards");
  55. return null==b||a>b.awards.length-1?null:b.awards[a]},getAwardsCount:function(){var a=this.getConfig("awards");return null==a?0:a.awards.length},__class__:od});var Df=function(){};g.DateTools=Df;Df.__name__=["DateTools"];Df.parse=function(a){var b=a/1E3,c=b/60,d=c/60;return{ms:a%1E3,seconds:b%60|0,minutes:c%60|0,hours:d%24|0,days:d/24|0}};var ud=function(){};g["lime.AssetLibrary"]=ud;ud.__name__=["lime","AssetLibrary"];ud.prototype={exists:function(a,b){return!1},getBytes:function(a){return null},
  56. getFont:function(a){return null},getImage:function(a){return null},getPath:function(a){return null},getText:function(a){a=this.getBytes(a);return null==a?null:a.readUTFBytes(a.length)},isLocal:function(a,b){return!0},__class__:ud};var wd=function(){this.type=new sa;this.path=new sa;this.className=new sa;var a;a="assets/configs/anim.json";this.path.set(a,a);this.type.set(a,"TEXT");a="assets/configs/awards.json";this.path.set(a,a);this.type.set(a,"TEXT");a="assets/configs/bg.json";this.path.set(a,a);
  57. this.type.set(a,"TEXT");a="assets/configs/cars.json";this.path.set(a,a);this.type.set(a,"TEXT");a="assets/fonts/tw_cen_mt_b.ttf";this.className.set(a,vd);this.type.set(a,"FONT");a="assets/images/hd/arrow_key.png";this.path.set(a,a);this.type.set(a,"IMAGE");a="assets/images/hd/award_block.png";this.path.set(a,a);this.type.set(a,"IMAGE");a="assets/images/hd/buttons/btn_back.png";this.path.set(a,a);this.type.set(a,"IMAGE");a="assets/images/hd/dot.png";this.path.set(a,a);this.type.set(a,"IMAGE");a="assets/images/hd/score_panel.png";
  58. this.path.set(a,a);this.type.set(a,"IMAGE");a="assets/images/hd/space_key.png";this.path.set(a,a);this.type.set(a,"IMAGE");a="assets/images/hd/spritelists/bg.png";this.path.set(a,a);this.type.set(a,"IMAGE");a="assets/images/hd/spritelists/bg.xml";this.path.set(a,a);this.type.set(a,"TEXT");a="assets/images/hd/spritelists/main.png";this.path.set(a,a);this.type.set(a,"IMAGE");a="assets/images/hd/spritelists/main.xml";this.path.set(a,a);this.type.set(a,"TEXT");a="assets/images/hd/spritelists/ui.png";
  59. this.path.set(a,a);this.type.set(a,"IMAGE");a="assets/images/hd/spritelists/ui.xml";this.path.set(a,a);this.type.set(a,"TEXT");a="assets/images/hd/white_line.png";this.path.set(a,a);this.type.set(a,"IMAGE");a="assets/images/hd/window_bg.png";this.path.set(a,a);this.type.set(a,"IMAGE");a="assets/images/hd/window_bg_down.png";this.path.set(a,a);this.type.set(a,"IMAGE");a="assets/images/hd/window_bg_up.png";this.path.set(a,a);this.type.set(a,"IMAGE");a="assets/sound/music/in_game.mp3";this.path.set(a,
  60. a);this.type.set(a,"MUSIC");a="assets/sound/music/in_game.ogg";this.path.set(a,a);this.type.set(a,"SOUND");a="assets/sound/sfx/award.mp3";this.path.set(a,a);this.type.set(a,"MUSIC");a="assets/sound/sfx/award.ogg";this.path.set(a,a);this.type.set(a,"SOUND");a="assets/sound/sfx/boost.mp3";this.path.set(a,a);this.type.set(a,"MUSIC");a="assets/sound/sfx/boost.ogg";this.path.set(a,a);this.type.set(a,"SOUND");a="assets/sound/sfx/click.mp3";this.path.set(a,a);this.type.set(a,"MUSIC");a="assets/sound/sfx/click.ogg";
  61. this.path.set(a,a);this.type.set(a,"SOUND");a="assets/sound/sfx/coin.mp3";this.path.set(a,a);this.type.set(a,"MUSIC");a="assets/sound/sfx/coin.ogg";this.path.set(a,a);this.type.set(a,"SOUND");a="assets/sound/sfx/crash.mp3";this.path.set(a,a);this.type.set(a,"MUSIC");a="assets/sound/sfx/crash.ogg";this.path.set(a,a);this.type.set(a,"SOUND");a="assets/sound/sfx/gift.mp3";this.path.set(a,a);this.type.set(a,"MUSIC");a="assets/sound/sfx/gift.ogg";this.path.set(a,a);this.type.set(a,"SOUND");a="assets/sound/sfx/jump.mp3";
  62. this.path.set(a,a);this.type.set(a,"MUSIC");a="assets/sound/sfx/jump.ogg";this.path.set(a,a);this.type.set(a,"SOUND");a="assets/sound/sfx/swap.mp3";this.path.set(a,a);this.type.set(a,"MUSIC");a="assets/sound/sfx/swap.ogg";this.path.set(a,a);this.type.set(a,"SOUND");a=pa.config.assetsPrefix;if(null!=a)for(var b=this.path.keys();b.hasNext();){var c=b.next(),d=a+this.path.get(c);this.path.set(c,d)}};g.DefaultAssetLibrary=wd;wd.__name__=["DefaultAssetLibrary"];wd.__super__=ud;wd.prototype=t(ud.prototype,
  63. {exists:function(a,b){var c;c=null!=b?v.__cast(b,String):null;var d=this.type.get(a);return null==d||d!=c&&("SOUND"!=c&&"MUSIC"!=c||"MUSIC"!=d&&"SOUND"!=d)&&"BINARY"!=c&&null!=c&&("BINARY"!=d||"TEXT"!=c)?!1:!0},getBytes:function(a){var b=null,b=this.path.get(a);a=za.loaders.get(b).data;"string"==typeof a?(b=new Ya,b.writeUTFBytes(a)):b=v.__instanceof(a,Ya)?a:null;return null!=b?(b.position=0,b):null},getFont:function(a){a=v.__cast(Q.createInstance(this.className.get(a),[]),Ga);return new Pc(a.name)},
  64. getImage:function(a){return Ha.fromImageElement(function(b){b=b.path.get(a);return za.images.get(b)}(this))},getPath:function(a){return this.path.get(a)},getText:function(a){var b=null;a=this.path.get(a);a=za.loaders.get(a).data;if("string"==typeof a)return a;b=v.__instanceof(a,Ya)?a:null;return null!=b?(b.position=0,b.readUTFBytes(b.length)):null},isLocal:function(a,b){null!=b&&v.__cast(b,String);return!0},__class__:wd});var Ga=function(a){this.name=a;null!=this.__fontPath&&this.__fromFile(this.__fontPath)};
  65. g["lime.text.Font"]=Ga;Ga.__name__=["lime","text","Font"];Ga.prototype={__fromFile:function(a){this.__fontPath=a},__class__:Ga};var vd=function(){Ga.call(this);this.name="Tw Cen MT Bold"};g.__ASSET__assets_fonts_tw_cen_mt_b_ttf=vd;vd.__name__=["__ASSET__assets_fonts_tw_cen_mt_b_ttf"];vd.__super__=Ga;vd.prototype=t(Ga.prototype,{__class__:vd});var qa=function(a,b){b=b.split("u").join("");this.r=new RegExp(a,b)};g.EReg=qa;qa.__name__=["EReg"];qa.prototype={match:function(a){this.r.global&&(this.r.lastIndex=
  66. 0);this.r.m=this.r.exec(a);this.r.s=a;return null!=this.r.m},matched:function(a){if(null!=this.r.m&&0<=a&&a<this.r.m.length)return this.r.m[a];throw"EReg::matched";},replace:function(a,b){return a.replace(this.r,b)},__class__:qa};var E=function(){};g.HxOverrides=E;E.__name__=["HxOverrides"];E.dateStr=function(a){var b=a.getMonth()+1,c=a.getDate(),d=a.getHours(),e=a.getMinutes(),f=a.getSeconds();return a.getFullYear()+"-"+(10>b?"0"+b:""+b)+"-"+(10>c?"0"+c:""+c)+" "+(10>d?"0"+d:""+d)+":"+(10>e?"0"+
  67. e:""+e)+":"+(10>f?"0"+f:""+f)};E.strDate=function(a){switch(a.length){case 8:a=a.split(":");var b=new Date;b.setTime(0);b.setUTCHours(a[0]);b.setUTCMinutes(a[1]);b.setUTCSeconds(a[2]);return b;case 10:return a=a.split("-"),new Date(a[0],a[1]-1,a[2],0,0,0);case 19:return b=a.split(" "),a=b[0].split("-"),b=b[1].split(":"),new Date(a[0],a[1]-1,a[2],b[0],b[1],b[2]);default:throw"Invalid date format : "+a;}};E.cca=function(a,b){var c=a.charCodeAt(b);return c!=c?void 0:c};E.substr=function(a,b,c){if(null!=
  68. b&&0!=b&&null!=c&&0>c)return"";null==c&&(c=a.length);0>b?(b=a.length+b,0>b&&(b=0)):0>c&&(c=a.length+c-b);return a.substr(b,c)};E.indexOf=function(a,b,c){var d=a.length;0>c&&(c+=d,0>c&&(c=0));for(;c<d;){if(a[c]===b)return c;c++}return-1};E.remove=function(a,b){var c=E.indexOf(a,b,0);if(-1==c)return!1;a.splice(c,1);return!0};E.iter=function(a){return{cur:0,arr:a,hasNext:function(){return this.cur<this.arr.length},next:function(){return this.arr[this.cur++]}}};var Qc=function(){A.call(this);this.init()};
  69. g.ItemShowManager=Qc;Qc.__name__=["ItemShowManager"];Qc.__super__=A;Qc.prototype=t(A.prototype,{init:function(){this.set_visible(!1);this.timer=new kc(4E3,1);this.timer.addEventListener(Fa.TIMER,n(this,this.completeTimeout));this.position={x:320,y:450};this.title=new ha;this.title.set_size(59);this.title.set_align("center");this.title.set_fieldWidth(600);this.title.set_x(20);this.title.set_y(95);this.title.mouseEnabled=!1;this.title.set_text("CONGRATULATIONS");this.addChild(this.title);this.itemTitle=
  70. new ha;this.itemTitle.set_size(55);this.itemTitle.set_align("center");this.itemTitle.set_fieldWidth(420);this.itemTitle.set_x(this.position.x-210);this.itemTitle.set_y(this.position.y-30);this.itemTitle.mouseEnabled=!1;this.addChild(this.itemTitle);var a=x.configs.getAnimationConfig("lights_anim");this.lights=new mc("ui",a);this.lights.set_x(this.position.x);this.lights.set_y(this.position.y);this.lights.setFps(-30);this.lights.set_visible(!1);this.container=new Za;this.container.set_x(this.position.x);
  71. this.container.set_y(this.position.y);this.container.set_visible(!0);this.addChild(this.container)},completeTimeout:function(a){this.dispatchEvent(new u(u.COMPLETE))},showGift:function(a){this.mode=0;this.itemTitle.set_text(a);this.itemTitle.set_visible(!0);this.show()},show:function(){this.set_visible(!0);this.timer.start();this.lights.set_visible(!0);this.lights.set_alpha(0);this.lights.play(!0);I.tween(this.lights,20,{rotation:360}).ease(hb.get_easeNone()).repeat();R.get_instance().playSound("gift")},
  72. showCar:function(a){this.mode=1;this.createCar(a);this.container.set_alpha(0);I.tween(this.container,.7,{alpha:1}).ease(hb.get_easeNone());this.container.set_visible(!0);this.show()},createCar:function(a){a=x.configs.getCarConfig("hero",a);var b=a.bX,c=a.bY,d=K.get_instance().get("main");this.shadow=C.create(d,a.s);this.shadow.x=z.parseFloat(a.sX)-b;this.shadow.y=z.parseFloat(a.sY)-c;d.addChild(this.shadow);this.container.add(this.shadow);var e=a.w.length;0<a.w.length&&(this.wheel1=C.create(d,"koleco"),
  73. this.wheel1.x=z.parseFloat(a.w[0].x)-b,this.wheel1.y=z.parseFloat(a.w[0].y)-c,d.addChild(this.wheel1),this.container.add(this.wheel1),2==e&&(this.wheel2=C.create(d,"koleco"),this.wheel2.x=z.parseFloat(a.w[1].x)-b,this.wheel2.y=z.parseFloat(a.w[1].y)-c,d.addChild(this.wheel2),this.container.add(this.wheel2)));this.body=C.create(d,a.b);d.addChild(this.body);this.container.add(this.body);K.get_instance().update()},hide:function(){this.timer.reset();this.set_visible(!1);this.lights.set_visible(!1);this.lights.stop();
  74. I.stop(this.lights);0==this.mode?this.hideGift():this.hideCar()},hideGift:function(){this.itemTitle.set_visible(!1)},hideCar:function(){this.container.set_visible(!1);this.container.removeAllChildren();var a=K.get_instance().get("main");a.removeChild(this.shadow);this.shadow=null;a.removeChild(this.body);this.body=null;null!=this.wheel1&&(a.removeChild(this.wheel1),this.wheel1=null);null!=this.wheel2&&(a.removeChild(this.wheel2),this.wheel2=null)},free:function(){this.timer.reset();this.timer=null;
  75. this.lights.free();this.itemTitle=this.title=this.wheel2=this.wheel1=this.body=this.shadow=this.container=this.position=this.itemTitle=this.lights=null},__class__:Qc});var Yb=function(){};g.Lambda=Yb;Yb.__name__=["Lambda"];Yb.count=function(a,b){var c=0;if(null==b)for(var d=db(a)();d.hasNext();)d.next(),c++;else for(d=db(a)();d.hasNext();){var e=d.next();b(e)&&c++}return c};Yb.indexOf=function(a,b){for(var c=0,d=db(a)();d.hasNext();){var e=d.next();if(b==e)return c;c++}return-1};var Rc=function(){this.length=
  76. 0};g.List=Rc;Rc.__name__=["List"];Rc.prototype={add:function(a){a=[a];null==this.h?this.h=a:this.q[1]=a;this.q=a;this.length++},iterator:function(){return{h:this.h,hasNext:function(){return null!=this.h},next:function(){if(null==this.h)return null;var a=this.h[0];this.h=this.h[1];return a}}},__class__:Rc};var xd=function(){};g.IMap=xd;xd.__name__=["IMap"];Math.__name__=["Math"];var yd=function(){A.call(this);this.init()};g.MenuStickmans=yd;yd.__name__=["MenuStickmans"];yd.__super__=A;yd.prototype=
  77. t(A.prototype,{init:function(){this.items=[];this.countStickmans=12;this.speed=85;this.layer=K.get_instance().get("ui");this.startPos=20;this.space=150},create:function(){for(var a,b,c=1,d=this.countStickmans+1;c<d;)a=c++,b=this.calcPos(a),a=C.create(this.layer,"uis"+a),a.x=b.x,a.y=b.y,this.layer.addChild(a),this.items.push(a)},calcPos:function(a){var b={x:0,y:this.get_y()};b.x=a*this.startPos+a*this.space-this.space/2;switch(a){case 2:b.y+=5;break;case 5:b.y+=-10;break;case 7:b.y+=-3;break;case 9:b.y+=
  78. 8;break;case 12:b.y+=15}return b},update:function(a){this.moveStickmans(a)},moveStickmans:function(a){for(var b=this.items.length,c=0;c<b;){var d=c++;this.items[d].x=-40>this.items[d].x?2E3:this.items[d].x-this.speed*a}},free:function(){this.layer=null},__class__:yd});var Db=function(){A.call(this);this.createUi()};g.NMEPreloader=Db;Db.__name__=["NMEPreloader"];Db.__super__=A;Db.prototype=t(A.prototype,{createUi:function(){var a=B.current.stage.stageWidth,b=a-6-200,a=a/2-b/2,c=B.current.stage.stageHeight/
  79. 2-25;this.outline=new A;this.outline.get_graphics().lineStyle(2,3352349,1,!0);this.outline.get_graphics().drawRect(0,0,b,50);this.outline.set_x(a);this.outline.set_y(c);this.progressBar.addChild(this.outline);this.progress=new A;this.progress.get_graphics().beginFill(16724005,1);this.progress.get_graphics().drawRect(0,0,b-6,44);this.progress.set_x(a+3);this.progress.set_y(c+3);this.progress.set_scaleX(0);this.progressBar.addChild(this.progress)},onInit:function(){},onLoaded:function(){this.dispatchEvent(new u(u.COMPLETE))},
  80. onUpdate:function(a,b){var c=a/b;1<c&&(c=1);this.updateProgressBar(c)},updateProgressBar:function(a){this.progress.set_scaleX(a)},__class__:Db});var nb=function(a,b,c,d){null==d&&(d=-1);null==c&&(c=!0);this.transparent=c;if(0<a&&0<b){this.width=a;this.height=b;this.rect=new oa(0,0,a,b);if(c){var e=d&-16777216;0==(0>e?4294967296+e:e+0)&&(d=0)}else d=-16777216|d&16777215;this.__image=new Ha(null,0,0,a,b,d);this.__image.set_transparent(c);this.__isValid=!0}this.__createUVs()};g["openfl.display.BitmapData"]=
  81. nb;nb.__name__=["openfl","display","BitmapData"];nb.__interfaces__=[Af];nb.fromImage=function(a,b){null==b&&(b=!0);var c=new nb(0,0,b);c.__loadFromImage(a);c.__image.set_transparent(b);return c};nb.prototype={getTexture:function(a){null==this.__texture&&(this.__texture=a.createTexture(),a.bindTexture(a.TEXTURE_2D,this.__texture),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,
  82. a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR),this.__image.dirty=!0);if(this.__image.dirty){a.bindTexture(a.TEXTURE_2D,this.__texture);var b=this.__image.clone();b.set_premultiplied(!0);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,this.width,this.height,0,a.RGBA,a.UNSIGNED_BYTE,b.get_data());a.bindTexture(a.TEXTURE_2D,null);this.__image.dirty=!1}return this.__texture},__createUVs:function(){null==this.__uvData&&(this.__uvData=new Sc);this.__uvData.x0=0;this.__uvData.y0=0;this.__uvData.x1=
  83. 1;this.__uvData.y1=0;this.__uvData.x2=1;this.__uvData.y2=1;this.__uvData.x3=0;this.__uvData.y3=1},__loadFromBase64:function(a,b,c){var d=this;Ha.fromBase64(a,b,function(a){d.__loadFromImage(a);null!=c&&c(d)})},__loadFromImage:function(a){this.__image=a;this.width=a.width;this.height=a.height;this.rect=new oa(0,0,a.width,a.height);this.__isValid=!0},__sync:function(){va.sync(this.__image)},__class__:nb};var Ia=function(a,b,c,d,e){null==d&&(d=-1);null==c&&(c=!0);nb.call(this,0,0,c,d);null!=Ia.preload?
  84. this.__image=Ia.preload:this.__loadFromBase64(nc.getString(Ia.resourceName),Ia.resourceType,function(a){null==Ia.preload&&(Ia.preload=a.__image);null!=e&&e(a)})};g.GameLogo=Ia;Ia.__name__=["GameLogo"];Ia.preload=null;Ia.__super__=nb;Ia.prototype=t(nb.prototype,{__class__:Ia});var Ja=function(a,b,c,d,e){null==d&&(d=-1);null==c&&(c=!0);nb.call(this,0,0,c,d);null!=Ja.preload?this.__image=Ja.preload:this.__loadFromBase64(nc.getString(Ja.resourceName),Ja.resourceType,function(a){null==Ja.preload&&(Ja.preload=
  85. a.__image);null!=e&&e(a)})};g.ProgressBarBg=Ja;Ja.__name__=["ProgressBarBg"];Ja.preload=null;Ja.__super__=nb;Ja.prototype=t(nb.prototype,{__class__:Ja});var ob=function(a,b,c,d,e){null==d&&(d=-1);null==c&&(c=!0);nb.call(this,0,0,c,d);null!=ob.preload?this.__image=ob.preload:this.__loadFromBase64(nc.getString(ob.resourceName),ob.resourceType,function(a){null==ob.preload&&(ob.preload=a.__image);null!=e&&e(a)})};g.ProgressBarBody=ob;ob.__name__=["ProgressBarBody"];ob.preload=null;ob.__super__=nb;ob.prototype=
  86. t(nb.prototype,{__class__:ob});var Wa=function(){Db.call(this)};g.Preloader=Wa;Wa.__name__=["Preloader"];Wa.__super__=Db;Wa.prototype=t(Db.prototype,{createUi:function(){var a=new oc(new Ia(300,185));a.set_x(170);a.set_y(100);this.addChild(a);this.progressBar=new A;this.progressBar.set_scaleX(1.2);this.progressBar.set_scaleY(1.2);this.progressBar.set_x(85);this.progressBar.set_y(355);this.addChild(this.progressBar);a=new oc(new Ja(388,55));a.smoothing=!0;this.progressBar.addChild(a);this.progress=
  87. new A;this.progress.set_x(19);this.progress.set_y(19);this.progressBar.addChild(this.progress);a=new oc(new ob(1,17));a.set_scaleX(351);a.set_scaleY(1.03);this.progress.addChild(a);this.progress.set_scaleX(0)},onInit:function(){this.init()},init:function(){this.checkIsMobile();x.initStage();0!=x.configs.getParseCount()&&(x.configs.addEventListener(u.COMPLETE,n(this,this.parse)),this.parseStep=.1/x.configs.getParseCount());this.initElements();this.addRotatePic();this.addResizeListener()},checkIsMobile:function(){var a=
  88. window.navigator.userAgent;if((new qa("android","i")).match(a)||(new qa("webOS","i")).match(a)||(new qa("iPhone","i")).match(a)||(new qa("iPad","i")).match(a)||(new qa("iPod","i")).match(a)||(new qa("BlackBerry","i")).match(a)||(new qa("Windows Phone","i")).match(a)||(new qa("IEMobile","i")).match(a)||(new qa("Opera Mini","i")).match(a)||(new qa("ZuneWP7","i")).match(a)||(new qa("Opera Mobi","i")).match(a)||(new qa("windows mobile","i")).match(a)||(new qa("nokia","i")).match(a)||(new qa("PSP","i")).match(a)||
  89. (new qa("Kindle","i")).match(a)||(new qa("PS Vita","i")).match(a)||(new qa("Mobi","i")).match(a)||(new qa("bada","i")).match(a))Wa.onMobile=!0;if((new qa("windows mobile","i")).match(a)||(new qa("windows phone","i")).match(a)||(new qa("iemobile","i")).match(a)||(new qa("windows nt","i")).match(a)&&(new qa("touch","i")).match(a)||window.ActiveXObject||"ActiveXObject"in window)Wa.isIE=!0},initElements:function(){this.body=window.document.getElementsByTagName("body")[0];this.openfl_content=window.document.getElementById("openfl-content");
  90. this.openfl_canvas=this.openfl_content.getElementsByTagName("canvas")[0];0==Wa.onMobile&&(this.body.style.overflow="hidden")},addBackground:function(){this.background=window.document.createElement("div");this.background.style.backgroundImage="url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFUAAABVCAMAAAAPK1hoAAAANlBMVEWhakSdZkGgaUN/UTGZYz+pcEmIWDaRXTptRSmPXTuxdk6tc0uVYDyAVDZWVl9vVkprcnyMkZqgqZKLAAABWklEQVRYw+3Y4XKDIBAE4Fu64Up7Qfv+L9vUoUYDqWaUNmn4fjnIHM7osB7yWoOEGuS9Bmn+kiMZQvDJ8YJPTlMgTVOXXfsIjdL8NlxwsokDTQusXBemakZg8jCSgV4DyThqmcFNp5nqclmtoVWt9EfkapBDDXKnwBnIzboYJINtVdH1HxGyM3axj5RdMPhRjJ0PA3KhPGh+MMyG7IRnT5KprhQdmJiOuUK2oFQ0v2U6ZyTAdD0Wpo7mgWoEvku48VWZ/ozMZxnPsvFKu7av4aG648PJP84CkqGIshELWrfZrGB+Iji5HwC5rXFabl/MCNkKWmRMbLR6NdL0FsYVHqqH0RrkpYZKGftWgzyh0PdRCmhh5AdB1vtqmmR3XYwRsjf4o0mzosmRIiQpQxIsxZdpIlNgfh42HtOGYORsXTEO8kRYiCA65B0qzBb2Vyyd4dHJnLOHzAKt4RPC2k+jw0qeYQAAAABJRU5ErkJggg==')";
  91. this.background.style.position="fixed";this.background.style.top="0px";this.background.style.width="100%";this.background.style.height="100%";this.body.insertBefore(this.background,this.openfl_content)},addBorders:function(){this.borderW=42;var a="url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAABVCAMAAAAIaYZ9AAAArlBMVEWZVTMAAACNVjeTXTqSXjuQXDmVXzyOWTSWYT2TXjqVYTyTXzuVYT2hakSRXTptRSmdZkCRXTqUXzt/UTGpcEnBhU3dmVixd06HVzV2Sy2tc0uJWTnSmGOrdkWAVDbtrG+7g1PboGvIilD8vH+yeUe6fkmib0PKkV/OjlPWk1bkomSZYz7BilleVVWjckpzWUxVWmd8gouFXUNeZXGCYEyQZEiWm6O2gFGZYz+aZD4pVKhjAAAADXRSTlMPAB9fn8x4L+NNto/z8Qcu4gAAAyRJREFUSMetV2tvm0AQxG3qxKlgT9ecIQVijpfx23m0gv//xzobQIkjw/KhI1mWrNFqbnf2YYdKE1OZkAyHVLKnKKFfnoDAIT+ztM4ofPg9inLuIKKl1RpRlTuC2pmBmqWUrQQquN8dCn1D6xzUepSqQLVRTlkqUIE7CFgaWi3pMQhCRvB0gSDswRnIIYCj6vGoTR9VpmqHkgpRZWqzcGivCop2IlXPLgW8nV9PgzXAs0A1TPVc9/D8fKiH85rkBT4d9Xw+6OG8rhF12QlQLy9aDQsIC0M7Oa8sIIKAZS7n9abNwHZCCX465G4Mxe9U9QWXr/qGDOwKqoqBhtG6Ua3UxeyTgAH05rxHVFCrMSqUcdhbh46loTIVO/bHjEtQ0GojN/dNOzKSVKbCr3GO6ZLL1DmoiGoMicCz9pnFLKDAdcVqKT+i4xrUh3FAgM0qabr0fk3g63VBj2HYPrSumytEFAtR05gyAypIwADTbfAshcImsgkVnhWVqFYpUtmE0XZkunjvCBk/ICCFgEqMWvOzCggoZK2LtrmjCb0FAcfYkB8zVUmT0G4ggLV6V+vV6M6DnNcKXdBam4ugLwSC2APUSMW0ZQEd9CdcdAxMiNGyrURrcwkCvGnnY20IQNQ4jnloikDUvd2TtaIADWsnx4jshC6Asyx2cZYhqisOzX23DcPhIdRXy9vBWcgruuArLqoxn7wN2Vm7DewiU+8caC0wX9Npu2C6gKS3Nmfr7XQa2ltzWFtBa9pRz3+fT83wQdIK6Kivryd9nXrbrY2e+udweFGDvaVyg93VUkfQwFkWDZMtRerNrNVqpWQprRHV5+myYWo9BM0Nw1G3rQBxwaAEq8l76wnN7SUyVX8so0cJfBW/N7cMVMtGtLLk+QL40uQVJ7chm/AYpeSX8t5acHN3zmrGo8IuesOHnngVcwnWKOwy/Z931j03N/JfylHnfDylBh4QqQ3fr/Iy6p+1VzklqqequkN3tKn2B3zftF2QdVGbuoaH+j8Hym28D/BJNjxd6i8bJjKgVlcuTe1dgv8XxJQa2doQEJTwazyJytebyWXq/T8Xsfcoddiz5QAAAABJRU5ErkJggg==')";
  92. this.leftBorder=window.document.createElement("div");this.leftBorder.style.backgroundImage=a;this.leftBorder.style.position="absolute";this.leftBorder.style.width=this.borderW+"px";this.leftBorder.style.height="100%";this.leftBorder.style.top="0px";a="url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAABVCAMAAAAIaYZ9AAAA+VBMVEWZVTONVjeTXTqYYT6QXDkAAACSXjuOWTSTXjqSXjuVYTyVYDyTXzuaZD+cZkGRXDmQXTqQXDqhakSRXTptRSmaZD+PXjuWYT2pcEl/UTHdmVjBhEyIVzV2Sy2xdk6tc0uJWTmdZkGAVDbboGuqdkbIilDRmGayeUe6fknTl2Dtq2vKkV/Ah1D+voLWk1aGVza5g1Wjckqib0PkomTOjlOyfE3BilleVVW6gk7ur3RVWme+hlasdEN6TjD2tnmreU/enF6daT3nqnJ8gouFXUN1W05eZXGCYExvVkqUXzuWm6OQZEiRXTqcZj+RXTqRXTqZYz+dZkGXZDx5Cg60AAAAEnRSTlMPH19/xQDrL02fstiP69hv/tism2ljAAADcUlEQVRIx41XeXOacBClzdEcbTJ1FkmkhxMQiLeIaNQYzU07juD3/zB9KzKWjLC8/3TerO+3+/ZQIRkjl8ymS0qnLOCaJhb5k4iUS/d3Lq6q1GqQ0Xog5Uj5VspBtLqmxh0ZXYuUz2AK1PqMai2mRrnUEFS7QfqgSsp5SaIiJNm3BjJQTdC5SaETf9m5p8od6RUIUPOjBhwVAmxk4FimVuqIekvKiSpTEdXrIq+aSF3fkrPwSVHCDNLL6/gtJSAzr+Hw6WlYKq2Y2gR1kJ1XbTgeb6n2iBy7my0g0p6fo62AOaI2WICc1zXpDgp7KufVnkMAnvW1QAn6cQY+XaQlfsCGapLeLqEEJ8uYo2rBag9AdTxy1sjAWWK2LOwEfOGg+J08qgfqBAIOV/lAslzS3R6StRKp7To5XIJjmVobxSPjUqbamC62iWeRiGYTUU2pWkCHWhamiw8BV/kAtdEj6yFiv8rTpUVeC3MA5doDNQy1MqNavSenQfaki2eppQzuBgGo+oymNQPPyre2xoXtkj6P2ISiX91HclwMosMqo7xBBpVnVt/iNhSjehBQgwA4W6I6sItjQECB3rrl5pYm4ZKp0wHp0x7yqq02CNR9zI2zPAhoG6DiU0KOUj/NBYitjS7w8KxUvwT/YefXaZ+mCwsl+C5a2+tjwPiI+kPAPQ3WZA46iEoibPSWiS44OBbXsWGQb/hwVoEuMMjqdYWhCeBZsxY2MvKq7cZ0eR9g7cojCutDayrv4UcEVeR1Qvq6DGdJXbBbRsq57CzYpb0utAtqmK+OzwIKr+ODjIMkenl541wl1u5m7i31/enPeEutQeuCrb3c//L319cNNRGQ3VvR83D4l6nJ2mC/5p8OTMXO0u0Ia+NUpFZmaBgDUQNtKSXLiLUeccNoYRaY2ubpgotIXDGI2sLMMortLUzC+qTQ3hqVyVzckPJTwm4ZkQxu7tGClItfAspk3JFlWKIJ0YbximOqvLfcB6pZPdglP6q63QV1XnGBeBXzodfWxN7S2NpzFLYBrWeF76yjA5HKt4u+hlZVpLbrEMAjQyu2jAZ41jJahgxcdXEmwy2ihLrokr3wecPsoJai5C8BZmAYqtuoM+6CDxsm3JeseGiiWqs0tGWUAlM9VEu3IEC2drNGpjcqRDXhV7eDo1Sm2s3N9fYPOyvrakjDSNIAAAAASUVORK5CYII=')";
  93. this.rightBorder=window.document.createElement("div");this.rightBorder.style.backgroundImage=a;this.rightBorder.style.position="absolute";this.rightBorder.style.width=this.borderW+"px";this.rightBorder.style.height="100%";this.rightBorder.style.top="0px";this.openfl_content.appendChild(this.leftBorder);this.openfl_content.appendChild(this.rightBorder)},addRotatePic:function(){this.rotatePic=window.document.createElement("div");this.rotatePic.style.backgroundImage="url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPgAAACXCAYAAAA4c5aEAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDE0IDc5LjE1Njc5NywgMjAxNC8wOC8yMC0wOTo1MzowMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkJDQ0M4MjhEMERGRDExRTU4NTBEOEJFRUI2MkRFREZDIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkJDQ0M4MjhFMERGRDExRTU4NTBEOEJFRUI2MkRFREZDIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QkNDQzgyOEIwREZEMTFFNTg1MEQ4QkVFQjYyREVERkMiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QkNDQzgyOEMwREZEMTFFNTg1MEQ4QkVFQjYyREVERkMiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7tWt2bAAAQsklEQVR42uydbUxb1xnHr18Ag3FsantKeMnyQkjShIIWSAsjWpsPSz5Uakr4sEnrNqnqNO3LNuXDtE2a1GqtWnXrtBetL1HX9UXKh4HJ1k7puqmqSkW6GDICW0jSQGjAJIrtYtc2MdjGe56be1OSFuJrbLgv/590dY2xwT73/u45z3POPceUzWYFsDQmk0mVn0s+brd/PqXHc8DvN5fbbNldjY04EXSIGUVgeDYFw+EOEt3xv5ERE4oDggMdEU8kqiKRyE+nAoFnZ6LRe0lyK0oFggMVhA4FCh8ctG12uVyPhEKhoyT5L0hyB0pYH+BqDVhma2NjY8XV6eldH42N7Uyn018nyR+h5y8iNkcNDnQgOD8gmU3Nzc0WarLfOxkIPM/xOeJyCA60jU3aRDZt2iTs27ePH+4jyZ+9nkzWQXI00YF2SS0WnHG73UJra2up3+9/aCoQKKutqTlCknNzfYFlV9ps7+3tbTOZTL+mh20o7qISstlsryYSiWe6urqC/IQJ/eDLo9Z+8KVQejzfe++9Q9Qkf4VqbReLvZj5+Xmhv78/Tb//p8fjebLK6TxFT6el5nxO/8jn833LbDa/zo/pQiFUOpC/KxbxWEwIhcNCMpnk86C9s7PzJGpwULlUS660tFS4//77rQN+/0GqyWvT6fTjXrf7TZJ7PpeavKenx2uxWF6nWoVbBMLtFxBQeKSLskAX5b91d3ffjRgccJVastwLWlpbTTt27Gikk+bpYDj8KMldlWPr5wDv6b2Qe5Xgi3J7e7tAF1UPXVz/CsEBs3CnF7Ckzc3N9ST5LycDgafpqS/fKflGJ9hG3ldXV6OEV1lyTpZyzgOCGxyK175Nu7IYxW93Qsqw30UPv0uS//F6MtlEkptzOeHA2oAYXId88MEH5r1795qnp6fdoWDw3ngi8T2qeb9Gv6qQXsJSZmibo62cW9P0Ovmqvyxyhn1kZOQAxeXramtqfkSSn+YM++2vzWazD3o8HhyQNQRZ9DvHkZr5rD6fr1GKe79MG8fJbGw9xWNuj9tt5Qy21+u9EXjT45XUrFIyJ0MXDj9J/MMqp3PgdsmPHz/eT79r6+jowIm0ypw7d07cUINrnO7ubq/Van2MLtQ/5gqWa2YS2kxCCx6v18zxbzGayFKG3TLg999HNflLnGGnmvxf9Ks4hreiiQ4KJ/aTciuM+5k3b9liXc2MdUtrK/dtN1FtcZR+fMHrdv+W9kEcIQgOCiA29zFz7Lxly5Y1S2Zxhp3DgKGhoR8kk0mO6V+g7WI+f2tiYkIcqAFuhUOrfMIqCK4henp6xFFhstgsVrGa4ErhiwydgFV+v//7k4HAHgoRnsgjpucBGjjQS8TU+QwYguAaqbV50IIgjeVmsdeyxl4KKcNeMTIy0kFx+YuVdnvO7x0+c0aUm7PuVU4nDvptXKdWDZWpQBdQYf/+/Tkfe/SDq5zjx4//jOS+xnLzyc93erHgau1bZsnb29st9Fnr44kEZ/NzGh/PJ6/L5YLcS1BOtTfnWDh8GR8fRw2ul1qb5BBr7ebm5pz6qdUAX3y4a2zA7y8JTE8Lly5dEj87hRc4sCuUXCkQXOVNcq7VGhsbNTmWmzPsnokJYXh4WIhGo8Lu3buFkpLPD3sPh8PiXkmTHkBwTeLz+fje6X5+zE2ye5qaND3UU251nD9/XhgaGhKaNP59tAbaTCqCs+Sy3Nu2bhVrQD3IwJK3tLQIMzMzYm2eyWRwsCG48eSWJ0bgeHsXNcv1BIcYe/bsEYLBoJBIJHDAIbhx5dZKMk0JHGefPXtWFL2srAwHHTG48eTmLjA9TozAcg8ODoqjsXbu3AnBIbgxkBJqN2tuvcp9+vRpUe67We48unoABNeq3P16bpaHQqEs1dymDRs2CPX19ZAbghsD7ufWu9wTExMLQ0NDqXXr1pXt2L5dKEWzfE1Akm0NkAaxiP3cOpU7S3JfqaioCPPoqxL0e0Nwo3DixIlfCdIINe7n1mnNPUbf77lUKnU1s7CgubnlITjIC86YJ5PJI3zbH09tqzcG/H4erTZOcj/hdbtfJMHncNQRgxsm7pa7w1p1MkLtNrmzU4HAhLQCyl+EGxM6AghurLhbj91hktwXSO4nSO6eXY2NotwfjY3hwENw/cP3dPNtn3w/t56SajwLy6lTp9KhUOgUfbenSO53SO4UjjgENwzc383zp3HcvXfvXlVIKS1ykJU2cz4tCmmKpXAkEnmttqbmD+U228ckN+4igeDGQlo2d9XjbhIwOz09nUrEYvMz0eh8PB5PErwOmUW4sUIoT372CW2baXMqGSbLf5vkDpHcL5Pcz7S0ti41kdpunAEQXLf09vbyYJY27u9ejbiba1WSWuyqIvmu0FOv0vZ3l8sV9LjdpZUOh4t+vkqtiXkKFSb5PW+//XYfic8p/Zx6VMLhcMbv91+l9/xJqrmjONIQ3HBwl5ggzaNW7P5uHu89OjoqDg2lH/9DAv9529at71OT+cyd3kuvHSNZ+QOW5fB/0iT3x/TwdyT3ayw3FjmA4IZjcZdYMePuRWLLsj5Osr5x8ODBsRzea6JWBcs5SBsvd7Q+B7kv0cPn6khuEnsWRxqCGxK73f4Tnv2yWLOfStnrm2JTnP/zdDp9lMTOeUURSW5BiscX7nQhIbn5n71MTf03IDcENzQk93c4a85zlxcangBfXv1DFrurq0sUO8+FJOeXOw+koafX6Pu8SDX3SyR3HEcYghsWqc/bw/3dhay9udbmxQF4/nDiZCaTeUgWe4Vw4s28hNwpaVz58163+xWSO6bwb/9XkBZrABBcF7G33OddyNpbaiLfrLUPHTr0VAE/NjfR575A7gTJPUhy/4bkPiGPTgMQ3PCxdyH7vBfLTReP9ocffvhkoSMKSXKZhQG/P0othfdJ7t+T3O9jdBoER+1Ntbd8p1ih+rw51ua5xAvcJP/cdYk2vp+TA/g0yR0guU94PJ7XqpzO05AbggPh1sy5huQWw3vaeIhplOQeJLn/QXK/SXJfJLnTOLIQHAifZc4LcTPJYrmpSV7sG8dnaJuiMGCIR6eR3B+S3J+Q3As4qhAcCLdmzgsRc3NX2CrJzfybtlmSO15bUzNUbrOFMToNgoNFkNwPFiJzviihtlpy84J/PGb9Mu1LSO5ZyA3BwSLkMed1NTUrypxzP/fIyIgoN8fcq/X5W1pbE4ticaAzMCfbCqmoqGjm/bbt21f0d3gQSyQS4dbAkSIm1IDRanB5xsvu7m67xWL5Bj2sQ7F8Rm9v77J+c9cY3zG2ktqbY24eoUZy99LxOED/80CeuYDVKJJJ+pzvUAgxibNDI010n89XRyfWNymOrNDjPN3F4sqVK3t4Yfva2toVxd0suNPpfHfDhg3Dav6+8VhMCIXDdXRRe5TOGV9nZ+cwzgKVC841N8n9KM/TzVP5YnH23Ll8+XLDSrrGOO7mpBo186ceeOCBPi18Z2mqJg4nOnt6esYOHz6MtYDVHIPb7favyvN0Q+7cicViFbOzs7WcXMsXvuUzlUrNtrW1HdPK9+ZzpFFau9xqtX4FZ4LKBafmVrPH7YbcCrlw4cIe3q+vrs7r/TyYhe/nbmpqOuZwODR1fzUPxeVKgWLxBpwJKhectopKhwMloZDp6en7VjLunAWvq6s7uXHjxiktfv/KykqcBBoRHCiPvWszmUzeCUlOqnGXmNfrPYvSBBBcZQSDQZ5qWFzUXimcpGLBqfZ+V6u1N4DguiYcDjdwr0M+zfOPzp8X9w0NDYMoSQDBVYacPffmuRoIr9fFtbfWEmtAm1jzOUnHx8cNW2DXrl2r530+2XO59rbb7X3SHWNrBocXelsEEaxQ8MXTBxmV0tJScf5wh8KeB7n2NplM76613Ax/Bl7pFCMXIfjNE1SWm5fiKbfZDFlgF8fHm2rzuHOMlxRiNtbWDqphzMFkICBOKsEXKtTkiMHFFSmNLjdd5Cqy2Wxe4wa4xqxyuU6S3KqIveUReFelCw8wuODB4I07GI0qNxP99NN6OX5VGtrwxZHkVlW/Nw/UmYli7UAIDkQofhbjb6VN2kvj4/ze2XUOB/q9AQRXK5FotInv/VbYrBfv9XZUVn6IEgQQXOXxt1LB5eQaxd8Y2AIguFpJzs3dlU/8PTU1JZSUlEypJbkGIDj4Aq5fvy6OP1fS/83Nc74ltNxmu4ASBBBczYInk+LsLUr6sLlrkSkvL7+EEgQQXMWk0+m7lN4Djew5gOAaIZ8EWygcFlxO5xmUHoDgKubTWEycNtWmYJCPPLiFLgxXUYIAgquYOSmDriTBJsffznXrLqIEAQRXMQsLC07eKxnBhu4xAME1gsViKbcpHIMfj8fRPQYguBaIJxJ1SjLocvxtNptxJweA4GonlUrV2srKFL+vrKzsE5QegOAaQMk94PKttej/BhBcIyiJwXmRPk6wodQABFc5ch+4ki4yHuACAATXKZxgQwYdQHANIA9yyRW+gwwACK4RlA5ywR1kQE1YUQTgi1oh8uIWWCABgoNF6KGLrL+/X1z9lOHpnvft2wfJ0UTXJzzRg9LbRLUMj8JjuXn++21bt4rPjY6O4kSA4IDJpFK6+j42A8+DD8HB5+CFBDDIBUBwAAAEBwBAcAAABAcAggMAdAIGuuRAOp0W+4dzfS0AEFxD8MCPvr6+nF9f5XJNotQABNcA1evXH0sqvKMMM7kACK4ReNpjTH0MtAqSbABAcAAABAcAQHAAAAQHAEBwAAAEBwCCAwAgODAU+Sy8CNQBRrKBW5CXaJoKBMT52HiVls1btqBgUIMDPVBaWipOk8wzyfKa6Dy7KqZMRg0OdAQL3dHRgYJADQ4AgOAAAAgOAIDgAAAIDgCA4ABAcAAABAcAQHAAAAQHAEBwAAAEBwCCAwAgOAAAggMAIDgAAIIDvSLPGBNPJFAYEBwAAMGBpuA54CKRiHA9mURhLMFkICDuvV5vzu/BnGxAFezcuVPw+/03Z3MFt5KULnzNzc2KJsGE4AYnnU6rJg7fv3+/MHzmjJCcmxM/l9WK01OmrqZGWF9drXiGW5SgwVGTRDxlc0trKw7KWsTgcrNpJhpFqekAjnW52YdVS3R+Ac/1hZs2bRImJiaEUCh0s1lXabejBDWG3BXFCS2+aN/T1IRCgeA3aG9vF2OkKSmbxycJ0CactebEFjeLjcb8/LwQi8WKkkfQtOByjCTHSeFwGKZoDKMvQ8TnbF9fX1H+tsvlEitBNV00rThZgJEYHR0V97zmWqHhlu34+LiwY8cOfQgOgBbh3EO5QfraITgwltxlZWKiWB4VVijkgShKRplBcKB51DKQRobzR7ze+SVqSvOAmkLBSy1z0lJtYSsEB0XDZDK9FYlE2tT2uVhCo+SPxIEu8SJ0GQB9E4/Hc34td0uBVT4+ktMs+CRn/9DlBXLl3LlzYsxJNfSF5V6XyWQu854zy2D14Atq6IbPJ83ZbPYdfsR38vBINVxtwXInDsvNmxRfn17u9YcPH36DdqHF7wHFhSvq/v5+8QJMbh8x8ZM9PT33mM3mzsUv5JFOAEgi3z5qcZZOnmOdnZ2TtF8uBhd8Pl8b7fv5Z+6e4mQUKF7YJGfzFxYWHuELrEn+ZXd3t50OxFaLxeLkn+nANazCZ/rSEs9fw+FSF3JznJrdUTpxhuXn7yS4dG55rVbrY/TaB1GSRT9Ob9EF+WhXV1eQf/6/AAMAMR8yQ4cFLCcAAAAASUVORK5CYII=')";
  94. this.rotatePic.style.position="absolute";this.rotatePic.style.width="248px";this.rotatePic.style.height="151px";this.rotatePic.style.display="none";this.body.appendChild(this.rotatePic)},addResizeListener:function(){window.addEventListener("resize",n(this,this.resizeHandler));this.resize(!0)},resizeHandler:function(a){this.resize()},resize:function(a){1==Wa.onMobile&&this.checkOrientation();this.updateBranding()},checkOrientation:function(){1==window.matchMedia("(orientation: portrait)").matches?
  95. this.setPortrait():this.setLandscape()},setLandscape:function(){this.lockView()},setPortrait:function(){this.unLockView()},lockView:function(){this.openfl_canvas.style.opacity="0";B.current.set_visible(!1);this.showRotatePic()},unLockView:function(){this.openfl_canvas.style.opacity="1";B.current.set_visible(!0);this.rotatePic.style.display="none"},showRotatePic:function(){var a=window.innerHeight,b=window.innerWidth/2-z.parseFloat(this.rotatePic.style.width)/2,a=a/2-z.parseFloat(this.rotatePic.style.height)/
  96. 2;this.rotatePic.style.left=b+"px";this.rotatePic.style.top=a+"px";this.rotatePic.style.display="block"},arangeBorders:function(){var a=window.innerWidth,b=z.parseFloat(this.openfl_canvas.style.width);z.parseFloat(this.openfl_canvas.style.height);var c=a/2,d=b/2,b=c-d-this.borderW+2,c=c+d-2;this.leftBorder.style.display=b<=-(this.borderW-10)?"none":"block";this.rightBorder.style.display=c>=a-10?"none":"block";this.leftBorder.style.left=b+"px";this.rightBorder.style.left=c+"px"},onUpdate:function(a,
  97. b){var c=a/b;.9<c&&(c=.9);this.progress.set_scaleX(c)},onLoaded:function(){this.parse()},parse:function(a){0==x.configs.getParseCount()?this.completeParse():(x.configs.parse(),a=this.progress,a.set_scaleX(a.get_scaleX()+this.parseStep))},completeParse:function(){1==x.configs.hasEventListener(u.COMPLETE)&&x.configs.removeEventListener(u.COMPLETE,n(this,this.parse));this.complete()},complete:function(){"complete"!=window.document.readyState?window.document.body.onload=n(this,this.allLoaded):this.allLoaded()},
  98. allLoaded:function(a){this.resize(!0);this.hideAdressBar();this.completePreloader()},hideAdressBar:function(){setTimeout("window.scrollTo(0, 1)",1E3)},completePreloader:function(){l.to(this.progressBar,{alpha:0},null,null,null,null,null,null,null,null,{fileName:"Preloader.hx",lineNumber:406,className:"Preloader",methodName:"completePreloader"}).time(.5);x.completePreloader();this.showPlayButton()},showPlayButton:function(){var a=new Ka("assets/images/hd/buttons/btn_back.png");a.set_rotation(180);
  99. a.addEventListener("b_complete",n(this,this.nextScreen));a.set_x(320);a.set_y(390);a.set_scaleX(1.5);a.set_scaleY(1.5);a.set_alpha(0);a.setSoundEffect("click");this.addChild(a);l.to(a,{alpha:1},null,null,null,null,null,null,null,null,{fileName:"Preloader.hx",lineNumber:432,className:"Preloader",methodName:"showPlayButton"}).delay(.2).time(.5)},nextScreen:function(a){this.dispatchEvent(new u(u.COMPLETE))},needLoad:function(a){return 1==Wa.isIE&&-1!=a.indexOf("sound")?!1:!0},checkSiteLock:function(){var a=
  100. B.current.stage.loaderInfo.url,b=z["int"](a.indexOf("://")+3),c=z["int"](a.indexOf("/",b)),a=a.substring(b,c),b=z["int"](a.lastIndexOf(".")-1),b=z["int"](a.lastIndexOf(".",b)+1),a=a.substring(b,a.length);0==a.length&&(a="localhost");return this.isUrl(a,["homiebearstudio.com"])?!0:!1},isUrl:function(a,b){for(var c=0,d=b.length;c<d;){var e=c++;if(a==b[e])return!0}return!1},updateBranding:function(){var a=z.parseFloat(this.openfl_canvas.style.marginLeft);0>a&&(a=0);var b=z.parseFloat(this.openfl_canvas.style.marginTop);
  101. 0>b&&(b=0);var c=z.parseFloat(this.openfl_canvas.style.width);z.parseFloat(this.openfl_canvas.style.height);c/=B.current.stage.stageWidth;X.get_instance().resize(a,b,c)},__class__:Wa});var r=function(){};g.Reflect=r;r.__name__=["Reflect"];r.hasField=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};r.field=function(a,b){try{return a[b]}catch(c){return null}};r.setField=function(a,b,c){a[b]=c};r.getProperty=function(a,b){var c;return null==a?null:a.__properties__&&(c=a.__properties__["get_"+
  102. b])?a[c]():a[b]};r.setProperty=function(a,b,c){var d;if(a.__properties__&&(d=a.__properties__["set_"+b]))a[d](c);else a[b]=c};r.callMethod=function(a,b,c){return b.apply(a,c)};r.fields=function(a){var b=[];if(null!=a){var c=Object.prototype.hasOwnProperty,d;for(d in a)"__id__"!=d&&"hx__closures__"!=d&&c.call(a,d)&&b.push(d)}return b};r.isFunction=function(a){return"function"==typeof a&&!(a.__name__||a.__ename__)};r.compare=function(a,b){return a==b?0:a>b?1:-1};r.compareMethods=function(a,b){return a==
  103. b?!0:r.isFunction(a)&&r.isFunction(b)?a.scope==b.scope&&a.method==b.method&&null!=a.method:!1};r.isEnumValue=function(a){return null!=a&&null!=a.__enum__};r.deleteField=function(a,b){if(!Object.prototype.hasOwnProperty.call(a,b))return!1;delete a[b];return!0};var z=function(){};g.Std=z;z.__name__=["Std"];z.string=function(a){return v.__string_rec(a,"")};z["int"]=function(a){return a|0};z.parseInt=function(a){var b=parseInt(a,10);0!=b||120!=E.cca(a,1)&&88!=E.cca(a,1)||(b=parseInt(a));return isNaN(b)?
  104. null:b};z.parseFloat=function(a){return parseFloat(a)};var zc=function(){this.b=""};g.StringBuf=zc;zc.__name__=["StringBuf"];zc.prototype={add:function(a){this.b+=z.string(a)},addSub:function(a,b,c){this.b=null==c?this.b+E.substr(a,b,null):this.b+E.substr(a,b,c)},__class__:zc};var W=function(){};g.StringTools=W;W.__name__=["StringTools"];W.urlEncode=function(a){return encodeURIComponent(a)};W.urlDecode=function(a){return decodeURIComponent(a.split("+").join(" "))};W.startsWith=function(a,b){return a.length>=
  105. b.length&&E.substr(a,0,b.length)==b};W.replace=function(a,b,c){return a.split(b).join(c)};W.hex=function(a,b){var c="";do c="0123456789ABCDEF".charAt(a&15)+c,a>>>=4;while(0<a);if(null!=b)for(;c.length<b;)c="0"+c;return c};W.fastCodeAt=function(a,b){return a.charCodeAt(b)};var U=g.ValueType={__ename__:["ValueType"],__constructs__:"TNull TInt TFloat TBool TObject TFunction TClass TEnum TUnknown".split(" ")};U.TNull=["TNull",0];U.TNull.toString=q;U.TNull.__enum__=U;U.TInt=["TInt",1];U.TInt.toString=
  106. q;U.TInt.__enum__=U;U.TFloat=["TFloat",2];U.TFloat.toString=q;U.TFloat.__enum__=U;U.TBool=["TBool",3];U.TBool.toString=q;U.TBool.__enum__=U;U.TObject=["TObject",4];U.TObject.toString=q;U.TObject.__enum__=U;U.TFunction=["TFunction",5];U.TFunction.toString=q;U.TFunction.__enum__=U;U.TClass=function(a){a=["TClass",6,a];a.__enum__=U;a.toString=q;return a};U.TEnum=function(a){a=["TEnum",7,a];a.__enum__=U;a.toString=q;return a};U.TUnknown=["TUnknown",8];U.TUnknown.toString=q;U.TUnknown.__enum__=U;var Q=
  107. function(){};g.Type=Q;Q.__name__=["Type"];Q.getClass=function(a){return null==a?null:v.getClass(a)};Q.getClassName=function(a){return a.__name__.join(".")};Q.getEnumName=function(a){return a.__ename__.join(".")};Q.resolveClass=function(a){a=g[a];return null!=a&&a.__name__?a:null};Q.resolveEnum=function(a){a=g[a];return null!=a&&a.__ename__?a:null};Q.createInstance=function(a,b){switch(b.length){case 0:return new a;case 1:return new a(b[0]);case 2:return new a(b[0],b[1]);case 3:return new a(b[0],b[1],
  108. b[2]);case 4:return new a(b[0],b[1],b[2],b[3]);case 5:return new a(b[0],b[1],b[2],b[3],b[4]);case 6:return new a(b[0],b[1],b[2],b[3],b[4],b[5]);case 7:return new a(b[0],b[1],b[2],b[3],b[4],b[5],b[6]);case 8:return new a(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7]);default:throw"Too many arguments";}};Q.createEmptyInstance=function(a){function b(){}b.prototype=a.prototype;return new b};Q.createEnum=function(a,b,c){var d=r.field(a,b);if(null==d)throw"No such constructor "+b;if(r.isFunction(d)){if(null==
  109. c)throw"Constructor "+b+" need parameters";return d.apply(a,c)}if(null!=c&&0!=c.length)throw"Constructor "+b+" does not need parameters";return d};Q.getClassFields=function(a){a=r.fields(a);E.remove(a,"__name__");E.remove(a,"__interfaces__");E.remove(a,"__properties__");E.remove(a,"__super__");E.remove(a,"prototype");return a};Q.getEnumConstructs=function(a){return a.__constructs__.slice()};Q["typeof"]=function(a){switch(typeof a){case "boolean":return U.TBool;case "string":return U.TClass(String);
  110. case "number":return Math.ceil(a)==a%2147483648?U.TInt:U.TFloat;case "object":if(null==a)return U.TNull;var b=a.__enum__;if(null!=b)return U.TEnum(b);a=v.getClass(a);return null!=a?U.TClass(a):U.TObject;case "function":return a.__name__||a.__ename__?U.TObject:U.TFunction;case "undefined":return U.TNull;default:return U.TUnknown}};g.XmlType={__ename__:["XmlType"],__constructs__:[]};var J=function(){};g.Xml=J;J.__name__=["Xml"];J.Element=null;J.PCData=null;J.CData=null;J.Comment=null;J.DocType=null;
  111. J.ProcessingInstruction=null;J.Document=null;J.parse=function(a){return Zb.parse(a)};J.createElement=function(a){var b=new J;b.nodeType=J.Element;b._children=[];b._attributes=new sa;b.set_nodeName(a);return b};J.createPCData=function(a){var b=new J;b.nodeType=J.PCData;b.set_nodeValue(a);return b};J.createCData=function(a){var b=new J;b.nodeType=J.CData;b.set_nodeValue(a);return b};J.createComment=function(a){var b=new J;b.nodeType=J.Comment;b.set_nodeValue(a);return b};J.createDocType=function(a){var b=
  112. new J;b.nodeType=J.DocType;b.set_nodeValue(a);return b};J.createProcessingInstruction=function(a){var b=new J;b.nodeType=J.ProcessingInstruction;b.set_nodeValue(a);return b};J.createDocument=function(){var a=new J;a.nodeType=J.Document;a._children=[];return a};J.prototype={get_nodeName:function(){if(this.nodeType!=J.Element)throw"bad nodeType";return this._nodeName},set_nodeName:function(a){if(this.nodeType!=J.Element)throw"bad nodeType";return this._nodeName=a},set_nodeValue:function(a){if(this.nodeType==
  113. J.Element||this.nodeType==J.Document)throw"bad nodeType";return this._nodeValue=a},get:function(a){if(this.nodeType!=J.Element)throw"bad nodeType";return this._attributes.get(a)},set:function(a,b){if(this.nodeType!=J.Element)throw"bad nodeType";this._attributes.set(a,b)},exists:function(a){if(this.nodeType!=J.Element)throw"bad nodeType";return this._attributes.exists(a)},elementsNamed:function(a){if(null==this._children)throw"bad nodetype";return{cur:0,x:this._children,hasNext:function(){for(var b=
  114. this.cur,c=this.x.length;b<c;){var d=this.x[b];if(d.nodeType==J.Element&&d._nodeName==a)break;b++}this.cur=b;return b<c},next:function(){for(var b=this.cur,c=this.x.length;b<c;){var d=this.x[b];b++;if(d.nodeType==J.Element&&d._nodeName==a)return this.cur=b,d}return null}}},firstElement:function(){if(null==this._children)throw"bad nodetype";for(var a=0,b=this._children.length;a<b;){var c=this._children[a];if(c.nodeType==J.Element)return c;a++}return null},addChild:function(a){if(null==this._children)throw"bad nodetype";
  115. null!=a._parent&&E.remove(a._parent._children,a);a._parent=this;this._children.push(a)},__class__:J,__properties__:{set_nodeValue:"set_nodeValue",set_nodeName:"set_nodeName",get_nodeName:"get_nodeName"}};var Be=function(){this.list=[];this.runs=this.elapsed=0};g["aze.display.DrawList"]=Be;Be.__name__=["aze","display","DrawList"];Be.prototype={begin:function(a,b,c,d,e){this.flags=0;this.fields=3;1==b?(this.offsetTransform=this.fields,this.fields+=4,this.flags|=16):this.offsetTransform=0;1==d?(this.offsetRGB=
  116. this.fields,this.fields+=3,this.flags|=4):this.offsetRGB=0;1==c?(this.offsetAlpha=this.fields,this.fields++,this.flags|=8):this.offsetAlpha=0;1==e&&(this.flags|=65536);0<a?this.elapsed=a:(this.index=0,a=Math.abs(B.getTimer()),0<this.time&&(this.elapsed=Math.abs(Math.min(67,a-this.time))),this.time=a)},end:function(){if(this.list.length>this.index)if(60<++this.runs)this.list.splice(this.index,this.list.length-this.index),this.runs=0;else for(;this.index<this.list.length;)this.list[this.index+2]=-2,
  117. this.index+=this.fields},__class__:Be};var la=function(a,b){null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b};g["openfl.geom.Point"]=la;la.__name__=["openfl","geom","Point"];la.prototype={setTo:function(a,b){this.x=a;this.y=b},__class__:la};var pc=function(a){this.__bitmap=a;this.__centerPoints=[];this.__tileRects=[];this.__tileUVs=[];this.__rectTile=new oa;this.__rectUV=new oa;this.__point=new la};g["openfl.display.Tilesheet"]=pc;pc.__name__=["openfl","display","Tilesheet"];pc.prototype={addTileRect:function(a,
  118. b){this.__tileRects.push(a);null==b&&(b=pc.__defaultPoint);this.__centerPoints.push(b);this.__tileUVs.push(new oa(a.get_left()/this.__bitmap.width,a.get_top()/this.__bitmap.height,a.get_right()/this.__bitmap.width,a.get_bottom()/this.__bitmap.height));return this.__tileRects.length-1},drawTiles:function(a,b,c,d,e){null==e&&(e=-1);null==d&&(d=0);null==c&&(c=!1);a.drawTiles(this,b,c,d,e)},__class__:pc};var Ac=function(a,b,c){null==c&&(c=0);null==b&&(b=1);pc.call(this,a);this.scale=1/b;this.defs=[];
  119. this.anims=new sa;this.sizes=[];this.rotation=c;0!=c&&(this.rotations=[])};g["aze.display.TilesheetEx"]=Ac;Ac.__name__=["aze","display","TilesheetEx"];Ac.__super__=pc;Ac.prototype=t(pc.prototype,{addDefinition:function(a,b,c,d,e){null==e&&(e=!1);this.defs.push(a);this.sizes.push(b);1!=this.scale&&(c.x/=this.scale,c.y/=this.scale,c.width/=this.scale,c.height/=this.scale,d.x/=this.scale,d.y/=this.scale);this.addTileRect(c,d);this.rotations.push(e)},getAnim:function(a){if(this.anims.exists(a))return this.anims.get(a);
  120. for(var b=[],c=0,d=this.defs.length;c<d;){var e=c++;1==W.startsWith(this.defs[e],a)&&b.push(e)}this.anims.set(a,b);return b},getSize:function(a){return a<this.sizes.length?this.sizes[a]:new oa},getRotation:function(a){return a<this.rotations.length?this.rotations[a]?this.rotation:0:0},__class__:Ac});var Ad=function(a,b,c){null==c&&(c=1);Ac.call(this,a,c,-Math.PI/2);new la(0,0);a=!1;for(b=(new zd(J.parse(b).firstElement())).nodes.resolve("SubTexture").iterator();b.hasNext();){var d=b.next();c=d.att.resolve("name");
  121. a=d.has.resolve("rotated")&&"true"==d.att.resolve("rotated");var e=new oa;e.x=z.parseFloat(d.att.resolve("x"));e.y=z.parseFloat(d.att.resolve("y"));e.width=z.parseFloat(d.att.resolve("width"));e.height=z.parseFloat(d.att.resolve("height"));var f=new oa;1==d.has.resolve("frameX")?(0==a?(f.x=z.parseInt(d.att.resolve("frameX")),f.y=z.parseInt(d.att.resolve("frameY"))):(f.x=z.parseInt(d.att.resolve("frameY")),f.y=z.parseInt(d.att.resolve("frameX"))),f.width=z.parseInt(d.att.resolve("frameWidth")),f.height=
  122. z.parseInt(d.att.resolve("frameHeight"))):(f.width=e.width,f.height=e.height);d=new la(f.x+f.width/2,f.y+f.height/2);this.addDefinition(c,f,e,d,a)}};g["aze.display.SparrowTilesheet"]=Ad;Ad.__name__=["aze","display","SparrowTilesheet"];Ad.__super__=Ac;Ad.prototype=t(Ac.prototype,{__class__:Ad});var $b=function(a){this.layer=a;this.x=this.y=0;this.visible=!0;this.animated=!1};g["aze.display.TileBase"]=$b;$b.__name__=["aze","display","TileBase"];$b.prototype={init:function(a){this.layer=a},step:function(a){},
  123. __class__:$b};var C=function(a,b){this.r=this.g=this.b=1;$b.call(this,a);this._defaultRotation=this._rotation=0;this.alpha=this._scaleX=this._scaleY=1;this._mirror=0;this._indice=-1;this._transform=[];this.dirty=!0;this.set_tile(b)};g["aze.display.TileSprite"]=C;C.__name__=["aze","display","TileSprite"];C.pool=null;C.create=function(a,b){null==C.pool&&(C.pool=[]);if(0==C.pool.length)return new C(a,b);var c=C.pool.pop();c.set_tile(b);c.layer=a;return c};C.clearPool=function(){C.pool=[];C.pool=null};
  124. C.__super__=$b;C.prototype=t($b.prototype,{init:function(a){this.layer=a;var b=a.tilesheet.getAnim(this._tile);this.set_indice(b[0]);this.size=a.tilesheet.getSize(this._indice);this._defaultRotation=a.tilesheet.getRotation(this._indice)},get_tile:function(){return this._tile},set_tile:function(a){this._tile!=a&&(this._tile=a,null!=this.layer&&this.init(this.layer));return a},get_indice:function(){return this._indice},set_indice:function(a){this._indice!=a&&(this._indice=a);return a},get_mirror:function(){return this._mirror},
  125. set_mirror:function(a){this._mirror!=a&&(this._mirror=a,this.dirty=!0);return a},get_rotation:function(){return this._defaultRotation+this._rotation},set_rotation:function(a){this._rotation!=a&&(this._rotation=a,this.dirty=!0);return a},get_scale:function(){return this._scaleX},set_scale:function(a){this._scaleX!=a&&(this._scaleY=this._scaleX=a,this.dirty=!0);return a},get_scaleX:function(){return this._scaleX},set_scaleX:function(a){this._scaleX!=a&&(this._scaleX=a,this.dirty=!0);return a},get_scaleY:function(){return this._scaleY},
  126. set_scaleY:function(a){this._scaleY!=a&&(this._scaleY=a,this.dirty=!0);return a},get_color:function(){return(256*this.r|0)<<16+(256*this.g|0)<<8+(256*this.b|0)},set_color:function(a){this.r=(a>>16)/255;this.g=(a>>8&255)/255;this.b=(a&255)/255;return a},get_transform:function(){if(1==this.dirty){this.dirty=!1;var a;a=1==this._mirror?-1:1;var b;b=2==this._mirror?-1:1;var c=this._scaleX*this.layer.tilesheet.scale,d=this._scaleY*this.layer.tilesheet.scale;if(0!=this._defaultRotation+this._rotation){var e=
  127. Math.cos(this._defaultRotation+this._rotation),f=Math.sin(this._defaultRotation+this._rotation);this._transform[0]=a*e*c;this._transform[1]=-b*f*d;this._transform[2]=a*f*c;this._transform[3]=b*e*d}else this._transform[0]=a*c,this._transform[1]=0,this._transform[2]=0,this._transform[3]=b*d}return this._transform},get_height:function(){return this.size.height*this._scaleY},get_width:function(){return this.size.width*this._scaleX},get_offset:function(){return this._offset},set_offset:function(a){return this._offset=
  128. null==a?null:new la(a.x/this.layer.tilesheet.scale,a.y/this.layer.tilesheet.scale)},destroyToCache:function(){this.reset();C.pool.push(this)},reset:function(){this._rotation=0;this.alpha=this._scaleX=this._scaleY=1;this._mirror=0;this._indice=-1;this.x=this.y=0;this.visible=!0;this.layer=this._tile=null;this.dirty=!0;this.size=this._offset=null;null!=this.parent&&this.parent.removeChild(this);this._transform=[]},free:function(){this.reset();this._transform=null},__class__:C,__properties__:{get_transform:"get_transform",
  129. set_offset:"set_offset",get_offset:"get_offset",get_width:"get_width",get_height:"get_height",set_color:"set_color",get_color:"get_color",set_scaleY:"set_scaleY",get_scaleY:"get_scaleY",set_scaleX:"set_scaleX",get_scaleX:"get_scaleX",set_scale:"set_scale",get_scale:"get_scale",set_rotation:"set_rotation",get_rotation:"get_rotation",set_mirror:"set_mirror",get_mirror:"get_mirror",set_indice:"set_indice",get_indice:"get_indice",set_tile:"set_tile",get_tile:"get_tile"}});var Va=function(a,b,c){null==
  130. c&&(c=18);C.call(this,a,b);this.fps=c;this.loop=this.animated=!0};g["aze.display.TileClip"]=Va;Va.__name__=["aze","display","TileClip"];Va.pool=null;Va.create=function(a,b,c){null==c&&(c=18);null==Va.pool&&(Va.pool=[]);if(0==Va.pool.length)return new Va(a,b,c);a=Va.pool.pop();a.fps=c;a.set_tile(b);return a};Va.clearPool=function(){Va.pool=[];Va.pool=null};Va.__super__=C;Va.prototype=t(C.prototype,{init:function(a){this.layer=a;this.frames=a.tilesheet.getAnim(this._tile);this.set_indice(this.frames[0]);
  131. this.size=a.tilesheet.getSize(this._indice);this.time=0;this.prevFrame=-1},step:function(a){this.time+=a;a=this.get_currentFrame();if(a!=this.prevFrame){var b=a<this.prevFrame;this.prevFrame=a;if(1==b){if(0==this.loop?(this.animated=!1,this.set_currentFrame(this.frames.length-1)):this.set_indice(this.frames[a]),null!=this.onComplete)this.onComplete(this)}else this.set_indice(this.frames[a])}},play:function(){0==this.animated&&(this.animated=!0,this.get_currentFrame()==this.frames.length-1&&(this.set_currentFrame(0),
  132. this.prevFrame=-1))},stop:function(){this.animated=!1},get_currentFrame:function(){return Math.floor(this.time/1E3*this.fps)%this.frames.length},set_currentFrame:function(a){a>=this.frames.length&&(a=this.frames.length-1);this.time=Math.floor(1E3*a/this.fps)+1;this.set_indice(this.frames[a]);return a},destroyToCache:function(){this.reset();Va.pool.push(this)},reset:function(){C.prototype.reset.call(this);this.loop=this.animated=!0;this.time=0;this.prevFrame=-1;this.frames=[]},__class__:Va,__properties__:t(C.prototype.__properties__,
  133. {set_currentFrame:"set_currentFrame",get_currentFrame:"get_currentFrame"})});var Sb=function(a){$b.call(this,a);this.children=[]};g["aze.display.TileGroup"]=Sb;Sb.__name__=["aze","display","TileGroup"];Sb.__super__=$b;Sb.prototype=t($b.prototype,{init:function(a){this.layer=a;null!=this.children&&this.initChildren()},initChildren:function(){for(var a=0,b=this.children;a<b.length;){var c=b[a];++a;c.parent=this;null!=this.layer&&c.init(this.layer)}},addChild:function(a){this.removeChild(a);a.parent=
  134. this;null!=this.layer&&a.init(this.layer);return this.children.push(a)},addChildAt:function(a,b){this.removeChild(a);a.parent=this;null!=this.layer&&a.init(this.layer);this.children.splice(b,0,a);return b},removeChild:function(a){if(null==a.parent)return a;if(a.parent!=this)return console.log("Invalid parent"),a;var b=Yb.indexOf(this.children,a);0<=b&&(this.children.splice(b,1),a.parent=null);return a},getChildIndex:function(a){return Yb.indexOf(this.children,a)},setChildIndex:function(a,b){var c=
  135. Yb.indexOf(this.children,a);0<=c&&b!=c&&(this.children.splice(c,1),this.children.splice(b,0,a))},destroyChildsToCache:function(){for(var a=0,b=this.children;a<b.length;){var c=b[a];++a;1==v.__instanceof(c,C)&&v.__cast(c,C).destroyToCache()}},__class__:Sb});var Bd=function(a,b,c){null==c&&(c=!1);null==b&&(b=!0);Sb.call(this,this);this.view=new A;this.view.mouseEnabled=!1;this.view.mouseChildren=!1;this.tilesheet=a;this.useSmoothing=b;this.useAdditive=c;this.useTransforms=this.useAlpha=!0;this.drawList=
  136. new Be};g["aze.display.TileLayer"]=Bd;Bd.__name__=["aze","display","TileLayer"];Bd.__super__=Sb;Bd.prototype=t(Sb.prototype,{render:function(a){this.drawList.begin(null==a?0:a,this.useTransforms,this.useAlpha,this.useTint,this.useAdditive);this.renderGroup(this,0,0,0);this.drawList.end();this.view.get_graphics().clear();this.tilesheet.drawTiles(this.view.get_graphics(),this.drawList.list,this.useSmoothing,this.drawList.flags);return this.drawList.elapsed},renderGroup:function(a,b,c,d){var e=this.drawList.list,
  137. f=this.drawList.fields,p=this.drawList.offsetTransform,h=this.drawList.offsetRGB,g=this.drawList.offsetAlpha,kd=this.drawList.elapsed;c+=a.x;d+=a.y;var F;F=null!=a.children?a.children.length:0;for(var k=0;k<F;){var l=k++,l=a.children[l];1==l.animated&&l.step(kd);if(0!=l.visible){var m;m=v.__instanceof(l,Sb)?l:null;if(null!=m)b=this.renderGroup(m,b,c,d);else if(!(0>=l.alpha)){e[b+2]=l._indice;if(null!=l._offset)if(m=l._offset,0<p){var n=l.get_transform();e[b]=l.x-m.x*n[0]-m.y*n[1]+c;e[b+1]=l.y-m.x*
  138. n[2]-m.y*n[3]+d;e[b+p]=n[0];e[b+p+1]=n[2];e[b+p+2]=n[1];e[b+p+3]=n[3]}else e[b]=l.x-m.x+c,e[b+1]=l.y-m.y+d;else e[b]=l.x+c,e[b+1]=l.y+d,0<p&&(m=l.get_transform(),e[b+p]=m[0],e[b+p+1]=m[2],e[b+p+2]=m[1],e[b+p+3]=m[3]);0<h&&(e[b+h]=l.r,e[b+h+1]=l.g,e[b+h+2]=l.b);0<g&&(e[b+g]=l.alpha);b+=f}}}return this.drawList.index=b},__class__:Bd});var Ef=function(){};g["com.alagatar.interfaces.ISingleton"]=Ef;Ef.__name__=["com","alagatar","interfaces","ISingleton"];var eb=function(){this.init()};g["com.alagatar.AwardsManager"]=
  139. eb;eb.__name__=["com","alagatar","AwardsManager"];eb.__interfaces__=[rd,Ef];eb.__properties__={get_instance:"get_instance"};eb._instance=null;eb.instance=null;eb.get_instance=function(){null==eb._instance&&(eb._instance=new eb);return eb._instance};eb.prototype={init:function(){this.awards=[];ta.get_instance().signToNotify("saveNewData",this,"global")},receiveNotify:function(a,b,c){this.updateStatistic(c.key)},getCount:function(){return this.awards.length},register:function(a,b,c){null!=this.get(b)?
  140. console.log("Award "+b+" already registered"):(null==c&&(c=[]),this.awards.push({id:a,key:b,conditions:c,earned:!1}))},get:function(a){for(var b=0,c=this.awards;b<c.length;){var d=c[b];++b;if(d.key==a)return d}return null},getAwardById:function(a){return a>this.awards.length-1?null:this.awards[a]},addCondition:function(a,b,c){null==c&&(c=1);var d=this.get(a);null==d?console.log("Award "+a+" not registered"):(d.conditions.push({statistic:b,count:c,complete:!1}),this.checkConditions(d))},dump:function(){var a=
  141. this.awards.length;if(0==a)console.log("No awards registered");else{console.log("Awards:");for(var b=0;b<a;){var c=b++;0!=c&&console.log("");console.log(this.awards[c].key+" earned:"+z.string(this.awards[c].earned));for(var d=0,c=this.awards[c].conditions;d<c.length;){var e=c[d];++d;console.log("stat:"+e.statistic+" count:"+e.count+" complete:"+(null==e.complete?"null":""+e.complete))}}}},isEarned:function(a){var b=this.get(a);if(null==b)return console.log("Award "+a+" not registered"),!1;0==b.earned&&
  142. this.checkConditions(b);return b.earned},checkConditions:function(a){for(var b=!0,c=0,d=a.conditions;c<d.length;){var e=d[c];++c;if(0==this.checkCondition(e)){b=!1;break}}1==b&&(a.earned=!0)},checkCondition:function(a){if(1==a.complete)return!0;var b=Z.get_instance().get(a.statistic);return null!=b&&b>=a.count?a.complete=!0:!1},updateStatistic:function(a){var b=this.awards.length;if(0!=b)for(var c=0;c<b;){var d=c++;1!=this.awards[d].earned&&this.updateAwardWithStat(this.awards[d],a)}},updateAwardWithStat:function(a,
  143. b){for(var c=!1,d=0,e=a.conditions;d<e.length;){var f=e[d];++d;if(1!=f.complete&&(c=!1,f.statistic==b)){c=!0;this.checkCondition(f);break}}1==c&&(this.checkConditions(a),1==a.earned&&this.earnAward(a))},earnAward:function(a){ta.get_instance().postNotify("newAchievement",this,{id:a.id})},reset:function(){var a=this.awards.length;if(0!=a)for(var b=0;b<a;){var c=b++;this.awards[c].earned=!1;for(var d=0,c=this.awards[c].conditions;d<c.length;){var e=c[d];++d;e.complete=!1}}},__class__:eb};var $a=function(){A.call(this)};
  144. g["com.alagatar.BasicScene"]=$a;$a.__name__=["com","alagatar","BasicScene"];$a.__super__=A;$a.prototype=t(A.prototype,{init:function(){},start:function(){},update:function(a,b){},free:function(){},__class__:$a});var pd=function(){this.ready=!0;A.call(this);this.init()};g["com.alagatar.BasicSceneManager"]=pd;pd.__name__=["com","alagatar","BasicSceneManager"];pd.__super__=A;pd.prototype=t(A.prototype,{init:function(){this.ready=!0;this.scenesList=[];this.sceneLayer=new A;this.addChild(this.sceneLayer);
  145. this.effectLayer=new A;this.addChild(this.effectLayer)},isReady:function(){return this.ready},show:function(a,b){null==b&&(b=!0);null!=a&&(this.ready=!1,a.set_visible(!1),this.scenesList.push(a),this.sceneLayer.addChild(a),1==b?this.showHideEffect():(this.initScene(),this.startScene()))},showHideEffect:function(){this.hideComplete()},hideComplete:function(){this.initScene();this.showEffect()},initScene:function(){if(2==this.scenesList.length){var a=this.scenesList.shift();a.free();this.sceneLayer.removeChild(a)}a=
  146. this.scenesList[0];a.init();a.set_visible(!0)},showEffect:function(){this.showComplete()},showComplete:function(){this.startScene()},startScene:function(){this.ready=!0;this.scenesList[0].start()},udpate:function(a,b){0!=this.scenesList.length&&this.scenesList[0].update(a,b)},__class__:pd});var ma=function(){A.call(this);this.set_anchorPoint(new la(.5,.5))};g["com.alagatar.BasicSprite"]=ma;ma.__name__=["com","alagatar","BasicSprite"];ma.buildSprite=function(a){var b=new ma;b.buildBitmap(a);b.set_smooth(!0);
  147. return b};ma.__super__=A;ma.prototype=t(A.prototype,{buildBitmap:function(a){this.bitmapData=new oc(na.getBitmapData(a));this.addChild(this.bitmapData);this.set_scaleX(1.00001);this.set_scaleY(1.00001);this._scale=1.00001;this.upTransform()},get_anchorPoint:function(){return this._anchorPoint},set_anchorPoint:function(a){-1>a.x&&(a.x=-1);1<a.x&&(a.x=1);-1>a.y&&(a.y=-1);1<a.y&&(a.y=1);this._anchorPoint=a;this.upTransform();return this._anchorPoint},setAnchorPoint:function(a,b){-1>a&&(a=-1);1<a&&(a=
  148. 1);-1>b&&(b=-1);1<b&&(b=1);this._anchorPoint.x=a;this._anchorPoint.y=b;this.upTransform()},upTransform:function(){null!=this.bitmapData&&(this.bitmapData.set_x(-this.bitmapData.get_width()*this.get_anchorPoint().x),this.bitmapData.set_y(-this.bitmapData.get_height()*this.get_anchorPoint().y))},set_smooth:function(a){if(null==this.bitmapData)return!1;this._smooth=a;return this.bitmapData.smoothing=this._smooth},__class__:ma,__properties__:t(A.prototype.__properties__,{set_smooth:"set_smooth",set_anchorPoint:"set_anchorPoint",
  149. get_anchorPoint:"get_anchorPoint"})});var Z=function(){if(null!=Z._instance)throw"Error: Allready inited. Use instance instead;";};g["com.alagatar.DataManager"]=Z;Z.__name__=["com","alagatar","DataManager"];Z.__properties__={get_instance:"get_instance"};Z._instance=null;Z.get_instance=function(){null==Z._instance&&(Z._instance=new Z);return Z._instance};Z.prototype={init:function(a){this.name=a;this.storage=Lb.getLocal(this.name,"/");this.data=this.storage.data;null==this.data.inited&&this.createDb();
  150. this.uuid=this.get("uuid")},createDb:function(){this.save("inited",!0,!0);this.save("uuid",D.generateUUID(),!0);this.storage.flush()},save:function(a,b,c){null==c&&(c=!1);this.data[a]={value:b,fixed:c};this.storage.flush();ta.get_instance().postNotify("saveNewData",this,{key:a})},get:function(a){a=r.getProperty(this.data,a);return null==a?null:a.value},saveBigger:function(a,b){var c=this.get(a);b>c&&this.save(a,b)},smartSave:function(a,b,c){null==c&&(c="replace");var d=this.get(a),e=!1;null==d&&(d=
  151. 0);switch(c){case "add":d+=b;e=!0;break;case "max":b>d&&(d=b,e=!0);break;case "min":b<d&&(d=b,e=!0);break;case "replace":d=b,e=!0}1==e&&this.save(a,d)},saveStatistic:function(a,b,c){null==c&&(c="add");null==b&&(b=1);this.smartSave(a,b,c)},__class__:Z};var Oc=function(a,b){null==b&&(b=2);null==a&&(a=30);Oc.instance=this;this.fps=a;this.mode=b;this.accuracy=8;this.init();this.reset()};g["com.alagatar.FrameTimer"]=Oc;Oc.__name__=["com","alagatar","FrameTimer"];Oc.instance=null;Oc.prototype={init:function(){this.fixedTime=
  152. 1/this.fps;this.fixedTime=D.roundDec(this.fixedTime,this.accuracy)},reset:function(){this.deltaTime=this.prevTime=0},update:function(){this.curTime=B.getTimer();0==this.prevTime&&(this.prevTime=this.curTime);this.elapsed=(this.curTime-this.prevTime)/1E3;this.prevTime=this.curTime},checkUpdate:function(){this.deltaTime+=this.elapsed;return this.deltaTime>=this.fixedTime?(this.deltaTime=0,!0):!1},getDelta:function(){return 2==this.mode?this.fixedTime:this.elapsed},pause:function(){2!=this.mode&&(this.pauseStartTime=
  153. B.getTimer())},resume:function(){2!=this.mode&&(this.pauseDuration=B.getTimer()-this.pauseStartTime,this.prevTime+=this.pauseDuration)},__class__:Oc};var Eb=function(){this.initParams()};g["com.alagatar.GAnalytics"]=Eb;Eb.__name__=["com","alagatar","GAnalytics"];Eb.__properties__={get_instance:"get_instance"};Eb._instance=null;Eb.get_instance=function(){null==Eb._instance&&(Eb._instance=new Eb);return Eb._instance};Eb.prototype={initParams:function(){this.cid=Z.get_instance().uuid;this.analyticsUrl=
  154. "http://www.google-analytics.com/collect";this.shortedUrl=this.url=window.location.href;90<this.shortedUrl.length&&(this.shortedUrl=E.substr(this.shortedUrl,0,87),this.shortedUrl+="...");this.host=window.location.host;this.protocol=window.location.protocol;"https:"==this.protocol&&(this.analyticsUrl="https://ssl.google-analytics.com/collect")},init:function(a,b){this.tid=a;this.campainId=b;this.viewPage("main",!0)},viewPage:function(a,b){null==b&&(b=!1);var c=""+Math.round((new Date).getTime()/1E3),
  155. d=new Tc;d.v="1";d.tid=this.tid;d.cid=this.cid;d.t="screenview";d.an="heroRush";d.cd=a;1==b&&(d.cs=this.host,d.ck=this.shortedUrl,d.cn=this.campainId);d.z=c;this.sendStats(d)},sendEvent:function(a,b){null==b&&(b="");var c=""+Math.round((new Date).getTime()/1E3),d=new Tc;d.v="1";d.tid=this.tid;d.cid=this.cid;d.t="event";d.an="heroRush";d.ec=a;0!=b.length&&(d.ea=b);d.z=c;this.sendStats(d)},sendStats:function(a){var b=new Uc(this.analyticsUrl);b.method=Vc.POST;b.data=a;(new Cd).load(b)},__class__:Eb};
  156. var Ce=function(a){this.target=a;this.init()};g["com.alagatar.LayersManager"]=Ce;Ce.__name__=["com","alagatar","LayersManager"];Ce.prototype={init:function(){this.list=new sa},addLayer:function(a,b,c){null==c&&(c=!0);null==b&&(b=!0);if(1==this.list.exists(a))console.log("Layer "+a+" already exist");else{var d=new A;d.mouseEnabled=b;d.mouseChildren=c;this.target.addChild(d);this.list.set(a,d)}},getLayer:function(a){return 1==this.list.exists(a)?this.list.get(a):null},free:function(){this.target=this.list=
  157. null},__class__:Ce};var ta=function(){this.init()};g["com.alagatar.NotificationCenter"]=ta;ta.__name__=["com","alagatar","NotificationCenter"];ta.__properties__={get_instance:"get_instance"};ta._instance=null;ta.get_instance=function(){null==ta._instance&&(ta._instance=new ta);return ta._instance};ta.prototype={init:function(){this.notifiList=[]},postNotify:function(a,b,c){for(var d=0,e=this.notifiList;d<e.length;){var f=e[d];++d;f.notifi==a&&f.sender.receiveNotify(a,b,c)}},signToNotify:function(a,
  158. b,c){null==c&&(c="local");if(1==this.isSignedToNotify(a,b))return!1;this.notifiList.push({notifi:a,sender:b,group:c});return!0},seekNotificationItem:function(a,b){for(var c=null,d=this.notifiList.length,e=0;e<d;){var f=e++;this.notifiList[f].notifi==a&&this.notifiList[f].sender==b&&(c=this.notifiList[f])}return c},isSignedToNotify:function(a,b){return null!=this.seekNotificationItem(a,b)?!0:!1},clear:function(a){null==a&&(a="local");for(var b=0,c=this.notifiList.length,d,e=0;e<c;){e++;d=this.notifiList.length;
  159. if(0==d||b>=d)break;this.notifiList[b].group==a?this.notifiList.splice(b,1):b++}},__class__:ta};var De=function(a){this.pullClass=a;this.list=[]};g["com.alagatar.Pool"]=De;De.__name__=["com","alagatar","Pool"];De.prototype={pop:function(){return 0<this.list.length?this.list.pop():this.createNew()},createNew:function(){return Q.createInstance(this.pullClass,[])},push:function(a){this.list.push(a)},clean:function(){this.list=[]},free:function(){this.clean();this.pullClass=this.list=null},__class__:De};
  160. var D=function(){};g["com.alagatar.Tools"]=D;D.__name__=["com","alagatar","Tools"];D.randTo=function(a,b,c){null==c&&(c=0);if(0==c)return Math.floor(Math.random()*(b-a+1))+a;a+=(b-a)*Math.random();a=D.roundDec(a,c);a>b&&(a=b);return a};D.roundDec=function(a,b){null==b&&(b=0);a*=Math.pow(10,b);return Math.round(a)/Math.pow(10,b)};D.clamp=function(a,b,c){return Math.max(b,Math.min(c,a))};D.toDeg=function(a){return 180/Math.PI*a};D.toRad=function(a){return Math.PI/180*a};D.calcDistOfDots=function(a,
  161. b,c,d){return Math.sqrt((c-a)*(c-a)+(d-b)*(d-b))};D.rotatePointByAngle=function(a,b,c){var d=b.x;b=b.y;var e=a.x,f=a.y;a=d+(e-d)*Math.cos(c)+(b-f)*Math.sin(c);c=b+(e-d)*Math.sin(c)+(f-b)*Math.cos(c);return new la(a,c)};D.createObjectByClassName=function(a,b){var c=Q.resolveClass(a);if(null==c)return console.log("Can't create instance of "+a+". Import this class anywhere!"),null;null==b&&(b=[]);return Q.createInstance(c,b)};D.parseConfig=function(a){if(0==na.exists(a))return console.log(a+" not found!"),
  162. null;a=na.getText(a);return Wc.parse(a)};D.generateUUID=function(){var a;a=new qc;a.data=Array(36);a.length=36;a.fixed=!1;for(var b=0;36>b;){var c=b++,d;d=Math.floor(16*Math.random());d=E.substr("0123456789abcdef",d,1);if(!a.fixed&&(c>=a.length&&(a.length=c+1),a.data.length<a.length)){var e;e=Array(a.data.length+10);Mb.blit(a.data,0,e,0,a.data.length);a.data=e}a.data[c]=d}a.fixed||(14>=a.length&&(a.length=15),a.data.length<a.length&&(b=Array(a.data.length+10),Mb.blit(a.data,0,b,0,a.data.length),a.data=
  163. b));a.data[14]="4";b=z.parseInt(a.data[19])&3|8;b=E.substr("0123456789abcdef",b,1);a.fixed||(19>=a.length&&(a.length=20),a.data.length<a.length&&(c=Array(a.data.length+10),Mb.blit(a.data,0,c,0,a.data.length),a.data=c));a.data[19]=b;a.fixed||(23>=a.length&&(a.length=24),a.data.length<a.length&&(b=Array(a.data.length+10),Mb.blit(a.data,0,b,0,a.data.length),a.data=b));b=a.data[23]="-";a.fixed||(18>=a.length&&(a.length=19),a.data.length<a.length&&(c=Array(a.data.length+10),Mb.blit(a.data,0,c,0,a.data.length),
  164. a.data=c));b=a.data[18]=b;a.fixed||(13>=a.length&&(a.length=14),a.data.length<a.length&&(c=Array(a.data.length+10),Mb.blit(a.data,0,c,0,a.data.length),a.data=c));b=a.data[13]=b;a.fixed||(8>=a.length&&(a.length=9),a.data.length<a.length&&(c=Array(a.data.length+10),Mb.blit(a.data,0,c,0,a.data.length),a.data=c));a.data[8]=b;b="";c=0;for(d=a.length;c<d;)e=c++,0<e&&(b+=""),b+=z.string(a.data[e]);return b};D.createTimerString=function(a,b,c,d){null==d&&(d=!0);null==c&&(c=!0);null==b&&(b=!0);var e=Math.floor(a/
  165. 3600),f=D.formatTimeString(e);a-=3600*e;var p=Math.floor(a/60),e=D.formatTimeString(p);a=D.formatTimeString(a-60*p);p="";1==b&&(p+=f);1==c&&(0!=p.length&&(p+=":"),p+=e);1==d&&(0!=p.length&&(p+=":"),p+=a);return p};D.formatTimeString=function(a){return 10>a?"0"+a:""+a};D.polyPoly=function(a,b){for(var c=0,d,e=0,f=a.length;e<f;){d=e++;c=d+1;c==a.length&&(c=0);d=a[d];c=a[c];c=D.polyLine(b,d.x,d.y,c.x,c.y);if(1==c)return!0;c=D.polyPoint(a,b[0].x,b[0].y);if(1==c)return!0}return!1};D.polyLine=function(a,
  166. b,c,d,e){for(var f=0,p,h,g,l=0,F=a.length;l<F;)if(h=l++,f=h+1,f==a.length&&(f=0),p=a[h].x,h=a[h].y,g=a[f].x,f=a[f].y,p=D.lineLine(b,c,d,e,p,h,g,f),1==p)return!0;return!1};D.lineLine=function(a,b,c,d,e,f,p,h){var g=((p-e)*(b-f)-(h-f)*(a-e))/((h-f)*(c-a)-(p-e)*(d-b));a=((c-a)*(b-f)-(d-b)*(a-e))/((h-f)*(c-a)-(p-e)*(d-b));return 0<=g&&1>=g&&0<=a&&1>=a?!0:!1};D.polyPoint=function(a,b,c){for(var d=!1,e=0,f,p=0,h=a.length;p<h;)f=p++,e=f+1,e==a.length&&(e=0),f=a[f],e=a[e],(f.y>c&&e.y<c||f.y<c&&e.y>c)&&b<
  167. (e.x-f.x)*(c-f.y)/(e.y-f.y)+f.x&&(d=!d);return d};D.pointInsideCirc=function(a,b,c,d,e){return D.calcDistOfDots(a,b,c,d)<=e};D.pointInsideRect=function(a,b,c,d,e,f){return a>=c&&b>=d&&a<c+e&&b<d+f};var Dd=function(){};g["com.alagatar.interfaces.IUpdate"]=Dd;Dd.__name__=["com","alagatar","interfaces","IUpdate"];Dd.prototype={__class__:Dd};var pb=function(){this.init()};g["com.alagatar.Updater"]=pb;pb.__name__=["com","alagatar","Updater"];pb.__interfaces__=[Dd];pb.__properties__={get_instance:"get_instance"};
  168. pb._instance=null;pb.get_instance=function(){null==pb._instance&&(pb._instance=new pb);return pb._instance};pb.prototype={init:function(){this.items=[]},add:function(a){1!=this.has(a)&&this.items.push(a)},del:function(a){a=Yb.indexOf(this.items,a);-1!=a&&this.items.splice(a,1)},update:function(){for(var a=0,b=this.items;a<b.length;){var c=b[a];++a;c.update()}},has:function(a){for(var b=!1,c=this.items.length,d=0;d<c;){var e=d++;if(this.items[e]==a){b=!0;break}}return b},free:function(){this.items=
  169. []},__class__:pb};var Bc=function(a,b){this.x=a;this.y=b};g["com.alagatar.VecDefault"]=Bc;Bc.__name__=["com","alagatar","VecDefault"];Bc.prototype={__class__:Bc};var ia=function(){this.cleanable=!1};g["com.alagatar.entity.Component"]=ia;ia.__name__=["com","alagatar","entity","Component"];ia.prototype={__class__:ia};var Ee=function(){this.init()};g["com.alagatar.entity.ComponentManager"]=Ee;Ee.__name__=["com","alagatar","entity","ComponentManager"];Ee.prototype={init:function(){this.componentClassIdList=
  170. [];this.componentList=[];this.poolList=[]},getComponentClassId:function(a){a=Q.getClassName(a);var b=E.indexOf(this.componentClassIdList,a,0);-1==b&&(b=this.componentClassIdList.push(a),b--,this.componentList.push([]));return b},getComponent:function(a,b){null==b&&(b=!1);var c=this.getComponentClassId(a);1==b&&0==this.checkPoolExist(c)&&this.addPoolFor(a);c=this.getPoolFor(c);return null!=c?c.pop():Q.createInstance(a,[])},checkPoolExist:function(a){return this.poolList.length>a&&null!=this.poolList[a]?
  171. !0:!1},addPoolFor:function(a){var b=this.getComponentClassId(a),c=this.poolList.length;if(c<b)for(var c=b-c+1,d=0;d<c;)d++,this.poolList.push(null);a=new De(a);this.poolList[b]=a},getPoolFor:function(a){return 0==this.checkPoolExist(a)?null:this.poolList[a]},addComponent:function(a,b){var c=this.getComponentClassIdFromObject(b);this.createSpaceForEntity(c,a);this.componentList[c][a]=b},getComponentClassIdFromObject:function(a){a=Q.getClass(a);return this.getComponentClassId(a)},createSpaceForEntity:function(a,
  172. b){var c=this.componentList[a].length;if(b>c-1)for(--c;c<b;)c++,this.componentList[a].push(null)},getComponentIn:function(a,b){var c=this.getComponentClassId(b);return this.componentList[c][a]},delComponentIn:function(a,b){var c=this.getComponentClassIdFromObject(b);this.cleanComponent(a,c)},cleanComponent:function(a,b,c){null==c&&(c=!1);var d=this.componentList[b][a];1==c&&(c=this.getPoolFor(b),null!=c&&c.push(d));this.componentList[b][a]=null},delComponentsIn:function(a,b){null==b&&(b=!1);for(var c=
  173. this.componentList.length,d=0;d<c;){var e=d++;null!=this.componentList[e][a]&&this.cleanComponent(a,e,b)}},getComponentsIn:function(a){for(var b=null,c=this.componentList.length,d=0;d<c;){var e=d++;null!=this.componentList[e][a]&&(null==b&&(b=[]),b.push(this.componentList[e][a]))}return b},containsComponents:function(a,b){for(var c=b.length,d,e=0;e<c;)if(d=e++,d=b[d],null==this.componentList[d][a])return!1;return!0},removeCache:function(){if(null!=this.poolList){for(var a=0,b=this.poolList;a<b.length;){var c=
  174. b[a];++a;null!=c&&c.free()}this.poolList=[];this.poolList=null}},free:function(){for(var a=this.componentList.length,b,c=0;c<a;){var d=c++;b=this.componentList[d].length;for(var e=0;e<b;){var f=e++;this.componentList[d][f]=null}}this.componentClassIdList=[];this.componentClassIdList=null;this.componentList=[];this.componentList=null;this.removeCache()},__class__:Ee};var w=function(){null!=w._instance&&console.log("Already present instance");w._instance=this;this.init()};g["com.alagatar.entity.Engine"]=
  175. w;w.__name__=["com","alagatar","entity","Engine"];w.__properties__={get_instance:"get_instance"};w._instance=null;w.get_instance=function(){null==w._instance&&console.log("No entity engine created");return w._instance};w.prototype={init:function(){this.systemList=[];this.entityManager=new Fe;this.componentManager=new Ee;this.eventManager=new Ge},addSystem:function(a){a=Q.createEmptyInstance(a);a.init();this.systemList.push(a)},addCleaner:function(a){this.componentCleaner=Q.createEmptyInstance(a)},
  176. activate:function(){for(var a=this.systemList.length,b=0;b<a;){var c=b++;this.systemList[c].activate()}},update:function(a){for(var b=this.systemList.length,c=0;c<b;){var d=c++;this.systemList[d].update(a)}},updateEntity:function(a){for(var b=this.systemList.length,c=0;c<b;){var d=c++;this.systemList[d].updateEntity(a)}},saveEntity:function(a){this.updateEntity(a)},createEntity:function(){return this.entityManager.createEntity()},destroyEntity:function(a,b){null==b&&(b=!1);this.cleanComponents(a);
  177. this.componentManager.delComponentsIn(a,b);this.entityManager.destroyEntity(a);this.saveEntity(a)},cleanComponents:function(a){a=this.componentManager.getComponentsIn(a);for(var b=a.length,c=0;c<b;){var d=c++;this.cleanComponent(a[d])}},cleanComponent:function(a){null!=this.componentCleaner&&1==a.cleanable&&this.componentCleaner.clean(a)},getComponentClassId:function(a){return this.componentManager.getComponentClassId(a)},containsComponents:function(a,b){return this.componentManager.containsComponents(a,
  178. b)},getComponentIn:function(a,b){return this.componentManager.getComponentIn(a,b)},getComponent:function(a,b){null==b&&(b=!1);return this.componentManager.getComponent(a,b)},addComponent:function(a,b){this.componentManager.addComponent(a,b)},delComponent:function(a,b){this.componentManager.delComponentIn(a,b)},free:function(){for(var a=this.systemList.length,b=0;b<a;){var c=b++;this.systemList[c].free()}this.systemList=[];this.systemList=null;this.entityManager.free();this.entityManager=null;this.componentManager.free();
  179. this.componentCleaner=this.componentManager=null;this.eventManager.free();this.eventManager=null;w._instance=null},__class__:w};var Fe=function(){this.init()};g["com.alagatar.entity.EntityManager"]=Fe;Fe.__name__=["com","alagatar","entity","EntityManager"];Fe.prototype={init:function(){this.cache=[];this.tagList=[];this.lastId=0},createEntity:function(){var a;0<this.cache.length?a=this.cache.pop():(a=this.lastId,this.lastId++);return a},destroyEntity:function(a){this.delTag(a);this.cache.push(a)},
  180. delTag:function(a){for(var b=0,c=this.tagList.length;b<c;){var d=b++;if(this.tagList[d].entity==a){this.tagList.splice(d,1);break}}},free:function(){this.cache=[];this.cache=null;this.tagList=[];this.tagList=null;this.lastId=0},__class__:Fe};var Ge=function(){this.init()};g["com.alagatar.entity.EventManager"]=Ge;Ge.__name__=["com","alagatar","entity","EventManager"];Ge.prototype={init:function(){this.listeners=[]},addListener:function(a,b){1!=this.isAdded(a,b)&&this.listeners.push({listener:a,event:b})},
  181. isAdded:function(a,b){for(var c=this.listeners.length,d,e=0;e<c;)if(d=e++,d=this.listeners[d],d.listener==a&&d.event==b)return!0;return!1},sendEvent:function(a,b){for(var c=0,d=this.listeners;c<d.length;){var e=d[c];++c;e.event==a&&e.listener.receiveEvent(a,b)}},free:function(){this.listeners=[];this.listeners=null},__class__:Ge};var O=function(){};g["com.alagatar.entity.System"]=O;O.__name__=["com","alagatar","entity","System"];O.prototype={init:function(){this.entityList=[];this.addList=[];this.delList=
  182. [];this.countEntitys=0;this.requiredComponentsClass=[]},addRequiredComponentClass:function(a){a=w.get_instance().getComponentClassId(a);this.requiredComponentsClass.push(a)},activate:function(){},update:function(a){if(0!=this.countEntitys||0!=this.addList.length){this.cleanDisabledEntitys();this.addNewEntitys();for(var b,c=0,d=this.countEntitys;c<d;)b=c++,b=this.entityList[b],0==this.isEntityDisabled(b)&&this.process(b,a);this.afterUpdate()}},addNewEntitys:function(){var a=this.addList.length;if(0!=
  183. a){for(var b=0;b<a;){var c=b++;-1==E.indexOf(this.entityList,this.addList[c],0)&&this.addEntity(this.addList[c])}this.addList=[]}},addEntity:function(a){this.countEntitys++;this.entityList.push(a)},isEntityDisabled:function(a){return-1==E.indexOf(this.delList,a,0)?!1:!0},process:function(a,b){},afterUpdate:function(){},cleanDisabledEntitys:function(){var a=this.delList.length;if(0!=a){for(var b=0;b<a;){var c=b++;this.delEntity(this.delList[c])}this.delList=[]}},delEntity:function(a){this.countEntitys--;
  184. E.remove(this.entityList,a)},updateEntity:function(a){1==this.checkRequired(a)?-1==E.indexOf(this.addList,a,0)&&this.addList.push(a):-1!=E.indexOf(this.entityList,a,0)&&-1==E.indexOf(this.delList,a,0)&&this.delList.push(a)},checkRequired:function(a){return 0==this.requiredComponentsClass.length||1==w.get_instance().containsComponents(a,this.requiredComponentsClass)?!0:!1},receiveEvent:function(a,b){},free:function(){this.entityList=[];this.entityList=null;this.addList=[];this.addList=null;this.delList=
  185. [];this.delList=null;this.requiredComponentsClass=[];this.requiredComponentsClass=null},__class__:O};var He=function(a,b){this.groupId=a;this.chanelId=b;this.volume=1;this.looped=!1;this.position=0;this.paused=this.muted=this.active=!1;this.transform=new Cc;this.transform.volume=this.volume};g["com.alagatar.sound.SoundNode"]=He;He.__name__=["com","alagatar","sound","SoundNode"];He.prototype={play:function(a,b){null==b&&(b=!1);if(this.sound!=a||1!=this.looped||1!=this.active)"music"==this.groupId&&
  186. this.stop(),this.position=0,this.active=!0,this.sound=a,this.looped=b,0==this.muted&&this.startPlay()},startPlay:function(){this.chanel=this.sound.play(this.position,0,this.transform);1==this.looped&&null!=this.chanel&&0==this.chanel.hasEventListener(u.SOUND_COMPLETE)&&this.chanel.addEventListener(u.SOUND_COMPLETE,n(this,this.complete))},complete:function(a){this.position=0;this.startPlay()},mute:function(a){this.muted=a;0!=this.active&&(1==this.muted?this.pausePlay():1==this.looped&&0==this.paused&&
  187. this.startPlay())},pausePlay:function(){this.position=0;null!=this.chanel&&(1==this.looped&&(this.position=this.chanel.get_position()),this.chanel.stop())},stop:function(){this.pausePlay();this.position=0;this.active=!1},__class__:He};var R=Mc.SoundSystem=function(){null!=R._instance&&console.log("Error: Object allready inited. Use SoundSystem.instance instead");R._instance=this;R.inited=!0;this.init()};g["com.alagatar.sound.SoundSystem"]=R;R.__name__=["com","alagatar","sound","SoundSystem"];R.__properties__=
  188. {get_instance:"get_instance"};R._instance=null;R.get_instance=function(){null==R._instance&&(R._instance=new R);return R._instance};R.prototype={init:function(){this.sfxMuted=this.musicMuted=!1;this.mediaList=[];this.nodesList=[]},isMuted:function(){return 1==this.musicMuted&&1==this.sfxMuted?!0:!1},addMusic:function(a,b,c){null==c&&(c="music");this.addMedia(a,b,"music",c)},addSfx:function(a,b,c){null==c&&(c="sfx");this.addMedia(a,b,"sfx",c)},addMedia:function(a,b,c,d){0==na.exists(b)?console.log("Media path "+
  189. b+" no exist"):(this.createMedia(a,b,c,d),null==this.findSoundNode(c,d)&&this.createSoundNode(c,d))},createMedia:function(a,b,c,d){a={id:a,group:c,chanel:d,sound:na.getSound(b)};this.mediaList.push(a)},findSoundNode:function(a,b){for(var c=null,d=0,e=this.nodesList.length;d<e;){var f=d++;if(this.nodesList[f].groupId==a&&this.nodesList[f].chanelId==b){c=this.nodesList[f];break}}return c},createSoundNode:function(a,b){var c=new He(a,b);this.nodesList.push(c)},playMusic:function(a,b){null==b&&(b=!0);
  190. this.playMedia(a,b)},playSound:function(a,b){null==b&&(b=!1);this.playMedia(a,b)},playMedia:function(a,b){if(1!=Wa.isIE){var c=this.findMedia(a);null==c?console.log("Media "+a+" no founded"):this.findSoundNode(c.group,c.chanel).play(c.sound,b)}},findMedia:function(a){for(var b=null,c=0,d=this.mediaList.length;c<d;){var e=c++;if(this.mediaList[e].id==a){b=this.mediaList[e];break}}return b},mute:function(a){this.muteMusic(a);this.muteSfx(a)},muteMusic:function(a){this.musicMuted=a;this.muteSoundNodes("music",
  191. a)},muteSfx:function(a){this.sfxMuted=a;this.muteSoundNodes("sfx",a)},muteSoundNodes:function(a,b){for(var c=0,d=this.nodesList.length;c<d;){var e=c++;this.nodesList[e].groupId==a&&this.nodesList[e].mute(b)}},__class__:R};var fb=function(){A.call(this)};g["com.alagatar.ui.UiItem"]=fb;fb.__name__=["com","alagatar","ui","UiItem"];fb.__super__=A;fb.prototype=t(A.prototype,{onMouseDown:function(a){},onMouseUp:function(a){},onMouseMove:function(a){},__class__:fb});var Za=function(){A.call(this);this.children=
  192. [];this.containerY=this.containerX=0};g["com.alagatar.tiles.TileContainer"]=Za;Za.__name__=["com","alagatar","tiles","TileContainer"];Za.__super__=fb;Za.prototype=t(fb.prototype,{add:function(a){var b=0,c=0,d=0;1==v.__instanceof(a,C)?(b=v.__cast(a,C).get_rotation(),c=v.__cast(a,C).get_scaleX(),d=v.__cast(a,C).get_scaleY()):(b=a.rotation,c=a.scaleX,d=a.scaleY);b={item:a,x:a.x,y:a.y,rotation:b,scaleX:c,scaleY:d,alpha:a.alpha};this.children.push(b);0==v.__instanceof(a,C)&&this.addChild(a);this.updateItemPosition(b)},
  193. del:function(a){var b=this.getIndex(a);-1!=b&&this.children.splice(b,1);0==v.__instanceof(a,C)&&this.removeChild(a)},getIndex:function(a){for(var b=0,c=this.children.length;b<c;){var d=b++;if(this.children[d].item==a)return d}return-1},removeAllChildren:function(){for(var a=0,b=this.children.length;a<b;){var c=a++;0==v.__instanceof(this.children[c].item,C)&&this.removeChild(this.children[c].item)}this.children=[]},get_countChildren:function(){return null!=this.children?this.children.length:0},destroyChildsToCache:function(){for(var a=
  194. 0,b=this.children.length;a<b;){var c=a++;1==v.__instanceof(this.children[c].item,C)&&v.__cast(this.children[c].item,C).destroyToCache()}},set_x:function(a){fb.prototype.set_x.call(this,a);this.updatePosition();return a},updatePosition:function(){for(var a=0,b=this.children.length;a<b;){var c=a++;this.updateItemPosition(this.children[c])}},updateItemPosition:function(a){var b;1==v.__instanceof(a.item,C)?(b=this.localToGlobal(new la(0,0)),a.item.x=b.x+a.x,a.item.y=b.y+a.y):1==v.__instanceof(a.item,
  195. Za)&&a.item.updatePosition()},set_y:function(a){fb.prototype.set_y.call(this,a);this.updatePosition();return a},set_rotation:function(a){fb.prototype.set_rotation.call(this,a);this.updateRotation(a);return a},updateRotation:function(a){for(var b=0,c=this.children.length;b<c;){var d=b++;this.updateItemRotation(this.children[d],a)}},updateItemRotation:function(a,b){1==v.__instanceof(a.item,C)?v.__cast(a.item,C).set_rotation(a.rotation+D.toRad(b)):1==v.__instanceof(a.item,Za)&&a.item.updateRotation(b)},
  196. set_scaleX:function(a){fb.prototype.set_scaleX.call(this,a);this.updateScaleX(a);return a},updateScaleX:function(a){for(var b=0,c=this.children.length;b<c;){var d=b++;this.updateItemScaleX(this.children[d],a)}},updateItemScaleX:function(a,b){1==v.__instanceof(a.item,C)?v.__cast(a.item,C).set_scaleX(a.scaleX*b):1==v.__instanceof(a.item,Za)&&a.item.updateScaleX(b)},set_scaleY:function(a){fb.prototype.set_scaleY.call(this,a);this.updateScaleY(a);return a},updateScaleY:function(a){for(var b=0,c=this.children.length;b<
  197. c;){var d=b++;this.updateItemScaleY(this.children[d],a)}},updateItemScaleY:function(a,b){1==v.__instanceof(a.item,C)?v.__cast(a.item,C).set_scaleY(a.scaleY*b):1==v.__instanceof(a.item,Za)&&a.item.updateScaleY(b)},set_alpha:function(a){fb.prototype.set_alpha.call(this,a);this.updateAlpha(a);return a},updateAlpha:function(a){for(var b=0,c=this.children.length;b<c;){var d=b++;this.updateItemAlpha(this.children[d],a)}},updateItemAlpha:function(a,b){1==v.__instanceof(a.item,C)?a.item.alpha=a.alpha*b:1==
  198. v.__instanceof(a.item,Za)&&a.item.updateAlpha(b)},set_visible:function(a){fb.prototype.set_visible.call(this,a);this.updateVisible(a);return a},updateVisible:function(a){for(var b=0,c=this.children.length;b<c;){var d=b++;this.updateItemVisible(this.children[d],a)}},updateItemVisible:function(a,b){1==v.__instanceof(a.item,C)?a.item.visible=b:1==v.__instanceof(a.item,Za)&&a.item.updateVisible(b)},free:function(){this.children=[];this.children=null},__class__:Za,__properties__:t(fb.prototype.__properties__,
  199. {get_countChildren:"get_countChildren"})});var Ed=function(a,b){A.call(this);this.init(a,b)};g["com.alagatar.tiles.TileGraph"]=Ed;Ed.__name__=["com","alagatar","tiles","TileGraph"];Ed.__super__=A;Ed.prototype=t(A.prototype,{init:function(a,b){this.isActive=!0;this.layerId=a;this.tileId=b;var c=K.get_instance().get(this.layerId);null==c?console.log("Layer "+this.layerId+" no found"):(this.graph=new C(c,this.tileId),c.addChild(this.graph))},initBase:function(a){this.baseX=a.x;this.baseY=a.y;this.baseRotation=
  200. a.rotation;this.baseScaleX=a.scaleX;this.baseScaleY=a.scaleY;this.set_x(this.baseX);this.set_y(this.baseY);this.set_rotation(this.baseRotation);this.set_scaleX(this.baseScaleX);this.set_scaleY(this.baseScaleY)},set_x:function(a){A.prototype.set_x.call(this,a);1==this.isActive&&(this.graph.x=a);return a},set_y:function(a){A.prototype.set_y.call(this,a);1==this.isActive&&(this.graph.y=a);return a},set_rotation:function(a){A.prototype.set_rotation.call(this,a);1==this.isActive&&this.graph.set_rotation(D.toRad(a));
  201. return a},set_scaleX:function(a){A.prototype.set_scaleX.call(this,a);1==this.isActive&&this.graph.set_scaleX(a);return a},set_scaleY:function(a){A.prototype.set_scaleY.call(this,a);1==this.isActive&&this.graph.set_scaleY(a);return a},set_alpha:function(a){A.prototype.set_alpha.call(this,a);1==this.isActive&&(this.graph.alpha=a);return a},set_visible:function(a){A.prototype.set_visible.call(this,a);1==this.isActive&&(this.graph.visible=a);return a},free:function(){var a=K.get_instance().get(this.layerId);
  202. -1!=a.getChildIndex(this.graph)&&a.removeChild(this.graph);this.graph=null;this.isActive=!1},__class__:Ed});var mc=function(a,b){A.call(this);this.config=b;this.layerId=a;this.init()};g["com.alagatar.tiles.TileSmartAnim"]=mc;mc.__name__=["com","alagatar","tiles","TileSmartAnim"];mc.__interfaces__=[Dd];mc.__super__=A;mc.prototype=t(A.prototype,{init:function(){null==K.get_instance().get(this.layerId)?console.log("Layer "+this.layerId+" no found"):(this.frame=1,this.prevFrame=0,this.loop=this.isPlaying=
  203. !1,this.items=[],this.cachedItems=[],this.setFps(30),this.fullFramesSpend=this.framesSpend=0,this.centerFix={x:this.config.c.x,y:this.config.c.y},this.countFrames=this.config.f.length,this.buildFrame(),pb.get_instance().add(this))},buildFrame:function(){this.cleanItems();this.buildLayers(this.config.f[this.frame-1])},cleanItems:function(){for(var a=0,b=this.items;a<b.length;){var c=b[a];++a;c.graph.visible=!1;this.removeChild(c);this.cachedItems.push(c)}this.items=[]},buildLayers:function(a){for(var b=
  204. a.l.length,c=0;c<b;){var d=c++;this.buildItems(a.l[d])}},buildItems:function(a){for(var b=a.i.length,c=0;c<b;){var d=c++;this.buildItem(a.i[d])}},buildItem:function(a){var b=this.getItem(a.n);b.initBase({x:a.x+this.centerFix.x,y:a.y+this.centerFix.y,rotation:a.r,scaleX:a.w,scaleY:a.h});this.items.push(b);this.addChild(b);this.updateOptions(b)},getItem:function(a){var b=this.getItemFromCache(a);null==b&&(b=new Ed(this.layerId,a));return b},getItemFromCache:function(a){for(var b=null,c=0,d=this.cachedItems;c<
  205. d.length;){var e=d[c];++c;if(e.tileId==a){b=e;b.graph.visible=!0;break}}null!=b&&E.remove(this.cachedItems,b);return b},updateOptions:function(a){this.setItemOption(a,"x");this.setItemOption(a,"y");this.setItemOption(a,"rotation");this.setItemOption(a,"scaleX");this.setItemOption(a,"scaleY");this.setItemOption(a,"visible")},play:function(a){null==a&&(a=!1);this.loop=a;this.isPlaying=!0;this.frame=1;this.prevFrame=0},stop:function(){this.isPlaying=!1;1!=this.frame&&(this.frame=1,this.prevFrame=0,this.buildFrame())},
  206. update:function(){0!=this.isPlaying&&this.updateFrame()},updateFrame:function(){this.framesSpend+=this.frameTime;1<=this.framesSpend&&(this.fullFramesSpend=Math.floor(this.framesSpend),this.framesSpend-=this.fullFramesSpend,this.prevFrame=this.frame,this.frame+=this.fullFramesSpend,this.frame>this.countFrames&&(this.frame=1,0==this.loop&&(this.isPlaying=!1)),this.frame!=this.prevFrame&&this.buildFrame())},updateItemsOption:function(a){if(null!=this.items)for(var b=0,c=this.items;b<c.length;){var d=
  207. c[b];++b;this.setItemOption(d,a)}},setItemOption:function(a,b){switch(b){case "x":case "y":this.updatePosition(a);break;case "rotation":a.set_rotation(this.get_rotation()+a.baseRotation);this.updatePosition(a);break;case "scaleX":a.set_scaleX(this.get_scaleX()*a.baseScaleX);this.updatePosition(a);break;case "scaleY":a.set_scaleY(this.get_scaleY()*a.baseScaleY);this.updatePosition(a);break;case "visible":a.set_visible(this.get_visible())}},updatePosition:function(a){var b={x:this.get_x(),y:this.get_y()},
  208. c={x:0,y:0};c.x=this.get_x()+a.baseX*this.get_scaleX();c.y=this.get_y()+a.baseY*this.get_scaleY();b=D.rotatePointByAngle(c,b,D.toRad(this.get_rotation()));a.set_x(b.x);a.set_y(b.y)},setFps:function(a){this.frameTime=a/30},set_x:function(a){A.prototype.set_x.call(this,a);this.updateItemsOption("x");return a},set_y:function(a){A.prototype.set_y.call(this,a);this.updateItemsOption("y");return a},set_rotation:function(a){A.prototype.set_rotation.call(this,a);this.updateItemsOption("rotation");return a},
  209. set_scaleX:function(a){A.prototype.set_scaleX.call(this,a);this.updateItemsOption("scaleX");return a},set_scaleY:function(a){A.prototype.set_scaleY.call(this,a);this.updateItemsOption("scaleY");return a},set_visible:function(a){A.prototype.set_visible.call(this,a);this.updateItemsOption("visible");return a},free:function(){pb.get_instance().del(this);this.freeItems();this.config=null},freeItems:function(){for(var a=0,b=this.items;a<b.length;){var c=b[a];++a;c.free()}this.items=[];this.items=null;
  210. a=0;for(b=this.cachedItems;a<b.length;)c=b[a],++a,c.free();this.cachedItems=[];this.cachedItems=null},__class__:mc});var K=function(){if(null!=K._instance)throw"Error: Allready inited. Use instance instead;";this.layers=[];this.groups=[]};g["com.alagatar.tiles.TilelayerManager"]=K;K.__name__=["com","alagatar","tiles","TilelayerManager"];K.__properties__={get_instance:"get_instance"};K._instance=null;K.get_instance=function(){null==K._instance&&(K._instance=new K);return K._instance};K.prototype={create:function(a,
  211. b,c,d){b=na.getText(b);c=na.getBitmapData(c);c=new Ad(c,b);c=new Bd(c);d.addChild(c.view);this.layers.push({id:a,layer:c})},get:function(a){for(var b=0,c=this.layers;b<c.length;){var d=c[b];++b;if(d.id==a)return d.layer}return null},update:function(){for(var a=0,b=this.layers.length;a<b;){var c=a++;this.layers[c].layer.render()}},createGroup:function(a,b){if(null!=this.getGroup(a,b))return console.log("Group with id:"+a+" on layer:"+b+" already present"),null;var c=this.get(b);if(null==c)return console.log("No layer with id:"+
  212. b+" founded!"),null;var d=new Sb(c);c.addChild(d);this.groups.push({id:a,group:d,layerId:b});return d},getGroup:function(a,b){for(var c=0,d=this.groups;c<d.length;){var e=d[c];++c;if(e.id==a&&e.layerId==b)return e.group}return null},free:function(){C.clearPool();Va.clearPool();this.layers=[];this.groups=[]},__class__:K};var Ka=function(a,b){null==b&&(b=!0);A.call(this);null!=a&&this.createGraphFrom(a,b);this.init()};g["com.alagatar.ui.Button"]=Ka;Ka.__name__=["com","alagatar","ui","Button"];Ka.__super__=
  213. A;Ka.prototype=t(A.prototype,{init:function(){this.setAlphaMode();this.tileMode=this.touchActive=this.paramsSet=!1;this.soundEffect=null;this.addEventListener(y.MOUSE_DOWN,n(this,this.touchDown));this.addEventListener(y.MOUSE_UP,n(this,this.touchUp))},setAlphaMode:function(){this.animCoef=.6;this.animInTime=.2;this.animOutTime=.1;this.animMode=2},createGraphFrom:function(a,b){null==b&&(b=!0);var c=ma.buildSprite(a);c.set_smooth(b);this.setGraph(c)},setGraph:function(a){this.addChild(a);this.graph=
  214. a;this.graphAlpha=this.graph.get_alpha();this.graphScaleX=this.graph.get_scaleX();this.graphScaleY=this.graph.get_scaleY()},touchDown:function(a){this.touchActive=!0},touchUp:function(a){0!=this.touchActive&&(this.touchActive=!1,null!=this.graph&&(0==this.paramsSet&&(this.paramsSet=!0,this.initParams()),this.startAnim()))},startAnim:function(){null!=this.soundEffect&&R.get_instance().playSound(this.soundEffect);this.reset();1==this.animMode?this.zoomIn():this.alphaIn();this.dispatchEvent(new u("b_start",
  215. !0))},initParams:function(){this.graphAlpha=this.get_alpha();this.graphScaleX=this.get_scaleX();this.graphScaleY=this.get_scaleY()},zoomIn:function(){var a=this.graphScaleX*this.animCoef,b=this.graphScaleY*this.animCoef;l.to(this,{scaleX:a,scaleY:b},null,null,null,null,null,null,null,null,{fileName:"Button.hx",lineNumber:161,className:"com.alagatar.ui.Button",methodName:"zoomIn"}).time(this.animInTime).onFinish(n(this,this.zoomOut)).ease(wb.quintInOut);1==this.tileMode&&l.to(this.tileGraph,{scaleX:a,
  216. scaleY:b},null,null,null,null,null,null,null,null,{fileName:"Button.hx",lineNumber:164,className:"com.alagatar.ui.Button",methodName:"zoomIn"}).time(this.animInTime).ease(wb.quintInOut)},zoomOut:function(){l.to(1==this.tileMode?this.tileGraph:this,{scaleX:this.graphScaleX,scaleY:this.graphScaleY},null,null,null,null,null,null,null,null,{fileName:"Button.hx",lineNumber:181,className:"com.alagatar.ui.Button",methodName:"zoomOut"}).time(this.animOutTime).onFinish(n(this,this.completeAnim)).ease(wb.linear)},
  217. alphaIn:function(){var a=this.graphAlpha*this.animCoef;l.to(this,{alpha:a},null,null,null,null,null,null,null,null,{fileName:"Button.hx",lineNumber:187,className:"com.alagatar.ui.Button",methodName:"alphaIn"}).time(this.animInTime).onFinish(n(this,this.alphaOut)).ease(wb.quintInOut);1==this.tileMode&&l.to(this.tileGraph,{alpha:a},null,null,null,null,null,null,null,null,{fileName:"Button.hx",lineNumber:190,className:"com.alagatar.ui.Button",methodName:"alphaIn"}).time(this.animInTime).ease(wb.quintInOut)},
  218. alphaOut:function(){l.to(this,{alpha:this.graphAlpha},null,null,null,null,null,null,null,null,{fileName:"Button.hx",lineNumber:196,className:"com.alagatar.ui.Button",methodName:"alphaOut"}).time(this.animOutTime).onFinish(n(this,this.completeAnim)).ease(wb.linear);1==this.tileMode&&l.to(this.tileGraph,{alpha:this.graphAlpha},null,null,null,null,null,null,null,null,{fileName:"Button.hx",lineNumber:199,className:"com.alagatar.ui.Button",methodName:"alphaOut"}).time(this.animOutTime).ease(wb.linear)},
  219. completeAnim:function(){this.reset();this.dispatchEvent(new u("b_complete"))},reset:function(){1==this.animMode?(this.set_scaleX(this.graphScaleX),this.set_scaleY(this.graphScaleY)):this.set_alpha(this.graphAlpha)},addChild:function(a){A.prototype.addChild.call(this,a);1==this.animMode&&this.fixScale();return a},fixScale:function(){this.set_scaleX(1.0001*this.get_scaleX());this.set_scaleY(1.0001*this.get_scaleY())},setSoundEffect:function(a){this.soundEffect=a},__class__:Ka});var ab=function(){vb.call(this);
  220. this.__height=this.__width=100;this.__text="";this.set_type(Tb.DYNAMIC);this.set_autoSize(ua.NONE);this.embedFonts=this.displayAsPassword=!1;this.selectable=!0;this.set_borderColor(0);this.set_border(!1);this.set_backgroundColor(16777215);this.set_background(!1);this.gridFitType=Fb.PIXEL;this.maxChars=0;this.multiline=!1;this.scrollH=this.sharpness=0;this.scrollV=1;this.set_wordWrap(!1);null==ab.__defaultTextFormat&&(ab.__defaultTextFormat=new Xc("Times New Roman",12,0,!1,!1,!1,"","",La.LEFT,0,0,
  221. 0,0),ab.__defaultTextFormat.blockIndent=0,ab.__defaultTextFormat.bullet=!1,ab.__defaultTextFormat.letterSpacing=0,ab.__defaultTextFormat.kerning=!1);this.__textFormat=ab.__defaultTextFormat.clone()};g["openfl.text.TextField"]=ab;ab.__name__=["openfl","text","TextField"];ab.__defaultTextFormat=null;ab.__super__=vb;ab.prototype=t(vb.prototype,{setTextFormat:function(a,b,c){null!=a.font&&(this.__textFormat.font=a.font);null!=a.size&&(this.__textFormat.size=a.size);null!=a.color&&(this.__textFormat.color=
  222. a.color);null!=a.bold&&(this.__textFormat.bold=a.bold);null!=a.italic&&(this.__textFormat.italic=a.italic);null!=a.underline&&(this.__textFormat.underline=a.underline);null!=a.url&&(this.__textFormat.url=a.url);null!=a.target&&(this.__textFormat.target=a.target);null!=a.align&&(this.__textFormat.align=a.align);null!=a.leftMargin&&(this.__textFormat.leftMargin=a.leftMargin);null!=a.rightMargin&&(this.__textFormat.rightMargin=a.rightMargin);null!=a.indent&&(this.__textFormat.indent=a.indent);null!=
  223. a.leading&&(this.__textFormat.leading=a.leading);null!=a.blockIndent&&(this.__textFormat.blockIndent=a.blockIndent);null!=a.bullet&&(this.__textFormat.bullet=a.bullet);null!=a.kerning&&(this.__textFormat.kerning=a.kerning);null!=a.letterSpacing&&(this.__textFormat.letterSpacing=a.letterSpacing);null!=a.tabStops&&(this.__textFormat.tabStops=a.tabStops);this.__dirty=!0},__disableInputMode:function(){this.this_onRemovedFromStage(null)},__enableInputMode:function(){this.__cursorPosition=-1;null==this.__hiddenInput&&
  224. (this.__hiddenInput=window.document.createElement("input"),this.__hiddenInput.type="text",this.__hiddenInput.style.position="absolute",this.__hiddenInput.style.opacity="0",this.__hiddenInput.style.pointerEvents="none",this.__hiddenInput.style.left=this.get_x()+(null!=this.__canvas?this.__canvas.offsetLeft:0)+"px",this.__hiddenInput.style.top=this.get_y()+(null!=this.__canvas?this.__canvas.offsetTop:0)+"px",this.__hiddenInput.style.width=this.__width+"px",this.__hiddenInput.style.height=this.__height+
  225. "px",this.__hiddenInput.style.zIndex="0",0<this.maxChars&&(this.__hiddenInput.maxLength=this.maxChars),window.document.body.appendChild(this.__hiddenInput),this.__hiddenInput.value=this.__text);null!=this.stage?this.this_onAddedToStage(null):(this.addEventListener(u.ADDED_TO_STAGE,n(this,this.this_onAddedToStage)),this.addEventListener(u.REMOVED_FROM_STAGE,n(this,this.this_onRemovedFromStage)))},__getBounds:function(a,b){var c=new oa(0,0,this.__width,this.__height);c.transform(this.__worldTransform);
  226. a.__expand(c.x,c.y,c.width,c.height)},__getFont:function(a){var b;b=a.italic?"italic ":"normal ";b+="normal ";b=a.bold?b+"bold ":b+"normal ";b+=a.size+"px";b+="/"+(a.size+a.leading+4)+"px ";switch(a.font){case "_sans":a="sans-serif";break;case "_serif":a="serif";break;case "_typewriter":a="monospace";break;default:a=a.font}b+="'"+a;return b+"'"},__getPosition:function(a,b){var c=this.get_text(),d=0,e=c.length;if(a<this.__getTextWidth(c))for(var f=0,p=c.length;f<p;){var h=f++,d=d+this.__getTextWidth(c.charAt(h));
  227. if(d>=a){e=h;break}}return e},__getTextWidth:function(a){null==this.__context&&(this.__canvas=window.document.createElement("canvas"),this.__context=this.__canvas.getContext("2d"));this.__context.font=this.__getFont(this.__textFormat);this.__context.textAlign="left";return this.__context.measureText(a).width},__hitTest:function(a,b,c,d,e){if(!this.get_visible()||e&&!this.mouseEnabled)return!1;a=this.globalToLocal(new la(a,b));return 0<a.x&&0<a.y&&a.x<=this.__width&&a.y<=this.__height?(null!=d&&d.push(this),
  228. !0):!1},__measureText:function(){if(null==this.__ranges)return this.__context.font=this.__getFont(this.__textFormat),[this.__context.measureText(this.__text).width];for(var a=[],b=0,c=this.__ranges;b<c.length;){var d=c[b];++b;this.__context.font=this.__getFont(d.format);a.push(this.__context.measureText(this.get_text().substring(d.start,d.end)).width)}return a},__measureTextWithDOM:function(){var a=this.__div;null==this.__div&&(a=window.document.createElement("div"),a.innerHTML=(new qa("\n","g")).replace(this.__text,
  229. "<br>"),a.style.setProperty("font",this.__getFont(this.__textFormat),null),a.style.position="absolute",a.style.top="110%",window.document.body.appendChild(a));this.__measuredWidth=a.clientWidth;null==this.__div&&(a.style.width=z.string(this.__width)+"px");this.__measuredHeight=a.clientHeight;null==this.__div&&window.document.body.removeChild(a)},__renderCanvas:function(a){aa.render(this,a)},__renderDOM:function(a){Ff.render(this,a)},__renderGL:function(a){Gf.render(this,a)},__startCursorTimer:function(){this.__cursorTimer=
  230. qb.delay(n(this,this.__startCursorTimer),500);this.__showCursor=!this.__showCursor;this.__dirty=!0},__stopCursorTimer:function(){null!=this.__cursorTimer&&this.__cursorTimer.stop()},input_onKeyUp:function(a){this.__isKeyDown=!1;null==a&&a==window.event;this.__text=this.__hiddenInput.value;this.__ranges=null;this.__isHTML=!1;this.__selectionStart=this.__cursorPosition=this.__hiddenInput.selectionStart;this.__dirty=!0;this.dispatchEvent(new u(u.CHANGE,!0))},input_onKeyDown:function(a){this.__isKeyDown=
  231. !0;null==a&&a==window.event;var b=a.which;65==b&&(a.ctrlKey||a.metaKey)?(this.__hiddenInput.selectionStart=0,this.__hiddenInput.selectionEnd=this.get_text().length,a.preventDefault(),this.__dirty=!0):17==b||a.metaKey||a.ctrlKey||(this.__text=this.__hiddenInput.value,this.__ranges=null,this.__isHTML=!1,this.__selectionStart=this.__hiddenInput.selectionStart,this.__dirty=!0)},stage_onFocusOut:function(a){this.__cursorPosition=-1;this.__hasFocus=!1;this.__stopCursorTimer();this.__hiddenInput.blur();
  232. this.__dirty=!0},stage_onMouseMove:function(a){this.__hasFocus&&0<=this.__selectionStart&&(this.__cursorPosition=this.__getPosition(a.localX,a.localY),this.__dirty=!0)},stage_onMouseUp:function(a){var b=this.__getPosition(a.localX,a.localY);a=z["int"](Math.min(this.__selectionStart,b));b=z["int"](Math.max(this.__selectionStart,b));this.__selectionStart=a;this.__cursorPosition=b;this.stage.removeEventListener(y.MOUSE_MOVE,n(this,this.stage_onMouseMove));this.stage.addEventListener(y.MOUSE_UP,n(this,
  233. this.stage_onMouseUp));this.stage.set_focus(this);0>this.__cursorPosition&&(this.__selectionStart=this.__cursorPosition=this.__text.length);this.__hiddenInput.focus();this.__hiddenInput.selectionStart=this.__selectionStart;this.__hiddenInput.selectionEnd=this.__cursorPosition;this.__stopCursorTimer();this.__startCursorTimer();this.__dirty=this.__hasFocus=!0},this_onAddedToStage:function(a){this.stage.addEventListener(Gb.FOCUS_OUT,n(this,this.stage_onFocusOut));this.__hiddenInput.addEventListener("keydown",
  234. n(this,this.input_onKeyDown));this.__hiddenInput.addEventListener("keyup",n(this,this.input_onKeyUp));this.__hiddenInput.addEventListener("input",n(this,this.input_onKeyUp));this.addEventListener(y.MOUSE_DOWN,n(this,this.this_onMouseDown))},this_onMouseDown:function(a){this.__selectionStart=this.__getPosition(a.localX,a.localY);this.stage.addEventListener(y.MOUSE_MOVE,n(this,this.stage_onMouseMove));this.stage.addEventListener(y.MOUSE_UP,n(this,this.stage_onMouseUp))},this_onRemovedFromStage:function(a){null!=
  235. this.stage&&this.stage.removeEventListener(Gb.FOCUS_OUT,n(this,this.stage_onFocusOut));null!=this.__hiddenInput&&this.__hiddenInput.removeEventListener("keydown",n(this,this.input_onKeyDown));null!=this.__hiddenInput&&this.__hiddenInput.removeEventListener("keyup",n(this,this.input_onKeyUp));null!=this.__hiddenInput&&this.__hiddenInput.removeEventListener("input",n(this,this.input_onKeyUp));this.removeEventListener(y.MOUSE_DOWN,n(this,this.this_onMouseDown));null!=this.stage&&this.stage.removeEventListener(y.MOUSE_MOVE,
  236. n(this,this.stage_onMouseMove));null!=this.stage&&this.stage.removeEventListener(y.MOUSE_UP,n(this,this.stage_onMouseUp))},set_autoSize:function(a){a!=this.autoSize&&(this.__dirty=!0);return this.autoSize=a},set_background:function(a){a!=this.background&&(this.__dirty=!0);return this.background=a},set_backgroundColor:function(a){a!=this.backgroundColor&&(this.__dirty=!0);return this.backgroundColor=a},set_border:function(a){a!=this.border&&(this.__dirty=!0);return this.border=a},set_borderColor:function(a){a!=
  237. this.borderColor&&(this.__dirty=!0);return this.borderColor=a},get_defaultTextFormat:function(){return this.__textFormat.clone()},set_defaultTextFormat:function(a){this.__textFormat.__merge(a);return a},get_height:function(){return this.__height*this.get_scaleY()},get_text:function(){return this.__text},set_text:function(a){this.__text!=a&&null!=this.__hiddenInput&&(this.__hiddenInput.value=a);if(this.__isHTML||this.__text!=a)this.__dirty=!0;this.__ranges=null;this.__isHTML=!1;return this.__text=
  238. a},get_textWidth:function(){if(null!=this.__canvas){for(var a=this.__measureText(),b=0,c=0;c<a.length;){var d=a[c];++c;b+=d}return b}if(null!=this.__div)return this.__div.clientWidth;this.__measureTextWithDOM();return this.__measuredWidth},get_textHeight:function(){if(null!=this.__canvas)return 1.185*this.__textFormat.size;if(null!=this.__div)return this.__div.clientHeight;this.__measureTextWithDOM();return this.__measuredHeight+.185*this.__textFormat.size},set_type:function(a){a!=this.type&&(a==
  239. Tb.INPUT?this.__enableInputMode():this.__disableInputMode(),this.__dirty=!0);return this.type=a},get_width:function(){return this.autoSize==ua.LEFT?(this.get_textWidth()+4)*this.get_scaleX():this.__width*this.get_scaleX()},set_width:function(a){if(1!=this.get_scaleX()||this.__width!=a)this.__transformDirty||(this.__transformDirty=!0,ca.__worldTransformDirty++),this.__dirty=!0;this.set_scaleX(1);return this.__width=a},set_wordWrap:function(a){return this.wordWrap=a},__class__:ab,__properties__:t(vb.prototype.__properties__,
  240. {get_textHeight:"get_textHeight",get_textWidth:"get_textWidth",set_text:"set_text",get_text:"get_text",set_defaultTextFormat:"set_defaultTextFormat",get_defaultTextFormat:"get_defaultTextFormat",set_wordWrap:"set_wordWrap",set_type:"set_type",set_borderColor:"set_borderColor",set_border:"set_border",set_backgroundColor:"set_backgroundColor",set_background:"set_background",set_autoSize:"set_autoSize"})});var rc=function(){ab.call(this);this.init()};g["com.alagatar.ui.Label"]=rc;rc.__name__=["com",
  241. "alagatar","ui","Label"];rc.__super__=ab;rc.prototype=t(ab.prototype,{init:function(){var a=new Xc(null,12,0);a.align=La.LEFT;this.set_autoSize(ua.LEFT);this.set_defaultTextFormat(a);this.setTextFormat(a);this.mouseEnabled=this.selectable=!1;this.set_align("left")},set_color:function(a){this.color=a;a=this.get_defaultTextFormat();a.color=this.color;this.set_defaultTextFormat(a);this.setTextFormat(a);return this.color},set_size:function(a){this.size=a;a=this.get_defaultTextFormat();a.size=this.size;
  242. this.set_defaultTextFormat(a);this.setTextFormat(a);return this.size},set_font:function(a){this.font=a;a=this.get_defaultTextFormat();var b=na.getFont(this.font);a.font=b.get_fontName();this.set_defaultTextFormat(a);this.setTextFormat(a);this.embedFonts=!0;return this.font},set_fieldWidth:function(a){this.fieldWidth=a;this.set_autoSize(ua.NONE);this.set_width(this.fieldWidth);this.set_align(this.align);return this.fieldWidth},set_align:function(a){this.align=a;a=this.get_defaultTextFormat();switch(this.align){case "left":a.align=
  243. La.LEFT;break;case "center":a.align=La.CENTER;break;case "right":a.align=La.RIGHT}this.set_defaultTextFormat(a);this.setTextFormat(a);return this.align},set_y:function(a){ab.prototype.set_y.call(this,a);return a},__class__:rc,__properties__:t(ab.prototype.__properties__,{set_align:"set_align",set_fieldWidth:"set_fieldWidth",set_font:"set_font",set_size:"set_size",set_color:"set_color"})});var wa=function(a){Za.call(this);this.graph=a;this.add(this.graph);this.init()};g["com.alagatar.ui.TileButton"]=
  244. wa;wa.__name__=["com","alagatar","ui","TileButton"];wa.__super__=Za;wa.prototype=t(Za.prototype,{init:function(){this.hitConfig=null;this.mouseDown=!1;this.scaleChange=.9;this.alphaChange=.6;this.animInTime=.2;this.animOutTime=.1;this.paramsSet=!1;this.enabled=!0;this.manualDisabled=!1;this.soundEffect=null},setHitRect:function(a,b,c,d){this.hitConfig={mode:1,x:a-c/2,y:b-d/2,w:c,h:d}},setHitCirc:function(a,b,c){this.hitConfig={mode:2,x:a,y:b,w:c,h:c}},drawHitArea:function(){if(null!=this.hitConfig){var a=
  245. new A;a.get_graphics().lineStyle(1,16711680);1==this.hitConfig.mode?(a.set_x(this.hitConfig.x+this.hitConfig.w/2),a.set_y(this.hitConfig.y+this.hitConfig.h/2),a.get_graphics().drawRect(-this.hitConfig.w/2,-this.hitConfig.h/2,this.hitConfig.w,this.hitConfig.h)):(a.set_x(this.hitConfig.x),a.set_y(this.hitConfig.y),a.get_graphics().drawCircle(0,0,this.hitConfig.w));this.addChild(a)}},onMouseDown:function(a){0!=this.get_alpha()&&0!=this.get_visible()&&0!=this.enabled&&1!=this.manualDisabled&&null!=this.hitConfig&&
  246. 0!=this.hitTest(a.stageX,a.stageY)&&(this.mouseDown=!0)},hitTest:function(a,b){return 1==this.hitConfig.mode?this.hitTestRect(a,b):this.hitTestCirc(a,b)},hitTestRect:function(a,b){return D.pointInsideRect(a,b,this.graph.x+this.hitConfig.x,this.graph.y+this.hitConfig.y,this.hitConfig.w,this.hitConfig.h)},hitTestCirc:function(a,b){return D.pointInsideCirc(a,b,this.get_x()+this.hitConfig.x,this.get_y()+this.hitConfig.y,this.hitConfig.w)},onMouseUp:function(a){0!=this.mouseDown&&(this.mouseDown=!1,0!=
  247. this.enabled&&1!=this.manualDisabled&&0!=this.get_alpha()&&0!=this.get_visible()&&null!=this.hitConfig&&0!=this.hitTest(a.stageX,a.stageY)&&(0==this.paramsSet&&(this.paramsSet=!0,this.initParams()),this.startAnim()))},initParams:function(){this.graphAlpha=this.get_alpha();this.graphScaleX=this.get_scaleX();this.graphScaleY=this.get_scaleY()},startAnim:function(){null!=this.soundEffect&&R.get_instance().playSound(this.soundEffect);this.reset();this.alphaIn();this.dispatchEvent(new u("b_start",!0))},
  248. reset:function(){this.set_alpha(this.graphAlpha)},completeAnim:function(){this.reset();this.dispatchEvent(new u("b_complete"))},alphaIn:function(){l.to(this,{alpha:this.graphAlpha*this.alphaChange},null,null,null,null,null,null,null,null,{fileName:"TileButton.hx",lineNumber:255,className:"com.alagatar.ui.TileButton",methodName:"alphaIn"}).time(this.animInTime).onFinish(n(this,this.alphaOut)).ease(wb.quintInOut)},alphaOut:function(){l.to(this,{alpha:this.graphAlpha},null,null,null,null,null,null,null,
  249. null,{fileName:"TileButton.hx",lineNumber:260,className:"com.alagatar.ui.TileButton",methodName:"alphaOut"}).time(this.animOutTime).onFinish(n(this,this.completeAnim)).ease(wb.linear)},setSoundEffect:function(a){this.soundEffect=a},__class__:wa});var ac=function(){A.call(this);this.init()};g["com.alagatar.ui.UiLayer"]=ac;ac.__name__=["com","alagatar","ui","UiLayer"];ac.__super__=A;ac.prototype=t(A.prototype,{init:function(){this.items=[];B.current.stage.addEventListener(y.MOUSE_DOWN,n(this,this.onMouseDown));
  250. B.current.stage.addEventListener(y.MOUSE_UP,n(this,this.onMouseUp));B.current.stage.addEventListener(y.MOUSE_MOVE,n(this,this.onMouseMove))},onMouseDown:function(a){for(var b=0,c=this.items.length;b<c;){var d=b++;this.items[d].onMouseDown(a)}},onMouseUp:function(a){for(var b=0,c=this.items.length;b<c;){var d=b++;this.items[d].onMouseUp(a)}},onMouseMove:function(a){for(var b=0,c=this.items.length;b<c;){var d=b++;this.items[d].onMouseMove(a)}},add:function(a){this.items.push(a);this.addChild(a)},free:function(){B.current.stage.removeEventListener(y.MOUSE_DOWN,
  251. n(this,this.onMouseDown));B.current.stage.removeEventListener(y.MOUSE_UP,n(this,this.onMouseUp));B.current.stage.removeEventListener(y.MOUSE_MOVE,n(this,this.onMouseMove));this.items=[];this.items=null},__class__:ac});var Ba=function(){this.cleanable=!1;this.cleanable=!0};g["components.Car"]=Ba;Ba.__name__=["components","Car"];Ba.__super__=ia;Ba.prototype=t(ia.prototype,{__class__:Ba});var bc=function(){};g["components.Hero"]=bc;bc.__name__=["components","Hero"];bc.__super__=ia;bc.prototype=t(ia.prototype,
  252. {__class__:bc});var sc=function(){};g["components.Input"]=sc;sc.__name__=["components","Input"];sc.__super__=ia;sc.prototype=t(ia.prototype,{__class__:sc});var Aa=function(){};g["components.Position"]=Aa;Aa.__name__=["components","Position"];Aa.__super__=ia;Aa.prototype=t(ia.prototype,{__class__:Aa});var Ca=function(){this.cleanable=!1};g["components.RoadItem"]=Ca;Ca.__name__=["components","RoadItem"];Ca.__super__=ia;Ca.prototype=t(ia.prototype,{__class__:Ca});var rb=function(){this.cleanable=!1;
  253. this.cleanable=!0};g["components.Tile"]=rb;rb.__name__=["components","Tile"];rb.__super__=ia;rb.prototype=t(ia.prototype,{__class__:rb});var Hb=function(){};g["components.Velocity"]=Hb;Hb.__name__=["components","Velocity"];Hb.__super__=ia;Hb.prototype=t(ia.prototype,{__class__:Hb});var tc=function(){};g["components.Wiped"]=tc;tc.__name__=["components","Wiped"];tc.__super__=ia;tc.prototype=t(ia.prototype,{__class__:tc});var T=g["enums.ScenesList"]={__ename__:["enums","ScenesList"],__constructs__:"Menu Garage Help LevelBuilder Awards Gift Test".split(" ")};
  254. T.Menu=["Menu",0];T.Menu.toString=q;T.Menu.__enum__=T;T.Garage=["Garage",1];T.Garage.toString=q;T.Garage.__enum__=T;T.Help=["Help",2];T.Help.toString=q;T.Help.__enum__=T;T.LevelBuilder=["LevelBuilder",3];T.LevelBuilder.toString=q;T.LevelBuilder.__enum__=T;T.Awards=["Awards",4];T.Awards.toString=q;T.Awards.__enum__=T;T.Gift=["Gift",5];T.Gift.toString=q;T.Gift.__enum__=T;T.Test=["Test",6];T.Test.toString=q;T.Test.__enum__=T;var nc=function(){};g["haxe.Resource"]=nc;nc.__name__=["haxe","Resource"];nc.content=
  255. null;nc.getString=function(a){for(var b=0,c=nc.content;b<c.length;){var d=c[b];++b;if(d.name==a)return null!=d.str?d.str:Dc.decode(d.data).toString()}return null};var Ib=function(){this.buf=new zc;this.cache=[];this.useCache=Ib.USE_CACHE;this.useEnumIndex=Ib.USE_ENUM_INDEX;this.shash=new sa;this.scount=0};g["haxe.Serializer"]=Ib;Ib.__name__=["haxe","Serializer"];Ib.run=function(a){var b=new Ib;b.serialize(a);return b.toString()};Ib.prototype={toString:function(){return this.buf.b},serializeString:function(a){var b=
  256. this.shash.get(a);null!=b?(this.buf.b+="R",this.buf.b=null==b?this.buf.b+"null":this.buf.b+(""+b)):(this.shash.set(a,this.scount++),this.buf.b+="y",a=encodeURIComponent(a),this.buf.b=null==a.length?this.buf.b+"null":this.buf.b+(""+a.length),this.buf.b+=":",this.buf.b=null==a?this.buf.b+"null":this.buf.b+(""+a))},serializeRef:function(a){for(var b=typeof a,c=0,d=this.cache.length;c<d;){var e=c++,f=this.cache[e];if(typeof f==b&&f==a)return this.buf.b+="r",this.buf.b=null==e?this.buf.b+"null":this.buf.b+
  257. (""+e),!0}this.cache.push(a);return!1},serializeFields:function(a){for(var b=0,c=r.fields(a);b<c.length;){var d=c[b];++b;this.serializeString(d);this.serialize(r.field(a,d))}this.buf.b+="g"},serialize:function(a){var b=Q["typeof"](a);switch(b[1]){case 0:this.buf.b+="n";break;case 1:if(0==a){this.buf.b+="z";break}this.buf.b+="i";this.buf.b=null==a?this.buf.b+"null":this.buf.b+(""+a);break;case 2:Math.isNaN(a)?this.buf.b+="k":Math.isFinite(a)?(this.buf.b+="d",this.buf.b=null==a?this.buf.b+"null":this.buf.b+
  258. (""+a)):this.buf.b=0>a?this.buf.b+"m":this.buf.b+"p";break;case 3:this.buf.b=a?this.buf.b+"t":this.buf.b+"f";break;case 6:b=b[2];if(b==String){this.serializeString(a);break}if(this.useCache&&this.serializeRef(a))break;switch(b){case Array:b=0;this.buf.b+="a";for(var c=a.length,d=0;d<c;){var e=d++;null==a[e]?b++:(0<b&&(1==b?this.buf.b+="n":(this.buf.b+="u",this.buf.b=null==b?this.buf.b+"null":this.buf.b+(""+b)),b=0),this.serialize(a[e]))}0<b&&(1==b?this.buf.b+="n":(this.buf.b+="u",this.buf.b=null==
  259. b?this.buf.b+"null":this.buf.b+(""+b)));this.buf.b+="h";break;case Rc:this.buf.b+="l";for(a=a.iterator();a.hasNext();)b=a.next(),this.serialize(b);this.buf.b+="h";break;case Date:this.buf.b+="v";this.buf.add(E.dateStr(a));break;case sa:this.buf.b+="b";for(b=a.keys();b.hasNext();)c=b.next(),this.serializeString(c),this.serialize(a.get(c));this.buf.b+="h";break;case Yc:this.buf.b+="q";for(b=a.keys();b.hasNext();)c=b.next(),this.buf.b+=":",this.buf.b=null==c?this.buf.b+"null":this.buf.b+(""+c),this.serialize(a.get(c));
  260. this.buf.b+="h";break;case Ma:this.buf.b+="M";for(b=a.keys();b.hasNext();)c=b.next(),d=r.field(c,"__id__"),r.deleteField(c,"__id__"),this.serialize(c),c.__id__=d,this.serialize(a.h[c.__id__]);this.buf.b+="h";break;case Jb:d=0;e=a.length-2;b=new zc;for(c=Ib.BASE64;d<e;){var f=a.get(d++),p=a.get(d++),h=a.get(d++);b.add(c.charAt(f>>2));b.add(c.charAt((f<<4|p>>4)&63));b.add(c.charAt((p<<2|h>>6)&63));b.add(c.charAt(h&63))}d==e?(e=a.get(d++),a=a.get(d++),b.add(c.charAt(e>>2)),b.add(c.charAt((e<<4|a>>4)&
  261. 63)),b.add(c.charAt(a<<2&63))):d==e+1&&(a=a.get(d++),b.add(c.charAt(a>>2)),b.add(c.charAt(a<<4&63)));a=b.b;this.buf.b+="s";this.buf.b=null==a.length?this.buf.b+"null":this.buf.b+(""+a.length);this.buf.b+=":";this.buf.b=null==a?this.buf.b+"null":this.buf.b+(""+a);break;default:this.useCache&&this.cache.pop(),null!=a.hxSerialize?(this.buf.b+="C",this.serializeString(Q.getClassName(b)),this.useCache&&this.cache.push(a),a.hxSerialize(this),this.buf.b+="g"):(this.buf.b+="c",this.serializeString(Q.getClassName(b)),
  262. this.useCache&&this.cache.push(a),this.serializeFields(a))}break;case 4:if(this.useCache&&this.serializeRef(a))break;this.buf.b+="o";this.serializeFields(a);break;case 7:b=b[2];if(this.useCache){if(this.serializeRef(a))break;this.cache.pop()}this.buf.b=this.useEnumIndex?this.buf.b+"j":this.buf.b+"w";this.serializeString(Q.getEnumName(b));this.useEnumIndex?(this.buf.b+=":",this.buf.b+=z.string(a[1])):this.serializeString(a[0]);this.buf.b+=":";b=a.length;this.buf.b+=z.string(b-2);for(c=2;c<b;)d=c++,
  263. this.serialize(a[d]);this.useCache&&this.cache.push(a);break;case 5:throw"Cannot serialize function";default:throw"Cannot serialize "+z.string(a);}},__class__:Ib};var qb=function(a){var b=this;this.id=setInterval(function(){b.run()},a)};g["haxe.Timer"]=qb;qb.__name__=["haxe","Timer"];qb.delay=function(a,b){var c=new qb(b);c.run=function(){c.stop();a()};return c};qb.prototype={stop:function(){null!=this.id&&(clearInterval(this.id),this.id=null)},run:function(){},__class__:qb};var xb=function(a){this.buf=
  264. a;this.length=a.length;this.pos=0;this.scache=[];this.cache=[];a=xb.DEFAULT_RESOLVER;null==a&&(a=Q,xb.DEFAULT_RESOLVER=a);this.setResolver(a)};g["haxe.Unserializer"]=xb;xb.__name__=["haxe","Unserializer"];xb.initCodes=function(){for(var a=[],b=0,c=xb.BASE64.length;b<c;){var d=b++;a[xb.BASE64.charCodeAt(d)]=d}return a};xb.prototype={setResolver:function(a){this.resolver=null==a?{resolveClass:function(a){return null},resolveEnum:function(a){return null}}:a},get:function(a){return this.buf.charCodeAt(a)},
  265. readDigits:function(){for(var a=0,b=!1,c=this.pos;;){var d=this.buf.charCodeAt(this.pos);if(d!=d)break;if(45==d){if(this.pos!=c)break;b=!0}else{if(48>d||57<d)break;a=10*a+(d-48)}this.pos++}b&&(a*=-1);return a},unserializeObject:function(a){for(;;){if(this.pos>=this.length)throw"Invalid object";if(103==this.buf.charCodeAt(this.pos))break;var b=this.unserialize();if("string"!=typeof b)throw"Invalid object key";var c=this.unserialize();a[b]=c}this.pos++},unserializeEnum:function(a,b){if(58!=this.get(this.pos++))throw"Invalid enum format";
  266. var c=this.readDigits();if(0==c)return Q.createEnum(a,b);for(var d=[];0<c--;)d.push(this.unserialize());return Q.createEnum(a,b,d)},unserialize:function(){switch(this.get(this.pos++)){case 110:return null;case 116:return!0;case 102:return!1;case 122:return 0;case 105:return this.readDigits();case 100:for(var a=this.pos;;){var b=this.buf.charCodeAt(this.pos);if(43<=b&&58>b||101==b||69==b)this.pos++;else break}return z.parseFloat(E.substr(this.buf,a,this.pos-a));case 121:a=this.readDigits();if(58!=
  267. this.get(this.pos++)||this.length-this.pos<a)throw"Invalid string length";b=E.substr(this.buf,this.pos,a);this.pos+=a;b=decodeURIComponent(b.split("+").join(" "));this.scache.push(b);return b;case 107:return Math.NaN;case 109:return Math.NEGATIVE_INFINITY;case 112:return Math.POSITIVE_INFINITY;case 97:a=[];for(this.cache.push(a);;){b=this.buf.charCodeAt(this.pos);if(104==b){this.pos++;break}117==b?(this.pos++,b=this.readDigits(),a[a.length+b-1]=null):a.push(this.unserialize())}return a;case 111:return a=
  268. {},this.cache.push(a),this.unserializeObject(a),a;case 114:a=this.readDigits();if(0>a||a>=this.cache.length)throw"Invalid reference";return this.cache[a];case 82:a=this.readDigits();if(0>a||a>=this.scache.length)throw"Invalid string reference";return this.scache[a];case 120:throw this.unserialize();case 99:a=this.unserialize();b=this.resolver.resolveClass(a);if(null==b)throw"Class not found "+a;a=Q.createEmptyInstance(b);this.cache.push(a);this.unserializeObject(a);return a;case 119:a=this.unserialize();
  269. b=this.resolver.resolveEnum(a);if(null==b)throw"Enum not found "+a;a=this.unserializeEnum(b,this.unserialize());this.cache.push(a);return a;case 106:a=this.unserialize();b=this.resolver.resolveEnum(a);if(null==b)throw"Enum not found "+a;this.pos++;var c=this.readDigits(),d=Q.getEnumConstructs(b)[c];if(null==d)throw"Unknown enum index "+a+"@"+c;a=this.unserializeEnum(b,d);this.cache.push(a);return a;case 108:a=new Rc;for(this.cache.push(a);104!=this.buf.charCodeAt(this.pos);)a.add(this.unserialize());
  270. this.pos++;return a;case 98:a=new sa;for(this.cache.push(a);104!=this.buf.charCodeAt(this.pos);)b=this.unserialize(),a.set(b,this.unserialize());this.pos++;return a;case 113:a=new Yc;this.cache.push(a);for(b=this.get(this.pos++);58==b;)b=this.readDigits(),a.set(b,this.unserialize()),b=this.get(this.pos++);if(104!=b)throw"Invalid IntMap format";return a;case 77:a=new Ma;for(this.cache.push(a);104!=this.buf.charCodeAt(this.pos);)b=this.unserialize(),a.set(b,this.unserialize());this.pos++;return a;case 118:return a=
  271. E.substr(this.buf,this.pos,19),a=E.strDate(a),this.cache.push(a),this.pos+=19,a;case 115:a=this.readDigits();d=this.buf;if(58!=this.get(this.pos++)||this.length-this.pos<a)throw"Invalid bytes length";var e=xb.CODES;null==e&&(e=xb.initCodes(),xb.CODES=e);for(var f=this.pos,p=a&3,h=f+(a-p),b=Jb.alloc(3*(a>>2)+(2<=p?p-1:0)),c=0;f<h;){var g=e[W.fastCodeAt(d,f++)],l=e[W.fastCodeAt(d,f++)];b.set(c++,g<<2|l>>4);g=e[W.fastCodeAt(d,f++)];b.set(c++,l<<4|g>>2);l=e[W.fastCodeAt(d,f++)];b.set(c++,g<<6|l)}2<=p&&
  272. (l=e[W.fastCodeAt(d,f++)],h=e[W.fastCodeAt(d,f++)],b.set(c++,l<<2|h>>4),3==p&&(d=e[W.fastCodeAt(d,f++)],b.set(c++,h<<4|d>>2)));this.pos+=a;this.cache.push(b);return b;case 67:a=this.unserialize();b=this.resolver.resolveClass(a);if(null==b)throw"Class not found "+a;a=Q.createEmptyInstance(b);this.cache.push(a);a.hxUnserialize(this);if(103!=this.get(this.pos++))throw"Invalid custom data";return a}this.pos--;throw"Invalid char "+this.buf.charAt(this.pos)+" at position "+this.pos;},__class__:xb};var Ie=
  273. function(a){this.__b=""};g["haxe.Utf8"]=Ie;Ie.__name__=["haxe","Utf8"];Ie.prototype={__class__:Ie};var Jb=function(a,b){this.length=a;this.b=b};g["haxe.io.Bytes"]=Jb;Jb.__name__=["haxe","io","Bytes"];Jb.alloc=function(a){for(var b=[],c=0;c<a;)c++,b.push(0);return new Jb(a,b)};Jb.ofString=function(a){for(var b=[],c=0;c<a.length;){var d=W.fastCodeAt(a,c++);55296<=d&&56319>=d&&(d=d-55232<<10|W.fastCodeAt(a,c++)&1023);127>=d?b.push(d):(2047>=d?b.push(192|d>>6):(65535>=d?b.push(224|d>>12):(b.push(240|
  274. d>>18),b.push(128|d>>12&63)),b.push(128|d>>6&63)),b.push(128|d&63))}return new Jb(b.length,b)};Jb.prototype={get:function(a){return this.b[a]},set:function(a,b){this.b[a]=b&255},getString:function(a,b){if(0>a||0>b||a+b>this.length)throw yb.OutsideBounds;for(var c="",d=this.b,e=String.fromCharCode,f=a,p=a+b;f<p;){var h=d[f++];if(128>h){if(0==h)break;c+=e(h)}else if(224>h)c+=e((h&63)<<6|d[f++]&127);else if(240>h)var g=d[f++],c=c+e((h&31)<<12|(g&127)<<6|d[f++]&127);else var g=d[f++],l=d[f++],h=(h&15)<<
  275. 18|(g&127)<<12|(l&127)<<6|d[f++]&127,c=c+e((h>>10)+55232),c=c+e(h&1023|56320)}return c},toString:function(){return this.getString(0,this.length)},__class__:Jb};var Dc=function(){};g["haxe.crypto.Base64"]=Dc;Dc.__name__=["haxe","crypto","Base64"];Dc.decode=function(a,b){null==b&&(b=!0);if(b)for(;61==E.cca(a,a.length-1);)a=E.substr(a,0,-1);return(new Je(Dc.BYTES)).decodeBytes(Jb.ofString(a))};var Je=function(a){for(var b=a.length,c=1;b>1<<c;)c++;if(8<c||b!=1<<c)throw"BaseCode : base length must be a power of two.";
  276. this.base=a;this.nbits=c};g["haxe.crypto.BaseCode"]=Je;Je.__name__=["haxe","crypto","BaseCode"];Je.prototype={initTable:function(){for(var a=[],b=0;256>b;){var c=b++;a[c]=-1}b=0;for(c=this.base.length;b<c;){var d=b++;a[this.base.b[d]]=d}this.tbl=a},decodeBytes:function(a){var b=this.nbits;null==this.tbl&&this.initTable();for(var c=this.tbl,d=a.length*b>>3,e=Jb.alloc(d),f=0,p=0,h=0,g=0;g<d;){for(;8>p;){var p=p+b,f=f<<b,l=c[a.get(h++)];if(-1==l)throw"BaseCode : invalid encoded char";f|=l}p-=8;e.set(g++,
  277. f>>p&255)}return e},__class__:Je};var Fd=function(){};g["haxe.ds.BalancedTree"]=Fd;Fd.__name__=["haxe","ds","BalancedTree"];Fd.prototype={set:function(a,b){this.root=this.setLoop(a,b,this.root)},get:function(a){for(var b=this.root;null!=b;){var c=this.compare(a,b.key);if(0==c)return b.value;b=0>c?b.left:b.right}return null},setLoop:function(a,b,c){if(null==c)return new sb(null,a,b,null);var d=this.compare(a,c.key);if(0==d)return new sb(c.left,a,b,c.right,null==c?0:c._height);if(0>d)return a=this.setLoop(a,
  278. b,c.left),this.balance(a,c.key,c.value,c.right);a=this.setLoop(a,b,c.right);return this.balance(c.left,c.key,c.value,a)},balance:function(a,b,c,d){var e;e=null==a?0:a._height;var f;f=null==d?0:d._height;return e>f+2?function(b){b=a.left;return null==b?0:b._height}(this)>=function(b){b=a.right;return null==b?0:b._height}(this)?new sb(a.left,a.key,a.value,new sb(a.right,b,c,d)):new sb(new sb(a.left,a.key,a.value,a.right.left),a.right.key,a.right.value,new sb(a.right.right,b,c,d)):f>e+2?function(a){a=
  279. d.right;return null==a?0:a._height}(this)>function(a){a=d.left;return null==a?0:a._height}(this)?new sb(new sb(a,b,c,d.left),d.key,d.value,d.right):new sb(new sb(a,b,c,d.left.left),d.left.key,d.left.value,new sb(d.left.right,d.key,d.value,d.right)):new sb(a,b,c,d,(e>f?e:f)+1)},compare:function(a,b){return r.compare(a,b)},__class__:Fd};var sb=function(a,b,c,d,e){null==e&&(e=-1);this.left=a;this.key=b;this.value=c;this.right=d;this._height=-1==e?(function(a){a=a.left;return null==a?0:a._height}(this)>
  280. function(a){a=a.right;return null==a?0:a._height}(this)?function(a){a=a.left;return null==a?0:a._height}(this):function(a){a=a.right;return null==a?0:a._height}(this))+1:e};g["haxe.ds.TreeNode"]=sb;sb.__name__=["haxe","ds","TreeNode"];sb.prototype={__class__:sb};var Zc=function(){};g["haxe.ds.EnumValueMap"]=Zc;Zc.__name__=["haxe","ds","EnumValueMap"];Zc.__interfaces__=[xd];Zc.__super__=Fd;Zc.prototype=t(Fd.prototype,{compare:function(a,b){var c=a[1]-b[1];if(0!=c)return c;var c=a.slice(2),d=b.slice(2);
  281. return 0==c.length&&0==d.length?0:this.compareArgs(c,d)},compareArgs:function(a,b){var c=a.length-b.length;if(0!=c)return c;for(var c=0,d=a.length;c<d;){var e=c++,e=this.compareArg(a[e],b[e]);if(0!=e)return e}return 0},compareArg:function(a,b){return r.isEnumValue(a)&&r.isEnumValue(b)?this.compare(a,b):a instanceof Array&&null==a.__enum__&&b instanceof Array&&null==b.__enum__?this.compareArgs(a,b):r.compare(a,b)},__class__:Zc});var Yc=function(){this.h={}};g["haxe.ds.IntMap"]=Yc;Yc.__name__=["haxe",
  282. "ds","IntMap"];Yc.__interfaces__=[xd];Yc.prototype={set:function(a,b){this.h[a]=b},get:function(a){return this.h[a]},keys:function(){var a=[],b;for(b in this.h)this.h.hasOwnProperty(b)&&a.push(b|0);return E.iter(a)},__class__:Yc};var Ma=function(){this.h={};this.h.__keys__={}};g["haxe.ds.ObjectMap"]=Ma;Ma.__name__=["haxe","ds","ObjectMap"];Ma.__interfaces__=[xd];Ma.prototype={set:function(a,b){var c=a.__id__||(a.__id__=++Ma.count);this.h[c]=b;this.h.__keys__[c]=a},get:function(a){return this.h[a.__id__]},
  283. remove:function(a){a=a.__id__;if(null==this.h.__keys__[a])return!1;delete this.h[a];delete this.h.__keys__[a];return!0},keys:function(){var a=[],b;for(b in this.h.__keys__)this.h.hasOwnProperty(b)&&a.push(this.h.__keys__[b]);return E.iter(a)},__class__:Ma};var sa=function(){this.h={}};g["haxe.ds.StringMap"]=sa;sa.__name__=["haxe","ds","StringMap"];sa.__interfaces__=[xd];sa.prototype={set:function(a,b){this.h["$"+a]=b},get:function(a){return this.h["$"+a]},exists:function(a){return this.h.hasOwnProperty("$"+
  284. a)},remove:function(a){a="$"+a;if(!this.h.hasOwnProperty(a))return!1;delete this.h[a];return!0},keys:function(){var a=[],b;for(b in this.h)this.h.hasOwnProperty(b)&&a.push(b.substr(1));return E.iter(a)},iterator:function(){return{ref:this.h,it:this.keys(),hasNext:function(){return this.it.hasNext()},next:function(){var a=this.it.next();return this.ref["$"+a]}}},__class__:sa};var Mb=function(){};g["haxe.ds._Vector.Vector_Impl_"]=Mb;Mb.__name__=["haxe","ds","_Vector","Vector_Impl_"];Mb.blit=function(a,
  285. b,c,d,e){for(var f=0;f<e;){var p=f++;c[d+p]=a[b+p]}};var Hf=function(){};g["haxe.io.Eof"]=Hf;Hf.__name__=["haxe","io","Eof"];Hf.prototype={toString:function(){return"Eof"},__class__:Hf};var yb=g["haxe.io.Error"]={__ename__:["haxe","io","Error"],__constructs__:["Blocked","Overflow","OutsideBounds","Custom"]};yb.Blocked=["Blocked",0];yb.Blocked.toString=q;yb.Blocked.__enum__=yb;yb.Overflow=["Overflow",1];yb.Overflow.toString=q;yb.Overflow.__enum__=yb;yb.OutsideBounds=["OutsideBounds",2];yb.OutsideBounds.toString=
  286. q;yb.OutsideBounds.__enum__=yb;yb.Custom=function(a){a=["Custom",3,a];a.__enum__=yb;a.toString=q;return a};var Ec=function(a){var b=a.lastIndexOf("/"),c=a.lastIndexOf("\\");b<c?(this.dir=E.substr(a,0,c),a=E.substr(a,c+1,null),this.backslash=!0):c<b?(this.dir=E.substr(a,0,b),a=E.substr(a,b+1,null)):this.dir=null;b=a.lastIndexOf(".");-1!=b?(this.ext=E.substr(a,b+1,null),this.file=E.substr(a,0,b)):(this.ext=null,this.file=a)};g["haxe.io.Path"]=Ec;Ec.__name__=["haxe","io","Path"];Ec.withoutExtension=
  287. function(a){a=new Ec(a);a.ext=null;return a.toString()};Ec.prototype={toString:function(){return(null==this.dir?"":this.dir+(this.backslash?"\\":"/"))+this.file+(null==this.ext?"":"."+this.ext)},__class__:Ec};var Ke=function(a){this.__x=a};g["haxe.xml._Fast.NodeAccess"]=Ke;Ke.__name__=["haxe","xml","_Fast","NodeAccess"];Ke.prototype={__class__:Ke};var Le=function(a){this.__x=a};g["haxe.xml._Fast.AttribAccess"]=Le;Le.__name__=["haxe","xml","_Fast","AttribAccess"];Le.prototype={resolve:function(a){if(this.__x.nodeType==
  288. J.Document)throw"Cannot access document attribute "+a;var b=this.__x.get(a);if(null==b)throw this.__x.get_nodeName()+" is missing attribute "+a;return b},__class__:Le};var Me=function(a){this.__x=a};g["haxe.xml._Fast.HasAttribAccess"]=Me;Me.__name__=["haxe","xml","_Fast","HasAttribAccess"];Me.prototype={resolve:function(a){if(this.__x.nodeType==J.Document)throw"Cannot access document attribute "+a;return this.__x.exists(a)},__class__:Me};var Ne=function(a){this.__x=a};g["haxe.xml._Fast.HasNodeAccess"]=
  289. Ne;Ne.__name__=["haxe","xml","_Fast","HasNodeAccess"];Ne.prototype={__class__:Ne};var Oe=function(a){this.__x=a};g["haxe.xml._Fast.NodeListAccess"]=Oe;Oe.__name__=["haxe","xml","_Fast","NodeListAccess"];Oe.prototype={resolve:function(a){var b=new Rc;for(a=this.__x.elementsNamed(a);a.hasNext();){var c=a.next();b.add(new zd(c))}return b},__class__:Oe};var zd=function(a){if(a.nodeType!=J.Document&&a.nodeType!=J.Element)throw"Invalid nodeType "+z.string(a.nodeType);this.x=a;this.node=new Ke(a);this.nodes=
  290. new Oe(a);this.att=new Le(a);this.has=new Me(a);this.hasNode=new Ne(a)};g["haxe.xml.Fast"]=zd;zd.__name__=["haxe","xml","Fast"];zd.prototype={__class__:zd};var Zb=function(){};g["haxe.xml.Parser"]=Zb;Zb.__name__=["haxe","xml","Parser"];Zb.parse=function(a){var b=J.createDocument();Zb.doParse(a,0,b);return b};Zb.doParse=function(a,b,c){null==b&&(b=0);for(var d=null,e=1,f=1,p=null,h=0,g=0,l=0,F=a.charCodeAt(b),k=new zc;F==F;){switch(e){case 0:switch(F){case 10:case 13:case 9:case 32:break;default:e=
  291. f;continue}break;case 1:switch(F){case 60:e=0;f=2;break;default:h=b;e=13;continue}break;case 13:60==F?(f=J.createPCData(k.b+E.substr(a,h,b-h)),k=new zc,c.addChild(f),g++,e=0,f=2):38==F&&(k.addSub(a,h,b-h),e=18,f=13,h=b+1);break;case 17:93==F&&93==a.charCodeAt(b+1)&&62==a.charCodeAt(b+2)&&(e=J.createCData(E.substr(a,h,b-h)),c.addChild(e),g++,b+=2,e=1);break;case 2:switch(F){case 33:if(91==a.charCodeAt(b+1)){b+=2;if("CDATA["!=E.substr(a,b,6).toUpperCase())throw"Expected <![CDATA[";b+=5;e=17}else if(68==
  292. a.charCodeAt(b+1)||100==a.charCodeAt(b+1)){if("OCTYPE"!=E.substr(a,b+2,6).toUpperCase())throw"Expected <!DOCTYPE";b+=8;e=16}else{if(45!=a.charCodeAt(b+1)||45!=a.charCodeAt(b+2))throw"Expected \x3c!--";b+=2;e=15}h=b+1;break;case 63:e=14;h=b;break;case 47:if(null==c)throw"Expected node name";h=b+1;e=0;f=10;break;default:e=3;h=b;continue}break;case 3:if(!(97<=F&&122>=F||65<=F&&90>=F||48<=F&&57>=F||58==F||46==F||95==F||45==F)){if(b==h)throw"Expected node name";d=J.createElement(E.substr(a,h,b-h));c.addChild(d);
  293. e=0;f=4;continue}break;case 4:switch(F){case 47:e=11;g++;break;case 62:e=9;g++;break;default:e=5;h=b;continue}break;case 5:if(!(97<=F&&122>=F||65<=F&&90>=F||48<=F&&57>=F||58==F||46==F||95==F||45==F)){if(h==b)throw"Expected attribute name";p=E.substr(a,h,b-h);if(d.exists(p))throw"Duplicate attribute";e=0;f=6;continue}break;case 6:switch(F){case 61:e=0;f=7;break;default:throw"Expected =";}break;case 7:switch(F){case 34:case 39:e=8;h=b;break;default:throw'Expected "';}break;case 8:F==a.charCodeAt(h)&&
  294. (f=E.substr(a,h+1,b-h-1),d.set(p,f),e=0,f=4);break;case 9:h=b=Zb.doParse(a,b,d);e=1;break;case 11:switch(F){case 62:e=1;break;default:throw"Expected >";}break;case 12:switch(F){case 62:return 0==g&&c.addChild(J.createPCData("")),b;default:throw"Expected >";}case 10:if(!(97<=F&&122>=F||65<=F&&90>=F||48<=F&&57>=F||58==F||46==F||95==F||45==F)){if(h==b)throw"Expected node name";if(E.substr(a,h,b-h)!=c.get_nodeName())throw"Expected </"+c.get_nodeName()+">";e=0;f=12;continue}break;case 15:45==F&&45==a.charCodeAt(b+
  295. 1)&&62==a.charCodeAt(b+2)&&(c.addChild(J.createComment(E.substr(a,h,b-h))),b+=2,e=1);break;case 16:91==F?l++:93==F?l--:62==F&&0==l&&(c.addChild(J.createDocType(E.substr(a,h,b-h))),e=1);break;case 14:63==F&&62==a.charCodeAt(b+1)&&(b++,e=E.substr(a,h+1,b-h-2),c.addChild(J.createProcessingInstruction(e)),e=1);break;case 18:59==F&&(h=E.substr(a,h,b-h),35==h.charCodeAt(0)?(h=120==h.charCodeAt(1)?z.parseInt("0"+E.substr(h,1,h.length-1)):z.parseInt(E.substr(h,1,h.length-1)),k.add(String.fromCharCode(h))):
  296. Zb.escapes.exists(h)?k.add(Zb.escapes.get(h)):k.b+=z.string("&"+h+";"),h=b+1,e=f)}F=W.fastCodeAt(a,++b)}1==e&&(h=b,e=13);if(13==e)return b==h&&0!=g||c.addChild(J.createPCData(k.b+E.substr(a,h,b-h))),b;throw"Unexpected end";};var v=function(){};g["js.Boot"]=v;v.__name__=["js","Boot"];v.getClass=function(a){if(a instanceof Array&&null==a.__enum__)return Array;var b=a.__class__;if(null!=b)return b;a=v.__nativeClassName(a);return null!=a?v.__resolveNativeClass(a):null};v.__string_rec=function(a,b){if(null==
  297. a)return"null";if(5<=b.length)return"<...>";var c=typeof a;"function"==c&&(a.__name__||a.__ename__)&&(c="object");switch(c){case "object":if(a instanceof Array){if(a.__enum__){if(2==a.length)return a[0];c=a[0]+"(";b+="\t";for(var d=2,e=a.length;d<e;)var f=d++,c=2!=f?c+(","+v.__string_rec(a[f],b)):c+v.__string_rec(a[f],b);return c+")"}c=a.length;d="[";b+="\t";for(e=0;e<c;)f=e++,d+=(0<f?",":"")+v.__string_rec(a[f],b);return d+"]"}try{d=a.toString}catch(p){return"???"}if(null!=d&&d!=Object.toString&&
  298. "function"==typeof d&&(c=a.toString(),"[object Object]"!=c))return c;c=null;d="{\n";b+="\t";e=null!=a.hasOwnProperty;for(c in a)e&&!a.hasOwnProperty(c)||"prototype"==c||"__class__"==c||"__super__"==c||"__interfaces__"==c||"__properties__"==c||(2!=d.length&&(d+=", \n"),d+=b+c+" : "+v.__string_rec(a[c],b));b=b.substring(1);return d+("\n"+b+"}");case "function":return"<function>";case "string":return a;default:return String(a)}};v.__interfLoop=function(a,b){if(null==a)return!1;if(a==b)return!0;var c=
  299. a.__interfaces__;if(null!=c)for(var d=0,e=c.length;d<e;){var f=d++,f=c[f];if(f==b||v.__interfLoop(f,b))return!0}return v.__interfLoop(a.__super__,b)};v.__instanceof=function(a,b){if(null==b)return!1;switch(b){case kg:return(a|0)===a;case Rf:return"number"==typeof a;case Of:return"boolean"==typeof a;case String:return"string"==typeof a;case Array:return a instanceof Array&&null==a.__enum__;case lg:return!0;default:if(null!=a)if("function"==typeof b){if(a instanceof b||v.__interfLoop(v.getClass(a),
  300. b))return!0}else{if("object"==typeof b&&v.__isNativeObj(b)&&a instanceof b)return!0}else return!1;return b==Sf&&null!=a.__name__||b==mg&&null!=a.__ename__?!0:a.__enum__==b}};v.__cast=function(a,b){if(v.__instanceof(a,b))return a;throw"Cannot cast "+z.string(a)+" to "+z.string(b);};v.__nativeClassName=function(a){a=v.__toStr.call(a).slice(8,-1);return"Object"==a||"Function"==a||"Math"==a||"JSON"==a?null:a};v.__isNativeObj=function(a){return null!=v.__nativeClassName(a)};v.__resolveNativeClass=function(a){return"undefined"!=
  301. typeof window?window[a]:global[a]};var If=function(){};g["js.Browser"]=If;If.__name__=["js","Browser"];If.getLocalStorage=function(){try{var a=window.localStorage;a.getItem("");return a}catch(b){return null}};var Pe=function(){this.enabled=!0;this.audio=new sa;this.font=new sa;this.image=new sa};g["lime.AssetCache"]=Pe;Pe.__name__=["lime","AssetCache"];Pe.prototype={clear:function(a){if(null==a)this.audio=new sa,this.font=new sa,this.image=new sa;else{for(var b=this.audio.keys();b.hasNext();){var c=
  302. b.next();W.startsWith(c,a)&&this.audio.remove(c)}for(b=this.font.keys();b.hasNext();)c=b.next(),W.startsWith(c,a)&&this.font.remove(c);for(b=this.image.keys();b.hasNext();)c=b.next(),W.startsWith(c,a)&&this.image.remove(c)}},__class__:Pe};var P=function(){};g["lime.Assets"]=P;P.__name__=["lime","Assets"];P.exists=function(a,b){P.initialize();null==b&&(b="BINARY");var c=a.substring(0,a.indexOf(":")),d;d=a.indexOf(":")+1;d=E.substr(a,d,null);c=P.getLibrary(c);return null!=c?c.exists(d,b):!1};P.getFont=
  303. function(a,b){null==b&&(b=!0);P.initialize();if(b&&P.cache.enabled&&P.cache.font.exists(a))return P.cache.font.get(a);var c=a.substring(0,a.indexOf(":")),d;d=a.indexOf(":")+1;d=E.substr(a,d,null);var e=P.getLibrary(c);if(null!=e)if(e.exists(d,"FONT")){if(e.isLocal(d,"FONT"))return c=e.getFont(d),b&&P.cache.enabled&&P.cache.font.set(a,c),c;console.log('[Assets] Font asset "'+a+'" exists, but only asynchronously')}else console.log('[Assets] There is no Font asset with an ID of "'+a+'"');else console.log('[Assets] There is no asset library named "'+
  304. c+'"');return null};P.getImage=function(a,b){null==b&&(b=!0);P.initialize();if(b&&P.cache.enabled&&P.cache.image.exists(a)){var c=P.cache.image.get(a);if(P.isValidImage(c))return c}var c=a.substring(0,a.indexOf(":")),d;d=a.indexOf(":")+1;d=E.substr(a,d,null);var e=P.getLibrary(c);if(null!=e)if(e.exists(d,"IMAGE")){if(e.isLocal(d,"IMAGE"))return c=e.getImage(d),b&&P.cache.enabled&&P.cache.image.set(a,c),c;console.log('[Assets] Image asset "'+a+'" exists, but only asynchronously')}else console.log('[Assets] There is no Image asset with an ID of "'+
  305. a+'"');else console.log('[Assets] There is no asset library named "'+c+'"');return null};P.getLibrary=function(a){if(null==a||""==a)a="default";return P.libraries.get(a)};P.getPath=function(a){P.initialize();var b=a.substring(0,a.indexOf(":")),c;c=a.indexOf(":")+1;c=E.substr(a,c,null);var d=P.getLibrary(b);if(null!=d){if(d.exists(c,null))return d.getPath(c);console.log('[Assets] There is no asset with an ID of "'+a+'"')}else console.log('[Assets] There is no asset library named "'+b+'"');return null};
  306. P.getText=function(a){P.initialize();var b=a.substring(0,a.indexOf(":")),c;c=a.indexOf(":")+1;c=E.substr(a,c,null);var d=P.getLibrary(b);if(null!=d)if(d.exists(c,"TEXT")){if(d.isLocal(c,"TEXT"))return d.getText(c);console.log('[Assets] String asset "'+a+'" exists, but only asynchronously')}else console.log('[Assets] There is no String asset with an ID of "'+a+'"');else console.log('[Assets] There is no asset library named "'+b+'"');return null};P.initialize=function(){P.initialized||(P.registerLibrary("default",
  307. new wd),P.initialized=!0)};P.isValidImage=function(a){return!0};P.registerLibrary=function(a,b){P.libraries.exists(a)&&P.unloadLibrary(a);null!=b&&(b.eventCallback=P.library_onEvent);P.libraries.set(a,b)};P.unloadLibrary=function(a){P.initialize();var b=P.libraries.get(a);null!=b&&(P.cache.clear(a+":"),b.eventCallback=null);P.libraries.remove(a)};P.library_onEvent=function(a,b){"change"==b&&P.cache.clear()};var Qe=function(a){this.parent=a;uc.init()};g["lime._backend.html5.HTML5Application"]=Qe;Qe.__name__=
  308. ["lime","_backend","html5","HTML5Application"];Qe.prototype={convertKeyCode:function(a){if(65<=a&&90>=a)return a+32;switch(a){case 16:return 1073742049;case 17:return 1073742048;case 18:return 1073742050;case 20:return 1073741881;case 144:return 1073741907;case 37:return 1073741904;case 38:return 1073741906;case 39:return 1073741903;case 40:return 1073741905;case 45:return 1073741897;case 46:return 127;case 36:return 1073741898;case 35:return 1073741901;case 33:return 1073741899;case 34:return 1073741902;
  309. case 112:return 1073741882;case 113:return 1073741883;case 114:return 1073741884;case 115:return 1073741885;case 116:return 1073741886;case 117:return 1073741887;case 118:return 1073741888;case 119:return 1073741889;case 120:return 1073741890;case 121:return 1073741891;case 122:return 1073741892;case 123:return 1073741893}return a},create:function(a){this.parent.config=a;if(null!=a){a=new Re(a);var b=new Se(a);this.parent.addWindow(a);this.parent.addRenderer(b);this.parent.init(b.context)}},exec:function(){window.addEventListener("keydown",
  310. n(this,this.handleKeyEvent),!1);window.addEventListener("keyup",n(this,this.handleKeyEvent),!1);window.addEventListener("focus",n(this,this.handleWindowEvent),!1);window.addEventListener("blur",n(this,this.handleWindowEvent),!1);window.addEventListener("resize",n(this,this.handleWindowEvent),!1);window.addEventListener("beforeunload",n(this,this.handleWindowEvent),!1);for(var a=0,b=["ms","moz","webkit","o"],c=0;c<b.length&&!window.requestAnimationFrame;++c)window.requestAnimationFrame=window[b[c]+
  311. "RequestAnimationFrame"],window.cancelAnimationFrame=window[b[c]+"CancelAnimationFrame"]||window[b[c]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(b,c){var f=(new Date).getTime(),p=Math.max(0,16-(f-a)),h=window.setTimeout(function(){b(f+p)},p);a=f+p;return h});window.cancelAnimationFrame||(window.cancelAnimationFrame=function(a){clearTimeout(a)});window.requestAnimFrame=window.requestAnimationFrame;this.cacheTime=(new Date).getTime();this.handleUpdateEvent();
  312. return 0},handleKeyEvent:function(a){if(null!=this.parent.windows[0]){switch(a.keyCode){case 32:case 37:case 38:case 39:case 40:a.preventDefault()}var b=this.convertKeyCode(null!=a.keyCode?a.keyCode:a.which),c;c=(a.shiftKey?3:0)|(a.ctrlKey?192:0)|(a.altKey?768:0)|(a.metaKey?3072:0);if("keydown"==a.type){a=this.parent.windows[0].onKeyDown.listeners;for(var d=this.parent.windows[0].onKeyDown.repeat,e=a.length,f=0;f<e;)a[f](b,c),d[f]?f++:(this.parent.windows[0].onKeyDown.remove(a[f]),e--)}else for(a=
  313. this.parent.windows[0].onKeyUp.listeners,d=this.parent.windows[0].onKeyUp.repeat,e=a.length,f=0;f<e;)a[f](b,c),d[f]?f++:(this.parent.windows[0].onKeyUp.remove(a[f]),e--)}},handleUpdateEvent:function(a){var b=(new Date).getTime();a=b-this.cacheTime;this.cacheTime=b;for(var b=this.parent.onUpdate.listeners,c=this.parent.onUpdate.repeat,d=b.length,e=0;e<d;)b[e](a|0),c[e]?e++:(this.parent.onUpdate.remove(b[e]),d--);if(null!=this.parent.renderers[0]){a=this.parent.renderers[0].onRender.listeners;b=this.parent.renderers[0].onRender.repeat;
  314. c=a.length;for(d=0;d<c;)a[d](this.parent.renderers[0].context),b[d]?d++:(this.parent.renderers[0].onRender.remove(a[d]),c--);this.parent.renderers[0].flip()}window.requestAnimationFrame(n(this,this.handleUpdateEvent))},handleWindowEvent:function(a){if(null!=this.parent.windows[0])switch(a.type){case "focus":a=this.parent.windows[0].onWindowFocusIn.listeners;for(var b=this.parent.windows[0].onWindowFocusIn.repeat,c=a.length,d=0;d<c;)a[d](),b[d]?d++:(this.parent.windows[0].onWindowFocusIn.remove(a[d]),
  315. c--);a=this.parent.windows[0].onWindowActivate.listeners;b=this.parent.windows[0].onWindowActivate.repeat;c=a.length;for(d=0;d<c;)a[d](),b[d]?d++:(this.parent.windows[0].onWindowActivate.remove(a[d]),c--);break;case "blur":a=this.parent.windows[0].onWindowFocusOut.listeners;b=this.parent.windows[0].onWindowFocusOut.repeat;c=a.length;for(d=0;d<c;)a[d](),b[d]?d++:(this.parent.windows[0].onWindowFocusOut.remove(a[d]),c--);a=this.parent.windows[0].onWindowDeactivate.listeners;b=this.parent.windows[0].onWindowDeactivate.repeat;
  316. c=a.length;for(d=0;d<c;)a[d](),b[d]?d++:(this.parent.windows[0].onWindowDeactivate.remove(a[d]),c--);break;case "resize":a=this.parent.windows[0].__width;b=this.parent.windows[0].__height;this.parent.windows[0].backend.handleResize();if(this.parent.windows[0].__width!=a||this.parent.windows[0].__height!=b)for(a=this.parent.windows[0].onWindowResize.listeners,b=this.parent.windows[0].onWindowResize.repeat,c=a.length,d=0;d<c;)a[d](this.parent.windows[0].__width,this.parent.windows[0].__height),b[d]?
  317. d++:(this.parent.windows[0].onWindowResize.remove(a[d]),c--);break;case "beforeunload":for(a=this.parent.windows[0].onWindowClose.listeners,b=this.parent.windows[0].onWindowClose.repeat,c=a.length,d=0;d<c;)a[d](),b[d]?d++:(this.parent.windows[0].onWindowClose.remove(a[d]),c--)}},__class__:Qe};var cc=function(){};g["lime._backend.html5.HTML5Mouse"]=cc;cc.__name__=["lime","_backend","html5","HTML5Mouse"];cc.__cursor=null;cc.__hidden=null;cc.set_cursor=function(a){if(cc.__cursor!=a){if(!cc.__hidden)for(var b=
  318. 0,c=ib.current.windows;b<c.length;){var d=c[b];++b;switch(a[1]){case 0:d.backend.element.style.cursor="default";break;case 1:d.backend.element.style.cursor="crosshair";break;case 3:d.backend.element.style.cursor="move";break;case 4:d.backend.element.style.cursor="pointer";break;case 5:d.backend.element.style.cursor="nesw-resize";break;case 6:d.backend.element.style.cursor="ns-resize";break;case 7:d.backend.element.style.cursor="nwse-resize";break;case 8:d.backend.element.style.cursor="ew-resize";
  319. break;case 9:d.backend.element.style.cursor="text";break;case 10:d.backend.element.style.cursor="wait";break;case 11:d.backend.element.style.cursor="wait";break;default:d.backend.element.style.cursor="auto"}}cc.__cursor=a}return cc.__cursor};var Te=function(a){this.parent=a};g["lime._backend.html5.HTML5Renderer"]=Te;Te.__name__=["lime","_backend","html5","HTML5Renderer"];Te.prototype={create:function(){this.createContext();switch(this.parent.context[1]){case 0:this.parent.window.backend.canvas.addEventListener("webglcontextlost",
  320. n(this,this.handleEvent),!1),this.parent.window.backend.canvas.addEventListener("webglcontextrestored",n(this,this.handleEvent),!1)}},createContext:function(){null!=this.parent.window.backend.div?this.parent.context=Nb.DOM(this.parent.window.backend.div):null!=this.parent.window.backend.canvas&&(this.parent.context=Nb.CANVAS(this.parent.window.backend.canvas.getContext("2d")))},flip:function(){},handleEvent:function(a){switch(a.type){case "webglcontextlost":a.preventDefault();this.parent.context=
  321. null;a=this.parent.onRenderContextLost.listeners;for(var b=this.parent.onRenderContextLost.repeat,c=a.length,d=0;d<c;)a[d](),b[d]?d++:(this.parent.onRenderContextLost.remove(a[d]),c--);break;case "webglcontextrestored":for(this.createContext(),a=this.parent.onRenderContextRestored.listeners,b=this.parent.onRenderContextRestored.repeat,c=a.length,d=0;d<c;)a[d](this.parent.context),b[d]?d++:(this.parent.onRenderContextRestored.remove(a[d]),c--)}},__class__:Te};var $c=function(a){$c.instance=this;this.parent=
  322. a;null!=a.config&&Object.prototype.hasOwnProperty.call(a.config,"element")&&(this.element=a.config.element)};g["lime._backend.html5.HTML5Window"]=$c;$c.__name__=["lime","_backend","html5","HTML5Window"];$c.instance=null;$c.prototype={create:function(a){this.setWidth=this.parent.__width;this.setHeight=this.parent.__height;v.__instanceof(this.element,HTMLCanvasElement)?this.canvas=this.element:this.canvas=window.document.createElement("canvas");null!=this.canvas?(a=this.canvas.style,a.setProperty("-webkit-transform",
  323. "translateZ(0)",null),a.setProperty("transform","translateZ(0)",null)):null!=this.div&&(a=this.div.style,a.setProperty("-webkit-transform","translate3D(0,0,0)",null),a.setProperty("transform","translate3D(0,0,0)",null),a.position="relative",a.overflow="hidden",a.setProperty("-webkit-user-select","none",null),a.setProperty("-moz-user-select","none",null),a.setProperty("-ms-user-select","none",null),a.setProperty("-o-user-select","none",null));0==this.parent.__width&&0==this.parent.__height&&(null!=
  324. this.element?(this.parent.set_width(this.element.clientWidth),this.parent.set_height(this.element.clientHeight)):(this.parent.set_width(window.innerWidth),this.parent.set_height(window.innerHeight)),this.parent.set_fullscreen(!0));null!=this.canvas?(this.canvas.width=this.parent.__width,this.canvas.height=this.parent.__height):(this.div.style.width=this.parent.__width+"px",this.div.style.height=this.parent.__height+"px");this.handleResize();if(null!=this.element){null!=this.canvas?this.element!=this.canvas&&
  325. this.element.appendChild(this.canvas):this.element.appendChild(this.div);a=["mousedown","mousemove","mouseup","wheel"];for(var b=0;b<a.length;){var c=a[b];++b;this.element.addEventListener(c,n(this,this.handleMouseEvent),!0)}window.document.addEventListener("dragstart",function(a){return"img"==a.target.nodeName.toLowerCase()?(a.preventDefault(),!1):!0},!1);this.element.addEventListener("touchstart",n(this,this.handleTouchEvent),!0);this.element.addEventListener("touchmove",n(this,this.handleTouchEvent),
  326. !0);this.element.addEventListener("touchend",n(this,this.handleTouchEvent),!0)}},handleMouseEvent:function(a){var b=0,c=0;if("wheel"!=a.type)switch(null!=this.element?null!=this.canvas?(c=this.canvas.getBoundingClientRect(),b=this.parent.__width/c.width*(a.clientX-c.left),c=this.parent.__height/c.height*(a.clientY-c.top)):null!=this.div?(c=this.div.getBoundingClientRect(),b=a.clientX-c.left,c=a.clientY-c.top):(c=this.element.getBoundingClientRect(),b=this.parent.__width/c.width*(a.clientX-c.left),
  327. c=this.parent.__height/c.height*(a.clientY-c.top)):(b=a.clientX,c=a.clientY),a.type){case "mousedown":for(var d=this.parent.onMouseDown.listeners,e=this.parent.onMouseDown.repeat,f=d.length,p=0;p<f;)d[p](b,c,a.button),e[p]?p++:(this.parent.onMouseDown.remove(d[p]),f--);break;case "mouseup":d=this.parent.onMouseUp.listeners;e=this.parent.onMouseUp.repeat;f=d.length;for(p=0;p<f;)d[p](b,c,a.button),e[p]?p++:(this.parent.onMouseUp.remove(d[p]),f--);break;case "mousemove":for(d=this.parent.onMouseMove.listeners,
  328. e=this.parent.onMouseMove.repeat,f=d.length,p=0;p<f;)d[p](b,c,a.button),e[p]?p++:(this.parent.onMouseMove.remove(d[p]),f--)}else for(b=this.parent.onMouseWheel.listeners,c=this.parent.onMouseWheel.repeat,d=b.length,e=0;e<d;)b[e](a.deltaX,-a.deltaY),c[e]?e++:(this.parent.onMouseWheel.remove(b[e]),d--)},handleResize:function(){var a=this.parent.__fullscreen||0==this.setWidth&&0==this.setHeight;if(null!=this.element&&(null==this.div||null!=this.div&&a))if(a){if(this.parent.__width!=this.element.clientWidth||
  329. this.parent.__height!=this.element.clientHeight)this.parent.set_width(this.element.clientWidth),this.parent.set_height(this.element.clientHeight),null!=this.canvas?this.element!=this.canvas&&(this.canvas.width=this.element.clientWidth,this.canvas.height=this.element.clientHeight):(this.div.style.width=this.element.clientWidth+"px",this.div.style.height=this.element.clientHeight+"px")}else a=Math.min(this.element.clientWidth/this.setWidth,this.element.clientHeight/this.setHeight),null!=this.canvas?
  330. this.element!=this.canvas&&(this.canvas.style.width=this.setWidth*a+"px",this.canvas.style.height=this.setHeight*a+"px",this.canvas.style.marginLeft=(this.element.clientWidth-this.setWidth*a)/2+"px",this.canvas.style.marginTop=(this.element.clientHeight-this.setHeight*a)/2+"px"):(this.div.style.width=this.setWidth*a+"px",this.div.style.height=this.setHeight*a+"px",this.div.style.marginLeft=(this.element.clientWidth-this.setWidth*a)/2+"px",this.div.style.marginTop=(this.element.clientHeight-this.setHeight*
  331. a)/2+"px")},handleTouchEvent:function(a){a.preventDefault();var b=a.changedTouches[0],c=b.identifier,d=0,e=0;null!=this.element?null!=this.canvas?(e=this.canvas.getBoundingClientRect(),d=this.parent.__width/e.width*(b.clientX-e.left),e=this.parent.__height/e.height*(b.clientY-e.top)):null!=this.div?(e=this.div.getBoundingClientRect(),d=b.clientX-e.left,e=b.clientY-e.top):(e=this.element.getBoundingClientRect(),d=this.parent.__width/e.width*(b.clientX-e.left),e=this.parent.__height/e.height*(b.clientY-
  332. e.top)):(d=b.clientX,e=b.clientY);switch(a.type){case "touchstart":a=this.parent.onTouchStart.listeners;for(var b=this.parent.onTouchStart.repeat,f=a.length,p=0;p<f;)a[p](d,e,c),b[p]?p++:(this.parent.onTouchStart.remove(a[p]),f--);break;case "touchmove":a=this.parent.onTouchMove.listeners;b=this.parent.onTouchMove.repeat;f=a.length;for(p=0;p<f;)a[p](d,e,c),b[p]?p++:(this.parent.onTouchMove.remove(a[p]),f--);break;case "touchend":for(a=this.parent.onTouchEnd.listeners,b=this.parent.onTouchEnd.repeat,
  333. f=a.length,p=0;p<f;)a[p](d,e,c),b[p]?p++:(this.parent.onTouchEnd.remove(a[p]),f--)}},resize:function(a,b){},setFullscreen:function(a){return!1},__class__:$c};var Ue=function(){};g["lime.app.IModule"]=Ue;Ue.__name__=["lime","app","IModule"];Ue.prototype={__class__:Ue};var ad=function(){};g["lime.app.Module"]=ad;ad.__name__=["lime","app","Module"];ad.__interfaces__=[Ue];ad.prototype={init:function(a){},onGamepadAxisMove:function(a,b,c){},onGamepadButtonDown:function(a,b){},onGamepadButtonUp:function(a,
  334. b){},onGamepadConnect:function(a){},onGamepadDisconnect:function(a){},onKeyDown:function(a,b){},onKeyUp:function(a,b){},onMouseDown:function(a,b,c){},onMouseMove:function(a,b,c){},onMouseUp:function(a,b,c){},onMouseWheel:function(a,b){},onRenderContextLost:function(){},onRenderContextRestored:function(a){},onTouchEnd:function(a,b,c){},onTouchMove:function(a,b,c){},onTouchStart:function(a,b,c){},onWindowActivate:function(){},onWindowClose:function(){},onWindowDeactivate:function(){},onWindowFocusIn:function(){},
  335. onWindowFocusOut:function(){},onWindowFullscreen:function(){},onWindowMinimize:function(){},onWindowMove:function(a,b){},onWindowResize:function(a,b){},onWindowRestore:function(){},render:function(a){},update:function(a){},__class__:ad};var ib=function(){this.onUpdate=new Y;null==ib.current&&(ib.current=this);this.modules=[];this.renderers=[];this.windows=[];this.backend=new Qe(this);this.onUpdate.add(n(this,this.update))};g["lime.app.Application"]=ib;ib.__name__=["lime","app","Application"];ib.current=
  336. null;ib.__super__=ad;ib.prototype=t(ad.prototype,{addRenderer:function(a){a.onRender.add(n(this,this.render));a.onRenderContextLost.add(n(this,this.onRenderContextLost));a.onRenderContextRestored.add(n(this,this.onRenderContextRestored));this.renderers.push(a)},addWindow:function(a){this.windows.push(a);a.onGamepadAxisMove.add(n(this,this.onGamepadAxisMove));a.onGamepadButtonDown.add(n(this,this.onGamepadButtonDown));a.onGamepadButtonUp.add(n(this,this.onGamepadButtonUp));a.onGamepadConnect.add(n(this,
  337. this.onGamepadConnect));a.onGamepadDisconnect.add(n(this,this.onGamepadDisconnect));a.onKeyDown.add(n(this,this.onKeyDown));a.onKeyUp.add(n(this,this.onKeyUp));a.onMouseDown.add(n(this,this.onMouseDown));a.onMouseMove.add(n(this,this.onMouseMove));a.onMouseUp.add(n(this,this.onMouseUp));a.onMouseWheel.add(n(this,this.onMouseWheel));a.onTouchStart.add(n(this,this.onTouchStart));a.onTouchMove.add(n(this,this.onTouchMove));a.onTouchEnd.add(n(this,this.onTouchEnd));a.onWindowActivate.add(n(this,this.onWindowActivate));
  338. a.onWindowClose.add(n(this,this.onWindowClose));a.onWindowDeactivate.add(n(this,this.onWindowDeactivate));a.onWindowFocusIn.add(n(this,this.onWindowFocusIn));a.onWindowFocusOut.add(n(this,this.onWindowFocusOut));a.onWindowFullscreen.add(n(this,this.onWindowFullscreen));a.onWindowMinimize.add(n(this,this.onWindowMinimize));a.onWindowMove.add(n(this,this.onWindowMove));a.onWindowResize.add(n(this,this.onWindowResize));a.onWindowRestore.add(n(this,this.onWindowRestore));a.create(this)},create:function(a){this.backend.create(a)},
  339. exec:function(){ib.current=this;return this.backend.exec()},init:function(a){for(var b=0,c=this.modules;b<c.length;){var d=c[b];++b;d.init(a)}this.initialized=!0},onGamepadAxisMove:function(a,b,c){for(var d=0,e=this.modules;d<e.length;){var f=e[d];++d;f.onGamepadAxisMove(a,b,c)}},onGamepadButtonDown:function(a,b){for(var c=0,d=this.modules;c<d.length;){var e=d[c];++c;e.onGamepadButtonDown(a,b)}},onGamepadButtonUp:function(a,b){for(var c=0,d=this.modules;c<d.length;){var e=d[c];++c;e.onGamepadButtonUp(a,
  340. b)}},onGamepadConnect:function(a){for(var b=0,c=this.modules;b<c.length;){var d=c[b];++b;d.onGamepadConnect(a)}},onGamepadDisconnect:function(a){for(var b=0,c=this.modules;b<c.length;){var d=c[b];++b;d.onGamepadDisconnect(a)}},onKeyDown:function(a,b){for(var c=0,d=this.modules;c<d.length;){var e=d[c];++c;e.onKeyDown(a,b)}},onKeyUp:function(a,b){for(var c=0,d=this.modules;c<d.length;){var e=d[c];++c;e.onKeyUp(a,b)}},onMouseDown:function(a,b,c){for(var d=0,e=this.modules;d<e.length;){var f=e[d];++d;
  341. f.onMouseDown(a,b,c)}},onMouseMove:function(a,b,c){for(var d=0,e=this.modules;d<e.length;){var f=e[d];++d;f.onMouseMove(a,b,c)}},onMouseUp:function(a,b,c){for(var d=0,e=this.modules;d<e.length;){var f=e[d];++d;f.onMouseUp(a,b,c)}},onMouseWheel:function(a,b){for(var c=0,d=this.modules;c<d.length;){var e=d[c];++c;e.onMouseWheel(a,b)}},onRenderContextLost:function(){for(var a=0,b=this.modules;a<b.length;){var c=b[a];++a;c.onRenderContextLost()}},onRenderContextRestored:function(a){for(var b=0,c=this.modules;b<
  342. c.length;){var d=c[b];++b;d.onRenderContextRestored(a)}},onTouchEnd:function(a,b,c){for(var d=0,e=this.modules;d<e.length;){var f=e[d];++d;f.onTouchEnd(a,b,c)}},onTouchMove:function(a,b,c){for(var d=0,e=this.modules;d<e.length;){var f=e[d];++d;f.onTouchMove(a,b,c)}},onTouchStart:function(a,b,c){for(var d=0,e=this.modules;d<e.length;){var f=e[d];++d;f.onTouchStart(a,b,c)}},onWindowActivate:function(){for(var a=0,b=this.modules;a<b.length;){var c=b[a];++a;c.onWindowActivate()}},onWindowClose:function(){for(var a=
  343. 0,b=this.modules;a<b.length;){var c=b[a];++a;c.onWindowClose()}},onWindowDeactivate:function(){for(var a=0,b=this.modules;a<b.length;){var c=b[a];++a;c.onWindowDeactivate()}},onWindowFocusIn:function(){for(var a=0,b=this.modules;a<b.length;){var c=b[a];++a;c.onWindowFocusIn()}},onWindowFocusOut:function(){for(var a=0,b=this.modules;a<b.length;){var c=b[a];++a;c.onWindowFocusOut()}},onWindowFullscreen:function(){for(var a=0,b=this.modules;a<b.length;){var c=b[a];++a;c.onWindowFullscreen()}},onWindowMinimize:function(){for(var a=
  344. 0,b=this.modules;a<b.length;){var c=b[a];++a;c.onWindowMinimize()}},onWindowMove:function(a,b){for(var c=0,d=this.modules;c<d.length;){var e=d[c];++c;e.onWindowMove(a,b)}},onWindowResize:function(a,b){for(var c=0,d=this.modules;c<d.length;){var e=d[c];++c;e.onWindowResize(a,b)}},onWindowRestore:function(){for(var a=0,b=this.modules;a<b.length;){var c=b[a];++a;c.onWindowRestore()}},render:function(a){for(var b=0,c=this.modules;b<c.length;){var d=c[b];++b;d.render(a)}},update:function(a){for(var b=
  345. 0,c=this.modules;b<c.length;){var d=c[b];++b;d.update(a)}},__class__:ib});var Y=function(){this.listeners=[];this.priorities=[];this.repeat=[]};g["lime.app.Event"]=Y;Y.__name__=["lime","app","Event"];Y.prototype={add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.priorities.length;d<e;){var f=d++;if(c>this.priorities[f]){this.listeners.splice(f,0,a);this.priorities.splice(f,0,c);this.repeat.splice(f,0,!b);return}}this.listeners.push(a);this.priorities.push(c);this.repeat.push(!b)},
  346. remove:function(a){a=E.indexOf(this.listeners,a,0);-1<a&&(this.listeners.splice(a,1),this.priorities.splice(a,1),this.repeat.splice(a,1))},__class__:Y};var za=function(){this.loaded=this.total=0};g["lime.app.Preloader"]=za;za.__name__=["lime","app","Preloader"];za.prototype={create:function(a){},load:function(a,b){for(var c=null,d=0,e=a.length;d<e;){var f=d++,c=a[f];switch(b[f]){case "IMAGE":f=new Image;za.images.set(c,f);f.onload=n(this,this.image_onLoad);f.src=c;this.total++;break;case "BINARY":f=
  347. new Gd;f.set_dataFormat(zb.BINARY);za.loaders.set(c,f);this.total++;break;case "TEXT":f=new Gd;za.loaders.set(c,f);this.total++;break;case "FONT":this.total++,this.loadFont(c)}}for(c=za.loaders.keys();c.hasNext();)d=c.next(),e=za.loaders.get(d),e.onComplete.add(n(this,this.loader_onComplete)),e.load(new Ve(d));0==this.total&&this.start()},loadFont:function(a){var b=this;if(window.document.fonts&&window.document.fonts.load)window.document.fonts.load("1em '"+a+"'").then(function(a){b.loaded++;b.update(b.loaded,
  348. b.total);b.loaded==b.total&&b.start()});else{var c=window.document.createElement("span");c.innerHTML="giItT1WQy@!-/#";var d=c.style;d.position="absolute";d.left="-10000px";d.top="-10000px";d.fontSize="300px";d.fontFamily="sans-serif";d.fontVariant="normal";d.fontStyle="normal";d.fontWeight="normal";d.letterSpacing="0";window.document.body.appendChild(c);var e=c.offsetWidth;d.fontFamily="'"+a+"', sans-serif";var f=null,p=!1;a=function(){if(c.offsetWidth!=e){if(!p)return p=!0,!1;b.loaded++;null!=f&&
  349. window.clearInterval(f);c.parentNode.removeChild(c);c=null;b.update(b.loaded,b.total);b.loaded==b.total&&b.start();return!0}return!1};a()||(f=window.setInterval(a,50))}},start:function(){if(null!=this.onComplete)this.onComplete()},update:function(a,b){},image_onLoad:function(a){this.loaded++;this.update(this.loaded,this.total);this.loaded==this.total&&this.start()},loader_onComplete:function(a){this.loaded++;this.update(this.loaded,this.total);this.loaded==this.total&&this.start()},__class__:za};
  350. var Tf=function(){};g["lime.audio.ALAudioContext"]=Tf;Tf.__name__=["lime","audio","ALAudioContext"];var Uf=function(){};g["lime.audio.ALCAudioContext"]=Uf;Uf.__name__=["lime","audio","ALCAudioContext"];var Vf=function(){};g["lime.audio.AudioBuffer"]=Vf;Vf.__name__=["lime","audio","AudioBuffer"];var Na=g["lime.audio.AudioContext"]={__ename__:["lime","audio","AudioContext"],__constructs__:["OPENAL","HTML5","WEB","FLASH","CUSTOM"]};Na.OPENAL=function(a,b){var c=["OPENAL",0,a,b];c.__enum__=Na;c.toString=
  351. q;return c};Na.HTML5=function(a){a=["HTML5",1,a];a.__enum__=Na;a.toString=q;return a};Na.WEB=function(a){a=["WEB",2,a];a.__enum__=Na;a.toString=q;return a};Na.FLASH=function(a){a=["FLASH",3,a];a.__enum__=Na;a.toString=q;return a};Na.CUSTOM=function(a){a=["CUSTOM",4,a];a.__enum__=Na;a.toString=q;return a};var uc=function(){};g["lime.audio.AudioManager"]=uc;uc.__name__=["lime","audio","AudioManager"];uc.context=null;uc.init=function(a){if(null==uc.context)if(null==a)try{window.AudioContext=window.AudioContext||
  352. window.webkitAudioContext,uc.context=Na.WEB(new AudioContext)}catch(b){uc.context=Na.HTML5(new We)}else uc.context=a};var Wf=function(){};g["lime.audio.FlashAudioContext"]=Wf;Wf.__name__=["lime","audio","FlashAudioContext"];var We=function(){};g["lime.audio.HTML5AudioContext"]=We;We.__name__=["lime","audio","HTML5AudioContext"];We.prototype={__class__:We};var Xf=function(){};g["lime.graphics.ConsoleRenderContext"]=Xf;Xf.__name__=["lime","graphics","ConsoleRenderContext"];var Yf=function(){};g["lime.graphics.FlashRenderContext"]=
  353. Yf;Yf.__name__=["lime","graphics","FlashRenderContext"];var bd=function(a){Ga.call(this,a)};g["lime.graphics.Font"]=bd;bd.__name__=["lime","graphics","Font"];bd.__super__=Ga;bd.prototype=t(Ga.prototype,{get_fontName:function(){return this.name},__class__:bd,__properties__:{get_fontName:"get_fontName"}});var Ha=function(a,b,c,d,e,f,p){null==e&&(e=-1);null==d&&(d=-1);null==c&&(c=0);null==b&&(b=0);this.offsetX=b;this.offsetY=c;this.width=d;this.height=e;if(null==p)if(null!=ib.current&&null!=ib.current.renderers[0])switch(ib.current.renderers[0].context[1]){case 2:case 1:this.type=
  354. Oa.CANVAS;break;case 3:this.type=Oa.FLASH;break;default:this.type=Oa.DATA}else this.type=Oa.DATA;else this.type=p;if(null==a){if(0<d&&0<e)switch(this.type[1]){case 0:this.buffer=new vc(null,d,e);va.createCanvas(this,d,e);null!=f&&this.fillRect(new Hd(0,0,d,e),f);break;case 1:this.buffer=new vc(new Uint8Array(d*e*4),d,e),null!=f&&this.fillRect(new Hd(0,0,d,e),f)}}else this.__fromImageBuffer(a)};g["lime.graphics.Image"]=Ha;Ha.__name__=["lime","graphics","Image"];Ha.fromBase64=function(a,b,c){var d=
  355. new Ha;d.__fromBase64(a,b,c);return d};Ha.fromImageElement=function(a){var b=new vc(null,a.width,a.height);b.set_src(a);return new Ha(b)};Ha.prototype={clone:function(){return new Ha(this.buffer.clone(),this.offsetX,this.offsetY,this.width,this.height,null,this.type)},fillRect:function(a,b){a=this.__clipRect(a);if(null!=this.buffer&&null!=a)switch(this.type[1]){case 0:va.fillRect(this,a,b);break;case 1:va.convertToData(this);Da.fillRect(this,a,b);break;case 2:a.offset(this.offsetX,this.offsetY),this.buffer.__srcBitmapData.fillRect(a.__toFlashRectangle(),
  356. b)}},__clipRect:function(a){return null==a||0>a.x&&(a.width-=-a.x,a.x=0,0>=a.x+a.width)||0>a.y&&(a.height-=-a.y,a.y=0,0>=a.y+a.height)||a.x+a.width>=this.width&&(a.width-=a.x+a.width-this.width,0>=a.width)||a.y+a.height>=this.height&&(a.height-=a.y+a.height-this.height,0>=a.height)?null:a},__fromBase64:function(a,b,c){var d=this,e=new Image;e.addEventListener("load",function(a){d.buffer=new vc(null,e.width,e.height);d.buffer.__srcImage=e;d.offsetX=0;d.offsetY=0;d.width=d.buffer.width;d.height=d.buffer.height;
  357. null!=c&&c(d)},!1);e.src="data:"+b+";base64,"+a},__fromImageBuffer:function(a){this.buffer=a;null!=a&&(-1==this.width&&(this.width=a.width),-1==this.height&&(this.height=a.height))},get_data:function(){null==this.buffer.data&&0<this.buffer.width&&0<this.buffer.height&&(va.convertToCanvas(this),va.sync(this),va.createImageData(this));return this.buffer.data},get_powerOfTwo:function(){return 0!=this.buffer.width&&(this.buffer.width&~this.buffer.width+1)==this.buffer.width&&0!=this.buffer.height&&(this.buffer.height&
  358. ~this.buffer.height+1)==this.buffer.height},set_premultiplied:function(a){if(a&&!this.buffer.premultiplied)switch(this.type[1]){case 1:va.convertToData(this),Da.multiplyAlpha(this)}else if(!a&&this.buffer.premultiplied)switch(this.type[1]){case 1:va.convertToData(this),Da.unmultiplyAlpha(this)}return a},get_src:function(){return this.buffer.get_src()},get_transparent:function(){return this.buffer.transparent},set_transparent:function(a){return this.buffer.transparent=a},__class__:Ha,__properties__:{set_transparent:"set_transparent",
  359. get_transparent:"get_transparent",get_src:"get_src",set_premultiplied:"set_premultiplied",get_powerOfTwo:"get_powerOfTwo",get_data:"get_data"}};var vc=function(a,b,c,d){null==d&&(d=4);null==c&&(c=0);null==b&&(b=0);this.data=a;this.width=b;this.height=c;this.bitsPerPixel=d;this.transparent=!0};g["lime.graphics.ImageBuffer"]=vc;vc.__name__=["lime","graphics","ImageBuffer"];vc.prototype={clone:function(){var a=new vc(this.data,this.width,this.height,this.bitsPerPixel);if(null!=this.data){a.data=new Uint8Array(this.data.byteLength);
  360. var b=new Uint8Array(this.data);a.data.set(b)}else null!=this.__srcImageData?(a.__srcCanvas=window.document.createElement("canvas"),a.__srcContext=a.__srcCanvas.getContext("2d"),a.__srcCanvas.width=this.__srcImageData.width,a.__srcCanvas.height=this.__srcImageData.height,a.__srcImageData=a.__srcContext.createImageData(this.__srcImageData.width,this.__srcImageData.height),b=new Uint8ClampedArray(this.__srcImageData.data),a.__srcImageData.data.set(b)):null!=this.__srcCanvas?(a.__srcCanvas=window.document.createElement("canvas"),
  361. a.__srcContext=a.__srcCanvas.getContext("2d"),a.__srcCanvas.width=this.__srcCanvas.width,a.__srcCanvas.height=this.__srcCanvas.height,a.__srcContext.drawImage(this.__srcCanvas,0,0)):a.__srcImage=this.__srcImage;a.premultiplied=this.premultiplied;a.transparent=this.transparent;return a},get_src:function(){return null!=this.__srcImage?this.__srcImage:this.__srcCanvas},set_src:function(a){v.__instanceof(a,Image)?this.__srcImage=a:v.__instanceof(a,HTMLCanvasElement)&&(this.__srcCanvas=a,this.__srcContext=
  362. this.__srcCanvas.getContext("2d"));return a},__class__:vc,__properties__:{set_src:"set_src",get_src:"get_src"}};var Oa=g["lime.graphics.ImageType"]={__ename__:["lime","graphics","ImageType"],__constructs__:["CANVAS","DATA","FLASH","CUSTOM"]};Oa.CANVAS=["CANVAS",0];Oa.CANVAS.toString=q;Oa.CANVAS.__enum__=Oa;Oa.DATA=["DATA",1];Oa.DATA.toString=q;Oa.DATA.__enum__=Oa;Oa.FLASH=["FLASH",2];Oa.FLASH.toString=q;Oa.FLASH.__enum__=Oa;Oa.CUSTOM=["CUSTOM",3];Oa.CUSTOM.toString=q;Oa.CUSTOM.__enum__=Oa;var Nb=
  363. g["lime.graphics.RenderContext"]={__ename__:["lime","graphics","RenderContext"],__constructs__:"OPENGL CANVAS DOM FLASH CONSOLE CUSTOM".split(" ")};Nb.OPENGL=function(a){a=["OPENGL",0,a];a.__enum__=Nb;a.toString=q;return a};Nb.CANVAS=function(a){a=["CANVAS",1,a];a.__enum__=Nb;a.toString=q;return a};Nb.DOM=function(a){a=["DOM",2,a];a.__enum__=Nb;a.toString=q;return a};Nb.FLASH=function(a){a=["FLASH",3,a];a.__enum__=Nb;a.toString=q;return a};Nb.CONSOLE=function(a){a=["CONSOLE",4,a];a.__enum__=Nb;a.toString=
  364. q;return a};Nb.CUSTOM=function(a){a=["CUSTOM",5,a];a.__enum__=Nb;a.toString=q;return a};var Se=function(a){this.onRender=new Y;this.onRenderContextRestored=new Y;this.onRenderContextLost=new Y;this.window=a;this.backend=new Te(this);this.window.currentRenderer=this};g["lime.graphics.Renderer"]=Se;Se.__name__=["lime","graphics","Renderer"];Se.prototype={create:function(){this.backend.create()},flip:function(){this.backend.flip()},__class__:Se};var Pf=function(){};g["lime.graphics.opengl.GL"]=Pf;Pf.__name__=
  365. ["lime","graphics","opengl","GL"];Pf.context=null;var va=function(){};g["lime.graphics.utils.ImageCanvasUtil"]=va;va.__name__=["lime","graphics","utils","ImageCanvasUtil"];va.convertToCanvas=function(a){var b=a.buffer;null!=b.__srcImage&&(null==b.__srcCanvas&&(va.createCanvas(a,b.__srcImage.width,b.__srcImage.height),b.__srcContext.drawImage(b.__srcImage,0,0)),b.__srcImage=null)};va.convertToData=function(a){null==a.buffer.data&&(va.convertToCanvas(a),va.sync(a),va.createImageData(a),a.buffer.__srcCanvas=
  366. null,a.buffer.__srcContext=null)};va.createCanvas=function(a,b,c){var d=a.buffer;null==d.__srcCanvas&&(d.__srcCanvas=window.document.createElement("canvas"),d.__srcCanvas.width=b,d.__srcCanvas.height=c,a.get_transparent()?d.__srcContext=d.__srcCanvas.getContext("2d"):(a.get_transparent()||d.__srcCanvas.setAttribute("moz-opaque","true"),d.__srcContext=d.__srcCanvas.getContext("2d",{alpha:!1})),d.__srcContext.mozImageSmoothingEnabled=!1,d.__srcContext.webkitImageSmoothingEnabled=!1,d.__srcContext.imageSmoothingEnabled=
  367. !1)};va.createImageData=function(a){a=a.buffer;null==a.data&&(a.__srcImageData=a.__srcContext.getImageData(0,0,a.width,a.height),a.data=new Uint8Array(a.__srcImageData.data.buffer))};va.fillRect=function(a,b,c){va.convertToCanvas(a);va.sync(a);if(0==b.x&&0==b.y&&b.width==a.width&&b.height==a.height&&a.get_transparent()&&0==(c&-16777216))a.buffer.__srcCanvas.width=a.buffer.width;else{var d;d=a.get_transparent()?(c&-16777216)>>>24:255;a.buffer.__srcContext.fillStyle="rgba("+((c&16711680)>>>16)+", "+
  368. ((c&65280)>>>8)+", "+(c&255)+", "+d/255+")";a.buffer.__srcContext.fillRect(b.x+a.offsetX,b.y+a.offsetY,b.width+a.offsetX,b.height+a.offsetY)}};va.sync=function(a){a.dirty&&a.type!=Oa.DATA&&(a.buffer.__srcContext.putImageData(a.buffer.__srcImageData,0,0),a.buffer.data=null,a.dirty=!1)};var Da=function(){};g["lime.graphics.utils.ImageDataUtil"]=Da;Da.__name__=["lime","graphics","utils","ImageDataUtil"];Da.__alpha16=null;Da.__clamp=null;Da.fillRect=function(a,b,c){var d;d=a.get_transparent()?(c&-16777216)>>>
  369. 24:255;var e=(c&16711680)>>>16,f=(c&65280)>>>8;c&=255;var p=a.buffer.data;if(b.width==a.buffer.width&&b.height==a.buffer.height&&0==b.x&&0==b.y&&0==a.offsetX&&0==a.offsetY)for(var h=a.buffer.width*a.buffer.height,g=0,l=0;l<h;)g=4*l++,p[g]=e,p[g+1]=f,p[g+2]=c,p[g+3]=d;else{var h=4*a.buffer.width,k,m=b.y+a.offsetY|0,g=z["int"](b.get_bottom()+a.offsetY),l=b.x+a.offsetX|0;for(b=z["int"](b.get_right()+a.offsetX);m<g;)for(var n=m++,q=l;q<b;)k=q++,k=n*h+4*k,p[k]=e,p[k+1]=f,p[k+2]=c,p[k+3]=d}a.dirty=!0};
  370. Da.multiplyAlpha=function(a){var b=a.buffer.data;if(null!=b){for(var c,d=b.length/4|0,e=0;e<d;){c=4*e++;var f=Da.__alpha16[b[c+3]];b[c]=b[c]*f>>16;b[c+1]=b[c+1]*f>>16;b[c+2]=b[c+2]*f>>16}a.buffer.premultiplied=!0;a.dirty=!0}};Da.unmultiplyAlpha=function(a){for(var b=a.buffer.data,c,d,e=b.length/4|0,f=0;f<e;)c=4*f++,d=b[c+3],0!=d&&(d=255/d,b[c]=Da.__clamp[b[c]*d|0],b[c+1]=Da.__clamp[b[c+1]*d|0],b[c+2]=Da.__clamp[b[c+2]*d|0]);a.buffer.premultiplied=!1;a.dirty=!0};var Hd=function(a,b,c,d){null==d&&(d=
  371. 0);null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b;this.width=c;this.height=d};g["lime.math.Rectangle"]=Hd;Hd.__name__=["lime","math","Rectangle"];Hd.prototype={offset:function(a,b){this.x+=a;this.y+=b},__toFlashRectangle:function(){return null},get_bottom:function(){return this.y+this.height},get_right:function(){return this.x+this.width},__class__:Hd,__properties__:{get_right:"get_right",get_bottom:"get_bottom"}};var Gd=function(a){this.onSecurityError=new Y;this.onProgress=new Y;
  372. this.onOpen=new Y;this.onIOError=new Y;this.onHTTPStatus=new Y;this.onComplete=new Y;this.bytesTotal=this.bytesLoaded=0;this.set_dataFormat(zb.TEXT);null!=a&&this.load(a)};g["lime.net.URLLoader"]=Gd;Gd.__name__=["lime","net","URLLoader"];Gd.prototype={getData:function(){return null},load:function(a){this.requestUrl(a.url,a.method,a.data,a.formatRequestHeaders())},registerEvents:function(a){var b=this,c=this;"undefined"!=typeof XMLHttpRequestProgressEvent&&a.addEventListener("progress",n(this,this.__onProgress),
  373. !1);a.onreadystatechange=function(){if(4==a.readyState){var d;try{d=a.status}catch(e){d=null}void 0==d&&(d=null);if(null!=d)for(var f=c.onHTTPStatus.listeners,p=c.onHTTPStatus.repeat,h=f.length,g=0;g<h;)f[g](b,d),p[g]?g++:(c.onHTTPStatus.remove(f[g]),h--);if(null!=d&&200<=d&&400>d)c.__onData(a.response);else if(null==d)for(d=c.onIOError.listeners,f=c.onIOError.repeat,p=d.length,h=0;h<p;)d[h](b,"Failed to connect or resolve host"),f[h]?h++:(c.onIOError.remove(d[h]),p--);else if(12029==d)for(d=c.onIOError.listeners,
  374. f=c.onIOError.repeat,p=d.length,h=0;h<p;)d[h](b,"Failed to connect to host"),f[h]?h++:(c.onIOError.remove(d[h]),p--);else if(12007==d)for(d=c.onIOError.listeners,f=c.onIOError.repeat,p=d.length,h=0;h<p;)d[h](b,"Unknown host"),f[h]?h++:(c.onIOError.remove(d[h]),p--);else if(0==d){d=c.onIOError.listeners;f=c.onIOError.repeat;p=d.length;for(h=0;h<p;)d[h](b,"Unable to make request (may be blocked due to cross-domain permissions)"),f[h]?h++:(c.onIOError.remove(d[h]),p--);d=c.onSecurityError.listeners;
  375. f=c.onSecurityError.repeat;p=d.length;for(h=0;h<p;)d[h](b,"Unable to make request (may be blocked due to cross-domain permissions)"),f[h]?h++:(c.onSecurityError.remove(d[h]),p--)}else for(d=c.onIOError.listeners,f=c.onIOError.repeat,p=d.length,h=0;h<p;)d[h](b,"Http Error #"+a.status),f[h]?h++:(c.onIOError.remove(d[h]),p--)}}},requestUrl:function(a,b,c,d){var e=new XMLHttpRequest;this.registerEvents(e);var f="";if(v.__instanceof(c,Ya))switch(this.dataFormat[1]){case 0:f=c.data.buffer;break;default:f=
  376. c.readUTFBytes(c.length)}else if(v.__instanceof(c,Qf))for(var p=0,h=r.fields(c);p<h.length;){var g=h[p];++p;0!=f.length&&(f+="&");f+=encodeURIComponent(g)+"="+W.urlEncode(r.field(c,g))}else null!=c&&(f=c.toString());try{if("GET"==b&&null!=f&&""!=f){var l=1>=a.split("?").length;e.open("GET",a+(l?"?":"&")+z.string(f),!0);f=""}else e.open(v.__cast(b,String),a,!0)}catch(k){d=this.onIOError.listeners;f=this.onIOError.repeat;a=d.length;for(b=0;b<a;)d[b](this,k.toString()),f[b]?b++:(this.onIOError.remove(d[b]),
  377. a--);return}switch(this.dataFormat[1]){case 0:e.responseType="arraybuffer"}for(a=0;a<d.length;)b=d[a],++a,e.setRequestHeader(b.name,b.value);e.send(f);d=this.onOpen.listeners;f=this.onOpen.repeat;a=d.length;for(b=0;b<a;)d[b](this),f[b]?b++:(this.onOpen.remove(d[b]),a--);this.getData=function(){return null!=e.response?e.response:e.responseText}},__onData:function(a){a=this.getData();switch(this.dataFormat[1]){case 0:this.data=Ya.__ofBuffer(a);break;default:this.data=z.string(a)}a=this.onComplete.listeners;
  378. for(var b=this.onComplete.repeat,c=a.length,d=0;d<c;)a[d](this),b[d]?d++:(this.onComplete.remove(a[d]),c--)},__onProgress:function(a){this.bytesLoaded=a.loaded;this.bytesTotal=a.total;a=this.onProgress.listeners;for(var b=this.onProgress.repeat,c=a.length,d=0;d<c;)a[d](this,this.bytesLoaded,this.bytesTotal),b[d]?d++:(this.onProgress.remove(a[d]),c--)},set_dataFormat:function(a){a!=zb.BINARY||r.hasField(window,"ArrayBuffer")?this.dataFormat=a:this.dataFormat=zb.TEXT;return this.dataFormat},__class__:Gd,
  379. __properties__:{set_dataFormat:"set_dataFormat"}};var zb=g["lime.net.URLLoaderDataFormat"]={__ename__:["lime","net","URLLoaderDataFormat"],__constructs__:["BINARY","TEXT","VARIABLES"]};zb.BINARY=["BINARY",0];zb.BINARY.toString=q;zb.BINARY.__enum__=zb;zb.TEXT=["TEXT",1];zb.TEXT.toString=q;zb.TEXT.__enum__=zb;zb.VARIABLES=["VARIABLES",2];zb.VARIABLES.toString=q;zb.VARIABLES.__enum__=zb;var Ve=function(a){null!=a&&(this.url=a);this.requestHeaders=[];this.method="GET";this.contentType=null};g["lime.net.URLRequest"]=
  380. Ve;Ve.__name__=["lime","net","URLRequest"];Ve.prototype={formatRequestHeaders:function(){var a=this.requestHeaders;null==a&&(a=[]);if("GET"==this.method||null==this.data)return a;if("string"==typeof this.data||v.__instanceof(this.data,Ya))a=a.slice(),a.push(new Xe("Content-Type",null!=this.contentType?this.contentType:"application/x-www-form-urlencoded"));return a},__class__:Ve};var Xe=function(a,b){null==b&&(b="");null==a&&(a="");this.name=a;this.value=b};g["lime.net.URLRequestHeader"]=Xe;Xe.__name__=
  381. ["lime","net","URLRequestHeader"];Xe.prototype={__class__:Xe};var Qf=function(){};g["lime.net.URLVariables"]=Qf;Qf.__name__=["lime","net","URLVariables"];var Id=function(){};g["lime.system.System"]=Id;Id.__name__=["lime","system","System"];Id.embed=Mc.lime.embed=function(a,b,c,d,e){var f=null,f="string"==typeof a?window.document.getElementById(v.__cast(a,String)):null==a?window.document.createElement("div"):a;a=null;null!=d&&(d=W.replace(d,"#",""),a=-1<d.indexOf("0x")?z.parseInt(d):z.parseInt("0x"+
  382. d));null==b&&(b=0);null==c&&(c=0);pa.config.background=a;pa.config.element=f;pa.config.width=b;pa.config.height=c;pa.config.assetsPrefix=e;pa.create()};Id.getTimer=function(){return z["int"]((new Date).getTime())};var Zf=function(){};g["lime.ui.Gamepad"]=Zf;Zf.__name__=["lime","ui","Gamepad"];var tb=function(){};g["lime.ui._KeyModifier.KeyModifier_Impl_"]=tb;tb.__name__=["lime","ui","_KeyModifier","KeyModifier_Impl_"];tb.__properties__={get_shiftKey:"get_shiftKey",get_metaKey:"get_metaKey",get_ctrlKey:"get_ctrlKey",
  383. get_altKey:"get_altKey"};tb.get_altKey=function(a){return 0<(a&256)||0<(a&512)};tb.get_ctrlKey=function(a){return 0<(a&64)||0<(a&128)};tb.get_metaKey=function(a){return 0<(a&1024)||0<(a&2048)};tb.get_shiftKey=function(a){return 0<(a&1)||0<(a&2)};var Ub=function(){};g["lime.ui.Mouse"]=Ub;Ub.__name__=["lime","ui","Mouse"];Ub.__properties__={set_cursor:"set_cursor"};Ub.set_cursor=function(a){return cc.set_cursor(a)};var L=g["lime.ui.MouseCursor"]={__ename__:["lime","ui","MouseCursor"],__constructs__:"ARROW CROSSHAIR DEFAULT MOVE POINTER RESIZE_NESW RESIZE_NS RESIZE_NWSE RESIZE_WE TEXT WAIT WAIT_ARROW CUSTOM".split(" ")};
  384. L.ARROW=["ARROW",0];L.ARROW.toString=q;L.ARROW.__enum__=L;L.CROSSHAIR=["CROSSHAIR",1];L.CROSSHAIR.toString=q;L.CROSSHAIR.__enum__=L;L.DEFAULT=["DEFAULT",2];L.DEFAULT.toString=q;L.DEFAULT.__enum__=L;L.MOVE=["MOVE",3];L.MOVE.toString=q;L.MOVE.__enum__=L;L.POINTER=["POINTER",4];L.POINTER.toString=q;L.POINTER.__enum__=L;L.RESIZE_NESW=["RESIZE_NESW",5];L.RESIZE_NESW.toString=q;L.RESIZE_NESW.__enum__=L;L.RESIZE_NS=["RESIZE_NS",6];L.RESIZE_NS.toString=q;L.RESIZE_NS.__enum__=L;L.RESIZE_NWSE=["RESIZE_NWSE",
  385. 7];L.RESIZE_NWSE.toString=q;L.RESIZE_NWSE.__enum__=L;L.RESIZE_WE=["RESIZE_WE",8];L.RESIZE_WE.toString=q;L.RESIZE_WE.__enum__=L;L.TEXT=["TEXT",9];L.TEXT.toString=q;L.TEXT.__enum__=L;L.WAIT=["WAIT",10];L.WAIT.toString=q;L.WAIT.__enum__=L;L.WAIT_ARROW=["WAIT_ARROW",11];L.WAIT_ARROW.toString=q;L.WAIT_ARROW.__enum__=L;L.CUSTOM=["CUSTOM",12];L.CUSTOM.toString=q;L.CUSTOM.__enum__=L;var Re=function(a){this.onWindowRestore=new Y;this.onWindowResize=new Y;this.onWindowMove=new Y;this.onWindowMinimize=new Y;
  386. this.onWindowFullscreen=new Y;this.onWindowFocusOut=new Y;this.onWindowFocusIn=new Y;this.onWindowDeactivate=new Y;this.onWindowClose=new Y;this.onWindowActivate=new Y;this.onTouchStart=new Y;this.onTouchMove=new Y;this.onTouchEnd=new Y;this.onMouseWheel=new Y;this.onMouseUp=new Y;this.onMouseMove=new Y;this.onMouseDown=new Y;this.onKeyUp=new Y;this.onKeyDown=new Y;this.onGamepadDisconnect=new Y;this.onGamepadConnect=new Y;this.onGamepadButtonUp=new Y;this.onGamepadButtonDown=new Y;this.onGamepadAxisMove=
  387. new Y;this.config=a;this.__height=this.__width=0;this.__fullscreen=!1;this.__y=this.__x=0;null!=a&&(Object.prototype.hasOwnProperty.call(a,"width")&&(this.__width=a.width),Object.prototype.hasOwnProperty.call(a,"height")&&(this.__height=a.height),Object.prototype.hasOwnProperty.call(a,"fullscreen")&&(this.__fullscreen=a.fullscreen));this.backend=new $c(this)};g["lime.ui.Window"]=Re;Re.__name__=["lime","ui","Window"];Re.prototype={create:function(a){this.backend.create(a);null!=this.currentRenderer&&
  388. this.currentRenderer.create()},resize:function(a,b){this.backend.resize(a,b);this.__width=a;this.__height=b},set_fullscreen:function(a){return this.__fullscreen=this.backend.setFullscreen(a)},set_height:function(a){this.resize(this.__width,a);return this.__height},set_width:function(a){this.resize(a,this.__height);return this.__width},__class__:Re,__properties__:{set_width:"set_width",set_height:"set_height",set_fullscreen:"set_fullscreen"}};var Ya=function(a){null==a&&(a=0);this.length=this.position=
  389. this.allocated=0;0<a&&(this.allocated=a);this.___resizeBuffer(this.allocated);this.set_length(this.allocated)};g["lime.utils.ByteArray"]=Ya;Ya.__name__=["lime","utils","ByteArray"];Ya.__ofBuffer=function(a){var b=new Ya;b.set_length(b.allocated=a.byteLength);b.data=new DataView(a);b.byteView=new Uint8Array(a);return b};Ya.prototype={readUTFBytes:function(a){var b="";for(a=this.position+a;this.position<a;){var c=this.data,d=c.getUint8(this.position++);if(128>d){if(0==d)break;b+=String.fromCharCode(d)}else if(224>
  390. d)b+=String.fromCharCode((d&63)<<6|c.getUint8(this.position++)&127);else if(240>d)var e=c.getUint8(this.position++),b=b+String.fromCharCode((d&31)<<12|(e&127)<<6|c.getUint8(this.position++)&127);else var e=c.getUint8(this.position++),f=c.getUint8(this.position++),b=b+String.fromCharCode((d&15)<<18|(e&127)<<12|f<<6&127|c.getUint8(this.position++)&127)}return b},writeByte:function(a){var b=this.position+1;this.length<b&&(this.allocated<b?this.___resizeBuffer(this.allocated=z["int"](Math.max(b,2*this.allocated))):
  391. this.allocated>2*b&&this.___resizeBuffer(this.allocated=b),this.length=b,b);this.data.setInt8(this.position,a);this.position+=1},writeUTFBytes:function(a){for(var b=0,c=a.length;b<c;){var d=b++,d=a.charCodeAt(d);127>=d?this.writeByte(d):(2047>=d?this.writeByte(192|d>>6):(65535>=d?this.writeByte(224|d>>12):(this.writeByte(240|d>>18),this.writeByte(128|d>>12&63)),this.writeByte(128|d>>6&63)),this.writeByte(128|d&63))}},__get:function(a){return this.data.getInt8(a)},___resizeBuffer:function(a){var b=
  392. this.byteView,c=new Uint8Array(a);null!=b&&(b.length<=a?c.set(b):c.set(b.subarray(0,a)));this.byteView=c;this.data=new DataView(c.buffer)},__set:function(a,b){this.data.setUint8(a,b)},set_length:function(a){this.allocated<a?this.___resizeBuffer(this.allocated=z["int"](Math.max(a,2*this.allocated))):this.allocated>2*a&&this.___resizeBuffer(this.allocated=a);return this.length=a},__class__:Ya,__properties__:{set_length:"set_length"}};var S=function(){null!=S.instance&&console.log("Present old instance");
  393. S.instance=this;this.init()};g["managers.LevelManager"]=S;S.__name__=["managers","LevelManager"];S.__interfaces__=[rd];S.instance=null;S.prototype={init:function(){this.heroSpeed=12;this.move=!0;x.score=0;this.pointsTimeout=.5;this.pointsCounter=0;this.changeThemeTime=3;this.delayChangeTheme=2;this.forceChangeThemeTime=this.changeThemeTime/2;this.forceDelayChangeTheme=this.delayChangeTheme/2;this.boostSpeed=!1;this.initHeroSpeedVec();this.createLayers();this.createBg();this.createRoad()},initHeroSpeedVec:function(){var a=
  394. this.heroSpeedVec=new Bc(1,0),b;b=Math.sqrt(a.x*a.x+a.y*a.y);0<b&&(a.x/=b,a.y/=b,a);a;a=D.toRad(-16);b=this.heroSpeedVec;Math.cos(a);Math.sin(a);var c=b.x,d=b.y;b.x=c*Math.cos(a)-d*Math.sin(a);b.y=c*Math.sin(a)+d*Math.cos(a);b;a=this.heroSpeed;b=this.heroSpeedVec;b.x*=a;b.y*=a;b;a=this.heroSpeedVec;a=this.groundSpeedVec=new Bc(a.x,a.y);b=Math.sqrt(a.x*a.x+a.y*a.y);0<b&&(a.x/=b,a.y/=b,a);a;a.x*=360;a.y*=360;a;a},createLayers:function(){K.get_instance().createGroup("bgUp","main");K.get_instance().createGroup("roadBg",
  395. "main");K.get_instance().createGroup("bonuses","main");K.get_instance().createGroup("road1","main");K.get_instance().createGroup("road2","main");K.get_instance().createGroup("road3","main");K.get_instance().createGroup("bgDown","main")},createBg:function(){var a=ra.instance.layersManager.getLayer("background");this.bg=new A;this.bg.get_graphics().beginFill(11512747);this.bg.get_graphics().drawRect(0,0,640,960);this.bg.get_graphics().endFill();a.addChild(this.bg)},receiveNotify:function(a,b,c){},build:function(){var a=
  396. z["int"](D.randTo(1,3));this.createHero(a)},createRoad:function(){var a=ra.instance.layersManager.getLayer("road"),b=new A;b.get_graphics().beginFill(7963023);b.get_graphics().drawRect(0,0,780,350);b.get_graphics().endFill();b.set_rotation(-16);b.set_x(-105);b.set_y(467);a.addChild(b);var b=K.get_instance().get("main"),a=K.get_instance().getGroup("roadBg","main"),c=C.create(b,"roadBorderUp");c.x=320;c.y=353;c.set_rotation(D.toRad(-16));a.addChild(c);c=C.create(b,"roadBorderMid");c.x=320;c.y=470;c.set_rotation(D.toRad(-16));
  397. a.addChild(c);c=C.create(b,"roadBorderMid");c.x=320;c.y=583;c.set_rotation(D.toRad(-16));a.addChild(c);b=C.create(b,"roadBorderDown");b.x=320;b.y=705;b.set_rotation(D.toRad(-16));a.addChild(b)},createHero:function(a){var b={x:100,y:this.getPosYByRoadForHero(a)};a=this.createCarEntity("hero",x.curCar,a,b);b=w.get_instance().getComponent(bc);b.state=0;w.get_instance().addComponent(a,b);b=w.get_instance().getComponent(sc);b.tap=!1;b.swapUp=!1;b.swapDown=!1;w.get_instance().addComponent(a,b);w.get_instance().saveEntity(a)},
  398. createCarEntity:function(a,b,c,d,e){var f=x.configs.getCarConfig(a,b),p=w.get_instance().createEntity(),h=w.get_instance().getComponent(Aa,!0);h.x=d.x;h.y=d.y;w.get_instance().addComponent(p,h);if(null!=e){d=S.instance.heroSpeedVec;d=new Bc(d.x,d.y);var g;g=Math.sqrt(d.x*d.x+d.y*d.y);0<g&&(d.x/=g,d.y/=g,d);d;d.x*=e;d.y*=e;d;d;e=w.get_instance().getComponent(Hb,!0);e.x=d.x;e.y=d.y;w.get_instance().addComponent(p,e)}e=w.get_instance().getComponent(Ba,!0);e.type=a;e.id=b;e.lock=!1;e.shadowOffsetX=z.parseFloat(f.sX);
  399. e.shadowOffsetY=z.parseFloat(f.sY);e.graphOffsetX=z.parseFloat(f.bX);e.graphOffsetY=z.parseFloat(f.bY);e.runAnimHeight=1.5;e.runAnimProgress=0;e.runAnimTarget=1;b="road"+c;b=K.get_instance().getGroup(b,"main");d=K.get_instance().get("main");e.shadow=C.create(d,f.s);e.shadow.x=h.x+e.shadowOffsetX;e.shadow.y=h.y+e.shadowOffsetY;b.addChild(e.shadow);g=f.w.length;if(0<f.w.length){e.wheel1X=z.parseFloat(f.w[0].x);e.wheel1Y=z.parseFloat(f.w[0].y);var l=C.create(d,"koleco");l.x=h.x+e.wheel1X;l.y=h.y+e.wheel1Y;
  400. b.addChild(l);e.wheel1=l;2==g&&(e.wheel2X=z.parseFloat(f.w[1].x),e.wheel2Y=z.parseFloat(f.w[1].y),l=C.create(d,"koleco"),l.x=h.x+e.wheel2X,l.y=h.y+e.wheel2Y,b.addChild(l),e.wheel2=l)}e.graph=C.create(d,f.b);e.graph.x=h.x+e.graphOffsetX;e.graph.y=h.y+e.graphOffsetY;b.addChild(e.graph);"npc"==a&&(b.setChildIndex(e.graph,0),null!=e.wheel1&&b.setChildIndex(e.wheel1,0),null!=e.wheel2&&b.setChildIndex(e.wheel2,0),b.setChildIndex(e.shadow,0));w.get_instance().addComponent(p,e);a=w.get_instance().getComponent(Ca,
  401. !0);a.type=1;a.road=c;a.x1=z.parseFloat(f.r[0].x);a.y1=z.parseFloat(f.r[0].y);a.x2=z.parseFloat(f.r[1].x);a.y2=z.parseFloat(f.r[1].y);a.x3=z.parseFloat(f.r[2].x);a.y3=z.parseFloat(f.r[2].y);a.x4=z.parseFloat(f.r[3].x);a.y4=z.parseFloat(f.r[3].y);a.hit=!1;w.get_instance().addComponent(p,a);return p},stopMove:function(){this.move=!1},update:function(a){1==this.move&&this.updateCounter(a)},updateCounter:function(a){this.pointsCounter+=a;this.pointsCounter>=this.pointsTimeout&&(this.pointsCounter=0,this.increasePoints())},
  402. increasePoints:function(){x.score++;ra.instance.updatePoints(x.score)},getPosYByRoad:function(a){var b=0;switch(a){case 1:b=281;break;case 2:b=396;break;case 3:b=510}return b},getPosYByRoadForHero:function(a){var b=0;switch(a){case 1:b=475;break;case 2:b=591;break;case 3:b=704}return b},changeTheme:function(a){var b=0;switch(a){case 1:b=11512747;break;case 2:b=11124557;break;case 3:b=5093567}var c=ra.instance.layersManager.getLayer("background"),d=new A;d.get_graphics().beginFill(b);d.get_graphics().drawRect(0,
  403. 0,640,960);d.get_graphics().endFill();d.set_alpha(0);c.addChild(d);3==a&&(null==this.shadow&&(this.shadow=new A,this.shadow.get_graphics().beginFill(4363172),this.shadow.get_graphics().drawRect(-350,-38.5,700,77),this.shadow.get_graphics().endFill(),this.shadow.set_rotation(-16)),this.shadow.set_x(320),this.shadow.set_y(748),d.addChild(this.shadow));if(0==this.boostSpeed)I.tween(d,this.changeThemeTime,{alpha:1}).ease(hb.get_easeNone()).delay(this.delayChangeTheme).onComplete(n(this,this.changeBg),
  404. [d]);else I.tween(d,this.forceChangeThemeTime,{alpha:1}).ease(hb.get_easeNone()).delay(this.forceDelayChangeTheme).onComplete(n(this,this.changeBg),[d])},changeBg:function(a){null!=this.bg&&null!=this.bg.parent&&(this.bg.parent.removeChild(this.bg),this.bg=a)},free:function(){this.shadow=this.bg=this.groundSpeedVec=this.heroSpeedVec=S.instance=null},__class__:S};var M=function(a,b,c){this.stageWidth=a;this.stageHeight=b;this.stageOrientation=c;this.stageScale=1;this.init()};g["managers.ScaleManager"]=
  405. M;M.__name__=["managers","ScaleManager"];M.prototype={init:function(){M.graphicsFolder="hd";M.graphicsScale=1;B.current.stage.align=ea.TOP_LEFT;B.current.stage.scaleMode=bb.NO_SCALE},__class__:M};var Jd=function(){};g["motion.actuators.IGenericActuator"]=Jd;Jd.__name__=["motion","actuators","IGenericActuator"];Jd.prototype={__class__:Jd};var dc=function(a,b,c){this._autoVisible=!0;this._delay=0;this._reflect=!1;this._repeat=0;this.special=this._snapping=this._smartRotation=this._reverse=!1;this.target=
  406. a;this.properties=c;this.duration=b;this._ease=I.defaultEase};g["motion.actuators.GenericActuator"]=dc;dc.__name__=["motion","actuators","GenericActuator"];dc.__interfaces__=[Jd];dc.prototype={apply:function(){for(var a=0,b=r.fields(this.properties);a<b.length;){var c=b[a];++a;Object.prototype.hasOwnProperty.call(this.target,c)?r.setField(this.target,c,r.field(this.properties,c)):r.setProperty(this.target,c,r.field(this.properties,c))}},autoVisible:function(a){null==a&&(a=!0);this._autoVisible=a;
  407. return this},callMethod:function(a,b){null==b&&(b=[]);return a.apply(a,b)},change:function(){null!=this._onUpdate&&this.callMethod(this._onUpdate,this._onUpdateParams)},complete:function(a){null==a&&(a=!0);a&&(this.change(),null!=this._onComplete&&this.callMethod(this._onComplete,this._onCompleteParams));I.unload(this)},delay:function(a){this._delay=a;return this},ease:function(a){this._ease=a;return this},move:function(){},onComplete:function(a,b){this._onComplete=a;this._onCompleteParams=null==
  408. b?[]:b;0==this.duration&&this.complete();return this},onRepeat:function(a,b){this._onRepeat=a;this._onRepeatParams=null==b?[]:b;return this},onUpdate:function(a,b){this._onUpdate=a;this._onUpdateParams=null==b?[]:b;return this},onPause:function(a,b){this._onPause=a;this._onPauseParams=null==b?[]:b;return this},onResume:function(a,b){this._onResume=a;this._onResumeParams=null==b?[]:b;return this},pause:function(){null!=this._onPause&&this.callMethod(this._onPause,this._onPauseParams)},reflect:function(a){null==
  409. a&&(a=!0);this._reflect=a;this.special=!0;return this},repeat:function(a){null==a&&(a=-1);this._repeat=a;return this},resume:function(){null!=this._onResume&&this.callMethod(this._onResume,this._onResumeParams)},reverse:function(a){null==a&&(a=!0);this._reverse=a;this.special=!0;return this},smartRotation:function(a){null==a&&(a=!0);this._smartRotation=a;this.special=!0;return this},snapping:function(a){null==a&&(a=!0);this._snapping=a;this.special=!0;return this},stop:function(a,b,c){},__class__:dc};
  410. var fa=function(a,b,c){this.active=!0;this.propertyDetails=[];this.toggleVisible=this.setVisible=this.initialized=this.cacheVisible=this.paused=this.sendChange=!1;this.startTime=B.getTimer()/1E3;dc.call(this,a,b,c);fa.addedEvent||(fa.addedEvent=!0,B.current.stage.addEventListener(u.ENTER_FRAME,fa.stage_onEnterFrame))};g["motion.actuators.SimpleActuator"]=fa;fa.__name__=["motion","actuators","SimpleActuator"];fa.stage_onEnterFrame=function(a){a=B.getTimer()/1E3;for(var b,c=0,d=0,e=fa.actuatorsLength;d<
  411. e;)d++,b=fa.actuators[c],null!=b&&b.active?(a>=b.timeOffset&&b.update(a),c++):(fa.actuators.splice(c,1),--fa.actuatorsLength)};fa.__super__=dc;fa.prototype=t(dc.prototype,{setField_motion_actuators_SimpleActuator_T:function(a,b,c){Object.prototype.hasOwnProperty.call(a,b)?a[b]=c:r.setProperty(a,b,c)},autoVisible:function(a){null==a&&(a=!0);this._autoVisible=a;a||(this.toggleVisible=!1,this.setVisible&&this.setField_motion_actuators_SimpleActuator_T(this.target,"visible",this.cacheVisible));return this},
  412. delay:function(a){this._delay=a;this.timeOffset=this.startTime+a;return this},getField:function(a,b){var c=null;return c=Object.prototype.hasOwnProperty.call(a,b)?r.field(a,b):r.getProperty(a,b)},initialize:function(){for(var a,b=0,c=r.fields(this.properties);b<c.length;){var d=c[b];++b;var e=!0;!Object.prototype.hasOwnProperty.call(this.target,d)||this.target.__properties__&&this.target.__properties__["set_"+d]?(e=!1,a=r.getProperty(this.target,d)):a=r.field(this.target,d);if("number"==typeof a){var f=
  413. this.getField(this.properties,d);null==a&&(a=0);null==f&&(f=0);a=new Kb(this.target,d,a,f-a,e);this.propertyDetails.push(a)}}this.detailsLength=this.propertyDetails.length;this.initialized=!0},move:function(){(this.toggleVisible=Object.prototype.hasOwnProperty.call(this.properties,"alpha")&&v.__instanceof(this.target,ca))&&0!=this.properties.alpha&&!this.getField(this.target,"visible")&&(this.setVisible=!0,this.cacheVisible=this.getField(this.target,"visible"),this.setField_motion_actuators_SimpleActuator_T(this.target,
  414. "visible",!0));this.timeOffset=this.startTime;fa.actuators.push(this);++fa.actuatorsLength},onUpdate:function(a,b){this._onUpdate=a;this._onUpdateParams=null==b?[]:b;this.sendChange=!0;return this},pause:function(){this.paused||(this.paused=!0,dc.prototype.pause.call(this),this.pauseTime=B.getTimer())},resume:function(){this.paused&&(this.paused=!1,this.timeOffset+=(B.getTimer()-this.pauseTime)/1E3,dc.prototype.resume.call(this))},setProperty:function(a,b){a.isField?a.target[a.propertyName]=b:r.setProperty(a.target,
  415. a.propertyName,b)},stop:function(a,b,c){if(this.active)if(null==a)this.active=!1,b&&this.apply(),this.complete(c);else{var d=0;for(a=r.fields(a);d<a.length;){var e=a[d];++d;if(Object.prototype.hasOwnProperty.call(this.properties,e)){this.active=!1;b&&this.apply();this.complete(c);break}}}},update:function(a){if(!this.paused){var b,c,d=(a-this.timeOffset)/this.duration;1<d&&(d=1);this.initialized||this.initialize();if(this.special){c=this._reverse?this._ease.calculate(1-d):this._ease.calculate(d);
  416. for(var e,f=0,p=this.detailsLength;f<p;)b=f++,b=this.propertyDetails[b],!this._smartRotation||"rotation"!=b.propertyName&&"rotationX"!=b.propertyName&&"rotationY"!=b.propertyName&&"rotationZ"!=b.propertyName?e=b.start+b.change*c:(e=b.change%360,180<e?e-=360:-180>e&&(e+=360),e=b.start+e*c),this._snapping?this.setProperty(b,Math.round(e)):b.isField?b.target[b.propertyName]=e:r.setProperty(b.target,b.propertyName,e)}else for(c=this._ease.calculate(d),f=0,p=this.detailsLength;f<p;)b=f++,b=this.propertyDetails[b],
  417. this.setProperty(b,b.start+b.change*c);if(1==d){if(0==this._repeat){this.active=!1;this.toggleVisible&&0==this.getField(this.target,"alpha")&&this.setField_motion_actuators_SimpleActuator_T(this.target,"visible",!1);this.complete(!0);return}null!=this._onRepeat&&this.callMethod(this._onRepeat,this._onRepeatParams);this._reflect&&(this._reverse=!this._reverse);this.startTime=a;this.timeOffset=this.startTime+this._delay;0<this._repeat&&this._repeat--}this.sendChange&&this.change()}},__class__:fa});
  418. var Ye=function(){};g["motion.easing.Expo"]=Ye;Ye.__name__=["motion","easing","Expo"];Ye.__properties__={get_easeOut:"get_easeOut"};Ye.get_easeOut=function(){return new Kd};var ec=function(){};g["motion.easing.IEasing"]=ec;ec.__name__=["motion","easing","IEasing"];ec.prototype={__class__:ec};var Kd=function(){};g["motion.easing.ExpoEaseOut"]=Kd;Kd.__name__=["motion","easing","ExpoEaseOut"];Kd.__interfaces__=[ec];Kd.prototype={calculate:function(a){return 1==a?1:1-Math.pow(2,-10*a)},__class__:Kd};
  419. var I=function(){};g["motion.Actuate"]=I;I.__name__=["motion","Actuate"];I.apply=function(a,b,c){I.stop(a,b);null==c&&(c=I.defaultActuator);a=Q.createInstance(c,[a,0,b]);a.apply();return a};I.getLibrary=function(a,b){null==b&&(b=!0);null==I.targetLibraries.h.__keys__[a.__id__]&&b&&I.targetLibraries.set(a,[]);return I.targetLibraries.h[a.__id__]};I.stop=function(a,b,c,d){null==d&&(d=!0);null==c&&(c=!1);if(null!=a)if(v.__instanceof(a,Jd))a.stop(null,c,d);else if(a=I.getLibrary(a,!1),null!=a){if("string"==
  420. typeof b){var e={};r.setField(e,b,null);b=e}else if(b instanceof Array&&null==b.__enum__){var e={},f=0;for(b=v.__cast(b,Array);f<b.length;){var p=b[f];++f;r.setField(e,p,null)}b=e}for(e=a.length-1;0<=e;)a[e].stop(b,c,d),e--}};I.tween=function(a,b,c,d,e){null==d&&(d=!0);if(null!=a){if(0<b){null==e&&(e=I.defaultActuator);a=Q.createInstance(e,[a,b,c]);b=I.getLibrary(a.target);if(d){for(d=b.length-1;0<=d;)b[d].stop(a.properties,!1,!1),d--;b=I.getLibrary(a.target)}b.push(a);a.move();return a}return I.apply(a,
  421. c,e)}return null};I.unload=function(a){var b=a.target;null!=I.targetLibraries.h.__keys__[b.__id__]&&(E.remove(I.targetLibraries.h[b.__id__],a),0==I.targetLibraries.h[b.__id__].length&&I.targetLibraries.remove(b))};var cd=function(){};g["motion.IComponentPath"]=cd;cd.__name__=["motion","IComponentPath"];cd.prototype={__class__:cd};var Ze=function(a,b,c){this.filterIndex=-1;fa.call(this,a,b,c);if(v.__instanceof(c.filter,Sf))for(this.filterClass=c.filter,0==a.get_filters().length&&a.set_filters([Q.createInstance(this.filterClass,
  422. [])]),b=0,a=a.get_filters();b<a.length;)c=a[b],++b,v.__instanceof(c,this.filterClass)&&(this.filter=c);else this.filterIndex=c.filter,this.filter=a.get_filters()[this.filterIndex]};g["motion.actuators.FilterActuator"]=Ze;Ze.__name__=["motion","actuators","FilterActuator"];Ze.__super__=fa;Ze.prototype=t(fa.prototype,{setField_openfl_display_DisplayObject:function(a,b,c){Object.prototype.hasOwnProperty.call(a,b)?a[b]=c:r.setProperty(a,b,c)},apply:function(){for(var a=0,b=r.fields(this.properties);a<
  423. b.length;){var c=b[a];++a;"filter"!=c&&r.setField(this.filter,c,r.field(this.properties,c))}a=this.getField(this.target,"filters");r.setField(a,this.properties.filter,this.filter);this.setField_openfl_display_DisplayObject(this.target,"filters",a)},initialize:function(){for(var a,b=0,c=r.fields(this.properties);b<c.length;){var d=c[b];++b;"filter"!=d&&(a=this.getField(this.filter,d),a=new Kb(this.filter,d,a,r.field(this.properties,d)-a),this.propertyDetails.push(a))}this.detailsLength=this.propertyDetails.length;
  424. this.initialized=!0},update:function(a){fa.prototype.update.call(this,a);a=this.target.get_filters();if(-1<this.filterIndex)r.setField(a,this.properties.filter,this.filter);else for(var b=0,c=a.length;b<c;){var d=b++;v.__instanceof(a[d],this.filterClass)&&(a[d]=this.filter)}this.setField_openfl_display_DisplayObject(this.target,"filters",a)},__class__:Ze});var $e=function(a,b,c){this.currentParameters=[];this.tweenProperties={};fa.call(this,a,b,c);Object.prototype.hasOwnProperty.call(c,"start")||
  425. (this.properties.start=[]);Object.prototype.hasOwnProperty.call(c,"end")||(this.properties.end=this.properties.start);a=0;for(b=this.properties.start.length;a<b;)c=a++,this.currentParameters.push(this.properties.start[c])};g["motion.actuators.MethodActuator"]=$e;$e.__name__=["motion","actuators","MethodActuator"];$e.__super__=fa;$e.prototype=t(fa.prototype,{apply:function(){this.callMethod(this.target,this.properties.end)},complete:function(a){null==a&&(a=!0);for(var b=0,c=this.properties.start.length;b<
  426. c;){var d=b++;this.currentParameters[d]=r.field(this.tweenProperties,"param"+d)}this.callMethod(this.target,this.currentParameters);fa.prototype.complete.call(this,a)},initialize:function(){for(var a,b,c=0,d=this.properties.start.length;c<d;){var e=c++;a="param"+e;b=this.properties.start[e];this.tweenProperties[a]=b;if("number"==typeof b||(b|0)===b)a=new Kb(this.tweenProperties,a,b,this.properties.end[e]-b),this.propertyDetails.push(a)}this.detailsLength=this.propertyDetails.length;this.initialized=
  427. !0},update:function(a){fa.prototype.update.call(this,a);if(this.active&&!this.paused){a=0;for(var b=this.properties.start.length;a<b;){var c=a++;this.currentParameters[c]=r.field(this.tweenProperties,"param"+c)}this.callMethod(this.target,this.currentParameters)}},__class__:$e});var af=function(a,b,c){fa.call(this,a,b,c)};g["motion.actuators.MotionPathActuator"]=af;af.__name__=["motion","actuators","MotionPathActuator"];af.__super__=fa;af.prototype=t(fa.prototype,{setField_motion_actuators_MotionPathActuator_T:function(a,
  428. b,c){Object.prototype.hasOwnProperty.call(a,b)?a[b]=c:r.setProperty(a,b,c)},apply:function(){for(var a=0,b=r.fields(this.properties);a<b.length;){var c=b[a];++a;Object.prototype.hasOwnProperty.call(this.target,c)?r.setField(this.target,c,v.__cast(r.field(this.properties,c),cd).get_end()):r.setProperty(this.target,c,v.__cast(r.field(this.properties,c),cd).get_end())}},initialize:function(){for(var a,b=0,c=r.fields(this.properties);b<c.length;){var d=c[b];++b;a=v.__cast(r.field(this.properties,d),cd);
  429. if(null!=a){var e=!0;Object.prototype.hasOwnProperty.call(this.target,d)?a.start=r.field(this.target,d):(e=!1,a.start=r.getProperty(this.target,d));a=new Pa(this.target,d,a,e);this.propertyDetails.push(a)}}this.detailsLength=this.propertyDetails.length;this.initialized=!0},update:function(a){if(!this.paused){var b,c=(a-this.timeOffset)/this.duration;1<c&&(c=1);this.initialized||this.initialize();if(this.special){b=this._reverse?this._ease.calculate(1-c):this._ease.calculate(c);for(var d=0,e=this.propertyDetails;d<
  430. e.length;){var f=e[d];++d;this._snapping?f.isField?r.setField(f.target,f.propertyName,Math.round(v.__cast(f,Pa).path.calculate(b))):r.setProperty(f.target,f.propertyName,Math.round(v.__cast(f,Pa).path.calculate(b))):f.isField?r.setField(f.target,f.propertyName,v.__cast(f,Pa).path.calculate(b)):r.setProperty(f.target,f.propertyName,v.__cast(f,Pa).path.calculate(b))}}else for(b=this._ease.calculate(c),d=0,e=this.propertyDetails;d<e.length;)f=e[d],++d,f.isField?r.setField(f.target,f.propertyName,v.__cast(f,
  431. Pa).path.calculate(b)):r.setProperty(f.target,f.propertyName,v.__cast(f,Pa).path.calculate(b));if(1==c){if(0==this._repeat){this.active=!1;this.toggleVisible&&0==this.getField(this.target,"alpha")&&this.setField_motion_actuators_MotionPathActuator_T(this.target,"visible",!1);this.complete(!0);return}null!=this._onRepeat&&this.callMethod(this._onRepeat,this._onRepeatParams);this._reflect&&(this._reverse=!this._reverse);this.startTime=a;this.timeOffset=this.startTime+this._delay;0<this._repeat&&this._repeat--}this.sendChange&&
  432. this.change()}},__class__:af});var Kb=function(a,b,c,d,e){null==e&&(e=!0);this.target=a;this.propertyName=b;this.start=c;this.change=d;this.isField=e};g["motion.actuators.PropertyDetails"]=Kb;Kb.__name__=["motion","actuators","PropertyDetails"];Kb.prototype={__class__:Kb};var Pa=function(a,b,c,d){null==d&&(d=!0);Kb.call(this,a,b,0,0,d);this.path=c};g["motion.actuators.PropertyPathDetails"]=Pa;Pa.__name__=["motion","actuators","PropertyPathDetails"];Pa.__super__=Kb;Pa.prototype=t(Kb.prototype,{__class__:Pa});
  433. var bf=function(a,b,c){fa.call(this,a,b,c)};g["motion.actuators.TransformActuator"]=bf;bf.__name__=["motion","actuators","TransformActuator"];bf.__super__=fa;bf.prototype=t(fa.prototype,{setField_openfl_geom_Transform:function(a,b,c){Object.prototype.hasOwnProperty.call(a,b)?a[b]=c:r.setProperty(a,b,c)},setField_motion_actuators_TransformActuator_T:function(a,b,c){Object.prototype.hasOwnProperty.call(a,b)?a[b]=c:r.setProperty(a,b,c)},apply:function(){this.initialize();if(null!=this.endColorTransform){var a=
  434. this.getField(this.target,"transform");this.setField_openfl_geom_Transform(a,"colorTransform",this.endColorTransform)}null!=this.endSoundTransform&&this.setField_motion_actuators_TransformActuator_T(this.target,"soundTransform",this.endSoundTransform)},initialize:function(){Object.prototype.hasOwnProperty.call(this.properties,"colorValue")&&v.__instanceof(this.target,ca)&&this.initializeColor();(Object.prototype.hasOwnProperty.call(this.properties,"soundVolume")||Object.prototype.hasOwnProperty.call(this.properties,
  435. "soundPan"))&&this.initializeSound();this.detailsLength=this.propertyDetails.length;this.initialized=!0},initializeColor:function(){this.endColorTransform=new Ld;var a=this.properties.colorValue,b=this.properties.colorStrength;if(1>b){var c;.5>b?(c=1,b*=2):(c=1-2*(b-.5),b=1);this.endColorTransform.redMultiplier=c;this.endColorTransform.greenMultiplier=c;this.endColorTransform.blueMultiplier=c;this.endColorTransform.redOffset=b*(a>>16&255);this.endColorTransform.greenOffset=b*(a>>8&255);this.endColorTransform.blueOffset=
  436. b*(a&255)}else this.endColorTransform.redMultiplier=0,this.endColorTransform.greenMultiplier=0,this.endColorTransform.blueMultiplier=0,this.endColorTransform.redOffset=a>>16&255,this.endColorTransform.greenOffset=a>>8&255,this.endColorTransform.blueOffset=a&255;a="redMultiplier greenMultiplier blueMultiplier redOffset greenOffset blueOffset".split(" ");Object.prototype.hasOwnProperty.call(this.properties,"colorAlpha")?(this.endColorTransform.alphaMultiplier=this.properties.colorAlpha,a.push("alphaMultiplier")):
  437. this.endColorTransform.alphaMultiplier=this.getField(this.target,"alpha");c=this.getField(this.target,"transform");c=this.getField(c,"colorTransform");this.tweenColorTransform=new Ld;for(var d,b=0;b<a.length;){var e=a[b];++b;d=this.getField(c,e);d=new Kb(this.tweenColorTransform,e,d,this.getField(this.endColorTransform,e)-d);this.propertyDetails.push(d)}},initializeSound:function(){null==this.getField(this.target,"soundTransform")&&this.setField_motion_actuators_TransformActuator_T(this.target,"soundTransform",
  438. new Cc);var a=this.getField(this.target,"soundTransform");this.endSoundTransform=this.getField(this.target,"soundTransform");this.tweenSoundTransform=new Cc;Object.prototype.hasOwnProperty.call(this.properties,"soundVolume")&&(this.endSoundTransform.volume=this.properties.soundVolume,this.propertyDetails.push(new Kb(this.tweenSoundTransform,"volume",a.volume,this.endSoundTransform.volume-a.volume)));Object.prototype.hasOwnProperty.call(this.properties,"soundPan")&&(this.endSoundTransform.pan=this.properties.soundPan,
  439. this.propertyDetails.push(new Kb(this.tweenSoundTransform,"pan",a.pan,this.endSoundTransform.pan-a.pan)))},update:function(a){fa.prototype.update.call(this,a);null!=this.endColorTransform&&(a=this.getField(this.target,"transform"),this.setField_openfl_geom_Transform(a,"colorTransform",this.tweenColorTransform));null!=this.endSoundTransform&&this.setField_motion_actuators_TransformActuator_T(this.target,"soundTransform",this.tweenSoundTransform)},__class__:bf});var hb=function(){};g["motion.easing.Linear"]=
  440. hb;hb.__name__=["motion","easing","Linear"];hb.__properties__={get_easeNone:"get_easeNone"};hb.get_easeNone=function(){return new Md};var Md=function(){};g["motion.easing.LinearEaseNone"]=Md;Md.__name__=["motion","easing","LinearEaseNone"];Md.__interfaces__=[ec];Md.prototype={calculate:function(a){return a},__class__:Md};var Qa=function(){};g["motion.easing.Quad"]=Qa;Qa.__name__=["motion","easing","Quad"];Qa.__properties__={get_easeOut:"get_easeOut",get_easeIn:"get_easeIn"};Qa.get_easeIn=function(){return new Nd};
  441. Qa.get_easeOut=function(){return new Od};var Nd=function(){};g["motion.easing.QuadEaseIn"]=Nd;Nd.__name__=["motion","easing","QuadEaseIn"];Nd.__interfaces__=[ec];Nd.prototype={calculate:function(a){return a*a},__class__:Nd};var Od=function(){};g["motion.easing.QuadEaseOut"]=Od;Od.__name__=["motion","easing","QuadEaseOut"];Od.__interfaces__=[ec];Od.prototype={calculate:function(a){return-a*(a-2)},__class__:Od};var lc=function(){};g["motion.easing.Quart"]=lc;lc.__name__=["motion","easing","Quart"];
  442. lc.__properties__={get_easeOut:"get_easeOut",get_easeIn:"get_easeIn"};lc.get_easeIn=function(){return new Pd};lc.get_easeOut=function(){return new Qd};var Pd=function(){};g["motion.easing.QuartEaseIn"]=Pd;Pd.__name__=["motion","easing","QuartEaseIn"];Pd.__interfaces__=[ec];Pd.prototype={calculate:function(a){return a*a*a*a},__class__:Pd};var Qd=function(){};g["motion.easing.QuartEaseOut"]=Qd;Qd.__name__=["motion","easing","QuartEaseOut"];Qd.__interfaces__=[ec];Qd.prototype={calculate:function(a){return-(--a*
  443. a*a*a-1)},__class__:Qd};var cf=function(){};g["openfl.IAssetCache"]=cf;cf.__name__=["openfl","IAssetCache"];cf.prototype={__class__:cf};var Rd=function(){this.__enabled=!0;this.bitmapData=new sa;this.font=new sa;this.sound=new sa};g["openfl.AssetCache"]=Rd;Rd.__name__=["openfl","AssetCache"];Rd.__interfaces__=[cf];Rd.prototype={getBitmapData:function(a){return this.bitmapData.get(a)},getFont:function(a){return this.font.get(a)},getSound:function(a){return this.sound.get(a)},hasBitmapData:function(a){return this.bitmapData.exists(a)},
  444. hasFont:function(a){return this.font.exists(a)},hasSound:function(a){return this.sound.exists(a)},setBitmapData:function(a,b){this.bitmapData.set(a,b)},get_enabled:function(){return this.__enabled},__class__:Rd,__properties__:{get_enabled:"get_enabled"}};var na=function(){};g["openfl.Assets"]=na;na.__name__=["openfl","Assets"];na.exists=function(a,b){return P.exists(a,b)};na.getBitmapData=function(a,b){null==b&&(b=!0);if(b&&na.cache.get_enabled()&&na.cache.hasBitmapData(a)){var c=na.cache.getBitmapData(a);
  445. if(na.isValidBitmapData(c))return c}c=P.getImage(a,!1);return null!=c?(c=nb.fromImage(c),b&&na.cache.get_enabled()&&na.cache.setBitmapData(a,c),c):null};na.getFont=function(a,b){null==b&&(b=!0);if(b&&na.cache.get_enabled()&&na.cache.hasFont(a))return na.cache.getFont(a);var c=P.getFont(a,!1);return null!=c?c:new Pc};na.getSound=function(a,b){null==b&&(b=!0);if(b&&na.cache.get_enabled()&&na.cache.hasSound(a)){var c=na.cache.getSound(a);if(na.isValidSound(c))return c}c=P.getPath(a);return null!=c?new fc(new Uc(c)):
  446. null};na.getText=function(a){return P.getText(a)};na.isValidBitmapData=function(a){return null!=a};na.isValidSound=function(a){return!0};var Sd=function(){A.call(this);this.__currentFrame=0;this.__currentLabels=[];this.__totalFrames=0;this.enabled=!0};g["openfl.display.MovieClip"]=Sd;Sd.__name__=["openfl","display","MovieClip"];Sd.__super__=A;Sd.prototype=t(A.prototype,{__class__:Sd});var Xb=function(){V.call(this);this.applicationDomain=Fc.currentDomain;this.bytesTotal=this.bytesLoaded=0;this.childAllowsParent=
  447. !0;this.parameters={}};g["openfl.display.LoaderInfo"]=Xb;Xb.__name__=["openfl","display","LoaderInfo"];Xb.create=function(a){var b=new Xb;b.uncaughtErrorEvents=new Td;null!=a?b.loader=a:b.url=Xb.__rootURL;return b};Xb.__super__=V;Xb.prototype=t(V.prototype,{__class__:Xb});var Fc=function(a){this.parentDomain=null!=a?a:Fc.currentDomain};g["openfl.system.ApplicationDomain"]=Fc;Fc.__name__=["openfl","system","ApplicationDomain"];Fc.prototype={__class__:Fc};var Td=function(a){V.call(this,a)};g["openfl.events.UncaughtErrorEvents"]=
  448. Td;Td.__name__=["openfl","events","UncaughtErrorEvents"];Td.__super__=V;Td.prototype=t(V.prototype,{__class__:Td});var mb=function(a,b,c,d,e,f){null==f&&(f=0);null==e&&(e=0);null==d&&(d=1);null==c&&(c=0);null==b&&(b=0);null==a&&(a=1);this.a=a;this.b=b;this.c=c;this.d=d;this.tx=e;this.ty=f;this.__array=[a,b,c,d,e,f,0,0,1]};g["openfl.geom.Matrix"]=mb;mb.__name__=["openfl","geom","Matrix"];mb.prototype={clone:function(){return new mb(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(a){var b=
  449. this.a*a.a+this.b*a.c;this.b=this.a*a.b+this.b*a.d;this.a=b;b=this.c*a.a+this.d*a.c;this.d=this.c*a.b+this.d*a.d;this.c=b;b=this.tx*a.a+this.ty*a.c+a.tx;this.ty=this.tx*a.b+this.ty*a.d+a.ty;this.tx=b},identity:function(){this.a=1;this.c=this.b=0;this.d=1;this.ty=this.tx=0},invert:function(){var a=this.a*this.d-this.b*this.c;if(0==a)this.a=this.b=this.c=this.d=0,this.tx=-this.tx,this.ty=-this.ty;else{var a=1/a,b=this.d*a;this.d=this.a*a;this.a=b;this.b*=-a;this.c*=-a;a=-this.a*this.tx-this.c*this.ty;
  450. this.ty=-this.b*this.tx-this.d*this.ty;this.tx=a}return this},mult:function(a){var b=new mb;b.a=this.a*a.a+this.b*a.c;b.b=this.a*a.b+this.b*a.d;b.c=this.c*a.a+this.d*a.c;b.d=this.c*a.b+this.d*a.d;b.tx=this.tx*a.a+this.ty*a.c+a.tx;b.ty=this.tx*a.b+this.ty*a.d+a.ty;return b},scale:function(a,b){this.a*=a;this.b*=b;this.c*=a;this.d*=b;this.tx*=a;this.ty*=b},to3DString:function(a){null==a&&(a=!1);return a?"matrix3d("+this.a+", "+this.b+", 0, 0, "+this.c+", "+this.d+", 0, 0, 0, 0, 1, 0, "+(this.tx|0)+
  451. ", "+(this.ty|0)+", 0, 1)":"matrix3d("+this.a+", "+this.b+", 0, 0, "+this.c+", "+this.d+", 0, 0, 0, 0, 1, 0, "+this.tx+", "+this.ty+", 0, 1)"},transformPoint:function(a){return new la(a.x*this.a+a.y*this.c+this.tx,a.x*this.b+a.y*this.d+this.ty)},translate:function(a,b){var c=new mb;c.tx=a;c.ty=b;this.concat(c)},toArray:function(a){null==a&&(a=!1);a?(this.__array[0]=this.a,this.__array[1]=this.c,this.__array[2]=0,this.__array[3]=this.b,this.__array[4]=this.d,this.__array[5]=0,this.__array[6]=this.tx,
  452. this.__array[7]=this.ty):(this.__array[0]=this.a,this.__array[1]=this.b,this.__array[2]=this.tx,this.__array[3]=this.c,this.__array[4]=this.d,this.__array[5]=this.ty,this.__array[6]=0,this.__array[7]=0);this.__array[8]=1;return this.__array},__translateTransformed:function(a){this.tx=a.x*this.a+a.y*this.c+this.tx;this.ty=a.x*this.b+a.y*this.d+this.ty},__class__:mb};var B=function(){};g["openfl.Lib"]=B;B.__name__=["openfl","Lib"];B.application=null;B.embed=Mc.openfl.embed=function(a,b,c,d,e){Id.embed(a,
  453. b,c,d,e)};B.getTimer=function(){return Id.getTimer()};var qc=function(){this.length=0};g["openfl.VectorData"]=qc;qc.__name__=["openfl","VectorData"];qc.prototype={__class__:qc};var Ab=function(a,b){this.width=a;this.height=b};g["openfl._internal.renderer.AbstractRenderer"]=Ab;Ab.__name__=["openfl","_internal","renderer","AbstractRenderer"];Ab.prototype={render:function(a){},resize:function(a,b){},__class__:Ab};var dd=function(){};g["openfl._internal.renderer.RenderSession"]=dd;dd.__name__=["openfl",
  454. "_internal","renderer","RenderSession"];dd.prototype={__class__:dd};var Jf=function(){};g["openfl._internal.renderer.canvas.CanvasBitmap"]=Jf;Jf.__name__=["openfl","_internal","renderer","canvas","CanvasBitmap"];Jf.render=function(a,b){if(a.__renderable&&!(0>=a.__worldAlpha)){var c=b.context;if(null!=a.bitmapData&&a.bitmapData.__isValid){null!=a.__mask&&b.maskManager.pushMask(a.__mask);a.bitmapData.__sync();c.globalAlpha=a.__worldAlpha;var d=a.__worldTransform,e=a.get_scrollRect();b.roundPixels?c.setTransform(d.a,
  455. d.b,d.c,d.d,d.tx|0,d.ty|0):c.setTransform(d.a,d.b,d.c,d.d,d.tx,d.ty);a.smoothing||(c.mozImageSmoothingEnabled=!1,c.webkitImageSmoothingEnabled=!1,c.imageSmoothingEnabled=!1);null==e?c.drawImage(a.bitmapData.__image.get_src(),0,0):c.drawImage(a.bitmapData.__image.get_src(),e.x,e.y,e.width,e.height,e.x,e.y,e.width,e.height);a.smoothing||(c.mozImageSmoothingEnabled=!0,c.webkitImageSmoothingEnabled=!0,c.imageSmoothingEnabled=!0);null!=a.__mask&&b.maskManager.popMask()}}};var k=function(){};g["openfl._internal.renderer.canvas.CanvasGraphics"]=
  456. k;k.__name__=["openfl","_internal","renderer","canvas","CanvasGraphics"];k.bounds=null;k.hasFill=null;k.hasStroke=null;k.inPath=null;k.inversePendingMatrix=null;k.pendingMatrix=null;k.positionX=null;k.positionY=null;k.setFill=null;k.context=null;k.pattern=null;k.beginPath=function(){k.inPath||(k.context.beginPath(),k.inPath=!0)};k.beginPatternFill=function(a,b){k.setFill||null==a||(null==k.pattern&&(k.pattern=k.context.createPattern(a.__image.get_src(),b?"repeat":"no-repeat")),k.context.fillStyle=
  457. k.pattern,k.setFill=!0)};k.closePath=function(a){k.inPath&&(k.hasFill&&(k.context.translate(-k.bounds.x,-k.bounds.y),null!=k.pendingMatrix?(k.context.transform(k.pendingMatrix.a,k.pendingMatrix.b,k.pendingMatrix.c,k.pendingMatrix.d,k.pendingMatrix.tx,k.pendingMatrix.ty),k.context.fill(),k.context.transform(k.inversePendingMatrix.a,k.inversePendingMatrix.b,k.inversePendingMatrix.c,k.inversePendingMatrix.d,k.inversePendingMatrix.tx,k.inversePendingMatrix.ty)):k.context.fill(),k.context.translate(k.bounds.x,
  458. k.bounds.y)),k.context.closePath(),k.hasStroke&&k.context.stroke());k.inPath=!1;a&&(k.hasFill=!1,k.hasStroke=!1,k.pendingMatrix=null,k.inversePendingMatrix=null)};k.drawRoundRect=function(a,b,c,d,e,f){-1==f&&(f=e);e*=.5;f*=.5;e>c/2&&(e=c/2);f>d/2&&(f=d/2);c=a+c;d=b+d;var p=-e+e*k.SIN45,h=-e+e*k.TAN22,g=-f+f*k.SIN45,l=-f+f*k.TAN22;k.context.moveTo(c,d-f);k.context.quadraticCurveTo(c,d+l,c+p,d+g);k.context.quadraticCurveTo(c+h,d,c-e,d);k.context.lineTo(a+e,d);k.context.quadraticCurveTo(a-h,d,a-p,d+
  459. g);k.context.quadraticCurveTo(a,d+l,a,d-f);k.context.lineTo(a,b+f);k.context.quadraticCurveTo(a,b-l,a-p,b-g);k.context.quadraticCurveTo(a-h,b,a+e,b);k.context.lineTo(c-e,b);k.context.quadraticCurveTo(c+h,b,c+p,b-g);k.context.quadraticCurveTo(c,b-l,c,b+f);k.context.lineTo(c,d-f)};k.render=function(a,b){if(a.__dirty){k.bounds=a.__bounds;k.hasFill=!1;k.hasStroke=!1;k.inPath=!1;k.positionX=0;k.positionY=0;if(a.__visible&&0!=a.__commands.length&&null!=k.bounds&&0!=k.bounds.width&&0!=k.bounds.height){null==
  460. a.__canvas&&(a.__canvas=window.document.createElement("canvas"),a.__context=a.__canvas.getContext("2d"));k.context=a.__context;a.__canvas.width=Math.ceil(k.bounds.width);a.__canvas.height=Math.ceil(k.bounds.height);var c=k.bounds.x,d=k.bounds.y,e=null,f=!1,p=0,h=a.__commands;try{for(;p<h.length;){var g=h[p];++p;switch(g[1]){case 0:var l=g[4],m=g[3],n=g[2];k.closePath(!1);if(n!=e||l!=f)e=n,f=l,k.pattern=null,k.setFill=!1,n.__sync();null!=m?(k.pendingMatrix=m,k.inversePendingMatrix=new mb(m.a,m.b,m.c,
  461. m.d,m.tx,m.ty),k.inversePendingMatrix.invert()):(k.pendingMatrix=null,k.inversePendingMatrix=null);k.hasFill=!0;break;case 1:var q=g[3],w=g[2];k.closePath(!1);k.context.fillStyle=1==q?"#"+W.hex(w,6):"rgba("+((w&16711680)>>>16)+", "+((w&65280)>>>8)+", "+(w&255)+", "+q+")";e=null;k.setFill=!0;k.hasFill=!0;break;case 2:var t=g[7],x=g[6],v=g[5],u=g[4],r=g[3],A=g[2];k.beginPatternFill(e,f);k.beginPath();k.context.bezierCurveTo(A-c,r-d,u-c,v-d,x-c,t-d);k.positionX=x;k.positionY=t;break;case 3:var y=g[5],
  462. C=g[4],G=g[3],E=g[2];k.beginPatternFill(e,f);k.beginPath();k.context.quadraticCurveTo(E-c,G-d,C-c,y-d);k.positionX=C;k.positionY=y;break;case 4:var D=g[4],H=g[3],B=g[2];k.beginPatternFill(e,f);k.beginPath();k.context.moveTo(B-c+D,H-d);k.context.arc(B-c,H-d,D,0,2*Math.PI,!0);break;case 5:var I=g[5],J=g[4],K=g[3],L=g[2],L=L-c,K=K-d,M=J/2*.5522848,P=I/2*.5522848,Q=L+J,O=K+I,R=L+J/2,N=K+I/2;k.beginPatternFill(e,f);k.beginPath();k.context.moveTo(L,N);k.context.bezierCurveTo(L,N-P,R-M,K,R,K);k.context.bezierCurveTo(R+
  463. M,K,Q,N-P,Q,N);k.context.bezierCurveTo(Q,N+P,R+M,O,R,O);k.context.bezierCurveTo(R-M,O,L,N+P,L,N);break;case 6:var S=g[5],U=g[4],T=g[3],V=g[2],Z=!1;if(null!=e){var Y=0,aa=0,ca=0,ba=0,ea=!0;if(null!=k.pendingMatrix)if(0!=k.pendingMatrix.b||0!=k.pendingMatrix.c)ea=!1;else var fa=k.inversePendingMatrix.transformPoint(new la(V,T)),ga=k.inversePendingMatrix.transformPoint(new la(V+U,T+S)),Y=fa.y,ba=fa.x,ca=ga.y,aa=ga.x;else Y=T,ba=V,ca=T+S,aa=V+U;ea&&0<=Y&&0<=ba&&aa<=e.width&&ca<=e.height&&(Z=!0,k.context.drawImage(e.__image.get_src(),
  464. ba,Y,aa-ba,ca-Y,V-c,T-d,U,S))}Z||(k.beginPatternFill(e,f),k.beginPath(),k.context.rect(V-c,T-d,U,S));break;case 7:var ja=g[7],ka=g[6],na=g[5],qa=g[4],ra=g[3],sa=g[2];k.beginPatternFill(e,f);k.beginPath();k.drawRoundRect(sa-c,ra-d,qa,na,ka,ja);break;case 8:var pa=g[6],ha=g[5],X=g[3],ma=g[2];k.closePath(!1);var ua=0<(ha&1),va=0<(ha&2),wa=0<(ha&16),Za=0<(ha&4),La=0<(ha&8),Aa=0<(ha&32),Oa=0<(ha&64),Ua=0<(ha&65536);wa&&(va=ua=!1);var Va=0,Wa=0,Xa=0,za=0,ia=3;Aa&&(ia=Oa?8:6);ua&&(Va=ia,ia++);va&&(Wa=ia,
  465. ia++);wa&&(za=ia,ia+=4);Za&&(ia+=3);La&&(Xa=ia,ia++);var Ra=X.length;0<=pa&&Ra>pa&&(Ra=pa);var da=0,oa=null,ta=null,$a=-1,ab;ma.__bitmap.__sync();ab=ma.__bitmap.__image.get_src();Ua&&(k.context.globalCompositeOperation="lighter");for(;da<Ra;){var Ca;Ca=Aa?-1:X[da+2]|0;Aa||Ca==$a?Aa&&(oa=ma.__rectTile,oa.setTo(X[da+2],X[da+3],X[da+4],X[da+5]),ta=ma.__point,Oa?(ta.x=X[da+6],ta.y=X[da+7]):(ta.x=0,ta.y=0)):(oa=ma.__tileRects[Ca],ta=ma.__centerPoints[Ca],$a=Ca);if(null!=oa&&0<oa.width&&0<oa.height&&null!=
  466. ta){k.context.save();k.context.translate(X[da],X[da+1]);va&&k.context.rotate(X[da+Wa]);var Da=1;ua&&(Da=X[da+Va]);wa&&k.context.transform(X[da+za],X[da+za+1],X[da+za+2],X[da+za+3],0,0);La&&(k.context.globalAlpha=X[da+Xa]);k.context.drawImage(ab,oa.x,oa.y,oa.width,oa.height,-ta.x*Da,-ta.y*Da,oa.width*Da,oa.height*Da);k.context.restore()}da+=ia}Ua&&(k.context.globalCompositeOperation="source-over");break;case 10:k.closePath(!0);break;case 11:var bb=g[9],eb=g[8],cb=g[7],db=g[4],Fa=g[3],hb=g[2];k.closePath(!1);
  467. if(null==hb)k.hasStroke=!1;else{k.context.lineWidth=hb;k.context.lineJoin=null==eb?"round":z.string(eb).toLowerCase();if(null==cb)k.context.lineCap="round";else switch(cb[1]){case 0:k.context.lineCap="butt";break;default:k.context.lineCap=z.string(cb).toLowerCase()}k.context.miterLimit=null==bb?3:bb;if(1==db||null==db)k.context.strokeStyle=null==Fa?"#000000":"#"+W.hex(Fa&16777215,6);else{var nb=(Fa&16711680)>>>16,pb=(Fa&65280)>>>8,sb=Fa&255;k.context.strokeStyle=null==Fa?"#000000":"rgba("+nb+", "+
  468. pb+", "+sb+", "+db+")"}k.hasStroke=!0}break;case 12:var ib=g[3],jb=g[2];k.beginPatternFill(e,f);k.beginPath();k.context.lineTo(jb-c,ib-d);k.positionX=jb;k.positionY=ib;break;case 13:var kb=g[3],lb=g[2];k.beginPath();k.context.moveTo(lb-c,kb-d);k.positionX=lb;k.positionY=kb;break;case 9:var vb=g[5],xa=g[4],xb=g[3],zb=g[2];k.closePath(!1);var ya=zb,Ya=xb,Ia=xa,Ja=null,ob=null==e;if(ob&&null!=Ia)throw"__break__";if(!ob){if(null==xa){var fb;fb=new qc;fb.data=[];fb.length=0;fb.fixed=!1;for(var xa=fb,wb=
  469. 0,Hb=ya.length/2|0;wb<Hb;){var yb=wb++;if(!xa.fixed){xa.length++;if(xa.data.length<xa.length){var tb;tb=Array(xa.data.length+10);Mb.blit(xa.data,0,tb,0,xa.data.length);xa.data=tb}xa.data[xa.length-1]=ya.data[2*yb]/e.width}xa.length;if(!xa.fixed){xa.length++;if(xa.data.length<xa.length){var ub;ub=Array(xa.data.length+10);Mb.blit(xa.data,0,ub,0,xa.data.length);xa.data=ub}xa.data[xa.length-1]=ya.data[2*yb+1]/e.height}xa.length}}var Db=k.normalizeUvt(xa,xa.length!=ya.length),Lb=Db.max,Ia=Db.uvt,Ja=1<
  470. Lb?k.createTempPatternCanvas(e,f,k.bounds.width,k.bounds.height):k.createTempPatternCanvas(e,f,e.width,e.height)}for(var Ba=0,Nb=Ya.length,Ab,Bb,Cb,Eb,Fb,Gb,Ib,Jb,Kb,Qa,Sa,Ea,Ga,Ha,Ka,qb,rb,Ma,Na,Pa,Ta,gb,Ob,Pb,Qb,Rb,Sb,Tb;Ba<Nb;){Ab=Ba;Bb=Ba+1;Cb=Ba+2;Eb=2*Ya.data[Ab];Fb=2*Ya.data[Ab]+1;Gb=2*Ya.data[Bb];Ib=2*Ya.data[Bb]+1;Jb=2*Ya.data[Cb];Kb=2*Ya.data[Cb]+1;Qa=ya.data[Eb];Sa=ya.data[Fb];Ea=ya.data[Gb];Ga=ya.data[Ib];Ha=ya.data[Jb];Ka=ya.data[Kb];switch(vb[1]){case 2:if(!(0>(Ea-Qa)*(Ka-Sa)-(Ga-Sa)*
  471. (Ha-Qa))){Ba+=3;continue}break;case 0:if(0>(Ea-Qa)*(Ka-Sa)-(Ga-Sa)*(Ha-Qa)){Ba+=3;continue}}ob?(k.context.beginPath(),k.context.moveTo(Qa,Sa),k.context.lineTo(Ea,Ga),k.context.lineTo(Ha,Ka),k.context.closePath(),k.context.fill()):(k.context.save(),k.context.beginPath(),k.context.moveTo(Qa,Sa),k.context.lineTo(Ea,Ga),k.context.lineTo(Ha,Ka),k.context.closePath(),k.context.clip(),qb=Ia.data[Eb]*Ja.width,Ma=Ia.data[Gb]*Ja.width,Pa=Ia.data[Jb]*Ja.width,rb=Ia.data[Fb]*Ja.height,Na=Ia.data[Ib]*Ja.height,
  472. Ta=Ia.data[Kb]*Ja.height,gb=qb*(Ta-Na)-Ma*Ta+Pa*Na+(Ma-Pa)*rb,0!=gb&&(Ob=-(rb*(Ha-Ea)-Na*Ha+Ta*Ea+(Na-Ta)*Qa)/gb,Pb=(Na*Ka+rb*(Ga-Ka)-Ta*Ga+(Ta-Na)*Sa)/gb,Qb=(qb*(Ha-Ea)-Ma*Ha+Pa*Ea+(Ma-Pa)*Qa)/gb,Rb=-(Ma*Ka+qb*(Ga-Ka)-Pa*Ga+(Pa-Ma)*Sa)/gb,Sb=(qb*(Ta*Ea-Na*Ha)+rb*(Ma*Ha-Pa*Ea)+(Pa*Na-Ma*Ta)*Qa)/gb,Tb=(qb*(Ta*Ga-Na*Ka)+rb*(Ma*Ka-Pa*Ga)+(Pa*Na-Ma*Ta)*Sa)/gb,k.context.transform(Ob,Pb,Qb,Rb,Sb,Tb),k.context.drawImage(Ja,0,0),k.context.restore()));Ba+=3}}}}catch(Ub){if("__break__"!=Ub)throw Ub;}}else a.__canvas=
  473. null,a.__context=null;a.__dirty=!1;k.closePath(!1)}};k.renderMask=function(a,b){if(0!=a.__commands.length)for(var c=b.context,d=0,e=a.__commands;d<e.length;){var f=e[d];++d;switch(f[1]){case 2:c.bezierCurveTo(f[2]-0,f[4]-0,f[3]-0,f[5]-0,f[6]-0,f[7]-0);break;case 3:c.quadraticCurveTo(f[2]-0,f[3]-0,f[4]-0,f[5]-0);break;case 4:c.arc(f[2]-0,f[3]-0,f[4],0,2*Math.PI,!0);break;case 5:var p=f[5],g=f[4],l=f[3],f=f[2],f=f-0,l=l-0,m=g/2*.5522848,F=p/2*.5522848,n=f+g,q=l+p,g=f+g/2,p=l+p/2;c.moveTo(f,p);c.bezierCurveTo(f,
  474. p-F,g-m,l,g,l);c.bezierCurveTo(g+m,l,n,p-F,n,p);c.bezierCurveTo(n,p+F,g+m,q,g,q);c.bezierCurveTo(g-m,q,f,p+F,f,p);break;case 6:c.rect(f[2]-0,f[3]-0,f[4],f[5]);break;case 7:k.drawRoundRect(f[2]-0,f[3]-0,f[4],f[5],f[6],f[7]);break;case 12:c.lineTo(f[2]-0,f[3]-0);break;case 13:c.moveTo(f[2]-0,f[3]-0)}}};k.createTempPatternCanvas=function(a,b,c,d){var e=window.document.createElement("canvas"),f=e.getContext("2d");e.width=Math.ceil(c);e.height=Math.ceil(d);f.fillStyle=f.createPattern(a.__image.get_src(),
  475. b?"repeat":"no-repeat");f.beginPath();f.moveTo(0,0);f.lineTo(0,d);f.lineTo(c,d);f.lineTo(c,0);f.lineTo(0,0);f.closePath();f.fill();return e};k.normalizeUvt=function(a,b){null==b&&(b=!1);for(var c=Math.NEGATIVE_INFINITY,d=Math.NEGATIVE_INFINITY,e=a.length,f=1,p=e+1;f<p;)d=f++,b&&0==d%3||(d=a.data[d-1],c<d&&(c=d));f=new qc;f.data=[];f.length=0;f.fixed=!1;p=1;for(e+=1;p<e;)if(d=p++,!b||0!=d%3){if(!f.fixed){f.length++;if(f.data.length<f.length){var g;g=Array(f.data.length+10);Mb.blit(f.data,0,g,0,f.data.length);
  476. f.data=g}f.data[f.length-1]=a.data[d-1]/c}f.length}return{max:c,uvt:f}};var Ud=function(a,b,c){Ab.call(this,a,b);this.context=c;this.renderSession=new dd;this.renderSession.context=c;this.renderSession.roundPixels=!0;this.renderSession.renderer=this;this.renderSession.maskManager=new df(this.renderSession)};g["openfl._internal.renderer.canvas.CanvasRenderer"]=Ud;Ud.__name__=["openfl","_internal","renderer","canvas","CanvasRenderer"];Ud.__super__=Ab;Ud.prototype=t(Ab.prototype,{render:function(a){this.context.setTransform(1,
  477. 0,0,1,0,0);this.context.globalAlpha=1;!a.__transparent&&a.__clearBeforeRender?(this.context.fillStyle=a.__colorString,this.context.fillRect(0,0,a.stageWidth,a.stageHeight)):a.__transparent&&a.__clearBeforeRender&&this.context.clearRect(0,0,a.stageWidth,a.stageHeight);a.__renderCanvas(this.renderSession)},__class__:Ud});var Bf=function(){};g["openfl._internal.renderer.canvas.CanvasShape"]=Bf;Bf.__name__=["openfl","_internal","renderer","canvas","CanvasShape"];Bf.render=function(a,b){if(a.__renderable&&
  478. !(0>=a.__worldAlpha)){var c=a.__graphics;if(null!=c&&(k.render(c,b),null!=c.__canvas)){null!=a.__mask&&b.maskManager.pushMask(a.__mask);var d=b.context,e=a.get_scrollRect();d.globalAlpha=a.__worldAlpha;var f=a.__worldTransform;b.roundPixels?d.setTransform(f.a,f.b,f.c,f.d,f.tx|0,f.ty|0):d.setTransform(f.a,f.b,f.c,f.d,f.tx,f.ty);null==e?d.drawImage(c.__canvas,c.__bounds.x,c.__bounds.y):d.drawImage(c.__canvas,e.x-c.__bounds.x,e.y-c.__bounds.y,e.width,e.height,c.__bounds.x+e.x,c.__bounds.y+e.y,e.width,
  479. e.height);null!=a.__mask&&b.maskManager.popMask()}}};var aa=function(){};g["openfl._internal.renderer.canvas.CanvasTextField"]=aa;aa.__name__=["openfl","_internal","renderer","canvas","CanvasTextField"];aa.context=null;aa.render=function(a,b){if(a.__renderable&&!(0>=a.__worldAlpha)&&(aa.update(a),null!=a.__canvas)){var c=b.context;c.globalAlpha=a.__worldAlpha;var d=a.__worldTransform,e=a.get_scrollRect();b.roundPixels?c.setTransform(d.a,d.b,d.c,d.d,d.tx|0,d.ty|0):c.setTransform(d.a,d.b,d.c,d.d,d.tx,
  480. d.ty);null==e?c.drawImage(a.__canvas,0,0):c.drawImage(a.__canvas,e.x,e.y,e.width,e.height,e.x,e.y,e.width,e.height)}};aa.renderText=function(a,b,c,d){aa.context.font=a.__getFont(c);aa.context.textBaseline="top";aa.context.fillStyle="#"+W.hex(c.color,6);b=b.split("\n");for(var e=0,f=0;f<b.length;){var p=b[f];++f;switch(c.align[1]){case 3:aa.context.textAlign="center";aa.context.fillText(p,a.__width/2,2+e,a.__width-4);break;case 1:aa.context.textAlign="end";aa.context.fillText(p,a.__width-2,2+e,a.__width-
  481. 4);break;default:aa.context.textAlign="start",aa.context.fillText(p,2+d,2+e,a.__width-4)}e+=a.get_textHeight()}};aa.update=function(a){if(a.__dirty)if(!(null!=a.__text&&""!=a.__text||a.background||a.border)||(0>=a.get_width()||0>=a.get_height())&&a.autoSize!=ua.LEFT)a.__canvas=null,a.__context=null,a.__dirty=!1;else{null==a.__canvas&&(a.__canvas=window.document.createElement("canvas"),a.__context=a.__canvas.getContext("2d"));aa.context=a.__context;if(null!=a.__text&&""!=a.__text){var b=a.get_text();
  482. if(a.displayAsPassword){for(var b=b.length,c="",d=0;d<b;)d++,c+="*";b=c}for(var c=a.__measureText(),e=d=0;e<c.length;){var f=c[e];++e;d+=f}a.autoSize==ua.LEFT&&(a.__width=d+4);a.__canvas.width=Math.ceil(a.__width);a.__canvas.height=Math.ceil(a.__height);if(a.border||a.background)a.__context.rect(.5,.5,a.__width-1,a.__height-1),a.background&&(aa.context.fillStyle="#"+W.hex(a.backgroundColor,6),aa.context.fill()),a.border&&(aa.context.lineWidth=1,aa.context.strokeStyle="#"+W.hex(a.borderColor,6),aa.context.stroke());
  483. a.__hasFocus&&a.__selectionStart==a.__cursorPosition&&a.__showCursor?(d=a.__getTextWidth(b.substring(0,a.__cursorPosition)),aa.context.fillStyle="#"+W.hex(a.__textFormat.color,6),aa.context.fillRect(d,5,1,a.__textFormat.size-5)):a.__hasFocus&&0<Math.abs(a.__selectionStart-a.__cursorPosition)&&!a.__isKeyDown&&(e=z["int"](Math.min(a.__selectionStart,a.__cursorPosition)),f=z["int"](Math.max(a.__selectionStart,a.__cursorPosition)),d=a.__getTextWidth(b.substring(0,e)),e=a.__getTextWidth(b.substring(e,
  484. f)),aa.context.fillStyle="#"+W.hex(a.__textFormat.color,6),aa.context.fillRect(d,5,e,a.__textFormat.size-5));if(null==a.__ranges)aa.renderText(a,b,a.__textFormat,0);else for(var f=e=0,p=a.__ranges.length;f<p;){var g=f++,d=a.__ranges[g];aa.renderText(a,b.substring(d.start,d.end),d.format,e);e+=c[g]}}else if(a.autoSize==ua.LEFT&&(a.__width=4),a.__canvas.width=Math.ceil(a.__width),a.__canvas.height=Math.ceil(a.__height),a.border||a.background)a.border?aa.context.rect(.5,.5,a.__width-1,a.__height-1):
  485. a.__context.rect(0,0,a.__width,a.__height),a.background&&(aa.context.fillStyle="#"+W.hex(a.backgroundColor,6),aa.context.fill()),a.border&&(aa.context.lineWidth=1,aa.context.lineCap="square",aa.context.strokeStyle="#"+W.hex(a.borderColor,6),aa.context.stroke());a.__dirty=!1;return!0}return!1};var df=function(a){this.renderSession=a};g["openfl._internal.renderer.canvas.MaskManager"]=df;df.__name__=["openfl","_internal","renderer","canvas","MaskManager"];df.prototype={pushMask:function(a){var b=this.renderSession.context;
  486. b.save();var c=a.__getTransform();b.setTransform(c.a,c.c,c.b,c.d,c.tx,c.ty);b.beginPath();a.__renderMask(this.renderSession);b.clip()},pushRect:function(a,b){var c=this.renderSession.context;c.save();c.setTransform(b.a,b.c,b.b,b.d,b.tx,b.ty);c.beginPath();c.rect(a.x,a.y,a.width,a.height);c.clip()},popMask:function(){this.renderSession.context.restore()},__class__:df};var Vd=function(){};g["openfl._internal.renderer.dom.DOMBitmap"]=Vd;Vd.__name__=["openfl","_internal","renderer","dom","DOMBitmap"];
  487. Vd.renderCanvas=function(a,b){null!=a.__image&&(b.element.removeChild(a.__image),a.__image=null);null==a.__canvas&&(a.__canvas=window.document.createElement("canvas"),a.__context=a.__canvas.getContext("2d"),a.smoothing||(a.__context.mozImageSmoothingEnabled=!1,a.__context.webkitImageSmoothingEnabled=!1,a.__context.imageSmoothingEnabled=!1),ya.initializeElement(a,a.__canvas,b));a.bitmapData.__sync();a.__canvas.width=a.bitmapData.width;a.__canvas.height=a.bitmapData.height;a.__context.globalAlpha=a.__worldAlpha;
  488. a.__context.drawImage(a.bitmapData.__image.buffer.__srcCanvas,0,0);ya.applyStyle(a,b,!0,!1,!0)};Vd.renderImage=function(a,b){null!=a.__canvas&&(b.element.removeChild(a.__canvas),a.__canvas=null);null==a.__image&&(a.__image=window.document.createElement("img"),a.__image.src=a.bitmapData.__image.buffer.__srcImage.src,ya.initializeElement(a,a.__image,b));ya.applyStyle(a,b,!0,!0,!0)};var ya=function(a,b,c){Ab.call(this,a,b);this.element=c;this.renderSession=new dd;this.renderSession.element=c;this.renderSession.roundPixels=
  489. !0;a=window.getComputedStyle(document.documentElement,"");a=(Array.prototype.slice.call(a).join("").match(/-(moz|webkit|ms)-/)||""===a.OLink&&["","o"])[1];"WebKit|Moz|MS|O".match(new RegExp("("+a+")","i"));a[0].toUpperCase();a.substr(1);this.renderSession.vendorPrefix=a;this.renderSession.transformProperty="webkit"==a?"-webkit-transform":"transform";this.renderSession.transformOriginProperty="webkit"==a?"-webkit-transform-origin":"transform-origin";this.renderSession.renderer=this};g["openfl._internal.renderer.dom.DOMRenderer"]=
  490. ya;ya.__name__=["openfl","_internal","renderer","dom","DOMRenderer"];ya.applyStyle=function(a,b,c,d,e){var f=a.__style;c&&a.__worldTransformChanged&&f.setProperty(b.transformProperty,a.__worldTransform.to3DString(b.roundPixels),null);a.__worldZ!=++b.z&&(a.__worldZ=b.z,f.setProperty("z-index",null==a.__worldZ?"null":""+a.__worldZ,null));d&&a.__worldAlphaChanged&&(1>a.__worldAlpha?f.setProperty("opacity",null==a.__worldAlpha?"null":""+a.__worldAlpha,null):f.removeProperty("opacity"));e&&a.__worldClipChanged&&
  491. (null==a.__worldClip?f.removeProperty("clip"):(a=a.__worldClip.transform(a.__worldTransform.clone().invert()),f.setProperty("clip","rect("+a.y+"px, "+a.get_right()+"px, "+a.get_bottom()+"px, "+a.x+"px)",null)))};ya.initializeElement=function(a,b,c){var d=a.__style=b.style;d.setProperty("position","absolute",null);d.setProperty("top","0",null);d.setProperty("left","0",null);d.setProperty(c.transformOriginProperty,"0 0 0",null);c.element.appendChild(b);a.__worldAlphaChanged=!0;a.__worldClipChanged=
  492. !0;a.__worldTransformChanged=!0;a.__worldVisibleChanged=!0;a.__worldZ=-1};ya.__super__=Ab;ya.prototype=t(Ab.prototype,{render:function(a){this.element.style.background=a.__colorString;this.renderSession.z=1;a.__renderDOM(this.renderSession)},__class__:ya});var Cf=function(){};g["openfl._internal.renderer.dom.DOMShape"]=Cf;Cf.__name__=["openfl","_internal","renderer","dom","DOMShape"];Cf.render=function(a,b){var c=a.__graphics;if(null!=a.stage&&a.__worldVisible&&a.__renderable&&null!=c){if(c.__dirty||
  493. a.__worldAlphaChanged||null==a.__canvas&&null!=c.__canvas)k.render(c,b),null!=c.__canvas?(null==a.__canvas&&(a.__canvas=window.document.createElement("canvas"),a.__context=a.__canvas.getContext("2d"),ya.initializeElement(a,a.__canvas,b)),a.__canvas.width=c.__canvas.width,a.__canvas.height=c.__canvas.height,a.__context.globalAlpha=a.__worldAlpha,a.__context.drawImage(c.__canvas,0,0)):null!=a.__canvas&&(b.element.removeChild(a.__canvas),a.__canvas=null,a.__style=null);if(null!=a.__canvas){if(a.__worldTransformChanged||
  494. c.__transformDirty){c.__transformDirty=!1;var d=new mb;d.translate(c.__bounds.x,c.__bounds.y);d=d.mult(a.__worldTransform);a.__style.setProperty(b.transformProperty,b.roundPixels?"matrix3d("+d.a+", "+d.b+", 0, 0, "+d.c+", "+d.d+", 0, 0, 0, 0, 1, 0, "+(d.tx|0)+", "+(d.ty|0)+", 0, 1)":"matrix3d("+d.a+", "+d.b+", 0, 0, "+d.c+", "+d.d+", 0, 0, 0, 0, 1, 0, "+d.tx+", "+d.ty+", 0, 1)",null)}ya.applyStyle(a,b,!1,!1,!0)}}else null!=a.__canvas&&(b.element.removeChild(a.__canvas),a.__canvas=null,a.__style=null)};
  495. var Ff=function(){};g["openfl._internal.renderer.dom.DOMTextField"]=Ff;Ff.__name__=["openfl","_internal","renderer","dom","DOMTextField"];Ff.render=function(a,b){if(null!=a.stage&&a.__worldVisible&&a.__renderable){if(a.__dirty||null==a.__div)if(""!=a.__text||a.background||a.border){null==a.__div&&(a.__div=window.document.createElement("div"),ya.initializeElement(a,a.__div,b),a.__style.setProperty("cursor","inherit",null));var c=a.__style;a.__div.innerHTML=a.__text;a.background?c.setProperty("background-color",
  496. "#"+W.hex(a.backgroundColor,6),null):c.removeProperty("background-color");a.border?c.setProperty("border","solid 1px #"+W.hex(a.borderColor,6),null):c.removeProperty("border");c.setProperty("font",a.__getFont(a.__textFormat),null);c.setProperty("color","#"+W.hex(a.__textFormat.color,6),null);a.autoSize!=ua.NONE?c.setProperty("width","auto",null):c.setProperty("width",a.__width+"px",null);c.setProperty("height",a.__height+"px",null);switch(a.__textFormat.align[1]){case 3:c.setProperty("text-align",
  497. "center",null);break;case 1:c.setProperty("text-align","right",null);break;default:c.setProperty("text-align","left",null)}a.__dirty=!1}else null!=a.__div&&(b.element.removeChild(a.__div),a.__div=null);null!=a.__div&&ya.applyStyle(a,b,!0,!0,!1)}else null!=a.__div&&(b.element.removeChild(a.__div),a.__div=null,a.__style=null)};var Kf=function(){};g["openfl._internal.renderer.opengl.GLBitmap"]=Kf;Kf.__name__=["openfl","_internal","renderer","opengl","GLBitmap"];Kf.render=function(a,b){!a.__renderable||
  498. 0>=a.__worldAlpha||b.spriteBatch.render(a)};var ja=function(a,b,c,d,e,f){null==f&&(f=!1);null==e&&(e=!1);null==d&&(d=!1);null==b&&(b=600);null==a&&(a=800);Ab.call(this,a,b);this.transparent=d;this.preserveDrawingBuffer=f;this.width=a;this.height=b;this.options={alpha:d,antialias:e,premultipliedAlpha:d,stencil:!0,preserveDrawingBuffer:f};this._glContextId=ja.glContextId++;this.gl=c;ja.glContexts[this._glContextId]=c;null==ja.blendModesWebGL&&(ja.blendModesWebGL=new Zc,ja.blendModesWebGL.set(H.NORMAL,
  499. [c.ONE,c.ONE_MINUS_SRC_ALPHA]),ja.blendModesWebGL.set(H.ADD,[c.SRC_ALPHA,c.DST_ALPHA]),ja.blendModesWebGL.set(H.MULTIPLY,[c.DST_COLOR,c.ONE_MINUS_SRC_ALPHA]),ja.blendModesWebGL.set(H.SCREEN,[c.SRC_ALPHA,c.ONE]),ja.blendModesWebGL.set(H.ALPHA,[c.ONE,c.ONE_MINUS_SRC_ALPHA]),ja.blendModesWebGL.set(H.DARKEN,[c.ONE,c.ONE_MINUS_SRC_ALPHA]),ja.blendModesWebGL.set(H.DIFFERENCE,[c.ONE,c.ONE_MINUS_SRC_ALPHA]),ja.blendModesWebGL.set(H.ERASE,[c.ONE,c.ONE_MINUS_SRC_ALPHA]),ja.blendModesWebGL.set(H.HARDLIGHT,[c.ONE,
  500. c.ONE_MINUS_SRC_ALPHA]),ja.blendModesWebGL.set(H.INVERT,[c.ONE,c.ONE_MINUS_SRC_ALPHA]),ja.blendModesWebGL.set(H.LAYER,[c.ONE,c.ONE_MINUS_SRC_ALPHA]),ja.blendModesWebGL.set(H.LIGHTEN,[c.ONE,c.ONE_MINUS_SRC_ALPHA]),ja.blendModesWebGL.set(H.OVERLAY,[c.ONE,c.ONE_MINUS_SRC_ALPHA]),ja.blendModesWebGL.set(H.SUBTRACT,[c.ONE,c.ONE_MINUS_SRC_ALPHA]));this.projection=new la;this.projection.x=this.width/2;this.projection.y=-this.height/2;this.offset=new la(0,0);this.resize(this.width,this.height);this.contextLost=
  501. !1;this.shaderManager=new ef(c);this.spriteBatch=new ff(c);this.maskManager=new gf(c);this.filterManager=new hf(c,this.transparent);this.stencilManager=new jf(c);this.blendModeManager=new kf(c);this.renderSession=new dd;this.renderSession.gl=this.gl;this.renderSession.drawCount=0;this.renderSession.shaderManager=this.shaderManager;this.renderSession.maskManager=this.maskManager;this.renderSession.filterManager=this.filterManager;this.renderSession.blendModeManager=this.blendModeManager;this.renderSession.spriteBatch=
  502. this.spriteBatch;this.renderSession.stencilManager=this.stencilManager;this.renderSession.renderer=this;c.useProgram(this.shaderManager.defaultShader.program);c.disable(c.DEPTH_TEST);c.disable(c.CULL_FACE);c.enable(c.BLEND);c.colorMask(!0,!0,!0,this.transparent)};g["openfl._internal.renderer.opengl.GLRenderer"]=ja;ja.__name__=["openfl","_internal","renderer","opengl","GLRenderer"];ja.__super__=Ab;ja.prototype=t(Ab.prototype,{render:function(a){if(!this.contextLost){var b=this.gl;b.viewport(0,0,this.width,
  503. this.height);b.bindFramebuffer(b.FRAMEBUFFER,null);this.transparent?b.clearColor(0,0,0,0):b.clearColor(a.__colorSplit[0]|0,a.__colorSplit[1]|0,a.__colorSplit[2]|0,1);b.clear(b.COLOR_BUFFER_BIT);this.renderDisplayObject(a,this.projection)}},renderDisplayObject:function(a,b,c){this.renderSession.blendModeManager.setBlendMode(H.NORMAL);this.renderSession.drawCount=0;this.renderSession.currentBlendMode=null;this.renderSession.projection=b;this.renderSession.offset=this.offset;this.spriteBatch.begin(this.renderSession);
  504. this.filterManager.begin(this.renderSession,c);a.__renderGL(this.renderSession);this.spriteBatch.end()},resize:function(a,b){Ab.prototype.resize.call(this,a,b);this.gl.viewport(0,0,a,b);this.projection.x=a/2;this.projection.y=-b/2},__class__:ja});var Gf=function(){};g["openfl._internal.renderer.opengl.GLTextField"]=Gf;Gf.__name__=["openfl","_internal","renderer","opengl","GLTextField"];Gf.render=function(a,b){if(a.__renderable&&!(0>=a.__worldAlpha)){var c=b.gl,d=aa.update(a);null==a.__texture&&(a.__texture=
  505. c.createTexture(),c.bindTexture(c.TEXTURE_2D,a.__texture),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,c.LINEAR),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,c.LINEAR),d=!0);d&&(c.bindTexture(c.TEXTURE_2D,a.__texture),c.texImage2D(c.TEXTURE_2D,0,c.RGBA,c.RGBA,c.UNSIGNED_BYTE,a.__canvas),c.bindTexture(c.TEXTURE_2D,null))}};var N=function(a){this._UID=N.__UID++;this.gl=
  506. a;this.program=null;this.attributes=[]};g["openfl._internal.renderer.opengl.shaders.AbstractShader"]=N;N.__name__="openfl _internal renderer opengl shaders AbstractShader".split(" ");N.compileProgram=function(a,b,c){c=N.CompileFragmentShader(a,c);b=N.CompileVertexShader(a,b);var d=a.createProgram();null!=c&&null!=b&&(a.attachShader(d,b),a.attachShader(d,c),a.linkProgram(d),0==a.getProgramParameter(d,a.LINK_STATUS)&&console.log("Could not initialize shaders"));return d};N.CompileVertexShader=function(a,
  507. b){return N._CompileShader(a,b,a.VERTEX_SHADER)};N.CompileFragmentShader=function(a,b){return N._CompileShader(a,b,a.FRAGMENT_SHADER)};N._CompileShader=function(a,b,c){b=b.join("\n");c=a.createShader(c);a.shaderSource(c,b);a.compileShader(c);return 0==a.getShaderParameter(c,a.COMPILE_STATUS)?(console.log(a.getShaderInfoLog(c)),null):c};N.prototype={init:function(){var a=this.gl,b=N.compileProgram(a,this.vertexSrc,this.fragmentSrc);a.useProgram(b);this.program=b},__class__:N};var Wd=function(a){N.call(this,
  508. a);this.fragmentSrc=["precision mediump float;","varying vec4 vColor;","void main(void) {"," gl_FragColor = vColor;","}"];this.vertexSrc=["attribute vec2 aVertexPosition;","uniform mat3 translationMatrix;","uniform vec2 projectionVector;","uniform vec2 offsetVector;","uniform vec3 tint;","uniform float alpha;","uniform vec3 color;","varying vec4 vColor;","void main(void) {"," vec3 v = translationMatrix * vec3(aVertexPosition , 1.0);"," v -= offsetVector.xyx;"," gl_Position = vec4( v.x / projectionVector.x -1.0, v.y / -projectionVector.y + 1.0 , 0.0, 1.0);",
  509. " vColor = vec4(color * alpha * tint, alpha);","}"];this.init()};g["openfl._internal.renderer.opengl.shaders.ComplexPrimitiveShader"]=Wd;Wd.__name__="openfl _internal renderer opengl shaders ComplexPrimitiveShader".split(" ");Wd.__super__=N;Wd.prototype=t(N.prototype,{init:function(){N.prototype.init.call(this);var a=this.gl;this.projectionVector=a.getUniformLocation(this.program,"projectionVector");this.offsetVector=a.getUniformLocation(this.program,"offsetVector");this.tintColor=a.getUniformLocation(this.program,
  510. "tint");this.color=a.getUniformLocation(this.program,"color");this.aVertexPosition=a.getAttribLocation(this.program,"aVertexPosition");this.attributes=[this.aVertexPosition];this.translationMatrix=a.getUniformLocation(this.program,"translationMatrix");this.alpha=a.getUniformLocation(this.program,"alpha")},__class__:Wd});var Gc=function(a){N.call(this,a);this.fragmentSrc=["precision lowp float;","varying vec2 vTextureCoord;","varying vec4 vColor;","uniform sampler2D uSampler;","void main(void) {",
  511. " gl_FragColor = texture2D(uSampler, vTextureCoord) * vColor ;","}"];this.textureCount=0;this.attributes=[];this.init()};g["openfl._internal.renderer.opengl.shaders.DefaultShader"]=Gc;Gc.__name__="openfl _internal renderer opengl shaders DefaultShader".split(" ");Gc.__super__=N;Gc.prototype=t(N.prototype,{init:function(){null==this.vertexSrc&&(this.vertexSrc=Gc.defaultVertexSrc);N.prototype.init.call(this);var a=this.gl;this.uSampler=a.getUniformLocation(this.program,"uSampler");this.projectionVector=
  512. a.getUniformLocation(this.program,"projectionVector");this.offsetVector=a.getUniformLocation(this.program,"offsetVector");this.dimensions=a.getUniformLocation(this.program,"dimensions");this.aVertexPosition=a.getAttribLocation(this.program,"aVertexPosition");this.aTextureCoord=a.getAttribLocation(this.program,"aTextureCoord");this.colorAttribute=a.getAttribLocation(this.program,"aColor");-1==this.colorAttribute&&(this.colorAttribute=2);this.attributes=[this.aVertexPosition,this.aTextureCoord,this.colorAttribute];
  513. if(null!=this.uniforms)for(var b=this.uniforms.keys();b.hasNext();){var c=b.next();this.uniforms.get(c).uniformLocation=a.getUniformLocation(this.program,c)}this.initUniforms()},initSampler2D:function(a){if(null!=a.value&&null!=a.value.baseTexture&&null!=a.value.baseTexture.hasLoaded){var b=this.gl;b.activeTexture(r.field(b,"TEXTURE"+this.textureCount));b.bindTexture(b.TEXTURE_2D,a.value.baseTexture._glTextures[ja.glContextId]);if(null!=a.textureData){var c=a.textureData,d;d=0!=c.magFilter?c.magFilter:
  514. b.LINEAR;var e;e=0!=c.minFilter?c.minFilter:b.LINEAR;var f;f=0!=c.wrapS?c.wrapS:b.CLAMP_TO_EDGE;var p;p=0!=c.wrapT?c.wrapT:b.CLAMP_TO_EDGE;var g;g=0!=c.luminance?b.LUMINANCE:b.RGBA;c.repeat&&(p=f=b.REPEAT);b.pixelStorei(b.UNPACK_FLIP_Y_WEBGL,c.flip);0!=c.width?b.texImage2D(b.TEXTURE_2D,0,g,0!=c.width?c.width:512,0!=c.height?c.height:2,0!=c.border?c.border:0,g,b.UNSIGNED_BYTE,null):b.texImage2D(b.TEXTURE_2D,0,g,b.RGBA,b.UNSIGNED_BYTE,a.value.baseTexture.source);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,
  515. d);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,e);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,f);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,p)}b.uniform1i(a.uniformLocation,this.textureCount);a._init=!0;this.textureCount++}},initUniforms:function(){this.textureCount=1;var a=this.gl,b;if(null!=this.uniforms)for(var c=this.uniforms.keys();c.hasNext();){b=c.next();b=this.uniforms.get(b);var d=b.type;"sampler2D"==d?(b._init=!1,null!=b.value&&this.initSampler2D(b)):"mat2"==d||"mat3"==d||"mat4"==
  516. d?(b.glMatrix=!0,b.glValueLength=1,"mat2"==d?b.glFunc=n(a,a.uniformMatrix2fv):"mat3"==d?b.glFunc=n(a,a.uniformMatrix3fv):"mat4"==d&&(b.glFunc=n(a,a.uniformMatrix4fv))):(b.glFunc=r.field(a,"uniform"+d),b.glValueLength="2f"==d||"2i"==d?2:"3f"==d||"3i"==d?3:"4f"==d||"4i"==d?4:1)}},__class__:Gc});var Xd=function(a){N.call(this,a);this.vertexSrc=["attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","attribute vec4 aColor;","uniform mat3 translationMatrix;","uniform vec2 projectionVector;",
  517. "uniform vec2 offsetVector;","varying vec2 vPos;","varying vec4 vColor;","void main(void) {"," vec3 v = vec3(aVertexPosition , 1.0);"," v -= offsetVector.xyx;"," gl_Position = vec4( v.x / projectionVector.x -1.0, v.y / -projectionVector.y + 1.0 , 0.0, 1.0);"," vPos = aTextureCoord;"," vColor = aColor;","}"];this.fragmentSrc=["precision mediump float;","uniform sampler2D sampler;","uniform vec3 color;","uniform bool useTexture;","uniform float alpha;","varying vec2 vPos;","varying vec4 vColor;",
  518. "vec4 tmp;","void main(void) {"," if(useTexture) {"," tmp = texture2D(sampler, vPos);"," } else {"," tmp = vec4(color, 1.);"," }"," float a = tmp.a * vColor.a * alpha;"," gl_FragColor = vec4(vec3((tmp.rgb * vColor.rgb) * a), a);","}"];this.init()};g["openfl._internal.renderer.opengl.shaders.DrawTrianglesShader"]=Xd;Xd.__name__="openfl _internal renderer opengl shaders DrawTrianglesShader".split(" ");Xd.__super__=N;Xd.prototype=t(N.prototype,{init:function(){N.prototype.init.call(this);
  519. this.translationMatrix=this.gl.getUniformLocation(this.program,"translationMatrix");this.projectionVector=this.gl.getUniformLocation(this.program,"projectionVector");this.offsetVector=this.gl.getUniformLocation(this.program,"offsetVector");this.sampler=this.gl.getUniformLocation(this.program,"sampler");this.alpha=this.gl.getUniformLocation(this.program,"alpha");this.color=this.gl.getUniformLocation(this.program,"color");this.useTexture=this.gl.getUniformLocation(this.program,"useTexture");this.aVertexPosition=
  520. this.gl.getAttribLocation(this.program,"aVertexPosition");this.aTextureCoord=this.gl.getAttribLocation(this.program,"aTextureCoord");this.colorAttribute=this.gl.getAttribLocation(this.program,"aColor");this.attributes=[this.aVertexPosition,this.aTextureCoord,this.colorAttribute]},__class__:Xd});var Yd=function(a){N.call(this,a);this.fragmentSrc=["precision lowp float;","varying vec2 vTextureCoord;","varying float vColor;","uniform sampler2D uSampler;","void main(void) {"," gl_FragColor = texture2D(uSampler, vTextureCoord) * vColor ;",
  521. "}"];this.vertexSrc=["attribute vec2 aVertexPosition;","attribute vec2 aPositionCoord;","attribute vec2 aScale;","attribute float aRotation;","attribute vec2 aTextureCoord;","attribute float aColor;","uniform vec2 projectionVector;","uniform vec2 offsetVector;","uniform mat3 uMatrix;","varying vec2 vTextureCoord;","varying float vColor;","const vec2 center = vec2(-1.0, 1.0);","void main(void) {"," vec2 v;"," vec2 sv = aVertexPosition * aScale;"," v.x = (sv.x) * cos(aRotation) - (sv.y) * sin(aRotation);",
  522. " v.y = (sv.x) * sin(aRotation) + (sv.y) * cos(aRotation);"," v = ( uMatrix * vec3(v + aPositionCoord , 1.0) ).xy ;"," gl_Position = vec4( ( v / projectionVector) + center , 0.0, 1.0);"," vTextureCoord = aTextureCoord;"," vColor = aColor;","}"];this.textureCount=0;this.init()};g["openfl._internal.renderer.opengl.shaders.FastShader"]=Yd;Yd.__name__="openfl _internal renderer opengl shaders FastShader".split(" ");Yd.__super__=N;Yd.prototype=t(N.prototype,{init:function(){N.prototype.init.call(this);
  523. var a=this.gl;this.uSampler=a.getUniformLocation(this.program,"uSampler");this.projectionVector=a.getUniformLocation(this.program,"projectionVector");this.offsetVector=a.getUniformLocation(this.program,"offsetVector");this.dimensions=a.getUniformLocation(this.program,"dimensions");this.uMatrix=a.getUniformLocation(this.program,"uMatrix");this.aVertexPosition=a.getAttribLocation(this.program,"aVertexPosition");this.aPositionCoord=a.getAttribLocation(this.program,"aPositionCoord");this.aScale=a.getAttribLocation(this.program,
  524. "aScale");this.aRotation=a.getAttribLocation(this.program,"aRotation");this.aTextureCoord=a.getAttribLocation(this.program,"aTextureCoord");this.colorAttribute=a.getAttribLocation(this.program,"aColor");-1==this.colorAttribute&&(this.colorAttribute=2);this.attributes=[this.aVertexPosition,this.aPositionCoord,this.aScale,this.aRotation,this.aTextureCoord,this.colorAttribute]},__class__:Yd});var Zd=function(a){N.call(this,a);this.vertexSrc=["attribute vec2 aVertexPosition;","uniform mat3 translationMatrix;",
  525. "uniform vec2 projectionVector;","uniform vec2 offsetVector;","void main(void) {"," vec3 v = translationMatrix * vec3(aVertexPosition , 1.0);"," v -= offsetVector.xyx;"," gl_Position = vec4( v.x / projectionVector.x -1.0, v.y / -projectionVector.y + 1.0 , 0.0, 1.0);","}"];this.fragmentSrc=["precision mediump float;","uniform vec3 color;","uniform float alpha;","void main(void) {"," gl_FragColor = vec4((color * alpha), alpha);","}"];this.init()};g["openfl._internal.renderer.opengl.shaders.FillShader"]=
  526. Zd;Zd.__name__="openfl _internal renderer opengl shaders FillShader".split(" ");Zd.__super__=N;Zd.prototype=t(N.prototype,{init:function(){N.prototype.init.call(this);this.translationMatrix=this.gl.getUniformLocation(this.program,"translationMatrix");this.projectionVector=this.gl.getUniformLocation(this.program,"projectionVector");this.offsetVector=this.gl.getUniformLocation(this.program,"offsetVector");this.color=this.gl.getUniformLocation(this.program,"color");this.alpha=this.gl.getUniformLocation(this.program,
  527. "alpha");this.aVertexPosition=this.gl.getAttribLocation(this.program,"aVertexPosition");this.attributes=[this.aVertexPosition]},__class__:Zd});var $d=function(a){N.call(this,a);this.vertexSrc=["attribute vec2 aVertexPosition;","uniform mat3 translationMatrix;","uniform vec2 projectionVector;","uniform vec2 offsetVector;","uniform mat3 patternMatrix;","varying vec2 vPos;","void main(void) {"," vec3 v = translationMatrix * vec3(aVertexPosition , 1.0);"," v -= offsetVector.xyx;"," gl_Position = vec4( v.x / projectionVector.x -1.0, v.y / -projectionVector.y + 1.0 , 0.0, 1.0);",
  528. " vPos = (patternMatrix * vec3(aVertexPosition, 1)).xy;","}"];this.fragmentSrc=["precision mediump float;","uniform float alpha;","uniform vec2 patternTL;","uniform vec2 patternBR;","uniform sampler2D sampler;","varying vec2 vPos;","void main(void) {"," vec2 pos = mix(patternTL, patternBR, vPos);"," vec4 tcol = texture2D(sampler, pos);"," gl_FragColor = vec4(tcol.rgb * alpha, tcol.a * alpha);","}"];this.init()};g["openfl._internal.renderer.opengl.shaders.PatternFillShader"]=$d;$d.__name__=
  529. "openfl _internal renderer opengl shaders PatternFillShader".split(" ");$d.__super__=N;$d.prototype=t(N.prototype,{init:function(){N.prototype.init.call(this);this.translationMatrix=this.gl.getUniformLocation(this.program,"translationMatrix");this.projectionVector=this.gl.getUniformLocation(this.program,"projectionVector");this.offsetVector=this.gl.getUniformLocation(this.program,"offsetVector");this.patternMatrix=this.gl.getUniformLocation(this.program,"patternMatrix");this.patternTL=this.gl.getUniformLocation(this.program,
  530. "patternTL");this.patternBR=this.gl.getUniformLocation(this.program,"patternBR");this.sampler=this.gl.getUniformLocation(this.program,"sampler");this.alpha=this.gl.getUniformLocation(this.program,"alpha");this.aVertexPosition=this.gl.getAttribLocation(this.program,"aVertexPosition");this.attributes=[this.aVertexPosition]},__class__:$d});var ae=function(a){N.call(this,a);this.fragmentSrc=["precision mediump float;","varying vec4 vColor;","void main(void) {"," gl_FragColor = vColor;","}"];this.vertexSrc=
  531. ["attribute vec2 aVertexPosition;","attribute vec4 aColor;","uniform mat3 translationMatrix;","uniform vec2 projectionVector;","uniform vec2 offsetVector;","uniform float alpha;","uniform vec3 tint;","varying vec4 vColor;","void main(void) {"," vec3 v = translationMatrix * vec3(aVertexPosition , 1.0);"," v -= offsetVector.xyx;"," gl_Position = vec4( v.x / projectionVector.x -1.0, v.y / -projectionVector.y + 1.0 , 0.0, 1.0);"," vColor = aColor;","}"];this.init()};g["openfl._internal.renderer.opengl.shaders.PrimitiveShader"]=
  532. ae;ae.__name__="openfl _internal renderer opengl shaders PrimitiveShader".split(" ");ae.__super__=N;ae.prototype=t(N.prototype,{init:function(){N.prototype.init.call(this);var a=this.gl;this.projectionVector=a.getUniformLocation(this.program,"projectionVector");this.offsetVector=a.getUniformLocation(this.program,"offsetVector");this.tintColor=a.getUniformLocation(this.program,"tint");this.aVertexPosition=a.getAttribLocation(this.program,"aVertexPosition");this.colorAttribute=a.getAttribLocation(this.program,
  533. "aColor");this.attributes=[this.aVertexPosition,this.colorAttribute];this.translationMatrix=a.getUniformLocation(this.program,"translationMatrix");this.alpha=a.getUniformLocation(this.program,"alpha")},__class__:ae});var be=function(a){N.call(this,a);this.fragmentSrc=["precision mediump float;","varying vec2 vTextureCoord;","uniform float alpha;","uniform sampler2D uSampler;","void main(void) {"," gl_FragColor = texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y));","}"];this.vertexSrc=["attribute vec2 aVertexPosition;",
  534. "attribute vec2 aTextureCoord;","uniform mat3 translationMatrix;","uniform vec2 projectionVector;","uniform vec2 offsetVector;","varying vec2 vTextureCoord;","void main(void) {"," vec3 v = translationMatrix * vec3(aVertexPosition , 1.0);"," v -= offsetVector.xyx;"," gl_Position = vec4( v.x / projectionVector.x -1.0, v.y / -projectionVector.y + 1.0 , 0.0, 1.0);"," vTextureCoord = aTextureCoord;","}"];this.init()};g["openfl._internal.renderer.opengl.shaders.StripShader"]=be;be.__name__="openfl _internal renderer opengl shaders StripShader".split(" ");
  535. be.__super__=N;be.prototype=t(N.prototype,{init:function(){N.prototype.init.call(this);var a=this.gl;this.uSampler=a.getUniformLocation(this.program,"uSampler");this.projectionVector=a.getUniformLocation(this.program,"projectionVector");this.offsetVector=a.getUniformLocation(this.program,"offsetVector");this.colorAttribute=a.getAttribLocation(this.program,"aColor");this.aVertexPosition=a.getAttribLocation(this.program,"aVertexPosition");this.aTextureCoord=a.getAttribLocation(this.program,"aTextureCoord");
  536. this.attributes=[this.aVertexPosition,this.aTextureCoord];this.translationMatrix=a.getUniformLocation(this.program,"translationMatrix");this.alpha=a.getUniformLocation(this.program,"alpha")},__class__:be});var kf=function(a){this.gl=a;this.currentBlendMode=null};g["openfl._internal.renderer.opengl.utils.BlendModeManager"]=kf;kf.__name__="openfl _internal renderer opengl utils BlendModeManager".split(" ");kf.prototype={setBlendMode:function(a){null==a&&(a=H.NORMAL);if(this.currentBlendMode==a)return!1;
  537. this.currentBlendMode=a;a=ja.blendModesWebGL.get(this.currentBlendMode);this.gl.blendFunc(a[0],a[1]);return!0},__class__:kf};var jb=function(){this.type=ka.Polygon;this.points=[];this.isRemovable=!0;this.fillIndex=0;this.line=new ed;this.fill=Ra.None};g["openfl._internal.renderer.opengl.utils.DrawPath"]=jb;jb.__name__="openfl _internal renderer opengl utils DrawPath".split(" ");jb.getStack=function(a,b){return m.build(a,b)};jb.prototype={update:function(a,b,c){this.updateLine(a);this.fill=b;this.fillIndex=
  538. c},updateLine:function(a){this.line.width=a.width;this.line.color=a.color&16777215;this.line.alpha=null==a.alpha?1:a.alpha;this.line.scaleMode=null==a.scaleMode?cb.NORMAL:a.scaleMode;this.line.caps=null==a.caps?Bb.ROUND:a.caps;this.line.joints=null==a.joints?Cb.ROUND:a.joints;this.line.miterLimit=a.miterLimit},__class__:jb};var m=function(){};g["openfl._internal.renderer.opengl.utils.PathBuiler"]=m;m.__name__="openfl _internal renderer opengl utils PathBuiler".split(" ");m.__currentPath=null;m.__drawPaths=
  539. null;m.__line=null;m.__fill=null;m.closePath=function(){var a=m.__currentPath.points.length;if(!(0>=a)&&m.__currentPath.type==ka.Polygon&&m.__currentPath.fill!=Ra.None){var b=m.__currentPath.points[0],c=m.__currentPath.points[1],d=m.__currentPath.points[a-1];if(b!=m.__currentPath.points[a-2]||c!=d)m.__currentPath.points.push(b),m.__currentPath.points.push(c)}};m.endFill=function(){m.__fill=Ra.None;m.__fillIndex++};m.moveTo=function(a,b){m.__currentPath.isRemovable&&0==m.__currentPath.points.length?
  540. m.__drawPaths.pop():m.closePath();m.__currentPath=new jb;m.__currentPath.update(m.__line,m.__fill,m.__fillIndex);m.__currentPath.type=ka.Polygon;m.__currentPath.points.push(a);m.__currentPath.points.push(b);m.__drawPaths.push(m.__currentPath)};m.build=function(a,b){var c=null,d=a.__bounds;m.__drawPaths=[];m.__currentPath=new jb;m.__line=new ed;m.__fill=Ra.None;m.__fillIndex=0;c=a.__glStack[ja.glContextId];null==c&&(c=a.__glStack[ja.glContextId]=new lf(b));if(a.__visible&&0!=a.__commands.length&&null!=
  541. d&&0!=d.width&&0!=d.height){for(var d=0,e=a.__commands;d<e.length;){var f=e[d];++d;switch(f[1]){case 0:var p=f[5],g=f[4],l=f[3],f=f[2];m.endFill();m.__fill=null!=f?Ra.Texture(f,l,g,p):Ra.None;0==m.__currentPath.points.length&&(m.__currentPath.isRemovable&&0==m.__currentPath.points.length?m.__drawPaths.pop():m.closePath(),m.__currentPath=new jb,m.__currentPath.update(m.__line,m.__fill,m.__fillIndex),m.__currentPath.points=[],m.__currentPath.type=ka.Polygon,m.__drawPaths.push(m.__currentPath));break;
  542. case 1:p=f[3];f=f[2];m.endFill();m.__fill=0<p?Ra.Color(f&16777215,p):Ra.None;0==m.__currentPath.points.length&&(m.__currentPath.isRemovable&&0==m.__currentPath.points.length?m.__drawPaths.pop():m.closePath(),m.__currentPath=new jb,m.__currentPath.update(m.__line,m.__fill,m.__fillIndex),m.__currentPath.points=[],m.__currentPath.type=ka.Polygon,m.__drawPaths.push(m.__currentPath));break;case 2:var p=f[7],g=f[6],l=f[5],k=f[4],F=f[3],f=f[2];0==m.__currentPath.points.length&&m.moveTo(0,0);for(var n=0,
  543. q=0,w=0,t=0,z=0,x=m.__currentPath.points,v=x[x.length-2],u=x[x.length-1],r=0,A=n=0,y=1;21>y;)A=y++/20,n=1-A,q=n*n,w=q*n,t=A*A,z=t*A,r=w*v+3*q*A*f+3*n*t*k+z*g,n=w*u+3*q*A*F+3*n*t*l+z*p,x.push(r),x.push(n);break;case 3:p=f[5];g=f[4];l=f[3];f=f[2];0==m.__currentPath.points.length&&m.moveTo(0,0);u=r=0;k=m.__currentPath.points;F=k[k.length-2];x=k[k.length-1];y=u=r=0;for(v=1;21>v;)y=v++/20,r=F+(f-F)*y,u=x+(l-x)*y,r+=(f+(g-f)*y-r)*y,u+=(l+(p-l)*y-u)*y,k.push(r),k.push(u);break;case 4:p=f[4];g=f[3];f=f[2];
  544. m.__currentPath.isRemovable&&0==m.__currentPath.points.length?m.__drawPaths.pop():m.closePath();m.__currentPath=new jb;m.__currentPath.update(m.__line,m.__fill,m.__fillIndex);m.__currentPath.type=ka.Circle;m.__currentPath.points=[f,g,p];m.__drawPaths.push(m.__currentPath);break;case 5:p=f[5];g=f[4];l=f[3];f=f[2];m.__currentPath.isRemovable&&0==m.__currentPath.points.length?m.__drawPaths.pop():m.closePath();m.__currentPath=new jb;m.__currentPath.update(m.__line,m.__fill,m.__fillIndex);m.__currentPath.type=
  545. ka.Ellipse;m.__currentPath.points=[f,l,g,p];m.__drawPaths.push(m.__currentPath);break;case 6:p=f[5];g=f[4];l=f[3];f=f[2];m.__currentPath.isRemovable&&0==m.__currentPath.points.length?m.__drawPaths.pop():m.closePath();m.__currentPath=new jb;m.__currentPath.update(m.__line,m.__fill,m.__fillIndex);m.__currentPath.type=ka.Rectangle(!1);m.__currentPath.points=[f,l,g,p];m.__drawPaths.push(m.__currentPath);break;case 7:p=f[7];g=f[6];l=f[5];k=f[4];F=f[3];f=f[2];-1==p&&(p=g);g*=.5;p*=.5;g>k/2&&(g=k/2);p>l/
  546. 2&&(p=l/2);m.__currentPath.isRemovable&&0==m.__currentPath.points.length?m.__drawPaths.pop():m.closePath();m.__currentPath=new jb;m.__currentPath.update(m.__line,m.__fill,m.__fillIndex);m.__currentPath.type=ka.Rectangle(!0);m.__currentPath.points=[f,F,k,l,g,p];m.__drawPaths.push(m.__currentPath);break;case 10:m.endFill();break;case 11:p=f[9];g=f[8];l=f[7];k=f[6];F=f[4];x=f[3];f=f[2];m.__line=new ed;m.__line.width=null==f||f==Math.NaN||0>f?0:0==f?1:f;m.__currentPath.isRemovable&&0==m.__currentPath.points.length?
  547. m.__drawPaths.pop():m.closePath();m.__line.color=x;m.__line.alpha=F;m.__line.scaleMode=k;m.__line.caps=l;m.__line.joints=g;m.__line.miterLimit=p;m.__currentPath=new jb;m.__currentPath.update(m.__line,m.__fill,m.__fillIndex);m.__currentPath.points=[];m.__currentPath.type=ka.Polygon;m.__drawPaths.push(m.__currentPath);break;case 12:p=f[3];m.__currentPath.points.push(f[2]);m.__currentPath.points.push(p);break;case 13:m.moveTo(f[2],f[3]);break;case 9:p=f[7];g=f[6];l=f[5];F=f[4];k=f[3];f=f[2];switch(m.__fill[1]){case 1:x=
  548. !0;break;default:x=!1}if(x&&null!=F)continue;m.__currentPath.isRemovable&&0==m.__currentPath.points.length?m.__drawPaths.pop():m.closePath();m.__currentPath=new jb;m.__currentPath.update(m.__line,m.__fill,m.__fillIndex);if(null==F)switch(F=new qc,F.data=[],F.length=0,F.fixed=!1,x=m.__fill,x[1]){case 2:for(x=x[2],v=0,u=f.length/2|0;v<u;)r=v++,F.fixed||(F.length++,F.data.length<F.length&&(y=Array(F.data.length+10),Mb.blit(F.data,0,y,0,F.data.length),F.data=y),F.data[F.length-1]=f.data[2*r]/x.width),
  549. F.length,F.fixed||(F.length++,F.data.length<F.length&&(y=Array(F.data.length+10),Mb.blit(F.data,0,y,0,F.data.length),F.data=y),F.data[F.length-1]=f.data[2*r+1]/x.height),F.length}m.__currentPath.type=ka.DrawTriangles(f,k,F,l,g,p);m.__currentPath.isRemovable=!1;m.__drawPaths.push(m.__currentPath);break;case 8:p=f[6],g=f[5],l=f[4],k=f[3],f=f[2],m.__currentPath.isRemovable&&0==m.__currentPath.points.length?m.__drawPaths.pop():m.closePath(),m.__fillIndex++,m.__currentPath=new jb,m.__currentPath.update(m.__line,
  550. m.__fill,m.__fillIndex),m.__currentPath.type=ka.DrawTiles(f,k,l,g,p),m.__currentPath.isRemovable=!1,m.__drawPaths.push(m.__currentPath)}}m.closePath()}a.__drawPaths=m.__drawPaths;return c};var ed=function(){this.color=this.width=0;this.alpha=1;this.scaleMode=cb.NORMAL;this.caps=Bb.ROUND;this.joints=Cb.ROUND;this.miterLimit=3};g["openfl._internal.renderer.opengl.utils.LineStyle"]=ed;ed.__name__="openfl _internal renderer opengl utils LineStyle".split(" ");ed.prototype={__class__:ed};var Ra=g["openfl._internal.renderer.opengl.utils.FillType"]=
  551. {__ename__:"openfl _internal renderer opengl utils FillType".split(" "),__constructs__:["None","Color","Texture","Gradient"]};Ra.None=["None",0];Ra.None.toString=q;Ra.None.__enum__=Ra;Ra.Color=function(a,b){var c=["Color",1,a,b];c.__enum__=Ra;c.toString=q;return c};Ra.Texture=function(a,b,c,d){a=["Texture",2,a,b,c,d];a.__enum__=Ra;a.toString=q;return a};Ra.Gradient=["Gradient",3];Ra.Gradient.toString=q;Ra.Gradient.__enum__=Ra;var hf=function(a,b){this.transparent=b;this.filterStack=[];this.offsetY=
  552. this.offsetX=0;this.setContext(a)};g["openfl._internal.renderer.opengl.utils.FilterManager"]=hf;hf.__name__="openfl _internal renderer opengl utils FilterManager".split(" ");hf.prototype={begin:function(a,b){this.renderSession=a;this.defaultShader=a.shaderManager.defaultShader;var c=a.projection;this.width=2*c.x|0;this.height=2*-c.y|0;this.buffer=b},initShaderBuffers:function(){var a=this.gl;this.vertexBuffer=a.createBuffer();this.uvBuffer=a.createBuffer();this.colorBuffer=a.createBuffer();this.indexBuffer=
  553. a.createBuffer();this.vertexArray=[0,0,1,0,0,1,1,1];a.bindBuffer(a.ARRAY_BUFFER,this.vertexBuffer);a.bufferData(a.ARRAY_BUFFER,this.vertexArray,a.STATIC_DRAW);this.uvArray=[0,0,1,0,0,1,1,1];a.bindBuffer(a.ARRAY_BUFFER,this.uvBuffer);a.bufferData(a.ARRAY_BUFFER,this.uvArray,a.STATIC_DRAW);this.colorArray=[1,16777215,1,16777215,1,16777215,1,16777215];a.bindBuffer(a.ARRAY_BUFFER,this.colorBuffer);a.bufferData(a.ARRAY_BUFFER,this.colorArray,a.STATIC_DRAW);
  554. a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.indexBuffer);a.bufferData(a.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,1,2,1,3,2]),a.STATIC_DRAW)},setContext:function(a){this.gl=a;this.texturePool=[];this.initShaderBuffers()},__class__:hf};var mf=function(a,b,c,d){null==d&&(d=!0);this.gl=a;this.frameBuffer=a.createFramebuffer();this.texture=a.createTexture();a.bindTexture(a.TEXTURE_2D,this.texture);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,d?a.LINEAR:a.NEAREST);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,
  555. d?a.LINEAR:a.NEAREST);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE);a.bindFramebuffer(a.FRAMEBUFFER,this.frameBuffer);a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.texture,0);this.renderBuffer=a.createRenderbuffer();a.bindRenderbuffer(a.RENDERBUFFER,this.renderBuffer);a.framebufferRenderbuffer(a.FRAMEBUFFER,a.DEPTH_STENCIL_ATTACHMENT,a.RENDERBUFFER,this.renderBuffer);this.resize(b,c)};g["openfl._internal.renderer.opengl.utils.FilterTexture"]=
  556. mf;mf.__name__="openfl _internal renderer opengl utils FilterTexture".split(" ");mf.prototype={clear:function(){var a=this.gl;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT)},resize:function(a,b){if(this.width!=a||this.height!=b){this.width=a;this.height=b;var c=this.gl;c.bindTexture(c.TEXTURE_2D,this.texture);c.texImage2D(c.TEXTURE_2D,0,c.RGBA,a,b,0,c.RGBA,c.UNSIGNED_BYTE,null);c.bindRenderbuffer(c.RENDERBUFFER,this.renderBuffer);c.renderbufferStorage(c.RENDERBUFFER,c.DEPTH_STENCIL,a,b)}},__class__:mf};
  557. var oa=function(a,b,c,d){null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b;this.width=c;this.height=d};g["openfl.geom.Rectangle"]=oa;oa.__name__=["openfl","geom","Rectangle"];oa.prototype={clone:function(){return new oa(this.x,this.y,this.width,this.height)},copyFrom:function(a){this.x=a.x;this.y=a.y;this.width=a.width;this.height=a.height},setTo:function(a,b,c,d){this.x=a;this.y=b;this.width=c;this.height=d},transform:function(a){var b=a.a*this.x+a.c*this.y,c=b,d=a.b*
  558. this.x+a.d*this.y,e=b,f=a.a*(this.x+this.width)+a.c*this.y,p=a.b*(this.x+this.width)+a.d*this.y;f<b&&(b=f);p<d&&(d=p);f>c&&(c=f);p>e&&(e=p);f=a.a*(this.x+this.width)+a.c*(this.y+this.height);p=a.b*(this.x+this.width)+a.d*(this.y+this.height);f<b&&(b=f);p<d&&(d=p);f>c&&(c=f);p>e&&(e=p);f=a.a*this.x+a.c*(this.y+this.height);p=a.b*this.x+a.d*(this.y+this.height);f<b&&(b=f);p<d&&(d=p);f>c&&(c=f);p>e&&(e=p);return new oa(b+a.tx,d+a.ty,c-b,e-d)},__expand:function(a,b,c,d){if(0==this.width&&0==this.height)this.x=
  559. a,this.y=b,this.width=c,this.height=d;else{var e=this.get_right(),f=this.get_bottom();this.x>a&&(this.x=a,this.width=e-a);this.y>b&&(this.y=b,this.height=f-b);e<a+c&&(this.width=a+c-this.x);f<b+d&&(this.height=b+d-this.y)}},get_bottom:function(){return this.y+this.height},get_left:function(){return this.x},get_right:function(){return this.x+this.width},get_top:function(){return this.y},__class__:oa,__properties__:{get_top:"get_top",get_right:"get_right",get_left:"get_left",get_bottom:"get_bottom"}};
  560. var G=function(){};g["openfl._internal.renderer.opengl.utils.GraphicsRenderer"]=G;G.__name__="openfl _internal renderer opengl utils GraphicsRenderer".split(" ");G.buildCircle=function(a,b,c){null==c&&(c=!1);var d=a.points,e=d[0],f=d[1],p=d[2],d=3==d.length?p:d[3];a.type==ka.Ellipse&&(p/=2,d/=2,e+=p,f+=d);c&&(e-=G.objectBounds.x,f-=G.objectBounds.y);c=2*Math.PI/40;b=G.prepareBucket(a,b);if(null!=b){var g=b.verts,l=b.indices,k=g.length/2|0;l.push(k);for(var m=0;41>m;){var n=m++;g.push(e);g.push(f);
  561. g.push(e+Math.sin(c*n)*p);g.push(f+Math.cos(c*n)*d);l.push(k++);l.push(k++)}l.push(k-1)}if(0<a.line.width){g=a.points;a.points=[];for(l=0;41>l;)k=l++,a.points.push(e+Math.sin(c*k)*p),a.points.push(f+Math.cos(c*k)*d);G.buildLine(a,b.line);a.points=g}};G.buildComplexPoly=function(a,b,c){null==c&&(c=!1);if(!(6>a.points.length)){var d=a.points.slice();if(c)for(var e=0,f=d.length/2|0;e<f;){var g=e++;d[2*g]-=G.objectBounds.x;d[2*g+1]-=G.objectBounds.y}e=G.prepareBucket(a,b);e.drawMode=b.gl.TRIANGLE_FAN;
  562. e.verts=d;b=e.indices;d=d.length/2|0;for(f=0;f<d;)g=f++,b.push(g);0<a.line.width&&G.buildLine(a,e.line,c)}};G.buildLine=function(a,b,c){null==c&&(c=!1);var d=a.points;if(0!=d.length){if(c){c=0;for(var e=d.length/2|0;c<e;){var f=c++;d[2*f]-=G.objectBounds.x;d[2*f+1]-=G.objectBounds.y}}if(0<a.line.width%2)for(c=0,e=d.length;c<e;)f=c++,d[f]+=.5;e=new la(d[0],d[1]);f=new la(d[d.length-2|0],d[d.length-1|0]);e.x==f.x&&e.y==f.y&&(d=d.slice(),d.pop(),d.pop(),f=new la(d[d.length-2|0],d[d.length-1|0]),c=f.x+
  563. .5*(e.x-f.x),e=f.y+.5*(e.y-f.y),d.unshift(e),d.unshift(c),d.push(c),d.push(e));c=b.verts;b=b.indices;var g=d.length/2|0,e=d.length,f=c.length/6|0,h=a.line.width/2,l=G.hex2rgb(a.line.color);a=a.line.alpha;var k=l[0]*a,m=l[1]*a,l=l[2]*a,n,q,w,t,x,u,z,v,r,y,A,C,E,D;w=d[0];t=d[1];x=d[2];u=d[3];v=-(t-u);r=w-x;q=Math.sqrt(Math.abs(v*v+r*r));v=v/q*h;r=r/q*h;c.push(w-v);c.push(t-r);c.push(k);c.push(m);c.push(l);c.push(a);c.push(w+v);c.push(t+r);c.push(k);c.push(m);c.push(l);c.push(a);for(var H=1,B=g-1;H<
  564. B;)r=H++,w=d[2*(r-1)],t=d[2*(r-1)+1],x=d[2*r],u=d[2*r+1],n=d[2*(r+1)],z=d[2*(r+1)+1],v=-(t-u),r=w-x,q=Math.sqrt(Math.abs(v*v+r*r)),v/=q,r/=q,v*=h,r*=h,y=-(u-z),A=x-n,q=Math.sqrt(Math.abs(y*y+A*A)),y/=q,A/=q,y*=h,A*=h,q=-r+t-(-r+u),C=-v+x-(-v+w),w=(-v+w)*(-r+u)-(-v+x)*(-r+t),t=-A+z-(-A+u),E=-y+x-(-y+n),z=(-y+n)*(-A+u)-(-y+x)*(-A+z),D=q*E-t*C,.1>Math.abs(D)?(c.push(x-v),c.push(u-r),c.push(k),c.push(m),c.push(l),c.push(a),c.push(x+v),c.push(u+r),c.push(k),c.push(m),c.push(l),c.push(a)):(n=(C*z-E*w)/
  565. D,q=(t*w-q*z)/D,C=(n-x)*(n-x)+(q-u)+(q-u),19600<C?(v-=y,r-=A,q=Math.sqrt(Math.abs(v*v+r*r)),v/=q,r/=q,v*=h,r*=h,c.push(x-v),c.push(u-r),c.push(k),c.push(m),c.push(l),c.push(a),c.push(x+v),c.push(u+r),c.push(k),c.push(m),c.push(l),c.push(a),c.push(x-v),c.push(u-r),c.push(k),c.push(m),c.push(l),c.push(a),e++):(c.push(n),c.push(q),c.push(k),c.push(m),c.push(l),c.push(a),c.push(x-(n-x)),c.push(u-(q-u)),c.push(k),c.push(m),c.push(l),c.push(a)));w=d[2*(g-2)];t=d[2*(g-2)+1];x=d[2*(g-1)];u=d[2*(g-1)+1];v=
  566. -(t-u);r=w-x;q=Math.sqrt(Math.abs(v*v+r*r));Math.isFinite(q)||console.log(v*v+r*r);v/=q;r/=q;v*=h;r*=h;c.push(x-v);c.push(u-r);c.push(k);c.push(m);c.push(l);c.push(a);c.push(x+v);c.push(u+r);c.push(k);c.push(m);c.push(l);c.push(a);b.push(f);for(d=0;d<e;)d++,b.push(f++);b.push(f-1)}};G.buildRectangle=function(a,b,c){null==c&&(c=!1);var d=a.points,e=d[0],f=d[1],g=d[2],d=d[3];c&&(e-=G.objectBounds.x,f-=G.objectBounds.y);b=G.prepareBucket(a,b);if(null!=b){c=b.verts;var h=b.indices,l=c.length/2|0;c.push(e);
  567. c.push(f);c.push(e+g);c.push(f);c.push(e);c.push(f+d);c.push(e+g);c.push(f+d);h.push(l);h.push(l);h.push(l+1);h.push(l+2);h.push(l+3);h.push(l+3)}0<a.line.width&&(c=a.points,a.points=[e,f,e+g,f,e+g,f+d,e,f+d,e,f],G.buildLine(a,b.line),a.points=c)};G.buildRoundedRectangle=function(a,b,c){null==c&&(c=!1);var d=a.points.slice(),e=d[0],f=d[1],g=d[2],h=d[3],d=d[4];c&&(e-=G.objectBounds.x,f-=G.objectBounds.y);c=[];c.push(e);c.push(f+d);c=c.concat(G.quadraticBezierCurve(e,f+h-d,e,f+h,e+d,f+h));c=c.concat(G.quadraticBezierCurve(e+
  568. g-d,f+h,e+g,f+h,e+g,f+h-d));c=c.concat(G.quadraticBezierCurve(e+g,f+d,e+g,f,e+g-d,f));c=c.concat(G.quadraticBezierCurve(e+d,f,e,f,e,f+d));b=G.prepareBucket(a,b);if(null!=b){e=b.verts;f=b.indices;g=e.length/2;h=Hc.triangulate(c);for(d=0;d<h.length;)f.push(h[d]+g|0),f.push(h[d]+g|0),f.push(h[d+1]+g|0),f.push(h[d+2]+g|0),f.push(h[d+2]+g|0),d+=3;for(d=0;d<c.length;)e.push(c[d]),e.push(c[++d]),d++}0<a.line.width&&(e=a.points,a.points=c,G.buildLine(a,b.line),a.points=e)};G.buildDrawTriangles=function(a,
  569. b,c,d){null==d&&(d=!1);var e=a.type.slice(2),f=e[0],g=e[1],h=e[2],l=e[3],e=e[4],k,m,n,q,r;d?(k=1,n=m=0,q=1,b=r=0):(k=b.__worldTransform.a,m=b.__worldTransform.b,n=b.__worldTransform.c,q=b.__worldTransform.d,r=b.__worldTransform.tx,b=b.__worldTransform.ty);var v=null!=e&&0<e.length;c=G.prepareBucket(a,c);c.rawVerts=!0;c.glLength=g.length;c.stride=8;a=c.glLength*c.stride;null==c.glVerts||c.glVerts.length<a?(a=[a],c.glVerts=a):a=c.glVerts;for(var x=0,w=0,t=0,u=0,z=c=0,y=0,A=0,C=0,E=0,
  570. D=0,H=0,B=0,I=[1,1,1,1],u=I,K=0,J=g.length/3|0;K<J;){w=K++;u=g.data[3*w];c=g.data[3*w+1];z=g.data[3*w+2];x=2*u;w=2*c;t=2*z;y=f.data[x];A=f.data[x+1];C=f.data[w];E=f.data[w+1];D=f.data[t];H=f.data[t+1];d&&(y-=G.objectBounds.x,A-=G.objectBounds.y,C-=G.objectBounds.x,E-=G.objectBounds.y,D-=G.objectBounds.x,H-=G.objectBounds.y);switch(l[1]){case 2:if(!(0>(C-y)*(H-A)-(E-A)*(D-y)))continue;break;case 0:if(0>(C-y)*(H-A)-(E-A)*(D-y))continue}a[B++]=k*y+n*A+r;a[B++]=m*y+q*A+b;a[B++]=h.data[x];a[B++]=h.data[x+
  571. 1];v?(u=G.hex2rgba(e.data[u]),a[B++]=u[0],a[B++]=u[1],a[B++]=u[2],a[B++]=u[3]):(a[B++]=I[0],a[B++]=I[1],a[B++]=I[2],a[B++]=I[3]);a[B++]=k*C+n*E+r;a[B++]=m*C+q*E+b;a[B++]=h.data[w];a[B++]=h.data[w+1];v?(u=G.hex2rgba(e.data[c]),a[B++]=u[0],a[B++]=u[1],a[B++]=u[2],a[B++]=u[3]):(a[B++]=I[0],a[B++]=I[1],a[B++]=I[2],a[B++]=I[3]);a[B++]=k*D+n*H+r;a[B++]=m*D+q*H+b;a[B++]=h.data[t];a[B++]=h.data[t+1];v?(u=G.hex2rgba(e.data[z]),a[B++]=u[0],a[B++]=u[1],a[B++]=u[2],a[B++]=u[3]):(a[B++]=I[0],a[B++]=I[1],a[B++]=
  572. I[2],a[B++]=I[3])}};G.quadraticBezierCurve=function(a,b,c,d,e,f){for(var g,h,l,k,m=[],n=0,q=0;21>q;)n=q++/20,g=a+(c-a)*n,h=b+(d-b)*n,l=c+(e-c)*n,k=d+(f-d)*n,g+=(l-g)*n,h+=(k-h)*n,m.push(g),m.push(h);return m};G.render=function(a,b){var c=a.__graphics,d=b.spriteBatch,e=c.__dirty;if(!(0>=c.__commands.length))if(e&&G.updateGraphics(a,b.gl,a.cacheAsBitmap),a.cacheAsBitmap){if(e){var e=b.gl,f=c.__bounds,g=c.__cachedTexture,h=Math.floor(f.width+.5),f=Math.floor(f.height+.5);null==g&&(g=new mf(e,h,f,!1),
  573. c.__cachedTexture=g);g.resize(h,f);e.bindFramebuffer(e.FRAMEBUFFER,g.frameBuffer);e.viewport(0,0,h,f);g.clear();G.renderGraphics(a,b,new la(h/2,-f/2),!0);e.bindFramebuffer(e.FRAMEBUFFER,null);e.viewport(0,0,b.renderer.width,b.renderer.height)}d.drawing||d.begin(b);d.renderCachedGraphics(a)}else G.renderGraphics(a,b,b.projection,!1)};G.renderGraphics=function(a,b,c,d){null==d&&(d=!1);var e=b.gl,f=b.offset,g=a.__graphics.__glStack[ja.glContextId],h,l;l=d?mb.__identity:a.__worldTransform;for(var k=b.spriteBatch.drawing,
  574. m=0,n=g.buckets.length;m<n;){var q=m++,k=b.spriteBatch.drawing;h=g.buckets[q];switch(h.mode[1]){case 1:case 2:k&&!d&&b.spriteBatch.end();b.stencilManager.pushBucket(h,b,c,l.toArray(!0));k=G.prepareShader(h,b,a,c,l.toArray(!1));G.renderFill(h,k,b);b.stencilManager.popBucket(a,h,b);break;case 5:k&&!d&&b.spriteBatch.end();k=G.prepareShader(h,b,a,c,null);G.renderDrawTriangles(h,k,b);break;case 6:k||b.spriteBatch.begin(b),G.renderDrawTiles(a,h,b)}q=0;for(h=h.data;q<h.length;){var r=h[q];++q;null!=r.line&&
  575. 0<r.line.verts.length&&((k=b.spriteBatch.drawing)&&!d&&b.spriteBatch.end(),k=b.shaderManager.primitiveShader,b.shaderManager.setShader(k),e.uniformMatrix3fv(k.translationMatrix,!1,l.toArray(!0)),e.uniform2f(k.projectionVector,c.x,-c.y),e.uniform2f(k.offsetVector,-f.x,-f.y),e.uniform1f(k.alpha,a.__worldAlpha),e.bindBuffer(e.ARRAY_BUFFER,r.line.vertsBuffer),e.vertexAttribPointer(k.aVertexPosition,2,e.FLOAT,!1,24,0),e.vertexAttribPointer(k.colorAttribute,4,e.FLOAT,!1,24,8),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,
  576. r.line.indexBuffer),e.drawElements(e.TRIANGLE_STRIP,r.line.indices.length,e.UNSIGNED_SHORT,0))}(k=b.spriteBatch.drawing)||d||b.spriteBatch.begin(b)}};G.updateGraphics=function(a,b,c){null==c&&(c=!1);var d=a.__graphics;G.objectPosition.setTo(a.get_x(),a.get_y());null!=d.__bounds&&G.objectBounds.copyFrom(d.__bounds);var e=null;d.__dirty&&(e=jb.getStack(d,b));d.__dirty=!1;b=0;for(var f=e.buckets;b<f.length;){var g=f[b];++b;g.reset();G.bucketPool.push(g)}e.reset();b=e.lastIndex;for(f=d.__drawPaths.length;b<
  577. f;){var g=b++,g=d.__drawPaths[g],h=g.type;switch(h[1]){case 0:G.buildComplexPoly(g,e,c);break;case 1:h[2]?G.buildRoundedRectangle(g,e,c):G.buildRectangle(g,e,c);break;case 2:case 3:G.buildCircle(g,e,c);break;case 4:G.buildDrawTriangles(g,a,e,c);break;case 5:G.prepareBucket(g,e)}e.lastIndex++}e.upload()};G.prepareBucket=function(a,b){var c=null,c=a.fill;switch(c[1]){case 1:var d=c[3],e=c[2],c=G.switchBucket(a.fillIndex,b,ga.Fill);c.color=null==e?[0,0,0]:[(e>>16&255)/255,(e>>8&255)/255,(e&255)/255];
  578. c.alpha=d;c.uploadTileBuffer=!0;break;case 2:var f=c[5],g=c[4],e=c[3],d=c[2],c=G.switchBucket(a.fillIndex,b,ga.PatternFill);c.bitmap=d;c.textureRepeat=g;c.textureSmooth=f;c.texture=d.getTexture(b.gl);c.uploadTileBuffer=!0;f=c.textureMatrix;f.identity();e=null==e?new mb:new mb(e.a,e.b,e.c,e.d,e.tx,e.ty);e=e.invert();e.__translateTransformed(new la(-G.objectPosition.x,-G.objectPosition.y));var g=e.tx/d.width,h=e.ty/d.height;f.concat(e);c.textureTL.x=g;c.textureTL.y=h;c.textureBR.x=g+1;c.textureBR.y=
  579. h+1;f.scale(1/d.width,1/d.height);c.textureMatrix=f;break;default:c=G.switchBucket(a.fillIndex,b,ga.Line),c.uploadTileBuffer=!1}switch(a.type[1]){case 4:c.mode=ga.DrawTriangles;c.uploadTileBuffer=!1;break;case 5:c.mode=ga.DrawTiles,c.uploadTileBuffer=!1}c.graphicType=a.type;return c.getData()};G.getBucket=function(a,b){var c=G.bucketPool.pop();null==c&&(c=new nf(a.gl));c.mode=b;a.buckets.push(c);return c};G.switchBucket=function(a,b,c){var d;0==b.buckets.length?d=G.getBucket(b,c):(d=b.buckets[b.buckets.length-
  580. 1],d.fillIndex!=a&&(d=G.getBucket(b,c)));d.dirty=!0;d.fillIndex=a;return d};G.prepareShader=function(a,b,c,d,e){var f=b.gl,g=b.offset,h=null;switch(a.mode[1]){case 1:h=b.shaderManager.fillShader;break;case 2:h=b.shaderManager.patternFillShader;break;case 5:h=b.shaderManager.drawTrianglesShader;break;default:h=null}if(null==h)return null;b.shaderManager.setShader(h);f.uniform2f(h.projectionVector,d.x,-d.y);f.uniform2f(h.offsetVector,-g.x,-g.y);f.uniform1f(h.alpha,c.__worldAlpha*a.alpha);switch(a.mode[1]){case 1:f.uniformMatrix3fv(h.translationMatrix,
  581. !1,e);f.uniform3fv(h.color,[a.color]);break;case 2:f.uniformMatrix3fv(h.translationMatrix,!1,e);f.uniform1i(h.sampler,0);f.uniform2f(h.patternTL,a.textureTL.x,a.textureTL.y);f.uniform2f(h.patternBR,a.textureBR.x,a.textureBR.y);f.uniformMatrix3fv(h.patternMatrix,!1,a.textureMatrix.toArray(!1));break;case 5:null!=a.texture?(f.uniform1i(h.useTexture,1),f.uniform1i(h.sampler,0)):(f.uniform1i(h.useTexture,0),f.uniform3fv(h.color,[a.color]))}return h};G.renderFill=function(a,
  582. b,c){c=c.gl;a.mode==ga.PatternFill&&null!=a.texture&&G.bindTexture(c,a);c.bindBuffer(c.ARRAY_BUFFER,a.tileBuffer);c.vertexAttribPointer(b.aVertexPosition,4,c.SHORT,!1,0,0);c.drawArrays(c.TRIANGLE_STRIP,0,4)};G.renderDrawTriangles=function(a,b,c){c=c.gl;for(var d=0,e=a.data;d<e.length;){var f=e[d];++d;f.destroyed||(null!=a.texture&&G.bindTexture(c,a),G.bindDrawTrianglesBuffer(c,b,f),c.drawArrays(c.TRIANGLES,f.glStart,f.glLength))}};G.renderDrawTiles=function(a,b,c){b=b.graphicType.slice(2);c.spriteBatch.renderTiles(a,
  583. b[0],b[1],b[2],b[3],b[4])};G.bindDrawTrianglesBuffer=function(a,b,c){a.bindBuffer(a.ARRAY_BUFFER,c.vertsBuffer);c=4*c.stride;a.vertexAttribPointer(b.aVertexPosition,2,a.FLOAT,!1,c,0);a.vertexAttribPointer(b.aTextureCoord,2,a.FLOAT,!1,c,8);a.vertexAttribPointer(b.colorAttribute,4,a.FLOAT,!1,c,16)};G.bindTexture=function(a,b){a.bindTexture(a.TEXTURE_2D,b.texture);b.textureRepeat&&b.bitmap.__image.get_powerOfTwo()?(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.REPEAT),a.texParameteri(a.TEXTURE_2D,
  584. a.TEXTURE_WRAP_T,a.REPEAT)):(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE));b.textureSmooth?(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR)):(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.NEAREST),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.NEAREST))};G.hex2rgb=function(a){return null==a?[0,0,0]:[(a>>16&255)/255,(a>>8&255)/255,(a&255)/
  585. 255]};G.hex2rgba=function(a){return null==a?[1,1,1,1]:[(a>>16&255)/255,(a>>8&255)/255,(a&255)/255,(a>>24&255)/255]};var lf=function(a){this.lastIndex=0;this.gl=a;this.buckets=[];this.lastIndex=0};g["openfl._internal.renderer.opengl.utils.GLStack"]=lf;lf.__name__="openfl _internal renderer opengl utils GLStack".split(" ");lf.prototype={reset:function(){this.buckets=[];this.lastIndex=0},upload:function(){for(var a=0,b=this.buckets;a<b.length;){var c=b[a];++a;c.dirty&&c.upload()}},__class__:lf};var nf=
  586. function(a){this.textureSmooth=this.uploadTileBuffer=!0;this.textureRepeat=!1;this.data=[];this.fillIndex=0;this.gl=a;this.color=[0,0,0];this.lastIndex=0;this.alpha=1;this.dirty=!0;this.mode=ga.Fill;this.textureMatrix=new mb;this.textureTL=new la;this.textureBR=new la(1,1)};g["openfl._internal.renderer.opengl.utils.GLBucket"]=nf;nf.__name__="openfl _internal renderer opengl utils GLBucket".split(" ");nf.prototype={getData:function(){for(var a=null,b=!1,c=0,d=this.data;c<d.length;){var e=d[c];++c;
  587. if(e.destroyed){a=e;b=!0;break}}null==a&&(a=new ce(this.gl));a.destroyed=!1;a.parent=this;b&&E.remove(this.data,a);this.data.push(a);return a},reset:function(){for(var a=0,b=this.data;a<b.length;){var c=b[a];++a;c.destroy()}this.fillIndex=0;this.uploadTileBuffer=!0;this.graphicType=ka.Polygon},upload:function(){this.uploadTileBuffer&&(null==this.tileBuffer&&(this.tileBuffer=this.gl.createBuffer(),this.tile=[0,0,0,0,4096,0,1,0,0,4096,0,1,4096,4096,1,1],this.glTile=new Int16Array(this.tile)),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,
  588. this.tileBuffer),this.gl.bufferData(this.gl.ARRAY_BUFFER,this.glTile,this.gl.STATIC_DRAW),this.uploadTileBuffer=!1);for(var a=0,b=this.data;a<b.length;){var c=b[a];++a;c.destroyed||c.upload()}this.dirty=!1},__class__:nf};var ce=function(a,b){null==b&&(b=!0);this.rawIndices=this.destroyed=!1;this.stride=0;this.rawVerts=!1;this.glLength=this.glStart=this.lastVertsSize=0;this.gl=a;this.drawMode=a.TRIANGLE_STRIP;this.verts=[];this.vertsBuffer=a.createBuffer();this.indices=[];this.indexBuffer=a.createBuffer();
  589. b&&(this.line=new ce(a,!1))};g["openfl._internal.renderer.opengl.utils.GLBucketData"]=ce;ce.__name__="openfl _internal renderer opengl utils GLBucketData".split(" ");ce.prototype={destroy:function(){this.destroyed=!0;this.verts=[];this.indices=[];this.stride=this.glStart=this.glLength=0;this.rawIndices=this.rawVerts=!1;null!=this.line&&this.line.destroy()},upload:function(){if(this.rawVerts&&null!=this.glVerts&&0<this.glVerts.length||0<this.verts.length)if(this.rawVerts||(this.glVerts=[this.verts]),
  590. this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.vertsBuffer),this.glVerts.length<=this.lastVertsSize){var a=4*this.glLength*this.stride;0<this.glLength&&this.lastVertsSize>a?(a=this.glVerts.subarray(0,a),this.gl.bufferSubData(this.gl.ARRAY_BUFFER,0,a)):this.gl.bufferSubData(this.gl.ARRAY_BUFFER,0,this.glVerts)}else this.gl.bufferData(this.gl.ARRAY_BUFFER,this.glVerts,this.gl.STREAM_DRAW),this.lastVertsSize=this.glVerts.length;0==this.glLength&&(this.rawIndices&&null!=this.glIndices&&0<this.glIndices.length||
  591. 0<this.indices.length)&&(this.rawIndices||(this.glIndices=new Uint16Array(this.indices)),this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER,this.indexBuffer),this.gl.bufferData(this.gl.ELEMENT_ARRAY_BUFFER,this.glIndices,this.gl.STREAM_DRAW));null!=this.line&&this.line.upload()},__class__:ce};var ga=g["openfl._internal.renderer.opengl.utils.BucketMode"]={__ename__:"openfl _internal renderer opengl utils BucketMode".split(" "),__constructs__:"None Fill PatternFill Line PatternLine DrawTriangles DrawTiles".split(" ")};
  592. ga.None=["None",0];ga.None.toString=q;ga.None.__enum__=ga;ga.Fill=["Fill",1];ga.Fill.toString=q;ga.Fill.__enum__=ga;ga.PatternFill=["PatternFill",2];ga.PatternFill.toString=q;ga.PatternFill.__enum__=ga;ga.Line=["Line",3];ga.Line.toString=q;ga.Line.__enum__=ga;ga.PatternLine=["PatternLine",4];ga.PatternLine.toString=q;ga.PatternLine.__enum__=ga;ga.DrawTriangles=["DrawTriangles",5];ga.DrawTriangles.toString=q;ga.DrawTriangles.__enum__=ga;ga.DrawTiles=["DrawTiles",6];ga.DrawTiles.toString=q;ga.DrawTiles.__enum__=
  593. ga;var $f=function(){};g["openfl._internal.renderer.opengl.utils.GLGraphicsData"]=$f;$f.__name__="openfl _internal renderer opengl utils GLGraphicsData".split(" ");var Hc=function(){};g["openfl._internal.renderer.opengl.utils.PolyK"]=Hc;Hc.__name__="openfl _internal renderer opengl utils PolyK".split(" ");Hc.triangulate=function(a){var b=!0,c=a.length>>1;if(3>c)return[];var d=[],e;e=[];for(var f=0;f<c;){var g=f++;e.push(g)}for(var f=0,g=c,h=!1;3<g;){var l=e[f%g],k=e[(f+1)%g],m=e[(f+2)%g],n=a[2*l],
  594. q=a[2*l+1],r=a[2*k],v=a[2*k+1],w=a[2*m],u=a[2*m+1],h=!1;if(Hc._convex(n,q,r,v,w,u,b))for(var h=!0,x=0;x<g;){var t=x++,t=e[t];if(t!=l&&t!=k&&t!=m&&Hc._PointInTriangle(a[2*t],a[2*t+1],n,q,r,v,w,u)){h=!1;break}}if(h)d.push(l),d.push(k),d.push(m),e.splice((f+1)%g,1),g--,f=0;else if(f++>3*g)if(b){d=[];b=[];for(e=0;e<c;)f=e++,b.push(f);e=b;f=0;g=c;b=!1}else return console.log("Warning: shape too complex to fill"),[]}d.push(e[0]);d.push(e[1]);d.push(e[2]);return d};Hc._PointInTriangle=function(a,b,c,d,e,
  595. f,g,h){g=g-c|0;h=h-d|0;e=e-c|0;f=f-d|0;a=a-c|0;c=b-d|0;b=g*g+h*h;d=g*e+h*f;g=g*a+h*c;h=e*e+f*f;e=e*a+f*c;f=1/(b*h-d*d);h=(h*g-d*e)*f;g=(b*e-d*g)*f;return 0<=h&&0<=g&&1>h+g};Hc._convex=function(a,b,c,d,e,f,g){return 0<=(b-d)*(e-c)+(c-a)*(f-d)==g};var ka=g["openfl._internal.renderer.opengl.utils.GraphicType"]={__ename__:"openfl _internal renderer opengl utils GraphicType".split(" "),__constructs__:"Polygon Rectangle Circle Ellipse DrawTriangles DrawTiles".split(" ")};ka.Polygon=["Polygon",0];ka.Polygon.toString=
  596. q;ka.Polygon.__enum__=ka;ka.Rectangle=function(a){a=["Rectangle",1,a];a.__enum__=ka;a.toString=q;return a};ka.Circle=["Circle",2];ka.Circle.toString=q;ka.Circle.__enum__=ka;ka.Ellipse=["Ellipse",3];ka.Ellipse.toString=q;ka.Ellipse.__enum__=ka;ka.DrawTriangles=function(a,b,c,d,e,f){a=["DrawTriangles",4,a,b,c,d,e,f];a.__enum__=ka;a.toString=q;return a};ka.DrawTiles=function(a,b,c,d,e){a=["DrawTiles",5,a,b,c,d,e];a.__enum__=ka;a.toString=q;return a};var gf=function(a){this.maskStack=[];this.maskPosition=
  597. 0;this.setContext(a);this.reverse=!1;this.count=0};g["openfl._internal.renderer.opengl.utils.MaskManager"]=gf;gf.__name__="openfl _internal renderer opengl utils MaskManager".split(" ");gf.prototype={setContext:function(a){this.gl=a},__class__:gf};var ef=function(a){this.maxAttibs=10;this.attribState=[];this.tempAttribState=[];this.shaderMap=[];for(var b=0,c=this.maxAttibs;b<c;){var d=b++;this.attribState[d]=!1}this.setContext(a)};g["openfl._internal.renderer.opengl.utils.ShaderManager"]=ef;ef.__name__=
  598. "openfl _internal renderer opengl utils ShaderManager".split(" ");ef.prototype={setAttribs:function(a){for(var b=0,c=this.tempAttribState.length;b<c;){var d=b++;this.tempAttribState[d]=!1}b=0;for(c=a.length;b<c;)d=b++,this.tempAttribState[a[d]]=!0;a=this.gl;b=0;for(c=this.attribState.length;b<c;)d=b++,this.attribState[d]!=this.tempAttribState[d]&&(this.attribState[d]=this.tempAttribState[d],this.tempAttribState[d]?a.enableVertexAttribArray(d):a.disableVertexAttribArray(d))},setContext:function(a){this.gl=
  599. a;this.primitiveShader=new ae(a);this.complexPrimitiveShader=new Wd(a);this.defaultShader=new Gc(a);this.fastShader=new Yd(a);this.stripShader=new be(a);this.fillShader=new Zd(a);this.patternFillShader=new $d(a);this.drawTrianglesShader=new Xd(a);this.setShader(this.defaultShader)},setShader:function(a){if(this._currentId==a._UID)return!1;this._currentId=a._UID;this.currentShader=a;this.gl.useProgram(a.program);this.setAttribs(a.attributes);return!0},__class__:ef};var ff=function(a){this.states=[];
  600. this.vertSize=6;this.size=Math.floor(Math.pow(2,16)/this.vertSize);var b=6*this.size;this.vertices=[4*this.size*this.vertSize];this.indices=new Uint16Array(b);for(var c=this.lastIndexCount=0,d=0;c<b;)this.indices[c]=d,this.indices[c+1]=d+1,this.indices[c+2]=d+2,this.indices[c+3]=d,this.indices[c+4]=d+2,this.indices[c+5]=d+3,c+=6,d+=4;this.drawing=!1;this.currentBatchSize=0;this.currentBaseTexture=null;this.setContext(a);this.dirty=!0;this.currentState=new de};g["openfl._internal.renderer.opengl.utils.SpriteBatch"]=
  601. ff;ff.__name__="openfl _internal renderer opengl utils SpriteBatch".split(" ");ff.prototype={begin:function(a){this.renderSession=a;this.shader=a.shaderManager.defaultShader;this.drawing=!0;this.start()},end:function(){this.flush();this.drawing=!1},flush:function(){if(0!=this.currentBatchSize){var a=this.gl;this.renderSession.shaderManager.setShader(this.renderSession.shaderManager.defaultShader);if(this.dirty){this.dirty=!1;a.activeTexture(a.TEXTURE0);a.bindBuffer(a.ARRAY_BUFFER,this.vertexBuffer);
  602. a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.indexBuffer);var b=this.renderSession.projection;a.uniform2f(this.shader.projectionVector,b.x,b.y);b=4*this.vertSize;a.vertexAttribPointer(this.shader.aVertexPosition,2,a.FLOAT,!1,b,0);a.vertexAttribPointer(this.shader.aTextureCoord,2,a.FLOAT,!1,b,8);a.vertexAttribPointer(this.shader.colorAttribute,2,a.FLOAT,!1,b,16)}this.currentBatchSize>.5*this.size?a.bufferSubData(a.ARRAY_BUFFER,0,this.vertices):(b=this.vertices.subarray(0,4*this.currentBatchSize*this.vertSize),
  603. a.bufferSubData(a.ARRAY_BUFFER,0,b));var c=b=0;this.currentState.texture=null;this.currentState.textureSmooth=!0;this.currentState.blendMode=this.renderSession.blendModeManager.currentBlendMode;for(var d=this.currentBatchSize,e=0;e<d;){var f=e++,a=this.states[f];if(this.currentState.texture!=a.texture||this.currentState.blendMode!=a.blendMode)this.renderBatch(this.currentState,b,c),c=f,b=0,this.currentState.texture=a.texture,this.currentState.textureSmooth=a.textureSmooth,this.currentState.blendMode=
  604. a.blendMode,this.renderSession.blendModeManager.setBlendMode(this.currentState.blendMode);b++}this.renderBatch(this.currentState,b,c);this.currentBatchSize=0}},render:function(a){var b=a.bitmapData,c=b.getTexture(this.gl);if(null!=b){this.currentBatchSize>=this.size&&(this.flush(),this.currentState.texture=c);var d=b.__uvData;null!=d&&(this.fillVertices(4*this.currentBatchSize*this.vertSize,0,0,b.width,b.height,16777215,a.__worldAlpha,d,a.__worldTransform),this.setState(this.currentBatchSize,c,null,
  605. a.blendMode),this.currentBatchSize++)}},renderCachedGraphics:function(a){var b=a.__graphics.__cachedTexture;if(null!=b){this.currentBatchSize>=this.size&&(this.flush(),this.currentBaseTexture=b.texture);var c=a.__worldAlpha,d=new Sc;d.x0=0;d.y0=1;d.x1=1;d.y1=1;d.x2=1;d.y2=0;d.x3=0;d.y3=0;var e=4*this.currentBatchSize*this.vertSize,f=a.__worldTransform.clone();f.__translateTransformed(new la(a.__graphics.__bounds.x,a.__graphics.__bounds.y));this.fillVertices(e,0,0,b.width,b.height,16777215,c,d,f);
  606. this.setState(this.currentBatchSize,b.texture,null,a.blendMode);this.currentBatchSize++}},renderTiles:function(a,b,c,d,e,f){null==f&&(f=-1);null==e&&(e=0);null==d&&(d=!1);var g=b.__bitmap.getTexture(this.gl);if(null!=g){var h=0<(e&1),l=0<(e&2),k=0<(e&16),m=0<(e&4),n=0<(e&8),q=0<(e&32),r=0<(e&64);switch(e&983040){case 65536:e=H.ADD;break;case 131072:e=H.MULTIPLY;break;case 262144:e=H.SCREEN;break;default:e=H.NORMAL}k&&(l=h=!1);var v=0,w=0,u=0,x=0,t=0,y=3;q&&(y=r?8:6);h&&(v=y,y++);l&&(w=y,y++);k&&(t=
  607. y,y+=4);m&&(u=y,y+=3);n&&(x=y,y++);var A=c.length;0<=f&&A>f&&(A=f);f=0;var z=-1,B=b.__rectTile,z=b.__rectUV,C=b.__point,E=0,D=0,G=1,I=16777215,K=1,J=0,L=1,M=J=K=L=J=0,P=D=E=0,Q=0,O=new mb;a=a.__worldTransform;for(var N=new Sc,D=0;f<A;)this.currentBatchSize>=this.size&&(this.flush(),this.currentBaseTexture=g),E=c[f],D=c[f+1],q?(B.x=c[f+2],B.y=c[f+3],B.width=c[f+4],B.height=c[f+5],r?(C.x=c[f+6],C.y=c[f+7]):(C.x=0,C.y=0),z.setTo(B.get_left()/b.__bitmap.width,B.get_top()/b.__bitmap.height,B.get_right()/
  608. b.__bitmap.width,B.get_bottom()/b.__bitmap.height)):(z=(null==c[f+2]?0:c[f+2])|0,B=b.__tileRects[z],C=b.__centerPoints[z],z=b.__tileUVs[z]),null!=B&&0<B.width&&0<B.height&&null!=C&&(G=1,I=16777215,L=K=1,J=0,O.identity(),n&&(G=c[f+x]),m&&(I=(255*c[f+u]|0)<<16|(255*c[f+u+1]|0)<<8|255*c[f+u+2]|0),h&&(K=c[f+v]),l&&(J=c[f+w],L=Math.cos(J),J=Math.sin(J)),k?(L=c[f+t],K=c[f+t+1],J=c[f+t+2],M=c[f+t+3]):(L*=K,K*=J,J=-K,M=L),P=C.x*L+C.y*J,Q=C.x*K+C.y*M,E-=P,D-=Q,O.a=L*a.a+K*a.c,O.b=L*a.b+K*a.d,O.c=J*a.a+M*a.c,
  609. O.d=J*a.b+M*a.d,O.tx=E*a.a+D*a.c,O.ty=E*a.b+D*a.d,N.x0=z.x,N.y0=z.y,N.x1=z.width,N.y1=z.y,N.x2=z.width,N.y2=z.height,N.x3=z.x,N.y3=z.height,D=4*this.currentBatchSize*this.vertSize,this.fillVertices(D,0,0,B.width,B.height,I,G,N,O),this.setState(this.currentBatchSize,g,d,e),this.currentBatchSize++),f+=y}},fillVertices:function(a,b,c,d,e,f,g,h,l){var k;k=d*(1-b);b=d*-b;d=e*(1-c);c=e*-c;e=l.a;var m=l.b,n=l.c,q=l.d,r=l.tx;l=l.ty;this.vertices[a++]=e*b+n*c+r;this.vertices[a++]=q*c+m*b+l;this.vertices[a++]=
  610. h.x0;this.vertices[a++]=h.y0;this.vertices[a++]=g;this.vertices[a++]=f;this.vertices[a++]=e*k+n*c+r;this.vertices[a++]=q*c+m*k+l;this.vertices[a++]=h.x1;this.vertices[a++]=h.y1;this.vertices[a++]=g;this.vertices[a++]=f;this.vertices[a++]=e*k+n*d+r;this.vertices[a++]=q*d+m*k+l;this.vertices[a++]=h.x2;this.vertices[a++]=h.y2;this.vertices[a++]=g;this.vertices[a++]=f;this.vertices[a++]=e*b+n*d+r;this.vertices[a++]=q*d+m*b+l;this.vertices[a++]=h.x3;this.vertices[a++]=h.y3;this.vertices[a++]=g;this.vertices[a++]=
  611. f},setState:function(a,b,c,d){null==c&&(c=!0);a=this.states[this.currentBatchSize];null==a&&(a=this.states[this.currentBatchSize]=new de);a.texture=b;a.textureSmooth=c;a.blendMode=d},renderBatch:function(a,b,c){0!=b&&(this.gl.bindTexture(this.gl.TEXTURE_2D,a.texture),a.textureSmooth?(this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MAG_FILTER,this.gl.LINEAR),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MIN_FILTER,this.gl.LINEAR)):(this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MAG_FILTER,
  612. this.gl.NEAREST),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MIN_FILTER,this.gl.NEAREST)),this.gl.drawElements(this.gl.TRIANGLES,6*b,this.gl.UNSIGNED_SHORT,12*c),this.renderSession.drawCount++)},setContext:function(a){this.gl=a;this.vertexBuffer=a.createBuffer();this.indexBuffer=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.indexBuffer);a.bufferData(a.ELEMENT_ARRAY_BUFFER,this.indices,a.STATIC_DRAW);a.bindBuffer(a.ARRAY_BUFFER,this.vertexBuffer);a.bufferData(a.ARRAY_BUFFER,
  613. this.vertices,a.DYNAMIC_DRAW);this.currentBlendMode=null},start:function(){this.dirty=!0},__class__:ff};var de=function(){this.textureSmooth=!0};g["openfl._internal.renderer.opengl.utils._SpriteBatch.State"]=de;de.__name__="openfl _internal renderer opengl utils _SpriteBatch State".split(" ");de.prototype={__class__:de};var jf=function(a){this.stencilStack=[];this.bucketStack=[];this.setContext(a);this.reverse=!0;this.count=0};g["openfl._internal.renderer.opengl.utils.StencilManager"]=jf;jf.__name__=
  614. "openfl _internal renderer opengl utils StencilManager".split(" ");jf.prototype={prepareGraphics:function(a,b,c,d){var e=b.offset,f=b.shaderManager.fillShader;b.shaderManager.setShader(f);this.gl.uniformMatrix3fv(f.translationMatrix,!1,d);this.gl.uniform2f(f.projectionVector,c.x,-c.y);this.gl.uniform2f(f.offsetVector,-e.x,-e.y);this.gl.bindBuffer(this.gl.ARRAY_BUFFER,a.vertsBuffer);this.gl.vertexAttribPointer(f.aVertexPosition,2,this.gl.FLOAT,!1,8,0);this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER,
  615. a.indexBuffer)},pushBucket:function(a,b,c,d){0==this.bucketStack.length&&(this.gl.enable(this.gl.STENCIL_TEST),this.gl.clear(this.gl.STENCIL_BUFFER_BIT),this.gl.stencilMask(255));this.bucketStack.push(a);this.gl.colorMask(!1,!1,!1,!1);this.gl.stencilFunc(this.gl.NEVER,1,255);this.gl.stencilOp(this.gl.INVERT,this.gl.KEEP,this.gl.KEEP);this.gl.clear(this.gl.STENCIL_BUFFER_BIT);var e=0;for(a=a.data;e<a.length;){var f=a[e];++e;f.destroyed||(this.prepareGraphics(f,b,c,d),this.gl.drawElements(f.drawMode,
  616. f.glIndices.length,this.gl.UNSIGNED_SHORT,0))}this.gl.colorMask(!0,!0,!0,!0);this.gl.stencilOp(this.gl.KEEP,this.gl.KEEP,this.gl.KEEP);this.gl.stencilFunc(this.gl.EQUAL,255,255)},popBucket:function(a,b,c){this.bucketStack.pop();0==this.bucketStack.length&&this.gl.disable(this.gl.STENCIL_TEST)},setContext:function(a){this.gl=a},__class__:jf};var ld=function(){this.__mouseOutStack=[];ib.call(this);B.application=this};g["openfl.display.Application"]=ld;ld.__name__=["openfl","display","Application"];
  617. ld.__super__=ib;ld.prototype=t(ib.prototype,{convertKeyCode:function(a){switch(a){case 8:return 8;case 9:return 9;case 13:return 13;case 27:return 27;case 32:return 32;case 39:return 222;case 44:return 188;case 45:return 189;case 46:return 190;case 47:return 191;case 48:return 48;case 49:return 49;case 50:return 50;case 51:return 51;case 52:return 52;case 53:return 53;case 54:return 54;case 55:return 55;case 56:return 56;case 57:return 57;case 59:return 186;case 61:return 187;case 91:return 219;case 92:return 220;
  618. case 93:return 221;case 96:return 192;case 97:return 65;case 98:return 66;case 99:return 67;case 100:return 68;case 101:return 69;case 102:return 70;case 103:return 71;case 104:return 72;case 105:return 73;case 106:return 74;case 107:return 75;case 108:return 76;case 109:return 77;case 110:return 78;case 111:return 79;case 112:return 80;case 113:return 81;case 114:return 82;case 115:return 83;case 116:return 84;case 117:return 85;case 118:return 86;case 119:return 87;case 120:return 88;case 121:return 89;
  619. case 122:return 90;case 127:return 46;case 1073741881:return 20;case 1073741882:return 112;case 1073741883:return 113;case 1073741884:return 114;case 1073741885:return 115;case 1073741886:return 116;case 1073741887:return 117;case 1073741888:return 118;case 1073741889:return 119;case 1073741890:return 120;case 1073741891:return 121;case 1073741892:return 122;case 1073741893:return 123;case 1073741897:return 45;case 1073741898:return 36;case 1073741899:return 33;case 1073741901:return 35;case 1073741902:return 34;
  620. case 1073741903:return 39;case 1073741904:return 37;case 1073741905:return 40;case 1073741906:return 38;case 1073741908:return 111;case 1073741909:return 106;case 1073741910:return 109;case 1073741911:return 107;case 1073741912:return 108;case 1073741913:return 97;case 1073741914:return 98;case 1073741915:return 99;case 1073741916:return 100;case 1073741917:return 101;case 1073741918:return 102;case 1073741919:return 103;case 1073741920:return 104;case 1073741921:return 105;case 1073741922:return 96;
  621. case 1073741923:return 110;case 1073741928:return 124;case 1073741929:return 125;case 1073741930:return 126;case 1073742048:return 17;case 1073742049:return 16;case 1073742050:return 18;case 1073742052:return 17;case 1073742053:return 16;case 1073742054:return 18;default:return a}},create:function(a){ib.prototype.create.call(this,a);this.stage=new ee(this.windows[0].__width,this.windows[0].__height,a.background);this.stage.addChild(B.current);this.stage.align=ea.TOP_LEFT;this.stage.scaleMode=bb.NO_SCALE},
  622. onKey:function(a){var b=[];null==this.stage.__focus?this.stage.__getInteractive(b):this.stage.__focus.__getInteractive(b);0<b.length&&(b.reverse(),this.stage.__fireEvent(a,b))},onKeyDown:function(a,b){var c=this.convertKeyCode(a);this.onKey(new kb(kb.KEY_DOWN,!0,!1,c,c,null,tb.get_ctrlKey(b),tb.get_altKey(b),tb.get_shiftKey(b),tb.get_metaKey(b)))},onKeyUp:function(a,b){var c=this.convertKeyCode(a);this.onKey(new kb(kb.KEY_UP,!0,!1,c,c,null,tb.get_ctrlKey(b),tb.get_altKey(b),tb.get_shiftKey(b),tb.get_metaKey(b)))},
  623. onMouse:function(a,b,c,d){if(!(2<d)){this.stage.__mouseX=b;this.stage.__mouseY=c;var e=[],f=null,g=new la(b,c);this.stage.__hitTest(b,c,!1,e,!0)?f=e[e.length-1]:(f=this.stage,e=[this.stage]);this.stage.__fireEvent(y.__create(a,d,f==this.stage?g:f.globalToLocal(g),f),e);switch(a){case y.MOUSE_UP:b=y.CLICK;break;case y.MIDDLE_MOUSE_UP:b=y.MIDDLE_CLICK;break;case y.RIGHT_MOUSE_UP:b=y.RIGHT_CLICK;break;default:b=null}null!=b&&(this.stage.__fireEvent(y.__create(b,d,f==this.stage?g:f.globalToLocal(g),f),
  624. e),a==y.MOUSE_UP&&v.__cast(f,vb).doubleClickEnabled&&(a=B.getTimer(),500>a-this.__lastClickTime?(this.stage.__fireEvent(y.__create(y.DOUBLE_CLICK,d,f==this.stage?g:f.globalToLocal(g),f),e),this.__lastClickTime=0):this.__lastClickTime=a));v.__instanceof(f,A)?(d=f,d.buttonMode&&d.useHandCursor?Ub.set_cursor(L.POINTER):Ub.set_cursor(L.ARROW)):v.__instanceof(f,fe)?f.useHandCursor?Ub.set_cursor(L.POINTER):Ub.set_cursor(L.ARROW):v.__instanceof(f,ab)?f.type==Tb.INPUT?Ub.set_cursor(L.TEXT):Ub.set_cursor(L.ARROW):
  625. Ub.set_cursor(L.ARROW);d=0;for(f=this.__mouseOutStack;d<f.length;)a=f[d],++d,-1==E.indexOf(e,a,0)&&(E.remove(this.__mouseOutStack,a),b=a.globalToLocal(g),a.dispatchEvent(new y(y.MOUSE_OUT,!1,!1,b.x,b.y,a)));for(d=0;d<e.length;)f=e[d],++d,-1==E.indexOf(this.__mouseOutStack,f,0)&&(f.hasEventListener(y.MOUSE_OVER)&&(a=f.globalToLocal(g),f.dispatchEvent(new y(y.MOUSE_OVER,!1,!1,a.x,a.y,f))),f.hasEventListener(y.MOUSE_OUT)&&this.__mouseOutStack.push(f));null!=this.stage.__dragObject&&this.stage.__drag(g)}},
  626. onMouseDown:function(a,b,c){var d;switch(c){case 1:d=y.MIDDLE_MOUSE_DOWN;break;case 2:d=y.RIGHT_MOUSE_DOWN;break;default:d=y.MOUSE_DOWN}this.onMouse(d,a,b,c)},onMouseMove:function(a,b,c){this.onMouse(y.MOUSE_MOVE,a,b,0)},onMouseUp:function(a,b,c){var d;switch(c){case 1:d=y.MIDDLE_MOUSE_UP;break;case 2:d=y.RIGHT_MOUSE_UP;break;default:d=y.MOUSE_UP}this.onMouse(d,a,b,c)},onTouch:function(a,b,c,d){var e=new la(b,c);this.stage.__mouseX=e.x;this.stage.__mouseY=e.y;var f=[],g;switch(a){case "touchBegin":g=
  627. y.MOUSE_DOWN;break;case "touchMove":g=y.MOUSE_MOVE;break;case "touchEnd":g=y.MOUSE_UP;break;default:g=null}if(this.stage.__hitTest(b,c,!1,f,!0)){c=f[f.length-1];var h=c.globalToLocal(e);b=wc.__create(a,null,h,c);b.touchPointID=d;b.isPrimaryTouchPoint=!0;d=y.__create(g,0,h,c);d.buttonDown="touchEnd"!=a;this.stage.__fireEvent(b,f);this.stage.__fireEvent(d,f)}else f=wc.__create(a,null,e,this.stage),f.touchPointID=d,f.isPrimaryTouchPoint=!0,d=y.__create(g,0,e,this.stage),d.buttonDown="touchEnd"!=a,this.stage.__fireEvent(f,
  628. [this.stage]),this.stage.__fireEvent(d,[this.stage]);"touchMove"==a&&null!=this.stage.__dragObject&&this.stage.__drag(e)},onTouchMove:function(a,b,c){this.onTouch("touchMove",a,b,c)},onTouchEnd:function(a,b,c){this.onTouch("touchEnd",a,b,c)},onTouchStart:function(a,b,c){this.onTouch("touchBegin",a,b,c)},onWindowActivate:function(){var a=new u(u.ACTIVATE);this.stage.__broadcast(a,!0)},onWindowDeactivate:function(){var a=new u(u.DEACTIVATE);this.stage.__broadcast(a,!0)},onWindowResize:function(a,b){this.stage.stageWidth=
  629. a;this.stage.stageHeight=b;var c=new u(u.RESIZE);this.stage.__broadcast(c,!1)},render:function(a){this.stage.__render(a)},__class__:ld});var oc=function(a,b,c){null==c&&(c=!1);Ua.call(this);this.bitmapData=a;this.pixelSnapping=b;this.smoothing=c;null==b&&(this.pixelSnapping=Sa.AUTO)};g["openfl.display.Bitmap"]=oc;oc.__name__=["openfl","display","Bitmap"];oc.__super__=Ua;oc.prototype=t(Ua.prototype,{__getBounds:function(a,b){if(null!=this.bitmapData){var c=new oa(0,0,this.bitmapData.width,this.bitmapData.height),
  630. c=c.transform(this.__worldTransform);a.__expand(c.x,c.y,c.width,c.height)}},__hitTest:function(a,b,c,d,e){if(!this.get_visible()||null==this.bitmapData)return!1;a=this.globalToLocal(new la(a,b));return 0<a.x&&0<a.y&&a.x<=this.bitmapData.width&&a.y<=this.bitmapData.height?(null==d||e||d.push(this),!0):!1},__renderCanvas:function(a){Jf.render(this,a)},__renderDOM:function(a){null!=this.stage&&this.__worldVisible&&this.__renderable&&null!=this.bitmapData&&this.bitmapData.__isValid?null!=this.bitmapData.__image.buffer.__srcImage?
  631. Vd.renderImage(this,a):Vd.renderCanvas(this,a):(null!=this.__image&&(a.element.removeChild(this.__image),this.__style=this.__image=null),null!=this.__canvas&&(a.element.removeChild(this.__canvas),this.__style=this.__canvas=null))},__renderGL:function(a){Kf.render(this,a)},__renderMask:function(a){a.context.rect(0,0,this.get_width(),this.get_height())},get_height:function(){return null!=this.bitmapData?this.bitmapData.height*this.get_scaleY():0},get_width:function(){return null!=this.bitmapData?this.bitmapData.width*
  632. this.get_scaleX():0},__class__:oc});var Sc=function(){this.x0=this.x1=this.x2=this.x3=this.y0=this.y1=this.y2=this.y3=0};g["openfl.display.TextureUvs"]=Sc;Sc.__name__=["openfl","display","TextureUvs"];Sc.prototype={__class__:Sc};var H=g["openfl.display.BlendMode"]={__ename__:["openfl","display","BlendMode"],__constructs__:"ADD ALPHA DARKEN DIFFERENCE ERASE HARDLIGHT INVERT LAYER LIGHTEN MULTIPLY NORMAL OVERLAY SCREEN SUBTRACT".split(" ")};H.ADD=["ADD",0];H.ADD.toString=q;H.ADD.__enum__=H;H.ALPHA=
  633. ["ALPHA",1];H.ALPHA.toString=q;H.ALPHA.__enum__=H;H.DARKEN=["DARKEN",2];H.DARKEN.toString=q;H.DARKEN.__enum__=H;H.DIFFERENCE=["DIFFERENCE",3];H.DIFFERENCE.toString=q;H.DIFFERENCE.__enum__=H;H.ERASE=["ERASE",4];H.ERASE.toString=q;H.ERASE.__enum__=H;H.HARDLIGHT=["HARDLIGHT",5];H.HARDLIGHT.toString=q;H.HARDLIGHT.__enum__=H;H.INVERT=["INVERT",6];H.INVERT.toString=q;H.INVERT.__enum__=H;H.LAYER=["LAYER",7];H.LAYER.toString=q;H.LAYER.__enum__=H;H.LIGHTEN=["LIGHTEN",8];H.LIGHTEN.toString=q;H.LIGHTEN.__enum__=
  634. H;H.MULTIPLY=["MULTIPLY",9];H.MULTIPLY.toString=q;H.MULTIPLY.__enum__=H;H.NORMAL=["NORMAL",10];H.NORMAL.toString=q;H.NORMAL.__enum__=H;H.OVERLAY=["OVERLAY",11];H.OVERLAY.toString=q;H.OVERLAY.__enum__=H;H.SCREEN=["SCREEN",12];H.SCREEN.toString=q;H.SCREEN.__enum__=H;H.SUBTRACT=["SUBTRACT",13];H.SUBTRACT.toString=q;H.SUBTRACT.__enum__=H;var Bb=g["openfl.display.CapsStyle"]={__ename__:["openfl","display","CapsStyle"],__constructs__:["NONE","ROUND","SQUARE"]};Bb.NONE=["NONE",0];Bb.NONE.toString=q;Bb.NONE.__enum__=
  635. Bb;Bb.ROUND=["ROUND",1];Bb.ROUND.toString=q;Bb.ROUND.__enum__=Bb;Bb.SQUARE=["SQUARE",2];Bb.SQUARE.toString=q;Bb.SQUARE.__enum__=Bb;var of=function(){};g["openfl.display.FrameLabel"]=of;of.__name__=["openfl","display","FrameLabel"];of.__super__=V;of.prototype=t(V.prototype,{__class__:of});var Ae=function(){this.__visible=!0;this.__glStack=[];this.__dirty=!0;this.__commands=[];this.__commands=[];this.__positionY=this.__positionX=this.__halfStrokeWidth=0};g["openfl.display.Graphics"]=Ae;Ae.__name__=
  636. ["openfl","display","Graphics"];Ae.prototype={beginFill:function(a,b){null==b&&(b=1);null==a&&(a=0);this.__commands.push(ba.BeginFill(a&16777215,b));0<b&&(this.__visible=!0)},clear:function(){this.__commands=[];this.__halfStrokeWidth=0;null!=this.__bounds&&(this.__transformDirty=this.__dirty=!0,this.__bounds=null);this.__visible=!1},drawCircle:function(a,b,c){0>=c||(this.__inflateBounds(a-c-this.__halfStrokeWidth,b-c-this.__halfStrokeWidth),this.__inflateBounds(a+c+this.__halfStrokeWidth,b+c+this.__halfStrokeWidth),
  637. this.__commands.push(ba.DrawCircle(a,b,c)),this.__dirty=!0)},drawRect:function(a,b,c,d){0>=c||0>=d||(this.__inflateBounds(a-this.__halfStrokeWidth,b-this.__halfStrokeWidth),this.__inflateBounds(a+c+this.__halfStrokeWidth,b+d+this.__halfStrokeWidth),this.__commands.push(ba.DrawRect(a,b,c,d)),this.__dirty=!0)},drawTiles:function(a,b,c,d,e){null==e&&(e=-1);null==d&&(d=0);null==c&&(c=!1);this.__inflateBounds(0,0);this.__inflateBounds(B.current.stage.stageWidth,B.current.stage.stageHeight);this.__commands.push(ba.DrawTiles(a,
  638. b,c,d,e));this.__visible=this.__dirty=!0},endFill:function(){this.__commands.push(ba.EndFill)},lineStyle:function(a,b,c,d,e,f,g,h){this.__halfStrokeWidth=null!=a?a/2:0;this.__commands.push(ba.LineStyle(a,b,c,d,e,f,g,h));null!=a&&(this.__visible=!0)},__getBounds:function(a,b){if(null!=this.__bounds){var c=this.__bounds.clone().transform(b);a.__expand(c.x,c.y,c.width,c.height)}},__hitTest:function(a,b,c,d){if(null==this.__bounds)return!1;c=this.__bounds.clone().transform(d);return a>c.x&&b>c.y&&a<=
  639. c.get_right()&&b<=c.get_bottom()},__inflateBounds:function(a,b){null==this.__bounds?(this.__bounds=new oa(a,b,0,0),this.__transformDirty=!0):(a<this.__bounds.x&&(this.__bounds.width+=this.__bounds.x-a,this.__bounds.x=a,this.__transformDirty=!0),b<this.__bounds.y&&(this.__bounds.height+=this.__bounds.y-b,this.__bounds.y=b,this.__transformDirty=!0),a>this.__bounds.x+this.__bounds.width&&(this.__bounds.width=a-this.__bounds.x),b>this.__bounds.y+this.__bounds.height&&(this.__bounds.height=b-this.__bounds.y))},
  640. __class__:Ae};var ba=g["openfl.display.DrawCommand"]={__ename__:["openfl","display","DrawCommand"],__constructs__:"BeginBitmapFill BeginFill CubicCurveTo CurveTo DrawCircle DrawEllipse DrawRect DrawRoundRect DrawTiles DrawTriangles EndFill LineStyle LineTo MoveTo".split(" ")};ba.BeginBitmapFill=function(a,b,c,d){a=["BeginBitmapFill",0,a,b,c,d];a.__enum__=ba;a.toString=q;return a};ba.BeginFill=function(a,b){var c=["BeginFill",1,a,b];c.__enum__=ba;c.toString=q;return c};ba.CubicCurveTo=function(a,b,
  641. c,d,e,f){a=["CubicCurveTo",2,a,b,c,d,e,f];a.__enum__=ba;a.toString=q;return a};ba.CurveTo=function(a,b,c,d){a=["CurveTo",3,a,b,c,d];a.__enum__=ba;a.toString=q;return a};ba.DrawCircle=function(a,b,c){a=["DrawCircle",4,a,b,c];a.__enum__=ba;a.toString=q;return a};ba.DrawEllipse=function(a,b,c,d){a=["DrawEllipse",5,a,b,c,d];a.__enum__=ba;a.toString=q;return a};ba.DrawRect=function(a,b,c,d){a=["DrawRect",6,a,b,c,d];a.__enum__=ba;a.toString=q;return a};ba.DrawRoundRect=function(a,b,c,d,e,f){a=["DrawRoundRect",
  642. 7,a,b,c,d,e,f];a.__enum__=ba;a.toString=q;return a};ba.DrawTiles=function(a,b,c,d,e){a=["DrawTiles",8,a,b,c,d,e];a.__enum__=ba;a.toString=q;return a};ba.DrawTriangles=function(a,b,c,d,e,f){a=["DrawTriangles",9,a,b,c,d,e,f];a.__enum__=ba;a.toString=q;return a};ba.EndFill=["EndFill",10];ba.EndFill.toString=q;ba.EndFill.__enum__=ba;ba.LineStyle=function(a,b,c,d,e,f,g,h){a=["LineStyle",11,a,b,c,d,e,f,g,h];a.__enum__=ba;a.toString=q;return a};ba.LineTo=function(a,b){var c=["LineTo",12,a,b];c.__enum__=
  643. ba;c.toString=q;return c};ba.MoveTo=function(a,b){var c=["MoveTo",13,a,b];c.__enum__=ba;c.toString=q;return c};var Cb=g["openfl.display.JointStyle"]={__ename__:["openfl","display","JointStyle"],__constructs__:["MITER","ROUND","BEVEL"]};Cb.MITER=["MITER",0];Cb.MITER.toString=q;Cb.MITER.__enum__=Cb;Cb.ROUND=["ROUND",1];Cb.ROUND.toString=q;Cb.ROUND.__enum__=Cb;Cb.BEVEL=["BEVEL",2];Cb.BEVEL.toString=q;Cb.BEVEL.__enum__=Cb;var cb=g["openfl.display.LineScaleMode"]={__ename__:["openfl","display","LineScaleMode"],
  644. __constructs__:["HORIZONTAL","NONE","NORMAL","VERTICAL"]};cb.HORIZONTAL=["HORIZONTAL",0];cb.HORIZONTAL.toString=q;cb.HORIZONTAL.__enum__=cb;cb.NONE=["NONE",1];cb.NONE.toString=q;cb.NONE.__enum__=cb;cb.NORMAL=["NORMAL",2];cb.NORMAL.toString=q;cb.NORMAL.__enum__=cb;cb.VERTICAL=["VERTICAL",3];cb.VERTICAL.toString=q;cb.VERTICAL.__enum__=cb;var pf=function(){};g["openfl.display.Loader"]=pf;pf.__name__=["openfl","display","Loader"];pf.__super__=A;pf.prototype=t(A.prototype,{__class__:pf});var Sa=g["openfl.display.PixelSnapping"]=
  645. {__ename__:["openfl","display","PixelSnapping"],__constructs__:["NEVER","AUTO","ALWAYS"]};Sa.NEVER=["NEVER",0];Sa.NEVER.toString=q;Sa.NEVER.__enum__=Sa;Sa.AUTO=["AUTO",1];Sa.AUTO.toString=q;Sa.AUTO.__enum__=Sa;Sa.ALWAYS=["ALWAYS",2];Sa.ALWAYS.toString=q;Sa.ALWAYS.__enum__=Sa;var md=function(a){za.call(this);if(null!=a&&(this.display=a,B.current.addChild(a),v.__instanceof(a,Db)))v.__cast(a,Db).onInit()};g["openfl.display.Preloader"]=md;md.__name__=["openfl","display","Preloader"];md.__super__=za;md.prototype=
  646. t(za.prototype,{load:function(a,b){var c=[],d=null,e=this.display,f=!1,g=null;1==r.isFunction(r.field(e,"needLoad"))&&(f=!0,g=r.field(e,"needLoad"));for(var e=0,h=a.length;e<h;){var l=e++,d=a[l];if(1!=f||0!=g(d))switch(b[l]){case "MUSIC":case "SOUND":d=Ec.withoutExtension(d),E.remove(c,d)||this.total++,c.push(d)}}for(f=0;f<c.length;)g=c[f],++f,e=new fc,e.addEventListener(u.COMPLETE,n(this,this.sound_onComplete)),e.addEventListener(Vb.IO_ERROR,n(this,this.sound_onIOError)),e.load(new Uc(g+".ogg"));
  647. za.prototype.load.call(this,a,b)},start:function(){null!=this.display&&v.__instanceof(this.display,Db)?(this.display.addEventListener(u.COMPLETE,n(this,this.display_onComplete)),v.__cast(this.display,Db).onLoaded()):za.prototype.start.call(this)},update:function(a,b){if(null!=this.display&&v.__instanceof(this.display,Db))v.__cast(this.display,Db).onUpdate(a,b)},display_onComplete:function(a){this.display.removeEventListener(u.COMPLETE,n(this,this.display_onComplete));B.current.removeChild(this.display);
  648. B.current.stage.set_focus(null);this.display=null;za.prototype.start.call(this)},sound_onComplete:function(a){this.loaded++;this.update(this.loaded,this.total);this.loaded==this.total&&this.start()},sound_onIOError:function(a){this.loaded++;this.update(this.loaded,this.total);this.loaded==this.total&&this.start()},__class__:md});var fe=function(){};g["openfl.display.SimpleButton"]=fe;fe.__name__=["openfl","display","SimpleButton"];fe.__super__=Ua;fe.prototype=t(Ua.prototype,{__class__:fe});var ee=
  649. function(a,b,c){this.__mouseX=this.__mouseY=0;A.call(this);null==c?(this.__transparent=!0,this.set_color(0)):this.set_color(c);this.set_name(null);this.__mouseY=this.__mouseX=0;this.stageWidth=a;this.stageHeight=b;this.stage=this;this.align=ea.TOP_LEFT;this.allowsFullScreen=!1;this.set_displayState(Ea.NORMAL);this.frameRate=60;this.quality=lb.HIGH;this.scaleMode=bb.NO_SCALE;this.__clearBeforeRender=this.stageFocusRect=!0;this.__stack=[];a=new qc;a.data=[];a.length=0;a.fixed=!1;a=this.stage3Ds=a;b=
  650. new ge;a.fixed||(a.length++,a.data.length<a.length&&(c=Array(a.data.length+10),Mb.blit(a.data,0,c,0,a.data.length),a.data=c),a.data[a.length-1]=b);a.length};g["openfl.display.Stage"]=ee;ee.__name__=["openfl","display","Stage"];ee.__super__=A;ee.prototype=t(A.prototype,{globalToLocal:function(a){return a},localToGlobal:function(a){return a},__drag:function(a){var b=this.__dragObject.parent;null!=b&&(a=b.globalToLocal(a));b=a.x+this.__dragOffsetX;a=a.y+this.__dragOffsetY;null!=this.__dragBounds&&(b<
  651. this.__dragBounds.x?b=this.__dragBounds.x:b>this.__dragBounds.get_right()&&(b=this.__dragBounds.get_right()),a<this.__dragBounds.y?a=this.__dragBounds.y:a>this.__dragBounds.get_bottom()&&(a=this.__dragBounds.get_bottom()));this.__dragObject.set_x(b);this.__dragObject.set_y(a)},__fireEvent:function(a,b){var c=b.length;if(0==c)a.eventPhase=da.AT_TARGET,a.target.__broadcast(a,!1);else{a.eventPhase=da.CAPTURING_PHASE;a.target=b[b.length-1];for(var d=0,e=c-1;d<e;){var f=d++;b[f].__broadcast(a,!1);if(a.__isCancelled)return}a.eventPhase=
  652. da.AT_TARGET;a.target.__broadcast(a,!1);if(!a.__isCancelled&&a.bubbles)for(a.eventPhase=da.BUBBLING_PHASE,c-=2;0<=c;){b[c].__broadcast(a,!1);if(a.__isCancelled)break;c--}}},__getInteractive:function(a){a.push(this)},__render:function(a){this.__broadcast(new u(u.ENTER_FRAME),!0);this.__invalidated&&(this.__invalidated=!1,this.__broadcast(new u(u.RENDER),!0));this.__renderable=!0;this.__update(!1,!0);switch(a[1]){case 0:a=a[2];null==this.__renderer&&(this.__renderer=new ja(this.stageWidth,this.stageHeight,
  653. a));this.__renderer.render(this);break;case 1:a=a[2];null==this.__renderer&&(this.__renderer=new Ud(this.stageWidth,this.stageHeight,a));this.__renderer.render(this);break;case 2:a=a[2],null==this.__renderer&&(this.__renderer=new ya(this.stageWidth,this.stageHeight,a)),this.__renderer.render(this)}},__update:function(a,b){if(a)0<ca.__worldTransformDirty&&(A.prototype.__update.call(this,!0,b),b&&(ca.__worldTransformDirty=0,this.__dirty=!0));else if(0<ca.__worldTransformDirty||this.__dirty||0<ca.__worldRenderDirty)A.prototype.__update.call(this,
  654. !1,b),b&&(ca.__worldTransformDirty=0,ca.__worldRenderDirty=0,this.__dirty=!1)},get_mouseX:function(){return this.__mouseX},get_mouseY:function(){return this.__mouseY},set_color:function(a){this.__colorSplit=[((a&16711680)>>>16)/255,((a&65280)>>>8)/255,(a&255)/255];this.__colorString="#"+W.hex(a,6);return this.__color=a},set_focus:function(a){if(a!=this.__focus){if(null!=this.__focus){var b=new Gb(Gb.FOCUS_OUT,!0,!1,a,!1,0);this.__stack=[];this.__focus.__getInteractive(this.__stack);this.__stack.reverse();
  655. this.__fireEvent(b,this.__stack)}null!=a&&(b=new Gb(Gb.FOCUS_IN,!0,!1,this.__focus,!1,0),this.__stack=[],a.__getInteractive(this.__stack),this.__stack.reverse(),this.__fireEvent(b,this.__stack));this.__focus=a}return this.__focus},set_displayState:function(a){return this.displayState=a},__class__:ee,__properties__:t(A.prototype.__properties__,{set_focus:"set_focus",set_color:"set_color",set_displayState:"set_displayState"})});var ge=function(){V.call(this)};g["openfl.display.Stage3D"]=ge;ge.__name__=
  656. ["openfl","display","Stage3D"];ge.__super__=V;ge.prototype=t(V.prototype,{__class__:ge});var ea=g["openfl.display.StageAlign"]={__ename__:["openfl","display","StageAlign"],__constructs__:"TOP_RIGHT TOP_LEFT TOP RIGHT LEFT BOTTOM_RIGHT BOTTOM_LEFT BOTTOM".split(" ")};ea.TOP_RIGHT=["TOP_RIGHT",0];ea.TOP_RIGHT.toString=q;ea.TOP_RIGHT.__enum__=ea;ea.TOP_LEFT=["TOP_LEFT",1];ea.TOP_LEFT.toString=q;ea.TOP_LEFT.__enum__=ea;ea.TOP=["TOP",2];ea.TOP.toString=q;ea.TOP.__enum__=ea;ea.RIGHT=["RIGHT",3];ea.RIGHT.toString=
  657. q;ea.RIGHT.__enum__=ea;ea.LEFT=["LEFT",4];ea.LEFT.toString=q;ea.LEFT.__enum__=ea;ea.BOTTOM_RIGHT=["BOTTOM_RIGHT",5];ea.BOTTOM_RIGHT.toString=q;ea.BOTTOM_RIGHT.__enum__=ea;ea.BOTTOM_LEFT=["BOTTOM_LEFT",6];ea.BOTTOM_LEFT.toString=q;ea.BOTTOM_LEFT.__enum__=ea;ea.BOTTOM=["BOTTOM",7];ea.BOTTOM.toString=q;ea.BOTTOM.__enum__=ea;var Ea=g["openfl.display.StageDisplayState"]={__ename__:["openfl","display","StageDisplayState"],__constructs__:["NORMAL","FULL_SCREEN","FULL_SCREEN_INTERACTIVE"]};Ea.NORMAL=["NORMAL",
  658. 0];Ea.NORMAL.toString=q;Ea.NORMAL.__enum__=Ea;Ea.FULL_SCREEN=["FULL_SCREEN",1];Ea.FULL_SCREEN.toString=q;Ea.FULL_SCREEN.__enum__=Ea;Ea.FULL_SCREEN_INTERACTIVE=["FULL_SCREEN_INTERACTIVE",2];Ea.FULL_SCREEN_INTERACTIVE.toString=q;Ea.FULL_SCREEN_INTERACTIVE.__enum__=Ea;var lb=g["openfl.display.StageQuality"]={__ename__:["openfl","display","StageQuality"],__constructs__:["BEST","HIGH","MEDIUM","LOW"]};lb.BEST=["BEST",0];lb.BEST.toString=q;lb.BEST.__enum__=lb;lb.HIGH=["HIGH",1];lb.HIGH.toString=q;lb.HIGH.__enum__=
  659. lb;lb.MEDIUM=["MEDIUM",2];lb.MEDIUM.toString=q;lb.MEDIUM.__enum__=lb;lb.LOW=["LOW",3];lb.LOW.toString=q;lb.LOW.__enum__=lb;var bb=g["openfl.display.StageScaleMode"]={__ename__:["openfl","display","StageScaleMode"],__constructs__:["SHOW_ALL","NO_SCALE","NO_BORDER","EXACT_FIT"]};bb.SHOW_ALL=["SHOW_ALL",0];bb.SHOW_ALL.toString=q;bb.SHOW_ALL.__enum__=bb;bb.NO_SCALE=["NO_SCALE",1];bb.NO_SCALE.toString=q;bb.NO_SCALE.__enum__=bb;bb.NO_BORDER=["NO_BORDER",2];bb.NO_BORDER.toString=q;bb.NO_BORDER.__enum__=
  660. bb;bb.EXACT_FIT=["EXACT_FIT",3];bb.EXACT_FIT.toString=q;bb.EXACT_FIT.__enum__=bb;var Ta=g["openfl.display.TriangleCulling"]={__ename__:["openfl","display","TriangleCulling"],__constructs__:["NEGATIVE","NONE","POSITIVE"]};Ta.NEGATIVE=["NEGATIVE",0];Ta.NEGATIVE.toString=q;Ta.NEGATIVE.__enum__=Ta;Ta.NONE=["NONE",1];Ta.NONE.toString=q;Ta.NONE.__enum__=Ta;Ta.POSITIVE=["POSITIVE",2];Ta.POSITIVE.toString=q;Ta.POSITIVE.__enum__=Ta;var he=function(a,b){null==b&&(b=0);null==a&&(a="");this.message=a;this.errorID=
  661. b;this.name="Error"};g["openfl.errors.Error"]=he;he.__name__=["openfl","errors","Error"];he.prototype={toString:function(){return null!=this.message?this.message:"Error"},__class__:he};var u=function(a,b,c){null==c&&(c=!1);null==b&&(b=!1);this.type=a;this.bubbles=b;this.cancelable=c;this.eventPhase=da.AT_TARGET};g["openfl.events.Event"]=u;u.__name__=["openfl","events","Event"];u.prototype={stopImmediatePropagation:function(){this.__isCancelledNow=this.__isCancelled=!0},__class__:u};var Ic=function(a,
  662. b,c,d){null==d&&(d="");null==c&&(c=!1);null==b&&(b=!1);u.call(this,a,b,c);this.text=d};g["openfl.events.TextEvent"]=Ic;Ic.__name__=["openfl","events","TextEvent"];Ic.__super__=u;Ic.prototype=t(u.prototype,{__class__:Ic});var Wb=function(a,b,c,d,e){null==e&&(e=0);null==d&&(d="");null==c&&(c=!1);null==b&&(b=!1);Ic.call(this,a,b,c,d);this.errorID=e};g["openfl.events.ErrorEvent"]=Wb;Wb.__name__=["openfl","events","ErrorEvent"];Wb.__super__=Ic;Wb.prototype=t(Ic.prototype,{__class__:Wb});var jd=function(a,
  663. b,c){this.callback=a;this.useCapture=b;this.priority=c};g["openfl.events._EventDispatcher.Listener"]=jd;jd.__name__=["openfl","events","_EventDispatcher","Listener"];jd.prototype={match:function(a,b){return r.compareMethods(this.callback,a)&&this.useCapture==b},__class__:jd};var da=g["openfl.events.EventPhase"]={__ename__:["openfl","events","EventPhase"],__constructs__:["CAPTURING_PHASE","AT_TARGET","BUBBLING_PHASE"]};da.CAPTURING_PHASE=["CAPTURING_PHASE",0];da.CAPTURING_PHASE.toString=q;da.CAPTURING_PHASE.__enum__=
  664. da;da.AT_TARGET=["AT_TARGET",1];da.AT_TARGET.toString=q;da.AT_TARGET.__enum__=da;da.BUBBLING_PHASE=["BUBBLING_PHASE",2];da.BUBBLING_PHASE.toString=q;da.BUBBLING_PHASE.__enum__=da;var Gb=function(a,b,c,d,e,f){null==f&&(f=0);null==e&&(e=!1);null==c&&(c=!1);null==b&&(b=!1);u.call(this,a,b,c);this.keyCode=f;this.shiftKey=e;this.relatedObject=d};g["openfl.events.FocusEvent"]=Gb;Gb.__name__=["openfl","events","FocusEvent"];Gb.__super__=u;Gb.prototype=t(u.prototype,{__class__:Gb});var Jc=function(a,b,c,
  665. d){null==d&&(d=0);null==c&&(c=!1);null==b&&(b=!1);this.status=d;u.call(this,a,b,c)};g["openfl.events.HTTPStatusEvent"]=Jc;Jc.__name__=["openfl","events","HTTPStatusEvent"];Jc.__super__=u;Jc.prototype=t(u.prototype,{__class__:Jc});var Vb=function(a,b,c,d,e){null==e&&(e=0);null==d&&(d="");null==c&&(c=!1);null==b&&(b=!0);Wb.call(this,a,b,c,d,e)};g["openfl.events.IOErrorEvent"]=Vb;Vb.__name__=["openfl","events","IOErrorEvent"];Vb.__super__=Wb;Vb.prototype=t(Wb.prototype,{__class__:Vb});var kb=function(a,
  666. b,c,d,e,f,g,h,l,k,m){null==m&&(m=!1);null==k&&(k=!1);null==l&&(l=!1);null==h&&(h=!1);null==g&&(g=!1);null==e&&(e=0);null==d&&(d=0);null==c&&(c=!1);null==b&&(b=!1);u.call(this,a,b,c);this.charCode=d;this.keyCode=e;this.keyLocation=null!=f?f:0;this.ctrlKey=g;this.altKey=h;this.shiftKey=l;this.controlKey=k;this.commandKey=m};g["openfl.events.KeyboardEvent"]=kb;kb.__name__=["openfl","events","KeyboardEvent"];kb.__super__=u;kb.prototype=t(u.prototype,{__class__:kb});var y=function(a,b,c,d,e,f,g,h,l,k,
  667. m,n,q){null==q&&(q=0);null==n&&(n=!1);null==m&&(m=0);null==k&&(k=!1);null==l&&(l=!1);null==h&&(h=!1);null==g&&(g=!1);null==e&&(e=0);null==d&&(d=0);null==c&&(c=!1);null==b&&(b=!0);u.call(this,a,b,c);this.shiftKey=l;this.altKey=h;this.ctrlKey=g;this.bubbles=b;this.relatedObject=f;this.delta=m;this.localX=d;this.localY=e;this.buttonDown=k;this.commandKey=n;this.clickCount=q};g["openfl.events.MouseEvent"]=y;y.__name__=["openfl","events","MouseEvent"];y.__create=function(a,b,c,d){switch(a){case y.MOUSE_DOWN:case y.MIDDLE_MOUSE_DOWN:case y.RIGHT_MOUSE_DOWN:y.__buttonDown[b]=
  668. !0;break;case y.MOUSE_UP:case y.MIDDLE_MOUSE_UP:case y.RIGHT_MOUSE_UP:y.__buttonDown[b]=!1}a=new y(a,!0,!1,c.x,c.y,null,!1,!1,!1,y.__buttonDown[b],2);a.stageX=B.current.stage.get_mouseX();a.stageY=B.current.stage.get_mouseY();a.target=d;return a};y.__super__=u;y.prototype=t(u.prototype,{__class__:y});var Kc=function(a,b,c,d,e){null==e&&(e=0);null==d&&(d=0);null==c&&(c=!1);null==b&&(b=!1);u.call(this,a,b,c);this.bytesLoaded=d;this.bytesTotal=e};g["openfl.events.ProgressEvent"]=Kc;Kc.__name__=["openfl",
  669. "events","ProgressEvent"];Kc.__super__=u;Kc.prototype=t(u.prototype,{__class__:Kc});var Lc=function(a,b,c,d,e){null==e&&(e=0);null==d&&(d="");null==c&&(c=!1);null==b&&(b=!1);Wb.call(this,a,b,c,d,e)};g["openfl.events.SecurityErrorEvent"]=Lc;Lc.__name__=["openfl","events","SecurityErrorEvent"];Lc.__super__=Wb;Lc.prototype=t(Wb.prototype,{__class__:Lc});var Fa=function(a,b,c){null==c&&(c=!1);null==b&&(b=!1);u.call(this,a,b,c)};g["openfl.events.TimerEvent"]=Fa;Fa.__name__=["openfl","events","TimerEvent"];
  670. Fa.__super__=u;Fa.prototype=t(u.prototype,{__class__:Fa});var wc=function(a,b,c,d,e,f,g,h,l,k,m,n,q,r,t){null==r&&(r=!1);null==q&&(q=0);null==n&&(n=!1);null==m&&(m=!1);null==k&&(k=!1);null==l&&(l=!1);null==g&&(g=1);null==f&&(f=1);null==e&&(e=0);null==d&&(d=0);null==c&&(c=!1);null==b&&(b=!0);u.call(this,a,b,c);this.shiftKey=m;this.altKey=k;this.ctrlKey=l;this.bubbles=b;this.relatedObject=h;this.delta=q;this.localX=d;this.localY=e;this.sizeX=f;this.sizeY=g;this.buttonDown=n;this.commandKey=r;this.pressure=
  671. 1;this.touchPointID=0;this.isPrimaryTouchPoint=!0};g["openfl.events.TouchEvent"]=wc;wc.__name__=["openfl","events","TouchEvent"];wc.__create=function(a,b,c,d){a=new wc(a,!0,!1,c.x,c.y,null,null,null,!1,!1,!1,!1,0,null,0);a.stageX=B.current.stage.get_mouseX();a.stageY=B.current.stage.get_mouseY();a.target=d;return a};wc.__super__=u;wc.prototype=t(u.prototype,{__class__:wc});var ag=function(){};g["openfl.filters.BitmapFilter"]=ag;ag.__name__=["openfl","filters","BitmapFilter"];var Ld=function(a,b,c,
  672. d,e,f,g,h){null==h&&(h=0);null==g&&(g=0);null==f&&(f=0);null==e&&(e=0);null==d&&(d=1);null==c&&(c=1);null==b&&(b=1);null==a&&(a=1);this.redMultiplier=a;this.greenMultiplier=b;this.blueMultiplier=c;this.alphaMultiplier=d;this.redOffset=e;this.greenOffset=f;this.blueOffset=g;this.alphaOffset=h};g["openfl.geom.ColorTransform"]=Ld;Ld.__name__=["openfl","geom","ColorTransform"];Ld.prototype={__class__:Ld};var bg=function(){};g["openfl.geom.Transform"]=bg;bg.__name__=["openfl","geom","Transform"];var cg=
  673. function(){};g["openfl.media.ID3Info"]=cg;cg.__name__=["openfl","media","ID3Info"];var fc=function(a,b){V.call(this,this);this.bytesTotal=this.bytesLoaded=0;this.id3=null;this.isBuffering=!1;this.length=0;this.url=null;null!=a&&this.load(a,b)};g["openfl.media.Sound"]=fc;fc.__name__=["openfl","media","Sound"];fc.__super__=V;fc.prototype=t(V.prototype,{load:function(a,b){this.url=a.url;this.__soundID=Ec.withoutExtension(a.url);fc.__registeredSounds.exists(this.__soundID)?this.dispatchEvent(new u(u.COMPLETE)):
  674. (fc.__registeredSounds.set(this.__soundID,!0),createjs.Sound.addEventListener("fileload",n(this,this.SoundJS_onFileLoad)),createjs.Sound.addEventListener("fileerror",n(this,this.SoundJS_onFileError)),createjs.Sound.registerSound(this.url,this.__soundID))},play:function(a,b,c){null==b&&(b=0);null==a&&(a=0);null==c&&(c=new Cc(1,0));a=createjs.Sound.play(this.__soundID,"any",0,a|0,b,c.volume,c.pan);return new ie(a)},SoundJS_onFileLoad:function(a){a.id==this.__soundID&&(createjs.Sound.removeEventListener("fileload",
  675. n(this,this.SoundJS_onFileLoad)),createjs.Sound.removeEventListener("fileerror",n(this,this.SoundJS_onFileError)),this.dispatchEvent(new u(u.COMPLETE)))},SoundJS_onFileError:function(a){a.id==this.__soundID&&(createjs.Sound.removeEventListener("fileload",n(this,this.SoundJS_onFileLoad)),createjs.Sound.removeEventListener("fileerror",n(this,this.SoundJS_onFileError)),this.dispatchEvent(new Vb(Vb.IO_ERROR)))},__class__:fc});var ie=function(a){V.call(this,this);null!=a&&(this.__soundInstance=a,this.__soundInstance.addEventListener("complete",
  676. n(this,this.source_onComplete)),this.__isValid=!0)};g["openfl.media.SoundChannel"]=ie;ie.__name__=["openfl","media","SoundChannel"];ie.__super__=V;ie.prototype=t(V.prototype,{stop:function(){this.__isValid&&this.__soundInstance.stop()},get_position:function(){return this.__isValid?this.__soundInstance.getPosition():0},source_onComplete:function(){this.dispatchEvent(new u(u.SOUND_COMPLETE))},__class__:ie,__properties__:{get_position:"get_position"}});var dg=function(){};g["openfl.media.SoundLoaderContext"]=
  677. dg;dg.__name__=["openfl","media","SoundLoaderContext"];var Cc=function(a,b){null==b&&(b=0);null==a&&(a=1);this.volume=a;this.pan=b;this.rightToRight=this.rightToLeft=this.leftToRight=this.leftToLeft=0};g["openfl.media.SoundTransform"]=Cc;Cc.__name__=["openfl","media","SoundTransform"];Cc.prototype={__class__:Cc};var Lb=function(){V.call(this)};g["openfl.net.SharedObject"]=Lb;Lb.__name__=["openfl","net","SharedObject"];Lb.getLocal=function(a,b,c){null==b&&(b=window.location.href);c=new Lb;c.__key=
  678. b+":"+a;a=null;try{a=Lb.__getLocalStorage().getItem(c.__key)}catch(d){}c.data={};null!=a&&""!=a&&(a=new xb(a),a.setResolver({resolveEnum:Q.resolveEnum,resolveClass:Lb.resolveClass}),c.data=a.unserialize());null==c.data&&(c.data={});return c};Lb.__getLocalStorage=function(){var a=If.getLocalStorage();if(null==a)throw new he("SharedObject not supported");return a};Lb.resolveClass=function(a){return null!=a?Q.resolveClass(W.replace(W.replace(a,"jeash.","flash."),"browser.","flash.")):null};Lb.__super__=
  679. V;Lb.prototype=t(V.prototype,{flush:function(a){a=Ib.run(this.data);try{Lb.__getLocalStorage().removeItem(this.__key),Lb.__getLocalStorage().setItem(this.__key,a)}catch(b){return gc.PENDING}return gc.FLUSHED},__class__:Lb});var gc=g["openfl.net.SharedObjectFlushStatus"]={__ename__:["openfl","net","SharedObjectFlushStatus"],__constructs__:["FLUSHED","PENDING"]};gc.FLUSHED=["FLUSHED",0];gc.FLUSHED.toString=q;gc.FLUSHED.__enum__=gc;gc.PENDING=["PENDING",1];gc.PENDING.toString=q;gc.PENDING.__enum__=gc;
  680. var Cd=function(a){V.call(this);this.bytesTotal=this.bytesLoaded=0;this.set_dataFormat(ub.TEXT);null!=a&&this.load(a)};g["openfl.net.URLLoader"]=Cd;Cd.__name__=["openfl","net","URLLoader"];Cd.__super__=V;Cd.prototype=t(V.prototype,{getData:function(){return null},load:function(a){this.requestUrl(a.url,a.method,a.data,a.formatRequestHeaders())},registerEvents:function(a){var b=this;"undefined"!=typeof XMLHttpRequestProgressEvent&&a.addEventListener("progress",n(this,this.onProgress),!1);a.onreadystatechange=
  681. function(){if(4==a.readyState){var c;try{c=a.status}catch(d){c=null}void 0==c&&(c=null);if(null!=c)b.onStatus(c);if(null!=c&&200<=c&&400>c)b.onData(a.response);else if(null==c)b.onError("Failed to connect or resolve host");else if(12029==c)b.onError("Failed to connect to host");else if(12007==c)b.onError("Unknown host");else if(0==c)b.onError("Unable to make request (may be blocked due to cross-domain permissions)"),b.onSecurityError("Unable to make request (may be blocked due to cross-domain permissions)");
  682. else b.onError("Http Error #"+a.status)}}},requestUrl:function(a,b,c,d){var e=new XMLHttpRequest;this.registerEvents(e);var f="";if(v.__instanceof(c,Ya))switch(this.dataFormat[1]){case 0:f=c.data.buffer;break;default:f=c.readUTFBytes(c.length)}else if(v.__instanceof(c,Tc))for(var g=0,h=r.fields(c);g<h.length;){var l=h[g];++g;0!=f.length&&(f+="&");f+=encodeURIComponent(l)+"="+W.urlEncode(r.field(c,l))}else null!=c&&(f=c.toString());try{if("GET"==b&&null!=f&&""!=f){var k=1>=a.split("?").length;e.open(b,
  683. a+(k?"?":"&")+z.string(f),!0);f=""}else e.open(b,a,!0)}catch(m){this.onError(m.toString());return}switch(this.dataFormat[1]){case 0:e.responseType="arraybuffer"}for(a=0;a<d.length;)b=d[a],++a,e.setRequestHeader(b.name,b.value);e.send(f);this.onOpen();this.getData=function(){return null!=e.response?e.response:e.responseText}},onData:function(a){a=this.getData();switch(this.dataFormat[1]){case 0:this.data=Ya.__ofBuffer(a);break;default:this.data=z.string(a)}a=new u(u.COMPLETE);a.currentTarget=this;
  684. this.dispatchEvent(a)},onError:function(a){var b=new Vb(Vb.IO_ERROR);b.text=a;b.currentTarget=this;this.dispatchEvent(b)},onOpen:function(){var a=new u(u.OPEN);a.currentTarget=this;this.dispatchEvent(a)},onProgress:function(a){var b=new Kc(Kc.PROGRESS);b.currentTarget=this;b.bytesLoaded=a.loaded;b.bytesTotal=a.total;this.dispatchEvent(b)},onSecurityError:function(a){var b=new Lc(Lc.SECURITY_ERROR);b.text=a;b.currentTarget=this;this.dispatchEvent(b)},onStatus:function(a){a=new Jc(Jc.HTTP_STATUS,!1,
  685. !1,a);a.currentTarget=this;this.dispatchEvent(a)},set_dataFormat:function(a){a!=ub.BINARY||r.hasField(window,"ArrayBuffer")?this.dataFormat=a:this.dataFormat=ub.TEXT;return this.dataFormat},__class__:Cd,__properties__:{set_dataFormat:"set_dataFormat"}});var ub=g["openfl.net.URLLoaderDataFormat"]={__ename__:["openfl","net","URLLoaderDataFormat"],__constructs__:["BINARY","TEXT","VARIABLES"]};ub.BINARY=["BINARY",0];ub.BINARY.toString=q;ub.BINARY.__enum__=ub;ub.TEXT=["TEXT",1];ub.TEXT.toString=q;ub.TEXT.__enum__=
  686. ub;ub.VARIABLES=["VARIABLES",2];ub.VARIABLES.toString=q;ub.VARIABLES.__enum__=ub;var Uc=function(a){null!=a&&(this.url=a);this.requestHeaders=[];this.method=Vc.GET;this.contentType=null};g["openfl.net.URLRequest"]=Uc;Uc.__name__=["openfl","net","URLRequest"];Uc.prototype={formatRequestHeaders:function(){var a=this.requestHeaders;null==a&&(a=[]);if(this.method==Vc.GET||null==this.data)return a;if("string"==typeof this.data||v.__instanceof(this.data,Ya))a=a.slice(),a.push(new qf("Content-Type",null!=
  687. this.contentType?this.contentType:"application/x-www-form-urlencoded"));return a},__class__:Uc};var qf=function(a,b){null==b&&(b="");null==a&&(a="");this.name=a;this.value=b};g["openfl.net.URLRequestHeader"]=qf;qf.__name__=["openfl","net","URLRequestHeader"];qf.prototype={__class__:qf};var Vc=function(){};g["openfl.net.URLRequestMethod"]=Vc;Vc.__name__=["openfl","net","URLRequestMethod"];var Tc=function(a){null!=a&&this.decode(a)};g["openfl.net.URLVariables"]=Tc;Tc.__name__=["openfl","net","URLVariables"];
  688. Tc.prototype={decode:function(a){for(var b=r.fields(this),c=0;c<b.length;){var d=b[c];++c;r.deleteField(this,d)}a=a.split(";").join("&").split("&");for(b=0;b<a.length;)c=a[b],++b,d=c.indexOf("="),0<d?r.setField(this,W.urlDecode(E.substr(c,0,d)),W.urlDecode(E.substr(c,d+1,null))):0!=d&&r.setField(this,decodeURIComponent(c.split("+").join(" ")),"")},__class__:Tc};var Pc=function(a){Ga.call(this,a)};g["openfl.text.Font"]=Pc;Pc.__name__=["openfl","text","Font"];Pc.__super__=bd;Pc.prototype=t(bd.prototype,
  689. {__class__:Pc});var Fb=g["openfl.text.GridFitType"]={__ename__:["openfl","text","GridFitType"],__constructs__:["NONE","PIXEL","SUBPIXEL"]};Fb.NONE=["NONE",0];Fb.NONE.toString=q;Fb.NONE.__enum__=Fb;Fb.PIXEL=["PIXEL",1];Fb.PIXEL.toString=q;Fb.PIXEL.__enum__=Fb;Fb.SUBPIXEL=["SUBPIXEL",2];Fb.SUBPIXEL.toString=q;Fb.SUBPIXEL.__enum__=Fb;var Lf=function(){};g["openfl.text.TextFormatRange"]=Lf;Lf.__name__=["openfl","text","TextFormatRange"];Lf.prototype={__class__:Lf};var ua=g["openfl.text.TextFieldAutoSize"]=
  690. {__ename__:["openfl","text","TextFieldAutoSize"],__constructs__:["CENTER","LEFT","NONE","RIGHT"]};ua.CENTER=["CENTER",0];ua.CENTER.toString=q;ua.CENTER.__enum__=ua;ua.LEFT=["LEFT",1];ua.LEFT.toString=q;ua.LEFT.__enum__=ua;ua.NONE=["NONE",2];ua.NONE.toString=q;ua.NONE.__enum__=ua;ua.RIGHT=["RIGHT",3];ua.RIGHT.toString=q;ua.RIGHT.__enum__=ua;var Tb=g["openfl.text.TextFieldType"]={__ename__:["openfl","text","TextFieldType"],__constructs__:["DYNAMIC","INPUT"]};Tb.DYNAMIC=["DYNAMIC",0];Tb.DYNAMIC.toString=
  691. q;Tb.DYNAMIC.__enum__=Tb;Tb.INPUT=["INPUT",1];Tb.INPUT.toString=q;Tb.INPUT.__enum__=Tb;var Xc=function(a,b,c,d,e,f,g,h,l,k,m,n,q){this.font=a;this.size=b;this.color=c;this.bold=d;this.italic=e;this.underline=f;this.url=g;this.target=h;this.align=l;this.leftMargin=k;this.rightMargin=m;this.indent=n;this.leading=q};g["openfl.text.TextFormat"]=Xc;Xc.__name__=["openfl","text","TextFormat"];Xc.prototype={clone:function(){var a=new Xc(this.font,this.size,this.color,this.bold,this.italic,this.underline,
  692. this.url,this.target);a.align=this.align;a.leftMargin=this.leftMargin;a.rightMargin=this.rightMargin;a.indent=this.indent;a.leading=this.leading;a.blockIndent=this.blockIndent;a.bullet=this.bullet;a.kerning=this.kerning;a.letterSpacing=this.letterSpacing;a.tabStops=this.tabStops;return a},__merge:function(a){null!=a.font&&(this.font=a.font);null!=a.size&&(this.size=a.size);null!=a.color&&(this.color=a.color);null!=a.bold&&(this.bold=a.bold);null!=a.italic&&(this.italic=a.italic);null!=a.underline&&
  693. (this.underline=a.underline);null!=a.url&&(this.url=a.url);null!=a.target&&(this.target=a.target);null!=a.align&&(this.align=a.align);null!=a.leftMargin&&(this.leftMargin=a.leftMargin);null!=a.rightMargin&&(this.rightMargin=a.rightMargin);null!=a.indent&&(this.indent=a.indent);null!=a.leading&&(this.leading=a.leading);null!=a.blockIndent&&(this.blockIndent=a.blockIndent);null!=a.bullet&&(this.bullet=a.bullet);null!=a.kerning&&(this.kerning=a.kerning);null!=a.letterSpacing&&(this.letterSpacing=a.letterSpacing);
  694. null!=a.tabStops&&(this.tabStops=a.tabStops)},__class__:Xc};var La=g["openfl.text.TextFormatAlign"]={__ename__:["openfl","text","TextFormatAlign"],__constructs__:["LEFT","RIGHT","JUSTIFY","CENTER"]};La.LEFT=["LEFT",0];La.LEFT.toString=q;La.LEFT.__enum__=La;La.RIGHT=["RIGHT",1];La.RIGHT.toString=q;La.RIGHT.__enum__=La;La.JUSTIFY=["JUSTIFY",2];La.JUSTIFY.toString=q;La.JUSTIFY.__enum__=La;La.CENTER=["CENTER",3];La.CENTER.toString=q;La.CENTER.__enum__=La;var kc=function(a,b){null==b&&(b=0);if(Math.isNaN(a)||
  695. 0>a)throw new he("The delay specified is negative or not a finite number");V.call(this);this.__delay=a;this.set_repeatCount(b);this.running=!1;this.currentCount=0};g["openfl.utils.Timer"]=kc;kc.__name__=["openfl","utils","Timer"];kc.__super__=V;kc.prototype=t(V.prototype,{reset:function(){this.running&&this.stop();this.currentCount=0},start:function(){this.running||(this.running=!0,this.__timerID=window.setInterval(n(this,this.timer_onTimer),this.__delay|0))},stop:function(){this.running=!1;null!=
  696. this.__timerID&&(window.clearInterval(this.__timerID),this.__timerID=null)},set_repeatCount:function(a){this.running&&0!=a&&a<=this.currentCount&&this.stop();return this.repeatCount=a},timer_onTimer:function(){this.currentCount++;0<this.repeatCount&&this.currentCount>=this.repeatCount?(this.stop(),this.dispatchEvent(new Fa(Fa.TIMER)),this.dispatchEvent(new Fa(Fa.TIMER_COMPLETE))):this.dispatchEvent(new Fa(Fa.TIMER))},__class__:kc,__properties__:{set_repeatCount:"set_repeatCount"}});var rf=function(){A.call(this)};
  697. g["scenes.Awards"]=rf;rf.__name__=["scenes","Awards"];rf.__super__=$a;rf.prototype=t($a.prototype,{init:function(){X.get_instance().putLogo(0,40);x.carCrash=!1;this.countItems=eb.get_instance().getCount();this.itemHeight=134;this.itemSpace=14;this.createTilelayers();this.uiLayer=new ac;this.addChild(this.uiLayer);this.menu=new fd;var a=this.calcMenuDown();this.menu.setBorder(190,a);this.uiLayer.add(this.menu);this.createUi();this.createMenuItems()},calcMenuDown:function(){return 835-this.calcMenuHeight()+
  698. this.itemSpace},calcMenuHeight:function(){return this.countItems*this.itemHeight+this.countItems*this.itemSpace},calcItemPosY:function(a){a+=1;return a*this.itemHeight+a*this.itemSpace-this.itemHeight/2},createTilelayers:function(){this.tilelayerManager=K.get_instance();this.tilelayerManager.create("ui","assets/images/"+M.graphicsFolder+"/spritelists/ui.xml","assets/images/"+M.graphicsFolder+"/spritelists/ui.png",this)},createUi:function(){var a=ma.buildSprite("assets/images/"+M.graphicsFolder+"/window_bg_up.png");
  699. a.setAnchorPoint(0,0);a.addEventListener(y.MOUSE_DOWN,n(this,this.onStopEvent));a.addEventListener(y.MOUSE_UP,n(this,this.onStopEvent));this.uiLayer.addChild(a);a=ma.buildSprite("assets/images/"+M.graphicsFolder+"/window_bg_down.png");a.setAnchorPoint(0,0);a.set_y(860);a.addEventListener(y.MOUSE_DOWN,n(this,this.onStopEvent));a.addEventListener(y.MOUSE_UP,n(this,this.onStopEvent));this.uiLayer.addChild(a);a=ma.buildSprite("assets/images/"+M.graphicsFolder+"/white_line.png");a.setAnchorPoint(0,0);
  700. this.uiLayer.addChild(a);a=ma.buildSprite("assets/images/"+M.graphicsFolder+"/white_line.png");a.setAnchorPoint(0,0);a.set_y(936);this.uiLayer.addChild(a);a=new ha;a.set_size(59);a.set_align("center");a.set_fieldWidth(400);a.set_x(130);a.set_y(120);a.mouseEnabled=!1;a.set_text("ACHIEVEMENTS");this.uiLayer.addChild(a);a=new Ka("assets/images/"+M.graphicsFolder+"/buttons/btn_back.png");a.addEventListener("b_complete",n(this,this.onBack));a.set_x(53.75);a.set_y(151.3);a.setSoundEffect("click");this.uiLayer.addChild(a)},
  701. createMenuItems:function(){for(var a=K.get_instance().get("ui"),b,c=0,d=this.countItems;c<d;){var e=c++;b=this.calcItemPosY(e);this.createItem(e,a,b)}},createItem:function(a,b,c){var d;d=C.create(b,"buy_bg");d.set_scaleX(1.2);b.addChild(d);d=new wa(d);d.manualDisabled=!0;d.setHitRect(0,0,470,134);d.set_x(320);d.set_y(c);d.setSoundEffect("click");this.uiLayer.add(d);this.menu.add(d);eb.get_instance().getAwardById(a);c=x.configs.getAwardConfig(a);var e=C.create(b,"award_bg");e.x=-204;e.y=-5;b.addChild(e);
  702. d.add(e);b=new ha;b.set_color(3625074);b.set_align("center");b.set_size(40);b.set_fieldWidth(86);b.set_x(-232);b.set_y(-28);b.mouseEnabled=!1;b.set_text(""+z.string(c.prize));d.add(b);a="award"+(a+1);0==eb.get_instance().isEarned(a)&&(e.alpha=.3,b.set_alpha(.3));a=W.replace(c.dsc,"%c%",""+z.string(c.count));b=new ha;b.set_align("center");b.set_size(36);b.set_fieldWidth(396);b.set_x(-124);b.set_y(-26);b.mouseEnabled=!1;b.set_text(a);d.add(b)},onStopEvent:function(a){a.stopImmediatePropagation()},onBack:function(a){x.instance.showScene(T.Menu)},
  703. update:function(a,b){this.tilelayerManager.update()},free:function(){this.tilelayerManager.free();this.tilelayerManager=null;this.uiLayer.free();this.uiLayer=null;this.menu.free();this.menu=null},__class__:rf});var sf=function(){A.call(this)};g["scenes.Garage"]=sf;sf.__name__=["scenes","Garage"];sf.__super__=$a;sf.prototype=t($a.prototype,{init:function(){X.get_instance().putLogo(0,40);x.carCrash=!1;this.updater=pb.get_instance();this.countItems=x.configs.getCountCars("hero");this.itemHeight=134;
  704. this.itemSpace=14;this.createTilelayers();this.uiLayer=new ac;this.addChild(this.uiLayer);this.menu=new fd;var a=this.calcMenuDown();this.menu.setBorder(190,a);this.uiLayer.add(this.menu);this.createUi();this.createMenu();this.showManager=new Qc;this.showManager.addEventListener(u.COMPLETE,n(this,this.completeShow));this.addChild(this.showManager);this.showingCar=!1;B.current.stage.addEventListener(y.MOUSE_UP,n(this,this.onMouseUp))},calcMenuDown:function(){return 835-this.calcMenuHeight()+this.itemSpace},
  705. calcMenuHeight:function(){return this.countItems*this.itemHeight+this.countItems*this.itemSpace},calcItemPosY:function(a){a+=1;return a*this.itemHeight+a*this.itemSpace-this.itemHeight/2},createTilelayers:function(){this.tilelayerManager=K.get_instance();var a="assets/images/"+M.graphicsFolder+"/spritelists/ui.xml",b="assets/images/"+M.graphicsFolder+"/spritelists/ui.png";this.tilelayerManager.create("ui",a,b,this);a="assets/images/"+M.graphicsFolder+"/spritelists/main.xml";b="assets/images/"+M.graphicsFolder+
  706. "/spritelists/main.png";this.tilelayerManager.create("main",a,b,this)},createUi:function(){var a=ma.buildSprite("assets/images/"+M.graphicsFolder+"/window_bg_up.png");a.setAnchorPoint(0,0);a.addEventListener(y.MOUSE_DOWN,n(this,this.onStopEvent));a.addEventListener(y.MOUSE_UP,n(this,this.onStopEvent));this.uiLayer.addChild(a);a=ma.buildSprite("assets/images/"+M.graphicsFolder+"/window_bg_down.png");a.setAnchorPoint(0,0);a.set_y(860);a.addEventListener(y.MOUSE_DOWN,n(this,this.onStopEvent));a.addEventListener(y.MOUSE_UP,
  707. n(this,this.onStopEvent));this.uiLayer.addChild(a);a=ma.buildSprite("assets/images/"+M.graphicsFolder+"/white_line.png");a.setAnchorPoint(0,0);this.uiLayer.addChild(a);a=ma.buildSprite("assets/images/"+M.graphicsFolder+"/white_line.png");a.setAnchorPoint(0,0);a.set_y(936);this.uiLayer.addChild(a);a=new ha;a.set_size(59);a.set_align("center");a.set_fieldWidth(250);a.set_x(170);a.set_y(120);a.mouseEnabled=!1;a.set_text("GARAGE");this.uiLayer.addChild(a);a=new Ka("assets/images/"+M.graphicsFolder+"/buttons/btn_back.png");
  708. a.addEventListener("b_complete",n(this,this.onBack));a.set_x(53.75);a.set_y(151.3);a.setSoundEffect("click");this.uiLayer.addChild(a);a=ma.buildSprite("assets/images/"+M.graphicsFolder+"/dot.png");a.set_x(490);a.set_y(151.4);this.uiLayer.addChild(a);this.coinsContainer=new A;this.coinsContainer.set_x(506);this.coinsContainer.set_y(152);this.uiLayer.addChild(this.coinsContainer);this.coinsLabel=new ha;this.coinsLabel.set_size(44);this.coinsLabel.set_fieldWidth(150);this.coinsLabel.set_x(0);this.coinsLabel.set_y(-25);
  709. this.coinsLabel.mouseEnabled=!1;this.coinsContainer.addChild(this.coinsLabel);this.updateCoins()},updateCoins:function(){this.coinsLabel.set_text(""+x.money)},update:function(a,b){this.updater.update();this.tilelayerManager.update()},createMenu:function(){for(var a=K.get_instance().get("ui"),b,c=0,d=this.countItems;c<d;){var e=c++;b=this.calcItemPosY(e);this.createItem(e,a,320,b)}},createItem:function(a,b,c,d){var e;e=C.create(b,"buy_bg");b.addChild(e);e=new je(e);e.value=a;e.active=!1;e.addEventListener("b_complete",
  710. n(this,this.onItemClick));e.setHitRect(0,0,470,134);e.set_x(c);e.set_y(d);e.setSoundEffect("click");this.uiLayer.add(e);this.menu.add(e);a="car_"+(a+1);1==Z.get_instance().get(a)?(e.active=!0,this.addCarGraph(e,b)):this.addBuyGraph(e,b)},addCarGraph:function(a,b){var c=x.configs.getCarConfig("hero",a.value+1),d=c.bX,e=c.bY,f=K.get_instance().get("main"),g=C.create(f,c.s);g.x=0+z.parseFloat(c.sX)-d;g.y=-18+z.parseFloat(c.sY)-e;f.addChild(g);a.add(g);g=c.w.length;if(0<c.w.length){var h=C.create(f,"koleco");
  711. h.x=0+z.parseFloat(c.w[0].x)-d;h.y=-18+z.parseFloat(c.w[0].y)-e;f.addChild(h);a.add(h);2==g&&(h=C.create(f,"koleco"),h.x=0+z.parseFloat(c.w[1].x)-d,h.y=-18+z.parseFloat(c.w[1].y)-e,f.addChild(h),a.add(h))}c=C.create(f,c.b);c.x=0;c.y=-18;f.addChild(c);a.add(c)},addBuyGraph:function(a,b){var c=C.create(b,"buy_icon");c.x=0;c.y=-25;b.addChild(c);a.add(c);a.buyIcon=c;c=C.create(b,"dot");c.x=-50;c.y=30;b.addChild(c);a.add(c);a.dotIcon=c;var c=this.getCarPrice(a.value+1),d=new ha;d.set_size(44);d.set_fieldWidth(150);
  712. d.set_x(-30);d.set_y(5);d.mouseEnabled=!1;d.set_text(""+c);a.add(d);a.priceLabel=d},getCarPrice:function(a){a=x.configs.getCarConfig("hero",a);return z.parseInt(a.p)},onBack:function(a){x.instance.showScene(T.Menu)},onStopEvent:function(a){a.stopImmediatePropagation()},onItemClick:function(a){a=a.target;var b=a.value;1==a.active?this.selectCar(b):this.buyCar(b,a)},selectCar:function(a){x.curCar=a+1;this.onBack()},buyCar:function(a,b){var c=a+1,d=this.getCarPrice(c);x.money<d?this.showMoneyNotify():
  713. (x.instance.updateMoney(-d),Z.get_instance().save("car_"+c,!0),Z.get_instance().saveStatistic("st_countCars"),this.updateCoins(),this.removeBuyGraph(b),b.active=!0,d=K.get_instance().get("ui"),this.addCarGraph(b,d),this.showCar(c))},showMoneyNotify:function(){I.stop(this.coinsContainer);this.coinsContainer.set_scaleX(1);this.coinsContainer.set_scaleY(1);I.tween(this.coinsContainer,.3,{scaleX:1.3,scaleY:1.3}).ease(hb.get_easeNone()).repeat(5).reflect()},removeBuyGraph:function(a){var b=K.get_instance().get("ui");
  714. b.removeChild(a.buyIcon);a.del(a.buyIcon);a.buyIcon=null;b.removeChild(a.dotIcon);a.del(a.dotIcon);a.dotIcon=null;a.del(a.priceLabel);a.priceLabel=null},showCar:function(a){this.showingCar=!0;this.menu.set_visible(!1);this.menu.disableChildren();this.uiLayer.set_visible(!1);this.showManager.showCar(a)},completeShow:function(a){this.hideCar()},onMouseUp:function(a){0!=this.showingCar&&(R.get_instance().playSound("click"),this.hideCar())},hideCar:function(){this.showingCar=!1;this.menu.set_visible(!0);
  715. this.menu.enableChildren();this.uiLayer.set_visible(!0);this.showManager.hide()},free:function(){B.current.stage.removeEventListener(y.MOUSE_UP,n(this,this.onMouseUp));this.showManager.free();this.showManager=null;this.updater.free();this.updater=null;this.tilelayerManager.free();this.tilelayerManager=null;this.uiLayer.free();this.uiLayer=null;this.menu.free();this.coinsLabel=this.menu=null;I.stop(this.coinsContainer);this.coinsContainer=null},__class__:sf});var tf=function(){A.call(this)};g["scenes.Gift"]=
  716. tf;tf.__name__=["scenes","Gift"];tf.__super__=$a;tf.prototype=t($a.prototype,{init:function(){x.carCrash=!1;this.updater=pb.get_instance();this.timeoutInHours=4;this.timer=new kc(1E3);this.timer.addEventListener(Fa.TIMER,n(this,this.updateTimer));this.createTilelayers();this.uiLayer=new ac;this.addChild(this.uiLayer);this.createUi();this.createRoll();0==this.checkTime()&&(this.disableRoll(),this.startTimer());this.speed=0;this.rollSpeed=15;this.rollSpeedDecrease=.07;this.nowShowGift=this.rollWorking=
  717. !1;B.current.stage.addEventListener(y.MOUSE_UP,n(this,this.onMouseUp));X.get_instance().putLogo(0,40)},createTilelayers:function(){this.tilelayerManager=K.get_instance();var a="assets/images/"+M.graphicsFolder+"/spritelists/ui.xml",b="assets/images/"+M.graphicsFolder+"/spritelists/ui.png";this.tilelayerManager.create("ui",a,b,this);a="assets/images/"+M.graphicsFolder+"/spritelists/main.xml";b="assets/images/"+M.graphicsFolder+"/spritelists/main.png";this.tilelayerManager.create("main",a,b,this)},
  718. createUi:function(){var a=new ha;a.set_size(59);a.set_align("center");a.set_fieldWidth(400);a.set_x(130);a.set_y(120);a.mouseEnabled=!1;a.set_text("DAILY PRIZE");this.uiLayer.addChild(a);this.statusLabel=new ha;this.statusLabel.set_color(2047850);this.statusLabel.set_align("center");this.statusLabel.set_size(48);this.statusLabel.set_fieldWidth(400);this.statusLabel.set_x(125);this.statusLabel.set_y(180);this.statusLabel.mouseEnabled=!1;this.statusLabel.set_text("READY");this.addChild(this.statusLabel);
  719. a=new Ka("assets/images/"+M.graphicsFolder+"/buttons/btn_back.png");a.addEventListener("b_complete",n(this,this.onBack));a.set_x(53.75);a.set_y(151.3);a.setSoundEffect("click");this.uiLayer.addChild(a);a=ma.buildSprite("assets/images/"+M.graphicsFolder+"/white_line.png");a.setAnchorPoint(0,0);this.addChild(a);a=ma.buildSprite("assets/images/"+M.graphicsFolder+"/white_line.png");a.setAnchorPoint(0,0);a.set_y(936);this.addChild(a);this.showManager=new Qc;this.showManager.addEventListener(u.COMPLETE,
  720. n(this,this.completeShow));this.addChild(this.showManager)},createRoll:function(){var a=K.get_instance().get("ui");this.rollContainer=new Za;this.addChild(this.rollContainer);var b=C.create(a,"roll_bg");b.set_scaleX(1.98);b.set_scaleY(1.98);b.x=320;b.y=480;a.addChild(b);this.rollContainer.add(b);this.roll=C.create(a,"roll");this.roll.x=320;this.roll.y=480;a.addChild(this.roll);this.rollContainer.add(this.roll);b=C.create(a,"arrow");b.set_offset(new la(14,-14));b.x=547;b.y=249;a.addChild(b);this.rollContainer.add(b);
  721. b=C.create(a,"btn_restart");a.addChild(b);this.startButton=new wa(b);this.startButton.addEventListener("b_complete",n(this,this.startRoll));this.startButton.setHitCirc(0,0,51);this.startButton.set_x(320);this.startButton.set_y(480);this.startButton.setSoundEffect("click");this.uiLayer.add(this.startButton);this.rollContainer.add(this.startButton);this.animateStartButton()},animateStartButton:function(){I.tween(this.startButton,.5,{scaleX:1.1,scaleY:1.1}).ease(hb.get_easeNone()).repeat().reflect()},
  722. checkTime:function(){this.calcLeaveSeconds();return 0==this.leaveSeconds?!0:!1},calcLeaveSeconds:function(){var a=Z.get_instance().get("giftTime");0==a?this.leaveSeconds=0:(a=this.getSpendTime(a),a=36E5*this.timeoutInHours-a,0>=a?this.leaveSeconds=0:(a=Df.parse(a),this.leaveSeconds=a.seconds+60*a.minutes+3600*a.hours+86400*a.days))},getSpendTime:function(a){return this.getCurrentTime()-a},getCurrentTime:function(){return(new Date).getTime()},disableRoll:function(){this.rollContainer.set_alpha(.5);
  723. this.startButton.manualDisabled=!0},enableRoll:function(){this.rollContainer.set_alpha(1);this.startButton.manualDisabled=!1;this.animateStartButton()},startTimer:function(){this.updateStatus();this.timer.start()},saveTime:function(){var a=(new Date).getTime();Z.get_instance().save("giftTime",a)},updateTimer:function(a){this.leaveSeconds--;this.updateStatus();0==this.leaveSeconds&&this.completeTimer()},updateStatus:function(){0==this.leaveSeconds?this.statusLabel.set_text("READY"):this.statusLabel.set_text(D.createTimerString(this.leaveSeconds))},
  724. completeTimer:function(){this.timer.reset();this.enableRoll()},onBack:function(a){x.instance.showScene(T.Menu)},update:function(a,b){this.updater.update();this.tilelayerManager.update();1==this.rollWorking&&this.rotateRoll()},startRoll:function(a){this.roll.set_rotation(D.toRad(0));this.rollSpeed=D.randTo(9,17);this.rollSpeedDecrease=D.randTo(6,16,2)/100;this.speed=this.rollSpeed;this.rollWorking=!0;this.startButton.manualDisabled=!0;this.startButton.set_alpha(.5);I.stop(this.startButton,null,!1,
  725. !1)},rotateRoll:function(){var a=D.toDeg(this.roll.get_rotation())+this.speed;this.roll.set_rotation(D.toRad(a%360));this.speed-=this.rollSpeedDecrease;0>=this.speed&&this.completeRoll()},completeRoll:function(){this.rollWorking=!1;qb.delay(n(this,this.hideRoll),500)},hideRoll:function(){this.disableRoll();this.uiLayer.set_visible(!1);this.statusLabel.set_visible(!1);this.rollContainer.set_visible(!1);this.showGift()},showGift:function(){var a="50 50 VEHICLE 50 50 250 100 75 500 75 100 250".split(" "),
  726. b=this.calcPrizeId(),c=a[b];Xa.get_instance().save("gift",c);2==b?(c=this.getAvaiableCarId(),-1==c?this.startRoll():(Z.get_instance().save("car_"+c,!0),Z.get_instance().saveStatistic("st_countCars"),this.showManager.showCar(c))):(a=z.parseInt(a[b]),c=W.replace("%c% COINS","%c%",""+a),x.instance.updateMoney(a),this.showManager.showGift(c));this.nowShowGift=!0},getAvaiableCarId:function(){var a=x.configs.getCountCars("hero");if(1==Z.get_instance().get("car_"+a))return-1;for(var b=-1,c=1,a=a+1;c<a;){var d=
  727. c++;if(null==Z.get_instance().get("car_"+d)){b=d;break}}return b},completeShow:function(a){this.hideGift()},calcPrizeId:function(){var a=D.toDeg(this.roll.get_rotation())+360+15,a=Math.floor(a/30)%12,a=13-a;13==a&&(a=1);return a-1},onMouseUp:function(a){0!=this.nowShowGift&&(R.get_instance().playSound("click"),this.hideGift())},hideGift:function(){this.nowShowGift=!1;this.showManager.hide();this.uiLayer.set_visible(!0);this.statusLabel.set_visible(!0);this.rollContainer.set_visible(!0);this.saveTime();
  728. this.calcLeaveSeconds();this.startTimer()},free:function(){I.stop(this.startButton,null,!1,!1);B.current.stage.removeEventListener(y.MOUSE_UP,n(this,this.onMouseUp));this.updater.free();this.updater=null;this.rollContainer.free();this.rollContainer=null;this.showManager.free();this.showManager=null;this.tilelayerManager.free();this.tilelayerManager=null;this.uiLayer.free();this.uiLayer=null;this.timer.stop();this.roll=this.statusLabel=this.timer=null;this.startButton.free();this.startButton=null},
  729. __class__:tf});var uf=function(){A.call(this)};g["scenes.Help"]=uf;uf.__name__=["scenes","Help"];uf.__super__=$a;uf.prototype=t($a.prototype,{init:function(){X.get_instance().putLogo(220,460);this.active=!0;this.createTilelayers();this.updater=pb.get_instance();var a=new ha;a.set_size(59);a.set_align("center");a.set_fieldWidth(620);a.set_x(10);a.set_y(60);a.mouseEnabled=!1;a.set_text("CHANGING LANES");this.addChild(a);a=x.configs.getAnimationConfig("help_top");this.animUp=new mc("ui",a);this.animUp.set_x(385);
  730. this.animUp.set_y(280);this.animUp.setFps(12);this.animUp.play(!0);0==Wa.onMobile&&(a=ma.buildSprite("assets/images/"+M.graphicsFolder+"/arrow_key.png"),a.set_x(68),a.set_y(228),this.addChild(a),a=ma.buildSprite("assets/images/"+M.graphicsFolder+"/arrow_key.png"),a.set_x(68),a.set_y(298),a.set_rotation(180),this.addChild(a));a=new ha;a.set_size(59);a.set_align("center");a.set_fieldWidth(420);a.set_x(110);a.set_y(550);a.mouseEnabled=!1;a.set_text("JUMPING");this.addChild(a);a=x.configs.getAnimationConfig("help_bot");
  731. this.animDown=new mc("ui",a);this.animDown.set_x(300);this.animDown.set_y(790);this.animDown.setFps(12);this.animDown.play(!0);0==Wa.onMobile&&(a=ma.buildSprite("assets/images/"+M.graphicsFolder+"/space_key.png"),a.set_x(90),a.set_y(711),this.addChild(a));this.skipButton=new Ka("assets/images/"+M.graphicsFolder+"/buttons/btn_back.png");this.skipButton.set_rotation(180);this.skipButton.addEventListener("b_complete",n(this,this.onSkip));this.skipButton.set_x(580);this.skipButton.set_y(480);this.skipButton.setSoundEffect("click");
  732. this.addChild(this.skipButton);I.tween(this.skipButton,.5,{scaleX:1.1,scaleY:1.1}).ease(hb.get_easeNone()).repeat().reflect();B.current.stage.addEventListener(y.MOUSE_UP,n(this,this.onMouseUp));B.current.stage.addEventListener(kb.KEY_UP,n(this,this.onKeyUp))},createTilelayers:function(){this.tilelayerManager=K.get_instance();this.tilelayerManager.create("ui","assets/images/"+M.graphicsFolder+"/spritelists/ui.xml","assets/images/"+M.graphicsFolder+"/spritelists/ui.png",this)},onSkip:function(a){this.hide()},
  733. onMouseUp:function(a){null!=a.target.parent&&1==v.__instanceof(a.target.parent,Ka)||this.hide()},hide:function(){0!=this.active&&(this.active=!1,1==this.fromMenu?x.instance.showScene(T.Menu):x.instance.showScene(T.LevelBuilder))},update:function(a,b){this.updater.update();this.tilelayerManager.update()},onKeyUp:function(a){this.hide()},free:function(){I.stop(this.skipButton);B.current.stage.removeEventListener(y.MOUSE_UP,n(this,this.onMouseUp));B.current.stage.removeEventListener(kb.KEY_UP,n(this,
  734. this.onKeyUp));this.updater.free();this.updater=null;this.animUp.free();this.animUp=null;this.animDown.free();this.animDown=null;this.tilelayerManager.free();this.tilelayerManager=null},__class__:uf});var ra=function(){null!=ra.instance&&console.log("Presend old instance");ra.instance=this;A.call(this)};g["scenes.LevelBuilder"]=ra;ra.__name__=["scenes","LevelBuilder"];ra.__interfaces__=[rd];ra.instance=null;ra.__super__=$a;ra.prototype=t($a.prototype,{receiveNotify:function(a,b,c){switch(a){case "showResult":this.showResult()}},
  735. init:function(){R.get_instance().playMusic("in_game");this.timeMultiplier=1;this.initLayers();this.createTilelayers();this.signToNotifications();this.levelManager=new S;this.initEntityEngine();this.levelManager.build();this.createUi();X.get_instance().putLogo(0,40)},initLayers:function(){this.layersManager=new Ce(this);this.layersManager.addLayer("background");this.layersManager.addLayer("road");this.layersManager.addLayer("objects");this.layersManager.addLayer("ui");this.layersManager.addLayer("top")},
  736. createTilelayers:function(){var a=this.layersManager.getLayer("objects");this.tilelayerManager=K.get_instance();var b="assets/images/"+M.graphicsFolder+"/spritelists/bg.xml",c="assets/images/"+M.graphicsFolder+"/spritelists/bg.png";this.tilelayerManager.create("bgUp",b,c,a);b="assets/images/"+M.graphicsFolder+"/spritelists/main.xml";c="assets/images/"+M.graphicsFolder+"/spritelists/main.png";this.tilelayerManager.create("main",b,c,a);b="assets/images/"+M.graphicsFolder+"/spritelists/bg.xml";c="assets/images/"+
  737. M.graphicsFolder+"/spritelists/bg.png";this.tilelayerManager.create("bgDown",b,c,a)},signToNotifications:function(){ta.get_instance().signToNotify("showResult",this)},initEntityEngine:function(){this.entityEngine=new w;this.entityEngine.addCleaner(td);this.entityEngine.addSystem(ke);this.entityEngine.addSystem(le);this.entityEngine.addSystem(me);this.entityEngine.addSystem(ne);this.entityEngine.addSystem(oe);this.entityEngine.addSystem(pe);this.entityEngine.addSystem(qe);this.entityEngine.addSystem(re);
  738. this.entityEngine.addSystem(se);this.entityEngine.addSystem(te);this.entityEngine.addSystem(ue);this.entityEngine.addSystem(ve);this.entityEngine.addSystem(we);this.entityEngine.activate()},createUi:function(){var a=ma.buildSprite("assets/images/"+M.graphicsFolder+"/score_panel.png");a.set_x(570);a.set_y(24);this.layersManager.getLayer("ui").addChild(a);this.pointsLabel=new ha;this.pointsLabel.set_color(3496330);this.pointsLabel.set_align("center");this.pointsLabel.set_size(45);this.pointsLabel.set_fieldWidth(140);
  739. this.pointsLabel.set_x(500);this.pointsLabel.set_y(-5);this.pointsLabel.mouseEnabled=!1;this.layersManager.getLayer("ui").addChild(this.pointsLabel);this.updatePoints()},updatePoints:function(a){null==a&&(a=0);this.pointsLabel.set_text(""+a)},restart:function(a){ra.instance=null;x.instance.showScene(T.LevelBuilder)},pause:function(a){this.paused=!0},resume:function(){this.paused=!1},onExit:function(a){this.showResult()},exit:function(){ra.instance=null;x.instance.showScene(T.Menu)},start:function(){Z.get_instance().saveStatistic("st_countRace")},
  740. update:function(a,b){1!=this.paused&&(a*=this.timeMultiplier,this.entityEngine.update(a),this.levelManager.update(a),this.tilelayerManager.update())},showResult:function(){x.carCrash=!0;var a=Z.get_instance().get("score");if(null==a||x.score>a)Xa.get_instance().save("score",""+x.score),X.get_instance().submitScore(x.score);Z.get_instance().saveBigger("score",x.score);Z.get_instance().saveStatistic("st_score",x.score,"max");X.get_instance().gameBreak(n(this,this.spilPause),n(this,this.spilResume))},
  741. spilPause:function(){0==R.get_instance().isMuted()?(this.soundMutedBeforePause=!0,R.get_instance().mute(!0)):this.soundMutedBeforePause=!1},spilResume:function(){1==this.soundMutedBeforePause&&R.get_instance().mute(!1);this.exit()},free:function(){this.entityEngine.free();this.entityEngine=null;this.layersManager.free();this.layersManager=null;ta.get_instance().postNotify("clearAll");ta.get_instance().clear();this.levelManager.free();this.levelManager=null;this.tilelayerManager.free();this.tilelayerManager=
  742. null},__class__:ra});var vf=function(){A.call(this)};g["scenes.Menu"]=vf;vf.__name__=["scenes","Menu"];vf.__super__=$a;vf.prototype=t($a.prototype,{init:function(){var a=ma.buildSprite("assets/images/"+M.graphicsFolder+"/window_bg.png");a.setAnchorPoint(0,0);this.addChild(a);this.createTilelayers();this.createMenu();B.current.stage.addEventListener(kb.KEY_UP,n(this,this.onKeyUp));X.get_instance().putLogo(0,270);X.get_instance().showMoreGamesOn(70,508,74,74)},onKeyUp:function(a){32==a.keyCode&&this.startGame()},
  743. createTilelayers:function(){this.tilelayerManager=K.get_instance();var a="assets/images/"+M.graphicsFolder+"/spritelists/ui.xml",b="assets/images/"+M.graphicsFolder+"/spritelists/ui.png";this.tilelayerManager.create("ui",a,b,this);a="assets/images/"+M.graphicsFolder+"/spritelists/main.xml";b="assets/images/"+M.graphicsFolder+"/spritelists/main.png";this.tilelayerManager.create("main",a,b,this)},update:function(a,b){this.tilelayerManager.update();this.stickmans.update(a);1==x.carCrash&&this.animSpawner.update(a)},
  744. createMenu:function(){this.uiLayer=new ac;this.addChild(this.uiLayer);var a=K.get_instance().get("ui"),b,c="btn_play";1==x.carCrash?(c="btn_restart2",b=new ha,b.set_color(2047850),b.set_align("center"),b.set_size(63),b.set_fieldWidth(400),b.set_x(125),b.set_y(45),b.mouseEnabled=!1,b.set_text("GAME OVER"),this.addChild(b),b=new ha,b.set_align("center"),b.set_size(95),b.set_fieldWidth(400),b.set_x(125),b.set_y(110),b.mouseEnabled=!1,b.set_text("RESULT"),this.addChild(b),b=new ha,b.set_align("center"),
  745. b.set_size(95),b.set_fieldWidth(400),b.set_x(125),b.set_y(212),b.mouseEnabled=!1,b.set_text(""+x.score),this.addChild(b)):(b=C.create(a,"game_logo"),b.x=320,b.y=146,a.addChild(b));b=C.create(a,c);a.addChild(b);this.playButton=new wa(b);this.playButton.addEventListener("b_complete",n(this,this.startGame));this.playButton.setHitCirc(0,0,78);this.playButton.set_x(324);this.playButton.set_y(414);this.playButton.setSoundEffect("click");this.uiLayer.add(this.playButton);I.tween(this.playButton,.5,{scaleX:1.1,
  746. scaleY:1.1}).ease(hb.get_easeNone()).repeat().reflect();b=C.create(a,"btn_cars");a.addChild(b);b=new wa(b);b.addEventListener("b_complete",n(this,this.showGarage));b.setHitCirc(0,0,46);b.set_x(462);b.set_y(468);b.setSoundEffect("click");this.uiLayer.add(b);0==Wa.isIE&&(b=new xe,b.set_x(537),b.set_y(545),b.setSoundEffect("click"),this.uiLayer.add(b));b=C.create(a,"btn_moregames");a.addChild(b);b=new wa(b);b.addEventListener("b_complete",n(this,this.showMoreGames));b.setHitCirc(0,0,34);b.set_x(110);
  747. b.set_y(545);b.setSoundEffect("click");this.uiLayer.add(b);b=C.create(a,"btn_records");a.addChild(b);b=new wa(b);b.addEventListener("b_complete",n(this,this.showRecords));b.setHitCirc(0,0,34);b.set_x(183);b.set_y(468);b.setSoundEffect("click");this.uiLayer.add(b);b=C.create(a,"btn_help");a.addChild(b);b=new wa(b);b.addEventListener("b_complete",n(this,this.showHelp));b.setHitCirc(0,0,34);b.set_x(595);b.set_y(70);b.setSoundEffect("click");this.uiLayer.add(b);1==Wa.isIE&&(b.set_x(537),b.set_y(545));
  748. this.createCar(a);b=C.create(a,"btn_prize");a.addChild(b);this.giftButton=new wa(b);this.giftButton.set_rotation(-10);this.giftButton.addEventListener("b_complete",n(this,this.showGift));this.giftButton.setHitCirc(0,0,35);this.giftButton.set_x(320);this.giftButton.set_y(774);this.giftButton.setSoundEffect("click");this.uiLayer.add(this.giftButton);I.tween(this.giftButton,.5,{rotation:this.giftButton.get_rotation()+20}).ease(hb.get_easeNone()).repeat().reflect();b=C.create(a,"dot");b.x=102;b.y=774;
  749. a.addChild(b);b=new ha;b.set_size(38);b.set_fieldWidth(300);b.set_x(122);b.set_y(752);b.mouseEnabled=!1;b.set_text(""+x.money);this.addChild(b);a=Z.get_instance().get("score");null==a&&(a=0);b=new ha;b.set_size(38);b.set_fieldWidth(300);b.set_x(415);b.set_y(752);b.mouseEnabled=!1;b.set_text("Best: "+a);this.addChild(b);this.stickmans=new yd;this.stickmans.set_y(900);this.stickmans.create();this.addChild(this.stickmans)},startGame:function(a){1==x.instance.firstPlay&&(Xa.get_instance().save("play"),
  750. x.instance.firstPlay=!1);null==Z.get_instance().get("helpShow")?(Z.get_instance().save("helpShow",!0),x.instance.showScene(T.Help)):x.instance.showScene(T.LevelBuilder)},showGarage:function(a){x.instance.showScene(T.Garage)},showHelp:function(a){x.instance.showScene(T.Help).fromMenu=!0},createCar:function(a){var b=C.create(a,"stand");b.x=320;b.y=630;a.addChild(b);a={x:315,y:600};var b=x.configs.getCarConfig("hero",x.curCar),c={x:b.bX,y:b.bY},d=K.get_instance().get("main"),e=C.create(d,b.s);e.x=a.x+
  751. z.parseFloat(b.sX)-c.x;e.y=a.y+z.parseFloat(b.sY)-c.y;d.addChild(e);e=b.w.length;if(0<b.w.length){var f=C.create(d,"koleco");f.x=a.x+z.parseFloat(b.w[0].x)-c.x;f.y=a.y+z.parseFloat(b.w[0].y)-c.y;d.addChild(f);2==e&&(f=C.create(d,"koleco"),f.x=a.x+z.parseFloat(b.w[1].x)-c.x,f.y=a.y+z.parseFloat(b.w[1].y)-c.y,d.addChild(f))}e=b.b;1==x.carCrash&&(e=b.c);e=C.create(d,e);e.x=a.x;e.y=a.y;d.addChild(e);0==x.carCrash?I.tween(e,.3,{y:e.y-1.5}).ease(hb.get_easeNone()).repeat().reflect():this.addSteamAnim(b,
  752. a,c)},addSteamAnim:function(a,b,c){var d=1.2*a.r[3].x-c.x,e=a.r[1].y-c.y-20,f=a.r[2].x-c.x;a=a.r[2].y-c.y;this.animSpawner=new yc("main","crash_anim",27);this.animSpawner.minTimeout=.3;this.animSpawner.maxTimeout=.6;this.animSpawner.minX=d;this.animSpawner.minY=e;this.animSpawner.maxX=f;this.animSpawner.maxY=a;this.animSpawner.set_x(b.x);this.animSpawner.set_y(b.y);this.animSpawner.start();this.addChild(this.animSpawner)},showMoreGames:function(a){},showRecords:function(a){x.instance.showScene(T.Awards)},
  753. showGift:function(a){x.instance.showScene(T.Gift)},free:function(){X.get_instance().showMoreGames(!1);I.stop(this.playButton);this.playButton=null;I.stop(this.giftButton);this.giftButton=null;B.current.stage.removeEventListener(kb.KEY_UP,n(this,this.onKeyUp));this.stickmans.free();this.stickmans=null;this.tilelayerManager.free();this.tilelayerManager=null;this.uiLayer.free();this.uiLayer=null;1==x.carCrash&&(this.animSpawner.free(),this.animSpawner=null)},__class__:vf});var wf=function(){A.call(this)};
  754. g["scenes.Test"]=wf;wf.__name__=["scenes","Test"];wf.__super__=$a;wf.prototype=t($a.prototype,{init:function(){this.createTilelayers();this.uiLayer=new ac;this.addChild(this.uiLayer);var a=K.get_instance().get("ui");this.container=new Za;this.container.set_x(10);this.container.set_y(10);this.addChild(this.container);var b;b=C.create(a,"buy_bg");a.addChild(b);a=new wa(b);a.setHitRect(0,0,470,134);a.set_x(228);a.set_y(60);a.drawHitArea();this.uiLayer.add(a);this.container.add(a);b=new ha;b.set_size(40);
  755. b.set_align("center");b.set_fieldWidth(300);b.set_x(-150);b.set_y(-27);b.mouseEnabled=!1;b.set_text("Test label");a.add(b);this.container.set_visible(!1)},createTilelayers:function(){this.tilelayerManager=K.get_instance();this.tilelayerManager.create("ui","assets/images/"+M.graphicsFolder+"/spritelists/ui.xml","assets/images/"+M.graphicsFolder+"/spritelists/ui.png",this)},update:function(a,b){this.tilelayerManager.update()},onMouseDown:function(a){this.container.set_x(B.current.get_mouseX());this.container.set_y(B.current.get_mouseY())},
  756. __class__:wf});var qe=function(){};g["systems.BarierGenerator"]=qe;qe.__name__=["systems","BarierGenerator"];qe.__super__=O;qe.prototype=t(O.prototype,{init:function(){O.prototype.init.call(this);this.counter=this.timeout=3.6;this.startPosition={x:0,y:0}},update:function(a){0!=S.instance.move&&this.updateCounter(a)},updateCounter:function(a){this.counter+=a;this.counter>=this.timeout&&(this.counter=0,this.generateBarier())},generateBarier:function(){var a=D.randTo(1,100);25>=a?this.createOneBarier():
  757. 60>=a?this.createTwoBarier():this.createThreeBarier()},createOneBarier:function(){var a=z["int"](D.randTo(1,3));this.createCar(a)},createTwoBarier:function(){var a=[1,2,3],b=D.randTo(0,a.length-1),c=a[b];a.splice(b,1);this.createCar(c);b=D.randTo(0,a.length-1);c=a[b];5<D.randTo(1,10)?(this.barierRoad=c,this.createStaticBarier()):this.createCar(c)},createThreeBarier:function(){var a=[1,2,3],b=D.randTo(0,a.length-1),c=a[b];a.splice(b,1);this.createCar(c);b=D.randTo(0,a.length-1);c=a[b];a.splice(b,1);
  758. this.createCar(c);this.barierRoad=c=a[0];this.createStaticBarier()},createStaticBarier:function(){var a=100*D.randTo(5,9,2)|0;qb.delay(n(this,this.delayBarier),a)},delayBarier:function(){this.createBarier(this.barierRoad)},createCar:function(a){this.startPosition.x=776;this.startPosition.y=S.instance.getPosYByRoad(a);var b=220,c=300;5<D.randTo(1,10)?(b=198,c=225):(b=243,c=270);b=D.randTo(b,c);c=x.configs.getRandomCarIndex("npc");a=S.instance.createCarEntity("npc",c,a,this.startPosition,b);w.get_instance().saveEntity(a)},
  759. createBarier:function(a){var b=w.get_instance().createEntity(),c=w.get_instance().getComponent(Aa,!0);c.x=776;c.y=S.instance.getPosYByRoad(a);w.get_instance().addComponent(b,c);var d=w.get_instance().getComponent(Hb,!0);d.x=S.instance.groundSpeedVec.x;d.y=S.instance.groundSpeedVec.y;w.get_instance().addComponent(b,d);var d="barier"+D.randTo(1,3),e=w.get_instance().getComponent(rb,!0),f=K.get_instance().get("main"),g=K.get_instance().getGroup("roadBg","main");e.graph=C.create(f,d);e.graph.x=c.x;e.graph.y=
  760. c.y;g.addChild(e.graph);e.group=null;w.get_instance().addComponent(b,e);c=w.get_instance().getComponent(Ca,!0);c.type=2;c.road=a;c.x1=-33.5;c.y1=9.25;c.x2=1.25;c.y2=-2.3;c.x3=32.8;c.y3=14.05;c.x4=-1.7;c.y4=26;c.hit=!1;w.get_instance().addComponent(b,c);w.get_instance().saveEntity(b)},free:function(){O.prototype.free.call(this);this.startPosition=null},__class__:qe});var se=function(){};g["systems.BoostGenerator"]=se;se.__name__=["systems","BoostGenerator"];se.__super__=O;se.prototype=t(O.prototype,
  761. {init:function(){O.prototype.init.call(this);this.minTimeout=10;this.maxTimeout=20;this.timeout=this.genTimeout();this.counter=0;this.boostTime=7;this.boostCounter=0;this.boostDecreaseTime=.6*this.boostTime;this.decreaseValue=1/(.4*this.boostTime);w.get_instance().eventManager.addListener(this,"collectBoost")},genTimeout:function(){return D.randTo(this.minTimeout,this.maxTimeout,2)},update:function(a){0!=S.instance.move&&(this.updateCounter(a),1==S.instance.boostSpeed&&this.updateBoost(a))},updateCounter:function(a){this.counter+=
  762. a/ra.instance.timeMultiplier;this.counter>=this.timeout&&(this.counter=0,this.timeout=this.genTimeout(),this.createItem())},createItem:function(){var a=z["int"](D.randTo(1,3)),b=w.get_instance().createEntity(),c=w.get_instance().getComponent(Aa,!0);c.x=776;c.y=S.instance.getPosYByRoad(a);w.get_instance().addComponent(b,c);var d=w.get_instance().getComponent(Hb,!0);d.x=S.instance.groundSpeedVec.x;d.y=S.instance.groundSpeedVec.y;w.get_instance().addComponent(b,d);var d=K.get_instance().get("main"),
  763. e=K.get_instance().getGroup("roadBg","main"),f=w.get_instance().getComponent(rb,!0);f.graph=Va.create(d,"boost_anim",30);f.graph.x=c.x;f.graph.y=c.y;e.addChild(f.graph);f.group=null;w.get_instance().addComponent(b,f);c=w.get_instance().getComponent(Ca,!0);c.type=3;c.road=a;c.x1=-33.5;c.y1=9.25;c.x2=1.25;c.y2=-2.3;c.x3=32.8;c.y3=14.05;c.x4=-1.7;c.y4=26;c.hit=!1;w.get_instance().addComponent(b,c);w.get_instance().saveEntity(b)},receiveEvent:function(a,b){this.collectBoost()},collectBoost:function(){R.get_instance().playSound("boost");
  764. this.startGameSpeed=ra.instance.timeMultiplier;ra.instance.timeMultiplier+=1;S.instance.boostSpeed=!0;this.boostCounter=0;w.get_instance().eventManager.sendEvent("udpateBoost")},updateBoost:function(a){a/=ra.instance.timeMultiplier;this.boostCounter+=a;this.boostCounter>=this.boostDecreaseTime&&this.decreaseBoost(a)},decreaseBoost:function(a){ra.instance.timeMultiplier-=this.decreaseValue*a;ra.instance.timeMultiplier<=this.startGameSpeed&&(ra.instance.timeMultiplier=this.startGameSpeed,S.instance.boostSpeed=
  765. !1,this.boostCounter=0,this.completeBoost())},completeBoost:function(){w.get_instance().eventManager.sendEvent("udpateBoost")},__class__:se});var le=function(){};g["systems.CarRender"]=le;le.__name__=["systems","CarRender"];le.__super__=O;le.prototype=t(O.prototype,{init:function(){O.prototype.init.call(this);this.addRequiredComponentClass(Ba);this.addRequiredComponentClass(Aa);w.get_instance().eventManager.addListener(this,"drawCar")},receiveEvent:function(a,b){var c=b.entity,d=w.get_instance().getComponentIn(c,
  766. Ba);this.drawOnPosition(d,c)},process:function(a,b){var c=w.get_instance().getComponentIn(a,Ba);1!=c.lock&&(this.drawOnPosition(c,a),this.updateMoveAnim(c,b))},drawOnPosition:function(a,b){var c=w.get_instance().getComponentIn(b,Aa);a.graph.x=c.x+a.graphOffsetX;a.graph.y=c.y+a.graphOffsetY;a.shadow.x=c.x+a.shadowOffsetX;a.shadow.y=c.y+a.shadowOffsetY;null!=a.wheel1&&(a.wheel1.x=c.x+a.wheel1X,a.wheel1.y=c.y+a.wheel1Y);null!=a.wheel2&&(a.wheel2.x=c.x+a.wheel2X,a.wheel2.y=c.y+a.wheel2Y)},updateMoveAnim:function(a,
  767. b){var c=b;"hero"!=a.type&&(c=b/ra.instance.timeMultiplier);a.runAnimProgress+=4*c;1<=a.runAnimProgress&&(a.runAnimProgress=1);c=a.runAnimHeight*a.runAnimProgress;1==a.runAnimTarget&&(c*=-1);a.graph.y+=c;1==a.runAnimProgress&&(a.runAnimProgress=0,a.runAnimTarget=1==a.runAnimTarget?2:1)},__class__:le});var re=function(){};g["systems.CoinsGenerator"]=re;re.__name__=["systems","CoinsGenerator"];re.__super__=O;re.prototype=t(O.prototype,{init:function(){O.prototype.init.call(this);this.minTimeout=.28;
  768. this.maxTimeout=1.85;this.timeout=this.genTimeout();this.counter=0;this.effects=[];this.layer=ra.instance.layersManager.getLayer("ui");this.effectOffsetY=20;this.effectFlyHeight=70;this.effectFlyTime=.6;w.get_instance().eventManager.addListener(this,"collectCoin")},genTimeout:function(){return D.randTo(this.minTimeout,this.maxTimeout,2)},update:function(a){0!=S.instance.move&&this.updateCounter(a)},updateCounter:function(a){this.counter+=a/ra.instance.timeMultiplier;this.counter>=this.timeout&&(this.counter=
  769. 0,this.timeout=this.genTimeout(),this.createItem())},createItem:function(){var a=z["int"](D.randTo(1,3)),b=w.get_instance().createEntity(),c=w.get_instance().getComponent(Aa,!0);c.x=776;c.y=S.instance.getPosYByRoad(a);w.get_instance().addComponent(b,c);var d=w.get_instance().getComponent(Hb,!0);d.x=S.instance.groundSpeedVec.x;d.y=S.instance.groundSpeedVec.y;w.get_instance().addComponent(b,d);var d=K.get_instance().get("main"),e=K.get_instance().getGroup("roadBg","main"),f=w.get_instance().getComponent(rb,
  770. !0);f.graph=Va.create(d,"moneta_anim",30);f.graph.x=c.x;f.graph.y=c.y;e.addChild(f.graph);f.group=null;w.get_instance().addComponent(b,f);c=w.get_instance().getComponent(Ca,!0);c.count=1;c.type=4;c.road=a;c.x1=-10.5;c.y1=-15;c.x2=1;c.y2=-21;c.x3=19.95;c.y3=16.4;c.x4=7;c.y4=24.4;c.hit=!1;w.get_instance().addComponent(b,c);w.get_instance().saveEntity(b)},receiveEvent:function(a,b){this.collectCoin(b.count,b.x,b.y)},collectCoin:function(a,b,c){R.get_instance().playSound("coin");x.instance.updateMoney(a);
  771. this.showEffect(a,b,c)},showEffect:function(a,b,c){c-=this.effectOffsetY;var d=c-this.effectFlyHeight,e=this.getEffect();e.set_x(b);e.set_y(c);e.set_text("+"+a);e.set_visible(!0);e.set_alpha(1);I.tween(e,this.effectFlyTime,{y:d}).ease(hb.get_easeNone()).onComplete(n(this,this.completeEffect),[e])},getEffect:function(){var a;0<this.effects.length?a=this.effects.pop():(a=new ha,a.set_size(40),a.set_fieldWidth(300),a.mouseEnabled=!1,this.layer.addChild(a));return a},completeEffect:function(a){a.set_visible(!1);
  772. a.set_alpha(0);this.effects.push(a)},free:function(){O.prototype.free.call(this);this.effects=[];this.layer=this.effects=null},__class__:re});var ue=function(){};g["systems.CollisionSystem"]=ue;ue.__name__=["systems","CollisionSystem"];ue.__super__=O;ue.prototype=t(O.prototype,{init:function(){O.prototype.init.call(this);this.heroEntity=-1;this.polygon1=[{x:0,y:0},{x:0,y:0},{x:0,y:0},{x:0,y:0}];this.polygon2=[{x:0,y:0},{x:0,y:0},{x:0,y:0},{x:0,y:0}];this.addRequiredComponentClass(Ca)},process:function(a,
  773. b){if(-1!=this.heroEntity&&0!=S.instance.move&&1==this.checkCollision(a))this.onCollision(a)},addEntity:function(a){-1==this.heroEntity&&null!=w.get_instance().getComponentIn(a,bc)?(this.heroEntity=a,this.heroCar=w.get_instance().getComponentIn(this.heroEntity,bc)):O.prototype.addEntity.call(this,a)},checkCollision:function(a){var b=w.get_instance().getComponentIn(this.heroEntity,Ca),c=w.get_instance().getComponentIn(a,Ca);if(c.road!=b.road)return!1;var d=w.get_instance().getComponentIn(this.heroEntity,
  774. Aa);a=w.get_instance().getComponentIn(a,Aa);return 2==c.type?this.checkPolygonCollision(b,d,c,a):1==c.type?this.checkCarCollision(b,d,c,a):this.checkLinearCollision(b,d,c,a)},checkPolygonCollision:function(a,b,c,d){this.polygon1[0].x=b.x+a.x1;this.polygon1[0].y=b.y+a.y1;this.polygon1[1].x=b.x+a.x2;this.polygon1[1].y=b.y+a.y2;this.polygon1[2].x=b.x+a.x3;this.polygon1[2].y=b.y+a.y3;this.polygon1[3].x=b.x+a.x4;this.polygon1[3].y=b.y+a.y4;this.polygon2[0].x=d.x+c.x1;this.polygon2[0].y=d.y+c.y1;this.polygon2[1].x=
  775. d.x+c.x2;this.polygon2[1].y=d.y+c.y2;this.polygon2[2].x=d.x+c.x3;this.polygon2[2].y=d.y+c.y3;this.polygon2[3].x=d.x+c.x4;this.polygon2[3].y=d.y+c.y4;return D.polyPoly(this.polygon1,this.polygon2)},checkCarCollision:function(a,b,c,d){return 2==this.heroCar.state?this.checkPolygonCollision(a,b,c,d):this.checkLinearCollision(a,b,c,d)},checkLinearCollision:function(a,b,c,d){var e=b.x+a.x4;a=b.x+a.x3;b=d.x+c.x4;c=d.x+c.x3;return b>=e&&b<=a||c>=e&&c<=a?!0:!1},onCollision:function(a){var b=w.get_instance().getComponentIn(a,
  776. Ca);switch(b.type){case 1:case 2:this.barierColide(a,b);break;case 3:this.collectBoost(a);break;case 4:this.collectMoney(a,b)}},barierColide:function(a,b){1==S.instance.boostSpeed?1==b.type?this.throwCar(a,b):2==b.type&&this.throwBarier(a,b):this.crashHero(a)},throwCar:function(a,b){w.get_instance().delComponent(a,b);w.get_instance().eventManager.sendEvent("throwCar",{entity:a})},throwBarier:function(a,b){1!=b.hit&&(b.hit=!0,w.get_instance().eventManager.sendEvent("throwBarier",{entity:a}))},crashHero:function(a){S.instance.stopMove();
  777. w.get_instance().eventManager.sendEvent("heroCrash",{hero:this.heroEntity,target:a})},collectBoost:function(a){w.get_instance().destroyEntity(a,!0);w.get_instance().eventManager.sendEvent("collectBoost")},collectMoney:function(a,b){var c=b.count,d=w.get_instance().getComponentIn(a,Aa),e=d.x,d=d.y;w.get_instance().destroyEntity(a,!0);w.get_instance().eventManager.sendEvent("collectCoin",{count:c,x:e,y:d})},free:function(){O.prototype.free.call(this);this.heroCar=null;this.polygon1=[];this.polygon1=
  778. null;this.polygon2=[];this.polygon2=null},__class__:ue});var ve=function(){};g["systems.CrashSystem"]=ve;ve.__name__=["systems","CrashSystem"];ve.__super__=O;ve.prototype=t(O.prototype,{init:function(){O.prototype.init.call(this);w.get_instance().eventManager.addListener(this,"heroCrash");w.get_instance().eventManager.addListener(this,"throwCar");w.get_instance().eventManager.addListener(this,"throwBarier");this.addRequiredComponentClass(tc)},receiveEvent:function(a,b){R.get_instance().playSound("crash");
  779. "heroCrash"==a?this.heroCrash(b):"throwCar"==a&&this.throwCar(b)},heroCrash:function(a){w.get_instance().eventManager.sendEvent("stopHero");this.resetVelocity(a.target);this.resetVelocity(a.hero);this.changeGraphToCrash(a.target);this.changeGraphToCrash(a.hero);this.showSplash()},throwCar:function(a){Z.get_instance().saveStatistic("st_bringDownCars");a=a.entity;var b=w.get_instance().getComponentIn(a,Hb),c=-30;5<=D.randTo(1,10)&&(c=18);var d=new Bc(b.x,b.y),c=D.toRad(c);Math.cos(c);Math.sin(c);var e=
  780. d.x,f=d.y;d.x=e*Math.cos(c)-f*Math.sin(c);d.y=e*Math.sin(c)+f*Math.cos(c);d;c=1.4*Math.sqrt(d.x*d.x+d.y*d.y);e=Math.sqrt(d.x*d.x+d.y*d.y);0<e&&(d.x/=e,d.y/=e,d);d;d.x*=c;d.y*=c;d;d;b.x=d.x;b.y=d.y;b=w.get_instance().getComponent(tc,!0);b.progress=1;b.speed=.8;w.get_instance().addComponent(a,b);w.get_instance().saveEntity(a);a=w.get_instance().getComponentIn(a,Ba);b=x.configs.getCarConfig(a.type,a.id);d=a.graph.parent;c=a.graph.x;e=a.graph.y;a.graph.destroyToCache();f=K.get_instance().get("main");
  781. a.graph=C.create(f,b.c);a.graph.x=c;a.graph.y=e;d.addChild(a.graph)},resetVelocity:function(a){a=w.get_instance().getComponentIn(a,Hb);null!=a&&(a.x=0,a.y=0)},changeGraphToCrash:function(a){a=w.get_instance().getComponentIn(a,Ba);if(null!=a){a.lock=!0;var b=x.configs.getCarConfig(a.type,a.id),c=a.graph.parent,d=a.graph.x,e=a.graph.y;a.graph.destroyToCache();var f=K.get_instance().get("main");a.graph=C.create(f,b.c);a.graph.x=d;a.graph.y=e;c.addChild(a.graph)}},showSplash:function(){var a=x.scaleManager.stageWidth,
  782. b=x.scaleManager.stageHeight;this.splash=new A;this.splash.get_graphics().beginFill(16777215);this.splash.get_graphics().drawRect(0,0,a,b);this.splash.set_alpha(1);ra.instance.layersManager.getLayer("ui").addChild(this.splash);I.tween(this.splash,.2,{alpha:0},!1).ease(hb.get_easeNone()).delay(.05).onComplete(n(this,this.completeSplash))},completeSplash:function(){this.splash.parent.removeChild(this.splash);this.splash=null;this.timer=qb.delay(n(this,this.showResult),2E3)},showResult:function(){ta.get_instance().postNotify("showResult")},
  783. process:function(a,b){var c=w.get_instance().getComponentIn(a,tc);c.progress-=c.speed*b;var d=w.get_instance().getComponentIn(a,Ba);d.graph.alpha=c.progress;d.shadow.alpha=c.progress;null!=d.wheel1&&(d.wheel1.alpha=c.progress);null!=d.wheel2&&(d.wheel2.alpha=c.progress);0>=c.progress&&w.get_instance().destroyEntity(a,!0)},free:function(){O.prototype.free.call(this);this.splash=null;null!=this.timer&&(this.timer.stop(),this.timer=null)},__class__:ve});var te=function(){};g["systems.EnvironmentGenerator"]=
  784. te;te.__name__=["systems","EnvironmentGenerator"];te.__super__=O;te.prototype=t(O.prototype,{init:function(){O.prototype.init.call(this);this.timeout=2.5;this.counter=0;this.lastDownIndex=this.lastUpIndex=-1;this.theme=1;this.themesCount=x.configs.getCountBg();this.themeCounter=S.instance.delayChangeTheme+S.instance.changeThemeTime;this.themeTimeout=18;this.endTheme=!1},activate:function(){this.createEnvironment(1,!0);this.createEnvironment(2,!0);this.createEnvironment(1);this.createEnvironment(2)},
  785. update:function(a){0!=S.instance.move&&this.updateCounter(a)},updateCounter:function(a){this.themeCounter+=a;this.themeCounter>=this.themeTimeout&&(this.themeCounter=0,this.endTheme=!0);this.counter+=a;this.counter>=this.timeout&&(this.counter=0,this.createEnvironment(1),this.createEnvironment(2))},createEnvironment:function(a,b){null==b&&(b=!1);var c=w.get_instance().createEntity(),d=w.get_instance().getComponent(Aa,!0);d.x=1764;d.y=-297;1==b&&(d.x=797,d.y=-14);w.get_instance().addComponent(c,d);
  786. var e=w.get_instance().getComponent(Hb,!0);e.x=S.instance.groundSpeedVec.x;e.y=S.instance.groundSpeedVec.y;w.get_instance().addComponent(c,e);e=w.get_instance().getComponent(rb,!0);e.graph=null;var f,g;1==a?(f="bgUp",g=this.lastUpIndex):(f="bgDown",g=this.lastDownIndex);f=K.get_instance().get(f);var h=new Sb(f);h.x=d.x;h.y=d.y;f.addChild(h);e.group=h;1==a?this.lastUpIndex=d=1==this.endTheme?x.configs.getRandomBgConfigIndex(this.theme,a,g,!0):x.configs.getRandomBgConfigIndex(this.theme,a,g):this.lastDownIndex=
  787. d=x.configs.getRandomBgConfigIndex(this.theme,a,g);d=x.configs.getBgConfig(this.theme,a,d);this.createItems(a,f,h,d);w.get_instance().addComponent(c,e);w.get_instance().saveEntity(c);1==this.endTheme&&(this.endTheme=!1,this.changeTheme())},createItems:function(a,b,c,d){var e=d.length;a=1==a?{x:-611,y:184}:{x:-277,y:889};for(var f=0;f<e;){var g=f++;this.createItem(b,c,a,d[g])}},createItem:function(a,b,c,d){var e=d.n,f=z.parseFloat(d.x);d=z.parseFloat(d.y);a=C.create(a,e);a.x=c.x+f;a.y=c.y+d;b.addChild(a)},
  788. changeTheme:function(){this.theme++;this.theme>this.themesCount&&(this.theme=1);this.lastDownIndex=this.lastUpIndex=-1;S.instance.changeTheme(this.theme)},__class__:te});var we=function(){};g["systems.GameSpeedSystem"]=we;we.__name__=["systems","GameSpeedSystem"];we.__super__=O;we.prototype=t(O.prototype,{init:function(){O.prototype.init.call(this);this.speed=1.027;this.timeout=4.4;this.counter=0},update:function(a){1!=S.instance.boostSpeed&&this.updateCounter(a)},updateCounter:function(a){this.counter+=
  789. a;this.counter>=this.timeout&&(this.counter=0,this.speedUpGame())},speedUpGame:function(){ra.instance.timeMultiplier*=this.speed},__class__:we});var me=function(){};g["systems.HeroSystem"]=me;me.__name__=["systems","HeroSystem"];me.__super__=O;me.prototype=t(O.prototype,{init:function(){O.prototype.init.call(this);this.nextCommand=null;this.timeSwap2=this.timeSwap=.1;this.swapTimer=new kc(1E3*(this.timeSwap+this.timeSwap2),1);this.swapTimer.addEventListener(Fa.TIMER,n(this,this.completeSwapTimer));
  790. this.active=!0;this.jumpHeight=90;this.swapHeight=25;this.cleanBoostSpawner=!1;this.addRequiredComponentClass(bc);w.get_instance().eventManager.addListener(this,"stopHero");w.get_instance().eventManager.addListener(this,"udpateBoost")},addEntity:function(a){O.prototype.addEntity.call(this,a);this.heroEntitty=a;this.hero=w.get_instance().getComponentIn(a,bc);this.car=w.get_instance().getComponentIn(a,Ba);this.input=w.get_instance().getComponentIn(a,sc);this.roadItem=w.get_instance().getComponentIn(a,
  791. Ca);this.position=w.get_instance().getComponentIn(a,Aa)},completeSwapTimer:function(a){this.completeSwap()},receiveEvent:function(a,b){"stopHero"==a?this.stopCar():this.udpateBoost()},stopCar:function(){this.active=!1;0!=this.hero.state&&(this.reset(),1==this.hero.state?this.throwJump():this.throwSwap());this.showSteam()},showSteam:function(){var a=x.configs.getCarConfig("hero",this.car.id),b=1.2*a.r[3].x,c=a.r[1].y-20,d=a.r[2].x,a=a.r[2].y;this.steamSpawner=new yc("main","crash_anim",27);this.steamSpawner.minTimeout=
  792. .3;this.steamSpawner.maxTimeout=.6;this.steamSpawner.minX=b;this.steamSpawner.minY=c;this.steamSpawner.maxX=d;this.steamSpawner.maxY=a;this.steamSpawner.set_x(this.position.x);this.steamSpawner.set_y(this.position.y);this.steamSpawner.start()},udpateBoost:function(){1==S.instance.boostSpeed?this.showBoostAnim():this.hideBoostAnim()},showBoostAnim:function(){var a=x.configs.getCarConfig("hero",this.car.id),b=a.r[0].x,c=a.r[1].y-10,d=a.r[1].x-20,a=a.r[3].y+5;null==this.boostSpawner&&(this.boostSpawner=
  793. new yc("main","speed_up_anim",27),this.boostSpawner.minTimeout=.5,this.boostSpawner.maxTimeout=.25,this.boostSpawner.minX=b,this.boostSpawner.minY=c,this.boostSpawner.maxX=d,this.boostSpawner.maxY=a);this.boostSpawner.set_x(this.position.x);this.boostSpawner.set_y(this.position.y);this.boostSpawner.start()},hideBoostAnim:function(){this.boostSpawner.stop()},reset:function(){this.nextCommand=null;this.car.lock=!0;this.swapTimer.reset();I.stop(this.car.graph,null,!1,!1);I.stop(this.car.shadow,null,
  794. !1,!1);this.car.graph.set_rotation(0);this.car.shadow.set_scaleX(1);this.car.shadow.set_scaleY(1);null!=this.car.wheel1&&I.stop(this.car.wheel1,null,!1,!1);null!=this.car.wheel2&&I.stop(this.car.wheel2,null,!1,!1)},throwSwap:function(){this.position.x=this.car.graph.x-this.car.graphOffsetX;this.position.y=this.car.graph.y-this.car.graphOffsetY;w.get_instance().eventManager.sendEvent("drawCar",{entity:this.heroEntitty})},throwJump:function(){this.position.x=this.car.shadow.x-this.car.shadowOffsetX;
  795. this.position.y=this.car.shadow.y-this.car.shadowOffsetY;w.get_instance().eventManager.sendEvent("drawCar",{entity:this.heroEntitty})},process:function(a,b){null!=this.steamSpawner&&this.steamSpawner.update(b);null!=this.boostSpawner&&(this.boostSpawner.set_x(this.position.x),this.boostSpawner.set_y(this.position.y),this.boostSpawner.update(b));1==this.cleanBoostSpawner&&(this.cleanBoostSpawner=!1,this.boostSpawner.update(0));0!=this.active&&(1==this.input.tap&&this.jump(),1==this.input.swapUp&&this.swapUp(),
  796. 1==this.input.swapDown&&this.swapDown())},jump:function(){2==this.hero.state&&null==this.nextCommand&&(this.nextCommand={type:1,dir:0});0==this.hero.state&&(this.hero.state=1,R.get_instance().playSound("jump"),this.car.lock=!0,I.tween(this.car.graph,.45,{y:this.car.graph.y-this.jumpHeight,rotation:D.toRad(-10)}).ease(lc.get_easeOut()).onComplete(n(this,this.completeJumpIn)).onUpdate(n(this,this.updatePosition)),I.tween(this.car.shadow,.45,{scaleX:.8,scaleY:.8}).ease(lc.get_easeOut()))},completeJumpIn:function(){I.tween(this.car.graph,
  797. .3,{y:this.car.graph.y+this.jumpHeight}).ease(Qa.get_easeIn()).onComplete(n(this,this.completeJumpOut)).onUpdate(n(this,this.updatePosition));I.tween(this.car.graph,.2,{rotation:D.toRad(0)}).ease(Qa.get_easeOut());I.tween(this.car.shadow,.3,{scaleX:1,scaleY:1}).ease(Qa.get_easeIn())},completeJumpOut:function(){this.car.lock=!1;this.hero.state=0},updatePosition:function(){this.position.x=this.car.graph.x-this.car.graphOffsetX;this.position.y=this.car.graph.y-this.car.graphOffsetY;var a,b={x:this.car.graph.x,
  798. y:this.car.graph.y};null!=this.car.wheel1&&(a={x:this.position.x+this.car.wheel1X,y:this.position.y+this.car.wheel1Y},a=D.rotatePointByAngle(a,b,this.car.graph.get_rotation()),this.car.wheel1.x=a.x,this.car.wheel1.y=a.y,this.car.wheel1.set_rotation(this.car.graph.get_rotation()));null!=this.car.wheel2&&(a={x:this.position.x+this.car.wheel2X,y:this.position.y+this.car.wheel2Y},a=D.rotatePointByAngle(a,b,this.car.graph.get_rotation()),this.car.wheel2.x=a.x,this.car.wheel2.y=a.y,this.car.wheel2.set_rotation(this.car.graph.get_rotation()))},
  799. swapUp:function(){2==this.hero.state?1!=this.roadItem.road&&null==this.nextCommand&&(this.nextCommand={type:2,dir:1}):1!=this.roadItem.road&&(this.roadItem.road--,this.hero.state=2,this.startSwap(1))},startSwap:function(a){R.get_instance().playSound("swap");this.car.lock=!0;I.stop(this.car.graph,null,!1,!1);I.tween(this.car.graph,.2,{rotation:D.toRad(0)}).ease(Qa.get_easeOut());a=S.instance.getPosYByRoadForHero(this.roadItem.road);var b=a+this.car.graphOffsetY;I.tween(this.car.graph,this.timeSwap,
  800. {y:b-this.swapHeight}).ease(Qa.get_easeOut()).onUpdate(n(this,this.updatePosition));I.tween(this.car.graph,this.timeSwap2,{y:b},!1).ease(Qa.get_easeOut()).delay(this.timeSwap).onUpdate(n(this,this.updatePosition));I.tween(this.car.shadow,this.timeSwap,{scaleX:.83,scaleY:.83,y:a+this.car.shadowOffsetY}).ease(Qa.get_easeOut());I.tween(this.car.shadow,this.timeSwap2,{scaleX:1,scaleY:1},!1).ease(Qa.get_easeOut()).delay(this.timeSwap);this.swapTimer.reset();this.swapTimer.start()},completeSwap:function(){this.car.lock=
  801. !1;this.hero.state=0;this.changeRoadLine();null!=this.nextCommand&&(2==this.nextCommand.type?1==this.nextCommand.dir?this.swapUp():this.swapDown():this.jump(),this.nextCommand=null)},changeRoadLine:function(){var a="road"+this.roadItem.road,a=K.get_instance().getGroup(a,"main");this.car.shadow.parent.removeChild(this.car.shadow);this.car.graph.parent.removeChild(this.car.graph);null!=this.car.wheel1&&this.car.wheel1.parent.removeChild(this.car.wheel1);null!=this.car.wheel2&&this.car.wheel2.parent.removeChild(this.car.wheel2);
  802. a.addChildAt(this.car.shadow,null!=a.children?a.children.length:0);null!=this.car.wheel1&&a.addChildAt(this.car.wheel1,null!=a.children?a.children.length:0);null!=this.car.wheel2&&a.addChildAt(this.car.wheel2,null!=a.children?a.children.length:0);a.addChildAt(this.car.graph,null!=a.children?a.children.length:0)},swapDown:function(){2==this.hero.state?3!=this.roadItem.road&&null==this.nextCommand&&(this.nextCommand={type:2,dir:2}):3!=this.roadItem.road&&(this.roadItem.road++,this.hero.state=2,this.startSwap(2))},
  803. free:function(){O.prototype.free.call(this);null!=this.steamSpawner&&(this.steamSpawner.free(),this.steamSpawner=null);null!=this.boostSpawner&&(this.boostSpawner.free(),this.boostSpawner=null);this.position=this.roadItem=this.input=this.car=this.hero=this.nextCommand=null;this.swapTimer.reset();this.swapTimer=null},__class__:me});var ne=function(){};g["systems.InputSystem"]=ne;ne.__name__=["systems","InputSystem"];ne.__super__=O;ne.prototype=t(O.prototype,{init:function(){O.prototype.init.call(this);
  804. this.addRequiredComponentClass(sc);this.touchActive=!1;this.startPoint={x:0,y:0};this.endPoint={x:0,y:0};this.swapDist=25/x.scaleManager.stageScale;this.swapDownNow=this.swapUpNow=this.tapNow=!1;this.addControls()},addControls:function(){B.current.stage.addEventListener(y.MOUSE_DOWN,n(this,this.onMouseDown));B.current.stage.addEventListener(y.MOUSE_UP,n(this,this.onMouseUp));B.current.stage.addEventListener(kb.KEY_DOWN,n(this,this.onKeyUp))},delControls:function(){B.current.stage.removeEventListener(y.MOUSE_DOWN,
  805. n(this,this.onMouseDown));B.current.stage.removeEventListener(y.MOUSE_UP,n(this,this.onMouseUp));B.current.stage.removeEventListener(kb.KEY_DOWN,n(this,this.onKeyUp))},onKeyUp:function(a){this.resetInput();switch(a.keyCode){case 32:this.tapNow=!0;break;case 38:case 104:this.swapUpNow=!0;break;case 40:case 98:this.swapDownNow=!0}},resetInput:function(){this.swapDownNow=this.swapUpNow=this.tapNow=!1},onMouseDown:function(a){1!=v.__instanceof(a.target.parent,Ka)&&(this.touchActive=!0,this.startPoint.x=
  806. B.current.stage.get_mouseX(),this.startPoint.y=B.current.stage.get_mouseY())},onMouseUp:function(a){0!=this.touchActive&&(this.touchActive=!1,this.resetInput(),this.endPoint.x=B.current.stage.get_mouseX(),this.endPoint.y=B.current.stage.get_mouseY(),this.distY=this.startPoint.y-this.endPoint.y,this.distY/=x.scaleManager.stageScale,Math.abs(this.distY)>=this.swapDist?0<this.distY?this.swapUpNow=!0:this.swapDownNow=!0:this.tapNow=!0)},process:function(a,b){var c=w.get_instance().getComponentIn(a,sc);
  807. c.tap=this.tapNow;c.swapUp=this.swapUpNow;c.swapDown=this.swapDownNow},afterUpdate:function(){this.swapDownNow=this.swapUpNow=this.tapNow=!1},free:function(){O.prototype.free.call(this);this.delControls();this.endPoint=this.startPoint=null},__class__:ne});var oe=function(){};g["systems.MoveSystem"]=oe;oe.__name__=["systems","MoveSystem"];oe.__super__=O;oe.prototype=t(O.prototype,{init:function(){O.prototype.init.call(this);this.addRequiredComponentClass(Aa);this.addRequiredComponentClass(Hb)},process:function(a,
  808. b){if(0!=S.instance.move||null!=w.get_instance().getComponentIn(a,Ba)){var c=w.get_instance().getComponentIn(a,Aa),d=w.get_instance().getComponentIn(a,Hb),e=d.x*b,d=d.y*b;1==S.instance.move?(e*=-1,d*=-1):null!=w.get_instance().getComponentIn(a,tc)&&(e*=-1,d*=-1);c.x+=e;c.y+=d;-250>c.x&&w.get_instance().destroyEntity(a,!0)}},__class__:oe});var pe=function(){};g["systems.RoadLineGenerator"]=pe;pe.__name__=["systems","RoadLineGenerator"];pe.__super__=O;pe.prototype=t(O.prototype,{init:function(){O.prototype.init.call(this);
  809. this.counter=this.timeout=.6},activate:function(){this.createLine({x:1.05,y:618});this.createLine({x:249.05,y:546.85});this.createLine({x:499.05,y:475.35});this.createLine({x:748.05,y:403.85})},update:function(a){0!=S.instance.move&&this.updateCounter(a)},updateCounter:function(a){this.counter+=a;this.counter>=this.timeout&&(this.counter=0,this.createLine({x:997.05,y:332.3}))},createLine:function(a){var b=w.get_instance().createEntity(),c=w.get_instance().getComponent(Aa,!0);c.x=a.x;c.y=a.y;w.get_instance().addComponent(b,
  810. c);a=w.get_instance().getComponent(Hb,!0);a.x=S.instance.groundSpeedVec.x;a.y=S.instance.groundSpeedVec.y;w.get_instance().addComponent(b,a);a=w.get_instance().getComponent(rb,!0);var d=K.get_instance().get("main"),e=K.get_instance().getGroup("roadBg","main");a.graph=C.create(d,"roadBreak");a.graph.set_rotation(D.toRad(27));a.graph.x=c.x;a.graph.y=c.y;e.addChild(a.graph);a.group=null;w.get_instance().addComponent(b,a);w.get_instance().saveEntity(b)},__class__:pe});var ke=function(){};g["systems.TileRender"]=
  811. ke;ke.__name__=["systems","TileRender"];ke.__super__=O;ke.prototype=t(O.prototype,{init:function(){O.prototype.init.call(this);this.addRequiredComponentClass(rb);this.addRequiredComponentClass(Aa)},process:function(a,b){var c=w.get_instance().getComponentIn(a,rb),d=w.get_instance().getComponentIn(a,Aa);null!=c.graph?(c.graph.x=d.x,c.graph.y=d.y):(c.group.x=d.x,c.group.y=d.y)},__class__:ke});var Wc=function(){};g["tjson.TJSON"]=Wc;Wc.__name__=["tjson","TJSON"];Wc.parse=function(a,b,c){null==b&&(b=
  812. "JSON Data");return(new xf(a,b,c)).doParse()};var xf=function(a,b,c){null==b&&(b="JSON Data");this.json=a;this.fileName=b;this.currentLine=1;this.lastSymbolQuoted=!1;this.pos=0;this.floatRegex=new qa("^-?[0-9]*\\.[0-9]+$","");this.intRegex=new qa("^-?[0-9]+$","");this.strProcessor=null==c?n(this,this.defaultStringProcessor):c;this.cache=[]};g["tjson.TJSONParser"]=xf;xf.__name__=["tjson","TJSONParser"];xf.prototype={doParse:function(){try{var a=this.getNextSymbol();switch(a){case "{":return this.doObject();
  813. case "[":return this.doArray();default:return this.convertSymbolToProperType(a)}}catch(b){if(v.__instanceof(b,String))throw this.fileName+" on line "+this.currentLine+": "+b;throw b;}},doObject:function(){var a={},b="",c,d=!1;for(this.cache.push(a);this.pos<this.json.length;)if(c=this.getNextSymbol(),","!=c||this.lastSymbolQuoted){if("}"==c&&!this.lastSymbolQuoted)return d&&null!=a.TJ_unserialize&&a.TJ_unserialize(),a;b=this.getNextSymbol();if(":"!=b)throw"Expected ':' but got '"+b+"' instead.";b=
  814. this.getNextSymbol();if("_hxcls"==c){a=Q.resolveClass(b);if(null==a)throw"Invalid class name - "+b;a=Q.createEmptyInstance(a);this.cache.pop();this.cache.push(a);d=!0}else b="{"!=b||this.lastSymbolQuoted?"["!=b||this.lastSymbolQuoted?this.convertSymbolToProperType(b):this.doArray():this.doObject(),a[c]=b}throw"Unexpected end of file. Expected '}'";},doArray:function(){for(var a=[],b;this.pos<this.json.length;)if(b=this.getNextSymbol(),","!=b||this.lastSymbolQuoted){if("]"!=b||this.lastSymbolQuoted)b=
  815. "{"!=b||this.lastSymbolQuoted?"["!=b||this.lastSymbolQuoted?this.convertSymbolToProperType(b):this.doArray():this.doObject();else return a;a.push(b)}throw"Unexpected end of file. Expected ']'";},convertSymbolToProperType:function(a){return this.lastSymbolQuoted?W.startsWith(a,Wc.OBJECT_REFERENCE_PREFIX)?(a=z.parseInt(E.substr(a,Wc.OBJECT_REFERENCE_PREFIX.length,null)),this.cache[a]):a:this.looksLikeFloat(a)?z.parseFloat(a):this.looksLikeInt(a)?z.parseInt(a):"true"==a.toLowerCase()?!0:"false"==a.toLowerCase()?
  816. !1:"null"==a.toLowerCase()?null:a},looksLikeFloat:function(a){var b;if(!(b=this.floatRegex.match(a))){if(a=this.intRegex.match(a))a=this.intRegex.matched(0),a=45==E.cca(a,0)?"-2147483648"<a:"2147483647"<a;b=a}return b},looksLikeInt:function(a){return this.intRegex.match(a)},getNextSymbol:function(){this.lastSymbolQuoted=!1;for(var a="",b=!1,c="",d="",e=!1,f=!1,g=!1,h=!1;this.pos<this.json.length;)if(a=this.json.charAt(this.pos++),"\n"!=a||f||this.currentLine++,g){if("\n"==a||"\r"==a)g=!1,this.pos++}else if(h)"*"==
  817. a&&"/"==this.json.charAt(this.pos)&&(h=!1,this.pos++);else if(b){if(e){e=!1;if("'"==a||'"'==a){d+=a;continue}if("t"==a){d+="\t";continue}if("n"==a){d+="\n";continue}if("\\"==a){d+="\\";continue}if("r"==a){d+="\r";continue}if("/"==a){d+="/";continue}if("u"==a){for(var l=a=0;4>l;){l++;if(this.pos>=this.json.length)throw"Unfinished UTF8 character";var k;k=this.pos++;k=E.cca(this.json,k);a<<=4;if(48<=k&&57>=k)a+=k-48;else if(65<=k&&70>=k)a+=10+k-65;else if(97<=k&&102>=k)a+=10+k-95;else throw"Not a hex digit";
  818. }l=new Ie;l.__b+=String.fromCharCode(a);d+=l.__b;continue}throw"Invalid escape sequence '\\"+a+"'";}if("\\"==a)e=!0;else{if(a==c)return d;d+=a}}else{if("/"==a)if(l=this.json.charAt(this.pos),"/"==l){g=!0;this.pos++;continue}else if("*"==l){h=!0;this.pos++;continue}if(f){if(" "==a||"\n"==a||"\r"==a||"\t"==a||","==a||":"==a||"}"==a||"]"==a)return this.pos--,d;d+=a}else if(" "!=a&&"\t"!=a&&"\n"!=a&&"\r"!=a){if("{"==a||"}"==a||"["==a||"]"==a||","==a||":"==a)return a;"'"==a||'"'==a?(b=!0,c=a,this.lastSymbolQuoted=
  819. !0):(f=!0,d=a)}}if(b)throw"Unexpected end of data. Expected ( "+c+" )";return d},defaultStringProcessor:function(a){return a},__class__:xf};var X=function(){this.logoPos={x:0,y:0};this.moreGamesPos={x:0,y:0};this.moreGamesH=this.moreGamesW=0;this.canvasPos={x:0,y:0};this.canvasScale=0};g["tools.SpilHtml5Manager"]=X;X.__name__=["tools","SpilHtml5Manager"];X.__interfaces__=[Ef];X.__properties__={get_instance:"get_instance"};X._instance=null;X.instance=null;X.get_instance=function(){null==X._instance&&
  820. (X._instance=new X);return X._instance};X.prototype={init:function(a){this.loadApi(a)},loadApi:function(a){a={id:a};GameAPI.loadAPI(n(this,this.initHandler),a)},initHandler:function(a){this.gameApi=a;this.addLogo();this.addMoreGames()},addLogo:function(){var a=this.gameApi.Branding.getLogo();a.image&&(this.logo=document.createElement("img"),this.logo.style.position="absolute",this.logo.src=a.image,this.logo.addEventListener?(this.logo.addEventListener("click",a.action),this.logo.addEventListener("touchend",
  821. a.action),this.logo.addEventListener("click",this.logoHandler),this.logo.addEventListener("touchend",this.logoHandler)):this.logo.attachEvent&&(this.logo.attachEvent("click",a.action),this.logo.attachEvent("touchend",a.action),this.logo.attachEvent("click",this.logoHandler),this.logo.attachEvent("touchend",this.logoHandler)),document.getElementById("openfl-content").appendChild(this.logo));this.baseLogoHeight=this.logo.height;this.updateLogo()},updateLogo:function(){if(null!=this.logo){var a=this.canvasScale;
  822. 1.2<a&&(a=1.2);.3>a&&(a=.3);var a=this.baseLogoHeight*a,b=this.canvasPos.y+this.logoPos.y*this.canvasScale;this.logo.style.left=this.canvasPos.x+this.logoPos.x*this.canvasScale+"px";this.logo.style.top=b+"px";this.logo.style.height=a+"px"}},showLogo:function(a){null!=this.logo&&(this.logo.style.visibility=1==a?"visible":"hidden")},putLogo:function(a,b){this.logoPos.x=a;this.logoPos.y=b;this.updateLogo()},addMoreGames:function(){var a=this.gameApi.Branding.getLink("more_games");this.moreGames=document.createElement("a");
  823. this.moreGames.href="javascript:void(0);";this.moreGames.onclick=a.action;this.moreGames.ontouchend=a.action;this.moreGames.addEventListener?(this.moreGames.addEventListener("click",this.moreGamesHandler),this.moreGames.addEventListener("touchend",this.moreGamesHandler)):this.moreGames.attachEvent&&(this.moreGames.attachEvent("click",this.moreGamesHandler),this.moreGames.attachEvent("touchend",this.moreGamesHandler));this.moreGames.style.cursor="default";this.moreGames.style.position="absolute";this.moreGames.style.display=
  824. "block";this.moreGames.style.outline="0";this.moreGames.style.visibility="hidden";document.getElementById("openfl-content").appendChild(this.moreGames)},moreGamesHandler:function(a){Xa.get_instance().save("more_games")},logoHandler:function(a){Xa.get_instance().save("logo")},showMoreGames:function(a){null!=this.moreGames&&(this.moreGames.style.visibility=1==a?"visible":"hidden")},showMoreGamesOn:function(a,b,c,d){this.moreGamesPos.x=a;this.moreGamesPos.y=b;this.moreGamesW=c;this.moreGamesH=d;this.updateMoreGames();
  825. this.showMoreGames(!0)},updateMoreGames:function(){if(null!=this.moreGames){var a=this.canvasPos.y+this.moreGamesPos.y*this.canvasScale,b=this.moreGamesW*this.canvasScale,c=this.moreGamesH*this.canvasScale;this.moreGames.style.left=this.canvasPos.x+this.moreGamesPos.x*this.canvasScale+"px";this.moreGames.style.top=a+"px";this.moreGames.style.width=b+"px";this.moreGames.style.height=c+"px"}},resize:function(a,b,c){this.canvasPos.x=a;this.canvasPos.y=b;this.canvasScale=c;this.udpate()},udpate:function(){this.updateLogo();
  826. this.updateMoreGames()},gameBreak:function(a,b){null!=this.gameApi&&this.gameApi.GameBreak.request(a,b)},submitAward:function(a){null!=this.gameApi&&this.gameApi.Award.submit({award:a})},submitScore:function(a){null!=this.gameApi&&this.gameApi.Score.submit(a)},__class__:X};var Xa=function(){if(null!=Xa._instance)throw"Error: Allready inited. Use instance instead;";};g["tools.Statistics"]=Xa;Xa.__name__=["tools","Statistics"];Xa.__properties__={get_instance:"get_instance"};Xa._instance=null;Xa.instance=
  827. null;Xa.get_instance=function(){null==Xa._instance&&(Xa._instance=new Xa);return Xa._instance};Xa.prototype={init:function(a,b){null==b&&(b="none");Eb.get_instance().init(a,b)},save:function(a,b){null==b&&(b="");Eb.get_instance().sendEvent(a,b)},__class__:Xa};var wb=function(){};g["tweenx909.EaseX"]=wb;wb.__name__=["tweenx909","EaseX"];wb.linear=function(a){return a};wb.quintInOut=function(a){return 1>(a*=2)?.5*a*a*a*a*a:.5*(a-=2)*a*a*a*a+1};var gd=function(a,b){this.command=a;this.definedPosInfos=
  828. b};g["tweenx909.advanced.CommandX"]=gd;gd.__name__=["tweenx909","advanced","CommandX"];gd.prototype={__class__:gd};var ye=function(){};g["tweenx909.rule.BoolRuleX"]=ye;ye.__name__=["tweenx909","rule","BoolRuleX"];ye.calc=function(a,b,c,d,e){return 0<(a?1:0)*d+(b?1:0)*c};ye.defaultFrom=function(a,b,c){return a};var hc=function(){};g["tweenx909.rule.ArrayRuleX"]=hc;hc.__name__=["tweenx909","rule","ArrayRuleX"];hc.calc=function(a,b,c,d,e){a=db(a)();var f=[];for(b=db(b)();b.hasNext();){var g=b.next(),
  829. h=a.next();f.push(hc._calc(h,g,c,d,e))}return f};hc._calc=function(a,b,c,d,e){if("number"==typeof b)return a*d+b*c;for(var f=null,g=!1,h=db(l.get_rules())();h.hasNext();){var k=h.next();if(v.__instanceof(b,k.inputClass)){g=!0;f=k.calc(a,b,c,d,e);break}}if(!g)throw e.error("The tween rule for "+Q.getClassName(Q.getClass(b))+" is not defined");return f};hc.defaultFrom=function(a,b,c){if(null!=a)for(var d=[],e=db(b)();e.hasNext();)e.next(),d.push(null);else if(Yb.count(a)!=Yb.count(b))throw c.error("The array length must be same with start.");
  830. d=[];b=db(b)();for(a=db(a)();a.hasNext();){var e=a.next(),f=b.next();d.push(hc._defaultFrom(e,f,c))}return d};hc._defaultFrom=function(a,b,c){if("number"==typeof b)return a;for(var d=db(l.get_rules())();d.hasNext();){var e=d.next();if(v.__instanceof(b,e.inputClass))return e.defaultFrom(a,b,c)}throw c.error("The tween rule for "+Q.getClassName(Q.getClass(b))+" is not defined");};var xc=function(){};g["tweenx909.rule.TimelineX"]=xc;xc.__name__=["tweenx909","rule","TimelineX"];xc.calc=function(a,b,c,
  831. d,e){a=c*b.length;c=b.timeline;d=0;e=c.length;for(var f=e>>1;1<e-d;)a<c[f]?e=f:d=f,f=d+(e-d>>1);return b.data[d]};xc.defaultFrom=function(a,b,c){return null};xc.prototype={__class__:xc};var gb=function(a,b,c){this.r=a;this.g=b;this.b=c};g["tweenx909.rule.RgbX"]=gb;gb.__name__=["tweenx909","rule","RgbX"];gb.calc=function(a,b,c,d,e){e=255*(a.r*d+b.r*c)|0;0>e?e=0:255<e&&(e=255);var f=255*(a.g*d+b.g*c)|0;0>f?f=0:255<f&&(f=255);a=255*(a.b*d+b.b*c)|0;0>a?a=0:255<a&&(a=255);return e<<16|f<<8|a};gb.defaultFrom=
  832. function(a,b,c){return gb.of(a)};gb.of=function(a){return new gb((a>>16&255)/255,(a>>8&255)/255,(a&255)/255)};gb.prototype={__class__:gb};var Ob=function(a,b,c){this.h=a;this.s=b;this.v=c};g["tweenx909.rule.HsvX"]=Ob;Ob.__name__=["tweenx909","rule","HsvX"];Ob.calc=function(a,b,c,d,e){var f=a.h*d+b.h*c;e=a.s*d+b.s*c;a=a.v*d+b.v*c;f=6*(f-Math.floor(f));b=Math.floor(f);1<e&&(e=1);0>e&&(e=0);1<a&&(a=1);0>a&&(a=0);c=a*(1-e);var f=f-b,g=d=0,h=0;switch(b){case 0:d=a;g=a*(1-e*(1-f));h=c;break;case 1:d=a*
  833. (1-e*f);g=a;h=c;break;case 2:d=c;g=a;h=a*(1-e*(1-f));break;case 3:d=c;g=a*(1-e*f);h=a;break;case 4:d=a*(1-e*(1-f));g=c;h=a;break;case 5:d=a,g=c,h=a*(1-e*f)}return(255*d|0)<<16|(255*g|0)<<8|255*h|0};Ob.defaultFrom=function(a,b,c){return Ob.of(a)};Ob.of=function(a,b){null==b&&(b=0);var c=(a>>16&255)/255,d=(a>>8&255)/255,e=(a&255)/255,f;c<d?d<e?(f=e,d=(4+(c-d)/(c=f-c))/6):(f=d,d=(2+(e-c)/(c=f-(c<e?c:e)))/6):c<e?(f=e,d=(4+(c-d)/(c=f-d))/6):(f=c,d=(d-e)/(c=f-(d<e?d:e))/6);0>d&&(d+=1);return new Ob(d+b,
  834. c/f,f)};Ob.prototype={__class__:Ob};var Pb=function(a,b,c,d){this.a=a;this.r=b;this.g=c;this.b=d};g["tweenx909.rule.ArgbX"]=Pb;Pb.__name__=["tweenx909","rule","ArgbX"];Pb.calc=function(a,b,c,d,e){e=255*(a.a*d+b.a*c)|0;0>e?e=0:255<e&&(e=255);var f=255*(a.r*d+b.r*c)|0;0>f?f=0:255<f&&(f=255);var g=255*(a.g*d+b.g*c)|0;0>g?g=0:255<g&&(g=255);a=255*(a.b*d+b.b*c)|0;0>a?a=0:255<a&&(a=255);return e<<24|f<<16|g<<8|a};Pb.defaultFrom=function(a,b,c){return Pb.of(a)};Pb.of=function(a){return new Pb((a>>>24&255)/
  835. 255,(a>>16&255)/255,(a>>8&255)/255,(a&255)/255)};Pb.prototype={__class__:Pb};var Qb=function(a,b,c,d){this.a=a;this.h=b;this.s=c;this.v=d};g["tweenx909.rule.AhsvX"]=Qb;Qb.__name__=["tweenx909","rule","AhsvX"];Qb.calc=function(a,b,c,d,e){e=a.a*d+b.a*c;1<e&&(e=1);0>e&&(e=0);var f=a.h*d+b.h*c,g=a.s*d+b.s*c;a=a.v*d+b.v*c;f=6*(f-Math.floor(f));b=Math.floor(f);1<g&&(g=1);0>g&&(g=0);1<a&&(a=1);0>a&&(a=0);c=a*(1-g);var f=f-b,h=d=0,l=0;switch(b){case 0:d=a;h=a*(1-g*(1-f));l=c;break;case 1:d=a*(1-g*f);h=a;
  836. l=c;break;case 2:d=c;h=a;l=a*(1-g*(1-f));break;case 3:d=c;h=a*(1-g*f);l=a;break;case 4:d=a*(1-g*(1-f));h=c;l=a;break;case 5:d=a,h=c,l=a*(1-g*f)}return(255*e|0)<<24|(255*d|0)<<16|(255*h|0)<<8|255*l|0};Qb.defaultFrom=function(a,b,c){return Qb.of(a)};Qb.of=function(a,b){null==b&&(b=0);var c=(a>>16&255)/255,d=(a>>8&255)/255,e=(a&255)/255,f;c<d?d<e?(f=e,d=(4+(c-d)/(c=f-c))/6):(f=d,d=(2+(e-c)/(c=f-(c<e?c:e)))/6):c<e?(f=e,d=(4+(c-d)/(c=f-d))/6):(f=c,d=(d-e)/(c=f-(d<e?d:e))/6);0>d&&(d+=1);return new Qb((a>>>
  837. 24&255)/255,d+b,c/f,f)};Qb.prototype={__class__:Qb};var ic=function(a,b,c){this.value=a;this.scale=b;this.ease=null==c?n(this,this.none):c};g["tweenx909.rule.QuakeX"]=ic;ic.__name__=["tweenx909","rule","QuakeX"];ic.calc=function(a,b,c,d,e){e=.5>c?a.ease(2*c):b.ease(2*d);return a.value*d+b.value*c+e*(2*Math.random()-1)*(a.scale*d+b.scale*c)};ic.defaultFrom=function(a,b,c){return new ic(a,b.scale,b.ease)};ic.prototype={none:function(a){return 0>=a?0:1},__class__:ic};var hd=g["tweenx909.advanced.UpdateModeX"]=
  838. {__ename__:["tweenx909","advanced","UpdateModeX"],__constructs__:["MANUAL","TIME"]};hd.MANUAL=["MANUAL",0];hd.MANUAL.toString=q;hd.MANUAL.__enum__=hd;hd.TIME=function(a){a=["TIME",1,a];a.__enum__=hd;a.toString=q;return a};var l=function(a,b,c,d,e,f,g,h,k,m){this.timeScale=1;this._skip=null;this._currentTime=0;gd.call(this,yf.TWEEN(this),m);this._type=a;this._currentTime=0;switch(a[1]){case 0:this._easeIsDefault=!1;this._ease=null==c?wb.linear:c;break;default:(this._easeIsDefault=null==c)?this._ease=
  839. l.defaultEase:this._ease=c}(this._timeIsDefault=null==b)?this._time=l.defaultTime:this._time=b;(this._delayIsDefault=null==d)?this._delay=l.defaultDelay:this._delay=d;(this._intervalIsDefault=null==h)?this._interval=l.defaultInterval:this._interval=h;(this._repeatIsDefault=null==e)?this._repeat=l.defaultRepeat:this._repeat=e;(this._yoyoIsDefault=null==f)?this._yoyo=l.defaultYoyo:this._yoyo=f;(this._zigzagIsDefault=null==g)?this._zigzag=l.defaultZigZag:this._zigzag=g;(this._autoPlayIsDefault=null==
  840. k)?this._autoPlay=l.defaultAutoPlay:this._autoPlay=k;this._rest=0;this._eventListeners=[];this.id=l.idCounter++;l._addedTweens.push(this);l.managerInited||l.initManager()};g["tweenx909.TweenX"]=l;l.__name__=["tweenx909","TweenX"];l.__properties__={get_rules:"get_rules"};l.prevTime=null;l.get_rules=function(){return l._rules};l.dumpDefaults=function(){return(new zf).dump()};l.setDefaults=function(a){a.apply()};l.initManager=function(){l.managerInited=!0;l.stopUpdater();var a=l.updateMode;switch(a[1]){case 1:a=
  841. a[2],l.prevTime=(new Date).getTime(),l.setInterval(l.mainLoop,Math.round(1E3/a))}};l.mainLoop=function(){switch(l.updateMode[1]){case 1:l.manualUpdate(((new Date).getTime()-l.prevTime)/1E3);l.prevTime=(new Date).getTime();break;case 0:throw"invalid auto update";}};l.stopUpdater=function(){null!=l._timer&&(l._timer.stop(),l._timer=null)};l.manualUpdate=function(a){l.initTweens();for(var b=l._tweens.length,c=0;c<b;){var d=l._tweens[c++];d._update(a*d.timeScale*l.topLevelTimeScale);d.playing||(l._tweens.splice(--c,
  842. 1),b--)}l._resetLog()};l.initTweens=function(){for(var a=0,b=l._addedTweens;a<b.length;){var c=b[a];++a;c._init()}l._addedTweens.splice(0,l._addedTweens.length)};l.to=function(a,b,c,d,e,f,g,h,k,m,n){null==b&&(b={});return l.isIterable(a)?new jc(Rb.ARRAY(a,[{}],[b]),c,d,e,f,g,h,k,m,n):new jc(Rb.FROM_TO(a,{},b),c,d,e,f,g,h,k,m,n)};l._timer=null;l.setInterval=function(a,b){null!=l._timer&&l._timer.stop();l._timer=new qb(b);l._timer.run=a};l._resetLog=function(){l._initLog=[];l.dictionary=new Ma};l.field=
  843. function(a,b){var c;return null==a?null:a.__properties__&&(c=a.__properties__["get_"+b])?a[c]():a[b]};l.setField=function(a,b,c){var d;if(a.__properties__&&(d=a.__properties__["set_"+b]))a[d](c);else a[b]=c};l.isIterable=function(a){return null!=a&&(a instanceof Array&&null==a.__enum__||Object.prototype.hasOwnProperty.call(a,"iterator")&&r.isFunction(db(a))&&null!=db(a)())};l.__super__=gd;l.prototype=t(gd.prototype,{get_currentTime:function(){var a=this.get_totalTime(),b;b=this.backward?a-this._currentTime:
  844. this._currentTime;0>b&&(b=0);b>a&&(b=a);return b},get_singleTime:function(){return this._time+this._interval},get_totalTime:function(){return this._delay+this.get_singleTime()*this._repeat-this._interval+this._rest},error:function(a){var b=this.definedPosInfos;return a+"(Tween_"+this.id+" was generated at "+b.className+"/"+b.methodName+"() ["+b.fileName+":"+b.lineNumber+"])"},play:function(){if(null!=this._parent)throw this.error("Can't play serialized object directly");if(this.playing)return this;
  845. this._inited||this._init();this.playing=!0;l._tweens.push(this);this.dispatch(0);null!=this._onPlay&&this._onPlay();this.update(1.4901161415892264E-8);return this},_stop:function(){this.playing&&(this.playing=!1,this.dispatch(9),null!=this._onStop&&this._onStop())},update:function(a){if(null!=this._parent)throw this.error("Can't stop serialized object directly");this._update(a*this.timeScale*l.topLevelTimeScale);return this},_invert:function(){this._currentTime=this._totalTime-this._currentTime;0==
  846. this._repeat%2&&(this._odd=!this._odd);this._inverted=!this._inverted;var a=this._delay;this._delay=this._rest;this._rest=a},_init:function(){if(!this._inited){this._inited=!0;l._groupDefaults&&(this._easeIsDefault&&(this._ease=l.defaultEase),this._timeIsDefault&&(this._time=l.defaultTime),this._delayIsDefault&&(this._delay=l.defaultDelay),this._intervalIsDefault&&(this._interval=l.defaultInterval),this._repeatIsDefault&&(this._repeat=l.defaultRepeat),this._yoyoIsDefault&&(this._yoyo=l.defaultYoyo),
  847. this._zigzagIsDefault&&(this._zigzag=l.defaultZigZag),this._autoPlayIsDefault&&(this._autoPlay=l.defaultAutoPlay));0==this._repeat&&(this._repeat=2147483646);1.4901161415892264E-8>this._time&&(this._time=1.4901161415892264E-8);(new Date).getTime();this._fastMode=!0;var a=this._type;switch(a[1]){case 2:var b=a[4];this._initFromTo(a[2],a[3],b);this._toKeys=r.fields(b);break;case 1:for(var b=a[4],c=a[3],d=0,a=db(a[2])();a.hasNext();){var e=a.next(),f=b[d];this._initFromTo(e,c[d],f);0==d&&(this._toKeys=
  848. r.fields(f));d++}break;case 0:this.initGroup(a[2])}this._singleTime=this.get_singleTime();this._totalTime=this.get_totalTime();this._autoPlay&&this.play()}},_initFromTo:function(a,b,c){throw this.error("must be standard tween.");},_update:function(a){this._inited||this._init();if(0!=a){this.backward&&(a=-a);0>a&&(this._invert(),this.backward=!this.backward,a=-a);var b=this._currentTime,c=this.get_singleTime(),d=this._totalTime,e=this._time,f=this._delay,g=d-this._rest,h=1.4901161415892264E-8>b-f,
  849. l=!h&&1.4901161415892264E-8>g-b,k=b-f,m=Math.floor(k/c),n=k-m*c,q=1.4901161415892264E-8>e-n;this._currentTime=b+=a;n+=a;k+=a;if(1.4901161415892264E-8>b-f)this.dispatch(1),null!=this._onDelay&&this._onDelay();else if(h&&(this._apply(0,0),this.dispatch(2),null!=this._onHead&&this._onHead(),this.dispatch(3),null!=this._onUpdate&&this._onUpdate()),1.4901161415892264E-8>g-b)l||(q&&(this.dispatch(6),null!=this._onRepeat&&this._onRepeat(),this._apply(0,m),this.dispatch(2),null!=this._onHead&&this._onHead(),
  850. this.dispatch(3),null!=this._onUpdate&&this._onUpdate()),this._apply(this._time,this._repeat-1),this.dispatch(3),null!=this._onUpdate&&this._onUpdate(),this.dispatch(4),null!=this._onFoot&&this._onFoot()),1.4901161415892264E-8>d-b?(this._currentTime=this._totalTime,this.dispatch(8),null!=this._onFinish&&this._onFinish(),this._stop()):(this.dispatch(7),null!=this._onRest&&this._onRest());else{if(1.4901161415892264E-8>e-n){!q&&0<=m&&(this._apply(this._time,m),this.dispatch(3),null!=this._onUpdate&&
  851. this._onUpdate(),this.dispatch(4),null!=this._onFoot&&this._onFoot());if(n<c){this.dispatch(5);null!=this._onInterval&&this._onInterval();return}0<=m&&(this.dispatch(6),null!=this._onRepeat&&this._onRepeat(),this._apply(0,m),this.dispatch(2),null!=this._onHead&&this._onHead(),this.dispatch(3),null!=this._onUpdate&&this._onUpdate());m=k/c|0;n=k-m*c;if(1.4901161415892264E-8>e-n){this._apply(this._time,m);this.dispatch(3);null!=this._onUpdate&&this._onUpdate();this.dispatch(4);null!=this._onFoot&&this._onFoot();
  852. this.dispatch(5);null!=this._onInterval&&this._onInterval();return}}else q&&(this.dispatch(6),null!=this._onRepeat&&this._onRepeat(),this._apply(0,m),this.dispatch(2),null!=this._onHead&&this._onHead(),this.dispatch(3),null!=this._onUpdate&&this._onUpdate());this._apply(n,m);this.dispatch(3);null!=this._onUpdate&&this._onUpdate()}}},_apply:function(a,b){var c=this._getPosition(a,1==b%2),d=this._type;switch(d[1]){case 2:var e=d[4],f=d[3],g=d[2],h=1-c;if(this._fastMode)for(var d=0,k=this._toKeys;d<
  853. k.length;){var m=k[d];++d;l.setField(g,m,this._fastCalc(l.field(f,m),l.field(e,m),c,h))}else for(d=0,k=this._toKeys;d<k.length;)m=k[d],++d,l.setField(g,m,this._calc(l.field(f,m),l.field(e,m),c,h));break;case 1:e=d[4];f=d[3];g=1-c;h=0;for(d=db(d[2])();d.hasNext();)for(var k=d.next(),m=e[h],n=f[h++],q=0,r=this._toKeys;q<r.length;){var t=r[q];++q;l.setField(k,t,this._calc(l.field(n,t),l.field(m,t),c,g))}break;case 3:e=d[4];f=d[3];g=d[2];h=1-c;d=[];k=0;for(m=e.length;k<m;)n=k++,d[n]=this._calc(f[n],e[n],
  854. c,h);g.apply(null,d);break;case 0:e=d[2];f=e.tweens;c=1.00000001*(this._time*c-e.current);if(0>c)for(g=1-f.length;1>g;)h=g++,f[-h]._update(c);else for(g=0,h=f.length;g<h;)d=g++,f[d]._update(c);e.current=e.tweens[0].get_currentTime();break;case 4:e=d[2],1==c&&e()}},_fastCalc:function(a,b,c,d){return a*d+b*c},_calc:function(a,b,c,d){if("number"==typeof b)return a*d+b*c;for(var e=0,f=l._rules.length,g,h=null,k=!1;e<f;)if(v.__instanceof(b,(g=l._rules[e++]).inputClass)){k=!0;h=g.calc(a,b,c,d,this);break}if(!k)throw this.error("The tween rule for "+
  855. Q.getClassName(Q.getClass(b))+" is not defined");return h},time:function(a){if(0>a)throw this.error("Can't be negative value");this.checkInited();this._timeIsDefault=!1;this._time=a;return this},ease:function(a){this.checkInited();this._easeIsDefault=!1;this._ease=a;return this},delay:function(a){if(0>a)throw this.error("Can't be negative value");this.checkInited();this._delayIsDefault=!1;this._delay=a;return this},onFinish:function(a){this._onFinish=a;return this},_getPosition:function(a,b){var c=
  856. a/this._time;this._odd&&(b=!b);this._inverted&&(c=1-c);b?(this._yoyo&&(c=1-c),c=this._ease(c),this._zigzag&&(c=1-c)):c=this._ease(c);return c},checkInited:function(){if(this._inited)throw this.error("Can't change params after initialization");},dispatch:function(a){a=this._eventListeners[a];if(null!=a)for(var b=0;b<a.length;){var c=a[b];++b;c(this)}},initGroup:function(a){var b=null,c=!1;null!=a.defaults&&(b=l.dumpDefaults(),c=l._groupDefaults,l._groupDefaults=!0,l.setDefaults(a.defaults),l.defaultAutoPlay=
  857. !1);var d=0,e=0,f=[],g=a.type;switch(g[1]){case 0:for(g=db(a.source)();g.hasNext();){var h=g.next();if(null!=h)switch(h=h.command,h[1]){case 1:d+=h[2];break;case 0:h=h[2];f.push(h);h._autoPlay=!1;l._groupDefaults&&h._delayIsDefault&&(h._delay=l.defaultDelay);h._init();h._delay+=d;h._totalTime+=d;var k=h._totalTime,d=null!=h._skip?d+h._skip:k;e<k&&(e=k)}}break;case 1:for(g=g[2],h=db(a.source)();h.hasNext();)if(k=h.next(),null!=k)switch(k=k.command,k[1]){case 1:d+=k[2];break;case 0:k=k[2];f.push(k);
  858. k._init();k._delay+=d;k._totalTime+=d;var m=k._totalTime,d=null!=k._skip?d+k._skip:d+g;e<m&&(e=m)}}for(d=0;d<f.length;)g=f[d],++d,h=e-g._totalTime,g._rest+=h,g._totalTime+=h;this._time=e;a.tweens=f;a.source=null;null!=a.defaults&&(l._groupDefaults=c,l.setDefaults(b))},__class__:l,__properties__:{get_totalTime:"get_totalTime",get_singleTime:"get_singleTime",get_currentTime:"get_currentTime"}});var yf=g["tweenx909.advanced.CommandTypeX"]={__ename__:["tweenx909","advanced","CommandTypeX"],__constructs__:["TWEEN",
  859. "WAIT"]};yf.TWEEN=function(a){a=["TWEEN",0,a];a.__enum__=yf;a.toString=q;return a};yf.WAIT=function(a){a=["WAIT",1,a];a.__enum__=yf;a.toString=q;return a};var zf=function(){this._autoPlay=!0;this._yoyo=this._zigzag=!1;this._repeat=1;this._delay=this._interval=0;this._time=.3;this._ease=l.DEFAULT_EASE};g["tweenx909.advanced.DefaultsX"]=zf;zf.__name__=["tweenx909","advanced","DefaultsX"];zf.prototype={dump:function(){this._time=l.defaultTime;this._ease=l.defaultEase;this._delay=l.defaultDelay;this._interval=
  860. l.defaultInterval;this._repeat=l.defaultRepeat;this._yoyo=l.defaultYoyo;this._zigzag=l.defaultZigZag;this._autoPlay=l.defaultAutoPlay;return this},apply:function(){l.defaultTime=this._time;l.defaultEase=this._ease;l.defaultDelay=this._delay;l.defaultInterval=this._interval;l.defaultRepeat=this._repeat;l.defaultYoyo=this._yoyo;l.defaultZigZag=this._zigzag;l.defaultAutoPlay=this._autoPlay},__class__:zf};var Mf=function(){this.current=0};g["tweenx909.advanced.GroupX"]=Mf;Mf.__name__=["tweenx909","advanced",
  861. "GroupX"];Mf.prototype={__class__:Mf};var ze=g["tweenx909.advanced._GroupX.GroupTypeX"]={__ename__:["tweenx909","advanced","_GroupX","GroupTypeX"],__constructs__:["SERIAL","LAG"]};ze.SERIAL=["SERIAL",0];ze.SERIAL.toString=q;ze.SERIAL.__enum__=ze;ze.LAG=function(a){a=["LAG",1,a];a.__enum__=ze;a.toString=q;return a};var jc=function(a,b,c,d,e,f,g,h,k,m){this._autoFrom=!0;switch(a[1]){case 1:for(var n=a[4],q=a[3],r=a[2],t=q.pop(),u=n.pop(),r=db(r)();r.hasNext();)r.next(),n.push(jc.clone(u)),q.push(jc.clone(t))}l.call(this,
  862. a,b,c,d,e,f,g,h,k,m)};g["tweenx909.advanced.StandardTweenX"]=jc;jc.__name__=["tweenx909","advanced","StandardTweenX"];jc.clone=function(a){for(var b={},c=0,d=r.fields(a);c<d.length;){var e=d[c];++c;r.setProperty(b,e,r.getProperty(a,e))}return b};jc.__super__=l;jc.prototype=t(l.prototype,{_initFromTo:function(a,b,c){null==this._autoFrom&&(this._autoFrom=l.defaultAutoFrom);this._initFrom(a,b,c);for(var d={},e=r.fields(b),f=0;f<e.length;){var g=e[f];++f;Object.prototype.hasOwnProperty.call(c,g)||l.setField(c,
  863. g,l.field(b,g));var h=this._getPosition(this._time,0==this._repeat%2);l.setField(d,g,this._calc(l.field(b,g),l.field(c,g),h,1-h))}null!=l.dictionary.get(a)?b=l.dictionary.get(a):(l._objCounter=1+l._objCounter%33029,l.dictionary.set(a,l._objCounter),b=l._objCounter);if(null==l._initLog[b])l._initLog[b]=[{target:a,data:d}];else{e=!1;f=0;for(g=l._initLog[b];f<g.length;)if(c=g[f],++f,c.target==a){e=0;for(f=r.fields(d);e<f.length;)g=f[e],++e,l.setField(c.data,g,l.field(d,g));e=!0;break}e||l._initLog[b].push({target:a,
  864. data:d})}},_initFrom:function(a,b,c){for(var d=null,e=0,f=r.fields(c);e<f.length;){var g=f[e];++e;"number"!=typeof l.field(c,g)&&(this._fastMode=!1);var h="$$$$"==E.substr(g,0,4),k;k=h?E.substr(g,4,null):g;var m,n=l.field(c,g);if(Object.prototype.hasOwnProperty.call(b,k))m=l.field(b,k);else{if(this._autoFrom){if(null==d){d={};m=l._initLog;var q;null!=l.dictionary.get(a)?q=l.dictionary.get(a):(q=void 0,l._objCounter=1+l._objCounter%33029,l.dictionary.set(a,l._objCounter),q=l._objCounter);m=m[q];if(null!=
  865. m)for(q=0;q<m.length;){var t=m[q];++q;t.target==a&&(d=t.data)}}m=Object.prototype.hasOwnProperty.call(d,k)?this._defaultFrom(l.field(d,k),n):this._defaultFrom(l.field(a,k),n)}else m=this._defaultFrom(l.field(a,k),n);l.setField(b,k,m)}h&&(l.setField(c,k,n+m),r.deleteField(c,g))}},_defaultFrom:function(a,b){if("number"==typeof b)return a;for(var c=0,d=l._rules;c<d.length;){var e=d[c];++c;if(v.__instanceof(b,e.inputClass))return e.defaultFrom(a,b,this)}throw this.error("The tween rule for "+Q.getClassName(Q.getClass(b))+
  866. " is not defined");},play:function(){l.prototype.play.call(this);return this},update:function(a){l.prototype.update.call(this,a);return this},onFinish:function(a){l.prototype.onFinish.call(this,a);return this},time:function(a){l.prototype.time.call(this,a);return this},ease:function(a){l.prototype.ease.call(this,a);return this},delay:function(a){l.prototype.delay.call(this,a);return this},__class__:jc});var Rb=g["tweenx909.advanced.TweenTypeX"]={__ename__:["tweenx909","advanced","TweenTypeX"],__constructs__:["GROUP",
  867. "ARRAY","FROM_TO","FUNC","CALL"]};Rb.GROUP=function(a){a=["GROUP",0,a];a.__enum__=Rb;a.toString=q;return a};Rb.ARRAY=function(a,b,c){a=["ARRAY",1,a,b,c];a.__enum__=Rb;a.toString=q;return a};Rb.FROM_TO=function(a,b,c){a=["FROM_TO",2,a,b,c];a.__enum__=Rb;a.toString=q;return a};Rb.FUNC=function(a,b,c){a=["FUNC",3,a,b,c];a.__enum__=Rb;a.toString=q;return a};Rb.CALL=function(a){a=["CALL",4,a];a.__enum__=Rb;a.toString=q;return a};var ha=function(){rc.call(this)};g["ui.Label"]=ha;ha.__name__=["ui","Label"];
  868. ha.__super__=rc;ha.prototype=t(rc.prototype,{init:function(){rc.prototype.init.call(this);this.set_font("assets/fonts/tw_cen_mt_b.ttf");this.set_size(18);this.set_color(16121855)},__class__:ha});var id=function(a){wa.call(this,a)};g["ui.ValueButton"]=id;id.__name__=["ui","ValueButton"];id.__super__=wa;id.prototype=t(wa.prototype,{__class__:id});var je=function(a){wa.call(this,a)};g["ui.ShopButton"]=je;je.__name__=["ui","ShopButton"];je.__super__=id;je.prototype=t(id.prototype,{__class__:je});var xe=
  869. function(){var a=K.get_instance().get("ui");this.graphOn=C.create(a,"btn_sound_on");a.addChild(this.graphOn);wa.call(this,this.graphOn);this.graphOff=C.create(a,"btn_sound_off");a.addChild(this.graphOff);this.graphOff.visible=!1;this.add(this.graphOff);this.setHitCirc(0,0,34);this.active=!0;this.addEventListener("b_complete",n(this,this.toggleState));1==R.get_instance().isMuted()&&this.setDisable()};g["ui.TileSoundButton"]=xe;xe.__name__=["ui","TileSoundButton"];xe.__super__=wa;xe.prototype=t(wa.prototype,
  870. {toggleState:function(a){1==this.active?this.setDisable():this.setEnable()},setEnable:function(){this.active=!0;R.get_instance().mute(!1);var a=this.graph.x,b=this.graph.y;this.graphOn.visible=!0;this.graph=this.graphOn;this.graph.x=a;this.graph.y=b;this.graphOff.visible=!1},setDisable:function(){this.active=!1;R.get_instance().mute(!0);var a=this.graph.x,b=this.graph.y;this.graphOff.visible=!0;this.graph=this.graphOff;this.graph.x=a;this.graph.y=b;this.graphOn.visible=!1},__class__:xe});var fd=function(){Za.call(this);
  871. this.init()};g["ui.VerticalMenu"]=fd;fd.__name__=["ui","VerticalMenu"];fd.__super__=Za;fd.prototype=t(Za.prototype,{init:function(){this.mouseMove=this.mouseDown=!1;this.maxSpeed=50;this.maxTime=1.5;this.startPos={x:0,y:0};this.endPos={x:0,y:0}},setBorder:function(a,b){this.upLimit=a;this.downLimit=b;this.set_y(this.upLimit)},onMouseDown:function(a){0!=this.get_visible()&&(I.stop(this),this.startTime=B.getTimer(),this.mouseDown=!0,this.mouseMove=!1,this.posY=a.stageY,this.startY=this.get_y(),this.startPos.x=
  872. a.stageX,this.startPos.y=a.stageY)},onMouseUp:function(a){0!=this.get_visible()&&(this.mouseDown=!1,this.endPos.x=a.stageX,this.endPos.y=a.stageY,20<D.calcDistOfDots(this.startPos.x,this.startPos.y,this.endPos.x,this.endPos.y)&&(this.disableChildren(),qb.delay(n(this,this.enableChildren),20),30>B.getTimer()-this.lastMoveTime&&this.movingByInertia()))},disableChildren:function(){for(var a=0,b=this.children;a<b.length;){var c=b[a];++a;v.__cast(c.item,wa).enabled=!1}},enableChildren:function(){for(var a=
  873. 0,b=this.children;a<b.length;){var c=b[a];++a;v.__cast(c.item,wa).enabled=!0}},movingByInertia:function(){var a=this.get_y()-this.startY;if(0!=a){var b=B.getTimer()-this.startTime;200<b||(b/=1E3,this.speed=Math.abs(a)/b/30,this.speed>this.maxSpeed&&(this.speed=this.maxSpeed),b=this.speed/this.maxSpeed*this.maxTime,0>a&&(this.speed*=-1),I.stop(this,null,!1,!1),I.tween(this,b,{speed:0}).ease(hb.get_easeNone()).onUpdate(n(this,this.updateInertia)))}},updateInertia:function(){var a=this.get_y()+this.speed,
  874. b=D.clamp(a,this.downLimit,this.upLimit);0!=b-a?I.stop(this):this.set_y(b)},onMouseMove:function(a){if(0!=this.get_visible()&&0!=this.mouseDown){this.mouseMove=!0;this.lastMoveTime=B.getTimer();var b=this.posY-a.stageY;this.posY=a.stageY;b=this.get_y()-b;b=D.clamp(b,this.downLimit,this.upLimit);this.set_y(b);if(180>a.stageY||860<a.stageY)this.onMouseUp(a)}},free:function(){Za.prototype.free.call(this)},__class__:fd});var jg=0;Array.prototype.indexOf&&(E.indexOf=function(a,b,c){return Array.prototype.indexOf.call(a,
  875. b,c)});Math.NaN=Number.NaN;Math.NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY;Math.POSITIVE_INFINITY=Number.POSITIVE_INFINITY;g.Math=Math;Math.isFinite=function(a){return isFinite(a)};Math.isNaN=function(a){return isNaN(a)};String.prototype.__class__=g.String=String;String.__name__=["String"];g.Array=Array;Array.__name__=["Array"];Date.prototype.__class__=g.Date=Date;Date.__name__=["Date"];var kg=g.Int={__name__:["Int"]},lg=g.Dynamic={__name__:["Dynamic"]},Rf=g.Float=Number;Rf.__name__=["Float"];var Of=
  876. g.Bool=Boolean;Of.__ename__=["Bool"];var Sf=g.Class={__name__:["Class"]},mg={};J.Element="element";J.PCData="pcdata";J.CData="cdata";J.Comment="comment";J.DocType="doctype";J.ProcessingInstruction="processingInstruction";J.Document="document";nc.content=[{name:"__ASSET__:bitmap_GameLogo",data:"aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQVN3QUFBQzVDQVlBQUFDU29RSXhBQUFZb2tsRVFWUjRuTzJkWFhiYjFwS0ZkMUZ5Ymlpd1cwcTZZK2ZOekFqTWpNRDBDTXlNd01nSUlvL0E4QWpNakNEd0NNeU13TlFJUW84ZzlOdk52YXV2cGRXa3FDU1gyUDF3RHQyeUlwSEF3YzhCd1ByVzBrTmlBaWlTNEViVk9mVWpVSlF0a0h3SUlLN3drbjM3VnpibkFJWWk4cTZDYXlrRmNlamJBS1gyUkFDR25tMG9nMU1WcStZaHZnMVE2b3YxcnVhKzdTaUJVRVJlK3paQ3lVN0h0d0ZLclJuN05xQUV4aXBXelVVOUxPVldTRDRHTVBWdFI4SEVJdks5YnlNVWQxU3dsRnNoK1JidFdydWFpY2kzdm8xUThxRWhvZklYU0Q1Rnk4UUs3WG8vZTR0NldNcGZJUGtycWtrdHFJSnpBSDBSdWZCdGlKSWY5YkNVVHlENURPMFNxNkdLVlh0UUQwdjVDTWxqbVBDcDc5bVVvaGhvcmxXN1VBOUx1YzRwMmlOV29ZcFYrMUFQU3dIdzBidWFBemp4YkVvUm5JcklqNzZOVUlwSFBTeGxRNFIyaUZXc1l0VmUxTU5TMmxTQ280bWhMVWM5TEFVdzNsWFRtY0dzd1NrdFJqMnNQWWZrSTVnZmU1T1pRZE1YOWdMMXNKU21GemlmQXhpcFdPMEhLbGg3akMxd0h2cTJJd2VieE5EM3ZnMVJxa0ZEd2oyRzVDOEFCcjd0eU1GUVJNNThHNkZVaDNwWWU0b3R3V215V0lVcVZ2dUhlbGg3U3NNTG5DTVJlZW5iQ0tWNjFNUGFRMGorZ09hS1ZheGl0YitvaDdWbk5Md0VaeUlpMy9rMlF2R0hlbGo3eHltYUtWWXpBS0Z2SXhTL3FJZTFSelRZdTlMRVVBV0FlbGo3eGhqTkU2dHptQjFCRlN0RlBheDlvYUVGempxZFdma0U5YkQyaHlhVzRPaDBadVVUWkVHK3d2WUV3cmlYY2ZEa3doVFVidnVCekhvaXo3T2NzMmdXWm94Vm9mUkVuaFI5emlKbzZJekIxa3huZHJqWFptSzhTd2h3THNDc1cvTWtXWkxIbDZiTWF3Qmd3RHVXSHNSNCtmTU9NSFY1VDRjQUJySzlubXlhOWFRSHdFbXk1WnpNZXNJUzJQR2UyMGJrMjRDTXRHbzZzOE85OXZIMXRIOEw4bHlBU1FlSXVqV3FuVnlRandRNFhRSWp1U1pTdTlhYUVuUHNPWUFZeGlsSzVVbHJTTmh5R2xqZ0hJdG43N3VPV0RFSTE4RE1Sa1ZlV1pDUGx1UWJzZWttNHJDWkk4Q0pBS2NDekpia0d4dVpiVVVGcS8zRXZnM0l3RlE3aG01bjh5Ty9OTlVLWGxpU0w2eFFqUW84N2NnSzE0dHRMMUxCYWpFTm16Rlk5QStnMVJBWUw4MkU3dXF1U1I0dlRZZVBxTVRMUkV2eUY1c3orQmRVc0ZxSy9jSWozM2FrWkE1TkRNME1nZml1SDNZWlhCcHZ2WW9PSDRQTE95SURGYXoyMHBRWmc5b3gxQkVCVHBZVlBaU1c1RStvMWdNZTJXdCt3bUdGQmpRS05pOE40Q1AycWR1VWdReDdueGdhaUFnQXJNd0dDUkt6Z0QzaWpaMjNPd2dCbExwSnNUQkxDMkhHdzJhMHFSa2I3SHZKNHFHRkMzSjZQYTFLQmVzTzZwcFRsWkttRkRqcmRPWnIzTWhMK25sQmpyRmpRSWdBSnl2eWNWbDVXaXZ5WVpKKzQyWU9JRDR5YVNtM2VzdzJYK3NVUmdEN3UwNG9RTHdpcDV0VURnMEpXNFl0d1lsODI1R0MxaVNHbG9YTlRkb1pobTNMZWN4TGtySkNnc0E0RVBrbUVIbTVMYndYa1l0QTVHVWc4ZzFUbnZ1NkRTcFk3U1B5YlVBS1loV3JkQVFpUDhQVEdEWWJvcVpadDRwZEtsZnNNWEdLbDQ0MjRiSUtWb3V3TXdaRDMzYnNRS2N6WitUbVdsQlZKT251cGRsUmp2VlNlK3hPUWQ3WW9vTFZMdXBlNER4VHNXb0dkdU1tM1BtNm5LMS9ST1NDNllReEpIbXNndFVTR2xDQ00wTzk3YXNsSkk5VDFDSVdIakl1MDRXQ2s3UTFnTnV3NTRqVDJKUm1sN0MvaVIvVHdtYVBqMm9xa1c4RHRxQzVWbzZzVW5nZm5YTFd1SGIraGxuZ1BVZGdMTHZmNnlDTllJVXBZOWxXNGRKK3huTXF4Q21xeTBUT2drNW5kbVJCUGt1eGt6WXJxWHZEMXZ1SXdIa1IzdFdHbnNpN0pUbkg5bFNIVklLMWx6U3QvWXpOWi9xV3BuaTBUbmxZSTgyMTJzN05DR1p0ZnJSaG1udFF5aXR1My9YZ0s4T3JtMEVGYTc4UWtaY2tZNWdiZWVqVkdEUHd0TmFONStwQWNxT3FJa1BmOG5tM0pNSGFsV0V2NVZTQ2JDMkFGK0JFRjkxYmlJaThGeE9lanVCcFM5d1NjVWU3RUNVWHAvdTJMcWlDMVdMRUpCMzI0YmNuVmtUVEx1U2hSeHZhU0d5VFN2Y0tGYXlXSXlJWE52ZHBDSDlUY3dZQVp2VFlkSzVseE1HZTVyT3BZTzBKSW5JbUl0L0FYL3JEQ1lBeHlUZFY5bkJxR1hNQW95ckVLa1YyZlJtNzBidk9PZGRGOXp0b2NudVpiZGhGK1FuTWR2blFnd2tqQUhPU29leGhTT01LZ1dsUWJTN2Jya1RmZmduWDNIcE9waFNzS0JCNW1lV3FLL0x4eloyUHB0SHc5akpic1drR1QyeUlGcUg2RklnVEFCT2E5aW5SdmkwYzM2UURERzBMbC81ZHJ4RmdlR1U4a0VwMlhXWDM4c0ZnUlQ0c0tnZk10ckhabVVxaEllRWVJeUkvd3Z4SUpwNU1PSVZaMjlvNUxhWE5kRVhPT2ltU3M1TUtXeUtuaVRDS1RDaG5pbElnQWFZcVdIdU9YWlQvRGpaVTgyQkNIMGEwOWpyOW9TdHlsaUtydlg5WHIvT2lPVWdYSVlWRkNTaFRkSHc0VXNGU050ajFwQUg4ZFh6WSsvU0h3SVRuOHgwdkcxVXhMYWNyOGo2Rmw5VXZvcWU4SGUzVjMvR3lpWWhjcUdBcEg3SGUxblBZTkFRUEp1eDErb1A5UVlhN1hsZmh0Sng0MXdzRU9MVTkzNTJ3dzFPalhhL3IyQWVwQ3BieUYwVGtuWWg4QzNNalZaMHB2OWZwRDdZM2U3VHROUUtjVkJFYTJ1RVA4MTJ2RXlDK2JjTE5McXpRVFhlOWpzQjAwN05lQlV1NUV6Rzd3d1A0MmZIZHBEOVVPaXkwRHRoZCtWMGViaVdoWVJxUHp4SXV5TGVyRkNFOXllTUYrVXFBT00ySSs0TnJBcTU1V0hld2EyVDJiV1JOLzJnQ3RpM01FeXNjTWFwTmdkamI5QWVhYmcxYlJjdUdodjB5UDVldXlObUNIRXVLUlhFQmhtc3pibjRLSU83YzRwMG5RTGhNTjc1c1EzUjlJcEFzeUxjNzJsZ1Vub2RGWU9vN3oybEpzdWh6YnViTHRSVWJvbzNocHovYURBMGRDN2JyWHJ2cnZyRVB6V2pic1ZYOWx1eUkra3A3cmQzMjNqUWtWRkxqdVM1eHN5Qy9OK2tQYVVKREFZYVhGV3hTSEpudnZNcU5tRmx3UzI3VzRkWFYxZGFqWEZ5R3E2c3JyQjJPcTVMVmp2ZXQzSTJJbkpFY3dJUUpVY1dYajBnT1lieXRSblF4elhPdkVRaXZycTYyaDRaazlHRzFtbnpSN1piMmVZaklCY25oLy96Kyt3VG04eThQa2VsLy9lMXZ0NVloZGY2OVhtT2RKSGYrL1R0Sk1sL3YzOEQyYzY3OXk5azIrMXovOWducmJmbGFsQi9DZUZ2TzIrbFZrdWUrNlltOFd5ZEp0TzM0aER6NWZiMk95MzRmSW5MeDM1OS8vbVNkSkhFWnY1OTFraUJacjhmLy9mbm5UKzVhbDlPUVVNbUZUWUY0QXVOdFZaa0NjUUt6Nk56NjlJY0hRYkE3TkJRWi92M3lzcEw4dFFkQjhMMlFJY2ppdm0veW5NRG9mcSszZFNDckNwWlNDTFl1Y1lEcTZ4STM2UStaSmpzMURqTGM5UkpKa3VqRGFsVkpwY0Q5WHUvMVp3Y0hBekU3dU82UTUwS083d1ZCLytzZzJObTk0N0FEekpJdG14Z2RoOFhWWkwwKzM1YldYOUpZb2t6UWJMMHFCV0xYbEw2ektSQmpsTk9DNURaT0FFenJtdjVReEwzMm9OZDc5L2ZMeTFNa3lkWWk0VCtTSkFSUVNYcU5YVE43L2k4eSttTzFDcEVrSXhFWjdqeVFQSWZJVk1qSllSQk12c3p3ZmJWNkcxN3hodzNUSXVRWVkrNUlZOU1mMnNKdmk4V2p6c0hCclhsV3lYcDkvcURYMCs5R3FTY2tIOXVpNXFyWm0vUUhSVkVLaHVRTGtoOHFGcTIzM09QdUQ0cWk1SURrUXlzaVZmS0JEVWwvVUJTbGhwQjh4dXE5cmRhblB5aUtVaElrajBuK1ZMRm92Zlg5dmhWRmFUQTBpL0svVmlCV3YxQTlMRVZSOGtMamJiMG9VYXcrcUZncGlsSW9KQit4K0VYNUQ5enpxVHlLb3BRSXlSOVl6S0s4aXBXaUtPVkQ4cW1LbGFJb3RZY21YeXV2aDlYdVltaEZVZnhEc3dDZnQ1UkhFMFVWUlNrWEZTdEZVUm9EVFRhNmlwV2lLUFdHK2JQZTkzSmF0S0lvRlVQeVZVNnh5angxV0ZFVUpUTTBoZEFxVm9xaTFCc1ZLMFZSR2dGTkdVNGUzdmgrRDRxaTdBRldyUElraG1ybkJVVlJ5b2Y1czloVnJCUkZLUi9tVHd4VnNWSVVwWHhVckJSRmFRek0xK2RLT3k4b2lsSU56SmZGcm1LbEtFbzFxRmdwaXRJSW1DOHhWTVZLVVpScXlDbFdwSFplVUJTbENtaEdkNmxZS1lVanZnMVEyb1VONDZZQVRoeFBFWXJJNitJc3lnZko0eXRnUVBOMzUzc2lNRDhBNXA4RE14RzVxTkxHZlVJV0JVL0RGZUFjd096Ni85dDhtVjJSc3lLdlZTU09uMFBjSytuSHRTQmZBUmpVeFo0MHRFV3NWdVJEQWlNQ0liSi9Cd0F3by9rYzRwN0l1MEtOeThEQ2VLcWh3NkduWmRpOU1QZkhPSTg5aHdJTUM3WEtNTHIrSHdJZ0FiQWtRV0RhQVNZQ1RMb2k3MHU0dGhPT244TzBZRE91TTNDd2FWcUNIYW1nU2VxTTRTNVdZOTlpdFNBZkNSQWxOKzVmQndaaWhPNTBTYzRJakFOZ1VyWG5KVUFmRHZkMXgvMDczTW9CY0pMa3RLZFRxRVVwRUdCSVlKd0E4d1g1ZGtrK3Jkb0dwVmlzV0UzaDVvMEFRQ3dpejR1ektCc2tqeGZrS3pHUlFWNnh1c2xBZ1BnU21GMXFWOVRjVkM1WTE3RWV4R1NwWlJkTlo0cDhZdlY5Z2Jaa1lrRSt1Z1JtQXB5V2ZLaytnZkdTL0dXaDZSck9lQldzYXd3dWdmT0Y3ZzQxRHBvbWVvMFVxMnVlWWIvQ3l3NEFUTlhiY3FNdWdnVUFFQ0RXcDA5enNHSVZPaDQrOHkxV2w4QlVTbHF2MllZQUo5YmIwbzZwR2FtVllGbW1LbHIxaDhaRENCMFBuNkdjelo3VUxJRUozRDFEeFJPMUV5ejd4SnZxbWxaOXNZbWRMdHZUZ0JVcm43bEtTL0pGU2J2aldaZ0VIajNNcGxJN3dRS01hTmtub0ZJemFIWjFZOGZEdll2Vmlud0lJUEoxZmN2c3lOMDczV3RxS1ZpQTJVSFVSZmg2WVJORFk4ZkR6K0ZackFBZ3FZZFllZjhjbWtwdEJRc0F4UC9OcFZoeVpySFhRcXlzZHhWNk5HR3VZcFdQUThmajVyQlBXbHRmOVhIeFVtNzhkMDc2Uy9KcElQSnpRZWRUSExEcmlSUGtFeXR2SlNvYm1EOHBkSTVySGlhQkV6SG43S2U0OWptQWtZcFZQcHdFaThDOEovTHl6bjgzVzhaREFxY0ZMRzZPQUtoZ2VTSm5ybEp0eEFvQW1NTzdFdUQwU09USFcvN3B1UzNwT1NVd3VpMU53b3JWMEdkZFlWc29KU1FVa1l0QTVPZWV5Sk04TndsUXlGTlJ5Y2NVN2g3enFEWmlaWVRYT2NIMURyRUNBUFJFM2dVaTN4K1k4MGUzdkVURnFpQktYOFBxaWJ6T1UvWWd3SWxkZTFBcUptY1dleWcxNnM1eDVmNCs1a2NwNzkrdXlQdEE1T1dSVFF3RmpGZW5ZbFVjbFN5Nkg0bjhTUGU4SGFEYTBna0ZIejBTVis4Mjh0MTU0U1owRkN3eFhTUXlyVHVKeUVWUDVQa1JjT0t6M1U4YnFXeVhNQUFpRzh0bnhxVWxoWklQK3lOMUZheGhnYVlVd3JibWU5dVFHNzNkTWgyckMreUZVNWxnaWNpRmFESm9vN0FoWGVSdzZKRGs0NExOVVpUSzg3RG1GVjlQeVltWTNlQ3B3NkZSc1piNHdUV1VWTXFoMW9talNtMElrVDJjSDdaaG1FVGVYVzZsV0ZTd2xKMklhV1VkT2h3YUZXdUpPM1QzN2dmYXU2bytWQzFZVHU1MXgyT3Zjc1VncHRvZzYwNXZ2eTVlMWtHTzVRZ0NZNjFyclFlVkNoWWRkNC9XanJ1TFN1RkV5TDVyRnRXaFZWRGVpVTBDeE9wcCthY3l3VnFSajEyNk94STQxOFM3ZW1DMzZVTmtlNEQwVVg2LzlMVGsycVcybnRiYmxlNkFlc08xK0RrVHRyYlFLWEZVTkJ5c0ZTTHlqdVFwc3JXWk9TV1pPUUd6YUdqR3krVXE5UkpnbUFEVEpSa1RHTGZ4WVpvQTRaSWNsbkRlZnQ1elZDSllWcXljMXErb3VWdTFRMFJla3h3aC9ZLy9CTWJMdXJOZ3ZncDZJcThYNUxpZ1B1NmhtQi8yaE1Da1pSbnRvVzhEN3FMVWtIQkZQclFUbFVQWGN3UXFXSFVsUkxhRjdJZzFxQW50Rkw5ek9iTERVejRzeVJkYTkxb3VoUXNXeWVNbCtYUkp2a21BZWM3Mk1ySHZNRUs1SGNmU25hZ0VVekpodXk3TWl6NnY5ZHFpQkpndnlaOVV1TXJCU2JBRUdDNUozdlozYVJaa0p5aWdMVXdKVDBPbFFHenJtQ3dMNm1GTnZLeXc1RXVFS2x6bFVPZkUwYmhyRWhhVkdpUEdZNWxtT0NSUDE0NUNzQ2tPY1FXWEN0YzZvcjVRYWlsWUJNN1Q5aUJTYXNFSTZWTWRSblVvakxZanRrcGZIOTBNVGJYcEVPcHQ1YVIyZ3NXYURDeFEwdU93bmhXVlpFb21BcEh2Y3ZacFM0MEF3elV3MHlIQithaWRZQUU0YldOdVM5dkoySXFtTnUxbmVpTFBPMlpqYUY3MnRUWkRnbFcwM0ttTllCRTR0KzFrMjVUUHNsZllWalJwUzNmaUVrM0pSRmZrTEJENXhuWm1jRzdZbHdZeGszWW1kU2hYYWlKMUVhdzVUS04rRmF2bWszWTlxemFGMFJ0NklxOERrVzl0RDZ6WXRVTnVDdm82MmR3Tjc0SkZZQnlJZktOaFlEdkkySW9tS3M4U2R6WlRjSG9pWHdBWUVSZ1hMVjRDRExVbU1UcytCV3RDWU5BVGVlN1JCcVVFYkN1YU9NVkwreVJmbEd4T0x1eTR1dWVCcVlOem5rdHdHK3VhQ25hZDhTSllCS2FCeUhmcVZiV2FVNlJiRHpwdHducU9uYlg1c2lmeUJZR3dDT0ZTTHlzN2xSUS8zMFNBNFNYNXc3YmhsRXF6RVpFTGtpRk1VdW0yWXVOYUZFWm5vV2VLdnlkTElNb3pjeE1BRW5OOGJlWTNBbWJLZFo1cFFYZEJZSkEzamNSMVZQMjBKL0prYWR6NXlPVWNDUkN0eUlsbXM3Y1gyNG9td3U2YnRCYnRaN0pnYlgyK0lHY0E4blNBR0pFOHJ0TjdGMkNXdCtIaGJheElNT2M1Y29XRVFiWnQ3RThRNEdSZG82M3R1bEZRQ3hUdjJOS2RYVHRpSjZoQnlZNExkbWQ3bU9jY2x6V2M0MWhYY3E5aDVaa3FzZ2tOODlyZ2tUSkhRTFZwdkZTSTNZbVp0U2lNZHFFbjhpNW5hTmltNzdwVWNndVdYVGlQWEkrM29XRWpiMVNVZEtPMUxSTTZRK2xPVkxJcHBYRWs4cVByUXJ6cnJJTjlwSkJkd2owT0Rmc2xpVzNvY3BEVWVGaUhwSHV3aFhVcDJYRkIyM21YVDJGcERTMElEWjBFTnltaHQ1SnIzL0V5ZG5hS0pPVVU2YWg4Uy80ZmtzZEZwVld3SmV1T2RhWXd3U29pTlBRY0NzMWREbUxCZVVSMi9sM2Y1ZGpQYXk1WWxsMmxPNVVXUmkrQnlSS1lGM1R2NlZwVXlSU2FPR3BEdzduTHNiWW9OQzdTbm96WG56b2VkN0lzeUN1d3d1ZTZXemF2MDliNFhWd2JGYmFOU25ZTWwrUlBBZ3czWFJUeWhQZXVZK3dBUUNyb0ZORVdDczkwejlsK2RyRDBWS3FSNUZoL0VPQTA3MlJnT3dwdG1pT2RZWnJuK2xXU1lvcjBvT3pDYVB0OWhSOXRNbXVwTTlmTTh5U2Z5TTV6SEx0WEZDNVlYWkd6bk5tc1hrTERuc2k3UE9VV0FzUkw4aWVYWXhma282VzVhZk9FRkkycS9oZFRRN290aEkzS3VyYjFodUsvMkFTY0pLWmYxYXNzWWI3OTNwMi91MDZESGphK0thV1dNREEzMjl6MWVGK2hvZVFQUmNJRitUYXQ0Tm9KUXkrUXo3TUNnZlBBZUMxTlk5dDZWaW50Wnhia28vVU9jUmZnOU5JSTE5YnJMOGhIZWNmWUFZMVplNndGcGRRU2lzakZpZ3h6aEZtREpmbkNyb2xWUmdlSWs1eFBkanZXYkxZZ3B3RGlnMXVFT3pIaU5MSVp6bjNKYzBGenpVWjVWeHRFNVAyT0tkSmprcE9pMXVaczJCMGozY05oWUwzbUNFQjgwd3RhRzdFTkM2aElLT3o5N1FPbEZUOTNSYzdzbEYzWERPQm9RVTZxN09qUUZYbS9KR01Va0twZ2hXdVk1RDFSQ3BvOERzMU9rUjdpOXMrODBNTG9wUmxWbnpWMDY4UE1HL3lFdkErWkRaMkdsaVQ1b3RUMk1rME1EUnY0NDIvRE9MUnRyV2dLU1J2WjdBam1QVS9CbEZKazNHWU8xK3QxYVNmZmhJWi9ydGRUeDFNTUx2Nzg4OFh4dlh1VmhZWmRrZmYvdTE1SHRzdEE3ZWtjSERUK0NYMnRGYzF0b25VQzh4QnhidlQ0NFk4L25xM1g2OUQxK0xLNGQzQlE2aWk3SkVsQVp1K1BrQndjbEdCTk1SeXVmdjg5ODBGWlBvU3V5TmsvRm9zeFJaeER3OThXaThtRFhxK3kwUEEvRGc1ZS9yWmNqbER6UkVBaHgvY3IvRnpLeExhaU9jWHRJZEttL1V4bVQvSWZpOFd6UC83OE04NXRZTUVJT2Y3UFhxOVU3K3J5NnNycHVFN0hlK2YwTzZuRXNzTWdpSmduMTBRa0xzeVl0SkFoeU5yVzVnR1lIUVpCNU51SUl0blJpaVp5T1NkRitvN21sTW5zZnErbnJjRWRxRVN3dmhTNU9PaDB3aHluR1B5MlhGYWFVUHFnMTN2SFRpZXE4cHFwSWM5QmhsKzJjM2NweE8wUE42ZjJNdytDNEtXWWNMTVdFSmgvMXVrNDFZb3FGZlowLzZyYlBSTXlWMExwYjR0RnBRbWxYeDhkL1pqVDVsTG9IQnlNcWd5UnEyUkg2VTdzY3M3N3ZkN3JUcWN6cklISFBQdnM2R2p3UmJmYjlFMFNiMVFhckRZeE5MU3VlK1hYdlFzaHc2KzYzVmJ2TEcyWkl1MWNHUDFWdDN0Mkx3ajY4SlNrU1hKNjcraG8yRkt2dURJcUZhd21ob1lBOENBSXZ2ZnVhWmt3Y0hDLzE5dUxZYk5iV3RGRXJ1ZjhVdVRpUVJCOFcvVjNTWkhUcjN1OUp5cFcrYWw4TzZDSm9TRmdQQzJhb1pyenFxOE5JTDRYQlAyMmhvRmJDUEhYMHAwaHlhZDVUbnEvMTN2ZTZYU0dLTm5iSWpBWE12ejY2RWluUXhXRWwvM0xKb2FHQVBCMUVQejgyZEhSUU1oeDZlc2g1dnlUVHFjemZCQUUzKy9qMDNuTEZPbmNIdEpYM2U2WjliYkNraDVDOFdkSFIzdmpFVmVGRjhGcWFtZ0lHTnZ2OTNyUDd3VkIzK2FXRmZ1VU5rSVYzUXVDL29NZytLN3Q2MVc3dUtNVlRXR0YwZmQ3dmRmMklWU1VjTVVnQi92NmtDa2JjZm5oQ3prdjRzbnhqOFhpV1o0OG1RZEJVSXZobXg5V3E0ZS9reU1oaHpSRnMvMHN4NU9jaXNqMHMwNG4xaDJrMnlINUN6NU41SjBER0JSZE9QelAxZW94MStzUlJZWkluemdjQ3prOURJSkpuVVRxbjZ2VjR5UkpobG1QSytzK1hKRVBYVnFLZDY2Vm54VlZ3Nm5jNEorcjFjN2RyR1M5UHQvRGRTa25hRnIyVFBGcGQ0UklTdXpvOFMveWVIMTFkYWRvSFFKemZjQW9pbklySkoveFV6NFUyVTlmVVJTbFVFaitkRU8wdkt4bEtvcWk3TVNPNWZyMWhwZlYxRUc4aXFLMEhaS1BibmhaVHIzMEZVVlJLb0hrRHpkRVM3MHNSVkhxQzhtMzF3VHJqVzk3RkVWUjdzU3VaMzI0SmxxVlRZeFdGRVhKRE1uSDF3VHJyVzk3RkVWUnRrTHloWHBaaXFJMEJwSy9XTUg2MWJjdGlxSW9XeUg1OE5wNlZ1RVRveFZGVVFxRjVGUDFzaFJGYVF3a1gxblIrc0czTFlxaUtGdXhxUTYvVUF1akZVVnBBclowNTRNV1JpdUswZ2hvV3RHb2w2VW9Tak1nK1VZTG94VkZhUVRYV3RGb1liU2lLUFhIcm1lcGw5VVN2RXpOVVpTcUVKRjNBT1kwUGVFVlJWSHFqKzRZS29yU0dPeDZsbnBaaXFJb1NqWDhIeStHV0lGUDhtM01BQUFBQUVsRlRrU3VRbUND"},
  877. {name:"__ASSET__:bitmap_ProgressBarBg",data:"aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQVlRQUFBQTNDQU1BQUFBN1NzMk9BQUFBcmxCTVZFV05BQUN2SlFtZ0h3Q3dKZ0NxS1FDdEh3cXRJd210SEFDc09RQUFBQUMySkFDc0l3aXlNQmp0enNuSmFWblNoM2k2UVNhc0lRYStUamJlcVoveDE5TFlrSVBqcjZmSFpsU3FLd0RVaVh1L1VUdkZZazNIWlZEZnBwdXVJZ242OE8vYm5aR3ZLUkRPZVdiaXI2VzhUVGJ0eThYVGludnJ4Ny8yNXVQUGZHM293TG5tdUxIejM5cngyTlBqc3FyLy8vOWtQejhyQUFEVElnUDkrUGViRlFELzNOTC9NUWRqQndDSWFtcXRtSml4UVNvaEFBQUFMM1JTVGxNQkl3Z05DeGtjRWdRQUJ5VTExMStBUXk1THBlS0lzR1FHY0RsUFE1QVcvWDRyVXBvdXlHTzc3V0d4b3QvWXE2d3hNUzRBQUFRUVNVUkJWSGphN1p6cmRwc3dESUFkUWtoR21pM1pOZHpqVU1vbFVOSmwxL2Qvc1VuRzFCblFzM05XTzcvMHRYa0JmVWNTWUV2c3pRU01NTVYwdktmaXZ5S01NVFF4bHRBTDJBT3V3Q0plajl1eEIzb1JMMHBnVE1RZkFtK1BtQlAvZ1QwRWpRZ1RmMmxnQXdXdTFVVjhTUmlnODJLNUF3M3Myc0VlREdEODR6aGVDQnhDRXdzQkJCWk4yRFpxWUd3b0FSVzR0bzBHUk94bndKclF5QXdRTnRBRFpvT3l3SlFEQ3hSQUNqZ1FmYzc1N283UXpJNXpkT0ZJRFpnTTF4SVlrdzRXRGdqd2ZYOGJidDhUZWdraHFCQmF6bEZEWjRISjhDc0hvR0MydnZmOU1BaU9id1ZmOEk5NE5SakhqaUFJUXQrL0Z4cUVCU1hoMmNFOUdEaVdENTczRHZoRWFBVmo2bmtQNVRFSVFjTzFCZFkxQk5lZW80UHdlUFFPaHloSzAwZmtNNkdOUnlSTm8ramdQUnpERUMzTWJSY0xVaTloRC8xQU9IZzRST21weXJKTjg1SFFUZE5zc3F3NnBkRUJOSUFGNkF0ZEt1QnZ0YkxzM2tGYVpVMlJKSmVXTU1BbEtZb21xOUxPQWhha1RvSk1oTmhaKytEZ2xEY0ZDVERLcFdoeXRPQ3ZuVmltQXY3M2lWQ0NnNW9VR0NlcHdVSXBDcEp0U1FuUGllQkY1T0FtWE9vcThycFVnQWNrbElEVmFMbHdPQ1pDazdUdCtmeEVHT1Q4QzNKaGM0SlU0RTY4RlBXSTlkWElEeUFSaXJiOS9mVHRLMkdRYjA5Z29jZ2pML0N4SHJtOUJGbU4wdXdDaWZEelIwc1k1TWZUR1ZJaFMvdDYxRW5BbGlDcTBXUGRrZ1NUS0FtWFJ0WWplRDVDQ2FJbHpQaTJQRlFGU1RDS2t0RFcxYUhjY3F4SDBKa1o2eVRzZ2pMS1NZSmhsSVNpaXNyM095WEJ0WmZPK2c3N2NrSVN6S0lrSk5pWjc5WmpDUmxKTUkyU2tBa0p6dEoyaFFScjNrdTRrSVF4NWlVd0lTRVdFbExLQlBNb0NhbVFFTThIRWlnVHpET1dRSm1nQVEwU3FDZmNsT21lUUU5SEd0RHdkQVFTRnZTZVlKcnA5d1I2WTc0OVNrS1JxemRtK25aMGM5UzNvNUJMQ2RkZlVVLzBGZFU4NDYrb3cvT0VSRWo0VGhoaytqeGg1UTVPMWdpajRNbGFQVHhadzZZZzY5RUdVdUhYbVRESjVCa3pkT2ErSGtVVjNiYTRCY25vdHNYMXZhTTByNU9XTUlxNmQrVElhalM4Z1pmU0RUelRKTVZtZkFOUHBrSXM3d09mOGsxZEpFbHlJYlNUSkVWUmIvSlROTGlMT3JpVlhYcWdvY3F6TE5zUTJzbXlQSzlBZ1ZlT2IyVXoxczhuK0pBTWNrRGhBNkdkTklxaWc1aFA4TkZCUDUrZ0puVjZDNUFOcFFlOEkzVGpJU1ZrZ1hBUXo2OG1kWlNGSlV4dTNxT0hRUENXMEV1QUkydG9BR2ZXbHNyQmVIb1Q1MmQ5WUx2MXQ0UkdNS0lBNSt2cDZVMWxBVFU0T0VYT2tSM2ZFWHJnQXB3cGQxREIwbFlPVUlLeTRIWWFjS1FmbUJGNmtlc1ZZc2lDMFVTL3NnQWExSElMY0JFdkNHM0Vjck1GR3JDdDBXNExDUk1hOXBaWTgwSjdYZ3dnbCs5WTFsNG9ZQy91TzVJTGp5eWIwSTVhZDRRTy9ySDVDMDFJWEVJTGU4bnFoYzFmdEFUdmhqREJlQkVocllPOElkUGgvZ09wZzRrNzM4TDBCZ0FBQUFCSlJVNUVya0pnZ2c9PQ"},
  878. {name:"__ASSET__:bitmap_ProgressBarBody",data:"aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUFFQUFBQVJCQU1BQUFEdTdkc2hBQUFBRDFCTVZFWGJKZ0wvTVFmY0tBWC9ZMEgvVlROczNheVZBQUFBQVhSU1RsTi9nRnkweXdBQUFCTkpSRUZVQ05kak1HQndZQkJBZ3dwSWtBRUFIeElCc1FHdGdBOEFBQUFBU1VWT1JLNUNZSUk9"}];Da.__alpha16=Array(256);for(var eg=0;256>eg;){var fg=eg++;Da.__alpha16[fg]=65536*fg/255|0}Da.__clamp=Array(510);for(var gg=0;255>gg;){var hg=gg++;Da.__clamp[hg]=hg}for(var ig=255;511>ig;){var ng=ig++;Da.__clamp[ng]=255}null!=window.createjs&&
  879. (createjs.Sound.alternateExtensions=["ogg","mp3","wav"]);ca.__instanceCount=0;ca.__worldRenderDirty=0;ca.__worldTransformDirty=0;Ia.resourceType="image/png";Ia.resourceName="__ASSET__:bitmap_GameLogo";Ja.resourceType="image/png";Ja.resourceName="__ASSET__:bitmap_ProgressBarBg";ob.resourceType="image/png";ob.resourceName="__ASSET__:bitmap_ProgressBarBody";Wa.onMobile=!1;Wa.isIE=!1;pc.__defaultPoint=new la(0,0);R.inited=!1;Ca.Hero=0;Ca.Car=1;Ca.Barier=2;Ca.Boost=3;Ca.Money=4;Ib.USE_CACHE=!1;Ib.USE_ENUM_INDEX=
  880. !1;Ib.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:";xb.DEFAULT_RESOLVER=Q;xb.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:";xb.CODES=null;Dc.CHARS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";Dc.BYTES=Jb.ofString(Dc.CHARS);Ma.count=0;Zb.escapes=function(a){a=new sa;a.set("lt","<");a.set("gt",">");a.set("amp","&");a.set("quot",'"');a.set("apos","'");a.set("nbsp",String.fromCharCode(160));return a}(this);v.__toStr={}.toString;
  881. P.cache=new Pe;P.libraries=new sa;P.initialized=!1;za.images=new sa;za.loaders=new sa;M.graphicsFolder="hd";M.graphicsScale=1;fa.actuators=[];fa.actuatorsLength=0;fa.addedEvent=!1;I.defaultActuator=fa;I.defaultEase=Ye.get_easeOut();I.targetLibraries=new Ma;na.cache=new Rd;Xb.__rootURL=window.document.URL;Fc.currentDomain=new Fc(null);mb.__identity=new mb;B.current=new Sd;k.SIN45=.7071067811865476;k.TAN22=.41421356237309503;ja.blendModesWebGL=null;ja.glContextId=0;ja.glContexts=[];N.__UID=0;Gc.defaultVertexSrc=
  882. ["attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","attribute vec2 aColor;","uniform vec2 projectionVector;","uniform vec2 offsetVector;","varying vec2 vTextureCoord;","varying vec4 vColor;","const vec2 center = vec2(-1.0, 1.0);","void main(void) {"," gl_Position = vec4( ((aVertexPosition + offsetVector) / projectionVector) + center , 0.0, 1.0);"," vTextureCoord = aTextureCoord;"," vec3 color = mod(vec3(aColor.y/65536.0, aColor.y/256.0, aColor.y), 256.0) / 256.0;"," vColor = vec4(color * aColor.x, aColor.x);",
  883. "}"];m.__fillIndex=0;G.bucketPool=[];G.objectPosition=new la;G.objectBounds=new oa;u.ACTIVATE="activate";u.ADDED="added";u.ADDED_TO_STAGE="addedToStage";u.CHANGE="change";u.COMPLETE="complete";u.DEACTIVATE="deactivate";u.ENTER_FRAME="enterFrame";u.OPEN="open";u.REMOVED="removed";u.REMOVED_FROM_STAGE="removedFromStage";u.RENDER="render";u.RESIZE="resize";u.SOUND_COMPLETE="soundComplete";Gb.FOCUS_IN="focusIn";Gb.FOCUS_OUT="focusOut";Jc.HTTP_STATUS="httpStatus";Vb.IO_ERROR="ioError";kb.KEY_DOWN="keyDown";
  884. kb.KEY_UP="keyUp";y.CLICK="click";y.DOUBLE_CLICK="doubleClick";y.MIDDLE_CLICK="middleClick";y.MIDDLE_MOUSE_DOWN="middleMouseDown";y.MIDDLE_MOUSE_UP="middleMouseUp";y.MOUSE_DOWN="mouseDown";y.MOUSE_MOVE="mouseMove";y.MOUSE_OUT="mouseOut";y.MOUSE_OVER="mouseOver";y.MOUSE_UP="mouseUp";y.RIGHT_CLICK="rightClick";y.RIGHT_MOUSE_DOWN="rightMouseDown";y.RIGHT_MOUSE_UP="rightMouseUp";y.__buttonDown=[!1,!1,!1];Kc.PROGRESS="progress";Lc.SECURITY_ERROR="securityError";Fa.TIMER="timer";Fa.TIMER_COMPLETE="timerComplete";
  885. fc.__registeredSounds=new sa;Vc.GET="GET";Vc.POST="POST";Wc.OBJECT_REFERENCE_PREFIX="@~obRef#";ye.inputClass=Of;hc.inputClass=Array;xc.inputClass=xc;gb.inputClass=gb;Ob.inputClass=Ob;Pb.inputClass=Pb;Qb.inputClass=Qb;ic.inputClass=ic;l._tweens=[];l._addedTweens=[];l.managerInited=!1;l.DEFAULT_EASE=wb.linear;l.defaultEase=l.DEFAULT_EASE;l.defaultTime=.3;l.defaultDelay=0;l.defaultInterval=0;l.defaultRepeat=1;l.defaultYoyo=!1;l.defaultZigZag=!1;l.defaultAutoPlay=!0;l.defaultAutoFrom=!0;l._rules=[ye,
  886. hc,xc,gb,Ob,Pb,Qb,ic];l.topLevelTimeScale=1;l._groupDefaults=!1;l.updateMode=hd.TIME(60);l._initLog=[];l.dictionary=new Ma;l._objCounter=0;l.idCounter=0;pa.main()})("undefined"!=typeof window?window:exports);