(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)}, 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> 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=this.__worldAlpha)){this.get_scrollRect(); null!=this.__mask&&a.maskManager.pushMask(this.__mask);for(var b=0,c=this.__children;b=this.__worldAlpha)){for(var b=0,c=this.__children;b=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&& (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= 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.timeout&&(this.timeout=this.genTimeout(),this.counter=0,this.spawn())},spawn:function(){var a;0d)return console.log("Not car found config with id: "+b),null;for(var f=0;fe.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;db.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}, 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); 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"; 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"; 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, 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"; 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"; 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, {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)}, 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)}; 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= 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&&ab?"0"+b:""+b)+"-"+(10>c?"0"+c:""+c)+" "+(10>d?"0"+d:""+d)+":"+(10>e?"0"+ 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!= 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(;cthis.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/ 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))}, onUpdate:function(a,b){var c=a/b;1e?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"]= 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, 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= 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? 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= 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= 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= 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= 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)|| (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"); 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==')"; 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==')"; 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=')"; 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=')"; 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? 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)/ 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, b){var c=a/b;.9a&&(a=0);var b=z.parseFloat(this.openfl_canvas.style.marginTop); 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_"+ 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== 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)? 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>= 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(0this.index)if(60<++this.runs)this.list.splice(this.index,this.list.length-this.index),this.runs=0;else for(;this.index>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= 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= 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", 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== 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]); 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.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__, {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=l.alpha)){e[b+2]=l._indice;if(null!=l._offset)if(m=l._offset,0this.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= this.awards.length;if(0==a)console.log("No awards registered");else{console.log("Awards:");for(var b=0;b=a.count?a.complete=!0:!1},updateStatistic:function(a){var b=this.awards.length;if(0!=b)for(var c=0;ca.x&&(a.x=-1);1a.y&&(a.y=-1);1a&&(a=-1);1b&&(b=-1);1c&&this.save(a,b)},smartSave:function(a,b,c){null==c&&(c="replace");var d=this.get(a),e=!1;null==d&&(d= 0);switch(c){case "add":d+=b;e=!0;break;case "max":b>d&&(d=b,e=!0);break;case "min":b=this.fixedTime?(this.deltaTime=0,!0):!1},getDelta:function(){return 2==this.mode?this.fixedTime:this.elapsed},pause:function(){2!=this.mode&&(this.pauseStartTime= 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= "http://www.google-analytics.com/collect";this.shortedUrl=this.url=window.location.href;90=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 0b&&(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, 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!"), 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&&(a.length=15),a.data.length=a.length&&(a.length=20),a.data.length=a.length&&(a.length=24),a.data.length=a.length&&(a.length=19),a.data.length=a.length&&(a.length=14),a.data.length=a.length&&(a.length=9),a.data.lengtha?"0"+a:""+a};D.polyPoly=function(a,b){for(var c=0,d,e=0,f=a.length;e=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;pc&&e.yc)&&b< (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&&aa&&null!=this.poolList[a]? !0:!1},addPoolFor:function(a){var b=this.getComponentClassId(a),c=this.poolList.length;if(cc-1)for(--c;cthis.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=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.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= 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= !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(); 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, 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", 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!= 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, 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!= 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= a},get_textWidth:function(){if(null!=this.__canvas){for(var a=this.__measureText(),b=0,c=0;ca?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>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)& 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)), 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;cd||57=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"; var c=this.readDigits();if(0==c)return Q.createEnum(a,b);for(var d=[];0b||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!= this.get(this.pos++)||this.length-this.posa||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(); 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()); 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= 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>2)+(2<=p?p-1:0)),c=0;f>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&& (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= 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=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| 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;fh){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)<< 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<b;){var c=b++;a[c]=-1}b=0;for(c=this.base.length;b>3,e=Jb.alloc(d),f=0,p=0,h=0,g=0;gp;){var p=p+b,f=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, 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= 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)> 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); 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=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); 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)&& (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 ";e=0;f=12;continue}break;case 15:45==F&&45==a.charCodeAt(b+ 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))): 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== 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";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= a.__interfaces__;if(null!=c)for(var d=0,e=c.length;d=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; 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", 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;cthis.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)}, remove:function(a){a=E.indexOf(this.listeners,a,0);-1a.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; 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>>24:255;a.buffer.__srcContext.fillStyle="rgba("+((c&16711680)>>>16)+", "+ ((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)>>> 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>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;fd)c.__onData(a.response);else if(null==d)for(d=c.onIOError.listeners,f=c.onIOError.repeat,p=d.length,h=0;h=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;bd){if(0==d)break;b+=String.fromCharCode(d)}else if(224> 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.length2*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=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= 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.allocated2*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"); 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= this.heroSpeedVec=new Bc(1,0),b;b=Math.sqrt(a.x*a.x+a.y*a.y);0=this.pointsTimeout&&(this.pointsCounter=0,this.increasePoints())}, 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, 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), [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"]= 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= 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.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}, 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);be&&(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;fb){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= 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")): 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.__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, 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"]= 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= 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, 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+ 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== 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>>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], 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+ 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(), 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, 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>>16,pb=(Fa&65280)>>>8,sb=Fa&255;k.context.strokeStyle=null==Fa?"#000000":"rgba("+nb+", "+ 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= 0,Hb=ya.length/2|0;wb(Ea-Qa)*(Ka-Sa)-(Ga-Sa)* (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, 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= 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=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, 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, 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=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(); if(a.displayAsPassword){for(var b=b.length,c="",d=0;da.__worldAlpha?f.setProperty("opacity",null==a.__worldAlpha?"null":""+a.__worldAlpha,null):f.removeProperty("opacity"));e&&a.__worldClipChanged&& (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= !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|| 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|| 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)}; 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", "#"+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", "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|| 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, [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, 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= !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= 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, 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); 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= 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= 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, 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, 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);", " 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, "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) {", " 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= 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]; 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: 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, 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"== 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;", "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;", "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); 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= 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 ;", "}"];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);", " 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); 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, "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;", "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"]= 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, "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);", " 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__= "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, "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= ["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"]= 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, "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;", "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(" "); 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"); 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; 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= 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= 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? 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!= d&&0!=d.width&&0!=d.height){for(var d=0,e=a.__commands;dy;)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]; 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= 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/ 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? 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= !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;vc&&(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);fc&&(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);fc&&(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= 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);em;){var n=m++;g.push(e);g.push(f); 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(0l;)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;eMath.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)/ D,q=(t*w-q*z)/D,C=(n-x)*(n-x)+(q-u)+(q-u),19600(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+ 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++]= 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), 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, m=0,n=g.buckets.length;m>16&255)/255,(e>>8&255)/255,(e&255)/255]; 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= 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- 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, !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, 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>16&255)/255,(a>>8&255)/255,(a&255)/ 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;aa?(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>1;if(3>c)return[];var d=[],e;e=[];for(var f=0;f3*g)if(b){d=[];b=[];for(e=0;eh+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= 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= 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.5*this.size?a.bufferSubData(a.ARRAY_BUFFER,0,this.vertices):(b=this.vertices.subarray(0,4*this.currentBatchSize*this.vertSize), 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=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, 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); 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= 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=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()/ 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&&0a-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): Ub.set_cursor(L.ARROW);d=0;for(f=this.__mouseOutStack;d=c||(this.__inflateBounds(a-c-this.__halfStrokeWidth,b-c-this.__halfStrokeWidth),this.__inflateBounds(a+c+this.__halfStrokeWidth,b+c+this.__halfStrokeWidth), 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, 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<= 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):(athis.__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))}, __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, 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", 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__= 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"], __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"]= {__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= 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;ethis.__dragBounds.get_right()&&(b=this.__dragBounds.get_right()),athis.__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>>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(); 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__= ["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= 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", 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__= 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__= 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= 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, 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, 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__= 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, 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, 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, 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]= !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", "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"]; 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= 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, 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= 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)): (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", 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", 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"]= 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= 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__= 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; 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= 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)"); 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=a.split("?").length;e.open(b, 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;aa)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!= 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.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)}; 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()+ 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"); 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); 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)}, createMenuItems:function(){for(var a=K.get_instance().get("ui"),b,c=0,d=this.countItems;c=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); 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))}, 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, !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(" "), 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;ca)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))}, 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= 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()}, 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)}, 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"), 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, 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); 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)); 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; 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"), 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+ 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=this.timeout&&(this.counter=0,this.generateBarier())},generateBarier:function(){var a=D.randTo(1,100);25>=a?this.createOneBarier(): 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=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"), 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"); 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= !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, 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, 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; 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= 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, !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); 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=e&&b<=a||c>=e&&c<=a?!0:!1},onCollision:function(a){var b=w.get_instance().getComponentIn(a, 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(); 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= 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"); "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= 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=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"]= 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)}, 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); 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= 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;fthis.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+= 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)); 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, 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= .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= 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, !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; 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(), 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, .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, 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()))}, 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, {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= !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); 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))}, 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); 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, 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= 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?0c.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); 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, 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"]= 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= "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(); 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.posl;){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"; }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= !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&& (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", 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; 1.2a&&(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"); 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= "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(); 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(); 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= 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= 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(), 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."); 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, d,e){a=c*b.length;c=b.timeline;d=0;e=c.length;for(var f=e>>1;1>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:255f?f=0:255a?a=0:255>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);1e&&(e=0);1a&&(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* (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;cd&&(d+=1);return new Ob(d+b, 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:255f?f=0:255g?g=0:255a?a=0:255>>24&255)/ 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;1e&&(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);1g&&(g=0);1a&&(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; 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;cd&&(d+=1);return new Qb((a>>> 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"]= {__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= 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== 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= 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;cb&&(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; 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== 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), 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= 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, 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(), 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&& this._onUpdate(),this.dispatch(4),null!=this._onFoot&&this._onFoot());if(ne-n){this._apply(this._time,m);this.dispatch(3);null!=this._onUpdate&&this._onUpdate();this.dispatch(4);null!=this._onFoot&&this._onFoot(); 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< 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;dc)for(g=1-f.length;1>g;)h=g++,f[-h]._update(c);else for(g=0,h=f.length;ga)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= 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;bB.getTimer()-this.lastMoveTime&&this.movingByInertia()))},disableChildren:function(){for(var a=0,b=this.children;athis.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, 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||860eg;){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&& (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= !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; 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= ["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);", "}"];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"; 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"; 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, 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);