// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ma,na,oa,pa,qa,v,sa,ta,va,wa,xa,ya,za,M,Aa,Ba,Ca,Da,Ea,R,Fa,Ga,Ha,Ja,Ka,La,Ma,Na,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,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={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(d){return d.__proto__}:function(d){return d.constructor.prototype});
(function(){function d(a,e,c,h){this.set(a,e,c,h)}function l(){this.Tb=this.Sb=this.Vb=this.Ub=this.ec=this.cc=this.Bb=this.Ab=0}function g(a,e,c,h){a<e?c<h?(F=a<c?a:c,K=e>h?e:h):(F=a<h?a:h,K=e>c?e:c):c<h?(F=e<c?e:c,K=a>h?a:h):(F=e<h?e:h,K=a>c?a:c)}function m(){this.items=this.eb=null;this.Ki=0;O&&(this.eb=new Set);this.Nh=[];this.df=!0}function k(a){A[B++]=a}function q(){this.I=this.nm=this.y=this.Xm=0}function b(a){this.mb=[];this.Yj=this.$j=this.ak=this.Zj=0;this.xj(a)}function a(a,e){this.an=
a;this.$m=e;this.cells={}}function f(a,e){this.an=a;this.$m=e;this.cells={}}function c(a,e,c){var h;return E.length?(h=E.pop(),h.Kn=a,h.x=e,h.y=c,h):new ba(a,e,c)}function e(a,e,c){this.Kn=a;this.x=e;this.y=c;this.Fb=new ca}function h(a,e,c){var h;return y.length?(h=y.pop(),h.Kn=a,h.x=e,h.y=c,h):new da(a,e,c)}function r(a,e,c){this.Kn=a;this.x=e;this.y=c;this.Fb=[];this.lh=!0;this.le=new ca;this.Rh=!1}function n(a,e){return a.Wd-e.Wd}ea=function(a){window.console&&window.console.log&&window.console.log(a)};
fa=function(a){window.console&&window.console.error&&window.console.error(a)};aa=function(a){return a};ga=function(a){return"undefined"===typeof a};ha=function(a){return"number"===typeof a};ia=function(a){return"string"===typeof a};ja=function(a){return 0<a&&0===(a-1&a)};ma=function(a){--a;for(var e=1;32>e;e<<=1)a=a|a>>e;return a+1};na=function(a){return 0>a?-a:a};oa=function(a,e){return a>e?a:e};pa=function(a,e){return a<e?a:e};qa=Math.PI;v=function(a){return 0<=a?a|0:(a|0)-1};sa=function(a){var e=
a|0;return e===a?e:e+1};ta=function(a,e,c,h,f,b,n,x){var w,C,r,d;a<c?(C=a,w=c):(C=c,w=a);f<n?(d=f,r=n):(d=n,r=f);if(w<d||C>r)return!1;e<h?(C=e,w=h):(C=h,w=e);b<x?(d=b,r=x):(d=x,r=b);if(w<d||C>r)return!1;w=f-a+n-c;C=b-e+x-h;a=c-a;e=h-e;f=n-f;b=x-b;x=na(e*f-b*a);return na(f*C-b*w)>x?!1:na(a*C-e*w)<=x};d.prototype.set=function(a,e,c,h){this.left=a;this.top=e;this.right=c;this.bottom=h};d.prototype.Ug=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};d.prototype.width=
function(){return this.right-this.left};d.prototype.height=function(){return this.bottom-this.top};d.prototype.offset=function(a,e){this.left+=a;this.top+=e;this.right+=a;this.bottom+=e;return this};d.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};d.prototype.Zn=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};d.prototype.$n=
function(a,e,c){return!(a.right+e<this.left||a.bottom+c<this.top||a.left+e>this.right||a.top+c>this.bottom)};d.prototype.Db=function(a,e){return a>=this.left&&a<=this.right&&e>=this.top&&e<=this.bottom};d.prototype.$h=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};va=d;l.prototype.Oe=function(a){this.Ab=a.left;this.Bb=a.top;this.cc=a.right;this.ec=a.top;this.Ub=a.right;this.Vb=a.bottom;this.Sb=a.left;this.Tb=a.bottom};l.prototype.Xs=function(a,
e){if(0===e)this.Oe(a);else{var c=Math.sin(e),h=Math.cos(e),f=a.left*c,b=a.top*c,n=a.right*c,c=a.bottom*c,x=a.left*h,w=a.top*h,C=a.right*h,h=a.bottom*h;this.Ab=x-b;this.Bb=w+f;this.cc=C-b;this.ec=w+n;this.Ub=C-c;this.Vb=h+n;this.Sb=x-c;this.Tb=h+f}};l.prototype.offset=function(a,e){this.Ab+=a;this.Bb+=e;this.cc+=a;this.ec+=e;this.Ub+=a;this.Vb+=e;this.Sb+=a;this.Tb+=e;return this};var F=0,K=0;l.prototype.mq=function(a){g(this.Ab,this.cc,this.Ub,this.Sb);a.left=F;a.right=K;g(this.Bb,this.ec,this.Vb,
this.Tb);a.top=F;a.bottom=K};l.prototype.Db=function(a,e){var c=this.Ab,h=this.Bb,f=this.cc-c,b=this.ec-h,n=this.Ub-c,x=this.Vb-h,w=a-c,C=e-h,r=f*f+b*b,d=f*n+b*x,b=f*w+b*C,p=n*n+x*x,k=n*w+x*C,t=1/(r*p-d*d),f=(p*b-d*k)*t,r=(r*k-d*b)*t;if(0<=f&&0<r&&1>f+r)return!0;f=this.Sb-c;b=this.Tb-h;r=f*f+b*b;d=f*n+b*x;b=f*w+b*C;t=1/(r*p-d*d);f=(p*b-d*k)*t;r=(r*k-d*b)*t;return 0<=f&&0<r&&1>f+r};l.prototype.ed=function(a,e){if(e)switch(a){case 0:return this.Ab;case 1:return this.cc;case 2:return this.Ub;case 3:return this.Sb;
case 4:return this.Ab;default:return this.Ab}else switch(a){case 0:return this.Bb;case 1:return this.ec;case 2:return this.Vb;case 3:return this.Tb;case 4:return this.Bb;default:return this.Bb}};l.prototype.Ur=function(){return(this.Ab+this.cc+this.Ub+this.Sb)/4};l.prototype.Vr=function(){return(this.Bb+this.ec+this.Vb+this.Tb)/4};l.prototype.si=function(a,e,c,h){if(this.Db(a,e)||this.Db(c,h))return!0;var f,b,n,x,w;for(w=0;4>w;w++)if(f=this.ed(w,!0),b=this.ed(w,!1),n=this.ed(w+1,!0),x=this.ed(w+1,
!1),ta(a,e,c,h,f,b,n,x))return!0;return!1};l.prototype.Yn=function(a){var e=a.Ur(),c=a.Vr();if(this.Db(e,c))return!0;e=this.Ur();c=this.Vr();if(a.Db(e,c))return!0;var h,f,b,n,x,w,r,d;for(r=0;4>r;r++)for(d=0;4>d;d++)if(e=this.ed(r,!0),c=this.ed(r,!1),h=this.ed(r+1,!0),f=this.ed(r+1,!1),b=a.ed(d,!0),n=a.ed(d,!1),x=a.ed(d+1,!0),w=a.ed(d+1,!1),ta(e,c,h,f,b,n,x,w))return!0;return!1};wa=l;xa=function(a,e){for(var c in e)e.hasOwnProperty(c)&&(a[c]=e[c]);return a};ya=function(a,e){var c,h;e=v(e);if(!(0>e||
e>=a.length)){c=e;for(h=a.length-1;c<h;c++)a[c]=a[c+1];za(a,h)}};za=function(a,e){a.length=e};M=function(a){za(a,0)};Aa=function(a,e){M(a);var c,h;c=0;for(h=e.length;c<h;++c)a[c]=e[c]};Ba=function(a,e){a.push.apply(a,e)};Ca=function(a,e){var c,h;c=0;for(h=a.length;c<h;++c)if(a[c]===e)return c;return-1};Da=function(a,e){var c=Ca(a,e);-1!==c&&ya(a,c)};Ea=function(a,e,c){return a<e?e:a>c?c:a};R=function(a){return a/(180/qa)};Fa=function(a){return 180/qa*a};Ga=function(a){a%=360;0>a&&(a+=360);return a};
Ha=function(a){a%=2*qa;0>a&&(a+=2*qa);return a};Ja=function(a){return Ga(Fa(a))};Ka=function(a){return Ha(R(a))};La=function(a,e,c,h){return Math.atan2(h-e,c-a)};Ma=function(a,e){if(a===e)return 0;var c=Math.sin(a),h=Math.cos(a),f=Math.sin(e),b=Math.cos(e),c=c*f+h*b;return 1<=c?0:-1>=c?qa:Math.acos(c)};Na=function(a,e,c){var h=Math.sin(a),f=Math.cos(a),b=Math.sin(e),n=Math.cos(e);return Math.acos(h*b+f*n)>c?0<f*b-h*n?Ha(a+c):Ha(a-c):Ha(e)};Qa=function(a,e){var c=Math.sin(a),h=Math.cos(a),f=Math.sin(e),
b=Math.cos(e);return 0>=h*f-c*b};Ra=function(a,e,c,h,f,b){if(0===c)return b?a:e;var n=Math.sin(c);c=Math.cos(c);a-=h;e-=f;var x=a*n;a=a*c-e*n;e=e*c+x;return b?a+h:e+f};Sa=function(a,e,c,h){a=c-a;e=h-e;return Math.sqrt(a*a+e*e)};Ta=function(a,e){return!a!==!e};Ua=function(a){for(var e in a)if(a.hasOwnProperty(e))return!0;return!1};Va=function(a){for(var e in a)a.hasOwnProperty(e)&&delete a[e]};var z=+new Date;Wa=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==
typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-z};var p=!1,t=p=!1,N=!1;"undefined"!==typeof window&&(p=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),p=!p&&/safari/i.test(navigator.userAgent),t=/(iphone|ipod|ipad)/i.test(navigator.userAgent),N=window.c2ejecta);var O=!p&&!N&&!t&&"undefined"!==typeof Set&&"undefined"!==
typeof Set.prototype.forEach;m.prototype.contains=function(a){return this.Ce()?!1:O?this.eb.has(a):this.items&&this.items.hasOwnProperty(a)};m.prototype.add=function(a){if(O)this.eb.has(a)||(this.eb.add(a),this.df=!1);else{var e=a.toString(),c=this.items;c?c.hasOwnProperty(e)||(c[e]=a,this.Ki++,this.df=!1):(this.items={},this.items[e]=a,this.Ki=1,this.df=!1)}};m.prototype.remove=function(a){if(!this.Ce())if(O)this.eb.has(a)&&(this.eb["delete"](a),this.df=!1);else if(this.items){a=a.toString();var e=
this.items;e.hasOwnProperty(a)&&(delete e[a],this.Ki--,this.df=!1)}};m.prototype.clear=function(){this.Ce()||(O?this.eb.clear():(this.items=null,this.Ki=0),M(this.Nh),this.df=!0)};m.prototype.Ce=function(){return 0===this.count()};m.prototype.count=function(){return O?this.eb.size:this.Ki};var A=null,B=0;m.prototype.Gz=function(){if(!this.df){if(O)M(this.Nh),A=this.Nh,B=0,this.eb.forEach(k),A=null,B=0;else{var a=this.Nh;M(a);var e,c=0,h=this.items;if(h)for(e in h)h.hasOwnProperty(e)&&(a[c++]=h[e])}this.df=
!0}};m.prototype.wd=function(){this.Gz();return this.Nh};ca=m;new ca;Xa=function(a,e){O?Ya(a,e.eb):db(a,e.wd())};Ya=function(a,e){var c,h,f,b;h=c=0;for(f=a.length;c<f;++c)b=a[c],e.has(b)||(a[h++]=b);za(a,h)};db=function(a,e){var c,h,f,b;h=c=0;for(f=a.length;c<f;++c)b=a[c],-1===Ca(e,b)&&(a[h++]=b);za(a,h)};q.prototype.add=function(a){this.y=a-this.Xm;this.nm=this.I+this.y;this.Xm=this.nm-this.I-this.y;this.I=this.nm};q.prototype.reset=function(){this.I=this.nm=this.y=this.Xm=0};eb=q;fb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,
"\\$&")};b.prototype.xj=function(a){this.Fs=a;this.od=a.length/2;this.mb.length=a.length;this.dk=this.ek=-1;this.pq=0};b.prototype.qf=function(){return!this.Fs.length};b.prototype.Ba=function(){for(var a=this.mb,e=a[0],c=e,h=a[1],f=h,b,n,x=1,w=this.od;x<w;++x)n=2*x,b=a[n],n=a[n+1],b<e&&(e=b),b>c&&(c=b),n<h&&(h=n),n>f&&(f=n);this.Zj=e;this.$j=c;this.ak=h;this.Yj=f};b.prototype.Oe=function(a,e,c){this.mb.length=8;this.od=4;var h=this.mb;h[0]=a.left-e;h[1]=a.top-c;h[2]=a.right-e;h[3]=a.top-c;h[4]=a.right-
e;h[5]=a.bottom-c;h[6]=a.left-e;h[7]=a.bottom-c;this.ek=a.right-a.left;this.dk=a.bottom-a.top;this.Ba()};b.prototype.Gg=function(a,e,c,h,f){this.mb.length=8;this.od=4;var b=this.mb;b[0]=a.Ab-e;b[1]=a.Bb-c;b[2]=a.cc-e;b[3]=a.ec-c;b[4]=a.Ub-e;b[5]=a.Vb-c;b[6]=a.Sb-e;b[7]=a.Tb-c;this.ek=h;this.dk=f;this.Ba()};b.prototype.Ws=function(a){this.od=a.od;Aa(this.mb,a.mb);this.Zj=a.Zj;this.ak-a.ak;this.$j=a.$j;this.Yj=a.Yj};b.prototype.cf=function(a,e,c){if(this.ek!==a||this.dk!==e||this.pq!==c){this.ek=a;
this.dk=e;this.pq=c;var h,f,b,n,x,w=0,r=1,d=this.Fs,p=this.mb;0!==c&&(w=Math.sin(c),r=Math.cos(c));c=0;for(b=this.od;c<b;c++)h=2*c,f=h+1,n=d[h]*a,x=d[f]*e,p[h]=n*r-x*w,p[f]=x*r+n*w;this.Ba()}};b.prototype.Db=function(a,e){var c=this.mb;if(a===c[0]&&e===c[1])return!0;var h,f,b,n=this.od,x=this.Zj-110,w=this.ak-101,r=this.$j+131,d=this.Yj+120,p,k,t=0,F=0;for(h=0;h<n;h++)f=2*h,b=(h+1)%n*2,p=c[f],f=c[f+1],k=c[b],b=c[b+1],ta(x,w,a,e,p,f,k,b)&&t++,ta(r,d,a,e,p,f,k,b)&&F++;return 1===t%2||1===F%2};b.prototype.kg=
function(a,e,c){var h=a.mb,f=this.mb;if(this.Db(h[0]+e,h[1]+c)||a.Db(f[0]-e,f[1]-c))return!0;var b,n,x,w,r,d,p,k,t,F,l,g;b=0;for(w=this.od;b<w;b++)for(n=2*b,x=(b+1)%w*2,k=f[n],n=f[n+1],t=f[x],F=f[x+1],x=0,p=a.od;x<p;x++)if(r=2*x,d=(x+1)%p*2,l=h[r]+e,r=h[r+1]+c,g=h[d]+e,d=h[d+1]+c,ta(k,n,t,F,l,r,g,d))return!0;return!1};b.prototype.si=function(a,e,c,h,f,b){var n=this.mb;if(this.Db(c-a,h-e))return!0;var x,w,r,d,p,k;x=0;for(w=this.od;x<w;x++)if(r=2*x,d=(x+1)%w*2,p=n[r]+a,r=n[r+1]+e,k=n[d]+a,d=n[d+1]+
e,ta(c,h,f,b,p,r,k,d))return!0;return!1};gb=b;a.prototype.mf=function(a,e,h){var f;f=this.cells[a];return f?(f=f[e])?f:h?(f=c(this,a,e),this.cells[a][e]=f):null:h?(f=c(this,a,e),this.cells[a]={},this.cells[a][e]=f):null};a.prototype.lc=function(a){return v(a/this.an)};a.prototype.mc=function(a){return v(a/this.$m)};a.prototype.update=function(a,e,c){var h,f,b,n,x;if(e)for(h=e.left,f=e.right;h<=f;++h)for(b=e.top,n=e.bottom;b<=n;++b)if(!c||!c.Db(h,b))if(x=this.mf(h,b,!1))x.remove(a),x.Ce()&&(x.Fb.clear(),
1E3>E.length&&E.push(x),this.cells[h][b]=null);if(c)for(h=c.left,f=c.right;h<=f;++h)for(b=c.top,n=c.bottom;b<=n;++b)e&&e.Db(h,b)||this.mf(h,b,!0).Wn(a)};a.prototype.Ml=function(a,e){var c,h,f,b,n,x;c=this.lc(a.left);f=this.mc(a.top);h=this.lc(a.right);for(n=this.mc(a.bottom);c<=h;++c)for(b=f;b<=n;++b)(x=this.mf(c,b,!1))&&x.dump(e)};hb=a;f.prototype.mf=function(a,e,c){var f;f=this.cells[a];return f?(f=f[e])?f:c?(f=h(this,a,e),this.cells[a][e]=f):null:c?(f=h(this,a,e),this.cells[a]={},this.cells[a][e]=
f):null};f.prototype.lc=function(a){return v(a/this.an)};f.prototype.mc=function(a){return v(a/this.$m)};f.prototype.update=function(a,e,c){var h,f,b,n,x;if(e)for(h=e.left,f=e.right;h<=f;++h)for(b=e.top,n=e.bottom;b<=n;++b)if(!c||!c.Db(h,b))if(x=this.mf(h,b,!1))x.remove(a),x.Ce()&&(x.reset(),1E3>y.length&&y.push(x),this.cells[h][b]=null);if(c)for(h=c.left,f=c.right;h<=f;++h)for(b=c.top,n=c.bottom;b<=n;++b)e&&e.Db(h,b)||this.mf(h,b,!0).Wn(a)};f.prototype.Ml=function(a,e,c,h,f){var b,n;a=this.lc(a);
e=this.mc(e);c=this.lc(c);for(b=this.mc(h);a<=c;++a)for(h=e;h<=b;++h)(n=this.mf(a,h,!1))&&n.dump(f)};f.prototype.ny=function(a){var e,c,h,f,b;e=a.left;h=a.top;c=a.right;for(f=a.bottom;e<=c;++e)for(a=h;a<=f;++a)if(b=this.mf(e,a,!1))b.lh=!1};ib=f;var E=[];e.prototype.Ce=function(){return this.Fb.Ce()};e.prototype.Wn=function(a){this.Fb.add(a)};e.prototype.remove=function(a){this.Fb.remove(a)};e.prototype.dump=function(a){Ba(a,this.Fb.wd())};ba=e;var y=[];r.prototype.Ce=function(){if(!this.Fb.length)return!0;
if(this.Fb.length>this.le.count())return!1;this.xn();return!0};r.prototype.Wn=function(a){this.le.contains(a)?(this.le.remove(a),this.le.Ce()&&(this.Rh=!1)):this.Fb.length?(this.Fb[this.Fb.length-1].fe()>a.fe()&&(this.lh=!1),this.Fb.push(a)):(this.Fb.push(a),this.lh=!0)};r.prototype.remove=function(a){this.le.add(a);this.Rh=!0;30<=this.le.count()&&this.xn()};r.prototype.xn=function(){this.Rh&&(this.le.count()===this.Fb.length?this.reset():(Xa(this.Fb,this.le),this.le.clear(),this.Rh=!1))};r.prototype.kw=
function(){this.lh||(this.Fb.sort(n),this.lh=!0)};r.prototype.reset=function(){M(this.Fb);this.lh=!0;this.le.clear();this.Rh=!1};r.prototype.dump=function(a){this.xn();this.kw();this.Fb.length&&a.push(this.Fb)};da=r;var u="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");jb=function(a){return 0>=a||11<=a?"source-over":u[a-1]};kb=function(a,e,c){if(c)switch(a.$b=c.ONE,a.Wb=c.ONE_MINUS_SRC_ALPHA,e){case 1:a.$b=c.ONE;a.Wb=
c.ONE;break;case 3:a.$b=c.ONE;a.Wb=c.ZERO;break;case 4:a.$b=c.ONE_MINUS_DST_ALPHA;a.Wb=c.ONE;break;case 5:a.$b=c.DST_ALPHA;a.Wb=c.ZERO;break;case 6:a.$b=c.ZERO;a.Wb=c.SRC_ALPHA;break;case 7:a.$b=c.ONE_MINUS_DST_ALPHA;a.Wb=c.ZERO;break;case 8:a.$b=c.ZERO;a.Wb=c.ONE_MINUS_SRC_ALPHA;break;case 9:a.$b=c.DST_ALPHA;a.Wb=c.ONE_MINUS_SRC_ALPHA;break;case 10:a.$b=c.ONE_MINUS_DST_ALPHA,a.Wb=c.SRC_ALPHA}};lb=function(a){return Math.round(1E6*a)/1E6};mb=function(a,e){return"string"!==typeof a||"string"!==typeof e||
a.length!==e.length?!1:a===e?!0:a.toLowerCase()===e.toLowerCase()};nb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||mb(a.tagName,"canvas")?!0:!1}})();var gc="undefined"!==typeof Float32Array?Float32Array:Array;function hc(d){var l=new gc(3);d&&(l[0]=d[0],l[1]=d[1],l[2]=d[2]);return l}
function ic(d){var l=new gc(16);d&&(l[0]=d[0],l[1]=d[1],l[2]=d[2],l[3]=d[3],l[4]=d[4],l[5]=d[5],l[6]=d[6],l[7]=d[7],l[8]=d[8],l[9]=d[9],l[10]=d[10],l[11]=d[11],l[12]=d[12],l[13]=d[13],l[14]=d[14],l[15]=d[15]);return l}function jc(d,l){l[0]=d[0];l[1]=d[1];l[2]=d[2];l[3]=d[3];l[4]=d[4];l[5]=d[5];l[6]=d[6];l[7]=d[7];l[8]=d[8];l[9]=d[9];l[10]=d[10];l[11]=d[11];l[12]=d[12];l[13]=d[13];l[14]=d[14];l[15]=d[15]}
function kc(d,l){var g=l[0],m=l[1];l=l[2];d[0]*=g;d[1]*=g;d[2]*=g;d[3]*=g;d[4]*=m;d[5]*=m;d[6]*=m;d[7]*=m;d[8]*=l;d[9]*=l;d[10]*=l;d[11]*=l}
function lc(d,l,g,m){m||(m=ic());var k,q,b,a,f,c,e,h,r=d[0],n=d[1];d=d[2];q=g[0];b=g[1];k=g[2];g=l[1];c=l[2];r===l[0]&&n===g&&d===c?(d=m,d[0]=1,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=1,d[6]=0,d[7]=0,d[8]=0,d[9]=0,d[10]=1,d[11]=0,d[12]=0,d[13]=0,d[14]=0,d[15]=1):(g=r-l[0],c=n-l[1],e=d-l[2],h=1/Math.sqrt(g*g+c*c+e*e),g*=h,c*=h,e*=h,l=b*e-k*c,k=k*g-q*e,q=q*c-b*g,(h=Math.sqrt(l*l+k*k+q*q))?(h=1/h,l*=h,k*=h,q*=h):q=k=l=0,b=c*q-e*k,a=e*l-g*q,f=g*k-c*l,(h=Math.sqrt(b*b+a*a+f*f))?(h=1/h,b*=h,a*=h,f*=h):f=a=b=0,
m[0]=l,m[1]=b,m[2]=g,m[3]=0,m[4]=k,m[5]=a,m[6]=c,m[7]=0,m[8]=q,m[9]=f,m[10]=e,m[11]=0,m[12]=-(l*r+k*n+q*d),m[13]=-(b*r+a*n+f*d),m[14]=-(g*r+c*n+e*d),m[15]=1)}
(function(){function d(a,f,c){this.De=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ka=!!c;this.Xk=this.wi=!1;this.ln=0;this.Jm=1;this.Kp=1E3;this.Lz=(this.Kp-this.Jm)/32768;this.Ym=hc([0,0,100]);this.Fr=hc([0,0,0]);this.At=hc([0,1,0]);this.Nj=hc([1,1,1]);this.Fq=!0;this.sl=ic();this.Vc=ic();this.ko=ic();this.kn=ic();this.F=a;this.version=0===this.F.getParameter(this.F.VERSION).indexOf("WebGL 2")?2:1;this.cr()}function l(a,f,c){this.F=a;this.yj=
f;this.name=c;this.ld=a.getAttribLocation(f,"aPos");this.wf=a.getAttribLocation(f,"aTex");this.Dr=a.getUniformLocation(f,"matP");this.nl=a.getUniformLocation(f,"matMV");this.uh=a.getUniformLocation(f,"opacity");this.vo=a.getUniformLocation(f,"colorFill");this.Er=a.getUniformLocation(f,"samplerFront");this.Xi=a.getUniformLocation(f,"samplerBack");this.tg=a.getUniformLocation(f,"destStart");this.sg=a.getUniformLocation(f,"destEnd");this.Zi=a.getUniformLocation(f,"seconds");this.xo=a.getUniformLocation(f,
"pixelWidth");this.wo=a.getUniformLocation(f,"pixelHeight");this.Wi=a.getUniformLocation(f,"layerScale");this.Vi=a.getUniformLocation(f,"layerAngle");this.$i=a.getUniformLocation(f,"viewOrigin");this.Yi=a.getUniformLocation(f,"scrollPos");this.Mx=!!(this.xo||this.wo||this.Zi||this.Xi||this.tg||this.sg||this.Wi||this.Vi||this.$i||this.Yi);this.Nr=this.Or=-999;this.rl=1;this.Jr=this.Ir=0;this.Lr=this.Hr=this.Gr=1;this.Rr=this.Qr=this.Pr=this.Tr=this.Sr=this.Kr=0;this.jo=[];this.Mr=ic();this.uh&&a.uniform1f(this.uh,
1);this.vo&&a.uniform4f(this.vo,1,1,1,1);this.Er&&a.uniform1i(this.Er,0);this.Xi&&a.uniform1i(this.Xi,1);this.tg&&a.uniform2f(this.tg,0,0);this.sg&&a.uniform2f(this.sg,1,1);this.Wi&&a.uniform1f(this.Wi,1);this.Vi&&a.uniform1f(this.Vi,0);this.$i&&a.uniform2f(this.$i,0,0);this.Yi&&a.uniform2f(this.Yi,0,0);this.Zi&&a.uniform1f(this.Zi,0);this.fg=!1}function g(a,f){return a[0]===f[0]&&a[1]===f[1]&&a[2]===f[2]&&a[3]===f[3]&&a[4]===f[4]&&a[5]===f[5]&&a[6]===f[6]&&a[7]===f[7]&&a[8]===f[8]&&a[9]===f[9]&&
a[10]===f[10]&&a[11]===f[11]&&a[12]===f[12]&&a[13]===f[13]&&a[14]===f[14]&&a[15]===f[15]}function m(a,f){this.type=a;this.C=f;this.F=f.F;this.jd=this.ac=this.os=0;this.fa=this.ud=null;this.Ys=[]}var k=ic();d.prototype.cr=function(){var a=this.F,f;this.tr=1;this.pg=this.sf=null;this.nk=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.Ka?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.ur=a.ONE;this.sr=a.ONE_MINUS_SRC_ALPHA;this.Fm=new Float32Array(8E3*(this.Ka?3:2));this.pm=new Float32Array(16E3);this.Qo=new Float32Array(32E3);this.Po=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Po);a.bufferData(a.ARRAY_BUFFER,this.Qo.byteLength,a.DYNAMIC_DRAW);this.Lj=Array(4);this.Dj=Array(4);for(f=0;4>f;f++)this.Lj[f]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Lj[f]),a.bufferData(a.ARRAY_BUFFER,this.Fm.byteLength,a.DYNAMIC_DRAW),this.Dj[f]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.Dj[f]),a.bufferData(a.ARRAY_BUFFER,this.pm.byteLength,a.DYNAMIC_DRAW);this.ue=0;this.Qx=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Qx);for(var c=new Uint16Array(12E3),e=f=0;12E3>f;)c[f++]=e,c[f++]=e+1,c[f++]=e+2,c[f++]=e,c[f++]=e+2,c[f++]=e+3,e+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,c,a.STATIC_DRAW);this.Ch=this.Lh=this.Ue=0;this.Za=[];f=this.Ka?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";c=this.Wh({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}"},f,"<default>");this.Za.push(c);c=this.Wh({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.Za.push(c);c=this.Wh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},f,"<earlyz>");this.Za.push(c);c=this.Wh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
f,"<fill>");this.Za.push(c);for(var h in mc)mc.hasOwnProperty(h)&&this.Za.push(this.Wh(mc[h],f,h));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.te=[];this.$d=0;this.Yb=this.Mb=!1;this.zq=this.Mi=-1;this.Wg=null;this.wn=a.createFramebuffer();this.tk=this.Ol=null;this.kq=!1;this.Ka&&(this.tk=a.createRenderbuffer());this.Jf=hc([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.ty=a[0];this.Bo=a[1];2048<this.Bo&&(this.Bo=2048);this.Ac(0)};l.prototype.Bp=function(a){g(this.Mr,
a)||(jc(a,this.Mr),this.F.uniformMatrix4fv(this.nl,!1,a))};d.prototype.Wh=function(a,f,c){var e=this.F,h=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(h,a.src);e.compileShader(h);if(!e.getShaderParameter(h,e.COMPILE_STATUS))return e.deleteShader(h),null;var b=e.createShader(e.VERTEX_SHADER);e.shaderSource(b,f);e.compileShader(b);if(!e.getShaderParameter(b,e.COMPILE_STATUS))return e.deleteShader(h),e.deleteShader(b),null;f=e.createProgram();e.attachShader(f,h);e.attachShader(f,b);e.linkProgram(f);
if(!e.getProgramParameter(f,e.LINK_STATUS))return e.deleteShader(h),e.deleteShader(b),e.deleteProgram(f),null;e.useProgram(f);e.deleteShader(h);e.deleteShader(b);c=new l(e,f,c);c.bi=a.bi||0;c.ci=a.ci||0;c.kk=!!a.kk;c.Zc=!!a.Zc;c.Uj=!!a.Uj;c.ca=a.ca||[];a=0;for(h=c.ca.length;a<h;a++)c.ca[a][1]=e.getUniformLocation(f,c.ca[a][0]),c.jo.push(0),e.uniform1f(c.ca[a][1],0);return c};d.prototype.Hn=function(a){var f,c;f=0;for(c=this.Za.length;f<c;f++)if(this.Za[f].name===a)return f;return-1};d.prototype.Es=
function(a,f,c){var e=this.Vc,h=this.sl,b=[0,0,0,0,0,0,0,0];b[0]=e[0]*a+e[4]*f+e[12];b[1]=e[1]*a+e[5]*f+e[13];b[2]=e[2]*a+e[6]*f+e[14];b[3]=e[3]*a+e[7]*f+e[15];b[4]=h[0]*b[0]+h[4]*b[1]+h[8]*b[2]+h[12]*b[3];b[5]=h[1]*b[0]+h[5]*b[1]+h[9]*b[2]+h[13]*b[3];b[6]=h[2]*b[0]+h[6]*b[1]+h[10]*b[2]+h[14]*b[3];b[7]=-b[2];0!==b[7]&&(b[7]=1/b[7],b[4]*=b[7],b[5]*=b[7],b[6]*=b[7],c[0]=(.5*b[4]+.5)*this.width,c[1]=(.5*b[5]+.5)*this.height)};d.prototype.Eg=function(a,b,c){if(this.width!==a||this.height!==b||c){this.we();
c=this.F;this.width=a;this.height=b;c.viewport(0,0,a,b);lc(this.Ym,this.Fr,this.At,this.Vc);if(this.Ka){var e=-a/2;a=a/2;var h=b/2;b=-b/2;var d=this.Jm,n=this.Kp,k=this.sl;k||(k=ic());var l=a-e,g=b-h,p=n-d;k[0]=2/l;k[1]=0;k[2]=0;k[3]=0;k[4]=0;k[5]=2/g;k[6]=0;k[7]=0;k[8]=0;k[9]=0;k[10]=-2/p;k[11]=0;k[12]=-(e+a)/l;k[13]=-(b+h)/g;k[14]=-(n+d)/p;k[15]=1;this.Nj[0]=1;this.Nj[1]=1}else b=a/b,e=this.Jm,a=this.Kp,k=this.sl,n=e*Math.tan(45*Math.PI/360),b*=n,h=-b,d=-n,k||(k=ic()),l=b-h,g=n-d,p=a-e,k[0]=2*e/
l,k[1]=0,k[2]=0,k[3]=0,k[4]=0,k[5]=2*e/g,k[6]=0,k[7]=0,k[8]=(b+h)/l,k[9]=(n+d)/g,k[10]=-(a+e)/p,k[11]=-1,k[12]=0,k[13]=0,k[14]=-(a*e*2)/p,k[15]=0,e=[0,0],a=[0,0],this.Es(0,0,e),this.Es(1,1,a),this.Nj[0]=1/(a[0]-e[0]),this.Nj[1]=-1/(a[1]-e[1]);e=0;for(a=this.Za.length;e<a;e++)h=this.Za[e],h.fg=!1,h.Dr&&(c.useProgram(h.yj),c.uniformMatrix4fv(h.Dr,!1,this.sl));c.useProgram(this.Za[this.Mi].yj);c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE0);
this.pg=this.sf=null;this.tk&&(c.bindFramebuffer(c.FRAMEBUFFER,this.wn),c.bindRenderbuffer(c.RENDERBUFFER,this.tk),c.renderbufferStorage(c.RENDERBUFFER,c.DEPTH_COMPONENT16,this.width,this.height),this.kq||(c.framebufferRenderbuffer(c.FRAMEBUFFER,c.DEPTH_ATTACHMENT,c.RENDERBUFFER,this.tk),this.kq=!0),c.bindRenderbuffer(c.RENDERBUFFER,null),c.bindFramebuffer(c.FRAMEBUFFER,null),this.Ol=null)}};d.prototype.pd=function(){lc(this.Ym,this.Fr,this.At,this.Vc);kc(this.Vc,this.Nj)};d.prototype.translate=function(a,
b){if(0!==a||0!==b){this.Jf[0]=a;this.Jf[1]=b;this.Jf[2]=0;var c=this.Vc,e=this.Jf,h=e[0],d=e[1],e=e[2];c[12]=c[0]*h+c[4]*d+c[8]*e+c[12];c[13]=c[1]*h+c[5]*d+c[9]*e+c[13];c[14]=c[2]*h+c[6]*d+c[10]*e+c[14];c[15]=c[3]*h+c[7]*d+c[11]*e+c[15]}};d.prototype.scale=function(a,b){if(1!==a||1!==b)this.Jf[0]=a,this.Jf[1]=b,this.Jf[2]=1,kc(this.Vc,this.Jf)};d.prototype.Rl=function(a){if(0!==a){var b=this.Vc,c,e=Math.sin(a);a=Math.cos(a);var h=b[0],d=b[1],n=b[2],k=b[3],l=b[4],g=b[5],p=b[6],t=b[7];c?b!==c&&(c[8]=
b[8],c[9]=b[9],c[10]=b[10],c[11]=b[11],c[12]=b[12],c[13]=b[13],c[14]=b[14],c[15]=b[15]):c=b;c[0]=h*a+l*e;c[1]=d*a+g*e;c[2]=n*a+p*e;c[3]=k*a+t*e;c[4]=h*-e+l*a;c[5]=d*-e+g*a;c[6]=n*-e+p*a;c[7]=k*-e+t*a}};d.prototype.ad=function(){if(!g(this.ko,this.Vc)){var a=this.wc();a.type=5;a.fa?jc(this.Vc,a.fa):a.fa=ic(this.Vc);jc(this.Vc,this.ko);this.Yb=this.Mb=!1}};d.prototype.Wl=function(a){this.Ka&&(32760<a&&(a=32760),this.ln=this.Ym[2]-this.Jm-a*this.Lz)};m.prototype.Uv=function(){var a=this.F,b=this.C;0!==
this.ac?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,b.wn),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),b.Xk=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),b.Xk=!1)};m.prototype.Yv=function(){this.F.bindTexture(this.F.TEXTURE_2D,this.ud)};m.prototype.Zv=function(){var a=this.F;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.ud);
a.activeTexture(a.TEXTURE0)};m.prototype.Vv=function(){var a=this.os,b=this.C;b.nk=a;b=b.Wg;b.uh&&b.rl!==a&&(b.rl=a,this.F.uniform1f(b.uh,a))};m.prototype.Pv=function(){this.F.drawElements(this.F.TRIANGLES,this.jd,this.F.UNSIGNED_SHORT,this.ac)};m.prototype.Rv=function(){this.F.blendFunc(this.ac,this.jd)};m.prototype.aw=function(){var a,b,c,e=this.C.Za,h=this.C.zq;a=0;for(b=e.length;a<b;a++)c=e[a],a===h&&c.nl?(c.Bp(this.fa),c.fg=!0):c.fg=!1;jc(this.fa,this.C.kn)};m.prototype.Qv=function(){var a=this.F,
b=this.C;this.ud?(b.pg===this.ud&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),b.pg=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,b.wn),b.Xk||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.ud,0)):(b.Ka||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};m.prototype.Mv=function(){var a=this.F,b=this.ac;0===b?(a.clearColor(this.fa[0],this.fa[1],this.fa[2],this.fa[3]),a.clear(a.COLOR_BUFFER_BIT)):
1===b?(a.enable(a.SCISSOR_TEST),a.scissor(this.fa[0],this.fa[1],this.fa[2],this.fa[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};m.prototype.Tv=function(){var a=this.F;0!==this.ac?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};m.prototype.Ov=function(){var a=this.F,b=this.C;b.Ka&&a.disable(a.DEPTH_TEST);var c=b.Za[1];a.useProgram(c.yj);!c.fg&&c.nl&&(c.Bp(b.kn),c.fg=!0);a.enableVertexAttribArray(c.ld);a.bindBuffer(a.ARRAY_BUFFER,b.Po);
a.vertexAttribPointer(c.ld,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.ac/4,this.jd);c=b.Wg;a.useProgram(c.yj);0<=c.ld&&(a.enableVertexAttribArray(c.ld),a.bindBuffer(a.ARRAY_BUFFER,b.Lj[b.ue]),a.vertexAttribPointer(c.ld,b.Ka?3:2,a.FLOAT,!1,0,0));0<=c.wf&&(a.enableVertexAttribArray(c.wf),a.bindBuffer(a.ARRAY_BUFFER,b.Dj[b.ue]),a.vertexAttribPointer(c.wf,2,a.FLOAT,!1,0,0));b.Ka&&a.enable(a.DEPTH_TEST)};m.prototype.Wv=function(){var a=this.F,b=this.C,c=b.Za[this.ac];b.zq=this.ac;b.Wg=c;a.useProgram(c.yj);
!c.fg&&c.nl&&(c.Bp(b.kn),c.fg=!0);c.uh&&c.rl!==b.nk&&(c.rl=b.nk,a.uniform1f(c.uh,b.nk));0<=c.ld&&(a.enableVertexAttribArray(c.ld),a.bindBuffer(a.ARRAY_BUFFER,b.Lj[b.ue]),a.vertexAttribPointer(c.ld,b.Ka?3:2,a.FLOAT,!1,0,0));0<=c.wf&&(a.enableVertexAttribArray(c.wf),a.bindBuffer(a.ARRAY_BUFFER,b.Dj[b.ue]),a.vertexAttribPointer(c.wf,2,a.FLOAT,!1,0,0))};m.prototype.Sv=function(){var a=this.fa;this.F.uniform4f(this.C.Wg.vo,a[0],a[1],a[2],a[3])};m.prototype.Xv=function(){var a,b,c=this.C.Wg,e=this.F;a=
this.fa;c.Xi&&this.C.pg!==this.ud&&(e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,this.ud),this.C.pg=this.ud,e.activeTexture(e.TEXTURE0));var h=a[0];c.xo&&h!==c.Or&&(c.Or=h,e.uniform1f(c.xo,h));h=a[1];c.wo&&h!==c.Nr&&(c.Nr=h,e.uniform1f(c.wo,h));h=a[2];b=a[3];!c.tg||h===c.Ir&&b===c.Jr||(c.Ir=h,c.Jr=b,e.uniform2f(c.tg,h,b));h=a[4];b=a[5];!c.sg||h===c.Gr&&b===c.Hr||(c.Gr=h,c.Hr=b,e.uniform2f(c.sg,h,b));h=a[6];c.Wi&&h!==c.Lr&&(c.Lr=h,e.uniform1f(c.Wi,h));h=a[7];c.Vi&&h!==c.Kr&&(c.Kr=h,e.uniform1f(c.Vi,
h));h=a[8];b=a[9];!c.$i||h===c.Sr&&b===c.Tr||(c.Sr=h,c.Tr=b,e.uniform2f(c.$i,h,b));h=a[10];b=a[11];!c.Yi||h===c.Pr&&b===c.Qr||(c.Pr=h,c.Qr=b,e.uniform2f(c.Yi,h,b));h=a[12];c.Zi&&h!==c.Rr&&(c.Rr=h,e.uniform1f(c.Zi,h));if(c.ca.length)for(a=0,b=c.ca.length;a<b;a++)h=this.Ys[a],h!==c.jo[a]&&(c.jo[a]=h,e.uniform1f(c.ca[a][1],h))};d.prototype.wc=function(){this.$d===this.te.length&&this.te.push(new m(0,this));return this.te[this.$d++]};d.prototype.we=function(){if(0!==this.$d&&!this.F.isContextLost()){var a=
this.F;0<this.Ch&&(a.bindBuffer(a.ARRAY_BUFFER,this.Po),a.bufferSubData(a.ARRAY_BUFFER,0,this.Qo.subarray(0,this.Ch)),b&&0<=b.ld&&"<point>"===b.name&&a.vertexAttribPointer(b.ld,4,a.FLOAT,!1,0,0));if(0<this.Ue){var b=this.Wg;a.bindBuffer(a.ARRAY_BUFFER,this.Lj[this.ue]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Fm.subarray(0,this.Ue));b&&0<=b.ld&&"<point>"!==b.name&&a.vertexAttribPointer(b.ld,this.Ka?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Dj[this.ue]);a.bufferSubData(a.ARRAY_BUFFER,0,this.pm.subarray(0,
this.Lh));b&&0<=b.wf&&"<point>"!==b.name&&a.vertexAttribPointer(b.wf,2,a.FLOAT,!1,0,0)}for(var c,a=0,b=this.$d;a<b;a++)switch(c=this.te[a],c.type){case 1:c.Pv();break;case 2:c.Yv();break;case 3:c.Vv();break;case 4:c.Rv();break;case 5:c.aw();break;case 6:c.Qv();break;case 7:c.Mv();break;case 8:c.Ov();break;case 9:c.Wv();break;case 10:c.Xv();break;case 11:c.Zv();break;case 12:c.Sv();break;case 13:c.Tv();break;case 14:c.Uv()}this.Ch=this.Lh=this.Ue=this.$d=0;this.Xk=this.Yb=this.Mb=!1;this.ue++;4<=this.ue&&
(this.ue=0)}};d.prototype.Ff=function(a){if(a!==this.tr&&!this.wi){var b=this.wc();b.type=3;this.tr=b.os=a;this.Yb=this.Mb=!1}};d.prototype.zc=function(a){if(a!==this.sf){var b=this.wc();b.type=2;this.sf=b.ud=a;this.Yb=this.Mb=!1}};d.prototype.Ef=function(a,b){if((a!==this.ur||b!==this.sr)&&!this.wi){var c=this.wc();c.type=4;c.ac=a;c.jd=b;this.ur=a;this.sr=b;this.Yb=this.Mb=!1}};d.prototype.Ns=function(){this.Ef(this.F.ONE,this.F.ONE_MINUS_SRC_ALPHA)};d.prototype.Dh=function(a,b,c,e,h,d,n,k){15992<=
this.Ue&&this.we();var l=this.Ue,g=this.Lh,p=this.Fm,t=this.pm,m=this.ln;if(this.Mb)this.te[this.$d-1].jd+=6;else{var q=this.wc();q.type=1;q.ac=this.Ka?l:l/2*3;q.jd=6;this.Mb=!0;this.Yb=!1}this.Ka?(p[l++]=a,p[l++]=b,p[l++]=m,p[l++]=c,p[l++]=e,p[l++]=m,p[l++]=h,p[l++]=d,p[l++]=m,p[l++]=n,p[l++]=k,p[l++]=m):(p[l++]=a,p[l++]=b,p[l++]=c,p[l++]=e,p[l++]=h,p[l++]=d,p[l++]=n,p[l++]=k);t[g++]=0;t[g++]=0;t[g++]=1;t[g++]=0;t[g++]=1;t[g++]=1;t[g++]=0;t[g++]=1;this.Ue=l;this.Lh=g};d.prototype.me=function(a,b,
c,e,h,d,n,k,l){15992<=this.Ue&&this.we();var g=this.Ue,p=this.Lh,t=this.Fm,m=this.pm,q=this.ln;if(this.Mb)this.te[this.$d-1].jd+=6;else{var A=this.wc();A.type=1;A.ac=this.Ka?g:g/2*3;A.jd=6;this.Mb=!0;this.Yb=!1}var A=l.left,B=l.top,E=l.right;l=l.bottom;this.Ka?(t[g++]=a,t[g++]=b,t[g++]=q,t[g++]=c,t[g++]=e,t[g++]=q,t[g++]=h,t[g++]=d,t[g++]=q,t[g++]=n,t[g++]=k,t[g++]=q):(t[g++]=a,t[g++]=b,t[g++]=c,t[g++]=e,t[g++]=h,t[g++]=d,t[g++]=n,t[g++]=k);m[p++]=A;m[p++]=B;m[p++]=E;m[p++]=B;m[p++]=E;m[p++]=l;m[p++]=
A;m[p++]=l;this.Ue=g;this.Lh=p};d.prototype.Ny=function(a,b,c,e){7996<=this.Ch&&this.we();var h=this.Ch,d=this.Qo;if(this.Yb)this.te[this.$d-1].jd++;else{var n=this.wc();n.type=8;n.ac=h;n.jd=1;this.Yb=!0;this.Mb=!1}d[h++]=a;d[h++]=b;d[h++]=c;d[h++]=e;this.Ch=h};d.prototype.Ac=function(a){if(this.Mi!==a){if(!this.Za[a]){if(0===this.Mi)return;a=0}var b=this.wc();b.type=9;this.Mi=b.ac=a;this.Yb=this.Mb=!1}};d.prototype.lj=function(a){a=this.Za[a];return!(!a.tg&&!a.sg)};d.prototype.So=function(a){a=this.Za[a];
return!!(a.tg||a.sg||a.kk)};d.prototype.Ro=function(a){return this.Za[a].Zc};d.prototype.Wy=function(a){a=this.Za[a];return 0!==a.bi||0!==a.ci};d.prototype.tx=function(a){return this.Za[a].bi};d.prototype.ux=function(a){return this.Za[a].ci};d.prototype.vx=function(a,b){return this.Za[a].ca[b][2]};d.prototype.Kl=function(a){return this.Za[a].Uj};d.prototype.Hh=function(a,b,c,e,h,d,n,k,l,g,p,t,m,q,A){var B=this.Za[this.Mi],E,y;if(B.Mx||A.length){E=this.wc();E.type=10;E.fa?jc(this.Vc,E.fa):E.fa=ic();
y=E.fa;y[0]=b;y[1]=c;y[2]=e;y[3]=h;y[4]=d;y[5]=n;y[6]=k;y[7]=l;y[8]=g;y[9]=p;y[10]=t;y[11]=m;y[12]=q;B.Xi?E.ud=a:E.ud=null;if(A.length)for(c=E.Ys,c.length=A.length,a=0,b=A.length;a<b;a++)c[a]=A[a];this.Yb=this.Mb=!1}};d.prototype.clear=function(a,b,c,e){var h=this.wc();h.type=7;h.ac=0;h.fa||(h.fa=ic());h.fa[0]=a;h.fa[1]=b;h.fa[2]=c;h.fa[3]=e;this.Yb=this.Mb=!1};d.prototype.clearRect=function(a,b,c,e){if(!(0>c||0>e)){var h=this.wc();h.type=7;h.ac=1;h.fa||(h.fa=ic());h.fa[0]=a;h.fa[1]=b;h.fa[2]=c;h.fa[3]=
e;this.Yb=this.Mb=!1}};d.prototype.Qs=function(a){if(this.Ka&&(a=!!a,this.wi!==a)){var b=this.wc();b.type=14;b.ac=a?1:0;this.Yb=this.Mb=!1;this.wi=a;this.Ol=null;this.wi?this.Ac(2):this.Ac(0)}};d.prototype.Ps=function(a){if(this.Ka){var b=this.wc();b.type=13;b.ac=a?1:0;this.Yb=this.Mb=!1}};d.prototype.Oq=function(){jc(this.ko,k);this.pd();this.ad();var a=this.width/2,b=this.height/2;this.Dh(-a,b,a,b,a,-b,-a,-b);jc(k,this.Vc);this.ad()};d.prototype.Os=function(a,b,c){this.Ac(3);var e=this.wc();e.type=
12;e.fa||(e.fa=ic());e.fa[0]=a;e.fa[1]=b;e.fa[2]=c;e.fa[3]=1;this.Yb=this.Mb=!1};d.prototype.uz=function(){this.Ac(0)};d.prototype.fz=function(){this.Ac(2)};d.prototype.Vy=function(){this.we();this.F.flush()};var q=[],b={};d.prototype.Dv=function(){M(q);b={}};d.prototype.sh=function(a,f,c,e){f=!!f;c=!!c;var h=a.src+","+f+","+c+(f?",undefined":""),d=null;if("undefined"!==typeof a.src&&b.hasOwnProperty(h))return d=b[h],d.ck++,d;this.we();var n=this.F,k=ja(a.width)&&ja(a.height),d=n.createTexture();
n.bindTexture(n.TEXTURE_2D,d);n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var l=n.RGBA,g=n.RGBA,p=n.UNSIGNED_BYTE;if(e&&!this.De)switch(e){case 1:g=l=n.RGB;break;case 2:p=n.UNSIGNED_SHORT_4_4_4_4;break;case 3:p=n.UNSIGNED_SHORT_5_5_5_1;break;case 4:g=l=n.RGB,p=n.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!k&&f){e=document.createElement("canvas");e.width=ma(a.width);e.height=ma(a.height);var t=e.getContext("2d");"undefined"!==typeof t.imageSmoothingEnabled?t.imageSmoothingEnabled=c:(t.webkitImageSmoothingEnabled=
c,t.mozImageSmoothingEnabled=c,t.msImageSmoothingEnabled=c);t.drawImage(a,0,0,a.width,a.height,0,0,e.width,e.height);n.texImage2D(n.TEXTURE_2D,0,l,g,p,e)}else n.texImage2D(n.TEXTURE_2D,0,l,g,p,a);f?(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.REPEAT),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.REPEAT)):(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE));c?(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),
(k||2<=this.version)&&this.Fq?(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR_MIPMAP_LINEAR),n.generateMipmap(n.TEXTURE_2D)):n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR)):(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.NEAREST),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.NEAREST));n.bindTexture(n.TEXTURE_2D,null);this.sf=null;d.Qf=a.width;d.Pf=a.height;d.ck=1;d.oq=h;q.push(d);return b[h]=d};d.prototype.Pc=function(a,b,c,e){this.we();var h=this.F;this.De&&(e=
!1);var d=h.createTexture();h.bindTexture(h.TEXTURE_2D,d);h.texImage2D(h.TEXTURE_2D,0,h.RGBA,a,b,0,h.RGBA,e?h.UNSIGNED_SHORT_4_4_4_4:h.UNSIGNED_BYTE,null);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,c?h.LINEAR:h.NEAREST);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,c?h.LINEAR:h.NEAREST);h.bindTexture(h.TEXTURE_2D,null);this.sf=null;d.Qf=a;d.Pf=b;q.push(d);return d};
d.prototype.Jz=function(a,b,c){this.we();var e=this.F;this.De&&(c=!1);e.bindTexture(e.TEXTURE_2D,b);e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,c?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,a)}catch(h){console&&console.error&&console.error("Error updating WebGL texture: ",h)}e.bindTexture(e.TEXTURE_2D,null);this.sf=null};d.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.ck&&1<a.ck?a.ck--:(this.we(),a===this.sf&&(this.F.bindTexture(this.F.TEXTURE_2D,
null),this.sf=null),a===this.pg&&(this.F.activeTexture(this.F.TEXTURE1),this.F.bindTexture(this.F.TEXTURE_2D,null),this.F.activeTexture(this.F.TEXTURE0),this.pg=null),Da(q,a),"undefined"!==typeof a.oq&&delete b[a.oq],this.F.deleteTexture(a)))};d.prototype.qd=function(a){if(a!==this.Ol){var b=this.wc();b.type=6;this.Ol=b.ud=a;this.Yb=this.Mb=!1}};ob=d})();
(function(){function d(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var e=this;this.Be=(this.Yk=/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.gc=!!a.dc;this.jr="undefined"!==typeof window.AppMobi||
this.gc;this.Jd=!!window.c2cocoonjs;this.Kd=!!window.c2ejecta;this.Jd&&(CocoonJS.App.onSuspended.addEventListener(function(){e.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){e.setSuspended(!1)}));this.Kd&&(document.addEventListener("pagehide",function(){e.setSuspended(!0)}),document.addEventListener("pageshow",function(){e.setSuspended(!1)}),document.addEventListener("resize",function(){e.setSize(window.innerWidth,window.innerHeight)}));this.ib=this.gc||this.Jd||this.Kd;this.yi=
/edge\//i.test(navigator.userAgent);this.De=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.yi;this.nr=/tizen/i.test(navigator.userAgent);this.Vk=/android/i.test(navigator.userAgent)&&!this.nr&&!this.De&&!this.yi;this.rr=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.De&&!this.yi;this.cy=/ipad/i.test(navigator.userAgent);this.Ii=this.rr||this.cy||this.Kd;this.vi=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.De&&!this.yi;this.ir=/amazonwebappplatform/i.test(navigator.userAgent);this.Vx=/firefox/i.test(navigator.userAgent);this.Yx=/safari/i.test(navigator.userAgent)&&!this.vi&&!this.De&&!this.yi;this.$x=/windows/i.test(navigator.userAgent);this.mg="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.pr=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.ay=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Fi=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.fo=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.or=!!window.cr_windows10;this.Zx=this.pr||this.ay||this.fo||this.or;this.Tx=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Wk=this.Vk&&!this.vi&&!this.Yk&&!this.Vx&&!this.ir&&!this.ib;this.devicePixelRatio=
1;this.pf=this.Be||this.Yk||this.jr||this.Jd||this.Vk||this.Ii||this.Fi||this.fo||this.Tx||this.nr||this.Kd;this.pf||(this.pf=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Ei=!!(this.Ii&&this.Be&&window.webkit);this.On=null;this.Ox="";this.Ei&&(this.On=cordova&&cordova.plugins&&cordova.plugins.CorHttpd?cordova.plugins.CorHttpd:null);"undefined"===typeof cr_is_preview||this.mg||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&
!/nwjs/i.test(navigator.userAgent)||(this.mg=!0);this.canvas=a;this.sq=document.getElementById("c2canvasdiv");this.C=this.F=null;this.Jn="(unavailable)";this.Ka=!1;this.Wf=0;this.Pa=null;this.zn="";this.Dk=!1;this.js=this.ks=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.gc&&(window.c2runtime=this);this.mg&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=
function(a){a.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.Wk&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.S=this.width;this.R=this.height;this.lk=this.width;this.Yh=this.height;this.qh=window.innerWidth;this.ph=window.innerHeight;this.la=!0;this.Ci=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.D=[];this.Ta=[];this.ro=
{};this.Md=[];this.vn={};this.xe=[];this.Ph=[];this.ym=[];this.Qm=[];this.tv=[];this.pp=null;this.Sf={};this.bo=this.of=!1;this.Uc=0;this.ao=this.eo=!1;this.Fd=[];this.xi=!1;this.jl=this.gp="";this.wb=null;this.Ee="";this.Bj=this.bt=!1;this.Ck=[];this.Vf=this.Uf=0;this.Wr=30;this.gn=this.aj=0;this.If=1;this.ab=new eb;this.Ve=new eb;this.wl=this.Hk=this.Zf=this.vd=this.rg=this.yn=this.cl=0;this.Uh=null;this.uk=[];this.un=[];this.xk=-1;this.yo=[[]];this.xp=this.ol=0;this.Ll(null);this.Ao=[];this.ql=
-1;this.ei=this.as=this.hj=0;this.Cj=[];this.up=this.Vo=-1;this.Ji=!0;this.ml=0;this.Ai=!1;this.wz=0;this.Tg=null;this.Gc=this.Wq=!1;this.gs=new ca;this.Go=new ca;this.hs=new ca;this.sj=[];this.Bc=new gb([]);this.sp=new gb([]);this.Sg=[];this.eh={};this.ef={};this.$e={};this.Oh={};this.lq={};this.Cr=this.il=this.kb=this.ub=this.Br=this.hl=this.na=null;this.Mh=this.ho=!1;this.An=[null,null];this.$f=0;this.fi="";this.Je={};this.Aj=this.uf=null;this.dt="";this.ul=[];this.ez()}}function l(a,e){return 128>=
e?a[3]:256>=e?a[2]:512>=e?a[1]:a[0]}function g(){try{return!!window.indexedDB}catch(a){return!1}}function m(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function k(a,e,b,c){try{var h=indexedDB.open("_C2SaveStates");h.onupgradeneeded=m;h.onerror=c;h.onsuccess=function(h){h=h.target.result;h.onerror=c;h.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:e}).onsuccess=b}}catch(n){c(n)}}function q(a,e,b){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=
m;c.onerror=b;c.onsuccess=function(c){c=c.target.result;c.onerror=b;var h=c.transaction(["saves"]).objectStore("saves").get(a);h.onsuccess=function(){h.result?e(h.result.data):e(null)}}}catch(h){b(h)}}function b(){ea("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(a){var e,b={};for(e in a)!a.hasOwnProperty(e)||a[e]instanceof ca||a[e]&&"undefined"!==
typeof a[e].FA||"spriteCreatedDestroyCallback"!==e&&(b[e]=a[e]);return b}var f=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.ez=function(){var a=this;if(this.Ei){var e=function(){a.Rw(function(e){a.Ti(JSON.parse(e))},function(){alert("Error fetching data.js")})};this.On?this.On.startServer({port:0,localhost_only:!0},function(b){a.Ox=b;e()},function(a){console.log("Error starting local server: "+
a+". Video playback will not work.");e()}):(console.log("Local server unavailable. Video playback will not work."),e())}else{var b;this.Fi?b=new ActiveXObject("Microsoft.XMLHTTP"):b=new XMLHttpRequest;var c="data.js";if(this.pr||this.Fi||this.fo||this.or)c="data.json";b.open("GET",c,!0);var h=!1;if(!this.ib&&"response"in b&&"responseType"in b)try{b.responseType="json",h="json"===b.responseType}catch(n){h=!1}if(!h&&"responseType"in b)try{b.responseType="text"}catch(f){}if("overrideMimeType"in b)try{b.overrideMimeType("application/json; charset=utf-8")}catch(d){}this.Fi?
b.onreadystatechange=function(){4===b.readyState&&a.Ti(JSON.parse(b.responseText))}:(b.onload=function(){if(h)a.Ti(b.response);else if(a.Kd){var e=b.responseText,e=e.substr(e.indexOf("{"));a.Ti(JSON.parse(e))}else a.Ti(JSON.parse(b.responseText))},b.onerror=function(a){fa("Error requesting "+c+":");fa(a)});b.send()}};d.prototype.Rx=function(){var a=this,e,b,c,h,n,f,d,k,p;this.ng=(!this.ib||this.Kd||this.Be)&&this.Hz&&!this.Wk;0===this.oc&&this.Ii&&(this.ng=!1);this.devicePixelRatio=this.ng?window.devicePixelRatio||
window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Qb();0<this.oc&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(e){e.preventDefault();a.yy();ea("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.C.cr();a.C.Eg(a.C.width,a.C.height,!0);a.ub=null;a.kb=null;a.An[0]=null;a.An[1]=null;a.zy();a.la=!0;ea("[Construct 2] WebGL context restored");
window.cr_setSuspended(!1)},!1);try{this.iw&&(this.Jd||this.Kd||!this.ib)&&(e={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.F=this.canvas.getContext("webgl2",e)||this.canvas.getContext("webgl",e)||this.canvas.getContext("experimental-webgl",e))}catch(r){}if(this.F){if(e=this.F.getExtension("WEBGL_debug_renderer_info"))this.Jn=this.F.getParameter(e.UNMASKED_RENDERER_WEBGL)+" ["+this.F.getParameter(e.UNMASKED_VENDOR_WEBGL)+"]";this.Ka&&(this.Jn+=
" [front-to-back enabled]");this.ib||(this.Ob=document.createElement("canvas"),jQuery(this.Ob).appendTo(this.canvas.parentNode),this.Ob.oncontextmenu=function(){return!1},this.Ob.onselectstart=function(){return!1},this.Ob.width=Math.round(this.lk*this.devicePixelRatio),this.Ob.height=Math.round(this.Yh*this.devicePixelRatio),jQuery(this.Ob).css({width:this.lk+"px",height:this.Yh+"px"}),this.Ds(),this.Oo=this.Ob.getContext("2d"));this.C=new ob(this.F,this.pf,this.Ka);this.C.Eg(this.canvas.width,this.canvas.height);
this.C.Fq=0!==this.bw;this.Pa=null;e=0;for(b=this.D.length;e<b;e++)for(n=this.D[e],c=0,h=n.Y.length;c<h;c++)d=n.Y[c],d.ob=this.C.Hn(d.id),d.Zc=this.C.Ro(d.ob),this.Mh=this.Mh||this.C.lj(d.ob);e=0;for(b=this.Md.length;e<b;e++){k=this.Md[e];c=0;for(h=k.Y.length;c<h;c++)d=k.Y[c],d.ob=this.C.Hn(d.id),d.Zc=this.C.Ro(d.ob);k.Vd();c=0;for(h=k.ba.length;c<h;c++){p=k.ba[c];n=0;for(f=p.Y.length;n<f;n++)d=p.Y[n],d.ob=this.C.Hn(d.id),d.Zc=this.C.Ro(d.ob),this.Mh=this.Mh||this.C.lj(d.ob);p.Vd()}}}else{if(0<this.oc&&
this.gc){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Pa=AppMobi.canvas.getContext("2d");try{this.Pa.samplingMode=this.La?"smooth":"sharp",this.Pa.globalScale=1,this.Pa.HTML5CompatibilityMode=!0,this.Pa.imageSmoothingEnabled=this.La}catch(l){}0!==this.width&&0!==this.height&&(this.Pa.width=this.width,this.Pa.height=this.height)}this.Pa||(this.Jd?(e={antialias:!!this.La,alpha:!0},this.Pa=this.canvas.getContext("2d",e)):(e={alpha:!0},
this.Pa=this.canvas.getContext("2d",e)),this.Vl(this.Pa,this.La));this.Oo=this.Ob=null}this.ot=function(e){a.za(!1,e)};window==window.top||this.ib||this.Zx||this.Fi||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Jd&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ea("Reloading for continuous preview"),
this.jl="__c2_continuouspreview",this.Bj=!0),this.Ly&&!this.pf&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var e=window.parent;e&&e.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.zf()});this.ib||(e=function(a){if(nb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(e){}},"undefined"!==typeof PointerEvent?
document.addEventListener("pointerdown",e):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",e):document.addEventListener("touchstart",e),document.addEventListener("mousedown",e));0===this.oc&&this.ng&&1<this.devicePixelRatio&&this.setSize(this.yb,this.xb,!0);this.xt();this.Jx();this.go();this.N={}};d.prototype.setSize=function(a,e,b){var c=0,h=0,n=0,d=0,d=0;if(this.qh!==a||this.ph!==e||b){this.qh=a;this.ph=e;var f=this.oc,k=(document.mozFullScreen||document.webkitIsFullScreen||
!!document.msFullscreenElement||document.fullScreen||this.Ai)&&!this.Be;if(k||0!==this.oc||b)k&&0<this.$f&&(f=this.$f),b=this.devicePixelRatio,4<=f?(n=this.yb/this.xb,a/e>n?(n*=e,5===f?(d=n*b/this.yb,1<d?d=Math.floor(d):1>d&&(d=1/Math.ceil(1/d)),n=this.yb*d/b,d=this.xb*d/b,c=(a-n)/2,h=(e-d)/2,a=n,e=d):(c=(a-n)/2,a=n)):(d=a/n,5===f?(d=d*b/this.xb,1<d?d=Math.floor(d):1>d&&(d=1/Math.ceil(1/d)),n=this.yb*d/b,d=this.xb*d/b,c=(a-n)/2,h=(e-d)/2,a=n):h=(e-d)/2,e=d),k&&!this.mg&&(h=c=0)):this.mg&&this.Ai&&
0===this.Pq&&(c=Math.floor((a-this.yb)/2),h=Math.floor((e-this.xb)/2),a=this.yb,e=this.xb),2>f&&(this.Th=b),this.lk=Math.round(a),this.Yh=Math.round(e),this.width=Math.round(a*b),this.height=Math.round(e*b),this.la=!0,this.Ht?(this.S=this.width,this.R=this.height,this.Rc=!0):this.width<this.yb&&this.height<this.xb||1===f?(this.S=this.width,this.R=this.height,this.Rc=!0):(this.S=this.yb,this.R=this.xb,this.Rc=!1,2===f?(n=this.yb/this.xb,f=this.qh/this.ph,f<n?this.S=this.R*f:f>n&&(this.R=this.S/f)):
3===f&&(n=this.yb/this.xb,f=this.qh/this.ph,f>n?this.S=this.R*f:f<n&&(this.R=this.S/f))),this.sq&&!this.ib&&(jQuery(this.sq).css({width:Math.round(a)+"px",height:Math.round(e)+"px","margin-left":Math.floor(c)+"px","margin-top":Math.floor(h)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(e)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*b),this.canvas.height=Math.round(e*b),this.Kd?(this.canvas.style.left=Math.floor(c)+"px",this.canvas.style.top=
Math.floor(h)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(e)+"px"):this.ng&&!this.ib&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(e)+"px")),this.Ob&&(this.Ob.width=Math.round(a*b),this.Ob.height=Math.round(e*b),this.Ob.style.width=this.lk+"px",this.Ob.style.height=this.Yh+"px"),this.C&&this.C.Eg(Math.round(a*b),Math.round(e*b)),this.gc&&this.Pa&&(this.Pa.width=Math.round(a),this.Pa.height=Math.round(e)),this.Pa&&this.Vl(this.Pa,
this.La),this.xt(),this.rr&&!this.Be&&window.scrollTo(0,0)}};d.prototype.xt=function(){if(this.vv&&0!==this.Mo){var a="portrait";2===this.Mo&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(e){console&&console.warn&&
console.warn("Failed to lock orientation: ",e)}}};d.prototype.yy=function(){this.C.Dv();this.ho=!0;var a,e,b;a=0;for(e=this.D.length;a<e;a++)b=this.D[a],b.ij&&b.ij()};d.prototype.zy=function(){this.ho=!1;var a,e,b;a=0;for(e=this.D.length;a<e;a++)b=this.D[a],b.xl&&b.xl()};d.prototype.Ds=function(){if(!this.ib){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Ai)&&!this.Be?jQuery(this.canvas).offset():jQuery(this.canvas).position();
a.position="absolute";jQuery(this.Ob).css(a)}};var c=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;d.prototype.setSuspended=function(a){var e;if(a&&!this.Ci)for(ea("[Construct 2] Suspending"),this.Ci=!0,-1!==this.Vo&&c&&c(this.Vo),-1!==this.up&&clearTimeout(this.up),a=0,e=this.Cj.length;a<e;a++)this.Cj[a](!0);else if(!a&&this.Ci){ea("[Construct 2] Resuming");this.Ci=!1;this.cl=Wa();this.rg=
Wa();a=this.aj=this.Hk=0;for(e=this.Cj.length;a<e;a++)this.Cj[a](!1);this.za(!1)}};d.prototype.rv=function(a){this.Cj.push(a)};d.prototype.Ye=function(a){return this.ul[a]};d.prototype.Ti=function(a){a&&a.project||fa("Project model unavailable");a=a.project;this.name=a[0];this.Nq=a[1];this.oc=a[12];this.Pq=a[12];this.yb=a[10];this.xb=a[11];this.ys=this.yb/2;this.zs=this.xb/2;this.ib&&!this.Kd&&(4<=a[12]||0===a[12])&&(ea("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),
this.Pq=this.oc=3);this.Ep=a[18];this.vf=a[19];if(0===this.vf){var e=new Image;e.crossOrigin="anonymous";this.Rs(e,"loading-logo.png");this.uf={pl:e}}else if(4===this.vf){e=new Image;e.src="data:image/png;base64,[encoded data, 72588 characters]";
var b=new Image;b.src="data:image/png;base64,[encoded data, 64500 characters]";
var c=new Image;c.src="data:image/png;base64,[encoded data, 26348 characters]";
var h=new Image;h.src="data:image/png;base64,[encoded data, 11240 characters]";
var n=new Image;n.src="data:image/png;base64,[encoded data, 9880 characters]";
var d=new Image;d.src="data:image/png;base64,[encoded data, 8536 characters]";
var f=new Image;f.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAMAAADCg1mMAAABmFBMVEUzMzOIjoM0NDSHjoKFjIFyeG89Pj1gZF5dYVs2NjY4ODhQU0+Ah3yBiH1XWlU5OjmEin86Ozp+hHpwdWx8gnh3fHNSVFCFjIB8gndNUEx6gHaEi4BcYFpFRkRkaGFjZ2Btcmpxd25qb2dTVlF5f3VVWFNISkc1NTVJS0hpbmZ9hHlAQkBUVlJAQT9na2Q8PDtGSEVQUk5xdm1KTElMTktMTkpobWU/QD51enFmamOCiX54fnRZXFdDREJ2fHI8PTxERUNWWVRrcGiAhntcX1leYls7PDpSVVE9Pjx/hntYXFZaXViDin5laWI7PDtvdGtPUU1obGRCREFCQ0FhZV9uc2tLTUqDin9PUk5eYlxscWk1NjVaXlhHSUZiZl9yeG50eXBlamJISUZXWlRRVE96gHVKTEg4ODdpbWZvdGx0enBERkN4fXN7gXdwdW0+Pz5bXllPUk1scGhrcGd9g3lISkZYW1UzNDNYW1ZjZ2E/QT+GjYJUVlFgZF03Nzc5OTlnbGRjaGBERUKIj4JGR0U3ODd2e3JjaGE5GY8RAAAGGUlEQVR4Xu2XVZMrNxCFdQbMzIzLzMzMzJeZmcIMfzvWaMjrWxunspO6qdV52G5199qaT9K0TL5gcXFxcXFxcXFxcXFxcXElc+6qsZDL+clVkh1dVeNmwMYB/CfiADgADoAD4AAE3ywhznJr8VZrzGmOD+Reytvf96jDTl9MT5V9euGgTytwNZbkvtGdZnWY9TUR0t9V7Gth456DsFzIDBND2a7x0Iszt/B5AN0OuS301LGkRNp9jaZ8v6+fXKKaAeFoFYrabujhlhdgkjuV8TcQ/WpqBRjQykI4Yc7sGBQlVCAO7DoLADBLR7Y+lhXz17SvHaVDEYjaPgcgFgBEAIFe5d9FfDBWZh6NlwzgOzGy9ottcmIecW09G0U8jw0H9ydCOL6rRBLoVXM+6DPuxLcuxdmElOtZsvVGIbWoAIYKSC3snLRXBvseNCwPB7MHEsICA1CC+PW+ILQvBkKPawFkMO4OEmf/bYhJGiqaSloguS4ZgDTHtrQ/ijbmPRRhZzN9dIgxG3Xy+hxuQfKwJLkHWbET8D5jyzMEj4sB8GBRrfKH0MWOxrMxLCjOfYhJlWFIrAUgtjZrH+f9sWLdONZP3SjOyCUDiGoHdzoAnxKLYFfPT6FAbT9C6uOIKRl3mV/AOjU2SWzSysdxygBglKi6gz5BdU8QoHyEBG5q2Z5aABjXZuSMIEPNGNxa1ovkZQNoMXWkKDUxjBm7bAag2/hamholaZ9Qpy9ssFgOJb18B20MQNyvRrYksV1PN6BcMTcgBfXQ21oAg/rAhwRj+FINDMDbfNkAjKYzCdBpP0GeGLoNBzWH+Epd9R4bImzx2MMKXjTp1U4JrxQAh1pkDTLRdYrHFbOIYp1tsBtYoS0DYrf28sgR6wAIAeVRNmBuNNfZbBvxhBpnelUgUexRP4NNhi0gGOUPMKgAaNUCBVw3sm8wpYRO6wRA5nHEPnWd8Q0gayEAMo4YIVuAvkGN07+CNO1hSfrQC8jQkMz6YS88DkNtWK4GkMJbIzuE95VQFI31AhhhpRNoIOy7XhArARRxj5B2/GqumEFAPb60ww3hIW1/zyvuD1JcaRqzqFZHNQAPqhRiPbVeAC+xRk1QwgzbThlLAfTBRwGI5opJpNWJ2ul59woUBqU2iLD6ohp3m/WqGoAXGXN2QAFwUi+AMANACsp7ySXBZimAEbp8rwAnMXQDHsU2YZz+GaL+In0j5nGP3ZogkypVA1hF0/lsFB31AritnpYkPM2ElCETSwGsYrASEjFJDHUgqlhhDEGSZ114DzLbBlRHWL0IwB+1V9dDOOoFEMIgi3owQHdoh6UAgmzwnK6vriHtSjOHGGkLsM2REP1bSLH4EtB5AYBNlM5nT7FdJ4CgPriJMxIU4y5LAXRot5ioUeA61u4ly3g8gzNt1ssxHOgHx34BgH52JzKrCfFH+uDPWgB7phlFVG8fkt+HOWIBAH25hQb2JNMS3HrBASIC84JiKIP7zM9iblc/227EjS3QfR6AkMJPRB9sKaEIFrTIkrcWwJzup4wbwxRmRzBoBYB0j75s8Wl1i47NqLFeEUljCg36L7G2+dRxswZORqpb6xne3XMAyENgQqscZb+aliGpX+p6iloAOp6fsaHvnlkk4BGsAJCIX6cb0pUDPqrzDCO9Rg+7/6Zo2t6LQFjz88CZseoRzMcoDtd6GuXzAMhroDRMnd9kNPyudrX0ur9SX34vhWsBtGL7g0DIXgG4b5zFOJAnVgCYLEKaejIiwdhu10aB+Eg4KkIy3WOzQKPRHFEmBgEZ2JDDUQmBZVIDgHQEgFS4OA/cCrKIcw6AxyPC07JeC8BpFyGtbgCSuYGUgBlLANg+uWUJkMJ3TfFsyQsgtDlsigl9I0GTv0VMSobTABL2afWRRxzmbLc9AiAQ3jFCA9teMTCVcZGjd9VtUnhXImSmKyJJkTtV3eUNHlBjTRcQpqdrjpd/5Z/1nKUV5wVZ58rSJ/KvlMdrqwD8LyR4xOkrDWAARXKlATxF75UGsIiIcGUBZCccUxBbyJUF4APgTRJrNDwskC9dto8Lsb9vyVxcXFxcXFxcXFxcXFxcfwEXKq8s5phFegAAAABJRU5ErkJggg==";
var k=new Image;k.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAAAgCAMAAADt/IAXAAACEFBMVEUzMzN9g3g0NDR7gXdzeG9CQ0E1NTWBh3w6OzpvdGx9g3k6OjlkaGFLTUqEi394fXRvdGt1enE2NjZ3fXM9Pj1iZl+AhntVWFNjZ2BWWVQ4OTh1e3FwdWxpbmZAQT83Nzc4ODdrcGhuc2tMTkpKTElNT0tRVE9aXVdPUU1PUk42NzZ6gHZLTUk7PDs5OjldYFp0eXB+hHlYW1Z0enBeYlx+hHp5f3WAh3w2NjVtcmpqb2dMTktISkd/hntHSUY4ODhmamNdYVtnbGRBQkA3ODdyd25yeG88PTs7OzpQUk5ERkNZXFdhZV5eYVuCiX03NzY1NjVOUU2Din5ERUM/QD9uc2pma2N+hXpUV1JFR0Q0NTRDREKIj4OCiH1XWlVGSEVfY1w9Pjw+Pz0/QD6Ein92fHI7PDpdYVp8gniFjIA8PTyAhnxgY11gZF5FRkRQU05YXFZna2NCREFSVVFAQkB/hXpXW1Vrb2dJSkc9PTxlamKFi4BISUZZXVeHjoJzeW9gZF1TVlFfYlxna2RVV1JcX1lbX1lNUEyDiX5tcmlzeXB8gndRVFBOUExpbWZSVFBNT0xhZF5laWJ4fXNwdW1RU09bXllDRUJqbmZfY12Ei4BUVlJbXlhKTEhTVVFcYFpeYltxdm1xd25obGU1NTSFjIFKS0iBiHxscWl9hHlscGhpbWVaXVhvc2ttcWk0NDPL7ZluAAAChElEQVR4Xu3SU6+kWRxG8fWibNvHtm3bdtu27bFtfsXJ6a5UMkklXdU5yZlMat09++Kf38Xmf1mmTJnmnwOAuN3FvpT1fhyw5OVdygBETYlekvStAEUfCKYDBXD+KTAWVQOxduDDMu13WcCx1dLCNpifFrZXRCBoXi4fyk4AggGnKqCmxOwFaDyaImBJ7td1TleK4KlubA1GfHXkdAOx658DnwzCbctAONb8AGTTewN2DOXZrYs+B/TVfhEadUkJgK9RqWszLWBxAfhXUgV8CYxpsyneUgBizx/orhTAqYYocOQsCqcXiEkgRwDluVVAPXGYow0AHyUARYBY089cJaA7pE4V4AV4pcejAeClCSwGxNk+VQiFAMccAKKxFzkfMNgA0ORge5bkDwy3ETZugidKWoC5KO5PAbB/Bl+7afETyWNQD/VP5N1+/Bh5HKhQvZ5HTqJaTAL4SgO/fwOP89MD3DKjrwKg9xBMFuK4S34AvwHM9xSvs74B5Na/mTpUp5MAzmigScvhkbr0AO0z5F4A4KIENF+S1ISaR1VWuFxFvNeAE2XEs2UnAZTOAMLVazOkDNgEsOUQnFADBIaADscNoH7YDBSVWwGUcUCJURGfN78HcCUAxwFMJ4DSO7aW1AHyBgtr0hi4LXaU96t1QJ6xAnjx0APwyF+M6Po2DqDi4CQ0FXrZUXl+EPMOJgC+FkLuGiWwbhRIHfBTpTDSvQGIudXan39ZBwj/age8WjuAcs0p1DbsQMQAwAtp1ll2HFDIxtqOpt/igJqpP5e3/ioGoKcqDYCXOivxukSSFv73e4HyLVeFqbQAe16Whf0EdI5rDaTc33ore9wBzTj/0TJlyvQPsTd0lRaZaakAAAAASUVORK5CYII=";
var p=new Image;p.src="data:image/png;base64,[encoded data, 9588 characters]";
var r=new Image;r.src="data:image/png;base64,[encoded data, 10044 characters]";
var l=new Image;l.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAMAAADCg1mMAAABnlBMVEUzMzOIjoM0NDSHjoJyeG+FjIE2NjZISkeAhntNUEw4ODhVWFN1enFXWlWFjIA9Pj06Ozp4fnRxd26Ah3x6gHZtcmqEin98gnh5f3U8PTxobGWBiH1+hHo1NTVBQkBWWVQ9PjyEi4BMTkp9hHlna2Q5OjlDREJRVFBgZF6Din5laWJGSEU/QD5UVlJ7gXdscWlcX1lFRkRAQT9aXlhvdGtjZ2BCQ0FmamOCiX5wdm03Nzc7PDtHSEZJS0hTVlFpbmZYW1ZERkNuc2tdYVs3ODdCREF2fHJbXlliZl9QUk41NjVeYltZXFc/QD9YW1VQU09tcmlhZV9scGhKTEl3fHNeYlxERUNwdWw7PDpcYFpLTUpqb2d/hntpbWY+Pz5nbGR2e3JMTktWWlR9g3l0eXA8PDt8gndPUk44ODeDin9obGRaXViBiHxrcGhTVVFPUk1OUE1KTEhvdGx4fXNZXFZlamJyeG5RVE90enCGjYJkaGFgZF1rcGczNDNISkZISUZAQj9gY11fY11kaGBLTkpERUJVV1NGR0VUVlFwdW0dCiH/AAAHg0lEQVR4Xu3WVZPkOBYF4HOMycxYyMzMDM3MzMwwM8v4r3fKkpyZ1d3R2Rsxuw/j71HlSstH90rC/57H4/F4PB6Px+PxeDwe26/h98wmV/B71kaO4HftQ3UP/z8ej2cs3A1lKWxBagv3Yy4c3oB0JjwAqSv8ArDDi5AC4RNQguEo6gQGryWM9LnR+qHgcsL4+XgMUjgcAIB7h9OYOjVrrDhjc4htrxk3cMg6MT1rTPTY+JrrIyeNRMcJCzWrf54wZvv8ZUh2+O/AvYOTvw6ewaG5pWXDuFINwHGMeieEFvIWpBIfACX6IWW5A+ka+4Ag45C6+SmgpkM9hprwIwoJN5bbvXRE1jU4yD+J4zCLSzrJZ85YS9sMySQADCYpbI3hKKtPp8P3ElJ0lkL2bxA6OKKNmHQYMeCD/MGiiAP3uQshTHZAGHM+app9EDbJLCQf24A8eRHCSVIVUZBbqLlE/cZiPra6P8OreTg+U3+8mJ+3p3X+fCSA9rdMnjrx0nbGdk2zsOR/AWCHeuHMfKBSvcNkHo3mQny0vnox6p8lq3CMFul7shkb6N4i36oA1t9x1n8sak+avPvLOK+On49ODQ6xVSQ66X71e5pJTS4UDQB+Zt1viXAKjgojFoC4+mqrNcJhCKe5DteYrgqoJcs0Dg0yImNfyPB2YwCZyEQAApm8L5f7ASOv4AjE+QyNlpmVpfWWn7oAYD7JhPgVbZ30ywCGVDxt5F95QTzwMMdl0d0swdGppwz+EY40nwDYMCk7/w2neQmOFb4GgJ/kv+MWC2bGEi8tchSuESYg2aLP5ooMQlqir9wQAHN7kMjWAQhnOQKpn6ZKyB2YglTgsIgkZ0GapM8SAbAHUppMqQf8bHVmsNfKiuzlngPZ6VqvGEvI6KLcWuVZOCbE0i0wCcdjtk3IvWOVSQ2uPvZBeWr2Ox0ypEHSrvIPjQG0QanNWCv5xqAUuYB6VzgNpcLIHhDVaUOxfAyKAGY2IAXJl5AsXRb1GldkOv1RZmW27Th0wLRc9W3cYQsAlDOMOhnNsEusembvOcV+vc0CakYYQqOJ+g4ZZrghgBkNCnkeXzHk7tFqlWy4ipwCnjCOmnM0RAAdUM7Q3IPi46JM5bXo5asaznJTtHyf3AsfOdMyOIYdHhcrn1L5j4uZX0Gn+VQTBbOLhj3gpzLqJbkI11yn1RBACS5y4OsB+FGnQt2CK9CpAWv8C2pGGdGcAHqg2PTB1S6LroWte05L9AEjotMNlXWWC2J3APr5HgD2eUqdfgnRabvArFPOlinOQ6Wqs/3cqAbFIqOo12QA2pR/MPgrX2MAl9n+ZUS7qLHIgWYCQM5ZmAJfAWN8A2DOjFjq2DoHYInnDpvW2chCqu5iumkBuBPZAILccerLQIOFEMnetWAMjntk4McD2Cz0UmoM4ATjOCJJG3UyPN9UAD3sAbRiUXPCiAJtvOCmfBNAmuedMLqBgN5bhnCTl4EurjlhZJ3fGccRle3ZDGk+vggA+f8mgH2dpenqrUXbtkuNAXR/GcDTxm2yl6NNBWAzDtgsiApfASZ5G4IV0TthRdrFY2nAz9OQ1jkJ7HNJ9EwXEGcFX9L6P0foqwAIkPd+NIBtRoLa1/cAP4dwRIltqGOy0lQA2gxjmBTxbtIQZSBN8AH8nHQee9pq4TOXIK0yBcTFRfo41xHT2/F10ThzGoAIV38wgFiE/m9tgqPM4Ii7XEHNdfJhUwHgGbvRLi8z9/XOeaagVNmBgrweTdOPFOch/ZJk/rq87OQZxy778A1Rnf90miYIV0tX7PsBPGcc3wpgQ+cYXJUuC9hhGjVLHEJzATzntfMcVhvC826eghJlSSvK681lFlp4Fq4CBw8YVhtCtKPxmB5YvgFXjt3OwTwB1xr/8f0ARngSiqZOAeUjD+ovBccAm2YMLoM9TQYQ00uX+EEV1rPHtOFK8V/qwlWeSXZzH64HXE4wD8cTVrMRC3XmyUpd2H4Ax3R9ClJnhmPfD+A441DGeSSAQbZbENSFPsdpKLeoDzQZALaYMwNq2Jd6VIarh3FehnCNCY7CFfiUjdx0++29e3RoagEmNAi7cmVu8M1D+cwwJ5rYAzbpltWgTr5oeEE5xQ4V531RDYvkIIRKkZNoNoB9urPHJDmMGpt0Dz4/Gy77MMhxSHHKbiiHdDHY1crEKgA8HDflHAIppmznbwn68k0EgDRbgxagLaR5NsVqwwvQleHaAADtVpaGJnuG7+YB7AV7eXev6QBGySCkBXIJNeVeXoFkZVhAnXHyGKRL5HUcmqLaQ/tLpC/xessk+2RuFz+SpcS/s2R8AM0EEAiRrblcL5kOpPmu8QUYLZGpC4kieXoOQjVCPX7hboa8YqHpALQLRgySNmHMo86p0BkoPaE21KmETkMZCw2r4i6pMOdWQiZJ33I/FK3bMEnz42AZQijU4ixmKA3AHctDKR+P6+TM6UUgGLp25AXYGMnpZObkK7hadu6QnBm2IW2HqlC6QmtwDYf68ZvT5qOBo0P5fBk/worG8G1Wy0UcsdESw5c8Ho/H4/F4PB6Px+PxeDwej8fzH+ab6YZ24mCxAAAAAElFTkSuQmCC";
var t=new Image;t.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAAAgCAMAAADt/IAXAAABblBMVEUzMzM2NjY4ODheYlxAQkA/QD58gng0NDQ5Ojl6gHaCiX59hHlMTktZXFc9Pj15f3VkaGFdYVuEi39WWVQ8PTxgZF5FRkRtcmo1NTVlaWJscWl4fnSBiH1xdm5iZmBqb2c9Pjx2fHJcYFpYW1Y6Ozp9g3lHSEZcX1mAhnt+hXo3NzdSVFCHjoJGSEVAQT9CQ0FERUNZXFZobWVERkOAh3xUVlI8PDt1enF3fHNiZl9DREJ2e3I3ODdRVE+FjIE4ODdOUU2Din9KTElVWFNJS0hxdm1MTkpna2RbX1lQUk5XWlV7gXd8gndrcGhuc2tfY11tcml0eXBNUEyDin5yeG9ISkc1NjVmamOEi4BKTEhvdGx6gHVLTUp0enBwdWxNT0x4fXR4fXNVV1M+Pz5aXVhbXlhPUk5vdGs7PDs/QD9pbmZTVVGIj4NXWlRgZF1pbWY5OTlhZV9TVlFlamJzeXB/hntscWg0NDNeYluBiHw6JP9nAAAC8ElEQVR4Xu3R1YpsORhA4bVdyt3dXdvd3e2467jL2w+himloai7m6nCgvos/yWYTFoSv3tTUlFzky/pxhy+rGOQrZ0YM4NsCQEY7cAF80wEGMZTHwKz4gZkthNk7Sz8PA6xclOZmxBqA3stA4gkrb9ZzHviQKiUUibF2Rre8JiDlX+s7u0D4zN3XPUq0GDs6upOB4zKQcwCabbR0QG0qgOKlsgd839wGnq8DSKVK0Zyxu5B/FV4O587A54X+q3hLw5dI3ajsv25JWiTOSGc4YwZDR3WiF3FV3i0VwGldb8uDRCy3YmqRCJBWIGjNdyFwgpHUoJLxAEvPWKwBOxkvrD1aA9h+ChBKE7yaBT755VHAnAH4HBJQVQF51UTgRQHgNEDhuQG0/UGczTaw+Z0TKDaXYXMJDkMVBeINyARgXj3WkDck+F1FdmQd4EwhqLaGwFYEwZUdBbwD8MX4V7KNIK3+BHBzSe4DQqSAMwfwdtUA2NDgdsMkFVY9GMkiNCIELUIu1k+BvQKNGEtdvC4EAsPzgBsILTAyCnCNd8Lgh/jHj6ujADXJ2NVnxpHOOQC3H8EWn08P5BJYWngJMG3jUCF8QSwArD8h/ph3CpbKiOT82ZGRCIX+K8Bn/dJxu+1xwJAx/1uEyq8TArb2Gl5QXJU8wFw5NYBS8TgLLNtyLYrmCercu91RKGQQzOjDgOyGef8EyE0JQFrDs4nQ358QkHXEb2Dxt+sBQN6rA2mfByG10AcS4m7hfQ/g8A/UpAQYQ+1hQMsB4B4/AbkDgLTC2QmAaXcmBOBxGIClI3T9aaBshxBc/ksgbz+DbgPKwzK4PVvQj8vU7855GFBPBgzK848W+bOXhe1aGC6rWWTdFyV4HWNSQD59PyFRBoxEC6GtS4Aq5ntRvjtfdThcQDRU1asLEvQUWHgD0PsLIJy4SqYWXzip114Cu55aNdUBZk/+LtX2DdiMAAQthKdu/q/bOmNrTCZFJx+NZSaYmpqamvoHZD1hKSAldSkAAAAASUVORK5CYII=";
this.uf={pl:[e,b,c,h],Sy:[n,d,f,k],Kz:[p,r,l,t]}}this.hj=a[21];this.ul=nc();this.oe=new V(this);e=0;for(b=a[2].length;e<b;e++)f=a[2][e],c=this.Ye(f[0]),pb(f,c.prototype),k=new c(this),k.hm=f[1],k.rf=f[2],k.by=f[5],k.Yr=f[9],k.G&&k.G(),this.plugins.push(k);this.ul=nc();e=0;for(b=a[3].length;e<b;e++){f=a[3][e];n=this.Ye(f[1]);k=null;c=0;for(h=this.plugins.length;c<h;c++)if(this.plugins[c]instanceof n){k=this.plugins[c];break}p=new k.U(k);p.name=f[0];p.K=f[2];p.Xn=f[3].slice(0);p.Iz=f[3].length;p.wv=
f[4];p.Ww=f[5];p.da=f[11];p.K?(p.vg=[],p.ye=this.ei++,p.Qa=null):(p.vg=null,p.ye=-1,p.Qa=[]);p.Ak=null;p.ah=null;p.Gq=null;p.hc=!1;p.Ec=null;f[6]?(p.qm=f[6][0],p.rm=f[6][1],p.Ej=f[6][2]):(p.qm=null,p.rm=0,p.Ej=0);f[7]?p.Dc=f[7]:p.Dc=null;p.index=e;p.k=[];p.pk=[];p.Re=[new qb(p)];p.ae=0;p.gd=null;p.Jv=0;p.Kh=!0;p.Am=rb;p.gx=sb;p.nx=ub;p.ea=vb;p.nj=wb;p.oj=xb;p.Bf=yb;p.Kk=zb;p.Bn=Ab;p.Dn=Bb;p.Ad=Cb;p.En=Db;p.hk=new hb(this.yb,this.xb);p.Vj=!0;p.Wj=!1;p.N={};p.toString=Eb;p.Ta=[];c=0;for(h=f[8].length;c<
h;c++){r=f[8][c];l=this.Ye(r[1]);t=null;n=0;for(d=this.Ta.length;n<d;n++)if(this.Ta[n]instanceof l){t=this.Ta[n];break}t||(t=new l(this),t.Eo=[],t.fj=new ca,t.G&&t.G(),this.Ta.push(t),oc&&t instanceof oc&&(this.pp=t));-1===t.Eo.indexOf(p)&&t.Eo.push(p);n=new t.U(t,p);n.name=r[0];n.da=r[2];n.G();p.Ta.push(n)}p.global=f[9];p.co=f[10];p.Y=[];c=0;for(h=f[12].length;c<h;c++)p.Y.push({id:f[12][c][0],name:f[12][c][1],ob:-1,Zc:!1,Sa:!0,index:c});p.MA=f[13];this.Ep&&!p.K&&!p.co&&k.rf||p.G();p.name&&(this.types[p.name]=
p);this.D.push(p);k.hm&&(c=new k.L(p),c.uid=this.hj++,c.Gs=this.as++,c.hg=0,c.ni=Fb,c.toString=Gb,c.A=f[14],c.G(),p.k.push(c),this.Je[c.uid.toString()]=c)}e=0;for(b=a[4].length;e<b;e++)for(n=a[4][e],d=this.D[n[0]],c=1,h=n.length;c<h;c++)f=this.D[n[c]],f.Qa.push(d),d.vg.push(f);e=0;for(b=a[28].length;e<b;e++){n=a[28][e];d=[];c=0;for(h=n.length;c<h;c++)d.push(this.D[n[c]]);c=0;for(h=d.length;c<h;c++)d[c].hc=!0,d[c].Ec=d}if(0<this.ei)for(e=0,b=this.D.length;e<b;e++)if(f=this.D[e],!f.K&&f.Qa.length){f.Ak=
Array(this.ei);f.ah=Array(this.ei);f.Gq=Array(this.ei);p=[];c=t=l=r=0;for(h=f.Qa.length;c<h;c++)for(k=f.Qa[c],f.Ak[k.ye]=r,r+=k.Iz,f.ah[k.ye]=l,l+=k.wv,f.Gq[k.ye]=t,t+=k.Ww,n=0,d=k.Y.length;n<d;n++)p.push(xa({},k.Y[n]));f.Y=p.concat(f.Y);c=0;for(h=f.Y.length;c<h;c++)f.Y[c].index=c}e=0;for(b=a[5].length;e<b;e++)f=a[5][e],c=new Ib(this,f),this.ro[c.name]=c,this.Md.push(c);e=0;for(b=a[6].length;e<b;e++)f=a[6][e],c=new Jb(this,f),this.vn[c.name]=c,this.xe.push(c);e=0;for(b=this.xe.length;e<b;e++)this.xe[e].bb();
e=0;for(b=this.xe.length;e<b;e++)this.xe[e].Ap();e=0;for(b=this.ym.length;e<b;e++)this.ym[e].bb();M(this.ym);this.uv=a[7];this.fi=a[8];this.Yc=a[9];this.Th=1;this.iw=a[13];this.La=a[14];this.vq=a[15];this.Hz=a[17];this.Mo=a[20];this.vv=0<this.Mo;this.Ly=a[22];this.Rc=this.Ht=a[23];this.bw=a[24];this.Ty=a[25];this.Ka=a[27]&&!this.De;this.mm=Date.now();M(this.ul);this.Rx()};var e=!1;d.prototype.Gp=function(a,b){a.cocoonLazyLoad=!0;a.onerror=function(b){e=a.nq=!0;console&&console.error&&console.error("Error loading image '"+
a.src+"': ",b)};this.Kd?a.src=b:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(e){a.src=e},function(c){e=a.nq=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",c)}):(a.crossOrigin="anonymous",this.Rs(a,b)));this.Ph.push(a)};d.prototype.Uw=function(a){var e,b;e=0;for(b=this.Ph.length;e<b;e++)if(this.Ph[e].Fv===a)return this.Ph[e];return null};var h=0,r=!1;d.prototype.Jx=function(){this.Tg&&(h=this.Tg.rz(this.uv))};d.prototype.jq=function(){var a=
h,e=0,b=0,c=!0,n,f,b=0;for(n=this.Ph.length;b<n;b++){f=this.Ph[b];var d=f.hn;if(!d||0>=d)d=5E4;a+=d;f.src&&(f.complete||f.loaded)&&!f.nq?e+=d:c=!1}c&&this.Ty&&this.Tg&&(r||(this.Tg.xz(),r=!0),b=this.Tg.qx(),e+=b,b<h&&(c=!1));this.Od=0==a?1:e/a;return c};var n=!1;d.prototype.go=function(){if(this.Pa||this.C){var a=this.Pa||this.Oo;this.Ob&&this.Ds();var b=window.innerWidth,c=window.innerHeight;this.qh===b&&this.ph===c||this.setSize(b,c);this.Od=0;this.Ar=-1;var h=this;if(this.jq()&&(4!==this.vf||n))this.Kx();
else{c=Date.now()-this.mm;if(a){var d=this.width,p=this.height,b=this.devicePixelRatio;if(3>this.vf&&(this.Jd||500<=c&&this.Ar!=this.Od)){a.clearRect(0,0,d,p);var c=d/2,p=p/2,d=0===this.vf&&this.uf.pl.complete,k=40*b,r=0,t=80*b,l;if(d){var g=this.uf.pl,t=g.width*b;l=g.height*b;k=t/2;r=l/2;a.drawImage(g,v(c-k),v(p-r),t,l)}1>=this.vf?(c=v(c-k)+.5,p=v(p+(r+(d?12*b:0)))+.5,a.fillStyle=e?"red":"DodgerBlue",a.fillRect(c,p,Math.floor(t*this.Od),6*b),a.strokeStyle="black",a.strokeRect(c,p,t,6*b),a.strokeStyle=
"white",a.strokeRect(c-1*b,p-1*b,t+2*b,8*b)):2===this.vf&&(a.font=this.Kd?"12pt ArialMT":"12pt Arial",a.fillStyle=e?"#f00":"#999",a.LA="middle",b=Math.round(100*this.Od)+"%",d=a.measureText?a.measureText(b):null,a.fillText(b,c-(d?d.width:0)/2,p));this.Ar=this.Od}else if(4===this.vf){this.gw(a);f?f(function(){h.go()}):setTimeout(function(){h.go()},16);return}}setTimeout(function(){h.go()},this.Jd?10:100)}}};var F=-1,K="undefined"===typeof cr_is_preview?200:0,z=!0,p=!1,t=0,N=0,O="undefined"===typeof cr_is_preview?
3E3:0,A=null,B=null,E=0;d.prototype.gw=function(a){if(!n){for(var b=Math.ceil(this.width),c=Math.ceil(this.height),h=this.uf.pl,f=this.uf.Sy,d=this.uf.Kz,k=0;4>k;++k)if(!h[k].complete||!f[k].complete||!d[k].complete)return;0===E&&(F=Date.now());var k=Date.now(),r=!1,g=a,m,q;z||p?(a.clearRect(0,0,b,c),A&&A.width===b&&A.height===c||(A=document.createElement("canvas"),A.width=b,A.height=c,B=A.getContext("2d")),g=B,r=!0,z&&1===E&&(F=Date.now())):a.globalAlpha=1;g.fillStyle="#333333";g.fillRect(0,0,b,
c);256<this.Yh?(m=Ea(.22*c,105,.6*b),q=.25*m,g.drawImage(l(f,m),.5*b-m/2,.2*c-q/2,m,q),q=m=Math.min(.395*c,.95*b),g.drawImage(l(h,m),.5*b-m/2,.485*c-q/2,m,q),m=Ea(.22*c,105,.6*b),q=.25*m,g.drawImage(l(d,m),.5*b-m/2,.868*c-q/2,m,q),g.fillStyle="#3C3C3C",m=b,q=Math.max(.005*c,2),g.fillRect(0,.8*c-q/2,m,q),g.fillStyle=e?"red":"#E0FF65",m=b*this.Od,g.fillRect(.5*b-m/2,.8*c-q/2,m,q)):(q=m=.55*c,g.drawImage(l(h,m),.5*b-m/2,.45*c-q/2,m,q),g.fillStyle="#3C3C3C",m=b,q=Math.max(.005*c,2),g.fillRect(0,.85*c-
q/2,m,q),g.fillStyle=e?"red":"#E0FF65",m=b*this.Od,g.fillRect(.5*b-m/2,.85*c-q/2,m,q));r&&(z?a.globalAlpha=0===E?0:Math.min((k-F)/300,1):p&&(a.globalAlpha=Math.max(1-(k-N)/300,0)),a.drawImage(A,0,0,b,c));z&&300<=k-F&&2<=E&&(z=!1,t=k);!z&&k-t>=O&&!p&&1<=this.Od&&(p=!0,N=k);if(p&&k-N>=300+K||"undefined"!==typeof cr_is_preview&&1<=this.Od&&500>Date.now()-F)n=!0,p=z=!1,this.uf=B=A=null;++E}};d.prototype.Kx=function(){this.Ob&&(this.canvas.parentNode.removeChild(this.Ob),this.Ob=this.Oo=null);this.mm=
Date.now();this.rg=Wa();var a,e,b;if(this.Ep)for(a=0,e=this.D.length;a<e;a++)b=this.D[a],b.K||b.co||!b.Aa.rf||b.G();else this.Ji=!1;a=0;for(e=this.Md.length;a<e;a++)this.Md[a].Gv();2<=this.oc&&(a=this.yb/this.xb,e=this.width/this.height,this.Th=2!==this.oc&&e>a||2===this.oc&&e<a?this.height/this.xb:this.width/this.yb);this.Nq?this.ro[this.Nq].rp():this.Md[0].rp();this.Ep||(this.ml=1,this.trigger(V.prototype.n.Xp,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&
navigator.splashscreen.hide();a=0;for(e=this.D.length;a<e;a++)b=this.D[a],b.xy&&b.xy();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.za(!1);this.gc&&AppMobi.webview.execute("onGameReady();")};d.prototype.za=function(a,e,b){if(this.na){var c=Wa();if(b||!this.Ci||a){a||(f?this.Vo=f(this.ot):this.up=setTimeout(this.ot,this.pf?1:16));e=e||c;var h=this.oc;((b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&
!this.Be)||this.Ai)&&0<this.$f&&(h=this.$f);if(0<h){var h=window.innerWidth,n=window.innerHeight;this.qh===h&&this.ph===n||this.setSize(h,n)}this.ib||(b?(this.Dk||(this.zn=jQuery(this.canvas).css("margin")||"0",this.Dk=!0),this.vi||this.mg||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.Dk?(this.vi||this.mg||jQuery(this.canvas).css("margin",this.zn),
this.zn="",this.Dk=!1,0===this.oc&&this.setSize(Math.round(this.ks/this.devicePixelRatio),Math.round(this.js/this.devicePixelRatio),!0)):(this.ks=this.width,this.js=this.height));this.Ji&&(b=this.jq(),this.ml=this.Od,b&&(this.Ji=!1,this.Od=1,this.trigger(V.prototype.n.Xp,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.jy(e);!this.la&&!this.Jd||this.ho||this.Bj||a||(this.la=!1,this.C?this.Xb():this.Qc(),this.Aj&&(this.canvas&&this.canvas.toDataURL&&(this.dt=this.canvas.toDataURL(this.Aj[0],
this.Aj[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.dt),this.trigger(V.prototype.n.su,null)),this.Aj=null));this.HA||(this.vd++,this.Zf++,this.Hk++);this.aj+=Wa()-c}}};d.prototype.jy=function(a){var e,b,c,h,f,n,d,p;1E3<=a-this.rg&&(this.rg+=1E3,1E3<=a-this.rg&&(this.rg=a),this.yn=this.Hk,this.Hk=0,this.gn=this.aj,this.aj=0);e=0;0!==this.cl&&(e=a-this.cl,0>e&&(e=0),this.Vf=e/=1E3,.5<this.Vf?this.Vf=0:this.Vf>1/this.Wr&&(this.Vf=1/this.Wr));this.cl=a;this.Uf=this.Vf*this.If;this.ab.add(this.Uf);
this.Ve.add(e);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Ai)&&!this.Be;2<=this.oc||a&&0<this.$f?(e=this.yb/this.xb,b=this.width/this.height,c=this.oc,a&&0<this.$f&&(c=this.$f),this.Th=2!==c&&b>e||2===c&&b<e?this.height/this.xb:this.width/this.yb,this.na&&(this.na.ip(this.na.scrollX),this.na.jp(this.na.scrollY))):this.Th=this.ng?this.devicePixelRatio:1;this.Qb();this.Uc++;this.oe.iz();this.Uc--;this.Qb();this.Uc++;b=this.gs.wd();
a=0;for(e=b.length;a<e;a++)b[a].JA();a=0;for(e=this.D.length;a<e;a++)if(n=this.D[a],!n.K&&(n.Ta.length||n.Qa.length))for(b=0,c=n.k.length;b<c;b++)for(d=n.k[b],h=0,f=d.P.length;h<f;h++)d.P[h].za();a=0;for(e=this.D.length;a<e;a++)if(n=this.D[a],!n.K&&(n.Ta.length||n.Qa.length))for(b=0,c=n.k.length;b<c;b++)for(d=n.k[b],h=0,f=d.P.length;h<f;h++)p=d.P[h],p.Ry&&p.Ry();b=this.Go.wd();a=0;for(e=b.length;a<e;a++)b[a].za();this.Uc--;this.Lx();for(a=0;this.Uh&&10>a++;)this.Dq(this.Uh);a=0;for(e=this.xe.length;a<
e;a++)this.xe[a].Nn=!1;this.na.Xf&&this.na.Xf.nb();M(this.sj);this.Uc++;a=0;for(e=this.D.length;a<e;a++)if(n=this.D[a],!n.K&&(n.Ta.length||n.Qa.length))for(b=0,c=n.k.length;b<c;b++)for(d=n.k[b],h=0,f=d.P.length;h<f;h++)p=d.P[h],p.Fj&&p.Fj();b=this.hs.wd();a=0;for(e=b.length;a<e;a++)b[a].Fj();this.Uc--};d.prototype.zf=function(){var a,e,b,c,h,n,f,d,p;a=0;for(e=this.D.length;a<e;a++)if(f=this.D[a],!f.K)for(b=0,c=f.k.length;b<c;b++)if(d=f.k[b],d.zf&&d.zf(),d.P)for(h=0,n=d.P.length;h<n;h++)p=d.P[h],p.zf&&
p.zf()};d.prototype.Dq=function(a){var e=this.na;this.na.yz();var b,c,h;if(this.C)for(b=0,c=this.D.length;b<c;b++)h=this.D[b],h.K||!h.zm||h.global&&0!==h.k.length||-1!==a.ri.indexOf(h)||h.zm();e==a&&M(this.oe.Cc);M(this.sj);this.Ls(!0);a.rp();this.Ls(!1);this.la=!0;this.Qb()};d.prototype.Ls=function(a){var e,b,c,h,n,f,d,p,k;e=0;for(b=this.Ta.length;e<b;e++)c=this.Ta[e],a?c.zh&&c.zh():c.Ah&&c.Ah();e=0;for(b=this.D.length;e<b;e++)if(c=this.D[e],c.global||c.Aa.hm)for(h=0,n=c.k.length;h<n;h++)if(f=c.k[h],
a?f.zh&&f.zh():f.Ah&&f.Ah(),f.P)for(d=0,p=f.P.length;d<p;d++)k=f.P[d],a?k.zh&&k.zh():k.Ah&&k.Ah()};d.prototype.Kg=function(a){this.Go.add(a)};d.prototype.Hd=function(a){return a&&-1!==a.gj?this.Vf*a.gj:this.Uf};d.prototype.Qc=function(){this.na.Qc(this.Pa);this.gc&&this.Pa.present()};d.prototype.Xb=function(){this.Ka&&(this.Wf=1,this.na.Tf(this.C));this.na.Xb(this.C);this.C.Vy()};d.prototype.Pm=function(a){a&&this.uk.push(a)};d.prototype.dz=function(a){Da(this.uk,a)};d.prototype.ji=function(a){a=
a.toString();return this.Je.hasOwnProperty(a)?this.Je[a]:null};var y=[];d.prototype.Yd=function(a){var e,b;e=a.type.name;var c=null;if(this.Sf.hasOwnProperty(e)){if(c=this.Sf[e],c.contains(a))return}else c=y.length?y.pop():new ca,this.Sf[e]=c;c.add(a);this.of=!0;if(a.hc)for(e=0,b=a.siblings.length;e<b;e++)this.Yd(a.siblings[e]);this.bo&&c.Nh.push(a);this.ao||(this.Uc++,this.trigger(Object.getPrototypeOf(a.type.Aa).n.Pp,a),this.Uc--)};d.prototype.Qb=function(){if(this.of){var a,e,b,c,h,n;this.bo=!0;
b=0;for(h=this.Fd.length;b<h;++b)for(a=this.Fd[b],e=a.type,e.k.push(a),c=0,n=e.Qa.length;c<n;++c)e.Qa[c].k.push(a),e.Qa[c].Kh=!0;M(this.Fd);this.ju();Va(this.Sf);this.of=this.bo=!1}};d.prototype.ju=function(){for(var a in this.Sf)this.Sf.hasOwnProperty(a)&&this.Pt(this.Sf[a])};d.prototype.Pt=function(a){var e=a.wd(),b=e[0].type,c,h,n,f,d,p;Xa(b.k,a);b.Kh=!0;0===b.k.length&&(b.Wj=!1);c=0;for(h=b.Qa.length;c<h;++c)p=b.Qa[c],Xa(p.k,a),p.Kh=!0;c=0;for(h=this.oe.Cc.length;c<h;++c)if(d=this.oe.Cc[c],d.kc.hasOwnProperty(b.index)&&
Xa(d.kc[b.index].Ae,a),!b.K)for(n=0,f=b.Qa.length;n<f;++n)p=b.Qa[n],d.kc.hasOwnProperty(p.index)&&Xa(d.kc[p.index].Ae,a);if(d=e[0].q){if(d.bd)for(n=d.k,c=0,h=n.length;c<h;++c)f=n[c],a.contains(f)&&(f.Ba(),d.Pb.update(f,f.xc,null),f.xc.set(0,0,-1,-1));Xa(d.k,a);d.wj(0)}for(c=0;c<e.length;++c)this.Ot(e[c],b);a.clear();y.push(a);this.la=!0};d.prototype.Ot=function(a,e){var b,c,h;b=0;for(c=this.uk.length;b<c;++b)this.uk[b](a);a.ff&&e.hk.update(a,a.ff,null);(b=a.q)&&b.Fh(a,!0);if(a.P)for(b=0,c=a.P.length;b<
c;++b)h=a.P[b],h.Nd&&h.Nd(),h.behavior.fj.remove(a);this.gs.remove(a);this.Go.remove(a);this.hs.remove(a);a.Nd&&a.Nd();this.Je.hasOwnProperty(a.uid.toString())&&delete this.Je[a.uid.toString()];this.wl--;100>e.pk.length&&e.pk.push(a)};d.prototype.jn=function(a,e,b,c){if(a.K){var h=v(Math.random()*a.vg.length);return this.jn(a.vg[h],e,b,c)}return a.gd?this.hf(a.gd,e,!1,b,c,!1):null};var u=[];d.prototype.hf=function(a,e,b,c,h,n){var f,d,p,k;if(!a)return null;var r=this.D[a[1]],t=r.Aa.rf;if(this.Ji&&
t&&!r.co||t&&!this.C&&11===a[0][11])return null;var l=e;t||(e=null);var g;r.pk.length?(g=r.pk.pop(),g.jc=!0,r.Aa.L.call(g,r)):(g=new r.Aa.L(r),g.jc=!1);!b||n||this.Je.hasOwnProperty(a[2].toString())?g.uid=this.hj++:g.uid=a[2];this.Je[g.uid.toString()]=g;g.Gs=this.as++;g.hg=r.k.length;f=0;for(d=this.Fd.length;f<d;++f)this.Fd[f].type===r&&g.hg++;g.ni=Fb;g.toString=Gb;p=a[3];if(g.jc)Va(g.N);else{g.N={};if("undefined"!==typeof cr_is_preview)for(g.hr=[],g.hr.length=p.length,f=0,d=p.length;f<d;f++)g.hr[f]=
p[f][1];g.tb=[];g.tb.length=p.length}f=0;for(d=p.length;f<d;f++)g.tb[f]=p[f][0];if(t){var m=a[0];g.x=ga(c)?m[0]:c;g.y=ga(h)?m[1]:h;g.z=m[2];g.width=m[3];g.height=m[4];g.depth=m[5];g.m=m[6];g.opacity=m[7];g.rc=m[8];g.tc=m[9];g.Rb=m[10];f=m[11];!this.C&&r.Y.length&&(g.Rb=f);g.Vh=jb(g.Rb);this.F&&kb(g,g.Rb,this.F);if(g.jc){f=0;for(d=m[12].length;f<d;f++)for(p=0,k=m[12][f].length;p<k;p++)g.Va[f][p]=m[12][f][p];g.Fa.set(0,0,0,0);g.ff.set(0,0,-1,-1);g.xc.set(0,0,-1,-1);g.Cb.Oe(g.Fa);M(g.Wm)}else{g.Va=m[12].slice(0);
f=0;for(d=g.Va.length;f<d;f++)g.Va[f]=m[12][f].slice(0);g.xa=[];g.Ze=[];g.Ze.length=r.Y.length;g.Fa=new va(0,0,0,0);g.ff=new va(0,0,-1,-1);g.xc=new va(0,0,-1,-1);g.Cb=new wa;g.Wm=[];g.O=Kb;g.sv=Lb;g.Db=Mb;g.Ba=Nb;g.Et=Ob;g.Dp=Pb;g.fe=Qb}g.Lg=!1;g.Dz=0;g.Cz=0;g.Bz=null;14===m.length&&(g.Lg=!0,g.Dz=m[13][0],g.Cz=m[13][1],g.Bz=m[13][2]);f=0;for(d=r.Y.length;f<d;f++)g.Ze[f]=!0;g.Pe=!0;g.Vd=Rb;g.Vd();g.Ft=!!g.xa.length;g.bk=!0;g.Zm=!0;r.Vj=!0;g.visible=!0;g.gj=-1;g.q=e;g.Wd=e.k.length;g.Wf=0;"undefined"===
typeof g.aa&&(g.aa=null);this.la=g.Ed=!0}var q;M(u);f=0;for(d=r.Qa.length;f<d;f++)u.push.apply(u,r.Qa[f].Ta);u.push.apply(u,r.Ta);if(g.jc)for(f=0,d=u.length;f<d;f++){var F=u[f];q=g.P[f];q.jc=!0;F.behavior.L.call(q,F,g);m=a[4][f];p=0;for(k=m.length;p<k;p++)q.A[p]=m[p];q.G();F.behavior.fj.add(g)}else for(g.P=[],f=0,d=u.length;f<d;f++)F=u[f],q=new F.behavior.L(F,g),q.jc=!1,q.A=a[4][f].slice(0),q.G(),g.P.push(q),F.behavior.fj.add(g);m=a[5];if(g.jc)for(f=0,d=m.length;f<d;f++)g.A[f]=m[f];else g.A=m.slice(0);
this.Fd.push(g);this.of=!0;e&&(e.Sh(g,!0),1!==e.md||1!==e.nd)&&(r.Wj=!0);this.wl++;if(r.hc){if(g.hc=!0,g.jc?M(g.siblings):g.siblings=[],!b&&!n){f=0;for(d=r.Ec.length;f<d;f++)if(r.Ec[f]!==r){if(!r.Ec[f].gd)return null;g.siblings.push(this.hf(r.Ec[f].gd,l,!1,t?g.x:c,t?g.y:h,!0))}f=0;for(d=g.siblings.length;f<d;f++)for(g.siblings[f].siblings.push(g),p=0;p<d;p++)f!==p&&g.siblings[f].siblings.push(g.siblings[p])}}else g.hc=!1,g.siblings=null;g.G();f=0;for(d=g.P.length;f<d;f++)g.P[f].Qy&&g.P[f].Qy();return g};
d.prototype.Mk=function(a){var e,b;e=0;for(b=this.na.ba.length;e<b;e++){var c=this.na.ba[e];if(mb(c.name,a))return c}return null};d.prototype.dh=function(a){a=v(a);0>a&&(a=0);a>=this.na.ba.length&&(a=this.na.ba.length-1);return this.na.ba[a]};d.prototype.kx=function(a){return ha(a)?this.dh(a):this.Mk(a.toString())};d.prototype.bn=function(a){var e,b;e=0;for(b=a.length;e<b;e++)a[e].ea().ga=!0};d.prototype.nj=function(a){var e,b;e=0;for(b=a.length;e<b;e++)a[e].nj()};d.prototype.oj=function(a){var e,
b;e=0;for(b=a.length;e<b;e++)a[e].oj()};d.prototype.Bf=function(a){var e,b;e=0;for(b=a.length;e<b;e++)a[e].Bf()};d.prototype.Ct=function(a){if(a.Vj){var e,b,c=a.k;e=0;for(b=c.length;e<b;++e)c[e].Dp();c=this.Fd;e=0;for(b=c.length;e<b;++e)c[e].type===a&&c[e].Dp();a.Vj=!1}};d.prototype.Lk=function(a,e,b,c){var h,f,d=a?1!==a.md||1!==a.nd:!1;if(e.K)for(a=0,h=e.vg.length;a<h;++a)f=e.vg[a],d||f.Wj?Ba(c,f.k):(this.Ct(f),f.hk.Ml(b,c));else d||e.Wj?Ba(c,e.k):(this.Ct(e),e.hk.Ml(b,c))};d.prototype.li=function(a,
e,b,c){var h,f;h=0;for(f=e.length;h<f;++h)this.Lk(a,e[h],b,c)};d.prototype.In=function(a,e,b){var c=this.pp;c&&this.li(a,c.Eo,e,b)};d.prototype.it=function(a,e,b,c){var h=a.ea(),f,d,n,p,k=this.$a().gb.Xc,g,r,t;if(h.ga)for(c||(h.ga=!1,M(h.k)),f=0,p=a.k.length;f<p;f++)if(n=a.k[f],n.Ba(),g=n.q.fc(e,b,!0),r=n.q.fc(e,b,!1),n.Db(g,r)){if(c)return!1;h.k.push(n)}else k&&h.Z.push(n);else{d=0;t=k?h.Z:h.k;f=0;for(p=t.length;f<p;f++)if(n=t[f],n.Ba(),g=n.q.fc(e,b,!0),r=n.q.fc(e,b,!1),n.Db(g,r)){if(c)return!1;
k?h.k.push(n):(h.k[d]=h.k[f],d++)}c||(t.length=d)}a.Ad();return c?!0:h.Sk()};d.prototype.Hf=function(a,e){if(!(a&&e&&a!==e&&a.Ed&&e.Ed))return!1;a.Ba();e.Ba();var b=a.q,c=e.q,h,f,d,n,p,k,g,r;if(b===c||b.md===c.md&&c.nd===c.nd&&b.scale===c.scale&&b.m===c.m&&b.Xd===c.Xd){if(!a.Fa.Zn(e.Fa)||!a.Cb.Yn(e.Cb)||a.Lg&&e.Lg)return!1;if(a.Lg)return this.kt(a,e);if(e.Lg)return this.kt(e,a);g=a.aa&&!a.aa.qf();h=e.aa&&!e.aa.qf();if(!g&&!h)return!0;g?(a.aa.cf(a.width,a.height,a.m),g=a.aa):(this.Bc.Gg(a.Cb,a.x,a.y,
a.width,a.height),g=this.Bc);h?(e.aa.cf(e.width,e.height,e.m),r=e.aa):(this.Bc.Gg(e.Cb,e.x,e.y,e.width,e.height),r=this.Bc);return g.kg(r,e.x-a.x,e.y-a.y)}g=a.aa&&!a.aa.qf();h=e.aa&&!e.aa.qf();g?(a.aa.cf(a.width,a.height,a.m),this.Bc.Ws(a.aa)):this.Bc.Gg(a.Cb,a.x,a.y,a.width,a.height);g=this.Bc;h?(e.aa.cf(e.width,e.height,e.m),this.sp.Ws(e.aa)):this.sp.Gg(e.Cb,e.x,e.y,e.width,e.height);r=this.sp;h=0;for(f=g.od;h<f;h++)d=2*h,n=d+1,p=g.mb[d],k=g.mb[n],g.mb[d]=b.Ra(p+a.x,k+a.y,!0),g.mb[n]=b.Ra(p+a.x,
k+a.y,!1);g.Ba();h=0;for(f=r.od;h<f;h++)d=2*h,n=d+1,p=r.mb[d],k=r.mb[n],r.mb[d]=c.Ra(p+e.x,k+e.y,!0),r.mb[n]=c.Ra(p+e.x,k+e.y,!1);r.Ba();return g.kg(r,0,0)};var G=new wa,I=new va(0,0,0,0),P=[];d.prototype.kt=function(a,e){var b,c,h,f,d=e.Fa,n=a.x,p=a.y;a.Rq(d,P);var k=e.aa&&!e.aa.qf();b=0;for(c=P.length;b<c;++b)if(h=P[b],f=h.Js,d.$n(f,n,p)&&(G.Oe(f),G.offset(n,p),G.Yn(e.Cb)))if(k)if(e.aa.cf(e.width,e.height,e.m),h.Cg){if(h.Cg.kg(e.aa,e.x-(n+f.left),e.y-(p+f.top)))return M(P),!0}else{if(this.Bc.Gg(G,
0,0,f.right-f.left,f.bottom-f.top),this.Bc.kg(e.aa,e.x,e.y))return M(P),!0}else if(h.Cg){if(this.Bc.Gg(e.Cb,0,0,e.width,e.height),h.Cg.kg(this.Bc,-(n+f.left),-(p+f.top)))return M(P),!0}else return M(P),!0;M(P);return!1};d.prototype.tp=function(a,e){if(!e||!e.Ed)return!1;e.Ba();if(!e.Fa.Zn(a))return!1;if(e.Lg){e.Rq(a,P);var b,c,h,f,d=e.x,n=e.y;b=0;for(c=P.length;b<c;++b)if(h=P[b],f=h.Js,a.$n(f,d,n))if(h.Cg){if(this.Bc.Oe(a,0,0),h.Cg.kg(this.Bc,-(d+f.left),-(n+f.top)))return M(P),!0}else return M(P),
!0;M(P);return!1}G.Oe(a);if(!e.Cb.Yn(G))return!1;if(!e.aa||e.aa.qf())return!0;e.aa.cf(e.width,e.height,e.m);G.offset(-a.left,-a.top);this.Bc.Gg(G,0,0,1,1);return e.aa.kg(this.Bc,a.left-e.x,a.top-e.y)};d.prototype.jt=function(a,e,b,c,h){if(!h||!h.Ed)return!1;h.Ba();I.set(pa(a,b),pa(e,c),oa(a,b),oa(e,c));if(!h.Fa.Zn(I))return!1;if(h.Lg){h.Rq(I,P);var f,d,n,p=h.x,k=h.y;h=0;for(f=P.length;h<f;++h)if(d=P[h],n=d.Js,I.$n(n,p,k)&&(G.Oe(n),G.offset(p,k),G.si(a,e,b,c)))if(d.Cg){if(d.Cg.si(p+n.left,k+n.top,
a,e,b,c))return M(P),!0}else return M(P),!0;M(P);return!1}if(!h.Cb.si(a,e,b,c))return!1;if(!h.aa||h.aa.qf())return!0;h.aa.cf(h.width,h.height,h.m);return h.aa.si(h.x,h.y,a,e,b,c)};d.prototype.yt=function(a,e){if(!e)return!1;var b,c,h,f,d;b=0;for(c=a.Ta.length;b<c;b++)if(a.Ta[b].behavior instanceof e)return!0;if(!a.K)for(b=0,c=a.Qa.length;b<c;b++)for(d=a.Qa[b],h=0,f=d.Ta.length;h<f;h++)if(d.Ta[h].behavior instanceof e)return!0;return!1};d.prototype.yp=function(a){return this.yt(a,fc.iA)};d.prototype.zp=
function(a){return this.yt(a,fc.jA)};var W=[];d.prototype.Td=function(a){var e,b,c;a.Ba();this.In(a.q,a.Fa,W);e=0;for(b=W.length;e<b;++e)if(c=W[e],c.N.solidEnabled&&this.Hf(a,c))return M(W),c;M(W);return null};d.prototype.Az=function(a){var e,b,c;this.In(null,a,W);e=0;for(b=W.length;e<b;++e)if(c=W[e],c.N.solidEnabled&&this.tp(a,c))return M(W),c;M(W);return null};d.prototype.$y=function(a,e,b,c){c=c||50;var h=a.x,f=a.y,d,n=null,p=null;for(d=0;d<c;d++)if(a.x=h+e*d,a.y=f+b*d,a.O(),!this.Hf(a,n)&&((n=
this.Td(a))&&(p=n),!n&&!n))return p&&this.Xy(a,e,b,p),!0;a.x=h;a.y=f;a.O();return!1};d.prototype.Xy=function(a,e,b,c){var h=2,f,d=!1;f=!1;for(var n=a.x,p=a.y;16>=h;)f=1/h,h*=2,a.x+=e*f*(d?1:-1),a.y+=b*f*(d?1:-1),a.O(),this.Hf(a,c)?f=d=!0:(f=d=!1,n=a.x,p=a.y);f&&(a.x=n,a.y=p,a.O())};d.prototype.Hs=function(a,e){var b=ga(e)?100:e,c=0,h=a.x,f=a.y,d=0,n=0,p=0,k=this.Td(a);if(!k)return!0;for(;c<=b;){switch(d){case 0:n=0;p=-1;c++;break;case 1:n=1;p=-1;break;case 2:n=1;p=0;break;case 3:p=n=1;break;case 4:n=
0;p=1;break;case 5:n=-1;p=1;break;case 6:n=-1;p=0;break;case 7:p=n=-1}d=(d+1)%8;a.x=v(h+n*c);a.y=v(f+p*c);a.O();if(!this.Hf(a,k)&&(k=this.Td(a),!k))return!0}a.x=h;a.y=f;a.O();return!1};d.prototype.rj=function(a,e){a.Ed&&e.Ed&&this.sj.push([a,e])};d.prototype.Cv=function(a,e){var b,c,h;b=0;for(c=this.sj.length;b<c;b++)if(h=this.sj[b],h[0]==a&&h[1]==e||h[0]==e&&h[1]==a)return!0;return!1};d.prototype.Av=function(a,e,b){var c=a.x,h=a.y,f=oa(10,Sa(e,b,c,h)),d=La(e,b,c,h),n=this.Td(a);if(!n)return Ha(d+
qa);var p=n,k,g,r,t,l=R(5);for(k=1;36>k;k++)if(g=d-k*l,a.x=e+Math.cos(g)*f,a.y=b+Math.sin(g)*f,a.O(),!this.Hf(a,p)&&(p=this.Td(a),!p)){r=g;break}36===k&&(r=Ha(d+qa));p=n;for(k=1;36>k;k++)if(g=d+k*l,a.x=e+Math.cos(g)*f,a.y=b+Math.sin(g)*f,a.O(),!this.Hf(a,p)&&(p=this.Td(a),!p)){t=g;break}36===k&&(t=Ha(d+qa));a.x=c;a.y=h;a.O();if(t===r)return t;a=Ma(t,r)/2;a=Qa(t,r)?Ha(r+a+qa):Ha(t+a);r=Math.cos(d);d=Math.sin(d);t=Math.cos(a);a=Math.sin(a);e=r*t+d*a;return La(0,0,r-2*e*t,d-2*e*a)};var S=-1;d.prototype.trigger=
function(a,e,b){if(!this.na)return!1;var c=this.na.Xf;if(!c)return!1;var h=!1,f,d,n;S++;var p=c.pn;d=0;for(n=p.length;d<n;++d)f=this.tt(a,e,p[d],b),h=h||f;f=this.tt(a,e,c,b);S--;return h||f};d.prototype.tt=function(a,e,b,c){var h=!1,f,d,n,p;if(e)for(n=this.wp(a,e,e.type.name,b,c),h=h||n,p=e.type.Qa,f=0,d=p.length;f<d;++f)n=this.wp(a,e,p[f].name,b,c),h=h||n;else n=this.wp(a,e,"system",b,c),h=h||n;return h};d.prototype.wp=function(a,e,b,c,h){var f,d=!1,n=!1,n="undefined"!==typeof h,p=(n?c.Iq:c.ut)[b];
if(!p)return d;var k=null;c=0;for(f=p.length;c<f;++c)if(p[c].method==a){k=p[c].ai;break}if(!k)return d;var g;n?g=k[h]:g=k;if(!g)return null;c=0;for(f=g.length;c<f;c++)a=g[c][0],h=g[c][1],n=this.Qw(e,b,a,h),d=d||n;return d};d.prototype.Qw=function(a,e,b,c){var h,f,d=!1;this.xp++;var n=this.$a().gb;n&&this.nj(n.Gf);var p=1<this.xp;this.nj(b.Gf);p&&this.Yy();var k=this.Ll(b);k.gb=b;a&&(h=this.types[e].ea(),h.ga=!1,M(h.k),h.k[0]=a,this.types[e].Ad());a=!0;if(b.parent){e=k.ht;for(h=b.parent;h;)e.push(h),
h=h.parent;e.reverse();h=0;for(f=e.length;h<f;h++)if(!e[h].kz()){a=!1;break}}a&&(this.Zf++,b.Xc?b.jz(c):b.nb(),d=d||k.qg);this.Fl();p&&this.Oy();this.Bf(b.Gf);n&&this.Bf(n.Gf);this.of&&0===this.Uc&&0===S&&!this.eo&&this.Qb();this.xp--;return d};d.prototype.ag=function(){var a=this.$a();return a.gb.pb[a.fb]};d.prototype.bx=function(){return this.ag().type};d.prototype.Ux=function(){return 0===this.$a().fb};d.prototype.ax=function(){var a=this.$a();return a.gb.dd[a.nc]};d.prototype.Yy=function(){this.ol++;
this.ol>=this.yo.length&&this.yo.push([])};d.prototype.Oy=function(){this.ol--};d.prototype.Sq=function(){return this.yo[this.ol]};d.prototype.Ll=function(a){this.xk++;this.xk>=this.un.length&&this.un.push(new Sb);var e=this.$a();e.reset(a);return e};d.prototype.Fl=function(){this.xk--};d.prototype.$a=function(){return this.un[this.xk]};d.prototype.Zy=function(){this.ql++;this.ql>=this.Ao.length&&this.Ao.push(aa({name:void 0,index:0,Hb:!1}));var a=this.cx();a.name=void 0;a.index=0;a.Hb=!1;return a};
d.prototype.Py=function(){this.ql--};d.prototype.cx=function(){return this.Ao[this.ql]};d.prototype.Tq=function(a,e){for(var b,c,h,f,d,n;e;){b=0;for(c=e.sd.length;b<c;b++)if(n=e.sd[b],n instanceof Tb&&mb(a,n.name))return n;e=e.parent}b=0;for(c=this.xe.length;b<c;b++)for(d=this.xe[b],h=0,f=d.kf.length;h<f;h++)if(n=d.kf[h],n instanceof Tb&&mb(a,n.name))return n;return null};d.prototype.Uq=function(a){var e,b;e=0;for(b=this.Md.length;e<b;e++)if(this.Md[e].da===a)return this.Md[e];return null};d.prototype.nf=
function(a){var e,b;e=0;for(b=this.D.length;e<b;e++)if(this.D[e].da===a)return this.D[e];return null};d.prototype.hx=function(a){var e,b;e=0;for(b=this.Sg.length;e<b;e++)if(this.Sg[e].da===a)return this.Sg[e];return null};d.prototype.Lv=function(a,e){this.Aj=[a,e];this.la=!0};d.prototype.Lx=function(){var a=this,e=this.gp,c=this.Ee,h=this.jl,f=!1;this.bt&&(f=!0,e="__c2_continuouspreview",this.bt=!1);if(e.length){this.Qb();c=this.oz();if(g()&&!this.Jd)k(e,c,function(){ea("Saved state to IndexedDB storage ("+
c.length+" bytes)");a.Ee=c;a.trigger(V.prototype.n.Mm,null);a.Ee="";f&&b()},function(h){try{localStorage.setItem("__c2save_"+e,c),ea("Saved state to WebStorage ("+c.length+" bytes)"),a.Ee=c,a.trigger(V.prototype.n.Mm,null),a.Ee="",f&&b()}catch(d){ea("Failed to save game state: "+h+"; "+d),a.trigger(V.prototype.n.$p,null)}});else try{localStorage.setItem("__c2save_"+e,c),ea("Saved state to WebStorage ("+c.length+" bytes)"),a.Ee=c,this.trigger(V.prototype.n.Mm,null),a.Ee="",f&&b()}catch(d){ea("Error saving to WebStorage: "+
d),a.trigger(V.prototype.n.$p,null)}this.jl=this.gp="";this.wb=null}if(h.length){if(g()&&!this.Jd)q(h,function(e){e?(a.wb=e,ea("Loaded state from IndexedDB storage ("+a.wb.length+" bytes)")):(a.wb=localStorage.getItem("__c2save_"+h)||"",ea("Loaded state from WebStorage ("+a.wb.length+" bytes)"));a.Bj=!1;a.wb||(a.wb=null,a.trigger(V.prototype.n.Pj,null))},function(){a.wb=localStorage.getItem("__c2save_"+h)||"";ea("Loaded state from WebStorage ("+a.wb.length+" bytes)");a.Bj=!1;a.wb||(a.wb=null,a.trigger(V.prototype.n.Pj,
null))});else{try{this.wb=localStorage.getItem("__c2save_"+h)||"",ea("Loaded state from WebStorage ("+this.wb.length+" bytes)")}catch(n){this.wb=null}this.Bj=!1;a.wb||(a.wb=null,a.trigger(V.prototype.n.Pj,null))}this.gp=this.jl=""}null!==this.wb&&(this.Qb(),this.iy(this.wb)?(this.Ee=this.wb,this.trigger(V.prototype.n.yu,null),this.Ee=""):a.trigger(V.prototype.n.Pj,null),this.wb=null)};d.prototype.oz=function(){var e,b,c,h,f,d,n,p={c2save:!0,version:1,rt:{time:this.ab.I,walltime:this.Ve.I,timescale:this.If,
tickcount:this.vd,execcount:this.Zf,next_uid:this.hj,running_layout:this.na.da,start_time_offset:Date.now()-this.mm},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};e=0;for(b=this.D.length;e<b;e++)if(f=this.D[e],!f.K&&!this.yp(f)){d={instances:[]};Ua(f.N)&&(d.ex=a(f.N));c=0;for(h=f.k.length;c<h;c++)d.instances.push(this.fp(f.k[c]));p.types[f.da.toString()]=d}e=0;for(b=this.Md.length;e<b;e++)c=this.Md[e],p.layouts[c.da.toString()]=c.Oa();h=p.events.groups;e=0;for(b=this.Sg.length;e<
b;e++)c=this.Sg[e],h[c.da.toString()]=this.eh[c.oi].eg;b=p.events.cnds;for(n in this.ef)this.ef.hasOwnProperty(n)&&(e=this.ef[n],Ua(e.N)&&(b[n]={ex:a(e.N)}));b=p.events.acts;for(n in this.$e)this.$e.hasOwnProperty(n)&&(e=this.$e[n],Ua(e.N)&&(b[n]={ex:a(e.N)}));b=p.events.vars;for(n in this.Oh)this.Oh.hasOwnProperty(n)&&(e=this.Oh[n],e.Zk||e.parent&&!e.Hi||(b[n]=e.data));p.system=this.oe.Oa();return JSON.stringify(p)};d.prototype.Ks=function(){var a,e,b,c,h,f;this.Je={};a=0;for(e=this.D.length;a<e;a++)if(b=
this.D[a],!b.K)for(c=0,h=b.k.length;c<h;c++)f=b.k[c],this.Je[f.uid.toString()]=f};d.prototype.iy=function(a){var e;try{e=JSON.parse(a)}catch(b){return!1}if(!e.c2save||1<e.version)return!1;this.xi=!0;a=e.rt;this.ab.reset();this.ab.I=a.time;this.Ve.reset();this.Ve.I=a.walltime||0;this.If=a.timescale;this.vd=a.tickcount;this.Zf=a.execcount;this.mm=Date.now()-a.start_time_offset;var c=a.running_layout;if(c!==this.na.da)if(c=this.Uq(c))this.Dq(c);else return;var h,f,n,d,p,k,g;k=e.types;for(f in k)if(k.hasOwnProperty(f)&&
(d=this.nf(parseInt(f,10)))&&!d.K&&!this.yp(d)){k[f].ex?d.N=k[f].ex:Va(d.N);p=d.k;n=k[f].instances;c=0;for(h=pa(p.length,n.length);c<h;c++)this.kl(p[c],n[c]);c=n.length;for(h=p.length;c<h;c++)this.Yd(p[c]);c=p.length;for(h=n.length;c<h;c++){p=null;if(d.Aa.rf&&(p=this.na.Nk(n[c].w.l),!p))continue;p=this.hf(d.gd,p,!1,0,0,!0);this.kl(p,n[c])}d.Kh=!0}this.Qb();this.Ks();h=e.layouts;for(f in h)h.hasOwnProperty(f)&&(c=this.Uq(parseInt(f,10)))&&c.Wa(h[f]);h=e.events.groups;for(f in h)h.hasOwnProperty(f)&&
(c=this.hx(parseInt(f,10)))&&this.eh[c.oi]&&this.eh[c.oi].Xl(h[f]);c=e.events.cnds;for(f in this.ef)this.ef.hasOwnProperty(f)&&(c.hasOwnProperty(f)?this.ef[f].N=c[f].ex:this.ef[f].N={});c=e.events.acts;for(f in this.$e)this.$e.hasOwnProperty(f)&&(c.hasOwnProperty(f)?this.$e[f].N=c[f].ex:this.$e[f].N={});c=e.events.vars;for(f in c)c.hasOwnProperty(f)&&this.Oh.hasOwnProperty(f)&&(this.Oh[f].data=c[f]);this.hj=a.next_uid;this.xi=!1;c=0;for(h=this.Ck.length;c<h;++c)p=this.Ck[c],this.trigger(Object.getPrototypeOf(p.type.Aa).n.Kf,
p);M(this.Ck);this.oe.Wa(e.system);c=0;for(h=this.D.length;c<h;c++)if(d=this.D[c],!d.K&&!this.yp(d))for(e=0,f=d.k.length;e<f;e++){p=d.k[e];if(d.hc)for(k=p.ni(),M(p.siblings),a=0,n=d.Ec.length;a<n;a++)g=d.Ec[a],d!==g&&p.siblings.push(g.k[k]);p.yd&&p.yd();if(p.P)for(a=0,n=p.P.length;a<n;a++)k=p.P[a],k.yd&&k.yd()}return this.la=!0};d.prototype.fp=function(e,b){var c,h,f,d,n;d=e.type;f=d.Aa;var p={};b?p.c2=!0:p.uid=e.uid;Ua(e.N)&&(p.ex=a(e.N));if(e.tb&&e.tb.length)for(p.ivs={},c=0,h=e.tb.length;c<h;c++)p.ivs[e.type.Xn[c].toString()]=
e.tb[c];if(f.rf){f={x:e.x,y:e.y,w:e.width,h:e.height,l:e.q.da,zi:e.fe()};0!==e.m&&(f.a=e.m);1!==e.opacity&&(f.o=e.opacity);.5!==e.rc&&(f.hX=e.rc);.5!==e.tc&&(f.hY=e.tc);0!==e.Rb&&(f.bm=e.Rb);e.visible||(f.v=e.visible);e.Ed||(f.ce=e.Ed);-1!==e.gj&&(f.mts=e.gj);if(d.Y.length)for(f.fx=[],c=0,h=d.Y.length;c<h;c++)n=d.Y[c],f.fx.push({name:n.name,active:e.Ze[n.index],params:e.Va[n.index]});p.w=f}if(e.P&&e.P.length)for(p.behs={},c=0,h=e.P.length;c<h;c++)d=e.P[c],d.Oa&&(p.behs[d.type.da.toString()]=d.Oa());
e.Oa&&(p.data=e.Oa());return p};d.prototype.jx=function(a,e){var b,c;b=0;for(c=a.Xn.length;b<c;b++)if(a.Xn[b]===e)return b;return-1};d.prototype.$w=function(a,e){var b,c;b=0;for(c=a.P.length;b<c;b++)if(a.P[b].type.da===e)return b;return-1};d.prototype.kl=function(a,e,b){var c,h,f,d,n;n=a.type;d=n.Aa;if(b){if(!e.c2)return}else a.uid=e.uid;e.ex?a.N=e.ex:Va(a.N);if(h=e.ivs)for(c in h)h.hasOwnProperty(c)&&(f=this.jx(n,parseInt(c,10)),0>f||f>=a.tb.length||(a.tb[f]=h[c]));if(d.rf){f=e.w;a.q.da!==f.l&&(h=
a.q,a.q=this.na.Nk(f.l),a.q?(h.Fh(a,!0),a.q.Sh(a,!0),a.O(),a.q.wj(0)):(a.q=h,b||this.Yd(a)));a.x=f.x;a.y=f.y;a.width=f.w;a.height=f.h;a.Wd=f.zi;a.m=f.hasOwnProperty("a")?f.a:0;a.opacity=f.hasOwnProperty("o")?f.o:1;a.rc=f.hasOwnProperty("hX")?f.hX:.5;a.tc=f.hasOwnProperty("hY")?f.hY:.5;a.visible=f.hasOwnProperty("v")?f.v:!0;a.Ed=f.hasOwnProperty("ce")?f.ce:!0;a.gj=f.hasOwnProperty("mts")?f.mts:-1;a.Rb=f.hasOwnProperty("bm")?f.bm:0;a.Vh=jb(a.Rb);this.F&&kb(a,a.Rb,this.F);a.O();if(f.hasOwnProperty("fx"))for(b=
0,h=f.fx.length;b<h;b++)d=n.Dn(f.fx[b].name),0>d||(a.Ze[d]=f.fx[b].active,a.Va[d]=f.fx[b].params);a.Vd()}if(n=e.behs)for(c in n)n.hasOwnProperty(c)&&(b=this.$w(a,parseInt(c,10)),0>b||a.P[b].Wa(n[c]));e.data&&a.Wa(e.data)};d.prototype.Jq=function(a,e,b){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(e,b)},b)};d.prototype.Rw=function(a,e){this.Jq("data.js",function(b){var c=new FileReader;c.onload=function(e){a(e.target.result)};c.onerror=e;c.readAsText(b)},
e)};var L=[],D=0;d.prototype.Co=function(){if(L.length&&!(8<=D)){D++;var a=L.shift();this.Nv(a.filename,a.zz,a.lw)}};d.prototype.Kq=function(a,e,b){var c=this;L.push({filename:a,zz:function(a){D--;c.Co();e(a)},lw:function(a){D--;c.Co();b(a)}});this.Co()};d.prototype.Nv=function(a,e,b){this.Jq(a,function(a){var b=new FileReader;b.onload=function(a){e(a.target.result)};b.readAsArrayBuffer(a)},b)};d.prototype.Sw=function(a,e,b){this.Kq(a,function(a){a=URL.createObjectURL(new Blob([a]));e(a)},b)};d.prototype.Sx=
function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};d.prototype.Rs=function(a,e){this.Ei&&!this.Sx(e)?this.Sw(e,function(e){a.src=e},function(a){alert("Failed to load image: "+a)}):a.src=e};d.prototype.Vl=function(a,e){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=e:(a.webkitImageSmoothingEnabled=e,a.mozImageSmoothingEnabled=e,a.msImageSmoothingEnabled=e)};Ub=function(a){return new d(document.getElementById(a))};Vb=function(a,e){return new d({dc:!0,
width:a,height:e})};window.cr_createRuntime=Ub;window.cr_createDCRuntime=Vb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Vm=!0;document.body.appendChild(a);a=new d(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=
function(){var a=new d(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var d=document.getElementById("c2canvas");return d?d.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(d,l){var g=window.cr_getC2Runtime();g&&g.Lv(d,l)};window.cr_sizeCanvas=function(d,l){if(0!==d&&0!==l){var g=window.cr_getC2Runtime();g&&g.setSize(d,l)}};
window.cr_setSuspended=function(d){var l=window.cr_getC2Runtime();l&&l.setSuspended(d)};
(function(){function d(a,b){this.b=a;this.Xf=null;this.scrollX=this.b.yb/2;this.scrollY=this.b.xb/2;this.scale=1;this.m=0;this.bh=!0;this.name=b[0];this.Hy=b[1];this.Gy=b[2];this.width=b[1];this.height=b[2];this.zt=b[3];this.Zs=b[4];this.da=b[5];var c=b[6],f,d;this.ba=[];this.ri=[];f=0;for(d=c.length;f<d;f++){var k=new Wb(this,c[f]);k.ds=f;this.ba.push(k)}c=b[7];this.jg=[];f=0;for(d=c.length;f<d;f++){var k=c[f],g=this.b.D[k[1]];g.gd||(g.gd=k);this.jg.push(k);-1===this.ri.indexOf(g)&&this.ri.push(g)}this.Y=
[];this.xa=[];this.Pe=!0;this.Va=[];f=0;for(d=b[8].length;f<d;f++)this.Y.push({id:b[8][f][0],name:b[8][f][1],ob:-1,Zc:!1,Sa:!0,index:f}),this.Va.push(b[8][f][2].slice(0));this.Vd();this.Df=new va(0,0,1,1);this.Wo=new va(0,0,1,1);this.Af={}}function l(a,b){return a.Wd-b.Wd}function g(a,b){this.jb=a;this.b=a.b;this.k=[];this.scale=1;this.m=0;this.ve=!1;this.Se=new va(0,0,0,0);this.pt=new wa;this.Ga=this.Da=this.Ha=this.Ca=0;this.Ng=!1;this.Xe=-1;this.cn=0;this.name=b[0];this.index=b[1];this.da=b[2];
this.visible=b[3];this.Bd=b[4];this.Ud=b[5];this.md=b[6];this.nd=b[7];this.opacity=b[8];this.Gk=b[9];this.bd=b[10];this.Xd=b[11];this.Rb=b[12];this.hw=b[13];this.Vh="source-over";this.Wb=this.$b=0;this.Pb=null;this.Fe=m();this.Rd=!0;this.rh=new va(0,0,-1,-1);this.Kb=new va(0,0,-1,-1);this.bd&&(this.Pb=new ib(this.b.yb,this.b.xb));this.ne=!1;var c=b[14],f,d;this.et=[];this.Tc=[];this.Xh=[];f=0;for(d=c.length;f<d;f++){var k=c[f],g=this.b.D[k[1]];g.gd||(g.gd=k,g.Jv=this.index);this.Tc.push(k);-1===this.jb.ri.indexOf(g)&&
this.jb.ri.push(g)}Aa(this.et,this.Tc);this.Y=[];this.xa=[];this.Pe=!0;this.Va=[];f=0;for(d=b[15].length;f<d;f++)this.Y.push({id:b[15][f][0],name:b[15][f][1],ob:-1,Zc:!1,Sa:!0,index:f}),this.Va.push(b[15][f][2].slice(0));this.Vd();this.Df=new va(0,0,1,1);this.Wo=new va(0,0,1,1)}function m(){return a.length?a.pop():[]}function k(e){M(e);a.push(e)}d.prototype.nz=function(a){var b=a.type.da.toString();this.Af.hasOwnProperty(b)||(this.Af[b]=[]);this.Af[b].push(this.b.fp(a))};d.prototype.Yq=function(){var a=
this.ba[0];return!a.Ud&&1===a.opacity&&!a.Gk&&a.visible};d.prototype.Vd=function(){M(this.xa);this.Pe=!0;var a,b,c;a=0;for(b=this.Y.length;a<b;a++)c=this.Y[a],c.Sa&&(this.xa.push(c),c.Zc||(this.Pe=!1))};d.prototype.Cn=function(a){var b,c,f;b=0;for(c=this.Y.length;b<c;b++)if(f=this.Y[b],f.name===a)return f;return null};var q=[],b=!0;d.prototype.rp=function(){this.Zs&&(this.Xf=this.b.vn[this.Zs],this.Xf.Ap());this.b.na=this;this.width=this.Hy;this.height=this.Gy;this.scrollX=this.b.yb/2;this.scrollY=
this.b.xb/2;var a,c,f,d,k,g,m;a=0;for(f=this.b.D.length;a<f;a++)if(c=this.b.D[a],!c.K)for(k=c.k,c=0,d=k.length;c<d;c++)if(g=k[c],g.q){var p=g.q.ds;p>=this.ba.length&&(p=this.ba.length-1);g.q=this.ba[p];-1===g.q.k.indexOf(g)&&g.q.k.push(g);g.q.Ng=!0}if(!b)for(a=0,f=this.ba.length;a<f;++a)this.ba[a].k.sort(l);M(q);this.yv();a=0;for(f=this.ba.length;a<f;a++)g=this.ba[a],g.Hv(),g.Cm();k=!1;if(!this.bh){for(m in this.Af)if(this.Af.hasOwnProperty(m)&&(c=this.b.nf(parseInt(m,10)))&&!c.K&&this.b.zp(c)){d=
this.Af[m];a=0;for(f=d.length;a<f;a++){g=null;if(c.Aa.rf&&(g=this.Nk(d[a].w.l),!g))continue;g=this.b.hf(c.gd,g,!1,0,0,!0);this.b.kl(g,d[a]);k=!0;q.push(g)}M(d)}a=0;for(f=this.ba.length;a<f;a++)this.ba[a].k.sort(l),this.ba[a].Ng=!0}k&&(this.b.Qb(),this.b.Ks());for(a=0;a<q.length;a++)if(g=q[a],g.type.hc)for(f=g.ni(),c=0,d=g.type.Ec.length;c<d;c++)m=g.type.Ec[c],g.type!==m&&(m.k.length>f?g.siblings.push(m.k[f]):m.gd&&(k=this.b.hf(m.gd,g.q,!0,g.x,g.y,!0),this.b.Qb(),m.Am(),g.siblings.push(k),q.push(k)));
a=0;for(f=this.jg.length;a<f;a++)this.b.hf(this.jg[a],null,!0);this.b.Uh=null;this.b.Qb();if(this.b.Pa&&!this.b.ib)for(a=0,f=this.b.D.length;a<f;a++)m=this.b.D[a],!m.K&&m.k.length&&m.Jl&&m.Jl(this.b.Pa);if(this.b.xi)Aa(this.b.Ck,q);else for(a=0,f=q.length;a<f;a++)g=q[a],this.b.trigger(Object.getPrototypeOf(g.type.Aa).n.Kf,g);M(q);this.b.xi||this.b.trigger(V.prototype.n.Wp,null);this.bh=!1};d.prototype.Gv=function(){var a,b,c,f,d;b=a=0;for(c=this.jg.length;a<c;a++)f=this.jg[a],d=this.b.D[f[1]],d.global?
d.hc||this.b.hf(f,null,!0):(this.jg[b]=f,b++);za(this.jg,b)};d.prototype.yz=function(){this.b.xi||this.b.trigger(V.prototype.n.Vp,null);this.b.ao=!0;M(this.b.oe.Cc);var a,c,f,d,k,g;if(!this.bh)for(a=0,c=this.ba.length;a<c;a++)for(this.ba[a].Cp(),k=this.ba[a].k,f=0,d=k.length;f<d;f++)g=k[f],g.type.global||this.b.zp(g.type)&&this.nz(g);a=0;for(c=this.ba.length;a<c;a++){k=this.ba[a].k;f=0;for(d=k.length;f<d;f++)g=k[f],g.type.global||this.b.Yd(g);this.b.Qb();M(k);this.ba[a].Ng=!0}a=0;for(c=this.b.D.length;a<
c;a++)if(k=this.b.D[a],!(k.global||k.Aa.rf||k.Aa.hm||k.K)){f=0;for(d=k.k.length;f<d;f++)this.b.Yd(k.k[f]);this.b.Qb()}b=!1;this.b.ao=!1};new va(0,0,0,0);d.prototype.Qc=function(a){var b,c=a,f=!1,d=!this.b.Rc;d&&(this.b.il||(this.b.il=document.createElement("canvas"),b=this.b.il,b.width=this.b.S,b.height=this.b.R,this.b.Cr=b.getContext("2d"),f=!0),b=this.b.il,c=this.b.Cr,b.width!==this.b.S&&(b.width=this.b.S,f=!0),b.height!==this.b.R&&(b.height=this.b.R,f=!0),f&&this.b.Vl(c,this.b.La));c.globalAlpha=
1;c.globalCompositeOperation="source-over";this.b.vq&&!this.Yq()&&c.clearRect(0,0,this.b.S,this.b.R);var k,g,f=0;for(k=this.ba.length;f<k;f++)g=this.ba[f],g.visible&&0<g.opacity&&11!==g.Rb&&(g.k.length||!g.Ud)?g.Qc(c):g.Cm();d&&a.drawImage(b,0,0,this.b.width,this.b.height)};d.prototype.Tf=function(a){a.Qs(!0);this.b.kb||(this.b.kb=a.Pc(this.b.S,this.b.R,this.b.La));if(this.b.kb.Qf!==this.b.S||this.b.kb.Pf!==this.b.R)a.deleteTexture(this.b.kb),this.b.kb=a.Pc(this.b.S,this.b.R,this.b.La);a.qd(this.b.kb);
this.b.Rc||a.Eg(this.b.S,this.b.R);var b,c;for(b=this.ba.length-1;0<=b;--b)c=this.ba[b],c.visible&&1===c.opacity&&c.Pe&&0===c.Rb&&(c.k.length||!c.Ud)?c.Tf(a):c.Cm();a.Qs(!1)};d.prototype.Xb=function(a){var b=0<this.xa.length||this.b.Mh||!this.b.Rc||this.b.Ka;if(b){this.b.kb||(this.b.kb=a.Pc(this.b.S,this.b.R,this.b.La));if(this.b.kb.Qf!==this.b.S||this.b.kb.Pf!==this.b.R)a.deleteTexture(this.b.kb),this.b.kb=a.Pc(this.b.S,this.b.R,this.b.La);a.qd(this.b.kb);this.b.Rc||a.Eg(this.b.S,this.b.R)}else this.b.kb&&
(a.qd(null),a.deleteTexture(this.b.kb),this.b.kb=null);this.b.vq&&!this.Yq()&&a.clear(0,0,0,0);var c,f,d;c=0;for(f=this.ba.length;c<f;c++)d=this.ba[c],d.visible&&0<d.opacity&&(d.k.length||!d.Ud)?d.Xb(a):d.Cm();b&&(0===this.xa.length||1===this.xa.length&&this.b.Rc?(1===this.xa.length?(b=this.xa[0].index,a.Ac(this.xa[0].ob),a.Hh(null,1/this.b.S,1/this.b.R,0,0,1,1,this.scale,this.m,0,0,this.b.S/2,this.b.R/2,this.b.ab.I,this.Va[b]),a.Kl(this.xa[0].ob)&&(this.b.la=!0)):a.Ac(0),this.b.Rc||a.Eg(this.b.width,
this.b.height),a.qd(null),a.Ps(!1),a.Ff(1),a.zc(this.b.kb),a.Ns(),a.pd(),a.ad(),b=this.b.width/2,c=this.b.height/2,a.Dh(-b,c,b,c,b,-c,-b,-c),a.zc(null),a.Ps(!0)):this.Yo(a,null,null,null))};d.prototype.ki=function(){return 0<this.xa.length||this.b.Mh||!this.b.Rc||this.b.Ka?this.b.kb:null};d.prototype.Vq=function(){var a=this.ba[0].qc(),b,c,f;b=1;for(c=this.ba.length;b<c;b++)f=this.ba[b],(0!==f.md||0!==f.nd)&&f.qc()<a&&(a=f.qc());return a};d.prototype.ip=function(a){if(!this.zt){var b=1/this.Vq()*
this.b.S/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.la=!0)};d.prototype.jp=function(a){if(!this.zt){var b=1/this.Vq()*this.b.R/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.la=!0)};d.prototype.yv=function(){this.ip(this.scrollX);this.jp(this.scrollY)};d.prototype.Yo=function(a,b,c,f){var d=c?c.xa:b?b.xa:this.xa,k=1,g=0,p=0,t=0,m=this.b.S,l=this.b.R;c?(k=c.q.qc(),g=c.q.rb(),p=c.q.Ca,t=c.q.Da,m=c.q.Ha,l=c.q.Ga):b&&
(k=b.qc(),g=b.rb(),p=b.Ca,t=b.Da,m=b.Ha,l=b.Ga);var q=this.b.An,B,E,y,u,G=0,I=1,P,W,S=this.b.S,L=this.b.R,D=S/2,x=L/2,w=b?b.Df:this.Df,C=b?b.Wo:this.Wo,Q=0,X=0,J=0,H=0,T=S,ka=S,U=L,ua=L,la=y=0;u=c?c.q.rb():0;if(c){B=0;for(E=d.length;B<E;B++)y+=a.tx(d[B].ob),la+=a.ux(d[B].ob);H=c.Fa;Q=b.Ra(H.left,H.top,!0,!0);J=b.Ra(H.left,H.top,!1,!0);T=b.Ra(H.right,H.bottom,!0,!0);U=b.Ra(H.right,H.bottom,!1,!0);0!==u&&(B=b.Ra(H.right,H.top,!0,!0),E=b.Ra(H.right,H.top,!1,!0),X=b.Ra(H.left,H.bottom,!0,!0),H=b.Ra(H.left,
H.bottom,!1,!0),u=Math.min(Q,T,B,X),T=Math.max(Q,T,B,X),Q=u,u=Math.min(J,U,E,H),U=Math.max(J,U,E,H),J=u);Q-=y;J-=la;T+=y;U+=la;C.left=Q/S;C.top=1-J/L;C.right=T/S;C.bottom=1-U/L;X=Q=v(Q);H=J=v(J);ka=T=sa(T);ua=U=sa(U);X-=y;H-=la;ka+=y;ua+=la;0>Q&&(Q=0);0>J&&(J=0);T>S&&(T=S);U>L&&(U=L);0>X&&(X=0);0>H&&(H=0);ka>S&&(ka=S);ua>L&&(ua=L);w.left=Q/S;w.top=1-J/L;w.right=T/S;w.bottom=1-U/L}else w.left=C.left=0,w.top=C.top=0,w.right=C.right=1,w.bottom=C.bottom=1;la=c&&(a.lj(d[0].ob)||0!==y||0!==la||1!==c.opacity||
c.type.Aa.Yr)||b&&!c&&1!==b.opacity;a.Ns();if(la){q[G]||(q[G]=a.Pc(S,L,this.b.La));if(q[G].Qf!==S||q[G].Pf!==L)a.deleteTexture(q[G]),q[G]=a.Pc(S,L,this.b.La);a.Ac(0);a.qd(q[G]);W=ua-H;a.clearRect(X,L-H-W,ka-X,W);c?c.Xb(a):(a.zc(this.b.ub),a.Ff(b.opacity),a.pd(),a.translate(-D,-x),a.ad(),a.me(Q,U,T,U,T,J,Q,J,w));C.left=C.top=0;C.right=C.bottom=1;c&&(u=w.top,w.top=w.bottom,w.bottom=u);G=1;I=0}a.Ff(1);y=d.length-1;var Oa=a.So(d[y].ob)||!b&&!c&&!this.b.Rc;B=u=0;for(E=d.length;B<E;B++){q[G]||(q[G]=a.Pc(S,
L,this.b.La));if(q[G].Qf!==S||q[G].Pf!==L)a.deleteTexture(q[G]),q[G]=a.Pc(S,L,this.b.La);a.Ac(d[B].ob);u=d[B].index;a.Kl(d[B].ob)&&(this.b.la=!0);0!=B||la?(a.Hh(f,1/S,1/L,C.left,C.top,C.right,C.bottom,k,g,p,t,(p+m)/2,(t+l)/2,this.b.ab.I,c?c.Va[u]:b?b.Va[u]:this.Va[u]),a.zc(null),B!==y||Oa?(a.qd(q[G]),W=ua-H,P=L-H-W,a.clearRect(X,P,ka-X,W)):(c?a.Ef(c.$b,c.Wb):b&&a.Ef(b.$b,b.Wb),a.qd(f)),a.zc(q[I]),a.pd(),a.translate(-D,-x),a.ad(),a.me(Q,U,T,U,T,J,Q,J,w),B!==y||Oa||a.zc(null)):(a.qd(q[G]),W=ua-H,P=
L-H-W,a.clearRect(X,P,ka-X,W),c?(c.Jb&&c.Jb.V?(P=c.Jb.V,I=1/P.width,P=1/P.height):(I=1/c.width,P=1/c.height),a.Hh(f,I,P,C.left,C.top,C.right,C.bottom,k,g,p,t,(p+m)/2,(t+l)/2,this.b.ab.I,c.Va[u]),c.Xb(a)):(a.Hh(f,1/S,1/L,0,0,1,1,k,g,p,t,(p+m)/2,(t+l)/2,this.b.ab.I,b?b.Va[u]:this.Va[u]),a.zc(b?this.b.ub:this.b.kb),a.pd(),a.translate(-D,-x),a.ad(),a.me(Q,U,T,U,T,J,Q,J,w)),C.left=C.top=0,C.right=C.bottom=1,c&&!Oa&&(u=U,U=J,J=u));G=0===G?1:0;I=0===G?1:0}Oa&&(a.Ac(0),c?a.Ef(c.$b,c.Wb):b?a.Ef(b.$b,b.Wb):
this.b.Rc||(a.Eg(this.b.width,this.b.height),D=this.b.width/2,x=this.b.height/2,J=Q=0,T=this.b.width,U=this.b.height),a.qd(f),a.zc(q[I]),a.pd(),a.translate(-D,-x),a.ad(),c&&1===d.length&&!la?a.me(Q,J,T,J,T,U,Q,U,w):a.me(Q,U,T,U,T,J,Q,J,w),a.zc(null))};d.prototype.Nk=function(a){var b,c;b=0;for(c=this.ba.length;b<c;b++)if(this.ba[b].da===a)return this.ba[b];return null};d.prototype.Oa=function(){var a,b,c,f={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.m,w:this.width,h:this.height,fv:this.bh,
persist:this.Af,fx:[],layers:{}};a=0;for(b=this.Y.length;a<b;a++)c=this.Y[a],f.fx.push({name:c.name,active:c.Sa,params:this.Va[c.index]});a=0;for(b=this.ba.length;a<b;a++)c=this.ba[a],f.layers[c.da.toString()]=c.Oa();return f};d.prototype.Wa=function(a){var b,c,f,d;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.m=a.a;this.width=a.w;this.height=a.h;this.Af=a.persist;"undefined"!==typeof a.fv&&(this.bh=a.fv);var k=a.fx;b=0;for(c=k.length;b<c;b++)if(f=this.Cn(k[b].name))f.Sa=k[b].active,this.Va[f.index]=
k[b].params;this.Vd();b=a.layers;for(d in b)b.hasOwnProperty(d)&&(a=this.Nk(parseInt(d,10)))&&a.Wa(b[d])};Ib=d;g.prototype.Vd=function(){M(this.xa);this.Pe=!0;var a,b,c;a=0;for(b=this.Y.length;a<b;a++)c=this.Y[a],c.Sa&&(this.xa.push(c),c.Zc||(this.Pe=!1))};g.prototype.Cn=function(a){var b,c,f;b=0;for(c=this.Y.length;b<c;b++)if(f=this.Y[b],f.name===a)return f;return null};g.prototype.Hv=function(){var a,b,c,f,d,k;b=a=0;for(c=this.Tc.length;a<c;a++){f=this.Tc[a];d=this.b.D[f[1]];k=this.b.zp(d);d=!0;
if(!k||this.jb.bh){f=this.b.hf(f,this,!0);if(!f)continue;q.push(f);f.type.global&&(d=!1,this.Xh.push(f.uid))}d&&(this.Tc[b]=this.Tc[a],b++)}this.Tc.length=b;this.b.Qb();!this.b.C&&this.Y.length&&(this.Rb=this.hw);this.Vh=jb(this.Rb);this.b.F&&kb(this,this.Rb,this.b.F);this.Rd=!0};g.prototype.Fh=function(a,b){var c=Ca(this.k,a);0>c||(b&&this.bd&&a.xc&&a.xc.right>=a.xc.left&&(a.Ba(),this.Pb.update(a,a.xc,null),a.xc.set(0,0,-1,-1)),c===this.k.length-1?this.k.pop():(ya(this.k,c),this.wj(c)),this.Rd=!0)};
g.prototype.Sh=function(a,b){a.Wd=this.k.length;this.k.push(a);b&&this.bd&&a.xc&&a.O();this.Rd=!0};g.prototype.Uy=function(a){this.k.unshift(a);this.wj(0)};g.prototype.uy=function(a,b,c){var f=a.fe();b=b.fe();ya(this.k,f);f<b&&b--;c&&b++;b===this.k.length?this.k.push(a):this.k.splice(b,0,a);this.wj(f<b?f:b)};g.prototype.wj=function(a){-1===this.Xe?this.Xe=a:a<this.Xe&&(this.Xe=a);this.Rd=this.Ng=!0};g.prototype.Cp=function(){if(this.Ng){-1===this.Xe&&(this.Xe=0);var a,b,c;if(this.bd)for(a=this.Xe,
b=this.k.length;a<b;++a)c=this.k[a],c.Wd=a,this.Pb.ny(c.xc);else for(a=this.Xe,b=this.k.length;a<b;++a)this.k[a].Wd=a;this.Ng=!1;this.Xe=-1}};g.prototype.qc=function(a){return this.mx()*(this.b.Rc||a?this.b.Th:1)};g.prototype.mx=function(){return(this.scale*this.jb.scale-1)*this.Xd+1};g.prototype.rb=function(){return this.ve?0:Ha(this.jb.m+this.m)};var a=[],f=[],c=[];g.prototype.Gn=function(){this.Cp();this.Pb.Ml(this.Ca,this.Da,this.Ha,this.Ga,c);if(!c.length)return m();if(1===c.length){var a=m();
Aa(a,c[0]);M(c);return a}for(var b=!0;1<c.length;){for(var a=c,d=void 0,n=void 0,g=void 0,l=void 0,q=void 0,d=0,n=a.length;d<n-1;d+=2){var g=a[d],l=a[d+1],q=m(),p=g,t=l,N=q,O=0,A=0,B=0,E=p.length,y=t.length,u=void 0,G=void 0;for(N.length=E+y;O<E&&A<y;++B)u=p[O],G=t[A],u.Wd<G.Wd?(N[B]=u,++O):(N[B]=G,++A);for(;O<E;++O,++B)N[B]=p[O];for(;A<y;++A,++B)N[B]=t[A];b||(k(g),k(l));f.push(q)}1===n%2&&(b?(g=m(),Aa(g,a[n-1]),f.push(g)):f.push(a[n-1]));Aa(a,f);M(f);b=!1}a=c[0];M(c);return a};g.prototype.Qc=function(a){this.ne=
this.Gk||1!==this.opacity||0!==this.Rb;var b=this.b.canvas,c=a,f=!1;this.ne&&(this.b.hl||(this.b.hl=document.createElement("canvas"),b=this.b.hl,b.width=this.b.S,b.height=this.b.R,this.b.Br=b.getContext("2d"),f=!0),b=this.b.hl,c=this.b.Br,b.width!==this.b.S&&(b.width=this.b.S,f=!0),b.height!==this.b.R&&(b.height=this.b.R,f=!0),f&&this.b.Vl(c,this.b.La),this.Ud&&c.clearRect(0,0,this.b.S,this.b.R));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Ud||(c.fillStyle="rgb("+this.Bd[0]+","+
this.Bd[1]+","+this.Bd[2]+")",c.fillRect(0,0,this.b.S,this.b.R));c.save();this.ve=!0;var f=this.fc(0,0,!0,!0),d=this.fc(0,0,!1,!0);this.ve=!1;this.b.Yc&&(f=Math.round(f),d=Math.round(d));this.Ql(f,d,c);var g=this.qc();c.scale(g,g);c.translate(-f,-d);this.bd?(this.Kb.left=this.Pb.lc(this.Ca),this.Kb.top=this.Pb.mc(this.Da),this.Kb.right=this.Pb.lc(this.Ha),this.Kb.bottom=this.Pb.mc(this.Ga),this.Rd||!this.Kb.$h(this.rh)?(k(this.Fe),f=this.Gn(),this.Rd=!1,this.rh.Ug(this.Kb)):f=this.Fe):f=this.k;for(var l,
p=null,d=0,g=f.length;d<g;++d)l=f[d],l!==p&&(this.cw(l,c),p=l);this.bd&&(this.Fe=f);c.restore();this.ne&&(a.globalCompositeOperation=this.Vh,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};g.prototype.cw=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ba();var c=a.Fa;c.right<this.Ca||c.bottom<this.Da||c.left>this.Ha||c.top>this.Ga||(b.globalCompositeOperation=a.Vh,a.Qc(b))}};g.prototype.Cm=function(){this.ve=!0;var a=this.fc(0,0,!0,!0),b=this.fc(0,0,!1,!0);this.ve=!1;this.b.Yc&&(a=Math.round(a),
b=Math.round(b));this.Ql(a,b,null)};g.prototype.Ql=function(a,b,c){var f=this.qc();this.Ca=a;this.Da=b;this.Ha=a+1/f*this.b.S;this.Ga=b+1/f*this.b.R;this.Ca>this.Ha&&(a=this.Ca,this.Ca=this.Ha,this.Ha=a);this.Da>this.Ga&&(a=this.Da,this.Da=this.Ga,this.Ga=a);a=this.rb();0!==a&&(c&&(c.translate(this.b.S/2,this.b.R/2),c.rotate(-a),c.translate(this.b.S/-2,this.b.R/-2)),this.Se.set(this.Ca,this.Da,this.Ha,this.Ga),this.Se.offset((this.Ca+this.Ha)/-2,(this.Da+this.Ga)/-2),this.pt.Xs(this.Se,a),this.pt.mq(this.Se),
this.Se.offset((this.Ca+this.Ha)/2,(this.Da+this.Ga)/2),this.Ca=this.Se.left,this.Da=this.Se.top,this.Ha=this.Se.right,this.Ga=this.Se.bottom)};g.prototype.Tf=function(a){if(this.ne=this.Gk){this.b.ub||(this.b.ub=a.Pc(this.b.S,this.b.R,this.b.La));if(this.b.ub.Qf!==this.b.S||this.b.ub.Pf!==this.b.R)a.deleteTexture(this.b.ub),this.b.ub=a.Pc(this.b.S,this.b.R,this.b.La);a.qd(this.b.ub)}this.ve=!0;var b=this.fc(0,0,!0,!0),c=this.fc(0,0,!1,!0);this.ve=!1;this.b.Yc&&(b=Math.round(b),c=Math.round(c));this.Ql(b,
c,null);b=this.qc();a.pd();a.scale(b,b);a.Rl(-this.rb());a.translate((this.Ca+this.Ha)/-2,(this.Da+this.Ga)/-2);a.ad();this.bd?(this.Kb.left=this.Pb.lc(this.Ca),this.Kb.top=this.Pb.mc(this.Da),this.Kb.right=this.Pb.lc(this.Ha),this.Kb.bottom=this.Pb.mc(this.Ga),this.Rd||!this.Kb.$h(this.rh)?(k(this.Fe),b=this.Gn(),this.Rd=!1,this.rh.Ug(this.Kb)):b=this.Fe):b=this.k;for(var f,d=null,c=b.length-1;0<=c;--c)f=b[c],f!==d&&(this.ew(b[c],a),d=f);this.bd&&(this.Fe=b);this.Ud||(this.cn=this.b.Wf++,a.Wl(this.cn),
a.Os(1,1,1),a.Oq(),a.fz())};g.prototype.Xb=function(a){var b=0,c=0;if(this.ne=this.Gk||1!==this.opacity||0<this.xa.length||0!==this.Rb){this.b.ub||(this.b.ub=a.Pc(this.b.S,this.b.R,this.b.La));if(this.b.ub.Qf!==this.b.S||this.b.ub.Pf!==this.b.R)a.deleteTexture(this.b.ub),this.b.ub=a.Pc(this.b.S,this.b.R,this.b.La);a.qd(this.b.ub);this.Ud&&a.clear(0,0,0,0)}this.Ud||(this.b.Ka?(a.Wl(this.cn),a.Os(this.Bd[0]/255,this.Bd[1]/255,this.Bd[2]/255),a.Oq(),a.uz()):a.clear(this.Bd[0]/255,this.Bd[1]/255,this.Bd[2]/
255,1));this.ve=!0;var f=this.fc(0,0,!0,!0),b=this.fc(0,0,!1,!0);this.ve=!1;this.b.Yc&&(f=Math.round(f),b=Math.round(b));this.Ql(f,b,null);f=this.qc();a.pd();a.scale(f,f);a.Rl(-this.rb());a.translate((this.Ca+this.Ha)/-2,(this.Da+this.Ga)/-2);a.ad();this.bd?(this.Kb.left=this.Pb.lc(this.Ca),this.Kb.top=this.Pb.mc(this.Da),this.Kb.right=this.Pb.lc(this.Ha),this.Kb.bottom=this.Pb.mc(this.Ga),this.Rd||!this.Kb.$h(this.rh)?(k(this.Fe),b=this.Gn(),this.Rd=!1,this.rh.Ug(this.Kb)):b=this.Fe):b=this.k;var d,
g,l=null,c=0;for(d=b.length;c<d;++c)g=b[c],g!==l&&(this.dw(b[c],a),l=g);this.bd&&(this.Fe=b);this.ne&&(b=this.xa.length?this.xa[0].ob:0,c=this.xa.length?this.xa[0].index:0,0===this.xa.length||1===this.xa.length&&!a.So(b)&&1===this.opacity?(1===this.xa.length?(a.Ac(b),a.Hh(this.jb.ki(),1/this.b.S,1/this.b.R,0,0,1,1,f,this.rb(),this.Ca,this.Da,(this.Ca+this.Ha)/2,(this.Da+this.Ga)/2,this.b.ab.I,this.Va[c]),a.Kl(b)&&(this.b.la=!0)):a.Ac(0),a.qd(this.jb.ki()),a.Ff(this.opacity),a.zc(this.b.ub),a.Ef(this.$b,
this.Wb),a.pd(),a.ad(),f=this.b.S/2,b=this.b.R/2,a.Dh(-f,b,f,b,f,-b,-f,-b),a.zc(null)):this.jb.Yo(a,this,null,this.jb.ki()))};g.prototype.dw=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ba();var c=a.Fa;c.right<this.Ca||c.bottom<this.Da||c.left>this.Ha||c.top>this.Ga||(b.Wl(a.Wf),a.Ft?this.fw(a,b):(b.Ac(0),b.Ef(a.$b,a.Wb),a.Xb(b)))}};g.prototype.ew=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ba();var c=a.Fa;c.right<this.Ca||c.bottom<this.Da||c.left>this.Ha||c.top>this.Ga||
(a.Wf=this.b.Wf++,0===a.Rb&&1===a.opacity&&a.Pe&&a.Tf&&(b.Wl(a.Wf),a.Tf(b)))}};g.prototype.fw=function(a,b){var c=a.xa[0].ob,f=a.xa[0].index,d=this.qc();if(1!==a.xa.length||b.So(c)||b.Wy(c)||(a.m||a.q.rb())&&b.lj(c)||1!==a.opacity||a.type.Aa.Yr)this.jb.Yo(b,this,a,this.ne?this.b.ub:this.jb.ki()),b.pd(),b.scale(d,d),b.Rl(-this.rb()),b.translate((this.Ca+this.Ha)/-2,(this.Da+this.Ga)/-2),b.ad();else{b.Ac(c);b.Ef(a.$b,a.Wb);b.Kl(c)&&(this.b.la=!0);var k=0,g=0,p=0,t=0;b.lj(c)&&(t=a.Fa,k=this.Ra(t.left,
t.top,!0,!0),g=this.Ra(t.left,t.top,!1,!0),p=this.Ra(t.right,t.bottom,!0,!0),t=this.Ra(t.right,t.bottom,!1,!0),k=k/windowWidth,g=1-g/windowHeight,p=p/windowWidth,t=1-t/windowHeight);var l;a.Jb&&a.Jb.V?(l=a.Jb.V,c=1/l.width,l=1/l.height):(c=1/a.width,l=1/a.height);b.Hh(this.ne?this.b.ub:this.jb.ki(),c,l,k,g,p,t,d,this.rb(),this.Ca,this.Da,(this.Ca+this.Ha)/2,(this.Da+this.Ga)/2,this.b.ab.I,a.Va[f]);a.Xb(b)}};g.prototype.fc=function(a,b,c,f){var d=this.b.devicePixelRatio;this.b.ng&&(a*=d,b*=d);var d=
this.b.ys,k=this.b.zs,d=(this.jb.scrollX-d)*this.md+d,k=(this.jb.scrollY-k)*this.nd+k,g=d,p=k,t=1/this.qc(!f);f?(g-=this.b.S*t/2,p-=this.b.R*t/2):(g-=this.b.width*t/2,p-=this.b.height*t/2);g+=a*t;p+=b*t;b=this.rb();0!==b&&(g-=d,p-=k,a=Math.cos(b),b=Math.sin(b),f=g*a-p*b,p=p*a+g*b,g=f+d,p+=k);return c?g:p};g.prototype.Ra=function(a,b,c,f){var d=this.b.ys,k=this.b.zs,g=(this.jb.scrollX-d)*this.md+d,p=(this.jb.scrollY-k)*this.nd+k,k=g,d=p,t=this.rb();if(0!==t){a-=g;b-=p;var l=Math.cos(-t),t=Math.sin(-t),
m=a*l-b*t;b=b*l+a*t;a=m+g;b+=p}g=1/this.qc(!f);f?(k-=this.b.S*g/2,d-=this.b.R*g/2):(k-=this.b.width*g/2,d-=this.b.height*g/2);k=(a-k)/g;d=(b-d)/g;a=this.b.devicePixelRatio;this.b.ng&&!f&&(k/=a,d/=a);return c?k:d};g.prototype.Oa=function(){var a,b,c,f={s:this.scale,a:this.m,vl:this.Ca,vt:this.Da,vr:this.Ha,vb:this.Ga,v:this.visible,bc:this.Bd,t:this.Ud,px:this.md,py:this.nd,o:this.opacity,zr:this.Xd,fx:[],cg:this.Xh,instances:[]};a=0;for(b=this.Y.length;a<b;a++)c=this.Y[a],f.fx.push({name:c.name,active:c.Sa,
params:this.Va[c.index]});return f};g.prototype.Wa=function(a){var b,c,f;this.scale=a.s;this.m=a.a;this.Ca=a.vl;this.Da=a.vt;this.Ha=a.vr;this.Ga=a.vb;this.visible=a.v;this.Bd=a.bc;this.Ud=a.t;this.md=a.px;this.nd=a.py;this.opacity=a.o;this.Xd=a.zr;this.Xh=a.cg||[];Aa(this.Tc,this.et);var d=new ca;b=0;for(f=this.Xh.length;b<f;++b)d.add(this.Xh[b]);c=b=0;for(f=this.Tc.length;b<f;++b)d.contains(this.Tc[b][2])||(this.Tc[c]=this.Tc[b],++c);za(this.Tc,c);c=a.fx;b=0;for(f=c.length;b<f;b++)if(a=this.Cn(c[b].name))a.Sa=
c[b].active,this.Va[a.index]=c[b].params;this.Vd();this.k.sort(l);this.Ng=!0};Wb=g})();
(function(){function d(a,b){var c,e=a.length;switch(e){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<e;c++)if(a[c]!==b[c])return!1;return!0}}function l(a,b){return a.index-b.index}function g(a){var b,c,e,f;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(l);a.length>=F.length&&(F.length=a.length+1);F[a.length]||(F[a.length]=[]);f=F[a.length];b=0;for(c=f.length;b<c;b++)if(e=f[b],d(a,e))return e;f.push(a);return a}
function m(a,b){this.b=a;this.ut={};this.Iq={};this.Nn=!1;this.br=new ca;this.pn=[];this.Sm=[];this.name=b[0];var c=b[1];this.kf=[];var e,f;e=0;for(f=c.length;e<f;e++)this.dr(c[e],null,this.kf)}function k(a){this.type=a;this.k=[];this.Z=[];this.ga=!0}function q(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ea=[];this.Gf=[];this.Zq=this.vm=this.vp=this.Sn=this.group=this.op=!1;this.pb=[];this.dd=[];this.sd=[];this.oi="";this.eg=this.Sn=this.group=!1;this.ik=null;c[1]&&(this.oi=c[1][1].toLowerCase(),
this.group=!0,this.Sn=!!c[1][0],this.ik=[],this.eg=this.Sn,this.b.Sg.push(this),this.b.eh[this.oi]=this);this.Xc=c[2];this.da=c[4];this.group||(this.b.lq[this.da.toString()]=this);var e=c[5];a=0;for(b=e.length;a<b;a++){var f=new Xb(this,e[a]);f.index=a;this.pb.push(f);this.hq(f.type)}e=c[6];a=0;for(b=e.length;a<b;a++)f=new Yb(this,e[a]),f.index=a,this.dd.push(f);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.dr(c[a],this,this.sd);this.al=!1;this.pb.length&&(this.al=null==this.pb[0].type&&
this.pb[0].Lb==V.prototype.n.Xt)}function b(a,b){var c,e,f;if(a&&(-1===b.indexOf(a)&&b.push(a),a.hc))for(c=0,e=a.Ec.length;c<e;c++)f=a.Ec[c],a!==f&&-1===b.indexOf(f)&&b.push(f)}function a(a,b){this.Oc=a;this.sheet=a.sheet;this.b=a.b;this.ca=[];this.Ya=[];this.N={};this.index=-1;this.Qh=!1;this.Lb=this.b.Ye(b[1]);this.trigger=0<b[3];this.Hq=2===b[3];this.he=b[4];this.lg=b[5];this.ey=b[6];this.da=b[7];this.b.ef[this.da.toString()]=this;-1===b[0]?(this.type=null,this.nb=this.ep,this.Nf=null,this.Cd=
-1):(this.type=this.b.D[b[0]],this.nb=this.ey?this.lz:this.dp,b[2]?(this.Nf=this.type.Kk(b[2]),this.Cd=this.type.Bn(b[2])):(this.Nf=null,this.Cd=-1),this.Oc.parent&&this.Oc.parent.Zl());this.Hq&&(this.nb=this.mz);if(10===b.length){var c,e,f=b[9];c=0;for(e=f.length;c<e;c++){var d=new Zb(this,f[c]);this.ca.push(d)}this.Ya.length=f.length}}function f(a,b){this.Oc=a;this.sheet=a.sheet;this.b=a.b;this.ca=[];this.Ya=[];this.N={};this.index=-1;this.Qh=!1;this.Lb=this.b.Ye(b[1]);-1===b[0]?(this.type=null,
this.nb=this.ep,this.Nf=null,this.Cd=-1):(this.type=this.b.D[b[0]],this.nb=this.dp,b[2]?(this.Nf=this.type.Kk(b[2]),this.Cd=this.type.Bn(b[2])):(this.Nf=null,this.Cd=-1));this.da=b[3];this.b.$e[this.da.toString()]=this;if(6===b.length){var c,e,f=b[5];c=0;for(e=f.length;c<e;c++){var d=new Zb(this,f[c]);this.ca.push(d)}this.Ya.length=f.length}}function c(){z++;K.length===z&&K.push(new $b);return K[z]}function e(a,b){this.Ma=a;this.Oc=a.Oc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.be=null;this.Qe=
0;this.get=null;this.xq=0;this.jb=null;this.key=0;this.object=null;this.index=0;this.Jj=this.Ig=this.Jj=this.Ig=this.Lq=this.Yf=this.Kj=null;this.xd=!1;var c,e,f;switch(b[0]){case 0:case 7:this.be=new ac(this,b[1]);this.Qe=0;this.get=this.Ax;break;case 1:this.be=new ac(this,b[1]);this.Qe=0;this.get=this.Bx;break;case 5:this.be=new ac(this,b[1]);this.Qe=0;this.get=this.Fx;break;case 3:case 8:this.xq=b[1];this.get=this.yx;break;case 6:this.jb=this.b.ro[b[1]];this.get=this.Gx;break;case 9:this.key=b[1];
this.get=this.Ex;break;case 4:this.object=this.b.D[b[1]];this.get=this.Hx;this.Oc.hq(this.object);this.Ma instanceof Yb?this.Oc.Zl():this.Oc.parent&&this.Oc.parent.Zl();break;case 10:this.index=b[1];a.type&&a.type.K?(this.get=this.Cx,this.xd=!0):this.get=this.Dx;break;case 11:this.Kj=b[1];this.Yf=null;this.get=this.zx;break;case 2:case 12:this.Lq=b[1];this.get=this.xx;break;case 13:for(this.get=this.Ix,this.Ig=[],this.Jj=[],c=1,e=b.length;c<e;c++)f=new Zb(this.Ma,b[c]),this.Ig.push(f),this.Jj.push(0)}}
function h(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ea=[];this.name=c[1];this.Em=c[2];this.Uk=c[3];this.Hi=!!c[4];this.Zk=!!c[5];this.da=c[6];this.b.Oh[this.da.toString()]=this;this.data=this.Uk;this.parent?(this.ug=this.Hi||this.Zk?-1:this.b.wz++,this.b.tv.push(this)):(this.ug=-1,this.b.Qm.push(this))}function r(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ea=[];this.qi=null;this.Px=c[1];this.Sa=!0}function n(){this.ht=[];this.reset(null)}var F=[];m.prototype.toString=function(){return this.name};
m.prototype.dr=function(a,b,c){switch(a[0]){case 0:a=new bc(this,b,a);if(a.Xc)for(c.push(a),c=0,b=a.pb.length;c<b;c++)a.pb[c].trigger&&this.er(a,c);else a.qr()?this.er(a,0):c.push(a);break;case 1:a=new Tb(this,b,a);c.push(a);break;case 2:a=new cc(this,b,a),c.push(a)}};m.prototype.bb=function(){var a,b;a=0;for(b=this.kf.length;a<b;a++)this.kf[a].bb(a<b-1&&this.kf[a+1].al)};m.prototype.Ap=function(){M(this.pn);M(this.Sm);this.gq(this);M(this.Sm)};m.prototype.gq=function(a){var b,c,e,f,d=a.pn,h=a.Sm,
k=this.br.wd();b=0;for(c=k.length;b<c;++b)e=k[b],f=e.qi,!e.Sa||a===f||-1<h.indexOf(f)||(h.push(f),f.gq(a),d.push(f))};m.prototype.nb=function(a){this.b.KA||(this.Nn=!0,a||(this.b.eo=!0));var b,c;b=0;for(c=this.kf.length;b<c;b++){var e=this.kf[b];e.nb();this.b.bn(e.Ea);this.b.of&&this.b.Qb()}a||(this.b.eo=!1)};m.prototype.er=function(a,b){a.Xc||this.b.ym.push(a);var c,e,f=a.pb[b],d;f.type?d=f.type.name:d="system";var h=(c=f.Hq)?this.Iq:this.ut;h[d]||(h[d]=[]);d=h[d];h=f.Lb;if(c){if(f.ca.length&&(f=
f.ca[0],1===f.type&&2===f.be.type)){f=f.be.value.toLowerCase();c=0;for(e=d.length;c<e;c++)if(d[c].method==h){c=d[c].ai;c[f]?c[f].push([a,b]):c[f]=[[a,b]];return}c={};c[f]=[[a,b]];d.push({method:h,ai:c})}}else{c=0;for(e=d.length;c<e;c++)if(d[c].method==h){d[c].ai.push([a,b]);return}Z&&h===Z.prototype.n.Qg?d.unshift({method:h,ai:[[a,b]]}):d.push({method:h,ai:[[a,b]]})}};Jb=m;k.prototype.Sk=function(){return this.ga?this.type.k.length:this.k.length};k.prototype.pc=function(){return this.ga?this.type.k:
this.k};k.prototype.kj=function(a){a&&(a.b.$a().gb.Xc?(this.ga&&(M(this.k),Aa(this.Z,a.type.k),this.ga=!1),a=this.Z.indexOf(a),-1!==a&&(this.k.push(this.Z[a]),this.Z.splice(a,1))):(this.ga=!1,M(this.k),this.k[0]=a))};qb=k;window._c2hh_="9CD36AF96FC621E4AF777B94D9496373E7390761";q.prototype.bb=function(a){var b,c=this.parent;if(this.group)for(this.vm=!0;c;){if(!c.group){this.vm=!1;break}c=c.parent}this.vp=!this.qr()&&(!this.parent||this.parent.group&&this.parent.vm);this.Zq=!!a;this.Gf=this.Ea.slice(0);
for(c=this.parent;c;){a=0;for(b=c.Ea.length;a<b;a++)this.pv(c.Ea[a]);c=c.parent}this.Ea=g(this.Ea);this.Gf=g(this.Gf);a=0;for(b=this.pb.length;a<b;a++)this.pb[a].bb();a=0;for(b=this.dd.length;a<b;a++)this.dd[a].bb();a=0;for(b=this.sd.length;a<b;a++)this.sd[a].bb(a<b-1&&this.sd[a+1].al)};q.prototype.Xl=function(a){if(this.eg!==!!a){this.eg=!!a;var b;a=0;for(b=this.ik.length;a<b;++a)this.ik[a].Bt();0<b&&this.b.na.Xf&&this.b.na.Xf.Ap()}};q.prototype.hq=function(a){b(a,this.Ea)};q.prototype.pv=function(a){b(a,
this.Gf)};q.prototype.Zl=function(){this.op=!0;this.parent&&this.parent.Zl()};q.prototype.qr=function(){return this.pb.length?this.pb[0].trigger:!1};q.prototype.nb=function(){var a,b,c=!1,e=this.b,f=this.b.$a();f.gb=this;var d=this.pb;this.al||(f.tn=!1);if(this.Xc){0===d.length&&(c=!0);f.fb=0;for(a=d.length;f.fb<a;f.fb++)b=d[f.fb],b.trigger||(b=b.nb())&&(c=!0);(f.qg=c)&&this.Sl()}else{f.fb=0;for(a=d.length;f.fb<a;f.fb++)if(b=d[f.fb].nb(),!b){f.qg=!1;this.vp&&e.of&&e.Qb();return}f.qg=!0;this.Sl()}this.jw(f)};
q.prototype.jw=function(a){a.qg&&this.Zq&&(a.tn=!0);this.vp&&this.b.of&&this.b.Qb()};q.prototype.jz=function(a){this.b.$a().gb=this;this.pb[a].nb()&&(this.Sl(),this.b.$a().qg=!0)};q.prototype.Sl=function(){var a=this.b.$a(),b;a.nc=0;for(b=this.dd.length;a.nc<b;a.nc++)if(this.dd[a.nc].nb())return;this.Ms()};q.prototype.hz=function(){var a=this.b.$a(),b;for(b=this.dd.length;a.nc<b;a.nc++)if(this.dd[a.nc].nb())return;this.Ms()};q.prototype.Ms=function(){if(this.sd.length){var a,b,c,e,f=this.sd.length-
1;this.b.Ll(this);if(this.op)for(a=0,b=this.sd.length;a<b;a++)c=this.sd[a],(e=!this.vm||!this.group&&a<f)&&this.b.oj(c.Ea),c.nb(),e?this.b.Bf(c.Ea):this.b.bn(c.Ea);else for(a=0,b=this.sd.length;a<b;a++)this.sd[a].nb();this.b.Fl()}};q.prototype.kz=function(){var a=this.b.$a();a.gb=this;var b=!1,c;a.fb=0;for(c=this.pb.length;a.fb<c;a.fb++)if(this.pb[a.fb].nb())b=!0;else if(!this.Xc)return!1;return this.Xc?b:!0};q.prototype.bp=function(){this.b.Zf++;var a=this.b.$a().fb,b=this.b.Ll(this);if(!this.Xc)for(b.fb=
a+1,a=this.pb.length;b.fb<a;b.fb++)if(!this.pb[b.fb].nb()){this.b.Fl();return}this.Sl();this.b.Fl()};q.prototype.Wx=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.pb[b].type===a.type)return!1;return!0};bc=q;a.prototype.bb=function(){var a,b,c;a=0;for(b=this.ca.length;a<b;a++)c=this.ca[a],c.bb(),c.xd&&(this.Qh=!0)};a.prototype.mz=function(){return!0};a.prototype.ep=function(){var a,b;a=0;for(b=this.ca.length;a<b;a++)this.Ya[a]=this.ca[a].get();return Ta(this.Lb.apply(this.b.oe,
this.Ya),this.lg)};a.prototype.lz=function(){var a,b;a=0;for(b=this.ca.length;a<b;a++)this.Ya[a]=this.ca[a].get();a=this.Lb.apply(this.Nf?this.Nf:this.type,this.Ya);this.type.Ad();return a};a.prototype.dp=function(){var a,b,c,e,f,d,h,k,g=this.type,n=g.ea(),l=this.Oc.Xc&&!this.trigger;b=0;var m=g.hc,q=g.K,r=g.ye,F=this.Cd,K=-1<F,z=this.Qh,w=this.ca,C=this.Ya,Q=this.lg,X=this.Lb,J;if(z)for(b=0,f=w.length;b<f;++b)d=w[b],d.xd||(C[b]=d.get(0));else for(b=0,f=w.length;b<f;++b)C[b]=w[b].get(0);if(n.ga){M(n.k);
M(n.Z);J=g.k;a=0;for(e=J.length;a<e;++a){k=J[a];if(z)for(b=0,f=w.length;b<f;++b)d=w[b],d.xd&&(C[b]=d.get(a));K?(b=0,q&&(b=k.type.ah[r]),b=X.apply(k.P[F+b],C)):b=X.apply(k,C);(h=Ta(b,Q))?n.k.push(k):l&&n.Z.push(k)}g.finish&&g.finish(!0);n.ga=!1;g.Ad();return n.Sk()}c=0;J=(h=l&&!this.Oc.Wx(this))?n.Z:n.k;var H=!1;a=0;for(e=J.length;a<e;++a){k=J[a];if(z)for(b=0,f=w.length;b<f;++b)d=w[b],d.xd&&(C[b]=d.get(a));K?(b=0,q&&(b=k.type.ah[r]),b=X.apply(k.P[F+b],C)):b=X.apply(k,C);if(Ta(b,Q))if(H=!0,h){if(n.k.push(k),
m)for(b=0,f=k.siblings.length;b<f;b++)d=k.siblings[b],d.type.ea().k.push(d)}else{J[c]=k;if(m)for(b=0,f=k.siblings.length;b<f;b++)d=k.siblings[b],d.type.ea().k[c]=d;c++}else if(h){J[c]=k;if(m)for(b=0,f=k.siblings.length;b<f;b++)d=k.siblings[b],d.type.ea().Z[c]=d;c++}else if(l&&(n.Z.push(k),m))for(b=0,f=k.siblings.length;b<f;b++)d=k.siblings[b],d.type.ea().Z.push(d)}za(J,c);if(m)for(q=g.Ec,a=0,e=q.length;a<e;a++)k=q[a].ea(),h?za(k.Z,c):za(k.k,c);c=H;if(h&&!H)for(a=0,e=n.k.length;a<e;a++){k=n.k[a];if(z)for(b=
0,f=w.length;b<f;b++)d=w[b],d.xd&&(C[b]=d.get(a));b=K?X.apply(k.P[F],C):X.apply(k,C);if(Ta(b,Q)){H=!0;break}}g.finish&&g.finish(c||l);return l?H:n.Sk()};Xb=a;f.prototype.bb=function(){var a,b,c;a=0;for(b=this.ca.length;a<b;a++)c=this.ca[a],c.bb(),c.xd&&(this.Qh=!0)};f.prototype.ep=function(){var a=this.b,b,c,e=this.ca,f=this.Ya;b=0;for(c=e.length;b<c;++b)f[b]=e[b].get();return this.Lb.apply(a.oe,f)};f.prototype.dp=function(){var a=this.type,b=this.Cd,c=a.ye,e=this.Qh,f=this.ca,d=this.Ya,h=this.Lb,
k=a.ea().pc(),a=a.K,n=-1<b,g,l,m,q,r,F;if(e)for(l=0,q=f.length;l<q;++l)r=f[l],r.xd||(d[l]=r.get(0));else for(l=0,q=f.length;l<q;++l)d[l]=f[l].get(0);g=0;for(m=k.length;g<m;++g){F=k[g];if(e)for(l=0,q=f.length;l<q;++l)r=f[l],r.xd&&(d[l]=r.get(g));n?(l=0,a&&(l=F.type.ah[c]),h.apply(F.P[b+l],d)):h.apply(F,d)}return!1};Yb=f;var K=[],z=-1;e.prototype.bb=function(){var a,b;if(11===this.type)this.Yf=this.b.Tq(this.Kj,this.Oc.parent);else if(13===this.type)for(a=0,b=this.Ig.length;a<b;a++)this.Ig[a].bb();
this.be&&this.be.bb()};e.prototype.qy=function(a){this.xd||!a||a.Aa.hm||(this.xd=!0)};e.prototype.Us=function(){this.xd=!0};e.prototype.Ax=function(a){this.Qe=a||0;a=c();this.be.get(a);z--;return a.data};e.prototype.Bx=function(a){this.Qe=a||0;a=c();this.be.get(a);z--;return ia(a.data)?a.data:""};e.prototype.Hx=function(){return this.object};e.prototype.yx=function(){return this.xq};e.prototype.Fx=function(a){this.Qe=a||0;a=c();this.be.get(a);z--;return a.Eb()?this.b.dh(a.data):this.b.Mk(a.data)};
e.prototype.Gx=function(){return this.jb};e.prototype.Ex=function(){return this.key};e.prototype.Dx=function(){return this.index};e.prototype.Cx=function(a){a=a||0;var b=this.Ma.type,c=null,c=b.ea(),e=c.pc();if(e.length)c=e[a%e.length].type;else if(c.Z.length)c=c.Z[a%c.Z.length].type;else if(b.k.length)c=b.k[a%b.k.length].type;else return 0;return this.index+c.Ak[b.ye]};e.prototype.zx=function(){return this.Yf};e.prototype.xx=function(){return this.Lq};e.prototype.Ix=function(){var a,b;a=0;for(b=
this.Ig.length;a<b;a++)this.Jj[a]=this.Ig[a].get();return this.Jj};Zb=e;h.prototype.bb=function(){this.Ea=g(this.Ea)};h.prototype.Fg=function(a){var b=this.b.Sq();this.parent&&!this.Hi&&b?(this.ug>=b.length&&(b.length=this.ug+1),b[this.ug]=a):this.data=a};h.prototype.mi=function(){var a=this.b.Sq();return!this.parent||this.Hi||!a||this.Zk?this.data:this.ug>=a.length||"undefined"===typeof a[this.ug]?this.Uk:a[this.ug]};h.prototype.nb=function(){!this.parent||this.Hi||this.Zk||this.Fg(this.Uk)};Tb=
h;r.prototype.toString=function(){return"include:"+this.qi.toString()};r.prototype.bb=function(){this.qi=this.b.vn[this.Px];this.sheet.br.add(this);this.Ea=g(this.Ea);for(var a=this.parent;a;)a.group&&a.ik.push(this),a=a.parent;this.Bt()};r.prototype.nb=function(){this.parent&&this.b.nj(this.b.D);this.qi.Nn||this.qi.nb(!0);this.parent&&this.b.Bf(this.b.D)};r.prototype.Bt=function(){for(var a=this.parent;a;){if(a.group&&!a.eg){this.Sa=!1;return}a=a.parent}this.Sa=!0};cc=r;n.prototype.reset=function(a){this.gb=
a;this.nc=this.fb=0;M(this.ht);this.tn=this.qg=!1};n.prototype.Xx=function(){return this.gb.op?!0:this.fb<this.gb.pb.length-1?!!this.gb.Ea.length:!1};Sb=n})();
(function(){function d(b,a){this.Ma=b;this.b=b.b;this.type=a[0];this.get=[this.Dw,this.zw,this.Mw,this.Pw,this.mw,this.Nw,this.Hw,this.ww,this.Gw,this.Lw,this.ow,this.Kw,this.xw,this.Iw,this.Ew,this.Fw,this.Aw,this.Bw,this.vw,this.Ow,this.Jw,this.Cw,this.uw,this.yw][this.type];var f=null;this.Ie=this.ca=this.Ya=this.Lb=this.um=this.second=this.first=this.value=null;this.Cd=-1;this.Id=null;this.Gt=-1;this.Yf=this.Kj=null;this.Gh=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new ac(b,a[1]);break;case 18:this.first=new ac(b,a[1]);this.second=new ac(b,a[2]);this.um=new ac(b,a[3]);break;case 19:this.Lb=this.b.Ye(a[1]);this.Lb!==V.prototype.ja.random&&this.Lb!==V.prototype.ja.uq||this.Ma.Us();this.Ya=[];this.ca=[];3===a.length?(f=a[2],this.Ya.length=f.length+1):this.Ya.length=1;break;case 20:this.Ie=this.b.D[a[1]];this.Cd=-1;this.Lb=this.b.Ye(a[2]);this.Gh=a[3];pc&&this.Lb===pc.prototype.ja.Nt&&this.Ma.Us();a[4]?this.Id=new ac(b,a[4]):this.Id=null;this.Ya=[];this.ca=[];6===
a.length?(f=a[5],this.Ya.length=f.length+1):this.Ya.length=1;break;case 21:this.Ie=this.b.D[a[1]];this.Gh=a[2];a[3]?this.Id=new ac(b,a[3]):this.Id=null;this.Gt=a[4];break;case 22:this.Ie=this.b.D[a[1]];this.Ie.Kk(a[2]);this.Cd=this.Ie.Bn(a[2]);this.Lb=this.b.Ye(a[3]);this.Gh=a[4];a[5]?this.Id=new ac(b,a[5]):this.Id=null;this.Ya=[];this.ca=[];7===a.length?(f=a[6],this.Ya.length=f.length+1):this.Ya.length=1;break;case 23:this.Kj=a[1],this.Yf=null}this.Ma.qy(this.Ie);4<=this.type&&17>=this.type&&(this.first=
new ac(b,a[1]),this.second=new ac(b,a[2]));if(f){var c,e;c=0;for(e=f.length;c<e;c++)this.ca.push(new ac(b,f[c]))}}function l(){++q;k.length===q&&k.push(new $b);return k[q]}function g(b,a,f){var c,e;c=0;for(e=b.length;c<e;++c)b[c].get(f),a[c+1]=f.data}function m(b,a){this.type=b||dc.Pg;this.data=a||0;this.yg=null;this.type==dc.Pg&&(this.data=Math.floor(this.data))}d.prototype.bb=function(){23===this.type&&(this.Yf=this.Ma.b.Tq(this.Kj,this.Ma.Oc.parent));this.first&&this.first.bb();this.second&&this.second.bb();
this.um&&this.um.bb();this.Id&&this.Id.bb();if(this.ca){var b,a;b=0;for(a=this.ca.length;b<a;b++)this.ca[b].bb()}};var k=[],q=-1;d.prototype.Ow=function(b){var a=this.ca,f=this.Ya;f[0]=b;b=l();g(a,f,b);--q;this.Lb.apply(this.b.oe,f)};d.prototype.Jw=function(b){var a=this.Ie,f=this.Ya,c=this.ca,e=this.Id,d=this.Lb,k=this.Ma.Qe,n=a.ea(),m=n.pc();if(!m.length)if(n.Z.length)m=n.Z;else{this.Gh?b.Mc(""):b.Ja(0);return}f[0]=b;b.yg=a;b=l();g(c,f,b);e&&(e.get(b),b.Eb()&&(k=b.data,m=a.k));--q;a=m.length;if(k>=
a||k<=-a)k%=a;0>k&&(k+=a);d.apply(m[k],f)};d.prototype.uw=function(b){var a=this.Ie,f=this.Ya,c=this.ca,e=this.Id,d=this.Cd,k=this.Lb,n=this.Ma.Qe,m=a.ea(),K=m.pc();if(!K.length)if(m.Z.length)K=m.Z;else{this.Gh?b.Mc(""):b.Ja(0);return}f[0]=b;b.yg=a;b=l();g(c,f,b);e&&(e.get(b),b.Eb()&&(n=b.data,K=a.k));--q;c=K.length;if(n>=c||n<=-c)n%=c;0>n&&(n+=c);n=K[n];K=0;a.K&&(K=n.type.ah[a.ye]);k.apply(n.P[d+K],f)};d.prototype.Cw=function(b){var a=this.Id,f=this.Ie,c=this.Gt,e=this.Ma.Qe,d=f.ea(),k=d.pc();if(!k.length)if(d.Z.length)k=
d.Z;else{this.Gh?b.Mc(""):b.Ja(0);return}if(a){d=l();a.get(d);if(d.Eb()){e=d.data;k=f.k;0!==k.length&&(e%=k.length,0>e&&(e+=k.length));e=f.En(e);f=e.tb[c];ia(f)?b.Mc(f):b.T(f);--q;return}--q}a=k.length;if(e>=a||e<=-a)e%=a;0>e&&(e+=a);e=k[e];k=0;f.K&&(k=e.type.Ak[f.ye]);f=e.tb[c+k];ia(f)?b.Mc(f):b.T(f)};d.prototype.Dw=function(b){b.type=dc.Pg;b.data=this.value};d.prototype.zw=function(b){b.type=dc.Og;b.data=this.value};d.prototype.Mw=function(b){b.type=dc.String;b.data=this.value};d.prototype.Pw=function(b){this.first.get(b);
b.Eb()&&(b.data=-b.data)};d.prototype.mw=function(b){this.first.get(b);var a=l();this.second.get(a);b.Eb()&&a.Eb()&&(b.data+=a.data,a.jh()&&b.vh());--q};d.prototype.Nw=function(b){this.first.get(b);var a=l();this.second.get(a);b.Eb()&&a.Eb()&&(b.data-=a.data,a.jh()&&b.vh());--q};d.prototype.Hw=function(b){this.first.get(b);var a=l();this.second.get(a);b.Eb()&&a.Eb()&&(b.data*=a.data,a.jh()&&b.vh());--q};d.prototype.ww=function(b){this.first.get(b);var a=l();this.second.get(a);b.Eb()&&a.Eb()&&(b.data/=
a.data,b.vh());--q};d.prototype.Gw=function(b){this.first.get(b);var a=l();this.second.get(a);b.Eb()&&a.Eb()&&(b.data%=a.data,a.jh()&&b.vh());--q};d.prototype.Lw=function(b){this.first.get(b);var a=l();this.second.get(a);b.Eb()&&a.Eb()&&(b.data=Math.pow(b.data,a.data),a.jh()&&b.vh());--q};d.prototype.ow=function(b){this.first.get(b);var a=l();this.second.get(a);a.mh()||b.mh()?this.qw(b,a):this.pw(b,a);--q};d.prototype.qw=function(b,a){b.mh()&&a.mh()?this.sw(b,a):this.rw(b,a)};d.prototype.sw=function(b,
a){b.data+=a.data};d.prototype.rw=function(b,a){b.mh()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.Mc(b.data.toString()+a.data)};d.prototype.pw=function(b,a){b.Ja(b.data&&a.data?1:0)};d.prototype.Kw=function(b){this.first.get(b);var a=l();this.second.get(a);b.Eb()&&a.Eb()&&(b.data||a.data?b.Ja(1):b.Ja(0));--q};d.prototype.vw=function(b){this.first.get(b);b.data?this.second.get(b):this.um.get(b)};d.prototype.xw=function(b){this.first.get(b);var a=l();this.second.get(a);b.Ja(b.data===a.data?
1:0);--q};d.prototype.Iw=function(b){this.first.get(b);var a=l();this.second.get(a);b.Ja(b.data!==a.data?1:0);--q};d.prototype.Ew=function(b){this.first.get(b);var a=l();this.second.get(a);b.Ja(b.data<a.data?1:0);--q};d.prototype.Fw=function(b){this.first.get(b);var a=l();this.second.get(a);b.Ja(b.data<=a.data?1:0);--q};d.prototype.Aw=function(b){this.first.get(b);var a=l();this.second.get(a);b.Ja(b.data>a.data?1:0);--q};d.prototype.Bw=function(b){this.first.get(b);var a=l();this.second.get(a);b.Ja(b.data>=
a.data?1:0);--q};d.prototype.yw=function(b){var a=this.Yf.mi();ha(a)?b.T(a):b.Mc(a)};ac=d;m.prototype.jh=function(){return this.type===dc.Og};m.prototype.Eb=function(){return this.type===dc.Pg||this.type===dc.Og};m.prototype.mh=function(){return this.type===dc.String};m.prototype.vh=function(){this.jh()||(this.mh()&&(this.data=parseFloat(this.data)),this.type=dc.Og)};m.prototype.Ja=function(b){this.type=dc.Pg;this.data=Math.floor(b)};m.prototype.T=function(b){this.type=dc.Og;this.data=b};m.prototype.Mc=
function(b){this.type=dc.String;this.data=b};m.prototype.Vs=function(b){ha(b)?(this.type=dc.Og,this.data=b):ia(b)?(this.type=dc.String,this.data=b.toString()):(this.type=dc.Pg,this.data=0)};$b=m;dc={Pg:0,Og:1,String:2}})();function V(d){this.b=d;this.Cc=[]}
V.prototype.Oa=function(){var d={},l,g,m,k,q,b,a,f;d.waits=[];var c=d.waits,e;l=0;for(g=this.Cc.length;l<g;l++){b=this.Cc[l];e={t:b.time,st:b.ct,s:b.np,ev:b.Zg.da,sm:[],sols:{}};b.Zg.dd[b.nc]&&(e.act=b.Zg.dd[b.nc].da);m=0;for(k=b.Ea.length;m<k;m++)e.sm.push(b.Ea[m].da);for(q in b.kc)if(b.kc.hasOwnProperty(q)){a=this.b.D[parseInt(q,10)];f={sa:b.kc[q].Tl,insts:[]};m=0;for(k=b.kc[q].Ae.length;m<k;m++)f.insts.push(b.kc[q].Ae[m].uid);e.sols[a.da.toString()]=f}c.push(e)}return d};
V.prototype.Wa=function(d){d=d.waits;var l,g,m,k,q,b,a,f,c,e,h;M(this.Cc);l=0;for(g=d.length;l<g;l++)if(b=d[l],f=this.b.lq[b.ev.toString()]){c=-1;m=0;for(k=f.dd.length;m<k;m++)if(f.dd[m].da===b.act){c=m;break}if(-1!==c){a={kc:{},Ea:[],qn:!1};a.time=b.t;a.ct=b.st||"";a.np=!!b.s;a.Zg=f;a.nc=c;m=0;for(k=b.sm.length;m<k;m++)(f=this.b.nf(b.sm[m]))&&a.Ea.push(f);for(q in b.sols)if(b.sols.hasOwnProperty(q)&&(f=this.b.nf(parseInt(q,10)))){c=b.sols[q];e={Tl:c.sa,Ae:[]};m=0;for(k=c.insts.length;m<k;m++)(h=
this.b.ji(c.insts[m]))&&e.Ae.push(h);a.kc[f.index.toString()]=e}this.Cc.push(a)}}};
(function(){function d(){}function l(){}function g(){}var m=V.prototype;d.prototype.Zt=function(){return!0};d.prototype.Wp=function(){return!0};d.prototype.Vp=function(){return!0};d.prototype.ku=function(b,a,f){return b?ec(100*b.opacity,a,f):!1};d.prototype.Gu=function(b){var a=this.b.$a(),f=a.gb,c=a.Xx(),a=this.b.Zy();if(c)for(c=0;c<b&&!a.Hb;c++)this.b.oj(f.Ea),a.index=c,f.bp(),this.b.Bf(f.Ea);else for(c=0;c<b&&!a.Hb;c++)a.index=c,f.bp();this.b.Py();return!1};d.prototype.Yt=function(b){var a=this.b.ag(),
f=a.N.Every_lastTime||0,c=this.b.ab.I;"undefined"===typeof a.N.Every_seconds&&(a.N.Every_seconds=b);var e=a.N.Every_seconds;if(c>=f+e)return a.N.Every_lastTime=f+e,c>=a.N.Every_lastTime+.04&&(a.N.Every_lastTime=c),a.N.Every_seconds=b,!0;c<f-.1&&(a.N.Every_lastTime=c);return!1};d.prototype.Ut=function(b,a,f){return ec(b.mi(),a,f)};d.prototype.fu=function(b){return(b=this.b.eh[b.toLowerCase()])&&b.eg};d.prototype.Xt=function(){var b=this.b.$a();return b.tn?!1:!b.qg};d.prototype.Xp=function(){return!0};
d.prototype.su=function(){return!0};d.prototype.Mm=function(){return!0};d.prototype.$p=function(){return!0};d.prototype.yu=function(){return!0};d.prototype.Pj=function(){return!0};d.prototype.Lt=function(b,a,f){return Ma(R(b),R(f))<=R(a)};d.prototype.eu=function(b,a){return Qa(R(b),R(a))};d.prototype.cu=function(b,a,f){b=Ka(b);a=Ka(a);f=Ka(f);return Qa(f,a)?Qa(b,a)&&!Qa(b,f):!(!Qa(b,a)&&Qa(b,f))};m.n=new d;l.prototype.au=function(b){this.b.Ji||this.b.Uh||(this.b.Uh=b)};l.prototype.Vt=function(b,a,
f,c){if(a&&b&&(a=this.b.jn(b,a,f,c))){this.b.Uc++;var e;this.b.trigger(Object.getPrototypeOf(b.Aa).n.Kf,a);if(a.hc)for(f=0,c=a.siblings.length;f<c;f++)e=a.siblings[f],this.b.trigger(Object.getPrototypeOf(e.type.Aa).n.Kf,e);this.b.Uc--;b=b.ea();b.ga=!1;M(b.k);b.k[0]=a;if(a.hc)for(f=0,c=a.siblings.length;f<c;f++)e=a.siblings[f],b=e.type.ea(),b.ga=!1,M(b.k),b.k[0]=e}};l.prototype.Qu=function(b,a){b&&b.visible!==a&&(b.visible=a,this.b.la=!0)};l.prototype.Pu=function(b,a){b&&(a=Ea(a/100,0,1),b.opacity!==
a&&(b.opacity=a,this.b.la=!0))};l.prototype.Wu=function(b,a){0===b.Em?ha(a)?b.Fg(a):b.Fg(parseFloat(a)):1===b.Em&&b.Fg(a.toString())};l.prototype.Jt=function(b,a){0===b.Em?ha(a)?b.Fg(b.mi()+a):b.Fg(b.mi()+parseFloat(a)):1===b.Em&&b.Fg(b.mi()+a.toString())};l.prototype.Nu=function(b,a){var f=this.b.eh[b.toLowerCase()];if(f)switch(a){case 0:f.Xl(!1);break;case 1:f.Xl(!0);break;case 2:f.Xl(!f.eg)}};l.prototype.Uu=function(b){0>b&&(b=0);this.b.If=b};var k=[],q=[];l.prototype.lv=function(b){if(!(0>b)){var a,
f,c,e=this.b.$a(),d;k.length?d=k.pop():d={kc:{},Ea:[]};d.qn=!1;d.time=this.b.ab.I+b;d.ct="";d.np=!1;d.Zg=e.gb;d.nc=e.nc+1;b=0;for(a=this.b.D.length;b<a;b++)c=this.b.D[b],f=c.ea(),f.ga&&-1===e.gb.Ea.indexOf(c)||(d.Ea.push(c),c=void 0,q.length?c=q.pop():c={Ae:[]},c.Tl=!1,c.Tl=f.ga,Aa(c.Ae,f.k),d.kc[b.toString()]=c);this.Cc.push(d);return!0}};l.prototype.Hu=function(){var b,a,f;b=0;for(a=this.b.Qm.length;b<a;b++)f=this.b.Qm[b],f.data=f.Uk};m.B=new l;g.prototype["int"]=function(b,a){ia(a)?(b.Ja(parseInt(a,
10)),isNaN(b.data)&&(b.data=0)):b.Ja(a)};g.prototype["float"]=function(b,a){ia(a)?(b.T(parseFloat(a)),isNaN(b.data)&&(b.data=0)):b.T(a)};g.prototype.random=function(b,a,f){void 0===f?b.T(Math.random()*a):b.T(Math.random()*(f-a)+a)};g.prototype.sqrt=function(b,a){b.T(Math.sqrt(a))};g.prototype.abs=function(b,a){b.T(Math.abs(a))};g.prototype.round=function(b,a){b.Ja(Math.round(a))};g.prototype.floor=function(b,a){b.Ja(Math.floor(a))};g.prototype.ceil=function(b,a){b.Ja(Math.ceil(a))};g.prototype.sin=
function(b,a){b.T(Math.sin(R(a)))};g.prototype.cos=function(b,a){b.T(Math.cos(R(a)))};g.prototype.tan=function(b,a){b.T(Math.tan(R(a)))};g.prototype.asin=function(b,a){b.T(Fa(Math.asin(a)))};g.prototype.acos=function(b,a){b.T(Fa(Math.acos(a)))};g.prototype.atan=function(b,a){b.T(Fa(Math.atan(a)))};g.prototype.exp=function(b,a){b.T(Math.exp(a))};g.prototype.log10=function(b,a){b.T(Math.log(a)/Math.LN10)};g.prototype.max=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var f,c,e;f=2;for(c=
arguments.length;f<c;f++)e=arguments[f],"number"===typeof e&&a<e&&(a=e);b.T(a)};g.prototype.min=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var f,c,e;f=2;for(c=arguments.length;f<c;f++)e=arguments[f],"number"===typeof e&&a>e&&(a=e);b.T(a)};g.prototype.Uf=function(b){b.T(this.b.Uf)};g.prototype.If=function(b){b.T(this.b.If)};g.prototype.time=function(b){b.T(this.b.ab.I)};g.prototype.vd=function(b){b.Ja(this.b.vd)};g.prototype.wl=function(b){b.Ja(this.b.wl)};g.prototype.yn=function(b){b.Ja(this.b.yn)};
g.prototype.m=function(b,a,f,c,e){b.T(Fa(La(a,f,c,e)))};g.prototype.fy=function(b,a){var f=this.b.kx(a);f?b.T(100*f.opacity):b.T(0)};g.prototype.hy=function(b){b.Ja(this.b.na.width)};g.prototype.gy=function(b){b.Ja(this.b.na.height)};g.prototype.left=function(b,a,f){b.Mc(ia(a)?a.substr(0,f):"")};g.prototype.right=function(b,a,f){b.Mc(ia(a)?a.substr(a.length-f):"")};g.prototype.replace=function(b,a,f,c){ia(a)&&ia(f)&&ia(c)?b.Mc(a.replace(new RegExp(fb(f),"gi"),c)):b.Mc(ia(a)?a:"")};g.prototype.trim=
function(b,a){b.Mc(ia(a)?a.trim():"")};g.prototype.uq=function(b){var a=v(Math.random()*(arguments.length-1));b.Vs(arguments[a+1])};g.prototype.gn=function(b){b.T(this.b.gn/1E3)};g.prototype.ml=function(b){b.T(this.b.ml)};m.ja=new g;m.iz=function(){var b,a,f,c,e,d,g=this.b.$a();b=0;for(f=this.Cc.length;b<f;b++){c=this.Cc[b];if(-1===c.time){if(!c.np)continue}else if(c.time>this.b.ab.I)continue;g.gb=c.Zg;g.nc=c.nc;g.fb=0;for(a in c.kc)c.kc.hasOwnProperty(a)&&(e=this.b.D[parseInt(a,10)].ea(),d=c.kc[a],
e.ga=d.Tl,Aa(e.k,d.Ae),e=d,M(e.Ae),q.push(e));c.Zg.hz();this.b.bn(c.Ea);c.qn=!0}a=b=0;for(f=this.Cc.length;b<f;b++)c=this.Cc[b],this.Cc[a]=c,c.qn?(Va(c.kc),M(c.Ea),k.push(c)):a++;za(this.Cc,a)}})();
(function(){pb=function(d,g){var m=d[1],k=d[3],q=d[4],b=d[5],a=d[6],f=d[7],c=d[8];g.n||(g.n={});g.B||(g.B={});g.ja||(g.ja={});var e=g.n,h=g.B,r=g.ja;k&&(e.Tz=function(a,b){return ec(this.x,a,b)},e.Uz=function(a,b){return ec(this.y,a,b)},e.$z=function(){var a=this.q;this.Ba();var b=this.Fa;return!(b.right<a.Ca||b.bottom<a.Da||b.left>a.Ha||b.top>a.Ga)},e.aA=function(){this.Ba();var a=this.Fa,b=this.b.na;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},e.lA=function(a,b,c){var e=this.ea(),
f=e.pc();if(!f.length)return!1;var d=f[0],h=d,k=Sa(d.x,d.y,b,c),g,l,m;g=1;for(l=f.length;g<l;g++)if(d=f[g],m=Sa(d.x,d.y,b,c),0===a&&m<k||1===a&&m>k)k=m,h=d;e.kj(h);return!0},h.yA=function(a){this.x!==a&&(this.x=a,this.O())},h.zA=function(a){this.y!==a&&(this.y=a,this.O())},h.Ru=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.O()},h.Su=function(a,b){var c=a.nx(this);if(c){var e;c.ii?(e=c.ii(b,!0),c=c.ii(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.O()}},h.fA=
function(a){0!==a&&(this.x+=Math.cos(this.m)*a,this.y+=Math.sin(this.m)*a,this.O())},h.eA=function(a,b){0!==b&&(this.x+=Math.cos(R(a))*b,this.y+=Math.sin(R(a))*b,this.O())},r.Qj=function(a){a.T(this.x)},r.Rj=function(a){a.T(this.y)},r.Uf=function(a){a.T(this.b.Hd(this))});q&&(e.Sz=function(a,b){return ec(this.width,a,b)},e.Rz=function(a,b){return ec(this.height,a,b)},h.Yu=function(a){this.width!==a&&(this.width=a,this.O())},h.wA=function(a){this.height!==a&&(this.height=a,this.O())},h.xA=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.O()},r.CA=function(a){a.T(this.width)},r.Wz=function(a){a.T(this.height)},r.Oz=function(a){this.Ba();a.T(this.Fa.left)},r.Qz=function(a){this.Ba();a.T(this.Fa.top)},r.Pz=function(a){this.Ba();a.T(this.Fa.right)},r.Nz=function(a){this.Ba();a.T(this.Fa.bottom)});b&&(e.Lt=function(a,b){return Ma(this.m,R(b))<=R(a)},e.eu=function(a){return Qa(this.m,R(a))},e.cu=function(a,b){var c=Ka(a),e=Ka(b),f=Ha(this.m);return Qa(e,c)?Qa(f,c)&&
!Qa(f,e):!(!Qa(f,c)&&Qa(f,e))},h.Iu=function(a){a=R(Ga(a));isNaN(a)||this.m===a||(this.m=a,this.O())},h.pA=function(a){0===a||isNaN(a)||(this.m+=R(a),this.m=Ha(this.m),this.O())},h.qA=function(a){0===a||isNaN(a)||(this.m-=R(a),this.m=Ha(this.m),this.O())},h.rA=function(a,b){var c=Na(this.m,R(b),R(a));isNaN(c)||this.m===c||(this.m=c,this.O())},h.sA=function(a,b,c){a=Na(this.m,Math.atan2(c-this.y,b-this.x),R(a));isNaN(a)||this.m===a||(this.m=a,this.O())},h.Vu=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.m===c||(this.m=c,this.O())},r.Kt=function(a){a.T(Ja(this.m))});m||(e.Rt=function(a,b,c){return ec(this.tb[a],b,c)},e.Yz=function(a){return this.tb[a]},e.mA=function(a,b){var c=this.ea(),e=c.pc();if(!e.length)return!1;var f=e[0],d=f,h=f.tb[b],k,g,l;k=1;for(g=e.length;k<g;k++)if(f=e[k],l=f.tb[b],0===a&&l<h||1===a&&l>h)h=l,d=f;c.kj(d);return!0},e.kA=function(a){var b,c,e,f,d;if(this.b.ag().lg){d=this.ea();if(d.ga)for(d.ga=!1,M(d.k),M(d.Z),e=this.k,b=0,c=e.length;b<c;b++)f=e[b],
f.uid===a?d.Z.push(f):d.k.push(f);else{e=b=0;for(c=d.k.length;b<c;b++)f=d.k[b],d.k[e]=f,f.uid===a?d.Z.push(f):e++;za(d.k,e)}this.Ad();return!!d.k.length}f=this.b.ji(a);if(!f)return!1;d=this.ea();if(!d.ga&&-1===d.k.indexOf(f))return!1;if(this.K)for(a=f.type.Qa,b=0,c=a.length;b<c;b++){if(a[b]===this)return d.kj(f),this.Ad(),!0}else if(f.type===this)return d.kj(f),this.Ad(),!0;return!1},e.Kf=function(){return!0},e.Pp=function(){return!0},h.Ou=function(a,b){var c=this.tb;ha(c[a])?c[a]=ha(b)?b:parseFloat(b):
ia(c[a])&&(c[a]=ia(b)?b:b.toString())},h.Mz=function(a,b){var c=this.tb;ha(c[a])?c[a]=ha(b)?c[a]+b:c[a]+parseFloat(b):ia(c[a])&&(c[a]=ia(b)?c[a]+b:c[a]+b.toString())},h.jv=function(a,b){var c=this.tb;ha(c[a])&&(c[a]=ha(b)?c[a]-b:c[a]-parseFloat(b))},h.tA=function(a,b){this.tb[a]=b?1:0},h.AA=function(a){this.tb[a]=1-this.tb[a]},h.Wt=function(){this.b.Yd(this)},h.lu||(h.lu=function(a){var b,c;try{b=JSON.parse(a)}catch(e){return}this.b.kl(this,b,!0);this.yd&&this.yd();if(this.P)for(a=0,b=this.P.length;a<
b;++a)c=this.P[a],c.yd&&c.yd()}),r.Vz=function(a){var b=a.yg.k.length,c,e,f;c=0;for(e=this.b.Fd.length;c<e;c++)f=this.b.Fd[c],a.yg.K?0<=f.type.Qa.indexOf(a.yg)&&b++:f.type===a.yg&&b++;a.Ja(b)},r.oA=function(a){a.Ja(a.yg.ea().pc().length)},r.BA=function(a){a.Ja(this.uid)},r.Xz=function(a){a.Ja(this.ni())},r.Mt||(r.Mt=function(a){a.Mc(JSON.stringify(this.b.fp(this,!0)))}));a&&(e.bA=function(){return this.visible},h.Xu=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.la=!0)},e.St=function(a,
b){return ec(lb(100*this.opacity),a,b)},h.dq=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.la=!0)},r.Opacity=function(a){a.T(lb(100*this.opacity))});f&&(e.Zz=function(a){return a?this.q===a:!1},e.nA=function(a){var b=this.ea(),c=b.pc();if(!c.length)return!1;var e=c[0],f=e,d,h;d=1;for(h=c.length;d<h;d++)if(e=c[d],0===a){if(e.q.index>f.q.index||e.q.index===f.q.index&&e.fe()>f.fe())f=e}else if(e.q.index<f.q.index||e.q.index===f.q.index&&e.fe()<f.fe())f=e;b.kj(f);return!0},
h.hA=function(){var a=this.q,b=a.k;b.length&&b[b.length-1]===this||(a.Fh(this,!1),a.Sh(this,!1),this.b.la=!0)},h.gA=function(){var a=this.q,b=a.k;b.length&&b[0]===this||(a.Fh(this,!1),a.Uy(this),this.b.la=!0)},h.mu=function(a){a&&a!=this.q&&(this.q.Fh(this,!0),this.q=a,a.Sh(this,!0),this.b.la=!0)},h.EA=function(a,b){var c=0===a;if(b){var e=b.gx(this);e&&e.uid!==this.uid&&(this.q.index!==e.q.index&&(this.q.Fh(this,!0),this.q=e.q,e.q.Sh(this,!0)),this.q.uy(this,e,c),this.b.la=!0)}},r.dA=function(a){a.Ja(this.q.ds)},
r.cA=function(a){a.Mc(this.q.name)},r.DA=function(a){a.Ja(this.fe())});c&&(h.uA=function(a,b){if(this.b.C){var c=this.type.Dn(b);if(!(0>c)){var e=1===a;this.Ze[c]!==e&&(this.Ze[c]=e,this.Vd(),this.b.la=!0)}}},h.vA=function(a,b,c){if(this.b.C){var e=this.type.Dn(a);0>e||(a=this.type.Y[e],e=this.Va[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.C.vx(a.ob,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.Sa&&(this.b.la=!0))))}})};Kb=function(){this.Zm=this.bk=!0;this.type.Vj=!0;this.b.la=!0;var d,g,m=this.Wm;d=0;for(g=
m.length;d<g;++d)m[d](this);this.q.bd&&this.Ba()};Lb=function(d){d&&this.Wm.push(d)};Nb=function(){if(this.bk){var d=this.Fa,g=this.Cb;d.set(this.x,this.y,this.x+this.width,this.y+this.height);d.offset(-this.rc*this.width,-this.tc*this.height);this.m?(d.offset(-this.x,-this.y),g.Xs(d,this.m),g.offset(this.x,this.y),g.mq(d)):g.Oe(d);d.normalize();this.bk=!1;this.Et()}};var d=new va(0,0,0,0);Ob=function(){if(this.q.bd){var l=this.q.Pb,g=this.Fa;d.set(l.lc(g.left),l.mc(g.top),l.lc(g.right),l.mc(g.bottom));
this.xc.$h(d)||(this.xc.right<this.xc.left?l.update(this,null,d):l.update(this,this.xc,d),this.xc.Ug(d),this.q.Rd=!0)}};Pb=function(){if(this.Zm&&this.Ed){this.Ba();var l=this.type.hk,g=this.Fa;d.set(l.lc(g.left),l.mc(g.top),l.lc(g.right),l.mc(g.bottom));this.ff.$h(d)||(this.ff.right<this.ff.left?l.update(this,null,d):l.update(this,this.ff,d),this.ff.Ug(d),this.Zm=!1)}};Mb=function(d,g){return this.Fa.Db(d,g)&&this.Cb.Db(d,g)?this.aa&&!this.aa.qf()?(this.aa.cf(this.width,this.height,this.m),this.aa.Db(d-
this.x,g-this.y)):!0:!1};Fb=function(){this.type.Am();return this.hg};Qb=function(){this.q.Cp();return this.Wd};Rb=function(){M(this.xa);var d,g,m,k=!0;d=0;for(g=this.Ze.length;d<g;d++)this.Ze[d]&&(m=this.type.Y[d],this.xa.push(m),m.Zc||(k=!1));this.Ft=!!this.xa.length;this.Pe=k};Gb=function(){return"Inst"+this.Gs};sb=function(d){if(d&&d.hc&&d.type!=this){var g,m,k;g=0;for(m=d.siblings.length;g<m;g++)if(k=d.siblings[g],k.type==this)return k}d=this.ea().pc();return d.length?d[0]:null};ub=function(d){var g=
this.ea().pc();return g.length?g[d.ni()%g.length]:null};rb=function(){if(this.Kh&&!this.K){var d,g;d=0;for(g=this.k.length;d<g;d++)this.k[d].hg=d;var m=d,k=this.b.Fd;d=0;for(g=k.length;d<g;++d)k[d].type===this&&(k[d].hg=m++);this.Kh=!1}};Db=function(d){if(d<this.k.length)return this.k[d];d-=this.k.length;var g=this.b.Fd,m,k;m=0;for(k=g.length;m<k;++m)if(g[m].type===this){if(0===d)return g[m];--d}return null};vb=function(){return this.Re[this.ae]};wb=function(){this.ae++;this.ae===this.Re.length?this.Re.push(new qb(this)):
(this.Re[this.ae].ga=!0,M(this.Re[this.ae].Z))};xb=function(){this.ae++;this.ae===this.Re.length&&this.Re.push(new qb(this));var d=this.Re[this.ae],g=this.Re[this.ae-1];g.ga?(d.ga=!0,M(d.Z)):(d.ga=!1,Aa(d.k,g.k),Aa(d.Z,g.Z))};yb=function(){this.ae--};zb=function(d){var g,m,k,q,b,a=0;if(!this.K)for(g=0,m=this.Qa.length;g<m;g++)for(b=this.Qa[g],k=0,q=b.Ta.length;k<q;k++){if(d===b.Ta[k].name)return this.N.lastBehIndex=a,b.Ta[k];a++}g=0;for(m=this.Ta.length;g<m;g++){if(d===this.Ta[g].name)return this.N.lastBehIndex=
a,this.Ta[g];a++}return null};Ab=function(d){return this.Kk(d)?this.N.lastBehIndex:-1};Bb=function(d){var g,m;g=0;for(m=this.Y.length;g<m;g++)if(this.Y[g].name===d)return g;return-1};Cb=function(){if(this.hc&&!this.K){var d,g,m,k,q,b,a;this.Am();b=this.ea();var f=b.ga,c=(d=this.b.$a())&&d.gb&&d.gb.Xc;d=0;for(g=this.Ec.length;d<g;d++)if(q=this.Ec[d],q!==this&&(q.Am(),a=q.ea(),a.ga=f,!f)){M(a.k);m=0;for(k=b.k.length;m<k;++m)a.k[m]=q.En(b.k[m].hg);if(c)for(M(a.Z),m=0,k=b.Z.length;m<k;++m)a.Z[m]=q.En(b.Z[m].hg)}}};
Eb=function(){return"Type"+this.da};ec=function(d,g,m){if("undefined"===typeof d||"undefined"===typeof m)return!1;switch(g){case 0:return d===m;case 1:return d!==m;case 2:return d<m;case 3:return d<=m;case 4:return d>m;case 5:return d>=m;default:return!1}}})();
var mc={colorblend:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp sampler2D samplerBack;\nuniform mediump vec2 destStart;\nuniform mediump vec2 destEnd;\nprecision mediump float;\nvec3 rgb_to_hsl(vec3 color)\n{\nvec3 hsl = vec3(0.0, 0.0, 0.0);\nfloat fmin = min(min(color.r, color.g), color.b);\nfloat fmax = max(max(color.r, color.g), color.b);\nfloat delta = fmax - fmin;\nhsl.z = (fmax + fmin) / 2.0;\nif (delta == 0.0)\n{\nhsl.x = 0.0;\nhsl.y = 0.0;\n}\nelse\n{\nif (hsl.z < 0.5)\nhsl.y = delta / (fmax + fmin);\nelse\nhsl.y = delta / (2.0 - fmax - fmin);\nfloat dR = (((fmax - color.r) / 6.0) + (delta / 2.0)) / delta;\nfloat dG = (((fmax - color.g) / 6.0) + (delta / 2.0)) / delta;\nfloat dB = (((fmax - color.b) / 6.0) + (delta / 2.0)) / delta;\nif (color.r == fmax)\nhsl.x = dB - dG;\nelse if (color.g == fmax)\nhsl.x = (1.0 / 3.0) + dR - dB;\nelse if (color.b == fmax)\nhsl.x = (2.0 / 3.0) + dG - dR;\nif (hsl.x < 0.0)\nhsl.x += 1.0;\nelse if (hsl.x > 1.0)\nhsl.x -= 1.0;\n}\nreturn hsl;\n}\nfloat hue_to_rgb(float f1, float f2, float hue)\n{\nif (hue < 0.0)\nhue += 1.0;\nelse if (hue > 1.0)\nhue -= 1.0;\nfloat ret;\nif ((6.0 * hue) < 1.0)\nret = f1 + (f2 - f1) * 6.0 * hue;\nelse if ((2.0 * hue) < 1.0)\nret = f2;\nelse if ((3.0 * hue) < 2.0)\nret = f1 + (f2 - f1) * ((2.0 / 3.0) - hue) * 6.0;\nelse\nret = f1;\nreturn ret;\n}\nvec3 hsl_to_rgb(vec3 hsl)\n{\nvec3 rgb = vec3(hsl.z);\nif (hsl.y != 0.0)\n{\nfloat f2;\nif (hsl.z < 0.5)\nf2 = hsl.z * (1.0 + hsl.y);\nelse\nf2 = (hsl.z + hsl.y) - (hsl.y * hsl.z);\nfloat f1 = 2.0 * hsl.z - f2;\nrgb.r = hue_to_rgb(f1, f2, hsl.x + (1.0 / 3.0));\nrgb.g = hue_to_rgb(f1, f2, hsl.x);\nrgb.b = hue_to_rgb(f1, f2, hsl.x - (1.0 / 3.0));\n}\nreturn rgb;\n}\nvoid main(void)\n{\nvec4 front = texture2D(samplerFront, vTex);\nvec3 fronthsl = rgb_to_hsl(front.rgb / front.a);\nvec4 back = texture2D(samplerBack, mix(destStart, destEnd, vTex));\nvec3 backhsl = rgb_to_hsl(back.rgb / back.a);\nfronthsl = hsl_to_rgb(vec3(fronthsl.x, fronthsl.y, backhsl.z));\nfronthsl *= front.a;\ngl_FragColor = vec4(fronthsl.r, fronthsl.g, fronthsl.b, front.a) * back.a;\n}",bi:0,
ci:0,kk:!0,Zc:!1,Uj:!1,ca:[]},tint:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp float red;\nuniform lowp float green;\nuniform lowp float blue;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\ngl_FragColor = front * vec4(red, green, blue, 1.0);\n}",bi:0,ci:0,kk:!1,Zc:!0,Uj:!1,ca:[["red",0,1],["green",0,1],["blue",0,1]]}};function qc(d){this.b=d}
(function(){function d(a){a=Math.pow(10,a/20);isFinite(a)||(a=0);0>a&&(a=0);1<a&&(a=1);return a}function l(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function g(a){a=a.toLowerCase();return Y.hasOwnProperty(a)&&Y[a].length?Y[a][0].Sc():D.destination}function m(){return D.createGain?D.createGain():D.createGainNode()}function k(a){return D.createDelay?D.createDelay(a):D.createDelayNode(a)}function q(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function b(a,b,c,e){a.start?a.start(e||0,b):
a.noteGrainOn(e||0,b,c-b)}function a(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function f(a,b,c,e,f,d){this.type="filter";this.Zb=[a,b,c,e,f,d];this.ta=m();this.X=m();this.X.gain.value=d;this.W=m();this.W.gain.value=1-d;this.hb=D.createBiquadFilter();this.hb.type="number"===typeof this.hb.type?a:Kc[a];this.hb.frequency.value=b;this.hb.detune&&(this.hb.detune.value=c);this.hb.Q.value=e;this.hb.gain.value=f;this.ta.connect(this.hb);this.ta.connect(this.W);this.hb.connect(this.X)}function c(a,
b,c){this.type="delay";this.Zb=[a,b,c];this.ta=m();this.X=m();this.X.gain.value=c;this.W=m();this.W.gain.value=1-c;this.bj=m();this.hd=k(a);this.hd.delayTime.value=a;this.qk=m();this.qk.gain.value=b;this.ta.connect(this.bj);this.ta.connect(this.W);this.bj.connect(this.X);this.bj.connect(this.hd);this.hd.connect(this.qk);this.qk.connect(this.bj)}function e(a,b,c,e){this.type="convolve";this.Zb=[b,c,e];this.ta=m();this.X=m();this.X.gain.value=c;this.W=m();this.W.gain.value=1-c;this.Rf=D.createConvolver();
a&&(this.Rf.normalize=b,this.Rf.buffer=a);this.ta.connect(this.Rf);this.ta.connect(this.W);this.Rf.connect(this.X)}function h(a,b,c,e,f){this.type="flanger";this.Zb=[a,b,c,e,f];this.ta=m();this.W=m();this.W.gain.value=1-f/2;this.X=m();this.X.gain.value=f/2;this.Bk=m();this.Bk.gain.value=e;this.hd=k(a+b);this.hd.delayTime.value=a;this.Gb=D.createOscillator();this.Gb.frequency.value=c;this.Lc=m();this.Lc.gain.value=b;this.ta.connect(this.hd);this.ta.connect(this.W);this.hd.connect(this.X);this.hd.connect(this.Bk);
this.Bk.connect(this.hd);this.Gb.connect(this.Lc);this.Lc.connect(this.hd.delayTime);q(this.Gb)}function r(a,b,c,e,f,d){this.type="phaser";this.Zb=[a,b,c,e,f,d];this.ta=m();this.W=m();this.W.gain.value=1-d/2;this.X=m();this.X.gain.value=d/2;this.hb=D.createBiquadFilter();this.hb.type="number"===typeof this.hb.type?7:"allpass";this.hb.frequency.value=a;this.hb.detune&&(this.hb.detune.value=b);this.hb.Q.value=c;this.Gb=D.createOscillator();this.Gb.frequency.value=f;this.Lc=m();this.Lc.gain.value=e;
this.ta.connect(this.hb);this.ta.connect(this.W);this.hb.connect(this.X);this.Gb.connect(this.Lc);this.Lc.connect(this.hb.frequency);q(this.Gb)}function n(a){this.type="gain";this.Zb=[a];this.wa=m();this.wa.gain.value=a}function F(a,b){this.type="tremolo";this.Zb=[a,b];this.wa=m();this.wa.gain.value=1-b/2;this.Gb=D.createOscillator();this.Gb.frequency.value=a;this.Lc=m();this.Lc.gain.value=b/2;this.Gb.connect(this.Lc);this.Lc.connect(this.wa.gain);q(this.Gb)}function K(a,b){this.type="ringmod";this.Zb=
[a,b];this.ta=m();this.X=m();this.X.gain.value=b;this.W=m();this.W.gain.value=1-b;this.uj=m();this.uj.gain.value=0;this.Gb=D.createOscillator();this.Gb.frequency.value=a;this.Gb.connect(this.uj.gain);q(this.Gb);this.ta.connect(this.uj);this.ta.connect(this.W);this.uj.connect(this.X)}function z(a,b,c,e,f){this.type="distortion";this.Zb=[a,b,c,e,f];this.ta=m();this.Hl=m();this.Gl=m();this.pz(c,Math.pow(10,e/20));this.X=m();this.X.gain.value=f;this.W=m();this.W.gain.value=1-f;this.Gm=D.createWaveShaper();
this.ok=new Float32Array(65536);this.Xw(a,b);this.Gm.ok=this.ok;this.ta.connect(this.Hl);this.ta.connect(this.W);this.Hl.connect(this.Gm);this.Gm.connect(this.Gl);this.Gl.connect(this.X)}function p(a,b,c,e,f){this.type="compressor";this.Zb=[a,b,c,e,f];this.wa=D.createDynamicsCompressor();try{this.wa.threshold.value=a,this.wa.knee.value=b,this.wa.ratio.value=c,this.wa.attack.value=e,this.wa.release.value=f}catch(d){}}function t(a,b){this.type="analyser";this.Zb=[a,b];this.wa=D.createAnalyser();this.wa.fftSize=
a;this.wa.smoothingTimeConstant=b;this.Vw=new Float32Array(this.wa.frequencyBinCount);this.$s=new Uint8Array(a);this.jj=0}function N(){this.ua=null;this.ll=0}function O(a,b){this.src=a;this.ka=L;this.kd=b;this.Tj=!1;var c=this;this.Do=this.No=null;this.Bh=[];this.Ul=0;this.Hp=this.zk=this.gt=this.Cl=!1;1===L&&b&&!Za&&(this.ka=0,this.No=m());this.qe=this.ya=null;var e;switch(this.ka){case 0:this.ya=new Audio;this.ya.crossOrigin="anonymous";this.ya.addEventListener("canplaythrough",function(){c.Hp=
!0});1===L&&D.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.gt=!0,this.ya.addEventListener("canplay",function(){c.Do||(c.Do=D.createMediaElementSource(c.ya),c.Do.connect(c.No))}));this.ya.autoplay=!1;this.ya.IA="auto";this.ya.src=a;break;case 1:I.Ei?I.Kq(a,function(a){c.qe=a;c.Aq()},function(){c.zk=!0}):(e=new XMLHttpRequest,e.open("GET",a,!0),e.responseType="arraybuffer",e.onload=function(){c.qe=e.response;c.Aq()},e.onerror=function(){c.zk=!0},e.send());break;case 2:this.ya=
!0;break;case 3:this.ya=!0}}function A(a,b){var c=this;this.tag=b;this.Hb=this.ee=!0;this.src=a.src;this.buffer=a;this.ka=L;this.kd=a.kd;this.playbackRate=1;this.hh=!0;this.Hc=this.$c=!1;this.yc=0;this.Gi=this.kh=this.he=!1;this.volume=1;this.Lo=function(a){if(!c.Hc&&!c.$c){var b=this;b||(b=a.target);b===c.Sj&&(c.hh=!0,c.Hb=!0,W=c.tag,I.trigger(qc.prototype.n.Oj,P))}};this.Sj=null;this.ih=1===X&&!this.kd||2===X;this.wh=1;this.startTime=this.ih?I.ab.I:I.Ve.I;this.lb=this.qb=null;this.ke=!1;this.Nb=
null;this.vs=this.us=this.ts=this.qs=this.xs=this.ws=0;this.u=null;var e=!1;1!==this.ka||0!==this.buffer.ka||this.buffer.gt||(this.ka=0);switch(this.ka){case 0:this.kd?(this.u=a.ya,e=!a.Tj,a.Tj=!0):(this.u=new Audio,this.u.crossOrigin="anonymous",this.u.autoplay=!1,this.u.src=a.ya.src,e=!0);e&&this.u.addEventListener("ended",function(){W=c.tag;c.Hb=!0;I.trigger(qc.prototype.n.Oj,P)});break;case 1:this.qb=m();this.qb.connect(g(b));1===this.buffer.ka?a.ya&&(this.u=D.createBufferSource(),this.u.buffer=
a.ya,this.u.connect(this.qb)):(this.u=this.buffer.ya,this.buffer.No.connect(this.qb),this.buffer.Tj||(this.buffer.Tj=!0,this.buffer.ya.addEventListener("ended",function(){W=c.tag;c.Hb=!0;I.trigger(qc.prototype.n.Oj,P)})));break;case 2:this.u=new window.Media(S+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.hh=!0,c.Hb=!0,W=c.tag,I.trigger(qc.prototype.n.Oj,P))});break;case 3:this.u=!0}}function B(a){M(Ia);if(a.length){var b,c,e;b=0;for(c=w.length;b<c;b++)e=w[b],mb(a,e.tag)&&Ia.push(e)}else C&&
!C.gg()&&(M(Ia),Ia[0]=C)}function E(a,b){Y.hasOwnProperty(a)?Y[a].push(b):Y[a]=[b];var c,e,f,d,h=D.destination;if(Y.hasOwnProperty(a)&&(f=Y[a],f.length))for(h=f[0].Sc(),c=0,e=f.length;c<e;c++)d=f[c],c+1===e?d.fd(D.destination):d.fd(f[c+1].Sc());B(a);c=0;for(e=Ia.length;c<e;c++)Ia[c].az(h);Pa&&Hb===a&&(Pa.disconnect(),Pa.connect(h))}function y(){}function u(){}var G=qc.prototype;G.U=function(a){this.Aa=a;this.b=a.b};G.U.prototype.G=function(){};var I=null,P=null,W="",S="",L=0,D=null,x=[],w=[],C=null,
Q=!1,X=0,J=!1,H=1,T=0,ka=0,U=!1,ua=1,la=1,Oa=10,Cc=1E4,Ec=1,Pa=null,Hb="",$a=!1,ab=[],Za=!1,Y={},Kc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");f.prototype.fd=function(a){this.X.disconnect();this.X.connect(a);this.W.disconnect();this.W.connect(a)};f.prototype.remove=function(){this.ta.disconnect();this.hb.disconnect();this.X.disconnect();this.W.disconnect()};f.prototype.Sc=function(){return this.ta};c.prototype.fd=function(a){this.X.disconnect();this.X.connect(a);
this.W.disconnect();this.W.connect(a)};c.prototype.remove=function(){this.ta.disconnect();this.bj.disconnect();this.hd.disconnect();this.qk.disconnect();this.X.disconnect();this.W.disconnect()};c.prototype.Sc=function(){return this.ta};e.prototype.fd=function(a){this.X.disconnect();this.X.connect(a);this.W.disconnect();this.W.connect(a)};e.prototype.remove=function(){this.ta.disconnect();this.Rf.disconnect();this.X.disconnect();this.W.disconnect()};e.prototype.Sc=function(){return this.ta};h.prototype.fd=
function(a){this.W.disconnect();this.W.connect(a);this.X.disconnect();this.X.connect(a)};h.prototype.remove=function(){this.ta.disconnect();this.hd.disconnect();this.Gb.disconnect();this.Lc.disconnect();this.W.disconnect();this.X.disconnect();this.Bk.disconnect()};h.prototype.Sc=function(){return this.ta};r.prototype.fd=function(a){this.W.disconnect();this.W.connect(a);this.X.disconnect();this.X.connect(a)};r.prototype.remove=function(){this.ta.disconnect();this.hb.disconnect();this.Gb.disconnect();
this.Lc.disconnect();this.W.disconnect();this.X.disconnect()};r.prototype.Sc=function(){return this.ta};n.prototype.fd=function(a){this.wa.disconnect();this.wa.connect(a)};n.prototype.remove=function(){this.wa.disconnect()};n.prototype.Sc=function(){return this.wa};F.prototype.fd=function(a){this.wa.disconnect();this.wa.connect(a)};F.prototype.remove=function(){this.Gb.disconnect();this.Lc.disconnect();this.wa.disconnect()};F.prototype.Sc=function(){return this.wa};K.prototype.fd=function(a){this.X.disconnect();
this.X.connect(a);this.W.disconnect();this.W.connect(a)};K.prototype.remove=function(){this.Gb.disconnect();this.uj.disconnect();this.ta.disconnect();this.X.disconnect();this.W.disconnect()};K.prototype.Sc=function(){return this.ta};z.prototype.pz=function(a,b){.01>a&&(a=.01);this.Hl.gain.value=a;this.Gl.gain.value=Math.pow(1/a,.6)*b};z.prototype.shape=function(a,b,c){var e=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+e*(1-Math.exp(-(1/e)*(a-b)));return b*c};z.prototype.Xw=function(a,b){for(var c=Math.pow(10,
a/20),e=Math.pow(10,b/20),f=0,d=0;32768>d;++d)f=d/32768,f=this.shape(f,c,e),this.ok[32768+d]=f,this.ok[32768-d-1]=-f};z.prototype.fd=function(a){this.X.disconnect();this.X.connect(a);this.W.disconnect();this.W.connect(a)};z.prototype.remove=function(){this.ta.disconnect();this.Hl.disconnect();this.Gm.disconnect();this.Gl.disconnect();this.X.disconnect();this.W.disconnect()};z.prototype.Sc=function(){return this.ta};p.prototype.fd=function(a){this.wa.disconnect();this.wa.connect(a)};p.prototype.remove=
function(){this.wa.disconnect()};p.prototype.Sc=function(){return this.wa};t.prototype.za=function(){this.wa.getFloatFrequencyData(this.Vw);this.wa.getByteTimeDomainData(this.$s);for(var a=this.wa.fftSize,b=0,c=this.jj=0,e=0;b<a;b++)e=(this.$s[b]-128)/128,0>e&&(e=-e),this.jj<e&&(this.jj=e),c+=e*e;this.jj=l(this.jj);l(Math.sqrt(c/a))};t.prototype.fd=function(a){this.wa.disconnect();this.wa.connect(a)};t.prototype.remove=function(){this.wa.disconnect()};t.prototype.Sc=function(){return this.wa};N.prototype.vj=
function(a){this.ua=a};N.prototype.Rk=function(){return!!this.ua};N.prototype.za=function(){};var tb=!1;O.prototype.bz=function(){var a,b,c,e;c=a=0;for(b=w.length;a<b;++a)e=w[a],w[c]=e,e.buffer===this?e.stop():++c;w.length=c;this.qe=this.ya=null};O.prototype.Aq=function(){if(!this.ya&&this.qe){var a=this;if(D.decodeAudioData)D.decodeAudioData(this.qe,function(b){a.ya=b;a.qe=null;var c,e,f;if(ga(a.Dl)||J)ga(a.jk)||(c=a.jk.Rf,c.normalize=a.bs,c.buffer=b);else if(a.Bh.length){c=0;for(e=a.Bh.length;c<
e;c++){b=a.Bh[c];f=new A(a,b.nt);f.Yl(!0);if("undefined"!==typeof b.es&&(b.ua=I.ji(b.es),!b.ua))continue;if(b.ua){var d=Ra(b.ua.x,b.ua.y,-b.ua.q.rb(),T,ka,!0),h=Ra(b.ua.x,b.ua.y,-b.ua.q.rb(),T,ka,!1);f.lp(d,h,Fa(b.ua.m-b.ua.q.rb()),b.Pn,b.Fo,b.Ho);f.vj(b.ua)}else f.lp(b.x,b.y,b.cd,b.Pn,b.Fo,b.Ho);f.play(a.zo,a.Fp,a.Ul);a.Cl&&f.pause();w.push(f)}M(a.Bh)}else f=new A(a,a.Dl||""),f.play(a.zo,a.Fp,a.Ul),a.Cl&&f.pause(),w.push(f)},function(){a.zk=!0});else if(this.ya=D.createBuffer(this.qe,!1),this.qe=
null,ga(this.Dl)||J)ga(this.jk)||(b=this.jk.Rf,b.normalize=this.bs,b.buffer=this.ya);else{var b=new A(this,this.Dl);b.play(this.zo,this.Fp,this.Ul);this.Cl&&b.pause();w.push(b)}}};O.prototype.lr=function(){switch(this.ka){case 0:var a=4<=this.ya.readyState;a&&(this.Hp=!0);return a||this.Hp;case 1:return!!this.qe||!!this.ya;case 2:return!0;case 3:return!0}return!1};O.prototype.mr=function(){switch(this.ka){case 0:return this.lr();case 1:return!!this.ya;case 2:return!0;case 3:return!0}return!1};O.prototype.Xq=
function(){switch(this.ka){case 0:return!!this.ya.error;case 1:return this.zk}return!1};A.prototype.gg=function(){switch(this.ka){case 0:return this.u.ended;case 1:return 1===this.buffer.ka?!this.ee&&!this.Hb&&this.u.loop||this.Hc?!1:this.hh:this.u.ended;case 2:return this.hh;case 3:!0}return!0};A.prototype.Bv=function(){return this.ee||this.Hb?!0:this.gg()};A.prototype.Yl=function(a){1===L&&(!this.ke&&a?this.qb&&(this.lb||(this.lb=D.createPanner(),this.lb.panningModel="number"===typeof this.lb.panningModel?
ua:["equalpower","HRTF","soundfield"][ua],this.lb.distanceModel="number"===typeof this.lb.distanceModel?la:["linear","inverse","exponential"][la],this.lb.refDistance=Oa,this.lb.maxDistance=Cc,this.lb.rolloffFactor=Ec),this.qb.disconnect(),this.qb.connect(this.lb),this.lb.connect(g(this.tag)),this.ke=!0):this.ke&&!a&&this.qb&&(this.lb.disconnect(),this.qb.disconnect(),this.qb.connect(g(this.tag)),this.ke=!1))};A.prototype.lp=function(a,b,c,e,f,d){this.ke&&1===L&&(this.lb.setPosition(a,b,0),this.lb.setOrientation(Math.cos(R(c)),
Math.sin(R(c)),0),this.lb.coneInnerAngle=e,this.lb.coneOuterAngle=f,this.lb.coneOuterGain=d,this.ws=a,this.xs=b,this.qs=c,this.ts=e,this.us=f,this.vs=d)};A.prototype.vj=function(a){this.ke&&1===L&&(this.Nb||(this.Nb=new N),this.Nb.vj(a))};A.prototype.za=function(a){if(this.ke&&1===L&&this.Nb&&this.Nb.Rk()&&this.Bi()){this.Nb.za(a);a=this.Nb.ua;var b=Ra(a.x,a.y,-a.q.rb(),T,ka,!0),c=Ra(a.x,a.y,-a.q.rb(),T,ka,!1);this.lb.setPosition(b,c,0);b=0;"undefined"!==typeof this.Nb.ua.m&&(b=a.m-a.q.rb(),this.lb.setOrientation(Math.cos(b),
Math.sin(b),0))}};A.prototype.play=function(a,c,e,f){var d=this.u;this.he=a;this.volume=c;e=e||0;f=f||0;switch(this.ka){case 0:1!==d.playbackRate&&(d.playbackRate=1);d.volume!==c*H&&(d.volume=c*H);d.loop!==a&&(d.loop=a);d.muted&&(d.muted=!1);if(d.currentTime!==e)try{d.currentTime=e}catch(h){}if(this.kd&&$a&&!I.Gc)ab.push(this);else try{this.u.play()}catch(k){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",k)}break;case 1:this.muted=!1;this.wh=
1;if(1===this.buffer.ka)this.qb.gain.value=c*H,this.ee||(this.u=D.createBufferSource(),this.u.buffer=this.buffer.ya,this.u.connect(this.qb)),this.u.onended=this.Lo,this.Sj=this.u,this.u.loop=a,this.hh=!1,0===e?q(this.u,f):b(this.u,e,this.bg(),f);else{1!==d.playbackRate&&(d.playbackRate=1);d.loop!==a&&(d.loop=a);d.volume=c*H;if(d.currentTime!==e)try{d.currentTime=e}catch(g){}this.kd&&$a&&!I.Gc?ab.push(this):d.play()}break;case 2:(!this.ee&&this.Hb||0!==e)&&d.seekTo(e);d.play();this.hh=!1;break;case 3:I.gc?
AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.ih?I.ab.I:I.Ve.I)-e;this.Hc=this.Hb=this.ee=!1};A.prototype.stop=function(){switch(this.ka){case 0:this.u.paused||this.u.pause();break;case 1:1===this.buffer.ka?a(this.u):this.u.paused||this.u.pause();break;case 2:this.u.stop();break;case 3:I.gc&&AppMobi.context.stopSound(this.src)}this.Hb=!0;this.Hc=!1};A.prototype.pause=function(){if(!(this.ee||this.Hb||this.gg()||this.Hc)){switch(this.ka){case 0:this.u.paused||
this.u.pause();break;case 1:1===this.buffer.ka?(this.yc=this.Fn(!0),this.he&&(this.yc=this.yc%this.bg()),this.Hc=!0,a(this.u)):this.u.paused||this.u.pause();break;case 2:this.u.pause();break;case 3:I.gc&&AppMobi.context.stopSound(this.src)}this.Hc=!0}};A.prototype.gz=function(){if(!(this.ee||this.Hb||this.gg())&&this.Hc){switch(this.ka){case 0:this.u.play();break;case 1:1===this.buffer.ka?(this.u=D.createBufferSource(),this.u.buffer=this.buffer.ya,this.u.connect(this.qb),this.u.onended=this.Lo,this.Sj=
this.u,this.u.loop=this.he,this.qb.gain.value=H*this.volume*this.wh,this.Bm(),this.startTime=(this.ih?I.ab.I:I.Ve.I)-this.yc/(this.playbackRate||.001),b(this.u,this.yc,this.bg())):this.u.play();break;case 2:this.u.play();break;case 3:I.gc&&AppMobi.context.resumeSound(this.src)}this.Hc=!1}};A.prototype.seek=function(a){if(!(this.ee||this.Hb||this.gg()))switch(this.ka){case 0:try{this.u.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.ka)this.Hc?this.yc=a:(this.pause(),this.yc=a,this.gz());else try{this.u.currentTime=
a}catch(c){}break;case 3:I.gc&&AppMobi.context.seekSound(this.src,a)}};A.prototype.az=function(a){1===this.ka&&(this.ke?(this.lb.disconnect(),this.lb.connect(a)):(this.qb.disconnect(),this.qb.connect(a)))};A.prototype.bg=function(){var a=0;switch(this.ka){case 0:"undefined"!==typeof this.u.duration&&(a=this.u.duration);break;case 1:a=this.buffer.ya.duration;break;case 2:a=this.u.getDuration();break;case 3:I.gc&&(a=AppMobi.context.getDurationSound(this.src))}return a};A.prototype.Fn=function(a){var b=
this.bg(),c=0;switch(this.ka){case 0:"undefined"!==typeof this.u.currentTime&&(c=this.u.currentTime);break;case 1:if(1===this.buffer.ka){if(this.Hc)return this.yc;c=(this.ih?I.ab.I:I.Ve.I)-this.startTime}else"undefined"!==typeof this.u.currentTime&&(c=this.u.currentTime);break;case 3:I.gc&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.he&&c>b&&(c=b);return c};A.prototype.Bi=function(){return!this.Hc&&!this.ee&&!this.Hb&&!this.gg()};A.prototype.vz=function(){return!this.ee&&
!this.Hb&&!this.gg()};A.prototype.Fz=function(){var a=this.volume*H;isFinite(a)||(a=0);switch(this.ka){case 0:"undefined"!==typeof this.u.volume&&this.u.volume!==a&&(this.u.volume=a);break;case 1:1===this.buffer.ka?this.qb.gain.value=a*this.wh:"undefined"!==typeof this.u.volume&&this.u.volume!==a&&(this.u.volume=a)}};A.prototype.wk=function(a){switch(this.ka){case 0:this.u.muted!==!!a&&(this.u.muted=!!a);break;case 1:1===this.buffer.ka?(this.wh=a?0:1,this.qb.gain.value=H*this.volume*this.wh):this.u.muted!==
!!a&&(this.u.muted=!!a)}};A.prototype.qz=function(){this.kh=!0;this.wk(this.kh||this.Gi)};A.prototype.Ts=function(a){this.Gi=!!a;this.wk(this.kh||this.Gi)};A.prototype.Bm=function(){var a=this.playbackRate;this.ih&&(a*=I.If);switch(this.ka){case 0:this.u.playbackRate!==a&&(this.u.playbackRate=a);break;case 1:1===this.buffer.ka?this.u.playbackRate.value!==a&&(this.u.playbackRate.value=a):this.u.playbackRate!==a&&(this.u.playbackRate=a)}};A.prototype.sz=function(c){switch(this.ka){case 0:c?this.Bi()?
(this.$c=!0,this.u.pause()):this.$c=!1:this.$c&&(this.u.play(),this.$c=!1);break;case 1:c?this.Bi()?(this.$c=!0,1===this.buffer.ka?(this.yc=this.Fn(!0),this.he&&(this.yc=this.yc%this.bg()),a(this.u)):this.u.pause()):this.$c=!1:this.$c&&(1===this.buffer.ka?(this.u=D.createBufferSource(),this.u.buffer=this.buffer.ya,this.u.connect(this.qb),this.u.onended=this.Lo,this.Sj=this.u,this.u.loop=this.he,this.qb.gain.value=H*this.volume*this.wh,this.Bm(),this.startTime=(this.ih?I.ab.I:I.Ve.I)-this.yc/(this.playbackRate||
.001),b(this.u,this.yc,this.bg())):this.u.play(),this.$c=!1);break;case 2:c?this.Bi()?(this.u.pause(),this.$c=!0):this.$c=!1:this.$c&&(this.$c=!1,this.u.play())}};G.L=function(a){function b(){if(!U&&D.createBuffer){var a=D.createBuffer(1,220,22050),c=D.createBufferSource();c.buffer=a;c.connect(D.destination);q(c)}}this.type=a;I=this.b=a.b;P=this;this.Jc=null;this.Si=-600;this.b.Ei&&(Za=!0);!(this.b.Ii||this.b.Vk&&(this.b.vi||this.b.Wk))||this.b.Yk||this.b.ib||this.b.ir||Za||($a=!0);D=null;"undefined"!==
typeof AudioContext?(L=1,D=new AudioContext):"undefined"!==typeof webkitAudioContext&&(L=1,D=new webkitAudioContext);this.b.Ii&&D&&(D.close&&D.close(),"undefined"!==typeof AudioContext?D=new AudioContext:"undefined"!==typeof webkitAudioContext&&(D=new webkitAudioContext));$a?document.addEventListener("touchend",function(){!tb&&D&&(b(),tb=!0);var a,c,e;if($a){if(!J)for(a=0,c=ab.length;a<c;++a)e=ab[a],e.Hb||e.Hc||e.u.play();M(ab)}},!0):Za&&document.addEventListener("touchend",function(){!tb&&D&&(b(),
tb=!0)},!0);1!==L&&(this.b.Be&&"undefined"!==typeof window.Media?L=2:this.b.jr&&(L=3));2===L&&(S=location.href,a=S.lastIndexOf("/"),-1<a&&(S=S.substr(0,a+1)),S=S.replace("file://",""));if(this.b.Yx&&this.b.$x&&"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.Yd(this);else{if(this.b.gc)Q=this.b.Vk;else try{Q=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(c){Q=!1}this.b.Kg(this)}};
var ra=G.L.prototype;ra.G=function(){this.b.Tg=this;X=this.A[0];this.Ne=this.A[1];this.My=0!==this.A[2];this.tl=0;ua=this.A[3];la=this.A[4];this.Si=-this.A[5];Oa=this.A[6];Cc=this.A[7];Ec=this.A[8];this.Jc=new N;var a=this.b.S||this.b.width,b=this.b.R||this.b.height;1===L&&(D.listener.setPosition(a/2,b/2,this.Si),D.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Pa&&Pa.disconnect();Hb=b.toLowerCase();Pa=D.createMediaStreamSource(a);Pa.connect(g(Hb))});this.b.rv(function(a){P.Ey(a)});
var c=this;this.b.Pm(function(a){c.Io(a)})};ra.Io=function(a){var b,c,e;b=0;for(c=w.length;b<c;b++)e=w[b],e.Nb&&e.Nb.ua===a&&(e.Nb.ua=null,e.ke&&e.Bi()&&e.he&&e.stop());this.Jc.ua===a&&(this.Jc.ua=null)};ra.Oa=function(){var a={silent:J,masterVolume:H,listenerZ:this.Si,listenerUid:this.Jc.Rk()?this.Jc.ua.uid:-1,playing:[],effects:{}},b=a.playing,c,e,f,d,h,k;c=0;for(e=w.length;c<e;c++)f=w[c],!f.vz()||3===this.Ne||f.kd&&1===this.Ne||!f.kd&&2===this.Ne||(d=f.Fn(),f.he&&(d=d%f.bg()),d={tag:f.tag,buffersrc:f.buffer.src,
is_music:f.kd,playbackTime:d,volume:f.volume,looping:f.he,muted:f.kh,playbackRate:f.playbackRate,paused:f.Hc,resume_position:f.yc},f.ke&&(d.pan={},k=d.pan,f.Nb&&f.Nb.Rk()?k.objUid=f.Nb.ua.uid:(k.x=f.ws,k.y=f.xs,k.a=f.qs),k.ia=f.ts,k.oa=f.us,k.og=f.vs),b.push(d));b=a.effects;for(h in Y)if(Y.hasOwnProperty(h)){f=[];c=0;for(e=Y[h].length;c<e;c++)f.push({type:Y[h][c].type,params:Y[h][c].Zb});b[h]=f}return a};var bb=[];ra.Wa=function(a){var b=a.silent;H=a.masterVolume;this.Si=a.listenerZ;this.Jc.vj(null);
var d=a.listenerUid;-1!==d&&(this.Jc.ll=d,bb.push(this.Jc));var d=a.playing,k,g,m,q,l,O,A,B,y,u,I;if(3!==this.Ne)for(k=0,g=w.length;k<g;k++)y=w[k],y.kd&&1===this.Ne||(y.kd||2!==this.Ne)&&y.stop();for(l in Y)if(Y.hasOwnProperty(l))for(k=0,g=Y[l].length;k<g;k++)Y[l][k].remove();Va(Y);for(l in a.effects)if(a.effects.hasOwnProperty(l))for(O=a.effects[l],k=0,g=O.length;k<g;k++)switch(m=O[k].type,u=O[k].params,m){case "filter":E(l,new f(u[0],u[1],u[2],u[3],u[4],u[5]));break;case "delay":E(l,new c(u[0],
u[1],u[2]));break;case "convolve":m=u[2];y=this.Ik(m,!1);y.ya?m=new e(y.ya,u[0],u[1],m):(m=new e(null,u[0],u[1],m),y.bs=u[0],y.jk=m);E(l,m);break;case "flanger":E(l,new h(u[0],u[1],u[2],u[3],u[4]));break;case "phaser":E(l,new r(u[0],u[1],u[2],u[3],u[4],u[5]));break;case "gain":E(l,new n(u[0]));break;case "tremolo":E(l,new F(u[0],u[1]));break;case "ringmod":E(l,new K(u[0],u[1]));break;case "distortion":E(l,new z(u[0],u[1],u[2],u[3],u[4]));break;case "compressor":E(l,new p(u[0],u[1],u[2],u[3],u[4]));
break;case "analyser":E(l,new t(u[0],u[1]))}k=0;for(g=d.length;k<g;k++)3===this.Ne||(a=d[k],m=a.buffersrc,q=a.is_music,l=a.tag,O=a.playbackTime,A=a.looping,B=a.volume,I=(u=a.pan)&&u.hasOwnProperty("objUid")?u.objUid:-1,q&&1===this.Ne)||!q&&2===this.Ne||((y=this.Jk(m,l,q,A,B))?(y.yc=a.resume_position,y.Yl(!!u),y.play(A,B,O),y.Bm(),y.Fz(),y.wk(y.kh||y.Gi),a.paused&&y.pause(),a.muted&&y.qz(),y.wk(y.kh||y.Gi),u&&(-1!==I?(y.Nb=y.Nb||new N,y.Nb.ll=I,bb.push(y.Nb)):y.lp(u.x,u.y,u.a,u.ia,u.oa,u.og))):(y=
this.Ik(m,q),y.Ul=O,y.Cl=a.paused,u&&(-1!==I?y.Bh.push({es:I,Pn:u.ia,Fo:u.oa,Ho:u.og,nt:l}):y.Bh.push({x:u.x,y:u.y,cd:u.a,Pn:u.ia,Fo:u.oa,Ho:u.og,nt:l}))));if(b&&!J){k=0;for(g=w.length;k<g;k++)w[k].Ts(!0);J=!0}else if(!b&&J){k=0;for(g=w.length;k<g;k++)w[k].Ts(!1);J=!1}};ra.yd=function(){var a,b,c,e;a=0;for(b=bb.length;a<b;a++)c=bb[a],e=this.b.ji(c.ll),c.vj(e),c.ll=-1,e&&(T=e.x,ka=e.y);M(bb)};ra.Ey=function(a){if(!this.My){!a&&D&&D.resume&&(D.resume(),U=!1);var b,c;b=0;for(c=w.length;b<c;b++)w[b].sz(a);
a&&D&&D.suspend&&(D.suspend(),U=!0)}};ra.za=function(){var a=this.b.Uf,b,c,e;b=0;for(c=w.length;b<c;b++)e=w[b],e.za(a),0!==X&&e.Bm();var f,d;for(f in Y)if(Y.hasOwnProperty(f))for(e=Y[f],b=0,c=e.length;b<c;b++)d=e[b],d.za&&d.za();1===L&&this.Jc.Rk()&&(this.Jc.za(a),T=this.Jc.ua.x,ka=this.Jc.ua.y,D.listener.setPosition(this.Jc.ua.x,this.Jc.ua.y,this.Si))};var cb=[];ra.rz=function(a){var b,c,e,f,d,h=0;b=0;for(c=a.length;b<c;++b)if(e=a[b],f=e[0],e=2*e[1],(d=4<f.length&&".ogg"===f.substr(f.length-4))&&
Q||!d&&!Q)cb.push({filename:f,size:e,ua:null}),h+=e;return h};ra.xz=function(){var a,b,c,e;a=0;for(b=cb.length;a<b;++a)c=cb[a],e=this.b.fi+c.filename,c.ua=this.Ik(e,!1)};ra.qx=function(){var a=0,b,c,e;b=0;for(c=cb.length;b<c;++b)e=cb[b],e.ua.mr()||e.ua.Xq()||this.b.ib||this.b.Wk?a+=e.size:e.ua.lr()&&(a+=Math.floor(e.size/2));return a};ra.cz=function(){var a,b,c,e;c=a=0;for(b=x.length;a<b;++a)e=x[a],x[c]=e,e.kd?e.bz():++c;x.length=c};ra.Ik=function(a,b){var c,e,f,d=null;c=0;for(e=x.length;c<e;c++)if(f=
x[c],f.src===a){d=f;break}d||(Za&&b&&this.cz(),d=new O(a,b),x.push(d));return d};ra.Jk=function(a,b,c,e,f){var d,h,k;d=0;for(h=w.length;d<h;d++)if(k=w[d],k.src===a&&(k.Bv()||c))return k.tag=b,k;a=this.Ik(a,c);if(!a.ya)return"<preload>"!==b&&(a.Dl=b,a.zo=e,a.Fp=f),null;k=new A(a,b);w.push(k);return k};var Ia=[];y.prototype.Oj=function(a){return mb(W,a)};y.prototype.Fu=function(){var a,b;a=0;for(b=x.length;a<b;a++)if(!x[a].mr()&&!x[a].Xq())return!1;return!0};G.n=new y;u.prototype.Play=function(a,b,
c,e){!J&&(c=d(c),C=this.Jk(this.b.fi+a[0]+(Q?".ogg":".m4a"),e,a[1],0!==b,c))&&(C.Yl(!1),C.play(0!==b,c,0,this.tl),this.tl=0)};u.prototype.Du=function(a,b,c,e,f){!J&&(e=d(e),C=this.Jk(this.b.fi+b.toLowerCase()+(Q?".ogg":".m4a"),f,1===a,0!==c,e))&&(C.Yl(!1),C.play(0!==c,e,0,this.tl),this.tl=0)};u.prototype.Eu=function(a){if(!J){var b=a[1];a=this.b.fi+a[0]+(Q?".ogg":".m4a");3===L?this.b.gc?AppMobi.context.loadSound(a):AppMobi.player.loadSound(a):2!==L&&this.Jk(a,"<preload>",b,!1)}};u.prototype.Nm=function(a){B(a);
var b;a=0;for(b=Ia.length;a<b;a++)Ia[a].stop()};G.B=new u;G.ja=new function(){}})();function pc(d){this.b=d}
(function(){function d(){this.name="";this.Pl=0;this.Zb=[]}function l(){b++;b===q.length&&q.push(new d);return q[b]}function g(){}function m(){}var k=pc.prototype;k.U=function(a){this.Aa=a;this.b=a.b};k.U.prototype.G=function(){};k.L=function(a){this.type=a;this.b=a.b};var q=[],b=-1;k.L.prototype.G=function(){var a=this;window.c2_callFunction=function(f,c){var e,d,k,g=l();g.name=f.toLowerCase();g.Pl=0;if(c)for(g.Zb.length=c.length,e=0,d=c.length;e<d;++e)k=c[e],g.Zb[e]="number"===typeof k||"string"===
typeof k?k:"boolean"===typeof k?k?1:0:0;else M(g.Zb);a.b.trigger(pc.prototype.n.Rp,a,g.name);b--;return g.Pl}};g.prototype.Rp=function(a){var f=0>b?null:q[b];return f?mb(a,f.name):!1};k.n=new g;k.B=new function(){};m.prototype.Nt=function(a,f){var c=l();c.name=f.toLowerCase();c.Pl=0;M(c.Zb);var e,d;e=2;for(d=arguments.length;e<d;e++)c.Zb.push(arguments[e]);this.b.trigger(pc.prototype.n.Rp,this,c.name);b--;a.Vs(c.Pl)};k.ja=new m})();function rc(d){this.b=d}
(function(){function d(){}var l=rc.prototype;l.U=function(d){this.Aa=d;this.b=d.b};l.U.prototype.G=function(){};l.L=function(d){this.type=d;this.b=d.b;this.nh=Array(256);this.Ij=Array(256);this.Te=0};var g=l.L.prototype;g.G=function(){var d=this;this.b.ib||(jQuery(document).keydown(function(g){d.Jo(g)}),jQuery(document).keyup(function(g){d.Ko(g)}))};var m=[32,33,34,35,36,37,38,39,40,44];g.Jo=function(d){var g=!1;window!=window.top&&-1<m.indexOf(d.which)&&(d.preventDefault(),g=!0,d.stopPropagation());
if(this.nh[d.which])this.Ij[d.which]&&!g&&d.preventDefault();else{this.nh[d.which]=!0;this.Te=d.which;this.b.Gc=!0;this.b.trigger(rc.prototype.n.qu,this);var b=this.b.trigger(rc.prototype.n.Sp,this),a=this.b.trigger(rc.prototype.n.xu,this);this.b.Gc=!1;if(b||a)this.Ij[d.which]=!0,g||d.preventDefault()}};g.Ko=function(d){this.nh[d.which]=!1;this.Te=d.which;this.b.Gc=!0;this.b.trigger(rc.prototype.n.Mp,this);var g=this.b.trigger(rc.prototype.n.Up,this),b=this.b.trigger(rc.prototype.n.Tp,this);this.b.Gc=
!1;if(g||b||this.Ij[d.which])this.Ij[d.which]=!0,d.preventDefault()};g.zf=function(){var d;for(d=0;256>d;++d)if(this.nh[d]){this.nh[d]=!1;this.Te=d;this.b.trigger(rc.prototype.n.Mp,this);var g=this.b.trigger(rc.prototype.n.Up,this),b=this.b.trigger(rc.prototype.n.Tp,this);if(g||b)this.Ij[d]=!0}};g.Oa=function(){return{triggerKey:this.Te}};g.Wa=function(d){this.Te=d.triggerKey};d.prototype.gu=function(d){return this.nh[d]};d.prototype.Sp=function(d){return d===this.Te};d.prototype.qu=function(){return!0};
d.prototype.Mp=function(){return!0};d.prototype.Up=function(d){return d===this.Te};d.prototype.xu=function(d){return d===this.Te};d.prototype.Tp=function(d){return d===this.Te};l.n=new d;l.B=new function(){};l.ja=new function(){}})();function sc(d){this.b=d}
(function(){function d(){}function l(){}function g(){}var m=sc.prototype;m.U=function(a){this.Aa=a;this.b=a.b};m.U.prototype.G=function(){};m.L=function(a){this.type=a;this.b=a.b;this.Of=Array(4);this.qt=this.xm=this.Mg=this.He=this.Ge=0;this.Mn=!1};var k=m.L.prototype;k.G=function(){var a=this;if(!this.b.ib){jQuery(document).mousemove(function(b){a.Cy(b)});jQuery(document).mousedown(function(b){a.By(b)});jQuery(document).mouseup(function(b){a.Dy(b)});jQuery(document).dblclick(function(b){a.Ay(b)});
var b=function(b){a.Fy(b)};document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var q={left:0,top:0};k.Cy=function(a){var b=this.b.ib?q:jQuery(this.b.canvas).offset();this.Ge=a.pageX-b.left;this.He=a.pageY-b.top};k.Xr=function(){return 0<this.b.oc?!0:0<=this.Ge&&0<=this.He&&this.Ge<this.b.width&&this.He<this.b.height};k.By=function(a){this.Xr()&&(this.Of[a.which]=!0,this.b.Gc=!0,this.b.trigger(sc.prototype.n.pu,this),this.Mg=a.which-1,this.xm=0,this.b.trigger(sc.prototype.n.Op,
this),this.b.trigger(sc.prototype.n.Lm,this),this.b.Gc=!1)};k.Dy=function(a){this.Of[a.which]&&(this.b.Wq&&!this.b.pf&&a.preventDefault(),this.b.Wq=!0,this.Of[a.which]=!1,this.b.Gc=!0,this.Mg=a.which-1,this.b.trigger(sc.prototype.n.Zp,this),this.b.Gc=!1)};k.Ay=function(a){this.Xr()&&(a.preventDefault(),this.b.Gc=!0,this.Mg=a.which-1,this.xm=1,this.b.trigger(sc.prototype.n.Op,this),this.b.trigger(sc.prototype.n.Lm,this),this.b.Gc=!1)};k.Fy=function(a){this.qt=0>(a.wheelDelta?a.wheelDelta:a.detail?
-a.detail:0)?0:1;this.Mn=!1;this.b.Gc=!0;this.b.trigger(sc.prototype.n.Cu,this);this.b.Gc=!1;this.Mn&&nb(a)&&a.preventDefault()};k.zf=function(){var a,b;a=0;for(b=this.Of.length;a<b;++a)this.Of[a]&&(this.Of[a]=!1,this.Mg=a-1,this.b.trigger(sc.prototype.n.Zp,this))};d.prototype.Op=function(a,b){return a===this.Mg&&b===this.xm};d.prototype.pu=function(){return!0};d.prototype.du=function(a){return this.Of[a+1]};d.prototype.Zp=function(a){return a===this.Mg};d.prototype.hu=function(a){var b=this.b.ag();
return Ta(this.b.it(a,this.Ge,this.He,b.lg),b.lg)};d.prototype.Lm=function(a,b,c){return a!==this.Mg||b!==this.xm?!1:this.b.it(c,this.Ge,this.He,!1)};d.prototype.Cu=function(a){this.Mn=!0;return a===this.qt};m.n=new d;var b=null;l.prototype.Mu=function(a){this.b.ib||(a="auto pointer text crosshair move help wait none".split(" ")[a],b!==a&&(b=a,document.body.style.cursor=a))};m.B=new l;g.prototype.Qj=function(a,b){var c,e,d,k,g;ga(b)?(c=this.b.dh(0),e=c.scale,d=c.Xd,k=c.md,g=c.m,c.scale=1,c.Xd=1,c.md=
1,c.m=0,a.T(c.fc(this.Ge,this.He,!0)),c.scale=e,c.Xd=d,c.md=k,c.m=g):(c=ha(b)?this.b.dh(b):this.b.Mk(b))?a.T(c.fc(this.Ge,this.He,!0)):a.T(0)};g.prototype.Rj=function(a,b){var c,e,d,k,g;ga(b)?(c=this.b.dh(0),e=c.scale,d=c.Xd,k=c.nd,g=c.m,c.scale=1,c.Xd=1,c.nd=1,c.m=0,a.T(c.fc(this.Ge,this.He,!1)),c.scale=e,c.Xd=d,c.nd=k,c.m=g):(c=ha(b)?this.b.dh(b):this.b.Mk(b))?a.T(c.fc(this.Ge,this.He,!1)):a.T(0)};m.ja=new g})();function tc(d){this.b=d}
(function(){function d(d){this.Ma=d;this.Sa=!1;this.m=this.speed=this.y=this.x=0;this.opacity=1;this.bf=this.fh=this.size=this.Ok=0}var l=tc.prototype;l.U=function(d){this.Aa=d;this.b=d.b};var g=l.U.prototype;g.G=function(){this.K||(this.V=new Image,this.V.hn=this.rm,this.ma=null,this.b.Gp(this.V,this.qm))};g.ij=function(){this.K||(this.ma=null)};g.xl=function(){this.K||!this.k.length||this.ma||(this.ma=this.b.C.sh(this.V,!0,this.b.La,this.Ej))};g.Ui=function(){this.K||this.ma||!this.b.C||(this.ma=
this.b.C.sh(this.V,!0,this.b.La,this.Ej))};g.zm=function(){this.K||this.k.length||!this.ma||(this.b.C.deleteTexture(this.ma),this.ma=null)};g.Jl=function(d){d.drawImage(this.V,0,0)};d.prototype.init=function(){var d=this.Ma;this.x=d.x-d.Hm/2+Math.random()*d.Hm;this.y=d.y-d.Im/2+Math.random()*d.Im;this.speed=d.Vn-d.km/2+Math.random()*d.km;this.m=d.m-d.lm/2+Math.random()*d.lm;this.opacity=d.Tn;this.size=d.Un-d.jm/2+Math.random()*d.jm;this.Ok=d.Ln-d.Pk/2+Math.random()*d.Pk;this.bf=this.fh=0};d.prototype.za=
function(d){var g=this.Ma;this.x+=Math.cos(this.m)*this.speed*d;this.y+=Math.sin(this.m)*this.speed*d;this.y+=this.fh*d;this.speed+=g.Ia*d;this.size+=this.Ok*d;this.fh+=g.lf*d;this.bf+=d;1>this.size?this.Sa=!1:(0!==g.Pi&&(this.m+=Math.random()*g.Pi*d-g.Pi*d/2),0!==g.Ri&&(this.speed+=Math.random()*g.Ri*d-g.Ri*d/2),0!==g.Qi&&(this.opacity+=Math.random()*g.Qi*d-g.Qi*d/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=g.Yg&&this.bf>=g.timeout&&(this.Sa=!1),2===g.Yg&&0>=this.speed&&
(this.Sa=!1))};d.prototype.Qc=function(d){var g=this.Ma.opacity*this.opacity;if(0!==g){0===this.Ma.Yg&&(g*=1-this.bf/this.Ma.timeout);d.globalAlpha=g;var g=this.x-this.size/2,b=this.y-this.size/2;this.Ma.b.Yc&&(g=g+.5|0,b=b+.5|0);d.drawImage(this.Ma.type.V,g,b,this.size,this.size)}};d.prototype.Xb=function(d){var g=this.Ma.opacity*this.opacity;0===this.Ma.Yg&&(g*=1-this.bf/this.Ma.timeout);var b=this.size,a=b*this.Ma.As,f=this.x-b/2,c=this.y-b/2;this.Ma.b.Yc&&(f=f+.5|0,c=c+.5|0);1>a||0===g||(a<d.ty||
a>d.Bo?(d.Ff(g),d.Dh(f,c,f+b,c,f+b,c+b,f,c+b)):d.Ny(this.x,this.y,a,g))};d.prototype.left=function(){return this.x-this.size/2};d.prototype.right=function(){return this.x+this.size/2};d.prototype.top=function(){return this.y-this.size/2};d.prototype.bottom=function(){return this.y+this.size/2};l.L=function(d){this.type=d;this.b=d.b};var g=l.L.prototype,m=[];g.G=function(){var d=this.A;this.Nl=d[0];this.lm=R(d[1]);this.Ih=d[2];this.qp=!0;this.Vn=d[3];this.Un=d[4];this.Tn=d[5]/100;this.Ln=d[6];this.Hm=
d[7];this.Im=d[8];this.km=d[9];this.jm=d[10];this.Pk=d[11];this.Ia=d[12];this.lf=d[13];this.Pi=d[14];this.Ri=d[15];this.Qi=d[16];this.Yg=d[17];this.timeout=d[18];this.Bg=0;this.As=1;this.zl=this.x;this.Bl=this.y;this.Al=this.x;this.yl=this.y;this.sv(function(d){d.Fa.set(d.zl,d.Bl,d.Al,d.yl);d.Cb.Oe(d.Fa);d.bk=!1;d.Dp();d.Et()});this.jc||(this.ic=[]);this.b.Kg(this);this.type.Ui();if(1===this.Ih)for(d=0;d<this.Nl;d++)this.Rm().opacity=0;this.Ek=!0};g.Oa=function(){var d={r:this.Nl,sc:this.lm,st:this.Ih,
s:this.qp,isp:this.Vn,isz:this.Un,io:this.Tn,gr:this.Ln,xr:this.Hm,yr:this.Im,spr:this.km,szr:this.jm,grnd:this.Pk,acc:this.Ia,g:this.lf,lar:this.Pi,lsr:this.Ri,lor:this.Qi,dm:this.Yg,to:this.timeout,pcc:this.Bg,ft:this.Ek,p:[]},g,b,a,f=d.p;g=0;for(b=this.ic.length;g<b;g++)a=this.ic[g],f.push([a.x,a.y,a.speed,a.m,a.opacity,a.Ok,a.size,a.fh,a.bf]);return d};g.Wa=function(d){this.Nl=d.r;this.lm=d.sc;this.Ih=d.st;this.qp=d.s;this.Vn=d.isp;this.Un=d.isz;this.Tn=d.io;this.Ln=d.gr;this.Hm=d.xr;this.Im=
d.yr;this.km=d.spr;this.jm=d.szr;this.Pk=d.grnd;this.Ia=d.acc;this.lf=d.g;this.Pi=d.lar;this.Ri=d.lsr;this.Qi=d.lor;this.Yg=d.dm;this.timeout=d.to;this.Bg=d.pcc;this.Ek=d.ft;m.push.apply(m,this.ic);M(this.ic);var g,b,a,f=d.p;d=0;for(g=f.length;d<g;d++)b=this.Rm(),a=f[d],b.x=a[0],b.y=a[1],b.speed=a[2],b.m=a[3],b.opacity=a[4],b.Ok=a[5],b.size=a[6],b.fh=a[7],b.bf=a[8]};g.Nd=function(){m.push.apply(m,this.ic);M(this.ic)};g.Rm=function(){var g;m.length?(g=m.pop(),g.Ma=this):g=new d(this);this.ic.push(g);
g.Sa=!0;return g};g.za=function(){var d=this.b.Hd(this),g,b,a,f;if(0===this.Ih&&this.qp)for(this.Bg+=d*this.Nl,b=v(this.Bg),this.Bg-=b,g=0;g<b;g++)a=this.Rm(),a.init();this.zl=this.x;this.Bl=this.y;this.Al=this.x;this.yl=this.y;f=g=0;for(b=this.ic.length;g<b;g++)a=this.ic[g],this.ic[f]=a,this.b.la=!0,1===this.Ih&&this.Ek&&a.init(),a.za(d),a.Sa?(a.left()<this.zl&&(this.zl=a.left()),a.right()>this.Al&&(this.Al=a.right()),a.top()<this.Bl&&(this.Bl=a.top()),a.bottom()>this.yl&&(this.yl=a.bottom()),f++):
m.push(a);za(this.ic,f);this.O();this.Ek=!1;1===this.Ih&&0===this.ic.length&&this.b.Yd(this)};g.Qc=function(d){var g,b,a,f=this.q;g=0;for(b=this.ic.length;g<b;g++)a=this.ic[g],a.right()>=f.Ca&&a.bottom()>=f.Da&&a.left()<=f.Ha&&a.top()<=f.Ga&&a.Qc(d)};g.Xb=function(d){this.As=this.q.qc();d.zc(this.type.ma);var g,b,a,f=this.q;g=0;for(b=this.ic.length;g<b;g++)a=this.ic[g],a.right()>=f.Ca&&a.bottom()>=f.Da&&a.left()<=f.Ha&&a.top()<=f.Ga&&a.Xb(d)};l.n=new function(){};l.B=new function(){};l.ja=new function(){}})();
function Z(d){this.b=d}
(function(){function d(){if(0===this.nn.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Jh?b.drawImage(this.V,this.xh,this.yh,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.V,0,0,this.width,this.height);this.nn=a.toDataURL("image/png")}return this.nn}function l(){}function g(a){a[0]=0;a[1]=0;a[2]=0;r.push(a)}function m(a,b){return a<b?""+a+","+b:""+b+","+a}function k(a,b,c,e){b=b.uid;c=c.uid;var d=m(b,c);if(a.hasOwnProperty(d))a[d][2]=
e;else{var f=r.length?r.pop():[0,0,0];f[0]=b;f[1]=c;f[2]=e;a[d]=f}}function q(a,b,c){b=m(b.uid,c.uid);a.hasOwnProperty(b)&&(g(a[b]),delete a[b])}function b(a,b,c){b=m(b.uid,c.uid);if(a.hasOwnProperty(b))return n=a[b][2],!0;n=-2;return!1}function a(){}var f=Z.prototype;f.U=function(a){this.Aa=a;this.b=a.b};var c=f.U.prototype;c.G=function(){if(!this.K){var a,b,c,e,f,h,g,k,n;this.zd=[];this.pi=!1;a=0;for(b=this.Dc.length;a<b;a++){f=this.Dc[a];g={};g.name=f[0];g.speed=f[1];g.loop=f[2];g.Zo=f[3];g.$o=
f[4];g.Bs=f[5];g.da=f[6];g.frames=[];c=0;for(e=f[7].length;c<e;c++)h=f[7][c],k={},k.qm=h[0],k.rm=h[1],k.xh=h[2],k.yh=h[3],k.width=h[4],k.height=h[5],k.duration=h[6],k.rc=h[7],k.tc=h[8],k.Rn=h[9],k.El=h[10],k.Cs=h[11],k.Jh=0!==k.width,k.nn="",k.GA=d,n={left:0,top:0,right:1,bottom:1},k.mp=n,k.ma=null,(n=this.b.Uw(h[0]))?k.V=n:(k.V=new Image,k.V.Fv=h[0],k.V.hn=h[1],k.V.zv=null,this.b.Gp(k.V,h[0])),g.frames.push(k),this.zd.push(k);this.Dc[a]=g}}};c.Dt=function(){var a,b,c;a=0;for(b=this.k.length;a<b;a++)c=
this.k[a],c.mk=c.Jb.ma};c.ij=function(){if(!this.K){var a,b,c;a=0;for(b=this.zd.length;a<b;++a)c=this.zd[a],c.V.zv=null,c.ma=null;this.pi=!1;this.Dt()}};c.xl=function(){if(!this.K&&this.k.length){var a,b,c;a=0;for(b=this.zd.length;a<b;++a)c=this.zd[a],c.ma=this.b.C.sh(c.V,!1,this.b.La,c.Cs);this.Dt()}};c.Ui=function(){if(!this.K&&!this.pi&&this.b.C){var a,b,c;a=0;for(b=this.zd.length;a<b;++a)c=this.zd[a],c.ma=this.b.C.sh(c.V,!1,this.b.La,c.Cs);this.pi=!0}};c.zm=function(){if(!this.K&&!this.k.length&&
this.pi){var a,b,c;a=0;for(b=this.zd.length;a<b;++a)c=this.zd[a],this.b.C.deleteTexture(c.ma),c.ma=null;this.pi=!1}};var e=[];c.Jl=function(a){var b,c,d;M(e);b=0;for(c=this.zd.length;b<c;++b)d=this.zd[b].V,-1===e.indexOf(d)&&(a.drawImage(d,0,0),e.push(d))};f.L=function(a){this.type=a;this.b=a.b;a=this.type.Dc[0].frames[0].El;this.jc?this.aa.xj(a):this.aa=new gb(a)};var h=f.L.prototype;h.G=function(){this.visible=0===this.A[0];this.Tk=this.Di=!1;this.Ed=0!==this.A[3];this.Na=this.Qq(this.A[1])||this.type.Dc[0];
this.M=this.A[2];0>this.M&&(this.M=0);this.M>=this.Na.frames.length&&(this.M=this.Na.frames.length-1);var a=this.Na.frames[this.M];this.aa.xj(a.El);this.rc=a.rc;this.tc=a.tc;this.Vg=this.Na.speed;this.jf=this.Na.$o;1===this.type.Dc.length&&1===this.type.Dc[0].frames.length||0===this.Vg||(this.b.Kg(this),this.Di=!0);this.jc?this.Zd.reset():this.Zd=new eb;this.ze=this.Zd.I;this.Mf=!0;this.pe=0;this.Lf=!0;this.gk=this.iq="";this.tq=0;this.fk=-1;this.type.Ui();var b,c,e,d,f,h,g,a=0;for(b=this.type.Dc.length;a<
b;a++)for(d=this.type.Dc[a],c=0,e=d.frames.length;c<e;c++)f=d.frames[c],0===f.width&&(f.width=f.V.width,f.height=f.V.height),f.Jh&&(g=f.V,h=f.mp,h.left=f.xh/g.width,h.top=f.yh/g.height,h.right=(f.xh+f.width)/g.width,h.bottom=(f.yh+f.height)/g.height,0===f.xh&&0===f.yh&&f.width===g.width&&f.height===g.height&&(f.Jh=!1));this.Jb=this.Na.frames[this.M];this.mk=this.Jb.ma};h.Oa=function(){var a={a:this.Na.da,f:this.M,cas:this.Vg,fs:this.ze,ar:this.pe,at:this.Zd.I,rt:this.jf};this.Mf||(a.ap=this.Mf);this.Lf||
(a.af=this.Lf);return a};h.Wa=function(a){var b=this.Zw(a.a);b&&(this.Na=b);this.M=a.f;0>this.M&&(this.M=0);this.M>=this.Na.frames.length&&(this.M=this.Na.frames.length-1);this.Vg=a.cas;this.ze=a.fs;this.pe=a.ar;this.Zd.reset();this.Zd.I=a.at;this.Mf=a.hasOwnProperty("ap")?a.ap:!0;this.Lf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.jf=a.rt:this.jf=this.Na.$o;this.Jb=this.Na.frames[this.M];this.mk=this.Jb.ma;this.aa.xj(this.Jb.El);this.rc=this.Jb.rc;this.tc=this.Jb.tc};h.Um=function(a){this.M=
a?0:this.Na.frames.length-1;this.Mf=!1;this.iq=this.Na.name;this.Tk=!0;this.b.trigger(Z.prototype.n.ou,this);this.b.trigger(Z.prototype.n.nu,this);this.Tk=!1;this.pe=0};h.Vm=function(){return this.Zd.I};h.za=function(){this.Zd.add(this.b.Hd(this));this.gk.length&&this.Bq();0<=this.fk&&this.Cq();var a=this.Zd.I,b=this.Na,c=b.frames[this.M],e=c.duration/this.Vg;this.Mf&&a>=this.ze+e&&(this.Lf?this.M++:this.M--,this.ze+=e,this.M>=b.frames.length&&(b.Bs?(this.Lf=!1,this.M=b.frames.length-2):b.loop?this.M=
this.jf:(this.pe++,this.pe>=b.Zo?this.Um(!1):this.M=this.jf)),0>this.M&&(b.Bs?(this.M=1,this.Lf=!0,b.loop||(this.pe++,this.pe>=b.Zo&&this.Um(!0))):b.loop?this.M=this.jf:(this.pe++,this.pe>=b.Zo?this.Um(!0):this.M=this.jf)),0>this.M?this.M=0:this.M>=b.frames.length&&(this.M=b.frames.length-1),a>this.ze+b.frames[this.M].duration/this.Vg&&(this.ze=a),a=b.frames[this.M],this.Qg(c,a),this.b.la=!0)};h.Qq=function(a){var b,c,e;b=0;for(c=this.type.Dc.length;b<c;b++)if(e=this.type.Dc[b],mb(e.name,a))return e;
return null};h.Zw=function(a){var b,c,e;b=0;for(c=this.type.Dc.length;b<c;b++)if(e=this.type.Dc[b],e.da===a)return e;return null};h.Bq=function(){var a=this.Na.frames[this.M],b=this.Qq(this.gk);this.gk="";!b||mb(b.name,this.Na.name)&&this.Mf||(this.Na=b,this.Vg=b.speed,this.jf=b.$o,0>this.M&&(this.M=0),this.M>=this.Na.frames.length&&(this.M=this.Na.frames.length-1),1===this.tq&&(this.M=0),this.Mf=!0,this.ze=this.Zd.I,this.Lf=!0,this.Qg(a,this.Na.frames[this.M]),this.b.la=!0)};h.Cq=function(){var a=
this.Na.frames[this.M],b=this.M;this.M=v(this.fk);0>this.M&&(this.M=0);this.M>=this.Na.frames.length&&(this.M=this.Na.frames.length-1);b!==this.M&&(this.Qg(a,this.Na.frames[this.M]),this.ze=this.Zd.I,this.b.la=!0);this.fk=-1};h.Qg=function(a,b){var c=a.width,e=a.height,d=b.width,f=b.height;c!=d&&(this.width*=d/c);e!=f&&(this.height*=f/e);this.rc=b.rc;this.tc=b.tc;this.aa.xj(b.El);this.O();this.Jb=b;this.mk=b.ma;c=0;for(e=this.P.length;c<e;c++)d=this.P[c],d.ns&&d.ns(a,b);this.b.trigger(Z.prototype.n.Qg,
this)};h.Qc=function(a){a.globalAlpha=this.opacity;var b=this.Jb,c=b.Jh,e=b.V,d=this.x,f=this.y,h=this.width,g=this.height;if(0===this.m&&0<=h&&0<=g)d-=this.rc*h,f-=this.tc*g,this.b.Yc&&(d=Math.round(d),f=Math.round(f)),c?a.drawImage(e,b.xh,b.yh,b.width,b.height,d,f,h,g):a.drawImage(e,d,f,h,g);else{this.b.Yc&&(d=Math.round(d),f=Math.round(f));a.save();var k=0<h?1:-1,n=0<g?1:-1;a.translate(d,f);1===k&&1===n||a.scale(k,n);a.rotate(this.m*k*n);d=0-this.rc*na(h);f=0-this.tc*na(g);c?a.drawImage(e,b.xh,
b.yh,b.width,b.height,d,f,na(h),na(g)):a.drawImage(e,d,f,na(h),na(g));a.restore()}};h.Tf=function(a){this.Xb(a)};h.Xb=function(a){a.zc(this.mk);a.Ff(this.opacity);var b=this.Jb,c=this.Cb;if(this.b.Yc){var e=Math.round(this.x)-this.x,d=Math.round(this.y)-this.y;b.Jh?a.me(c.Ab+e,c.Bb+d,c.cc+e,c.ec+d,c.Ub+e,c.Vb+d,c.Sb+e,c.Tb+d,b.mp):a.Dh(c.Ab+e,c.Bb+d,c.cc+e,c.ec+d,c.Ub+e,c.Vb+d,c.Sb+e,c.Tb+d)}else b.Jh?a.me(c.Ab,c.Bb,c.cc,c.ec,c.Ub,c.Vb,c.Sb,c.Tb,b.mp):a.Dh(c.Ab,c.Bb,c.cc,c.ec,c.Ub,c.Vb,c.Sb,c.Tb)};
h.ix=function(a){var b=this.Jb,c,e;c=0;for(e=b.Rn.length;c<e;c++)if(mb(a,b.Rn[c][0]))return c;return-1};h.ii=function(a,b){var c=this.Jb,e=c.Rn,d;ia(a)?d=this.ix(a):d=a-1;d=v(d);if(0>d||d>=e.length)return b?this.x:this.y;var f=(e[d][1]-c.rc)*this.width,e=e[d][2],e=(e-c.tc)*this.height,c=Math.cos(this.m);d=Math.sin(this.m);var h=f*c-e*d,e=e*c+f*d,f=h+this.x,e=e+this.y;return b?f:e};var r=[],n=-2,F=[];l.prototype.tu=function(a){if(!a)return!1;var c=this.b,e=c.ag(),d=e.type,f=null;e.N.collmemory?f=e.N.collmemory:
(f={},e.N.collmemory=f);e.N.spriteCreatedDestroyCallback||(e.N.spriteCreatedDestroyCallback=!0,c.Pm(function(a){var b=e.N.collmemory;a=a.uid;var c,d;for(c in b)b.hasOwnProperty(c)&&(d=b[c],d[0]===a||d[1]===a)&&(g(b[c]),delete b[c])}));var h=d.ea(),m=a.ea(),h=h.pc(),l,p,r,t,K,z,x,w=this.b.vd,C=w-1,N=c.$a().gb;for(p=0;p<h.length;p++){r=h[p];m.ga?(r.Ba(),this.b.Lk(r.q,a,r.Fa,F),l=F):l=m.pc();for(t=0;t<l.length;t++)K=l[t],c.Hf(r,K)||c.Cv(r,K)?(z=b(f,r,K),z=!z||n<C,k(f,r,K,w),z&&(c.oj(N.Ea),z=d.ea(),x=
a.ea(),z.ga=!1,x.ga=!1,d===a?(z.k.length=2,z.k[0]=r,z.k[1]=K,d.Ad()):(z.k.length=1,x.k.length=1,z.k[0]=r,x.k[0]=K,d.Ad(),a.Ad()),N.bp(),c.Bf(N.Ea))):q(f,r,K);M(F)}return!1};var K=null,z=new ca,p=!1,t=[],N=new va(0,0,0,0);c.finish=function(a){if(p){if(a){var b=this.b.$a().gb.Xc;a=K.ea();var c=z.wd(),e,d;if(a.ga){a.ga=!1;M(a.k);e=0;for(d=c.length;e<d;++e)a.k[e]=c[e];if(b)for(M(a.Z),e=0,d=K.k.length;e<d;++e)c=K.k[e],z.contains(c)||a.Z.push(c)}else if(b)for(b=a.k.length,e=0,d=c.length;e<d;++e)a.k[b+e]=
c[e],Da(a.Z,c[e]);else Aa(a.k,c);K.Ad()}z.clear();p=!1}};l.prototype.iu=function(a){if(a){var b=!1,c,e,d,f=this.b.ag(),h=f.type,f=f.lg;c=a.ea();e=this.b.$a().gb.Xc;var g;c.ga?(this.Ba(),N.Ug(this.Fa),N.offset(0,0),this.b.Lk(this.q,a,N,t),g=t):g=e?this.b.Ux()&&!c.Z.length&&c.k.length?c.k:c.Z:c.k;K=a;p=h!==a&&!f;c=0;for(e=g.length;c<e;c++)if(d=g[c],this.b.Hf(this,d)){b=!0;if(f)break;h!==a&&z.add(d)}M(t);a=b}else a=!1;return a};l.prototype.nu=function(a){return mb(this.iq,a)};l.prototype.ou=function(){return!0};
l.prototype.Qg=function(){return!0};f.n=new l;a.prototype.bv=function(a,b,c){if(a&&b&&(b=this.b.jn(a,b,this.ii(c,!0),this.ii(c,!1)))){"undefined"!==typeof b.m&&(b.m=this.m,b.O());this.b.Uc++;var e,d,f;this.b.trigger(Object.getPrototypeOf(a.Aa).n.Kf,b);if(b.hc)for(e=0,d=b.siblings.length;e<d;e++)f=b.siblings[e],this.b.trigger(Object.getPrototypeOf(f.type.Aa).n.Kf,f);this.b.Uc--;e=this.b.ax();c=!1;if(ga(e.N.Spawn_LastExec)||e.N.Spawn_LastExec<this.b.Zf)c=!0,e.N.Spawn_LastExec=this.b.Zf;if(a!=this.type&&
(a=a.ea(),a.ga=!1,c?(M(a.k),a.k[0]=b):a.k.push(b),b.hc))for(e=0,d=b.siblings.length;e<d;e++)f=b.siblings[e],a=f.type.ea(),a.ga=!1,c?(M(a.k),a.k[0]=f):a.k.push(f)}};a.prototype.Ku=function(a,b){this.gk=a;this.tq=b;this.Di||(this.b.Kg(this),this.Di=!0);this.Tk||this.Bq()};a.prototype.Lu=function(a){this.fk=a;this.Di||(this.b.Kg(this),this.Di=!0);this.Tk||this.Cq()};f.B=new a;f.ja=new function(){}})();function uc(d){this.b=d}
(function(){function d(){return f.length?f.pop():{}}function l(a){var b,d;b=0;for(d=a.length;b<d;b++)f.push(a[b]);M(a)}function g(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function m(){}function k(){}var q=uc.prototype;q.G=function(){q.B.Yu=function(a){this.width!==a&&(this.width=a,this.Jg=!0,this.O())}};q.U=function(a){this.Aa=a;this.b=a.b};var b=q.U.prototype;b.G=function(){};b.ij=function(){if(!this.K){var a,b,d;a=0;for(b=this.k.length;a<b;a++)d=this.k[a],d.je=
null,d.xg=null,d.Kc=null}};q.L=function(a){this.type=a;this.b=a.b;this.jc?M(this.tf):this.tf=[];this.Jg=!0};b=q.L.prototype;b.G=function(){this.text=this.A[0];this.visible=0===this.A[1];this.font=this.A[2];this.color=this.A[3];this.Qk=this.A[4];this.Dm=this.A[5];this.Jp=0===this.A[7];this.qo=this.el=this.width;this.dl=this.height;this.so=this.A[8];this.Fk=this.$g="";this.lt=this.mt=this.mj=0;this.Iy();this.Kc=this.xg=this.je=null;this.$r=!1;this.Ni=this.b.vd;this.jc?this.Df.set(0,0,1,1):this.Df=new va(0,
0,1,1);this.b.C&&this.b.Kg(this)};b.Iy=function(){var a=this.font.split(" "),b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.mj=parseInt(a[b].substr(0,a[b].length-2));this.Uo=Math.ceil(this.mj/72*96)+4;0<b&&(this.Fk=a[b-1]);this.$g=a[b+1];for(b+=2;b<a.length;b++)this.$g+=" "+a[b];break}};b.Oa=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Qk,va:this.Dm,wr:this.Jp,lho:this.so,fn:this.$g,fs:this.Fk,ps:this.mj,pxh:this.Uo,tw:this.mt,th:this.lt,lrt:this.Ni}};b.Wa=
function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.Qk=a.ha;this.Dm=a.va;this.Jp=a.wr;this.so=a.lho;this.$g=a.fn;this.Fk=a.fs;this.mj=a.ps;this.Uo=a.pxh;this.mt=a.tw;this.lt=a.th;this.Ni=a.lrt;this.Jg=!0;this.qo=this.el=this.width;this.dl=this.height};b.za=function(){if(this.b.C&&this.Kc&&300<=this.b.vd-this.Ni){var a=this.q;this.Ba();var b=this.Fa;if(b.right<a.Ca||b.bottom<a.Da||b.left>a.Ha||b.top>a.Ga)this.b.C.deleteTexture(this.Kc),this.je=this.xg=this.Kc=null}};b.Nd=function(){this.je=
this.xg=null;this.b.C&&this.Kc&&this.b.C.deleteTexture(this.Kc);this.Kc=null};b.Vm=function(){this.font=this.Fk+" "+this.mj.toString()+"pt "+this.$g;this.Jg=!0;this.b.la=!0};b.Qc=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var d=1;b&&(d=Math.abs(this.q.qc()),a.save(),a.scale(d,d));if(this.Jg||this.width!==this.qo)this.type.Aa.nv(this.text,this.tf,a,this.width,this.Jp),this.Jg=!1,this.qo=this.width;this.Ba();var d=b?0:this.Cb.Ab,f=b?0:this.Cb.Bb;
this.b.Yc&&(d=d+.5|0,f=f+.5|0);0===this.m||b||(a.save(),a.translate(d,f),a.rotate(this.m),f=d=0);var g=f+this.height,k=this.Uo,k=k+this.so,m,l;1===this.Dm?f+=Math.max(this.height/2-this.tf.length*k/2,0):2===this.Dm&&(f+=Math.max(this.height-this.tf.length*k-2,0));for(l=0;l<this.tf.length&&!(m=d,1===this.Qk?m=d+(this.width-this.tf[l].width)/2:2===this.Qk&&(m=d+(this.width-this.tf[l].width)),a.fillText(this.tf[l].text,m,f),f+=k,f>=g-k);l++);(0!==this.m||b)&&a.restore();this.Ni=this.b.vd};b.Xb=function(a){if(!(1>
this.width||1>this.height)){var b=this.Jg||this.$r;this.$r=!1;var d=this.q.qc(),f=this.q.rb(),g=this.Df,k=d*this.width,m=d*this.height,l=Math.ceil(k),p=Math.ceil(m),q=Math.abs(l),N=Math.abs(p),O=this.b.S/2,A=this.b.R/2;this.xg||(this.je=document.createElement("canvas"),this.je.width=q,this.je.height=N,this.el=q,this.dl=N,b=!0,this.xg=this.je.getContext("2d"));if(q!==this.el||N!==this.dl)this.je.width=q,this.je.height=N,this.Kc&&(a.deleteTexture(this.Kc),this.Kc=null),b=!0;b&&(this.xg.clearRect(0,
0,q,N),this.Qc(this.xg,!0),this.Kc||(this.Kc=a.Pc(q,N,this.b.La,this.b.pf)),a.Jz(this.je,this.Kc,this.b.pf));this.el=q;this.dl=N;a.zc(this.Kc);a.Ff(this.opacity);a.pd();a.translate(-O,-A);a.ad();var B=this.Cb,b=this.q.Ra(B.Ab,B.Bb,!0,!0),q=this.q.Ra(B.Ab,B.Bb,!1,!0),N=this.q.Ra(B.cc,B.ec,!0,!0),O=this.q.Ra(B.cc,B.ec,!1,!0),A=this.q.Ra(B.Ub,B.Vb,!0,!0),E=this.q.Ra(B.Ub,B.Vb,!1,!0),y=this.q.Ra(B.Sb,B.Tb,!0,!0),B=this.q.Ra(B.Sb,B.Tb,!1,!0);if(this.b.Yc||0===this.m&&0===f)var u=(b+.5|0)-b,G=(q+.5|0)-
q,b=b+u,q=q+G,N=N+u,O=O+G,A=A+u,E=E+G,y=y+u,B=B+G;0===this.m&&0===f?(N=b+l,O=q,A=N,E=q+p,y=b,B=E,g.right=1,g.bottom=1):(g.right=k/l,g.bottom=m/p);a.me(b,q,N,O,A,E,y,B,g);a.pd();a.scale(d,d);a.Rl(-this.q.rb());a.translate((this.q.Ca+this.q.Ha)/-2,(this.q.Da+this.q.Ga)/-2);a.ad();this.Ni=this.b.vd}};var a=[];q.kv=function(b){M(a);for(var e="",d,f=0;f<b.length;)if(d=b.charAt(f),"\n"===d)e.length&&(a.push(e),e=""),a.push("\n"),++f;else if(" "===d||"\t"===d||"-"===d){do e+=b.charAt(f),f++;while(f<b.length&&
(" "===b.charAt(f)||"\t"===b.charAt(f)));a.push(e);e=""}else f<b.length&&(e+=d,f++);e.length&&a.push(e)};var f=[];q.nv=function(a,b,f,g,k){if(a&&a.length)if(2>=g)l(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var m=f.measureText(a).width;if(m<=g){l(b);b.push(d());b[0].text=a;b[0].width=m;return}}this.ov(a,b,f,g,k)}else l(b)};q.ov=function(b,e,h,k,m){m&&(this.kv(b),b=a);var l="",q,z,p,t=0;for(p=0;p<b.length;p++)"\n"===b[p]?(t>=e.length&&e.push(d()),l=g(l),z=e[t],z.text=l,z.width=h.measureText(l).width,
t++,l=""):(q=l,l+=b[p],z=h.measureText(l).width,z>=k&&(t>=e.length&&e.push(d()),q=g(q),z=e[t],z.text=q,z.width=h.measureText(q).width,t++,l=b[p],m||" "!==l||(l="")));l.length&&(t>=e.length&&e.push(d()),l=g(l),z=e[t],z.text=l,z.width=h.measureText(l).width,t++);for(p=t;p<e.length;p++)f.push(e[p]);e.length=t};m.prototype.Tt=function(a,b){return b?this.text==a:mb(this.text,a)};q.n=new m;k.prototype.Tu=function(a){ha(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Jg=
!0,this.b.la=!0)};q.B=new k;q.ja=new function(){}})();function vc(d){this.b=d}
(function(){var d=vc.prototype;d.U=function(d){this.Aa=d;this.b=d.b};var l=d.U.prototype;l.G=function(){this.K||(this.V=new Image,this.V.hn=this.rm,this.b.Gp(this.V,this.qm),this.ma=this.pattern=null)};l.ij=function(){this.K||(this.ma=null)};l.xl=function(){if(!this.K&&this.k.length){this.ma||(this.ma=this.b.C.sh(this.V,!0,this.b.La,this.Ej));var d,m;d=0;for(m=this.k.length;d<m;d++)this.k[d].ma=this.ma}};l.Ui=function(){this.K||this.ma||!this.b.C||(this.ma=this.b.C.sh(this.V,!0,this.b.La,this.Ej))};
l.zm=function(){this.K||this.k.length||!this.ma||(this.b.C.deleteTexture(this.ma),this.ma=null)};l.Jl=function(d){d.drawImage(this.V,0,0)};d.L=function(d){this.type=d;this.b=d.b};l=d.L.prototype;l.G=function(){this.visible=0===this.A[0];this.Df=new va(0,0,0,0);this.$q=!1;this.V=this.type.V;this.b.C?(this.type.Ui(),this.ma=this.type.ma):(this.type.pattern||(this.type.pattern=this.b.Pa.createPattern(this.type.V,"repeat")),this.pattern=this.type.pattern)};l.yd=function(){this.$q=!1;this.V=this.type.V};
l.Nd=function(){this.b.C&&this.$q&&this.ma&&(this.b.C.deleteTexture(this.ma),this.ma=null)};l.Qc=function(d){d.globalAlpha=this.opacity;d.save();d.fillStyle=this.pattern;var m=this.x,k=this.y;this.b.Yc&&(m=Math.round(m),k=Math.round(k));var l=-(this.rc*this.width),b=-(this.tc*this.height),a=l%this.V.width,f=b%this.V.height;0>a&&(a+=this.V.width);0>f&&(f+=this.V.height);d.translate(m,k);d.rotate(this.m);d.translate(a,f);d.fillRect(l-a,b-f,this.width,this.height);d.restore()};l.Tf=function(d){this.Xb(d)};
l.Xb=function(d){d.zc(this.ma);d.Ff(this.opacity);var m=this.Df;m.right=this.width/this.V.width;m.bottom=this.height/this.V.height;var k=this.Cb;if(this.b.Yc){var l=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;d.me(k.Ab+l,k.Bb+b,k.cc+l,k.ec+b,k.Ub+l,k.Vb+b,k.Sb+l,k.Tb+b,m)}else d.me(k.Ab,k.Bb,k.cc,k.ec,k.Ub,k.Vb,k.Sb,k.Tb,m)};d.n=new function(){};d.B=new function(){};d.ja=new function(){}})();function wc(d){this.b=d}
(function(){function d(a,b){var d=document.createElement("meta");d.name=a;d.content=b;document.head.appendChild(d)}function l(){}var g=wc.prototype;g.U=function(a){this.Aa=a;this.b=a.b};g.U.prototype.G=function(){};var m="",k=!1,q=!1,b=!1,a=null;g.L=function(a){this.type=a;this.b=a.b};var f=g.L.prototype;window.googlePlayLoadCallback=function(){k=!0;a.b.na?a.b.trigger(wc.prototype.n.Km,a):q=!0};window.googlePlaySigninCallback=function(c){c.status&&c.status.signed_in?(b=!0,a.b.trigger(wc.prototype.n.bq,
a)):"user_signed_out"===c.error?(b=!1,a.b.trigger(wc.prototype.n.zu,a)):"immediate_failed"===c.error?(b=!1,a.b.trigger(wc.prototype.n.ru,a)):(b=!1,a.b.trigger(wc.prototype.n.uu,a))};f.G=function(){m=this.A[1];if(!this.b.ib){a=this;d("google-signin-clientid",m);d("google-signin-cookiepolicy","single_host_origin");d("google-signin-callback","googlePlaySigninCallback");d("google-signin-scope","https://www.googleapis.com/auth/games");var b=document.createElement("script");b.type="text/javascript";b.async=
!0;b.src="https://apis.google.com/js/client.js?onload=googlePlayLoadCallback";document.head.appendChild(b);this.b.Kg(this)}};f.Nd=function(){};f.Oa=function(){return{}};f.Wa=function(){};f.Ah=function(){k&&this.b.trigger(wc.prototype.n.Km,this);b&&this.b.trigger(wc.prototype.n.bq,this)};f.za=function(){q&&(q=!1,this.b.trigger(wc.prototype.n.Km,this))};l.prototype.Km=function(){return!0};l.prototype.bq=function(){return!0};l.prototype.zu=function(){return!0};l.prototype.uu=function(){return!0};l.prototype.ru=
function(){return!0};g.n=new l;g.B=new function(){};g.ja=new function(){}})();function xc(d){this.b=d}
(function(){function d(){}var l=xc.prototype;l.U=function(d){this.behavior=d;this.b=d.b};l.U.prototype.G=function(){};l.L=function(d,g){this.type=d;this.behavior=d.behavior;this.j=g;this.b=d.b};var g=l.L.prototype;g.G=function(){var d=this.A[0];this.Ia=this.A[1];this.lf=this.A[2];this.xv=0!==this.A[3];this.kp=0!==this.A[4];this.J=Math.cos(this.j.m)*d;this.H=Math.sin(this.j.m)*d;this.fl=this.j.x;this.gl=this.j.y;this.Ld=this.j.m;this.wm=0;this.enabled=0!==this.A[5]};g.Oa=function(){return{acc:this.Ia,
g:this.lf,dx:this.J,dy:this.H,lx:this.fl,ly:this.gl,lka:this.Ld,t:this.wm,e:this.enabled}};g.Wa=function(d){this.Ia=d.acc;this.lf=d.g;this.J=d.dx;this.H=d.dy;this.fl=d.lx;this.gl=d.ly;this.Ld=d.lka;this.wm=d.t;this.enabled=d.e};g.za=function(){if(this.enabled){var d=this.b.Hd(this.j),g,l;this.j.m!==this.Ld&&(this.kp&&(g=Sa(0,0,this.J,this.H),this.J=Math.cos(this.j.m)*g,this.H=Math.sin(this.j.m)*g),this.Ld=this.j.m);0!==this.Ia&&(g=Sa(0,0,this.J,this.H),l=0===this.J&&0===this.H?this.j.m:La(0,0,this.J,
this.H),g+=this.Ia*d,0>g&&(g=0),this.J=Math.cos(l)*g,this.H=Math.sin(l)*g);0!==this.lf&&(this.H+=this.lf*d);this.fl=this.j.x;this.gl=this.j.y;if(0!==this.J||0!==this.H)if(this.j.x+=this.J*d,this.j.y+=this.H*d,this.wm+=Sa(0,0,this.J*d,this.H*d),this.kp&&(this.j.m=La(0,0,this.J,this.H),this.j.O(),this.Ld=this.j.m),this.j.O(),this.xv&&(g=this.b.Td(this.j)))this.b.rj(this.j,g),g=Sa(0,0,this.J,this.H),l=this.b.Av(this.j,this.fl,this.gl),this.J=Math.cos(l)*g,this.H=Math.sin(l)*g,this.j.x+=this.J*d,this.j.y+=
this.H*d,this.j.O(),this.kp&&(this.Ld=this.j.m=l,this.j.O()),this.b.$y(this.j,this.J/g,this.H/g,Math.max(2.5*g*d,30))||this.b.Hs(this.j,100)}};l.n=new function(){};d.prototype.Ju=function(d){d=R(d);var g=Sa(0,0,this.J,this.H);this.J=Math.cos(d)*g;this.H=Math.sin(d)*g};d.prototype.Rg=function(d){this.enabled=1===d};l.B=new d;l.ja=new function(){}})();function yc(d){this.b=d}
(function(){function d(){}function l(){}var g=yc.prototype;g.U=function(d){this.behavior=d;this.b=d.b};g.U.prototype.G=function(){};g.L=function(d,g){this.type=d;this.behavior=d.behavior;this.j=g;this.b=d.b;this.fm=this.em=this.cm=this.gm=this.Qn=this.tj=this.Oi=this.Zh=this.Gj=!1;this.oo=this.no=this.lo=this.po=-1;this.H=this.J=0};var m=g.L.prototype;m.G=function(){this.cj=this.A[0];this.Ia=this.A[1];this.Fc=this.A[2];this.rn=this.A[3];this.Tm=this.A[4];this.Iv=1===this.A[5];this.enabled=0!==this.A[6];
this.Iv&&!this.b.ib&&(jQuery(document).keydown(function(d){return function(g){d.Jo(g)}}(this)),jQuery(document).keyup(function(d){return function(g){d.Ko(g)}}(this)))};m.Oa=function(){return{dx:this.J,dy:this.H,enabled:this.enabled,maxspeed:this.cj,acc:this.Ia,dec:this.Fc,ignoreInput:this.Qn}};m.Wa=function(d){this.J=d.dx;this.H=d.dy;this.enabled=d.enabled;this.cj=d.maxspeed;this.Ia=d.acc;this.Fc=d.dec;this.Qn=d.ignoreInput;this.fm=this.em=this.cm=this.gm=this.tj=this.Oi=this.Zh=this.Gj=!1;this.oo=
this.no=this.lo=this.po=-1};m.Jo=function(d){var g=this.b.vd;switch(d.which){case 37:d.preventDefault();this.no<g&&(this.Oi=!0);break;case 38:d.preventDefault();this.po<g&&(this.Gj=!0);break;case 39:d.preventDefault();this.oo<g&&(this.tj=!0);break;case 40:d.preventDefault(),this.lo<g&&(this.Zh=!0)}};m.Ko=function(d){var g=this.b.vd;switch(d.which){case 37:d.preventDefault();this.Oi=!1;this.no=g;break;case 38:d.preventDefault();this.Gj=!1;this.po=g;break;case 39:d.preventDefault();this.tj=!1;this.oo=
g;break;case 40:d.preventDefault(),this.Zh=!1,this.lo=g}};m.zf=function(){this.tj=this.Oi=this.Zh=this.Gj=!1};m.za=function(){var d=this.b.Hd(this.j),g=this.Oi||this.em,b=this.tj||this.fm,a=this.Gj||this.gm,f=this.Zh||this.cm;this.cm=this.gm=this.fm=this.em=!1;if(this.enabled){var c=this.b.Td(this.j);if(c&&(this.b.rj(this.j,c),!this.b.Hs(this.j)))return;this.Qn&&(f=a=b=g=!1);0===this.rn?b=g=!1:1===this.rn&&(f=a=!1);2===this.rn&&(a||f)&&(b=g=!1);g==b&&(0>this.J?(this.J+=this.Fc*d,0<this.J&&(this.J=
0)):0<this.J&&(this.J-=this.Fc*d,0>this.J&&(this.J=0)));a==f&&(0>this.H?(this.H+=this.Fc*d,0<this.H&&(this.H=0)):0<this.H&&(this.H-=this.Fc*d,0>this.H&&(this.H=0)));g&&!b&&(this.J=0<this.J?this.J-(this.Ia+this.Fc)*d:this.J-this.Ia*d);b&&!g&&(this.J=0>this.J?this.J+(this.Ia+this.Fc)*d:this.J+this.Ia*d);a&&!f&&(this.H=0<this.H?this.H-(this.Ia+this.Fc)*d:this.H-this.Ia*d);f&&!a&&(this.H=0>this.H?this.H+(this.Ia+this.Fc)*d:this.H+this.Ia*d);if(0!==this.J||0!==this.H){Math.sqrt(this.J*this.J+this.H*this.H)>
this.cj&&(c=Math.atan2(this.H,this.J),this.J=this.cj*Math.cos(c),this.H=this.cj*Math.sin(c));b=this.j.x;a=this.j.y;g=this.j.m;this.j.x+=this.J*d;this.j.O();if(c=this.b.Td(this.j))this.j.x=b,this.J=0,this.j.O(),this.b.rj(this.j,c);this.j.y+=this.H*d;this.j.O();if(c=this.b.Td(this.j))this.j.y=a,this.H=0,this.j.O(),this.b.rj(this.j,c);d=lb(this.J);c=lb(this.H);0===d&&0===c||!this.j.type.Aa.by||(1===this.Tm?this.j.m=Ka(90*Math.round(Fa(Math.atan2(c,d))/90)):2===this.Tm?this.j.m=Ka(45*Math.round(Fa(Math.atan2(c,
d))/45)):3===this.Tm&&(this.j.m=Math.atan2(c,d)));this.j.O();this.j.m!=g&&(c=this.b.Td(this.j))&&(this.j.m=g,this.j.O(),this.b.rj(this.j,c))}}};d.prototype.Lp=function(){return 0!==this.J||0!==this.H};g.n=new d;l.prototype.Nm=function(){this.H=this.J=0};l.prototype.$u=function(d){switch(d){case 0:this.em=!0;break;case 1:this.fm=!0;break;case 2:this.gm=!0;break;case 3:this.cm=!0}};l.prototype.Rg=function(d){this.enabled=1===d};g.B=new l;g.ja=new function(){}})();function zc(d){this.b=d}
(function(){function d(){}function l(){}var g=zc.prototype;g.U=function(d){this.behavior=d;this.b=d.b};g.U.prototype.G=function(){};g.L=function(d,g){this.type=d;this.behavior=d.behavior;this.j=g;this.b=d.b};var m=g.L.prototype;m.G=function(){this.Om=1===this.A[0];this.Ss=!1;this.di=this.A[1];this.Mj=this.A[2];this.yk=this.A[3];this.Kv=this.A[4];this.Nc=this.Om?0:3;this.jc?this.rd.reset():this.rd=new eb;this.xf=this.j.opacity?this.j.opacity:1;this.Om&&(0===this.di?(this.Nc=1,0===this.Mj&&(this.Nc=
2)):(this.j.opacity=0,this.b.la=!0))};m.Oa=function(){return{fit:this.di,wt:this.Mj,fot:this.yk,s:this.Nc,st:this.rd.I,mo:this.xf}};m.Wa=function(d){this.di=d.fit;this.Mj=d.wt;this.yk=d.fot;this.Nc=d.s;this.rd.reset();this.rd.I=d.st;this.xf=d.mo};m.za=function(){this.rd.add(this.b.Hd(this.j));0===this.Nc&&(this.j.opacity=this.rd.I/this.di*this.xf,this.b.la=!0,this.j.opacity>=this.xf&&(this.j.opacity=this.xf,this.Nc=1,this.rd.reset(),this.b.trigger(zc.prototype.n.vu,this.j)));1===this.Nc&&this.rd.I>=
this.Mj&&(this.Nc=2,this.rd.reset(),this.b.trigger(zc.prototype.n.Bu,this.j));2===this.Nc&&0!==this.yk&&(this.j.opacity=this.xf-this.rd.I/this.yk*this.xf,this.b.la=!0,0>this.j.opacity&&(this.j.opacity=0,this.Nc=3,this.rd.reset(),this.b.trigger(zc.prototype.n.Qp,this.j),1===this.Kv&&this.b.Yd(this.j)))};m.$v=function(){this.Nc=0;this.rd.reset();0===this.di?(this.Nc=1,0===this.Mj&&(this.Nc=2)):(this.j.opacity=0,this.b.la=!0)};d.prototype.Qp=function(){return!0};d.prototype.vu=function(){return!0};d.prototype.Bu=
function(){return!0};g.n=new d;l.prototype.cv=function(){this.Om||this.Ss||(this.xf=this.j.opacity?this.j.opacity:1,this.Ss=!0);3===this.Nc&&this.$v()};g.B=new l;g.ja=new function(){}})();function Ac(d){this.b=d}
(function(){function d(){}function l(){}var g=Ac.prototype;g.U=function(a){this.behavior=a;this.b=a.b};var m=g.U.prototype;m.G=function(){this.Wc=[]};m.Tw=function(a){var b,d,g;b=0;for(d=a.P.length;b<d;++b)if(g=a.P[b],g instanceof Ac.prototype.L&&g.type===this)return g;return null};g.L=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b};m=g.L.prototype;m.G=function(){this.vy=this.A[0];this.zb=this.A[1];this.dn=R(this.A[2]);this.Hj=0!==this.A[3]};m.Nd=function(){};m.Oa=function(){var a=
{r:this.zb,c:this.dn,t:[]},b,d;b=0;for(d=this.type.Wc.length;b<d;b++)a.t.push(this.type.Wc[b].da);return a};m.Wa=function(a){this.zb=a.r;this.dn=a.c;M(this.type.Wc);var b,d,g;b=0;for(d=a.t.length;b<d;b++)(g=this.b.nf(a.t[b]))&&this.type.Wc.push(g)};m.za=function(){};var k=[],q=new va(0,0,0,0);m.Nx=function(a,b){var d=this.j.x,g=this.j.y,l=this.j.m;0>this.j.width&&(l+=Math.PI);if(Sa(d,g,a,b)>this.zb||Ma(l,La(d,g,a,b))>this.dn/2)return!1;var n,m;q.set(d,g,a,b);q.normalize();if(0===this.vy)for(this.Hj?
this.b.In(this.j.q,q,k):(l=this.b.pp)&&Ba(k,l.fj.wd()),l=0,n=k.length;l<n;++l){if(m=k[l],m.N.solidEnabled&&m!==this.j&&this.b.jt(d,g,a,b,m))return M(k),!1}else{if(this.Hj)this.b.li(this.j.q,this.type.Wc,q,k);else for(l=0,n=this.type.Wc.length;l<n;++l)Ba(k,this.type.Wc[l].k);l=0;for(n=k.length;l<n;++l)if(m=k[l],m!==this.j&&this.b.jt(d,g,a,b,m))return M(k),!1}M(k);return!0};var b=new ca,a=new ca;d.prototype.bu=function(d){if(!d)return!1;var c,e,g,k,l,m,q,z,p=this.b.bx().ea();d=d.ea();var t=p.pc(),N=
d.pc();p.ga&&M(p.Z);d.ga&&M(d.Z);var O=this.b.ag().lg;c=0;for(g=t.length;c<g;++c){l=t[c];z=!1;m=this.Tw(l);e=0;for(k=N.length;e<k;++e)q=N[e],l!==q&&Ta(m.Nx(q.x,q.y),O)&&(z=!0,a.add(q));z&&b.add(l)}c=b.wd();e=a.wd();p.ga=!1;d.ga=!1;Aa(p.k,c);Aa(d.k,e);b.clear();a.clear();return p.Sk()};g.n=new d;l.prototype.fq=function(a){this.zb=a};g.B=new l;g.ja=new function(){}})();function Bc(d){this.b=d}
(function(){function d(){}function l(){}var g={},m=Bc.prototype;m.zh=function(){var a,b;for(a in g)g.hasOwnProperty(a)&&(b=g[a],b.Ke.unsetReady(),b.qj=!0)};m.U=function(a){this.behavior=a;this.b=a.b};m.U.prototype.G=function(){this.Wc=[];this.gf=[]};m.L=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b};var k=m.L.prototype;k.G=function(){this.Ua=this.A[0];3>this.Ua&&(this.Ua=3);this.Dd=this.A[1];this.wy=this.A[2];this.ie=this.A[3];this.Ia=this.A[4];this.Fc=this.A[5];this.Xj=R(this.A[6]);
this.Me=0!==this.A[7];this.vk=0!==this.A[8];this.enabled=0!==this.A[9];this.gh=this.gi=this.ej=this.ge=!1;this.vc=0;this.Ld=this.cd=this.j.m;this.Eh=this.Qd=this.Pd=this.eb=0;this.yf=Math.ceil(this.b.na.width/this.Ua);this.wg=Math.ceil(this.b.na.height/this.Ua);this.Xa=[];this.Xg=!1;this.sk=this.rk=0;this.ti=this.$k=!1;this.rq=this.qq=0;this.Mq=!0;var a=this;this.jc||(this.Ky=function(){a.$k||(a.ti=!1,a.Ev(),a.gh=0<a.Xa.length,a.vc=0,a.b.trigger(Bc.prototype.n.Yp,a.j),a.sn())},this.Jy=function(){a.$k||
(a.ti=!1,a.wq(),a.gh=!1,a.ge=!1,a.vc=0,a.b.trigger(Bc.prototype.n.wu,a.j),a.sn())})};k.Nd=function(){this.$k=!0;this.Xg=!1};k.Oa=function(){var a={cs:this.Ua,cb:this.Dd,ms:this.ie,acc:this.Ia,dec:this.Fc,av:this.Xj,re:this.Me,de:this.vk,im:this.ge,mfs:this.ej,ftmwm:this.gi,hp:this.gh,mn:this.vc,a:this.cd,lka:this.Ld,s:this.eb,rx:this.Pd,ry:this.Qd,ra:this.Eh,myhc:this.yf,myvc:this.wg,path:this.Xa,en:this.enabled,fr:this.Mq,obs:[],costs:[]};this.ti?(a.dfp=!0,a.dpx=this.qq,a.dpy=this.rq):(a.dfp=this.Xg,
a.dpx=this.rk,a.dpy=this.sk);var b,c;b=0;for(c=this.type.Wc.length;b<c;b++)a.obs.push(this.type.Wc[b].da);b=0;for(c=this.type.gf.length;b<c;b++)a.costs.push({sid:this.type.gf[b].ua.da,cost:this.type.gf[b].yq});return a};k.Wa=function(a){this.Ua=a.cs;this.Dd=a.cb;this.ie=a.ms;this.Ia=a.acc;this.Fc=a.dec;this.Xj=a.av;this.Me=a.re;this.vk=a.de;this.ge=a.im;this.ej=a.mfs;this.gi=a.ftmwm;this.gh=a.hp;this.vc=a.mn;this.cd=a.a;this.Ld=a.lka;this.eb=a.s;this.Pd=a.rx;this.Qd=a.ry;this.Eh=a.ra;this.yf=a.myhc;
this.wg=a.myvc;this.Xa=a.path;this.enabled=a.en;this.Mq=a.fr;this.Xg=a.dfp;this.rk=a.dpx;this.sk=a.dpy;M(this.type.Wc);var b=a.obs,c,d,g;c=0;for(d=b.length;c<d;c++)(g=this.b.nf(b[c]))&&this.type.Wc.push(g);M(this.type.gf);a=a.costs;c=0;for(d=a.length;c<d;c++)(g=this.b.nf(a[c].sid))&&this.type.gf.push({ua:g,yq:a[c].cost});this.dg().Ke.setDiagonals(this.vk)};k.yd=function(){this.dg().qj=!0};k.za=function(){if(this.enabled&&this.ge){this.Me&&this.j.m!==this.Ld&&(this.cd=this.j.m);var a=this.b.Hd(this.j),
b,c,d,g,k,l=this.j,m=Math.min(.4*this.ie,2*Math.abs(this.j.width)),q=Math.max(1.5*this.eb,30);this.vc<this.Xa.length?(g=this.Xa[this.vc].x,k=this.Xa[this.vc].y,d=Sa(this.Pd,this.Qd,g,k),d<3*q*a&&(this.vc++,this.Pd=g,this.Qd=k,this.vc<this.Xa.length&&(g=this.Xa[this.vc].x,k=this.Xa[this.vc].y))):(g=this.Xa[this.Xa.length-1].x,k=this.Xa[this.Xa.length-1].y);this.Eh=La(this.Pd,this.Qd,g,k);d=Sa(l.x,l.y,this.Pd,this.Qd);d<m&&this.vc<this.Xa.length&&(this.gi?this.gi=!1:m=q*a,this.Pd+=Math.cos(this.Eh)*
m,this.Qd+=Math.sin(this.Eh)*m);b=La(l.x,l.y,this.Pd,this.Qd);c=Ma(this.cd,b);m=Sa(l.x,l.y,this.Xa[this.Xa.length-1].x,this.Xa[this.Xa.length-1].y);q=this.ie*this.ie/(2*this.Fc);1<d&&(this.cd=Na(this.cd,b,this.Xj*a),.5>=Fa(c)?c=this.ie:120<=Fa(c)||this.ej&&0===this.vc?(c=0,this.ej=!0):(b=c/this.Xj,d=Sa(l.x,l.y,this.Pd,this.Qd),d=d/(2*Math.sin(c)),c=d*c/b,0>c&&(c=0),c>this.ie&&(c=this.ie)),m<q&&(c=Math.min(c,m/q*this.ie+this.ie/40)),this.eb+=this.Ia*a,this.eb>c&&(this.eb=c));l.x+=Math.cos(this.cd)*
this.eb*a;l.y+=Math.sin(this.cd)*this.eb*a;this.Me&&(this.Ld=l.m=this.cd);l.O();this.vc===this.Xa.length&&Sa(l.x,l.y,g,k)<Math.max(3*this.eb*a,10)&&(this.gh=this.ge=!1,this.eb=this.vc=0,this.b.trigger(Bc.prototype.n.Np,l))}};k.Fj=function(){this.enabled&&(this.Yw(),this.sn())};k.sn=function(){this.Xg&&!this.$k&&(this.Xg=!1,this.Eq(this.j.x,this.j.y,this.rk,this.sk))};k.dg=function(){var a=""+this.Ua+","+this.Dd;g.hasOwnProperty(a)||(g[a]={Ke:new window.Pathfinder,cells:null,qj:!1,Dg:[]});return g[a]};
k.Yw=function(){var a=this.dg();if(!a.Ke.isReady()||a.qj||a.Dg.length){var b,c,d,g,k,l,m,q,z,p;if(!a.Ke.isReady()||a.qj){this.yf=Math.ceil(this.b.na.width/this.Ua);this.wg=Math.ceil(this.b.na.height/this.Ua);b=[];g=b.length=this.yf;k=this.wg;for(c=0;c<g;++c)for(b[c]=[],b[c].length=k,d=0;d<k;++d)b[c][d]=this.Is(c,d);a.cells=b;a.Ke.init(this.yf,this.wg,b,this.vk);a.qj=!1;M(a.Dg)}else if(a.Dg.length){l=0;for(m=a.Dg.length;l<m;++l){b=a.Dg[l];q=b[0];z=b[1];g=b[2];c=b[3];b=[];g=g-q;k=c-z;b.length=g;for(c=
0;c<g;++c)for(b[c]=[],b[c].length=k,d=0;d<k;++d)p=this.Is(q+c,z+d),b[c][d]=p,a.cells[q+c][z+d]=p;a.Ke.updateRegion(q,z,g,k,b)}M(a.Dg)}}};k.wq=function(){var a,b;a=0;for(b=this.Xa.length;a<b;a++)window.freeResultNode(this.Xa[a]);M(this.Xa)};k.Ev=function(){var a=this.dg().Ke.pathList;this.wq();var b,c,d,g;b=0;for(c=a.length;b<c;b++)d=a[b],g=window.allocResultNode(),g.x=(d.x+.5)*this.Ua,g.y=(d.y+.5)*this.Ua,this.Xa.push(g)};var q=[],b=new va;k.Is=function(a,d){var c,e,g,k,l,m=0;b.left=a*this.Ua-this.Dd;
b.top=d*this.Ua-this.Dd;b.right=(a+1)*this.Ua+this.Dd;b.bottom=(d+1)*this.Ua+this.Dd;if(0===this.wy){if(this.b.Az(b))return window.PF_OBSTACLE}else{this.b.li(this.j.q,this.type.Wc,b,q);c=0;for(e=q.length;c<e;++c)if(this.b.tp(b,q[c]))return M(q),window.PF_OBSTACLE;q.length=0}c=0;for(e=this.type.gf.length;c<e;c++){g=this.type.gf[c].ua;l=this.type.gf[c].yq;this.b.Lk(this.j.q,g,b,q);g=0;for(k=q.length;g<k;++g)this.b.tp(b,q[g])&&(m+=l);M(q)}return m};k.Eq=function(a,b,c,d){var g=this.dg().Ke;if(g.isReady()){this.ti=
!0;this.qq=c;this.rq=d;a=Math.floor(a/this.Ua);b=Math.floor(b/this.Ua);c=Math.floor(c/this.Ua);d=Math.floor(d/this.Ua);var k,l,m,q,z,p,t;if(g.at(c,d)===window.PF_OBSTACLE){k=1E6;for(q=m=l=0;q<this.yf;q++)for(z=0;z<this.wg;z++)g.at(q,z)!==window.PF_OBSTACLE&&(p=c-q,t=d-z,p=p*p+t*t,p<k&&(k=p,l=q,m=z));c=l;d=m}g.findPath(a,b,c,d,this.Ky,this.Jy)}};d.prototype.Yp=function(){return!0};d.prototype.wu=function(){return!0};d.prototype.Lp=function(){return this.ge};d.prototype.Np=function(){return!0};m.n=
new d;l.prototype.$t=function(a,b){this.enabled&&(this.ti||!this.dg().Ke.isReady()?(this.Xg=!0,this.rk=a,this.sk=b):this.Eq(this.j.x,this.j.y,a,b))};l.prototype.dv=function(){this.gh&&(this.ge&&(this.gi=!0),this.ej=!this.ge,this.ge=!0,this.Pd=this.j.x,this.Qd=this.j.y,this.Eh=this.j.m)};l.prototype.Nm=function(){this.ge=!1};l.prototype.Rg=function(a){this.enabled=0!==a};k.Vm=function(a,b,c,d){var g=Math.min(a,c)-this.Dd,k=Math.min(b,d)-this.Dd;a=Math.max(a,c)+this.Dd;b=Math.max(b,d)+this.Dd;g=Math.max(Math.floor(g/
this.Ua),0);k=Math.max(Math.floor(k/this.Ua),0);a=Math.min(Math.ceil(a/this.Ua),this.yf);b=Math.min(Math.ceil(b/this.Ua),this.wg);g>=a||k>=b||this.dg().Dg.push([g,k,a,b])};m.B=new l;m.ja=new function(){}})();function Dc(d){this.b=d}
(function(){var d=Dc.prototype;d.U=function(d){this.behavior=d;this.b=d.b};d.U.prototype.G=function(){};d.L=function(d,l){this.type=d;this.behavior=d.behavior;this.j=l;this.b=d.b};var l=d.L.prototype;l.G=function(){this.speed=R(this.A[0]);this.Ia=R(this.A[1])};l.Oa=function(){return{speed:this.speed,acc:this.Ia}};l.Wa=function(d){this.speed=d.speed;this.Ia=d.acc};l.za=function(){var d=this.b.Hd(this.j);0!==d&&(0!==this.Ia&&(this.speed+=this.Ia*d),0!==this.speed&&(this.j.m=Ha(this.j.m+this.speed*d),
this.j.O()))};d.n=new function(){};d.B=new function(){};d.ja=new function(){}})();function Fc(d){this.b=d}
(function(){var d=Fc.prototype;d.U=function(d){this.behavior=d;this.b=d.b};d.U.prototype.G=function(){};d.L=function(d,b){this.type=d;this.behavior=d.behavior;this.j=b;this.b=d.b;this.sb=0};var l=d.L.prototype,g=2*Math.PI,m=Math.PI/2,k=3*Math.PI/2;l.G=function(){this.Sa=1===this.A[0];this.dj=this.A[1];this.Ip=this.A[2];this.Le=this.A[3];this.Le+=Math.random()*this.A[4];0===this.Le?this.sb=0:(this.sb=this.A[5]/this.Le*g,this.sb+=Math.random()*this.A[6]/this.Le*g);this.uc=this.A[7];this.uc+=Math.random()*
this.A[8];this.pj=this.ig=this.qa=0;this.init()};l.Oa=function(){return{i:this.sb,a:this.Sa,mv:this.dj,w:this.Ip,p:this.Le,mag:this.uc,iv:this.qa,iv2:this.ig,r:this.pj,lkv:this.Ic,lkv2:this.Li}};l.Wa=function(d){this.sb=d.i;this.Sa=d.a;this.dj=d.mv;this.Ip=d.w;this.Le=d.p;this.uc=d.mag;this.qa=d.iv;this.ig=d.iv2||0;this.pj=d.r;this.Ic=d.lkv;this.Li=d.lkv2||0};l.init=function(){switch(this.dj){case 0:this.qa=this.j.x;break;case 1:this.qa=this.j.y;break;case 2:this.qa=this.j.width;this.pj=this.j.height/
this.j.width;break;case 3:this.qa=this.j.width;break;case 4:this.qa=this.j.height;break;case 5:this.qa=this.j.m;this.uc=R(this.uc);break;case 6:this.qa=this.j.opacity;break;case 7:this.qa=0;break;case 8:this.qa=this.j.x,this.ig=this.j.y}this.Ic=this.qa;this.Li=this.ig};l.We=function(d){d=d%g;switch(this.Ip){case 0:return Math.sin(d);case 1:return d<=m?d/m:d<=k?1-2*(d-m)/Math.PI:(d-k)/m-1;case 2:return 2*d/g-1;case 3:return-2*d/g+1;case 4:return d<Math.PI?-1:1}return 0};l.za=function(){var d=this.b.Hd(this.j);
this.Sa&&0!==d&&(0===this.Le?this.sb=0:(this.sb+=d/this.Le*g,this.sb=this.sb%g),this.Ez())};l.Ez=function(){switch(this.dj){case 0:this.j.x!==this.Ic&&(this.qa+=this.j.x-this.Ic);this.j.x=this.qa+this.We(this.sb)*this.uc;this.Ic=this.j.x;break;case 1:this.j.y!==this.Ic&&(this.qa+=this.j.y-this.Ic);this.j.y=this.qa+this.We(this.sb)*this.uc;this.Ic=this.j.y;break;case 2:this.j.width=this.qa+this.We(this.sb)*this.uc;this.j.height=this.j.width*this.pj;break;case 3:this.j.width=this.qa+this.We(this.sb)*
this.uc;break;case 4:this.j.height=this.qa+this.We(this.sb)*this.uc;break;case 5:this.j.m!==this.Ic&&(this.qa=Ha(this.qa+(this.j.m-this.Ic)));this.j.m=Ha(this.qa+this.We(this.sb)*this.uc);this.Ic=this.j.m;break;case 6:this.j.opacity=this.qa+this.We(this.sb)*this.uc/100;0>this.j.opacity?this.j.opacity=0:1<this.j.opacity&&(this.j.opacity=1);break;case 8:this.j.x!==this.Ic&&(this.qa+=this.j.x-this.Ic),this.j.y!==this.Li&&(this.ig+=this.j.y-this.Li),this.j.x=this.qa+Math.cos(this.j.m)*this.We(this.sb)*
this.uc,this.j.y=this.ig+Math.sin(this.j.m)*this.We(this.sb)*this.uc,this.Ic=this.j.x,this.Li=this.j.y}this.j.O()};l.ns=function(d,b){switch(this.dj){case 2:this.qa*=b.width/d.width;this.pj=b.height/b.width;break;case 3:this.qa*=b.width/d.width;break;case 4:this.qa*=b.height/d.height}};d.n=new function(){};d.B=new function(){};d.ja=new function(){}})();function Gc(d){this.b=d}
(function(){function d(){}function l(){}var g=Gc.prototype;g.U=function(d){this.behavior=d;this.b=d.b};g.U.prototype.G=function(){};g.L=function(d,g){this.type=d;this.behavior=d.behavior;this.j=g;this.b=d.b};var m=g.L.prototype;m.G=function(){this.Ib={}};m.Nd=function(){Va(this.Ib)};m.Oa=function(){var d={},g,b;for(g in this.Ib)this.Ib.hasOwnProperty(g)&&(b=this.Ib[g],d[g]={c:b.current.I,t:b.total.I,d:b.duration,r:b.Xo});return d};m.Wa=function(d){this.Ib={};for(var g in d)d.hasOwnProperty(g)&&(this.Ib[g]=
{current:new eb,total:new eb,duration:d[g].d,Xo:d[g].r},this.Ib[g].current.I=d[g].c,this.Ib[g].total.I=d[g].t)};m.za=function(){var d=this.b.Hd(this.j),g,b;for(g in this.Ib)this.Ib.hasOwnProperty(g)&&(b=this.Ib[g],b.current.add(d),b.total.add(d))};m.Fj=function(){var d,g;for(d in this.Ib)this.Ib.hasOwnProperty(d)&&(g=this.Ib[d],g.current.I>=g.duration&&(g.Xo?g.current.I-=g.duration:delete this.Ib[d]))};d.prototype.Au=function(d){d=d.toLowerCase();return(d=this.Ib[d])?d.current.I>=d.duration:!1};g.n=
new d;l.prototype.gv=function(d,g,b){this.Ib[b.toLowerCase()]={current:new eb,total:new eb,duration:d,Xo:1===g}};l.prototype.hv=function(d){d=d.toLowerCase();this.Ib.hasOwnProperty(d)&&delete this.Ib[d]};g.B=new l;g.ja=new function(){}})();function Hc(d){this.b=d}
(function(){function d(){}function l(){}var g=Hc.prototype;g.U=function(b){this.behavior=b;this.b=b.b};g.U.prototype.G=function(){this.td=[]};g.L=function(b,a){this.type=b;this.behavior=b.behavior;this.j=a;this.b=b.b};var m=g.L.prototype;m.G=function(){this.zb=this.A[0];this.Cf=this.A[1];this.Me=0!==this.A[2];this.cp=R(this.A[3]);this.om=this.A[4];this.Il=0!==this.A[5];this.To=this.A[6];this.enabled=0!==this.A[7];this.Hj=0!==this.A[8];this.bl=0;this.Gd=this.Cf;this.currentTarget=null;this.uo=-1;this.Ag=
this.zg=0;this.oh=[0,0,0,0];this.Sd=0;this.hi=!0;var b=this;this.jc||(this.Zr=function(a){b.Io(a)});this.b.Pm(this.Zr)};m.Oa=function(){var b={r:this.zb,rof:this.Cf,re:this.Me,rs:this.cp,tm:this.om,pa:this.Il,ps:this.To,en:this.enabled,lct:this.bl,ftc:this.Gd,target:this.currentTarget?this.currentTarget.uid:-1,ox:this.zg,oy:this.Ag,ls:this.oh,sc:this.Sd,targs:[]},a,d;a=0;for(d=this.type.td.length;a<d;a++)b.targs.push(this.type.td[a].da);return b};m.Wa=function(b){this.zb=b.r;this.Cf=b.rof;this.Me=
b.re;this.cp=b.rs;this.om=b.tm;this.Il=b.pa;this.To=b.ps;this.enabled=b.en;this.bl=b.lct;this.Gd=b.ftc||0;this.uo=b.target;this.zg=b.ox;this.Ag=b.oy;this.oh=b.ls;this.Sd=b.sc;M(this.type.td);var a,d,c;a=0;for(d=b.targs.length;a<d;a++)(c=this.b.nf(b.targs[a]))&&this.type.td.push(c)};m.yd=function(){-1===this.uo?this.currentTarget=null:this.currentTarget=this.b.ji(this.uo)};m.Io=function(b){this.currentTarget==b&&(this.currentTarget=null)};m.Nd=function(){this.currentTarget=null;this.b.dz(this.Zr)};
m.qv=function(b){4>this.Sd?(this.oh[this.Sd]=b,this.Sd++):(this.oh.shift(),this.oh.push(b))};m.wx=function(){for(var b=0,a=0;a<this.Sd;a++)b+=this.oh[a];return b/this.Sd};m.kr=function(b){var a=this.j,d=b.x-a.x;b=b.y-a.y;return d*d+b*b<=this.zb*this.zb};var k=new va(0,0,0,0),q=[];m.ky=function(){var b,a,d;k.left=this.j.x-this.zb;k.top=this.j.y-this.zb;k.right=this.j.x+this.zb;k.bottom=this.j.y+this.zb;if(this.Hj)this.b.li(null,this.type.td,k,q);else for(b=0,a=this.type.td.length;b<a;++b)Ba(q,this.type.td[b].k);
b=0;for(a=q.length;b<a;++b)if(d=q[b],this.kr(d)){this.currentTarget=d;M(q);return}M(q)};m.my=function(){var b,a,d,c,e,g=this.j.x,l=this.j.y,m=this.zb*this.zb;this.currentTarget=null;k.left=g-this.zb;k.top=l-this.zb;k.right=g+this.zb;k.bottom=l+this.zb;if(this.Hj)this.b.li(null,this.type.td,k,q);else for(b=0,a=this.type.td.length;b<a;++b)Ba(q,this.type.td[b].k);b=0;for(a=q.length;b<a;++b)d=q[b],c=g-d.x,e=l-d.y,c=c*c+e*e,c<m&&(this.currentTarget=d,m=c);q.length=0};m.za=function(){var b=this.b.Hd(this.j),
a=this.b.ab.I,d=this.j;if(this.enabled){this.currentTarget&&!this.kr(this.currentTarget)&&(this.currentTarget=null,this.Sd=0,this.hi=!0);a>=this.bl+.1&&((this.bl=a,0!==this.om||this.currentTarget)?1===this.om&&(a=this.currentTarget,this.my(),this.currentTarget&&this.currentTarget!==a&&(this.Sd=0,this.hi=!0,this.zg=this.currentTarget.x,this.Ag=this.currentTarget.y,this.b.trigger(Hc.prototype.n.cq,this.j))):(this.ky(),this.currentTarget&&(this.Sd=0,this.hi=!0,this.zg=this.currentTarget.x,this.Ag=this.currentTarget.y,
this.b.trigger(Hc.prototype.n.cq,this.j))));this.Gd+=b;if(this.currentTarget){a=La(d.x,d.y,this.currentTarget.x,this.currentTarget.y);if(this.Il){var c=d.x,e=d.y,g=this.currentTarget.x,k=this.currentTarget.y,l=La(g,k,this.zg,this.Ag);this.hi||this.qv(Sa(g,k,this.zg,this.Ag)/b);var m=this.wx(),q=k-e,z=g-c,c=(m*Math.sin(l)*(c-g)-m*Math.cos(l)*(e-k))/this.To,q=Math.asin(c/Math.sqrt(q*q+z*z))-Math.atan2(q,-z)+Math.PI;isNaN(q)||(a=q)}this.Me&&(d.m=Na(d.m,a,this.cp*b),d.O());this.Gd>=this.Cf&&(!this.Me||
.1>=Fa(Ma(d.m,a)))&&(!this.Il||4<=this.Sd)&&(this.Gd-=this.Cf,this.Gd>=this.Cf&&(this.Gd=0),this.b.trigger(Hc.prototype.n.aq,this.j));this.currentTarget&&(this.zg=this.currentTarget.x,this.Ag=this.currentTarget.y);this.hi=!1}this.Gd>this.Cf&&(this.Gd=this.Cf)}};d.prototype.aq=function(){return!0};d.prototype.cq=function(){return!0};g.n=new d;l.prototype.It=function(b){var a=this.type.td;if(-1===a.indexOf(b)){var d,c,e;d=0;for(c=a.length;d<c;d++)if(e=a[d],e.K&&-1!==e.vg.indexOf(b))return;a.push(b)}};
l.prototype.Qt=function(){M(this.type.td)};l.prototype.Rg=function(b){this.enabled=0!==b};l.prototype.fq=function(b){this.zb=b};g.B=new l;g.ja=new function(){}})();function Ic(d){this.b=d}
(function(){var d=Ic.prototype;d.U=function(d){this.behavior=d;this.b=d.b};d.U.prototype.G=function(){};d.L=function(d,g){this.type=d;this.behavior=d.behavior;this.j=g;this.b=d.b};d=d.L.prototype;d.G=function(){};d.za=function(){this.j.Ba();var d=this.j.Fa,g=this.j.q.jb;(0>d.right||0>d.bottom||d.left>g.width||d.top>g.height)&&this.b.Yd(this.j)}})();function Jc(d){this.b=d;this.am=this.zj=this.Hg=this.$l=0}
(function(){function d(){}var l=Jc.prototype;l.U=function(d){this.behavior=d;this.b=d.b};l.U.prototype.G=function(){};l.L=function(d,g){this.type=d;this.behavior=d.behavior;this.j=g;this.b=d.b};var g=l.L.prototype;g.G=function(){this.enabled=0!==this.A[0]};g.Oa=function(){return{smg:this.behavior.$l,ss:this.behavior.Hg,se:this.behavior.zj,smd:this.behavior.am}};g.Wa=function(d){this.behavior.$l=d.smg;this.behavior.Hg=d.ss;this.behavior.zj=d.se;this.behavior.am=d.smd};g.za=function(){};g.Fj=function(){if(this.enabled){var d=
this.behavior.fj.wd(),g=0,l=0,b,a,f,c=0;b=0;for(a=d.length;b<a;b++){a:{f=d[b];for(var e=void 0,h=void 0,r=void 0,e=0,h=f.P.length;e<h;++e)if(r=f.P[e],r.behavior instanceof Jc){f=r;break a}f=null}f&&f.enabled&&(g+=d[b].x,l+=d[b].y,++c)}d=this.j.q.jb;a=this.b.ab.I;f=b=0;a>=this.behavior.Hg&&a<this.behavior.zj&&(b=this.behavior.$l*Math.min(this.b.If,1),0===this.behavior.am&&(b*=1-(a-this.behavior.Hg)/(this.behavior.zj-this.behavior.Hg)),a=Math.random()*Math.PI*2,f=Math.random()*b,b=Math.cos(a)*f,f*=
Math.sin(a));d.ip(g/c+b);d.jp(l/c+f)}};d.prototype.Zu=function(d,g,l){this.behavior.$l=d;this.behavior.Hg=this.b.ab.I;this.behavior.zj=this.behavior.Hg+g;this.behavior.am=l};d.prototype.Rg=function(d){this.enabled=0!==d};l.B=new d})();function oc(d){this.b=d}
(function(){function d(){}var l=oc.prototype;l.U=function(d){this.behavior=d;this.b=d.b};l.U.prototype.G=function(){};l.L=function(d,g){this.type=d;this.behavior=d.behavior;this.j=g;this.b=d.b};var g=l.L.prototype;g.G=function(){this.j.N.solidEnabled=0!==this.A[0]};g.za=function(){};l.n=new function(){};d.prototype.Rg=function(d){this.j.N.solidEnabled=!!d};l.B=new d})();
function nc(){return[qc,pc,wc,rc,sc,tc,vc,Z,uc,yc,Jc,Bc,Ic,zc,xc,oc,Dc,Hc,Ac,Fc,Gc,V.prototype.n.Wp,Z.prototype.B.Ru,V.prototype.ja.hy,V.prototype.ja.gy,Hc.prototype.B.It,sc.prototype.B.Mu,V.prototype.B.Nu,V.prototype.B.lv,V.prototype.B.Wu,uc.prototype.B.Tu,qc.prototype.B.Du,V.prototype.ja.uq,V.prototype.n.Vp,qc.prototype.B.Nm,V.prototype.n.Zt,sc.prototype.ja.Qj,sc.prototype.ja.Rj,Z.prototype.B.Su,V.prototype.n.fu,V.prototype.n.Ut,rc.prototype.n.Sp,V.prototype.B.Uu,V.prototype.B.Qu,Z.prototype.B.Vu,
Z.prototype.n.Pp,V.prototype.B.Jt,V.prototype.B.Vt,uc.prototype.ja.Qj,uc.prototype.ja.Rj,sc.prototype.n.du,V.prototype.n.Yt,Z.prototype.B.bv,xc.prototype.B.Ju,Z.prototype.ja.Kt,qc.prototype.B.Play,Z.prototype.B.Lu,Z.prototype.n.tu,Z.prototype.B.Wt,Z.prototype.B.jv,Z.prototype.B.dq,Z.prototype.n.St,Z.prototype.n.Rt,V.prototype.n.Gu,rc.prototype.n.gu,yc.prototype.B.$u,yc.prototype.n.Lp,Z.prototype.B.Ku,Z.prototype.ja.Qj,Z.prototype.ja.Rj,Jc.prototype.B.Zu,Z.prototype.B.Xu,Hc.prototype.B.Qt,V.prototype.ja.random,
zc.prototype.n.Qp,Z.prototype.n.Kf,Bc.prototype.B.$t,Z.prototype.B.mu,Bc.prototype.n.Yp,Bc.prototype.B.dv,Bc.prototype.n.Np,Ac.prototype.n.bu,Hc.prototype.B.fq,Bc.prototype.B.Rg,Hc.prototype.n.aq,zc.prototype.B.cv,Z.prototype.n.iu,Z.prototype.B.Ou,Gc.prototype.B.gv,Gc.prototype.n.Au,Gc.prototype.B.hv,Z.prototype.B.Iu,V.prototype.B.Pu,V.prototype.ja.fy,V.prototype.n.ku,V.prototype.B.au,V.prototype.B.Hu,uc.prototype.n.Tt,sc.prototype.n.hu,uc.prototype.B.dq,sc.prototype.n.Lm,qc.prototype.B.Eu,qc.prototype.n.Fu]}
;
