// Generated by Construct 2, the HTML5 game and app creator :: https://www.construct.net 'use strict';var ba,ca,da,C,ea,ha,ia,V,ja,ka,la,na,oa,pa,qa,ra,sa,ta,ua,va,wa,ya,W,za,Aa,Ba,Ca,Ea,Y,Fa,Ga,Ha,Ia,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc={},dc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(c){return c.__proto__}:function(c){return c.constructor.prototype}); (function(){function c(a,d,e,l){this.set(a,d,e,l)}function h(){this.Wa=this.Va=this.Ya=this.Xa=this.eb=this.cb=this.Ka=this.Ja=0}function m(a,d,e,l){al?d:l):(q=ae?d:e):el?a:l):(q=de?a:e)}function n(){this.items=this.Ld=null;this.ji=0;H&&(this.Ld=new Set);this.sh=[];this.Ie=!0}function p(a){A[L++]=a}function t(){this.da=this.nl=this.y=this.Ql=0}function b(a){this.wb=[];this.uj=this.wj=this.xj=this.vj=0;this.Ti(a)}function a(a,d){this.Ul= a;this.Tl=d;this.cells={}}function k(a,d){this.Ul=a;this.Tl=d;this.cells={}}function v(a,d,e){var l;return O.length?(l=O.pop(),l.zm=a,l.x=d,l.y=e,l):new ba(a,d,e)}function d(a,d,e){this.zm=a;this.x=d;this.y=e;this.Bb=new ca}function e(a,d,e){var l;return w.length?(l=w.pop(),l.zm=a,l.x=d,l.y=e,l):new da(a,d,e)}function g(a,d,e){this.zm=a;this.x=d;this.y=e;this.Bb=[];this.Rg=!0;this.Jd=new ca;this.zh=!1}function f(a,d){return a.ud-d.ud}C=function(a){window.console&&window.console.log&&window.console.log(a)}; ea=function(a){window.console&&window.console.error&&window.console.error(a)};ha=function(a){return"undefined"===typeof a};ia=function(a){return"number"===typeof a};V=function(a){return"string"===typeof a};ja=function(a){return 0d;d<<=1)a=a|a>>d;return a+1};la=function(a){return 0>a?-a:a};na=function(a,d){return a>d?a:d};oa=function(a,d){return ax)return!1;dx)return!1;r=b-a+k-e;z=f-d+g-l;a=e-a;d=l-d;b=k-b;f=g-f;g=la(d*b-f*a);return la(b*z-f*r)>g?!1:la(a*z-d*r)<=g};c.prototype.set=function(a,d,e,l){this.left=a;this.top=d;this.right=e;this.bottom=l};c.prototype.Eh=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};c.prototype.width=function(){return this.right- this.left};c.prototype.height=function(){return this.bottom-this.top};c.prototype.offset=function(a,d){this.left+=a;this.top+=d;this.right+=a;this.bottom+=d;return this};c.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)};c.prototype.hv=function(a){return!(a.rightthis.right||a.top>this.bottom)};c.prototype.jv=function(a,d,e){return!(a.right+ dthis.right||a.top+e>this.bottom)};c.prototype.oc=function(a,d){return a>=this.left&&a<=this.right&&d>=this.top&&d<=this.bottom};c.prototype.Jh=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};ta=c;h.prototype.Si=function(a){this.Ja=a.left;this.Ka=a.top;this.cb=a.right;this.eb=a.top;this.Xa=a.right;this.Ya=a.bottom;this.Va=a.left;this.Wa=a.bottom};h.prototype.Uq=function(a,d){if(0===d)this.Si(a);else{var e= Math.sin(d),l=Math.cos(d),b=a.left*e,f=a.top*e,k=a.right*e,e=a.bottom*e,g=a.left*l,r=a.top*l,z=a.right*l,l=a.bottom*l;this.Ja=g-f;this.Ka=r+b;this.cb=z-f;this.eb=r+k;this.Xa=z-e;this.Ya=l+k;this.Va=g-e;this.Wa=l+b}};h.prototype.offset=function(a,d){this.Ja+=a;this.Ka+=d;this.cb+=a;this.eb+=d;this.Xa+=a;this.Ya+=d;this.Va+=a;this.Wa+=d;return this};var q=0,N=0;h.prototype.Io=function(a){m(this.Ja,this.cb,this.Xa,this.Va);a.left=q;a.right=N;m(this.Ka,this.eb,this.Ya,this.Wa);a.top=q;a.bottom=N};h.prototype.oc= function(a,d){var e=this.Ja,l=this.Ka,b=this.cb-e,f=this.eb-l,k=this.Xa-e,g=this.Ya-l,r=a-e,z=d-l,x=b*b+f*f,E=b*k+f*g,f=b*r+f*z,c=k*k+g*g,v=k*r+g*z,q=1/(x*c-E*E),b=(c*f-E*v)*q,x=(x*v-E*f)*q;if(0<=b&&0b+x)return!0;b=this.Va-e;f=this.Wa-l;x=b*b+f*f;E=b*k+f*g;f=b*r+f*z;q=1/(x*c-E*E);b=(c*f-E*v)*q;x=(x*v-E*f)*q;return 0<=b&&0b+x};h.prototype.Ge=function(a,d){if(d)switch(a){case 0:return this.Ja;case 1:return this.cb;case 2:return this.Xa;case 3:return this.Va;case 4:return this.Ja;default:return this.Ja}else switch(a){case 0:return this.Ka; case 1:return this.eb;case 2:return this.Ya;case 3:return this.Wa;case 4:return this.Ka;default:return this.Ka}};h.prototype.aq=function(){return(this.Ja+this.cb+this.Xa+this.Va)/4};h.prototype.bq=function(){return(this.Ka+this.eb+this.Ya+this.Wa)/4};h.prototype.tp=function(a){var d=a.aq(),e=a.bq();if(this.oc(d,e))return!0;d=this.aq();e=this.bq();if(a.oc(d,e))return!0;var l,b,f,k,g,r,z,x;for(z=0;4>z;z++)for(x=0;4>x;x++)if(d=this.Ge(z,!0),e=this.Ge(z,!1),l=this.Ge(z+1,!0),b=this.Ge(z+1,!1),f=a.Ge(x, !0),k=a.Ge(x,!1),g=a.Ge(x+1,!0),r=a.Ge(x+1,!1),sa(d,e,l,b,f,k,g,r))return!0;return!1};ua=h;va=function(a,d){for(var e in d)d.hasOwnProperty(e)&&(a[e]=d[e]);return a};wa=function(a,d){var e,l;d=qa(d);if(!(0>d||d>=a.length)){e=d;for(l=a.length-1;ee?e:a};Y=function(a){return a/(180/pa)};Fa=function(a){return 180/pa*a};Ga=function(a){a%=360;0>a&&(a+=360);return a};Ha=function(a){a%=2*pa;0>a&&(a+=2*pa);return a};Ia=function(a){return Ga(Fa(a))};Ka=function(a){return Ha(Y(a))};La=function(a,d,e,l){return Math.atan2(l-d,e-a)};Ma=function(a,d){if(a===d)return 0;var e=Math.sin(a),l=Math.cos(a),b=Math.sin(d),f=Math.cos(d),e=e*b+l*f;return 1<=e?0:-1>=e?pa:Math.acos(e)}; Na=function(a,d,e){var l=Math.sin(a),b=Math.cos(a),f=Math.sin(d),k=Math.cos(d);return Math.acos(l*f+b*k)>e?0=l*b-e*f};Pa=function(a,d,e,l,b,f){if(0===e)return f?a:d;var k=Math.sin(e);e=Math.cos(e);a-=l;d-=b;var g=a*k;a=a*e-d*k;d=d*e+g;return f?a+l:d+b};Qa=function(a,d,e,l){a=e-a;d=l-d;return Math.sqrt(a*a+d*d)};Ra=function(a,d){return!a!==!d};Ua=function(a){for(var d in a)if(a.hasOwnProperty(d))return!0; return!1};Va=function(a){for(var d in a)a.hasOwnProperty(d)&&delete a[d]};var B=+new Date;Wa=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()-B};var l=!1,r=l=!1,y=!1;"undefined"!==typeof window&&(l=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent), l=!l&&/safari/i.test(navigator.userAgent),r=/(iphone|ipod|ipad)/i.test(navigator.userAgent),y=window.c2ejecta);var H=!l&&!y&&!r&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;n.prototype.contains=function(a){return this.ae()?!1:H?this.Ld.has(a):this.items&&this.items.hasOwnProperty(a)};n.prototype.add=function(a){if(H)this.Ld.has(a)||(this.Ld.add(a),this.Ie=!1);else{var d=a.toString(),e=this.items;e?e.hasOwnProperty(d)||(e[d]=a,this.ji++,this.Ie=!1):(this.items={},this.items[d]= a,this.ji=1,this.Ie=!1)}};n.prototype.remove=function(a){if(!this.ae())if(H)this.Ld.has(a)&&(this.Ld["delete"](a),this.Ie=!1);else if(this.items){a=a.toString();var d=this.items;d.hasOwnProperty(a)&&(delete d[a],this.ji--,this.Ie=!1)}};n.prototype.clear=function(){this.ae()||(H?this.Ld.clear():(this.items=null,this.ji=0),W(this.sh),this.Ie=!0)};n.prototype.ae=function(){return 0===this.count()};n.prototype.count=function(){return H?this.Ld.size:this.ji};var A=null,L=0;n.prototype.Cw=function(){if(!this.Ie){if(H)W(this.sh), A=this.sh,L=0,this.Ld.forEach(p),A=null,L=0;else{var a=this.sh;W(a);var d,e=0,l=this.items;if(l)for(d in l)l.hasOwnProperty(d)&&(a[e++]=l[d])}this.Ie=!0}};n.prototype.xe=function(){this.Cw();return this.sh};ca=n;new ca;Xa=function(a,d){H?Ya(a,d.Ld):Za(a,d.xe())};Ya=function(a,d){var e,l,b,f;l=e=0;for(b=a.length;ee&&(e=f), kb&&(b=k);this.vj=d;this.wj=e;this.xj=l;this.uj=b};b.prototype.Si=function(a,d,e){this.wb.length=8;this.md=4;var l=this.wb;l[0]=a.left-d;l[1]=a.top-e;l[2]=a.right-d;l[3]=a.top-e;l[4]=a.right-d;l[5]=a.bottom-e;l[6]=a.left-d;l[7]=a.bottom-e;this.Aj=a.right-a.left;this.zj=a.bottom-a.top;this.Da()};b.prototype.nh=function(a,d,e,l,b){this.wb.length=8;this.md=4;var f=this.wb;f[0]=a.Ja-d;f[1]=a.Ka-e;f[2]=a.cb-d;f[3]=a.eb-e;f[4]=a.Xa-d;f[5]=a.Ya-e;f[6]=a.Va-d;f[7]=a.Wa-e;this.Aj=l;this.zj=b;this.Da()}; b.prototype.Tq=function(a){this.md=a.md;za(this.wb,a.wb);this.vj=a.vj;this.xj=a.xj;this.wj=a.wj;this.uj=a.uj};b.prototype.yg=function(a,d,e){if(this.Aj!==a||this.zj!==d||this.Lo!==e){this.Aj=a;this.zj=d;this.Lo=e;var l,b,f,k,g,r=0,z=1,x=this.Gq,E=this.wb;0!==e&&(r=Math.sin(e),z=Math.cos(e));e=0;for(f=this.md;eO.length&&O.push(g), this.cells[l][f]=null);if(e)for(l=e.left,b=e.right;l<=b;++l)for(f=e.top,k=e.bottom;f<=k;++f)d&&d.oc(l,f)||this.Te(l,f,!0).Fm(a)};a.prototype.Xk=function(a,d){var e,l,f,b,k,g;e=this.$b(a.left);f=this.ac(a.top);l=this.$b(a.right);for(k=this.ac(a.bottom);e<=l;++e)for(b=f;b<=k;++b)(g=this.Te(e,b,!1))&&g.dump(d)};cb=a;k.prototype.Te=function(a,d,l){var b;b=this.cells[a];return b?(b=b[d])?b:l?(b=e(this,a,d),this.cells[a][d]=b):null:l?(b=e(this,a,d),this.cells[a]={},this.cells[a][d]=b):null};k.prototype.$b= function(a){return qa(a/this.Ul)};k.prototype.ac=function(a){return qa(a/this.Tl)};k.prototype.update=function(a,d,e){var l,b,f,k,g;if(d)for(l=d.left,b=d.right;l<=b;++l)for(f=d.top,k=d.bottom;f<=k;++f)if(!e||!e.oc(l,f))if(g=this.Te(l,f,!1))g.remove(a),g.ae()&&(g.reset(),1E3>w.length&&w.push(g),this.cells[l][f]=null);if(e)for(l=e.left,b=e.right;l<=b;++l)for(f=e.top,k=e.bottom;f<=k;++f)d&&d.oc(l,f)||this.Te(l,f,!0).Fm(a)};k.prototype.Xk=function(a,d,e,l,b){var f,k;a=this.$b(a);d=this.ac(d);e=this.$b(e); for(f=this.ac(l);a<=e;++a)for(l=d;l<=f;++l)(k=this.Te(a,l,!1))&&k.dump(b)};k.prototype.xv=function(a){var d,e,l,b,f;d=a.left;l=a.top;e=a.right;for(b=a.bottom;d<=e;++d)for(a=l;a<=b;++a)if(f=this.Te(d,a,!1))f.Rg=!1};db=k;var O=[];d.prototype.ae=function(){return this.Bb.ae()};d.prototype.Fm=function(a){this.Bb.add(a)};d.prototype.remove=function(a){this.Bb.remove(a)};d.prototype.dump=function(a){Aa(a,this.Bb.xe())};ba=d;var w=[];g.prototype.ae=function(){if(!this.Bb.length)return!0;if(this.Bb.length> this.Jd.count())return!1;this.km();return!0};g.prototype.Fm=function(a){this.Jd.contains(a)?(this.Jd.remove(a),this.Jd.ae()&&(this.zh=!1)):this.Bb.length?(this.Bb[this.Bb.length-1].Cd()>a.Cd()&&(this.Rg=!1),this.Bb.push(a)):(this.Bb.push(a),this.Rg=!0)};g.prototype.remove=function(a){this.Jd.add(a);this.zh=!0;30<=this.Jd.count()&&this.km()};g.prototype.km=function(){this.zh&&(this.Jd.count()===this.Bb.length?this.reset():(Xa(this.Bb,this.Jd),this.Jd.clear(),this.zh=!1))};g.prototype.Lt=function(){this.Rg|| (this.Bb.sort(f),this.Rg=!0)};g.prototype.reset=function(){W(this.Bb);this.Rg=!0;this.Jd.clear();this.zh=!1};g.prototype.dump=function(a){this.km();this.Lt();this.Bb.length&&a.push(this.Bb)};da=g;var G="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");eb=function(a){return 0>=a||11<=a?"source-over":G[a-1]};fb=function(a,d,e){if(e)switch(a.Sb=e.ONE,a.Pb=e.ONE_MINUS_SRC_ALPHA,d){case 1:a.Sb=e.ONE;a.Pb=e.ONE;break;case 3:a.Sb= e.ONE;a.Pb=e.ZERO;break;case 4:a.Sb=e.ONE_MINUS_DST_ALPHA;a.Pb=e.ONE;break;case 5:a.Sb=e.DST_ALPHA;a.Pb=e.ZERO;break;case 6:a.Sb=e.ZERO;a.Pb=e.SRC_ALPHA;break;case 7:a.Sb=e.ONE_MINUS_DST_ALPHA;a.Pb=e.ZERO;break;case 8:a.Sb=e.ZERO;a.Pb=e.ONE_MINUS_SRC_ALPHA;break;case 9:a.Sb=e.DST_ALPHA;a.Pb=e.ONE_MINUS_SRC_ALPHA;break;case 10:a.Sb=e.ONE_MINUS_DST_ALPHA,a.Pb=e.SRC_ALPHA}};gb=function(a){return Math.round(1E6*a)/1E6};hb=function(a,d){return"string"!==typeof a||"string"!==typeof d||a.length!==d.length? !1:a===d?!0:a.toLowerCase()===d.toLowerCase()};ib=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||hb(a.tagName,"canvas")?!0:!1}})();var ec="undefined"!==typeof Float32Array?Float32Array:Array;function fc(c){var h=new ec(3);c&&(h[0]=c[0],h[1]=c[1],h[2]=c[2]);return h} function gc(c){var h=new ec(16);c&&(h[0]=c[0],h[1]=c[1],h[2]=c[2],h[3]=c[3],h[4]=c[4],h[5]=c[5],h[6]=c[6],h[7]=c[7],h[8]=c[8],h[9]=c[9],h[10]=c[10],h[11]=c[11],h[12]=c[12],h[13]=c[13],h[14]=c[14],h[15]=c[15]);return h}function hc(c,h){h[0]=c[0];h[1]=c[1];h[2]=c[2];h[3]=c[3];h[4]=c[4];h[5]=c[5];h[6]=c[6];h[7]=c[7];h[8]=c[8];h[9]=c[9];h[10]=c[10];h[11]=c[11];h[12]=c[12];h[13]=c[13];h[14]=c[14];h[15]=c[15]} function ic(c,h){var m=h[0],n=h[1];h=h[2];c[0]*=m;c[1]*=m;c[2]*=m;c[3]*=m;c[4]*=n;c[5]*=n;c[6]*=n;c[7]*=n;c[8]*=h;c[9]*=h;c[10]*=h;c[11]*=h} function jc(c,h,m,n){n||(n=gc());var p,t,b,a,k,v,d,e,g=c[0],f=c[1];c=c[2];t=m[0];b=m[1];p=m[2];m=h[1];v=h[2];g===h[0]&&f===m&&c===v?(c=n,c[0]=1,c[1]=0,c[2]=0,c[3]=0,c[4]=0,c[5]=1,c[6]=0,c[7]=0,c[8]=0,c[9]=0,c[10]=1,c[11]=0,c[12]=0,c[13]=0,c[14]=0,c[15]=1):(m=g-h[0],v=f-h[1],d=c-h[2],e=1/Math.sqrt(m*m+v*v+d*d),m*=e,v*=e,d*=e,h=b*d-p*v,p=p*m-t*d,t=t*v-b*m,(e=Math.sqrt(h*h+p*p+t*t))?(e=1/e,h*=e,p*=e,t*=e):t=p=h=0,b=v*t-d*p,a=d*h-m*t,k=m*p-v*h,(e=Math.sqrt(b*b+a*a+k*k))?(e=1/e,b*=e,a*=e,k*=e):k=a=b=0, n[0]=h,n[1]=b,n[2]=m,n[3]=0,n[4]=p,n[5]=a,n[6]=v,n[7]=0,n[8]=t,n[9]=k,n[10]=d,n[11]=0,n[12]=-(h*g+p*f+t*c),n[13]=-(b*g+a*f+k*c),n[14]=-(m*g+v*f+d*c),n[15]=1)} (function(){function c(a,b,c){this.be=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ha=!!c;this.lk=this.ai=!1;this.cm=0;this.Al=1;this.po=1E3;this.Iw=(this.po-this.Al)/32768;this.Rl=fc([0,0,100]);this.Kp=fc([0,0,0]);this.or=fc([0,1,0]);this.hj=fc([1,1,1]);this.So=!0;this.Fk=gc();this.Gc=gc();this.Vm=gc();this.$l=gc();this.C=a;this.version=0===this.C.getParameter(this.C.VERSION).indexOf("WebGL 2")?2:1;this.pp()}function h(a,b,c){this.C=a;this.Ui= b;this.name=c;this.Rc=a.getAttribLocation(b,"aPos");this.kf=a.getAttribLocation(b,"aTex");this.Ip=a.getUniformLocation(b,"matP");this.Bk=a.getUniformLocation(b,"matMV");this.ah=a.getUniformLocation(b,"opacity");this.an=a.getUniformLocation(b,"colorFill");this.Jp=a.getUniformLocation(b,"samplerFront");this.ti=a.getUniformLocation(b,"samplerBack");this.bg=a.getUniformLocation(b,"destStart");this.ag=a.getUniformLocation(b,"destEnd");this.wi=a.getUniformLocation(b,"seconds");this.cn=a.getUniformLocation(b, "pixelWidth");this.bn=a.getUniformLocation(b,"pixelHeight");this.si=a.getUniformLocation(b,"layerScale");this.ri=a.getUniformLocation(b,"layerAngle");this.xi=a.getUniformLocation(b,"viewOrigin");this.vi=a.getUniformLocation(b,"scrollPos");this.av=!!(this.cn||this.bn||this.wi||this.ti||this.bg||this.ag||this.si||this.ri||this.xi||this.vi);this.Sp=this.Tp=-999;this.Ek=1;this.Op=this.Np=0;this.Qp=this.Mp=this.Lp=1;this.Wp=this.Vp=this.Up=this.Yp=this.Xp=this.Pp=0;this.Um=[];this.Rp=gc();this.ah&&a.uniform1f(this.ah, 1);this.an&&a.uniform4f(this.an,1,1,1,1);this.Jp&&a.uniform1i(this.Jp,0);this.ti&&a.uniform1i(this.ti,1);this.bg&&a.uniform2f(this.bg,0,0);this.ag&&a.uniform2f(this.ag,1,1);this.si&&a.uniform1f(this.si,1);this.ri&&a.uniform1f(this.ri,0);this.xi&&a.uniform2f(this.xi,0,0);this.vi&&a.uniform2f(this.vi,0,0);this.wi&&a.uniform1f(this.wi,0);this.Pf=!1}function m(a,b){return a[0]===b[0]&&a[1]===b[1]&&a[2]===b[2]&&a[3]===b[3]&&a[4]===b[4]&&a[5]===b[5]&&a[6]===b[6]&&a[7]===b[7]&&a[8]===b[8]&&a[9]===b[9]&& a[10]===b[10]&&a[11]===b[11]&&a[12]===b[12]&&a[13]===b[13]&&a[14]===b[14]&&a[15]===b[15]}function n(a,b){this.type=a;this.A=b;this.C=b.C;this.Dd=this.Zb=this.sq=0;this.Y=this.Wc=null;this.Vq=[]}var p=gc();c.prototype.pp=function(){var a=this.C,b;this.Dp=1;this.Wf=this.cf=null;this.Jj=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.Ha?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)): a.disable(a.DEPTH_TEST);this.Ep=a.ONE;this.Cp=a.ONE_MINUS_SRC_ALPHA;this.yl=new Float32Array(8E3*(this.Ha?3:2));this.ol=new Float32Array(16E3);this.Cq=new Float32Array(32E3);this.xn=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.xn);a.bufferData(a.ARRAY_BUFFER,this.Cq.byteLength,a.DYNAMIC_DRAW);this.gj=Array(4);this.aj=Array(4);for(b=0;4>b;b++)this.gj[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.gj[b]),a.bufferData(a.ARRAY_BUFFER,this.yl.byteLength,a.DYNAMIC_DRAW),this.aj[b]=a.createBuffer(), a.bindBuffer(a.ARRAY_BUFFER,this.aj[b]),a.bufferData(a.ARRAY_BUFFER,this.ol.byteLength,a.DYNAMIC_DRAW);this.Td=0;this.dv=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.dv);for(var c=new Uint16Array(12E3),d=b=0;12E3>b;)c[b++]=d,c[b++]=d+1,c[b++]=d+2,c[b++]=d,c[b++]=d+2,c[b++]=d+3,d+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,c,a.STATIC_DRAW);this.yn=this.ph=this.ye=0;this.Ua=[];b=this.Ha?"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}";c=this.Fh({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}"},b,"");this.Ua.push(c);c=this.Fh({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.Ua.push(c);c=this.Fh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},b,"");this.Ua.push(c);c=this.Fh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"}, b,"");this.Ua.push(c);for(var e in kc)kc.hasOwnProperty(e)&&this.Ua.push(this.Fh(kc[e],b,e));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.He=[];this.Rd=0;this.Rb=!1;this.Po=this.mi=-1;this.Cg=null;this.im=a.createFramebuffer();this.Oj=this.Yk=null;this.Go=!1;this.Ha&&(this.Oj=a.createRenderbuffer());this.uf=fc([0,0,0]);this.Zp=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048"===b.name&&a.vertexAttribPointer(b.Rc,4,a.FLOAT,!1,0,0));if(0"!==b.name&& a.vertexAttribPointer(b.Rc,this.Ha?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.aj[this.Td]);a.bufferSubData(a.ARRAY_BUFFER,0,this.ol.subarray(0,this.ph));b&&0<=b.kf&&""!==b.name&&a.vertexAttribPointer(b.kf,2,a.FLOAT,!1,0,0)}for(var c,a=0,b=this.Rd;ac||0>d)){var e=this.xc();e.type=7;e.Zb=1;e.Y||(e.Y=gc());e.Y[0]=a;e.Y[1]=b;e.Y[2]=c;e.Y[3]=d;this.Rb=!1}};c.prototype.Pq=function(a){if(this.Ha&&(a=!!a,this.ai!==a)){var b=this.xc();b.type=14;b.Zb=a?1:0;this.Rb=!1;this.ai=a;this.Yk=null;this.ai?this.ic(2): this.ic(0)}};c.prototype.Oq=function(a){if(this.Ha){var b=this.xc();b.type=13;b.Zb=a?1:0;this.Rb=!1}};c.prototype.$o=function(){hc(this.Vm,p);this.Tc();this.Lc();var a=this.width/2,b=this.height/2;this.Mi(-a,b,a,b,a,-b,-a,-b);hc(p,this.Gc);this.Lc()};c.prototype.Nq=function(a,b,c){this.ic(3);var d=this.xc();d.type=12;d.Y||(d.Y=gc());d.Y[0]=a;d.Y[1]=b;d.Y[2]=c;d.Y[3]=1;this.Rb=!1};c.prototype.ow=function(){this.ic(0)};c.prototype.Yv=function(){this.ic(2)};c.prototype.Ov=function(){this.Re();this.C.flush()}; var t=[],b={};c.prototype.$s=function(){W(t);b={}};c.prototype.gf=function(a,c,h,d){c=!!c;h=!!h;var e=a.src+","+c+","+h+(c?",undefined":""),g=null;if("undefined"!==typeof a.src&&b.hasOwnProperty(e))return g=b[e],g.yj++,g;this.Re();var f=this.C,q=ja(a.width)&&ja(a.height),g=f.createTexture();f.bindTexture(f.TEXTURE_2D,g);f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var p=f.RGBA,m=f.RGBA,l=f.UNSIGNED_BYTE;if(d&&!this.be)switch(d){case 1:m=p=f.RGB;break;case 2:l=f.UNSIGNED_SHORT_4_4_4_4;break; case 3:l=f.UNSIGNED_SHORT_5_5_5_1;break;case 4:m=p=f.RGB,l=f.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!q&&c){d=document.createElement("canvas");d.width=ka(a.width);d.height=ka(a.height);var r=d.getContext("2d");"undefined"!==typeof r.imageSmoothingEnabled?r.imageSmoothingEnabled=h:(r.webkitImageSmoothingEnabled=h,r.mozImageSmoothingEnabled=h,r.msImageSmoothingEnabled=h);r.drawImage(a,0,0,a.width,a.height,0,0,d.width,d.height);f.texImage2D(f.TEXTURE_2D,0,p,m,l,d)}else f.texImage2D(f.TEXTURE_2D,0, p,m,l,a);c?(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));h?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.LINEAR),(q||2<=this.version)&&this.So?(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.cf=null;g.Bf=a.width;g.Af=a.height;g.yj=1;g.Ko=e;t.push(g);return b[e]=g};c.prototype.Ac=function(a,b,c,d){this.Re();var e=this.C;this.be&&(d=!1);var g=e.createTexture();e.bindTexture(e.TEXTURE_2D,g);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,a,b,0,e.RGBA,d?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,null);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,c?e.LINEAR:e.NEAREST);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,c?e.LINEAR:e.NEAREST);e.bindTexture(e.TEXTURE_2D,null);this.cf=null;g.Bf=a;g.Af=b;t.push(g);return g};c.prototype.Gw=function(a,b,c){this.Re();var d=this.C;this.be&&(c=!1);d.bindTexture(d.TEXTURE_2D,b);d.pixelStorei(d.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{d.texImage2D(d.TEXTURE_2D,0,d.RGBA,d.RGBA, c?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,a)}catch(e){console&&console.error&&console.error("Error updating WebGL texture: ",e)}d.bindTexture(d.TEXTURE_2D,null);this.cf=null};c.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.yj&&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 p(a,d,e,b){try{var l=indexedDB.open("_C2SaveStates");l.onupgradeneeded=n;l.onerror=b;l.onsuccess=function(l){l=l.target.result;l.onerror=b;l.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:d}).onsuccess=e}}catch(c){b(c)}}function t(a,d,e){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded= n;b.onerror=e;b.onsuccess=function(b){b=b.target.result;b.onerror=e;var l=b.transaction(["saves"]).objectStore("saves").get(a);l.onsuccess=function(){l.result?d(l.result.data):d(null)}}}catch(l){e(l)}}function b(){C("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1c?(c*=d,5===g?(f=c*e/this.ub,1f&&(f=1/Math.ceil(1/f)),c=this.ub*f/e,f=this.tb*f/e,b=(a-c)/2,l=(d-f)/2,a=c,d=f):(b=(a-c)/2,a=c)):(f=a/c,5===g?(f=f*e/this.tb,1f&&(f=1/Math.ceil(1/f)),c=this.ub*f/e,f=this.tb*f/e,b=(a-c)/2,l=(d-f)/2,a=c):l=(d-f)/2,d=f)):c&&0===g&&(b=Math.floor((a-this.ub)/2),l=Math.floor((d-this.tb)/2),a=this.ub,d=this.tb),2>g&&(this.Bh=e),this.Ij=Math.round(a),this.Hh=Math.round(d),this.width= Math.round(a*e),this.height=Math.round(d*e),this.ma=!0,this.yr?(this.L=this.width,this.K=this.height,this.Bc=!0):this.widthc&&(this.K=this.L/g)):3===g&&(c=this.ub/this.tb,g=this.Zg/this.Yg,g>c?this.L=this.K*g:ge;)e++,a=g.shift(),this.gl(a[0],a[1])};c.prototype.mo=function(a,b){a.cocoonLazyLoad=!0;a.onerror=function(b){d=a.Jo=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",b)};this.fd?a.src=b:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(d){a.src=d},function(e){d=a.Jo=!0;console&&console.error&&console.error("Error extracting image '"+ b+"' from expansion file: ",e)}):(a.crossOrigin="anonymous",this.Sv(a,b)));this.vh.push(a)};c.prototype.ru=function(a){var d,b;d=0;for(b=this.vh.length;d=g)g=5E4;a+=g;c.src&&(c.complete||c.loaded)&&!c.Jo?d+=g:e=!1}e&&this.Mv&&this.xg&&(q||(this.xg.uw(), q=!0),b=this.xg.Gu(),d+=b,bthis.jf&&(this.Qc||500<=e&&this.Fp!=this.ld)){a.clearRect(0,0,c,f);var e=c/2,f=f/2, c=0===this.jf&&this.hf.Dk.complete,g=40*b,r=0,q=80*b,h;if(c){var p=this.hf.Dk,q=p.width*b;h=p.height*b;g=q/2;r=h/2;a.drawImage(p,qa(e-g),qa(f-r),q,h)}1>=this.jf?(e=qa(e-g)+.5,f=qa(f+(r+(c?12*b:0)))+.5,a.fillStyle=d?"red":"DodgerBlue",a.fillRect(e,f,Math.floor(q*this.ld),6*b),a.strokeStyle="black",a.strokeRect(e,f,q,6*b),a.strokeStyle="white",a.strokeRect(e-1*b,f-1*b,q+2*b,8*b)):2===this.jf&&(a.font=this.fd?"12pt ArialMT":"12pt Arial",a.fillStyle=d?"#f00":"#999",a.by="middle",b=Math.round(100*this.ld)+ "%",c=a.measureText?a.measureText(b):null,a.fillText(b,e-(c?c.width:0)/2,f));this.Fp=this.ld}else if(4===this.jf){this.Ht(a);k?k(function(){l.go()}):setTimeout(function(){l.go()},16);return}}setTimeout(function(){l.go()},this.Qc?10:100)}}};var B=-1,l="undefined"===typeof cr_is_preview?200:0,r=!0,y=!1,H=0,A=0,L="undefined"===typeof cr_is_preview?3E3:0,O=null,w=null,G=0;c.prototype.Ht=function(a){if(!N){for(var b=Math.ceil(this.width),e=Math.ceil(this.height),c=this.hf.Dk,f=this.hf.Lv,g=this.hf.Hw, q=0;4>q;++q)if(!c[q].complete||!f[q].complete||!g[q].complete)return;0===G&&(B=Date.now());var q=Date.now(),p=!1,k=a,m,n;r||y?(a.clearRect(0,0,b,e),O&&O.width===b&&O.height===e||(O=document.createElement("canvas"),O.width=b,O.height=e,w=O.getContext("2d")),k=w,p=!0,r&&1===G&&(B=Date.now())):a.globalAlpha=1;k.fillStyle="#333333";k.fillRect(0,0,b,e);256=L&&!y&&1<=this.ld&&(y=!0,A=q);if(y&&q-A>=300+l||"undefined"!==typeof cr_is_preview&&1<=this.ld&&500>Date.now()-B)N=!0,y=r=!1,this.hf=w=O=null;++G}};c.prototype.Zu=function(){this.Jb&&(this.canvas.parentNode.removeChild(this.Jb),this.Jb=this.vn=null);this.ml=Date.now();this.Yf=Wa();var a,d,b;if(this.ko)for(a=0,d=this.B.length;aa||2===this.rc&&dd&&(d=0),this.Jf=d/=1E3,.51/this.cq&&(this.Jf=1/this.cq));this.tk= a;this.If=this.Jf*this.rg;this.Ab.add(this.If);this.ze.add(d);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.nk)&&!this.ed;2<=this.rc||a&&0d||2===e&&b a++;)this.Ro(this.Cf);a=0;for(d=this.Vd.length;ad.Mj.length&&d.Mj.push(a)};var R=[];c.prototype.Ef=function(a,d,b,e,l,c){var f,g,r,q;if(!a)return null;var h=this.B[a[1]],p=h.za.We;if(this.Ug&&p&&!h.Mm||p&&!this.A&&11===a[0][11])return null;var y=d;p||(d=null);var k;h.Mj.length?(k=h.Mj.pop(), k.yc=!0,h.za.M.call(k,h)):(k=new h.za.M(h),k.yc=!1);!b||c||this.he.hasOwnProperty(a[2].toString())?k.uid=this.Di++:k.uid=a[2];this.he[k.uid.toString()]=k;k.Hq=this.iq++;k.Rf=h.e.length;f=0;for(g=this.cd.length;fa&&(a=0);a>=this.xa.U.length&&(a=this.xa.U.length-1);return this.xa.U[a]};c.prototype.Xl=function(a){var d,b;d=0;for(b=a.length;dq;++q)if(k=2*q-1,a.x=l+d*r*k,a.y=f+b*r*k,a.D(),!this.Kc(a,c))if(c=this.jc(a))g=c;else return g&&this.Wk(a,d*k,b*k,g),!0;a.x=l;a.y=f;a.D();return!1};c.prototype.Wk=function(a,d,b,e){var l=2,f,c=!1;f=!1;for(var g=a.x,r=a.y;16>= l;)f=1/l,l*=2,a.x+=d*f*(c?1:-1),a.y+=b*f*(c?1:-1),a.D(),this.Kc(a,e)?f=c=!0:(f=c=!1,g=a.x,r=a.y);f&&(a.x=g,a.y=r,a.D())};c.prototype.Rv=function(a,d){var b=ha(d)?100:d,e=0,l=a.x,f=a.y,c=0,g=0,r=0,q=this.jc(a);if(!q)return!0;for(;e<=b;){switch(c){case 0:g=0;r=-1;e++;break;case 1:g=1;r=-1;break;case 2:g=1;r=0;break;case 3:r=g=1;break;case 4:g=0;r=1;break;case 5:g=-1;r=1;break;case 6:g=-1;r=0;break;case 7:r=g=-1}c=(c+1)%8;a.x=qa(l+g*e);a.y=qa(f+r*e);a.D();if(!this.Kc(a,q)&&(q=this.jc(a),!q))return!0}a.x= l;a.y=f;a.D();return!1};c.prototype.of=function(a,d){a.Sd&&d.Sd&&this.kg.push([a,d])};c.prototype.Os=function(a,d,b){var e,l,f;e=0;for(l=this.kg.length;e=this.dn.length&&this.dn.push([])};c.prototype.Jv=function(){this.Ck--};c.prototype.fp=function(){return this.dn[this.Ck]};c.prototype.Vk=function(a){this.Sj++; this.Sj>=this.gm.length&&this.gm.push(new Pb);var d=this.Qb();d.reset(a);return d};c.prototype.Pk=function(){this.Sj--};c.prototype.Qb=function(){return this.gm[this.Sj]};c.prototype.gp=function(a,d){for(var b,e,l,f,c,g;d;){b=0;for(e=d.Vc.length;bf||f>=a.pb.length||(c=l[e],null===c&&(c=NaN),a.pb[f]=c));if(r.We){f=d.w;a.j.ca!==f.l&&(l=a.j,a.j=this.xa.dk(f.l),a.j?(l.jh(a,!0),a.j.Ah(a,!0),a.D(),a.j.Ri(0)):(a.j=l,b||this.wf(a)));a.x=f.x;a.y=f.y;a.width=f.w;a.height=f.h;a.ud=f.zi;a.u=f.hasOwnProperty("a")?f.a:0;a.opacity=f.hasOwnProperty("o")?f.o:1;a.Ub=f.hasOwnProperty("hX")?f.hX:.5;a.Vb=f.hasOwnProperty("hY")?f.hY:.5;a.visible=f.hasOwnProperty("v")? f.v:!0;a.Sd=f.hasOwnProperty("ce")?f.ce:!0;a.Ci=f.hasOwnProperty("mts")?f.mts:-1;a.Nb=f.hasOwnProperty("bm")?f.bm:0;a.Dh=eb(a.Nb);this.C&&fb(a,a.Nb,this.C);a.D();if(f.hasOwnProperty("fx"))for(b=0,l=f.fx.length;bc||(a.De[c]=f.fx[b].active,a.Qa[c]=f.fx[b].params);a.td()}if(g=d.behs)for(e in g)g.hasOwnProperty(e)&&(b=this.wu(a,parseInt(e,10)),0>b||a.N[b].rb(g[e]));d.data&&a.rb(d.data)};c.prototype.Wo=function(a,d,b){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+ "www/"+a,function(a){a.file(d,b)},b)};c.prototype.pu=function(a,d){this.Wo("data.js",function(b){var e=new FileReader;e.onload=function(d){a(d.target.result)};e.onerror=d;e.readAsText(b)},d)};var I=[],u=0;c.prototype.hn=function(){if(I.length&&!(8<=u)){u++;var a=I.shift();this.lt(a.filename,a.ww,a.Mt)}};c.prototype.Xo=function(a,d,b){var e=this;I.push({filename:a,ww:function(a){u--;e.hn();d(a)},Mt:function(a){u--;e.hn();b(a)}});this.hn()};c.prototype.lt=function(a,d,b){this.Wo(a,function(a){var b= new FileReader;b.onload=function(a){d(a.target.result)};b.readAsArrayBuffer(a)},b)};c.prototype.qu=function(a,d,b){var e="",l=a.toLowerCase(),f=l.substr(l.length-4),l=l.substr(l.length-5);".mp4"===f?e="video/mp4":".webm"===l?e="video/webm":".m4a"===f?e="audio/mp4":".mp3"===f&&(e="audio/mpeg");this.Xo(a,function(a){a=URL.createObjectURL(new Blob([a],{type:e}));d(a)},b)};c.prototype.kv=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};c.prototype.gl=function(a, d){this.ok&&!this.kv(d)?this.qu(d,function(d){a.src=d},function(a){alert("Failed to load image: "+a)}):a.src=d};c.prototype.el=function(a,d){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=d:(a.webkitImageSmoothingEnabled=d,a.mozImageSmoothingEnabled=d,a.msImageSmoothingEnabled=d)};Rb=function(a){return new c(document.getElementById(a))};Sb=function(a,d){return new c({dc:!0,width:a,height:d})};window.cr_createRuntime=Rb;window.cr_createDCRuntime=Sb;window.createCocoonJSRuntime= function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.tj=!0;document.body.appendChild(a);a=new c(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 c(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth, window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var c=document.getElementById("c2canvas");return c?c.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(c,h){var m=window.cr_getC2Runtime();m&&m.ht(c,h)};window.cr_sizeCanvas=function(c,h){if(0!==c&&0!==h){var m=window.cr_getC2Runtime();m&&m.setSize(c,h)}};window.cr_setSuspended=function(c){var h=window.cr_getC2Runtime();h&&h.setSuspended(c)}; (function(){function c(a,b){this.b=a;this.Lf=null;this.scrollX=this.b.ub/2;this.scrollY=this.b.tb/2;this.scale=1;this.u=0;this.Hg=!0;this.name=b[0];this.Fv=b[1];this.Ev=b[2];this.width=b[1];this.height=b[2];this.nr=b[3];this.Wq=b[4];this.ca=b[5];var c=b[6],f,q;this.U=[];this.Xh=[];f=0;for(q=c.length;f=this.U.length&&(l=this.U.length-1);k.j=this.U[l];-1===k.j.e.indexOf(k)&&k.j.e.push(k);k.j.sg=!0}if(!b)for(a=0,c=this.U.length;ac?k.siblings.push(p.e[c]):p.zd&&(q=this.b.Ef(p.zd,k.j,!0,k.x,k.y,!0),this.b.Lb(),p.ul(),k.siblings.push(q),t.push(q)));a=0;for(c= this.Ve.length;athis.width-b&&(a=this.width-b);athis.height-b&&(a=this.height-b);ax&&(x=0);0>P&&(P=0);T>J&&(T=J);U>M&&(U=M);0>E&&(E=0);0>Q&&(Q=0);aa>J&&(aa=J);fa>M&&(fa=M);u.left=x/J;u.top=1-P/M;u.right=T/J;u.bottom=1-U/M}else u.left=z.left=0,u.top=z.top=0,u.right=z.right=1,u.bottom=z.bottom=1;ga=c&&(a.Ji(k[0].lb)||0!==v||0!== ga||1!==c.opacity||c.type.za.dq)||b&&!c&&1!==b.opacity;a.Mq();if(ga){A[S]||(A[S]=a.Ac(J,M,this.b.Ca));if(A[S].Bf!==J||A[S].Af!==M)a.deleteTexture(A[S]),A[S]=a.Ac(J,M,this.b.Ca);a.ic(0);a.Uc(A[S]);D=fa-Q;a.clearRect(E,M-Q-D,aa-E,D);c?c.Fb(a):(a.gc(this.b.qb),a.sf(b.opacity),a.Tc(),a.translate(-F,-I),a.Lc(),a.od(x,U,T,U,T,P,x,P,u));z.left=z.top=0;z.right=z.bottom=1;c&&(G=u.top,u.top=u.bottom,u.bottom=G);S=1;R=0}a.sf(1);v=k.length-1;var xa=a.Bn(k[v].lb)||!b&&!c&&!this.b.Bc;n=G=0;for(t=k.length;nc||(b&&this.Mc&&a.ec&&a.ec.right>=a.ec.left&&(a.Da(),this.Kb.update(a,a.ec,null),a.ec.set(0,0,-1,-1)),c===this.e.length-1?this.e.pop():(wa(this.e,c),this.Ri(c)),this.pd=!0)}; m.prototype.Ah=function(a,b){a.ud=this.e.length;this.e.push(a);b&&this.Mc&&a.ec&&a.D();this.pd=!0};m.prototype.Nv=function(a){this.e.unshift(a);this.Ri(0)};m.prototype.zv=function(a,b,c){var f=a.Cd();b=b.Cd();wa(this.e,f);fthis.Ba||c.top>this.Aa||(b.globalCompositeOperation=a.Dh,a.qc(b))}};m.prototype.xl=function(){this.Ud=!0;var a=this.Je(!0),b=this.Je(!1);this.Ud=!1;this.b.Hc&&(a=Math.round(a),b=Math.round(b)); this.Zk(a,b,null)};m.prototype.Zk=function(a,b,c){var f=this.Tb();this.qa=a;this.ra=b;this.Ba=a+1/f*this.b.L;this.Aa=b+1/f*this.b.K;this.qa>this.Ba&&(a=this.qa,this.qa=this.Ba,this.Ba=a);this.ra>this.Aa&&(a=this.ra,this.ra=this.Aa,this.Aa=a);a=this.nb();0!==a&&(c&&(c.translate(this.b.L/2,this.b.K/2),c.rotate(-a),c.translate(this.b.L/-2,this.b.K/-2)),this.ue.set(this.qa,this.ra,this.Ba,this.Aa),this.ue.offset((this.qa+this.Ba)/-2,(this.ra+this.Aa)/-2),this.jr.Uq(this.ue,a),this.jr.Io(this.ue),this.ue.offset((this.qa+ this.Ba)/2,(this.ra+this.Aa)/2),this.qa=this.ue.left,this.ra=this.ue.top,this.Ba=this.ue.right,this.Aa=this.ue.bottom)};m.prototype.Hf=function(a){if(this.Kd=this.$j){this.b.qb||(this.b.qb=a.Ac(this.b.L,this.b.K,this.b.Ca));if(this.b.qb.Bf!==this.b.L||this.b.qb.Af!==this.b.K)a.deleteTexture(this.b.qb),this.b.qb=a.Ac(this.b.L,this.b.K,this.b.Ca);a.Uc(this.b.qb)}this.Ud=!0;var b=this.Je(!0),c=this.Je(!1);this.Ud=!1;this.b.Hc&&(b=Math.round(b),c=Math.round(c));this.Zk(b,c,null);b=this.Tb();a.Tc();a.scale(b, b);a.$k(-this.nb());a.translate((this.qa+this.Ba)/-2,(this.ra+this.Aa)/-2);a.Lc();this.Mc?(this.Eb.left=this.Kb.$b(this.qa),this.Eb.top=this.Kb.ac(this.ra),this.Eb.right=this.Kb.$b(this.Ba),this.Eb.bottom=this.Kb.ac(this.Aa),this.pd||!this.Eb.Jh(this.$g)?(p(this.fe),b=this.wm(),this.pd=!1,this.$g.Eh(this.Eb)):b=this.fe):b=this.e;for(var f,k=null,c=b.length-1;0<=c;--c)f=b[c],f!==k&&(this.Ft(b[c],a),k=f);this.Mc&&(this.fe=b);this.sd||(this.Yl=this.b.Kf++,a.fl(this.Yl),a.Nq(1,1,1),a.$o(),a.Yv())};m.prototype.Fb= function(a){var b=0,c=0;if(this.Kd=this.$j||1!==this.opacity||0this.Ba||c.top>this.Aa||(b.fl(a.Kf),a.tr?this.Gt(a,b):(b.ic(0),b.rf(a.Sb,a.Pb),a.Fb(b)))}};m.prototype.Ft=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Da();var c=a.La;c.rightthis.Ba||c.top>this.Aa||(a.Kf=this.b.Kf++,0===a.Nb&&1===a.opacity&&a.me&& a.Hf&&(b.fl(a.Kf),a.Hf(b)))}};m.prototype.Gt=function(a,b){var c=a.na[0].lb,f=a.na[0].index,k=this.Tb();if(1!==a.na.length||b.Bn(c)||b.Pv(c)||(a.u||a.j.nb())&&b.Ji(c)||1!==a.opacity||a.type.za.dq)this.hb.Gn(b,this,a,this.Kd?this.b.qb:this.hb.Rh()),b.Tc(),b.scale(k,k),b.$k(-this.nb()),b.translate((this.qa+this.Ba)/-2,(this.ra+this.Aa)/-2),b.Lc();else{b.ic(c);b.rf(a.Sb,a.Pb);b.Tk(c)&&(this.b.ma=!0);var h=0,p=0,l=0,r=0;b.Ji(c)&&(r=a.La,h=this.Z(r.left,r.top,!0,!0),p=this.Z(r.left,r.top,!1,!0),l=this.Z(r.right, r.bottom,!0,!0),r=this.Z(r.right,r.bottom,!1,!0),h=h/windowWidth,p=1-p/windowHeight,l=l/windowWidth,r=1-r/windowHeight);var m;a.fb&&a.fb.G?(m=a.fb.G,c=1/m.width,m=1/m.height):(c=1/a.width,m=1/a.height);b.mh(this.Kd?this.b.qb:this.hb.Rh(),c,m,h,p,l,r,k,this.nb(),this.qa,this.ra,(this.qa+this.Ba)/2,(this.ra+this.Aa)/2,this.b.Ab.da,a.Qa[f]);a.Fb(b)}};m.prototype.Je=function(a){var b=0,c=0,f=this.b.devicePixelRatio;this.b.Uf&&(b*=f,c*=f);var f=this.b.zq,k=this.b.Aq,f=(this.hb.scrollX-f)*this.ie+f,k=(this.hb.scrollY- k)*this.je+k,h,p,l=1/this.Tb(!1);h=f-this.b.L*l/2;p=k-this.b.K*l/2;h+=b*l;p+=c*l;c=this.nb();0!==c&&(h-=f,p-=k,b=Math.cos(c),c=Math.sin(c),l=h*b-p*c,p=p*b+h*c,h=l+f,p+=k);return a?h:p};m.prototype.Z=function(a,b,c,f){var k=this.b.zq,h=this.b.Aq,p=(this.hb.scrollX-k)*this.ie+k,l=(this.hb.scrollY-h)*this.je+h,h=p,k=l,r=this.nb();if(0!==r){a-=p;b-=l;var m=Math.cos(-r),r=Math.sin(-r),n=a*m-b*r;b=b*m+a*r;a=n+p;b+=l}p=1/this.Tb(!f);f?(h-=this.b.L*p/2,k-=this.b.K*p/2):(h-=this.b.width*p/2,k-=this.b.height* p/2);h=(a-h)/p;k=(b-k)/p;a=this.b.devicePixelRatio;this.b.Uf&&!f&&(h/=a,k/=a);return c?h:k};m.prototype.bb=function(){var a,b,c,f={s:this.scale,a:this.u,vl:this.qa,vt:this.ra,vr:this.Ba,vb:this.Aa,v:this.visible,bc:this.ad,t:this.sd,px:this.ie,py:this.je,o:this.opacity,zr:this.jj,fx:[],cg:this.Gh,instances:[]};a=0;for(b=this.S.length;aa[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2=q.length&&(q.length=a.length+1);q[a.length]||(q[a.length]=[]);e=q[a.length];b=0;for(d=e.length;b=b.length&&(b.length=this.dg+1),b[this.dg]=a):this.data=a};e.prototype.Lu=function(){var a=this.b.fp();return!this.parent||this.hi||!a||this.pk?this.data:this.dg>=a.length||"undefined"===typeof a[this.dg]?this.Em:a[this.dg]};e.prototype.kb=function(){!this.parent||this.hi||this.pk||this.pw(this.Em)};Qb=e;g.prototype.toString=function(){return"include:"+this.Wh.toString()};g.prototype.ab=function(){this.Wh= this.b.hm[this.cv];this.sheet.op.add(this);this.Fa=m(this.Fa);for(var a=this.parent;a;)a.group&&a.Fj.push(this),a=a.parent;this.pr()};g.prototype.kb=function(){this.parent&&this.b.Li(this.b.B);this.Wh.Am||this.Wh.kb(!0);this.parent&&this.b.jg(this.b.B)};g.prototype.pr=function(){for(var a=this.parent;a;){if(a.group&&!a.Th){this.Mb=!1;return}a=a.parent}this.Mb=!0};$b=g;f.prototype.reset=function(a){this.pc=a;this.lc=this.xb=0;W(this.fr);this.fm=this.Xf=!1};Pb=f})(); (function(){function c(b,a){this.Sc=b;this.b=b.b;this.type=a[0];this.get=[this.bu,this.Yt,this.ku,this.nu,this.Nt,this.lu,this.fu,this.Vt,this.eu,this.ju,this.Ot,this.iu,this.Wt,this.gu,this.cu,this.du,this.Zt,this.$t,this.Ut,this.mu,this.hu,this.au,this.Tt,this.Xt][this.type];var c=null;this.ge=this.V=this.Ta=this.Gb=this.ql=this.second=this.first=this.value=null;this.bd=-1;this.dd=null;this.ur=-1;this.Mf=this.fj=null;this.kh=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first= new Yb(b,a[1]);break;case 18:this.first=new Yb(b,a[1]);this.second=new Yb(b,a[2]);this.ql=new Yb(b,a[3]);break;case 19:this.Gb=this.b.Ce(a[1]);this.Gb!==Z.prototype.Sa.random&&this.Gb!==Z.prototype.Sa.Zs||this.Sc.Sq();this.Ta=[];this.V=[];3===a.length?(c=a[2],this.Ta.length=c.length+1):this.Ta.length=1;break;case 20:this.ge=this.b.B[a[1]];this.bd=-1;this.Gb=this.b.Ce(a[2]);this.kh=a[3];cc.Function&&this.Gb===cc.Function.prototype.Sa.Pw&&this.Sc.Sq();a[4]?this.dd=new Yb(b,a[4]):this.dd=null;this.Ta= [];this.V=[];6===a.length?(c=a[5],this.Ta.length=c.length+1):this.Ta.length=1;break;case 21:this.ge=this.b.B[a[1]];this.kh=a[2];a[3]?this.dd=new Yb(b,a[3]):this.dd=null;this.ur=a[4];break;case 22:this.ge=this.b.B[a[1]];this.ge.ck(a[2]);this.bd=this.ge.om(a[2]);this.Gb=this.b.Ce(a[3]);this.kh=a[4];a[5]?this.dd=new Yb(b,a[5]):this.dd=null;this.Ta=[];this.V=[];7===a.length?(c=a[6],this.Ta.length=c.length+1):this.Ta.length=1;break;case 23:this.fj=a[1],this.Mf=null}this.Sc.yv(this.ge);4<=this.type&&17>= this.type&&(this.first=new Yb(b,a[1]),this.second=new Yb(b,a[2]));if(c){var h,d;h=0;for(d=c.length;h=a||g<=-a)g%=a;0>g&&(g+=a);e.apply(q[g],c)};c.prototype.Tt=function(b){var a=this.ge,c=this.Ta,p=this.V,d=this.dd,e=this.bd,g=this.Gb,f=this.Sc.ne,q=a.ya(),n=q.Dc();if(!n.length)if(q.pa.length)n=q.pa;else{this.kh?b.Db(""):b.Ea(0);return}c[0]=b;b.fg=a;b=h();m(p,c,b);d&&(d.get(b),b.zb()&&(f=b.data,n=a.e));--t;p=n.length;if(f>=p||f<=-p)f%=p;0>f&&(f+=p);f=n[f];n=0;a.J&&(n=f.type.Gg[a.Wd]);g.apply(f.N[e+n],c)};c.prototype.au=function(b){var a=this.dd,c=this.ge,p=this.ur,d=this.Sc.ne, e=c.ya(),g=e.Dc();if(!g.length)if(e.pa.length)g=e.pa;else{this.kh?b.Db(""):b.Ea(0);return}if(a){e=h();a.get(e);if(e.zb()){d=e.data;g=c.e;0!==g.length&&(d%=g.length,0>d&&(d+=g.length));d=c.um(d);c=d.pb[p];V(c)?b.Db(c):b.ba(c);--t;return}--t}a=g.length;if(d>=a||d<=-a)d%=a;0>d&&(d+=a);d=g[d];g=0;c.J&&(g=d.type.Uj[c.Wd]);c=d.pb[p+g];V(c)?b.Db(c):b.ba(c)};c.prototype.bu=function(b){b.type=ac.ug;b.data=this.value};c.prototype.Yt=function(b){b.type=ac.tg;b.data=this.value};c.prototype.ku=function(b){b.type= ac.String;b.data=this.value};c.prototype.nu=function(b){this.first.get(b);b.zb()&&(b.data=-b.data)};c.prototype.Nt=function(b){this.first.get(b);var a=h();this.second.get(a);b.zb()&&a.zb()&&(b.data+=a.data,a.Pg()&&b.bh());--t};c.prototype.lu=function(b){this.first.get(b);var a=h();this.second.get(a);b.zb()&&a.zb()&&(b.data-=a.data,a.Pg()&&b.bh());--t};c.prototype.fu=function(b){this.first.get(b);var a=h();this.second.get(a);b.zb()&&a.zb()&&(b.data*=a.data,a.Pg()&&b.bh());--t};c.prototype.Vt=function(b){this.first.get(b); var a=h();this.second.get(a);b.zb()&&a.zb()&&(b.data/=a.data,b.bh());--t};c.prototype.eu=function(b){this.first.get(b);var a=h();this.second.get(a);b.zb()&&a.zb()&&(b.data%=a.data,a.Pg()&&b.bh());--t};c.prototype.ju=function(b){this.first.get(b);var a=h();this.second.get(a);b.zb()&&a.zb()&&(b.data=Math.pow(b.data,a.data),a.Pg()&&b.bh());--t};c.prototype.Ot=function(b){this.first.get(b);var a=h();this.second.get(a);a.Sg()||b.Sg()?this.Qt(b,a):this.Pt(b,a);--t};c.prototype.Qt=function(b,a){b.Sg()&& a.Sg()?this.St(b,a):this.Rt(b,a)};c.prototype.St=function(b,a){b.data+=a.data};c.prototype.Rt=function(b,a){b.Sg()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.Db(b.data.toString()+a.data)};c.prototype.Pt=function(b,a){b.Ea(b.data&&a.data?1:0)};c.prototype.iu=function(b){this.first.get(b);var a=h();this.second.get(a);b.zb()&&a.zb()&&(b.data||a.data?b.Ea(1):b.Ea(0));--t};c.prototype.Ut=function(b){this.first.get(b);b.data?this.second.get(b):this.ql.get(b)};c.prototype.Wt=function(b){this.first.get(b); var a=h();this.second.get(a);b.Ea(b.data===a.data?1:0);--t};c.prototype.gu=function(b){this.first.get(b);var a=h();this.second.get(a);b.Ea(b.data!==a.data?1:0);--t};c.prototype.cu=function(b){this.first.get(b);var a=h();this.second.get(a);b.Ea(b.dataa.data?1:0);--t};c.prototype.$t=function(b){this.first.get(b); var a=h();this.second.get(a);b.Ea(b.data>=a.data?1:0);--t};c.prototype.Xt=function(b){var a=this.Mf.Lu();ia(a)?b.ba(a):b.Db(a)};Yb=c;n.prototype.Pg=function(){return this.type===ac.tg};n.prototype.zb=function(){return this.type===ac.ug||this.type===ac.tg};n.prototype.Sg=function(){return this.type===ac.String};n.prototype.bh=function(){this.Pg()||(this.Sg()&&(this.data=parseFloat(this.data)),this.type=ac.tg)};n.prototype.Ea=function(b){this.type=ac.ug;this.data=Math.floor(b)};n.prototype.ba=function(b){this.type= ac.tg;this.data=b};n.prototype.Db=function(b){this.type=ac.String;this.data=b};n.prototype.qw=function(b){ia(b)?(this.type=ac.tg,this.data=b):V(b)?(this.type=ac.String,this.data=b.toString()):(this.type=ac.ug,this.data=0)};Xb=n;ac={ug:0,tg:1,String:2}})();function Z(c){this.b=c;this.kc=[]} Z.prototype.bb=function(){var c={},h,m,n,p,t,b,a,k;c.waits=[];var v=c.waits,d;h=0;for(m=this.kc.length;hb)){var a,c,h,d=this.b.Qb(),e;p.length?e=p.pop():e={Yb:{},Fa:[]};e.em=!1;e.time=this.b.Ab.da+b;e.Zq="";e.Tn=!1;e.Eg=d.pc;e.lc=d.lc+1;b=0;for(a=this.b.B.length;bd&&(a=d);b.ba(a)};m.prototype.If=function(b){b.ba(this.b.If)};m.prototype.rg=function(b){b.ba(this.b.rg)};m.prototype.time=function(b){b.ba(this.b.Ab.da)};m.prototype.Od=function(b){b.Ea(this.b.Od)};m.prototype.Kk=function(b){b.Ea(this.b.Kk)};m.prototype.lm=function(b){b.Ea(this.b.lm)};m.prototype.u=function(b,a,c,h,d){b.ba(Fa(La(a,c,h,d)))};m.prototype.uv=function(b){b.Ea(this.b.xa.height)};m.prototype.left=function(b,a,c){b.Db(V(a)?a.substr(0,c):"")};m.prototype.right=function(b, a,c){b.Db(V(a)?a.substr(a.length-c):"")};m.prototype.replace=function(b,a,c,h){V(a)&&V(c)&&V(h)?b.Db(a.replace(new RegExp(ab(c),"gi"),h)):b.Db(V(a)?a:"")};m.prototype.trim=function(b,a){b.Db(V(a)?a.trim():"")};m.prototype.Zs=function(b){var a=qa(Math.random()*(arguments.length-1));b.qw(arguments[a+1])};m.prototype.Zl=function(b){b.ba(this.b.Zl/1E3)};m.prototype.Ak=function(b){b.ba(this.b.Ak)};n.Sa=new m;n.bw=function(){var b,a,c,h,d,e,g=this.b.Qb();b=0;for(c=this.kc.length;bthis.b.Ab.da)continue;g.pc=h.Eg;g.lc=h.lc;g.xb=0;for(a in h.Yb)h.Yb.hasOwnProperty(a)&&(d=this.b.B[parseInt(a,10)].ya(),e=h.Yb[a],d.Ia=e.bl,za(d.e,e.$d),d=e,W(d.$d),t.push(d));h.Eg.$v();this.b.Xl(h.Fa);h.em=!0}a=b=0;for(c=this.kc.length;ba.Ba||b.top>a.Aa)},d.bx=function(){this.Da();var a=this.La,b=this.b.xa;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},d.ox=function(a,b,d){var c=this.ya(), e=c.Dc();if(!e.length)return!1;var g=e[0],k=g,h=Qa(g.x,g.y,b,d),p,m,n;p=1;for(m=e.length;ph)h=n,k=g;c.Ii(k);return!0},e.Ix=function(a){this.x!==a&&(this.x=a,this.D())},e.Jx=function(a){this.y!==a&&(this.y=a,this.D())},e.Ex=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.D()},e.Fx=function(a,b){var d=a.Fu(this);if(d){var c;d.tm?(c=d.tm(b,!0),d=d.tm(b,!1)):(c=d.x,d=d.y);if(this.x!==c||this.y!==d)this.x=c,this.y=d,this.D()}},e.jx= function(a){0!==a&&(this.x+=Math.cos(this.u)*a,this.y+=Math.sin(this.u)*a,this.D())},e.ix=function(a,b){0!==b&&(this.x+=Math.cos(Y(a))*b,this.y+=Math.sin(Y(a))*b,this.D())},g.Ox=function(a){a.ba(this.x)},g.Px=function(a){a.ba(this.y)},g.If=function(a){a.ba(this.b.Qh(this))});t&&(d.Tw=function(a,b){return bc(this.width,a,b)},d.Qw=function(a,b){return bc(this.height,a,b)},e.Hs=function(a){this.width!==a&&(this.width=a,this.D())},e.Bx=function(a){this.height!==a&&(this.height=a,this.D())},e.Gx=function(a, b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.D()},g.Nx=function(a){a.ba(this.width)},g.Xw=function(a){a.ba(this.height)},g.Mw=function(a){this.Da();a.ba(this.La.left)},g.Ow=function(a){this.Da();a.ba(this.La.top)},g.Nw=function(a){this.Da();a.ba(this.La.right)},g.Lw=function(a){this.Da();a.ba(this.La.bottom)});b&&(d.Br=function(a,b){return Ma(this.u,Y(b))<=Y(a)},d.Nr=function(a){return Oa(this.u,Y(a))},d.Lr=function(a,b){var d=Ka(a),c=Ka(b),e=Ha(this.u);return Oa(c,d)?Oa(e, d)&&!Oa(e,c):!(!Oa(e,d)&&Oa(e,c))},e.yx=function(a){a=Y(Ga(a));isNaN(a)||this.u===a||(this.u=a,this.D())},e.ux=function(a){0===a||isNaN(a)||(this.u+=Y(a),this.u=Ha(this.u),this.D())},e.vx=function(a){0===a||isNaN(a)||(this.u-=Y(a),this.u=Ha(this.u),this.D())},e.wx=function(a,b){var d=Na(this.u,Y(b),Y(a));isNaN(d)||this.u===d||(this.u=d,this.D())},e.xx=function(a,b,d){a=Na(this.u,Math.atan2(d-this.y,b-this.x),Y(a));isNaN(a)||this.u===a||(this.u=a,this.D())},e.Hx=function(a,b){var d=Math.atan2(b-this.y, a-this.x);isNaN(d)||this.u===d||(this.u=d,this.D())},g.Kw=function(a){a.ba(Ia(this.u))});n||(d.Rw=function(a,b,d){return bc(this.pb[a],b,d)},d.Zw=function(a){return this.pb[a]},d.qx=function(a,b){var d=this.ya(),c=d.Dc();if(!c.length)return!1;var e=c[0],g=e,k=e.pb[b],h,p,m;h=1;for(p=c.length;hk)k=m,g=e;d.Ii(g);return!0},d.nx=function(a){var b,d,c,e,g;if(this.b.ep().Hm){g=this.ya();if(g.Ia)for(g.Ia=!1,W(g.e),W(g.pa),c=this.e,b=0,d=c.length;ba?a=0:1e.j.index||c.j.index===e.j.index&&c.Cd()>e.Cd())e=c}else if(c.j.indexd)){var c=1===a;this.De[d]!==c&&(this.De[d]=c,this.td(),this.b.ma=!0)}}},e.Ax=function(a,b,d){if(this.b.A){var c=this.type.rm(a);0>c||(a=this.type.S[c],c=this.Qa[c],b=Math.floor(b),0>b||b>=c.length||(1===this.b.A.Ju(a.lb,b)&&(d/=100),c[b]!==d&&(c[b]=d,a.Mb&&(this.b.ma=!0))))}})};Hb=function(){this.Sl=this.Ol=!0;this.type.rj=!0;this.b.ma=!0;var c,m,n=this.Pl;c=0;for(m= n.length;cn;case 5:return c>=n;default:return!1}}})(); var kc={exclusion:{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));\nfront.rgb = 1.0 - (((1.0 - back.rgb * front.a) * (1.0 - front.rgb)) + (back.rgb * front.a * front.rgb));\ngl_FragColor = front;\n}",Mh:0,Nh:0,Hj:!0,Ic:!1,qj:!1,V:[]},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}", Mh:0,Nh:0,Hj:!0,Ic:!1,qj:!1,V:[]}};function pc(c){this.b=c} (function(){function c(a){-1===lb.indexOf(a)&&lb.push(a)}function h(a){var b=a.n,d;try{d=b.play()}catch(e){c(a);return}d?d.catch(function(){c(a)}):Fc&&!D.gd&&c(a)}function m(){var a,b,d,e;Gc||ga||!u||(n(),"running"===u.state&&(Gc=!0));var f=lb.slice(0);W(lb);if(!T)for(a=0,b=f.length;aa&&(a=0);1a&&(a=.01);this.Rk.gain.value=a;this.Qk.gain.value=Math.pow(1/a,.6)*b};y.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=af;++f)e=f/32768,e=this.shape(e,c,d),this.Kj[32768+f]=e,this.Kj[32768-f-1]=-e};y.prototype.Nc=function(a){this.P.disconnect();this.P.connect(a);this.O.disconnect();this.O.connect(a)};y.prototype.remove=function(){this.fa.disconnect();this.Rk.disconnect();this.zl.disconnect();this.Qk.disconnect();this.P.disconnect();this.O.disconnect()};y.prototype.Cc=function(){return this.fa};H.prototype.Nc=function(a){this.la.disconnect();this.la.connect(a)};H.prototype.remove= function(){this.la.disconnect()};H.prototype.Cc=function(){return this.la};A.prototype.Ga=function(){this.la.getFloatFrequencyData(this.su);this.la.getByteTimeDomainData(this.Xq);for(var a=this.la.fftSize,b=0,c=this.Hi=0,d=0;bd&&(d=-d),this.Hib&&(c=b);return c};w.prototype.di=function(){return!this.sc&&!this.Bd&&!this.hc&&!this.Qf()};w.prototype.rw=function(){return!this.Bd&&!this.hc&&!this.Qf()};w.prototype.Bw= function(){var a=this.volume*aa;isFinite(a)||(a=0);switch(this.aa){case 0:"undefined"!==typeof this.n.volume&&this.n.volume!==a&&(this.n.volume=a);break;case 1:1===this.buffer.aa?this.mb.gain.value=a*this.gh:"undefined"!==typeof this.n.volume&&this.n.volume!==a&&(this.n.volume=a)}};w.prototype.Qj=function(a){switch(this.aa){case 0:this.n.muted!==!!a&&(this.n.muted=!!a);break;case 1:1===this.buffer.aa?(this.gh=a?0:1,this.mb.gain.value=aa*this.volume*this.gh):this.n.muted!==!!a&&(this.n.muted=!!a)}}; w.prototype.kw=function(){this.Qg=!0;this.Qj(this.Qg||this.gi)};w.prototype.Rq=function(a){this.gi=!!a;this.Qj(this.Qg||this.gi)};w.prototype.wl=function(){var a=this.playbackRate;this.Ng&&(a*=D.rg);switch(this.aa){case 0:this.n.playbackRate!==a&&(this.n.playbackRate=a);break;case 1:1===this.buffer.aa?this.n.playbackRate.value!==a&&(this.n.playbackRate.value=a):this.n.playbackRate!==a&&(this.n.playbackRate=a)}};w.prototype.mw=function(a){switch(this.aa){case 0:a?this.di()?(this.Jc=!0,this.n.pause()): this.Jc=!1:this.Jc&&(this.n.play(),this.Jc=!1);break;case 1:a?this.di()?(this.Jc=!0,1===this.buffer.aa?(this.fc=this.vm(!0),this.Fd&&(this.fc=this.fc%this.Of()),d(this.n)):this.n.pause()):this.Jc=!1:this.Jc&&(1===this.buffer.aa?(this.n=u.createBufferSource(),this.n.buffer=this.buffer.ka,this.n.connect(this.mb),this.n.onended=this.sn,this.oj=this.n,this.n.loop=this.Fd,this.mb.gain.value=aa*this.volume*this.gh,this.wl(),this.startTime=(this.Ng?D.Ab.da:D.ze.da)-this.fc/(this.playbackRate||.001),v(this.n, this.fc,this.Of())):this.n.play(),this.Jc=!1);break;case 2:a?this.di()?(this.n.pause(),this.Jc=!0):this.Jc=!1:this.Jc&&(this.Jc=!1,this.n.play())}};K.M=function(a){this.type=a;D=this.b=a.b;J=this;this.uc=null;this.oi=-600;this.b.ok&&(mb=!0);!(this.b.Tg||this.b.Mg&&(this.b.Jm||this.b.kk))||this.b.$h||this.b.ja||this.b.jk||mb||(Fc=!0);u=null;"undefined"!==typeof AudioContext?(I=1,u=new AudioContext):"undefined"!==typeof webkitAudioContext&&(I=1,u=new webkitAudioContext);this.b.Tg&&u&&(u.close&&u.close(), "undefined"!==typeof AudioContext?u=new AudioContext:"undefined"!==typeof webkitAudioContext&&(u=new webkitAudioContext));1!==I&&(this.b.ed&&"undefined"!==typeof window.Media?I=2:this.b.up&&(I=3));2===I&&(F=location.href,a=F.lastIndexOf("/"),-1"!==b&&(a.Nk=b,a.gn=d,a.lo=e),null;g=new w(a,b);x.push(g);return g};var Ja=[];S.prototype.mj=function(a){return hb(M,a)};K.m=new S;R.prototype.Play= function(a,b,c,d){!T&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1=a||0>=k||h>=m||b>=d?(this.Ra||jQuery(this.k).hide(),this.Ra=!0):(1>h&&(h=1),1>b&&(b=1),a>=m&&(a=m-1),k>=d&&(k=d-1),m=window.innerWidth,d=window.innerHeight, c||this.$e!==h||this.df!==b||this.bf!==a||this.Xe!==k||this.ff!==m||this.ef!==d?(this.$e=h,this.df=b,this.bf=a,this.Xe=k,this.ff=m,this.ef=d,this.Ra&&(jQuery(this.k).show(),this.Ra=!1),c=Math.round(h)+jQuery(this.b.canvas).offset().left,m=Math.round(b)+jQuery(this.b.canvas).offset().top,jQuery(this.k).css("position","absolute"),jQuery(this.k).offset({left:c,top:m}),jQuery(this.k).width(Math.round(a-h)),jQuery(this.k).height(Math.round(k-b)),this.Nl&&jQuery(this.k).css("font-size",this.j.Tb(!0)/this.b.devicePixelRatio- .2+"em")):this.Ra&&(jQuery(this.k).show(),this.Ra=!1))}};n.qc=function(){};n.Fb=function(){};c.prototype.lj=function(){return!0};m.m=new c;h.prototype.Fl=function(c){this.b.ja||(this.visible=0!==c)};h.prototype.El=function(c,h){this.b.ja||jQuery(this.k).css(c,h)};m.R=new h;m.Sa=new function(){}})();function sc(c){this.b=c} (function(){function c(){}function h(){}function m(){}var n=sc.prototype;n.T=function(c){this.za=c;this.b=c.b};n.T.prototype.F=function(){};n.M=function(c){this.type=c;this.b=c.b};var p=n.M.prototype;p.F=function(){this.Gf={}};p.bb=function(){return this.Gf};p.rb=function(c){this.Gf=c;for(var b in this.Gf);};c.prototype.Kr=function(c){return this.Gf.hasOwnProperty(c)};n.m=new c;h.prototype.Ar=function(c,b){this.Gf[c]=b};h.prototype.Cr=function(){Va(this.Gf)};n.R=new h;m.prototype.qo=function(c){c.Db(JSON.stringify({c2dictionary:!0, data:this.Gf}))};n.Sa=new m})();function tc(c){this.b=c} (function(){function c(){}var h=tc.prototype;h.T=function(c){this.za=c;this.b=c.b};h.T.prototype.F=function(){};h.M=function(c){this.type=c;this.b=c.b;this.Xg=Array(256);this.cj=Array(256);this.ve=0};var m=h.M.prototype;m.F=function(){var c=this;this.b.ja||(jQuery(document).keydown(function(h){c.qn(h)}),jQuery(document).keyup(function(h){c.rn(h)}))};var n=[32,33,34,35,36,37,38,39,40,44];m.qn=function(c){var h=!1;window!=window.top&&-1c;++c)if(this.Xg[c]){this.Xg[c]=!1;this.ve=c;this.b.trigger(tc.prototype.m.so,this);var h=this.b.trigger(tc.prototype.m.xo,this),b=this.b.trigger(tc.prototype.m.wo,this);if(h||b)this.cj[c]=!0}};m.bb=function(){return{triggerKey:this.ve}};m.rb=function(c){this.ve=c.triggerKey};c.prototype.Or=function(c){return this.Xg[c]};c.prototype.vo=function(c){return c===this.ve};c.prototype.Xr=function(){return!0}; c.prototype.so=function(){return!0};c.prototype.xo=function(c){return c===this.ve};c.prototype.hs=function(c){return c===this.ve};c.prototype.wo=function(c){return c===this.ve};h.m=new c;h.R=new function(){};h.Sa=new function(){}})();function oc(c){this.b=c} (function(){function c(){if(0===this.Lj.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.mg?b.drawImage(this.G,this.gg,this.hg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.G,0,0,this.width,this.height);this.Lj=a.toDataURL("image/png")}return this.Lj}function h(){}function m(a){a[0]=0;a[1]=0;a[2]=0;g.push(a)}function n(a,b){return athis.I&&(this.I=0);this.I>=this.Na.frames.length&&(this.I=this.Na.frames.length-1);var a=this.Na.frames[this.I];this.ta.Ti(a.Ok);this.Ub=a.Ub;this.Vb=a.Vb;this.Bg=this.Na.speed;this.Qe=this.Na.In;1===this.type.mc.length&&1===this.type.mc[0].frames.length||0===this.Bg||this.b.qg(this);this.yc?this.wd.reset():this.wd=new $a;this.Xd=this.wd.da;this.yf=!0;this.Pd=0;this.xf=!0;this.Wl=this.Eo="";this.Xs=0;this.Vl=-1;this.type.$m();var b,c,d,e,f,g,k,a=0;for(b=this.type.mc.length;athis.I&&(this.I=0);this.I>=this.Na.frames.length&&(this.I=this.Na.frames.length-1);this.Bg=a.cas;this.Xd=a.fs;this.Pd=a.ar;this.wd.reset();this.wd.da=a.at;this.yf=a.hasOwnProperty("ap")?a.ap:!0;this.xf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Qe=a.rt:this.Qe=this.Na.In;this.fb=this.Na.frames[this.I];this.Ag=this.fb.H;this.ta.Ti(this.fb.Ok);this.Ub=this.fb.Ub;this.Vb=this.fb.Vb};e.Ml=function(a){this.I= a?0:this.Na.frames.length-1;this.yf=!1;this.Eo=this.Na.name;this.b.trigger(oc.prototype.m.Wr,this);this.b.trigger(oc.prototype.m.Vr,this);this.Pd=0};e.tj=function(){return this.wd.da};e.Ga=function(){this.wd.add(this.b.Qh(this));this.Wl.length&&this.it();0<=this.Vl&&this.jt();var a=this.wd.da,b=this.Na,c=b.frames[this.I],d=c.duration/this.Bg;this.yf&&a>=this.Xd+d&&(this.xf?this.I++:this.I--,this.Xd+=d,this.I>=b.frames.length&&(b.Bq?(this.xf=!1,this.I=b.frames.length-2):b.loop?this.I=this.Qe:(this.Pd++, this.Pd>=b.Hn?this.Ml(!1):this.I=this.Qe)),0>this.I&&(b.Bq?(this.I=1,this.xf=!0,b.loop||(this.Pd++,this.Pd>=b.Hn&&this.Ml(!0))):b.loop?this.I=this.Qe:(this.Pd++,this.Pd>=b.Hn?this.Ml(!0):this.I=this.Qe)),0>this.I?this.I=0:this.I>=b.frames.length&&(this.I=b.frames.length-1),a>this.Xd+b.frames[this.I].duration/this.Bg&&(this.Xd=a),a=b.frames[this.I],this.vg(c,a),this.b.ma=!0)};e.bp=function(a){var b,c,d;b=0;for(c=this.type.mc.length;bthis.I&&(this.I=0),this.I>=this.Na.frames.length&&(this.I=this.Na.frames.length-1),1===this.Xs&&(this.I=0),this.yf=!0,this.Xd=this.wd.da,this.xf=!0,this.vg(a,this.Na.frames[this.I]),this.b.ma=!0)};e.jt=function(){var a=this.Na.frames[this.I], b=this.I;this.I=qa(this.Vl);0>this.I&&(this.I=0);this.I>=this.Na.frames.length&&(this.I=this.Na.frames.length-1);b!==this.I&&(this.vg(a,this.Na.frames[this.I]),this.Xd=this.wd.da,this.b.ma=!0);this.Vl=-1};e.vg=function(a,b){var c=a.width,d=a.height,e=b.width,f=b.height;c!=e&&(this.width*=e/c);d!=f&&(this.height*=f/d);this.Ub=b.Ub;this.Vb=b.Vb;this.ta.Ti(b.Ok);this.D();this.fb=b;this.Ag=b.H;c=0;for(d=this.N.length;ce||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.Ub)*this.width,d=d[e][2],d=(d-c.Vb)*this.height,c=Math.cos(this.u);e=Math.sin(this.u);var g=f*c-d*e,d=d*c+f*e,f=g+this.x,d=d+this.y;return b?f:d};var g=[],f=-2,q=[];h.prototype.Zr=function(a){if(!a)return!1;var c=this.b,d=c.ep(),e=d.type,g=null;d.X.collmemory?g=d.X.collmemory:(g={},d.X.collmemory=g); d.X.spriteCreatedDestroyCallback||(d.X.spriteCreatedDestroyCallback=!0,c.Kl(function(a){var b=d.X.collmemory;a=a.uid;var c,e;for(c in b)b.hasOwnProperty(c)&&(e=b[c],e[0]===a||e[1]===a)&&(m(b[c]),delete b[c])}));var k=e.ya(),h=a.ya(),k=k.Dc(),n,v,B,N,K,D,J,M=this.b.Od,F=M-1,I=c.Qb().pc;for(v=0;v=k.length&&k.push(c(b,Object));d=k[d];d.text=f;d.width=a.jn(f);a.re=na(a.re,d.width)}var n=uc.prototype;n.F=function(){};n.T=function(a){this.za=a;this.b=a.b};var p=n.T.prototype;p.F=function(){this.J|| (this.G=new Image,this.b.mo(this.G,this.pl),this.H=null)};p.Gi=function(){this.J||(this.H=null)};p.Lk=function(){if(!this.J&&this.e.length){this.H||(this.H=this.b.A.gf(this.G,!1,this.b.Ca,this.bj));var a,b;a=0;for(b=this.e.length;a=d*f);n++){var t=n%d,v=Math.floor(n/d),A=l.charAt(n);if(this.b.A){var L=this.Dj,O=t*m,w=v*p,t=(t+1)*m,v=(v+1)*p;void 0===L[A]&&(L[A]=c(k,ta));L[A].left=O;L[A].top=w;L[A].right=t;L[A].bottom=v}else L=this.Cj,t=t*b,v=v*h,O=b,w=h,void 0===L[A]&&(L[A]=c(a,Object)),L[A].x=t,L[A].y=v,L[A].xr=O,L[A].kp=w}};var v= [];n.Gl=function(a){W(v);for(var b="",c,d=0;d=k)h(b,f,!0);else{var m=a.Me,p=a.zg;if(d.length*(a.Bj*m+p)-p<=k&&-1===d.indexOf("\n")&&(p=a.jn(d),p<=k)){h(b,f,!0);f.push(c(b, Object));f[0].text=d;f[0].width=p;a.re=p;a.Nd=a.Le*m+a.lineHeight;return}this.Il(a);a.Nd=f.length*(a.Le*m+a.lineHeight)}}else h(b,f,!0)};n.Il=function(a){var c=a.ij,d=a.text,k=a.Xb,h=a.width;c&&(this.Gl(d),d=v);var p="",l,n,y,H=0,A=!1;for(y=0;yh&&(""===l?(m(a,H,p),p="",A=!0):(m(a,H,l),p=d[y]),H++,c||" "!==p||(p="")));p.replace(/\s\s*$/,"").length&&(m(a,H,p),H++);for(y=H;ythis.width+1E-5)break;void 0!==u&&(D=K,J=R,0===m&&1===n&&(D=Math.round(D),J=Math.round(J)),a.drawImage(this.G,u.x,u.y,u.xr,u.kp,D,J,u.xr*n,u.kp*n));K+=G*n+O;if(0===m&&b+K>h)break}}R+=t;if(0===m&&(R+t+v>this.height||c+R>l))break}}a.restore()}};var d=new ua;p.Fb=function(a){a.gc(this.H);a.sf(this.opacity);if(this.text&&(this.Iq(),!(this.heightthis.width+1E-5)break;if(void 0!== z){var x=this.Bj*L,E=this.Le*L;F=M;I=v;0===n&&1===L&&(F=Math.round(F),I=Math.round(I));d.Ja=F;d.Ka=I;d.cb=F+x;d.eb=I;d.Va=F;d.Wa=I+E;d.Xa=F+x;d.Ya=I+E;0!==n&&(F=d,I=D,x=J,E=void 0,E=F.Ja*I-F.Ka*x,F.Ka=F.Ka*I+F.Ja*x,F.Ja=E,E=F.cb*I-F.eb*x,F.eb=F.eb*I+F.cb*x,F.cb=E,E=F.Va*I-F.Wa*x,F.Wa=F.Wa*I+F.Va*x,F.Va=E,E=F.Xa*I-F.Ya*x,F.Ya=F.Ya*I+F.Xa*x,F.Xa=E);d.offset(c,b);a.od(d.Ja,d.Ka,d.cb,d.eb,d.Xa,d.Ya,d.Va,d.Wa,z)}M+=K*L+G;if(0===n&&c+M>l)break}}v+=O;if(0===n&&(v+O+w>this.height||b+v>p))break}}};n.m=new function(){}; p.tj=function(a,b){var c=parseInt(b,10);this.Ne[a]!==c&&(this.Ne[a]=c,this.rd=!0,this.b.ma=!0)};n.R=new function(){};n.Sa=new function(){}})();function vc(c){this.b=c} (function(){function c(){return b.length?b.pop():{}}function h(a){var c,h;c=0;for(h=a.length;ca.Ba||b.top>a.Aa)this.b.A.deleteTexture(this.vc),this.Gd=this.eg=this.vc=null}};p.Hd=function(){this.Gd=this.eg=null;this.b.A&&this.vc&&this.b.A.deleteTexture(this.vc); this.vc=null};p.tj=function(){this.font=this.Zj+" "+this.Ki.toString()+"pt "+this.Fg;this.rd=!0;this.b.ma=!0};p.qc=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var c=1;b&&(c=Math.abs(this.j.Tb()),a.save(),a.scale(c,c));if(this.rd||this.width!==this.$f)this.type.za.Hl(this.text,this.Xb,a,this.width,this.ij),this.rd=!1,this.$f=this.width;this.Da();var c=b?0:this.Ob.Ja,d=b?0:this.Ob.Ka;this.b.Hc&&(c=c+.5|0,d=d+.5|0);0===this.u||b||(a.save(), a.translate(c,d),a.rotate(this.u),d=c=0);var e=d+this.height,g=this.Dn,g=g+this.Xm,f,h;1===this.we?d+=Math.max(this.height/2-this.Xb.length*g/2,0):2===this.we&&(d+=Math.max(this.height-this.Xb.length*g-2,0));for(h=0;h=e-g);h++);(0!==this.u||b)&&a.restore();this.Zf=this.b.Od};p.Fb=function(a){if(!(1>this.width||1>this.height)){var b=this.rd|| this.gq;this.gq=!1;var c=this.j.Tb(),d=this.j.nb(),e=this.nf,g=c*this.width,f=c*this.height,h=Math.ceil(g),m=Math.ceil(f),p=Math.abs(h),l=Math.abs(m),n=this.b.L/2,t=this.b.K/2;this.eg||(this.Gd=document.createElement("canvas"),this.Gd.width=p,this.Gd.height=l,this.vk=p,this.uk=l,b=!0,this.eg=this.Gd.getContext("2d"));if(p!==this.vk||l!==this.uk)this.Gd.width=p,this.Gd.height=l,this.vc&&(a.deleteTexture(this.vc),this.vc=null),b=!0;b&&(this.eg.clearRect(0,0,p,l),this.qc(this.eg,!0),this.vc||(this.vc= a.Ac(p,l,this.b.Ca,this.b.Tf)),a.Gw(this.Gd,this.vc,this.b.Tf));this.vk=p;this.uk=l;a.gc(this.vc);a.sf(this.opacity);a.Tc();a.translate(-n,-t);a.Lc();var H=this.Ob,b=this.j.Z(H.Ja,H.Ka,!0,!0),p=this.j.Z(H.Ja,H.Ka,!1,!0),l=this.j.Z(H.cb,H.eb,!0,!0),n=this.j.Z(H.cb,H.eb,!1,!0),t=this.j.Z(H.Xa,H.Ya,!0,!0),A=this.j.Z(H.Xa,H.Ya,!1,!0),L=this.j.Z(H.Va,H.Wa,!0,!0),H=this.j.Z(H.Va,H.Wa,!1,!0);if(this.b.Hc||0===this.u&&0===d)var O=(b+.5|0)-b,w=(p+.5|0)-p,b=b+O,p=p+w,l=l+O,n=n+w,t=t+O,A=A+w,L=L+O,H=H+w;0=== this.u&&0===d?(l=b+h,n=p,t=l,A=p+m,L=b,H=A,e.right=1,e.bottom=1):(e.right=g/h,e.bottom=f/m);a.od(b,p,l,n,t,A,L,H,e);a.Tc();a.scale(c,c);a.$k(-this.j.nb());a.translate((this.j.qa+this.j.Ba)/-2,(this.j.ra+this.j.Aa)/-2);a.Lc();this.Zf=this.b.Od}};var t=[];n.Gl=function(a){W(t);for(var b="",c,d=0;d=d)h(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var g=m.measureText(a).width;if(g<=d){h(b);b.push(c());b[0].text=a;b[0].width=g;return}}this.Il(a,b,m,d,e)}else h(b)};n.Il=function(a,k,h,d,e){e&&(this.Gl(a),a=t);var g="",f,p,n,B=0;for(n=0;n=k.length&&k.push(c()),g=m(g),p=k[B],p.text=g,p.width=h.measureText(g).width,B++,g=""):(f=g,g+=a[n],p=h.measureText(g).width, p>=d&&(B>=k.length&&k.push(c()),f=m(f),p=k[B],p.text=f,p.width=h.measureText(f).width,B++,g=a[n],e||" "!==g||(g="")));g.length&&(B>=k.length&&k.push(c()),g=m(g),p=k[B],p.text=g,p.width=h.measureText(g).width,B++);for(n=B;n=k||0>=h||b>=d||a>=e?(this.Ra||jQuery(this.k).hide(),this.Ra=!0):(1>b&&(b=1),1>a&&(a=1),k>=d&&(k=d-1),h>=e&&(h=e-1),d=window.innerWidth,e=window.innerHeight,c||this.$e!==b||this.df!==a||this.bf!==k||this.Xe!==h||this.ff!==d||this.ef!==e?(this.$e=b,this.df=a,this.bf=k,this.Xe=h,this.ff=d,this.ef=e,this.Ra&&(jQuery(this.k).show(),this.Ra=!1),c=Math.round(b)+jQuery(this.b.canvas).offset().left, d=Math.round(a)+jQuery(this.b.canvas).offset().top,jQuery(this.k).css("position","absolute"),jQuery(this.k).offset({left:c,top:d}),jQuery(this.k).width(Math.round(k-b)),jQuery(this.k).height(Math.round(h-a)),this.Nl&&jQuery(this.k).css("font-size",this.j.Tb(!0)/this.b.devicePixelRatio-.2+"em")):this.Ra&&(jQuery(this.k).show(),this.Ra=!1))}};n.qc=function(){};n.Fb=function(){};c.prototype.As=function(){return!0};c.prototype.lj=function(){return!0};c.prototype.as=function(){return!0};m.m=new c;h.prototype.Fl= function(c){this.b.ja||(this.visible=0!==c)};h.prototype.El=function(c,b){this.b.ja||jQuery(this.k).css(c,b)};m.R=new h;m.Sa=new function(){}})();function xc(c){this.b=c} (function(){function c(){}function h(){}var m=xc.prototype;m.T=function(c){this.za=c;this.b=c.b};var n=m.T.prototype;n.F=function(){this.J||(this.G=new Image,this.G.Oo=this.Wn,this.b.mo(this.G,this.pl),this.H=this.pattern=null)};n.Gi=function(){this.J||(this.H=null)};n.Lk=function(){if(!this.J&&this.e.length){this.H||(this.H=this.b.A.gf(this.G,!0,this.b.Ca,this.bj));var c,h;c=0;for(h=this.e.length;cm&&(m+=this.G.width);0>d&&(d+=this.G.height);c.translate(h,b);c.rotate(this.u);c.translate(m,d);c.fillRect(a-m,k-d,this.width,this.height);c.restore()};n.Hf=function(c){this.Fb(c)}; n.Fb=function(c){c.gc(this.H);c.sf(this.opacity);var h=this.nf;h.right=this.width/this.G.width;h.bottom=this.height/this.G.height;var b=this.Ob;if(this.b.Hc){var a=Math.round(this.x)-this.x,k=Math.round(this.y)-this.y;c.od(b.Ja+a,b.Ka+k,b.cb+a,b.eb+k,b.Xa+a,b.Ya+k,b.Va+a,b.Wa+k,h)}else c.od(b.Ja,b.Ka,b.cb,b.eb,b.Xa,b.Ya,b.Va,b.Wa,h)};c.prototype.Cl=function(){return!0};m.m=new c;h.prototype.ro=function(c,h){var b=new Image,a=this;b.onload=function(){a.G=b;a.b.A?(a.hk&&a.H&&a.b.A.deleteTexture(a.H), a.H=a.b.A.gf(b,!0,a.b.Ca)):a.pattern=a.b.Ma.createPattern(b,"repeat");a.hk=!0;a.b.ma=!0;a.b.trigger(xc.prototype.m.Cl,a)};"data:"!==c.substr(0,5)&&0===h&&(b.crossOrigin="anonymous");this.b.gl(b,c)};m.R=new h;m.Sa=new function(){}})();function yc(c){this.b=c} (function(){function c(){}function h(){}function m(){}var n=yc.prototype;n.T=function(b){this.za=b;this.b=b.b};n.T.prototype.F=function(){};n.M=function(b){this.type=b;this.b=b.b};var p=n.M.prototype,t=window.URL||window.webkitURL||window.mozURL||window.msURL;p.F=function(){if(this.b.ja)C("[Construct 2] File Chooser plugin not supported on this platform - the object will not be created");else{this.k=document.createElement("input");this.k.type="file";this.k.setAttribute("accept",this.q[0]);0!==this.q[1]&& this.k.setAttribute("multiple","");this.k.id=this.q[3];jQuery(this.k).appendTo(this.b.Ke?this.b.Ke:"body");this.Ra=!1;0===this.q[2]&&(jQuery(this.k).hide(),this.visible=!1,this.Ra=!0);var b=this;this.k.onchange=function(){b.b.trigger(yc.prototype.m.to,b)};this.ef=this.ff=this.Xe=this.bf=this.df=this.$e=0;this.vf(!0);this.b.qg(this)}};p.Hd=function(){this.b.ja||(jQuery(this.k).remove(),this.k=null)};p.Ga=function(){this.vf()};p.vf=function(b){if(!this.b.ja){var a=this.j.Z(this.x,this.y,!0),c=this.j.Z(this.x, this.y,!1),h=this.j.Z(this.x+this.width,this.y+this.height,!0),d=this.j.Z(this.x+this.width,this.y+this.height,!1),e=this.b.width/this.b.devicePixelRatio,g=this.b.height/this.b.devicePixelRatio;!this.visible||!this.j.visible||0>=h||0>=d||a>=e||c>=g?(this.Ra||jQuery(this.k).hide(),this.Ra=!0):(1>a&&(a=1),1>c&&(c=1),h>=e&&(h=e-1),d>=g&&(d=g-1),e=window.innerWidth,g=window.innerHeight,b||this.$e!==a||this.df!==c||this.bf!==h||this.Xe!==d||this.ff!==e||this.ef!==g?(this.$e=a,this.df=c,this.bf=h,this.Xe= d,this.ff=e,this.ef=g,this.Ra&&(jQuery(this.k).show(),this.Ra=!1),b=Math.round(a)+jQuery(this.b.canvas).offset().left,e=Math.round(c)+jQuery(this.b.canvas).offset().top,jQuery(this.k).css("position","absolute"),jQuery(this.k).offset({left:b,top:e}),jQuery(this.k).width(Math.round(h-a)),jQuery(this.k).height(Math.round(d-c))):this.Ra&&(jQuery(this.k).show(),this.Ra=!1))}};p.qc=function(){};p.Fb=function(){};c.prototype.to=function(){return!0};n.m=new c;h.prototype.Fl=function(b){this.b.ja||(this.visible= 0!==b)};h.prototype.El=function(b,a){this.b.ja||jQuery(this.k).css(b,a)};n.R=new h;m.prototype.Ir=function(b,a){var c;if(this.b.ja)c=null;else{c=this.k.files;var h=a;c?(h=Math.floor(h),c=0>h||h>=c.length?null:c[h]):c=null}c?c.c2url?b.Db(c.c2url):t&&t.createObjectURL?(c.c2url=t.createObjectURL(c),b.Db(c.c2url)):b.Db(""):b.Db("")};n.Sa=new m})();function zc(c){this.b=c} (function(){function c(a){var b;if(!d[a])for(d[a]=Array(20),b=0;20>b;++b)d[a][b]=0;return d[a]}function h(a){var b;if(!e[a])for(e[a]=Array(20),b=0;20>b;++b)e[a][b]=0;return e[a]}function m(a,b){return b?4<=a?-1:a+16:16<=a?-1:a}function n(b){v[b.gamepad.index]=b.gamepad;a.trigger(zc.prototype.m.ds,k)}function p(b){a.trigger(zc.prototype.m.es,k);v[b.gamepad.index]=null}function t(){}var b=zc.prototype;b.T=function(a){this.za=a;this.b=a.b};b.T.prototype.F=function(){};var a=null,k=null,v=Array(16),d= Array(16),e=Array(16),g="",f="",q=null,N={windows:{}};N.windows.firefox={};var B=[0,1,2,3,4,5,8,9,10,11],l=[0,1,[7,6],2,3,[14,15],[12,13]];N.windows.firefox.xbox360=function(a,b){return b?a>=l.length?-1:ia(l[a])?l[a]+16:l[a]:a>=B.length?-1:B[a]};var r=[2,0,1,3,4,6,5,7,8,9],y=[0,1,2,3,[14,15],[12,13]];N.windows.firefox.logitechdualaction=function(a,b){return b?a>=y.length?-1:ia(y[a])?y[a]+16:y[a]:a>=r.length?-1:r[a]};b.M=function(b){this.type=b;a=this.b=b.b;k=this};var H=b.M.prototype;H.F=function(){this.sk= 0;var a=navigator.userAgent;g="windows";/mac/i.test(a)&&(g="mac");q=N[g];f="chrome";/firefox/i.test(a)&&(f="firefox");q&&(q=q[f]);window.addEventListener("webkitgamepadconnected",n,!1);window.addEventListener("webkitgamepaddisconnected",p,!1);window.addEventListener("MozGamepadConnected",n,!1);window.addEventListener("MozGamepadDisconnected",p,!1);window.addEventListener("gamepadconnected",n,!1);window.addEventListener("gamepaddisconnected",p,!1);this.b.qg(this);this.Jl=[]};H.Ga=function(){this.Jl.length= 0;var a=null,b=!1;navigator.getGamepads?a=navigator.getGamepads():navigator.webkitGetGamepads?a=navigator.webkitGetGamepads():navigator.mozGetGamepads?a=navigator.mozGetGamepads():navigator.msGetGamepads?a=navigator.msGetGamepads():this.b.yp&&window.cr_getGamepads?(a=window.cr_getGamepads(),b=!0):a=navigator.gamepads||navigator.webkitGamepads||navigator.MozGamepads||v;if(a){var f,g,k,l,p,n,r;f=0;for(g=a.length;fp;++p)l[p]= k[p];b?k=m:q?(k="",l=t.id.toLowerCase(),-1n&&(y[n]=100*r,50<=y[n]&&50>B[n]&&(this.sk=n));k=0;for(l=t.axes.length;kn&&(y[n]=100*r):(y[n[0]]=0,y[n[1]]=0,0>=r?y[n[0]]=Math.abs(100*r):y[n[1]]=Math.abs(100*r));this.Jl.push(t)}else t= f,d[t]=null,e[t]=null}for(;20>f;++f)a=f,d[a]=null,e[a]=null}};H.bb=function(){return{lastButton:this.sk}};H.rb=function(a){this.sk=a.lastButton};t.prototype.ds=function(){return!0};t.prototype.es=function(){return!0};t.prototype.Mr=function(a,b){a=Math.floor(a);if(0>a||a>=this.Jl.length)return!1;var d=c(a);if(!d)return!1;if(d=50<=d[b])this.sk=b;return d};b.m=new t;b.R=new function(){};b.Sa=new function(){}})();function Ac(c){this.b=c} (function(){function c(){}var h=Ac.prototype;h.T=function(c){this.behavior=c;this.b=c.b};h.T.prototype.F=function(){};h.M=function(c,h){this.type=c;this.behavior=c.behavior;this.d=h;this.b=c.b};var m=h.M.prototype;m.F=function(){this.te=this.pe=this.Yi=this.mn=this.tn=0};m.bb=function(){return{ontime:this.tn,offtime:this.mn,stage:this.Yi,stagetimeleft:this.pe,timeleft:this.te}};m.rb=function(c){this.tn=c.ontime;this.mn=c.offtime;this.Yi=c.stage;this.pe=c.stagetimeleft;this.te=c.timeleft;null===this.te&& (this.te=Infinity)};m.Ga=function(){if(!(0>=this.te)){var c=this.b.Qh(this.d);this.te-=c;0>=this.te?(this.te=0,this.d.visible=!0,this.b.ma=!0,this.b.trigger(Ac.prototype.m.cs,this.d)):(this.pe-=c,0>=this.pe&&(0===this.Yi?(this.d.visible=!1,this.Yi=1,this.pe+=this.mn):(this.d.visible=!0,this.Yi=0,this.pe+=this.tn),this.b.ma=!0))}};c.prototype.cs=function(){return!0};h.m=new c;h.R=new function(){};h.Sa=new function(){}})();function Dc(c){this.b=c} (function(){function c(){}function h(){}var m=Dc.prototype;m.T=function(c){this.behavior=c;this.b=c.b};m.T.prototype.F=function(){};m.M=function(c,h){this.type=c;this.behavior=c.behavior;this.d=h;this.b=c.b;this.Wi=this.kl=this.jl=this.Cm=this.Ch=this.Ih=this.Vg=this.Wg=this.Oi=this.ni=!1;this.Hb=null;this.Ym=-1;this.Ze=this.Ye=0;this.Ph=!1;this.Nf=this.$c=0;this.Yj=!0;this.ua=this.W=0};var n=m.M.prototype;n.rr=function(){this.Za=Math.cos(this.Jg);this.$a=Math.sin(this.Jg);this.pf=Math.cos(this.Jg- Math.PI/2);this.qf=Math.sin(this.Jg-Math.PI/2);this.Za=gb(this.Za);this.$a=gb(this.$a);this.pf=gb(this.pf);this.qf=gb(this.qf);this.nm=this.Yd;0>this.Yd&&(this.Za*=-1,this.$a*=-1,this.Yd=Math.abs(this.Yd))};n.F=function(){this.dh=this.q[0];this.wg=this.q[1];this.Dg=this.q[2];this.ki=this.q[3];this.nm=this.Yd=this.q[4];this.Gk=this.q[5];this.Rj=0!==this.q[6];this.Tm=this.q[7]/1E3;this.et=1===this.q[8];this.enabled=0!==this.q[9];this.wh=!1;this.xh=this.b.qe(this.d);this.Zm=-1;this.pg=0;this.Jg=Y(90); this.rr();var c=this;this.et&&!this.b.ja&&(jQuery(document).keydown(function(h){c.qn(h)}),jQuery(document).keyup(function(h){c.rn(h)}));this.yc||(this.fq=function(h){c.pn(h)});this.b.Kl(this.fq);this.d.X.isPlatformBehavior=!0};n.bb=function(){return{ii:this.Cm,lfx:this.Ye,lfy:this.Ze,lfo:this.Hb?this.Hb.uid:-1,am:this.$c,en:this.enabled,fall:this.Nf,ft:this.Yj,dx:this.W,dy:this.ua,ms:this.dh,acc:this.wg,dec:this.Dg,js:this.ki,g:this.Yd,g1:this.nm,mf:this.Gk,wof:this.wh,woj:this.xh?this.xh.uid:-1, ga:this.Jg,edj:this.Rj,cdj:this.Ch,dj:this.Ih,sus:this.Tm}};n.rb=function(c){this.Cm=c.ii;this.Ye=c.lfx;this.Ze=c.lfy;this.Ym=c.lfo;this.$c=c.am;this.enabled=c.en;this.Nf=c.fall;this.Yj=c.ft;this.W=c.dx;this.ua=c.dy;this.dh=c.ms;this.wg=c.acc;this.Dg=c.dec;this.ki=c.js;this.Yd=c.g;this.nm=c.g1;this.Gk=c.mf;this.wh=c.wof;this.Zm=c.woj;this.Jg=c.ga;this.Rj=c.edj;this.Ch=c.cdj;this.Ih=c.dj;this.Tm=c.sus;this.Wi=this.kl=this.jl=this.Vg=this.Wg=this.Oi=this.ni=!1;this.pg=0;this.rr()};n.vd=function(){-1=== this.Ym?this.Hb=null:this.Hb=this.b.Kg(this.Ym);-1===this.Zm?this.xh=null:this.xh=this.b.Kg(this.Zm)};n.pn=function(c){this.Hb==c&&(this.Hb=null)};n.Hd=function(){this.Hb=null;this.b.Wv(this.fq)};n.qn=function(c){switch(c.which){case 38:c.preventDefault();this.Wg=!0;break;case 37:c.preventDefault();this.ni=!0;break;case 39:c.preventDefault(),this.Oi=!0}};n.rn=function(c){switch(c.which){case 38:c.preventDefault();this.Vg=this.Wg=!1;break;case 37:c.preventDefault();this.ni=!1;break;case 39:c.preventDefault(), this.Oi=!1}};n.ig=function(){this.Wg=this.Oi=this.ni=!1};n.tj=function(){return 0>this.Yd?-1:1};n.xp=function(){var c=null,h=null,b,a;b=this.d.x;a=this.d.y;this.d.x+=this.Za;this.d.y+=this.$a;this.d.D();if(this.Hb&&this.b.Kc(this.d,this.Hb)&&(!this.b.bo(this.Hb.type,mc)||this.Hb.X.solidEnabled))return this.d.x=b,this.d.y=a,this.d.D(),this.Hb;(c=this.b.jc(this.d))||0!==this.Nf||(h=this.b.qe(this.d,!0));this.d.x=b;this.d.y=a;this.d.D();if(c){if(this.b.Kc(this.d,c))return null;this.Ph=!1;return c}if(h&& h.length){a=c=0;for(b=h.length;cthis.Gk&&(this.ua=this.Gk)),N&&(this.Vg=!0));this.wh=!!B;n==a&&(0>this.W?(this.W+=this.Dg*c,0this.W&&(this.W=0)));n&&!a&&(this.W=0this.W?this.W+(this.wg+this.Dg)*c:this.W+this.wg*c);this.W>this.dh?this.W=this.dh:this.W<-this.dh&&(this.W=-this.dh);n=!1;0!==this.W&&(g=this.d.x,f=this.d.y,h=this.W*c*this.pf,b=this.W*c*this.qf,this.d.x+=this.pf*(1this.W?1:-1),this.qf*(0>this.W?1:-1),h,!1)?!B||k||this.Ph||(g=this.d.x,f=this.d.y,this.d.x+=this.Za,this.d.y+=this.$a,this.b.jc(this.d)?this.b.nd(this.d,-this.Za,-this.$a,3,!1)||(this.d.x=g,this.d.y=f,this.d.D()):(this.d.x=g,this.d.y= f,this.d.D())):(this.d.x=g,this.d.y=f,this.d.D()),k||(this.W=0)):!m&&!N&&Math.abs(this.ua)this.ua?1:-1),this.$a*(0>this.ua?1:-1),h,k,b)?(this.Hb=b,this.Ye=b.x,this.Ze=b.y,(this.Ph=k)&&(n=!0),this.ua=0):(this.d.x=g,this.d.y=f,this.d.D(),this.wh=!0,k||(this.ua=0)))}3!==this.$c&&0this.d.opacity?this.d.opacity=0:1=this.behavior.Vi&&bb?(c.x=t+1-(m.right-c.x),c.D()):m.bottomk&& (c.y=a+1-(m.bottom-c.y),c.D())}})(); function lc(){return[pc,sc,qc,rc,yc,tc,zc,oc,xc,uc,vc,wc,Dc,Ic,mc,Hc,nc,Ac,Jc,tc.prototype.m.vo,sc.prototype.m.Kr,Dc.prototype.R.Hr,tc.prototype.m.Or,Dc.prototype.R.Is,oc.prototype.R.Gs,oc.prototype.m.Fr,Z.prototype.Sa.uv,Z.prototype.R.Cs,oc.prototype.m.Zr,Z.prototype.R.Jr,rc.prototype.m.lj,pc.prototype.R.Play,sc.prototype.R.Ar,zc.prototype.m.Mr,sc.prototype.R.Cr,Z.prototype.R.Ds,vc.prototype.R.Ls,vc.prototype.R.Ur,Z.prototype.R.Ks,vc.prototype.R.Tr,Z.prototype.R.Sr,Dc.prototype.R.Es,Z.prototype.m.Pr, rc.prototype.R.El,vc.prototype.R.Fs,yc.prototype.m.to,oc.prototype.R.ro,yc.prototype.Sa.Ir]};