www.gusucode.com > 拯救精子游戏微信朋友圈小游戏源码程序 > 拯救精子游戏微信朋友圈小游戏源码程序/jingzi/js/60/game.min.js

    var b=b||{};b.B=b.B||{};b.e={};n=window;n=Object.prototype;delete window._p;b.Ob=function(a){return document.createElement(a)};b.Ja=function(a,c,d,e){a.addEventListener(c,d,e)};b.NK="undefined"!==typeof require&&require("fs");b.bN=function(a,c){if(a)if(a instanceof Array)for(var d=0,e=a.length;d<e&&!1!==c.call(void 0,a[d],d);d++);else for(d in a)if(!1===c.call(void 0,a[d],d))break};
b.dy=function(a){if(!a)return b.log("invalid URL"),!1;var c=a.indexOf("://");if(-1==c)return!1;c=a.indexOf("/",c+3);return(-1==c?a:a.substring(0,c))!=location.origin};
b.async={zJ:function(a){var c=this.IM;if(!c.aF){var d=c.length,e=c.dP,f=c.HO,g=f.ed,h=f.CM,k=f.TG,f=f.ska;if(a){if(c.aF=a,g)return g.call(h,a)}else{var m=Array.apply(null,arguments).slice(1),p=m.length;0==p?m=null:1==p&&(m=m[0]);e[this.index]=m;c.count--;k&&k.call(f,m,d-c.count,d);0==c.count&&g&&g.apply(h,[null,e])}}},mK:function(){},yga:function(a,c,d){var e=b.async;if(void 0!==d)"function"==typeof c&&(c={TG:c}),c.ed=d||c.ed;else if(void 0!==c)"function"==typeof c&&(c={ed:c});else if(void 0!==a)c=
{};else throw"arguments error!";var f=(d=a instanceof Array)?a.length:Object.keys(a).length;if(0==f)c.ed&&c.ed.call(c.CM,null);else{var g={length:f,count:f,HO:c,dP:d?[]:{}};b.bN(a,function(a,d){if(g.aF)return!1;var f=c.ed||c.TG?e.zJ.bind({IM:g,index:d}):e.mK;a(f,d)})}},map:function(a,c,d){var e=this,f=arguments.length;"function"==typeof c&&(c={MF:c});if(3===f)c.ed=d||c.ed;else if(2>f)throw"arguments error!";"function"==typeof c&&(c={MF:c});if(void 0!==d)c.ed=d||c.ed;else if(void 0===a)throw"arguments error!";
var g=(f=a instanceof Array)?a.length:Object.keys(a).length;if(0===g)c.ed&&c.ed.call(c.CM,null);else{var h={length:g,count:g,HO:c,dP:f?[]:{}};b.bN(a,function(a,d){if(h.aF)return!1;var f=c.ed?e.zJ.bind({IM:h,index:d}):e.mK;c.MF.call(c.w1,a,d,f)})}}};
b.path={join:function(){for(var a=arguments.length,c="",d=0;d<a;d++)c=(c+(""==c?"":"/")+arguments[d]).replace(/(\/|\\\\)$/,"");return c},bl:function(a){return(a=/(\.[^\.\/\?\\]*)(\?.*)?$/.exec(a))?a[1]:null},Hfa:function(a){if(a){var c=a.lastIndexOf(".");if(-1!==c)return a.substring(0,c)}return a},yZ:function(a,c){var d=a.indexOf("?");0<d&&(a=a.substring(0,d));d=/(\/|\\\\)([^(\/|\\\\)]+)$/g.exec(a.replace(/(\/|\\\\)$/,""));if(!d)return null;d=d[2];return c&&a.substring(a.length-c.length).toLowerCase()==
c.toLowerCase()?d.substring(0,d.length-c.length):d},dirname:function(a){return a.replace(/((.*)(\/|\\|\\\\))?(.*?\..*$)?/,"$2")},DM:function(a,c){c=c||"";var d=a.indexOf("?"),e="";0<d&&(e=a.substring(d),a=a.substring(0,d));d=a.lastIndexOf(".");return 0>d?a+c+e:a.substring(0,d)+c+e},Yo:function(a,c,d){if(0==c.indexOf("."))return this.DM(a,c);var e=a.indexOf("?"),f="";d=d?this.bl(a):"";0<e&&(f=a.substring(e),a=a.substring(0,e));e=a.lastIndexOf("/");return a.substring(0,0>=e?0:e+1)+c+d+f}};
b.V={TK:{},Fw:{},$W:{},Ml:{},Ly:"",vZ:"",Xf:{},Mx:function(){return window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP")},yK:function(a){var c=a[0],d=a[1],e=a[2],f=["",null,null];if(1===a.length)f[1]=c instanceof Array?c:[c];else if(2===a.length)"function"==typeof d?(f[1]=c instanceof Array?c:[c],f[2]=d):(f[0]=c||"",f[1]=d instanceof Array?d:[d]);else if(3===a.length)f[0]=c||"",f[1]=d instanceof Array?d:[d],f[2]=e;else throw"arguments error to load js!";return f},d2:function(a,
c,d){var e=this,f=e.TK,g=e.yK(arguments);-1<navigator.userAgent.indexOf("Trident/5")?e.ZK(g[0],g[1],0,g[2]):b.async.map(g[1],function(a,c,d){a=b.path.join(g[0],a);if(f[a])return d(null);e.AJ(a,!1,d)},g[2])},zO:function(a,c,d){var e=this.cX(),f=this.yK(arguments);this.d2(f[0],f[1],function(a){if(a)throw a;e.parentNode.removeChild(e);if(f[2])f[2]()})},AJ:function(a,c,d){var e=document,f=b.Ob("script");f.async=c;f.src=a;this.TK[a]=!0;b.Ja(f,"load",function(){this.removeEventListener("load",arguments.callee,
!1);d()},!1);b.Ja(f,"error",function(){d("Load "+a+" failed!")},!1);e.body.appendChild(f)},ZK:function(a,c,d,e){if(d>=c.length)e&&e();else{var f=this;f.AJ(b.path.join(a,c[d]),!1,function(g){if(g)return e(g);f.ZK(a,c,d+1,e)})}},cX:function(){var a=document,c=a.getElementById("cocos2d_loadJsImg");if(!c){c=b.Ob("img");b.aL&&(c.src=b.aL);a=a.getElementById(b.Ic.Pe.id);a.style.backgroundColor="black";a.parentNode.appendChild(c);var d=getComputedStyle?getComputedStyle(a):a.currentStyle;d||(d={width:a.width,
height:a.height});c.style.left=a.offsetLeft+(parseFloat(d.width)-c.width)/2+"px";c.style.top=a.offsetTop+(parseFloat(d.height)-c.height)/2+"px";c.style.position="absolute"}return c},sy:function(a,c){if(b.NK)require("fs").Pga(a,function(a,d){a?c(a):c(null,d.toString())});else{var d=this.Mx(),e="load "+a+" failed!";d.open("GET",a,!0);/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)?(d.setRequestHeader("Accept-Charset","utf-8"),d.onreadystatechange=function(){4==d.readyState&&200==
d.status?c(null,d.responseText):c(e)}):(d.overrideMimeType&&d.overrideMimeType("text/plain; charset\x3dutf-8"),d.onload=function(){4==d.readyState&&200==d.status?c(null,d.responseText):c(e)});d.send(null)}},$K:function(a){if(b.NK)return require("fs").Qga(a).toString();var c=this.Mx();c.open("GET",a,!1);/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)?c.setRequestHeader("Accept-Charset","utf-8"):c.overrideMimeType&&c.overrideMimeType("text/plain; charset\x3dutf-8");c.send(null);
return 4==!c.readyState||200!=c.status?null:c.responseText},AO:function(a,c){this.sy(a,function(d,e){try{d?c(d):c(null,JSON.parse(e))}catch(f){throw"load json ["+a+"] failed : "+f;}})},vJ:function(a){return null!=/(\.png)|(\.jpg)|(\.bmp)|(\.jpeg)|(\.gif)/.exec(a)},Bp:function(a,c,d){var e=!0;void 0!==d?e=null==c.dy?e:c.dy:void 0!==c&&(d=c);var f=new Image;e&&"file://"!=location.origin&&(f.crossOrigin="Anonymous");b.Ja(f,"load",function(){this.removeEventListener("load",arguments.callee,!1);this.removeEventListener("error",
arguments.callee,!1);d&&d(null,f)});b.Ja(f,"error",function(){this.removeEventListener("error",arguments.callee,!1);d&&d("load image failed")});f.src=a;return f},dX:function(a,c,d){var e=this,f=null;(c=a.type)?(c="."+c.toLowerCase(),f=a.src?a.src:a.name+c):(f=a,c=b.path.bl(f));var g=e.Xf[f];if(g)return d(null,g);g=e.Fw[c.toLowerCase()];if(!g)return b.error("loader for ["+c+"] not exists!"),d();c=e.M0(g.Cx?g.Cx():e.Ly,f);g.load(c,f,a,function(a,c){a?(b.log(a),e.Xf[f]=null,delete e.Xf[f],d()):(e.Xf[f]=
c,d(null,c))})},M0:function(a,c){var d=this.$W,e=b.path;if(void 0!==a&&void 0===c){c=a;var f=e.bl(c),f=f?f.toLowerCase():"";a=(f=this.Fw[f])?f.Cx?f.Cx():this.Ly:this.Ly}c=b.path.join(a||"",c);if(c.match(/[\/(\\\\)]lang[\/(\\\\)]/i)){if(d[c])return d[c];e=e.bl(c)||"";c=d[c]=c.substring(0,c.length-e.length)+"_"+b.rb.language+e}return c},load:function(a,c,d){if(void 0!==d)"function"==typeof c&&(c={TG:c});else if(void 0!==c)"function"==typeof c&&(d=c,c={});else if(void 0!==a)c={};else throw"arguments error!";
c.ed=function(a,c){a&&b.log(a);d&&d(c)};a instanceof Array||(a=[a]);c.MF=this.dX;c.w1=this;b.async.map(a,c)},GK:function(a,c){var d=this.Ml,e=[],f;for(f in a){var g=a[f];d[f]=g;e.push(g)}this.load(e,c)},Dfa:function(a,c){var d=this,e=d.Fd(a);e?d.GK(e.filenames,c):d.load(a,function(a){d.GK(a[0].filenames,c)})},Lj:function(a,c){if(a&&c){if("string"==typeof a)return this.Fw[a.trim().toLowerCase()]=c;for(var d=0,e=a.length;d<e;d++)this.Fw["."+a[d].trim().toLowerCase()]=c}},Fd:function(a){return this.Xf[a]||
this.Xf[this.Ml[a]]},Ki:function(a){var c=this.Xf,d=this.Ml;delete c[a];delete c[d[a]];delete d[a]},Zga:function(){var a=this.Xf,c=this.Ml,d;for(d in a)delete a[d];for(d in c)delete c[d]}};
(function(){function a(){b.ra&&b.Ic.zk&&b.ra.dispatchEvent(b.Ic.zk)}function c(){b.ra&&b.Ic.yk&&b.ra.dispatchEvent(b.Ic.yk)}var d=window,e,f;"undefined"!==typeof document.hidden?(e="hidden",f="visibilitychange"):"undefined"!==typeof document.mozHidden?(e="mozHidden",f="mozvisibilitychange"):"undefined"!==typeof document.msHidden?(e="msHidden",f="msvisibilitychange"):"undefined"!==typeof document.webkitHidden&&(e="webkitHidden",f="webkitvisibilitychange");e?b.Ja(document,f,function(){document[e]?c():
a()},!1):(b.Ja(d,"blur",c,!1),b.Ja(d,"focus",a,!1));"onpageshow"in window&&"onpagehide"in window&&(b.Ja(d,"pagehide",c,!1),b.Ja(d,"pageshow",a,!1));f=d=null})();b.log=b.warn=b.error=b.assert=function(){};b.MM=function(a,c){for(var d=["webgl","experimental-webgl","webkit-3d","moz-webgl"],e=null,f=0;f<d.length;++f){try{e=a.getContext(d[f],c)}catch(g){}if(e)break}return e};
b.MW=function(a,c){b.Da=0;b.Z=1;var d=b.rb={};d.SR="en";d.F6="zh";d.G6="fr";d.J6="it";d.H6="de";d.Q6="es";d.P6="ru";d.L6="ko";d.K6="ja";d.I6="hu";d.O6="pt";d.E6="ar";d.M6="no";d.N6="pl";d.zS="Windows";d.IH="iOS";d.JH="OS X";d.xS="UNIX";d.wS="Linux";d.vS="Android";d.yS="Unknown";d.CQ="wechat";d.yQ="androidbrowser";d.lz="ie";d.zQ="qqbrowser";d.gH="mqqbrowser";d.AQ="ucbrowser";d.O5="360browser";d.P5="baiduboxapp";d.fH="baidubrowser";d.Q5="maxthon";d.mz="opera";d.R5="miuibrowser";d.fq="firefox";d.nz=
"safari";d.kz="chrome";d.BQ="unknown";d.uda=!1;var e=[d.fH,d.mz,d.fq,d.kz,d.nz],f=[d.fH,d.mz,d.fq,d.kz,d.nz,d.AQ,d.zQ,d.gH,d.lz],g=window,h=g.navigator,k=document.documentElement,m=h.userAgent.toLowerCase();d.Dj=-1!=m.indexOf("mobile")||-1!=m.indexOf("android");var p=h.language,p=(p=p?p:h.browserLanguage)?p.split("-")[0]:d.SR;d.language=p;var p=d.BQ,r=m.match(/micromessenger|qqbrowser|mqqbrowser|ucbrowser|360browser|baiduboxapp|baidubrowser|maxthon|trident|opera|miuibrowser|firefox/i)||m.match(/chrome|safari/i);
r&&0<r.length&&(p=r[0].toLowerCase(),"micromessenger"==p?p=d.CQ:"safari"===p&&m.match(/android.*applewebkit/)?p=d.yQ:"trident"==p&&(p=d.lz));d.Am=p;d.KY=-1<f.indexOf(d.Am);f=parseInt(a[c.Ky]);p=b.Z;r=b.Ob("Canvas");b.Bs=!0;e=-1==e.indexOf(d.Am);if(1===f||0===f&&(d.Dj||e))p=b.Da;p!=b.Z||g.WebGLRenderingContext&&b.MM(r,{stencil:!0,preserveDrawingBuffer:!0})||(0==f?p=b.Da:b.Bs=!1);if(p==b.Da)try{r.getContext("2d")}catch(s){b.Bs=!1}b.A=p;try{d.Ww=!!new (g.AudioContext||g.webkitAudioContext||g.mozAudioContext)}catch(u){d.Ww=
!1}try{var t=d.localStorage=g.localStorage;t.setItem("storage","");t.removeItem("storage");t=null}catch(v){"SECURITY_ERR"!==v.name&&"QuotaExceededError"!==v.name||b.warn("Warning: localStorage isn't enabled. Please confirm browser cookie or privacy option"),d.localStorage=function(){}}t=d.Zs={canvas:!0};b.A==b.Z&&(t.opengl=!0);void 0!==k.ontouchstart||h.msPointerEnabled?t.touches=!0:void 0!==k.onmouseup&&(t.mouse=!0);void 0!==k.onkeyup&&(t.keyboard=!0);if(g.DeviceMotionEvent||g.DeviceOrientationEvent)t.accelerometer=
!0;g=m.match(/(iPad|iPhone|iPod)/i)?!0:!1;m=m.match(/android/i)||h.platform.match(/android/i)?!0:!1;k=d.yS;-1!=h.appVersion.indexOf("Win")?k=d.zS:g?k=d.IH:-1!=h.appVersion.indexOf("Mac")?k=d.JH:-1!=h.appVersion.indexOf("X11")?k=d.xS:-1!=h.appVersion.indexOf("Linux")?k=d.wS:m&&(k=d.vS);d.$F=k;d.jaa=function(){};d.h$=function(){};d.tha=function(){};d.f$=function(){var a;a=""+("isMobile : "+this.Dj+"\r\n");a+="language : "+this.language+"\r\n";a+="browserType : "+this.Am+"\r\n";a+="capabilities : "+
JSON.stringify(this.Zs)+"\r\n";a+="os : "+this.$F+"\r\n";b.log(a)}};b.c7=0;b.d7=1;b.a7=2;b.b7=3;b.De=null;b.k=null;b.Ya=null;b.TV=null;b.Gw=!1;b.RL=!1;
b.QL=function(a){var c,d;if(!b.RL){b.RL=!0;var e=window;e.mG=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame;var f=b.vb(a)||b.vb("#"+a),g;"CANVAS"==f.tagName?(c=c||f.width,d=d||f.height,g=b.Cm=b.Ob("DIV"),a=b.Ya=f,a.parentNode.insertBefore(g,a),a.tM(g),g.setAttribute("id","Cocos2dGameContainer")):("DIV"!=f.tagName&&b.log("Warning: target element is not a DIV or CANVAS"),c=c||f.clientWidth,d=d||f.clientHeight,g=
b.Cm=f,a=b.Ya=b.vb(b.Ob("CANVAS")),f.appendChild(a));a.rM("gameCanvas");a.setAttribute("width",c||480);a.setAttribute("height",d||320);a.setAttribute("tabindex",99);a.style.outline="none";f=g.style;f.width=(c||480)+"px";f.height=(d||320)+"px";f.margin="0 auto";f.position="relative";f.overflow="hidden";g.top="100%";b.A==b.Z&&(b.k=b.Eka=b.MM(a,{stencil:!0,preserveDrawingBuffer:!0,antialias:!b.rb.Dj,alpha:!1}));b.k?(e.gl=b.k,b.De=new b.gR(b.k),b.Gw=!0,b.Ba.RW(),b.Ld.Sr()):(b.k=a.getContext("2d"),b.fX=
b.k,b.k.translate(0,a.height),b.De=b.qH?new b.qH(b.k):null);b.TV=g;b.log(b.xz);b.aY();b.rb.Dj&&(c=b.Ob("style"),c.type="text/css",document.body.appendChild(c),c.textContent="body,canvas,div{ -moz-user-select: none;-webkit-user-select: none;-ms-user-select: none;-khtml-user-select: none;-webkit-tap-highlight-color:rgba(0,0,0,0);}");b.view=b.vz.ZB();b.hO.S2(b.Ya);b.D=b.Wa.ZB();b.D.BG&&b.D.BG(b.view);b.ju=b.D.R;b.Cha=new b.Su;b.E2=new b.LS}};
b.wB=function(){if(b.A!==b.Z)throw"This feature supports WebGL render mode only.";};b.MK=!1;b.aY=function(){b.MK=!1;b.Ya.oncontextmenu=function(){if(!b.MK)return!1}};
b.Ic={jH:0,WQ:1,d6:2,VQ:3,qz:4,kH:5,iH:6,qu:"game_on_hide",kq:"game_on_show",yk:null,zk:null,z8:[],Yg:{$E:"engineDir",R9:"dependencies",bt:"debugMode",s4:"showFPS",zx:"frameRate",id:"id",Ky:"renderMode",x1:"jsList",HZ:"classReleaseMode"},nL:!1,WC:!1,lc:!0,nC:null,Pe:null,ZF:null,bga:null,oia:function(a){this.Pe[this.Yg.zx]=a;this.nC&&clearInterval(this.nC);this.lc=!0;this.mD()},mD:function(){var a=this,c,d=a.Pe,e=a.Yg,f=window,g=d[e.zx],h=b.D;h.A3(d[e.s4]);f.mG&&60==g?(c=function(){a.lc||(h.BO(),
f.mG(c))},f.mG(c)):(c=function(){h.BO()},a.nC=setInterval(c,1E3/g));a.lc=!1},k3:function(a){function c(){a&&(d.Pe[d.Yg.id]=a);d.nL?b.Bs&&(d.nV=setInterval(function(){d.WC&&(b.QL(d.Pe[d.Yg.id]),d.mD(),d.yk=d.yk||new b.Pi(d.qu),d.yk.setUserData(d),d.zk=d.zk||new b.Pi(d.kq),d.zk.setUserData(d),d.ZF(),clearInterval(d.nV))},10)):d.I2(function(){b.Bs&&(b.QL(d.Pe[d.Yg.id]),d.mD(),d.yk=d.yk||new b.Pi(d.qu),d.yk.setUserData(d),d.zk=d.zk||new b.Pi(d.kq),d.zk.setUserData(d),d.ZF())})}var d=this;document.body?
c():b.Ja(window,"load",function(){this.removeEventListener("load",arguments.callee,!1);c()},!1)},IW:function(){function a(a){a[c.$E]=a[c.$E]||"frameworks/cocos2d-html5";null==a[c.bt]&&(a[c.bt]=0);a[c.zx]=a[c.zx]||60;null==a[c.Ky]&&(a[c.Ky]=1);return a}var c=this.Yg;if(document.ccConfig)this.Pe=a(document.ccConfig);else try{for(var d=document.getElementsByTagName("script"),e=0;e<d.length;e++){var f=d[e].getAttribute("cocos");if(""==f||f)break}var g,h,k;if(e<d.length){if(g=d[e].src)k=/(.*)\//.exec(g)[0],
b.V.Ly=k,g=b.path.join(k,"./js/60/project.js");h=b.V.$K(g)}h||(h=b.V.$K("./js/60/project.js"));var m=JSON.parse(h);this.Pe=a(m||{})}catch(p){b.log("Failed to read or parse project.js"),this.Pe=a({})}b.MW(this.Pe,c)},YW:{},AK:function(a,c,d){var e=this.YW;if(e[c])return null;d=d||"";var f=[],g=a[c];if(!g)throw"can not find module ["+c+"]";c=b.path;for(var h=0,k=g.length;h<k;h++){var m=g[h];if(!e[m]){var p=c.bl(m);p?".js"==p.toLowerCase()&&f.push(c.join(d,m)):(p=this.AK(a,m,d))&&(f=f.concat(p));e[m]=1}}return f},
I2:function(a){var c=this,d=c.Pe,e=c.Yg,f=d[e.$E],g=b.V;if(b.Bs){c.nL=!0;var h=d[e.x1]||[];b.ja?g.zO("",h,function(d){if(d)throw d;c.WC=!0;a&&a()}):(e=b.path.join(f,"moduleConfig.json"),g.AO(e,function(e,g){if(e)throw e;var p=d.modules||[],r=g.module,s=[];b.A==b.Z?p.splice(0,0,"shaders"):0>p.indexOf("core")&&p.splice(0,0,"core");for(var u=0,t=p.length;u<t;u++){var v=c.AK(r,p[u],f);v&&(s=s.concat(v))}s=s.concat(h);b.V.zO(s,function(d){if(d)throw d;c.WC=!0;a&&a()})}))}else b.error("Can not support render!")}};
b.Ic.IW();b.e={$G:"cc.ActionManager.addAction(): action must be non-null",uQ:"cocos2d: removeAction: Target not found",B5:"cc.ActionManager.removeActionByTag(): an invalid tag",C5:"cc.ActionManager.removeActionByTag(): target must be non-null",sQ:"cc.ActionManager.getActionByTag(): an invalid tag",tQ:"cocos2d : getActionByTag(tag \x3d %s): Action not found",KZ:"cocos2d: **** WARNING **** CC_ENABLE_PROFILERS is defined. Disable it when you finish profiling (from ccConfig.js)",LZ:"Expected 'data' dict, but not found. Config file: %s",
MZ:"Please load the resource first : %s",bR:"cocos2d: Director: Error in gettimeofday",cR:"cocos2d: Director: unrecognized projection",o6:"cocos2d: Director: unrecognized projection",aR:"cocos2d: Director: Error in gettimeofday",$Q:"running scene should not null",pH:"the scene should not null",Uo:"element type is wrong!",hT:"CCSheduler#scheduleCallback. Callback already scheduled. Updating interval from:%s to %s",iT:"cc.scheduler.scheduleCallbackForTarget(): callback_fn should be non-null.",jT:"cc.scheduler.scheduleCallbackForTarget(): target should be non-null.",
fT:"cc.Scheduler.pauseTarget():target should be non-null",gT:"cc.Scheduler.resumeTarget():target should be non-null",eT:"cc.Scheduler.isTargetPaused():target should be non-null",hS:"getZOrder is deprecated. Please use getLocalZOrder instead.",sS:"setZOrder is deprecated. Please use setLocalZOrder instead.",fS:"RotationX !\x3d RotationY. Don't know which one to return",gS:"ScaleX !\x3d ScaleY. Don't know which one to return",bS:"An Node can't be added as a child of itself.",cS:"child already added. It can't be added again",
dS:"child must be non-null",mS:"removeFromParentAndCleanup is deprecated. Use removeFromParent instead",kS:"argument tag is an invalid tag",lS:"cocos2d: removeChildByTag(tag \x3d %s): child not found!",jS:"removeAllChildrenWithCleanup is deprecated. Use removeAllChildren instead",tS:"cc.Node.stopActionBy(): argument tag an invalid tag",eS:"cc.Node.getActionByTag(): argument tag is an invalid tag",oS:"resumeSchedulerAndActions is deprecated, please use resume instead.",iS:"pauseSchedulerAndActions is deprecated, please use pause instead.",
aS:"Unknown callback function",nS:"child must be non-null",pS:"cc.Node.runAction(): action must be non-null",qS:"callback function must be non-null",rS:"interval must be positive",U6:"cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",wQ:"cc.AtlasNode.updateAtlasValues(): Shall be overridden in subclasses",L5:"",bH:"cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",KU:"cc._EventListenerKeyboard.checkAvailable(): Invalid EventListenerKeyboard!",MU:"cc._EventListenerTouchOneByOne.checkAvailable(): Invalid EventListenerTouchOneByOne!",
LU:"cc._EventListenerTouchAllAtOnce.checkAvailable(): Invalid EventListenerTouchAllAtOnce!",JU:"cc._EventListenerAcceleration.checkAvailable(): _onAccelerationEvent must be non-nil",oR:"Invalid parameter.",kv:"Don't call this method if the event is for touch.",s_:"Invalid scene graph priority!",t_:"0 priority is forbidden for fixed priority since it's used for scene graph based priority.",x_:"Invalid listener type!",y_:"Can't set fixed priority with scene graph based listener.",u_:"Invalid parameters.",
v_:"listener must be a cc.EventListener object when adding a fixed priority listener",w_:"The listener has been registered, please don't register it again.",VR:"parameters should not be ending with null in Javascript",WR:"Invalid index in MultiplexLayer switchTo message",XR:"Invalid index in MultiplexLayer switchTo message",UR:"cc.Layer.addLayer(): layer should be non-null",hR:"Resolution not valid",iR:"should set resolutionPolicy",k1:"The touches is more than MAX_TOUCHES, nUnusedIndex \x3d %s",WP:"cc.swap is being modified from original macro, please check usage",
$o:"WebGL error %s",jZ:"cocos2d: cc.AnimationCache: No animations were found in provided dictionary.",kZ:"cc.AnimationCache. Invalid animation format",rZ:"cc.AnimationCache.addAnimations(): File could not be found",lZ:"cocos2d: cc.AnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",mZ:"cocos2d: cc.AnimationCache: Animation '%s' refers to frame '%s' which is not currently in the cc.SpriteFrameCache. This frame will not be added to the animation.",
nZ:"cocos2d: cc.AnimationCache: None of the frames for animation '%s' were found in the cc.SpriteFrameCache. Animation is not being added to the Animation Cache.",oZ:"cocos2d: cc.AnimationCache: An animation in your dictionary refers to a frame which is not in the cc.SpriteFrameCache. Some or all of the frames for the animation '%s' may be missing.",pZ:"cocos2d: CCAnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",qZ:"cocos2d: cc.AnimationCache: Animation '%s' refers to frame '%s' which is not currently in the cc.SpriteFrameCache. This frame will not be added to the animation.",
sZ:"cc.AnimationCache.addAnimations(): Invalid texture file name",GT:"cc.Sprite.reorderChild(): this child is not in children list",yT:"cc.Sprite.ignoreAnchorPointForPosition(): it is invalid in cc.Sprite when using SpriteBatchNode",JT:"cc.Sprite.setDisplayFrameWithAnimationName(): Frame not found",KT:"cc.Sprite.setDisplayFrameWithAnimationName(): Invalid frame index",IT:"setDisplayFrame is deprecated, please use setSpriteFrame instead.",rT:"cc.Sprite._updateBlendFunc(): _updateBlendFunc doesn't work when the sprite is rendered using a cc.CCSpriteBatchNode",
AT:"cc.Sprite.initWithSpriteFrame(): spriteFrame should be non-null",BT:"cc.Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null",CT:" is null, please check.",zT:"cc.Sprite.initWithFile(): filename should be non-null",LT:"cc.Sprite.setDisplayFrameWithAnimationName(): animationName must be non-null",HT:"cc.Sprite.reorderChild(): child should be non-null",sT:"cc.Sprite.addChild(): cc.Sprite only supports cc.Sprites as children when using cc.SpriteBatchNode",tT:"cc.Sprite.addChild(): cc.Sprite only supports a sprite using same texture as children when using cc.SpriteBatchNode",
uT:"cc.Sprite.addChild(): child should be non-null",NT:"cc.Sprite.texture setter: Batched sprites should use the same texture as the batchnode",q7:"cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",ET:"cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",vT:"cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",wT:"cc.SpriteBatchNode.addChild(): cc.Sprite is not using the same texture",
DT:"Sprite.initWithTexture(): Argument must be non-nil ",MT:"Invalid spriteFrameName",OT:"Invalid argument: cc.Sprite.texture setter expects a CCTexture2D.",r7:"cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",FT:"cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",xT:"cc.SpriteBatchNode.addChild(): child should be non-null",kT:"cc.SpriteBatchNode.addQuadFromSprite(): SpriteBatchNode only supports cc.Sprites as children",mT:"cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from %s to %s.",
nT:"cocos2d: WARNING: Not enough memory to resize the atlas",pT:"cc.SpriteBatchNode.addChild(): Child doesn't belong to Sprite",oT:"cc.SpriteBatchNode.addChild(): sprite batch node should contain the child",lT:"cc.SpriteBatchNode.addQuadFromSprite(): child should be non-null",qT:"cc.SpriteBatchNode.addChild():child should be non-null",x4:"cocos2d: WARNING: originalWidth/Height not found on the cc.SpriteFrame. AnchorPoint won't work as expected. Regenrate the .plist",z4:"cocos2d: WARNING: an alias with name %s already exists",
w4:"cocos2d: WARNING: Sprite frame: %s has already been added by another source, please fix name conflit",C4:"cocos2d: cc.SpriteFrameCahce: Frame %s not found",y4:"Please load the resource first : %s",A4:"cc.SpriteFrameCache.addSpriteFrames(): plist should be non-null",B4:"Argument must be non-nil",pz:"cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",LQ:"cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
HQ:"cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",KQ:"Sprite.initWithTexture(): Argument must be non-nil ",IQ:"cc.Sprite.addChild(): child should be non-null",NQ:"Invalid spriteFrameName",OQ:"Invalid argument: cc.Sprite texture setter expects a CCTexture2D.",PQ:"cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",MQ:"cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",JQ:"cc.SpriteBatchNode.addChild(): child should be non-null",
hU:"cocos2d: Could not open file: %s",tI:"cc.TextureAtlas.insertQuad(): invalid totalQuads",iU:"cc.TextureAtlas.initWithTexture():texture should be non-null",sU:"cc.TextureAtlas.updateQuad(): quad should be non-null",tU:"cc.TextureAtlas.updateQuad(): Invalid index",lU:"cc.TextureAtlas.insertQuad(): Invalid index",mU:"cc.TextureAtlas.insertQuad(): Invalid index + amount",jU:"cc.TextureAtlas.insertQuadFromIndex(): Invalid newIndex",kU:"cc.TextureAtlas.insertQuadFromIndex(): Invalid fromIndex",qU:"cc.TextureAtlas.removeQuadAtIndex(): Invalid index",
rU:"cc.TextureAtlas.removeQuadsAtIndex(): index + amount out of bounds",nU:"cc.TextureAtlas.moveQuadsFromIndex(): move is out of bounds",oU:"cc.TextureAtlas.moveQuadsFromIndex(): Invalid newIndex",pU:"cc.TextureAtlas.moveQuadsFromIndex(): Invalid oldIndex",N4:"TextureCache:addPVRTCImage does not support on HTML5",L4:"TextureCache:addPVRTCImage does not support on HTML5",M4:"addPVRImage does not support on HTML5",O4:"cocos2d: Couldn't add UIImage in TextureCache",Q4:"cocos2d: '%s' id\x3d%s %s x %s",
YP:"cocos2d: '%s' id\x3d HTMLCanvasElement %s x %s",R4:"cocos2d: TextureCache dumpDebugInfo: %s textures, HTMLCanvasElement for %s KB (%s MB)",P4:"cc.Texture.addUIImage(): image should be non-null",ZT:"initWithETCFile does not support on HTML5",cU:"initWithPVRFile does not support on HTML5",eU:"initWithPVRTCData does not support on HTML5",VT:"cc.Texture.addImage(): path should be non-null",aU:"cocos2d: cc.Texture2D. Can't create Texture. UIImage is nil",bU:"cocos2d: WARNING: Image (%s x %s) is bigger than the supported %s x %s",
gU:"initWithString isn't supported on cocos2d-html5",$T:"initWithETCFile does not support on HTML5",dU:"initWithPVRFile does not support on HTML5",fU:"initWithPVRTCData does not support on HTML5",XT:"bitsPerPixelForFormat: %s, cannot give useful result, it's a illegal pixel format",UT:"cocos2d: cc.Texture2D: Using RGB565 texture since image has no alpha",WT:"cc.Texture.addImage(): path should be non-null",YT:"NSInternalInconsistencyException",Nc:"Missing file: %s",RO:"cc.radiansToDegress() should be called cc.radiansToDegrees()",
kA:"Rect width exceeds maximum margin: %s",jA:"Rect height exceeds maximum margin: %s",pR:"If program goes here, there should be event in dispatch.",qR:"_inDispatch should be 1 here."};
b.ow=function(a){if(b.Ya){var c=b.eX,d=document;if(!c){var e=d.createElement("Div"),c=e.style;e.setAttribute("id","logInfoDiv");b.Ya.parentNode.appendChild(e);e.setAttribute("width","200");e.setAttribute("height",b.Ya.height);c.zIndex="99999";c.position="absolute";c.top="0";c.left="0";c=b.eX=d.createElement("textarea");d=c.style;c.setAttribute("rows","20");c.setAttribute("cols","30");c.setAttribute("disabled",!0);e.appendChild(c);d.backgroundColor="transparent";d.borderBottom="1px solid #cccccc";
d.borderRightWidth="0px";d.borderLeftWidth="0px";d.borderTopWidth="0px";d.borderTopStyle="none";d.borderRightStyle="none";d.borderLeftStyle="none";d.padding="0px";d.margin=0}a="string"==typeof a?a:JSON.stringify(a);c.value=c.value+a+"\r\n";c.scrollTop=c.scrollHeight}};b.$v=function(a){if("object"===typeof a)try{return JSON.stringify(a)}catch(c){return""}else return a};
console.log&&(b.log=function(a){for(var c=1;c<arguments.length;c++)a=a.replace(/(%s)|(%d)/,b.$v(arguments[c]));console.log(a)},b.warn=console.warn?function(a){for(var c=1;c<arguments.length;c++)a=a.replace(/(%s)|(%d)/,b.$v(arguments[c]));console.warn(a)}:b.log,b.error=console.error?function(a){for(var c=1;c<arguments.length;c++)a=a.replace(/(%s)|(%d)/,b.$v(arguments[c]));console.error(a)}:b.log,b.assert=function(a,c){if(!a&&c){for(var d=2;d<arguments.length;d++)c=c.replace(/(%s)|(%d)/,b.$v(arguments[d]));
throw c;}});var q=b.Ic.Pe[b.Ic.Yg.bt],A=b.Ic;console.log&&q===A.WQ||(b.log=q==A.qz?b.ow.bind(b):function(){});q&&q!=A.jH&&q!=A.VQ&&q!=A.iH||(b.warn=function(){});q!=A.qz&&q!=A.kH&&console.warn||(b.warn=b.ow.bind(b));q&&q!=A.jH?q!=A.qz&&q!=A.kH&&q!=A.iH&&console.error||(b.error=b.ow.bind(b),b.assert=function(a,c){if(!a&&c){for(var d=2;d<arguments.length;d++)c=c.replace("%s",arguments[d]);b.ow(c)}}):(b.error=function(){},b.assert=function(){});b.V.b2=function(a,c){var d=this,e=this.Mx(),f="load "+a+" failed!";e.open("GET",a,!0);/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)?(e.setRequestHeader("Accept-Charset","x-user-defined"),e.onreadystatechange=function(){if(4==e.readyState&&200==e.status){var a=b.xJ(e.responseBody);c(null,d.Sw(a))}else c(f)}):(e.overrideMimeType&&e.overrideMimeType("text/plain; charset\x3dx-user-defined"),e.onload=function(){4==e.readyState&&200==e.status?c(null,d.Sw(e.responseText)):c(f)});
e.send(null)};b.V.Sw=function(a){if(!a)return null;for(var c=new Uint8Array(a.length),d=0;d<a.length;d++)c[d]=a.charCodeAt(d)&255;return c};
b.V.Efa=function(a){var c=this.Mx(),d="load "+a+" failed!";c.open("GET",a,!1);a=null;if(/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)){c.setRequestHeader("Accept-Charset","x-user-defined");c.send(null);if(200!=c.status)return b.log(d),null;(c=b.xJ(c.responseBody))&&(a=this.Sw(c))}else{c.overrideMimeType&&c.overrideMimeType("text/plain; charset\x3dx-user-defined");c.send(null);if(200!=c.status)return b.log(d),null;a=this.Sw(c.responseText)}return a};
var Uint8Array=Uint8Array||Array;
if(/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)){var aa=b.Ob("script");aa.type="text/vbscript";aa.textContent='\x3c!-- IEBinaryToArray_ByteStr --\x3e\r\nFunction IEBinaryToArray_ByteStr(Binary)\r\n   IEBinaryToArray_ByteStr \x3d CStr(Binary)\r\nEnd Function\r\nFunction IEBinaryToArray_ByteStr_Last(Binary)\r\n   Dim lastIndex\r\n   lastIndex \x3d LenB(Binary)\r\n   if lastIndex mod 2 Then\r\n       IEBinaryToArray_ByteStr_Last \x3d Chr( AscB( MidB( Binary, lastIndex, 1 ) ) )\r\n   Else\r\n       IEBinaryToArray_ByteStr_Last \x3d ""\r\n   End If\r\nEnd Function\r\n';document.body.appendChild(aa);
b.xJ=function(a){for(var c={},d=0;256>d;d++)for(var e=0;256>e;e++)c[String.fromCharCode(d+256*e)]=String.fromCharCode(d)+String.fromCharCode(e);d=IEBinaryToArray_ByteStr(a);a=IEBinaryToArray_ByteStr_Last(a);return d.replace(/[\s\S]/g,function(a){return c[a]})+a}};b=b||{};b.aL="data:image/gif;base64,R0lGODlhEAAQALMNAD8/P7+/vyoqKlVVVX9/fxUVFUBAQGBgYMDAwC8vL5CQkP///wAAAP///wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAANACwAAAAAEAAQAAAEO5DJSau9OOvNex0IMnDIsiCkiW6g6BmKYlBFkhSUEgQKlQCARG6nEBwOgl+QApMdCIRD7YZ5RjlGpCUCACH5BAUAAA0ALAAAAgAOAA4AAAQ6kLGB0JA4M7QW0hrngRllkYyhKAYqKUGguAws0ypLS8JxCLQDgXAIDg+FRKIA6v0SAECCBpXSkstMBAAh+QQFAAANACwAAAAACgAQAAAEOJDJORAac6K1kDSKYmydpASBUl0mqmRfaGTCcQgwcxDEke+9XO2WkxQSiUIuAQAkls0n7JgsWq8RACH5BAUAAA0ALAAAAAAOAA4AAAQ6kMlplDIzTxWC0oxwHALnDQgySAdBHNWFLAvCukc215JIZihVIZEogDIJACBxnCSXTcmwGK1ar1hrBAAh+QQFAAANACwAAAAAEAAKAAAEN5DJKc4RM+tDyNFTkSQF5xmKYmQJACTVpQSBwrpJNteZSGYoFWjIGCAQA2IGsVgglBOmEyoxIiMAIfkEBQAADQAsAgAAAA4ADgAABDmQSVZSKjPPBEDSGucJxyGA1XUQxAFma/tOpDlnhqIYN6MEAUXvF+zldrMBAjHoIRYLhBMqvSmZkggAIfkEBQAADQAsBgAAAAoAEAAABDeQyUmrnSWlYhMASfeFVbZdjHAcgnUQxOHCcqWylKEohqUEAYVkgEAMfkEJYrFA6HhKJsJCNFoiACH5BAUAAA0ALAIAAgAOAA4AAAQ3kMlJq704611SKloCAEk4lln3DQgyUMJxCBKyLAh1EMRR3wiDQmHY9SQslyIQUMRmlmVTIyRaIgA7";
b.ho="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAAgCAYAAAD9qabkAAAKQ2lDQ1BJQ0MgcHJvZmlsZQAAeNqdU3dYk/cWPt/3ZQ9WQtjwsZdsgQAiI6wIyBBZohCSAGGEEBJAxYWIClYUFRGcSFXEgtUKSJ2I4qAouGdBiohai1VcOO4f3Ke1fXrv7e371/u855zn/M55zw+AERImkeaiagA5UoU8Otgfj09IxMm9gAIVSOAEIBDmy8JnBcUAAPADeXh+dLA//AGvbwACAHDVLiQSx+H/g7pQJlcAIJEA4CIS5wsBkFIAyC5UyBQAyBgAsFOzZAoAlAAAbHl8QiIAqg0A7PRJPgUA2KmT3BcA2KIcqQgAjQEAmShHJAJAuwBgVYFSLALAwgCgrEAiLgTArgGAWbYyRwKAvQUAdo5YkA9AYACAmUIszAAgOAIAQx4TzQMgTAOgMNK/4KlfcIW4SAEAwMuVzZdL0jMUuJXQGnfy8ODiIeLCbLFCYRcpEGYJ5CKcl5sjE0jnA0zODAAAGvnRwf44P5Dn5uTh5mbnbO/0xaL+a/BvIj4h8d/+vIwCBAAQTs/v2l/l5dYDcMcBsHW/a6lbANpWAGjf+V0z2wmgWgrQevmLeTj8QB6eoVDIPB0cCgsL7SViob0w44s+/zPhb+CLfvb8QB7+23rwAHGaQJmtwKOD/XFhbnauUo7nywRCMW735yP+x4V//Y4p0eI0sVwsFYrxWIm4UCJNx3m5UpFEIcmV4hLpfzLxH5b9CZN3DQCshk/ATrYHtctswH7uAQKLDljSdgBAfvMtjBoLkQAQZzQyefcAAJO/+Y9AKwEAzZek4wAAvOgYXKiUF0zGCAAARKCBKrBBBwzBFKzADpzBHbzAFwJhBkRADCTAPBBCBuSAHAqhGJZBGVTAOtgEtbADGqARmuEQtMExOA3n4BJcgetwFwZgGJ7CGLyGCQRByAgTYSE6iBFijtgizggXmY4EImFINJKApCDpiBRRIsXIcqQCqUJqkV1II/ItchQ5jVxA+pDbyCAyivyKvEcxlIGyUQPUAnVAuagfGorGoHPRdDQPXYCWomvRGrQePYC2oqfRS+h1dAB9io5jgNExDmaM2WFcjIdFYIlYGibHFmPlWDVWjzVjHVg3dhUbwJ5h7wgkAouAE+wIXoQQwmyCkJBHWExYQ6gl7CO0EroIVwmDhDHCJyKTqE+0JXoS+cR4YjqxkFhGrCbuIR4hniVeJw4TX5NIJA7JkuROCiElkDJJC0lrSNtILaRTpD7SEGmcTCbrkG3J3uQIsoCsIJeRt5APkE+S+8nD5LcUOsWI4kwJoiRSpJQSSjVlP+UEpZ8yQpmgqlHNqZ7UCKqIOp9aSW2gdlAvU4epEzR1miXNmxZDy6Qto9XQmmlnafdoL+l0ugndgx5Fl9CX0mvoB+nn6YP0dwwNhg2Dx0hiKBlrGXsZpxi3GS+ZTKYF05eZyFQw1zIbmWeYD5hvVVgq9ip8FZHKEpU6lVaVfpXnqlRVc1U/1XmqC1SrVQ+rXlZ9pkZVs1DjqQnUFqvVqR1Vu6k2rs5Sd1KPUM9RX6O+X/2C+mMNsoaFRqCGSKNUY7fGGY0hFsYyZfFYQtZyVgPrLGuYTWJbsvnsTHYF+xt2L3tMU0NzqmasZpFmneZxzQEOxrHg8DnZnErOIc4NznstAy0/LbHWaq1mrX6tN9p62r7aYu1y7Rbt69rvdXCdQJ0snfU6bTr3dQm6NrpRuoW623XP6j7TY+t56Qn1yvUO6d3RR/Vt9KP1F+rv1u/RHzcwNAg2kBlsMThj8MyQY+hrmGm40fCE4agRy2i6kcRoo9FJoye4Ju6HZ+M1eBc+ZqxvHGKsNN5l3Gs8YWJpMtukxKTF5L4pzZRrmma60bTTdMzMyCzcrNisyeyOOdWca55hvtm82/yNhaVFnMVKizaLx5balnzLBZZNlvesmFY+VnlW9VbXrEnWXOss623WV2xQG1ebDJs6m8u2qK2brcR2m23fFOIUjynSKfVTbtox7PzsCuya7AbtOfZh9iX2bfbPHcwcEh3WO3Q7fHJ0dcx2bHC866ThNMOpxKnD6VdnG2ehc53zNRemS5DLEpd2lxdTbaeKp26fesuV5RruutK10/Wjm7ub3K3ZbdTdzD3Ffav7TS6bG8ldwz3vQfTw91jicczjnaebp8LzkOcvXnZeWV77vR5Ps5wmntYwbcjbxFvgvct7YDo+PWX6zukDPsY+Ap96n4e+pr4i3z2+I37Wfpl+B/ye+zv6y/2P+L/hefIW8U4FYAHBAeUBvYEagbMDawMfBJkEpQc1BY0FuwYvDD4VQgwJDVkfcpNvwBfyG/ljM9xnLJrRFcoInRVaG/owzCZMHtYRjobPCN8Qfm+m+UzpzLYIiOBHbIi4H2kZmRf5fRQpKjKqLupRtFN0cXT3LNas5Fn7Z72O8Y+pjLk722q2cnZnrGpsUmxj7Ju4gLiquIF4h/hF8ZcSdBMkCe2J5MTYxD2J43MC52yaM5zkmlSWdGOu5dyiuRfm6c7Lnnc8WTVZkHw4hZgSl7I/5YMgQlAvGE/lp25NHRPyhJuFT0W+oo2iUbG3uEo8kuadVpX2ON07fUP6aIZPRnXGMwlPUit5kRmSuSPzTVZE1t6sz9lx2S05lJyUnKNSDWmWtCvXMLcot09mKyuTDeR55m3KG5OHyvfkI/lz89sVbIVM0aO0Uq5QDhZML6greFsYW3i4SL1IWtQz32b+6vkjC4IWfL2QsFC4sLPYuHhZ8eAiv0W7FiOLUxd3LjFdUrpkeGnw0n3LaMuylv1Q4lhSVfJqedzyjlKD0qWlQyuCVzSVqZTJy26u9Fq5YxVhlWRV72qX1VtWfyoXlV+scKyorviwRrjm4ldOX9V89Xlt2treSrfK7etI66Trbqz3Wb+vSr1qQdXQhvANrRvxjeUbX21K3nShemr1js20zcrNAzVhNe1bzLas2/KhNqP2ep1/XctW/a2rt77ZJtrWv913e/MOgx0VO97vlOy8tSt4V2u9RX31btLugt2PGmIbur/mft24R3dPxZ6Pe6V7B/ZF7+tqdG9s3K+/v7IJbVI2jR5IOnDlm4Bv2pvtmne1cFoqDsJB5cEn36Z8e+NQ6KHOw9zDzd+Zf7f1COtIeSvSOr91rC2jbaA9ob3v6IyjnR1eHUe+t/9+7zHjY3XHNY9XnqCdKD3x+eSCk+OnZKeenU4/PdSZ3Hn3TPyZa11RXb1nQ8+ePxd07ky3X/fJ897nj13wvHD0Ivdi2yW3S609rj1HfnD94UivW2/rZffL7Vc8rnT0Tes70e/Tf/pqwNVz1/jXLl2feb3vxuwbt24m3Ry4Jbr1+Hb27Rd3Cu5M3F16j3iv/L7a/eoH+g/qf7T+sWXAbeD4YMBgz8NZD+8OCYee/pT/04fh0kfMR9UjRiONj50fHxsNGr3yZM6T4aeypxPPyn5W/3nrc6vn3/3i+0vPWPzY8Av5i8+/rnmp83Lvq6mvOscjxx+8znk98ab8rc7bfe+477rfx70fmSj8QP5Q89H6Y8en0E/3Pud8/vwv94Tz+4A5JREAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfcAgcQLxxUBNp/AAAQZ0lEQVR42u2be3QVVZbGv1N17829eRLyIKAEOiISEtPhJTJAYuyBDmhWjAEx4iAGBhxA4wABbVAMWUAeykMCM+HRTcBRWkNH2l5moS0LCCrQTkYeQWBQSCAIgYRXEpKbW/XNH5zS4noR7faPEeu31l0h4dSpvc+t/Z199jkFWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhY/H9D/MR9qfKnLj/00U71aqfJn9+HCkCR/Wk36ddsgyJ/1wF4fkDfqqm9/gPsUeTnVr6a2xlQfnxdI7zs0W7irzD17Ytb2WT7EeNv/r4ox1O3Quf2QP2pgt9utwfout4FQE8AVBSlnaRmfvAURQkg2RlAbwB9AThlW5L0GaiKojhJhgOIBqDa7XaPrusdPtr5kQwF0BVAAoBIABRCKDd5aFUhRDAAw57eAOwAhKIoupft3zoqhB1AqLwuHIBut9uFt02qqvqRDJR2dAEQJj/BAOjn56dqmma+xiaECAEQAWAggLsB6A6HQ2iaZggBhBAqgEAAnQB0kzaEmT4hAITT6VQ8Ho/HJAKKECJQtr8LwD1y/A1/vcdfEUIEyfZ9AcQbYvZ942Px88L2UwlJR0dH0EMPPbRj5syZPUeNGrXR7Xb/641xIwJ1XY9NSUlZm52dfW+XLl1w8uRJzJ8//+OGhoYJqqqe1TSt1Wsm9NN1PSIqKmr12rVrR5WUlHy1bdu2AQCumWc3IYRD1/UwVVXnFRQUTIuNjUVzczN2797dWFJSkq8oymZd15sAGAEnFEUJ1nX9nzIzM1dnZmZGh4SE4OTJk5g5c+Zf29vbp9pstrMej6fVOyhIhgAYU1hY+B+hoaGoqKg4XVlZea+XTULTNFdCQsLGiRMnPuR2u3UhBOV9eeDAAWXTpk095DUe6WsoyRE5OTlr0tLSAux2O/bs2cO5c+e+pijKUpIXSHaQVAGkvPLKK++6XK4OksJLCFlXV2cvKSlJBFAjhU+x2WwhHo9nUHp6+urMzMy7wsLCUF9fjxdffPHjxsbGiTab7WuPx9NiEutOuq4PyMjI+M+srKyYqKgoHD58GDNmzNjq8XhyVFU9b/q+LH7hBAEYu3PnTlZVVRFAGgCX6f/tAHoOHDjwa0p27txp/JO9e/f+QM7cipw9nfL3kQBKt2zZQpJ87rnn6mQmoHilw2EACs+cOUOSrK+vZ1NTE0nyo48+IoBpxswoBcMJ4Ndjx471kOTFixe5d+9ekqTH42H//v13A4jyzpAURfEH0H/OnDnthu1z5sw558MmFUCPWbNmnaMP3nrrLZoyDmP8Hl68eDFJ8siRI9/Yc+zYMQKYKdtAztrTrl27xptRXV1NAKMAOAyBBBA/Y8aMdpLs6Ojgxx9//E37+++//29yvFXppwvAwMcee8xjtDHsuXLlCqOjo//ia3wsfpkoALqFhoZuIckJEyackimm3dQmEMDUmpoakmRISMhhAHOHDx/eQJIbN24kgKEyMAHAFRMTs2XXrl1saWkhSZ0kp0+ffhrAr3wEW/S8efOukORLL72kA1gKYMPWrVtJkk899dRJAHeYrgsEsIQkjx8/TgDvAPjd448/3kaSb7zxBmUa7vC6z53BwcFbSHL9+vU6Sc6aNes8gF5ewWAH0PfVV18lSQL4DMBGIcQ6AKtcLleBFC2jXtFt8ODBe0iyoqKCAJYByC8qKmJDQwOzsrK+MAmqo1OnTveHhoa+GRkZ+XZkZOSWiIiIvzgcjk9mzpypkWRmZuZpmbYbGV4AgPnNzc1sa2sjgN0A5iQmJtaSZHl5OQHcb/K3s81mW0uSTU1NBFAFYFbfvn1Pk+Tbb79NAA8IIVzW42/hByA+Pz/fLR/2ZXIda05NI/z9/TeR5J49ewhgqlxTrtI0jY2NjQQw3zTLuWJiYjaUlJToS5Ys6fjkk080kwDEeAmADcA9GzZsIElGRUW9CyAWwLApU6Y0kOSKFSsog9QICGdERMTGsrIyZmVlEcC9AB4IDw/fTpLbtm0jgN94CUAnAJmVlZVcs2aNZ/LkyRdJcvbs2b4EwAkgZfPmzTxw4AABFAN4BkC6vFeUSewcAO5duXIlSTIhIaEawGMAxgKYAmAGgCS73e5vrKVk/yGythANYEhCQsIhkly+fDkBpKqqGmL6DgIALDKN/3yZpVWQZGVlJQE8aPI3KiMjo5okV61aRQAjAPQBMPfIkSN0u90EUCBtsPiFEwpgbn19PdetW2fM5N4zQ9ekpKQqkty0aRMBpMjiWM6JEydIkoqirJUFJ6iq6pAPVy8A6cZMehMBUACEuVyuFwG8HBwcPEIWx367ZMkSjSQXLVrUJouTRorrkAHdA8BdQogsAOsKCwtJkmPGjDkvMw2bDDo/ADEjRoz4XylyFbm5uY0mAbjLyyZ/AOOrq6tZVlbWsWDBgo69e/eyoqKCgwcPPg4gSQaoIRbp27dvN7KF+tLSUr28vJwFBQXtMpvpYRIM7+wrAkDeqVOnePbsWQIoNKfzpiXPg8uXLydJJicnNwF4f+nSpW6STEtLq5fjYwhk1wkTJtSQ5Ouvv04AqTKj+N2xY8dIkgEBAW/Ie1v8wncRegwZMmQvSfbr12+3Ua33WqPfOWbMmP0kWVpaSgCDZAqcfejQIWNZsEGKgvnh9gfQb9myZd8nAEJVVZtMkUNk8CcNHTq0liR1XWdYWNhmH1mJIme80OnTp18x1rp5eXkEsNJms92Fb7e/IgEsvHz5Mp999tkmAI/l5uZeMC0B7vEqqAYAyL106RJJsra2lpWVld+sucePH38ZQG+5NncBeOrgwYMkqbe3t/Po0aOsra011wAWyl0H7x0JJ4DE+fPnu0kyPT29DsDdUrBuyNKEEAkAdpw/f/6GeoEM8GUmfwEgPCIiopwkGxsbabPZPgOw6L777vvm4p49e26VGYjFLxUhhD+ApLKyMp44ccIoVnXybgbgzkcfffRzklyzZg0BDJYCMMmoCwQFBXkLgLGWvvcWAgBToSsKwNPTp09vMR7UuLi4rwH0lgU8c/Db5ezbeeTIkRWzZ8++aMxu+fn5BPCADBwHgP4LFy701NXVEUAJgAnPP/98kyxMNgHo53A4zH77BQQETMvPz7+Um5vbBuAlAFMSExPPmdbVL0qh8Acw8fDhw5SCchVAEYAVb775JknyhRdeaJYztHfxMwLAaqNwCGC2FArv8x0hAHKNLGPKlCme5OTk/Zs3bzb7O0wKiiG8KXl5ed8IxenTp0mSR48e1UmyW7duWywBuD2xyQcgFECgoih+8H1gyJgZV5Lkyy+/3CbTRIePtl2HDBmyw1QBHyGDdXZdXR1JUghRKkXBjOMHCoBdpr0L3nvvPZLkF198wejo6O0A4lVVDTb74HQ6AwD8Wq7Jh8rgGgDgQ13XjVR8qaxJuADMbmlpYXl5uV5UVNRWUFDgfv/993Vj/ZydnU1c37eHXML4S3viAcQqitJD2l104cIFY8lTKsXSBWBMVVWVcd9yed2A1NTUQ6Zl00CvLMMOoHdubm6zFIlWOf5+PsY/Kj09vdrU11QAwwGsv3jxIk21m2DZr10I0RXAuAcffPBgaWkpV69eTYfDcdiwUxY0w6xw+flX8L1xApjevXv3lREREaW6rofB93aPDUDQpEmTMgHgtddeqwBwEd/utZvpqK6uPgEAcXFxkA94NwB9unfvjrNnz4LklwDcf08iIqv66Zs2bXrl4YcfxooVKxAbG7uqrq5uAYA2TdOEqqpGYIi2tjbl6aeffu/YsWPv5uTk7JaC1wHg4Pnz542MwoVvTx+21dbWYvjw4WLixIl+2dnZ9lGjRgmSTE1NRUpKCkwFTGiaxtTU1OXTpk3707Bhw/6g67pDipnT4biuj7qut+Lbk3Vf1tTUXI9qu91Pjq1QFEUBgJaWFgBo8yGOQ8eNGxcAAOvXr/8QwBUfYygAKL169eoCABcuXACAWtn2hOGv0+kMNO1KiPDw8F4A4rZv3/7R1KlTR0+bNu1ht9u9r1+/fqitrQXJgwDarRC6/QjPzs4+QJIffPCB9/aQmSAA43ft2mW0e1QGoi8CAPyLsZccExNTC2BlRkbGRdOyYJCP2csBIN6UAZzCd7cBbQCijYp/dXU1ExMTz6SmptaMHj36f9LS0vYlJCRsl6mxIWSdu3fv/g5J7t+/nwC2AShMTk6+SJKff/45AWRLYbD7+fndAeDf5BJnLoCCyZMnt5JkdnZ2C4B/F0KEm1Pu+Pj4rST55ZdfEsBWAK+mpaVdMo3raDn7KwDuSEpK+m+S3LBhAwG8DuCtHTt2UBbpjgC408vvcFVV15HkuXPnjMp+p5uMf0RcXNyHJNnQ0EBVVfcCWBQXF3fG+Jv0yxABPwB5LS0tRmFxN4BlTzzxxGWSXLx4sS5F3GGFy+1Hp5SUlJq6ujoWFxdTpsZ2H+0iIyMj/0iSWVlZX5mr5jfJFroPGzasxlhTnjp1iiTZ3NxMl8tlrCd9pfa9SkpKSJI5OTmnZOageLUZZqxvfVFWVkZcPwdgNwnSCKPqb17jkmR8fPzfZMDZ5CRsFBmNI7h95s2b1yhT7/MAYmStwCx4vy0uLqa3v5qmEcCfvSr1QQAeXb16NY3Cm3HQ55133iGAp+SxZTNhKSkpfzUddkrFjYevzAQCeGjp0qXfsYckY2NjTwD4leGDLCL2HTdunNtoY+zWSHFcIHdsFCtcfuZ1vO9Eqs3m7/F47sb1k2qX/f3997W2tl7BjWfpBYDOzzzzzIVJkyZh0KBBCwEsB3AJvl9AETabLcDj8dwRFRW1ctasWb8JCgpSzp07d62wsPC/Wltb8xRFadR1/ZqPXYbgAQMGbI2Pjw/+6quv9ldVVT0r01ezuPRJSUn5Y9euXXVd11WzDaqq6kePHm3+7LPPRgO4KlNuxWazhXo8nuTk5OSXMjIyEl0uFxoaGtqKior+dPXq1VdUVT0jj7r68ieoT58+vx8yZMjdx48fP1JVVTVF9m20VW02WyfZf97YsWPjXS4X6urqWvPy8jYCWCyEuEDS8FdVFKWzruv//OSTTy5OTk7uqWkaPv3007qysrJ8RVH+LI8ym8/rB3Tu3HnRI488knLo0KG2ffv2ZQI4C98vP6mqqoZqmpaclpa2cOTIkX39/f3R0NDQUVxc/G5TU9PLqqrWa5rWLH1QVFUN0TStX1JSUvH48eP7BwYG4uDBg1cKCgpeBbBe2u+2Qug2EwD5N5sMPuNtMe8XP4TT6Qxoa2sbIGeXvUKIK7d4IISiKC5d1wPljOfA9bPwzYqiXNV13dd6Uqiq6qdpml2mpe02m63d4/G4vcTF5fF47LJf71nJA6BZVVW3pmntuPHlmAD5wk6Q9NnbHp9vHaqq6tA0zU/64PZhk1FfCZB9G/23ALiqKEqzD39tpvbGUqoFwFUhRLP3yzpCCDtJpxyXDulfG27+pqRR3DXsUWVd4Yq0x/taVQjhIhksC8L+ABpM9ljBf5sKwI8pIBr75L5E4vvu+UNeG/a+hv+AL7yFH8qPtOfHjtOP6V/Bja8D6z/B2Nys/1u9Xv33tLf4GfF/LC4GCJwByWIAAAAASUVORK5CYII\x3d";
b.uC="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAAlAAD/4QMpaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjAtYzA2MCA2MS4xMzQ3NzcsIDIwMTAvMDIvMTItMTc6MzI6MDAgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjM4MDBEMDY2QTU1MjExRTFBQTAzQjEzMUNFNzMxRkQwIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjM4MDBEMDY1QTU1MjExRTFBQTAzQjEzMUNFNzMxRkQwIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzUgV2luZG93cyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkU2RTk0OEM4OERCNDExRTE5NEUyRkE3M0M3QkE1NTlEIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkU2RTk0OEM5OERCNDExRTE5NEUyRkE3M0M3QkE1NTlEIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+/+4ADkFkb2JlAGTAAAAAAf/bAIQADQkJCQoJDQoKDRMMCwwTFhENDREWGhUVFhUVGhkUFhUVFhQZGR0fIB8dGScnKionJzk4ODg5QEBAQEBAQEBAQAEODAwOEA4RDw8RFA4RDhQVERISERUfFRUXFRUfKB0ZGRkZHSgjJiAgICYjLCwoKCwsNzc1NzdAQEBAQEBAQEBA/8AAEQgAyACgAwEiAAIRAQMRAf/EALAAAAEFAQEAAAAAAAAAAAAAAAQAAgMFBgcBAQEAAwEBAAAAAAAAAAAAAAAAAQMEAgUQAAIBAgIEBwoLBgQGAwAAAAECAwAEEQUhMRIGQVFxsTITFGGBwdEiQlKSMzWRoeFicqKyI1NzFYJjJDQWB9KjVCbxwkNkJWXik3QRAAIBAgMFBQcDBQEAAAAAAAABAhEDIRIEMUFRcTJhwVIUBZGhsSJyEzOB0ULhYpIjUxX/2gAMAwEAAhEDEQA/AMJSpUqAVKlXuFAeUq9wpUB5XuFe4V6ooDzZHDox0CnGMinzwl7Z8NajaHeoO3vmTBZBtp9YUIqTEV5ROxHKnWRnaU8VRMhFBUjpV7hSoSeUq9pUB5Sr2lhQHlKvcK8oBV7hSFSRrtaKAZs07YNPM1pG2xJIAw1jSeandry/8X4m8VCKkWwaWwam7Xl/4v1W8VLtmX/i/VbxUoKkWwakSM407tmX/i/VbxUmzGwjQsjdY41IARie/U0IbZO0kNtCXnOCkEBeFu4KI3Bs7DNb27ya+jDx3kJeEnpJJEcQVbWDsk17u5urd591ucZkWhym2Vnd9RkCDEpFxDRpbw0bunu5mlp2De2FMLYXOD2wB2xbOeraUcYGJ72mlSUiqzzdzMd3Z3mixltA2yzcK/NlHM1DQyRXce1HocdNOEfJXZ88y9ZojOqhiBszIRiHQ8Y4cK5TvHuzLljHNMqxNoDjLFraHHnjPxcNCGVbxEUzYNTx5jZSxhpW6qTzlwJ+DCvO2Zf+L9VvFSgqyHYNLYNTdssPxfibxUu15f8Ai/VPiqCakOwa82DU/a8v/F+JvFTDdWPBL8R8VKCvYRYV5UzoMAy6QdIIqI0B4KJtxiRQwou16QoGUkntH5Tz0RbZbmF2hktraSVBo2lUkY8tDye0flPPXTslVUyiyVRsjqUOA4yMT8dW2ram2m6UVTNq9S7EIyUVJydMTn/6DnP+im9Wl+g5z/opvVrpteEhQWY4AaSTwAVf5WPiZh/9S5/zj7zltzlmYWkfWXNvJDGTgGcYDHirR7i7mSbwXParsFMrgb7w6jKw/wCmnc9I14kF3vpvCljbMyWMOJL4aEiB8qU/ObUK7HYWVrl1pFZWiCOCBQqKOLjPGTrNZZqKbUXVHq2nNwTuJRk1VpbgXN8s7Rk5ym0UQQzhIG2NAjhxHWbI+gCBVjBBFbwxwQqEiiUJGg1BVGAFe7dV28WYLYZFmF2Th1UD7JGjymGyn1iK5OyzIBGB1HgrLZhamzumQAGJwSqnSCh1q3GOCodxt4cxurdcpzuN4cyhiWaF5Bg09udUmnWw1H/jV9nFuJ7Quo+8h8peThFA+047vduyMtk7fYqTl07YFdfUufMPzT5p71UdtlmYXaGS2t3mQHAsgxANdadYJopLe4QS2867EsZ4QfCNYrCFbjdDPmgkYyWFxgVf04ifJf6ScNdRUW1XBb6FU5TjF5EpSSrGu/s5lN+g5z/opvVpfoOc/wCim9WtdHnatvObJXDW7xLGhB8nrPaY9/HCr+tEdPCVaSeDoYLnqF63lzW4/PFSW3ecxbI84VSzWUwUaSdg0DXXK5nvAipnd6qgKvWnQO7pri9ZUEmm3Vl2j1kr8pRlFRyquBNZjGxQ/S56Y1S2fu9OVueon11Szahoou06QoQUXadIVCD2FJJ7R+U89dMydv8Axdn+TH9muZye0flPPXQstlK5Tbka1gUjlC1q0vVLkeb6r+O3Tx9xcY1nt8c0NrZCyiOE1108NYjGv1joo7Js1jzKyScYLIvkzL6LDwHXVJksH9Sb49dKNq0tj1jA6uriOCL+02FWX7iVtZX1/AzaHTyeoauKn2MX9W79zebiZCuR5MjSrhfXuEtwTrUeZH+yNfdrRNcxI6IzhXlJEak6WIGJ2Rw4ChWnChndtlVBLMdQA0k1gbXNMzzDfDLs6mjaPKppJbWwJ1bOwwxw43OnHh71YT3DpfWUJmFlb5jHHDdeXBHIsrRea5TSqvxqG04cNN62vetoCS4tre5mgnkGE9q+3DKOkuI2WX6LDQRRHWDh1UCtwj7QRg2wdl8Djgw1qe7XvW0BQ3kfZ7mSLgU+T9E6RVbnuVrnWVSWqj+Lt8ZbRuHEdKPkYVcZ2MJY5fSGyeVar45+rkWQHAqccalPE5km1htWK5nK4Wnt5FuUBUwOMG4nGkA/BXUrW4S6torlOjMgcd/xVn7rLo7zKs0uEjCNeSvdwoBhgsZxX1l2j36k3Lu+uyprdj5Vs5A+i/lD48a0aaVJOPi7jB6lbzWozpjB48pf1NDXNN4vfl7+Z4BXS65pvF78vfzPAK71XTHmZ/S/yT+jvJ7L3fHytz1E+upbL+Qj5W56jfXWRnsIYKLtekKEFGWvSFQgyjk9o/Keet3YthlMP/5x9msJJ7R+U89biyb/AMXEv7gD6tadL1T+kwepRrC39ZkLDMbiwMvUHRPG0bjlGg8ore/23sxBldxfMPLupNhT8yL/AORNZbdzJ484scytxgLqJY5LZj6Q2sV5G1Vud1mjjyG0ij0NEGSZToKyhjtqw4waztuiXA3qKTbSxltfGhbZlE95ZtZqxVbgiOZhrER9ph3Svk9+pJILZ4Y4DGBFCUMKjRsGPobPFhUfW0NJmljE2xJcIrcI2vFUEln1lRXd6lrazXT9GCNpD+yNqoI7mOVduNw6nzlOIoPOUa6yye1XXcbMR5GdQ3xY0BSbj31/FcTQZirJ+q431q7anbHCTZ72Bw7lbPrKBMcBWNNgbMBBh+bsjBdni0VJ1lARZs6yWiupxCuMDy6KpS2IwOo6DTr3Mre3e5tZZVUM4ZBjqOOJoWO4jkXajcOOMHGgDISvWIrdAkKR80+TzVl908bPPL3LzxOuHdifxVfiTAg92qI/w+/8gGgSyN/mR7XPVlp0lF/3L3mbVKtu5Hjbk/8AHE2Fc03i9+Xv5ngFdKNc13i9+Xv5ngFaNV0x5nn+l/kn9HeEWXu+PlbnqJ9dS2Xu9OVueon11kZ7CGCjLXpCgxRlr0hUIPYUcntH5Tz1s8vb+Bt1/dqPirGSe0flPPWusG/g4Py15q06XqlyMWvVYQ+ruI9xJOqzO9hOto/sP8tbGOFIrmWeM7IuMDMnAXXQJOUjQeOsJk0nY96ip0CYunrjaHx1t+srPJUbXBm2LrFPikwTOb+T+VhbZxGMrDXp83x1QSy2tucJpUjPETp+Cn5/ftaRvKvtp3Kx48HG3erHMzOxZiWZtLMdJNQSbbL71Vk6yynViOkqnEEfOWtPbXi3EQkGg6mXiNckjeSJxJGxR10qw0GtxuxmvbImD4CZMFlA4fRfv0BqesqqzTMZNMEDbIHtHH2QeCiZJSqMQdOGiue53mz3czQwsRbIcNHnkec3c4qAMuriz68gTIToxwOOnlp0MjxMJYW741Gs3RVldtbygE/dMcHX/moDaxTiWNZB53B3arb8/wC+4SOF4sf/AKxU9kcBsfOGHfoUHtG/RbzY5Die5HHhXdvavqiZ9Q8Jdlq4/gbKua7xe/L38zwCuhpf2Uk/Zo50kmwJKIdogDjw1VzzeL35e/meAVp1LTgqY4nn+mRauzqmqwrjzCLL3fHytz1E+upLL+Qj5W56jfXWRnroYKLtekKEFF2vSFQg9hSSe0flPPWosm/hIfoLzVl5PaPynnrRWb/w0X0F5q06XqlyM2sVYx5gmbFre/t71NY2T+0h8VbSO5SWNJUOKSAMp7jDGspmMPaLRlXS6eWve1/FRO7WYdbZm1Y/eW/R7qHxHRXGojlm3ulid6aVbaW+OALvgCLq2Hm9WxHKWqjhj6xsK1e8dm15l4niG1LZkswGsxtrPeOmsvayBJA1VItlWjptLuTdPMo7LtjRDq9naK4+WF9IrUW7BaHOljGqVHB7w2hzVoZt87d8vaNYSLl02CcRsDEbJbj71Uu7UBkvJ7/D7q2QoDxySaAO8MTXdxRVMpRp5XZOWdF/ms7R5XdyKfKWJsO/5PhrG5XlNxmEywW6bTnTxAAcJNbGSMXkM1pjgbiNo1PziPJ+Os7u7m/6ReM00ZOgxSpqYYHT3wRXMKN4ll9zUG4bQfNshu8sZVuEA2hirA4qe/VOwwrVbzbww5mI44UKRRYkbWG0S3JWctbd7u5WFfOOLHiUdJqmaipfLsIsObhWe001lMkMVvJNjhghIALMcBxCs7fxXQmkupx1bXDswGPlaTidVaEyKNXkoo4eBV+Sq7L7Vs9zcBgeyQ4GQ/MB1crmoim2orezqcowTuSeEY48jQ7oZX2PLzdyLhNd6RjrEY6I7+uspvH78vfzPAK6UAAAFGAGgAcArmu8Xvy9/M8ArTfio24RW5nnaG67uou3H/KPuqT2X8hHytz1G+upLL3enK3PUb66ys9RDBRdr0hQgou06QqEGUkntH5Tz1e238vF9BeaqKT2j8p56vbb+Xi+gvNWjTdUuRn1XTHmTh8KrJTJlt8t1CPIY44cGnpJVjTJYkmjaN9Ib4u7V923njTethRauZJV3PaW1rfLIiXEDYg6R4VYc9CXW7thfOZbKdbGZtLW8uPVY/u3GrkNUkM9zlcxUjbhfWOA90cRq4gv4LhdqN+VToNYWmnRm9NNVWNTyHc6VWBv8wt4YeHqm6xyPmroq1Z7WGFLSxTq7WLSuPSdjrkfumq5yHXDUeA92oO2SKpVumNAaoJLMXH3myp0rpJ4uKhc3tbDM5BMri1zAj79j7KTiY8TcdBpcsith0286o+sPCagEX9Pzg4zXUCp6QYse8oouCG3tk6m1BYv05W6T+IdyolxbHDAAa2OgDlNCz3ryN2WxBd5PJMg1t81eId2ukqnLlTBbfcuY+9uJLiRcvtPvHdsHK+cfRHcHDWsyawjyy0WBcDI3lTP6TeIcFV+S5OmXx9bJg1048o8Cj0V8Jq2DVu09nL80up7OxHi+oal3P8AXB/IsZS8T/YOV65zvCcc7vfzPAK3ivWCz445zeH954BXOr6I8yfSfyz+jvCLP3fHytz1G+upLP3fHytz1E+usbPaQ0UXadIUIKLtekKhB7Ckk9o/Keer22/l4/oLzVRSe0flPPV7b/y8X0F5q0abqlyM+q6Y8yQsBTDMor1o8aiaE1pbluMqS3sbLLHIhSRQyngqukhaJ9uBjo+H5aOa3ao2t34qouRlLajTalGP8v0IY8ylXQ+PKPFU/bYXOLPge6CKia0LaxTOxHu1Q7cuBd9yPEJ7TbjXKO8CajbMIF6CNIeNvJHjqIWJ7tSpYkalqVblwIdyG+RGXur0hXYJFxal+Dhq5y3slkv3Y2pD0pTr+QUClpJRUdo9XW4OLrTHtM16cZLLWkeC7y4jvlNEpcRtw1Ux27Ci448NZrTFy3nn3IQWxlgGrDZ3pza7/M8ArZo+ArF5171uvp+CqdV0R5l/psUrs2vB3hdl7vTlbnqJ9dS2Xu+PlbnqJ9dY2eshooq16QoQUXa9IVCD2FLJ7RuU89WNtmUSQqkgYMgw0accKrpPaPynnrZWG4Vi+VWmY5tnMWXG+XrIYnA0rhj0mdcTgdNdwnKDqjmduM1SRR/qlr8/4KX6pa8T/BVzDuLZXudRZblmbxXcPUNPc3KqCIwrbOzgrHEnHjoyD+3eSXkht7DeKG4umDGOJVUklfouThXfmbnZ7Cvy1vt9pmv1W1+d8FL9VteJvgq5yrcOGfLmzHN80iyyETPbptAEFo2ZG8pmUa1OFNn3Ky6W/sbDKM5hv5bx2WTZA+7RF2y52WOPJTzE+z2Dy1vt9pT/AKpacTerS/U7Tib1a04/t7kDXPY03jhN0W6sQ7K7W3q2dnrMccaDy/8At80kuZfqWYxWNtlcvUPPhiGYhWDeUy7IwYU8xPs9g8tb7faUn6pacTerTxm9oOBvVq3v9z927aynuId44LiWKNnjhAXF2UYhRg516qpsryjLr21665zFLSTaK9U2GOA87SwqY37knRU+BzOzags0s1Oyr+BKM6sxwP6tSDPLMen6vy0rvdm3Sxlu7K/S7WDDrFUDUTxgnTU826eXW7KlxmqQuwDBXUKcD+1Xee/wXuKX5XDGWLapSVcOyhEM/seJ/V+WnjeGx4pPV+Wkm6kKZlFay3Jlt7iFpYZY8ASVK6DjtDDA0f8A0Tl340/1f8Ndx8xJVWXB0KbktFFpNzdVXAC/qOwA0CQni2flrO3Vwbm5lnI2TKxbDirX/wBE5d+NcfV/wVR7xZPa5U9utvI8nWhmbbw0YEAYYAVxfhfy5rlKR4Fulu6X7mW1mzT8S4Yis/5CPlbnqJ9dSWfu9OVueon11mZvQ2i7XpChKKtekKhBlNJ7R+U89bDfGTb3a3ZX0Lcj6kdY+T2j8p560288m1kWQr6MJ+ylSAr+2cnV5renjs3H1loX+3j9XvbbtxLN9lqW4UnV5jdnjtXHxihtyZNjeSBu5J9k1BJe7xy7W5CJ/wCzuD/mTVTf2+fq97LJuLrPsNRueS7W6aJ/38x+vLVXuY+xvHaNxbf2GoCezf8A36j/APsSf8w1sLnqczTefJluYoLm5uo5F61sBshItP1cNFYe1f8A3ir/APfE/wCZUe9bB94r5jwuPsrQFhmG4l/Z2M17HdW90tuu3IkTHaCjWdIw0VVZdks9/C06yJFEp2dp+E1bbqybGTZ8vpQD7L1XRv8A7blT96Oda7tpNuuNE37Cq9KSisjyuUoxrStKllHbLlWTXsMs8chuSuwEPDqwoLe5y+YRE/gLzmqRekvKKtd4327yM/ulHxmrHJStySWVRyrjxKI2XC/CTlnlPPKTpTdFbP0L1bgrf5Lp0G3dPhQHwV0S1lzBsns3sESR8Crh9WAJGjSOKuU3E+zdZQ3oJh8IArdZXFDmOTpHa3i2+YrI2KtKy4ricBsBuHHgFXSo440+Wa2qqxjvM9uMoy+WvzWpLCWWWE28HxL6e43ojgkeSCBY1Ri5BGIUDT51cl3vm276BBqSEH4WbxV0tlkyXJcxTMb+OW6uY9mGHrCzDQwwAbTp2uKuTZ9N1uYsfRRR8WPhrm419mSSjRyiqxVK7y23B/ftuTm2oSdJyzNVw3BFn7vTlbnqF9dS2fu9OVueon11lZuQ2iLdsGFD05H2dNQGV0ntG5Tz1dWm9N1b2kVq8EVwsI2UaQaQOKhmitZGLOmk68DhSFvY+gfWNSAg7z3Qvo7yKCKIohiaNR5LKxx8qpxvjcqS0VpbxvwOAcRQPZ7D0G9Y0uz2HoH1jUCpLY7zXlpbm3eKO5QuzjrBqZji3x17PvNcyT288VvDBJbMWUovS2hslW7mFQ9nsPQPrGl2ew9A+saCod/WNxtbYsrfb17WBxx5ddD2281xC88klvDcSXEnWuzrqOGGC9zRUPZ7D0G9Y0uzWHoH1jQVCLreq6ntZbaO3it1mGy7RjTs1X2mYy20ZiCq8ZOODcdEdmsPQb1jS7PYegfWNdJuLqnQiSUlRqpFLmryxtH1Ma7Qw2gNNPOdSt0oI27p007s9h6B9Y0uz2HoH1jXX3Z+I4+1b8IJdX89xLHKQFMXQUahpxoiPN5P+onfU+A0/s9h6DesaXZ7D0D6xpG7OLbUtu0StW5JJx2bBsmbtiSiEk+cxoCWWSaVpZOk2vDVo0VYdnsPQb1jSNvZcCH1jSd2c+p1XAmFqEOmOPEfaH+BQd1ueo211IzrgFUYKNAAqI1WztCpUqVCRUqVKgFSpUqAVKlSoBUqVKgFSpUqAVKlSoBUqVKgFSpUqAVKlSoD/9k\x3d";var b=b||{},ba={id:0|998*Math.random(),l1:0|998*Math.random(),GM:function(a,c,d){a=a.toString();var e=a.substring(a.indexOf("(")+1,a.indexOf(")")),e=e.trim();for(a=a.substring(a.indexOf("{")+1,a.lastIndexOf("}"));-1!=a.indexOf("this._super");){var f=a.indexOf("this._super"),g=a.indexOf("(",f),h=a.substring(g+1,a.indexOf(")",g)),h=h.trim();a=a.substring(0,f)+"ClassManager["+d+"]."+c+".call(this"+(h?",":"")+a.substring(g+1)}return Function(e,a)},n0:function(){return this.id++},o0:function(){return this.l1++}};
ba.GM.c6=ba;
(function(){var a=/\b_super\b/,c=b.Ic.Pe[b.Ic.Yg.HZ];c&&console.log("release Mode");b.ja=function(){};b.ja.extend=function(d){function e(){this.wa=ba.o0();this.ctor&&this.ctor.apply(this,arguments)}var f=this.prototype,g=Object.create(f),h=ba.n0();ba[h]=f;var k={writable:!0,enumerable:!1,configurable:!0};g.wa=null;e.id=h;k.value=h;Object.defineProperty(g,"__pid",k);e.prototype=g;k.value=e;Object.defineProperty(e.prototype,"constructor",k);this.$h&&(e.$h=b.j(this.$h));this.ai&&(e.ai=b.j(this.ai));for(var m=
0,p=arguments.length;m<p;++m){var r=arguments[m],s;for(s in r){var u="function"===typeof r[s],t="function"===typeof f[s],v=a.test(r[s]);c&&u&&t&&v?(k.value=ba.GM(r[s],s,h),Object.defineProperty(g,s,k)):u&&t&&v?(k.value=function(a,c){return function(){var d=this._super;this._super=f[a];var e=c.apply(this,arguments);this._super=d;return e}}(s,r[s]),Object.defineProperty(g,s,k)):u?(k.value=r[s],Object.defineProperty(g,s,k)):g[s]=r[s];if(u){var w,y;if(this.$h&&this.$h[s]){var u=this.$h[s],B;for(B in this.ai)if(this.ai[B]==
u){y=B;break}b.f(g,u,r[s],r[y]?r[y]:g[y],s,y)}if(this.ai&&this.ai[s]){u=this.ai[s];for(B in this.$h)if(this.$h[B]==u){w=B;break}b.f(g,u,r[w]?r[w]:g[w],r[s],w,s)}}}}e.extend=b.ja.extend;e.dda=function(a){for(var c in a)g[c]=a[c]};return e};Function.prototype.bind=Function.prototype.bind||function(a){var c=this;return function(){var f=Array.prototype.slice.call(arguments);return c.apply(a||null,f)}}})();
b.f=function(a,c,d,e,f,g){if(a.__defineGetter__)d&&a.__defineGetter__(c,d),e&&a.__defineSetter__(c,e);else if(Object.defineProperty){var h={enumerable:!1,configurable:!0};d&&(h.get=d);e&&(h.set=e);Object.defineProperty(a,c,h)}else throw Error("browser does not support getters");if(!f&&!g)for(var h=null!=d,k=void 0!=e,m=Object.getOwnPropertyNames(a),p=0;p<m.length;p++){var r=m[p];if((a.__lookupGetter__?!a.__lookupGetter__(r):!Object.getOwnPropertyDescriptor(a,r))&&"function"===typeof a[r]){var s=a[r];
if(h&&s===d&&(f=r,!k||g))break;if(k&&s===e&&(g=r,!h||f))break}}a=a.constructor;f&&(a.$h||(a.$h={}),a.$h[f]=c);g&&(a.ai||(a.ai={}),a.ai[g]=c)};b.j=function(a){var c=a.constructor?new a.constructor:{},d;for(d in a){var e=a[d];c[d]="object"!=typeof e||!e||e instanceof b.q||e instanceof HTMLElement?e:b.j(e)}return c};b=b||{};b.B=b.B||{};b.l9=function(){};
b.Fq={xM:8,K4:9,dN:13,shift:16,N9:17,alt:18,pause:19,w9:20,escape:27,xga:33,wga:34,end:35,home:36,left:37,uka:38,right:39,d$:40,hda:45,m6:46,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,a:65,b:66,C:67,J:68,Jg:69,Bh:70,g:71,sp:72,nt:73,ey:74,fy:75,py:76,ty:77,il:78,wy:79,By:80,Hy:81,r:82,qG:83,RG:84,ea:85,fa:86,H:87,x:88,y:89,z:90,Nfa:96,Ofa:97,Pfa:98,Qfa:99,Rfa:100,Sfa:101,Tfa:102,Ufa:103,Vfa:104,Wfa:105,"*":106,"+":107,"-":109,numdel:110,"/":111,N$:112,R$:113,S$:114,T$:115,U$:116,V$:117,W$:118,
X$:119,Y$:120,O$:121,P$:122,Q$:123,Zfa:144,Gha:145,Iha:186,",":186,L$:187,"\x3d":187,";":188,I9:188,O9:189,".":190,Dga:190,haa:191,$ca:192,"[":219,gga:219,"]":221,F9:221,m9:220,quote:222,Uja:32};b.r6=0;b.Bz=1;b.sH=2;b.s6=3;b.t6=4;b.tR=5;b.b0=function(a){return 8<a.length&&137==a[0]&&80==a[1]&&78==a[2]&&71==a[3]&&13==a[4]&&10==a[5]&&26==a[6]&&10==a[7]?b.Bz:2<a.length&&(73==a[0]&&73==a[1]||77==a[0]&&77==a[1]||255==a[0]&&216==a[1])?b.sH:b.tR};
b.eda=function(a,c){function d(){}d.prototype=c.prototype;a.bz=c.prototype;a.prototype=new d;a.prototype.constructor=a};
b.n9=function(a,c,d){var e=arguments.callee.caller;if(e.bz)return ret=e.bz.constructor.apply(a,Array.prototype.slice.call(arguments,1));for(var f=Array.prototype.slice.call(arguments,2),g=!1,h=a.constructor;h;h=h.bz&&h.bz.constructor)if(h.prototype[c]===e)g=!0;else if(g)return h.prototype[c].apply(a,f);if(a[c]===e)return a.constructor.prototype[c].apply(a,f);throw Error("cc.base called from a method of one name to a method of a different name");};b.i7=function(a,c){this.x=a||0;this.y=c||0};function C(a,c){return void 0==a?{x:0,y:0}:void 0==c?{x:a.x,y:a.y}:{x:a,y:c}}b.fG=function(a,c){return a&&c&&a.x===c.x&&a.y===c.y};b.o7=function(a,c){this.width=a||0;this.height=c||0};function H(a,c){return void 0===a?{width:0,height:0}:void 0===c?{width:a.width,height:a.height}:{width:a,height:c}}b.Rja=function(a,c){return a&&c&&a.width==c.width&&a.height==c.height};b.bI=function(a,c,d,e){this.x=a||0;this.y=c||0;this.width=d||0;this.height=e||0};
function O(a,c,d,e){return void 0===a?{x:0,y:0,width:0,height:0}:void 0===c?{x:a.x,y:a.y,width:a.width,height:a.height}:{x:a,y:c,width:d,height:e}}b.VO=function(a,c){return a&&c&&a.x===c.x&&a.y===c.y&&a.width===c.width&&a.height===c.height};b.dD=function(a){return a&&0===a.x&&0===a.y&&0===a.width&&0===a.height};b.Uga=function(a,c){return a&&c?!(a.x>=c.x||a.y>=c.y||a.x+a.width<=c.x+c.width||a.y+a.height<=c.y+c.height):!1};b.Nt=function(a){return a.x+a.width};b.Vga=function(a){return a.x+a.width/2};
b.Kp=function(a){return a.x};b.Ot=function(a){return a.y+a.height};b.Wga=function(a){return a.y+a.height/2};b.Lp=function(a){return a.y};b.UO=function(a,c){return c.x>=b.Kp(a)&&c.x<=b.Nt(a)&&c.y>=b.Lp(a)&&c.y<=b.Ot(a)};b.R2=function(a,c){var d=a.y+a.height,e=c.x+c.width,f=c.y+c.height;return!(a.x+a.width<c.x||e<a.x||d<c.y||f<a.y)};b.Yga=function(a,c){return!(a.x+a.width<c.x||c.x+c.width<a.x||a.y+a.height<c.y||c.y+c.height<a.y)};
b.Iy=function(a,c){var d=O(0,0,0,0);d.x=Math.min(a.x,c.x);d.y=Math.min(a.y,c.y);d.width=Math.max(a.x+a.width,c.x+c.width)-d.x;d.height=Math.max(a.y+a.height,c.y+c.height)-d.y;return d};b.Xga=function(a,c){var d=O(Math.max(b.Kp(a),b.Kp(c)),Math.max(b.Lp(a),b.Lp(c)),0,0);d.width=Math.min(b.Nt(a),b.Nt(c))-b.Kp(d);d.height=Math.min(b.Ot(a),b.Ot(c))-b.Lp(d);return d};b.Su=b.ja.extend({iL:null,pC:null,ctor:function(){window.DOMParser?(this.pC=!0,this.iL=new DOMParser):this.pC=!1},parse:function(a){return this.KC(a)},KC:function(a){var c;this.pC?c=this.iL.parseFromString(a,"text/xml"):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(a));return c}});
b.LS=b.Su.extend({parse:function(a){a=this.KC(a).documentElement;if("plist"!=a.tagName)throw"Not a plist file!";for(var c=null,d=0,e=a.childNodes.length;d<e&&(c=a.childNodes[d],1!=c.nodeType);d++);return this.JC(c)},JC:function(a){var c=null,d=a.tagName;if("dict"==d)c=this.xX(a);else if("array"==d)c=this.wX(a);else if("string"==d)if(1==a.childNodes.length)c=a.firstChild.nodeValue;else for(c="",d=0;d<a.childNodes.length;d++)c+=a.childNodes[d].nodeValue;else"false"==d?c=!1:"true"==d?c=!0:"real"==d?
c=parseFloat(a.firstChild.nodeValue):"integer"==d&&(c=parseInt(a.firstChild.nodeValue,10));return c},wX:function(a){for(var c=[],d=0,e=a.childNodes.length;d<e;d++){var f=a.childNodes[d];1==f.nodeType&&c.push(this.JC(f))}return c},xX:function(a){for(var c={},d=null,e=0,f=a.childNodes.length;e<f;e++){var g=a.childNodes[e];1==g.nodeType&&("key"==g.tagName?d=g.firstChild.nodeValue:c[d]=this.JC(g))}return c}});b.fM={load:function(a,c,d,e){b.V.sy(a,e)}};b.V.Lj(["txt","xml","vsh","fsh","atlas"],b.fM);b.ZW={load:function(a,c,d,e){b.V.AO(a,e)}};b.V.Lj(["json","ExportJson"],b.ZW);b.GW={load:function(a,c,d,e){b.V.Xf[c]=b.V.Bp(a,function(a,d){if(a)return e(a);b.Ba.Nb(c);e(null,d)})}};b.V.Lj("png jpg bmp jpeg gif ico".split(" "),b.GW);b.SX={load:function(a,c,d,e){b.V.Xf[c]=b.V.Bp(d.src,function(a,d){if(a)return e(a);b.Ba.Nb(c);e(null,d)})}};b.V.Lj(["serverImg"],b.SX);
b.CX={load:function(a,c,d,e){b.V.sy(a,function(a,c){if(a)return e(a);e(null,b.E2.parse(c))})}};b.V.Lj(["plist"],b.CX);
b.RV={Bn:{".eot":"embedded-opentype",".ttf":"truetype",".woff":"woff",".svg":"svg"},YK:function(a,c,d){var e=document,f=b.path,g=this.Bn,h=b.Ob("style");h.type="text/css";e.body.appendChild(h);var k="@font-face { font-family:"+a+"; src:";if(c instanceof Array)for(var m=0,p=c.length;m<p;m++)d=f.bl(c[m]).toLowerCase(),k+="url('"+c[m]+"') format('"+g[d]+"')",k+=m==p-1?";":",";else k+="url('"+c+"') format('"+g[d]+"');";h.textContent+=k+"};";c=b.Ob("div");d=c.style;d.fontFamily=a;c.innerHTML=".";d.position=
"absolute";d.left="-100px";d.top="-100px";e.body.appendChild(c)},load:function(a,c,d,e){c=d.type;a=d.name;c=d.Wja;"string"==typeof d?(c=b.path.bl(d),a=b.path.yZ(d,c),this.YK(a,d,c)):this.YK(a,c);e(null,!0)}};b.V.Lj(["font","eot","ttf","woff","svg"],b.RV);b.d8={load:function(a,c,d,e){b.V.b2(a,e)}};window.CocosEngine=b.xz="Cocos2d-html5 v3.0 RC1";b.pn=0;b.sz=C(0,0);b.XQ=0.5;b.b6=1;b.pA=1;b.uS=0;b.mI=0;b.sA=0;b.t7=0;b.k7=1;b.j7="-hd";b.GU=1;b.$j=0;b.m7=0;b.RR=0;b.QR=0;b.Jz=1;b.e6=b.xz+"-canvas";b.ou=1;b.$g=1;b.vb=function(a){var c=this==b?document:this;if(a=a instanceof HTMLElement?a:c.querySelector(a))a.find=a.find||b.vb,a.wF=a.wF||function(a){return this.className.match(RegExp("(\\s|^)"+a+"(\\s|$)"))},a.rM=a.rM||function(a){this.wF(a)||(this.className&&(this.className+=" "),this.className+=a);return this},a.X2=a.X2||function(a){this.wF(a)&&(this.className=this.className.replace(a,""));return this},a.remove=a.remove||function(){this.parentNode&&this.parentNode.removeChild(this);return this},a.tM=a.tM||
function(a){a.appendChild(this);return this},a.J2=a.J2||function(a){a.childNodes[0]?a.insertBefore(this,a.childNodes[0]):a.appendChild(this);return this},a.du=a.du||function(){this.style[b.vb.U4]=b.vb.translate(this.position)+b.vb.rotate(this.rotation)+b.vb.scale(this.scale)+b.vb.Sp(this.Sp);return this},a.position=a.position||{x:0,y:0},a.rotation=a.rotation||0,a.scale=a.scale||{x:1,y:1},a.Sp=a.Sp||{x:0,y:0},a.cQ=function(a,c){this.position.x=a;this.position.y=c;this.du()},a.rotate=function(a){this.rotation=
a;this.du();return this},a.resize=function(a,c){this.scale.x=a;this.scale.y=c;this.du();return this},a.hja=function(a,c){this.Sp.x=a;this.Sp.y=c;this.du();return this};return a};switch(b.rb.Am){case b.rb.fq:b.vb.It="Moz";b.vb.tp=!0;break;case b.rb.kz:case b.rb.nz:b.vb.It="webkit";b.vb.tp=!0;break;case b.rb.mz:b.vb.It="O";b.vb.tp=!1;break;case b.rb.lz:b.vb.It="ms";b.vb.tp=!1;break;default:b.vb.It="webkit",b.vb.tp=!0}b.vb.U4=b.vb.It+"Transform";
b.vb.translate=b.vb.tp?function(a){return"translate3d("+a.x+"px, "+a.y+"px, 0) "}:function(a){return"translate("+a.x+"px, "+a.y+"px) "};b.vb.rotate=b.vb.tp?function(a){return"rotateZ("+a+"deg) "}:function(a){return"rotate("+a+"deg) "};b.vb.scale=function(a){return"scale("+a.x+", "+a.y+") "};b.vb.Sp=function(a){return"skewX("+-a.x+"deg) skewY("+a.y+"deg)"};b.qQ=function(){return b.vb(document.createElement("input"))};
b.vb.caa=function(a){var c=0,d=0;do c+=a.offsetLeft,d+=a.offsetTop;while(a=a.offsetParent);return{x:c,y:d}};b.C6=-1;b.PI=Math.PI;b.sR=parseFloat("3.402823466e+38F");b.q6=parseFloat("1.175494351e-38F");b.MS=b.PI/180;b.mH=180/b.PI;b.IA=4294967295;b.WP=function(a,c,d){if("object"==typeof d&&"undefined"!=typeof d.x&&"undefined"!=typeof d.y){var e=d[a];d[a]=d[c];d[c]=e}else b.log(b.e.WP)};b.zfa=function(a,c,d){return a+(c-a)*d};b.Bb=function(){return 16777215*Math.random()};b.O2=function(){return 2*(Math.random()-0.5)};b.Nga=Math.random;b.Yf=function(a){return a*b.MS};b.iG=function(a){return a*b.mH};
b.RO=function(a){b.log(b.e.RO);return a*b.mH};b.Nq=Number.MAX_VALUE-1;b.hc=b.uS?1:770;b.gc=771;b.yt=function(a){a.Hb&&(a.Hb.Mc(),a.Hb.$e())};b.K$=function(){};b.U9=function(){};b.ag=function(){b.$f+=1};b.Hu=1.192092896E-7;b.pb=b.Jz?function(){return b.D.dh}:function(){return 1};b.F2=function(a){var c=b.pb();return C(a.x*c,a.y*c)};b.gG=function(a){var c=b.pb();return C(a.x/c,a.y/c)};b.OC=function(a,c){var d=b.pb();c.x=a.x/d;c.y=a.y/d};b.u4=function(a){var c=b.pb();return H(a.width*c,a.height*c)};
b.QP=function(a){var c=b.pb();return H(a.width/c,a.height/c)};b.WL=function(a,c){var d=b.pb();c.width=a.width/d;c.height=a.height/d};b.Kj=b.Jz?function(a){var c=b.pb();return O(a.x/c,a.y/c,a.width/c,a.height/c)}:function(a){return a};b.Pt=b.Jz?function(a){var c=b.pb();return O(a.x*c,a.y*c,a.width*c,a.height*c)}:function(a){return a};b.ONE=1;b.ZERO=0;b.SRC_ALPHA=770;b.SRC_ALPHA_SATURATE=776;b.SRC_COLOR=768;b.DST_ALPHA=772;b.DST_COLOR=774;b.ONE_MINUS_SRC_ALPHA=771;b.ONE_MINUS_SRC_COLOR=769;
b.ONE_MINUS_DST_ALPHA=773;b.ONE_MINUS_DST_COLOR=775;b.ONE_MINUS_CONSTANT_ALPHA=32772;b.ONE_MINUS_CONSTANT_COLOR=32770;b.$o=function(){if(b.Ky==b.Z){var a=b.k.getError();a&&b.log(CC.zb.$o,a)}};b.i6=0;b.g6=1;b.j6=2;b.h6=3;b.f6=2;b.T7=0;b.Pd=1;b.gv=2;b.Cn=4;b.Kl=b.Pd|b.gv|b.Cn;b.v6=0;b.sb=0;b.ze=1;b.xd=2;b.U7=3;b.LA=0;b.KA=1;b.hr=2;b.PA=3;b.OA=4;b.JA=5;b.MA=6;b.NA=7;b.Q7=8;b.Ui="ShaderPositionTextureColor";b.Uu="ShaderPositionTextureColorAlphaTest";b.Tu="ShaderPositionColor";b.Rq="ShaderPositionTexture";
b.nA="ShaderPositionTexture_uColor";b.mA="ShaderPositionTextureA8Color";b.oA="ShaderPosition_uColor";b.gI="ShaderPositionLengthTextureColor";b.AU="CC_PMatrix";b.yU="CC_MVMatrix";b.zU="CC_MVPMatrix";b.EU="CC_Time";b.DU="CC_SinTime";b.xU="CC_CosTime";b.BU="CC_Random01";b.CU="CC_Texture0";b.ZI="CC_alpha_value";b.dq="a_color";b.rl="a_position";b.kn="a_texCoord";b.ER=32;b.hH=3233828865;b.hv=3233828866;b.$R=8801;b.NS=8802;b.YQ=8803;b=b||{};b.B=b.B||{};
b.B.TA=function(){b.color=function(a,d,e,f,g,h){return void 0===a?new b.yf(0,0,0,255,g,h):"string"===typeof a?(a=b.VN(a),new b.yf(a.r,a.g,a.b,a.a)):"object"===typeof a?new b.yf(a.r,a.g,a.b,a.a,a.lx,a.offset):new b.yf(a,d,e,f,g,h)};b.yf=function(a,d,e,f,g,h){this.Yc=g||new ArrayBuffer(b.yf.BYTES_PER_ELEMENT);this.la=h||0;g=this.Yc;h=this.la;var k=Uint8Array.BYTES_PER_ELEMENT;this.bD=new Uint8Array(g,h,1);this.TB=new Uint8Array(g,h+k,1);this.iB=new Uint8Array(g,h+2*k,1);this.bB=new Uint8Array(g,h+3*
k,1);this.bD[0]=a||0;this.TB[0]=d||0;this.iB[0]=e||0;this.bB[0]=f||255;void 0===f&&(this.Ss=!0)};b.yf.BYTES_PER_ELEMENT=4;var a=b.yf.prototype;a.sW=function(){return this.bD[0]};a.hY=function(a){this.bD[0]=0>a?0:a};a.hW=function(){return this.TB[0]};a.cY=function(a){this.TB[0]=0>a?0:a};a.$V=function(){return this.iB[0]};a.UX=function(a){this.iB[0]=0>a?0:a};a.WV=function(){return this.bB[0]};a.TX=function(a){this.bB[0]=0>a?0:a};b.f(a,"r",a.sW,a.hY);b.f(a,"g",a.hW,a.cY);b.f(a,"b",a.$V,a.UX);b.f(a,"a",
a.WV,a.TX);b.Zb=function(a,d,e,f){this.Yc=e||new ArrayBuffer(b.Zb.BYTES_PER_ELEMENT);this.la=f||0;this.vm=new Float32Array(this.Yc,this.la,1);this.wm=new Float32Array(this.Yc,this.la+4,1);this.vm[0]=a||0;this.wm[0]=d||0};b.Zb.BYTES_PER_ELEMENT=8;Object.defineProperties(b.Zb.prototype,{x:{get:function(){return this.vm[0]},set:function(a){this.vm[0]=a},enumerable:!0},y:{get:function(){return this.wm[0]},set:function(a){this.wm[0]=a},enumerable:!0}});b.uc=function(a,d,e,f,g){this.Yc=f||new ArrayBuffer(b.uc.BYTES_PER_ELEMENT);
this.la=g||0;f=this.Yc;g=this.la;this.vm=new Float32Array(f,g,1);this.vm[0]=a||0;this.wm=new Float32Array(f,g+Float32Array.BYTES_PER_ELEMENT,1);this.wm[0]=d||0;this.uE=new Float32Array(f,g+2*Float32Array.BYTES_PER_ELEMENT,1);this.uE[0]=e||0};b.uc.BYTES_PER_ELEMENT=12;Object.defineProperties(b.uc.prototype,{x:{get:function(){return this.vm[0]},set:function(a){this.vm[0]=a},enumerable:!0},y:{get:function(){return this.wm[0]},set:function(a){this.wm[0]=a},enumerable:!0},z:{get:function(){return this.uE[0]},
set:function(a){this.uE[0]=a},enumerable:!0}});b.dk=function(a,d,e,f){this.Yc=e||new ArrayBuffer(b.dk.BYTES_PER_ELEMENT);this.la=f||0;this.bE=new Float32Array(this.Yc,this.la,1);this.hE=new Float32Array(this.Yc,this.la+4,1);this.bE[0]=a||0;this.hE[0]=d||0};b.dk.BYTES_PER_ELEMENT=8;Object.defineProperties(b.dk.prototype,{ea:{get:function(){return this.bE[0]},set:function(a){this.bE[0]=a},enumerable:!0},fa:{get:function(){return this.hE[0]},set:function(a){this.hE[0]=a},enumerable:!0}});b.hA=function(a,
d,e,f,g,h){this.Yc=g||new ArrayBuffer(b.hA.BYTES_PER_ELEMENT);this.la=h||0;g=this.Yc;h=b.Zb.BYTES_PER_ELEMENT;this.No=a?new b.Zb(a.x,a.y,g,0):new b.Zb(0,0,g,0);this.Qo=d?new b.Zb(d.x,d.y,g,h):new b.Zb(0,0,g,h);this.Hn=e?new b.Zb(e.x,e.y,g,2*h):new b.Zb(0,0,g,2*h);this.Ln=f?new b.Zb(f.x,f.y,g,3*h):new b.Zb(0,0,g,3*h)};b.hA.BYTES_PER_ELEMENT=32;b.Qu=function(a,d,e,f){this.G=a||new b.uc(0,0,0);this.N=d||new b.uc(0,0,0);this.M=e||new b.uc(0,0,0);this.K=f||new b.uc(0,0,0)};Object.defineProperties(b.hA.prototype,
{M:{get:function(){return this.No},set:function(a){this.No.x=a.x;this.No.y=a.y},enumerable:!0},K:{get:function(){return this.Qo},set:function(a){this.Qo.x=a.x;this.Qo.y=a.y},enumerable:!0},G:{get:function(){return this.Hn},set:function(a){this.Hn.x=a.x;this.Hn.y=a.y},enumerable:!0},N:{get:function(){return this.Ln},set:function(a){this.Ln.x=a.x;this.Ln.y=a.y},enumerable:!0}});b.ug=function(a,d,e,f,g){this.Yc=f||new ArrayBuffer(b.ug.BYTES_PER_ELEMENT);this.la=g||0;f=this.Yc;g=this.la;var h=b.uc.BYTES_PER_ELEMENT;
this.Sa=a?new b.uc(a.x,a.y,a.z,f,g):new b.uc(0,0,0,f,g);this.wr=d?b.color(d.r,d.g,d.b,d.a,f,g+h):b.color(0,0,0,0,f,g+h);this.Vf=e?new b.dk(e.ea,e.fa,f,g+h+b.yf.BYTES_PER_ELEMENT):new b.dk(0,0,f,g+h+b.yf.BYTES_PER_ELEMENT)};b.ug.BYTES_PER_ELEMENT=24;Object.defineProperties(b.ug.prototype,{i:{get:function(){return this.Sa},set:function(a){var d=this.Sa;d.x=a.x;d.y=a.y;d.z=a.z},enumerable:!0},t:{get:function(){return this.wr},set:function(a){var d=this.wr;d.r=a.r;d.g=a.g;d.b=a.b;d.a=a.a},enumerable:!0},
l:{get:function(){return this.Vf},set:function(a){this.Vf.ea=a.ea;this.Vf.fa=a.fa},enumerable:!0}});b.Cb=function(a,d,e,f,g,h){this.Yc=g||new ArrayBuffer(b.Cb.BYTES_PER_ELEMENT);this.la=h||0;g=this.Yc;h=this.la;var k=b.ug.BYTES_PER_ELEMENT;this.No=a?new b.ug(a.i,a.t,a.l,g,h):new b.ug(null,null,null,g,h);this.Hn=d?new b.ug(d.i,d.t,d.l,g,h+k):new b.ug(null,null,null,g,h+k);this.Qo=e?new b.ug(e.i,e.t,e.l,g,h+2*k):new b.ug(null,null,null,g,h+2*k);this.Ln=f?new b.ug(f.i,f.t,f.l,g,h+3*k):new b.ug(null,
null,null,g,h+3*k)};b.Cb.BYTES_PER_ELEMENT=96;Object.defineProperties(b.Cb.prototype,{M:{get:function(){return this.No},set:function(a){var d=this.No;d.i=a.i;d.t=a.t;d.l=a.l},enumerable:!0},G:{get:function(){return this.Hn},set:function(a){var d=this.Hn;d.i=a.i;d.t=a.t;d.l=a.l},enumerable:!0},K:{get:function(){return this.Qo},set:function(a){var d=this.Qo;d.i=a.i;d.t=a.t;d.l=a.l},enumerable:!0},N:{get:function(){return this.Ln},set:function(a){var d=this.Ln;d.i=a.i;d.t=a.t;d.l=a.l},enumerable:!0},
lx:{get:function(){return this.Yc},enumerable:!0}});b.aJ=function(){return new b.Cb};b.$I=function(a){if(!a)return b.aJ();var d=a.M,e=a.G,f=a.K;a=a.N;return{M:{i:{x:d.i.x,y:d.i.y,z:d.i.z},t:{r:d.t.r,g:d.t.g,b:d.t.b,a:d.t.a},l:{ea:d.l.ea,fa:d.l.fa}},G:{i:{x:e.i.x,y:e.i.y,z:e.i.z},t:{r:e.t.r,g:e.t.g,b:e.t.b,a:e.t.a},l:{ea:e.l.ea,fa:e.l.fa}},K:{i:{x:f.i.x,y:f.i.y,z:f.i.z},t:{r:f.t.r,g:f.t.g,b:f.t.b,a:f.t.a},l:{ea:f.l.ea,fa:f.l.fa}},N:{i:{x:a.i.x,y:a.i.y,z:a.i.z},t:{r:a.t.r,g:a.t.g,b:a.t.b,a:a.t.a},l:{ea:a.l.ea,
fa:a.l.fa}}}};b.S7=function(a){if(!a)return[];for(var d=[],e=0;e<a.length;e++)d.push(b.$I(a[e]));return d};b.wd=function(a,d,e,f,g){this.Yc=f||new ArrayBuffer(b.wd.BYTES_PER_ELEMENT);this.la=g||0;f=this.Yc;g=this.la;var h=b.Zb.BYTES_PER_ELEMENT;this.Sa=a?new b.Zb(a.x,a.y,f,g):new b.Zb(0,0,f,g);this.wr=d?b.color(d.r,d.g,d.b,d.a,f,g+h):b.color(0,0,0,0,f,g+h);this.Vf=e?new b.dk(e.ea,e.fa,f,g+h+b.yf.BYTES_PER_ELEMENT):new b.dk(0,0,f,g+h+b.yf.BYTES_PER_ELEMENT)};b.wd.BYTES_PER_ELEMENT=20;Object.defineProperties(b.wd.prototype,
{i:{get:function(){return this.Sa},set:function(a){this.Sa.x=a.x;this.Sa.y=a.y},enumerable:!0},t:{get:function(){return this.wr},set:function(a){var d=this.wr;d.r=a.r;d.g=a.g;d.b=a.b;d.a=a.a},enumerable:!0},l:{get:function(){return this.Vf},set:function(a){this.Vf.ea=a.ea;this.Vf.fa=a.fa},enumerable:!0}});b.Yb=function(a,d,e,f,g){this.Yc=f||new ArrayBuffer(b.Yb.BYTES_PER_ELEMENT);this.la=g||0;f=this.Yc;g=this.la;var h=b.wd.BYTES_PER_ELEMENT;this.jJ=a?new b.wd(a.i,a.t,a.l,f,g):new b.wd(null,null,null,
f,g);this.rJ=d?new b.wd(d.i,d.t,d.l,f,g+h):new b.wd(null,null,null,f,g+h);this.uJ=e?new b.wd(e.i,e.t,e.l,f,g+2*h):new b.wd(null,null,null,f,g+2*h)};b.Yb.BYTES_PER_ELEMENT=60;Object.defineProperties(b.Yb.prototype,{a:{get:function(){return this.jJ},set:function(a){var d=this.jJ;d.i=a.i;d.t=a.t;d.l=a.l},enumerable:!0},b:{get:function(){return this.rJ},set:function(a){var d=this.rJ;d.i=a.i;d.t=a.t;d.l=a.l},enumerable:!0},C:{get:function(){return this.uJ},set:function(a){var d=this.uJ;d.i=a.i;d.t=a.t;
d.l=a.l},enumerable:!0}})};b.B.$z=function(){var a=b.color;a.EW=function(){return a(255,255,255)};a.FW=function(){return a(255,255,0)};a.bW=function(){return a(0,0,255)};a.jW=function(){return a(0,255,0)};a.tW=function(){return a(255,0,0)};a.oW=function(){return a(255,0,255)};a.aW=function(){return a(0,0,0)};a.rW=function(){return a(255,127,0)};a.iW=function(){return a(166,166,166)};b.f(a,"WHITE",a.EW);b.f(a,"YELLOW",a.FW);b.f(a,"BLUE",a.bW);b.f(a,"GREEN",a.jW);b.f(a,"RED",a.tW);b.f(a,"MAGENTA",a.oW);b.f(a,"BLACK",a.aW);b.f(a,
"ORANGE",a.rW);b.f(a,"GRAY",a.iW)};b.yf=function(a,c,d,e){this.r=a||0;this.g=c||0;this.b=d||0;this.a=e||255};b.color=function(a,c,d,e){return void 0===a?{r:0,g:0,b:0,a:255}:"string"===typeof a?b.VN(a):"object"===typeof a?{r:a.r,g:a.g,b:a.b,a:a.a||255}:{r:a,g:c,b:d,a:e||255}};b.G9=function(a,c){return a.r===c.r&&a.g===c.g&&a.b===c.b};b.rQ=function(){this.timestamp=this.z=this.y=this.x=0};b.Zb=function(a,c){this.x=a||0;this.y=c||0};b.uc=function(a,c,d){this.x=a||0;this.y=c||0;this.z=d||0};b.dk=function(a,c){this.ea=a||0;this.fa=c||0};
b.Sj=function(a,c){this.src=a;this.U=c};b.r9=function(){return new b.Sj(b.ONE,b.ZERO)};b.VN=function(a){a=a.replace(/^#?/,"0x");a=parseInt(a);return b.color(a>>16,(a>>8)%256,a%256)};b.H9=function(a){var c=a.r.toString(16),d=a.g.toString(16),e=a.b.toString(16);return"#"+(16>a.r?"0"+c:c)+(16>a.g?"0"+d:d)+(16>a.b?"0"+e:e)};b.Xu=0;b.Vq=1;b.Wq=2;b.ir=0;b.HU=1;b.bJ=2;
b.X7=b.ja.extend({wo:null,Ms:null,aB:0,ctor:function(){this.wo={};this.Ms={};this.aB=2<<(0|10*Math.random())},SU:function(){this.aB++;return"key_"+this.aB},Lia:function(a,c){if(null!=c){var d=this.SU();this.wo[d]=c;this.Ms[d]=a}},k2:function(a){if(null==a)return null;var c=this.wo,d;for(d in c)if(c[d]===a)return this.Ms[d];return null},Bka:function(a){return this.k2(a)},Z2:function(a){if(null!=a){var c=this.wo,d;for(d in c)if(c[d]===a){delete this.Ms[d];delete c[d];break}}},lha:function(a){if(null!=
a)for(var c=0;c<a.length;c++)this.Z2(a[c])},iZ:function(){var a=[],c=this.wo,d;for(d in c)a.push(c[d]);return a},fha:function(){this.wo={};this.Ms={}},count:function(){return this.iZ().length}});
b.uH=function(){this.fontName="Arial";this.fontSize=12;this.textAlign=b.Vq;this.verticalAlign=b.ir;this.fillStyle=b.color(255,255,255,255);this.boundingHeight=this.boundingWidth=0;this.QG=!1;this.strokeStyle=b.color(255,255,255,255);this.lineWidth=1;this.OP=!1;this.shadowBlur=this.shadowOffsetY=this.shadowOffsetX=0;this.shadowOpacity=1};b.A===b.Z&&(b.assert("function"===typeof b.B.TA,b.e.Nc,"CCTypesWebGL.js"),b.B.TA(),delete b.B.TA);b.assert("function"===typeof b.B.$z,b.e.Nc,"CCTypesPropertyDefine.js");
b.B.$z();delete b.B.$z;b.M7=[];b.N7={};
b.vz=b.ja.extend({h8:null,je:null,Xn:null,Ik:null,se:null,yi:null,jD:!1,hB:!0,Ql:1,oE:"",gD:null,qa:1,eL:1,Ra:1,fL:1,oo:0,AC:5,oh:null,DL:null,HL:null,GL:null,EL:null,FL:null,Tr:!1,e8:!1,O8:null,EK:null,FK:null,L8:!1,zB:null,Ck:null,SB:1,mv:!1,LK:!0,ctor:function(){var a=document,c=b.Tj,d=b.qg;this.Ck=b.Cm.parentNode===a.body?a.documentElement:b.Cm.parentNode;this.je=H(0,0);this.hC();var a=b.Ya.width,e=b.Ya.height;this.Xn=H(a,e);this.Ik=H(a,e);this.se=O(0,0,a,e);this.yi=O(0,0,a,e);this.zB={left:0,
top:0};this.oE="Cocos2dHTML5";a=b.rb;this.p_(a.$F==a.IH||a.$F==a.JH);b.Ni&&b.Ni.F(this.yi);this.DL=new b.cf(c.pu,d.yz);this.HL=new b.cf(c.JS,d.SHOW_ALL);this.GL=new b.cf(c.pu,d.Qz);this.EL=new b.cf(c.pu,d.zz);this.FL=new b.cf(c.pu,d.Az);this.EK=b.Ya;this.FK=b.k},hD:function(){var a=this.Ik.width,c=this.Ik.height;this.gD&&(this.hC(),this.gD.call());0<a&&this.wG(a,c,this.oh)},f3:function(a){a?this.mv||(this.mv=!0,a=this.hD.bind(this),b.Ja(window,"resize",a,!1)):this.mv&&(this.mv=!0,a=this.hD.bind(this),
window.removeEventListener("resize",a,!1))},cja:function(a){if("function"==typeof a||null==a)this.gD=a},hC:function(){var a=this.je;a.width=this.Ck.clientWidth;a.height=this.Ck.clientHeight},Y7:function(){var a=this.Ik.width,c=this.Ik.height;0<a&&this.wG(a,c,this.oh)},AY:function(){if(this.LK){var a={"user-scalable":"no","maximum-scale":"1.0","initial-scale":"1.0"},c=document.getElementsByName("viewport"),d;0==c.length?(c=b.Ob("meta"),c.name="viewport",c.content="",document.head.appendChild(c)):c=
c[0];if(b.rb.Dj&&b.rb.Am==b.rb.fq)c.content="initial-scale:1";else{d=c.content;for(var e in a)RegExp(e).test(d)||(d+=(""==d?"":",")+e+"\x3d"+a[e]);c.content=d}}},NL:function(){var a=b.pb();this.Ra=this.qa=a},AL:function(){this.qa=this.eL;this.Ra=this.fL},Z7:function(){},j1:function(){this.Tr=!0},dZ:function(a){this.LK=a},p_:function(a){this.jD=a?!0:!1},zda:function(){return this.jD},J$:function(a){this.hB=a?!0:!1},lda:function(){return this.hB},end:function(){},wda:function(){return null!=this.EK&&
null!=this.FK},qia:function(a){this.SB=a;b.D.bn(b.D.si)},eka:function(){},via:function(){},bia:function(a,c){this.zB={left:a,top:c}},Gaa:function(){return this.zB},fba:function(){return H(this.je.width,this.je.height)},pia:function(a,c){this.je.width=a;this.je.height=c;this.Ck.style.width=a+"px";this.Ck.style.height=c+"px";this.hD();b.D.bn(b.D.si)},B9:function(){},jt:function(){return H(this.yi.width,this.yi.height)},rF:function(){return C(this.yi.x,this.yi.y)},u9:function(){return!0},eca:function(){return this.oh},
W3:function(a){if(a instanceof b.cf)this.oh=a;else{var c=b.cf;a===c.yz&&(this.oh=this.DL);a===c.SHOW_ALL&&(this.oh=this.HL);a===c.Qz&&(this.oh=this.GL);a===c.zz&&(this.oh=this.EL);a===c.Az&&(this.oh=this.FL)}},wG:function(a,c,d){if(isNaN(a)||0==a||isNaN(c)||0==c)b.log(b.e.hR);else{this.W3(d);var e=this.oh;if(e){e.Wm(this);var f=this.je.width,g=this.je.height;b.rb.Dj&&this.AY(this.je.width,this.je.height);this.hC();if(d!=this.oh||a!=this.Ik.width||c!=this.Ik.height||f!=this.je.width||g!=this.je.height)this.Xn=
H(a,c),this.Ik=H(a,c),a=e.apply(this,this.Xn),a.scale&&2==a.scale.length&&(this.qa=a.scale[0],this.Ra=a.scale[1]),a.viewport&&(a=this.se=a.viewport,c=this.yi,c.width=b.Ya.width/this.qa,c.height=b.Ya.height/this.Ra,c.x=-a.x/this.qa,c.y=-a.y/this.Ra),a=b.D,b.ju.width=a.R.width=this.yi.width,b.ju.height=a.R.height=this.yi.height,e.Vm(this),b.A==b.Z&&(a.Un(),a.sP()),this.eL=this.qa,this.fL=this.Ra,b.ZQ&&b.ZQ.C8(),b.Ni&&b.Ni.F(this.yi)}else b.log(b.e.iR)}},eF:function(){return H(this.Xn.width,this.Xn.height)},
q4:function(a,c,d,e){var f=this.SB,g=this.qa,h=this.Ra;b.k.viewport(a*g*f+this.se.x*f,c*h*f+this.se.y*f,d*g*f,e*h*f)},eja:function(a,c,d,e){var f=this.SB,g=this.qa,h=this.Ra;b.k.scissor(a*g*f+this.se.x*f,c*h*f+this.se.y*f,d*g*f,e*h*f)},Bda:function(){var a=b.k;return a.isEnabled(a.SCISSOR_TEST)},jca:function(){var a=b.k,c=this.qa,d=this.Ra,a=a.getParameter(a.SCISSOR_BOX);return O((a[0]-this.se.x)/c,(a[1]-this.se.y)/d,a[2]/c,a[3]/d)},Oja:function(a){null!=a&&0<a.length&&(this.oE=a)},Rca:function(){return this.oE},
Sca:function(){return this.se},FN:function(){return this.qa},GN:function(){return this.Ra},Oaa:function(){return this.Ql},NE:function(a,c,d){return{x:this.Ql*(a-d.left),y:this.Ql*(d.top+d.height-c)}},BV:function(a,c){var d=this.se;a.x=(this.Ql*(a.x-c.left)-d.x)/this.qa;a.y=(this.Ql*(c.top+c.height-a.y)-d.y)/this.Ra},Gv:function(a){for(var c=this.se,d=this.qa,e=this.Ra,f,g,h,k=0;k<a.length;k++)f=a[k],g=f.Bd,h=f.ri,f.AD((g.x-c.x)/d,(g.y-c.y)/e),f.Co((h.x-c.x)/d,(h.y-c.y)/e)}});
b.vz.ZB=function(){this.gw||(this.gw=this.gw||new b.vz,this.gw.j1());return this.gw};
b.Tj=b.ja.extend({Wm:function(){},apply:function(){},Vm:function(){},ED:function(a,c,d){var e=a.Ck;b.view.hB&&b.rb.Dj&&e==document.documentElement&&b.screen.xZ(e);var e=b.Ya,f=b.Cm;f.style.width=e.style.width=c+"px";f.style.height=e.style.height=d+"px";f=a.Ql=1;a.jD&&(f=a.Ql=window.devicePixelRatio||1);e.width=c*f;e.height=d*f;a=document.body;var g;a&&(g=a.style)&&(g.paddingTop=g.paddingTop||"0px",g.paddingRight=g.paddingRight||"0px",g.paddingBottom=g.paddingBottom||"0px",g.paddingLeft=g.paddingLeft||
"0px",g.borderTop=g.borderTop||"0px",g.borderRight=g.borderRight||"0px",g.borderBottom=g.borderBottom||"0px",g.borderLeft=g.borderLeft||"0px",g.marginTop=g.marginTop||"0px",g.marginRight=g.marginRight||"0px",g.marginBottom=g.marginBottom||"0px",g.marginLeft=g.marginLeft||"0px")},rK:function(){document.body.insertBefore(b.Cm,document.body.firstChild);var a=document.body.style;a.width=window.innerWidth+"px";a.height=window.innerHeight+"px";a.overflow="hidden";a=b.Cm.style;a.position="fixed";a.left=
a.top="0px";document.body.scrollTop=0}});b.qg=b.ja.extend({iD:{scale:[1,1],viewport:null},sr:function(a,c,d,e,f,g){2>Math.abs(a-d)&&(d=a);2>Math.abs(c-e)&&(e=c);a=O(Math.round((a-d)/2),Math.round((c-e)/2),d,e);b.A==b.Da&&b.k.translate(a.x,a.y+e);this.iD.scale=[f,g];this.iD.viewport=a;return this.iD},Wm:function(){},apply:function(){return{scale:[1,1]}},Vm:function(){}});
(function(){var a=b.Tj.extend({apply:function(a){this.ED(a,a.je.width,a.je.height)}}),c=b.Tj.extend({apply:function(a,c){var d=a.je.width,e=a.je.height,f=b.Cm.style,r=c.width,s=c.height,u=d/r,t=e/s,v,w;u<t?(v=d,w=s*u):(v=r*t,w=e);r=Math.round((d-v)/2);w=Math.round((e-w)/2);this.ED(a,d-2*r,e-2*w);f.marginLeft=r+"px";f.marginRight=r+"px";f.marginTop=w+"px";f.marginBottom=w+"px"}});a.extend({Wm:function(a){this._super(a);a.Ck=document.documentElement},apply:function(a){this._super(a);this.rK()}});c.extend({Wm:function(a){this._super(a);
a.Ck=document.documentElement},apply:function(a,c){this._super(a,c);this.rK()}});var d=b.Tj.extend({apply:function(a){this.ED(a,b.Ya.width,b.Ya.height)}});b.Tj.pu=new a;b.Tj.JS=new c;b.Tj.e7=new d;var a=b.qg.extend({apply:function(a,c){var d=b.Ya.width,e=b.Ya.height;return this.sr(d,e,d,e,d/c.width,e/c.height)}}),c=b.qg.extend({apply:function(a,c){var d=b.Ya.width,e=b.Ya.height,f=c.width,r=c.height,s=d/f,u=e/r,t=0,v,w;s<u?(t=s,v=d,w=r*t):(t=u,v=f*t,w=e);return this.sr(d,e,v,w,t,t)}}),d=b.qg.extend({apply:function(a,
c){var d=b.Ya.width,e=b.Ya.height,f=c.width,r=c.height,s=d/f,u=e/r,t,v,w;s<u?(t=u,v=f*t,w=e):(t=s,v=d,w=r*t);return this.sr(d,e,v,w,t,t)}}),e=b.qg.extend({apply:function(a,c){var d=b.Ya.width,e=b.Ya.height,f=e/c.height;return this.sr(d,e,d,e,f,f)},Vm:function(a){b.D.R=a.jt()}}),f=b.qg.extend({apply:function(a,c){var d=b.Ya.width,e=b.Ya.height,f=d/c.width;return this.sr(d,e,d,e,f,f)},Vm:function(a){b.D.R=a.jt()}});b.qg.yz=new a;b.qg.SHOW_ALL=new c;b.qg.Qz=new d;b.qg.zz=new e;b.qg.Az=new f})();
b.cf=b.ja.extend({Ev:null,Fv:null,ctor:function(a,c){this.v3(a);this.w3(c)},Wm:function(a){this.Ev.Wm(a);this.Fv.Wm(a)},apply:function(a,c){this.Ev.apply(a,c);return this.Fv.apply(a,c)},Vm:function(a){this.Ev.Vm(a);this.Fv.Vm(a)},v3:function(a){a instanceof b.Tj&&(this.Ev=a)},w3:function(a){a instanceof b.qg&&(this.Fv=a)}});b.cf.yz=0;b.cf.Qz=1;b.cf.SHOW_ALL=2;b.cf.zz=3;b.cf.Az=4;b.cf.FU=5;b.screen={Yw:!1,UC:null,ZD:"",Bk:null,PV:[["requestFullscreen","exitFullscreen","fullscreenchange","fullscreenEnabled","fullscreenElement"],["requestFullScreen","exitFullScreen","fullScreenchange","fullScreenEnabled","fullScreenElement"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitfullscreenchange","webkitIsFullScreen","webkitCurrentFullScreenElement"],["mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozFullScreen","mozFullScreenElement"],["msRequestFullscreen",
"msExitFullscreen","MSFullscreenChange","msFullscreenEnabled","msFullscreenElement"]],F:function(){this.Bk={};var a,c,d=this.PV,e;a=0;for(l=d.length;a<l;a++)if((c=d[a])&&c[1]in document){a=0;for(e=c.length;a<e;a++)this.Bk[d[0][a]]=c[a];break}this.Yw=void 0!=this.Bk.requestFullscreen;this.ZD="ontouchstart"in window?"touchstart":"mousedown"},fullScreen:function(){return this.Yw&&document[this.Bk.fullscreenEnabled]},bP:function(a,c){if(this.Yw){a=a||document.documentElement;a[this.Bk.requestFullscreen]();
if(c){var d=this.Bk.iaa;this.UC&&document.removeEventListener(d,this.UC);this.UC=c;b.Ja(document,d,c,!1)}return a[this.Bk.requestFullscreen]()}},M$:function(){return this.Yw?document[this.Bk.exitFullscreen]():!0},xZ:function(a,c){function d(){f.bP(a,c);e.removeEventListener(f.ZD,d)}a=a||document.body;var e=b.Ya||a,f=this;this.bP(a,c);b.Ja(e,this.ZD,d)}};b.screen.F();b.Ni={$P:C(0,0),aQ:C(0,0),top:C(0,0),ox:C(0,0),AM:C(0,0),bottom:C(0,0),Xo:C(0,0),left:C(0,0),right:C(0,0),width:0,height:0,F:function(a){var c=this.width=a.width,d=this.height=a.height,e=a.x;a=a.y;var f=a+d,g=e+c;this.$P.x=e;this.$P.y=f;this.aQ.x=g;this.aQ.y=f;this.top.x=e+c/2;this.top.y=f;this.ox.x=e;this.ox.y=a;this.AM.x=g;this.AM.y=a;this.bottom.x=e+c/2;this.bottom.y=a;this.Xo.x=e+c/2;this.Xo.y=a+d/2;this.left.x=e;this.left.y=a+d/2;this.right.x=g;this.right.y=a+d/2}};b.uU=-90;b.vU=90;b.wU=180;b.P7=0;
b.hO={xo:!1,PK:!1,lL:C(0,0),HX:C(0,0),mL:[],VC:0,Xk:[],$D:{},oo:0,AC:5,ov:!1,pv:1/30,lJ:1,Ll:0,cB:null,nv:null,BW:function(){for(var a=this.oo,c=0;c<this.AC;c++){if(!(a&1))return this.oo|=1<<c,c;a>>=1}return-1},NX:function(a){0>a||a>=this.AC||(a=~(1<<a),this.oo&=a)},Ek:null,uF:function(a){for(var c,d,e,f=[],g=this.$D,h=0,k=a.length;h<k;h++)c=a[h],e=c.Mf,d=g[e],null==d&&(d=this.BW(),-1==d?b.log(b.e.k1,d):(c=this.Xk[d]=c,g[e]=d,f.push(c)));0<f.length&&(this.Ek.Gv(f),a=new b.rg(f),a.xk=b.rg.on.jz,b.ra.dispatchEvent(a))},
vF:function(a){for(var c,d,e=[],f=this.Xk,g=0,h=a.length;g<h;g++)c=a[g],d=c.Mf,d=this.$D[d],null!=d&&f[d]&&(f[d].AD(c.Bd),f[d].Co(c.ri),e.push(f[d]));0<e.length&&(this.Ek.Gv(e),a=new b.rg(e),a.xk=b.rg.on.Mz,b.ra.dispatchEvent(a))},Ox:function(a){a=this.HN(a);0<a.length&&(this.Ek.Gv(a),a=new b.rg(a),a.xk=b.rg.on.wz,b.ra.dispatchEvent(a))},TN:function(a){a=this.HN(a);0<a.length&&(this.Ek.Gv(a),a=new b.rg(a),a.xk=b.rg.on.oz,b.ra.dispatchEvent(a))},HN:function(a){for(var c,d,e,f=[],g=this.Xk,h=this.$D,
k=0,m=a.length;k<m;k++)c=a[k],e=c.Mf,d=h[e],null!=d&&g[d]&&(g[d].AD(c.Bd),g[d].Co(c.ri),f.push(g[d]),this.NX(d),delete h[e]);return f},Fh:function(a){var c=document.documentElement,d=window,e=null,e="function"===typeof a.getBoundingClientRect?a.getBoundingClientRect():a instanceof HTMLCanvasElement?{left:0,top:0,width:a.width,height:a.height}:{left:0,top:0,width:parseInt(a.style.width),height:parseInt(a.style.height)};return{left:e.left+d.pageXOffset-c.clientLeft,top:e.top+d.pageYOffset-c.clientTop,
width:e.width,height:e.height}},u0:function(a){for(var c=null,d=this.mL,e=a.Mf,f=d.length-1;0<=f;f--)if(d[f].Mf==e){c=d[f];break}c||(c=a);return c},V3:function(a){for(var c=!1,d=this.mL,e=a.Mf,f=d.length-1;0<=f;f--)if(d[f].Mf==e){d[f]=a;c=!0;break}c||(50>=d.length?d.push(a):(d[this.VC]=a,this.VC=(this.VC+1)%50))},it:function(a,c,d){var e=this.lL;a=this.Ek.NE(a,c,d);c=new b.FA(a.x,a.y);c.Co(e.x,e.y);e.x=a.x;e.y=a.y;return c},pp:function(a,c,d){var e=this.HX;this.Ek.BV(a,c);c=new b.Dc(d);c.K3(a.x,a.y);
c.gY(e.x,e.y);e.x=a.x;e.y=a.y;return c},qp:function(a,c){if(null!=a.pageX)return{x:a.pageX,y:a.pageY};c.left-=document.body.scrollLeft;c.top-=document.body.scrollTop;return{x:a.clientX,y:a.clientY}},Lx:function(a,c){for(var d=[],e=this.Ek,f,g,h=this.lL,k=a.changedTouches.length,m=0;m<k;m++)if(f=a.changedTouches[m]){var p;p=b.rb.fq===b.rb.Am?e.NE(f.pageX,f.pageY,c):e.NE(f.clientX,f.clientY,c);null!=f.identifier?(f=new b.FA(p.x,p.y,f.identifier),g=this.u0(f).ht(),f.Co(g.x,g.y),this.V3(f)):(f=new b.FA(p.x,
p.y),f.Co(h.x,h.y));h.x=p.x;h.y=p.y;d.push(f)}return d},S2:function(a){if(!this.PK){var c=this.Ek=b.view,d=this,e="touches"in b.rb.Zs;"mouse"in b.rb.Zs&&(b.Ja(window,"mousedown",function(){d.xo=!0},!1),b.Ja(window,"mouseup",function(c){var f=d.xo;d.xo=!1;if(f){var f=d.Fh(a),g=d.qp(c,f);b.UO(new b.bI(f.left,f.top,f.width,f.height),g)||(e||d.Ox([d.it(g.x,g.y,f)]),f=d.pp(g,f,b.Dc.QA),f.an(c.button),b.ra.dispatchEvent(f))}},!1),b.Ja(a,"mousedown",function(c){d.xo=!0;var f=d.Fh(a),g=d.qp(c,f);e||d.uF([d.it(g.x,
g.y,f)]);f=d.pp(g,f,b.Dc.nH);f.an(c.button);b.ra.dispatchEvent(f);c.stopPropagation();c.preventDefault();a.focus()},!1),b.Ja(a,"mouseup",function(c){d.xo=!1;var f=d.Fh(a),g=d.qp(c,f);e||d.Ox([d.it(g.x,g.y,f)]);f=d.pp(g,f,b.Dc.QA);f.an(c.button);b.ra.dispatchEvent(f);c.stopPropagation();c.preventDefault()},!1),b.Ja(a,"mousemove",function(c){var f=d.Fh(a),g=d.qp(c,f);e||d.vF([d.it(g.x,g.y,f)]);f=d.pp(g,f,b.Dc.DH);d.xo?f.an(c.button):f.an(null);b.ra.dispatchEvent(f);c.stopPropagation();c.preventDefault()},
!1),b.Ja(a,"mousewheel",function(c){var e=d.Fh(a),f=d.qp(c,e),e=d.pp(f,e,b.Dc.lA);e.an(c.button);e.HP(0,c.wheelDelta);b.ra.dispatchEvent(e);c.stopPropagation();c.preventDefault()},!1),b.Ja(a,"DOMMouseScroll",function(c){var e=d.Fh(a),f=d.qp(c,e),e=d.pp(f,e,b.Dc.lA);e.an(c.button);e.HP(0,-120*c.detail);b.ra.dispatchEvent(e);c.stopPropagation();c.preventDefault()},!1));if(window.navigator.msPointerEnabled){var f={MSPointerDown:d.uF,MSPointerMove:d.vF,MSPointerUp:d.Ox,MSPointerCancel:d.TN},g;for(g in f)(function(c,
e){b.Ja(a,c,function(c){var f=d.Fh(a);f.left-=document.documentElement.scrollLeft;f.top-=document.documentElement.scrollTop;e.call(d,[d.it(c.clientX,c.clientY,f)]);c.stopPropagation()},!1)})(g,f[g])}e&&(b.Ja(a,"touchstart",function(c){if(c.changedTouches){var e=d.Fh(a);e.left-=document.body.scrollLeft;e.top-=document.body.scrollTop;d.uF(d.Lx(c,e));c.stopPropagation();c.preventDefault();a.focus()}},!1),b.Ja(a,"touchmove",function(c){if(c.changedTouches){var e=d.Fh(a);e.left-=document.body.scrollLeft;
e.top-=document.body.scrollTop;d.vF(d.Lx(c,e));c.stopPropagation();c.preventDefault()}},!1),b.Ja(a,"touchend",function(c){if(c.changedTouches){var e=d.Fh(a);e.left-=document.body.scrollLeft;e.top-=document.body.scrollTop;d.Ox(d.Lx(c,e));c.stopPropagation();c.preventDefault()}},!1),b.Ja(a,"touchcancel",function(e){if(e.changedTouches){var f=d.Fh(a);f.left-=document.body.scrollLeft;f.top-=document.body.scrollTop;c.TN(d.Lx(e,f));e.stopPropagation();e.preventDefault()}},!1));this.wL();this.vL();this.PK=
!0}},wL:function(){},vL:function(){},update:function(a){this.Ll>this.pv&&(this.Ll-=this.pv,b.ra.dispatchEvent(new b.nR(this.cB)));this.Ll+=a}};var n=b.hO;n.Kha=function(a){this.ov!==a&&(this.ov=a,a=b.D.cl(),this.ov?(this.Ll=0,a.sG(this)):(this.Ll=0,a.gu(this)))};n.Lha=function(a){this.pv!==a&&(this.pv=a)};n.wL=function(){b.Ja(b.Ya,"keydown",function(a){b.ra.dispatchEvent(new b.rH(a.keyCode,!0));a.stopPropagation();a.preventDefault()},!1);b.Ja(b.Ya,"keyup",function(a){b.ra.dispatchEvent(new b.rH(a.keyCode,!1));a.stopPropagation();a.preventDefault()},!1)};
n.vL=function(){var a=window;this.cB=new b.rQ;this.nv=a.DeviceMotionEvent||a.DeviceOrientationEvent;b.rb.Am==b.rb.gH&&(this.nv=window.DeviceOrientationEvent);b.Ja(a,this.nv==a.DeviceMotionEvent?"devicemotion":"deviceorientation",this.UZ.bind(this),!1)};
n.UZ=function(a){var c=window;if(this.ov){var d=this.cB;if(this.nv==window.DeviceMotionEvent){var e=a.accelerationIncludingGravity;d.x=this.lJ*e.x*0.1;d.y=this.lJ*e.y*0.1;d.z=0.1*e.z}else d.x=a.gamma/90*0.981,d.y=0.981*-(a.beta/90),d.z=a.alpha/90*0.981;d.timestamp=a.timeStamp||Date.now();a=d.x;c.orientation===b.vU?(d.x=-d.y,d.y=a):c.orientation===b.uU?(d.x=d.y,d.y=-a):c.orientation===b.wU&&(d.x=-d.x,d.y=-d.y)}};delete n;b.E5=function(a,c,d,e,f,g){this.a=a;this.b=c;this.C=d;this.J=e;this.La=f;this.Ma=g};b.H5=function(a,c,d,e,f,g){return{a:a,b:c,C:d,J:e,La:f,Ma:g}};b.aI=function(a,c){return{x:c.a*a.x+c.C*a.y+c.La,y:c.b*a.x+c.J*a.y+c.Ma}};b.lk=function(a,c,d){return{x:d.a*a+d.C*c+d.La,y:d.b*a+d.J*c+d.Ma}};b.p7=function(a,c){return{width:c.a*a.width+c.C*a.height,height:c.b*a.width+c.J*a.height}};b.I5=function(){return{a:1,b:0,C:0,J:1,La:0,Ma:0}};b.G5=function(){return{a:1,b:0,C:0,J:1,La:0,Ma:0}};
b.iA=function(a,c){var d=b.Lp(a),e=b.Kp(a),f=b.Nt(a),g=b.Ot(a),h=b.lk(e,d,c),d=b.lk(f,d,c),e=b.lk(e,g,c),k=b.lk(f,g,c),f=Math.min(h.x,d.x,e.x,k.x),g=Math.max(h.x,d.x,e.x,k.x),m=Math.min(h.y,d.y,e.y,k.y),h=Math.max(h.y,d.y,e.y,k.y);return O(f,m,g-f,h-m)};
b.QU=function(a,c){var d=b.Lp(a),e=b.Kp(a),f=b.Nt(a),g=b.Ot(a),h=b.lk(e,d,c),d=b.lk(f,d,c),e=b.lk(e,g,c),k=b.lk(f,g,c),f=Math.min(h.x,d.x,e.x,k.x),g=Math.max(h.x,d.x,e.x,k.x),m=Math.min(h.y,d.y,e.y,k.y),h=Math.max(h.y,d.y,e.y,k.y);a.x=f;a.y=m;a.width=g-f;a.height=h-m;return a};b.vQ=function(a,c,d){return{a:a.a,b:a.b,C:a.C,J:a.J,La:a.La+a.a*c+a.C*d,Ma:a.Ma+a.b*c+a.J*d}};b.K5=function(a,c,d){return{a:a.a*c,b:a.b*c,C:a.C*d,J:a.J*d,La:a.La,Ma:a.Ma}};
b.J5=function(a,c){var d=Math.sin(c),e=Math.cos(c);return{a:a.a*e+a.C*d,b:a.b*e+a.J*d,C:a.C*e-a.a*d,J:a.J*e-a.b*d,La:a.La,Ma:a.Ma}};b.sl=function(a,c){return{a:a.a*c.a+a.b*c.C,b:a.a*c.b+a.b*c.J,C:a.C*c.a+a.J*c.C,J:a.C*c.b+a.J*c.J,La:a.La*c.a+a.Ma*c.C+c.La,Ma:a.La*c.b+a.Ma*c.J+c.Ma}};b.F5=function(a,c){return a.a===c.a&&a.b===c.b&&a.C===c.C&&a.J===c.J&&a.La===c.La&&a.Ma===c.Ma};
b.aH=function(a){var c=1/(a.a*a.J-a.b*a.C);return{a:c*a.J,b:-c*a.b,C:-c*a.C,J:c*a.a,La:c*(a.C*a.Ma-a.J*a.La),Ma:c*(a.b*a.La-a.a*a.Ma)}};b.NH=parseFloat("1.192092896e-07F");b.cG=function(a){return C(-a.x,-a.y)};b.Nh=function(a,c){return C(a.x+c.x,a.y+c.y)};b.Hd=function(a,c){return C(a.x-c.x,a.y-c.y)};b.Ii=function(a,c){return C(a.x*c,a.y*c)};b.MO=function(a,c){return b.Ii(b.Nh(a,c),0.5)};b.Hp=function(a,c){return a.x*c.x+a.y*c.y};b.q2=function(a,c){return a.x*c.y-a.y*c.x};b.Dy=function(a){return C(-a.y,a.x)};b.rga=function(a){return C(a.y,-a.x)};b.qga=function(a,c){return b.Ii(c,b.Hp(a,c)/b.Hp(c,c))};
b.sga=function(a,c){return C(a.x*c.x-a.y*c.y,a.x*c.y+a.y*c.x)};b.vga=function(a,c){return C(a.x*c.x+a.y*c.y,a.y*c.x-a.x*c.y)};b.KO=function(a){return b.Hp(a,a)};b.JO=function(a,c){return b.KO(b.Hd(a,c))};b.jl=function(a){return Math.sqrt(b.KO(a))};b.mga=function(a,c){return b.jl(b.Hd(a,c))};b.Mg=function(a){return b.Ii(a,1/b.jl(a))};b.nga=function(a){return C(Math.cos(a),Math.sin(a))};b.u2=function(a){return Math.atan2(a.y,a.x)};b.Tc=function(a,c,d){if(c>d){var e=c;c=d;d=e}return a<c?c:a<d?a:d};
b.aG=function(a,c,d){return C(b.Tc(a.x,c.x,d.x),b.Tc(a.y,c.y,d.y))};b.r2=function(){var a=b.D.R;return C(a.width,a.height)};b.lga=function(a,c){return C(c(a.x),c(a.y))};b.LO=function(a,c,d){return b.Nh(b.Ii(a,1-d),b.Ii(c,d))};b.oga=function(a,c,d){return a.x-d<=c.x&&c.x<=a.x+d&&a.y-d<=c.y&&c.y<=a.y+d?!0:!1};b.kga=function(a,c){return C(a.x*c.x,a.y*c.y)};b.jga=function(a,c){var d=b.Mg(a),e=b.Mg(c),d=Math.atan2(d.x*e.y-d.y*e.x,b.Hp(d,e));return Math.abs(d)<b.NH?0:d};
b.iga=function(a,c){var d=Math.acos(b.Hp(b.Mg(a),b.Mg(c)));return Math.abs(d)<b.NH?0:d};b.t2=function(a,c,d){a=b.Hd(a,c);var e=Math.cos(d);d=Math.sin(d);var f=a.x;a.x=f*e-a.y*d+c.x;a.y=f*d+a.y*e+c.y;return a};b.bG=function(a,c,d,e,f){if(a.x==c.x&&a.y==c.y||d.x==e.x&&d.y==e.y)return!1;var g=c.x-a.x;c=c.y-a.y;var h=e.x-d.x;e=e.y-d.y;var k=a.x-d.x;a=a.y-d.y;d=e*g-h*c;f.x=h*a-e*k;f.y=g*a-c*k;if(0==d)return 0==f.x||0==f.y?!0:!1;f.x/=d;f.y/=d;return!0};
b.uga=function(a,c,d,e){var f=C(0,0);return b.bG(a,c,d,e,f)&&0<=f.x&&1>=f.x&&0<=f.y&&1>=f.y?!0:!1};b.pga=function(a,c,d,e){var f=C(0,0);return b.bG(a,c,d,e,f)?(d=C(0,0),d.x=a.x+f.x*(c.x-a.x),d.y=a.y+f.x*(c.y-a.y),d):C(0,0)};b.tga=function(a,c){return null!=a&&null!=c?a.x==c.x&&a.y==c.y:!1};b.Ey=function(a){a.x=0;a.y=0};b.Ij=function(a,c){a.x=c.x;a.y=c.y};b.Ip=function(a,c){a.x*=c;a.y*=c};b.NO=function(a,c){a.x-=c.x;a.y-=c.y};b.Cy=function(a,c){a.x+=c.x;a.y+=c.y};
b.s2=function(a){b.Ip(a,1/Math.sqrt(a.x*a.x+a.y*a.y))};b.WG=function(a,c,d,e,f){f+=e;if(!(1>=f)){c*=0.5;for(var g,h=f-1,k=e;k<f;k++){g=2*k;var m=C(a[2*k],a[2*k+1]),p;if(0===k)p=b.Dy(b.Mg(b.Hd(m,C(a[2*(k+1)],a[2*(k+1)+1]))));else if(k===h)p=b.Dy(b.Mg(b.Hd(C(a[2*(k-1)],a[2*(k-1)+1]),m)));else{p=C(a[2*(k-1)],a[2*(k-1)+1]);var r=C(a[2*(k+1)],a[2*(k+1)+1]),s=b.Mg(b.Hd(r,m)),u=b.Mg(b.Hd(p,m)),t=Math.acos(b.Hp(s,u));p=t<b.Yf(70)?b.Dy(b.Mg(b.MO(s,u))):t<b.Yf(170)?b.Mg(b.MO(s,u)):b.Dy(b.Mg(b.Hd(r,p)))}p=b.Ii(p,c);d[2*g]=m.x+p.x;d[2*g+1]=m.y+p.y;d[2*(g+1)]=m.x-
p.x;d[2*(g+1)+1]=m.y-p.y}for(k=0==e?0:e-1;k<h;k++)g=2*k,a=g+2,c=new b.Zb(d[2*g],d[2*g+1]),f=new b.Zb(d[2*(g+1)],d[2*(g+1)+1]),g=new b.Zb(d[2*a],d[2*a]),e=new b.Zb(d[2*(a+1)],d[2*(a+1)+1]),c=!b.h5(c.x,c.y,e.x,e.y,f.x,f.y,g.x,g.y),!c.st&&(0>c.value||1<c.value)&&(c.st=!0),c.st&&(d[2*a]=e.x,d[2*a+1]=e.y,d[2*(a+1)]=g.x,d[2*(a+1)+1]=g.y)}};
b.h5=function(a,c,d,e,f,g,h,k){if(a==d&&c==e||f==h&&g==k)return{st:!1,value:0};d-=a;e-=c;f-=a;g-=c;h-=a;k-=c;a=Math.sqrt(d*d+e*e);d/=a;e/=a;c=f*d+g*e;g=g*d-f*e;f=c;c=h*d+k*e;k=k*d-h*e;h=c;return g==k?{st:!1,value:0}:{st:!0,value:(h+(f-h)*k/(k-g))/a}};b.Cka=function(a){for(var c=0,d=a.length;c<d;c++){var e=a[(c+1)%d];if(0<b.q2(b.Hd(e,a[c]),b.Hd(a[(c+2)%d],e)))return!1}return!0};b.a6=function(a,c){c[2]=c[3]=c[6]=c[7]=c[8]=c[9]=c[11]=c[14]=0;c[10]=c[15]=1;c[0]=a.a;c[4]=a.C;c[12]=a.La;c[1]=a.b;c[5]=a.J;c[13]=a.Ma};b.u6=function(a,c){c.a=a[0];c.C=a[4];c.La=a[12];c.b=a[1];c.J=a[5];c.Ma=a[13]};b.FA=b.ja.extend({Bd:null,ri:null,Mf:0,ZL:!1,ws:null,ctor:function(a,c,d){this.Bd=C(a||0,c||0);this.Mf=d||0},ht:function(){return{x:this.Bd.x,y:this.Bd.y}},h0:function(){return this.Bd.x},i0:function(){return this.Bd.y},Yba:function(){return{x:this.ri.x,y:this.ri.y}},oca:function(){return{x:this.ws.x,y:this.ws.y}},Dx:function(){return b.Hd(this.Bd,this.ri)},g0:function(){return{x:this.Bd.x,y:this.Bd.y}},Zba:function(){return{x:this.ri.x,y:this.ri.y}},pca:function(){return{x:this.ws.x,y:this.ws.y}},
jba:function(){return this.Mf},kba:function(){return this.Mf},wja:function(a,c,d){this.ri=this.Bd;this.Bd=C(c||0,d||0);this.Mf=a;this.ZL||(this.ws=C(this.Bd),this.ZL=!0)},AD:function(a,c){void 0===c?(this.Bd.x=a.x,this.Bd.y=a.y):(this.Bd.x=a,this.Bd.y=c)},Co:function(a,c){this.ri=void 0===c?C(a.x,a.y):C(a||0,c||0)}});b.rc=b.ja.extend({mc:0,Wl:!1,Pc:null,sD:function(a){this.Pc=a},ctor:function(a){this.mc=a},qF:function(){return this.mc},stopPropagation:function(){this.Wl=!0},Fda:function(){return this.Wl},Iaa:function(){return this.Pc}});b.rc.av=0;b.rc.tn=1;b.rc.hn=2;b.rc.Al=3;b.rc.hq=4;b.Pi=b.rc.extend({OB:null,mM:null,ctor:function(a){b.rc.prototype.ctor.call(this,b.rc.hq);this.OB=a},setUserData:function(a){this.mM=a},getUserData:function(){return this.mM},$aa:function(){return this.OB}});
b.Dc=b.rc.extend({nK:0,pB:0,xh:0,Me:0,XC:0,YC:0,JL:0,KL:0,ctor:function(a){b.rc.prototype.ctor.call(this,b.rc.Al);this.nK=a},HP:function(a,c){this.JL=a;this.KL=c},kca:function(){return this.JL},lca:function(){return this.KL},K3:function(a,c){this.xh=a;this.Me=c},ht:function(){return{x:this.xh,y:this.Me}},g0:function(){return{x:this.xh,y:b.view.Xn.height-this.Me}},gY:function(a,c){this.XC=a;this.YC=c},Dx:function(){return{x:this.xh-this.XC,y:this.Me-this.YC}},Maa:function(){return this.xh-this.XC},
Naa:function(){return this.Me-this.YC},an:function(a){this.pB=a},uaa:function(){return this.pB},h0:function(){return this.xh},i0:function(){return this.Me}});b.Dc.NONE=0;b.Dc.nH=1;b.Dc.QA=2;b.Dc.DH=3;b.Dc.lA=4;b.Dc.DQ=0;b.Dc.Y5=2;b.Dc.X5=1;b.Dc.S5=3;b.Dc.T5=4;b.Dc.U5=5;b.Dc.V5=6;b.Dc.W5=7;
b.rg=b.rc.extend({xk:0,Xk:null,ctor:function(a){b.rc.prototype.ctor.call(this,b.rc.av);this.Xk=a||[]},Zaa:function(){return this.xk},Ica:function(){return this.Xk},G8:function(a){this.xk=a},I8:function(a){this.Xk=a}});b.rg.R6=5;b.rg.on={jz:0,Mz:1,wz:2,oz:3};b.pa=b.ja.extend({EC:null,mc:0,ji:null,of:!1,Ak:0,lf:null,lc:!1,so:!0,ctor:function(a,c,d){this.EC=d;this.mc=a||0;this.ji=c||""},zD:function(a){this.lc=a},t8:function(){return this.lc},os:function(a){this.of=a},XW:function(){return this.of},s8:function(){return this.mc},p8:function(){return this.ji},tD:function(a){this.Ak=a},o8:function(){return this.Ak},ps:function(a){this.lf=a},q8:function(){return this.lf},$k:function(){return null!=this.EC},j:function(){return null},Id:function(a){this.so=a},
isEnabled:function(){return this.so},My:function(){},Ki:function(){}});b.pa.FU=0;b.pa.ar=1;b.pa.bv=2;b.pa.tn=3;b.pa.Al=4;b.pa.hn=5;b.pa.hq=6;b.jr=b.pa.extend({fs:null,ctor:function(a,c){this.fs=c;var d=this;b.pa.prototype.ctor.call(this,b.pa.hq,a,function(a){null!=d.fs&&d.fs(a)})},$k:function(){return b.pa.prototype.$k.call(this)&&null!=this.fs},j:function(){return new b.jr(this.ji,this.fs)}});b.jr.create=function(a,c){return new b.jr(a,c)};
b.kk=b.pa.extend({xy:null,zy:null,Bt:null,yy:null,ctor:function(){var a=this;b.pa.prototype.ctor.call(this,b.pa.Al,b.kk.sc,function(c){var d=b.Dc;switch(c.nK){case d.nH:a.xy&&a.xy(c);break;case d.QA:a.zy&&a.zy(c);break;case d.DH:a.Bt&&a.Bt(c);break;case d.lA:a.yy&&a.yy(c)}})},j:function(){var a=new b.kk;a.xy=this.xy;a.zy=this.zy;a.Bt=this.Bt;a.yy=this.yy;return a},$k:function(){return!0}});b.kk.sc="__cc_mouse";b.kk.create=function(){return new b.kk};
b.Zh=b.pa.extend({Qn:null,Xp:!1,Tm:null,Et:null,Dt:null,Ct:null,ctor:function(){b.pa.prototype.ctor.call(this,b.pa.ar,b.Zh.sc,null);this.Qn=[]},mja:function(a){this.Xp=a},j:function(){var a=new b.Zh;a.Tm=this.Tm;a.Et=this.Et;a.Dt=this.Dt;a.Ct=this.Ct;a.Xp=this.Xp;return a},$k:function(){return this.Tm?!0:(b.log(b.e.MU),!1)}});b.Zh.sc="__cc_touch_one_by_one";b.Zh.create=function(){return new b.Zh};
b.Yh=b.pa.extend({Ft:null,Gp:null,Fp:null,Gt:null,ctor:function(){b.pa.prototype.ctor.call(this,b.pa.bv,b.Yh.sc,null)},j:function(){var a=new b.Yh;a.Ft=this.Ft;a.Gp=this.Gp;a.Fp=this.Fp;a.Gt=this.Gt;return a},$k:function(){return null==this.Ft&&null==this.Gp&&null==this.Fp&&null==this.Gt?(b.log(b.e.LU),!1):!0}});b.Yh.sc="__cc_touch_all_at_once";b.Yh.create=function(){return new b.Yh};
b.pa.create=function(a){b.assert(a&&a.event,b.e.oR);var c=a.event;delete a.event;var d=null;c===b.pa.ar?d=new b.Zh:c===b.pa.bv?d=new b.Yh:c===b.pa.Al?d=new b.kk:c===b.pa.hq?(d=new b.jr(a.z_,a.EE),delete a.z_,delete a.EE):c===b.pa.tn?d=new b.jk:c===b.pa.hn&&(d=new b.ik(a.EE),delete a.EE);for(var e in a)d[e]=a[e];return d};b.HM=function(a){var c,d=a.length,e=Array(d);for(c=0;c<d;c+=1)e[c]=a[c];return e};b.NU=b.ja.extend({Kf:null,Sf:null,SN:0,ctor:function(){this.Kf=[];this.Sf=[]},size:function(){return this.Kf.length+this.Sf.length},empty:function(){return 0===this.Kf.length&&0===this.Sf.length},push:function(a){0==a.Ak?this.Sf.push(a):this.Kf.push(a)},JZ:function(){this.Sf.length=0},IZ:function(){this.Kf.length=0},clear:function(){this.Sf.length=0;this.Kf.length=0},bba:function(){return this.Kf},ica:function(){return this.Sf}});
b.kv=function(a){var c=b.rc,d=a.mc;if(d===c.hn)return b.ik.sc;if(d===c.hq)return a.OB;if(d===c.tn)return b.jk.sc;if(d===c.Al)return b.kk.sc;d===c.av&&b.log(b.e.kv);return""};
b.ra={tz:0,nu:1,jq:2,k6:3,Bg:{},ls:{},li:{},rw:{},CK:{},Oo:[],Cr:[],Ul:0,so:!1,cL:0,WW:[b.Ic.qu,b.Ic.kq],Kw:function(a){null!=this.li[a.wa]&&this.Cr.push(a);a=a.s;for(var c=0,d=a.length;c<d;c++)this.Kw(a[c])},Jp:function(a,c){var d=this.li[a.wa],e,f;if(d)for(e=0,f=d.length;e<f;e++)d[e].zD(!0);if(!0===c)for(d=a.s,e=0,f=d.length;e<f;e++)this.Jp(d[e],!0)},Mj:function(a,c){var d=this.li[a.wa],e,f;if(d)for(e=0,f=d.length;e<f;e++)d[e].zD(!1);this.Kw(a);if(!0===c)for(d=a.s,e=0,f=d.length;e<f;e++)this.Mj(d[e],
!0)},oJ:function(a){0===this.Ul?this.tK(a):this.Oo.push(a)},tK:function(a){var c=a.ji,d=this.Bg[c];d||(d=new b.NU,this.Bg[c]=d);d.push(a);0==a.Ak?(this.Ok(c,this.jq),c=a.lf,null==c&&b.log(b.e.s_),this.bV(c,a),c.qh&&this.Mj(c)):this.Ok(c,this.nu)},bC:function(a){return this.Bg[a]},TY:function(){if(0!=this.Cr.length){for(var a=this.Cr,c,d,e=this.li,f=0,g=a.length;f<g;f++)if(c=e[a[f].wa])for(var h=0,k=c.length;h<k;h++)(d=c[h])&&this.Ok(d.ji,this.jq);this.Cr.length=0}},xL:function(a){if(a)for(var c,d=
0;d<a.length;)c=a[d],c.os(!1),null!=c.lf&&(this.IJ(c.lf,c),c.ps(null)),0===this.Ul?b.Ne(a,c):++d},gm:function(a){var c=this.Bg[a];if(c){var d=c.Kf;this.xL(c.Sf);this.xL(d);delete this.ls[a];this.Ul||(c.clear(),delete this.Bg[a])}for(var d=this.Oo,e,c=0;c<d.length;)(e=d[c])&&e.ji==a?b.Ne(d,e):++c},HD:function(a){var c=this.tz,d=this.ls;d[a]&&(c=d[a]);c!=this.tz&&(d[a]=this.tz,c&this.nu&&this.GY(a),c&this.jq&&((c=b.D.cd)?this.IY(a,c):d[a]=this.jq))},IY:function(a,c){var d=this.bC(a);if(d){var e=d.Sf;
e&&0!==e.length&&(this.cL=0,this.rw={},this.pE(c,!0),d.Sf.sort(this.FY))}},FY:function(a,c){var d=b.ra.rw;return d[c.lf.wa]-d[a.lf.wa]},GY:function(a){if(a=this.Bg[a]){var c=a.Kf;if(c&&0!==c.length){c.sort(this.HY);for(var d=0,e=c.length;d<e&&!(0<=c[d].Ak);)++d;a.SN=d}}},HY:function(a,c){return a.Ak-c.Ak},FC:function(a){if(a=this.Bg[a]){var c=a.Kf,d=a.Sf,e,f;if(d)for(e=0;e<d.length;)f=d[e],f.of?++e:b.Ne(d,f);if(c)for(e=0;e<c.length;)f=c[e],f.of?++e:b.Ne(c,f);d&&0===d.length&&a.JZ();c&&0===c.length&&
a.IZ()}},ex:function(a){var c=this.Ul;b.assert(0<c,b.e.pR);a.mc==b.rc.av?(this.FC(b.Zh.sc),this.FC(b.Yh.sc)):this.FC(b.kv(a));if(!(1<c)){b.assert(1==c,b.e.qR);a=this.Bg;var c=this.ls,d;for(d in a)a[d].empty()&&(delete c[d],delete a[d]);d=this.Oo;if(0!==d.length){a=0;for(c=d.length;a<c;a++)this.tK(d[a]);this.Oo.length=0}}},sX:function(a,c){if(!a.XW)return!1;var d=c.event,e=c.iP;d.sD(a.lf);var f=!1,g,h=d.xk,k=b.rg.on;h==k.jz?a.Tm&&(f=a.Tm(e,d))&&a.of&&a.Qn.push(e):0<a.Qn.length&&-1!=(g=a.Qn.indexOf(e))&&
(f=!0,h===k.Mz&&a.Et?a.Et(e,d):h===k.wz?(a.Dt&&a.Dt(e,d),a.of&&a.Qn.splice(g,1)):h===k.oz&&(a.Ct&&a.Ct(e,d),a.of&&a.Qn.splice(g,1)));return d.Wl?(b.ra.ex(d),!0):f&&a.of&&a.Xp?(c.h2&&c.touches.splice(e,1),!0):!1},HV:function(a){this.HD(b.Zh.sc);this.HD(b.Yh.sc);var c=this.bC(b.Zh.sc),d=this.bC(b.Yh.sc);if(null!=c||null!=d){var e=a.Xk,f=b.HM(e),g={event:a,h2:c&&d,touches:f,iP:null};if(c)for(var h=0;h<e.length;h++)if(g.iP=e[h],this.GB(c,this.sX,g),a.Wl)return;if(d&&0<f.length&&(this.GB(d,this.uX,{event:a,
touches:f}),a.Wl))return;this.ex(a)}},uX:function(a,c){if(!a.of)return!1;var d=b.rg.on,e=c.event,f=c.touches,g=e.xk;e.sD(a.lf);g==d.jz&&a.Ft?a.Ft(f,e):g==d.Mz&&a.Gp?a.Gp(f,e):g==d.wz&&a.Fp?a.Fp(f,e):g==d.oz&&a.Gt&&a.Gt(f,e);return e.Wl?(b.ra.ex(e),!0):!1},bV:function(a,c){var d=this.li[a.wa];d||(d=[],this.li[a.wa]=d);d.push(c)},IJ:function(a,c){var d=this.li[a.wa];d&&(b.Ne(d,c),0===d.length&&delete this.li[a.wa])},GB:function(a,c,d){var e=!1,f=a.Kf,g=a.Sf,h=0,k;if(f&&0!==f.length)for(;h<a.SN;++h)if(k=
f[h],k.isEnabled()&&!k.lc&&k.of&&c(k,d)){e=!0;break}if(g&&!e)for(a=0;a<g.length;a++)if(k=g[a],k.isEnabled()&&!k.lc&&k.of&&c(k,d)){e=!0;break}if(f&&!e)for(;h<f.length&&(k=f[h],!k.isEnabled()||k.lc||!k.of||!c(k,d));++h);},Ok:function(a,c){var d=this.ls;d[a]=null==d[a]?c:c|d[a]},pE:function(a,c){var d=a.s,e=0,f=d.length,g=this.CK,h=this.li;if(0<f){for(var k;e<f;e++)if((k=d[e])&&0>k.zb)this.pE(k,!1);else break;null!=h[a.wa]&&(g[a.aj]||(g[a.aj]=[]),g[a.aj].push(a.wa));for(;e<f;e++)(k=d[e])&&this.pE(k,
!1)}else null!=h[a.wa]&&(g[a.aj]||(g[a.aj]=[]),g[a.aj].push(a.wa));if(c){var d=[],m;for(m in g)d.push(m);d.sort(this.JY);m=d.length;k=this.rw;for(e=0;e<m;e++)for(f=g[d[e]],h=0;h<f.length;h++)k[f[h]]=++this.cL;this.CK={}}},JY:function(a,c){return a-c},addListener:function(a,c){b.assert(a&&c,b.e.u_);if(!(a instanceof b.pa))b.assert("number"!==typeof c,b.e.v_),a=b.pa.create(a);else if(a.of){b.log(b.e.w_);return}a.$k()&&("number"==typeof c?0==c?b.log(b.e.t_):(a.ps(null),a.tD(c),a.os(!0),a.zD(!1),this.oJ(a)):
(a.ps(c),a.tD(0),a.os(!0),this.oJ(a)))},vE:function(a,c){var d=b.jr.create(a,c);this.addListener(d,1);return d},removeListener:function(a){if(null!=a){var c,d=this.Bg,e;for(e in d){var f=d[e],g=f.Kf;(c=this.yL(f.Sf,a))?this.Ok(a.ji,this.jq):(c=this.yL(g,a))&&this.Ok(a.ji,this.nu);f.empty()&&(delete this.ls[a.ji],delete d[e]);if(c)break}if(!c)for(c=this.Oo,d=0,e=c.length;d<e;d++)if(f=c[d],f==a){b.Ne(c,f);break}}},yL:function(a,c){if(null==a)return!1;for(var d=0,e=a.length;d<e;d++){var f=a[d];if(f==
c)return f.os(!1),null!=f.lf&&(this.IJ(f.lf,f),f.ps(null)),0==this.Ul&&b.Ne(a,f),!0}return!1},ZO:function(a,c){if(a instanceof b.q){delete this.rw[a.wa];b.Ne(this.Cr,a);var d=this.li[a.wa];if(d){for(var e=b.HM(d),d=0;d<e.length;d++)this.removeListener(e[d]);e.length=0;e=this.Oo;for(d=0;d<e.length;){var f=e[d];f.lf==a?(f.ps(null),f.os(!1),e.splice(d,1)):++d}if(!0===c)for(e=a.s,d=0,f=e.length;d<f;d++)this.ZO(e[d],!0)}}else a==b.pa.ar?this.gm(b.Zh.sc):a==b.pa.bv?this.gm(b.Yh.sc):a==b.pa.Al?this.gm(b.kk.sc):
a==b.pa.hn?this.gm(b.ik.sc):a==b.pa.tn?this.gm(b.jk.sc):b.log(b.e.x_)},jha:function(a){this.gm(a)},eha:function(){var a=this.Bg,c=this.WW,d;for(d in a)-1===c.indexOf(d)&&this.gm(d)},Yia:function(a,c){if(null!=a){var d=this.Bg,e;for(e in d){var f=d[e].Kf;if(f&&-1!=f.indexOf(a)){null!=a.lf&&b.log(b.e.y_);a.Ak!==c&&(a.tD(c),this.Ok(a.ji,this.nu));break}}}},Id:function(a){this.so=a},isEnabled:function(){return this.so},dispatchEvent:function(a){if(this.so){this.TY();this.Ul++;if(!a||!a.qF)throw"event is undefined";
if(a.mc==b.rc.av)this.HV(a);else{var c=b.kv(a);this.HD(c);c=this.Bg[c];null!=c&&this.GB(c,this.mX,a);this.ex(a)}this.Ul--}},mX:function(a,c){c.sD(a.lf);a.EC(c);return c.Wl},X9:function(a,c){var d=new b.Pi(a);d.setUserData(c);this.dispatchEvent(d)}};b.nR=b.rc.extend({kJ:null,ctor:function(a){b.rc.prototype.ctor.call(this,b.rc.hn);this.kJ=a}});b.rH=b.rc.extend({rC:0,OK:!1,ctor:function(a,c){b.rc.prototype.ctor.call(this,b.rc.tn);this.rC=a;this.OK=c}});b.ik=b.pa.extend({uw:null,ctor:function(a){this.uw=a;var c=this;b.pa.prototype.ctor.call(this,b.pa.hn,b.ik.sc,function(a){c.uw(a.kJ,a)})},$k:function(){b.assert(this.uw,b.e.JU);return!0},j:function(){return new b.ik(this.uw)}});b.ik.sc="__cc_acceleration";b.ik.create=function(a){return new b.ik(a)};
b.jk=b.pa.extend({zt:null,At:null,ctor:function(){var a=this;b.pa.prototype.ctor.call(this,b.pa.tn,b.jk.sc,function(c){c.OK?a.zt&&a.zt(c.rC,c):a.At&&a.At(c.rC,c)})},j:function(){var a=new b.jk;a.zt=this.zt;a.At=this.At;return a},$k:function(){return null==this.zt&&null==this.At?(b.log(b.e.KU),!1):!0}});b.jk.sc="__cc_keyboard";b.jk.create=function(){return new b.jk};b.B.SA=function(){var a=b.q.prototype;a.aE=null;a.OD=null;a.fC=null;a.Xi=null;a.ctor=function(){this.iC();var a=new b.ca;a.c[2]=a.c[3]=a.c[6]=a.c[7]=a.c[8]=a.c[9]=a.c[11]=a.c[14]=0;a.c[10]=a.c[15]=1;this.aE=a;this.fC=0;this.OD=new b.ca};a.Ka=function(){!1===this.xj&&(this.xj=this.hw=!0)};a.T=function(){if(this.Ac){var a=b.k,d,e=b.Vb;e.stack.push(e.top);b.Ej(this.OD,e.top);e.top=this.OD;var f=this.grid;f&&f.nk&&f.Xs();this.transform();var g=this.s;if(g&&0<g.length){var h=g.length;this.Uc();for(d=0;d<
h;d++)if(g[d]&&0>g[d].zb)g[d].T();else break;for(this.Y(a);d<h;d++)g[d]&&g[d].T()}else this.Y(a);this.arrivalOrder=0;f&&f.nk&&f.Us(this);e.top=e.stack.pop()}};a.transform=function(){var a=this.aE,d=b.Vb.top,e=this.Ue(),f=a.c;f[0]=e.a;f[4]=e.C;f[12]=e.La;f[1]=e.b;f[5]=e.J;f[13]=e.Ma;f[14]=this.Os;b.Fi(d,d,a);null==this.Xi||null!=this.grid&&this.grid.wf()||(a=this.ib.x,d=this.ib.y,0!==a||0!==d?(b.pA||(a|=0,d|=0),b.xp(a,d),this.Xi.xt(),b.xp(-a,-d)):this.Xi.xt())};a.Ue=a.jX};b.B.Yz=function(){var a=b.q.prototype;b.f(a,"x",a.Se,a.xP);b.f(a,"y",a.Kg,a.yP);b.f(a,"width",a.fh,a.qj);b.f(a,"height",a.Dk,a.pj);b.f(a,"anchorX",a.YV,a.pD);b.f(a,"anchorY",a.ZV,a.qD);b.f(a,"skewX",a.E0,a.b4);b.f(a,"skewY",a.F0,a.c4);b.f(a,"zIndex",a.f0,a.uP);b.f(a,"vertexZ",a.O0,a.o4);b.f(a,"rotation",a.x0,a.cn);b.f(a,"rotationX",a.z0,a.Z3);b.f(a,"rotationY",a.A0,a.a4);b.f(a,"scale",a.B0,a.dn);b.f(a,"scaleX",a.FN,a.St);b.f(a,"scaleY",a.GN,a.Tt);b.f(a,"children",a.J_);b.f(a,"childrenCount",a.K_);
b.f(a,"parent",a.getParent,a.Q3);b.f(a,"visible",a.v1,a.NP);b.f(a,"running",a.t1);b.f(a,"ignoreAnchor",a.q1,a.Tx);b.f(a,"actionManager",a.Bx,a.jP);b.f(a,"scheduler",a.cl,a.GP);b.f(a,"shaderProgram",a.lF,a.EG);b.f(a,"glServerState",a.X_,a.G3)};b.B.Zz=function(){var a=b.ia.prototype;b.f(a,"opacity",a.Re,a.Aa);b.f(a,"opacityModifyRGB",a.ue,a.Jd);b.f(a,"cascadeOpacity",a.rt,a.Qp);b.f(a,"color",a.Qe,a.$a);b.f(a,"cascadeColor",a.qt,a.Pp)};b.HH=-1;b.fP=1;
b.q=b.ja.extend({zb:0,aj:0,Os:0,nj:0,im:0,qa:1,Ra:1,ya:null,sh:0,th:0,s:null,Ac:!0,Oc:null,ib:null,O:null,qh:!1,Tb:null,dj:!1,tag:b.HH,userData:null,userObject:null,xj:!0,hw:!0,xg:!0,Wi:null,M8:null,qm:null,KK:null,Xd:!1,Hb:null,arrivalOrder:0,vg:null,Tf:null,l8:null,IK:!1,mr:!1,qv:null,di:null,qC:!1,Bo:0,Iw:0,tb:"Node",FD:!1,cs:"",iC:function(){this.Oc=C(0,0);this.ib=C(0,0);this.O=H(0,0);this.ya=C(0,0);this.s=[];this.qm={a:1,b:0,C:0,J:1,La:0,Ma:0};var a=b.D;this.vg=a.Bx();this.Tf=a.cl();this.IK=
!0;this.qv={a:1,b:0,C:0,J:1,La:0,Ma:0};b.TQ&&(this.di=new b.TQ(this))},F:function(){!1===this.IK&&this.iC();return!0},wg:function(a,c){if(a&&0!==a.length){var d,e=a.length,f;d=b.q.Df;switch(c){case d.ba:for(d=0;d<e;d++)(f=a[d])&&f.ba();break;case d.ub:for(d=0;d<e;d++)(f=a[d])&&f.ub();break;case d.Mh:for(d=0;d<e;d++)(f=a[d])&&f.Mh();break;case d.Oe:for(d=0;d<e;d++)(f=a[d])&&f.Oe();break;case d.af:for(d=0;d<e;d++)(f=a[d])&&f.af();break;case d.bg:for(d=0;d<e;d++)(f=a[d])&&f.bg();break;case d.Uc:for(d=
0;d<e;d++)(f=a[d])&&f.Uc();break;default:b.assert(0,b.e.aS)}}},Ka:null,Kb:function(a){for(var c in a)this[c]=a[c]},E0:function(){return this.sh},b4:function(a){this.sh=a;this.Ka()},F0:function(){return this.th},c4:function(a){this.th=a;this.Ka()},uP:function(a){this.zb=a;this.Tb&&this.Tb.Mp(this,a);b.ra.Kw(this)},Lw:function(a){this.zb=a},f0:function(){return this.zb},Uca:function(){b.log(b.e.hS);return this.zb},Pja:function(a){b.log(b.e.sS);this.uP(a)},sia:function(a){this.aj!=a&&(this.aj=a,b.ra.Kw(this))},
hba:function(){return this.aj},O0:function(){return this.Os},o4:function(a){this.Os=a},x0:function(){this.nj!==this.im&&b.log(b.e.fS);return this.nj},cn:function(a){this.nj=this.im=a;this.Bo=0.017453292519943295*this.nj;this.Iw=0.017453292519943295*this.im;this.Ka()},z0:function(){return this.nj},Z3:function(a){this.nj=a;this.Bo=0.017453292519943295*this.nj;this.Ka()},A0:function(){return this.im},a4:function(a){this.im=a;this.Iw=0.017453292519943295*this.im;this.Ka()},B0:function(){this.qa!==this.Ra&&
b.log(b.e.gS);return this.qa},dn:function(a,c){this.qa=a;this.Ra=c||0===c?c:a;this.Ka()},FN:function(){return this.qa},St:function(a){this.qa=a;this.Ka()},GN:function(){return this.Ra},Tt:function(a){this.Ra=a;this.Ka()},P:function(a,c){var d=this.ya;void 0===c?(d.x=a.x,d.y=a.y):(d.x=a,d.y=c);this.Ka()},Fx:function(){return C(this.ya)},Se:function(){return this.ya.x},xP:function(a){this.ya.x=a;this.Ka()},Kg:function(){return this.ya.y},yP:function(a){this.ya.y=a;this.Ka()},K_:function(){return this.s.length},
J_:function(){return this.s},v1:function(){return this.Ac},NP:function(a){this.Ac=a;this.Ka()},maa:function(){return this.Oc},ml:function(a,c){var d=this.Oc;if(void 0===c){if(a.x===d.x&&a.y===d.y)return;d.x=a.x;d.y=a.y}else{if(a===d.x&&c===d.y)return;d.x=a;d.y=c}var e=this.ib,f=this.O;e.x=f.width*d.x;e.y=f.height*d.y;this.Ka()},n8:function(){return this.Oc},LL:function(a){var c=a.x;a=a.y;this.Oc.x!==c&&(this.Oc.x=c,this.ib.x=this.O.width*c);this.Oc.y!==a&&(this.Oc.y=a,this.ib.y=this.O.height*a);this.Ka()},
YV:function(){return this.Oc.x},pD:function(a){this.Oc.x!==a&&(this.Oc.x=a,this.ib.x=this.O.width*a,this.Ka())},ZV:function(){return this.Oc.y},qD:function(a){this.Oc.y!==a&&(this.Oc.y=a,this.ib.y=this.O.height*a,this.Ka())},naa:function(){return this.ib},fh:function(){return this.O.width},qj:function(a){this.O.width=a;this.ib.x=a*this.Oc.x;this.Ka()},Dk:function(){return this.O.height},pj:function(a){this.O.height=a;this.ib.y=a*this.Oc.y;this.Ka()},Eh:function(){return this.O},be:function(a,c){var d=
this.O;if(void 0===c){if(a.width===d.width&&a.height===d.height)return;d.width=a.width;d.height=a.height}else{if(a===d.width&&c===d.height)return;d.width=a;d.height=c}var e=this.ib,f=this.Oc;e.x=d.width*f.x;e.y=d.height*f.y;this.Ka()},t1:function(){return this.qh},getParent:function(){return this.Tb},Q3:function(a){this.Tb=a},q1:function(){return this.dj},Tx:function(a){a!=this.dj&&(this.dj=a,this.Ka())},nF:function(){return this.tag},GG:function(a){this.tag=a},Hia:function(){this.cs},getName:function(){return this.cs},
getUserData:function(){return this.userData},setUserData:function(a){this.userData=a},Oca:function(){return this.userObject},Mja:function(a){this.userObject!=a&&(this.userObject=a)},Lba:function(){return this.arrivalOrder},Nia:function(a){this.arrivalOrder=a},Bx:function(){this.vg||(this.vg=b.D.Bx());return this.vg},jP:function(a){this.vg!=a&&(this.$t(),this.vg=a)},cl:function(){this.Tf||(this.Tf=b.D.cl());return this.Tf},GP:function(a){this.Tf!=a&&(this.fz(),this.Tf=a)},taa:function(){return b.QU(O(0,
0,this.O.width,this.O.height),this.Ue())},Oe:function(){this.$t();this.fz();b.ra.ZO(this);this.wg(this.s,b.q.Df.Oe)},Dh:function(a){var c=this.s;if(null!=c)for(var d=0;d<c.length;d++){var e=c[d];if(e&&e.tag==a)return e}return null},Aaa:function(a){if(!a)return b.log("Invalid name"),null;for(var c=this.s,d=0,e=c.length;d<e;d++)if(c[d].cs==a)return c[d];return null},I:function(a,c,d){b.assert(a,b.e.dS);a===this?b.log(b.e.bS):null!==a.Tb?b.log(b.e.cS):(c=null!=c?c:a.zb,a.tag=null!=d?d:a.tag,this.SW(a,
c),a.Tb=this,this.Wi&&(a.Wi=this.Wi),this.qh&&(a.ba(),this.qC&&a.Mh()))},lG:function(a){this.Tb&&(null==a&&(a=!0),this.Tb.removeChild(this,a))},kha:function(a){b.log(b.e.mS);this.lG(a)},removeChild:function(a,c){0!==this.s.length&&(null==c&&(c=!0),-1<this.s.indexOf(a)&&this.GV(a,c),this.Ka())},kG:function(a,c){a===b.HH&&b.log(b.e.kS);var d=this.Dh(a);null==d?b.log(b.e.lS,a):this.removeChild(d,c)},cha:function(a){b.log(b.e.jS);this.Ng(a)},Ng:function(a){var c=this.s;if(null!=c){null==a&&(a=!0);for(var d=
0;d<c.length;d++){var e=c[d];e&&(this.qh&&(e.bg(),e.ub()),a&&e.Oe(),e.parent=null)}this.s.length=0}},GV:function(a,c){this.qh&&(a.bg(),a.ub());c&&a.Oe();a.parent=null;b.Ne(this.s,a)},SW:function(a,c){this.Xd=!0;this.s.push(a);a.Lw(c)},Mp:function(a,c){b.assert(a,b.e.nS);this.Xd=!0;a.arrivalOrder=b.fP;b.fP++;a.Lw(c);this.Ka()},Uc:function(){if(this.Xd){var a=this.s,c=a.length,d,e,f;for(d=1;d<c;d++){f=a[d];for(e=d-1;0<=e;){if(f.zb<a[e].zb)a[e+1]=a[e];else if(f.zb===a[e].zb&&f.arrivalOrder<a[e].arrivalOrder)a[e+
1]=a[e];else break;e--}a[e+1]=f}this.Xd=!1}},Y:function(){},ez:function(){null!=this.Tb&&(this.Tb.ez(),this.Tb.transform())},ba:function(){this.qC=!1;this.qh=!0;this.wg(this.s,b.q.Df.ba);this.Np()},Mh:function(){this.qC=!0;this.wg(this.s,b.q.Df.Mh)},bg:function(){this.wg(this.s,b.q.Df.bg)},ub:function(){this.qh=!1;this.pause();this.wg(this.s,b.q.Df.ub);this.di&&this.di.V2()},Ga:function(a){b.assert(a,b.e.pS);this.actionManager.aZ(a,this,!this.qh);return a},$t:function(){this.actionManager&&this.actionManager.XO(this)},
E4:function(a){this.actionManager.WO(a)},F4:function(a){a===b.jn?b.log(b.e.tS):this.actionManager.U2(a,this)},bF:function(a){return a===b.jn?(b.log(b.e.eS),null):this.actionManager.bF(a,this)},Fba:function(){return this.actionManager.j2(this)},gP:function(){this.hP(0)},hP:function(a){this.scheduler.sG(this,a,!this.qh)},gQ:function(){this.scheduler.gu(this)},Zm:function(a,c,d,e){c=c||0;b.assert(a,b.e.qS);b.assert(0<=c,b.e.rS);d=null==d?b.Nq:d;this.scheduler.l3(this,a,c,d,e||0,!this.qh)},Fha:function(a,
c){this.Zm(a,0,0,c)},fu:function(a){a&&this.scheduler.fQ(this,a)},fz:function(){this.scheduler.eQ(this)},uha:function(){b.log(b.e.oS);this.Np()},Np:function(){this.scheduler.Mj(this);this.actionManager&&this.actionManager.Mj(this);b.ra.Mj(this)},Cga:function(){b.log(b.e.iS);this.pause()},pause:function(){this.scheduler.Jp(this);this.actionManager&&this.actionManager.Jp(this);b.ra.Jp(this)},Mha:function(a){this.qv=a;this.mr=this.xj=!0},zga:function(){this.hw&&(this.KK=b.aH(this.Ue()),this.hw=!1);return this.KK},
Dp:function(){for(var a=this.Ue(),c=this.Tb;null!=c;c=c.parent)a=b.sl(a,c.Ue());return a},j5:function(){return b.aH(this.Dp())},OE:function(a){return b.aI(a,this.j5())},ux:function(a){a=a||C(0,0);return b.aI(a,this.Dp())},OZ:function(a){return b.Hd(this.OE(a),this.ib)},K9:function(a){a=a||C(0,0);return this.ux(b.Nh(a,this.ib))},g8:function(a){a=this.ux(a);return b.D.PZ(a)},L9:function(a){return this.OE(a.ht())},M9:function(a){a=a.ht();a=b.D.NZ(a);return this.OZ(a)},update:function(a){this.di&&!this.di.rda()&&
this.di.T(a)},af:function(){this.wg(this.s,b.q.Df.af)},My:function(){},Ki:function(){},M_:function(a){return this.di.M_(a)},S8:function(a){this.di.add(a)},iha:function(a){return this.di.remove(a)},dha:function(){this.di.V2()},grid:null,ctor:null,T:null,transform:null,Ue:null,rh:function(){if(!1===this.xg){this.xg=!0;var a=this.Wi;a&&a!=this&&a.rh()}},rD:function(a){if(this.Wi!=a){this.Wi=a;for(var c=this.s,d=0,e=c.length;d<e;d++)c[d].rD(a)}},Lm:function(){this.Xi||(this.Xi=new b.iq);return this.Xi},
gt:function(){return this.grid},H3:function(a){this.grid=a},lF:function(){return this.Hb},EG:function(a){this.Hb=a},X_:function(){return this.fC},G3:function(a){this.fC=a},H_:function(){var a=O(0,0,this.O.width,this.O.height),c=this.Dp(),a=b.iA(a,this.Dp());if(!this.s)return a;for(var d=this.s,e=0;e<d.length;e++){var f=d[e];f&&f.Ac&&(f=f.Mr(c))&&(a=b.Iy(a,f))}return a},Mr:function(a){var c=O(0,0,this.O.width,this.O.height);a=null==a?this.Ue():b.sl(this.Ue(),a);c=b.iA(c,a);if(!this.s)return c;for(var d=
this.s,e=0;e<d.length;e++){var f=d[e];f&&f.Ac&&(f=f.Mr(a))&&(c=b.Iy(c,f))}return c},jX:function(){if(this.xj){var a=this.ya.x,c=this.ya.y,d=this.ib.x,e=-d,f=this.ib.y,g=-f,h=this.qa,k=this.Ra;this.dj&&(a+=d,c+=f);var m=1,p=0,r=1,s=0;if(0!==this.nj||0!==this.im)m=Math.cos(-this.Bo),p=Math.sin(-this.Bo),r=Math.cos(-this.Iw),s=Math.sin(-this.Iw);var u=this.sh||this.th;u||0===d&&0===f||(a+=r*e*h+-p*g*k,c+=s*e*h+m*g*k);var t=this.qm;t.a=r*h;t.b=s*h;t.C=-p*k;t.J=m*k;t.La=a;t.Ma=c;u&&(t=b.sl({a:1,b:Math.tan(b.Yf(this.th)),
C:Math.tan(b.Yf(this.sh)),J:1,La:0,Ma:0},t),0!==d||0!==f)&&(t=b.vQ(t,e,g));this.mr&&(t=b.sl(t,this.qv),this.mr=!1);this.qm=t;this.xj=!1}return this.qm}});b.q.create=function(){return new b.q};b.q.Df={ba:1,ub:2,Oe:3,Mh:4,af:5,bg:6,Uc:7};
b.A===b.Da?(n=b.q.prototype,n.ctor=function(){this.iC()},n.Ka=function(){this.rh();!1===this.xj&&(this.xj=this.hw=!0)},n.T=function(a){if(this.Ac){a=a||b.k;var c,d=this.s,e;a.save();this.transform(a);var f=d.length;if(0<f){this.Uc();for(c=0;c<f;c++)if(e=d[c],0>e.zb)e.T(a);else break;for(this.Y(a);c<f;c++)d[c].T(a)}else this.Y(a);this.xg=!1;this.arrivalOrder=0;a.restore()}},n.transform=function(a){a=a||b.k;var c=b.view,d=this.Ue();a.transform(d.a,d.C,d.b,d.J,d.La*c.qa,-d.Ma*c.Ra)},n.Ue=function(){if(this.xj){var a=
this.qm;a.La=this.ya.x;a.Ma=this.ya.y;var c=1,d=0;this.nj&&(c=Math.cos(this.Bo),d=Math.sin(this.Bo));a.a=a.J=c;a.b=-d;a.C=d;var e=this.qa,f=this.Ra,g=this.ib.x,h=this.ib.y,k=1E-6>e&&-1E-6<e?1E-6:e,m=1E-6>f&&-1E-6<f?1E-6:f;if(this.sh||this.th){var p=Math.tan(-this.sh*Math.PI/180),r=Math.tan(-this.th*Math.PI/180);Infinity===p&&(p=99999999);Infinity===r&&(r=99999999);var s=h*p*k,u=g*r*m;a.a=c+-d*r;a.b=c*p+-d;a.C=d+c*r;a.J=d*p+c;a.La+=c*s+-d*u;a.Ma+=d*s+c*u}if(1!==e||1!==f)a.a*=k,a.C*=k,a.b*=m,a.J*=m;
a.La+=c*-g*k+-d*h*m;a.Ma-=d*-g*k+c*h*m;this.dj&&(a.La+=g,a.Ma+=h);this.mr&&(this.qm=b.sl(a,this.qv),this.mr=!1);this.xj=!1}return this.qm},n=null):(b.assert("function"===typeof b.B.SA,b.e.Nc,"BaseNodesWebGL.js"),b.B.SA(),delete b.B.SA);b.assert("function"===typeof b.B.Yz,b.e.Nc,"BaseNodesPropertyDefine.js");b.B.Yz();delete b.B.Yz;
b.ia=b.q.extend({yb:!0,Ca:255,Wd:255,Ea:null,cc:null,zd:!1,fe:!1,ctor:function(){b.q.prototype.ctor.call(this);this.Wd=this.Ca=255;this.Ea=b.color(255,255,255,255);this.cc=b.color(255,255,255,255);this.fe=this.zd=!1},fc:function(){},Re:function(){return this.Wd},oN:function(){return this.Ca},Aa:function(a){this.Ca=this.Wd=a;var c=255,d=this.Tb;d&&d.yb&&d.cascadeOpacity&&(c=d.Ca);this.Mb(c);this.Ea.a=this.cc.a=a},Mb:function(a){this.Ca=this.Wd*a/255;if(this.fe){a=this.s;for(var c=0;c<a.length;c++){var d=
a[c];d&&d.yb&&d.Mb(this.Ca)}}},rt:function(){return this.fe},Qp:function(a){this.fe!==a&&((this.fe=a)?this.Fr():this.FB())},Fr:function(){var a=255,c=this.Tb;c&&c.yb&&c.cascadeOpacity&&(a=c.Ca);this.Mb(a)},FB:function(){this.Ca=this.Wd;for(var a=this.s,c=0;c<a.length;c++){var d=a[c];d&&d.yb&&d.Mb(255)}},Qe:function(){var a=this.cc;return b.color(a.r,a.g,a.b,a.a)},Mm:function(){var a=this.Ea;return b.color(a.r,a.g,a.b,a.a)},$a:function(a){var c=this.Ea,d=this.cc;c.r=d.r=a.r;c.g=d.g=a.g;c.b=d.b=a.b;
c=(c=this.Tb)&&c.yb&&c.cascadeColor?c.Mm():b.color.WHITE;this.Pb(c);void 0===a.a||a.Ss||this.Aa(a.a)},Pb:function(a){var c=this.Ea,d=this.cc;c.r=0|d.r*a.r/255;c.g=0|d.g*a.g/255;c.b=0|d.b*a.b/255;if(this.zd)for(a=this.s,d=0;d<a.length;d++){var e=a[d];e&&e.yb&&e.Pb(c)}},qt:function(){return this.zd},Pp:function(a){this.zd!==a&&((this.zd=a)?this.Er():this.EB())},Er:function(){var a;a=(a=this.Tb)&&a.yb&&a.cascadeColor?a.Mm():b.color.WHITE;this.Pb(a)},EB:function(){var a=this.Ea,c=this.cc;a.r=c.r;a.g=
c.g;a.b=c.b;for(var a=this.s,c=b.color.WHITE,d=0;d<a.length;d++){var e=a[d];e&&e.yb&&e.Pb(c)}},I:function(a,c,d){b.q.prototype.I.call(this,a,c,d);this.zd&&this.Er();this.fe&&this.Fr()},Jd:function(){},ue:function(){return!1}});b.ia.create=function(){var a=new b.ia;a.F();return a};b.assert("function"===typeof b.B.Zz,b.e.Nc,"BaseNodesPropertyDefine.js");b.B.Zz();delete b.B.Zz;b.q.W6=0;b.q.Y6=1;b.q.X6=2;b.q.Z6=3;b.q.V6=4;b.Oi=b.ia.extend({textureAtlas:null,quadsToDraw:0,yb:!0,vo:0,SK:0,ii:0,jh:0,Ol:null,Qa:!1,o:null,ew:!1,tb:"AtlasNode",ctor:function(a,c,d,e){b.ia.prototype.ctor.call(this);this.Ol=b.color.WHITE;this.o={src:b.hc,U:b.gc};this.ew=!1;void 0!==e&&this.f1(a,c,d,e)},$p:function(){b.log(b.e.wQ)},Qe:function(){return this.Qa?this.Ol:b.ia.prototype.Qe.call(this)},Jd:function(a){var c=this.color;this.Qa=a;this.color=c},ue:function(){return this.Qa},Ch:function(){return this.o},Ve:function(a,c){this.o=void 0===
c?a:{src:a,U:c}},IG:function(a){this.textureAtlas=a},oF:function(){return this.textureAtlas},bca:function(){return this.quadsToDraw},Zia:function(a){this.quadsToDraw=a},Vk:null,le:null,cE:null,vr:null,f1:function(a,c,d,e){if(!a)throw"cc.AtlasNode.initWithTileFile(): title should not be null";a=b.Ba.nc(a);return this.ta(a,c,d,e)},ta:null,kC:function(a,c,d,e){this.ii=c;this.jh=d;this.Qa=!0;this.le=a;if(!this.le)return b.log(b.e.bH),!1;this.Vk=this.le;this.yv();this.quadsToDraw=e;return!0},lC:function(a,
c,d,e){this.ii=c;this.jh=d;this.Ol=b.color.WHITE;this.Qa=!0;this.o.src=b.hc;this.o.U=b.gc;c=this.cc;this.vr=new Float32Array([c.r/255,c.g/255,c.b/255,this.Wd/255]);this.textureAtlas=new b.ek;this.textureAtlas.ta(a,e);if(!this.textureAtlas)return b.log(b.e.bH),!1;this.Wf();this.lM();this.yv();this.quadsToDraw=e;this.shaderProgram=b.Ld.oc(b.nA);this.cE=b.k.getUniformLocation(this.shaderProgram.Nm(),"u_color");return!0},Y:null,$i:function(a){a=a||b.k;b.yt(this);b.Ih(this.o.src,this.o.U);this.cE&&this.vr&&
(a.uniform4fv(this.cE,this.vr),this.textureAtlas.ZM(this.quadsToDraw))},$a:null,ZX:function(a){var c=this.cc;if(c.r!=a.r||c.g!=a.g||c.b!=a.b){c=b.color(a.r,a.g,a.b);this.Ol=a;if(this.Qa){var d=this.Ca;c.r=c.r*d/255;c.g=c.g*d/255;c.b=c.b*d/255}b.ia.prototype.$a.call(this,a);this.texture&&(a=this.le.Db)&&(c=b.Ba.Kx(a))&&(a=b.lp(a,c,this.cc,O(0,0,a.width,a.height)),c=new b.da,c.sd(a),c.Nb(),this.texture=c)}},$X:function(a){var c=b.color(a.r,a.g,a.b);this.Ol=a;var d=this.Ca;this.Qa&&(c.r=c.r*d/255,c.g=
c.g*d/255,c.b=c.b*d/255);b.ia.prototype.$a.call(this,a);a=this.Ea;this.vr=new Float32Array([a.r/255,a.g/255,a.b/255,d/255])},Aa:function(){},xD:function(a){b.ia.prototype.Aa.call(this,a);this.Qa&&(this.color=this.Ol)},yD:function(a){b.ia.prototype.Aa.call(this,a);this.Qa?this.color=this.Ol:(a=this.Ea,this.vr=new Float32Array([a.r/255,a.g/255,a.b/255,this.Ca/255]))},Oa:null,Nr:function(){return this.Vk},eC:function(){return this.textureAtlas.texture},qb:null,CD:function(a){this.Vk=a},DD:function(a){this.textureAtlas.texture=
a;this.Wf();this.lM()},yv:null,jV:function(){var a=this.texture.Eh();this.SK=0|a.height/this.jh;this.vo=0|a.width/this.ii},kV:function(){var a=this.texture,c=a.Eh();this.ew&&(c=a.O);this.SK=0|c.height/this.jh;this.vo=0|c.width/this.ii},Wf:function(){this.textureAtlas.texture.Ai()||(this.o.src=b.SRC_ALPHA,this.o.U=b.ONE_MINUS_SRC_ALPHA)},lM:function(){this.Qa=this.textureAtlas.texture.Ai()},uD:function(a){this.ew=a}});n=b.Oi.prototype;
b.A===b.Z?(n.ta=n.lC,n.Y=n.$i,n.$a=n.$X,n.Aa=n.yD,n.Oa=n.eC,n.qb=n.DD,n.yv=n.kV):(n.ta=n.kC,n.Y=b.q.prototype.Y,n.$a=n.ZX,n.Aa=n.xD,n.Oa=n.Nr,n.qb=n.CD,n.yv=n.jV);b.f(n,"opacity",n.Re,n.Aa);b.f(n,"color",n.Qe,n.$a);b.f(n,"texture",n.Oa,n.qb);b.Oi.create=function(a,c,d,e){return new b.Oi(a,c,d,e)};b.B.YA=function(){b.da=b.ja.extend({A8:!0,oi:null,lj:0,kj:0,cs:"",O:null,Gi:0,Hi:0,dw:!1,no:!1,shaderProgram:null,wc:!1,Db:null,Zd:null,url:null,gb:null,ctor:function(){this.O=H(0,0);this.oi=b.da.QM},jG:function(){this.Zd&&b.k.deleteTexture(this.Zd);b.V.Ki(this.url)},xN:function(){return this.oi},zN:function(){return this.lj},yN:function(){return this.kj},getName:function(){return this.Zd},Eh:function(){return H(this.O.width/b.pb(),this.O.height/b.pb())},fh:function(){return this.O.width/b.pb()},
Dk:function(){return this.O.height/b.pb()},N_:function(){return this.O},k0:function(){return this.Gi},L3:function(a){this.Gi=a},l0:function(){return this.Hi},M3:function(a){this.Hi=a},lF:function(){return this.shaderProgram},EG:function(a){this.shaderProgram=a},Ai:function(){return this.dw},U0:function(){return this.no},description:function(){return"\x3ccc.Texture2D | Name \x3d "+this.cs+" | Dimensions \x3d "+this.lj+" x "+this.kj+" | Coordinates \x3d ("+this.Gi+", "+this.Hi+")\x3e"},T2:function(){},
z1:function(a){return a},pt:function(a,c,d,e,f){var g=b.da,h=b.k,k=h.RGBA,m=h.UNSIGNED_BYTE,p=d*b.da.fJ[c]/8;0===p%8?h.pixelStorei(h.UNPACK_ALIGNMENT,8):0===p%4?h.pixelStorei(h.UNPACK_ALIGNMENT,4):0===p%2?h.pixelStorei(h.UNPACK_ALIGNMENT,2):h.pixelStorei(h.UNPACK_ALIGNMENT,1);this.Zd=h.createTexture();b.te(this);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.LINEAR);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,
h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE);switch(c){case g.Ti:k=h.RGBA;break;case g.Lq:k=h.RGB;break;case g.Mu:m=h.UNSIGNED_SHORT_4_4_4_4;break;case g.Lu:m=h.UNSIGNED_SHORT_5_5_5_1;break;case g.Kq:m=h.UNSIGNED_SHORT_5_6_5;break;case g.Sz:k=h.LUMINANCE_ALPHA;break;case g.Jq:k=h.ALPHA;break;case g.Tz:k=h.LUMINANCE;break;default:b.assert(0,b.e.YT)}h.texImage2D(h.TEXTURE_2D,0,k,d,e,0,k,m,a);this.O.width=f.width;this.O.height=f.height;this.lj=d;this.kj=e;this.oi=c;this.Gi=f.width/d;this.Hi=f.height/e;this.no=
this.dw=!1;this.shaderProgram=b.Ld.oc(b.Rq);return this.wc=!0},ZZ:function(a){var c=[0,this.Hi,this.Gi,this.Hi,0,0,this.Gi,0],d=this.lj*this.Gi,e=this.kj*this.Hi;a=[a.x,a.y,0,d+a.x,a.y,0,a.x,e+a.y,0,d+a.x,e+a.y,0];b.Jc(b.Pd|b.Cn);this.Hb.Mc();this.Hb.Xt();b.te(this);d=b.k;d.vertexAttribPointer(b.sb,2,d.FLOAT,!1,0,a);d.vertexAttribPointer(b.xd,2,d.FLOAT,!1,0,c);d.drawArrays(d.TRIANGLE_STRIP,0,4)},b_:function(a){var c=[0,this.Hi,this.Gi,this.Hi,0,0,this.Gi,0];a=[a.x,a.y,a.x+a.width,a.y,a.x,a.y+a.height,
a.x+a.width,a.y+a.height];b.Jc(b.Pd|b.Cn);this.Hb.Mc();this.Hb.Xt();b.te(this);var d=b.k;d.vertexAttribPointer(b.sb,2,d.FLOAT,!1,0,a);d.vertexAttribPointer(b.xd,2,d.FLOAT,!1,0,c);d.drawArrays(d.TRIANGLE_STRIP,0,4)},bO:function(a){if(null==a)return b.log(b.e.aU),!1;var c=a.Q0(),d=a.Z_(),e=b.ap.as;if(c>e||d>e)return b.log(b.e.bU,c,d,e,e),!1;this.wc=!0;return this.LW(a,c,d)},sd:function(a){a&&(this.Zd=b.k.createTexture(),this.Db=a)},a0:function(){return this.Db},r1:function(){return this.wc},Nb:function(){if(b.Gw){if(!this.Db){var a=
b.V.Fd(this.url);if(!a)return;this.sd(a)}this.Db.width&&this.Db.height&&(this.wc=!0,a=b.k,b.te(this),a.pixelStorei(a.UNPACK_ALIGNMENT,4),a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,this.Db),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR),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),this.shaderProgram=b.Ld.oc(b.Rq),b.te(null),a=this.Db.height,
this.lj=this.O.width=this.Db.width,this.kj=this.O.height=a,this.oi=b.da.Ti,this.Hi=this.Gi=1,this.no=this.dw=!1,this.Rd())}},td:function(){b.log(b.e.gU);return null},$0:function(){b.log(b.e.$T);return!1},c1:function(){b.log(b.e.dU);return!1},d1:function(){b.log(b.e.fU);return!1},h4:function(a){var c=b.k;b.assert(this.lj==b.Zj(this.lj)&&this.kj==b.Zj(this.kj)||a.k5==c.CLAMP_TO_EDGE&&a.l5==c.CLAMP_TO_EDGE,"WebGLRenderingContext.CLAMP_TO_EDGE should be used in NPOT textures");b.te(this);c.texParameteri(c.TEXTURE_2D,
c.TEXTURE_MIN_FILTER,a.Kfa);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,a.Gfa);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,a.k5);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,a.l5)},q3:function(){var a=b.k;b.te(this);this.no?a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR_MIPMAP_NEAREST):a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.NEAREST)},tG:function(){var a=b.k;b.te(this);this.no?a.texParameteri(a.TEXTURE_2D,
a.TEXTURE_MIN_FILTER,a.NEAREST_MIPMAP_NEAREST):a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.NEAREST);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.NEAREST)},generateMipmap:function(){b.assert(this.lj==b.Zj(this.lj)&&this.kj==b.Zj(this.kj),"Mimpap texture only works in POT textures");b.te(this);b.k.generateMipmap(b.k.TEXTURE_2D);this.no=!0},J4:function(){return b.da.PU[this.oi]},BZ:function(a){a=a||this.oi;var c=b.da.fJ[a];if(null!=c)return c;b.log(b.e.XT,a);return-1},LW:function(a,c,
d){var e=b.da,f=a.getData(),g=null,g=null,h=a.bda(),k=H(a.Q0(),a.Z_()),m=e.QM,p=a.saa();h||(8<=p?m=e.Lq:(b.log(b.e.UT),m=e.Kq));var r=c*d;if(m==e.Kq)if(h)for(f=new Uint16Array(c*d),g=a.getData(),p=0;p<r;++p)f[p]=(g[p]>>0&255)>>3<<11|(g[p]>>8&255)>>2<<5|(g[p]>>16&255)>>3<<0;else for(f=new Uint16Array(c*d),g=a.getData(),p=0;p<r;++p)f[p]=(g[p]&255)>>3<<11|(g[p]&255)>>2<<5|(g[p]&255)>>3<<0;else if(m==e.Mu)for(f=new Uint16Array(c*d),g=a.getData(),p=0;p<r;++p)f[p]=(g[p]>>0&255)>>4<<12|(g[p]>>8&255)>>4<<
8|(g[p]>>16&255)>>4<<4|(g[p]>>24&255)>>4<<0;else if(m==e.Lu)for(f=new Uint16Array(c*d),g=a.getData(),p=0;p<r;++p)f[p]=(g[p]>>0&255)>>3<<11|(g[p]>>8&255)>>3<<6|(g[p]>>16&255)>>3<<1|(g[p]>>24&255)>>7<<0;else if(m==e.Jq)for(f=new Uint8Array(c*d),g=a.getData(),p=0;p<r;++p)f[p]=g>>24&255;if(h&&m==e.Lq)for(g=a.getData(),f=new Uint8Array(c*d*3),p=0;p<r;++p)f[3*p]=g>>0&255,f[3*p+1]=g>>8&255,f[3*p+2]=g>>16&255;this.pt(f,m,c,d,k);a.getData();this.dw=a.yda();return!0},$d:function(a,c){this.gb||(this.gb=[]);
this.gb.push({Ah:a,Zf:c})},Y2:function(a){if(this.gb)for(var c=this.gb,d=0;d<c.length;d++)c[d].Zf==a&&c.splice(d,1)},Rd:function(){if(this.gb){for(var a=this.gb,c=0,d=a.length;c<d;c++){var e=a[c];e.Ah.call(e.Zf,this)}a.length=0}}})};
b.B.ZA=function(){var a=b.ek.prototype;a.km=function(){var a=b.k;this.vc[0]=a.createBuffer();this.vc[1]=a.createBuffer();this.fm=a.createBuffer();this.qw()};a.qw=function(){var a=b.k;a.bindBuffer(a.ARRAY_BUFFER,this.fm);a.bufferData(a.ARRAY_BUFFER,this.ad,a.DYNAMIC_DRAW);a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.vc[1]);a.bufferData(a.ELEMENT_ARRAY_BUFFER,this.lb,a.STATIC_DRAW)};a.ZM=function(a){var d;d=0;if(0!==a&&this.texture&&this.texture.wc){var e=b.k;b.te(this.texture);b.Jc(b.Kl);e.bindBuffer(e.ARRAY_BUFFER,
this.fm);this.dirty&&e.bufferData(e.ARRAY_BUFFER,this.ad,e.DYNAMIC_DRAW);e.vertexAttribPointer(b.sb,3,e.FLOAT,!1,24,0);e.vertexAttribPointer(b.ze,4,e.UNSIGNED_BYTE,!0,24,12);e.vertexAttribPointer(b.xd,2,e.FLOAT,!1,24,16);this.dirty&&(this.dirty=!1);e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.vc[1]);b.mI?e.drawElements(e.TRIANGLE_STRIP,6*a,e.UNSIGNED_SHORT,6*d*this.lb.BYTES_PER_ELEMENT):e.drawElements(e.TRIANGLES,6*a,e.UNSIGNED_SHORT,6*d*this.lb.BYTES_PER_ELEMENT);b.$f++}}};
b.B.$A=function(){var a=b.Ba;a.Nb=function(a){var d=this.Hc;b.Gw||(d=this.$r);var e=d[a];e||(e=d[a]=new b.da,e.url=a);e.Nb()};a.nc=function(a,d,e){b.assert(a,b.e.WT);var f=this.Hc;b.Gw||(f=this.$r);var g=f[a]||f[b.V.Ml[a]];if(g)return d&&d.call(e),g;b.V.Fd(a)||(b.V.vJ(a)?b.V.load(a,function(){d&&d.call(e)}):b.V.Xf[a]=b.V.Bp(a,function(e,f){if(e)return d?d(e):e;b.Ba.Nb(a);d&&d(null,f)}));g=f[a]=new b.da;g.url=a;return g};delete a};b.B.fA=function(){var a=b.da;a.h7=function(a){b.KS=a};a.Ti=2;a.Lq=3;a.Kq=4;a.Jq=5;a.Tz=6;a.Sz=7;a.Mu=8;a.Lu=7;a.MH=9;a.LH=10;a.BS=a.Ti;var c=b.da.PU={};c[a.Ti]="RGBA8888";c[a.Lq]="RGB888";c[a.Kq]="RGB565";c[a.Jq]="A8";c[a.Tz]="I8";c[a.Sz]="AI88";c[a.Mu]="RGBA4444";c[a.Lu]="RGB5A1";c[a.MH]="PVRTC4";c[a.LH]="PVRTC2";c=b.da.fJ={};c[a.Ti]=32;c[a.Lq]=24;c[a.Kq]=16;c[a.Jq]=8;c[a.Tz]=8;c[a.Sz]=16;c[a.Mu]=16;c[a.Lu]=16;c[a.MH]=4;c[a.LH]=3;c=b.da.prototype;b.f(c,"name",c.getName);b.f(c,"pixelFormat",c.xN);
b.f(c,"pixelsWidth",c.zN);b.f(c,"pixelsHeight",c.yN);b.f(c,"width",c.fh);b.f(c,"height",c.Dk);a.QM=a.BS};b.B.gA=function(){var a=b.ek.prototype;b.f(a,"totalQuads",a.QN);b.f(a,"capacity",a.mN);b.f(a,"quads",a.AN,a.BP)};b.s5=51;b.v5=19;b.x5=18;b.u5=50;b.r5=34;b.p5=35;b.q5=33;b.t5=49;b.w5=17;b.KS=!1;
b.A===b.Da?b.da=b.ja.extend({O:null,wc:!1,Db:null,gb:null,url:null,ctor:function(){this.O=H(0,0);this.wc=!1;this.Db=null},zN:function(){return this.O.width},yN:function(){return this.O.height},Eh:function(){var a=b.pb();return H(this.O.width/a,this.O.height/a)},fh:function(){return this.O.width/b.pb()},Dk:function(){return this.O.height/b.pb()},N_:function(){return this.O},sd:function(a){a&&(this.Db=a)},a0:function(){return this.Db},r1:function(){return this.wc},Nb:function(){if(!this.wc){if(!this.Db){var a=
b.V.Fd(this.url);if(!a)return;this.sd(a)}this.wc=!0;a=this.Db;this.O.width=a.width;this.O.height=a.height;this.Rd()}},description:function(){return"\x3ccc.Texture2D | width \x3d "+this.O.width+" height "+this.O.height+"\x3e"},pt:function(){return!1},bO:function(){return!1},td:function(){return!1},jG:function(){},getName:function(){return null},k0:function(){return 1},L3:function(){},l0:function(){return 1},M3:function(){},xN:function(){return null},lF:function(){return null},EG:function(){},Ai:function(){return!1},
U0:function(){return!1},T2:function(){},z1:function(a){return a},ZZ:function(){},b_:function(){},$0:function(){b.log(b.e.ZT);return!1},c1:function(){b.log(b.e.cU);return!1},d1:function(){b.log(b.e.eU);return!1},h4:function(){},q3:function(){},tG:function(){},generateMipmap:function(){},J4:function(){return""},BZ:function(){return-1},$d:function(a,c){this.gb||(this.gb=[]);this.gb.push({Ah:a,Zf:c})},Y2:function(a){if(this.gb)for(var c=this.gb,d=0;d<c.length;d++)c[d].Zf==a&&c.splice(d,1)},Rd:function(){if(this.gb){for(var a=
this.gb,c=0,d=a.length;c<d;c++){var e=a[c];e.Ah.call(e.Zf,this)}a.length=0}}}):(b.assert("function"===typeof b.B.YA,b.e.Nc,"TexturesWebGL.js"),b.B.YA(),delete b.B.YA);b.assert("function"===typeof b.B.fA,b.e.Nc,"TexturesPropertyDefine.js");b.B.fA();delete b.B.fA;b.Ba={Hc:{},Ds:{},YD:0|1E3*Math.random(),$r:{},RW:function(){var a,c=this.$r,d=this.Hc;for(a in c){var e=c[a];e.Nb();d[a]=e}this.$r={}},W8:function(){b.log(b.e.N4)},T8:function(){b.log(b.e.L4)},description:function(){return"\x3cTextureCache | Number of textures \x3d "+this.Hc.length+"\x3e"},en:function(a){return this.Hc[a]||this.Hc[b.V.Ml[a]]},c0:function(a){for(var c in this.Hc)if(this.Hc[c]==a)return c;return null},VV:function(){this.YD++;return"_textureKey_"+this.YD},Kx:function(a){var c=this.c0(a);
c||(c=a instanceof HTMLImageElement?a.src:this.VV());this.Ds[c]||(this.Ds[c]=b.kp(a));return this.Ds[c]},V8:function(){b.log(b.e.M4)},gha:function(){var a=this.Hc,c;for(c in a)a[c]&&a[c].jG();this.Hc={}},rha:function(a){if(a){var c=this.Hc,d;for(d in c)c[d]==a&&(c[d].jG(),delete c[d])}},sha:function(a){null!=a&&this.Hc[a]&&delete this.Hc[a]},CZ:function(a,c){if(c instanceof b.da)this.Hc[a]=c;else{var d=new b.da;d.sd(c);d.Nb();this.Hc[a]=d}},b9:function(a,c){b.assert(a,b.e.P4);if(c&&this.Hc[c])return this.Hc[c];
var d=new b.da;d.bO(a);null!=c&&null!=d?this.Hc[c]=d:b.log(b.e.O4);return d},g$:function(){var a=0,c=0,d=this.Hc,e;for(e in d){var f=d[e];a++;f.Db instanceof HTMLImageElement?b.log(b.e.Q4,e,f.Db.src,f.pixelsWidth,f.pixelsHeight):b.log(b.e.YP,e,f.pixelsWidth,f.pixelsHeight);c+=f.pixelsWidth*f.pixelsHeight*4}d=this.Ds;for(e in d){var f=d[e],g;for(g in f){var h=f[g];a++;b.log(b.e.YP,e,h.width,h.height);c+=h.width*h.height*4}}b.log(b.e.R4,a,c/1024,(c/1048576).toFixed(2))},rk:function(){this.Hc={};this.Ds=
{};this.YD=0|1E3*Math.random();this.$r={}}};b.A===b.Da?(n=b.Ba,n.Nb=function(a){var c=this.Hc,d=c[a];d||(d=c[a]=new b.da,d.url=a);d.Nb()},n.nc=function(a,c,d){b.assert(a,b.e.VT);var e=this.Hc,f=e[a]||e[b.V.Ml[a]];if(f)return c&&c.call(d),f;f=e[a]=new b.da;f.url=a;b.V.Fd(a)?f.Nb():b.V.vJ(a)?b.V.load(a,function(){c&&c.call(d)}):b.V.Xf[a]=b.V.Bp(a,function(d,e){if(d)return c?c(d):d;b.Ba.Nb(a);c&&c(null,e)});return f},n=null):(b.assert("function"===typeof b.B.$A,b.e.Nc,"TexturesWebGL.js"),b.B.$A(),delete b.B.$A);b.ek=b.ja.extend({dirty:!1,texture:null,lb:null,vc:null,yd:0,Fc:null,ad:null,fm:null,Rf:null,ctor:function(a,c){this.vc=[];"string"==typeof a?this.el(a,c):a instanceof b.da&&this.ta(a,c)},QN:function(){return this.Na},mN:function(){return this.yd},Oa:function(){return this.texture},qb:function(a){this.texture=a},nP:function(a){this.dirty=a},IF:function(){return this.dirty},AN:function(){return this.Fc},BP:function(a){this.Fc=a},CV:function(a,c){if(a)for(var d=0;d<a.length;d++)this.Mw(a[d],c+d)},Mw:function(a,
c){var d=this.Fc;d[c]?(d[c].G=a.G,d[c].N=a.N,d[c].M=a.M,d[c].K=a.K):d[c]=new b.Cb(a.M,a.G,a.K,a.N,this.ad,c*b.Cb.BYTES_PER_ELEMENT)},description:function(){return"\x3ccc.TextureAtlas | totalQuads \x3d"+this.Na+"\x3e"},SL:function(){if(0!==this.yd)for(var a=this.lb,c=this.yd,d=0;d<c;d++)b.mI?(a[6*d+0]=4*d+0,a[6*d+1]=4*d+0,a[6*d+2]=4*d+2,a[6*d+3]=4*d+1,a[6*d+4]=4*d+3,a[6*d+5]=4*d+3):(a[6*d+0]=4*d+0,a[6*d+1]=4*d+1,a[6*d+2]=4*d+2,a[6*d+3]=4*d+3,a[6*d+4]=4*d+2,a[6*d+5]=4*d+1)},km:function(){var a=b.k;
this.vc[0]=a.createBuffer();this.vc[1]=a.createBuffer();this.fm=a.createBuffer();this.qw()},qw:function(){var a=b.k;a.bindBuffer(a.ARRAY_BUFFER,this.fm);a.bufferData(a.ARRAY_BUFFER,this.ad,a.DYNAMIC_DRAW);a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.vc[1]);a.bufferData(a.ELEMENT_ARRAY_BUFFER,this.lb,a.STATIC_DRAW)},el:function(a,c){var d=b.Ba.nc(a);if(d)return this.ta(d,c);b.log(b.e.hU,a);return!1},ta:function(a,c){b.assert(a,b.e.iU);this.yd=c|=0;this.Na=0;this.texture=a;this.Fc=[];this.lb=new Uint16Array(6*
c);var d=b.Cb.BYTES_PER_ELEMENT;this.ad=new ArrayBuffer(d*c);this.Rf=new Uint8Array(this.ad);if((!this.Fc||!this.lb)&&0<c)return!1;for(var e=this.Fc,f=0;f<c;f++)e[f]=new b.Cb(null,null,null,null,this.ad,f*d);this.SL();this.km();return this.dirty=!0},hz:function(a,c){b.assert(a,b.e.sU);b.assert(0<=c&&c<this.yd,b.e.tU);this.Na=Math.max(c+1,this.Na);this.Mw(a,c);this.dirty=!0},HF:function(a,c){b.assert(c<this.yd,b.e.lU);this.Na++;if(this.Na>this.yd)b.log(b.e.tI);else{var d=b.Cb.BYTES_PER_ELEMENT,e=c*
d,f=(this.Na-1-c)*d;this.Fc[this.Na-1]=new b.Cb(null,null,null,null,this.ad,(this.Na-1)*d);this.Rf.set(this.Rf.subarray(e,e+f),e+d);this.Mw(a,c);this.dirty=!0}},jda:function(a,c,d){d=d||a.length;b.assert(c+d<=this.yd,b.e.mU);var e=b.Cb.BYTES_PER_ELEMENT;this.Na+=d;if(this.Na>this.yd)b.log(b.e.tI);else{var f=c*e,g=(this.Na-1-c-d)*e,h=this.Na-1-d,k;for(k=0;k<d;k++)this.Fc[h+k]=new b.Cb(null,null,null,null,this.ad,(this.Na-1)*e);this.Rf.set(this.Rf.subarray(f,f+g),f+e*d);for(k=0;k<d;k++)this.Mw(a[k],
c+k);this.dirty=!0}},ida:function(a,c){if(a!==c){b.assert(0<=c||c<this.Na,b.e.jU);b.assert(0<=a||a<this.Na,b.e.kU);var d=b.Cb.BYTES_PER_ELEMENT,e=this.Rf,f=e.subarray(a*d,d),g;a>c?(g=c*d,e.set(e.subarray(g,g+(a-c)*d),g+d),e.set(f,g)):(g=(a+1)*d,e.set(e.subarray(g,g+(c-a)*d),g-d),e.set(f,c*d));this.dirty=!0}},$O:function(a){b.assert(a<this.Na,b.e.qU);var c=b.Cb.BYTES_PER_ELEMENT;this.Na--;this.Fc.length=this.Na;if(a!==this.Na){var d=(a+1)*c;this.Rf.set(this.Rf.subarray(d,d+(this.Na-a)*c),d-c)}this.dirty=
!0},a3:function(a,c){b.assert(a+c<=this.Na,b.e.rU);this.Na-=c;if(a!==this.Na){var d=b.Cb.BYTES_PER_ELEMENT,e=(a+c)*d;this.Rf.set(this.Rf.subarray(e,e+(this.Na-a)*d),a*d)}this.dirty=!0},YO:function(){this.Na=this.Fc.length=0},Ok:function(a){this.dirty=a},nG:function(a){if(a==this.yd)return!0;var c=b.Cb.BYTES_PER_ELEMENT,d=this.yd;this.Na=Math.min(this.Na,a);var e=this.yd=0|a,f=this.Na;if(null==this.Fc)for(this.Fc=[],this.ad=new ArrayBuffer(c*e),this.Rf=new Uint8Array(this.ad),a=0;a<e;a++)this.Fc=new b.Cb(null,
null,null,null,this.ad,a*c);else{var g,h,k=this.Fc;if(e>d){g=[];h=new ArrayBuffer(c*e);for(a=0;a<f;a++)g[a]=new b.Cb(k[a].M,k[a].G,k[a].K,k[a].N,h,a*c);for(;a<e;a++)g[a]=new b.Cb(null,null,null,null,h,a*c)}else for(f=Math.max(f,e),g=[],h=new ArrayBuffer(c*e),a=0;a<f;a++)g[a]=new b.Cb(k[a].M,k[a].G,k[a].K,k[a].N,h,a*c);this.Rf=new Uint8Array(h);this.Fc=g;this.ad=h}null==this.lb?this.lb=new Uint16Array(6*e):e>d?(c=new Uint16Array(6*e),c.set(this.lb,0),this.lb=c):this.lb=this.lb.subarray(0,6*e);this.SL();
this.qw();return this.dirty=!0},WN:function(a){this.Na+=a},CO:function(a,c,d){if(void 0===d){if(d=c,c=this.Na-a,b.assert(d+(this.Na-a)<=this.yd,b.e.nU),0===c)return}else if(b.assert(d+c<=this.Na,b.e.oU),b.assert(a<this.Na,b.e.pU),a==d)return;var e=b.Cb.BYTES_PER_ELEMENT,f=a*e,g=c*e,h=this.Rf,k=h.subarray(f,f+g),m=d*e;d<a?(c=d*e,h.set(h.subarray(c,c+(a-d)*e),c+g)):(c=(a+c)*e,h.set(h.subarray(c,c+(d-a)*e),f));h.set(k,m);this.dirty=!0},fN:function(a,c){for(var d=c*b.Cb.BYTES_PER_ELEMENT,e=new Uint8Array(this.ad,
a*b.Cb.BYTES_PER_ELEMENT,d),f=0;f<d;f++)e[f]=0},$M:function(){this.ZM(this.Na)},B8:function(){var a=b.k;this.vc&&(this.vc[0]&&a.deleteBuffer(this.vc[0]),this.vc[1]&&a.deleteBuffer(this.vc[1]));this.fm&&a.deleteBuffer(this.fm)}});n=b.ek.prototype;b.f(n,"totalQuads",n.QN);b.f(n,"capacity",n.mN);b.f(n,"quads",n.AN,n.BP);b.ek.create=function(a,c){return new b.ek(a,c)};b.A===b.Z&&(b.assert("function"===typeof b.B.ZA,b.e.Nc,"TexturesWebGL.js"),b.B.ZA(),delete b.B.ZA);
b.assert("function"===typeof b.B.gA,b.e.Nc,"TexturesPropertyDefine.js");b.B.gA();delete b.B.gA;b.df=b.q.extend({tb:"Scene",ctor:function(){b.q.prototype.ctor.call(this);this.dj=!0;this.ml(0.5,0.5);this.be(b.D.R)}});b.df.create=function(){return new b.df};b.CH=b.df.extend({ej:null,Zr:0,Pl:0,ac:null,tb:"LoaderScene",F:function(){var a=this,c=200,d=a.mB=b.jd.create(b.color(32,32,32,255));d.P(b.Ni.ox);a.I(d,0);var e=24,f=-c/2+100;b.uC&&(b.V.Bp(b.uC,{dy:!1},function(d,e){c=e.height;a.jC(e,b.Ni.Xo)}),e=14,f=-c/2-10);e=a.ac=b.$.create("Loading... 0%","Arial",e);e.P(b.Nh(b.Ni.Xo,C(0,f)));e.$a(b.color(180,180,180));d.I(this.ac,10);return!0},jC:function(a,c){var d=new b.da;d.sd(a);d.Nb();d=b.Q.create(d);d.dn(b.pb());d.x=c.x;d.y=c.y;this.mB.I(d,10)},ba:function(){b.q.prototype.ba.call(this);
this.Zm(this.vs,0.3)},ub:function(){b.q.prototype.ub.call(this);this.ac.Cc("Loading... 0%")},AF:function(a,c){"string"==typeof a&&(a=[a]);this.oG=a||[];this.ed=c},vs:function(){var a=this;a.fu(a.vs);var c=a.oG;a.Zr=c.length;a.Pl=0;b.V.load(c,function(c,e){a.Pl=e},function(){a.ed&&a.ed()});a.Zm(a.Ks)},Ks:function(){var a=this.Pl,c=this.Zr,d;d=Math.min(a/c*100|0,100);this.ac.Cc("Loading... "+d+"%");a>=c&&this.fu(this.Ks)}});
b.CH.Gy=function(a,c){var d=b;d.wt||(d.wt=new b.CH,d.wt.F());d.wt.AF(a,c);b.D.ll(d.wt);return d.wt};b.B.Kz=function(){var a=b.Od.prototype;a.yM=function(){};a.dQ=function(){};a.T=b.q.prototype.T};
b.B.VA=function(){var a=b.jd.prototype;a.Pw=null;a.LD=null;a.nE=null;a.yB=null;a.ND=null;a.MD=null;a.ctor=function(a,d,e){this.ND=new ArrayBuffer(32);this.MD=new ArrayBuffer(16);var f=this.ND,g=this.MD,h=b.Zb.BYTES_PER_ELEMENT,k=b.yf.BYTES_PER_ELEMENT;this.Pw=[new b.Zb(0,0,f,0),new b.Zb(0,0,f,h),new b.Zb(0,0,f,2*h),new b.Zb(0,0,f,3*h)];this.LD=[b.color(0,0,0,255,g,0),b.color(0,0,0,255,g,k),b.color(0,0,0,255,g,2*k),b.color(0,0,0,255,g,3*k)];this.nE=b.k.createBuffer();this.yB=b.k.createBuffer();b.zf.prototype.ctor.call(this);
this.o=new b.Sj(b.hc,b.gc);b.jd.prototype.F.call(this,a,d,e)};a.be=function(a,d){var e=this.Pw;void 0===d?(e[1].x=a.width,e[2].y=a.height,e[3].x=a.width,e[3].y=a.height):(e[1].x=a,e[2].y=d,e[3].x=a,e[3].y=d);this.nB();b.Od.prototype.be.call(this,a,d)};a.qj=function(a){var d=this.Pw;d[1].x=a;d[3].x=a;this.nB();b.Od.prototype.qj.call(this,a)};a.pj=function(a){var d=this.Pw;d[2].y=a;d[3].y=a;this.nB();b.Od.prototype.pj.call(this,a)};a.fc=function(){for(var a=this.Ea,d=this.Ca,e=this.LD,f=0;4>f;f++)e[f].r=
a.r,e[f].g=a.g,e[f].b=a.b,e[f].a=d;this.sJ()};a.Y=function(a){a=a||b.k;b.yt(this);b.Jc(b.Pd|b.gv);a.bindBuffer(a.ARRAY_BUFFER,this.nE);a.vertexAttribPointer(b.sb,2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.yB);a.vertexAttribPointer(b.ze,4,a.UNSIGNED_BYTE,!0,0,0);b.Ih(this.o.src,this.o.U);a.drawArrays(a.TRIANGLE_STRIP,0,4)};a.nB=function(){var a=b.k;a.bindBuffer(a.ARRAY_BUFFER,this.nE);a.bufferData(a.ARRAY_BUFFER,this.ND,a.STATIC_DRAW)};a.sJ=function(){var a=b.k;a.bindBuffer(a.ARRAY_BUFFER,
this.yB);a.bufferData(a.ARRAY_BUFFER,this.MD,a.STATIC_DRAW)}};
b.B.WA=function(){var a=b.zl.prototype;a.Y=b.jd.prototype.Y;a.fc=function(){var a=this.ok,d=b.jl(a);if(0!==d){var e=Math.sqrt(2),a=C(a.x/d,a.y/d);this.Dv&&(a=b.Ii(a,1/(Math.abs(a.x)+Math.abs(a.y))*e));var f=this.Ca/255,d=this.Ea,g=this.Ee,d={r:d.r,g:d.g,b:d.b,a:this.Go*f},f={r:g.r,g:g.g,b:g.b,a:this.Zn*f},h=this.LD,g=h[0],k=h[1],m=h[2],h=h[3];g.r=f.r+(e+a.x+a.y)/(2*e)*(d.r-f.r);g.g=f.g+(e+a.x+a.y)/(2*e)*(d.g-f.g);g.b=f.b+(e+a.x+a.y)/(2*e)*(d.b-f.b);g.a=f.a+(e+a.x+a.y)/(2*e)*(d.a-f.a);k.r=f.r+(e-a.x+
a.y)/(2*e)*(d.r-f.r);k.g=f.g+(e-a.x+a.y)/(2*e)*(d.g-f.g);k.b=f.b+(e-a.x+a.y)/(2*e)*(d.b-f.b);k.a=f.a+(e-a.x+a.y)/(2*e)*(d.a-f.a);m.r=f.r+(e+a.x-a.y)/(2*e)*(d.r-f.r);m.g=f.g+(e+a.x-a.y)/(2*e)*(d.g-f.g);m.b=f.b+(e+a.x-a.y)/(2*e)*(d.b-f.b);m.a=f.a+(e+a.x-a.y)/(2*e)*(d.a-f.a);h.r=f.r+(e-a.x-a.y)/(2*e)*(d.r-f.r);h.g=f.g+(e-a.x-a.y)/(2*e)*(d.g-f.g);h.b=f.b+(e-a.x-a.y)/(2*e)*(d.b-f.b);h.a=f.a+(e-a.x-a.y)/(2*e)*(d.a-f.a);this.sJ()}}};b.B.dA=function(){var a=b.zf.prototype;b.f(a,"opacityModifyRGB",a.ue,a.Jd);b.f(a,"opacity",a.Re,a.Aa);b.f(a,"cascadeOpacity",a.rt,a.Qp);b.f(a,"color",a.Qe,a.$a);b.f(a,"cascadeColor",a.qt,a.Pp)};b.B.bA=function(){var a=b.jd.prototype;b.f(a,"width",a.fh,a.qj);b.f(a,"height",a.Dk,a.pj)};b.B.cA=function(){var a=b.zl.prototype;b.f(a,"startColor",a.Jx,a.Ye);b.f(a,"endColor",a.Ex,a.We);b.f(a,"startOpacity",a.H0,a.e4);b.f(a,"endOpacity",a.S_,a.C3);b.f(a,"vector",a.N0,a.n4)};b.Od=b.q.extend({Vl:!1,vv:null,tb:"Layer",ctor:function(){var a=b.q.prototype;a.ctor.call(this);this.dj=!0;a.ml.call(this,0.5,0.5);a.be.call(this,b.ju)},yM:null,dQ:null,nda:function(){return this.Vl},T:null});b.Od.create=function(){return new b.Od};
if(b.A===b.Da){var ca=b.Od.prototype;ca.yM=function(){if(!this.Vl){this.Vl=this.xg=!0;this.Wi=this;for(var a=this.s,c=0,d=a.length;c<d;c++)a[c].rD(this);this.vv||(this.vv=new b.EQ)}};ca.dQ=function(){if(this.Vl){this.Vl=!1;this.xg=!0;this.Wi=null;for(var a=this.s,c=0,d=a.length;c<d;c++)a[c].rD(null)}};ca.T=function(a){if(this.Vl){a=a||b.k;var c,d=this.s,e=d.length;if(this.Ac&&0!==e){var f=this.vv;a.save();this.transform(a);if(this.xg){c=this.WB();c.width|=0;c.height|=0;var g=f.Be;f.cP(c.width,c.height);
g.translate(0-c.x,c.height+c.y);var h=f.ib;f.P(h.x+c.x,h.y+c.y);this.Uc();for(c=0;c<e;c++)d[c].T(g);this.xg=!1}f.T(a);this.arrivalOrder=0;a.restore()}}else b.q.prototype.T.call(this,a)};ca.WB=function(){var a=null;if(!this.s||0===this.s.length)return O(0,0,10,10);for(var c=this.s,d=0;d<c.length;d++){var e=c[d];e&&e.Ac&&(a?(e=e.Mr())&&(a=b.Iy(a,e)):a=e.Mr())}return a};ca=null}else b.assert("function"===typeof b.B.Kz,b.e.Nc,"CCLayerWebGL.js"),b.B.Kz(),delete b.B.Kz;
b.zf=b.Od.extend({yb:!0,Ca:255,Wd:255,Ea:null,cc:null,fe:!1,zd:!1,tb:"LayerRGBA",ctor:function(){b.Od.prototype.ctor.call(this);this.Ea=b.color(255,255,255,255);this.cc=b.color(255,255,255,255)},F:function(){var a=b.Od.prototype;this.dj=!0;a.ml.call(this,0.5,0.5);a.be.call(this,b.ju);this.cascadeColor=this.cascadeOpacity=!1;return!0},Re:function(){return this.Wd},oN:function(){return this.Ca},Aa:function(a){this.Ca=this.Wd=a;var c=255,d=this.Tb;d&&d.yb&&d.cascadeOpacity&&(c=d.Ca);this.Mb(c);this.Ea.a=
this.cc.a=a},Mb:function(a){this.Ca=0|this.Wd*a/255;if(this.fe){a=this.s;for(var c,d=0;d<a.length;d++)(c=a[d])&&c.yb&&c.Mb(this.Ca)}},rt:function(){return this.fe},Qp:function(a){this.fe!==a&&((this.fe=a)?this.Fr():this.FB())},Fr:function(){var a=255,c=this.Tb;c&&c.yb&&c.cascadeOpacity&&(a=c.Ca);this.Mb(a)},FB:function(){this.Ca=this.Wd;for(var a=this.s,c,d=0;d<a.length;d++)(c=a[d])&&c.yb&&c.Mb(255)},Qe:function(){var a=this.cc;return b.color(a.r,a.g,a.b,a.a)},Mm:function(){var a=this.Ea;return b.color(a.r,
a.g,a.b)},$a:function(a){var c=this.Ea,d=this.cc;c.r=d.r=a.r;c.g=d.g=a.g;c.b=d.b=a.b;c=(c=this.Tb)&&c.yb&&c.cascadeColor?c.Mm():b.color.WHITE;this.Pb(c);void 0===a.a||a.Ss||this.Aa(a.a)},Pb:function(a){var c=this.Ea,d=this.cc;c.r=0|d.r*a.r/255;c.g=0|d.g*a.g/255;c.b=0|d.b*a.b/255;if(this.zd){a=this.s;for(var e=0;e<a.length;e++)(d=a[e])&&d.yb&&d.Pb(c)}},qt:function(){return this.zd},Pp:function(a){this.zd!==a&&((this.zd=a)?this.Er():this.EB())},Er:function(){var a;a=(a=this.Tb)&&a.yb&&a.cascadeColor?
a.Mm():b.color.WHITE;this.Pb(a)},EB:function(){var a=this.Ea,c=this.cc;a.r=c.r;a.g=c.g;a.b=c.b;var a=this.s,c=b.color.WHITE,d,e;for(e=0;e<a.length;e++)(d=a[e])&&d.yb&&d.Pb(c)},I:function(a,c,d){b.q.prototype.I.call(this,a,c,d);this.zd&&this.Er();this.fe&&this.Fr()},Jd:function(){},ue:function(){return!1}});b.assert("function"===typeof b.B.dA,b.e.Nc,"CCLayerPropertyDefine.js");b.B.dA();delete b.B.dA;
b.jd=b.zf.extend({o:null,tb:"LayerColor",Ch:function(){return this.o},E9:function(a,c){this.width=a;this.height=c},D9:function(a){this.width=a},C9:function(a){this.height=a},Jd:function(){},ue:function(){return!1},$a:function(a){b.zf.prototype.$a.call(this,a);this.fc()},Aa:function(a){b.zf.prototype.Aa.call(this,a);this.fc()},to:!1,ctor:null,F:function(a,c,d){b.A!==b.Da&&(this.shaderProgram=b.Ld.oc(b.Tu));var e=b.D.R;a=a||b.color(0,0,0,255);c=void 0===c?e.width:c;d=void 0===d?e.height:d;e=this.Ea;
e.r=a.r;e.g=a.g;e.b=a.b;e=this.cc;e.r=a.r;e.g=a.g;e.b=a.b;this.Wd=this.Ca=a.a;a=b.jd.prototype;a.be.call(this,c,d);a.fc.call(this);return!0},Ve:function(a,c){this.o=void 0===c?a:{src:a,U:c};b.A===b.Da&&(this.to=this.o&&1==this.o.src&&771==this.o.U)},qj:null,pj:null,fc:null,Pb:function(a){b.zf.prototype.Pb.call(this,a);this.fc()},Mb:function(a){b.zf.prototype.Mb.call(this,a);this.fc()},Y:null});b.jd.create=function(a,c,d){return new b.jd(a,c,d)};
b.A===b.Da?(n=b.jd.prototype,n.ctor=function(a,c,d){b.zf.prototype.ctor.call(this);this.o=new b.Sj(b.hc,b.gc);b.jd.prototype.F.call(this,a,c,d)},n.qj=b.zf.prototype.qj,n.pj=b.zf.prototype.pj,n.fc=function(){},n.Y=function(a){a=a||b.k;var c=b.view,d=this.Ea;a.fillStyle="rgba("+(0|d.r)+","+(0|d.g)+","+(0|d.b)+","+this.Ca/255+")";a.fillRect(0,0,this.width*c.qa,-this.height*c.Ra);b.$f++},n.T=function(a){if(this.Vl){a=a||b.k;var c,d=this.s,e=d.length;if(this.Ac){var f=this.vv;a.save();this.transform(a);
if(this.xg){c=this.WB();c.width|=0;c.height|=0;var g=f.Be;f.cP(c.width,c.height);var h=f.ib,k=this.ya;if(this.dj)g.translate(0-c.x+k.x,c.height+c.y-k.y),f.P(h.x+c.x-k.x,h.y+c.y-k.y);else{var m=this.ib,p=k.x-m.x,k=k.y-m.y;g.translate(0-c.x+p,c.height+c.y-k);f.P(h.x+c.x-p,h.y+c.y-k)}if(0<e){this.Uc();for(c=0;c<e;c++)if(h=d[c],0>h.zb)h.T(g);else break;for(this.Y(g);c<e;c++)d[c].T(g)}else this.Y(g);this.xg=!1}f.T(a);this.arrivalOrder=0;a.restore()}}else b.q.prototype.T.call(this,a)},n.WB=function(){var a=
O(0,0,this.O.width,this.O.height),c=this.Dp(),a=b.iA(a,this.Dp());if(!this.s||0===this.s.length)return a;for(var d=this.s,e=0;e<d.length;e++){var f=d[e];f&&f.Ac&&(f=f.Mr(c),a=b.Iy(a,f))}return a},n=null):(b.assert("function"===typeof b.B.VA,b.e.Nc,"CCLayerWebGL.js"),b.B.VA(),delete b.B.VA);b.assert("function"===typeof b.B.bA,b.e.Nc,"CCLayerPropertyDefine.js");b.B.bA();delete b.B.bA;
b.zl=b.jd.extend({vh:null,Ee:null,Go:255,Zn:255,ok:null,Dv:!1,mo:null,lo:null,tb:"LayerGradient",ctor:function(a,c,d){b.jd.prototype.ctor.call(this);this.vh=b.color(0,0,0,255);this.Ee=b.color(0,0,0,255);this.ok=C(0,-1);this.Zn=this.Go=255;this.mo=C(0,0);this.lo=C(0,0);b.zl.prototype.F.call(this,a,c,d)},F:function(a,c,d){a=a||b.color(0,0,0,255);c=c||b.color(0,0,0,255);d=d||C(0,-1);var e=this.vh,f=this.Ee;e.r=a.r;e.g=a.g;e.b=a.b;this.Go=a.a;f.r=c.r;f.g=c.g;f.b=c.b;this.Zn=c.a;this.ok=d;this.Dv=!0;this.mo=
C(0,0);this.lo=C(0,0);b.jd.prototype.F.call(this,b.color(a.r,a.g,a.b,255));b.zl.prototype.fc.call(this);return!0},be:function(a,c){b.jd.prototype.be.call(this,a,c);this.fc()},qj:function(a){b.jd.prototype.qj.call(this,a);this.fc()},pj:function(a){b.jd.prototype.pj.call(this,a);this.fc()},Jx:function(){return this.cc},Ye:function(a){this.color=a},We:function(a){this.Ee=a;this.fc()},Ex:function(){return this.Ee},e4:function(a){this.Go=a;this.fc()},H0:function(){return this.Go},C3:function(a){this.Zn=
a;this.fc()},S_:function(){return this.Zn},n4:function(a){this.ok.x=a.x;this.ok.y=a.y;this.fc()},N0:function(){return C(this.ok.x,this.ok.y)},pda:function(){return this.Dv},Zha:function(a){this.Dv=a;this.fc()},k8:null,fc:null});b.zl.create=function(a,c,d){return new b.zl(a,c,d)};
b.A===b.Da?(n=b.zl.prototype,n.Y=function(a){a=a||b.k;this.to&&(a.globalCompositeOperation="lighter");a.save();var c=b.view,d=this.Ca/255,e=this.width*c.qa,c=this.height*c.Ra,f=a.createLinearGradient(this.mo.x,this.mo.y,this.lo.x,this.lo.y),g=this.Ea,h=this.Ee;f.addColorStop(0,"rgba("+Math.round(g.r)+","+Math.round(g.g)+","+Math.round(g.b)+","+(this.Go/255*d).toFixed(4)+")");f.addColorStop(1,"rgba("+Math.round(h.r)+","+Math.round(h.g)+","+Math.round(h.b)+","+(this.Zn/255*d).toFixed(4)+")");a.fillStyle=
f;a.fillRect(0,0,e,-c);0!=this.D8&&a.rotate(this.E8);a.restore()},n.fc=function(){var a=this.ok,c=0.5*this.width,d=0.5*this.height;this.mo.x=c*-a.x+c;this.mo.y=d*a.y-d;this.lo.x=c*a.x+c;this.lo.y=d*-a.y-d},n=null):(b.assert("function"===typeof b.B.WA,b.e.Nc,"CCLayerWebGL.js"),b.B.WA(),delete b.B.WA);b.assert("function"===typeof b.B.cA,b.e.Nc,"CCLayerPropertyDefine.js");b.B.cA();delete b.B.cA;
b.Lz=b.Od.extend({Tl:0,ke:null,tb:"LayerMultiplex",ctor:function(a){b.Od.prototype.ctor.call(this);a&&b.Lz.prototype.b1.call(this,a)},b1:function(a){0<a.length&&null==a[a.length-1]&&b.log(b.e.VR);this.ke=a;this.Tl=0;this.I(this.ke[this.Tl]);return!0},fka:function(a){a>=this.ke.length?b.log(b.e.WR):(this.removeChild(this.ke[this.Tl],!0),this.Tl=a,this.I(this.ke[a]))},gka:function(a){a>=this.ke.length?b.log(b.e.XR):(this.removeChild(this.ke[this.Tl],!0),this.ke[this.Tl]=null,this.Tl=a,this.I(this.ke[a]))},
U8:function(a){a?this.ke.push(a):b.log(b.e.UR)}});b.Lz.create=function(){return new b.Lz(arguments)};b.B.XA=function(){var a=b.Q.prototype;a.KD=function(a){this.Ka(!0);this.hb(a.Gh(),a.ne,a.mf);this.Rd()};a.Jd=function(a){this.Qa!==a&&(this.Qa=a,this.hu())};a.Mb=function(a){b.ia.prototype.Mb.call(this,a);this.hu()};a.ctor=function(a,d,e){b.ia.prototype.ctor.call(this);this.Qk=!1;this.Eb=C(0,0);this.wh=C(0,0);this.o={src:b.hc,U:b.gc};this.ha=O(0,0,0,0);this.Ub=new b.Cb;this.Dw=b.k.createBuffer();this.na=this.Ge=!0;this.XL(a,d,e)};a.Ve=function(a,d){var e=this.o;void 0===d?(e.src=a.src,e.U=a.U):(e.src=
a,e.U=d)};a.F=function(){if(0<arguments.length)return this.el(arguments[0],arguments[1]);b.ia.prototype.F.call(this);this.dirty=this.nh=!1;this.Qa=!0;this.o.src=b.hc;this.o.U=b.gc;this.texture=null;this.na=!0;this.Qb=this.Rb=!1;this.anchorY=this.anchorX=0.5;this.Eb.x=0;this.Eb.y=0;this.hi=!1;var a={r:255,g:255,b:255,a:255};this.Ub.G.t=a;this.Ub.N.t=a;this.Ub.M.t=a;this.Ub.K.t=a;this.Ge=!0;this.hb(O(0,0,0,0),!1,H(0,0));return!0};a.ta=function(a,d,e){b.assert(0!=arguments.length,b.e.DT);e=e||!1;if(!b.ia.prototype.F.call(this))return!1;
this.W=null;this.dirty=this.nh=!1;this.Qa=!0;this.o.src=b.hc;this.o.U=b.gc;this.Qb=this.Rb=!1;this.anchorY=this.anchorX=0.5;this.Eb.x=0;this.Eb.y=0;this.hi=!1;var f=b.color(255,255,255,255),g=this.Ub;g.G.t=f;g.N.t=f;g.M.t=f;g.K.t=f;this.na=f=a.wc;if(!f)return this.bd=e||!1,d&&(f=this.ha,f.x=d.x,f.y=d.y,f.width=d.width,f.height=d.height),a.$d(this.$w,this),!0;d||(d=O(0,0,a.width,a.height));a&&(e?(f=d.x+d.height,g=d.y+d.width):(f=d.x+d.width,g=d.y+d.height),f>a.width&&b.error(b.e.kA,a.url),g>a.height&&
b.error(b.e.jA,a.url));this.texture=a;this.hb(d,e);this.batchNode=null;return this.Ge=!0};a.$w=function(a){if(!this.na){this.na=!0;var d=this.ha;d?b.dD(d)&&(d.width=a.width,d.height=a.height):d=O(0,0,a.width,a.height);this.texture=a;this.hb(d,this.bd);this.batchNode=this.W;this.Ge=!0;this.Rd()}};a.hb=function(a,d,e){this.bd=d||!1;this.be(e||a);this.MG(a);this.PL(a);a=this.wh;this.Qb&&(a.x=-a.x);this.Rb&&(a.y=-a.y);var f=this.ha;this.Eb.x=a.x+(this.O.width-f.width)/2;this.Eb.y=a.y+(this.O.height-f.height)/
2;if(this.W)this.dirty=!0;else{a=0+this.Eb.x;d=0+this.Eb.y;e=a+f.width;var f=d+f.height,g=this.Ub;g.G.i={x:a,y:d,z:0};g.N.i={x:e,y:d,z:0};g.M.i={x:a,y:f,z:0};g.K.i={x:e,y:f,z:0};this.Ge=!0}};a.af=function(){if(this.dirty){var a=this.Ub,d=this.Tb;if(!this.Ac||d&&d!=this.W&&d.Qk)a.N.i={x:0,y:0,z:0},a.M.i={x:0,y:0,z:0},a.K.i={x:0,y:0,z:0},a.G.i={x:0,y:0,z:0},this.Qk=!0;else{this.Qk=!1;var e=this.sm=d&&d!=this.W?b.sl(this.Ue(),d.sm):this.Ue(),f=this.ha,d=this.Eb.x,g=this.Eb.y,h=d+f.width,k=g+f.height,
m=e.La,p=e.Ma,r=e.a,s=e.b,u=e.J,t=-e.C,e=d*r-g*t+m,f=d*s+g*u+p,v=h*r-g*t+m,g=h*s+g*u+p,w=h*r-k*t+m,h=h*s+k*u+p,m=d*r-k*t+m,d=d*s+k*u+p,k=this.Os;b.pA||(e|=0,f|=0,v|=0,g|=0,w|=0,h|=0,m|=0,d|=0);a.G.i={x:e,y:f,z:k};a.N.i={x:v,y:g,z:k};a.M.i={x:m,y:d,z:k};a.K.i={x:w,y:h,z:k}}this.textureAtlas.hz(a,this.atlasIndex);this.dirty=this.nh=!1}this.hi&&this.wg(this.s,b.q.Df.af);b.$j&&b.De.ae([C(this.Ub.G.i.x,this.Ub.G.i.y),C(this.Ub.N.i.x,this.Ub.N.i.y),C(this.Ub.K.i.x,this.Ub.K.i.y),C(this.Ub.M.i.x,this.Ub.M.i.y)],
4,!0)};a.I=function(a,d,e){b.assert(a,b.e.uT);null==d&&(d=a.zb);null==e&&(e=a.tag);if(this.W){if(!(a instanceof b.Q)){b.log(b.e.sT);return}a.texture.Zd!==this.textureAtlas.texture.Zd&&b.log(b.e.tT);this.W.appendChild(a);this.Xd||this.BD()}b.ia.prototype.I.call(this,a,d,e);this.hi=!0};a.Aa=function(a){b.ia.prototype.Aa.call(this,a);this.hu()};a.$a=function(a){b.ia.prototype.$a.call(this,a);this.hu()};a.Pb=function(a){b.ia.prototype.Pb.call(this,a);this.hu()};a.ol=function(a){var d=this;"string"==typeof a&&
(a=b.kg.Hh(a),b.assert(a,b.e.MT));d.Ka(!0);var e=a.la;d.wh.x=e.x;d.wh.y=e.y;e=a.Oa();a.na||(d.na=!1,a.$d(function(a){d.na=!0;var c=a.Oa();c!=d.L&&(d.texture=c);d.hb(a.Gh(),a.ne,a.mf);d.Rd()},d));e!=d.L&&(d.texture=e);d.bd=a.ne;d.hb(a.Gh(),d.bd,a.mf)};a.kO=function(a){return b.VO(a.Gh(),this.ha)&&a.Oa().getName()==this.L.getName()&&b.fG(a.la,this.wh)};a.nl=function(a){if(this.W=a)this.sm={a:1,b:0,C:0,J:1,La:0,Ma:0},this.textureAtlas=this.W.textureAtlas;else{this.atlasIndex=b.Q.Iz;this.textureAtlas=
null;this.dirty=this.nh=!1;a=this.Eb.x;var d=this.Eb.y,e=a+this.ha.width,f=d+this.ha.height,g=this.Ub;g.G.i={x:a,y:d,z:0};g.N.i={x:e,y:d,z:0};g.M.i={x:a,y:f,z:0};g.K.i={x:e,y:f,z:0};this.Ge=!0}};a.qb=function(a){a&&"string"===typeof a?(a=b.Ba.nc(a),this.qb(a),a=a.Eh(),this.hb(O(0,0,a.width,a.height))):(b.assert(!a||a instanceof b.da,b.e.OT),this.W&&this.W.texture!=a?b.log(b.e.NT):(this.shaderProgram=a?b.Ld.oc(b.Ui):b.Ld.oc(b.Tu),this.W||this.L==a||(this.L=a,this.Wf())))};a.Y=function(){if(this.na){var a=
b.k,d=this.L;d?d.wc&&(this.Hb.Mc(),this.Hb.$e(),b.Ih(this.o.src,this.o.U),b.sF(0,d),b.Jc(b.Kl),a.bindBuffer(a.ARRAY_BUFFER,this.Dw),this.Ge&&(a.bufferData(a.ARRAY_BUFFER,this.Ub.lx,a.DYNAMIC_DRAW),this.Ge=!1),a.vertexAttribPointer(0,3,a.FLOAT,!1,24,0),a.vertexAttribPointer(1,4,a.UNSIGNED_BYTE,!0,24,12),a.vertexAttribPointer(2,2,a.FLOAT,!1,24,16),a.drawArrays(a.TRIANGLE_STRIP,0,4)):(this.Hb.Mc(),this.Hb.$e(),b.Ih(this.o.src,this.o.U),b.te(null),b.Jc(b.Pd|b.gv),a.bindBuffer(a.ARRAY_BUFFER,this.Dw),
this.Ge&&(b.k.bufferData(b.k.ARRAY_BUFFER,this.Ub.lx,b.k.STATIC_DRAW),this.Ge=!1),a.vertexAttribPointer(b.sb,3,a.FLOAT,!1,24,0),a.vertexAttribPointer(b.ze,4,a.UNSIGNED_BYTE,!0,24,12),a.drawArrays(a.TRIANGLE_STRIP,0,4));b.$f++;if(0!==b.$j||this.FD)1===b.$j||this.FD?(a=this.Ub,b.De.ae([C(a.M.i.x,a.M.i.y),C(a.G.i.x,a.G.i.y),C(a.N.i.x,a.N.i.y),C(a.K.i.x,a.K.i.y)],4,!0)):2===b.$j&&(a=this.PN(),d=this.Eb,b.De.ae([C(d.x,d.y),C(d.x+a.width,d.y),C(d.x+a.width,d.y+a.height),C(d.x,d.y+a.height)],4,!0))}};delete a};b.B.eA=function(){var a=b.Q.prototype;b.f(a,"opacityModifyRGB",a.ue,a.Jd);b.f(a,"opacity",a.Re,a.Aa);b.f(a,"color",a.Qe,a.$a);b.f(a,"flippedX",a.n1,a.Ry);b.f(a,"flippedY",a.o1,a.yG);b.f(a,"offsetX",a.pW);b.f(a,"offsetY",a.qW);b.f(a,"texture",a.Oa,a.qb);b.f(a,"textureRectRotated",a.u1);b.f(a,"batchNode",a.cF,a.nl);b.f(a,"quad",a.v0)};b.kp=function(a){function c(){var c=b.kp,e=a.width,h=a.height;d[0].width=e;d[0].height=h;d[1].width=e;d[1].height=h;d[2].width=e;d[2].height=h;d[3].width=e;d[3].height=h;c.canvas.width=e;c.canvas.height=h;var k=c.canvas.getContext("2d");k.drawImage(a,0,0);c.SG.width=e;c.SG.height=h;for(var k=k.getImageData(0,0,e,h).data,m=0;4>m;m++){var p=d[m].getContext("2d");p.getImageData(0,0,e,h).data;c.XP.drawImage(a,0,0);for(var r=c.XP.getImageData(0,0,e,h),s=r.data,u=0;u<k.length;u+=4)s[u]=0===m?k[u]:0,s[u+
1]=1===m?k[u+1]:0,s[u+2]=2===m?k[u+2]:0,s[u+3]=k[u+3];p.putImageData(r,0,0)}a.onload=null}if(a.EM)return a.EM;var d=[b.Ob("canvas"),b.Ob("canvas"),b.Ob("canvas"),b.Ob("canvas")];try{c()}catch(e){a.onload=c}return a.EM=d};b.kp.canvas=b.Ob("canvas");b.kp.SG=b.Ob("canvas");b.kp.XP=b.kp.SG.getContext("2d");
b.kaa=function(a,c,d){d||(d=O(0,0,a.width,a.height),d=b.Kj(d));var e=b.Ob("canvas"),f=e.getContext("2d");e.width!=d.width&&(e.width=d.width);e.height!=d.height&&(e.height=d.height);f.save();f.drawImage(a,d.x,d.y,d.width,d.height,0,0,d.width,d.height);f.globalCompositeOperation="source-in";f.globalAlpha=c.a/255;f.fillStyle="rgb("+c.r+","+c.g+","+c.b+")";f.fillRect(0,0,d.width,d.height);f.restore();return e};
b.lp=function(a,c,d,e,f){e||(e=O(0,0,a.width,a.height));a=d.r/255;var g=d.g/255;d=d.b/255;var h=Math.min(e.width,c[0].width),k=Math.min(e.height,c[0].height),m;f?(m=f.getContext("2d"),m.clearRect(0,0,h,k)):(f=b.Ob("canvas"),f.width=h,f.height=k,m=f.getContext("2d"));m.save();m.globalCompositeOperation="lighter";var p=m.globalAlpha;0<a&&(m.globalAlpha=a*p,m.drawImage(c[0],e.x,e.y,h,k,0,0,h,k));0<g&&(m.globalAlpha=g*p,m.drawImage(c[1],e.x,e.y,h,k,0,0,h,k));0<d&&(m.globalAlpha=d*p,m.drawImage(c[2],e.x,
e.y,h,k,0,0,h,k));1>a+g+d&&(m.globalAlpha=p,m.drawImage(c[3],e.x,e.y,h,k,0,0,h,k));m.restore();return f};b.QE=function(a,c){if(!a)return null;if(!c)return a;var d=b.Ob("canvas");d.width=c.width;d.height=c.height;var e=d.getContext("2d");e.translate(d.width/2,d.height/2);e.rotate(-1.5707963267948966);e.drawImage(a,c.x,c.y,c.height,c.width,-c.height/2,-c.width/2,c.height,c.width);return d};
b.Q=b.ia.extend({yb:!0,dirty:!1,atlasIndex:0,textureAtlas:null,W:null,nh:null,hi:null,Qk:!1,sm:null,o:null,L:null,ha:null,bd:!1,Eb:null,wh:null,Qa:!1,Qb:!1,Rb:!1,na:!1,gb:null,BC:null,tb:"Sprite",au:function(){return this.na},$d:function(a,c){this.gb||(this.gb=[]);this.gb.push({Ah:a,Zf:c})},Rd:function(){if(this.gb){for(var a=this.gb,c=0,d=a.length;c<d;c++){var e=a[c];e.Ah.call(e.Zf,this)}a.length=0}},IF:function(){return this.dirty},nP:function(a){this.dirty=a},u1:function(){return this.bd},np:function(){return this.atlasIndex},
uG:function(a){this.atlasIndex=a},PN:function(){return O(this.ha.x,this.ha.y,this.ha.width,this.ha.height)},oF:function(){return this.textureAtlas},IG:function(a){this.textureAtlas=a},Jba:function(){return this.Eb},pW:function(){return this.Eb.x},qW:function(){return this.Eb.y},Ch:function(){return this.o},Ci:function(a){b.assert(a,b.e.AT);a.na||(this.na=!1,a.$d(this.KD,this));var c=b.A===b.Da?!1:a.ne,c=this.ta(a.Oa(),a.Gh(),c);this.ol(a);return c},KD:null,gda:function(a){b.assert(a,b.e.BT);var c=
b.kg.Hh(a);b.assert(c,a+b.e.CT);return this.Ci(c)},yka:function(a){this.textureAtlas=a.textureAtlas;this.W=a},MG:function(a){this.ha.x=a.x;this.ha.y=a.y;this.ha.width=a.width;this.ha.height=a.height},Uc:function(){if(this.Xd){var a=this.s,c=a.length,d,e,f;for(d=1;d<c;d++){f=a[d];for(e=d-1;0<=e;){if(f.zb<a[e].zb)a[e+1]=a[e];else if(f.zb===a[e].zb&&f.arrivalOrder<a[e].arrivalOrder)a[e+1]=a[e];else break;e--}a[e+1]=f}this.W&&this.wg(a,b.q.Df.Uc);this.Xd=!1}},Mp:function(a,c){b.assert(a,b.e.HT);-1===
this.s.indexOf(a)?b.log(b.e.GT):c!==a.zIndex&&(this.W&&!this.Xd&&(this.BD(),this.W.aP(!0)),b.q.prototype.Mp.call(this,a,c))},removeChild:function(a,c){this.W&&this.W.Xm(a);b.q.prototype.removeChild.call(this,a,c)},Ng:function(a){var c=this.s,d=this.W;if(d&&null!=c)for(var e=0,f=c.length;e<f;e++)d.Xm(c[e]);b.q.prototype.Ng.call(this,a);this.hi=!1},oP:function(a){this.dirty=this.nh=a;a=this.s;for(var c,d=a?a.length:0,e=0;e<d;e++)c=a[e],c instanceof b.Q&&c.oP(!0)},Ka:function(a){b.q.prototype.Ka.call(this);
a||!this.W||this.nh||(this.hi?this.oP(!0):this.dirty=this.nh=!0)},Tx:function(a){this.W?b.log(b.e.yT):b.q.prototype.Tx.call(this,a)},Ry:function(a){this.Qb!=a&&(this.Qb=a,this.hb(this.ha,this.bd,this.O),this.Ka(!0))},yG:function(a){this.Rb!=a&&(this.Rb=a,this.hb(this.ha,this.bd,this.O),this.Ka(!0))},n1:function(){return this.Qb},o1:function(){return this.Rb},Jd:null,ue:function(){return this.Qa},Mb:null,iia:function(a,c){b.assert(a,b.e.LT);var d=b.kx.kN(a);d?(d=d.Ud[c])?this.ol(d.Hh()):b.log(b.e.KT):
b.log(b.e.JT)},cF:function(){return this.W},BD:function(){if(!this.Xd){this.Xd=!0;for(var a=this.Tb;a&&a!=this.W;)a.BD(),a=a.parent}},Oa:function(){return this.L},Ub:null,Dw:null,Ge:!1,Bv:!1,to:!1,le:null,Lo:null,IB:null,ctor:null,XL:function(a,c,d){if(void 0===a)b.Q.prototype.F.call(this);else if("string"===typeof a)"#"===a[0]?(a=b.kg.Hh(a.substr(1,a.length-1)),this.Ci(a)):b.Q.prototype.F.call(this,a,c);else if("object"===typeof a)if(a instanceof b.da)this.ta(a,c,d);else if(a instanceof b.Cf)this.Ci(a);
else if(a instanceof HTMLImageElement||a instanceof HTMLCanvasElement)c=new b.da,c.sd(a),c.Nb(),this.ta(c)},v0:function(){return this.Ub},Ve:null,F:null,el:function(a,c){b.assert(a,b.e.zT);var d=b.Ba.en(a);if(d){if(!c){var e=d.Eh();c=O(0,0,e.width,e.height)}return this.ta(d,c)}d=b.Ba.nc(a);return this.ta(d,c||O(0,0,d.O.width,d.O.height))},ta:null,$w:null,hb:null,af:null,I:null,hu:function(){var a=this.Ea,c=this.Ca,a={r:a.r,g:a.g,b:a.b,a:c};this.Qa&&(a.r*=c/255,a.g*=c/255,a.b*=c/255);c=this.Ub;c.G.t=
a;c.N.t=a;c.M.t=a;c.K.t=a;this.W&&(this.atlasIndex!=b.Q.Iz?this.textureAtlas.hz(c,this.atlasIndex):this.dirty=!0);this.Ge=!0},Aa:null,$a:null,Pb:null,ol:null,z3:function(a){b.log(b.e.IT);this.ol(a)},kO:null,YZ:function(){return b.Cf.create(this.L,b.Pt(this.ha),this.bd,b.F2(this.wh),b.u4(this.O))},nl:null,qb:null,Wf:function(){this.W?b.log(b.e.rT):this.L&&this.L.Ai()?(this.o.src=b.hc,this.o.U=b.gc,this.opacityModifyRGB=!0):(this.o.src=b.SRC_ALPHA,this.o.U=b.ONE_MINUS_SRC_ALPHA,this.opacityModifyRGB=
!1)},qk:function(){var a,c=this.L,d=this.Lo;c&&d.bq&&this.le&&(a=c.Db)&&(c=b.Ba.Kx(this.le.Db))&&(this.Bv=!0,a instanceof HTMLCanvasElement&&!this.bd&&!this.BC?b.lp(a,c,this.Ea,d,a):(a=b.lp(a,c,this.Ea,d),c=new b.da,c.sd(a),c.Nb(),this.texture=c))},PL:function(a){a=b.Pt(a);var c=this.W?this.textureAtlas.texture:this.L;if(c){var d=c.pixelsWidth,e=c.pixelsHeight,f,g=this.Ub;this.bd?(b.pn?(c=(2*a.x+1)/(2*d),d=c+(2*a.height-2)/(2*d),f=(2*a.y+1)/(2*e),a=f+(2*a.width-2)/(2*e)):(c=a.x/d,d=(a.x+a.height)/
d,f=a.y/e,a=(a.y+a.width)/e),this.Qb&&(e=f,f=a,a=e),this.Rb&&(e=c,c=d,d=e),g.G.l.ea=c,g.G.l.fa=f,g.N.l.ea=c,g.N.l.fa=a,g.M.l.ea=d,g.M.l.fa=f,g.K.l.ea=d,g.K.l.fa=a):(b.pn?(c=(2*a.x+1)/(2*d),d=c+(2*a.width-2)/(2*d),f=(2*a.y+1)/(2*e),a=f+(2*a.height-2)/(2*e)):(c=a.x/d,d=(a.x+a.width)/d,f=a.y/e,a=(a.y+a.height)/e),this.Qb&&(e=c,c=d,d=e),this.Rb&&(e=f,f=a,a=e),g.G.l.ea=c,g.G.l.fa=a,g.N.l.ea=d,g.N.l.fa=a,g.M.l.ea=c,g.M.l.fa=f,g.K.l.ea=d,g.K.l.fa=f);this.Ge=!0}},Y:null});
b.Q.create=function(a,c,d){return new b.Q(a,c,d)};b.Q.Iz=-1;
b.A===b.Da?(n=b.Q.prototype,n.KD=function(a){this.Ka(!0);this.hb(a.Gh(),a.ne,a.mf);a=this.color;255===a.r&&255===a.g&&255===a.b||this.qk();this.Rd()},n.Jd=function(a){this.Qa!==a&&(this.Qa=a,this.Ka(!0))},n.Mb=function(a){b.ia.prototype.Mb.call(this,a);this.rh()},n.ctor=function(a,c,d){b.ia.prototype.ctor.call(this);this.Qk=!1;this.Eb=C(0,0);this.wh=C(0,0);this.o={src:b.hc,U:b.gc};this.ha=O(0,0,0,0);this.BC=!1;this.na=!0;this.Lo={x:0,y:0,width:0,height:0,bq:!1};this.IB=H(0,0);this.XL(a,c,d)},n.Ve=
function(a,c){var d=this.o;void 0===c?(d.src=a.src,d.U=a.U):(d.src=a,d.U=c);this.to=d&&(d.src==b.SRC_ALPHA&&d.U==b.ONE||d.src==b.ONE&&d.U==b.ONE)},n.F=function(){if(0<arguments.length)return this.el(arguments[0],arguments[1]);b.ia.prototype.F.call(this);this.dirty=this.nh=!1;this.Qa=!0;this.o.src=b.hc;this.o.U=b.gc;this.texture=null;this.na=!0;this.Qb=this.Rb=!1;this.anchorY=this.anchorX=0.5;this.Eb.x=0;this.Eb.y=0;this.hi=!1;this.hb(O(0,0,0,0),!1,H(0,0));return!0},n.ta=function(a,c,d){b.assert(0!=
arguments.length,b.e.KQ);if((d=d||!1)&&a.wc){var e=a.Db,e=b.QE(e,c),f=new b.da;f.sd(e);f.Nb();a=f;this.ha=O(0,0,c.width,c.height)}if(!b.ia.prototype.F.call(this))return!1;this.W=null;this.dirty=this.nh=!1;this.Qa=!0;this.o.src=b.hc;this.o.U=b.gc;this.Qb=this.Rb=!1;this.anchorY=this.anchorX=0.5;this.Eb.x=0;this.Eb.y=0;this.hi=!1;this.na=e=a.wc;if(!e)return this.bd=d,c&&(this.ha.x=c.x,this.ha.y=c.y,this.ha.width=c.width,this.ha.height=c.height),a.$d(this.$w,this),!0;c||(c=O(0,0,a.width,a.height));a&&
(e=c.y+c.height,c.x+c.width>a.width&&b.error(b.e.kA,a.url),e>a.height&&b.error(b.e.jA,a.url));this.texture=this.le=a;this.hb(c,d);this.batchNode=null;return!0},n.$w=function(a){if(!this.na){this.na=!0;var c=this.ha;c?b.dD(c)&&(c.width=a.width,c.height=a.height):c=O(0,0,a.width,a.height);this.texture=this.le=a;this.hb(c,this.bd);this.batchNode=this.W;this.Rd()}},n.hb=function(a,c,d){this.bd=c||!1;this.be(d||a);this.MG(a);c=this.Lo;d=b.pb();c.x=0|a.x*d;c.y=0|a.y*d;c.width=0|a.width*d;c.height=0|a.height*
d;c.bq=!(0===c.width||0===c.height||0>c.x||0>c.y);a=this.wh;this.Qb&&(a.x=-a.x);this.Rb&&(a.y=-a.y);this.Eb.x=a.x+(this.O.width-this.ha.width)/2;this.Eb.y=a.y+(this.O.height-this.ha.height)/2;this.W&&(this.dirty=!0)},n.af=function(){if(this.dirty){var a=this.Tb;!this.Ac||a&&a!=this.W&&a.Qk?this.Qk=!0:(this.Qk=!1,this.sm=a&&a!=this.W?b.sl(this.Ue(),a.sm):this.Ue());this.dirty=this.nh=!1}this.hi&&this.wg(this.s,b.q.Df.af)},n.I=function(a,c,d){b.assert(a,b.e.IQ);null==c&&(c=a.zb);null==d&&(d=a.tag);
b.ia.prototype.I.call(this,a,c,d);this.hi=!0},n.Aa=function(a){b.ia.prototype.Aa.call(this,a);this.rh()},n.$a=function(a){var c=this.color;if(c.r!==a.r||c.g!==a.g||c.b!==a.b)b.ia.prototype.$a.call(this,a),this.qk(),this.rh()},n.Pb=function(a){var c=this.color;b.ia.prototype.Pb.call(this,a);a=this.Ea;if(c.r!==a.r||c.g!==a.g||c.b!==a.b)this.qk(),this.rh()},n.ol=function(a){var c=this;"string"==typeof a&&(a=b.kg.Hh(a),b.assert(a,b.e.NQ));c.Ka(!0);var d=a.la;c.wh.x=d.x;c.wh.y=d.y;c.bd=a.ne;var d=a.Oa(),
e=a.na;e||(c.na=!1,a.$d(function(a){c.na=!0;var d=a.Oa();d!=c.L&&(c.texture=d);c.hb(a.Gh(),a.ne,a.mf);c.Rd()},c));d!=c.L&&(c.texture=d);c.bd&&(c.le=d);c.hb(a.Gh(),c.bd,a.mf);c.Bv=!1;e&&(a=c.color,255===a.r&&255===a.g&&255===a.b||c.qk())},n.kO=function(a){return a.Oa()!=this.L?!1:b.VO(a.Gh(),this.ha)},n.nl=function(a){(this.W=a)?(this.sm={a:1,b:0,C:0,J:1,La:0,Ma:0},this.textureAtlas=this.W.textureAtlas):(this.atlasIndex=b.Q.Iz,this.textureAtlas=null,this.dirty=this.nh=!1)},n.qb=function(a){a&&"string"===
typeof a?(a=b.Ba.nc(a),this.qb(a),a=a.Eh(),this.hb(O(0,0,a.width,a.height))):(b.assert(!a||a instanceof b.da,b.e.OQ),this.L!=a&&(a&&a.Db instanceof HTMLImageElement&&(this.le=a),this.L=a))},n.Y=function(a){if(this.na){a=a||b.k;this.to&&(a.globalCompositeOperation="lighter");var c=b.view.qa,d=b.view.Ra;a.globalAlpha=this.Ca/255;var e=this.ha,f=this.O,g=this.Eb,h=this.IB,k=0|g.x,m=-g.y-e.height,p=this.Lo;h.width=e.width*c;h.height=e.height*d;if(this.Qb||this.Rb)a.save(),this.Qb&&(k=-g.x-e.width,a.scale(-1,
1)),this.Rb&&(m=g.y,a.scale(1,-1));k*=c;m*=d;this.L&&p.bq?(f=this.L.Db,this.Bv?a.drawImage(f,0,0,p.width,p.height,k,m,h.width,h.height):a.drawImage(f,p.x,p.y,p.width,p.height,k,m,h.width,h.height)):!this.L&&p.bq&&(h=this.color,a.fillStyle="rgba("+h.r+","+h.g+","+h.b+",1)",a.fillRect(k,m,f.width*c,f.height*d));1===b.$j||this.FD?(a.strokeStyle="rgba(0,255,0,1)",k/=c,m=-(m/d),b.De.ae([C(k,m),C(k+e.width,m),C(k+e.width,m-e.height),C(k,m-e.height)],4,!0)):2===b.$j&&(a.strokeStyle="rgba(0,255,0,1)",c=this.ha,
m=-m,b.De.ae([C(k,m),C(k+c.width,m),C(k+c.width,m-c.height),C(k,m-c.height)],4,!0));(this.Qb||this.Rb)&&a.restore();b.$f++}},delete n):(b.assert("function"===typeof b.B.XA,b.e.Nc,"SpritesWebGL.js"),b.B.XA(),delete b.B.XA);b.assert("function"===typeof b.B.eA,b.e.Nc,"SpritesPropertyDefine.js");b.B.eA();delete b.B.eA;b.rz=29;
b.ye=b.q.extend({textureAtlas:null,o:null,Ad:null,tb:"SpriteBatchNode",cZ:function(a,c,d){b.assert(a,b.e.lT);if(!(a instanceof b.Q))return b.log(b.e.kT),null;a.atlasIndex=c;var e=0,f=this.Ad;if(f&&0<f.length)for(var g=0;g<f.length;g++){var h=f[g];h&&h.atlasIndex>=c&&++e}f.splice(e,0,a);b.q.prototype.I.call(this,a,c,d);this.aP(!1);return this},oF:function(){return this.textureAtlas},IG:function(a){a!=this.textureAtlas&&(this.textureAtlas=a)},P_:function(){return this.Ad},el:function(a,c){var d=b.Ba.en(a);
d||(d=b.Ba.nc(a));return this.ta(d,c)},rh:function(){this.xg=!0},F:function(a,c){var d=b.Ba.en(a);d||(d=b.Ba.nc(a));return this.ta(d,c)},Wx:function(){var a=this.textureAtlas.capacity,c=Math.floor(4*(a+1)/3);b.log(b.e.mT,a,c);this.textureAtlas.nG(c)||b.log(b.e.nT)},W2:function(a,c){this.removeChild(this.s[a],c)},TO:function(a,c){var d=a.children;if(d&&0<d.length)for(var e=0;e<d.length;e++){var f=d[e];f&&0>f.zIndex&&(c=this.TO(f,c))}!a==this&&(a.atlasIndex=c,c++);if(d&&0<d.length)for(e=0;e<d.length;e++)(f=
d[e])&&0<=f.zIndex&&(c=this.TO(f,c));return c},xF:function(a){var c=a.children;return c&&0!=c.length?this.xF(c[c.length-1]):a.atlasIndex},f2:function(a){var c=a.children;return c&&0!=c.length?this.f2(c[c.length-1]):a.atlasIndex},tZ:function(a,c){var d=a.parent,e=d.children,f=e.indexOf(a),g=null;0<f&&f<b.IA&&(g=e[f-1]);return d==this?0==f?0:this.xF(g)+1:0==f?0>c?d.atlasIndex:d.atlasIndex+1:0>g.zIndex&&0>c||0<=g.zIndex&&0<=c?this.xF(g)+1:d.atlasIndex+1},aP:function(a){this.Xd=a},Ve:function(a,c){this.o=
void 0===c?a:{src:a,U:c}},Ch:function(){return this.o},Mp:function(a,c){b.assert(a,b.e.qT);-1===this.s.indexOf(a)?b.log(b.e.pT):c!==a.zIndex&&(b.q.prototype.Mp.call(this,a,c),this.Ka())},removeChild:function(a,c){null!=a&&(-1===this.s.indexOf(a)?b.log(b.e.oT):(this.Xm(a),b.q.prototype.removeChild.call(this,a,c)))},iX:null,Vk:null,N8:!1,le:null,ctor:null,xr:function(a,c){b.q.prototype.ctor.call(this);var d;c=c||b.rz;"string"==typeof a?(d=b.Ba.en(a))||(d=b.Ba.nc(a)):a instanceof b.da&&(d=a);d&&this.ta(d,
c)},yr:function(a,c){b.q.prototype.ctor.call(this);this.iX=new b.ca;var d;c=c||b.rz;"string"==typeof a?(d=b.Ba.en(a))||(d=b.Ba.nc(a)):a instanceof b.da&&(d=a);d&&this.ta(d,c)},jQ:null,WY:function(a,c){b.assert(a,b.e.PQ);a instanceof b.Q?(a.batchNode=this,a.atlasIndex=c,a.dirty=!0,a.af()):b.log(b.e.pz)},XY:function(a,c){b.assert(a,b.e.pz);if(a instanceof b.Q){for(var d=this.textureAtlas.capacity;c>=d||d==this.textureAtlas.totalQuads;)this.Wx();a.batchNode=this;a.atlasIndex=c;a.dirty=!0;a.af()}else b.log(b.e.pz)},
Uk:function(a,c){var d=this.Ad,e=this.textureAtlas,f=e.quads,g=d[a],h=b.$I(f[a]);d[c].atlasIndex=a;d[a]=d[c];e.hz(f[c],a);d[c]=g;e.hz(h,c)},ay:null,TW:function(a,c){b.assert(a,b.e.MQ);a instanceof b.Q?(a.batchNode=this,a.atlasIndex=c,a.dirty=!0,a.af(),this.s.splice(c,0,a)):b.log(b.e.LQ)},UW:function(a,c){b.assert(a,b.e.FT);if(a instanceof b.Q){for(var d=this.textureAtlas;c>=d.capacity||d.capacity===d.totalQuads;)this.Wx();a.batchNode=this;a.atlasIndex=c;d.HF(a.quad,c);a.dirty=!0;a.af()}else b.log(b.e.ET)},
kM:function(a,c){var d=0,e=a.children;e&&(d=e.length);var f=0;if(0===d)f=a.atlasIndex,a.atlasIndex=c,a.arrivalOrder=0,f!=c&&this.Uk(f,c),c++;else{f=!0;0<=e[0].zIndex&&(f=a.atlasIndex,a.atlasIndex=c,a.arrivalOrder=0,f!=c&&this.Uk(f,c),c++,f=!1);for(d=0;d<e.length;d++){var g=e[d];f&&0<=g.zIndex&&(f=a.atlasIndex,a.atlasIndex=c,a.arrivalOrder=0,f!=c&&this.Uk(f,c),c++,f=!1);c=this.kM(g,c)}f&&(f=a.atlasIndex,a.atlasIndex=c,a.arrivalOrder=0,f!=c&&this.Uk(f,c),c++)}return c},Wf:function(){this.textureAtlas.texture.Ai()||
(this.o.src=b.SRC_ALPHA,this.o.U=b.ONE_MINUS_SRC_ALPHA)},ta:null,kC:function(a){this.s=[];this.Ad=[];this.o=new b.Sj(b.hc,b.gc);this.Vk=this.le=a;return!0},lC:function(a,c){this.s=[];this.Ad=[];this.o=new b.Sj(b.hc,b.gc);c=c||b.rz;this.textureAtlas=new b.ek;this.textureAtlas.ta(a,c);this.Wf();this.shaderProgram=b.Ld.oc(b.Ui);return!0},GF:function(a,c){a.batchNode=this;a.atlasIndex=c;a.dirty=!0;var d=this.textureAtlas;d.totalQuads>=d.capacity&&this.Wx();d.HF(a.quad,c);this.Ad.splice(c,0,a);var d=c+
1,e=this.Ad;if(e&&0<e.length)for(;d<e.length;d++)e[d].atlasIndex++;var e=a.children,f;if(e)for(d=0,l=e.length||0;d<l;d++)(f=e[d])&&this.GF(f,this.tZ(f,f.zIndex))},appendChild:null,YU:function(a){this.Xd=!0;a.batchNode=this;a.dirty=!0;this.Ad.push(a);a.atlasIndex=this.Ad.length-1;a=a.children;for(var c=0,d=a.length||0;c<d;c++)this.appendChild(a[c])},ZU:function(a){this.Xd=!0;a.batchNode=this;a.dirty=!0;this.Ad.push(a);var c=this.Ad.length-1;a.atlasIndex=c;var d=this.textureAtlas;d.totalQuads==d.capacity&&
this.Wx();d.HF(a.quad,c);a=a.children;c=0;for(d=a.length||0;c<d;c++)this.appendChild(a[c])},Xm:null,LX:function(a){a.batchNode=null;var c=this.Ad,d=c.indexOf(a);if(-1!=d){c.splice(d,1);for(var e=c.length;d<e;++d)c[d].atlasIndex--}if(a=a.children)for(c=0,d=a.length||0;c<d;c++)a[c]&&this.Xm(a[c])},MX:function(a){this.textureAtlas.$O(a.atlasIndex);a.batchNode=null;var c=this.Ad,d=c.indexOf(a);if(-1!=d){c.splice(d,1);for(var e=c.length;d<e;++d)c[d].atlasIndex--}if(a=a.children)for(c=0,d=a.length||0;c<
d;c++)a[c]&&this.Xm(a[c])},Oa:null,Nr:function(){return this.Vk},eC:function(){return this.textureAtlas.texture},qb:null,CD:function(a){this.Vk=a;for(var c=this.s,d=0;d<c.length;d++)c[d].texture=a},DD:function(a){this.textureAtlas.texture=a;this.Wf()},T:null,um:function(a){var c=a||b.k;if(this.Ac){c.save();this.transform(a);var d=this.s;if(d)for(this.Uc(),a=0;a<d.length;a++)d[a]&&d[a].T(c);c.restore()}},Ps:function(a){a=a||b.k;if(this.Ac){b.Qm();var c=this.grid;c&&c.wf()&&(c.Xs(),this.ez());this.Uc();
this.transform(a);this.Y(a);c&&c.wf()&&c.Us(this);b.Pm();this.arrivalOrder=0}},I:null,dB:function(a,c,d){b.assert(null!=a,b.e.JQ);a instanceof b.Q?(c=null==c?a.zIndex:c,d=null==d?a.tag:d,b.q.prototype.I.call(this,a,c,d),this.appendChild(a),this.Ka()):b.log(b.e.HQ)},WU:function(a,c,d){b.assert(null!=a,b.e.xT);a instanceof b.Q?a.texture!=this.textureAtlas.texture?b.log(b.e.wT):(c=null==c?a.zIndex:c,d=null==d?a.tag:d,b.q.prototype.I.call(this,a,c,d),this.appendChild(a),this.Ka()):b.log(b.e.vT)},Ng:null,
JX:function(a){var c=this.Ad;if(c&&0<c.length)for(var d=0,e=c.length;d<e;d++)c[d]&&(c[d].batchNode=null);b.q.prototype.Ng.call(this,a);this.Ad.length=0},KX:function(a){var c=this.Ad;if(c&&0<c.length)for(var d=0,e=c.length;d<e;d++)c[d]&&(c[d].batchNode=null);b.q.prototype.Ng.call(this,a);this.Ad.length=0;this.textureAtlas.YO()},Uc:null,DY:function(){if(this.Xd){var a,c=0,d=this.s,e=d.length,f;for(a=1;a<e;a++){var g=d[a],c=a-1;for(f=d[c];0<=c&&(g.zb<f.zb||g.zb==f.zb&&g.arrivalOrder<f.arrivalOrder);)d[c+
1]=f,c-=1,f=d[c];d[c+1]=g}0<d.length&&this.wg(d,b.q.Df.Uc);this.Xd=!1}},EY:function(){if(this.Xd){var a=this.s,c,d=0,e=a.length,f;for(c=1;c<e;c++){var g=a[c],d=c-1;for(f=a[d];0<=d&&(g.zb<f.zb||g.zb==f.zb&&g.arrivalOrder<f.arrivalOrder);)a[d+1]=f,d-=1,f=a[d];a[d+1]=g}if(0<a.length)for(this.wg(a,b.q.Df.Uc),c=d=0;c<a.length;c++)d=this.kM(a[c],d);this.Xd=!1}},Y:null,$i:function(){0!==this.textureAtlas.totalQuads&&(this.Hb.Mc(),this.Hb.$e(),this.wg(this.s,b.q.Df.af),b.Ih(this.o.src,this.o.U),this.textureAtlas.$M())}});
n=b.ye.prototype;b.A===b.Z?(n.ctor=n.yr,n.jQ=n.XY,n.ay=n.UW,n.ta=n.lC,n.appendChild=n.ZU,n.Xm=n.MX,n.Oa=n.eC,n.qb=n.DD,n.T=n.Ps,n.I=n.WU,n.Ng=n.KX,n.Uc=n.EY,n.Y=n.$i):(n.ctor=n.xr,n.jQ=n.WY,n.ay=n.TW,n.ta=n.kC,n.appendChild=n.YU,n.Xm=n.LX,n.Oa=n.Nr,n.qb=n.CD,n.T=n.um,n.Ng=n.JX,n.I=n.dB,n.Uc=n.DY,n.Y=b.q.prototype.Y);b.f(n,"texture",n.Oa,n.qb);b.f(n,"descendants",n.P_);b.ye.create=function(a,c){return new b.ye(a,c)};b.EQ=b.Q.extend({de:null,Be:null,ctor:function(){b.Q.prototype.ctor.call(this);var a=document.createElement("canvas");a.width=a.height=10;this.de=a;this.Be=a.getContext("2d");var c=new b.da;c.sd(a);c.Nb();this.qb(c)},waa:function(){return this.Be},vaa:function(){return this.de},cP:function(a,c){void 0===c&&(c=a.height,a=a.width);var d=this.de;d.width=a;d.height=c;this.Oa().Nb();this.hb(O(0,0,a,c),!1)}});b.pg=b.ja.extend({Eo:null,Td:0,Ro:null,ctor:function(a,c,d){this.Eo=a||null;this.Td=c||0;this.Ro=d||null},j:function(){var a=new b.pg;a.Ci(this.Eo.j(),this.Td,this.Ro);return a},wx:function(){return b.j(this)},copy:function(){var a=new b.pg;a.Ci(this.Eo.j(),this.Td,this.Ro);return a},Ci:function(a,c,d){this.Eo=a;this.Td=c;this.Ro=d;return!0},Hh:function(){return this.Eo},ol:function(a){this.Eo=a},Kaa:function(){return this.Td},fia:function(a){this.Td=a},Nca:function(){return this.Ro},Lja:function(a){this.Ro=
a}});b.pg.create=function(a,c,d){return new b.pg(a,c,d)};
b.Qj=b.ja.extend({Ud:null,gj:0,hm:!1,n:0,Td:0,xi:0,ctor:function(a,c,d){this.Ud=[];if(void 0===a)this.gO(null,0);else{var e=a[0];e&&(e instanceof b.Cf?this.gO(a,c,d):e instanceof b.pg&&this.Xx(a,c,d))}},gba:function(){return this.Ud},ria:function(a){this.Ud=a},wE:function(a){var c=new b.pg;c.Ci(a,1,null);this.Ud.push(c);this.xi++},Y8:function(a){a=b.Ba.nc(a);var c=O(0,0,0,0);c.width=a.width;c.height=a.height;a=b.Cf.create(a,c);this.wE(a)},Z8:function(a,c){var d=b.Cf.create(a,c);this.wE(d)},Xx:function(a,
c,d){b.Uo(a,b.pg);this.Td=c;this.gj=void 0===d?1:d;this.xi=0;c=this.Ud;for(d=c.length=0;d<a.length;d++){var e=a[d];c.push(e);this.xi+=e.Td}return!0},j:function(){var a=new b.Qj;a.Xx(this.yJ(),this.Td,this.gj);a.Yy(this.hm);return a},wx:function(){var a=new b.Qj;a.Xx(this.yJ(),this.Td,this.gj);a.Yy(this.hm);return a},yJ:function(){for(var a=[],c=0;c<this.Ud.length;c++)a.push(this.Ud[c].j());return a},copy:function(){return this.wx(null)},wba:function(){return this.gj},Dia:function(a){this.gj=a},Yy:function(a){this.hm=
a},fca:function(){return this.hm},op:function(){return this.xi*this.Td},Jaa:function(){return this.Td},eia:function(a){this.Td=a},Gca:function(){return this.xi},gO:function(a,c,d){b.Uo(a,b.Cf);this.gj=void 0===d?1:d;this.Td=c||0;this.xi=0;c=this.Ud;c.length=0;if(a){for(d=0;d<a.length;d++){var e=a[d],f=new b.pg;f.Ci(e,1,null);c.push(f)}this.xi+=a.length}return!0},My:function(){},Ki:function(){}});b.Qj.create=function(a,c,d){return new b.Qj(a,c,d)};b.kx={En:{},qM:function(a,c){this.En[c]=a},hha:function(a){a&&this.En[a]&&delete this.En[a]},kN:function(a){return this.En[a]?this.En[a]:null},VU:function(a,c){var d=a.animations;if(d){var e=1,f=a.properties;if(f)for(var e=null!=f.format?parseInt(f.format):e,f=f.spritesheets,g=b.kg,h=b.path,k=0;k<f.length;k++)g.jx(h.Yo(c,f[k]));switch(e){case 1:this.AX(d);break;case 2:this.BX(d);break;default:b.log(b.e.kZ)}}else b.log(b.e.jZ)},R8:function(a){b.assert(a,b.e.sZ);var c=b.V.Fd(a);c?this.VU(c,a):b.log(b.e.rZ)},
AX:function(a){var c=b.kg,d;for(d in a){var e=a[d],f=e.frames,e=parseFloat(e.delay)||0,g=null;if(f){for(var g=[],h=0;h<f.length;h++){var k=c.Hh(f[h]);if(k){var m=new b.pg;m.Ci(k,1,null);g.push(m)}else b.log(b.e.mZ,d,f[h])}0===g.length?b.log(b.e.nZ,d):(g.length!=f.length&&b.log(b.e.oZ,d),g=b.Qj.create(g,e,1),b.kx.qM(g,d))}else b.log(b.e.lZ,d)}},BX:function(a){var c=b.kg,d;for(d in a){var e=a[d],f=parseInt(e.loops),f=e.loop?b.Nq:isNaN(f)?1:f,g=e.restoreOriginalFrame&&!0==e.restoreOriginalFrame?!0:!1,
h=e.frames;if(h){for(var k=[],m=0;m<h.length;m++){var p=h[m],r=p.spriteframe,s=c.Hh(r);if(s){var r=parseFloat(p.delayUnits)||0,p=p.notification,u=new b.pg;u.Ci(s,r,p);k.push(u)}else b.log(b.e.qZ,d,r)}e=parseFloat(e.delayPerUnit)||0;h=new b.Qj;h.Xx(k,e,f);h.Yy(g);b.kx.qM(h,d)}else b.log(b.e.pZ,d)}},rk:function(){this.En={}}};b.Cf=b.ja.extend({la:null,mf:null,Ie:null,ne:!1,ha:null,Pf:null,Qf:null,L:null,Ko:"",na:!1,Tv:null,ctor:function(a,c,d,e,f){this.la=C(0,0);this.Pf=C(0,0);this.mf=H(0,0);this.ne=!1;this.Qf=H(0,0);this.Ko="";this.L=null;this.na=!1;void 0!==a&&void 0!==c&&(void 0===d||void 0===e||void 0===f?this.ta(a,c):this.ta(a,c,d,e,f))},au:function(){return this.na},$d:function(a,c){null==this.Tv&&(this.Tv=[]);this.Tv.push({Ah:a,Zf:c})},Rd:function(){var a=this.Tv;if(a){for(var c=0,d=a.length;c<d;c++){var e=a[c];
e.Ah.call(e.Zf,this)}a.length=0}},w0:function(){var a=this.Ie;return O(a.x,a.y,a.width,a.height)},bja:function(a){this.Ie||(this.Ie=O(0,0,0,0));this.Ie.x=a.x;this.Ie.y=a.y;this.Ie.width=a.width;this.Ie.height=a.height;this.ha=b.Kj(a)},Ada:function(){return this.ne},dja:function(a){this.ne=a},Gh:function(){var a=this.ha;return O(a.x,a.y,a.width,a.height)},CP:function(a){this.ha||(this.ha=O(0,0,0,0));this.ha.x=a.x;this.ha.y=a.y;this.ha.width=a.width;this.ha.height=a.height;this.Ie=b.Pt(this.ha)},Iba:function(){return this.Pf},
Mia:function(a){this.Pf.x=a.x;this.Pf.y=a.y;b.OC(this.Pf,this.la)},Oba:function(){return this.Qf},Qia:function(a){this.Qf.width=a.width;this.Qf.height=a.height},Nba:function(){return this.mf},Pia:function(a){this.mf.width=a.width;this.mf.height=a.height},Oa:function(){if(this.L)return this.L;if(""!==this.Ko){var a=b.Ba.nc(this.Ko);a&&(this.na=a.wc);return a}return null},qb:function(a){if(this.L!=a){var c=a.wc;this.na=c;this.L=a;c||a.$d(function(a){this.na=!0;if(this.ne&&b.A===b.Da){var c=a.Db,c=b.QE(c,
this.Gh()),f=new b.da;f.sd(c);f.Nb();this.qb(f);c=this.Gh();this.CP(O(0,0,c.width,c.height))}c=this.ha;0===c.width&&0===c.height&&(c=a.width,a=a.height,this.ha.width=c,this.ha.height=a,this.Ie=b.Pt(this.ha),this.Qf.width=this.Ie.width,this.Qf.height=this.Ie.height,this.mf.width=c,this.mf.height=a);this.Rd()},this)}},vN:function(){return this.la},Wy:function(a){this.la.x=a.x;this.la.y=a.y},j:function(){var a=new b.Cf;a.ta(this.Ko,this.Ie,this.ne,this.Pf,this.Qf);a.qb(this.L);return a},wx:function(){var a=
new b.Cf;a.ta(this.Ko,this.Ie,this.ne,this.Pf,this.Qf);a.qb(this.L);return a},copy:function(){return this.wx()},ta:function(a,c,d,e,f){2===arguments.length&&(c=b.Pt(c));e=e||C(0,0);f=f||c;d=d||!1;"string"==typeof a?(this.L=null,this.Ko=a):a instanceof b.da&&this.qb(a);if(a=this.Oa()){var g,h;d?(g=c.x+c.height,h=c.y+c.width):(g=c.x+c.width,h=c.y+c.height);g>a.width&&b.error(b.e.kA,a.url);h>a.height&&b.error(b.e.jA,a.url)}this.Ie=c;this.ha=b.Kj(c);this.Pf.x=e.x;this.Pf.y=e.y;b.OC(e,this.la);this.Qf.width=
f.width;this.Qf.height=f.height;b.WL(f,this.mf);this.ne=d;return!0}});b.Cf.create=function(a,c,d,e,f){return new b.Cf(a,c,d,e,f)};b.Cf.m8=function(a,c,d,e,f){var g=new b.Cf;g.L=a;g.Ie=c;g.ha=b.Kj(c);g.Pf.x=e.x;g.Pf.y=e.y;b.OC(g.Pf,g.la);g.Qf.width=f.width;g.Qf.height=f.height;b.WL(g.Qf,g.mf);g.ne=d;return g};b.kg={gJ:/^\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*$/,IU:/^\s*\{\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*,\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*\}\s*$/,uh:{},sj:{},io:{},uL:function(a){return(a=this.IU.exec(a))?O(parseFloat(a[1]),parseFloat(a[2]),parseFloat(a[3]),parseFloat(a[4])):O(0,0,0,0)},kL:function(a){return(a=this.gJ.exec(a))?C(parseFloat(a[1]),parseFloat(a[2])):C(0,0)},GD:function(a){return(a=this.gJ.exec(a))?H(parseFloat(a[1]),parseFloat(a[2])):
H(0,0)},gW:function(a){var c=b.V.Fd(a);b.assert(c,b.e.y4,a);b.V.Ki(a);if(c.po)return this.io[a]=c;var d=c.frames,e=c.metadata||c.meta,c={},f={},g=0;e&&(g=e.format,g=1>=g.length?parseInt(g):g,f.W0=e.textureFileName||e.textureFileName||e.image);for(var h in d){var k=d[h];if(k){e={};if(0==g){e.rect=O(k.x,k.y,k.width,k.height);e.Py=!1;e.offset=C(k.offsetX,k.offsetY);var m=k.originalWidth,k=k.originalHeight;m&&k||b.log(b.e.x4);m=Math.abs(m);k=Math.abs(k);e.size=H(m,k)}else if(1==g||2==g)e.rect=this.uL(k.frame),
e.Py=k.rotated||!1,e.offset=this.kL(k.offset),e.size=this.GD(k.sourceSize);else if(3==g){var m=this.GD(k.spriteSize),p=this.uL(k.textureRect);m&&(p=O(p.x,p.y,m.width,m.height));e.rect=p;e.Py=k.textureRotated||!1;e.offset=this.kL(k.spriteOffset);e.size=this.GD(k.spriteSourceSize);e.fZ=k.aliases}else m=k.frame,p=k.sourceSize,h=k.filename||h,e.rect=O(m.x,m.y,m.w,m.h),e.Py=k.rotated||!1,e.offset=C(0,0),e.size=H(p.w,p.h);c[h]=e}}return this.io[a]={po:!0,frames:c,g2:f}},jx:function(a,c){b.assert(a,b.e.A4);
var d=this.io[a]||b.V.Fd(a);if(d&&d.frames){var e=this.io[a]||this.gW(a),d=e.frames,e=e.g2;c?c instanceof b.da||("string"==typeof c?c=b.Ba.nc(c):b.assert(0,b.e.B4)):c=b.Ba.nc(b.path.Yo(a,e.W0||".png"));var e=this.sj,f=this.uh,g;for(g in d){var h=d[g],k=f[g];if(!k){k=b.Cf.create(c,h.rect,h.Py,h.offset,h.size);if(h=h.fZ)for(var m=0,p=h.length;m<p;m++){var r=h[m];e[r]&&b.log(b.e.z4,r);e[r]=g}b.A===b.Da&&k.ne&&k.Oa().wc&&(h=k.Oa().Db,h=b.QE(h,k.w0()),m=new b.da,m.sd(h),m.Nb(),k.qb(m),h=k.ha,k.CP(O(0,
0,h.width,h.height)));f[g]=k}}}},f8:function(a){a=a.frames;for(var c in a)this.uh[c]&&b.log(b.e.w4,c)},wE:function(a,c){this.uh[c]=a},oha:function(){this.uh={};this.sj={}},nha:function(a){a&&(this.sj[a]&&delete this.sj[a],this.uh[a]&&delete this.uh[a])},pha:function(a){var c=this.uh,d=this.sj;if(a=this.io[a]){a=a.frames;for(var e in a)if(c[e]){delete c[e];for(var f in d)d[f]==e&&delete d[f]}}},qha:function(a){var c=this.uh,d=this.sj,e;for(e in c){var f=c[e];if(f&&f.Oa()==a){delete c[e];for(var g in d)d[g]==
e&&delete d[g]}}},Hh:function(a){var c=this.uh[a];if(!c){var d=this.sj[a];d&&((c=this.uh[d.toString()])||delete this.sj[a])}c||b.log(b.e.C4,a);return c},rk:function(){this.uh={};this.sj={};this.io={}}};b.ap={p6:0,n7:1,INT:2,l6:3,N5:4,as:0,gX:0,WD:!1,Zw:!1,UD:!1,VD:!1,XD:!1,x8:0,zC:0,jv:"",Ls:{},po:!1,Sr:function(){var a=this.Ls;a["cocos2d.x.version"]=b.xz;a["cocos2d.x.compiled_with_profiler"]=!1;a["cocos2d.x.compiled_with_gl_state_cache"]=b.$g;this.po=!0},Bba:function(){return this.as},Aba:function(){return this.gX},Cba:function(){return this.zC},aka:function(){return this.Zw},bka:function(){return this.WD},$ja:function(){return!1},cka:function(){return!1},Xja:function(){return!1},Yja:function(){return this.UD},
Zja:function(){return this.VD},dka:function(){return this.XD},Zo:function(a){return-1<this.jv.indexOf(a)},Pca:function(a,c){this.po||this.Sr();var d=this.Ls;return d[a]?d[a]:c},Nja:function(a,c){this.Ls[a]=c},h_:function(){0===b.$g&&(b.log(""),b.log(b.e.KZ),b.log(""))},E_:function(){if(b.A!==b.Da){this.po||this.Sr();var a=b.k,c=this.Ls;c["gl.vendor"]=a.getParameter(a.VENDOR);c["gl.renderer"]=a.getParameter(a.RENDERER);c["gl.version"]=a.getParameter(a.VERSION);this.jv="";for(var d=a.getSupportedExtensions(),
e=0;e<d.length;e++)this.jv+=d[e]+" ";this.as=a.getParameter(a.MAX_TEXTURE_SIZE);c["gl.max_texture_size"]=this.as;this.zC=a.getParameter(a.MAX_COMBINED_TEXTURE_IMAGE_UNITS);c["gl.max_texture_units"]=this.zC;this.WD=this.Zo("GL_IMG_texture_compression_pvrtc");c["gl.supports_PVRTC"]=this.WD;this.Zw=!1;c["gl.supports_NPOT"]=this.Zw;this.UD=this.Zo("GL_IMG_texture_format_BGRA888");c["gl.supports_BGRA8888"]=this.UD;this.VD=this.Zo("GL_EXT_discard_framebuffer");c["gl.supports_discard_framebuffer"]=this.VD;
this.XD=this.Zo("vertex_array_object");c["gl.supports_vertex_array_object"]=this.XD;b.$o()}},Ffa:function(a){this.po||this.Sr();var c=b.V.Fd(a);if(!c)throw"Please load the resource first : "+a;b.assert(c,b.e.MZ,a);if(c=c.data)for(var d in c)this.Ls[d]=c[d];else b.log(b.e.LZ,a)}};b.B.uz=function(){b.n6=b.ja.extend({wka:function(){}});var a=b.Wa.prototype;a.bn=function(a){var d=this.R;this.MP();var e=this.lh,f=e.se.x/e.qa,e=e.se.y/e.Ra;switch(a){case b.Wa.GS:b.Ei(b.Si);b.vp();f=new b.ca;b.OF(f,0,d.width,0,d.height,-1024,1024);b.wp(f);b.Ei(b.Ri);b.vp();break;case b.Wa.OH:var g=this.lt(),h=new b.ca,k=new b.ca;b.Ei(b.Si);b.vp();b.L1(h,d.width/d.height,2*g);b.wp(h);b.Ei(b.Ri);b.vp();g=b.yp(null,-f+d.width/2,-e+d.height/2,g);b.mO(k,g,b.yp(null,-f+d.width/2,-e+d.height/2,0),b.yp(null,
0,1,0));b.wp(k);break;case b.Wa.HS:break;default:b.log(b.e.cR)}this.si=a;b.ra.dispatchEvent(this.Uv);b.AP()};a.mP=function(a){var d=b.k;a?(d.clearDepth(1),d.enable(d.DEPTH_TEST),d.depthFunc(d.LEQUAL)):d.disable(d.DEPTH_TEST)};a.BG=function(a){this.R.width=b.Ya.width;this.R.height=b.Ya.height;this.lh=a||b.view;a=b.ap;a.E_();a.h_();this.Un();this.sP();b.ra&&b.ra.Id(!0)};a.rk=function(){var a=b.k;a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT)};a.kB=function(){b.Qm()};a.eB=function(){b.Pm()};a.Un=function(){if(!b.Wh)this.DV();
else if(null!=b.Wa.uK&&!1!=b.Wa.uK){var a=new b.da;a.sd(b.Wa.ho);a.Nb();var d=b.view.eF().height/320;0===d&&(d=this.R.height/320);var e=new b.Wh;e.uD(!0);e.td("00.0",a,12,32,".");e.scale=d;this.Ef=e;e=new b.Wh;e.uD(!0);e.td("0.000",a,12,32,".");e.scale=d;this.Ff=e;e=new b.Wh;e.uD(!0);e.td("000",a,12,32,".");e.scale=d;this.If=e;a=b.sz;this.If.P(a.x,34*d+a.y);this.Ff.P(a.x,17*d+a.y);this.Ef.P(a)}};a.DV=function(){var a=0,a=this.R.width>this.R.height?0|this.R.height/320*24:0|this.R.width/320*24;this.Ef=
b.$.create("000.0","Arial",a);this.Ff=b.$.create("0.000","Arial",a);this.If=b.$.create("0000","Arial",a);a=b.sz;this.If.P(this.If.width/2+a.x,5*this.If.height/2+a.y);this.Ff.P(this.Ff.width/2+a.x,3*this.Ff.height/2+a.y);this.Ef.P(this.Ef.width/2+a.x,this.Ef.height/2+a.y)};a.NZ=function(a){var d=new b.ca;b.vH(d);var e=new b.ca;b.K1(e,d);var f=this.lh.eF(),g=new b.xb;b.wO(g,new b.xb(2*a.x/f.width-1,1-2*a.y/f.height,d.c[14]/d.c[15]),e);return C(g.x,g.y)};a.PZ=function(a){var d=new b.ca;b.vH(d);var e=
new b.xb;b.wO(e,new b.xb(a.x,a.y,0),d);a=this.lh.eF();return C(a.width*(0.5*e.x+0.5),a.height*(0.5*-e.y+0.5))};a.jt=function(){return this.lh.jt()};a.rF=function(){return this.lh.rF()};a.lt=function(){return this.R.height/1.1566};a.MP=function(){var a=this.lh;if(a){var d=this.R;a.q4(-a.se.x/a.qa,-a.se.y/a.Ra,d.width,d.height)}};a.Kba=function(){return this.lh};a.aca=function(){return this.si};a.o3=function(){b.Ih(b.hc,b.gc)};a.sP=function(){this.o3();this.mP(!1);this.bn(this.si);b.k.clearColor(0,
0,0,1)}};b.$f=0;b.vH=function(a){var c=new b.ca;b.gy(b.Si,c);var d=new b.ca;b.gy(b.Ri,d);b.Fi(a,c,d)};
b.Wa=b.ja.extend({v8:!1,ds:!1,lc:!1,Cw:!1,Mk:!1,pr:0,DC:0,si:0,Dn:0,dh:1,Dr:!1,tk:0,RB:0,Ef:null,Ff:null,If:null,R:null,Gk:null,ki:null,sw:null,lh:null,vi:null,aD:null,cd:null,Ud:0,bx:0,nD:0,j8:null,Tf:null,vg:null,Uv:null,LB:null,NB:null,MB:null,ctor:function(){var a=this;a.Gk=Date.now();b.ra.vE(b.Ic.kq,function(){a.Gk=Date.now()})},F:function(){this.DC=this.pr=1/b.TZ;this.vi=[];this.si=b.Wa.IS;this.aD=null;this.RB=this.Dn=0;this.Dr=!1;this.bx=this.Ud=0;this.Gk=Date.now();this.Cw=this.lc=!1;this.R=
H(0,0);this.lh=null;this.dh=1;this.Tf=new b.Sq;this.vg=b.ZG?new b.ZG:null;this.Tf.sG(this.vg,b.Sq.Nu,!1);this.LB=new b.Pi(b.Wa.jR);this.LB.setUserData(this);this.NB=new b.Pi(b.Wa.lR);this.NB.setUserData(this);this.MB=new b.Pi(b.Wa.kR);this.MB.setUserData(this);this.Uv=new b.Pi(b.Wa.mR);this.Uv.setUserData(this);return!0},DZ:function(){var a=Date.now();this.ds?(this.tk=0,this.ds=!1):this.tk=(a-this.Gk)/1E3;0<b.Ic.Pe[b.Ic.Yg.bt]&&0.2<this.tk&&(this.tk=1/60);this.Gk=a},f_:function(){this.DZ();this.lc||
(this.Tf.update(this.tk),b.ra.dispatchEvent(this.MB));this.rk();this.ki&&this.O3();this.kB&&this.kB();this.cd&&(this.cd.T(),b.ra.dispatchEvent(this.NB));this.sw&&this.sw.T();this.Dr&&this.CY();this.eB&&this.eB();b.ra.dispatchEvent(this.LB);this.bx++;this.Dr&&this.iV()},kB:null,eB:null,end:function(){this.Cw=!0},Faa:function(){return this.dh},Eba:function(){return this.sw},Tca:function(){return this.R},kt:function(){return H(this.R.width*this.dh,this.R.height*this.dh)},pause:function(){this.lc||(this.DC=
this.pr,this.kP(0.25),this.lc=!0)},Gga:function(){b.assert(this.cd,b.e.$Q);this.vi.pop();var a=this.vi.length;0==a?this.end():(this.Mk=!0,this.ki=this.vi[a-1])},L2:function(){b.kx.rk();b.kg.rk();b.Ba.rk()},M2:function(){this.cl().fz();b.ra&&b.ra.Id(!1);this.cd&&(this.cd.bg(),this.cd.ub(),this.cd.Oe());this.ki=this.cd=null;this.vi.length=0;this.VP();this.L2();b.$o()},N2:function(a){b.assert(a,b.e.pH);this.Mk=!1;this.vi.push(a);this.ki=a},ll:function(a){b.assert(a,b.e.pH);if(this.cd){var c=this.vi.length;
0===c?(this.Mk=!0,this.vi[c]=a):(this.Mk=!0,this.vi[c-1]=a);this.ki=a}else this.N2(a),this.TP()},Np:function(){this.lc&&(this.kP(this.DC),(this.Gk=Date.now())||b.log(b.e.bR),this.lc=!1,this.tk=0)},aia:function(a){a!=this.dh&&(this.dh=a,this.Un())},dia:function(){},Iia:function(a){this.ds=a},O3:function(){var a=!1,c=!1;b.va&&(a=this.cd?this.cd instanceof b.va:!1,c=this.ki?this.ki instanceof b.va:!1);if(!c){if(c=this.cd)c.bg(),c.ub();this.Mk&&c&&c.Oe()}this.cd=this.ki;this.ki=null;a||null==this.cd||
(this.cd.ba(),this.cd.Mh())},Kia:function(a){this.sw=a},O_:function(){return this.aD},x3:function(a){this.aD=a},CY:function(){this.Ud++;this.Dn+=this.tk;this.Ef&&this.Ff&&this.If?(this.Dn>b.XQ&&(this.Ff.string=this.nD.toFixed(3),this.RB=this.Ud/this.Dn,this.Dn=this.Ud=0,this.Ef.string=this.RB.toFixed(1),this.If.string=(0|b.$f).toString()),this.Ef.T(),this.Ff.T(),this.If.T()):this.Un();b.$f=0},Dda:function(){return this.Mk},hca:function(){return this.cd},qaa:function(){return this.pr},qda:function(){return this.Dr},
A3:function(a){this.Dr=a},mca:function(){return this.nD},vda:function(){return this.ds},xda:function(){return this.lc},Hca:function(){return this.bx},Hga:function(){this.G2(1)},G2:function(a){b.assert(this.cd,b.e.aR);var c=this.vi,d=c.length;if(0==d)this.end();else if(!(a>d)){for(;d>a;){var e=c.pop();e.running&&(e.bg(),e.ub());e.Oe();d--}this.ki=c[c.length-1];this.Mk=!1}},cl:function(){return this.Tf},GP:function(a){this.Tf!=a&&(this.Tf=a)},Bx:function(){return this.vg},jP:function(a){this.vg!=a&&
(this.vg=a)},Laa:function(){return this.tk},Un:null,iV:function(){this.nD=(Date.now()-this.Gk)/1E3}});b.Wa.mR="director_projection_changed";b.Wa.jR="director_after_draw";b.Wa.lR="director_after_visit";b.Wa.kR="director_after_update";b.dR=b.Wa.extend({by:!1,TP:function(){this.ds=!0;this.by=!1},BO:function(){this.Cw?(this.Cw=!1,this.M2()):this.by||this.f_()},VP:function(){this.by=!0},kP:function(a){this.pr=a;this.by||(this.VP(),this.TP())}});b.Wa.NG=null;b.Wa.gN=!0;
b.Wa.ZB=function(){b.Wa.gN&&(b.Wa.gN=!1,b.Wa.NG=new b.dR,b.Wa.NG.F());return b.Wa.NG};b.TZ=60;b.Wa.GS=0;b.Wa.OH=1;b.Wa.HS=3;b.Wa.IS=b.Wa.OH;
b.A===b.Da?(n=b.Wa.prototype,n.bn=function(a){this.si=a;b.ra.dispatchEvent(this.Uv)},n.mP=function(){},n.BG=function(a){this.R.width=b.Ya.width;this.R.height=b.Ya.height;this.lh=a||b.view;b.ra&&b.ra.Id(!0)},n.rk=function(){var a=this.lh.se;b.k.clearRect(-a.x,a.y,a.width,-a.height)},n.Un=function(){var a=0,a=this.R.width>this.R.height?0|this.R.height/320*24:0|this.R.width/320*24;this.Ef=b.$.create("000.0","Arial",a);this.Ff=b.$.create("0.000","Arial",a);this.If=b.$.create("0000","Arial",a);a=b.sz;
this.If.P(this.If.width/2+a.x,5*this.If.height/2+a.y);this.Ff.P(this.Ff.width/2+a.x,3*this.Ff.height/2+a.y);this.Ef.P(this.Ef.width/2+a.x,this.Ef.height/2+a.y)},n.jt=function(){return this.R},n.rF=function(){return C(0,0)}):(b.Wa.ho=new Image,b.Ja(b.Wa.ho,"load",function(){b.Wa.uK=!0}),b.ho&&(b.Wa.ho.src=b.ho),b.assert("function"===typeof b.B.uz,b.e.Nc,"CCDirectorWebGL.js"),b.B.uz(),delete b.B.uz);b.iq=b.ja.extend({Hr:null,Ir:null,Jr:null,Nn:null,On:null,Pn:null,Hs:null,Is:null,Js:null,jb:null,pw:null,ctor:function(){this.pw=new b.ca;this.restore()},description:function(){return"\x3cCCCamera | center \x3d("+this.Nn+","+this.On+","+this.Pn+")\x3e"},nP:function(a){this.jb=a},IF:function(){return this.jb},restore:function(){this.Hr=this.Ir=0;this.Jr=b.iq.lt();this.Hs=this.Nn=this.On=this.Pn=0;this.Is=1;this.Js=0;b.Rm(this.pw);this.jb=!1},xt:function(){if(this.jb){var a=new b.xb,c=new b.xb,d=new b.xb;
b.yp(a,this.Hr,this.Ir,this.Jr);b.yp(c,this.Nn,this.On,this.Pn);b.yp(d,this.Hs,this.Is,this.Js);b.mO(this.pw,a,c,d);this.jb=!1}b.wp(this.pw)},kia:function(a,c,d){this.rP(a,c,d)},rP:function(a,c,d){this.Hr=a;this.Ir=c;this.Jr=d;this.jb=!0},Uha:function(a,c,d){this.t3(a,c,d)},t3:function(a,c,d){this.Nn=a;this.On=c;this.Pn=d;this.jb=!0},Kja:function(a,c,d){this.m4(a,c,d)},m4:function(a,c,d){this.Hs=a;this.Is=c;this.Js=d;this.jb=!0},aba:function(){return{x:this.Hr,y:this.Ir,z:this.Jr}},sN:function(){return{x:this.Hr,
y:this.Ir,z:this.Jr}},yaa:function(){return{x:this.Nn,y:this.On,z:this.Pn}},nN:function(){return{x:this.Nn,y:this.On,z:this.Pn}},Mca:function(){return{x:this.Hs,y:this.Is,z:this.Js}},L0:function(){return{x:this.Hs,y:this.Is,z:this.Js}},W7:function(){}});b.iq.lt=function(){return b.Hu};b.g7=b.Nu+1;b.Uo=function(a,c){if(a&&0<a.length)for(var d=0;d<a.length;d++)if(!(a[d]instanceof c))return b.log(b.e.Uo),!1;return!0};b.Ne=function(a,c){for(var d=0,e=a.length;d<e;d++)if(a[d]==c){a.splice(d,1);break}};b.k9=function(a,c){for(var d=0,e=c.length;d<e;d++)b.Ne(a,c[d])};b.j9=function(a,c,d){a.splice.apply(a,[d,0].concat(c));return a};b.BH=function(a,c,d){this.next=null;this.target=a;this.K2=c;this.paused=d;this.uy=!1};b.wH=function(a,c,d){this.list=a;this.Im=c;this.target=d;this.Qx=null};
b.yR=function(a,c){this.Mi=null;this.target=a;this.Yp=0;this.at=this.$s=null;this.paused=c;this.Qx=null};
b.uI=b.ja.extend({ej:0,ee:null,pe:null,kb:0,IL:!1,ix:!1,Mo:0,fD:0,Jv:0,mba:function(){return this.ej},setInterval:function(a){this.ej=a},xaa:function(){return this.ee},ctor:function(a,c,d,e,f){this.pe=a;this.ee=c;this.kb=-1;this.ej=d||0;this.Jv=f||0;this.ix=0<this.Jv;this.fD=null==e?b.Nq:e;this.IL=this.fD==b.Nq},HB:function(){if("string"==typeof this.ee)this.pe[this.ee](this.kb);else this.ee.call(this.pe,this.kb)},update:function(a){if(-1==this.kb)this.Mo=this.kb=0;else{var c=this.pe,d=this.ee;this.kb+=
a;this.IL&&!this.ix?this.kb>=this.ej&&(c&&d&&this.HB(),this.kb=0):(this.ix?this.kb>=this.Jv&&(c&&d&&this.HB(),this.kb-=this.Jv,this.Mo+=1,this.ix=!1):this.kb>=this.ej&&(c&&d&&this.HB(),this.kb=0,this.Mo+=1),this.Mo>this.fD&&b.D.cl().fQ(c,d))}}});
b.Sq=b.ja.extend({Fs:1,tm:null,cj:null,tv:null,bj:null,b8:null,Pc:null,ei:!1,cx:!1,ctor:function(){this.Fs=1;this.tm=[[],[],[]];this.cj={};this.tv=[];this.bj={};this.qr=[];this.Pc=null;this.cx=this.ei=!1},eD:function(a){delete this.bj[a.target.wa];b.Ne(this.qr,a);a.uI=null;a.target=null},zL:function(a){if(a=this.cj[a.target.wa])b.Ne(a.list,a.Im),delete this.cj[a.target.wa],b.Ne(this.tv,a),a.Im=null,a.target=null},oL:function(a,c,d,e){e=new b.BH(c,d,e);if(a){for(var f=a.length-1,g=0;g<=f&&!(d<a[g].K2);g++);
a.splice(g,0,e)}else a=[],a.push(e);d=new b.wH(a,e,c);this.tv.push(d);this.cj[c.wa]=d;return a},$U:function(a,c,d){d=new b.BH(c,0,d);a.push(d);a=new b.wH(a,d,c);this.tv.push(a);this.cj[c.wa]=a},vja:function(a){this.Fs=a},Fca:function(){return this.Fs},update:function(a){var c=this.tm,d=this.qr,e,f,g;this.cx=!0;1!=this.Fs&&(a*=this.Fs);f=0;for(g=c.length;f<g&&0<=f;f++)for(var h=this.tm[f],k=0,m=h.length;k<m;k++)e=h[k],e.paused||e.uy||e.target.update(a);f=0;for(g=d.length;f<g;f++){e=d[f];if(!e)break;
this.Pc=e;this.ei=!1;if(!e.paused)for(e.Yp=0;e.Yp<e.Mi.length;e.Yp++)e.$s=e.Mi[e.Yp],e.at=!1,e.$s.update(a),e.$s=null;this.ei&&0==e.Mi.length&&(this.eD(e),f--)}f=0;for(g=c.length;f<g;f++)for(h=this.tm[f],k=0,m=h.length;k<m;){e=h[k];if(!e)break;e.uy?this.zL(e):k++}this.cx=!1;this.Pc=null},l3:function(a,c,d,e,f,g){b.assert(c,b.e.iT);b.assert(a,b.e.jT);d=d||0;e=null==e?b.Nq:e;f=f||0;g=g||!1;var h=this.bj[a.wa];h||(h=new b.yR(a,g),this.qr.push(h),this.bj[a.wa]=h);if(null==h.Mi)h.Mi=[];else for(var k=
0;k<h.Mi.length;k++)if(g=h.Mi[k],c==g.ee){b.log(b.e.hT,g.ej.toFixed(4),d.toFixed(4));g.ej=d;return}g=new b.uI(a,c,d,e,f);h.Mi.push(g)},sG:function(a,c,d){if(null!==a){var e=this.tm,f=this.cj[a.wa];f?f.Im.uy=!1:0==c?this.$U(e[1],a,d):0>c?e[0]=this.oL(e[0],a,c,d):e[2]=this.oL(e[2],a,c,d)}},fQ:function(a,c){if(null!=a&&null!=c){var d=this.bj[a.wa];if(d)for(var e=d.Mi,f=0,g=e.length;f<g;f++){var h=e[f];if(c==h.ee){h!=d.$s||d.at||(d.at=!0);e.splice(f,1);d.Yp>=f&&d.Yp--;0==e.length&&(this.Pc==d?this.ei=
!0:this.eD(d));break}}}},gu:function(a){null!=a&&(a=this.cj[a.wa],null!=a&&(this.cx?a.Im.uy=!0:this.zL(a.Im)))},eQ:function(a){if(null!=a){var c=this.bj[a.wa];if(c){var d=c.Mi;!c.at&&0<=d.indexOf(c.$s)&&(c.at=!0);d.length=0;this.Pc==c?this.ei=!0:this.eD(c)}this.gu(a)}},fz:function(){this.X4(b.Sq.Nu)},X4:function(a){for(var c=this.qr,d=this.tm,e=0,f=c.length;e<f;e++)this.eQ(c[e].target);for(e=2;0<=e;e--)if(!(1==e&&0<a||0==e&&0<=a))for(var c=d[e],f=0,g=c.length;f<g;f++)this.gu(c[f].target)},Bga:function(){return this.z2(b.Sq.Nu)},
z2:function(){for(var a=[],c,d=this.qr,e=this.tm,f=0,g=d.length;f<g;f++)if(c=d[f])c.paused=!0,a.push(c.target);f=0;for(g=e.length;f<g;f++)for(var d=e[f],h=0,k=d.length;h<k;h++)if(c=d[h])c.paused=!0,a.push(c.target);return a},j3:function(a){if(a)for(var c=0;c<a.length;c++)this.Mj(a[c])},Jp:function(a){b.assert(a,b.e.fT);var c=this.bj[a.wa];c&&(c.paused=!0);(a=this.cj[a.wa])&&(a.Im.paused=!0)},Mj:function(a){b.assert(a,b.e.gT);var c=this.bj[a.wa];c&&(c.paused=!1);(a=this.cj[a.wa])&&(a.Im.paused=!1)},
Gda:function(a){b.assert(a,b.e.eT);return(a=this.bj[a.wa])?a.paused:!1}});b.Sq.Nu=-2147483648;b.KH=2*Math.PI;
b.qH=b.ja.extend({qB:[],k:null,ctor:function(a){this.k=a},c_:function(a,c){c||(c=1);var d=b.view.qa,e=C(a.x*d,a.y*b.view.Ra);this.k.beginPath();this.k.arc(e.x,-e.y,c*d,0,2*Math.PI,!1);this.k.closePath();this.k.fill()},d_:function(a,c,d){if(null!=a){d||(d=1);c=this.k;var e=b.view.qa,f=b.view.Ra;c.beginPath();for(var g=0,h=a.length;g<h;g++)c.arc(a[g].x*e,-a[g].y*f,d*e,0,2*Math.PI,!1);c.closePath();c.fill()}},Aj:function(a,c){var d=this.k,e=b.view.qa,f=b.view.Ra;d.beginPath();d.moveTo(a.x*e,-a.y*f);
d.lineTo(c.x*e,-c.y*f);d.closePath();d.stroke()},XE:function(a,c){this.Aj(C(a.x,a.y),C(c.x,a.y));this.Aj(C(c.x,a.y),C(c.x,c.y));this.Aj(C(c.x,c.y),C(a.x,c.y));this.Aj(C(a.x,c.y),C(a.x,a.y))},aN:function(a,c,d){this.ZE([a,C(c.x,a.y),c,C(a.x,c.y)],4,d)},ae:function(a,c,d,e){e=e||!1;if(null!=a){if(3>a.length)throw Error("Polygon's point must greater than 2");var f=a[0];c=this.k;var g=b.view.qa,h=b.view.Ra;c.beginPath();c.moveTo(f.x*g,-f.y*h);for(var f=1,k=a.length;f<k;f++)c.lineTo(a[f].x*g,-a[f].y*h);
d&&c.closePath();e?c.fill():c.stroke()}},ZE:function(a,c,d){this.Rp(d.r,d.g,d.b,d.a);this.ae(a,c,!0,!0)},TE:function(a,c,d,e,f){f=f||!1;e=this.k;var g=b.view.qa,h=b.view.Ra;e.beginPath();e.arc(0|a.x*g,0|-(a.y*h),c*g,-d,-(d-2*Math.PI),!1);f&&e.lineTo(0|a.x*g,0|-(a.y*h));e.stroke()},WE:function(a,c,d,e){for(var f=this.qB,g=f.length=0,h=0;h<e;h++)f.push(C(Math.pow(1-g,2)*a.x+2*(1-g)*g*c.x+g*g*d.x,Math.pow(1-g,2)*a.y+2*(1-g)*g*c.y+g*g*d.y)),g+=1/e;f.push(C(d.x,d.y));this.ae(f,e+1,!1,!1)},UE:function(a,
c,d,e,f){for(var g=this.qB,h=g.length=0,k=0;k<f;k++)g.push(C(Math.pow(1-h,3)*a.x+3*Math.pow(1-h,2)*h*c.x+3*(1-h)*h*h*d.x+h*h*h*e.x,Math.pow(1-h,3)*a.y+3*Math.pow(1-h,2)*h*c.y+3*(1-h)*h*h*d.y+h*h*h*e.y)),h+=1/f;g.push(C(e.x,e.y));this.ae(g,f+1,!1,!1)},SE:function(a,c){this.Fm(a,0.5,c)},Fm:function(a,c,d){b.k.strokeStyle="rgba(255,255,255,1)";var e=this.qB;e.length=0;for(var f,g,h=1/a.length,k=0;k<d+1;k++)g=k/d,1==g?(f=a.length-1,g=1):(f=0|g/h,g=(g-h*f)/h),f=b.SQ(b.fd(a,f-1),b.fd(a,f-0),b.fd(a,f+1),
b.fd(a,f+2),c,g),e.push(f);this.ae(e,d+1,!1,!1)},drawImage:function(a,c,d,e,f){switch(arguments.length){case 2:this.k.drawImage(a,c.x,-(c.y+a.height));break;case 3:this.k.drawImage(a,c.x,-(c.y+d.height),d.width,d.height);break;case 5:this.k.drawImage(a,c.x,c.y,d.width,d.height,e.x,-(e.y+f.height),f.width,f.height);break;default:throw Error("Argument must be non-nil");}},g_:function(a,c,d){a=a||this.k;c*=b.view.qa;d="rgba("+(0|d.r)+","+(0|d.g)+","+(0|d.b);a.fillStyle=d+",1)";var e=c/10;a.beginPath();
a.moveTo(-c,c);a.lineTo(0,e);a.lineTo(c,c);a.lineTo(e,0);a.lineTo(c,-c);a.lineTo(0,-e);a.lineTo(-c,-c);a.lineTo(-e,0);a.lineTo(-c,c);a.closePath();a.fill();var f=a.createRadialGradient(0,0,e,0,0,c);f.addColorStop(0,d+", 1)");f.addColorStop(0.3,d+", 0.8)");f.addColorStop(1,d+", 0.0)");a.fillStyle=f;a.beginPath();a.arc(0,0,c-e,0,b.KH,!1);a.closePath();a.fill()},$Z:function(a,c,d){a=a||this.k;c*=b.view.qa;d="rgba("+(0|d.r)+","+(0|d.g)+","+(0|d.b);var e=a.createRadialGradient(0,0,c/10,0,0,c);e.addColorStop(0,
d+", 1)");e.addColorStop(0.3,d+", 0.8)");e.addColorStop(0.6,d+", 0.4)");e.addColorStop(1,d+", 0.0)");a.fillStyle=e;a.beginPath();a.arc(0,0,c,0,b.KH,!1);a.closePath();a.fill()},fillText:function(a,c,d){this.k.fillText(a,c,-d)},Rp:function(a,c,d,e){this.k.fillStyle="rgba("+a+","+c+","+d+","+e/255+")";this.k.strokeStyle="rgba("+a+","+c+","+d+","+e/255+")"},S3:function(){},zG:function(a){this.k.lineWidth=a*b.view.qa}});b.gR=b.ja.extend({k:null,Tr:!1,yc:null,ci:-1,ef:null,QC:-1,PC:-1,ctor:function(a){null==a&&(a=b.k);if(!a instanceof WebGLRenderingContext)throw"Can't initialise DrawingPrimitiveWebGL. context need is WebGLRenderingContext";this.k=a;this.ef=new Float32Array([1,1,1,1])},Fj:function(){this.Tr||(this.yc=b.Ld.oc(b.oA),this.ci=this.k.getUniformLocation(this.yc.Nm(),"u_color"),this.QC=this.k.getUniformLocation(this.yc.Nm(),"u_pointSize"),this.Tr=!0)},e$:function(){this.Tr=!1},c_:function(a){this.Fj();var c=
this.k;this.yc.Mc();this.yc.$e();b.Jc(b.Pd);c.uniform4fv(this.ci,this.ef);this.yc.Vt(this.QC,this.PC);var d=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,d);c.bufferData(c.ARRAY_BUFFER,new Float32Array([a.x,a.y]),c.STATIC_DRAW);c.vertexAttribPointer(b.sb,2,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,0,1);c.deleteBuffer(d);b.ag()},d_:function(a){if(a&&0!=a.length){this.Fj();var c=this.k;this.yc.Mc();this.yc.$e();b.Jc(b.Pd);c.uniform4fv(this.ci,this.ef);this.yc.Vt(this.QC,this.PC);var d=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,
d);c.bufferData(c.ARRAY_BUFFER,this.Bw(a),c.STATIC_DRAW);c.vertexAttribPointer(b.sb,2,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,0,a.length);c.deleteBuffer(d);b.ag()}},Bw:function(a){for(var c=new Float32Array(2*a.length),d=0;d<a.length;d++)c[2*d]=a[d].x,c[2*d+1]=a[d].y;return c},Aj:function(a,c){this.Fj();var d=this.k;this.yc.Mc();this.yc.$e();b.Jc(b.Pd);d.uniform4fv(this.ci,this.ef);var e=d.createBuffer();d.bindBuffer(d.ARRAY_BUFFER,e);d.bufferData(d.ARRAY_BUFFER,this.Bw([a,c]),d.STATIC_DRAW);d.vertexAttribPointer(b.sb,
2,d.FLOAT,!1,0,0);d.drawArrays(d.LINES,0,2);d.deleteBuffer(e);b.ag()},XE:function(a,c){this.Aj(C(a.x,a.y),C(c.x,a.y));this.Aj(C(c.x,a.y),C(c.x,c.y));this.Aj(C(c.x,c.y),C(a.x,c.y));this.Aj(C(a.x,c.y),C(a.x,a.y))},aN:function(a,c,d){this.ZE([a,C(c.x,a.y),c,C(a.x,c.y)],4,d)},ae:function(a,c,d){this.Fj();c=this.k;this.yc.Mc();this.yc.$e();b.Jc(b.Pd);c.uniform4fv(this.ci,this.ef);var e=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,e);c.bufferData(c.ARRAY_BUFFER,this.Bw(a),c.STATIC_DRAW);c.vertexAttribPointer(b.sb,
2,c.FLOAT,!1,0,0);d?c.drawArrays(c.LINE_LOOP,0,a.length):c.drawArrays(c.LINE_STRIP,0,a.length);c.deleteBuffer(e);b.ag()},ZE:function(a,c,d){this.Fj();d&&this.Rp(d.r,d.g,d.b,d.a);c=this.k;this.yc.Mc();this.yc.$e();b.Jc(b.Pd);c.uniform4fv(this.ci,this.ef);d=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,d);c.bufferData(c.ARRAY_BUFFER,this.Bw(a),c.STATIC_DRAW);c.vertexAttribPointer(b.sb,2,c.FLOAT,!1,0,0);c.drawArrays(c.TRIANGLE_FAN,0,a.length);c.deleteBuffer(d);b.ag()},TE:function(a,c,d,e,f){this.Fj();
var g=1;f&&g++;var h=2*Math.PI/e;if(f=new Float32Array(2*(e+2))){for(var k=0;k<=e;k++){var m=k*h,p=c*Math.sin(m+d)+a.y;f[2*k]=c*Math.cos(m+d)+a.x;f[2*k+1]=p}f[2*(e+1)]=a.x;f[2*(e+1)+1]=a.y;a=this.k;this.yc.Mc();this.yc.$e();b.Jc(b.Pd);a.uniform4fv(this.ci,this.ef);c=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,c);a.bufferData(a.ARRAY_BUFFER,f,a.STATIC_DRAW);a.vertexAttribPointer(b.sb,2,a.FLOAT,!1,0,0);a.drawArrays(a.LINE_STRIP,0,e+g);a.deleteBuffer(c);b.ag()}},WE:function(a,c,d,e){this.Fj();for(var f=
new Float32Array(2*(e+1)),g=0,h=0;h<e;h++)f[2*h]=Math.pow(1-g,2)*a.x+2*(1-g)*g*c.x+g*g*d.x,f[2*h+1]=Math.pow(1-g,2)*a.y+2*(1-g)*g*c.y+g*g*d.y,g+=1/e;f[2*e]=d.x;f[2*e+1]=d.y;a=this.k;this.yc.Mc();this.yc.$e();b.Jc(b.Pd);a.uniform4fv(this.ci,this.ef);c=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,c);a.bufferData(a.ARRAY_BUFFER,f,a.STATIC_DRAW);a.vertexAttribPointer(b.sb,2,a.FLOAT,!1,0,0);a.drawArrays(a.LINE_STRIP,0,e+1);a.deleteBuffer(c);b.ag()},UE:function(a,c,d,e,f){this.Fj();for(var g=new Float32Array(2*
(f+1)),h=0,k=0;k<f;k++)g[2*k]=Math.pow(1-h,3)*a.x+3*Math.pow(1-h,2)*h*c.x+3*(1-h)*h*h*d.x+h*h*h*e.x,g[2*k+1]=Math.pow(1-h,3)*a.y+3*Math.pow(1-h,2)*h*c.y+3*(1-h)*h*h*d.y+h*h*h*e.y,h+=1/f;g[2*f]=e.x;g[2*f+1]=e.y;a=this.k;this.yc.Mc();this.yc.$e();b.Jc(b.Pd);a.uniform4fv(this.ci,this.ef);c=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,c);a.bufferData(a.ARRAY_BUFFER,g,a.STATIC_DRAW);a.vertexAttribPointer(b.sb,2,a.FLOAT,!1,0,0);a.drawArrays(a.LINE_STRIP,0,f+1);a.deleteBuffer(c);b.ag()},SE:function(a,c){this.Fm(a,
0.5,c)},Fm:function(a,c,d){this.Fj();for(var e=new Float32Array(2*(d+1)),f,g,h=1/a.length,k=0;k<d+1;k++)g=k/d,1==g?(f=a.length-1,g=1):(f=0|g/h,g=(g-h*f)/h),f=b.SQ(b.fd(a,f-1),b.fd(a,f),b.fd(a,f+1),b.fd(a,f+2),c,g),e[2*k]=f.x,e[2*k+1]=f.y;a=this.k;this.yc.Mc();this.yc.$e();b.Jc(b.Pd);a.uniform4fv(this.ci,this.ef);c=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,c);a.bufferData(a.ARRAY_BUFFER,e,a.STATIC_DRAW);a.vertexAttribPointer(b.sb,2,a.FLOAT,!1,0,0);a.drawArrays(a.LINE_STRIP,0,d+1);a.deleteBuffer(c);
b.ag()},Rp:function(a,c,d,e){this.ef[0]=a/255;this.ef[1]=c/255;this.ef[2]=d/255;this.ef[3]=e/255},S3:function(a){this.PC=a*b.pb()},zG:function(a){this.k.lineWidth&&this.k.lineWidth(a)}});b.B.UA=function(){var a=b.$.prototype;a.$a=b.Q.prototype.$a;a.pf=function(){this.nb=!0;var a=this.mm,d=this.nm;this.Ow="rgba(128,128,128,"+this.rj+")";this.Xv="rgba("+(0|d.r)+","+(0|d.g)+","+(0|d.b)+", 1)";this.Tw="rgba("+(0|a.r)+","+(0|a.g)+","+(0|a.b)+", 1)"};a.Pb=b.Q.prototype.Pb;a.Aa=b.Q.prototype.Aa;a.Mb=b.Q.prototype.Mb;a.CF=function(a,d){if(!b.Q.prototype.F.call(this))return!1;this.shaderProgram=b.Ld.oc(b.$.RU);this.fE(d,!1);this.string=a;return!0};a.Sy=function(a){var d=this.nm;if(d.r!=a.r||
d.g!=a.g||d.b!=a.b)d.r=a.r,d.g=a.g,d.b=a.b,this.pf(),this.nb=!0};a.Y=function(a){if(this.Ib&&""!=this.Ib){a=a||b.k;var d=this.L;d&&d.wc&&(this.Hb.Mc(),this.Hb.$e(),b.Ih(this.o.src,this.o.U),b.te(d),b.Jc(b.Kl),a.bindBuffer(a.ARRAY_BUFFER,this.Dw),this.Ge&&(a.bufferData(a.ARRAY_BUFFER,this.Ub.lx,a.STATIC_DRAW),this.Ge=!1),a.vertexAttribPointer(b.sb,3,a.FLOAT,!1,24,0),a.vertexAttribPointer(b.xd,2,a.FLOAT,!1,24,16),a.vertexAttribPointer(b.ze,4,a.UNSIGNED_BYTE,!0,24,12),a.drawArrays(a.TRIANGLE_STRIP,0,
4));if(1===b.$j)a=this.Ub,b.De.ae([C(a.M.i.x,a.M.i.y),C(a.G.i.x,a.G.i.y),C(a.N.i.x,a.N.i.y),C(a.K.i.x,a.K.i.y)],4,!0);else if(2===b.$j){a=this.PN().K8;var d=this.offsetX,e=this.offsetY;b.De.ae([C(d,e),C(d+a.width,e),C(d+a.width,e+a.height),C(d,e+a.height)],4,!0)}b.$f++}};a.hb=b.Q.prototype.hb};b.B.aA=function(){var a=b.$.prototype;b.f(a,"color",a.Qe,a.$a);b.f(a,"opacity",a.Re,a.Aa);b.f(a,"string",a.dl,a.Cc);b.f(a,"textAlign",a.$_,a.I3);b.f(a,"verticalAlign",a.P0,a.p4);b.f(a,"fontSize",a.gF,a.Uy);b.f(a,"fontName",a.fF,a.Ty);b.f(a,"font",a.fW,a.bY);b.f(a,"boundingWidth",a.XB,a.WX);b.f(a,"boundingHeight",a.cW,a.VX);b.f(a,"fillStyle",a.eW,a.Sy);b.f(a,"strokeStyle",a.AW,a.xY);b.f(a,"lineWidth",a.nW,a.fY);b.f(a,"shadowOffsetX",a.vW,a.nY);b.f(a,"shadowOffsetY",a.wW,a.oY);b.f(a,"shadowOpacity",
a.xW,a.pY);b.f(a,"shadowBlur",a.uW,a.mY)};b.$=b.Q.extend({jc:null,Fk:b.Vq,Yk:b.ir,$b:null,Sb:0,Ib:"",IC:null,uo:!1,eh:null,nd:!1,Dd:null,rj:0,Pk:0,Ow:null,Gg:!1,mm:null,uj:0,Tw:null,nm:null,Xv:null,RD:0,SD:0,nb:!1,kw:null,lw:null,WK:null,tb:"LabelTTF",ctor:function(a,c,d,e,f,g){b.Q.prototype.ctor.call(this);this.jc=H(0,0);this.Fk=b.Xu;this.Yk=b.ir;this.Qa=!1;this.eh="";this.$b="Arial";this.nd=this.uo=!1;this.Dd=C(0,0);this.Pk=this.rj=0;this.Ow="rgba(128, 128, 128, 0.5)";this.Gg=!1;this.mm=b.color(255,255,255,255);this.uj=0;this.Tw="";this.nm=
b.color(255,255,255,255);this.Xv="rgba(255,255,255,1)";this.SD=this.RD=0;this.nb=!1;this.WK=[];this.pf();c&&c instanceof b.uH?this.CF(a,c):b.$.prototype.td.call(this,a,c,d,e,f,g)},F:function(){return this.td(" ",this.$b,this.Sb)},hX:function(){this.$B().font=this.eh},bs:function(a){return this.$B().measureText(a).width},mV:function(a,c){var d=this.bs(a),e=Math.floor(a.length*c/d),f=a.indexOf("\n");if(0.8*e>=f&&0<f)return f+1;if(d<c)return a.length;for(var d=!1,f=c+1,g=-1,h=e,k,m=b.$.oV,p=b.$.PX,r=
b.$.lV,s=a.substr(e);k=m.exec(s);){h+=k[0].length;f=this.bs(a.substr(0,h));if("\n"==k[2]&&f<c){d=!0;g=h;break}if(f>c){-1!=g&&(d=!0);break}g=h;s=a.substr(h)}if(d)return g;s=a.substr(0,e);for(g=e;k=p.exec(s);)if(g=k[1].length,s=k[1],f=this.bs(s),f<c){r.test(k[2])&&g++;break}return g||1},description:function(){return"\x3ccc.LabelTTF | FontName \x3d"+this.$b+" FontSize \x3d "+this.Sb.toFixed(1)+"\x3e"},$a:null,pf:null,Pb:null,Aa:null,Mb:null,vka:function(a){b.ia.prototype.Mb.call(this,a);this.pf()},dl:function(){return this.Ib},
$_:function(){return this.Fk},P0:function(){return this.Yk},Paa:function(){return H(this.jc.width,this.jc.height)},gF:function(){return this.Sb},fF:function(){return this.$b},td:function(a,c,d,e,f,g){a=a?a+"":"";d=d||16;e=e||H(0,d);f=f||b.Xu;g=g||b.ir;this.Qa=!1;this.jc=H(e.width,e.height);this.$b=c||"Arial";this.Fk=f;this.Yk=g;this.Sb=d;this.eh=this.Sb+"px '"+c+"'";this.gi=b.$.kr(c,this.Sb);this.string=a;this.pf();this.hx();this.nb=!1;return!0},CF:null,pja:function(a){a&&this.fE(a,!0)},zca:function(){return this.GX(!1)},
q_:function(a,c,d,e){d=d||0.5;!1===this.nd&&(this.nd=!0);var f=this.Dd;if(f&&f.x!=a||f.Me!=c)f.x=a,f.y=c;this.rj!=d&&(this.rj=d);this.pf();this.Pk!=e&&(this.Pk=e);this.nb=!0},vW:function(){return this.Dd.x},nY:function(a){!1===this.nd&&(this.nd=!0);this.Dd.x!=a&&(this.Dd.x=a,this.nb=!0)},wW:function(){return this.Dd.Me},oY:function(a){!1===this.nd&&(this.nd=!0);this.Dd.Me!=a&&(this.Dd.Me=a,this.nb=!0)},r8:function(){return C(this.Dd.x,this.Dd.y)},H8:function(a){!1===this.nd&&(this.nd=!0);if(this.Dd.x!=
a.x||this.Dd.y!=a.y)this.Dd.x=a.x,this.Dd.y=a.y,this.nb=!0},xW:function(){return this.rj},pY:function(a){!1===this.nd&&(this.nd=!0);this.rj!=a&&(this.rj=a,this.pf(),this.nb=!0)},uW:function(){return this.Pk},mY:function(a){!1===this.nd&&(this.nd=!0);this.Pk!=a&&(this.Pk=a,this.nb=!0)},V9:function(){this.nd&&(this.nd=!1,this.nb=!0)},r_:function(a,c){!1===this.Gg&&(this.Gg=!0);var d=this.mm;if(d.r!==a.r||d.g!==a.g||d.b!==a.b)d.r=a.r,d.g=a.g,d.b=a.b,this.pf();this.uj!==c&&(this.uj=c||0);this.nb=!0},
AW:function(){return this.mm},xY:function(a){!1===this.Gg&&(this.Gg=!0);var c=this.mm;if(c.r!==a.r||c.g!==a.g||c.b!==a.b)c.r=a.r,c.g=a.g,c.b=a.b,this.pf(),this.nb=!0},nW:function(){return this.uj},fY:function(a){!1===this.Gg&&(this.Gg=!0);this.uj!==a&&(this.uj=a||0,this.nb=!0)},W9:function(){this.Gg&&(this.Gg=!1,this.nb=!0)},Sy:null,eW:function(){return this.nm},fE:function(a,c){a.gaa?(this.jc.width=a.boundingWidth,this.jc.height=a.boundingHeight):(this.jc.width=0,this.jc.height=0);this.Fk=a.textAlign;
this.Yk=a.verticalAlign;this.$b=a.fontName;this.Sb=a.fontSize||12;this.eh=this.Sb+"px '"+this.$b+"'";this.gi=b.$.kr(this.$b,this.Sb);a.OP&&this.q_(a.shadowOffsetX,a.shadowOffsetY,a.shadowOpacity,a.shadowBlur);a.QG&&this.r_(a.strokeStyle,a.lineWidth);this.Sy(a.fillStyle);c&&this.hx()},GX:function(a){var c=new b.uH;a?(c.fontSize=this.Sb,c.boundingWidth=b.pb()*this.jc.width,c.boundingHeight=b.pb()*this.jc.height):(c.fontSize=this.Sb,c.boundingWidth=this.jc.width,c.boundingHeight=this.jc.height);c.fontName=
this.$b;c.textAlign=this.Fk;c.verticalAlign=this.Yk;if(this.Gg){c.QG=!0;var d=this.mm;c.strokeStyle=b.color(d.r,d.g,d.b);c.lineWidth=this.uj}else c.QG=!1;this.nd?(c.OP=!0,c.shadowBlur=this.Pk,c.shadowOpacity=this.rj,c.shadowOffsetX=(a?b.pb():1)*this.Dd.x,c.shadowOffsetY=(a?b.pb():1)*this.Dd.y):c.nd=!1;a=this.nm;c.fillStyle=b.color(a.r,a.g,a.b);return c},gi:18,Cc:function(a){a=String(a);this.IC!=a&&(this.IC=a+"",this.fx(),this.nb=!0)},fx:function(){this.Ib=this.IC},I3:function(a){a!==this.Fk&&(this.Fk=
a,this.nb=!0)},p4:function(a){a!=this.Yk&&(this.Yk=a,this.nb=!0)},gia:function(a){if(a.width!=this.jc.width||a.height!=this.jc.height)this.jc=a,this.fx(),this.nb=!0},XB:function(){return this.jc.width},WX:function(a){a!=this.jc.width&&(this.jc.width=a,this.fx(),this.nb=!0)},cW:function(){return this.jc.height},VX:function(a){a!=this.jc.height&&(this.jc.height=a,this.fx(),this.nb=!0)},Uy:function(a){this.Sb!==a&&(this.Sb=a,this.eh=a+"px '"+this.$b+"'",this.gi=b.$.kr(this.$b,a),this.nb=!0)},Ty:function(a){this.$b&&
this.$b!=a&&(this.$b=a,this.eh=this.Sb+"px '"+a+"'",this.gi=b.$.kr(a,this.Sb),this.nb=!0)},fW:function(){return this.eh},bY:function(a){var c=b.$.SV.exec(a);c&&(this.Sb=parseInt(c[1]),this.$b=c[2],this.eh=a,this.gi=b.$.kr(this.$b,this.Sb),this.nb=!0)},MV:function(a){if(a){var c=this.RD,d=this.SD,e=this.O.height-d,f=this.Yk,g=this.Fk,h=this.gi,k=this.uj;a.setTransform(1,0,0,1,0+0.5*c,e+0.5*d);a.font!=this.eh&&(a.font=this.eh);a.fillStyle=this.Xv;var m=d=0,p=this.Gg;p&&(a.lineWidth=2*k,a.strokeStyle=
this.Tw);this.nd&&(k=this.Dd,a.shadowColor=this.Ow,a.shadowOffsetX=k.x,a.shadowOffsetY=-k.y,a.shadowBlur=this.Pk);a.textBaseline=b.$.MY[f];a.textAlign=b.$.LY[g];c=this.O.width-c;d=g===b.Wq?d+c:g===b.Vq?d+c/2:d+0;if(this.uo)for(g=this.tj.length,f===b.bJ?m=h+e-h*g:f===b.HU&&(m=h/2+(e-h*g)/2),f=0;f<g;f++)c=this.tj[f],k=-e+h*f+m,p&&a.strokeText(c,d,k),a.fillText(c,d,k);else f!==b.bJ&&(m=f===b.ir?m-e:m-0.5*e),p&&a.strokeText(this.Ib,d,m),a.fillText(this.Ib,d,m)}},$B:function(){if(this.lw)return this.lw;
if(!this.kw){var a=b.Ob("canvas"),c=new b.da;c.sd(a);this.texture=c;this.kw=a}return this.lw=this.kw.getContext("2d")},gx:function(){var a=this.jc.width,c,d,e=this.WK;e.length=0;this.uo=!1;this.hX();if(0!==a){var f=this.Ib;this.tj=[];c=0;for(d=this.Ib.length;c<d;){var g=this.mV(f.substr(c),a);this.tj.push(f.substr(c,g));c+=g}}else for(this.tj=this.Ib.split("\n"),c=0,d=this.tj.length;c<d;c++)e.push(this.bs(this.tj[c]));0<this.tj.length&&(this.uo=!0);d=c=0;this.Gg&&(c=d=2*this.uj);this.nd&&(f=this.Dd,
c+=2*Math.abs(f.x),d+=2*Math.abs(f.y));a=0===a?this.uo?H(0|Math.max.apply(Math,e)+c,0|this.gi*this.tj.length+d):H(0|this.bs(this.Ib)+c,0|this.gi+d):0===this.jc.height?this.uo?H(0|a+c,0|this.gi*this.tj.length+d):H(0|a+c,0|this.gi+d):H(0|a+c,0|this.jc.height+d);this.be(a);this.RD=c;this.SD=d;e=this.Oc;this.ib.x=0.5*c+(a.width-c)*e.x;this.ib.y=0.5*d+(a.height-d)*e.y},Eh:function(){this.nb&&this.gx();return b.Q.prototype.Eh.call(this)},fh:function(){this.nb&&this.gx();return b.Q.prototype.fh.call(this)},
Dk:function(){this.nb&&this.gx();return b.Q.prototype.Dk.call(this)},hx:function(){var a=this.$B(),c=this.kw,d=this.O;if(0===this.Ib.length)return c.width=1,c.height=d.height,this.hb(O(0,0,1,d.height)),!0;a.font=this.eh;this.gx();var e=d.width,d=d.height,f=c.width==e&&c.height==d;c.width=e;c.height=d;f&&a.clearRect(0,0,e,d);this.MV(a);this.L&&this.L.Nb();this.hb(O(0,0,e,d));return!0},T:function(a){this.Ib&&""!=this.Ib&&(this.nb&&(this.nb=!1,this.hx()),b.Q.prototype.T.call(this,a||b.k))},Y:null,PL:function(a){var c=
this.W?this.textureAtlas.texture:this.L;if(c){var d=c.pixelsWidth,e=c.pixelsHeight,f,g=this.Ub;this.bd?(b.pn?(c=(2*a.x+1)/(2*d),d=c+(2*a.height-2)/(2*d),f=(2*a.y+1)/(2*e),a=f+(2*a.width-2)/(2*e)):(c=a.x/d,d=(a.x+a.height)/d,f=a.y/e,a=(a.y+a.width)/e),this.Qb&&(e=f,f=a,a=e),this.Rb&&(e=c,c=d,d=e),g.G.l.ea=c,g.G.l.fa=f,g.N.l.ea=c,g.N.l.fa=a,g.M.l.ea=d,g.M.l.fa=f,g.K.l.ea=d,g.K.l.fa=a):(b.pn?(c=(2*a.x+1)/(2*d),d=c+(2*a.width-2)/(2*d),f=(2*a.y+1)/(2*e),a=f+(2*a.height-2)/(2*e)):(c=a.x/d,d=(a.x+a.width)/
d,f=a.y/e,a=(a.y+a.height)/e),this.Qb&&(e=c,c=d,d=e),this.Rb&&(e=f,f=a,a=e),g.G.l.ea=c,g.G.l.fa=a,g.N.l.ea=d,g.N.l.fa=a,g.M.l.ea=c,g.M.l.fa=f,g.K.l.ea=d,g.K.l.fa=f);this.Ge=!0}}});
b.A===b.Da?(n=b.$.prototype,n.$a=function(a){b.ia.prototype.$a.call(this,a);this.pf()},n.pf=function(){this.nb=!0;var a=this.Ea,c=this.Ca,d=this.mm,e=this.nm;this.Ow="rgba("+(0|0.5*a.r)+","+(0|0.5*a.g)+","+(0|0.5*a.b)+","+this.rj+")";this.Xv="rgba("+(0|a.r/255*e.r)+","+(0|a.g/255*e.g)+","+(0|a.b/255*e.b)+", "+c/255+")";this.Tw="rgba("+(0|a.r/255*d.r)+","+(0|a.g/255*d.g)+","+(0|a.b/255*d.b)+", "+c/255+")"},n.Pb=function(a){b.ia.prototype.Pb.call(this,a);this.pf()},n.Aa=function(a){this.Vd!==a&&(b.Q.prototype.Aa.call(this,
a),this.pf(),this.nb=!0)},n.Mb=b.Q.prototype.Mb,n.CF=function(a,c){this.fE(c,!1);this.string=a;return!0},n.Sy=function(a){var c=this.nm;if(c.r!=a.r||c.g!=a.g||c.b!=a.b)c.r=a.r,c.g=a.g,c.b=a.b,this.pf(),this.nb=!0},n.Y=b.Q.prototype.Y,n.hb=function(a,c,d){this.bd=c||!1;this.be(d||a);this.MG(a);c=this.Lo;c.x=a.x;c.y=a.y;c.width=a.width;c.height=a.height;c.bq=!(0===c.width||0===c.height||0>c.x||0>c.y);a=this.wh;this.Qb&&(a.x=-a.x);this.Rb&&(a.y=-a.y);this.Eb.x=a.x+(this.O.width-this.ha.width)/2;this.Eb.y=
a.y+(this.O.height-this.ha.height)/2;this.W&&(this.dirty=!0)},n=null):(b.assert("function"===typeof b.B.UA,b.e.Nc,"LabelTTFWebGL.js"),b.B.UA(),delete b.B.UA);b.assert("function"===typeof b.B.aA,b.e.Nc,"LabelTTFPropertyDefine.js");b.B.aA();delete b.B.aA;b.$.LY=["left","center","right"];b.$.MY=["top","middle","bottom"];b.$.oV=/(.+?)([\s\n\r\-\/\\\:]|[\u4E00-\u9FA5]|[\uFE30-\uFFA0])/;b.$.PX=/(.*)([\s\n\r\-\/\\\:]|[\u4E00-\u9FA5]|[\uFE30-\uFFA0])/;b.$.lV=/[\s\-\/\\\:]/;b.$.SV=/^(\d+)px\s+['"]?([\w\s\d]+)['"]?$/;
b.$.create=function(a,c,d,e,f,g){return new b.$(a,c,d,e,f,g)};b.$.RU=b.GU?b.Ui:b.mA;b.$.mk=b.Ob("div");b.$.mk.style.fontFamily="Arial";b.$.mk.style.position="absolute";b.$.mk.style.left="-100px";b.$.mk.style.top="-100px";b.$.mk.style.lineHeight="normal";document.body?document.body.appendChild(b.$.mk):b.Ja(window,"load",function(){this.removeEventListener("load",arguments.callee,!1);document.body.appendChild(b.$.mk)},!1);
b.$.kr=function(a,c){var d=b.$.hJ[a+"."+c];if(0<d)return d;var e=b.$.mk;e.innerHTML="ajghl~!";e.style.fontFamily=a;e.style.fontSize=c+"px";d=e.clientHeight;b.$.hJ[a+"."+c]=d;e.innerHTML="";return d};b.$.hJ={};b.xR=b.ja.extend({Bc:null,target:null,xm:0,tf:null,Dm:!1,paused:!1,Qx:null,ctor:function(){this.Bc=[];this.target=null;this.xm=0;this.tf=null;this.paused=this.Dm=!1;this.Qx=null}});
b.ZG=b.ja.extend({hh:null,Fn:null,Pc:null,ei:!1,F8:function(a,c){for(var d=0;d<a.length;d++)if(c==a[d].target)return a[d];return null},ctor:function(){this.hh={};this.Fn=[];this.Pc=null;this.ei=!1},aZ:function(a,c,d){if(!a)throw"cc.ActionManager.addAction(): action must be non-null";if(!c)throw"cc.ActionManager.addAction(): action must be non-null";var e=this.hh[c.wa];e||(e=new b.xR,e.paused=d,e.target=c,this.hh[c.wa]=e,this.Fn.push(e));this.UU(e);e.Bc.push(a);a.v(c)},bha:function(){for(var a=this.Fn,
c=0;c<a.length;c++){var d=a[c];d&&this.XO(d.target,!0)}},XO:function(a,c){if(null!=a){var d=this.hh[a.wa];d&&(-1===d.Bc.indexOf(d.tf)||d.Dm||(d.Dm=!0),d.Bc.length=0,this.Pc!=d||c?this.BB(d):this.ei=!0)}},WO:function(a){if(null!=a){var c=this.hh[a.originalTarget.wa];if(c)for(var d=0;d<c.Bc.length;d++){if(c.Bc[d]==a){c.Bc.splice(d,1);break}}else b.log(b.e.uQ)}},U2:function(a,c){a==b.jn&&b.log(b.e.$G);b.assert(c,b.e.$G);var d=this.hh[c.wa];if(d)for(var e=d.Bc.length,f=0;f<e;++f){var g=d.Bc[f];if(g&&
g.nF()===a&&g.originalTarget==c){this.IX(f,d);break}}},bF:function(a,c){a==b.jn&&b.log(b.e.sQ);var d=this.hh[c.wa];if(d){if(null!=d.Bc)for(var e=0;e<d.Bc.length;++e){var f=d.Bc[e];if(f&&f.nF()===a)return f}b.log(b.e.tQ,a)}return null},j2:function(a){return(a=this.hh[a.wa])?a.Bc?a.Bc.length:0:0},Jp:function(a){(a=this.hh[a.wa])&&(a.paused=!0)},Mj:function(a){(a=this.hh[a.wa])&&(a.paused=!1)},Aga:function(){for(var a=[],c=this.Fn,d=0;d<c.length;d++){var e=c[d];e&&!e.paused&&(e.paused=!0,a.push(e.target))}return a},
j3:function(a){if(a)for(var c=0;c<a.length;c++)a[c]&&this.Mj(a[c])},Mga:function(){b.D.cl().gu(this)},IX:function(a,c){c.Bc[a]!=c.tf||c.Dm||(c.Dm=!0);c.Bc.splice(a,1);c.xm>=a&&c.xm--;0==c.Bc.length&&(this.Pc==c?this.ei=!0:this.BB(c))},BB:function(a){a&&(delete this.hh[a.target.wa],b.Ne(this.Fn,a),a.Bc=null,a.target=null)},UU:function(a){null==a.Bc&&(a.Bc=[])},update:function(a){for(var c=this.Fn,d,e=0;e<c.length;e++){d=this.Pc=c[e];if(!d.paused)for(d.xm=0;d.xm<d.Bc.length;d.xm++)if(d.tf=d.Bc[d.xm],
d.tf){d.Dm=!1;d.tf.step(a*(d.tf.ts?d.tf.oe:1));if(d.Dm)d.tf=null;else if(d.tf.Lg()){d.tf.stop();var f=d.tf;d.tf=null;this.WO(f)}d.tf=null}this.ei&&0===d.Bc.length&&this.BB(d)}}});b.Zea=Number;b.Pda=Number;b.Qda=Number;b.un=0;b.vn=1;b.PF=3.141592;b.O1=0.017453;b.P1=57.295779;b.za=0.015625;b.Kc=function(a){return a*a};b.tt=function(a){return a*b.O1};b.Uea=function(a){return a*b.P1};b.jy=function(a,c){return a<c?a:c};b.iy=function(a,c){return a>c?a:c};b.Oda=function(a,c){return a+b.za>c&&a-b.za<c};b.Kh=function(){this.y=this.x=0};b.cfa=function(a,c,d){a.x=c;a.y=d;return a};b.ly=function(a){return Math.sqrt(b.Kc(a.x)+b.Kc(a.y))};b.dfa=function(a){return b.Kc(a.x)+b.Kc(a.y)};b.V1=function(a,c){var d=1/b.ly(c),e=new b.Kh;e.x=c.x*d;e.y=c.y*d;a.x=e.x;a.y=e.y};b.$ea=function(a,c,d){a.x=c.x+d.x;a.y=c.y+d.y;return a};b.bfa=function(a,c){return a.x*c.x+a.y*c.y};b.my=function(a,c,d){a.x=c.x-d.x;a.y=c.y-d.y;return a};
b.ffa=function(a,c,d){var e=new b.Kh;e.x=c.x*d.c[0]+c.y*d.c[3]+d.c[6];e.y=c.x*d.c[1]+c.y*d.c[4]+d.c[7];a.x=e.x;a.y=e.y;return a};b.gfa=function(){return null};b.efa=function(a,c,d){a.x=c.x*d;a.y=c.y*d;return a};b.afa=function(a,c){return a.x<c.x+b.za&&a.x>c.x-b.za&&a.y<c.y+b.za&&a.y>c.y-b.za};b.xb=function(a,c,d){this.x=a||0;this.y=c||0;this.z=d||0};b.yp=function(a,c,d,e){if(!a)return new b.xb(c,d,e);a.x=c;a.y=d;a.z=e;return a};b.uO=function(a){return Math.sqrt(b.Kc(a.x)+b.Kc(a.y)+b.Kc(a.z))};b.vO=function(a){return b.Kc(a.x)+b.Kc(a.y)+b.Kc(a.z)};b.xf=function(a,c){var d=1/b.uO(c);a.x=c.x*d;a.y=c.y*d;a.z=c.z*d};b.hl=function(a,c,d){a.x=c.y*d.z-c.z*d.y;a.y=c.z*d.x-c.x*d.z;a.z=c.x*d.y-c.y*d.x};b.RF=function(a,c){return a.x*c.x+a.y*c.y+a.z*c.z};
b.tO=function(a,c,d){a.x=c.x+d.x;a.y=c.y+d.y;a.z=c.z+d.z};b.TF=function(a,c,d){a.x=c.x-d.x;a.y=c.y-d.y;a.z=c.z-d.z};b.lfa=function(a,c,d){a.x=c.x*d.c[0]+c.y*d.c[4]+c.z*d.c[8]+d.c[12];a.y=c.x*d.c[1]+c.y*d.c[5]+c.z*d.c[9]+d.c[13];a.z=c.x*d.c[2]+c.y*d.c[6]+c.z*d.c[10]+d.c[14];return a};b.mfa=function(a,c,d){a.x=c.x*d.c[0]+c.y*d.c[4]+c.z*d.c[8];a.y=c.x*d.c[1]+c.y*d.c[5]+c.z*d.c[9];a.z=c.x*d.c[2]+c.y*d.c[6]+c.z*d.c[10];return a};
b.wO=function(a,c,d){var e=new b.xO,f=new b.xO;b.W1(f,c.x,c.y,c.z);b.yO(e,f,d);a.x=e.x/e.H;a.y=e.y/e.H;a.z=e.z/e.H};b.SF=function(a,c,d){a.x=c.x*d;a.y=c.y*d;a.z=c.z*d;return a};b.hfa=function(a,c){return a.x<c.x+b.za&&a.x>c.x-b.za&&a.y<c.y+b.za&&a.y>c.y-b.za&&a.z<c.z+b.za&&a.z>c.z-b.za?1:0};b.ifa=function(a,c,d){c=new b.xb(c.x-d.c[12],c.y-d.c[13],c.z-d.c[14]);a.x=c.x*d.c[0]+c.y*d.c[1]+c.z*d.c[2];a.y=c.x*d.c[4]+c.y*d.c[5]+c.z*d.c[6];a.z=c.x*d.c[8]+c.y*d.c[9]+c.z*d.c[10];return a};
b.jfa=function(a,c,d){a.x=c.x*d.c[0]+c.y*d.c[1]+c.z*d.c[2];a.y=c.x*d.c[4]+c.y*d.c[5]+c.z*d.c[6];a.z=c.x*d.c[8]+c.y*d.c[9]+c.z*d.c[10];return a};b.ut=function(a,c){a!=c&&(a.x=c.x,a.y=c.y,a.z=c.z)};b.nfa=function(a){a.x=0;a.y=0;a.z=0;return a};b.kfa=function(a){if(!a)return null;var c=new Float32Array(3);c[0]=a.x;c[1]=a.y;c[2]=a.z;return c};b.xO=function(){this.H=this.z=this.y=this.x=0};b.W1=function(a,c,d,e){a.x=c;a.y=d;a.z=e;a.H=1};b.ofa=function(a,c,d){a.x=c.x+d.x;a.y=c.y+d.y;a.z=c.z+d.z;a.H=c.H+d.H;return a};b.rfa=function(a,c){return a.x*c.x+a.y*c.y+a.z*c.z+a.H*c.H};b.X1=function(a){return Math.sqrt(b.Kc(a.x)+b.Kc(a.y)+b.Kc(a.z)+b.Kc(a.H))};b.sfa=function(a){return b.Kc(a.x)+b.Kc(a.y)+b.Kc(a.z)+b.Kc(a.H)};b.tfa=function(a){return a};b.Y1=function(a,c){var d=1/b.X1(c);a.x*=d;a.y*=d;a.z*=d;a.H*=d};
b.ufa=function(a,c,d){b.Y1(a,c);a.x*=d;a.y*=d;a.z*=d;a.H*=d;return a};b.vfa=function(a,c,d){a.x=c.x-d.x;a.y=c.y-d.y;a.z=c.z-d.z;a.H=c.H-d.H;return a};b.yO=function(a,c,d){a.x=c.x*d.c[0]+c.y*d.c[4]+c.z*d.c[8]+c.H*d.c[12];a.y=c.x*d.c[1]+c.y*d.c[5]+c.z*d.c[9]+c.H*d.c[13];a.z=c.x*d.c[2]+c.y*d.c[6]+c.z*d.c[10]+c.H*d.c[14];a.H=c.x*d.c[3]+c.y*d.c[7]+c.z*d.c[11]+c.H*d.c[15]};b.xfa=function(a,c,d,e,f,g){for(var h=0;h<g;)b.yO(a+h*c,d+h*e,f),++h;return a};
b.pfa=function(a,c){return a.x<c.x+b.za&&a.x>c.x-b.za&&a.y<c.y+b.za&&a.y>c.y-b.za&&a.z<c.z+b.za&&a.z>c.z-b.za&&a.H<c.H+b.za&&a.H>c.H-b.za};b.qfa=function(a,c){if(a==c)return b.log("destVec and srcVec are same object"),a;a.x=c.x;a.y=c.y;a.z=c.z;a.H=c.H;return a};b.wfa=function(a){if(!a)return null;var c=new Float32Array(4);c[0]=a.x;c[1]=a.y;c[2]=a.z;c[3]=a.H;return c};b.Vea=function(a){this.start=a||new b.Kh;this.start=a||new b.Kh};b.Wea=function(a,c,d,e,f){a.start.x=c;a.start.y=d;a.dir.x=e;a.dir.y=f};
b.QF=function(a,c,d,e){var f=a.start.x,g=a.start.y,h=a.start.x+a.dir.x;a=a.start.y+a.dir.y;var k=c.x,m=c.y,p=d.x,r=d.y,s=(r-m)*(h-f)-(p-k)*(a-g);if(s>-b.za&&s<b.za)return b.un;m=((p-k)*(g-m)-(r-m)*(f-k))/s;k=f+m*(h-f);m=g+m*(a-g);if(k<b.jy(c.x,d.x)-b.za||k>b.iy(c.x,d.x)+b.za||m<b.jy(c.y,d.y)-b.za||m>b.iy(c.y,d.y)+b.za||k<b.jy(f,h)-b.za||k>b.iy(f,h)+b.za||m<b.jy(g,a)-b.za||m>b.iy(g,a)+b.za)return b.un;e.x=k;e.y=m;return b.vn};
b.DE=function(a,c,d){var e=new b.Kh;b.my(e,c,a);d.x=-e.y;d.y=e.x;b.V1(d,d)};b.Yea=function(a,c,d,e,f,g){var h=new b.Kh,k=new b.Kh,m=new b.Kh,p=1E4,r=b.un,s;b.QF(a,c,d,h)&&(s=new b.Kh,r=b.vn,s=b.ly(b.my(s,h,a.start)),s<p&&(k.x=h.x,k.y=h.y,p=s,b.DE(c,d,m)));b.QF(a,d,e,h)&&(s=new b.Kh,r=b.vn,s=b.ly(b.my(s,h,a.start)),s<p&&(k.x=h.x,k.y=h.y,p=s,b.DE(d,e,m)));b.QF(a,e,c,h)&&(s=new b.Kh,r=b.vn,s=b.ly(b.my(s,h,a.start)),s<p&&(k.x=h.x,k.y=h.y,b.DE(e,c,m)));r&&(f.x=k.x,f.y=k.y,g&&(g.x=m.x,g.y=m.y));return r};
b.Xea=function(){b.log("cc.kmRay2IntersectCircle() has not been implemented.")};var Float32Array=Float32Array||Array;b.hy=function(){this.c=new Float32Array([0,0,0,0,0,0,0,0,0])};b.Yda=function(a,c){for(var d=0;9>d;d++)a.c[d]=c;return a};b.H1=function(a,c){a.c[0]=c.c[4]*c.c[8]-c.c[5]*c.c[7];a.c[1]=c.c[2]*c.c[7]-c.c[1]*c.c[8];a.c[2]=c.c[1]*c.c[5]-c.c[2]*c.c[4];a.c[3]=c.c[5]*c.c[6]-c.c[3]*c.c[8];a.c[4]=c.c[0]*c.c[8]-c.c[2]*c.c[6];a.c[5]=c.c[2]*c.c[3]-c.c[0]*c.c[5];a.c[6]=c.c[3]*c.c[7]-c.c[4]*c.c[6];a.c[8]=c.c[0]*c.c[4]-c.c[1]*c.c[3]};
b.lO=function(a){a.c[1]=a.c[2]=a.c[3]=a.c[5]=a.c[6]=a.c[7]=0;a.c[0]=a.c[4]=a.c[8]=1};b.Zda=function(a,c,d){var e=new b.hy;if(0===c)return null;c=1/c;b.H1(e,d);b.I1(a,e,c);return a};b.hy.gC=new Float32Array([1,0,0,0,1,0,0,0,1]);b.$da=function(a){for(var c=0;9>c;c++)if(b.hy.gC[c]!==a.c[c])return!1;return!0};b.kea=function(a,c){var d,e;for(d=0;3>d;++d)for(e=0;3>e;++e)a.c[3*d+e]=c.c[3*e+d];return a};
b.Xda=function(a){var c;c=a.c[0]*a.c[4]*a.c[8]+a.c[1]*a.c[5]*a.c[6]+a.c[2]*a.c[3]*a.c[7];return c-=a.c[2]*a.c[4]*a.c[6]+a.c[0]*a.c[5]*a.c[7]+a.c[1]*a.c[3]*a.c[8]};
b.aea=function(a,c,d){c=c.c;d=d.c;a.c[0]=c[0]*d[0]+c[3]*d[1]+c[6]*d[2];a.c[1]=c[1]*d[0]+c[4]*d[1]+c[7]*d[2];a.c[2]=c[2]*d[0]+c[5]*d[1]+c[8]*d[2];a.c[3]=c[0]*d[3]+c[3]*d[4]+c[6]*d[5];a.c[4]=c[1]*d[3]+c[4]*d[4]+c[7]*d[5];a.c[5]=c[2]*d[3]+c[5]*d[4]+c[8]*d[5];a.c[6]=c[0]*d[6]+c[3]*d[7]+c[6]*d[8];a.c[7]=c[1]*d[6]+c[4]*d[7]+c[7]*d[8];a.c[8]=c[2]*d[6]+c[5]*d[7]+c[8]*d[8];return a};b.I1=function(a,c,d){for(var e=0;9>e;e++)a.c[e]=c.c[e]*d};
b.cea=function(a,c,d){var e=Math.cos(d);d=Math.sin(d);a.c[0]=e+c.x*c.x*(1-e);a.c[1]=c.z*d+c.y*c.x*(1-e);a.c[2]=-c.y*d+c.z*c.x*(1-e);a.c[3]=-c.z*d+c.x*c.y*(1-e);a.c[4]=e+c.y*c.y*(1-e);a.c[5]=c.x*d+c.z*c.y*(1-e);a.c[6]=c.y*d+c.x*c.z*(1-e);a.c[7]=-c.x*d+c.y*c.z*(1-e);a.c[8]=e+c.z*c.z*(1-e);return a};b.Wda=function(a,c){if(a==c)return b.log("cc.kmMat3Assign(): pOut equals pIn"),a;for(var d=0;9>d;d++)a.c[d]=c.c[d];return a};
b.Vda=function(a,c){if(a==c)return!0;for(var d=0;9>d;++d)if(!(a.c[d]+b.za>c.c[d]&&a.c[d]-b.za<c.c[d]))return!1;return!0};b.fea=function(a,c){a.c[0]=1;a.c[1]=0;a.c[2]=0;a.c[3]=0;a.c[4]=Math.cos(c);a.c[5]=Math.sin(c);a.c[6]=0;a.c[7]=-Math.sin(c);a.c[8]=Math.cos(c);return a};b.gea=function(a,c){a.c[0]=Math.cos(c);a.c[1]=0;a.c[2]=-Math.sin(c);a.c[3]=0;a.c[4]=1;a.c[5]=0;a.c[6]=Math.sin(c);a.c[7]=0;a.c[8]=Math.cos(c);return a};
b.hea=function(a,c){a.c[0]=Math.cos(c);a.c[1]=-Math.sin(c);a.c[2]=0;a.c[3]=Math.sin(c);a.c[4]=Math.cos(c);a.c[5]=0;a.c[6]=0;a.c[7]=0;a.c[8]=1;return a};b.bea=function(a,c){a.c[0]=Math.cos(c);a.c[1]=Math.sin(c);a.c[2]=0;a.c[3]=-Math.sin(c);a.c[4]=Math.cos(c);a.c[5]=0;a.c[6]=0;a.c[7]=0;a.c[8]=1;return a};b.iea=function(a,c,d){b.lO(a);a.c[0]=c;a.c[4]=d;return a};b.jea=function(a,c,d){b.lO(a);a.c[6]=c;a.c[7]=d;return a};
b.dea=function(a,c){if(!c||!a)return null;a.c[0]=1-2*(c.y*c.y+c.z*c.z);a.c[1]=2*(c.x*c.y-c.H*c.z);a.c[2]=2*(c.x*c.z+c.H*c.y);a.c[3]=2*(c.x*c.y+c.H*c.z);a.c[4]=1-2*(c.x*c.x+c.z*c.z);a.c[5]=2*(c.y*c.z-c.H*c.x);a.c[6]=2*(c.x*c.z-c.H*c.y);a.c[7]=2*(c.y*c.z+c.H*c.x);a.c[8]=1-2*(c.x*c.x+c.y*c.y);return a};b.eea=function(a,c,d){b.rO(void 0,d);b.sO(void 0,a);return a};b.ca=function(){this.c=new Float32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])};b.nea=function(a,c){a.c[0]=a.c[1]=a.c[2]=a.c[3]=a.c[4]=a.c[5]=a.c[6]=a.c[7]=a.c[8]=a.c[9]=a.c[10]=a.c[11]=a.c[12]=a.c[13]=a.c[14]=a.c[15]=c};b.Rm=function(a){a.c[1]=a.c[2]=a.c[3]=a.c[4]=a.c[6]=a.c[7]=a.c[8]=a.c[9]=a.c[11]=a.c[12]=a.c[13]=a.c[14]=0;a.c[0]=a.c[5]=a.c[10]=a.c[15]=1};b.ca.Lf=function(a,c,d){return a.c[c+4*d]};b.ca.Nk=function(a,c,d,e){a.c[c+4*d]=e};
b.ca.Uk=function(a,c,d,e,f){var g=b.ca.Lf(a,c,d);b.ca.Nk(a,c,d,b.ca.Lf(a,e,f));b.ca.Nk(a,e,f,g)};
b.ca.UV=function(a,c){var d,e=0,f=0,g,h,k,m=[0,0,0,0],p=[0,0,0,0],r=[0,0,0,0];for(d=0;4>d;d++){for(g=k=0;4>g;g++)if(1!=r[g])for(h=0;4>h;h++)0==r[h]&&Math.abs(b.ca.Lf(a,g,h))>=k&&(k=Math.abs(b.ca.Lf(a,g,h)),f=g,e=h);++r[e];if(f!=e){for(g=0;4>g;g++)b.ca.Uk(a,f,g,e,g);for(g=0;4>g;g++)b.ca.Uk(c,f,g,e,g)}p[d]=f;m[d]=e;if(0==b.ca.Lf(a,e,e))return b.un;h=1/b.ca.Lf(a,e,e);b.ca.Nk(a,e,e,1);for(g=0;4>g;g++)b.ca.Nk(a,e,g,b.ca.Lf(a,e,g)*h);for(g=0;4>g;g++)b.ca.Nk(c,e,g,b.ca.Lf(c,e,g)*h);for(h=0;4>h;h++)if(h!=
e){k=b.ca.Lf(a,h,e);b.ca.Nk(a,h,e,0);for(g=0;4>g;g++)b.ca.Nk(a,h,g,b.ca.Lf(a,h,g)-b.ca.Lf(a,e,g)*k);for(g=0;4>g;g++)b.ca.Nk(c,h,g,b.ca.Lf(a,h,g)-b.ca.Lf(c,e,g)*k)}}for(g=3;0<=g;g--)if(p[g]!=m[g])for(h=0;4>h;h++)b.ca.Uk(a,h,p[g],h,m[g]);return b.vn};b.ca.gC=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);b.K1=function(a,c){var d=new b.ca,e=new b.ca;b.Ej(d,c);b.Rm(e);b.ca.UV(d,e)!=b.un&&b.Ej(a,d)};b.rea=function(a){for(var c=0;16>c;c++)if(b.ca.gC[c]!=a.c[c])return!1;return!0};
b.zea=function(a,c){var d,e,f=a.c,g=c.c;for(e=0;4>e;++e)for(d=0;4>d;++d)f[4*e+d]=g[4*d+e];return a};
b.Fi=function(a,c,d){a=a.c;var e=c.c[0],f=c.c[1],g=c.c[2],h=c.c[3],k=c.c[4],m=c.c[5],p=c.c[6],r=c.c[7],s=c.c[8],u=c.c[9],t=c.c[10],v=c.c[11],w=c.c[12],y=c.c[13],B=c.c[14];c=c.c[15];var G=d.c[0],J=d.c[1],E=d.c[2],z=d.c[3],D=d.c[4],x=d.c[5],F=d.c[6],L=d.c[7],M=d.c[8],K=d.c[9],P=d.c[10],T=d.c[11],S=d.c[12],W=d.c[13],N=d.c[14];d=d.c[15];a[0]=G*e+J*k+E*s+z*w;a[1]=G*f+J*m+E*u+z*y;a[2]=G*g+J*p+E*t+z*B;a[3]=G*h+J*r+E*v+z*c;a[4]=D*e+x*k+F*s+L*w;a[5]=D*f+x*m+F*u+L*y;a[6]=D*g+x*p+F*t+L*B;a[7]=D*h+x*r+F*v+L*
c;a[8]=M*e+K*k+P*s+T*w;a[9]=M*f+K*m+P*u+T*y;a[10]=M*g+K*p+P*t+T*B;a[11]=M*h+K*r+P*v+T*c;a[12]=S*e+W*k+N*s+d*w;a[13]=S*f+W*m+N*u+d*y;a[14]=S*g+W*p+N*t+d*B;a[15]=S*h+W*r+N*v+d*c};
b.j0=function(){var a=b.kl.top.c,c=b.Hj.top.c,d=new Float32Array(16);d[0]=a[0]*c[0]+a[4]*c[1]+a[8]*c[2]+a[12]*c[3];d[1]=a[1]*c[0]+a[5]*c[1]+a[9]*c[2]+a[13]*c[3];d[2]=a[2]*c[0]+a[6]*c[1]+a[10]*c[2]+a[14]*c[3];d[3]=a[3]*c[0]+a[7]*c[1]+a[11]*c[2]+a[15]*c[3];d[4]=a[0]*c[4]+a[4]*c[5]+a[8]*c[6]+a[12]*c[7];d[5]=a[1]*c[4]+a[5]*c[5]+a[9]*c[6]+a[13]*c[7];d[6]=a[2]*c[4]+a[6]*c[5]+a[10]*c[6]+a[14]*c[7];d[7]=a[3]*c[4]+a[7]*c[5]+a[11]*c[6]+a[15]*c[7];d[8]=a[0]*c[8]+a[4]*c[9]+a[8]*c[10]+a[12]*c[11];d[9]=a[1]*c[8]+
a[5]*c[9]+a[9]*c[10]+a[13]*c[11];d[10]=a[2]*c[8]+a[6]*c[9]+a[10]*c[10]+a[14]*c[11];d[11]=a[3]*c[8]+a[7]*c[9]+a[11]*c[10]+a[15]*c[11];d[12]=a[0]*c[12]+a[4]*c[13]+a[8]*c[14]+a[12]*c[15];d[13]=a[1]*c[12]+a[5]*c[13]+a[9]*c[14]+a[13]*c[15];d[14]=a[2]*c[12]+a[6]*c[13]+a[10]*c[14]+a[14]*c[15];d[15]=a[3]*c[12]+a[7]*c[13]+a[11]*c[14]+a[15]*c[15];return d};
b.zba=function(a,c,d){a=a.c;c=c.c;var e=d.c;e[0]=a[0]*c[0]+a[4]*c[1]+a[8]*c[2]+a[12]*c[3];e[1]=a[1]*c[0]+a[5]*c[1]+a[9]*c[2]+a[13]*c[3];e[2]=a[2]*c[0]+a[6]*c[1]+a[10]*c[2]+a[14]*c[3];e[3]=a[3]*c[0]+a[7]*c[1]+a[11]*c[2]+a[15]*c[3];e[4]=a[0]*c[4]+a[4]*c[5]+a[8]*c[6]+a[12]*c[7];e[5]=a[1]*c[4]+a[5]*c[5]+a[9]*c[6]+a[13]*c[7];e[6]=a[2]*c[4]+a[6]*c[5]+a[10]*c[6]+a[14]*c[7];e[7]=a[3]*c[4]+a[7]*c[5]+a[11]*c[6]+a[15]*c[7];e[8]=a[0]*c[8]+a[4]*c[9]+a[8]*c[10]+a[12]*c[11];e[9]=a[1]*c[8]+a[5]*c[9]+a[9]*c[10]+a[13]*
c[11];e[10]=a[2]*c[8]+a[6]*c[9]+a[10]*c[10]+a[14]*c[11];e[11]=a[3]*c[8]+a[7]*c[9]+a[11]*c[10]+a[15]*c[11];e[12]=a[0]*c[12]+a[4]*c[13]+a[8]*c[14]+a[12]*c[15];e[13]=a[1]*c[12]+a[5]*c[13]+a[9]*c[14]+a[13]*c[15];e[14]=a[2]*c[12]+a[6]*c[13]+a[10]*c[14]+a[14]*c[15];e[15]=a[3]*c[12]+a[7]*c[13]+a[11]*c[14]+a[15]*c[15];return d.c};
b.Ej=function(a,c){if(a==c)b.log("cc.kmMat4Assign(): pOut equals pIn");else{var d=a.c,e=c.c;d[0]=e[0];d[1]=e[1];d[2]=e[2];d[3]=e[3];d[4]=e[4];d[5]=e[5];d[6]=e[6];d[7]=e[7];d[8]=e[8];d[9]=e[9];d[10]=e[10];d[11]=e[11];d[12]=e[12];d[13]=e[13];d[14]=e[14];d[15]=e[15]}};b.lea=function(a,c){if(a==c)return b.log("cc.kmMat4AreEqual(): pMat1 and pMat2 are same object."),!0;for(var d=0;16>d;d++)if(!(a.c[d]+b.za>c.c[d]&&a.c[d]-b.za<c.c[d]))return!1;return!0};
b.wea=function(a,c){a.c[0]=1;a.c[1]=0;a.c[2]=0;a.c[3]=0;a.c[4]=0;a.c[5]=Math.cos(c);a.c[6]=Math.sin(c);a.c[7]=0;a.c[8]=0;a.c[9]=-Math.sin(c);a.c[10]=Math.cos(c);a.c[11]=0;a.c[12]=0;a.c[13]=0;a.c[14]=0;a.c[15]=1;return a};b.xea=function(a,c){a.c[0]=Math.cos(c);a.c[1]=0;a.c[2]=-Math.sin(c);a.c[3]=0;a.c[4]=0;a.c[5]=1;a.c[6]=0;a.c[7]=0;a.c[8]=Math.sin(c);a.c[9]=0;a.c[10]=Math.cos(c);a.c[11]=0;a.c[12]=0;a.c[13]=0;a.c[14]=0;a.c[15]=1;return a};
b.yea=function(a,c){a.c[0]=Math.cos(c);a.c[1]=Math.sin(c);a.c[2]=0;a.c[3]=0;a.c[4]=-Math.sin(c);a.c[5]=Math.cos(c);a.c[6]=0;a.c[7]=0;a.c[8]=0;a.c[9]=0;a.c[10]=1;a.c[11]=0;a.c[12]=0;a.c[13]=0;a.c[14]=0;a.c[15]=1;return a};
b.sea=function(a,c,d,e){var f=Math.cos(c);c=Math.sin(c);var g=Math.cos(d);d=Math.sin(d);var h=Math.cos(e);e=Math.sin(e);var k=c*d,m=f*d;a.c[0]=g*h;a.c[4]=g*e;a.c[8]=-d;a.c[1]=k*h-f*e;a.c[5]=k*e+f*h;a.c[9]=c*g;a.c[2]=m*h+c*e;a.c[6]=m*e-c*h;a.c[10]=f*g;a.c[3]=a.c[7]=a.c[11]=0;a.c[15]=1;return a};
b.tea=function(a,c){a.c[0]=1-2*(c.y*c.y+c.z*c.z);a.c[1]=2*(c.x*c.y+c.z*c.H);a.c[2]=2*(c.x*c.z-c.y*c.H);a.c[3]=0;a.c[4]=2*(c.x*c.y-c.z*c.H);a.c[5]=1-2*(c.x*c.x+c.z*c.z);a.c[6]=2*(c.z*c.y+c.x*c.H);a.c[7]=0;a.c[8]=2*(c.x*c.z+c.y*c.H);a.c[9]=2*(c.y*c.z-c.x*c.H);a.c[10]=1-2*(c.x*c.x+c.y*c.y);a.c[11]=0;a.c[12]=0;a.c[13]=0;a.c[14]=0;a.c[15]=1;return a};
b.vea=function(a,c,d){a.c[0]=c.c[0];a.c[1]=c.c[1];a.c[2]=c.c[2];a.c[3]=0;a.c[4]=c.c[3];a.c[5]=c.c[4];a.c[6]=c.c[5];a.c[7]=0;a.c[8]=c.c[6];a.c[9]=c.c[7];a.c[10]=c.c[8];a.c[11]=0;a.c[12]=d.x;a.c[13]=d.y;a.c[14]=d.z;a.c[15]=1;return a};b.N1=function(a,c,d,e){a.c[0]=c;a.c[5]=d;a.c[10]=e;a.c[15]=1;a.c[1]=a.c[2]=a.c[3]=a.c[4]=a.c[6]=a.c[7]=a.c[8]=a.c[9]=a.c[11]=a.c[12]=a.c[13]=a.c[14]=0};
b.nO=function(a,c,d,e){a.c[0]=a.c[5]=a.c[10]=a.c[15]=1;a.c[1]=a.c[2]=a.c[3]=a.c[4]=a.c[6]=a.c[7]=a.c[8]=a.c[9]=a.c[11]=0;a.c[12]=c;a.c[13]=d;a.c[14]=e};b.qea=function(a,c){a.x=c.c[4];a.y=c.c[5];a.z=c.c[6];b.xf(a,a);return a};b.pea=function(a,c){a.x=c.c[0];a.y=c.c[1];a.z=c.c[2];b.xf(a,a);return a};b.oea=function(a,c){a.x=c.c[8];a.y=c.c[9];a.z=c.c[10];b.xf(a,a);return a};
b.L1=function(a,c,d){var e=b.tt(30),f=d-0.1,g=Math.sin(e);0!=f&&0!=g&&0!=c&&(e=Math.cos(e)/g,b.Rm(a),a.c[0]=e/c,a.c[5]=e,a.c[10]=-(d+0.1)/f,a.c[11]=-1,a.c[14]=-0.2*d/f,a.c[15]=0)};b.OF=function(a,c,d,e,f,g,h){b.Rm(a);a.c[0]=2/(d-c);a.c[5]=2/(f-e);a.c[10]=-2/(h-g);a.c[12]=-((d+c)/(d-c));a.c[13]=-((f+e)/(f-e));a.c[14]=-((h+g)/(h-g))};
b.mO=function(a,c,d,e){var f=new b.xb,g=new b.xb,h=new b.xb,k=new b.xb,m=new b.ca;b.TF(f,d,c);b.xf(f,f);b.ut(g,e);b.xf(g,g);b.hl(h,f,g);b.xf(h,h);b.hl(k,h,f);b.xf(h,h);b.Rm(a);a.c[0]=h.x;a.c[4]=h.y;a.c[8]=h.z;a.c[1]=k.x;a.c[5]=k.y;a.c[9]=k.z;a.c[2]=-f.x;a.c[6]=-f.y;a.c[10]=-f.z;b.nO(m,-c.x,-c.y,-c.z);b.Fi(a,a,m)};
b.M1=function(a,c,d){var e=Math.cos(d);d=Math.sin(d);var f=new b.xb;b.xf(f,c);a.c[0]=e+f.x*f.x*(1-e);a.c[1]=f.z*d+f.y*f.x*(1-e);a.c[2]=-f.y*d+f.z*f.x*(1-e);a.c[3]=0;a.c[4]=-f.z*d+f.x*f.y*(1-e);a.c[5]=e+f.y*f.y*(1-e);a.c[6]=f.x*d+f.z*f.y*(1-e);a.c[7]=0;a.c[8]=f.y*d+f.x*f.z*(1-e);a.c[9]=-f.x*d+f.y*f.z*(1-e);a.c[10]=e+f.z*f.z*(1-e);a.c[11]=0;a.c[12]=0;a.c[13]=0;a.c[14]=0;a.c[15]=1};
b.J1=function(a,c){a.c[0]=c.c[0];a.c[1]=c.c[1];a.c[2]=c.c[2];a.c[3]=c.c[4];a.c[4]=c.c[5];a.c[5]=c.c[6];a.c[6]=c.c[8];a.c[7]=c.c[9];a.c[8]=c.c[10]};
b.mea=function(a,c,d){switch(d){case b.NR:a.a=c.c[3]-c.c[0];a.b=c.c[7]-c.c[4];a.C=c.c[11]-c.c[8];a.J=c.c[15]-c.c[12];break;case b.LR:a.a=c.c[3]+c.c[0];a.b=c.c[7]+c.c[4];a.C=c.c[11]+c.c[8];a.J=c.c[15]+c.c[12];break;case b.JR:a.a=c.c[3]+c.c[1];a.b=c.c[7]+c.c[5];a.C=c.c[11]+c.c[9];a.J=c.c[15]+c.c[13];break;case b.OR:a.a=c.c[3]-c.c[1];a.b=c.c[7]-c.c[5];a.C=c.c[11]-c.c[9];a.J=c.c[15]-c.c[13];break;case b.KR:a.a=c.c[3]-c.c[2];a.b=c.c[7]-c.c[6];a.C=c.c[11]-c.c[10];a.J=c.c[15]-c.c[14];break;case b.MR:a.a=
c.c[3]+c.c[2];a.b=c.c[7]+c.c[6];a.C=c.c[11]+c.c[10];a.J=c.c[15]+c.c[14];break;default:b.log("cc.kmMat4ExtractPlane(): Invalid plane index")}c=Math.sqrt(a.a*a.a+a.b*a.b+a.C*a.C);a.a/=c;a.b/=c;a.C/=c;a.J/=c;return a};b.uea=function(a,c,d){c=new da;var e=new b.hy;b.J1(e,d);b.rO(c,e);b.sO(c,a);return a};b.LR=0;b.NR=1;b.JR=2;b.OR=3;b.MR=4;b.KR=5;b.Aea=function(a,c,d,e){this.a=a||0;this.b=c||0;this.C=d||0;this.J=e||0};b.ES=0;b.DS=1;b.FS=2;b.Cea=function(a,c){return a.a*c.x+a.b*c.y+a.C*c.z+a.J*c.H};b.Dea=function(a,c){return a.a*c.x+a.b*c.y+a.C*c.z+a.J};b.Eea=function(a,c){return a.a*c.x+a.b*c.y+a.C*c.z};b.Fea=function(a,c,d){a.a=d.x;a.b=d.y;a.C=d.z;a.J=-b.RF(d,c);return a};
b.Gea=function(a,c,d,e){var f=new b.xb,g=new b.xb,h=new b.xb;b.TF(g,d,c);b.TF(h,e,c);b.hl(f,g,h);b.xf(f,f);a.a=f.x;a.b=f.y;a.C=f.z;a.J=b.RF(b.SF(f,f,-1),c);return a};b.Hea=function(){throw"cc.kmPlaneIntersectLine() hasn't been implemented.";};b.Iea=function(a,c){var d=new b.xb;d.x=c.a;d.y=c.b;d.z=c.C;var e=1/b.uO(d);b.xf(d,d);a.a=d.x;a.b=d.y;a.C=d.z;a.J=c.J*e;return a};b.Jea=function(){b.log("cc.kmPlaneScale() has not been implemented.")};
b.Bea=function(a,c){var d=a.a*c.x+a.b*c.y+a.C*c.z+a.J;return 0.001<d?b.ES:-0.001>d?b.DS:b.FS};function da(){this.H=this.z=this.y=this.x=0}b.R1=function(a,c){a.x=-c.x;a.y=-c.y;a.z=-c.z;a.H=c.H;return a};b.S1=function(a,c){return a.H*c.H+a.x*c.x+a.y*c.y+a.z*c.z};b.Lea=function(a){return a};b.T1=function(a){a.x=0;a.y=0;a.z=0;a.H=1};b.Mea=function(a,c){var d=b.oO(c),e=new da;if(Math.abs(d)>b.za)return a.x=0,a.y=0,a.z=0,a.H=0,a;b.ky(a,b.R1(e,c),1/d);return a};b.Nea=function(a){return 0==a.x&&0==a.y&&0==a.z&&1==a.H};b.oO=function(a){return Math.sqrt(b.U1(a))};
b.U1=function(a){return a.x*a.x+a.y*a.y+a.z*a.z+a.H*a.H};b.Oea=function(a){return a};b.Pea=function(a,c,d){a.H=c.H*d.H-c.x*d.x-c.y*d.y-c.z*d.z;a.x=c.H*d.x+c.x*d.H+c.y*d.z-c.z*d.y;a.y=c.H*d.y+c.y*d.H+c.z*d.x-c.x*d.z;a.z=c.H*d.z+c.z*d.H+c.x*d.y-c.y*d.x;return a};b.pO=function(a,c){var d=b.oO(c);if(Math.abs(d)<=b.za)throw"cc.kmQuaternionNormalize(): pIn is an invalid value";b.ky(a,c,1/d)};b.qO=function(a,c){var d=0.5*b.PF,e=Math.sin(d);a.H=Math.cos(d);a.x=c.x*e;a.y=c.y*e;a.z=c.z*e};
b.rO=function(a,c){var d,e,f,g;d=[];e=g=0;if(c){d[0]=c.c[0];d[1]=c.c[3];d[2]=c.c[6];d[4]=c.c[1];d[5]=c.c[4];d[6]=c.c[7];d[8]=c.c[2];d[9]=c.c[5];d[10]=c.c[8];d[15]=1;var h=d[0];e=h[0]+h[5]+h[10]+1;e>b.za?(g=2*Math.sqrt(e),d=(h[9]-h[6])/g,e=(h[2]-h[8])/g,f=(h[4]-h[1])/g,g*=0.25):h[0]>h[5]&&h[0]>h[10]?(g=2*Math.sqrt(1+h[0]-h[5]-h[10]),d=0.25*g,e=(h[4]+h[1])/g,f=(h[2]+h[8])/g,g=(h[9]-h[6])/g):h[5]>h[10]?(g=2*Math.sqrt(1+h[5]-h[0]-h[10]),d=(h[4]+h[1])/g,e=0.25*g,f=(h[9]+h[6])/g,g=(h[2]-h[8])/g):(g=2*Math.sqrt(1+
h[10]-h[0]-h[5]),d=(h[2]+h[8])/g,e=(h[9]+h[6])/g,f=0.25*g,g=(h[4]-h[1])/g);a.x=d;a.y=e;a.z=f;a.H=g}};b.Sea=function(a,c,d,e){var f,g,h,k,m;f=b.tt(d)/2;g=b.tt(c)/2;h=b.tt(e)/2;e=Math.cos(f);c=Math.cos(g);d=Math.cos(h);f=Math.sin(f);g=Math.sin(g);h=Math.sin(h);k=c*d;m=g*h;a.H=e*k+f*m;a.x=f*k-e*m;a.y=e*g*d+f*c*h;a.z=e*c*h-f*g*d;b.pO(a,a);return a};
b.Tea=function(a,c,d,e){if(c.x==d.x&&c.y==d.y&&c.z==d.z&&c.H==d.H)return a.x=c.x,a.y=c.y,a.z=c.z,a.H=c.H,a;var f=b.S1(c,d),g=Math.acos(f),f=Math.sqrt(1-b.Kc(f)),h=Math.sin(e*g)/f,k=new da,m=new da;b.ky(k,c,Math.sin((1-e)*g)/f);b.ky(m,d,h);b.Q1(a,k,m);return a};b.sO=function(a,c){var d;d=Math.sqrt(b.Kc(a.x)+b.Kc(a.y)+b.Kc(a.z));d>-b.za&&d<b.za||d<2*b.PF+b.za&&d>2*b.PF-b.za?(c.x=0,c.y=0,c.z=1):(c.x=a.x/d,c.y=a.y/d,c.z=a.z/d,b.xf(c,c))};b.ky=function(a,c,d){a.x=c.x*d;a.y=c.y*d;a.z=c.z*d;a.H=c.H*d};
b.Kea=function(a,c){a.x=c.x;a.y=c.y;a.z=c.z;a.H=c.H;return a};b.Q1=function(a,c,d){a.x=c.x+d.x;a.y=c.y+d.y;a.z=c.z+d.z;a.H=c.H+d.H};
b.Rea=function(a,c,d,e){var f=new b.xb,g=new b.xb;b.ut(f,c);b.ut(g,d);b.xf(f,f);b.xf(g,g);d=b.RF(f,g);if(1<=d)return b.T1(a),a;-0.999999>d?Math.abs(b.vO(e))<b.za?b.qO(a,e):(f=new b.xb,g=new b.xb,g.x=1,g.y=0,g.z=0,b.hl(f,g,c),Math.abs(b.vO(f))<b.za&&(g=new b.xb,g.x=0,g.y=1,g.z=0,b.hl(f,g,c)),b.xf(f,f),b.qO(a,f)):(c=Math.sqrt(2*(1+d)),e=1/c,d=new b.xb,b.hl(d,f,g),a.x=d.x*e,a.y=d.y*e,a.z=d.z*e,a.H=0.5*c,b.pO(a,a));return a};
b.Qea=function(a,c,d){var e=new b.xb,f=new b.xb,g=new b.xb;g.x=c.x;g.y=c.y;g.z=c.z;b.hl(e,g,d);b.hl(f,g,e);b.SF(e,e,2*c.H);b.SF(f,f,2);b.tO(a,d,e);b.tO(a,a,f);return a};b.Kda=function(a,c){this.min=a||new b.xb;this.max=c||new b.xb};b.Mda=function(a,c){return a.x>=c.min.x&&a.x<=c.max.x&&a.y>=c.min.y&&a.y<=c.max.y&&a.z>=c.min.z&&a.z<=c.max.z?b.vn:b.un};b.Lda=function(a,c){b.ut(a.min,c.min);b.ut(a.max,c.max);return a};b.Nda=function(){b.log("cc.kmAABBScale hasn't been supported.")};b.ny=function(a,c,d,e){this.top=d;this.stack=e};b.ny.B6=30;b.UF=function(a){a.stack=[];a.top=null};b.oy=function(a,c){a.stack.push(a.top);a.top=new b.ca;b.Ej(a.top,c)};b.yfa=function(a){a.top=a.stack.pop()};b.VF=function(a){a.stack=null;a.top=null};b.Ri=5888;b.Si=5889;b.yH=5890;b.Hj=new b.ny;b.kl=new b.ny;b.bu=new b.ny;b.Vb=null;b.FF=!1;b.a2=function(){if(!b.FF){var a=new b.ca;b.UF(b.Hj);b.UF(b.kl);b.UF(b.bu);b.Vb=b.Hj;b.FF=!0;b.Rm(a);b.oy(b.Hj,a);b.oy(b.kl,a);b.oy(b.bu,a)}};b.a2();b.G1=function(){b.VF(b.Hj);b.VF(b.kl);b.VF(b.bu);b.FF=!1;b.Vb=null};b.Qm=function(){b.oy(b.Vb,b.Vb.top)};b.Sda=function(a){b.Vb.stack.push(b.Vb.top);b.Ej(a,b.Vb.top);b.Vb.top=a};b.Pm=function(){b.Vb.top=b.Vb.stack.pop()};
b.Ei=function(a){switch(a){case b.Ri:b.Vb=b.Hj;break;case b.Si:b.Vb=b.kl;break;case b.yH:b.Vb=b.bu;break;default:throw"Invalid matrix mode specified";}};b.vp=function(){b.Rm(b.Vb.top)};b.Rda=function(a){b.Ej(b.Vb.top,a)};b.wp=function(a){b.Fi(b.Vb.top,b.Vb.top,a)};b.xp=function(a,c){var d=new b.ca;b.nO(d,a,c,0);b.Fi(b.Vb.top,b.Vb.top,d)};b.Tda=function(a,c,d,e){c=new b.xb(c,d,e);d=new b.ca;b.M1(d,c,b.tt(a));b.Fi(b.Vb.top,b.Vb.top,d)};
b.Uda=function(a,c,d){var e=new b.ca;b.N1(e,a,c,d);b.Fi(b.Vb.top,b.Vb.top,e)};b.gy=function(a,c){switch(a){case b.Ri:b.Ej(c,b.Hj.top);break;case b.Si:b.Ej(c,b.kl.top);break;case b.yH:b.Ej(c,b.bu.top);break;default:throw"Invalid matrix mode specified";}};b.$S="precision lowp float;\nvarying vec4 v_fragmentColor;\nvoid main()                              \n{ \n    gl_FragColor \x3d v_fragmentColor;      \n}\n";b.aT="attribute vec4 a_position;\nuniform    vec4 u_color;\nuniform float u_pointSize;\nvarying lowp vec4 v_fragmentColor; \nvoid main(void)   \n{\n    gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position;  \n    gl_PointSize \x3d u_pointSize;          \n    v_fragmentColor \x3d u_color;           \n}";b.OS="precision lowp float; \nvarying vec4 v_fragmentColor; \nvoid main() \n{ \n     gl_FragColor \x3d v_fragmentColor; \n} ";
b.RS="attribute vec4 a_position;\nattribute vec4 a_color;\nvarying lowp vec4 v_fragmentColor;\nvoid main()\n{\n    gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position;  \n    v_fragmentColor \x3d a_color;             \n}";b.PS="// #extension GL_OES_standard_derivatives : enable\nvarying mediump vec4 v_color;\nvarying mediump vec2 v_texcoord;\nvoid main()\t\n{ \n// #if defined GL_OES_standard_derivatives\t\n// gl_FragColor \x3d v_color*smoothstep(0.0, length(fwidth(v_texcoord)), 1.0 - length(v_texcoord)); \n// #else\t\ngl_FragColor \x3d v_color * step(0.0, 1.0 - length(v_texcoord)); \n// #endif \n}";
b.QS="attribute mediump vec4 a_position; \nattribute mediump vec2 a_texcoord; \nattribute mediump vec4 a_color;\t\nvarying mediump vec4 v_color; \nvarying mediump vec2 v_texcoord;\t\nvoid main() \n{ \n     v_color \x3d a_color;//vec4(a_color.rgb * a_color.a, a_color.a); \n     v_texcoord \x3d a_texcoord; \n    gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position;  \n}";b.WS="precision lowp float;   \nvarying vec2 v_texCoord;  \nuniform sampler2D CC_Texture0; \nvoid main() \n{  \n    gl_FragColor \x3d  texture2D(CC_Texture0, v_texCoord);   \n}";
b.ZS="attribute vec4 a_position; \nattribute vec2 a_texCoord; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n    gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position;  \n    v_texCoord \x3d a_texCoord;               \n}";b.XS="precision lowp float;  \nuniform vec4 u_color; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0;  \nvoid main() \n{  \n    gl_FragColor \x3d  texture2D(CC_Texture0, v_texCoord) * u_color;    \n}";b.YS="attribute vec4 a_position;\nattribute vec2 a_texCoord; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n    gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position;  \n    v_texCoord \x3d a_texCoord;                 \n}";
b.SS="precision lowp float;  \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n    gl_FragColor \x3d vec4( v_fragmentColor.rgb,         \n        v_fragmentColor.a * texture2D(CC_Texture0, v_texCoord).a   \n    ); \n}";b.TS="attribute vec4 a_position; \nattribute vec2 a_texCoord; \nattribute vec4 a_color;  \nvarying lowp vec4 v_fragmentColor; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n    gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position;  \n    v_fragmentColor \x3d a_color; \n    v_texCoord \x3d a_texCoord; \n}";
b.VS="precision lowp float;\nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n    gl_FragColor \x3d v_fragmentColor * texture2D(CC_Texture0, v_texCoord); \n}";b.hI="attribute vec4 a_position; \nattribute vec2 a_texCoord; \nattribute vec4 a_color;  \nvarying lowp vec4 v_fragmentColor; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n    gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position;  \n    v_fragmentColor \x3d a_color; \n    v_texCoord \x3d a_texCoord; \n}";
b.US="precision lowp float;   \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord;   \nuniform sampler2D CC_Texture0; \nuniform float CC_alpha_value; \nvoid main() \n{  \n    vec4 texColor \x3d texture2D(CC_Texture0, v_texCoord);  \n    // mimic: glAlphaFunc(GL_GREATER)           \n    //pass if ( incoming_pixel \x3e\x3d CC_alpha_value ) \x3d\x3e fail if incoming_pixel \x3c CC_alpha_value   \n    if ( texColor.a \x3c\x3d CC_alpha_value )          \n        discard; \n    gl_FragColor \x3d texColor * v_fragmentColor;  \n}";
b.l7="precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D u_texture;  \nuniform sampler2D   u_mask;   \nvoid main()  \n{  \n    vec4 texColor   \x3d texture2D(u_texture, v_texCoord);  \n    vec4 maskColor  \x3d texture2D(u_mask, v_texCoord); \n    vec4 finalColor \x3d vec4(texColor.r, texColor.g, texColor.b, maskColor.a * texColor.a);        \n    gl_FragColor    \x3d v_fragmentColor * finalColor; \n}";b.Ld={xA:0,yA:1,vA:2,wA:3,AA:4,zA:5,BA:6,sI:7,I7:8,md:{},Sr:function(){this.c2();return!0},Fe:function(a,c){switch(c){case this.xA:a.Di(b.hI,b.VS);a.rd(b.rl,b.sb);a.rd(b.dq,b.ze);a.rd(b.kn,b.xd);break;case this.yA:a.Di(b.hI,b.US);a.rd(b.rl,b.sb);a.rd(b.dq,b.ze);a.rd(b.kn,b.xd);break;case this.vA:a.Di(b.RS,b.OS);a.rd(b.rl,b.sb);a.rd(b.dq,b.ze);break;case this.wA:a.Di(b.ZS,b.WS);a.rd(b.rl,b.sb);a.rd(b.kn,b.xd);break;case this.AA:a.Di(b.YS,b.XS);a.rd(b.rl,b.sb);a.rd(b.kn,b.xd);break;case this.zA:a.Di(b.TS,
b.SS);a.rd(b.rl,b.sb);a.rd(b.dq,b.ze);a.rd(b.kn,b.xd);break;case this.BA:a.Di(b.aT,b.$S);a.rd("aVertex",b.sb);break;case this.sI:a.Di(b.QS,b.PS);a.rd(b.rl,b.sb);a.rd(b.kn,b.xd);a.rd(b.dq,b.ze);break;default:b.log("cocos2d: cc.shaderCache._loadDefaultShader, error shader type");return}a.link();a.e5()},c2:function(){var a=new b.Uh;this.Fe(a,this.xA);this.md[b.Ui]=a;this.md.ShaderPositionTextureColor=a;a=new b.Uh;this.Fe(a,this.yA);this.md[b.Uu]=a;this.md.ShaderPositionTextureColorAlphaTest=a;a=new b.Uh;
this.Fe(a,this.vA);this.md[b.Tu]=a;this.md.ShaderPositionColor=a;a=new b.Uh;this.Fe(a,this.wA);this.md[b.Rq]=a;this.md.ShaderPositionTexture=a;a=new b.Uh;this.Fe(a,this.AA);this.md[b.nA]=a;this.md.ShaderPositionTextureUColor=a;a=new b.Uh;this.Fe(a,this.zA);this.md[b.mA]=a;this.md.ShaderPositionTextureA8Color=a;a=new b.Uh;this.Fe(a,this.BA);this.md[b.oA]=a;this.md.ShaderPositionUColor=a;a=new b.Uh;this.Fe(a,this.sI);this.md[b.gI]=a;this.md.ShaderPositionLengthTextureColor=a},aha:function(){var a=this.oc(b.Ui);
a.reset();this.Fe(a,this.xA);a=this.oc(b.Uu);a.reset();this.Fe(a,this.yA);a=this.oc(b.Tu);a.reset();this.Fe(a,this.vA);a=this.oc(b.Rq);a.reset();this.Fe(a,this.wA);a=this.oc(b.nA);a.reset();this.Fe(a,this.AA);a=this.oc(b.mA);a.reset();this.Fe(a,this.zA);a=this.oc(b.oA);a.reset();this.Fe(a,this.BA)},oc:function(a){return this.md[a]},Nm:function(a){return this.md[a]},X8:function(a,c){this.md[c]=a}};b.zR=function(){this.location=this.value=void 0;this.Qx={}};
b.Uh=b.ja.extend({ga:null,Gb:null,qf:null,Ag:null,Ab:null,gh:null,nM:!1,Le:function(a,c){if(null==a)return!1;for(var d=!0,e=null,f=0;f<this.gh.length;f++)this.gh[f].location==a&&(e=this.gh[f]);e?e.value==c?d=!1:e.value=c:(e=new b.zR,e.location=a,e.value=c,this.gh.push(e));return d},i8:function(){return"\x3cCCGLProgram \x3d "+this.toString()+" | Program \x3d "+this.Gb.toString()+", VertexShader \x3d "+this.qf.toString()+", FragmentShader \x3d "+this.Ag.toString()+"\x3e"},wJ:function(a,c,d){if(!d||
!a)return!1;this.ga.shaderSource(a,"precision highp float;        \nuniform mat4 CC_PMatrix;         \nuniform mat4 CC_MVMatrix;        \nuniform mat4 CC_MVPMatrix;       \nuniform vec4 CC_Time;            \nuniform vec4 CC_SinTime;         \nuniform vec4 CC_CosTime;         \nuniform vec4 CC_Random01;        \n//CC INCLUDES END                \n"+d);this.ga.compileShader(a);d=this.ga.getShaderParameter(a,this.ga.COMPILE_STATUS);d||(b.log("cocos2d: ERROR: Failed to compile shader:\n"+this.ga.getShaderSource(a)),
c==this.ga.VERTEX_SHADER?b.log("cocos2d: \n"+this.i5()):b.log("cocos2d: \n"+this.D_()));return 1==d},ctor:function(a,c,d){this.Ab=[];this.gh=[];this.ga=d||b.k;a&&c&&this.F(a,c)},T9:function(){this.gh=this.Ab=this.Ag=this.qf=null;this.ga.deleteProgram(this.Gb)},Di:function(a,c){var d=this.ga;this.Gb=d.createProgram();this.Ag=this.qf=null;a&&(this.qf=d.createShader(d.VERTEX_SHADER),this.wJ(this.qf,d.VERTEX_SHADER,a)||b.log("cocos2d: ERROR: Failed to compile vertex shader"));c&&(this.Ag=d.createShader(d.FRAGMENT_SHADER),
this.wJ(this.Ag,d.FRAGMENT_SHADER,c)||b.log("cocos2d: ERROR: Failed to compile fragment shader"));this.qf&&d.attachShader(this.Gb,this.qf);b.$o();this.Ag&&d.attachShader(this.Gb,this.Ag);this.gh.length=0;b.$o();return!0},td:function(a,c){return this.Di(a,c)},i1:function(a,c){var d=b.V.Fd(a);if(!d)throw"Please load the resource firset : "+a;var e=b.V.Fd(c);if(!e)throw"Please load the resource firset : "+c;return this.Di(d,e)},F:function(a,c){return this.i1(a,c)},rd:function(a,c){this.ga.bindAttribLocation(this.Gb,
c,a)},link:function(){if(!this.Gb)return b.log("cc.GLProgram.link(): Cannot link invalid program"),!1;this.ga.linkProgram(this.Gb);this.qf&&this.ga.deleteShader(this.qf);this.Ag&&this.ga.deleteShader(this.Ag);this.Ag=this.qf=null;return b.Ic.Pe[b.Ic.Yg.bt]&&!this.ga.getProgramParameter(this.Gb,this.ga.LINK_STATUS)?(b.log("cocos2d: ERROR: Failed to link program: "+this.ga.getProgramInfoLog(this.Gb)),b.R0(this.Gb),this.Gb=null,!1):!0},Mc:function(){b.tF(this.Gb)},e5:function(){this.Ab[b.LA]=this.ga.getUniformLocation(this.Gb,
b.AU);this.Ab[b.KA]=this.ga.getUniformLocation(this.Gb,b.yU);this.Ab[b.hr]=this.ga.getUniformLocation(this.Gb,b.zU);this.Ab[b.PA]=this.ga.getUniformLocation(this.Gb,b.EU);this.Ab[b.OA]=this.ga.getUniformLocation(this.Gb,b.DU);this.Ab[b.JA]=this.ga.getUniformLocation(this.Gb,b.xU);this.nM=null!=this.Ab[b.PA]||null!=this.Ab[b.OA]||null!=this.Ab[b.JA];this.Ab[b.MA]=this.ga.getUniformLocation(this.Gb,b.BU);this.Ab[b.NA]=this.ga.getUniformLocation(this.Gb,b.CU);this.Mc();this.LP(this.Ab[b.NA],0)},Jca:function(a){if(!a)throw"cc.GLProgram.getUniformLocationForName(): uniform name should be non-null";
if(!this.Gb)throw"cc.GLProgram.getUniformLocationForName(): Invalid operation. Cannot get uniform location when program is not initialized";return this.ga.getUniformLocation(this.Gb,a)},Kca:function(){return this.Ab[b.hr]},Lca:function(){return this.Ab[b.NA]},LP:function(a,c){this.Le(a,c)&&this.ga.uniform1i(a,c)},Cja:function(a,c,d){this.Le(a,[c,d])&&this.ga.uniform2i(a,c,d)},Fja:function(a,c,d,e){this.Le(a,[c,d,e])&&this.ga.uniform3i(a,c,d,e)},Ija:function(a,c,d,e,f){this.Le(a,[c,d,e,f])&&this.ga.uniform4i(a,
c,d,e,f)},Dja:function(a,c){this.Le(a,c)&&this.ga.uniform2iv(a,c)},Gja:function(a,c){this.Le(a,c)&&this.ga.uniform3iv(a,c)},Jja:function(a,c){this.Le(a,c)&&this.ga.uniform4iv(a,c)},Aja:function(a,c){this.LP(a,c)},Vt:function(a,c){this.Le(a,c)&&this.ga.uniform1f(a,c)},k4:function(a,c,d){this.Le(a,[c,d])&&this.ga.uniform2f(a,c,d)},l4:function(a,c,d,e){this.Le(a,[c,d,e])&&this.ga.uniform3f(a,c,d,e)},Wt:function(a,c,d,e,f){this.Le(a,[c,d,e,f])&&this.ga.uniform4f(a,c,d,e,f)},Bja:function(a,c){this.Le(a,
c)&&this.ga.uniform2fv(a,c)},Eja:function(a,c){this.Le(a,c)&&this.ga.uniform3fv(a,c)},Hja:function(a,c){this.Le(a,c)&&this.ga.uniform4fv(a,c)},LG:function(a,c){this.Le(a,c)&&this.ga.uniformMatrix4fv(a,!1,c)},zja:function(){if(!(2>arguments.length))switch(arguments.length){case 2:this.Vt(arguments[0],arguments[1]);break;case 3:this.k4(arguments[0],arguments[1],arguments[2]);break;case 4:this.l4(arguments[0],arguments[1],arguments[2],arguments[3]);break;case 5:this.Wt(arguments[0],arguments[1],arguments[2],
arguments[3],arguments[4])}},Xt:function(){var a=new b.ca,c=new b.ca,d=new b.ca;b.gy(b.Si,a);b.gy(b.Ri,c);b.Fi(d,a,c);this.LG(this.Ab[b.LA],a.c,1);this.LG(this.Ab[b.KA],c.c,1);this.LG(this.Ab[b.hr],d.c,1);this.nM&&(a=b.D,a=a.bx*a.pr,this.Wt(this.Ab[b.PA],a/10,a,2*a,4*a),this.Wt(this.Ab[b.OA],a/8,a/4,a/2,Math.sin(a)),this.Wt(this.Ab[b.JA],a/8,a/4,a/2,Math.cos(a)));-1!=this.Ab[b.MA]&&this.Wt(this.Ab[b.MA],Math.random(),Math.random(),Math.random(),Math.random())},xja:function(){this.ga.uniformMatrix4fv(this.Ab[b.hr],
!1,b.j0())},yja:function(a){b.Fi(a,b.kl.top,b.Hj.top);this.ga.uniformMatrix4fv(this.Ab[b.hr],!1,a.c)},$e:function(){this.ga.uniformMatrix4fv(this.Ab[b.KA],!1,b.Hj.top.c);this.ga.uniformMatrix4fv(this.Ab[b.LA],!1,b.kl.top.c)},i5:function(){return this.ga.getShaderInfoLog(this.qf)},Qca:function(){return this.ga.getShaderInfoLog(this.qf)},eba:function(){return this.ga.getShaderInfoLog(this.qf)},D_:function(){return this.ga.getShaderInfoLog(this.Ag)},Jga:function(){return this.ga.getProgramInfoLog(this.Gb)},
$ba:function(){return this.ga.getProgramInfoLog(this.Gb)},reset:function(){this.Ag=this.qf=null;this.Ab.length=0;this.ga.deleteProgram(this.Gb);this.Gb=null;for(var a=0;a<this.gh.length;a++)this.gh[a].value=null,this.gh[a]=null;this.gh.length=0},Nm:function(){return this.Gb},My:function(){},Ki:function(){}});b.Uh.create=function(a,c){return new b.Uh(a,c)};b.CJ=-1;b.jE=!1;b.iE=!1;b.kE=!1;b.$g&&(b.ZR=16,b.Ar=-1,b.zr=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],b.Jn=-1,b.In=-1,b.OU=0,b.sA&&(b.gM=0));b.Zca=function(){b.G1();b.CJ=-1;b.jE=!1;b.iE=!1;b.kE=!1;if(b.$g){b.Ar=-1;for(var a=0;a<b.ZR;a++)b.zr[a]=-1;b.Jn=-1;b.In=-1;b.OU=0}};b.tF=function(a){a!==b.Ar&&(b.Ar=a,b.k.useProgram(a))};b.$g||(b.tF=function(a){b.k.useProgram(a)});b.R0=function(a){b.$g&&a===b.Ar&&(b.Ar=-1);gl.deleteProgram(a)};
b.Ih=function(a,c){if(a!==b.Jn||c!==b.In)b.Jn=a,b.In=c,b.Qy(a,c)};b.Qy=function(a,c){var d=b.k;a===d.ONE&&c===d.ZERO?d.disable(d.BLEND):(d.enable(d.BLEND),b.k.blendFunc(a,c))};b.RN=function(a,c){if(a!==b.Jn||c!==b.In){b.Jn=a;b.In=c;var d=b.k;a===d.ONE&&c===d.ZERO?d.disable(d.BLEND):(d.enable(d.BLEND),d.blendFuncSeparate(d.SRC_ALPHA,c,a,c))}};b.$g||(b.Ih=b.Qy);b.Wca=function(){var a=b.k;a.blendEquation(a.FUNC_ADD);b.$g?b.Qy(b.Jn,b.In):b.Qy(a.hc,a.gc)};b.AP=function(){b.CJ=-1};
b.Jc=function(a){var c=b.k,d=a&b.Pd;d!==b.jE&&(d?c.enableVertexAttribArray(b.sb):c.disableVertexAttribArray(b.sb),b.jE=d);d=a&b.gv;d!==b.iE&&(d?c.enableVertexAttribArray(b.ze):c.disableVertexAttribArray(b.ze),b.iE=d);a&=b.Cn;a!==b.kE&&(a?c.enableVertexAttribArray(b.xd):c.disableVertexAttribArray(b.xd),b.kE=a)};b.te=function(a){b.sF(0,a)};b.sF=function(a,c){if(b.zr[a]!=c){b.zr[a]=c;var d=b.k;d.activeTexture(d.TEXTURE0+a);c?d.bindTexture(d.TEXTURE_2D,c.Zd):d.bindTexture(d.TEXTURE_2D,null)}};
b.$g||(b.sF=function(a,c){var d=b.k;d.activeTexture(d.TEXTURE0+a);c?d.bindTexture(d.TEXTURE_2D,c.Zd):d.bindTexture(d.TEXTURE_2D,null)});b.Xca=function(a){b.S0(a)};b.S0=function(a){b.$g&&a==b.zr[0]&&(b.zr[0]=-1);b.k.deleteTexture(a)};b.Vca=function(a){b.sA&&b.$g&&b.gM!=a&&(b.gM=a)};b.Yca=function(){};b.w6=0;b.x6=1;b.y6=2;b.Zj=function(a){a-=1;a|=a>>1;a|=a>>2;a|=a>>4;a|=a>>8;return(a|a>>16)+1};
b.xn=b.q.extend({sprite:null,rx:0,IE:0,Vs:!1,de:null,Be:null,Wv:0,Br:0,mi:0,L:null,Es:null,PY:null,oi:b.da.Ti,Yi:null,JE:0,xB:null,tb:"RenderTexture",ctor:null,xr:function(a,c,d,e){b.q.prototype.ctor.call(this);this.Yi=b.color(255,255,255,255);this.xB="rgba(255,255,255,1)";this.de=b.Ob("canvas");this.Be=this.de.getContext("2d");this.anchorY=this.anchorX=0;void 0!==a&&void 0!==c&&(d=d||b.da.Ti,this.$x(a,c,d,e||0))},yr:function(a,c,d,e){b.q.prototype.ctor.call(this);this.Yi=b.color(0,0,0,0);void 0!==
a&&void 0!==c&&(d=d||b.da.Ti,this.$x(a,c,d,e||0))},Oe:null,qV:function(){b.q.prototype.ub.call(this);this.de=this.Be=null},rV:function(){b.q.prototype.ub.call(this);this.Es=null;var a=b.k;a.deleteFramebuffer(this.Wv);this.Br&&a.deleteRenderbuffer(this.Br);this.PY=null},JN:function(){return this.sprite},Zy:function(a){this.sprite=a},$x:null,PW:function(a,c){var d=this.de,e=b.pb();d.width=0|a*e;d.height=0|c*e;this.Be.translate(0,d.height);e=new b.da;e.sd(d);e.Nb();this.sprite=b.Q.create(e);return!0},
QW:function(a,c,d,e){d==b.da.Jq&&b.log("cc.RenderTexture._initWithWidthAndHeightForWebGL() : only RGB and RGBA formats are valid for a render texture;");var f=b.k,g=b.pb();a=0|a*g;c=0|c*g;this.mi=f.getParameter(f.FRAMEBUFFER_BINDING);var h;b.ap.Zw?(g=a,h=c):(g=b.Zj(a),h=b.Zj(c));for(var k=new Uint8Array(g*h*4),m=0;m<g*h*4;m++)k[m]=0;this.oi=d;this.L=new b.da;if(!this.L)return!1;m=this.L;m.pt(k,this.oi,g,h,H(a,c));d=f.getParameter(f.RENDERBUFFER_BINDING);if(b.ap.Zo("GL_QCOM")){this.Es=new b.da;if(!this.Es)return!1;
this.Es.pt(k,this.oi,g,h,H(a,c))}this.Wv=f.createFramebuffer();f.bindFramebuffer(f.FRAMEBUFFER,this.Wv);f.framebufferTexture2D(f.FRAMEBUFFER,f.COLOR_ATTACHMENT0,f.TEXTURE_2D,m.Zd,0);0!=e&&(this.Br=f.createRenderbuffer(),f.bindRenderbuffer(f.RENDERBUFFER,this.Br),f.renderbufferStorage(f.RENDERBUFFER,e,g,h),f.framebufferRenderbuffer(f.FRAMEBUFFER,f.DEPTH_ATTACHMENT,f.RENDERBUFFER,this.Br));f.checkFramebufferStatus(f.FRAMEBUFFER)!==f.FRAMEBUFFER_COMPLETE&&b.log("Could not attach texture to the framebuffer");
m.tG();a=this.sprite=b.Q.create(m);a.scaleY=-1;a.Ve(f.ONE,f.ONE_MINUS_SRC_ALPHA);f.bindRenderbuffer(f.RENDERBUFFER,d);f.bindFramebuffer(f.FRAMEBUFFER,this.mi);this.Vs=!1;this.I(a);return!0},zh:null,dV:function(){b.k=this.Be;b.view.NL()},eV:function(){b.Ei(b.Si);b.Qm();b.Ei(b.Ri);b.Qm();var a=b.D;a.bn(a.si);var c=this.L.O,d=b.D.kt(),a=d.width/c.width,d=d.height/c.height,e=b.k;e.viewport(0,0,c.width,c.height);c=new b.ca;b.OF(c,-1/a,1/a,-1/d,1/d,-1,1);b.wp(c);this.mi=e.getParameter(e.FRAMEBUFFER_BINDING);
e.bindFramebuffer(e.FRAMEBUFFER,this.Wv);b.ap.Zo("GL_QCOM")&&(e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.Es.Zd,0),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.L.Zd,0))},AZ:function(a,c,d,e,f,g){var h=b.k;f=f||h.COLOR_BUFFER_BIT;g=g||h.COLOR_BUFFER_BIT|h.DEPTH_BUFFER_BIT;this.lB(a,c,d,e,f,g,h.COLOR_BUFFER_BIT|h.DEPTH_BUFFER_BIT|h.STENCIL_BUFFER_BIT)},lB:null,fV:function(a,c,d,e){this.zh();a=
a||0;c=c||0;d=d||0;e=isNaN(e)?1:e;var f=this.Be,g=this.de;f.save();f.fillStyle="rgba("+(0|a)+","+(0|c)+","+(0|d)+","+e/255+")";f.clearRect(0,0,g.width,-g.height);f.fillRect(0,0,g.width,-g.height);f.restore()},gV:function(a,c,d,e,f,g,h){this.zh();var k=b.k,m=[0,0,0,0],p=0,r=0;h&k.COLOR_BUFFER_BIT&&(m=k.getParameter(k.COLOR_CLEAR_VALUE),k.clearColor(a,c,d,e));h&k.DEPTH_BUFFER_BIT&&(p=k.getParameter(k.DEPTH_CLEAR_VALUE),k.clearDepth(f));h&k.STENCIL_BUFFER_BIT&&(r=k.getParameter(k.STENCIL_CLEAR_VALUE),
k.clearStencil(g));k.clear(h);h&k.COLOR_BUFFER_BIT&&k.clearColor(m[0],m[1],m[2],m[3]);h&k.DEPTH_BUFFER_BIT&&k.clearDepth(p);h&k.STENCIL_BUFFER_BIT&&k.clearStencil(r)},end:null,NV:function(){b.k=b.fX;b.view.AL()},OV:function(){var a=b.k,c=b.D;a.bindFramebuffer(a.FRAMEBUFFER,this.mi);c.MP();b.Ei(b.Si);b.Pm();b.Ei(b.Ri);b.Pm()},clear:function(a,c,d,e){this.AZ(a,c,d,e);this.end()},clearRect:null,uV:function(a,c,d,e){this.Be.clearRect(a,c,d,-e)},vV:function(){},clearDepth:null,sV:function(){b.log("clearDepth isn't supported on Cocos2d-Html5")},
tV:function(a){this.zh();var c=b.k,d=c.getParameter(c.DEPTH_CLEAR_VALUE);c.clearDepth(a);c.clear(c.DEPTH_BUFFER_BIT);c.clearDepth(d);this.end()},clearStencil:null,wV:function(){b.log("clearDepth isn't supported on Cocos2d-Html5")},xV:function(a){var c=b.k,d=c.getParameter(c.STENCIL_CLEAR_VALUE);c.clearStencil(a);c.clear(c.STENCIL_BUFFER_BIT);c.clearStencil(d)},T:null,um:function(a){this.Ac&&(a=a||b.k,a.save(),this.Y(a),this.transform(a),this.sprite.T(),a.restore(),this.arrivalOrder=0)},Ps:function(a){if(this.Ac){b.Qm();
var c=this.grid;c&&c.wf()&&(c.Xs(),this.ez());this.transform(a);this.sprite.T();this.Y(a);c&&c.wf()&&c.Us(this);b.Pm();this.arrivalOrder=0}},Y:null,Rl:function(a){a=a||b.k;if(this.Vs){this.zh();if(this.rx){var c=this.de;a.save();a.fillStyle=this.xB;a.clearRect(0,0,c.width,-c.height);a.fillRect(0,0,c.width,-c.height);a.restore()}this.Uc();a=this.s;for(var c=a.length,d=this.sprite,e=0;e<c;e++){var f=a[e];f!=d&&f.T()}this.end()}},$i:function(){var a=b.k;if(this.Vs){this.zh();var c=this.rx;if(c){var d=
[0,0,0,0],e=0,f=0;c&a.COLOR_BUFFER_BIT&&(d=a.getParameter(a.COLOR_CLEAR_VALUE),a.clearColor(this.Yi.r/255,this.Yi.g/255,this.Yi.b/255,this.Yi.a/255));c&a.DEPTH_BUFFER_BIT&&(e=a.getParameter(a.DEPTH_CLEAR_VALUE),a.clearDepth(this.IE));c&a.STENCIL_BUFFER_BIT&&(f=a.getParameter(a.STENCIL_CLEAR_VALUE),a.clearStencil(this.JE));a.clear(c);c&a.COLOR_BUFFER_BIT&&a.clearColor(d[0],d[1],d[2],d[3]);c&a.DEPTH_BUFFER_BIT&&a.clearDepth(e);c&a.STENCIL_BUFFER_BIT&&a.clearStencil(f)}this.Uc();a=this.s;for(c=0;c<a.length;c++)d=
a[c],d!=this.sprite&&d.T();this.end()}},Lfa:function(){b.log("saveToFile isn't supported on cocos2d-html5");return null},y8:function(a,c,d,e,f){for(var g=0;g<f;g++)a[c+g]=d[e+g]},Bha:function(){b.log("saveToFile isn't supported on Cocos2d-Html5")},Bfa:function(){b.log("listenToBackground isn't supported on Cocos2d-Html5")},Cfa:function(){b.log("listenToForeground isn't supported on Cocos2d-Html5")},Caa:function(){return this.rx},Wha:function(a){this.rx=a},L_:function(){return this.Yi},vG:null,XX:function(a){var c=
this.Yi;c.r=a.r;c.g=a.g;c.b=a.b;c.a=a.a;this.xB="rgba("+(0|a.r)+","+(0|a.g)+","+(0|a.b)+","+a.a/255+")"},YX:function(a){var c=this.Yi;c.r=a.r;c.g=a.g;c.b=a.b;c.a=a.a},Baa:function(){return this.IE},Vha:function(a){this.IE=a},Daa:function(){return this.JE},Xha:function(a){this.JE=a},kda:function(){return this.Vs},Oha:function(a){this.Vs=a}});n=b.xn.prototype;
b.A==b.Z?(n.ctor=n.yr,n.Oe=n.rV,n.$x=n.QW,n.zh=n.eV,n.lB=n.gV,n.end=n.OV,n.clearRect=n.vV,n.clearDepth=n.tV,n.clearStencil=n.xV,n.T=n.Ps,n.Y=n.$i,n.vG=n.YX):(n.ctor=n.xr,n.Oe=n.qV,n.$x=n.PW,n.zh=n.dV,n.lB=n.fV,n.end=n.NV,n.clearRect=n.uV,n.clearDepth=n.sV,n.clearStencil=n.wV,n.T=n.um,n.Y=n.Rl,n.vG=n.XX);b.f(n,"clearColorVal",n.L_,n.vG);b.xn.create=function(a,c,d,e){return new b.xn(a,c,d,e)};b.Wh=b.Oi.extend({Ib:null,wC:null,na:!1,gb:null,tb:"LabelAtlas",ctor:function(a,c,d,e,f){b.Oi.prototype.ctor.call(this);c&&b.Wh.prototype.td.call(this,a,c,d,e,f)},au:function(){return this.na},$d:function(a,c){this.gb||(this.gb=[]);this.gb.push({Ah:a,Zf:c})},Rd:function(){if(this.gb){this.na=!0;for(var a=this.gb,c=0,d=a.length;c<d;c++){var e=a[c];e.Ah.call(e.Zf,this)}a.length=0}},td:function(a,c,d,e,f){var g=a+"",h,k;if(void 0===d){d=b.V.Fd(c);if(1!==parseInt(d.version,10))return b.log("cc.LabelAtlas.initWithString(): Unsupported version. Upgrade cocos2d version"),
!1;c=b.path.Yo(c,d.textureFilename);e=b.pb();h=parseInt(d.itemWidth,10)/e;k=parseInt(d.itemHeight,10)/e;d=String.fromCharCode(parseInt(d.firstChar,10))}else h=d||0,k=e||0,d=f||" ";var m=null,m=c instanceof b.da?c:b.Ba.nc(c);(this.na=c=m.wc)||m.$d(function(){this.ta(m,h,k,g.length);this.string=g;this.Rd()},this);return this.ta(m,h,k,g.length)?(this.wC=d,this.string=g,!0):!1},$a:function(a){b.Oi.prototype.$a.call(this,a);this.$p()},dl:function(){return this.Ib},Y:function(a){b.Oi.prototype.Y.call(this,
a);b.QR&&(a=this.size,b.De.ae([C(0,0),C(a.width,0),C(a.width,a.height),C(0,a.height)],4,!0))},dB:function(a,c,d){a.aX=!0;b.ia.prototype.I.call(this,a,c,d)},$p:null,QY:function(){for(var a=this.Ib||"",c=a.length,d=this.texture,e=this.ii,f=this.jh,g=0;g<c;g++){var h=a.charCodeAt(g)-this.wC.charCodeAt(0),h=O(parseInt(h%this.vo,10)*e,parseInt(h/this.vo,10)*f,e,f),k=a.charCodeAt(g),m=this.Dh(g);m?32==k?(m.F(),m.hb(O(0,0,10,10),!1,H(0,0))):(m.ta(d,h),m.visible=!0,m.opacity=this.Ca):(m=new b.Q,32==k?(m.F(),
m.hb(O(0,0,10,10),!1,H(0,0))):m.ta(d,h),b.ia.prototype.I.call(this,m,0,g));m.P(g*e+e/2,f/2)}},RY:function(){var a=this.Ib,c=a.length,d=this.textureAtlas,e=d.texture,f=e.pixelsWidth,e=e.pixelsHeight,g=this.ii,h=this.jh;this.ew||(g=this.ii*b.pb(),h=this.jh*b.pb());c>d.yd&&b.log("cc.LabelAtlas._updateAtlasValues(): Invalid String length");for(var k=d.quads,m=this.Ea,m={r:m.r,g:m.g,b:m.b,a:this.Ca},p=this.ii,r=0;r<c;r++){var s=a.charCodeAt(r)-this.wC.charCodeAt(0),u=s%this.vo,t=0|s/this.vo,v;b.pn?(u=
(2*u*g+1)/(2*f),s=u+(2*g-2)/(2*f),t=(2*t*h+1)/(2*e),v=t+(2*h-2)/(2*e)):(u=u*g/f,s=u+g/f,t=t*h/e,v=t+h/e);var w=k[r],y=w.M,B=w.K,G=w.G,w=w.N;y.l.ea=u;y.l.fa=t;B.l.ea=s;B.l.fa=t;G.l.ea=u;G.l.fa=v;w.l.ea=s;w.l.fa=v;G.i.x=r*p;G.i.y=0;G.i.z=0;w.i.x=r*p+p;w.i.y=0;w.i.z=0;y.i.x=r*p;y.i.y=this.jh;y.i.z=0;B.i.x=r*p+p;B.i.y=this.jh;B.i.z=0;y.t=m;B.t=m;G.t=m;w.t=m}0<c&&(d.dirty=!0,a=d.totalQuads,c>a&&d.WN(c-a))},Cc:null,uY:function(a){a=String(a);var c=a.length;this.Ib=a;this.width=c*this.ii;this.height=this.jh;
if(this.s){a=this.s;for(var c=a.length,d=0;d<c;d++){var e=a[d];e&&!e.aX&&(e.visible=!1)}}this.$p();this.quadsToDraw=c},wY:function(a){a=String(a);var c=a.length;c>this.textureAtlas.totalQuads&&this.textureAtlas.nG(c);this.Ib=a;this.width=c*this.ii;this.height=this.jh;this.$p();this.quadsToDraw=c},Aa:null,xD:function(a){if(this.Ca!==a){b.Oi.prototype.Aa.call(this,a);for(var c=this.s,d=0,e=c.length;d<e;d++)c[d]&&(c[d].opacity=a)}},yD:function(a){this.Vd!==a&&b.Oi.prototype.Aa.call(this,a)}});n=b.Wh.prototype;
b.A===b.Z?(n.$p=n.RY,n.Cc=n.wY,n.Aa=n.yD):(n.$p=n.QY,n.Cc=n.uY,n.Aa=n.xD,n.I=n.dB);b.f(n,"opacity",n.Re,n.Aa);b.f(n,"string",n.dl,n.Cc);b.Wh.create=function(a,c,d,e,f){return new b.Wh(a,c,d,e,f)};b.D6=-1;
b.Vj=b.ye.extend({yb:!0,Qa:!1,Ib:"",Gf:null,Zv:"",qo:"",nr:b.Vq,Qs:-1,VK:!1,fw:null,CL:null,Ca:255,Wd:255,Ea:null,cc:null,zd:!0,fe:!0,na:!1,gb:null,tb:"LabelBMFont",OL:function(a,c){c?this.qo=a:this.Ib=a;var d=this.s;if(d)for(var e=0;e<d.length;e++){var f=d[e];f&&f.NP(!1)}this.na&&(this.xx(),c&&this.mg())},ctor:function(a,c,d,e,f){b.ye.prototype.ctor.call(this);this.fw=C(0,0);this.Ea=b.color(255,255,255,255);this.cc=b.color(255,255,255,255);this.CL=[];this.td(a,c,d,e,f)},au:function(){return this.na},$d:function(a,
c){this.gb||(this.gb=[]);this.gb.push({Ah:a,Zf:c})},Rd:function(){if(this.gb){for(var a=this.gb,c=0,d=a.length;c<d;c++){var e=a[c];e.Ah.call(e.Zf,this)}a.length=0}},Y:function(a){b.ye.prototype.Y.call(this,a);if(b.RR){a=this.Eh();var c=C(0|-this.ib.x,0|-this.ib.y);a=[C(c.x,c.y),C(c.x+a.width,c.y),C(c.x+a.width,c.y+a.height),C(c.x,c.y+a.height)];b.De.Rp(0,255,0,255);b.De.ae(a,4,!0)}},$a:function(a){var c=this.Ea,d=this.cc;if(d.r!=a.r||d.g!=a.g||d.b!=a.b||d.a!=a.a)c.r=d.r=a.r,c.g=d.g=a.g,c.b=d.b=a.b,
this.na&&this.zd&&(c=b.color.WHITE,(d=this.Tb)&&d.yb&&d.cascadeColor&&(c=d.Mm()),this.Pb(c)),void 0===a.a||a.Ss||this.Aa(a.a)},ue:function(){return this.Qa},Jd:function(a){this.Qa=a;if(a=this.s)for(var c=0;c<a.length;c++){var d=a[c];d&&d.yb&&(d.opacityModifyRGB=this.Qa)}},Re:function(){return this.Wd},oN:function(){return this.Ca},Aa:function(a){this.Ca=this.Wd=a;if(this.fe){var c=255,d=this.Tb;d&&d.yb&&d.cascadeOpacity&&(c=d.Ca);this.Mb(c)}this.Ea.a=this.cc.a=a},Mb:function(a){this.Ca=this.Wd*a/
255;a=this.s;for(var c=0;c<a.length;c++){var d=a[c];b.A==b.Z?d.Mb(this.Ca):(b.ia.prototype.Mb.call(d,this.Ca),d.Ka())}this.qk()},rt:function(){return!1},Qp:function(a){this.fe=a},Qe:function(){var a=this.cc;return b.color(a.r,a.g,a.b,a.a)},Mm:function(){return this.Ea},Pb:function(a){var c=this.Ea,d=this.cc;c.r=d.r*a.r/255;c.g=d.g*a.g/255;c.b=d.b*a.b/255;a=this.s;for(c=0;c<a.length;c++)d=a[c],b.A==b.Z?d.Pb(this.Ea):(b.ia.prototype.Pb.call(d,this.Ea),d.Ka());this.qk()},qk:function(){if(b.A!=b.Z){var a,
c=this.texture;c&&0<c.width&&(a=c.Db)&&(c=b.Ba.Kx(this.le.Db))&&(a instanceof HTMLCanvasElement&&!this.bd?b.lp(a,c,this.Ea,null,a):(a=b.lp(a,c,this.Ea),c=new b.da,c.sd(a),c.Nb(),this.texture=c))}},qt:function(){return!1},Pp:function(a){this.zd=a},F:function(){return this.td(null,null,null,null,null)},td:function(a,c,d,e,f){a=a||"";this.Gf&&b.log("cc.LabelBMFont.initWithString(): re-init is no longer supported");if(c){var g=b.V.Fd(c);if(!g)return b.log("cc.LabelBMFont.initWithString(): Impossible to create font. Please check file"),
!1;this.Gf=g;this.Zv=c;c=b.Ba.nc(g.uM);(this.na=g=c.wc)||c.$d(function(a){this.na=!0;this.ta(a,this.qo.length);this.Cc(this.qo,!0);this.Rd()},this)}else c=new b.da,g=new Image,c.sd(g),this.na=!1;return this.ta(c,a.length)?(this.nr=e||b.Xu,this.fw=f||C(0,0),this.Qs=null==d?-1:d,this.Ca=this.Wd=255,this.Ea=b.color(255,255,255,255),this.cc=b.color(255,255,255,255),this.zd=this.fe=!0,this.O.width=0,this.O.height=0,this.ml(0.5,0.5),b.A===b.Z&&(d=this.textureAtlas.texture,this.Qa=d.Ai(),e=this.CL=new b.Q,
e.ta(d,O(0,0,0,0),!1),e.batchNode=this),this.Cc(a,!0),!0):!1},xx:function(){var a=b.A,c=a===b.Da?this.texture:this.textureAtlas.texture,d=0,e=H(0,0),f=0,g=1,h=this.Ib,k=h?h.length:0;if(0!==k){var m,p=this.Gf,r=p.A1,s=p.LE,u=p.C_;for(m=0;m<k-1;m++)10==h.charCodeAt(m)&&g++;var t=s*g,g=-(s-s*g),v=-1;for(m=0;m<k;m++)if(s=h.charCodeAt(m),0!=s)if(10===s)d=0,g-=p.LE;else{var w=r[v<<16|s&65535]||0,y=u[s];if(y){var B=O(y.rect.x,y.rect.y,y.rect.width,y.rect.height),B=b.Kj(B);B.x+=this.fw.x;B.y+=this.fw.y;(v=
this.Dh(m))?32===s&&a===b.Da?v.hb(B,!1,H(0,0)):(v.hb(B,!1),v.visible=!0):(v=new b.Q,32===s&&a===b.Da&&(B=O(0,0,0,0)),v.ta(c,B,!1),v.BC=!0,this.I(v,0,m));v.opacityModifyRGB=this.Qa;b.A==b.Z?(v.Pb(this.Ea),v.Mb(this.Ca)):(b.ia.prototype.Pb.call(v,this.Ea),b.ia.prototype.Mb.call(v,this.Ca),v.Ka());B=C(d+y.oQ+0.5*y.rect.width+w,g+(p.LE-y.pQ)-0.5*B.height*b.pb());v.P(b.gG(B));d+=y.m5+w;v=s;f<d&&(f=d)}else b.log("cocos2d: LabelBMFont: character not found "+h[m])}e.width=f;e.height=t;this.be(b.QP(e))}},
xka:function(a){var c=this.s;if(c)for(var d=0,e=c.length;d<e;d++){var f=c[d];f&&(f.visible=!1)}this.Gf&&this.xx();a||this.mg()},dl:function(){return this.qo},Cc:function(a,c){a=String(a);null==c&&(c=!0);if(null==a||"string"!=typeof a)a+="";this.qo=a;this.OL(a,c)},vY:function(a){this.Cc(a,!1)},Sha:function(a){this.Cc(a,!0)},mg:function(){this.string=this.qo;if(0<this.Qs){for(var a=this.Ib.length,c=[],d=[],e=1,f=0,g=!1,h=!1,k=-1,m=-1,p=0,r,s=0,u=this.s.length;s<u;s++){for(var t=0;!(r=this.Dh(s+p+t));)t++;
p+=t;if(f>=a)break;var v=this.Ib[f];h||(m=this.aC(r),h=!0);g||(k=m,g=!0);if(10==v.charCodeAt(0)){d.push("\n");c=c.concat(d);d.length=0;g=h=!1;k=m=-1;s--;p-=t;e++;if(f>=a)break;m||(m=this.aC(r),h=!0);k||(k=m,g=!0);f++}else if(b.LF(v))d.push(v),c=c.concat(d),d.length=0,h=!1,m=-1,f++;else if(this.mW(r)-k>this.Qs)if(this.VK){b.kQ(d);d.push("\n");c=c.concat(d);d.length=0;g=h=!1;k=m=-1;e++;if(f>=a)break;m||(m=this.aC(r),h=!0);k||(k=m,g=!0);s--}else d.push(v),-1!=c.lastIndexOf(" ")?b.kQ(c):c=[],0<c.length&&
c.push("\n"),e++,g=!1,k=-1,f++;else d.push(v),f++}c=c.concat(d);s=c.length;r="";for(f=0;f<s;++f)r+=c[f];r+=String.fromCharCode(0);this.OL(r,!1)}if(this.nr!=b.Xu)for(c=f=0,a=this.Ib.length,d=[],e=0;e<a;e++)if(10==this.Ib[e].charCodeAt(0)||0==this.Ib[e].charCodeAt(0))if(s=0,g=d.length,0==g)c++;else{if(r=f+g-1+c,!(0>r)&&(s=this.Dh(r),null!=s)){s=s.Se()+s.fh()/2;h=0;switch(this.nr){case b.Vq:h=this.width/2-s/2;break;case b.Wq:h=this.width-s}if(0!=h)for(s=0;s<g;s++)(r=f+s+c,0>r||!(r=this.Dh(r)))||(r.x+=
h);f+=g;c++;d.length=0}}else d.push(this.Ib[f])},n3:function(a){this.nr=a;this.mg()},XV:function(){return this.nr},s3:function(a){this.Qs=a;this.mg()},XB:function(){return this.Qs},Cia:function(a){this.VK=a;this.mg()},dn:function(a,c){b.q.prototype.dn.call(this,a,c);this.mg()},St:function(a){b.q.prototype.St.call(this,a);this.mg()},Tt:function(a){b.q.prototype.Tt.call(this,a);this.mg()},mia:function(a){if(null!=a&&a!=this.Zv){var c=b.V.Fd(a);c?(this.Zv=a,this.Gf=c,a=b.Ba.nc(c.uM),this.na=c=a.wc,this.texture=
a,b.A===b.Da&&(this.le=this.texture),c?this.xx():a.$d(function(a){this.na=!0;this.texture=a;this.xx();this.qk();this.mg();this.Rd()},this)):b.log("cc.LabelBMFont.setFntFile() : Impossible to create font. Please check file")}},cba:function(){return this.Zv},ml:function(a,c){b.q.prototype.ml.call(this,a,c);this.mg()},LL:function(a){b.q.prototype.LL.call(this,a);this.mg()},pD:function(a){b.q.prototype.pD.call(this,a);this.mg()},qD:function(a){b.q.prototype.qD.call(this,a);this.mg()},c8:function(){},
u8:function(a,c){var d=0;if(this.AV.B1){var e=this.AV.B1[(a<<16|c&65535).toString()];e&&(d=e.h9)}return d},aC:function(a){return a.Se()*this.qa-a.fh()*this.qa*a.Oc.x},mW:function(a){return a.Se()*this.qa+a.fh()*this.qa*a.Oc.x}});n=b.Vj.prototype;b.f(n,"opacityModifyRGB",n.ue,n.Jd);b.f(n,"opacity",n.Re,n.Aa);b.f(n,"cascadeOpacity",n.rt,n.Qp);b.f(n,"color",n.Qe,n.$a);b.f(n,"cascadeColor",n.qt,n.Pp);b.f(n,"string",n.dl,n.vY);b.f(n,"boundingWidth",n.XB,n.s3);b.f(n,"textAlign",n.XV,n.n3);
b.Vj.create=function(a,c,d,e,f){return new b.Vj(a,c,d,e,f)};b.LF=function(a){a=a.charCodeAt(0);return 9<=a&&13>=a||32==a||133==a||160==a||5760==a||8192<=a&&8202>=a||8232==a||8233==a||8239==a||8287==a||12288==a};b.kQ=function(a){var c=a.length;if(!(0>=c)&&(c-=1,b.LF(a[c]))){for(var d=c-1;0<=d;--d)if(b.LF(a[d]))c=d;else break;b.g5(a,c)}};b.g5=function(a,c){var d=a.length;c>=d||0>c||a.splice(c,d)};
b.QV={BR:/info [^\n]*(\n|$)/gi,RQ:/common [^\n]*(\n|$)/gi,AS:/page [^\n]*(\n|$)/gi,QQ:/char [^\n]*(\n|$)/gi,IR:/kerning [^\n]*(\n|$)/gi,DR:/\w+=[^ \r\n]+/gi,CR:/^[\-]?\d+$/,hs:function(a){a=a.match(this.DR);var c={};if(a)for(var d=0,e=a.length;d<e;d++){var f=a[d],g=f.indexOf("\x3d"),h=f.substring(0,g),f=f.substring(g+1);f.match(this.CR)?f=parseInt(f):'"'==f[0]&&(f=f.substring(1,f.length-1));c[h]=f}return c},v2:function(a,c){var d={};this.hs(a.match(this.BR)[0]);var e=this.hs(a.match(this.RQ)[0]);
d.LE=e.lineHeight;if(b.A===b.Z){var f=b.ap.as;(e.scaleW>f.width||e.scaleH>f.height)&&b.log("cc.LabelBMFont._parseCommonArguments(): page can't be larger than supported")}1!==e.pages&&b.log("cc.LabelBMFont._parseCommonArguments(): only supports 1 page");e=this.hs(a.match(this.AS)[0]);0!==e.id&&b.log("cc.LabelBMFont._parseImageFileName() : file could not be found");d.uM=b.path.Yo(c,e.file);for(var g=a.match(this.QQ),h=d.C_={},e=0,f=g.length;e<f;e++){var k=this.hs(g[e]);h[k.id]={rect:{x:k.x,y:k.y,width:k.width,
height:k.height},oQ:k.xoffset,pQ:k.yoffset,m5:k.xadvance}}g=d.A1={};if(h=a.match(this.IR))for(e=0,f=h.length;e<f;e++)k=this.hs(h[e]),g[k.first<<16|k.second&65535]=k.amount;return d},load:function(a,c,d,e){var f=this;b.V.sy(a,function(a,d){if(a)return e(a);e(null,f.v2(d,c))})}};b.V.Lj(["fnt"],b.QV);b.FH=b.ia.extend({texture:null,ip:!1,Li:!1,o:null,As:0,PB:0,am:0,yC:0,Hk:0,ZC:0,SC:null,RC:null,Sa:null,Rn:null,Vf:null,dd:null,Sn:null,Io:null,tb:"MotionStreak",ctor:function(a,c,d,e,f){b.ia.prototype.ctor.call(this);this.Dg=C(0,0);this.o=new b.Sj(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA);this.lE=b.k.createBuffer();this.Li=this.ip=!1;this.texture=null;this.ZC=this.Hk=this.yC=this.am=this.PB=this.As=0;this.Io=this.Sn=this.dd=this.Vf=this.Rn=this.Sa=this.RC=this.SC=null;void 0!==f&&this.a1(a,c,d,e,f)},Oa:function(){return this.texture},
qb:function(a){this.texture!=a&&(this.texture=a)},Ch:function(){return this.o},Ve:function(a,c){void 0===c?this.o=a:(this.o.src=a,this.o.U=c)},Re:function(){b.log("cc.MotionStreak.getOpacity has not been supported.");return 0},Aa:function(){b.log("cc.MotionStreak.setOpacity has not been supported.")},Jd:function(){},ue:function(){return!1},ub:function(){b.q.prototype.ub.call(this);this.dd&&b.k.deleteBuffer(this.dd);this.Io&&b.k.deleteBuffer(this.Io);this.Sn&&b.k.deleteBuffer(this.Sn)},sda:function(){return this.ip},
lia:function(a){this.ip=a},Eda:function(){return this.Li},ija:function(a){this.Li=a},a1:function(a,c,d,e,f){if(!f)throw"cc.MotionStreak.initWithFade(): Invalid filename or texture";"string"===typeof f&&(f=b.Ba.nc(f));b.q.prototype.P.call(this,C(0,0));this.anchorY=this.anchorX=0;this.ignoreAnchor=!0;this.Li=!1;this.ip=!0;this.am=-1==c?d/5:c;this.am*=this.am;this.As=d;this.PB=1/a;a=(0|60*a)+2;this.Hk=0;this.RC=new Float32Array(a);this.SC=new Float32Array(2*a);this.Sa=new Float32Array(4*a);this.Vf=new Float32Array(4*
a);this.Rn=new Uint8Array(8*a);this.yC=a;a=b.k;this.dd=a.createBuffer();this.Io=a.createBuffer();this.Sn=a.createBuffer();this.o.src=a.SRC_ALPHA;this.o.U=a.ONE_MINUS_SRC_ALPHA;this.shaderProgram=b.Ld.oc(b.Ui);this.texture=f;this.color=e;this.gP();a.bindBuffer(a.ARRAY_BUFFER,this.dd);a.bufferData(a.ARRAY_BUFFER,this.Sa,a.DYNAMIC_DRAW);a.bindBuffer(a.ARRAY_BUFFER,this.Io);a.bufferData(a.ARRAY_BUFFER,this.Vf,a.DYNAMIC_DRAW);a.bindBuffer(a.ARRAY_BUFFER,this.Sn);a.bufferData(a.ARRAY_BUFFER,this.Rn,a.DYNAMIC_DRAW);
return!0},qka:function(a){this.color=a;for(var c=this.Rn,d=0,e=2*this.Hk;d<e;d++)c[4*d]=a.r,c[4*d+1]=a.g,c[4*d+2]=a.b},reset:function(){this.Hk=0},P:function(a,c){this.Li=!0;void 0===c?(this.Dg.x=a.x,this.Dg.y=a.y):(this.Dg.x=a,this.Dg.y=c)},Se:function(){return this.Dg.x},xP:function(a){this.Dg.x=a;this.Li||(this.Li=!0)},Kg:function(){return this.Dg.y},yP:function(a){this.Dg.y=a;this.Li||(this.Li=!0)},Y:function(a){1>=this.Hk||!this.texture||!this.texture.wc||(a=a||b.k,b.yt(this),b.Jc(b.Kl),b.Ih(this.o.src,
this.o.U),b.te(this.texture),a.bindBuffer(a.ARRAY_BUFFER,this.dd),a.bufferData(a.ARRAY_BUFFER,this.Sa,a.DYNAMIC_DRAW),a.vertexAttribPointer(b.sb,2,a.FLOAT,!1,0,0),a.bindBuffer(a.ARRAY_BUFFER,this.Io),a.bufferData(a.ARRAY_BUFFER,this.Vf,a.DYNAMIC_DRAW),a.vertexAttribPointer(b.xd,2,a.FLOAT,!1,0,0),a.bindBuffer(a.ARRAY_BUFFER,this.Sn),a.bufferData(a.ARRAY_BUFFER,this.Rn,a.DYNAMIC_DRAW),a.vertexAttribPointer(b.ze,4,a.UNSIGNED_BYTE,!0,0,0),a.drawArrays(a.TRIANGLE_STRIP,0,2*this.Hk),b.$f++)},update:function(a){if(this.Li){a*=
this.PB;var c,d,e,f,g=0,h=this.Hk,k=this.RC,m=this.SC,p=this.Sa,r=this.Rn;for(e=0;e<h;e++)k[e]-=a,0>=k[e]?g++:(c=e-g,0<g?(k[c]=k[e],m[2*c]=m[2*e],m[2*c+1]=m[2*e+1],f=2*e,d=2*c,p[2*d]=p[2*f],p[2*d+1]=p[2*f+1],p[2*(d+1)]=p[2*(f+1)],p[2*(d+1)+1]=p[2*(f+1)+1],f*=4,d*=4,r[d+0]=r[f+0],r[d+1]=r[f+1],r[d+2]=r[f+2],r[d+4]=r[f+4],r[d+5]=r[f+5],r[d+6]=r[f+6]):d=8*c,c=255*k[c],r[d+3]=c,r[d+7]=c);h-=g;e=!0;h>=this.yC?e=!1:0<h&&(a=1==h?!1:b.JO(C(m[2*(h-2)],m[2*(h-2)+1]),this.Dg)<2*this.am,b.JO(C(m[2*(h-1)],m[2*
(h-1)+1]),this.Dg)<this.am||a)&&(e=!1);e&&(m[2*h]=this.Dg.x,m[2*h+1]=this.Dg.y,k[h]=1,e=8*h,k=this.Ea,r[e]=k.r,r[e+1]=k.g,r[e+2]=k.b,r[e+4]=k.r,r[e+5]=k.g,r[e+6]=k.b,r[e+3]=255,r[e+7]=255,0<h&&this.ip&&(1<h?b.WG(m,this.As,this.Sa,h,1):b.WG(m,this.As,this.Sa,0,2)),h++);this.ip||b.WG(m,this.As,this.Sa,0,h);if(h&&this.ZC!=h){m=1/h;r=this.Vf;for(e=0;e<h;e++)r[4*e]=0,r[4*e+1]=m*e,r[2*(2*e+1)]=1,r[2*(2*e+1)+1]=m*e;this.ZC=h}this.Hk=h}}});b.FH.create=function(a,c,d,e,f){return new b.FH(a,c,d,e,f)};b.Rz=b.q.extend({grid:null,pe:null,gt:function(){return this.grid},H3:function(a){this.grid=a},HG:function(a){this.pe=a},I:function(a,c,d){b.q.prototype.I.call(this,a,c,d);a&&!this.pe&&(this.pe=a)},T:function(){if(this.Ac){var a=b.A==b.Z,c=this.grid;a&&c&&c.nk&&c.Xs();this.transform();var d=this.s;if(d&&0<d.length){var e=d.length;this.Uc();for(i=0;i<e;i++){var f=d[i];f&&f.T()}}a&&c&&c.nk&&c.Us(this.pe)}},OY:function(){var a=this.aE,c=b.Vb.top,d=this.Ue(),e=a.c;e[0]=d.a;e[4]=d.C;e[12]=d.La;e[1]=d.b;
e[5]=d.J;e[13]=d.Ma;e[14]=this.Os;b.Fi(c,c,a);null==this.Xi||this.grid&&this.grid.wf()||(a=this.ib.x,c=this.ib.y,0!==a||0!==c?(b.pA||(a|=0,c|=0),b.xp(a,c),this.Xi.xt(),b.xp(-a,-c)):this.Xi.xt())}});n=b.Rz.prototype;b.A===b.Z&&(n.transform=n.OY);b.f(n,"target",null,n.HG);b.Rz.create=function(){return new b.Rz};b.Aka=function(){return{x:0,y:0}};b.ql=function(a,c){return{x:a,y:c}};b.ve=function(a,c){return b.ql(a.x+c.x,a.y+c.y)};b.pc=function(a,c){return b.ql(a.x-c.x,a.y-c.y)};b.vd=function(a,c){return b.ql(a.x*c,a.y*c)};b.aq=function(a){return b.ql(-a.y,a.x)};b.ng=function(a){return b.ql(-a.x,-a.y)};b.lQ=function(a,c){return a.x*c.x+a.y*c.y};b.zka=function(a){return b.ql(Math.cos(a),Math.sin(a))};b.iu=function(a){a=b.Mg(C(a.x,a.y));return b.ql(a.x,a.y)};b.Ae=function(a){return b.ql(a.x,a.y)};
b.Ia=function(a){return{ea:a.x,fa:a.y}};
b.eR=b.q.extend({cb:null,o:null,Zc:1,hf:null,tb:"DrawNodeCanvas",ctor:function(){b.q.prototype.ctor.call(this);this.cb=[];this.hf=b.color(255,255,255,255);this.o=new b.Sj(b.hc,b.gc);this.F()},Ch:function(){return this.o},Ve:function(a,c){void 0===c?(this.o.src=a.src,this.o.U=a.U):(this.o.src=a,this.o.U=c)},zG:function(a){this.Zc=a},e0:function(){return this.Zc},Rp:function(a){var c=this.hf;c.r=a.r;c.g=a.g;c.b=a.b;c.a=null==a.a?255:a.a},Ed:function(){return b.color(this.hf.r,this.hf.g,this.hf.b,this.hf.a)},
XE:function(a,c,d,e,f){e=e||this.Zc;f=f||this.Ed();null==f.a&&(f.a=255);a=[a,C(c.x,a.y),c,C(a.x,c.y)];c=new b.hk(b.Nd.ck);c.og=a;c.lineWidth=e;c.Gj=f;c.cy=!0;c.fl=!0;c.lineCap="butt";if(c.fillColor=d)null==d.a&&(d.a=255),c.JF=!0;this.cb.push(c)},TE:function(a,c,d,e,f,g,h){g=g||this.Zc;h=h||this.Ed();null==h.a&&(h.a=255);for(var k=2*Math.PI/e,m=[],p=0;p<=e;p++){var r=p*k;m.push(C(c*Math.cos(r+d)+a.x,c*Math.sin(r+d)+a.y))}f&&m.push(C(a.x,a.y));a=new b.hk(b.Nd.ck);a.og=m;a.lineWidth=g;a.Gj=h;a.cy=!0;
a.fl=!0;this.cb.push(a)},WE:function(a,c,d,e,f,g){f=f||this.Zc;g=g||this.Ed();null==g.a&&(g.a=255);for(var h=[],k=0,m=0;m<e;m++)h.push(C(Math.pow(1-k,2)*a.x+2*(1-k)*k*c.x+k*k*d.x,Math.pow(1-k,2)*a.y+2*(1-k)*k*c.y+k*k*d.y)),k+=1/e;h.push(C(d.x,d.y));a=new b.hk(b.Nd.ck);a.og=h;a.lineWidth=f;a.Gj=g;a.fl=!0;a.lineCap="round";this.cb.push(a)},UE:function(a,c,d,e,f,g,h){g=g||this.Zc;h=h||this.Ed();null==h.a&&(h.a=255);for(var k=[],m=0,p=0;p<f;p++)k.push(C(Math.pow(1-m,3)*a.x+3*Math.pow(1-m,2)*m*c.x+3*(1-
m)*m*m*d.x+m*m*m*e.x,Math.pow(1-m,3)*a.y+3*Math.pow(1-m,2)*m*c.y+3*(1-m)*m*m*d.y+m*m*m*e.y)),m+=1/f;k.push(C(e.x,e.y));a=new b.hk(b.Nd.ck);a.og=k;a.lineWidth=g;a.Gj=h;a.fl=!0;a.lineCap="round";this.cb.push(a)},SE:function(a,c,d,e){this.Fm(a,0.5,c,d,e)},Fm:function(a,c,d,e,f){e=e||this.Zc;f=f||this.Ed();null==f.a&&(f.a=255);for(var g=[],h,k,m=1/a.length,p=0;p<d+1;p++)k=p/d,1==k?(h=a.length-1,k=1):(h=0|k/m,k=(k-m*h)/m),h=b.HE(b.fd(a,h-1),b.fd(a,h-0),b.fd(a,h+1),b.fd(a,h+2),c,k),g.push(h);a=new b.hk(b.Nd.ck);
a.og=g;a.lineWidth=e;a.Gj=f;a.fl=!0;a.lineCap="round";this.cb.push(a)},VE:function(a,c,d){d=d||this.Ed();null==d.a&&(d.a=255);var e=new b.hk(b.Nd.rI);e.og=[a];e.lineWidth=c;e.fillColor=d;this.cb.push(e)},a_:function(a,c,d){if(a&&0!=a.length){d=d||this.Ed();null==d.a&&(d.a=255);for(var e=0,f=a.length;e<f;e++)this.VE(a[e],c,d)}},YE:function(a,c,d,e){d=d||this.Zc;e=e||this.Ed();null==e.a&&(e.a=255);var f=new b.hk(b.Nd.ck);f.og=[a,c];f.lineWidth=2*d;f.Gj=e;f.fl=!0;f.lineCap="round";this.cb.push(f)},e_:function(a,
c,d,e){d=d||this.Zc;e=e||this.Ed();null==e.a&&(e.a=255);var f=new b.hk(b.Nd.ck);f.og=a;f.fillColor=c;f.lineWidth=d;f.Gj=e;f.cy=!0;f.fl=!0;f.lineCap="round";c&&(f.JF=!0);this.cb.push(f)},ae:function(a,c,d,e){for(var f=[],g=0;g<a.length;g++)f.push(C(a[g].x,a[g].y));return this.e_(f,c,d,e)},Y:function(a){a=a||b.k;this.o&&this.o.src==b.SRC_ALPHA&&this.o.U==b.ONE&&(a.globalCompositeOperation="lighter");for(var c=0;c<this.cb.length;c++){var d=this.cb[c];switch(d.type){case b.Nd.rI:this.JV(a,d);break;case b.Nd.TT:this.LV(a,
d);break;case b.Nd.ck:this.KV(a,d)}}},JV:function(a,c){var d=c.fillColor,e=c.og[0],f=c.lineWidth,g=b.view.qa,h=b.view.Ra;a.fillStyle="rgba("+(0|d.r)+","+(0|d.g)+","+(0|d.b)+","+d.a/255+")";a.beginPath();a.arc(e.x*g,-e.y*h,f*g,0,2*Math.PI,!1);a.closePath();a.fill()},LV:function(a,c){var d=c.Gj,e=c.og[0],f=c.og[1],g=c.lineWidth,h=c.lineCap,k=b.view.qa,m=b.view.Ra;a.strokeStyle="rgba("+(0|d.r)+","+(0|d.g)+","+(0|d.b)+","+d.a/255+")";a.lineWidth=g*k;a.beginPath();a.lineCap=h;a.moveTo(e.x*k,-e.y*m);a.lineTo(f.x*
k,-f.y*m);a.stroke()},KV:function(a,c){var d=c.og,e=c.lineCap,f=c.fillColor,g=c.lineWidth,h=c.Gj,k=c.cy,m=c.JF,p=c.fl;if(null!=d){var r=d[0],s=b.view.qa,u=b.view.Ra;a.lineCap=e;f&&(a.fillStyle="rgba("+(0|f.r)+","+(0|f.g)+","+(0|f.b)+","+f.a/255+")");g&&(a.lineWidth=g*s);h&&(a.strokeStyle="rgba("+(0|h.r)+","+(0|h.g)+","+(0|h.b)+","+h.a/255+")");a.beginPath();a.moveTo(r.x*s,-r.y*u);e=1;for(f=d.length;e<f;e++)a.lineTo(d[e].x*s,-d[e].y*u);k&&a.closePath();m&&a.fill();p&&a.stroke()}},clear:function(){this.cb.length=
0}});
b.fR=b.q.extend({Mn:0,cb:null,yj:null,dM:null,cM:null,Zc:1,hf:null,o:null,jb:!1,tb:"DrawNodeWebGL",Ch:function(){return this.o},Ve:function(a,c){void 0===c?(this.o.src=a.src,this.o.U=a.U):(this.o.src=a,this.o.U=c)},ctor:function(){b.q.prototype.ctor.call(this);this.cb=[];this.o=new b.Sj(b.hc,b.gc);this.hf=b.color(255,255,255,255);this.F()},F:function(){return b.q.prototype.F.call(this)?(this.shaderProgram=b.Ld.oc(b.gI),this.Gr(64),this.dM=b.k.createBuffer(),this.jb=!0):!1},zG:function(a){this.Zc=a},
e0:function(){return this.Zc},Rp:function(a){var c=this.hf;c.r=a.r;c.g=a.g;c.b=a.b;c.a=a.a},Ed:function(){return b.color(this.hf.r,this.hf.g,this.hf.b,this.hf.a)},XE:function(a,c,d,e,f){e=e||this.Zc;f=f||this.Ed();null==f.a&&(f.a=255);a=[a,C(c.x,a.y),c,C(a.x,c.y)];null==d?this.Nv(a,e,f,!0):this.ae(a,d,e,f)},TE:function(a,c,d,e,f,g,h){g=g||this.Zc;h=h||this.Ed();null==h.a&&(h.a=255);var k=2*Math.PI/e,m=[],p;for(p=0;p<=e;p++){var r=p*k;m.push(C(c*Math.cos(r+d)+a.x,c*Math.sin(r+d)+a.y))}f&&m.push(C(a.x,
a.y));g*=0.5;p=0;for(a=m.length;p<a-1;p++)this.YE(m[p],m[p+1],g,h)},WE:function(a,c,d,e,f,g){f=f||this.Zc;g=g||this.Ed();null==g.a&&(g.a=255);for(var h=[],k=0,m=0;m<e;m++)h.push(C(Math.pow(1-k,2)*a.x+2*(1-k)*k*c.x+k*k*d.x,Math.pow(1-k,2)*a.y+2*(1-k)*k*c.y+k*k*d.y)),k+=1/e;h.push(C(d.x,d.y));this.Nv(h,f,g,!1)},UE:function(a,c,d,e,f,g,h){g=g||this.Zc;h=h||this.Ed();null==h.a&&(h.a=255);for(var k=[],m=0,p=0;p<f;p++)k.push(C(Math.pow(1-m,3)*a.x+3*Math.pow(1-m,2)*m*c.x+3*(1-m)*m*m*d.x+m*m*m*e.x,Math.pow(1-
m,3)*a.y+3*Math.pow(1-m,2)*m*c.y+3*(1-m)*m*m*d.y+m*m*m*e.y)),m+=1/f;k.push(C(e.x,e.y));this.Nv(k,g,h,!1)},SE:function(a,c,d,e){this.Fm(a,0.5,c,d,e)},Fm:function(a,c,d,e,f){e=e||this.Zc;f=f||this.Ed();null==f.a&&(f.a=255);for(var g=[],h,k,m=1/a.length,p=0;p<d+1;p++)k=p/d,1==k?(h=a.length-1,k=1):(h=0|k/m,k=(k-m*h)/m),h=b.HE(b.fd(a,h-1),b.fd(a,h-0),b.fd(a,h+1),b.fd(a,h+2),c,k),g.push(h);e*=0.5;a=0;for(c=g.length;a<c-1;a++)this.YE(g[a],g[a+1],e,f)},OX:function(){var a=b.k;b.Jc(b.Kl);a.bindBuffer(a.ARRAY_BUFFER,
this.dM);this.jb&&(a.bufferData(a.ARRAY_BUFFER,this.yj,a.STREAM_DRAW),this.jb=!1);var c=b.wd.BYTES_PER_ELEMENT;a.vertexAttribPointer(b.sb,2,a.FLOAT,!1,c,0);a.vertexAttribPointer(b.ze,4,a.UNSIGNED_BYTE,!0,c,8);a.vertexAttribPointer(b.xd,2,a.FLOAT,!1,c,12);a.drawArrays(a.TRIANGLES,0,3*this.cb.length);b.ag()},Gr:function(a){var c=this.cb;if(c.length+a>this.Mn){var d=b.Yb.BYTES_PER_ELEMENT;this.Mn+=Math.max(this.Mn,a);if(null==c||0===c.length)this.cb=[],this.yj=new ArrayBuffer(d*this.Mn),this.cM=new Uint8Array(this.yj);
else{a=[];for(var e=new ArrayBuffer(d*this.Mn),f=0;f<c.length;f++)a[f]=new b.Yb(c[f].a,c[f].b,c[f].C,e,f*d);this.cM=new Uint8Array(e);this.yj=e;this.cb=a}}},Y:function(){b.Ih(this.o.src,this.o.U);this.Hb.Mc();this.Hb.Xt();this.OX()},VE:function(a,c,d){d=d||this.Ed();null==d.a&&(d.a=255);var e={r:0|d.r,g:0|d.g,b:0|d.b,a:0|d.a};d={i:{x:a.x-c,y:a.y-c},t:e,l:{ea:-1,fa:-1}};var f={i:{x:a.x-c,y:a.y+c},t:e,l:{ea:-1,fa:1}},g={i:{x:a.x+c,y:a.y+c},t:e,l:{ea:1,fa:1}};a={i:{x:a.x+c,y:a.y-c},t:e,l:{ea:1,fa:-1}};
this.Gr(6);this.cb.push(new b.Yb(d,f,g,this.yj,this.cb.length*b.Yb.BYTES_PER_ELEMENT));this.cb.push(new b.Yb(d,g,a,this.yj,this.cb.length*b.Yb.BYTES_PER_ELEMENT));this.jb=!0},a_:function(a,c,d){if(a&&0!=a.length){d=d||this.Ed();null==d.a&&(d.a=255);for(var e=0,f=a.length;e<f;e++)this.VE(a[e],c,d)}},YE:function(a,c,d,e){e=e||this.Ed();null==e.a&&(e.a=255);d=d||0.5*this.Zc;this.Gr(18);e={r:0|e.r,g:0|e.g,b:0|e.b,a:0|e.a};var f=b.Ae(a);c=b.Ae(c);a=b.iu(b.aq(b.pc(c,f)));var g=b.aq(a),h=b.vd(a,d);d=b.vd(g,
d);var k=b.ve(c,b.pc(h,d)),m=b.pc(c,h),p=b.ve(c,h),r=b.pc(f,h),s=b.ve(f,h),u=b.pc(f,b.pc(h,d)),f=b.ve(f,b.ve(h,d)),t=b.Yb.BYTES_PER_ELEMENT,v=this.yj,w=this.cb;w.push(new b.Yb({i:b.pc(c,b.ve(h,d)),t:e,l:b.Ia(b.ng(b.ve(a,g)))},{i:k,t:e,l:b.Ia(b.pc(a,g))},{i:m,t:e,l:b.Ia(b.ng(a))},v,w.length*t));w.push(new b.Yb({i:p,t:e,l:b.Ia(a)},{i:k,t:e,l:b.Ia(b.pc(a,g))},{i:m,t:e,l:b.Ia(b.ng(a))},v,w.length*t));w.push(new b.Yb({i:p,t:e,l:b.Ia(a)},{i:r,t:e,l:b.Ia(b.ng(a))},{i:m,t:e,l:b.Ia(b.ng(a))},v,w.length*t));
w.push(new b.Yb({i:p,t:e,l:b.Ia(a)},{i:r,t:e,l:b.Ia(b.ng(a))},{i:s,t:e,l:b.Ia(a)},v,w.length*t));w.push(new b.Yb({i:u,t:e,l:b.Ia(b.pc(g,a))},{i:r,t:e,l:b.Ia(b.ng(a))},{i:s,t:e,l:b.Ia(a)},v,w.length*t));w.push(new b.Yb({i:u,t:e,l:b.Ia(b.pc(g,a))},{i:f,t:e,l:b.Ia(b.ve(a,g))},{i:s,t:e,l:b.Ia(a)},v,w.length*t));this.jb=!0},ae:function(a,c,d,e){if(null==c)this.Nv(a,d,e,!0);else{null==c.a&&(c.a=255);null==e.a&&(e.a=255);d=d||this.Zc;d*=0.5;c={r:0|c.r,g:0|c.g,b:0|c.b,a:0|c.a};e={r:0|e.r,g:0|e.g,b:0|e.b,
a:0|e.a};var f=[],g,h,k,m,p=a.length;for(g=0;g<p;g++){h=b.Ae(a[(g-1+p)%p]);k=b.Ae(a[g]);m=b.Ae(a[(g+1)%p]);var r=b.iu(b.aq(b.pc(k,h)));k=b.iu(b.aq(b.pc(m,k)));f[g]={offset:b.vd(b.ve(r,k),1/(b.lQ(r,k)+1)),il:k}}r=0<d;this.Gr(3*(3*p-2));var s=b.Yb.BYTES_PER_ELEMENT,u=this.yj,t=this.cb,v=!1==r?0.5:0;for(g=0;g<p-2;g++)h=b.pc(b.Ae(a[0]),b.vd(f[0].offset,v)),k=b.pc(b.Ae(a[g+1]),b.vd(f[g+1].offset,v)),m=b.pc(b.Ae(a[g+2]),b.vd(f[g+2].offset,v)),t.push(new b.Yb({i:h,t:c,l:b.Ia({x:0,y:0})},{i:k,t:c,l:b.Ia({x:0,
y:0})},{i:m,t:c,l:b.Ia({x:0,y:0})},u,t.length*s));for(g=0;g<p;g++){v=(g+1)%p;h=b.Ae(a[g]);k=b.Ae(a[v]);m=f[g].il;var w=f[g].offset,y=f[v].offset,v=r?b.pc(h,b.vd(w,d)):b.pc(h,b.vd(w,0.5)),B=r?b.pc(k,b.vd(y,d)):b.pc(k,b.vd(y,0.5));h=r?b.ve(h,b.vd(w,d)):b.ve(h,b.vd(w,0.5));k=r?b.ve(k,b.vd(y,d)):b.ve(k,b.vd(y,0.5));r?(t.push(new b.Yb({i:v,t:e,l:b.Ia(b.ng(m))},{i:B,t:e,l:b.Ia(b.ng(m))},{i:k,t:e,l:b.Ia(m)},u,t.length*s)),t.push(new b.Yb({i:v,t:e,l:b.Ia(b.ng(m))},{i:h,t:e,l:b.Ia(m)},{i:k,t:e,l:b.Ia(m)},
u,t.length*s))):(t.push(new b.Yb({i:v,t:c,l:b.Ia({x:0,y:0})},{i:B,t:c,l:b.Ia({x:0,y:0})},{i:k,t:c,l:b.Ia(m)},u,t.length*s)),t.push(new b.Yb({i:v,t:c,l:b.Ia({x:0,y:0})},{i:h,t:c,l:b.Ia(m)},{i:k,t:c,l:b.Ia(m)},u,t.length*s)))}this.jb=!0}},Nv:function(a,c,d,e){c=c||this.Zc;d=d||this.hf;null==d.a&&(d.a=255);c*=0.5;if(!(0>=c)){d={r:0|d.r,g:0|d.g,b:0|d.b,a:0|d.a};var f=[],g,h,k,m,p=a.length;for(g=0;g<p;g++){h=b.Ae(a[(g-1+p)%p]);k=b.Ae(a[g]);m=b.Ae(a[(g+1)%p]);var r=b.iu(b.aq(b.pc(k,h)));k=b.iu(b.aq(b.pc(m,
k)));f[g]={offset:b.vd(b.ve(r,k),1/(b.lQ(r,k)+1)),il:k}}this.Gr(3*(3*p-2));m=b.Yb.BYTES_PER_ELEMENT;var r=this.yj,s=this.cb;e=e?p:p-1;for(g=0;g<e;g++){var u=(g+1)%p;h=b.Ae(a[g]);k=b.Ae(a[u]);var t=f[g].il,v=f[g].offset,u=f[u].offset,w=b.pc(h,b.vd(v,c));h=b.ve(h,b.vd(v,c));v=b.ve(k,b.vd(u,c));s.push(new b.Yb({i:w,t:d,l:b.Ia(b.ng(t))},{i:b.pc(k,b.vd(u,c)),t:d,l:b.Ia(b.ng(t))},{i:v,t:d,l:b.Ia(t)},r,s.length*m));s.push(new b.Yb({i:w,t:d,l:b.Ia(b.ng(t))},{i:h,t:d,l:b.Ia(t)},{i:v,t:d,l:b.Ia(t)},r,s.length*
m))}this.jb=!0}},clear:function(){this.cb.length=0;this.jb=!0}});b.Nd=b.A==b.Z?b.fR:b.eR;b.Nd.create=function(){return new b.Nd};b.hk=function(a){this.type=a;this.fillColor=this.og=null;this.lineWidth=0;this.Gj=null;this.lineCap="butt";this.fl=this.JF=this.cy=!1};b.Nd.rI=0;b.Nd.TT=1;b.Nd.ck=2;b.Zt=-1;b.zP=function(a,c){a.shaderProgram=c;var d=a.children;if(d)for(var e=0;e<d.length;e++)b.zP(d[e],c)};
b.Xb=b.q.extend({ym:0,Jh:!1,od:null,DK:!1,ctor:function(a){b.q.prototype.ctor.call(this);this.od=null;this.ym=0;this.Jh=!1;b.Xb.prototype.F.call(this,a||null)},F:null,tb:"ClippingNode",KW:function(a){this.od=a;this.ym=1;this.Jh=!1;b.Xb.mC=!0;b.Xb.mC&&(b.Zt=b.k.getParameter(b.k.STENCIL_BITS),0>=b.Zt&&b.log("Stencil buffer is not enabled."),b.Xb.mC=!1);return!0},JW:function(a){this.od=a;this.ym=1;this.Jh=!1},ba:function(){b.q.prototype.ba.call(this);this.od.ba()},Mh:function(){b.q.prototype.Mh.call(this);
this.od.Mh()},bg:function(){this.od.bg();b.q.prototype.bg.call(this)},ub:function(){this.od.ub();b.q.prototype.ub.call(this)},T:null,Ps:function(a){var c=a||b.k;if(1>b.Zt)b.q.prototype.T.call(this,a);else if(this.od&&this.od.visible)if(b.Xb.Xr=-1,b.Xb.Xr+1==b.Zt)b.Xb.qE=!0,b.Xb.qE&&(b.log("Nesting more than "+b.Zt+"stencils is not supported. Everything will be drawn without stencil for this node and its childs."),b.Xb.qE=!1),b.q.prototype.T.call(this,a);else{b.Xb.Xr++;var d=1<<b.Xb.Xr,e=d|d-1,f=c.isEnabled(c.STENCIL_TEST),
g=c.getParameter(c.STENCIL_WRITEMASK),h=c.getParameter(c.STENCIL_FUNC),k=c.getParameter(c.STENCIL_REF),m=c.getParameter(c.STENCIL_VALUE_MASK),p=c.getParameter(c.STENCIL_FAIL),r=c.getParameter(c.STENCIL_PASS_DEPTH_FAIL),s=c.getParameter(c.STENCIL_PASS_DEPTH_PASS);c.enable(c.STENCIL_TEST);c.stencilMask(d);var u=c.getParameter(c.DEPTH_WRITEMASK);c.depthMask(!1);c.stencilFunc(c.NEVER,d,d);c.stencilOp(this.Jh?c.REPLACE:c.ZERO,c.KEEP,c.KEEP);b.De.aN(C(0,0),b.r2(),b.color(255,255,255,255));c.stencilFunc(c.NEVER,
d,d);c.stencilOp(this.Jh?c.ZERO:c.REPLACE,c.KEEP,c.KEEP);if(1>this.ym){var d=b.Ld.oc(b.Uu),t=c.getUniformLocation(d.Nm(),b.ZI);b.tF(d.Nm());d.Vt(t,this.ym);b.zP(this.od,d)}b.Qm();this.transform();this.od.T();b.Pm();c.depthMask(u);c.stencilFunc(c.EQUAL,e,e);c.stencilOp(c.KEEP,c.KEEP,c.KEEP);b.q.prototype.T.call(this,a);c.stencilFunc(h,k,m);c.stencilOp(p,r,s);c.stencilMask(g);f||c.disable(c.STENCIL_TEST);b.Xb.Xr--}else this.Jh&&b.q.prototype.T.call(this,a)},um:function(a){if(this.od&&this.od.visible){a=
a||b.k;var c=a.canvas;if(this.sB()||this.od instanceof b.Q){var d=b.Xb.yW();d.width=c.width;d.height=c.height;d.getContext("2d").drawImage(c,0,0);a.save();b.q.prototype.T.call(this,a);a.globalCompositeOperation=this.Jh?"destination-out":"destination-in";this.transform(a);this.od.T();a.restore();a.save();a.setTransform(1,0,0,1,0,0);a.globalCompositeOperation="destination-over";a.drawImage(d,0,0)}else{var d=this.s,e;a.save();this.transform(a);this.od.T(a);this.Jh&&(a.save(),a.setTransform(1,0,0,1,0,
0),a.moveTo(0,0),a.lineTo(0,c.height),a.lineTo(c.width,c.height),a.lineTo(c.width,0),a.lineTo(0,0),a.restore());a.clip();this.sB(!0);var f=d.length;if(0<f){this.Uc();for(c=0;c<f;c++)if(e=d[c],0>e.zb)e.T(a);else break;for(this.Y(a);c<f;c++)d[c].T(a)}else this.Y(a);this.sB(!1)}a.restore()}else this.Jh&&b.q.prototype.T.call(this,a)},I0:function(){return this.od},FG:null,tY:function(a){this.od=a},sY:function(a){this.od=a;var c=b.k;!(a instanceof b.Q)&&a instanceof b.Nd&&(a.Y=function(){var d=b.view.qa,
e=b.view.Ra;c.beginPath();for(var f=0;f<a.cb.length;f++){var g=a.cb[f].og,h=g[0];c.moveTo(h.x*d,-h.y*e);for(var h=1,k=g.length;h<k;h++)c.lineTo(g[h].x*d,-g[h].y*e)}})},laa:function(){return this.ym},Nha:function(a){this.ym=a},tda:function(){return this.Jh},wia:function(a){this.Jh=a},sB:function(a){if(!0===a||!1===a)b.Xb.prototype.DK=a;return b.Xb.prototype.DK}});n=b.Xb.prototype;b.A===b.Z?(n.F=n.KW,n.T=n.Ps,n.FG=n.tY):(n.F=n.JW,n.T=n.um,n.FG=n.sY);b.f(n,"stencil",n.I0,n.FG);b.Xb.mC=null;b.Xb.qE=null;
b.Xb.Xr=null;b.Xb.UL=null;b.Xb.yW=function(){return b.Xb.UL||(b.Xb.UL=document.createElement("canvas"))};b.Xb.create=function(a){return new b.Xb(a)};b.rn=b.ja.extend({nk:!1,ti:0,X:null,L:null,Fg:null,ko:null,Xl:!1,Hb:null,DB:0,jb:!1,ctor:function(a,c,d){b.wB();this.nk=!1;this.ti=0;this.L=this.X=null;this.Fg=C(0,0);this.ko=null;this.Xl=!1;this.Hb=null;this.DB=0;this.jb=!1;void 0!==a&&this.Zx(a,c,d)},wf:function(){return this.nk},setActive:function(a){this.nk=a;a||(a=b.D,a.bn(a.si))},gca:function(){return this.ti},X3:function(a){this.ti=a},Y_:function(){return H(this.X.width,this.X.height)},tia:function(a){this.X.width=parseInt(a.width);this.X.height=
parseInt(a.height)},mF:function(){return C(this.Fg.x,this.Fg.y)},jja:function(a){this.Fg.x=a.x;this.Fg.y=a.y},Hda:function(){return this.Xl},qja:function(a){this.Xl!=a&&(this.Xl=a,this.qx())},Zx:function(a,c,d){if(!c){var e=b.D.kt(),f=b.Zj(e.width),g=b.Zj(e.height),h=new Uint8Array(f*g*4);if(!h)return b.log("cocos2d: CCGrid: not enough memory."),!1;c=new b.da;c.pt(h,b.da.Ti,f,g,e);if(!c)return b.log("cocos2d: CCGrid: error creating texture"),!1}this.nk=!1;this.ti=0;this.X=a;this.L=c;this.Xl=d||!1;
this.Fg.x=this.L.width/a.width;this.Fg.y=this.L.height/a.height;this.ko=new b.vR;if(!this.ko)return!1;this.ko.T0(this.L);this.Hb=b.Ld.oc(b.Rq);this.qx();return!0},Xs:function(){this.DB=b.D.si;this.m3();this.ko.zZ(this.L)},Us:function(a){this.ko.eZ(this.L);b.D.bn(this.DB);if(a.Lm().IF()){var c=a.ib;b.xp(c.x,c.y);a.Lm().xt();b.xp(-c.x,-c.y)}b.te(this.L);this.zE()},zE:function(){b.log("cc.GridBase.blit(): Shall be overridden in subclass.")},pG:function(){b.log("cc.GridBase.reuse(): Shall be overridden in subclass.")},
qx:function(){b.log("cc.GridBase.calculateVertexPoints(): Shall be overridden in subclass.")},m3:function(){var a=b.D.kt();b.k.viewport(0,0,a.width,a.height);b.Ei(b.Si);b.vp();var c=new b.ca;b.OF(c,0,a.width,0,a.height,-1,1);b.wp(c);b.Ei(b.Ri);b.vp();b.AP()}});b.rn.create=function(a,c,d){return new b.rn(a,c,d)};
b.Fz=b.rn.extend({Hg:null,Sa:null,ij:null,lb:null,Uf:null,dd:null,Nf:null,ctor:function(a,c,d){b.rn.prototype.ctor.call(this);this.Nf=this.dd=this.Uf=this.lb=this.ij=this.Sa=this.Hg=null;void 0!==a&&this.Zx(a,c,d)},nQ:function(a){a.x===(0|a.x)&&a.y===(0|a.y)||b.log("cc.Grid3D.vertex() : Numbers must be integers");a=0|3*(a.x*(this.X.height+1)+a.y);var c=this.Sa;return new b.uc(c[a],c[a+1],c[a+2])},Lc:function(a){a.x===(0|a.x)&&a.y===(0|a.y)||b.log("cc.Grid3D.originalVertex() : Numbers must be integers");
a=0|3*(a.x*(this.X.height+1)+a.y);var c=this.ij;return new b.uc(c[a],c[a+1],c[a+2])},Kd:function(a,c){a.x===(0|a.x)&&a.y===(0|a.y)||b.log("cc.Grid3D.setVertex() : Numbers must be integers");var d=0|3*(a.x*(this.X.height+1)+a.y),e=this.Sa;e[d]=c.x;e[d+1]=c.y;e[d+2]=c.z;this.jb=!0},zE:function(){var a=this.X.width*this.X.height;b.Jc(b.Pd|b.Cn);this.Hb.Mc();this.Hb.Xt();var c=b.k,d=this.jb;c.bindBuffer(c.ARRAY_BUFFER,this.dd);d&&c.bufferData(c.ARRAY_BUFFER,this.Sa,c.DYNAMIC_DRAW);c.vertexAttribPointer(b.sb,
3,c.FLOAT,!1,0,0);c.bindBuffer(c.ARRAY_BUFFER,this.Uf);d&&c.bufferData(c.ARRAY_BUFFER,this.Hg,c.DYNAMIC_DRAW);c.vertexAttribPointer(b.xd,2,c.FLOAT,!1,0,0);c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.Nf);d&&c.bufferData(c.ELEMENT_ARRAY_BUFFER,this.lb,c.STATIC_DRAW);c.drawElements(c.TRIANGLES,6*a,c.UNSIGNED_SHORT,0);d&&(this.jb=!1);b.ag()},pG:function(){if(0<this.ti){for(var a=this.ij,c=this.Sa,d=0,e=this.Sa.length;d<e;d++)a[d]=c[d];--this.ti}},qx:function(){var a=b.k,c=this.L.pixelsWidth,d=this.L.pixelsHeight,
e=this.L.O.height,f=this.X,g=(f.width+1)*(f.height+1);this.Sa=new Float32Array(3*g);this.Hg=new Float32Array(2*g);this.lb=new Uint16Array(f.width*f.height*6);this.dd&&a.deleteBuffer(this.dd);this.dd=a.createBuffer();this.Uf&&a.deleteBuffer(this.Uf);this.Uf=a.createBuffer();this.Nf&&a.deleteBuffer(this.Nf);this.Nf=a.createBuffer();for(var h,k,m=this.lb,p=this.Hg,r=this.Xl,s=this.Sa,g=0;g<f.width;++g)for(h=0;h<f.height;++h){var u=h*f.width+g;k=g*this.Fg.x;var t=k+this.Fg.x,v=h*this.Fg.y,w=v+this.Fg.y,
y=g*(f.height+1)+h,B=(g+1)*(f.height+1)+h,G=(g+1)*(f.height+1)+(h+1),J=g*(f.height+1)+(h+1);m[6*u]=y;m[6*u+1]=B;m[6*u+2]=J;m[6*u+3]=B;m[6*u+4]=G;m[6*u+5]=J;var u=[3*y,3*B,3*G,3*J],E=[{x:k,y:v,z:0},{x:t,y:v,z:0},{x:t,y:w,z:0},{x:k,y:w,z:0}],y=[2*y,2*B,2*G,2*J],t=[C(k,v),C(t,v),C(t,w),C(k,w)];for(k=0;4>k;++k)s[u[k]]=E[k].x,s[u[k]+1]=E[k].y,s[u[k]+2]=E[k].z,p[y[k]]=t[k].x/c,p[y[k]+1]=r?(e-t[k].y)/d:t[k].y/d}this.ij=new Float32Array(this.Sa);a.bindBuffer(a.ARRAY_BUFFER,this.dd);a.bufferData(a.ARRAY_BUFFER,
this.Sa,a.DYNAMIC_DRAW);a.bindBuffer(a.ARRAY_BUFFER,this.Uf);a.bufferData(a.ARRAY_BUFFER,this.Hg,a.DYNAMIC_DRAW);a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Nf);a.bufferData(a.ELEMENT_ARRAY_BUFFER,this.lb,a.STATIC_DRAW);this.jb=!0}});b.Fz.create=function(a,c,d){return new b.Fz(a,c,d)};
b.EA=b.rn.extend({Hg:null,Sa:null,ij:null,lb:null,Uf:null,dd:null,Nf:null,ctor:function(a,c,d){b.rn.prototype.ctor.call(this);this.Nf=this.dd=this.Uf=this.lb=this.ij=this.Sa=this.Hg=null;void 0!==a&&this.Zx(a,c,d)},ZP:function(a){a.x===(0|a.x)&&a.y===(0|a.y)||b.log("cc.TiledGrid3D.tile() : Numbers must be integers");a=12*(this.X.height*a.x+a.y);var c=this.Sa;return new b.Qu(new b.uc(c[a],c[a+1],c[a+2]),new b.uc(c[a+3],c[a+4],c[a+5]),new b.uc(c[a+6],c[a+7],c[a+8]),new b.uc(c[a+9],c[a+10],c[a+11]))},
cg:function(a){a.x===(0|a.x)&&a.y===(0|a.y)||b.log("cc.TiledGrid3D.originalTile() : Numbers must be integers");a=12*(this.X.height*a.x+a.y);var c=this.ij;return new b.Qu(new b.uc(c[a],c[a+1],c[a+2]),new b.uc(c[a+3],c[a+4],c[a+5]),new b.uc(c[a+6],c[a+7],c[a+8]),new b.uc(c[a+9],c[a+10],c[a+11]))},Ze:function(a,c){a.x===(0|a.x)&&a.y===(0|a.y)||b.log("cc.TiledGrid3D.setTile() : Numbers must be integers");var d=12*(this.X.height*a.x+a.y),e=this.Sa;e[d]=c.G.x;e[d+1]=c.G.y;e[d+2]=c.G.z;e[d+3]=c.N.x;e[d+
4]=c.N.y;e[d+5]=c.N.z;e[d+6]=c.M.x;e[d+7]=c.M.y;e[d+8]=c.M.z;e[d+9]=c.K.x;e[d+10]=c.K.y;e[d+11]=c.K.z;this.jb=!0},zE:function(){var a=this.X.width*this.X.height;this.Hb.Mc();this.Hb.Xt();var c=b.k,d=this.jb;b.Jc(b.Pd|b.Cn);c.bindBuffer(c.ARRAY_BUFFER,this.dd);d&&c.bufferData(c.ARRAY_BUFFER,this.Sa,c.DYNAMIC_DRAW);c.vertexAttribPointer(b.sb,3,c.FLOAT,!1,0,this.Sa);c.bindBuffer(c.ARRAY_BUFFER,this.Uf);d&&c.bufferData(c.ARRAY_BUFFER,this.Hg,c.DYNAMIC_DRAW);c.vertexAttribPointer(b.xd,2,c.FLOAT,!1,0,this.Hg);
c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.Nf);d&&c.bufferData(c.ELEMENT_ARRAY_BUFFER,this.lb,c.STATIC_DRAW);c.drawElements(c.TRIANGLES,6*a,c.UNSIGNED_SHORT,0);d&&(this.jb=!1);b.ag()},pG:function(){if(0<this.ti){for(var a=this.Sa,c=this.ij,d=0;d<a.length;d++)c[d]=a[d];--this.ti}},qx:function(){var a=this.L.pixelsWidth,c=this.L.pixelsHeight,d=this.L.O.height,e=this.X,f=e.width*e.height;this.Sa=new Float32Array(12*f);this.Hg=new Float32Array(8*f);this.lb=new Uint16Array(6*f);var g=b.k;this.dd&&g.deleteBuffer(this.dd);
this.dd=g.createBuffer();this.Uf&&g.deleteBuffer(this.Uf);this.Uf=g.createBuffer();this.Nf&&g.deleteBuffer(this.Nf);this.Nf=g.createBuffer();var h,k,m=0,p=this.Fg,r=this.Sa,s=this.Hg,u=this.Xl;for(h=0;h<e.width;h++)for(k=0;k<e.height;k++){var t=h*p.x,v=t+p.x,w=k*p.y,y=w+p.y;r[12*m]=t;r[12*m+1]=w;r[12*m+2]=0;r[12*m+3]=v;r[12*m+4]=w;r[12*m+5]=0;r[12*m+6]=t;r[12*m+7]=y;r[12*m+8]=0;r[12*m+9]=v;r[12*m+10]=y;r[12*m+11]=0;var B=w,G=y;u&&(B=d-w,G=d-y);s[8*m]=t/a;s[8*m+1]=B/c;s[8*m+2]=v/a;s[8*m+3]=B/c;s[8*
m+4]=t/a;s[8*m+5]=G/c;s[8*m+6]=v/a;s[8*m+7]=G/c;m++}a=this.lb;for(h=0;h<f;h++)a[6*h+0]=4*h+0,a[6*h+1]=4*h+1,a[6*h+2]=4*h+2,a[6*h+3]=4*h+1,a[6*h+4]=4*h+2,a[6*h+5]=4*h+3;this.ij=new Float32Array(this.Sa);g.bindBuffer(g.ARRAY_BUFFER,this.dd);g.bufferData(g.ARRAY_BUFFER,this.Sa,g.DYNAMIC_DRAW);g.bindBuffer(g.ARRAY_BUFFER,this.Uf);g.bufferData(g.ARRAY_BUFFER,this.Hg,g.DYNAMIC_DRAW);g.bindBuffer(g.ELEMENT_ARRAY_BUFFER,this.Nf);g.bufferData(g.ELEMENT_ARRAY_BUFFER,this.lb,g.DYNAMIC_DRAW);this.jb=!0}});
b.EA.create=function(a,c,d){return new b.EA(a,c,d)};b.vR=b.ja.extend({iv:null,mi:null,dL:null,jo:null,ctor:function(){b.wB();this.jo=b.k;this.dL=[0,0,0,0];this.mi=null;this.iv=this.jo.createFramebuffer()},T0:function(a){var c=this.jo;this.mi=c.getParameter(c.FRAMEBUFFER_BINDING);c.bindFramebuffer(c.FRAMEBUFFER,this.iv);c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,a.Zd,0);c.checkFramebufferStatus(c.FRAMEBUFFER)!=c.FRAMEBUFFER_COMPLETE&&b.log("Frame Grabber: could not attach texture to frmaebuffer");c.bindFramebuffer(c.FRAMEBUFFER,
this.mi)},zZ:function(){var a=this.jo;this.mi=a.getParameter(a.FRAMEBUFFER_BINDING);a.bindFramebuffer(a.FRAMEBUFFER,this.iv);this.dL=a.getParameter(a.COLOR_CLEAR_VALUE);a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT)},eZ:function(){var a=this.jo;a.bindFramebuffer(a.FRAMEBUFFER,this.mi);a.colorMask(!0,!0,!0,!0)},al:function(){this.jo.deleteFramebuffer(this.iv)}});b.jn=-1;
b.hd=b.ja.extend({originalTarget:null,target:null,tag:b.jn,ctor:function(){this.target=this.originalTarget=null;this.tag=b.jn},copy:function(){b.log("copy is deprecated. Please use clone instead.");return this.j()},j:function(){var a=new b.hd;a.originalTarget=null;a.target=null;a.tag=this.tag;return a},Lg:function(){return!0},v:function(a){this.target=this.originalTarget=a},stop:function(){this.target=null},step:function(){b.log("[Action step]. override me")},update:function(){b.log("[Action update]. override me")},xca:function(){return this.target},
HG:function(a){this.target=a},Pba:function(){return this.originalTarget},Ria:function(a){this.originalTarget=a},nF:function(){return this.tag},GG:function(a){this.tag=a},My:function(){},Ki:function(){}});b.hd.create=function(){return new b.hd};b.Qi=b.hd.extend({n:0,ctor:function(){b.hd.prototype.ctor.call(this);this.n=0},op:function(){return this.n*(this.ec||1)},dg:function(a){this.n=a},reverse:function(){b.log("cocos2d: FiniteTimeAction#reverse: Implement me");return null},j:function(){return new b.Qi}});
b.Uq=b.hd.extend({oe:0,mb:null,ctor:function(a,c){b.hd.prototype.ctor.call(this);this.oe=0;this.mb=null;a&&this.aa(a,c)},Ix:function(){return this.oe},Xe:function(a){this.oe=a},aa:function(a,c){if(!a)throw"cc.Speed.initWithAction(): action must be non nil";this.mb=a;this.oe=c;return!0},j:function(){var a=new b.Uq;a.aa(this.mb.j(),this.oe);return a},v:function(a){b.hd.prototype.v.call(this,a);this.mb.v(a)},stop:function(){this.mb.stop();b.hd.prototype.stop.call(this)},step:function(a){this.mb.step(a*
this.oe)},Lg:function(){return this.mb.Lg()},reverse:function(){return b.Uq.create(this.mb.reverse(),this.oe)},tP:function(a){this.mb!=a&&(this.mb=a)},hF:function(){return this.mb}});b.Uq.create=function(a,c){return new b.Uq(a,c)};
b.Ju=b.hd.extend({eo:null,Kn:!1,xv:!1,cw:null,Kr:null,Sm:0,Ym:0,fn:0,zm:0,tE:null,ctor:function(a,c){b.hd.prototype.ctor.call(this);this.eo=null;this.xv=this.Kn=!1;this.Kr=this.cw=null;this.zm=this.fn=this.Ym=this.Sm=0;this.tE=O(0,0,0,0);a&&(c?this.up(a,c):this.up(a))},j:function(){var a=new b.Ju,c=this.tE;a.up(this.eo,new b.bI(c.x,c.y,c.width,c.height));return a},oda:function(){return this.Kn},Rha:function(a){this.Kn=a},up:function(a,c){if(!a)throw"cc.Follow.initWithAction(): followedNode must be non nil";
c=c||O(0,0,0,0);this.eo=a;this.tE=c;this.Kn=!b.dD(c);this.xv=!1;var d=b.D.R;this.Kr=C(d.width,d.height);this.cw=b.Ii(this.Kr,0.5);this.Kn&&(this.Sm=-(c.x+c.width-this.Kr.x),this.Ym=-c.x,this.fn=-c.y,this.zm=-(c.y+c.height-this.Kr.y),this.Ym<this.Sm&&(this.Ym=this.Sm=(this.Sm+this.Ym)/2),this.fn<this.zm&&(this.fn=this.zm=(this.fn+this.zm)/2),this.fn==this.zm&&this.Sm==this.Ym&&(this.xv=!0));return!0},step:function(){var a=this.eo.x,c=this.eo.y,a=this.cw.x-a,c=this.cw.y-c;this.Kn?this.xv||this.target.P(b.Tc(a,
this.Sm,this.Ym),b.Tc(c,this.zm,this.fn)):this.target.P(a,c)},Lg:function(){return!this.eo.running},stop:function(){this.target=null;b.hd.prototype.stop.call(this)}});b.Ju.create=function(a,c){return new b.Ju(a,c)};b.u=b.Qi.extend({kb:0,Yv:!1,zg:null,ec:1,ns:!1,Ao:!1,oe:1,ts:!1,ctor:function(a){this.ec=this.oe=1;this.ns=!1;this.MAX_VALUE=2;this.ts=this.Ao=!1;b.Qi.prototype.ctor.call(this);void 0!==a&&this.d(a)},Saa:function(){return this.kb},d:function(a){this.n=0===a?b.Hu:a;this.kb=0;return this.Yv=!0},Lg:function(){return this.kb>=this.n},xa:function(a){a.ns=this.ns;a.oe=this.oe;a.ec=this.ec;a.zg=this.zg;a.ts=this.ts;a.Ao=this.Ao},me:function(a){if(this.zg){a.zg=[];for(var c=0;c<this.zg.length;c++)a.zg.push(this.zg[c].reverse())}},
j:function(){var a=new b.u(this.n);this.xa(a);return a},Ta:function(a){this.zg?this.zg.length=0:this.zg=[];for(var c=0;c<arguments.length;c++)this.zg.push(arguments[c]);return this},kd:function(a){var c=this.zg;if(!c||0===c.length)return a;for(var d=0,e=c.length;d<e;d++)a=c[d].Ta(a);return a},step:function(a){this.Yv?(this.Yv=!1,this.kb=0):this.kb+=a;a=this.kb/(1.192092896E-7<this.n?this.n:1.192092896E-7);a=1>a?a:1;this.update(0<a?a:0);this.Ao&&1<this.ec&&this.Lg()&&(this.ns||this.ec--,this.v(this.target),
this.step(this.kb-this.n))},v:function(a){b.hd.prototype.v.call(this,a);this.kb=0;this.Yv=!0},reverse:function(){b.log("cc.IntervalAction: reverse not implemented.");return null},$m:function(){b.log("cc.ActionInterval.setAmplitudeRate(): it should be overridden in subclass.")},Km:function(){b.log("cc.ActionInterval.getAmplitudeRate(): it should be overridden in subclass.");return 0},speed:function(a){if(0>=a)return b.log("The speed parameter error"),this;this.ts=!0;this.oe*=a;return this},Ix:function(){return this.oe},
Xe:function(a){this.oe=a;return this},repeat:function(a){a=Math.round(a);if(isNaN(a)||1>a)return b.log("The repeat parameter error"),this;this.Ao=!0;this.ec*=a;return this},d3:function(){this.Ao=!0;this.ec=this.MAX_VALUE;this.ns=!0;return this}});b.u.create=function(a){return new b.u(a)};
b.ua=b.u.extend({bi:null,YL:null,Wr:0,ctor:function(a){b.u.prototype.ctor.call(this);this.bi=[];var c=a instanceof Array?a:arguments,d=c.length-1;0<=d&&null==c[d]&&b.log("parameters should not be ending with null in Javascript");if(0<=d){for(var e=c[0],f=1;f<d;f++)c[f]&&(e=b.ua.Vi(e,c[f]));this.Om(e,c[d])}},Om:function(a,c){if(!a||!c)throw"cc.Sequence.initWithTwoActions(): arguments must all be non nil";this.d(a.n+c.n);this.bi[0]=a;this.bi[1]=c;return!0},j:function(){var a=new b.ua;this.xa(a);a.Om(this.bi[0].j(),
this.bi[1].j());return a},v:function(a){b.u.prototype.v.call(this,a);this.YL=this.bi[0].n/this.n;this.Wr=-1},stop:function(){-1!==this.Wr&&this.bi[this.Wr].stop();b.hd.prototype.stop.call(this)},update:function(a){a=this.kd(a);var c=0,d=this.YL,e=this.bi,f=this.Wr;a<d?(a=0!==d?a/d:1,0===c&&1===f&&(e[1].update(0),e[1].stop())):(c=1,a=1===d?1:(a-d)/(1-d),-1===f&&(e[0].v(this.target),e[0].update(1),e[0].stop()),f||(e[0].update(1),e[0].stop()));f===c&&e[c].Lg()||(f!==c&&e[c].v(this.target),e[c].update(a),
this.Wr=c)},reverse:function(){var a=b.ua.Vi(this.bi[1].reverse(),this.bi[0].reverse());this.xa(a);this.me(a);return a}});b.ua.create=function(a){var c=a instanceof Array?a:arguments;0<c.length&&null==c[c.length-1]&&b.log("parameters should not be ending with null in Javascript");for(var d=c[0],e=1;e<c.length;e++)c[e]&&(d=b.ua.Vi(d,c[e]));return d};b.ua.Vi=function(a,c){var d=new b.ua;d.Om(a,c);return d};
b.Pq=b.u.extend({ec:0,Wk:0,CC:0,nJ:!1,mb:null,ctor:function(a,c){b.u.prototype.ctor.call(this);void 0!==c&&this.aa(a,c)},aa:function(a,c){return this.d(a.n*c)?(this.ec=c,this.mb=a,a instanceof b.we&&(this.nJ=!0,this.ec-=1),this.Wk=0,!0):!1},j:function(){var a=new b.Pq;this.xa(a);a.aa(this.mb.j(),this.ec);return a},v:function(a){this.Wk=0;this.CC=this.mb.n/this.n;b.u.prototype.v.call(this,a);this.mb.v(a)},stop:function(){this.mb.stop();b.hd.prototype.stop.call(this)},update:function(a){a=this.kd(a);
var c=this.mb,d=this.n,e=this.ec,f=this.CC;if(a>=f){for(;a>f&&this.Wk<e;)c.update(1),this.Wk++,c.stop(),c.v(this.target),this.CC=f+=c.n/d;1<=a&&this.Wk<e&&this.Wk++;this.nJ||(this.Wk===e?(c.update(1),c.stop()):c.update(a-(f-c.n/d)))}else c.update(a*e%1)},Lg:function(){return this.Wk==this.ec},reverse:function(){var a=b.Pq.create(this.mb.reverse(),this.ec);this.xa(a);this.me(a);return a},tP:function(a){this.mb!=a&&(this.mb=a)},hF:function(){return this.mb}});
b.Pq.create=function(a,c){return new b.Pq(a,c)};
b.Dl=b.u.extend({mb:null,ctor:function(a){b.u.prototype.ctor.call(this);this.mb=null;a&&this.aa(a)},aa:function(a){if(!a)throw"cc.RepeatForever.initWithAction(): action must be non null";this.mb=a;return!0},j:function(){var a=new b.Dl;this.xa(a);a.aa(this.mb.j());return a},v:function(a){b.u.prototype.v.call(this,a);this.mb.v(a)},step:function(a){var c=this.mb;c.step(a);c.Lg()&&(c.v(this.target),c.step(c.kb-c.n))},Lg:function(){return!1},reverse:function(){var a=b.Dl.create(this.mb.reverse());this.xa(a);
this.me(a);return a},tP:function(a){this.mb!=a&&(this.mb=a)},hF:function(){return this.mb}});b.Dl.create=function(a){return new b.Dl(a)};
b.xe=b.u.extend({hj:null,zj:null,ctor:function(a){b.u.prototype.ctor.call(this);this.zj=this.hj=null;var c=a instanceof Array?a:arguments,d=c.length-1;0<=d&&null==c[d]&&b.log("parameters should not be ending with null in Javascript");if(0<=d){for(var e=c[0],f=1;f<d;f++)c[f]&&(e=b.xe.Vi(e,c[f]));this.Om(e,c[d])}},Om:function(a,c){if(!a||!c)throw"cc.Spawn.initWithTwoActions(): arguments must all be non null";var d=!1,e=a.n,f=c.n;this.d(Math.max(e,f))&&(this.hj=a,this.zj=c,e>f?this.zj=b.ua.Vi(c,b.qc.create(e-
f)):e<f&&(this.hj=b.ua.Vi(a,b.qc.create(f-e))),d=!0);return d},j:function(){var a=new b.xe;this.xa(a);a.Om(this.hj.j(),this.zj.j());return a},v:function(a){b.u.prototype.v.call(this,a);this.hj.v(a);this.zj.v(a)},stop:function(){this.hj.stop();this.zj.stop();b.hd.prototype.stop.call(this)},update:function(a){a=this.kd(a);this.hj&&this.hj.update(a);this.zj&&this.zj.update(a)},reverse:function(){var a=b.xe.Vi(this.hj.reverse(),this.zj.reverse());this.xa(a);this.me(a);return a}});
b.xe.create=function(a){var c=a instanceof Array?a:arguments;0<c.length&&null==c[c.length-1]&&b.log("parameters should not be ending with null in Javascript");for(var d=c[0],e=1;e<c.length;e++)null!=c[e]&&(d=b.xe.Vi(d,c[e]));return d};b.xe.Vi=function(a,c){var d=new b.xe;d.Om(a,c);return d};
b.Ru=b.u.extend({Ov:0,us:0,GJ:0,JB:0,Fo:0,HJ:0,ctor:function(a,c,d){b.u.prototype.ctor.call(this);void 0!==c&&this.d(a,c,d)},d:function(a,c,d){return b.u.prototype.d.call(this,a)?(this.Ov=c||0,this.JB=d||this.Ov,!0):!1},j:function(){var a=new b.Ru;this.xa(a);a.d(this.n,this.Ov,this.JB);return a},v:function(a){b.u.prototype.v.call(this,a);var c=a.rotationX%360,d=this.Ov-c;180<d&&(d-=360);-180>d&&(d+=360);this.us=c;this.GJ=d;this.Fo=a.rotationY%360;a=this.JB-this.Fo;180<a&&(a-=360);-180>a&&(a+=360);
this.HJ=a},reverse:function(){b.log("cc.RotateTo.reverse(): it should be overridden in subclass.")},update:function(a){a=this.kd(a);this.target&&(this.target.rotationX=this.us+this.GJ*a,this.target.rotationY=this.Fo+this.HJ*a)}});b.Ru.create=function(a,c,d){return new b.Ru(a,c,d)};
b.Fl=b.u.extend({bh:0,us:0,sv:0,Fo:0,ctor:function(a,c,d){b.u.prototype.ctor.call(this);void 0!==c&&this.d(a,c,d)},d:function(a,c,d){return b.u.prototype.d.call(this,a)?(this.bh=c||0,this.sv=d||this.bh,!0):!1},j:function(){var a=new b.Fl;this.xa(a);a.d(this.n,this.bh,this.sv);return a},v:function(a){b.u.prototype.v.call(this,a);this.us=a.rotationX;this.Fo=a.rotationY},update:function(a){a=this.kd(a);this.target&&(this.target.rotationX=this.us+this.bh*a,this.target.rotationY=this.Fo+this.sv*a)},reverse:function(){var a=
b.Fl.create(this.n,-this.bh,-this.sv);this.xa(a);this.me(a);return a}});b.Fl.create=function(a,c,d){var e=new b.Fl;e.d(a,c,d);return e};
b.Af=b.u.extend({qi:null,Gc:null,Rc:null,ctor:function(a,c,d){b.u.prototype.ctor.call(this);this.qi=C(0,0);this.Gc=C(0,0);this.Rc=C(0,0);void 0!==c&&this.d(a,c,d)},d:function(a,c,d){return b.u.prototype.d.call(this,a)?(void 0!==c.x&&(d=c.y,c=c.x),this.qi.x=c,this.qi.y=d,!0):!1},j:function(){var a=new b.Af;this.xa(a);a.d(this.n,this.qi);return a},v:function(a){b.u.prototype.v.call(this,a);var c=a.Se();a=a.Kg();this.Rc.x=c;this.Rc.y=a;this.Gc.x=c;this.Gc.y=a},update:function(a){a=this.kd(a);if(this.target){var c=
this.qi.x*a;a*=this.qi.y;var d=this.Gc;if(b.ou){var e=this.target.Kg(),f=this.Rc;d.x=d.x+this.target.Se()-f.x;d.y=d.y+e-f.y;c+=d.x;a+=d.y;f.x=c;f.y=a;this.target.P(c,a)}else this.target.P(d.x+c,d.y+a)}},reverse:function(){var a=b.Af.create(this.n,C(-this.qi.x,-this.qi.y));this.xa(a);this.me(a);return a}});b.Af.create=function(a,c,d){return new b.Af(a,c,d)};
b.Yj=b.Af.extend({Jf:null,ctor:function(a,c,d){b.Af.prototype.ctor.call(this);this.Jf=C(0,0);void 0!==c&&this.d(a,c,d)},d:function(a,c,d){return b.Af.prototype.d.call(this,a,c,d)?(void 0!==c.x&&(d=c.y,c=c.x),this.Jf.x=c,this.Jf.y=d,!0):!1},j:function(){var a=new b.Yj;this.xa(a);a.d(this.n,this.Jf);return a},v:function(a){b.Af.prototype.v.call(this,a);this.qi.x=this.Jf.x-a.Se();this.qi.y=this.Jf.y-a.Kg()}});b.Yj.create=function(a,c,d){return new b.Yj(a,c,d)};
b.ak=b.u.extend({sh:0,th:0,Qw:0,Rw:0,Rv:0,Sv:0,ff:0,gf:0,ctor:function(a,c,d){b.u.prototype.ctor.call(this);void 0!==d&&this.d(a,c,d)},d:function(a,c,d){var e=!1;b.u.prototype.d.call(this,a)&&(this.Rv=c,this.Sv=d,e=!0);return e},j:function(){var a=new b.ak;this.xa(a);a.d(this.n,this.Rv,this.Sv);return a},v:function(a){b.u.prototype.v.call(this,a);this.Qw=a.skewX%180;this.ff=this.Rv-this.Qw;180<this.ff&&(this.ff-=360);-180>this.ff&&(this.ff+=360);this.Rw=a.skewY%360;this.gf=this.Sv-this.Rw;180<this.gf&&
(this.gf-=360);-180>this.gf&&(this.gf+=360)},update:function(a){a=this.kd(a);this.target.skewX=this.Qw+this.ff*a;this.target.skewY=this.Rw+this.gf*a}});b.ak.create=function(a,c,d){return new b.ak(a,c,d)};
b.Tq=b.ak.extend({ctor:function(a,c,d){b.ak.prototype.ctor.call(this);void 0!==d&&this.d(a,c,d)},d:function(a,c,d){var e=!1;b.ak.prototype.d.call(this,a,c,d)&&(this.sh=c,this.th=d,e=!0);return e},j:function(){var a=new b.Tq;this.xa(a);a.d(this.n,this.sh,this.th);return a},v:function(a){b.ak.prototype.v.call(this,a);this.ff=this.sh;this.gf=this.th;this.Rv=this.Qw+this.ff;this.Sv=this.Rw+this.gf},reverse:function(){var a=b.Tq.create(this.n,-this.sh,-this.th);this.xa(a);this.me(a);return a}});
b.Tq.create=function(a,c,d){var e=new b.Tq;e&&e.d(a,c,d);return e};
b.Vh=b.u.extend({Gc:null,fi:null,Rr:0,fj:0,Rc:null,ctor:function(a,c,d,e,f){b.u.prototype.ctor.call(this);this.Gc=C(0,0);this.Rc=C(0,0);this.fi=C(0,0);void 0!==e&&this.d(a,c,d,e,f)},d:function(a,c,d,e,f){return b.u.prototype.d.call(this,a)?(void 0===f&&(f=e,e=d,d=c.y,c=c.x),this.fi.x=c,this.fi.y=d,this.Rr=e,this.fj=f,!0):!1},j:function(){var a=new b.Vh;this.xa(a);a.d(this.n,this.fi,this.Rr,this.fj);return a},v:function(a){b.u.prototype.v.call(this,a);var c=a.Se();a=a.Kg();this.Rc.x=c;this.Rc.y=a;
this.Gc.x=c;this.Gc.y=a},update:function(a){a=this.kd(a);if(this.target){var c=a*this.fj%1,c=4*this.Rr*c*(1-c),c=c+this.fi.y*a;a*=this.fi.x;var d=this.Gc;if(b.ou){var e=this.target.Kg(),f=this.Rc;d.x=d.x+this.target.Se()-f.x;d.y=d.y+e-f.y;a+=d.x;c+=d.y;f.x=a;f.y=c;this.target.P(a,c)}else this.target.P(d.x+a,d.y+c)}},reverse:function(){var a=b.Vh.create(this.n,C(-this.fi.x,-this.fi.y),this.Rr,this.fj);this.xa(a);this.me(a);return a}});b.Vh.create=function(a,c,d,e,f){return new b.Vh(a,c,d,e,f)};
b.Ku=b.Vh.extend({Jf:null,ctor:function(a,c,d,e,f){b.Vh.prototype.ctor.call(this);this.Jf=C(0,0);void 0!==e&&this.d(a,c,d,e,f)},d:function(a,c,d,e,f){return b.Vh.prototype.d.call(this,a,c,d,e,f)?(void 0===f&&(d=c.y,c=c.x),this.Jf.x=c,this.Jf.y=d,!0):!1},v:function(a){b.Vh.prototype.v.call(this,a);this.fi.x=this.Jf.x-this.Gc.x;this.fi.y=this.Jf.y-this.Gc.y},j:function(){var a=new b.Ku;this.xa(a);a.d(this.n,this.Jf,this.Rr,this.fj);return a}});
b.Ku.create=function(a,c,d,e,f){return new b.Ku(a,c,d,e,f)};b.zM=function(a,c,d,e){return 0*Math.pow(1-e,3)+3*e*Math.pow(1-e,2)*a+3*Math.pow(e,2)*(1-e)*c+Math.pow(e,3)*d};
b.Rj=b.u.extend({Gf:null,Gc:null,Rc:null,ctor:function(a,c){b.u.prototype.ctor.call(this);this.Gf=[];this.Gc=C(0,0);this.Rc=C(0,0);c&&this.d(a,c)},d:function(a,c){return b.u.prototype.d.call(this,a)?(this.Gf=c,!0):!1},j:function(){var a=new b.Rj;this.xa(a);for(var c=[],d=0;d<this.Gf.length;d++){var e=this.Gf[d];c.push(C(e.x,e.y))}a.d(this.n,c);return a},v:function(a){b.u.prototype.v.call(this,a);var c=a.Se();a=a.Kg();this.Rc.x=c;this.Rc.y=a;this.Gc.x=c;this.Gc.y=a},update:function(a){a=this.kd(a);
if(this.target){var c=this.Gf,d=b.zM(c[0].x,c[1].x,c[2].x,a);a=b.zM(c[0].y,c[1].y,c[2].y,a);c=this.Gc;if(b.ou){var e=this.target.Kg(),f=this.Rc;c.x=c.x+this.target.Se()-f.x;c.y=c.y+e-f.y;d+=c.x;a+=c.y;f.x=d;f.y=a;this.target.P(d,a)}else this.target.P(c.x+d,c.y+a)}},reverse:function(){var a=this.Gf,a=b.Rj.create(this.n,[b.Nh(a[1],b.cG(a[2])),b.Nh(a[0],b.cG(a[2])),b.cG(a[2])]);this.xa(a);this.me(a);return a}});b.Rj.create=function(a,c){return new b.Rj(a,c)};
b.ku=b.Rj.extend({ax:null,ctor:function(a,c){b.Rj.prototype.ctor.call(this);this.ax=[];c&&this.d(a,c)},d:function(a,c){return b.u.prototype.d.call(this,a)?(this.ax=c,!0):!1},j:function(){var a=new b.ku;this.xa(a);a.d(this.n,this.ax);return a},v:function(a){b.Rj.prototype.v.call(this,a);a=this.Gc;var c=this.ax,d=this.Gf;d[0]=b.Hd(c[0],a);d[1]=b.Hd(c[1],a);d[2]=b.Hd(c[2],a)}});b.ku.create=function(a,c){return new b.ku(a,c)};
b.Xc=b.u.extend({qa:1,Ra:1,xs:1,ys:1,$n:0,ao:0,ff:0,gf:0,ctor:function(a,c,d){b.u.prototype.ctor.call(this);void 0!==c&&this.d(a,c,d)},d:function(a,c,d){return b.u.prototype.d.call(this,a)?(this.$n=c,this.ao=null!=d?d:c,!0):!1},j:function(){var a=new b.Xc;this.xa(a);a.d(this.n,this.$n,this.ao);return a},v:function(a){b.u.prototype.v.call(this,a);this.xs=a.scaleX;this.ys=a.scaleY;this.ff=this.$n-this.xs;this.gf=this.ao-this.ys},update:function(a){a=this.kd(a);this.target&&(this.target.scaleX=this.xs+
this.ff*a,this.target.scaleY=this.ys+this.gf*a)}});b.Xc.create=function(a,c,d){var e=new b.Xc;e.d(a,c,d);return e};b.An=b.Xc.extend({v:function(a){b.Xc.prototype.v.call(this,a);this.ff=this.xs*this.$n-this.xs;this.gf=this.ys*this.ao-this.ys},reverse:function(){var a=b.An.create(this.n,1/this.$n,1/this.ao);this.xa(a);this.me(a);return a},j:function(){var a=new b.An;this.xa(a);a.d(this.n,this.$n,this.ao);return a}});b.An.create=function(a,c,d){return new b.An(a,c,d)};
b.gq=b.u.extend({ec:0,gL:!1,ctor:function(a,c){b.u.prototype.ctor.call(this);void 0!==c&&this.d(a,c)},d:function(a,c){return b.u.prototype.d.call(this,a)?(this.ec=c,!0):!1},j:function(){var a=new b.gq;this.xa(a);a.d(this.n,this.ec);return a},update:function(a){a=this.kd(a);if(this.target&&!this.Lg()){var c=1/this.ec;this.target.visible=a%c>c/2}},v:function(a){b.u.prototype.v.call(this,a);this.gL=a.visible},stop:function(){this.target.visible=this.gL;b.u.prototype.stop.call(this)},reverse:function(){var a=
b.gq.create(this.n,this.ec);this.xa(a);this.me(a);return a}});b.gq.create=function(a,c){var d=new b.gq;d.d(a,c);return d};
b.Uj=b.u.extend({Po:0,aw:0,ctor:function(a,c){b.u.prototype.ctor.call(this);void 0!==c&&this.d(a,c)},d:function(a,c){return b.u.prototype.d.call(this,a)?(this.Po=c,!0):!1},j:function(){var a=new b.Uj;this.xa(a);a.d(this.n,this.Po);return a},update:function(a){a=this.kd(a);if(this.target.yb){var c=void 0!==this.aw?this.aw:255;this.target.opacity=c+(this.Po-c)*a}},v:function(a){b.u.prototype.v.call(this,a);this.target.yb&&(this.aw=a.opacity)}});b.Uj.create=function(a,c){return new b.Uj(a,c)};
b.qn=b.Uj.extend({lD:null,reverse:function(){var a=new b.yl;a.d(this.n,0);this.xa(a);this.me(a);return a},j:function(){var a=new b.qn;this.xa(a);a.d(this.n,this.Po);return a},v:function(a){this.lD&&(this.Po=this.lD.aw);b.Uj.prototype.v.call(this,a)}});b.qn.create=function(a){return new b.qn(a,255)};b.yl=b.Uj.extend({reverse:function(){var a=new b.qn;a.lD=this;a.d(this.n,255);this.xa(a);this.me(a);return a},j:function(){var a=new b.yl;this.xa(a);a.d(this.n,this.Po);return a}});
b.yl.create=function(a){var c=new b.yl;c.d(a,0);return c};
b.fv=b.u.extend({pd:null,Qc:null,ctor:function(a,c,d,e){b.u.prototype.ctor.call(this);this.pd=b.color(0,0,0);this.Qc=b.color(0,0,0);void 0!==e&&this.d(a,c,d,e)},d:function(a,c,d,e){return b.u.prototype.d.call(this,a)?(this.pd=b.color(c,d,e),!0):!1},j:function(){var a=new b.fv;this.xa(a);var c=this.pd;a.d(this.n,c.r,c.g,c.b);return a},v:function(a){b.u.prototype.v.call(this,a);this.target.yb&&(this.Qc=this.target.color)},update:function(a){a=this.kd(a);var c=this.Qc,d=this.pd;c&&this.target.yb&&(this.target.color=
b.color(c.r+(d.r-c.r)*a,c.g+(d.g-c.g)*a,c.b+(d.b-c.b)*a))}});b.fv.create=function(a,c,d,e){return new b.fv(a,c,d,e)};
b.cr=b.u.extend({Mv:0,Lv:0,Kv:0,xK:0,wK:0,vK:0,ctor:function(a,c,d,e){b.u.prototype.ctor.call(this);void 0!==e&&this.d(a,c,d,e)},d:function(a,c,d,e){return b.u.prototype.d.call(this,a)?(this.Mv=c,this.Lv=d,this.Kv=e,!0):!1},j:function(){var a=new b.cr;this.xa(a);a.d(this.n,this.Mv,this.Lv,this.Kv);return a},v:function(a){b.u.prototype.v.call(this,a);a.yb&&(a=a.color,this.xK=a.r,this.wK=a.g,this.vK=a.b)},update:function(a){a=this.kd(a);this.target.yb&&(this.target.color=b.color(this.xK+this.Mv*a,this.wK+
this.Lv*a,this.vK+this.Kv*a))},reverse:function(){var a=b.cr.create(this.n,-this.Mv,-this.Lv,-this.Kv);this.xa(a);this.me(a);return a}});b.cr.create=function(a,c,d,e){return new b.cr(a,c,d,e)};b.qc=b.u.extend({update:function(){},reverse:function(){var a=b.qc.create(this.n);this.xa(a);this.me(a);return a},j:function(){var a=new b.qc;this.xa(a);a.d(this.n);return a}});b.qc.create=function(a){return new b.qc(a)};
b.El=b.u.extend({jj:null,ctor:function(a){b.u.prototype.ctor.call(this);this.jj=null;a&&this.aa(a)},aa:function(a){if(!a)throw"cc.ReverseTime.initWithAction(): action must be non null";if(a==this.jj)throw"cc.ReverseTime.initWithAction(): the action was already passed in.";return b.u.prototype.d.call(this,a.n)?(this.jj=a,!0):!1},j:function(){var a=new b.El;this.xa(a);a.aa(this.jj.j());return a},v:function(a){b.u.prototype.v.call(this,a);this.jj.v(a)},update:function(a){a=this.kd(a);this.jj&&this.jj.update(1-
a)},reverse:function(){return this.jj.j()},stop:function(){this.jj.stop();b.hd.prototype.stop.call(this)}});b.El.create=function(a){return new b.El(a)};
b.ln=b.u.extend({pk:null,es:0,HC:null,Vv:0,JD:null,ctor:function(a){b.u.prototype.ctor.call(this);this.JD=[];a&&this.YN(a)},kN:function(){return this.pk},p3:function(a){this.pk=a},YN:function(a){if(!a)throw"cc.Animate.initWithAnimation(): animation must be non-NULL";var c=a.op();if(this.d(c*a.gj)){this.es=0;this.p3(a);this.HC=null;this.Vv=0;var d=this.JD,e=d.length=0,f=c/a.xi;a=a.Ud;b.Uo(a,b.pg);for(var g=0;g<a.length;g++){var h=e*f/c,e=e+a[g].Td;d.push(h)}return!0}return!1},j:function(){var a=new b.ln;
this.xa(a);a.YN(this.pk.j());return a},v:function(a){b.u.prototype.v.call(this,a);this.pk.hm&&(this.HC=a.YZ());this.Vv=this.es=0},update:function(a){a=this.kd(a);1>a&&(a*=this.pk.gj,(0|a)>this.Vv&&(this.es=0,this.Vv++),a%=1);for(var c=this.pk.Ud,d=c.length,e=this.JD,f=this.es;f<d;f++)if(e[f]<=a)this.target.ol(c[f].Hh()),this.es=f+1;else break},reverse:function(){var a=this.pk,c=a.Ud,d=[];b.Uo(c,b.pg);if(0<c.length)for(var e=c.length-1;0<=e;e--){var f=c[e];if(!f)break;d.push(f.j())}c=b.Qj.create(d,
a.Td,a.gj);c.Yy(a.hm);a=b.ln.create(c);this.xa(a);this.me(a);return a},stop:function(){this.pk.hm&&this.target&&this.target.ol(this.HC);b.hd.prototype.stop.call(this)}});b.ln.create=function(a){return new b.ln(a)};
b.dv=b.u.extend({lr:null,fo:null,ctor:function(a,c){b.u.prototype.ctor.call(this);c&&this.up(a,c)},up:function(a,c){return this.d(c.n)?(this.fo=a,this.lr=c,!0):!1},j:function(){var a=new b.dv;this.xa(a);a.up(this.fo,this.lr.j());return a},v:function(a){b.u.prototype.v.call(this,a);this.lr.v(this.fo)},stop:function(){this.lr.stop()},update:function(a){a=this.kd(a);this.lr.update(a)},dba:function(){return this.fo},nia:function(a){this.fo!=a&&(this.fo=a)}});
b.dv.create=function(a,c){return new b.dv(a,c)};b.we=b.Qi.extend({Lg:function(){return!0},step:function(){this.update(1)},update:function(){},reverse:function(){return this.j()},j:function(){return new b.we}});b.Bf=b.we.extend({update:function(){this.target.visible=!0},reverse:function(){return b.ah.create()},j:function(){return new b.Bf}});b.Bf.create=function(){return new b.Bf};b.ah=b.we.extend({update:function(){this.target.visible=!1},reverse:function(){return b.Bf.create()},j:function(){return new b.ah}});b.ah.create=function(){return new b.ah};
b.dr=b.we.extend({update:function(){this.target.visible=!this.target.visible},reverse:function(){return new b.dr},j:function(){return new b.dr}});b.dr.create=function(){return new b.dr};b.Oq=b.we.extend({iw:!0,ctor:function(a){b.Qi.prototype.ctor.call(this);void 0!==a&&this.F(a)},update:function(){this.target.lG(this.iw)},F:function(a){this.iw=a;return!0},reverse:function(){return new b.Oq(this.iw)},j:function(){return new b.Oq(this.iw)}});b.Oq.create=function(a){return new b.Oq(a)};
b.Dq=b.we.extend({Qb:!1,ctor:function(a){b.Qi.prototype.ctor.call(this);this.Qb=!1;void 0!==a&&this.$N(a)},$N:function(a){this.Qb=a;return!0},update:function(){this.target.flippedX=this.Qb},reverse:function(){return b.Dq.create(!this.Qb)},j:function(){var a=new b.Dq;a.$N(this.Qb);return a}});b.Dq.create=function(a){return new b.Dq(a)};
b.Eq=b.we.extend({Rb:!1,ctor:function(a){b.Qi.prototype.ctor.call(this);this.Rb=!1;void 0!==a&&this.aO(a)},aO:function(a){this.Rb=a;return!0},update:function(){this.target.flippedY=this.Rb},reverse:function(){return b.Eq.create(!this.Rb)},j:function(){var a=new b.Eq;a.aO(this.Rb);return a}});b.Eq.create=function(a){return new b.Eq(a)};
b.Pu=b.we.extend({xh:0,Me:0,ctor:function(a,c){b.Qi.prototype.ctor.call(this);this.Me=this.xh=0;void 0!==a&&(void 0!==a.x&&(c=a.y,a=a.x),this.fO(a,c))},fO:function(a,c){this.xh=a;this.Me=c;return!0},update:function(){this.target.P(this.xh,this.Me)},j:function(){var a=new b.Pu;a.fO(this.xh,this.Me);return a}});b.Pu.create=function(a,c){return new b.Pu(a,c)};
b.wb=b.we.extend({oj:null,zv:null,Lr:null,Wn:null,ctor:function(a,c,d){b.Qi.prototype.ctor.call(this);void 0!==a&&(void 0===c?this.Yx(a):this.Yx(a,c,d))},Yx:function(a,c,d){c?(this.Wn=d,this.zv=a,this.oj=c):a&&(this.Lr=a);return!0},execute:function(){null!=this.zv?this.zv.call(this.oj,this.target,this.Wn):this.Lr&&this.Lr.call(null,this.target)},update:function(){this.execute()},yca:function(){return this.oj},oja:function(a){a!=this.oj&&(this.oj&&(this.oj=null),this.oj=a)},j:function(){var a=new b.wb;
this.oj?a.Yx(this.zv,this.oj,this.Wn):this.Lr&&a.Yx(this.Lr);return a}});b.wb.create=function(a,c,d){return new b.wb(a,c,d)};b.iz=b.u.extend({tB:0,uB:0,vB:0,oK:0,pK:0,qK:0,hM:0,iM:0,jM:0,ctor:function(){b.u.prototype.ctor.call(this);this.jM=this.iM=this.hM=this.qK=this.pK=this.oK=this.vB=this.uB=this.tB=0},v:function(a){b.u.prototype.v.call(this,a);a=a.Lm();var c=a.nN();this.tB=c.x;this.uB=c.y;this.vB=c.z;c=a.sN();this.oK=c.x;this.pK=c.y;this.qK=c.z;a=a.L0();this.hM=a.x;this.iM=a.y;this.jM=a.z},j:function(){return new b.iz},reverse:function(){return b.El.create(this)}});
b.ce=b.iz.extend({He:0,CB:0,or:0,EJ:0,bh:0,DJ:0,sL:0,qL:0,rL:0,pL:0,ctor:function(a,c,d,e,f,g,h){b.iz.prototype.ctor.call(this);void 0!==h&&this.d(a,c,d,e,f,g,h)},d:function(a,c,d,e,f,g,h){return b.u.prototype.d.call(this,a)?(this.He=c,this.CB=d,this.or=e,this.EJ=f,this.bh=g,this.DJ=h,this.qL=b.Yf(f),this.pL=b.Yf(h),!0):!1},v4:function(){var a=this.target.Lm(),c=a.sN(),d=a.nN(),a=c.x-d.x,e=c.y-d.y,c=c.z-d.z,d=Math.sqrt(Math.pow(a,2)+Math.pow(e,2)+Math.pow(c,2)),f=Math.sqrt(Math.pow(a,2)+Math.pow(e,
2));0===f&&(f=b.Hu);0===d&&(d=b.Hu);return{i2:d/b.iq.lt(),n5:Math.acos(c/d),azimuth:0>a?Math.PI-Math.asin(e/f):Math.asin(e/f)}},v:function(a){b.u.prototype.v.call(this,a);a=this.v4();isNaN(this.He)&&(this.He=a.i2);isNaN(this.or)&&(this.or=b.iG(a.n5));isNaN(this.bh)&&(this.bh=b.iG(a.azimuth));this.sL=b.Yf(this.or);this.rL=b.Yf(this.bh)},j:function(){var a=new b.ce;a.d(this.n,this.He,this.CB,this.or,this.EJ,this.bh,this.DJ);return a},update:function(a){a=this.kd(a);var c=(this.He+this.CB*a)*b.iq.lt(),
d=this.sL+this.qL*a,e=this.rL+this.pL*a;a=Math.sin(d)*Math.cos(e)*c+this.tB;e=Math.sin(d)*Math.sin(e)*c+this.uB;c=Math.cos(d)*c+this.vB;this.target.Lm().rP(a,e,c)}});b.ce.create=function(a,c,d,e,f,g,h){return new b.ce(a,c,d,e,f,g,h)};b.Pa=b.u.extend({p:null,ctor:function(a){b.u.prototype.ctor.call(this);a&&this.aa(a)},aa:function(a){if(!a)throw"cc.ActionEase.initWithAction(): action must be non nil";return this.d(a.op())?(this.p=a,!0):!1},j:function(){var a=new b.Pa;a.aa(this.p.j());return a},v:function(a){b.u.prototype.v.call(this,a);this.p.v(this.target)},stop:function(){this.p.stop();b.u.prototype.stop.call(this)},update:function(a){this.p.update(a)},reverse:function(){return b.Pa.create(this.p.reverse())},hF:function(){return this.p}});
b.Pa.create=function(a){return new b.Pa(a)};b.xl=b.Pa.extend({bc:0,ctor:function(a,c){b.Pa.prototype.ctor.call(this);void 0!==c&&this.aa(a,c)},$ia:function(a){this.bc=a},cca:function(){return this.bc},aa:function(a,c){return b.Pa.prototype.aa.call(this,a)?(this.bc=c,!0):!1},j:function(){var a=new b.xl;a.aa(this.p.j(),this.bc);return a},reverse:function(){return b.xl.create(this.p.reverse(),1/this.bc)}});b.xl.create=function(a,c){return new b.xl(a,c)};
b.Du=b.xl.extend({update:function(a){this.p.update(Math.pow(a,this.bc))},reverse:function(){return b.Du.create(this.p.reverse(),1/this.bc)},j:function(){var a=new b.Du;a.aa(this.p.j(),this.bc);return a}});b.Du.create=function(a,c){return new b.Du(a,c)};b.m_=function(a){return{bc:a,Ta:function(a){return Math.pow(a,this.bc)},reverse:function(){return b.m_(1/this.bc)}}};
b.wl=b.xl.extend({update:function(a){this.p.update(Math.pow(a,1/this.bc))},reverse:function(){return b.wl.create(this.p.reverse(),1/this.bc)},j:function(){var a=new b.wl;a.aa(this.p.j(),this.bc);return a}});b.wl.create=function(a,c){return new b.wl(a,c)};b.o_=function(a){return{bc:a,Ta:function(a){return Math.pow(a,1/this.bc)},reverse:function(){return b.o_(1/this.bc)}}};
b.sq=b.xl.extend({update:function(a){a*=2;1>a?this.p.update(0.5*Math.pow(a,this.bc)):this.p.update(1-0.5*Math.pow(2-a,this.bc))},j:function(){var a=new b.sq;a.aa(this.p.j(),this.bc);return a},reverse:function(){return b.sq.create(this.p.reverse(),this.bc)}});b.sq.create=function(a,c){return new b.sq(a,c)};b.n_=function(a){return{bc:a,Ta:function(a){a*=2;return 1>a?0.5*Math.pow(a,this.bc):1-0.5*Math.pow(2-a,this.bc)},reverse:function(){return b.n_(this.bc)}}};
b.Au=b.Pa.extend({update:function(a){this.p.update(0===a?0:Math.pow(2,10*(a-1)))},reverse:function(){return b.Cu.create(this.p.reverse())},j:function(){var a=new b.Au;a.aa(this.p.j());return a}});b.Au.create=function(a){return new b.Au(a)};b.YJ={Ta:function(a){return 0===a?0:Math.pow(2,10*(a-1))},reverse:function(){return b.$J}};b.u$=function(){return b.YJ};
b.Cu=b.Pa.extend({update:function(a){this.p.update(1==a?1:-Math.pow(2,-10*a)+1)},reverse:function(){return b.Au.create(this.p.reverse())},j:function(){var a=new b.Cu;a.aa(this.p.j());return a}});b.Cu.create=function(a){return new b.Cu(a)};b.$J={Ta:function(a){return 1==a?1:-Math.pow(2,-10*a)+1},reverse:function(){return b.YJ}};b.w$=function(){return b.$J};
b.Bu=b.Pa.extend({update:function(a){1!=a&&0!==a&&(a*=2,a=1>a?0.5*Math.pow(2,10*(a-1)):0.5*(-Math.pow(2,-10*(a-1))+2));this.p.update(a)},reverse:function(){return b.Bu.create(this.p.reverse())},j:function(){var a=new b.Bu;a.aa(this.p.j());return a}});b.Bu.create=function(a){return new b.Bu(a)};b.ZJ={Ta:function(a){return 1!==a&&0!==a?(a*=2,1>a?0.5*Math.pow(2,10*(a-1)):0.5*(-Math.pow(2,-10*(a-1))+2)):a},reverse:function(){return b.ZJ}};b.v$=function(){return b.ZJ};
b.Eu=b.Pa.extend({update:function(a){a=0===a||1===a?a:-1*Math.cos(a*Math.PI/2)+1;this.p.update(a)},reverse:function(){return b.Gu.create(this.p.reverse())},j:function(){var a=new b.Eu;a.aa(this.p.j());return a}});b.Eu.create=function(a){return new b.Eu(a)};b.jK={Ta:function(a){return 0===a||1===a?a:-1*Math.cos(a*Math.PI/2)+1},reverse:function(){return b.lK}};b.G$=function(){return b.jK};
b.Gu=b.Pa.extend({update:function(a){a=0===a||1===a?a:Math.sin(a*Math.PI/2);this.p.update(a)},reverse:function(){return b.Eu.create(this.p.reverse())},j:function(){var a=new b.Gu;a.aa(this.p.j());return a}});b.Gu.create=function(a){return new b.Gu(a)};b.lK={Ta:function(a){return 0===a||1==a?a:Math.sin(a*Math.PI/2)},reverse:function(){return b.jK}};b.I$=function(){return b.lK};
b.Fu=b.Pa.extend({update:function(a){a=0===a||1===a?a:-0.5*(Math.cos(Math.PI*a)-1);this.p.update(a)},j:function(){var a=new b.Fu;a.aa(this.p.j());return a},reverse:function(){return b.Fu.create(this.p.reverse())}});b.Fu.create=function(a){return new b.Fu(a)};b.kK={Ta:function(a){return 0===a||1===a?a:-0.5*(Math.cos(Math.PI*a)-1)},reverse:function(){return b.kK}};b.H$=function(){return b.kK};
b.nn=b.Pa.extend({Fb:0.3,ctor:function(a,c){b.Pa.prototype.ctor.call(this);a&&this.aa(a,c)},Uba:function(){return this.Fb},Wia:function(a){this.Fb=a},aa:function(a,c){b.Pa.prototype.aa.call(this,a);this.Fb=null==c?0.3:c;return!0},reverse:function(){b.log("cc.EaseElastic.reverse(): it should be overridden in subclass.");return null},j:function(){var a=new b.nn;a.aa(this.p.j(),this.Fb);return a}});b.nn.create=function(a,c){return new b.nn(a,c)};
b.xu=b.nn.extend({update:function(a){var c=0;0===a||1===a?c=a:(c=this.Fb/4,a-=1,c=-Math.pow(2,10*a)*Math.sin((a-c)*Math.PI*2/this.Fb));this.p.update(c)},reverse:function(){return b.zu.create(this.p.reverse(),this.Fb)},j:function(){var a=new b.xu;a.aa(this.p.j(),this.Fb);return a}});b.xu.create=function(a,c){return new b.xu(a,c)};b.WJ={Ta:function(a){if(0===a||1===a)return a;a-=1;return-Math.pow(2,10*a)*Math.sin((a-0.075)*Math.PI*2/0.3)},reverse:function(){return b.XJ}};
b.j_=function(a){return a&&0.3!==a?{Fb:a,Ta:function(a){if(0===a||1===a)return a;a-=1;return-Math.pow(2,10*a)*Math.sin((a-this.Fb/4)*Math.PI*2/this.Fb)},reverse:function(){return b.l_(this.Fb)}}:b.WJ};b.zu=b.nn.extend({update:function(a){var c=0,c=0===a||1==a?a:Math.pow(2,-10*a)*Math.sin((a-this.Fb/4)*Math.PI*2/this.Fb)+1;this.p.update(c)},reverse:function(){return b.xu.create(this.p.reverse(),this.Fb)},j:function(){var a=new b.zu;a.aa(this.p.j(),this.Fb);return a}});
b.zu.create=function(a,c){return new b.zu(a,c)};b.XJ={Ta:function(a){return 0===a||1===a?a:Math.pow(2,-10*a)*Math.sin((a-0.075)*Math.PI*2/0.3)+1},reverse:function(){return b.WJ}};b.l_=function(a){return a&&0.3!==a?{Fb:a,Ta:function(a){return 0===a||1===a?a:Math.pow(2,-10*a)*Math.sin((a-this.Fb/4)*Math.PI*2/this.Fb)+1},reverse:function(){return b.j_(this.Fb)}}:b.XJ};
b.yu=b.nn.extend({update:function(a){var c=0,c=this.Fb;if(0===a||1==a)c=a;else{c||(c=this.Fb=0.3*1.5);var d=c/4;a=2*a-1;c=0>a?-0.5*Math.pow(2,10*a)*Math.sin((a-d)*Math.PI*2/c):Math.pow(2,-10*a)*Math.sin((a-d)*Math.PI*2/c)*0.5+1}this.p.update(c)},reverse:function(){return b.yu.create(this.p.reverse(),this.Fb)},j:function(){var a=new b.yu;a.aa(this.p.j(),this.Fb);return a}});b.yu.create=function(a,c){return new b.yu(a,c)};
b.k_=function(a){return{Fb:a||0.3,Ta:function(a){var d=0,d=this.Fb;if(0===a||1===a)d=a;else{d||(d=this.Fb=0.3*1.5);var e=d/4;a=2*a-1;d=0>a?-0.5*Math.pow(2,10*a)*Math.sin((a-e)*Math.PI*2/d):Math.pow(2,-10*a)*Math.sin((a-e)*Math.PI*2/d)*0.5+1}return d},reverse:function(){return b.k_(this.Fb)}}};
b.vl=b.Pa.extend({px:function(a){if(a<1/2.75)return 7.5625*a*a;if(a<2/2.75)return a-=1.5/2.75,7.5625*a*a+0.75;if(a<2.5/2.75)return a-=2.25/2.75,7.5625*a*a+0.9375;a-=2.625/2.75;return 7.5625*a*a+0.984375},j:function(){var a=new b.vl;a.aa(this.p.j());return a},reverse:function(){return b.vl.create(this.p.reverse())}});b.vl.create=function(a){return new b.vl(a)};
b.uu=b.vl.extend({update:function(a){this.p.update(1-this.px(1-a))},reverse:function(){return b.wu.create(this.p.reverse())},j:function(){var a=new b.uu;a.aa(this.p.j());return a}});b.uu.create=function(a){return new b.uu(a)};b.wv=function(a){if(a<1/2.75)return 7.5625*a*a;if(a<2/2.75)return a-=1.5/2.75,7.5625*a*a+0.75;if(a<2.5/2.75)return a-=2.25/2.75,7.5625*a*a+0.9375;a-=2.625/2.75;return 7.5625*a*a+0.984375};b.NJ={Ta:function(a){return 1-b.wv(1-a)},reverse:function(){return b.PJ}};b.l$=function(){return b.NJ};
b.wu=b.vl.extend({update:function(a){this.p.update(this.px(a))},reverse:function(){return b.uu.create(this.p.reverse())},j:function(){var a=new b.wu;a.aa(this.p.j());return a}});b.wu.create=function(a){return new b.wu(a)};b.PJ={Ta:function(a){return b.wv(a)},reverse:function(){return b.NJ}};b.n$=function(){return b.PJ};b.vu=b.vl.extend({update:function(a){var c=0,c=0.5>a?0.5*(1-this.px(1-2*a)):0.5*this.px(2*a-1)+0.5;this.p.update(c)},j:function(){var a=new b.vu;a.aa(this.p.j());return a},reverse:function(){return b.vu.create(this.p.reverse())}});
b.vu.create=function(a){return new b.vu(a)};b.OJ={Ta:function(a){return a=0.5>a?0.5*(1-b.wv(1-2*a)):0.5*b.wv(2*a-1)+0.5},reverse:function(){return b.OJ}};b.m$=function(){return b.OJ};b.ru=b.Pa.extend({update:function(a){this.p.update(0===a||1==a?a:a*a*(2.70158*a-1.70158))},reverse:function(){return b.tu.create(this.p.reverse())},j:function(){var a=new b.ru;a.aa(this.p.j());return a}});b.ru.create=function(a){return new b.ru(a)};b.KJ={Ta:function(a){return 0===a||1===a?a:a*a*(2.70158*a-1.70158)},reverse:function(){return b.MJ}};
b.i$=function(){return b.KJ};b.tu=b.Pa.extend({update:function(a){a-=1;this.p.update(a*a*(2.70158*a+1.70158)+1)},reverse:function(){return b.ru.create(this.p.reverse())},j:function(){var a=new b.tu;a.aa(this.p.j());return a}});b.tu.create=function(a){return new b.tu(a)};b.MJ={Ta:function(a){a-=1;return a*a*(2.70158*a+1.70158)+1},reverse:function(){return b.KJ}};b.k$=function(){return b.MJ};
b.su=b.Pa.extend({update:function(a){a*=2;1>a?this.p.update(a*a*(3.5949095*a-2.5949095)/2):(a-=2,this.p.update(a*a*(3.5949095*a+2.5949095)/2+1))},j:function(){var a=new b.su;a.aa(this.p.j());return a},reverse:function(){return b.su.create(this.p.reverse())}});b.su.create=function(a){return new b.su(a)};b.LJ={Ta:function(a){a*=2;if(1>a)return a*a*(3.5949095*a-2.5949095)/2;a-=2;return a*a*(3.5949095*a+2.5949095)/2+1},reverse:function(){return b.LJ}};b.j$=function(){return b.LJ};
b.lq=b.Pa.extend({ww:null,xw:null,yw:null,zw:null,ctor:function(a){b.Pa.prototype.ctor.call(this,a)},oa:function(a,c,d,e,f){return Math.pow(1-f,3)*a+3*f*Math.pow(1-f,2)*c+3*Math.pow(f,2)*(1-f)*d+Math.pow(f,3)*e},update:function(a){this.p.update(this.oa(this.ww,this.xw,this.yw,this.zw,a))},j:function(){var a=new b.lq;a.aa(this.p.j());a.lP(this.ww,this.xw,this.yw,this.zw);return a},reverse:function(){var a=b.lq.create(this.p.reverse());a.lP(this.zw,this.yw,this.xw,this.ww);return a},lP:function(a,c,
d,e){this.ww=a||0;this.xw=c||0;this.yw=d||0;this.zw=e||0}});b.lq.create=function(a){return new b.lq(a)};b.i_=function(a,c,d,e){return{Ta:function(f){return b.lq.prototype.oa(a,c,d,e,f)},reverse:function(){return b.i_(e,d,c,a)}}};b.tq=b.Pa.extend({oa:function(a){return Math.pow(a,2)},update:function(a){this.p.update(this.oa(a))},j:function(){var a=new b.tq;a.aa(this.p.j());return a},reverse:function(){return b.tq.create(this.p.reverse())}});b.tq.create=function(a){return new b.tq(a)};
b.aK={Ta:b.tq.prototype.oa,reverse:function(){return b.aK}};b.x$=function(){return b.aK};b.vq=b.Pa.extend({oa:function(a){return-a*(a-2)},update:function(a){this.p.update(this.oa(a))},j:function(){var a=new b.vq;a.aa();return a},reverse:function(){return b.vq.create(this.p.reverse())}});b.vq.create=function(a){return new b.vq(a)};b.cK={Ta:b.vq.prototype.oa,reverse:function(){return b.cK}};b.z$=function(){return b.cK};
b.uq=b.Pa.extend({oa:function(a){var c=a;a*=2;1>a?c=a*a*0.5:(--a,c=-0.5*(a*(a-2)-1));return c},update:function(a){this.p.update(this.oa(a))},j:function(){var a=new b.uq;a.aa(this.p.j());return a},reverse:function(){return b.uq.create(this.p.reverse())}});b.uq.create=function(a){return new b.uq(a)};b.bK={Ta:b.uq.prototype.oa,reverse:function(){return b.bK}};b.y$=function(){return b.bK};
b.wq=b.Pa.extend({oa:function(a){return a*a*a*a},update:function(a){this.p.update(this.oa(a))},j:function(){var a=new b.wq;a.aa(this.p.j());return a},reverse:function(){return b.wq.create(this.p.reverse())}});b.wq.create=function(a){return new b.wq(a)};b.dK={Ta:b.wq.prototype.oa,reverse:function(){return b.dK}};b.A$=function(){return b.dK};
b.yq=b.Pa.extend({oa:function(a){a-=1;return-(a*a*a*a-1)},update:function(a){this.p.update(this.oa(a))},j:function(){var a=new b.yq;a.aa(this.p.j());return a},reverse:function(){return b.yq.create(this.p.reverse())}});b.yq.create=function(a){return new b.yq(a)};b.fK={Ta:b.yq.prototype.oa,reverse:function(){return b.fK}};b.C$=function(){return b.fK};
b.xq=b.Pa.extend({oa:function(a){a*=2;if(1>a)return 0.5*a*a*a*a;a-=2;return-0.5*(a*a*a*a-2)},update:function(a){this.p.update(this.oa(a))},j:function(){var a=new b.xq;a.aa(this.p.j());return a},reverse:function(){return b.xq.create(this.p.reverse())}});b.xq.create=function(a){return new b.xq(a)};b.eK={Ta:b.xq.prototype.oa,reverse:function(){return b.eK}};b.B$=function(){return b.eK};
b.zq=b.Pa.extend({oa:function(a){return a*a*a*a*a},update:function(a){this.p.update(this.oa(a))},j:function(){var a=new b.zq;a.aa(this.p.j());return a},reverse:function(){return b.zq.create(this.p.reverse())}});b.zq.create=function(a){return new b.zq(a)};b.gK={Ta:b.zq.prototype.oa,reverse:function(){return b.gK}};b.D$=function(){return b.gK};
b.Bq=b.Pa.extend({oa:function(a){a-=1;return a*a*a*a*a+1},update:function(a){this.p.update(this.oa(a))},j:function(){var a=new b.Bq;a.aa(this.p.j());return a},reverse:function(){return b.Bq.create(this.p.reverse())}});b.Bq.create=function(a){return new b.Bq(a)};b.iK={Ta:b.Bq.prototype.oa,reverse:function(){return b.iK}};b.F$=function(){return b.iK};
b.Aq=b.Pa.extend({oa:function(a){a*=2;if(1>a)return 0.5*a*a*a*a*a;a-=2;return 0.5*(a*a*a*a*a+2)},update:function(a){this.p.update(this.oa(a))},j:function(){var a=new b.Aq;a.aa(this.p.j());return a},reverse:function(){return b.Aq.create(this.p.reverse())}});b.Aq.create=function(a){return new b.Aq(a)};b.hK={Ta:b.Aq.prototype.oa,reverse:function(){return b.hK}};b.E$=function(){return b.hK};
b.mq=b.Pa.extend({oa:function(a){return-1*(Math.sqrt(1-a*a)-1)},update:function(a){this.p.update(this.oa(a))},j:function(){var a=new b.mq;a.aa(this.p.j());return a},reverse:function(){return b.mq.create(this.p.reverse())}});b.mq.create=function(a){return new b.mq(a)};b.QJ={Ta:b.mq.prototype.oa,reverse:function(){return b.QJ}};b.o$=function(){return b.QJ};
b.oq=b.Pa.extend({oa:function(a){a-=1;return Math.sqrt(1-a*a)},update:function(a){this.p.update(this.oa(a))},j:function(){var a=new b.oq;a.aa(this.p.j());return a},reverse:function(){return b.oq.create(this.p.reverse())}});b.oq.create=function(a){return new b.oq(a)};b.SJ={Ta:b.oq.prototype.oa,reverse:function(){return b.SJ}};b.q$=function(){return b.SJ};
b.nq=b.Pa.extend({oa:function(a){a*=2;if(1>a)return-0.5*(Math.sqrt(1-a*a)-1);a-=2;return 0.5*(Math.sqrt(1-a*a)+1)},update:function(a){this.p.update(this.oa(a))},j:function(){var a=new b.nq;a.aa(this.p.j());return a},reverse:function(){return b.nq.create(this.p.reverse())}});b.nq.create=function(a){return new b.nq(a)};b.RJ={Ta:b.nq.prototype.oa,reverse:function(){return b.RJ}};b.p$=function(){return b.RJ};
b.pq=b.Pa.extend({oa:function(a){return a*a*a},update:function(a){this.p.update(this.oa(a))},j:function(){var a=new b.pq;a.aa(this.p.j());return a},reverse:function(){return b.pq.create(this.p.reverse())}});b.pq.create=function(a){return new b.pq(a)};b.TJ={Ta:b.pq.prototype.oa,reverse:function(){return b.TJ}};b.r$=function(){return b.TJ};b.rq=b.Pa.extend({oa:function(a){a-=1;return a*a*a+1},update:function(a){this.p.update(this.oa(a))},j:function(){var a=new b.rq;a.aa(this.p.j());return a},reverse:function(){return b.rq.create(this.p.reverse())}});
b.rq.create=function(a){return new b.rq(a)};b.VJ={Ta:b.rq.prototype.oa,reverse:function(){return b.VJ}};b.t$=function(){return b.VJ};b.qq=b.Pa.extend({oa:function(a){a*=2;if(1>a)return 0.5*a*a*a;a-=2;return 0.5*(a*a*a+2)},update:function(a){this.p.update(this.oa(a))},j:function(){var a=new b.qq;a.aa(this.p.j());return a},reverse:function(){return b.qq.create(this.p.reverse())}});b.qq.create=function(a){return new b.qq(a)};b.UJ={Ta:b.qq.prototype.oa,reverse:function(){return b.UJ}};b.s$=function(){return b.UJ};b.HE=function(a,c,d,e,f,g){var h=g*g,k=h*g,m=(1-f)/2;f=m*(-k+2*h-g);var p=m*(-k+h)+(2*k-3*h+1);g=m*(k-2*h+g)+(-2*k+3*h);h=m*(k-h);return C(a.x*f+c.x*p+d.x*g+e.x*h,a.y*f+c.y*p+d.y*g+e.y*h)};b.eP=function(a){for(var c=[],d=a.length-1;0<=d;d--)c.push(C(a[d].x,a[d].y));return c};b.vx=function(a){for(var c=[],d=0;d<a.length;d++)c.push(C(a[d].x,a[d].y));return c};b.fd=function(a,c){var d=Math.min(a.length-1,Math.max(c,0));return a[d]};
b.vha=function(a){for(var c=a.length,d=0|c/2,e=0;e<d;++e){var f=a[e];a[e]=a[c-e-1];a[c-e-1]=f}};
b.Zg=b.u.extend({mh:null,FJ:0,Ho:0,Rc:null,mJ:null,ctor:function(a,c,d){b.u.prototype.ctor.call(this);this.mh=[];void 0!==d&&this.d(a,c,d)},d:function(a,c,d){if(!c||0==c.length)throw"Invalid configuration. It must at least have one control point";return b.u.prototype.d.call(this,a)?(this.T3(c),this.Ho=d,!0):!1},j:function(){var a=new b.Zg;a.d(this.n,b.vx(this.mh),this.Ho);return a},v:function(a){b.u.prototype.v.call(this,a);this.FJ=1/(this.mh.length-1);this.Rc=C(this.target.Se(),this.target.Kg());
this.mJ=C(0,0)},update:function(a){a=this.kd(a);var c,d=this.mh;if(1==a)c=d.length-1,a=1;else{var e=this.FJ;c=0|a/e;a=(a-e*c)/e}c=b.HE(b.fd(d,c-1),b.fd(d,c-0),b.fd(d,c+1),b.fd(d,c+2),this.Ho,a);b.ou&&(d=this.target.Se()-this.Rc.x,a=this.target.Kg()-this.Rc.y,0!=d||0!=a)&&(e=this.mJ,d=e.x+d,a=e.y+a,e.x=d,e.y=a,c.x+=d,c.y+=a);this.iQ(c)},reverse:function(){var a=b.eP(this.mh);return b.Zg.create(this.n,a,this.Ho)},iQ:function(a){this.target.P(a);this.Rc=a},Vba:function(){return this.mh},T3:function(a){this.mh=
a}});b.Zg.create=function(a,c,d){return new b.Zg(a,c,d)};
b.ul=b.Zg.extend({Gc:null,ctor:function(a,c,d){b.Zg.prototype.ctor.call(this);this.Gc=C(0,0);void 0!==d&&this.d(a,c,d)},v:function(a){b.Zg.prototype.v.call(this,a);this.Gc.x=a.Se();this.Gc.y=a.Kg()},reverse:function(){for(var a=this.mh.slice(),c,d=a[0],e=1;e<a.length;++e)c=a[e],a[e]=b.Hd(c,d),d=c;a=b.eP(a);d=a[a.length-1];a.pop();d.x=-d.x;d.y=-d.y;a.unshift(d);for(e=1;e<a.length;++e)c=a[e],c.x=-c.x,c.y=-c.y,c.x+=d.x,c.y+=d.y,d=a[e]=c;return b.ul.create(this.n,a,this.Ho)},iQ:function(a){var c=this.Gc,
d=a.x+c.x;a=a.y+c.y;this.Rc.x=d;this.Rc.y=a;this.target.P(d,a)},j:function(){var a=new b.ul;a.d(this.n,b.vx(this.mh),this.Ho);return a}});b.ul.create=function(a,c,d){return new b.ul(a,c,d)};b.mu=b.Zg.extend({ctor:function(a,c){c&&this.d(a,c)},d:function(a,c){return b.Zg.prototype.d.call(this,a,c,0.5)},j:function(){var a=new b.mu;a.d(this.n,b.vx(this.mh));return a}});b.mu.create=function(a,c){return new b.mu(a,c)};
b.lu=b.ul.extend({ctor:function(a,c){b.ul.prototype.ctor.call(this);c&&this.d(a,c)},d:function(a,c){return b.Zg.prototype.d.call(this,a,c,0.5)},j:function(){var a=new b.lu;a.d(this.n,b.vx(this.mh));return a}});b.lu.create=function(a,c){return new b.lu(a,c)};b.D5=b.ja.extend({c5:function(){}});
b.eq=b.u.extend({key:"",Ax:0,dz:0,ct:0,ctor:function(a,c,d,e){b.u.prototype.ctor.call(this);this.key="";void 0!==e&&this.d(a,c,d,e)},d:function(a,c,d,e){return b.u.prototype.d.call(this,a)?(this.key=c,this.dz=e,this.Ax=d,!0):!1},v:function(a){if(!a||!a.c5)throw"cc.ActionTween.startWithTarget(): target must be non-null, and target must implement updateTweenAction function";b.u.prototype.v.call(this,a);this.ct=this.dz-this.Ax},update:function(){},reverse:function(){return b.eq.create(this.duration,this.key,
this.dz,this.Ax)},j:function(){var a=new b.eq;a.d(this.n,this.key,this.Ax,this.dz);return a}});b.eq.create=function(a,c,d,e){var f=new b.eq;return f.d(a,c,d,e)?f:null};b.action=b.hd.create;b.speed=b.Uq.create;b.faa=b.Ju.create;b.hga=b.ce.create;b.y9=b.Zg.create;b.x9=b.ul.create;b.A9=b.mu.create;b.z9=b.lu.create;b.show=b.Bf.create;b.cda=b.ah.create;b.rka=b.dr.create;b.mha=b.Oq.create;b.daa=b.Dq.create;b.eaa=b.Eq.create;b.Ega=b.Pu.create;b.t9=b.wb.create;b.P8=b.u.create;b.Jha=b.ua.create;b.repeat=b.Pq.create;
b.d3=b.Dl.create;b.Vja=b.xe.create;b.Aha=b.Ru.create;b.zha=b.Fl.create;b.moveBy=b.Af.create;b.moveTo=b.Yj.create;b.Tja=b.ak.create;b.Sja=b.Tq.create;b.Ida=b.Vh.create;b.Jda=b.Ku.create;b.o9=b.Rj.create;b.p9=b.ku.create;b.Eha=b.Xc.create;b.Dha=b.An.create;b.blink=b.gq.create;b.aaa=b.Uj.create;b.Z$=b.qn.create;b.$$=b.yl.create;b.pka=b.fv.create;b.oka=b.cr.create;b.Q9=b.qc.create;b.wha=b.El.create;b.i9=b.ln.create;b.hka=b.dv.create;b.Q8=b.eq.create;b.ic=b.u.extend({X:null,ctor:function(a,c){b.wB();b.u.prototype.ctor.call(this);this.X=H(0,0);c&&this.d(a,c)},j:function(){var a=new b.ic,c=this.X;a.d(this.n,H(c.width,c.height));return a},v:function(a){b.u.prototype.v.call(this,a);var c=this.gt(),d=this.target;(a=d.grid)&&0<a.ti?(c=a.Y_(),a.wf()&&c.width==this.X.width&&c.height==this.X.height&&a.pG()):(a&&a.wf()&&a.setActive(!1),d.grid=c,d.grid.setActive(!0))},reverse:function(){return b.El.create(this)},d:function(a,c){return b.u.prototype.d.call(this,
a)?(this.X.width=c.width,this.X.height=c.height,!0):!1},gt:function(){b.log("cc.GridAction.getGrid(): it should be overridden in subclass.")}});b.ic.create=function(a,c){return new b.ic(a,c)};b.Vc=b.ic.extend({gt:function(){return b.Fz.create(this.X)},nQ:function(a){return this.target.grid.nQ(a)},Lc:function(a){return this.target.grid.Lc(a)},Kd:function(a,c){this.target.grid.Kd(a,c)}});b.Vc.create=function(a,c){return new b.Vc(a,c)};
b.tc=b.ic.extend({ZP:function(a){return this.target.grid.ZP(a)},cg:function(a){return this.target.grid.cg(a)},Ze:function(a,c){this.target.grid.Ze(a,c)},gt:function(){return b.EA.create(this.X)}});b.tc.create=function(a,c){return new b.tc(a,c)};b.Gl=b.we.extend({v:function(a){b.we.prototype.v.call(this,a);(a=this.target.grid)&&a.wf()&&a.setActive(!1)}});b.Gl.create=function(){return new b.Gl};
b.cI=b.we.extend({ec:null,ctor:function(a){b.we.prototype.ctor.call(this);void 0!==a&&this.h1(a)},h1:function(a){this.ec=a;return!0},v:function(a){b.we.prototype.v.call(this,a);this.target.grid&&this.target.grid.wf()&&this.target.grid.X3(this.target.grid.ti+this.ec)}});b.cI.create=function(a){return new b.cI(a)};b.dJ=b.Vc.extend({sf:0,ab:0,bb:0,ctor:function(a,c,d,e){b.ic.prototype.ctor.call(this);void 0!==e&&this.d(a,c,d,e)},mp:function(){return this.ab},Op:function(a){this.ab=a},Km:function(){return this.bb},$m:function(a){this.bb=a},d:function(a,c,d,e){return b.Vc.prototype.d.call(this,a,c)?(this.sf=d,this.ab=e,this.bb=1,!0):!1},update:function(a){for(var c=this.X,d=this.ab,e=C(0,0),f=this.bb,g=this.sf,h=0;h<c.width+1;++h)for(var k=0;k<c.height+1;++k){e.x=h;e.y=k;var m=this.Lc(e);m.z+=Math.sin(Math.PI*
a*g*2+0.01*(m.y+m.x))*d*f;this.Kd(e,m)}}});b.dJ.create=function(a,c,d,e){return new b.dJ(a,c,d,e)};
b.Ez=b.Vc.extend({ctor:function(a){void 0!==a?b.ic.prototype.ctor.call(this,a,H(1,1)):b.ic.prototype.ctor.call(this)},d:function(a){return b.Vc.prototype.d.call(this,a,H(1,1))},Zx:function(a,c){return 1!=a.width||1!=a.height?(b.log("Grid size must be (1,1)"),!1):b.Vc.prototype.d.call(this,c,a)},update:function(a){var c=Math.PI*a;a=Math.sin(c);var d=Math.cos(c/2),c=new b.uc,e=C(0,0);e.x=e.y=1;var f=this.Lc(e);e.x=e.y=0;var e=this.Lc(e),g=f.x,h=e.x,k,m;g>h?(f=C(0,0),e=C(0,1),k=C(1,0),m=C(1,1)):(k=C(0,
0),m=C(0,1),f=C(1,0),e=C(1,1),g=h);c.x=g-g*d;c.z=Math.abs(parseFloat(g*a/4));a=this.Lc(f);a.x=c.x;a.z+=c.z;this.Kd(f,a);a=this.Lc(e);a.x=c.x;a.z+=c.z;this.Kd(e,a);a=this.Lc(k);a.x-=c.x;a.z-=c.z;this.Kd(k,a);a=this.Lc(m);a.x-=c.x;a.z-=c.z;this.Kd(m,a)}});b.Ez.create=function(a){return new b.Ez(a)};
b.tH=b.Ez.extend({ctor:function(a){void 0!==a?b.ic.prototype.ctor.call(this,a,H(1,1)):b.ic.prototype.ctor.call(this)},update:function(a){var c=Math.PI*a;a=Math.sin(c);var d=Math.cos(c/2),c=new b.uc,e=C(0,0);e.x=e.y=1;var f=this.Lc(e);e.x=e.y=0;var e=this.Lc(e),g=f.y,h=e.y,k,m;g>h?(f=C(0,0),e=C(0,1),k=C(1,0),m=C(1,1)):(e=C(0,0),f=C(0,1),m=C(1,0),k=C(1,1),g=h);c.y=g-g*d;c.z=Math.abs(parseFloat(g*a)/4);a=this.Lc(f);a.y=c.y;a.z+=c.z;this.Kd(f,a);a=this.Lc(e);a.y-=c.y;a.z-=c.z;this.Kd(e,a);a=this.Lc(k);
a.y=c.y;a.z+=c.z;this.Kd(k,a);a=this.Lc(m);a.y-=c.y;a.z-=c.z;this.Kd(m,a)}});b.tH.create=function(a){return new b.tH(a)};
b.zH=b.Vc.extend({ya:null,He:0,mw:0,zV:!1,jb:!1,ctor:function(a,c,d,e){b.ic.prototype.ctor.call(this);this.ya=C(0,0);void 0!==e&&this.d(a,c,d,e)},tba:function(){return this.mw},Bia:function(a){this.mw=a},$ha:function(a){this.zV=a},Fx:function(){return this.ya},P:function(a){b.fG(a,this.ya)||(this.ya.x=a.x,this.ya.y=a.y,this.jb=!0)},d:function(a,c,d,e){return b.Vc.prototype.d.call(this,a,c)?(this.P(d),this.He=e,this.mw=0.7,this.jb=!0):!1},update:function(){if(this.jb){for(var a=this.X.width,c=this.X.height,
d=this.He,e=this.mw,f=C(0,0),g=C(0,0),h,k,m,p=0;p<a+1;++p)for(var r=0;r<c+1;++r)f.x=p,f.y=r,h=this.Lc(f),g.x=this.ya.x-h.x,g.y=this.ya.y-h.y,k=b.jl(g),k<d&&(k=d-k,k/=d,0==k&&(k=0.001),k=Math.log(k)*e,m=Math.exp(k)*d,k=b.jl(g),0<k&&(g.x/=k,g.y/=k,g.x*=m,g.y*=m,h.z+=b.jl(g)*e)),this.Kd(f,h);this.jb=!1}}});b.zH.create=function(a,c,d,e){return new b.zH(a,c,d,e)};
b.dI=b.Vc.extend({ya:null,He:0,sf:0,ab:0,bb:0,ctor:function(a,c,d,e,f,g){b.ic.prototype.ctor.call(this);this.ya=C(0,0);void 0!==g&&this.d(a,c,d,e,f,g)},Fx:function(){return this.ya},P:function(a){this.ya.x=a.x;this.ya.y=a.y},mp:function(){return this.ab},Op:function(a){this.ab=a},Km:function(){return this.bb},$m:function(a){this.bb=a},d:function(a,c,d,e,f,g){return b.Vc.prototype.d.call(this,a,c)?(this.P(d),this.He=e,this.sf=f,this.ab=g,this.bb=1,!0):!1},update:function(a){for(var c=this.X.width,
d=this.X.height,e=C(0,0),f=this.He,g=this.sf,h=this.ab,k=this.bb,m,p,r=C(0,0),s=0;s<c+1;++s)for(var u=0;u<d+1;++u)e.x=s,e.y=u,m=this.Lc(e),r.x=this.ya.x-m.x,r.y=this.ya.y-m.y,p=b.jl(r),p<f&&(p=f-p,m.z+=Math.sin(a*Math.PI*g*2+0.1*p)*h*k*Math.pow(p/f,2)),this.Kd(e,m)}});b.dI.create=function(a,c,d,e,f,g){return new b.dI(a,c,d,e,f,g)};
b.iI=b.Vc.extend({Lk:0,ss:!1,ctor:function(a,c,d,e){b.ic.prototype.ctor.call(this);void 0!==e&&this.d(a,c,d,e)},d:function(a,c,d,e){return b.Vc.prototype.d.call(this,a,c)?(this.Lk=d,this.ss=e,!0):!1},update:function(){for(var a=this.X.width,c=this.X.height,d=this.Lk,e=this.ss,f=C(0,0),g,h=0;h<a+1;++h)for(var k=0;k<c+1;++k)f.x=h,f.y=k,g=this.Lc(f),g.x+=b.Bb()%(2*d)-d,g.y+=b.Bb()%(2*d)-d,e&&(g.z+=b.Bb()%(2*d)-d),this.Kd(f,g)}});b.iI.create=function(a,c,d,e){return new b.iI(a,c,d,e)};
b.AH=b.Vc.extend({sf:0,ab:0,bb:0,ctor:function(a,c,d,e){b.ic.prototype.ctor.call(this);void 0!==e&&this.d(a,c,d,e)},mp:function(){return this.ab},Op:function(a){this.ab=a},Km:function(){return this.bb},$m:function(a){this.bb=a},d:function(a,c,d,e){return b.Vc.prototype.d.call(this,a,c)?(this.sf=d,this.ab=e,this.bb=1,!0):!1},update:function(a){for(var c=this.X.width,d=this.X.height,e=C(0,0),f=this.sf,g=this.ab,h=this.bb,k,m=1;m<c;++m)for(var p=1;p<d;++p)e.x=m,e.y=p,k=this.Lc(e),k.x+=Math.sin(a*Math.PI*
f*2+0.01*k.x)*g*h,k.y+=Math.sin(a*Math.PI*f*2+0.01*k.y)*g*h,this.Kd(e,k)}});b.AH.create=function(a,c,d,e){return new b.AH(a,c,d,e)};
b.cJ=b.Vc.extend({sf:0,ab:0,bb:0,pM:!1,HK:!1,ctor:function(a,c,d,e,f,g){b.ic.prototype.ctor.call(this);void 0!==g&&this.d(a,c,d,e,f,g)},mp:function(){return this.ab},Op:function(a){this.ab=a},Km:function(){return this.bb},$m:function(a){this.bb=a},d:function(a,c,d,e,f,g){return b.Vc.prototype.d.call(this,a,c)?(this.sf=d,this.ab=e,this.bb=1,this.HK=f,this.pM=g,!0):!1},update:function(a){for(var c=this.X.width,d=this.X.height,e=C(0,0),f=this.pM,g=this.HK,h=this.sf,k=this.ab,m=this.bb,p,r=0;r<c+1;++r)for(var s=
0;s<d+1;++s)e.x=r,e.y=s,p=this.Lc(e),f&&(p.x+=Math.sin(a*Math.PI*h*2+0.01*p.y)*k*m),g&&(p.y+=Math.sin(a*Math.PI*h*2+0.01*p.x)*k*m),this.Kd(e,p)}});b.cJ.create=function(a,c,d,e,f,g){return new b.cJ(a,c,d,e,f,g)};
b.YI=b.Vc.extend({ya:null,eM:0,ab:0,bb:0,ctor:function(a,c,d,e,f){b.ic.prototype.ctor.call(this);this.ya=C(0,0);void 0!==f&&this.d(a,c,d,e,f)},Fx:function(){return this.ya},P:function(a){this.ya.x=a.x;this.ya.y=a.y},mp:function(){return this.ab},Op:function(a){this.ab=a},Km:function(){return this.bb},$m:function(a){this.bb=a},d:function(a,c,d,e,f){return b.Vc.prototype.d.call(this,a,c)?(this.P(d),this.eM=e,this.ab=f,this.bb=1,!0):!1},update:function(a){for(var c=this.ya,d=this.X.width,e=this.X.height,
f=C(0,0),g=0.1*this.ab*this.bb,h=this.eM,k,m,p,r=C(0,0),s=0;s<d+1;++s)for(var u=0;u<e+1;++u)f.x=s,f.y=u,k=this.Lc(f),r.x=s-d/2,r.y=u-e/2,m=b.jl(r)*Math.cos(Math.PI/2+a*Math.PI*h*2)*g,p=Math.sin(m)*(k.y-c.y)+Math.cos(m)*(k.x-c.x),m=Math.cos(m)*(k.y-c.y)-Math.sin(m)*(k.x-c.x),k.x=c.x+p,k.y=c.y+m,this.Kd(f,k)}});b.YI.create=function(a,c,d,e,f){return new b.YI(a,c,d,e,f)};b.jI=b.tc.extend({Lk:0,ss:!1,ctor:function(a,c,d,e){b.ic.prototype.ctor.call(this);void 0!==e&&this.d(a,c,d,e)},d:function(a,c,d,e){return b.tc.prototype.d.call(this,a,c)?(this.Lk=d,this.ss=e,!0):!1},update:function(){for(var a=this.X,c=this.Lk,d=C(0,0),e=0;e<a.width;++e)for(var f=0;f<a.height;++f){d.x=e;d.y=f;var g=this.cg(d);g.G.x+=b.Bb()%(2*c)-c;g.N.x+=b.Bb()%(2*c)-c;g.M.x+=b.Bb()%(2*c)-c;g.K.x+=b.Bb()%(2*c)-c;g.G.y+=b.Bb()%(2*c)-c;g.N.y+=b.Bb()%(2*c)-c;g.M.y+=b.Bb()%(2*c)-c;g.K.y+=b.Bb()%(2*c)-
c;this.ss&&(g.G.z+=b.Bb()%(2*c)-c,g.N.z+=b.Bb()%(2*c)-c,g.M.z+=b.Bb()%(2*c)-c,g.K.z+=b.Bb()%(2*c)-c);this.Ze(d,g)}}});b.jI.create=function(a,c,d,e){return new b.jI(a,c,d,e)};
b.kI=b.tc.extend({Lk:0,GC:!1,VL:!1,ctor:function(a,c,d,e){b.ic.prototype.ctor.call(this);void 0!==e&&this.d(a,c,d,e)},d:function(a,c,d,e){return b.tc.prototype.d.call(this,a,c)?(this.GC=!1,this.Lk=d,this.VL=e,!0):!1},update:function(){if(!1===this.GC){for(var a=this.X,c=this.Lk,d,e=C(0,0),f=0;f<a.width;++f)for(var g=0;g<a.height;++g)e.x=f,e.y=g,d=this.cg(e),d.G.x+=b.Bb()%(2*c)-c,d.N.x+=b.Bb()%(2*c)-c,d.M.x+=b.Bb()%(2*c)-c,d.K.x+=b.Bb()%(2*c)-c,d.G.y+=b.Bb()%(2*c)-c,d.N.y+=b.Bb()%(2*c)-c,d.M.y+=b.Bb()%
(2*c)-c,d.K.y+=b.Bb()%(2*c)-c,this.VL&&(d.G.z+=b.Bb()%(2*c)-c,d.N.z+=b.Bb()%(2*c)-c,d.M.z+=b.Bb()%(2*c)-c,d.K.z+=b.Bb()%(2*c)-c),this.Ze(e,d);this.GC=!0}}});b.kI.create=function(a,c,d,e){return new b.kI(a,c,d,e)};function ea(){this.position=C(0,0);this.D4=C(0,0);this.ct=C(0,0)}
b.lI=b.tc.extend({oD:0,wj:0,wi:null,Ke:null,ctor:function(a,c,d){b.ic.prototype.ctor.call(this);this.wi=[];this.Ke=[];void 0!==d&&this.d(a,c,d)},d:function(a,c,d){return b.tc.prototype.d.call(this,a,c)?(this.oD=d,this.wi.length=0,this.Ke.length=0,!0):!1},OG:function(a,c){for(var d=c-1;0<=d;d--){var e=0|b.Bb()%(d+1),f=a[d];a[d]=a[e];a[e]=f}},Dx:function(a){var c=this.X,d=a.width*c.height+a.height;return H(this.wi[d]/c.height-a.width,this.wi[d]%c.height-a.height)},C2:function(a,c){var d=this.cg(a),
e=this.target.grid.mF(),f=c.position;d.G.x+=f.x*e.x;d.G.y+=f.y*e.y;d.N.x+=f.x*e.x;d.N.y+=f.y*e.y;d.M.x+=f.x*e.x;d.M.y+=f.y*e.y;d.K.x+=f.x*e.x;d.K.y+=f.y*e.y;this.Ze(a,d)},v:function(a){b.tc.prototype.v.call(this,a);a=this.X;this.wj=a.width*a.height;for(var c=this.wi,d=c.length=0;d<this.wj;++d)c[d]=d;this.OG(c,this.wj);for(var c=this.Ke,d=c.length=0,e=H(0,0),f=0;f<a.width;++f)for(var g=0;g<a.height;++g)c[d]=new ea,c[d].position=C(f,g),c[d].D4=C(f,g),e.width=f,e.height=g,c[d].ct=this.Dx(e),++d},update:function(a){for(var c=
0,d=this.X,e=this.Ke,f,g=C(0,0),h=0;h<d.width;++h)for(var k=0;k<d.height;++k)g.x=h,g.y=k,f=e[c],f.position.x=f.ct.width*a,f.position.y=f.ct.height*a,this.C2(g,f),++c}});b.lI.create=function(a,c,d){return new b.lI(a,c,d)};
b.Cq=b.tc.extend({cz:function(a,c){var d=this.X.width*c,e=this.X.height*c;return 0==d+e?1:Math.pow((a.width+a.height)/(d+e),6)},VG:function(a){this.Ze(a,this.cg(a))},UG:function(a){this.Ze(a,new b.Qu)},bQ:function(a,c){var d=this.cg(a),e=this.target.grid.mF();d.G.x+=e.x/2*(1-c);d.G.y+=e.y/2*(1-c);d.N.x-=e.x/2*(1-c);d.N.y+=e.y/2*(1-c);d.M.x+=e.x/2*(1-c);d.M.y-=e.y/2*(1-c);d.K.x-=e.x/2*(1-c);d.K.y-=e.y/2*(1-c);this.Ze(a,d)},update:function(a){for(var c=this.X,d=C(0,0),e=H(0,0),f,g=0;g<c.width;++g)for(var h=
0;h<c.height;++h)d.x=g,d.y=h,e.width=g,e.height=h,f=this.cz(e,a),0==f?this.UG(d):1>f?this.bQ(d,f):this.VG(d)}});b.Cq.create=function(a,c){return new b.Cq(a,c)};b.Cz=b.Cq.extend({cz:function(a,c){return 0==a.width+a.height?1:Math.pow((this.X.width*(1-c)+this.X.height*(1-c))/(a.width+a.height),6)}});b.Cz.create=function(a,c){return new b.Cz(a,c)};
b.Iu=b.Cq.extend({cz:function(a,c){var d=this.X.height*c;return 0==d?1:Math.pow(a.height/d,6)},bQ:function(a,c){var d=this.cg(a),e=this.target.grid.mF();d.G.y+=e.y/2*(1-c);d.N.y+=e.y/2*(1-c);d.M.y-=e.y/2*(1-c);d.K.y-=e.y/2*(1-c);this.Ze(a,d)}});b.Iu.create=function(a,c){return new b.Iu(a,c)};b.Dz=b.Iu.extend({cz:function(a,c){return 0==a.height?1:Math.pow(this.X.height*(1-c)/a.height,6)}});b.Dz.create=function(a,c){return new b.Dz(a,c)};
b.HA=b.tc.extend({oD:null,wj:0,wi:null,ctor:function(a,c,d){b.ic.prototype.ctor.call(this);this.wi=[];void 0!==c&&this.d(a,c,d)},d:function(a,c,d){return b.tc.prototype.d.call(this,a,c)?(this.oD=d||0,this.wi.length=0,!0):!1},OG:function(a,c){for(var d=c-1;0<=d;d--){var e=0|b.Bb()%(d+1),f=a[d];a[d]=a[e];a[e]=f}},VG:function(a){this.Ze(a,this.cg(a))},UG:function(a){this.Ze(a,new b.Qu)},v:function(a){b.tc.prototype.v.call(this,a);this.wj=this.X.width*this.X.height;a=this.wi;for(var c=a.length=0;c<this.wj;++c)a[c]=
c;this.OG(a,this.wj)},update:function(a){a=0|a*this.wj;for(var c=this.X,d,e=C(0,0),f=this.wi,g=0;g<this.wj;g++)d=f[g],e.x=0|d/c.height,e.y=d%(0|c.height),g<a?this.UG(e):this.VG(e)}});b.HA.create=function(a,c,d){return new b.HA(a,c,d)};
b.eJ=b.tc.extend({sf:0,ab:0,bb:0,ctor:function(a,c,d,e){b.ic.prototype.ctor.call(this);void 0!==e&&this.d(a,c,d,e)},mp:function(){return this.ab},Op:function(a){this.ab=a},Km:function(){return this.bb},$m:function(a){this.bb=a},d:function(a,c,d,e){return b.tc.prototype.d.call(this,a,c)?(this.sf=d,this.ab=e,this.bb=1,!0):!1},update:function(a){for(var c=this.X,d=this.sf,e=this.ab,f=this.bb,g=C(0,0),h,k=0;k<c.width;k++)for(var m=0;m<c.height;m++)g.x=k,g.y=m,h=this.cg(g),h.G.z=Math.sin(a*Math.PI*d*2+
0.01*(h.G.y+h.G.x))*e*f,h.N.z=h.G.z,h.M.z=h.G.z,h.K.z=h.G.z,this.Ze(g,h)}});b.eJ.create=function(a,c,d,e){return new b.eJ(a,c,d,e)};
b.xH=b.tc.extend({fj:0,ab:0,bb:0,ctor:function(a,c,d,e){b.ic.prototype.ctor.call(this);void 0!==e&&this.d(a,c,d,e)},mp:function(){return this.ab},Op:function(a){this.ab=a},Km:function(){return this.bb},$m:function(a){this.bb=a},d:function(a,c,d,e){return b.tc.prototype.d.call(this,a,c)?(this.fj=d,this.ab=e,this.bb=1,!0):!1},update:function(a){var c=Math.sin(Math.PI*a*this.fj*2)*this.ab*this.bb;a=Math.sin(Math.PI*(a*this.fj*2+1))*this.ab*this.bb;for(var d=this.X,e=this.target.grid,f,g=C(0,0),h=0;h<
d.width;h++)for(var k=0;k<d.height;k++)g.x=h,g.y=k,f=e.cg(g),0==(h+k)%2?(f.G.z+=c,f.N.z+=c,f.M.z+=c,f.K.z+=c):(f.G.z+=a,f.N.z+=a,f.M.z+=a,f.K.z+=a),e.Ze(g,f)}});b.xH.create=function(a,c,d,e){return new b.xH(a,c,d,e)};
b.rA=b.tc.extend({QX:0,Rs:null,ctor:function(a,c){b.ic.prototype.ctor.call(this);void 0!==c&&this.d(a,c)},d:function(a,c){this.QX=c;return b.tc.prototype.d.call(this,a,H(1,c))},update:function(a){for(var c=this.X,d=this.Rs.width,e,f,g=C(0,0),h=0;h<c.height;++h)g.y=h,e=this.cg(g),f=1,0==h%2&&(f=-1),e.G.x+=f*d*a,e.N.x+=f*d*a,e.M.x+=f*d*a,e.K.x+=f*d*a,this.Ze(g,e)},v:function(a){b.tc.prototype.v.call(this,a);this.Rs=b.D.kt()}});b.rA.create=function(a,c){return new b.rA(a,c)};
b.qA=b.tc.extend({yV:0,Rs:null,ctor:function(a,c){b.ic.prototype.ctor.call(this);void 0!==c&&this.d(a,c)},d:function(a,c){this.yV=c;return b.tc.prototype.d.call(this,a,H(c,1))},update:function(a){for(var c=this.X.width,d=this.Rs.height,e,f,g=C(0,0),h=0;h<c;++h)g.x=h,e=this.cg(g),f=1,0==h%2&&(f=-1),e.G.y+=f*d*a,e.N.y+=f*d*a,e.M.y+=f*d*a,e.K.y+=f*d*a,this.Ze(g,e)},v:function(a){b.tc.prototype.v.call(this,a);this.Rs=b.D.kt()}});b.qA.create=function(a,c){return new b.qA(a,c)};b.Ou=b.Vc.extend({update:function(a){var c=Math.max(0,a-0.25),c=-100-c*c*500,d=+Math.PI/2+-Math.PI/2*Math.sqrt(a);a=Math.sin(d);for(var d=Math.cos(d),e=this.X,f=C(0,0),g=0;g<=e.width;++g)for(var h=0;h<=e.height;++h){f.x=g;f.y=h;var k=this.Lc(f),m=Math.sqrt(k.x*k.x+(k.y-c)*(k.y-c)),p=m*a,r=Math.asin(k.x/m)/a,s=Math.cos(r);k.x=r<=Math.PI?p*Math.sin(r):0;k.y=m+c-p*(1-s)*a;k.z=p*(1-s)*d/7;0.5>k.z&&(k.z=0.5);this.Kd(f,k)}}});b.Ou.create=function(a,c){return new b.Ou(a,c)};b.Xa=b.ia.extend({mc:null,ni:0,dc:null,kh:null,Nl:null,Cd:!1,tb:"ProgressTimer",m0:function(){return C(this.kh.x,this.kh.y)},N3:function(a){this.kh=b.aG(a,C(0,0),C(1,1))},F_:function(){return C(this.Nl.x,this.Nl.y)},r3:function(a){this.Nl=b.aG(a,C(0,0),C(1,1))},qF:function(){return this.mc},s0:function(){return this.ni},JN:function(){return this.dc},R3:function(a){this.ni!=a&&(this.ni=b.Tc(a,0,100),this.eE())},Jd:function(){},ue:function(){return!1},s1:function(){return this.Cd},oB:function(a){if(a<
b.Xa.nI){var c=b.Xa.PT;return this.Cd?C(c>>7-(a<<1)&1,c>>7-((a<<1)+1)&1):C(c>>(a<<1)+1&1,c>>(a<<1)&1)}return C(0,0)},vw:null,PD:270,KB:270,He:0,AB:!1,jB:null,qd:0,zc:null,rf:null,lE:null,Ns:!1,ctor:null,xr:function(){b.ia.prototype.ctor.call(this);this.mc=b.Xa.Xh;this.ni=0;this.kh=C(0,0);this.Nl=C(0,0);this.Cd=!1;this.dc=null;this.vw=C(0,0);this.KB=this.PD=270;this.He=0;this.AB=!1;this.jB=O(0,0,0,0)},yr:function(){b.ia.prototype.ctor.call(this);this.mc=b.Xa.Xh;this.ni=0;this.kh=C(0,0);this.Nl=C(0,
0);this.Cd=!1;this.dc=null;this.lE=b.k.createBuffer();this.qd=0;this.rf=this.zc=null;this.Ns=!1},$a:function(a){this.dc.color=a;this.fc()},Aa:function(a){this.dc.opacity=a;this.fc()},Qe:function(){return this.dc.color},Re:function(){return this.dc.opacity},DP:null,kY:function(a){this.Cd!==a&&(this.Cd=a)},lY:function(a){this.Cd!==a&&(this.Cd=a,this.rf=this.zc=null,this.qd=0)},Zy:null,qY:function(a){this.dc!=a&&(this.dc=a,this.width=this.dc.width,this.height=this.dc.height)},rY:function(a){a&&this.dc!=
a&&(this.dc=a,this.width=a.width,this.height=a.height,this.zc&&(this.rf=this.zc=null,this.qd=0))},KG:null,yY:function(a){a!==this.mc&&(this.mc=a)},zY:function(a){a!==this.mc&&(this.zc&&(this.rf=this.zc=null,this.qd=0),this.mc=a)},CG:null,iY:function(a){this.Cd!==a&&(this.Cd=a)},jY:function(a){this.Cd!==a&&(this.Cd=a,this.rf=this.zc=null,this.qd=0)},qe:function(a){var c=this.dc;if(!c)return{ea:0,fa:0};var d=c.quad,e=C(d.G.l.ea,d.G.l.fa),d=C(d.K.l.ea,d.K.l.fa);c.textureRectRotated&&(c=a.x,a.x=a.y,a.y=
c);return{ea:e.x*(1-a.x)+d.x*a.x,fa:e.y*(1-a.y)+d.y*a.y}},re:function(a){if(!this.dc)return{x:0,y:0};var c=this.dc.quad,d=C(c.G.i.x,c.G.i.y),c=C(c.K.i.x,c.K.i.y);return{x:d.x*(1-a.x)+c.x*a.x,y:d.y*(1-a.y)+c.y*a.y}},BF:null,NW:function(a){this.percentage=0;this.anchorY=this.anchorX=0.5;this.mc=b.Xa.Xh;this.Cd=!1;this.midPoint=C(0.5,0.5);this.barChangeRate=C(1,1);this.sprite=a;return!0},OW:function(a){this.percentage=0;this.rf=this.zc=null;this.qd=0;this.anchorY=this.anchorX=0.5;this.mc=b.Xa.Xh;this.Cd=
!1;this.midPoint=C(0.5,0.5);this.barChangeRate=C(1,1);this.sprite=a;this.shaderProgram=b.Ld.oc(b.Ui);return!0},Y:null,Rl:function(a){a=a||b.k;var c=this.dc;c.to&&(a.globalCompositeOperation="lighter");var d=b.view.qa,e=b.view.Ra;a.globalAlpha=c.Ca/255;var f=c.ha,g=c.O,h=c.Eb,k=c.IB,m=0|h.x,p=-h.y-f.height,r=c.Lo;k.width=f.width*d;k.height=f.height*e;a.save();c.Qb&&(m=-h.x-f.width,a.scale(-1,1));c.Rb&&(p=h.y,a.scale(1,-1));m*=d;p*=e;this.mc==b.Xa.Il?(f=this.jB,a.beginPath(),a.rect(f.x*d,f.y*e,f.width*
d,f.height*e),a.clip(),a.closePath()):this.mc==b.Xa.Xh&&(f=this.vw.x*d,h=this.vw.y*e,a.beginPath(),a.arc(f,h,this.He*e,Math.PI/180*this.PD,Math.PI/180*this.KB,this.AB),a.lineTo(f,h),a.clip(),a.closePath());c.L&&r.bq?(d=c.L.Db,this.Bv?a.drawImage(d,0,0,r.width,r.height,m,p,k.width,k.height):a.drawImage(d,r.x,r.y,r.width,r.height,m,p,k.width,k.height)):0!==g.width&&(k=this.color,a.fillStyle="rgba("+k.r+","+k.g+","+k.b+",1)",a.fillRect(m,p,g.width*d,g.height*e));a.restore();b.ag()},$i:function(a){a=
a||b.k;if(this.zc&&this.dc){b.yt(this);var c=this.dc.Ch();b.Ih(c.src,c.U);b.Jc(b.Kl);b.te(this.dc.texture);a.bindBuffer(a.ARRAY_BUFFER,this.lE);this.Ns&&(a.bufferData(a.ARRAY_BUFFER,this.rf,a.DYNAMIC_DRAW),this.Ns=!1);c=b.wd.BYTES_PER_ELEMENT;a.vertexAttribPointer(b.sb,2,a.FLOAT,!1,c,0);a.vertexAttribPointer(b.ze,4,a.UNSIGNED_BYTE,!0,c,8);a.vertexAttribPointer(b.xd,2,a.FLOAT,!1,c,12);this.mc===b.Xa.Xh?a.drawArrays(a.TRIANGLE_FAN,0,this.qd):this.mc==b.Xa.Il&&(this.Cd?(a.drawArrays(a.TRIANGLE_STRIP,
0,this.qd/2),a.drawArrays(a.TRIANGLE_STRIP,4,this.qd/2),b.$f++):a.drawArrays(a.TRIANGLE_STRIP,0,this.qd));b.$f++}},YY:function(){if(this.dc){var a,c=this.kh;a=this.ni/100;var d=C(c.x,1),e=b.t2(d,c,2*b.PI*(this.Cd?a:1-a)),f=0;if(0==a)e=d,f=0;else if(1==a)e=d,f=4;else{var g=b.sR,h=b.Xa.nI;for(a=0;a<=h;++a){var k=this.oB(a%h),m=this.oB((a+(h-1))%h);0==a?m=b.LO(k,m,1-c.x):4==a&&(k=b.LO(k,m,1-c.x));var p=C(0,0);b.bG(k,m,c,e,p)&&(0!=a&&4!=a||0<=p.x&&1>=p.x)&&0<=p.y&&p.y<g&&(g=p.y,f=a)}e=b.Nh(c,b.Ii(b.Hd(e,
c),g))}g=!0;this.qd!=f+3&&(g=!1,this.rf=this.zc=null,this.qd=0);if(!this.zc){h=this.qd=f+3;k=b.wd.BYTES_PER_ELEMENT;this.rf=new ArrayBuffer(h*k);m=[];for(a=0;a<h;a++)m[a]=new b.wd(null,null,null,this.rf,a*k);this.zc=m;if(!this.zc){b.log("cc.ProgressTimer._updateRadial() : Not enough memory");return}}this.fc();h=this.zc;if(!g)for(h[0].l=this.qe(c),h[0].i=this.re(c),h[1].l=this.qe(d),h[1].i=this.re(d),a=0;a<f;a++)c=this.oB(a),h[a+2].l=this.qe(c),h[a+2].i=this.re(c);h[this.qd-1].l=this.qe(e);h[this.qd-
1].i=this.re(e)}},SY:function(){if(this.dc){var a,c=this.ni/100,d=this.Nl,d=b.Ii(C(1-d.x+c*d.x,1-d.y+c*d.y),0.5),c=b.Hd(this.kh,d),d=b.Nh(this.kh,d);0>c.x&&(d.x+=-c.x,c.x=0);1<d.x&&(c.x-=d.x-1,d.x=1);0>c.y&&(d.y+=-c.y,c.y=0);1<d.y&&(c.y-=d.y-1,d.y=1);if(this.Cd){if(!this.zc){this.qd=8;var e=b.wd.BYTES_PER_ELEMENT;this.rf=new ArrayBuffer(8*e);var f=[];for(a=0;8>a;a++)f[a]=new b.wd(null,null,null,this.rf,a*e);f[0].l=this.qe(C(0,1));f[0].i=this.re(C(0,1));f[1].l=this.qe(C(0,0));f[1].i=this.re(C(0,0));
f[6].l=this.qe(C(1,1));f[6].i=this.re(C(1,1));f[7].l=this.qe(C(1,0));f[7].i=this.re(C(1,0));this.zc=f}a=this.zc;a[2].l=this.qe(C(c.x,d.y));a[2].i=this.re(C(c.x,d.y));a[3].l=this.qe(C(c.x,c.y));a[3].i=this.re(C(c.x,c.y));a[4].l=this.qe(C(d.x,d.y));a[4].i=this.re(C(d.x,d.y));a[5].l=this.qe(C(d.x,c.y));a[5].i=this.re(C(d.x,c.y))}else{if(!this.zc)for(this.qd=4,e=b.wd.BYTES_PER_ELEMENT,this.rf=new ArrayBuffer(4*e),this.zc=[],a=0;4>a;a++)this.zc[a]=new b.wd(null,null,null,this.rf,a*e);a=this.zc;a[0].l=
this.qe(C(c.x,d.y));a[0].i=this.re(C(c.x,d.y));a[1].l=this.qe(C(c.x,c.y));a[1].i=this.re(C(c.x,c.y));a[2].l=this.qe(C(d.x,d.y));a[2].i=this.re(C(d.x,d.y));a[3].l=this.qe(C(d.x,c.y));a[3].i=this.re(C(d.x,c.y))}this.fc()}},fc:function(){if(this.dc&&this.zc){for(var a=this.dc.quad.M.t,c=this.zc,d=0,e=this.qd;d<e;++d)c[d].t=a;this.Ns=!0}},eE:null,UY:function(){var a=this.dc,c=a.width,d=a.height,e=this.kh;if(this.mc==b.Xa.Xh){this.He=Math.round(Math.sqrt(c*c+d*d));var f,g=!1,h=this.vw;h.x=c*e.x;h.y=-d*
e.y;this.Cd?(f=270,e=270-3.6*this.ni):(e=-90,f=-90+3.6*this.ni);a.Qb&&(h.x-=2*c*this.kh.x,e=-e-180,f=-f-180,g=!g);a.Rb&&(h.y+=2*d*this.kh.y,g=!g,e=-e,f=-f);this.PD=e;this.KB=f;this.AB=g}else{f=this.Nl;h=this.ni/100;g=this.jB;f=H(c*(1-f.x),d*(1-f.y));var h=H((c-f.width)*h,(d-f.height)*h),h=H(f.width+h.width,f.height+h.height),k=C(c*e.x,d*e.y);f=k.x-h.width/2;0.5<e.x&&h.width/2>=c-k.x&&(f=c-h.width);c=k.y-h.height/2;0.5<e.y&&h.height/2>=d-k.y&&(c=d-h.height);g.x=0;d=1;a.Qb&&(g.x-=h.width,d=-1);0<f&&
(g.x+=f*d);g.y=0;d=1;a.Rb&&(g.y+=h.height,d=-1);0<c&&(g.y-=c*d);g.width=h.width;g.height=-h.height}},VY:function(){var a=this.mc;a===b.Xa.Xh?this.YY():a===b.Xa.Il&&this.SY();this.Ns=!0}});n=b.Xa.prototype;b.A==b.Z?(n.ctor=n.yr,n.DP=n.lY,n.Zy=n.rY,n.KG=n.zY,n.CG=n.jY,n.BF=n.OW,n.Y=n.$i,n.eE=n.VY):(n.ctor=n.xr,n.DP=n.kY,n.Zy=n.qY,n.KG=n.yY,n.CG=n.iY,n.BF=n.NW,n.Y=n.Rl,n.eE=b.Xa.prototype.UY);b.f(n,"midPoint",n.m0,n.N3);b.f(n,"barChangeRate",n.F_,n.r3);b.f(n,"type",n.qF,n.KG);
b.f(n,"percentage",n.s0,n.R3);b.f(n,"sprite",n.JN,n.Zy);b.f(n,"reverseDir",n.s1,n.CG);b.Xa.create=function(a){var c=new b.Xa;return c.BF(a)?c:null};b.Xa.nI=4;b.Xa.PT=75;b.Xa.Xh=0;b.Xa.Il=1;b.Xz=b.u.extend({pd:0,Qc:0,ctor:function(a,c){b.u.prototype.ctor.call(this);this.Qc=this.pd=0;void 0!==c&&this.d(a,c)},d:function(a,c){return b.u.prototype.d.call(this,a)?(this.pd=c,!0):!1},j:function(){var a=new b.Xz;a.d(this.n,this.pd);return a},reverse:function(){b.log("cc.ProgressTo.reverse(): reverse hasn't been supported.");return null},v:function(a){b.u.prototype.v.call(this,a);this.Qc=a.percentage;100==this.Qc&&(this.Qc=0)},update:function(a){this.target instanceof b.Xa&&(this.target.percentage=
this.Qc+(this.pd-this.Qc)*a)}});b.Xz.create=function(a,c){return new b.Xz(a,c)};
b.Mq=b.u.extend({pd:0,Qc:0,ctor:function(a,c,d){b.u.prototype.ctor.call(this);this.Qc=this.pd=0;void 0!==d&&this.d(a,c,d)},d:function(a,c,d){return b.u.prototype.d.call(this,a)?(this.pd=d,this.Qc=c,!0):!1},j:function(){var a=new b.Mq;a.d(this.n,this.Qc,this.pd);return a},reverse:function(){return b.Mq.create(this.n,this.pd,this.Qc)},v:function(a){b.u.prototype.v.call(this,a)},update:function(a){this.target instanceof b.Xa&&(this.target.percentage=this.Qc+(this.pd-this.Qc)*a)}});
b.Mq.create=function(a,c,d){return new b.Mq(a,c,d)};b.Qq=4208917214;b.O7=b.ja.extend({uf:function(){}});b.G7=0;b.bk=1;b.cv=0;b.F7=1;
b.va=b.df.extend({ma:null,eb:null,n:null,ih:!1,QK:!1,tb:"TransitionScene",ctor:function(a,c){b.df.prototype.ctor.call(this);void 0!==a&&void 0!==c&&this.d(a,c)},ML:function(){this.fu(this.ML);var a=b.D;this.QK=a.Mk;a.ll(this.ma);b.ra.Id(!0);this.eb.visible=!0},ui:function(){this.ih=!0},Y:function(){this.ih?(this.eb.T(),this.ma.T()):(this.ma.T(),this.eb.T())},ba:function(){b.q.prototype.ba.call(this);b.ra.Id(!1);this.eb.bg();this.ma.ba()},ub:function(){b.q.prototype.ub.call(this);b.ra.Id(!0);this.eb.ub();
this.ma.Mh()},Oe:function(){b.q.prototype.Oe.call(this);this.QK&&this.eb.Oe()},d:function(a,c){if(!c)throw"cc.TransitionScene.initWithDuration(): Argument scene must be non-nil";if(this.F()){this.n=a;this.Kb({x:0,y:0,anchorX:0,anchorY:0});this.ma=c;this.eb=b.D.cd;this.eb||(this.eb=b.df.create(),this.eb.F());if(this.ma==this.eb)throw"cc.TransitionScene.initWithDuration(): Incoming scene must be different from the outgoing scene";this.ui();return!0}return!1},finish:function(){this.ma.Kb({visible:!0,
x:0,y:0,scale:1,rotation:0});b.A===b.Z&&this.ma.Lm().restore();this.eb.Kb({visible:!1,x:0,y:0,scale:1,rotation:0});b.A===b.Z&&this.eb.Lm().restore();this.Zm(this.ML,0)},Rx:function(){this.ma.visible=!0;this.eb.visible=!1}});b.va.create=function(a,c){return new b.va(a,c)};b.gk=b.va.extend({cm:0,d:function(a,c,d){b.va.prototype.d.call(this,a,c)&&(this.cm=d);return!0}});b.gk.create=function(a,c,d){var e=new b.gk;e.d(a,c,d);return e};
b.NI=b.va.extend({ba:function(){b.va.prototype.ba.call(this);this.ma.Kb({scale:0.001,anchorX:0.5,anchorY:0.5});this.eb.Kb({scale:1,anchorX:0.5,anchorY:0.5});var a=b.ua.create(b.xe.create(b.An.create(this.n/2,0.001),b.Fl.create(this.n/2,720)),b.qc.create(this.n/2));this.eb.Ga(a);this.ma.Ga(b.ua.create(a.reverse(),b.wb.create(this.finish,this)))}});b.NI.create=function(a,c){var d=new b.NI;return null!=d&&d.d(a,c)?d:null};
b.CI=b.va.extend({ba:function(){b.va.prototype.ba.call(this);var a=b.D.R;this.ma.Kb({scale:0.5,x:a.width,y:0,anchorX:0.5,anchorY:0.5});this.eb.anchorX=0.5;this.eb.anchorY=0.5;var c=b.Vh.create(this.n/4,C(-a.width,0),a.width/4,2),d=b.Xc.create(this.n/4,1),a=b.Xc.create(this.n/4,0.5),a=b.ua.create(a,c),c=b.ua.create(c,d),d=b.qc.create(this.n/2);this.eb.Ga(a);this.ma.Ga(b.ua.create(d,c,b.wb.create(this.finish,this)))}});b.CI.create=function(a,c){var d=new b.CI;return null!=d&&d.d(a,c)?d:null};
b.fr=b.va.extend({ba:function(){b.va.prototype.ba.call(this);this.Cj();var a=this.action();this.ma.Ga(b.ua.create(this.uf(a),b.wb.create(this.finish,this)))},Cj:function(){this.ma.P(-b.D.R.width,0)},action:function(){return b.Yj.create(this.n,C(0,0))},uf:function(a){return b.wl.create(a,2)}});b.fr.create=function(a,c){var d=new b.fr;return null!=d&&d.d(a,c)?d:null};b.EI=b.fr.extend({Cj:function(){this.ma.P(b.D.R.width,0)}});b.EI.create=function(a,c){var d=new b.EI;return null!=d&&d.d(a,c)?d:null};
b.FI=b.fr.extend({Cj:function(){this.ma.P(0,b.D.R.height)}});b.FI.create=function(a,c){var d=new b.FI;return null!=d&&d.d(a,c)?d:null};b.DI=b.fr.extend({Cj:function(){this.ma.P(0,-b.D.R.height)}});b.DI.create=function(a,c){var d=new b.DI;return null!=d&&d.d(a,c)?d:null};b.Pj=0.5;
b.gr=b.va.extend({ui:function(){this.ih=!1},ba:function(){b.va.prototype.ba.call(this);this.Cj();var a=this.action(),c=this.action(),a=this.uf(a),c=b.ua.create(this.uf(c),b.wb.create(this.finish,this));this.ma.Ga(a);this.eb.Ga(c)},Cj:function(){this.ma.P(-b.D.R.width+b.Pj,0)},action:function(){return b.Af.create(this.n,C(b.D.R.width-b.Pj,0))},uf:function(a){return b.wl.create(a,2)}});b.gr.create=function(a,c){var d=new b.gr;return null!=d&&d.d(a,c)?d:null};
b.RI=b.gr.extend({ui:function(){this.ih=!0},Cj:function(){this.ma.P(b.D.R.width-b.Pj,0)},action:function(){return b.Af.create(this.n,C(-(b.D.R.width-b.Pj),0))}});b.RI.create=function(a,c){var d=new b.RI;return null!=d&&d.d(a,c)?d:null};b.QI=b.gr.extend({ui:function(){this.ih=!1},Cj:function(){this.ma.P(0,b.D.R.height-b.Pj)},action:function(){return b.Af.create(this.n,C(0,-(b.D.R.height-b.Pj)))}});b.QI.create=function(a,c){var d=new b.QI;return null!=d&&d.d(a,c)?d:null};
b.SI=b.gr.extend({ui:function(){this.ih=!0},Cj:function(){this.ma.P(0,-(b.D.R.height-b.Pj))},action:function(){return b.Af.create(this.n,C(0,b.D.R.height-b.Pj))}});b.SI.create=function(a,c){var d=new b.SI;return null!=d&&d.d(a,c)?d:null};
b.OI=b.va.extend({ba:function(){b.va.prototype.ba.call(this);this.ma.Kb({scale:0.001,anchorX:2/3,anchorY:0.5});this.eb.Kb({scale:1,anchorX:1/3,anchorY:0.5});var a=b.Xc.create(this.n,0.01),c=b.Xc.create(this.n,1);this.ma.Ga(this.uf(c));this.eb.Ga(b.ua.create(this.uf(a),b.wb.create(this.finish,this)))},uf:function(a){return b.wl.create(a,2)}});b.OI.create=function(a,c){var d=new b.OI;return null!=d&&d.d(a,c)?d:null};
b.AI=b.gk.extend({ba:function(){b.va.prototype.ba.call(this);var a,c;this.ma.visible=!1;var d;this.cm===b.bk?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=b.ua.create(b.qc.create(this.n/2),b.Bf.create(),b.ce.create(this.n/2,1,0,d,a,0,0),b.wb.create(this.finish,this));c=b.ua.create(b.ce.create(this.n/2,1,0,0,c,0,0),b.ah.create(),b.qc.create(this.n/2));this.ma.Ga(a);this.eb.Ga(c)}});b.AI.create=function(a,c,d){null==d&&(d=b.bk);var e=new b.AI;e.d(a,c,d);return e};
b.BI=b.gk.extend({ba:function(){b.va.prototype.ba.call(this);var a,c;this.ma.visible=!1;var d;this.cm==b.cv?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=b.ua.create(b.qc.create(this.n/2),b.Bf.create(),b.ce.create(this.n/2,1,0,d,a,90,0),b.wb.create(this.finish,this));c=b.ua.create(b.ce.create(this.n/2,1,0,0,c,90,0),b.ah.create(),b.qc.create(this.n/2));this.ma.Ga(a);this.eb.Ga(c)}});b.BI.create=function(a,c,d){null==d&&(d=b.cv);var e=new b.BI;e.d(a,c,d);return e};
b.zI=b.gk.extend({ba:function(){b.va.prototype.ba.call(this);var a,c;this.ma.visible=!1;var d;this.cm===b.bk?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=b.ua.create(b.qc.create(this.n/2),b.Bf.create(),b.ce.create(this.n/2,1,0,d,a,-45,0),b.wb.create(this.finish,this));c=b.ua.create(b.ce.create(this.n/2,1,0,0,c,45,0),b.ah.create(),b.qc.create(this.n/2));this.ma.Ga(a);this.eb.Ga(c)}});b.zI.create=function(a,c,d){null==d&&(d=b.bk);var e=new b.zI;e.d(a,c,d);return e};
b.WI=b.gk.extend({ba:function(){b.va.prototype.ba.call(this);var a,c;this.ma.visible=!1;var d;this.cm===b.bk?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=b.ua.create(b.qc.create(this.n/2),b.xe.create(b.ce.create(this.n/2,1,0,d,a,0,0),b.Xc.create(this.n/2,1),b.Bf.create()),b.wb.create(this.finish,this));c=b.ua.create(b.xe.create(b.ce.create(this.n/2,1,0,0,c,0,0),b.Xc.create(this.n/2,0.5)),b.ah.create(),b.qc.create(this.n/2));this.ma.scale=0.5;this.ma.Ga(a);this.eb.Ga(c)}});
b.WI.create=function(a,c,d){null==d&&(d=b.bk);var e=new b.WI;e.d(a,c,d);return e};
b.XI=b.gk.extend({ba:function(){b.va.prototype.ba.call(this);var a,c;this.ma.visible=!1;var d;this.cm===b.cv?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=b.ua.create(b.qc.create(this.n/2),b.xe.create(b.ce.create(this.n/2,1,0,d,a,90,0),b.Xc.create(this.n/2,1),b.Bf.create()),b.wb.create(this.finish,this));c=b.ua.create(b.xe.create(b.ce.create(this.n/2,1,0,0,c,90,0),b.Xc.create(this.n/2,0.5)),b.ah.create(),b.qc.create(this.n/2));this.ma.scale=0.5;this.ma.Ga(a);this.eb.Ga(c)}});
b.XI.create=function(a,c,d){null==d&&(d=b.cv);var e=new b.XI;e.d(a,c,d);return e};
b.VI=b.gk.extend({ba:function(){b.va.prototype.ba.call(this);var a,c;this.ma.visible=!1;var d;this.cm===b.bk?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=b.ua.create(b.qc.create(this.n/2),b.xe.create(b.ce.create(this.n/2,1,0,d,a,-45,0),b.Xc.create(this.n/2,1),b.Bf.create()),b.Bf.create(),b.wb.create(this.finish,this));c=b.ua.create(b.xe.create(b.ce.create(this.n/2,1,0,0,c,45,0),b.Xc.create(this.n/2,0.5)),b.ah.create(),b.qc.create(this.n/2));this.ma.scale=0.5;this.ma.Ga(a);this.eb.Ga(c)}});
b.VI.create=function(a,c,d){null==d&&(d=b.bk);var e=new b.VI;e.d(a,c,d);return e};
b.Jl=b.va.extend({ge:null,ctor:function(){b.va.prototype.ctor.call(this);this.ge=b.color()},ba:function(){b.va.prototype.ba.call(this);var a=b.jd.create(this.ge);this.ma.visible=!1;this.I(a,2,b.Qq);var a=this.Dh(b.Qq),c=b.ua.create(b.qn.create(this.n/2),b.wb.create(this.Rx,this),b.yl.create(this.n/2),b.wb.create(this.finish,this));a.Ga(c)},ub:function(){b.va.prototype.ub.call(this);this.kG(b.Qq,!1)},d:function(a,c,d){d=d||b.color.BLACK;b.va.prototype.d.call(this,a,c)&&(this.ge.r=d.r,this.ge.g=d.g,
this.ge.b=d.b,this.ge.a=0);return!0}});b.Jl.create=function(a,c,d){var e=new b.Jl;e.d(a,c,d);return e};
b.vI=b.va.extend({ba:function(){b.va.prototype.ba.call(this);var a=b.color(0,0,0,0),c=b.D.R,a=b.jd.create(a),d=b.xn.create(c.width,c.height);if(null!=d){d.sprite.anchorX=0.5;d.sprite.anchorY=0.5;d.Kb({x:c.width/2,y:c.height/2,anchorX:0.5,anchorY:0.5});d.zh();this.ma.T();d.end();var e=b.xn.create(c.width,c.height);e.P(c.width/2,c.height/2);e.sprite.anchorX=e.anchorX=0.5;e.sprite.anchorY=e.anchorY=0.5;e.zh();this.eb.T();e.end();d.sprite.Ve(b.ONE,b.ONE);e.sprite.Ve(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA);
a.I(d);a.I(e);d.sprite.opacity=255;e.sprite.opacity=255;c=b.ua.create(b.Uj.create(this.n,0),b.wb.create(this.Rx,this),b.wb.create(this.finish,this));e.sprite.Ga(c);this.I(a,2,b.Qq)}},ub:function(){this.kG(b.Qq,!1);b.va.prototype.ub.call(this)},Y:function(){}});b.vI.create=function(a,c){var d=new b.vI;d.d(a,c);return d};
b.UI=b.va.extend({ui:function(){this.ih=!1},ba:function(){b.va.prototype.ba.call(this);var a=b.D.R,a=b.HA.create(this.n,H(0|a.width/a.height*12,12)),a=this.uf(a);this.eb.Ga(b.ua.create(a,b.wb.create(this.finish,this),b.Gl.create()))},uf:function(a){return a}});b.UI.create=function(a,c){var d=new b.UI;return null!=d&&d.d(a,c)?d:null};
b.GA=b.va.extend({ba:function(){b.va.prototype.ba.call(this);this.ma.visible=!1;var a=this.action(),a=b.ua.create(a,b.wb.create(this.Rx,this),a.reverse());this.Ga(b.ua.create(this.uf(a),b.wb.create(this.finish,this),b.Gl.create()))},uf:function(a){return b.sq.create(a,3)},action:function(){return b.qA.create(this.n/2,3)}});b.GA.create=function(a,c){var d=new b.GA;return null!=d&&d.d(a,c)?d:null};b.TI=b.GA.extend({action:function(){return b.rA.create(this.n/2,3)}});
b.TI.create=function(a,c){var d=new b.TI;return null!=d&&d.d(a,c)?d:null};b.er=b.va.extend({ui:function(){this.ih=!1},ba:function(){b.va.prototype.ba.call(this);var a=b.D.R,a=this.So(H(0|a.width/a.height*12,12));this.eb.Ga(b.ua.create(this.uf(a),b.wb.create(this.finish,this),b.Gl.create()))},uf:function(a){return a},So:function(a){return b.Cq.create(this.n,a)}});b.er.create=function(a,c){var d=new b.er;return null!=d&&d.d(a,c)?d:null};b.wI=b.er.extend({So:function(a){return b.Cz.create(this.n,a)}});
b.wI.create=function(a,c){var d=new b.wI;return null!=d&&d.d(a,c)?d:null};b.yI=b.er.extend({So:function(a){return b.Iu.create(this.n,a)}});b.yI.create=function(a,c){var d=new b.yI;return null!=d&&d.d(a,c)?d:null};b.xI=b.er.extend({So:function(a){return b.Dz.create(this.n,a)}});b.xI.create=function(a,c){var d=new b.xI;return null!=d&&d.d(a,c)?d:null};b.eI=49153;
b.fk=b.va.extend({pd:0,Qc:0,Jw:null,tb:"TransitionProgress",jm:function(a,c,d){a.Kb({x:c,y:d,anchorX:0.5,anchorY:0.5})},ba:function(){b.va.prototype.ba.call(this);this.TL();var a=b.D.R,c=b.xn.create(a.width,a.height);c.sprite.anchorX=0.5;c.sprite.anchorY=0.5;this.jm(c,a.width/2,a.height/2);c.clear(0,0,0,1);c.zh();this.Jw.T();c.end();this.Jw==this.eb&&this.Rx();a=this.em(c);c=b.ua.create(b.Mq.create(this.n,this.Qc,this.pd),b.wb.create(this.finish,this));a.Ga(c);this.I(a,2,b.eI)},ub:function(){this.kG(b.eI,!0);
b.va.prototype.ub.call(this)},TL:function(){this.Jw=this.eb;this.Qc=100;this.pd=0},em:function(){b.log("cc.TransitionProgress._progressTimerNodeWithRenderTexture(): should be overridden in subclass");return null},ui:function(){this.ih=!1}});b.fk.create=function(a,c){var d=new b.fk;return null!=d&&d.d(a,c)?d:null};b.KI=b.fk.extend({em:function(a){var c=b.D.R;a=b.Xa.create(a.sprite);b.A===b.Z&&(a.sprite.flippedY=!0);a.type=b.Xa.Xh;a.reverseDir=!1;a.percentage=100;this.jm(a,c.width/2,c.height/2);return a}});
b.KI.create=function(a,c){var d=new b.KI;return null!=d&&d.d(a,c)?d:null};b.LI=b.fk.extend({em:function(a){var c=b.D.R;a=b.Xa.create(a.sprite);b.A===b.Z&&(a.sprite.flippedY=!0);a.type=b.Xa.Xh;a.reverseDir=!0;a.percentage=100;this.jm(a,c.width/2,c.height/2);return a}});b.LI.create=function(a,c){var d=new b.LI;return null!=d&&d.d(a,c)?d:null};
b.HI=b.fk.extend({em:function(a){var c=b.D.R;a=b.Xa.create(a.sprite);b.A===b.Z&&(a.sprite.flippedY=!0);a.type=b.Xa.Il;a.midPoint=C(1,0);a.barChangeRate=C(1,0);a.percentage=100;this.jm(a,c.width/2,c.height/2);return a}});b.HI.create=function(a,c){var d=new b.HI;return null!=d&&d.d(a,c)?d:null};
b.MI=b.fk.extend({em:function(a){var c=b.D.R;a=b.Xa.create(a.sprite);b.A===b.Z&&(a.sprite.flippedY=!0);a.type=b.Xa.Il;a.midPoint=C(0,0);a.barChangeRate=C(0,1);a.percentage=100;this.jm(a,c.width/2,c.height/2);return a}});b.MI.create=function(a,c){var d=new b.MI;return null!=d&&d.d(a,c)?d:null};
b.II=b.fk.extend({em:function(a){var c=b.D.R;a=b.Xa.create(a.sprite);b.A===b.Z&&(a.sprite.flippedY=!0);a.type=b.Xa.Il;a.midPoint=C(0.5,0.5);a.barChangeRate=C(1,1);a.percentage=0;this.jm(a,c.width/2,c.height/2);return a},ui:function(){this.ih=!1},TL:function(){this.Jw=this.ma;this.Qc=0;this.pd=100}});b.II.create=function(a,c){var d=new b.II;return null!=d&&d.d(a,c)?d:null};
b.JI=b.fk.extend({em:function(a){var c=b.D.R;a=b.Xa.create(a.sprite);b.A===b.Z&&(a.sprite.flippedY=!0);a.type=b.Xa.Il;a.midPoint=C(0.5,0.5);a.barChangeRate=C(1,1);a.percentage=100;this.jm(a,c.width/2,c.height/2);return a}});b.JI.create=function(a,c){var d=new b.JI;return null!=d&&d.d(a,c)?d:null};b.GI=b.va.extend({uv:!0,tb:"TransitionPageTurn",d:function(a,c,d){this.uv=d;b.va.prototype.d.call(this,a,c);return!0},So:function(a){return this.uv?b.El.create(b.Ou.create(this.n,a)):b.Ou.create(this.n,a)},ba:function(){b.va.prototype.ba.call(this);var a=b.D.R,c;a.width>a.height?(a=16,c=12):(a=12,c=16);a=this.So(H(a,c));this.uv?(this.ma.visible=!1,this.ma.Ga(b.ua.create(b.Bf.create(),a,b.wb.create(this.finish,this),b.Gl.create()))):this.eb.Ga(b.ua.create(a,b.wb.create(this.finish,this),b.Gl.create()))},
ui:function(){this.ih=this.uv}});b.GI.create=function(a,c,d){var e=new b.GI;e.d(a,c,d);return e};b.ka={name:"Jacob__Codec"};b.Y4=function(){return b.ka.Ha.Nx.apply(b.ka.Ha,arguments)};b.Z4=function(){var a=b.ka.tl.NM.apply(b.ka.tl,arguments);return b.ka.Ha.Nx.apply(b.ka.Ha,[a])};b.hQ=function(a,c){c=c||1;var d=this.Z4(a),e=[],f,g,h;f=0;for(h=d.length/c;f<h;f++)for(e[f]=0,g=c-1;0<=g;--g)e[f]+=d.charCodeAt(f*c+g)<<8*g;return e};b.tka=function(a,c){c=c||1;var d=this.Y4(a),e=[],f,g,h;f=0;for(h=d.length/c;f<h;f++)for(e[f]=0,g=c-1;0<=g;--g)e[f]+=d.charCodeAt(f*c+g)<<8*g;return e};
b.s7=function(a){a=a.split(",");var c=[],d;for(d=0;d<a.length;d++)c.push(parseInt(a[d]));return c};b.ka.tl={name:"Jacob__Codec__Base64"};b.ka.tl.jw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d";
b.ka.tl.NM=function(a){var c=[],d,e,f,g,h,k=0;for(a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");k<a.length;)d=this.jw.indexOf(a.charAt(k++)),e=this.jw.indexOf(a.charAt(k++)),g=this.jw.indexOf(a.charAt(k++)),h=this.jw.indexOf(a.charAt(k++)),d=d<<2|e>>4,e=(e&15)<<4|g>>2,f=(g&3)<<6|h,c.push(String.fromCharCode(d)),64!=g&&c.push(String.fromCharCode(e)),64!=h&&c.push(String.fromCharCode(f));return c=c.join("")};
b.ka.tl.OM=function(a,c){var d=this.NM(a),e=[],f,g,h;f=0;for(h=d.length/c;f<h;f++)for(e[f]=0,g=c-1;0<=g;--g)e[f]+=d.charCodeAt(f*c+g)<<8*g;return e};b.V4=function(a){if(0!=a.length%4)return null;for(var c=a.length/4,d=window.R7?new Uint32Array(c):[],e=0;e<c;e++){var f=4*e;d[e]=a[f]+256*a[f+1]+65536*a[f+2]+16777216*a[f+3]}return d};b.ka.Ha=function(a){this.data=a;this.debug=!1;this.Bj=void 0;this.files=0;this.gz=[];this.AE=Array(32768);this.yh=0;this.vy=!1;this.BM=0;this.zi=1;this.Vo=0;this.Cp=[];this.eN=void 0;this.vt=Array(b.ka.Ha.TR);this.Em=Array(32);this.eu=0;this.Vz=null;this.Lh=0;this.jp=Array(17);this.jp[0]=0;this.jN=this.hN=void 0};b.ka.Ha.Nx=function(a){return(new b.ka.Ha(a)).Nx()[0][0]};b.ka.Ha.Gz=function(){this.nx=this.mx=0;this.NF=null;this.y1=-1};b.ka.Ha.TR=288;b.ka.Ha.GH=256;
b.ka.Ha.yE=[0,128,64,192,32,160,96,224,16,144,80,208,48,176,112,240,8,136,72,200,40,168,104,232,24,152,88,216,56,184,120,248,4,132,68,196,36,164,100,228,20,148,84,212,52,180,116,244,12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,
81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,3,131,67,195,35,163,99,227,19,147,83,211,51,179,115,243,11,139,75,203,43,171,107,235,27,155,91,219,59,187,123,251,7,135,71,199,39,167,103,231,23,151,87,215,55,183,119,247,15,143,79,207,47,175,111,239,31,159,95,223,63,191,127,255];
b.ka.Ha.KM=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0];b.ka.Ha.LM=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,99,99];b.ka.Ha.JM=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];b.ka.Ha.bp=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];b.ka.Ha.border=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];
b.ka.Ha.prototype.Nx=function(){this.Ht=[];fa(this);return this.gz};b.ka.Ha.prototype.S=function(){this.Vo+=8;return this.BM<this.data.length?this.data.charCodeAt(this.BM++):-1};function ga(a){var c;a.Vo++;c=a.zi&1;a.zi>>=1;0==a.zi&&(a.zi=a.S(),c=a.zi&1,a.zi=a.zi>>1|128);return c}function Q(a,c){for(var d=0,e=c;e--;)d=d<<1|ga(a);c&&(d=b.ka.Ha.yE[d]>>8-c);return d}function ha(a,c){a.AE[a.yh++]=c;a.Ht.push(String.fromCharCode(c));32768==a.yh&&(a.yh=0)}
function ia(a){for(;;){if(a.jp[a.Lh]>=a.jN)return-1;if(a.hN[a.jp[a.Lh]]==a.Lh)return a.jp[a.Lh]++;a.jp[a.Lh]++}}function ja(a){var c=a.Vz[a.eu],d;if(17==a.Lh)return-1;a.eu++;a.Lh++;d=ia(a);if(0<=d)c.mx=d;else if(c.mx=32768,ja(a))return-1;d=ia(a);if(0<=d)c.nx=d,c.NF=null;else if(c.nx=32768,c.NF=a.Vz[a.eu],c.y1=a.eu,ja(a))return-1;a.Lh--;return 0}function ka(a,c,d,e){a.Vz=c;a.eu=0;a.hN=e;a.jN=d;for(c=0;17>c;c++)a.jp[c]=0;a.Lh=0;return ja(a)?-1:0}
function ma(a,c){for(var d,e,f=0,g=c[f];;)if(d=ga(a)){if(!(g.nx&32768))return g.nx;g=g.NF;d=c.length;for(e=0;e<d;e++)if(c[e]===g){f=e;break}}else{if(!(g.mx&32768))return g.mx;f++;g=c[f]}return-1}
function na(a){var c,d,e,f,g;do if(c=ga(a),e=Q(a,2),0==e)for(a.zi=1,e=a.S(),e|=a.S()<<8,d=a.S(),d|=a.S()<<8,(e^~d)&65535&&document.write("BlockLen checksum mismatch\n");e--;)d=a.S(),ha(a,d);else if(1==e)for(;;)if(e=b.ka.Ha.yE[Q(a,7)]>>1,23<e?(e=e<<1|ga(a),199<e?(e-=128,e=e<<1|ga(a)):(e-=48,143<e&&(e+=136))):e+=256,256>e)ha(a,e);else if(256==e)break;else{var h;e-=257;g=Q(a,b.ka.Ha.LM[e])+b.ka.Ha.KM[e];e=b.ka.Ha.yE[Q(a,5)]>>3;8<b.ka.Ha.bp[e]?(h=Q(a,8),h|=Q(a,b.ka.Ha.bp[e]-8)<<8):h=Q(a,b.ka.Ha.bp[e]);
h+=b.ka.Ha.JM[e];for(e=0;e<g;e++)d=a.AE[a.yh-h&32767],ha(a,d)}else if(2==e){var k=Array(320);d=257+Q(a,5);h=1+Q(a,5);f=4+Q(a,4);for(e=0;19>e;e++)k[e]=0;for(e=0;e<f;e++)k[b.ka.Ha.border[e]]=Q(a,3);g=a.Em.length;for(f=0;f<g;f++)a.Em[f]=new b.ka.Ha.Gz;if(ka(a,a.Em,19,k)){a.yh=0;return}g=d+h;f=0;for(var m=-1;f<g;)if(m++,e=ma(a,a.Em),16>e)k[f++]=e;else if(16==e){var p;e=3+Q(a,2);if(f+e>g){a.yh=0;return}for(p=f?k[f-1]:0;e--;)k[f++]=p}else{e=17==e?3+Q(a,3):11+Q(a,7);if(f+e>g){a.yh=0;return}for(;e--;)k[f++]=
0}g=a.vt.length;for(f=0;f<g;f++)a.vt[f]=new b.ka.Ha.Gz;if(ka(a,a.vt,d,k)){a.yh=0;return}g=a.vt.length;for(f=0;f<g;f++)a.Em[f]=new b.ka.Ha.Gz;e=[];for(f=d;f<k.length;f++)e[f-d]=k[f];if(ka(a,a.Em,h,e)){a.yh=0;return}for(;;)if(e=ma(a,a.vt),256<=e){e-=256;if(0==e)break;e--;g=Q(a,b.ka.Ha.LM[e])+b.ka.Ha.KM[e];e=ma(a,a.Em);8<b.ka.Ha.bp[e]?(h=Q(a,8),h|=Q(a,b.ka.Ha.bp[e]-8)<<8):h=Q(a,b.ka.Ha.bp[e]);for(h+=b.ka.Ha.JM[e];g--;)d=a.AE[a.yh-h&32767],ha(a,d)}else ha(a,e)}while(!c);a.yh=0;a.zi=1}
function fa(a){a.Ht=[];a.vy=!1;var c=[];c[0]=a.S();c[1]=a.S();120==c[0]&&218==c[1]&&(na(a),a.gz[a.files]=[a.Ht.join(""),"geonext.gxt"],a.files++);31==c[0]&&139==c[1]&&(oa(a),a.gz[a.files]=[a.Ht.join(""),"file"],a.files++);if(80==c[0]&&75==c[1]&&(a.vy=!0,c[2]=a.S(),c[3]=a.S(),3==c[2]&&4==c[3])){c[0]=a.S();c[1]=a.S();a.Bj=a.S();a.Bj|=a.S()<<8;c=a.S();c|=a.S()<<8;a.S();a.S();a.S();a.S();a.S();a.S();a.S();a.S();a.S();a.S();a.S();a.S();var d=a.S(),d=d|a.S()<<8,e=a.S(),e=e|a.S()<<8,f=0;for(a.Cp=[];d--;){var g=
a.S();"/"==g|":"==g?f=0:f<b.ka.Ha.GH-1&&(a.Cp[f++]=String.fromCharCode(g))}a.eN||(a.eN=a.Cp);for(var f=0;f<e;)a.S(),f++;8==c&&(na(a),a.gz[a.files]=[a.Ht.join(""),a.Cp.join("")],a.files++);oa(a)}}
function oa(a){var c=[],d;a.Bj&8&&(c[0]=a.S(),c[1]=a.S(),c[2]=a.S(),c[3]=a.S(),a.S(),a.S(),a.S(),a.S(),a.S(),a.S(),a.S(),a.S());a.vy&&fa(a);c[0]=a.S();if(8==c[0]){a.Bj=a.S();a.S();a.S();a.S();a.S();a.S();a.S();if(a.Bj&4)for(c[0]=a.S(),c[2]=a.S(),a.Lh=c[0]+256*c[1],c=0;c<a.Lh;c++)a.S();if(a.Bj&8)for(c=0,a.Cp=[];d=a.S();){if("7"==d||":"==d)c=0;c<b.ka.Ha.GH-1&&(a.Cp[c++]=d)}if(a.Bj&16)for(;a.S(););a.Bj&2&&(a.S(),a.S());na(a);a.S();a.S();a.S();a.S();a.vy&&fa(a)}};/*
 zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */
(function(){function a(a){throw a;}function c(a,c){var d=a.split("."),e=E;d[0]in e||!e.execScript||e.execScript("var "+d[0]);for(var f;d.length&&(f=d.shift());)d.length||c===G?e=e[f]?e[f]:e[f]={}:e[f]=c}function d(a){if("string"===typeof a){a=a.split("");var c,d;c=0;for(d=a.length;c<d;c++)a[c]=(a[c].charCodeAt(0)&255)>>>0}c=1;d=0;for(var e=a.length,f,g=0;0<e;){f=1024<e?1024:e;e-=f;do c+=a[g++],d+=c;while(--f);c%=65521;d%=65521}return(d<<16|c)>>>0}function e(c,d){this.index="number"===typeof d?d:0;
this.nt=0;this.buffer=c instanceof(z?Uint8Array:Array)?c:new (z?Uint8Array:Array)(32768);2*this.buffer.length<=this.index&&a(Error("invalid index"));this.buffer.length<=this.index&&this.Bh()}function f(a){this.buffer=new (z?Uint16Array:Array)(2*a);this.length=0}function g(a){var c=a.length,d=0,e=Number.POSITIVE_INFINITY,f,g,h,k,m,p,r,s,t;for(s=0;s<c;++s)a[s]>d&&(d=a[s]),a[s]<e&&(e=a[s]);f=1<<d;g=new (z?Uint32Array:Array)(f);h=1;k=0;for(m=2;h<=d;){for(s=0;s<c;++s)if(a[s]===h){p=0;r=k;for(t=0;t<h;++t)p=
p<<1|r&1,r>>=1;for(t=p;t<f;t+=m)g[t]=h<<16|s;++k}++h;k<<=1;m<<=1}return[g,d,e]}function h(a,c){this.sp=P;this.H=0;this.input=a;this.b=0;c&&(c.Z1&&(this.H=c.Z1),"number"===typeof c.ME&&(this.sp=c.ME),c.Ay&&(this.a=z&&c.Ay instanceof Array?new Uint8Array(c.Ay):c.Ay),"number"===typeof c.p2&&(this.b=c.p2));this.a||(this.a=new (z?Uint8Array:Array)(32768))}function k(a,c){this.length=a;this.uR=c}function m(){var c=S;switch(J){case 3===c:return[257,c-3,0];case 4===c:return[258,c-4,0];case 5===c:return[259,
c-5,0];case 6===c:return[260,c-6,0];case 7===c:return[261,c-7,0];case 8===c:return[262,c-8,0];case 9===c:return[263,c-9,0];case 10===c:return[264,c-10,0];case 12>=c:return[265,c-11,1];case 14>=c:return[266,c-13,1];case 16>=c:return[267,c-15,1];case 18>=c:return[268,c-17,1];case 22>=c:return[269,c-19,2];case 26>=c:return[270,c-23,2];case 30>=c:return[271,c-27,2];case 34>=c:return[272,c-31,2];case 42>=c:return[273,c-35,3];case 50>=c:return[274,c-43,3];case 58>=c:return[275,c-51,3];case 66>=c:return[276,
c-59,3];case 82>=c:return[277,c-67,4];case 98>=c:return[278,c-83,4];case 114>=c:return[279,c-99,4];case 130>=c:return[280,c-115,4];case 162>=c:return[281,c-131,5];case 194>=c:return[282,c-163,5];case 226>=c:return[283,c-195,5];case 257>=c:return[284,c-227,5];case 258===c:return[285,c-258,0];default:a("invalid length: "+c)}}function p(c,d){function e(c,d){var f=c.uR,g=[],h=0,k;k=W[c.length];g[h++]=k&65535;g[h++]=k>>16&255;g[h++]=k>>24;var m;switch(J){case 1===f:m=[0,f-1,0];break;case 2===f:m=[1,f-
2,0];break;case 3===f:m=[2,f-3,0];break;case 4===f:m=[3,f-4,0];break;case 6>=f:m=[4,f-5,1];break;case 8>=f:m=[5,f-7,1];break;case 12>=f:m=[6,f-9,2];break;case 16>=f:m=[7,f-13,2];break;case 24>=f:m=[8,f-17,3];break;case 32>=f:m=[9,f-25,3];break;case 48>=f:m=[10,f-33,4];break;case 64>=f:m=[11,f-49,4];break;case 96>=f:m=[12,f-65,5];break;case 128>=f:m=[13,f-97,5];break;case 192>=f:m=[14,f-129,6];break;case 256>=f:m=[15,f-193,6];break;case 384>=f:m=[16,f-257,7];break;case 512>=f:m=[17,f-385,7];break;
case 768>=f:m=[18,f-513,8];break;case 1024>=f:m=[19,f-769,8];break;case 1536>=f:m=[20,f-1025,9];break;case 2048>=f:m=[21,f-1537,9];break;case 3072>=f:m=[22,f-2049,10];break;case 4096>=f:m=[23,f-3073,10];break;case 6144>=f:m=[24,f-4097,11];break;case 8192>=f:m=[25,f-6145,11];break;case 12288>=f:m=[26,f-8193,12];break;case 16384>=f:m=[27,f-12289,12];break;case 24576>=f:m=[28,f-16385,13];break;case 32768>=f:m=[29,f-24577,13];break;default:a("invalid distance")}k=m;g[h++]=k[0];g[h++]=k[1];g[h++]=k[2];
f=0;for(h=g.length;f<h;++f)t[u++]=g[f];w[g[0]]++;x[g[3]]++;v=c.length+d-1;s=null}var f,g,h,m,p,r={},s,t=z?new Uint16Array(2*d.length):[],u=0,v=0,w=new (z?Uint32Array:Array)(286),x=new (z?Uint32Array:Array)(30),B=c.H,y;if(!z){for(h=0;285>=h;)w[h++]=0;for(h=0;29>=h;)x[h++]=0}w[256]=1;f=0;for(g=d.length;f<g;++f){h=p=0;for(m=3;h<m&&f+h!==g;++h)p=p<<8|d[f+h];r[p]===G&&(r[p]=[]);h=r[p];if(!(0<v--)){for(;0<h.length&&32768<f-h[0];)h.shift();if(f+3>=g){s&&e(s,-1);h=0;for(m=g-f;h<m;++h)y=d[f+h],t[u++]=y,++w[y];
break}if(0<h.length){p=m=G;var D=0,F=G,E=G,K=F=G,N=d.length,E=0,K=h.length;a:for(;E<K;E++){m=h[K-E-1];F=3;if(3<D){for(F=D;3<F;F--)if(d[m+F-1]!==d[f+F-1])continue a;F=D}for(;258>F&&f+F<N&&d[m+F]===d[f+F];)++F;F>D&&(p=m,D=F);if(258===F)break}m=new k(D,f-p);s?s.length<m.length?(y=d[f-1],t[u++]=y,++w[y],e(m,0)):e(s,-1):m.length<B?s=m:e(m,0)}else s?e(s,-1):(y=d[f],t[u++]=y,++w[y])}h.push(f)}t[u++]=256;w[256]++;c.PR=w;c.HR=x;return z?t.subarray(0,u):t}function r(a,c){function d(a){var c=t[a][u[a]];c===
r?(d(a+1),d(a+1)):--s[c];++u[a]}var e=a.length,g=new f(572),h=new (z?Uint8Array:Array)(e),k,m,p;if(!z)for(m=0;m<e;m++)h[m]=0;for(m=0;m<e;++m)0<a[m]&&g.push(m,a[m]);e=Array(g.length/2);k=new (z?Uint32Array:Array)(g.length/2);if(1===e.length)return h[g.pop().index]=1,h;m=0;for(p=g.length/2;m<p;++m)e[m]=g.pop(),k[m]=e[m].value;var r=k.length;m=new (z?Uint16Array:Array)(c);var g=new (z?Uint8Array:Array)(c),s=new (z?Uint8Array:Array)(r);p=Array(c);var t=Array(c),u=Array(c),v=(1<<c)-r,w=1<<c-1,x,y,B;m[c-
1]=r;for(x=0;x<c;++x)v<w?g[x]=0:(g[x]=1,v-=w),v<<=1,m[c-2-x]=(m[c-1-x]/2|0)+r;m[0]=g[0];p[0]=Array(m[0]);t[0]=Array(m[0]);for(x=1;x<c;++x)m[x]>2*m[x-1]+g[x]&&(m[x]=2*m[x-1]+g[x]),p[x]=Array(m[x]),t[x]=Array(m[x]);for(v=0;v<r;++v)s[v]=c;for(w=0;w<m[c-1];++w)p[c-1][w]=k[w],t[c-1][w]=w;for(v=0;v<c;++v)u[v]=0;1===g[c-1]&&(--s[0],++u[c-1]);for(x=c-2;0<=x;--x){y=v=0;B=u[x+1];for(w=0;w<m[x];w++)y=p[x+1][B]+p[x+1][B+1],y>k[v]?(p[x][w]=y,t[x][w]=r,B+=2):(p[x][w]=k[v],t[x][w]=v,++v);u[x]=0;1===g[x]&&d(x)}k=
s;m=0;for(p=e.length;m<p;++m)h[e[m].index]=k[m];return h}function s(c){var d=new (z?Uint16Array:Array)(c.length),e=[],f=[],g=0,h,k,m;h=0;for(k=c.length;h<k;h++)e[c[h]]=(e[c[h]]|0)+1;h=1;for(k=16;h<=k;h++)f[h]=g,g+=e[h]|0,g>1<<h&&a("overcommitted"),g<<=1;65536>g&&a("undercommitted");h=0;for(k=c.length;h<k;h++)for(g=f[c[h]],f[c[h]]+=1,e=d[h]=0,m=c[h];e<m;e++)d[h]=d[h]<<1|g&1,g>>>=1;return d}function u(a,c){this.input=a;this.a=new (z?Uint8Array:Array)(32768);this.sp=N.ey;var d={},e;!c&&(c={})||"number"!==
typeof c.ME||(this.sp=c.ME);for(e in c)d[e]=c[e];d.Ay=this.a;this.z=new h(this.input,d)}function t(c,d){this.fy=[];this.py=32768;this.Jg=this.g=this.C=this.Hy=0;this.input=z?new Uint8Array(c):c;this.qG=!1;this.ty=pa;this.eH=!1;if(d||!(d={}))d.index&&(this.C=d.index),d.BE&&(this.py=d.BE),d.CE&&(this.ty=d.CE),d.resize&&(this.eH=d.resize);switch(this.ty){case Aa:this.b=32768;this.a=new (z?Uint8Array:Array)(32768+this.py+258);break;case pa:this.b=0;this.a=new (z?Uint8Array:Array)(this.py);this.Bh=this.GR;
this.RG=this.wR;this.wy=this.AR;break;default:a(Error("invalid inflate mode"))}}function v(c,d){for(var e=c.g,f=c.Jg,g=c.input,h=c.C,k;f<d;)k=g[h++],k===G&&a(Error("input buffer is broken")),e|=k<<f,f+=8;c.g=e>>>d;c.Jg=f-d;c.C=h;return e&(1<<d)-1}function w(c,d){for(var e=c.g,f=c.Jg,g=c.input,h=c.C,k=d[0],m=d[1],p;f<m;)p=g[h++],p===G&&a(Error("input buffer is broken")),e|=p<<f,f+=8;g=k[e&(1<<m)-1];k=g>>>16;c.g=e>>k;c.Jg=f-k;c.C=h;return g&65535}function y(a){function c(a,d,e){var f,g,h,k;for(k=0;k<
a;)switch(f=w(this,d),f){case 16:for(h=3+v(this,2);h--;)e[k++]=g;break;case 17:for(h=3+v(this,3);h--;)e[k++]=0;g=0;break;case 18:for(h=11+v(this,7);h--;)e[k++]=0;g=0;break;default:g=e[k++]=f}return e}var d=v(a,5)+257,e=v(a,5)+1,f=v(a,4)+4,h=new (z?Uint8Array:Array)(Da.length),k;for(k=0;k<f;++k)h[Da[k]]=v(a,3);f=g(h);h=new (z?Uint8Array:Array)(d);k=new (z?Uint8Array:Array)(e);a.wy(g(c.call(a,d,f,h)),g(c.call(a,e,f,k)))}function B(c,d){var e,f;this.input=c;this.C=0;if(d||!(d={}))d.index&&(this.C=d.index),
d.mQ&&(this.YR=d.mQ);e=c[this.C++];f=c[this.C++];switch(e&15){case la:this.method=la;break;default:a(Error("unsupported compression method"))}0!==((e<<8)+f)%31&&a(Error("invalid fcheck flag:"+((e<<8)+f)%31));f&32&&a(Error("fdict flag is not supported"));this.XG=new t(c,{index:this.C,BE:d.BE,CE:d.CE,resize:d.resize})}var G=void 0,J=!0,E=this,z="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array;e.prototype.Bh=function(){var a=this.buffer,c,d=a.length,
e=new (z?Uint8Array:Array)(d<<1);if(z)e.set(a);else for(c=0;c<d;++c)e[c]=a[c];return this.buffer=e};e.prototype.J=function(a,c,d){var e=this.buffer,f=this.index,g=this.nt,h=e[f];d&&1<c&&(a=8<c?(K[a&255]<<24|K[a>>>8&255]<<16|K[a>>>16&255]<<8|K[a>>>24&255])>>32-c:K[a]>>8-c);if(8>c+g)h=h<<c|a,g+=c;else for(d=0;d<c;++d)h=h<<1|a>>c-d-1&1,8===++g&&(g=0,e[f++]=K[h],h=0,f===e.length&&(e=this.Bh()));e[f]=h;this.buffer=e;this.nt=g;this.index=f};e.prototype.finish=function(){var a=this.buffer,c=this.index,d;
0<this.nt&&(a[c]<<=8-this.nt,a[c]=K[a[c]],c++);z?d=a.subarray(0,c):(a.length=c,d=a);return d};var D=new (z?Uint8Array:Array)(256),x;for(x=0;256>x;++x){for(var F=x,L=F,M=7,F=F>>>1;F;F>>>=1)L<<=1,L|=F&1,--M;D[x]=(L<<M&255)>>>0}var K=D,D=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,
4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,
251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,
1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,
1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,
1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918E3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];z&&new Uint32Array(D);f.prototype.getParent=function(a){return 2*
((a-2)/4|0)};f.prototype.push=function(a,c){var d,e,f=this.buffer,g;d=this.length;f[this.length++]=c;for(f[this.length++]=a;0<d;)if(e=this.getParent(d),f[d]>f[e])g=f[d],f[d]=f[e],f[e]=g,g=f[d+1],f[d+1]=f[e+1],f[e+1]=g,d=e;else break;return this.length};f.prototype.pop=function(){var a,c,d=this.buffer,e,f,g;c=d[0];a=d[1];this.length-=2;d[0]=d[this.length];d[1]=d[this.length+1];for(g=0;;){f=2*g+2;if(f>=this.length)break;f+2<this.length&&d[f+2]>d[f]&&(f+=2);if(d[f]>d[g])e=d[g],d[g]=d[f],d[f]=e,e=d[g+
1],d[g+1]=d[f+1],d[f+1]=e;else break;g=f}return{index:a,value:c,length:this.length}};var P=2,D={NONE:0,r:1,ey:P,T6:3},T=[];for(x=0;288>x;x++)switch(J){case 143>=x:T.push([x+48,8]);break;case 255>=x:T.push([x-144+400,9]);break;case 279>=x:T.push([x-256+0,7]);break;case 287>=x:T.push([x-280+192,8]);break;default:a("invalid literal: "+x)}h.prototype.il=function(){var c,d,f,g,h=this.input;switch(this.sp){case 0:f=0;for(g=h.length;f<g;){d=z?h.subarray(f,f+65535):h.slice(f,f+65535);f+=d.length;var k=f===
g,m=G,t=m=G,t=m=G,u=this.a,v=this.b;if(z){for(u=new Uint8Array(this.a.buffer);u.length<=v+d.length+5;)u=new Uint8Array(u.length<<1);u.set(this.a)}m=k?1:0;u[v++]=m|0;m=d.length;t=~m+65536&65535;u[v++]=m&255;u[v++]=m>>>8&255;u[v++]=t&255;u[v++]=t>>>8&255;if(z)u.set(d,v),v+=d.length,u=u.subarray(0,v);else{m=0;for(t=d.length;m<t;++m)u[v++]=d[m];u.length=v}this.b=v;this.a=u}break;case 1:f=new e(new Uint8Array(this.a.buffer),this.b);f.J(1,1,J);f.J(1,2,J);h=p(this,h);d=0;for(k=h.length;d<k;d++)if(g=h[d],
e.prototype.J.apply(f,T[g]),256<g)f.J(h[++d],h[++d],J),f.J(h[++d],5),f.J(h[++d],h[++d],J);else if(256===g)break;this.a=f.finish();this.b=this.a.length;break;case P:g=new e(new Uint8Array(this.a),this.b);var w,x,y,B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],F,D,m=Array(19),I,u=P;g.J(1,1,J);g.J(u,2,J);h=p(this,h);t=r(this.PR,15);F=s(t);u=r(this.HR,7);v=s(u);for(w=286;257<w&&0===t[w-1];w--);for(x=30;1<x&&0===u[x-1];x--);var E=w,K=x;c=new (z?Uint32Array:Array)(E+K);var N=new (z?Uint32Array:Array)(316),
L,M;D=new (z?Uint8Array:Array)(19);for(I=y=0;I<E;I++)c[y++]=t[I];for(I=0;I<K;I++)c[y++]=u[I];if(!z)for(I=0,K=D.length;I<K;++I)D[I]=0;I=L=0;for(K=c.length;I<K;I+=y){for(y=1;I+y<K&&c[I+y]===c[I];++y);E=y;if(0===c[I])if(3>E)for(;0<E--;)N[L++]=0,D[0]++;else for(;0<E;)M=138>E?E:138,M>E-3&&M<E&&(M=E-3),10>=M?(N[L++]=17,N[L++]=M-3,D[17]++):(N[L++]=18,N[L++]=M-11,D[18]++),E-=M;else if(N[L++]=c[I],D[c[I]]++,E--,3>E)for(;0<E--;)N[L++]=c[I],D[c[I]]++;else for(;0<E;)M=6>E?E:6,M>E-3&&M<E&&(M=E-3),N[L++]=16,N[L++]=
M-3,D[16]++,E-=M}c=z?N.subarray(0,L):N.slice(0,L);D=r(D,7);for(I=0;19>I;I++)m[I]=D[B[I]];for(y=19;4<y&&0===m[y-1];y--);B=s(D);g.J(w-257,5,J);g.J(x-1,5,J);g.J(y-4,4,J);for(I=0;I<y;I++)g.J(m[I],3,J);I=0;for(m=c.length;I<m;I++)if(d=c[I],g.J(B[d],D[d],J),16<=d){I++;switch(d){case 16:k=2;break;case 17:k=3;break;case 18:k=7;break;default:a("invalid code: "+d)}g.J(c[I],k,J)}k=[F,t];v=[v,u];d=k[0];k=k[1];u=v[0];F=v[1];v=0;for(m=h.length;v<m;++v)if(f=h[v],g.J(d[f],k[f],J),256<f)g.J(h[++v],h[++v],J),t=h[++v],
g.J(u[t],F[t],J),g.J(h[++v],h[++v],J);else if(256===f)break;this.a=g.finish();this.b=this.a.length;break;default:a("invalid compression type")}return this.a};x=[];var S;for(S=3;258>=S;S++)F=m(),x[S]=F[2]<<24|F[1]<<16|F[0];var W=z?new Uint32Array(x):x,N=D;u.prototype.il=function(){var c,e,f,g,h=0;g=this.a;c=la;switch(c){case la:e=Math.LOG2E*Math.log(32768)-8;break;default:a(Error("invalid compression method"))}e=e<<4|c;g[h++]=e;switch(c){case la:switch(this.sp){case N.NONE:f=0;break;case N.r:f=1;break;
case N.ey:f=2;break;default:a(Error("unsupported compression type"))}break;default:a(Error("invalid compression method"))}c=f<<6|0;g[h++]=c|31-(256*e+c)%31;c=d(this.input);this.z.b=h;g=this.z.il();h=g.length;z&&(g=new Uint8Array(g.buffer),g.length<=h+4&&(this.a=new Uint8Array(g.length+4),this.a.set(g),g=this.a),g=g.subarray(0,h+4));g[h++]=c>>24&255;g[h++]=c>>16&255;g[h++]=c>>8&255;g[h++]=c&255;return g};c("Zlib.Deflate",u);c("Zlib.Deflate.compress",function(a,c){return(new u(a,c)).il()});c("Zlib.Deflate.CompressionType",
N);c("Zlib.Deflate.CompressionType.NONE",N.NONE);c("Zlib.Deflate.CompressionType.FIXED",N.r);c("Zlib.Deflate.CompressionType.DYNAMIC",N.ey);var Aa=0,pa=1,D={UQ:Aa,GQ:pa};t.prototype.By=function(){for(;!this.qG;){var c=v(this,3);c&1&&(this.qG=J);c>>>=1;switch(c){case 0:var c=this.input,d=this.C,e=this.a,f=this.b,g=G,h=G,k=G,m=e.length,g=G;this.Jg=this.g=0;g=c[d++];g===G&&a(Error("invalid uncompressed block header: LEN (first byte)"));h=g;g=c[d++];g===G&&a(Error("invalid uncompressed block header: LEN (second byte)"));
h|=g<<8;g=c[d++];g===G&&a(Error("invalid uncompressed block header: NLEN (first byte)"));k=g;g=c[d++];g===G&&a(Error("invalid uncompressed block header: NLEN (second byte)"));k|=g<<8;h===~k&&a(Error("invalid uncompressed block header: length verify"));d+h>c.length&&a(Error("input buffer is broken"));switch(this.ty){case Aa:for(;f+h>e.length;){g=m-f;h-=g;if(z)e.set(c.subarray(d,d+g),f),f+=g,d+=g;else for(;g--;)e[f++]=c[d++];this.b=f;e=this.Bh();f=this.b}break;case pa:for(;f+h>e.length;)e=this.Bh({fa:2});
break;default:a(Error("invalid inflate mode"))}if(z)e.set(c.subarray(d,d+h),f),f+=h,d+=h;else for(;h--;)e[f++]=c[d++];this.C=d;this.b=f;this.a=e;break;case 1:this.wy(La,Ma);break;case 2:y(this);break;default:a(Error("unknown BTYPE: "+c))}}return this.RG()};x=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];var Da=z?new Uint16Array(x):x;x=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258];var Ea=z?new Uint16Array(x):x;x=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,
3,3,3,3,4,4,4,4,5,5,5,5,0,0,0];var qa=z?new Uint8Array(x):x;x=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];var Fa=z?new Uint16Array(x):x;x=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];var ra=z?new Uint8Array(x):x;x=new (z?Uint8Array:Array)(288);F=0;for(L=x.length;F<L;++F)x[F]=143>=F?8:255>=F?9:279>=F?7:8;var La=g(x);x=new (z?Uint8Array:Array)(30);F=0;for(L=x.length;F<L;++F)x[F]=5;var Ma=g(x);t.prototype.wy=
function(a,c){var d=this.a,e=this.b;this.ea=a;for(var f=d.length-258,g,h,k;256!==(g=w(this,a));)if(256>g)e>=f&&(this.b=e,d=this.Bh(),e=this.b),d[e++]=g;else for(g-=257,k=Ea[g],0<qa[g]&&(k+=v(this,qa[g])),g=w(this,c),h=Fa[g],0<ra[g]&&(h+=v(this,ra[g])),e>=f&&(this.b=e,d=this.Bh(),e=this.b);k--;)d[e]=d[e++-h];for(;8<=this.Jg;)this.Jg-=8,this.C--;this.b=e};t.prototype.AR=function(a,c){var d=this.a,e=this.b;this.ea=a;for(var f=d.length,g,h,k;256!==(g=w(this,a));)if(256>g)e>=f&&(d=this.Bh(),f=d.length),
d[e++]=g;else for(g-=257,k=Ea[g],0<qa[g]&&(k+=v(this,qa[g])),g=w(this,c),h=Fa[g],0<ra[g]&&(h+=v(this,ra[g])),e+k>f&&(d=this.Bh(),f=d.length);k--;)d[e]=d[e++-h];for(;8<=this.Jg;)this.Jg-=8,this.C--;this.b=e};t.prototype.Bh=function(){var a=new (z?Uint8Array:Array)(this.b-32768),c=this.b-32768,d,e,f=this.a;if(z)a.set(f.subarray(32768,a.length));else for(d=0,e=a.length;d<e;++d)a[d]=f[d+32768];this.fy.push(a);this.Hy+=a.length;if(z)f.set(f.subarray(c,c+32768));else for(d=0;32768>d;++d)f[d]=f[c+d];this.b=
32768;return f};t.prototype.GR=function(a){var c,d=this.input.length/this.C+1|0,e,f,g,h=this.input,k=this.a;a&&("number"===typeof a.fa&&(d=a.fa),"number"===typeof a.rR&&(d+=a.rR));2>d?(e=(h.length-this.C)/this.ea[2],g=e/2*258|0,f=g<k.length?k.length+g:k.length<<1):f=k.length*d;z?(c=new Uint8Array(f),c.set(k)):c=k;return this.a=c};t.prototype.RG=function(){var a=0,c=this.a,d=this.fy,e,f=new (z?Uint8Array:Array)(this.Hy+(this.b-32768)),g,h,k,m;if(0===d.length)return z?this.a.subarray(32768,this.b):
this.a.slice(32768,this.b);g=0;for(h=d.length;g<h;++g)for(e=d[g],k=0,m=e.length;k<m;++k)f[a++]=e[k];g=32768;for(h=this.b;g<h;++g)f[a++]=c[g];this.fy=[];return this.buffer=f};t.prototype.wR=function(){var a,c=this.b;z?this.eH?(a=new Uint8Array(c),a.set(this.a.subarray(0,c))):a=this.a.subarray(0,c):(this.a.length>c&&(this.a.length=c),a=this.a);return this.buffer=a};B.prototype.By=function(){var c=this.input,e,f;e=this.XG.By();this.C=this.XG.C;this.YR&&(f=(c[this.C++]<<24|c[this.C++]<<16|c[this.C++]<<
8|c[this.C++])>>>0,f!==d(e)&&a(Error("invalid adler-32 checksum")));return e};c("Zlib.Inflate",B);c("Zlib.Inflate.BufferType",D);D.o5=D.GQ;D.M5=D.UQ;c("Zlib.Inflate.prototype.decompress",B.prototype.By);D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];z&&new Uint16Array(D);D=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258];z&&new Uint16Array(D);D=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0];z&&new Uint8Array(D);D=[1,2,3,4,5,7,9,13,
17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];z&&new Uint16Array(D);D=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];z&&new Uint8Array(D);D=new (z?Uint8Array:Array)(288);x=0;for(F=D.length;x<F;++x)D[x]=143>=x?8:255>=x?9:279>=x?7:8;g(D);D=new (z?Uint8Array:Array)(30);x=0;for(F=D.length;x<F;++x)D[x]=5;g(D);var la=8}).call(this);n=window;n=n.V7=n.Zlib;n.oH=n.Deflate;n.oH.J9=n.oH.compress;n.sn=n.Inflate;n.sn.Z5=n.sn.BufferType;
n.sn.prototype.PM=n.sn.prototype.decompress;b.CS=b.ja.extend({ctor:function(a){var c,d,e,f;this.data=a;this.Za=8;this.dG=[];this.Vx=[];this.gn={};this.xE=null;this.text={};for(e=null;;){c=this.Jj();f=a=void 0;f=[];for(a=0;4>a;++a)f.push(String.fromCharCode(this.data[this.Za++]));a=f.join("");switch(a){case "IHDR":this.width=this.Jj();this.height=this.Jj();this.Vo=this.data[this.Za++];this.KE=this.data[this.Za++];this.Za++;this.Za++;this.Za++;break;case "acTL":this.xE={Xfa:this.Jj(),Yfa:this.Jj()||Infinity,frames:[]};break;case "PLTE":this.dG=
this.Lt(c);break;case "fcTL":e&&this.xE.frames.push(e);this.Za+=4;e={width:this.Jj(),height:this.Jj(),oQ:this.Jj(),pQ:this.Jj()};a=this.SO();c=this.SO()||100;e.P9=1E3*a/c;e.c$=this.data[this.Za++];e.s9=this.data[this.Za++];e.data=[];break;case "IDAT":case "fdAT":"fdAT"===a&&(this.Za+=4,c-=4);a=(null!=e?e.data:void 0)||this.Vx;for(f=0;0<=c?f<c:f>c;0<=c?++f:--f)a.push(this.data[this.Za++]);break;case "tRNS":this.gn={};switch(this.KE){case 3:this.gn.yF=this.Lt(c);c=255-this.gn.yF.length;if(0<c)for(a=
0;0<=c?a<c:a>c;0<=c?++a:--a)this.gn.yF.push(255);break;case 0:this.gn.ada=this.Lt(c)[0];break;case 2:this.gn.yha=this.Lt(c)}break;case "tEXt":f=this.Lt(c);c=f.indexOf(0);a=String.fromCharCode.apply(String,f.slice(0,c));this.text[a]=String.fromCharCode.apply(String,f.slice(c+1));break;case "IEND":e&&this.xE.frames.push(e);a:{switch(this.KE){case 0:case 3:case 4:e=1;break a;case 2:case 6:e=3;break a}e=void 0}this.t=e;this.UN=4===(d=this.KE)||6===d;d=this.t+(this.UN?1:0);this.B2=this.Vo*d;Uint8Array!=
Array&&(this.Vx=new Uint8Array(this.Vx));return;default:this.Za+=c}this.Za+=4;if(this.Za>this.data.length)throw Error("Incomplete or corrupt PNG file");}},Lt:function(a){var c,d;d=[];for(c=0;0<=a?c<a:c>a;0<=a?++c:--c)d.push(this.data[this.Za++]);return d},Jj:function(){var a,c,d,e;a=this.data[this.Za++]<<24;c=this.data[this.Za++]<<16;d=this.data[this.Za++]<<8;e=this.data[this.Za++];return a|c|d|e},SO:function(){var a,c;a=this.data[this.Za++]<<8;c=this.data[this.Za++];return a|c},SZ:function(a){var c,
d,e,f,g,h,k,m,p,r,s,u,t,v,w;null==a&&(a=this.Vx);if(0===a.length)return new Uint8Array(0);a=(new Zlib.sn(a,{index:0,mQ:!1})).PM();m=this.B2/8;u=m*this.width;p=new Uint8Array(u*this.height);h=a.length;for(d=r=s=0;r<h;){switch(a[r++]){case 0:for(c=0;c<u;c+=1)p[d++]=a[r++];break;case 1:for(f=t=0;t<u;f=t+=1)c=a[r++],g=f<m?0:p[d-m],p[d++]=(c+g)%256;break;case 2:for(f=g=0;g<u;f=g+=1)c=a[r++],e=(f-f%m)/m,t=s&&p[(s-1)*u+e*m+f%m],p[d++]=(t+c)%256;break;case 3:for(f=w=0;w<u;f=w+=1)c=a[r++],e=(f-f%m)/m,g=f<
m?0:p[d-m],t=s&&p[(s-1)*u+e*m+f%m],p[d++]=(c+Math.floor((g+t)/2))%256;break;case 4:for(f=w=0;w<u;f=w+=1)c=a[r++],e=(f-f%m)/m,g=f<m?0:p[d-m],0===s?t=v=0:(t=p[(s-1)*u+e*m+f%m],v=e&&p[(s-1)*u+(e-1)*m+f%m]),k=g+t-v,f=Math.abs(k-g),e=Math.abs(k-t),k=Math.abs(k-v),g=f<=e&&f<=k?g:e<=k?t:v,p[d++]=(c+g)%256;break;default:throw Error("Invalid filter algorithm: "+a[r-1]);}s++}return p},QZ:function(a,c){var d,e,f,g,h,k,m,p;e=this.t;p=null;d=this.UN;this.dG.length&&(p=null!=(f=this.FV)?f:this.FV=this.RZ(),e=4,
d=!0);f=a.data||a;m=f.length;h=p||c;g=k=0;if(1===e)for(;g<m;)e=p?4*c[g/4]:k,k=h[e++],f[g++]=k,f[g++]=k,f[g++]=k,f[g++]=d?h[e++]:255,k=e;else for(;g<m;)e=p?4*c[g/4]:k,f[g++]=h[e++],f[g++]=h[e++],f[g++]=h[e++],f[g++]=d?h[e++]:255,k=e},RZ:function(){var a,c,d,e,f,g,h,k,m;d=this.dG;g=this.gn.yF||[];f=new Uint8Array((g.length||0)+d.length);c=h=a=e=0;for(k=d.length;h<k;c=h+=3)f[e++]=d[c],f[e++]=d[c+1],f[e++]=d[c+2],f[e++]=null!=(m=g[a++])?m:255;return f},c3:function(a){var c;a.width=this.width;a.height=
this.height;a=a.getContext("2d");c=a.createImageData(this.width,this.height);this.QZ(c,this.SZ());return a.putImageData(c,0,0)}});b.S4={XK:!1,om:null,QB:[],getUint8:function(a){return this.om[a]},getUint16:function(a){return this.XK?this.om[a+1]<<8|this.om[a]:this.om[a]<<8|this.om[a+1]},getUint32:function(a){var c=this.om;return this.XK?c[a+3]<<24|c[a+2]<<16|c[a+1]<<8|c[a]:c[a]<<24|c[a+1]<<16|c[a+2]<<8|c[a+3]},GZ:function(){var a=this.getUint16(0);if(18761===a)this.WF=!0;else if(19789===a)this.WF=!1;else throw console.log(a),TypeError("Invalid byte order value.");return this.WF},V0:function(){if(42!==this.getUint16(2))throw RangeError("You forgot your towel!");
return!0},V_:function(a){var c=this.B_;return a in c?c[a]:null},T_:function(a){var c=this.A_;if(a in c)return c[a];console.log("Unknown Field Tag:",a);return"Tag"+a},U_:function(a){return-1!==["BYTE","ASCII","SBYTE","UNDEFINED"].indexOf(a)?1:-1!==["SHORT","SSHORT"].indexOf(a)?2:-1!==["LONG","SLONG","FLOAT"].indexOf(a)?4:-1!==["RATIONAL","SRATIONAL","DOUBLE"].indexOf(a)?8:null},W_:function(a,c,d,e){a=[];var f=this.U_(c);if(4>=f*d)!1===this.WF?a.push(e>>>8*(4-f)):a.push(e);else for(var g=0;g<d;g++){var h=
f*g;8<=f?-1!==["RATIONAL","SRATIONAL"].indexOf(c)?(a.push(this.getUint32(e+h)),a.push(this.getUint32(e+h+4))):b.log("Can't handle this field type or size"):a.push(this.lN(f,e+h))}"ASCII"===c&&a.forEach(function(a,c,d){d[c]=String.fromCharCode(a)});return a},lN:function(a,c){if(0>=a)b.log("No bytes requested");else{if(1>=a)return this.getUint8(c);if(2>=a)return this.getUint16(c);if(3>=a)return this.getUint32(c)>>>8;if(4>=a)return this.getUint32(c);b.log("Too many bytes requested")}},G_:function(a,
c,d){d=d||0;c+=Math.floor(d/8);var e=d+a;a=32-a;var f,g;0>=e?console.log("No bits requested"):8>=e?(f=24+d,g=this.getUint8(c)):16>=e?(f=16+d,g=this.getUint16(c)):32>=e?(f=d,g=this.getUint32(c)):console.log("Too many bits requested");return{bits:g<<f>>>a,byteOffset:c+Math.floor(e/8),bitOffset:e%8}},OO:function(a){var c=this.getUint16(a),d=[];a+=2;for(var e=0;e<c;a+=12,e++){var f=this.getUint16(a),g=this.getUint16(a+2),h=this.getUint32(a+4),k=this.getUint32(a+8),f=this.T_(f),g=this.V_(g),h=this.W_(f,
g,h,k);d[f]={type:g,Qh:h}}this.QB.push(d);c=this.getUint32(a);0!==c&&this.OO(c)},Bm:function(a,c){var d=Math.pow(2,8-c);return Math.floor(a*d+(d-1))},w2:function(a,c){c=c||b.Ob("canvas");this.om=a;this.canvas=c;this.GZ();if(this.V0()){var d=this.getUint32(4);this.QB.length=0;this.OO(d);var e=this.QB[0],d=e.ImageWidth.Qh[0],f=e.ImageLength.Qh[0];this.canvas.width=d;this.canvas.height=f;var g=[],h=e.Compression?e.Compression.Qh[0]:1,k=e.SamplesPerPixel.Qh[0],m=[],p=0,r=!1;e.BitsPerSample.Qh.forEach(function(a,
c){m[c]={Wo:a,Px:!1,Ys:void 0};0===a%8&&(m[c].Px=!0,m[c].Ys=a/8);p+=a},this);if(0===p%8)var r=!0,s=p/8;var u=e.StripOffsets.Qh,t=u.length;if(e.StripByteCounts)var v=e.StripByteCounts.Qh;else if(b.log("Missing StripByteCounts!"),1===t)v=[Math.ceil(d*f*p/8)];else throw Error("Cannot recover from missing StripByteCounts");for(var w=0;w<t;w++){var y=u[w];g[w]=[];for(var B=v[w],G=0,J=0,E=1,z=!0,D=[],x=0,F=0,L=0;G<B;G+=E)switch(h){case 1:E=0;for(D=[];E<k;E++)if(m[E].Px)D.push(this.lN(m[E].Ys,y+G+m[E].Ys*
E));else{var M=this.G_(m[E].Wo,y+G,J);D.push(M.Vo);G=M.byteOffset-y;J=M.q9;throw RangeError("Cannot handle sub-byte bits per sample");}g[w].push(D);if(r)E=s;else throw E=0,RangeError("Cannot handle sub-byte bits per pixel");break;case 32773:if(z){var z=!1,K=1,P=1,E=this.getInt8(y+G);0<=E&&127>=E?K=E+1:-127<=E&&-1>=E?P=-E+1:z=!0}else{for(var T=this.getUint8(y+G),E=0;E<P;E++){if(m[F].Px)L=L<<8*x|T,x++,x===m[F].Ys&&(D.push(L),L=x=0,F++);else throw RangeError("Cannot handle sub-byte bits per sample");
F===k&&(g[w].push(D),D=[],F=0)}K--;0===K&&(z=!0)}E=1}}if(c.getContext){s=this.canvas.getContext("2d");s.fillStyle="rgba(255, 255, 255, 0)";w=e.RowsPerStrip?e.RowsPerStrip.Qh[0]:f;y=g.length;f%=w;f=0===f?w:f;G=w;h=0;D=e.PhotometricInterpretation.Qh[0];K=[];P=0;e.ExtraSamples&&(K=e.ExtraSamples.Qh,P=K.length);if(e.ColorMap)var M=e.ColorMap.Qh,S=Math.pow(2,m[0].Wo);for(w=0;w<y;w++){w+1===y&&(G=f);e=g[w].length;h*=w;for(r=k=0;k<G,r<e;k++)for(u=0;u<d;u++,r++){v=g[w][r];z=J=B=0;t=1;if(0<P)for(B=0;B<P;B++)if(1===
K[B]||2===K[B]){t=v[3+B]/256;break}switch(D){case 0:if(m[0].Px)var W=Math.pow(16,2*m[0].Ys);v.forEach(function(a,c,d){d[c]=W-a});case 1:B=J=z=this.Bm(v[0],m[0].Wo);break;case 2:B=this.Bm(v[0],m[0].Wo);J=this.Bm(v[1],m[1].Wo);z=this.Bm(v[2],m[2].Wo);break;case 3:if(void 0===M)throw Error("Palette image missing color map");v=v[0];B=this.Bm(M[v],16);J=this.Bm(M[S+v],16);z=this.Bm(M[2*S+v],16);break;default:throw RangeError("Unknown Photometric Interpretation:",D);}s.fillStyle="rgba("+B+", "+J+", "+z+
", "+t+")";s.fillRect(u,h+k,1,1)}h=G}}return this.canvas}},A_:{315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",
284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",
339:"SampleFormat",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",
37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop"},B_:{1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE"}};b.sg=function(a,c,d,e,f,g,h,k,m,p,r,s){this.Za=a?a:C(0,0);this.az=c?c:C(0,0);this.color=d?d:{r:0,g:0,b:0,a:255};this.dt=e?e:{r:0,g:0,b:0,a:255};this.size=f||0;this.RE=g||0;this.rotation=h||0;this.VM=k||0;this.pl=m||0;this.atlasIndex=p||0;this.Wb=r?r:new b.sg.Oz;this.Gd=s?s:new b.sg.Pz;this.jO=!1;this.ft=C(0,0)};b.sg.Oz=function(a,c,d){this.dir=a?a:C(0,0);this.radialAccel=c||0;this.tangentialAccel=d||0};b.sg.Pz=function(a,c,d,e){this.Ig=a||0;this.RM=c||0;this.Kt=d||0;this.UM=e||0};
b.sg.ev=[C(),C(),C(),C()];
b.m=b.q.extend({NC:"",kb:0,JJ:!1,Wb:null,Gd:null,tb:"ParticleSystem",TC:C(0,0),Jk:null,Sl:0,nf:0,W:null,atlasIndex:0,rm:!1,rv:0,yx:null,$y:null,ro:!1,ud:0,duration:0,Do:null,Kk:null,Te:0,Ap:0,Ig:0,To:0,Tp:0,Up:0,Hm:0,cp:0,vh:null,Rk:null,Ee:null,wk:null,Vp:0,Wp:0,dp:0,ep:0,Gm:0,ob:0,L:null,o:null,Qa:!1,Ji:null,Ws:!1,Fa:0,Fc:null,lb:null,vc:null,ks:null,na:null,ad:null,ctor:function(a){b.q.prototype.ctor.call(this);this.Fa=b.m.fb;this.Wb=new b.m.Oz;this.Gd=new b.m.Pz;this.o={src:b.hc,U:b.gc};this.Jk=
[];this.Do=C(0,0);this.Kk=C(0,0);this.vh=b.color(255,255,255,255);this.Rk=b.color(255,255,255,255);this.Ee=b.color(255,255,255,255);this.wk=b.color(255,255,255,255);this.NC="";this.kb=0;this.JJ=!1;this.TC=C(0,0);this.nf=this.Sl=0;this.W=null;this.atlasIndex=0;this.rm=!1;this.rv=0;this.yx=b.m.bT;this.$y=b.m.xQ;this.ro=!1;this.ob=this.Gm=this.ep=this.dp=this.Wp=this.Vp=this.cp=this.Hm=this.Up=this.Tp=this.To=this.Ig=this.Ap=this.Te=this.duration=this.ud=0;this.L=null;this.Qa=!1;this.Ji=b.m.br;this.Ws=
!1;this.vc=[0,0];this.Fc=[];this.lb=[];this.ks=O(0,0,0,0);this.na=!0;b.A===b.Z&&(this.ad=null);a&&"number"!==typeof a?a&&this.el(a):(a=a||100,this.B3(b.m.oI),this.Va(a))},zF:function(){for(var a=this.lb,c=0,d=this.ob;c<d;++c){var e=6*c,f=4*c;a[e+0]=f+0;a[e+1]=f+1;a[e+2]=f+2;a[e+5]=f+1;a[e+4]=f+2;a[e+3]=f+3}},XN:function(a){var c=b.pb(),d=O(a.x*c,a.y*c,a.width*c,a.height*c),e=a.width,f=a.height;this.L&&(e=this.L.pixelsWidth,f=this.L.pixelsHeight);if(b.A!==b.Da){b.pn?(a=(2*d.x+1)/(2*e),c=(2*d.y+1)/
(2*f),e=a+(2*d.width-2)/(2*e),d=c+(2*d.height-2)/(2*f)):(a=d.x/e,c=d.y/f,e=a+d.width/e,d=c+d.height/f);var f=d,d=c,c=f,g=0,h=0;this.W?(f=this.W.textureAtlas.quads,g=this.atlasIndex,h=this.atlasIndex+this.ob):(f=this.Fc,g=0,h=this.ob);for(;g<h;g++){f[g]||(f[g]=b.aJ());var k=f[g];k.G.l.ea=a;k.G.l.fa=c;k.N.l.ea=e;k.N.l.fa=c;k.M.l.ea=a;k.M.l.fa=d;k.K.l.ea=e;k.K.l.fa=d}}},cF:function(){return this.W},nl:function(a){if(this.W!=a){var c=this.W;if(this.W=a)for(var d=this.Jk,e=0;e<this.ob;e++)d[e].atlasIndex=
e;a?c||(this.W.textureAtlas.CV(this.Fc,this.atlasIndex),b.k.deleteBuffer(this.vc[1])):(this.pJ(),this.zF(),this.qb(c.Oa()),this.km())}},np:function(){return this.atlasIndex},uG:function(a){this.atlasIndex=a},Qaa:function(){return this.yx},B3:function(a){this.yx=a},nca:function(){return this.$y},gja:function(a){this.$y=a},wf:function(){return this.ro},Tba:function(){return this.ud},Via:function(a){this.ud=a},op:function(){return this.duration},dg:function(a){this.duration=a},G0:function(){return{x:this.Do.x,
y:this.Do.y}},d4:function(a){this.Do=a},jF:function(){return{x:this.Kk.x,y:this.Kk.y}},Vg:function(a){this.Kk=a},uba:function(){return this.Te},Tg:function(a){this.Te=a},vba:function(){return this.Ap},Ug:function(a){this.Ap=a},oaa:function(){return this.Ig},Og:function(a){this.Ig=a},paa:function(){return this.To},Pg:function(a){this.To=a},tN:function(){this.Fa!==b.m.fb&&b.log("cc.ParticleBatchNode.getGravity() : Particle Mode should be Gravity");var a=this.Wb.gravity;return C(a.x,a.y)},fg:function(a){this.Fa!==
b.m.fb&&b.log("cc.ParticleBatchNode.setGravity() : Particle Mode should be Gravity");this.Wb.gravity=a},Ix:function(){this.Fa!==b.m.fb&&b.log("cc.ParticleBatchNode.getSpeed() : Particle Mode should be Gravity");return this.Wb.speed},Xe:function(a){this.Fa!==b.m.fb&&b.log("cc.ParticleBatchNode.setSpeed() : Particle Mode should be Gravity");this.Wb.speed=a},IN:function(){this.Fa!==b.m.fb&&b.log("cc.ParticleBatchNode.getSpeedVar() : Particle Mode should be Gravity");return this.Wb.speedVar},ig:function(a){this.Fa!==
b.m.fb&&b.log("cc.ParticleBatchNode.setSpeedVar() : Particle Mode should be Gravity");this.Wb.speedVar=a},NN:function(){this.Fa!==b.m.fb&&b.log("cc.ParticleBatchNode.getTangentialAccel() : Particle Mode should be Gravity");return this.Wb.tangentialAccel},Nj:function(a){this.Fa!==b.m.fb&&b.log("cc.ParticleBatchNode.setTangentialAccel() : Particle Mode should be Gravity");this.Wb.tangentialAccel=a},ON:function(){this.Fa!==b.m.fb&&b.log("cc.ParticleBatchNode.getTangentialAccelVar() : Particle Mode should be Gravity");
return this.Wb.tangentialAccelVar},Oj:function(a){this.Fa!==b.m.fb&&b.log("cc.ParticleBatchNode.setTangentialAccelVar() : Particle Mode should be Gravity");this.Wb.tangentialAccelVar=a},BN:function(){this.Fa!==b.m.fb&&b.log("cc.ParticleBatchNode.getRadialAccel() : Particle Mode should be Gravity");return this.Wb.radialAccel},gg:function(a){this.Fa!==b.m.fb&&b.log("cc.ParticleBatchNode.setRadialAccel() : Particle Mode should be Gravity");this.Wb.radialAccel=a},CN:function(){this.Fa!==b.m.fb&&b.log("cc.ParticleBatchNode.getRadialAccelVar() : Particle Mode should be Gravity");
return this.Wb.radialAccelVar},hg:function(a){this.Fa!==b.m.fb&&b.log("cc.ParticleBatchNode.setRadialAccelVar() : Particle Mode should be Gravity");this.Wb.radialAccelVar=a},y0:function(){this.Fa!==b.m.fb&&b.log("cc.ParticleBatchNode.getRotationIsDir() : Particle Mode should be Gravity");return this.Wb.rotationIsDir},Y3:function(a){this.Fa!==b.m.fb&&b.log("cc.ParticleBatchNode.setRotationIsDir() : Particle Mode should be Gravity");this.Wb.rotationIsDir=a},LN:function(){this.Fa!==b.m.bf&&b.log("cc.ParticleBatchNode.getStartRadius() : Particle Mode should be Radius");
return this.Gd.startRadius},IP:function(a){this.Fa!==b.m.bf&&b.log("cc.ParticleBatchNode.setStartRadius() : Particle Mode should be Radius");this.Gd.startRadius=a},MN:function(){this.Fa!==b.m.bf&&b.log("cc.ParticleBatchNode.getStartRadiusVar() : Particle Mode should be Radius");return this.Gd.startRadiusVar},JP:function(a){this.Fa!==b.m.bf&&b.log("cc.ParticleBatchNode.setStartRadiusVar() : Particle Mode should be Radius");this.Gd.startRadiusVar=a},qN:function(){this.Fa!==b.m.bf&&b.log("cc.ParticleBatchNode.getEndRadius() : Particle Mode should be Radius");
return this.Gd.endRadius},pP:function(a){this.Fa!==b.m.bf&&b.log("cc.ParticleBatchNode.setEndRadius() : Particle Mode should be Radius");this.Gd.endRadius=a},rN:function(){this.Fa!==b.m.bf&&b.log("cc.ParticleBatchNode.getEndRadiusVar() : Particle Mode should be Radius");return this.Gd.endRadiusVar},qP:function(a){this.Fa!==b.m.bf&&b.log("cc.ParticleBatchNode.setEndRadiusVar() : Particle Mode should be Radius");this.Gd.endRadiusVar=a},DN:function(){this.Fa!==b.m.bf&&b.log("cc.ParticleBatchNode.getRotatePerSecond() : Particle Mode should be Radius");
return this.Gd.Ny},EP:function(a){this.Fa!==b.m.bf&&b.log("cc.ParticleBatchNode.setRotatePerSecond() : Particle Mode should be Radius");this.Gd.Ny=a},EN:function(){this.Fa!==b.m.bf&&b.log("cc.ParticleBatchNode.getRotatePerSecondVar() : Particle Mode should be Radius");return this.Gd.Oy},FP:function(a){this.Fa!==b.m.bf&&b.log("cc.ParticleBatchNode.setRotatePerSecondVar() : Particle Mode should be Radius");this.Gd.Oy=a},dn:function(a,c){this.rm=!0;b.q.prototype.dn.call(this,a,c)},cn:function(a){this.rm=
!0;b.q.prototype.cn.call(this,a)},St:function(a){this.rm=!0;b.q.prototype.St.call(this,a)},Tt:function(a){this.rm=!0;b.q.prototype.Tt.call(this,a)},qca:function(){return this.Tp},Wg:function(a){this.Tp=a},rca:function(){return this.Up},Xg:function(a){this.Up=a},Vaa:function(){return this.Hm},Sg:function(a){this.Hm=a},Waa:function(){return this.cp},D3:function(a){this.cp=a},Jx:function(){return b.color(this.vh.r,this.vh.g,this.vh.b,this.vh.a)},Ye:function(a){this.vh=b.color(a)},KN:function(){return b.color(this.Rk.r,
this.Rk.g,this.Rk.b,this.Rk.a)},jg:function(a){this.Rk=b.color(a)},Ex:function(){return b.color(this.Ee.r,this.Ee.g,this.Ee.b,this.Ee.a)},We:function(a){this.Ee=b.color(a)},pN:function(){return b.color(this.wk.r,this.wk.g,this.wk.b,this.wk.a)},eg:function(a){this.wk=b.color(a)},sca:function(){return this.Vp},f4:function(a){this.Vp=a},tca:function(){return this.Wp},g4:function(a){this.Wp=a},Xaa:function(){return this.dp},E3:function(a){this.dp=a},Yaa:function(){return this.ep},F3:function(a){this.ep=
a},Taa:function(){return this.Gm},Qg:function(a){this.Gm=a},K0:function(){return this.ob},j4:function(a){if(b.A===b.Da)this.ob=200>a?a:200;else{if(a>this.rv){var c=b.Cb.BYTES_PER_ELEMENT;this.lb=new Uint16Array(6*a);var d=new ArrayBuffer(a*c),e=this.Jk;e.length=0;for(var f=this.Fc,g=f.length=0;g<a;g++)e[g]=new b.sg,f[g]=new b.Cb(null,null,null,null,d,g*c);this.ob=this.rv=a;if(this.W)for(c=0;c<a;c++)e[c].atlasIndex=c;this.ad=d;this.zF();this.km();this.L&&this.XN(O(0,0,this.L.width,this.L.height))}else this.ob=
a;this.e3()}},Oa:function(){return this.L},qb:function(a){a.wc?this.JG(a,O(0,0,a.width,a.height)):(this.na=!1,a.$d(function(a){this.na=!0;this.JG(a,O(0,0,a.width,a.height))},this))},Ch:function(){return this.o},Ve:function(a,c){if(void 0===c)this.o!=a&&(this.o=a,this.Wf());else if(this.o.src!=a||this.o.U!=c)this.o={src:a,U:c},this.Wf()},ue:function(){return this.Qa},Jd:function(a){this.Qa=a},m1:function(){return this.o.src==b.SRC_ALPHA&&this.o.U==b.ONE||this.o.src==b.ONE&&this.o.U==b.ONE},Oh:function(a){var c=
this.o;a?(c.src=b.SRC_ALPHA,c.U=b.ONE):b.A===b.Z?this.L&&!this.L.Ai()?(c.src=b.SRC_ALPHA,c.U=b.ONE_MINUS_SRC_ALPHA):(c.src=b.hc,c.U=b.gc):(c.src=b.hc,c.U=b.gc)},Xba:function(){return this.Ji},Xia:function(a){this.Ji=a},mda:function(){return this.Ws},Pha:function(a){this.Ws=a},Uaa:function(){return this.Fa},Rg:function(a){this.Fa=a},F:function(){return this.Va(150)},el:function(a){this.NC=a;a=b.V.Fd(a);return a?this.Z0(a,""):(b.log("cc.ParticleSystem.initWithFile(): Particles: file not found"),!1)},
H_:function(){return O(0,0,b.Ya.width,b.Ya.height)},Z0:function(a){var c=!1,d=null,d=this.$Y,e=parseInt(d("maxParticles",a));if(this.Va(e)){this.Ig=parseFloat(d("angle",a));this.To=parseFloat(d("angleVariance",a));this.duration=parseFloat(d("duration",a));this.o.src=parseInt(d("blendFuncSource",a));this.o.U=parseInt(d("blendFuncDestination",a));c=this.vh;c.r=255*parseFloat(d("startColorRed",a));c.g=255*parseFloat(d("startColorGreen",a));c.b=255*parseFloat(d("startColorBlue",a));c.a=255*parseFloat(d("startColorAlpha",
a));c=this.Rk;c.r=255*parseFloat(d("startColorVarianceRed",a));c.g=255*parseFloat(d("startColorVarianceGreen",a));c.b=255*parseFloat(d("startColorVarianceBlue",a));c.a=255*parseFloat(d("startColorVarianceAlpha",a));c=this.Ee;c.r=255*parseFloat(d("finishColorRed",a));c.g=255*parseFloat(d("finishColorGreen",a));c.b=255*parseFloat(d("finishColorBlue",a));c.a=255*parseFloat(d("finishColorAlpha",a));c=this.wk;c.r=255*parseFloat(d("finishColorVarianceRed",a));c.g=255*parseFloat(d("finishColorVarianceGreen",
a));c.b=255*parseFloat(d("finishColorVarianceBlue",a));c.a=255*parseFloat(d("finishColorVarianceAlpha",a));this.Tp=parseFloat(d("startParticleSize",a));this.Up=parseFloat(d("startParticleSizeVariance",a));this.Hm=parseFloat(d("finishParticleSize",a));this.cp=parseFloat(d("finishParticleSizeVariance",a));this.P(parseFloat(d("sourcePositionx",a)),parseFloat(d("sourcePositiony",a)));this.Kk.x=parseFloat(d("sourcePositionVariancex",a));this.Kk.y=parseFloat(d("sourcePositionVariancey",a));this.Vp=parseFloat(d("rotationStart",
a));this.Wp=parseFloat(d("rotationStartVariance",a));this.dp=parseFloat(d("rotationEnd",a));this.ep=parseFloat(d("rotationEndVariance",a));this.Fa=parseInt(d("emitterType",a));if(this.Fa==b.m.fb)c=this.Wb,c.gravity.x=parseFloat(d("gravityx",a)),c.gravity.y=parseFloat(d("gravityy",a)),c.speed=parseFloat(d("speed",a)),c.speedVar=parseFloat(d("speedVariance",a)),e=d("radialAcceleration",a),c.radialAccel=e?parseFloat(e):0,e=d("radialAccelVariance",a),c.radialAccelVar=e?parseFloat(e):0,e=d("tangentialAcceleration",
a),c.tangentialAccel=e?parseFloat(e):0,e=d("tangentialAccelVariance",a),c.tangentialAccelVar=e?parseFloat(e):0,e=d("rotationIsDir",a).toLowerCase(),c.rotationIsDir=null!=e&&("true"===e||"1"===e);else if(this.Fa==b.m.bf)c=this.Gd,c.startRadius=parseFloat(d("maxRadius",a)),c.startRadiusVar=parseFloat(d("maxRadiusVariance",a)),c.endRadius=parseFloat(d("minRadius",a)),c.endRadiusVar=0,c.Ny=parseFloat(d("rotatePerSecond",a)),c.Oy=parseFloat(d("rotatePerSecondVariance",a));else return b.log("cc.ParticleSystem.initWithDictionary(): Invalid emitterType in config file"),
!1;this.Te=parseFloat(d("particleLifespan",a));this.Ap=parseFloat(d("particleLifespanVariance",a));this.Gm=this.ob/this.Te;if(!this.W)if(this.Qa=!1,c=d("textureFileName",a),c=b.path.Yo(this.NC,c),e=b.Ba.en(c))this.qb(e);else if((a=d("textureImageData",a))&&0==a.length){e=b.Ba.nc(c);if(!e)return!1;this.qb(e)}else{d=b.hQ(a,1);if(!d)return b.log("cc.ParticleSystem: error decoding or ungzipping textureImageData"),!1;a=b.b0(d);if(a!==b.sH&&a!==b.Bz)return b.log("cc.ParticleSystem: unknown image format with Data"),
!1;e=b.Ob("canvas");a===b.Bz?(new b.CS(d)).c3(e):b.S4.w2(d,e);b.Ba.CZ(c,e);(a=b.Ba.en(c))||b.log("cc.ParticleSystem.initWithDictionary() : error loading the texture");this.qb(a)}c=!0}return c},Va:function(a){this.ob=a;var c,d=this.Jk;for(c=d.length=0;c<a;c++)d[c]=new b.sg;if(!d)return b.log("Particle system: not enough memory"),!1;this.rv=a;if(this.W)for(c=0;c<this.ob;c++)d[c].atlasIndex=c;this.ro=!0;this.o.src=b.hc;this.o.U=b.gc;this.Ji=b.m.br;this.Fa=b.m.fb;this.rm=this.Ws=!1;this.hP(1);if(b.A===
b.Z){if(!this.pJ())return!1;this.zF();this.km();this.shaderProgram=b.Ld.oc(b.Ui)}return!0},S9:function(){this.gQ()},bZ:function(){if(this.p1())return!1;var a,c=this.Jk;b.A===b.Da?this.ud<c.length?a=c[this.ud]:(a=new b.sg,c.push(a)):a=c[this.ud];this.X0(a);++this.ud;return!0},X0:function(a){var c=b.O2;a.pl=this.Te+this.Ap*c();a.pl=Math.max(0,a.pl);a.Za.x=this.Do.x+this.Kk.x*c();a.Za.y=this.Do.y+this.Kk.y*c();var d,e;d=this.vh;var f=this.Rk,g=this.Ee;e=this.wk;b.A===b.Da?(d=b.color(b.Tc(d.r+f.r*c(),
0,255),b.Tc(d.g+f.g*c(),0,255),b.Tc(d.b+f.b*c(),0,255),b.Tc(d.a+f.a*c(),0,255)),e=b.color(b.Tc(g.r+e.r*c(),0,255),b.Tc(g.g+e.g*c(),0,255),b.Tc(g.b+e.b*c(),0,255),b.Tc(g.a+e.a*c(),0,255))):(d={r:b.Tc(d.r+f.r*c(),0,255),g:b.Tc(d.g+f.g*c(),0,255),b:b.Tc(d.b+f.b*c(),0,255),a:b.Tc(d.a+f.a*c(),0,255)},e={r:b.Tc(g.r+e.r*c(),0,255),g:b.Tc(g.g+e.g*c(),0,255),b:b.Tc(g.b+e.b*c(),0,255),a:b.Tc(g.a+e.a*c(),0,255)});a.color=d;f=a.dt;g=a.pl;f.r=(e.r-d.r)/g;f.g=(e.g-d.g)/g;f.b=(e.b-d.b)/g;f.a=(e.a-d.a)/g;d=this.Tp+
this.Up*c();d=Math.max(0,d);a.size=d;this.Hm===b.m.tg?a.RE=0:(e=this.Hm+this.cp*c(),e=Math.max(0,e),a.RE=(e-d)/g);d=this.Vp+this.Wp*c();e=this.dp+this.ep*c();a.rotation=d;a.VM=(e-d)/g;this.Ji==b.m.br?a.az=this.ux(this.TC):this.Ji==b.m.CA&&(a.az.x=this.ya.x,a.az.y=this.ya.y);d=b.Yf(this.Ig+this.To*c());if(this.Fa===b.m.fb)g=this.Wb,e=a.Wb,f=g.speed+g.speedVar*c(),e.dir.x=Math.cos(d),e.dir.y=Math.sin(d),b.Ip(e.dir,f),e.radialAccel=g.radialAccel+g.radialAccelVar*c(),e.tangentialAccel=g.tangentialAccel+
g.tangentialAccelVar*c(),g.rotationIsDir&&(a.rotation=-b.iG(b.u2(e.dir)));else{e=this.Gd;a=a.Gd;var f=e.startRadius+e.startRadiusVar*c(),h=e.endRadius+e.endRadiusVar*c();a.Kt=f;a.UM=e.endRadius===b.m.cT?0:(h-f)/g;a.Ig=d;a.RM=b.Yf(e.Ny+e.Oy*c())}},I4:function(){this.ro=!1;this.kb=this.duration;this.Sl=0},e3:function(){this.ro=!0;this.kb=0;var a=this.Jk;for(this.nf=0;this.nf<this.ud;++this.nf)a[this.nf].pl=0},p1:function(){return this.ud>=this.ob},b5:function(a,c){var d=null;this.W?(d=this.W.textureAtlas.quads[this.atlasIndex+
a.atlasIndex],this.W.textureAtlas.dirty=!0):d=this.Fc[this.nf];var e,f,g,h;this.Qa?(e=0|a.color.r*a.color.a/255,f=0|a.color.g*a.color.a/255,g=0|a.color.b*a.color.a/255):(e=0|a.color.r,f=0|a.color.g,g=0|a.color.b);h=0|a.color.a;var k=d.G.t;k.r=e;k.g=f;k.b=g;k.a=h;k=d.N.t;k.r=e;k.g=f;k.b=g;k.a=h;k=d.M.t;k.r=e;k.g=f;k.b=g;k.a=h;k=d.K.t;k.r=e;k.g=f;k.b=g;k.a=h;e=a.size/2;if(a.rotation){f=-e;g=-e;h=c.x;var k=c.y,m=-b.Yf(a.rotation),p=Math.cos(m),m=Math.sin(m);d.G.i.x=f*p-g*m+h;d.G.i.y=f*m+g*p+k;d.N.i.x=
e*p-g*m+h;d.N.i.y=e*m+g*p+k;d.M.i.x=f*p-e*m+h;d.M.i.y=f*m+e*p+k;d.K.i.x=e*p-e*m+h;d.K.i.y=e*m+e*p+k}else d.G.i.x=c.x-e,d.G.i.y=c.y-e,d.N.i.x=c.x+e,d.N.i.y=c.y-e,d.M.i.x=c.x-e,d.M.i.y=c.y+e,d.K.i.x=c.x+e,d.K.i.y=c.y+e},H2:function(){if(b.A===b.Z){var a=b.k;a.bindBuffer(a.ARRAY_BUFFER,this.vc[0]);a.bufferData(a.ARRAY_BUFFER,this.ad,a.DYNAMIC_DRAW)}},update:function(a){if(this.ro&&this.Gm){var c=1/this.Gm;this.ud<this.ob&&(this.Sl+=a);for(;this.ud<this.ob&&this.Sl>c;)this.bZ(),this.Sl-=c;this.kb+=a;
-1!=this.duration&&this.duration<this.kb&&this.I4()}this.nf=0;c=b.sg.ev[0];this.Ji==b.m.br?b.Ij(c,this.ux(this.TC)):this.Ji==b.m.CA&&(c.x=this.ya.x,c.y=this.ya.y);if(this.Ac){for(var d=b.sg.ev[1],e=b.sg.ev[2],f=b.sg.ev[3],g=this.Jk;this.nf<this.ud;){b.Ey(d);b.Ey(e);b.Ey(f);var h=g[this.nf];h.pl-=a;if(0<h.pl){if(this.Fa==b.m.fb){var k=f,m=d,p=e;h.Za.x||h.Za.y?(b.Ij(m,h.Za),b.s2(m)):b.Ey(m);b.Ij(p,m);b.Ip(m,h.Wb.radialAccel);var r=p.x;p.x=-p.y;p.y=r;b.Ip(p,h.Wb.tangentialAccel);b.Ij(k,m);b.Cy(k,p);
b.Cy(k,this.Wb.gravity);b.Ip(k,a);b.Cy(h.Wb.dir,k);b.Ij(k,h.Wb.dir);b.Ip(k,a);b.Cy(h.Za,k)}else k=h.Gd,k.Ig+=k.RM*a,k.Kt+=k.UM*a,h.Za.x=-Math.cos(k.Ig)*k.Kt,h.Za.y=-Math.sin(k.Ig)*k.Kt;this.JJ&&b.A!==b.Da||(h.color.r+=h.dt.r*a,h.color.g+=h.dt.g*a,h.color.b+=h.dt.b*a,h.color.a+=h.dt.a*a,h.jO=!0);h.size+=h.RE*a;h.size=Math.max(0,h.size);h.rotation+=h.VM*a;k=d;this.Ji==b.m.br||this.Ji==b.m.CA?(m=e,b.Ij(m,c),b.NO(m,h.az),b.Ij(k,h.Za),b.NO(k,m)):b.Ij(k,h.Za);this.W&&(k.x+=this.ya.x,k.y+=this.ya.y);b.A==
b.Z?this.b5(h,k):b.Ij(h.ft,k);++this.nf}else if(h=h.atlasIndex,this.nf!==this.ud-1&&(k=g[this.nf],g[this.nf]=g[this.ud-1],g[this.ud-1]=k),this.W&&(this.W.XZ(this.atlasIndex+h),g[this.ud-1].atlasIndex=h),--this.ud,0==this.ud&&this.Ws){this.gQ();this.Tb.removeChild(this,!0);return}}this.rm=!1}this.W||this.H2()},f5:function(){this.update(0)},$Y:function(a,c){if(c){var d=c[a];return null!=d?d:""}return""},Wf:function(){if(this.W)b.log("Can't change blending functions when the particle is being batched");
else{var a=this.L;if(a&&a instanceof b.da){this.Qa=!1;var c=this.o;c.src==b.hc&&c.U==b.gc&&(a.Ai()?this.Qa=!0:(c.src=b.SRC_ALPHA,c.U=b.ONE_MINUS_SRC_ALPHA))}}},j:function(){var a=new b.m;if(a.Va(this.ob)){a.Og(this.Ig);a.Pg(this.To);a.dg(this.op());var c=this.Ch();a.Ve(c.src,c.U);a.Ye(this.Jx());a.jg(this.KN());a.We(this.Ex());a.eg(this.pN());a.Wg(this.Tp);a.Xg(this.Up);a.Sg(this.Hm);a.D3(this.cp);a.P(C(this.x,this.y));a.Vg(C(this.jF().x,this.jF().y));a.f4(this.Vp||0);a.g4(this.Wp||0);a.E3(this.dp||
0);a.F3(this.ep||0);a.Rg(this.Fa);this.Fa==b.m.fb?(c=this.tN(),a.fg(C(c.x,c.y)),a.Xe(this.Ix()),a.ig(this.IN()),a.gg(this.BN()),a.hg(this.CN()),a.Nj(this.NN()),a.Oj(this.ON())):this.Fa==b.m.bf&&(a.IP(this.LN()),a.JP(this.MN()),a.pP(this.qN()),a.qP(this.rN()),a.EP(this.DN()),a.FP(this.EN()));a.Tg(this.Te);a.Ug(this.Ap);a.Qg(this.Gm);if(!this.W&&(a.Jd(this.ue()),c=this.Oa())){var d=c.Eh();a.JG(c,O(0,0,d.width,d.height))}}return a},z3:function(a){var c=a.Pf;0==c.x&&0==c.y||b.log("cc.ParticleSystem.setDisplayFrame(): QuadParticle only supports SpriteFrames with no offsets");
b.A===b.Z&&(this.L&&a.Oa().Zd==this.L.Zd||this.qb(a.Oa()))},JG:function(a,c){var d=this.L;b.A===b.Z?d&&a.Zd==d.Zd||d==a||(this.L=a,this.Wf()):d&&a==d||d==a||(this.L=a,this.Wf());this.ks=c;this.XN(c)},Y:function(a){this.na&&!this.W&&(b.A===b.Da?this.Rl(a):this.$i(a),b.$f++)},Rl:function(a){a=a||b.k;a.save();a.globalCompositeOperation=this.m1()?"lighter":"source-over";for(var c=0;c<this.ud;c++){var d=this.Jk[c],e=0|0.5*d.size;if(this.yx==b.m.oI){if(e=this.L.Db,e.width&&e.height){a.save();a.globalAlpha=
d.color.a/255;a.translate(0|d.ft.x,-(0|d.ft.y));var f=4*Math.floor(d.size/4),g=this.ks.width,h=this.ks.height;a.scale(Math.max(1/g*f,1E-6),Math.max(1/h*f,1E-6));d.rotation&&a.rotate(b.Yf(d.rotation));a.translate(-(0|g/2),-(0|h/2));d.jO&&(f=b.Ba.Kx(e))&&(f.cu||(f.cu=b.Ob("canvas"),f.cu.width=e.width,f.cu.height=e.height),b.lp(e,f,d.color,this.ks,f.cu),e=f.cu);a.drawImage(e,0,0);a.restore()}}else a.save(),a.globalAlpha=d.color.a/255,a.translate(0|d.ft.x,-(0|d.ft.y)),this.$y==b.m.dT?(d.rotation&&a.rotate(b.Yf(d.rotation)),
b.De.g_(a,e,d.color)):b.De.$Z(a,e,d.color),a.restore()}a.restore()},$i:function(a){this.L&&(a=a||b.k,this.Hb.Mc(),this.Hb.$e(),b.te(this.L),b.RN(this.o.src,this.o.U),b.Jc(b.Kl),a.bindBuffer(a.ARRAY_BUFFER,this.vc[0]),a.vertexAttribPointer(b.sb,3,a.FLOAT,!1,24,0),a.vertexAttribPointer(b.ze,4,a.UNSIGNED_BYTE,!0,24,12),a.vertexAttribPointer(b.xd,2,a.FLOAT,!1,24,16),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.vc[1]),a.drawElements(a.TRIANGLES,6*this.nf,a.UNSIGNED_SHORT,0))},Afa:function(){b.sA||this.km()},
J8:function(){},km:function(){if(b.A!=b.Da){var a=b.k;this.vc[0]=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.vc[0]);a.bufferData(a.ARRAY_BUFFER,this.ad,a.DYNAMIC_DRAW);this.vc[1]=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.vc[1]);a.bufferData(a.ELEMENT_ARRAY_BUFFER,this.lb,a.STATIC_DRAW)}},pJ:function(){if(b.A===b.Da)return!0;if(this.W)return b.log("cc.ParticleSystem._allocMemory(): Memory should not be allocated when not using batchNode"),!1;var a=b.Cb.BYTES_PER_ELEMENT,c=this.ob,
d=this.Fc;d.length=0;this.lb=new Uint16Array(6*c);for(var e=new ArrayBuffer(a*c),f=0;f<c;f++)d[f]=new b.Cb(null,null,null,null,e,f*a);if(!d||!this.lb)return b.log("cocos2d: Particle system: not enough memory"),!1;this.ad=e;return!0}});n=b.m.prototype;b.f(n,"opacityModifyRGB",n.ue,n.Jd);b.f(n,"batchNode",n.cF,n.nl);b.f(n,"active",n.wf);b.f(n,"sourcePos",n.G0,n.d4);b.f(n,"posVar",n.jF,n.Vg);b.f(n,"gravity",n.tN,n.fg);b.f(n,"speed",n.Ix,n.Xe);b.f(n,"speedVar",n.IN,n.ig);
b.f(n,"tangentialAccel",n.NN,n.Nj);b.f(n,"tangentialAccelVar",n.ON,n.Oj);b.f(n,"radialAccel",n.BN,n.gg);b.f(n,"radialAccelVar",n.CN,n.hg);b.f(n,"rotationIsDir",n.y0,n.Y3);b.f(n,"startRadius",n.LN,n.IP);b.f(n,"startRadiusVar",n.MN,n.JP);b.f(n,"endRadius",n.qN,n.pP);b.f(n,"endRadiusVar",n.rN,n.qP);b.f(n,"rotatePerS",n.DN,n.EP);b.f(n,"rotatePerSVar",n.EN,n.FP);b.f(n,"startColor",n.Jx,n.Ye);b.f(n,"startColorVar",n.KN,n.jg);b.f(n,"endColor",n.Ex,n.We);b.f(n,"endColorVar",n.pN,n.eg);
b.f(n,"totalParticles",n.K0,n.j4);b.f(n,"texture",n.Oa,n.qb);b.m.create=function(a){return new b.m(a)};b.m.Oz=function(a,c,d,e,f,g,h,k){this.gravity=a?a:C(0,0);this.speed=c||0;this.speedVar=d||0;this.tangentialAccel=e||0;this.tangentialAccelVar=f||0;this.radialAccel=g||0;this.radialAccelVar=h||0;this.rotationIsDir=k||!1};b.m.Pz=function(a,c,d,e,f,g){this.startRadius=a||0;this.startRadiusVar=c||0;this.endRadius=d||0;this.endRadiusVar=e||0;this.Ny=f||0;this.Oy=g||0};b.m.bT=0;b.m.oI=1;b.m.dT=0;
b.m.xQ=1;b.m.Th=-1;b.m.tg=-1;b.m.cT=-1;b.m.fb=0;b.m.bf=1;b.m.br=0;b.m.CA=1;b.m.H7=2;b.RH=b.m.extend({F:function(){return this.Va(b.A===b.Z?300:150)},Va:function(a){return b.m.prototype.Va.call(this,a)?(this.dg(b.m.Th),this.Rg(b.m.fb),this.fg(C(0,0)),this.gg(0),this.hg(0),this.Xe(60),this.ig(20),this.Og(90),this.Pg(10),this.P(b.D.R.width/2,60),this.Vg(C(40,20)),this.Tg(3),this.Ug(0.25),this.Wg(54),this.Xg(10),this.Sg(b.m.tg),this.Qg(this.ob/this.Te),this.Ye(b.color(194,64,31,255)),this.jg(b.color(0,0,0,0)),this.We(b.color(0,0,0,255)),this.eg(b.color(0,0,0,0)),this.Oh(!0),!0):!1}});
b.RH.create=function(){var a=new b.RH;return a.F()?a:null};
b.SH=b.m.extend({F:function(){return this.Va(b.A===b.Z?1500:150)},Va:function(a){return b.m.prototype.Va.call(this,a)?(this.dg(b.m.Th),this.Rg(b.m.fb),this.fg(C(0,-90)),this.gg(0),this.hg(0),this.Xe(180),this.ig(50),a=b.D.R,this.P(a.width/2,a.height/2),this.Og(90),this.Pg(20),this.Tg(3.5),this.Ug(1),this.Qg(this.ob/this.Te),this.Ye(b.color(128,128,128,255)),this.jg(b.color(128,128,128,255)),this.We(b.color(26,26,26,51)),this.eg(b.color(26,26,26,51)),this.Wg(8),this.Xg(2),this.Sg(b.m.tg),this.Oh(!1),
!0):!1}});b.SH.create=function(){var a=new b.SH;return a.F()?a:null};
b.$H=b.m.extend({F:function(){return this.Va(b.A===b.Z?350:150)},Va:function(a){return b.m.prototype.Va.call(this,a)?(this.Oh(!0),this.dg(b.m.Th),this.Rg(b.m.fb),this.fg(C(0,0)),this.gg(0),this.hg(0),this.Xe(20),this.ig(5),this.Og(90),this.Pg(360),a=b.D.R,this.P(a.width/2,a.height/2),this.Vg(C(0,0)),this.Tg(1),this.Ug(0.5),this.Wg(30),this.Xg(10),this.Sg(b.m.tg),this.Qg(this.ob/this.Te),this.Ye(b.color(194,64,31,255)),this.jg(b.color(0,0,0,0)),this.We(b.color(0,0,0,255)),this.eg(b.color(0,0,0,0)),
!0):!1}});b.$H.create=function(){var a=new b.$H;return a.F()?a:null};
b.UH=b.m.extend({F:function(){return this.Va(b.A===b.Z?200:100)},Va:function(a){return b.m.prototype.Va.call(this,a)?(this.dg(b.m.Th),this.Rg(b.m.fb),this.fg(C(0,0)),this.Xe(60),this.ig(10),this.gg(-80),this.hg(0),this.Nj(80),this.Oj(0),this.Og(90),this.Pg(360),a=b.D.R,this.P(a.width/2,a.height/2),this.Vg(C(0,0)),this.Tg(4),this.Ug(1),this.Wg(37),this.Xg(10),this.Sg(b.m.tg),this.Qg(this.ob/this.Te),this.Ye(b.color(31,64,194,255)),this.jg(b.color(0,0,0,0)),this.We(b.color(0,0,0,255)),this.eg(b.color(0,
0,0,0)),this.Oh(!0),!0):!1}});b.UH.create=function(){var a=new b.UH;return a.F()?a:null};
b.TH=b.m.extend({F:function(){return this.Va(b.A===b.Z?250:100)},Va:function(a){return b.m.prototype.Va.call(this,a)?(this.dg(b.m.Th),this.Rg(b.m.fb),this.fg(C(0,0)),this.Xe(80),this.ig(10),this.gg(-60),this.hg(0),this.Nj(15),this.Oj(0),this.Og(90),this.Pg(360),a=b.D.R,this.P(a.width/2,a.height/2),this.Vg(C(0,0)),this.Tg(4),this.Ug(1),this.Wg(30),this.Xg(10),this.Sg(b.m.tg),this.Qg(this.ob/this.Te),this.Ye(b.color(128,128,128,255)),this.jg(b.color(128,128,128,128)),this.We(b.color(0,0,0,255)),this.eg(b.color(0,
0,0,0)),this.Oh(!0),!0):!1}});b.TH.create=function(){var a=new b.TH;return a.F()?a:null};
b.VH=b.m.extend({F:function(){return this.Va(b.A===b.Z?150:100)},Va:function(a){return b.m.prototype.Va.call(this,a)?(this.dg(b.m.Th),this.Rg(b.m.fb),this.fg(C(-200,200)),this.Xe(15),this.ig(5),this.gg(0),this.hg(0),this.Nj(0),this.Oj(0),this.Og(90),this.Pg(360),a=b.D.R,this.P(a.width/2,a.height/2),this.Vg(C(0,0)),this.Tg(2),this.Ug(1),this.Wg(60),this.Xg(10),this.Sg(b.m.tg),this.Qg(this.ob/this.Te),this.Ye(b.color(51,102,179)),this.jg(b.color(0,0,51,26)),this.We(b.color(0,0,0,255)),this.eg(b.color(0,
0,0,0)),this.Oh(!0),!0):!1}});b.VH.create=function(){var a=new b.VH;return a.F()?a:null};
b.ZH=b.m.extend({F:function(){return this.Va(b.A===b.Z?500:100)},Va:function(a){return b.m.prototype.Va.call(this,a)?(this.dg(b.m.Th),this.Rg(b.m.fb),this.fg(C(0,0)),this.Xe(150),this.ig(0),this.gg(-380),this.hg(0),this.Nj(45),this.Oj(0),this.Og(90),this.Pg(0),a=b.D.R,this.P(a.width/2,a.height/2),this.Vg(C(0,0)),this.Tg(12),this.Ug(0),this.Wg(20),this.Xg(0),this.Sg(b.m.tg),this.Qg(this.ob/this.Te),this.Ye(b.color(128,128,128,255)),this.jg(b.color(128,128,128,0)),this.We(b.color(128,128,128,255)),
this.eg(b.color(128,128,128,0)),this.Oh(!1),!0):!1}});b.ZH.create=function(){var a=new b.ZH;return a.F()?a:null};
b.QH=b.m.extend({F:function(){return this.Va(b.A===b.Z?700:300)},Va:function(a){return b.m.prototype.Va.call(this,a)?(this.dg(0.1),this.Rg(b.m.fb),this.fg(C(0,0)),this.Xe(70),this.ig(40),this.gg(0),this.hg(0),this.Nj(0),this.Oj(0),this.Og(90),this.Pg(360),a=b.D.R,this.P(a.width/2,a.height/2),this.Vg(C(0,0)),this.Tg(5),this.Ug(2),this.Wg(15),this.Xg(10),this.Sg(b.m.tg),this.Qg(this.ob/this.op()),this.Ye(b.color(179,26,51,255)),this.jg(b.color(128,128,128,0)),this.We(b.color(128,128,128,0)),this.eg(b.color(128,
128,128,0)),this.Oh(!1),!0):!1}});b.QH.create=function(){var a=new b.QH;return a.F()?a:null};
b.XH=b.m.extend({F:function(){return this.Va(b.A===b.Z?200:100)},Va:function(a){return b.m.prototype.Va.call(this,a)?(this.dg(b.m.Th),this.Rg(b.m.fb),this.fg(C(0,0)),this.gg(0),this.hg(0),this.Xe(25),this.ig(10),this.Og(90),this.Pg(5),this.P(b.D.R.width/2,0),this.Vg(C(20,0)),this.Tg(4),this.Ug(1),this.Wg(60),this.Xg(10),this.Sg(b.m.tg),this.Qg(this.ob/this.Te),this.Ye(b.color(204,204,204,255)),this.jg(b.color(5,5,5,0)),this.We(b.color(0,0,0,255)),this.eg(b.color(0,0,0,0)),this.Oh(!1),!0):!1}});
b.XH.create=function(){var a=new b.XH;return a.F()?a:null};
b.YH=b.m.extend({F:function(){return this.Va(b.A===b.Z?700:250)},Va:function(a){return b.m.prototype.Va.call(this,a)?(this.dg(b.m.Th),this.Rg(b.m.fb),this.fg(C(0,-1)),this.Xe(5),this.ig(1),this.gg(0),this.hg(1),this.Nj(0),this.Oj(1),a=b.D.R,this.P(a.width/2,a.height+10),this.Vg(C(a.width/2,0)),this.Og(-90),this.Pg(5),this.Tg(45),this.Ug(15),this.Wg(10),this.Xg(5),this.Sg(b.m.tg),this.Qg(10),this.Ye(b.color(255,255,255,255)),this.jg(b.color(0,0,0,0)),this.We(b.color(255,255,255,0)),this.eg(b.color(0,
0,0,0)),this.Oh(!1),!0):!1}});b.YH.create=function(){var a=new b.YH;return a.F()?a:null};
b.WH=b.m.extend({F:function(){return this.Va(b.A===b.Z?1E3:300)},Va:function(a){return b.m.prototype.Va.call(this,a)?(this.dg(b.m.Th),this.Rg(b.m.fb),this.fg(C(10,-10)),this.gg(0),this.hg(1),this.Nj(0),this.Oj(1),this.Xe(130),this.ig(30),this.Og(-90),this.Pg(5),a=b.D.R,this.P(a.width/2,a.height),this.Vg(C(a.width/2,0)),this.Tg(4.5),this.Ug(0),this.Wg(4),this.Xg(2),this.Sg(b.m.tg),this.Qg(20),this.Ye(b.color(179,204,255,255)),this.jg(b.color(0,0,0,0)),this.We(b.color(179,204,255,128)),this.eg(b.color(0,
0,0,0)),this.Oh(!1),!0):!1}});b.WH.create=function(){var a=new b.WH;return a.F()?a:null};b.f7=500;
b.Uz=b.q.extend({textureAtlas:null,L7:!0,o:null,tb:"ParticleBatchNode",ctor:function(a,c){b.q.prototype.ctor.call(this);this.o={src:b.hc,U:b.gc};"string"==typeof a?this.F(a,c):a instanceof b.da&&this.ta(a,c)},ta:function(a,c){this.textureAtlas=new b.ek;this.textureAtlas.ta(a,c);this.s.length=0;b.A===b.Z&&(this.shaderProgram=b.Ld.oc(b.Ui));return!0},el:function(a,c){var d=b.Ba.nc(a);return this.ta(d,c)},F:function(a,c){var d=b.K7.lba().nc(a);return this.ta(d,c)},I:function(a,c,d){if(!a)throw"cc.ParticleBatchNode.addChild() : child should be non-null";if(!(a instanceof
b.m))throw"cc.ParticleBatchNode.addChild() : only supports cc.ParticleSystem as children";c=null==c?a.zIndex:c;d=null==d?a.tag:d;if(a.Oa()!=this.textureAtlas.texture)throw"cc.ParticleSystem.addChild() : the child is not using the same texture id";var e=a.Ch();if(0===this.s.length)this.Ve(e);else if(e.src!=this.o.src||e.U!=this.o.U){b.log("cc.ParticleSystem.addChild() : Can't add a ParticleSystem that uses a different blending function");return}c=this.XU(a,c,d);d=0;0!=c?(c=this.s[c-1],d=c.np()+c.ob):
d=0;this.GF(a,d);a.nl(this)},GF:function(a,c){var d=a.ob,e=this.textureAtlas,f=e.totalQuads;a.uG(c);f+d>e.yd&&(this.HW(f+d),e.fN(e.yd-d,d));a.np()+d!=f&&e.CO(c,c+d);e.WN(d);this.dE()},removeChild:function(a,c){if(null!=a){if(!(a instanceof b.m))throw"cc.ParticleBatchNode.removeChild(): only supports cc.ParticleSystem as children";if(-1==this.s.indexOf(a))b.log("cc.ParticleBatchNode.removeChild(): doesn't contain the sprite. Can't remove it");else{b.q.prototype.removeChild.call(this,a,c);var d=this.textureAtlas;
d.a3(a.np(),a.ob);d.fN(d.totalQuads,a.ob);a.nl(null);this.dE()}}},Mp:function(a,c){if(!a)throw"cc.ParticleBatchNode.reorderChild(): child should be non-null";if(!(a instanceof b.m))throw"cc.ParticleBatchNode.reorderChild(): only supports cc.QuadParticleSystems as children";if(-1===this.s.indexOf(a))b.log("cc.ParticleBatchNode.reorderChild(): Child doesn't belong to batch");else if(c!=a.zIndex){if(1<this.s.length){var d=this.dW(a,c);if(d.EO!=d.DO){this.s.splice(d.EO,1);this.s.splice(d.DO,0,a);d=a.np();
this.dE();for(var e=0,f=this.s,g=0;g<f.length;g++)if(f[g]==a){e=a.np();break}this.textureAtlas.CO(d,a.ob,e);a.f5()}}a.Lw(c)}},W2:function(a,c){this.removeChild(this.s[i],c)},Ng:function(a){for(var c=this.s,d=0;d<c.length;d++)c[d].nl(null);b.q.prototype.Ng.call(this,a);this.textureAtlas.YO()},XZ:function(a){a=this.textureAtlas.quads[a];a.N.i.x=a.N.i.y=a.K.i.x=a.K.i.y=a.M.i.x=a.M.i.y=a.G.i.x=a.G.i.y=0;this.textureAtlas.Ok(!0)},Y:function(){b.A!==b.Da&&0!=this.textureAtlas.totalQuads&&(b.yt(this),b.RN(this.o.src,
this.o.U),this.textureAtlas.$M())},Oa:function(){return this.textureAtlas.texture},qb:function(a){this.textureAtlas.texture=a;var c=this.o;a&&!a.Ai()&&c.src==b.hc&&c.U==b.gc&&(c.src=b.SRC_ALPHA,c.U=b.ONE_MINUS_SRC_ALPHA)},Ve:function(a,c){void 0===c?(this.o.src=a.src,this.o.U=a.U):(this.o.src=a,this.o.src=c)},Ch:function(){return{src:this.o.src,U:this.o.U}},T:function(a){b.A!==b.Da&&this.Ac&&(b.Qm(),this.grid&&this.grid.wf()&&(this.grid.Xs(),this.ez()),this.transform(a),this.Y(a),this.grid&&this.grid.wf()&&
this.grid.Us(this),b.Pm())},dE:function(){for(var a=0,c=this.s,d=0;d<c.length;d++){var e=c[d];e.uG(a);a+=e.ob}},HW:function(a){b.log("cocos2d: cc.ParticleBatchNode: resizing TextureAtlas capacity from ["+this.textureAtlas.yd+"] to ["+a+"].");this.textureAtlas.nG(a)||b.log("cc.ParticleBatchNode._increaseAtlasCapacityTo() : WARNING: Not enough memory to resize the atlas")},RX:function(a){for(var c=this.s,d=c.length,e=0;e<d;e++)if(c[e].zIndex>a)return e;return d},dW:function(a,c){for(var d=!1,e=!1,f=
0,g=0,h=0,k=this.s,m=k.length,p=0;p<m;p++){var r=k[p];if(r.zIndex>c&&!e&&(f=p,e=!0,d&&e))break;if(a==r&&(g=p,d=!0,e||(h=-1),d&&e))break}e||(f=m);return{DO:f+h,EO:g}},XU:function(a,c,d){if(!a)throw"cc.ParticleBatchNode._addChildHelper(): child should be non-null";if(a.parent)return b.log("cc.ParticleBatchNode._addChildHelper(): child already added. It can't be added again"),null;this.s||(this.s=[]);var e=this.RX(c);this.s.splice(e,0,a);a.tag=d;a.Lw(c);a.parent=this;this.qh&&(a.ba(),a.Mh());return e},
Wf:function(){this.textureAtlas.texture.Ai()||(this.o.src=b.SRC_ALPHA,this.o.U=b.ONE_MINUS_SRC_ALPHA)},oF:function(){return this.textureAtlas},IG:function(a){this.textureAtlas=a}});n=b.Uz.prototype;b.f(n,"texture",n.Oa,n.qb);b.Uz.create=function(a,c){return new b.Uz(a,c)};b.A6=function(a,c,d){this.zh=a||O(0,0,0,0);this.end=c||O(0,0,0,0);this.duration=d||0};b.z6=b.ja.extend({ctor:function(){b.Bi.sM(this)},Jy:function(){b.Bi.Jy(this)},uZ:function(){return b.Bi.vM(this)},XM:function(){return b.Bi.WM(this)},FE:function(){return!1},VZ:function(){},GE:function(){return!1},WZ:function(){},iO:function(){},TM:function(){},dF:function(){return""},F1:function(){},D1:function(){},E1:function(){},C1:function(){}});
b.Hz=b.ja.extend({kc:null,Ua:null,Zi:"",Yl:null,ctor:function(){this.Ua=new b.Hz.FR;this.Yl=C(0,0)},F:function(){if(!b.rb.Dj){this.kc=b.vb("#imeDispatcherInput");this.kc||(this.kc=b.qQ(),this.kc.setAttribute("type","text"),this.kc.setAttribute("id","imeDispatcherInput"),this.kc.resize(0,0),this.kc.cQ(0,0),this.kc.style.opacity="0",this.kc.style.fontSize="1px",this.kc.setAttribute("tabindex",2),this.kc.style.position="absolute",this.kc.style.top=0,this.kc.style.left=0,document.body.appendChild(this.kc));
var a=this;b.Ja(this.kc,"input",function(){a.$C(a.kc.value)},!1);b.Ja(this.kc,"keydown",function(c){c.keyCode===b.Fq.K4?(c.stopPropagation(),c.preventDefault()):c.keyCode==b.Fq.dN&&(a.et("\n",1),c.stopPropagation(),c.preventDefault())},!1);/msie/i.test(navigator.userAgent)&&b.Ja(this.kc,"keyup",function(c){c.keyCode==b.Fq.xM&&a.$C(a.kc.value)},!1);b.Ja(window,"mousedown",function(c){var d=c.pageY||0;a.Yl.x=c.pageX||0;a.Yl.y=d},!1)}},$C:function(a){var c,d;c=this.Zi.length<a.length?this.Zi.length:
a.length;for(d=0;d<c&&a[d]===this.Zi[d];d++);var e=this.Zi.length-d,f=a.length-d;for(c=0;c<e;c++)this.YM();for(c=0;c<f;c++)this.et(a[d+c],1);this.Zi=a},et:function(a,c){!this.Ua||!a||0>=c||this.Ua.he&&this.Ua.he.iO(a,c)},YM:function(){this.Ua&&this.Ua.he&&this.Ua.he.TM()},dF:function(){if(this.Ua&&this.Ua.he){var a=this.Ua.he.dF();return a?a:""}return""},b$:function(){if(this.Ua)for(var a=0;a<this.Ua.yg.length;a++);},Z9:function(){if(this.Ua)for(var a=0;a<this.Ua.yg.length;a++);},a$:function(){if(this.Ua)for(var a=
0;a<this.Ua.yg.length;a++);},Y9:function(){if(this.Ua)for(var a=0;a<this.Ua.yg.length;a++);},sM:function(a){a&&this.Ua&&(-1<this.Ua.yg.indexOf(a)||this.Ua.yg.splice(0,0,a))},vM:function(a){if(!this.Ua||!a||-1==this.Ua.yg.indexOf(a))return!1;if(this.Ua.he){if(!this.Ua.he.GE()||!a.FE())return!1;this.Ua.he=null;this.sK(a);return!0}if(!a.FE())return!1;this.sK(a);return!0},sK:function(a){b.rb.Dj?(this.Ua.he=a,this.Zi=a.string||"",a=prompt("please enter your word:",this.Zi),null!=a&&this.$C(a),this.et("\n",
1)):(this.Ua.he=a,this.Zi=a.string||"",this.kc.focus(),this.kc.value=this.Zi,this.IV())},IV:function(){/msie/i.test(navigator.userAgent)?(this.kc.style.left=this.Yl.x+"px",this.kc.style.top=this.Yl.y+"px"):this.kc.cQ(this.Yl.x,this.Yl.y)},WM:function(a){if(!this.Ua||!a||this.Ua.he!=a||!a.GE())return!1;this.Ua.he=null;b.Ya.focus();return!0},Jy:function(a){this.Ua&&a&&-1!=this.Ua.yg.indexOf(a)&&(this.Ua.he&&a==this.Ua.he&&(this.Ua.he=null),b.Ne(this.Ua.yg,a))},Iga:function(a){32>a?a==b.Fq.xM?this.YM():
a==b.Fq.dN&&this.et("\n",1):255>a&&this.et(String.fromCharCode(a),1)}});b.Hz.FR=b.ja.extend({he:null,yg:null,ctor:function(){this.yg=[]},baa:function(a){for(var c=0;c<this.yg.length;c++)if(this.yg[c]==a)return c;return null}});b.Bi=new b.Hz;document.body?b.Bi.F():b.Ja(window,"load",function(){b.Bi.F()},!1);b.J7=b.ja.extend({cga:function(){return!1},ega:function(){return!1},fga:function(){return!1},dga:function(){return!1},aga:function(){return!1}});
b.DA=b.$.extend({SM:null,tx:null,w8:null,Of:"",dm:"",Av:0,tb:"TextFieldTTF",ctor:function(a,c,d,e,f){this.tx=b.color(127,127,127);b.Bi.sM(this);b.$.prototype.ctor.call(this);void 0!==f?(this.e1("",c,d,e,f),a&&this.Rt(a)):void 0===e&&void 0!==d&&(this.td("",c,d),a&&this.Rt(a))},O_:function(){return this.SM},x3:function(a){this.SM=a},I_:function(){return this.Av},Eaa:function(){return this.tx},Yha:function(a){this.tx=a},e1:function(a,c,d,e,f){switch(arguments.length){case 5:return a&&this.Rt(a),this.td(this.dm,
e,f,c,d);case 3:return a&&this.Rt(a),this.td(this.dm,arguments[1],arguments[2]);default:throw"Argument must be non-nil ";}},Cc:function(a){this.Of=(a=String(a))||"";this.Of.length?b.$.prototype.Cc.call(this,this.Of):b.$.prototype.Cc.call(this,this.dm);this.Av=this.Of.length},dl:function(){return this.Of},Rt:function(a){this.dm=a||"";this.Of.length||b.$.prototype.Cc.call(this,this.dm)},t0:function(){return this.dm},Y:function(a){a=a||b.k;if(this.Of&&0<this.Of.length)b.$.prototype.Y.call(this,a);else{var c=
this.color;this.color=this.tx;b.A===b.Da&&this.hx();b.$.prototype.Y.call(this,a);this.color=c}},T:function(a){this._super(a)},uZ:function(){return b.Bi.vM(this)},XM:function(){return b.Bi.WM(this)},FE:function(){return!0},VZ:function(){},GE:function(){return!0},WZ:function(){},TM:function(){var a=this.Of.length;0!=a&&(1>=a?(this.Of="",this.Av=0,b.$.prototype.Cc.call(this,this.dm)):this.string=this.Of.substring(0,a-1))},Jy:function(){b.Bi.Jy(this)},iO:function(a){var c=a;a=c.indexOf("\n");-1<a&&(c=
c.substring(0,a));0<c.length&&(c=this.Of+c,this.Av=c.length,this.string=c);-1!=a&&this.XM()},dF:function(){return this.Of},F1:function(){},D1:function(){},E1:function(){},C1:function(){}});n=b.DA.prototype;b.f(n,"charCount",n.I_);b.f(n,"placeHolder",n.t0,n.Rt);b.DA.create=function(a,c,d,e,f){return new b.DA(a,c,d,e,f)};b.bw=b.ER;b.Qr="Arial";b.BK=!1;
b.Ec=b.ia.extend({jf:!1,pe:null,ee:null,Ur:!1,tb:"MenuItem",ctor:function(a,c){var d=b.ia.prototype;d.ctor.call(this);this.ee=this.pe=null;this.jf=this.Ur=!1;d.ml.call(this,0.5,0.5);this.pe=c||null;if(this.ee=a||null)this.jf=!0},Cda:function(){return this.Ur},Jd:function(){},ue:function(){return!1},HG:function(a,c){this.pe=c;this.ee=a},isEnabled:function(){return this.jf},Id:function(a){this.jf=a},ot:function(a,c){this.anchorY=this.anchorX=0.5;this.pe=c;this.ee=a;this.jf=!0;this.Ur=!1;return!0},rect:function(){var a=
this.ya,c=this.O,d=this.Oc;return O(a.x-c.width*d.x,a.y-c.height*d.y,c.width,c.height)},selected:function(){this.Ur=!0},Ph:function(){this.Ur=!1},Tha:function(a,c){this.pe=c;this.ee=a},Ts:function(){if(this.jf){var a=this.pe,c=this.ee;if(c)if(a&&"string"==typeof c)a[c](this);else a&&"function"==typeof c?c.call(a,this):c(this)}}});n=b.Ec.prototype;b.f(n,"enabled",n.isEnabled,n.Id);b.Ec.create=function(a,c){return new b.Ec(a,c)};
b.Cl=b.Ec.extend({Yn:null,ac:null,vX:0,ur:null,ctor:function(a,c,d){b.Ec.prototype.ctor.call(this,c,d);this.ac=this.Yn=null;this.vX=0;this.ur=null;a&&(this.gs=1,this.ur=b.color.WHITE,this.Yn=b.color(126,126,126),this.Vy(a),this.cascadeOpacity=this.cascadeColor=!0)},Q_:function(){return this.Yn},y3:function(a){this.Yn=a},d0:function(){return this.ac},Vy:function(a){a&&(this.I(a),a.anchorX=0,a.anchorY=0,this.width=a.width,this.height=a.height);this.ac&&this.removeChild(this.ac,!0);this.ac=a},Id:function(a){if(this.jf!=
a){var c=this.ac;a?c.color=this.ur:(this.ur=c.color,c.color=this.Yn)}b.Ec.prototype.Id.call(this,a)},Aa:function(a){this.ac.opacity=a},Re:function(){return this.ac.opacity},$a:function(a){this.ac.color=a},Qe:function(){return this.ac.color},dO:function(a,c,d){this.ot(c,d);this.gs=1;this.ur=b.color.WHITE;this.Yn=b.color(126,126,126);this.Vy(a);return this.cascadeOpacity=this.cascadeColor=!0},Cc:function(a){this.ac.string=a;this.width=this.ac.width;this.height=this.ac.height},dl:function(){return this.ac.string},
Ts:function(){this.jf&&(this.$t(),this.scale=this.gs,b.Ec.prototype.Ts.call(this))},selected:function(){if(this.jf){b.Ec.prototype.selected.call(this);var a=this.bF(b.hv);a?this.E4(a):this.gs=this.scale;a=b.Xc.create(0.1,1.2*this.gs);a.GG(b.hv);this.Ga(a)}},Ph:function(){if(this.jf){b.Ec.prototype.Ph.call(this);this.F4(b.hv);var a=b.Xc.create(0.1,this.gs);a.GG(b.hv);this.Ga(a)}}});n=b.Cl.prototype;b.f(n,"string",n.dl,n.Cc);b.f(n,"disabledColor",n.Q_,n.y3);b.f(n,"label",n.d0,n.Vy);
b.Cl.create=function(a,c,d){return new b.Cl(a,c,d)};b.EH=b.Cl.extend({ctor:function(a,c,d,e,f,g,h){var k;a&&0<a.length&&(k=b.Wh.create(a,c,d,e,f));b.Cl.prototype.ctor.call(this,k,g,h)},td:function(a,c,d,e,f,g,h){if(!a||0==a.length)throw"cc.MenuItemAtlasFont.initWithString(): value should be non-null and its length should be greater than 0";var k=new b.Wh;k.td(a,c,d,e,f);this.dO(k,g,h);return!0}});b.EH.create=function(a,c,d,e,f,g,h){return new b.EH(a,c,d,e,f,g,h)};
b.Bl=b.Cl.extend({Sb:null,$b:null,ctor:function(a,c,d){var e;a&&0<a.length?(this.$b=b.Qr,this.Sb=b.bw,e=b.$.create(a,this.$b,this.Sb)):(this.Sb=0,this.$b="");b.Cl.prototype.ctor.call(this,e,c,d)},td:function(a,c,d){if(!a||0==a.length)throw"Value should be non-null and its length should be greater than 0";this.$b=b.Qr;this.Sb=b.bw;a=b.$.create(a,this.$b,this.Sb);this.dO(a,c,d);return!0},Uy:function(a){this.Sb=a;this.tL()},gF:function(){return this.Sb},Ty:function(a){this.$b=a;this.tL()},fF:function(){return this.$b},
tL:function(){var a=b.$.create(this.ac.string,this.$b,this.Sb);this.Vy(a)}});b.Bl.Uy=function(a){b.bw=a};b.Bl.fontSize=function(){return b.bw};b.Bl.Ty=function(a){b.BK&&(b.Qr="");b.Qr=a;b.BK=!0};n=b.Bl.prototype;b.f(n,"fontSize",n.gF,n.Uy);b.f(n,"fontName",n.fF,n.Ty);b.Bl.fontName=function(){return b.Qr};b.Bl.create=function(a,c,d){return new b.Bl(a,c,d)};
b.wn=b.Ec.extend({ld:null,Je:null,Ce:null,ctor:function(a,c,d,e,f){b.Ec.prototype.ctor.call(this);this.Ce=this.Je=this.ld=null;if(void 0!==c){var g,h,k;void 0!==f?(g=d,k=e,h=f):void 0!==e&&"function"===typeof e?(g=d,k=e):void 0!==e&&"function"===typeof d?(h=e,k=d,g=c):void 0===d&&(g=c);this.eO(a,c,g,k,h)}},p0:function(){return this.ld},AG:function(a){this.ld!=a&&(a&&(this.I(a,0,b.$R),a.anchorX=0,a.anchorY=0),this.ld&&this.removeChild(this.ld,!0),this.ld=a,this.width=this.ld.width,this.height=this.ld.height,
this.dx(),a.au&&!a.na&&a.$d(function(a){this.width=a.width;this.height=a.height},this))},C0:function(){return this.Je},DG:function(a){this.Je!=a&&(a&&(this.I(a,0,b.NS),a.anchorX=0,a.anchorY=0),this.Je&&this.removeChild(this.Je,!0),this.Je=a,this.dx())},R_:function(){return this.Ce},xG:function(a){this.Ce!=a&&(a&&(this.I(a,0,b.YQ),a.anchorX=0,a.anchorY=0),this.Ce&&this.removeChild(this.Ce,!0),this.Ce=a,this.dx())},eO:function(a,c,d,e,f){this.ot(e,f);this.AG(a);this.DG(c);this.xG(d);if(a=this.ld)this.width=
a.width,this.height=a.height,a.au&&!a.na&&a.$d(function(a){this.width=a.width;this.height=a.height;this.cascadeOpacity=this.cascadeColor=!0},this);return this.cascadeOpacity=this.cascadeColor=!0},$a:function(a){this.ld.color=a;this.Je&&(this.Je.color=a);this.Ce&&(this.Ce.color=a)},Qe:function(){return this.ld.color},Aa:function(a){this.ld.opacity=a;this.Je&&(this.Je.opacity=a);this.Ce&&(this.Ce.opacity=a)},Re:function(){return this.ld.opacity},selected:function(){b.Ec.prototype.selected.call(this);
this.ld&&(this.Ce&&(this.Ce.visible=!1),this.Je?(this.ld.visible=!1,this.Je.visible=!0):this.ld.visible=!0)},Ph:function(){b.Ec.prototype.Ph.call(this);this.ld&&(this.ld.visible=!0,this.Je&&(this.Je.visible=!1),this.Ce&&(this.Ce.visible=!1))},Id:function(a){this.jf!=a&&(b.Ec.prototype.Id.call(this,a),this.dx())},dx:function(){var a=this.ld,c=this.Je,d=this.Ce;this.jf?(a&&(a.visible=!0),c&&(c.visible=!1),d&&(d.visible=!1)):d?(a&&(a.visible=!1),c&&(c.visible=!1),d&&(d.visible=!0)):(a&&(a.visible=!0),
c&&(c.visible=!1))}});n=b.wn.prototype;b.f(n,"normalImage",n.p0,n.AG);b.f(n,"selectedImage",n.C0,n.DG);b.f(n,"disabledImage",n.R_,n.xG);b.wn.create=function(a,c,d,e,f){return new b.wn(a,c,d,e,f||void 0)};
b.Xj=b.wn.extend({ctor:function(a,c,d,e,f){var g=null,h=null,k=null,m=null,p=null;void 0===a?b.wn.prototype.ctor.call(this):(g=b.Q.create(a),c&&(h=b.Q.create(c)),void 0===e?m=d:void 0===f?(m=d,p=e):f&&(k=b.Q.create(d),m=e,p=f),b.wn.prototype.ctor.call(this,g,h,k,m,p))},Jia:function(a){this.AG(b.Q.create(a))},fja:function(a){this.DG(b.Q.create(a))},hia:function(a){this.xG(b.Q.create(a))},fda:function(a,c,d,e,f){var g=null,h=null,k=null;a&&(g=b.Q.create(a));c&&(h=b.Q.create(c));d&&(k=b.Q.create(d));
return this.eO(g,h,k,e,f)}});b.Xj.create=function(a,c,d,e,f){return new b.Xj(a,c,d,e,f)};
b.Nz=b.Ec.extend({gd:null,Eg:0,Vd:null,ge:null,ctor:function(){var a=arguments.length,c,d;"function"===typeof arguments[a-2]?(c=arguments[a-2],d=arguments[a-1],a-=2):"function"===typeof arguments[a-1]&&(c=arguments[a-1],a-=1);b.Ec.prototype.ctor.call(this,c,d);this.Eg=0;this.gd=[];this.Vd=0;this.ge=b.color.WHITE;if(0<a){c=this.gd;for(d=c.length=0;d<a;d++)arguments[d]&&c.push(arguments[d]);this.Eg=b.IA;this.Ut(0);this.Pp(!0);this.Qp(!0)}},Re:function(){return this.Vd},Aa:function(a){this.Vd=a;if(this.gd&&
0<this.gd.length)for(var c=0;c<this.gd.length;c++)this.gd[c].opacity=a;this.ge.a=a},Qe:function(){var a=this.ge;return b.color(a.r,a.g,a.b,a.a)},$a:function(a){var c=this.ge;c.r=a.r;c.g=a.g;c.b=a.b;if(this.gd&&0<this.gd.length)for(c=0;c<this.gd.length;c++)this.gd[c].$a(a);void 0===a.a||a.Ss||this.Aa(a.a)},D0:function(){return this.Eg},Ut:function(a){if(a!=this.Eg){this.Eg=a;(a=this.Dh(b.hH))&&a.lG(!1);a=this.gd[this.Eg];this.I(a,0,b.hH);var c=a.width,d=a.height;this.width=c;this.height=d;a.P(c/2,
d/2)}},vca:function(){return this.gd},lja:function(a){this.gd=a},cO:function(a){var c=a.length;"function"===typeof a[a.length-2]?(this.ot(a[a.length-2],a[a.length-1]),c-=2):"function"===typeof a[a.length-1]?(this.ot(a[a.length-1],null),c-=1):this.ot(null,null);for(var d=this.gd,e=d.length=0;e<c;e++)a[e]&&d.push(a[e]);this.Eg=b.IA;this.Ut(0);return this.cascadeOpacity=this.cascadeColor=!0},a9:function(a){this.gd.push(a)},Ts:function(){this.jf&&this.Ut((this.Eg+1)%this.gd.length);b.Ec.prototype.Ts.call(this)},
selected:function(){b.Ec.prototype.selected.call(this);this.gd[this.Eg].selected()},Ph:function(){b.Ec.prototype.Ph.call(this);this.gd[this.Eg].Ph()},Id:function(a){if(this.jf!=a){b.Ec.prototype.Id.call(this,a);var c=this.gd;if(c&&0<c.length)for(var d=0;d<c.length;d++)c[d].enabled=a}},Hha:function(){return this.gd[this.Eg]},ba:function(){b.q.prototype.ba.call(this);this.Ut(this.Eg)}});n=b.Nz.prototype;b.f(n,"selectedIndex",n.D0,n.Ut);
b.Nz.create=function(){0<arguments.length&&null==arguments[arguments.length-1]&&b.log("parameters should not be ending with null in Javascript");var a=new b.Nz;a.cO(Array.prototype.slice.apply(arguments));return a};b.Iq=0;b.Hq=1;b.S6=-128;b.lH=5;
b.Wj=b.zf.extend({enabled:!1,ge:null,Vd:0,Sc:null,Yd:-1,bM:null,tb:"Menu",ctor:function(a){b.zf.prototype.ctor.call(this);this.ge=b.color.WHITE;this.enabled=!1;this.Vd=255;this.Sc=null;this.Yd=-1;this.bM=b.pa.create({event:b.pa.ar,Xp:!0,Tm:this.pX,Et:this.tX,Dt:this.rX,Ct:this.qX});0<arguments.length&&null==arguments[arguments.length-1]&&b.log("parameters should not be ending with null in Javascript");var c=arguments.length,d;if(0==c)d=[];else if(1==c)d=a instanceof Array?a:[a];else if(1<c){d=[];
for(var e=0;e<c;e++)arguments[e]&&d.push(arguments[e])}this.ZN(d)},ba:function(){var a=this.bM;a.of||b.ra.addListener(a,this);b.q.prototype.ba.call(this)},Qe:function(){var a=this.ge;return b.color(a.r,a.g,a.b,a.a)},$a:function(a){var c=this.ge;c.r=a.r;c.g=a.g;c.b=a.b;if((c=this.s)&&0<c.length)for(var d=0;d<c.length;d++)c[d].$a(a);void 0===a.a||a.Ss||this.Aa(a.a)},Re:function(){return this.Vd},Aa:function(a){this.Vd=a;var c=this.s;if(c&&0<c.length)for(var d=0;d<c.length;d++)c[d].Aa(a);this.ge.a=a},
isEnabled:function(){return this.enabled},Id:function(a){this.enabled=a},cO:function(a){var c=[];if(a)for(var d=0;d<a.length;d++)a[d]&&c.push(a[d]);return this.ZN(c)},ZN:function(a){if(b.zf.prototype.F.call(this)){this.enabled=!0;var c=b.ju;this.P(c.width/2,c.height/2);this.be(c);this.ml(0.5,0.5);this.Tx(!0);if(a)for(c=0;c<a.length;c++)this.I(a[c],c);this.Sc=null;this.Yd=b.Iq;return this.cascadeOpacity=this.cascadeColor=!0}return!1},I:function(a,c,d){if(!(a instanceof b.Ec))throw"cc.Menu.addChild() : Menu only supports MenuItem objects as children";
b.Od.prototype.I.call(this,a,c,d)},f9:function(){this.hZ(b.lH)},hZ:function(a){var c=-a,d=this.s,e,f,g,h;if(d&&0<d.length){f=0;for(e=d.length;f<e;f++)c+=d[f].height*d[f].scaleY+a;var k=c/2;f=0;for(e=d.length;f<e;f++)h=d[f],g=h.height,c=h.scaleY,h.P(0,k-g*c/2),k-=g*c+a}},c9:function(){this.gZ(b.lH)},gZ:function(a){var c=-a,d=this.s,e,f,g,h;if(d&&0<d.length){e=0;for(f=d.length;e<f;e++)c+=d[e].width*d[e].scaleX+a;var k=-c/2;e=0;for(f=d.length;e<f;e++)h=d[e],c=h.scaleX,g=d[e].width,h.P(k+g*c/2,0),k+=
g*c+a}},d9:function(){0<arguments.length&&null==arguments[arguments.length-1]&&b.log("parameters should not be ending with null in Javascript");for(var a=[],c=0;c<arguments.length;c++)a.push(arguments[c]);var d=-5,e=0,f=0,g=0,h,k,m,p=this.s;if(p&&0<p.length)for(c=0,m=p.length;c<m;c++)e>=a.length||!(h=a[e])||(k=p[c].height,f=f>=k||isNaN(k)?f:k,++g,g>=h&&(d+=f+5,f=g=0,++e));var r=b.D.R,s=h=f=e=0,u=0,d=d/2;if(p&&0<p.length)for(c=0,m=p.length;c<m;c++){var t=p[c];0==h&&(h=a[e],u=s=r.width/(1+h));k=t.Dk();
f=f>=k||isNaN(k)?f:k;t.P(u-r.width/2,d-k/2);u+=s;++g;g>=h&&(d-=f+5,f=h=g=0,++e)}},e9:function(){0<arguments.length&&null==arguments[arguments.length-1]&&b.log("parameters should not be ending with null in Javascript");var a=[],c;for(c=0;c<arguments.length;c++)a.push(arguments[c]);var d=[],e=[],f=-10,g=-5,h=0,k=0,m=0,p,r,s,u,t=this.s;if(t&&0<t.length)for(c=0,s=t.length;c<s;c++)(r=t[c],h>=a.length||!(p=a[h]))||(u=r.width,k=k>=u||isNaN(u)?k:u,g+=r.height+5,++m,m>=p&&(d.push(k),e.push(g),f+=k+10,k=m=
0,g=-5,++h));g=b.D.R;p=k=h=0;var f=-f/2,v=0;if(t&&0<t.length)for(c=0,s=t.length;c<s;c++)r=t[c],0==p&&(p=a[h],v=e[h]),u=r.fh(),k=k>=u||isNaN(u)?k:u,r.P(f+d[h]/2,v-g.height/2),v-=r.height+10,++m,m>=p&&(f+=k+5,k=p=m=0,++h)},removeChild:function(a,c){null!=a&&(a instanceof b.Ec?(this.Sc==a&&(this.Sc=null),b.q.prototype.removeChild.call(this,a,c)):b.log("cc.Menu.removeChild():Menu only supports MenuItem objects as children"))},pX:function(a,c){var d=c.Pc;if(d.Yd!=b.Iq||!d.Ac||!d.enabled)return!1;for(var e=
d.parent;null!=e;e=e.parent)if(!e.Ac)return!1;d.Sc=d.RK(a);return d.Sc?(d.Yd=b.Hq,d.Sc.selected(),!0):!1},rX:function(a,c){var d=c.Pc;d.Yd!==b.Hq?b.log("cc.Menu.onTouchEnded(): invalid state"):(d.Sc&&(d.Sc.Ph(),d.Sc.Ts()),d.Yd=b.Iq)},qX:function(a,c){var d=c.Pc;d.Yd!==b.Hq?b.log("cc.Menu.onTouchCancelled(): invalid state"):(this.Sc&&d.Sc.Ph(),d.Yd=b.Iq)},tX:function(a,c){var d=c.Pc;if(d.Yd!==b.Hq)b.log("cc.Menu.onTouchMoved(): invalid state");else{var e=d.RK(a);e!=d.Sc&&(d.Sc&&d.Sc.Ph(),d.Sc=e,d.Sc&&
d.Sc.selected())}},ub:function(){this.Yd==b.Hq&&(this.Sc&&(this.Sc.Ph(),this.Sc=null),this.Yd=b.Iq);b.q.prototype.ub.call(this)},Jd:function(){},ue:function(){return!1},RK:function(a){a=a.ht();var c=this.s,d;if(c&&0<c.length)for(var e=0;e<c.length;e++)if(d=c[e],d.Ac&&d.isEnabled()){var f=d.OE(a),g=d.rect();g.x=0;g.y=0;if(b.UO(g,f))return d}return null}});n=b.Wj.prototype;
b.Wj.create=function(a){var c=arguments.length;0<c&&null==arguments[c-1]&&b.log("parameters should not be ending with null in Javascript");return 0==c?new b.Wj:1==c?new b.Wj(a):new b.Wj(Array.prototype.slice.call(arguments,0))};b.z7=0;b.v7=1;b.y7=2;b.w7=3;b.x7=4;b.u7=5;b.kka=function(a,c,d){var e=2;if(e+1>c)return!1;a=new b.FQ(a);a.Wy(e);d.type=a.S();e+=10;if(e+4+1>c)return!1;a.Wy(e);d.width=a.Q2();d.height=a.P2();d.pixelDepth=a.S();if(e+5+1>c)return!1;c=a.S();d.iN=0;c&32&&(d.iN=1);return!0};b.lka=function(a,c,d){var e,f;e=0|d.pixelDepth/2;f=d.height*d.width*e;if(18+f>c)return!1;d.vf=b.lv(a,18,18+f);if(3<=e)for(a=0;a<f;a+=e)c=d.vf[a],d.vf[a]=d.vf[a+2],d.vf[a+2]=c;return!0};
b.nka=function(a){var c,d;if(8!==a.pixelDepth){var e=a.pixelDepth/8,f=new Uint8Array(a.height*a.width);if(null!==f){for(d=c=0;d<a.width*a.height;c+=e,d++)f[d]=0.3*a.vf[c]+0.59*a.vf[c+1]+0.11*a.vf[c+2];a.pixelDepth=8;a.type=3;a.vf=f}}};b.ika=function(a){a&&(a.vf=null)};
b.mka=function(a,c,d){var e,f,g,h=0,k=0,m=0,p=[],r=0,s=18;e=d.pixelDepth/8;f=d.height*d.width;for(g=0;g<f;g++){if(0!=r)r--,k=0!=m;else{if(s+1>c)break;r=a[s];s+=1;(m=r&128)&&(r-=128);k=0}if(!k){if(s+e>c)break;p=b.lv(a,s,s+e);s+=e;3<=e&&(k=p[0],p[0]=p[2],p[2]=k)}for(k=0;k<e;k++)d.vf[h+k]=p[k];h+=e}return!0};b.jka=function(a){for(var c=a.pixelDepth/8*a.width,d=0;d<a.height/2;d++){var e=b.lv(a.vf,d*c,d*c+c);b.iJ(b.lv(a.vf,(a.height-(d+1))*c,c),a.vf,d*c);b.iJ(e,a.vf,(a.height-(d+1))*c)}a.iN=0};
b.lv=function(a,c,d){return a instanceof Array?a.slice(c,d):a.subarray(c,d)};b.iJ=function(a,c,d){for(var e=0;e<a.length;e++)c[d+e]=a[e]};
b.FQ=b.ja.extend({Gn:null,la:0,ctor:function(a){this.Gn=a},Qha:function(a){this.Gn=a;this.la=0},raa:function(){return this.Gn},pV:function(a){if(!(this.la+Math.ceil(a/8)<this.Wn.length))throw Error("Index out of bound");},EV:function(a,c){var d=a+c+1,e=d>>3;this.pV(d);var d=Math.pow(2,c-1)-1,f=this.cD(a+c,1,e),g=this.cD(a,c,e),h=0,k=2,m=0;do for(var p=this.Ew(++m,e),r=a%8||8,s=1<<r;s>>=1;)p&s&&(h+=1/k),k*=2;while(a-=r);this.la+=e;return g==(d<<1)+1?h?NaN:f?-Infinity:Infinity:(1+-2*f)*(g||h?g?Math.pow(2,
g-d)*(1+h):Math.pow(2,-d+1)*h:0)},Ew:function(a,c){return this.Wn[this.la+c-a-1]},Iv:function(a,c){var d=this.cD(0,a,a/8),e=Math.pow(2,a);this.la+=a/8;return c&&d>=e/2?d-e:d},BY:function(a,c){for(++c;--c;a=1073741824==((a%=2147483648)&1073741824)?2*a:2*(a-1073741824)+2147483648);return a},cD:function(a,c,d){var e=(a+c)%8,f=a%8,g=d-(a>>3)-1;a=d+(-(a+c)>>3);var h=g-a;c=this.Ew(g,d)>>f&(1<<(h?8-f:c))-1;for(h&&e&&(c+=(this.Ew(a++,d)&(1<<e)-1)<<(h--<<3)-f);h;)c+=this.BY(this.Ew(a++,d),(h--<<3)-f);return c},
Rga:function(){return this.Iv(32,!0)},P2:function(){return this.Iv(32,!1)},Tga:function(){return this.EV(23,8)},Sga:function(){return this.Iv(16,!0)},Q2:function(){return this.Iv(16,!1)},S:function(){var a=this.Wn[this.la];this.la+=1;return a},Oga:function(a,c){return this.Gn instanceof Array?this.Gn.slice(a,c):this.Gn.subarray(a,c)},Wy:function(a){this.la=a},vN:function(){return this.la}});b.$u=0;b.Yu=1;b.Zu=2;
b.tA=b.ia.extend({Lb:null,XF:null,Ep:null,$c:null,Jb:null,vj:null,tb:"TMXTiledMap",ctor:function(a,c){b.q.prototype.ctor.call(this);this.$c=H(0,0);this.Jb=H(0,0);void 0!==c?this.EF(a,c):void 0!==a&&this.DF(a)},iF:function(){return H(this.$c.width,this.$c.height)},vP:function(a){this.$c.width=a.width;this.$c.height=a.height},dC:function(){return this.$c.width},wD:function(a){this.$c.width=a},cC:function(){return this.$c.height},vD:function(a){this.$c.height=a},rp:function(){return H(this.Jb.width,this.Jb.height)},
KP:function(a){this.Jb.width=a.width;this.Jb.height=a.height},Pr:function(){return this.Jb.width},rs:function(a){this.Jb.width=a},Or:function(){return this.Jb.height},qs:function(a){this.Jb.height=a},xba:function(){return this.XF},Eia:function(a){this.XF=a},uN:function(){return this.Ep},wP:function(a){this.Ep=a},Hx:function(){return this.Lb},Xy:function(a){this.Lb=a},DF:function(a){if(!a||0==a.length)throw"cc.TMXTiledMap.initWithTMXFile(): tmxFile should be non-null or non-empty string.";this.height=
this.width=0;a=b.Yq.create(a);if(!a)return!1;var c=a.pm;c&&0!==c.length||b.log("cc.TMXTiledMap.initWithTMXFile(): Map not found. Please check the filename.");this.tJ(a);return!0},EF:function(a,c){this.height=this.width=0;var d=b.Yq.create(a,c),e=d.pm;e&&0!==e.length||b.log("cc.TMXTiledMap.initWithXML(): Map not found. Please check the filename.");this.tJ(d);return!0},tJ:function(a){this.$c=a.iF();this.Jb=a.rp();this.XF=a.orientation;this.Ep=a.uN();this.Lb=a.Lb;this.vj=a.vj;var c=0,d=a.ke;if(d)for(var e=
null,f=0,g=d.length;f<g;f++)(e=d[f])&&e.visible&&(e=this.zX(e,a),this.I(e,c,c),this.width=Math.max(this.width,e.width),this.height=Math.max(this.height,e.height),c++)},g9:function(){for(var a=[],c=this.s,d=0,e=c.length;d<e;d++){var f=c[d];f&&f instanceof b.Xq&&a.push(f)}return a},nba:function(a){if(!a||0===a.length)throw"cc.TMXTiledMap.getLayer(): layerName should be non-null or non-empty string.";for(var c=this.s,d=0;d<c.length;d++){var e=c[d];if(e&&e.ry==a)return e}return null},Gba:function(a){if(!a||
0===a.length)throw"cc.TMXTiledMap.getObjectGroup(): groupName should be non-null or non-empty string.";if(this.Ep)for(var c=0;c<this.Ep.length;c++){var d=this.Ep[c];if(d&&d.mt==a)return d}return null},kF:function(a){return this.Lb[a.toString()]},Kga:function(a){return this.vj[a]},zX:function(a,c){var d=this.NY(a,c),d=b.Xq.create(d,a,c);a.IO=!1;d.r4();return d},NY:function(a,c){var d=a.sa,e=c.pm;if(e)for(var f=e.length-1;0<=f;f--){var g=e[f];if(g)for(var h=0;h<d.height;h++)for(var k=0;k<d.width;k++){var m=
a.Ke[k+d.width*h];if(0!=m&&(m&b.uA)>>>0>=g.Jm)return g}}b.log("cocos2d: Warning: TMX Layer "+a.name+" has no tiles");return null}});n=b.tA.prototype;b.f(n,"mapWidth",n.dC,n.wD);b.f(n,"mapHeight",n.cC,n.vD);b.f(n,"tileWidth",n.Pr,n.rs);b.f(n,"tileHeight",n.Or,n.qs);b.tA.create=function(a,c){return new b.tA(a,c)};b.ST=0;b.B7=1;b.A7=2;b.D7=3;b.C7=4;b.E7=5;b.Zq=2147483648;b.$q=1073741824;b.pI=536870912;b.qI=(b.Zq|b.$q|b.pI)>>>0;b.uA=~b.qI>>>0;b.Hl=b.ja.extend({Lb:null,name:"",sa:null,Ke:null,visible:null,Vd:null,IO:!0,$l:1E5,Zl:0,offset:null,ctor:function(){this.Lb=[];this.name="";this.sa=null;this.Ke=[];this.visible=!0;this.Vd=0;this.IO=!0;this.$l=1E5;this.Zl=0;this.offset=C(0,0)},Hx:function(){return this.Lb},Xy:function(a){this.Lb=a}});
b.RT=b.ja.extend({name:"",Jm:0,Jb:null,Yt:0,margin:0,RP:"",Ux:null,ctor:function(){this.Jb=H(0,0);this.Ux=H(0,0)},Mt:function(a){var c=O(0,0,0,0);c.width=this.Jb.width;c.height=this.Jb.height;a&=b.uA;a-=parseInt(this.Jm,10);var d=parseInt((this.Ux.width-2*this.margin+this.Yt)/(this.Jb.width+this.Yt),10);c.x=parseInt(a%d*(this.Jb.width+this.Yt)+this.margin,10);c.y=parseInt(parseInt(a/d,10)*(this.Jb.height+this.Yt)+this.margin,10);return c}});
b.Yq=b.Su.extend({Lb:null,orientation:null,parentElement:null,Fy:null,qy:0,PG:!1,Zp:null,PE:null,tw:null,$c:null,Jb:null,ke:null,pm:null,vj:null,Hw:"",BJ:0,ctor:function(a,c){b.Su.prototype.ctor.apply(this);this.$c=H(0,0);this.Jb=H(0,0);this.ke=[];this.pm=[];this.tw=[];this.Lb=[];this.vj={};this.BJ=0;void 0!==c?this.EF(a,c):void 0!==a&&this.DF(a)},Mba:function(){return this.orientation},Oia:function(a){this.orientation=a},iF:function(){return H(this.$c.width,this.$c.height)},vP:function(a){this.$c.width=
a.width;this.$c.height=a.height},dC:function(){return this.$c.width},wD:function(a){this.$c.width=a},cC:function(){return this.$c.height},vD:function(a){this.$c.height=a},rp:function(){return H(this.Jb.width,this.Jb.height)},KP:function(a){this.Jb.width=a.width;this.Jb.height=a.height},Pr:function(){return this.Jb.width},rs:function(a){this.Jb.width=a},Or:function(){return this.Jb.height},qs:function(a){this.Jb.height=a},sba:function(){return this.ke},J3:function(a){this.ke.push(a)},Eca:function(){return this.pm},
i4:function(a){this.pm.push(a)},uN:function(){return this.tw},wP:function(a){this.tw.push(a)},Rba:function(){return this.parentElement},Tia:function(a){this.parentElement=a},Sba:function(){return this.Fy},Uia:function(a){this.Fy=a},oba:function(){return this.qy},xia:function(a){this.qy=a},uca:function(){return this.PG},kja:function(a){this.PG=a},Hx:function(){return this.Lb},Xy:function(a){this.Lb=a},DF:function(a){this.JK(a,null);return this.eG(a)},EF:function(a,c){this.JK(null,c);return this.x2(a)},
eG:function(a,c){var d=(c=c||!1)?a:b.V.Fd(a);if(!d)throw"Please load the resource first : "+a;var e,f,d=this.KC(d).documentElement;e=d.getAttribute("version");f=d.getAttribute("orientation");if("map"==d.nodeName&&("1.0"!=e&&null!==e&&b.log("cocos2d: TMXFormat: Unsupported TMX version:"+e),"orthogonal"==f?this.orientation=b.$u:"isometric"==f?this.orientation=b.Zu:"hexagonal"==f?this.orientation=b.Yu:null!==f&&b.log("cocos2d: TMXFomat: Unsupported orientation:"+f),e=H(0,0),e.width=parseFloat(d.getAttribute("width")),
e.height=parseFloat(d.getAttribute("height")),this.vP(e),e=H(0,0),e.width=parseFloat(d.getAttribute("tilewidth")),e.height=parseFloat(d.getAttribute("tileheight")),this.KP(e),f=d.querySelectorAll("map \x3e properties \x3e  property"))){var g={};for(e=0;e<f.length;e++)g[f[e].getAttribute("name")]=f[e].getAttribute("value");this.Lb=g}g=d.getElementsByTagName("tileset");"map"!==d.nodeName&&(g=[],g.push(d));for(e=0;e<g.length;e++){f=g[e];var h=f.getAttribute("source");if(h)f=c?b.path.join(this.Hw,h):
b.path.Yo(a,h),this.eG(f);else{h=new b.RT;h.name=f.getAttribute("name")||"";h.Jm=parseInt(f.getAttribute("firstgid"))||0;h.Yt=parseInt(f.getAttribute("spacing"))||0;h.margin=parseInt(f.getAttribute("margin"))||0;var k=H(0,0);k.width=parseFloat(f.getAttribute("tilewidth"));k.height=parseFloat(f.getAttribute("tileheight"));h.Jb=k;var k=f.getElementsByTagName("image")[0].getAttribute("source"),m=-1;this.Zp&&(m=this.Zp.lastIndexOf("/"));h.RP=-1!==m?this.Zp.substr(0,m+1)+k:this.Hw+(this.Hw?"/":"")+k;this.i4(h);
if(k=f.getElementsByTagName("tile"))for(m=0;m<k.length;m++){f=k[m];this.Fy=parseInt(h.Jm)+parseInt(f.getAttribute("id")||0);var p=f.querySelectorAll("properties \x3e property");if(p){var r={};for(f=0;f<p.length;f++){var s=p[f].getAttribute("name");r[s]=p[f].getAttribute("value")}this.vj[this.Fy]=r}}}}if(g=d.getElementsByTagName("layer"))for(e=0;e<g.length;e++){k=g[e];m=k.getElementsByTagName("data")[0];h=new b.Hl;h.name=k.getAttribute("name");f=H(0,0);f.width=parseFloat(k.getAttribute("width"));f.height=
parseFloat(k.getAttribute("height"));h.sa=f;f=k.getAttribute("visible");h.visible="0"!=f;f=k.getAttribute("opacity")||1;h.Vd=f?parseInt(255*parseFloat(f)):255;h.offset=C(parseFloat(k.getAttribute("x"))||0,parseFloat(k.getAttribute("y"))||0);p="";for(f=0;f<m.childNodes.length;f++)p+=m.childNodes[f].nodeValue;p=p.trim();f=m.getAttribute("compression");r=m.getAttribute("encoding");if(f&&"gzip"!==f&&"zlib"!==f)return b.log("cc.TMXMapInfo.parseXMLFile(): unsupported compression method"),null;switch(f){case "gzip":h.Ke=
b.hQ(p,4);break;case "zlib":f=new Zlib.sn(b.ka.tl.OM(p,1));h.Ke=b.V4(f.PM());break;case null:case "":if("base64"==r)h.Ke=b.ka.tl.OM(p,4);else if("csv"===r)for(h.Ke=[],f=p.split(","),m=0;m<f.length;m++)h.Ke.push(parseInt(f[m]));else for(f=m.getElementsByTagName("tile"),h.Ke=[],m=0;m<f.length;m++)h.Ke.push(parseInt(f[m].getAttribute("gid")));break;default:this.qy==b.Hl.YG&&b.log("cc.TMXMapInfo.parseXMLFile(): Only base64 and/or gzip/zlib maps are supported")}if(k=k.querySelectorAll("properties \x3e property")){m=
{};for(f=0;f<k.length;f++)m[k[f].getAttribute("name")]=k[f].getAttribute("value");h.Lb=m}this.J3(h)}if(g=d.getElementsByTagName("objectgroup"))for(e=0;e<g.length;e++){k=g[e];h=new b.QT;h.mt=k.getAttribute("name");h.U3(C(parseFloat(k.getAttribute("x"))*this.rp().width||0,parseFloat(k.getAttribute("y"))*this.rp().height||0));if(m=k.querySelectorAll("objectgroup \x3e properties \x3e property"))for(f=0;f<m.length;f++)p={},p[m[f].getAttribute("name")]=m[f].getAttribute("value"),h.Lb=p;if(k=k.querySelectorAll("object"))for(f=
0;f<k.length;f++){p=k[f];m={};m.name=p.getAttribute("name")||"";m.type=p.getAttribute("type")||"";m.x=parseInt(p.getAttribute("x")||0)+h.zo.x;r=parseInt(p.getAttribute("y")||0)+h.zo.y;m.width=parseInt(p.getAttribute("width"))||0;m.height=parseInt(p.getAttribute("height"))||0;m.y=parseInt(this.iF().height*this.rp().height)-r-m.height;if(r=p.querySelectorAll("properties \x3e property"))for(s=0;s<r.length;s++)m[r[s].getAttribute("name")]=r[s].getAttribute("value");(r=p.querySelectorAll("polygon"))&&
0<r.length&&(r=r[0].getAttribute("points"))&&(m.polygonPoints=this.hL(r));(p=p.querySelectorAll("polyline"))&&0<p.length&&(p=p[0].getAttribute("points"))&&(m.polylinePoints=this.hL(p));h.P3(m)}this.wP(h)}return d},hL:function(a){if(!a)return null;var c=[];a=a.split(" ");for(var d=0;d<a.length;d++){var e=a[d].split(",");c.push({x:e[0],y:e[1]})}return c},x2:function(a){return this.eG(a,!0)},Bca:function(){return this.vj},sja:function(a){this.vj.push(a)},Haa:function(){return this.PE},cia:function(a){this.PE=
a},wca:function(){return this.Zp},nja:function(a){this.Zp=a},JK:function(a,c){this.pm.length=0;this.ke.length=0;this.Zp=a;c&&(this.Hw=c);this.tw.length=0;this.Lb.length=0;this.vj.length=0;this.PE="";this.PG=!1;this.qy=b.Hl.YG;this.parentElement=b.ST;this.BJ=0}});n=b.Yq.prototype;b.f(n,"mapWidth",n.dC,n.wD);b.f(n,"mapHeight",n.cC,n.vD);b.f(n,"tileWidth",n.Pr,n.rs);b.f(n,"tileHeight",n.Or,n.qs);b.Yq.create=function(a,c){return new b.Yq(a,c)};b.V.Lj(["tmx","tsx"],b.fM);b.Hl.YG=1;b.Hl.y5=2;b.Hl.z5=4;
b.Hl.A5=8;b.QT=b.ja.extend({Lb:null,mt:"",zo:null,yo:null,ctor:function(){this.mt="";this.zo=C(0,0);this.Lb=[];this.yo=[]},Wba:function(){return this.zo},U3:function(a){this.zo.x=a.x;this.zo.y=a.y},Hx:function(){return this.Lb},Xy:function(a){this.Lb.push(a)},iba:function(){return this.mt.toString()},uia:function(a){this.mt=a},Lga:function(a){return this.Lb[a]},$fa:function(a){if(this.yo&&0<this.yo.length)for(var c=this.yo,d=0,e=c.length;d<e;d++){var f=c[d].name;if(f&&f==a)return c[d]}return null},Hba:function(){return this.yo},
P3:function(a){this.yo.push(a)}});b.Xq=b.ye.extend({Md:null,lg:null,zp:null,Lb:null,ry:"",sa:null,xc:null,Vd:255,$l:null,Zl:null,mE:null,gE:null,a8:null,ph:null,Qd:null,dh:null,de:null,Be:null,rB:null,Uw:null,Vw:null,Tk:0,TD:0,bL:1E7,tb:"TMXLayer",ctor:function(a,c,d){b.ye.prototype.ctor.call(this);this.Ad=[];this.sa=H(0,0);this.xc=H(0,0);if(b.A===b.Da){var e=b.Ya,f=b.Ob("canvas");f.width=e.width;f.height=e.height;this.de=f;this.Be=this.de.getContext("2d");var g=new b.da;g.sd(f);g.Nb();this.rB=g;this.width=e.width;this.height=e.height;
this.Wi=this}void 0!==d&&this.g1(a,c,d)},be:function(a,c){var d=this.O;b.q.prototype.be.call(this,a,c);if(b.A===b.Da){var e=this.de,f=b.pb();e.width=0|1.5*d.width*f;e.height=0|1.5*d.height*f;this.Be.translate(0,e.height);d=this.rB.O;d.width=e.width;d.height=e.height;d=e.width*e.height;if(d>this.bL){this.Uw||(this.Uw=[]);this.Vw||(this.Vw=[]);this.Tk=Math.ceil(d/this.bL);d=this.Uw;for(f=0;f<this.Tk;f++){d[f]||(d[f]=document.createElement("canvas"),this.Vw[f]=d[f].getContext("2d"));var g=d[f];g.width=
this.TD=Math.round(e.width/this.Tk);g.height=e.height}for(f=this.Tk;f<d.length;f++)g.width=0,g.height=0}else this.Tk=0}},Oa:null,Nr:function(){return this.rB},T:null,um:function(a){var c=a||b.k;if(this.Ac){c.save();this.transform(a);var d,e=this.s;if(this.xg){var f=b.view;f.NL();var g=this.Be,h=this.de;g.clearRect(0,0,h.width,-h.height);g.save();g.translate(this.ib.x,-this.ib.y);if(e)for(this.Uc(),d=0;d<e.length;d++)e[d]&&e[d].T(g);g.restore();if(0<this.Tk)for(e=this.TD,g=h.height,d=0;d<this.Tk;d++)this.Vw[d].drawImage(h,
d*e,0,e,g,0,0,e,g);f.AL();this.xg=!1}this.Y(a);c.restore()}},Y:null,Rl:function(a){a=a||b.k;var c=0|-this.ib.x,d=0|-this.ib.y,e=b.view,f=this.de;if(f){var g=this.Tk,h=f.height*e.Ra;if(0<g)for(var f=this.Uw,k=0;k<g;k++){var m=f[k];a.drawImage(f[k],0,0,m.width,m.height,c+k*this.TD,-(d+h),m.width*e.qa,h)}else a.drawImage(f,0,0,f.width,f.height,c,-(d+h),f.width*e.qa,h)}},rba:function(){return H(this.sa.width,this.sa.height)},Aia:function(a){this.sa.width=a.width;this.sa.height=a.height},lW:function(){return this.sa.width},
eY:function(a){this.sa.width=a},kW:function(){return this.sa.height},dY:function(a){this.sa.height=a},yba:function(){return H(this.xc.width,this.xc.height)},Fia:function(a){this.xc.width=a.width;this.xc.height=a.height},Pr:function(){return this.xc.width},rs:function(a){this.xc.width=a},Or:function(){return this.xc.height},qs:function(a){this.xc.height=a},Cca:function(){return this.Md},tja:function(a){this.Md=a},Dca:function(){return this.lg},uja:function(a){this.lg=a},qba:function(){return this.zp},
zia:function(a){this.zp=a},Hx:function(){return this.Lb},Xy:function(a){this.Lb=a},g1:function(a,c,d){var e=c.sa,f=0.35*parseInt(e.width*e.height)+1,g;a&&(g=b.Ba.nc(a.RP));return this.ta(g,f)?(this.ry=c.name,this.sa=e,this.Md=c.Ke,this.$l=c.$l,this.Zl=c.Zl,this.Vd=c.Vd,this.Lb=c.Lb,this.dh=b.D.dh,this.lg=a,this.xc=d.rp(),this.zp=d.orientation,a=this.hV(c.offset),this.P(b.gG(a)),this.Qd=[],this.be(b.QP(H(this.sa.width*this.xc.width,this.sa.height*this.xc.height))),this.gE=!1,this.mE=0,!0):!1},$ga:function(){this.Md&&
(this.Md=null);this.Qd&&(this.Qd=null)},Aca:function(a,c){if(!a)throw"cc.TMXLayer.getTileAt(): pos should be non-null";void 0!==c&&(a=C(a,c));if(a.x>=this.sa.width||a.y>=this.sa.height||0>a.x||0>a.y)throw"cc.TMXLayer.getTileAt(): invalid position";if(!this.Md||!this.Qd)return b.log("cc.TMXLayer.getTileAt(): TMXLayer: the tiles map has been released"),null;var d=null,e=this.pF(a);if(0===e)return d;var f=0|a.x+a.y*this.sa.width,d=this.Dh(f);d||(e=this.lg.Mt(e),e=b.Kj(e),d=new b.Q,d.ta(this.texture,
e),d.batchNode=this,d.P(this.Gx(a)),d.vertexZ=this.oM(a),d.anchorX=0,d.anchorY=0,d.opacity=this.Vd,e=this.fB(f),this.cZ(d,e,f));return d},pF:function(a,c){if(!a)throw"cc.TMXLayer.getTileGIDAt(): pos should be non-null";void 0!==c&&(a=C(a,c));if(a.x>=this.sa.width||a.y>=this.sa.height||0>a.x||0>a.y)throw"cc.TMXLayer.getTileGIDAt(): invalid position";return this.Md&&this.Qd?(this.Md[0|a.x+a.y*this.sa.width]&b.uA)>>>0:(b.log("cc.TMXLayer.getTileGIDAt(): TMXLayer: the tiles map has been released"),null)},
J0:function(a,c){if(!a)throw"cc.TMXLayer.getTileFlagsAt(): pos should be non-null";void 0!==c&&(a=C(a,c));if(a.x>=this.sa.width||a.y>=this.sa.height||0>a.x||0>a.y)throw"cc.TMXLayer.getTileFlagsAt(): invalid position";return this.Md&&this.Qd?(this.Md[0|a.x+a.y*this.sa.width]&b.qI)>>>0:(b.log("cc.TMXLayer.getTileFlagsAt(): TMXLayer: the tiles map has been released"),null)},rja:function(a,c,d,e){if(!c)throw"cc.TMXLayer.setTileGID(): pos should be non-null";void 0!==e?c=C(c,d):e=d;if(c.x>=this.sa.width||
c.y>=this.sa.height||0>c.x||0>c.y)throw"cc.TMXLayer.setTileGID(): invalid position";if(this.Md&&this.Qd)if(0!==a&&a<this.lg.Jm)b.log("cc.TMXLayer.setTileGID(): invalid gid:"+a);else{e=e||0;this.rh();d=this.J0(c);var f=this.pF(c);if(f!=a||d!=e)if(d=(a|e)>>>0,0===a)this.b3(c);else if(0===f)this.VW(d,c);else{var f=c.x+c.y*this.sa.width,g=this.Dh(f);g?(a=this.lg.Mt(a),a=b.Kj(a),g.hb(a,!1),null!=e&&this.Nw(g,c,d),this.Md[f]=d):this.ZY(d,c)}}else b.log("cc.TMXLayer.setTileGID(): TMXLayer: the tiles map has been released")},
b3:function(a,c){if(!a)throw"cc.TMXLayer.removeTileAt(): pos should be non-null";void 0!==c&&(a=C(a,c));if(a.x>=this.sa.width||a.y>=this.sa.height||0>a.x||0>a.y)throw"cc.TMXLayer.removeTileAt(): invalid position";if(!this.Md||!this.Qd)b.log("cc.TMXLayer.removeTileAt(): TMXLayer: the tiles map has been released");else if(0!==this.pF(a)){b.A===b.Da&&this.rh();var d=0|a.x+a.y*this.sa.width,e=this.fB(d);this.Md[d]=0;this.Qd.splice(e,1);if(d=this.Dh(d))b.ye.prototype.removeChild.call(this,d,!0);else if(b.A===
b.Z&&this.textureAtlas.$O(e),this.s)for(var d=this.s,f=0,g=d.length;f<g;f++){var h=d[f];if(h){var k=h.atlasIndex;k>=e&&(h.atlasIndex=k-1)}}}},Gx:function(a,c){void 0!==c&&(a=C(a,c));var d=C(0,0);switch(this.zp){case b.$u:d=this.FX(a);break;case b.Zu:d=this.EX(a);break;case b.Yu:d=this.DX(a)}return b.gG(d)},kF:function(a){return this.Lb[a]},r4:function(){b.A===b.Da?this.lg.Ux=this.le.O:(this.lg.Ux=this.textureAtlas.texture.O,this.textureAtlas.texture.tG());this.yX();b.A===b.Da&&this.rh();for(var a=
this.sa.height,c=this.sa.width,d=0;d<a;d++)for(var e=0;e<c;e++){var f=this.Md[e+c*d];0!==f&&(this.aV(f,C(e,d)),this.$l=Math.min(f,this.$l),this.Zl=Math.max(f,this.Zl))}this.Zl>=this.lg.Jm&&this.$l>=this.lg.Jm||b.log("cocos2d:TMX: Only 1 tileset per layer is supported")},I:function(){b.log("addChild: is not supported on cc.TMXLayer. Instead use setTileGID or tileAt.")},removeChild:function(a,c){if(a)if(-1===this.s.indexOf(a))b.log("cc.TMXLayer.removeChild(): Tile does not belong to TMXLayer");else{b.A===
b.Da&&this.rh();var d=a.atlasIndex;this.Md[this.Qd[d]]=0;this.Qd.splice(d,1);b.ye.prototype.removeChild.call(this,a,c)}},pba:function(){return this.ry},yia:function(a){this.ry=a},EX:function(a){return C(this.xc.width/2*(this.sa.width+a.x-a.y-1),this.xc.height/2*(2*this.sa.height-a.x-a.y-2))},FX:function(a){return C(a.x*this.xc.width,(this.sa.height-a.y-1)*this.xc.height)},DX:function(a){return C(a.x*this.xc.width*3/4,(this.sa.height-a.y-1)*this.xc.height+(1==a.x%2?-this.xc.height/2:0))},hV:function(a){var c=
C(0,0);switch(this.zp){case b.$u:c=C(a.x*this.xc.width,-a.y*this.xc.height);break;case b.Zu:c=C(this.xc.width/2*(a.x-a.y),this.xc.height/2*(-a.x-a.y));break;case b.Yu:0===a.x&&0===a.y||b.log("offset for hexagonal map not implemented yet")}return c},aV:function(a,c){var d=this.lg.Mt(a),d=b.Kj(d),e=0|c.x+c.y*this.sa.width,d=this.kD(d);this.Nw(d,c,a);var f=this.Qd.length;this.ay(d,f);this.Qd.splice(f,0,e);return d},VW:function(a,c){var d=this.lg.Mt(a),d=b.Kj(d),e=0|c.x+c.y*this.sa.width,d=this.kD(d);
this.Nw(d,c,a);var f=this.cV(e);this.ay(d,f);this.Qd.splice(f,0,e);if(this.s)for(var g=this.s,h=0,k=g.length;h<k;h++){var m=g[h];if(m){var p=m.atlasIndex;p>=f&&(m.atlasIndex=p+1)}}this.Md[e]=a;return d},ZY:function(a,c){var d=this.lg.Mt(a),e=this.dh,d=O(d.x/e,d.y/e,d.width/e,d.height/e),e=c.x+c.y*this.sa.width,d=this.kD(d);this.Nw(d,c,a);d.atlasIndex=this.fB(e);d.dirty=!0;d.af();this.Md[e]=a;return d},yX:function(){var a=this.kF("cc_vertexz");if(a)if("automatic"==a){this.gE=!0;var c=this.kF("cc_alpha_func"),
a=0;c&&(a=parseFloat(c));b.A===b.Z&&(this.shaderProgram=b.Ld.oc(b.Uu),c=b.k.getUniformLocation(this.shaderProgram.Nm(),b.ZI),this.shaderProgram.Mc(),this.shaderProgram.Vt(c,a))}else this.mE=parseInt(a,10)},Nw:function(a,c,d){var e=c.x+c.y*this.sa.width;a.P(this.Gx(c));b.A===b.Z?a.vertexZ=this.oM(c):a.tag=e;a.anchorX=0;a.anchorY=0;a.opacity=this.Vd;b.A===b.Z&&(a.rotation=0);a.Ry(!1);a.yG(!1);(d&b.pI)>>>0?(a.anchorX=0.5,a.anchorY=0.5,a.x=this.Gx(c).x+a.width/2,a.y=this.Gx(c).y+a.height/2,c=(d&(b.Zq|
b.$q)>>>0)>>>0,c==b.Zq?a.rotation=90:c==b.$q?a.rotation=270:(a.rotation=c==(b.$q|b.Zq)>>>0?90:270,a.Ry(!0))):((d&b.Zq)>>>0&&a.Ry(!0),(d&b.$q)>>>0&&a.yG(!0))},kD:function(a){b.A===b.Z?(this.ph?(this.ph.batchNode=null,this.ph.hb(a,!1)):(this.ph=new b.Q,this.ph.ta(this.texture,a,!1)),this.ph.batchNode=this):(this.ph=new b.Q,this.ph.ta(this.Vk,a,!1),this.ph.batchNode=this,this.ph.parent=this);return this.ph},oM:function(a){var c=0,d=0;if(this.gE)switch(this.zp){case b.Zu:d=this.sa.width+this.sa.height;
c=-(d-(a.x+a.y));break;case b.$u:c=-(this.sa.height-a.y);break;case b.Yu:b.log("TMX Hexa zOrder not supported");break;default:b.log("TMX invalid value")}else c=this.mE;return c},fB:function(a){var c;if(this.Qd)for(var d=this.Qd,e=0,f=d.length;e<f&&(c=d[e],c!=a);e++);"number"!=typeof c&&b.log("cc.TMXLayer._atlasIndexForExistantZ(): TMX atlas index not found. Shall not happen");return e},cV:function(a){for(var c=this.Qd,d=0,e=c.length;d<e&&!(a<c[d]);d++);return d}});n=b.Xq.prototype;
b.A==b.Z?(n.Y=b.ye.prototype.Y,n.T=b.ye.prototype.T,n.Oa=b.ye.prototype.Oa):(n.Y=n.Rl,n.T=n.um,n.Oa=n.Nr);b.f(n,"texture",n.Oa,n.qb);b.f(n,"layerWidth",n.lW,n.eY);b.f(n,"layerHeight",n.kW,n.dY);b.f(n,"tileWidth",n.Pr,n.rs);b.f(n,"tileHeight",n.Or,n.qs);b.Xq.create=function(a,c,d){return new b.Xq(a,c,d)};b.Wz=b.ja.extend({ms:null,la:null,tr:null,dca:function(){return this.ms},aja:function(a){this.ms=a},vN:function(){return this.la},Wy:function(a){this.la=a},zaa:function(){return this.tr},u3:function(a){this.tr=a},Y0:function(a,c){this.ms=a;this.la=c;this.tr=null;return!0}});b.Wz.create=function(a,c){var d=new b.Wz;d.Y0(a,c);return d};
b.PH=b.ia.extend({Um:null,sC:null,tb:"ParallaxNode",Qba:function(){return this.Um},Sia:function(a){this.Um=a},ctor:function(){b.ia.prototype.ctor.call(this);this.Um=[];this.sC=C(-100,-100)},I:function(a,c,d,e){if(3===arguments.length)b.log("ParallaxNode: use addChild(child, z, ratio, offset) instead");else{if(!a)throw"cc.ParallaxNode.addChild(): child should be non-null";var f=b.Wz.create(d,e);f.u3(a);this.Um.push(f);a.P(this.ya.x*d.x+e.x,this.ya.y*d.y+e.y);b.ia.prototype.I.call(this,a,c,a.tag)}},
removeChild:function(a,c){for(var d=this.Um,e=0;e<d.length;e++)if(d[e].tr==a){d.splice(e,1);break}b.ia.prototype.removeChild.call(this,a,c)},Ng:function(a){this.Um.length=0;b.ia.prototype.Ng.call(this,a)},T:function(){var a=this.TU();if(!b.fG(a,this.sC)){for(var c=this.Um,d=0,e=c.length;d<e;d++){var f=c[d];f.tr.P(-a.x+a.x*f.ms.x+f.la.x,-a.y+a.y*f.ms.y+f.la.y)}this.sC=a}b.ia.prototype.T.call(this)},TU:function(){for(var a=this.ya,c=this;null!=c.parent;)c=c.parent,a=b.Nh(a,c.Fx());return a}});
b.PH.create=function(){return new b.PH};if(b.rb.Ww){var R=b.Dka=new (window.AudioContext||window.webkitAudioContext||window.mozAudioContext);b.RA=b.ja.extend({bo:null,cb:null,lm:null,sE:null,src:null,Gy:null,autoplay:null,controls:null,Ifa:null,currentTime:0,startTime:0,duration:0,vC:null,rE:1,Aw:0,lc:!1,zs:!0,Cg:-1,ctor:function(a){this.bo={};this.src=a;this.sE=R.createGain?R.createGain():R.createGainNode();this.oX=this.nX.bind(this);this.lX=this.kX.bind(this)},LC:function(a){var c=this.lm=R.createBufferSource(),d=this.sE;a=a||0;c.buffer=
this.cb;d.gain.value=this.rE;c.connect(d);d.connect(R.destination);c.loop=this.vC;this.zs=this.lc=!1;c.start?c.start(0,a):c.noteGrainOn?(d=c.buffer.duration,this.loop?c.noteGrainOn(0,a,d):c.noteGrainOn(0,a,d-a)):c.noteOn(0);this.Aw=0},$L:function(){var a=this.lm;this.zs||(a.stop?a.stop(0):a.Mfa(0),this.zs=!0)},play:function(){if(-1==this.Cg)this.Cg=0;else if(1==this.Cg){var a=this.lm;if(this.zs||!a||2!=a.playbackState)this.startTime=R.currentTime,this.LC(0)}},pause:function(){this.Aw=R.currentTime;
this.lc=!0;this.$L()},Np:function(){this.lc&&this.LC(this.cb?(this.Aw-this.startTime)%this.cb.duration:0)},stop:function(){this.Aw=0;this.lc=!1;this.$L()},load:function(){var a=this;if(1!=a.Cg){a.Cg=-1;a.played=!1;a.ended=!0;var c=new XMLHttpRequest;c.open("GET",a.src,!0);c.responseType="arraybuffer";c.onload=function(){R.decodeAudioData(c.response,a.oX,a.lX)};c.send()}},addEventListener:function(a,c){this.bo[a]=c.bind(this)},removeEventListener:function(a){delete this.bo[a]},v9:function(){return b.rb.Ww},
nX:function(a){this.cb=a;a=this.bo.success;var c=this.bo.canplaythrough;a&&a();c&&c();0!=this.Cg&&"autoplay"!=this.autoplay&&!0!=this.autoplay||this.LC();this.Cg=1},kX:function(){var a=this.bo.error;a&&a();this.Cg=-2},cloneNode:function(){var a=new b.RA(this.src);a.volume=this.volume;a.Cg=this.Cg;a.cb=this.cb;0!=a.Cg&&-1!=a.Cg||a.load();return a}});n=b.RA.prototype;b.f(n,"loop",function(){return this.vC},function(a){this.vC=a;this.lm&&(this.lm.loop=a)});b.f(n,"volume",function(){return this.rE},function(a){this.rE=
a;this.sE.gain.value=a});b.f(n,"paused",function(){return this.lc});b.f(n,"ended",function(){var a=this.lm;return!this.lc&&(this.zs||!a||3==a.playbackState)});b.f(n,"played",function(){var a=this.lm;return a&&2==a.playbackState})}
b.cH=b.ja.extend({ID:!1,Sd:null,Hv:null,kf:0,qJ:0,ie:{},rr:{},Qv:1,xC:5,uk:null,js:[],ctor:function(){this.ID=0<b.gB.Xw.length;this.uk&&(this.uk=this.uk.bind(this))},Fka:function(){return!1},Raa:function(){return this.Qv},Fga:function(a,c){if(this.ID){var d=this.Sd;d&&this.Sk(d);a!=this.Hv&&(this.Sd=d=this.VB(a),this.Hv=a);d&&(d.loop=c||!1,this.MC(d))}},VB:function(a){var c=b.V,d=c.Fd(a);d||(c.load(a),d=c.Fd(a));return d},MC:function(a){a.ended||(a.stop?a.stop():(a.pause(),a.currentTime=0));this.kf=
2;a.play()},H4:function(a){if(0<this.kf){var c=this.Sd;c&&this.Sk(c)&&(a&&b.V.Ki(this.Hv),this.Hv=this.Sd=null,this.kf=0)}},Sk:function(a){return a&&!a.ended?(a.stop?a.stop():a.duration&&Infinity!=a.duration?a.currentTime=a.duration:a.pause(),!0):!1},PO:function(){2==this.kf&&(this.Sd.pause(),this.kf=1)},i3:function(){1==this.kf&&(this.mj(this.Sd),this.kf=2)},mj:function(a){a&&!a.ended&&(a.Np?a.Np():a.play())},xha:function(){this.Sd&&this.MC(this.Sd)},Dba:function(){return 0==this.kf?0:this.Sd.volume},
Gia:function(a){0<this.kf&&(this.Sd.volume=Math.min(Math.max(a,0),1))},KF:function(){return 2==this.kf&&this.Sd&&!this.Sd.ended},YB:function(a){var c=this.rr[a];c||(c=this.rr[a]=[]);return c},zK:function(a){var c;if(!this.ID)return null;for(var d=this.YB(a),e=0,f=d.length;e<f;e++){var g=d[e];if(g.ended){c=g;c.currentTime=0;window.chrome&&c.load();break}}if(!c){if(d.length>=this.xC)return b.log("Error: "+a+" greater than "+this.xC),null;c=this.VB(a);if(!c)return null;c=c.cloneNode(!0);this.uk&&b.Ja(c,
"pause",this.uk);c.volume=this.Qv;d.push(c)}return c},D2:function(a,c){var d=this.zK(a);if(!d)return null;d.loop=c||!1;d.play();var e=this.qJ++;this.ie[e]=d;return e},jia:function(a){a=this.Qv=Math.min(Math.max(a,0),1);var c=this.ie,d;for(d in c)c[d].volume=a},A2:function(a){(a=this.ie[a])&&!a.ended&&a.pause()},y2:function(){var a=this.ie,c;for(c in a){var d=a[c];d.ended||d.pause()}},h3:function(a){this.mj(this.ie[a])},g3:function(){var a=this.ie,c;for(c in a)this.mj(a[c])},G4:function(a){this.Sk(this.ie[a]);
delete this.ie[a]},UP:function(){var a=this.ie,c;for(c in a)this.Sk(a[c]),delete a[c]},W4:function(a){var c=b.V,d=this.ie,e=this.YB(a);c.Ki(a);if(0!=e.length){c=e[0].src;delete this.rr[a];for(var f in d)d[f].src==c&&(this.Sk(d[f]),delete d[f])}},end:function(){this.H4();this.UP()},jL:function(){var a=this.ie,c,d;for(d in a)!(c=a[d])||c.ended||c.paused||(this.js.push(c),c.pause());this.KF()&&(this.js.push(this.Sd),this.Sd.pause())},BL:function(){for(var a=this.js,c=0,d=a.length;c<d;c++)this.mj(a[c]);
a.length=0}});
!b.rb.Ww&&0>b.rb.KY&&(b.dH=b.cH.extend({Zk:[],is:[],Hf:null,xC:2,Pv:{},bm:!1,co:0,oC:!1,MC:function(a){this.QD();this._super(a)},i3:function(){1==this.kf&&(this.QD(),this.bm=!1,this.co=0,this._super())},D2:function(a,c){var d=this.Hf,e=c?this.zK(a):this.zW(a);if(!e)return null;e.loop=c||!1;var f=this.qJ++;this.ie[f]=e;this.KF()&&(this.PO(),this.bm=!0);d?(d!=e&&this.Zk.push(this.Vn),this.Zk.push(f),d.pause()):(this.Hf=e,this.Vn=f,e.play());return f},A2:function(){b.log("pauseEffect not supported in single audio mode!")},y2:function(){var a=
this.Zk,c=this.is,d=this.Hf;if(d){for(var e=0,f=a.length;e<f;e++)c.push(a[e]);a.length=0;c.push(this.Vn);d.pause()}},h3:function(){b.log("resumeEffect not supported in single audio mode!")},g3:function(){var a=this.Zk,c=this.is;this.KF()&&(this.PO(),this.bm=!0);for(var d=0,e=c.length;d<e;d++)a.push(c[d]);c.length=0;!this.Hf&&0<=a.length&&(a=a.pop(),c=this.ie[a])&&(this.Vn=a,this.Hf=c,this.mj(c))},G4:function(a){var c=this.Hf,d=this.Zk,e=this.is;c&&this.Vn==a?this.Sk(c):(c=d.indexOf(a),0<=c?d.splice(c,
1):(c=e.indexOf(a),0<=c&&e.splice(c,1)))},UP:function(){this.QD();!this.Hf&&this.bm&&(this.mj(this.Sd),this.kf=2,this.bm=!1,this.co=0)},W4:function(a){var c=b.V,d=this.ie,e=this.Pv,f=this.YB(a),g=this.Hf;c.Ki(a);if(0!=f.length||e[a]){c=0<f.length?f[0].src:e[a].src;delete this.rr[a];delete e[a];for(var h in d)d[h].src==c&&delete d[h];g&&g.src==c&&this.Sk(g)}},zW:function(a){var c=this.Pv[a],d=this.Zk,e=this.is,f=this.ie;if(c)c.currentTime=0;else{c=this.VB(a);if(!c)return null;c=c.cloneNode(!0);this.uk&&
b.Ja(c,"pause",this.uk);c.volume=this.Qv;this.Pv[a]=c}a=0;for(var g=d.length;a<g;)f[d[a]]==c?d.splice(a,1):a++;a=0;for(g=e.length;a<g;)f[e[a]]==c?e.splice(a,1):a++;c.Vr=!0;return c},QD:function(){var a=this.Hf,c=this.rr,d=this.Pv,e=this.Zk,f=this.is;if(a||0!=e.length||0!=f.length){for(var g in d){var h=d[g];h.duration&&Infinity!=h.duration&&(h.currentTime=h.duration)}e.length=0;f.length=0;for(g in c)for(d=c[g],e=0,f=d.length;e<f;e++)h=d[e],h.loop=!1,h.duration&&Infinity!=h.duration&&(h.currentTime=
h.duration);a&&this.Sk(a)}},uk:function(){if(!this.oC){var a=this.DW();if(a)a.Vr?(delete a.Vr,a.play()):this.mj(a);else if(this.bm){a=this.Sd;if(a.duration&&Infinity!=a.duration){var c=a.currentTime+this.co,c=c-a.duration*(c/a.duration|0);a.currentTime=c}this.co=0;this.mj(a);this.kf=2;this.bm=!1}}},DW:function(){var a=this.Zk,c=this.ie,d=this.Hf,e=d?d.currentTime-(d.startTime||0):0;for(this.co+=e;0!=a.length;){var f=a.pop();if(d=c[f]){if(d.Vr||d.loop||d.duration&&d.currentTime+e<d.duration)return this.Vn=
f,this.Hf=d,!d.Vr&&d.duration&&Infinity!=d.duration&&(a=d.currentTime+e,a-=d.duration*(a/d.duration|0),d.currentTime=a),d.Vr=!1,d;d.duration&&Infinity!=d.duration&&(d.currentTime=d.duration)}}return this.Hf=this.Vn=null},jL:function(){var a=this.Hf;this.oC=!0;if(a=2==this.kf?this.Sd:a)this.js.push(a),a.pause()},BL:function(){var a=this.js;this.oC=!1;0<a.length&&(this.mj(a[0]),a.length=0)}}));
b.gB={Xw:null,Cx:function(){return b.V.vZ},tC:function(a,c,d,e,f,g,h){var k=this,m=b.V,p=b.path,r=this.Xw,s="";if(0==r.length)return h("can not support audio!");if(-1==e)s=(p.bl(a)||"").toLowerCase(),k.wZ(s)||(s=r[0],e=0);else if(e<r.length)s=r[e];else return h("can not found the resource of audio! Last match url is : "+a);if(0<=f.indexOf(s))return k.tC(a,c,d,e+1,f,g,h);a=p.DM(a,s);f.push(s);g=k.bX(a,g,function(m){if(m)return k.tC(a,c,d,e+1,f,g,h);h(null,g)},e==r.length-1);m.Xf[c]=g},wZ:function(a){return a?
0<=this.Xw.indexOf(a.toLowerCase()):!1},bX:function(a,c,d,e){var f="file://"==location.origin?Audio:b.RA||Audio;2==arguments.length?(d=c,c=new f):3<arguments.length&&!c&&(c=new f);c.src=a;c.Gy="auto";f=navigator.userAgent;/Mobile/.test(f)&&(/iPhone OS/.test(f)||/iPad/.test(f)||/Firefox/.test(f))||/MSIE/.test(f)?(c.load(),d(null,c)):(b.Ja(c,"canplaythrough",function(){d(null,c);this.removeEventListener("canplaythrough",arguments.callee,!1);this.removeEventListener("error",arguments.callee,!1)},!1),
b.Ja(c,"error",function(){d("load "+a+" failed");e&&(this.removeEventListener("canplaythrough",arguments.callee,!1),this.removeEventListener("error",arguments.callee,!1))},!1),c.load());return c},load:function(a,c,d,e){this.tC(a,c,d,-1,[],null,e)}};
b.gB.Xw=function(){var a=b.Ob("audio"),c=[];if(a.canPlayType){var d=function(c){c=a.canPlayType(c);return"no"!=c&&""!=c};d('audio/ogg; codecs\x3d"vorbis"')&&c.push(".ogg");d("audio/mpeg")&&c.push(".mp3");d('audio/wav; codecs\x3d"1"')&&c.push(".wav");d("audio/mp4")&&c.push(".mp4");(d("audio/x-m4a")||d("audio/aac"))&&c.push(".m4a")}return c}();b.V.Lj(["mp3","ogg","wav","mp4","m4a"],b.gB);b.wM=b.dH?new b.dH:new b.cH;b.ra.vE(b.Ic.qu,function(){b.wM.jL()});b.ra.vE(b.Ic.kq,function(){b.wM.BL()});var sa="./vapp/60/uiTex.png ./vapp/60/uiTex.plist ./vapp/60/gameTex.png ./vapp/60/gameTex.plist ./vapp/60/font-24.fnt ./vapp/60/font-24_0.png ./vapp/60/gameEffectTex.plist ./vapp/60/gameEffectTex.png".split(" ");var va=b.Od.extend({ctor:function(){this._super();b.kg.jx("./vapp/60/uiTex.plist");var a=b.D.R,c=b.Q.create("#Logo01.png");c.Kb({anchorX:1,anchorY:1,x:a.width,y:a.height});this.I(c);c=b.Xj.create("#GameStart01.png","#GameStart02.png",function(){this.n2()},this);c.Kb({x:a.width/2,y:a.height/2+50,anchorX:0.5,anchorY:0.5});var d=b.Xj.create("#MoreGame01.png","#MoreGame02.png",function(){this.YF()},this);d.Kb({x:a.width/2,y:a.height/2,anchorX:0.5,anchorY:0.5});a=b.Wj.create(c,d);a.x=0;a.y=0;this.I(a,
1);return!0},n2:function(){var a=b.df.create();a.I(ta.create());a.I(ua.create());b.D.ll(b.Jl.create(1.2,a))},YF:function(){clickMore();}});va.create=function(){var a=new va;return a&&a.F()?a:null};va.rG=function(){var a=b.df.create(),c=va.create();a.I(c);return a};STATE_PLAYING=1;STATE_GAMEOVER=0;
var U,V,ta=b.Od.extend({aM:null,pi:null,Jo:null,Yd:STATE_PLAYING,UK:null,Yr:null,vk:null,Gs:0,Cs:null,Tn:-1,Cv:0,F:function(){var a=!1;this._super()&&(wa=[],xa=0,ya=[],za=0,Ba=[],X=0,Ca=null==b.rb.localStorage.getItem("bestScore")?0:parseInt(b.rb.localStorage.getItem("bestScore")),this.Yd=STATE_PLAYING,V=b.D.R,this.UK=new Ga(this),b.kg.jx("./vapp/60/gameTex.plist"),b.kg.jx("./vapp/60/gameEffectTex.plist"),this.Yr=b.Vj.create("\u5f97\u5206: 0","./vapp/60/font-24.fnt"),this.Yr.Kb({anchorX:0.5,anchorY:0.5,
x:V.width/2,y:V.height-32,scale:0.8}),this.Yr.textAlign=b.Wq,this.I(this.Yr),this.vk=b.Vj.create(" \u8fde\u51fb!!!","./vapp/60/font-24.fnt"),this.vk.Kb({visible:!1,opacity:60,x:V.width/2,y:V.height/2+64}),this.vk.textAlign=b.Wq,this.I(this.vk),a=b.Ba.nc("./vapp/60/gameEffectTex.png"),this.Cs=b.ye.create(a),this.I(this.Cs),a=b.Ba.nc("./vapp/60/gameTex.png"),this.Jo=b.ye.create(a),this.I(this.Jo),this.pi=new Ha,this.Jo.I(this.pi,this.pi.cq,Ia),b.rb.Zs.hasOwnProperty("touches")&&b.ra.addListener({hG:-1,
event:b.pa.bv,Gp:function(a,d){var e=a[0];this.hG!=e.Mf?this.hG=e.Mf:d.Pc.QO(a[0])},Fp:function(){this.hG=-1}},this),"mouse"in b.rb.Zs&&b.ra.addListener({event:b.pa.Al,Bt:function(a){a.pB==b.Dc.DQ&&a.Pc.QO(a)}},this),this.gP(),this.Zm(this.T4,1),a=!0,U=this,Y.Jt(),Ja.Jt(),Z.Jt());return a},QO:function(a){if(this.Yd==STATE_PLAYING){a=a.Dx();var c=(1-$)/$,d=C(this.pi.x,this.pi.y);a=C(a.x*c,a.y*c);d=b.Nh(a,d);d=b.aG(d,C(0,V.height*$),C(V.width,V.height));this.pi.x=d.x;this.pi.y=d.y}},update:function(a){this.Yd==
STATE_PLAYING&&(this.EZ(),this.FZ(),this.a5(a),this.d5(a))},T4:function(){this.Yd==STATE_PLAYING&&(this.aM++,this.Cv++,this.UK.e2(this.aM))},a5:function(a){var c,d=this.Jo.children;for(i in d)(c=d[i])&&c.active&&c.update(a)},EZ:function(){var a,c,d=this.pi;for(c=0;c<wa.length;c++)a=wa[c],a.active&&this.FM(a,d)&&d.active&&(this.Cv=0,this.Cv<Ka&&this.Tn++,0<this.Tn&&this.FO(this.Tn+" \u8fde\u51fb!!!"),a.Sx());for(c=0;c<ya.length;c++)a=ya[c],a.active&&this.FM(a,d)&&d.active&&d.Sx()},FM:function(a,c){var d=
a.x,e=a.y,f=c.x,g=c.y;return Math.abs(d-f)>Na||Math.abs(e-g)>Oa?!1:b.R2(a.sx(d,e),c.sx(f,g))},FZ:function(){this.pi.active||(this.Yd=STATE_GAMEOVER,this.pi=null,X>Ca&&(Ca=X,b.rb.localStorage.setItem("bestScore",Ca)),this.Ga(b.ua.create(b.qc.create(1),b.wb.create(this.l2,this))),dp_submitScore(X))},d5:function(){this.Gs<X&&(this.Gs+=1);this.Cv>=Ka&&(this.Tn=-1,this.vk.visible=!1);this.Yr.Cc("\u5f97\u5206: "+this.Gs)},FO:function(a){this.vk.Cc(a);this.vk.Kb({visible:!0});a=b.Xc.create(0.2,1.2);var c=b.Xc.create(0.1,
1);a=b.ua.create(a,c);this.vk.Ga(a)},l2:function(){var a=b.df.create();a.I(Pa.create());b.D.ll(b.Jl.create(1.2,a))}});ta.create=function(){var a=new ta;return a&&a.F()?a:null};ta.rG=function(){var a=b.df.create(),c=ta.create();a.I(c,1);return a};var Ka=2,X=0,Ca=0,Na=40,Oa=40,$=0.3,Ia=1E3,Ba=[],wa=[],ya=[],Qa=[{Bn:0,Wu:"Sperm01.png",Wc:1,fI:1,Vu:100}],Ra=[{Bn:0,Wu:"Enemy01.png",Wc:1,Vu:100},{Bn:1,Wu:"Enemy02.png",Wc:1,Vu:300}],Sa=[{mn:4,zn:8,yn:200},{mn:8,zn:8,yn:1E3},{mn:16,zn:8,yn:4E3},{mn:32,zn:8,yn:12E3},{mn:48,zn:8,yn:0}],xa=0,za=0;var Ha=b.Q.extend({cq:3E3,active:!0,Wc:1,ctor:function(){this._super("#Player01.png");this.tag=this.cq;this.x=V.width/2;this.y=V.height/2},update:function(){0>=this.Wc&&(this.active=!1,this.al())},Sx:function(){this.Wc--},al:function(){this.visible=!1;Z.wN(this.x,this.y)},sx:function(a,c){return O(a,c,this.width,this.height)}});var Y=b.Q.extend({active:!0,SP:1,speed:200,Wc:1,Rh:0,Sh:0,Qt:1,cq:2E3,direction:1,ctor:function(a){this._super("#"+a.Wu);this.Qt=a.fI;this.SP=a.Bn;this.Wc=a.Wc;this.speed=a.Vu},update:function(a){if(this.active){var c=this.x,d=this.y;this.x=c-this.Rh*a;this.y=d-this.Sh*a;(0>c||c>V.width||d<V.height*$||d>V.height||0>=this.Wc)&&this.al()}},Sx:function(){this.Wc--},al:function(){0==this.Wc&&(X+=this.Qt+(0<U.Tn?this.Qt*U.Tn:0),Z.wN(this.x,this.y));this.visible=this.active=!1;this.$t();xa--},sx:function(a,
c){var d=this.width,e=this.height,f=0.6*this.height;switch(this.direction){case 1:e=f;break;case 2:e=d;d=f;break;case 3:c=c+e-f;e=f;break;case 4:a=a+e-f,d=f}return O(a,c,d,e)}});Y.r0=function(a){for(var c=null,d=0;d<wa.length;d++)if(c=wa[d],!1==c.active&&c.SP==a.type)return c.Wc=a.Wc,c.active=!0,c.visible=!0,xa++,c;c=Y.create(a);xa++;return c};Y.create=function(a){a=new Y(a);U.Jo.I(a,a.cq,900);wa.push(a);return a};
Y.Jt=function(){for(var a=null,c=0;3>c;c++)a=Y.create(Qa[0]),a.visible=!1,a.active=!1};var Ja=b.Q.extend({active:!0,cN:1,speed:200,Wc:1,Rh:0,Sh:0,Qt:1,cq:1E3,direction:1,ctor:function(a){this._super("#"+a.Wu);this.Qt=a.fI;this.cN=a.Bn;this.Wc=a.Wc;this.speed=a.Vu},update:function(a){if(this.active){var c=this.x,d=this.y;this.x=c-this.Rh*a;this.y=d-this.Sh*a;(0>c||c>V.width||d<V.height*$||d>V.height||0>=this.Wc)&&this.al()}},Sx:function(){this.Wc--},al:function(){this.visible=this.active=!1;this.$t();za--},sx:function(a,c){return O(a,c,this.width,this.height)}});
Ja.q0=function(a){for(var c=null,d=0;d<ya.length;d++)if(c=ya[d],!1==c.active&&c.cN==a.type)return c.Wc=a.Wc,c.active=!0,c.visible=!0,za++,c;c=Ja.create(a);za++;return c};Ja.create=function(a){a=new Ja(a);U.Jo.I(a,a.cq,800);ya.push(a);return a};Ja.Jt=function(){for(var a=null,c=0;6>c;c++)a=Ja.create(Ra[0]),a.visible=!1,a.active=!1};var Ga=b.ja.extend({sk:null,UB:null,nw:0,ctor:function(a){if(!a)throw"gameLayer must be non-nil";this.sk=Sa[this.nw];this.UB=a},e2:function(){0!=this.sk.yn&&this.UB.Gs>this.sk.yn&&(this.nw+=1,this.sk=Sa[this.nw],this.UB.FO("\u5347\u7ea7!!!"));if(xa<this.sk.zn)for(var a=this.sk.zn-xa,c=0;c<parseInt(Math.random()*(a-1)+1);c++)this.t4(0);if(za<this.sk.mn)for(a=this.sk.mn-za,c=0;c<parseInt(Math.random()*(a-1)+1);c++)0==c%3&&0!=c?this.PP(1):this.PP(0)},t4:function(a){a=Y.r0(Qa[a]);a.direction=parseInt(4*
Math.random()+1);a.speed=Math.random()*(a.speed-0.5*a.speed)+0.5*a.speed;var c=Math.random()*(V.width-60)+30,d=Math.random()*(V.height-30-(V.height*$+30))+(V.height*$+30);switch(a.direction){case 1:a.cn(180);a.x=c;a.y=V.height;a.Rh=0;a.Sh=a.speed;break;case 2:a.cn(-90);a.x=V.width;a.y=d;a.Rh=a.speed;a.Sh=0;break;case 3:a.cn(0);a.x=c;a.y=V.height*$;a.Rh=0;a.Sh=-a.speed;break;case 4:a.cn(90),a.x=0,a.y=d,a.Rh=-a.speed,a.Sh=0}var c=b.kg.Hh("Sperm01.png"),d=b.kg.Hh("Sperm02.png"),e=[];e.push(c);e.push(d);
c=b.Qj.create(e,0.2);c=b.ln.create(c);a.Ga(b.Dl.create(c))},PP:function(a){var c=Ja.q0(Ra[a]);c.direction=parseInt(4*Math.random()+1);c.speed=Math.random()*(c.speed-0.6*c.speed)+0.6*c.speed;var d=Math.random()*(V.width-60)+30,e=Math.random()*(V.height-30-(V.height*$+30))+(V.height*$+30);switch(c.direction){case 1:c.x=d;c.y=V.height;c.Rh=0;c.Sh=c.speed;break;case 2:c.x=V.width;c.y=e;c.Rh=c.speed;c.Sh=0;break;case 3:c.x=d;c.y=V.height*$;c.Rh=0;c.Sh=-c.speed;break;case 4:c.x=0,c.y=e,c.Rh=-c.speed,c.Sh=
0}1==a&&(a=b.Fl.create(3,360),c.Ga(b.Dl.create(a)))}});var ua=b.Od.extend({F:function(){var a=!1;this._super()&&(a=b.Q.create(),a.hb(O(0,0,V.width,V.height*$)),a.color=b.color(255,255,255),a.opacity=50,a.Kb({x:0,y:0,anchorX:0,anchorY:0}),this.I(a),a=b.Q.create(),a.hb(O(0,0,V.width,2)),a.color=b.color(255,255,255),a.opacity=100,a.Kb({x:0,y:V.height*$,anchorX:0,anchorY:0}),this.I(a),a=b.Vj.create("\u63a7\u5236\u533a","./vapp/60/font-24.fnt"),a.Kb({opacity:60,x:V.width/2,y:100,anchorX:0.5,anchorY:0.5}),a.textAlign=b.Wq,this.I(a),a=b.Xj.create("#Back01.png",
"#Back02.png",function(){},this),a.Kb({x:V.width-80,y:V.height*$-30,anchorX:0,anchorY:0}),a=b.Wj.create(a),a.x=0,a.y=0,this.I(a),a=!0);return a},m2:function(){var a=b.df.create();a.I(va.create());b.D.ll(b.Jl.create(1.2,a))}});ua.create=function(){var a=new ua;return a&&a.F()?a:null};var Z=b.ja.extend({active:!0,fp:null,gp:null,hp:null,scale:1.2,duration:0.5,ctor:function(){this.fp=b.Q.create("#Explode01.png");this.gp=b.Q.create("#Explode01.png");this.hp=b.Q.create("#Explode01.png")},reset:function(a,c){this.fp.Kb({visible:!0,x:a,y:c,scale:1.5*Math.random()+0.5,opacity:200});this.gp.Kb({visible:!0,x:a,y:c,scale:1.5*Math.random()+0.5,opacity:200});this.hp.Kb({visible:!0,x:a,y:c,scale:1.5*Math.random()+0.5,opacity:200});var d=Math.round(Math.random())?1:-1,e=Math.round(Math.random())?
1:-1;40*Math.random()+40;d=b.Yj.create(this.duration,C(a+(30*Math.random()+30)*d,c+(30*Math.random()+30)*e));this.fp.Ga(d);d=b.Yj.create(this.duration,C(a+(30*Math.random()+30)*(Math.round(Math.random())?1:-1),c+(30*Math.random()+30)*(Math.round(Math.random())?1:-1)));this.gp.Ga(d);d=b.Yj.create(this.duration,C(a+(30*Math.random()+30)*(Math.round(Math.random())?1:-1),c+(30*Math.random()+30)*(Math.round(Math.random())?1:-1)));d=b.ua.create(d,b.wb.create(this.al,this));this.hp.Ga(d)},al:function(){this.active=
!1;this.fp.visible=!1;this.gp.visible=!1;this.hp.visible=!1}});Z.wN=function(a,c){for(var d=null,e=0;e<Ba.length;e++)if(d=Ba[e],!1==d.active){d.active=!0;d.reset(a,c);return}Z.create().reset(a,c)};Z.create=function(){var a=new Z;U.Cs.I(a.fp);U.Cs.I(a.gp);U.Cs.I(a.hp);a.fp.visible=!1;a.gp.visible=!1;a.hp.visible=!1;Ba.push(a);return a};Z.Jt=function(){for(var a=null,c=0;6>c;c++)a=Z.create(),a.active=!1};var Pa=b.Od.extend({Qja:null,Jfa:null,F:function(){var a=!1;if(this._super()){a=b.Vj.create("\u4f60\u62ef\u6551\u7cbe\u5b50\u6570\u91cf: "+X,"./vapp/60/font-24.fnt");a.x=V.width/2;a.y=V.height/2+100;this.I(a);a=b.Vj.create("\u4f60\u6700\u9ad8\u62ef\u6551\u7cbe\u5b50\u6570\u91cf: "+Ca,"./vapp/60/font-24.fnt");a.x=V.width/2;a.y=V.height/2+50;this.I(a);a=b.Xj.create("#Again01.png","#Again02.png",function(){this.o2()},this);a.Kb({x:V.width/2,y:V.height/2});var c=b.Xj.create("#Share01.png","#Share02.png",
function(){this.GO()},this);c.Kb({x:V.width/2,y:V.height/2-50});var d=b.Xj.create("#MoreGame01.png","#MoreGame02.png",function(){this.YF()},this);d.Kb({x:V.width/2,y:V.height/2-100});menu=b.Wj.create(a,c,d);menu.x=0;menu.y=0;this.I(menu);shareBgSprite=b.Q.create();shareBgSprite.hb(O(0,0,V.width,V.height));shareBgSprite.color=b.color(0,0,0);shareBgSprite.opacity=200;shareBgSprite.Kb({x:0,y:0,anchorX:0,anchorY:0});shareBgSprite.visible=!1;a=b.Q.create("#Share03.png");a.Kb({anchorX:1,anchorY:1,x:V.width,
y:V.height});shareBgSprite.I(a);this.I(shareBgSprite,10);a=b.pa.create({event:b.pa.ar,Xp:!0,Tm:function(a,c){var d=c.Pc;if(d.visible){var h=b.wb.create(function(){d.visible=!1;menu.Id(!0)},this),h=b.ua.create(b.yl.create(0.7),h);d.Ga(h)}}});b.ra.addListener(a,shareBgSprite);a=!0}return a},o2:function(){var a=b.df.create();a.I(ta.create());a.I(ua.create());b.D.ll(b.Jl.create(1.2,a))},GO:function(){dp_share();},YF:function(){clickMore();}});Pa.create=function(){var a=new Pa;return a&&a.F()?a:null};Pa.rG=function(){var a=b.df.create(),c=Pa.create();a.I(c);return a};logoData="";
Loading=b.df.extend({ej:null,Zr:0,Pl:0,ac:null,tb:"Loading",F:function(){var a=this,c=200,d=a.mB=b.jd.create(b.color(0,0,0,255));d.P(b.Ni.ox);a.I(d,0);var e=24,f=-c/2+100;b.uC&&(b.V.Bp(logoData,{dy:!1},function(d,e){c=e.height;a.jC(e,b.Ni.Xo)}),e=14,f=-c/2-10);e=a.ac=b.$.create("Loading... 0%","Arial",e);e.P(b.Nh(b.Ni.Xo,C(0,f)));e.$a(b.color(180,180,180));d.I(this.ac,10);return!0},jC:function(a,c){var d=new b.da;d.sd(a);d.Nb();d=b.Q.create(d);d.dn(b.pb());d.x=c.x;d.y=c.y;this.mB.I(d,10)},ba:function(){b.q.prototype.ba.call(this);
this.Zm(this.vs,0.3)},ub:function(){b.q.prototype.ub.call(this);this.ac.Cc("Loading... 0%")},AF:function(a,c){"string"==typeof a&&(a=[a]);this.oG=a||[];this.ed=c},vs:function(){var a=this;a.fu(a.vs);var c=a.oG;a.Zr=c.length;a.Pl=0;b.V.load(c,function(c,e){a.Pl=e},function(){a.ed&&a.ed()});a.Zm(a.Ks)},Ks:function(){var a=this.Pl,c=this.Zr,d;d=Math.min(a/c*100|0,100);this.ac.Cc("Loading... "+d+"%");a>=c&&this.fu(this.Ks)}});
Loading.Gy=function(a,c){var d=b;d.Gq||(d.Gq=new Loading,d.Gq.F());d.Gq.AF(a,c);b.D.ll(d.Gq);return d.Gq};b.Ic.ZF=function(){b.view.dZ(!0);b.view.wG(320,480,b.cf.SHOW_ALL);b.view.f3(!0);Loading.Gy(sa,function(){this.Ga(b.ua.create(b.qc.create(1),b.wb.create(function(){b.D.ll(b.Jl.create(1.2,new va.rG))},this)))},this)};b.Ic.k3();