// Generated by Construct 2, the HTML5 game and app creator :: https://www.construct.net 'use strict';var aa,ba,ca,x,da,ea,fa,U,ga,ha,ia,ja,la,ma,V,na,pa,qa,ra,sa,ta,wa,X,xa,ya,za,Aa,Ba,Y,Ca,Da,Ea,Fa,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb={},Xb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(b){return b.__proto__}:function(b){return b.constructor.prototype}); (function(){function b(a,d,c,k){this.set(a,d,c,k)}function p(){this.Ha=this.Ga=this.Ja=this.Ia=this.Oa=this.Na=this.ra=this.qa=0}function m(a,d,c,k){ak?d:k):(w=ac?d:c):ck?a:k):(w=dc?a:c)}function n(){this.items=this.fd=null;this.dh=0;K&&(this.fd=new Set);this.rg=[];this.Zd=!0}function l(a){P[R++]=a}function r(){this.Aa=this.Ij=this.y=this.ck=0}function h(a){this.Qa=[];this.ai=this.ci=this.di=this.bi=0;this.Fh(a)}function a(a,d){this.hk= a;this.gk=d;this.cells={}}function g(a,d){this.hk=a;this.gk=d;this.cells={}}function t(a,d,c){var k;return G.length?(k=G.pop(),k.Lk=a,k.x=d,k.y=c,k):new aa(a,d,c)}function d(a,d,c){this.Lk=a;this.x=d;this.y=c;this.hb=new ba}function c(a,d,c){var k;return F.length?(k=F.pop(),k.Lk=a,k.x=d,k.y=c,k):new ca(a,d,c)}function e(a,d,c){this.Lk=a;this.x=d;this.y=c;this.hb=[];this.Sf=!0;this.dd=new ba;this.xg=!1}function f(a,d){return a.Vc-d.Vc}x=function(a){window.console&&window.console.log&&window.console.log(a)}; da=function(a){window.console&&window.console.error&&window.console.error(a)};ea=function(a){return"undefined"===typeof a};fa=function(a){return"number"===typeof a};U=function(a){return"string"===typeof a};ga=function(a){return 0d;d<<=1)a=a|a>>d;return a+1};ia=function(a){return 0>a?-a:a};ja=function(a,d){return a>d?a:d};la=function(a,d){return aB)return!1;dB)return!1;z=f-a+g-c;y=e-d+q-k;a=c-a;d=k-d;f=g-f;e=q-e;q=ia(d*f-e*a);return ia(f*y-e*z)>q?!1:ia(a*y-d*z)<=q};b.prototype.set=function(a,d,c,k){this.left=a;this.top=d;this.right=c;this.bottom=k};b.prototype.Dg=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};b.prototype.width=function(){return this.right- this.left};b.prototype.height=function(){return this.bottom-this.top};b.prototype.offset=function(a,d){this.left+=a;this.top+=d;this.right+=a;this.bottom+=d;return this};b.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};b.prototype.Os=function(a){return!(a.rightthis.right||a.top>this.bottom)};b.prototype.Ps=function(a,d,c){return!(a.right+ dthis.right||a.top+c>this.bottom)};b.prototype.Pb=function(a,d){return a>=this.left&&a<=this.right&&d>=this.top&&d<=this.bottom};b.prototype.Ig=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};qa=b;p.prototype.xf=function(a){this.qa=a.left;this.ra=a.top;this.Na=a.right;this.Oa=a.top;this.Ia=a.right;this.Ja=a.bottom;this.Ga=a.left;this.Ha=a.bottom};p.prototype.cp=function(a,d){if(0===d)this.xf(a);else{var c= Math.sin(d),k=Math.cos(d),f=a.left*c,e=a.top*c,g=a.right*c,c=a.bottom*c,q=a.left*k,z=a.top*k,y=a.right*k,k=a.bottom*k;this.qa=q-e;this.ra=z+f;this.Na=y-e;this.Oa=z+g;this.Ia=y-c;this.Ja=k+g;this.Ga=q-c;this.Ha=k+f}};p.prototype.offset=function(a,d){this.qa+=a;this.ra+=d;this.Na+=a;this.Oa+=d;this.Ia+=a;this.Ja+=d;this.Ga+=a;this.Ha+=d;return this};var w=0,v=0;p.prototype.Gm=function(a){m(this.qa,this.Na,this.Ia,this.Ga);a.left=w;a.right=v;m(this.ra,this.Oa,this.Ja,this.Ha);a.top=w;a.bottom=v};p.prototype.Pb= function(a,d){var c=this.qa,k=this.ra,f=this.Na-c,e=this.Oa-k,g=this.Ia-c,q=this.Ja-k,z=a-c,y=d-k,B=f*f+e*e,C=f*g+e*q,e=f*z+e*y,h=g*g+q*q,b=g*z+q*y,t=1/(B*h-C*C),f=(h*e-C*b)*t,B=(B*b-C*e)*t;if(0<=f&&0f+B)return!0;f=this.Ga-c;e=this.Ha-k;B=f*f+e*e;C=f*g+e*q;e=f*z+e*y;t=1/(B*h-C*C);f=(h*e-C*b)*t;B=(B*b-C*e)*t;return 0<=f&&0f+B};p.prototype.Xd=function(a,d){if(d)switch(a){case 0:return this.qa;case 1:return this.Na;case 2:return this.Ia;case 3:return this.Ga;case 4:return this.qa;default:return this.qa}else switch(a){case 0:return this.ra; case 1:return this.Oa;case 2:return this.Ja;case 3:return this.Ha;case 4:return this.ra;default:return this.ra}};p.prototype.qo=function(){return(this.qa+this.Na+this.Ia+this.Ga)/4};p.prototype.ro=function(){return(this.ra+this.Oa+this.Ja+this.Ha)/4};p.prototype.xn=function(a){var d=a.qo(),c=a.ro();if(this.Pb(d,c))return!0;d=this.qo();c=this.ro();if(a.Pb(d,c))return!0;var k,f,e,g,q,z,y,B;for(y=0;4>y;y++)for(B=0;4>B;B++)if(d=this.Xd(y,!0),c=this.Xd(y,!1),k=this.Xd(y+1,!0),f=this.Xd(y+1,!1),e=a.Xd(B, !0),g=a.Xd(B,!1),q=a.Xd(B+1,!0),z=a.Xd(B+1,!1),pa(d,c,k,f,e,g,q,z))return!0;return!1};ra=p;sa=function(a,d){for(var c in d)d.hasOwnProperty(c)&&(a[c]=d[c]);return a};ta=function(a,d){var c,k;d=V(d);if(!(0>d||d>=a.length)){c=d;for(k=a.length-1;cc?c:a};Y=function(a){return a/(180/ma)};Ca=function(a){return 180/ma*a};Da=function(a){a%=360;0>a&&(a+=360);return a};Ea=function(a){a%=2*ma;0>a&&(a+=2*ma);return a};Fa=function(a){return Da(Ca(a))};Ga=function(a){return Ea(Y(a))};Ha=function(a,d,c,k){return Math.atan2(k-d,c-a)};Ia=function(a,d){if(a===d)return 0;var c=Math.sin(a),k=Math.cos(a),f=Math.sin(d),e=Math.cos(d),c=c*f+k*e;return 1<=c?0:-1>=c?ma:Math.acos(c)}; Ja=function(a,d,c){var k=Math.sin(a),f=Math.cos(a),e=Math.sin(d),g=Math.cos(d);return Math.acos(k*e+f*g)>c?0=k*f-c*e};La=function(a,d,c,k){a=c-a;d=k-d;return Math.sqrt(a*a+d*d)};Ma=function(a,d){return!a!==!d};Na=function(a){for(var d in a)if(a.hasOwnProperty(d))return!0;return!1};Oa=function(a){for(var d in a)a.hasOwnProperty(d)&&delete a[d]};var A=+new Date;Pa=function(){if("undefined"!== typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-A};var k=!1,q=k=!1,u=!1;"undefined"!==typeof window&&(k=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),k=!k&&/safari/i.test(navigator.userAgent),q=/(iphone|ipod|ipad)/i.test(navigator.userAgent),u=window.c2ejecta); var K=!k&&!u&&!q&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;n.prototype.contains=function(a){return this.wd()?!1:K?this.fd.has(a):this.items&&this.items.hasOwnProperty(a)};n.prototype.add=function(a){if(K)this.fd.has(a)||(this.fd.add(a),this.Zd=!1);else{var d=a.toString(),c=this.items;c?c.hasOwnProperty(d)||(c[d]=a,this.dh++,this.Zd=!1):(this.items={},this.items[d]=a,this.dh=1,this.Zd=!1)}};n.prototype.remove=function(a){if(!this.wd())if(K)this.fd.has(a)&&(this.fd["delete"](a), this.Zd=!1);else if(this.items){a=a.toString();var d=this.items;d.hasOwnProperty(a)&&(delete d[a],this.dh--,this.Zd=!1)}};n.prototype.clear=function(){this.wd()||(K?this.fd.clear():(this.items=null,this.dh=0),X(this.rg),this.Zd=!0)};n.prototype.wd=function(){return 0===this.count()};n.prototype.count=function(){return K?this.fd.size:this.dh};var P=null,R=0;n.prototype.bu=function(){if(!this.Zd){if(K)X(this.rg),P=this.rg,R=0,this.fd.forEach(l),P=null,R=0;else{var a=this.rg;X(a);var d,c=0,k=this.items; if(k)for(d in k)k.hasOwnProperty(d)&&(a[c++]=k[d])}this.Zd=!0}};n.prototype.kd=function(){this.bu();return this.rg};ba=n;var I=new ba;Qa=function(a){var d,c;d=0;for(c=a.length;dc&&(c=e), gf&&(f=g);this.bi=d;this.ci=c;this.di=k;this.ai=f};h.prototype.xf=function(a,d,c){this.Qa.length=8;this.uc=4;var k=this.Qa;k[0]=a.left-d;k[1]=a.top-c;k[2]=a.right-d;k[3]=a.top-c;k[4]=a.right-d;k[5]=a.bottom-c;k[6]=a.left-d;k[7]=a.bottom-c;this.gi=a.right-a.left;this.fi=a.bottom-a.top;this.ja()};h.prototype.Ee=function(a,d,c,k,f){this.Qa.length=8;this.uc=4;var e=this.Qa;e[0]=a.qa-d;e[1]=a.ra-c;e[2]=a.Na-d;e[3]=a.Oa-c;e[4]=a.Ia-d;e[5]=a.Ja-c;e[6]=a.Ga-d;e[7]=a.Ha-c;this.gi=k;this.fi=f;this.ja()}; h.prototype.bp=function(a){this.uc=a.uc;xa(this.Qa,a.Qa);this.bi=a.bi;this.di=a.di;this.ci=a.ci;this.ai=a.ai};h.prototype.Yd=function(a,d,c){if(this.gi!==a||this.fi!==d||this.Jm!==c){this.gi=a;this.fi=d;this.Jm=c;var k,e,f,g,q,z=0,y=1,B=this.Lo,C=this.Qa;0!==c&&(z=Math.sin(c),y=Math.cos(c));c=0;for(f=this.uc;cG.length&&G.push(q), this.cells[k][f]=null);if(c)for(k=c.left,e=c.right;k<=e;++k)for(f=c.top,g=c.bottom;f<=g;++f)d&&d.Pb(k,f)||this.ie(k,f,!0).Qk(a)};a.prototype.uj=function(a,d){var c,k,e,f,g,q;c=this.Db(a.left);e=this.Eb(a.top);k=this.Db(a.right);for(g=this.Eb(a.bottom);c<=k;++c)for(f=e;f<=g;++f)(q=this.ie(c,f,!1))&&q.dump(d)};Xa=a;g.prototype.ie=function(a,d,k){var f;f=this.cells[a];return f?(f=f[d])?f:k?(f=c(this,a,d),this.cells[a][d]=f):null:k?(f=c(this,a,d),this.cells[a]={},this.cells[a][d]=f):null};g.prototype.Db= function(a){return V(a/this.hk)};g.prototype.Eb=function(a){return V(a/this.gk)};g.prototype.update=function(a,d,c){var k,f,e,g,q;if(d)for(k=d.left,f=d.right;k<=f;++k)for(e=d.top,g=d.bottom;e<=g;++e)if(!c||!c.Pb(k,e))if(q=this.ie(k,e,!1))q.remove(a),q.wd()&&(q.reset(),1E3>F.length&&F.push(q),this.cells[k][e]=null);if(c)for(k=c.left,f=c.right;k<=f;++k)for(e=c.top,g=c.bottom;e<=g;++e)d&&d.Pb(k,e)||this.ie(k,e,!0).Qk(a)};g.prototype.uj=function(a,d,c,k,f){var e,g;a=this.Db(a);d=this.Eb(d);c=this.Db(c); for(e=this.Eb(k);a<=c;++a)for(k=d;k<=e;++k)(g=this.ie(a,k,!1))&&g.dump(f)};g.prototype.et=function(a){var d,c,k,f,e;d=a.left;k=a.top;c=a.right;for(f=a.bottom;d<=c;++d)for(a=k;a<=f;++a)if(e=this.ie(d,a,!1))e.Sf=!1};Ya=g;var G=[];d.prototype.wd=function(){return this.hb.wd()};d.prototype.Qk=function(a){this.hb.add(a)};d.prototype.remove=function(a){this.hb.remove(a)};d.prototype.dump=function(a){ya(a,this.hb.kd())};aa=d;var F=[];e.prototype.wd=function(){if(!this.hb.length)return!0;if(this.hb.length> this.dd.count())return!1;this.xk();return!0};e.prototype.Qk=function(a){this.dd.contains(a)?(this.dd.remove(a),this.dd.wd()&&(this.xg=!1)):this.hb.length?(this.hb[this.hb.length-1].bd()>a.bd()&&(this.Sf=!1),this.hb.push(a)):(this.hb.push(a),this.Sf=!0)};e.prototype.remove=function(a){this.dd.add(a);this.xg=!0;30<=this.dd.count()&&this.xk()};e.prototype.xk=function(){this.xg&&(this.dd.count()===this.hb.length?this.reset():(Ra(this.hb,this.dd),this.dd.clear(),this.xg=!1))};e.prototype.mr=function(){this.Sf|| (this.hb.sort(f),this.Sf=!0)};e.prototype.reset=function(){X(this.hb);this.Sf=!0;this.dd.clear();this.xg=!1};e.prototype.dump=function(a){this.xk();this.mr();this.hb.length&&a.push(this.hb)};ca=e;var O="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");Za=function(a){return 0>=a||11<=a?"source-over":O[a-1]};ab=function(a,d,c){if(c)switch(a.xb=c.ONE,a.sb=c.ONE_MINUS_SRC_ALPHA,d){case 1:a.xb=c.ONE;a.sb=c.ONE;break;case 3:a.xb= c.ONE;a.sb=c.ZERO;break;case 4:a.xb=c.ONE_MINUS_DST_ALPHA;a.sb=c.ONE;break;case 5:a.xb=c.DST_ALPHA;a.sb=c.ZERO;break;case 6:a.xb=c.ZERO;a.sb=c.SRC_ALPHA;break;case 7:a.xb=c.ONE_MINUS_DST_ALPHA;a.sb=c.ZERO;break;case 8:a.xb=c.ZERO;a.sb=c.ONE_MINUS_SRC_ALPHA;break;case 9:a.xb=c.DST_ALPHA;a.sb=c.ONE_MINUS_SRC_ALPHA;break;case 10:a.xb=c.ONE_MINUS_DST_ALPHA,a.sb=c.SRC_ALPHA}};bb=function(a){return Math.round(1E6*a)/1E6};cb=function(a,d){return"string"!==typeof a||"string"!==typeof d||a.length!==d.length? !1:a===d?!0:a.toLowerCase()===d.toLowerCase()};db=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||cb(a.tagName,"canvas")?!0:!1}})();var Yb="undefined"!==typeof Float32Array?Float32Array:Array;function Zb(b){var p=new Yb(3);b&&(p[0]=b[0],p[1]=b[1],p[2]=b[2]);return p} function $b(b){var p=new Yb(16);b&&(p[0]=b[0],p[1]=b[1],p[2]=b[2],p[3]=b[3],p[4]=b[4],p[5]=b[5],p[6]=b[6],p[7]=b[7],p[8]=b[8],p[9]=b[9],p[10]=b[10],p[11]=b[11],p[12]=b[12],p[13]=b[13],p[14]=b[14],p[15]=b[15]);return p}function ac(b,p){p[0]=b[0];p[1]=b[1];p[2]=b[2];p[3]=b[3];p[4]=b[4];p[5]=b[5];p[6]=b[6];p[7]=b[7];p[8]=b[8];p[9]=b[9];p[10]=b[10];p[11]=b[11];p[12]=b[12];p[13]=b[13];p[14]=b[14];p[15]=b[15]} function bc(b,p){var m=p[0],n=p[1];p=p[2];b[0]*=m;b[1]*=m;b[2]*=m;b[3]*=m;b[4]*=n;b[5]*=n;b[6]*=n;b[7]*=n;b[8]*=p;b[9]*=p;b[10]*=p;b[11]*=p} function cc(b,p,m,n){n||(n=$b());var l,r,h,a,g,t,d,c,e=b[0],f=b[1];b=b[2];r=m[0];h=m[1];l=m[2];m=p[1];t=p[2];e===p[0]&&f===m&&b===t?(b=n,b[0]=1,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=1,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[10]=1,b[11]=0,b[12]=0,b[13]=0,b[14]=0,b[15]=1):(m=e-p[0],t=f-p[1],d=b-p[2],c=1/Math.sqrt(m*m+t*t+d*d),m*=c,t*=c,d*=c,p=h*d-l*t,l=l*m-r*d,r=r*t-h*m,(c=Math.sqrt(p*p+l*l+r*r))?(c=1/c,p*=c,l*=c,r*=c):r=l=p=0,h=t*r-d*l,a=d*p-m*r,g=m*l-t*p,(c=Math.sqrt(h*h+a*a+g*g))?(c=1/c,h*=c,a*=c,g*=c):g=a=h=0, n[0]=p,n[1]=h,n[2]=m,n[3]=0,n[4]=l,n[5]=a,n[6]=t,n[7]=0,n[8]=r,n[9]=g,n[10]=d,n[11]=0,n[12]=-(p*e+l*f+r*b),n[13]=-(h*e+a*f+g*b),n[14]=-(m*e+t*f+d*b),n[15]=1)} (function(){function b(a,g,h){this.me=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.ka=!!h;this.Pi=this.Yg=!1;this.si=0;this.Tj=1;this.pm=1E3;this.gu=(this.pm-this.Tj)/32768;this.ek=Zb([0,0,100]);this.Yn=Zb([0,0,0]);this.tp=Zb([0,1,0]);this.Uh=Zb([1,1,1]);this.Tm=!0;this.hj=$b();this.jc=$b();this.el=$b();this.pk=$b();this.A=a;this.version=0===this.A.getParameter(this.A.VERSION).indexOf("WebGL 2")?2:1;this.tn()}function p(a,g,h){this.A=a;this.Gh= g;this.name=h;this.rc=a.getAttribLocation(g,"aPos");this.xe=a.getAttribLocation(g,"aTex");this.Wn=a.getUniformLocation(g,"matP");this.cj=a.getUniformLocation(g,"matMV");this.dg=a.getUniformLocation(g,"opacity");this.nl=a.getUniformLocation(g,"colorFill");this.Xn=a.getUniformLocation(g,"samplerFront");this.mh=a.getUniformLocation(g,"samplerBack");this.nf=a.getUniformLocation(g,"destStart");this.lf=a.getUniformLocation(g,"destEnd");this.oh=a.getUniformLocation(g,"seconds");this.pl=a.getUniformLocation(g, "pixelWidth");this.ol=a.getUniformLocation(g,"pixelHeight");this.kh=a.getUniformLocation(g,"layerScale");this.jh=a.getUniformLocation(g,"layerAngle");this.ph=a.getUniformLocation(g,"viewOrigin");this.nh=a.getUniformLocation(g,"scrollPos");this.Ks=!!(this.pl||this.ol||this.oh||this.mh||this.nf||this.lf||this.kh||this.jh||this.ph||this.nh);this.ho=this.io=-999;this.gj=1;this.bo=this.ao=0;this.eo=this.$n=this.Zn=1;this.lo=this.ko=this.jo=this.no=this.mo=this.co=0;this.dl=[];this.fo=$b();this.dg&&a.uniform1f(this.dg, 1);this.nl&&a.uniform4f(this.nl,1,1,1,1);this.Xn&&a.uniform1i(this.Xn,0);this.mh&&a.uniform1i(this.mh,1);this.nf&&a.uniform2f(this.nf,0,0);this.lf&&a.uniform2f(this.lf,1,1);this.kh&&a.uniform1f(this.kh,1);this.jh&&a.uniform1f(this.jh,0);this.ph&&a.uniform2f(this.ph,0,0);this.nh&&a.uniform2f(this.nh,0,0);this.oh&&a.uniform1f(this.oh,0);this.Ye=!1}function m(a,g){return a[0]===g[0]&&a[1]===g[1]&&a[2]===g[2]&&a[3]===g[3]&&a[4]===g[4]&&a[5]===g[5]&&a[6]===g[6]&&a[7]===g[7]&&a[8]===g[8]&&a[9]===g[9]&& a[10]===g[10]&&a[11]===g[11]&&a[12]===g[12]&&a[13]===g[13]&&a[14]===g[14]&&a[15]===g[15]}function n(a,g){this.type=a;this.k=g;this.A=g.A;this.fc=this.yb=this.Co=0;this.R=this.yc=null;this.dp=[]}var l=$b();b.prototype.tn=function(){var a=this.A,g;this.Mn=1;this.ff=this.re=null;this.ri=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.ka?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)): a.disable(a.DEPTH_TEST);this.On=a.ONE;this.In=a.ONE_MINUS_SRC_ALPHA;this.Th=new Float32Array(8E3*(this.ka?3:2));this.Nh=new Float32Array(16E3);this.Ho=new Float32Array(32E3);this.Cl=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Cl);a.bufferData(a.ARRAY_BUFFER,this.Ho.byteLength,a.DYNAMIC_DRAW);this.Sh=Array(4);this.Mh=Array(4);for(g=0;4>g;g++)this.Sh[g]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Sh[g]),a.bufferData(a.ARRAY_BUFFER,this.Th.byteLength,a.DYNAMIC_DRAW),this.Mh[g]=a.createBuffer(), a.bindBuffer(a.ARRAY_BUFFER,this.Mh[g]),a.bufferData(a.ARRAY_BUFFER,this.Nh.byteLength,a.DYNAMIC_DRAW);this.od=0;this.Ms=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Ms);for(var h=new Uint16Array(12E3),d=g=0;12E3>g;)h[g++]=d,h[g++]=d+1,h[g++]=d+2,h[g++]=d,h[g++]=d+2,h[g++]=d+3,d+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,h,a.STATIC_DRAW);this.Dl=this.Ge=this.Ac=0;this.Ea=[];g=this.ka?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}": "attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";h=this.Eg({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},g,"");this.Ea.push(h);h=this.Eg({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"}, "attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","");this.Ea.push(h);h=this.Eg({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},g,"");this.Ea.push(h);h=this.Eg({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"}, g,"");this.Ea.push(h);for(var c in dc)dc.hasOwnProperty(c)&&this.Ea.push(this.Eg(dc[c],g,c));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Yc=[];this.Fc=0;this.eb=!1;this.Qm=this.gh=-1;this.If=null;this.wk=a.createFramebuffer();this.vi=this.vj=null;this.Em=!1;this.ka&&(this.vi=a.createRenderbuffer());this.Ie=Zb([0,0,0]);this.oo=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048"===h.name&&a.vertexAttribPointer(h.rc,4,a.FLOAT,!1,0,0));if(0"!==h.name&& a.vertexAttribPointer(h.rc,this.ka?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Mh[this.od]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Nh.subarray(0,this.Ge));h&&0<=h.xe&&""!==h.name&&a.vertexAttribPointer(h.xe,2,a.FLOAT,!1,0,0)}for(var b,a=0,h=this.Fc;ab||0>d)){var c= this.Jb();c.type=7;c.yb=1;c.R||(c.R=$b());c.R[0]=a;c.R[1]=h;c.R[2]=b;c.R[3]=d;this.eb=!1}};b.prototype.Xo=function(a){if(this.ka&&(a=!!a,this.Yg!==a)){var h=this.Jb();h.type=14;h.yb=a?1:0;this.eb=!1;this.Yg=a;this.vj=null;this.Yg?this.Lb(2):this.Lb(0)}};b.prototype.Wo=function(a){if(this.ka){var h=this.Jb();h.type=13;h.yb=a?1:0;this.eb=!1}};b.prototype.$m=function(){ac(this.el,l);this.vc();this.mc();var a=this.width/2,h=this.height/2;this.uf(-a,h,a,h,a,-h,-a,-h);ac(l,this.jc);this.mc()};b.prototype.Vo= function(a,h,b){this.Lb(3);var d=this.Jb();d.type=12;d.R||(d.R=$b());d.R[0]=a;d.R[1]=h;d.R[2]=b;d.R[3]=1;this.eb=!1};b.prototype.Pt=function(){this.Lb(0)};b.prototype.Ft=function(){this.Lb(2)};b.prototype.yt=function(){this.qd();this.A.flush()};var r=[],h={};b.prototype.Dq=function(){X(r);h={}};b.prototype.bg=function(a,b,p,d){b=!!b;p=!!p;var c=a.src+","+b+","+p+(b?",undefined":""),e=null;if("undefined"!==typeof a.src&&h.hasOwnProperty(c))return e=h[c],e.ei++,e;this.qd();var f=this.A,w=ga(a.width)&& ga(a.height),e=f.createTexture();f.bindTexture(f.TEXTURE_2D,e);f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var m=f.RGBA,l=f.RGBA,k=f.UNSIGNED_BYTE;if(d&&!this.me)switch(d){case 1:l=m=f.RGB;break;case 2:k=f.UNSIGNED_SHORT_4_4_4_4;break;case 3:k=f.UNSIGNED_SHORT_5_5_5_1;break;case 4:l=m=f.RGB,k=f.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!w&&b){d=document.createElement("canvas");d.width=ha(a.width);d.height=ha(a.height);var q=d.getContext("2d");"undefined"!==typeof q.imageSmoothingEnabled?q.imageSmoothingEnabled= p:(q.webkitImageSmoothingEnabled=p,q.mozImageSmoothingEnabled=p,q.msImageSmoothingEnabled=p);q.drawImage(a,0,0,a.width,a.height,0,0,d.width,d.height);f.texImage2D(f.TEXTURE_2D,0,m,l,k,d)}else f.texImage2D(f.TEXTURE_2D,0,m,l,k,a);b?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.REPEAT),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.REPEAT)):(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE));p?(f.texParameteri(f.TEXTURE_2D, f.TEXTURE_MAG_FILTER,f.LINEAR),(w||2<=this.version)&&this.Tm?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.LINEAR_MIPMAP_LINEAR),f.generateMipmap(f.TEXTURE_2D)):f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.LINEAR)):(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.NEAREST),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.NEAREST));f.bindTexture(f.TEXTURE_2D,null);this.re=null;e.Ne=a.width;e.Me=a.height;e.ei=1;e.Im=c;r.push(e);return h[c]=e};b.prototype.Fb=function(a,h,b,d,c){this.qd(); var e=this.A;this.me&&(d=!1);var f=e.createTexture();e.bindTexture(e.TEXTURE_2D,f);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,a,h,0,e.RGBA,d?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,null);c?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE));e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,b?e.LINEAR:e.NEAREST);e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MIN_FILTER,b?e.LINEAR:e.NEAREST);e.bindTexture(e.TEXTURE_2D,null);this.re=null;f.Ne=a;f.Me=h;r.push(f);return f};b.prototype.nm=function(a,h,b){this.qd();var d=this.A;this.me&&(b=!1);d.bindTexture(d.TEXTURE_2D,h);d.pixelStorei(d.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{d.texImage2D(d.TEXTURE_2D,0,d.RGBA,d.RGBA,b?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,a)}catch(c){console&&console.error&&console.error("Error updating WebGL texture: ",c)}d.bindTexture(d.TEXTURE_2D,null);this.re=null};b.prototype.deleteTexture= function(a){a&&("undefined"!==typeof a.ei&&1=d?a[3]:256>=d?a[2]:512>=d?a[1]:a[0]}function m(){try{return!!window.indexedDB}catch(a){return!1}}function n(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})} function l(a,d,c,k){try{var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=n;f.onerror=k;f.onsuccess=function(f){f=f.target.result;f.onerror=k;f.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:d}).onsuccess=c}}catch(e){k(e)}}function r(a,d,c){try{var k=indexedDB.open("_C2SaveStates");k.onupgradeneeded=n;k.onerror=c;k.onsuccess=function(k){k=k.target.result;k.onerror=c;var f=k.transaction(["saves"]).objectStore("saves").get(a);f.onsuccess=function(){f.result?d(f.result.data): d(null)}}}catch(f){c(f)}}function h(){x("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1e?(e*=d,5===b?(h=e*c/this.$a,1h&&(h=1/Math.ceil(1/h)),e=this.$a* h/c,h=this.Za*h/c,k=(a-e)/2,f=(d-h)/2,a=e,d=h):(k=(a-e)/2,a=e)):(h=a/e,5===b?(h=h*c/this.Za,1h&&(h=1/Math.ceil(1/h)),e=this.$a*h/c,h=this.Za*h/c,k=(a-e)/2,f=(d-h)/2,a=e):f=(d-h)/2,d=h)):e&&0===b&&(k=Math.floor((a-this.$a)/2),f=Math.floor((d-this.Za)/2),a=this.$a,d=this.Za),2>b&&(this.zg=c),this.pi=Math.round(a),this.Gg=Math.round(d),this.width=Math.round(a*c),this.height=Math.round(d*c),this.ca=!0,this.Dp?(this.I=this.width,this.H=this.height,this.cc=!0):this.widthe&&(this.H=this.I/b)):3===b&&(e=this.$a/this.Za,b=this.Zf/this.Yf,b>e?this.I=this.H*b:bc;)c++,a=e.shift(),this.Zo(a[0],a[1])};b.prototype.Rj=function(a,c){a.cocoonLazyLoad=!0;a.onerror=function(c){d=a.Hm=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",c)};this.Kc?a.src=c:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(c,function(d){a.src=d},function(k){d=a.Hm=!0;console&&console.error&& console.error("Error extracting image '"+c+"' from expansion file: ",k)}):(a.crossOrigin="anonymous",this.Ct(a,c)));this.tg.push(a)};b.prototype.Xr=function(a){var d,c;d=0;for(c=this.tg.length;d=b)b=5E4;a+=b;h.src&&(h.complete||h.loaded)&&!h.Hm?d+=b:k= !1}k&&this.wt&&this.Ag&&(w||(this.Ag.Cv(),w=!0),c=this.Ag.vv(),d+=c,cthis.we&&(this.Jc||500<=k&&this.Sn!=this.Nc)){a.clearRect(0, 0,e,h);var k=e/2,h=h/2,e=0===this.we&&this.ve.fj.complete,b=40*c,q=0,u=80*c,w;if(e){var p=this.ve.fj,u=p.width*c;w=p.height*c;b=u/2;q=w/2;a.drawImage(p,V(k-b),V(h-q),u,w)}1>=this.we?(k=V(k-b)+.5,h=V(h+(q+(e?12*c:0)))+.5,a.fillStyle=d?"red":"DodgerBlue",a.fillRect(k,h,Math.floor(u*this.Nc),6*c),a.strokeStyle="black",a.strokeRect(k,h,u,6*c),a.strokeStyle="white",a.strokeRect(k-1*c,h-1*c,u+2*c,8*c)):2===this.we&&(a.font=this.Kc?"12pt ArialMT":"12pt Arial",a.fillStyle=d?"#f00":"#999",a.Ev="middle",c= Math.round(100*this.Nc)+"%",e=a.measureText?a.measureText(c):null,a.fillText(c,k-(e?e.width:0)/2,h));this.Sn=this.Nc}else if(4===this.we){this.ir(a);g?g(function(){f.go()}):setTimeout(function(){f.go()},16);return}}setTimeout(function(){f.go()},this.Jc?10:100)}}};var A=-1,k="undefined"===typeof cr_is_preview?200:0,q=!0,u=!1,K=0,P=0,R="undefined"===typeof cr_is_preview?3E3:0,I=null,G=null,F=0;b.prototype.ir=function(a){if(!v){for(var c=Math.ceil(this.width),e=Math.ceil(this.height),f=this.ve.fj,h= this.ve.ut,b=this.ve.fu,g=0;4>g;++g)if(!f[g].complete||!h[g].complete||!b[g].complete)return;0===F&&(A=Date.now());var g=Date.now(),w=!1,m=a,l,n;q||u?(a.clearRect(0,0,c,e),I&&I.width===c&&I.height===e||(I=document.createElement("canvas"),I.width=c,I.height=e,G=I.getContext("2d")),m=G,w=!0,q&&1===F&&(A=Date.now())):a.globalAlpha=1;m.fillStyle="#333333";m.fillRect(0,0,c,e);256=R&&!u&&1<=this.Nc&&(u=!0,P=g);if(u&&g-P>=300+k||"undefined"!==typeof cr_is_preview&&1<=this.Nc&&500>Date.now()-A)v=!0,u=q=!1,this.ve=G=I=null;++F}};b.prototype.Is=function(){this.nb&&(this.canvas.parentNode.removeChild(this.nb),this.nb=this.Bl=null);this.Gj=Date.now();this.hf=Pa();var a,d,c;if(this.mm)for(a=0,d=this.u.length;aa||2===this.Qb&&dd&&(d=0),this.Se=d/=1E3,.51/this.so&&(this.Se= 1/this.so));this.Vi=a;this.Kf=this.Se*this.pg;this.ic.add(this.Kf);this.Sj.add(d);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Ri)&&!this.le;2<=this.Qb||a&&0d||2===k&&ca++;)this.Sm(this.Oe);a=0;for(d=this.rd.length;ad.ti.length&&d.ti.push(a)};var N=[];b.prototype.Pe=function(a,d,c,k,e,h){var f,b,q,g;if(!a)return null;var u=this.u[a[1]],w=u.ua.oe;if(this.Uf&&w&&!u.Yk||w&&!this.k&&11===a[0][11])return null; var p=d;w||(d=null);var l;u.ti.length?(l=u.ti.pop(),l.Vb=!0,u.ua.ea.call(l,u)):(l=new u.ua.ea(u),l.Vb=!1);!c||h||this.Bd.hasOwnProperty(a[2].toString())?l.uid=this.uh++:l.uid=a[2];this.Bd[l.uid.toString()]=l;l.Mo=this.wo++;l.Ze=u.e.length;f=0;for(b=this.Hc.length;fa&&(a=0);a>=this.da.N.length&&(a=this.da.N.length-1);return this.da.N[a]};b.prototype.kk=function(a){var d,c;d=0;for(c=a.length;dg;++g)if(l=2*g-1,a.x=f+d*q*l,a.y=e+c*q*l,a.C(),!this.lc(a,h))if(h=this.Mb(a))b=h;else return b&&this.tj(a,d*l,c*l,b),!0;a.x=f;a.y=e;a.C();return!1};b.prototype.tj=function(a, d,c,k){var f=2,e,h=!1;e=!1;for(var b=a.x,q=a.y;16>=f;)e=1/f,f*=2,a.x+=d*e*(h?1:-1),a.y+=c*e*(h?1:-1),a.C(),this.lc(a,k)?e=h=!0:(e=h=!1,b=a.x,q=a.y);e&&(a.x=b,a.y=q,a.C())};b.prototype.Bt=function(a,d){var c=ea(d)?100:d,k=0,f=a.x,e=a.y,h=0,b=0,q=0,g=this.Mb(a);if(!g)return!0;for(;k<=c;){switch(h){case 0:b=0;q=-1;k++;break;case 1:b=1;q=-1;break;case 2:b=1;q=0;break;case 3:q=b=1;break;case 4:b=0;q=1;break;case 5:b=-1;q=1;break;case 6:b=-1;q=0;break;case 7:q=b=-1}h=(h+1)%8;a.x=V(f+b*k);a.y=V(e+q*k);a.C(); if(!this.lc(a,g)&&(g=this.Mb(a),!g))return!0}a.x=f;a.y=e;a.C();return!1};b.prototype.Ae=function(a,d){a.nd&&d.nd&&this.vf.push([a,d])};b.prototype.oq=function(a,d,c){var k,f,e;k=0;for(f=this.vf.length;k=this.ql.length&&this.ql.push([])};b.prototype.qt=function(){this.ej--};b.prototype.gn=function(){return this.ql[this.ej]}; b.prototype.sj=function(a){this.yi++;this.yi>=this.uk.length&&this.uk.push(new Ib);var d=this.zb();d.reset(a);return d};b.prototype.oj=function(){this.yi--};b.prototype.zb=function(){return this.uk[this.yi]};b.prototype.hn=function(a,d){for(var c,k,f,e,h,b;d;){c=0;for(k=d.xc.length;ce||e>=a.Va.length||(h=f[k],null===h&&(h=NaN),a.Va[e]=h));if(q.oe){e=d.w;a.j.T!==e.l&&(f=a.j,a.j=this.da.Ki(e.l),a.j?(f.kg(a,!0),a.j.yg(a,!0),a.C(),a.j.Eh(0)):(a.j=f,c||this.Bf(a)));a.x=e.x;a.y=e.y;a.width=e.w;a.height=e.h;a.Vc=e.zi;a.m=e.hasOwnProperty("a")?e.a:0;a.opacity=e.hasOwnProperty("o")?e.o:1;a.Ab=e.hasOwnProperty("hX")?e.hX:.5;a.Bb=e.hasOwnProperty("hY")?e.hY:.5;a.visible=e.hasOwnProperty("v")? e.v:!0;a.nd=e.hasOwnProperty("ce")?e.ce:!0;a.sh=e.hasOwnProperty("mts")?e.mts:-1;a.rb=e.hasOwnProperty("bm")?e.bm:0;a.Cg=Za(a.rb);this.A&&ab(a,a.rb,this.A);a.C();if(e.hasOwnProperty("fx"))for(c=0,f=e.fx.length;ch||(a.Ud[h]=e.fx[c].active,a.Ca[h]=e.fx[c].params);a.Uc()}if(b=d.behs)for(k in b)b.hasOwnProperty(k)&&(c=this.$r(a,parseInt(k,10)),0>c||a.K[c].wb(b[k]));d.data&&a.wb(d.data)};b.prototype.Xm=function(a,d,c){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+ "www/"+a,function(a){a.file(d,c)},c)};b.prototype.Vr=function(a,d){this.Xm("data.js",function(c){var k=new FileReader;k.onload=function(d){a(d.target.result)};k.onerror=d;k.readAsText(c)},d)};var S=[],L=0;b.prototype.rl=function(){if(S.length&&!(8<=L)){L++;var a=S.shift();this.Pq(a.filename,a.Wt,a.nr)}};b.prototype.Ur=function(a,d,c){var k=this;S.push({filename:a,Wt:function(a){L--;k.rl();d(a)},nr:function(a){L--;k.rl();c(a)}});this.rl()};b.prototype.Pq=function(a,d,c){this.Xm(a,function(a){var c= new FileReader;c.onload=function(a){d(a.target.result)};c.readAsArrayBuffer(a)},c)};b.prototype.Wr=function(a,d,c){var k="",e=a.toLowerCase(),f=e.substr(e.length-4),e=e.substr(e.length-5);".mp4"===f?k="video/mp4":".webm"===e?k="video/webm":".m4a"===f?k="audio/mp4":".mp3"===f&&(k="audio/mpeg");this.Ur(a,function(a){a=URL.createObjectURL(new Blob([a],{type:k}));d(a)},c)};b.prototype.Qs=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};b.prototype.Zo=function(a, d){this.Bn&&!this.Qs(d)?this.Wr(d,function(d){a.src=d},function(a){alert("Failed to load image: "+a)}):a.src=d};b.prototype.zj=function(a,d){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=d:(a.webkitImageSmoothingEnabled=d,a.mozImageSmoothingEnabled=d,a.msImageSmoothingEnabled=d)};Kb=function(a){return new b(document.getElementById(a))};Lb=function(a,d){return new b({dc:!0,width:a,height:d})};window.cr_createRuntime=Kb;window.cr_createDCRuntime=Lb;window.createCocoonJSRuntime= function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.$h=!0;document.body.appendChild(a);a=new b(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new b(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth, window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var b=document.getElementById("c2canvas");return b?b.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(b,p){var m=window.cr_getC2Runtime();m&&m.Lq(b,p)};window.cr_sizeCanvas=function(b,p){if(0!==b&&0!==p){var m=window.cr_getC2Runtime();m&&m.setSize(b,p)}};window.cr_setSuspended=function(b){var p=window.cr_getC2Runtime();p&&p.setSuspended(b)}; (function(){function b(a,c){this.b=a;this.Ve=null;this.scrollX=this.b.$a/2;this.scrollY=this.b.Za/2;this.scale=1;this.m=0;this.Nf=!0;this.name=c[0];this.nt=c[1];this.mt=c[2];this.width=c[1];this.height=c[2];this.sp=c[3];this.ep=c[4];this.T=c[5];var e=c[6],f,h;this.N=[];this.Vg=[];f=0;for(h=e.length;f=this.N.length&&(k=this.N.length-1);g.j=this.N[k];-1===g.j.e.indexOf(g)&&g.j.e.push(g);g.j.Af=!0}if(!h)for(a=0,e=this.N.length;ae?g.siblings.push(l.e[e]):l.$c&&(b=this.b.Pe(l.$c,g.j,!0,g.x,g.y,!0),this.b.pb(),l.Pj(),g.siblings.push(b),r.push(b)));a=0;for(e=this.ke.length;a< e;a++)g=this.ke[a],c=this.b.u[g[1]],c.hc||this.b.Pe(this.ke[a],null,!0);this.b.Oe=null;this.b.pb();if(this.b.wa&&!this.b.fb)for(a=0,e=this.b.u.length;athis.width- c&&(a=this.width-c);athis.height-c&&(a=this.height-c);ay&&(y=0);0>C&&(C=0);W>E&&(W=E);T>M&&(T=M);0>B&&(B=0);0>Q&&(Q=0);ua>E&&(ua=E);va>M&&(va=M);L.left=y/E;L.top=1-C/M;L.right=W/E;L.bottom=1-T/M}else L.left=z.left=0,L.top=z.top=0,L.right=z.right=1,L.bottom=z.bottom=1;oa=e&&(a.zh(b[0].Ta)||0!==t||0!==oa||1!==e.opacity||e.type.ua.to)||c&&!e&& 1!==c.opacity;a.Uo();if(oa){p[O]||(p[O]=a.Fb(E,M,this.b.oa));if(p[O].Ne!==E||p[O].Me!==M)a.deleteTexture(p[O]),p[O]=a.Fb(E,M,this.b.oa);a.Lb(0);a.wc(p[O]);H=va-Q;a.clearRect(B,M-Q-H,ua-B,H);e?e.tb(a):(a.Sa(this.b.Wa),a.Gd(c.opacity),a.vc(),a.translate(-J,-S),a.mc(),a.Pc(y,T,W,T,W,C,y,C,L));z.left=z.top=0;z.right=z.bottom=1;e&&(F=L.top,L.top=L.bottom,L.bottom=F);O=1;N=0}a.Gd(1);t=b.length-1;var $a=a.Fl(b[t].Ta)||!c&&!e&&!this.b.cc;n=F=0;for(r=b.length;ne||(c&&this.nc&&a.Kb&&a.Kb.right>=a.Kb.left&&(a.ja(),this.ob.update(a,a.Kb,null),a.Kb.set(0,0,-1,-1)),e===this.e.length-1?this.e.pop():(ta(this.e,e),this.Eh(e)),this.Qc=!0)};m.prototype.yg=function(a,c){a.Vc= this.e.length;this.e.push(a);c&&this.nc&&a.Kb&&a.C();this.Qc=!0};m.prototype.xt=function(a){this.e.unshift(a);this.Eh(0)};m.prototype.ht=function(a,c,e){var f=a.bd();c=c.bd();ta(this.e,f);fthis.aa||e.top>this.Z||(c.globalCompositeOperation=a.Cg,a.ac(c))}};m.prototype.Qj=function(){this.pd=!0;var a=this.$d(!0),c=this.$d(!1);this.pd=!1;this.b.kc&&(a=Math.round(a),c=Math.round(c));this.wj(a,c,null)};m.prototype.wj= function(a,c,e){var f=this.Gb();this.V=a;this.W=c;this.aa=a+1/f*this.b.I;this.Z=c+1/f*this.b.H;this.V>this.aa&&(a=this.V,this.V=this.aa,this.aa=a);this.W>this.Z&&(a=this.W,this.W=this.Z,this.Z=a);a=this.Rb();0!==a&&(e&&(e.translate(this.b.I/2,this.b.H/2),e.rotate(-a),e.translate(this.b.I/-2,this.b.H/-2)),this.Od.set(this.V,this.W,this.aa,this.Z),this.Od.offset((this.V+this.aa)/-2,(this.W+this.Z)/-2),this.op.cp(this.Od,a),this.op.Gm(this.Od),this.Od.offset((this.V+this.aa)/2,(this.W+this.Z)/2),this.V= this.Od.left,this.W=this.Od.top,this.aa=this.Od.right,this.Z=this.Od.bottom)};m.prototype.Re=function(a){if(this.ed=this.Hi){this.b.Wa||(this.b.Wa=a.Fb(this.b.I,this.b.H,this.b.oa));if(this.b.Wa.Ne!==this.b.I||this.b.Wa.Me!==this.b.H)a.deleteTexture(this.b.Wa),this.b.Wa=a.Fb(this.b.I,this.b.H,this.b.oa);a.wc(this.b.Wa)}this.pd=!0;var c=this.$d(!0),e=this.$d(!1);this.pd=!1;this.b.kc&&(c=Math.round(c),e=Math.round(e));this.wj(c,e,null);c=this.Gb();a.vc();a.scale(c,c);a.xj(-this.Rb());a.translate((this.V+ this.aa)/-2,(this.W+this.Z)/-2);a.mc();this.nc?(this.kb.left=this.ob.Db(this.V),this.kb.top=this.ob.Eb(this.W),this.kb.right=this.ob.Db(this.aa),this.kb.bottom=this.ob.Eb(this.Z),this.Qc||!this.kb.Ig(this.$f)?(l(this.zd),c=this.Hk(),this.Qc=!1,this.$f.Dg(this.kb)):c=this.zd):c=this.e;for(var f,b=null,e=c.length-1;0<=e;--e)f=c[e],f!==b&&(this.gr(c[e],a),b=f);this.nc&&(this.zd=c);this.Tc||(this.lk=this.b.Te++,a.Aj(this.lk),a.Vo(1,1,1),a.$m(),a.Ft())};m.prototype.tb=function(a){var c=0,e=0;if(this.ed= this.Hi||1!==this.opacity||0this.aa||e.top>this.Z||(c.Aj(a.Te),a.Ap?this.hr(a,c):(c.Lb(0),c.De(a.xb,a.sb),a.tb(c)))}};m.prototype.gr=function(a,c){if(a.visible&&0!==a.width&&0!==a.height){a.ja();var e=a.na;e.rightthis.aa||e.top>this.Z||(a.Te=this.b.Te++,0===a.rb&&1===a.opacity&&a.Hd&&a.Re&&(c.Aj(a.Te),a.Re(c)))}};m.prototype.hr=function(a,c){var e= a.X[0].Ta,f=a.X[0].index,b=this.Gb();if(1!==a.X.length||c.Fl(e)||c.zt(e)||(a.m||a.j.Rb())&&c.zh(e)||1!==a.opacity||a.type.ua.to)this.Xa.Kl(c,this,a,this.ed?this.b.Wa:this.Xa.Pg()),c.vc(),c.scale(b,b),c.xj(-this.Rb()),c.translate((this.V+this.aa)/-2,(this.W+this.Z)/-2),c.mc();else{c.Lb(e);c.De(a.xb,a.sb);c.qj(e)&&(this.b.ca=!0);var h=0,g=0,k=0,q=0;c.zh(e)&&(q=a.na,h=this.la(q.left,q.top,!0,!0),g=this.la(q.left,q.top,!1,!0),k=this.la(q.right,q.bottom,!0,!0),q=this.la(q.right,q.bottom,!1,!0),h=h/windowWidth, g=1-g/windowHeight,k=k/windowWidth,q=1-q/windowHeight);var l;a.jb&&a.jb.G?(l=a.jb.G,e=1/l.width,l=1/l.height):(e=1/a.width,l=1/a.height);c.mg(this.ed?this.b.Wa:this.Xa.Pg(),e,l,h,g,k,q,b,this.Rb(),this.V,this.W,(this.V+this.aa)/2,(this.W+this.Z)/2,this.b.ic.Aa,a.Ca[f]);a.tb(c)}};m.prototype.$d=function(a){var c=0,e=0,f=this.b.devicePixelRatio;this.b.ef&&(c*=f,e*=f);var f=this.b.Do,b=this.b.Eo,f=(this.Xa.scrollX-f)*this.Dd+f,b=(this.Xa.scrollY-b)*this.Ed+b,h,g,k=1/this.Gb(!1);h=f-this.b.I*k/2;g=b- this.b.H*k/2;h+=c*k;g+=e*k;e=this.Rb();0!==e&&(h-=f,g-=b,c=Math.cos(e),e=Math.sin(e),k=h*c-g*e,g=g*c+h*e,h=k+f,g+=b);return a?h:g};m.prototype.la=function(a,c,e,f){var b=this.b.Do,h=this.b.Eo,g=(this.Xa.scrollX-b)*this.Dd+b,k=(this.Xa.scrollY-h)*this.Ed+h,h=g,b=k,q=this.Rb();if(0!==q){a-=g;c-=k;var l=Math.cos(-q),q=Math.sin(-q),p=a*l-c*q;c=c*l+a*q;a=p+g;c+=k}g=1/this.Gb(!f);f?(h-=this.b.I*g/2,b-=this.b.H*g/2):(h-=this.b.width*g/2,b-=this.b.height*g/2);h=(a-h)/g;b=(c-b)/g;a=this.b.devicePixelRatio; this.b.ef&&!f&&(h/=a,b/=a);return e?h:b};m.prototype.ib=function(){var a,c,e,f={s:this.scale,a:this.m,vl:this.V,vt:this.W,vr:this.aa,vb:this.Z,v:this.visible,bc:this.Ec,t:this.Tc,px:this.Dd,py:this.Ed,o:this.opacity,zr:this.Wh,fx:[],cg:this.Fg,instances:[]};a=0;for(c=this.L.length;aa[1].index&&(c=a[0],a[0]=a[1],a[1]=c):2=w.length&&(w.length=a.length+1);w[a.length]||(w[a.length]=[]);f=w[a.length];c=0;for(d=f.length;c=c.length&&(c.length=this.of+1),c[this.of]=a):this.data=a};c.prototype.us=function(){var a=this.b.gn();return!this.parent||this.bh||!a||this.Si?this.data:this.of>=a.length||"undefined"===typeof a[this.of]?this.Pk:a[this.of]};c.prototype.Ra=function(){!this.parent||this.bh||this.Si||this.Qt(this.Pk)};Jb=c;e.prototype.toString=function(){return"include:"+this.Ug.toString()};e.prototype.Ma=function(){this.Ug=this.b.vk[this.Ls];this.sheet.sn.add(this); this.za=m(this.za);for(var a=this.parent;a;)a.group&&a.oi.push(this),a=a.parent;this.up()};e.prototype.Ra=function(){this.parent&&this.b.Bh(this.b.u);this.Ug.Mk||this.Ug.Ra(!0);this.parent&&this.b.tf(this.b.u)};e.prototype.up=function(){for(var a=this.parent;a;){if(a.group&&!a.Rg){this.qb=!1;return}a=a.parent}this.qb=!0};Tb=e;f.prototype.reset=function(a){this.pc=a;this.oc=this.bb=0;X(this.lp);this.sk=this.gf=!1};Ib=f})(); (function(){function b(b,a){this.sc=b;this.b=b.b;this.type=a[0];this.get=[this.Gr,this.Cr,this.Pr,this.Sr,this.or,this.Qr,this.Kr,this.yr,this.Jr,this.Or,this.pr,this.Nr,this.Ar,this.Lr,this.Hr,this.Ir,this.Dr,this.Er,this.xr,this.Rr,this.Mr,this.Fr,this.ur,this.Br][this.type];var g=null;this.Ad=this.Q=this.Da=this.lb=this.Kj=this.second=this.first=this.value=null;this.Gc=-1;this.Ic=null;this.Bp=-1;this.We=this.Rh=null;this.lg=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first= new Rb(b,a[1]);break;case 18:this.first=new Rb(b,a[1]);this.second=new Rb(b,a[2]);this.Kj=new Rb(b,a[3]);break;case 19:this.lb=this.b.Td(a[1]);this.lb!==Z.prototype.ub.random&&this.lb!==Z.prototype.ub.Cq||this.sc.$o();this.Da=[];this.Q=[];3===a.length?(g=a[2],this.Da.length=g.length+1):this.Da.length=1;break;case 20:this.Ad=this.b.u[a[1]];this.Gc=-1;this.lb=this.b.Td(a[2]);this.lg=a[3];Wb.Function&&this.lb===Wb.Function.prototype.ub.nu&&this.sc.$o();a[4]?this.Ic=new Rb(b,a[4]):this.Ic=null;this.Da= [];this.Q=[];6===a.length?(g=a[5],this.Da.length=g.length+1):this.Da.length=1;break;case 21:this.Ad=this.b.u[a[1]];this.lg=a[2];a[3]?this.Ic=new Rb(b,a[3]):this.Ic=null;this.Bp=a[4];break;case 22:this.Ad=this.b.u[a[1]];this.Ad.Ji(a[2]);this.Gc=this.Ad.Bk(a[2]);this.lb=this.b.Td(a[3]);this.lg=a[4];a[5]?this.Ic=new Rb(b,a[5]):this.Ic=null;this.Da=[];this.Q=[];7===a.length?(g=a[6],this.Da.length=g.length+1):this.Da.length=1;break;case 23:this.Rh=a[1],this.We=null}this.sc.gt(this.Ad);4<=this.type&&17>= this.type&&(this.first=new Rb(b,a[1]),this.second=new Rb(b,a[2]));if(g){var l,d;l=0;for(d=g.length;l=a||e<=-a)e%=a;0>e&&(e+=a);c.apply(n[e],g)};b.prototype.ur=function(b){var a=this.Ad,g=this.Da,l=this.Q,d=this.Ic,c=this.Gc,e=this.lb,f=this.sc.Id,n=a.ia(),v=n.ec();if(!v.length)if(n.Y.length)v=n.Y;else{this.lg?b.Wb(""):b.pa(0);return}g[0]=b;b.qf=a;b=p();m(l,g,b);d&&(d.get(b),b.gb()&&(f=b.data,v=a.e));--r;l=v.length;if(f>=l||f<=-l)f%=l;0>f&&(f+=l);f=v[f];v=0;a.D&&(v=f.type.Mf[a.sd]);e.apply(f.K[c+v],g)};b.prototype.Fr=function(b){var a=this.Ic,g=this.Ad,l=this.Bp,d=this.sc.Id, c=g.ia(),e=c.ec();if(!e.length)if(c.Y.length)e=c.Y;else{this.lg?b.Wb(""):b.pa(0);return}if(a){c=p();a.get(c);if(c.gb()){d=c.data;e=g.e;0!==e.length&&(d%=e.length,0>d&&(d+=e.length));d=g.Gk(d);g=d.Va[l];U(g)?b.Wb(g):b.S(g);--r;return}--r}a=e.length;if(d>=a||d<=-a)d%=a;0>d&&(d+=a);d=e[d];e=0;g.D&&(e=d.type.Ci[g.sd]);g=d.Va[l+e];U(g)?b.Wb(g):b.S(g)};b.prototype.Gr=function(b){b.type=Ub.Df;b.data=this.value};b.prototype.Cr=function(b){b.type=Ub.Cf;b.data=this.value};b.prototype.Pr=function(b){b.type= Ub.String;b.data=this.value};b.prototype.Sr=function(b){this.first.get(b);b.gb()&&(b.data=-b.data)};b.prototype.or=function(b){this.first.get(b);var a=p();this.second.get(a);b.gb()&&a.gb()&&(b.data+=a.data,a.Rf()&&b.eg());--r};b.prototype.Qr=function(b){this.first.get(b);var a=p();this.second.get(a);b.gb()&&a.gb()&&(b.data-=a.data,a.Rf()&&b.eg());--r};b.prototype.Kr=function(b){this.first.get(b);var a=p();this.second.get(a);b.gb()&&a.gb()&&(b.data*=a.data,a.Rf()&&b.eg());--r};b.prototype.yr=function(b){this.first.get(b); var a=p();this.second.get(a);b.gb()&&a.gb()&&(b.data/=a.data,b.eg());--r};b.prototype.Jr=function(b){this.first.get(b);var a=p();this.second.get(a);b.gb()&&a.gb()&&(b.data%=a.data,a.Rf()&&b.eg());--r};b.prototype.Or=function(b){this.first.get(b);var a=p();this.second.get(a);b.gb()&&a.gb()&&(b.data=Math.pow(b.data,a.data),a.Rf()&&b.eg());--r};b.prototype.pr=function(b){this.first.get(b);var a=p();this.second.get(a);a.Tf()||b.Tf()?this.rr(b,a):this.qr(b,a);--r};b.prototype.rr=function(b,a){b.Tf()&& a.Tf()?this.tr(b,a):this.sr(b,a)};b.prototype.tr=function(b,a){b.data+=a.data};b.prototype.sr=function(b,a){b.Tf()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.Wb(b.data.toString()+a.data)};b.prototype.qr=function(b,a){b.pa(b.data&&a.data?1:0)};b.prototype.Nr=function(b){this.first.get(b);var a=p();this.second.get(a);b.gb()&&a.gb()&&(b.data||a.data?b.pa(1):b.pa(0));--r};b.prototype.xr=function(b){this.first.get(b);b.data?this.second.get(b):this.Kj.get(b)};b.prototype.Ar=function(b){this.first.get(b); var a=p();this.second.get(a);b.pa(b.data===a.data?1:0);--r};b.prototype.Lr=function(b){this.first.get(b);var a=p();this.second.get(a);b.pa(b.data!==a.data?1:0);--r};b.prototype.Hr=function(b){this.first.get(b);var a=p();this.second.get(a);b.pa(b.dataa.data?1:0);--r};b.prototype.Er=function(b){this.first.get(b); var a=p();this.second.get(a);b.pa(b.data>=a.data?1:0);--r};b.prototype.Br=function(b){var a=this.We.us();fa(a)?b.S(a):b.Wb(a)};Rb=b;n.prototype.Rf=function(){return this.type===Ub.Cf};n.prototype.gb=function(){return this.type===Ub.Df||this.type===Ub.Cf};n.prototype.Tf=function(){return this.type===Ub.String};n.prototype.eg=function(){this.Rf()||(this.Tf()&&(this.data=parseFloat(this.data)),this.type=Ub.Cf)};n.prototype.pa=function(b){this.type=Ub.Df;this.data=Math.floor(b)};n.prototype.S=function(b){this.type= Ub.Cf;this.data=b};n.prototype.Wb=function(b){this.type=Ub.String;this.data=b};n.prototype.Rt=function(b){fa(b)?(this.type=Ub.Cf,this.data=b):U(b)?(this.type=Ub.String,this.data=b.toString()):(this.type=Ub.Df,this.data=0)};Qb=n;Ub={Df:0,Cf:1,String:2}})();function Z(b){this.b=b;this.Zb=[]} Z.prototype.ib=function(){var b={},p,m,n,l,r,h,a,g;b.waits=[];var t=b.waits,d;p=0;for(m=this.Zb.length;pd&&(a=d);b.S(a)};m.prototype.Kf=function(b){b.S(this.b.Kf)};m.prototype.pg=function(b){b.S(this.b.pg)};m.prototype.time=function(b){b.S(this.b.ic.Aa)};m.prototype.jd=function(b){b.pa(this.b.jd)};m.prototype.mj=function(b){b.pa(this.b.mj)};m.prototype.yk=function(b){b.pa(this.b.yk)};m.prototype.m=function(b,a,g,l,d){b.S(Ca(Ha(a, g,l,d)))};m.prototype.bt=function(b){b.pa(this.b.da.height)};m.prototype.left=function(b,a,g){b.Wb(U(a)?a.substr(0,g):"")};m.prototype.right=function(b,a,g){b.Wb(U(a)?a.substr(a.length-g):"")};m.prototype.replace=function(b,a,g,l){U(a)&&U(g)&&U(l)?b.Wb(a.replace(new RegExp(Va(g),"gi"),l)):b.Wb(U(a)?a:"")};m.prototype.trim=function(b,a){b.Wb(U(a)?a.trim():"")};m.prototype.Cq=function(b){var a=V(Math.random()*(arguments.length-1));b.Rt(arguments[a+1])};m.prototype.mk=function(b){b.S(this.b.mk/1E3)}; m.prototype.bj=function(b){b.S(this.b.bj)};n.ub=new m;n.It=function(){var b,a,g,p,d,c,e=this.b.zb();b=0;for(g=this.Zb.length;bthis.b.ic.Aa)continue;e.pc=p.Jg;e.oc=p.oc;e.bb=0;for(a in p.Xb)p.Xb.hasOwnProperty(a)&&(d=this.b.u[parseInt(a,10)].ia(),c=p.Xb[a],d.ya=c.To,xa(d.e,c.bf),d=c,X(d.bf),r.push(d));p.Jg.Gt();this.b.kk(p.za);p.Rm=!0}a=b=0;for(g=this.Zb.length;ba.aa||c.top>a.Z)},d.Au=function(){this.ja();var a=this.na,c=this.b.da;return 0>a.right||0>a.bottom||a.left>c.width||a.top>c.height},d.Mu=function(a,c,b){var d=this.ia(), e=d.ec();if(!e.length)return!1;var g=e[0],h=g,l=La(g.x,g.y,c,b),p,m,n;p=1;for(m=e.length;pl)l=n,h=g;d.yh(h);return!0},c.gv=function(a){this.x!==a&&(this.x=a,this.C())},c.hv=function(a){this.y!==a&&(this.y=a,this.C())},c.av=function(a,c){if(this.x!==a||this.y!==c)this.x=a,this.y=c,this.C()},c.bv=function(a,c){var b=a.ls(this);if(b){var d;b.Fk?(d=b.Fk(c,!0),b=b.Fk(c,!1)):(d=b.x,b=b.y);if(this.x!==d||this.y!==b)this.x=d,this.y=b,this.C()}},c.Fu= function(a){0!==a&&(this.x+=Math.cos(this.m)*a,this.y+=Math.sin(this.m)*a,this.C())},c.Eu=function(a,c){0!==c&&(this.x+=Math.cos(Y(a))*c,this.y+=Math.sin(Y(a))*c,this.C())},e.ov=function(a){a.S(this.x)},e.pv=function(a){a.S(this.y)},e.Kf=function(a){a.S(this.b.Og(this))});r&&(d.ru=function(a,c){return Vb(this.width,a,c)},d.ou=function(a,c){return Vb(this.height,a,c)},c.kq=function(a){this.width!==a&&(this.width=a,this.C())},c.Yu=function(a){this.height!==a&&(this.height=a,this.C())},c.cv=function(a, c){if(this.width!==a||this.height!==c)this.width=a,this.height=c,this.C()},e.nv=function(a){a.S(this.width)},e.vu=function(a){a.S(this.height)},e.ku=function(a){this.ja();a.S(this.na.left)},e.mu=function(a){this.ja();a.S(this.na.top)},e.lu=function(a){this.ja();a.S(this.na.right)},e.ju=function(a){this.ja();a.S(this.na.bottom)});h&&(d.Ep=function(a,c){return Ia(this.m,Y(c))<=Y(a)},d.Np=function(a){return Ka(this.m,Y(a))},d.Mp=function(a,c){var b=Ga(a),d=Ga(c),e=Ea(this.m);return Ka(d,b)?Ka(e,b)&& !Ka(e,d):!(!Ka(e,b)&&Ka(e,d))},c.Uu=function(a){a=Y(Da(a));isNaN(a)||this.m===a||(this.m=a,this.C())},c.Qu=function(a){0===a||isNaN(a)||(this.m+=Y(a),this.m=Ea(this.m),this.C())},c.Ru=function(a){0===a||isNaN(a)||(this.m-=Y(a),this.m=Ea(this.m),this.C())},c.Su=function(a,c){var b=Ja(this.m,Y(c),Y(a));isNaN(b)||this.m===b||(this.m=b,this.C())},c.Tu=function(a,c,b){a=Ja(this.m,Math.atan2(b-this.y,c-this.x),Y(a));isNaN(a)||this.m===a||(this.m=a,this.C())},c.dv=function(a,c){var b=Math.atan2(c-this.y, a-this.x);isNaN(b)||this.m===b||(this.m=b,this.C())},e.iu=function(a){a.S(Fa(this.m))});n||(d.pu=function(a,c,b){return Vb(this.Va[a],c,b)},d.xu=function(a){return this.Va[a]},d.Nu=function(a,c){var b=this.ia(),d=b.ec();if(!d.length)return!1;var e=d[0],g=e,h=e.Va[c],l,p,m;l=1;for(p=d.length;lh)h=m,g=e;b.yh(g);return!0},d.Lu=function(a){var c,b,d,e,g;if(this.b.dn().Sk){g=this.ia();if(g.ya)for(g.ya=!1,X(g.e),X(g.Y),d=this.e,c=0,b=d.length;ca?a=0:1e.j.index||d.j.index===e.j.index&&d.bd()>e.bd())e=d}else if(d.j.indexb)){var d=1===a;this.Ud[b]!==d&&(this.Ud[b]=d,this.Uc(),this.b.ca=!0)}}},c.Xu=function(a,c,b){if(this.b.k){var d=this.type.Ek(a);0>d||(a=this.type.L[d],d=this.Ca[d],c=Math.floor(c),0>c||c>=d.length||(1===this.b.k.rs(a.Ta,c)&&(b/=100),d[c]!==b&&(d[c]=b,a.qb&&(this.b.ca=!0))))}})};Ab=function(){this.fk=this.ak=!0;this.type.Yh=!0;this.b.ca=!0;var b,m,n=this.bk;b=0;for(m= n.length;bn;case 5:return b>=n;default:return!1}}})(); var dc={hardlight:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp sampler2D samplerBack;\nuniform mediump vec2 destStart;\nuniform mediump vec2 destEnd;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\nlowp vec4 back = texture2D(samplerBack, mix(destStart, destEnd, vTex));\nif (front.r * 0.299 + front.g * 0.587 + front.b * 0.114 <= 0.5)\n{\nfront *= back * 2.0;\n}\nelse\n{\nfront.rgb = 1.0 - ((1.0 - (2.0 * front.rgb - 1.0)) * (1.0 - back.rgb * front.a));\n}\ngl_FragColor = front;\n}",Ai:0, Bi:0,ok:!0,tc:!1,Zj:!1,Q:[]}};function ic(b){this.b=b} (function(){function b(){}function p(){}var m=ic.prototype;m.ma=function(b){this.ua=b;this.b=b.b};m.ma.prototype.P=function(){};m.ea=function(b){this.type=b;this.b=b.b};var n=m.ea.prototype;n.P=function(){this.b.fb?x("[Construct 2] Button plugin not supported on this platform - the object will not be created"):(this.Xg=1===this.n[0],this.qc=document.createElement("input"),this.fa=this.Xg?document.createElement("label"):this.qc,this.Ui=null,this.qc.type=this.Xg?"checkbox":"button",this.qc.id=this.n[6], jQuery(this.fa).appendTo(this.b.ji?this.b.ji:"body"),this.Xg?(jQuery(this.qc).appendTo(this.fa),this.Ui=document.createTextNode(this.n[1]),jQuery(this.fa).append(this.Ui),this.qc.checked=0!==this.n[7],jQuery(this.fa).css("font-family","sans-serif"),jQuery(this.fa).css("display","inline-block"),jQuery(this.fa).css("color","black")):this.qc.value=this.n[1],this.fa.title=this.n[2],this.qc.disabled=0===this.n[4],this.sq=0!==this.n[5],this.Ue=!1,0===this.n[3]&&(jQuery(this.fa).hide(),this.visible=!1,this.Ue= !0),this.qc.onclick=function(b){return function(m){m.stopPropagation();b.b.Qf=!0;b.b.trigger(ic.prototype.q.rm,b);b.b.Qf=!1}}(this),this.fa.addEventListener("touchstart",function(b){b.stopPropagation()},!1),this.fa.addEventListener("touchmove",function(b){b.stopPropagation()},!1),this.fa.addEventListener("touchend",function(b){b.stopPropagation()},!1),jQuery(this.fa).mousedown(function(b){b.stopPropagation()}),jQuery(this.fa).mouseup(function(b){b.stopPropagation()}),jQuery(this.fa).keydown(function(b){b.stopPropagation()}), jQuery(this.fa).keyup(function(b){b.stopPropagation()}),this.Qn=this.Rn=this.Hn=this.Nn=this.Pn=this.Ln=0,this.yp(!0),this.b.$l(this))};n.ib=function(){var b={tooltip:this.fa.title,disabled:!!this.qc.disabled};this.Xg?(b.checked=!!this.qc.checked,b.text=this.Ui.nodeValue):b.text=this.fa.value;return b};n.wb=function(b){this.fa.title=b.tooltip;this.qc.disabled=b.disabled;this.Xg?(this.qc.checked=b.checked,this.Ui.nodeValue=b.text):this.fa.value=b.text};n.Cd=function(){this.b.fb||(jQuery(this.fa).remove(), this.fa=null)};n.Yb=function(){this.yp()};n.yp=function(b){if(!this.b.fb){var m=this.j.la(this.x,this.y,!0),h=this.j.la(this.x,this.y,!1),a=this.j.la(this.x+this.width,this.y+this.height,!0),g=this.j.la(this.x+this.width,this.y+this.height,!1),n=this.b.width/this.b.devicePixelRatio,d=this.b.height/this.b.devicePixelRatio;!this.visible||!this.j.visible||0>=a||0>=g||m>=n||h>=d?(this.Ue||jQuery(this.fa).hide(),this.Ue=!0):(1>m&&(m=1),1>h&&(h=1),a>=n&&(a=n-1),g>=d&&(g=d-1),n=window.innerWidth,d=window.innerHeight, b||this.Ln!==m||this.Pn!==h||this.Nn!==a||this.Hn!==g||this.Rn!==n||this.Qn!==d?(this.Ln=m,this.Pn=h,this.Nn=a,this.Hn=g,this.Rn=n,this.Qn=d,this.Ue&&(jQuery(this.fa).show(),this.Ue=!1),b=Math.round(m)+jQuery(this.b.canvas).offset().left,n=Math.round(h)+jQuery(this.b.canvas).offset().top,jQuery(this.fa).css("position","absolute"),jQuery(this.fa).offset({left:b,top:n}),jQuery(this.fa).width(Math.round(a-m)),jQuery(this.fa).height(Math.round(g-h)),this.sq&&jQuery(this.fa).css("font-size",this.j.Gb(!0)/ this.b.devicePixelRatio-.2+"em")):this.Ue&&(jQuery(this.fa).show(),this.Ue=!1))}};n.ac=function(){};n.tb=function(){};b.prototype.rm=function(){return!0};m.q=new b;p.prototype.jq=function(b){this.b.fb||(this.visible=0!==b)};m.Fa=new p;m.ub=new function(){}})();function jc(b){this.b=b} (function(){function b(){}var p=jc.prototype;p.ma=function(b){this.ua=b;this.b=b.b};p.ma.prototype.P=function(){};p.ea=function(b){this.type=b;this.b=b.b;this.Xf=Array(256);this.Ph=Array(256);this.Pd=0};var m=p.ea.prototype;m.P=function(){var b=this;this.b.fb||(jQuery(document).keydown(function(m){b.xl(m)}),jQuery(document).keyup(function(m){b.yl(m)}))};var n=[32,33,34,35,36,37,38,39,40,44];m.xl=function(b){var m=!1;window!=window.top&&-1b;++b)if(this.Xf[b]){this.Xf[b]=!1;this.Pd=b;this.b.trigger(jc.prototype.q.qm,this);var m=this.b.trigger(jc.prototype.q.wm,this),h=this.b.trigger(jc.prototype.q.vm,this);if(m||h)this.Ph[b]=!0}};m.ib=function(){return{triggerKey:this.Pd}};m.wb=function(b){this.Pd=b.triggerKey};b.prototype.Op=function(b){return this.Xf[b]};b.prototype.um=function(b){return b===this.Pd};b.prototype.Tp=function(){return!0}; b.prototype.qm=function(){return!0};b.prototype.wm=function(b){return b===this.Pd};b.prototype.$p=function(b){return b===this.Pd};b.prototype.vm=function(b){return b===this.Pd};p.q=new b;p.Fa=new function(){};p.ub=new function(){}})();function hc(b){this.b=b} (function(){function b(){if(0===this.qk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var c=a.getContext("2d");this.ng?c.drawImage(this.G,this.hg,this.ig,this.width,this.height,0,0,this.width,this.height):c.drawImage(this.G,0,0,this.width,this.height);this.qk=a.toDataURL("image/png")}return this.qk}function p(){}function m(a){a[0]=0;a[1]=0;a[2]=0;e.push(a)}function n(a,c){return athis.F&&(this.F=0);this.F>=this.ta.frames.length&&(this.F=this.ta.frames.length-1);var a=this.ta.frames[this.F];this.M.Fh(a.nj);this.Ab=a.Ab;this.Bb=a.Bb;this.Hf=this.ta.speed;this.ge=this.ta.Ml;1===this.type.Nb.length&&1===this.type.Nb[0].frames.length||0===this.Hf||this.b.$l(this);this.Vb?this.Wc.reset():this.Wc=new Ua;this.td=this.Wc.Aa;this.Ke=!0;this.md=0;this.Je=!0;this.jk=this.Cm="";this.Aq=0;this.ik=-1;this.type.ml();var c,b,d,e,f,g,h,a=0;for(c=this.type.Nb.length;athis.F&&(this.F=0);this.F>=this.ta.frames.length&&(this.F=this.ta.frames.length-1);this.Hf=a.cas;this.td=a.fs;this.md=a.ar;this.Wc.reset();this.Wc.Aa=a.at;this.Ke=a.hasOwnProperty("ap")?a.ap:!0;this.Je=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.ge=a.rt:this.ge=this.ta.Ml;this.jb=this.ta.frames[this.F];this.qi=this.jb.B;this.M.Fh(this.jb.nj);this.Ab=this.jb.Ab;this.Bb=this.jb.Bb};c.$j=function(a){this.F= a?0:this.ta.frames.length-1;this.Ke=!1;this.Cm=this.ta.name;this.b.trigger(hc.prototype.q.Sp,this);this.b.trigger(hc.prototype.q.Rp,this);this.md=0};c.$h=function(){return this.Wc.Aa};c.Yb=function(){this.Wc.add(this.b.Og(this));this.jk.length&&this.Mq();0<=this.ik&&this.Nq();var a=this.Wc.Aa,c=this.ta,b=c.frames[this.F],d=b.duration/this.Hf;this.Ke&&a>=this.td+d&&(this.Je?this.F++:this.F--,this.td+=d,this.F>=c.frames.length&&(c.Fo?(this.Je=!1,this.F=c.frames.length-2):c.loop?this.F=this.ge:(this.md++, this.md>=c.Ll?this.$j(!1):this.F=this.ge)),0>this.F&&(c.Fo?(this.F=1,this.Je=!0,c.loop||(this.md++,this.md>=c.Ll&&this.$j(!0))):c.loop?this.F=this.ge:(this.md++,this.md>=c.Ll?this.$j(!0):this.F=this.ge)),0>this.F?this.F=0:this.F>=c.frames.length&&(this.F=c.frames.length-1),a>this.td+c.frames[this.F].duration/this.Hf&&(this.td=a),a=c.frames[this.F],this.Ef(b,a),this.b.ca=!0)};c.an=function(a){var c,b,d;c=0;for(b=this.type.Nb.length;cthis.F&&(this.F=0),this.F>=this.ta.frames.length&&(this.F=this.ta.frames.length-1),1===this.Aq&&(this.F=0),this.Ke=!0,this.td=this.Wc.Aa,this.Je=!0,this.Ef(a,this.ta.frames[this.F]),this.b.ca=!0)};c.Nq=function(){var a=this.ta.frames[this.F], c=this.F;this.F=V(this.ik);0>this.F&&(this.F=0);this.F>=this.ta.frames.length&&(this.F=this.ta.frames.length-1);c!==this.F&&(this.Ef(a,this.ta.frames[this.F]),this.td=this.Wc.Aa,this.b.ca=!0);this.ik=-1};c.Ef=function(a,c){var b=a.width,d=a.height,e=c.width,f=c.height;b!=e&&(this.width*=e/b);d!=f&&(this.height*=f/d);this.Ab=c.Ab;this.Bb=c.Bb;this.M.Fh(c.nj);this.C();this.jb=c;this.qi=c.B;b=0;for(d=this.K.length;be||e>=d.length)return c?this.x:this.y;var f=(d[e][1]-b.Ab)*this.width,d=d[e][2],d=(d-b.Bb)*this.height,b=Math.cos(this.m);e=Math.sin(this.m);var g=f*b-d*e,d=d*b+f*e,f=g+this.x,d=d+this.y;return c?f:d};var e=[],f=-2,w=[];p.prototype.Vp=function(a){if(!a)return!1;var c=this.b,b=c.dn(),d=b.type,e=null;b.J.collmemory?e=b.J.collmemory:(e={},b.J.collmemory=e); b.J.spriteCreatedDestroyCallback||(b.J.spriteCreatedDestroyCallback=!0,c.Am(function(a){var c=b.J.collmemory;a=a.uid;var d,e;for(d in c)c.hasOwnProperty(d)&&(e=c[d],e[0]===a||e[1]===a)&&(m(c[d]),delete c[d])}));var g=d.ia(),n=a.ia(),g=g.ec(),p,t,v,A,D,H,E,M=this.b.jd,J=M-1,S=c.zb().pc;for(t=0;t=g.length&&g.push(b(h,Object));d=g[d];d.text=f;d.width=a.sl(f);a.Md=ja(a.Md,d.width)}var n=kc.prototype;n.P=function(){};n.ma=function(a){this.ua=a;this.b=a.b};var l=n.ma.prototype;l.P=function(){this.D|| (this.G=new Image,this.b.Rj(this.G,this.Jj),this.B=null)};l.jg=function(){this.D||(this.B=null)};l.xh=function(){if(!this.D&&this.e.length){this.B||(this.B=this.b.k.bg(this.G,!1,this.b.oa,this.Oh));var a,b;a=0;for(b=this.e.length;a=d*f);n++){var p=n%d,r=Math.floor(n/d),t=k.charAt(n);if(this.b.k){var R=this.mi,I=p*l,G=r*m,p=(p+1)*l,r=(r+1)*m;void 0===R[t]&&(R[t]=b(g,qa));R[t].left=I;R[t].top=G;R[t].right=p;R[t].bottom=r}else R=this.li,p=p*c,r=r*h,I=c,G=h,void 0===R[t]&&(R[t]=b(a,Object)),R[t].x=p,R[t].y=r,R[t].Cp=I,R[t].mn=G}};var t= [];n.Vj=function(a){X(t);for(var b="",d,g=0;g=g)p(h,f,!0);else{var l=a.be,m=a.Gf;if(d.length*(a.ki*l+m)-m<=g&&-1===d.indexOf("\n")&&(m=a.sl(d),m<=g)){p(h,f,!0);f.push(b(h, Object));f[0].text=d;f[0].width=m;a.Md=m;a.hd=a.ae*l+a.lineHeight;return}this.Xj(a);a.hd=f.length*(a.ae*l+a.lineHeight)}}else p(h,f,!0)};n.Xj=function(a){var b=a.Vh,d=a.text,g=a.Cb,l=a.width;b&&(this.Vj(d),d=t);var n="",k,p,u,K=0,P=!1;for(u=0;ul&&(""===k?(m(a,K,n),n="",P=!0):(m(a,K,k),n=d[u]),K++,b||" "!==n||(n="")));n.replace(/\s\s*$/,"").length&&(m(a,K,n),K++);for(u=K;uthis.width+1E-5)break;void 0!==L&&(H=D,E=N,0===m&&1===p&&(H=Math.round(H),E=Math.round(E)),a.drawImage(this.G,L.x,L.y,L.Cp,L.mn,H,E,L.Cp*p,L.mn*p));D+=F*p+I;if(0===m&&b+D>l)break}}N+=r;if(0===m&&(N+r+t>this.height||d+N>k))break}}a.restore()}};var d=new ra;l.tb=function(a){a.Sa(this.B);a.Gd(this.opacity);if(this.text&&(this.Po(),!(this.heightthis.width+1E-5)break;if(void 0!== z){var y=this.ki*t,B=this.ae*t;J=M;S=r;0===n&&1===t&&(J=Math.round(J),S=Math.round(S));d.qa=J;d.ra=S;d.Na=J+y;d.Oa=S;d.Ga=J;d.Ha=S+B;d.Ia=J+y;d.Ja=S+B;0!==n&&(J=d,S=H,y=E,B=void 0,B=J.qa*S-J.ra*y,J.ra=J.ra*S+J.qa*y,J.qa=B,B=J.Na*S-J.Oa*y,J.Oa=J.Oa*S+J.Na*y,J.Na=B,B=J.Ga*S-J.Ha*y,J.Ha=J.Ha*S+J.Ga*y,J.Ga=B,B=J.Ia*S-J.Ja*y,J.Ja=J.Ja*S+J.Ia*y,J.Ia=B);d.offset(f,b);a.Pc(d.qa,d.ra,d.Na,d.Oa,d.Ia,d.Ja,d.Ga,d.Ha,z)}M+=D*t+F;if(0===n&&f+M>k)break}}r+=I;if(0===n&&(r+I+G>this.height||b+r>m))break}}};n.q=new function(){}; l.$h=function(a,b){var d=parseInt(b,10);this.de[a]!==d&&(this.de[a]=d,this.Sc=!0,this.b.ca=!0)};n.Fa=new function(){};n.ub=new function(){}})();function lc(b){this.b=b} (function(){function b(){return h.length?h.pop():{}}function p(a){var b,l;b=0;for(l=a.length;ba.aa||b.top>a.Z)this.b.k.deleteTexture(this.Tb),this.cd=this.pf=this.Tb=null}};l.Cd=function(){this.cd=this.pf=null;this.b.k&&this.Tb&& this.b.k.deleteTexture(this.Tb);this.Tb=null};l.$h=function(){this.font=this.Gi+" "+this.Ah.toString()+"pt "+this.Lf;this.Sc=!0;this.b.ca=!0};l.ac=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var h=1;b&&(h=Math.abs(this.j.Gb()),a.save(),a.scale(h,h));if(this.Sc||this.width!==this.kf)this.type.ua.Wj(this.text,this.Cb,a,this.width,this.Vh),this.Sc=!1,this.kf=this.width;this.ja();var h=b?0:this.ab.qa,d=b?0:this.ab.ra;this.b.kc&&(h=h+.5|0,d= d+.5|0);0===this.m||b||(a.save(),a.translate(h,d),a.rotate(this.m),d=h=0);var c=d+this.height,e=this.Hl,e=e+this.jl,f,l;1===this.Qd?d+=Math.max(this.height/2-this.Cb.length*e/2,0):2===this.Qd&&(d+=Math.max(this.height-this.Cb.length*e-2,0));for(l=0;l=c-e);l++);(0!==this.m||b)&&a.restore();this.jf=this.b.jd};l.tb=function(a){if(!(1>this.width|| 1>this.height)){var b=this.Sc||this.vo;this.vo=!1;var h=this.j.Gb(),d=this.j.Rb(),c=this.ze,e=h*this.width,f=h*this.height,l=Math.ceil(e),m=Math.ceil(f),n=Math.abs(l),k=Math.abs(m),p=this.b.I/2,r=this.b.H/2;this.pf||(this.cd=document.createElement("canvas"),this.cd.width=n,this.cd.height=k,this.Xi=n,this.Wi=k,b=!0,this.pf=this.cd.getContext("2d"));if(n!==this.Xi||k!==this.Wi)this.cd.width=n,this.cd.height=k,this.Tb&&(a.deleteTexture(this.Tb),this.Tb=null),b=!0;b&&(this.pf.clearRect(0,0,n,k),this.ac(this.pf, !0),this.Tb||(this.Tb=a.Fb(n,k,this.b.oa,this.b.df)),a.nm(this.cd,this.Tb,this.b.df));this.Xi=n;this.Wi=k;a.Sa(this.Tb);a.Gd(this.opacity);a.vc();a.translate(-p,-r);a.mc();var K=this.ab,b=this.j.la(K.qa,K.ra,!0,!0),n=this.j.la(K.qa,K.ra,!1,!0),k=this.j.la(K.Na,K.Oa,!0,!0),p=this.j.la(K.Na,K.Oa,!1,!0),r=this.j.la(K.Ia,K.Ja,!0,!0),P=this.j.la(K.Ia,K.Ja,!1,!0),R=this.j.la(K.Ga,K.Ha,!0,!0),K=this.j.la(K.Ga,K.Ha,!1,!0);if(this.b.kc||0===this.m&&0===d)var I=(b+.5|0)-b,G=(n+.5|0)-n,b=b+I,n=n+G,k=k+I,p=p+ G,r=r+I,P=P+G,R=R+I,K=K+G;0===this.m&&0===d?(k=b+l,p=n,r=k,P=n+m,R=b,K=P,c.right=1,c.bottom=1):(c.right=e/l,c.bottom=f/m);a.Pc(b,n,k,p,r,P,R,K,c);a.vc();a.scale(h,h);a.xj(-this.j.Rb());a.translate((this.j.V+this.j.aa)/-2,(this.j.W+this.j.Z)/-2);a.mc();this.jf=this.b.jd}};var r=[];n.Vj=function(a){X(r);for(var b="",h,d=0;d=d)p(g);else{if(100>=a.length&&-1===a.indexOf("\n")){var e=h.measureText(a).width;if(e<=d){p(g);g.push(b());g[0].text=a;g[0].width=e;return}}this.Xj(a,g,h,d,c)}else p(g)};n.Xj=function(a,g,l,d,c){c&&(this.Vj(a),a=r);var e="",f,n,p,A=0;for(p=0;p=g.length&&g.push(b()),e=m(e),n=g[A],n.text=e,n.width=l.measureText(e).width,A++,e=""):(f=e,e+=a[p], n=l.measureText(e).width,n>=d&&(A>=g.length&&g.push(b()),f=m(f),n=g[A],n.text=f,n.width=l.measureText(f).width,A++,e=a[p],c||" "!==e||(e="")));e.length&&(A>=g.length&&g.push(b()),e=m(e),n=g[A],n.text=e,n.width=l.measureText(e).width,A++);for(p=A;pa&&(a+=this.G.width);0>g&&(g+=this.G.height);b.translate(n,l);b.rotate(this.m);b.translate(a,g);b.fillRect(p-a,h-g,this.width,this.height);b.restore()};p.Re=function(b){this.tb(b)};p.tb= function(b){b.Sa(this.B);b.Gd(this.opacity);var n=this.ze;n.right=this.width/this.G.width;n.bottom=this.height/this.G.height;var l=this.ab;if(this.b.kc){var p=Math.round(this.x)-this.x,h=Math.round(this.y)-this.y;b.Pc(l.qa+p,l.ra+h,l.Na+p,l.Oa+h,l.Ia+p,l.Ja+h,l.Ga+p,l.Ha+h,n)}else b.Pc(l.qa,l.ra,l.Na,l.Oa,l.Ia,l.Ja,l.Ga,l.Ha,n)};b.q=new function(){};b.Fa=new function(){};b.ub=new function(){}})();function nc(b){this.b=b} (function(){function b(a){a%=c.length;0>a&&(a+=c.length);return a}function p(){var a,d,e,g;a=0;for(d=c.length;af.width,0>f.height));b.beginPath();b.moveTo(u[0], u[1]);f=2;for(h=u.length;f=Math.PI/2)};var H=0,E=0;n.yq=function(){for(var a=w,b,c,e;a=a%d,b=2*a,c=t[b],e=t[b+1],u.push(c),u.push(e),a!==v;++a);var f=this.ag,g=Ha(this.te,this.ue,k,q),a=this.te+Math.cos(g-Math.PI/2)*f,h=this.ue+Math.sin(g-Math.PI/2)*f,g=Ha(a,h,c,e),l=La(a,h,c,e),a=a+Math.cos(g)*(l+this.Ib),h=h+Math.sin(g)*(l+this.Ib);b=2*w;var m=t[b];b=t[b+1];var g=Ha(this.te,this.ue,k,q),n=this.te+Math.cos(g+Math.PI/2)*f,p=this.ue+Math.sin(g+Math.PI/2)*f,g= Ha(n,p,m,b),l=La(n,p,m,b),f=n+Math.cos(g)*(l+this.Ib),g=p+Math.sin(g)*(l+this.Ib);G=c;F=e;K=m;P=b;var r,A,D,l=a-c,n=h-e;r=f-m;A=g-b;D=-r*n+l*A;0===D?c=!1:(p=(-n*(c-m)+l*(e-b))/D,D=-r*n+l*A,0===D?c=!1:(m=(r*(e-b)-A*(c-m))/D,0<=p&&1>=p&&0<=m&&1>=m?(H=c+m*l,E=e+m*n,c=!0):c=!1));c?(u.push(H),u.push(E),O=H,N=E,R=H,I=E):(u.push(a),u.push(h),u.push(f),u.push(g),O=a,N=h,R=f,I=g)};n.zq=function(a,b,c,d,e){if(e>=this.Vn)return this.Ib;if(0>=e)return 0;a=La(a,b,c,d);a=Math.atan(a/(this.Vn-e));e=e*Math.tan(a); e>=this.Ib&&(e=this.Ib);0>e&&(e=0);return e};n.tb=function(b){b.Gd(this.opacity);this.ln();var d,e,h,k,l,m,n,p,q,r;d=0;for(e=a.length;du.length||(b.Sa(this.B),b.Om(u),-1h.width,0>h.height)),6>u.length||(b.Sa(this.B),b.Om(u),-1=this.Nd)){var b=this.b.Og(this.d);this.Nd-=b;0>=this.Nd?(this.Nd=0,this.d.visible=!0,this.b.ca=!0,this.b.trigger(oc.prototype.q.Yp,this.d)):(this.Kd-=b,0>=this.Kd&&(0===this.Kh?(this.d.visible=!1,this.Kh=1,this.Kd+=this.wl):(this.d.visible=!0,this.Kh=0,this.Kd+=this.zl),this.b.ca=!0))}};b.prototype.Yp=function(){return!0};p.q=new b;p.Fa=new function(){};p.ub=new function(){}})();function pc(b){this.b=b} (function(){function b(){}function p(){}var m=pc.prototype;m.ma=function(b){this.behavior=b;this.b=b.b};m.ma.prototype.P=function(){};m.ea=function(b,m){this.type=b;this.behavior=b.behavior;this.d=m;this.b=b.b;this.Ih=this.Ej=this.Dj=this.Nk=this.Bg=this.Hg=this.Vf=this.Wf=this.Dh=this.hh=!1;this.mb=null;this.kl=-1;this.qe=this.pe=0;this.Ng=!1;this.Xe=this.Dc=0;this.Fi=!0;this.ba=this.O=0};var n=m.ea.prototype;n.xp=function(){this.Ka=Math.cos(this.Pf);this.La=Math.sin(this.Pf);this.Be=Math.cos(this.Pf- Math.PI/2);this.Ce=Math.sin(this.Pf-Math.PI/2);this.Ka=bb(this.Ka);this.La=bb(this.La);this.Be=bb(this.Be);this.Ce=bb(this.Ce);this.Ak=this.ud;0>this.ud&&(this.Ka*=-1,this.La*=-1,this.ud=Math.abs(this.ud))};n.P=function(){this.fg=this.n[0];this.Ff=this.n[1];this.Jf=this.n[2];this.eh=this.n[3];this.Ak=this.ud=this.n[4];this.ij=this.n[5];this.tk=0!==this.n[6];this.cl=this.n[7]/1E3;this.Jq=1===this.n[8];this.enabled=0!==this.n[9];this.ug=!1;this.vg=this.b.Ld(this.d);this.ll=-1;this.zf=0;this.Pf=Y(90); this.xp();var b=this;this.Jq&&!this.b.fb&&(jQuery(document).keydown(function(m){b.xl(m)}),jQuery(document).keyup(function(m){b.yl(m)}));this.Vb||(this.uo=function(m){b.lt(m)});this.b.Am(this.uo);this.d.J.isPlatformBehavior=!0};n.ib=function(){return{ii:this.Nk,lfx:this.pe,lfy:this.qe,lfo:this.mb?this.mb.uid:-1,am:this.Dc,en:this.enabled,fall:this.Xe,ft:this.Fi,dx:this.O,dy:this.ba,ms:this.fg,acc:this.Ff,dec:this.Jf,js:this.eh,g:this.ud,g1:this.Ak,mf:this.ij,wof:this.ug,woj:this.vg?this.vg.uid:-1, ga:this.Pf,edj:this.tk,cdj:this.Bg,dj:this.Hg,sus:this.cl}};n.wb=function(b){this.Nk=b.ii;this.pe=b.lfx;this.qe=b.lfy;this.kl=b.lfo;this.Dc=b.am;this.enabled=b.en;this.Xe=b.fall;this.Fi=b.ft;this.O=b.dx;this.ba=b.dy;this.fg=b.ms;this.Ff=b.acc;this.Jf=b.dec;this.eh=b.js;this.ud=b.g;this.Ak=b.g1;this.ij=b.mf;this.ug=b.wof;this.ll=b.woj;this.Pf=b.ga;this.tk=b.edj;this.Bg=b.cdj;this.Hg=b.dj;this.cl=b.sus;this.Ih=this.Ej=this.Dj=this.Vf=this.Wf=this.Dh=this.hh=!1;this.zf=0;this.xp()};n.ld=function(){-1=== this.kl?this.mb=null:this.mb=this.b.Li(this.kl);-1===this.ll?this.vg=null:this.vg=this.b.Li(this.ll)};n.lt=function(b){this.mb==b&&(this.mb=null)};n.Cd=function(){this.mb=null;this.b.Dt(this.uo)};n.xl=function(b){switch(b.which){case 38:b.preventDefault();this.Wf=!0;break;case 37:b.preventDefault();this.hh=!0;break;case 39:b.preventDefault(),this.Dh=!0}};n.yl=function(b){switch(b.which){case 38:b.preventDefault();this.Vf=this.Wf=!1;break;case 37:b.preventDefault();this.hh=!1;break;case 39:b.preventDefault(), this.Dh=!1}};n.rf=function(){this.Wf=this.Dh=this.hh=!1};n.$h=function(){return 0>this.ud?-1:1};n.zn=function(){var b=null,m=null,h,a;h=this.d.x;a=this.d.y;this.d.x+=this.Ka;this.d.y+=this.La;this.d.C();if(this.mb&&this.b.lc(this.d,this.mb)&&(!this.b.gm(this.mb.type,fc)||this.mb.J.solidEnabled))return this.d.x=h,this.d.y=a,this.d.C(),this.mb;(b=this.b.Mb(this.d))||0!==this.Xe||(m=this.b.Ld(this.d,!0));this.d.x=h;this.d.y=a;this.d.C();if(b){if(this.b.lc(this.d,b))return null;this.Ng=!1;return b}if(m&& m.length){a=b=0;for(h=m.length;bthis.ij&&(this.ba=this.ij)),v&&(this.Vf=!0));this.ug=!!A;p==a&&(0>this.O?(this.O+=this.Jf*b,0this.O&&(this.O=0)));p&&!a&&(this.O=0this.O?this.O+(this.Ff+this.Jf)*b:this.O+this.Ff*b);this.O>this.fg?this.O=this.fg:this.O<-this.fg&&(this.O=-this.fg);p=!1;0!==this.O&&(e=this.d.x,f=this.d.y,m=this.O*b*this.Be,h=this.O*b*this.Ce,this.d.x+=this.Be*(1this.O?1:-1),this.Ce*(0>this.O?1:-1),m,!1)?!A||g||this.Ng||(e=this.d.x,f=this.d.y,this.d.x+=this.Ka,this.d.y+=this.La,this.b.Mb(this.d)?this.b.Oc(this.d,-this.Ka,-this.La,3,!1)||(this.d.x=e,this.d.y=f,this.d.C()):(this.d.x=e,this.d.y= f,this.d.C())):(this.d.x=e,this.d.y=f,this.d.C()),g||(this.O=0)):!n&&!v&&Math.abs(this.ba)this.ba?1:-1),this.La*(0>this.ba?1:-1),m,g,h)?(this.mb=h,this.pe=h.x,this.qe=h.y,(this.Ng=g)&&(p=!0),this.ba=0):(this.d.x=e,this.d.y=f,this.d.C(),this.ug=!0,g||(this.ba=0)))}3!==this.Dc&&0this.d.opacity?this.d.opacity=0:1=this.behavior.Hh&&h