// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,da,I,ea,ga,ha,N,ia,ja,ma,na,oa,Q,qa,ra,S,ta,va,wa,xa,ya,za,Aa,U,Ba,Ca,Da,Ea,Fa,Ha,Ia,Ja,Ka,La,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,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,V,Wb,Xb={},Yb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(g){return g.__proto__}:function(g){return g.constructor.prototype});
(function(){function g(e,a,b,p){this.set(e,a,b,p)}function n(){this.ub=this.tb=this.xb=this.wb=this.Ib=this.Hb=this.Sa=this.Ra=0}function d(e,a,b,p){e<a?b<p?(m=e<b?e:b,w=a>p?a:p):(m=e<p?e:p,w=a>b?a:b):b<p?(m=a<b?a:b,w=e>p?e:p):(m=a<p?a:p,w=e>b?e:b)}function r(){this.items=this.Pc=null;this.Af=0;u&&(this.Pc=new Set);this.dg=[];this.Xd=!0}function l(e){y[O++]=e}function c(){this.Z=this.yj=this.y=this.$j=0}function a(e){this.Oa=[];this.Lh=this.Nh=this.Oh=this.Mh=0;this.xh(e)}function b(e,a){this.ck=
e;this.bk=a;this.cells={}}function x(e,a){this.ck=e;this.bk=a;this.cells={}}function s(e,a,b){var p;return Y.length?(p=Y.pop(),p.Mk=e,p.x=a,p.y=b,p):new aa(e,a,b)}function f(e,a,p){this.Mk=e;this.x=a;this.y=p;this.Wa=new ba}function h(e,a,p){var b;return T.length?(b=T.pop(),b.Mk=e,b.x=a,b.y=p,b):new da(e,a,p)}function t(e,a,p){this.Mk=e;this.x=a;this.y=p;this.Wa=[];this.yf=!0;this.cd=new ba;this.hg=!1}function k(e,a){return e.Uc-a.Uc}I=function(e){window.console&&window.console.log&&window.console.log(e)};
ea=function(e){window.console&&window.console.error&&window.console.error(e)};ga=function(e){return"undefined"===typeof e};ha=function(e){return"number"===typeof e};N=function(e){return"string"===typeof e};ia=function(e){return 0<e&&0===(e-1&e)};ja=function(e){--e;for(var a=1;32>a;a<<=1)e|=e>>a;return e+1};ma=function(e){return 0>e?-e:e};na=function(e,a){return e<a?e:a};oa=Math.PI;Q=function(e){return 0<=e?e|0:(e|0)-1};qa=function(e){var a=e|0;return a===e?a:a+1};ra=function(e,a,p,b,u,f,c,k){var y,
q,h,t;e<p?(q=e,y=p):(q=p,y=e);u<c?(t=u,h=c):(t=c,h=u);if(y<t||q>h)return!1;a<b?(q=a,y=b):(q=b,y=a);f<k?(t=f,h=k):(t=k,h=f);if(y<t||q>h)return!1;y=u-e+c-p;q=f-a+k-b;e=p-e;a=b-a;u=c-u;f=k-f;k=ma(a*u-f*e);return ma(u*q-f*y)>k?!1:ma(e*q-a*y)<=k};g.prototype.set=function(e,a,p,b){this.left=e;this.top=a;this.right=p;this.bottom=b};g.prototype.pg=function(e){this.left=e.left;this.top=e.top;this.right=e.right;this.bottom=e.bottom};g.prototype.width=function(){return this.right-this.left};g.prototype.height=
function(){return this.bottom-this.top};g.prototype.offset=function(e,a){this.left+=e;this.top+=a;this.right+=e;this.bottom+=a;return this};g.prototype.normalize=function(){var e=0;this.left>this.right&&(e=this.left,this.left=this.right,this.right=e);this.top>this.bottom&&(e=this.top,this.top=this.bottom,this.bottom=e)};g.prototype.Os=function(e){return!(e.right<this.left||e.bottom<this.top||e.left>this.right||e.top>this.bottom)};g.prototype.Ps=function(e,a,p){return!(e.right+a<this.left||e.bottom+
p<this.top||e.left+a>this.right||e.top+p>this.bottom)};g.prototype.$a=function(e,a){return e>=this.left&&e<=this.right&&a>=this.top&&a<=this.bottom};g.prototype.di=function(e){return this.left===e.left&&this.top===e.top&&this.right===e.right&&this.bottom===e.bottom};S=g;n.prototype.Tf=function(e){this.Ra=e.left;this.Sa=e.top;this.Hb=e.right;this.Ib=e.top;this.wb=e.right;this.xb=e.bottom;this.tb=e.left;this.ub=e.bottom};n.prototype.bp=function(e,a){if(0===a)this.Tf(e);else{var p=Math.sin(a),b=Math.cos(a),
u=e.left*p,f=e.top*p,c=e.right*p,p=e.bottom*p,k=e.left*b,y=e.top*b,q=e.right*b,b=e.bottom*b;this.Ra=k-f;this.Sa=y+u;this.Hb=q-f;this.Ib=y+c;this.wb=q-p;this.xb=b+c;this.tb=k-p;this.ub=b+u}};n.prototype.offset=function(e,a){this.Ra+=e;this.Sa+=a;this.Hb+=e;this.Ib+=a;this.wb+=e;this.xb+=a;this.tb+=e;this.ub+=a;return this};var m=0,w=0;n.prototype.Rm=function(e){d(this.Ra,this.Hb,this.wb,this.tb);e.left=m;e.right=w;d(this.Sa,this.Ib,this.xb,this.ub);e.top=m;e.bottom=w};n.prototype.$a=function(e,a){var p=
this.Hb-this.Ra,b=this.Ib-this.Sa,u=this.wb-this.Ra,f=this.xb-this.Sa,c=e-this.Ra,k=a-this.Sa,y=p*p+b*b,q=p*u+b*f,b=p*c+b*k,h=u*u+f*f,t=u*c+f*k,m=1/(y*h-q*q),p=(h*b-q*t)*m,y=(y*t-q*b)*m;if(0<=p&&0<y&&1>p+y)return!0;p=this.tb-this.Ra;b=this.ub-this.Sa;y=p*p+b*b;q=p*u+b*f;b=p*c+b*k;m=1/(y*h-q*q);p=(h*b-q*t)*m;y=(y*t-q*b)*m;return 0<=p&&0<y&&1>p+y};n.prototype.Vd=function(e,a){if(a)switch(e){case 0:return this.Ra;case 1:return this.Hb;case 2:return this.wb;case 3:return this.tb;case 4:return this.Ra;
default:return this.Ra}else switch(e){case 0:return this.Sa;case 1:return this.Ib;case 2:return this.xb;case 3:return this.ub;case 4:return this.Sa;default:return this.Sa}};n.prototype.lo=function(){return(this.Ra+this.Hb+this.wb+this.tb)/4};n.prototype.mo=function(){return(this.Sa+this.Ib+this.xb+this.ub)/4};n.prototype.Dn=function(e){var a=e.lo(),p=e.mo();if(this.$a(a,p))return!0;a=this.lo();p=this.mo();if(e.$a(a,p))return!0;var b,u,f,c,k,y,q,h;for(q=0;4>q;q++)for(h=0;4>h;h++)if(a=this.Vd(q,!0),
p=this.Vd(q,!1),b=this.Vd(q+1,!0),u=this.Vd(q+1,!1),f=e.Vd(h,!0),c=e.Vd(h,!1),k=e.Vd(h+1,!0),y=e.Vd(h+1,!1),ra(a,p,b,u,f,c,k,y))return!0;return!1};ta=n;va=function(e,a){for(var p in a)a.hasOwnProperty(p)&&(e[p]=a[p]);return e};wa=function(e,a){var p,b;a=Q(a);if(!(0>a||a>=e.length)){p=a;for(b=e.length-1;p<b;p++)e[p]=e[p+1];e.length=b}};xa=function(e,a){e.length=a.length;var p,b;p=0;for(b=a.length;p<b;p++)e[p]=a[p]};ya=function(e,a){e.push.apply(e,a)};za=function(e,a){var p,b;p=0;for(b=e.length;p<b;++p)if(e[p]===
a)return p;return-1};Aa=function(e,a){var p=za(e,a);-1!==p&&wa(e,p)};U=function(e){return e/(180/oa)};Ba=function(e){return 180/oa*e};Ca=function(e){e%=360;0>e&&(e+=360);return e};Da=function(e){e%=2*oa;0>e&&(e+=2*oa);return e};Ea=function(e){return Ca(Ba(e))};Fa=function(e){return Da(U(e))};Ha=function(e,a,p,b){return Math.atan2(b-a,p-e)};Ia=function(e,a){if(e===a)return 0;var p=Math.sin(e),b=Math.cos(e),u=Math.sin(a),f=Math.cos(a),p=p*u+b*f;return 1<=p?0:-1>=p?oa:Math.acos(p)};Ja=function(e,a,p){var b=
Math.sin(e),u=Math.cos(e),f=Math.sin(a),c=Math.cos(a);return Math.acos(b*f+u*c)>p?0<u*f-b*c?Da(e+p):Da(e-p):Da(a)};Ka=function(e,a){var p=Math.sin(e),b=Math.cos(e),u=Math.sin(a),f=Math.cos(a);return 0>=b*u-p*f};La=function(e,a,p,b,u,f){if(0===p)return f?e:a;var c=Math.sin(p);p=Math.cos(p);e-=b;a-=u;var k=e*c;e=e*p-a*c;a=a*p+k;return f?e+b:a+u};Qa=function(e,a,p,b){e=p-e;a=b-a;return Math.sqrt(e*e+a*a)};Ra=function(e,a){return!e!==!a};Sa=function(e){for(var a in e)if(e.hasOwnProperty(a))return!0;return!1};
Ta=function(e){for(var a in e)e.hasOwnProperty(a)&&delete e[a]};var A=+new Date;Ua=function(){if("undefined"!==typeof window.performance){var e=window.performance;if("undefined"!==typeof e.now)return e.now();if("undefined"!==typeof e.webkitNow)return e.webkitNow();if("undefined"!==typeof e.mozNow)return e.mozNow();if("undefined"!==typeof e.msNow)return e.msNow()}return Date.now()-A};var q=!1,e=q=!1,p=!1;"undefined"!==typeof window&&(q=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
q=!q&&/safari/i.test(navigator.userAgent),e=/(iphone|ipod|ipad)/i.test(navigator.userAgent),p=window.c2ejecta);var u=!q&&!p&&!e&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;r.prototype.contains=function(e){return this.yd()?!1:u?this.Pc.has(e):this.items&&this.items.hasOwnProperty(e)};r.prototype.add=function(e){if(u)this.Pc.has(e)||(this.Pc.add(e),this.Xd=!1);else{var a=e.toString(),p=this.items;p?p.hasOwnProperty(a)||(p[a]=e,this.Af++,this.Xd=!1):(this.items={},this.items[a]=
e,this.Af=1,this.Xd=!1)}};r.prototype.remove=function(e){if(!this.yd())if(u)this.Pc.has(e)&&(this.Pc["delete"](e),this.Xd=!1);else if(this.items){e=e.toString();var a=this.items;a.hasOwnProperty(e)&&(delete a[e],this.Af--,this.Xd=!1)}};r.prototype.clear=function(){this.yd()||(u?this.Pc.clear():(this.items=null,this.Af=0),this.dg.length=0,this.Xd=!0)};r.prototype.yd=function(){return 0===this.count()};r.prototype.count=function(){return u?this.Pc.size:this.Af};var y=null,O=0;r.prototype.hu=function(){if(!this.Xd){if(u)this.dg.length=
this.Pc.size,y=this.dg,O=0,this.Pc.forEach(l),y=null,O=0;else{var e=this.dg;e.length=this.Af;var a,p=0,b=this.items;if(b)for(a in b)b.hasOwnProperty(a)&&(e[p++]=b[a])}this.Xd=!0}};r.prototype.Tc=function(){this.hu();return this.dg};ba=r;new ba;Va=function(e,a){u?Wa(e,a.Pc):Xa(e,a.Tc())};Wa=function(e,a){var p,b,u,f;b=p=0;for(u=e.length;p<u;++p)f=e[p],a.has(f)||(e[b++]=f);e.length=b};Xa=function(e,a){var p,b,u,f;b=p=0;for(u=e.length;p<u;++p)f=e[p],-1===za(a,f)&&(e[b++]=f);e.length=b};c.prototype.add=
function(e){this.y=e-this.$j;this.yj=this.Z+this.y;this.$j=this.yj-this.Z-this.y;this.Z=this.yj};c.prototype.reset=function(){this.Z=this.yj=this.y=this.$j=0};Ya=c;Za=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};a.prototype.xh=function(e){this.Oo=e;this.Nc=e.length/2;this.Oa.length=e.length;this.Sh=this.Th=-1;this.Um=0};a.prototype.vf=function(){return!this.Oo.length};a.prototype.ma=function(){for(var e=this.Oa,a=e[0],p=a,b=e[1],u=b,f,c,k=1,y=this.Nc;k<y;++k)c=2*k,f=e[c],c=e[c+
1],f<a&&(a=f),f>p&&(p=f),c<b&&(b=c),c>u&&(u=c);this.Mh=a;this.Nh=p;this.Oh=b;this.Lh=u};a.prototype.Tf=function(e,a,p){this.Oa.length=8;this.Nc=4;var b=this.Oa;b[0]=e.left-a;b[1]=e.top-p;b[2]=e.right-a;b[3]=e.top-p;b[4]=e.right-a;b[5]=e.bottom-p;b[6]=e.left-a;b[7]=e.bottom-p;this.Th=e.right-e.left;this.Sh=e.bottom-e.top;this.ma()};a.prototype.Sf=function(e,a,p,b,u){this.Oa.length=8;this.Nc=4;var f=this.Oa;f[0]=e.Ra-a;f[1]=e.Sa-p;f[2]=e.Hb-a;f[3]=e.Ib-p;f[4]=e.wb-a;f[5]=e.xb-p;f[6]=e.tb-a;f[7]=e.ub-
p;this.Th=b;this.Sh=u;this.ma()};a.prototype.$o=function(e){this.Nc=e.Nc;xa(this.Oa,e.Oa);this.Mh=e.Mh;this.Oh-e.Oh;this.Nh=e.Nh;this.Lh=e.Lh};a.prototype.hf=function(e,a,p){if(this.Th!==e||this.Sh!==a||this.Um!==p){this.Th=e;this.Sh=a;this.Um=p;var b,u,f,c,k,y=0,q=1,h=this.Oo,t=this.Oa;0!==p&&(y=Math.sin(p),q=Math.cos(p));p=0;for(f=this.Nc;p<f;p++)b=2*p,u=b+1,c=h[b]*e,k=h[u]*a,t[b]=c*q-k*y,t[u]=k*q+c*y;this.ma()}};a.prototype.$a=function(e,a){var p=this.Oa;if(e===p[0]&&a===p[1])return!0;var b,u,
f,c=this.Nc,k=this.Mh-110,y=this.Oh-101,q=this.Nh+131,h=this.Lh+120,t,m,O=0,d=0;for(b=0;b<c;b++)u=2*b,f=(b+1)%c*2,t=p[u],u=p[u+1],m=p[f],f=p[f+1],ra(k,y,e,a,t,u,m,f)&&O++,ra(q,h,e,a,t,u,m,f)&&d++;return 1===O%2||1===d%2};a.prototype.Fg=function(e,a,p){var b=e.Oa,u=this.Oa;if(this.$a(b[0]+a,b[1]+p)||e.$a(u[0]-a,u[1]-p))return!0;var f,c,k,y,q,h,t,m,O,d,T,x;f=0;for(y=this.Nc;f<y;f++)for(c=2*f,k=(f+1)%y*2,m=u[c],c=u[c+1],O=u[k],d=u[k+1],k=0,t=e.Nc;k<t;k++)if(q=2*k,h=(k+1)%t*2,T=b[q]+a,q=b[q+1]+p,x=b[h]+
a,h=b[h+1]+p,ra(m,c,O,d,T,q,x,h))return!0;return!1};$a=a;b.prototype.de=function(e,a,p){var b;b=this.cells[e];return b?(b=b[a])?b:p?(b=s(this,e,a),this.cells[e][a]=b):null:p?(b=s(this,e,a),this.cells[e]={},this.cells[e][a]=b):null};b.prototype.$b=function(e){return Q(e/this.ck)};b.prototype.ac=function(e){return Q(e/this.bk)};b.prototype.update=function(e,a,p){var b,u,f,c,k;if(a)for(b=a.left,u=a.right;b<=u;++b)for(f=a.top,c=a.bottom;f<=c;++f)if(!p||!p.$a(b,f))if(k=this.de(b,f,!1))k.remove(e),k.yd()&&
(k.Wa.clear(),1E3>Y.length&&Y.push(k),this.cells[b][f]=null);if(p)for(b=p.left,u=p.right;b<=u;++b)for(f=p.top,c=p.bottom;f<=c;++f)a&&a.$a(b,f)||this.de(b,f,!0).Wk(e)};b.prototype.jj=function(e,a){var p,b,u,f,c,k;p=this.$b(e.left);u=this.ac(e.top);b=this.$b(e.right);for(c=this.ac(e.bottom);p<=b;++p)for(f=u;f<=c;++f)(k=this.de(p,f,!1))&&k.dump(a)};ab=b;x.prototype.de=function(e,a,p){var b;b=this.cells[e];return b?(b=b[a])?b:p?(b=h(this,e,a),this.cells[e][a]=b):null:p?(b=h(this,e,a),this.cells[e]={},
this.cells[e][a]=b):null};x.prototype.$b=function(e){return Q(e/this.ck)};x.prototype.ac=function(e){return Q(e/this.bk)};x.prototype.update=function(e,a,p){var b,u,f,c,k;if(a)for(b=a.left,u=a.right;b<=u;++b)for(f=a.top,c=a.bottom;f<=c;++f)if(!p||!p.$a(b,f))if(k=this.de(b,f,!1))k.remove(e),k.yd()&&(k.reset(),1E3>T.length&&T.push(k),this.cells[b][f]=null);if(p)for(b=p.left,u=p.right;b<=u;++b)for(f=p.top,c=p.bottom;f<=c;++f)a&&a.$a(b,f)||this.de(b,f,!0).Wk(e)};x.prototype.jj=function(e,a,p,b,u){var f,
c;e=this.$b(e);a=this.ac(a);p=this.$b(p);for(f=this.ac(b);e<=p;++e)for(b=a;b<=f;++b)(c=this.de(e,b,!1))&&c.dump(u)};x.prototype.bt=function(e){var a,p,b,u,f;a=e.left;b=e.top;p=e.right;for(u=e.bottom;a<=p;++a)for(e=b;e<=u;++e)if(f=this.de(a,e,!1))f.yf=!1};bb=x;var Y=[];f.prototype.yd=function(){return this.Wa.yd()};f.prototype.Wk=function(e){this.Wa.add(e)};f.prototype.remove=function(e){this.Wa.remove(e)};f.prototype.dump=function(e){ya(e,this.Wa.Tc())};aa=f;var T=[];t.prototype.yd=function(){if(!this.Wa.length)return!0;
if(this.Wa.length>this.cd.count())return!1;this.xk();return!0};t.prototype.Wk=function(e){this.cd.contains(e)?(this.cd.remove(e),this.cd.yd()&&(this.hg=!1)):this.Wa.length?(this.Wa[this.Wa.length-1].tc()>e.tc()&&(this.yf=!1),this.Wa.push(e)):(this.Wa.push(e),this.yf=!0)};t.prototype.remove=function(e){this.cd.add(e);this.hg=!0;30<=this.cd.count()&&this.xk()};t.prototype.xk=function(){this.hg&&(this.cd.count()===this.Wa.length?this.reset():(Va(this.Wa,this.cd),this.cd.clear(),this.hg=!1))};t.prototype.Ar=
function(){this.yf||(this.Wa.sort(k),this.yf=!0)};t.prototype.reset=function(){this.Wa.length=0;this.yf=!0;this.cd.clear();this.hg=!1};t.prototype.dump=function(e){this.xk();this.Ar();this.Wa.length&&e.push(this.Wa)};da=t;var z="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");cb=function(e){return 0>=e||11<=e?"source-over":z[e-1]};db=function(e,a,p){if(p)switch(e.jb=p.ONE,e.ib=p.ONE_MINUS_SRC_ALPHA,a){case 1:e.jb=p.ONE;
e.ib=p.ONE;break;case 3:e.jb=p.ONE;e.ib=p.ZERO;break;case 4:e.jb=p.ONE_MINUS_DST_ALPHA;e.ib=p.ONE;break;case 5:e.jb=p.DST_ALPHA;e.ib=p.ZERO;break;case 6:e.jb=p.ZERO;e.ib=p.SRC_ALPHA;break;case 7:e.jb=p.ONE_MINUS_DST_ALPHA;e.ib=p.ZERO;break;case 8:e.jb=p.ZERO;e.ib=p.ONE_MINUS_SRC_ALPHA;break;case 9:e.jb=p.DST_ALPHA;e.ib=p.ONE_MINUS_SRC_ALPHA;break;case 10:e.jb=p.ONE_MINUS_DST_ALPHA,e.ib=p.SRC_ALPHA}};eb=function(e){return Math.round(1E6*e)/1E6};fb=function(e,a){return"string"!==typeof e||"string"!==
typeof a||e.length!==a.length?!1:e===a?!0:e.toLowerCase()===a.toLowerCase()};gb=function(e){e=e.target;return!e||e===document||e===window||document&&document.body&&e===document.body||fb(e.tagName,"canvas")?!0:!1}})();var Zb="undefined"!==typeof Float32Array?Float32Array:Array;function $b(g){var n=new Zb(3);g&&(n[0]=g[0],n[1]=g[1],n[2]=g[2]);return n}
function ac(g){var n=new Zb(16);g&&(n[0]=g[0],n[1]=g[1],n[2]=g[2],n[3]=g[3],n[4]=g[4],n[5]=g[5],n[6]=g[6],n[7]=g[7],n[8]=g[8],n[9]=g[9],n[10]=g[10],n[11]=g[11],n[12]=g[12],n[13]=g[13],n[14]=g[14],n[15]=g[15]);return n}function bc(g,n){n[0]=g[0];n[1]=g[1];n[2]=g[2];n[3]=g[3];n[4]=g[4];n[5]=g[5];n[6]=g[6];n[7]=g[7];n[8]=g[8];n[9]=g[9];n[10]=g[10];n[11]=g[11];n[12]=g[12];n[13]=g[13];n[14]=g[14];n[15]=g[15]}
function cc(g,n){var d=n[0],r=n[1];n=n[2];g[0]*=d;g[1]*=d;g[2]*=d;g[3]*=d;g[4]*=r;g[5]*=r;g[6]*=r;g[7]*=r;g[8]*=n;g[9]*=n;g[10]*=n;g[11]*=n}
function dc(g,n,d,r){r||(r=ac());var l,c,a,b,x,s,f,h,t=g[0],k=g[1];g=g[2];c=d[0];a=d[1];l=d[2];d=n[1];s=n[2];t===n[0]&&k===d&&g===s?(g=r,g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=1,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=1,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1):(d=t-n[0],s=k-n[1],f=g-n[2],h=1/Math.sqrt(d*d+s*s+f*f),d*=h,s*=h,f*=h,n=a*f-l*s,l=l*d-c*f,c=c*s-a*d,(h=Math.sqrt(n*n+l*l+c*c))?(h=1/h,n*=h,l*=h,c*=h):c=l=n=0,a=s*c-f*l,b=f*n-d*c,x=d*l-s*n,(h=Math.sqrt(a*a+b*b+x*x))?(h=1/h,a*=h,b*=h,x*=h):x=b=a=0,
r[0]=n,r[1]=a,r[2]=d,r[3]=0,r[4]=l,r[5]=b,r[6]=s,r[7]=0,r[8]=c,r[9]=x,r[10]=f,r[11]=0,r[12]=-(n*t+l*k+c*g),r[13]=-(a*t+b*k+x*g),r[14]=-(d*t+s*k+f*g),r[15]=1)}
(function(){function g(c){this.Le=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Vm=$b([0,0,100]);this.Un=$b([0,0,0]);this.wp=$b([0,1,0]);this.vm=$b([1,1,1]);this.cn=!0;this.ol=ac();this.zc=ac();this.Mn=ac();this.kk=ac();this.k=c;this.zn()}function n(c,a,b){this.k=c;this.yh=a;this.name=b;this.yc=c.getAttribLocation(a,"aPos");this.ie=c.getAttribLocation(a,"aTex");this.Sn=c.getUniformLocation(a,"matP");this.Pi=c.getUniformLocation(a,"matMV");this.Ef=
c.getUniformLocation(a,"opacity");this.Tn=c.getUniformLocation(a,"samplerFront");this.Yg=c.getUniformLocation(a,"samplerBack");this.Te=c.getUniformLocation(a,"destStart");this.Se=c.getUniformLocation(a,"destEnd");this.ll=c.getUniformLocation(a,"seconds");this.kl=c.getUniformLocation(a,"pixelWidth");this.jl=c.getUniformLocation(a,"pixelHeight");this.Xg=c.getUniformLocation(a,"layerScale");this.Wg=c.getUniformLocation(a,"layerAngle");this.$g=c.getUniformLocation(a,"viewOrigin");this.Zg=c.getUniformLocation(a,
"scrollPos");this.Js=!!(this.kl||this.jl||this.ll||this.Yg||this.Te||this.Se||this.Xg||this.Wg||this.$g||this.Zg);this.bo=this.co=-999;this.Ri=1;this.Yn=this.Xn=0;this.$n=this.Wn=this.Vn=1;this.fo=this.eo=this.jo=this.ho=this.Zn=0;this.fl=[];this.ao=ac();this.Ef&&c.uniform1f(this.Ef,1);this.Tn&&c.uniform1i(this.Tn,0);this.Yg&&c.uniform1i(this.Yg,1);this.Te&&c.uniform2f(this.Te,0,0);this.Se&&c.uniform2f(this.Se,1,1);this.Xg&&c.uniform1f(this.Xg,1);this.Wg&&c.uniform1f(this.Wg,0);this.$g&&c.uniform2f(this.$g,
0,0);this.Zg&&c.uniform2f(this.Zg,0,0);this.He=!1}function d(c,a){this.type=c;this.n=a;this.k=a.k;this.uc=this.jc=this.yo=0;this.X=this.Rc=null;this.cp=[]}g.prototype.zn=function(){var c=this.k,a;this.Nn=1;this.Pe=this.Oe=null;this.Zh=1;c.clearColor(0,0,0,0);c.clear(c.COLOR_BUFFER_BIT);c.enable(c.BLEND);c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA);c.disable(c.CULL_FACE);c.disable(c.DEPTH_TEST);this.On=c.ONE;this.Ln=c.ONE_MINUS_SRC_ALPHA;this.Fl=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,this.Fl);this.Ih=
Array(4);this.Ch=Array(4);for(a=0;4>a;a++)this.Ih[a]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Ih[a]),this.Ch[a]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Ch[a]);this.pd=0;this.Ms=c.createBuffer();c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.Ms);this.qm=new Float32Array(16E3);this.am=new Float32Array(16E3);this.Ko=new Float32Array(32E3);for(var b=new Uint16Array(12E3),d=a=0;12E3>a;)b[a++]=d,b[a++]=d+1,b[a++]=d+2,b[a++]=d,b[a++]=d+2,b[a++]=d+3,d+=4;c.bufferData(c.ELEMENT_ARRAY_BUFFER,b,
c.STATIC_DRAW);this.Mf=this.jd=0;this.Qa=[];a=this.jk({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}"},"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}","<default>");
this.Qa.push(a);a=this.jk({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}","<point>");this.Qa.push(a);for(var s in ec)ec.hasOwnProperty(s)&&this.Qa.push(this.jk(ec[s],
"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}",s));c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,null);this.od=[];this.Wc=0;this.Rb=this.zb=!1;this.Zm=this.Mg=-1;this.sg=null;this.$r=c.createFramebuffer();this.Ro=null;this.qe=$b([0,0,0]);c=c.getParameter(c.ALIASED_POINT_SIZE_RANGE);this.et=c[0];this.pl=
c[1];2048<this.pl&&(this.pl=2048);this.fd(0)};n.prototype.lm=function(c){var a=this.ao;if(a[0]!==c[0]||a[1]!==c[1]||a[2]!==c[2]||a[3]!==c[3]||a[4]!==c[4]||a[5]!==c[5]||a[6]!==c[6]||a[7]!==c[7]||a[8]!==c[8]||a[9]!==c[9]||a[10]!==c[10]||a[11]!==c[11]||a[12]!==c[12]||a[13]!==c[13]||a[14]!==c[14]||a[15]!==c[15])bc(c,this.ao),this.k.uniformMatrix4fv(this.Pi,!1,c)};g.prototype.jk=function(c,a,b){var d=this.k,s=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(s,c.src);d.compileShader(s);if(!d.getShaderParameter(s,
d.COMPILE_STATUS))return d.deleteShader(s),null;var f=d.createShader(d.VERTEX_SHADER);d.shaderSource(f,a);d.compileShader(f);if(!d.getShaderParameter(f,d.COMPILE_STATUS))return d.deleteShader(s),d.deleteShader(f),null;a=d.createProgram();d.attachShader(a,s);d.attachShader(a,f);d.linkProgram(a);if(!d.getProgramParameter(a,d.LINK_STATUS))return d.deleteShader(s),d.deleteShader(f),d.deleteProgram(a),null;d.useProgram(a);d.deleteShader(s);d.deleteShader(f);b=new n(d,a,b);b.tk=c.tk||0;b.uk=c.uk||0;b.Ym=
!!c.Ym;b.Om=!!c.Om;b.K=c.K||[];c=0;for(s=b.K.length;c<s;c++)b.K[c][1]=d.getUniformLocation(a,b.K[c][0]),b.fl.push(0),d.uniform1f(b.K[c][1],0);return b};g.prototype.Jk=function(c){var a,b;a=0;for(b=this.Qa.length;a<b;a++)if(this.Qa[a].name===c)return a;return-1};g.prototype.No=function(c,a,b){var d=this.zc,s=this.ol,f=[0,0,0,0,0,0,0,0];f[0]=d[0]*c+d[4]*a+d[12];f[1]=d[1]*c+d[5]*a+d[13];f[2]=d[2]*c+d[6]*a+d[14];f[3]=d[3]*c+d[7]*a+d[15];f[4]=s[0]*f[0]+s[4]*f[1]+s[8]*f[2]+s[12]*f[3];f[5]=s[1]*f[0]+s[5]*
f[1]+s[9]*f[2]+s[13]*f[3];f[6]=s[2]*f[0]+s[6]*f[1]+s[10]*f[2]+s[14]*f[3];f[7]=-f[2];0!==f[7]&&(f[7]=1/f[7],f[4]*=f[7],f[5]*=f[7],f[6]*=f[7],b[0]=(.5*f[4]+.5)*this.width,b[1]=(.5*f[5]+.5)*this.height)};g.prototype.Rf=function(c,a,b){if(this.width!==c||this.height!==a||b){this.ae();this.width=c;this.height=a;this.k.viewport(0,0,c,a);a=c/a;var d=this.ol,s;s=1*Math.tan(45*Math.PI/360);a*=s;c=-a;b=-s;d||(d=ac());var f=a-c,h=s-b;d[0]=2/f;d[1]=0;d[2]=0;d[3]=0;d[4]=0;d[5]=2/h;d[6]=0;d[7]=0;d[8]=(a+c)/f;d[9]=
(s+b)/h;d[10]=-1001/999;d[11]=-1;d[12]=0;d[13]=0;d[14]=-2E3/999;d[15]=0;dc(this.Vm,this.Un,this.wp,this.zc);c=[0,0];a=[0,0];this.No(0,0,c);this.No(1,1,a);this.vm[0]=1/(a[0]-c[0]);this.vm[1]=-1/(a[1]-c[1]);c=0;for(a=this.Qa.length;c<a;c++)b=this.Qa[c],b.He=!1,b.Sn&&(this.k.useProgram(b.yh),this.k.uniformMatrix4fv(b.Sn,!1,this.ol));this.k.useProgram(this.Qa[this.Mg].yh);this.k.bindTexture(this.k.TEXTURE_2D,null);this.k.activeTexture(this.k.TEXTURE1);this.k.bindTexture(this.k.TEXTURE_2D,null);this.k.activeTexture(this.k.TEXTURE0);
this.Pe=this.Oe=null}};g.prototype.le=function(){dc(this.Vm,this.Un,this.wp,this.zc);cc(this.zc,this.vm)};g.prototype.translate=function(c,a){if(0!==c||0!==a){this.qe[0]=c;this.qe[1]=a;this.qe[2]=0;var b=this.zc,d=this.qe,s=d[0],f=d[1],d=d[2];b[12]=b[0]*s+b[4]*f+b[8]*d+b[12];b[13]=b[1]*s+b[5]*f+b[9]*d+b[13];b[14]=b[2]*s+b[6]*f+b[10]*d+b[14];b[15]=b[3]*s+b[7]*f+b[11]*d+b[15]}};g.prototype.scale=function(c,a){if(1!==c||1!==a)this.qe[0]=c,this.qe[1]=a,this.qe[2]=1,cc(this.zc,this.qe)};g.prototype.So=
function(c){if(0!==c){var a=this.zc,b,d=Math.sin(c);c=Math.cos(c);var s=a[0],f=a[1],h=a[2],t=a[3],k=a[4],m=a[5],w=a[6],g=a[7];b?a!==b&&(b[8]=a[8],b[9]=a[9],b[10]=a[10],b[11]=a[11],b[12]=a[12],b[13]=a[13],b[14]=a[14],b[15]=a[15]):b=a;b[0]=s*c+k*d;b[1]=f*c+m*d;b[2]=h*c+w*d;b[3]=t*c+g*d;b[4]=s*-d+k*c;b[5]=f*-d+m*c;b[6]=h*-d+w*c;b[7]=t*-d+g*c}};g.prototype.se=function(){for(var c=!1,a=0;16>a;a++)if(this.Mn[a]!==this.zc[a]){c=!0;break}c&&(c=this.Ac(),c.type=5,c.X?bc(this.zc,c.X):c.X=ac(this.zc),bc(this.zc,
this.Mn),this.Rb=this.zb=!1)};d.prototype.mr=function(){this.k.bindTexture(this.k.TEXTURE_2D,this.Rc)};d.prototype.nr=function(){var c=this.k;c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,this.Rc);c.activeTexture(c.TEXTURE0)};d.prototype.jr=function(){var c=this.yo,a=this.n;a.Zh=c;a=a.sg;a.Ef&&a.Ri!==c&&(a.Ri=c,this.k.uniform1f(a.Ef,c))};d.prototype.fr=function(){this.k.drawElements(this.k.TRIANGLES,this.uc,this.k.UNSIGNED_SHORT,2*this.jc)};d.prototype.ir=function(){this.k.blendFunc(this.jc,
this.uc)};d.prototype.or=function(){var c,a,b,d=this.n.Qa,s=this.n.Zm;c=0;for(a=d.length;c<a;c++)b=d[c],c===s&&b.Pi?(b.lm(this.X),b.He=!0):b.He=!1;bc(this.X,this.n.kk)};d.prototype.hr=function(){var c=this.k,a=this.n;this.Rc?(a.Pe===this.Rc&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,null),a.Pe=null,c.activeTexture(c.TEXTURE0)),c.bindFramebuffer(c.FRAMEBUFFER,a.$r),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,this.Rc,0)):(c.framebufferTexture2D(c.FRAMEBUFFER,
c.COLOR_ATTACHMENT0,c.TEXTURE_2D,null,0),c.bindFramebuffer(c.FRAMEBUFFER,null))};d.prototype.dr=function(){var c=this.k;0===this.jc?(c.clearColor(this.X[0],this.X[1],this.X[2],this.X[3]),c.clear(c.COLOR_BUFFER_BIT)):(c.enable(c.SCISSOR_TEST),c.scissor(this.X[0],this.X[1],this.X[2],this.X[3]),c.clearColor(0,0,0,0),c.clear(this.k.COLOR_BUFFER_BIT),c.disable(c.SCISSOR_TEST))};d.prototype.er=function(){var c=this.k,a=this.n,b=a.Qa[1];c.useProgram(b.yh);!b.He&&b.Pi&&(b.lm(a.kk),b.He=!0);c.enableVertexAttribArray(b.yc);
c.bindBuffer(c.ARRAY_BUFFER,a.Fl);c.vertexAttribPointer(b.yc,4,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,this.jc/4,this.uc);b=a.sg;c.useProgram(b.yh);0<=b.yc&&(c.enableVertexAttribArray(b.yc),c.bindBuffer(c.ARRAY_BUFFER,a.Ih[a.pd]),c.vertexAttribPointer(b.yc,2,c.FLOAT,!1,0,0));0<=b.ie&&(c.enableVertexAttribArray(b.ie),c.bindBuffer(c.ARRAY_BUFFER,a.Ch[a.pd]),c.vertexAttribPointer(b.ie,2,c.FLOAT,!1,0,0))};d.prototype.kr=function(){var c=this.k,a=this.n,b=a.Qa[this.jc];a.Zm=this.jc;a.sg=b;c.useProgram(b.yh);
!b.He&&b.Pi&&(b.lm(a.kk),b.He=!0);b.Ef&&b.Ri!==a.Zh&&(b.Ri=a.Zh,c.uniform1f(b.Ef,a.Zh));0<=b.yc&&(c.enableVertexAttribArray(b.yc),c.bindBuffer(c.ARRAY_BUFFER,a.Ih[a.pd]),c.vertexAttribPointer(b.yc,2,c.FLOAT,!1,0,0));0<=b.ie&&(c.enableVertexAttribArray(b.ie),c.bindBuffer(c.ARRAY_BUFFER,a.Ch[a.pd]),c.vertexAttribPointer(b.ie,2,c.FLOAT,!1,0,0))};d.prototype.lr=function(){var c,a,b=this.n.sg,d=this.k;c=this.X;b.Yg&&this.n.Pe!==this.Rc&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,this.Rc),
this.n.Pe=this.Rc,d.activeTexture(d.TEXTURE0));var s=c[0];b.kl&&s!==b.co&&(b.co=s,d.uniform1f(b.kl,s));s=c[1];b.jl&&s!==b.bo&&(b.bo=s,d.uniform1f(b.jl,s));s=c[2];a=c[3];!b.Te||s===b.Xn&&a===b.Yn||(b.Xn=s,b.Yn=a,d.uniform2f(b.Te,s,a));s=c[4];a=c[5];!b.Se||s===b.Vn&&a===b.Wn||(b.Vn=s,b.Wn=s,d.uniform2f(b.Se,s,a));s=c[6];b.Xg&&s!==b.$n&&(b.$n=s,d.uniform1f(b.Xg,s));s=c[7];b.Wg&&s!==b.Zn&&(b.Zn=s,d.uniform1f(b.Wg,s));s=c[8];a=c[9];!b.$g||s===b.ho&&a===b.jo||(b.ho=s,b.jo=a,d.uniform2f(b.$g,s,a));s=c[10];
a=c[11];!b.Zg||s===b.eo&&a===b.fo||(b.eo=s,b.fo=a,d.uniform2f(b.Zg,s,a));b.ll&&d.uniform1f(b.ll,Ua()/1E3);if(b.K.length)for(c=0,a=b.K.length;c<a;c++)s=this.cp[c],s!==b.fl[c]&&(b.fl[c]=s,d.uniform1f(b.K[c][1],s))};g.prototype.Ac=function(){this.Wc===this.od.length&&this.od.push(new d(0,this));return this.od[this.Wc++]};g.prototype.ae=function(){if(0!==this.Wc&&!this.k.isContextLost()){var c=this.k;0<this.Mf&&(c.bindBuffer(c.ARRAY_BUFFER,this.Fl),c.bufferData(c.ARRAY_BUFFER,this.Ko.subarray(0,this.Mf),
c.STREAM_DRAW),a&&0<=a.yc&&"<point>"===a.name&&c.vertexAttribPointer(a.yc,4,c.FLOAT,!1,0,0));if(0<this.jd){var a=this.sg;c.bindBuffer(c.ARRAY_BUFFER,this.Ih[this.pd]);c.bufferData(c.ARRAY_BUFFER,this.qm.subarray(0,this.jd),c.STREAM_DRAW);a&&0<=a.yc&&"<point>"!==a.name&&c.vertexAttribPointer(a.yc,2,c.FLOAT,!1,0,0);c.bindBuffer(c.ARRAY_BUFFER,this.Ch[this.pd]);c.bufferData(c.ARRAY_BUFFER,this.am.subarray(0,this.jd),c.STREAM_DRAW);a&&0<=a.ie&&"<point>"!==a.name&&c.vertexAttribPointer(a.ie,2,c.FLOAT,
!1,0,0)}for(var b,c=0,a=this.Wc;c<a;c++)switch(b=this.od[c],b.type){case 1:b.fr();break;case 2:b.mr();break;case 3:b.jr();break;case 4:b.ir();break;case 5:b.or();break;case 6:b.hr();break;case 7:b.dr();break;case 8:b.er();break;case 9:b.kr();break;case 10:b.lr();break;case 11:b.nr()}this.Mf=this.jd=this.Wc=0;this.Rb=this.zb=!1;this.pd++;4<=this.pd&&(this.pd=0)}};g.prototype.Ye=function(c){if(c!==this.Nn){var a=this.Ac();a.type=3;this.Nn=a.yo=c;this.Rb=this.zb=!1}};g.prototype.Xb=function(c){if(c!==
this.Oe){var a=this.Ac();a.type=2;this.Oe=a.Rc=c;this.Rb=this.zb=!1}};g.prototype.me=function(c,a){if(c!==this.On||a!==this.Ln){var b=this.Ac();b.type=4;b.jc=c;b.uc=a;this.On=c;this.Ln=a;this.Rb=this.zb=!1}};g.prototype.Wo=function(){this.me(this.k.ONE,this.k.ONE_MINUS_SRC_ALPHA)};g.prototype.sh=function(c,a,b,d,s,f,h,t){15992<=this.jd&&this.ae();var k=this.jd,m=this.qm,w=this.am;if(this.zb)this.od[this.Wc-1].uc+=6;else{var g=this.Ac();g.type=1;g.jc=k/4*3;g.uc=6;this.zb=!0;this.Rb=!1}m[k]=c;w[k++]=
0;m[k]=a;w[k++]=0;m[k]=b;w[k++]=1;m[k]=d;w[k++]=0;m[k]=s;w[k++]=1;m[k]=f;w[k++]=1;m[k]=h;w[k++]=0;m[k]=t;w[k++]=1;this.jd=k};g.prototype.Hd=function(c,a,b,d,s,f,h,t,k){15992<=this.jd&&this.ae();var m=this.jd,w=this.qm,g=this.am;if(this.zb)this.od[this.Wc-1].uc+=6;else{var q=this.Ac();q.type=1;q.jc=m/4*3;q.uc=6;this.zb=!0;this.Rb=!1}var q=k.left,e=k.top,p=k.right;k=k.bottom;w[m]=c;g[m++]=q;w[m]=a;g[m++]=e;w[m]=b;g[m++]=p;w[m]=d;g[m++]=e;w[m]=s;g[m++]=p;w[m]=f;g[m++]=k;w[m]=h;g[m++]=q;w[m]=t;g[m++]=
k;this.jd=m};g.prototype.zt=function(c,a,b,d){7996<=this.Mf&&this.ae();var g=this.Mf,f=this.Ko;if(this.Rb)this.od[this.Wc-1].uc++;else{var h=this.Ac();h.type=8;h.jc=g;h.uc=1;this.Rb=!0;this.zb=!1}f[g++]=c;f[g++]=a;f[g++]=b;f[g++]=d;this.Mf=g};g.prototype.fd=function(c){if(this.Mg!==c){if(!this.Qa[c]){if(0===this.Mg)return;c=0}var a=this.Ac();a.type=9;this.Mg=a.jc=c;this.Rb=this.zb=!1}};g.prototype.qh=function(c){c=this.Qa[c];return!(!c.Te&&!c.Se)};g.prototype.Hl=function(c){c=this.Qa[c];return!!(c.Te||
c.Se||c.Ym)};g.prototype.Gt=function(c){c=this.Qa[c];return 0!==c.tk||0!==c.uk};g.prototype.rs=function(c){return this.Qa[c].tk};g.prototype.ss=function(c){return this.Qa[c].uk};g.prototype.ts=function(c,a){return this.Qa[c].K[a][2]};g.prototype.ij=function(c){return this.Qa[c].Om};g.prototype.Qf=function(c,a,b,d,g,f,h,t,k,m,w,n,q,e){var p=this.Qa[this.Mg],u,y;if(p.Js||e.length){u=this.Ac();u.type=10;u.X?bc(this.zc,u.X):u.X=ac();y=u.X;y[0]=a;y[1]=b;y[2]=d;y[3]=g;y[4]=f;y[5]=h;y[6]=t;y[7]=k;y[8]=m;
y[9]=w;y[10]=n;y[11]=q;u.Rc=p.Yg?c:null;if(e.length)for(b=u.cp,b.length=e.length,c=0,a=e.length;c<a;c++)b[c]=e[c];this.Rb=this.zb=!1}};g.prototype.clear=function(c,a,b,d){var g=this.Ac();g.type=7;g.jc=0;g.X||(g.X=ac());g.X[0]=c;g.X[1]=a;g.X[2]=b;g.X[3]=d;this.Rb=this.zb=!1};g.prototype.clearRect=function(c,a,b,d){if(!(0>b||0>d)){var g=this.Ac();g.type=7;g.jc=1;g.X||(g.X=ac());g.X[0]=c;g.X[1]=a;g.X[2]=b;g.X[3]=d;this.Rb=this.zb=!1}};g.prototype.Ft=function(){this.ae();this.k.flush()};var r=[],l={};
g.prototype.Vq=function(){r.length=0;l={}};g.prototype.Cf=function(c,a,b,d){a=!!a;b=!!b;var g=c.src+","+a+","+b+(a?",undefined":""),f=null;if("undefined"!==typeof c.src&&l.hasOwnProperty(g))return f=l[g],f.Rh++,f;this.ae();var h=this.k,t=ia(c.width)&&ia(c.height),f=h.createTexture();h.bindTexture(h.TEXTURE_2D,f);h.pixelStorei(h.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var k=h.RGBA,m=h.RGBA,w=h.UNSIGNED_BYTE;if(d&&!this.Le)switch(d){case 1:m=k=h.RGB;break;case 2:w=h.UNSIGNED_SHORT_4_4_4_4;break;case 3:w=
h.UNSIGNED_SHORT_5_5_5_1;break;case 4:m=k=h.RGB,w=h.UNSIGNED_SHORT_5_6_5}if(!t&&a){d=document.createElement("canvas");d.width=ja(c.width);d.height=ja(c.height);var n=d.getContext("2d");n.webkitImageSmoothingEnabled=b;n.mozImageSmoothingEnabled=b;n.msImageSmoothingEnabled=b;n.imageSmoothingEnabled=b;n.drawImage(c,0,0,c.width,c.height,0,0,d.width,d.height);h.texImage2D(h.TEXTURE_2D,0,k,m,w,d)}else h.texImage2D(h.TEXTURE_2D,0,k,m,w,c);a?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.REPEAT),h.texParameteri(h.TEXTURE_2D,
h.TEXTURE_WRAP_T,h.REPEAT)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE));b?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.LINEAR),t&&this.cn?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR_MIPMAP_LINEAR),h.generateMipmap(h.TEXTURE_2D)):h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.NEAREST),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,
h.NEAREST));h.bindTexture(h.TEXTURE_2D,null);this.Oe=null;f.lg=c.width;f.kg=c.height;f.Rh=1;f.Tm=g;r.push(f);return l[g]=f};g.prototype.Yd=function(c,a,b){var d;this.ae();var g=this.k;this.Le&&(d=!1);var f=g.createTexture();g.bindTexture(g.TEXTURE_2D,f);g.texImage2D(g.TEXTURE_2D,0,g.RGBA,c,a,0,g.RGBA,d?g.UNSIGNED_SHORT_4_4_4_4:g.UNSIGNED_BYTE,null);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE);g.texParameteri(g.TEXTURE_2D,
g.TEXTURE_MAG_FILTER,b?g.LINEAR:g.NEAREST);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,b?g.LINEAR:g.NEAREST);g.bindTexture(g.TEXTURE_2D,null);this.Oe=null;f.lg=c;f.kg=a;r.push(f);return f};g.prototype.deleteTexture=function(c){c&&("undefined"!==typeof c.Rh&&1<c.Rh?c.Rh--:(this.ae(),c===this.Oe&&(this.k.bindTexture(this.k.TEXTURE_2D,null),this.Oe=null),c===this.Pe&&(this.k.activeTexture(this.k.TEXTURE1),this.k.bindTexture(this.k.TEXTURE_2D,null),this.k.activeTexture(this.k.TEXTURE0),this.Pe=
null),Aa(r,c),"undefined"!==typeof c.Tm&&delete l[c.Tm],this.k.deleteTexture(c)))};g.prototype.ed=function(c){if(c!==this.Ro){var a=this.Ac();a.type=6;this.Ro=a.Rc=c;this.Rb=this.zb=!1}};hb=g})();
(function(){function g(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function n(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function d(e){if(e&&(e.getContext||e.dc)&&!e.c2runtime){e.c2runtime=this;var a=this;this.vc=(this.Hg=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||
"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2iscordova&&window.c2iscordova;this.bb=!!e.dc;this.sf="undefined"!==typeof window.AppMobi||this.bb;this.gc=!!window.c2cocoonjs;this.Ic=!!window.c2ejecta;this.gc&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.Ic&&(document.addEventListener("pagehide",function(){a.setSuspended(!0)}),document.addEventListener("pageshow",
function(){a.setSuspended(!1)}),document.addEventListener("resize",function(){a.setSize(window.innerWidth,window.innerHeight)}));this.da=this.bb||this.gc||this.Ic;this.Le=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.Gn=/tizen/i.test(navigator.userAgent);this.yi=/android/i.test(navigator.userAgent)&&!this.Gn&&!this.Le;this.dl=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.Le;this.Kn=/ipad/i.test(navigator.userAgent);this.Ei=this.dl||this.Kn||this.Ic;this.Xs=this.dl&&/os\s6/i.test(navigator.userAgent);this.Gg=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Le;this.Yk=/amazonwebappplatform/i.test(navigator.userAgent);this.Rs=/firefox/i.test(navigator.userAgent);this.Fn=/safari/i.test(navigator.userAgent)&&!this.Gg&&!this.Le;this.Us=/windows/i.test(navigator.userAgent);this.ge="undefined"!==typeof window.c2nodewebkit||"undefined"!==
typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.In=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Ws=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.uf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.bl=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Hn=this.In||this.Ws||this.bl;this.Qs=!("undefined"===typeof window.c2isBlackberry10||
!window.c2isBlackberry10);this.Ai=this.yi&&!this.Gg&&!this.Hg&&!this.Rs&&!this.Yk&&!this.da;this.devicePixelRatio=1;this.Ad=this.vc||this.Hg||this.sf||this.gc||this.yi||this.Ei||this.uf||this.bl||this.Qs||this.Gn||this.Ic;this.Ad||(this.Ad=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.ge||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||
(this.ge=!0);this.canvas=e;this.Wm=document.getElementById("c2canvasdiv");this.aa=this.n=this.k=null;this.Ak="";this.ii=!1;this.wo=this.xo=0;this.canvas.oncontextmenu=function(e){e.preventDefault&&e.preventDefault();return!1};this.canvas.onselectstart=function(e){e.preventDefault&&e.preventDefault();return!1};this.bb&&(window.c2runtime=this);this.ge&&(window.ondragover=function(e){e.preventDefault();return!1},window.ondrop=function(e){e.preventDefault();return!1},require("nw.gui").App.clearCache());
this.Ai&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=e.width;this.height=e.height;this.M=this.width;this.L=this.height;this.Xh=this.width;this.Wh=this.height;this.Og=window.innerWidth;this.Ng=window.innerHeight;this.bs=!1;this.ea=!0;this.Jg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.m=[];this.Fa=[];this.il={};this.Tb=[];this.sk={};this.td=[];this.fg=[];this.Fj=[];this.Tj=[];this.Mq=[];this.Ae={};this.Zk=
this.ee=!1;this.zd=0;this.al=!1;this.Gc=[];this.Bd=this.pb=this.Tg=this.nj="";this.Ah=this.fp=!1;this.hk=this.ah=this.$d=this.Ce=0;this.Zf=1;this.hc=new Ya;this.kd=new Ya;this.Ui=this.ki=this.fi=this.Yf=this.Re=this.zk=this.Ii=0;this.xe=null;this.ok=[];this.rk=[];this.ei=-1;this.ml=[[]];this.im=this.Qi=0;this.Jl(null);this.qo=this.eh=0;this.hl=!0;this.ug=0;this.Bh=[];this.fm=this.Kl=-1;this.zf=!0;this.Oi=0;this.Ig=!1;this.Zt=0;this.gf=null;this.ga=this.qf=!1;this.vo=new ba;this.ul=new ba;this.wl=
new ba;this.Jt=[];this.Qc=new $a([]);this.$l=new $a([]);this.Ud=[];this.ri={};this.jf={};this.ff={};this.eg={};this.Qm={};this.Rn=this.Ki=this.Sb=this.ic=this.Qn=this.Ji=this.Y=null;this.bg=this.cl=!1;this.Bk=[null,null];this.Fe=0;this.wk="";this.Fd={};this.sj=this.Df=null;this.Ti=[];this.Kt()}}function r(e){e.target.result.createObjectStore("saves",{keyPath:"slot"})}function l(e,a,b,f){var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=r;c.onerror=f;c.onsuccess=function(c){c=c.target.result;
c.onerror=f;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:e,data:a}).onsuccess=b}}function c(e,a,b){var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=r;f.onerror=b;f.onsuccess=function(f){f=f.target.result;f.onerror=b;var c=f.transaction(["saves"]).objectStore("saves").get(e);c.onsuccess=function(){c.result?a(c.result.data):a(null)}}}function a(){I("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?
window.location.reload(!0):window.location+="?continuous"}function b(e){var a,b={};for(a in e)!e.hasOwnProperty(a)||e[a]instanceof ba||e[a]&&"undefined"!==typeof e[a].rv||(b[a]=e[a]);return b}d.prototype.Kt=function(){var e=this,a;a=this.uf?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var b="data.js";if(this.In||this.uf||this.bl)b="data.json";a.open("GET",b,!0);var f=!1;if(!this.da&&"response"in a&&"responseType"in a)try{a.responseType="json",f="json"===a.responseType}catch(c){f=!1}if(!f&&
"responseType"in a)try{a.responseType="text"}catch(k){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(q){}this.uf?a.onreadystatechange=function(){4===a.readyState&&e.Mi(JSON.parse(a.responseText))}:(a.onload=function(){if(f)e.Mi(a.response);else if(e.Ic){var b=a.responseText,b=b.substr(b.indexOf("{"));e.Mi(JSON.parse(b))}else e.Mi(JSON.parse(a.responseText))},a.onerror=function(e){ea("Error requesting "+b+":");ea(e)});a.send()};d.prototype.Ns=function(){var e=
this,a,b,f,c,k,q,d,h,t;this.devicePixelRatio=(this.Me=(!this.da||this.Ic)&&this.ju&&!this.Ai)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.fb();b=!(!this.bs&&(!this.Vj||this.ge||this.Hn||this.uf||this.Hg||this.vc||this.Yk));0<this.lb&&this.setSize(g(),n(),!0);try{this.ur&&(this.gc||this.Ic||!this.da)&&(a={alpha:b,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.k=this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",
a))}catch(m){}if(this.k){this.da||(this.cb=document.createElement("canvas"),jQuery(this.cb).appendTo(this.canvas.parentNode),this.cb.oncontextmenu=function(){return!1},this.cb.onselectstart=function(){return!1},this.cb.width=this.Xh,this.cb.height=this.Wh,jQuery(this.cb).css({width:this.Xh+"px",height:this.Wh+"px"}),this.Mo(),this.El=this.cb.getContext("2d"));this.n=new hb(this.k,this.Ad);this.n.Rf(this.canvas.width,this.canvas.height);this.n.cn=0!==this.pr;this.aa=null;this.canvas.addEventListener("webglcontextlost",
function(a){a.preventDefault();e.it();I("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){e.n.zn();e.n.Rf(e.n.width,e.n.height,!0);e.ic=null;e.Sb=null;e.Bk[0]=null;e.Bk[1]=null;e.jt();e.ea=!0;I("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);a=0;for(b=this.m.length;a<b;a++)for(k=this.m[a],f=0,c=k.G.length;f<c;f++)d=k.G[f],d.eb=this.n.Jk(d.id),this.bg=this.bg||this.n.qh(d.eb);a=0;for(b=this.Tb.length;a<
b;a++){h=this.Tb[a];f=0;for(c=h.G.length;f<c;f++)d=h.G[f],d.eb=this.n.Jk(d.id);f=0;for(c=h.J.length;f<c;f++)for(t=h.J[f],k=0,q=t.G.length;k<q;k++)d=t.G[k],d.eb=this.n.Jk(d.id),this.bg=this.bg||this.n.qh(d.eb)}}else{if(0<this.lb&&this.bb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.aa=AppMobi.canvas.getContext("2d");try{this.aa.samplingMode=this.S?"smooth":"sharp",this.aa.globalScale=1,this.aa.HTML5CompatibilityMode=!0,this.aa.imageSmoothingEnabled=
this.S}catch(w){}0!==this.width&&0!==this.height&&(this.aa.width=this.width,this.aa.height=this.height)}this.aa||(a=this.gc?{antialias:!!this.S,alpha:b}:{alpha:b},this.aa=this.canvas.getContext("2d",a),this.aa.webkitImageSmoothingEnabled=this.S,this.aa.mozImageSmoothingEnabled=this.S,this.aa.msImageSmoothingEnabled=this.S,this.aa.imageSmoothingEnabled=this.S);this.El=this.cb=null}this.np=function(a){e.Za(!1,a)};window==window.top||this.da||this.Hn||this.uf||(document.addEventListener("mousedown",
function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.gc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(I("Reloading for continuous preview"),this.Tg="__c2_continuouspreview",this.Ah=!0),this.xt&&!this.Ad&&(jQuery(window).focus(function(){e.setSuspended(!1)}),jQuery(window).blur(function(){e.setSuspended(!0)})));this.da||(a=function(e){if(gb(e)&&
document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(a){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",a):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",a):document.addEventListener("touchstart",a),document.addEventListener("mousedown",a));0===this.lb&&this.Me&&1<this.devicePixelRatio&&this.setSize(this.Na,this.Ma,!0);this.sp();this.Gs();
this.go();this.ua={}};d.prototype.setSize=function(e,a,b){var f=0,c=0,k=0,d=0,d=0,q=this.Xs&&this.Fn&&!navigator.standalone&&!this.da&&!this.vc;q&&(a+=60);if(this.Og!==e||this.Ng!==a||b){this.Og=e;this.Ng=a;var h=this.lb,t=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Ig)&&!this.vc;if(t||0!==this.lb||b)t&&0<this.Fe&&(h=this.Fe),b=this.devicePixelRatio,4<=h?(k=this.Na/this.Ma,e/a>k?(k*=a,5===h?(d=k*b/this.Na,1<d?d=Math.floor(d):1>d&&
(d=1/Math.ceil(1/d)),k=this.Na*d/b,d=this.Ma*d/b,f=(e-k)/2,c=(a-d)/2,e=k,a=d):(f=(e-k)/2,e=k)):(d=e/k,5===h?(d=d*b/this.Ma,1<d?d=Math.floor(d):1>d&&(d=1/Math.ceil(1/d)),k=this.Na*d/b,d=this.Ma*d/b,f=(e-k)/2,c=(a-d)/2,e=k):c=(a-d)/2,a=d),t&&!this.ge&&(c=f=0)):this.ge&&this.Ig&&0===this.kn&&(f=Math.floor((e-this.Na)/2),c=Math.floor((a-this.Ma)/2),e=this.Na,a=this.Ma),2>h&&(this.jg=b),this.Me&&this.Kn&&1<b&&(1024<=e&&(e=1023),1024<=a&&(a=1023)),this.Xh=Math.round(e),this.Wh=Math.round(a),this.width=
Math.round(e*b),this.height=Math.round(a*b),this.ea=!0,this.Dp?(this.M=this.width,this.L=this.height,this.pc=!0):this.width<this.Na&&this.height<this.Ma||1===h?(this.M=this.width,this.L=this.height,this.pc=!0):(this.M=this.Na,this.L=this.Ma,this.pc=!1,2===h?(k=this.Na/this.Ma,h=this.Og/this.Ng,h<k?this.M=this.L*h:h>k&&(this.L=this.M/h)):3===h&&(k=this.Na/this.Ma,h=this.Og/this.Ng,h>k?this.M=this.L*h:h<k&&(this.L=this.M/h))),this.Wm&&!this.da&&(jQuery(this.Wm).css({width:Math.round(e)+"px",height:Math.round(a)+
"px","margin-left":Math.floor(f)+"px","margin-top":Math.floor(c)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(e)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(e*b),this.canvas.height=Math.round(a*b),this.Ic?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=Math.floor(c)+"px",this.canvas.style.width=Math.round(e)+"px",this.canvas.style.height=Math.round(a)+"px"):this.Me&&!this.da&&jQuery(this.canvas).css({width:Math.round(e)+
"px",height:Math.round(a)+"px"})),this.cb&&(this.cb.width=Math.round(e),this.cb.height=Math.round(a),jQuery(this.cb).css({width:Math.round(e)+"px",height:Math.round(a)+"px"})),this.n&&this.n.Rf(Math.round(e*b),Math.round(a*b)),this.bb&&this.aa&&(this.aa.width=Math.round(e),this.aa.height=Math.round(a)),this.aa&&(this.aa.webkitImageSmoothingEnabled=this.S,this.aa.mozImageSmoothingEnabled=this.S,this.aa.msImageSmoothingEnabled=this.S,this.aa.imageSmoothingEnabled=this.S),this.sp(),this.da||!q&&!this.dl||
window.setTimeout(function(){window.scrollTo(0,1)},100)}};d.prototype.sp=function(){if(this.Oq&&0!==this.Cl){var e="portrait";2===this.Cl&&(e="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(e):screen.lockOrientation?screen.lockOrientation(e):screen.webkitLockOrientation?screen.webkitLockOrientation(e):screen.mozLockOrientation?screen.mozLockOrientation(e):screen.msLockOrientation&&screen.msLockOrientation(e)}};d.prototype.it=function(){this.n.Vq();this.cl=!0;var e,
a,b;e=0;for(a=this.m.length;e<a;e++)b=this.m[e],b.Vi&&b.Vi()};d.prototype.jt=function(){this.cl=!1;var e,a,b;e=0;for(a=this.m.length;e<a;e++)b=this.m[e],b.Wi&&b.Wi()};d.prototype.Mo=function(){if(!this.da){var e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Ig)&&!this.vc?jQuery(this.canvas).offset():jQuery(this.canvas).position();e.position="absolute";jQuery(this.cb).css(e)}};var x=window.cancelAnimationFrame||window.mozCancelAnimationFrame||
window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;d.prototype.setSuspended=function(e){var a;if(e&&!this.Jg)for(I("[Construct 2] Suspending"),this.Jg=!0,-1!==this.Kl&&x&&x(this.Kl),-1!==this.fm&&clearTimeout(this.fm),e=0,a=this.Bh.length;e<a;e++)this.Bh[e](!0);else if(!e&&this.Jg){I("[Construct 2] Resuming");this.Jg=!1;this.Ii=Ua();this.Re=Ua();e=this.ah=this.ki=0;for(a=this.Bh.length;e<a;e++)this.Bh[e](!1);this.Za(!1)}};d.prototype.Kq=function(e){this.Bh.push(e)};
d.prototype.Rd=function(e){return this.Ti[e]};d.prototype.Mi=function(e){e&&e.project||ea("Project model unavailable");e=e.project;this.name=e[0];this.jn=e[1];this.lb=e[12];this.kn=e[12];this.Na=e[10];this.Ma=e[11];this.Fo=this.Na/2;this.Go=this.Ma/2;this.da&&!this.Ic&&(4<=e[12]||0===e[12])&&(I("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.kn=this.lb=3);this.pm=e[18];this.Vg=e[19];0===this.Vg&&(this.Df=new Image,this.Df.src=
"loading-logo.png");this.eh=e[21];this.Ti=fc();this.gd=new W(this);var a,b,f,c,k,d,h,q,t;a=0;for(b=e[2].length;a<b;a++)h=e[2][a],f=this.Rd(h[0]),ib(h,f.prototype),t=new f(this),t.qj=h[1],t.he=h[2],t.oo=h[9],t.ha&&t.ha(),this.plugins.push(t);this.Ti=fc();a=0;for(b=e[3].length;a<b;a++){h=e[3][a];k=this.Rd(h[1]);t=null;f=0;for(c=this.plugins.length;f<c;f++)if(this.plugins[f]instanceof k){t=this.plugins[f];break}var m=new t.gb(t);m.name=h[0];m.A=h[2];m.Xk=h[3].slice(0);m.lu=h[3].length;m.Pq=h[4];m.ds=
h[5];m.O=h[11];m.A?(m.Si=[],m.ud=this.ug++,m.pa=null):(m.Si=null,m.ud=-1,m.pa=[]);m.gi=null;m.mf=null;m.dn=null;m.Jc=!1;m.Nb=null;h[6]?(m.zj=h[6][0],m.Aj=h[6][1],m.Dh=h[6][2]):(m.zj=null,m.Aj=0,m.Dh=0);m.Lb=h[7]?h[7]:null;m.index=a;m.c=[];m.ai=[];m.oe=[new jb(m)];m.sd=0;m.Yc=null;m.$q=0;m.Wf=!0;m.Hj=kb;m.ks=lb;m.ps=mb;m.ba=nb;m.rh=ob;m.Il=pb;m.Nf=rb;m.mi=sb;m.Dk=tb;m.Gk=ub;m.nd=vb;m.qn=wb;m.mg=new ab(this.Na,this.Ma);m.Jh=!0;m.Kh=!1;m.ua={};m.toString=xb;m.Fa=[];f=0;for(c=h[8].length;f<c;f++){q=h[8][f];
var g=this.Rd(q[1]),w=null;k=0;for(d=this.Fa.length;k<d;k++)if(this.Fa[k]instanceof g){w=this.Fa[k];break}w||(w=new g(this),w.po=[],w.Hf=new ba,w.ha&&w.ha(),this.Fa.push(w));-1===w.po.indexOf(m)&&w.po.push(m);k=new w.gb(w,m);k.name=q[0];k.O=q[2];k.ha();m.Fa.push(k)}m.global=h[9];m.$k=h[10];m.G=[];f=0;for(c=h[12].length;f<c;f++)m.G.push({id:h[12][f][0],name:h[12][f][1],eb:-1,Ta:!0,index:f});m.Fv=h[13];this.pm&&!m.A&&!m.$k&&t.he||m.ha();m.name&&(this.types[m.name]=m);this.m.push(m);t.qj&&(f=new t.Ea(m),
f.uid=this.eh++,f.Po=this.qo++,f.Je=0,f.zg=yb,f.toString=zb,f.Da=h[14],f.ha(),m.c.push(f),this.Fd[f.uid.toString()]=f)}a=0;for(b=e[4].length;a<b;a++)for(k=e[4][a],d=this.m[k[0]],f=1,c=k.length;f<c;f++)h=this.m[k[f]],h.pa.push(d),d.Si.push(h);a=0;for(b=e[27].length;a<b;a++){k=e[27][a];d=[];f=0;for(c=k.length;f<c;f++)d.push(this.m[k[f]]);f=0;for(c=d.length;f<c;f++)d[f].Jc=!0,d[f].Nb=d}if(0<this.ug)for(a=0,b=this.m.length;a<b;a++)if(h=this.m[a],!h.A&&h.pa.length){h.gi=Array(this.ug);h.mf=Array(this.ug);
h.dn=Array(this.ug);m=[];f=w=g=q=0;for(c=h.pa.length;f<c;f++)for(t=h.pa[f],h.gi[t.ud]=q,q+=t.lu,h.mf[t.ud]=g,g+=t.Pq,h.dn[t.ud]=w,w+=t.ds,k=0,d=t.G.length;k<d;k++)m.push(va({},t.G[k]));h.G=m.concat(h.G);f=0;for(c=h.G.length;f<c;f++)h.G[f].index=f}a=0;for(b=e[5].length;a<b;a++)h=e[5][a],f=new Ab(this,h),this.il[f.name]=f,this.Tb.push(f);a=0;for(b=e[6].length;a<b;a++)h=e[6][a],f=new Bb(this,h),this.sk[f.name]=f,this.td.push(f);a=0;for(b=this.td.length;a<b;a++)this.td[a].Ca();a=0;for(b=this.td.length;a<
b;a++)this.td[a].km();a=0;for(b=this.Fj.length;a<b;a++)this.Fj[a].Ca();this.Fj.length=0;this.Nq=e[7];this.wk=e[8];this.dd=e[9];this.jg=1;this.ur=e[13];this.S=e[14];this.Vj=e[15];this.ju=e[17];this.Cl=e[20];this.Oq=0<this.Cl;this.xt=e[22];this.pc=this.Dp=e[23];this.pr=e[24];this.Dt=e[25];this.vj=Date.now();this.Ti.length=0;this.Ns()};var s=!1;d.prototype.tm=function(e,a){e.cocoonLazyLoad=!0;e.onerror=function(a){s=e.Sm=!0;console&&console.error&&console.error("Error loading image '"+e.src+"': ",a)};
this.Ic?e.src=a:e.src||("undefined"!==typeof XAPKReader?XAPKReader.get(a,function(a){e.src=a},function(b){s=e.Sm=!0;console&&console.error&&console.error("Error extracting image '"+a+"' from expansion file: ",b)}):e.src=a);this.fg.push(e)};d.prototype.as=function(e){var a,b;a=0;for(b=this.fg.length;a<b;a++)if(this.fg[a].Wq===e)return this.fg[a];return null};var f=0,h=!1;d.prototype.Gs=function(){this.gf&&(f=this.gf.Wt(this.Nq))};d.prototype.Pm=function(){var e=f,a=0,b=0,c=!0,k,d,b=0;for(k=this.fg.length;b<
k;b++){d=this.fg[b];var q=d.ik;if(!q||0>=q)q=5E4;e+=q;d.src&&(d.complete||d.loaded)&&!d.Sm?a+=q:c=!1}c&&this.Dt&&this.gf&&(h||(this.gf.$t(),h=!0),b=this.gf.qs(),a+=b,b<f&&(c=!1));this.Xe=0==e?0:a/e;return c};d.prototype.go=function(){if(this.aa||this.n){var e=this.aa||this.El;this.cb&&this.Mo();this.Xe=0;this.Pn=-1;if(this.Pm())this.Hs();else{var a=Date.now()-this.vj;if(e){var b=this.width,f=this.height,c=this.devicePixelRatio;this.cb&&(b=this.Xh,f=this.Wh,c=1);if(3!==this.Vg&&(this.gc||500<=a&&this.Pn!=
this.Xe)){e.clearRect(0,0,b,f);var a=b/2,f=f/2,b=0===this.Vg&&this.Df.complete,k=40*c,h=0,d=80*c,q;b&&(d=this.Df.width*c,q=this.Df.height*c,k=d/2,h=q/2,e.drawImage(this.Df,Q(a-k),Q(f-h),d,q));1>=this.Vg?(a=Q(a-k)+.5,f=Q(f+(h+(b?12*c:0)))+.5,e.fillStyle=s?"red":"DodgerBlue",e.fillRect(a,f,Math.floor(d*this.Xe),6*c),e.strokeStyle="black",e.strokeRect(a,f,d,6*c),e.strokeStyle="white",e.strokeRect(a-1*c,f-1*c,d+2*c,8*c)):2===this.Vg&&(e.font=this.Ic?"12pt ArialMT":"12pt Arial",e.fillStyle=s?"#f00":"#999",
e.Ev="middle",c=Math.round(100*this.Xe)+"%",b=e.measureText?e.measureText(c):null,e.fillText(c,a-(b?b.width:0)/2,f))}this.Pn=this.Xe}setTimeout(function(e){return function(){e.go()}}(this),this.gc?10:100)}}};d.prototype.Hs=function(){this.cb&&(this.canvas.parentNode.removeChild(this.cb),this.cb=this.El=null);this.vj=Date.now();this.Re=Ua();var e,a,b;if(this.pm)for(e=0,a=this.m.length;e<a;e++)b=this.m[e],b.A||b.$k||!b.Ba.he||b.ha();else this.zf=!1;e=0;for(a=this.Tb.length;e<a;e++)this.Tb[e].Xq();2<=
this.lb&&(e=this.Na/this.Ma,a=this.width/this.height,this.jg=2!==this.lb&&a>e||2===this.lb&&a<e?this.height/this.Ma:this.width/this.Na);this.jn?this.il[this.jn].Yl():this.Tb[0].Yl();this.pm||(this.Oi=1,this.trigger(W.prototype.j.Am,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();e=0;for(a=this.m.length;e<a;e++)b=this.m[e],b.ht&&b.ht();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Za(!1);this.bb&&
AppMobi.webview.execute("onGameReady();")};var t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.Za=function(e,a,b){if(this.Y){var f=Ua();if(b||!this.Jg||e){e||(t?this.Kl=t(this.np):this.fm=setTimeout(this.np,this.Ad?1:16));a=a||f;var c=this.lb;((b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.vc)||this.Ig)&&
0<this.Fe&&(c=this.Fe);0<c&&(!this.Ei||window.self!==window.top)&&(c=window.innerHeight,this.Og===window.innerWidth&&this.Ng===c||this.setSize(g(),n()));this.da||(b?(this.ii||(this.Ak=jQuery(this.canvas).css("margin")||"0",this.ii=!0),this.Gg||this.ge||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.ii?(this.Gg||this.ge||jQuery(this.canvas).css("margin",
this.Ak),this.Ak="",this.ii=!1,0===this.lb&&this.setSize(Math.round(this.xo/this.devicePixelRatio),Math.round(this.wo/this.devicePixelRatio),!0)):(this.xo=this.width,this.wo=this.height));this.zf&&(b=this.Pm(),this.Oi=this.Xe,b&&(this.zf=!1,this.Xe=1,this.trigger(W.prototype.j.Am,null)));this.$s(a);!this.ea&&!this.gc||this.cl||this.Ah||e||(this.ea=!1,this.n?this.Pb():this.Hc(),this.sj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.sj[0],this.sj[1]),this.trigger(W.prototype.j.aq,
null)),this.sj=null));this.yv||(this.Yf++,this.fi++,this.ki++);this.ah+=Ua()-f}}};d.prototype.$s=function(e){var a,b,f,c,k,h,d,q;1E3<=e-this.Re&&(this.Re+=1E3,1E3<=e-this.Re&&(this.Re=e),this.zk=this.ki,this.ki=0,this.hk=this.ah,this.ah=0);0!==this.Ii&&(a=e-this.Ii,0>a&&(a=0),this.$d=a/1E3,.5<this.$d?this.$d=0:.1<this.$d&&(this.$d=.1));this.Ii=e;this.Ce=this.$d*this.Zf;this.hc.add(this.Ce);this.kd.add(this.$d);e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||
this.Ig)&&!this.vc;2<=this.lb||e&&0<this.Fe?(a=this.Na/this.Ma,b=this.width/this.height,f=this.lb,e&&0<this.Fe&&(f=this.Fe),this.jg=2!==f&&b>a||2===f&&b<a?this.height/this.Ma:this.width/this.Na,this.Y&&(this.Y.Uo(this.Y.scrollX),this.Y.Vo(this.Y.scrollY))):this.jg=this.Me?this.devicePixelRatio:1;this.fb();this.zd++;this.gd.Nt();this.zd--;this.fb();this.zd++;b=this.vo.Tc();e=0;for(a=b.length;e<a;e++)b[e].Av();e=0;for(a=this.m.length;e<a;e++)if(h=this.m[e],!h.A&&(h.Fa.length||h.pa.length))for(b=0,f=
h.c.length;b<f;b++)for(d=h.c[b],c=0,k=d.F.length;c<k;c++)d.F[c].Za();e=0;for(a=this.m.length;e<a;e++)if(h=this.m[e],!h.A&&(h.Fa.length||h.pa.length))for(b=0,f=h.c.length;b<f;b++)for(d=h.c[b],c=0,k=d.F.length;c<k;c++)q=d.F[c],q.Ct&&q.Ct();b=this.ul.Tc();e=0;for(a=b.length;e<a;e++)b[e].Za();this.zd--;this.Is();for(e=0;this.xe&&10>e++;)this.$m(this.xe);e=0;for(a=this.td.length;e<a;e++)this.td[e].Qk=!1;this.Y.De&&this.Y.De.Pa();this.Jt.length=0;this.hl=!1;this.zd++;e=0;for(a=this.m.length;e<a;e++)if(h=
this.m[e],!h.A&&(h.Fa.length||h.pa.length))for(b=0,f=h.c.length;b<f;b++)for(d=h.c[b],c=0,k=d.F.length;c<k;c++)q=d.F[c],q.cm&&q.cm();b=this.wl.Tc();e=0;for(a=b.length;e<a;e++)b[e].cm();this.zd--};d.prototype.$m=function(e){var a=this.Y;this.Y.au();var b,f,c,k,h,d,q;if(this.n)for(b=0,f=this.m.length;b<f;b++)h=this.m[b],h.A||!h.Gj||h.global&&0!==h.c.length||-1!==e.Eg.indexOf(h)||h.Gj();a==e&&(this.gd.Jb.length=0);e.Yl();b=0;for(f=this.m.length;b<f;b++)if(h=this.m[b],h.global||h.Ba.qj)for(e=0,a=h.c.length;e<
a;e++)if(d=h.c[e],d.Bl&&d.Bl(),d.F)for(c=0,k=d.F.length;c<k;c++)q=d.F[c],q.Bl&&q.Bl();this.hl=this.ea=!0;this.fb()};d.prototype.em=function(e){this.ul.add(e)};d.prototype.cu=function(e){this.wl.add(e)};d.prototype.Ek=function(e){return e&&-1!==e.dh?this.$d*e.dh:this.Ce};d.prototype.Hc=function(){this.Y.Hc(this.aa);this.bb&&this.aa.present()};d.prototype.Pb=function(){this.Y.Pb(this.n);this.n.Ft()};d.prototype.Iq=function(e){e&&this.ok.push(e)};d.prototype.pi=function(e){e=e.toString();return this.Fd.hasOwnProperty(e)?
this.Fd[e]:null};var k=[];d.prototype.Qd=function(e){var a,b;a=e.type.name;var f=null;if(this.Ae.hasOwnProperty(a)){if(f=this.Ae[a],f.contains(e))return}else f=k.length?k.pop():new ba,this.Ae[a]=f;f.add(e);this.ee=!0;if(e.Jc)for(a=0,b=e.siblings.length;a<b;a++)this.Qd(e.siblings[a]);this.Zk&&f.dg.push(e);this.zd++;this.trigger(Object.getPrototypeOf(e.type.Ba).j.cq,e);this.zd--};d.prototype.fb=function(){if(this.ee){var e,a,b,f,c,k;this.Zk=!0;b=0;for(c=this.Gc.length;b<c;++b)for(e=this.Gc[b],a=e.type,
a.c.push(e),f=0,k=a.pa.length;f<k;++f)a.pa[f].c.push(e),a.pa[f].Wf=!0;this.Gc.length=0;this.Tp();Ta(this.Ae);this.ee=this.Zk=!1}};d.prototype.Tp=function(){for(var e in this.Ae)this.Ae.hasOwnProperty(e)&&this.Ip(this.Ae[e])};d.prototype.Ip=function(e){var a=e.Tc(),b=a[0].type,f,c,h,d,q,m;Va(b.c,e);b.Wf=!0;0===b.c.length&&(b.Kh=!1);f=0;for(c=b.pa.length;f<c;++f)m=b.pa[f],Va(m.c,e),m.Wf=!0;f=0;for(c=this.gd.Jb.length;f<c;++f)if(q=this.gd.Jb[f],q.rb.hasOwnProperty(b.index)&&Va(q.rb[b.index].xd,e),!b.A)for(h=
0,d=b.pa.length;h<d;++h)m=b.pa[h],q.rb.hasOwnProperty(m.index)&&Va(q.rb[m.index].xd,e);if(q=a[0].d){if(q.Sc)for(h=q.c,f=0,c=h.length;f<c;++f)d=h[f],e.contains(d)&&(d.ma(),q.Vb.update(d,d.Fb,null),d.Fb.set(0,0,-1,-1));Va(q.c,e);q.wh(0)}for(f=0;f<a.length;++f)this.Hp(a[f],b);e.clear();k.push(e);this.ea=!0};d.prototype.Hp=function(e,a){var b,f,c;b=0;for(f=this.ok.length;b<f;++b)this.ok[b](e);e.kc&&a.mg.update(e,e.kc,null);(b=e.d)&&b.Of(e,!0);if(e.F)for(b=0,f=e.F.length;b<f;++b)c=e.F[b],c.fh&&c.fh(),
c.behavior.Hf.remove(e);this.vo.remove(e);this.ul.remove(e);this.wl.remove(e);e.fh&&e.fh();this.Fd.hasOwnProperty(e.uid.toString())&&delete this.Fd[e.uid.toString()];this.Ui--;100>a.ai.length&&a.ai.push(e)};var m=[];d.prototype.ze=function(e,a,b,f,c,k){var h,d,q,t;if(!e)return null;var g=this.m[e[1]],w=g.Ba.he;if(this.zf&&w&&!g.$k||w&&!this.n&&11===e[0][11])return null;var n=a;w||(a=null);var l;g.ai.length?(l=g.ai.pop(),l.Oc=!0,g.Ba.Ea.call(l,g)):(l=new g.Ba.Ea(g),l.Oc=!1);l.uid=!b||k||this.Fd.hasOwnProperty(e[2].toString())?
this.eh++:e[2];this.Fd[l.uid.toString()]=l;l.Po=this.qo++;l.Je=g.c.length;h=0;for(d=this.Gc.length;h<d;++h)this.Gc[h].type===g&&l.Je++;l.zg=yb;l.toString=zb;q=e[3];if(l.Oc)Ta(l.ua);else{l.ua={};if("undefined"!==typeof cr_is_preview)for(l.Cn=[],l.Cn.length=q.length,h=0,d=q.length;h<d;h++)l.Cn[h]=q[h][1];l.Ka=[];l.Ka.length=q.length}h=0;for(d=q.length;h<d;h++)l.Ka[h]=q[h][0];if(w){var s=e[0];l.x=ga(f)?s[0]:f;l.y=ga(c)?s[1]:c;l.z=s[2];l.width=s[3];l.height=s[4];l.depth=s[5];l.i=s[6];l.opacity=s[7];l.Ab=
s[8];l.Bb=s[9];l.sb=s[10];h=s[11];!this.n&&g.G.length&&(l.sb=h);l.ng=cb(l.sb);this.k&&db(l,l.sb,this.k);if(l.Oc){h=0;for(d=s[12].length;h<d;h++)for(q=0,t=s[12][h].length;q<t;q++)l.ta[h][q]=s[12][h][q];l.ya.set(0,0,0,0);l.kc.set(0,0,-1,-1);l.Fb.set(0,0,-1,-1);l.Mb.Tf(l.ya);l.Zj.length=0}else{l.ta=s[12].slice(0);h=0;for(d=l.ta.length;h<d;h++)l.ta[h]=s[12][h].slice(0);l.U=[];l.Sd=[];l.Sd.length=g.G.length;l.ya=new S(0,0,0,0);l.kc=new S(0,0,-1,-1);l.Fb=new S(0,0,-1,-1);l.Mb=new ta;l.Zj=[];l.qa=Cb;l.Lq=
Db;l.$a=Eb;l.ma=Fb;l.iu=Gb;l.om=Hb;l.tc=Ib}l.Eh=!1;l.fu=0;l.eu=0;l.du=null;14===s.length&&(l.Eh=!0,l.fu=s[13][0],l.eu=s[13][1],l.du=s[13][2]);h=0;for(d=g.G.length;h<d;h++)l.Sd[h]=!0;l.Od=Jb;l.Od();l.Bp=!!l.U.length;l.Ph=!0;l.ak=!0;g.Jh=!0;l.visible=!0;l.dh=-1;l.d=a;l.Uc=a.c.length;"undefined"===typeof l.V&&(l.V=null);this.ea=l.Xc=!0}var A;h=m.length=0;for(d=g.pa.length;h<d;h++)m.push.apply(m,g.pa[h].Fa);m.push.apply(m,g.Fa);if(l.Oc)for(h=0,d=m.length;h<d;h++){var x=m[h];A=l.F[h];A.Oc=!0;x.behavior.Ea.call(A,
x,l);s=e[4][h];q=0;for(t=s.length;q<t;q++)A.Da[q]=s[q];A.ha();x.behavior.Hf.add(l)}else for(l.F=[],h=0,d=m.length;h<d;h++)x=m[h],A=new x.behavior.Ea(x,l),A.Oc=!1,A.Da=e[4][h].slice(0),A.ha(),l.F.push(A),x.behavior.Hf.add(l);s=e[5];if(l.Oc)for(h=0,d=s.length;h<d;h++)l.Da[h]=s[h];else l.Da=s.slice(0);this.Gc.push(l);this.ee=!0;a&&(a.ig(l,!0),1!==a.Db||1!==a.Eb)&&(g.Kh=!0);this.Ui++;if(g.Jc){if(l.Jc=!0,l.Oc?l.siblings.length=0:l.siblings=[],!b&&!k){h=0;for(d=g.Nb.length;h<d;h++)if(g.Nb[h]!==g){if(!g.Nb[h].Yc)return null;
l.siblings.push(this.ze(g.Nb[h].Yc,n,!1,w?l.x:f,w?l.y:c,!0))}h=0;for(d=l.siblings.length;h<d;h++)for(l.siblings[h].siblings.push(l),q=0;q<d;q++)h!==q&&l.siblings[h].siblings.push(l.siblings[q])}}else l.Jc=!1,l.siblings=null;l.ha();h=0;for(d=l.F.length;h<d;h++)l.F[h].Bt&&l.F[h].Bt();return l};d.prototype.wg=function(e){var a,b;a=0;for(b=this.Y.J.length;a<b;a++){var f=this.Y.J[a];if(fb(f.name,e))return f}return null};d.prototype.wd=function(e){e=Q(e);0>e&&(e=0);e>=this.Y.J.length&&(e=this.Y.J.length-
1);return this.Y.J[e]};d.prototype.fk=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].ba().fa=!0};d.prototype.rh=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].rh()};d.prototype.Il=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].Il()};d.prototype.Nf=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].Nf()};d.prototype.yp=function(e){if(e.Jh){var a,b,f=e.c;a=0;for(b=f.length;a<b;++a)f[a].om();f=this.Gc;a=0;for(b=f.length;a<b;++a)f[a].type===e&&f[a].om();e.Jh=!1}};d.prototype.js=function(e,
a,b,f){var c,h,k=e?1!==e.Db||1!==e.Eb:!1;if(a.A)for(e=0,c=a.Si.length;e<c;++e)h=a.Si[e],k||h.Kh?ya(f,h.c):(this.yp(h),h.mg.jj(b,f));else k||a.Kh?ya(f,a.c):(this.yp(a),a.mg.jj(b,f))};d.prototype.Xf=function(e,a,b,f){var c=e.ba(),h,k,d,q,m,t;if(c.fa)for(f||(c.fa=!1,c.c.length=0),h=0,q=e.c.length;h<q;h++){if(d=e.c[h],d.ma(),m=d.d.na(a,b,!0),t=d.d.na(a,b,!1),d.$a(m,t)){if(f)return!1;c.c.push(d)}}else{h=k=0;for(q=c.c.length;h<q;h++)if(d=c.c[h],d.ma(),m=d.d.na(a,b,!0),t=d.d.na(a,b,!1),d.$a(m,t)){if(f)return!1;
c.c[k]=c.c[h];k++}f||(c.c.length=k)}e.nd();return f?!0:c.Pk()};d.prototype.bu=function(e,a){if(!(e&&a&&e!==a&&e.Xc&&a.Xc))return!1;e.ma();a.ma();var b=e.d,f=a.d,c,h,k,d,q,m,t,g;if(b===f||b.Db===f.Db&&f.Eb===f.Eb&&b.scale===f.scale&&b.i===f.i&&b.kb===f.kb){if(!e.ya.Os(a.ya)||!e.Mb.Dn(a.Mb)||e.Eh&&a.Eh)return!1;if(e.Eh)return this.lp(e,a);if(a.Eh)return this.lp(a,e);t=e.V&&!e.V.vf();c=a.V&&!a.V.vf();if(!t&&!c)return!0;t?(e.V.hf(e.width,e.height,e.i),t=e.V):(this.Qc.Sf(e.Mb,e.x,e.y,e.width,e.height),
t=this.Qc);c?(a.V.hf(a.width,a.height,a.i),g=a.V):(this.Qc.Sf(a.Mb,a.x,a.y,a.width,a.height),g=this.Qc);return t.Fg(g,a.x-e.x,a.y-e.y)}t=e.V&&!e.V.vf();c=a.V&&!a.V.vf();t?(e.V.hf(e.width,e.height,e.i),this.Qc.$o(e.V)):this.Qc.Sf(e.Mb,e.x,e.y,e.width,e.height);t=this.Qc;c?(a.V.hf(a.width,a.height,a.i),this.$l.$o(a.V)):this.$l.Sf(a.Mb,a.x,a.y,a.width,a.height);g=this.$l;c=0;for(h=t.Nc;c<h;c++)k=2*c,d=k+1,q=t.Oa[k],m=t.Oa[d],t.Oa[k]=b.nb(q+e.x,m+e.y,!0),t.Oa[d]=b.nb(q+e.x,m+e.y,!1);t.ma();c=0;for(h=
g.Nc;c<h;c++)k=2*c,d=k+1,q=g.Oa[k],m=g.Oa[d],g.Oa[k]=f.nb(q+a.x,m+a.y,!0),g.Oa[d]=f.nb(q+a.x,m+a.y,!1);g.ma();return t.Fg(g,0,0)};var w=new ta;new S(0,0,0,0);var A=[];d.prototype.lp=function(e,a){var b,f,c,h,k=a.ya,d=e.x,q=e.y;e.uv(k,A);var m=a.V&&!a.V.vf();b=0;for(f=A.length;b<f;++b)if(c=A[b],h=c.Bv,k.Ps(h,d,q)&&(w.Tf(h),w.offset(d,q),w.Dn(a.Mb)))if(m)if(a.V.hf(a.width,a.height,a.i),c.Gl){if(c.Gl.Fg(a.V,a.x-(d+h.left),a.y-(q+h.top)))return A.length=0,!0}else{if(this.Qc.Sf(w,0,0,h.right-h.left,h.bottom-
h.top),this.Qc.Fg(a.V,a.x,a.y))return A.length=0,!0}else if(c.Gl){if(this.Qc.Sf(a.Mb,0,0,a.width,a.height),c.Gl.Fg(this.Qc,-(d+h.left),-(q+h.top)))return A.length=0,!0}else return A.length=0,!0;A.length=0;return!1};d.prototype.tp=function(e,a){if(!a)return!1;var b,f,c,h,k;b=0;for(f=e.Fa.length;b<f;b++)if(e.Fa[b].behavior instanceof a)return!0;if(!e.A)for(b=0,f=e.pa.length;b<f;b++)for(k=e.pa[b],c=0,h=k.Fa.length;c<h;c++)if(k.Fa[c].behavior instanceof a)return!0;return!1};d.prototype.up=function(e){return this.tp(e,
Yb.Nu)};d.prototype.jm=function(e){return this.tp(e,Yb.Ou)};var q=-1;d.prototype.trigger=function(e,a,b){if(!this.Y)return!1;var f=this.Y.De;if(!f)return!1;var c=!1,h,k,d;q++;var m=f.mk;k=0;for(d=m.length;k<d;++k)h=this.qp(e,a,m[k],b),c=c||h;h=this.qp(e,a,f,b);q--;return c||h};d.prototype.qp=function(e,a,b,f){var c=!1,h,k,d,q;if(a)for(d=this.hm(e,a,a.type.name,b,f),c=c||d,q=a.type.pa,h=0,k=q.length;h<k;++h)d=this.hm(e,a,q[h].name,b,f),c=c||d;else d=this.hm(e,a,"system",b,f),c=c||d;return c};d.prototype.hm=
function(e,a,b,f,c){var h,k=!1,d=!1,d="undefined"!==typeof c,q=(d?f.gn:f.rp)[b];if(!q)return k;var m=null;f=0;for(h=q.length;f<h;++f)if(q[f].method==e){m=q[f].tg;break}if(!m)return k;e=d?m[c]:m;if(!e)return null;f=0;for(h=e.length;f<h;f++)c=e[f][0],d=e[f][1],d=this.Zr(a,b,c,d),k=k||d;return k};d.prototype.Zr=function(e,a,b,f){var c,h,k=!1;this.im++;var d=this.mb().Ob;d&&this.rh(d.ne);var m=1<this.im;this.rh(b.ne);m&&this.Ht();var t=this.Jl(b);t.Ob=b;e&&(c=this.types[a].ba(),c.fa=!1,c.c.length=1,c.c[0]=
e,this.types[a].nd());e=!0;if(b.parent){a=t.kp;for(c=b.parent;c;)a.push(c),c=c.parent;a.reverse();c=0;for(h=a.length;c<h;c++)if(!a[c].Pt()){e=!1;break}}e&&(this.fi++,b.Lc?b.Ot(f):b.Pa(),k=k||t.Qe);this.Lo();m&&this.At();this.Nf(b.ne);d&&this.Nf(d.ne);this.ee&&0===this.zd&&0===q&&!this.al&&this.fb();this.im--;return k};d.prototype.ni=function(){var e=this.mb();return e.Ob.hb[e.yb]};d.prototype.Ht=function(){this.Qi++;this.Qi>=this.ml.length&&this.ml.push([])};d.prototype.At=function(){this.Qi--};d.prototype.nn=
function(){return this.ml[this.Qi]};d.prototype.Jl=function(e){this.ei++;this.ei>=this.rk.length&&this.rk.push(new Kb);var a=this.mb();a.reset(e);return a};d.prototype.Lo=function(){this.ei--};d.prototype.mb=function(){return this.rk[this.ei]};d.prototype.pn=function(e,a){for(var b,f,c,h,k,d;a;){b=0;for(f=a.Bc.length;b<f;b++)if(d=a.Bc[b],d instanceof Lb&&fb(e,d.name))return d;a=a.parent}b=0;for(f=this.td.length;b<f;b++)for(k=this.td[b],c=0,h=k.be.length;c<h;c++)if(d=k.be[c],d instanceof Lb&&fb(e,
d.name))return d;return null};d.prototype.rn=function(e){var a,b;a=0;for(b=this.Tb.length;a<b;a++)if(this.Tb[a].O===e)return this.Tb[a];return null};d.prototype.qi=function(a){var b,f;b=0;for(f=this.m.length;b<f;b++)if(this.m[b].O===a)return this.m[b];return null};d.prototype.ls=function(a){var b,f;b=0;for(f=this.Ud.length;b<f;b++)if(this.Ud[b].O===a)return this.Ud[b];return null};d.prototype.Is=function(){var e=this,b=this.nj,f=this.Bd,h=this.Tg,k=!1;this.fp&&(k=!0,b="__c2_continuouspreview",this.fp=
!1);if(b.length){this.fb();f=this.Tt();if(window.indexedDB&&!this.gc)l(b,f,function(){I("Saved state to IndexedDB storage ("+f.length+" bytes)");e.Bd=f;e.trigger(W.prototype.j.Qj,null);e.Bd="";k&&a()},function(c){try{localStorage.setItem("__c2save_"+b,f),I("Saved state to WebStorage ("+f.length+" bytes)"),e.Bd=f,e.trigger(W.prototype.j.Qj,null),e.Bd="",k&&a()}catch(h){I("Failed to save game state: "+c+"; "+h)}});else try{localStorage.setItem("__c2save_"+b,f),I("Saved state to WebStorage ("+f.length+
" bytes)"),e.Bd=f,this.trigger(W.prototype.j.Qj,null),e.Bd="",k&&a()}catch(d){I("Error saving to WebStorage: "+d)}this.pb=this.Tg=this.nj=""}h.length&&(window.indexedDB&&!this.gc?c(h,function(a){a?(e.pb=a,I("Loaded state from IndexedDB storage ("+e.pb.length+" bytes)")):(e.pb=localStorage.getItem("__c2save_"+h)||"",I("Loaded state from WebStorage ("+e.pb.length+" bytes)"));e.Ah=!1;e.pb.length||e.trigger(W.prototype.j.Oj,null)},function(){e.pb=localStorage.getItem("__c2save_"+h)||"";I("Loaded state from WebStorage ("+
e.pb.length+" bytes)");e.Ah=!1;e.pb.length||e.trigger(W.prototype.j.Oj,null)}):(this.pb=localStorage.getItem("__c2save_"+h)||"",I("Loaded state from WebStorage ("+this.pb.length+" bytes)"),this.Ah=!1,e.pb.length||e.trigger(W.prototype.j.Oj,null)),this.nj=this.Tg="");this.pb.length&&(this.fb(),this.Zs(this.pb),this.Bd=this.pb,this.trigger(W.prototype.j.oq,null),this.pb=this.Bd="")};d.prototype.Tt=function(){var a,f,c,h,k,d,q,m={c2save:!0,version:1,rt:{time:this.hc.Z,walltime:this.kd.Z,timescale:this.Zf,
tickcount:this.Yf,execcount:this.fi,next_uid:this.eh,running_layout:this.Y.O,start_time_offset:Date.now()-this.vj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(f=this.m.length;a<f;a++)if(k=this.m[a],!k.A&&!this.up(k)){d={instances:[]};Sa(k.ua)&&(d.ex=b(k.ua));c=0;for(h=k.c.length;c<h;c++)d.instances.push(this.Sl(k.c[c]));m.types[k.O.toString()]=d}a=0;for(f=this.Tb.length;a<f;a++)c=this.Tb[a],m.layouts[c.O.toString()]=c.Wb();h=m.events.groups;a=0;for(f=this.Ud.length;a<f;a++)c=
this.Ud[a],h[c.O.toString()]=this.ri[c.Bg].Ag;f=m.events.cnds;for(q in this.jf)this.jf.hasOwnProperty(q)&&(a=this.jf[q],Sa(a.ua)&&(f[q]={ex:b(a.ua)}));f=m.events.acts;for(q in this.ff)this.ff.hasOwnProperty(q)&&(a=this.ff[q],Sa(a.ua)&&(f[q]={ex:a.ua}));f=m.events.vars;for(q in this.eg)this.eg.hasOwnProperty(q)&&(a=this.eg[q],a.Bi||a.parent&&!a.Lg||(f[q]=a.data));m.system=this.gd.Wb();return JSON.stringify(m)};d.prototype.Qo=function(){var a,b,f,c,h,k;this.Fd={};a=0;for(b=this.m.length;a<b;a++)if(f=
this.m[a],!f.A)for(c=0,h=f.c.length;c<h;c++)k=f.c[c],this.Fd[k.uid.toString()]=k};d.prototype.Zs=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){var b=a.rt;this.hc.reset();this.hc.Z=b.time;this.kd.reset();this.kd.Z=b.walltime||0;this.Zf=b.timescale;this.Yf=b.tickcount;this.fi=b.execcount;this.vj=Date.now()-b.start_time_offset;var f=b.running_layout;if(f!==this.Y.O)if(f=this.rn(f))this.$m(f);else return;var c,h,k,d,q,m,t;m=a.types;for(h in m)if(m.hasOwnProperty(h)&&(d=this.qi(parseInt(h,10)))&&
!d.A&&!this.up(d)){m[h].ex?d.ua=m[h].ex:Ta(d.ua);q=d.c;k=m[h].instances;f=0;for(c=na(q.length,k.length);f<c;f++)this.Li(q[f],k[f]);f=k.length;for(c=q.length;f<c;f++)this.Qd(q[f]);f=q.length;for(c=k.length;f<c;f++){q=null;if(d.Ba.he&&(q=this.Y.oi(k[f].w.l),!q))continue;q=this.ze(d.Yc,q,!1,0,0,!0);this.Li(q,k[f])}d.Wf=!0}this.fb();this.Qo();c=a.layouts;for(h in c)c.hasOwnProperty(h)&&(f=this.rn(parseInt(h,10)))&&f.xc(c[h]);c=a.events.groups;for(h in c)c.hasOwnProperty(h)&&(f=this.ls(parseInt(h,10)))&&
this.ri[f.Bg]&&this.ri[f.Bg].Xo(c[h]);f=a.events.cnds;for(h in f)f.hasOwnProperty(h)&&this.jf.hasOwnProperty(h)&&(this.jf[h].ua=f[h].ex);f=a.events.acts;for(h in f)f.hasOwnProperty(h)&&this.ff.hasOwnProperty(h)&&(this.ff[h].ua=f[h].ex);f=a.events.vars;for(h in f)f.hasOwnProperty(h)&&this.eg.hasOwnProperty(h)&&(this.eg[h].data=f[h]);this.eh=b.next_uid;this.gd.xc(a.system);f=0;for(c=this.m.length;f<c;f++)if(d=this.m[f],!d.A)for(h=0,a=d.c.length;h<a;h++){q=d.c[h];if(d.Jc)for(m=q.zg(),b=q.siblings.length=
0,k=d.Nb.length;b<k;b++)t=d.Nb[b],d!==t&&q.siblings.push(t.c[m]);q.ld&&q.ld();if(q.F)for(b=0,k=q.F.length;b<k;b++)m=q.F[b],m.ld&&m.ld()}this.ea=!0}};d.prototype.Sl=function(a,f){var c,h,k,d,q;d=a.type;k=d.Ba;var m={};f?m.c2=!0:m.uid=a.uid;Sa(a.ua)&&(m.ex=b(a.ua));if(a.Ka&&a.Ka.length)for(m.ivs={},c=0,h=a.Ka.length;c<h;c++)m.ivs[a.type.Xk[c].toString()]=a.Ka[c];if(k.he){k={x:a.x,y:a.y,w:a.width,h:a.height,l:a.d.O,zi:a.tc()};0!==a.i&&(k.a=a.i);1!==a.opacity&&(k.o=a.opacity);.5!==a.Ab&&(k.hX=a.Ab);.5!==
a.Bb&&(k.hY=a.Bb);0!==a.sb&&(k.bm=a.sb);a.visible||(k.v=a.visible);a.Xc||(k.ce=a.Xc);-1!==a.dh&&(k.mts=a.dh);if(d.G.length)for(k.fx=[],c=0,h=d.G.length;c<h;c++)q=d.G[c],k.fx.push({name:q.name,active:a.Sd[q.index],params:a.ta[q.index]});m.w=k}if(a.F&&a.F.length)for(m.behs={},c=0,h=a.F.length;c<h;c++)d=a.F[c],d.Wb&&(m.behs[d.type.O.toString()]=d.Wb());a.Wb&&(m.data=a.Wb());return m};d.prototype.ns=function(a,b){var f,c;f=0;for(c=a.Xk.length;f<c;f++)if(a.Xk[f]===b)return f;return-1};d.prototype.hs=function(a,
b){var f,c;f=0;for(c=a.F.length;f<c;f++)if(a.F[f].type.O===b)return f;return-1};d.prototype.Li=function(a,b,f){var c,h,k,d,q;q=a.type;k=q.Ba;if(f){if(!b.c2)return}else a.uid=b.uid;b.ex?a.ua=b.ex:Ta(a.ua);if(h=b.ivs)for(c in h)h.hasOwnProperty(c)&&(f=this.ns(q,parseInt(c,10)),0>f||f>=a.Ka.length||(a.Ka[f]=h[c]));if(k.he){k=b.w;a.d.O!==k.l&&(f=a.d,a.d=this.Y.oi(k.l),a.d?(f.Of(a,!0),a.d.ig(a,!0),a.qa(),a.d.wh(0)):(a.d=f,this.Qd(a)));a.x=k.x;a.y=k.y;a.width=k.w;a.height=k.h;a.Uc=k.zi;a.i=k.hasOwnProperty("a")?
k.a:0;a.opacity=k.hasOwnProperty("o")?k.o:1;a.Ab=k.hasOwnProperty("hX")?k.hX:.5;a.Bb=k.hasOwnProperty("hY")?k.hY:.5;a.visible=k.hasOwnProperty("v")?k.v:!0;a.Xc=k.hasOwnProperty("ce")?k.ce:!0;a.dh=k.hasOwnProperty("mts")?k.mts:-1;a.sb=k.hasOwnProperty("bm")?k.bm:0;a.ng=cb(a.sb);this.k&&db(a,a.sb,this.k);a.qa();if(k.hasOwnProperty("fx"))for(f=0,h=k.fx.length;f<h;f++)d=q.Gk(k.fx[f].name),0>d||(a.Sd[d]=k.fx[f].active,a.ta[d]=k.fx[f].params);a.Od()}if(q=b.behs)for(c in q)q.hasOwnProperty(c)&&(k=this.hs(a,
parseInt(c,10)),0>k||a.F[k].xc(q[c]));b.data&&a.xc(b.data)};Mb=function(a){return new d(document.getElementById(a))};Nb=function(a,b){return new d({dc:!0,width:a,height:b})};window.cr_createRuntime=Mb;window.cr_createDCRuntime=Nb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Dv=!0;document.body.appendChild(a);a=new d(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 d(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var g=document.getElementById("c2canvas");return g?g.c2runtime:window.c2runtime?window.c2runtime:null};
window.cr_sizeCanvas=function(g,n){if(0!==g&&0!==n){var d=window.cr_getC2Runtime();d&&d.setSize(g,n)}};window.cr_setSuspended=function(g){var n=window.cr_getC2Runtime();n&&n.setSuspended(g)};
(function(){function g(a,b){this.b=a;this.De=null;this.scrollX=this.b.Na/2;this.scrollY=this.b.Ma/2;this.scale=1;this.i=0;this.nf=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.vp=b[3];this.dp=b[4];this.O=b[5];var c=b[6],k,d;this.J=[];this.Eg=[];k=0;for(d=c.length;k<d;k++){var g=new Ob(this,c[k]);g.so=k;this.J.push(g)}c=b[7];this.Ke=[];k=0;for(d=c.length;k<d;k++){var g=c[k],l=this.b.m[g[1]];l.Yc||(l.Yc=g);this.Ke.push(g);-1===this.Eg.indexOf(l)&&this.Eg.push(l)}this.G=[];this.U=[];this.ta=
[];k=0;for(d=b[8].length;k<d;k++)this.G.push({id:b[8][k][0],name:b[8][k][1],eb:-1,Ta:!0,index:k}),this.ta.push(b[8][k][2].slice(0));this.Od();this.th=new S(0,0,1,1);this.Ll=new S(0,0,1,1);this.je={}}function n(a,b){return a.Uc-b.Uc}function d(a,b){this.Va=a;this.b=a.b;this.c=[];this.scale=1;this.i=0;this.Be=!1;this.Md=new S(0,0,0,0);this.op=new ta;this.Ha=this.xa=this.Ia=this.wa=0;this.bf=!1;this.Pd=-1;this.name=b[0];this.index=b[1];this.O=b[2];this.visible=b[3];this.Wd=b[4];this.Nd=b[5];this.Db=
b[6];this.Eb=b[7];this.opacity=b[8];this.yk=b[9];this.Sc=b[10];this.kb=b[11];this.sb=b[12];this.tr=b[13];this.ng="source-over";this.ib=this.jb=0;this.Vb=null;this.Bf=r();this.Id=!0;this.Hi=new S(0,0,-1,-1);this.nc=new S(0,0,-1,-1);this.Sc&&(this.Vb=new bb(this.b.Na,this.b.Ma));this.ke=!1;var c=b[14],k,d;this.ip=[];this.fc=[];this.qg=[];k=0;for(d=c.length;k<d;k++){var g=c[k],l=this.b.m[g[1]];l.Yc||(l.Yc=g,l.$q=this.index);this.fc.push(g);-1===this.Va.Eg.indexOf(l)&&this.Va.Eg.push(l)}xa(this.ip,this.fc);
this.G=[];this.U=[];this.ta=[];k=0;for(d=b[15].length;k<d;k++)this.G.push({id:b[15][k][0],name:b[15][k][1],eb:-1,Ta:!0,index:k}),this.ta.push(b[15][k][2].slice(0));this.Od();this.th=new S(0,0,1,1);this.Ll=new S(0,0,1,1)}function r(){return b.length?b.pop():[]}function l(a){a.length=0;b.push(a)}g.prototype.St=function(a){var b=a.type.O.toString();this.je.hasOwnProperty(b)||(this.je[b]=[]);this.je[b].push(this.b.Sl(a))};g.prototype.vn=function(){var a=this.J[0];return!a.Nd&&1===a.opacity&&!a.yk&&a.visible};
g.prototype.Od=function(){this.U.length=0;var a,b,c;a=0;for(b=this.G.length;a<b;a++)c=this.G[a],c.Ta&&this.U.push(c)};g.prototype.Fk=function(a){var b,c,k;b=0;for(c=this.G.length;b<c;b++)if(k=this.G[b],k.name===a)return k;return null};var c=[],a=!0;g.prototype.Yl=function(){this.dp&&(this.De=this.b.sk[this.dp],this.De.km());this.b.Y=this;this.scrollX=this.b.Na/2;this.scrollY=this.b.Ma/2;var b,h,d,k,m,g,l;b=0;for(d=this.b.m.length;b<d;b++)if(h=this.b.m[b],!h.A)for(m=h.c,h=0,k=m.length;h<k;h++)if(g=
m[h],g.d){var q=g.d.so;q>=this.J.length&&(q=this.J.length-1);g.d=this.J[q];-1===g.d.c.indexOf(g)&&g.d.c.push(g);g.d.bf=!0}if(!a)for(b=0,d=this.J.length;b<d;++b)this.J[b].c.sort(n);c.length=0;this.Qq();b=0;for(d=this.J.length;b<d;b++)g=this.J[b],g.Yq(),g.mm();m=!1;if(!this.nf){for(l in this.je)if(this.je.hasOwnProperty(l)&&(h=this.b.qi(parseInt(l,10)))&&!h.A&&this.b.jm(h)){k=this.je[l];b=0;for(d=k.length;b<d;b++){g=null;if(h.Ba.he&&(g=this.oi(k[b].w.l),!g))continue;g=this.b.ze(h.Yc,g,!1,0,0,!0);this.b.Li(g,
k[b]);m=!0;c.push(g)}k.length=0}b=0;for(d=this.J.length;b<d;b++)this.J[b].c.sort(n),this.J[b].bf=!0}m&&(this.b.fb(),this.b.Qo());for(b=0;b<c.length;b++)if(g=c[b],g.type.Jc)for(d=g.zg(),h=0,k=g.type.Nb.length;h<k;h++)l=g.type.Nb[h],g.type!==l&&(l.c.length>d?g.siblings.push(l.c[d]):l.Yc&&(m=this.b.ze(l.Yc,g.d,!0,g.x,g.y,!0),this.b.fb(),l.Hj(),g.siblings.push(m),c.push(m)));b=0;for(d=this.Ke.length;b<d;b++)this.b.ze(this.Ke[b],null,!0);this.b.xe=null;this.b.fb();if(this.b.aa&&!this.b.da)for(b=0,d=this.b.m.length;b<
d;b++)l=this.b.m[b],!l.A&&l.c.length&&l.hj&&l.hj(this.b.aa);b=0;for(d=c.length;b<d;b++)g=c[b],this.b.trigger(Object.getPrototypeOf(g.type.Ba).j.bq,g);c.length=0;this.b.trigger(W.prototype.j.zm,null);this.nf=!1};g.prototype.Xq=function(){var a,b,c,k,d;b=a=0;for(c=this.Ke.length;a<c;a++)k=this.Ke[a],d=this.b.m[k[1]],d.global?this.b.ze(k,null,!0):(this.Ke[b]=k,b++);this.Ke.length=b};g.prototype.au=function(){this.b.trigger(W.prototype.j.nq,null);this.b.gd.Jb.length=0;var b,c,d,k,m,g;if(!this.nf)for(b=
0,c=this.J.length;b<c;b++)for(this.J[b].nm(),m=this.J[b].c,d=0,k=m.length;d<k;d++)g=m[d],g.type.global||this.b.jm(g.type)&&this.St(g);b=0;for(c=this.J.length;b<c;b++){m=this.J[b].c;d=0;for(k=m.length;d<k;d++)g=m[d],g.type.global||this.b.Qd(g);this.b.fb();m.length=0;this.J[b].bf=!0}b=0;for(c=this.b.m.length;b<c;b++)if(m=this.b.m[b],!(m.global||m.Ba.he||m.Ba.qj||m.A)){d=0;for(k=m.c.length;d<k;d++)this.b.Qd(m.c[d]);this.b.fb()}a=!1};new S(0,0,0,0);g.prototype.Hc=function(a){var b,c=a,k=!1,d=!this.b.pc;
d&&(this.b.Ki||(this.b.Ki=document.createElement("canvas"),b=this.b.Ki,b.width=this.b.M,b.height=this.b.L,this.b.Rn=b.getContext("2d"),k=!0),b=this.b.Ki,c=this.b.Rn,b.width!==this.b.M&&(b.width=this.b.M,k=!0),b.height!==this.b.L&&(b.height=this.b.L,k=!0),k&&(c.webkitImageSmoothingEnabled=this.b.S,c.mozImageSmoothingEnabled=this.b.S,c.msImageSmoothingEnabled=this.b.S,c.imageSmoothingEnabled=this.b.S));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.Vj&&!this.vn()&&c.clearRect(0,0,this.b.M,
this.b.L);var g,l,k=0;for(g=this.J.length;k<g;k++)l=this.J[k],l.visible&&0<l.opacity&&11!==l.sb&&(l.c.length||!l.Nd)?l.Hc(c):l.mm();d&&a.drawImage(b,0,0,this.b.width,this.b.height)};g.prototype.Pb=function(a){var b=0<this.U.length||this.b.bg||!this.b.pc;if(b){this.b.Sb||(this.b.Sb=a.Yd(this.b.M,this.b.L,this.b.S));if(this.b.Sb.lg!==this.b.M||this.b.Sb.kg!==this.b.L)a.deleteTexture(this.b.Sb),this.b.Sb=a.Yd(this.b.M,this.b.L,this.b.S);a.ed(this.b.Sb);this.b.pc||a.Rf(this.b.M,this.b.L)}else this.b.Sb&&
(a.ed(null),a.deleteTexture(this.b.Sb),this.b.Sb=null);this.b.Vj&&!this.vn()&&a.clear(0,0,0,0);var c,k,d;c=0;for(k=this.J.length;c<k;c++)d=this.J[c],d.visible&&0<d.opacity&&(d.c.length||!d.Nd)?d.Pb(a):d.mm();b&&(0===this.U.length||1===this.U.length&&this.b.pc?(1===this.U.length?(b=this.U[0].index,a.fd(this.U[0].eb),a.Qf(null,1/this.b.M,1/this.b.L,0,0,1,1,this.scale,this.i,0,0,this.b.M/2,this.b.L/2,this.ta[b]),a.ij(this.U[0].eb)&&(this.b.ea=!0)):a.fd(0),this.b.pc||a.Rf(this.b.width,this.b.height),
a.ed(null),a.Ye(1),a.Xb(this.b.Sb),a.Wo(),a.le(),a.se(),b=this.b.width/2,c=this.b.height/2,a.sh(-b,c,b,c,b,-c,-b,-c),a.Xb(null)):this.Ml(a,null,null,null))};g.prototype.xg=function(){return 0<this.U.length||this.b.bg||!this.b.pc?this.b.Sb:null};g.prototype.sn=function(){var a=this.J[0].rc(),b,c,k;b=1;for(c=this.J.length;b<c;b++)k=this.J[b],(0!==k.Db||0!==k.Eb)&&k.rc()<a&&(a=k.rc());return a};g.prototype.Uo=function(a){if(!this.vp){var b=1/this.sn()*this.b.M/2;a>this.width-b&&(a=this.width-b);a<b&&
(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ea=!0)};g.prototype.Vo=function(a){if(!this.vp){var b=1/this.sn()*this.b.L/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ea=!0)};g.prototype.Qq=function(){this.Uo(this.scrollX);this.Vo(this.scrollY)};g.prototype.Ml=function(a,b,c,k){var d=c?c.U:b?b.U:this.U,g=1,l=0,q=0,e=0,p=this.b.M,u=this.b.L;c?(g=c.d.rc(),l=c.d.Ua(),q=c.d.wa,e=c.d.xa,p=c.d.Ia,u=c.d.Ha):b&&(g=b.rc(),l=b.Ua(),q=b.wa,e=b.xa,p=b.Ia,u=b.Ha);var n=
this.b.Bk,s,x,r,z,J=0,B=1,X,F=this.b.M,v=this.b.L,ua=F/2,L=v/2,P=b?b.th:this.th,D=b?b.Ll:this.Ll,E=0,M=0,C=0,H=0,G=F,ka=F,K=v,pa=v,fa=r=0,sa=c?c.d.Ua():0;if(c){s=0;for(x=d.length;s<x;s++)r+=a.rs(d[s].eb),fa+=a.ss(d[s].eb);z=c.ya;E=b.nb(z.left,z.top,!0,!0);C=b.nb(z.left,z.top,!1,!0);G=b.nb(z.right,z.bottom,!0,!0);K=b.nb(z.right,z.bottom,!1,!0);0!==sa&&(s=b.nb(z.right,z.top,!0,!0),x=b.nb(z.right,z.top,!1,!0),M=b.nb(z.left,z.bottom,!0,!0),H=b.nb(z.left,z.bottom,!1,!0),z=Math.min(E,G,s,M),G=Math.max(E,
G,s,M),E=z,z=Math.min(C,K,x,H),K=Math.max(C,K,x,H),C=z);E-=r;C-=fa;G+=r;K+=fa;D.left=E/F;D.top=1-C/v;D.right=G/F;D.bottom=1-K/v;M=E=Q(E);H=C=Q(C);ka=G=qa(G);pa=K=qa(K);M-=r;H-=fa;ka+=r;pa+=fa;0>E&&(E=0);0>C&&(C=0);G>F&&(G=F);K>v&&(K=v);0>M&&(M=0);0>H&&(H=0);ka>F&&(ka=F);pa>v&&(pa=v);P.left=E/F;P.top=1-C/v;P.right=G/F;P.bottom=1-K/v}else P.left=D.left=0,P.top=D.top=0,P.right=D.right=1,P.bottom=D.bottom=1;fa=c&&((c.i||sa)&&a.qh(d[0].eb)||0!==r||0!==fa||1!==c.opacity||c.type.Ba.oo)||b&&!c&&1!==b.opacity;
a.Wo();if(fa){n[J]||(n[J]=a.Yd(F,v,this.b.S));if(n[J].lg!==F||n[J].kg!==v)a.deleteTexture(n[J]),n[J]=a.Yd(F,v,this.b.S);a.fd(0);a.ed(n[J]);X=pa-H;a.clearRect(M,v-H-X,ka-M,X);c?c.Pb(a):(a.Xb(this.b.ic),a.Ye(b.opacity),a.le(),a.translate(-ua,-L),a.se(),a.Hd(E,K,G,K,G,C,E,C,P));D.left=D.top=0;D.right=D.bottom=1;c&&(z=P.top,P.top=P.bottom,P.bottom=z);J=1;B=0}a.Ye(1);r=d.length-1;var sa=a.Hl(d[r].eb)||!b&&!c&&!this.b.pc,ca=0;s=0;for(x=d.length;s<x;s++){n[J]||(n[J]=a.Yd(F,v,this.b.S));if(n[J].lg!==F||n[J].kg!==
v)a.deleteTexture(n[J]),n[J]=a.Yd(F,v,this.b.S);a.fd(d[s].eb);ca=d[s].index;a.ij(d[s].eb)&&(this.b.ea=!0);0!=s||fa?(a.Qf(k,1/F,1/v,D.left,D.top,D.right,D.bottom,g,l,q,e,(q+p)/2,(e+u)/2,c?c.ta[ca]:b?b.ta[ca]:this.ta[ca]),a.Xb(null),s!==r||sa?(a.ed(n[J]),X=pa-H,z=v-H-X,a.clearRect(M,z,ka-M,X)):(c?a.me(c.jb,c.ib):b&&a.me(b.jb,b.ib),a.ed(k)),a.Xb(n[B]),a.le(),a.translate(-ua,-L),a.se(),a.Hd(E,K,G,K,G,C,E,C,P),s!==r||sa||a.Xb(null)):(a.ed(n[J]),X=pa-H,z=v-H-X,a.clearRect(M,z,ka-M,X),c?(a.Qf(k,1/c.width,
1/c.height,D.left,D.top,D.right,D.bottom,g,l,q,e,(q+p)/2,(e+u)/2,c.ta[ca]),c.Pb(a)):(a.Qf(k,1/F,1/v,0,0,1,1,g,l,q,e,(q+p)/2,(e+u)/2,b?b.ta[ca]:this.ta[ca]),a.Xb(b?this.b.ic:this.b.Sb),a.le(),a.translate(-ua,-L),a.se(),a.Hd(E,K,G,K,G,C,E,C,P)),D.left=D.top=0,D.right=D.bottom=1,c&&!sa&&(z=K,K=C,C=z));J=0===J?1:0;B=0===J?1:0}sa&&(a.fd(0),c?a.me(c.jb,c.ib):b?a.me(b.jb,b.ib):this.b.pc||(a.Rf(this.b.width,this.b.height),ua=this.b.width/2,L=this.b.height/2,C=E=0,G=this.b.width,K=this.b.height),a.ed(k),a.Xb(n[B]),
a.le(),a.translate(-ua,-L),a.se(),c&&1===d.length&&!fa?a.Hd(E,C,G,C,G,K,E,K,P):a.Hd(E,K,G,K,G,C,E,C,P),a.Xb(null))};g.prototype.oi=function(a){var b,c;b=0;for(c=this.J.length;b<c;b++)if(this.J[b].O===a)return this.J[b];return null};g.prototype.Wb=function(){var a,b,c,d={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.i,w:this.width,h:this.height,fv:this.nf,persist:this.je,fx:[],layers:{}};a=0;for(b=this.G.length;a<b;a++)c=this.G[a],d.fx.push({name:c.name,active:c.Ta,params:this.ta[c.index]});
a=0;for(b=this.J.length;a<b;a++)c=this.J[a],d.layers[c.O.toString()]=c.Wb();return d};g.prototype.xc=function(a){var b,c,d,m;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.i=a.a;this.width=a.w;this.height=a.h;this.je=a.persist;"undefined"!==typeof a.fv&&(this.nf=a.fv);var g=a.fx;b=0;for(c=g.length;b<c;b++)if(d=this.Fk(g[b].name))d.Ta=g[b].active,this.ta[d.index]=g[b].params;this.Od();b=a.layers;for(m in b)b.hasOwnProperty(m)&&(a=this.oi(parseInt(m,10)))&&a.xc(b[m])};Ab=g;d.prototype.Od=function(){this.U.length=
0;var a,b,c;a=0;for(b=this.G.length;a<b;a++)c=this.G[a],c.Ta&&this.U.push(c)};d.prototype.Fk=function(a){var b,c,d;b=0;for(c=this.G.length;b<c;b++)if(d=this.G[b],d.name===a)return d;return null};d.prototype.Yq=function(){var a,b,d,k,m,g;b=a=0;for(d=this.fc.length;a<d;a++){k=this.fc[a];m=this.b.m[k[1]];g=this.b.jm(m);m=!0;if(!g||this.Va.nf)k=this.b.ze(k,this,!0),c.push(k),k.type.global&&(m=!1,this.qg.push(k.uid));m&&(this.fc[b]=this.fc[a],b++)}this.fc.length=b;this.b.fb();!this.b.n&&this.G.length&&
(this.sb=this.tr);this.ng=cb(this.sb);this.b.k&&db(this,this.sb,this.b.k);this.Id=!0};d.prototype.Of=function(a,b){var c=za(this.c,a);0>c||(b&&this.Sc&&a.Fb&&a.Fb.right>=a.Fb.left&&(a.ma(),this.Vb.update(a,a.Fb,null),a.Fb.set(0,0,-1,-1)),c===this.c.length-1?this.c.pop():(wa(this.c,c),this.wh(c)),this.Id=!0)};d.prototype.ig=function(a,b){a.Uc=this.c.length;this.c.push(a);b&&this.Sc&&a.Fb&&a.qa();this.Id=!0};d.prototype.Et=function(a){this.c.unshift(a);this.wh(0)};d.prototype.gt=function(a,b,c){var d=
a.tc();b=b.tc();wa(this.c,d);d<b&&b--;c&&b++;b===this.c.length?this.c.push(a):this.c.splice(b,0,a);this.wh(d<b?d:b)};d.prototype.wh=function(a){-1===this.Pd?this.Pd=a:a<this.Pd&&(this.Pd=a);this.Id=this.bf=!0};d.prototype.nm=function(){if(this.bf){-1===this.Pd&&(this.Pd=0);var a,b,c;if(this.Sc)for(a=this.Pd,b=this.c.length;a<b;++a)c=this.c[a],c.Uc=a,this.Vb.bt(c.Fb);else for(a=this.Pd,b=this.c.length;a<b;++a)this.c[a].Uc=a;this.bf=!1;this.Pd=-1}};d.prototype.rc=function(a){return this.os()*(this.b.pc||
a?this.b.jg:1)};d.prototype.os=function(){return(this.scale*this.Va.scale-1)*this.kb+1};d.prototype.Ua=function(){return this.Be?0:Da(this.Va.i+this.i)};var b=[],x=[],s=[];d.prototype.tn=function(){this.nm();this.Vb.jj(this.wa,this.xa,this.Ia,this.Ha,s);if(!s.length)return r();if(1===s.length){var a=r();xa(a,s[0]);s.length=0;return a}for(var b=!0;1<s.length;){for(var a=s,c=void 0,d=void 0,m=void 0,g=void 0,n=void 0,c=0,d=a.length;c<d-1;c+=2){var m=a[c],g=a[c+1],n=r(),q=m,e=g,p=n,u=0,y=0,O=0,Y=q.length,
T=e.length,z=void 0,J=void 0;for(p.length=Y+T;u<Y&&y<T;++O)z=q[u],J=e[y],z.Uc<J.Uc?(p[O]=z,++u):(p[O]=J,++y);for(;u<Y;++u,++O)p[O]=q[u];for(;y<T;++y,++O)p[O]=e[y];b||(l(m),l(g));x.push(n)}1===d%2&&(b?(m=r(),xa(m,a[d-1]),x.push(m)):x.push(a[d-1]));xa(a,x);x.length=0;b=!1}a=s[0];s.length=0;return a};d.prototype.Hc=function(a){this.ke=this.yk||1!==this.opacity||0!==this.sb;var b=this.b.canvas,c=a,d=!1;this.ke&&(this.b.Ji||(this.b.Ji=document.createElement("canvas"),b=this.b.Ji,b.width=this.b.M,b.height=
this.b.L,this.b.Qn=b.getContext("2d"),d=!0),b=this.b.Ji,c=this.b.Qn,b.width!==this.b.M&&(b.width=this.b.M,d=!0),b.height!==this.b.L&&(b.height=this.b.L,d=!0),d&&(c.webkitImageSmoothingEnabled=this.b.S,c.mozImageSmoothingEnabled=this.b.S,c.msImageSmoothingEnabled=this.b.S,c.imageSmoothingEnabled=this.b.S),this.Nd&&c.clearRect(0,0,this.b.M,this.b.L));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Nd||(c.fillStyle="rgb("+this.Wd[0]+","+this.Wd[1]+","+this.Wd[2]+")",c.fillRect(0,0,this.b.M,
this.b.L));c.save();this.Be=!0;var d=this.na(0,0,!0,!0),m=this.na(0,0,!1,!0);this.Be=!1;this.b.dd&&(d=Math.round(d),m=Math.round(m));this.Ol(d,m,c);var g=this.rc();c.scale(g,g);c.translate(-d,-m);this.Sc?(this.nc.left=this.Vb.$b(this.wa),this.nc.top=this.Vb.ac(this.xa),this.nc.right=this.Vb.$b(this.Ia),this.nc.bottom=this.Vb.ac(this.Ha),this.Id||!this.nc.di(this.Hi)?(l(this.Bf),d=this.tn(),this.Id=!1,this.Hi.pg(this.nc)):d=this.Bf):d=this.c;for(var n,q=null,m=0,g=d.length;m<g;++m)n=d[m],n!==q&&(this.qr(n,
c),q=n);this.Sc&&(this.Bf=d);c.restore();this.ke&&(a.globalCompositeOperation=this.ng,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};d.prototype.qr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ma();var c=a.ya;c.right<this.wa||c.bottom<this.xa||c.left>this.Ia||c.top>this.Ha||(b.globalCompositeOperation=a.ng,a.Hc(b))}};d.prototype.mm=function(){this.Be=!0;var a=this.na(0,0,!0,!0),b=this.na(0,0,!1,!0);this.Be=!1;this.b.dd&&(a=Math.round(a),b=Math.round(b));this.Ol(a,b,null)};d.prototype.Ol=
function(a,b,c){var d=this.rc();this.wa=a;this.xa=b;this.Ia=a+1/d*this.b.M;this.Ha=b+1/d*this.b.L;a=this.Ua();0!==a&&(c&&(c.translate(this.b.M/2,this.b.L/2),c.rotate(-a),c.translate(this.b.M/-2,this.b.L/-2)),this.Md.set(this.wa,this.xa,this.Ia,this.Ha),this.Md.offset((this.wa+this.Ia)/-2,(this.xa+this.Ha)/-2),this.op.bp(this.Md,a),this.op.Rm(this.Md),this.Md.offset((this.wa+this.Ia)/2,(this.xa+this.Ha)/2),this.wa=this.Md.left,this.xa=this.Md.top,this.Ia=this.Md.right,this.Ha=this.Md.bottom)};d.prototype.Pb=
function(a){var b=0,c=0;if(this.ke=this.yk||1!==this.opacity||0<this.U.length||0!==this.sb){this.b.ic||(this.b.ic=a.Yd(this.b.M,this.b.L,this.b.S));if(this.b.ic.lg!==this.b.M||this.b.ic.kg!==this.b.L)a.deleteTexture(this.b.ic),this.b.ic=a.Yd(this.b.M,this.b.L,this.b.S);a.ed(this.b.ic);this.Nd&&a.clear(0,0,0,0)}this.Nd||a.clear(this.Wd[0]/255,this.Wd[1]/255,this.Wd[2]/255,1);this.Be=!0;var d=this.na(0,0,!0,!0),b=this.na(0,0,!1,!0);this.Be=!1;this.b.dd&&(d=Math.round(d),b=Math.round(b));this.Ol(d,b,
null);d=this.rc();a.le();a.scale(d,d);a.So(-this.Ua());a.translate((this.wa+this.Ia)/-2,(this.xa+this.Ha)/-2);a.se();this.Sc?(this.nc.left=this.Vb.$b(this.wa),this.nc.top=this.Vb.ac(this.xa),this.nc.right=this.Vb.$b(this.Ia),this.nc.bottom=this.Vb.ac(this.Ha),this.Id||!this.nc.di(this.Hi)?(l(this.Bf),b=this.tn(),this.Id=!1,this.Hi.pg(this.nc)):b=this.Bf):b=this.c;var m,g,n=null,c=0;for(m=b.length;c<m;++c)g=b[c],g!==n&&(this.rr(b[c],a),n=g);this.Sc&&(this.Bf=b);this.ke&&(b=this.U.length?this.U[0].eb:
0,c=this.U.length?this.U[0].index:0,0===this.U.length||1===this.U.length&&!a.Hl(b)&&1===this.opacity?(1===this.U.length?(a.fd(b),a.Qf(this.Va.xg(),1/this.b.M,1/this.b.L,0,0,1,1,d,this.Ua(),this.wa,this.xa,(this.wa+this.Ia)/2,(this.xa+this.Ha)/2,this.ta[c]),a.ij(b)&&(this.b.ea=!0)):a.fd(0),a.ed(this.Va.xg()),a.Ye(this.opacity),a.Xb(this.b.ic),a.me(this.jb,this.ib),a.le(),a.se(),d=this.b.M/2,b=this.b.L/2,a.sh(-d,b,d,b,d,-b,-d,-b),a.Xb(null)):this.Va.Ml(a,this,null,this.Va.xg()))};d.prototype.rr=function(a,
b){if(a.visible&&0!==a.width&&0!==a.height){a.ma();var c=a.ya;c.right<this.wa||c.bottom<this.xa||c.left>this.Ia||c.top>this.Ha||(a.Bp?this.sr(a,b):(b.fd(0),b.me(a.jb,a.ib),a.Pb(b)))}};d.prototype.sr=function(a,b){var c=a.U[0].eb,d=a.U[0].index,m=this.rc();if(1!==a.U.length||b.Hl(c)||b.Gt(c)||(a.i||a.d.Ua())&&b.qh(c)||1!==a.opacity||a.type.Ba.oo)this.Va.Ml(b,this,a,this.ke?this.b.ic:this.Va.xg()),b.le(),b.scale(m,m),b.So(-this.Ua()),b.translate((this.wa+this.Ia)/-2,(this.xa+this.Ha)/-2),b.se();else{b.fd(c);
b.me(a.jb,a.ib);b.ij(c)&&(this.b.ea=!0);var g=0,l=0,q=0,e=0;b.qh(c)&&(c=a.ya,g=this.nb(c.left,c.top,!0,!0),l=this.nb(c.left,c.top,!1,!0),q=this.nb(c.right,c.bottom,!0,!0),c=this.nb(c.right,c.bottom,!1,!0),g/=windowWidth,l=1-l/windowHeight,q/=windowWidth,e=1-c/windowHeight);b.Qf(this.ke?this.b.ic:this.Va.xg(),1/a.width,1/a.height,g,l,q,e,m,this.Ua(),this.wa,this.xa,(this.wa+this.Ia)/2,(this.xa+this.Ha)/2,a.ta[d]);a.Pb(b)}};d.prototype.na=function(a,b,c,d){var m=this.b.devicePixelRatio;this.b.Me&&(a*=
m,b*=m);var m=this.b.Fo,g=this.b.Go,m=(this.Va.scrollX-m)*this.Db+m,g=(this.Va.scrollY-g)*this.Eb+g,l=m,q=g,e=1/this.rc(!d);d?(l-=this.b.M*e/2,q-=this.b.L*e/2):(l-=this.b.width*e/2,q-=this.b.height*e/2);l+=a*e;q+=b*e;b=this.Ua();0!==b&&(l-=m,q-=g,a=Math.cos(b),b=Math.sin(b),d=l*a-q*b,q=q*a+l*b,l=d+m,q+=g);return c?l:q};d.prototype.nb=function(a,b,c,d){var m=this.b.Fo,g=this.b.Go,l=(this.Va.scrollX-m)*this.Db+m,q=(this.Va.scrollY-g)*this.Eb+g,g=l,m=q,e=this.Ua();if(0!==e){a-=l;b-=q;var p=Math.cos(-e),
e=Math.sin(-e),u=a*p-b*e;b=b*p+a*e;a=u+l;b+=q}l=1/this.rc(!d);d?(g-=this.b.M*l/2,m-=this.b.L*l/2):(g-=this.b.width*l/2,m-=this.b.height*l/2);g=(a-g)/l;m=(b-m)/l;a=this.b.devicePixelRatio;this.b.Me&&!d&&(g/=a,m/=a);return c?g:m};d.prototype.Wb=function(){var a,b,c,d={s:this.scale,a:this.i,vl:this.wa,vt:this.xa,vr:this.Ia,vb:this.Ha,v:this.visible,bc:this.Wd,t:this.Nd,px:this.Db,py:this.Eb,o:this.opacity,zr:this.kb,fx:[],cg:this.qg,instances:[]};a=0;for(b=this.G.length;a<b;a++)c=this.G[a],d.fx.push({name:c.name,
active:c.Ta,params:this.ta[c.index]});return d};d.prototype.xc=function(a){var b,c,d;this.scale=a.s;this.i=a.a;this.wa=a.vl;this.xa=a.vt;this.Ia=a.vr;this.Ha=a.vb;this.visible=a.v;this.Wd=a.bc;this.Nd=a.t;this.Db=a.px;this.Eb=a.py;this.opacity=a.o;this.kb=a.zr;this.qg=a.cg||[];xa(this.fc,this.ip);var m=new ba;b=0;for(d=this.qg.length;b<d;++b)m.add(this.qg[b]);c=b=0;for(d=this.fc.length;b<d;++b)m.contains(this.fc[b][2])||(this.fc[c]=this.fc[b],++c);this.fc.length=c;c=a.fx;b=0;for(d=c.length;b<d;b++)if(a=
this.Fk(c[b].name))a.Ta=c[b].active,this.ta[a.index]=c[b].params;this.Od();this.c.sort(n);this.bf=!0};Ob=d})();
(function(){function g(a,b){var c,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<d;c++)if(a[c]!==b[c])return!1;return!0}}function n(a,b){return a.index-b.index}function d(a){var b,c,d,k;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(n);a.length>=m.length&&(m.length=a.length+1);m[a.length]||(m[a.length]=[]);k=m[a.length];b=0;for(c=k.length;b<c;b++)if(d=k[b],g(a,d))return d;k.push(a);return a}
function r(a,b){this.b=a;this.rp={};this.gn={};this.Qk=!1;this.yn=new ba;this.mk=[];this.Wj=[];this.name=b[0];var c=b[1];this.be=[];var d,k;d=0;for(k=c.length;d<k;d++)this.An(c[d],null,this.be)}function l(a){this.type=a;this.c=[];this.P=[];this.fa=!0}function c(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.ne=[];this.wn=this.Cj=this.gm=this.xi=this.group=this.hp=!1;this.hb=[];this.Dc=[];this.Bc=[];this.Bg="";this.Ag=this.xi=this.group=!1;this.Uh=null;c[1]&&(this.Bg=c[1][1].toLowerCase(),
this.group=!0,this.xi=!!c[1][0],this.Uh=[],this.Ag=this.xi,this.b.Ud.push(this),this.b.ri[this.Bg]=this);this.Lc=c[2];this.O=c[4];this.group||(this.b.Qm[this.O.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var k=new Pb(this,d[a]);k.index=a;this.hb.push(k);this.Lm(k.type)}d=c[6];a=0;for(b=d.length;a<b;a++)k=new Qb(this,d[a]),k.index=a,this.Dc.push(k);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.An(c[a],this,this.Bc);this.Ci=!1;this.hb.length&&(this.Ci=null==this.hb[0].type&&
this.hb[0].ab==W.prototype.j.Lp)}function a(a,b){var c,d,k;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Jc))for(c=0,d=a.Nb.length;c<d;c++)k=a.Nb[c],a!==k&&-1===b.indexOf(k)&&b.push(k)}function b(a,b){this.cc=a;this.sheet=a.sheet;this.b=a.b;this.K=[];this.va=[];this.ua={};this.index=-1;this.gg=!1;this.ab=this.b.Rd(b[1]);this.trigger=0<b[3];this.en=2===b[3];this.ad=b[4];this.rf=b[5];this.Ys=b[6];this.O=b[7];this.b.jf[this.O.toString()]=this;-1===b[0]?(this.type=null,this.Pa=this.Rl,this.we=null,this.Fc=-1):
(this.type=this.b.m[b[0]],this.Pa=this.Ys?this.Qt:this.Ql,b[2]?(this.we=this.type.mi(b[2]),this.Fc=this.type.Dk(b[2])):(this.we=null,this.Fc=-1),this.cc.parent&&this.cc.parent.pj());this.en&&(this.Pa=this.Rt);if(10===b.length){var c,d,k=b[9];c=0;for(d=k.length;c<d;c++){var f=new Rb(this,k[c]);this.K.push(f)}this.va.length=k.length}}function x(a,b){this.cc=a;this.sheet=a.sheet;this.b=a.b;this.K=[];this.va=[];this.ua={};this.index=-1;this.gg=!1;this.ab=this.b.Rd(b[1]);-1===b[0]?(this.type=null,this.Pa=
this.Rl,this.we=null,this.Fc=-1):(this.type=this.b.m[b[0]],this.Pa=this.Ql,b[2]?(this.we=this.type.mi(b[2]),this.Fc=this.type.Dk(b[2])):(this.we=null,this.Fc=-1));this.O=b[3];this.b.ff[this.O.toString()]=this;if(6===b.length){var c,d,k=b[5];c=0;for(d=k.length;c<d;c++){var f=new Rb(this,k[c]);this.K.push(f)}this.va.length=k.length}}function s(){A++;w.length===A&&w.push(new Sb);return w[A]}function f(a,b){this.ja=a;this.cc=a.cc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Zc=null;this.Ld=0;this.get=
null;this.Xm=0;this.Va=null;this.key=0;this.object=null;this.index=0;this.Gh=this.$e=this.Gh=this.$e=this.hn=this.Ee=this.Hh=null;this.Cc=!1;var c,d,k;switch(b[0]){case 0:case 7:this.Zc=new Tb(this,b[1]);this.Ld=0;this.get=this.xs;break;case 1:this.Zc=new Tb(this,b[1]);this.Ld=0;this.get=this.ys;break;case 5:this.Zc=new Tb(this,b[1]);this.Ld=0;this.get=this.Cs;break;case 3:case 8:this.Xm=b[1];this.get=this.vs;break;case 6:this.Va=this.b.il[b[1]];this.get=this.Ds;break;case 9:this.key=b[1];this.get=
this.Bs;break;case 4:this.object=this.b.m[b[1]];this.get=this.Es;this.cc.Lm(this.object);this.ja instanceof Qb?this.cc.pj():this.cc.parent&&this.cc.parent.pj();break;case 10:this.index=b[1];a.type.A?(this.get=this.zs,this.Cc=!0):this.get=this.As;break;case 11:this.Hh=b[1];this.Ee=null;this.get=this.ws;break;case 2:case 12:this.hn=b[1];this.get=this.us;break;case 13:for(this.get=this.Fs,this.$e=[],this.Gh=[],c=1,d=b.length;c<d;c++)k=new Rb(this.ja,b[c]),this.$e.push(k),this.Gh.push(0)}}function h(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.name=c[1];this.Jj=c[2];this.wi=c[3];this.Lg=!!c[4];this.Bi=!!c[5];this.O=c[6];this.b.eg[this.O.toString()]=this;this.data=this.wi;this.parent?(this.Ue=this.Lg||this.Bi?-1:this.b.Zt++,this.b.Mq.push(this)):(this.Ue=-1,this.b.Tj.push(this))}function t(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.Dg=null;this.Ls=c[1];this.Ta=!0}function k(){this.kp=[];this.reset(null)}var m=[];r.prototype.toString=function(){return this.name};
r.prototype.An=function(a,b,c){switch(a[0]){case 0:a=new Ub(this,b,a);if(a.Lc)for(c.push(a),c=0,b=a.hb.length;c<b;c++)a.hb[c].trigger&&this.Bn(a,c);else a.Jn()?this.Bn(a,0):c.push(a);break;case 1:a=new Lb(this,b,a);c.push(a);break;case 2:a=new Vb(this,b,a),c.push(a)}};r.prototype.Ca=function(){var a,b;a=0;for(b=this.be.length;a<b;a++)this.be[a].Ca(a<b-1&&this.be[a+1].Ci)};r.prototype.km=function(){this.mk.length=0;this.Wj.length=0;this.Km(this);this.Wj.length=0};r.prototype.Km=function(a){var b,c,
d,k,f=a.mk,m=a.Wj,h=this.yn.Tc();b=0;for(c=h.length;b<c;++b)d=h[b],k=d.Dg,!d.Ta||a===k||-1<m.indexOf(k)||(m.push(k),k.Km(a),f.push(k))};r.prototype.Pa=function(a){this.b.Cv||(this.Qk=!0,a||(this.b.al=!0));var b,c;b=0;for(c=this.be.length;b<c;b++){var d=this.be[b];d.Pa();this.b.fk(d.la);this.b.ee&&this.b.fb()}a||(this.b.al=!1)};r.prototype.Bn=function(a,b){a.Lc||this.b.Fj.push(a);var c,d,k=a.hb[b],f;f=k.type?k.type.name:"system";var m=(c=k.en)?this.gn:this.rp;m[f]||(m[f]=[]);f=m[f];m=k.ab;if(c){if(k.K.length&&
(k=k.K[0],1===k.type&&2===k.Zc.type)){k=k.Zc.value.toLowerCase();c=0;for(d=f.length;c<d;c++)if(f[c].method==m){c=f[c].tg;c[k]?c[k].push([a,b]):c[k]=[[a,b]];return}c={};c[k]=[[a,b]];f.push({method:m,tg:c})}}else{c=0;for(d=f.length;c<d;c++)if(f[c].method==m){f[c].tg.push([a,b]);return}gc&&m===gc.prototype.j.ef?f.unshift({method:m,tg:[[a,b]]}):f.push({method:m,tg:[[a,b]]})}};Bb=r;l.prototype.Pk=function(){return this.fa?this.type.c.length:this.c.length};l.prototype.qc=function(){return this.fa?this.type.c:
this.c};l.prototype.ph=function(a){a&&(a.b.mb().Ob.Lc?(this.fa&&(this.c.length=0,xa(this.P,a.type.c),this.fa=!1),a=this.P.indexOf(a),-1!==a&&(this.c.push(this.P[a]),this.P.splice(a,1))):(this.fa=!1,this.c.length=1,this.c[0]=a))};jb=l;window._c2hh_="028182FC3C1790C453899C06084DBCA3F631EAD1";c.prototype.Ca=function(a){var b,c=this.parent;if(this.group)for(this.Cj=!0;c;){if(!c.group){this.Cj=!1;break}c=c.parent}this.gm=!this.Jn()&&(!this.parent||this.parent.group&&this.parent.Cj);this.wn=!!a;this.ne=
this.la.slice(0);for(c=this.parent;c;){a=0;for(b=c.la.length;a<b;a++)this.Jq(c.la[a]);c=c.parent}this.la=d(this.la);this.ne=d(this.ne);a=0;for(b=this.hb.length;a<b;a++)this.hb[a].Ca();a=0;for(b=this.Dc.length;a<b;a++)this.Dc[a].Ca();a=0;for(b=this.Bc.length;a<b;a++)this.Bc[a].Ca(a<b-1&&this.Bc[a+1].Ci)};c.prototype.Xo=function(a){if(this.Ag!==!!a){this.Ag=!!a;var b;a=0;for(b=this.Uh.length;a<b;++a)this.Uh[a].xp();0<b&&this.b.Y.De&&this.b.Y.De.km()}};c.prototype.Lm=function(b){a(b,this.la)};c.prototype.Jq=
function(b){a(b,this.ne)};c.prototype.pj=function(){this.hp=!0;this.parent&&this.parent.pj()};c.prototype.Jn=function(){return this.hb.length?this.hb[0].trigger:!1};c.prototype.Pa=function(){var a,b=!1,c,d=this.b,k=this.b.mb();k.Ob=this;var f=this.hb;this.Ci||(k.qk=!1);if(this.Lc){0===f.length&&(b=!0);k.yb=0;for(a=f.length;k.yb<a;k.yb++)f[k.yb].trigger||(c=f[k.yb].Pa())&&(b=!0);(k.Qe=b)&&this.Pl()}else{k.yb=0;for(a=f.length;k.yb<a;k.yb++)if(c=f[k.yb].Pa(),!c){k.Qe=!1;this.gm&&d.ee&&d.fb();return}k.Qe=
!0;this.Pl()}this.wr(k)};c.prototype.wr=function(a){a.Qe&&this.wn&&(a.qk=!0);this.gm&&this.b.ee&&this.b.fb()};c.prototype.Ot=function(a){this.b.mb().Ob=this;this.hb[a].Pa()&&(this.Pl(),this.b.mb().Qe=!0)};c.prototype.Pl=function(){var a=this.b.mb(),b;a.Kb=0;for(b=this.Dc.length;a.Kb<b;a.Kb++)if(this.Dc[a.Kb].Pa())return;this.To()};c.prototype.Mt=function(){var a=this.b.mb(),b;for(b=this.Dc.length;a.Kb<b;a.Kb++)if(this.Dc[a.Kb].Pa())return;this.To()};c.prototype.To=function(){if(this.Bc.length){var a,
b,c,d,k=this.Bc.length-1;this.b.Jl(this);if(this.hp)for(a=0,b=this.Bc.length;a<b;a++)c=this.Bc[a],(d=!this.Cj||!this.group&&a<k)&&this.b.Il(c.la),c.Pa(),d?this.b.Nf(c.la):this.b.fk(c.la);else for(a=0,b=this.Bc.length;a<b;a++)this.Bc[a].Pa();this.b.Lo()}};c.prototype.Pt=function(){var a=this.b.mb();a.Ob=this;var b=!1,c;a.yb=0;for(c=this.hb.length;a.yb<c;a.yb++)if(this.hb[a.yb].Pa())b=!0;else if(!this.Lc)return!1;return this.Lc?b:!0};c.prototype.Ss=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=
b;--b)if(this.hb[b].type===a.type)return!1;return!0};Ub=c;b.prototype.Ca=function(){var a,b,c;a=0;for(b=this.K.length;a<b;a++)c=this.K[a],c.Ca(),c.Cc&&(this.gg=!0)};b.prototype.Rt=function(){return!0};b.prototype.Rl=function(){var a,b;a=0;for(b=this.K.length;a<b;a++)this.va[a]=this.K[a].get();return Ra(this.ab.apply(this.b.gd,this.va),this.rf)};b.prototype.Qt=function(){var a,b;a=0;for(b=this.K.length;a<b;a++)this.va[a]=this.K[a].get();a=this.ab.apply(this.we?this.we:this.type,this.va);this.type.nd();
return a};b.prototype.Ql=function(){var a,b,c,d,k,f,m,h,g=this.type,l=g.ba(),n=this.cc.Lc&&!this.trigger;b=0;var t=g.Jc,s=g.A,w=g.ud,x=this.Fc,r=-1<x,A=this.gg,D=this.K,E=this.va,M=this.rf,C=this.ab,H;if(A)for(b=0,k=D.length;b<k;++b)f=D[b],f.Cc||(E[b]=f.get(0));else for(b=0,k=D.length;b<k;++b)E[b]=D[b].get(0);if(l.fa){l.c.length=0;l.P.length=0;H=g.c;a=0;for(d=H.length;a<d;++a){h=H[a];if(A)for(b=0,k=D.length;b<k;++b)f=D[b],f.Cc&&(E[b]=f.get(a));r?(b=0,s&&(b=h.type.mf[w]),b=C.apply(h.F[x+b],E)):b=C.apply(h,
E);(m=Ra(b,M))?l.c.push(h):n&&l.P.push(h)}g.finish&&g.finish(!0);l.fa=!1;g.nd();return l.Pk()}c=0;H=(m=n&&!this.cc.Ss(this))?l.P:l.c;var G=!1;a=0;for(d=H.length;a<d;++a){h=H[a];if(A)for(b=0,k=D.length;b<k;++b)f=D[b],f.Cc&&(E[b]=f.get(a));r?(b=0,s&&(b=h.type.mf[w]),b=C.apply(h.F[x+b],E)):b=C.apply(h,E);if(Ra(b,M))if(G=!0,m){if(l.c.push(h),t)for(b=0,k=h.siblings.length;b<k;b++)f=h.siblings[b],f.type.ba().c.push(f)}else{H[c]=h;if(t)for(b=0,k=h.siblings.length;b<k;b++)f=h.siblings[b],f.type.ba().c[c]=
f;c++}else if(m){H[c]=h;if(t)for(b=0,k=h.siblings.length;b<k;b++)f=h.siblings[b],f.type.ba().P[c]=f;c++}else if(n&&(l.P.push(h),t))for(b=0,k=h.siblings.length;b<k;b++)f=h.siblings[b],f.type.ba().P.push(f)}H.length=c;if(t)for(s=g.Nb,a=0,d=s.length;a<d;a++)h=s[a].ba(),m?h.P.length=c:h.c.length=c;c=G;if(m&&!G)for(a=0,d=l.c.length;a<d;a++){h=l.c[a];if(A)for(b=0,k=D.length;b<k;b++)f=D[b],f.Cc&&(E[b]=f.get(a));b=r?C.apply(h.F[x],E):C.apply(h,E);if(Ra(b,M)){G=!0;break}}g.finish&&g.finish(c||n);return n?
G:l.Pk()};Pb=b;x.prototype.Ca=function(){var a,b,c;a=0;for(b=this.K.length;a<b;a++)c=this.K[a],c.Ca(),c.Cc&&(this.gg=!0)};x.prototype.Rl=function(){var a=this.b,b,c,d=this.K,k=this.va;b=0;for(c=d.length;b<c;++b)k[b]=d[b].get();return this.ab.apply(a.gd,k)};x.prototype.Ql=function(){var a=this.type,b=this.Fc,c=a.ud,d=this.gg,k=this.K,f=this.va,m=this.ab,h=a.ba().qc(),a=a.A,g=-1<b,l,n,t,s,w,x;if(d)for(n=0,s=k.length;n<s;++n)w=k[n],w.Cc||(f[n]=w.get(0));else for(n=0,s=k.length;n<s;++n)f[n]=k[n].get(0);
l=0;for(t=h.length;l<t;++l){x=h[l];if(d)for(n=0,s=k.length;n<s;++n)w=k[n],w.Cc&&(f[n]=w.get(l));g?(n=0,a&&(n=x.type.mf[c]),m.apply(x.F[b+n],f)):m.apply(x,f)}return!1};Qb=x;var w=[],A=-1;f.prototype.Ca=function(){var a,b;if(11===this.type)this.Ee=this.b.pn(this.Hh,this.cc.parent);else if(13===this.type)for(a=0,b=this.$e.length;a<b;a++)this.$e[a].Ca();this.Zc&&this.Zc.Ca()};f.prototype.dt=function(a){this.Cc||!a||a.Ba.qj||(this.Cc=!0)};f.prototype.Zo=function(){this.Cc=!0};f.prototype.xs=function(a){this.Ld=
a||0;a=s();this.Zc.get(a);A--;return a.data};f.prototype.ys=function(a){this.Ld=a||0;a=s();this.Zc.get(a);A--;return N(a.data)?a.data:""};f.prototype.Es=function(){return this.object};f.prototype.vs=function(){return this.Xm};f.prototype.Cs=function(a){this.Ld=a||0;a=s();this.Zc.get(a);A--;return a.La()?this.b.wd(a.data):this.b.wg(a.data)};f.prototype.Ds=function(){return this.Va};f.prototype.Bs=function(){return this.key};f.prototype.As=function(){return this.index};f.prototype.zs=function(a){a=
a||0;var b=this.ja.type,c=null,c=b.ba(),d=c.qc();if(d.length)c=d[a%d.length].type;else if(c.P.length)c=c.P[a%c.P.length].type;else if(b.c.length)c=b.c[a%b.c.length].type;else return 0;return this.index+c.gi[b.ud]};f.prototype.ws=function(){return this.Ee};f.prototype.us=function(){return this.hn};f.prototype.Fs=function(){var a,b;a=0;for(b=this.$e.length;a<b;a++)this.Gh[a]=this.$e[a].get();return this.Gh};Rb=f;h.prototype.Ca=function(){this.la=d(this.la)};h.prototype.Ze=function(a){var b=this.b.nn();
this.parent&&!this.Lg&&b?(this.Ue>=b.length&&(b.length=this.Ue+1),b[this.Ue]=a):this.data=a};h.prototype.yg=function(){var a=this.b.nn();return!this.parent||this.Lg||!a||this.Bi?this.data:this.Ue>=a.length||"undefined"===typeof a[this.Ue]?this.wi:a[this.Ue]};h.prototype.Pa=function(){!this.parent||this.Lg||this.Bi||this.Ze(this.wi)};Lb=h;t.prototype.toString=function(){return"include:"+this.Dg.toString()};t.prototype.Ca=function(){this.Dg=this.b.sk[this.Ls];this.sheet.yn.add(this);this.la=d(this.la);
for(var a=this.parent;a;)a.group&&a.Uh.push(this),a=a.parent;this.xp()};t.prototype.Pa=function(){this.parent&&this.b.rh(this.b.m);this.Dg.Qk||this.Dg.Pa(!0);this.parent&&this.b.Nf(this.b.m)};t.prototype.xp=function(){for(var a=this.parent;a;){if(a.group&&!a.Ag){this.Ta=!1;return}a=a.parent}this.Ta=!0};Vb=t;k.prototype.reset=function(a){this.Ob=a;this.Kb=this.yb=0;this.kp.length=0;this.qk=this.Qe=!1};Kb=k})();
(function(){function g(a,b){this.ja=a;this.b=a.b;this.type=b[0];this.get=[this.Mr,this.Ir,this.Vr,this.Yr,this.Br,this.Wr,this.Qr,this.Fr,this.Pr,this.Ur,this.Cr,this.Tr,this.Gr,this.Rr,this.Nr,this.Or,this.Jr,this.Kr,this.Er,this.Xr,this.Sr,this.Lr,this.Dr,this.Hr][this.type];var c=null;this.Ed=this.K=this.va=this.ab=this.Bj=this.Ya=this.first=this.value=null;this.Fc=-1;this.fe=null;this.Cp=-1;this.Ee=this.Hh=null;this.Pf=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new Tb(a,b[1]);break;case 18:this.first=new Tb(a,b[1]);this.Ya=new Tb(a,b[2]);this.Bj=new Tb(a,b[3]);break;case 19:this.ab=this.b.Rd(b[1]);this.ab!==W.prototype.Qb.random&&this.ab!==W.prototype.Qb.Uq||this.ja.Zo();this.va=[];this.K=[];3===b.length?(c=b[2],this.va.length=c.length+1):this.va.length=1;break;case 20:this.Ed=this.b.m[b[1]];this.Fc=-1;this.ab=this.b.Rd(b[2]);this.Pf=b[3];Xb.Function&&this.ab===Xb.Function.prototype.Qb.su&&this.ja.Zo();this.fe=b[4]?new Tb(a,b[4]):null;this.va=[];this.K=
[];6===b.length?(c=b[5],this.va.length=c.length+1):this.va.length=1;break;case 21:this.Ed=this.b.m[b[1]];this.Pf=b[2];this.fe=b[3]?new Tb(a,b[3]):null;this.Cp=b[4];break;case 22:this.Ed=this.b.m[b[1]];this.Ed.mi(b[2]);this.Fc=this.Ed.Dk(b[2]);this.ab=this.b.Rd(b[3]);this.Pf=b[4];this.fe=b[5]?new Tb(a,b[5]):null;this.va=[];this.K=[];7===b.length?(c=b[6],this.va.length=c.length+1):this.va.length=1;break;case 23:this.Hh=b[1],this.Ee=null}this.ja.dt(this.Ed);4<=this.type&&17>=this.type&&(this.first=new Tb(a,
b[1]),this.Ya=new Tb(a,b[2]));if(c){var d,f;d=0;for(f=c.length;d<f;d++)this.K.push(new Tb(a,c[d]))}}function n(){++c;l.length===c&&l.push(new Sb);return l[c]}function d(a,b,c){var d,f;d=0;for(f=a.length;d<f;++d)a[d].get(c),b[d+1]=c.data}function r(a,b){this.type=a||V.df;this.data=b||0;this.Ve=null;this.type==V.df&&(this.data=Math.floor(this.data))}g.prototype.Ca=function(){23===this.type&&(this.Ee=this.ja.b.pn(this.Hh,this.ja.cc.parent));this.first&&this.first.Ca();this.Ya&&this.Ya.Ca();this.Bj&&
this.Bj.Ca();this.fe&&this.fe.Ca();if(this.K){var a,b;a=0;for(b=this.K.length;a<b;a++)this.K[a].Ca()}};var l=[],c=-1;g.prototype.Xr=function(a){var b=this.K,g=this.va;g[0]=a;a=n();d(b,g,a);--c;this.ab.apply(this.b.gd,g)};g.prototype.Sr=function(a){var b=this.Ed,g=this.va,l=this.K,f=this.fe,h=this.ab,t=this.ja.Ld,k=b.ba(),m=k.qc();if(!m.length)if(k.P.length)m=k.P;else{this.Pf?a.Yb(""):a.ca(0);return}g[0]=a;a.Ve=b;a=n();d(l,g,a);f&&(f.get(a),a.La()&&(t=a.data,m=b.c));--c;b=m.length;if(t>=b||t<=-b)t%=
b;0>t&&(t+=b);h.apply(m[t],g)};g.prototype.Dr=function(a){var b=this.Ed,g=this.va,l=this.K,f=this.fe,h=this.Fc,t=this.ab,k=this.ja.Ld,m=b.ba(),w=m.qc();if(!w.length)if(m.P.length)w=m.P;else{this.Pf?a.Yb(""):a.ca(0);return}g[0]=a;a.Ve=b;a=n();d(l,g,a);f&&(f.get(a),a.La()&&(k=a.data,w=b.c));--c;l=w.length;if(k>=l||k<=-l)k%=l;0>k&&(k+=l);k=w[k];w=0;b.A&&(w=k.type.mf[b.ud]);t.apply(k.F[h+w],g)};g.prototype.Lr=function(a){var b=this.fe,d=this.Ed,g=this.Cp,f=this.ja.Ld,h=d.ba(),l=h.qc();if(!l.length)if(h.P.length)l=
h.P;else{this.Pf?a.Yb(""):a.ca(0);return}if(b){h=n();b.get(h);if(h.La()){f=h.data;d=d.c;f%=d.length;0>f&&(f+=d.length);g=d[f].Ka[g];N(g)?a.Yb(g):a.q(g);--c;return}--c}b=l.length;if(f>=b||f<=-b)f%=b;0>f&&(f+=b);f=l[f];l=0;d.A&&(l=f.type.gi[d.ud]);g=f.Ka[g+l];N(g)?a.Yb(g):a.q(g)};g.prototype.Mr=function(a){a.type=V.df;a.data=this.value};g.prototype.Ir=function(a){a.type=V.cf;a.data=this.value};g.prototype.Vr=function(a){a.type=V.String;a.data=this.value};g.prototype.Yr=function(a){this.first.get(a);
a.La()&&(a.data=-a.data)};g.prototype.Br=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.La()&&b.La()&&(a.data+=b.data,b.wf()&&a.Ff());--c};g.prototype.Wr=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.La()&&b.La()&&(a.data-=b.data,b.wf()&&a.Ff());--c};g.prototype.Qr=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.La()&&b.La()&&(a.data*=b.data,b.wf()&&a.Ff());--c};g.prototype.Fr=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.La()&&b.La()&&(a.data/=b.data,a.Ff());
--c};g.prototype.Pr=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.La()&&b.La()&&(a.data%=b.data,b.wf()&&a.Ff());--c};g.prototype.Ur=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.La()&&b.La()&&(a.data=Math.pow(a.data,b.data),b.wf()&&a.Ff());--c};g.prototype.Cr=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.La()?b.Di()?a.Yb(a.data.toString()+b.data):a.data&&b.data?a.ca(1):a.ca(0):a.Di()&&(a.data=b.Di()?a.data+b.data:a.data+(Math.round(1E10*b.data)/1E10).toString());--c};
g.prototype.Tr=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.La()&&b.La()&&(a.data||b.data?a.ca(1):a.ca(0));--c};g.prototype.Er=function(a){this.first.get(a);a.data?this.Ya.get(a):this.Bj.get(a)};g.prototype.Gr=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.ca(a.data===b.data?1:0);--c};g.prototype.Rr=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.ca(a.data!==b.data?1:0);--c};g.prototype.Nr=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.ca(a.data<b.data?1:0);
--c};g.prototype.Or=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.ca(a.data<=b.data?1:0);--c};g.prototype.Jr=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.ca(a.data>b.data?1:0);--c};g.prototype.Kr=function(a){this.first.get(a);var b=n();this.Ya.get(b);a.ca(a.data>=b.data?1:0);--c};g.prototype.Hr=function(a){var b=this.Ee.yg();ha(b)?a.q(b):a.Yb(b)};Tb=g;r.prototype.wf=function(){return this.type===V.cf};r.prototype.La=function(){return this.type===V.df||this.type===V.cf};r.prototype.Di=
function(){return this.type===V.String};r.prototype.Ff=function(){this.wf()||(this.Di()&&(this.data=parseFloat(this.data)),this.type=V.cf)};r.prototype.ca=function(a){this.type=V.df;this.data=Math.floor(a)};r.prototype.q=function(a){this.type=V.cf;this.data=a};r.prototype.Yb=function(a){this.type=V.String;this.data=a};r.prototype.Yt=function(a){ha(a)?(this.type=V.cf,this.data=a):N(a)?(this.type=V.String,this.data=a.toString()):(this.type=V.df,this.data=0)};Sb=r;V={df:0,cf:1,String:2}})();
function W(g){this.b=g;this.Jb=[]}W.prototype.Wb=function(){var g={},n,d,r,l,c,a,b,x;g.waits=[];var s=g.waits,f;n=0;for(d=this.Jb.length;n<d;n++){a=this.Jb[n];f={t:a.time,st:a.gp,s:a.Wl,ev:a.lf.O,sm:[],sols:{}};a.lf.Dc[a.Kb]&&(f.act=a.lf.Dc[a.Kb].O);r=0;for(l=a.la.length;r<l;r++)f.sm.push(a.la[r].O);for(c in a.rb)if(a.rb.hasOwnProperty(c)){b=this.b.m[parseInt(c,10)];x={sa:a.rb[c].mj,insts:[]};r=0;for(l=a.rb[c].xd.length;r<l;r++)x.insts.push(a.rb[c].xd[r].uid);f.sols[b.O.toString()]=x}s.push(f)}return g};
W.prototype.xc=function(g){g=g.waits;var n,d,r,l,c,a,b,x,s,f,h;n=this.Jb.length=0;for(d=g.length;n<d;n++)if(a=g[n],x=this.b.Qm[a.ev.toString()]){s=-1;r=0;for(l=x.Dc.length;r<l;r++)if(x.Dc[r].O===a.act){s=r;break}if(-1!==s){b={rb:{},la:[],nk:!1};b.time=a.t;b.gp=a.st||"";b.Wl=!!a.s;b.lf=x;b.Kb=s;r=0;for(l=a.sm.length;r<l;r++)(x=this.b.qi(a.sm[r]))&&b.la.push(x);for(c in a.sols)if(a.sols.hasOwnProperty(c)&&(x=this.b.qi(parseInt(c,10)))){s=a.sols[c];f={mj:s.sa,xd:[]};r=0;for(l=s.insts.length;r<l;r++)(h=
this.b.pi(s.insts[r]))&&f.xd.push(h);b.rb[x.index.toString()]=f}this.Jb.push(b)}}};
(function(){function g(){}function n(){}function d(){}var r=W.prototype;g.prototype.zm=function(){return!0};g.prototype.nq=function(){return!0};g.prototype.Cq=function(){var a=this.b.ni().ua;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var b=a.TriggerOnce_lastTick,c=this.b.Yf;a.TriggerOnce_lastTick=c;return this.b.hl||b!==c-1};g.prototype.Jp=function(a,b,c){return Wb(a.yg(),b,c)};g.prototype.Lp=function(){var a=this.b.mb();return a.qk?!1:!a.Qe};g.prototype.Am=function(){return!0};
g.prototype.aq=function(){return!0};g.prototype.Qj=function(){return!0};g.prototype.oq=function(){return!0};g.prototype.Oj=function(){return!0};g.prototype.Fp=function(a,b,c){return Ia(U(a),U(c))<=U(b)};g.prototype.Op=function(a,b){return Ka(U(a),U(b))};g.prototype.Mp=function(a,b,c){a=Fa(a);b=Fa(b);c=Fa(c);return Ka(c,b)?Ka(a,b)&&!Ka(a,c):!(!Ka(a,b)&&Ka(a,c))};r.j=new g;n.prototype.Wp=function(a){if(!this.b.zf&&!this.b.xe){var b=this.b.Tb.indexOf(this.b.Y);if(!a||0!==b)if(a||b!==this.b.Tb.length-
1)this.b.xe=this.b.Tb[b+(a?-1:1)]}};n.prototype.Aq=function(a,b){0===a.Jj?ha(b)?a.Ze(b):a.Ze(parseFloat(b)):1===a.Jj&&a.Ze(b.toString())};n.prototype.Ep=function(a,b){0===a.Jj?ha(b)?a.Ze(a.yg()+b):a.Ze(a.yg()+parseFloat(b)):1===a.Jj&&a.Ze(a.yg()+b.toString())};var l=[],c=[];n.prototype.Dq=function(a){if(!(0>a)){var b,d,g,f=this.b.mb(),h;h=l.length?l.pop():{rb:{},la:[]};h.nk=!1;h.time=this.b.hc.Z+a;h.gp="";h.Wl=!1;h.lf=f.Ob;h.Kb=f.Kb+1;a=0;for(b=this.b.m.length;a<b;a++)g=this.b.m[a],d=g.ba(),d.fa&&
-1===f.Ob.la.indexOf(g)||(h.la.push(g),g=void 0,g=c.length?c.pop():{xd:[]},g.mj=!1,g.mj=d.fa,xa(g.xd,d.c),h.rb[a.toString()]=g);this.Jb.push(h);return!0}};n.prototype.tq=function(){var a,b,c;a=0;for(b=this.b.Tj.length;a<b;a++)c=this.b.Tj[a],c.data=c.wi};n.prototype.uq=function(){if(!this.b.zf&&!this.b.xe&&this.b.Y){this.b.xe=this.b.Y;var a,b,c;a=0;for(b=this.b.Ud.length;a<b;a++)c=this.b.Ud[a],c.Xo(c.xi)}};n.prototype.vq=function(a){this.b.nj=a};n.prototype.Vp=function(a){this.b.Tg=a};r.ka=new n;d.prototype["int"]=
function(a,b){N(b)?(a.ca(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.ca(b)};d.prototype["float"]=function(a,b){N(b)?(a.q(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.q(b)};d.prototype.random=function(a,b,c){void 0===c?a.q(Math.random()*b):a.q(Math.random()*(c-b)+b)};d.prototype.sqrt=function(a,b){a.q(Math.sqrt(b))};d.prototype.abs=function(a,b){a.q(Math.abs(b))};d.prototype.round=function(a,b){a.ca(Math.round(b))};d.prototype.floor=function(a,b){a.ca(Math.floor(b))};d.prototype.ceil=function(a,b){a.ca(Math.ceil(b))};
d.prototype.sin=function(a,b){a.q(Math.sin(U(b)))};d.prototype.cos=function(a,b){a.q(Math.cos(U(b)))};d.prototype.tan=function(a,b){a.q(Math.tan(U(b)))};d.prototype.asin=function(a,b){a.q(Ba(Math.asin(b)))};d.prototype.acos=function(a,b){a.q(Ba(Math.acos(b)))};d.prototype.atan=function(a,b){a.q(Ba(Math.atan(b)))};d.prototype.exp=function(a,b){a.q(Math.exp(b))};d.prototype.log10=function(a,b){a.q(Math.log(b)/Math.LN10)};d.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,
d,f;c=2;for(d=arguments.length;c<d;c++)f=arguments[c],"number"===typeof f&&b<f&&(b=f);a.q(b)};d.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,d,f;c=2;for(d=arguments.length;c<d;c++)f=arguments[c],"number"===typeof f&&b>f&&(b=f);a.q(b)};d.prototype.Ce=function(a){a.q(this.b.Ce)};d.prototype.Zf=function(a){a.q(this.b.Zf)};d.prototype.time=function(a){a.q(this.b.hc.Z)};d.prototype.Yf=function(a){a.ca(this.b.Yf)};d.prototype.Ui=function(a){a.ca(this.b.Ui)};d.prototype.zk=
function(a){a.ca(this.b.zk)};d.prototype.i=function(a,b,c,d,f){a.q(Ba(Ha(b,c,d,f)))};d.prototype.find=function(a,b,c){N(b)&&N(c)?a.ca(b.search(new RegExp(Za(c),"i"))):a.ca(-1)};d.prototype.left=function(a,b,c){a.Yb(N(b)?b.substr(0,c):"")};d.prototype.right=function(a,b,c){a.Yb(N(b)?b.substr(b.length-c):"")};d.prototype.replace=function(a,b,c,d){N(b)&&N(c)&&N(d)?a.Yb(b.replace(new RegExp(Za(c),"gi"),d)):a.Yb(N(b)?b:"")};d.prototype.trim=function(a,b){a.Yb(N(b)?b.trim():"")};d.prototype.Uq=function(a){var b=
Q(Math.random()*(arguments.length-1));a.Yt(arguments[b+1])};d.prototype.hk=function(a){a.q(this.b.hk/1E3)};d.prototype.Oi=function(a){a.q(this.b.Oi)};r.Qb=new d;r.Nt=function(){var a,b,d,g,f,h,n=this.b.mb();a=0;for(d=this.Jb.length;a<d;a++){g=this.Jb[a];if(-1===g.time){if(!g.Wl)continue}else if(g.time>this.b.hc.Z)continue;n.Ob=g.lf;n.Kb=g.Kb;n.yb=0;for(b in g.rb)g.rb.hasOwnProperty(b)&&(f=this.b.m[parseInt(b,10)].ba(),h=g.rb[b],f.fa=h.mj,xa(f.c,h.xd),f=h,f.xd.length=0,c.push(f));g.lf.Mt();this.b.fk(g.la);
g.nk=!0}b=a=0;for(d=this.Jb.length;a<d;a++)g=this.Jb[a],this.Jb[b]=g,g.nk?(Ta(g.rb),g.la.length=0,l.push(g)):b++;this.Jb.length=b}})();
(function(){ib=function(g,d){var r=g[1],l=g[3],c=g[4],a=g[5],b=g[6],x=g[7],s=g[8];d.j||(d.j={});d.ka||(d.ka={});d.Qb||(d.Qb={});var f=d.j,h=d.ka,t=d.Qb;l&&(f.xu=function(a,b){return Wb(this.x,a,b)},f.yu=function(a,b){return Wb(this.y,a,b)},f.Eu=function(){var a=this.d;this.ma();var b=this.ya;return!(b.right<a.wa||b.bottom<a.xa||b.left>a.Ia||b.top>a.Ha)},f.Fu=function(){this.ma();var a=this.ya,b=this.b.Y;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},f.Qu=function(a,b,c){var d=this.ba(),
f=d.qc();if(!f.length)return!1;var e=f[0],g=e,h=Qa(e.x,e.y,b,c),l,n,t;l=1;for(n=f.length;l<n;l++)if(e=f[l],t=Qa(e.x,e.y,b,c),0===a&&t<h||1===a&&t>h)h=t,g=e;d.ph(g);return!0},h.jv=function(a){this.x!==a&&(this.x=a,this.qa())},h.kv=function(a){this.y!==a&&(this.y=a,this.qa())},h.zq=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.qa()},h.dv=function(a,b){var c=a.ps(this);if(c){var d;c.Hk?(d=c.Hk(b,!0),c=c.Hk(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.qa()}},
h.Ju=function(a){0!==a&&(this.x+=Math.cos(this.i)*a,this.y+=Math.sin(this.i)*a,this.qa())},h.Iu=function(a,b){0!==b&&(this.x+=Math.cos(U(a))*b,this.y+=Math.sin(U(a))*b,this.qa())},t.Fm=function(a){a.q(this.x)},t.Gm=function(a){a.q(this.y)},t.Ce=function(a){a.q(this.b.Ek(this))});c&&(f.wu=function(a,b){return Wb(this.width,a,b)},f.tu=function(a,b){return Wb(this.height,a,b)},h.iv=function(a){this.width!==a&&(this.width=a,this.qa())},h.bv=function(a){this.height!==a&&(this.height=a,this.qa())},h.gv=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.qa()},t.ov=function(a){a.q(this.width)},t.Au=function(a){a.q(this.height)},t.pu=function(a){this.ma();a.q(this.ya.left)},t.ru=function(a){this.ma();a.q(this.ya.top)},t.qu=function(a){this.ma();a.q(this.ya.right)},t.ou=function(a){this.ma();a.q(this.ya.bottom)});a&&(f.Fp=function(a,b){return Ia(this.i,U(b))<=U(a)},f.Op=function(a){return Ka(this.i,U(a))},f.Mp=function(a,b){var c=Fa(a),d=Fa(b),f=Da(this.i);return Ka(d,
c)?Ka(f,c)&&!Ka(f,d):!(!Ka(f,c)&&Ka(f,d))},h.Yu=function(a){a=U(Ca(a));isNaN(a)||this.i===a||(this.i=a,this.qa())},h.Uu=function(a){0===a||isNaN(a)||(this.i+=U(a),this.i=Da(this.i),this.qa())},h.Vu=function(a){0===a||isNaN(a)||(this.i-=U(a),this.i=Da(this.i),this.qa())},h.Wu=function(a,b){var c=Ja(this.i,U(b),U(a));isNaN(c)||this.i===c||(this.i=c,this.qa())},h.Xu=function(a,b,c){a=Ja(this.i,Math.atan2(c-this.y,b-this.x),U(a));isNaN(a)||this.i===a||(this.i=a,this.qa())},h.hv=function(a,b){var c=Math.atan2(b-
this.y,a-this.x);isNaN(c)||this.i===c||(this.i=c,this.qa())},t.nu=function(a){a.q(Ea(this.i))});r||(f.uu=function(a,b,c){return Wb(this.Ka[a],b,c)},f.Cu=function(a){return this.Ka[a]},f.Ru=function(a,b){var c=this.ba(),d=c.qc();if(!d.length)return!1;var f=d[0],e=f,g=f.Ka[b],h,l,n;h=1;for(l=d.length;h<l;h++)if(f=d[h],n=f.Ka[b],0===a&&n<g||1===a&&n>g)g=n,e=f;c.ph(e);return!0},f.Pu=function(a){var b,c,d,f,e;if(this.b.ni().rf){e=this.ba();if(e.fa)for(e.fa=!1,e.c.length=0,e.P.length=0,d=this.c,b=0,c=d.length;b<
c;b++)f=d[b],f.uid===a?e.P.push(f):e.c.push(f);else{d=b=0;for(c=e.c.length;b<c;b++)f=e.c[b],e.c[d]=f,f.uid===a?e.P.push(f):d++;e.c.length=d}this.nd();return!!e.c.length}f=this.b.pi(a);if(!f)return!1;e=this.ba();if(!e.fa&&-1===e.c.indexOf(f))return!1;if(this.A)for(a=f.type.pa,b=0,c=a.length;b<c;b++){if(a[b]===this)return e.ph(f),this.nd(),!0}else if(f.type===this)return e.ph(f),this.nd(),!0;return!1},f.bq=function(){return!0},f.cq=function(){return!0},h.cv=function(a,b){var c=this.Ka;ha(c[a])?c[a]=
ha(b)?b:parseFloat(b):N(c[a])&&(c[a]=N(b)?b:b.toString())},h.mu=function(a,b){var c=this.Ka;ha(c[a])?c[a]=ha(b)?c[a]+b:c[a]+parseFloat(b):N(c[a])&&(c[a]=N(b)?c[a]+b:c[a]+b.toString())},h.lv=function(a,b){var c=this.Ka;ha(c[a])&&(c[a]=ha(b)?c[a]-b:c[a]-parseFloat(b))},h.Zu=function(a,b){this.Ka[a]=b?1:0},h.mv=function(a){this.Ka[a]=1-this.Ka[a]},h.Kp=function(){this.b.Qd(this)},h.Up||(h.Up=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Li(this,b,!0);this.ld&&this.ld();if(this.F)for(a=
0,b=this.F.length;a<b;++a)c=this.F[a],c.ld&&c.ld()}),t.zu=function(a){var b=a.Ve.c.length,c,d,f;c=0;for(d=this.b.Gc.length;c<d;c++)f=this.b.Gc[c],a.Ve.A?0<=f.type.pa.indexOf(a.Ve)&&b++:f.type===a.Ve&&b++;a.ca(b)},t.Tu=function(a){a.ca(a.Ve.ba().qc().length)},t.nv=function(a){a.ca(this.uid)},t.Bu=function(a){a.ca(this.zg())},t.Gp||(t.Gp=function(a){a.Yb(JSON.stringify(this.b.Sl(this,!0)))}));b&&(f.Sp=function(){return this.visible},h.Bq=function(a){!a!==!this.visible&&(this.visible=a,this.b.ea=!0)},
f.vu=function(a,b){return Wb(eb(100*this.opacity),a,b)},h.yq=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ea=!0)},t.Opacity=function(a){a.q(eb(100*this.opacity))});x&&(f.Du=function(a){return a?this.d===a:!1},f.Su=function(a){var b=this.ba(),c=b.qc();if(!c.length)return!1;var d=c[0],f=d,e,g;e=1;for(g=c.length;e<g;e++)if(d=c[e],0===a){if(d.d.index>f.d.index||d.d.index===f.d.index&&d.tc()>f.tc())f=d}else if(d.d.index<f.d.index||d.d.index===f.d.index&&d.tc()<f.tc())f=
d;b.ph(f);return!0},h.Mu=function(){var a=this.d,b=a.c;b.length&&b[b.length-1]===this||(a.Of(this,!1),a.ig(this,!1),this.b.ea=!0)},h.Ku=function(){var a=this.d,b=a.c;b.length&&b[0]===this||(a.Of(this,!1),a.Et(this),this.b.ea=!0)},h.Lu=function(a){a&&a!=this.d&&(this.d.Of(this,!0),this.d=a,a.ig(this,!0),this.b.ea=!0)},h.qv=function(a,b){var c=0===a;if(b){var d=b.ks(this);d&&d.uid!==this.uid&&(this.d.index!==d.d.index&&(this.d.Of(this,!0),this.d=d.d,d.d.ig(this,!0)),this.d.gt(this,d,c),this.b.ea=!0)}},
t.Hu=function(a){a.ca(this.d.so)},t.Gu=function(a){a.Yb(this.d.name)},t.pv=function(a){a.ca(this.tc())});s&&(h.$u=function(a,b){if(this.b.n){var c=this.type.Gk(b);if(!(0>c)){var d=1===a;this.Sd[c]!==d&&(this.Sd[c]=d,this.Od(),this.b.ea=!0)}}},h.av=function(a,b,c){if(this.b.n){var d=this.type.Gk(a);0>d||(a=this.type.G[d],d=this.ta[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.n.ts(a.eb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Ta&&(this.b.ea=!0))))}})};Cb=function(){this.ak=this.Ph=!0;this.type.Jh=!0;this.b.ea=
!0;var g,d,r=this.Zj;g=0;for(d=r.length;g<d;++g)r[g](this);this.d.Sc&&this.ma()};Db=function(g){g&&this.Zj.push(g)};Fb=function(){if(this.Ph){var g=this.ya,d=this.Mb;g.set(this.x,this.y,this.x+this.width,this.y+this.height);g.offset(-this.Ab*this.width,-this.Bb*this.height);this.i?(g.offset(-this.x,-this.y),d.bp(g,this.i),d.offset(this.x,this.y),d.Rm(g)):d.Tf(g);g.normalize();this.Ph=!1;this.iu()}};var g=new S(0,0,0,0);Gb=function(){if(this.d.Sc){var n=this.d.Vb,d=this.ya;g.set(n.$b(d.left),n.ac(d.top),
n.$b(d.right),n.ac(d.bottom));this.Fb.di(g)||(this.Fb.right<this.Fb.left?n.update(this,null,g):n.update(this,this.Fb,g),this.Fb.pg(g),this.d.Id=!0)}};Hb=function(){if(this.ak&&this.Xc){this.ma();var n=this.type.mg,d=this.ya;g.set(n.$b(d.left),n.ac(d.top),n.$b(d.right),n.ac(d.bottom));this.kc.di(g)||(this.kc.right<this.kc.left?n.update(this,null,g):n.update(this,this.kc,g),this.kc.pg(g),this.ak=!1)}};Eb=function(g,d){return this.ya.$a(g,d)&&this.Mb.$a(g,d)?this.V&&!this.V.vf()?(this.V.hf(this.width,
this.height,this.i),this.V.$a(g-this.x,d-this.y)):!0:!1};yb=function(){this.type.Hj();return this.Je};Ib=function(){this.d.nm();return this.Uc};Jb=function(){this.U.length=0;var g,d;g=0;for(d=this.Sd.length;g<d;g++)this.Sd[g]&&this.U.push(this.type.G[g]);this.Bp=!!this.U.length};zb=function(){return"Inst"+this.Po};lb=function(g){if(g&&g.Jc&&g.type!=this){var d,r,l;d=0;for(r=g.siblings.length;d<r;d++)if(l=g.siblings[d],l.type==this)return l}g=this.ba().qc();return g.length?g[0]:null};mb=function(g){var d=
this.ba().qc();return d.length?d[g.zg()%d.length]:null};kb=function(){if(this.Wf&&!this.A){var g,d;g=0;for(d=this.c.length;g<d;g++)this.c[g].Je=g;var r=g,l=this.b.Gc;g=0;for(d=l.length;g<d;++g)l[g].type===this&&(l[g].Je=r++);this.Wf=!1}};wb=function(g){if(g<this.c.length)return this.c[g];g-=this.c.length;var d=this.b.Gc,r,l;r=0;for(l=d.length;r<l;++r)if(d[r].type===this){if(0===g)return d[r];--g}return null};nb=function(){return this.oe[this.sd]};ob=function(){this.sd++;this.sd===this.oe.length?this.oe.push(new jb(this)):
this.oe[this.sd].fa=!0};pb=function(){this.sd++;this.sd===this.oe.length&&this.oe.push(new jb(this));var g=this.oe[this.sd],d=this.oe[this.sd-1];d.fa?g.fa=!0:(g.fa=!1,xa(g.c,d.c),xa(g.P,d.P))};rb=function(){this.sd--};sb=function(g){var d,r,l,c,a,b=0;if(!this.A)for(d=0,r=this.pa.length;d<r;d++)for(a=this.pa[d],l=0,c=a.Fa.length;l<c;l++){if(g===a.Fa[l].name)return this.ua.lastBehIndex=b,a.Fa[l];b++}d=0;for(r=this.Fa.length;d<r;d++){if(g===this.Fa[d].name)return this.ua.lastBehIndex=b,this.Fa[d];b++}return null};
tb=function(g){return this.mi(g)?this.ua.lastBehIndex:-1};ub=function(g){var d,r;d=0;for(r=this.G.length;d<r;d++)if(this.G[d].name===g)return d;return-1};vb=function(){if(this.Jc&&!this.A){var g,d,r,l,c,a,b;this.Hj();a=this.ba();var x=a.fa,s=(g=this.b.mb())&&g.Ob&&g.Ob.Lc;g=0;for(d=this.Nb.length;g<d;g++)if(c=this.Nb[g],c!==this&&(c.Hj(),b=c.ba(),b.fa=x,!x)){b.c.length=a.c.length;r=0;for(l=a.c.length;r<l;r++)b.c[r]=c.qn(a.c[r].Je);if(s)for(b.P.length=a.P.length,r=0,l=a.P.length;r<l;r++)b.P[r]=c.qn(a.P[r].Je)}}};
xb=function(){return"Type"+this.O};Wb=function(g,d,r){if("undefined"===typeof g||"undefined"===typeof r)return!1;switch(d){case 0:return g===r;case 1:return g!==r;case 2:return g<r;case 3:return g<=r;case 4:return g>r;case 5:return g>=r;default:return!1}}})();var ec={};function hc(g){this.b=g}
(function(){function g(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function n(a){a=a.toLowerCase();return R.hasOwnProperty(a)&&R[a].length?R[a][0].ec():v.destination}function d(){return v.createGain?v.createGain():v.createGainNode()}function r(a){return v.createDelay?v.createDelay(a):v.createDelayNode(a)}function l(a){a.start?a.start(0):a.noteOn(0)}function c(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function a(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function b(a,
b,c,e,f,g){this.type="filter";this.Mc=[a,b,c,e,f,g];this.R=d();this.D=d();this.D.gain.value=g;this.B=d();this.B.gain.value=1-g;this.Ga=v.createBiquadFilter();this.Ga.type="number"===typeof this.Ga.type?a:oc[a];this.Ga.frequency.value=b;this.Ga.detune&&(this.Ga.detune.value=c);this.Ga.Q.value=e;this.Ga.gain.value=f;this.R.connect(this.Ga);this.R.connect(this.B);this.Ga.connect(this.D)}function x(a,b,c){this.type="delay";this.Mc=[a,b,c];this.R=d();this.D=d();this.D.gain.value=c;this.B=d();this.B.gain.value=
1-c;this.bh=d();this.oc=r(a);this.oc.delayTime.value=a;this.bi=d();this.bi.gain.value=b;this.R.connect(this.bh);this.R.connect(this.B);this.bh.connect(this.D);this.bh.connect(this.oc);this.oc.connect(this.bi);this.bi.connect(this.bh)}function s(a,b,c,e){this.type="convolve";this.Mc=[b,c,e];this.R=d();this.D=d();this.D.gain.value=c;this.B=d();this.B.gain.value=1-c;this.ye=v.createConvolver();a&&(this.ye.normalize=b,this.ye.buffer=a);this.R.connect(this.ye);this.R.connect(this.B);this.ye.connect(this.D)}
function f(a,b,c,e,f){this.type="flanger";this.Mc=[a,b,c,e,f];this.R=d();this.B=d();this.B.gain.value=1-f/2;this.D=d();this.D.gain.value=f/2;this.hi=d();this.hi.gain.value=e;this.oc=r(a+b);this.oc.delayTime.value=a;this.Xa=v.createOscillator();this.Xa.frequency.value=c;this.Ub=d();this.Ub.gain.value=b;this.R.connect(this.oc);this.R.connect(this.B);this.oc.connect(this.D);this.oc.connect(this.hi);this.hi.connect(this.oc);this.Xa.connect(this.Ub);this.Ub.connect(this.oc.delayTime);l(this.Xa)}function h(a,
b,c,e,f,g){this.type="phaser";this.Mc=[a,b,c,e,f,g];this.R=d();this.B=d();this.B.gain.value=1-g/2;this.D=d();this.D.gain.value=g/2;this.Ga=v.createBiquadFilter();this.Ga.type="number"===typeof this.Ga.type?7:"allpass";this.Ga.frequency.value=a;this.Ga.detune&&(this.Ga.detune.value=b);this.Ga.Q.value=c;this.Xa=v.createOscillator();this.Xa.frequency.value=f;this.Ub=d();this.Ub.gain.value=e;this.R.connect(this.Ga);this.R.connect(this.B);this.Ga.connect(this.D);this.Xa.connect(this.Ub);this.Ub.connect(this.Ga.frequency);
l(this.Xa)}function t(a){this.type="gain";this.Mc=[a];this.T=d();this.T.gain.value=a}function k(a,b){this.type="tremolo";this.Mc=[a,b];this.T=d();this.T.gain.value=1-b/2;this.Xa=v.createOscillator();this.Xa.frequency.value=a;this.Ub=d();this.Ub.gain.value=b/2;this.Xa.connect(this.Ub);this.Ub.connect(this.T.gain);l(this.Xa)}function m(a,b){this.type="ringmod";this.Mc=[a,b];this.R=d();this.D=d();this.D.gain.value=b;this.B=d();this.B.gain.value=1-b;this.uh=d();this.uh.gain.value=0;this.Xa=v.createOscillator();
this.Xa.frequency.value=a;this.Xa.connect(this.uh.gain);l(this.Xa);this.R.connect(this.uh);this.R.connect(this.B);this.uh.connect(this.D)}function w(a,b,c,e,f){this.type="distortion";this.Mc=[a,b,c,e,f];this.R=d();this.gj=d();this.fj=d();this.Ut(c,Math.pow(10,e/20));this.D=d();this.D.gain.value=f;this.B=d();this.B.gain.value=1-f;this.Kj=v.createWaveShaper();this.$h=new Float32Array(65536);this.es(a,b);this.Kj.$h=this.$h;this.R.connect(this.gj);this.R.connect(this.B);this.gj.connect(this.Kj);this.Kj.connect(this.fj);
this.fj.connect(this.D)}function A(a,b,c,d,e){this.type="compressor";this.Mc=[a,b,c,d,e];this.T=v.createDynamicsCompressor();try{this.T.threshold.value=a,this.T.knee.value=b,this.T.ratio.value=c,this.T.attack.value=d,this.T.release.value=e}catch(f){}}function q(a,b){this.type="analyser";this.Mc=[a,b];this.T=v.createAnalyser();this.T.fftSize=a;this.T.smoothingTimeConstant=b;this.cs=new Float32Array(this.T.frequencyBinCount);this.ep=new Uint8Array(a);this.oh=0}function e(){this.C=null;this.Ni=0;this.pe=
[];this.sl=this.Gi=this.Fi=0}function p(a,b){this.src=a;this.I=F;this.Kc=b;this.Mm=!1;var c=this;this.ql=this.Dl=null;this.Lf=[];this.oj=0;this.um=this.vk=this.jp=this.cj=!1;1===F&&b&&(this.I=0,this.Dl=d());this.ve=this.W=null;var e;switch(this.I){case 0:this.W=new Audio;this.W.addEventListener("canplaythrough",function(){c.um=!0});1===F&&v.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.jp=!0,this.W.addEventListener("canplay",function(){c.ql||(c.ql=v.createMediaElementSource(c.W),
c.ql.connect(c.Dl))}));this.W.autoplay=!1;this.W.zv="auto";this.W.src=a;break;case 1:e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=function(){c.ve=e.response;c.Zq()};e.onerror=function(){c.vk=!0};e.send();break;case 2:this.W=!0;break;case 3:this.W=!0}}function u(a,b){var c=this;this.tag=b;this.Zb=this.$c=!0;this.src=a.src;this.buffer=a;this.I=F;this.Kc=a.Kc;this.playbackRate=1;this.gk=!0;this.wc=this.Jd=!1;this.Gb=0;this.Kg=this.xf=this.ad=!1;this.volume=1;this.Ne=
1===E&&!this.Kc||2===E;this.Gf=1;this.startTime=this.Ne?z.hc.Z:z.kd.Z;this.Aa=this.Ja=null;this.bd=!1;this.za=null;this.Co=this.Bo=this.Ao=this.zo=this.Eo=this.Do=0;this.e=null;var e=!1;1!==this.I||0!==this.buffer.I||this.buffer.jp||(this.I=0);switch(this.I){case 0:this.Kc?(this.e=a.W,e=!a.Mm,a.Mm=!0):(this.e=new Audio,this.e.autoplay=!1,this.e.src=a.W.src,e=!0);e&&this.e.addEventListener("ended",function(){B=c.tag;c.Zb=!0;z.trigger(hc.prototype.j.Nj,J)});break;case 1:this.Ja=d();this.Ja.connect(n(b));
1===this.buffer.I?a.W&&(this.e=v.createBufferSource(),this.e.buffer=a.W,this.e.connect(this.Ja)):(this.e=this.buffer.W,this.buffer.Dl.connect(this.Ja));break;case 2:this.e=new window.Media(X+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.gk=!0,c.Zb=!0,B=c.tag,z.trigger(hc.prototype.j.Nj,J))});break;case 3:this.e=!0}}function y(a,b){R.hasOwnProperty(a)?R[a].push(b):R[a]=[b];var c,d,e,f,g=v.destination;if(R.hasOwnProperty(a)&&(e=R[a],e.length))for(g=e[0].ec(),c=0,d=e.length;c<d;c++)f=
e[c],c+1===d?f.lc(v.destination):f.lc(e[c+1].ec());Ga.length=0;if(a.length)for(c=0,d=L.length;c<d;c++)e=L[c],fb(a,e.tag)&&Ga.push(e);else P&&!P.Ie()&&(Ga.length=1,Ga[0]=P);c=0;for(d=Ga.length;c<d;c++)Ga[c].It(g);ca&&qb===a&&(ca.disconnect(),ca.connect(g))}function O(){}function Y(){}var T=hc.prototype;T.gb=function(a){this.Ba=a;this.b=a.b};T.gb.prototype.ha=function(){};var z=null,J=null,B="",X="",F=0,v=null,ua=[],L=[],P=null,D=!1,E=0,M=!1,C=1,H=0,G=0,ka=1,K=1,pa=10,fa=1E4,sa=1,ca=null,qb="",Ma=!1,
Na=[],R={},oc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");b.prototype.lc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};b.prototype.remove=function(){this.R.disconnect();this.Ga.disconnect();this.D.disconnect();this.B.disconnect()};b.prototype.ec=function(){return this.R};x.prototype.lc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};x.prototype.remove=function(){this.R.disconnect();
this.bh.disconnect();this.oc.disconnect();this.bi.disconnect();this.D.disconnect();this.B.disconnect()};x.prototype.ec=function(){return this.R};s.prototype.lc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};s.prototype.remove=function(){this.R.disconnect();this.ye.disconnect();this.D.disconnect();this.B.disconnect()};s.prototype.ec=function(){return this.R};f.prototype.lc=function(a){this.B.disconnect();this.B.connect(a);this.D.disconnect();this.D.connect(a)};
f.prototype.remove=function(){this.R.disconnect();this.oc.disconnect();this.Xa.disconnect();this.Ub.disconnect();this.B.disconnect();this.D.disconnect();this.hi.disconnect()};f.prototype.ec=function(){return this.R};h.prototype.lc=function(a){this.B.disconnect();this.B.connect(a);this.D.disconnect();this.D.connect(a)};h.prototype.remove=function(){this.R.disconnect();this.Ga.disconnect();this.Xa.disconnect();this.Ub.disconnect();this.B.disconnect();this.D.disconnect()};h.prototype.ec=function(){return this.R};
t.prototype.lc=function(a){this.T.disconnect();this.T.connect(a)};t.prototype.remove=function(){this.T.disconnect()};t.prototype.ec=function(){return this.T};k.prototype.lc=function(a){this.T.disconnect();this.T.connect(a)};k.prototype.remove=function(){this.Xa.disconnect();this.Ub.disconnect();this.T.disconnect()};k.prototype.ec=function(){return this.T};m.prototype.lc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};m.prototype.remove=function(){this.Xa.disconnect();
this.uh.disconnect();this.R.disconnect();this.D.disconnect();this.B.disconnect()};m.prototype.ec=function(){return this.R};w.prototype.Ut=function(a,b){.01>a&&(a=.01);this.gj.gain.value=a;this.fj.gain.value=Math.pow(1/a,.6)*b};w.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};w.prototype.es=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),e=0,f=0;32768>f;++f)e=f/32768,e=this.shape(e,c,d),this.$h[32768+f]=e,this.$h[32768-
f-1]=-e};w.prototype.lc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};w.prototype.remove=function(){this.R.disconnect();this.gj.disconnect();this.Kj.disconnect();this.fj.disconnect();this.D.disconnect();this.B.disconnect()};w.prototype.ec=function(){return this.R};A.prototype.lc=function(a){this.T.disconnect();this.T.connect(a)};A.prototype.remove=function(){this.T.disconnect()};A.prototype.ec=function(){return this.T};q.prototype.Za=function(){this.T.getFloatFrequencyData(this.cs);
this.T.getByteTimeDomainData(this.ep);for(var a=this.T.fftSize,b=0,c=this.oh=0,d=0;b<a;b++)d=(this.ep[b]-128)/128,0>d&&(d=-d),this.oh<d&&(this.oh=d),c+=d*d;this.oh=g(this.oh);g(Math.sqrt(c/a))};q.prototype.lc=function(a){this.T.disconnect();this.T.connect(a)};q.prototype.remove=function(){this.T.disconnect()};q.prototype.ec=function(){return this.T};e.prototype.vh=function(a){if(this.C=a)this.Fi=this.C.x,this.Gi=this.C.y;this.pe.length=0};e.prototype.vi=function(){return!!this.C};e.prototype.Za=function(a){this.C&&
0!==a&&(this.sl=Ha(this.Fi,this.Gi,this.C.x,this.C.y),a=Qa(this.Fi,this.Gi,this.C.x,this.C.y)/a,4>this.pe.length||this.pe.shift(),this.pe.push(a),this.Fi=this.C.x,this.Gi=this.C.y)};e.prototype.un=function(){if(!this.pe.length)return 0;var a,b,c=0;a=0;for(b=this.pe.length;a<b;a++)c+=this.pe[a];return c/this.pe.length};e.prototype.Kk=function(){return Math.cos(this.sl)*this.un()};e.prototype.Lk=function(){return Math.sin(this.sl)*this.un()};var lc=!1;p.prototype.Zq=function(){if(!this.W&&this.ve){var a=
this;if(v.decodeAudioData)v.decodeAudioData(this.ve,function(b){a.W=b;a.ve=null;var c,d,e;if(ga(a.dj)||M)ga(a.Vh)||(c=a.Vh.ye,c.normalize=a.ro,c.buffer=b);else if(a.Lf.length){c=0;for(d=a.Lf.length;c<d;c++){b=a.Lf[c];e=new u(a,b.mp);e.Ul(!0);if("undefined"!==typeof b.uo&&(b.C=z.pi(b.uo),!b.C))continue;if(b.C){var f=La(b.C.x,b.C.y,-b.C.d.Ua(),H,G,!0),g=La(b.C.x,b.C.y,-b.C.d.Ua(),H,G,!1);e.Tl(f,g,Ba(b.C.i-b.C.d.Ua()),b.Rk,b.tl,b.xl);e.vh(b.C)}else e.Tl(b.x,b.y,b.Eq,b.Rk,b.tl,b.xl);e.play(a.nl,a.rm,
a.oj);a.cj&&e.pause();L.push(e)}a.Lf.length=0}else e=new u(a,a.dj),e.play(a.nl,a.rm,a.oj),a.cj&&e.pause(),L.push(e)},function(){a.vk=!0});else if(this.W=v.createBuffer(this.ve,!1),this.ve=null,ga(this.dj)||M)ga(this.Vh)||(b=this.Vh.ye,b.normalize=this.ro,b.buffer=this.W);else{var b=new u(this,this.dj);b.play(this.nl,this.rm,this.oj);this.cj&&b.pause();L.push(b)}}};p.prototype.En=function(){switch(this.I){case 0:var a=4<=this.W.readyState;a&&(this.um=!0);return a||this.um;case 1:return!!this.ve||!!this.W;
case 2:return!0;case 3:return!0}return!1};p.prototype.Ts=function(){switch(this.I){case 0:return this.En();case 1:return!!this.W;case 2:return!0;case 3:return!0}return!1};p.prototype.Ks=function(){switch(this.I){case 0:return!!this.W.error;case 1:return this.vk}return!1};u.prototype.Ie=function(){var a;switch(this.I){case 0:return this.e.ended;case 1:if(1===this.buffer.I){if(!this.$c&&!this.Zb&&this.e.loop||this.wc)return!1;a=this.Ne?z.hc.Z:z.kd.Z;var b=this.playbackRate;0===b&&(b=1E-6);return a-
this.startTime>this.buffer.W.duration/b}return this.e.ended;case 2:return this.gk;case 3:!0}return!0};u.prototype.Sq=function(){return this.$c||this.Zb?!0:this.Ie()};u.prototype.Ul=function(a){1===F&&(!this.bd&&a?this.Ja&&(this.Aa||(this.Aa=v.createPanner(),this.Aa.panningModel="number"===typeof this.Aa.panningModel?ka:["equalpower","HRTF","soundfield"][ka],this.Aa.distanceModel="number"===typeof this.Aa.distanceModel?K:["linear","inverse","exponential"][K],this.Aa.refDistance=pa,this.Aa.maxDistance=
fa,this.Aa.rolloffFactor=sa),this.Ja.disconnect(),this.Ja.connect(this.Aa),this.Aa.connect(n(this.tag)),this.bd=!0):this.bd&&!a&&this.Ja&&(this.Aa.disconnect(),this.Ja.disconnect(),this.Ja.connect(n(this.tag)),this.bd=!1))};u.prototype.Tl=function(a,b,c,d,e,f){this.bd&&1===F&&(this.Aa.setPosition(a,b,0),this.Aa.setOrientation(Math.cos(U(c)),Math.sin(U(c)),0),this.Aa.coneInnerAngle=d,this.Aa.coneOuterAngle=e,this.Aa.coneOuterGain=f,this.Do=a,this.Eo=b,this.zo=c,this.Ao=d,this.Bo=e,this.Co=f)};u.prototype.vh=
function(a){this.bd&&1===F&&(this.za||(this.za=new e),this.za.vh(a))};u.prototype.Za=function(a){if(this.bd&&1===F&&this.za&&this.za.vi()&&this.tf()){this.za.Za(a);a=this.za.C;var b=La(a.x,a.y,-a.d.Ua(),H,G,!0),c=La(a.x,a.y,-a.d.Ua(),H,G,!1);this.Aa.setPosition(b,c,0);b=0;"undefined"!==typeof this.za.C.i&&(b=a.i-a.d.Ua(),this.Aa.setOrientation(Math.cos(b),Math.sin(b),0));b=La(this.za.Kk(),this.za.Lk(),-a.d.Ua(),0,0,!0);c=La(this.za.Kk(),this.za.Lk(),-a.d.Ua(),0,0,!1);this.Aa.setVelocity(b,c,0)}};
u.prototype.play=function(a,b,d){var e=this.e;this.ad=a;this.volume=b;d=d||0;switch(this.I){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==b*C&&(e.volume=b*C);e.loop!==a&&(e.loop=a);e.muted&&(e.muted=!1);if(e.currentTime!==d)try{e.currentTime=d}catch(f){}if(this.Kc&&Ma&&!z.ga)Na.push(this);else try{this.e.play()}catch(g){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",g)}break;case 1:this.muted=!1;this.Gf=1;if(1===this.buffer.I)this.Ja.gain.value=
b*C,this.$c||(this.e=v.createBufferSource(),this.e.buffer=this.buffer.W,this.e.connect(this.Ja)),this.e.loop=a,0===d?l(this.e):c(this.e,d,this.Ge());else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==a&&(e.loop=a);e.volume=b*C;if(e.currentTime!==d)try{e.currentTime=d}catch(k){}this.Kc&&Ma&&!z.ga?Na.push(this):e.play()}break;case 2:(!this.$c&&this.Zb||0!==d)&&e.seekTo(d);e.play();this.gk=!1;break;case 3:z.bb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=
1;this.startTime=(this.Ne?z.hc.Z:z.kd.Z)-d;this.wc=this.Zb=this.$c=!1};u.prototype.stop=function(){switch(this.I){case 0:this.e.paused||this.e.pause();break;case 1:1===this.buffer.I?a(this.e):this.e.paused||this.e.pause();break;case 2:this.e.stop();break;case 3:z.bb&&AppMobi.context.stopSound(this.src)}this.Zb=!0;this.wc=!1};u.prototype.pause=function(){if(!(this.$c||this.Zb||this.Ie()||this.wc)){switch(this.I){case 0:this.e.paused||this.e.pause();break;case 1:1===this.buffer.I?(this.Gb=this.Ik(),
this.ad&&(this.Gb%=this.Ge()),a(this.e)):this.e.paused||this.e.pause();break;case 2:this.e.pause();break;case 3:z.bb&&AppMobi.context.stopSound(this.src)}this.wc=!0}};u.prototype.Lt=function(){if(!(this.$c||this.Zb||this.Ie())&&this.wc){switch(this.I){case 0:this.e.play();break;case 1:1===this.buffer.I?(this.e=v.createBufferSource(),this.e.buffer=this.buffer.W,this.e.connect(this.Ja),this.e.loop=this.ad,this.Ja.gain.value=C*this.volume*this.Gf,this.startTime=(this.Ne?z.hc.Z:z.kd.Z)-this.Gb,c(this.e,
this.Gb,this.Ge())):this.e.play();break;case 2:this.e.play();break;case 3:z.bb&&AppMobi.context.resumeSound(this.src)}this.wc=!1}};u.prototype.seek=function(a){if(!(this.$c||this.Zb||this.Ie()))switch(this.I){case 0:try{this.e.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.I)this.wc?this.Gb=a:(this.pause(),this.Gb=a,this.Lt());else try{this.e.currentTime=a}catch(c){}break;case 3:z.bb&&AppMobi.context.seekSound(this.src,a)}};u.prototype.It=function(a){1===this.I&&(this.bd?(this.Aa.disconnect(),
this.Aa.connect(a)):(this.Ja.disconnect(),this.Ja.connect(a)))};u.prototype.Ge=function(){switch(this.I){case 0:if("undefined"!==typeof this.e.duration)return this.e.duration;break;case 1:return this.buffer.W.duration;case 2:return this.e.getDuration();case 3:if(z.bb)return AppMobi.context.getDurationSound(this.src)}return 0};u.prototype.Ik=function(){var a=this.Ge(),b=0;switch(this.I){case 0:"undefined"!==typeof this.e.currentTime&&(b=this.e.currentTime);break;case 1:if(1===this.buffer.I){if(this.wc)return this.Gb;
b=(this.Ne?z.hc.Z:z.kd.Z)-this.startTime}else"undefined"!==typeof this.e.currentTime&&(b=this.e.currentTime);break;case 3:z.bb&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.ad&&b>a&&(b=a);return b};u.prototype.tf=function(){return!this.wc&&!this.$c&&!this.Zb&&!this.Ie()};u.prototype.gu=function(){var a=this.volume*C;switch(this.I){case 0:"undefined"!==typeof this.e.volume&&this.e.volume!==a&&(this.e.volume=a);break;case 1:1===this.buffer.I?this.Ja.gain.value=a*this.Gf:"undefined"!==typeof this.e.volume&&
this.e.volume!==a&&(this.e.volume=a)}};u.prototype.ci=function(a){switch(this.I){case 0:this.e.muted!==!!a&&(this.e.muted=!!a);break;case 1:1===this.buffer.I?(this.Gf=a?0:1,this.Ja.gain.value=C*this.volume*this.Gf):this.e.muted!==!!a&&(this.e.muted=!!a)}};u.prototype.Vt=function(){this.xf=!0;this.ci(this.xf||this.Kg)};u.prototype.Yo=function(a){this.Kg=!!a;this.ci(this.xf||this.Kg)};u.prototype.Ap=function(){var a=this.playbackRate;this.Ne&&(a*=z.Zf);switch(this.I){case 0:this.e.playbackRate!==a&&
(this.e.playbackRate=a);break;case 1:1===this.buffer.I?this.e.playbackRate.value!==a&&(this.e.playbackRate.value=a):this.e.playbackRate!==a&&(this.e.playbackRate=a)}};u.prototype.Xt=function(b){switch(this.I){case 0:b?this.tf()?(this.e.pause(),this.Jd=!0):this.Jd=!1:this.Jd&&this.e.play();break;case 1:b?this.tf()?(1===this.buffer.I?(this.Gb=this.Ik(),this.ad&&(this.Gb%=this.Ge()),a(this.e)):this.e.pause(),this.Jd=!0):this.Jd=!1:this.Jd&&(1===this.buffer.I?(this.e=v.createBufferSource(),this.e.buffer=
this.buffer.W,this.e.connect(this.Ja),this.e.loop=this.ad,this.Ja.gain.value=C*this.volume*this.Gf,this.startTime=(this.Ne?z.hc.Z:z.kd.Z)-this.Gb,c(this.e,this.Gb,this.Ge())):this.e.play());break;case 2:b?this.tf()?(this.e.pause(),this.Jd=!0):this.Jd=!1:this.Jd&&this.e.play()}};T.Ea=function(a){this.type=a;z=this.b=a.b;J=this;this.ob=null;this.Sg=-600;!(this.b.Ei||this.b.yi&&(this.b.Gg||this.b.Ai))||this.b.Hg||this.b.da||this.b.Yk||(Ma=!0);v=null;"undefined"!==typeof AudioContext?(F=1,v=new AudioContext):
"undefined"!==typeof webkitAudioContext&&(F=1,v=new webkitAudioContext);(this.b.Ei&&1===F||Ma)&&document.addEventListener("touchstart",function(){var a,b,c;!lc&&v&&(a=v.createBuffer(1,1,22050),b=v.createBufferSource(),b.buffer=a,b.connect(v.destination),l(b),lc=!0);if(Ma){if(!M)for(a=0,b=Na.length;a<b;++a)c=Na[a],c.Zb||c.wc||c.e.play();Na.length=0}},!0);1!==F&&(this.b.vc&&"undefined"!==typeof window.Media?F=2:this.b.sf&&(F=3));2===F&&(X=location.href,a=X.lastIndexOf("/"),-1<a&&(X=X.substr(0,a+1)),
X=X.replace("file://",""));if(this.b.Fn&&this.b.Us&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime.  Audio cannot be played until Quicktime is installed."),this.b.Qd(this);else{if(this.b.bb)D=this.b.yi;else try{D=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){D=!1}this.b.em(this)}};var la=T.Ea.prototype;la.ha=function(){this.b.gf=this;E=this.Da[0];this.Kd=this.Da[1];this.yt=0!==this.Da[2];ka=this.Da[3];K=this.Da[4];this.Sg=-this.Da[5];
pa=this.Da[6];fa=this.Da[7];sa=this.Da[8];this.ob=new e;var a=this.b.M||this.b.width,b=this.b.L||this.b.height;1===F&&("undefined"!==typeof v.listener.dopplerFactor&&(v.listener.dopplerFactor=0),v.listener.setPosition(a/2,b/2,this.Sg),v.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){ca&&ca.disconnect();qb=b.toLowerCase();ca=v.createMediaStreamSource(a);ca.connect(n(qb))});this.b.Kq(function(a){J.tt(a)});var c=this;this.b.Iq(function(a){c.mt(a)})};la.mt=function(a){var b,
c,d;b=0;for(c=L.length;b<c;b++)d=L[b],d.za&&d.za.C===a&&(d.za.C=null,d.bd&&d.tf()&&d.ad&&d.stop());this.ob.C===a&&(this.ob.C=null)};la.Wb=function(){var a={silent:M,masterVolume:C,listenerZ:this.Sg,listenerUid:this.ob.vi()?this.ob.C.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,f,g,k;c=0;for(d=L.length;c<d;c++)e=L[c],!e.tf()||3===this.Kd||e.Kc&&1===this.Kd||!e.Kc&&2===this.Kd||(f=e.Ik(),e.ad&&(f%=e.Ge()),f={tag:e.tag,buffersrc:e.buffer.src,is_music:e.Kc,playbackTime:f,volume:e.volume,looping:e.ad,
muted:e.xf,playbackRate:e.playbackRate,paused:e.wc,resume_position:e.Gb},e.bd&&(f.pan={},k=f.pan,e.za&&e.za.vi()?k.objUid=e.za.C.uid:(k.x=e.Do,k.y=e.Eo,k.a=e.zo),k.ia=e.Ao,k.oa=e.Bo,k.og=e.Co),b.push(f));b=a.effects;for(g in R)if(R.hasOwnProperty(g)){e=[];c=0;for(d=R[g].length;c<d;c++)e.push({type:R[g][c].type,params:R[g][c].Mc});b[g]=e}return a};var Oa=[];la.xc=function(a){var c=a.silent;C=a.masterVolume;this.Sg=a.listenerZ;this.ob.vh(null);var d=a.listenerUid;-1!==d&&(this.ob.Ni=d,Oa.push(this.ob));
var d=a.playing,g,l,p,u,n,r,O,z,B,v,Y;if(3!==this.Kd)for(g=0,l=L.length;g<l;g++)B=L[g],B.Kc&&1===this.Kd||(B.Kc||2!==this.Kd)&&B.stop();for(n in R)if(R.hasOwnProperty(n))for(g=0,l=R[n].length;g<l;g++)R[n][g].remove();Ta(R);for(n in a.effects)if(a.effects.hasOwnProperty(n))for(r=a.effects[n],g=0,l=r.length;g<l;g++)switch(p=r[g].type,v=r[g].params,p){case "filter":y(n,new b(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "delay":y(n,new x(v[0],v[1],v[2]));break;case "convolve":p=v[2];B=this.li(p,!1);B.W?
p=new s(B.W,v[0],v[1],p):(p=new s(null,v[0],v[1],p),B.ro=v[0],B.Vh=p);y(n,p);break;case "flanger":y(n,new f(v[0],v[1],v[2],v[3],v[4]));break;case "phaser":y(n,new h(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "gain":y(n,new t(v[0]));break;case "tremolo":y(n,new k(v[0],v[1]));break;case "ringmod":y(n,new m(v[0],v[1]));break;case "distortion":y(n,new w(v[0],v[1],v[2],v[3],v[4]));break;case "compressor":y(n,new A(v[0],v[1],v[2],v[3],v[4]));break;case "analyser":y(n,new q(v[0],v[1]))}g=0;for(l=d.length;g<
l;g++)3===this.Kd||(a=d[g],p=a.buffersrc,u=a.is_music,n=a.tag,r=a.playbackTime,O=a.looping,z=a.volume,Y=(v=a.pan)&&v.hasOwnProperty("objUid")?v.objUid:-1,u&&1===this.Kd)||!u&&2===this.Kd||((B=this.mn(p,n,u,O,z))?(B.Gb=a.resume_position,B.Ul(!!v),B.play(O,z,r),B.Ap(),B.gu(),B.ci(B.xf||B.Kg),a.paused&&B.pause(),a.muted&&B.Vt(),B.ci(B.xf||B.Kg),v&&(-1!==Y?(B.za=B.za||new e,B.za.Ni=Y,Oa.push(B.za)):B.Tl(v.x,v.y,v.a,v.ia,v.oa,v.og))):(B=this.li(p,u),B.oj=r,B.cj=a.paused,v&&(-1!==Y?B.Lf.push({uo:Y,Rk:v.ia,
tl:v.oa,xl:v.og,mp:n}):B.Lf.push({x:v.x,y:v.y,Eq:v.a,Rk:v.ia,tl:v.oa,xl:v.og,mp:n}))));if(c&&!M){g=0;for(l=L.length;g<l;g++)L[g].Yo(!0);M=!0}else if(!c&&M){g=0;for(l=L.length;g<l;g++)L[g].Yo(!1);M=!1}};la.ld=function(){var a,b,c,e;a=0;for(b=Oa.length;a<b;a++)c=Oa[a],e=this.b.pi(c.Ni),c.vh(e),c.Ni=-1,e&&(H=e.x,G=e.y);Oa.length=0};la.tt=function(a){if(!this.yt){!a&&v&&v.resume&&v.resume();var b,c;b=0;for(c=L.length;b<c;b++)L[b].Xt(a);a&&v&&v.suspend&&v.suspend()}};la.Za=function(){var a=this.b.Ce,b,
c,e;b=0;for(c=L.length;b<c;b++)e=L[b],e.Za(a),0===e.I||3===e.I||e.$c||e.Zb||!e.Ie()||(e.Zb=!0,B=e.tag,z.trigger(hc.prototype.j.Nj,J)),0!==E&&e.Ap();var d,f;for(d in R)if(R.hasOwnProperty(d))for(e=R[d],b=0,c=e.length;b<c;b++)f=e[b],f.Za&&f.Za();1===F&&this.ob.vi()&&(this.ob.Za(a),H=this.ob.C.x,G=this.ob.C.y,v.listener.setPosition(this.ob.C.x,this.ob.C.y,this.Sg),v.listener.setVelocity(this.ob.Kk(),this.ob.Lk(),0))};var Pa=[];la.Wt=function(a){var b,c,e,d,f,g=0;b=0;for(c=a.length;b<c;++b)if(e=a[b],
d=e[0],e=2*e[1],(f=4<d.length&&".ogg"===d.substr(d.length-4))&&D||!f&&!D)Pa.push({filename:d,size:e,C:null}),g+=e;return g};la.$t=function(){var a,b,c,e;a=0;for(b=Pa.length;a<b;++a)c=Pa[a],e=this.b.wk+c.filename,c.C=this.li(e,!1)};la.qs=function(){var a=0,b,c,e;b=0;for(c=Pa.length;b<c;++b)e=Pa[b],e.C.Ts()||e.C.Ks()||this.b.da||this.b.Ai?a+=e.size:e.C.En()&&(a+=Math.floor(e.size/2));return a};la.li=function(a,b){var c,e,d,f=null;c=0;for(e=ua.length;c<e;c++)if(d=ua[c],d.src===a){f=d;break}f||(f=new p(a,
b),ua.push(f));return f};la.mn=function(a,b,c,e,d){var f,g,k;f=0;for(g=L.length;f<g;f++)if(k=L[f],k.src===a&&(k.Sq()||c))return k.tag=b,k;a=this.li(a,c);if(!a.W)return"<preload>"!==b&&(a.dj=b,a.nl=e,a.rm=d),null;k=new u(a,b);L.push(k);return k};var Ga=[];O.prototype.Nj=function(a){return fb(B,a)};T.j=new O;Y.prototype.Play=function(a,b,c,e){!M&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),P=this.mn(this.b.wk+a[0]+(D?".ogg":".m4a"),e,a[1],0!==b,c))&&(P.Ul(!1),P.play(0!==b,c))};T.ka=new Y;T.Qb=new function(){}})();
function ic(g){this.b=g}
(function(){function g(){}var n=ic.prototype;n.gb=function(d){this.Ba=d;this.b=d.b};n.gb.prototype.ha=function(){};n.Ea=function(d){this.type=d;this.b=d.b;this.el=Array(256);this.Ij=Array(256);this.re=0};var d=n.Ea.prototype;d.ha=function(){var d=this;this.b.da||(jQuery(document).keydown(function(c){d.nt(c)}),jQuery(document).keyup(function(c){d.ot(c)}))};var r=[32,33,34,35,36,37,38,39,40,44];d.nt=function(d){var c=!1;window!=window.top&&-1<r.indexOf(d.which)&&(d.preventDefault(),c=!0,d.stopPropagation());
if(this.el[d.which])this.Ij[d.which]&&!c&&d.preventDefault();else{this.el[d.which]=!0;this.re=d.which;this.b.ga=!0;this.b.trigger(ic.prototype.j.Zp,this);var a=this.b.trigger(ic.prototype.j.jq,this),b=this.b.trigger(ic.prototype.j.kq,this);this.b.ga=!1;if(a||b)this.Ij[d.which]=!0,c||d.preventDefault()}};d.ot=function(d){this.el[d.which]=!1;this.re=d.which;this.b.ga=!0;this.b.trigger(ic.prototype.j.$p,this);var c=this.b.trigger(ic.prototype.j.mq,this),a=this.b.trigger(ic.prototype.j.lq,this);this.b.ga=
!1;if(c||a||this.Ij[d.which])this.Ij[d.which]=!0,d.preventDefault()};d.Wb=function(){return{triggerKey:this.re}};d.xc=function(d){this.re=d.triggerKey};g.prototype.jq=function(d){return d===this.re};g.prototype.Zp=function(){return!0};g.prototype.$p=function(){return!0};g.prototype.mq=function(d){return d===this.re};g.prototype.kq=function(d){return d===this.re};g.prototype.lq=function(d){return d===this.re};n.j=new g;n.ka=new function(){};n.Qb=new function(){}})();function jc(g){this.b=g}
(function(){function g(){}function n(){}var d=jc.prototype;d.gb=function(c){this.Ba=c;this.b=c.b};d.gb.prototype.ha=function(){};d.Ea=function(c){this.type=c;this.b=c.b;this.Qh=Array(4);this.pp=this.Dj=this.$f=this.Dd=this.Cd=0;this.Ok=!1};var r=d.Ea.prototype;r.ha=function(){var c=this;if(!this.b.da){jQuery(document).mousemove(function(a){c.hh(a)});jQuery(document).mousedown(function(a){c.gh(a)});jQuery(document).mouseup(function(a){c.ih(a)});jQuery(document).dblclick(function(a){c.kt(a)});var a=
function(a){c.wt(a)};document.addEventListener("mousewheel",a,!1);document.addEventListener("DOMMouseScroll",a,!1)}};var l={left:0,top:0};r.hh=function(c){var a=this.b.da?l:jQuery(this.b.canvas).offset();this.Cd=c.pageX-a.left;this.Dd=c.pageY-a.top};r.no=function(){return 0<this.b.lb?!0:0<=this.Cd&&0<=this.Dd&&this.Cd<this.b.width&&this.Dd<this.b.height};r.gh=function(c){this.no()&&(this.b.qf&&!this.b.Ad&&c.preventDefault(),this.Qh[c.which]=!0,this.b.ga=!0,this.b.trigger(jc.prototype.j.wm,this),this.$f=
c.which-1,this.Dj=0,this.b.trigger(jc.prototype.j.xm,this),this.b.trigger(jc.prototype.j.Pj,this),this.b.ga=!1)};r.ih=function(c){this.Qh[c.which]&&(this.b.qf&&!this.b.Ad&&c.preventDefault(),this.b.qf=!0,this.Qh[c.which]=!1,this.b.ga=!0,this.$f=c.which-1,this.b.trigger(jc.prototype.j.pq,this),this.b.ga=!1)};r.kt=function(c){this.no()&&(c.preventDefault(),this.b.ga=!0,this.$f=c.which-1,this.Dj=1,this.b.trigger(jc.prototype.j.xm,this),this.b.trigger(jc.prototype.j.Pj,this),this.b.ga=!1)};r.wt=function(c){this.pp=
0>(c.wheelDelta?c.wheelDelta:c.detail?-c.detail:0)?0:1;this.Ok=!1;this.b.ga=!0;this.b.trigger(jc.prototype.j.sq,this);this.b.ga=!1;this.Ok&&gb(c)&&c.preventDefault()};g.prototype.xm=function(c,a){return c===this.$f&&a===this.Dj};g.prototype.wm=function(){return!0};g.prototype.Np=function(c){return this.Qh[c+1]};g.prototype.pq=function(c){return c===this.$f};g.prototype.Pp=function(c){var a=this.b.ni();return Ra(this.b.Xf(c,this.Cd,this.Dd,a.rf),a.rf)};g.prototype.Pj=function(c,a,b){return c!==this.$f||
a!==this.Dj?!1:this.b.Xf(b,this.Cd,this.Dd,!1)};g.prototype.sq=function(c){this.Ok=!0;return c===this.pp};d.j=new g;d.ka=new function(){};n.prototype.Fm=function(c,a){var b,d,g,f,h;ga(a)?(b=this.b.wd(0),d=b.scale,g=b.kb,f=b.Db,h=b.i,b.scale=1,b.kb=1,b.Db=1,b.i=0,c.q(b.na(this.Cd,this.Dd,!0)),b.scale=d,b.kb=g,b.Db=f,b.i=h):(b=ha(a)?this.b.wd(a):this.b.wg(a))?c.q(b.na(this.Cd,this.Dd,!0)):c.q(0)};n.prototype.Gm=function(c,a){var b,d,g,f,h;ga(a)?(b=this.b.wd(0),d=b.scale,g=b.kb,f=b.Eb,h=b.i,b.scale=
1,b.kb=1,b.Eb=1,b.i=0,c.q(b.na(this.Cd,this.Dd,!1)),b.scale=d,b.kb=g,b.Eb=f,b.i=h):(b=ha(a)?this.b.wd(a):this.b.wg(a))?c.q(b.na(this.Cd,this.Dd,!1)):c.q(0)};d.Qb=new n})();function kc(g){this.b=g}
(function(){function g(d){this.ja=d;this.Ta=!1;this.i=this.speed=this.y=this.x=0;this.opacity=1;this.Td=this.pf=this.size=this.si=0}var n=kc.prototype;n.gb=function(d){this.Ba=d;this.b=d.b};var d=n.gb.prototype;d.ha=function(){this.A||(this.H=new Image,this.H.ik=this.Aj,this.N=null,this.b.tm(this.H,this.zj))};d.Vi=function(){this.A||(this.N=null)};d.Wi=function(){this.A||!this.c.length||this.N||(this.N=this.b.n.Cf(this.H,!0,this.b.S,this.Dh))};d.Ug=function(){this.A||this.N||!this.b.n||(this.N=this.b.n.Cf(this.H,
!0,this.b.S,this.Dh))};d.Gj=function(){this.A||this.c.length||!this.N||(this.b.n.deleteTexture(this.N),this.N=null)};d.hj=function(d){d.drawImage(this.H,0,0)};g.prototype.init=function(){var d=this.ja;this.x=d.x-d.Lj/2+Math.random()*d.Lj;this.y=d.y-d.Mj/2+Math.random()*d.Mj;this.speed=d.Vk-d.tj/2+Math.random()*d.tj;this.i=d.i-d.uj/2+Math.random()*d.uj;this.opacity=d.Tk;this.size=d.Uk-d.rj/2+Math.random()*d.rj;this.si=d.Nk-d.ti/2+Math.random()*d.ti;this.Td=this.pf=0};g.prototype.Za=function(d){var c=
this.ja;this.x+=Math.cos(this.i)*this.speed*d;this.y+=Math.sin(this.i)*this.speed*d;this.y+=this.pf*d;this.speed+=c.Sj*d;this.size+=this.si*d;this.pf+=c.Ck*d;this.Td+=d;1>this.size?this.Ta=!1:(0!==c.Pg&&(this.i+=Math.random()*c.Pg*d-c.Pg*d/2),0!==c.Rg&&(this.speed+=Math.random()*c.Rg*d-c.Rg*d/2),0!==c.Qg&&(this.opacity+=Math.random()*c.Qg*d-c.Qg*d/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=c.kf&&this.Td>=c.timeout&&(this.Ta=!1),2===c.kf&&0>=this.speed&&(this.Ta=!1))};g.prototype.Hc=
function(d){var c=this.ja.opacity*this.opacity;if(0!==c){0===this.ja.kf&&(c*=1-this.Td/this.ja.timeout);d.globalAlpha=c;var c=this.x-this.size/2,a=this.y-this.size/2;this.ja.b.dd&&(c=c+.5|0,a=a+.5|0);d.drawImage(this.ja.type.H,c,a,this.size,this.size)}};g.prototype.Pb=function(d){var c=this.ja.opacity*this.opacity;0===this.ja.kf&&(c*=1-this.Td/this.ja.timeout);var a=this.size,b=a*this.ja.Ho,g=this.x-a/2,n=this.y-a/2;this.ja.b.dd&&(g=g+.5|0,n=n+.5|0);1>b||0===c||(b<d.et||b>d.pl?(d.Ye(c),d.sh(g,n,g+
a,n,g+a,n+a,g,n+a)):d.zt(this.x,this.y,b,c))};g.prototype.left=function(){return this.x-this.size/2};g.prototype.right=function(){return this.x+this.size/2};g.prototype.top=function(){return this.y-this.size/2};g.prototype.bottom=function(){return this.y+this.size/2};n.Ea=function(d){this.type=d;this.b=d.b};var d=n.Ea.prototype,r=[];d.ha=function(){var d=this.Da;this.kj=d[0];this.uj=U(d[1]);this.Uf=d[2];this.Xl=!0;this.Vk=d[3];this.Uk=d[4];this.Tk=d[5]/100;this.Nk=d[6];this.Lj=d[7];this.Mj=d[8];this.tj=
d[9];this.rj=d[10];this.ti=d[11];this.Sj=d[12];this.Ck=d[13];this.Pg=d[14];this.Rg=d[15];this.Qg=d[16];this.kf=d[17];this.timeout=d[18];this.We=0;this.Ho=1;this.$i=this.x;this.bj=this.y;this.aj=this.x;this.Zi=this.y;this.Lq(function(c){c.ya.set(c.$i,c.bj,c.aj,c.Zi);c.Mb.Tf(c.ya);c.Ph=!1;c.om()});this.Oc||(this.qb=[]);this.b.em(this);this.type.Ug();if(1===this.Uf)for(d=0;d<this.kj;d++)this.Uj().opacity=0;this.ji=!0};d.Wb=function(){var d={r:this.kj,sc:this.uj,st:this.Uf,s:this.Xl,isp:this.Vk,isz:this.Uk,
io:this.Tk,gr:this.Nk,xr:this.Lj,yr:this.Mj,spr:this.tj,szr:this.rj,grnd:this.ti,acc:this.Sj,g:this.Ck,lar:this.Pg,lsr:this.Rg,lor:this.Qg,dm:this.kf,to:this.timeout,pcc:this.We,ft:this.ji,p:[]},c,a,b,g=d.p;c=0;for(a=this.qb.length;c<a;c++)b=this.qb[c],g.push([b.x,b.y,b.speed,b.i,b.opacity,b.si,b.size,b.pf,b.Td]);return d};d.xc=function(d){this.kj=d.r;this.uj=d.sc;this.Uf=d.st;this.Xl=d.s;this.Vk=d.isp;this.Uk=d.isz;this.Tk=d.io;this.Nk=d.gr;this.Lj=d.xr;this.Mj=d.yr;this.tj=d.spr;this.rj=d.szr;this.ti=
d.grnd;this.Sj=d.acc;this.Ck=d.g;this.Pg=d.lar;this.Rg=d.lsr;this.Qg=d.lor;this.kf=d.dm;this.timeout=d.to;this.We=d.pcc;this.ji=d.ft;r.push.apply(r,this.qb);this.qb.length=0;var c,a,b,g=d.p;d=0;for(c=g.length;d<c;d++)a=this.Uj(),b=g[d],a.x=b[0],a.y=b[1],a.speed=b[2],a.i=b[3],a.opacity=b[4],a.si=b[5],a.size=b[6],a.pf=b[7],a.Td=b[8]};d.fh=function(){r.push.apply(r,this.qb);this.qb.length=0};d.Uj=function(){var d;r.length?(d=r.pop(),d.ja=this):d=new g(this);this.qb.push(d);d.Ta=!0;return d};d.Za=function(){var d=
this.b.Ek(this),c,a,b,g;if(0===this.Uf&&this.Xl)for(this.We+=d*this.kj,a=Q(this.We),this.We-=a,c=0;c<a;c++)b=this.Uj(),b.init();this.$i=this.x;this.bj=this.y;this.aj=this.x;this.Zi=this.y;g=c=0;for(a=this.qb.length;c<a;c++)b=this.qb[c],this.qb[g]=b,this.b.ea=!0,1===this.Uf&&this.ji&&b.init(),b.Za(d),b.Ta?(b.left()<this.$i&&(this.$i=b.left()),b.right()>this.aj&&(this.aj=b.right()),b.top()<this.bj&&(this.bj=b.top()),b.bottom()>this.Zi&&(this.Zi=b.bottom()),g++):r.push(b);this.qb.length=g;this.qa();
this.ji=!1;1===this.Uf&&0===this.qb.length&&this.b.Qd(this)};d.Hc=function(d){var c,a,b,g=this.d;c=0;for(a=this.qb.length;c<a;c++)b=this.qb[c],b.right()>=g.wa&&b.bottom()>=g.xa&&b.left()<=g.Ia&&b.top()<=g.Ha&&b.Hc(d)};d.Pb=function(d){this.Ho=this.d.rc();d.Xb(this.type.N);var c,a,b,g=this.d;c=0;for(a=this.qb.length;c<a;c++)b=this.qb[c],b.right()>=g.wa&&b.bottom()>=g.xa&&b.left()<=g.Ia&&b.top()<=g.Ha&&b.Pb(d)};n.j=new function(){};n.ka=new function(){};n.Qb=new function(){}})();
function gc(g){this.b=g}
(function(){function g(){if(0===this.lk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Vf?b.drawImage(this.H,this.If,this.Jf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.H,0,0,this.width,this.height);this.lk=a.toDataURL("image/png")}return this.lk}function n(){}function d(){}var r=gc.prototype;r.gb=function(a){this.Ba=a;this.b=a.b};var l=r.gb.prototype;l.ha=function(){if(!this.A){var a,b,c,d,f,h,e,l,n;this.Ec=
[];this.Cg=!1;a=0;for(b=this.Lb.length;a<b;a++){f=this.Lb[a];e={};e.name=f[0];e.speed=f[1];e.loop=f[2];e.Nl=f[3];e.lj=f[4];e.Io=f[5];e.O=f[6];e.frames=[];c=0;for(d=f[7].length;c<d;c++)h=f[7][c],l={},l.zj=h[0],l.Aj=h[1],l.If=h[2],l.Jf=h[3],l.width=h[4],l.height=h[5],l.duration=h[6],l.Ab=h[7],l.Bb=h[8],l.Sk=h[9],l.ej=h[10],l.Jo=h[11],l.Vf=0!==l.width,l.lk="",l.vv=g,n={left:0,top:0,right:1,bottom:1},l.Vl=n,l.N=null,(n=this.b.as(h[0]))?l.H=n:(l.H=new Image,l.H.Wq=h[0],l.H.ik=h[1],l.H.Rq=null,this.b.tm(l.H,
h[0])),e.frames.push(l),this.Ec.push(l);this.Lb[a]=e}}};l.zp=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c=this.c[a],c.Yh=c.mc.N};l.Vi=function(){if(!this.A){var a,b,c;a=0;for(b=this.Ec.length;a<b;++a)c=this.Ec[a],c.H.Rq=null,c.N=null;this.Cg=!1;this.zp()}};l.Wi=function(){if(!this.A&&this.c.length){var a,b,c;a=0;for(b=this.Ec.length;a<b;++a)c=this.Ec[a],c.N=this.b.n.Cf(c.H,!1,this.b.S,c.Jo);this.zp()}};l.Ug=function(){if(!this.A&&!this.Cg&&this.b.n){var a,b,c;a=0;for(b=this.Ec.length;a<
b;++a)c=this.Ec[a],c.N=this.b.n.Cf(c.H,!1,this.b.S,c.Jo);this.Cg=!0}};l.Gj=function(){if(!this.A&&!this.c.length&&this.Cg){var a,b,c;a=0;for(b=this.Ec.length;a<b;++a)c=this.Ec[a],this.b.n.deleteTexture(c.N),c.N=null;this.Cg=!1}};var c=[];l.hj=function(a){var b,d,f;b=c.length=0;for(d=this.Ec.length;b<d;++b)f=this.Ec[b].H,-1===c.indexOf(f)&&(a.drawImage(f,0,0),c.push(f))};r.Ea=function(a){this.type=a;this.b=a.b;a=this.type.Lb[0].frames[0].ej;this.Oc?this.V.xh(a):this.V=new $a(a)};var a=r.Ea.prototype;
a.ha=function(){this.visible=0===this.Da[0];this.Xc=0!==this.Da[3];1===this.type.Lb.length&&1===this.type.Lb[0].frames.length||0===this.type.Lb[0].speed||this.b.em(this);this.ra=this.ln(this.Da[1])||this.type.Lb[0];this.u=this.Da[2];0>this.u&&(this.u=0);this.u>=this.ra.frames.length&&(this.u=this.ra.frames.length-1);var a=this.ra.frames[this.u];this.V.xh(a.ej);this.Ab=a.Ab;this.Bb=a.Bb;this.rg=this.ra.speed;this.Oc?this.Vc.reset():this.Vc=new Ya;this.vd=this.Vc.Z;this.ue=!0;this.md=0;this.te=!0;this.ek=
this.Nm="";this.Tq=0;this.dk=-1;this.type.Ug();var b,c,d,f,g,e,h,a=0;for(b=this.type.Lb.length;a<b;a++)for(f=this.type.Lb[a],c=0,d=f.frames.length;c<d;c++)g=f.frames[c],0===g.width&&(g.width=g.H.width,g.height=g.H.height),g.Vf&&(h=g.H,e=g.Vl,e.left=g.If/h.width,e.top=g.Jf/h.height,e.right=(g.If+g.width)/h.width,e.bottom=(g.Jf+g.height)/h.height,0===g.If&&0===g.Jf&&g.width===h.width&&g.height===h.height&&(g.Vf=!1));this.mc=this.ra.frames[this.u];this.Yh=this.mc.N};a.Wb=function(){var a={a:this.ra.O,
f:this.u,cas:this.rg,fs:this.vd,ar:this.md,at:this.Vc.Z};this.ue||(a.ap=this.ue);this.te||(a.af=this.te);return a};a.xc=function(a){var b=this.gs(a.a);b&&(this.ra=b);this.u=a.f;0>this.u&&(this.u=0);this.u>=this.ra.frames.length&&(this.u=this.ra.frames.length-1);this.rg=a.cas;this.vd=a.fs;this.md=a.ar;this.Vc.reset();this.Vc.Z=a.at;this.ue=a.hasOwnProperty("ap")?a.ap:!0;this.te=a.hasOwnProperty("af")?a.af:!0;this.mc=this.ra.frames[this.u];this.Yh=this.mc.N;this.V.xh(this.mc.ej);this.Ab=this.mc.Ab;
this.Bb=this.mc.Bb};a.Xj=function(a){this.u=a?0:this.ra.frames.length-1;this.ue=!1;this.Nm=this.ra.name;this.b.trigger(gc.prototype.j.Yp,this);this.b.trigger(gc.prototype.j.Xp,this);this.md=0};a.xv=function(){return this.Vc.Z};a.Za=function(){this.Vc.add(this.b.Ek(this));this.ek.length&&this.br();0<=this.dk&&this.cr();var a=this.Vc.Z,b=this.ra,c=b.frames[this.u],d=c.duration/this.rg;this.ue&&a>=this.vd+d&&(this.te?this.u++:this.u--,this.vd+=d,this.u>=b.frames.length&&(b.Io?(this.te=!1,this.u=b.frames.length-
2):b.loop?this.u=b.lj:(this.md++,this.md>=b.Nl?this.Xj(!1):this.u=b.lj)),0>this.u&&(b.Io?(this.u=1,this.te=!0,b.loop||(this.md++,this.md>=b.Nl&&this.Xj(!0))):b.loop?this.u=b.lj:(this.md++,this.md>=b.Nl?this.Xj(!0):this.u=b.lj)),0>this.u?this.u=0:this.u>=b.frames.length&&(this.u=b.frames.length-1),a>this.vd+b.frames[this.u].duration/this.rg&&(this.vd=a),a=b.frames[this.u],this.ef(c,a),this.b.ea=!0)};a.ln=function(a){var b,c,d;b=0;for(c=this.type.Lb.length;b<c;b++)if(d=this.type.Lb[b],fb(d.name,a))return d;
return null};a.gs=function(a){var b,c,d;b=0;for(c=this.type.Lb.length;b<c;b++)if(d=this.type.Lb[b],d.O===a)return d;return null};a.br=function(){var a=this.ra.frames[this.u],b=this.ln(this.ek);this.ek="";!b||fb(b.name,this.ra.name)&&this.ue||(this.ra=b,this.rg=b.speed,0>this.u&&(this.u=0),this.u>=this.ra.frames.length&&(this.u=this.ra.frames.length-1),1===this.Tq&&(this.u=0),this.ue=!0,this.vd=this.Vc.Z,this.te=!0,this.ef(a,this.ra.frames[this.u]),this.b.ea=!0)};a.cr=function(){var a=this.ra.frames[this.u],
b=this.u;this.u=Q(this.dk);0>this.u&&(this.u=0);this.u>=this.ra.frames.length&&(this.u=this.ra.frames.length-1);b!==this.u&&(this.ef(a,this.ra.frames[this.u]),this.vd=this.Vc.Z,this.b.ea=!0);this.dk=-1};a.ef=function(a,b){var c=a.width,d=a.height,f=b.width,g=b.height;c!=f&&(this.width*=f/c);d!=g&&(this.height*=g/d);this.Ab=b.Ab;this.Bb=b.Bb;this.V.xh(b.ej);this.qa();this.mc=b;this.Yh=b.N;c=0;for(d=this.F.length;c<d;c++)f=this.F[c],f.qt&&f.qt(a,b);this.b.trigger(gc.prototype.j.ef,this)};a.Hc=function(a){a.globalAlpha=
this.opacity;var b=this.mc,c=b.Vf,d=b.H,f=this.x,g=this.y,e=this.width,h=this.height;if(0===this.i&&0<=e&&0<=h)f-=this.Ab*e,g-=this.Bb*h,this.b.dd&&(f=Math.round(f),g=Math.round(g)),c?a.drawImage(d,b.If,b.Jf,b.width,b.height,f,g,e,h):a.drawImage(d,f,g,e,h);else{this.b.dd&&(f=Math.round(f),g=Math.round(g));a.save();var l=0<e?1:-1,n=0<h?1:-1;a.translate(f,g);1===l&&1===n||a.scale(l,n);a.rotate(this.i*l*n);f=0-this.Ab*ma(e);g=0-this.Bb*ma(h);c?a.drawImage(d,b.If,b.Jf,b.width,b.height,f,g,ma(e),ma(h)):
a.drawImage(d,f,g,ma(e),ma(h));a.restore()}};a.Pb=function(a){a.Xb(this.Yh);a.Ye(this.opacity);var b=this.mc,c=this.Mb;if(this.b.dd){var d=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.Vf?a.Hd(c.Ra+d,c.Sa+f,c.Hb+d,c.Ib+f,c.wb+d,c.xb+f,c.tb+d,c.ub+f,b.Vl):a.sh(c.Ra+d,c.Sa+f,c.Hb+d,c.Ib+f,c.wb+d,c.xb+f,c.tb+d,c.ub+f)}else b.Vf?a.Hd(c.Ra,c.Sa,c.Hb,c.Ib,c.wb,c.xb,c.tb,c.ub,b.Vl):a.sh(c.Ra,c.Sa,c.Hb,c.Ib,c.wb,c.xb,c.tb,c.ub)};a.ms=function(a){var b=this.mc,c,d;c=0;for(d=b.Sk.length;c<d;c++)if(fb(a,
b.Sk[c][0]))return c;return-1};a.Hk=function(a,b){var c=this.mc,d=c.Sk,f;f=N(a)?this.ms(a):a-1;f=Q(f);if(0>f||f>=d.length)return b?this.x:this.y;var g=(d[f][1]-c.Ab)*this.width,d=d[f][2],d=(d-c.Bb)*this.height,c=Math.cos(this.i);f=Math.sin(this.i);var e=g*c-d*f,d=d*c+g*f,g=e+this.x,d=d+this.y;return b?g:d};var b=null,x=new ba,s=!1,f=[],h=new S(0,0,0,0);l.finish=function(a){if(s){if(a){var c=this.b.mb().Ob.Lc;a=b.ba();var d=x.Tc(),f,g;if(a.fa){a.fa=!1;a.c.length=d.length;f=0;for(g=d.length;f<g;f++)a.c[f]=
d[f];if(c)for(f=a.P.length=0,g=b.c.length;f<g;f++)d=b.c[f],x.contains(d)||a.P.push(d)}else if(c)for(c=a.c.length,a.c.length=c+d.length,f=0,g=d.length;f<g;f++)a.c[c+f]=d[f],Aa(a.P,d[f]);else xa(a.c,d);b.nd()}x.clear();s=!1}};n.prototype.Qp=function(a){if(a){var c=!1,d,g,l,n=this.b.ni(),e=n.type,n=n.rf;d=a.ba();g=this.b.mb().Ob.Lc;var p;d.fa?(this.ma(),h.pg(this.ya),h.offset(0,0),this.b.js(this.d,a,h,f),p=f):p=g?d.P:d.c;b=a;s=e!==a&&!n;d=0;for(g=p.length;d<g;d++)if(l=p[d],this.b.bu(this,l)){c=!0;if(n)break;
e!==a&&x.add(l)}f.length=0;a=c}else a=!1;return a};n.prototype.Xp=function(a){return fb(this.Nm,a)};n.prototype.Yp=function(){return!0};n.prototype.ef=function(){return!0};r.j=new n;d.prototype.wq=function(a){this.Xc!==(0!==a)&&((this.Xc=0!==a)?this.qa():(this.kc.right>=this.kc.left&&this.type.mg.update(this,this.kc,null),this.kc.set(0,0,-1,-1)))};r.ka=new d;r.Qb=new function(){}})();function mc(g){this.b=g}
(function(){var g=mc.prototype;g.gb=function(d){this.Ba=d;this.b=d.b};var n=g.gb.prototype;n.ha=function(){this.A||(this.H=new Image,this.H.ik=this.Aj,this.b.tm(this.H,this.zj),this.N=this.pattern=null)};n.Vi=function(){this.A||(this.N=null)};n.Wi=function(){if(!this.A&&this.c.length){this.N||(this.N=this.b.n.Cf(this.H,!0,this.b.S,this.Dh));var d,g;d=0;for(g=this.c.length;d<g;d++)this.c[d].N=this.N}};n.Ug=function(){this.A||this.N||!this.b.n||(this.N=this.b.n.Cf(this.H,!0,this.b.S,this.Dh))};n.Gj=
function(){this.A||this.c.length||!this.N||(this.b.n.deleteTexture(this.N),this.N=null)};n.hj=function(d){d.drawImage(this.H,0,0)};g.Ea=function(d){this.type=d;this.b=d.b};n=g.Ea.prototype;n.ha=function(){this.visible=0===this.Da[0];this.th=new S(0,0,0,0);this.xn=!1;this.H=this.type.H;this.b.n?(this.type.Ug(),this.N=this.type.N):(this.type.pattern||(this.type.pattern=this.b.aa.createPattern(this.type.H,"repeat")),this.pattern=this.type.pattern)};n.ld=function(){this.xn=!1;this.H=this.type.H};n.fh=
function(){this.b.n&&this.xn&&this.N&&(this.b.n.deleteTexture(this.N),this.N=null)};n.Hc=function(d){d.globalAlpha=this.opacity;d.save();d.fillStyle=this.pattern;var g=this.x,l=this.y;this.b.dd&&(g=Math.round(g),l=Math.round(l));var c=-(this.Ab*this.width),a=-(this.Bb*this.height),b=c%this.H.width,n=a%this.H.height;0>b&&(b+=this.H.width);0>n&&(n+=this.H.height);d.translate(g,l);d.rotate(this.i);d.translate(b,n);d.fillRect(c-b,a-n,this.width,this.height);d.restore()};n.Pb=function(d){d.Xb(this.N);
d.Ye(this.opacity);var g=this.th;g.right=this.width/this.H.width;g.bottom=this.height/this.H.height;var l=this.Mb;if(this.b.dd){var c=Math.round(this.x)-this.x,a=Math.round(this.y)-this.y;d.Hd(l.Ra+c,l.Sa+a,l.Hb+c,l.Ib+a,l.wb+c,l.xb+a,l.tb+c,l.ub+a,g)}else d.Hd(l.Ra,l.Sa,l.Hb,l.Ib,l.wb,l.xb,l.tb,l.ub,g)};g.j=new function(){};g.ka=new function(){};g.Qb=new function(){}})();function Z(g){this.b=g}
(function(){function g(a){s=a.x;f=a.y;h=a.z}function n(a){t=a.x;k=a.y;m=a.z}function d(a,b,c,d){var e;e=w.length?w.pop():new r;e.init(a,b,c,d);return e}function r(){this.zh=this.id=this.y=this.x=this.xj=this.wj=this.gl=this.time=this.Zl=0;this.Fh=this.Ej=!1}function l(){}function c(){}var a=Z.prototype;a.gb=function(a){this.Ba=a;this.b=a.b};a.gb.prototype.ha=function(){};a.Ea=function(a){this.type=a;this.b=a.b;this.touches=[];this.rl=!1};var b=a.Ea.prototype,x={left:0,top:0};b.vg=function(a){var b,
c;b=0;for(c=this.touches.length;b<c;b++)if(this.touches[b].id===a)return b;return-1};var s=0,f=0,h=0,t=0,k=0,m=0,w=[];r.prototype.init=function(a,b,c,d){var e=Ua();this.Zl=this.gl=this.time=e;this.wj=a;this.xj=b;this.x=a;this.y=b;this.id=c;this.zh=d;this.Fh=this.Ej=!1};r.prototype.update=function(a,b,c){this.gl=this.time;this.time=a;this.x=b;this.y=c;!this.Fh&&15<=Qa(this.wj,this.xj,this.x,this.y)&&(this.Fh=!0)};r.prototype.ct=function(a,b){!this.Ej&&500<=Ua()-this.Zl&&!this.Fh&&15>Qa(this.wj,this.xj,
this.x,this.y)&&(this.Ej=!0,a.hd=this.zh,a.ag=this.id,a.of=b,a.b.trigger(Z.prototype.j.hq,a),a.qd=this.x,a.rd=this.y,a.b.trigger(Z.prototype.j.iq,a),a.of=0)};var A=-1E3,q=-1E3,e=-1E4;r.prototype.ko=function(a,b){if(!this.Ej){var c=Ua();333>=c-this.Zl&&!this.Fh&&15>Qa(this.wj,this.xj,this.x,this.y)&&(a.hd=this.zh,a.ag=this.id,a.of=b,666>=c-e&&25>Qa(A,q,this.x,this.y)?(a.b.trigger(Z.prototype.j.dq,a),a.qd=this.x,a.rd=this.y,a.b.trigger(Z.prototype.j.fq,a),q=A=-1E3,e=-1E4):(a.b.trigger(Z.prototype.j.qq,
a),a.qd=this.x,a.rd=this.y,a.b.trigger(Z.prototype.j.rq,a),A=this.x,q=this.y,e=c),a.of=0)}};b.ha=function(){this.Vs=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.of=this.ag=this.hd=this.rd=this.qd=this.Jm=this.Im=this.Hm=this.Hq=this.Gq=this.Fq=this.nh=this.mh=this.lh=0;this.ku=0!==this.Da[0];var a=0<this.b.lb?document:this.b.canvas,b=document;this.b.bb?b=a=window.Canvas:this.b.gc&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.kh(a)},
!1),a.addEventListener("pointermove",function(a){c.jh(a)},!1),b.addEventListener("pointerup",function(a){c.Gd(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Gd(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},
!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.kh(a)},!1),a.addEventListener("MSPointerMove",function(a){c.jh(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Gd(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Gd(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.Yi(a)},
!1),a.addEventListener("touchmove",function(a){c.Xi(a)},!1),b.addEventListener("touchend",function(a){c.Kf(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Kf(a,!0)},!1));if(this.Vs){var d=function(a){a=a.reading;c.Hm=a.accelerationX;c.Im=a.accelerationY;c.Jm=a.accelerationZ},e=function(a){a=a.reading;c.lh=a.yawDegrees;c.mh=a.pitchDegrees;c.nh=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged",
d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(f&&f.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",e)):(f&&f.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.lh=a.alpha||
0;c.mh=a.beta||0;c.nh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Fq=a.accelerationIncludingGravity.x||0,c.Gq=a.accelerationIncludingGravity.y||0,c.Hq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Hm=a.acceleration.x||0,c.Im=a.acceleration.y||0,c.Jm=a.acceleration.z||0)},!1);this.ku&&!this.b.da&&(jQuery(document).mousemove(function(a){c.hh(a)}),jQuery(document).mousedown(function(a){c.gh(a)}),jQuery(document).mouseup(function(a){c.ih(a)}));
this.b.sf&&!this.b.bb&&AppMobi.accelerometer.watchAcceleration(g,{frequency:40,adjustForRotation:!0});this.b.vc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(n,null,{frequency:40});this.b.cu(this)};b.jh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.vg(a.pointerId),c=Ua();if(0<=b){var d=this.b.da?x:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};b.kh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var b=this.b.da?x:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Ua();this.hd=this.touches.length;this.ag=a.pointerId;this.touches.push(d(c,b,a.pointerId,this.hd));this.b.ga=!0;this.b.trigger(Z.prototype.j.Cm,this);this.b.trigger(Z.prototype.j.Em,this);this.qd=c;this.rd=b;this.b.trigger(Z.prototype.j.Dm,this);
this.b.ga=!1}};b.Gd=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var c=this.vg(a.pointerId);this.hd=0<=c?this.touches[c].zh:-1;this.ag=0<=c?this.touches[c].id:-1;this.b.ga=!0;this.b.trigger(Z.prototype.j.Bm,this);this.b.trigger(Z.prototype.j.Rj,this);0<=c&&(b||this.touches[c].ko(this,c),100>w.length&&w.push(this.touches[c]),this.touches.splice(c,1));this.b.ga=!1}};b.Xi=function(a){a.preventDefault&&a.preventDefault();
var b=Ua(),c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.vg(e.identifier),0<=f){var g=this.b.da?x:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,e.pageX-g.left,e.pageY-g.top)}};b.Yi=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var b=this.b.da?x:jQuery(this.b.canvas).offset();Ua();this.b.ga=!0;var c,e,f,g;c=0;for(e=a.changedTouches.length;c<e;c++)if(f=a.changedTouches[c],g=this.vg(f.identifier),-1===g){g=f.pageX-b.left;var h=f.pageY-
b.top;this.hd=this.touches.length;this.ag=f.identifier;this.touches.push(d(g,h,f.identifier,this.hd));this.b.trigger(Z.prototype.j.Cm,this);this.b.trigger(Z.prototype.j.Em,this);this.qd=g;this.rd=h;this.b.trigger(Z.prototype.j.Dm,this)}this.b.ga=!1};b.Kf=function(a,b){a.preventDefault&&gb(a)&&a.preventDefault();this.b.ga=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.vg(e.identifier),0<=e&&(this.hd=this.touches[e].zh,this.ag=this.touches[e].id,this.b.trigger(Z.prototype.j.Bm,
this),this.b.trigger(Z.prototype.j.Rj,this),b||this.touches[e].ko(this,e),100>w.length&&w.push(this.touches[e]),this.touches.splice(e,1));this.b.ga=!1};b.sv=function(){return this.b.sf&&0===this.lh&&0!==h?90*h:this.b.vc&&0===this.lh&&0!==m?90*m:this.lh};b.tv=function(){return this.b.sf&&0===this.mh&&0!==f?-90*f:this.b.vc&&0===this.mh&&0!==k?90*k:this.mh};b.wv=function(){return this.b.sf&&0===this.nh&&0!==s?90*s:this.b.vc&&0===this.nh&&0!==t?90*t:this.nh};b.gh=function(a){a.preventDefault&&this.b.qf&&
!this.b.Ad&&a.preventDefault();this.Yi({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.rl=!0};b.hh=function(a){this.rl&&this.Xi({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};b.ih=function(a){a.preventDefault&&this.b.qf&&!this.b.Ad&&a.preventDefault();this.b.qf=!0;this.Kf({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.rl=!1};b.cm=function(){var a,b,c,d=Ua();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.gl=d),c.ct(this,
a)};l.prototype.Em=function(){return!0};l.prototype.Rj=function(){return!0};l.prototype.Dm=function(a){return a?this.b.Xf(a,this.qd,this.rd,!1):!1};var p=[];l.prototype.Rp=function(a){if(!a)return!1;var b=a.ba(),c=b.qc(),d,e,f,g,h,k;f=0;for(g=c.length;f<g;f++){var l=c[f];l.ma();h=0;for(k=this.touches.length;h<k;h++)if(e=this.touches[h],d=l.d.na(e.x,e.y,!0),e=l.d.na(e.x,e.y,!1),l.$a(d,e)){p.push(l);break}}return p.length?(b.fa=!1,xa(b.c,p),a.nd(),p.length=0,!0):!1};l.prototype.Cm=function(a){a=Math.floor(a);
return a===this.hd};l.prototype.Bm=function(a){a=Math.floor(a);return a===this.hd};l.prototype.hq=function(){return!0};l.prototype.qq=function(){return!0};l.prototype.dq=function(){return!0};l.prototype.iq=function(a){return a?this.b.Xf(a,this.qd,this.rd,!1):!1};l.prototype.rq=function(a){return a?this.b.Xf(a,this.qd,this.rd,!1):!1};l.prototype.fq=function(a){return a?this.b.Xf(a,this.qd,this.rd,!1):!1};a.j=new l;c.prototype.Fm=function(a,b){var c=this.of;if(0>c||c>=this.touches.length)a.q(0);else{var d,
e,f,g,h;ga(b)?(d=this.b.wd(0),e=d.scale,f=d.kb,g=d.Db,h=d.i,d.scale=1,d.kb=1,d.Db=1,d.i=0,a.q(d.na(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.kb=f,d.Db=g,d.i=h):(d=ha(b)?this.b.wd(b):this.b.wg(b))?a.q(d.na(this.touches[c].x,this.touches[c].y,!0)):a.q(0)}};c.prototype.Gm=function(a,b){var c=this.of;if(0>c||c>=this.touches.length)a.q(0);else{var d,e,f,g,h;ga(b)?(d=this.b.wd(0),e=d.scale,f=d.kb,g=d.Eb,h=d.i,d.scale=1,d.kb=1,d.Eb=1,d.i=0,a.q(d.na(this.touches[c].x,this.touches[c].y,!1)),d.scale=
e,d.kb=f,d.Eb=g,d.i=h):(d=ha(b)?this.b.wd(b):this.b.wg(b))?a.q(d.na(this.touches[c].x,this.touches[c].y,!1)):a.q(0)}};a.Qb=new c})();
function nc(g){this.b=g;var n=this;this.b.da||(jQuery(document).mousemove(function(d){n.hh(d)}),jQuery(document).mousedown(function(d){n.gh(d)}),jQuery(document).mouseup(function(d){n.ih(d)}));g=0<this.b.lb?document:this.b.canvas;this.b.bb?g=window.Canvas:this.b.gc&&(g=window);window.navigator.pointerEnabled?(g.addEventListener("pointerdown",function(d){n.kh(d)},!1),g.addEventListener("pointermove",function(d){n.jh(d)},!1),g.addEventListener("pointerup",function(d){n.Gd(d)},!1),g.addEventListener("pointercancel",
function(d){n.Gd(d)},!1)):window.navigator.msPointerEnabled?(g.addEventListener("MSPointerDown",function(d){n.kh(d)},!1),g.addEventListener("MSPointerMove",function(d){n.jh(d)},!1),g.addEventListener("MSPointerUp",function(d){n.Gd(d)},!1),g.addEventListener("MSPointerCancel",function(d){n.Gd(d)},!1)):(g.addEventListener("touchstart",function(d){n.Yi(d)},!1),g.addEventListener("touchmove",function(d){n.Xi(d)},!1),g.addEventListener("touchend",function(d){n.Kf(d)},!1),g.addEventListener("touchcancel",
function(d){n.Kf(d)},!1))}
(function(){function g(a){var b,c;b=0;for(c=a.F.length;b<c;b++)if(a.F[b]instanceof r.Ea)return a.F[b];return null}function n(){}function d(){}var r=nc.prototype,l={left:0,top:0};r.gh=function(a){1===a.which&&this.yl("leftmouse",a.pageX,a.pageY)};r.hh=function(a){1===a.which&&this.zl("leftmouse",a.pageX,a.pageY)};r.ih=function(a){1===a.which&&this.Al("leftmouse")};r.Yi=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var b,c,d,f;b=0;for(c=a.changedTouches.length;b<c;b++)d=a.changedTouches[b],
f=d.identifier,this.yl(f?f.toString():"<none>",d.pageX,d.pageY)};r.Xi=function(a){a.preventDefault&&a.preventDefault();var b,c,d,f;b=0;for(c=a.changedTouches.length;b<c;b++)d=a.changedTouches[b],f=d.identifier,this.zl(f?f.toString():"<none>",d.pageX,d.pageY)};r.Kf=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var b,c,d;b=0;for(c=a.changedTouches.length;b<c;b++)d=a.changedTouches[b],d=d.identifier,this.Al(d?d.toString():"<none>")};r.kh=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&
"mouse"!==a.pointerType&&(a.preventDefault&&gb(a)&&a.preventDefault(),this.yl(a.pointerId.toString(),a.pageX,a.pageY))};r.jh=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&a.preventDefault(),this.zl(a.pointerId.toString(),a.pageX,a.pageY))};r.Gd=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&gb(a)&&a.preventDefault(),this.Al(a.pointerId.toString()))};r.yl=function(a,b,c){var d=this.b.da?l:jQuery(this.b.canvas).offset();
b-=d.left;c-=d.top;var f,h,n,k,d=this.Hf.Tc(),m,r,A,q=null;m=0;for(r=d.length;m<r;m++)if(A=d[m],f=g(A),f.enabled&&!f.Zd&&(f=A.d.na(b,c,!0),h=A.d.na(b,c,!1),A.ma(),A.$a(f,h)))q?A.d.index>q.d.index?(q=A,n=f,k=h):A.d.index===q.d.index&&A.tc()>q.tc()&&(q=A,n=f,k=h):(q=A,n=f,k=h);q&&g(q).lt(a,n,k)};r.zl=function(a,b,c){var d=this.b.da?l:jQuery(this.b.canvas).offset();b-=d.left;c-=d.top;var f,h=this.Hf.Tc(),n,k,m;n=0;for(k=h.length;n<k;n++)f=h[n],m=g(f),!m.enabled||!m.Zd||m.Zd&&m.pk!==a||(d=f.d.na(b,c,
!0),f=f.d.na(b,c,!1),m.pt(d,f))};r.Al=function(a){var b=this.Hf.Tc(),c,d,f;c=0;for(d=b.length;c<d;c++)f=b[c],f=g(f),f.Zd&&f.pk===a&&f.ut()};r.gb=function(a){this.behavior=a;this.b=a.b};r.gb.prototype.ha=function(){};r.Ea=function(a,b){this.type=a;this.behavior=a.behavior;this.Cb=b;this.b=a.b};var c=r.Ea.prototype;c.ha=function(){this.Zd=!1;this.bn=this.an=0;this.pk="<none>";this.Yj=this.Da[0];this.enabled=0!==this.Da[1]};c.Wb=function(){return{enabled:this.enabled}};c.xc=function(a){this.enabled=
a.enabled;this.Zd=!1};c.lt=function(a,b,c){this.an=b-this.Cb.x;this.bn=c-this.Cb.y;this.Zd=!0;this.pk=a;this.b.ga=!0;this.b.trigger(nc.prototype.j.ym,this.Cb);this.b.ga=!1};c.pt=function(a,b){var c=a-this.an,d=b-this.bn;if(0===this.Yj){if(this.Cb.x!==c||this.Cb.y!==d)this.Cb.x=c,this.Cb.y=d,this.Cb.qa()}else 1===this.Yj?this.Cb.x!==c&&(this.Cb.x=c,this.Cb.qa()):2===this.Yj&&this.Cb.y!==d&&(this.Cb.y=d,this.Cb.qa())};c.ut=function(){this.Zd=!1;this.b.ga=!0;this.b.trigger(nc.prototype.j.gq,this.Cb);
this.b.ga=!1};c.Za=function(){};n.prototype.ym=function(){return!0};n.prototype.gq=function(){return!0};r.j=new n;d.prototype.xq=function(a){this.enabled=0!==a;this.enabled||(this.Zd=!1)};r.ka=new d;r.Qb=new function(){}})();
function fc(){return[hc,ic,jc,kc,gc,mc,Z,nc,jc.prototype.j.Pp,gc.prototype.ka.yq,jc.prototype.j.Pj,Z.prototype.j.Rp,W.prototype.ka.Aq,jc.prototype.j.Np,W.prototype.j.Jp,W.prototype.ka.vq,W.prototype.ka.Wp,W.prototype.ka.Dq,Z.prototype.j.Rj,gc.prototype.ka.Bq,hc.prototype.ka.Play,W.prototype.j.zm,jc.prototype.j.wm,gc.prototype.j.Sp,W.prototype.j.Cq,gc.prototype.ka.Kp,W.prototype.ka.Ep,gc.prototype.ka.wq,nc.prototype.j.ym,gc.prototype.j.Qp,nc.prototype.ka.xq,gc.prototype.ka.zq,W.prototype.ka.tq,W.prototype.ka.uq,
W.prototype.ka.Vp]};
