// Generated by Construct 2, the HTML5 game and app creator :: https://www.construct.net
'use strict';var aa,ba,da,fa,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,va,wa,xa,ya,za,Aa,Ba,z,Ca,Ea,Ha,Ia,Ja,D,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Ta,Ua,Va,Wa,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc,hc,ic,jc,kc,lc,mc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(d){return d.__proto__}:function(d){return d.constructor.prototype});
(function(){function d(b,a,k,f){this.set(b,a,k,f)}function h(){this.Fb=this.Eb=this.Hb=this.Gb=this.Sb=this.Rb=this.$a=this.Za=0}function c(b,a,k,f){b<a?k<f?(w=b<k?b:k,E=a>f?a:f):(w=b<f?b:f,E=a>k?a:k):k<f?(w=a<k?a:k,E=b>f?b:f):(w=a<f?a:f,E=b>k?b:k)}function l(){this.items=this.qc=null;this.ei=0;A&&(this.qc=new Set);this.ph=[];this.Qe=!0}function q(b){U[P++]=b}function n(){this.R=this.fh=this.y=this.Ul=0}function p(b){this.ub=[];this.pj=this.rj=this.sj=this.qj=0;this.Ki(b)}function a(b,a){this.Yl=
b;this.Xl=a;this.cells={}}function e(b,a){this.Yl=b;this.Xl=a;this.cells={}}function g(b,a,k){var f;return B.length?(f=B.pop(),f.Im=b,f.x=a,f.y=k,f):new ba(b,a,k)}function b(b,a,k){this.Im=b;this.x=a;this.y=k;this.Bb=new da}function f(b,a,k){var f;return v.length?(f=v.pop(),f.Im=b,f.x=a,f.y=k,f):new fa(b,a,k)}function m(b,a,k){this.Im=b;this.x=a;this.y=k;this.Bb=[];this.Fg=!0;this.Vd=new da;this.wh=!1}function t(b,a){return b.Gd-a.Gd}ha=function(b){window.console&&window.console.log&&window.console.log(b)};
ia=function(b){window.console&&window.console.error&&window.console.error(b)};aa=function(b){return b};ja=function(b){return"undefined"===typeof b};ka=function(b){return"number"===typeof b};la=function(b){return"string"===typeof b};ma=function(b){return 0<b&&0===(b-1&b)};na=function(b){--b;for(var a=1;32>a;a<<=1)b=b|b>>a;return b+1};oa=function(b){return 0>b?-b:b};pa=function(b,a){return b>a?b:a};qa=function(b,a){return b<a?b:a};ra=Math.PI;sa=function(b){return 0<=b?b|0:(b|0)-1};va=function(b){var a=
b|0;return a===b?a:a+1};wa=function(b,a,k,f,e,g,m,u){var t,r,c,d;b<k?(r=b,t=k):(r=k,t=b);e<m?(d=e,c=m):(d=m,c=e);if(t<d||r>c)return!1;a<f?(r=a,t=f):(r=f,t=a);g<u?(d=g,c=u):(d=u,c=g);if(t<d||r>c)return!1;t=e-b+m-k;r=g-a+u-f;b=k-b;a=f-a;e=m-e;g=u-g;u=oa(a*e-g*b);return oa(e*r-g*t)>u?!1:oa(b*r-a*t)<=u};d.prototype.set=function(b,a,k,f){this.left=b;this.top=a;this.right=k;this.bottom=f};d.prototype.Bh=function(b){this.left=b.left;this.top=b.top;this.right=b.right;this.bottom=b.bottom};d.prototype.width=
function(){return this.right-this.left};d.prototype.height=function(){return this.bottom-this.top};d.prototype.offset=function(b,a){this.left+=b;this.top+=a;this.right+=b;this.bottom+=a;return this};d.prototype.normalize=function(){var b=0;this.left>this.right&&(b=this.left,this.left=this.right,this.right=b);this.top>this.bottom&&(b=this.top,this.top=this.bottom,this.bottom=b)};d.prototype.ww=function(b){return!(b.right<this.left||b.bottom<this.top||b.left>this.right||b.top>this.bottom)};d.prototype.xw=
function(b,a,k){return!(b.right+a<this.left||b.bottom+k<this.top||b.left+a>this.right||b.top+k>this.bottom)};d.prototype.Vb=function(b,a){return b>=this.left&&b<=this.right&&a>=this.top&&a<=this.bottom};d.prototype.Fh=function(b){return this.left===b.left&&this.top===b.top&&this.right===b.right&&this.bottom===b.bottom};xa=d;h.prototype.Ji=function(b){this.Za=b.left;this.$a=b.top;this.Rb=b.right;this.Sb=b.top;this.Gb=b.right;this.Hb=b.bottom;this.Eb=b.left;this.Fb=b.bottom};h.prototype.ur=function(b,
a){if(0===a)this.Ji(b);else{var k=Math.sin(a),f=Math.cos(a),e=b.left*k,g=b.top*k,m=b.right*k,k=b.bottom*k,u=b.left*f,t=b.top*f,r=b.right*f,f=b.bottom*f;this.Za=u-g;this.$a=t+e;this.Rb=r-g;this.Sb=t+m;this.Gb=r-k;this.Hb=f+m;this.Eb=u-k;this.Fb=f+e}};h.prototype.offset=function(b,a){this.Za+=b;this.$a+=a;this.Rb+=b;this.Sb+=a;this.Gb+=b;this.Hb+=a;this.Eb+=b;this.Fb+=a;return this};var w=0,E=0;h.prototype.Qo=function(b){c(this.Za,this.Rb,this.Gb,this.Eb);b.left=w;b.right=E;c(this.$a,this.Sb,this.Hb,
this.Fb);b.top=w;b.bottom=E};h.prototype.Vb=function(b,a){var k=this.Za,f=this.$a,e=this.Rb-k,g=this.Sb-f,m=this.Gb-k,u=this.Hb-f,t=b-k,r=a-f,c=e*e+g*g,d=e*m+g*u,g=e*t+g*r,w=m*m+u*u,h=m*t+u*r,y=1/(c*w-d*d),e=(w*g-d*h)*y,c=(c*h-d*g)*y;if(0<=e&&0<c&&1>e+c)return!0;e=this.Eb-k;g=this.Fb-f;c=e*e+g*g;d=e*m+g*u;g=e*t+g*r;y=1/(c*w-d*d);e=(w*g-d*h)*y;c=(c*h-d*g)*y;return 0<=e&&0<c&&1>e+c};h.prototype.Gc=function(b,a){if(a)switch(b){case 0:return this.Za;case 1:return this.Rb;case 2:return this.Gb;case 3:return this.Eb;
case 4:return this.Za;default:return this.Za}else switch(b){case 0:return this.$a;case 1:return this.Sb;case 2:return this.Hb;case 3:return this.Fb;case 4:return this.$a;default:return this.$a}};h.prototype.tq=function(){return(this.Za+this.Rb+this.Gb+this.Eb)/4};h.prototype.uq=function(){return(this.$a+this.Sb+this.Hb+this.Fb)/4};h.prototype.Gp=function(b){var a=b.tq(),k=b.uq();if(this.Vb(a,k))return!0;a=this.tq();k=this.uq();if(b.Vb(a,k))return!0;var f,e,g,m,u,t,r,c;for(r=0;4>r;r++)for(c=0;4>c;c++)if(a=
this.Gc(r,!0),k=this.Gc(r,!1),f=this.Gc(r+1,!0),e=this.Gc(r+1,!1),g=b.Gc(c,!0),m=b.Gc(c,!1),u=b.Gc(c+1,!0),t=b.Gc(c+1,!1),wa(a,k,f,e,g,m,u,t))return!0;return!1};ya=h;za=function(b,a){for(var k in a)a.hasOwnProperty(k)&&(b[k]=a[k]);return b};Aa=function(b,a){var k,f;a=sa(a);if(!(0>a||a>=b.length)){k=a;for(f=b.length-1;k<f;k++)b[k]=b[k+1];Ba(b,f)}};Ba=function(b,a){b.length=a};z=function(b){Ba(b,0)};Ca=function(b,a){z(b);var k,f;k=0;for(f=a.length;k<f;++k)b[k]=a[k]};Ea=function(b,a){b.push.apply(b,
a)};Ha=function(b,a){var k,f;k=0;for(f=b.length;k<f;++k)if(b[k]===a)return k;return-1};Ia=function(b,a){var k=Ha(b,a);-1!==k&&Aa(b,k)};Ja=function(b,a,k){return b<a?a:b>k?k:b};D=function(b){return b/(180/ra)};Ka=function(b){return 180/ra*b};La=function(b){b%=360;0>b&&(b+=360);return b};Ma=function(b){b%=2*ra;0>b&&(b+=2*ra);return b};Na=function(b){return La(Ka(b))};Oa=function(b){return Ma(D(b))};Pa=function(b,a,k,f){return Math.atan2(f-a,k-b)};Qa=function(b,a){if(b===a)return 0;var k=Math.sin(b),
f=Math.cos(b),e=Math.sin(a),g=Math.cos(a),k=k*e+f*g;return 1<=k?0:-1>=k?ra:Math.acos(k)};Ra=function(b,a,k){var f=Math.sin(b),e=Math.cos(b),g=Math.sin(a),m=Math.cos(a);return Math.acos(f*g+e*m)>k?0<e*g-f*m?Ma(b+k):Ma(b-k):Ma(a)};Ta=function(b,a){var k=Math.sin(b),f=Math.cos(b),e=Math.sin(a),g=Math.cos(a);return 0>=f*e-k*g};Ua=function(b,a,k,f,e,g){if(0===k)return g?b:a;var m=Math.sin(k);k=Math.cos(k);b-=f;a-=e;var u=b*m;b=b*k-a*m;a=a*k+u;return g?b+f:a+e};Va=function(b,a,k,f){b=k-b;a=f-a;return Math.sqrt(b*
b+a*a)};Wa=function(b,a){return!b!==!a};Za=function(b,a,k){return b+(a-b)*k};$a=function(b){for(var a in b)if(b.hasOwnProperty(a))return!0;return!1};ab=function(b){for(var a in b)b.hasOwnProperty(a)&&delete b[a]};var H=+new Date;bb=function(){if("undefined"!==typeof window.performance){var b=window.performance;if("undefined"!==typeof b.now)return b.now();if("undefined"!==typeof b.webkitNow)return b.webkitNow();if("undefined"!==typeof b.mozNow)return b.mozNow();if("undefined"!==typeof b.msNow)return b.msNow()}return Date.now()-
H};var k=!1,r=k=!1,y=!1;"undefined"!==typeof window&&(k=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),k=!k&&/safari/i.test(navigator.userAgent),r=/(iphone|ipod|ipad)/i.test(navigator.userAgent),y=window.c2ejecta);var A=!k&&!y&&!r&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;l.prototype.contains=function(b){return this.re()?!1:A?this.qc.has(b):this.items&&this.items.hasOwnProperty(b)};l.prototype.add=function(b){if(A)this.qc.has(b)||(this.qc.add(b),
this.Qe=!1);else{var a=b.toString(),k=this.items;k?k.hasOwnProperty(a)||(k[a]=b,this.ei++,this.Qe=!1):(this.items={},this.items[a]=b,this.ei=1,this.Qe=!1)}};l.prototype.remove=function(b){if(!this.re())if(A)this.qc.has(b)&&(this.qc["delete"](b),this.Qe=!1);else if(this.items){b=b.toString();var a=this.items;a.hasOwnProperty(b)&&(delete a[b],this.ei--,this.Qe=!1)}};l.prototype.clear=function(){this.re()||(A?this.qc.clear():(this.items=null,this.ei=0),z(this.ph),this.Qe=!0)};l.prototype.re=function(){return 0===
this.count()};l.prototype.count=function(){return A?this.qc.size:this.ei};var U=null,P=0;l.prototype.by=function(){if(!this.Qe){if(A)z(this.ph),U=this.ph,P=0,this.qc.forEach(q),U=null,P=0;else{var b=this.ph;z(b);var a,k=0,f=this.items;if(f)for(a in f)f.hasOwnProperty(a)&&(b[k++]=f[a])}this.Qe=!0}};l.prototype.pf=function(){this.by();return this.ph};da=l;new da;cb=function(b,a){A?db(b,a.qc):eb(b,a.pf())};db=function(b,a){var k,f,e,g;f=k=0;for(e=b.length;k<e;++k)g=b[k],a.has(g)||(b[f++]=g);Ba(b,f)};
eb=function(b,a){var k,f,e,g;f=k=0;for(e=b.length;k<e;++k)g=b[k],-1===Ha(a,g)&&(b[f++]=g);Ba(b,f)};n.prototype.add=function(b){this.y=b-this.Ul;this.fh=this.R+this.y;this.Ul=this.fh-this.R-this.y;this.R=this.fh};n.prototype.reset=function(){this.R=this.fh=this.y=this.Ul=0};fb=n;gb=function(b){return b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};p.prototype.Ki=function(b){this.$q=b;this.Ad=b.length/2;this.ub.length=b.length;this.uj=this.vj=-1;this.To=0};p.prototype.Cg=function(){return!this.$q.length};
p.prototype.Fa=function(){for(var b=this.ub,a=b[0],k=a,f=b[1],e=f,g,m,u=1,t=this.Ad;u<t;++u)m=2*u,g=b[m],m=b[m+1],g<a&&(a=g),g>k&&(k=g),m<f&&(f=m),m>e&&(e=m);this.qj=a;this.rj=k;this.sj=f;this.pj=e};p.prototype.Ji=function(b,a,k){this.ub.length=8;this.Ad=4;var f=this.ub;f[0]=b.left-a;f[1]=b.top-k;f[2]=b.right-a;f[3]=b.top-k;f[4]=b.right-a;f[5]=b.bottom-k;f[6]=b.left-a;f[7]=b.bottom-k;this.vj=b.right-b.left;this.uj=b.bottom-b.top;this.Fa()};p.prototype.bh=function(b,a,k,f,e){this.ub.length=8;this.Ad=
4;var g=this.ub;g[0]=b.Za-a;g[1]=b.$a-k;g[2]=b.Rb-a;g[3]=b.Sb-k;g[4]=b.Gb-a;g[5]=b.Hb-k;g[6]=b.Eb-a;g[7]=b.Fb-k;this.vj=f;this.uj=e;this.Fa()};p.prototype.tr=function(b){this.Ad=b.Ad;Ca(this.ub,b.ub);this.qj=b.qj;this.sj-b.sj;this.rj=b.rj;this.pj=b.pj};p.prototype.mg=function(b,a,k){if(this.vj!==b||this.uj!==a||this.To!==k){this.vj=b;this.uj=a;this.To=k;var f,e,g,m,u,t=0,r=1,c=this.$q,d=this.ub;0!==k&&(t=Math.sin(k),r=Math.cos(k));k=0;for(g=this.Ad;k<g;k++)f=2*k,e=f+1,m=c[f]*b,u=c[e]*a,d[f]=m*r-u*
t,d[e]=u*r+m*t;this.Fa()}};p.prototype.Vb=function(b,a){var k=this.ub;if(b===k[0]&&a===k[1])return!0;var f,e,g,m=this.Ad,u=this.qj-110,t=this.sj-101,r=this.rj+131,c=this.pj+120,d,w,h=0,y=0;for(f=0;f<m;f++)e=2*f,g=(f+1)%m*2,d=k[e],e=k[e+1],w=k[g],g=k[g+1],wa(u,t,b,a,d,e,w,g)&&h++,wa(r,c,b,a,d,e,w,g)&&y++;return 1===h%2||1===y%2};p.prototype.Uh=function(b,a,k){var f=b.ub,e=this.ub;if(this.Vb(f[0]+a,f[1]+k)||b.Vb(e[0]-a,e[1]-k))return!0;var g,m,u,t,r,c,d,w,h,y,l,p;g=0;for(t=this.Ad;g<t;g++)for(m=2*g,
u=(g+1)%t*2,w=e[m],m=e[m+1],h=e[u],y=e[u+1],u=0,d=b.Ad;u<d;u++)if(r=2*u,c=(u+1)%d*2,l=f[r]+a,r=f[r+1]+k,p=f[c]+a,c=f[c+1]+k,wa(w,m,h,y,l,r,p,c))return!0;return!1};hb=p;a.prototype.Ye=function(b,a,k){var f;f=this.cells[b];return f?(f=f[a])?f:k?(f=g(this,b,a),this.cells[b][a]=f):null:k?(f=g(this,b,a),this.cells[b]={},this.cells[b][a]=f):null};a.prototype.ic=function(b){return sa(b/this.Yl)};a.prototype.jc=function(b){return sa(b/this.Xl)};a.prototype.update=function(b,a,k){var f,e,g,m,u;if(a)for(f=
a.left,e=a.right;f<=e;++f)for(g=a.top,m=a.bottom;g<=m;++g)if(!k||!k.Vb(f,g))if(u=this.Ye(f,g,!1))u.remove(b),u.re()&&(u.Bb.clear(),1E3>B.length&&B.push(u),this.cells[f][g]=null);if(k)for(f=k.left,e=k.right;f<=e;++f)for(g=k.top,m=k.bottom;g<=m;++g)a&&a.Vb(f,g)||this.Ye(f,g,!0).Om(b)};a.prototype.Rk=function(b,a){var k,f,e,g,m,u;k=this.ic(b.left);e=this.jc(b.top);f=this.ic(b.right);for(m=this.jc(b.bottom);k<=f;++k)for(g=e;g<=m;++g)(u=this.Ye(k,g,!1))&&u.dump(a)};kb=a;e.prototype.Ye=function(b,a,k){var e;
e=this.cells[b];return e?(e=e[a])?e:k?(e=f(this,b,a),this.cells[b][a]=e):null:k?(e=f(this,b,a),this.cells[b]={},this.cells[b][a]=e):null};e.prototype.ic=function(b){return sa(b/this.Yl)};e.prototype.jc=function(b){return sa(b/this.Xl)};e.prototype.update=function(b,a,k){var f,e,g,m,u;if(a)for(f=a.left,e=a.right;f<=e;++f)for(g=a.top,m=a.bottom;g<=m;++g)if(!k||!k.Vb(f,g))if(u=this.Ye(f,g,!1))u.remove(b),u.re()&&(u.reset(),1E3>v.length&&v.push(u),this.cells[f][g]=null);if(k)for(f=k.left,e=k.right;f<=
e;++f)for(g=k.top,m=k.bottom;g<=m;++g)a&&a.Vb(f,g)||this.Ye(f,g,!0).Om(b)};e.prototype.Rk=function(b,a,k,f,e){var g,m;b=this.ic(b);a=this.jc(a);k=this.ic(k);for(g=this.jc(f);b<=k;++b)for(f=a;f<=g;++f)(m=this.Ye(b,f,!1))&&m.dump(e)};e.prototype.Rw=function(b){var a,k,f,e,g;a=b.left;f=b.top;k=b.right;for(e=b.bottom;a<=k;++a)for(b=f;b<=e;++b)if(g=this.Ye(a,b,!1))g.Fg=!1};lb=e;var B=[];b.prototype.re=function(){return this.Bb.re()};b.prototype.Om=function(b){this.Bb.add(b)};b.prototype.remove=function(b){this.Bb.remove(b)};
b.prototype.dump=function(b){Ea(b,this.Bb.pf())};ba=b;var v=[];m.prototype.re=function(){if(!this.Bb.length)return!0;if(this.Bb.length>this.Vd.count())return!1;this.tm();return!0};m.prototype.Om=function(b){this.Vd.contains(b)?(this.Vd.remove(b),this.Vd.re()&&(this.wh=!1)):this.Bb.length?(this.Bb[this.Bb.length-1].Pd()>b.Pd()&&(this.Fg=!1),this.Bb.push(b)):(this.Bb.push(b),this.Fg=!0)};m.prototype.remove=function(b){this.Vd.add(b);this.wh=!0;30<=this.Vd.count()&&this.tm()};m.prototype.tm=function(){this.wh&&
(this.Vd.count()===this.Bb.length?this.reset():(cb(this.Bb,this.Vd),this.Vd.clear(),this.wh=!1))};m.prototype.Xu=function(){this.Fg||(this.Bb.sort(t),this.Fg=!0)};m.prototype.reset=function(){z(this.Bb);this.Fg=!0;this.Vd.clear();this.wh=!1};m.prototype.dump=function(b){this.tm();this.Xu();this.Bb.length&&b.push(this.Bb)};fa=m;var C="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");mb=function(b){return 0>=b||11<=b?"source-over":
C[b-1]};nb=function(b,a,k){if(k)switch(b.$b=k.ONE,b.Xb=k.ONE_MINUS_SRC_ALPHA,a){case 1:b.$b=k.ONE;b.Xb=k.ONE;break;case 3:b.$b=k.ONE;b.Xb=k.ZERO;break;case 4:b.$b=k.ONE_MINUS_DST_ALPHA;b.Xb=k.ONE;break;case 5:b.$b=k.DST_ALPHA;b.Xb=k.ZERO;break;case 6:b.$b=k.ZERO;b.Xb=k.SRC_ALPHA;break;case 7:b.$b=k.ONE_MINUS_DST_ALPHA;b.Xb=k.ZERO;break;case 8:b.$b=k.ZERO;b.Xb=k.ONE_MINUS_SRC_ALPHA;break;case 9:b.$b=k.DST_ALPHA;b.Xb=k.ONE_MINUS_SRC_ALPHA;break;case 10:b.$b=k.ONE_MINUS_DST_ALPHA,b.Xb=k.SRC_ALPHA}};
ob=function(b){return Math.round(1E6*b)/1E6};pb=function(b,a){return"string"!==typeof b||"string"!==typeof a||b.length!==a.length?!1:b===a?!0:b.toLowerCase()===a.toLowerCase()};qb=function(b){b=b.target;return!b||b===document||b===window||document&&document.body&&b===document.body||pb(b.tagName,"canvas")?!0:!1}})();var nc="undefined"!==typeof Float32Array?Float32Array:Array;function oc(d){var h=new nc(3);d&&(h[0]=d[0],h[1]=d[1],h[2]=d[2]);return h}
function pc(d){var h=new nc(16);d&&(h[0]=d[0],h[1]=d[1],h[2]=d[2],h[3]=d[3],h[4]=d[4],h[5]=d[5],h[6]=d[6],h[7]=d[7],h[8]=d[8],h[9]=d[9],h[10]=d[10],h[11]=d[11],h[12]=d[12],h[13]=d[13],h[14]=d[14],h[15]=d[15]);return h}function qc(d,h){h[0]=d[0];h[1]=d[1];h[2]=d[2];h[3]=d[3];h[4]=d[4];h[5]=d[5];h[6]=d[6];h[7]=d[7];h[8]=d[8];h[9]=d[9];h[10]=d[10];h[11]=d[11];h[12]=d[12];h[13]=d[13];h[14]=d[14];h[15]=d[15]}
function rc(d,h){var c=h[0],l=h[1];h=h[2];d[0]*=c;d[1]*=c;d[2]*=c;d[3]*=c;d[4]*=l;d[5]*=l;d[6]*=l;d[7]*=l;d[8]*=h;d[9]*=h;d[10]*=h;d[11]*=h}
function sc(d,h,c,l){l||(l=pc());var q,n,p,a,e,g,b,f,m=d[0],t=d[1];d=d[2];n=c[0];p=c[1];q=c[2];c=h[1];g=h[2];m===h[0]&&t===c&&d===g?(d=l,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):(c=m-h[0],g=t-h[1],b=d-h[2],f=1/Math.sqrt(c*c+g*g+b*b),c*=f,g*=f,b*=f,h=p*b-q*g,q=q*c-n*b,n=n*g-p*c,(f=Math.sqrt(h*h+q*q+n*n))?(f=1/f,h*=f,q*=f,n*=f):n=q=h=0,p=g*n-b*q,a=b*h-c*n,e=c*q-g*h,(f=Math.sqrt(p*p+a*a+e*e))?(f=1/f,p*=f,a*=f,e*=f):e=a=p=0,
l[0]=h,l[1]=p,l[2]=c,l[3]=0,l[4]=q,l[5]=a,l[6]=g,l[7]=0,l[8]=n,l[9]=e,l[10]=b,l[11]=0,l[12]=-(h*m+q*t+n*d),l[13]=-(p*m+a*t+e*d),l[14]=-(c*m+g*t+b*d),l[15]=1)}
(function(){function d(a,e,g){this.cf=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Da=!!g;this.fk=this.Wh=!1;this.em=0;this.yl=1;this.qo=1E3;this.iy=(this.qo-this.yl)/32768;this.Vl=oc([0,0,100]);this.aq=oc([0,0,0]);this.Qr=oc([0,1,0]);this.dj=oc([1,1,1]);this.fp=!0;this.wk=pc();this.Oc=pc();this.Ym=pc();this.dm=pc();this.B=a;this.version=0===this.B.getParameter(this.B.VERSION).indexOf("WebGL 2")?2:1;this.Cp()}function h(a,e,g){this.B=a;this.Li=
e;this.name=g;this.bd=a.getAttribLocation(e,"aPos");this.gf=a.getAttribLocation(e,"aTex");this.Zp=a.getUniformLocation(e,"matP");this.sk=a.getUniformLocation(e,"matMV");this.Mg=a.getUniformLocation(e,"opacity");this.cn=a.getUniformLocation(e,"colorFill");this.$p=a.getUniformLocation(e,"samplerFront");this.ki=a.getUniformLocation(e,"samplerBack");this.Uf=a.getUniformLocation(e,"destStart");this.Tf=a.getUniformLocation(e,"destEnd");this.mi=a.getUniformLocation(e,"seconds");this.en=a.getUniformLocation(e,
"pixelWidth");this.dn=a.getUniformLocation(e,"pixelHeight");this.ji=a.getUniformLocation(e,"layerScale");this.ii=a.getUniformLocation(e,"layerAngle");this.ni=a.getUniformLocation(e,"viewOrigin");this.li=a.getUniformLocation(e,"scrollPos");this.qw=!!(this.en||this.dn||this.mi||this.ki||this.Uf||this.Tf||this.ji||this.ii||this.ni||this.li);this.jq=this.kq=-999;this.vk=1;this.fq=this.dq=0;this.hq=this.cq=this.bq=1;this.nq=this.mq=this.lq=this.pq=this.oq=this.gq=0;this.Xm=[];this.iq=pc();this.Mg&&a.uniform1f(this.Mg,
1);this.cn&&a.uniform4f(this.cn,1,1,1,1);this.$p&&a.uniform1i(this.$p,0);this.ki&&a.uniform1i(this.ki,1);this.Uf&&a.uniform2f(this.Uf,0,0);this.Tf&&a.uniform2f(this.Tf,1,1);this.ji&&a.uniform1f(this.ji,1);this.ii&&a.uniform1f(this.ii,0);this.ni&&a.uniform2f(this.ni,0,0);this.li&&a.uniform2f(this.li,0,0);this.mi&&a.uniform1f(this.mi,0);this.Hf=!1}function c(a,e){return a[0]===e[0]&&a[1]===e[1]&&a[2]===e[2]&&a[3]===e[3]&&a[4]===e[4]&&a[5]===e[5]&&a[6]===e[6]&&a[7]===e[7]&&a[8]===e[8]&&a[9]===e[9]&&
a[10]===e[10]&&a[11]===e[11]&&a[12]===e[12]&&a[13]===e[13]&&a[14]===e[14]&&a[15]===e[15]}function l(a,e){this.type=a;this.n=e;this.B=e.B;this.Qd=this.hc=this.Mq=0;this.Y=this.kd=null;this.wr=[]}var q=pc();d.prototype.Cp=function(){var a=this.B,e;this.Sp=1;this.Of=this.Nf=null;this.Ej=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.Da?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.Tp=a.ONE;this.Rp=a.ONE_MINUS_SRC_ALPHA;this.wl=new Float32Array(8E3*(this.Da?3:2));this.hl=new Float32Array(16E3);this.Wq=new Float32Array(32E3);this.xn=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.xn);a.bufferData(a.ARRAY_BUFFER,this.Wq.byteLength,a.DYNAMIC_DRAW);this.Yi=Array(4);this.Ri=Array(4);for(e=0;4>e;e++)this.Yi[e]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Yi[e]),a.bufferData(a.ARRAY_BUFFER,this.wl.byteLength,a.DYNAMIC_DRAW),this.Ri[e]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.Ri[e]),a.bufferData(a.ARRAY_BUFFER,this.hl.byteLength,a.DYNAMIC_DRAW);this.he=0;this.uw=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.uw);for(var g=new Uint16Array(12E3),b=e=0;12E3>e;)g[e++]=b,g[e++]=b+1,g[e++]=b+2,g[e++]=b,g[e++]=b+2,g[e++]=b+3,b+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,g,a.STATIC_DRAW);this.yn=this.gh=this.Fe=0;this.Pa=[];e=this.Da?"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}";g=this.Ch({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}"},e,"<default>");this.Pa.push(g);g=this.Ch({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.Pa.push(g);g=this.Ch({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},e,"<earlyz>");this.Pa.push(g);g=this.Ch({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
e,"<fill>");this.Pa.push(g);for(var f in tc)tc.hasOwnProperty(f)&&this.Pa.push(this.Ch(tc[f],e,f));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Pe=[];this.ge=0;this.Zb=!1;this.$o=this.fi=-1;this.rg=null;this.qm=a.createFramebuffer();this.Ij=this.Sk=null;this.No=!1;this.Da&&(this.Ij=a.createRenderbuffer());this.of=oc([0,0,0]);this.qq=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.qq&&(this.qq=2048);this.sc(0)};h.prototype.ho=function(a){c(this.iq,a)||(qc(a,this.iq),this.B.uniformMatrix4fv(this.sk,
!1,a))};d.prototype.Ch=function(a,e,g){var b=this.B,f=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(f,a.src);b.compileShader(f);if(!b.getShaderParameter(f,b.COMPILE_STATUS))throw a=b.getShaderInfoLog(f),b.deleteShader(f),Error("error compiling fragment shader: "+a);var m=b.createShader(b.VERTEX_SHADER);b.shaderSource(m,e);b.compileShader(m);if(!b.getShaderParameter(m,b.COMPILE_STATUS))throw a=b.getShaderInfoLog(m),b.deleteShader(f),b.deleteShader(m),Error("error compiling vertex shader: "+a);e=
b.createProgram();b.attachShader(e,f);b.attachShader(e,m);b.linkProgram(e);if(!b.getProgramParameter(e,b.LINK_STATUS))throw a=b.getProgramInfoLog(e),b.deleteShader(f),b.deleteShader(m),b.deleteProgram(e),Error("error linking shader program: "+a);b.useProgram(e);b.deleteShader(f);b.deleteShader(m);f=new h(b,e,g);f.om=a.om||0;f.pm=a.pm||0;f.Zo=!!a.Zo;f.zd=!!a.zd;f.Lo=!!a.Lo;f.Z=a.Z||[];a=0;for(m=f.Z.length;a<m;a++)f.Z[a][1]=b.getUniformLocation(e,f.Z[a][0]),f.Xm.push(0),b.uniform1f(f.Z[a][1],0);return f};
d.prototype.Gm=function(a){var e,g;e=0;for(g=this.Pa.length;e<g;e++)if(this.Pa[e].name===a)return e;return-1};d.prototype.Zq=function(a,e,g){var b=this.Oc,f=this.wk,m=[0,0,0,0,0,0,0,0];m[0]=b[0]*a+b[4]*e+b[12];m[1]=b[1]*a+b[5]*e+b[13];m[2]=b[2]*a+b[6]*e+b[14];m[3]=b[3]*a+b[7]*e+b[15];m[4]=f[0]*m[0]+f[4]*m[1]+f[8]*m[2]+f[12]*m[3];m[5]=f[1]*m[0]+f[5]*m[1]+f[9]*m[2]+f[13]*m[3];m[6]=f[2]*m[0]+f[6]*m[1]+f[10]*m[2]+f[14]*m[3];m[7]=-m[2];0!==m[7]&&(m[7]=1/m[7],m[4]*=m[7],m[5]*=m[7],m[6]*=m[7],g[0]=(.5*m[4]+
.5)*this.width,g[1]=(.5*m[5]+.5)*this.height)};d.prototype.Ae=function(a,e,g){if(this.width!==a||this.height!==e||g){this.Bf();g=this.B;this.width=a;this.height=e;g.viewport(0,0,a,e);sc(this.Vl,this.aq,this.Qr,this.Oc);if(this.Da){var b=-a/2;a=a/2;var f=e/2;e=-e/2;var m=this.yl,t=this.qo,c=this.wk;c||(c=pc());var d=a-b,h=e-f,k=t-m;c[0]=2/d;c[1]=0;c[2]=0;c[3]=0;c[4]=0;c[5]=2/h;c[6]=0;c[7]=0;c[8]=0;c[9]=0;c[10]=-2/k;c[11]=0;c[12]=-(b+a)/d;c[13]=-(e+f)/h;c[14]=-(t+m)/k;c[15]=1;this.dj[0]=1;this.dj[1]=
1}else e=a/e,b=this.yl,a=this.qo,c=this.wk,t=b*Math.tan(45*Math.PI/360),e*=t,f=-e,m=-t,c||(c=pc()),d=e-f,h=t-m,k=a-b,c[0]=2*b/d,c[1]=0,c[2]=0,c[3]=0,c[4]=0,c[5]=2*b/h,c[6]=0,c[7]=0,c[8]=(e+f)/d,c[9]=(t+m)/h,c[10]=-(a+b)/k,c[11]=-1,c[12]=0,c[13]=0,c[14]=-(a*b*2)/k,c[15]=0,b=[0,0],a=[0,0],this.Zq(0,0,b),this.Zq(1,1,a),this.dj[0]=1/(a[0]-b[0]),this.dj[1]=-1/(a[1]-b[1]);b=0;for(a=this.Pa.length;b<a;b++)f=this.Pa[b],f.Hf=!1,f.Zp&&(g.useProgram(f.Li),g.uniformMatrix4fv(f.Zp,!1,this.wk));g.useProgram(this.Pa[this.fi].Li);
g.bindTexture(g.TEXTURE_2D,null);g.activeTexture(g.TEXTURE1);g.bindTexture(g.TEXTURE_2D,null);g.activeTexture(g.TEXTURE0);this.Of=this.Nf=null;this.Ij&&(g.bindFramebuffer(g.FRAMEBUFFER,this.qm),g.bindRenderbuffer(g.RENDERBUFFER,this.Ij),g.renderbufferStorage(g.RENDERBUFFER,g.DEPTH_COMPONENT16,this.width,this.height),this.No||(g.framebufferRenderbuffer(g.FRAMEBUFFER,g.DEPTH_ATTACHMENT,g.RENDERBUFFER,this.Ij),this.No=!0),g.bindRenderbuffer(g.RENDERBUFFER,null),g.bindFramebuffer(g.FRAMEBUFFER,null),
this.Sk=null)}};d.prototype.Yd=function(){sc(this.Vl,this.aq,this.Qr,this.Oc);rc(this.Oc,this.dj)};d.prototype.translate=function(a,e){if(0!==a||0!==e){this.of[0]=a;this.of[1]=e;this.of[2]=0;var g=this.Oc,b=this.of,f=b[0],m=b[1],b=b[2];g[12]=g[0]*f+g[4]*m+g[8]*b+g[12];g[13]=g[1]*f+g[5]*m+g[9]*b+g[13];g[14]=g[2]*f+g[6]*m+g[10]*b+g[14];g[15]=g[3]*f+g[7]*m+g[11]*b+g[15]}};d.prototype.scale=function(a,e){if(1!==a||1!==e)this.of[0]=a,this.of[1]=e,this.of[2]=1,rc(this.Oc,this.of)};d.prototype.Jn=function(a){if(0!==
a){var e=this.Oc,g,b=Math.sin(a);a=Math.cos(a);var f=e[0],m=e[1],c=e[2],d=e[3],h=e[4],l=e[5],k=e[6],r=e[7];g?e!==g&&(g[8]=e[8],g[9]=e[9],g[10]=e[10],g[11]=e[11],g[12]=e[12],g[13]=e[13],g[14]=e[14],g[15]=e[15]):g=e;g[0]=f*a+h*b;g[1]=m*a+l*b;g[2]=c*a+k*b;g[3]=d*a+r*b;g[4]=f*-b+h*a;g[5]=m*-b+l*a;g[6]=c*-b+k*a;g[7]=d*-b+r*a}};d.prototype.Fd=function(){if(!c(this.Ym,this.Oc)){var a=this.Dc();a.type=5;a.Y?qc(this.Oc,a.Y):a.Y=pc(this.Oc);qc(this.Oc,this.Ym);this.Zb=!1}};d.prototype.Yk=function(a){this.Da&&
(32760<a&&(a=32760),this.em=this.Vl[2]-this.yl-a*this.iy)};l.prototype.Gu=function(){var a=this.B,e=this.n;0!==this.hc?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,e.qm),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),e.fk=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),e.fk=!1)};l.prototype.Ku=function(){this.B.bindTexture(this.B.TEXTURE_2D,
this.kd)};l.prototype.Lu=function(){var a=this.B;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.kd);a.activeTexture(a.TEXTURE0)};l.prototype.Hu=function(){var a=this.Mq,e=this.n;e.Ej=a;e=e.rg;e.Mg&&e.vk!==a&&(e.vk=a,this.B.uniform1f(e.Mg,a))};l.prototype.Bu=function(){this.B.drawElements(this.B.TRIANGLES,this.Qd,this.B.UNSIGNED_SHORT,this.hc)};l.prototype.Du=function(){this.B.blendFunc(this.hc,this.Qd)};l.prototype.Nu=function(){var a,e,g,b=this.n.Pa,f=this.n.$o;a=0;for(e=b.length;a<
e;a++)g=b[a],a===f&&g.sk?(g.ho(this.Y),g.Hf=!0):g.Hf=!1;qc(this.Y,this.n.dm)};l.prototype.Cu=function(){var a=this.B,e=this.n;this.kd?(e.Of===this.kd&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),e.Of=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,e.qm),e.fk||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.kd,0)):(e.Da||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};
l.prototype.yu=function(){var a=this.B,e=this.hc;0===e?(a.clearColor(this.Y[0],this.Y[1],this.Y[2],this.Y[3]),a.clear(a.COLOR_BUFFER_BIT)):1===e?(a.enable(a.SCISSOR_TEST),a.scissor(this.Y[0],this.Y[1],this.Y[2],this.Y[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};l.prototype.Fu=function(){var a=this.B;0!==this.hc?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};l.prototype.Au=function(){var a=this.B,e=this.n;e.Da&&a.disable(a.DEPTH_TEST);
var g=e.Pa[1];a.useProgram(g.Li);!g.Hf&&g.sk&&(g.ho(e.dm),g.Hf=!0);a.enableVertexAttribArray(g.bd);a.bindBuffer(a.ARRAY_BUFFER,e.xn);a.vertexAttribPointer(g.bd,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.hc/4,this.Qd);g=e.rg;a.useProgram(g.Li);0<=g.bd&&(a.enableVertexAttribArray(g.bd),a.bindBuffer(a.ARRAY_BUFFER,e.Yi[e.he]),a.vertexAttribPointer(g.bd,e.Da?3:2,a.FLOAT,!1,0,0));0<=g.gf&&(a.enableVertexAttribArray(g.gf),a.bindBuffer(a.ARRAY_BUFFER,e.Ri[e.he]),a.vertexAttribPointer(g.gf,2,a.FLOAT,!1,
0,0));e.Da&&a.enable(a.DEPTH_TEST)};l.prototype.Iu=function(){var a=this.B,e=this.n,g=e.Pa[this.hc];e.$o=this.hc;e.rg=g;a.useProgram(g.Li);!g.Hf&&g.sk&&(g.ho(e.dm),g.Hf=!0);g.Mg&&g.vk!==e.Ej&&(g.vk=e.Ej,a.uniform1f(g.Mg,e.Ej));0<=g.bd&&(a.enableVertexAttribArray(g.bd),a.bindBuffer(a.ARRAY_BUFFER,e.Yi[e.he]),a.vertexAttribPointer(g.bd,e.Da?3:2,a.FLOAT,!1,0,0));0<=g.gf&&(a.enableVertexAttribArray(g.gf),a.bindBuffer(a.ARRAY_BUFFER,e.Ri[e.he]),a.vertexAttribPointer(g.gf,2,a.FLOAT,!1,0,0))};l.prototype.Eu=
function(){var a=this.Y;this.B.uniform4f(this.n.rg.cn,a[0],a[1],a[2],a[3])};l.prototype.Ju=function(){var a,e,g=this.n.rg,b=this.B;a=this.Y;g.ki&&this.n.Of!==this.kd&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,this.kd),this.n.Of=this.kd,b.activeTexture(b.TEXTURE0));var f=a[0];g.en&&f!==g.kq&&(g.kq=f,b.uniform1f(g.en,f));f=a[1];g.dn&&f!==g.jq&&(g.jq=f,b.uniform1f(g.dn,f));f=a[2];e=a[3];!g.Uf||f===g.dq&&e===g.fq||(g.dq=f,g.fq=e,b.uniform2f(g.Uf,f,e));f=a[4];e=a[5];!g.Tf||f===g.bq&&e===
g.cq||(g.bq=f,g.cq=e,b.uniform2f(g.Tf,f,e));f=a[6];g.ji&&f!==g.hq&&(g.hq=f,b.uniform1f(g.ji,f));f=a[7];g.ii&&f!==g.gq&&(g.gq=f,b.uniform1f(g.ii,f));f=a[8];e=a[9];!g.ni||f===g.oq&&e===g.pq||(g.oq=f,g.pq=e,b.uniform2f(g.ni,f,e));f=a[10];e=a[11];!g.li||f===g.lq&&e===g.mq||(g.lq=f,g.mq=e,b.uniform2f(g.li,f,e));f=a[12];g.mi&&f!==g.nq&&(g.nq=f,b.uniform1f(g.mi,f));if(g.Z.length)for(a=0,e=g.Z.length;a<e;a++)f=this.wr[a],f!==g.Xm[a]&&(g.Xm[a]=f,b.uniform1f(g.Z[a][1],f))};d.prototype.Dc=function(){this.ge===
this.Pe.length&&this.Pe.push(new l(0,this));return this.Pe[this.ge++]};d.prototype.Bf=function(){if(0!==this.ge&&!this.B.isContextLost()){var a=this.B;0<this.yn&&(a.bindBuffer(a.ARRAY_BUFFER,this.xn),a.bufferSubData(a.ARRAY_BUFFER,0,this.Wq.subarray(0,this.yn)),e&&0<=e.bd&&"<point>"===e.name&&a.vertexAttribPointer(e.bd,4,a.FLOAT,!1,0,0));if(0<this.Fe){var e=this.rg;a.bindBuffer(a.ARRAY_BUFFER,this.Yi[this.he]);a.bufferSubData(a.ARRAY_BUFFER,0,this.wl.subarray(0,this.Fe));e&&0<=e.bd&&"<point>"!==e.name&&
a.vertexAttribPointer(e.bd,this.Da?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Ri[this.he]);a.bufferSubData(a.ARRAY_BUFFER,0,this.hl.subarray(0,this.gh));e&&0<=e.gf&&"<point>"!==e.name&&a.vertexAttribPointer(e.gf,2,a.FLOAT,!1,0,0)}for(var g,a=0,e=this.ge;a<e;a++)switch(g=this.Pe[a],g.type){case 1:g.Bu();break;case 2:g.Ku();break;case 3:g.Hu();break;case 4:g.Du();break;case 5:g.Nu();break;case 6:g.Cu();break;case 7:g.yu();break;case 8:g.Au();break;case 9:g.Iu();break;case 10:g.Ju();break;
case 11:g.Lu();break;case 12:g.Eu();break;case 13:g.Fu();break;case 14:g.Gu()}this.yn=this.gh=this.Fe=this.ge=0;this.fk=this.Zb=!1;this.he++;4<=this.he&&(this.he=0)}};d.prototype.$f=function(a){if(a!==this.Sp&&!this.Wh){var e=this.Dc();e.type=3;this.Sp=e.Mq=a;this.Zb=!1}};d.prototype.rc=function(a){if(a!==this.Nf){var e=this.Dc();e.type=2;this.Nf=e.kd=a;this.Zb=!1}};d.prototype.mf=function(a,e){if((a!==this.Tp||e!==this.Rp)&&!this.Wh){var g=this.Dc();g.type=4;g.hc=a;g.Qd=e;this.Tp=a;this.Rp=e;this.Zb=
!1}};d.prototype.lr=function(){this.mf(this.B.ONE,this.B.ONE_MINUS_SRC_ALPHA)};d.prototype.Ci=function(a,e,g,b,f,m,c,d){15992<=this.Fe&&this.Bf();var h=this.Fe,l=this.gh,k=this.wl,r=this.hl,y=this.em;if(this.Zb)this.Pe[this.ge-1].Qd+=6;else{var p=this.Dc();p.type=1;p.hc=this.Da?h:h/2*3;p.Qd=6;this.Zb=!0}this.Da?(k[h++]=a,k[h++]=e,k[h++]=y,k[h++]=g,k[h++]=b,k[h++]=y,k[h++]=f,k[h++]=m,k[h++]=y,k[h++]=c,k[h++]=d,k[h++]=y):(k[h++]=a,k[h++]=e,k[h++]=g,k[h++]=b,k[h++]=f,k[h++]=m,k[h++]=c,k[h++]=d);r[l++]=
0;r[l++]=0;r[l++]=1;r[l++]=0;r[l++]=1;r[l++]=1;r[l++]=0;r[l++]=1;this.Fe=h;this.gh=l};d.prototype.Wd=function(a,e,g,b,f,m,c,d,h){15992<=this.Fe&&this.Bf();var l=this.Fe,k=this.gh,r=this.wl,y=this.hl,p=this.em;if(this.Zb)this.Pe[this.ge-1].Qd+=6;else{var q=this.Dc();q.type=1;q.hc=this.Da?l:l/2*3;q.Qd=6;this.Zb=!0}var q=h.left,n=h.top,B=h.right;h=h.bottom;this.Da?(r[l++]=a,r[l++]=e,r[l++]=p,r[l++]=g,r[l++]=b,r[l++]=p,r[l++]=f,r[l++]=m,r[l++]=p,r[l++]=c,r[l++]=d,r[l++]=p):(r[l++]=a,r[l++]=e,r[l++]=g,
r[l++]=b,r[l++]=f,r[l++]=m,r[l++]=c,r[l++]=d);y[k++]=q;y[k++]=n;y[k++]=B;y[k++]=n;y[k++]=B;y[k++]=h;y[k++]=q;y[k++]=h;this.Fe=l;this.gh=k};d.prototype.sc=function(a){if(this.fi!==a){if(!this.Pa[a]){if(0===this.fi)return;a=0}var e=this.Dc();e.type=9;this.fi=e.hc=a;this.Zb=!1}};d.prototype.Ai=function(a){a=this.Pa[a];return!(!a.Uf&&!a.Tf)};d.prototype.Cn=function(a){a=this.Pa[a];return!!(a.Uf||a.Tf||a.Zo)};d.prototype.Bn=function(a){return this.Pa[a].zd};d.prototype.qx=function(a){a=this.Pa[a];return 0!==
a.om||0!==a.pm};d.prototype.Xv=function(a){return this.Pa[a].om};d.prototype.Yv=function(a){return this.Pa[a].pm};d.prototype.Zv=function(a,e){return this.Pa[a].Z[e][2]};d.prototype.Pk=function(a){return this.Pa[a].Lo};d.prototype.ah=function(a,e,g,b,f,m,c,d,h,l,k,r,y,p,q){var n=this.Pa[this.fi],B,v;if(n.qw||q.length){B=this.Dc();B.type=10;B.Y?qc(this.Oc,B.Y):B.Y=pc();v=B.Y;v[0]=e;v[1]=g;v[2]=b;v[3]=f;v[4]=m;v[5]=c;v[6]=d;v[7]=h;v[8]=l;v[9]=k;v[10]=r;v[11]=y;v[12]=p;n.ki?B.kd=a:B.kd=null;if(q.length)for(g=
B.wr,g.length=q.length,a=0,e=q.length;a<e;a++)g[a]=q[a];this.Zb=!1}};d.prototype.clear=function(a,e,g,b){var f=this.Dc();f.type=7;f.hc=0;f.Y||(f.Y=pc());f.Y[0]=a;f.Y[1]=e;f.Y[2]=g;f.Y[3]=b;this.Zb=!1};d.prototype.clearRect=function(a,e,g,b){if(!(0>g||0>b)){var f=this.Dc();f.type=7;f.hc=1;f.Y||(f.Y=pc());f.Y[0]=a;f.Y[1]=e;f.Y[2]=g;f.Y[3]=b;this.Zb=!1}};d.prototype.or=function(a){if(this.Da&&(a=!!a,this.Wh!==a)){var e=this.Dc();e.type=14;e.hc=a?1:0;this.Zb=!1;this.Wh=a;this.Sk=null;this.Wh?this.sc(2):
this.sc(0)}};d.prototype.nr=function(a){if(this.Da){var e=this.Dc();e.type=13;e.hc=a?1:0;this.Zb=!1}};d.prototype.op=function(){qc(this.Ym,q);this.Yd();this.Fd();var a=this.width/2,e=this.height/2;this.Ci(-a,e,a,e,a,-e,-a,-e);qc(q,this.Oc);this.Fd()};d.prototype.mr=function(a,e,g){this.sc(3);var b=this.Dc();b.type=12;b.Y||(b.Y=pc());b.Y[0]=a;b.Y[1]=e;b.Y[2]=g;b.Y[3]=1;this.Zb=!1};d.prototype.Ox=function(){this.sc(0)};d.prototype.yx=function(){this.sc(2)};d.prototype.ox=function(){this.Bf();this.B.flush()};
var n=[],p={};d.prototype.pu=function(){z(n);p={}};d.prototype.wd=function(a,e,g,b,f){e=!!e;g=!!g;var m=a.src+","+e+","+g+(e?","+f:""),c=null;if("undefined"!==typeof a.src&&p.hasOwnProperty(m))return c=p[m],c.tj++,c;this.Bf();var d=this.B,h=ma(a.width)&&ma(a.height),c=d.createTexture();d.bindTexture(d.TEXTURE_2D,c);d.pixelStorei(d.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var l=d.RGBA,k=d.RGBA,r=d.UNSIGNED_BYTE;if(b&&!this.cf)switch(b){case 1:k=l=d.RGB;break;case 2:r=d.UNSIGNED_SHORT_4_4_4_4;break;case 3:r=
d.UNSIGNED_SHORT_5_5_5_1;break;case 4:k=l=d.RGB,r=d.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!h&&e){b=document.createElement("canvas");b.width=na(a.width);b.height=na(a.height);var y=b.getContext("2d");"undefined"!==typeof y.imageSmoothingEnabled?y.imageSmoothingEnabled=g:(y.webkitImageSmoothingEnabled=g,y.mozImageSmoothingEnabled=g,y.msImageSmoothingEnabled=g);y.drawImage(a,0,0,a.width,a.height,0,0,b.width,b.height);d.texImage2D(d.TEXTURE_2D,0,l,k,r,b)}else d.texImage2D(d.TEXTURE_2D,0,l,k,r,a);
e?"repeat-x"===f?(d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_S,d.REPEAT),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_T,d.CLAMP_TO_EDGE)):("repeat-y"===f?d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_S,d.CLAMP_TO_EDGE):d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_S,d.REPEAT),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_T,d.REPEAT)):(d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_S,d.CLAMP_TO_EDGE),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_T,d.CLAMP_TO_EDGE));g?(d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,
d.LINEAR),(h||2<=this.version)&&this.fp?(d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,d.LINEAR_MIPMAP_LINEAR),d.generateMipmap(d.TEXTURE_2D)):d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,d.LINEAR)):(d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,d.NEAREST),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,d.NEAREST));d.bindTexture(d.TEXTURE_2D,null);this.Nf=null;c.qd=a.width;c.pd=a.height;c.tj=1;c.So=m;n.push(c);return p[m]=c};d.prototype.Wc=function(a,e,g){var b;this.Bf();var f=this.B;
this.cf&&(b=!1);var m=f.createTexture();f.bindTexture(f.TEXTURE_2D,m);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,a,e,0,f.RGBA,b?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,null);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,g?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,g?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.Nf=null;m.qd=a;m.pd=e;n.push(m);
return m};d.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.tj&&1<a.tj?a.tj--:(this.Bf(),a===this.Nf&&(this.B.bindTexture(this.B.TEXTURE_2D,null),this.Nf=null),a===this.Of&&(this.B.activeTexture(this.B.TEXTURE1),this.B.bindTexture(this.B.TEXTURE_2D,null),this.B.activeTexture(this.B.TEXTURE0),this.Of=null),Ia(n,a),"undefined"!==typeof a.So&&delete p[a.So],this.B.deleteTexture(a)))};d.prototype.gd=function(a){if(a!==this.Sk){var e=this.Dc();e.type=6;this.Sk=e.kd=a;this.Zb=!1}};rb=d})();
(function(){function d(b){if(b&&(b.getContext||b.dc)&&!b.c2runtime){b.c2runtime=this;var a=this;this.Mc=(this.gk=/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.eb=!!b.dc;this.Jp="undefined"!==typeof window.AppMobi||
this.eb;this.ad=!!window.c2cocoonjs;this.td=!!window.c2ejecta;this.ad&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.td&&(document.addEventListener("pagehide",function(){a.setSuspended(!0)}),document.addEventListener("pageshow",function(){a.setSuspended(!1)}),document.addEventListener("resize",function(){a.setSize(window.innerWidth,window.innerHeight)}));this.ob=this.eb||this.ad||this.td;this.Yh=
/edge\//i.test(navigator.userAgent);this.cf=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Yh;this.Mp=/tizen/i.test(navigator.userAgent);this.Vh=/android/i.test(navigator.userAgent)&&!this.Mp&&!this.cf&&!this.Yh;this.Qp=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.cf&&!this.Yh;this.Hw=/ipad/i.test(navigator.userAgent);this.Hg=this.Qp||this.Hw||this.td;this.Rm=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.cf&&!this.Yh;this.Ip=/amazonwebappplatform/i.test(navigator.userAgent);this.zw=/firefox/i.test(navigator.userAgent);this.Dw=/safari/i.test(navigator.userAgent)&&!this.Rm&&!this.cf&&!this.Yh;this.Ew=/windows/i.test(navigator.userAgent);this.Cw=this.Zh="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Op=!("undefined"===typeof window.c2isWindows8||
!window.c2isWindows8);this.Gw=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.ud=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.jk=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.ik=!!window.cr_windows10;this.Np=this.Op||this.Gw||this.jk||this.ik;this.yw=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.ek=this.Vh&&!this.Rm&&!this.gk&&!this.zw&&!this.Ip&&!this.ob;
this.devicePixelRatio=1;this.Ag=this.Mc||this.gk||this.Jp||this.ad||this.Vh||this.Hg||this.ud||this.jk||this.yw||this.Mp||this.td;this.Ag||(this.Ag=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.bi=!!(this.Hg&&this.Mc&&window.webkit);"undefined"===typeof cr_is_preview||this.Zh||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Zh=!0);this.canvas=b;this.Uo=
document.getElementById("c2canvasdiv");this.n=this.B=null;this.Hm="(unavailable)";this.Da=!1;this.zf=0;this.Ga=null;this.Tj=!1;this.Eq=this.Fq=0;this.canvas.oncontextmenu=function(b){b.preventDefault&&b.preventDefault();return!1};this.canvas.onselectstart=function(b){b.preventDefault&&b.preventDefault();return!1};this.canvas.ontouchstart=function(b){b.preventDefault&&b.preventDefault();return!1};this.eb&&(window.c2runtime=this);this.Zh&&(window.ondragover=function(b){b.preventDefault();return!1},
window.ondrop=function(b){b.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.ek&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=b.width;this.height=b.height;this.J=this.width;this.I=this.height;this.Cj=this.width;this.Eh=this.height;this.Kg=window.innerWidth;this.Jg=window.innerHeight;this.ra=!0;this.$h=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.u=[];
this.La=[];this.an={};this.vd=[];this.nm={};this.ne=[];this.rh=[];this.nl=[];this.eu=[];this.fu=[];this.wf={};this.Tm=this.$e=!1;this.Nc=0;this.Sm=this.Vm=!1;this.rd=[];this.Xh=!1;this.pk=this.Nn="";this.qb=null;this.te="";this.Pi=this.Ar=!1;this.Sj=[];this.yf=this.me=0;this.vq=30;this.am=this.oi=0;this.mh=1;this.yb=new fb;this.Ge=new fb;this.yk=this.Vj=this.Ef=this.jh=this.Qf=this.um=this.mk=0;this.uf=null;this.im=[];this.mm=[];this.Mj=-1;this.gn=[[]];this.bo=this.tk=0;this.Qk(null);this.pi=[];this.qi=
-1;this.Ih=this.zq=this.ti=0;this.Qi=[];this.Yn=this.Dn=-1;this.Ig=!0;this.Sf=0;this.hk=!1;this.Rx=0;this.lg=null;this.se=this.yp=!1;this.Dq=new da;this.pn=new da;this.qn=new da;this.Xg=[];this.Cd=new hb([]);this.Vn=new hb([]);this.Oe=[];this.yg={};this.Ue={};this.Me={};this.qh={};this.Oo={};this.Xp=this.ok=this.fb=this.pb=this.Wp=this.nk=this.ua=null;this.oh=this.Wm=!1;this.vm=[null,null];this.vg=0;this.Rj="";this.we={};this.Mi=this.ef=null;this.Cr="";this.xk=[];this.xx()}}function h(b,a){return 128>=
a?b[3]:256>=a?b[2]:512>=a?b[1]:b[0]}function c(){try{return!!window.indexedDB}catch(b){return!1}}function l(b){b.target.result.createObjectStore("saves",{keyPath:"slot"})}function q(b,a,k,f){try{var e=indexedDB.open("_C2SaveStates");e.onupgradeneeded=l;e.onerror=f;e.onsuccess=function(e){e=e.target.result;e.onerror=f;e.transaction(["saves"],"readwrite").objectStore("saves").put({slot:b,data:a}).onsuccess=k}}catch(g){f(g)}}function n(b,a,k){try{var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=
l;f.onerror=k;f.onsuccess=function(f){f=f.target.result;f.onerror=k;var e=f.transaction(["saves"]).objectStore("saves").get(b);e.onsuccess=function(){e.result?a(e.result.data):a(null)}}}catch(e){k(e)}}function p(){ha("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function a(b){var a,k={};for(a in b)!b.hasOwnProperty(a)||b[a]instanceof da||b[a]&&"undefined"!==
typeof b[a].sz||"spriteCreatedDestroyCallback"!==a&&(k[a]=b[a]);return k}var e=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.xx=function(){var b=this;if(this.bi)this.lp("data.js",function(a){b.hi(JSON.parse(a))},function(){alert("Error fetching data.js")});else{var a;this.ud?a=new ActiveXObject("Microsoft.XMLHTTP"):a=new XMLHttpRequest;var k="data.js";if(this.Op||this.ud||
this.jk||this.ik)k="data.json";a.open("GET",k,!0);var f=!1;if(!this.ob&&"response"in a&&"responseType"in a)try{a.responseType="json",f="json"===a.responseType}catch(e){f=!1}if(!f&&"responseType"in a)try{a.responseType="text"}catch(g){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(m){}this.ud?a.onreadystatechange=function(){4===a.readyState&&b.hi(JSON.parse(a.responseText))}:(a.onload=function(){if(f)b.hi(a.response);else if(b.td){var k=a.responseText,k=
k.substr(k.indexOf("{"));b.hi(JSON.parse(k))}else b.hi(JSON.parse(a.responseText))},a.onerror=function(b){ia("Error requesting "+k+":");ia(b)});a.send()}};d.prototype.vw=function(){var b=this,a,k,f,e,g,m,c,r,d;this.Mf=(!this.ob||this.td||this.Mc)&&this.dy&&!this.ek;0===this.mc&&this.Hg&&(this.Mf=!1);this.devicePixelRatio=this.Mf?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;"object"===typeof window.StatusBar&&window.StatusBar.hide();
this.Tb();0<this.mc&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(a){a.preventDefault();b.Vw();ha("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){b.n.Cp();b.n.Ae(b.n.width,b.n.height,!0);b.pb=null;b.fb=null;b.vm[0]=null;b.vm[1]=null;b.Ww();b.ra=!0;ha("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.Vu&&(this.ad||this.td||
!this.ob)&&(a={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.Vh||(this.B=this.canvas.getContext("webgl2",a)),this.B||(this.B=this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",a)))}catch(t){}if(this.B){if(a=this.B.getExtension("WEBGL_debug_renderer_info"))this.Hm=this.B.getParameter(a.UNMASKED_RENDERER_WEBGL)+" ["+this.B.getParameter(a.UNMASKED_VENDOR_WEBGL)+"]";this.Da&&(this.Hm+=" [front-to-back enabled]");this.ob||
(this.Pb=document.createElement("canvas"),jQuery(this.Pb).appendTo(this.canvas.parentNode),this.Pb.oncontextmenu=function(){return!1},this.Pb.onselectstart=function(){return!1},this.Pb.width=Math.round(this.Cj*this.devicePixelRatio),this.Pb.height=Math.round(this.Eh*this.devicePixelRatio),jQuery(this.Pb).css({width:this.Cj+"px",height:this.Eh+"px"}),this.Yq(),this.wn=this.Pb.getContext("2d"));this.n=new rb(this.B,this.Ag,this.Da);this.n.Ae(this.canvas.width,this.canvas.height);this.n.fp=0!==this.Ou;
this.Ga=null;a=0;for(k=this.u.length;a<k;a++)for(g=this.u[a],f=0,e=g.O.length;f<e;f++)c=g.O[f],c.ib=this.n.Gm(c.id),c.zd=this.n.Bn(c.ib),this.oh=this.oh||this.n.Ai(c.ib);a=0;for(k=this.vd.length;a<k;a++){r=this.vd[a];f=0;for(e=r.O.length;f<e;f++)c=r.O[f],c.ib=this.n.Gm(c.id),c.zd=this.n.Bn(c.ib);r.Ed();f=0;for(e=r.V.length;f<e;f++){d=r.V[f];g=0;for(m=d.O.length;g<m;g++)c=d.O[g],c.ib=this.n.Gm(c.id),c.zd=this.n.Bn(c.ib),this.oh=this.oh||this.n.Ai(c.ib);d.Ed()}}}else{if(0<this.mc&&this.eb){this.canvas=
null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Ga=AppMobi.canvas.getContext("2d");try{this.Ga.samplingMode=this.Ea?"smooth":"sharp",this.Ga.globalScale=1,this.Ga.HTML5CompatibilityMode=!0,this.Ga.imageSmoothingEnabled=this.Ea}catch(h){}0!==this.width&&0!==this.height&&(this.Ga.width=this.width,this.Ga.height=this.height)}this.Ga||(this.ad?(a={antialias:!!this.Ea,alpha:!0},this.Ga=this.canvas.getContext("2d",a)):(a={alpha:!0},this.Ga=this.canvas.getContext("2d",
a)),this.Xk(this.Ga,this.Ea));this.wn=this.Pb=null}this.Ir=function(a){b.Db(!1,a)};window==window.top||this.ob||this.Np||this.ud||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.ad&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ha("Reloading for continuous preview"),this.pk="__c2_continuouspreview",
this.Pi=!0),this.gx&&!this.Ag&&(jQuery(window).focus(function(){b.setSuspended(!1)}),jQuery(window).blur(function(){var a=window.parent;a&&a.document.hasFocus()||b.setSuspended(!0)})));window.addEventListener("blur",function(){});this.ob||(a=function(b){if(qb(b)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(a){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",
a):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",a):document.addEventListener("touchstart",a),document.addEventListener("mousedown",a));0===this.mc&&this.Mf&&1<this.devicePixelRatio&&this.setSize(this.sb,this.rb,!0);this.Nr();this.mw();this.go();this.L={}};d.prototype.setSize=function(b,a,k){var f=0,e=0,g=0,m=0,m=0;if(this.Kg!==b||this.Jg!==a||k){this.Kg=b;this.Jg=a;var c=this.mc;if((g=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||
document.fullScreen||this.hk)&&!this.Mc)||0!==this.mc||k)g&&(c=this.vg),k=this.devicePixelRatio,4<=c?(5===c&&1!==k&&(b+=1,a+=1),g=this.sb/this.rb,b/a>g?(g*=a,5===c?(m=g*k/this.sb,1<m?m=Math.floor(m):1>m&&(m=1/Math.ceil(1/m)),g=this.sb*m/k,m=this.rb*m/k,f=(b-g)/2,e=(a-m)/2,b=g,a=m):(f=(b-g)/2,b=g)):(m=b/g,5===c?(m=m*k/this.rb,1<m?m=Math.floor(m):1>m&&(m=1/Math.ceil(1/m)),g=this.sb*m/k,m=this.rb*m/k,f=(b-g)/2,e=(a-m)/2,b=g):e=(a-m)/2,a=m)):g&&0===c&&(f=Math.floor((b-this.sb)/2),e=Math.floor((a-this.rb)/
2),b=this.sb,a=this.rb),2>c&&(this.yh=k),this.Cj=Math.round(b),this.Eh=Math.round(a),this.width=Math.round(b*k),this.height=Math.round(a*k),this.ra=!0,this.Zr?(this.J=this.width,this.I=this.height,this.Jc=!0):this.width<this.sb&&this.height<this.rb||1===c?(this.J=this.width,this.I=this.height,this.Jc=!0):(this.J=this.sb,this.I=this.rb,this.Jc=!1,2===c?(g=this.sb/this.rb,c=this.Kg/this.Jg,c<g?this.J=this.I*c:c>g&&(this.I=this.J/c)):3===c&&(g=this.sb/this.rb,c=this.Kg/this.Jg,c>g?this.J=this.I*c:c<
g&&(this.I=this.J/c))),this.Uo&&!this.ob&&(jQuery(this.Uo).css({width:Math.round(b)+"px",height:Math.round(a)+"px","margin-left":Math.floor(f)+"px","margin-top":Math.floor(e)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(b)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(b*k),this.canvas.height=Math.round(a*k),this.td?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=Math.floor(e)+"px",this.canvas.style.width=Math.round(b)+
"px",this.canvas.style.height=Math.round(a)+"px"):this.Mf&&!this.ob&&(this.canvas.style.width=Math.round(b)+"px",this.canvas.style.height=Math.round(a)+"px")),this.Pb&&(this.Pb.width=Math.round(b*k),this.Pb.height=Math.round(a*k),this.Pb.style.width=this.Cj+"px",this.Pb.style.height=this.Eh+"px"),this.n&&this.n.Ae(Math.round(b*k),Math.round(a*k)),this.eb&&this.Ga&&(this.Ga.width=Math.round(b),this.Ga.height=Math.round(a)),this.Ga&&this.Xk(this.Ga,this.Ea),this.Nr(),this.Qp&&!this.Mc&&window.scrollTo(0,
0)}};d.prototype.Nr=function(){if(this.hu&&0!==this.vn){var b="portrait";2===this.vn&&(b="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(b).catch(function(){}):screen.lockOrientation?screen.lockOrientation(b):screen.webkitLockOrientation?screen.webkitLockOrientation(b):screen.mozLockOrientation?screen.mozLockOrientation(b):screen.msLockOrientation&&screen.msLockOrientation(b)}catch(a){console&&console.warn&&console.warn("Failed to lock orientation: ",a)}}};d.prototype.Vw=
function(){this.n.pu();this.Wm=!0;var b,a,k;b=0;for(a=this.u.length;b<a;b++)k=this.u[b],k.Ak&&k.Ak()};d.prototype.Ww=function(){this.Wm=!1;var b,a,k;b=0;for(a=this.u.length;b<a;b++)k=this.u[b],k.Ck&&k.Ck()};d.prototype.Yq=function(){if(!this.ob){var b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.hk)&&!this.Mc?jQuery(this.canvas).offset():jQuery(this.canvas).position();b.position="absolute";jQuery(this.Pb).css(b)}};var g=window.cancelAnimationFrame||
window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;d.prototype.setSuspended=function(b){var a;if(b&&!this.$h)for(ha("[Construct 2] Suspending"),this.$h=!0,-1!==this.Dn&&g&&g(this.Dn),-1!==this.Yn&&clearTimeout(this.Yn),b=0,a=this.Qi.length;b<a;b++)this.Qi[b](!0);else if(!b&&this.$h){ha("[Construct 2] Resuming");this.$h=!1;this.mk=bb();this.Qf=bb();b=this.oi=this.Vj=0;for(a=this.Qi.length;b<a;b++)this.Qi[b](!1);this.Db(!1)}};
d.prototype.Nl=function(b){this.Qi.push(b)};d.prototype.Je=function(b){return this.xk[b]};d.prototype.hi=function(b){b&&b.project||ia("Project model unavailable");b=b.project;this.name=b[0];this.np=b[1];this.mc=b[12];this.sb=b[10];this.rb=b[11];this.Tq=this.sb/2;this.Uq=this.rb/2;this.ob&&!this.td&&(4<=b[12]||0===b[12])&&(ha("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.mc=3);this.ko=b[18];this.ff=b[19];if(0===this.ff){var a=
new Image;a.crossOrigin="anonymous";this.pr(a,"loading-logo.png");this.ef={uk:a}}else if(4===this.ff){a=new Image;a.src="";var k=new Image;k.src="";var f=new Image;f.src="";var e=new Image;e.src="";var g=new Image;g.src="";var m=new Image;m.src="";var c=new Image;c.src="";var r=new Image;r.src="";var d=new Image;d.src="";var t=new Image;t.src="";var h=new Image;h.src="";var y=new Image;y.src="";this.ef={uk:[a,k,f,e],lx:[g,m,c,r],gy:[d,t,h,y]}}this.ti=b[21];this.xk=uc();this.$d=new K(this);a=0;for(k=
b[2].length;a<k;a++)c=b[2][a],f=this.Je(c[0]),sb(c,f.prototype),r=new f(this),r.bl=c[1],r.df=c[2],r.Az=c[5],r.wq=c[9],r.K&&r.K(),this.plugins.push(r);this.xk=uc();a=0;for(k=b[3].length;a<k;a++){c=b[3][a];g=this.Je(c[1]);r=null;f=0;for(e=this.plugins.length;f<e;f++)if(this.plugins[f]instanceof g){r=this.plugins[f];break}d=new r.la(r);d.name=c[0];d.H=c[2];d.Pm=c[3].slice(0);d.fy=c[3].length;d.iu=c[4];d.Iv=c[5];d.ea=c[11];d.H?(d.Wf=[],d.oe=this.Ih++,d.Ha=null):(d.Wf=null,d.oe=-1,d.Ha=[]);d.Pj=null;d.tg=
null;d.gp=null;d.Mb=!1;d.wc=null;c[6]?(d.il=c[6][0],d.Wn=c[6][1],d.ih=c[6][2]):(d.il=null,d.Wn=0,d.ih=0);c[7]?d.uc=c[7]:d.uc=null;d.index=a;d.c=[];d.Gj=[];d.De=[new tb(d)];d.Kd=0;d.Xc=null;d.uu=0;d.eh=!0;d.pl=ub;d.Pv=xb;d.Vv=yb;d.P=zb;d.Bi=Ab;d.kf=Bb;d.yd=Cb;d.Xj=Db;d.xm=Eb;d.Bm=Fb;d.Sc=Gb;d.Cm=Hb;d.zh=new kb(this.sb,this.rb);d.nj=!0;d.oj=!1;d.L={};d.toString=Ib;d.La=[];f=0;for(e=c[8].length;f<e;f++){t=c[8][f];h=this.Je(t[1]);y=null;g=0;for(m=this.La.length;g<m;g++)if(this.La[g]instanceof h){y=this.La[g];
break}y||(y=new h(this),y.xq=[],y.mn=new da,y.K&&y.K(),this.La.push(y));-1===y.xq.indexOf(d)&&y.xq.push(d);g=new y.la(y,d);g.name=t[0];g.ea=t[2];g.K();d.La.push(g)}d.global=c[9];d.Um=c[10];d.O=[];f=0;for(e=c[12].length;f<e;f++)d.O.push({id:c[12][f][0],name:c[12][f][1],ib:-1,zd:!1,Sa:!0,index:f});d.Pz=c[13];this.ko&&!d.H&&!d.Um&&r.df||d.K();d.name&&(this.types[d.name]=d);this.u.push(d);r.bl&&(f=new r.ba(d),f.uid=this.ti++,f.br=this.zq++,f.Jf=0,f.Ph=Jb,f.toString=Kb,f.m=c[14],f.K(),d.c.push(f),this.we[f.uid.toString()]=
f)}a=0;for(k=b[4].length;a<k;a++)for(g=b[4][a],m=this.u[g[0]],f=1,e=g.length;f<e;f++)c=this.u[g[f]],c.Ha.push(m),m.Wf.push(c);a=0;for(k=b[28].length;a<k;a++){g=b[28][a];m=[];f=0;for(e=g.length;f<e;f++)m.push(this.u[g[f]]);f=0;for(e=m.length;f<e;f++)m[f].Mb=!0,m[f].wc=m}if(0<this.Ih)for(a=0,k=this.u.length;a<k;a++)if(c=this.u[a],!c.H&&c.Ha.length){c.Pj=Array(this.Ih);c.tg=Array(this.Ih);c.gp=Array(this.Ih);d=[];f=y=h=t=0;for(e=c.Ha.length;f<e;f++)for(r=c.Ha[f],c.Pj[r.oe]=t,t+=r.fy,c.tg[r.oe]=h,h+=
r.iu,c.gp[r.oe]=y,y+=r.Iv,g=0,m=r.O.length;g<m;g++)d.push(za({},r.O[g]));c.O=d.concat(c.O);f=0;for(e=c.O.length;f<e;f++)c.O[f].index=f}a=0;for(k=b[5].length;a<k;a++)c=b[5][a],f=new Lb(this,c),this.an[f.name]=f,this.vd.push(f);a=0;for(k=b[6].length;a<k;a++)c=b[6][a],f=new Mb(this,c),this.nm[f.name]=f,this.ne.push(f);a=0;for(k=this.ne.length;a<k;a++)this.ne[a].Xa();a=0;for(k=this.ne.length;a<k;a++)this.ne[a].fo();a=0;for(k=this.nl.length;a<k;a++)this.nl[a].Xa();z(this.nl);this.gu=b[7];this.Rj=b[8];
this.xd=b[9];this.yh=1;this.Vu=b[13];this.Ea=b[14];this.Wo=b[15];this.dy=b[17];this.vn=b[20];this.hu=0<this.vn;this.gx=b[22];this.Jc=this.Zr=b[23];this.Ou=b[24];this.mx=b[25];this.Da=b[27]&&!this.cf;this.cl=Date.now();z(this.xk);this.vw()};var b=!1,f=0,m=[];d.prototype.tx=function(b,a){function k(){f--;e.rq()}var e=this;b.addEventListener("load",k);b.addEventListener("error",k);m.push([b,a]);this.rq()};d.prototype.rq=function(){for(var b;m.length&&100>f;)f++,b=m.shift(),this.pr(b[0],b[1])};d.prototype.no=
function(a,k){a.cocoonLazyLoad=!0;a.onerror=function(k){b=a.Ro=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",k)};this.td?a.src=k:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(k,function(b){a.src=b},function(f){b=a.Ro=!0;console&&console.error&&console.error("Error extracting image '"+k+"' from expansion file: ",f)}):(a.crossOrigin="anonymous",this.tx(a,k)));this.rh.push(a)};d.prototype.Gv=function(b){var a,k;a=0;for(k=this.rh.length;a<k;a++)if(this.rh[a].qu===
b)return this.rh[a];return null};var t=0,w=!1;d.prototype.mw=function(){this.lg&&(t=this.lg.Lx(this.gu))};d.prototype.Mo=function(){var b=t,a=0,k=0,f=!0,e,g,k=0;for(e=this.rh.length;k<e;k++){g=this.rh[k];var c=g.Yo;if(!c||0>=c)c=5E4;b+=c;g.src&&(g.complete||g.loaded)&&!g.Ro?a+=c:f=!1}f&&this.mx&&this.lg&&(w||(this.lg.Sx(),w=!0),k=this.lg.Wv(),a+=k,k<t&&(f=!1));this.F=0==b?1:a/b;return f};var E=!1;d.prototype.go=function(){if(this.Ga||this.n){var a=this.Ga||this.wn;this.Pb&&this.Yq();var k=window.innerWidth,
f=window.innerHeight;this.Kg===k&&this.Jg===f||this.setSize(k,f);this.F=0;this.Vp=-1;var g=this;if(this.Mo()&&(4!==this.ff||E))this.ow();else{f=Date.now()-this.cl;if(a){var c=this.width,m=this.height,k=this.devicePixelRatio;if(3>this.ff&&(this.ad||500<=f&&this.Vp!=this.F)){a.clearRect(0,0,c,m);var f=c/2,m=m/2,c=0===this.ff&&this.ef.uk.complete,d=40*k,r=0,t=80*k,h;if(c){var y=this.ef.uk,t=y.width*k;h=y.height*k;d=t/2;r=h/2;a.drawImage(y,sa(f-d),sa(m-r),t,h)}1>=this.ff?(f=sa(f-d)+.5,m=sa(m+(r+(c?12*
k:0)))+.5,a.fillStyle=b?"red":"DodgerBlue",a.fillRect(f,m,Math.floor(t*this.F),6*k),a.strokeStyle="black",a.strokeRect(f,m,t,6*k),a.strokeStyle="white",a.strokeRect(f-1*k,m-1*k,t+2*k,8*k)):2===this.ff&&(a.font=this.td?"12pt ArialMT":"12pt Arial",a.fillStyle=b?"#f00":"#999",a.Oz="middle",k=Math.round(100*this.F)+"%",c=a.measureText?a.measureText(k):null,a.fillText(k,f-(c?c.width:0)/2,m));this.Vp=this.F}else if(4===this.ff){this.Tu(a);e?e(function(){g.go()}):setTimeout(function(){g.go()},16);return}}setTimeout(function(){g.go()},
this.ad?10:100)}}};var H=-1,k="undefined"===typeof cr_is_preview?200:0,r=!0,y=!1,A=0,U=0,P="undefined"===typeof cr_is_preview?3E3:0,B=null,v=null,C=0;d.prototype.Tu=function(a){if(!E){for(var f=Math.ceil(this.width),e=Math.ceil(this.height),g=this.ef.uk,c=this.ef.lx,m=this.ef.gy,d=0;4>d;++d)if(!g[d].complete||!c[d].complete||!m[d].complete)return;0===C&&(H=Date.now());var d=Date.now(),t=!1,l=a,p,w;r||y?(a.clearRect(0,0,f,e),B&&B.width===f&&B.height===e||(B=document.createElement("canvas"),B.width=
f,B.height=e,v=B.getContext("2d")),l=v,t=!0,r&&1===C&&(H=Date.now())):a.globalAlpha=1;l.fillStyle="#333333";l.fillRect(0,0,f,e);256<this.Eh?(p=Ja(.22*e,105,.6*f),w=.25*p,l.drawImage(h(c,p),.5*f-p/2,.2*e-w/2,p,w),w=p=Math.min(.395*e,.95*f),l.drawImage(h(g,p),.5*f-p/2,.485*e-w/2,p,w),p=Ja(.22*e,105,.6*f),w=.25*p,l.drawImage(h(m,p),.5*f-p/2,.868*e-w/2,p,w),l.fillStyle="#3C3C3C",p=f,w=Math.max(.005*e,2),l.fillRect(0,.8*e-w/2,p,w),l.fillStyle=b?"red":"#E0FF65",p=f*this.F,l.fillRect(.5*f-p/2,.8*e-w/2,p,
w)):(w=p=.55*e,l.drawImage(h(g,p),.5*f-p/2,.45*e-w/2,p,w),l.fillStyle="#3C3C3C",p=f,w=Math.max(.005*e,2),l.fillRect(0,.85*e-w/2,p,w),l.fillStyle=b?"red":"#E0FF65",p=f*this.F,l.fillRect(.5*f-p/2,.85*e-w/2,p,w));t&&(r?a.globalAlpha=0===C?0:Math.min((d-H)/300,1):y&&(a.globalAlpha=Math.max(1-(d-U)/300,0)),a.drawImage(B,0,0,f,e));r&&300<=d-H&&2<=C&&(r=!1,A=d);!r&&d-A>=P&&!y&&1<=this.F&&(y=!0,U=d);if(y&&d-U>=300+k||"undefined"!==typeof cr_is_preview&&1<=this.F&&500>Date.now()-H)E=!0,y=r=!1,this.ef=v=B=
null;++C}};d.prototype.ow=function(){this.Pb&&(this.canvas.parentNode.removeChild(this.Pb),this.Pb=this.wn=null);this.cl=Date.now();this.Qf=bb();var b,a,k;if(this.ko)for(b=0,a=this.u.length;b<a;b++)k=this.u[b],k.H||k.Um||!k.qa.df||k.K();else this.Ig=!1;b=0;for(a=this.vd.length;b<a;b++)this.vd[b].ru();2<=this.mc&&(b=this.sb/this.rb,a=this.width/this.height,this.yh=2!==this.mc&&a>b||2===this.mc&&a<b?this.height/this.rb:this.width/this.sb);this.np?this.an[this.np].Tn():this.vd[0].Tn();this.ko||(this.Sf=
1,this.trigger(K.prototype.e.Al,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();b=0;for(a=this.u.length;b<a;b++)k=this.u[b],k.Gq&&k.Gq();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Db(!1);this.eb&&AppMobi.webview.execute("onGameReady();")};d.prototype.Db=function(b,a,k){if(this.ua){var f=bb();if(k||!this.$h||b){b||(e?this.Dn=e(this.Ir):this.Yn=setTimeout(this.Ir,
this.Ag?1:16));a=a||f;var g=this.mc;((k=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Mc)||this.hk)&&0<this.vg&&(g=this.vg);if(0<g){var g=window.innerWidth,c=window.innerHeight;this.Kg===g&&this.Jg===c||this.setSize(g,c)}this.ob||(k?this.Tj||(this.Tj=!0):this.Tj?(this.Tj=!1,0===this.mc&&this.setSize(Math.round(this.Fq/this.devicePixelRatio),Math.round(this.Eq/this.devicePixelRatio),!0)):(this.Fq=this.width,this.Eq=this.height));this.Ig&&
(k=this.Mo(),this.Sf=this.F,k&&(this.Ig=!1,this.F=1,this.trigger(K.prototype.e.Al,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.Pw(a);!this.ra&&!this.ad||this.Wm||this.Pi||b||(this.ra=!1,this.n?this.lc():this.Ld(),this.Mi&&(this.canvas&&this.canvas.toDataURL&&(this.Cr=this.canvas.toDataURL(this.Mi[0],this.Mi[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Cr),this.trigger(K.prototype.e.Ts,null)),this.Mi=null));this.zz||(this.jh++,this.Ef++,this.Vj++);this.oi+=bb()-f}}};d.prototype.Pw=
function(b){var a,k,f,e,g,c,m,d;1E3<=b-this.Qf&&(this.Qf+=1E3,1E3<=b-this.Qf&&(this.Qf=b),this.um=this.Vj,this.Vj=0,this.am=this.oi,this.oi=0);a=0;0!==this.mk&&(a=b-this.mk,0>a&&(a=0),this.yf=a/=1E3,.5<this.yf?this.yf=0:this.yf>1/this.vq&&(this.yf=1/this.vq));this.mk=b;this.me=this.yf*this.mh;this.yb.add(this.me);this.Ge.add(a);b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.hk)&&!this.Mc;2<=this.mc||b&&0<this.vg?(a=this.sb/this.rb,
k=this.width/this.height,f=this.mc,b&&0<this.vg&&(f=this.vg),this.yh=2!==f&&k>a||2===f&&k<a?this.height/this.rb:this.width/this.sb,this.ua&&(this.ua.ir(this.ua.scrollX),this.ua.jr(this.ua.scrollY))):this.yh=this.Mf?this.devicePixelRatio:1;this.Tb();this.Nc++;this.$d.Cx();this.Nc--;this.Tb();this.Nc++;k=this.Dq.pf();b=0;for(a=k.length;b<a;b++)k[b].Iz();b=0;for(a=this.u.length;b<a;b++)if(c=this.u[b],!c.H&&(c.La.length||c.Ha.length))for(k=0,f=c.c.length;k<f;k++)for(m=c.c[k],e=0,g=m.X.length;e<g;e++)m.X[e].Db();
b=0;for(a=this.u.length;b<a;b++)if(c=this.u[b],!c.H&&(c.La.length||c.Ha.length))for(k=0,f=c.c.length;k<f;k++)for(m=c.c[k],e=0,g=m.X.length;e<g;e++)d=m.X[e],d.kx&&d.kx();k=this.pn.pf();b=0;for(a=k.length;b<a;b++)k[b].Db();this.Nc--;this.pw();for(b=0;this.uf&&10>b++;)this.ep(this.uf);b=0;for(a=this.ne.length;b<a;b++)this.ne[b].Km=!1;this.ua.Cf&&this.ua.Cf.hb();z(this.Xg);this.Nc++;b=0;for(a=this.u.length;b<a;b++)if(c=this.u[b],!c.H&&(c.La.length||c.Ha.length))for(k=0,f=c.c.length;k<f;k++)for(m=c.c[k],
e=0,g=m.X.length;e<g;e++)d=m.X[e],d.Xn&&d.Xn();k=this.qn.pf();b=0;for(a=k.length;b<a;b++)k[b].Xn();this.Nc--};d.prototype.ep=function(b){var a=this.ua;this.ua.Tx();var k,f,e;if(this.n)for(k=0,f=this.u.length;k<f;k++)e=this.u[k],e.H||!e.ol||e.global&&0!==e.c.length||-1!==b.Th.indexOf(e)||e.ol();a==b&&z(this.$d.tc);z(this.Xg);this.gr(!0);b.Tn();this.gr(!1);this.ra=!0;this.Tb()};d.prototype.gr=function(b){var a,k,f,e,g,c,m,d,r;a=0;for(k=this.La.length;a<k;a++)f=this.La[a],b?f.vi&&f.vi():f.wi&&f.wi();
a=0;for(k=this.u.length;a<k;a++)if(f=this.u[a],f.global||f.qa.bl)for(e=0,g=f.c.length;e<g;e++)if(c=f.c[e],b?c.vi&&c.vi():c.wi&&c.wi(),c.X)for(m=0,d=c.X.length;m<d;m++)r=c.X[m],b?r.vi&&r.vi():r.wi&&r.wi()};d.prototype.kl=function(b){this.pn.add(b)};d.prototype.Xx=function(b){this.qn.add(b)};d.prototype.wg=function(b){return b&&-1!==b.si?this.yf*b.si:this.me};d.prototype.Ld=function(){this.ua.Ld(this.Ga);this.eb&&this.Ga.present()};d.prototype.lc=function(){this.Da&&(this.zf=1,this.ua.xf(this.n));this.ua.lc(this.n);
this.n.ox()};d.prototype.Ho=function(b){b&&this.im.push(b)};d.prototype.Zj=function(b){b=b.toString();return this.we.hasOwnProperty(b)?this.we[b]:null};var Q=[];d.prototype.Ie=function(b){var a,k;a=b.type.name;var f=null;if(this.wf.hasOwnProperty(a)){if(f=this.wf[a],f.contains(b))return}else f=Q.length?Q.pop():new da,this.wf[a]=f;f.add(b);this.$e=!0;if(b.Mb)for(a=0,k=b.siblings.length;a<k;a++)this.Ie(b.siblings[a]);this.Tm&&f.ph.push(b);this.Sm||(this.Nc++,this.trigger(Object.getPrototypeOf(b.type.qa).e.Vs,
b),this.Nc--)};d.prototype.Tb=function(){if(this.$e){var b,a,k,f,e,g;this.Tm=!0;k=0;for(e=this.rd.length;k<e;++k)for(b=this.rd[k],a=b.type,a.c.push(b),f=0,g=a.Ha.length;f<g;++f)a.Ha[f].c.push(b),a.Ha[f].eh=!0;z(this.rd);this.Ks();ab(this.wf);this.$e=this.Tm=!1}};d.prototype.Ks=function(){for(var b in this.wf)this.wf.hasOwnProperty(b)&&this.hs(this.wf[b])};d.prototype.hs=function(b){var a=b.pf(),k=a[0].type,f,e,g,c,m,d;cb(k.c,b);k.eh=!0;0===k.c.length&&(k.oj=!1);f=0;for(e=k.Ha.length;f<e;++f)d=k.Ha[f],
cb(d.c,b),d.eh=!0;f=0;for(e=this.$d.tc.length;f<e;++f)if(m=this.$d.tc[f],m.gc.hasOwnProperty(k.index)&&cb(m.gc[k.index].qe,b),!k.H)for(g=0,c=k.Ha.length;g<c;++g)d=k.Ha[g],m.gc.hasOwnProperty(d.index)&&cb(m.gc[d.index].qe,b);if(m=a[0].k){if(m.Qc)for(g=m.c,f=0,e=g.length;f<e;++f)c=g[f],b.contains(c)&&(c.Fa(),m.Qb.update(c,c.oc,null),c.oc.set(0,0,-1,-1));cb(m.c,b);m.Ii(0)}for(f=0;f<a.length;++f)this.gs(a[f],k);b.clear();Q.push(b);this.ra=!0};d.prototype.gs=function(b,a){var k,f,e;k=0;for(f=this.im.length;k<
f;++k)this.im[k](b);b.Uc&&a.zh.update(b,b.Uc,null);(k=b.k)&&k.Yg(b,!0);if(b.X)for(k=0,f=b.X.length;k<f;++k)e=b.X[k],e.Sg&&e.Sg(),e.behavior.mn.remove(b);this.Dq.remove(b);this.pn.remove(b);this.qn.remove(b);b.Sg&&b.Sg();this.we.hasOwnProperty(b.uid.toString())&&delete this.we[b.uid.toString()];this.yk--;100>a.Gj.length&&a.Gj.push(b)};d.prototype.cm=function(b,a,k,f){if(b.H){var e=sa(Math.random()*b.Wf.length);return this.cm(b.Wf[e],a,k,f)}return b.Xc?this.Ve(b.Xc,a,!1,k,f,!1):null};var Z=[];d.prototype.Ve=
function(b,a,k,f,e,g){var c,m,d,r;if(!b)return null;var t=this.u[b[1]],h=t.qa.df;if(this.Ig&&h&&!t.Um||h&&!this.n&&11===b[0][11])return null;var y=a;h||(a=null);var l;t.Gj.length?(l=t.Gj.pop(),l.Ec=!0,t.qa.ba.call(l,t)):(l=new t.qa.ba(t),l.Ec=!1);!k||g||this.we.hasOwnProperty(b[2].toString())?l.uid=this.ti++:l.uid=b[2];this.we[l.uid.toString()]=l;l.br=this.zq++;l.Jf=t.c.length;c=0;for(m=this.rd.length;c<m;++c)this.rd[c].type===t&&l.Jf++;l.Ph=Jb;l.toString=Kb;d=b[3];if(l.Ec)ab(l.L);else{l.L={};if("undefined"!==
typeof cr_is_preview)for(l.Fp=[],l.Fp.length=d.length,c=0,m=d.length;c<m;c++)l.Fp[c]=d[c][1];l.nb=[];l.nb.length=d.length}c=0;for(m=d.length;c<m;c++)l.nb[c]=d[c][0];if(h){var p=b[0];l.x=ja(f)?p[0]:f;l.y=ja(e)?p[1]:e;l.z=p[2];l.width=p[3];l.height=p[4];l.depth=p[5];l.j=p[6];l.opacity=p[7];l.ac=p[8];l.cc=p[9];l.Ub=p[10];c=p[11];!this.n&&t.O.length&&(l.Ub=c);l.Ah=mb(l.Ub);this.B&&nb(l,l.Ub,this.B);if(l.Ec){c=0;for(m=p[12].length;c<m;c++)for(d=0,r=p[12][c].length;d<r;d++)l.Na[c][d]=p[12][c][d];l.ab.set(0,
0,0,0);l.Uc.set(0,0,-1,-1);l.oc.set(0,0,-1,-1);l.vc.Ji(l.ab);z(l.Sl)}else{l.Na=p[12].slice(0);c=0;for(m=l.Na.length;c<m;c++)l.Na[c]=p[12][c].slice(0);l.ta=[];l.Le=[];l.Le.length=t.O.length;l.ab=new xa(0,0,0,0);l.Uc=new xa(0,0,-1,-1);l.oc=new xa(0,0,-1,-1);l.vc=new ya;l.Sl=[];l.Ja=Rb;l.rz=Sb;l.Vb=Tb;l.Fa=Ub;l.cy=Vb;l.Vr=Wb;l.Pd=Xb}l.kh=!1;l.$x=0;l.Zx=0;l.Yx=null;14===p.length&&(l.kh=!0,l.$x=p[13][0],l.Zx=p[13][1],l.Yx=p[13][2]);c=0;for(m=t.O.length;c<m;c++)l.Le[c]=!0;l.Be=!0;l.Ed=Yb;l.Ed();l.Wr=!!l.ta.length;
l.Rl=!0;l.Wl=!0;t.nj=!0;l.visible=!0;l.si=-1;l.k=a;l.Gd=a.c.length;l.zf=0;"undefined"===typeof l.wa&&(l.wa=null);this.ra=l.Jd=!0}var w;z(Z);c=0;for(m=t.Ha.length;c<m;c++)Z.push.apply(Z,t.Ha[c].La);Z.push.apply(Z,t.La);if(l.Ec)for(c=0,m=Z.length;c<m;c++){var q=Z[c];w=l.X[c];w.Ec=!0;q.behavior.ba.call(w,q,l);p=b[4][c];d=0;for(r=p.length;d<r;d++)w.m[d]=p[d];w.K();q.behavior.mn.add(l)}else for(l.X=[],c=0,m=Z.length;c<m;c++)q=Z[c],w=new q.behavior.ba(q,l),w.Ec=!1,w.m=b[4][c].slice(0),w.K(),l.X.push(w),
q.behavior.mn.add(l);p=b[5];if(l.Ec)for(c=0,m=p.length;c<m;c++)l.m[c]=p[c];else l.m=p.slice(0);this.rd.push(l);this.$e=!0;a&&(a.xh(l,!0),1!==a.ed||1!==a.fd)&&(t.oj=!0);this.yk++;if(t.Mb){if(l.Mb=!0,l.Ec?z(l.siblings):l.siblings=[],!k&&!g){c=0;for(m=t.wc.length;c<m;c++)if(t.wc[c]!==t){if(!t.wc[c].Xc)return null;l.siblings.push(this.Ve(t.wc[c].Xc,y,!1,h?l.x:f,h?l.y:e,!0))}c=0;for(m=l.siblings.length;c<m;c++)for(l.siblings[c].siblings.push(l),d=0;d<m;d++)c!==d&&l.siblings[c].siblings.push(l.siblings[d])}}else l.Mb=
!1,l.siblings=null;l.K();c=0;for(m=l.X.length;c<m;c++)l.X[c].jx&&l.X[c].jx();return l};d.prototype.Dm=function(b){var a,k;a=0;for(k=this.ua.V.length;a<k;a++){var f=this.ua.V[a];if(pb(f.name,b))return f}return null};d.prototype.Mh=function(b){b=sa(b);0>b&&(b=0);b>=this.ua.V.length&&(b=this.ua.V.length-1);return this.ua.V[b]};d.prototype.Zl=function(b){var a,k;a=0;for(k=b.length;a<k;a++)b[a].P().aa=!0};d.prototype.Bi=function(b){var a,k;a=0;for(k=b.length;a<k;a++)b[a].Bi()};d.prototype.kf=function(b){var a,
k;a=0;for(k=b.length;a<k;a++)b[a].kf()};d.prototype.yd=function(b){var a,k;a=0;for(k=b.length;a<k;a++)b[a].yd()};d.prototype.Sr=function(b){if(b.nj){var a,k,f=b.c;a=0;for(k=f.length;a<k;++a)f[a].Vr();f=this.rd;a=0;for(k=f.length;a<k;++a)f[a].type===b&&f[a].Vr();b.nj=!1}};d.prototype.Nv=function(b,a,k,f){var e,g,c=b?1!==b.ed||1!==b.fd:!1;if(a.H)for(b=0,e=a.Wf.length;b<e;++b)g=a.Wf[b],c||g.oj?Ea(f,g.c):(this.Sr(g),g.zh.Rk(k,f));else c||a.oj?Ea(f,a.c):(this.Sr(a),a.zh.Rk(k,f))};d.prototype.gl=function(b,
a,k){var f=b.P(),e,g,c,m,d=this.Va().Ua.cd,r,t,l;if(f.aa)for(f.aa=!1,z(f.c),e=0,m=b.c.length;e<m;e++)c=b.c[e],c.Fa(),r=c.k.Ib(a,k,!0),t=c.k.Ib(a,k,!1),c.Vb(r,t)?f.c.push(c):d&&f.fa.push(c);else{g=0;l=d?f.fa:f.c;e=0;for(m=l.length;e<m;e++)c=l[e],c.Fa(),r=c.k.Ib(a,k,!0),t=c.k.Ib(a,k,!1),c.Vb(r,t)&&(d?f.c.push(c):(f.c[g]=f.c[e],g++));l.length=g}b.Sc();return f.Jm()};d.prototype.Wx=function(b,a){if(!(b&&a&&b!==a&&b.Jd&&a.Jd))return!1;b.Fa();a.Fa();var k=b.k,f=a.k,e,c,g,m,d,r,t,l;if(k===f||k.ed===f.ed&&
f.fd===f.fd&&k.scale===f.scale&&k.j===f.j&&k.Hd===f.Hd){if(!b.ab.ww(a.ab)||!b.vc.Gp(a.vc)||b.kh&&a.kh)return!1;if(b.kh)return this.Gr(b,a);if(a.kh)return this.Gr(a,b);t=b.wa&&!b.wa.Cg();e=a.wa&&!a.wa.Cg();if(!t&&!e)return!0;t?(b.wa.mg(b.width,b.height,b.j),t=b.wa):(this.Cd.bh(b.vc,b.x,b.y,b.width,b.height),t=this.Cd);e?(a.wa.mg(a.width,a.height,a.j),l=a.wa):(this.Cd.bh(a.vc,a.x,a.y,a.width,a.height),l=this.Cd);return t.Uh(l,a.x-b.x,a.y-b.y)}t=b.wa&&!b.wa.Cg();e=a.wa&&!a.wa.Cg();t?(b.wa.mg(b.width,
b.height,b.j),this.Cd.tr(b.wa)):this.Cd.bh(b.vc,b.x,b.y,b.width,b.height);t=this.Cd;e?(a.wa.mg(a.width,a.height,a.j),this.Vn.tr(a.wa)):this.Vn.bh(a.vc,a.x,a.y,a.width,a.height);l=this.Vn;e=0;for(c=t.Ad;e<c;e++)g=2*e,m=g+1,d=t.ub[g],r=t.ub[m],t.ub[g]=k.ec(d+b.x,r+b.y,!0),t.ub[m]=k.ec(d+b.x,r+b.y,!1);t.Fa();e=0;for(c=l.Ad;e<c;e++)g=2*e,m=g+1,d=l.ub[g],r=l.ub[m],l.ub[g]=f.ec(d+a.x,r+a.y,!0),l.ub[m]=f.ec(d+a.x,r+a.y,!1);l.Fa();return t.Uh(l,0,0)};var F=new ya;new xa(0,0,0,0);var L=[];d.prototype.Gr=function(b,
a){var k,f,e,g,c=a.ab,m=b.x,d=b.y;b.xz(c,L);var r=a.wa&&!a.wa.Cg();k=0;for(f=L.length;k<f;++k)if(e=L[k],g=e.Lz,c.xw(g,m,d)&&(F.Ji(g),F.offset(m,d),F.Gp(a.vc)))if(r)if(a.wa.mg(a.width,a.height,a.j),e.zn){if(e.zn.Uh(a.wa,a.x-(m+g.left),a.y-(d+g.top)))return z(L),!0}else{if(this.Cd.bh(F,0,0,g.right-g.left,g.bottom-g.top),this.Cd.Uh(a.wa,a.x,a.y))return z(L),!0}else if(e.zn){if(this.Cd.bh(a.vc,0,0,a.width,a.height),e.zn.Uh(this.Cd,-(m+g.left),-(d+g.top)))return z(L),!0}else return z(L),!0;z(L);return!1};
d.prototype.Or=function(b,a){if(!a)return!1;var k,f,e,g,c;k=0;for(f=b.La.length;k<f;k++)if(b.La[k].behavior instanceof a)return!0;if(!b.H)for(k=0,f=b.Ha.length;k<f;k++)for(c=b.Ha[k],e=0,g=c.La.length;e<g;e++)if(c.La[e].behavior instanceof a)return!0;return!1};d.prototype.co=function(b){return this.Or(b,mc.Hy)};d.prototype.eo=function(b){return this.Or(b,mc.Jy)};d.prototype.du=function(b,a,k){var f,e,g;f=0;for(e=this.Xg.length;f<e;++f){g=this.Xg[f];if(g[0]===b)g=g[1];else if(g[1]===b)g=g[0];else continue;
if(a.H){if(-1===a.Wf.indexOf(a))continue}else if(g.type!==a)continue;-1===k.indexOf(g)&&k.push(g)}};d.prototype.mu=function(b,a){var k,f,e;k=0;for(f=this.Xg.length;k<f;k++)if(e=this.Xg[k],e[0]===b&&e[1]===a||e[0]===a&&e[1]===b)return!0;return!1};var N=-1;d.prototype.trigger=function(b,a,k){if(!this.ua)return!1;var f=this.ua.Cf;if(!f)return!1;var e=!1,g,c,m;N++;var d=f.gm;c=0;for(m=d.length;c<m;++c)g=this.Lr(b,a,d[c],k),e=e||g;g=this.Lr(b,a,f,k);N--;return e||g};d.prototype.Lr=function(b,a,k,f){var e=
!1,g,c,m,d;if(a)for(m=this.ao(b,a,a.type.name,k,f),e=e||m,d=a.type.Ha,g=0,c=d.length;g<c;++g)m=this.ao(b,a,d[g].name,k,f),e=e||m;else m=this.ao(b,a,"system",k,f),e=e||m;return e};d.prototype.ao=function(b,a,k,f,e){var g,c=!1,m=!1,m="undefined"!==typeof e,d=(m?f.ip:f.Mr)[k];if(!d)return c;var r=null;f=0;for(g=d.length;f<g;++f)if(d[f].method==b){r=d[f].Gh;break}if(!r)return c;var t;m?t=r[e]:t=r;if(!t)return null;f=0;for(g=t.length;f<g;f++)b=t[f][0],e=t[f][1],m=this.Ev(a,k,b,e),c=c||m;return c};d.prototype.Ev=
function(b,a,k,f){var e,g,c=!1;this.bo++;var m=this.Va().Ua;m&&this.Bi(m.nf);var d=1<this.bo;this.Bi(k.nf);d&&this.rx();var r=this.Qk(k);r.Ua=k;b&&(e=this.types[a].P(),e.aa=!1,z(e.c),e.c[0]=b,this.types[a].Sc());b=!0;if(k.parent){a=r.Fr;for(e=k.parent;e;)a.push(e),e=e.parent;a.reverse();e=0;for(g=a.length;e<g;e++)if(!a[e].Ex()){b=!1;break}}b&&(this.Ef++,k.cd?k.Dx(f):k.hb(),c=c||r.Pf);this.Mk();d&&this.ix();this.yd(k.nf);m&&this.yd(m.nf);this.$e&&0===this.Nc&&0===N&&!this.Vm&&this.Tb();this.bo--;return c};
d.prototype.zm=function(){var b=this.Va();return b.Ua.kb[b.jb]};d.prototype.Ov=function(){var b=this.Va();return b.Ua.Rc[b.kc]};d.prototype.rx=function(){this.tk++;this.tk>=this.gn.length&&this.gn.push([])};d.prototype.ix=function(){this.tk--};d.prototype.qp=function(){return this.gn[this.tk]};d.prototype.Qk=function(b){this.Mj++;this.Mj>=this.mm.length&&this.mm.push(new Zb);var a=this.Va();a.reset(b);return a};d.prototype.Mk=function(){this.Mj--};d.prototype.Va=function(){return this.mm[this.Mj]};
d.prototype.cr=function(b){this.qi++;this.qi>=this.pi.length&&this.pi.push(aa({name:b,index:0,Qa:!1}));var a=this.rp();a.name=b;a.index=0;a.Qa=!1;return a};d.prototype.Xq=function(){this.qi--};d.prototype.rp=function(){return this.pi[this.qi]};d.prototype.sp=function(b,a){for(var k,f,e,g,c,m;a;){k=0;for(f=a.jd.length;k<f;k++)if(m=a.jd[k],m instanceof $b&&pb(b,m.name))return m;a=a.parent}k=0;for(f=this.ne.length;k<f;k++)for(c=this.ne[k],e=0,g=c.Xe.length;e<g;e++)if(m=c.Xe[e],m instanceof $b&&pb(b,
m.name))return m;return null};d.prototype.vp=function(b){var a,k;a=0;for(k=this.vd.length;a<k;a++)if(this.vd[a].ea===b)return this.vd[a];return null};d.prototype.$j=function(b){var a,k;a=0;for(k=this.u.length;a<k;a++)if(this.u[a].ea===b)return this.u[a];return null};d.prototype.Rv=function(b){var a,k;a=0;for(k=this.Oe.length;a<k;a++)if(this.Oe[a].ea===b)return this.Oe[a];return null};d.prototype.xu=function(b,a){this.Mi=[b,a];this.ra=!0};d.prototype.pw=function(){var b=this,a=this.Nn,k=this.te,f=
this.pk,e=!1;this.Ar&&(e=!0,a="__c2_continuouspreview",this.Ar=!1);if(a.length){this.Tb();k=this.Ix();if(c()&&!this.ad)q(a,k,function(){ha("Saved state to IndexedDB storage ("+k.length+" bytes)");b.te=k;b.trigger(K.prototype.e.Gl,null);k=b.te="";e&&p()},function(f){try{localStorage.setItem("__c2save_"+a,k),ha("Saved state to WebStorage ("+k.length+" bytes)"),b.te=k,b.trigger(K.prototype.e.Gl,null),k=b.te="",e&&p()}catch(g){ha("Failed to save game state: "+f+"; "+g),b.trigger(K.prototype.e.xo,null)}});
else try{localStorage.setItem("__c2save_"+a,k),ha("Saved state to WebStorage ("+k.length+" bytes)"),b.te=k,this.trigger(K.prototype.e.Gl,null),k=b.te="",e&&p()}catch(g){ha("Error saving to WebStorage: "+g),b.trigger(K.prototype.e.xo,null)}this.pk=this.Nn="";this.qb=null}if(f.length){if(c()&&!this.ad)n(f,function(a){a?(b.qb=a,ha("Loaded state from IndexedDB storage ("+b.qb.length+" bytes)")):(b.qb=localStorage.getItem("__c2save_"+f)||"",ha("Loaded state from WebStorage ("+b.qb.length+" bytes)"));b.Pi=
!1;b.qb||(b.qb=null,b.trigger(K.prototype.e.ij,null))},function(){b.qb=localStorage.getItem("__c2save_"+f)||"";ha("Loaded state from WebStorage ("+b.qb.length+" bytes)");b.Pi=!1;b.qb||(b.qb=null,b.trigger(K.prototype.e.ij,null))});else{try{this.qb=localStorage.getItem("__c2save_"+f)||"",ha("Loaded state from WebStorage ("+this.qb.length+" bytes)")}catch(m){this.qb=null}this.Pi=!1;b.qb||(b.qb=null,b.trigger(K.prototype.e.ij,null))}this.Nn=this.pk=""}null!==this.qb&&(this.Tb(),this.Nw(this.qb)?(this.te=
this.qb,this.trigger(K.prototype.e.et,null),this.te=""):b.trigger(K.prototype.e.ij,null),this.qb=null)};d.prototype.Ix=function(){var b,k,f,e,g,c,m,d={c2save:!0,version:1,rt:{time:this.yb.R,walltime:this.Ge.R,timescale:this.mh,tickcount:this.jh,execcount:this.Ef,next_uid:this.ti,running_layout:this.ua.ea,start_time_offset:Date.now()-this.cl},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};b=0;for(k=this.u.length;b<k;b++)if(g=this.u[b],!g.H&&!this.co(g)){c={instances:[]};$a(g.L)&&(c.ex=
a(g.L));f=0;for(e=g.c.length;f<e;f++)c.instances.push(this.Mn(g.c[f]));d.types[g.ea.toString()]=c}b=0;for(k=this.vd.length;b<k;b++)f=this.vd[b],d.layouts[f.ea.toString()]=f.wb();e=d.events.groups;b=0;for(k=this.Oe.length;b<k;b++)f=this.Oe[b],e[f.ea.toString()]=this.yg[f.Qh].Gf;k=d.events.cnds;for(m in this.Ue)this.Ue.hasOwnProperty(m)&&(b=this.Ue[m],$a(b.L)&&(k[m]={ex:a(b.L)}));k=d.events.acts;for(m in this.Me)this.Me.hasOwnProperty(m)&&(b=this.Me[m],$a(b.L)&&(k[m]={ex:a(b.L)}));k=d.events.vars;for(m in this.qh)this.qh.hasOwnProperty(m)&&
(b=this.qh[m],b.kk||b.parent&&!b.di||(k[m]=b.data));d.system=this.$d.wb();return JSON.stringify(d)};d.prototype.er=function(){var b,a,k,f,e,g;this.we={};b=0;for(a=this.u.length;b<a;b++)if(k=this.u[b],!k.H)for(f=0,e=k.c.length;f<e;f++)g=k.c[f],this.we[g.uid.toString()]=g};d.prototype.Nw=function(b){var a;try{a=JSON.parse(b)}catch(k){return!1}if(!a.c2save||1<a.version)return!1;this.Xh=!0;b=a.rt;this.yb.reset();this.yb.R=b.time;this.Ge.reset();this.Ge.R=b.walltime||0;this.mh=b.timescale;this.jh=b.tickcount;
this.Ef=b.execcount;this.cl=Date.now()-b.start_time_offset;var f=b.running_layout;if(f!==this.ua.ea)if(f=this.vp(f))this.ep(f);else return;var e,g,c,m,d,r,t;r=a.types;for(g in r)if(r.hasOwnProperty(g)&&(m=this.$j(parseInt(g,10)))&&!m.H&&!this.co(m)){r[g].ex?m.L=r[g].ex:ab(m.L);d=m.c;c=r[g].instances;f=0;for(e=qa(d.length,c.length);f<e;f++)this.qk(d[f],c[f]);f=c.length;for(e=d.length;f<e;f++)this.Ie(d[f]);f=d.length;for(e=c.length;f<e;f++){d=null;if(m.qa.df&&(d=this.ua.Yj(c[f].w.l),!d))continue;d=
this.Ve(m.Xc,d,!1,0,0,!0);this.qk(d,c[f])}m.eh=!0}this.Tb();this.er();e=a.layouts;for(g in e)e.hasOwnProperty(g)&&(f=this.vp(parseInt(g,10)))&&f.Nb(e[g]);e=a.events.groups;for(g in e)e.hasOwnProperty(g)&&(f=this.Rv(parseInt(g,10)))&&this.yg[f.Qh]&&this.yg[f.Qh].Gi(e[g]);f=a.events.cnds;for(g in this.Ue)this.Ue.hasOwnProperty(g)&&(f.hasOwnProperty(g)?this.Ue[g].L=f[g].ex:this.Ue[g].L={});f=a.events.acts;for(g in this.Me)this.Me.hasOwnProperty(g)&&(f.hasOwnProperty(g)?this.Me[g].L=f[g].ex:this.Me[g].L=
{});f=a.events.vars;for(g in f)f.hasOwnProperty(g)&&this.qh.hasOwnProperty(g)&&(this.qh[g].data=f[g]);this.ti=b.next_uid;this.Xh=!1;f=0;for(e=this.Sj.length;f<e;++f)d=this.Sj[f],this.trigger(Object.getPrototypeOf(d.type.qa).e.hg,d);z(this.Sj);this.$d.Nb(a.system);f=0;for(e=this.u.length;f<e;f++)if(m=this.u[f],!m.H&&!this.co(m))for(a=0,g=m.c.length;a<g;a++){d=m.c[a];if(m.Mb)for(r=d.Ph(),z(d.siblings),b=0,c=m.wc.length;b<c;b++)t=m.wc[b],m!==t&&d.siblings.push(t.c[r]);d.Ne&&d.Ne();if(d.X)for(b=0,c=d.X.length;b<
c;b++)r=d.X[b],r.Ne&&r.Ne()}return this.ra=!0};d.prototype.Mn=function(b,k){var f,e,g,c,m;c=b.type;g=c.qa;var d={};k?d.c2=!0:d.uid=b.uid;$a(b.L)&&(d.ex=a(b.L));if(b.nb&&b.nb.length)for(d.ivs={},f=0,e=b.nb.length;f<e;f++)d.ivs[b.type.Pm[f].toString()]=b.nb[f];if(g.df){g={x:b.x,y:b.y,w:b.width,h:b.height,l:b.k.ea,zi:b.Pd()};0!==b.j&&(g.a=b.j);1!==b.opacity&&(g.o=b.opacity);.5!==b.ac&&(g.hX=b.ac);.5!==b.cc&&(g.hY=b.cc);0!==b.Ub&&(g.bm=b.Ub);b.visible||(g.v=b.visible);b.Jd||(g.ce=b.Jd);-1!==b.si&&(g.mts=
b.si);if(c.O.length)for(g.fx=[],f=0,e=c.O.length;f<e;f++)m=c.O[f],g.fx.push({name:m.name,active:b.Le[m.index],params:b.Na[m.index]});d.w=g}if(b.X&&b.X.length)for(d.behs={},f=0,e=b.X.length;f<e;f++)c=b.X[f],c.wb&&(d.behs[c.type.ea.toString()]=c.wb());b.wb&&(d.data=b.wb());return d};d.prototype.Tv=function(b,a){var k,f;k=0;for(f=b.Pm.length;k<f;k++)if(b.Pm[k]===a)return k;return-1};d.prototype.Mv=function(b,a){var k,f;k=0;for(f=b.X.length;k<f;k++)if(b.X[k].type.ea===a)return k;return-1};d.prototype.qk=
function(b,a,k){var f,e,g,c,m;m=b.type;var d=m.qa;if(k){if(!a.c2)return}else b.uid=a.uid;a.ex?b.L=a.ex:ab(b.L);if(e=a.ivs)for(f in e)e.hasOwnProperty(f)&&(g=this.Tv(m,parseInt(f,10)),0>g||g>=b.nb.length||(c=e[f],null===c&&(c=NaN),b.nb[g]=c));if(d.df){g=a.w;b.k.ea!==g.l&&(e=b.k,b.k=this.ua.Yj(g.l),b.k?(e.Yg(b,!0),b.k.xh(b,!0),b.Ja(),b.k.Ii(0)):(b.k=e,k||this.Ie(b)));b.x=g.x;b.y=g.y;b.width=g.w;b.height=g.h;b.Gd=g.zi;b.j=g.hasOwnProperty("a")?g.a:0;b.opacity=g.hasOwnProperty("o")?g.o:1;b.ac=g.hasOwnProperty("hX")?
g.hX:.5;b.cc=g.hasOwnProperty("hY")?g.hY:.5;b.visible=g.hasOwnProperty("v")?g.v:!0;b.Jd=g.hasOwnProperty("ce")?g.ce:!0;b.si=g.hasOwnProperty("mts")?g.mts:-1;b.Ub=g.hasOwnProperty("bm")?g.bm:0;b.Ah=mb(b.Ub);this.B&&nb(b,b.Ub,this.B);b.Ja();if(g.hasOwnProperty("fx"))for(k=0,e=g.fx.length;k<e;k++)c=m.Bm(g.fx[k].name),0>c||(b.Le[c]=g.fx[k].active,b.Na[c]=g.fx[k].params);b.Ed()}if(m=a.behs)for(f in m)m.hasOwnProperty(f)&&(k=this.Mv(b,parseInt(f,10)),0>k||b.X[k].Nb(m[f]));a.data&&b.Nb(a.data)};d.prototype.jp=
function(b,a,k){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+b,function(b){b.file(a,k)},k)};d.prototype.lp=function(b,a,k){this.jp(b,function(b){var f=new FileReader;f.onload=function(b){a(b.target.result)};f.onerror=k;f.readAsText(b)},k)};var S=[],T=0;d.prototype.jn=function(){if(S.length&&!(8<=T)){T++;var b=S.shift();this.zu(b.filename,b.Vx,b.Yu)}};d.prototype.kp=function(b,a,k){var f=this;S.push({filename:b,Vx:function(b){T--;f.jn();a(b)},Yu:function(b){T--;f.jn();
k(b)}});this.jn()};d.prototype.zu=function(b,a,k){this.jp(b,function(b){var k=new FileReader;k.onload=function(b){a(b.target.result)};k.readAsArrayBuffer(b)},k)};d.prototype.Fv=function(b,a,k){var f="",e=b.toLowerCase(),g=e.substr(e.length-4),e=e.substr(e.length-5);".mp4"===g?f="video/mp4":".webm"===e?f="video/webm":".m4a"===g?f="audio/mp4":".mp3"===g&&(f="audio/mpeg");this.kp(b,function(b){b=URL.createObjectURL(new Blob([b],{type:f}));a(b)},k)};d.prototype.Hp=function(b){return/^(?:[a-z]+:)?\/\//.test(b)||
"data:"===b.substr(0,5)||"blob:"===b.substr(0,5)};d.prototype.pr=function(b,a){this.bi&&!this.Hp(a)?this.Fv(a,function(a){b.src=a},function(b){alert("Failed to load image: "+b)}):b.src=a};d.prototype.Xk=function(b,a){"undefined"!==typeof b.imageSmoothingEnabled?b.imageSmoothingEnabled=a:(b.webkitImageSmoothingEnabled=a,b.mozImageSmoothingEnabled=a,b.msImageSmoothingEnabled=a)};ac=function(b){return new d(document.getElementById(b))};bc=function(b,a){return new d({dc:!0,width:b,height:a})};window.cr_createRuntime=
ac;window.cr_createDCRuntime=bc;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var b=document.createElement("screencanvas")||document.createElement("canvas");b.Ql=!0;document.body.appendChild(b);b=new d(b);window.c2runtime=b;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return b};window.createEjectaRuntime=function(){var b=new d(document.getElementById("canvas"));
window.c2runtime=b;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return b}})();window.cr_getC2Runtime=function(){var d=document.getElementById("c2canvas");return d?d.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(d,h){var c=window.cr_getC2Runtime();c&&c.xu(d,h)};window.cr_sizeCanvas=function(d,h){if(0!==d&&0!==h){var c=window.cr_getC2Runtime();c&&c.setSize(d,h)}};window.cr_setSuspended=function(d){var h=window.cr_getC2Runtime();h&&h.setSuspended(d)};
(function(){function d(b,a){this.b=b;this.Cf=null;this.scrollX=this.b.sb/2;this.scrollY=this.b.rb/2;this.scale=1;this.j=0;this.ug=!0;this.name=a[0];this.dx=a[1];this.cx=a[2];this.width=a[1];this.height=a[2];this.Pr=a[3];this.xr=a[4];this.ea=a[5];var e=a[6],g,c;this.V=[];this.Th=[];g=0;for(c=e.length;g<c;g++){var d=new cc(this,e[g]);d.Bq=g;this.V.push(d)}e=a[7];this.bf=[];g=0;for(c=e.length;g<c;g++){var d=e[g],l=this.b.u[d[1]];l.Xc||(l.Xc=d);this.bf.push(d);-1===this.Th.indexOf(l)&&this.Th.push(l)}this.O=
[];this.ta=[];this.Be=!0;this.Na=[];g=0;for(c=a[8].length;g<c;g++)this.O.push({id:a[8][g][0],name:a[8][g][1],ib:-1,zd:!1,Sa:!0,index:g}),this.Na.push(a[8][g][2].slice(0));this.Ed();this.Zf=new xa(0,0,1,1);this.En=new xa(0,0,1,1);this.jf={}}function h(b,a){return b.Gd-a.Gd}function c(b,a){this.Ab=b;this.b=b.b;this.c=[];this.scale=1;this.j=0;this.ke=!1;this.Ee=new xa(0,0,0,0);this.Jr=new ya;this.Aa=this.za=this.Ba=this.ya=0;this.eg=!1;this.He=-1;this.$l=0;this.name=a[0];this.index=a[1];this.ea=a[2];
this.visible=a[3];this.nd=a[4];this.Dd=a[5];this.ed=a[6];this.fd=a[7];this.opacity=a[8];this.Uj=a[9];this.Qc=a[10];this.Hd=a[11];this.Ub=a[12];this.Uu=a[13];this.Ah="source-over";this.Xb=this.$b=0;this.Qb=null;this.ue=l();this.Bd=!0;this.Lg=new xa(0,0,-1,-1);this.Jb=new xa(0,0,-1,-1);this.Qc&&(this.Qb=new lb(this.b.sb,this.b.rb));this.Xd=!1;var e=a[14],g,c;this.Dr=[];this.Lc=[];this.Dh=[];g=0;for(c=e.length;g<c;g++){var d=e[g],h=this.b.u[d[1]];h.Xc||(h.Xc=d,h.uu=this.index);this.Lc.push(d);-1===this.Ab.Th.indexOf(h)&&
this.Ab.Th.push(h)}Ca(this.Dr,this.Lc);this.O=[];this.ta=[];this.Be=!0;this.Na=[];g=0;for(c=a[15].length;g<c;g++)this.O.push({id:a[15][g][0],name:a[15][g][1],ib:-1,zd:!1,Sa:!0,index:g}),this.Na.push(a[15][g][2].slice(0));this.Ed();this.Zf=new xa(0,0,1,1);this.En=new xa(0,0,1,1)}function l(){return a.length?a.pop():[]}function q(b){z(b);a.push(b)}d.prototype.Hx=function(b){var a=b.type.ea.toString();this.jf.hasOwnProperty(a)||(this.jf[a]=[]);this.jf[a].push(this.b.Mn(b))};d.prototype.zp=function(){var b=
this.V[0];return!b.Dd&&1===b.opacity&&!b.Uj&&b.visible};d.prototype.Ed=function(){z(this.ta);this.Be=!0;var b,a,e;b=0;for(a=this.O.length;b<a;b++)e=this.O[b],e.Sa&&(this.ta.push(e),e.zd||(this.Be=!1))};d.prototype.Am=function(b){var a,e,g;a=0;for(e=this.O.length;a<e;a++)if(g=this.O[a],g.name===b)return g;return null};var n=[],p=!0;d.prototype.Tn=function(){this.xr&&(this.Cf=this.b.nm[this.xr],this.Cf.fo());this.b.ua=this;this.width=this.dx;this.height=this.cx;this.scrollX=this.b.sb/2;this.scrollY=
this.b.rb/2;var b,a,e,g,c,d,l;b=0;for(e=this.b.u.length;b<e;b++)if(a=this.b.u[b],!a.H)for(c=a.c,a=0,g=c.length;a<g;a++)if(d=c[a],d.k){var k=d.k.Bq;k>=this.V.length&&(k=this.V.length-1);d.k=this.V[k];-1===d.k.c.indexOf(d)&&d.k.c.push(d);d.k.eg=!0}if(!p)for(b=0,e=this.V.length;b<e;++b)this.V[b].c.sort(h);z(n);this.ju();b=0;for(e=this.V.length;b<e;b++)d=this.V[b],d.su(),d.rl();c=!1;if(!this.ug){for(l in this.jf)if(this.jf.hasOwnProperty(l)&&(a=this.b.$j(parseInt(l,10)))&&!a.H&&this.b.eo(a)){g=this.jf[l];
b=0;for(e=g.length;b<e;b++){d=null;if(a.qa.df&&(d=this.Yj(g[b].w.l),!d))continue;d=this.b.Ve(a.Xc,d,!1,0,0,!0);this.b.qk(d,g[b]);c=!0;n.push(d)}z(g)}b=0;for(e=this.V.length;b<e;b++)this.V[b].c.sort(h),this.V[b].eg=!0}c&&(this.b.Tb(),this.b.er());for(b=0;b<n.length;b++)if(d=n[b],d.type.Mb)for(e=d.Ph(),a=0,g=d.type.wc.length;a<g;a++)l=d.type.wc[a],d.type!==l&&(l.c.length>e?d.siblings.push(l.c[e]):l.Xc&&(c=this.b.Ve(l.Xc,d.k,!0,d.x,d.y,!0),this.b.Tb(),l.pl(),d.siblings.push(c),n.push(c)));b=0;for(e=
this.bf.length;b<e;b++)d=this.bf[b],a=this.b.u[d[1]],a.Mb||this.b.Ve(this.bf[b],null,!0);this.b.uf=null;this.b.Tb();if(this.b.Ga&&!this.b.ob)for(b=0,e=this.b.u.length;b<e;b++)l=this.b.u[b],!l.H&&l.c.length&&l.An&&l.An(this.b.Ga);if(this.b.Xh)Ca(this.b.Sj,n);else for(b=0,e=n.length;b<e;b++)d=n[b],this.b.trigger(Object.getPrototypeOf(d.type.qa).e.hg,d);z(n);this.b.Xh||this.b.trigger(K.prototype.e.uo,null);this.ug=!1};d.prototype.ru=function(){var b,a,e,g,c;a=b=0;for(e=this.bf.length;b<e;b++)g=this.bf[b],
c=this.b.u[g[1]],c.global?c.Mb||this.b.Ve(g,null,!0):(this.bf[a]=g,a++);Ba(this.bf,a)};d.prototype.Tx=function(){this.b.Xh||this.b.trigger(K.prototype.e.dt,null);this.b.Sm=!0;z(this.b.$d.tc);var b,a,e,g,c,d;if(!this.ug)for(b=0,a=this.V.length;b<a;b++)for(this.V[b].jo(),c=this.V[b].c,e=0,g=c.length;e<g;e++)d=c[e],d.type.global||this.b.eo(d.type)&&this.Hx(d);b=0;for(a=this.V.length;b<a;b++){c=this.V[b].c;e=0;for(g=c.length;e<g;e++)d=c[e],d.type.global||this.b.Ie(d);this.b.Tb();z(c);this.V[b].eg=!0}b=
0;for(a=this.b.u.length;b<a;b++)if(c=this.b.u[b],!(c.global||c.qa.df||c.qa.bl||c.H)){e=0;for(g=c.c.length;e<g;e++)this.b.Ie(c.c[e]);this.b.Tb()}p=!1;this.b.Sm=!1};new xa(0,0,0,0);d.prototype.Ld=function(b){var a,e=b,g=!1,c=!this.b.Jc;c&&(this.b.ok||(this.b.ok=document.createElement("canvas"),a=this.b.ok,a.width=this.b.J,a.height=this.b.I,this.b.Xp=a.getContext("2d"),g=!0),a=this.b.ok,e=this.b.Xp,a.width!==this.b.J&&(a.width=this.b.J,g=!0),a.height!==this.b.I&&(a.height=this.b.I,g=!0),g&&this.b.Xk(e,
this.b.Ea));e.globalAlpha=1;e.globalCompositeOperation="source-over";this.b.Wo&&!this.zp()&&e.clearRect(0,0,this.b.J,this.b.I);var d,l,g=0;for(d=this.V.length;g<d;g++)l=this.V[g],l.visible&&0<l.opacity&&11!==l.Ub&&(l.c.length||!l.Dd)?l.Ld(e):l.rl();c&&b.drawImage(a,0,0,this.b.width,this.b.height)};d.prototype.xf=function(b){b.or(!0);this.b.fb||(this.b.fb=b.Wc(this.b.J,this.b.I,this.b.Ea));if(this.b.fb.qd!==this.b.J||this.b.fb.pd!==this.b.I)b.deleteTexture(this.b.fb),this.b.fb=b.Wc(this.b.J,this.b.I,
this.b.Ea);b.gd(this.b.fb);this.b.Jc||b.Ae(this.b.J,this.b.I);var a,e;for(a=this.V.length-1;0<=a;--a)e=this.V[a],e.visible&&1===e.opacity&&e.Be&&0===e.Ub&&(e.c.length||!e.Dd)?e.xf(b):e.rl();b.or(!1)};d.prototype.lc=function(b){var a=0<this.ta.length||this.b.oh||!this.b.Jc||this.b.Da;if(a){this.b.fb||(this.b.fb=b.Wc(this.b.J,this.b.I,this.b.Ea));if(this.b.fb.qd!==this.b.J||this.b.fb.pd!==this.b.I)b.deleteTexture(this.b.fb),this.b.fb=b.Wc(this.b.J,this.b.I,this.b.Ea);b.gd(this.b.fb);this.b.Jc||b.Ae(this.b.J,
this.b.I)}else this.b.fb&&(b.gd(null),b.deleteTexture(this.b.fb),this.b.fb=null);this.b.Wo&&!this.zp()&&b.clear(0,0,0,0);var e,g,c;e=0;for(g=this.V.length;e<g;e++)c=this.V[e],c.visible&&0<c.opacity&&(c.c.length||!c.Dd)?c.lc(b):c.rl();a&&(0===this.ta.length||1===this.ta.length&&this.b.Jc?(1===this.ta.length?(a=this.ta[0].index,b.sc(this.ta[0].ib),b.ah(null,1/this.b.J,1/this.b.I,0,0,1,1,this.scale,this.j,0,0,this.b.J/2,this.b.I/2,this.b.yb.R,this.Na[a]),b.Pk(this.ta[0].ib)&&(this.b.ra=!0)):b.sc(0),
this.b.Jc||b.Ae(this.b.width,this.b.height),b.gd(null),b.nr(!1),b.$f(1),b.rc(this.b.fb),b.lr(),b.Yd(),b.Fd(),a=this.b.width/2,e=this.b.height/2,b.Ci(-a,e,a,e,a,-e,-a,-e),b.rc(null),b.nr(!0)):this.Fn(b,null,null,null))};d.prototype.Nh=function(){return 0<this.ta.length||this.b.oh||!this.b.Jc||this.b.Da?this.b.fb:null};d.prototype.wp=function(){var b=this.V[0].$c(),a,e,g;a=1;for(e=this.V.length;a<e;a++)g=this.V[a],(0!==g.ed||0!==g.fd)&&g.$c()<b&&(b=g.$c());return b};d.prototype.ir=function(b){if(!this.Pr){var a=
1/this.wp()*this.b.J/2;b>this.width-a&&(b=this.width-a);b<a&&(b=a)}this.scrollX!==b&&(this.scrollX=b,this.b.ra=!0)};d.prototype.jr=function(b){if(!this.Pr){var a=1/this.wp()*this.b.I/2;b>this.height-a&&(b=this.height-a);b<a&&(b=a)}this.scrollY!==b&&(this.scrollY=b,this.b.ra=!0)};d.prototype.ju=function(){this.ir(this.scrollX);this.jr(this.scrollY)};d.prototype.Fn=function(b,a,e,g){var c=e?e.ta:a?a.ta:this.ta,d=1,l=0,k=0,r=0,h=this.b.J,p=this.b.I;e?(d=e.k.$c(),l=e.k.Lb(),k=e.k.ya,r=e.k.za,h=e.k.Ba,
p=e.k.Aa):a&&(d=a.$c(),l=a.Lb(),k=a.ya,r=a.za,h=a.Ba,p=a.Aa);var q=this.b.vm,n,B,v,C,Q=0,Z=1,F,L,N=this.b.J,S=this.b.I,T=N/2,u=S/2,G=a?a.Zf:this.Zf,I=a?a.En:this.En,R=0,J=0,x=0,O=0,M=N,ta=N,V=S,Da=S,ca=v=0;C=e?e.k.Lb():0;if(e){n=0;for(B=c.length;n<B;n++)v+=b.Xv(c[n].ib),ca+=b.Yv(c[n].ib);O=e.ab;R=a.ec(O.left,O.top,!0,!0);x=a.ec(O.left,O.top,!1,!0);M=a.ec(O.right,O.bottom,!0,!0);V=a.ec(O.right,O.bottom,!1,!0);0!==C&&(n=a.ec(O.right,O.top,!0,!0),B=a.ec(O.right,O.top,!1,!0),J=a.ec(O.left,O.bottom,!0,
!0),O=a.ec(O.left,O.bottom,!1,!0),C=Math.min(R,M,n,J),M=Math.max(R,M,n,J),R=C,C=Math.min(x,V,B,O),V=Math.max(x,V,B,O),x=C);R-=v;x-=ca;M+=v;V+=ca;I.left=R/N;I.top=1-x/S;I.right=M/N;I.bottom=1-V/S;J=R=sa(R);O=x=sa(x);ta=M=va(M);Da=V=va(V);J-=v;O-=ca;ta+=v;Da+=ca;0>R&&(R=0);0>x&&(x=0);M>N&&(M=N);V>S&&(V=S);0>J&&(J=0);0>O&&(O=0);ta>N&&(ta=N);Da>S&&(Da=S);G.left=R/N;G.top=1-x/S;G.right=M/N;G.bottom=1-V/S}else G.left=I.left=0,G.top=I.top=0,G.right=I.right=1,G.bottom=I.bottom=1;ca=e&&(b.Ai(c[0].ib)||0!==
v||0!==ca||1!==e.opacity||e.type.qa.wq)||a&&!e&&1!==a.opacity;b.lr();if(ca){q[Q]||(q[Q]=b.Wc(N,S,this.b.Ea));if(q[Q].qd!==N||q[Q].pd!==S)b.deleteTexture(q[Q]),q[Q]=b.Wc(N,S,this.b.Ea);b.sc(0);b.gd(q[Q]);L=Da-O;b.clearRect(J,S-O-L,ta-J,L);e?e.lc(b):(b.rc(this.b.pb),b.$f(a.opacity),b.Yd(),b.translate(-T,-u),b.Fd(),b.Wd(R,V,M,V,M,x,R,x,G));I.left=I.top=0;I.right=I.bottom=1;e&&(C=G.top,G.top=G.bottom,G.bottom=C);Q=1;Z=0}b.$f(1);v=c.length-1;var ua=b.Cn(c[v].ib)||!a&&!e&&!this.b.Jc;n=C=0;for(B=c.length;n<
B;n++){q[Q]||(q[Q]=b.Wc(N,S,this.b.Ea));if(q[Q].qd!==N||q[Q].pd!==S)b.deleteTexture(q[Q]),q[Q]=b.Wc(N,S,this.b.Ea);b.sc(c[n].ib);C=c[n].index;b.Pk(c[n].ib)&&(this.b.ra=!0);0!=n||ca?(b.ah(g,1/N,1/S,I.left,I.top,I.right,I.bottom,d,l,k,r,(k+h)/2,(r+p)/2,this.b.yb.R,e?e.Na[C]:a?a.Na[C]:this.Na[C]),b.rc(null),n!==v||ua?(b.gd(q[Q]),L=Da-O,F=S-O-L,b.clearRect(J,F,ta-J,L)):(e?b.mf(e.$b,e.Xb):a&&b.mf(a.$b,a.Xb),b.gd(g)),b.rc(q[Z]),b.Yd(),b.translate(-T,-u),b.Fd(),b.Wd(R,V,M,V,M,x,R,x,G),n!==v||ua||b.rc(null)):
(b.gd(q[Q]),L=Da-O,F=S-O-L,b.clearRect(J,F,ta-J,L),e?(e.Ma&&e.Ma.S?(F=e.Ma.S,Z=1/F.width,F=1/F.height):(Z=1/e.width,F=1/e.height),b.ah(g,Z,F,I.left,I.top,I.right,I.bottom,d,l,k,r,(k+h)/2,(r+p)/2,this.b.yb.R,e.Na[C]),e.lc(b)):(b.ah(g,1/N,1/S,0,0,1,1,d,l,k,r,(k+h)/2,(r+p)/2,this.b.yb.R,a?a.Na[C]:this.Na[C]),b.rc(a?this.b.pb:this.b.fb),b.Yd(),b.translate(-T,-u),b.Fd(),b.Wd(R,V,M,V,M,x,R,x,G)),I.left=I.top=0,I.right=I.bottom=1,e&&!ua&&(C=V,V=x,x=C));Q=0===Q?1:0;Z=0===Q?1:0}ua&&(b.sc(0),e?b.mf(e.$b,e.Xb):
a?b.mf(a.$b,a.Xb):this.b.Jc||(b.Ae(this.b.width,this.b.height),T=this.b.width/2,u=this.b.height/2,x=R=0,M=this.b.width,V=this.b.height),b.gd(g),b.rc(q[Z]),b.Yd(),b.translate(-T,-u),b.Fd(),e&&1===c.length&&!ca?b.Wd(R,x,M,x,M,V,R,V,G):b.Wd(R,V,M,V,M,x,R,x,G),b.rc(null))};d.prototype.Yj=function(b){var a,e;a=0;for(e=this.V.length;a<e;a++)if(this.V[a].ea===b)return this.V[a];return null};d.prototype.wb=function(){var b,a,e,g={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.j,w:this.width,h:this.height,
fv:this.ug,persist:this.jf,fx:[],layers:{}};b=0;for(a=this.O.length;b<a;b++)e=this.O[b],g.fx.push({name:e.name,active:e.Sa,params:this.Na[e.index]});b=0;for(a=this.V.length;b<a;b++)e=this.V[b],g.layers[e.ea.toString()]=e.wb();return g};d.prototype.Nb=function(b){var a,e,g,c;this.scrollX=b.sx;this.scrollY=b.sy;this.scale=b.s;this.j=b.a;this.width=b.w;this.height=b.h;this.jf=b.persist;"undefined"!==typeof b.fv&&(this.ug=b.fv);var d=b.fx;a=0;for(e=d.length;a<e;a++)if(g=this.Am(d[a].name))g.Sa=d[a].active,
this.Na[g.index]=d[a].params;this.Ed();a=b.layers;for(c in a)a.hasOwnProperty(c)&&(b=this.Yj(parseInt(c,10)))&&b.Nb(a[c])};Lb=d;c.prototype.Ed=function(){z(this.ta);this.Be=!0;var b,a,e;b=0;for(a=this.O.length;b<a;b++)e=this.O[b],e.Sa&&(this.ta.push(e),e.zd||(this.Be=!1))};c.prototype.Am=function(b){var a,e,g;a=0;for(e=this.O.length;a<e;a++)if(g=this.O[a],g.name===b)return g;return null};c.prototype.su=function(){var b,a,e,g,c,d;a=b=0;for(e=this.Lc.length;b<e;b++){g=this.Lc[b];c=this.b.u[g[1]];d=
this.b.eo(c);c=!0;if(!d||this.Ab.ug){g=this.b.Ve(g,this,!0);if(!g)continue;n.push(g);g.type.global&&(c=!1,this.Dh.push(g.uid))}c&&(this.Lc[a]=this.Lc[b],a++)}this.Lc.length=a;this.b.Tb();!this.b.n&&this.O.length&&(this.Ub=this.Uu);this.Ah=mb(this.Ub);this.b.B&&nb(this,this.Ub,this.b.B);this.Bd=!0};c.prototype.Yg=function(b,a){var e=Ha(this.c,b);0>e||(a&&this.Qc&&b.oc&&b.oc.right>=b.oc.left&&(b.Fa(),this.Qb.update(b,b.oc,null),b.oc.set(0,0,-1,-1)),e===this.c.length-1?this.c.pop():(Aa(this.c,e),this.Ii(e)),
this.Bd=!0)};c.prototype.xh=function(b,a){b.Gd=this.c.length;this.c.push(b);a&&this.Qc&&b.oc&&b.Ja();this.Bd=!0};c.prototype.nx=function(b){this.c.unshift(b);this.Ii(0)};c.prototype.Uw=function(b,a,e){var g=b.Pd();a=a.Pd();Aa(this.c,g);g<a&&a--;e&&a++;a===this.c.length?this.c.push(b):this.c.splice(a,0,b);this.Ii(g<a?g:a)};c.prototype.Ii=function(b){-1===this.He?this.He=b:b<this.He&&(this.He=b);this.Bd=this.eg=!0};c.prototype.jo=function(){if(this.eg){-1===this.He&&(this.He=0);var b,a,e;if(this.Qc)for(b=
this.He,a=this.c.length;b<a;++b)e=this.c[b],e.Gd=b,this.Qb.Rw(e.oc);else for(b=this.He,a=this.c.length;b<a;++b)this.c[b].Gd=b;this.eg=!1;this.He=-1}};c.prototype.$c=function(b){return this.Uv()*(this.b.Jc||b?this.b.yh:1)};c.prototype.Uv=function(){return(this.scale*this.Ab.scale-1)*this.Hd+1};c.prototype.Lb=function(){return this.ke?0:Ma(this.Ab.j+this.j)};var a=[],e=[],g=[];c.prototype.Fm=function(){this.jo();this.Qb.Rk(this.ya,this.za,this.Ba,this.Aa,g);if(!g.length)return l();if(1===g.length){var b=
l();Ca(b,g[0]);z(g);return b}for(var a=!0;1<g.length;){for(var b=g,c=void 0,d=void 0,h=void 0,p=void 0,n=void 0,c=0,d=b.length;c<d-1;c+=2){var h=b[c],p=b[c+1],n=l(),k=h,r=p,y=n,A=0,U=0,P=0,B=k.length,v=r.length,C=void 0,Q=void 0;for(y.length=B+v;A<B&&U<v;++P)C=k[A],Q=r[U],C.Gd<Q.Gd?(y[P]=C,++A):(y[P]=Q,++U);for(;A<B;++A,++P)y[P]=k[A];for(;U<v;++U,++P)y[P]=r[U];a||(q(h),q(p));e.push(n)}1===d%2&&(a?(h=l(),Ca(h,b[d-1]),e.push(h)):e.push(b[d-1]));Ca(b,e);z(e);a=!1}b=g[0];z(g);return b};c.prototype.Ld=
function(b){this.Xd=this.Uj||1!==this.opacity||0!==this.Ub;var a=this.b.canvas,e=b,g=!1;this.Xd&&(this.b.nk||(this.b.nk=document.createElement("canvas"),a=this.b.nk,a.width=this.b.J,a.height=this.b.I,this.b.Wp=a.getContext("2d"),g=!0),a=this.b.nk,e=this.b.Wp,a.width!==this.b.J&&(a.width=this.b.J,g=!0),a.height!==this.b.I&&(a.height=this.b.I,g=!0),g&&this.b.Xk(e,this.b.Ea),this.Dd&&e.clearRect(0,0,this.b.J,this.b.I));e.globalAlpha=1;e.globalCompositeOperation="source-over";this.Dd||(e.fillStyle="rgb("+
this.nd[0]+","+this.nd[1]+","+this.nd[2]+")",e.fillRect(0,0,this.b.J,this.b.I));e.save();this.ke=!0;var g=this.Ib(0,0,!0,!0),c=this.Ib(0,0,!1,!0);this.ke=!1;this.b.xd&&(g=Math.round(g),c=Math.round(c));this.Tk(g,c,e);var d=this.$c();e.scale(d,d);e.translate(-g,-c);this.Qc?(this.Jb.left=this.Qb.ic(this.ya),this.Jb.top=this.Qb.jc(this.za),this.Jb.right=this.Qb.ic(this.Ba),this.Jb.bottom=this.Qb.jc(this.Aa),this.Bd||!this.Jb.Fh(this.Lg)?(q(this.ue),g=this.Fm(),this.Bd=!1,this.Lg.Bh(this.Jb)):g=this.ue):
g=this.c;for(var l,k=null,c=0,d=g.length;c<d;++c)l=g[c],l!==k&&(this.Pu(l,e),k=l);this.Qc&&(this.ue=g);e.restore();this.Xd&&(b.globalCompositeOperation=this.Ah,b.globalAlpha=this.opacity,b.drawImage(a,0,0))};c.prototype.Pu=function(b,a){if(b.visible&&0!==b.width&&0!==b.height){b.Fa();var e=b.ab;e.right<this.ya||e.bottom<this.za||e.left>this.Ba||e.top>this.Aa||(a.globalCompositeOperation=b.Ah,b.Ld(a))}};c.prototype.rl=function(){this.ke=!0;var b=this.Ib(0,0,!0,!0),a=this.Ib(0,0,!1,!0);this.ke=!1;this.b.xd&&
(b=Math.round(b),a=Math.round(a));this.Tk(b,a,null)};c.prototype.Tk=function(b,a,e){var g=this.$c();this.ya=b;this.za=a;this.Ba=b+1/g*this.b.J;this.Aa=a+1/g*this.b.I;this.ya>this.Ba&&(b=this.ya,this.ya=this.Ba,this.Ba=b);this.za>this.Aa&&(b=this.za,this.za=this.Aa,this.Aa=b);b=this.Lb();0!==b&&(e&&(e.translate(this.b.J/2,this.b.I/2),e.rotate(-b),e.translate(this.b.J/-2,this.b.I/-2)),this.Ee.set(this.ya,this.za,this.Ba,this.Aa),this.Ee.offset((this.ya+this.Ba)/-2,(this.za+this.Aa)/-2),this.Jr.ur(this.Ee,
b),this.Jr.Qo(this.Ee),this.Ee.offset((this.ya+this.Ba)/2,(this.za+this.Aa)/2),this.ya=this.Ee.left,this.za=this.Ee.top,this.Ba=this.Ee.right,this.Aa=this.Ee.bottom)};c.prototype.xf=function(b){if(this.Xd=this.Uj){this.b.pb||(this.b.pb=b.Wc(this.b.J,this.b.I,this.b.Ea));if(this.b.pb.qd!==this.b.J||this.b.pb.pd!==this.b.I)b.deleteTexture(this.b.pb),this.b.pb=b.Wc(this.b.J,this.b.I,this.b.Ea);b.gd(this.b.pb)}this.ke=!0;var a=this.Ib(0,0,!0,!0),e=this.Ib(0,0,!1,!0);this.ke=!1;this.b.xd&&(a=Math.round(a),
e=Math.round(e));this.Tk(a,e,null);a=this.$c();b.Yd();b.scale(a,a);b.Jn(-this.Lb());b.translate((this.ya+this.Ba)/-2,(this.za+this.Aa)/-2);b.Fd();this.Qc?(this.Jb.left=this.Qb.ic(this.ya),this.Jb.top=this.Qb.jc(this.za),this.Jb.right=this.Qb.ic(this.Ba),this.Jb.bottom=this.Qb.jc(this.Aa),this.Bd||!this.Jb.Fh(this.Lg)?(q(this.ue),a=this.Fm(),this.Bd=!1,this.Lg.Bh(this.Jb)):a=this.ue):a=this.c;for(var g,c=null,e=a.length-1;0<=e;--e)g=a[e],g!==c&&(this.Ru(a[e],b),c=g);this.Qc&&(this.ue=a);this.Dd||(this.$l=
this.b.zf++,b.Yk(this.$l),b.mr(1,1,1),b.op(),b.yx())};c.prototype.lc=function(b){var a=0,e=0;if(this.Xd=this.Uj||1!==this.opacity||0<this.ta.length||0!==this.Ub){this.b.pb||(this.b.pb=b.Wc(this.b.J,this.b.I,this.b.Ea));if(this.b.pb.qd!==this.b.J||this.b.pb.pd!==this.b.I)b.deleteTexture(this.b.pb),this.b.pb=b.Wc(this.b.J,this.b.I,this.b.Ea);b.gd(this.b.pb);this.Dd&&b.clear(0,0,0,0)}this.Dd||(this.b.Da?(b.Yk(this.$l),b.mr(this.nd[0]/255,this.nd[1]/255,this.nd[2]/255),b.op(),b.Ox()):b.clear(this.nd[0]/
255,this.nd[1]/255,this.nd[2]/255,1));this.ke=!0;var g=this.Ib(0,0,!0,!0),a=this.Ib(0,0,!1,!0);this.ke=!1;this.b.xd&&(g=Math.round(g),a=Math.round(a));this.Tk(g,a,null);g=this.$c();b.Yd();b.scale(g,g);b.Jn(-this.Lb());b.translate((this.ya+this.Ba)/-2,(this.za+this.Aa)/-2);b.Fd();this.Qc?(this.Jb.left=this.Qb.ic(this.ya),this.Jb.top=this.Qb.jc(this.za),this.Jb.right=this.Qb.ic(this.Ba),this.Jb.bottom=this.Qb.jc(this.Aa),this.Bd||!this.Jb.Fh(this.Lg)?(q(this.ue),a=this.Fm(),this.Bd=!1,this.Lg.Bh(this.Jb)):
a=this.ue):a=this.c;var c,d,l=null,e=0;for(c=a.length;e<c;++e)d=a[e],d!==l&&(this.Qu(a[e],b),l=d);this.Qc&&(this.ue=a);this.Xd&&(a=this.ta.length?this.ta[0].ib:0,e=this.ta.length?this.ta[0].index:0,0===this.ta.length||1===this.ta.length&&!b.Cn(a)&&1===this.opacity?(1===this.ta.length?(b.sc(a),b.ah(this.Ab.Nh(),1/this.b.J,1/this.b.I,0,0,1,1,g,this.Lb(),this.ya,this.za,(this.ya+this.Ba)/2,(this.za+this.Aa)/2,this.b.yb.R,this.Na[e]),b.Pk(a)&&(this.b.ra=!0)):b.sc(0),b.gd(this.Ab.Nh()),b.$f(this.opacity),
b.rc(this.b.pb),b.mf(this.$b,this.Xb),b.Yd(),b.Fd(),g=this.b.J/2,a=this.b.I/2,b.Ci(-g,a,g,a,g,-a,-g,-a),b.rc(null)):this.Ab.Fn(b,this,null,this.Ab.Nh()))};c.prototype.Qu=function(b,a){if(b.visible&&0!==b.width&&0!==b.height){b.Fa();var e=b.ab;e.right<this.ya||e.bottom<this.za||e.left>this.Ba||e.top>this.Aa||(a.Yk(b.zf),b.Wr?this.Su(b,a):(a.sc(0),a.mf(b.$b,b.Xb),b.lc(a)))}};c.prototype.Ru=function(b,a){if(b.visible&&0!==b.width&&0!==b.height){b.Fa();var e=b.ab;e.right<this.ya||e.bottom<this.za||e.left>
this.Ba||e.top>this.Aa||(b.zf=this.b.zf++,0===b.Ub&&1===b.opacity&&b.Be&&b.xf&&(a.Yk(b.zf),b.xf(a)))}};c.prototype.Su=function(b,a){var e=b.ta[0].ib,g=b.ta[0].index,c=this.$c();if(1!==b.ta.length||a.Cn(e)||a.qx(e)||(b.j||b.k.Lb())&&a.Ai(e)||1!==b.opacity||b.type.qa.wq)this.Ab.Fn(a,this,b,this.Xd?this.b.pb:this.Ab.Nh()),a.Yd(),a.scale(c,c),a.Jn(-this.Lb()),a.translate((this.ya+this.Ba)/-2,(this.za+this.Aa)/-2),a.Fd();else{a.sc(e);a.mf(b.$b,b.Xb);a.Pk(e)&&(this.b.ra=!0);var d=0,l=0,k=0,r=0;a.Ai(e)&&
(r=b.ab,d=this.ec(r.left,r.top,!0,!0),l=this.ec(r.left,r.top,!1,!0),k=this.ec(r.right,r.bottom,!0,!0),r=this.ec(r.right,r.bottom,!1,!0),d=d/windowWidth,l=1-l/windowHeight,k=k/windowWidth,r=1-r/windowHeight);var h;b.Ma&&b.Ma.S?(h=b.Ma.S,e=1/h.width,h=1/h.height):(e=1/b.width,h=1/b.height);a.ah(this.Xd?this.b.pb:this.Ab.Nh(),e,h,d,l,k,r,c,this.Lb(),this.ya,this.za,(this.ya+this.Ba)/2,(this.za+this.Aa)/2,this.b.yb.R,b.Na[g]);b.lc(a)}};c.prototype.Ib=function(b,a,e,g){var c=this.b.devicePixelRatio;this.b.Mf&&
(b*=c,a*=c);var c=this.b.Tq,d=this.b.Uq,c=(this.Ab.scrollX-c)*this.ed+c,d=(this.Ab.scrollY-d)*this.fd+d,l=c,k=d,r=1/this.$c(!g);g?(l-=this.b.J*r/2,k-=this.b.I*r/2):(l-=this.b.width*r/2,k-=this.b.height*r/2);l+=b*r;k+=a*r;a=this.Lb();0!==a&&(l-=c,k-=d,b=Math.cos(a),a=Math.sin(a),g=l*b-k*a,k=k*b+l*a,l=g+c,k+=d);return e?l:k};c.prototype.ec=function(b,a,e,g){var c=this.b.Tq,d=this.b.Uq,l=(this.Ab.scrollX-c)*this.ed+c,k=(this.Ab.scrollY-d)*this.fd+d,d=l,c=k,r=this.Lb();if(0!==r){b-=l;a-=k;var h=Math.cos(-r),
r=Math.sin(-r),p=b*h-a*r;a=a*h+b*r;b=p+l;a+=k}l=1/this.$c(!g);g?(d-=this.b.J*l/2,c-=this.b.I*l/2):(d-=this.b.width*l/2,c-=this.b.height*l/2);d=(b-d)/l;c=(a-c)/l;b=this.b.devicePixelRatio;this.b.Mf&&!g&&(d/=b,c/=b);return e?d:c};c.prototype.wb=function(){var b,a,e,g={s:this.scale,a:this.j,vl:this.ya,vt:this.za,vr:this.Ba,vb:this.Aa,v:this.visible,bc:this.nd,t:this.Dd,px:this.ed,py:this.fd,o:this.opacity,zr:this.Hd,fx:[],cg:this.Dh,instances:[]};b=0;for(a=this.O.length;b<a;b++)e=this.O[b],g.fx.push({name:e.name,
active:e.Sa,params:this.Na[e.index]});return g};c.prototype.Nb=function(b){var a,e,g;this.scale=b.s;this.j=b.a;this.ya=b.vl;this.za=b.vt;this.Ba=b.vr;this.Aa=b.vb;this.visible=b.v;this.nd=b.bc;this.Dd=b.t;this.ed=b.px;this.fd=b.py;this.opacity=b.o;this.Hd=b.zr;this.Dh=b.cg||[];Ca(this.Lc,this.Dr);var c=new da;a=0;for(g=this.Dh.length;a<g;++a)c.add(this.Dh[a]);e=a=0;for(g=this.Lc.length;a<g;++a)c.contains(this.Lc[a][2])||(this.Lc[e]=this.Lc[a],++e);Ba(this.Lc,e);e=b.fx;a=0;for(g=e.length;a<g;a++)if(b=
this.Am(e[a].name))b.Sa=e[a].active,this.Na[b.index]=e[a].params;this.Ed();this.c.sort(h);this.eg=!0};cc=c})();
(function(){function d(b,a){var e,g=b.length;switch(g){case 0:return!0;case 1:return b[0]===a[0];case 2:return b[0]===a[0]&&b[1]===a[1];default:for(e=0;e<g;e++)if(b[e]!==a[e])return!1;return!0}}function h(b,a){return b.index-a.index}function c(b){var a,e,g,c;2===b.length?b[0].index>b[1].index&&(a=b[0],b[0]=b[1],b[1]=a):2<b.length&&b.sort(h);b.length>=w.length&&(w.length=b.length+1);w[b.length]||(w[b.length]=[]);c=w[b.length];a=0;for(e=c.length;a<e;a++)if(g=c[a],d(b,g))return g;c.push(b);return b}
function l(b,a){this.b=b;this.Mr={};this.ip={};this.Km=!1;this.Bp=new da;this.gm=[];this.Ol=[];this.name=a[0];var e=a[1];this.Xe=[];var g,c;g=0;for(c=e.length;g<c;g++)this.Dp(e[g],null,this.Xe)}function q(b){this.type=b;this.c=[];this.fa=[];this.aa=!0}function n(b,a,e){this.sheet=b;this.parent=a;this.b=b.b;this.da=[];this.nf=[];this.Ap=this.ll=this.$n=this.dk=this.group=this.Sn=!1;this.kb=[];this.Rc=[];this.jd=[];this.Qh="";this.Gf=this.dk=this.group=!1;this.Aj=null;e[1]&&(this.Qh=e[1][1].toLowerCase(),
this.group=!0,this.dk=!!e[1][0],this.Aj=[],this.Gf=this.dk,this.b.Oe.push(this),this.b.yg[this.Qh]=this);this.cd=e[2];this.ea=e[4];this.group||(this.b.Oo[this.ea.toString()]=this);var g=e[5];b=0;for(a=g.length;b<a;b++){var c=new dc(this,g[b]);c.index=b;this.kb.push(c);this.Io(c.type)}g=e[6];b=0;for(a=g.length;b<a;b++)c=new ec(this,g[b]),c.index=b,this.Rc.push(c);if(8===e.length)for(e=e[7],b=0,a=e.length;b<a;b++)this.sheet.Dp(e[b],this,this.jd);this.lk=!1;this.kb.length&&(this.lk=null==this.kb[0].type&&
this.kb[0].Kb==K.prototype.e.so)}function p(b,a){var e,g,c;if(b&&(-1===a.indexOf(b)&&a.push(b),b.Mb))for(e=0,g=b.wc.length;e<g;e++)c=b.wc[e],b!==c&&-1===a.indexOf(c)&&a.push(c)}function a(b,a){this.Hc=b;this.sheet=b.sheet;this.b=b.b;this.Z=[];this.Oa=[];this.L={};this.index=-1;this.vh=!1;this.Kb=this.b.Je(a[1]);this.trigger=0<a[3];this.hp=2===a[3];this.Sd=a[4];this.Qm=a[5];this.Iw=a[6];this.ea=a[7];this.b.Ue[this.ea.toString()]=this;-1===a[0]?(this.type=null,this.hb=this.Ln,this.tf=null,this.od=-1):
(this.type=this.b.u[a[0]],this.hb=this.Iw?this.Fx:this.Kn,a[2]?(this.tf=this.type.Xj(a[2]),this.od=this.type.xm(a[2])):(this.tf=null,this.od=-1),this.Hc.parent&&this.Hc.parent.Zk());this.hp&&(this.hb=this.Gx);if(10===a.length){var e,g,c=a[9];e=0;for(g=c.length;e<g;e++){var f=new fc(this,c[e]);this.Z.push(f)}this.Oa.length=c.length}}function e(b,a){this.Hc=b;this.sheet=b.sheet;this.b=b.b;this.Z=[];this.Oa=[];this.L={};this.index=-1;this.vh=!1;this.Kb=this.b.Je(a[1]);-1===a[0]?(this.type=null,this.hb=
this.Ln,this.tf=null,this.od=-1):(this.type=this.b.u[a[0]],this.hb=this.Kn,a[2]?(this.tf=this.type.Xj(a[2]),this.od=this.type.xm(a[2])):(this.tf=null,this.od=-1));this.ea=a[3];this.b.Me[this.ea.toString()]=this;if(6===a.length){var e,g,c=a[5];e=0;for(g=c.length;e<g;e++){var f=new fc(this,c[e]);this.Z.push(f)}this.Oa.length=c.length}}function g(){H++;E.length===H&&E.push(new gc);return E[H]}function b(b,a){this.dd=b;this.Hc=b.Hc;this.sheet=b.sheet;this.b=b.b;this.type=a[0];this.Md=null;this.Ce=0;this.get=
null;this.Xo=0;this.Ab=null;this.key=0;this.object=null;this.index=0;this.Wi=this.bg=this.Wi=this.bg=this.mp=this.Df=this.Xi=null;this.ld=!1;var e,g,c;switch(a[0]){case 0:case 7:this.Md=new hc(this,a[1]);this.Ce=0;this.get=this.dw;break;case 1:this.Md=new hc(this,a[1]);this.Ce=0;this.get=this.ew;break;case 5:this.Md=new hc(this,a[1]);this.Ce=0;this.get=this.iw;break;case 3:case 8:this.Xo=a[1];this.get=this.aw;break;case 6:this.Ab=this.b.an[a[1]];this.get=this.jw;break;case 9:this.key=a[1];this.get=
this.hw;break;case 4:this.object=this.b.u[a[1]];this.get=this.kw;this.Hc.Io(this.object);this.dd instanceof ec?this.Hc.Zk():this.Hc.parent&&this.Hc.parent.Zk();break;case 10:this.index=a[1];b.type&&b.type.H?(this.get=this.fw,this.ld=!0):this.get=this.gw;break;case 11:this.Xi=a[1];this.Df=null;this.get=this.bw;break;case 2:case 12:this.mp=a[1];this.get=this.$v;break;case 13:for(this.get=this.lw,this.bg=[],this.Wi=[],e=1,g=a.length;e<g;e++)c=new fc(this.dd,a[e]),this.bg.push(c),this.Wi.push(0)}}function f(b,
a,e){this.sheet=b;this.parent=a;this.b=b.b;this.da=[];this.name=e[1];this.ul=e[2];this.Nm=e[3];this.di=!!e[4];this.kk=!!e[5];this.ea=e[6];this.b.qh[this.ea.toString()]=this;this.data=this.Nm;this.parent?(this.Vf=this.di||this.kk?-1:this.b.Rx++,this.b.fu.push(this)):(this.Vf=-1,this.b.eu.push(this))}function m(b,a,e){this.sheet=b;this.parent=a;this.b=b.b;this.da=[];this.Sh=null;this.sw=e[1];this.Sa=!0}function t(){this.Fr=[];this.reset(null)}var w=[];l.prototype.toString=function(){return this.name};
l.prototype.Dp=function(b,a,e){switch(b[0]){case 0:b=new ic(this,a,b);if(b.cd)for(e.push(b),e=0,a=b.kb.length;e<a;e++)b.kb[e].trigger&&this.Ep(b,e);else b.Pp()?this.Ep(b,0):e.push(b);break;case 1:b=new $b(this,a,b);e.push(b);break;case 2:b=new jc(this,a,b),e.push(b)}};l.prototype.Xa=function(){var b,a;b=0;for(a=this.Xe.length;b<a;b++)this.Xe[b].Xa(b<a-1&&this.Xe[b+1].lk)};l.prototype.fo=function(){z(this.gm);z(this.Ol);this.Go(this);z(this.Ol)};l.prototype.Go=function(b){var a,e,g,c,f=b.gm,d=b.Ol,
m=this.Bp.pf();a=0;for(e=m.length;a<e;++a)g=m[a],c=g.Sh,!g.Sa||b===c||-1<d.indexOf(c)||(d.push(c),c.Go(b),f.push(c))};l.prototype.hb=function(b){this.b.Mz||(this.Km=!0,b||(this.b.Vm=!0));var a,e;a=0;for(e=this.Xe.length;a<e;a++){var g=this.Xe[a];g.hb();this.b.Zl(g.da);this.b.$e&&this.b.Tb()}b||(this.b.Vm=!1)};l.prototype.Ep=function(b,a){b.cd||this.b.nl.push(b);var e,g,c=b.kb[a],f;c.type?f=c.type.name:f="system";var d=(e=c.hp)?this.ip:this.Mr;d[f]||(d[f]=[]);f=d[f];d=c.Kb;if(e){if(c.Z.length&&(c=
c.Z[0],1===c.type&&2===c.Md.type)){c=c.Md.value.toLowerCase();e=0;for(g=f.length;e<g;e++)if(f[e].method==d){e=f[e].Gh;e[c]?e[c].push([b,a]):e[c]=[[b,a]];return}e={};e[c]=[[b,a]];f.push({method:d,Gh:e})}}else{e=0;for(g=f.length;e<g;e++)if(f[e].method==d){f[e].Gh.push([b,a]);return}W&&d===W.prototype.e.ig?f.unshift({method:d,Gh:[[b,a]]}):f.push({method:d,Gh:[[b,a]]})}};Mb=l;q.prototype.Jm=function(){return this.aa?this.type.c.length:this.c.length};q.prototype.nc=function(){return this.aa?this.type.c:
this.c};q.prototype.yi=function(b){b&&(b.b.Va().Ua.cd?(this.aa&&(z(this.c),Ca(this.fa,b.type.c),this.aa=!1),b=this.fa.indexOf(b),-1!==b&&(this.c.push(this.fa[b]),this.fa.splice(b,1))):(this.aa=!1,z(this.c),this.c[0]=b))};tb=q;window._c2hh_="3456979AD7B7212F8A7ADFAE3EDE2ACA61174C6E";n.prototype.Xa=function(b){var a,e=this.parent;if(this.group)for(this.ll=!0;e;){if(!e.group){this.ll=!1;break}e=e.parent}this.$n=!this.Pp()&&(!this.parent||this.parent.group&&this.parent.ll);this.Ap=!!b;this.nf=this.da.slice(0);
for(e=this.parent;e;){b=0;for(a=e.da.length;b<a;b++)this.cu(e.da[b]);e=e.parent}this.da=c(this.da);this.nf=c(this.nf);b=0;for(a=this.kb.length;b<a;b++)this.kb[b].Xa();b=0;for(a=this.Rc.length;b<a;b++)this.Rc[b].Xa();b=0;for(a=this.jd.length;b<a;b++)this.jd[b].Xa(b<a-1&&this.jd[b+1].lk)};n.prototype.Gi=function(b){if(this.Gf!==!!b){this.Gf=!!b;var a;b=0;for(a=this.Aj.length;b<a;++b)this.Aj[b].Rr();0<a&&this.b.ua.Cf&&this.b.ua.Cf.fo()}};n.prototype.Io=function(b){p(b,this.da)};n.prototype.cu=function(b){p(b,
this.nf)};n.prototype.Zk=function(){this.Sn=!0;this.parent&&this.parent.Zk()};n.prototype.Pp=function(){return this.kb.length?this.kb[0].trigger:!1};n.prototype.hb=function(){var b,a,e=!1,g=this.b,c=this.b.Va();c.Ua=this;var f=this.kb;this.lk||(c.lm=!1);if(this.cd){0===f.length&&(e=!0);c.jb=0;for(b=f.length;c.jb<b;c.jb++)a=f[c.jb],a.trigger||(a=a.hb())&&(e=!0);(c.Pf=e)&&this.Uk()}else{c.jb=0;for(b=f.length;c.jb<b;c.jb++)if(a=f[c.jb].hb(),!a){c.Pf=!1;this.$n&&g.$e&&g.Tb();return}c.Pf=!0;this.Uk()}this.Wu(c)};
n.prototype.Wu=function(b){b.Pf&&this.Ap&&(b.lm=!0);this.$n&&this.b.$e&&this.b.Tb()};n.prototype.Dx=function(b){this.b.Va().Ua=this;this.kb[b].hb()&&(this.Uk(),this.b.Va().Pf=!0)};n.prototype.Uk=function(){var b=this.b.Va(),a;b.kc=0;for(a=this.Rc.length;b.kc<a;b.kc++)if(this.Rc[b.kc].hb())return;this.hr()};n.prototype.Ax=function(){var b=this.b.Va(),a;for(a=this.Rc.length;b.kc<a;b.kc++)if(this.Rc[b.kc].hb())return;this.hr()};n.prototype.hr=function(){if(this.jd.length){var b,a,e,g,c=this.jd.length-
1;this.b.Qk(this);if(this.Sn)for(b=0,a=this.jd.length;b<a;b++)e=this.jd[b],(g=!this.ll||!this.group&&b<c)&&this.b.kf(e.da),e.hb(),g?this.b.yd(e.da):this.b.Zl(e.da);else for(b=0,a=this.jd.length;b<a;b++)this.jd[b].hb();this.b.Mk()}};n.prototype.Ex=function(){var b=this.b.Va();b.Ua=this;var a=!1,e;b.jb=0;for(e=this.kb.length;b.jb<e;b.jb++)if(this.kb[b.jb].hb())a=!0;else if(!this.cd)return!1;return this.cd?a:!0};n.prototype.lf=function(){this.b.Ef++;var b=this.b.Va().jb,a=this.b.Qk(this);if(!this.cd)for(a.jb=
b+1,b=this.kb.length;a.jb<b;a.jb++)if(!this.kb[a.jb].hb()){this.b.Mk();return}this.Uk();this.b.Mk()};n.prototype.Aw=function(b){var a=b.index;if(0===a)return!0;for(--a;0<=a;--a)if(this.kb[a].type===b.type)return!1;return!0};ic=n;a.prototype.Xa=function(){var b,a,e;b=0;for(a=this.Z.length;b<a;b++)e=this.Z[b],e.Xa(),e.ld&&(this.vh=!0)};a.prototype.Gx=function(){return!0};a.prototype.Ln=function(){var b,a;b=0;for(a=this.Z.length;b<a;b++)this.Oa[b]=this.Z[b].get();return Wa(this.Kb.apply(this.b.$d,this.Oa),
this.Qm)};a.prototype.Fx=function(){var b,a;b=0;for(a=this.Z.length;b<a;b++)this.Oa[b]=this.Z[b].get();b=this.Kb.apply(this.tf?this.tf:this.type,this.Oa);this.type.Sc();return b};a.prototype.Kn=function(){var b,a,e,g,c,f,d,m,l=this.type,h=l.P(),t=this.Hc.cd&&!this.trigger;a=0;var p=l.Mb,q=l.H,n=l.oe,w=this.od,E=-1<w,H=this.vh,G=this.Z,I=this.Oa,R=this.Qm,J=this.Kb,x;if(H)for(a=0,c=G.length;a<c;++a)f=G[a],f.ld||(I[a]=f.get(0));else for(a=0,c=G.length;a<c;++a)I[a]=G[a].get(0);if(h.aa){z(h.c);z(h.fa);
x=l.c;b=0;for(g=x.length;b<g;++b){m=x[b];if(H)for(a=0,c=G.length;a<c;++a)f=G[a],f.ld&&(I[a]=f.get(b));E?(a=0,q&&(a=m.type.tg[n]),a=J.apply(m.X[w+a],I)):a=J.apply(m,I);(d=Wa(a,R))?h.c.push(m):t&&h.fa.push(m)}l.finish&&l.finish(!0);h.aa=!1;l.Sc();return h.Jm()}e=0;x=(d=t&&!this.Hc.Aw(this))?h.fa:h.c;var O=!1;b=0;for(g=x.length;b<g;++b){m=x[b];if(H)for(a=0,c=G.length;a<c;++a)f=G[a],f.ld&&(I[a]=f.get(b));E?(a=0,q&&(a=m.type.tg[n]),a=J.apply(m.X[w+a],I)):a=J.apply(m,I);if(Wa(a,R))if(O=!0,d){if(h.c.push(m),
p)for(a=0,c=m.siblings.length;a<c;a++)f=m.siblings[a],f.type.P().c.push(f)}else{x[e]=m;if(p)for(a=0,c=m.siblings.length;a<c;a++)f=m.siblings[a],f.type.P().c[e]=f;e++}else if(d){x[e]=m;if(p)for(a=0,c=m.siblings.length;a<c;a++)f=m.siblings[a],f.type.P().fa[e]=f;e++}else if(t&&(h.fa.push(m),p))for(a=0,c=m.siblings.length;a<c;a++)f=m.siblings[a],f.type.P().fa.push(f)}Ba(x,e);if(p)for(q=l.wc,b=0,g=q.length;b<g;b++)m=q[b].P(),d?Ba(m.fa,e):Ba(m.c,e);e=O;if(d&&!O)for(b=0,g=h.c.length;b<g;b++){m=h.c[b];if(H)for(a=
0,c=G.length;a<c;a++)f=G[a],f.ld&&(I[a]=f.get(b));a=E?J.apply(m.X[w],I):J.apply(m,I);if(Wa(a,R)){O=!0;break}}l.finish&&l.finish(e||t);return t?O:h.Jm()};dc=a;e.prototype.Xa=function(){var b,a,e;b=0;for(a=this.Z.length;b<a;b++)e=this.Z[b],e.Xa(),e.ld&&(this.vh=!0)};e.prototype.Ln=function(){var b=this.b,a,e,g=this.Z,c=this.Oa;a=0;for(e=g.length;a<e;++a)c[a]=g[a].get();return this.Kb.apply(b.$d,c)};e.prototype.Kn=function(){var b=this.type,a=this.od,e=b.oe,g=this.vh,c=this.Z,f=this.Oa,d=this.Kb,m=b.P().nc(),
b=b.H,l=-1<a,h,t,p,q,n,w;if(g)for(t=0,q=c.length;t<q;++t)n=c[t],n.ld||(f[t]=n.get(0));else for(t=0,q=c.length;t<q;++t)f[t]=c[t].get(0);h=0;for(p=m.length;h<p;++h){w=m[h];if(g)for(t=0,q=c.length;t<q;++t)n=c[t],n.ld&&(f[t]=n.get(h));l?(t=0,b&&(t=w.type.tg[e]),d.apply(w.X[a+t],f)):d.apply(w,f)}return!1};ec=e;var E=[],H=-1;b.prototype.Xa=function(){var b,a;if(11===this.type)this.Df=this.b.sp(this.Xi,this.Hc.parent);else if(13===this.type)for(b=0,a=this.bg.length;b<a;b++)this.bg[b].Xa();this.Md&&this.Md.Xa()};
b.prototype.Tw=function(b){this.ld||!b||b.qa.bl||(this.ld=!0)};b.prototype.sr=function(){this.ld=!0};b.prototype.dw=function(b){this.Ce=b||0;b=g();this.Md.get(b);H--;return b.data};b.prototype.ew=function(b){this.Ce=b||0;b=g();this.Md.get(b);H--;return la(b.data)?b.data:""};b.prototype.kw=function(){return this.object};b.prototype.aw=function(){return this.Xo};b.prototype.iw=function(b){this.Ce=b||0;b=g();this.Md.get(b);H--;return b.xb()?this.b.Mh(b.data):this.b.Dm(b.data)};b.prototype.jw=function(){return this.Ab};
b.prototype.hw=function(){return this.key};b.prototype.gw=function(){return this.index};b.prototype.fw=function(b){b=b||0;var a=this.dd.type,e=null,e=a.P(),g=e.nc();if(g.length)e=g[b%g.length].type;else if(e.fa.length)e=e.fa[b%e.fa.length].type;else if(a.c.length)e=a.c[b%a.c.length].type;else return 0;return this.index+e.Pj[a.oe]};b.prototype.bw=function(){return this.Df};b.prototype.$v=function(){return this.mp};b.prototype.lw=function(){var b,a;b=0;for(a=this.bg.length;b<a;b++)this.Wi[b]=this.bg[b].get();
return this.Wi};fc=b;f.prototype.Xa=function(){this.da=c(this.da)};f.prototype.ag=function(b){var a=this.b.qp();this.parent&&!this.di&&a?(this.Vf>=a.length&&(a.length=this.Vf+1),a[this.Vf]=b):this.data=b};f.prototype.Oh=function(){var b=this.b.qp();return!this.parent||this.di||!b||this.kk?this.data:this.Vf>=b.length||"undefined"===typeof b[this.Vf]?this.Nm:b[this.Vf]};f.prototype.hb=function(){!this.parent||this.di||this.kk||this.ag(this.Nm)};$b=f;m.prototype.toString=function(){return"include:"+
this.Sh.toString()};m.prototype.Xa=function(){this.Sh=this.b.nm[this.sw];this.sheet.Bp.add(this);this.da=c(this.da);for(var b=this.parent;b;)b.group&&b.Aj.push(this),b=b.parent;this.Rr()};m.prototype.hb=function(){this.parent&&this.b.Bi(this.b.u);this.Sh.Km||this.Sh.hb(!0);this.parent&&this.b.yd(this.b.u)};m.prototype.Rr=function(){for(var b=this.parent;b;){if(b.group&&!b.Gf){this.Sa=!1;return}b=b.parent}this.Sa=!0};jc=m;t.prototype.reset=function(b){this.Ua=b;this.kc=this.jb=0;z(this.Fr);this.lm=
this.Pf=!1};t.prototype.Lp=function(){return this.Ua.Sn?!0:this.jb<this.Ua.kb.length-1?!!this.Ua.da.length:!1};Zb=t})();
(function(){function d(c,a){this.dd=c;this.b=c.b;this.type=a[0];this.get=[this.rv,this.nv,this.Av,this.Dv,this.Zu,this.Bv,this.vv,this.jv,this.uv,this.zv,this.$u,this.yv,this.kv,this.wv,this.sv,this.tv,this.ov,this.pv,this.hv,this.Cv,this.xv,this.qv,this.gv,this.lv][this.type];var e=null;this.ve=this.Z=this.Oa=this.Kb=this.jl=this.second=this.first=this.value=null;this.od=-1;this.sd=null;this.Xr=-1;this.Df=this.Xi=null;this.Zg=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new hc(c,a[1]);break;case 18:this.first=new hc(c,a[1]);this.second=new hc(c,a[2]);this.jl=new hc(c,a[3]);break;case 19:this.Kb=this.b.Je(a[1]);this.Kb!==K.prototype.G.random&&this.Kb!==K.prototype.G.nu||this.dd.sr();this.Oa=[];this.Z=[];3===a.length?(e=a[2],this.Oa.length=e.length+1):this.Oa.length=1;break;case 20:this.ve=this.b.u[a[1]];this.od=-1;this.Kb=this.b.Je(a[2]);this.Zg=a[3];vc&&this.Kb===vc.prototype.G.ds&&this.dd.sr();a[4]?this.sd=new hc(c,a[4]):this.sd=null;this.Oa=[];this.Z=[];6===a.length?
(e=a[5],this.Oa.length=e.length+1):this.Oa.length=1;break;case 21:this.ve=this.b.u[a[1]];this.Zg=a[2];a[3]?this.sd=new hc(c,a[3]):this.sd=null;this.Xr=a[4];break;case 22:this.ve=this.b.u[a[1]];this.ve.Xj(a[2]);this.od=this.ve.xm(a[2]);this.Kb=this.b.Je(a[3]);this.Zg=a[4];a[5]?this.sd=new hc(c,a[5]):this.sd=null;this.Oa=[];this.Z=[];7===a.length?(e=a[6],this.Oa.length=e.length+1):this.Oa.length=1;break;case 23:this.Xi=a[1],this.Df=null}this.dd.Tw(this.ve);4<=this.type&&17>=this.type&&(this.first=new hc(c,
a[1]),this.second=new hc(c,a[2]));if(e){var g,b;g=0;for(b=e.length;g<b;g++)this.Z.push(new hc(c,e[g]))}}function h(){++n;q.length===n&&q.push(new gc);return q[n]}function c(c,a,e){var g,b;g=0;for(b=c.length;g<b;++g)c[g].get(e),a[g+1]=e.data}function l(c,a){this.type=c||kc.gg;this.data=a||0;this.Yf=null;this.type==kc.gg&&(this.data=Math.floor(this.data))}d.prototype.Xa=function(){23===this.type&&(this.Df=this.dd.b.sp(this.Xi,this.dd.Hc.parent));this.first&&this.first.Xa();this.second&&this.second.Xa();
this.jl&&this.jl.Xa();this.sd&&this.sd.Xa();if(this.Z){var c,a;c=0;for(a=this.Z.length;c<a;c++)this.Z[c].Xa()}};var q=[],n=-1;d.prototype.Cv=function(d){var a=this.Z,e=this.Oa;e[0]=d;d=h();c(a,e,d);--n;this.Kb.apply(this.b.$d,e)};d.prototype.xv=function(d){var a=this.ve,e=this.Oa,g=this.Z,b=this.sd,f=this.Kb,m=this.dd.Ce,l=a.P(),q=l.nc();if(!q.length)if(l.fa.length)q=l.fa;else{this.Zg?d.Ya(""):d.W(0);return}e[0]=d;d.Yf=a;d=h();c(g,e,d);b&&(b.get(d),d.xb()&&(m=d.data,q=a.c));--n;a=q.length;if(m>=a||
m<=-a)m%=a;0>m&&(m+=a);f.apply(q[m],e)};d.prototype.gv=function(d){var a=this.ve,e=this.Oa,g=this.Z,b=this.sd,f=this.od,m=this.Kb,l=this.dd.Ce,q=a.P(),E=q.nc();if(!E.length)if(q.fa.length)E=q.fa;else{this.Zg?d.Ya(""):d.W(0);return}e[0]=d;d.Yf=a;d=h();c(g,e,d);b&&(b.get(d),d.xb()&&(l=d.data,E=a.c));--n;g=E.length;if(l>=g||l<=-g)l%=g;0>l&&(l+=g);l=E[l];E=0;a.H&&(E=l.type.tg[a.oe]);m.apply(l.X[f+E],e)};d.prototype.qv=function(c){var a=this.sd,e=this.ve,g=this.Xr,b=this.dd.Ce,f=e.P(),d=f.nc();if(!d.length)if(f.fa.length)d=
f.fa;else{this.Zg?c.Ya(""):c.W(0);return}if(a){f=h();a.get(f);if(f.xb()){b=f.data;d=e.c;0!==d.length&&(b%=d.length,0>b&&(b+=d.length));b=e.Cm(b);e=b.nb[g];la(e)?c.Ya(e):c.A(e);--n;return}--n}a=d.length;if(b>=a||b<=-a)b%=a;0>b&&(b+=a);b=d[b];d=0;e.H&&(d=b.type.Pj[e.oe]);e=b.nb[g+d];la(e)?c.Ya(e):c.A(e)};d.prototype.rv=function(c){c.type=kc.gg;c.data=this.value};d.prototype.nv=function(c){c.type=kc.fg;c.data=this.value};d.prototype.Av=function(c){c.type=kc.String;c.data=this.value};d.prototype.Dv=function(c){this.first.get(c);
c.xb()&&(c.data=-c.data)};d.prototype.Zu=function(c){this.first.get(c);var a=h();this.second.get(a);c.xb()&&a.xb()&&(c.data+=a.data,a.Dg()&&c.Ng());--n};d.prototype.Bv=function(c){this.first.get(c);var a=h();this.second.get(a);c.xb()&&a.xb()&&(c.data-=a.data,a.Dg()&&c.Ng());--n};d.prototype.vv=function(c){this.first.get(c);var a=h();this.second.get(a);c.xb()&&a.xb()&&(c.data*=a.data,a.Dg()&&c.Ng());--n};d.prototype.jv=function(c){this.first.get(c);var a=h();this.second.get(a);c.xb()&&a.xb()&&(c.data/=
a.data,c.Ng());--n};d.prototype.uv=function(c){this.first.get(c);var a=h();this.second.get(a);c.xb()&&a.xb()&&(c.data%=a.data,a.Dg()&&c.Ng());--n};d.prototype.zv=function(c){this.first.get(c);var a=h();this.second.get(a);c.xb()&&a.xb()&&(c.data=Math.pow(c.data,a.data),a.Dg()&&c.Ng());--n};d.prototype.$u=function(c){this.first.get(c);var a=h();this.second.get(a);a.Gg()||c.Gg()?this.bv(c,a):this.av(c,a);--n};d.prototype.bv=function(c,a){c.Gg()&&a.Gg()?this.dv(c,a):this.cv(c,a)};d.prototype.dv=function(c,
a){c.data+=a.data};d.prototype.cv=function(c,a){c.Gg()?c.data+=(Math.round(1E10*a.data)/1E10).toString():c.Ya(c.data.toString()+a.data)};d.prototype.av=function(c,a){c.W(c.data&&a.data?1:0)};d.prototype.yv=function(c){this.first.get(c);var a=h();this.second.get(a);c.xb()&&a.xb()&&(c.data||a.data?c.W(1):c.W(0));--n};d.prototype.hv=function(c){this.first.get(c);c.data?this.second.get(c):this.jl.get(c)};d.prototype.kv=function(c){this.first.get(c);var a=h();this.second.get(a);c.W(c.data===a.data?1:0);
--n};d.prototype.wv=function(c){this.first.get(c);var a=h();this.second.get(a);c.W(c.data!==a.data?1:0);--n};d.prototype.sv=function(c){this.first.get(c);var a=h();this.second.get(a);c.W(c.data<a.data?1:0);--n};d.prototype.tv=function(c){this.first.get(c);var a=h();this.second.get(a);c.W(c.data<=a.data?1:0);--n};d.prototype.ov=function(c){this.first.get(c);var a=h();this.second.get(a);c.W(c.data>a.data?1:0);--n};d.prototype.pv=function(c){this.first.get(c);var a=h();this.second.get(a);c.W(c.data>=
a.data?1:0);--n};d.prototype.lv=function(c){var a=this.Df.Oh();ka(a)?c.A(a):c.Ya(a)};hc=d;l.prototype.Dg=function(){return this.type===kc.fg};l.prototype.xb=function(){return this.type===kc.gg||this.type===kc.fg};l.prototype.Gg=function(){return this.type===kc.String};l.prototype.Ng=function(){this.Dg()||(this.Gg()&&(this.data=parseFloat(this.data)),this.type=kc.fg)};l.prototype.W=function(c){this.type=kc.gg;this.data=Math.floor(c)};l.prototype.A=function(c){this.type=kc.fg;this.data=c};l.prototype.Ya=
function(c){this.type=kc.String;this.data=c};l.prototype.al=function(c){ka(c)?(this.type=kc.fg,this.data=c):la(c)?(this.type=kc.String,this.data=c.toString()):(this.type=kc.gg,this.data=0)};gc=l;kc={gg:0,fg:1,String:2}})();function K(d){this.b=d;this.tc=[]}
K.prototype.wb=function(){var d={},h,c,l,q,n,p,a,e;d.waits=[];var g=d.waits,b;h=0;for(c=this.tc.length;h<c;h++){p=this.tc[h];b={t:p.time,st:p.Br,s:p.Rn,ev:p.sg.ea,sm:[],sols:{}};p.sg.Rc[p.kc]&&(b.act=p.sg.Rc[p.kc].ea);l=0;for(q=p.da.length;l<q;l++)b.sm.push(p.da[l].ea);for(n in p.gc)if(p.gc.hasOwnProperty(n)){a=this.b.u[parseInt(n,10)];e={sa:p.gc[n].Vk,insts:[]};l=0;for(q=p.gc[n].qe.length;l<q;l++)e.insts.push(p.gc[n].qe[l].uid);b.sols[a.ea.toString()]=e}g.push(b)}return d};
K.prototype.Nb=function(d){d=d.waits;var h,c,l,q,n,p,a,e,g,b,f;z(this.tc);h=0;for(c=d.length;h<c;h++)if(p=d[h],e=this.b.Oo[p.ev.toString()]){g=-1;l=0;for(q=e.Rc.length;l<q;l++)if(e.Rc[l].ea===p.act){g=l;break}if(-1!==g){a={gc:{},da:[],hm:!1};a.time=p.t;a.Br=p.st||"";a.Rn=!!p.s;a.sg=e;a.kc=g;l=0;for(q=p.sm.length;l<q;l++)(e=this.b.$j(p.sm[l]))&&a.da.push(e);for(n in p.sols)if(p.sols.hasOwnProperty(n)&&(e=this.b.$j(parseInt(n,10)))){g=p.sols[n];b={Vk:g.sa,qe:[]};l=0;for(q=g.insts.length;l<q;l++)(f=
this.b.Zj(g.insts[l]))&&b.qe.push(f);a.gc[e.index.toString()]=b}this.tc.push(a)}}};
(function(){function d(){}function h(){}function c(){}var l=K.prototype;d.prototype.ys=function(){return!0};d.prototype.uo=function(){return!0};d.prototype.dt=function(){return!0};d.prototype.js=function(a,c,b){return lc(a,c,b)};d.prototype.zs=function(a,c,b){var f=this.b.Va(),d=f.Ua,f=f.Lp();a=this.b.cr(a);if(b<c)if(f)for(;c>=b&&!a.Qa;--c)this.b.kf(d.da),a.index=c,d.lf(),this.b.yd(d.da);else for(;c>=b&&!a.Qa;--c)a.index=c,d.lf();else if(f)for(;c<=b&&!a.Qa;++c)this.b.kf(d.da),a.index=c,d.lf(),this.b.yd(d.da);
else for(;c<=b&&!a.Qa;++c)a.index=c,d.lf();this.b.Xq();return!1};var q=[],n=-1;d.prototype.As=function(a){var c=a.P();n++;q.length===n&&q.push([]);var b=q[n];Ca(b,c.nc());var f=this.b.Va(),d=f.Ua,l=f.Lp(),f=this.b.cr(),h,p,H,k,r,y,A=a.Mb;if(l)for(l=0,h=b.length;l<h&&!f.Qa;l++){this.b.kf(d.da);k=b[l];c=a.P();c.aa=!1;z(c.c);c.c[0]=k;if(A)for(p=0,H=k.siblings.length;p<H;p++)r=k.siblings[p],y=r.type.P(),y.aa=!1,z(y.c),y.c[0]=r;f.index=l;d.lf();this.b.yd(d.da)}else for(c.aa=!1,z(c.c),l=0,h=b.length;l<
h&&!f.Qa;l++){k=b[l];c.c[0]=k;if(A)for(p=0,H=k.siblings.length;p<H;p++)r=k.siblings[p],y=r.type.P(),y.aa=!1,z(y.c),y.c[0]=r;f.index=l;d.lf()}z(b);this.b.Xq();n--;return!1};d.prototype.xs=function(a){var c=this.b.zm(),b=c.L.Every_lastTime||0,f=this.b.yb.R;"undefined"===typeof c.L.Every_seconds&&(c.L.Every_seconds=a);var d=c.L.Every_seconds;if(f>=b+d)return c.L.Every_lastTime=b+d,f>=c.L.Every_lastTime+.04&&(c.L.Every_lastTime=f),c.L.Every_seconds=a,!0;f<b-.1&&(c.L.Every_lastTime=f);return!1};d.prototype.os=
function(a,c,b){return lc(a.Oh(),c,b)};d.prototype.Is=function(a){return(a=this.b.yg[a.toLowerCase()])&&a.Gf};d.prototype.ks=function(a,c,b){return a>=c&&a<=b};d.prototype.so=function(){var a=this.b.Va();return a.lm?!1:!a.Pf};d.prototype.Al=function(){return!0};d.prototype.Ts=function(){return!0};d.prototype.Gl=function(){return!0};d.prototype.xo=function(){return!0};d.prototype.et=function(){return!0};d.prototype.ij=function(){return!0};d.prototype.as=function(a,c,b){return Qa(D(a),D(b))<=D(c)};
d.prototype.Hs=function(a,c){return Ta(D(a),D(c))};d.prototype.Fs=function(a,c,b){a=Oa(a);c=Oa(c);b=Oa(b);return Ta(b,c)?Ta(a,c)&&!Ta(a,b):!(!Ta(a,c)&&Ta(a,b))};l.e=new d;h.prototype.Bs=function(a){this.b.Ig||this.b.uf||(this.b.uf=a)};h.prototype.ss=function(a,c,b,f){if(c&&a&&(c=this.b.cm(a,c,b,f))){this.b.Nc++;var d;this.b.trigger(Object.getPrototypeOf(a.qa).e.hg,c);if(c.Mb)for(b=0,f=c.siblings.length;b<f;b++)d=c.siblings[b],this.b.trigger(Object.getPrototypeOf(d.type.qa).e.hg,d);this.b.Nc--;a=a.P();
a.aa=!1;z(a.c);a.c[0]=c;if(c.Mb)for(b=0,f=c.siblings.length;b<f;b++)d=c.siblings[b],a=d.type.P(),a.aa=!1,z(a.c),a.c[0]=d}};h.prototype.Gt=function(a,c){0===a.ul?ka(c)?a.ag(c):a.ag(parseFloat(c)):1===a.ul&&a.ag(c.toString())};h.prototype.$r=function(a,c){0===a.ul?ka(c)?a.ag(a.Oh()+c):a.ag(a.Oh()+parseFloat(c)):1===a.ul&&a.ag(a.Oh()+c.toString())};h.prototype.Dt=function(a,c){var b=this.b.yg[a.toLowerCase()];if(b)switch(c){case 0:b.Gi(!1);break;case 1:b.Gi(!0);break;case 2:b.Gi(!b.Gf)}};var p=[],a=
[];h.prototype.Wt=function(e){if(!(0>e)){var c,b,f,d=this.b.Va(),l;p.length?l=p.pop():l={gc:{},da:[]};l.hm=!1;l.time=this.b.yb.R+e;l.Br="";l.Rn=!1;l.sg=d.Ua;l.kc=d.kc+1;e=0;for(c=this.b.u.length;e<c;e++)f=this.b.u[e],b=f.P(),b.aa&&-1===d.Ua.da.indexOf(f)||(l.da.push(f),f=void 0,a.length?f=a.pop():f={qe:[]},f.Vk=!1,f.Vk=b.aa,Ca(f.qe,b.c),l.gc[e.toString()]=f);this.tc.push(l);return!0}};h.prototype.xt=function(){if(!this.b.Ig&&!this.b.uf&&this.b.ua){this.b.uf=this.b.ua;var a,c,b;a=0;for(c=this.b.Oe.length;a<
c;a++)b=this.b.Oe[a],b.Gi(b.dk)}};l.C=new h;c.prototype["int"]=function(a,c){la(c)?(a.W(parseInt(c,10)),isNaN(a.data)&&(a.data=0)):a.W(c)};c.prototype["float"]=function(a,c){la(c)?(a.A(parseFloat(c)),isNaN(a.data)&&(a.data=0)):a.A(c)};c.prototype.random=function(a,c,b){void 0===b?a.A(Math.random()*c):a.A(Math.random()*(b-c)+c)};c.prototype.sqrt=function(a,c){a.A(Math.sqrt(c))};c.prototype.abs=function(a,c){a.A(Math.abs(c))};c.prototype.round=function(a,c){a.W(Math.round(c))};c.prototype.floor=function(a,
c){a.W(Math.floor(c))};c.prototype.ceil=function(a,c){a.W(Math.ceil(c))};c.prototype.sin=function(a,c){a.A(Math.sin(D(c)))};c.prototype.cos=function(a,c){a.A(Math.cos(D(c)))};c.prototype.tan=function(a,c){a.A(Math.tan(D(c)))};c.prototype.asin=function(a,c){a.A(Ka(Math.asin(c)))};c.prototype.acos=function(a,c){a.A(Ka(Math.acos(c)))};c.prototype.atan=function(a,c){a.A(Ka(Math.atan(c)))};c.prototype.exp=function(a,c){a.A(Math.exp(c))};c.prototype.log10=function(a,c){a.A(Math.log(c)/Math.LN10)};c.prototype.max=
function(a){var c=arguments[1];"number"!==typeof c&&(c=0);var b,f,d;b=2;for(f=arguments.length;b<f;b++)d=arguments[b],"number"===typeof d&&c<d&&(c=d);a.A(c)};c.prototype.min=function(a){var c=arguments[1];"number"!==typeof c&&(c=0);var b,f,d;b=2;for(f=arguments.length;b<f;b++)d=arguments[b],"number"===typeof d&&c>d&&(c=d);a.A(c)};c.prototype.me=function(a){a.A(this.b.me)};c.prototype.mh=function(a){a.A(this.b.mh)};c.prototype.time=function(a){a.A(this.b.yb.R)};c.prototype.jh=function(a){a.W(this.b.jh)};
c.prototype.yk=function(a){a.W(this.b.yk)};c.prototype.um=function(a){a.W(this.b.um)};c.prototype.Qw=function(a,c){var b,f;if(this.b.pi.length)if(c){for(f=this.b.qi;0<=f;--f)if(b=this.b.pi[f],b.name===c){a.W(b.index);return}a.W(0)}else b=this.b.rp(),a.W(b?b.index:-1);else a.W(0)};c.prototype.wu=function(a,c,b,f,d){a.A(Va(c,b,f,d))};c.prototype.j=function(a,c,b,f,d){a.A(Ka(Pa(c,b,f,d)))};c.prototype.Mw=function(a,c,b,f){a.A(Za(c,b,f))};c.prototype.ou=function(a,c,b,f){c<b?a.A(b):c>f?a.A(f):a.A(c)};
c.prototype.Lw=function(a){a.W(this.b.ua.width)};c.prototype.Kw=function(a){a.W(this.b.ua.height)};c.prototype.left=function(a,c,b){a.Ya(la(c)?c.substr(0,b):"")};c.prototype.right=function(a,c,b){a.Ya(la(c)?c.substr(c.length-b):"")};c.prototype.replace=function(a,c,b,f){la(c)&&la(b)&&la(f)?a.Ya(c.replace(new RegExp(gb(b),"gi"),f)):a.Ya(la(c)?c:"")};c.prototype.trim=function(a,c){a.Ya(la(c)?c.trim():"")};c.prototype.nu=function(a){var c=sa(Math.random()*(arguments.length-1));a.al(arguments[c+1])};
c.prototype.am=function(a){a.A(this.b.am/1E3)};c.prototype.Sf=function(a){a.A(this.b.Sf)};l.G=new c;l.Cx=function(){var c,g,b,f,d,l,h=this.b.Va();c=0;for(b=this.tc.length;c<b;c++){f=this.tc[c];if(-1===f.time){if(!f.Rn)continue}else if(f.time>this.b.yb.R)continue;h.Ua=f.sg;h.kc=f.kc;h.jb=0;for(g in f.gc)f.gc.hasOwnProperty(g)&&(d=this.b.u[parseInt(g,10)].P(),l=f.gc[g],d.aa=l.Vk,Ca(d.c,l.qe),d=l,z(d.qe),a.push(d));f.sg.Ax();this.b.Zl(f.da);f.hm=!0}g=c=0;for(b=this.tc.length;c<b;c++)f=this.tc[c],this.tc[g]=
f,f.hm?(ab(f.gc),z(f.da),p.push(f)):g++;Ba(this.tc,g)}})();
(function(){sb=function(d,c){var l=d[1],q=d[3],n=d[4],p=d[5],a=d[6],e=d[7],g=d[8];c.e||(c.e={});c.C||(c.C={});c.G||(c.G={});var b=c.e,f=c.C,m=c.G;q&&(b.ro=function(a,b){return lc(this.x,a,b)},b.qs=function(a,b){return lc(this.y,a,b)},b.yy=function(){var a=this.k;this.Fa();var b=this.ab;return!(b.right<a.ya||b.bottom<a.za||b.left>a.Ba||b.top>a.Aa)},b.zy=function(){this.Fa();var a=this.ab,b=this.b.ua;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},b.Ky=function(a,b,c){var e=this.P(),g=
e.nc();if(!g.length)return!1;var f=g[0],d=f,l=Va(f.x,f.y,b,c),m,h,q;m=1;for(h=g.length;m<h;m++)if(f=g[m],q=Va(f.x,f.y,b,c),0===a&&q<l||1===a&&q>l)l=q,d=f;e.yi(d);return!0},f.Kt=function(a){this.x!==a&&(this.x=a,this.Ja())},f.Nt=function(a){this.y!==a&&(this.y=a,this.Ja())},f.Ao=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.Ja()},f.ez=function(a,b){var c=a.Vv(this);if(c){var e;c.Lh?(e=c.Lh(b,!0),c=c.Lh(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.Ja()}},f.Ey=
function(a){0!==a&&(this.x+=Math.cos(this.j)*a,this.y+=Math.sin(this.j)*a,this.Ja())},f.Ps=function(a,b){0!==b&&(this.x+=Math.cos(D(a))*b,this.y+=Math.sin(D(a))*b,this.Ja())},m.Bo=function(a){a.A(this.x)},m.Co=function(a){a.A(this.y)},m.me=function(a){a.A(this.b.wg(this))});n&&(b.uy=function(a,b){return lc(this.width,a,b)},b.qy=function(a,b){return lc(this.height,a,b)},f.Jt=function(a){this.width!==a&&(this.width=a,this.Ja())},f.az=function(a){this.height!==a&&(this.height=a,this.Ja())},f.Ll=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.Ja()},m.Xt=function(a){a.A(this.width)},m.Cs=function(a){a.A(this.height)},m.my=function(a){this.Fa();a.A(this.ab.left)},m.oy=function(a){this.Fa();a.A(this.ab.top)},m.ny=function(a){this.Fa();a.A(this.ab.right)},m.ly=function(a){this.Fa();a.A(this.ab.bottom)});p&&(b.as=function(a,b){return Qa(this.j,D(b))<=D(a)},b.Hs=function(a){return Ta(this.j,D(a))},b.Fs=function(a,b){var c=Oa(a),e=Oa(b),g=Ma(this.j);return Ta(e,c)?Ta(g,c)&&
!Ta(g,e):!(!Ta(g,c)&&Ta(g,e))},f.Uy=function(a){a=D(La(a));isNaN(a)||this.j===a||(this.j=a,this.Ja())},f.Qy=function(a){0===a||isNaN(a)||(this.j+=D(a),this.j=Ma(this.j),this.Ja())},f.Ry=function(a){0===a||isNaN(a)||(this.j-=D(a),this.j=Ma(this.j),this.Ja())},f.Sy=function(a,b){var c=Ra(this.j,D(b),D(a));isNaN(c)||this.j===c||(this.j=c,this.Ja())},f.Ty=function(a,b,c){a=Ra(this.j,Math.atan2(c-this.y,b-this.x),D(a));isNaN(a)||this.j===a||(this.j=a,this.Ja())},f.gz=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.j===c||(this.j=c,this.Ja())},m.ky=function(a){a.A(Na(this.j))});l||(b.ns=function(a,b,c){return lc(this.nb[a],b,c)},b.Gs=function(a){return this.nb[a]},b.Ly=function(a,b){var c=this.P(),e=c.nc();if(!e.length)return!1;var g=e[0],f=g,d=g.nb[b],l,m,h;l=1;for(m=e.length;l<m;l++)if(g=e[l],h=g.nb[b],0===a&&h<d||1===a&&h>d)d=h,f=g;c.yi(f);return!0},b.pt=function(a){var b,c,e,g,f;if(this.b.zm().Qm){f=this.P();if(f.aa)for(f.aa=!1,z(f.c),z(f.fa),e=this.c,b=0,c=e.length;b<c;b++)g=e[b],
g.uid===a?f.fa.push(g):f.c.push(g);else{e=b=0;for(c=f.c.length;b<c;b++)g=f.c[b],f.c[e]=g,g.uid===a?f.fa.push(g):e++;Ba(f.c,e)}this.Sc();return!!f.c.length}g=this.b.Zj(a);if(!g)return!1;f=this.P();if(!f.aa&&-1===f.c.indexOf(g))return!1;if(this.H)for(a=g.type.Ha,b=0,c=a.length;b<c;b++){if(a[b]===this)return f.yi(g),this.Sc(),!0}else if(g.type===this)return f.yi(g),this.Sc(),!0;return!1},b.hg=function(){return!0},b.Vs=function(){return!0},f.Et=function(a,b){var c=this.nb;ka(c[a])?c[a]=ka(b)?b:parseFloat(b):
la(c[a])&&(c[a]=la(b)?b:b.toString())},f.jy=function(a,b){var c=this.nb;ka(c[a])?c[a]=ka(b)?c[a]+b:c[a]+parseFloat(b):la(c[a])&&(c[a]=la(b)?c[a]+b:c[a]+b.toString())},f.lz=function(a,b){var c=this.nb;ka(c[a])&&(c[a]=ka(b)?c[a]-b:c[a]-parseFloat(b))},f.Bt=function(a,b){this.nb[a]=b?1:0},f.nz=function(a){this.nb[a]=1-this.nb[a]},f.vs=function(){this.b.Ie(this)},f.Ms||(f.Ms=function(a){var b,c;try{b=JSON.parse(a)}catch(e){return}this.b.qk(this,b,!0);this.Ne&&this.Ne();if(this.X)for(a=0,b=this.X.length;a<
b;++a)c=this.X[a],c.Ne&&c.Ne()}),m.vy=function(a){var b=a.Yf.c.length,c,e,g;c=0;for(e=this.b.rd.length;c<e;c++)g=this.b.rd[c],a.Yf.H?0<=g.type.Ha.indexOf(a.Yf)&&b++:g.type===a.Yf&&b++;a.W(b)},m.Ny=function(a){a.W(a.Yf.P().nc().length)},m.Ut=function(a){a.W(this.uid)},m.wy=function(a){a.W(this.Ph())},m.zl||(m.zl=function(a){a.Ya(JSON.stringify(this.b.Mn(this,!0)))}));a&&(b.By=function(){return this.visible},f.Ht=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.ra=!0)},b.ry=function(a,b){return lc(ob(100*
this.opacity),a,b)},f.cz=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ra=!0)},m.Opacity=function(a){a.A(ob(100*this.opacity))});e&&(b.xy=function(a){return a?this.k===a:!1},b.My=function(a){var b=this.P(),c=b.nc();if(!c.length)return!1;var e=c[0],g=e,f,d;f=1;for(d=c.length;f<d;f++)if(e=c[f],0===a){if(e.k.index>g.k.index||e.k.index===g.k.index&&e.Pd()>g.Pd())g=e}else if(e.k.index<g.k.index||e.k.index===g.k.index&&e.Pd()<g.Pd())g=e;b.yi(g);return!0},f.Gy=function(){var a=
this.k,b=a.c;b.length&&b[b.length-1]===this||(a.Yg(this,!1),a.xh(this,!1),this.b.ra=!0)},f.Qs=function(){var a=this.k,b=a.c;b.length&&b[0]===this||(a.Yg(this,!1),a.nx(this),this.b.ra=!0)},f.Fy=function(a){a&&a!=this.k&&(this.k.Yg(this,!0),this.k=a,a.xh(this,!0),this.b.ra=!0)},f.qz=function(a,b){var c=0===a;if(b){var e=b.Pv(this);e&&e.uid!==this.uid&&(this.k.index!==e.k.index&&(this.k.Yg(this,!0),this.k=e.k,e.k.xh(this,!0)),this.k.Uw(this,e,c),this.b.ra=!0)}},m.Dy=function(a){a.W(this.k.Bq)},m.Cy=
function(a){a.Ya(this.k.name)},m.pz=function(a){a.W(this.Pd())});g&&(f.Yy=function(a,b){if(this.b.n){var c=this.type.Bm(b);if(!(0>c)){var e=1===a;this.Le[c]!==e&&(this.Le[c]=e,this.Ed(),this.b.ra=!0)}}},f.Zy=function(a,b,c){if(this.b.n){var e=this.type.Bm(a);0>e||(a=this.type.O[e],e=this.Na[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.n.Zv(a.ib,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.Sa&&(this.b.ra=!0))))}})};Rb=function(){this.Wl=this.Rl=!0;this.type.nj=!0;this.b.ra=!0;var d,c,l=this.Sl;d=0;for(c=l.length;d<
c;++d)l[d](this);this.k.Qc&&this.Fa()};Sb=function(d){d&&this.Sl.push(d)};Ub=function(){if(this.Rl){var d=this.ab,c=this.vc;d.set(this.x,this.y,this.x+this.width,this.y+this.height);d.offset(-this.ac*this.width,-this.cc*this.height);this.j?(d.offset(-this.x,-this.y),c.ur(d,this.j),c.offset(this.x,this.y),c.Qo(d)):c.Ji(d);d.normalize();this.Rl=!1;this.cy()}};var d=new xa(0,0,0,0);Vb=function(){if(this.k.Qc){var h=this.k.Qb,c=this.ab;d.set(h.ic(c.left),h.jc(c.top),h.ic(c.right),h.jc(c.bottom));this.oc.Fh(d)||
(this.oc.right<this.oc.left?h.update(this,null,d):h.update(this,this.oc,d),this.oc.Bh(d),this.k.Bd=!0)}};Wb=function(){if(this.Wl&&this.Jd){this.Fa();var h=this.type.zh,c=this.ab;d.set(h.ic(c.left),h.jc(c.top),h.ic(c.right),h.jc(c.bottom));this.Uc.Fh(d)||(this.Uc.right<this.Uc.left?h.update(this,null,d):h.update(this,this.Uc,d),this.Uc.Bh(d),this.Wl=!1)}};Tb=function(d,c){return this.ab.Vb(d,c)&&this.vc.Vb(d,c)?this.kh?this.Nz(d,c):this.wa&&!this.wa.Cg()?(this.wa.mg(this.width,this.height,this.j),
this.wa.Vb(d-this.x,c-this.y)):!0:!1};Jb=function(){this.type.pl();return this.Jf};Xb=function(){this.k.jo();return this.Gd};Yb=function(){z(this.ta);var d,c,l,q=!0;d=0;for(c=this.Le.length;d<c;d++)this.Le[d]&&(l=this.type.O[d],this.ta.push(l),l.zd||(q=!1));this.Wr=!!this.ta.length;this.Be=q};Kb=function(){return"Inst"+this.br};xb=function(d){if(d&&d.Mb&&d.type!=this){var c,l,q;c=0;for(l=d.siblings.length;c<l;c++)if(q=d.siblings[c],q.type==this)return q}d=this.P().nc();return d.length?d[0]:null};
yb=function(d){var c=this.P().nc();return c.length?c[d.Ph()%c.length]:null};ub=function(){if(this.eh&&!this.H){var d,c;d=0;for(c=this.c.length;d<c;d++)this.c[d].Jf=d;var l=d,q=this.b.rd;d=0;for(c=q.length;d<c;++d)q[d].type===this&&(q[d].Jf=l++);this.eh=!1}};Hb=function(d){if(d<this.c.length)return this.c[d];d-=this.c.length;var c=this.b.rd,l,q;l=0;for(q=c.length;l<q;++l)if(c[l].type===this){if(0===d)return c[l];--d}return null};zb=function(){return this.De[this.Kd]};Ab=function(){this.Kd++;this.Kd===
this.De.length?this.De.push(new tb(this)):(this.De[this.Kd].aa=!0,z(this.De[this.Kd].fa))};Bb=function(){this.Kd++;this.Kd===this.De.length&&this.De.push(new tb(this));var d=this.De[this.Kd],c=this.De[this.Kd-1];c.aa?d.aa=!0:(d.aa=!1,Ca(d.c,c.c));z(d.fa)};Cb=function(){this.Kd--};Db=function(d){var c,l,q,n,p,a=0;if(!this.H)for(c=0,l=this.Ha.length;c<l;c++)for(p=this.Ha[c],q=0,n=p.La.length;q<n;q++){if(d===p.La[q].name)return this.L.lastBehIndex=a,p.La[q];a++}c=0;for(l=this.La.length;c<l;c++){if(d===
this.La[c].name)return this.L.lastBehIndex=a,this.La[c];a++}return null};Eb=function(d){return this.Xj(d)?this.L.lastBehIndex:-1};Fb=function(d){var c,l;c=0;for(l=this.O.length;c<l;c++)if(this.O[c].name===d)return c;return-1};Gb=function(){if(this.Mb&&!this.H){var d,c,l,q,n,p,a;this.pl();p=this.P();var e=p.aa,g=(d=this.b.Va())&&d.Ua&&d.Ua.cd;d=0;for(c=this.wc.length;d<c;d++)if(n=this.wc[d],n!==this&&(n.pl(),a=n.P(),a.aa=e,!e)){z(a.c);l=0;for(q=p.c.length;l<q;++l)a.c[l]=n.Cm(p.c[l].Jf);if(g)for(z(a.fa),
l=0,q=p.fa.length;l<q;++l)a.fa[l]=n.Cm(p.fa[l].Jf)}}};Ib=function(){return"Type"+this.ea};lc=function(d,c,l){if("undefined"===typeof d||"undefined"===typeof l)return!1;switch(c){case 0:return d===l;case 1:return d!==l;case 2:return d<l;case 3:return d<=l;case 4:return d>l;case 5:return d>=l;default:return!1}}})();var tc={};function wc(d){this.b=d}
(function(){function d(){}function h(){}function c(){}var l=!1,q=null,n=null,p="",a=wc.prototype;a.la=function(a){this.qa=a;this.b=a.b};a.la.prototype.K=function(){};a.ba=function(a){this.type=a;this.b=a.b;this.Ta=this.zb="";this.F=0;this.timeout=-1;if(l=this.b.Zh)q=require("path"),n=require("fs"),p=q.dirname((window.process||nw.process).execPath)+"\\"};var e=a.ba.prototype,g=null;window.C2_AJAX_DCSide=function(a,b,c){g&&("success"===a?(g.Ta=b,g.zb=c,g.b.trigger(wc.prototype.e.ej,g),g.b.trigger(wc.prototype.e.de,
g)):"error"===a?(g.Ta=b,g.b.trigger(wc.prototype.e.fj,g),g.b.trigger(wc.prototype.e.qf,g)):"progress"===a&&(g.F=c,g.Ta=b,g.b.trigger(wc.prototype.e.jj,g)))};e.K=function(){g=this};e.wb=function(){return{lastData:this.zb}};e.Nb=function(a){this.zb=a.lastData;this.Ta="";this.F=0};var b={},f="";e.Jj=function(a,c,e,g){if(this.b.eb)AppMobi.webview.execute('C2_AJAX_WebSide("'+a+'", "'+c+'", "'+e+'", '+(g?'"'+g+'"':"null")+");");else{var d=this,k=null,h=function(){d.Ta=a;d.b.trigger(wc.prototype.e.fj,d);
d.b.trigger(wc.prototype.e.qf,d)},q=function(){if(l){var b=p+c;n.existsSync(b)?n.readFile(b,{encoding:"utf8"},function(b,c){b?h():(d.Ta=a,d.zb=c.replace(/\r\n/g,"\n"),d.b.trigger(wc.prototype.e.ej,d),d.b.trigger(wc.prototype.e.de,d))}):h()}else h()},A=function(b){b.lengthComputable&&(d.F=b.loaded/b.total,d.Ta=a,d.b.trigger(wc.prototype.e.jj,d))};try{this.b.ud?k=new ActiveXObject("Microsoft.XMLHTTP"):k=new XMLHttpRequest;k.onreadystatechange=function(){4===k.readyState&&(d.Ta=a,k.responseText?d.zb=
k.responseText.replace(/\r\n/g,"\n"):d.zb="",400<=k.status?(d.b.trigger(wc.prototype.e.fj,d),d.b.trigger(wc.prototype.e.qf,d)):l&&!d.zb.length||!l&&0===k.status&&!d.zb.length||(d.b.trigger(wc.prototype.e.ej,d),d.b.trigger(wc.prototype.e.de,d)))};this.b.ud||(k.onerror=q,k.ontimeout=q,k.onabort=q,k.onprogress=A);k.open(e,c);!this.b.ud&&0<=this.timeout&&"undefined"!==typeof k.timeout&&(k.timeout=this.timeout);try{k.responseType="text"}catch(U){}g&&k.setRequestHeader&&!b.hasOwnProperty("Content-Type")&&
k.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(k.setRequestHeader){for(var P in b)if(b.hasOwnProperty(P))try{k.setRequestHeader(P,b[P])}catch(B){}b={}}if(f&&k.overrideMimeType){try{k.overrideMimeType(f)}catch(v){}f=""}g?k.send(g):k.send()}catch(C){q()}}};d.prototype.de=function(a){return pb(a,this.Ta)};d.prototype.ej=function(){return!0};d.prototype.qf=function(a){return pb(a,this.Ta)};d.prototype.fj=function(){return!0};d.prototype.jj=function(a){return pb(a,this.Ta)};
a.e=new d;h.prototype.ut=function(a,b){var c=this;this.b.bi&&!this.b.Hp(b)?this.b.lp(b,function(b){c.Ta=a;c.zb=b.replace(/\r\n/g,"\n");c.b.trigger(wc.prototype.e.ej,c);c.b.trigger(wc.prototype.e.de,c)},function(){c.Ta=a;c.b.trigger(wc.prototype.e.fj,c);c.b.trigger(wc.prototype.e.qf,c)}):this.Jj(a,b,"GET")};h.prototype.zo=function(a,b,c,e){this.Jj(a,b,e,c)};a.C=new h;c.prototype.to=function(a){a.Ya(this.zb)};c.prototype.tt=function(a){a.A(this.F)};a.G=new c})();function xc(d){this.b=d}
(function(){function d(){return a.length?a.pop():[]}function h(c){var d,b;d=0;for(b=c.length;d<b;d++)Array.isArray(c[d])&&h(c[d]);z(c);a.push(c)}function c(){}function l(){}function q(){}var n=xc.prototype;n.la=function(a){this.qa=a;this.b=a.b};n.la.prototype.K=function(){};n.ba=function(a){this.type=a;this.b=a.b};var p=n.ba.prototype,a=[];Array.isArray||(Array.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)});p.K=function(){this.lb=this.m[0];this.Wb=this.m[1];this.xc=
this.m[2];this.Ec||(this.Tc=d());var a=this.Tc;a.length=this.lb;var c,b,f;for(c=0;c<this.lb;c++)for(a[c]||(a[c]=d()),a[c].length=this.Wb,b=0;b<this.Wb;b++)for(a[c][b]||(a[c][b]=d()),a[c][b].length=this.xc,f=0;f<this.xc;f++)a[c][b][f]=0;this.yc=[];this.Nd=[];this.Ff=[];this.Zc=-1};p.Sg=function(){var a;for(a=0;a<this.lb;a++)h(this.Tc[a]);z(this.Tc)};p.Gc=function(a,c,b){a=Math.floor(a);c=Math.floor(c);b=Math.floor(b);return isNaN(a)||0>a||a>this.lb-1||isNaN(c)||0>c||c>this.Wb-1||isNaN(b)||0>b||b>this.xc-
1?0:this.Tc[a][c][b]};p.set=function(a,c,b,d){a=Math.floor(a);c=Math.floor(c);b=Math.floor(b);isNaN(a)||0>a||a>this.lb-1||isNaN(c)||0>c||c>this.Wb-1||isNaN(b)||0>b||b>this.xc-1||(this.Tc[a][c][b]=d)};p.Lv=function(){return JSON.stringify({c2array:!0,size:[this.lb,this.Wb,this.xc],data:this.Tc})};p.wb=function(){return{size:[this.lb,this.Wb,this.xc],data:this.Tc}};p.Nb=function(a){var c=a.size;this.lb=c[0];this.Wb=c[1];this.xc=c[2];this.Tc=a.data};p.Ae=function(a,c,b){0>a&&(a=0);0>c&&(c=0);0>b&&(b=
0);if(this.lb!==a||this.Wb!==c||this.xc!==b){this.lb=a;this.Wb=c;this.xc=b;var f,l,h=this.Tc;h.length=a;for(a=0;a<this.lb;a++)for(ja(h[a])&&(h[a]=d()),h[a].length=c,f=0;f<this.Wb;f++)for(ja(h[a][f])&&(h[a][f]=d()),h[a][f].length=b,l=0;l<this.xc;l++)ja(h[a][f][l])&&(h[a][f][l]=0)}};p.tp=function(){return 0<=this.Zc&&this.Zc<this.yc.length?this.yc[this.Zc]:0};p.up=function(){return 0<=this.Zc&&this.Zc<this.Nd.length?this.Nd[this.Zc]:0};p.Qv=function(){return 0<=this.Zc&&this.Zc<this.Ff.length?this.Ff[this.Zc]:
0};c.prototype.ro=function(a,c,b){return lc(this.Gc(a,0,0),c,b)};c.prototype.ps=function(a,c,b,d){return lc(this.Gc(a,c,0),b,d)};p.jm=function(a){this.b.kf(a.da);a.lf();this.b.yd(a.da)};c.prototype.bs=function(a){var c=this.b.Va().Ua;this.Zc++;var b=this.Zc;b===this.yc.length?(this.yc.push(0),this.Nd.push(0),this.Ff.push(0)):(this.yc[b]=0,this.Nd[b]=0,this.Ff[b]=0);switch(a){case 0:for(this.yc[b]=0;this.yc[b]<this.lb;this.yc[b]++)for(this.Nd[b]=0;this.Nd[b]<this.Wb;this.Nd[b]++)for(this.Ff[b]=0;this.Ff[b]<
this.xc;this.Ff[b]++)this.jm(c);break;case 1:for(this.yc[b]=0;this.yc[b]<this.lb;this.yc[b]++)for(this.Nd[b]=0;this.Nd[b]<this.Wb;this.Nd[b]++)this.jm(c);break;case 2:for(this.yc[b]=0;this.yc[b]<this.lb;this.yc[b]++)this.jm(c)}this.Zc--;return!1};c.prototype.ls=function(a,c){return lc(this.Gc(this.tp(),this.up(),this.Qv()),a,c)};c.prototype.rs=function(a){var c,b,d;for(c=0;c<this.lb;c++)for(b=0;b<this.Wb;b++)for(d=0;d<this.xc;d++)if(this.Tc[c][b][d]===a)return!0;return!1};n.e=new c;l.prototype.es=
function(){var a,c,b;for(a=0;a<this.lb;a++)for(c=0;c<this.Wb;c++)for(b=0;b<this.xc;b++)this.Tc[a][c][b]=0};l.prototype.Ll=function(a,c,b){this.Ae(a,c,b)};l.prototype.Kt=function(a,c){this.set(a,0,0,c)};l.prototype.Lt=function(a,c,b){this.set(a,c,0,b)};l.prototype.Mt=function(a,c,b,d){this.set(a,c,b,d)};l.prototype.yt=function(a){var c=0,b=0,d=this.Tc;if(0!==this.lb&&0!==this.Wb&&0!==this.xc)switch(a){case 0:d.reverse();break;case 1:for(;c<this.lb;c++)d[c].reverse();break;case 2:for(;c<this.lb;c++)for(b=
0;b<this.Wb;b++)d[c][b].reverse()}};n.C=new l;q.prototype.cs=function(a,c,b,d){a.al(this.Gc(c,b||0,d||0))};q.prototype.Xt=function(a){a.W(this.lb)};q.prototype.Cs=function(a){a.W(this.Wb)};q.prototype.ts=function(a){a.W(this.tp())};q.prototype.us=function(a){a.W(this.up())};q.prototype.zl=function(a){a.Ya(this.Lv())};n.G=new q})();function yc(d){this.b=d}
(function(){function d(a){-1===vb.indexOf(a)&&vb.push(a)}function h(a){var b=a.g,c;try{c=b.play()}catch(e){d(a);return}c?c.catch(function(){d(a)}):Qc&&!u.se&&d(a)}function c(){var a,b,c,e;Rc||Nb||!x||(l(),"running"===x.state&&(Rc=!0));var f=vb.slice(0);z(vb);if(!ca)for(a=0,b=f.length;a<b;++a)c=f[a],c.Qa||c.zc||(e=c.g.play())&&e.catch(function(){d(c)})}function l(){"suspended"===x.state&&x.resume&&x.resume();if(x.createBuffer){var a=x.createBuffer(1,220,22050),b=x.createBufferSource();b.buffer=a;b.connect(x.destination);
g(b)}}function q(a){a=Math.pow(10,a/20);isFinite(a)||(a=0);0>a&&(a=0);1<a&&(a=1);return a}function n(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function p(a){a=a.toLowerCase();return ea.hasOwnProperty(a)&&ea[a].length?ea[a][0].Kc():x.destination}function a(){return x.createGain?x.createGain():x.createGainNode()}function e(a){return x.createDelay?x.createDelay(a):x.createDelayNode(a)}function g(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 f(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function m(b,c,e,d,f,g){this.type="filter";this.tb=[b,c,e,d,f,g];this.ja=a();this.N=a();this.N.gain.value=g;this.M=a();this.M.gain.value=1-g;this.bb=x.createBiquadFilter();this.bb.type="number"===typeof this.bb.type?b:gd[b];this.bb.frequency.value=c;this.bb.detune&&(this.bb.detune.value=e);this.bb.Q.value=d;this.bb.gain.value=f;this.ja.connect(this.bb);this.ja.connect(this.M);this.bb.connect(this.N)}function t(b,c,d){this.type="delay";
this.tb=[b,c,d];this.ja=a();this.N=a();this.N.gain.value=d;this.M=a();this.M.gain.value=1-d;this.ri=a();this.Yc=e(b);this.Yc.delayTime.value=b;this.Hj=a();this.Hj.gain.value=c;this.ja.connect(this.ri);this.ja.connect(this.M);this.ri.connect(this.N);this.ri.connect(this.Yc);this.Yc.connect(this.Hj);this.Hj.connect(this.ri)}function w(b,c,e,d){this.type="convolve";this.tb=[c,e,d];this.ja=a();this.N=a();this.N.gain.value=e;this.M=a();this.M.gain.value=1-e;this.vf=x.createConvolver();b&&(this.vf.normalize=
c,this.vf.buffer=b);this.ja.connect(this.vf);this.ja.connect(this.M);this.vf.connect(this.N)}function E(b,c,d,f,k){this.type="flanger";this.tb=[b,c,d,f,k];this.ja=a();this.M=a();this.M.gain.value=1-k/2;this.N=a();this.N.gain.value=k/2;this.Qj=a();this.Qj.gain.value=f;this.Yc=e(b+c);this.Yc.delayTime.value=b;this.Cb=x.createOscillator();this.Cb.frequency.value=d;this.Cc=a();this.Cc.gain.value=c;this.ja.connect(this.Yc);this.ja.connect(this.M);this.Yc.connect(this.N);this.Yc.connect(this.Qj);this.Qj.connect(this.Yc);
this.Cb.connect(this.Cc);this.Cc.connect(this.Yc.delayTime);g(this.Cb)}function H(b,c,e,d,f,k){this.type="phaser";this.tb=[b,c,e,d,f,k];this.ja=a();this.M=a();this.M.gain.value=1-k/2;this.N=a();this.N.gain.value=k/2;this.bb=x.createBiquadFilter();this.bb.type="number"===typeof this.bb.type?7:"allpass";this.bb.frequency.value=b;this.bb.detune&&(this.bb.detune.value=c);this.bb.Q.value=e;this.Cb=x.createOscillator();this.Cb.frequency.value=f;this.Cc=a();this.Cc.gain.value=d;this.ja.connect(this.bb);
this.ja.connect(this.M);this.bb.connect(this.N);this.Cb.connect(this.Cc);this.Cc.connect(this.bb.frequency);g(this.Cb)}function k(b){this.type="gain";this.tb=[b];this.pa=a();this.pa.gain.value=b}function r(b,c){this.type="tremolo";this.tb=[b,c];this.pa=a();this.pa.gain.value=1-c/2;this.Cb=x.createOscillator();this.Cb.frequency.value=b;this.Cc=a();this.Cc.gain.value=c/2;this.Cb.connect(this.Cc);this.Cc.connect(this.pa.gain);g(this.Cb)}function y(b,c){this.type="ringmod";this.tb=[b,c];this.ja=a();this.N=
a();this.N.gain.value=c;this.M=a();this.M.gain.value=1-c;this.Fi=a();this.Fi.gain.value=0;this.Cb=x.createOscillator();this.Cb.frequency.value=b;this.Cb.connect(this.Fi.gain);g(this.Cb);this.ja.connect(this.Fi);this.ja.connect(this.M);this.Fi.connect(this.N)}function A(b,c,e,d,f){this.type="distortion";this.tb=[b,c,e,d,f];this.ja=a();this.Ok=a();this.Nk=a();this.Jx(e,Math.pow(10,d/20));this.N=a();this.N.gain.value=f;this.M=a();this.M.gain.value=1-f;this.xl=x.createWaveShaper();this.Fj=new Float32Array(65536);
this.Jv(b,c);this.xl.Fj=this.Fj;this.ja.connect(this.Ok);this.ja.connect(this.M);this.Ok.connect(this.xl);this.xl.connect(this.Nk);this.Nk.connect(this.N)}function U(a,b,c,e,d){this.type="compressor";this.tb=[a,b,c,e,d];this.pa=x.createDynamicsCompressor();try{this.pa.threshold.value=a,this.pa.knee.value=b,this.pa.ratio.value=c,this.pa.attack.value=e,this.pa.release.value=d}catch(f){}}function P(a,b){this.type="analyser";this.tb=[a,b];this.pa=x.createAnalyser();this.pa.fftSize=a;this.pa.smoothingTimeConstant=
b;this.Hv=new Float32Array(this.pa.frequencyBinCount);this.yr=new Uint8Array(a);this.xi=0}function B(){this.xa=null;this.rk=0}function v(b,c){this.src=b;this.ca=J;this.Rd=c;this.mj=!1;var e=this;this.Og=this.Ug=null;this.Vg=[];this.Wk=0;this.oo=this.Oj=this.Er=this.Jk=!1;1===J&&c&&!wb&&(this.ca=0,this.Ug=a());this.fe=this.ma=null;var d;switch(this.ca){case 0:this.ma=new Audio;this.ma.crossOrigin="anonymous";this.ma.addEventListener("canplaythrough",function(){e.oo=!0});1===J&&x.createMediaElementSource&&
!/wiiu/i.test(navigator.userAgent)&&(this.Er=!0,this.ma.addEventListener("canplay",function(){!e.Og&&e.ma&&(e.Og=x.createMediaElementSource(e.ma),e.Og.connect(e.Ug))}));this.ma.autoplay=!1;this.ma.Hz="auto";this.ma.src=b;break;case 1:u.bi?u.kp(b,function(a){e.fe=a;e.bp()},function(){e.Oj=!0}):(d=new XMLHttpRequest,d.open("GET",b,!0),d.responseType="arraybuffer",d.onload=function(){e.fe=d.response;e.bp()},d.onerror=function(){e.Oj=!0},d.send());break;case 2:this.ma=!0;break;case 3:this.ma=!0}}function C(b,
c){var e=this;this.tag=c;this.Qa=this.Od=!0;this.src=b.src;this.buffer=b;this.ca=J;this.Rd=b.Rd;this.playbackRate=1;this.zg=!0;this.zc=this.Pc=!1;this.pc=0;this.ci=this.Eg=this.Sd=!1;this.volume=1;this.un=function(a){if(!e.zc&&!e.Pc){var b=this;b||(b=a.target);b===e.lj&&(e.zg=!0,e.Qa=!0,I=e.tag,u.trigger(yc.prototype.e.gj,G))}};this.lj=null;this.Bg=1===Da&&!this.Rd||2===Da;this.Pg=1;this.startTime=this.Bg?u.yb.R:u.Ge.R;this.gb=this.mb=null;this.Td=!1;this.Ob=null;this.Qq=this.Pq=this.Oq=this.Nq=this.Sq=
this.Rq=0;this.g=null;var d=!1;1!==this.ca||0!==this.buffer.ca||this.buffer.Er||(this.ca=0);switch(this.ca){case 0:this.Rd?(this.g=b.ma,d=!b.mj,b.mj=!0):(this.g=new Audio,this.g.crossOrigin="anonymous",this.g.autoplay=!1,this.g.src=b.ma.src,d=!0);d&&this.g.addEventListener("ended",function(){I=e.tag;e.Qa=!0;u.trigger(yc.prototype.e.gj,G)});break;case 1:this.mb=a();this.mb.connect(p(c));1===this.buffer.ca?b.ma&&(this.g=x.createBufferSource(),this.g.buffer=b.ma,this.g.connect(this.mb)):(this.g=this.buffer.ma,
this.buffer.Ug.connect(this.mb),this.buffer.mj||(this.buffer.mj=!0,this.buffer.ma.addEventListener("ended",function(){I=e.tag;e.Qa=!0;u.trigger(yc.prototype.e.gj,G)})));break;case 2:this.g=new window.Media(R+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(e.zg=!0,e.Qa=!0,I=e.tag,u.trigger(yc.prototype.e.gj,G))});break;case 3:this.g=!0}}function Q(a,b){var c=a.Lf()?1:0,e=b.Lf()?1:0;return c===e?0:c<e?1:-1}function Z(a,b){z(Fa);if(a.length){var c,e,d;c=0;for(e=M.length;c<e;c++)d=M[c],
pb(a,d.tag)&&Fa.push(d);b&&Fa.sort(Q)}else ta&&!ta.If()&&(z(Fa),Fa[0]=ta)}function F(a,b){ea.hasOwnProperty(a)?ea[a].push(b):ea[a]=[b];var c,e,d,f,g=x.destination;if(ea.hasOwnProperty(a)&&(d=ea[a],d.length))for(g=d[0].Kc(),c=0,e=d.length;c<e;c++)f=d[c],c+1===e?f.Vc(x.destination):f.Vc(d[c+1].Kc());Z(a);c=0;for(e=Fa.length;c<e;c++)Fa[c].ux(g);Sa&&Pb===a&&(Sa.disconnect(),Sa.connect(g))}function L(){}function N(){}function S(){}var T=yc.prototype;T.la=function(a){this.qa=a;this.b=a.b};T.la.prototype.K=
function(){};var u=null,G=null,I="",R="",J=0,x=null,O=[],M=[],ta=null,V=!1,Da=0,ca=!1,ua=1,Xa=0,Ya=0,Nb=!1,Ob=1,Qb=1,Sc=10,Tc=1E4,Uc=1,Sa=null,Pb="",Qc=!1,vb=[],wb=!1,Rc=!1;document.addEventListener("pointerup",c,!0);document.addEventListener("touchend",c,!0);document.addEventListener("click",c,!0);document.addEventListener("keydown",c,!0);document.addEventListener("gamepadconnected",c,!0);var ea={},gd="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");m.prototype.Vc=
function(a){this.N.disconnect();this.N.connect(a);this.M.disconnect();this.M.connect(a)};m.prototype.remove=function(){this.ja.disconnect();this.bb.disconnect();this.N.disconnect();this.M.disconnect()};m.prototype.Kc=function(){return this.ja};t.prototype.Vc=function(a){this.N.disconnect();this.N.connect(a);this.M.disconnect();this.M.connect(a)};t.prototype.remove=function(){this.ja.disconnect();this.ri.disconnect();this.Yc.disconnect();this.Hj.disconnect();this.N.disconnect();this.M.disconnect()};
t.prototype.Kc=function(){return this.ja};w.prototype.Vc=function(a){this.N.disconnect();this.N.connect(a);this.M.disconnect();this.M.connect(a)};w.prototype.remove=function(){this.ja.disconnect();this.vf.disconnect();this.N.disconnect();this.M.disconnect()};w.prototype.Kc=function(){return this.ja};E.prototype.Vc=function(a){this.M.disconnect();this.M.connect(a);this.N.disconnect();this.N.connect(a)};E.prototype.remove=function(){this.ja.disconnect();this.Yc.disconnect();this.Cb.disconnect();this.Cc.disconnect();
this.M.disconnect();this.N.disconnect();this.Qj.disconnect()};E.prototype.Kc=function(){return this.ja};H.prototype.Vc=function(a){this.M.disconnect();this.M.connect(a);this.N.disconnect();this.N.connect(a)};H.prototype.remove=function(){this.ja.disconnect();this.bb.disconnect();this.Cb.disconnect();this.Cc.disconnect();this.M.disconnect();this.N.disconnect()};H.prototype.Kc=function(){return this.ja};k.prototype.Vc=function(a){this.pa.disconnect();this.pa.connect(a)};k.prototype.remove=function(){this.pa.disconnect()};
k.prototype.Kc=function(){return this.pa};r.prototype.Vc=function(a){this.pa.disconnect();this.pa.connect(a)};r.prototype.remove=function(){this.Cb.disconnect();this.Cc.disconnect();this.pa.disconnect()};r.prototype.Kc=function(){return this.pa};y.prototype.Vc=function(a){this.N.disconnect();this.N.connect(a);this.M.disconnect();this.M.connect(a)};y.prototype.remove=function(){this.Cb.disconnect();this.Fi.disconnect();this.ja.disconnect();this.N.disconnect();this.M.disconnect()};y.prototype.Kc=function(){return this.ja};
A.prototype.Jx=function(a,b){.01>a&&(a=.01);this.Ok.gain.value=a;this.Nk.gain.value=Math.pow(1/a,.6)*b};A.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};A.prototype.Jv=function(a,b){for(var c=Math.pow(10,a/20),e=Math.pow(10,b/20),d=0,f=0;32768>f;++f)d=f/32768,d=this.shape(d,c,e),this.Fj[32768+f]=d,this.Fj[32768-f-1]=-d};A.prototype.Vc=function(a){this.N.disconnect();this.N.connect(a);this.M.disconnect();this.M.connect(a)};
A.prototype.remove=function(){this.ja.disconnect();this.Ok.disconnect();this.xl.disconnect();this.Nk.disconnect();this.N.disconnect();this.M.disconnect()};A.prototype.Kc=function(){return this.ja};U.prototype.Vc=function(a){this.pa.disconnect();this.pa.connect(a)};U.prototype.remove=function(){this.pa.disconnect()};U.prototype.Kc=function(){return this.pa};P.prototype.Db=function(){this.pa.getFloatFrequencyData(this.Hv);this.pa.getByteTimeDomainData(this.yr);for(var a=this.pa.fftSize,b=0,c=this.xi=
0,e=0;b<a;b++)e=(this.yr[b]-128)/128,0>e&&(e=-e),this.xi<e&&(this.xi=e),c+=e*e;this.xi=n(this.xi);n(Math.sqrt(c/a))};P.prototype.Vc=function(a){this.pa.disconnect();this.pa.connect(a)};P.prototype.remove=function(){this.pa.disconnect()};P.prototype.Kc=function(){return this.pa};B.prototype.Hi=function(a){this.xa=a};B.prototype.bk=function(){return!!this.xa};B.prototype.Db=function(){};v.prototype.vx=function(){var a,b,c,e;c=a=0;for(b=M.length;a<b;++a)e=M[a],M[c]=e,e.buffer===this?e.stop():++c;M.length=
c;this.Og&&(this.Og.disconnect(),this.Og=null);this.Ug&&(this.Ug.disconnect(),this.Ug=null);this.fe=this.ma=null};v.prototype.bp=function(){if(!this.ma&&this.fe){var a=this;if(x.decodeAudioData)x.decodeAudioData(this.fe,function(b){a.ma=b;a.fe=null;var c,e,d;if(ja(a.Kk)||ca)ja(a.Bj)||(c=a.Bj.vf,c.normalize=a.Aq,c.buffer=b);else if(a.Vg.length){c=0;for(e=a.Vg.length;c<e;c++){b=a.Vg[c];d=new C(a,b.Hr);d.Pn(!0);if("undefined"!==typeof b.Cq&&(b.xa=u.Zj(b.Cq),!b.xa))continue;if(b.xa){var f=Ua(b.xa.x,b.xa.y,
-b.xa.k.Lb(),Xa,Ya,!0),g=Ua(b.xa.x,b.xa.y,-b.xa.k.Lb(),Xa,Ya,!1);d.On(f,g,Ka(b.xa.j-b.xa.k.Lb()),b.Lm,b.nn,b.rn);d.Hi(b.xa)}else d.On(b.x,b.y,b.kg,b.Lm,b.nn,b.rn);d.play(a.hn,a.lo,a.Wk);a.Jk&&d.pause();M.push(d)}z(a.Vg)}else d=new C(a,a.Kk||""),d.play(a.hn,a.lo,a.Wk),a.Jk&&d.pause(),M.push(d)},function(){a.Oj=!0});else if(this.ma=x.createBuffer(this.fe,!1),this.fe=null,ja(this.Kk)||ca)ja(this.Bj)||(b=this.Bj.vf,b.normalize=this.Aq,b.buffer=this.ma);else{var b=new C(this,this.Kk);b.play(this.hn,this.lo,
this.Wk);this.Jk&&b.pause();M.push(b)}}};v.prototype.Kp=function(){switch(this.ca){case 0:var a=4<=this.ma.readyState;a&&(this.oo=!0);return a||this.oo;case 1:return!!this.fe||!!this.ma;case 2:return!0;case 3:return!0}return!1};v.prototype.Bw=function(){switch(this.ca){case 0:return this.Kp();case 1:return!!this.ma;case 2:return!0;case 3:return!0}return!1};v.prototype.rw=function(){switch(this.ca){case 0:return!!this.ma.error;case 1:return this.Oj}return!1};C.prototype.If=function(){switch(this.ca){case 0:return this.g.ended;
case 1:return 1===this.buffer.ca?!this.Od&&!this.Qa&&this.g.loop||this.zc?!1:this.zg:this.g.ended;case 2:return this.zg;case 3:!0}return!0};C.prototype.lu=function(){return this.Od||this.Qa?!0:this.If()};C.prototype.Pn=function(a){1===J&&(!this.Td&&a?this.mb&&(this.gb||(this.gb=x.createPanner(),this.gb.panningModel="number"===typeof this.gb.panningModel?Ob:["equalpower","HRTF","soundfield"][Ob],this.gb.distanceModel="number"===typeof this.gb.distanceModel?Qb:["linear","inverse","exponential"][Qb],
this.gb.refDistance=Sc,this.gb.maxDistance=Tc,this.gb.rolloffFactor=Uc),this.mb.disconnect(),this.mb.connect(this.gb),this.gb.connect(p(this.tag)),this.Td=!0):this.Td&&!a&&this.mb&&(this.gb.disconnect(),this.mb.disconnect(),this.mb.connect(p(this.tag)),this.Td=!1))};C.prototype.On=function(a,b,c,e,d,f){this.Td&&1===J&&(this.gb.setPosition(a,b,0),this.gb.setOrientation(Math.cos(D(c)),Math.sin(D(c)),0),this.gb.coneInnerAngle=e,this.gb.coneOuterAngle=d,this.gb.coneOuterGain=f,this.Rq=a,this.Sq=b,this.Nq=
c,this.Oq=e,this.Pq=d,this.Qq=f)};C.prototype.Hi=function(a){this.Td&&1===J&&(this.Ob||(this.Ob=new B),this.Ob.Hi(a))};C.prototype.Db=function(a){if(this.Td&&1===J&&this.Ob&&this.Ob.bk()&&this.Lf()){this.Ob.Db(a);a=this.Ob.xa;var b=Ua(a.x,a.y,-a.k.Lb(),Xa,Ya,!0),c=Ua(a.x,a.y,-a.k.Lb(),Xa,Ya,!1);this.gb.setPosition(b,c,0);b=0;"undefined"!==typeof this.Ob.xa.j&&(b=a.j-a.k.Lb(),this.gb.setOrientation(Math.cos(b),Math.sin(b),0))}};C.prototype.play=function(a,c,e,d){var f=this.g;this.Sd=a;this.volume=
c;e=e||0;d=d||0;switch(this.ca){case 0:1!==f.playbackRate&&(f.playbackRate=1);f.volume!==c*ua&&(f.volume=c*ua);f.loop!==a&&(f.loop=a);f.muted&&(f.muted=!1);if(f.currentTime!==e)try{f.currentTime=e}catch(k){}h(this);break;case 1:this.muted=!1;this.Pg=1;if(1===this.buffer.ca)this.mb.gain.value=c*ua,this.Od||(this.g=x.createBufferSource(),this.g.buffer=this.buffer.ma,this.g.connect(this.mb)),this.g.onended=this.un,this.lj=this.g,this.g.loop=a,this.zg=!1,0===e?g(this.g,d):b(this.g,e,this.Ze(),d);else{1!==
f.playbackRate&&(f.playbackRate=1);f.loop!==a&&(f.loop=a);f.volume=c*ua;if(f.currentTime!==e)try{f.currentTime=e}catch(l){}h(this)}break;case 2:(!this.Od&&this.Qa||0!==e)&&f.seekTo(e);f.play();this.zg=!1;break;case 3:u.eb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Bg?u.yb.R:u.Ge.R)-e;this.zc=this.Qa=this.Od=!1};C.prototype.stop=function(){switch(this.ca){case 0:this.g.paused||this.g.pause();break;case 1:1===this.buffer.ca?f(this.g):
this.g.paused||this.g.pause();break;case 2:this.g.stop();break;case 3:u.eb&&AppMobi.context.stopSound(this.src)}this.Qa=!0;this.zc=!1};C.prototype.pause=function(){if(!(this.Od||this.Qa||this.If()||this.zc)){switch(this.ca){case 0:this.g.paused||this.g.pause();break;case 1:1===this.buffer.ca?(this.pc=this.Em(!0),this.Sd&&(this.pc=this.pc%this.Ze()),this.zc=!0,f(this.g)):this.g.paused||this.g.pause();break;case 2:this.g.pause();break;case 3:u.eb&&AppMobi.context.stopSound(this.src)}this.zc=!0}};C.prototype.zx=
function(){if(!(this.Od||this.Qa||this.If())&&this.zc){switch(this.ca){case 0:h(this);break;case 1:1===this.buffer.ca?(this.g=x.createBufferSource(),this.g.buffer=this.buffer.ma,this.g.connect(this.mb),this.g.onended=this.un,this.lj=this.g,this.g.loop=this.Sd,this.mb.gain.value=ua*this.volume*this.Pg,this.ql(),this.startTime=(this.Bg?u.yb.R:u.Ge.R)-this.pc/(this.playbackRate||.001),b(this.g,this.pc,this.Ze())):h(this);break;case 2:this.g.play();break;case 3:u.eb&&AppMobi.context.resumeSound(this.src)}this.zc=
!1}};C.prototype.seek=function(a){if(!(this.Od||this.Qa||this.If()))switch(this.ca){case 0:try{this.g.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.ca)this.zc?this.pc=a:(this.pause(),this.pc=a,this.zx());else try{this.g.currentTime=a}catch(c){}break;case 3:u.eb&&AppMobi.context.seekSound(this.src,a)}};C.prototype.ux=function(a){1===this.ca&&(this.Td?(this.gb.disconnect(),this.gb.connect(a)):(this.mb.disconnect(),this.mb.connect(a)))};C.prototype.Ze=function(){var a=0;switch(this.ca){case 0:"undefined"!==
typeof this.g.duration&&(a=this.g.duration);break;case 1:a=this.buffer.ma.duration;break;case 2:a=this.g.getDuration();break;case 3:u.eb&&(a=AppMobi.context.getDurationSound(this.src))}return a};C.prototype.Em=function(a){var b=this.Ze(),c=0;switch(this.ca){case 0:"undefined"!==typeof this.g.currentTime&&(c=this.g.currentTime);break;case 1:if(1===this.buffer.ca){if(this.zc)return this.pc;c=(this.Bg?u.yb.R:u.Ge.R)-this.startTime}else"undefined"!==typeof this.g.currentTime&&(c=this.g.currentTime);break;
case 3:u.eb&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.Sd&&c>b&&(c=b);return c};C.prototype.Lf=function(){return!this.zc&&!this.Od&&!this.Qa&&!this.If()};C.prototype.Qx=function(){return!this.Od&&!this.Qa&&!this.If()};C.prototype.Px=function(a){this.volume=a;this.Ur()};C.prototype.Ur=function(){var a=this.volume*ua;isFinite(a)||(a=0);switch(this.ca){case 0:"undefined"!==typeof this.g.volume&&this.g.volume!==a&&(this.g.volume=a);break;case 1:1===this.buffer.ca?
this.mb.gain.value=a*this.Pg:"undefined"!==typeof this.g.volume&&this.g.volume!==a&&(this.g.volume=a)}};C.prototype.Kj=function(a){switch(this.ca){case 0:this.g.muted!==!!a&&(this.g.muted=!!a);break;case 1:1===this.buffer.ca?(this.Pg=a?0:1,this.mb.gain.value=ua*this.volume*this.Pg):this.g.muted!==!!a&&(this.g.muted=!!a)}};C.prototype.Kx=function(){this.Eg=!0;this.Kj(this.Eg||this.ci)};C.prototype.rr=function(a){this.ci=!!a;this.Kj(this.Eg||this.ci)};C.prototype.ql=function(){var a=this.playbackRate;
this.Bg&&(a*=u.mh);switch(this.ca){case 0:this.g.playbackRate!==a&&(this.g.playbackRate=a);break;case 1:1===this.buffer.ca?this.g.playbackRate.value!==a&&(this.g.playbackRate.value=a):this.g.playbackRate!==a&&(this.g.playbackRate=a)}};C.prototype.Nx=function(a){switch(this.ca){case 0:a?this.Lf()?(this.Pc=!0,this.g.pause()):this.Pc=!1:this.Pc&&(this.g.play(),this.Pc=!1);break;case 1:a?this.Lf()?(this.Pc=!0,1===this.buffer.ca?(this.pc=this.Em(!0),this.Sd&&(this.pc=this.pc%this.Ze()),f(this.g)):this.g.pause()):
this.Pc=!1:this.Pc&&(1===this.buffer.ca?(this.g=x.createBufferSource(),this.g.buffer=this.buffer.ma,this.g.connect(this.mb),this.g.onended=this.un,this.lj=this.g,this.g.loop=this.Sd,this.mb.gain.value=ua*this.volume*this.Pg,this.ql(),this.startTime=(this.Bg?u.yb.R:u.Ge.R)-this.pc/(this.playbackRate||.001),b(this.g,this.pc,this.Ze())):this.g.play(),this.Pc=!1);break;case 2:a?this.Lf()?(this.g.pause(),this.Pc=!0):this.Pc=!1:this.Pc&&(this.Pc=!1,this.g.play())}};T.ba=function(a){this.type=a;u=this.b=
a.b;G=this;this.Ac=null;this.gi=-600;this.b.bi&&(wb=!0);!(this.b.Hg||this.b.Vh&&(this.b.Rm||this.b.ek))||this.b.gk||this.b.ob||this.b.Ip||wb||(Qc=!0);x=null;"undefined"!==typeof AudioContext?(J=1,x=new AudioContext):"undefined"!==typeof webkitAudioContext&&(J=1,x=new webkitAudioContext);this.b.Hg&&x&&(x.close&&x.close(),"undefined"!==typeof AudioContext?x=new AudioContext:"undefined"!==typeof webkitAudioContext&&(x=new webkitAudioContext));1!==J&&(this.b.Mc&&"undefined"!==typeof window.Media?J=2:
this.b.Jp&&(J=3));2===J&&(R=location.href,a=R.lastIndexOf("/"),-1<a&&(R=R.substr(0,a+1)),R=R.replace("file://",""));if(this.b.Dw&&this.b.Ew&&"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.Ie(this);else{if(this.b.eb)V=this.b.Vh;else try{V=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')&&!this.b.ik}catch(b){V=!1}this.b.kl(this)}};var Ga=T.ba.prototype;Ga.K=function(){this.b.lg=
this;Da=this.m[0];this.ze=this.m[1];this.hx=0!==this.m[2];this.yq=0;Ob=this.m[3];Qb=this.m[4];this.gi=-this.m[5];Sc=this.m[6];Tc=this.m[7];Uc=this.m[8];this.Ac=new B;var a=this.b.J||this.b.width,b=this.b.I||this.b.height;1===J&&(x.listener.setPosition(a/2,b/2,this.gi),x.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Sa&&Sa.disconnect();Pb=b.toLowerCase();Sa=x.createMediaStreamSource(a);Sa.connect(p(Pb))});this.b.Nl(function(a){G.bx(a)});var c=this;this.b.Ho(function(a){c.Xw(a)})};
Ga.Xw=function(a){var b,c,e;b=0;for(c=M.length;b<c;b++)e=M[b],e.Ob&&e.Ob.xa===a&&(e.Ob.xa=null,e.Td&&e.Lf()&&e.Sd&&e.stop());this.Ac.xa===a&&(this.Ac.xa=null)};Ga.wb=function(){var a={silent:ca,masterVolume:ua,listenerZ:this.gi,listenerUid:this.Ac.bk()?this.Ac.xa.uid:-1,playing:[],effects:{}},b=a.playing,c,e,d,f,g,k;c=0;for(e=M.length;c<e;c++)d=M[c],!d.Qx()||3===this.ze||d.Rd&&1===this.ze||!d.Rd&&2===this.ze||(f=d.Em(),d.Sd&&(f=f%d.Ze()),f={tag:d.tag,buffersrc:d.buffer.src,is_music:d.Rd,playbackTime:f,
volume:d.volume,looping:d.Sd,muted:d.Eg,playbackRate:d.playbackRate,paused:d.zc,resume_position:d.pc},d.Td&&(f.pan={},k=f.pan,d.Ob&&d.Ob.bk()?k.objUid=d.Ob.xa.uid:(k.x=d.Rq,k.y=d.Sq,k.a=d.Nq),k.ia=d.Oq,k.oa=d.Pq,k.og=d.Qq),b.push(f));b=a.effects;for(g in ea)if(ea.hasOwnProperty(g)){d=[];c=0;for(e=ea[g].length;c<e;c++)d.push({type:ea[g][c].type,params:ea[g][c].tb});b[g]=d}return a};var ib=[];Ga.Nb=function(a){var b=a.silent;ua=a.masterVolume;this.gi=a.listenerZ;this.Ac.Hi(null);var c=a.listenerUid;
-1!==c&&(this.Ac.rk=c,ib.push(this.Ac));var c=a.playing,e,d,f,g,l,h,q,n,p,v,u;if(3!==this.ze)for(e=0,d=M.length;e<d;e++)p=M[e],p.Rd&&1===this.ze||(p.Rd||2!==this.ze)&&p.stop();for(l in ea)if(ea.hasOwnProperty(l))for(e=0,d=ea[l].length;e<d;e++)ea[l][e].remove();ab(ea);for(l in a.effects)if(a.effects.hasOwnProperty(l))for(h=a.effects[l],e=0,d=h.length;e<d;e++)switch(f=h[e].type,v=h[e].params,f){case "filter":F(l,new m(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "delay":F(l,new t(v[0],v[1],v[2]));break;
case "convolve":f=v[2];p=this.Wj(f,!1);p.ma?f=new w(p.ma,v[0],v[1],f):(f=new w(null,v[0],v[1],f),p.Aq=v[0],p.Bj=f);F(l,f);break;case "flanger":F(l,new E(v[0],v[1],v[2],v[3],v[4]));break;case "phaser":F(l,new H(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "gain":F(l,new k(v[0]));break;case "tremolo":F(l,new r(v[0],v[1]));break;case "ringmod":F(l,new y(v[0],v[1]));break;case "distortion":F(l,new A(v[0],v[1],v[2],v[3],v[4]));break;case "compressor":F(l,new U(v[0],v[1],v[2],v[3],v[4]));break;case "analyser":F(l,
new P(v[0],v[1]))}e=0;for(d=c.length;e<d;e++)3===this.ze||(a=c[e],f=a.buffersrc,g=a.is_music,l=a.tag,h=a.playbackTime,q=a.looping,n=a.volume,u=(v=a.pan)&&v.hasOwnProperty("objUid")?v.objUid:-1,g&&1===this.ze)||!g&&2===this.ze||((p=this.wm(f,l,g,q,n))?(p.pc=a.resume_position,p.Pn(!!v),p.play(q,n,h),p.ql(),p.Ur(),p.Kj(p.Eg||p.ci),a.paused&&p.pause(),a.muted&&p.Kx(),p.Kj(p.Eg||p.ci),v&&(-1!==u?(p.Ob=p.Ob||new B,p.Ob.rk=u,ib.push(p.Ob)):p.On(v.x,v.y,v.a,v.ia,v.oa,v.og))):(p=this.Wj(f,g),p.Wk=h,p.Jk=a.paused,
v&&(-1!==u?p.Vg.push({Cq:u,Lm:v.ia,nn:v.oa,rn:v.og,Hr:l}):p.Vg.push({x:v.x,y:v.y,kg:v.a,Lm:v.ia,nn:v.oa,rn:v.og,Hr:l}))));if(b&&!ca){e=0;for(d=M.length;e<d;e++)M[e].rr(!0);ca=!0}else if(!b&&ca){e=0;for(d=M.length;e<d;e++)M[e].rr(!1);ca=!1}};Ga.Ne=function(){var a,b,c,e;a=0;for(b=ib.length;a<b;a++)c=ib[a],e=this.b.Zj(c.rk),c.Hi(e),c.rk=-1,e&&(Xa=e.x,Ya=e.y);z(ib)};Ga.bx=function(a){if(!this.hx){!a&&x&&x.resume&&(x.resume(),Nb=!1);var b,c;b=0;for(c=M.length;b<c;b++)M[b].Nx(a);a&&x&&x.suspend&&(x.suspend(),
Nb=!0)}};Ga.Db=function(){var a=this.b.me,b,c,e;b=0;for(c=M.length;b<c;b++)e=M[b],e.Db(a),0!==Da&&e.ql();var d,f;for(d in ea)if(ea.hasOwnProperty(d))for(e=ea[d],b=0,c=e.length;b<c;b++)f=e[b],f.Db&&f.Db();1===J&&this.Ac.bk()&&(this.Ac.Db(a),Xa=this.Ac.xa.x,Ya=this.Ac.xa.y,x.listener.setPosition(this.Ac.xa.x,this.Ac.xa.y,this.gi))};var jb=[];Ga.Lx=function(a){var b,c,e,d,f,g=0;b=0;for(c=a.length;b<c;++b)if(e=a[b],d=e[0],e=2*e[1],(f=4<d.length&&".ogg"===d.substr(d.length-4))&&V||!f&&!V)jb.push({filename:d,
size:e,xa:null}),g+=e;return g};Ga.Sx=function(){var a,b,c,e;a=0;for(b=jb.length;a<b;++a)c=jb[a],e=this.b.Rj+c.filename,c.xa=this.Wj(e,!1)};Ga.Wv=function(){var a=0,b,c,e;b=0;for(c=jb.length;b<c;++b)e=jb[b],e.xa.Bw()||e.xa.rw()||this.b.ob||this.b.ek?a+=e.size:e.xa.Kp()&&(a+=Math.floor(e.size/2));return a};Ga.wx=function(){var a,b,c,e;c=a=0;for(b=O.length;a<b;++a)e=O[a],O[c]=e,e.Rd?e.vx():++c;O.length=c};Ga.Wj=function(a,b){var c,e,d,f=null;c=0;for(e=O.length;c<e;c++)if(d=O[c],d.src===a){f=d;break}f||
(wb&&b&&this.wx(),f=new v(a,b),O.push(f));return f};Ga.wm=function(a,b,c,e,d){var f,g,k;f=0;for(g=M.length;f<g;f++)if(k=M[f],k.src===a&&(k.lu()||c))return k.tag=b,k;a=this.Wj(a,c);if(!a.ma)return"<preload>"!==b&&(a.Kk=b,a.hn=e,a.lo=d),null;k=new C(a,b);M.push(k);return k};var Fa=[];L.prototype.gj=function(a){return pb(I,a)};T.e=new L;N.prototype.Play=function(a,b,c,e){!ca&&(c=q(c),ta=this.wm(this.b.Rj+a[0]+(V?".ogg":".m4a"),e,a[1],0!==b,c))&&(ta.Pn(!1),ta.play(0!==b,c,0,this.yq),this.yq=0)};N.prototype.It=
function(a,b){Z(a);var c=q(b),e,d;e=0;for(d=Fa.length;e<d;e++)Fa[e].Px(c)};N.prototype.qt=function(a){if(!ca){var b=a[1];a=this.b.Rj+a[0]+(V?".ogg":".m4a");3===J?this.b.eb?AppMobi.context.loadSound(a):AppMobi.player.loadSound(a):2!==J&&this.wm(a,"<preload>",b,!1)}};N.prototype.Rt=function(a){Z(a);var b;a=0;for(b=Fa.length;a<b;a++)Fa[a].stop()};T.C=new N;S.prototype.ws=function(a,b){Z(b,!0);Fa.length?a.A(Fa[0].Ze()):a.A(0)};T.G=new S})();function zc(d){this.b=d}
(function(){function d(){q&&n&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(a){p.ax(a)})}function h(){}var c=zc.prototype;c.la=function(a){this.qa=a;this.b=a.b};var l=c.la.prototype;l.K=function(){};var q=!1,n=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.serviceWorker){var a=document.createElement("script");a.onload=function(){q=!0;d()};a.src="offlineClient.js";document.head.appendChild(a)}});var p=null;l.Gq=function(){n=
!0;d()};c.ba=function(a){this.type=a;this.b=a.b};l=c.ba.prototype;l.K=function(){var a=this;window.addEventListener("resize",function(){a.b.trigger(zc.prototype.e.Fl,a)});p=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){a.b.trigger(zc.prototype.e.Cl,a)}),window.addEventListener("offline",function(){a.b.trigger(zc.prototype.e.Bl,a)}));this.b.eb||(document.addEventListener("appMobi.device.update.available",function(){a.b.trigger(zc.prototype.e.jg,a)}),document.addEventListener("backbutton",
function(){a.b.trigger(zc.prototype.e.Ke,a)}),document.addEventListener("menubutton",function(){a.b.trigger(zc.prototype.e.uh,a)}),document.addEventListener("searchbutton",function(){a.b.trigger(zc.prototype.e.Hl,a)}),document.addEventListener("tizenhwkey",function(c){var d;switch(c.keyName){case "back":d=a.b.trigger(zc.prototype.e.Ke,a);!d&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(d=a.b.trigger(zc.prototype.e.uh,a))||c.preventDefault()}}));this.b.ik&&
"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(c){a.b.trigger(zc.prototype.e.Ke,a)&&(c.handled=!0)}):this.b.Np&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!a.b.trigger(zc.prototype.e.Ke,a)});this.b.Nl(function(c){c?a.b.trigger(zc.prototype.e.Dl,a):a.b.trigger(zc.prototype.e.El,a)})};l.ax=function(a){a=a.data.type;"downloading-update"===a?this.b.trigger(zc.prototype.e.mt,this):"update-ready"===
a||"update-pending"===a?this.b.trigger(zc.prototype.e.jg,this):"offline-ready"===a&&this.b.trigger(zc.prototype.e.ft,this)};h.prototype.Cl=function(){return!0};h.prototype.Bl=function(){return!0};h.prototype.jg=function(){return!0};h.prototype.El=function(){return!0};h.prototype.Dl=function(){return!0};h.prototype.Fl=function(){return!0};h.prototype.Ke=function(){return!0};h.prototype.uh=function(){return!0};h.prototype.Hl=function(){return!0};h.prototype.mt=function(){return!0};h.prototype.jg=function(){return!0};
h.prototype.ft=function(){return!0};c.e=new h;c.C=new function(){};c.G=new function(){}})();function vc(d){this.b=d}
(function(){function d(){this.name="";this.Ei=0;this.tb=[]}function h(){a++;a===p.length&&p.push(new d);return p[a]}function c(){}function l(){}function q(){}var n=vc.prototype;n.la=function(a){this.qa=a;this.b=a.b};n.la.prototype.K=function(){};n.ba=function(a){this.type=a;this.b=a.b};var p=[],a=-1;n.ba.prototype.K=function(){var c=this;window.c2_callFunction=function(d,b){var f,l,q,n=h();n.name=d.toLowerCase();n.Ei=0;if(b)for(n.tb.length=b.length,f=0,l=b.length;f<l;++f)q=b[f],n.tb[f]="number"===
typeof q||"string"===typeof q?q:"boolean"===typeof q?q?1:0:0;else z(n.tb);c.b.trigger(vc.prototype.e.hj,c,n.name);a--;return n.Ei}};c.prototype.hj=function(c){var d=0>a?null:p[a];return d?pb(c,d.name):!1};n.e=new c;l.prototype.CallFunction=function(c,d){var b=h();b.name=c.toLowerCase();b.Ei=0;Ca(b.tb,d);this.b.trigger(vc.prototype.e.hj,this,b.name);a--};n.C=new l;q.prototype.ot=function(c,d){d=sa(d);var b=0>a?null:p[a];b?0<=d&&d<b.tb.length?c.al(b.tb[d]):c.W(0):c.W(0)};q.prototype.ds=function(c,d){var b=
h();b.name=d.toLowerCase();b.Ei=0;z(b.tb);var f,l;f=2;for(l=arguments.length;f<l;f++)b.tb.push(arguments[f]);this.b.trigger(vc.prototype.e.hj,this,b.name);a--;c.al(b.Ei)};n.G=new q})();function Ac(d){this.b=d}
(function(){var d=Ac.prototype;d.la=function(c){this.qa=c;this.b=c.b};d.la.prototype.K=function(){};d.ba=function(c){this.type=c;this.b=c.b};var h=d.ba.prototype;h.K=function(){""!=this.m[0]&&"0"!=this.m[0]||alert("Please enter your Google Analytics Tracking ID in Google Analytic Object's properties for Google Analytics to work!");ga("create",this.m[0],"auto");ga("send","pageview")};h.Sg=function(){};h.wb=function(){return{}};h.Nb=function(){};h.Ld=function(){};h.lc=function(){};d.e=new function(){};
d.C=new function(){};d.G=new function(){}})();function Bc(d){this.b=d}
(function(){function d(c,d,h,p,a,e,g,b,f,m){c.save();c.fillStyle=d;d=a%h;var t=e%p;0>d&&(d+=h);0>t&&(t+=p);c.translate(d+f,t+m);c.fillRect(a-d-f,e-t-m,g,b);c.restore()}var h=Bc.prototype;h.la=function(c){this.qa=c;this.b=c.b};var c=h.la.prototype;c.K=function(){this.H||(this.S=new Image,this.S.Yo=this.Wn,this.b.no(this.S,this.il),this.$i=this.cj=this.bj=this.aj=this.sh=this.T=this.Po=this.Kr=this.fr=this.Yp=this.rm=null)};c.Ak=function(){this.H||(this.$i=this.cj=this.bj=this.aj=this.sh=this.T=null)};
c.Ck=function(){this.H||!this.c.length||this.T||(this.T=this.b.n.wd(this.S,!0,this.b.Ea,this.ih))};c.ol=function(){this.H||this.c.length||!this.b.n||(this.b.n.deleteTexture(this.T),this.b.n.deleteTexture(this.sh),this.b.n.deleteTexture(this.aj),this.b.n.deleteTexture(this.bj),this.b.n.deleteTexture(this.cj),this.b.n.deleteTexture(this.$i),this.$i=this.cj=this.bj=this.aj=this.sh=this.T=null)};c.Zd=function(c,d,h,p){var a=document.createElement("canvas");h=h-c;p=p-d;a.width=h;a.height=p;a.getContext("2d").drawImage(this.S,
c,d,h,p,0,0,h,p);return a};c.tu=function(c,d,h,p){var a=this.S.width,e=this.S.height,g=a-d,b=e-p;if(this.b.n){if(!this.sh){var f=this.b.n,m=this.b.Ea,t=this.ih;g>c&&b>h&&(this.sh=f.wd(this.Zd(c,h,g,b),!0,m,t));0<c&&b>h&&(this.aj=f.wd(this.Zd(0,h,c,b),!0,m,t,"repeat-y"));0<d&&b>h&&(this.bj=f.wd(this.Zd(g,h,a,b),!0,m,t,"repeat-y"));0<h&&g>c&&(this.cj=f.wd(this.Zd(c,0,g,h),!0,m,t,"repeat-x"));0<p&&g>c&&(this.$i=f.wd(this.Zd(c,b,g,e),!0,m,t,"repeat-x"))}}else this.rm||(f=this.b.Ga,g>c&&b>h&&(this.rm=
f.createPattern(this.Zd(c,h,g,b),"repeat")),0<c&&b>h&&(this.Yp=f.createPattern(this.Zd(0,h,c,b),"repeat")),0<d&&b>h&&(this.fr=f.createPattern(this.Zd(g,h,a,b),"repeat")),0<h&&g>c&&(this.Kr=f.createPattern(this.Zd(c,0,g,h),"repeat")),0<p&&g>c&&(this.Po=f.createPattern(this.Zd(c,b,g,e),"repeat")))};h.ba=function(c){this.type=c;this.b=c.b};c=h.ba.prototype;c.K=function(){this.bn=this.m[0];this.In=this.m[1];this.Zn=this.m[2];this.Tl=this.m[3];this.Lj=this.m[4];this.fill=this.m[5];this.visible=0===this.m[6];
this.kr=0!==this.m[8];this.Ec?this.Zf.set(0,0,0,0):this.Zf=new xa(0,0,0,0);this.b.n&&!this.type.T&&(this.type.T=this.b.n.wd(this.type.S,!1,this.b.Ea,this.type.ih));this.type.tu(this.bn,this.In,this.Zn,this.Tl)};c.Ld=function(c){var h=this.type.S,n=this.bn,p=this.In,a=this.Zn,e=this.Tl,g=h.width,b=h.height,f=g-p,m=b-e;c.globalAlpha=this.opacity;c.save();var t=this.x,w=this.y,E=this.width,H=this.height;this.b.xd&&(t=Math.round(t),w=Math.round(w));var k=-(this.ac*this.width),r=-(this.cc*this.height),
y=k%g,A=r%b;0>y&&(y+=g);0>A&&(A+=b);c.translate(t+y,w+A);g=k-y;r-=A;A=this.kr?1:0;0<n&&0<a&&c.drawImage(h,0,0,n+A,a+A,g,r,n+A,a+A);0<p&&0<a&&c.drawImage(h,f-A,0,p+A,a+A,g+E-p-A,r,p+A,a+A);0<p&&0<e&&c.drawImage(h,f-A,m-A,p+A,e+A,g+E-p-A,r+H-e-A,p+A,e+A);0<n&&0<e&&c.drawImage(h,0,m-A,n+A,e+A,g,r+H-e-A,n+A,e+A);0===this.Lj?(A=2===this.fill?0:A,0<n&&m>a&&d(c,this.type.Yp,n,m-a,g,r+a,n+A,H-a-e,0,0),0<p&&m>a&&d(c,this.type.fr,p,m-a,g+E-p-A,r+a,p+A,H-a-e,A,0),0<a&&f>n&&d(c,this.type.Kr,f-n,a,g+n,r,E-n-p,
a+A,0,0),0<e&&f>n&&d(c,this.type.Po,f-n,e,g+n,r+H-e-A,E-n-p,e+A,0,A)):1===this.Lj&&(0<n&&m>a&&0<H-a-e&&c.drawImage(h,0,a,n,m-a,g,r+a,n,H-a-e),0<p&&m>a&&0<H-a-e&&c.drawImage(h,f,a,p,m-a,g+E-p,r+a,p,H-a-e),0<a&&f>n&&0<E-n-p&&c.drawImage(h,n,0,f-n,a,g+n,r,E-n-p,a),0<e&&f>n&&0<E-n-p&&c.drawImage(h,n,m,f-n,e,g+n,r+H-e,E-n-p,e));m>a&&f>n&&(0===this.fill?d(c,this.type.rm,f-n,m-a,g+n,r+a,E-n-p,H-a-e,0,0):1===this.fill&&0<E-n-p&&0<H-a-e&&c.drawImage(h,n,a,f-n,m-a,g+n,r+a,E-n-p,H-a-e));c.restore()};c.le=function(c,
d,h,p,a,e,g,b,f,m){c.rc(d);var t=this.Zf;t.left=h/d.qd;t.top=p/d.pd;t.right=(h+a)/d.qd;t.bottom=(p+e)/d.pd;c.Wd(g,b,g+f,b,g+f,b+m,g,b+m,t)};c.Ui=function(c,d,h,p,a,e,g,b){c.rc(d);var f=this.Zf;f.left=-g/d.qd;f.top=-b/d.pd;f.right=(a-g)/d.qd;f.bottom=(e-b)/d.pd;c.Wd(h,p,h+a,p,h+a,p+e,h,p+e,f)};c.xf=function(c){this.lc(c)};c.lc=function(c){var d=this.bn,h=this.In,p=this.Zn,a=this.Tl,e=this.type.S.width-h,g=this.type.S.height-a;c.$f(this.opacity);var b=this.vc,f=b.Za,b=b.$a,m=this.width,t=this.height;
this.b.xd&&(f=Math.round(f),b=Math.round(b));var w=this.kr?1:0;0<d&&0<p&&this.le(c,this.type.T,0,0,d+w,p+w,f,b,d+w,p+w);0<h&&0<p&&this.le(c,this.type.T,e-w,0,h+w,p+w,f+m-h-w,b,h+w,p+w);0<h&&0<a&&this.le(c,this.type.T,e-w,g-w,h+w,a+w,f+m-h-w,b+t-a-w,h+w,a+w);0<d&&0<a&&this.le(c,this.type.T,0,g-w,d+w,a+w,f,b+t-a-w,d+w,a+w);0===this.Lj?(w=2===this.fill?0:w,0<d&&g>p&&this.Ui(c,this.type.aj,f,b+p,d+w,t-p-a,0,0),0<h&&g>p&&this.Ui(c,this.type.bj,f+m-h-w,b+p,h+w,t-p-a,w,0),0<p&&e>d&&this.Ui(c,this.type.cj,
f+d,b,m-d-h,p+w,0,0),0<a&&e>d&&this.Ui(c,this.type.$i,f+d,b+t-a-w,m-d-h,a+w,0,w)):1===this.Lj&&(0<d&&g>p&&this.le(c,this.type.T,0,p,d,g-p,f,b+p,d,t-p-a),0<h&&g>p&&this.le(c,this.type.T,e,p,h,g-p,f+m-h,b+p,h,t-p-a),0<p&&e>d&&this.le(c,this.type.T,d,0,e-d,p,f+d,b,m-d-h,p),0<a&&e>d&&this.le(c,this.type.T,d,g,e-d,a,f+d,b+t-a,m-d-h,a));g>p&&e>d&&(0===this.fill?this.Ui(c,this.type.sh,f+d,b+p,m-d-h,t-p-a,0,0):1===this.fill&&this.le(c,this.type.T,d,p,e-d,g-p,f+d,b+p,m-d-h,t-p-a))};h.e=new function(){};h.C=
new function(){};h.G=new function(){}})();function Cc(d){this.b=d}
(function(){function d(){}function h(){}function c(){}var l=!1,q=null,n=null,p="",a=Cc.prototype;a.la=function(a){this.qa=a;this.b=a.b};a.la.prototype.K=function(){};a.ba=function(a){this.type=a;this.b=a.b;this.Ta=this.zb="";this.F=0;this.timeout=-1;if(l=this.b.Cw)q=require("path"),n=require("fs"),p=q.dirname(process.execPath)+"\\"};var e=a.ba.prototype,g=null;window.C2_AJAX_DCSide=function(a,b,c){g&&("success"===a?(g.Ta=b,g.zb=c,g.b.trigger(Cc.prototype.e.de,g)):"error"===a?(g.Ta=b,g.b.trigger(Cc.prototype.e.qf,
g)):"progress"===a&&(g.F=c,g.Ta=b,g.b.trigger(Cc.prototype.e.jj,g)))};e.K=function(){var a=this;g=this;window.addEventListener("resize",function(){a.b.trigger(Cc.prototype.e.Fl,a)});"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){a.b.trigger(Cc.prototype.e.Cl,a)}),window.addEventListener("offline",function(){a.b.trigger(Cc.prototype.e.Bl,a)}));"undefined"!==typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){a.b.Sf=
1;a.b.trigger(Cc.prototype.e.jg,a)}),window.applicationCache.addEventListener("progress",function(b){a.b.Sf=b.loaded/b.total}));this.b.eb||(document.addEventListener("appMobi.device.update.available",function(){a.b.trigger(Cc.prototype.e.jg,a)}),document.addEventListener("backbutton",function(){a.b.trigger(Cc.prototype.e.Ke,a)}),document.addEventListener("menubutton",function(){a.b.trigger(Cc.prototype.e.uh,a)}),document.addEventListener("searchbutton",function(){a.b.trigger(Cc.prototype.e.Hl,a)}),
document.addEventListener("tizenhwkey",function(b){var c;switch(b.keyName){case "back":c=a.b.trigger(Cc.prototype.e.Ke,a);!c&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(c=a.b.trigger(Cc.prototype.e.uh,a))||b.preventDefault()}}));this.b.jk&&(WinJS.Application.onbackclick=function(){return!!a.b.trigger(Cc.prototype.e.Ke,a)});this.b.Nl(function(b){b?a.b.trigger(Cc.prototype.e.Dl,a):a.b.trigger(Cc.prototype.e.El,a)})};e.wb=function(){return{lastData:this.zb}};
e.Nb=function(a){this.zb=a.lastData;this.Ta="";this.F=0};var b={};e.Jj=function(a,c,e,d){if(this.b.eb)AppMobi.webview.execute('C2_AJAX_WebSide("'+a+'", "'+c+'", "'+e+'", '+(d?'"'+d+'"':"null")+");");else{var g=this,h=null,k=function(){g.Ta=a;g.b.trigger(Cc.prototype.e.qf,g)},r=function(){if(l){var a=p+c;n.existsSync(a)?n.readFile(a,{encoding:"utf8"},function(a,b){a?k():(g.zb=b.replace(/\r\n/g,"\n"),g.b.trigger(Cc.prototype.e.de,g))}):k()}else k()},q=function(b){b.lengthComputable&&(g.F=b.loaded/b.total,
g.Ta=a,g.b.trigger(Cc.prototype.e.jj,g))};try{this.b.ud?h=new ActiveXObject("Microsoft.XMLHTTP"):h=new XMLHttpRequest;h.onreadystatechange=function(){4===h.readyState&&(g.Ta=a,h.responseText?g.zb=h.responseText.replace(/\r\n/g,"\n"):g.zb="",400<=h.status?g.b.trigger(Cc.prototype.e.qf,g):l&&!g.zb.length||g.b.trigger(Cc.prototype.e.de,g))};this.b.ud||(h.onerror=r,h.ontimeout=r,h.onabort=r,h.onprogress=q);h.open(e,c);!this.b.ud&&0<=this.timeout&&"undefined"!==typeof h.timeout&&(h.timeout=this.timeout);
try{h.responseType="text"}catch(A){}d&&h.setRequestHeader&&h.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(h.setRequestHeader){for(var U in b)if(b.hasOwnProperty(U))try{h.setRequestHeader(U,b[U])}catch(P){}b={}}d?h.send(d):h.send()}catch(B){r()}}};d.prototype.de=function(){return pb("shareplugin",this.Ta)};d.prototype.Cl=function(){return!0};d.prototype.Bl=function(){return!0};d.prototype.jg=function(){return!0};d.prototype.El=function(){return!0};d.prototype.Dl=function(){return!0};
d.prototype.Fl=function(){return!0};d.prototype.Ke=function(){return!0};d.prototype.uh=function(){return!0};d.prototype.Hl=function(){return!0};a.e=new d;h.prototype.zo=function(a,b,c,e){this.Jj("shareplugin",c,"POST","foto="+b+"&nome="+a+"&folder="+e)};a.C=new h;c.prototype.to=function(a){a.Ya(this.zb)};a.G=new c})();function W(d){this.b=d}
(function(){function d(){if(0===this.fm.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.dh?b.drawImage(this.S,this.Qg,this.Rg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.S,0,0,this.width,this.height);this.fm=a.toDataURL("image/png")}return this.fm}function h(){}function c(a){a[0]=0;a[1]=0;a[2]=0;m.push(a)}function l(a,b){return a<b?""+a+","+b:""+b+","+a}function q(a,b,c,e){b=b.uid;c=c.uid;var d=l(b,c);if(a.hasOwnProperty(d))a[d][2]=
e;else{var f=m.length?m.pop():[0,0,0];f[0]=b;f[1]=c;f[2]=e;a[d]=f}}function n(a,b,e){b=l(b.uid,e.uid);a.hasOwnProperty(b)&&(c(a[b]),delete a[b])}function p(a,b,c){b=l(b.uid,c.uid);if(a.hasOwnProperty(b))return t=a[b][2],!0;t=-2;return!1}function a(){}var e=W.prototype;e.la=function(a){this.qa=a;this.b=a.b};var g=e.la.prototype;g.K=function(){if(!this.H){var a,b,c,e,f,g,l,h,m;this.md=[];this.Rh=!1;a=0;for(b=this.uc.length;a<b;a++){f=this.uc[a];l={};l.name=f[0];l.speed=f[1];l.loop=f[2];l.Gn=f[3];l.Hn=
f[4];l.ye=f[5];l.ea=f[6];l.frames=[];c=0;for(e=f[7].length;c<e;c++)g=f[7][c],h={},h.il=g[0],h.Wn=g[1],h.Qg=g[2],h.Rg=g[3],h.width=g[4],h.height=g[5],h.duration=g[6],h.ac=g[7],h.cc=g[8],h.Mm=g[9],h.Lk=g[10],h.Vq=g[11],h.dh=0!==h.width,h.fm="",h.yz=d,m={left:0,top:0,right:1,bottom:1},h.Qn=m,h.T=null,(m=this.b.Gv(g[0]))?h.S=m:(h.S=new Image,h.S.qu=g[0],h.S.Yo=g[1],h.S.ku=null,this.b.no(h.S,g[0])),l.frames.push(h),this.md.push(h);this.uc[a]=l}}};g.Tr=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c=
this.c[a],c.Dj=c.Ma.T};g.Ak=function(){if(!this.H){var a,b,c;a=0;for(b=this.md.length;a<b;++a)c=this.md[a],c.S.ku=null,c.T=null;this.Rh=!1;this.Tr()}};g.Ck=function(){if(!this.H&&this.c.length){var a,b,c;a=0;for(b=this.md.length;a<b;++a)c=this.md[a],c.T=this.b.n.wd(c.S,!1,this.b.Ea,c.Vq);this.Tr()}};g.Ow=function(){if(!this.H&&!this.Rh&&this.b.n){var a,b,c;a=0;for(b=this.md.length;a<b;++a)c=this.md[a],c.T=this.b.n.wd(c.S,!1,this.b.Ea,c.Vq);this.Rh=!0}};g.ol=function(){if(!this.H&&!this.c.length&&
this.Rh){var a,b,c;a=0;for(b=this.md.length;a<b;++a)c=this.md[a],this.b.n.deleteTexture(c.T),c.T=null;this.Rh=!1}};var b=[];g.An=function(a){var c,e,d;z(b);c=0;for(e=this.md.length;c<e;++c)d=this.md[c].S,-1===b.indexOf(d)&&(a.drawImage(d,0,0),b.push(d))};e.ba=function(a){this.type=a;this.b=a.b;a=this.type.uc[0].frames[0].Lk;this.Ec?this.wa.Ki(a):this.wa=new hb(a)};var f=e.ba.prototype;f.K=function(){this.visible=0===this.m[0];this.ck=this.ai=!1;this.Jd=0!==this.m[3];this.Ca=this.pp(this.m[1])||this.type.uc[0];
this.D=this.m[2];0>this.D&&(this.D=0);this.D>=this.Ca.frames.length&&(this.D=this.Ca.frames.length-1);var a=this.Ca.frames[this.D];this.wa.Ki(a.Lk);this.ac=a.ac;this.cc=a.cc;this.qg=this.Ca.speed;this.We=this.Ca.Hn;1===this.type.uc.length&&1===this.type.uc[0].frames.length||0===this.qg||(this.b.kl(this),this.ai=!0);this.Ec?this.Id.reset():this.Id=new fb;this.pe=this.Id.R;this.sf=!0;this.ee=0;this.rf=!0;this.ng=this.Ko="";this.Vo=0;this.wj=-1;this.type.Ow();var b,c,e,d,f,g,l,a=0;for(b=this.type.uc.length;a<
b;a++)for(d=this.type.uc[a],c=0,e=d.frames.length;c<e;c++)f=d.frames[c],0===f.width&&(f.width=f.S.width,f.height=f.S.height),f.dh&&(l=f.S,g=f.Qn,g.left=f.Qg/l.width,g.top=f.Rg/l.height,g.right=(f.Qg+f.width)/l.width,g.bottom=(f.Rg+f.height)/l.height,0===f.Qg&&0===f.Rg&&f.width===l.width&&f.height===l.height&&(f.dh=!1));this.Ma=this.Ca.frames[this.D];this.Dj=this.Ma.T};f.wb=function(){var a={a:this.Ca.ea,f:this.D,cas:this.qg,fs:this.pe,ar:this.ee,at:this.Id.R,rt:this.We};this.sf||(a.ap=this.sf);this.rf||
(a.af=this.rf);return a};f.Nb=function(a){var b=this.Kv(a.a);b&&(this.Ca=b);this.D=a.f;0>this.D&&(this.D=0);this.D>=this.Ca.frames.length&&(this.D=this.Ca.frames.length-1);this.qg=a.cas;this.pe=a.fs;this.ee=a.ar;this.Id.reset();this.Id.R=a.at;this.sf=a.hasOwnProperty("ap")?a.ap:!0;this.rf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.We=a.rt:this.We=this.Ca.Hn;this.Ma=this.Ca.frames[this.D];this.Dj=this.Ma.T;this.wa.Ki(this.Ma.Lk);this.ac=this.Ma.ac;this.cc=this.Ma.cc};f.Pl=function(a){this.D=
a?0:this.Ca.frames.length-1;this.sf=!1;this.Ko=this.Ca.name;this.ck=!0;this.b.trigger(W.prototype.e.Ss,this);this.b.trigger(W.prototype.e.Rs,this);this.ck=!1;this.ee=0};f.Ql=function(){return this.Id.R};f.Db=function(){this.Id.add(this.b.wg(this));this.ng.length&&this.cp();0<=this.wj&&this.dp();var a=this.Id.R,b=this.Ca,c=b.frames[this.D],e=c.duration/this.qg;this.sf&&a>=this.pe+e&&(this.rf?this.D++:this.D--,this.pe+=e,this.D>=b.frames.length&&(b.ye?(this.rf=!1,this.D=b.frames.length-2):b.loop?this.D=
this.We:(this.ee++,this.ee>=b.Gn?this.Pl(!1):this.D=this.We)),0>this.D&&(b.ye?(this.D=1,this.rf=!0,b.loop||(this.ee++,this.ee>=b.Gn&&this.Pl(!0))):b.loop?this.D=this.We:(this.ee++,this.ee>=b.Gn?this.Pl(!0):this.D=this.We)),0>this.D?this.D=0:this.D>=b.frames.length&&(this.D=b.frames.length-1),a>this.pe+b.frames[this.D].duration/this.qg&&(this.pe=a),a=b.frames[this.D],this.ig(c,a),this.b.ra=!0)};f.pp=function(a){var b,c,e;b=0;for(c=this.type.uc.length;b<c;b++)if(e=this.type.uc[b],pb(e.name,a))return e;
return null};f.Kv=function(a){var b,c,e;b=0;for(c=this.type.uc.length;b<c;b++)if(e=this.type.uc[b],e.ea===a)return e;return null};f.cp=function(){var a=this.Ca.frames[this.D],b=this.pp(this.ng);this.ng="";!b||pb(b.name,this.Ca.name)&&this.sf||(this.Ca=b,this.qg=b.speed,this.We=b.Hn,0>this.D&&(this.D=0),this.D>=this.Ca.frames.length&&(this.D=this.Ca.frames.length-1),1===this.Vo&&(this.D=0),this.sf=!0,this.pe=this.Id.R,this.rf=!0,this.ig(a,this.Ca.frames[this.D]),this.b.ra=!0)};f.dp=function(){var a=
this.Ca.frames[this.D],b=this.D;this.D=sa(this.wj);0>this.D&&(this.D=0);this.D>=this.Ca.frames.length&&(this.D=this.Ca.frames.length-1);b!==this.D&&(this.ig(a,this.Ca.frames[this.D]),this.pe=this.Id.R,this.b.ra=!0);this.wj=-1};f.ig=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.ac=b.ac;this.cc=b.cc;this.wa.Ki(b.Lk);this.Ja();this.Ma=b;this.Dj=b.T;c=0;for(e=this.X.length;c<e;c++)d=this.X[c],d.Jq&&d.Jq(a,b);this.b.trigger(W.prototype.e.ig,
this)};f.Ld=function(a){a.globalAlpha=this.opacity;var b=this.Ma,c=b.dh,e=b.S,d=this.x,f=this.y,g=this.width,l=this.height;if(0===this.j&&0<=g&&0<=l)d-=this.ac*g,f-=this.cc*l,this.b.xd&&(d=Math.round(d),f=Math.round(f)),c?a.drawImage(e,b.Qg,b.Rg,b.width,b.height,d,f,g,l):a.drawImage(e,d,f,g,l);else{this.b.xd&&(d=Math.round(d),f=Math.round(f));a.save();var h=0<g?1:-1,m=0<l?1:-1;a.translate(d,f);1===h&&1===m||a.scale(h,m);a.rotate(this.j*h*m);d=0-this.ac*oa(g);f=0-this.cc*oa(l);c?a.drawImage(e,b.Qg,
b.Rg,b.width,b.height,d,f,oa(g),oa(l)):a.drawImage(e,d,f,oa(g),oa(l));a.restore()}};f.xf=function(a){this.lc(a)};f.lc=function(a){a.rc(this.Dj);a.$f(this.opacity);var b=this.Ma,c=this.vc;if(this.b.xd){var e=Math.round(this.x)-this.x,d=Math.round(this.y)-this.y;b.dh?a.Wd(c.Za+e,c.$a+d,c.Rb+e,c.Sb+d,c.Gb+e,c.Hb+d,c.Eb+e,c.Fb+d,b.Qn):a.Ci(c.Za+e,c.$a+d,c.Rb+e,c.Sb+d,c.Gb+e,c.Hb+d,c.Eb+e,c.Fb+d)}else b.dh?a.Wd(c.Za,c.$a,c.Rb,c.Sb,c.Gb,c.Hb,c.Eb,c.Fb,b.Qn):a.Ci(c.Za,c.$a,c.Rb,c.Sb,c.Gb,c.Hb,c.Eb,c.Fb)};
f.Sv=function(a){var b=this.Ma,c,e;c=0;for(e=b.Mm.length;c<e;c++)if(pb(a,b.Mm[c][0]))return c;return-1};f.Lh=function(a,b){var c=this.Ma,e=c.Mm,d;la(a)?d=this.Sv(a):d=a-1;d=sa(d);if(0>d||d>=e.length)return b?this.x:this.y;var f=(e[d][1]-c.ac)*this.width,e=e[d][2],e=(e-c.cc)*this.height,c=Math.cos(this.j);d=Math.sin(this.j);var g=f*c-e*d,e=e*c+f*d,f=g+this.x,e=e+this.y;return b?f:e};var m=[],t=-2,w=[];h.prototype.Us=function(a){if(!a)return!1;var b=this.b,e=b.zm(),d=e.type,f=null;e.L.collmemory?f=
e.L.collmemory:(f={},e.L.collmemory=f);e.L.spriteCreatedDestroyCallback||(e.L.spriteCreatedDestroyCallback=!0,b.Ho(function(a){var b=e.L.collmemory;a=a.uid;var d,f;for(d in b)b.hasOwnProperty(d)&&(f=b[d],f[0]===a||f[1]===a)&&(c(b[d]),delete b[d])}));var g=d.P(),l=a.P(),g=g.nc(),h,m,E,H,F,L,N,S=this.b.jh,T=S-1,u=b.Va().Ua;for(m=0;m<g.length;m++){E=g[m];l.aa?(E.Fa(),this.b.Nv(E.k,a,E.ab,w),h=w,this.b.du(E,a,h)):h=l.nc();for(H=0;H<h.length;H++)F=h[H],b.Wx(E,F)||b.mu(E,F)?(L=p(f,E,F),L=!L||t<T,q(f,E,
F,S),L&&(b.kf(u.da),L=d.P(),N=a.P(),L.aa=!1,N.aa=!1,d===a?(L.c.length=2,L.c[0]=E,L.c[1]=F,d.Sc()):(L.c.length=1,N.c.length=1,L.c[0]=E,N.c[0]=F,d.Sc(),a.Sc()),u.lf(),b.yd(u.da))):n(f,E,F);z(w)}return!1};var E=new da,H=!1;new xa(0,0,0,0);g.finish=function(a){if(H){if(a){var b=this.b.Va().Ua.cd;a=null.P();var c=E.pf(),e,d;if(a.aa){a.aa=!1;z(a.c);e=0;for(d=c.length;e<d;++e)a.c[e]=c[e];if(b)for(z(a.fa),e=0,d=null.c.length;e<d;++e)c=null.c[e],E.contains(c)||a.fa.push(c)}else if(b)for(b=a.c.length,e=0,d=
c.length;e<d;++e)a.c[b+e]=c[e],Ia(a.fa,c[e]);else Ca(a.c,c);null.Sc()}E.clear();H=!1}};h.prototype.Es=function(a){return this.ng.length?pb(this.ng,a):pb(this.Ca.name,a)};h.prototype.ms=function(a,b){return lc(this.D,a,b)};h.prototype.Rs=function(a){return pb(this.Ko,a)};h.prototype.Ss=function(){return!0};h.prototype.ig=function(){return!0};e.e=new h;a.prototype.Ot=function(a,b,c){if(a&&b&&(b=this.b.cm(a,b,this.Lh(c,!0),this.Lh(c,!1)))){"undefined"!==typeof b.j&&(b.j=this.j,b.Ja());this.b.Nc++;var e,
d,f;this.b.trigger(Object.getPrototypeOf(a.qa).e.hg,b);if(b.Mb)for(e=0,d=b.siblings.length;e<d;e++)f=b.siblings[e],this.b.trigger(Object.getPrototypeOf(f.type.qa).e.hg,f);this.b.Nc--;e=this.b.Ov();c=!1;if(ja(e.L.Spawn_LastExec)||e.L.Spawn_LastExec<this.b.Ef)c=!0,e.L.Spawn_LastExec=this.b.Ef;if(a!=this.type&&(a=a.P(),a.aa=!1,c?(z(a.c),a.c[0]=b):a.c.push(b),b.Mb))for(e=0,d=b.siblings.length;e<d;e++)f=b.siblings[e],a=f.type.P(),a.aa=!1,c?(z(a.c),a.c[0]=f):a.c.push(f)}};a.prototype.zt=function(a,b){this.ng=
a;this.Vo=b;this.ai||(this.b.kl(this),this.ai=!0);this.ck||this.cp()};a.prototype.At=function(a){this.wj=a;this.ai||(this.b.kl(this),this.ai=!0);this.ck||this.dp()};a.prototype.Ct=function(a){this.Jd!==(0!==a)&&((this.Jd=0!==a)?this.Ja():(this.Uc.right>=this.Uc.left&&this.type.zh.update(this,this.Uc,null),this.Uc.set(0,0,-1,-1)))};e.C=new a;e.G=new function(){}})();function Dc(d){this.b=d}
(function(){function d(a,b){return a.length?a.pop():new b}function h(a,b,c){if(c){var e;c=0;for(e=b.length;c<e;c++)a.length<p&&a.push(b[c]);z(b)}else for(e in b)Object.prototype.hasOwnProperty.call(b,e)&&(a.length<p&&a.push(b[e]),delete b[e])}function c(b,c,e){var f=b.Rf;e=e.replace(/\s\s*$/,"");c>=f.length&&f.push(d(a,Object));c=f[c];c.text=e;c.width=b.kn(e);b.hh=pa(b.hh,c.width)}function l(){}var q=Dc.prototype;q.K=function(){};q.la=function(a){this.qa=a;this.b=a.b};var n=q.la.prototype;n.K=function(){this.H||
(this.S=new Image,this.b.no(this.S,this.il),this.T=null)};n.Ak=function(){this.H||(this.T=null)};n.Ck=function(){if(!this.H&&this.c.length){this.T||(this.T=this.b.n.wd(this.S,!1,this.b.Ea,this.ih));var a,b;a=0;for(b=this.c.length;a<b;a++)this.c[a].T=this.T}};n.ol=function(){this.H||this.c.length||!this.T||(this.b.n.deleteTexture(this.T),this.T=null)};n.An=function(a){a.drawImage(this.S,0,0)};q.ba=function(a){this.type=a;this.b=a.b};n=q.ba.prototype;n.Sg=function(){h(a,this.Rf,!0);h(e,this.yj,!1);
h(g,this.zj,!1);ab(this.Te)};n.K=function(){this.S=this.type.S;this.xj=this.m[0];this.Re=this.m[1];this.characterSet=this.m[2];this.text=this.m[3];this.Se=this.m[4];this.visible=0===this.m[5];this.ak=this.m[6]/2;this.tl=this.m[7]/2;this.hy=0===this.m[9];this.pg=this.m[10];this.lineHeight=this.m[11];this.dg=this.hh=0;this.Ec?(z(this.Rf),ab(this.yj),ab(this.zj),ab(this.Te)):(this.Rf=[],this.yj={},this.zj={},this.Te={});this.Si=!0;this.$m=this.width;this.b.n&&(this.type.T||(this.type.T=this.b.n.wd(this.type.S,
!1,this.b.Ea,this.type.ih)),this.T=this.type.T);this.Pt()};n.wb=function(){var a={t:this.text,csc:this.Se,csp:this.pg,lh:this.lineHeight,tw:this.hh,th:this.dg,lrt:this.Jw,ha:this.ak,va:this.tl,cw:{}},b;for(b in this.Te)a.cw[b]=this.Te[b];return a};n.Nb=function(a){this.text=a.t;this.Se=a.csc;this.pg=a.csp;this.lineHeight=a.lh;this.hh=a.tw;this.dg=a.th;this.Jw=a.lrt;a.hasOwnProperty("ha")&&(this.ak=a.ha);a.hasOwnProperty("va")&&(this.tl=a.va);for(var b in a.cw)this.Te[b]=a.cw[b];this.Si=!0;this.$m=
this.width};var p=1E3,a=[],e=[],g=[];n.Pt=function(){for(var a=this.S,b=a.width,c=a.height,a=this.xj,f=this.Re,l=a/b,k=f/c,h=this.characterSet,b=Math.floor(b/a),c=Math.floor(c/f),q=0;q<h.length&&!(q>=b*c);q++){var p=q%b,n=Math.floor(q/b),P=h.charAt(q);if(this.b.n){var B=this.zj,v=p*l,C=n*k,p=(p+1)*l,n=(n+1)*k;void 0===B[P]&&(B[P]=d(g,xa));B[P].left=v;B[P].top=C;B[P].right=p;B[P].bottom=n}else B=this.yj,p=p*a,n=n*f,v=a,C=f,void 0===B[P]&&(B[P]=d(e,Object)),B[P].x=p,B[P].y=n,B[P].Yr=v,B[P].xp=C}};var b=
[];q.Tt=function(a){z(b);for(var c="",e,d=0;d<a.length;)if(e=a.charAt(d),"\n"===e)c.length&&(b.push(c),c=""),b.push("\n"),++d;else if(" "===e||"\t"===e||"-"===e){do c+=a.charAt(d),d++;while(d<a.length&&(" "===a.charAt(d)||"\t"===a.charAt(d)));b.push(c);c=""}else d<a.length&&(c+=e,d++);c.length&&b.push(c)};q.Yt=function(b){var c=b.text,e=b.Rf;if(c&&c.length){var f=b.width;if(2>=f)h(a,e,!0);else{var g=b.Se,k=b.pg;if(c.length*(b.xj*g+k)-k<=f&&-1===c.indexOf("\n")&&(k=b.kn(c),k<=f)){h(a,e,!0);e.push(d(a,
Object));e[0].text=c;e[0].width=k;b.hh=k;b.dg=b.Re*g+b.lineHeight;return}this.Zt(b);b.dg=e.length*(b.Re*g+b.lineHeight)}}else h(a,e,!0)};q.Zt=function(e){var d=e.hy,f=e.text,g=e.Rf,l=e.width;d&&(this.Tt(f),f=b);var k="",h,q,n,U=0,P=!1;for(n=0;n<f.length;n++)"\n"===f[n]?(!0===P?P=!1:(c(e,U,k),U++),k=""):(P=!1,h=k,k+=f[n],q=e.kn(k.replace(/\s\s*$/,"")),q>l&&(""===h?(c(e,U,k),k="",P=!0):(c(e,U,h),k=f[n]),U++,d||" "!==k||(k="")));k.replace(/\s\s*$/,"").length&&(c(e,U,k),U++);for(n=U;n<g.length;n++)a.length<
p&&a.push(g[n]);g.length=U};n.kn=function(a){for(var b=this.pg,c=a.length,e=0,d=0;d<c;d++)e+=this.ym(a.charAt(d))*this.Se+b;return e-(0<e?b:0)};n.ym=function(a){var b=this.Te;return void 0!==b[a]?b[a]:this.xj};n.dr=function(){if(this.Si||this.width!==this.$m)this.dg=this.hh=0,this.type.qa.Yt(this),this.Si=!1,this.$m=this.width};n.Ld=function(a){var b=this.S;if(""!==this.text&&null!=b&&(this.dr(),!(this.height<this.Re*this.Se+this.lineHeight))){a.globalAlpha=this.opacity;var b=this.x,c=this.y;this.b.xd&&
(b=Math.round(b),c=Math.round(c));var e=this.k.ya,d=this.k.za,f=this.k.Ba,g=this.k.Aa;a.save();a.translate(b,c);a.rotate(this.j);for(var l=this.j,h=this.ak,q=this.Se,p=this.Re*q,n=this.lineHeight,v=this.pg,C=this.Rf,Q,Z=-(this.ac*this.width),F=-(this.cc*this.height),F=F+this.tl*pa(0,this.height-this.dg),L,N,S,T=0;T<C.length;T++){var u=C[T].text;Q=h*pa(0,this.width-C[T].width);L=Z+Q;F+=n;if(0===l&&c+F+p<d)F+=p;else{for(var G=0;G<u.length;G++){N=u.charAt(G);Q=this.ym(N);var I=this.yj[N];if(0===l&&b+
L+Q*q+v<e)L+=Q*q+v;else{if(L+Q*q>this.width+1E-5)break;void 0!==I&&(N=L,S=F,0===l&&1===q&&(N=Math.round(N),S=Math.round(S)),a.drawImage(this.S,I.x,I.y,I.Yr,I.xp,N,S,I.Yr*q,I.xp*q));L+=Q*q+v;if(0===l&&b+L>f)break}}F+=p;if(0===l&&(F+p+n>this.height||c+F>g))break}}a.restore()}};var f=new ya;n.lc=function(a){a.rc(this.T);a.$f(this.opacity);if(this.text&&(this.dr(),!(this.height<this.Re*this.Se+this.lineHeight))){this.Fa();var b=this.vc,c=0,e=0;this.b.xd&&(c=Math.round(this.x)-this.x,e=Math.round(this.y)-
this.y);var d=this.k.ya,g=this.k.za,l=this.k.Ba,h=this.k.Aa,q=this.j,p=this.ak,n=this.tl,B=this.Se,v=this.Re*B,C=this.lineHeight,Q=this.pg,Z=this.Rf,F=this.dg,L,N,S;0!==q&&(N=Math.cos(q),S=Math.sin(q));for(var c=b.Za+c,b=b.$a+e,T,n=n*pa(0,this.height-F),u,G,F=0;F<Z.length;F++)if(e=Z[F].text,T=L=p*pa(0,this.width-Z[F].width),n+=C,0===q&&b+n+v<g)n+=v;else{for(var I=0;I<e.length;I++){var R=e.charAt(I);L=this.ym(R);R=this.zj[R];if(0===q&&c+T+L*B+Q<d)T+=L*B+Q;else{if(T+L*B>this.width+1E-5)break;if(void 0!==
R){var J=this.xj*B,x=this.Re*B;u=T;G=n;0===q&&1===B&&(u=Math.round(u),G=Math.round(G));f.Za=u;f.$a=G;f.Rb=u+J;f.Sb=G;f.Eb=u;f.Fb=G+x;f.Gb=u+J;f.Hb=G+x;0!==q&&(u=f,G=N,J=S,x=void 0,x=u.Za*G-u.$a*J,u.$a=u.$a*G+u.Za*J,u.Za=x,x=u.Rb*G-u.Sb*J,u.Sb=u.Sb*G+u.Rb*J,u.Rb=x,x=u.Eb*G-u.Fb*J,u.Fb=u.Fb*G+u.Eb*J,u.Eb=x,x=u.Gb*G-u.Hb*J,u.Hb=u.Hb*G+u.Gb*J,u.Gb=x);f.offset(c,b);a.Wd(f.Za,f.$a,f.Rb,f.Sb,f.Gb,f.Hb,f.Eb,f.Fb,R)}T+=L*B+Q;if(0===q&&c+T>l)break}}n+=v;if(0===q&&(n+v+C>this.height||b+n>h))break}}};q.e=new function(){};
l.prototype.Ft=function(a){ka(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Si=!0,this.b.ra=!0)};n.Ql=function(a,b){var c=parseInt(b,10);this.Te[a]!==c&&(this.Te[a]=c,this.Si=!0,this.b.ra=!0)};q.C=new l;q.G=new function(){}})();function Ec(d){this.b=d}
(function(){function d(a){g=a.x;b=a.y;f=a.z}function h(a,b,e,d){var f;f=m.length?m.pop():new c;f.init(a,b,e,d);return f}function c(){this.Oi=this.id=this.y=this.x=this.el=this.dl=this.Zm=this.time=this.Un=0;this.Vi=this.ml=!1}function l(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function q(){}function n(){}var p=Ec.prototype;p.la=function(a){this.qa=a;this.b=a.b};p.la.prototype.K=
function(){};p.ba=function(a){this.type=a;this.b=a.b;this.touches=[];this.ln=!1};var a=p.ba.prototype,e={left:0,top:0};a.Jh=function(a){var b,c;b=0;for(c=this.touches.length;b<c;b++)if(this.touches[b].id===a)return b;return-1};var g=0,b=0,f=0,m=[];c.prototype.init=function(a,b,c,e){var d=bb();this.Un=this.Zm=this.time=d;this.dl=a;this.el=b;this.x=a;this.y=b;this.pressure=this.height=this.width=0;this.id=c;this.Oi=e;this.Vi=this.ml=!1};c.prototype.update=function(a,b,c,e,d,f){this.Zm=this.time;this.time=
a;this.x=b;this.y=c;this.width=e;this.height=d;this.pressure=f;!this.Vi&&15<=Va(this.dl,this.el,this.x,this.y)&&(this.Vi=!0)};c.prototype.Sw=function(a,b){!this.ml&&500<=bb()-this.Un&&!this.Vi&&15>Va(this.dl,this.el,this.x,this.y)&&(this.ml=!0,a.ae=this.Oi,a.nh=this.id,a.xg=b,a.b.trigger(Ec.prototype.e.bt,a),a.ie=this.x,a.je=this.y,a.b.trigger(Ec.prototype.e.ct,a),a.xg=0)};var t=-1E3,w=-1E3,E=-1E4;c.prototype.sq=function(a,b){if(!this.ml){var c=bb();333>=c-this.Un&&!this.Vi&&15>Va(this.dl,this.el,
this.x,this.y)&&(a.ae=this.Oi,a.nh=this.id,a.xg=b,666>=c-E&&25>Va(t,w,this.x,this.y)?(a.b.trigger(Ec.prototype.e.Ws,a),a.ie=this.x,a.je=this.y,a.b.trigger(Ec.prototype.e.Xs,a),w=t=-1E3,E=-1E4):(a.b.trigger(Ec.prototype.e.kt,a),a.ie=this.x,a.je=this.y,a.b.trigger(Ec.prototype.e.lt,a),t=this.x,w=this.y,E=c),a.xg=0)}};a.K=function(){this.Fw=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.xg=this.nh=this.ae=this.je=this.ie=this.Fo=this.Eo=this.Do=this.bu=this.au=this.$t=this.Hk=
this.Gk=this.Fk=0;this.ey=0!==this.m[0];var a=0<this.b.mc?document:this.b.canvas,b=document;this.b.eb?b=a=window.Canvas:this.b.ad&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.Iq(a)},!1),a.addEventListener("pointermove",function(a){c.Hq(a)},!1),b.addEventListener("pointerup",function(a){c.Bk(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Bk(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},
!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.Iq(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Hq(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Bk(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Bk(a,
!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.Lq(a)},!1),a.addEventListener("touchmove",function(a){c.Kq(a)},!1),b.addEventListener("touchend",function(a){c.tn(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.tn(a,!0)},!1));if(this.Fw){var e=function(a){a=a.reading;c.Do=a.accelerationX;c.Eo=a.accelerationY;
c.Fo=a.accelerationZ},f=function(a){a=a.reading;c.Fk=a.yawDegrees;c.Gk=a.pitchDegrees;c.Hk=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",e));var l=Windows.Devices.Sensors.Inclinometer.getDefault();l&&(l.reportInterval=Math.max(l.minimumReportInterval,16),l.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?
(g&&g.removeEventListener("readingchanged",e),l&&l.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",e),l&&l.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",function(a){c.Fk=a.alpha||0;c.Gk=a.beta||0;c.Hk=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.$t=a.accelerationIncludingGravity.x||0,c.au=a.accelerationIncludingGravity.y||0,c.bu=a.accelerationIncludingGravity.z||
0);a.acceleration&&(c.Do=a.acceleration.x||0,c.Eo=a.acceleration.y||0,c.Fo=a.acceleration.z||0)},!1);this.ey&&!this.b.ob&&(jQuery(document).mousemove(function(a){c.Zw(a)}),jQuery(document).mousedown(function(a){c.Yw(a)}),jQuery(document).mouseup(function(a){c.$w(a)}));!this.b.Hg&&this.b.Mc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(d,null,{frequency:40});this.b.Xx(this)};a.Hq=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&
"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.Jh(a.pointerId),c=bb();if(0<=b){var d=this.b.ob?e:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||b.update(c,a.pageX-d.left,a.pageY-d.top,a.width||0,a.height||0,a.pressure||0)}}};a.Iq=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&qb(a)&&a.preventDefault();var b=this.b.ob?e:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;bb();this.ae=this.touches.length;
this.nh=a.pointerId;this.touches.push(h(c,b,a.pointerId,this.ae));this.b.se=!0;this.b.trigger(Ec.prototype.e.wo,this);this.b.trigger(Ec.prototype.e.yo,this);this.ie=c;this.je=b;this.b.trigger(Ec.prototype.e.Kl,this);this.b.se=!1}};a.Bk=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&qb(a)&&a.preventDefault();var c=this.Jh(a.pointerId);this.ae=0<=c?this.touches[c].Oi:-1;this.nh=0<=c?this.touches[c].id:-1;this.b.se=!0;this.b.trigger(Ec.prototype.e.vo,
this);this.b.trigger(Ec.prototype.e.Jl,this);0<=c&&(b||this.touches[c].sq(this,c),100>m.length&&m.push(this.touches[c]),this.touches.splice(c,1));this.b.se=!1}};a.Kq=function(a){a.preventDefault&&a.preventDefault();var b=bb(),c,d,f,g;c=0;for(d=a.changedTouches.length;c<d;c++)if(f=a.changedTouches[c],g=this.Jh(f.identifier),0<=g){var l=this.b.ob?e:jQuery(this.b.canvas).offset();g=this.touches[g];2>b-g.time||g.update(b,f.pageX-l.left,f.pageY-l.top,2*(f.Jz||f.Rz||f.Cz||f.Fz||0),2*(f.Kz||f.Sz||f.Dz||
f.Gz||0),f.wz||f.Qz||f.Bz||f.Ez||0)}};a.Lq=function(a){a.preventDefault&&qb(a)&&a.preventDefault();var b=this.b.ob?e:jQuery(this.b.canvas).offset();bb();this.b.se=!0;var c,d,f,g;c=0;for(d=a.changedTouches.length;c<d;c++)if(f=a.changedTouches[c],g=this.Jh(f.identifier),-1===g){g=f.pageX-b.left;var l=f.pageY-b.top;this.ae=this.touches.length;this.nh=f.identifier;this.touches.push(h(g,l,f.identifier,this.ae));this.b.trigger(Ec.prototype.e.wo,this);this.b.trigger(Ec.prototype.e.yo,this);this.ie=g;this.je=
l;this.b.trigger(Ec.prototype.e.Kl,this)}this.b.se=!1};a.tn=function(a,b){a.preventDefault&&qb(a)&&a.preventDefault();this.b.se=!0;var c,e,d;c=0;for(e=a.changedTouches.length;c<e;c++)d=a.changedTouches[c],d=this.Jh(d.identifier),0<=d&&(this.ae=this.touches[d].Oi,this.nh=this.touches[d].id,this.b.trigger(Ec.prototype.e.vo,this),this.b.trigger(Ec.prototype.e.Jl,this),b||this.touches[d].sq(this,d),100>m.length&&m.push(this.touches[d]),this.touches.splice(d,1));this.b.se=!1};a.Ql=function(){return this.b.Mc&&
0===this.Fk&&0!==f?90*f:this.Fk};a.uz=function(){return this.b.Mc&&0===this.Gk&&0!==b?90*b:this.Gk};a.vz=function(){return this.b.Mc&&0===this.Hk&&0!==g?90*g:this.Hk};a.Yw=function(a){l(a)||(this.Lq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.ln=!0)};a.Zw=function(a){this.ln&&!l(a)&&this.Kq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};a.$w=function(a){a.preventDefault&&this.b.yp&&!this.b.Ag&&a.preventDefault();this.b.yp=!0;l(a)||(this.tn({changedTouches:[{pageX:a.pageX,
pageY:a.pageY,identifier:0}]}),this.ln=!1)};a.Xn=function(){var a,b,c,e=bb();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=e-50&&(c.Zm=e),c.Sw(this,a)};q.prototype.yo=function(){return!0};q.prototype.Jl=function(){return!0};q.prototype.Kl=function(a){return a?this.b.gl(a,this.ie,this.je):!1};var H=[];q.prototype.Js=function(a){if(!a)return!1;var b=a.P(),c=b.nc(),e,d,f,g,l,h;f=0;for(g=c.length;f<g;f++){var m=c[f];m.Fa();l=0;for(h=this.touches.length;l<h;l++)if(d=this.touches[l],e=
m.k.Ib(d.x,d.y,!0),d=m.k.Ib(d.x,d.y,!1),m.Vb(e,d)){H.push(m);break}}return H.length?(b.aa=!1,Ca(b.c,H),a.Sc(),z(H),!0):!1};q.prototype.wo=function(a){a=Math.floor(a);return a===this.ae};q.prototype.vo=function(a){a=Math.floor(a);return a===this.ae};q.prototype.bt=function(){return!0};q.prototype.kt=function(){return!0};q.prototype.Ws=function(){return!0};q.prototype.ct=function(a){return a?this.b.gl(a,this.ie,this.je):!1};q.prototype.lt=function(a){return a?this.b.gl(a,this.ie,this.je):!1};q.prototype.Xs=
function(a){return a?this.b.gl(a,this.ie,this.je):!1};p.e=new q;p.C=new function(){};n.prototype.Bo=function(a,b){var c=this.xg;if(0>c||c>=this.touches.length)a.A(0);else{var e,d,f,g,l;ja(b)?(e=this.b.Mh(0),d=e.scale,f=e.Hd,g=e.ed,l=e.j,e.scale=1,e.Hd=1,e.ed=1,e.j=0,a.A(e.Ib(this.touches[c].x,this.touches[c].y,!0)),e.scale=d,e.Hd=f,e.ed=g,e.j=l):(e=ka(b)?this.b.Mh(b):this.b.Dm(b))?a.A(e.Ib(this.touches[c].x,this.touches[c].y,!0)):a.A(0)}};n.prototype.Co=function(a,b){var c=this.xg;if(0>c||c>=this.touches.length)a.A(0);
else{var e,d,f,g,l;ja(b)?(e=this.b.Mh(0),d=e.scale,f=e.Hd,g=e.fd,l=e.j,e.scale=1,e.Hd=1,e.fd=1,e.j=0,a.A(e.Ib(this.touches[c].x,this.touches[c].y,!1)),e.scale=d,e.Hd=f,e.fd=g,e.j=l):(e=ka(b)?this.b.Mh(b):this.b.Dm(b))?a.A(e.Ib(this.touches[c].x,this.touches[c].y,!1)):a.A(0)}};p.G=new n})();function Fc(d){this.b=d}
(function(){function d(){}function h(){}function c(){}var l=Fc.prototype;l.la=function(a){this.qa=a;this.b=a.b};l.la.prototype.K=function(){};l.ba=function(a){this.type=a;this.b=a.b};var q=l.ba.prototype,n="",p="undefined"!==typeof window.is_scirra_arcade;p&&(n="arcade"+window.scirra_arcade_id);var a=!1;try{localStorage.getItem("test"),a=!0}catch(e){a=!1}q.K=function(){a||ha("[Construct 2] Webstorage plugin: local storage is not supported on this platform.")};d.prototype.Ns=function(c){return a?null!=
localStorage.getItem(n+c):!1};d.prototype.gt=function(){return!0};l.e=new d;h.prototype.St=function(c,b){if(a)try{localStorage.setItem(n+c,b)}catch(e){this.b.trigger(Fc.prototype.e.gt,this)}};l.C=new h;c.prototype.Os=function(c,b){a?c.Ya(localStorage.getItem(n+b)||""):c.Ya("")};c.prototype.zl=function(c){if(a){var b={},e,d,l;e=0;for(d=localStorage.length;e<d;e++)l=localStorage.key(e),p?l.substr(0,n.length)===n&&(b[l.substr(n.length)]=localStorage.getItem(l)):b[l]=localStorage.getItem(l);c.Ya(JSON.stringify({c2dictionary:!0,
data:b}))}else c.Ya("")};l.G=new c})();function Gc(d){this.b=d}
(function(){function d(){}function h(){}var c=Gc.prototype;c.la=function(c){this.behavior=c;this.b=c.b};c.la.prototype.K=function(){};c.ba=function(c,d){this.type=c;this.behavior=c.behavior;this.d=d;this.b=c.b};var l=c.ba.prototype;l.K=function(){this.Ml=1===this.m[0];this.qr=!1;this.Hh=this.m[1];this.Zi=this.m[2];this.Nj=this.m[3];this.vu=this.m[4];this.Fc=this.Ml?0:3;this.Ec?this.hd.reset():this.hd=new fb;this.hf=this.d.opacity?this.d.opacity:1;this.Ml&&(0===this.Hh?(this.Fc=1,0===this.Zi&&(this.Fc=
2)):(this.d.opacity=0,this.b.ra=!0))};l.wb=function(){return{fit:this.Hh,wt:this.Zi,fot:this.Nj,s:this.Fc,st:this.hd.R,mo:this.hf}};l.Nb=function(c){this.Hh=c.fit;this.Zi=c.wt;this.Nj=c.fot;this.Fc=c.s;this.hd.reset();this.hd.R=c.st;this.hf=c.mo};l.Db=function(){this.hd.add(this.b.wg(this.d));0===this.Fc&&(this.d.opacity=this.hd.R/this.Hh*this.hf,this.b.ra=!0,this.d.opacity>=this.hf&&(this.d.opacity=this.hf,this.Fc=1,this.hd.reset(),this.b.trigger(Gc.prototype.e.Zs,this.d)));1===this.Fc&&this.hd.R>=
this.Zi&&(this.Fc=2,this.hd.reset(),this.b.trigger(Gc.prototype.e.nt,this.d));2===this.Fc&&0!==this.Nj&&(this.d.opacity=this.hf-this.hd.R/this.Nj*this.hf,this.b.ra=!0,0>this.d.opacity&&(this.d.opacity=0,this.Fc=3,this.hd.reset(),this.b.trigger(Gc.prototype.e.$s,this.d),1===this.vu&&this.b.Ie(this.d)))};l.Mu=function(){this.Fc=0;this.hd.reset();0===this.Hh?(this.Fc=1,0===this.Zi&&(this.Fc=2)):(this.d.opacity=0,this.b.ra=!0)};d.prototype.$s=function(){return!0};d.prototype.Zs=function(){return!0};d.prototype.nt=
function(){return!0};c.e=new d;h.prototype.Qt=function(){this.Ml||this.qr||(this.hf=this.d.opacity?this.d.opacity:1,this.qr=!0);3===this.Fc&&this.Mu()};c.C=new h;c.G=new function(){}})();function Hc(d){this.b=d}
(function(){var d=Hc.prototype;d.la=function(c){this.behavior=c;this.b=c.b};d.la.prototype.K=function(){};d.ba=function(c,d){this.type=c;this.behavior=c.behavior;this.d=d;this.b=c.b};var h=d.ba.prototype;h.K=function(){this.speed=D(this.m[0]);this.kj=D(this.m[1])};h.wb=function(){return{speed:this.speed,acc:this.kj}};h.Nb=function(c){this.speed=c.speed;this.kj=c.acc};h.Db=function(){var c=this.b.wg(this.d);0!==c&&(0!==this.kj&&(this.speed+=this.kj*c),0!==this.speed&&(this.d.j=Ma(this.d.j+this.speed*
c),this.d.Ja()))};d.e=new function(){};d.C=new function(){};d.G=new function(){}})();function Ic(d){this.b=d}
(function(){function d(){}function h(){}var c=Ic.prototype;c.la=function(a){this.behavior=a;this.b=a.b};c.la.prototype.K=function(){};c.ba=function(a,c){this.type=a;this.behavior=a.behavior;this.d=c;this.b=a.b;this.Wa=0};var l=c.ba.prototype,q=2*Math.PI,n=Math.PI/2,p=3*Math.PI/2;l.K=function(){this.Sa=1===this.m[0];this.Xf=this.m[1];this.po=this.m[2];this.xe=this.m[3];this.xe+=Math.random()*this.m[4];0===this.xe?this.Wa=0:(this.Wa=this.m[5]/this.xe*q,this.Wa+=Math.random()*this.m[6]/this.xe*q);this.fc=
this.m[7];this.fc+=Math.random()*this.m[8];this.Di=this.Kf=this.ga=0;5===this.Xf&&(this.fc=D(this.fc));this.init()};l.wb=function(){return{i:this.Wa,a:this.Sa,mv:this.Xf,w:this.po,p:this.xe,mag:this.fc,iv:this.ga,iv2:this.Kf,r:this.Di,lkv:this.U,lkv2:this.Ia}};l.Nb=function(a){this.Wa=a.i;this.Sa=a.a;this.Xf=a.mv;this.po=a.w;this.xe=a.p;this.fc=a.mag;this.ga=a.iv;this.Kf=a.iv2||0;this.Di=a.r;this.U=a.lkv;this.Ia=a.lkv2||0};l.init=function(){switch(this.Xf){case 0:this.ga=this.d.x;break;case 1:this.ga=
this.d.y;break;case 2:this.ga=this.d.width;this.Di=this.d.height/this.d.width;break;case 3:this.ga=this.d.width;break;case 4:this.ga=this.d.height;break;case 5:this.ga=this.d.j;break;case 6:this.ga=this.d.opacity;break;case 7:this.ga=0;break;case 8:this.ga=this.d.x,this.Kf=this.d.y}this.U=this.ga;this.Ia=this.Kf};l.be=function(a){a=a%q;switch(this.po){case 0:return Math.sin(a);case 1:return a<=n?a/n:a<=p?1-2*(a-n)/Math.PI:(a-p)/n-1;case 2:return 2*a/q-1;case 3:return-2*a/q+1;case 4:return a<Math.PI?
-1:1}return 0};l.Db=function(){var a=this.b.wg(this.d);this.Sa&&0!==a&&(0===this.xe?this.Wa=0:(this.Wa+=a/this.xe*q,this.Wa=this.Wa%q),this.ay())};l.ay=function(){switch(this.Xf){case 0:this.d.x!==this.U&&(this.ga+=this.d.x-this.U);this.d.x=this.ga+this.be(this.Wa)*this.fc;this.U=this.d.x;break;case 1:this.d.y!==this.U&&(this.ga+=this.d.y-this.U);this.d.y=this.ga+this.be(this.Wa)*this.fc;this.U=this.d.y;break;case 2:this.d.width=this.ga+this.be(this.Wa)*this.fc;this.d.height=this.d.width*this.Di;
break;case 3:this.d.width=this.ga+this.be(this.Wa)*this.fc;break;case 4:this.d.height=this.ga+this.be(this.Wa)*this.fc;break;case 5:this.d.j!==this.U&&(this.ga=Ma(this.ga+(this.d.j-this.U)));this.d.j=Ma(this.ga+this.be(this.Wa)*this.fc);this.U=this.d.j;break;case 6:this.d.opacity=this.ga+this.be(this.Wa)*this.fc/100;0>this.d.opacity?this.d.opacity=0:1<this.d.opacity&&(this.d.opacity=1);break;case 8:this.d.x!==this.U&&(this.ga+=this.d.x-this.U),this.d.y!==this.Ia&&(this.Kf+=this.d.y-this.Ia),this.d.x=
this.ga+Math.cos(this.d.j)*this.be(this.Wa)*this.fc,this.d.y=this.Kf+Math.sin(this.d.j)*this.be(this.Wa)*this.fc,this.U=this.d.x,this.Ia=this.d.y}this.d.Ja()};l.Jq=function(a,c){switch(this.Xf){case 2:this.ga*=c.width/a.width;this.Di=c.height/c.width;break;case 3:this.ga*=c.width/a.width;break;case 4:this.ga*=c.height/a.height}};d.prototype.Ds=function(){return this.Sa};c.e=new d;c.C=new function(){};h.prototype.Vt=function(a){a.A(this.be(this.Wa)*this.fc)};c.G=new h})();
var Jc=[],Kc=[],Lc=[],Mc=[],Nc=[],Oc=[],Pc=[],Vc=[],Wc=[],Xc=[];function Yc(d){return result=(d/=1)<1/2.75?7.5625*d*d+0:d<2/2.75?1*(7.5625*(d-=1.5/2.75)*d+.75)+0:d<2.5/2.75?1*(7.5625*(d-=2.25/2.75)*d+.9375)+0:1*(7.5625*(d-=2.625/2.75)*d+.984375)+0}function Zc(d,h){return Math.round(d/h*1E4)}
function $c(d,h,c,l,q){var n=0;switch(d){case 0:n=1*h/c+0;break;case 1:n=1*(h/=c)*h+0;break;case 2:n=-1*(h/=c)*(h-2)+0;break;case 3:n=1>(h/=c/2)?.5*h*h+0:-.5*(--h*(h-2)-1)+0;break;case 4:n=1*(h/=c)*h*h+0;break;case 5:n=1*((h=h/c-1)*h*h+1)+0;break;case 6:n=1>(h/=c/2)?.5*h*h*h+0:.5*((h-=2)*h*h+2)+0;break;case 7:n=1*(h/=c)*h*h*h+0;break;case 8:n=-1*((h=h/c-1)*h*h*h-1)+0;break;case 9:n=1>(h/=c/2)?.5*h*h*h*h+0:-.5*((h-=2)*h*h*h-2)+0;break;case 10:n=1*(h/=c)*h*h*h*h+0;break;case 11:n=1*((h=h/c-1)*h*h*h*
h+1)+0;break;case 12:n=1>(h/=c/2)?.5*h*h*h*h*h+0:.5*((h-=2)*h*h*h*h+2)+0;break;case 13:q.Bc?n=Nc[Zc(h,c)]:n=-(Math.sqrt(1-h*h)-1);break;case 14:q.Bc?n=Oc[Zc(h,c)]:n=Math.sqrt(1-(h-1)*(h-1));break;case 15:n=q.Bc?Pc[Zc(h,c)]:1>(h/=c/2)?-.5*(Math.sqrt(1-h*h)-1)+0:.5*(Math.sqrt(1-(h-=2)*h)+1)+0;break;case 16:q.Bc?n=Vc[Zc(h,c)]:(q=q.qc,n=1*(h/=c)*h*((q+1)*h-q)+0);break;case 17:q.Bc?n=Wc[Zc(h,c)]:(q=q.qc,n=1*((h=h/c-1)*h*((q+1)*h+q)+1)+0);break;case 18:q.Bc?n=Xc[Zc(h,c)]:(q=q.qc,n=1>(h/=c/2)?.5*h*h*(((q*=
1.525)+1)*h-q)+0:.5*((h-=2)*h*(((q*=1.525)+1)*h+q)+2)+0);break;case 19:q.Bc?n=Kc[Zc(h,c)]:(n=q.kg,d=q.Ik,h/=c,0==d&&(d=.3*c),0==n||n<Math.abs(1)?(n=1,q=d/4):q=d/(2*Math.PI)*Math.asin(1/n),n=-(n*Math.pow(2,10*--h)*Math.sin(2*(h*c-q)*Math.PI/d))+0);break;case 20:q.Bc?n=Lc[Zc(h,c)]:(n=q.kg,d=q.Ik,h/=c,0==d&&(d=.3*c),0==n||n<Math.abs(1)?(n=1,q=d/4):q=d/(2*Math.PI)*Math.asin(1/n),n=n*Math.pow(2,-10*h)*Math.sin(2*(h*c-q)*Math.PI/d)+1);break;case 21:q.Bc?n=Mc[Zc(h,c)]:(n=q.kg,d=q.Ik,h/=c/2,0==d&&(d=.3*c*
1.5),0==n||n<Math.abs(1)?(n=1,q=d/4):q=d/(2*Math.PI)*Math.asin(1/n),n=1>h?-.5*n*Math.pow(2,10*--h)*Math.sin(2*(h*c-q)*Math.PI/d)+0:n*Math.pow(2,-10*--h)*Math.sin(2*(h*c-q)*Math.PI/d)*.5+1);break;case 22:n=q.Bc?1-Jc[Zc(c-h,c)]+0:1-Yc(c-h/c)+0;break;case 23:n=q.Bc?Jc[Zc(h,c)]:Yc(h/c);break;case 24:n=q.Bc?h<c/2?.5*(1-Jc[Zc(c-2*h,c)]+0)+0:.5*Jc[Zc(2*h-c,c)]+.5:h<c/2?.5*(1-Yc(c-2*h)+0)+0:.5*Yc((2*h-c)/c)+.5;break;case 25:h=h/c/2;n=2*h*h*(3-2*h);break;case 26:h=(h/c+1)/2;n=2*h*h*(3-2*h)-1;break;case 27:h=
h/c,n=h*h*(3-2*h)}return l?1-n:n}
for(var ad=0,bd=0,cd=0,X=0,Y=0,dd=0;1E4>=dd;dd++)X=dd/1E4,ad=(X/=1)<1/2.75?7.5625*X*X+0:X<2/2.75?1*(7.5625*(X-=1.5/2.75)*X+.75)+0:X<2.5/2.75?1*(7.5625*(X-=2.25/2.75)*X+.9375)+0:1*(7.5625*(X-=2.625/2.75)*X+.984375)+0,Jc[dd]=ad,X=dd/1E4,cd=bd=0,X/=1,0==cd&&(cd=.3),0==bd||bd<Math.abs(1)?(bd=1,Y=cd/4):Y=cd/(2*Math.PI)*Math.asin(1/bd),ad=-(bd*Math.pow(2,10*--X)*Math.sin(2*(1*X-Y)*Math.PI/cd))+0,Kc[dd]=ad,X=dd/1E4,cd=bd=0,X/=1,0==cd&&(cd=.3),0==bd||bd<Math.abs(1)?(bd=1,Y=cd/4):Y=cd/(2*Math.PI)*Math.asin(1/
bd),ad=bd*Math.pow(2,-10*X)*Math.sin(2*(1*X-Y)*Math.PI/cd)+1,Lc[dd]=ad,X=dd/1E4,cd=bd=0,X/=.5,0==cd&&(cd=.3*1.5),0==bd||bd<Math.abs(1)?(bd=1,Y=cd/4):Y=cd/(2*Math.PI)*Math.asin(1/bd),ad=1>X?-.5*bd*Math.pow(2,10*--X)*Math.sin(2*(1*X-Y)*Math.PI/cd)+0:bd*Math.pow(2,-10*--X)*Math.sin(2*(1*X-Y)*Math.PI/cd)*.5+1,Mc[dd]=ad,X=dd/1E4,Nc[dd]=-(Math.sqrt(1-X*X)-1),X=dd/1E4,Oc[dd]=Math.sqrt(1-(X-1)*(X-1)),X=dd/1E4,ad=1>(X/=.5)?-.5*(Math.sqrt(1-X*X)-1)+0:.5*(Math.sqrt(1-(X-=2)*X)+1)+0,Pc[dd]=ad,X=dd/1E4,Y=0,0==
Y&&(Y=1.70158),ad=1*(X/=1)*X*((Y+1)*X-Y)+0,Vc[dd]=ad,X=dd/1E4,Y=0,0==Y&&(Y=1.70158),ad=1*((X=X/1-1)*X*((Y+1)*X+Y)+1)+0,Wc[dd]=ad,X=dd/1E4,Y=0,0==Y&&(Y=1.70158),ad=1>(X/=.5)?.5*X*X*(((Y*=1.525)+1)*X-Y)+0:.5*((X-=2)*X*(((Y*=1.525)+1)*X+Y)+2)+0,Xc[dd]=ad;
function ed(d,h,c,l,q,n,p){this.name=d;this.value=0;this.$g(l);this.$k(q);this.Af=c;this.Ka=h;this.duration=n;this.state=this.F=0;this.Dk=this.Ek=this.zk=this.Tg=!1;this.Ia=this.U=0;this.Yb=p;this.ye=1;this.Kh=!1;this.Ic=[];this.Up=1;for(d=0;28>d;d++)this.Ic[d]={},this.Ic[d].kg=0,this.Ic[d].Ik=0,this.Ic[d].fh=0,this.Ic[d].qc=0,this.Ic[d].Bc=!0}ed.prototype={};ed.prototype.$g=function(d){this.na=parseFloat(d.split(",")[0]);this.cb=parseFloat(d.split(",")[1]);this.Ia=this.U=0};
ed.prototype.$k=function(d){this.ka=parseFloat(d.split(",")[0]);this.Ra=parseFloat(d.split(",")[1]);isNaN(this.Ra)&&(this.Ra=this.ka)};
ed.prototype.Il=function(d){if(0===this.state)return-1;1===this.state&&(this.F+=d);2===this.state&&(this.F-=d);3===this.state&&(this.state=0);if(4===this.state||6===this.state)this.F+=d*this.ye;5===this.state&&(this.F+=d*this.ye);return 0>this.F?(this.F=0,4===this.state?this.ye=1:6===this.state?(this.ye=1,this.Kh=!1):this.state=0,this.Dk=!0,0):this.F>this.duration?(this.F=this.duration,4===this.state?this.ye=-1:6===this.state?(this.ye=-1,this.Kh=!0):5===this.state?this.F=0:this.state=0,this.zk=!0,
1):this.Kh?$c(this.Af,this.duration-this.F,this.duration,this.Kh,this.Ic[this.Af]):$c(this.Af,this.F,this.duration,this.Kh,this.Ic[this.Af])};function fd(d){this.b=d}
(function(){var d=fd.prototype;d.la=function(c){this.behavior=c;this.b=c.b};d.la.prototype.K=function(){};d.ba=function(c,d){this.type=c;this.behavior=c.behavior;this.d=d;this.b=c.b;this.Wa=0};var h=d.ba.prototype;h.K=function(){this.Wg=this.m[0];this.Sa=1==this.Wg||2==this.Wg||3==this.Wg||4==this.Wg;this.Ka=this.m[1];this.km=this.m[2];this.target=this.m[3];this.fl=this.m[4];this.sl=!1;1===this.fl&&(this.target="relative("+this.target+")");this.duration=this.m[5];this.Yb=1===this.m[6];this.value=
0;this.q={};this.Jo(this.Ka,this.km,"current",this.target,this.duration,this.Yb);1===this.m[0]&&this.Ni(0);2===this.m[0]&&this.Ni(2);3===this.m[0]&&this.Ni(3);4===this.m[0]&&this.Ni(4)};h.Ud=function(c,d){void 0===d&&(d="current");var h=d.replace(/^\s\s*/,"").replace(/\s\s*$/,"");d=d.replace(/^\s\s*/,"").replace(/\s\s*$/,"");var n=this.value;if("current"===d)switch(c){case 0:h=this.d.x+","+this.d.y;break;case 1:h=this.d.width+","+this.d.height;break;case 2:h=this.d.width+","+this.d.height;break;case 3:h=
this.d.width+","+this.d.height;break;case 4:h=Ka(this.d.j)+","+Ka(this.d.j);break;case 5:h=100*this.d.opacity+","+100*this.d.opacity;break;case 6:h=n+","+n;break;case 7:h=this.d.x+","+this.d.y;break;case 8:h=this.d.x+","+this.d.y;break;case 9:h=void 0!==this.d.Ma?this.d.width/this.d.Ma.width+","+this.d.height/this.d.Ma.height:"1,1"}if("relative"===d.substring(0,8)){var p=d.match(/\((.*?)\)/);if(p)var a=parseFloat(p[1].split(",")[0]),e=parseFloat(p[1].split(",")[1]);isNaN(a)&&(a=0);isNaN(e)&&(e=0);
switch(c){case 0:h=this.d.x+a+","+(this.d.y+e);break;case 1:h=this.d.width+a+","+(this.d.height+e);break;case 2:h=this.d.width+a+","+(this.d.height+e);break;case 3:h=this.d.width+a+","+(this.d.height+e);break;case 4:h=Ka(this.d.j)+a+","+(Ka(this.d.j)+e);break;case 5:h=100*this.d.opacity+a+","+(100*this.d.opacity+e);break;case 6:h=n+a+","+n+a;break;case 7:h=this.d.x+a+","+this.d.y;break;case 8:h=this.d.x+","+(this.d.y+a);break;case 9:h=a+","+e}}return h};h.Jo=function(c,d,h,n,p,a){h=this.Ud(c,h);n=
this.Ud(c,n);void 0!==this.q["default"]&&delete this.q["default"];this.q["default"]=new ed("default",c,d,h,n,p,a);this.q["default"].me=0};h.wb=function(){JSON.stringify(this.q["default"]);return{playmode:this.Wg,active:this.Sa,tweened:this.Ka,easing:this.km,target:this.target,targetmode:this.fl,useCurrent:this.sl,duration:this.duration,enforce:this.Yb,value:this.value,tweenlist:JSON.stringify(this.q["default"])}};ed.Ls=function(c,d,h,n,p,a,e,g){d=new ed(d,h,n,p,a,e,g);for(var b in c)d[b]=c[b];return d};
h.Nb=function(c){var d=JSON.parse(c.tweenlist),d=ed.Ls(d,d.name,d.Ka,d.Af,d.na+","+d.cb,d.ka+","+d.Ra,d.duration,d.Yb);this.q["default"]=d;this.Wg=c.playmode;this.Sa=c.active;this.Xf=c.tweened;this.km=c.easing;this.target=c.target;this.fl=c.targetmode;this.sl=c.useCurrent;this.duration=c.duration;this.Yb=c.enforce;this.value=c.value};h.Mx=function(c){1<c&&(c=1);0>c&&(c=0);for(var d in this.q){var h=this.q[d];h.U=0;h.Ia=0;h.state=3;h.F=c*h.duration;var n=h.Il(0);this.io(h,n)}};h.Ni=function(c){for(var d in this.q){var h=
this.q[d];if(this.sl){var n=this.Ud(h.Ka,"current"),p=this.Ud(h.Ka,this.target);h.$g(n);h.$k(p)}0===c&&(h.F=1E-6,h.U=0,h.Ia=0,h.Tg=!0,h.state=1);1===c&&(h.state=h.Up);if(2===c||4===c)h.F=1E-6,h.U=0,h.Ia=0,h.Tg=!0,2==c&&(h.state=4),4==c&&(h.state=6);3===c&&(h.F=1E-6,h.U=0,h.Ia=0,h.Tg=!0,h.state=5)}};h.Ux=function(c){for(var d in this.q){var h=this.q[d];3!=h.state&&0!=h.state&&(h.Up=h.state);1===c&&(h.F=0);2===c&&(h.F=h.duration);h.state=3;var n=h.Il(0);this.io(h,n)}};h.Bx=function(c){for(var d in this.q){var h=
this.q[d];1===c&&(h.F=h.duration,h.U=0,h.Ia=0,h.Ek=!0);h.state=2}};h.io=function(c,d){if(0===c.Ka)c.Yb?(this.d.x=c.na+(c.ka-c.na)*d,this.d.y=c.cb+(c.Ra-c.cb)*d):(this.d.x+=(c.ka-c.na)*d-c.U,this.d.y+=(c.Ra-c.cb)*d-c.Ia,c.U=(c.ka-c.na)*d,c.Ia=(c.Ra-c.cb)*d);else if(1===c.Ka)c.Yb?(this.d.width=c.na+(c.ka-c.na)*d,this.d.height=c.cb+(c.Ra-c.cb)*d):(this.d.width+=(c.ka-c.na)*d-c.U,this.d.height+=(c.Ra-c.cb)*d-c.Ia,c.U=(c.ka-c.na)*d,c.Ia=(c.Ra-c.cb)*d);else if(2===c.Ka)c.Yb?this.d.width=c.na+(c.ka-c.na)*
d:(this.d.width+=(c.ka-c.na)*d-c.U,c.U=(c.ka-c.na)*d);else if(3===c.Ka)c.Yb?this.d.height=c.cb+(c.Ra-c.cb)*d:(this.d.height+=(c.Ra-c.cb)*d-c.Ia,c.Ia=(c.Ra-c.cb)*d);else if(4===c.Ka)if(c.Yb){var h=c.na+(c.ka-c.na)*d;this.d.j=Ma(D(h))}else h=(c.ka-c.na)*d-c.U,this.d.j=Ma(this.d.j+D(h)),c.U=(c.ka-c.na)*d;else if(5===c.Ka)c.Yb?this.d.opacity=(c.na+(c.ka-c.na)*d)/100:(this.d.opacity+=((c.ka-c.na)*d-c.U)/100,c.U=(c.ka-c.na)*d);else if(6===c.Ka)c.Yb?this.value=c.na+(c.ka-c.na)*d:(this.value+=(c.ka-c.na)*
d-c.U,c.U=(c.ka-c.na)*d);else if(7===c.Ka)c.Yb?this.d.x=c.na+(c.ka-c.na)*d:(this.d.x+=(c.ka-c.na)*d-c.U,c.U=(c.ka-c.na)*d);else if(8===c.Ka)c.Yb?this.d.y=c.cb+(c.Ra-c.cb)*d:(this.d.y+=(c.Ra-c.cb)*d-c.Ia,c.Ia=(c.Ra-c.cb)*d);else if(9===c.Ka){var h=c.na+(c.ka-c.na)*d,n=c.cb+(c.Ra-c.cb)*d;0>this.d.width&&(h=c.na+(c.ka+c.na)*-d);0>this.d.height&&(n=c.cb+(c.Ra+c.cb)*-d);c.Yb?(this.d.width=this.d.Ma.width*h,this.d.height=this.d.Ma.height*n):(0>this.d.width?(this.d.width=this.d.width/(-1+c.U)*h,c.U=h+1):
(this.d.width=this.d.width/(1+c.U)*h,c.U=h-1),0>this.d.height?(this.d.height=this.d.height/(-1+c.Ia)*n,c.Ia=n+1):(this.d.height=this.d.height/(1+c.Ia)*n,c.Ia=n-1))}this.d.Ja()};h.Db=function(){var c=this.b.wg(this.d),d=this.q["default"];0!==d.state&&(d.Tg&&(this.b.trigger(fd.prototype.e.jt,this.d),d.Tg=!1),d.Ek&&(this.b.trigger(fd.prototype.e.it,this.d),d.Ek=!1),this.Sa=1==d.state||2==d.state||4==d.state||5==d.state||6==d.state,c=d.Il(c),this.io(d,c),d.zk&&(this.b.trigger(fd.prototype.e.Ys,this.d),
d.zk=!1),d.Dk&&(this.b.trigger(fd.prototype.e.ht,this.d),d.Dk=!1))};d.e={};h=d.e;h.Ds=function(){return 0!==this.q["default"].state};h.Ay=function(){return 2==this.q["default"].state};h.ty=function(c,d){var h=this.q["default"];return lc(h.F/h.duration,c,d)};h.Iy=function(c,d){var h=this.q["default"];this.Ti=lc(h.F/h.duration,c,d);if(h=this.sn!=this.Ti&&this.Ti)this.sn=this.Ti;return h};h.jt=function(){return void 0===this.q["default"]?!1:this.q["default"].Tg};h.it=function(){return void 0===this.q["default"]?
!1:this.q["default"].Ek};h.Ys=function(){return void 0===this.q["default"]?!1:this.q["default"].zk};h.ht=function(){return void 0===this.q["default"]?!1:this.q["default"].Dk};d.C={};h=d.C;h.jz=function(c,d){this.sn=this.Ti=!1;this.sl=1==d;this.Ni(c)};h.Rt=function(c){this.Ux(c)};h.yt=function(c){this.sn=this.Ti=!1;this.Bx(c)};h.Oy=function(c){this.Mx(c)};h.Vy=function(c){isNaN(c)||0>c||void 0===this.q["default"]||(this.q["default"].duration=c)};h.$y=function(c){void 0!==this.q["default"]&&(this.q["default"].Yb=
1===c)};h.bz=function(c){void 0!==this.q["default"]&&(c=this.Ud(this.q["default"].Ka,c),this.q["default"].$g(c))};h.fz=function(c,d,h){if(void 0!==this.q["default"]&&!isNaN(h)){var n=this.q["default"],p=h+"";this.fl=d;var a="",e="";if(1===d){this.target="relative("+p+")";switch(c){case 0:a=this.d.x+h;e=n.Ra;break;case 1:a=n.ka;e=this.d.y+h;break;case 2:e=a=""+Ka(this.d.j+D(h));break;case 3:e=a=""+100*this.d.opacity+h;break;case 4:a=this.d.width+h;e=n.Ra;break;case 5:a=n.ka;e=this.d.height+h;break;
case 6:e=a=h}p=a+","+e}else{switch(c){case 0:a=h;e=n.Ra;break;case 1:a=n.ka;e=h;break;case 2:e=a=h;break;case 3:e=a=h;break;case 4:a=h;e=n.Ra;break;case 5:a=n.ka;e=h;break;case 6:e=a=h}this.target=p=a+","+e}c=this.Ud(this.q["default"].Ka,"current");p=this.Ud(this.q["default"].Ka,p);n.$g(c);n.$k(p)}};h.hz=function(c){void 0!==this.q["default"]&&(this.q["default"].Ka=c)};h.Wy=function(c){void 0!==this.q["default"]&&(this.q["default"].Af=c)};h.Xy=function(c,d,h,n,p){void 0!==this.q["default"]&&(this.q["default"].Ic[c].Bc=
!1,this.q["default"].Ic[c].kg=d,this.q["default"].Ic[c].Ik=h,this.q["default"].Ic[c].fh=n,this.q["default"].Ic[c].qc=p)};h.Py=function(){void 0!==this.q["default"]&&(this.q["default"].Bc=!0)};h.iz=function(c){var d=this.q["default"];this.value=c;6===d.Ka&&d.$g(this.Ud(d.Ka,"current"))};h.dz=function(c,d,h,n,p){if(void 0===this.q["default"])this.Jo(c,d,initial,h,n,p);else{var a=this.q["default"];a.Ka=c;a.Af=d;a.$g(this.Ud(c,"current"));a.$k(this.Ud(c,h));a.duration=n;a.Yb=1===p}};d.G={};d=d.G;d.kz=
function(c){var d="N/A";switch(this.q["default"].state){case 0:d="paused";break;case 1:d="playing";break;case 2:d="reversing";break;case 3:d="seeking"}c.Ya(d)};d.tt=function(c){c.A(this.q["default"].F/this.q["default"].duration)};d.ws=function(c){c.A(this.q["default"].duration)};d.mz=function(c){var d=this.q["default"],h="N/A";switch(d.Ka){case 0:h=d.ka;break;case 1:h=d.Ra;break;case 2:h=d.ka;break;case 3:h=d.ka;break;case 4:h=d.ka;break;case 5:h=d.Ra;break;case 6:h=d.ka}c.A(h)};d.Vt=function(c){c.A(this.value)};
d.oz=function(c,d,h,n,p){n=1<n?1:n;p=$c(p,0>n?0:n,1,!1,!1);c.A(d+p*(h-d))}})();
function uc(){return[Bc,wc,Ac,xc,zc,yc,vc,Dc,W,Ec,Cc,Fc,fd,Ic,Gc,Hc,K.prototype.e.Is,vc.prototype.e.hj,xc.prototype.e.bs,xc.prototype.e.ls,K.prototype.C.ss,xc.prototype.G.us,W.prototype.C.Ct,W.prototype.C.Nt,xc.prototype.G.ts,xc.prototype.C.Mt,K.prototype.G["int"],K.prototype.G.random,W.prototype.G.Ut,W.prototype.C.zt,xc.prototype.G.cs,W.prototype.C.Et,W.prototype.G.Co,W.prototype.C.Bt,vc.prototype.C.CallFunction,K.prototype.e.zs,vc.prototype.G.ot,K.prototype.G.Qw,W.prototype.e.ns,W.prototype.C.Ps,
W.prototype.e.Gs,yc.prototype.C.Play,K.prototype.C.Wt,K.prototype.e.As,W.prototype.e.Es,Gc.prototype.C.Qt,K.prototype.G.Kw,W.prototype.C.Qs,W.prototype.C.Ot,W.prototype.C.At,W.prototype.C.vs,K.prototype.e.os,xc.prototype.e.rs,K.prototype.C.Gt,K.prototype.C.$r,K.prototype.e.js,W.prototype.e.pt,xc.prototype.C.es,K.prototype.e.so,K.prototype.e.uo,K.prototype.G.Lw,xc.prototype.C.Ll,Bc.prototype.C.Ao,Bc.prototype.C.Ll,K.prototype.G.me,W.prototype.e.qs,K.prototype.e.xs,Ec.prototype.e.Js,xc.prototype.C.Lt,
W.prototype.G.Bo,W.prototype.C.Ao,K.prototype.e.ks,K.prototype.G.wu,Ec.prototype.e.Jl,xc.prototype.e.ps,K.prototype.G.Mw,W.prototype.e.ro,K.prototype.G.ou,K.prototype.C.Dt,Fc.prototype.e.Ns,Fc.prototype.G.Os,K.prototype.e.ys,Dc.prototype.C.Ft,Fc.prototype.C.St,W.prototype.e.Us,W.prototype.e.ms,K.prototype.G.atan,Ec.prototype.e.Kl,K.prototype.C.Bs,K.prototype.C.xt,wc.prototype.C.zo,W.prototype.C.Jt,yc.prototype.C.It,wc.prototype.C.ut,wc.prototype.e.de,wc.prototype.G.to,W.prototype.C.Ht,K.prototype.G.round,
K.prototype.G.Sf,K.prototype.e.Al,yc.prototype.C.qt]};
