// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var ba,ca,ea,fa,ga,ha,ia,ka,la,ma,pa,qa,ra,sa,ta,ua,va,wa,xa,ya,Ba,Ca,y,Ea,Fa,Ga,Ha,Ia,B,Ja,Ka,La,Na,Oa,Pa,Qa,Ra,Ta,Ua,Va,Wa,Xa,Ya,Za,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc,hc,ic={},jc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});
(function(){function e(b,a,d,f){this.set(b,a,d,f)}function k(){this.wc=this.vc=this.zc=this.yc=this.Kc=this.Jc=this.cc=this.ac=0}function c(b,a,d,f){b<a?d<f?(x=b<d?b:d,l=a>f?a:f):(x=b<f?b:f,l=a>d?a:d):d<f?(x=a<d?a:d,l=b>f?b:f):(x=a<f?a:f,l=b>d?b:d)}function n(){this.items=this.Md=null;this.Eh=0;D&&(this.Md=new Set);this.Sg=[];this.Ae=!0}function h(b){T[Q++]=b}function t(){this.T=this.Jk=this.y=this.ll=0}function r(b){this.nb=[];this.Ji=this.Li=this.Mi=this.Ki=0;this.ji(b)}function a(b,a){this.pl=
b;this.ol=a;this.cells={}}function d(b,a){this.pl=b;this.ol=a;this.cells={}}function p(b,a,d){var f;return H.length?(f=H.pop(),f.Xl=b,f.x=a,f.y=d,f):new ca(b,a,d)}function b(b,a,d){this.Xl=b;this.x=a;this.y=d;this.qb=new ea}function g(b,a,d){var f;return P.length?(f=P.pop(),f.Xl=b,f.x=a,f.y=d,f):new fa(b,a,d)}function v(b,a,d){this.Xl=b;this.x=a;this.y=d;this.qb=[];this.jg=!0;this.Jd=new ea;this.Xg=!1}function f(b,a){return b.yd-a.yd}ga=function(b){window.console&&window.console.log&&window.console.log(b)};
ha=function(b){window.console&&window.console.error&&window.console.error(b)};ba=function(b){return b};ia=function(b){return"undefined"===typeof b};ka=function(b){return"number"===typeof b};la=function(b){return"string"===typeof b};ma=function(b){return 0<b&&0===(b-1&b)};pa=function(b){--b;for(var a=1;32>a;a<<=1)b=b|b>>a;return b+1};qa=function(b){return 0>b?-b:b};ra=function(b,a){return b<a?b:a};sa=Math.PI;ta=function(b){return 0<=b?b|0:(b|0)-1};ua=function(b){var a=b|0;return a===b?a:a+1};va=function(b,
a,d,f,g,u,m,p){var c,l,q,v;b<d?(l=b,c=d):(l=d,c=b);g<m?(v=g,q=m):(v=m,q=g);if(c<v||l>q)return!1;a<f?(l=a,c=f):(l=f,c=a);u<p?(v=u,q=p):(v=p,q=u);if(c<v||l>q)return!1;c=g-b+m-d;l=u-a+p-f;b=d-b;a=f-a;g=m-g;u=p-u;p=qa(a*g-u*b);return qa(g*l-u*c)>p?!1:qa(b*l-a*c)<=p};e.prototype.set=function(b,a,d,f){this.left=b;this.top=a;this.right=d;this.bottom=f};e.prototype.Tf=function(b){this.left=b.left;this.top=b.top;this.right=b.right;this.bottom=b.bottom};e.prototype.width=function(){return this.right-this.left};
e.prototype.height=function(){return this.bottom-this.top};e.prototype.offset=function(b,a){this.left+=b;this.top+=a;this.right+=b;this.bottom+=a;return this};e.prototype.normalize=function(){var b=0;this.left>this.right&&(b=this.left,this.left=this.right,this.right=b);this.top>this.bottom&&(b=this.top,this.top=this.bottom,this.bottom=b)};e.prototype.zv=function(b){return!(b.right<this.left||b.bottom<this.top||b.left>this.right||b.top>this.bottom)};e.prototype.Av=function(b,a,d){return!(b.right+a<
this.left||b.bottom+d<this.top||b.left+a>this.right||b.top+d>this.bottom)};e.prototype.Fb=function(b,a){return b>=this.left&&b<=this.right&&a>=this.top&&a<=this.bottom};e.prototype.eh=function(b){return this.left===b.left&&this.top===b.top&&this.right===b.right&&this.bottom===b.bottom};wa=e;k.prototype.Lg=function(b){this.ac=b.left;this.cc=b.top;this.Jc=b.right;this.Kc=b.top;this.yc=b.right;this.zc=b.bottom;this.vc=b.left;this.wc=b.bottom};k.prototype.Yq=function(b,a){if(0===a)this.Lg(b);else{var d=
Math.sin(a),f=Math.cos(a),g=b.left*d,u=b.top*d,m=b.right*d,d=b.bottom*d,p=b.left*f,c=b.top*f,l=b.right*f,f=b.bottom*f;this.ac=p-u;this.cc=c+g;this.Jc=l-u;this.Kc=c+m;this.yc=l-d;this.zc=f+m;this.vc=p-d;this.wc=f+g}};k.prototype.offset=function(b,a){this.ac+=b;this.cc+=a;this.Jc+=b;this.Kc+=a;this.yc+=b;this.zc+=a;this.vc+=b;this.wc+=a;return this};var x=0,l=0;k.prototype.Lo=function(b){c(this.ac,this.Jc,this.yc,this.vc);b.left=x;b.right=l;c(this.cc,this.Kc,this.zc,this.wc);b.top=x;b.bottom=l};k.prototype.Fb=
function(b,a){var d=this.ac,f=this.cc,g=this.Jc-d,u=this.Kc-f,m=this.yc-d,p=this.zc-f,c=b-d,l=a-f,q=g*g+u*u,v=g*m+u*p,u=g*c+u*l,e=m*m+p*p,r=m*c+p*l,x=1/(q*e-v*v),g=(e*u-v*r)*x,q=(q*r-v*u)*x;if(0<=g&&0<q&&1>g+q)return!0;g=this.vc-d;u=this.wc-f;q=g*g+u*u;v=g*m+u*p;u=g*c+u*l;x=1/(q*e-v*v);g=(e*u-v*r)*x;q=(q*r-v*u)*x;return 0<=g&&0<q&&1>g+q};k.prototype.Nc=function(b,a){if(a)switch(b){case 0:return this.ac;case 1:return this.Jc;case 2:return this.yc;case 3:return this.vc;case 4:return this.ac;default:return this.ac}else switch(b){case 0:return this.cc;
case 1:return this.Kc;case 2:return this.zc;case 3:return this.wc;case 4:return this.cc;default:return this.cc}};k.prototype.jq=function(){return(this.ac+this.Jc+this.yc+this.vc)/4};k.prototype.kq=function(){return(this.cc+this.Kc+this.zc+this.wc)/4};k.prototype.Cp=function(b){var a=b.jq(),d=b.kq();if(this.Fb(a,d))return!0;a=this.jq();d=this.kq();if(b.Fb(a,d))return!0;var f,g,u,m,p,c,l,q;for(l=0;4>l;l++)for(q=0;4>q;q++)if(a=this.Nc(l,!0),d=this.Nc(l,!1),f=this.Nc(l+1,!0),g=this.Nc(l+1,!1),u=b.Nc(q,
!0),m=b.Nc(q,!1),p=b.Nc(q+1,!0),c=b.Nc(q+1,!1),va(a,d,f,g,u,m,p,c))return!0;return!1};xa=k;ya=function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);return b};Ba=function(b,a){var d,f;a=ta(a);if(!(0>a||a>=b.length)){d=a;for(f=b.length-1;d<f;d++)b[d]=b[d+1];Ca(b,f)}};Ca=function(b,a){b.length=a};y=function(b){Ca(b,0)};Ea=function(b,a){y(b);var d,f;d=0;for(f=a.length;d<f;++d)b[d]=a[d]};Fa=function(b,a){b.push.apply(b,a)};Ga=function(b,a){var d,f;d=0;for(f=b.length;d<f;++d)if(b[d]===a)return d;
return-1};Ha=function(b,a){var d=Ga(b,a);-1!==d&&Ba(b,d)};Ia=function(b,a,d){return b<a?a:b>d?d:b};B=function(b){return b/(180/sa)};Ja=function(b){return 180/sa*b};Ka=function(b){b%=360;0>b&&(b+=360);return b};La=function(b){b%=2*sa;0>b&&(b+=2*sa);return b};Na=function(b){return Ka(Ja(b))};Oa=function(b){return La(B(b))};Pa=function(b,a,d,f){return Math.atan2(f-a,d-b)};Qa=function(b,a){if(b===a)return 0;var d=Math.sin(b),f=Math.cos(b),g=Math.sin(a),u=Math.cos(a),d=d*g+f*u;return 1<=d?0:-1>=d?sa:Math.acos(d)};
Ra=function(b,a,d){var f=Math.sin(b),g=Math.cos(b),u=Math.sin(a),m=Math.cos(a);return Math.acos(f*u+g*m)>d?0<g*u-f*m?La(b+d):La(b-d):La(a)};Ta=function(b,a){var d=Math.sin(b),f=Math.cos(b),g=Math.sin(a),u=Math.cos(a);return 0>=f*g-d*u};Ua=function(b,a,d,f,g,u){if(0===d)return u?b:a;var m=Math.sin(d);d=Math.cos(d);b-=f;a-=g;var p=b*m;b=b*d-a*m;a=a*d+p;return u?b+f:a+g};Va=function(b,a,d,f){b=d-b;a=f-a;return Math.sqrt(b*b+a*a)};Wa=function(b,a){return!b!==!a};Xa=function(b){for(var a in b)if(b.hasOwnProperty(a))return!0;
return!1};Ya=function(b){for(var a in b)b.hasOwnProperty(a)&&delete b[a]};var I=+new Date;Za=function(){if("undefined"!==typeof window.performance){var b=window.performance;if("undefined"!==typeof b.now)return b.now();if("undefined"!==typeof b.webkitNow)return b.webkitNow();if("undefined"!==typeof b.mozNow)return b.mozNow();if("undefined"!==typeof b.msNow)return b.msNow()}return Date.now()-I};var m=!1,q=m=!1,ja=!1;"undefined"!==typeof window&&(m=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
m=!m&&/safari/i.test(navigator.userAgent),q=/(iphone|ipod|ipad)/i.test(navigator.userAgent),ja=window.c2ejecta);var D=!m&&!ja&&!q&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;n.prototype.contains=function(b){return this.$d()?!1:D?this.Md.has(b):this.items&&this.items.hasOwnProperty(b)};n.prototype.add=function(b){if(D)this.Md.has(b)||(this.Md.add(b),this.Ae=!1);else{var a=b.toString(),d=this.items;d?d.hasOwnProperty(a)||(d[a]=b,this.Eh++,this.Ae=!1):(this.items={},this.items[a]=
b,this.Eh=1,this.Ae=!1)}};n.prototype.remove=function(b){if(!this.$d())if(D)this.Md.has(b)&&(this.Md["delete"](b),this.Ae=!1);else if(this.items){b=b.toString();var a=this.items;a.hasOwnProperty(b)&&(delete a[b],this.Eh--,this.Ae=!1)}};n.prototype.clear=function(){this.$d()||(D?this.Md.clear():(this.items=null,this.Eh=0),y(this.Sg),this.Ae=!0)};n.prototype.$d=function(){return 0===this.count()};n.prototype.count=function(){return D?this.Md.size:this.Eh};var T=null,Q=0;n.prototype.gx=function(){if(!this.Ae){if(D)y(this.Sg),
T=this.Sg,Q=0,this.Md.forEach(h),T=null,Q=0;else{var b=this.Sg;y(b);var a,d=0,f=this.items;if(f)for(a in f)f.hasOwnProperty(a)&&(b[d++]=f[a])}this.Ae=!0}};n.prototype.cd=function(){this.gx();return this.Sg};ea=n;new ea;eb=function(b,a){D?fb(b,a.Md):gb(b,a.cd())};fb=function(b,a){var d,f,g,u;f=d=0;for(g=b.length;d<g;++d)u=b[d],a.has(u)||(b[f++]=u);Ca(b,f)};gb=function(b,a){var d,f,g,u;f=d=0;for(g=b.length;d<g;++d)u=b[d],-1===Ga(a,u)&&(b[f++]=u);Ca(b,f)};t.prototype.add=function(b){this.y=b-this.ll;
this.Jk=this.T+this.y;this.ll=this.Jk-this.T-this.y;this.T=this.Jk};t.prototype.reset=function(){this.T=this.Jk=this.y=this.ll=0};hb=t;ib=function(b){return b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};r.prototype.ji=function(b){this.Kq=b;this.rd=b.length/2;this.nb.length=b.length;this.Pi=this.Qi=-1;this.Oo=0};r.prototype.gg=function(){return!this.Kq.length};r.prototype.Ba=function(){for(var b=this.nb,a=b[0],d=a,f=b[1],g=f,u,m,p=1,c=this.rd;p<c;++p)m=2*p,u=b[m],m=b[m+1],u<a&&(a=u),u>d&&(d=u),m<f&&
(f=m),m>g&&(g=m);this.Ki=a;this.Li=d;this.Mi=f;this.Ji=g};r.prototype.Lg=function(b,a,d){this.nb.length=8;this.rd=4;var f=this.nb;f[0]=b.left-a;f[1]=b.top-d;f[2]=b.right-a;f[3]=b.top-d;f[4]=b.right-a;f[5]=b.bottom-d;f[6]=b.left-a;f[7]=b.bottom-d;this.Qi=b.right-b.left;this.Pi=b.bottom-b.top;this.Ba()};r.prototype.Kg=function(b,a,d,f,g){this.nb.length=8;this.rd=4;var u=this.nb;u[0]=b.ac-a;u[1]=b.cc-d;u[2]=b.Jc-a;u[3]=b.Kc-d;u[4]=b.yc-a;u[5]=b.zc-d;u[6]=b.vc-a;u[7]=b.wc-d;this.Qi=f;this.Pi=g;this.Ba()};
r.prototype.Xq=function(b){this.rd=b.rd;Ea(this.nb,b.nb);this.Ki=b.Ki;this.Mi-b.Mi;this.Li=b.Li;this.Ji=b.Ji};r.prototype.Sf=function(b,a,d){if(this.Qi!==b||this.Pi!==a||this.Oo!==d){this.Qi=b;this.Pi=a;this.Oo=d;var f,g,u,m,p,c=0,l=1,q=this.Kq,v=this.nb;0!==d&&(c=Math.sin(d),l=Math.cos(d));d=0;for(u=this.rd;d<u;d++)f=2*d,g=f+1,m=q[f]*b,p=q[g]*a,v[f]=m*l-p*c,v[g]=p*l+m*c;this.Ba()}};r.prototype.Fb=function(b,a){var d=this.nb;if(b===d[0]&&a===d[1])return!0;var f,g,u,m=this.rd,p=this.Ki-110,c=this.Mi-
101,l=this.Li+131,q=this.Ji+120,v,e,r=0,x=0;for(f=0;f<m;f++)g=2*f,u=(f+1)%m*2,v=d[g],g=d[g+1],e=d[u],u=d[u+1],va(p,c,b,a,v,g,e,u)&&r++,va(l,q,b,a,v,g,e,u)&&x++;return 1===r%2||1===x%2};r.prototype.sh=function(b,a,d){var f=b.nb,g=this.nb;if(this.Fb(f[0]+a,f[1]+d)||b.Fb(g[0]-a,g[1]-d))return!0;var u,m,p,c,l,q,v,e,r,x,k,h;u=0;for(c=this.rd;u<c;u++)for(m=2*u,p=(u+1)%c*2,e=g[m],m=g[m+1],r=g[p],x=g[p+1],p=0,v=b.rd;p<v;p++)if(l=2*p,q=(p+1)%v*2,k=f[l]+a,l=f[l+1]+d,h=f[q]+a,q=f[q+1]+d,va(e,m,r,x,k,l,h,q))return!0;
return!1};jb=r;a.prototype.Ke=function(b,a,d){var f;f=this.cells[b];return f?(f=f[a])?f:d?(f=p(this,b,a),this.cells[b][a]=f):null:d?(f=p(this,b,a),this.cells[b]={},this.cells[b][a]=f):null};a.prototype.Tb=function(b){return ta(b/this.pl)};a.prototype.Ub=function(b){return ta(b/this.ol)};a.prototype.update=function(b,a,d){var f,g,u,m,p;if(a)for(f=a.left,g=a.right;f<=g;++f)for(u=a.top,m=a.bottom;u<=m;++u)if(!d||!d.Fb(f,u))if(p=this.Ke(f,u,!1))p.remove(b),p.$d()&&(p.qb.clear(),1E3>H.length&&H.push(p),
this.cells[f][u]=null);if(d)for(f=d.left,g=d.right;f<=g;++f)for(u=d.top,m=d.bottom;u<=m;++u)a&&a.Fb(f,u)||this.Ke(f,u,!0).lm(b)};a.prototype.qk=function(b,a){var d,f,g,u,m,p;d=this.Tb(b.left);g=this.Ub(b.top);f=this.Tb(b.right);for(m=this.Ub(b.bottom);d<=f;++d)for(u=g;u<=m;++u)(p=this.Ke(d,u,!1))&&p.dump(a)};kb=a;d.prototype.Ke=function(b,a,d){var f;f=this.cells[b];return f?(f=f[a])?f:d?(f=g(this,b,a),this.cells[b][a]=f):null:d?(f=g(this,b,a),this.cells[b]={},this.cells[b][a]=f):null};d.prototype.Tb=
function(b){return ta(b/this.pl)};d.prototype.Ub=function(b){return ta(b/this.ol)};d.prototype.update=function(b,a,d){var f,g,u,m,p;if(a)for(f=a.left,g=a.right;f<=g;++f)for(u=a.top,m=a.bottom;u<=m;++u)if(!d||!d.Fb(f,u))if(p=this.Ke(f,u,!1))p.remove(b),p.$d()&&(p.reset(),1E3>P.length&&P.push(p),this.cells[f][u]=null);if(d)for(f=d.left,g=d.right;f<=g;++f)for(u=d.top,m=d.bottom;u<=m;++u)a&&a.Fb(f,u)||this.Ke(f,u,!0).lm(b)};d.prototype.qk=function(b,a,d,f,g){var u,m;b=this.Tb(b);a=this.Ub(a);d=this.Tb(d);
for(u=this.Ub(f);b<=d;++b)for(f=a;f<=u;++f)(m=this.Ke(b,f,!1))&&m.dump(g)};d.prototype.Rv=function(b){var a,d,f,g,u;a=b.left;f=b.top;d=b.right;for(g=b.bottom;a<=d;++a)for(b=f;b<=g;++b)if(u=this.Ke(a,b,!1))u.jg=!1};lb=d;var H=[];b.prototype.$d=function(){return this.qb.$d()};b.prototype.lm=function(b){this.qb.add(b)};b.prototype.remove=function(b){this.qb.remove(b)};b.prototype.dump=function(b){Fa(b,this.qb.cd())};ca=b;var P=[];v.prototype.$d=function(){if(!this.qb.length)return!0;if(this.qb.length>
this.Jd.count())return!1;this.Jl();return!0};v.prototype.lm=function(b){this.Jd.contains(b)?(this.Jd.remove(b),this.Jd.$d()&&(this.Xg=!1)):this.qb.length?(this.qb[this.qb.length-1].Uc()>b.Uc()&&(this.jg=!1),this.qb.push(b)):(this.qb.push(b),this.jg=!0)};v.prototype.remove=function(b){this.Jd.add(b);this.Xg=!0;30<=this.Jd.count()&&this.Jl()};v.prototype.Jl=function(){this.Xg&&(this.Jd.count()===this.qb.length?this.reset():(eb(this.qb,this.Jd),this.Jd.clear(),this.Xg=!1))};v.prototype.cu=function(){this.jg||
(this.qb.sort(f),this.jg=!0)};v.prototype.reset=function(){y(this.qb);this.jg=!0;this.Jd.clear();this.Xg=!1};v.prototype.dump=function(b){this.Jl();this.cu();this.qb.length&&b.push(this.qb)};fa=v;var J="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");mb=function(b){return 0>=b||11<=b?"source-over":J[b-1]};nb=function(b,a,d){if(d)switch(b.Lb=d.ONE,b.Gb=d.ONE_MINUS_SRC_ALPHA,a){case 1:b.Lb=d.ONE;b.Gb=d.ONE;break;case 3:b.Lb=
d.ONE;b.Gb=d.ZERO;break;case 4:b.Lb=d.ONE_MINUS_DST_ALPHA;b.Gb=d.ONE;break;case 5:b.Lb=d.DST_ALPHA;b.Gb=d.ZERO;break;case 6:b.Lb=d.ZERO;b.Gb=d.SRC_ALPHA;break;case 7:b.Lb=d.ONE_MINUS_DST_ALPHA;b.Gb=d.ZERO;break;case 8:b.Lb=d.ZERO;b.Gb=d.ONE_MINUS_SRC_ALPHA;break;case 9:b.Lb=d.DST_ALPHA;b.Gb=d.ONE_MINUS_SRC_ALPHA;break;case 10:b.Lb=d.ONE_MINUS_DST_ALPHA,b.Gb=d.SRC_ALPHA}};ob=function(b){return Math.round(1E6*b)/1E6};pb=function(b,a){return"string"!==typeof b||"string"!==typeof a||b.length!==a.length?
!1:b===a?!0:b.toLowerCase()===a.toLowerCase()};qb=function(b){b=b.target;return!b||b===document||b===window||document&&document.body&&b===document.body||pb(b.tagName,"canvas")?!0:!1}})();var kc="undefined"!==typeof Float32Array?Float32Array:Array;function lc(e){var k=new kc(3);e&&(k[0]=e[0],k[1]=e[1],k[2]=e[2]);return k}
function mc(e){var k=new kc(16);e&&(k[0]=e[0],k[1]=e[1],k[2]=e[2],k[3]=e[3],k[4]=e[4],k[5]=e[5],k[6]=e[6],k[7]=e[7],k[8]=e[8],k[9]=e[9],k[10]=e[10],k[11]=e[11],k[12]=e[12],k[13]=e[13],k[14]=e[14],k[15]=e[15]);return k}function nc(e,k){k[0]=e[0];k[1]=e[1];k[2]=e[2];k[3]=e[3];k[4]=e[4];k[5]=e[5];k[6]=e[6];k[7]=e[7];k[8]=e[8];k[9]=e[9];k[10]=e[10];k[11]=e[11];k[12]=e[12];k[13]=e[13];k[14]=e[14];k[15]=e[15]}
function oc(e,k){var c=k[0],n=k[1];k=k[2];e[0]*=c;e[1]*=c;e[2]*=c;e[3]*=c;e[4]*=n;e[5]*=n;e[6]*=n;e[7]*=n;e[8]*=k;e[9]*=k;e[10]*=k;e[11]*=k}
function pc(e,k,c,n){n||(n=mc());var h,t,r,a,d,p,b,g,v=e[0],f=e[1];e=e[2];t=c[0];r=c[1];h=c[2];c=k[1];p=k[2];v===k[0]&&f===c&&e===p?(e=n,e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1):(c=v-k[0],p=f-k[1],b=e-k[2],g=1/Math.sqrt(c*c+p*p+b*b),c*=g,p*=g,b*=g,k=r*b-h*p,h=h*c-t*b,t=t*p-r*c,(g=Math.sqrt(k*k+h*h+t*t))?(g=1/g,k*=g,h*=g,t*=g):t=h=k=0,r=p*t-b*h,a=b*k-c*t,d=c*h-p*k,(g=Math.sqrt(r*r+a*a+d*d))?(g=1/g,r*=g,a*=g,d*=g):d=a=r=0,
n[0]=k,n[1]=r,n[2]=c,n[3]=0,n[4]=h,n[5]=a,n[6]=p,n[7]=0,n[8]=t,n[9]=d,n[10]=b,n[11]=0,n[12]=-(k*v+h*f+t*e),n[13]=-(r*v+a*f+d*e),n[14]=-(c*v+p*f+b*e),n[15]=1)}
(function(){function e(a,d,p){this.Ne=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.ta=!!p;this.Dj=this.vh=!1;this.ul=0;this.Yk=1;this.Wn=1E3;this.mx=(this.Wn-this.Yk)/32768;this.ml=lc([0,0,100]);this.Tp=lc([0,0,0]);this.ur=lc([0,1,0]);this.Di=lc([1,1,1]);this.cp=!0;this.Tj=mc();this.Fc=mc();this.wm=mc();this.tl=mc();this.q=a;this.yp()}function k(a,d,p){this.q=a;this.ki=d;this.name=p;this.Xc=a.getAttribLocation(d,"aPos");this.Te=a.getAttribLocation(d,
"aTex");this.Rp=a.getUniformLocation(d,"matP");this.Oj=a.getUniformLocation(d,"matMV");this.tg=a.getUniformLocation(d,"opacity");this.zm=a.getUniformLocation(d,"colorFill");this.Sp=a.getUniformLocation(d,"samplerFront");this.Mh=a.getUniformLocation(d,"samplerBack");this.Cf=a.getUniformLocation(d,"destStart");this.Bf=a.getUniformLocation(d,"destEnd");this.Oh=a.getUniformLocation(d,"seconds");this.Bm=a.getUniformLocation(d,"pixelWidth");this.Am=a.getUniformLocation(d,"pixelHeight");this.Lh=a.getUniformLocation(d,
"layerScale");this.Kh=a.getUniformLocation(d,"layerAngle");this.Ph=a.getUniformLocation(d,"viewOrigin");this.Nh=a.getUniformLocation(d,"scrollPos");this.tv=!!(this.Bm||this.Am||this.Oh||this.Mh||this.Cf||this.Bf||this.Lh||this.Kh||this.Ph||this.Nh);this.aq=this.bq=-999;this.Sj=1;this.Xp=this.Wp=0;this.Zp=this.Vp=this.Up=1;this.fq=this.dq=this.cq=this.hq=this.gq=this.Yp=0;this.vm=[];this.$p=mc();this.tg&&a.uniform1f(this.tg,1);this.zm&&a.uniform4f(this.zm,1,1,1,1);this.Sp&&a.uniform1i(this.Sp,0);this.Mh&&
a.uniform1i(this.Mh,1);this.Cf&&a.uniform2f(this.Cf,0,0);this.Bf&&a.uniform2f(this.Bf,1,1);this.Lh&&a.uniform1f(this.Lh,1);this.Kh&&a.uniform1f(this.Kh,0);this.Ph&&a.uniform2f(this.Ph,0,0);this.Nh&&a.uniform2f(this.Nh,0,0);this.Oh&&a.uniform1f(this.Oh,0);this.rf=!1}function c(a,d){return a[0]===d[0]&&a[1]===d[1]&&a[2]===d[2]&&a[3]===d[3]&&a[4]===d[4]&&a[5]===d[5]&&a[6]===d[6]&&a[7]===d[7]&&a[8]===d[8]&&a[9]===d[9]&&a[10]===d[10]&&a[11]===d[11]&&a[12]===d[12]&&a[13]===d[13]&&a[14]===d[14]&&a[15]===
d[15]}function n(a,d){this.type=a;this.u=d;this.q=d.q;this.Vc=this.Mb=this.xq=0;this.O=this.bd=null;this.Zq=[]}var h=mc();e.prototype.yp=function(){var a=this.q,d;this.Mp=1;this.yf=this.xf=null;this.Yi=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.ta?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):a.disable(a.DEPTH_TEST);this.Np=a.ONE;this.Lp=a.ONE_MINUS_SRC_ALPHA;
this.Uk=new Float32Array(8E3*(this.ta?3:2));this.Kk=new Float32Array(16E3);this.Xm=new Float32Array(32E3);this.Wm=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Wm);a.bufferData(a.ARRAY_BUFFER,this.Xm.byteLength,a.DYNAMIC_DRAW);this.Ci=Array(4);this.si=Array(4);for(d=0;4>d;d++)this.Ci[d]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Ci[d]),a.bufferData(a.ARRAY_BUFFER,this.Uk.byteLength,a.DYNAMIC_DRAW),this.si[d]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.si[d]),a.bufferData(a.ARRAY_BUFFER,
this.Kk.byteLength,a.DYNAMIC_DRAW);this.Rd=0;this.xv=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.xv);for(var p=new Uint16Array(12E3),b=d=0;12E3>d;)p[d++]=b,p[d++]=b+1,p[d++]=b+2,p[d++]=b,p[d++]=b+2,p[d++]=b+3,b+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,p,a.STATIC_DRAW);this.Dg=this.Pg=this.qe=0;this.Na=[];d=this.ta?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";p=this.ah({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}"},d,"<default>");this.Na.push(p);p=this.ah({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.Na.push(p);p=this.ah({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},d,"<earlyz>");this.Na.push(p);p=this.ah({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
d,"<fill>");this.Na.push(p);for(var g in qc)qc.hasOwnProperty(g)&&this.Na.push(this.ah(qc[g],d,g));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Qd=[];this.Bd=0;this.Ib=this.xb=!1;this.Vo=this.Fh=-1;this.Vf=null;this.Hl=a.createFramebuffer();this.bj=this.sk=null;this.Io=!1;this.ta&&(this.bj=a.createRenderbuffer());this.Ze=lc([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.Uv=a[0];this.Fm=a[1];2048<this.Fm&&(this.Fm=2048);this.$b(0)};k.prototype.Pn=function(a){c(this.$p,
a)||(nc(a,this.$p),this.q.uniformMatrix4fv(this.Oj,!1,a))};e.prototype.ah=function(a,d,p){var b=this.q,g=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(g,a.src);b.compileShader(g);if(!b.getShaderParameter(g,b.COMPILE_STATUS))return b.deleteShader(g),null;var c=b.createShader(b.VERTEX_SHADER);b.shaderSource(c,d);b.compileShader(c);if(!b.getShaderParameter(c,b.COMPILE_STATUS))return b.deleteShader(g),b.deleteShader(c),null;d=b.createProgram();b.attachShader(d,g);b.attachShader(d,c);b.linkProgram(d);
if(!b.getProgramParameter(d,b.LINK_STATUS))return b.deleteShader(g),b.deleteShader(c),b.deleteProgram(d),null;b.useProgram(d);b.deleteShader(g);b.deleteShader(c);p=new k(b,d,p);p.Fl=a.Fl||0;p.Gl=a.Gl||0;p.Uo=!!a.Uo;p.qd=!!a.qd;p.Go=!!a.Go;p.N=a.N||[];a=0;for(g=p.N.length;a<g;a++)p.N[a][1]=b.getUniformLocation(d,p.N[a][0]),p.vm.push(0),b.uniform1f(p.N[a][1],0);return p};e.prototype.Vl=function(a){var d,p;d=0;for(p=this.Na.length;d<p;d++)if(this.Na[d].name===a)return d;return-1};e.prototype.Jq=function(a,
d,p){var b=this.Fc,g=this.Tj,c=[0,0,0,0,0,0,0,0];c[0]=b[0]*a+b[4]*d+b[12];c[1]=b[1]*a+b[5]*d+b[13];c[2]=b[2]*a+b[6]*d+b[14];c[3]=b[3]*a+b[7]*d+b[15];c[4]=g[0]*c[0]+g[4]*c[1]+g[8]*c[2]+g[12]*c[3];c[5]=g[1]*c[0]+g[5]*c[1]+g[9]*c[2]+g[13]*c[3];c[6]=g[2]*c[0]+g[6]*c[1]+g[10]*c[2]+g[14]*c[3];c[7]=-c[2];0!==c[7]&&(c[7]=1/c[7],c[4]*=c[7],c[5]*=c[7],c[6]*=c[7],p[0]=(.5*c[4]+.5)*this.width,p[1]=(.5*c[5]+.5)*this.height)};e.prototype.ke=function(a,d,p){if(this.width!==a||this.height!==d||p){this.Ie();p=this.q;
this.width=a;this.height=d;p.viewport(0,0,a,d);pc(this.ml,this.Tp,this.ur,this.Fc);if(this.ta){var b=-a/2;a=a/2;var g=d/2;d=-d/2;var c=this.Yk,f=this.Wn,e=this.Tj;e||(e=mc());var l=a-b,r=d-g,m=f-c;e[0]=2/l;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=2/r;e[6]=0;e[7]=0;e[8]=0;e[9]=0;e[10]=-2/m;e[11]=0;e[12]=-(b+a)/l;e[13]=-(d+g)/r;e[14]=-(f+c)/m;e[15]=1;this.Di[0]=1;this.Di[1]=1}else d=a/d,b=this.Yk,a=this.Wn,e=this.Tj,f=b*Math.tan(45*Math.PI/360),d*=f,g=-d,c=-f,e||(e=mc()),l=d-g,r=f-c,m=a-b,e[0]=2*b/l,e[1]=0,
e[2]=0,e[3]=0,e[4]=0,e[5]=2*b/r,e[6]=0,e[7]=0,e[8]=(d+g)/l,e[9]=(f+c)/r,e[10]=-(a+b)/m,e[11]=-1,e[12]=0,e[13]=0,e[14]=-(a*b*2)/m,e[15]=0,b=[0,0],a=[0,0],this.Jq(0,0,b),this.Jq(1,1,a),this.Di[0]=1/(a[0]-b[0]),this.Di[1]=-1/(a[1]-b[1]);b=0;for(a=this.Na.length;b<a;b++)g=this.Na[b],g.rf=!1,g.Rp&&(p.useProgram(g.ki),p.uniformMatrix4fv(g.Rp,!1,this.Tj));p.useProgram(this.Na[this.Fh].ki);p.bindTexture(p.TEXTURE_2D,null);p.activeTexture(p.TEXTURE1);p.bindTexture(p.TEXTURE_2D,null);p.activeTexture(p.TEXTURE0);
this.yf=this.xf=null;this.bj&&(p.bindFramebuffer(p.FRAMEBUFFER,this.Hl),p.bindRenderbuffer(p.RENDERBUFFER,this.bj),p.renderbufferStorage(p.RENDERBUFFER,p.DEPTH_COMPONENT16,this.width,this.height),this.Io||(p.framebufferRenderbuffer(p.FRAMEBUFFER,p.DEPTH_ATTACHMENT,p.RENDERBUFFER,this.bj),this.Io=!0),p.bindRenderbuffer(p.RENDERBUFFER,null),p.bindFramebuffer(p.FRAMEBUFFER,null),this.sk=null)}};e.prototype.Ld=function(){pc(this.ml,this.Tp,this.ur,this.Fc);oc(this.Fc,this.Di)};e.prototype.translate=function(a,
d){if(0!==a||0!==d){this.Ze[0]=a;this.Ze[1]=d;this.Ze[2]=0;var p=this.Fc,b=this.Ze,g=b[0],c=b[1],b=b[2];p[12]=p[0]*g+p[4]*c+p[8]*b+p[12];p[13]=p[1]*g+p[5]*c+p[9]*b+p[13];p[14]=p[2]*g+p[6]*c+p[10]*b+p[14];p[15]=p[3]*g+p[7]*c+p[11]*b+p[15]}};e.prototype.scale=function(a,d){if(1!==a||1!==d)this.Ze[0]=a,this.Ze[1]=d,this.Ze[2]=1,oc(this.Fc,this.Ze)};e.prototype.kn=function(a){if(0!==a){var d=this.Fc,c,b=Math.sin(a);a=Math.cos(a);var g=d[0],e=d[1],f=d[2],r=d[3],l=d[4],k=d[5],m=d[6],q=d[7];c?d!==c&&(c[8]=
d[8],c[9]=d[9],c[10]=d[10],c[11]=d[11],c[12]=d[12],c[13]=d[13],c[14]=d[14],c[15]=d[15]):c=d;c[0]=g*a+l*b;c[1]=e*a+k*b;c[2]=f*a+m*b;c[3]=r*a+q*b;c[4]=g*-b+l*a;c[5]=e*-b+k*a;c[6]=f*-b+m*a;c[7]=r*-b+q*a}};e.prototype.xd=function(){if(!c(this.wm,this.Fc)){var a=this.Xb();a.type=5;a.O?nc(this.Fc,a.O):a.O=mc(this.Fc);nc(this.Fc,this.wm);this.Ib=this.xb=!1}};e.prototype.yk=function(a){this.ta&&(32760<a&&(a=32760),this.ul=this.ml[2]-this.Yk-a*this.mx)};n.prototype.Mt=function(){var a=this.q,d=this.u;0!==
this.Mb?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,d.Hl),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),d.Dj=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),d.Dj=!1)};n.prototype.Qt=function(){this.q.bindTexture(this.q.TEXTURE_2D,this.bd)};n.prototype.Rt=function(){var a=this.q;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.bd);
a.activeTexture(a.TEXTURE0)};n.prototype.Nt=function(){var a=this.xq,d=this.u;d.Yi=a;d=d.Vf;d.tg&&d.Sj!==a&&(d.Sj=a,this.q.uniform1f(d.tg,a))};n.prototype.Ht=function(){this.q.drawElements(this.q.TRIANGLES,this.Vc,this.q.UNSIGNED_SHORT,this.Mb)};n.prototype.Jt=function(){this.q.blendFunc(this.Mb,this.Vc)};n.prototype.St=function(){var a,d,c,b=this.u.Na,g=this.u.Vo;a=0;for(d=b.length;a<d;a++)c=b[a],a===g&&c.Oj?(c.Pn(this.O),c.rf=!0):c.rf=!1;nc(this.O,this.u.tl)};n.prototype.It=function(){var a=this.q,
d=this.u;this.bd?(d.yf===this.bd&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),d.yf=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,d.Hl),d.Dj||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.bd,0)):(d.ta||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};n.prototype.Et=function(){var a=this.q,d=this.Mb;0===d?(a.clearColor(this.O[0],this.O[1],this.O[2],this.O[3]),a.clear(a.COLOR_BUFFER_BIT)):
1===d?(a.enable(a.SCISSOR_TEST),a.scissor(this.O[0],this.O[1],this.O[2],this.O[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};n.prototype.Lt=function(){var a=this.q;0!==this.Mb?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};n.prototype.Gt=function(){var a=this.q,d=this.u;d.ta&&a.disable(a.DEPTH_TEST);var c=d.Na[1];a.useProgram(c.ki);!c.rf&&c.Oj&&(c.Pn(d.tl),c.rf=!0);a.enableVertexAttribArray(c.Xc);a.bindBuffer(a.ARRAY_BUFFER,d.Wm);a.vertexAttribPointer(c.Xc,
4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Mb/4,this.Vc);c=d.Vf;a.useProgram(c.ki);0<=c.Xc&&(a.enableVertexAttribArray(c.Xc),a.bindBuffer(a.ARRAY_BUFFER,d.Ci[d.Rd]),a.vertexAttribPointer(c.Xc,d.ta?3:2,a.FLOAT,!1,0,0));0<=c.Te&&(a.enableVertexAttribArray(c.Te),a.bindBuffer(a.ARRAY_BUFFER,d.si[d.Rd]),a.vertexAttribPointer(c.Te,2,a.FLOAT,!1,0,0));d.ta&&a.enable(a.DEPTH_TEST)};n.prototype.Ot=function(){var a=this.q,d=this.u,c=d.Na[this.Mb];d.Vo=this.Mb;d.Vf=c;a.useProgram(c.ki);!c.rf&&c.Oj&&(c.Pn(d.tl),
c.rf=!0);c.tg&&c.Sj!==d.Yi&&(c.Sj=d.Yi,a.uniform1f(c.tg,d.Yi));0<=c.Xc&&(a.enableVertexAttribArray(c.Xc),a.bindBuffer(a.ARRAY_BUFFER,d.Ci[d.Rd]),a.vertexAttribPointer(c.Xc,d.ta?3:2,a.FLOAT,!1,0,0));0<=c.Te&&(a.enableVertexAttribArray(c.Te),a.bindBuffer(a.ARRAY_BUFFER,d.si[d.Rd]),a.vertexAttribPointer(c.Te,2,a.FLOAT,!1,0,0))};n.prototype.Kt=function(){var a=this.O;this.q.uniform4f(this.u.Vf.zm,a[0],a[1],a[2],a[3])};n.prototype.Pt=function(){var a,d,c=this.u.Vf,b=this.q;a=this.O;c.Mh&&this.u.yf!==this.bd&&
(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,this.bd),this.u.yf=this.bd,b.activeTexture(b.TEXTURE0));var g=a[0];c.Bm&&g!==c.bq&&(c.bq=g,b.uniform1f(c.Bm,g));g=a[1];c.Am&&g!==c.aq&&(c.aq=g,b.uniform1f(c.Am,g));g=a[2];d=a[3];!c.Cf||g===c.Wp&&d===c.Xp||(c.Wp=g,c.Xp=d,b.uniform2f(c.Cf,g,d));g=a[4];d=a[5];!c.Bf||g===c.Up&&d===c.Vp||(c.Up=g,c.Vp=d,b.uniform2f(c.Bf,g,d));g=a[6];c.Lh&&g!==c.Zp&&(c.Zp=g,b.uniform1f(c.Lh,g));g=a[7];c.Kh&&g!==c.Yp&&(c.Yp=g,b.uniform1f(c.Kh,g));g=a[8];d=a[9];!c.Ph||
g===c.gq&&d===c.hq||(c.gq=g,c.hq=d,b.uniform2f(c.Ph,g,d));g=a[10];d=a[11];!c.Nh||g===c.cq&&d===c.dq||(c.cq=g,c.dq=d,b.uniform2f(c.Nh,g,d));g=a[12];c.Oh&&g!==c.fq&&(c.fq=g,b.uniform1f(c.Oh,g));if(c.N.length)for(a=0,d=c.N.length;a<d;a++)g=this.Zq[a],g!==c.vm[a]&&(c.vm[a]=g,b.uniform1f(c.N[a][1],g))};e.prototype.Xb=function(){this.Bd===this.Qd.length&&this.Qd.push(new n(0,this));return this.Qd[this.Bd++]};e.prototype.Ie=function(){if(0!==this.Bd&&!this.q.isContextLost()){var a=this.q;0<this.Dg&&(a.bindBuffer(a.ARRAY_BUFFER,
this.Wm),a.bufferSubData(a.ARRAY_BUFFER,0,this.Xm.subarray(0,this.Dg)),d&&0<=d.Xc&&"<point>"===d.name&&a.vertexAttribPointer(d.Xc,4,a.FLOAT,!1,0,0));if(0<this.qe){var d=this.Vf;a.bindBuffer(a.ARRAY_BUFFER,this.Ci[this.Rd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Uk.subarray(0,this.qe));d&&0<=d.Xc&&"<point>"!==d.name&&a.vertexAttribPointer(d.Xc,this.ta?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.si[this.Rd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Kk.subarray(0,this.Pg));d&&0<=d.Te&&"<point>"!==
d.name&&a.vertexAttribPointer(d.Te,2,a.FLOAT,!1,0,0)}for(var c,a=0,d=this.Bd;a<d;a++)switch(c=this.Qd[a],c.type){case 1:c.Ht();break;case 2:c.Qt();break;case 3:c.Nt();break;case 4:c.Jt();break;case 5:c.St();break;case 6:c.It();break;case 7:c.Et();break;case 8:c.Gt();break;case 9:c.Ot();break;case 10:c.Pt();break;case 11:c.Rt();break;case 12:c.Kt();break;case 13:c.Lt();break;case 14:c.Mt()}this.Dg=this.Pg=this.qe=this.Bd=0;this.Dj=this.Ib=this.xb=!1;this.Rd++;4<=this.Rd&&(this.Rd=0)}};e.prototype.Ig=
function(a){if(a!==this.Mp&&!this.vh){var d=this.Xb();d.type=3;this.Mp=d.xq=a;this.Ib=this.xb=!1}};e.prototype.Ic=function(a){if(a!==this.xf){var d=this.Xb();d.type=2;this.xf=d.bd=a;this.Ib=this.xb=!1}};e.prototype.Xe=function(a,d){if((a!==this.Np||d!==this.Lp)&&!this.vh){var c=this.Xb();c.type=4;c.Mb=a;c.Vc=d;this.Np=a;this.Lp=d;this.Ib=this.xb=!1}};e.prototype.Qq=function(){this.Xe(this.q.ONE,this.q.ONE_MINUS_SRC_ALPHA)};e.prototype.Eg=function(a,d,c,b,g,e,f,r){15992<=this.qe&&this.Ie();var l=this.qe,
k=this.Pg,m=this.Uk,q=this.Kk,h=this.ul;if(this.xb)this.Qd[this.Bd-1].Vc+=6;else{var n=this.Xb();n.type=1;n.Mb=this.ta?l:l/2*3;n.Vc=6;this.xb=!0;this.Ib=!1}this.ta?(m[l++]=a,m[l++]=d,m[l++]=h,m[l++]=c,m[l++]=b,m[l++]=h,m[l++]=g,m[l++]=e,m[l++]=h,m[l++]=f,m[l++]=r,m[l++]=h):(m[l++]=a,m[l++]=d,m[l++]=c,m[l++]=b,m[l++]=g,m[l++]=e,m[l++]=f,m[l++]=r);q[k++]=0;q[k++]=0;q[k++]=1;q[k++]=0;q[k++]=1;q[k++]=1;q[k++]=0;q[k++]=1;this.qe=l;this.Pg=k};e.prototype.Hf=function(a,d,c,b,g,e,f,r,l){15992<=this.qe&&this.Ie();
var k=this.qe,m=this.Pg,q=this.Uk,h=this.Kk,n=this.ul;if(this.xb)this.Qd[this.Bd-1].Vc+=6;else{var t=this.Xb();t.type=1;t.Mb=this.ta?k:k/2*3;t.Vc=6;this.xb=!0;this.Ib=!1}var t=l.left,Q=l.top,H=l.right;l=l.bottom;this.ta?(q[k++]=a,q[k++]=d,q[k++]=n,q[k++]=c,q[k++]=b,q[k++]=n,q[k++]=g,q[k++]=e,q[k++]=n,q[k++]=f,q[k++]=r,q[k++]=n):(q[k++]=a,q[k++]=d,q[k++]=c,q[k++]=b,q[k++]=g,q[k++]=e,q[k++]=f,q[k++]=r);h[m++]=t;h[m++]=Q;h[m++]=H;h[m++]=Q;h[m++]=H;h[m++]=l;h[m++]=t;h[m++]=l;this.qe=k;this.Pg=m};e.prototype.kw=
function(a,d,c,b){7996<=this.Dg&&this.Ie();var g=this.Dg,e=this.Xm;if(this.Ib)this.Qd[this.Bd-1].Vc++;else{var f=this.Xb();f.type=8;f.Mb=g;f.Vc=1;this.Ib=!0;this.xb=!1}e[g++]=a;e[g++]=d;e[g++]=c;e[g++]=b;this.Dg=g};e.prototype.$b=function(a){if(this.Fh!==a){if(!this.Na[a]){if(0===this.Fh)return;a=0}var d=this.Xb();d.type=9;this.Fh=d.Mb=a;this.Ib=this.xb=!1}};e.prototype.di=function(a){a=this.Na[a];return!(!a.Cf&&!a.Bf)};e.prototype.an=function(a){a=this.Na[a];return!!(a.Cf||a.Bf||a.Uo)};e.prototype.$m=
function(a){return this.Na[a].qd};e.prototype.uw=function(a){a=this.Na[a];return 0!==a.Fl||0!==a.Gl};e.prototype.$u=function(a){return this.Na[a].Fl};e.prototype.av=function(a){return this.Na[a].Gl};e.prototype.bv=function(a,d){return this.Na[a].N[d][2]};e.prototype.ok=function(a){return this.Na[a].Go};e.prototype.Jg=function(a,d,c,b,g,e,f,k,l,r,m,q,h,n,t){var Q=this.Na[this.Fh],H,P;if(Q.tv||t.length){H=this.Xb();H.type=10;H.O?nc(this.Fc,H.O):H.O=mc();P=H.O;P[0]=d;P[1]=c;P[2]=b;P[3]=g;P[4]=e;P[5]=
f;P[6]=k;P[7]=l;P[8]=r;P[9]=m;P[10]=q;P[11]=h;P[12]=n;Q.Mh?H.bd=a:H.bd=null;if(t.length)for(c=H.Zq,c.length=t.length,a=0,d=t.length;a<d;a++)c[a]=t[a];this.Ib=this.xb=!1}};e.prototype.clear=function(a,d,c,b){var g=this.Xb();g.type=7;g.Mb=0;g.O||(g.O=mc());g.O[0]=a;g.O[1]=d;g.O[2]=c;g.O[3]=b;this.Ib=this.xb=!1};e.prototype.clearRect=function(a,d,c,b){if(!(0>c||0>b)){var g=this.Xb();g.type=7;g.Mb=1;g.O||(g.O=mc());g.O[0]=a;g.O[1]=d;g.O[2]=c;g.O[3]=b;this.Ib=this.xb=!1}};e.prototype.Tq=function(a){if(this.ta&&
(a=!!a,this.vh!==a)){var d=this.Xb();d.type=14;d.Mb=a?1:0;this.Ib=this.xb=!1;this.vh=a;this.sk=null;this.vh?this.$b(2):this.$b(0)}};e.prototype.Sq=function(a){if(this.ta){var d=this.Xb();d.type=13;d.Mb=a?1:0;this.Ib=this.xb=!1}};e.prototype.lp=function(){nc(this.wm,h);this.Ld();this.xd();var a=this.width/2,d=this.height/2;this.Eg(-a,d,a,d,a,-d,-a,-d);nc(h,this.Fc);this.xd()};e.prototype.Rq=function(a,d,c){this.$b(3);var b=this.Xb();b.type=12;b.O||(b.O=mc());b.O[0]=a;b.O[1]=d;b.O[2]=c;b.O[3]=1;this.Ib=
this.xb=!1};e.prototype.Sw=function(){this.$b(0)};e.prototype.Bw=function(){this.$b(2)};e.prototype.tw=function(){this.Ie();this.q.flush()};var t=[],r={};e.prototype.yt=function(){y(t);r={}};e.prototype.Lj=function(a,d,c,b){d=!!d;c=!!c;var g=a.src+","+d+","+c+(d?",undefined":""),e=null;if("undefined"!==typeof a.src&&r.hasOwnProperty(g))return e=r[g],e.Oi++,e;this.Ie();var f=this.q,k=ma(a.width)&&ma(a.height),e=f.createTexture();f.bindTexture(f.TEXTURE_2D,e);f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,
!0);var l=f.RGBA,h=f.RGBA,m=f.UNSIGNED_BYTE;if(b&&!this.Ne)switch(b){case 1:h=l=f.RGB;break;case 2:m=f.UNSIGNED_SHORT_4_4_4_4;break;case 3:m=f.UNSIGNED_SHORT_5_5_5_1;break;case 4:h=l=f.RGB,m=f.UNSIGNED_SHORT_5_6_5}if(!k&&d){b=document.createElement("canvas");b.width=pa(a.width);b.height=pa(a.height);var q=b.getContext("2d");"undefined"!==typeof q.imageSmoothingEnabled?q.imageSmoothingEnabled=c:(q.webkitImageSmoothingEnabled=c,q.mozImageSmoothingEnabled=c,q.msImageSmoothingEnabled=c);q.drawImage(a,
0,0,a.width,a.height,0,0,b.width,b.height);f.texImage2D(f.TEXTURE_2D,0,l,h,m,b)}else f.texImage2D(f.TEXTURE_2D,0,l,h,m,a);d?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.REPEAT),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.REPEAT)):(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE));c?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.LINEAR),k&&this.cp?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.LINEAR_MIPMAP_LINEAR),
f.generateMipmap(f.TEXTURE_2D)):f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.LINEAR)):(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.NEAREST),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.NEAREST));f.bindTexture(f.TEXTURE_2D,null);this.xf=null;e.ef=a.width;e.df=a.height;e.Oi=1;e.No=g;t.push(e);return r[g]=e};e.prototype.Pc=function(a,d,c){var b;this.Ie();var g=this.q;this.Ne&&(b=!1);var e=g.createTexture();g.bindTexture(g.TEXTURE_2D,e);g.texImage2D(g.TEXTURE_2D,0,g.RGBA,a,d,0,g.RGBA,
b?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,c?g.LINEAR:g.NEAREST);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,c?g.LINEAR:g.NEAREST);g.bindTexture(g.TEXTURE_2D,null);this.xf=null;e.ef=a;e.df=d;t.push(e);return e};e.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Oi&&1<a.Oi?a.Oi--:(this.Ie(),a===this.xf&&
(this.q.bindTexture(this.q.TEXTURE_2D,null),this.xf=null),a===this.yf&&(this.q.activeTexture(this.q.TEXTURE1),this.q.bindTexture(this.q.TEXTURE_2D,null),this.q.activeTexture(this.q.TEXTURE0),this.yf=null),Ha(t,a),"undefined"!==typeof a.No&&delete r[a.No],this.q.deleteTexture(a)))};e.prototype.Zc=function(a){if(a!==this.sk){var d=this.Xb();d.type=6;this.sk=d.bd=a;this.Ib=this.xb=!1}};rb=e})();
(function(){function e(b){if(b&&(b.getContext||b.dc)&&!b.c2runtime){b.c2runtime=this;var a=this;this.nc=(this.uh=/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.Jb=!!b.dc;this.Dp="undefined"!==typeof window.AppMobi||
this.Jb;this.Ec=!!window.c2cocoonjs;this.md=!!window.c2ejecta;this.Ec&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.md&&(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.ya=this.Jb||this.Ec||this.md;this.xh=
/edge\//i.test(navigator.userAgent);this.Ne=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.xh;this.Fp=/tizen/i.test(navigator.userAgent);this.Bj=/android/i.test(navigator.userAgent)&&!this.Fp&&!this.Ne&&!this.xh;this.Kp=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Ne&&!this.xh;this.Mv=/ipad/i.test(navigator.userAgent);this.lg=this.Kp||this.Mv||this.md;this.th=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.Ne&&!this.xh;this.nm=/amazonwebappplatform/i.test(navigator.userAgent);this.Ev=/firefox/i.test(navigator.userAgent);this.Iv=/safari/i.test(navigator.userAgent)&&!this.th&&!this.Ne&&!this.xh;this.Jv=/windows/i.test(navigator.userAgent);this.Oe="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Ip=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.Lv=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.fg=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.tm=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Hp=!!window.cr_windows10;this.Gp=this.Ip||this.Lv||this.tm||this.Hp;this.Cv=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Cj=this.Bj&&!this.th&&!this.uh&&!this.Ev&&!this.nm&&!this.ya;this.devicePixelRatio=
1;this.vf=this.nc||this.uh||this.Dp||this.Ec||this.Bj||this.lg||this.fg||this.tm||this.Cv||this.Fp||this.md;this.vf||(this.vf=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Bh=!!(this.lg&&this.nc&&window.webkit);this.cm=null;this.vv="";this.Bh&&(this.cm=cordova&&cordova.plugins&&cordova.plugins.CorHttpd?cordova.plugins.CorHttpd:null);"undefined"===typeof cr_is_preview||this.Oe||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&
!/nwjs/i.test(navigator.userAgent)||(this.Oe=!0);this.canvas=b;this.Po=document.getElementById("c2canvasdiv");this.u=this.q=null;this.Wl="(unavailable)";this.ta=!1;this.lf=0;this.Ia=null;this.Ll="";this.jj=!1;this.vq=this.wq=0;this.canvas.oncontextmenu=function(b){b.preventDefault&&b.preventDefault();return!1};this.canvas.onselectstart=function(b){b.preventDefault&&b.preventDefault();return!1};this.Jb&&(window.c2runtime=this);this.Oe&&(window.ondragover=function(b){b.preventDefault();return!1},window.ondrop=
function(b){b.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.Cj&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=b.width;this.height=b.height;this.F=this.width;this.D=this.height;this.Wi=this.width;this.dh=this.height;this.pg=window.innerWidth;this.ng=window.innerHeight;this.Ju=!1;this.ma=!0;this.zh=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.m=[];this.Ha=
[];this.rg={};this.od=[];this.El={};this.Vd=[];this.Ug=[];this.Qk=[];this.mt=[];this.nt=[];this.jf={};this.pm=this.Me=!1;this.nd=0;this.om=this.rm=!1;this.jd=[];this.wh=!1;this.ae=this.Kb=this.Jj=this.pn="";this.pi=this.cr=!1;this.ij=[];this.kf=this.He=0;this.lq=30;this.sl=this.Qh=0;this.Jf=1;this.ib=new hb;this.re=new hb;this.Vj=this.mj=this.gh=this.vi=this.Af=this.Kl=this.Gj=0;this.ff=null;this.zl=[];this.Dl=[];this.ej=-1;this.Cm=[[]];this.Kn=this.Pj=0;this.pk(null);this.Em=[];this.Rj=-1;this.hh=
this.qq=this.Th=0;this.qi=[];this.Hn=this.bn=-1;this.mg=!0;this.Nj=0;this.yh=!1;this.Uw=0;this.Qf=null;this.Oa=this.xj=!1;this.uq=new ea;this.Km=new ea;this.Lm=new ea;this.Nq=[];this.td=new jb([]);this.Dn=new jb([]);this.Pf=[];this.uj={};this.Ce={};this.xe={};this.Tg={};this.Ko={};this.Qp=this.Ij=this.Xa=this.jb=this.Pp=this.Hj=this.ka=null;this.Rg=this.um=!1;this.Ml=[null,null];this.pf=0;this.Il="";this.fe={};this.mi=this.Re=null;this.er="";this.Uj=[];this.Aw()}}function k(b,a){return 128>=a?b[3]:
256>=a?b[2]:512>=a?b[1]:b[0]}function c(){try{return!!window.indexedDB}catch(b){return!1}}function n(b){b.target.result.createObjectStore("saves",{keyPath:"slot"})}function h(b,a,d,f){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=n;c.onerror=f;c.onsuccess=function(c){c=c.target.result;c.onerror=f;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:b,data:a}).onsuccess=d}}catch(g){f(g)}}function t(b,a,d){try{var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=n;f.onerror=
d;f.onsuccess=function(f){f=f.target.result;f.onerror=d;var c=f.transaction(["saves"]).objectStore("saves").get(b);c.onsuccess=function(){c.result?a(c.result.data):a(null)}}}catch(c){d(c)}}function r(){ga("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function a(b){var a,d={};for(a in b)!b.hasOwnProperty(a)||b[a]instanceof ea||b[a]&&"undefined"!==typeof b[a].Cy||
"spriteCreatedDestroyCallback"!==a&&(d[a]=b[a]);return d}var d=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;e.prototype.Aw=function(){var b=this;if(this.Bh)this.cm?this.cm.startServer({port:0,localhost_only:!0},function(a){b.vv=a;b.ip(function(a){b.sg(JSON.parse(a))},function(){alert("Error fetching data.js")})},function(b){alert("error starting local server: "+b)}):this.ip(function(a){b.sg(JSON.parse(a))},
function(){alert("Error fetching data.js")});else{var a;this.fg?a=new ActiveXObject("Microsoft.XMLHTTP"):a=new XMLHttpRequest;var d="data.js";if(this.Ip||this.fg||this.tm||this.Hp)d="data.json";a.open("GET",d,!0);var f=!1;if(!this.ya&&"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(g){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(m){}this.fg?a.onreadystatechange=
function(){4===a.readyState&&b.sg(JSON.parse(a.responseText))}:(a.onload=function(){if(f)b.sg(a.response);else if(b.md){var d=a.responseText,d=d.substr(d.indexOf("{"));b.sg(JSON.parse(d))}else b.sg(JSON.parse(a.responseText))},a.onerror=function(b){ha("Error requesting "+d+":");ha(b)});a.send()}};e.prototype.yv=function(){var b=this,a,d,f,c,g,m,l,e,q;this.wf=(!this.ya||this.md||this.nc)&&this.ix&&!this.Cj;0===this.Hb&&this.lg&&(this.wf=!1);this.devicePixelRatio=this.wf?window.devicePixelRatio||window.webkitDevicePixelRatio||
window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Db();d=!(!this.Ju&&(!this.gl||this.Oe||this.Gp||this.fg||this.uh||this.nc||this.nm));0<this.Hb&&this.setSize(window.innerWidth,window.innerHeight,!0);try{this.au&&(this.Ec||this.md||!this.ya)&&(a={alpha:d,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.q=this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",a))}catch(k){}if(this.q){if(a=this.q.getExtension("WEBGL_debug_renderer_info"))this.Wl=this.q.getParameter(a.UNMASKED_RENDERER_WEBGL)+
" ["+this.q.getParameter(a.UNMASKED_VENDOR_WEBGL)+"]";this.ta&&(this.Wl+=" [front-to-back enabled]");this.ya||(this.Ab=document.createElement("canvas"),jQuery(this.Ab).appendTo(this.canvas.parentNode),this.Ab.oncontextmenu=function(){return!1},this.Ab.onselectstart=function(){return!1},this.Ab.width=Math.round(this.Wi*this.devicePixelRatio),this.Ab.height=Math.round(this.dh*this.devicePixelRatio),jQuery(this.Ab).css({width:this.Wi+"px",height:this.dh+"px"}),this.Iq(),this.Vm=this.Ab.getContext("2d"));
this.u=new rb(this.q,this.vf,this.ta);this.u.ke(this.canvas.width,this.canvas.height);this.u.cp=0!==this.Tt;this.Ia=null;this.canvas.addEventListener("webglcontextlost",function(a){a.preventDefault();b.Xv();ga("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){b.u.yp();b.u.ke(b.u.width,b.u.height,!0);b.jb=null;b.Xa=null;b.Ml[0]=null;b.Ml[1]=null;b.Yv();b.ma=!0;ga("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},
!1);a=0;for(d=this.m.length;a<d;a++)for(g=this.m[a],f=0,c=g.K.length;f<c;f++)l=g.K[f],l.$a=this.u.Vl(l.id),l.qd=this.u.$m(l.$a),this.Rg=this.Rg||this.u.di(l.$a);a=0;for(d=this.od.length;a<d;a++){e=this.od[a];f=0;for(c=e.K.length;f<c;f++)l=e.K[f],l.$a=this.u.Vl(l.id),l.qd=this.u.$m(l.$a);e.wd();f=0;for(c=e.M.length;f<c;f++){q=e.M[f];g=0;for(m=q.K.length;g<m;g++)l=q.K[g],l.$a=this.u.Vl(l.id),l.qd=this.u.$m(l.$a),this.Rg=this.Rg||this.u.di(l.$a);q.wd()}}}else{if(0<this.Hb&&this.Jb){this.canvas=null;
document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Ia=AppMobi.canvas.getContext("2d");try{this.Ia.samplingMode=this.La?"smooth":"sharp",this.Ia.globalScale=1,this.Ia.HTML5CompatibilityMode=!0,this.Ia.imageSmoothingEnabled=this.La}catch(p){}0!==this.width&&0!==this.height&&(this.Ia.width=this.width,this.Ia.height=this.height)}this.Ia||(this.Ec?(a={antialias:!!this.La,alpha:d},this.Ia=this.canvas.getContext("2d",a)):(a={alpha:d},this.Ia=this.canvas.getContext("2d",
a)),this.xk(this.Ia,this.La));this.Vm=this.Ab=null}this.mr=function(a){b.bb(!1,a)};window==window.top||this.ya||this.Gp||this.fg||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Ec&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ga("Reloading for continuous preview"),this.Jj="__c2_continuouspreview",
this.pi=!0),this.iw&&!this.vf&&(jQuery(window).focus(function(){b.setSuspended(!1)}),jQuery(window).blur(function(){var a=window.parent;a&&a.document.hasFocus()||b.setSuspended(!0)})));window.addEventListener("blur",function(){b.Bg()});this.ya||(a=function(b){if(qb(b)&&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.Hb&&this.wf&&1<this.devicePixelRatio&&this.setSize(this.mb,this.lb,!0);this.rr();this.qv();this.go();this.X={}};e.prototype.setSize=function(b,a,d){var f=0,c=0,g=0,m=0,m=0;if(this.pg!==b||this.ng!==a||d){this.pg=b;this.ng=a;var l=this.Hb,e=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||
document.fullScreen||this.yh)&&!this.nc;if(e||0!==this.Hb||d)e&&0<this.pf&&(l=this.pf),d=this.devicePixelRatio,4<=l?(g=this.mb/this.lb,b/a>g?(g*=a,5===l?(m=g*d/this.mb,1<m?m=Math.floor(m):1>m&&(m=1/Math.ceil(1/m)),g=this.mb*m/d,m=this.lb*m/d,f=(b-g)/2,c=(a-m)/2,b=g,a=m):(f=(b-g)/2,b=g)):(m=b/g,5===l?(m=m*d/this.lb,1<m?m=Math.floor(m):1>m&&(m=1/Math.ceil(1/m)),g=this.mb*m/d,m=this.lb*m/d,f=(b-g)/2,c=(a-m)/2,b=g):c=(a-m)/2,a=m),e&&!this.Oe&&(c=f=0)):this.Oe&&this.yh&&0===this.mp&&(f=Math.floor((b-this.mb)/
2),c=Math.floor((a-this.lb)/2),b=this.mb,a=this.lb),2>l&&(this.Zg=d),this.Wi=Math.round(b),this.dh=Math.round(a),this.width=Math.round(b*d),this.height=Math.round(a*d),this.ma=!0,this.Hr?(this.F=this.width,this.D=this.height,this.Ac=!0):this.width<this.mb&&this.height<this.lb||1===l?(this.F=this.width,this.D=this.height,this.Ac=!0):(this.F=this.mb,this.D=this.lb,this.Ac=!1,2===l?(g=this.mb/this.lb,l=this.pg/this.ng,l<g?this.F=this.D*l:l>g&&(this.D=this.F/l)):3===l&&(g=this.mb/this.lb,l=this.pg/this.ng,
l>g?this.F=this.D*l:l<g&&(this.D=this.F/l))),this.Po&&!this.ya&&(jQuery(this.Po).css({width:Math.round(b)+"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(b)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(b*d),this.canvas.height=Math.round(a*d),this.md?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=Math.floor(c)+"px",this.canvas.style.width=
Math.round(b)+"px",this.canvas.style.height=Math.round(a)+"px"):this.wf&&!this.ya&&(this.canvas.style.width=Math.round(b)+"px",this.canvas.style.height=Math.round(a)+"px")),this.Ab&&(this.Ab.width=Math.round(b*d),this.Ab.height=Math.round(a*d),this.Ab.style.width=this.Wi+"px",this.Ab.style.height=this.dh+"px"),this.u&&this.u.ke(Math.round(b*d),Math.round(a*d)),this.Jb&&this.Ia&&(this.Ia.width=Math.round(b),this.Ia.height=Math.round(a)),this.Ia&&this.xk(this.Ia,this.La),this.rr(),this.Kp&&!this.nc&&
window.scrollTo(0,0)}};e.prototype.rr=function(){if(this.pt&&0!==this.Tm){var b="portrait";2===this.Tm&&(b="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(b).catch(function(){}):screen.lockOrientation?screen.lockOrientation(b):screen.webkitLockOrientation?screen.webkitLockOrientation(b):screen.mozLockOrientation?screen.mozLockOrientation(b):screen.msLockOrientation&&screen.msLockOrientation(b)}catch(a){console&&console.warn&&console.warn("Failed to lock orientation: ",
a)}}};e.prototype.Xv=function(){this.u.yt();this.um=!0;var b,a,d;b=0;for(a=this.m.length;b<a;b++)d=this.m[b],d.Qm&&d.Qm()};e.prototype.Yv=function(){this.um=!1;var b,a,d;b=0;for(a=this.m.length;b<a;b++)d=this.m[b],d.Rm&&d.Rm()};e.prototype.Iq=function(){if(!this.ya){var b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.yh)&&!this.nc?jQuery(this.canvas).offset():jQuery(this.canvas).position();b.position="absolute";jQuery(this.Ab).css(b)}};
var p=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;e.prototype.setSuspended=function(b){var a;if(b&&!this.zh)for(ga("[Construct 2] Suspending"),this.zh=!0,-1!==this.bn&&p&&p(this.bn),-1!==this.Hn&&clearTimeout(this.Hn),b=0,a=this.qi.length;b<a;b++)this.qi[b](!0);else if(!b&&this.zh){ga("[Construct 2] Resuming");this.zh=!1;this.Gj=Za();this.Af=Za();b=this.Qh=this.mj=0;for(a=this.qi.length;b<
a;b++)this.qi[b](!1);this.bb(!1)}};e.prototype.kt=function(b){this.qi.push(b)};e.prototype.ve=function(b){return this.Uj[b]};e.prototype.sg=function(b){b&&b.project||ha("Project model unavailable");b=b.project;this.name=b[0];this.kp=b[1];this.Hb=b[12];this.mp=b[12];this.mb=b[10];this.lb=b[11];this.Eq=this.mb/2;this.Fq=this.lb/2;this.ya&&!this.md&&(4<=b[12]||0===b[12])&&(ga("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.mp=
this.Hb=3);this.Tn=b[18];this.Se=b[19];if(0===this.Se){var a=new Image;a.crossOrigin="anonymous";this.Uq(a,"loading-logo.png");this.Re={Qj:a}}else if(4===this.Se){a=new Image;a.src="";var d=new Image;d.src="";var f=new Image;f.src="";var c=new Image;c.src="";var g=new Image;g.src="";var m=new Image;m.src="";var l=new Image;l.src="";var e=new Image;e.src="";var q=new Image;q.src="";var k=new Image;k.src="";var p=new Image;p.src="";var r=new Image;r.src="";this.Re={Qj:[a,d,f,c],qw:[g,m,l,e],lx:[q,k,
p,r]}}this.Th=b[21];this.Uj=rc();this.Nd=new F(this);a=0;for(d=b[2].length;a<d;a++)l=b[2][a],f=this.ve(l[0]),tb(l,f.prototype),e=new f(this),e.Ck=l[1],e.Qe=l[2],e.nq=l[9],e.ja&&e.ja(),this.plugins.push(e);this.Uj=rc();a=0;for(d=b[3].length;a<d;a++){l=b[3][a];g=this.ve(l[1]);e=null;f=0;for(c=this.plugins.length;f<c;f++)if(this.plugins[f]instanceof g){e=this.plugins[f];break}q=new e.Sa(e);q.name=l[0];q.I=l[2];q.mm=l[3].slice(0);q.kx=l[3].length;q.qt=l[4];q.Lu=l[5];q.U=l[11];q.I?(q.vg=[],q.Wd=this.hh++,
q.Ea=null):(q.vg=null,q.Wd=-1,q.Ea=[]);q.gj=null;q.Zf=null;q.dp=null;q.oc=!1;q.hc=null;l[6]?(q.En=l[6][0],q.Fn=l[6][1],q.Gn=l[6][2]):(q.En=null,q.Fn=0,q.Gn=0);l[7]?q.gc=l[7]:q.gc=null;q.index=a;q.c=[];q.$i=[];q.oe=[new ub(q)];q.Cd=0;q.Qc=null;q.Ct=0;q.Og=!0;q.Rk=vb;q.Su=wb;q.Yu=xb;q.ca=yb;q.ei=zb;q.fi=Ab;q.We=Bb;q.oj=Cb;q.Ol=Db;q.Ql=Eb;q.Ad=Fb;q.Sl=Gb;q.Ti=new kb(this.mb,this.lb);q.Hi=!0;q.Ii=!1;q.X={};q.toString=Ib;q.Ha=[];f=0;for(c=l[8].length;f<c;f++){k=l[8][f];p=this.ve(k[1]);r=null;g=0;for(m=
this.Ha.length;g<m;g++)if(this.Ha[g]instanceof p){r=this.Ha[g];break}r||(r=new p(this),r.oq=[],r.Ef=new ea,r.ja&&r.ja(),this.Ha.push(r));-1===r.oq.indexOf(q)&&r.oq.push(q);g=new r.Sa(r,q);g.name=k[0];g.U=k[2];g.ja();q.Ha.push(g)}q.global=l[9];q.qm=l[10];q.K=[];f=0;for(c=l[12].length;f<c;f++)q.K.push({id:l[12][f][0],name:l[12][f][1],$a:-1,qd:!1,Ta:!0,index:f});q.Wy=l[13];this.Tn&&!q.I&&!q.qm&&e.Qe||q.ja();q.name&&(this.types[q.name]=q);this.m.push(q);e.Ck&&(f=new e.wa(q),f.uid=this.Th++,f.Lq=this.qq++,
f.tf=0,f.mh=Jb,f.toString=Kb,f.S=l[14],f.ja(),q.c.push(f),this.fe[f.uid.toString()]=f)}a=0;for(d=b[4].length;a<d;a++)for(g=b[4][a],m=this.m[g[0]],f=1,c=g.length;f<c;f++)l=this.m[g[f]],l.Ea.push(m),m.vg.push(l);a=0;for(d=b[28].length;a<d;a++){g=b[28][a];m=[];f=0;for(c=g.length;f<c;f++)m.push(this.m[g[f]]);f=0;for(c=m.length;f<c;f++)m[f].oc=!0,m[f].hc=m}if(0<this.hh)for(a=0,d=this.m.length;a<d;a++)if(l=this.m[a],!l.I&&l.Ea.length){l.gj=Array(this.hh);l.Zf=Array(this.hh);l.dp=Array(this.hh);q=[];f=r=
p=k=0;for(c=l.Ea.length;f<c;f++)for(e=l.Ea[f],l.gj[e.Wd]=k,k+=e.kx,l.Zf[e.Wd]=p,p+=e.qt,l.dp[e.Wd]=r,r+=e.Lu,g=0,m=e.K.length;g<m;g++)q.push(ya({},e.K[g]));l.K=q.concat(l.K);f=0;for(c=l.K.length;f<c;f++)l.K[f].index=f}a=0;for(d=b[5].length;a<d;a++)l=b[5][a],f=new Lb(this,l),this.rg[f.name]=f,this.od.push(f);a=0;for(d=b[6].length;a<d;a++)l=b[6][a],f=new Mb(this,l),this.El[f.name]=f,this.Vd.push(f);a=0;for(d=this.Vd.length;a<d;a++)this.Vd[a].Pa();a=0;for(d=this.Vd.length;a<d;a++)this.Vd[a].On();a=0;
for(d=this.Qk.length;a<d;a++)this.Qk[a].Pa();y(this.Qk);this.ot=b[7];this.Il=b[8];this.ie=b[9];this.Zg=1;this.au=b[13];this.La=b[14];this.gl=b[15];this.ix=b[17];this.Tm=b[20];this.pt=0<this.Tm;this.iw=b[22];this.Ac=this.Hr=b[23];this.Tt=b[24];this.rw=b[25];this.ta=b[27]&&!this.Ne;this.Gk=Date.now();y(this.Uj);this.yv()};var b=!1;e.prototype.Gr=function(a,d){a.cocoonLazyLoad=!0;a.onerror=function(d){b=a.Mo=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",d)};this.md?a.src=
d:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(d,function(b){a.src=b},function(f){b=a.Mo=!0;console&&console.error&&console.error("Error extracting image '"+d+"' from expansion file: ",f)}):(a.crossOrigin="anonymous",this.Uq(a,d)));this.Ug.push(a)};e.prototype.Iu=function(b){var a,d;a=0;for(d=this.Ug.length;a<d;a++)if(this.Ug[a].zt===b)return this.Ug[a];return null};var g=0,v=!1;e.prototype.qv=function(){this.Qf&&(g=this.Qf.Pw(this.ot))};e.prototype.Ho=function(){var b=g,a=0,d=0,f=!0,c,
m,d=0;for(c=this.Ug.length;d<c;d++){m=this.Ug[d];var l=m.So;if(!l||0>=l)l=5E4;b+=l;m.src&&(m.complete||m.loaded)&&!m.Mo?a+=l:f=!1}f&&this.rw&&this.Qf&&(v||(this.Qf.Vw(),v=!0),d=this.Qf.Zu(),a+=d,d<g&&(f=!1));this.R=0==b?1:a/b;return f};var f=!1;e.prototype.go=function(){if(this.Ia||this.u){var a=this.Ia||this.Vm;this.Ab&&this.Iq();var c=window.innerWidth,g=window.innerHeight;this.pg===c&&this.ng===g||this.setSize(c,g);this.R=0;this.Op=-1;var m=this;if(this.Ho()&&(4!==this.Se||f))this.rv();else{g=
Date.now()-this.Gk;if(a){var l=this.width,q=this.height,c=this.devicePixelRatio;if(3>this.Se&&(this.Ec||500<=g&&this.Op!=this.R)){a.clearRect(0,0,l,q);var g=l/2,q=q/2,l=0===this.Se&&this.Re.Qj.complete,e=40*c,r=0,k=80*c,p;if(l){var x=this.Re.Qj,k=x.width*c;p=x.height*c;e=k/2;r=p/2;a.drawImage(x,ta(g-e),ta(q-r),k,p)}1>=this.Se?(g=ta(g-e)+.5,q=ta(q+(r+(l?12*c:0)))+.5,a.fillStyle=b?"red":"DodgerBlue",a.fillRect(g,q,Math.floor(k*this.R),6*c),a.strokeStyle="black",a.strokeRect(g,q,k,6*c),a.strokeStyle=
"white",a.strokeRect(g-1*c,q-1*c,k+2*c,8*c)):2===this.Se&&(a.font=this.md?"12pt ArialMT":"12pt Arial",a.fillStyle=b?"#f00":"#999",a.Vy="middle",c=Math.round(100*this.R)+"%",l=a.measureText?a.measureText(c):null,a.fillText(c,g-(l?l.width:0)/2,q));this.Op=this.R}else if(4===this.Se){this.Yt(a);d?d(function(){m.go()}):setTimeout(function(){m.go()},16);return}}setTimeout(function(){m.go()},this.Ec?10:100)}}};var x=-1,l="undefined"===typeof cr_is_preview?200:0,I=!0,m=!1,q=0,ja=0,D="undefined"===typeof cr_is_preview?
3E3:0,T=null,Q=null,H=0;e.prototype.Yt=function(a){if(!f){for(var d=Math.ceil(this.width),c=Math.ceil(this.height),g=this.Re.Qj,e=this.Re.qw,r=this.Re.lx,p=0;4>p;++p)if(!g[p].complete||!e[p].complete||!r[p].complete)return;0===H&&(x=Date.now());var p=Date.now(),v=!1,h=a,n,t;I||m?(a.clearRect(0,0,d,c),T&&T.width===d&&T.height===c||(T=document.createElement("canvas"),T.width=d,T.height=c,Q=T.getContext("2d")),h=Q,v=!0,I&&1===H&&(x=Date.now())):a.globalAlpha=1;h.fillStyle="#333333";h.fillRect(0,0,d,
c);256<this.dh?(n=Ia(.22*c,105,.6*d),t=.25*n,h.drawImage(k(e,n),.5*d-n/2,.2*c-t/2,n,t),t=n=Math.min(.395*c,.95*d),h.drawImage(k(g,n),.5*d-n/2,.485*c-t/2,n,t),n=Ia(.22*c,105,.6*d),t=.25*n,h.drawImage(k(r,n),.5*d-n/2,.868*c-t/2,n,t),h.fillStyle="#3C3C3C",n=d,t=Math.max(.005*c,2),h.fillRect(0,.8*c-t/2,n,t),h.fillStyle=b?"red":"#E0FF65",n=d*this.R,h.fillRect(.5*d-n/2,.8*c-t/2,n,t)):(t=n=.55*c,h.drawImage(k(g,n),.5*d-n/2,.45*c-t/2,n,t),h.fillStyle="#3C3C3C",n=d,t=Math.max(.005*c,2),h.fillRect(0,.85*c-
t/2,n,t),h.fillStyle=b?"red":"#E0FF65",n=d*this.R,h.fillRect(.5*d-n/2,.85*c-t/2,n,t));v&&(I?a.globalAlpha=0===H?0:Math.min((p-x)/300,1):m&&(a.globalAlpha=Math.max(1-(p-ja)/300,0)),a.drawImage(T,0,0,d,c));I&&300<=p-x&&2<=H&&(I=!1,q=p);!I&&p-q>=D&&!m&&1<=this.R&&(m=!0,ja=p);if(m&&p-ja>=300+l||"undefined"!==typeof cr_is_preview&&1<=this.R&&500>Date.now()-x)f=!0,m=I=!1,this.Re=Q=T=null;++H}};e.prototype.rv=function(){this.Ab&&(this.canvas.parentNode.removeChild(this.Ab),this.Ab=this.Vm=null);this.Gk=
Date.now();this.Af=Za();var b,a,d;if(this.Tn)for(b=0,a=this.m.length;b<a;b++)d=this.m[b],d.I||d.qm||!d.za.Qe||d.ja();else this.mg=!1;b=0;for(a=this.od.length;b<a;b++)this.od[b].At();2<=this.Hb&&(b=this.mb/this.lb,a=this.width/this.height,this.Zg=2!==this.Hb&&a>b||2===this.Hb&&a<b?this.height/this.lb:this.width/this.mb);this.kp?this.rg[this.kp].Bn():this.od[0].Bn();this.Tn||(this.Nj=1,this.trigger(F.prototype.e.ho,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&
navigator.splashscreen.hide();b=0;for(a=this.m.length;b<a;b++)d=this.m[b],d.Wv&&d.Wv();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.bb(!1);this.Jb&&AppMobi.webview.execute("onGameReady();")};e.prototype.bb=function(b,a,f){if(this.ka){var c=Za();if(f||!this.zh||b){b||(d?this.bn=d(this.mr):this.Hn=setTimeout(this.mr,this.vf?1:16));a=a||c;var g=this.Hb;((f=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&
!this.nc)||this.yh)&&0<this.pf&&(g=this.pf);if(0<g){var g=window.innerWidth,m=window.innerHeight;this.pg===g&&this.ng===m||this.setSize(g,m)}this.ya||(f?(this.jj||(this.Ll=jQuery(this.canvas).css("margin")||"0",this.jj=!0),this.th||this.Oe||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.jj?(this.th||this.Oe||jQuery(this.canvas).css("margin",this.Ll),
this.Ll="",this.jj=!1,0===this.Hb&&this.setSize(Math.round(this.wq/this.devicePixelRatio),Math.round(this.vq/this.devicePixelRatio),!0)):(this.wq=this.width,this.vq=this.height));this.mg&&(f=this.Ho(),this.Nj=this.R,f&&(this.mg=!1,this.R=1,this.trigger(F.prototype.e.ho,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.Qv(a);!this.ma&&!this.Ec||this.um||this.pi||b||(this.ma=!1,this.u?this.ic():this.kd(),this.mi&&(this.canvas&&this.canvas.toDataURL&&(this.er=this.canvas.toDataURL(this.mi[0],
this.mi[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.er),this.trigger(F.prototype.e.xs,null)),this.mi=null));this.Iy||(this.vi++,this.gh++,this.mj++);this.Qh+=Za()-c}}};e.prototype.Qv=function(b){var a,d,f,c,g,m,l,q;1E3<=b-this.Af&&(this.Af+=1E3,1E3<=b-this.Af&&(this.Af=b),this.Kl=this.mj,this.mj=0,this.sl=this.Qh,this.Qh=0);a=0;0!==this.Gj&&(a=b-this.Gj,0>a&&(a=0),this.kf=a/=1E3,.5<this.kf?this.kf=0:this.kf>1/this.lq&&(this.kf=1/this.lq));this.Gj=b;this.He=this.kf*this.Jf;this.ib.add(this.He);
this.re.add(a);b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.yh)&&!this.nc;2<=this.Hb||b&&0<this.pf?(a=this.mb/this.lb,d=this.width/this.height,f=this.Hb,b&&0<this.pf&&(f=this.pf),this.Zg=2!==f&&d>a||2===f&&d<a?this.height/this.lb:this.width/this.mb,this.ka&&(this.ka.qn(this.ka.scrollX),this.ka.rn(this.ka.scrollY))):this.Zg=this.wf?this.devicePixelRatio:1;this.Db();this.nd++;this.Nd.Fw();this.nd--;this.Db();this.nd++;d=this.uq.cd();
b=0;for(a=d.length;b<a;b++)d[b].Qy();b=0;for(a=this.m.length;b<a;b++)if(m=this.m[b],!m.I&&(m.Ha.length||m.Ea.length))for(d=0,f=m.c.length;d<f;d++)for(l=m.c[d],c=0,g=l.B.length;c<g;c++)l.B[c].bb();b=0;for(a=this.m.length;b<a;b++)if(m=this.m[b],!m.I&&(m.Ha.length||m.Ea.length))for(d=0,f=m.c.length;d<f;d++)for(l=m.c[d],c=0,g=l.B.length;c<g;c++)q=l.B[c],q.pw&&q.pw();d=this.Km.cd();b=0;for(a=d.length;b<a;b++)d[b].bb();this.nd--;this.sv();for(b=0;this.ff&&10>b++;)this.Zo(this.ff);b=0;for(a=this.Vd.length;b<
a;b++)this.Vd[b].am=!1;this.ka.mf&&this.ka.mf.Za();y(this.Nq);this.nd++;b=0;for(a=this.m.length;b<a;b++)if(m=this.m[b],!m.I&&(m.Ha.length||m.Ea.length))for(d=0,f=m.c.length;d<f;d++)for(l=m.c[d],c=0,g=l.B.length;c<g;c++)q=l.B[c],q.Mk&&q.Mk();d=this.Lm.cd();b=0;for(a=d.length;b<a;b++)d[b].Mk();this.nd--};e.prototype.Bg=function(){var b,a,d,f,c,g,m,l,q;b=0;for(a=this.m.length;b<a;b++)if(m=this.m[b],!m.I)for(d=0,f=m.c.length;d<f;d++)if(l=m.c[d],l.Bg&&l.Bg(),l.B)for(c=0,g=l.B.length;c<g;c++)q=l.B[c],q.Bg&&
q.Bg()};e.prototype.Zo=function(b){var a=this.ka;this.ka.Ww();var d,f,c;if(this.u)for(d=0,f=this.m.length;d<f;d++)c=this.m[d],c.I||!c.Nn||c.global&&0!==c.c.length||-1!==b.rh.indexOf(c)||c.Nn();a==b&&y(this.Nd.ec);y(this.Nq);this.Oq(!0);b.Bn();this.Oq(!1);this.ma=!0;this.Db()};e.prototype.Oq=function(b){var a,d,f,c,g,m,l,q,e;a=0;for(d=this.Ha.length;a<d;a++)f=this.Ha[a],b?f.Uh&&f.Uh():f.Wh&&f.Wh();a=0;for(d=this.m.length;a<d;a++)if(f=this.m[a],f.global||f.za.Ck)for(c=0,g=f.c.length;c<g;c++)if(m=f.c[c],
b?m.Uh&&m.Uh():m.Wh&&m.Wh(),m.B)for(l=0,q=m.B.length;l<q;l++)e=m.B[l],b?e.Uh&&e.Uh():e.Wh&&e.Wh()};e.prototype.ti=function(b){this.Km.add(b)};e.prototype.$w=function(b){this.Lm.add(b)};e.prototype.qj=function(b){return b&&-1!==b.Sh?this.kf*b.Sh:this.He};e.prototype.kd=function(){this.ka.kd(this.Ia);this.Jb&&this.Ia.present()};e.prototype.ic=function(){this.ta&&(this.lf=1,this.ka.Xf(this.u));this.ka.ic(this.u);this.u.tw()};e.prototype.it=function(b){b&&this.zl.push(b)};e.prototype.sj=function(b){b=
b.toString();return this.fe.hasOwnProperty(b)?this.fe[b]:null};var P=[];e.prototype.ue=function(b){var a,d;a=b.type.name;var f=null;if(this.jf.hasOwnProperty(a)){if(f=this.jf[a],f.contains(b))return}else f=P.length?P.pop():new ea,this.jf[a]=f;f.add(b);this.Me=!0;if(b.oc)for(a=0,d=b.siblings.length;a<d;a++)this.ue(b.siblings[a]);this.pm&&f.Sg.push(b);this.om||(this.nd++,this.trigger(Object.getPrototypeOf(b.type.za).e.ys,b),this.nd--)};e.prototype.Db=function(){if(this.Me){var b,a,d,f,c,g;this.pm=!0;
d=0;for(c=this.jd.length;d<c;++d)for(b=this.jd[d],a=b.type,a.c.push(b),f=0,g=a.Ea.length;f<g;++f)a.Ea[f].c.push(b),a.Ea[f].Og=!0;y(this.jd);this.ps();Ya(this.jf);this.Me=this.pm=!1}};e.prototype.ps=function(){for(var b in this.jf)this.jf.hasOwnProperty(b)&&this.Or(this.jf[b])};e.prototype.Or=function(b){var a=b.cd(),d=a[0].type,f,c,g,m,l,q;eb(d.c,b);d.Og=!0;0===d.c.length&&(d.Ii=!1);f=0;for(c=d.Ea.length;f<c;++f)q=d.Ea[f],eb(q.c,b),q.Og=!0;f=0;for(c=this.Nd.ec.length;f<c;++f)if(l=this.Nd.ec[f],l.Sb.hasOwnProperty(d.index)&&
eb(l.Sb[d.index].Zd,b),!d.I)for(g=0,m=d.Ea.length;g<m;++g)q=d.Ea[g],l.Sb.hasOwnProperty(q.index)&&eb(l.Sb[q.index].Zd,b);if(l=a[0].k){if(l.Lc)for(g=l.c,f=0,c=g.length;f<c;++f)m=g[f],b.contains(m)&&(m.Ba(),l.Bb.update(m,m.Yb,null),m.Yb.set(0,0,-1,-1));eb(l.c,b);l.ii(0)}for(f=0;f<a.length;++f)this.Nr(a[f],d);b.clear();P.push(b);this.ma=!0};e.prototype.Nr=function(b,a){var d,f,c;d=0;for(f=this.zl.length;d<f;++d)this.zl[d](b);b.De&&a.Ti.update(b,b.De,null);(d=b.k)&&d.Fg(b,!0);if(b.B)for(d=0,f=b.B.length;d<
f;++d)c=b.B[d],c.Vh&&c.Vh(),c.behavior.Ef.remove(b);this.uq.remove(b);this.Km.remove(b);this.Lm.remove(b);b.Vh&&b.Vh();this.fe.hasOwnProperty(b.uid.toString())&&delete this.fe[b.uid.toString()];this.Vj--;100>a.$i.length&&a.$i.push(b)};e.prototype.To=function(b,a,d,f){if(b.I){var c=ta(Math.random()*b.vg.length);return this.To(b.vg[c],a,d,f)}return b.Qc?this.Ee(b.Qc,a,!1,d,f,!1):null};var J=[];e.prototype.Ee=function(b,a,d,f,c,g){var m,l,q,e;if(!b)return null;var p=this.m[b[1]],r=p.za.Qe;if(this.mg&&
r&&!p.qm||r&&!this.u&&11===b[0][11])return null;var k=a;r||(a=null);var h;p.$i.length?(h=p.$i.pop(),h.Yc=!0,p.za.wa.call(h,p)):(h=new p.za.wa(p),h.Yc=!1);!d||g||this.fe.hasOwnProperty(b[2].toString())?h.uid=this.Th++:h.uid=b[2];this.fe[h.uid.toString()]=h;h.Lq=this.qq++;h.tf=p.c.length;m=0;for(l=this.jd.length;m<l;++m)this.jd[m].type===p&&h.tf++;h.mh=Jb;h.toString=Kb;q=b[3];if(h.Yc)Ya(h.X);else{h.X={};if("undefined"!==typeof cr_is_preview)for(h.Bp=[],h.Bp.length=q.length,m=0,l=q.length;m<l;m++)h.Bp[m]=
q[m][1];h.hb=[];h.hb.length=q.length}m=0;for(l=q.length;m<l;m++)h.hb[m]=q[m][0];if(r){var x=b[0];h.x=ia(f)?x[0]:f;h.y=ia(c)?x[1]:c;h.z=x[2];h.width=x[3];h.height=x[4];h.depth=x[5];h.j=x[6];h.opacity=x[7];h.lc=x[8];h.mc=x[9];h.Eb=x[10];m=x[11];!this.u&&p.K.length&&(h.Eb=m);h.$g=mb(h.Eb);this.q&&nb(h,h.Eb,this.q);if(h.Yc){m=0;for(l=x[12].length;m<l;m++)for(q=0,e=x[12][m].length;q<e;q++)h.Ka[m][q]=x[12][m][q];h.Ga.set(0,0,0,0);h.De.set(0,0,-1,-1);h.Yb.set(0,0,-1,-1);h.xc.Lg(h.Ga);y(h.kl)}else{h.Ka=x[12].slice(0);
m=0;for(l=h.Ka.length;m<l;m++)h.Ka[m]=x[12][m].slice(0);h.aa=[];h.we=[];h.we.length=p.K.length;h.Ga=new wa(0,0,0,0);h.De=new wa(0,0,-1,-1);h.Yb=new wa(0,0,-1,-1);h.xc=new xa;h.kl=[];h.Aa=Nb;h.lt=Ob;h.Fb=Pb;h.Ba=Qb;h.Cr=Rb;h.Sn=Sb;h.Uc=Tb}h.wi=!1;h.cx=0;h.bx=0;h.ax=null;14===x.length&&(h.wi=!0,h.cx=x[13][0],h.bx=x[13][1],h.ax=x[13][2]);m=0;for(l=p.K.length;m<l;m++)h.we[m]=!0;h.me=!0;h.wd=Ub;h.wd();h.Er=!!h.aa.length;h.Ni=!0;h.nl=!0;p.Hi=!0;h.visible=!0;h.Sh=-1;h.k=a;h.yd=a.c.length;h.lf=0;"undefined"===
typeof h.fa&&(h.fa=null);this.ma=h.gf=!0}var v;y(J);m=0;for(l=p.Ea.length;m<l;m++)J.push.apply(J,p.Ea[m].Ha);J.push.apply(J,p.Ha);if(h.Yc)for(m=0,l=J.length;m<l;m++){var n=J[m];v=h.B[m];v.Yc=!0;n.behavior.wa.call(v,n,h);x=b[4][m];q=0;for(e=x.length;q<e;q++)v.S[q]=x[q];v.ja();n.behavior.Ef.add(h)}else for(h.B=[],m=0,l=J.length;m<l;m++)n=J[m],v=new n.behavior.wa(n,h),v.Yc=!1,v.S=b[4][m].slice(0),v.ja(),h.B.push(v),n.behavior.Ef.add(h);x=b[5];if(h.Yc)for(m=0,l=x.length;m<l;m++)h.S[m]=x[m];else h.S=x.slice(0);
this.jd.push(h);this.Me=!0;a&&(a.Yg(h,!0),1!==a.Vb||1!==a.Wb)&&(p.Ii=!0);this.Vj++;if(p.oc){if(h.oc=!0,h.Yc?y(h.siblings):h.siblings=[],!d&&!g){m=0;for(l=p.hc.length;m<l;m++)if(p.hc[m]!==p){if(!p.hc[m].Qc)return null;h.siblings.push(this.Ee(p.hc[m].Qc,k,!1,r?h.x:f,r?h.y:c,!0))}m=0;for(l=h.siblings.length;m<l;m++)for(h.siblings[m].siblings.push(h),q=0;q<l;q++)m!==q&&h.siblings[m].siblings.push(h.siblings[q])}}else h.oc=!1,h.siblings=null;h.ja();m=0;for(l=h.B.length;m<l;m++)h.B[m].ow&&h.B[m].ow();return h};
e.prototype.kh=function(b){var a,d;a=0;for(d=this.ka.M.length;a<d;a++){var f=this.ka.M[a];if(pb(f.name,b))return f}return null};e.prototype.Yd=function(b){b=ta(b);0>b&&(b=0);b>=this.ka.M.length&&(b=this.ka.M.length-1);return this.ka.M[b]};e.prototype.ql=function(b){var a,d;a=0;for(d=b.length;a<d;a++)b[a].ca().ha=!0};e.prototype.ei=function(b){var a,d;a=0;for(d=b.length;a<d;a++)b[a].ei()};e.prototype.fi=function(b){var a,d;a=0;for(d=b.length;a<d;a++)b[a].fi()};e.prototype.We=function(b){var a,d;a=
0;for(d=b.length;a<d;a++)b[a].We()};e.prototype.Ar=function(b){if(b.Hi){var a,d,f=b.c;a=0;for(d=f.length;a<d;++a)f[a].Sn();f=this.jd;a=0;for(d=f.length;a<d;++a)f[a].type===b&&f[a].Sn();b.Hi=!1}};e.prototype.Qu=function(b,a,d,f){var c,g,m=b?1!==b.Vb||1!==b.Wb:!1;if(a.I)for(b=0,c=a.vg.length;b<c;++b)g=a.vg[b],m||g.Ii?Fa(f,g.c):(this.Ar(g),g.Ti.qk(d,f));else m||a.Ii?Fa(f,a.c):(this.Ar(a),a.Ti.qk(d,f))};e.prototype.ri=function(b,a,d){var f=b.ca(),c,g,m,l,q=this.Wa().eb.Gc,e,p,h;if(f.ha)for(f.ha=!1,y(f.c),
c=0,l=b.c.length;c<l;c++)m=b.c[c],m.Ba(),e=m.k.Ca(a,d,!0),p=m.k.Ca(a,d,!1),m.Fb(e,p)?f.c.push(m):q&&f.L.push(m);else{g=0;h=q?f.L:f.c;c=0;for(l=h.length;c<l;c++)m=h[c],m.Ba(),e=m.k.Ca(a,d,!0),p=m.k.Ca(a,d,!1),m.Fb(e,p)&&(q?f.c.push(m):(f.c[g]=f.c[c],g++));h.length=g}b.Ad();return f.$l()};e.prototype.Zw=function(b,a){if(!(b&&a&&b!==a&&b.gf&&a.gf))return!1;b.Ba();a.Ba();var d=b.k,f=a.k,c,m,g,l,q,e,p,h;if(d===f||d.Vb===f.Vb&&f.Wb===f.Wb&&d.scale===f.scale&&d.j===f.j&&d.Nb===f.Nb){if(!b.Ga.zv(a.Ga)||!b.xc.Cp(a.xc)||
b.wi&&a.wi)return!1;if(b.wi)return this.kr(b,a);if(a.wi)return this.kr(a,b);p=b.fa&&!b.fa.gg();c=a.fa&&!a.fa.gg();if(!p&&!c)return!0;p?(b.fa.Sf(b.width,b.height,b.j),p=b.fa):(this.td.Kg(b.xc,b.x,b.y,b.width,b.height),p=this.td);c?(a.fa.Sf(a.width,a.height,a.j),h=a.fa):(this.td.Kg(a.xc,a.x,a.y,a.width,a.height),h=this.td);return p.sh(h,a.x-b.x,a.y-b.y)}p=b.fa&&!b.fa.gg();c=a.fa&&!a.fa.gg();p?(b.fa.Sf(b.width,b.height,b.j),this.td.Xq(b.fa)):this.td.Kg(b.xc,b.x,b.y,b.width,b.height);p=this.td;c?(a.fa.Sf(a.width,
a.height,a.j),this.Dn.Xq(a.fa)):this.Dn.Kg(a.xc,a.x,a.y,a.width,a.height);h=this.Dn;c=0;for(m=p.rd;c<m;c++)g=2*c,l=g+1,q=p.nb[g],e=p.nb[l],p.nb[g]=d.Pb(q+b.x,e+b.y,!0),p.nb[l]=d.Pb(q+b.x,e+b.y,!1);p.Ba();c=0;for(m=h.rd;c<m;c++)g=2*c,l=g+1,q=h.nb[g],e=h.nb[l],h.nb[g]=f.Pb(q+a.x,e+a.y,!0),h.nb[l]=f.Pb(q+a.x,e+a.y,!1);h.Ba();return p.sh(h,0,0)};var O=new xa;new wa(0,0,0,0);var W=[];e.prototype.kr=function(b,a){var d,f,c,g,m=a.Ga,l=b.x,q=b.y;b.Gy(m,W);var e=a.fa&&!a.fa.gg();d=0;for(f=W.length;d<f;++d)if(c=
W[d],g=c.Ty,m.Av(g,l,q)&&(O.Lg(g),O.offset(l,q),O.Cp(a.xc)))if(e)if(a.fa.Sf(a.width,a.height,a.j),c.Ym){if(c.Ym.sh(a.fa,a.x-(l+g.left),a.y-(q+g.top)))return y(W),!0}else{if(this.td.Kg(O,0,0,g.right-g.left,g.bottom-g.top),this.td.sh(a.fa,a.x,a.y))return y(W),!0}else if(c.Ym){if(this.td.Kg(a.xc,0,0,a.width,a.height),c.Ym.sh(this.td,-(l+g.left),-(q+g.top)))return y(W),!0}else return y(W),!0;y(W);return!1};e.prototype.sr=function(b,a){if(!a)return!1;var d,f,c,g,m;d=0;for(f=b.Ha.length;d<f;d++)if(b.Ha[d].behavior instanceof
a)return!0;if(!b.I)for(d=0,f=b.Ea.length;d<f;d++)for(m=b.Ea[d],c=0,g=m.Ha.length;c<g;c++)if(m.Ha[c].behavior instanceof a)return!0;return!1};e.prototype.Ln=function(b){return this.sr(b,jc.Sx)};e.prototype.Mn=function(b){return this.sr(b,jc.Tx)};var E=-1;e.prototype.trigger=function(b,a,d){if(!this.ka)return!1;var f=this.ka.mf;if(!f)return!1;var c=!1,g,m,l;E++;var q=f.xl;m=0;for(l=q.length;m<l;++m)g=this.pr(b,a,q[m],d),c=c||g;g=this.pr(b,a,f,d);E--;return c||g};e.prototype.pr=function(b,a,d,f){var c=
!1,g,m,l,q;if(a)for(l=this.Jn(b,a,a.type.name,d,f),c=c||l,q=a.type.Ea,g=0,m=q.length;g<m;++g)l=this.Jn(b,a,q[g].name,d,f),c=c||l;else l=this.Jn(b,a,"system",d,f),c=c||l;return c};e.prototype.Jn=function(b,a,d,f,c){var g,m=!1,l=!1,l="undefined"!==typeof c,q=(l?f.fp:f.qr)[d];if(!q)return m;var e=null;f=0;for(g=q.length;f<g;++f)if(q[f].method==b){e=q[f].fh;break}if(!e)return m;var p;l?p=e[c]:p=e;if(!p)return null;f=0;for(g=p.length;f<g;f++)b=p[f][0],c=p[f][1],l=this.Gu(a,d,b,c),m=m||l;return m};e.prototype.Gu=
function(b,a,d,f){var c,g,m=!1;this.Kn++;var l=this.Wa().eb;l&&this.ei(l.Ye);var q=1<this.Kn;this.ei(d.Ye);q&&this.vw();var e=this.pk(d);e.eb=d;b&&(c=this.types[a].ca(),c.ha=!1,y(c.c),c.c[0]=b,this.types[a].Ad());b=!0;if(d.parent){a=e.jr;for(c=d.parent;c;)a.push(c),c=c.parent;a.reverse();c=0;for(g=a.length;c<g;c++)if(!a[c].Hw()){b=!1;break}}b&&(this.gh++,d.Gc?d.Gw(f):d.Za(),m=m||e.zf);this.lk();q&&this.lw();this.We(d.Ye);l&&this.We(l.Ye);this.Me&&0===this.nd&&0===E&&!this.rm&&this.Db();this.Kn--;
return m};e.prototype.pj=function(){var b=this.Wa();return b.eb.cb[b.Ua]};e.prototype.Dv=function(){return 0===this.Wa().Ua};e.prototype.vw=function(){this.Pj++;this.Pj>=this.Cm.length&&this.Cm.push([])};e.prototype.lw=function(){this.Pj--};e.prototype.pp=function(){return this.Cm[this.Pj]};e.prototype.pk=function(b){this.ej++;this.ej>=this.Dl.length&&this.Dl.push(new Vb);var a=this.Wa();a.reset(b);return a};e.prototype.lk=function(){this.ej--};e.prototype.Wa=function(){return this.Dl[this.ej]};e.prototype.ww=
function(){this.Rj++;this.Rj>=this.Em.length&&this.Em.push(ba({name:void 0,index:0,ab:!1}));var b=this.Ru();b.name=void 0;b.index=0;b.ab=!1;return b};e.prototype.mw=function(){this.Rj--};e.prototype.Ru=function(){return this.Em[this.Rj]};e.prototype.qp=function(b,a){for(var d,f,c,g,m,l;a;){d=0;for(f=a.$c.length;d<f;d++)if(l=a.$c[d],l instanceof Wb&&pb(b,l.name))return l;a=a.parent}d=0;for(f=this.Vd.length;d<f;d++)for(m=this.Vd[d],c=0,g=m.Je.length;c<g;c++)if(l=m.Je[c],l instanceof Wb&&pb(b,l.name))return l;
return null};e.prototype.tp=function(b){var a,d;a=0;for(d=this.od.length;a<d;a++)if(this.od[a].U===b)return this.od[a];return null};e.prototype.tj=function(b){var a,d;a=0;for(d=this.m.length;a<d;a++)if(this.m[a].U===b)return this.m[a];return null};e.prototype.Uu=function(b){var a,d;a=0;for(d=this.Pf.length;a<d;a++)if(this.Pf[a].U===b)return this.Pf[a];return null};e.prototype.Dt=function(b,a){this.mi=[b,a];this.ma=!0};e.prototype.sv=function(){var b=this,a=this.pn,d=this.ae,f=this.Jj,g=!1;this.cr&&
(g=!0,a="__c2_continuouspreview",this.cr=!1);if(a.length){this.Db();d=this.Lw();if(c()&&!this.Ec)h(a,d,function(){ga("Saved state to IndexedDB storage ("+d.length+" bytes)");b.ae=d;b.trigger(F.prototype.e.$k,null);b.ae="";g&&r()},function(f){try{localStorage.setItem("__c2save_"+a,d),ga("Saved state to WebStorage ("+d.length+" bytes)"),b.ae=d,b.trigger(F.prototype.e.$k,null),b.ae="",g&&r()}catch(c){ga("Failed to save game state: "+f+"; "+c),b.trigger(F.prototype.e.no,null)}});else try{localStorage.setItem("__c2save_"+
a,d),ga("Saved state to WebStorage ("+d.length+" bytes)"),b.ae=d,this.trigger(F.prototype.e.$k,null),b.ae="",g&&r()}catch(m){ga("Error saving to WebStorage: "+m),b.trigger(F.prototype.e.no,null)}this.Kb=this.Jj=this.pn=""}if(f.length){if(c()&&!this.Ec)t(f,function(a){a?(b.Kb=a,ga("Loaded state from IndexedDB storage ("+b.Kb.length+" bytes)")):(b.Kb=localStorage.getItem("__c2save_"+f)||"",ga("Loaded state from WebStorage ("+b.Kb.length+" bytes)"));b.pi=!1;b.Kb.length||b.trigger(F.prototype.e.Zk,null)},
function(){b.Kb=localStorage.getItem("__c2save_"+f)||"";ga("Loaded state from WebStorage ("+b.Kb.length+" bytes)");b.pi=!1;b.Kb.length||b.trigger(F.prototype.e.Zk,null)});else{try{this.Kb=localStorage.getItem("__c2save_"+f)||"",ga("Loaded state from WebStorage ("+this.Kb.length+" bytes)")}catch(l){this.Kb=""}this.pi=!1;b.Kb.length||b.trigger(F.prototype.e.Zk,null)}this.pn=this.Jj=""}this.Kb.length&&(this.Db(),this.Pv(this.Kb),this.ae=this.Kb,this.trigger(F.prototype.e.Es,null),this.Kb=this.ae="")};
e.prototype.Lw=function(){var b,d,f,c,g,m,l,q={c2save:!0,version:1,rt:{time:this.ib.T,walltime:this.re.T,timescale:this.Jf,tickcount:this.vi,execcount:this.gh,next_uid:this.Th,running_layout:this.ka.U,start_time_offset:Date.now()-this.Gk},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};b=0;for(d=this.m.length;b<d;b++)if(g=this.m[b],!g.I&&!this.Ln(g)){m={instances:[]};Xa(g.X)&&(m.ex=a(g.X));f=0;for(c=g.c.length;f<c;f++)m.instances.push(this.nn(g.c[f]));q.types[g.U.toString()]=m}b=0;
for(d=this.od.length;b<d;b++)f=this.od[b],q.layouts[f.U.toString()]=f.Rb();c=q.events.groups;b=0;for(d=this.Pf.length;b<d;b++)f=this.Pf[b],c[f.U.toString()]=this.uj[f.oh].nh;d=q.events.cnds;for(l in this.Ce)this.Ce.hasOwnProperty(l)&&(b=this.Ce[l],Xa(b.X)&&(d[l]={ex:a(b.X)}));d=q.events.acts;for(l in this.xe)this.xe.hasOwnProperty(l)&&(b=this.xe[l],Xa(b.X)&&(d[l]={ex:a(b.X)}));d=q.events.vars;for(l in this.Tg)this.Tg.hasOwnProperty(l)&&(b=this.Tg[l],b.Ej||b.parent&&!b.Dh||(d[l]=b.data));q.system=
this.Nd.Rb();return JSON.stringify(q)};e.prototype.Mq=function(){var b,a,d,f,c,g;this.fe={};b=0;for(a=this.m.length;b<a;b++)if(d=this.m[b],!d.I)for(f=0,c=d.c.length;f<c;f++)g=d.c[f],this.fe[g.uid.toString()]=g};e.prototype.Pv=function(b){b=JSON.parse(b);if(b.c2save&&!(1<b.version)){this.wh=!0;var a=b.rt;this.ib.reset();this.ib.T=a.time;this.re.reset();this.re.T=a.walltime||0;this.Jf=a.timescale;this.vi=a.tickcount;this.gh=a.execcount;this.Gk=Date.now()-a.start_time_offset;var d=a.running_layout;if(d!==
this.ka.U)if(d=this.tp(d))this.Zo(d);else return;var f,c,g,m,l,q,e;q=b.types;for(c in q)if(q.hasOwnProperty(c)&&(m=this.tj(parseInt(c,10)))&&!m.I&&!this.Ln(m)){q[c].ex?m.X=q[c].ex:Ya(m.X);l=m.c;g=q[c].instances;d=0;for(f=ra(l.length,g.length);d<f;d++)this.Kj(l[d],g[d]);d=g.length;for(f=l.length;d<f;d++)this.ue(l[d]);d=l.length;for(f=g.length;d<f;d++){l=null;if(m.za.Qe&&(l=this.ka.rj(g[d].w.l),!l))continue;l=this.Ee(m.Qc,l,!1,0,0,!0);this.Kj(l,g[d])}m.Og=!0}this.Db();this.Mq();f=b.layouts;for(c in f)f.hasOwnProperty(c)&&
(d=this.tp(parseInt(c,10)))&&d.rc(f[c]);f=b.events.groups;for(c in f)f.hasOwnProperty(c)&&(d=this.Uu(parseInt(c,10)))&&this.uj[d.oh]&&this.uj[d.oh].Nw(f[c]);d=b.events.cnds;for(c in this.Ce)this.Ce.hasOwnProperty(c)&&(d.hasOwnProperty(c)?this.Ce[c].X=d[c].ex:this.Ce[c].X={});d=b.events.acts;for(c in this.xe)this.xe.hasOwnProperty(c)&&(d.hasOwnProperty(c)?this.xe[c].X=d[c].ex:this.xe[c].X={});d=b.events.vars;for(c in d)d.hasOwnProperty(c)&&this.Tg.hasOwnProperty(c)&&(this.Tg[c].data=d[c]);this.Th=
a.next_uid;this.wh=!1;d=0;for(f=this.ij.length;d<f;++d)l=this.ij[d],this.trigger(Object.getPrototypeOf(l.type.za).e.Vg,l);y(this.ij);this.Nd.rc(b.system);d=0;for(f=this.m.length;d<f;d++)if(m=this.m[d],!m.I&&!this.Ln(m))for(c=0,b=m.c.length;c<b;c++){l=m.c[c];if(m.oc)for(q=l.mh(),y(l.siblings),a=0,g=m.hc.length;a<g;a++)e=m.hc[a],m!==e&&l.siblings.push(e.c[q]);l.ye&&l.ye();if(l.B)for(a=0,g=l.B.length;a<g;a++)q=l.B[a],q.ye&&q.ye()}this.ma=!0}};e.prototype.nn=function(b,d){var f,c,g,m,l;m=b.type;g=m.za;
var q={};d?q.c2=!0:q.uid=b.uid;Xa(b.X)&&(q.ex=a(b.X));if(b.hb&&b.hb.length)for(q.ivs={},f=0,c=b.hb.length;f<c;f++)q.ivs[b.type.mm[f].toString()]=b.hb[f];if(g.Qe){g={x:b.x,y:b.y,w:b.width,h:b.height,l:b.k.U,zi:b.Uc()};0!==b.j&&(g.a=b.j);1!==b.opacity&&(g.o=b.opacity);.5!==b.lc&&(g.hX=b.lc);.5!==b.mc&&(g.hY=b.mc);0!==b.Eb&&(g.bm=b.Eb);b.visible||(g.v=b.visible);b.gf||(g.ce=b.gf);-1!==b.Sh&&(g.mts=b.Sh);if(m.K.length)for(g.fx=[],f=0,c=m.K.length;f<c;f++)l=m.K[f],g.fx.push({name:l.name,active:b.we[l.index],
params:b.Ka[l.index]});q.w=g}if(b.B&&b.B.length)for(q.behs={},f=0,c=b.B.length;f<c;f++)m=b.B[f],m.Rb&&(q.behs[m.type.U.toString()]=m.Rb());b.Rb&&(q.data=b.Rb());return q};e.prototype.Wu=function(b,a){var d,f;d=0;for(f=b.mm.length;d<f;d++)if(b.mm[d]===a)return d;return-1};e.prototype.Pu=function(b,a){var d,f;d=0;for(f=b.B.length;d<f;d++)if(b.B[d].type.U===a)return d;return-1};e.prototype.Kj=function(b,a,d){var f,c,g,m,l;l=b.type;m=l.za;if(d){if(!a.c2)return}else b.uid=a.uid;a.ex?b.X=a.ex:Ya(b.X);if(c=
a.ivs)for(f in c)c.hasOwnProperty(f)&&(g=this.Wu(l,parseInt(f,10)),0>g||g>=b.hb.length||(b.hb[g]=c[f]));if(m.Qe){g=a.w;b.k.U!==g.l&&(c=b.k,b.k=this.ka.rj(g.l),b.k?(c.Fg(b,!0),b.k.Yg(b,!0),b.Aa(),b.k.ii(0)):(b.k=c,d||this.ue(b)));b.x=g.x;b.y=g.y;b.width=g.w;b.height=g.h;b.yd=g.zi;b.j=g.hasOwnProperty("a")?g.a:0;b.opacity=g.hasOwnProperty("o")?g.o:1;b.lc=g.hasOwnProperty("hX")?g.hX:.5;b.mc=g.hasOwnProperty("hY")?g.hY:.5;b.visible=g.hasOwnProperty("v")?g.v:!0;b.gf=g.hasOwnProperty("ce")?g.ce:!0;b.Sh=
g.hasOwnProperty("mts")?g.mts:-1;b.Eb=g.hasOwnProperty("bm")?g.bm:0;b.$g=mb(b.Eb);this.q&&nb(b,b.Eb,this.q);b.Aa();if(g.hasOwnProperty("fx"))for(d=0,c=g.fx.length;d<c;d++)m=l.Ql(g.fx[d].name),0>m||(b.we[m]=g.fx[d].active,b.Ka[m]=g.fx[d].params);b.wd()}if(l=a.behs)for(f in l)l.hasOwnProperty(f)&&(d=this.Pu(b,parseInt(f,10)),0>d||b.B[d].rc(l[f]));a.data&&b.rc(a.data)};e.prototype.gp=function(b,a,d){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+b,function(b){b.file(a,d)},
d)};e.prototype.ip=function(b,a){this.gp("data.js",function(d){var f=new FileReader;f.onload=function(a){b(a.target.result)};f.onerror=a;f.readAsText(d)},a)};var da=[],R=0;e.prototype.Gm=function(){if(da.length&&!(8<=R)){R++;var b=da.shift();this.Ft(b.filename,b.Yw,b.du)}};e.prototype.hp=function(b,a,d){var f=this;da.push({filename:b,Yw:function(b){R--;f.Gm();a(b)},du:function(b){R--;f.Gm();d(b)}});this.Gm()};e.prototype.Ft=function(b,a,d){this.gp(b,function(b){var d=new FileReader;d.onload=function(b){a(b.target.result)};
d.readAsArrayBuffer(b)},d)};e.prototype.Hu=function(b,a,d){this.hp(b,function(b){b=URL.createObjectURL(new Blob([b]));a(b)},d)};e.prototype.Bv=function(b){return/^(?:[a-z]+:)?\/\//.test(b)||"data:"===b.substr(0,5)||"blob:"===b.substr(0,5)};e.prototype.Uq=function(b,a){this.Bh&&!this.Bv(a)?this.Hu(a,function(a){b.src=a},function(b){alert("Failed to load image: "+b)}):b.src=a};e.prototype.xk=function(b,a){"undefined"!==typeof b.imageSmoothingEnabled?b.imageSmoothingEnabled=a:(b.webkitImageSmoothingEnabled=
a,b.mozImageSmoothingEnabled=a,b.msImageSmoothingEnabled=a)};Xb=function(b){return new e(document.getElementById(b))};Yb=function(b,a){return new e({dc:!0,width:b,height:a})};window.cr_createRuntime=Xb;window.cr_createDCRuntime=Yb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var b=document.createElement("screencanvas")||document.createElement("canvas");b.Jo=!0;document.body.appendChild(b);b=new e(b);window.c2runtime=b;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,
window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return b};window.createEjectaRuntime=function(){var b=new e(document.getElementById("canvas"));window.c2runtime=b;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return b}})();window.cr_getC2Runtime=function(){var e=document.getElementById("c2canvas");return e?e.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(e,k){var c=window.cr_getC2Runtime();c&&c.Dt(e,k)};
window.cr_sizeCanvas=function(e,k){if(0!==e&&0!==k){var c=window.cr_getC2Runtime();c&&c.setSize(e,k)}};window.cr_setSuspended=function(e){var k=window.cr_getC2Runtime();k&&k.setSuspended(e)};
(function(){function e(b,a){this.b=b;this.mf=null;this.scrollX=this.b.mb/2;this.scrollY=this.b.lb/2;this.scale=1;this.j=0;this.$f=!0;this.name=a[0];this.hw=a[1];this.gw=a[2];this.width=a[1];this.height=a[2];this.tr=a[3];this.$q=a[4];this.U=a[5];var d=a[6],f,c;this.M=[];this.rh=[];f=0;for(c=d.length;f<c;f++){var l=new Zb(this,d[f]);l.sq=f;this.M.push(l)}d=a[7];this.uf=[];f=0;for(c=d.length;f<c;f++){var l=d[f],e=this.b.m[l[1]];e.Qc||(e.Qc=l);this.uf.push(l);-1===this.rh.indexOf(e)&&this.rh.push(e)}this.K=
[];this.aa=[];this.me=!0;this.Ka=[];f=0;for(c=a[8].length;f<c;f++)this.K.push({id:a[8][f][0],name:a[8][f][1],$a:-1,qd:!1,Ta:!0,index:f}),this.Ka.push(a[8][f][2].slice(0));this.wd();this.cn=new wa(0,0,1,1);this.dn=new wa(0,0,1,1);this.Ve={}}function k(b,a){return b.yd-a.yd}function c(b,a){this.kb=b;this.b=b.b;this.c=[];this.scale=1;this.j=0;this.Ud=!1;this.pe=new wa(0,0,0,0);this.nr=new xa;this.qa=this.pa=this.ra=this.na=0;this.Lf=!1;this.te=-1;this.rl=0;this.name=a[0];this.index=a[1];this.U=a[2];
this.visible=a[3];this.gd=a[4];this.ud=a[5];this.Vb=a[6];this.Wb=a[7];this.opacity=a[8];this.lj=a[9];this.Lc=a[10];this.Nb=a[11];this.Eb=a[12];this.$t=a[13];this.$g="source-over";this.Gb=this.Lb=0;this.Bb=null;this.be=n();this.sd=!0;this.qg=new wa(0,0,-1,-1);this.tb=new wa(0,0,-1,-1);this.Lc&&(this.Bb=new lb(this.b.mb,this.b.lb));this.Kd=!1;var d=a[14],f,c;this.fr=[];this.Dc=[];this.bh=[];f=0;for(c=d.length;f<c;f++){var l=d[f],e=this.b.m[l[1]];e.Qc||(e.Qc=l,e.Ct=this.index);this.Dc.push(l);-1===this.kb.rh.indexOf(e)&&
this.kb.rh.push(e)}Ea(this.fr,this.Dc);this.K=[];this.aa=[];this.me=!0;this.Ka=[];f=0;for(c=a[15].length;f<c;f++)this.K.push({id:a[15][f][0],name:a[15][f][1],$a:-1,qd:!1,Ta:!0,index:f}),this.Ka.push(a[15][f][2].slice(0));this.wd();this.cn=new wa(0,0,1,1);this.dn=new wa(0,0,1,1)}function n(){return a.length?a.pop():[]}function h(b){y(b);a.push(b)}e.prototype.Kw=function(b){var a=b.type.U.toString();this.Ve.hasOwnProperty(a)||(this.Ve[a]=[]);this.Ve[a].push(this.b.nn(b))};e.prototype.vp=function(){var b=
this.M[0];return!b.ud&&1===b.opacity&&!b.lj&&b.visible};e.prototype.wd=function(){y(this.aa);this.me=!0;var b,a,d;b=0;for(a=this.K.length;b<a;b++)d=this.K[b],d.Ta&&(this.aa.push(d),d.qd||(this.me=!1))};e.prototype.Pl=function(b){var a,d,f;a=0;for(d=this.K.length;a<d;a++)if(f=this.K[a],f.name===b)return f;return null};var t=[],r=!0;e.prototype.Bn=function(){this.$q&&(this.mf=this.b.El[this.$q],this.mf.On());this.b.ka=this;this.width=this.hw;this.height=this.gw;this.scrollX=this.b.mb/2;this.scrollY=
this.b.lb/2;var b,a,d,f,c,l,e;b=0;for(d=this.b.m.length;b<d;b++)if(a=this.b.m[b],!a.I)for(c=a.c,a=0,f=c.length;a<f;a++)if(l=c[a],l.k){var m=l.k.sq;m>=this.M.length&&(m=this.M.length-1);l.k=this.M[m];-1===l.k.c.indexOf(l)&&l.k.c.push(l);l.k.Lf=!0}if(!r)for(b=0,d=this.M.length;b<d;++b)this.M[b].c.sort(k);y(t);this.tt();b=0;for(d=this.M.length;b<d;b++)l=this.M[b],l.Bt(),l.Tk();c=!1;if(!this.$f){for(e in this.Ve)if(this.Ve.hasOwnProperty(e)&&(a=this.b.tj(parseInt(e,10)))&&!a.I&&this.b.Mn(a)){f=this.Ve[e];
b=0;for(d=f.length;b<d;b++){l=null;if(a.za.Qe&&(l=this.rj(f[b].w.l),!l))continue;l=this.b.Ee(a.Qc,l,!1,0,0,!0);this.b.Kj(l,f[b]);c=!0;t.push(l)}y(f)}b=0;for(d=this.M.length;b<d;b++)this.M[b].c.sort(k),this.M[b].Lf=!0}c&&(this.b.Db(),this.b.Mq());for(b=0;b<t.length;b++)if(l=t[b],l.type.oc)for(d=l.mh(),a=0,f=l.type.hc.length;a<f;a++)e=l.type.hc[a],l.type!==e&&(e.c.length>d?l.siblings.push(e.c[d]):e.Qc&&(c=this.b.Ee(e.Qc,l.k,!0,l.x,l.y,!0),this.b.Db(),e.Rk(),l.siblings.push(c),t.push(c)));b=0;for(d=
this.uf.length;b<d;b++)this.b.Ee(this.uf[b],null,!0);this.b.ff=null;this.b.Db();if(this.b.Ia&&!this.b.ya)for(b=0,d=this.b.m.length;b<d;b++)e=this.b.m[b],!e.I&&e.c.length&&e.Zm&&e.Zm(this.b.Ia);if(this.b.wh)Ea(this.b.ij,t);else for(b=0,d=t.length;b<d;b++)l=t[b],this.b.trigger(Object.getPrototypeOf(l.type.za).e.Vg,l);y(t);this.b.wh||this.b.trigger(F.prototype.e.fo,null);this.$f=!1};e.prototype.At=function(){var b,a,d,f,c;a=b=0;for(d=this.uf.length;b<d;b++)f=this.uf[b],c=this.b.m[f[1]],c.global?c.oc||
this.b.Ee(f,null,!0):(this.uf[a]=f,a++);Ca(this.uf,a)};e.prototype.Ww=function(){this.b.wh||this.b.trigger(F.prototype.e.Ds,null);this.b.om=!0;y(this.b.Nd.ec);var b,a,d,f,c,l;if(!this.$f)for(b=0,a=this.M.length;b<a;b++)for(this.M[b].Rn(),c=this.M[b].c,d=0,f=c.length;d<f;d++)l=c[d],l.type.global||this.b.Mn(l.type)&&this.Kw(l);b=0;for(a=this.M.length;b<a;b++){c=this.M[b].c;d=0;for(f=c.length;d<f;d++)l=c[d],l.type.global||this.b.ue(l);this.b.Db();y(c);this.M[b].Lf=!0}b=0;for(a=this.b.m.length;b<a;b++)if(c=
this.b.m[b],!(c.global||c.za.Qe||c.za.Ck||c.I)){d=0;for(f=c.c.length;d<f;d++)this.b.ue(c.c[d]);this.b.Db()}r=!1;this.b.om=!1};new wa(0,0,0,0);e.prototype.kd=function(b){var a,d=b,f=!1,c=!this.b.Ac;c&&(this.b.Ij||(this.b.Ij=document.createElement("canvas"),a=this.b.Ij,a.width=this.b.F,a.height=this.b.D,this.b.Qp=a.getContext("2d"),f=!0),a=this.b.Ij,d=this.b.Qp,a.width!==this.b.F&&(a.width=this.b.F,f=!0),a.height!==this.b.D&&(a.height=this.b.D,f=!0),f&&this.b.xk(d,this.b.La));d.globalAlpha=1;d.globalCompositeOperation=
"source-over";this.b.gl&&!this.vp()&&d.clearRect(0,0,this.b.F,this.b.D);var l,e,f=0;for(l=this.M.length;f<l;f++)e=this.M[f],e.visible&&0<e.opacity&&11!==e.Eb&&(e.c.length||!e.ud)?e.kd(d):e.Tk();c&&b.drawImage(a,0,0,this.b.width,this.b.height)};e.prototype.Xf=function(b){b.Tq(!0);this.b.Xa||(this.b.Xa=b.Pc(this.b.F,this.b.D,this.b.La));if(this.b.Xa.ef!==this.b.F||this.b.Xa.df!==this.b.D)b.deleteTexture(this.b.Xa),this.b.Xa=b.Pc(this.b.F,this.b.D,this.b.La);b.Zc(this.b.Xa);this.b.Ac||b.ke(this.b.F,
this.b.D);var a,d;for(a=this.M.length-1;0<=a;--a)d=this.M[a],d.visible&&1===d.opacity&&d.me&&0===d.Eb&&(d.c.length||!d.ud)?d.Xf(b):d.Tk();b.Tq(!1)};e.prototype.ic=function(b){var a=0<this.aa.length||this.b.Rg||!this.b.Ac||this.b.ta;if(a){this.b.Xa||(this.b.Xa=b.Pc(this.b.F,this.b.D,this.b.La));if(this.b.Xa.ef!==this.b.F||this.b.Xa.df!==this.b.D)b.deleteTexture(this.b.Xa),this.b.Xa=b.Pc(this.b.F,this.b.D,this.b.La);b.Zc(this.b.Xa);this.b.Ac||b.ke(this.b.F,this.b.D)}else this.b.Xa&&(b.Zc(null),b.deleteTexture(this.b.Xa),
this.b.Xa=null);this.b.gl&&!this.vp()&&b.clear(0,0,0,0);var d,f,c;d=0;for(f=this.M.length;d<f;d++)c=this.M[d],c.visible&&0<c.opacity&&(c.c.length||!c.ud)?c.ic(b):c.Tk();a&&(0===this.aa.length||1===this.aa.length&&this.b.Ac?(1===this.aa.length?(a=this.aa[0].index,b.$b(this.aa[0].$a),b.Jg(null,1/this.b.F,1/this.b.D,0,0,1,1,this.scale,this.j,0,0,this.b.F/2,this.b.D/2,this.b.ib.T,this.Ka[a]),b.ok(this.aa[0].$a)&&(this.b.ma=!0)):b.$b(0),this.b.Ac||b.ke(this.b.width,this.b.height),b.Zc(null),b.Sq(!1),b.Ig(1),
b.Ic(this.b.Xa),b.Qq(),b.Ld(),b.xd(),a=this.b.width/2,d=this.b.height/2,b.Eg(-a,d,a,d,a,-d,-a,-d),b.Ic(null),b.Sq(!0)):this.en(b,null,null,null))};e.prototype.lh=function(){return 0<this.aa.length||this.b.Rg||!this.b.Ac||this.b.ta?this.b.Xa:null};e.prototype.up=function(){var b=this.M[0].Cc(),a,d,f;a=1;for(d=this.M.length;a<d;a++)f=this.M[a],(0!==f.Vb||0!==f.Wb)&&f.Cc()<b&&(b=f.Cc());return b};e.prototype.qn=function(b){if(!this.tr){var a=1/this.up()*this.b.F/2;b>this.width-a&&(b=this.width-a);b<
a&&(b=a)}this.scrollX!==b&&(this.scrollX=b,this.b.ma=!0)};e.prototype.rn=function(b){if(!this.tr){var a=1/this.up()*this.b.D/2;b>this.height-a&&(b=this.height-a);b<a&&(b=a)}this.scrollY!==b&&(this.scrollY=b,this.b.ma=!0)};e.prototype.tt=function(){this.qn(this.scrollX);this.rn(this.scrollY)};e.prototype.en=function(b,a,d,f){var c=d?d.aa:a?a.aa:this.aa,l=1,e=0,m=0,q=0,p=this.b.F,h=this.b.D;d?(l=d.k.Cc(),e=d.k.wb(),m=d.k.na,q=d.k.pa,p=d.k.ra,h=d.k.qa):a&&(l=a.Cc(),e=a.wb(),m=a.na,q=a.pa,p=a.ra,h=a.qa);
var r=this.b.Ml,k,n,t,J,O=0,W=1,E,da,R=this.b.F,u=this.b.D,Y=R/2,w=u/2,K=a?a.cn:this.cn,A=a?a.dn:this.dn,L=0,U=0,G=0,C=0,M=R,na=R,N=u,Da=u,oa=t=0;J=d?d.k.wb():0;if(d){k=0;for(n=c.length;k<n;k++)t+=b.$u(c[k].$a),oa+=b.av(c[k].$a);C=d.Ga;L=a.Pb(C.left,C.top,!0,!0);G=a.Pb(C.left,C.top,!1,!0);M=a.Pb(C.right,C.bottom,!0,!0);N=a.Pb(C.right,C.bottom,!1,!0);0!==J&&(k=a.Pb(C.right,C.top,!0,!0),n=a.Pb(C.right,C.top,!1,!0),U=a.Pb(C.left,C.bottom,!0,!0),C=a.Pb(C.left,C.bottom,!1,!0),J=Math.min(L,M,k,U),M=Math.max(L,
M,k,U),L=J,J=Math.min(G,N,n,C),N=Math.max(G,N,n,C),G=J);L-=t;G-=oa;M+=t;N+=oa;A.left=L/R;A.top=1-G/u;A.right=M/R;A.bottom=1-N/u;U=L=ta(L);C=G=ta(G);na=M=ua(M);Da=N=ua(N);U-=t;C-=oa;na+=t;Da+=oa;0>L&&(L=0);0>G&&(G=0);M>R&&(M=R);N>u&&(N=u);0>U&&(U=0);0>C&&(C=0);na>R&&(na=R);Da>u&&(Da=u);K.left=L/R;K.top=1-G/u;K.right=M/R;K.bottom=1-N/u}else K.left=A.left=0,K.top=A.top=0,K.right=A.right=1,K.bottom=A.bottom=1;oa=d&&(b.di(c[0].$a)||0!==t||0!==oa||1!==d.opacity||d.type.za.nq)||a&&!d&&1!==a.opacity;b.Qq();
if(oa){r[O]||(r[O]=b.Pc(R,u,this.b.La));if(r[O].ef!==R||r[O].df!==u)b.deleteTexture(r[O]),r[O]=b.Pc(R,u,this.b.La);b.$b(0);b.Zc(r[O]);da=Da-C;b.clearRect(U,u-C-da,na-U,da);d?d.ic(b):(b.Ic(this.b.jb),b.Ig(a.opacity),b.Ld(),b.translate(-Y,-w),b.xd(),b.Hf(L,N,M,N,M,G,L,G,K));A.left=A.top=0;A.right=A.bottom=1;d&&(J=K.top,K.top=K.bottom,K.bottom=J);O=1;W=0}b.Ig(1);t=c.length-1;var Ma=b.an(c[t].$a)||!a&&!d&&!this.b.Ac;k=J=0;for(n=c.length;k<n;k++){r[O]||(r[O]=b.Pc(R,u,this.b.La));if(r[O].ef!==R||r[O].df!==
u)b.deleteTexture(r[O]),r[O]=b.Pc(R,u,this.b.La);b.$b(c[k].$a);J=c[k].index;b.ok(c[k].$a)&&(this.b.ma=!0);0!=k||oa?(b.Jg(f,1/R,1/u,A.left,A.top,A.right,A.bottom,l,e,m,q,(m+p)/2,(q+h)/2,this.b.ib.T,d?d.Ka[J]:a?a.Ka[J]:this.Ka[J]),b.Ic(null),k!==t||Ma?(b.Zc(r[O]),da=Da-C,E=u-C-da,b.clearRect(U,E,na-U,da)):(d?b.Xe(d.Lb,d.Gb):a&&b.Xe(a.Lb,a.Gb),b.Zc(f)),b.Ic(r[W]),b.Ld(),b.translate(-Y,-w),b.xd(),b.Hf(L,N,M,N,M,G,L,G,K),k!==t||Ma||b.Ic(null)):(b.Zc(r[O]),da=Da-C,E=u-C-da,b.clearRect(U,E,na-U,da),d?(d.Da&&
d.Da.va?(E=d.Da.va,W=1/E.width,E=1/E.height):(W=1/d.width,E=1/d.height),b.Jg(f,W,E,A.left,A.top,A.right,A.bottom,l,e,m,q,(m+p)/2,(q+h)/2,this.b.ib.T,d.Ka[J]),d.ic(b)):(b.Jg(f,1/R,1/u,0,0,1,1,l,e,m,q,(m+p)/2,(q+h)/2,this.b.ib.T,a?a.Ka[J]:this.Ka[J]),b.Ic(a?this.b.jb:this.b.Xa),b.Ld(),b.translate(-Y,-w),b.xd(),b.Hf(L,N,M,N,M,G,L,G,K)),A.left=A.top=0,A.right=A.bottom=1,d&&!Ma&&(J=N,N=G,G=J));O=0===O?1:0;W=0===O?1:0}Ma&&(b.$b(0),d?b.Xe(d.Lb,d.Gb):a?b.Xe(a.Lb,a.Gb):this.b.Ac||(b.ke(this.b.width,this.b.height),
Y=this.b.width/2,w=this.b.height/2,G=L=0,M=this.b.width,N=this.b.height),b.Zc(f),b.Ic(r[W]),b.Ld(),b.translate(-Y,-w),b.xd(),d&&1===c.length&&!oa?b.Hf(L,G,M,G,M,N,L,N,K):b.Hf(L,N,M,N,M,G,L,G,K),b.Ic(null))};e.prototype.rj=function(b){var a,d;a=0;for(d=this.M.length;a<d;a++)if(this.M[a].U===b)return this.M[a];return null};e.prototype.Rb=function(){var b,a,d,f={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.j,w:this.width,h:this.height,fv:this.$f,persist:this.Ve,fx:[],layers:{}};b=0;for(a=this.K.length;b<
a;b++)d=this.K[b],f.fx.push({name:d.name,active:d.Ta,params:this.Ka[d.index]});b=0;for(a=this.M.length;b<a;b++)d=this.M[b],f.layers[d.U.toString()]=d.Rb();return f};e.prototype.rc=function(b){var a,d,f,c;this.scrollX=b.sx;this.scrollY=b.sy;this.scale=b.s;this.j=b.a;this.width=b.w;this.height=b.h;this.Ve=b.persist;"undefined"!==typeof b.fv&&(this.$f=b.fv);var l=b.fx;a=0;for(d=l.length;a<d;a++)if(f=this.Pl(l[a].name))f.Ta=l[a].active,this.Ka[f.index]=l[a].params;this.wd();a=b.layers;for(c in a)a.hasOwnProperty(c)&&
(b=this.rj(parseInt(c,10)))&&b.rc(a[c])};Lb=e;c.prototype.wd=function(){y(this.aa);this.me=!0;var b,a,d;b=0;for(a=this.K.length;b<a;b++)d=this.K[b],d.Ta&&(this.aa.push(d),d.qd||(this.me=!1))};c.prototype.Pl=function(b){var a,d,f;a=0;for(d=this.K.length;a<d;a++)if(f=this.K[a],f.name===b)return f;return null};c.prototype.Bt=function(){var b,a,d,f,c,l;a=b=0;for(d=this.Dc.length;b<d;b++){f=this.Dc[b];c=this.b.m[f[1]];l=this.b.Mn(c);c=!0;if(!l||this.kb.$f){f=this.b.Ee(f,this,!0);if(!f)continue;t.push(f);
f.type.global&&(c=!1,this.bh.push(f.uid))}c&&(this.Dc[a]=this.Dc[b],a++)}this.Dc.length=a;this.b.Db();!this.b.u&&this.K.length&&(this.Eb=this.$t);this.$g=mb(this.Eb);this.b.q&&nb(this,this.Eb,this.b.q);this.sd=!0};c.prototype.Fg=function(b,a){var d=Ga(this.c,b);0>d||(a&&this.Lc&&b.Yb&&b.Yb.right>=b.Yb.left&&(b.Ba(),this.Bb.update(b,b.Yb,null),b.Yb.set(0,0,-1,-1)),d===this.c.length-1?this.c.pop():(Ba(this.c,d),this.ii(d)),this.sd=!0)};c.prototype.Yg=function(b,a){b.yd=this.c.length;this.c.push(b);
a&&this.Lc&&b.Yb&&b.Aa();this.sd=!0};c.prototype.sw=function(b){this.c.unshift(b);this.ii(0)};c.prototype.Vv=function(b,a,d){var f=b.Uc();a=a.Uc();Ba(this.c,f);f<a&&a--;d&&a++;a===this.c.length?this.c.push(b):this.c.splice(a,0,b);this.ii(f<a?f:a)};c.prototype.ii=function(b){-1===this.te?this.te=b:b<this.te&&(this.te=b);this.sd=this.Lf=!0};c.prototype.Rn=function(){if(this.Lf){-1===this.te&&(this.te=0);var b,a,d;if(this.Lc)for(b=this.te,a=this.c.length;b<a;++b)d=this.c[b],d.yd=b,this.Bb.Rv(d.Yb);else for(b=
this.te,a=this.c.length;b<a;++b)this.c[b].yd=b;this.Lf=!1;this.te=-1}};c.prototype.Cc=function(b){return this.Xu()*(this.b.Ac||b?this.b.Zg:1)};c.prototype.Xu=function(){return(this.scale*this.kb.scale-1)*this.Nb+1};c.prototype.wb=function(){return this.Ud?0:La(this.kb.j+this.j)};var a=[],d=[],p=[];c.prototype.Ul=function(){this.Rn();this.Bb.qk(this.na,this.pa,this.ra,this.qa,p);if(!p.length)return n();if(1===p.length){var b=n();Ea(b,p[0]);y(p);return b}for(var a=!0;1<p.length;){for(var b=p,c=void 0,
f=void 0,e=void 0,l=void 0,r=void 0,c=0,f=b.length;c<f-1;c+=2){var e=b[c],l=b[c+1],r=n(),m=e,q=l,k=r,t=0,T=0,Q=0,H=m.length,P=q.length,J=void 0,O=void 0;for(k.length=H+P;t<H&&T<P;++Q)J=m[t],O=q[T],J.yd<O.yd?(k[Q]=J,++t):(k[Q]=O,++T);for(;t<H;++t,++Q)k[Q]=m[t];for(;T<P;++T,++Q)k[Q]=q[T];a||(h(e),h(l));d.push(r)}1===f%2&&(a?(e=n(),Ea(e,b[f-1]),d.push(e)):d.push(b[f-1]));Ea(b,d);y(d);a=!1}b=p[0];y(p);return b};c.prototype.kd=function(b){this.Kd=this.lj||1!==this.opacity||0!==this.Eb;var a=this.b.canvas,
d=b,f=!1;this.Kd&&(this.b.Hj||(this.b.Hj=document.createElement("canvas"),a=this.b.Hj,a.width=this.b.F,a.height=this.b.D,this.b.Pp=a.getContext("2d"),f=!0),a=this.b.Hj,d=this.b.Pp,a.width!==this.b.F&&(a.width=this.b.F,f=!0),a.height!==this.b.D&&(a.height=this.b.D,f=!0),f&&this.b.xk(d,this.b.La),this.ud&&d.clearRect(0,0,this.b.F,this.b.D));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.ud||(d.fillStyle="rgb("+this.gd[0]+","+this.gd[1]+","+this.gd[2]+")",d.fillRect(0,0,this.b.F,this.b.D));
d.save();this.Ud=!0;var f=this.Ca(0,0,!0,!0),c=this.Ca(0,0,!1,!0);this.Ud=!1;this.b.ie&&(f=Math.round(f),c=Math.round(c));this.tk(f,c,d);var l=this.Cc();d.scale(l,l);d.translate(-f,-c);this.Lc?(this.tb.left=this.Bb.Tb(this.na),this.tb.top=this.Bb.Ub(this.pa),this.tb.right=this.Bb.Tb(this.ra),this.tb.bottom=this.Bb.Ub(this.qa),this.sd||!this.tb.eh(this.qg)?(h(this.be),f=this.Ul(),this.sd=!1,this.qg.Tf(this.tb)):f=this.be):f=this.c;for(var e,m=null,c=0,l=f.length;c<l;++c)e=f[c],e!==m&&(this.Ut(e,d),
m=e);this.Lc&&(this.be=f);d.restore();this.Kd&&(b.globalCompositeOperation=this.$g,b.globalAlpha=this.opacity,b.drawImage(a,0,0))};c.prototype.Ut=function(b,a){if(b.visible&&0!==b.width&&0!==b.height){b.Ba();var d=b.Ga;d.right<this.na||d.bottom<this.pa||d.left>this.ra||d.top>this.qa||(a.globalCompositeOperation=b.$g,b.kd(a))}};c.prototype.Tk=function(){this.Ud=!0;var b=this.Ca(0,0,!0,!0),a=this.Ca(0,0,!1,!0);this.Ud=!1;this.b.ie&&(b=Math.round(b),a=Math.round(a));this.tk(b,a,null)};c.prototype.tk=
function(b,a,d){var c=this.Cc();this.na=b;this.pa=a;this.ra=b+1/c*this.b.F;this.qa=a+1/c*this.b.D;this.na>this.ra&&(b=this.na,this.na=this.ra,this.ra=b);this.pa>this.qa&&(b=this.pa,this.pa=this.qa,this.qa=b);b=this.wb();0!==b&&(d&&(d.translate(this.b.F/2,this.b.D/2),d.rotate(-b),d.translate(this.b.F/-2,this.b.D/-2)),this.pe.set(this.na,this.pa,this.ra,this.qa),this.pe.offset((this.na+this.ra)/-2,(this.pa+this.qa)/-2),this.nr.Yq(this.pe,b),this.nr.Lo(this.pe),this.pe.offset((this.na+this.ra)/2,(this.pa+
this.qa)/2),this.na=this.pe.left,this.pa=this.pe.top,this.ra=this.pe.right,this.qa=this.pe.bottom)};c.prototype.Xf=function(b){if(this.Kd=this.lj){this.b.jb||(this.b.jb=b.Pc(this.b.F,this.b.D,this.b.La));if(this.b.jb.ef!==this.b.F||this.b.jb.df!==this.b.D)b.deleteTexture(this.b.jb),this.b.jb=b.Pc(this.b.F,this.b.D,this.b.La);b.Zc(this.b.jb)}this.Ud=!0;var a=this.Ca(0,0,!0,!0),d=this.Ca(0,0,!1,!0);this.Ud=!1;this.b.ie&&(a=Math.round(a),d=Math.round(d));this.tk(a,d,null);a=this.Cc();b.Ld();b.scale(a,
a);b.kn(-this.wb());b.translate((this.na+this.ra)/-2,(this.pa+this.qa)/-2);b.xd();this.Lc?(this.tb.left=this.Bb.Tb(this.na),this.tb.top=this.Bb.Ub(this.pa),this.tb.right=this.Bb.Tb(this.ra),this.tb.bottom=this.Bb.Ub(this.qa),this.sd||!this.tb.eh(this.qg)?(h(this.be),a=this.Ul(),this.sd=!1,this.qg.Tf(this.tb)):a=this.be):a=this.c;for(var c,e=null,d=a.length-1;0<=d;--d)c=a[d],c!==e&&(this.Wt(a[d],b),e=c);this.Lc&&(this.be=a);this.ud||(this.rl=this.b.lf++,b.yk(this.rl),b.Rq(1,1,1),b.lp(),b.Bw())};c.prototype.ic=
function(b){var a=0,d=0;if(this.Kd=this.lj||1!==this.opacity||0<this.aa.length||0!==this.Eb){this.b.jb||(this.b.jb=b.Pc(this.b.F,this.b.D,this.b.La));if(this.b.jb.ef!==this.b.F||this.b.jb.df!==this.b.D)b.deleteTexture(this.b.jb),this.b.jb=b.Pc(this.b.F,this.b.D,this.b.La);b.Zc(this.b.jb);this.ud&&b.clear(0,0,0,0)}this.ud||(this.b.ta?(b.yk(this.rl),b.Rq(this.gd[0]/255,this.gd[1]/255,this.gd[2]/255),b.lp(),b.Sw()):b.clear(this.gd[0]/255,this.gd[1]/255,this.gd[2]/255,1));this.Ud=!0;var c=this.Ca(0,0,
!0,!0),a=this.Ca(0,0,!1,!0);this.Ud=!1;this.b.ie&&(c=Math.round(c),a=Math.round(a));this.tk(c,a,null);c=this.Cc();b.Ld();b.scale(c,c);b.kn(-this.wb());b.translate((this.na+this.ra)/-2,(this.pa+this.qa)/-2);b.xd();this.Lc?(this.tb.left=this.Bb.Tb(this.na),this.tb.top=this.Bb.Ub(this.pa),this.tb.right=this.Bb.Tb(this.ra),this.tb.bottom=this.Bb.Ub(this.qa),this.sd||!this.tb.eh(this.qg)?(h(this.be),a=this.Ul(),this.sd=!1,this.qg.Tf(this.tb)):a=this.be):a=this.c;var e,l,p=null,d=0;for(e=a.length;d<e;++d)l=
a[d],l!==p&&(this.Vt(a[d],b),p=l);this.Lc&&(this.be=a);this.Kd&&(a=this.aa.length?this.aa[0].$a:0,d=this.aa.length?this.aa[0].index:0,0===this.aa.length||1===this.aa.length&&!b.an(a)&&1===this.opacity?(1===this.aa.length?(b.$b(a),b.Jg(this.kb.lh(),1/this.b.F,1/this.b.D,0,0,1,1,c,this.wb(),this.na,this.pa,(this.na+this.ra)/2,(this.pa+this.qa)/2,this.b.ib.T,this.Ka[d]),b.ok(a)&&(this.b.ma=!0)):b.$b(0),b.Zc(this.kb.lh()),b.Ig(this.opacity),b.Ic(this.b.jb),b.Xe(this.Lb,this.Gb),b.Ld(),b.xd(),c=this.b.F/
2,a=this.b.D/2,b.Eg(-c,a,c,a,c,-a,-c,-a),b.Ic(null)):this.kb.en(b,this,null,this.kb.lh()))};c.prototype.Vt=function(b,a){if(b.visible&&0!==b.width&&0!==b.height){b.Ba();var d=b.Ga;d.right<this.na||d.bottom<this.pa||d.left>this.ra||d.top>this.qa||(a.yk(b.lf),b.Er?this.Xt(b,a):(a.$b(0),a.Xe(b.Lb,b.Gb),b.ic(a)))}};c.prototype.Wt=function(b,a){if(b.visible&&0!==b.width&&0!==b.height){b.Ba();var d=b.Ga;d.right<this.na||d.bottom<this.pa||d.left>this.ra||d.top>this.qa||(b.lf=this.b.lf++,0===b.Eb&&1===b.opacity&&
b.me&&b.Xf&&(a.yk(b.lf),b.Xf(a)))}};c.prototype.Xt=function(b,a){var d=b.aa[0].$a,c=b.aa[0].index,e=this.Cc();if(1!==b.aa.length||a.an(d)||a.uw(d)||(b.j||b.k.wb())&&a.di(d)||1!==b.opacity||b.type.za.nq)this.kb.en(a,this,b,this.Kd?this.b.jb:this.kb.lh()),a.Ld(),a.scale(e,e),a.kn(-this.wb()),a.translate((this.na+this.ra)/-2,(this.pa+this.qa)/-2),a.xd();else{a.$b(d);a.Xe(b.Lb,b.Gb);a.ok(d)&&(this.b.ma=!0);var l=0,p=0,m=0,q=0;a.di(d)&&(q=b.Ga,l=this.Pb(q.left,q.top,!0,!0),p=this.Pb(q.left,q.top,!1,!0),
m=this.Pb(q.right,q.bottom,!0,!0),q=this.Pb(q.right,q.bottom,!1,!0),l=l/windowWidth,p=1-p/windowHeight,m=m/windowWidth,q=1-q/windowHeight);var h;b.Da&&b.Da.va?(h=b.Da.va,d=1/h.width,h=1/h.height):(d=1/b.width,h=1/b.height);a.Jg(this.Kd?this.b.jb:this.kb.lh(),d,h,l,p,m,q,e,this.wb(),this.na,this.pa,(this.na+this.ra)/2,(this.pa+this.qa)/2,this.b.ib.T,b.Ka[c]);b.ic(a)}};c.prototype.Ca=function(b,a,d,c){var e=this.b.devicePixelRatio;this.b.wf&&(b*=e,a*=e);var e=this.b.Eq,l=this.b.Fq,e=(this.kb.scrollX-
e)*this.Vb+e,l=(this.kb.scrollY-l)*this.Wb+l,p=e,m=l,q=1/this.Cc(!c);c?(p-=this.b.F*q/2,m-=this.b.D*q/2):(p-=this.b.width*q/2,m-=this.b.height*q/2);p+=b*q;m+=a*q;a=this.wb();0!==a&&(p-=e,m-=l,b=Math.cos(a),a=Math.sin(a),c=p*b-m*a,m=m*b+p*a,p=c+e,m+=l);return d?p:m};c.prototype.Pb=function(b,a,d,c){var e=this.b.Eq,l=this.b.Fq,p=(this.kb.scrollX-e)*this.Vb+e,m=(this.kb.scrollY-l)*this.Wb+l,l=p,e=m,q=this.wb();if(0!==q){b-=p;a-=m;var h=Math.cos(-q),q=Math.sin(-q),r=b*h-a*q;a=a*h+b*q;b=r+p;a+=m}p=1/this.Cc(!c);
c?(l-=this.b.F*p/2,e-=this.b.D*p/2):(l-=this.b.width*p/2,e-=this.b.height*p/2);l=(b-l)/p;e=(a-e)/p;b=this.b.devicePixelRatio;this.b.wf&&!c&&(l/=b,e/=b);return d?l:e};c.prototype.Rb=function(){var b,a,d,c={s:this.scale,a:this.j,vl:this.na,vt:this.pa,vr:this.ra,vb:this.qa,v:this.visible,bc:this.gd,t:this.ud,px:this.Vb,py:this.Wb,o:this.opacity,zr:this.Nb,fx:[],cg:this.bh,instances:[]};b=0;for(a=this.K.length;b<a;b++)d=this.K[b],c.fx.push({name:d.name,active:d.Ta,params:this.Ka[d.index]});return c};
c.prototype.rc=function(b){var a,d,c;this.scale=b.s;this.j=b.a;this.na=b.vl;this.pa=b.vt;this.ra=b.vr;this.qa=b.vb;this.visible=b.v;this.gd=b.bc;this.ud=b.t;this.Vb=b.px;this.Wb=b.py;this.opacity=b.o;this.Nb=b.zr;this.bh=b.cg||[];Ea(this.Dc,this.fr);var e=new ea;a=0;for(c=this.bh.length;a<c;++a)e.add(this.bh[a]);d=a=0;for(c=this.Dc.length;a<c;++a)e.contains(this.Dc[a][2])||(this.Dc[d]=this.Dc[a],++d);Ca(this.Dc,d);d=b.fx;a=0;for(c=d.length;a<c;a++)if(b=this.Pl(d[a].name))b.Ta=d[a].active,this.Ka[b.index]=
d[a].params;this.wd();this.c.sort(k);this.Lf=!0};Zb=c})();
(function(){function e(b,a){var d,c=b.length;switch(c){case 0:return!0;case 1:return b[0]===a[0];case 2:return b[0]===a[0]&&b[1]===a[1];default:for(d=0;d<c;d++)if(b[d]!==a[d])return!1;return!0}}function k(b,a){return b.index-a.index}function c(b){var a,d,c,f;2===b.length?b[0].index>b[1].index&&(a=b[0],b[0]=b[1],b[1]=a):2<b.length&&b.sort(k);b.length>=x.length&&(x.length=b.length+1);x[b.length]||(x[b.length]=[]);f=x[b.length];a=0;for(d=f.length;a<d;a++)if(c=f[a],e(b,c))return c;f.push(b);return b}
function n(b,a){this.b=b;this.qr={};this.fp={};this.am=!1;this.xp=new ea;this.xl=[];this.hl=[];this.name=a[0];var d=a[1];this.Je=[];var c,f;c=0;for(f=d.length;c<f;c++)this.zp(d[c],null,this.Je)}function h(b){this.type=b;this.c=[];this.L=[];this.ha=!0}function t(b,a,d){this.sheet=b;this.parent=a;this.b=b.b;this.la=[];this.Ye=[];this.wp=this.Nk=this.In=this.hm=this.group=this.zn=!1;this.cb=[];this.ed=[];this.$c=[];this.oh="";this.nh=this.hm=this.group=!1;this.Ui=null;d[1]&&(this.oh=d[1][1].toLowerCase(),
this.group=!0,this.hm=!!d[1][0],this.Ui=[],this.nh=this.hm,this.b.Pf.push(this),this.b.uj[this.oh]=this);this.Gc=d[2];this.U=d[4];this.group||(this.b.Ko[this.U.toString()]=this);var c=d[5];b=0;for(a=c.length;b<a;b++){var f=new $b(this,c[b]);f.index=b;this.cb.push(f);this.Do(f.type)}c=d[6];b=0;for(a=c.length;b<a;b++)f=new ac(this,c[b]),f.index=b,this.ed.push(f);if(8===d.length)for(d=d[7],b=0,a=d.length;b<a;b++)this.sheet.zp(d[b],this,this.$c);this.Fj=!1;this.cb.length&&(this.Fj=null==this.cb[0].type&&
this.cb[0].ub==F.prototype.e.$n)}function r(b,a){var d,c,f;if(b&&(-1===a.indexOf(b)&&a.push(b),b.oc))for(d=0,c=b.hc.length;d<c;d++)f=b.hc[d],b!==f&&-1===a.indexOf(f)&&a.push(f)}function a(b,a){this.uc=b;this.sheet=b.sheet;this.b=b.b;this.N=[];this.Ma=[];this.X={};this.index=-1;this.Wg=!1;this.ub=this.b.ve(a[1]);this.trigger=0<a[3];this.ep=2===a[3];this.Gd=a[4];this.Aj=a[5];this.Nv=a[6];this.U=a[7];this.b.Ce[this.U.toString()]=this;-1===a[0]?(this.type=null,this.Za=this.mn,this.cf=null,this.hd=-1):
(this.type=this.b.m[a[0]],this.Za=this.Nv?this.Iw:this.ln,a[2]?(this.cf=this.type.oj(a[2]),this.hd=this.type.Ol(a[2])):(this.cf=null,this.hd=-1),this.uc.parent&&this.uc.parent.zk());this.ep&&(this.Za=this.Jw);if(10===a.length){var d,c,f=a[9];d=0;for(c=f.length;d<c;d++){var l=new bc(this,f[d]);this.N.push(l)}this.Ma.length=f.length}}function d(b,a){this.uc=b;this.sheet=b.sheet;this.b=b.b;this.N=[];this.Ma=[];this.X={};this.index=-1;this.Wg=!1;this.ub=this.b.ve(a[1]);-1===a[0]?(this.type=null,this.Za=
this.mn,this.cf=null,this.hd=-1):(this.type=this.b.m[a[0]],this.Za=this.ln,a[2]?(this.cf=this.type.oj(a[2]),this.hd=this.type.Ol(a[2])):(this.cf=null,this.hd=-1));this.U=a[3];this.b.xe[this.U.toString()]=this;if(6===a.length){var d,c,f=a[5];d=0;for(c=f.length;d<c;d++){var l=new bc(this,f[d]);this.N.push(l)}this.Ma.length=f.length}}function p(){I++;l.length===I&&l.push(new cc);return l[I]}function b(b,a){this.ua=b;this.uc=b.uc;this.sheet=b.sheet;this.b=b.b;this.type=a[0];this.Dd=null;this.ne=0;this.get=
null;this.Ro=0;this.kb=null;this.key=0;this.object=null;this.index=0;this.yi=this.If=this.yi=this.If=this.jp=this.nf=this.Ai=null;this.dd=!1;var d,c,f;switch(a[0]){case 0:case 7:this.Dd=new dc(this,a[1]);this.ne=0;this.get=this.hv;break;case 1:this.Dd=new dc(this,a[1]);this.ne=0;this.get=this.iv;break;case 5:this.Dd=new dc(this,a[1]);this.ne=0;this.get=this.mv;break;case 3:case 8:this.Ro=a[1];this.get=this.dv;break;case 6:this.kb=this.b.rg[a[1]];this.get=this.nv;break;case 9:this.key=a[1];this.get=
this.lv;break;case 4:this.object=this.b.m[a[1]];this.get=this.ov;this.uc.Do(this.object);this.ua instanceof ac?this.uc.zk():this.uc.parent&&this.uc.parent.zk();break;case 10:this.index=a[1];b.type&&b.type.I?(this.get=this.jv,this.dd=!0):this.get=this.kv;break;case 11:this.Ai=a[1];this.nf=null;this.get=this.gv;break;case 2:case 12:this.jp=a[1];this.get=this.cv;break;case 13:for(this.get=this.pv,this.If=[],this.yi=[],d=1,c=a.length;d<c;d++)f=new bc(this.ua,a[d]),this.If.push(f),this.yi.push(0)}}function g(b,
a,d){this.sheet=b;this.parent=a;this.b=b.b;this.la=[];this.name=d[1];this.Bi=d[2];this.gm=d[3];this.Dh=!!d[4];this.Ej=!!d[5];this.U=d[6];this.b.Tg[this.U.toString()]=this;this.data=this.gm;this.parent?(this.Df=this.Dh||this.Ej?-1:this.b.Uw++,this.b.nt.push(this)):(this.Df=-1,this.b.mt.push(this))}function v(b,a,d){this.sheet=b;this.parent=a;this.b=b.b;this.la=[];this.qh=null;this.wv=d[1];this.Ta=!0}function f(){this.jr=[];this.reset(null)}var x=[];n.prototype.toString=function(){return this.name};
n.prototype.zp=function(b,a,d){switch(b[0]){case 0:b=new ec(this,a,b);if(b.Gc)for(d.push(b),d=0,a=b.cb.length;d<a;d++)b.cb[d].trigger&&this.Ap(b,d);else b.Jp()?this.Ap(b,0):d.push(b);break;case 1:b=new Wb(this,a,b);d.push(b);break;case 2:b=new fc(this,a,b),d.push(b)}};n.prototype.Pa=function(){var b,a;b=0;for(a=this.Je.length;b<a;b++)this.Je[b].Pa(b<a-1&&this.Je[b+1].Fj)};n.prototype.On=function(){y(this.xl);y(this.hl);this.Co(this);y(this.hl)};n.prototype.Co=function(b){var a,d,c,f,l=b.xl,e=b.hl,
g=this.xp.cd();a=0;for(d=g.length;a<d;++a)c=g[a],f=c.qh,!c.Ta||b===f||-1<e.indexOf(f)||(e.push(f),f.Co(b),l.push(f))};n.prototype.Za=function(b){this.b.Uy||(this.am=!0,b||(this.b.rm=!0));var a,d;a=0;for(d=this.Je.length;a<d;a++){var c=this.Je[a];c.Za();this.b.ql(c.la);this.b.Me&&this.b.Db()}b||(this.b.rm=!1)};n.prototype.Ap=function(b,a){b.Gc||this.b.Qk.push(b);var d,c,f=b.cb[a],l;f.type?l=f.type.name:l="system";var e=(d=f.ep)?this.fp:this.qr;e[l]||(e[l]=[]);l=e[l];e=f.ub;if(d){if(f.N.length&&(f=
f.N[0],1===f.type&&2===f.Dd.type)){f=f.Dd.value.toLowerCase();d=0;for(c=l.length;d<c;d++)if(l[d].method==e){d=l[d].fh;d[f]?d[f].push([b,a]):d[f]=[[b,a]];return}d={};d[f]=[[b,a]];l.push({method:e,fh:d})}}else{d=0;for(c=l.length;d<c;d++)if(l[d].method==e){l[d].fh.push([b,a]);return}S&&e===S.prototype.e.Of?l.unshift({method:e,fh:[[b,a]]}):l.push({method:e,fh:[[b,a]]})}};Mb=n;h.prototype.$l=function(){return this.ha?this.type.c.length:this.c.length};h.prototype.Tc=function(){return this.ha?this.type.c:
this.c};h.prototype.ci=function(b){b&&(b.b.Wa().eb.Gc?(this.ha&&(y(this.c),Ea(this.L,b.type.c),this.ha=!1),b=this.L.indexOf(b),-1!==b&&(this.c.push(this.L[b]),this.L.splice(b,1))):(this.ha=!1,y(this.c),this.c[0]=b))};ub=h;window._c2hh_="92B8C9009A8E762473DC0661212CE3539238BB23";t.prototype.Pa=function(b){var a,d=this.parent;if(this.group)for(this.Nk=!0;d;){if(!d.group){this.Nk=!1;break}d=d.parent}this.In=!this.Jp()&&(!this.parent||this.parent.group&&this.parent.Nk);this.wp=!!b;this.Ye=this.la.slice(0);
for(d=this.parent;d;){b=0;for(a=d.la.length;b<a;b++)this.jt(d.la[b]);d=d.parent}this.la=c(this.la);this.Ye=c(this.Ye);b=0;for(a=this.cb.length;b<a;b++)this.cb[b].Pa();b=0;for(a=this.ed.length;b<a;b++)this.ed[b].Pa();b=0;for(a=this.$c.length;b<a;b++)this.$c[b].Pa(b<a-1&&this.$c[b+1].Fj)};t.prototype.Nw=function(b){if(this.nh!==!!b){this.nh=!!b;var a;b=0;for(a=this.Ui.length;b<a;++b)this.Ui[b].wr();0<a&&this.b.ka.mf&&this.b.ka.mf.On()}};t.prototype.Do=function(b){r(b,this.la)};t.prototype.jt=function(b){r(b,
this.Ye)};t.prototype.zk=function(){this.zn=!0;this.parent&&this.parent.zk()};t.prototype.Jp=function(){return this.cb.length?this.cb[0].trigger:!1};t.prototype.Za=function(){var b,a,d=!1,c=this.b,f=this.b.Wa();f.eb=this;var l=this.cb;this.Fj||(f.Cl=!1);if(this.Gc){0===l.length&&(d=!0);f.Ua=0;for(b=l.length;f.Ua<b;f.Ua++)a=l[f.Ua],a.trigger||(a=a.Za())&&(d=!0);(f.zf=d)&&this.uk()}else{f.Ua=0;for(b=l.length;f.Ua<b;f.Ua++)if(a=l[f.Ua].Za(),!a){f.zf=!1;this.In&&c.Me&&c.Db();return}f.zf=!0;this.uk()}this.bu(f)};
t.prototype.bu=function(b){b.zf&&this.wp&&(b.Cl=!0);this.In&&this.b.Me&&this.b.Db()};t.prototype.Gw=function(b){this.b.Wa().eb=this;this.cb[b].Za()&&(this.uk(),this.b.Wa().zf=!0)};t.prototype.uk=function(){var b=this.b.Wa(),a;b.fc=0;for(a=this.ed.length;b.fc<a;b.fc++)if(this.ed[b.fc].Za())return;this.Pq()};t.prototype.Dw=function(){var b=this.b.Wa(),a;for(a=this.ed.length;b.fc<a;b.fc++)if(this.ed[b.fc].Za())return;this.Pq()};t.prototype.Pq=function(){if(this.$c.length){var b,a,d,c,f=this.$c.length-
1;this.b.pk(this);if(this.zn)for(b=0,a=this.$c.length;b<a;b++)d=this.$c[b],(c=!this.Nk||!this.group&&b<f)&&this.b.fi(d.la),d.Za(),c?this.b.We(d.la):this.b.ql(d.la);else for(b=0,a=this.$c.length;b<a;b++)this.$c[b].Za();this.b.lk()}};t.prototype.Hw=function(){var b=this.b.Wa();b.eb=this;var a=!1,d;b.Ua=0;for(d=this.cb.length;b.Ua<d;b.Ua++)if(this.cb[b.Ua].Za())a=!0;else if(!this.Gc)return!1;return this.Gc?a:!0};t.prototype.jn=function(){this.b.gh++;var b=this.b.Wa().Ua,a=this.b.pk(this);if(!this.Gc)for(a.Ua=
b+1,b=this.cb.length;a.Ua<b;a.Ua++)if(!this.cb[a.Ua].Za())return this.b.lk(),!1;this.uk();this.b.lk();return!0};t.prototype.Fv=function(b){var a=b.index;if(0===a)return!0;for(--a;0<=a;--a)if(this.cb[a].type===b.type)return!1;return!0};ec=t;a.prototype.Pa=function(){var b,a,d;b=0;for(a=this.N.length;b<a;b++)d=this.N[b],d.Pa(),d.dd&&(this.Wg=!0)};a.prototype.Jw=function(){return!0};a.prototype.mn=function(){var b,a;b=0;for(a=this.N.length;b<a;b++)this.Ma[b]=this.N[b].get();return Wa(this.ub.apply(this.b.Nd,
this.Ma),this.Aj)};a.prototype.Iw=function(){var b,a;b=0;for(a=this.N.length;b<a;b++)this.Ma[b]=this.N[b].get();b=this.ub.apply(this.cf?this.cf:this.type,this.Ma);this.type.Ad();return b};a.prototype.ln=function(){var b,a,d,c,f,l,e,g,p=this.type,h=p.ca(),r=this.uc.Gc&&!this.trigger;a=0;var k=p.oc,n=p.I,t=p.Wd,x=this.hd,I=-1<x,v=this.Wg,K=this.N,A=this.Ma,L=this.Aj,U=this.ub,G;if(v)for(a=0,f=K.length;a<f;++a)l=K[a],l.dd||(A[a]=l.get(0));else for(a=0,f=K.length;a<f;++a)A[a]=K[a].get(0);if(h.ha){y(h.c);
y(h.L);G=p.c;b=0;for(c=G.length;b<c;++b){g=G[b];if(v)for(a=0,f=K.length;a<f;++a)l=K[a],l.dd&&(A[a]=l.get(b));I?(a=0,n&&(a=g.type.Zf[t]),a=U.apply(g.B[x+a],A)):a=U.apply(g,A);(e=Wa(a,L))?h.c.push(g):r&&h.L.push(g)}p.finish&&p.finish(!0);h.ha=!1;p.Ad();return h.$l()}d=0;G=(e=r&&!this.uc.Fv(this))?h.L:h.c;var C=!1;b=0;for(c=G.length;b<c;++b){g=G[b];if(v)for(a=0,f=K.length;a<f;++a)l=K[a],l.dd&&(A[a]=l.get(b));I?(a=0,n&&(a=g.type.Zf[t]),a=U.apply(g.B[x+a],A)):a=U.apply(g,A);if(Wa(a,L))if(C=!0,e){if(h.c.push(g),
k)for(a=0,f=g.siblings.length;a<f;a++)l=g.siblings[a],l.type.ca().c.push(l)}else{G[d]=g;if(k)for(a=0,f=g.siblings.length;a<f;a++)l=g.siblings[a],l.type.ca().c[d]=l;d++}else if(e){G[d]=g;if(k)for(a=0,f=g.siblings.length;a<f;a++)l=g.siblings[a],l.type.ca().L[d]=l;d++}else if(r&&(h.L.push(g),k))for(a=0,f=g.siblings.length;a<f;a++)l=g.siblings[a],l.type.ca().L.push(l)}Ca(G,d);if(k)for(n=p.hc,b=0,c=n.length;b<c;b++)g=n[b].ca(),e?Ca(g.L,d):Ca(g.c,d);d=C;if(e&&!C)for(b=0,c=h.c.length;b<c;b++){g=h.c[b];if(v)for(a=
0,f=K.length;a<f;a++)l=K[a],l.dd&&(A[a]=l.get(b));a=I?U.apply(g.B[x],A):U.apply(g,A);if(Wa(a,L)){C=!0;break}}p.finish&&p.finish(d||r);return r?C:h.$l()};$b=a;d.prototype.Pa=function(){var b,a,d;b=0;for(a=this.N.length;b<a;b++)d=this.N[b],d.Pa(),d.dd&&(this.Wg=!0)};d.prototype.mn=function(){var b=this.b,a,d,c=this.N,f=this.Ma;a=0;for(d=c.length;a<d;++a)f[a]=c[a].get();return this.ub.apply(b.Nd,f)};d.prototype.ln=function(){var b=this.type,a=this.hd,d=b.Wd,c=this.Wg,f=this.N,l=this.Ma,e=this.ub,g=b.ca().Tc(),
b=b.I,p=-1<a,h,r,k,n,t,x;if(c)for(r=0,n=f.length;r<n;++r)t=f[r],t.dd||(l[r]=t.get(0));else for(r=0,n=f.length;r<n;++r)l[r]=f[r].get(0);h=0;for(k=g.length;h<k;++h){x=g[h];if(c)for(r=0,n=f.length;r<n;++r)t=f[r],t.dd&&(l[r]=t.get(h));p?(r=0,b&&(r=x.type.Zf[d]),e.apply(x.B[a+r],l)):e.apply(x,l)}return!1};ac=d;var l=[],I=-1;b.prototype.Pa=function(){var b,a;if(11===this.type)this.nf=this.b.qp(this.Ai,this.uc.parent);else if(13===this.type)for(b=0,a=this.If.length;b<a;b++)this.If[b].Pa();this.Dd&&this.Dd.Pa()};
b.prototype.Tv=function(b){this.dd||!b||b.za.Ck||(this.dd=!0)};b.prototype.Wq=function(){this.dd=!0};b.prototype.hv=function(b){this.ne=b||0;b=p();this.Dd.get(b);I--;return b.data};b.prototype.iv=function(b){this.ne=b||0;b=p();this.Dd.get(b);I--;return la(b.data)?b.data:""};b.prototype.ov=function(){return this.object};b.prototype.dv=function(){return this.Ro};b.prototype.mv=function(b){this.ne=b||0;b=p();this.Dd.get(b);I--;return b.pb()?this.b.Yd(b.data):this.b.kh(b.data)};b.prototype.nv=function(){return this.kb};
b.prototype.lv=function(){return this.key};b.prototype.kv=function(){return this.index};b.prototype.jv=function(b){b=b||0;var a=this.ua.type,d=null,d=a.ca(),c=d.Tc();if(c.length)d=c[b%c.length].type;else if(d.L.length)d=d.L[b%d.L.length].type;else if(a.c.length)d=a.c[b%a.c.length].type;else return 0;return this.index+d.gj[a.Wd]};b.prototype.gv=function(){return this.nf};b.prototype.cv=function(){return this.jp};b.prototype.pv=function(){var b,a;b=0;for(a=this.If.length;b<a;b++)this.yi[b]=this.If[b].get();
return this.yi};bc=b;g.prototype.Pa=function(){this.la=c(this.la)};g.prototype.le=function(b){var a=this.b.pp();this.parent&&!this.Dh&&a?(this.Df>=a.length&&(a.length=this.Df+1),a[this.Df]=b):this.data=b};g.prototype.qf=function(){var b=this.b.pp();return!this.parent||this.Dh||!b||this.Ej?this.data:this.Df>=b.length||"undefined"===typeof b[this.Df]?this.gm:b[this.Df]};g.prototype.Za=function(){!this.parent||this.Dh||this.Ej||this.le(this.gm)};Wb=g;v.prototype.toString=function(){return"include:"+
this.qh.toString()};v.prototype.Pa=function(){this.qh=this.b.El[this.wv];this.sheet.xp.add(this);this.la=c(this.la);for(var b=this.parent;b;)b.group&&b.Ui.push(this),b=b.parent;this.wr()};v.prototype.Za=function(){this.parent&&this.b.ei(this.b.m);this.qh.am||this.qh.Za(!0);this.parent&&this.b.We(this.b.m)};v.prototype.wr=function(){for(var b=this.parent;b;){if(b.group&&!b.nh){this.Ta=!1;return}b=b.parent}this.Ta=!0};fc=v;f.prototype.reset=function(b){this.eb=b;this.fc=this.Ua=0;y(this.jr);this.Cl=
this.zf=!1};f.prototype.Hv=function(){return this.eb.zn?!0:this.Ua<this.eb.cb.length-1?!!this.eb.la.length:!1};Vb=f})();
(function(){function e(c,a){this.ua=c;this.b=c.b;this.type=a[0];this.get=[this.tu,this.pu,this.Cu,this.Fu,this.eu,this.Du,this.xu,this.mu,this.wu,this.Bu,this.fu,this.Au,this.nu,this.yu,this.uu,this.vu,this.qu,this.ru,this.lu,this.Eu,this.zu,this.su,this.ku,this.ou][this.type];var d=null;this.ee=this.N=this.Ma=this.ub=this.Lk=this.second=this.first=this.value=null;this.hd=-1;this.ld=null;this.Fr=-1;this.nf=this.Ai=null;this.Gg=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new dc(c,a[1]);break;case 18:this.first=new dc(c,a[1]);this.second=new dc(c,a[2]);this.Lk=new dc(c,a[3]);break;case 19:this.ub=this.b.ve(a[1]);this.ub!==F.prototype.V.random&&this.ub!==F.prototype.V.xt||this.ua.Wq();this.Ma=[];this.N=[];3===a.length?(d=a[2],this.Ma.length=d.length+1):this.Ma.length=1;break;case 20:this.ee=this.b.m[a[1]];this.hd=-1;this.ub=this.b.ve(a[2]);this.Gg=a[3];ic.Function&&this.ub===ic.Function.prototype.V.vx&&this.ua.Wq();a[4]?this.ld=new dc(c,a[4]):this.ld=null;this.Ma=[];
this.N=[];6===a.length?(d=a[5],this.Ma.length=d.length+1):this.Ma.length=1;break;case 21:this.ee=this.b.m[a[1]];this.Gg=a[2];a[3]?this.ld=new dc(c,a[3]):this.ld=null;this.Fr=a[4];break;case 22:this.ee=this.b.m[a[1]];this.ee.oj(a[2]);this.hd=this.ee.Ol(a[2]);this.ub=this.b.ve(a[3]);this.Gg=a[4];a[5]?this.ld=new dc(c,a[5]):this.ld=null;this.Ma=[];this.N=[];7===a.length?(d=a[6],this.Ma.length=d.length+1):this.Ma.length=1;break;case 23:this.Ai=a[1],this.nf=null}this.ua.Tv(this.ee);4<=this.type&&17>=this.type&&
(this.first=new dc(c,a[1]),this.second=new dc(c,a[2]));if(d){var e,b;e=0;for(b=d.length;e<b;e++)this.N.push(new dc(c,d[e]))}}function k(){++t;h.length===t&&h.push(new cc);return h[t]}function c(c,a,d){var e,b;e=0;for(b=c.length;e<b;++e)c[e].get(d),a[e+1]=d.data}function n(c,a){this.type=c||gc.Nf;this.data=a||0;this.Ff=null;this.type==gc.Nf&&(this.data=Math.floor(this.data))}e.prototype.Pa=function(){23===this.type&&(this.nf=this.ua.b.qp(this.Ai,this.ua.uc.parent));this.first&&this.first.Pa();this.second&&
this.second.Pa();this.Lk&&this.Lk.Pa();this.ld&&this.ld.Pa();if(this.N){var c,a;c=0;for(a=this.N.length;c<a;c++)this.N[c].Pa()}};var h=[],t=-1;e.prototype.Eu=function(e){var a=this.N,d=this.Ma;d[0]=e;e=k();c(a,d,e);--t;this.ub.apply(this.b.Nd,d)};e.prototype.zu=function(e){var a=this.ee,d=this.Ma,p=this.N,b=this.ld,g=this.ub,h=this.ua.ne,f=a.ca(),n=f.Tc();if(!n.length)if(f.L.length)n=f.L;else{this.Gg?e.Cb(""):e.ea(0);return}d[0]=e;e.Ff=a;e=k();c(p,d,e);b&&(b.get(e),e.pb()&&(h=e.data,n=a.c));--t;a=
n.length;if(h>=a||h<=-a)h%=a;0>h&&(h+=a);g.apply(n[h],d)};e.prototype.ku=function(e){var a=this.ee,d=this.Ma,p=this.N,b=this.ld,g=this.hd,h=this.ub,f=this.ua.ne,n=a.ca(),l=n.Tc();if(!l.length)if(n.L.length)l=n.L;else{this.Gg?e.Cb(""):e.ea(0);return}d[0]=e;e.Ff=a;e=k();c(p,d,e);b&&(b.get(e),e.pb()&&(f=e.data,l=a.c));--t;p=l.length;if(f>=p||f<=-p)f%=p;0>f&&(f+=p);f=l[f];l=0;a.I&&(l=f.type.Zf[a.Wd]);h.apply(f.B[g+l],d)};e.prototype.su=function(c){var a=this.ld,d=this.ee,e=this.Fr,b=this.ua.ne,g=d.ca(),
h=g.Tc();if(!h.length)if(g.L.length)h=g.L;else{this.Gg?c.Cb(""):c.ea(0);return}if(a){g=k();a.get(g);if(g.pb()){b=g.data;h=d.c;0!==h.length&&(b%=h.length,0>b&&(b+=h.length));b=d.Sl(b);d=b.hb[e];la(d)?c.Cb(d):c.n(d);--t;return}--t}a=h.length;if(b>=a||b<=-a)b%=a;0>b&&(b+=a);b=h[b];h=0;d.I&&(h=b.type.gj[d.Wd]);d=b.hb[e+h];la(d)?c.Cb(d):c.n(d)};e.prototype.tu=function(c){c.type=gc.Nf;c.data=this.value};e.prototype.pu=function(c){c.type=gc.Mf;c.data=this.value};e.prototype.Cu=function(c){c.type=gc.String;
c.data=this.value};e.prototype.Fu=function(c){this.first.get(c);c.pb()&&(c.data=-c.data)};e.prototype.eu=function(c){this.first.get(c);var a=k();this.second.get(a);c.pb()&&a.pb()&&(c.data+=a.data,a.hg()&&c.ug());--t};e.prototype.Du=function(c){this.first.get(c);var a=k();this.second.get(a);c.pb()&&a.pb()&&(c.data-=a.data,a.hg()&&c.ug());--t};e.prototype.xu=function(c){this.first.get(c);var a=k();this.second.get(a);c.pb()&&a.pb()&&(c.data*=a.data,a.hg()&&c.ug());--t};e.prototype.mu=function(c){this.first.get(c);
var a=k();this.second.get(a);c.pb()&&a.pb()&&(c.data/=a.data,c.ug());--t};e.prototype.wu=function(c){this.first.get(c);var a=k();this.second.get(a);c.pb()&&a.pb()&&(c.data%=a.data,a.hg()&&c.ug());--t};e.prototype.Bu=function(c){this.first.get(c);var a=k();this.second.get(a);c.pb()&&a.pb()&&(c.data=Math.pow(c.data,a.data),a.hg()&&c.ug());--t};e.prototype.fu=function(c){this.first.get(c);var a=k();this.second.get(a);a.kg()||c.kg()?this.hu(c,a):this.gu(c,a);--t};e.prototype.hu=function(c,a){c.kg()&&
a.kg()?this.ju(c,a):this.iu(c,a)};e.prototype.ju=function(c,a){c.data+=a.data};e.prototype.iu=function(c,a){c.kg()?c.data+=(Math.round(1E10*a.data)/1E10).toString():c.Cb(c.data.toString()+a.data)};e.prototype.gu=function(c,a){c.ea(c.data&&a.data?1:0)};e.prototype.Au=function(c){this.first.get(c);var a=k();this.second.get(a);c.pb()&&a.pb()&&(c.data||a.data?c.ea(1):c.ea(0));--t};e.prototype.lu=function(c){this.first.get(c);c.data?this.second.get(c):this.Lk.get(c)};e.prototype.nu=function(c){this.first.get(c);
var a=k();this.second.get(a);c.ea(c.data===a.data?1:0);--t};e.prototype.yu=function(c){this.first.get(c);var a=k();this.second.get(a);c.ea(c.data!==a.data?1:0);--t};e.prototype.uu=function(c){this.first.get(c);var a=k();this.second.get(a);c.ea(c.data<a.data?1:0);--t};e.prototype.vu=function(c){this.first.get(c);var a=k();this.second.get(a);c.ea(c.data<=a.data?1:0);--t};e.prototype.qu=function(c){this.first.get(c);var a=k();this.second.get(a);c.ea(c.data>a.data?1:0);--t};e.prototype.ru=function(c){this.first.get(c);
var a=k();this.second.get(a);c.ea(c.data>=a.data?1:0);--t};e.prototype.ou=function(c){var a=this.nf.qf();ka(a)?c.n(a):c.Cb(a)};dc=e;n.prototype.hg=function(){return this.type===gc.Mf};n.prototype.pb=function(){return this.type===gc.Nf||this.type===gc.Mf};n.prototype.kg=function(){return this.type===gc.String};n.prototype.ug=function(){this.hg()||(this.kg()&&(this.data=parseFloat(this.data)),this.type=gc.Mf)};n.prototype.ea=function(c){this.type=gc.Nf;this.data=Math.floor(c)};n.prototype.n=function(c){this.type=
gc.Mf;this.data=c};n.prototype.Cb=function(c){this.type=gc.String;this.data=c};n.prototype.un=function(c){ka(c)?(this.type=gc.Mf,this.data=c):la(c)?(this.type=gc.String,this.data=c.toString()):(this.type=gc.Nf,this.data=0)};cc=n;gc={Nf:0,Mf:1,String:2}})();function F(e){this.b=e;this.ec=[]}
F.prototype.Rb=function(){var e={},k,c,n,h,t,r,a,d;e.waits=[];var p=e.waits,b;k=0;for(c=this.ec.length;k<c;k++){r=this.ec[k];b={t:r.time,st:r.dr,s:r.yn,ev:r.Yf.U,sm:[],sols:{}};r.Yf.ed[r.fc]&&(b.act=r.Yf.ed[r.fc].U);n=0;for(h=r.la.length;n<h;n++)b.sm.push(r.la[n].U);for(t in r.Sb)if(r.Sb.hasOwnProperty(t)){a=this.b.m[parseInt(t,10)];d={sa:r.Sb[t].vk,insts:[]};n=0;for(h=r.Sb[t].Zd.length;n<h;n++)d.insts.push(r.Sb[t].Zd[n].uid);b.sols[a.U.toString()]=d}p.push(b)}return e};
F.prototype.rc=function(e){e=e.waits;var k,c,n,h,t,r,a,d,p,b,g;y(this.ec);k=0;for(c=e.length;k<c;k++)if(r=e[k],d=this.b.Ko[r.ev.toString()]){p=-1;n=0;for(h=d.ed.length;n<h;n++)if(d.ed[n].U===r.act){p=n;break}if(-1!==p){a={Sb:{},la:[],yl:!1};a.time=r.t;a.dr=r.st||"";a.yn=!!r.s;a.Yf=d;a.fc=p;n=0;for(h=r.sm.length;n<h;n++)(d=this.b.tj(r.sm[n]))&&a.la.push(d);for(t in r.sols)if(r.sols.hasOwnProperty(t)&&(d=this.b.tj(parseInt(t,10)))){p=r.sols[t];b={vk:p.sa,Zd:[]};n=0;for(h=p.insts.length;n<h;n++)(g=this.b.sj(p.insts[n]))&&
b.Zd.push(g);a.Sb[d.index.toString()]=b}this.ec.push(a)}}};
(function(){function e(){}function k(){}function c(){}var n=F.prototype;e.prototype.fo=function(){return!0};e.prototype.Ds=function(){return!0};e.prototype.Pr=function(a,c,b){return hc(a,c,b)};e.prototype.qs=function(a){return a?a.visible:!1};e.prototype.ct=function(){var a=this.b.Wa(),c=a.eb,b=a.Hv(),a=this.b.ww();if(b)for(b=0;!a.ab;b++)this.b.fi(c.la),a.index=b,c.jn()||(a.ab=!0),this.b.We(c.la);else for(b=0;!a.ab;b++)a.index=b,c.jn()||(a.ab=!0);this.b.mw();return!1};var h=[],t=-1;e.prototype.Js=
function(a,c,b,e){var k,f,n,l;if(a){t++;h.length===t&&h.push([]);var r=h[t],m=a.ca();Ea(r,m.Tc());m.ha&&y(m.L);var q=this.b.pj();n=k=0;for(f=r.length;k<f;k++)l=r[k],r[n]=l,c=q.N[1].get(k),e=q.N[3].get(k),hc(c,b,e)?n++:m.L.push(l);Ca(r,n);m.ha=!1;Ea(m.c,r);y(r);t--;a.Ad();return!!m.c.length}};e.prototype.cs=function(a){var c=this.b.pj(),b=c.X.Every_lastTime||0,e=this.b.ib.T;"undefined"===typeof c.X.Every_seconds&&(c.X.Every_seconds=a);var h=c.X.Every_seconds;if(e>=b+h)return c.X.Every_lastTime=b+h,
e>=c.X.Every_lastTime+.04&&(c.X.Every_lastTime=e),c.X.Every_seconds=a,!0;e<b-.1&&(c.X.Every_lastTime=e);return!1};e.prototype.Tr=function(a,c,b){return hc(a.qf(),c,b)};e.prototype.Is=function(a){if(!a||!a.c.length)return!1;a.ca().ha=!0;a.Ad();return!0};e.prototype.$n=function(){var a=this.b.Wa();return a.Cl?!1:!a.zf};e.prototype.ho=function(){return!0};e.prototype.xs=function(){return!0};e.prototype.$k=function(){return!0};e.prototype.no=function(){return!0};e.prototype.Es=function(){return!0};e.prototype.Zk=
function(){return!0};e.prototype.Jr=function(a,c,b){return Qa(B(a),B(b))<=B(c)};e.prototype.ks=function(a,c){return Ta(B(a),B(c))};e.prototype.hs=function(a,c,b){a=Oa(a);c=Oa(c);b=Oa(b);return Ta(b,c)?Ta(a,c)&&!Ta(a,b):!(!Ta(a,c)&&Ta(a,b))};n.e=new e;k.prototype.ds=function(a){this.b.mg||this.b.ff||(this.b.ff=a)};k.prototype.Xr=function(a,c,b,e){if(c&&a&&(c=this.b.To(a,c,b,e))){this.b.nd++;var h;this.b.trigger(Object.getPrototypeOf(a.za).e.Vg,c);if(c.oc)for(b=0,e=c.siblings.length;b<e;b++)h=c.siblings[b],
this.b.trigger(Object.getPrototypeOf(h.type.za).e.Vg,h);this.b.nd--;a=a.ca();a.ha=!1;y(a.c);a.c[0]=c;if(c.oc)for(b=0,e=c.siblings.length;b<e;b++)h=c.siblings[b],a=h.type.ca(),a.ha=!1,y(a.c),a.c[0]=h}};k.prototype.Qs=function(a,c){a&&a.visible!==c&&(a.visible=c,this.b.ma=!0)};k.prototype.Ts=function(a,c){0===a.Bi?ka(c)?a.le(c):a.le(parseFloat(c)):1===a.Bi&&a.le(c.toString())};k.prototype.Ir=function(a,c){0===a.Bi?ka(c)?a.le(a.qf()+c):a.le(a.qf()+parseFloat(c)):1===a.Bi&&a.le(a.qf()+c.toString())};
k.prototype.Ys=function(a,c){0===a.Bi&&(ka(c)?a.le(a.qf()-c):a.le(a.qf()-parseFloat(c)))};var r=[],a=[];k.prototype.bt=function(d){if(!(0>d)){var c,b,e,h=this.b.Wa(),f;r.length?f=r.pop():f={Sb:{},la:[]};f.yl=!1;f.time=this.b.ib.T+d;f.dr="";f.yn=!1;f.Yf=h.eb;f.fc=h.fc+1;d=0;for(c=this.b.m.length;d<c;d++)e=this.b.m[d],b=e.ca(),b.ha&&-1===h.eb.la.indexOf(e)||(f.la.push(e),e=void 0,a.length?e=a.pop():e={Zd:[]},e.vk=!1,e.vk=b.ha,Ea(e.Zd,b.c),f.Sb[d.toString()]=e);this.ec.push(f);return!0}};k.prototype.es=
function(a){if(!this.b.mg&&!this.b.ff)for(var c in this.b.rg)if(this.b.rg.hasOwnProperty(c)&&pb(c,a)){this.b.ff=this.b.rg[c];break}};n.G=new k;c.prototype["int"]=function(a,c){la(c)?(a.ea(parseInt(c,10)),isNaN(a.data)&&(a.data=0)):a.ea(c)};c.prototype["float"]=function(a,c){la(c)?(a.n(parseFloat(c)),isNaN(a.data)&&(a.data=0)):a.n(c)};c.prototype.random=function(a,c,b){void 0===b?a.n(Math.random()*c):a.n(Math.random()*(b-c)+c)};c.prototype.sqrt=function(a,c){a.n(Math.sqrt(c))};c.prototype.abs=function(a,
c){a.n(Math.abs(c))};c.prototype.round=function(a,c){a.ea(Math.round(c))};c.prototype.floor=function(a,c){a.ea(Math.floor(c))};c.prototype.ceil=function(a,c){a.ea(Math.ceil(c))};c.prototype.sin=function(a,c){a.n(Math.sin(B(c)))};c.prototype.cos=function(a,c){a.n(Math.cos(B(c)))};c.prototype.tan=function(a,c){a.n(Math.tan(B(c)))};c.prototype.asin=function(a,c){a.n(Ja(Math.asin(c)))};c.prototype.acos=function(a,c){a.n(Ja(Math.acos(c)))};c.prototype.atan=function(a,c){a.n(Ja(Math.atan(c)))};c.prototype.exp=
function(a,c){a.n(Math.exp(c))};c.prototype.log10=function(a,c){a.n(Math.log(c)/Math.LN10)};c.prototype.max=function(a){var c=arguments[1];"number"!==typeof c&&(c=0);var b,e,h;b=2;for(e=arguments.length;b<e;b++)h=arguments[b],"number"===typeof h&&c<h&&(c=h);a.n(c)};c.prototype.min=function(a){var c=arguments[1];"number"!==typeof c&&(c=0);var b,e,h;b=2;for(e=arguments.length;b<e;b++)h=arguments[b],"number"===typeof h&&c>h&&(c=h);a.n(c)};c.prototype.He=function(a){a.n(this.b.He)};c.prototype.Jf=function(a){a.n(this.b.Jf)};
c.prototype.time=function(a){a.n(this.b.ib.T)};c.prototype.vi=function(a){a.ea(this.b.vi)};c.prototype.Vj=function(a){a.ea(this.b.Vj)};c.prototype.Kl=function(a){a.ea(this.b.Kl)};c.prototype.j=function(a,c,b,e,h){a.n(Ja(Pa(c,b,e,h)))};c.prototype.hx=function(a,c){a.Cb(la(c)?c.toUpperCase():"")};c.prototype.left=function(a,c,b){a.Cb(la(c)?c.substr(0,b):"")};c.prototype.right=function(a,c,b){a.Cb(la(c)?c.substr(c.length-b):"")};c.prototype.replace=function(a,c,b,e){la(c)&&la(b)&&la(e)?a.Cb(c.replace(new RegExp(ib(b),
"gi"),e)):a.Cb(la(c)?c:"")};c.prototype.trim=function(a,c){a.Cb(la(c)?c.trim():"")};c.prototype.Ov=function(a){this.b.ka?a.Cb(this.b.ka.name):a.Cb("")};c.prototype.xt=function(a){var c=ta(Math.random()*(arguments.length-1));a.un(arguments[c+1])};c.prototype.sl=function(a){a.n(this.b.sl/1E3)};c.prototype.Nj=function(a){a.n(this.b.Nj)};n.V=new c;n.Fw=function(){var c,e,b,g,h,f,k=this.b.Wa();c=0;for(b=this.ec.length;c<b;c++){g=this.ec[c];if(-1===g.time){if(!g.yn)continue}else if(g.time>this.b.ib.T)continue;
k.eb=g.Yf;k.fc=g.fc;k.Ua=0;for(e in g.Sb)g.Sb.hasOwnProperty(e)&&(h=this.b.m[parseInt(e,10)].ca(),f=g.Sb[e],h.ha=f.vk,Ea(h.c,f.Zd),h=f,y(h.Zd),a.push(h));g.Yf.Dw();this.b.ql(g.la);g.yl=!0}e=c=0;for(b=this.ec.length;c<b;c++)g=this.ec[c],this.ec[e]=g,g.yl?(Ya(g.Sb),y(g.la),r.push(g)):e++;Ca(this.ec,e)}})();
(function(){tb=function(e,c){var n=e[1],h=e[3],t=e[4],r=e[5],a=e[6],d=e[7],p=e[8];c.e||(c.e={});c.G||(c.G={});c.V||(c.V={});var b=c.e,g=c.G,v=c.V;h&&(b.Ur=function(a,b){return hc(this.x,a,b)},b.Fx=function(a,b){return hc(this.y,a,b)},b.Kx=function(){var a=this.k;this.Ba();var b=this.Ga;return!(b.right<a.na||b.bottom<a.pa||b.left>a.ra||b.top>a.qa)},b.Lx=function(){this.Ba();var a=this.Ga,b=this.b.ka;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},b.Vx=function(a,b,c){var d=this.ca(),
e=d.Tc();if(!e.length)return!1;var g=e[0],h=g,k=Va(g.x,g.y,b,c),p,n,r;p=1;for(n=e.length;p<n;p++)if(g=e[p],r=Va(g.x,g.y,b,c),0===a&&r<k||1===a&&r>k)k=r,h=g;d.ci(h);return!0},g.bl=function(a){this.x!==a&&(this.x=a,this.Aa())},g.Ws=function(a){this.y!==a&&(this.y=a,this.Aa())},g.my=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.Aa()},g.ny=function(a,b){var c=a.Yu(this);if(c){var d;c.Rl?(d=c.Rl(b,!0),c=c.Rl(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.Aa()}},
g.Px=function(a){0!==a&&(this.x+=Math.cos(this.j)*a,this.y+=Math.sin(this.j)*a,this.Aa())},g.Ox=function(a,b){0!==b&&(this.x+=Math.cos(B(a))*b,this.y+=Math.sin(B(a))*b,this.Aa())},v.cl=function(a){a.n(this.x)},v.dl=function(a){a.n(this.y)},v.He=function(a){a.n(this.b.qj(this))});t&&(b.Ex=function(a,b){return hc(this.width,a,b)},b.Rr=function(a,b){return hc(this.height,a,b)},g.uy=function(a){this.width!==a&&(this.width=a,this.Aa())},g.jy=function(a){this.height!==a&&(this.height=a,this.Aa())},g.wo=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.Aa()},v.yo=function(a){a.n(this.width)},v.gs=function(a){a.n(this.height)},v.rx=function(a){this.Ba();a.n(this.Ga.left)},v.ux=function(a){this.Ba();a.n(this.Ga.top)},v.tx=function(a){this.Ba();a.n(this.Ga.right)},v.qx=function(a){this.Ba();a.n(this.Ga.bottom)});r&&(b.Jr=function(a,b){return Qa(this.j,B(b))<=B(a)},b.ks=function(a){return Ta(this.j,B(a))},b.hs=function(a,b){var c=Oa(a),d=Oa(b),e=La(this.j);return Ta(d,
c)?Ta(e,c)&&!Ta(e,d):!(!Ta(e,c)&&Ta(e,d))},g.dy=function(a){a=B(Ka(a));isNaN(a)||this.j===a||(this.j=a,this.Aa())},g.$x=function(a){0===a||isNaN(a)||(this.j+=B(a),this.j=La(this.j),this.Aa())},g.ay=function(a){0===a||isNaN(a)||(this.j-=B(a),this.j=La(this.j),this.Aa())},g.by=function(a,b){var c=Ra(this.j,B(b),B(a));isNaN(c)||this.j===c||(this.j=c,this.Aa())},g.cy=function(a,b,c){a=Ra(this.j,Math.atan2(c-this.y,b-this.x),B(a));isNaN(a)||this.j===a||(this.j=a,this.Aa())},g.qy=function(a,b){var c=Math.atan2(b-
this.y,a-this.x);isNaN(c)||this.j===c||(this.j=c,this.Aa())},v.ox=function(a){a.n(Na(this.j))});n||(b.Sr=function(a,b,c){return hc(this.hb[a],b,c)},b.js=function(a){return this.hb[a]},b.Wx=function(a,b){var c=this.ca(),d=c.Tc();if(!d.length)return!1;var e=d[0],g=e,h=e.hb[b],k,p,n;k=1;for(p=d.length;k<p;k++)if(e=d[k],n=e.hb[b],0===a&&n<h||1===a&&n>h)h=n,g=e;c.ci(g);return!0},b.Ux=function(a){var b,c,d,e,g;if(this.b.pj().Aj){g=this.ca();if(g.ha)for(g.ha=!1,y(g.c),y(g.L),d=this.c,b=0,c=d.length;b<c;b++)e=
d[b],e.uid===a?g.L.push(e):g.c.push(e);else{d=b=0;for(c=g.c.length;b<c;b++)e=g.c[b],g.c[d]=e,e.uid===a?g.L.push(e):d++;Ca(g.c,d)}this.Ad();return!!g.c.length}e=this.b.sj(a);if(!e)return!1;g=this.ca();if(!g.ha&&-1===g.c.indexOf(e))return!1;if(this.I)for(a=e.type.Ea,b=0,c=a.length;b<c;b++){if(a[b]===this)return g.ci(e),this.Ad(),!0}else if(e.type===this)return g.ci(e),this.Ad(),!0;return!1},b.Vg=function(){return!0},b.ys=function(){return!0},g.Ps=function(a,b){var c=this.hb;ka(c[a])?c[a]=ka(b)?b:parseFloat(b):
la(c[a])&&(c[a]=la(b)?b:b.toString())},g.nx=function(a,b){var c=this.hb;ka(c[a])?c[a]=ka(b)?c[a]+b:c[a]+parseFloat(b):la(c[a])&&(c[a]=la(b)?c[a]+b:c[a]+b.toString())},g.vy=function(a,b){var c=this.hb;ka(c[a])&&(c[a]=ka(b)?c[a]-b:c[a]-parseFloat(b))},g.Os=function(a,b){this.hb[a]=b?1:0},g.yy=function(a){this.hb[a]=1-this.hb[a]},g.Zn=function(){this.b.ue(this)},g.rs||(g.rs=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Kj(this,b,!0);this.ye&&this.ye();if(this.B)for(a=0,b=this.B.length;a<
b;++a)c=this.B[a],c.ye&&c.ye()}),v.Wr=function(a){var b=a.Ff.c.length,c,d,e;c=0;for(d=this.b.jd.length;c<d;c++)e=this.b.jd[c],a.Ff.I?0<=e.type.Ea.indexOf(a.Ff)&&b++:e.type===a.Ff&&b++;a.ea(b)},v.Ks=function(a){a.ea(a.Ff.ca().Tc().length)},v.$s=function(a){a.ea(this.uid)},v.Hx=function(a){a.ea(this.mh())},v.Yn||(v.Yn=function(a){a.Cb(JSON.stringify(this.b.nn(this,!0)))}));a&&(b.os=function(){return this.visible},g.Us=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.ma=!0)},b.Cx=function(a,
b){return hc(ob(100*this.opacity),a,b)},g.ly=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ma=!0)},v.Opacity=function(a){a.n(ob(100*this.opacity))});d&&(b.Jx=function(a){return a?this.k===a:!1},b.Xx=function(a){var b=this.ca(),c=b.Tc();if(!c.length)return!1;var d=c[0],e=d,g,h;g=1;for(h=c.length;g<h;g++)if(d=c[g],0===a){if(d.k.index>e.k.index||d.k.index===e.k.index&&d.Uc()>e.Uc())e=d}else if(d.k.index<e.k.index||d.k.index===e.k.index&&d.Uc()<e.Uc())e=d;b.ci(e);return!0},
g.ts=function(){var a=this.k,b=a.c;b.length&&b[b.length-1]===this||(a.Fg(this,!1),a.Yg(this,!1),this.b.ma=!0)},g.Qx=function(){var a=this.k,b=a.c;b.length&&b[0]===this||(a.Fg(this,!1),a.sw(this),this.b.ma=!0)},g.Rx=function(a){a&&a!=this.k&&(this.k.Fg(this,!0),this.k=a,a.Yg(this,!0),this.b.ma=!0)},g.By=function(a,b){var c=0===a;if(b){var d=b.Su(this);d&&d.uid!==this.uid&&(this.k.index!==d.k.index&&(this.k.Fg(this,!0),this.k=d.k,d.k.Yg(this,!0)),this.k.Vv(this,d,c),this.b.ma=!0)}},v.Nx=function(a){a.ea(this.k.sq)},
v.Mx=function(a){a.Cb(this.k.name)},v.Ay=function(a){a.ea(this.Uc())});p&&(g.gy=function(a,b){if(this.b.u){var c=this.type.Ql(b);if(!(0>c)){var d=1===a;this.we[c]!==d&&(this.we[c]=d,this.wd(),this.b.ma=!0)}}},g.hy=function(a,b,c){if(this.b.u){var d=this.type.Ql(a);0>d||(a=this.type.K[d],d=this.Ka[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.u.bv(a.$a,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Ta&&(this.b.ma=!0))))}})};Nb=function(){this.nl=this.Ni=!0;this.type.Hi=!0;this.b.ma=!0;var e,c,n=this.kl;e=0;for(c=
n.length;e<c;++e)n[e](this);this.k.Lc&&this.Ba()};Ob=function(e){e&&this.kl.push(e)};Qb=function(){if(this.Ni){var e=this.Ga,c=this.xc;e.set(this.x,this.y,this.x+this.width,this.y+this.height);e.offset(-this.lc*this.width,-this.mc*this.height);this.j?(e.offset(-this.x,-this.y),c.Yq(e,this.j),c.offset(this.x,this.y),c.Lo(e)):c.Lg(e);e.normalize();this.Ni=!1;this.Cr()}};var e=new wa(0,0,0,0);Rb=function(){if(this.k.Lc){var k=this.k.Bb,c=this.Ga;e.set(k.Tb(c.left),k.Ub(c.top),k.Tb(c.right),k.Ub(c.bottom));
this.Yb.eh(e)||(this.Yb.right<this.Yb.left?k.update(this,null,e):k.update(this,this.Yb,e),this.Yb.Tf(e),this.k.sd=!0)}};Sb=function(){if(this.nl&&this.gf){this.Ba();var k=this.type.Ti,c=this.Ga;e.set(k.Tb(c.left),k.Ub(c.top),k.Tb(c.right),k.Ub(c.bottom));this.De.eh(e)||(this.De.right<this.De.left?k.update(this,null,e):k.update(this,this.De,e),this.De.Tf(e),this.nl=!1)}};Pb=function(e,c){return this.Ga.Fb(e,c)&&this.xc.Fb(e,c)?this.fa&&!this.fa.gg()?(this.fa.Sf(this.width,this.height,this.j),this.fa.Fb(e-
this.x,c-this.y)):!0:!1};Jb=function(){this.type.Rk();return this.tf};Tb=function(){this.k.Rn();return this.yd};Ub=function(){y(this.aa);var e,c,n,h=!0;e=0;for(c=this.we.length;e<c;e++)this.we[e]&&(n=this.type.K[e],this.aa.push(n),n.qd||(h=!1));this.Er=!!this.aa.length;this.me=h};Kb=function(){return"Inst"+this.Lq};wb=function(e){if(e&&e.oc&&e.type!=this){var c,n,h;c=0;for(n=e.siblings.length;c<n;c++)if(h=e.siblings[c],h.type==this)return h}e=this.ca().Tc();return e.length?e[0]:null};xb=function(e){var c=
this.ca().Tc();return c.length?c[e.mh()%c.length]:null};vb=function(){if(this.Og&&!this.I){var e,c;e=0;for(c=this.c.length;e<c;e++)this.c[e].tf=e;var n=e,h=this.b.jd;e=0;for(c=h.length;e<c;++e)h[e].type===this&&(h[e].tf=n++);this.Og=!1}};Gb=function(e){if(e<this.c.length)return this.c[e];e-=this.c.length;var c=this.b.jd,n,h;n=0;for(h=c.length;n<h;++n)if(c[n].type===this){if(0===e)return c[n];--e}return null};yb=function(){return this.oe[this.Cd]};zb=function(){this.Cd++;this.Cd===this.oe.length?this.oe.push(new ub(this)):
(this.oe[this.Cd].ha=!0,y(this.oe[this.Cd].L))};Ab=function(){this.Cd++;this.Cd===this.oe.length&&this.oe.push(new ub(this));var e=this.oe[this.Cd],c=this.oe[this.Cd-1];c.ha?(e.ha=!0,y(e.L)):(e.ha=!1,Ea(e.c,c.c),Ea(e.L,c.L))};Bb=function(){this.Cd--};Cb=function(e){var c,n,h,t,r,a=0;if(!this.I)for(c=0,n=this.Ea.length;c<n;c++)for(r=this.Ea[c],h=0,t=r.Ha.length;h<t;h++){if(e===r.Ha[h].name)return this.X.lastBehIndex=a,r.Ha[h];a++}c=0;for(n=this.Ha.length;c<n;c++){if(e===this.Ha[c].name)return this.X.lastBehIndex=
a,this.Ha[c];a++}return null};Db=function(e){return this.oj(e)?this.X.lastBehIndex:-1};Eb=function(e){var c,n;c=0;for(n=this.K.length;c<n;c++)if(this.K[c].name===e)return c;return-1};Fb=function(){if(this.oc&&!this.I){var e,c,n,h,t,r,a;this.Rk();r=this.ca();var d=r.ha,p=(e=this.b.Wa())&&e.eb&&e.eb.Gc;e=0;for(c=this.hc.length;e<c;e++)if(t=this.hc[e],t!==this&&(t.Rk(),a=t.ca(),a.ha=d,!d)){y(a.c);n=0;for(h=r.c.length;n<h;++n)a.c[n]=t.Sl(r.c[n].tf);if(p)for(y(a.L),n=0,h=r.L.length;n<h;++n)a.L[n]=t.Sl(r.L[n].tf)}}};
Ib=function(){return"Type"+this.U};hc=function(e,c,n){if("undefined"===typeof e||"undefined"===typeof n)return!1;switch(c){case 0:return e===n;case 1:return e!==n;case 2:return e<n;case 3:return e<=n;case 4:return e>n;case 5:return e>=n;default:return!1}}})();var qc={};function sc(e){this.b=e}
(function(){function e(){return a.length?a.pop():[]}function k(c){var e,b;e=0;for(b=c.length;e<b;e++)Array.isArray(c[e])&&k(c[e]);y(c);a.push(c)}function c(){}function n(){}function h(){}var t=sc.prototype;t.Sa=function(a){this.za=a;this.b=a.b};t.Sa.prototype.ja=function(){};t.wa=function(a){this.type=a;this.b=a.b};var r=t.wa.prototype,a=[];Array.isArray||(Array.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)});r.ja=function(){this.Ja=this.S[0];this.ob=this.S[1];this.Ob=
this.S[2];this.Yc||(this.Mc=e());var a=this.Mc;a.length=this.Ja;var c,b,g;for(c=0;c<this.Ja;c++)for(a[c]||(a[c]=e()),a[c].length=this.ob,b=0;b<this.ob;b++)for(a[c][b]||(a[c][b]=e()),a[c][b].length=this.Ob,g=0;g<this.Ob;g++)a[c][b][g]=0;this.kc=[];this.Ed=[];this.of=[];this.Sc=-1};r.Vh=function(){var a;for(a=0;a<this.Ja;a++)k(this.Mc[a]);y(this.Mc)};r.Nc=function(a,c,b){a=Math.floor(a);c=Math.floor(c);b=Math.floor(b);return isNaN(a)||0>a||a>this.Ja-1||isNaN(c)||0>c||c>this.ob-1||isNaN(b)||0>b||b>this.Ob-
1?0:this.Mc[a][c][b]};r.set=function(a,c,b,e){a=Math.floor(a);c=Math.floor(c);b=Math.floor(b);isNaN(a)||0>a||a>this.Ja-1||isNaN(c)||0>c||c>this.ob-1||isNaN(b)||0>b||b>this.Ob-1||(this.Mc[a][c][b]=e)};r.Ou=function(){return JSON.stringify({c2array:!0,size:[this.Ja,this.ob,this.Ob],data:this.Mc})};r.Rb=function(){return{size:[this.Ja,this.ob,this.Ob],data:this.Mc}};r.rc=function(a){var c=a.size;this.Ja=c[0];this.ob=c[1];this.Ob=c[2];this.Mc=a.data};r.ke=function(a,c,b){0>a&&(a=0);0>c&&(c=0);0>b&&(b=
0);if(this.Ja!==a||this.ob!==c||this.Ob!==b){this.Ja=a;this.ob=c;this.Ob=b;var g,h,f=this.Mc;f.length=a;for(a=0;a<this.Ja;a++)for(ia(f[a])&&(f[a]=e()),f[a].length=c,g=0;g<this.ob;g++)for(ia(f[a][g])&&(f[a][g]=e()),f[a][g].length=b,h=0;h<this.Ob;h++)ia(f[a][g][h])&&(f[a][g][h]=0)}};r.rp=function(){return 0<=this.Sc&&this.Sc<this.kc.length?this.kc[this.Sc]:0};r.sp=function(){return 0<=this.Sc&&this.Sc<this.Ed.length?this.Ed[this.Sc]:0};r.Tu=function(){return 0<=this.Sc&&this.Sc<this.of.length?this.of[this.Sc]:
0};c.prototype.Ur=function(a,c,b){return hc(this.Nc(a,0,0),c,b)};r.Al=function(a){this.b.fi(a.la);a.jn();this.b.We(a.la)};c.prototype.Lr=function(a){var c=this.b.Wa().eb;this.Sc++;var b=this.Sc;b===this.kc.length?(this.kc.push(0),this.Ed.push(0),this.of.push(0)):(this.kc[b]=0,this.Ed[b]=0,this.of[b]=0);switch(a){case 0:for(this.kc[b]=0;this.kc[b]<this.Ja;this.kc[b]++)for(this.Ed[b]=0;this.Ed[b]<this.ob;this.Ed[b]++)for(this.of[b]=0;this.of[b]<this.Ob;this.of[b]++)this.Al(c);break;case 1:for(this.kc[b]=
0;this.kc[b]<this.Ja;this.kc[b]++)for(this.Ed[b]=0;this.Ed[b]<this.ob;this.Ed[b]++)this.Al(c);break;case 2:for(this.kc[b]=0;this.kc[b]<this.Ja;this.kc[b]++)this.Al(c)}this.Sc--;return!1};c.prototype.Vr=function(a){var c,b,e;for(c=0;c<this.Ja;c++)for(b=0;b<this.ob;b++)for(e=0;e<this.Ob;e++)if(this.Mc[c][b][e]===a)return!0;return!1};t.e=new c;n.prototype.wo=function(a,c,b){this.ke(a,c,b)};n.prototype.bl=function(a,c){this.set(a,0,0,c)};n.prototype.Vs=function(a,c,b){this.set(a,c,0,b)};n.prototype.Ls=
function(a){var c=0,b=0,e=this.Mc;if(0!==this.Ja&&0!==this.ob&&0!==this.Ob)switch(a){case 0:e.reverse();break;case 1:for(;c<this.Ja;c++)e[c].reverse();break;case 2:for(;c<this.Ja;c++)for(b=0;b<this.ob;b++)e[c][b].reverse();this.Ob--}};n.prototype.as=function(a,c){var b=0,e=0;a=Math.floor(a);var h=this.Mc;if(!(0>a))switch(c){case 0:if(a>=this.Ja)break;k(h[a]);h.splice(a,1);this.Ja--;break;case 1:if(a>=this.ob)break;for(;b<this.Ja;b++)k(h[b][a]),h[b].splice(a,1);this.ob--;break;case 2:if(a>=this.Ob)break;
for(;b<this.Ja;b++)for(e=0;e<this.ob;e++)h[b][e].splice(a,1);this.Ob--}};t.G=new n;h.prototype.Mr=function(a,c,b,e){a.un(this.Nc(c,b||0,e||0))};h.prototype.yo=function(a){a.ea(this.Ja)};h.prototype.gs=function(a){a.ea(this.ob)};h.prototype.Zr=function(a){a.ea(this.rp())};h.prototype.$r=function(a){a.ea(this.sp())};h.prototype.Yr=function(a){a.un(this.Nc(this.rp(),this.sp(),this.Tu()))};h.prototype.Yn=function(a){a.Cb(this.Ou())};t.V=new h})();function tc(e){this.b=e}
(function(){function e(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function k(a){a=a.toLowerCase();return aa.hasOwnProperty(a)&&aa[a].length?aa[a][0].Bc():w.destination}function c(){return w.createGain?w.createGain():w.createGainNode()}function n(a){return w.createDelay?w.createDelay(a):w.createDelayNode(a)}function h(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function t(a,b,c,d){a.start?a.start(d||0,b):a.noteGrainOn(d||0,b,c-b)}function r(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}
function a(a,b,d,f,e,l){this.type="filter";this.pd=[a,b,d,f,e,l];this.W=c();this.J=c();this.J.gain.value=l;this.H=c();this.H.gain.value=1-l;this.Va=w.createBiquadFilter();this.Va.type="number"===typeof this.Va.type?a:Vc[a];this.Va.frequency.value=b;this.Va.detune&&(this.Va.detune.value=d);this.Va.Q.value=f;this.Va.gain.value=e;this.W.connect(this.Va);this.W.connect(this.H);this.Va.connect(this.J)}function d(a,b,d){this.type="delay";this.pd=[a,b,d];this.W=c();this.J=c();this.J.gain.value=d;this.H=
c();this.H.gain.value=1-d;this.Rh=c();this.Rc=n(a);this.Rc.delayTime.value=a;this.aj=c();this.aj.gain.value=b;this.W.connect(this.Rh);this.W.connect(this.H);this.Rh.connect(this.J);this.Rh.connect(this.Rc);this.Rc.connect(this.aj);this.aj.connect(this.Rh)}function p(a,b,d,f){this.type="convolve";this.pd=[b,d,f];this.W=c();this.J=c();this.J.gain.value=d;this.H=c();this.H.gain.value=1-d;this.hf=w.createConvolver();a&&(this.hf.normalize=b,this.hf.buffer=a);this.W.connect(this.hf);this.W.connect(this.H);
this.hf.connect(this.J)}function b(a,b,d,f,e){this.type="flanger";this.pd=[a,b,d,f,e];this.W=c();this.H=c();this.H.gain.value=1-e/2;this.J=c();this.J.gain.value=e/2;this.hj=c();this.hj.gain.value=f;this.Rc=n(a+b);this.Rc.delayTime.value=a;this.rb=w.createOscillator();this.rb.frequency.value=d;this.tc=c();this.tc.gain.value=b;this.W.connect(this.Rc);this.W.connect(this.H);this.Rc.connect(this.J);this.Rc.connect(this.hj);this.hj.connect(this.Rc);this.rb.connect(this.tc);this.tc.connect(this.Rc.delayTime);
h(this.rb)}function g(a,b,d,f,e,l){this.type="phaser";this.pd=[a,b,d,f,e,l];this.W=c();this.H=c();this.H.gain.value=1-l/2;this.J=c();this.J.gain.value=l/2;this.Va=w.createBiquadFilter();this.Va.type="number"===typeof this.Va.type?7:"allpass";this.Va.frequency.value=a;this.Va.detune&&(this.Va.detune.value=b);this.Va.Q.value=d;this.rb=w.createOscillator();this.rb.frequency.value=e;this.tc=c();this.tc.gain.value=f;this.W.connect(this.Va);this.W.connect(this.H);this.Va.connect(this.J);this.rb.connect(this.tc);
this.tc.connect(this.Va.frequency);h(this.rb)}function v(a){this.type="gain";this.pd=[a];this.Y=c();this.Y.gain.value=a}function f(a,b){this.type="tremolo";this.pd=[a,b];this.Y=c();this.Y.gain.value=1-b/2;this.rb=w.createOscillator();this.rb.frequency.value=a;this.tc=c();this.tc.gain.value=b/2;this.rb.connect(this.tc);this.tc.connect(this.Y.gain);h(this.rb)}function x(a,b){this.type="ringmod";this.pd=[a,b];this.W=c();this.J=c();this.J.gain.value=b;this.H=c();this.H.gain.value=1-b;this.gi=c();this.gi.gain.value=
0;this.rb=w.createOscillator();this.rb.frequency.value=a;this.rb.connect(this.gi.gain);h(this.rb);this.W.connect(this.gi);this.W.connect(this.H);this.gi.connect(this.J)}function l(a,b,d,f,e){this.type="distortion";this.pd=[a,b,d,f,e];this.W=c();this.nk=c();this.mk=c();this.Mw(d,Math.pow(10,f/20));this.J=c();this.J.gain.value=e;this.H=c();this.H.gain.value=1-e;this.Vk=w.createWaveShaper();this.Zi=new Float32Array(65536);this.Mu(a,b);this.Vk.Zi=this.Zi;this.W.connect(this.nk);this.W.connect(this.H);
this.nk.connect(this.Vk);this.Vk.connect(this.mk);this.mk.connect(this.J)}function I(a,b,c,d,f){this.type="compressor";this.pd=[a,b,c,d,f];this.Y=w.createDynamicsCompressor();try{this.Y.threshold.value=a,this.Y.knee.value=b,this.Y.ratio.value=c,this.Y.attack.value=d,this.Y.release.value=f}catch(e){}}function m(a,b){this.type="analyser";this.pd=[a,b];this.Y=w.createAnalyser();this.Y.fftSize=a;this.Y.smoothingTimeConstant=b;this.Ku=new Float32Array(this.Y.frequencyBinCount);this.br=new Uint8Array(a);
this.bi=0}function q(){this.ga=null;this.Mj=0}function ja(a,b){this.src=a;this.P=Y;this.Wc=b;this.Gi=!1;var d=this;this.Hm=this.Um=null;this.Cg=[];this.wk=0;this.Vn=this.fj=this.hr=this.hk=!1;1===Y&&b&&!$a&&(this.P=0,this.Um=c());this.Pd=this.ba=null;var f;switch(this.P){case 0:this.ba=new Audio;this.ba.crossOrigin="anonymous";this.ba.addEventListener("canplaythrough",function(){d.Vn=!0});1===Y&&w.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.hr=!0,this.ba.addEventListener("canplay",
function(){d.Hm||(d.Hm=w.createMediaElementSource(d.ba),d.Hm.connect(d.Um))}));this.ba.autoplay=!1;this.ba.Py="auto";this.ba.src=a;break;case 1:E.Bh?E.hp(a,function(a){d.Pd=a;d.Wo()},function(){d.fj=!0}):(f=new XMLHttpRequest,f.open("GET",a,!0),f.responseType="arraybuffer",f.onload=function(){d.Pd=f.response;d.Wo()},f.onerror=function(){d.fj=!0},f.send());break;case 2:this.ba=!0;break;case 3:this.ba=!0}}function D(a,b){var d=this;this.tag=b;this.ab=this.Fd=!0;this.src=a.src;this.buffer=a;this.P=Y;
this.Wc=a.Wc;this.playbackRate=1;this.dg=!0;this.pc=this.Hc=!1;this.Zb=0;this.Ch=this.ig=this.Gd=!1;this.volume=1;this.Sm=function(a){if(!d.pc&&!d.Hc){var b=this;b||(b=a.target);b===d.Fi&&(d.dg=!0,d.ab=!0,R=d.tag,E.trigger(tc.prototype.e.Ei,da))}};this.Fi=null;this.eg=1===G&&!this.Wc||2===G;this.wg=1;this.startTime=this.eg?E.ib.T:E.re.T;this.Ya=this.fb=null;this.Hd=!1;this.zb=null;this.Bq=this.Aq=this.zq=this.yq=this.Dq=this.Cq=0;this.i=null;var f=!1;1!==this.P||0!==this.buffer.P||this.buffer.hr||
(this.P=0);switch(this.P){case 0:this.Wc?(this.i=a.ba,f=!a.Gi,a.Gi=!0):(this.i=new Audio,this.i.crossOrigin="anonymous",this.i.autoplay=!1,this.i.src=a.ba.src,f=!0);f&&this.i.addEventListener("ended",function(){R=d.tag;d.ab=!0;E.trigger(tc.prototype.e.Ei,da)});break;case 1:this.fb=c();this.fb.connect(k(b));1===this.buffer.P?a.ba&&(this.i=w.createBufferSource(),this.i.buffer=a.ba,this.i.connect(this.fb)):(this.i=this.buffer.ba,this.buffer.Um.connect(this.fb),this.buffer.Gi||(this.buffer.Gi=!0,this.buffer.ba.addEventListener("ended",
function(){R=d.tag;d.ab=!0;E.trigger(tc.prototype.e.Ei,da)})));break;case 2:this.i=new window.Media(u+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.dg=!0,d.ab=!0,R=d.tag,E.trigger(tc.prototype.e.Ei,da))});break;case 3:this.i=!0}}function T(a,b){var c=a.Pe()?1:0,d=b.Pe()?1:0;return c===d?0:c<d?1:-1}function Q(a,b){y(za);if(a.length){var c,d,f;c=0;for(d=A.length;c<d;c++)f=A[c],pb(a,f.tag)&&za.push(f);b&&za.sort(T)}else L&&!L.sf()&&(y(za),za[0]=L)}function H(a,b){aa.hasOwnProperty(a)?
aa[a].push(b):aa[a]=[b];var c,d,f,e,l=w.destination;if(aa.hasOwnProperty(a)&&(f=aa[a],f.length))for(l=f[0].Bc(),c=0,d=f.length;c<d;c++)e=f[c],c+1===d?e.Oc(w.destination):e.Oc(f[c+1].Bc());Q(a);c=0;for(d=za.length;c<d;c++)za[c].xw(l);Sa&&Hb===a&&(Sa.disconnect(),Sa.connect(l))}function P(){}function J(){}function O(){}var W=tc.prototype;W.Sa=function(a){this.za=a;this.b=a.b};W.Sa.prototype.ja=function(){};var E=null,da=null,R="",u="",Y=0,w=null,K=[],A=[],L=null,U=!1,G=0,C=!1,M=1,na=0,N=0,Da=!1,oa=
1,Ma=1,Gc=10,Hc=1E4,Ic=1,Sa=null,Hb="",ab=!1,bb=[],$a=!1,aa={},Vc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");a.prototype.Oc=function(a){this.J.disconnect();this.J.connect(a);this.H.disconnect();this.H.connect(a)};a.prototype.remove=function(){this.W.disconnect();this.Va.disconnect();this.J.disconnect();this.H.disconnect()};a.prototype.Bc=function(){return this.W};d.prototype.Oc=function(a){this.J.disconnect();this.J.connect(a);this.H.disconnect();this.H.connect(a)};
d.prototype.remove=function(){this.W.disconnect();this.Rh.disconnect();this.Rc.disconnect();this.aj.disconnect();this.J.disconnect();this.H.disconnect()};d.prototype.Bc=function(){return this.W};p.prototype.Oc=function(a){this.J.disconnect();this.J.connect(a);this.H.disconnect();this.H.connect(a)};p.prototype.remove=function(){this.W.disconnect();this.hf.disconnect();this.J.disconnect();this.H.disconnect()};p.prototype.Bc=function(){return this.W};b.prototype.Oc=function(a){this.H.disconnect();this.H.connect(a);
this.J.disconnect();this.J.connect(a)};b.prototype.remove=function(){this.W.disconnect();this.Rc.disconnect();this.rb.disconnect();this.tc.disconnect();this.H.disconnect();this.J.disconnect();this.hj.disconnect()};b.prototype.Bc=function(){return this.W};g.prototype.Oc=function(a){this.H.disconnect();this.H.connect(a);this.J.disconnect();this.J.connect(a)};g.prototype.remove=function(){this.W.disconnect();this.Va.disconnect();this.rb.disconnect();this.tc.disconnect();this.H.disconnect();this.J.disconnect()};
g.prototype.Bc=function(){return this.W};v.prototype.Oc=function(a){this.Y.disconnect();this.Y.connect(a)};v.prototype.remove=function(){this.Y.disconnect()};v.prototype.Bc=function(){return this.Y};f.prototype.Oc=function(a){this.Y.disconnect();this.Y.connect(a)};f.prototype.remove=function(){this.rb.disconnect();this.tc.disconnect();this.Y.disconnect()};f.prototype.Bc=function(){return this.Y};x.prototype.Oc=function(a){this.J.disconnect();this.J.connect(a);this.H.disconnect();this.H.connect(a)};
x.prototype.remove=function(){this.rb.disconnect();this.gi.disconnect();this.W.disconnect();this.J.disconnect();this.H.disconnect()};x.prototype.Bc=function(){return this.W};l.prototype.Mw=function(a,b){.01>a&&(a=.01);this.nk.gain.value=a;this.mk.gain.value=Math.pow(1/a,.6)*b};l.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};l.prototype.Mu=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),f=0,e=0;32768>e;++e)f=
e/32768,f=this.shape(f,c,d),this.Zi[32768+e]=f,this.Zi[32768-e-1]=-f};l.prototype.Oc=function(a){this.J.disconnect();this.J.connect(a);this.H.disconnect();this.H.connect(a)};l.prototype.remove=function(){this.W.disconnect();this.nk.disconnect();this.Vk.disconnect();this.mk.disconnect();this.J.disconnect();this.H.disconnect()};l.prototype.Bc=function(){return this.W};I.prototype.Oc=function(a){this.Y.disconnect();this.Y.connect(a)};I.prototype.remove=function(){this.Y.disconnect()};I.prototype.Bc=
function(){return this.Y};m.prototype.bb=function(){this.Y.getFloatFrequencyData(this.Ku);this.Y.getByteTimeDomainData(this.br);for(var a=this.Y.fftSize,b=0,c=this.bi=0,d=0;b<a;b++)d=(this.br[b]-128)/128,0>d&&(d=-d),this.bi<d&&(this.bi=d),c+=d*d;this.bi=e(this.bi);e(Math.sqrt(c/a))};m.prototype.Oc=function(a){this.Y.disconnect();this.Y.connect(a)};m.prototype.remove=function(){this.Y.disconnect()};m.prototype.Bc=function(){return this.Y};q.prototype.hi=function(a){this.ga=a};q.prototype.yj=function(){return!!this.ga};
q.prototype.bb=function(){};var sb=!1;ja.prototype.yw=function(){var a,b,c,d;c=a=0;for(b=A.length;a<b;++a)d=A[a],A[c]=d,d.buffer===this?d.stop():++c;A.length=c;this.Pd=this.ba=null};ja.prototype.Wo=function(){if(!this.ba&&this.Pd){var a=this;if(w.decodeAudioData)w.decodeAudioData(this.Pd,function(b){a.ba=b;a.Pd=null;var c,d,f;if(ia(a.ik)||C)ia(a.Vi)||(c=a.Vi.hf,c.normalize=a.rq,c.buffer=b);else if(a.Cg.length){c=0;for(d=a.Cg.length;c<d;c++){b=a.Cg[c];f=new D(a,b.lr);f.tn(!0);if("undefined"!==typeof b.tq&&
(b.ga=E.sj(b.tq),!b.ga))continue;if(b.ga){var e=Ua(b.ga.x,b.ga.y,-b.ga.k.wb(),na,N,!0),l=Ua(b.ga.x,b.ga.y,-b.ga.k.wb(),na,N,!1);f.sn(e,l,Ja(b.ga.j-b.ga.k.wb()),b.em,b.Jm,b.Mm);f.hi(b.ga)}else f.sn(b.x,b.y,b.dt,b.em,b.Jm,b.Mm);f.play(a.Dm,a.Un,a.wk);a.hk&&f.pause();A.push(f)}y(a.Cg)}else f=new D(a,a.ik||""),f.play(a.Dm,a.Un,a.wk),a.hk&&f.pause(),A.push(f)},function(){a.fj=!0});else if(this.ba=w.createBuffer(this.Pd,!1),this.Pd=null,ia(this.ik)||C)ia(this.Vi)||(b=this.Vi.hf,b.normalize=this.rq,b.buffer=
this.ba);else{var b=new D(this,this.ik);b.play(this.Dm,this.Un,this.wk);this.hk&&b.pause();A.push(b)}}};ja.prototype.Ep=function(){switch(this.P){case 0:var a=4<=this.ba.readyState;a&&(this.Vn=!0);return a||this.Vn;case 1:return!!this.Pd||!!this.ba;case 2:return!0;case 3:return!0}return!1};ja.prototype.Gv=function(){switch(this.P){case 0:return this.Ep();case 1:return!!this.ba;case 2:return!0;case 3:return!0}return!1};ja.prototype.uv=function(){switch(this.P){case 0:return!!this.ba.error;case 1:return this.fj}return!1};
D.prototype.sf=function(){switch(this.P){case 0:return this.i.ended;case 1:return 1===this.buffer.P?!this.Fd&&!this.ab&&this.i.loop||this.pc?!1:this.dg:this.i.ended;case 2:return this.dg;case 3:!0}return!0};D.prototype.wt=function(){return this.Fd||this.ab?!0:this.sf()};D.prototype.tn=function(a){1===Y&&(!this.Hd&&a?this.fb&&(this.Ya||(this.Ya=w.createPanner(),this.Ya.panningModel="number"===typeof this.Ya.panningModel?oa:["equalpower","HRTF","soundfield"][oa],this.Ya.distanceModel="number"===typeof this.Ya.distanceModel?
Ma:["linear","inverse","exponential"][Ma],this.Ya.refDistance=Gc,this.Ya.maxDistance=Hc,this.Ya.rolloffFactor=Ic),this.fb.disconnect(),this.fb.connect(this.Ya),this.Ya.connect(k(this.tag)),this.Hd=!0):this.Hd&&!a&&this.fb&&(this.Ya.disconnect(),this.fb.disconnect(),this.fb.connect(k(this.tag)),this.Hd=!1))};D.prototype.sn=function(a,b,c,d,f,e){this.Hd&&1===Y&&(this.Ya.setPosition(a,b,0),this.Ya.setOrientation(Math.cos(B(c)),Math.sin(B(c)),0),this.Ya.coneInnerAngle=d,this.Ya.coneOuterAngle=f,this.Ya.coneOuterGain=
e,this.Cq=a,this.Dq=b,this.yq=c,this.zq=d,this.Aq=f,this.Bq=e)};D.prototype.hi=function(a){this.Hd&&1===Y&&(this.zb||(this.zb=new q),this.zb.hi(a))};D.prototype.bb=function(a){if(this.Hd&&1===Y&&this.zb&&this.zb.yj()&&this.Pe()){this.zb.bb(a);a=this.zb.ga;var b=Ua(a.x,a.y,-a.k.wb(),na,N,!0),c=Ua(a.x,a.y,-a.k.wb(),na,N,!1);this.Ya.setPosition(b,c,0);b=0;"undefined"!==typeof this.zb.ga.j&&(b=a.j-a.k.wb(),this.Ya.setOrientation(Math.cos(b),Math.sin(b),0))}};D.prototype.play=function(a,b,c,d){var f=this.i;
this.Gd=a;this.volume=b;c=c||0;d=d||0;switch(this.P){case 0:1!==f.playbackRate&&(f.playbackRate=1);f.volume!==b*M&&(f.volume=b*M);f.loop!==a&&(f.loop=a);f.muted&&(f.muted=!1);if(f.currentTime!==c)try{f.currentTime=c}catch(e){}if(this.Wc&&ab&&!E.Oa)bb.push(this);else try{this.i.play()}catch(l){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",l)}break;case 1:this.muted=!1;this.wg=1;if(1===this.buffer.P)this.fb.gain.value=b*M,this.Fd||(this.i=w.createBufferSource(),
this.i.buffer=this.buffer.ba,this.i.connect(this.fb)),this.i.onended=this.Sm,this.Fi=this.i,this.i.loop=a,this.dg=!1,0===c?h(this.i,d):t(this.i,c,this.Le(),d);else{1!==f.playbackRate&&(f.playbackRate=1);f.loop!==a&&(f.loop=a);f.volume=b*M;if(f.currentTime!==c)try{f.currentTime=c}catch(g){}this.Wc&&ab&&!E.Oa?bb.push(this):f.play()}break;case 2:(!this.Fd&&this.ab||0!==c)&&f.seekTo(c);f.play();this.dg=!1;break;case 3:E.Jb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=
1;this.startTime=(this.eg?E.ib.T:E.re.T)-c;this.pc=this.ab=this.Fd=!1};D.prototype.stop=function(){switch(this.P){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.P?r(this.i):this.i.paused||this.i.pause();break;case 2:this.i.stop();break;case 3:E.Jb&&AppMobi.context.stopSound(this.src)}this.ab=!0;this.pc=!1};D.prototype.pause=function(){if(!(this.Fd||this.ab||this.sf()||this.pc)){switch(this.P){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.P?(this.Zb=this.Tl(!0),
this.Gd&&(this.Zb=this.Zb%this.Le()),this.pc=!0,r(this.i)):this.i.paused||this.i.pause();break;case 2:this.i.pause();break;case 3:E.Jb&&AppMobi.context.stopSound(this.src)}this.pc=!0}};D.prototype.Cw=function(){if(!(this.Fd||this.ab||this.sf())&&this.pc){switch(this.P){case 0:this.i.play();break;case 1:1===this.buffer.P?(this.i=w.createBufferSource(),this.i.buffer=this.buffer.ba,this.i.connect(this.fb),this.i.onended=this.Sm,this.Fi=this.i,this.i.loop=this.Gd,this.fb.gain.value=M*this.volume*this.wg,
this.Sk(),this.startTime=(this.eg?E.ib.T:E.re.T)-this.Zb/(this.playbackRate||.001),t(this.i,this.Zb,this.Le())):this.i.play();break;case 2:this.i.play();break;case 3:E.Jb&&AppMobi.context.resumeSound(this.src)}this.pc=!1}};D.prototype.seek=function(a){if(!(this.Fd||this.ab||this.sf()))switch(this.P){case 0:try{this.i.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.P)this.pc?this.Zb=a:(this.pause(),this.Zb=a,this.Cw());else try{this.i.currentTime=a}catch(c){}break;case 3:E.Jb&&AppMobi.context.seekSound(this.src,
a)}};D.prototype.xw=function(a){1===this.P&&(this.Hd?(this.Ya.disconnect(),this.Ya.connect(a)):(this.fb.disconnect(),this.fb.connect(a)))};D.prototype.Le=function(){var a=0;switch(this.P){case 0:"undefined"!==typeof this.i.duration&&(a=this.i.duration);break;case 1:a=this.buffer.ba.duration;break;case 2:a=this.i.getDuration();break;case 3:E.Jb&&(a=AppMobi.context.getDurationSound(this.src))}return a};D.prototype.Tl=function(a){var b=this.Le(),c=0;switch(this.P){case 0:"undefined"!==typeof this.i.currentTime&&
(c=this.i.currentTime);break;case 1:if(1===this.buffer.P){if(this.pc)return this.Zb;c=(this.eg?E.ib.T:E.re.T)-this.startTime}else"undefined"!==typeof this.i.currentTime&&(c=this.i.currentTime);break;case 3:E.Jb&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.Gd&&c>b&&(c=b);return c};D.prototype.Pe=function(){return!this.pc&&!this.Fd&&!this.ab&&!this.sf()};D.prototype.Tw=function(){return!this.Fd&&!this.ab&&!this.sf()};D.prototype.dx=function(){var a=this.volume*
M;isFinite(a)||(a=0);switch(this.P){case 0:"undefined"!==typeof this.i.volume&&this.i.volume!==a&&(this.i.volume=a);break;case 1:1===this.buffer.P?this.fb.gain.value=a*this.wg:"undefined"!==typeof this.i.volume&&this.i.volume!==a&&(this.i.volume=a)}};D.prototype.cj=function(a){switch(this.P){case 0:this.i.muted!==!!a&&(this.i.muted=!!a);break;case 1:1===this.buffer.P?(this.wg=a?0:1,this.fb.gain.value=M*this.volume*this.wg):this.i.muted!==!!a&&(this.i.muted=!!a)}};D.prototype.Ow=function(){this.ig=
!0;this.cj(this.ig||this.Ch)};D.prototype.Vq=function(a){this.Ch=!!a;this.cj(this.ig||this.Ch)};D.prototype.Sk=function(){var a=this.playbackRate;this.eg&&(a*=E.Jf);switch(this.P){case 0:this.i.playbackRate!==a&&(this.i.playbackRate=a);break;case 1:1===this.buffer.P?this.i.playbackRate.value!==a&&(this.i.playbackRate.value=a):this.i.playbackRate!==a&&(this.i.playbackRate=a)}};D.prototype.Rw=function(a){switch(this.P){case 0:a?this.Pe()?(this.Hc=!0,this.i.pause()):this.Hc=!1:this.Hc&&(this.i.play(),
this.Hc=!1);break;case 1:a?this.Pe()?(this.Hc=!0,1===this.buffer.P?(this.Zb=this.Tl(!0),this.Gd&&(this.Zb=this.Zb%this.Le()),r(this.i)):this.i.pause()):this.Hc=!1:this.Hc&&(1===this.buffer.P?(this.i=w.createBufferSource(),this.i.buffer=this.buffer.ba,this.i.connect(this.fb),this.i.onended=this.Sm,this.Fi=this.i,this.i.loop=this.Gd,this.fb.gain.value=M*this.volume*this.wg,this.Sk(),this.startTime=(this.eg?E.ib.T:E.re.T)-this.Zb/(this.playbackRate||.001),t(this.i,this.Zb,this.Le())):this.i.play(),this.Hc=
!1);break;case 2:a?this.Pe()?(this.i.pause(),this.Hc=!0):this.Hc=!1:this.Hc&&(this.Hc=!1,this.i.play())}};W.wa=function(a){function b(){if(!Da&&w.createBuffer){var a=w.createBuffer(1,220,22050),c=w.createBufferSource();c.buffer=a;c.connect(w.destination);h(c)}}this.type=a;E=this.b=a.b;da=this;this.qc=null;this.Jh=-600;this.b.Bh&&($a=!0);!(this.b.lg||this.b.Bj&&(this.b.th||this.b.Cj))||this.b.uh||this.b.ya||this.b.nm||$a||(ab=!0);w=null;"undefined"!==typeof AudioContext?(Y=1,w=new AudioContext):"undefined"!==
typeof webkitAudioContext&&(Y=1,w=new webkitAudioContext);this.b.lg&&w&&(w.close&&w.close(),"undefined"!==typeof AudioContext?w=new AudioContext:"undefined"!==typeof webkitAudioContext&&(w=new webkitAudioContext));ab?document.addEventListener("touchend",function(){!sb&&w&&(b(),sb=!0);var a,c,d;if(ab){if(!C)for(a=0,c=bb.length;a<c;++a)d=bb[a],d.ab||d.pc||d.i.play();y(bb)}},!0):$a&&document.addEventListener("touchend",function(){!sb&&w&&(b(),sb=!0)},!0);1!==Y&&(this.b.nc&&"undefined"!==typeof window.Media?
Y=2:this.b.Dp&&(Y=3));2===Y&&(u=location.href,a=u.lastIndexOf("/"),-1<a&&(u=u.substr(0,a+1)),u=u.replace("file://",""));if(this.b.Iv&&this.b.Jv&&"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.ue(this);else{if(this.b.Jb)U=this.b.Bj;else try{U=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(c){U=!1}this.b.ti(this)}};var Aa=W.wa.prototype;Aa.ja=function(){this.b.Qf=this;G=
this.S[0];this.je=this.S[1];this.jw=0!==this.S[2];this.pq=0;oa=this.S[3];Ma=this.S[4];this.Jh=-this.S[5];Gc=this.S[6];Hc=this.S[7];Ic=this.S[8];this.qc=new q;var a=this.b.F||this.b.width,b=this.b.D||this.b.height;1===Y&&(w.listener.setPosition(a/2,b/2,this.Jh),w.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Sa&&Sa.disconnect();Hb=b.toLowerCase();Sa=w.createMediaStreamSource(a);Sa.connect(k(Hb))});this.b.kt(function(a){da.dw(a)});var c=this;this.b.it(function(a){c.aw(a)})};
Aa.aw=function(a){var b,c,d;b=0;for(c=A.length;b<c;b++)d=A[b],d.zb&&d.zb.ga===a&&(d.zb.ga=null,d.Hd&&d.Pe()&&d.Gd&&d.stop());this.qc.ga===a&&(this.qc.ga=null)};Aa.Rb=function(){var a={silent:C,masterVolume:M,listenerZ:this.Jh,listenerUid:this.qc.yj()?this.qc.ga.uid:-1,playing:[],effects:{}},b=a.playing,c,d,f,e,l,g;c=0;for(d=A.length;c<d;c++)f=A[c],!f.Tw()||3===this.je||f.Wc&&1===this.je||!f.Wc&&2===this.je||(e=f.Tl(),f.Gd&&(e=e%f.Le()),e={tag:f.tag,buffersrc:f.buffer.src,is_music:f.Wc,playbackTime:e,
volume:f.volume,looping:f.Gd,muted:f.ig,playbackRate:f.playbackRate,paused:f.pc,resume_position:f.Zb},f.Hd&&(e.pan={},g=e.pan,f.zb&&f.zb.yj()?g.objUid=f.zb.ga.uid:(g.x=f.Cq,g.y=f.Dq,g.a=f.yq),g.ia=f.zq,g.oa=f.Aq,g.og=f.Bq),b.push(e));b=a.effects;for(l in aa)if(aa.hasOwnProperty(l)){f=[];c=0;for(d=aa[l].length;c<d;c++)f.push({type:aa[l][c].type,params:aa[l][c].pd});b[l]=f}return a};var cb=[];Aa.rc=function(c){var e=c.silent;M=c.masterVolume;this.Jh=c.listenerZ;this.qc.hi(null);var h=c.listenerUid;
-1!==h&&(this.qc.Mj=h,cb.push(this.qc));var h=c.playing,k,n,r,t,u,D,Q,ja,w,z,T;if(3!==this.je)for(k=0,n=A.length;k<n;k++)w=A[k],w.Wc&&1===this.je||(w.Wc||2!==this.je)&&w.stop();for(u in aa)if(aa.hasOwnProperty(u))for(k=0,n=aa[u].length;k<n;k++)aa[u][k].remove();Ya(aa);for(u in c.effects)if(c.effects.hasOwnProperty(u))for(D=c.effects[u],k=0,n=D.length;k<n;k++)switch(r=D[k].type,z=D[k].params,r){case "filter":H(u,new a(z[0],z[1],z[2],z[3],z[4],z[5]));break;case "delay":H(u,new d(z[0],z[1],z[2]));break;
case "convolve":r=z[2];w=this.nj(r,!1);w.ba?r=new p(w.ba,z[0],z[1],r):(r=new p(null,z[0],z[1],r),w.rq=z[0],w.Vi=r);H(u,r);break;case "flanger":H(u,new b(z[0],z[1],z[2],z[3],z[4]));break;case "phaser":H(u,new g(z[0],z[1],z[2],z[3],z[4],z[5]));break;case "gain":H(u,new v(z[0]));break;case "tremolo":H(u,new f(z[0],z[1]));break;case "ringmod":H(u,new x(z[0],z[1]));break;case "distortion":H(u,new l(z[0],z[1],z[2],z[3],z[4]));break;case "compressor":H(u,new I(z[0],z[1],z[2],z[3],z[4]));break;case "analyser":H(u,
new m(z[0],z[1]))}k=0;for(n=h.length;k<n;k++)3===this.je||(c=h[k],r=c.buffersrc,t=c.is_music,u=c.tag,D=c.playbackTime,Q=c.looping,ja=c.volume,T=(z=c.pan)&&z.hasOwnProperty("objUid")?z.objUid:-1,t&&1===this.je)||!t&&2===this.je||((w=this.op(r,u,t,Q,ja))?(w.Zb=c.resume_position,w.tn(!!z),w.play(Q,ja,D),w.Sk(),w.dx(),w.cj(w.ig||w.Ch),c.paused&&w.pause(),c.muted&&w.Ow(),w.cj(w.ig||w.Ch),z&&(-1!==T?(w.zb=w.zb||new q,w.zb.Mj=T,cb.push(w.zb)):w.sn(z.x,z.y,z.a,z.ia,z.oa,z.og))):(w=this.nj(r,t),w.wk=D,w.hk=
c.paused,z&&(-1!==T?w.Cg.push({tq:T,em:z.ia,Jm:z.oa,Mm:z.og,lr:u}):w.Cg.push({x:z.x,y:z.y,dt:z.a,em:z.ia,Jm:z.oa,Mm:z.og,lr:u}))));if(e&&!C){k=0;for(n=A.length;k<n;k++)A[k].Vq(!0);C=!0}else if(!e&&C){k=0;for(n=A.length;k<n;k++)A[k].Vq(!1);C=!1}};Aa.ye=function(){var a,b,c,d;a=0;for(b=cb.length;a<b;a++)c=cb[a],d=this.b.sj(c.Mj),c.hi(d),c.Mj=-1,d&&(na=d.x,N=d.y);y(cb)};Aa.dw=function(a){if(!this.jw){!a&&w&&w.resume&&(w.resume(),Da=!1);var b,c;b=0;for(c=A.length;b<c;b++)A[b].Rw(a);a&&w&&w.suspend&&(w.suspend(),
Da=!0)}};Aa.bb=function(){var a=this.b.He,b,c,d;b=0;for(c=A.length;b<c;b++)d=A[b],d.bb(a),0!==G&&d.Sk();var f,e;for(f in aa)if(aa.hasOwnProperty(f))for(d=aa[f],b=0,c=d.length;b<c;b++)e=d[b],e.bb&&e.bb();1===Y&&this.qc.yj()&&(this.qc.bb(a),na=this.qc.ga.x,N=this.qc.ga.y,w.listener.setPosition(this.qc.ga.x,this.qc.ga.y,this.Jh))};var db=[];Aa.Pw=function(a){var b,c,d,f,e,l=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],f=d[0],d=2*d[1],(e=4<f.length&&".ogg"===f.substr(f.length-4))&&U||!e&&!U)db.push({filename:f,
size:d,ga:null}),l+=d;return l};Aa.Vw=function(){var a,b,c,d;a=0;for(b=db.length;a<b;++a)c=db[a],d=this.b.Il+c.filename,c.ga=this.nj(d,!1)};Aa.Zu=function(){var a=0,b,c,d;b=0;for(c=db.length;b<c;++b)d=db[b],d.ga.Gv()||d.ga.uv()||this.b.ya||this.b.Cj?a+=d.size:d.ga.Ep()&&(a+=Math.floor(d.size/2));return a};Aa.zw=function(){var a,b,c,d;c=a=0;for(b=K.length;a<b;++a)d=K[a],K[c]=d,d.Wc?d.yw():++c;K.length=c};Aa.nj=function(a,b){var c,d,f,e=null;c=0;for(d=K.length;c<d;c++)if(f=K[c],f.src===a){e=f;break}e||
($a&&b&&this.zw(),e=new ja(a,b),K.push(e));return e};Aa.op=function(a,b,c,d,f){var e,l,g;e=0;for(l=A.length;e<l;e++)if(g=A[e],g.src===a&&(g.wt()||c))return g.tag=b,g;a=this.nj(a,c);if(!a.ba)return"<preload>"!==b&&(a.ik=b,a.Dm=d,a.Un=f),null;g=new D(a,b);A.push(g);return g};var za=[];P.prototype.Ei=function(a){return pb(R,a)};P.prototype.ns=function(a){Q(a);var b;a=0;for(b=za.length;a<b;a++)if(za[a].Pe())return!0;return!1};W.e=new P;J.prototype.Play=function(a,b,c,d){!C&&(c=Math.pow(10,c/20),isFinite(c)||
(c=0),0>c&&(c=0),1<c&&(c=1),L=this.op(this.b.Il+a[0]+(U?".ogg":".m4a"),d,a[1],0!==b,c))&&(L.tn(!1),L.play(0!==b,c,0,this.pq),this.pq=0)};J.prototype.xo=function(a){Q(a);var b;a=0;for(b=za.length;a<b;a++)za[a].stop()};W.G=new J;O.prototype.bs=function(a,b){Q(b,!0);za.length?a.n(za[0].Le()):a.n(0)};W.V=new O})();function uc(e){this.b=e}
(function(){function e(){}function k(){}var c=uc.prototype;c.Sa=function(c){this.za=c;this.b=c.b};c.Sa.prototype.ja=function(){};c.wa=function(c){this.type=c;this.b=c.b;this.Rf=Array(4);this.or=this.Ok=this.Kf=this.Ue=this.de=0;this.Zl=!1};var n=c.wa.prototype;n.ja=function(){var c=this;if(!this.b.ya){jQuery(document).mousemove(function(a){c.Yh(a)});jQuery(document).mousedown(function(a){c.Xh(a)});jQuery(document).mouseup(function(a){c.Zh(a)});jQuery(document).dblclick(function(a){c.Zv(a)});var e=
function(a){c.fw(a)};document.addEventListener("mousewheel",e,!1);document.addEventListener("DOMMouseScroll",e,!1)}};var h={left:0,top:0};n.Yh=function(c){var e=this.b.ya?h:jQuery(this.b.canvas).offset();this.de=c.pageX-e.left;this.Ue=c.pageY-e.top};n.mq=function(){return 0<this.b.Hb?!0:0<=this.de&&0<=this.Ue&&this.de<this.b.width&&this.Ue<this.b.height};n.Xh=function(c){this.mq()&&(this.Rf[c.which]=!0,this.b.Oa=!0,this.b.trigger(uc.prototype.e.ws,this),this.Kf=c.which-1,this.Ok=0,this.b.trigger(uc.prototype.e.ao,
this),this.b.trigger(uc.prototype.e.lo,this),this.b.Oa=!1)};n.Zh=function(c){this.Rf[c.which]&&(this.b.xj&&!this.b.vf&&c.preventDefault(),this.b.xj=!0,this.Rf[c.which]=!1,this.b.Oa=!0,this.Kf=c.which-1,this.b.trigger(uc.prototype.e.mo,this),this.b.Oa=!1)};n.Zv=function(c){this.mq()&&(c.preventDefault(),this.b.Oa=!0,this.Kf=c.which-1,this.Ok=1,this.b.trigger(uc.prototype.e.ao,this),this.b.trigger(uc.prototype.e.lo,this),this.b.Oa=!1)};n.fw=function(c){this.or=0>(c.wheelDelta?c.wheelDelta:c.detail?
-c.detail:0)?0:1;this.Zl=!1;this.b.Oa=!0;this.b.trigger(uc.prototype.e.Hs,this);this.b.Oa=!1;this.Zl&&qb(c)&&c.preventDefault()};n.Bg=function(){var c,e;c=0;for(e=this.Rf.length;c<e;++c)this.Rf[c]&&(this.Rf[c]=!1,this.Kf=c-1,this.b.trigger(uc.prototype.e.mo,this))};e.prototype.ao=function(c,e){return c===this.Kf&&e===this.Ok};e.prototype.ws=function(){return!0};e.prototype.mo=function(c){return c===this.Kf};e.prototype.lo=function(c,e,a){return c!==this.Kf||e!==this.Ok?!1:this.b.ri(a,this.de,this.Ue)};
e.prototype.Hs=function(c){this.Zl=!0;return c===this.or};c.e=new e;c.G=new function(){};k.prototype.cl=function(c,e){var a,d,h,b,g;ia(e)?(a=this.b.Yd(0),d=a.scale,h=a.Nb,b=a.Vb,g=a.j,a.scale=1,a.Nb=1,a.Vb=1,a.j=0,c.n(a.Ca(this.de,this.Ue,!0)),a.scale=d,a.Nb=h,a.Vb=b,a.j=g):(a=ka(e)?this.b.Yd(e):this.b.kh(e))?c.n(a.Ca(this.de,this.Ue,!0)):c.n(0)};k.prototype.dl=function(c,e){var a,d,h,b,g;ia(e)?(a=this.b.Yd(0),d=a.scale,h=a.Nb,b=a.Wb,g=a.j,a.scale=1,a.Nb=1,a.Wb=1,a.j=0,c.n(a.Ca(this.de,this.Ue,!1)),
a.scale=d,a.Nb=h,a.Wb=b,a.j=g):(a=ka(e)?this.b.Yd(e):this.b.kh(e))?c.n(a.Ca(this.de,this.Ue,!1)):c.n(0)};k.prototype.Xn=function(c){c.n(this.de)};c.V=new k})();function vc(e){this.b=e}
(function(){function e(c){this.ua=c;this.Ta=!1;this.j=this.speed=this.y=this.x=0;this.opacity=1;this.ze=this.bg=this.size=this.vj=0}var k=vc.prototype;k.Sa=function(c){this.za=c;this.b=c.b};var c=k.Sa.prototype;c.ja=function(){this.I||(this.va=new Image,this.va.So=this.Fn,this.sb=null,this.b.Gr(this.va,this.En))};c.Qm=function(){this.I||(this.sb=null)};c.Rm=function(){this.I||!this.c.length||this.sb||(this.sb=this.b.u.Lj(this.va,!0,this.b.La,this.Gn))};c.ym=function(){this.I||this.sb||!this.b.u||
(this.sb=this.b.u.Lj(this.va,!0,this.b.La,this.Gn))};c.Nn=function(){this.I||this.c.length||!this.sb||(this.b.u.deleteTexture(this.sb),this.sb=null)};c.Zm=function(c){c.drawImage(this.va,0,0)};e.prototype.init=function(){var c=this.ua;this.x=c.x-c.Wk/2+Math.random()*c.Wk;this.y=c.y-c.Xk/2+Math.random()*c.Xk;this.speed=c.km-c.Ek/2+Math.random()*c.Ek;this.j=c.j-c.Fk/2+Math.random()*c.Fk;this.opacity=c.im;this.size=c.jm-c.Dk/2+Math.random()*c.Dk;this.vj=c.Yl-c.wj/2+Math.random()*c.wj;this.ze=this.bg=
0};e.prototype.bb=function(c){var e=this.ua;this.x+=Math.cos(this.j)*this.speed*c;this.y+=Math.sin(this.j)*this.speed*c;this.y+=this.bg*c;this.speed+=e.el*c;this.size+=this.vj*c;this.bg+=e.Nl*c;this.ze+=c;1>this.size?this.Ta=!1:(0!==e.Gh&&(this.j+=Math.random()*e.Gh*c-e.Gh*c/2),0!==e.Ih&&(this.speed+=Math.random()*e.Ih*c-e.Ih*c/2),0!==e.Hh&&(this.opacity+=Math.random()*e.Hh*c-e.Hh*c/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=e.Wf&&this.ze>=e.timeout&&(this.Ta=!1),2===e.Wf&&
0>=this.speed&&(this.Ta=!1))};e.prototype.kd=function(c){var e=this.ua.opacity*this.opacity;if(0!==e){0===this.ua.Wf&&(e*=1-this.ze/this.ua.timeout);c.globalAlpha=e;var e=this.x-this.size/2,k=this.y-this.size/2;this.ua.b.ie&&(e=e+.5|0,k=k+.5|0);c.drawImage(this.ua.type.va,e,k,this.size,this.size)}};e.prototype.ic=function(c){var e=this.ua.opacity*this.opacity;0===this.ua.Wf&&(e*=1-this.ze/this.ua.timeout);var k=this.size,a=k*this.ua.Gq,d=this.x-k/2,n=this.y-k/2;this.ua.b.ie&&(d=d+.5|0,n=n+.5|0);1>
a||0===e||(a<c.Uv||a>c.Fm?(c.Ig(e),c.Eg(d,n,d+k,n,d+k,n+k,d,n+k)):c.kw(this.x,this.y,a,e))};e.prototype.left=function(){return this.x-this.size/2};e.prototype.right=function(){return this.x+this.size/2};e.prototype.top=function(){return this.y-this.size/2};e.prototype.bottom=function(){return this.y+this.size/2};k.wa=function(c){this.type=c;this.b=c.b};var c=k.wa.prototype,n=[];c.ja=function(){var c=this.S;this.rk=c[0];this.Fk=B(c[1]);this.Mg=c[2];this.An=!0;this.km=c[3];this.jm=c[4];this.im=c[5]/
100;this.Yl=c[6];this.Wk=c[7];this.Xk=c[8];this.Ek=c[9];this.Dk=c[10];this.wj=c[11];this.el=c[12];this.Nl=c[13];this.Gh=c[14];this.Ih=c[15];this.Hh=c[16];this.Wf=c[17];this.timeout=c[18];this.Gf=0;this.Gq=1;this.ek=this.x;this.gk=this.y;this.fk=this.x;this.dk=this.y;this.lt(function(c){c.Ga.set(c.ek,c.gk,c.fk,c.dk);c.xc.Lg(c.Ga);c.Ni=!1;c.Sn();c.Cr()});this.Yc||(this.Qb=[]);this.b.ti(this);this.type.ym();if(1===this.Mg)for(c=0;c<this.rk;c++)this.fl().opacity=0;this.kj=!0};c.Rb=function(){var c={r:this.rk,
sc:this.Fk,st:this.Mg,s:this.An,isp:this.km,isz:this.jm,io:this.im,gr:this.Yl,xr:this.Wk,yr:this.Xk,spr:this.Ek,szr:this.Dk,grnd:this.wj,acc:this.el,g:this.Nl,lar:this.Gh,lsr:this.Ih,lor:this.Hh,dm:this.Wf,to:this.timeout,pcc:this.Gf,ft:this.kj,p:[]},e,k,a,d=c.p;e=0;for(k=this.Qb.length;e<k;e++)a=this.Qb[e],d.push([a.x,a.y,a.speed,a.j,a.opacity,a.vj,a.size,a.bg,a.ze]);return c};c.rc=function(c){this.rk=c.r;this.Fk=c.sc;this.Mg=c.st;this.An=c.s;this.km=c.isp;this.jm=c.isz;this.im=c.io;this.Yl=c.gr;
this.Wk=c.xr;this.Xk=c.yr;this.Ek=c.spr;this.Dk=c.szr;this.wj=c.grnd;this.el=c.acc;this.Nl=c.g;this.Gh=c.lar;this.Ih=c.lsr;this.Hh=c.lor;this.Wf=c.dm;this.timeout=c.to;this.Gf=c.pcc;this.kj=c.ft;n.push.apply(n,this.Qb);y(this.Qb);var e,k,a,d=c.p;c=0;for(e=d.length;c<e;c++)k=this.fl(),a=d[c],k.x=a[0],k.y=a[1],k.speed=a[2],k.j=a[3],k.opacity=a[4],k.vj=a[5],k.size=a[6],k.bg=a[7],k.ze=a[8]};c.Vh=function(){n.push.apply(n,this.Qb);y(this.Qb)};c.fl=function(){var c;n.length?(c=n.pop(),c.ua=this):c=new e(this);
this.Qb.push(c);c.Ta=!0;return c};c.bb=function(){var c=this.b.qj(this),e,k,a,d;if(0===this.Mg&&this.An)for(this.Gf+=c*this.rk,k=ta(this.Gf),this.Gf-=k,e=0;e<k;e++)a=this.fl(),a.init();this.ek=this.x;this.gk=this.y;this.fk=this.x;this.dk=this.y;d=e=0;for(k=this.Qb.length;e<k;e++)a=this.Qb[e],this.Qb[d]=a,this.b.ma=!0,1===this.Mg&&this.kj&&a.init(),a.bb(c),a.Ta?(a.left()<this.ek&&(this.ek=a.left()),a.right()>this.fk&&(this.fk=a.right()),a.top()<this.gk&&(this.gk=a.top()),a.bottom()>this.dk&&(this.dk=
a.bottom()),d++):n.push(a);Ca(this.Qb,d);this.Aa();this.kj=!1;1===this.Mg&&0===this.Qb.length&&this.b.ue(this)};c.kd=function(c){var e,k,a,d=this.k;e=0;for(k=this.Qb.length;e<k;e++)a=this.Qb[e],a.right()>=d.na&&a.bottom()>=d.pa&&a.left()<=d.ra&&a.top()<=d.qa&&a.kd(c)};c.ic=function(c){this.Gq=this.k.Cc();c.Ic(this.type.sb);var e,k,a,d=this.k;e=0;for(k=this.Qb.length;e<k;e++)a=this.Qb[e],a.right()>=d.na&&a.bottom()>=d.pa&&a.left()<=d.ra&&a.top()<=d.qa&&a.ic(c)};k.e=new function(){};k.G=new function(){};
k.V=new function(){}})();function S(e){this.b=e}
(function(){function e(){if(0===this.wl.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Ng?b.drawImage(this.va,this.xg,this.yg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.va,0,0,this.width,this.height);this.wl=a.toDataURL("image/png")}return this.wl}function k(){}function c(){}function n(){}var h=S.prototype;h.Sa=function(a){this.za=a;this.b=a.b};var t=h.Sa.prototype;t.ja=function(){if(!this.I){var a,b,c,
d,g,h,k,n,p;this.fd=[];this.ph=!1;a=0;for(b=this.gc.length;a<b;a++){g=this.gc[a];k={};k.name=g[0];k.speed=g[1];k.loop=g[2];k.gn=g[3];k.hn=g[4];k.he=g[5];k.U=g[6];k.frames=[];c=0;for(d=g[7].length;c<d;c++)h=g[7][c],n={},n.En=h[0],n.Fn=h[1],n.xg=h[2],n.yg=h[3],n.width=h[4],n.height=h[5],n.duration=h[6],n.lc=h[7],n.mc=h[8],n.fm=h[9],n.kk=h[10],n.Hq=h[11],n.Ng=0!==n.width,n.wl="",n.Hy=e,p={left:0,top:0,right:1,bottom:1},n.xn=p,n.sb=null,(p=this.b.Iu(h[0]))?n.va=p:(n.va=new Image,n.va.zt=h[0],n.va.So=
h[1],n.va.ut=null,this.b.Gr(n.va,h[0])),k.frames.push(n),this.fd.push(n);this.gc[a]=k}}};t.Br=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c=this.c[a],c.Xi=c.Da.sb};t.Qm=function(){if(!this.I){var a,b,c;a=0;for(b=this.fd.length;a<b;++a)c=this.fd[a],c.va.ut=null,c.sb=null;this.ph=!1;this.Br()}};t.Rm=function(){if(!this.I&&this.c.length){var a,b,c;a=0;for(b=this.fd.length;a<b;++a)c=this.fd[a],c.sb=this.b.u.Lj(c.va,!1,this.b.La,c.Hq);this.Br()}};t.ym=function(){if(!this.I&&!this.ph&&this.b.u){var a,
b,c;a=0;for(b=this.fd.length;a<b;++a)c=this.fd[a],c.sb=this.b.u.Lj(c.va,!1,this.b.La,c.Hq);this.ph=!0}};t.Nn=function(){if(!this.I&&!this.c.length&&this.ph){var a,b,c;a=0;for(b=this.fd.length;a<b;++a)c=this.fd[a],this.b.u.deleteTexture(c.sb),c.sb=null;this.ph=!1}};var r=[];t.Zm=function(a){var b,c,d;y(r);b=0;for(c=this.fd.length;b<c;++b)d=this.fd[b].va,-1===r.indexOf(d)&&(a.drawImage(d,0,0),r.push(d))};h.wa=function(a){this.type=a;this.b=a.b;a=this.type.gc[0].frames[0].kk;this.Yc?this.fa.ji(a):this.fa=
new jb(a)};var a=h.wa.prototype;a.ja=function(){this.visible=0===this.S[0];this.zj=this.Ah=!1;this.gf=0!==this.S[3];this.xa=this.np(this.S[1])||this.type.gc[0];this.A=this.S[2];0>this.A&&(this.A=0);this.A>=this.xa.frames.length&&(this.A=this.xa.frames.length-1);var a=this.xa.frames[this.A];this.fa.ji(a.kk);this.lc=a.lc;this.mc=a.mc;this.Uf=this.xa.speed;this.Fe=this.xa.hn;1===this.type.gc.length&&1===this.type.gc[0].frames.length||0===this.Uf||(this.b.ti(this),this.Ah=!0);this.Yc?this.zd.reset():
this.zd=new hb;this.Xd=this.zd.T;this.bf=!0;this.Od=0;this.$e=!0;this.Si=this.Fo="";this.Qo=0;this.Ri=-1;this.type.ym();var b,c,d,e,g,h,k,a=0;for(b=this.type.gc.length;a<b;a++)for(e=this.type.gc[a],c=0,d=e.frames.length;c<d;c++)g=e.frames[c],0===g.width&&(g.width=g.va.width,g.height=g.va.height),g.Ng&&(k=g.va,h=g.xn,h.left=g.xg/k.width,h.top=g.yg/k.height,h.right=(g.xg+g.width)/k.width,h.bottom=(g.yg+g.height)/k.height,0===g.xg&&0===g.yg&&g.width===k.width&&g.height===k.height&&(g.Ng=!1));this.Da=
this.xa.frames[this.A];this.Xi=this.Da.sb};a.Rb=function(){var a={a:this.xa.U,f:this.A,cas:this.Uf,fs:this.Xd,ar:this.Od,at:this.zd.T,rt:this.Fe};this.bf||(a.ap=this.bf);this.$e||(a.af=this.$e);return a};a.rc=function(a){var b=this.Nu(a.a);b&&(this.xa=b);this.A=a.f;0>this.A&&(this.A=0);this.A>=this.xa.frames.length&&(this.A=this.xa.frames.length-1);this.Uf=a.cas;this.Xd=a.fs;this.Od=a.ar;this.zd.reset();this.zd.T=a.at;this.bf=a.hasOwnProperty("ap")?a.ap:!0;this.$e=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?
this.Fe=a.rt:this.Fe=this.xa.hn;this.Da=this.xa.frames[this.A];this.Xi=this.Da.sb;this.fa.ji(this.Da.kk);this.lc=this.Da.lc;this.mc=this.Da.mc};a.il=function(a){this.A=a?0:this.xa.frames.length-1;this.bf=!1;this.Fo=this.xa.name;this.zj=!0;this.b.trigger(S.prototype.e.vs,this);this.b.trigger(S.prototype.e.us,this);this.zj=!1;this.Od=0};a.Jo=function(){return this.zd.T};a.bb=function(){this.zd.add(this.b.qj(this));this.Si.length&&this.Xo();0<=this.Ri&&this.Yo();var a=this.zd.T,b=this.xa,c=b.frames[this.A],
d=c.duration/this.Uf;this.bf&&a>=this.Xd+d&&(this.$e?this.A++:this.A--,this.Xd+=d,this.A>=b.frames.length&&(b.he?(this.$e=!1,this.A=b.frames.length-2):b.loop?this.A=this.Fe:(this.Od++,this.Od>=b.gn?this.il(!1):this.A=this.Fe)),0>this.A&&(b.he?(this.A=1,this.$e=!0,b.loop||(this.Od++,this.Od>=b.gn&&this.il(!0))):b.loop?this.A=this.Fe:(this.Od++,this.Od>=b.gn?this.il(!0):this.A=this.Fe)),0>this.A?this.A=0:this.A>=b.frames.length&&(this.A=b.frames.length-1),a>this.Xd+b.frames[this.A].duration/this.Uf&&
(this.Xd=a),a=b.frames[this.A],this.Of(c,a),this.b.ma=!0)};a.np=function(a){var b,c,d;b=0;for(c=this.type.gc.length;b<c;b++)if(d=this.type.gc[b],pb(d.name,a))return d;return null};a.Nu=function(a){var b,c,d;b=0;for(c=this.type.gc.length;b<c;b++)if(d=this.type.gc[b],d.U===a)return d;return null};a.Xo=function(){var a=this.xa.frames[this.A],b=this.np(this.Si);this.Si="";!b||pb(b.name,this.xa.name)&&this.bf||(this.xa=b,this.Uf=b.speed,this.Fe=b.hn,0>this.A&&(this.A=0),this.A>=this.xa.frames.length&&
(this.A=this.xa.frames.length-1),1===this.Qo&&(this.A=0),this.bf=!0,this.Xd=this.zd.T,this.$e=!0,this.Of(a,this.xa.frames[this.A]),this.b.ma=!0)};a.Yo=function(){var a=this.xa.frames[this.A],b=this.A;this.A=ta(this.Ri);0>this.A&&(this.A=0);this.A>=this.xa.frames.length&&(this.A=this.xa.frames.length-1);b!==this.A&&(this.Of(a,this.xa.frames[this.A]),this.Xd=this.zd.T,this.b.ma=!0);this.Ri=-1};a.Of=function(a,b){var c=a.width,d=a.height,e=b.width,g=b.height;c!=e&&(this.width*=e/c);d!=g&&(this.height*=
g/d);this.lc=b.lc;this.mc=b.mc;this.fa.ji(b.kk);this.Aa();this.Da=b;this.Xi=b.sb;c=0;for(d=this.B.length;c<d;c++)e=this.B[c],e.cw&&e.cw(a,b);this.b.trigger(S.prototype.e.Of,this)};a.kd=function(a){a.globalAlpha=this.opacity;var b=this.Da,c=b.Ng,d=b.va,e=this.x,g=this.y,h=this.width,k=this.height;if(0===this.j&&0<=h&&0<=k)e-=this.lc*h,g-=this.mc*k,this.b.ie&&(e=Math.round(e),g=Math.round(g)),c?a.drawImage(d,b.xg,b.yg,b.width,b.height,e,g,h,k):a.drawImage(d,e,g,h,k);else{this.b.ie&&(e=Math.round(e),
g=Math.round(g));a.save();var n=0<h?1:-1,p=0<k?1:-1;a.translate(e,g);1===n&&1===p||a.scale(n,p);a.rotate(this.j*n*p);e=0-this.lc*qa(h);g=0-this.mc*qa(k);c?a.drawImage(d,b.xg,b.yg,b.width,b.height,e,g,qa(h),qa(k)):a.drawImage(d,e,g,qa(h),qa(k));a.restore()}};a.Xf=function(a){this.ic(a)};a.ic=function(a){a.Ic(this.Xi);a.Ig(this.opacity);var b=this.Da,c=this.xc;if(this.b.ie){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Ng?a.Hf(c.ac+d,c.cc+e,c.Jc+d,c.Kc+e,c.yc+d,c.zc+e,c.vc+d,c.wc+e,
b.xn):a.Eg(c.ac+d,c.cc+e,c.Jc+d,c.Kc+e,c.yc+d,c.zc+e,c.vc+d,c.wc+e)}else b.Ng?a.Hf(c.ac,c.cc,c.Jc,c.Kc,c.yc,c.zc,c.vc,c.wc,b.xn):a.Eg(c.ac,c.cc,c.Jc,c.Kc,c.yc,c.zc,c.vc,c.wc)};a.Vu=function(a){var b=this.Da,c,d;c=0;for(d=b.fm.length;c<d;c++)if(pb(a,b.fm[c][0]))return c;return-1};a.Rl=function(a,b){var c=this.Da,d=c.fm,e;la(a)?e=this.Vu(a):e=a-1;e=ta(e);if(0>e||e>=d.length)return b?this.x:this.y;var g=(d[e][1]-c.lc)*this.width,d=d[e][2],d=(d-c.mc)*this.height,c=Math.cos(this.j);e=Math.sin(this.j);
var h=g*c-d*e,d=d*c+g*e,g=h+this.x,d=d+this.y;return b?g:d};var d=null,p=new ea,b=!1,g=[],v=new wa(0,0,0,0);t.finish=function(a){if(b){if(a){var c=this.b.Wa().eb.Gc;a=d.ca();var e=p.cd(),g,h;if(a.ha){a.ha=!1;y(a.c);g=0;for(h=e.length;g<h;++g)a.c[g]=e[g];if(c)for(y(a.L),g=0,h=d.c.length;g<h;++g)e=d.c[g],p.contains(e)||a.L.push(e)}else if(c)for(c=a.c.length,g=0,h=e.length;g<h;++g)a.c[c+g]=e[g],Ha(a.L,e[g]);else Ea(a.c,e);d.Ad()}p.clear();b=!1}};k.prototype.ms=function(a){if(a){var c=!1,e,h,k,n=this.b.pj(),
r=n.type,n=n.Aj;e=a.ca();h=this.b.Wa().eb.Gc;var t;e.ha?(this.Ba(),v.Tf(this.Ga),v.offset(0,0),this.b.Qu(this.k,a,v,g),t=g):t=h?this.b.Dv()&&!e.L.length&&e.c.length?e.c:e.L:e.c;d=a;b=r!==a&&!n;e=0;for(h=t.length;e<h;e++)if(k=t[e],this.b.Zw(this,k)){c=!0;if(n)break;r!==a&&p.add(k)}y(g);a=c}else a=!1;return a};k.prototype.Qr=function(a,b){return hc(this.A,a,b)};k.prototype.us=function(a){return pb(this.Fo,a)};k.prototype.vs=function(){return!0};k.prototype.Of=function(){return!0};h.e=new k;c.prototype.Ms=
function(a,b){this.Si=a;this.Qo=b;this.Ah||(this.b.ti(this),this.Ah=!0);this.zj||this.Xo()};c.prototype.Ns=function(a){this.Ri=a;this.Ah||(this.b.ti(this),this.Ah=!0);this.zj||this.Yo()};c.prototype.Ss=function(a){var b=this.Da,c=b.width*a*(0>this.width?-1:1);a=b.height*a*(0>this.height?-1:1);if(this.width!==c||this.height!==a)this.width=c,this.height=a,this.Aa()};h.G=new c;n.prototype.Kr=function(a){a.ea(this.A)};h.V=new n})();function V(e){this.b=e}
(function(){function e(a){d=a.x;p=a.y;b=a.z}function k(a,b,d,e){var f;f=g.length?g.pop():new c;f.init(a,b,d,e);return f}function c(){this.oi=this.id=this.y=this.x=this.Ik=this.Hk=this.xm=this.time=this.Cn=0;this.xi=this.Pk=!1}function n(){}function h(){}var t=V.prototype;t.Sa=function(a){this.za=a;this.b=a.b};t.Sa.prototype.ja=function(){};t.wa=function(a){this.type=a;this.b=a.b;this.touches=[];this.Im=!1};var r=t.wa.prototype,a={left:0,top:0};r.ih=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 d=0,p=0,b=0,g=[];c.prototype.init=function(a,b,c,d){var e=Za();this.Cn=this.xm=this.time=e;this.Hk=a;this.Ik=b;this.x=a;this.y=b;this.pressure=this.height=this.width=0;this.id=c;this.oi=d;this.xi=this.Pk=!1};c.prototype.update=function(a,b,c,d,e,f){this.xm=this.time;this.time=a;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=f;!this.xi&&15<=Va(this.Hk,this.Ik,this.x,this.y)&&(this.xi=!0)};c.prototype.Sv=function(a,b){!this.Pk&&500<=
Za()-this.Cn&&!this.xi&&15>Va(this.Hk,this.Ik,this.x,this.y)&&(this.Pk=!0,a.vd=this.oi,a.Qg=this.id,a.ag=b,a.b.trigger(V.prototype.e.Bs,a),a.Sd=this.x,a.Td=this.y,a.b.trigger(V.prototype.e.Cs,a),a.ag=0)};var v=-1E3,f=-1E3,x=-1E4;c.prototype.iq=function(a,b){if(!this.Pk){var c=Za();333>=c-this.Cn&&!this.xi&&15>Va(this.Hk,this.Ik,this.x,this.y)&&(a.vd=this.oi,a.Qg=this.id,a.ag=b,666>=c-x&&25>Va(v,f,this.x,this.y)?(a.b.trigger(V.prototype.e.zs,a),a.Sd=this.x,a.Td=this.y,a.b.trigger(V.prototype.e.As,
a),f=v=-1E3,x=-1E4):(a.b.trigger(V.prototype.e.po,a),a.Sd=this.x,a.Td=this.y,a.b.trigger(V.prototype.e.qo,a),v=this.x,f=this.y,x=c),a.ag=0)}};r.ja=function(){this.Kv=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.ag=this.Qg=this.vd=this.Td=this.Sd=this.Bo=this.Ao=this.zo=this.ht=this.gt=this.et=this.ck=this.bk=this.ak=0;this.jx=0!==this.S[0];var a=0<this.b.Hb?document:this.b.canvas,b=document;this.b.Jb?b=a=window.Canvas:this.b.Ec&&(b=a=window);var c=this;window.navigator.pointerEnabled?
(a.addEventListener("pointerdown",function(a){c.ai(a)},!1),a.addEventListener("pointermove",function(a){c.$h(a)},!1),b.addEventListener("pointerup",function(a){c.ge(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.ge(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.ai(a)},!1),a.addEventListener("MSPointerMove",function(a){c.$h(a)},!1),b.addEventListener("MSPointerUp",function(a){c.ge(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.ge(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.$j(a)},!1),a.addEventListener("touchmove",function(a){c.Zj(a)},!1),b.addEventListener("touchend",function(a){c.Ag(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Ag(a,!0)},!1));if(this.Kv){var d=function(a){a=a.reading;c.zo=a.accelerationX;c.Ao=a.accelerationY;c.Bo=a.accelerationZ},f=function(a){a=a.reading;c.ak=a.yawDegrees;c.bk=a.pitchDegrees;c.ck=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),
g.addEventListener("readingchanged",d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",
function(a){c.ak=a.alpha||0;c.bk=a.beta||0;c.ck=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.et=a.accelerationIncludingGravity.x||0,c.gt=a.accelerationIncludingGravity.y||0,c.ht=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.zo=a.acceleration.x||0,c.Ao=a.acceleration.y||0,c.Bo=a.acceleration.z||0)},!1);this.jx&&!this.b.ya&&(jQuery(document).mousemove(function(a){c.Yh(a)}),jQuery(document).mousedown(function(a){c.Xh(a)}),jQuery(document).mouseup(function(a){c.Zh(a)}));
!this.b.lg&&this.b.nc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(e,null,{frequency:40});this.b.$w(this)};r.$h=function(b){if(b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType){b.preventDefault&&b.preventDefault();var c=this.ih(b.pointerId),d=Za();if(0<=c){var e=this.b.ya?a:jQuery(this.b.canvas).offset(),c=this.touches[c];2>d-c.time||c.update(d,b.pageX-e.left,b.pageY-e.top,b.width||0,b.height||0,b.pressure||0)}}};r.ai=
function(b){if(b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType){b.preventDefault&&qb(b)&&b.preventDefault();var c=this.b.ya?a:jQuery(this.b.canvas).offset(),d=b.pageX-c.left,c=b.pageY-c.top;Za();this.vd=this.touches.length;this.Qg=b.pointerId;this.touches.push(k(d,c,b.pointerId,this.vd));this.b.Oa=!0;this.b.trigger(V.prototype.e.ko,this);this.b.trigger(V.prototype.e.uo,this);this.Sd=d;this.Td=c;this.b.trigger(V.prototype.e.so,this);this.b.Oa=!1}};r.ge=function(a,b){if(a.pointerType!==
a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&qb(a)&&a.preventDefault();var c=this.ih(a.pointerId);this.vd=0<=c?this.touches[c].oi:-1;this.Qg=0<=c?this.touches[c].id:-1;this.b.Oa=!0;this.b.trigger(V.prototype.e.jo,this);this.b.trigger(V.prototype.e.ro,this);0<=c&&(b||this.touches[c].iq(this,c),100>g.length&&g.push(this.touches[c]),this.touches.splice(c,1));this.b.Oa=!1}};r.Zj=function(b){b.preventDefault&&b.preventDefault();var c=Za(),d,e,f,g;d=0;for(e=b.changedTouches.length;d<
e;d++)if(f=b.changedTouches[d],g=this.ih(f.identifier),0<=g){var h=this.b.ya?a:jQuery(this.b.canvas).offset();g=this.touches[g];2>c-g.time||g.update(c,f.pageX-h.left,f.pageY-h.top,2*(f.Ry||f.Yy||f.Ky||f.Ny||0),2*(f.Sy||f.Zy||f.Ly||f.Oy||0),f.Fy||f.Xy||f.Jy||f.My||0)}};r.$j=function(b){b.preventDefault&&qb(b)&&b.preventDefault();var c=this.b.ya?a:jQuery(this.b.canvas).offset();Za();this.b.Oa=!0;var d,e,f,g;d=0;for(e=b.changedTouches.length;d<e;d++)if(f=b.changedTouches[d],g=this.ih(f.identifier),-1===
g){g=f.pageX-c.left;var h=f.pageY-c.top;this.vd=this.touches.length;this.Qg=f.identifier;this.touches.push(k(g,h,f.identifier,this.vd));this.b.trigger(V.prototype.e.ko,this);this.b.trigger(V.prototype.e.uo,this);this.Sd=g;this.Td=h;this.b.trigger(V.prototype.e.so,this)}this.b.Oa=!1};r.Ag=function(a,b){a.preventDefault&&qb(a)&&a.preventDefault();this.b.Oa=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.ih(e.identifier),0<=e&&(this.vd=this.touches[e].oi,this.Qg=this.touches[e].id,
this.b.trigger(V.prototype.e.jo,this),this.b.trigger(V.prototype.e.ro,this),b||this.touches[e].iq(this,e),100>g.length&&g.push(this.touches[e]),this.touches.splice(e,1));this.b.Oa=!1};r.Jo=function(){return this.b.nc&&0===this.ak&&0!==b?90*b:this.ak};r.Dy=function(){return this.b.nc&&0===this.bk&&0!==p?90*p:this.bk};r.Ey=function(){return this.b.nc&&0===this.ck&&0!==d?90*d:this.ck};r.Xh=function(a){this.$j({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Im=!0};r.Yh=function(a){this.Im&&
this.Zj({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};r.Zh=function(a){a.preventDefault&&this.b.xj&&!this.b.vf&&a.preventDefault();this.b.xj=!0;this.Ag({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Im=!1};r.Mk=function(){var a,b,c,d=Za();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.xm=d),c.Sv(this,a)};n.prototype.uo=function(){return!0};n.prototype.ro=function(){return!0};n.prototype.so=function(a){return a?this.b.ri(a,this.Sd,this.Td):
!1};n.prototype.ko=function(a){a=Math.floor(a);return a===this.vd};n.prototype.jo=function(a){a=Math.floor(a);return a===this.vd};n.prototype.Bs=function(){return!0};n.prototype.po=function(){return!0};n.prototype.zs=function(){return!0};n.prototype.Cs=function(a){return a?this.b.ri(a,this.Sd,this.Td):!1};n.prototype.qo=function(a){return a?this.b.ri(a,this.Sd,this.Td):!1};n.prototype.As=function(a){return a?this.b.ri(a,this.Sd,this.Td):!1};t.e=new n;h.prototype.cl=function(a,b){var c=this.ag;if(0>
c||c>=this.touches.length)a.n(0);else{var d,e,f,g,h;ia(b)?(d=this.b.Yd(0),e=d.scale,f=d.Nb,g=d.Vb,h=d.j,d.scale=1,d.Nb=1,d.Vb=1,d.j=0,a.n(d.Ca(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Nb=f,d.Vb=g,d.j=h):(d=ka(b)?this.b.Yd(b):this.b.kh(b))?a.n(d.Ca(this.touches[c].x,this.touches[c].y,!0)):a.n(0)}};h.prototype.dl=function(a,b){var c=this.ag;if(0>c||c>=this.touches.length)a.n(0);else{var d,e,f,g,h;ia(b)?(d=this.b.Yd(0),e=d.scale,f=d.Nb,g=d.Wb,h=d.j,d.scale=1,d.Nb=1,d.Wb=1,d.j=0,a.n(d.Ca(this.touches[c].x,
this.touches[c].y,!1)),d.scale=e,d.Nb=f,d.Wb=g,d.j=h):(d=ka(b)?this.b.Yd(b):this.b.kh(b))?a.n(d.Ca(this.touches[c].x,this.touches[c].y,!1)):a.n(0)}};h.prototype.Xn=function(a){this.touches.length?a.n(this.touches[0].x):a.n(0)};h.prototype.Zs=function(a){a.ea(this.vd)};t.V=new h})();function wc(e){this.b=e}
(function(){var e=wc.prototype;e.Sa=function(c){this.za=c;this.b=c.b};e.Sa.prototype.ja=function(){};e.wa=function(c){this.type=c;this.b=c.b};var k=e.wa.prototype;k.ja=function(){this.ad=null;this.Be=!1};k.kd=function(){};e.e={};k=e.e;k.wy=function(c){this.ad=c;this.Be=!1;return!0};k.wx=function(c){return this.Be?!1:this.ad==c?!0:!1};k.Bx=function(c,e){return this.Be?!1:this.ad>=c&&this.ad<=e?!0:!1};k.zx=function(c){return this.Be?!1:-1!=this.ad.indexOf(c)?!0:!1};k.Ax=function(c){if(!this.Be){var e=
0,h=[],h=c.split(",");for(e in h)if(this.ad==h[e])return!0}return!1};k.yx=function(c,e){if(this.Be)return!1;switch(c){case 0:return this.ad==e?!0:!1;case 1:return this.ad!=e?!0:!1;case 2:return this.ad<e?!0:!1;case 3:return this.ad<=e?!0:!1;case 4:return this.ad>e?!0:!1;case 5:return this.ad>=e?!0:!1}};k.Gx=function(){return this.Be?!1:!0};e.G={};e.G.xx=function(){this.Be=!0};e.V={}})();
function xc(e){this.b=e;var k=this;this.b.ya||(jQuery(document).mousemove(function(c){k.Yh(c)}),jQuery(document).mousedown(function(c){k.Xh(c)}),jQuery(document).mouseup(function(c){k.Zh(c)}));e=0<this.b.Hb?document:this.b.canvas;this.b.Jb?e=window.Canvas:this.b.Ec&&(e=window);window.navigator.pointerEnabled?(e.addEventListener("pointerdown",function(c){k.ai(c)},!1),e.addEventListener("pointermove",function(c){k.$h(c)},!1),e.addEventListener("pointerup",function(c){k.ge(c)},!1),e.addEventListener("pointercancel",
function(c){k.ge(c)},!1)):window.navigator.msPointerEnabled?(e.addEventListener("MSPointerDown",function(c){k.ai(c)},!1),e.addEventListener("MSPointerMove",function(c){k.$h(c)},!1),e.addEventListener("MSPointerUp",function(c){k.ge(c)},!1),e.addEventListener("MSPointerCancel",function(c){k.ge(c)},!1)):(e.addEventListener("touchstart",function(c){k.$j(c)},!1),e.addEventListener("touchmove",function(c){k.Zj(c)},!1),e.addEventListener("touchend",function(c){k.Ag(c)},!1),e.addEventListener("touchcancel",
function(c){k.Ag(c)},!1))}
(function(){function e(c){var a,d;a=0;for(d=c.B.length;a<d;a++)if(c.B[a]instanceof n.wa)return c.B[a];return null}function k(){}function c(){}var n=xc.prototype,h={left:0,top:0};n.Xh=function(c){1===c.which&&this.Nm("leftmouse",c.pageX,c.pageY)};n.Yh=function(c){1===c.which&&this.Om("leftmouse",c.pageX,c.pageY)};n.Zh=function(c){1===c.which&&this.Pm("leftmouse")};n.$j=function(c){c.preventDefault&&qb(c)&&c.preventDefault();var a,d,e,b;a=0;for(d=c.changedTouches.length;a<d;a++)e=c.changedTouches[a],
b=e.identifier,this.Nm(b?b.toString():"<none>",e.pageX,e.pageY)};n.Zj=function(c){c.preventDefault&&c.preventDefault();var a,d,e,b;a=0;for(d=c.changedTouches.length;a<d;a++)e=c.changedTouches[a],b=e.identifier,this.Om(b?b.toString():"<none>",e.pageX,e.pageY)};n.Ag=function(c){c.preventDefault&&qb(c)&&c.preventDefault();var a,d,e;a=0;for(d=c.changedTouches.length;a<d;a++)e=c.changedTouches[a],e=e.identifier,this.Pm(e?e.toString():"<none>")};n.ai=function(c){c.pointerType!==c.MSPOINTER_TYPE_MOUSE&&
"mouse"!==c.pointerType&&(c.preventDefault&&qb(c)&&c.preventDefault(),this.Nm(c.pointerId.toString(),c.pageX,c.pageY))};n.$h=function(c){c.pointerType!==c.MSPOINTER_TYPE_MOUSE&&"mouse"!==c.pointerType&&(c.preventDefault&&c.preventDefault(),this.Om(c.pointerId.toString(),c.pageX,c.pageY))};n.ge=function(c){c.pointerType!==c.MSPOINTER_TYPE_MOUSE&&"mouse"!==c.pointerType&&(c.preventDefault&&qb(c)&&c.preventDefault(),this.Pm(c.pointerId.toString()))};n.Nm=function(c,a,d){var k=this.b.ya?h:jQuery(this.b.canvas).offset();
a=a-k.left;d=d-k.top;var b,g,n,f,k=this.Ef.cd(),t,l,I,m=null;t=0;for(l=k.length;t<l;t++)if(I=k[t],b=e(I),b.enabled&&!b.Ge&&(b=I.k.Ca(a,d,!0),g=I.k.Ca(a,d,!1),I.Ba(),I.Fb(b,g)))m?I.k.index>m.k.index?(m=I,n=b,f=g):I.k.index===m.k.index&&I.Uc()>m.Uc()&&(m=I,n=b,f=g):(m=I,n=b,f=g);m&&e(m).$v(c,n,f)};n.Om=function(c,a,d){var k=this.b.ya?h:jQuery(this.b.canvas).offset();a=a-k.left;d=d-k.top;var b,g=this.Ef.cd(),n,f,t;n=0;for(f=g.length;n<f;n++)b=g[n],t=e(b),!t.enabled||!t.Ge||t.Ge&&t.Bl!==c||(k=b.k.Ca(a,
d,!0),b=b.k.Ca(a,d,!1),t.bw(k,b))};n.Pm=function(c){var a=this.Ef.cd(),d,h,b;d=0;for(h=a.length;d<h;d++)b=a[d],b=e(b),b.Ge&&b.Bl===c&&b.ew()};n.Sa=function(c){this.behavior=c;this.b=c.b};n.Sa.prototype.ja=function(){};n.wa=function(c,a){this.type=c;this.behavior=c.behavior;this.d=a;this.b=c.b};var t=n.wa.prototype;t.ja=function(){this.Ge=!1;this.bp=this.$o=0;this.Bl="<none>";this.jl=this.S[0];this.enabled=0!==this.S[1]};t.Rb=function(){return{enabled:this.enabled}};t.rc=function(c){this.enabled=c.enabled;
this.Ge=!1};t.$v=function(c,a,d){this.$o=a-this.d.x;this.bp=d-this.d.y;this.Ge=!0;this.Bl=c;this.b.Oa=!0;this.b.trigger(xc.prototype.e.bo,this.d);this.b.Oa=!1};t.bw=function(c,a){var d=c-this.$o,e=a-this.bp;if(0===this.jl){if(this.d.x!==d||this.d.y!==e)this.d.x=d,this.d.y=e,this.d.Aa()}else 1===this.jl?this.d.x!==d&&(this.d.x=d,this.d.Aa()):2===this.jl&&this.d.y!==e&&(this.d.y=e,this.d.Aa())};t.ew=function(){this.Ge=!1;this.b.Oa=!0;this.b.trigger(xc.prototype.e.co,this.d);this.b.Oa=!1};t.bb=function(){};
k.prototype.bo=function(){return!0};k.prototype.co=function(){return!0};k.prototype.ls=function(){return!!this.enabled};n.e=new k;c.prototype.vo=function(c){this.enabled=0!==c;this.enabled||(this.Ge=!1)};n.G=new c;n.V=new function(){}})();var yc=[],zc=[],Ac=[],Bc=[],Cc=[],Dc=[],Ec=[],Fc=[],Jc=[];function Kc(e,k){return Math.round(e/k*1E4)}
function Lc(e,k,c,n){var h=0;switch(e){case 0:h=1*k/c+0;break;case 1:h=1*(k/=c)*k+0;break;case 2:h=-1*(k/=c)*(k-2)+0;break;case 3:h=1>(k/=c/2)?.5*k*k+0:-.5*(--k*(k-2)-1)+0;break;case 4:h=1*(k/=c)*k*k+0;break;case 5:h=1*((k=k/c-1)*k*k+1)+0;break;case 6:h=1>(k/=c/2)?.5*k*k*k+0:.5*((k-=2)*k*k+2)+0;break;case 7:h=1*(k/=c)*k*k*k+0;break;case 8:h=-1*((k=k/c-1)*k*k*k-1)+0;break;case 9:h=1>(k/=c/2)?.5*k*k*k*k+0:-.5*((k-=2)*k*k*k-2)+0;break;case 10:h=1*(k/=c)*k*k*k*k+0;break;case 11:h=1*((k=k/c-1)*k*k*k*k+
1)+0;break;case 12:h=1>(k/=c/2)?.5*k*k*k*k*k+0:.5*((k-=2)*k*k*k*k+2)+0;break;case 13:h=Cc[Kc(k,c)];break;case 14:h=Dc[Kc(k,c)];break;case 15:h=Ec[Kc(k,c)];break;case 16:e=0;0==e&&(e=1.70158);h=1*(k/=c)*k*((e+1)*k-e)+0;break;case 17:h=Fc[Kc(k,c)];break;case 18:h=Jc[Kc(k,c)];break;case 19:h=zc[Kc(k,c)];break;case 20:h=Ac[Kc(k,c)];break;case 21:h=Bc[Kc(k,c)];break;case 22:h=1-yc[Kc(c-k,c)]+0;break;case 23:h=yc[Kc(k,c)];break;case 24:h=k<c/2?.5*(1-yc[Kc(c-2*k,c)]+0)+0:.5*yc[Kc(2*k-c,c)]+.5;break;case 25:k=
k/c/2;h=2*k*k*(3-2*k);break;case 26:k=(k/c+1)/2;h=2*k*k*(3-2*k)-1;break;case 27:k=k/c,h=k*k*(3-2*k)}return n?1-h:h}
for(var Mc=0,Nc=0,Oc=0,X=0,Z=0,Pc=0;1E4>=Pc;Pc++){X=Pc/1E4;(X/=1)<1/2.75||(X<2/2.75?X-=1.5/2.75:X<2.5/2.75?X-=2.25/2.75:X-=2.625/2.75);var Qc,Rc=Pc/1E4;Qc=(Rc/=1)<1/2.75?7.5625*Rc*Rc+0:Rc<2/2.75?1*(7.5625*(Rc-=1.5/2.75)*Rc+.75)+0:Rc<2.5/2.75?1*(7.5625*(Rc-=2.25/2.75)*Rc+.9375)+0:1*(7.5625*(Rc-=2.625/2.75)*Rc+.984375)+0;yc[Pc]=Qc;X=Pc/1E4;Oc=Nc=0;X/=1;0==Oc&&(Oc=.3);0==Nc||Nc<Math.abs(1)?(Nc=1,Z=Oc/4):Z=Oc/(2*Math.PI)*Math.asin(1/Nc);Mc=-(Nc*Math.pow(2,10*--X)*Math.sin(2*(1*X-Z)*Math.PI/Oc))+0;zc[Pc]=
Mc;X=Pc/1E4;Oc=Nc=0;X/=1;0==Oc&&(Oc=.3);0==Nc||Nc<Math.abs(1)?(Nc=1,Z=Oc/4):Z=Oc/(2*Math.PI)*Math.asin(1/Nc);Mc=Nc*Math.pow(2,-10*X)*Math.sin(2*(1*X-Z)*Math.PI/Oc)+1;Ac[Pc]=Mc;X=Pc/1E4;Oc=Nc=0;X/=.5;0==Oc&&(Oc=.3*1.5);0==Nc||Nc<Math.abs(1)?(Nc=1,Z=Oc/4):Z=Oc/(2*Math.PI)*Math.asin(1/Nc);Mc=1>X?-.5*Nc*Math.pow(2,10*--X)*Math.sin(2*(1*X-Z)*Math.PI/Oc)+0:Nc*Math.pow(2,-10*--X)*Math.sin(2*(1*X-Z)*Math.PI/Oc)*.5+1;Bc[Pc]=Mc;X=Pc/1E4;Cc[Pc]=-(Math.sqrt(1-X*X)-1);X=Pc/1E4;Dc[Pc]=Math.sqrt(1-(X-1)*(X-1));
X=Pc/1E4;Mc=1>(X/=.5)?-.5*(Math.sqrt(1-X*X)-1)+0:.5*(Math.sqrt(1-(X-=2)*X)+1)+0;Ec[Pc]=Mc;X=Pc/1E4;Z=0;0==Z&&(Z=1.70158);Mc=1*((X=X/1-1)*X*((Z+1)*X+Z)+1)+0;Fc[Pc]=Mc;X=Pc/1E4;Z=0;0==Z&&(Z=1.70158);Mc=1>(X/=.5)?.5*X*X*(((Z*=1.525)+1)*X-Z)+0:.5*((X-=2)*X*(((Z*=1.525)+1)*X+Z)+2)+0;Jc[Pc]=Mc}
function Sc(e,k,c,n,h,t,r){this.name=e;this.value=0;this.Hg(n);this.Ak(h);this.dj=c;this.Ra=k;this.duration=t;this.state=this.R=0;this.Xj=this.Yj=this.Wj=this.zg=!1;this.yb=this.Fa=0;this.jc=r;this.he=1;this.jh=!1}Sc.prototype={};Sc.prototype.Hg=function(e){this.da=parseFloat(e.split(",")[0]);this.gb=parseFloat(e.split(",")[1]);this.yb=this.Fa=0};Sc.prototype.Ak=function(e){this.Z=parseFloat(e.split(",")[0]);this.Qa=parseFloat(e.split(",")[1]);isNaN(this.Qa)&&(this.Qa=this.Z)};
Sc.prototype.al=function(e){if(0===this.state)return-1;1===this.state&&(this.R+=e);2===this.state&&(this.R-=e);3===this.state&&(this.state=0);if(4===this.state||6===this.state)this.R+=e*this.he;5===this.state&&(this.R+=e*this.he);return 0>this.R?(this.R=0,4===this.state?this.he=1:6===this.state?(this.he=1,this.jh=!1):this.state=0,this.Xj=!0,0):this.R>this.duration?(this.R=this.duration,4===this.state?this.he=-1:6===this.state?(this.he=-1,this.jh=!0):5===this.state?this.R=0:this.state=0,this.Wj=!0,
1):this.jh?Lc(this.dj,this.duration-this.R,this.duration,this.jh):Lc(this.dj,this.R,this.duration,this.jh)};function Tc(e){this.b=e}
(function(){var e=Tc.prototype;e.Sa=function(c){this.behavior=c;this.b=c.b};e.Sa.prototype.ja=function(){};e.wa=function(c,e){this.type=c;this.behavior=c.behavior;this.d=e;this.b=c.b};var k=e.wa.prototype;k.ja=function(){this.jk=this.S[0];this.Ta=1==this.jk||2==this.jk||3==this.jk||4==this.jk;this.Ra=this.S[1];this.Zt=this.S[2];this.target=this.S[3];this.ir=this.S[4];this.Dr=!1;1===this.ir&&(this.target="relative("+this.target+")");this.duration=this.S[5];this.jc=1===this.S[6];this.value=0;this.C=
{};this.Eo(this.Ra,this.Zt,"current",this.target,this.duration,this.jc);1===this.S[0]&&this.ni(0);2===this.S[0]&&this.ni(2);3===this.S[0]&&this.ni(3);4===this.S[0]&&this.ni(4)};k.Id=function(c,e){void 0===e&&(e="current");var h=e.replace(/^\s\s*/,"").replace(/\s\s*$/,"");e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,"");var k=this.value;if("current"===e)switch(c){case 0:h=this.d.x+","+this.d.y;break;case 1:h=this.d.width+","+this.d.height;break;case 2:h=this.d.width+","+this.d.height;break;case 3:h=this.d.width+
","+this.d.height;break;case 4:h=Ja(this.d.j)+","+Ja(this.d.j);break;case 5:h=100*this.d.opacity+","+100*this.d.opacity;break;case 6:h=k+","+k;break;case 7:h=this.d.x+","+this.d.y;break;case 8:h=this.d.x+","+this.d.y;break;case 9:h=void 0!==this.d.Da?this.d.width/this.d.Da.width+","+this.d.height/this.d.Da.height:"1,1"}if("relative"===e.substring(0,8)){var r=e.match(/\((.*?)\)/);if(r)var a=parseFloat(r[1].split(",")[0]),d=parseFloat(r[1].split(",")[1]);isNaN(a)&&(a=0);isNaN(d)&&(d=0);switch(c){case 0:h=
this.d.x+a+","+(this.d.y+d);break;case 1:h=this.d.width+a+","+(this.d.height+d);break;case 2:h=this.d.width+a+","+(this.d.height+d);break;case 3:h=this.d.width+a+","+(this.d.height+d);break;case 4:h=Ja(this.d.j)+a+","+(Ja(this.d.j)+d);break;case 5:h=100*this.d.opacity+a+","+(100*this.d.opacity+d);break;case 6:h=k+a+","+k+a;break;case 7:h=this.d.x+a+","+this.d.y;break;case 8:h=this.d.x+","+(this.d.y+a);break;case 9:h=a+","+d}}return h};k.Eo=function(c,e,h,k,r,a){h=this.Id(c,h);k=this.Id(c,k);void 0!==
this.C["default"]&&delete this.C["default"];this.C["default"]=new Sc("default",c,e,h,k,r,a);this.C["default"].He=0};k.Rb=function(){};k.rc=function(){};k.Qw=function(c){1<c&&(c=1);0>c&&(c=0);for(var e in this.C){var h=this.C[e];h.Fa=0;h.yb=0;h.state=3;h.R=c*h.duration;var k=h.al(0);this.Qn(h,k)}};k.ni=function(c){for(var e in this.C){var h=this.C[e];if(this.Dr){var k=this.Id(h.Ra,"current"),r=this.Id(h.Ra,this.target);h.Hg(k);h.Ak(r)}0===c&&(h.R=1E-6,h.Fa=0,h.yb=0,h.zg=!0,h.state=1);1===c&&(h.state=
1);if(2===c||4===c)h.R=1E-6,h.Fa=0,h.yb=0,h.zg=!0,2==c&&(h.state=4),4==c&&(h.state=6);3===c&&(h.R=1E-6,h.Fa=0,h.yb=0,h.zg=!0,h.state=5)}};k.Xw=function(c){for(var e in this.C){var h=this.C[e];1===c&&(h.R=0);2===c&&(h.R=h.duration);h.state=3;var k=h.al(0);this.Qn(h,k)}};k.Ew=function(c){for(var e in this.C){var h=this.C[e];1===c&&(h.R=h.duration,h.Fa=0,h.yb=0,h.Yj=!0);h.state=2}};k.Qn=function(c,e){if(0===c.Ra)c.jc?(this.d.x=c.da+(c.Z-c.da)*e,this.d.y=c.gb+(c.Qa-c.gb)*e):(this.d.x+=(c.Z-c.da)*e-c.Fa,
this.d.y+=(c.Qa-c.gb)*e-c.yb,c.Fa=(c.Z-c.da)*e,c.yb=(c.Qa-c.gb)*e);else if(1===c.Ra)c.jc?(this.d.width=c.da+(c.Z-c.da)*e,this.d.height=c.gb+(c.Qa-c.gb)*e):(this.d.width+=(c.Z-c.da)*e-c.Fa,this.d.height+=(c.Qa-c.gb)*e-c.yb,c.Fa=(c.Z-c.da)*e,c.yb=(c.Qa-c.gb)*e);else if(2===c.Ra)c.jc?this.d.width=c.da+(c.Z-c.da)*e:(this.d.width+=(c.Z-c.da)*e-c.Fa,c.Fa=(c.Z-c.da)*e);else if(3===c.Ra)c.jc?this.d.height=c.gb+(c.Qa-c.gb)*e:(this.d.height+=(c.Qa-c.gb)*e-c.yb,c.yb=(c.Qa-c.gb)*e);else if(4===c.Ra)if(c.jc){var h=
c.da+(c.Z-c.da)*e;this.d.j=La(B(h))}else h=(c.Z-c.da)*e-c.Fa,this.d.j=La(this.d.j+B(h)),c.Fa=(c.Z-c.da)*e;else if(5===c.Ra)c.jc?this.d.opacity=(c.da+(c.Z-c.da)*e)/100:(this.d.opacity+=((c.Z-c.da)*e-c.Fa)/100,c.Fa=(c.Z-c.da)*e);else if(6===c.Ra)c.jc?this.value=c.da+(c.Z-c.da)*e:(this.value+=(c.Z-c.da)*e-c.Fa,c.Fa=(c.Z-c.da)*e);else if(7===c.Ra)c.jc?this.d.x=c.da+(c.Z-c.da)*e:(this.d.x+=(c.Z-c.da)*e-c.Fa,c.Fa=(c.Z-c.da)*e);else if(8===c.Ra)c.jc?this.d.y=c.gb+(c.Qa-c.gb)*e:(this.d.y+=(c.Qa-c.gb)*e-c.yb,
c.yb=(c.Qa-c.gb)*e);else if(9===c.Ra){var h=c.da+(c.Z-c.da)*e,k=c.gb+(c.Qa-c.gb)*e;0>this.d.width&&(h=c.da+(c.Z+c.da)*-e);0>this.d.height&&(k=c.gb+(c.Qa+c.gb)*-e);c.jc?(this.d.width=this.d.Da.width*h,this.d.height=this.d.Da.height*k):(0>this.d.width?(this.d.width=this.d.width/(-1+c.Fa)*h,c.Fa=h+1):(this.d.width=this.d.width/(1+c.Fa)*h,c.Fa=h-1),0>this.d.height?(this.d.height=this.d.height/(-1+c.yb)*k,c.yb=k+1):(this.d.height=this.d.height/(1+c.yb)*k,c.yb=k-1))}this.d.Aa()};k.bb=function(){var c=this.b.qj(this.d),
e=this.C["default"];0!==e.state&&(e.zg&&(this.b.trigger(Tc.prototype.e.oo,this.d),e.zg=!1),e.Yj&&(this.b.trigger(Tc.prototype.e.Gs,this.d),e.Yj=!1),this.Ta=1==e.state||2==e.state||4==e.state||5==e.state||6==e.state,c=e.al(c),this.Qn(e,c),e.Wj&&(this.b.trigger(Tc.prototype.e.eo,this.d),e.Wj=!1),e.Xj&&(this.b.trigger(Tc.prototype.e.Fs,this.d),e.Xj=!1))};e.e={};k=e.e;k.Ix=function(){return 0!==this.C["default"].state};k.Dx=function(c,e){var h=this.C["default"];return hc(h.R/h.duration,c,e)};k.oo=function(){return void 0===
this.C["default"]?!1:this.C["default"].zg};k.Gs=function(){return void 0===this.C["default"]?!1:this.C["default"].Yj};k.eo=function(){return void 0===this.C["default"]?!1:this.C["default"].Wj};k.Fs=function(){return void 0===this.C["default"]?!1:this.C["default"].Xj};e.G={};k=e.G;k.Xs=function(c,e){this.Dr=1==e;this.ni(c)};k.xo=function(c){this.Xw(c)};k.Ls=function(c){this.Ew(c)};k.Zx=function(c){this.Qw(c)};k.ey=function(c){isNaN(c)||0>c||void 0===this.C["default"]||(this.C["default"].duration=c)};
k.iy=function(c){void 0!==this.C["default"]&&(this.C["default"].jc=1===c)};k.ky=function(c){void 0!==this.C["default"]&&(c=this.Id(this.C["default"].Ra,c),this.C["default"].Hg(c))};k.oy=function(c,e,h){if(void 0!==this.C["default"]&&!isNaN(h)){var k=this.C["default"],r=h+"";this.ir=e;var a="",d="";if(1===e){this.target="relative("+r+")";switch(c){case 0:a=this.d.x+h;d=k.Qa;break;case 1:a=k.Z;d=this.d.y+h;break;case 2:d=a=""+Ja(this.d.j+B(h));break;case 3:d=a=""+100*this.d.opacity+h;break;case 4:a=
this.d.width+h;d=k.Qa;break;case 5:a=k.Z;d=this.d.height+h;break;case 6:d=a=h}r=a+","+d}else{switch(c){case 0:a=h;d=k.Qa;break;case 1:a=k.Z;d=h;break;case 2:d=a=h;break;case 3:d=a=h;break;case 4:a=h;d=k.Qa;break;case 5:a=k.Z;d=h;break;case 6:d=a=h}this.target=r=a+","+d}c=this.Id(this.C["default"].Ra,"current");r=this.Id(this.C["default"].Ra,r);k.Hg(c);k.Ak(r)}};k.ry=function(c){void 0!==this.C["default"]&&(this.C["default"].Ra=c)};k.fy=function(c){void 0!==this.C["default"]&&(this.C["default"].dj=
c)};k.ty=function(c){var e=this.C["default"];this.value=c;6===e.Ra&&e.Hg(this.Id(e.Ra,"current"))};k.Rs=function(c,e,h,k,r){if(void 0===this.C["default"])this.Eo(c,e,initial,h,k,r);else{var a=this.C["default"];a.Ra=c;a.dj=e;a.Hg(this.Id(c,"current"));a.Ak(this.Id(c,h));a.duration=k;a.jc=1===r}};e.V={};e=e.V;e.Yx=function(c){c.n(this.C["default"].R/this.C["default"].duration)};e.bs=function(c){c.n(this.C["default"].duration)};e.xy=function(c){var e=this.C["default"],h="N/A";switch(e.Ra){case 0:h=e.Z;
break;case 1:h=e.Qa;break;case 2:h=e.Z;break;case 3:h=e.Z;break;case 4:h=e.Z;break;case 5:h=e.Qa;break;case 6:h=e.Z}c.n(h)};e.zy=function(c){c.n(this.value)}})();function Uc(e){this.b=e;this.wn=this.Bk=this.li=this.vn=0}
(function(){function e(){}var k=Uc.prototype;k.Sa=function(c){this.behavior=c;this.b=c.b};k.Sa.prototype.ja=function(){};k.wa=function(c,e){this.type=c;this.behavior=c.behavior;this.d=e;this.b=c.b};var c=k.wa.prototype;c.ja=function(){this.enabled=0!==this.S[0]};c.Rb=function(){return{smg:this.behavior.vn,ss:this.behavior.li,se:this.behavior.Bk,smd:this.behavior.wn}};c.rc=function(c){this.behavior.vn=c.smg;this.behavior.li=c.ss;this.behavior.Bk=c.se;this.behavior.wn=c.smd};c.bb=function(){};c.Mk=
function(){if(this.enabled){var c=this.behavior.Ef.cd(),e=0,k=0,r,a,d,p=0;r=0;for(a=c.length;r<a;r++){a:{d=c[r];for(var b=void 0,g=void 0,v=void 0,b=0,g=d.B.length;b<g;++b)if(v=d.B[b],v.behavior instanceof Uc){d=v;break a}d=null}d&&d.enabled&&(e+=c[r].x,k+=c[r].y,++p)}c=this.d.k.kb;a=this.b.ib.T;d=r=0;a>=this.behavior.li&&a<this.behavior.Bk&&(r=this.behavior.vn*Math.min(this.b.Jf,1),0===this.behavior.wn&&(r*=1-(a-this.behavior.li)/(this.behavior.Bk-this.behavior.li)),a=Math.random()*Math.PI*2,d=Math.random()*
r,r=Math.cos(a)*d,d*=Math.sin(a));c.qn(e/p+r);c.rn(k/p+d)}};e.prototype.vo=function(c){this.enabled=0!==c};k.G=new e})();
function rc(){return[S,V,wc,sc,tc,uc,vc,xc,Tc,Uc,F.prototype.e.fo,F.prototype.G.Ts,S.prototype.V.Wr,sc.prototype.G.wo,sc.prototype.V.yo,F.prototype.e.ct,F.prototype.e.Tr,sc.prototype.e.Lr,sc.prototype.G.bl,sc.prototype.V.Zr,F.prototype.G.Ir,F.prototype.V.floor,F.prototype.V.random,F.prototype.G.Ys,sc.prototype.V.Mr,tc.prototype.e.ns,S.prototype.e.Vg,S.prototype.G.Ps,S.prototype.V.cl,S.prototype.V.dl,S.prototype.G.Us,S.prototype.G.Ws,xc.prototype.G.vo,F.prototype.e.Js,S.prototype.V.Kr,F.prototype.V["int"],
S.prototype.e.os,S.prototype.G.bl,Tc.prototype.G.Rs,Tc.prototype.G.Xs,S.prototype.G.ts,xc.prototype.e.co,F.prototype.e.Pr,tc.prototype.G.Play,F.prototype.G.bt,xc.prototype.e.ls,Tc.prototype.e.oo,Tc.prototype.e.eo,F.prototype.e.cs,F.prototype.e.$n,xc.prototype.e.bo,V.prototype.e.qo,S.prototype.e.Qr,F.prototype.G.ds,F.prototype.G.es,V.prototype.e.po,tc.prototype.G.xo,sc.prototype.G.Zn,F.prototype.V.hx,S.prototype.G.Zn,F.prototype.G.Xr,sc.prototype.e.Vr,sc.prototype.G.Vs,sc.prototype.V.$r,sc.prototype.G.as,
S.prototype.G.Ms,sc.prototype.V.Yr,S.prototype.G.Ns,V.prototype.V.Zs,S.prototype.V.$s,S.prototype.e.Sr,F.prototype.e.Is,F.prototype.V.Ov,S.prototype.G.Ss,S.prototype.V.Ks,V.prototype.V.Xn,S.prototype.e.ms,S.prototype.e.Rr,S.prototype.G.Os,S.prototype.e.js,F.prototype.e.qs,F.prototype.G.Qs]};
