// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var ba,da,ea,fa,ga,ha,ia,ka,la,ma,na,oa,pa,qa,ra,z,sa,ta,ua,xa,ya,za,Aa,N,Ba,Ca,Da,Ea,Ga,S,Ha,Ia,Ja,Ka,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(d){return d.__proto__}:function(d){return d.constructor.prototype});
(function(){function d(a,b,c,f){this.set(a,b,c,f)}function q(){this.fc=this.ec=this.ic=this.hc=this.pc=this.oc=this.Jb=this.Ib=0}function p(a,b,c,f){a<b?c<f?(M=a<c?a:c,G=b>f?b:f):(M=a<f?a:f,G=b>c?b:c):c<f?(M=b<c?b:c,G=a>f?a:f):(M=b<f?b:f,G=a>c?a:c)}function t(){this.items=this.ye=null;this.Zi=0;ja&&(this.ye=new Set);this.di=[];this.Af=!0}function n(a){F[O++]=a}function g(){this.O=this.Km=this.y=this.un=0}function k(a){this.Ka=[];this.vk=this.xk=this.yk=this.wk=0;this.Pj(a)}function c(a,b){this.tb=
a;this.Lb=b;this.cells={}}function b(a,b){this.tb=a;this.Lb=b;this.cells={}}function e(a,b,c){var f;return J.length?(f=J.pop(),f.eo=a,f.x=b,f.y=c,f):new da(a,b,c)}function a(a,b,c){this.eo=a;this.x=b;this.y=c;this.Pb=new ea}function f(a,b,c){var f;return x.length?(f=x.pop(),f.eo=a,f.x=b,f.y=c,f):new fa(a,b,c)}function r(a,b,c){this.eo=a;this.x=b;this.y=c;this.Pb=[];this.wh=!0;this.te=new ea;this.ki=!1}function h(a,b){return a.ee-b.ee}ga=function(a){window.console&&window.console.log&&window.console.log(a)};
ha=function(a){window.console&&window.console.error&&window.console.error(a)};ba=function(a){return a};ia=function(a){return"undefined"===typeof a};ka=function(a){return"number"===typeof a};la=function(a){return"string"===typeof a};ma=function(a){return 0<a&&0===(a-1&a)};na=function(a){--a;for(var b=1;32>b;b<<=1)a=a|a>>b;return a+1};oa=function(a){return 0>a?-a:a};pa=function(a,b){return a>b?a:b};qa=function(a,b){return a<b?a:b};ra=Math.PI;z=function(a){return 0<=a?a|0:(a|0)-1};sa=function(a){var b=
a|0;return b===a?b:b+1};ta=function(a,b,c,f,l,e,m,h){var r,v,B,d;a<c?(v=a,r=c):(v=c,r=a);l<m?(d=l,B=m):(d=m,B=l);if(r<d||v>B)return!1;b<f?(v=b,r=f):(v=f,r=b);e<h?(d=e,B=h):(d=h,B=e);if(r<d||v>B)return!1;r=l-a+m-c;v=e-b+h-f;a=c-a;b=f-b;l=m-l;e=h-e;h=oa(b*l-e*a);return oa(l*v-e*r)>h?!1:oa(a*v-b*r)<=h};d.prototype.set=function(a,b,c,f){this.left=a;this.top=b;this.right=c;this.bottom=f};d.prototype.qi=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};d.prototype.width=
function(){return this.right-this.left};d.prototype.height=function(){return this.bottom-this.top};d.prototype.offset=function(a,b){this.left+=a;this.top+=b;this.right+=a;this.bottom+=b;return this};d.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};d.prototype.Hy=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};d.prototype.Iy=
function(a,b,c){return!(a.right+b<this.left||a.bottom+c<this.top||a.left+b>this.right||a.top+c>this.bottom)};d.prototype.jc=function(a,b){return a>=this.left&&a<=this.right&&b>=this.top&&b<=this.bottom};d.prototype.wi=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};ua=d;q.prototype.Yh=function(a){this.Ib=a.left;this.Jb=a.top;this.oc=a.right;this.pc=a.top;this.hc=a.right;this.ic=a.bottom;this.ec=a.left;this.fc=a.bottom};q.prototype.xt=function(a,
b){if(0===b)this.Yh(a);else{var c=Math.sin(b),f=Math.cos(b),l=a.left*c,e=a.top*c,m=a.right*c,c=a.bottom*c,h=a.left*f,r=a.top*f,v=a.right*f,f=a.bottom*f;this.Ib=h-e;this.Jb=r+l;this.oc=v-e;this.pc=r+m;this.hc=v-c;this.ic=f+m;this.ec=h-c;this.fc=f+l}};q.prototype.offset=function(a,b){this.Ib+=a;this.Jb+=b;this.oc+=a;this.pc+=b;this.hc+=a;this.ic+=b;this.ec+=a;this.fc+=b;return this};var M=0,G=0;q.prototype.Fq=function(a){p(this.Ib,this.oc,this.hc,this.ec);a.left=M;a.right=G;p(this.Jb,this.pc,this.ic,
this.fc);a.top=M;a.bottom=G};q.prototype.jc=function(a,b){var c=this.Ib,f=this.Jb,l=this.oc-c,e=this.pc-f,m=this.hc-c,h=this.ic-f,r=a-c,v=b-f,B=l*l+e*e,d=l*m+e*h,e=l*r+e*v,y=m*m+h*h,k=m*r+h*v,u=1/(B*y-d*d),l=(y*e-d*k)*u,B=(B*k-d*e)*u;if(0<=l&&0<B&&1>l+B)return!0;l=this.ec-c;e=this.fc-f;B=l*l+e*e;d=l*m+e*h;e=l*r+e*v;u=1/(B*y-d*d);l=(y*e-d*k)*u;B=(B*k-d*e)*u;return 0<=l&&0<B&&1>l+B};q.prototype.nd=function(a,b){if(b)switch(a){case 0:return this.Ib;case 1:return this.oc;case 2:return this.hc;case 3:return this.ec;
case 4:return this.Ib;default:return this.Ib}else switch(a){case 0:return this.Jb;case 1:return this.pc;case 2:return this.ic;case 3:return this.fc;case 4:return this.Jb;default:return this.Jb}};q.prototype.ts=function(){return(this.Ib+this.oc+this.hc+this.ec)/4};q.prototype.us=function(){return(this.Jb+this.pc+this.ic+this.fc)/4};q.prototype.Er=function(a){var b=a.ts(),c=a.us();if(this.jc(b,c))return!0;b=this.ts();c=this.us();if(a.jc(b,c))return!0;var f,l,e,m,h,r,v,B;for(v=0;4>v;v++)for(B=0;4>B;B++)if(b=
this.nd(v,!0),c=this.nd(v,!1),f=this.nd(v+1,!0),l=this.nd(v+1,!1),e=a.nd(B,!0),m=a.nd(B,!1),h=a.nd(B+1,!0),r=a.nd(B+1,!1),ta(b,c,f,l,e,m,h,r))return!0;return!1};xa=q;ya=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a};za=function(a,b){var c,f;b=z(b);if(!(0>b||b>=a.length)){c=b;for(f=a.length-1;c<f;c++)a[c]=a[c+1];Aa(a,f)}};Aa=function(a,b){a.length=b};N=function(a){Aa(a,0)};Ba=function(a,b){N(a);var c,f;c=0;for(f=b.length;c<f;++c)a[c]=b[c]};Ca=function(a,b){a.push.apply(a,b)};
Da=function(a,b){var c,f;c=0;for(f=a.length;c<f;++c)if(a[c]===b)return c;return-1};Ea=function(a,b){var c=Da(a,b);-1!==c&&za(a,c)};Ga=function(a,b,c){return a<b?b:a>c?c:a};S=function(a){return a/(180/ra)};Ha=function(a){return 180/ra*a};Ia=function(a){a%=360;0>a&&(a+=360);return a};Ja=function(a){a%=2*ra;0>a&&(a+=2*ra);return a};Ka=function(a){return Ia(Ha(a))};Ma=function(a){return Ja(S(a))};Na=function(a,b,c,f){return Math.atan2(f-b,c-a)};Oa=function(a,b){if(a===b)return 0;var c=Math.sin(a),f=Math.cos(a),
l=Math.sin(b),e=Math.cos(b),c=c*l+f*e;return 1<=c?0:-1>=c?ra:Math.acos(c)};Pa=function(a,b,c){var f=Math.sin(a),l=Math.cos(a),e=Math.sin(b),m=Math.cos(b);return Math.acos(f*e+l*m)>c?0<l*e-f*m?Ja(a+c):Ja(a-c):Ja(b)};Qa=function(a,b){var c=Math.sin(a),f=Math.cos(a),l=Math.sin(b),e=Math.cos(b);return 0>=f*l-c*e};Ra=function(a,b,c,f,l,e){if(0===c)return e?a:b;var m=Math.sin(c);c=Math.cos(c);a-=f;b-=l;var h=a*m;a=a*c-b*m;b=b*c+h;return e?a+f:b+l};Sa=function(a,b,c,f){a=c-a;b=f-b;return Math.sqrt(a*a+b*
b)};Ta=function(a,b){return!a!==!b};Ua=function(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1};Va=function(a){for(var b in a)a.hasOwnProperty(b)&&delete a[b]};var u=+new Date;Wa=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-u};var m=!1,
l=m=!1,y=!1;"undefined"!==typeof window&&(m=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),m=!m&&/safari/i.test(navigator.userAgent),l=/(iphone|ipod|ipad)/i.test(navigator.userAgent),y=window.c2ejecta);var ja=!m&&!y&&!l&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;t.prototype.contains=function(a){return this.Re()?!1:ja?this.ye.has(a):this.items&&this.items.hasOwnProperty(a)};t.prototype.add=function(a){if(ja)this.ye.has(a)||(this.ye.add(a),this.Af=
!1);else{var b=a.toString(),c=this.items;c?c.hasOwnProperty(b)||(c[b]=a,this.Zi++,this.Af=!1):(this.items={},this.items[b]=a,this.Zi=1,this.Af=!1)}};t.prototype.remove=function(a){if(!this.Re())if(ja)this.ye.has(a)&&(this.ye["delete"](a),this.Af=!1);else if(this.items){a=a.toString();var b=this.items;b.hasOwnProperty(a)&&(delete b[a],this.Zi--,this.Af=!1)}};t.prototype.clear=function(){this.Re()||(ja?this.ye.clear():(this.items=null,this.Zi=0),N(this.di),this.Af=!0)};t.prototype.Re=function(){return 0===
this.count()};t.prototype.count=function(){return ja?this.ye.size:this.Zi};var F=null,O=0;t.prototype.eA=function(){if(!this.Af){if(ja)N(this.di),F=this.di,O=0,this.ye.forEach(n),F=null,O=0;else{var a=this.di;N(a);var b,c=0,f=this.items;if(f)for(b in f)f.hasOwnProperty(b)&&(a[c++]=f[b])}this.Af=!0}};t.prototype.qf=function(){this.eA();return this.di};ea=t;new ea;Xa=function(a,b){ja?Ya(a,b.ye):ab(a,b.qf())};Ya=function(a,b){var c,f,l,e;f=c=0;for(l=a.length;c<l;++c)e=a[c],b.has(e)||(a[f++]=e);Aa(a,
f)};ab=function(a,b){var c,f,l,e;f=c=0;for(l=a.length;c<l;++c)e=a[c],-1===Da(b,e)&&(a[f++]=e);Aa(a,f)};g.prototype.add=function(a){this.y=a-this.un;this.Km=this.O+this.y;this.un=this.Km-this.O-this.y;this.O=this.Km};g.prototype.reset=function(){this.O=this.Km=this.y=this.un=0};bb=g;cb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};k.prototype.Pj=function(a){this.$s=a;this.Zc=a.length/2;this.Ka.length=a.length;this.Bk=this.Ck=-1;this.Iq=0};k.prototype.sh=function(){return!this.$s.length};
k.prototype.Ia=function(){for(var a=this.Ka,b=a[0],c=b,f=a[1],l=f,e,m,h=1,r=this.Zc;h<r;++h)m=2*h,e=a[m],m=a[m+1],e<b&&(b=e),e>c&&(c=e),m<f&&(f=m),m>l&&(l=m);this.wk=b;this.xk=c;this.yk=f;this.vk=l};k.prototype.Yh=function(a,b,c){this.Ka.length=8;this.Zc=4;var f=this.Ka;f[0]=a.left-b;f[1]=a.top-c;f[2]=a.right-b;f[3]=a.top-c;f[4]=a.right-b;f[5]=a.bottom-c;f[6]=a.left-b;f[7]=a.bottom-c;this.Ck=a.right-a.left;this.Bk=a.bottom-a.top;this.Ia()};k.prototype.Xh=function(a,b,c,f,l){this.Ka.length=8;this.Zc=
4;var e=this.Ka;e[0]=a.Ib-b;e[1]=a.Jb-c;e[2]=a.oc-b;e[3]=a.pc-c;e[4]=a.hc-b;e[5]=a.ic-c;e[6]=a.ec-b;e[7]=a.fc-c;this.Ck=f;this.Bk=l;this.Ia()};k.prototype.ut=function(a){this.Zc=a.Zc;Ba(this.Ka,a.Ka);this.wk=a.wk;this.yk-a.yk;this.xk=a.xk;this.vk=a.vk};k.prototype.hg=function(a,b,c){if(this.Ck!==a||this.Bk!==b||this.Iq!==c){this.Ck=a;this.Bk=b;this.Iq=c;var f,l,e,m,h,r=0,v=1,B=this.$s,d=this.Ka;0!==c&&(r=Math.sin(c),v=Math.cos(c));c=0;for(e=this.Zc;c<e;c++)f=2*c,l=f+1,m=B[f]*a,h=B[l]*b,d[f]=m*v-h*
r,d[l]=h*v+m*r;this.Ia()}};k.prototype.jc=function(a,b){var c=this.Ka;if(a===c[0]&&b===c[1])return!0;var f,l,e,m=this.Zc,h=this.wk-110,r=this.yk-101,v=this.xk+131,B=this.vk+120,d,y,u=0,k=0;for(f=0;f<m;f++)l=2*f,e=(f+1)%m*2,d=c[l],l=c[l+1],y=c[e],e=c[e+1],ta(h,r,a,b,d,l,y,e)&&u++,ta(v,B,a,b,d,l,y,e)&&k++;return 1===u%2||1===k%2};k.prototype.Mi=function(a,b,c){var f=a.Ka,l=this.Ka;if(this.jc(f[0]+b,f[1]+c)||a.jc(l[0]-b,l[1]-c))return!0;var e,m,h,r,v,B,d,y,u,k,g,q;e=0;for(r=this.Zc;e<r;e++)for(m=2*e,
h=(e+1)%r*2,y=l[m],m=l[m+1],u=l[h],k=l[h+1],h=0,d=a.Zc;h<d;h++)if(v=2*h,B=(h+1)%d*2,g=f[v]+b,v=f[v+1]+c,q=f[B]+b,B=f[B+1]+c,ta(y,m,u,k,g,v,q,B))return!0;return!1};k.prototype.az=function(a){var b,c,f;b=0;for(c=this.Zc;b<c;++b)f=2*b,this.Ka[f]=2*a-this.Ka[f]};k.prototype.Nx=function(a){var b,c,f;b=0;for(c=this.Zc;b<c;++b)f=2*b+1,this.Ka[f]=2*a-this.Ka[f]};k.prototype.zw=function(){var a,b,c,f,l;a=0;for(b=this.Zc;a<b;++a)c=2*a,f=c+1,l=this.Ka[c],this.Ka[c]=this.Ka[f],this.Ka[f]=l};db=k;c.prototype.If=
function(a,b,c){var f;f=this.cells[a];return f?(f=f[b])?f:c?(f=e(this,a,b),this.cells[a][b]=f):null:c?(f=e(this,a,b),this.cells[a]={},this.cells[a][b]=f):null};c.prototype.zc=function(a){return z(a/this.tb)};c.prototype.Ac=function(a){return z(a/this.Lb)};c.prototype.update=function(a,b,c){var f,l,e,m,h;if(b)for(f=b.left,l=b.right;f<=l;++f)for(e=b.top,m=b.bottom;e<=m;++e)if(!c||!c.jc(f,e))if(h=this.If(f,e,!1))h.remove(a),h.Re()&&(h.Pb.clear(),1E3>J.length&&J.push(h),this.cells[f][e]=null);if(c)for(f=
c.left,l=c.right;f<=l;++f)for(e=c.top,m=c.bottom;e<=m;++e)b&&b.jc(f,e)||this.If(f,e,!0).uo(a)};c.prototype.nm=function(a,b){var c,f,l,e,m,h;c=this.zc(a.left);l=this.Ac(a.top);f=this.zc(a.right);for(m=this.Ac(a.bottom);c<=f;++c)for(e=l;e<=m;++e)(h=this.If(c,e,!1))&&h.dump(b)};eb=c;b.prototype.If=function(a,b,c){var l;l=this.cells[a];return l?(l=l[b])?l:c?(l=f(this,a,b),this.cells[a][b]=l):null:c?(l=f(this,a,b),this.cells[a]={},this.cells[a][b]=l):null};b.prototype.zc=function(a){return z(a/this.tb)};
b.prototype.Ac=function(a){return z(a/this.Lb)};b.prototype.update=function(a,b,c){var f,l,e,m,h;if(b)for(f=b.left,l=b.right;f<=l;++f)for(e=b.top,m=b.bottom;e<=m;++e)if(!c||!c.jc(f,e))if(h=this.If(f,e,!1))h.remove(a),h.Re()&&(h.reset(),1E3>x.length&&x.push(h),this.cells[f][e]=null);if(c)for(f=c.left,l=c.right;f<=l;++f)for(e=c.top,m=c.bottom;e<=m;++e)b&&b.jc(f,e)||this.If(f,e,!0).uo(a)};b.prototype.nm=function(a,b,c,f,l){var e,m;a=this.zc(a);b=this.Ac(b);c=this.zc(c);for(e=this.Ac(f);a<=c;++a)for(f=
b;f<=e;++f)(m=this.If(a,f,!1))&&m.dump(l)};b.prototype.Yy=function(a){var b,c,f,l,e;b=a.left;f=a.top;c=a.right;for(l=a.bottom;b<=c;++b)for(a=f;a<=l;++a)if(e=this.If(b,a,!1))e.wh=!1};fb=b;var J=[];a.prototype.Re=function(){return this.Pb.Re()};a.prototype.uo=function(a){this.Pb.add(a)};a.prototype.remove=function(a){this.Pb.remove(a)};a.prototype.dump=function(a){Ca(a,this.Pb.qf())};da=a;var x=[];r.prototype.Re=function(){if(!this.Pb.length)return!0;if(this.Pb.length>this.te.count())return!1;this.Qn();
return!0};r.prototype.uo=function(a){this.te.contains(a)?(this.te.remove(a),this.te.Re()&&(this.ki=!1)):this.Pb.length?(this.Pb[this.Pb.length-1].ne()>a.ne()&&(this.wh=!1),this.Pb.push(a)):(this.Pb.push(a),this.wh=!0)};r.prototype.remove=function(a){this.te.add(a);this.ki=!0;30<=this.te.count()&&this.Qn()};r.prototype.Qn=function(){this.ki&&(this.te.count()===this.Pb.length?this.reset():(Xa(this.Pb,this.te),this.te.clear(),this.ki=!1))};r.prototype.$w=function(){this.wh||(this.Pb.sort(h),this.wh=
!0)};r.prototype.reset=function(){N(this.Pb);this.wh=!0;this.te.clear();this.ki=!1};r.prototype.dump=function(a){this.Qn();this.$w();this.Pb.length&&a.push(this.Pb)};fa=r;var w="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");gb=function(a){return 0>=a||11<=a?"source-over":w[a-1]};hb=function(a,b,c){if(c)switch(a.mc=c.ONE,a.kc=c.ONE_MINUS_SRC_ALPHA,b){case 1:a.mc=c.ONE;a.kc=c.ONE;break;case 3:a.mc=c.ONE;a.kc=c.ZERO;break;
case 4:a.mc=c.ONE_MINUS_DST_ALPHA;a.kc=c.ONE;break;case 5:a.mc=c.DST_ALPHA;a.kc=c.ZERO;break;case 6:a.mc=c.ZERO;a.kc=c.SRC_ALPHA;break;case 7:a.mc=c.ONE_MINUS_DST_ALPHA;a.kc=c.ZERO;break;case 8:a.mc=c.ZERO;a.kc=c.ONE_MINUS_SRC_ALPHA;break;case 9:a.mc=c.DST_ALPHA;a.kc=c.ONE_MINUS_SRC_ALPHA;break;case 10:a.mc=c.ONE_MINUS_DST_ALPHA,a.kc=c.SRC_ALPHA}};ib=function(a){return Math.round(1E6*a)/1E6};jb=function(a,b){return"string"!==typeof a||"string"!==typeof b||a.length!==b.length?!1:a===b?!0:a.toLowerCase()===
b.toLowerCase()};kb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||jb(a.tagName,"canvas")?!0:!1}})();var gc="undefined"!==typeof Float32Array?Float32Array:Array;function hc(d){var q=new gc(3);d&&(q[0]=d[0],q[1]=d[1],q[2]=d[2]);return q}
function ic(d){var q=new gc(16);d&&(q[0]=d[0],q[1]=d[1],q[2]=d[2],q[3]=d[3],q[4]=d[4],q[5]=d[5],q[6]=d[6],q[7]=d[7],q[8]=d[8],q[9]=d[9],q[10]=d[10],q[11]=d[11],q[12]=d[12],q[13]=d[13],q[14]=d[14],q[15]=d[15]);return q}function jc(d,q){q[0]=d[0];q[1]=d[1];q[2]=d[2];q[3]=d[3];q[4]=d[4];q[5]=d[5];q[6]=d[6];q[7]=d[7];q[8]=d[8];q[9]=d[9];q[10]=d[10];q[11]=d[11];q[12]=d[12];q[13]=d[13];q[14]=d[14];q[15]=d[15]}
function kc(d,q){var p=q[0],t=q[1];q=q[2];d[0]*=p;d[1]*=p;d[2]*=p;d[3]*=p;d[4]*=t;d[5]*=t;d[6]*=t;d[7]*=t;d[8]*=q;d[9]*=q;d[10]*=q;d[11]*=q}
function lc(d,q,p,t){t||(t=ic());var n,g,k,c,b,e,a,f,r=d[0],h=d[1];d=d[2];g=p[0];k=p[1];n=p[2];p=q[1];e=q[2];r===q[0]&&h===p&&d===e?(d=t,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):(p=r-q[0],e=h-q[1],a=d-q[2],f=1/Math.sqrt(p*p+e*e+a*a),p*=f,e*=f,a*=f,q=k*a-n*e,n=n*p-g*a,g=g*e-k*p,(f=Math.sqrt(q*q+n*n+g*g))?(f=1/f,q*=f,n*=f,g*=f):g=n=q=0,k=e*g-a*n,c=a*q-p*g,b=p*n-e*q,(f=Math.sqrt(k*k+c*c+b*b))?(f=1/f,k*=f,c*=f,b*=f):b=c=k=0,
t[0]=q,t[1]=k,t[2]=p,t[3]=0,t[4]=n,t[5]=c,t[6]=e,t[7]=0,t[8]=g,t[9]=b,t[10]=a,t[11]=0,t[12]=-(q*r+n*h+g*d),t[13]=-(k*r+c*h+b*d),t[14]=-(p*r+e*h+a*d),t[15]=1)}
(function(){function d(c,b,e){this.Se=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ja=!!e;this.ul=this.Oi=!1;this.Lk=0;this.bn=1;this.aq=1E3;this.lA=(this.aq-this.bn)/32768;this.vn=hc([0,0,100]);this.Yr=hc([0,0,0]);this.Yt=hc([0,1,0]);this.kk=hc([1,1,1]);this.Sq=!0;this.Pl=ic();this.gd=ic();this.Go=ic();this.Fn=ic();this.J=c;this.version=0===this.J.getParameter(this.J.VERSION).indexOf("WebGL 2")?2:1;this.Ar()}function q(c,b,e){this.J=c;this.Qj=
b;this.name=e;this.ud=c.getAttribLocation(b,"aPos");this.Rf=c.getAttribLocation(b,"aTex");this.Wr=c.getUniformLocation(b,"matP");this.Kl=c.getUniformLocation(b,"matMV");this.Gh=c.getUniformLocation(b,"opacity");this.No=c.getUniformLocation(b,"colorFill");this.Xr=c.getUniformLocation(b,"samplerFront");this.mj=c.getUniformLocation(b,"samplerBack");this.Ig=c.getUniformLocation(b,"destStart");this.Hg=c.getUniformLocation(b,"destEnd");this.oj=c.getUniformLocation(b,"seconds");this.Po=c.getUniformLocation(b,
"pixelWidth");this.Oo=c.getUniformLocation(b,"pixelHeight");this.lj=c.getUniformLocation(b,"layerScale");this.kj=c.getUniformLocation(b,"layerAngle");this.pj=c.getUniformLocation(b,"viewOrigin");this.nj=c.getUniformLocation(b,"scrollPos");this.Cy=!!(this.Po||this.Oo||this.oj||this.mj||this.Ig||this.Hg||this.lj||this.kj||this.pj||this.nj);this.gs=this.hs=-999;this.Ol=1;this.bs=this.as=0;this.ds=this.$r=this.Zr=1;this.ns=this.ls=this.ks=this.qs=this.os=this.cs=0;this.Fo=[];this.es=ic();this.Gh&&c.uniform1f(this.Gh,
1);this.No&&c.uniform4f(this.No,1,1,1,1);this.Xr&&c.uniform1i(this.Xr,0);this.mj&&c.uniform1i(this.mj,1);this.Ig&&c.uniform2f(this.Ig,0,0);this.Hg&&c.uniform2f(this.Hg,1,1);this.lj&&c.uniform1f(this.lj,1);this.kj&&c.uniform1f(this.kj,0);this.pj&&c.uniform2f(this.pj,0,0);this.nj&&c.uniform2f(this.nj,0,0);this.oj&&c.uniform1f(this.oj,0);this.wg=!1}function p(c,b){return c[0]===b[0]&&c[1]===b[1]&&c[2]===b[2]&&c[3]===b[3]&&c[4]===b[4]&&c[5]===b[5]&&c[6]===b[6]&&c[7]===b[7]&&c[8]===b[8]&&c[9]===b[9]&&
c[10]===b[10]&&c[11]===b[11]&&c[12]===b[12]&&c[13]===b[13]&&c[14]===b[14]&&c[15]===b[15]}function t(c,b){this.type=c;this.D=b;this.J=b.J;this.Gc=this.$b=this.Ks=0;this.fa=this.Ed=null;this.yt=[]}var n=ic();d.prototype.Ar=function(){var c=this.J,b;this.Rr=1;this.Eg=this.Nf=null;this.Kk=1;c.clearColor(0,0,0,0);c.clear(c.COLOR_BUFFER_BIT);c.enable(c.BLEND);c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA);c.disable(c.CULL_FACE);c.disable(c.STENCIL_TEST);c.disable(c.DITHER);this.Ja?(c.enable(c.DEPTH_TEST),c.depthFunc(c.LEQUAL)):
c.disable(c.DEPTH_TEST);this.Sr=c.ONE;this.Qr=c.ONE_MINUS_SRC_ALPHA;this.ik=new Float32Array(8E3*(this.Ja?3:2));this.Xj=new Float32Array(16E3);this.hp=new Float32Array(32E3);this.gp=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,this.gp);c.bufferData(c.ARRAY_BUFFER,this.hp.byteLength,c.DYNAMIC_DRAW);this.hk=Array(4);this.Wj=Array(4);for(b=0;4>b;b++)this.hk[b]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.hk[b]),c.bufferData(c.ARRAY_BUFFER,this.ik.byteLength,c.DYNAMIC_DRAW),this.Wj[b]=c.createBuffer(),
c.bindBuffer(c.ARRAY_BUFFER,this.Wj[b]),c.bufferData(c.ARRAY_BUFFER,this.Xj.byteLength,c.DYNAMIC_DRAW);this.He=0;this.Fy=c.createBuffer();c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.Fy);for(var e=new Uint16Array(12E3),a=b=0;12E3>b;)e[b++]=a,e[b++]=a+1,e[b++]=a+2,e[b++]=a,e[b++]=a+2,e[b++]=a+3,a+=4;c.bufferData(c.ELEMENT_ARRAY_BUFFER,e,c.STATIC_DRAW);this.Rh=this.Yf=this.Gd=0;this.$a=[];b=this.Ja?"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}";e=this.ri({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},b,"<default>");this.$a.push(e);e=this.ri({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.$a.push(e);e=this.ri({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},b,"<earlyz>");this.$a.push(e);e=this.ri({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
b,"<fill>");this.$a.push(e);for(var f in mc)mc.hasOwnProperty(f)&&this.$a.push(this.ri(mc[f],b,f));c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,null);this.Md=[];this.od=0;this.Tb=this.zb=!1;this.Oq=this.bj=-1;this.fh=null;this.On=c.createFramebuffer();this.Pk=this.pm=null;this.Dq=!1;this.Ja&&(this.Pk=c.createRenderbuffer());this.Zf=hc([0,0,0]);c=c.getParameter(c.ALIASED_POINT_SIZE_RANGE);this.$y=c[0];this.To=c[1];2048<this.To&&(this.To=2048);this.Mc(0)};q.prototype.Tp=function(c){p(this.es,
c)||(jc(c,this.es),this.J.uniformMatrix4fv(this.Kl,!1,c))};d.prototype.ri=function(c,b,e){var a=this.J,f=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(f,c.src);a.compileShader(f);if(!a.getShaderParameter(f,a.COMPILE_STATUS))throw c=a.getShaderInfoLog(f),a.deleteShader(f),Error("error compiling fragment shader: "+c);var r=a.createShader(a.VERTEX_SHADER);a.shaderSource(r,b);a.compileShader(r);if(!a.getShaderParameter(r,a.COMPILE_STATUS))throw c=a.getShaderInfoLog(r),a.deleteShader(f),a.deleteShader(r),
Error("error compiling vertex shader: "+c);b=a.createProgram();a.attachShader(b,f);a.attachShader(b,r);a.linkProgram(b);if(!a.getProgramParameter(b,a.LINK_STATUS))throw c=a.getProgramInfoLog(b),a.deleteShader(f),a.deleteShader(r),a.deleteProgram(b),Error("error linking shader program: "+c);a.useProgram(b);a.deleteShader(f);a.deleteShader(r);f=new q(a,b,e);f.Tk=c.Tk||0;f.Uk=c.Uk||0;f.En=!!c.En;f.zd=!!c.zd;f.rn=!!c.rn;f.da=c.da||[];c=0;for(r=f.da.length;c<r;c++)f.da[c][1]=a.getUniformLocation(b,f.da[c][0]),
f.Fo.push(0),a.uniform1f(f.da[c][1],0);return f};d.prototype.ao=function(c){var b,e;b=0;for(e=this.$a.length;b<e;b++)if(this.$a[b].name===c)return b;return-1};d.prototype.Zs=function(c,b,e){var a=this.gd,f=this.Pl,r=[0,0,0,0,0,0,0,0];r[0]=a[0]*c+a[4]*b+a[12];r[1]=a[1]*c+a[5]*b+a[13];r[2]=a[2]*c+a[6]*b+a[14];r[3]=a[3]*c+a[7]*b+a[15];r[4]=f[0]*r[0]+f[4]*r[1]+f[8]*r[2]+f[12]*r[3];r[5]=f[1]*r[0]+f[5]*r[1]+f[9]*r[2]+f[13]*r[3];r[6]=f[2]*r[0]+f[6]*r[1]+f[10]*r[2]+f[14]*r[3];r[7]=-r[2];0!==r[7]&&(r[7]=1/
r[7],r[4]*=r[7],r[5]*=r[7],r[6]*=r[7],e[0]=(.5*r[4]+.5)*this.width,e[1]=(.5*r[5]+.5)*this.height)};d.prototype.hf=function(c,b,e){if(this.width!==c||this.height!==b||e){this.ke();e=this.J;this.width=c;this.height=b;e.viewport(0,0,c,b);lc(this.vn,this.Yr,this.Yt,this.gd);if(this.Ja){var a=-c/2;c=c/2;var f=b/2;b=-b/2;var r=this.bn,h=this.aq,d=this.Pl;d||(d=ic());var k=c-a,u=b-f,m=h-r;d[0]=2/k;d[1]=0;d[2]=0;d[3]=0;d[4]=0;d[5]=2/u;d[6]=0;d[7]=0;d[8]=0;d[9]=0;d[10]=-2/m;d[11]=0;d[12]=-(a+c)/k;d[13]=-(b+
f)/u;d[14]=-(h+r)/m;d[15]=1;this.kk[0]=1;this.kk[1]=1}else b=c/b,a=this.bn,c=this.aq,d=this.Pl,h=a*Math.tan(45*Math.PI/360),b*=h,f=-b,r=-h,d||(d=ic()),k=b-f,u=h-r,m=c-a,d[0]=2*a/k,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=2*a/u,d[6]=0,d[7]=0,d[8]=(b+f)/k,d[9]=(h+r)/u,d[10]=-(c+a)/m,d[11]=-1,d[12]=0,d[13]=0,d[14]=-(c*a*2)/m,d[15]=0,a=[0,0],c=[0,0],this.Zs(0,0,a),this.Zs(1,1,c),this.kk[0]=1/(c[0]-a[0]),this.kk[1]=-1/(c[1]-a[1]);a=0;for(c=this.$a.length;a<c;a++)f=this.$a[a],f.wg=!1,f.Wr&&(e.useProgram(f.Qj),
e.uniformMatrix4fv(f.Wr,!1,this.Pl));e.useProgram(this.$a[this.bj].Qj);e.bindTexture(e.TEXTURE_2D,null);e.activeTexture(e.TEXTURE1);e.bindTexture(e.TEXTURE_2D,null);e.activeTexture(e.TEXTURE0);this.Eg=this.Nf=null;this.Pk&&(e.bindFramebuffer(e.FRAMEBUFFER,this.On),e.bindRenderbuffer(e.RENDERBUFFER,this.Pk),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,this.width,this.height),this.Dq||(e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,this.Pk),this.Dq=!0),e.bindRenderbuffer(e.RENDERBUFFER,
null),e.bindFramebuffer(e.FRAMEBUFFER,null),this.pm=null)}};d.prototype.Ad=function(){lc(this.vn,this.Yr,this.Yt,this.gd);kc(this.gd,this.kk)};d.prototype.translate=function(c,b){if(0!==c||0!==b){this.Zf[0]=c;this.Zf[1]=b;this.Zf[2]=0;var e=this.gd,a=this.Zf,f=a[0],r=a[1],a=a[2];e[12]=e[0]*f+e[4]*r+e[8]*a+e[12];e[13]=e[1]*f+e[5]*r+e[9]*a+e[13];e[14]=e[2]*f+e[6]*r+e[10]*a+e[14];e[15]=e[3]*f+e[7]*r+e[11]*a+e[15]}};d.prototype.scale=function(c,b){if(1!==c||1!==b)this.Zf[0]=c,this.Zf[1]=b,this.Zf[2]=
1,kc(this.gd,this.Zf)};d.prototype.rm=function(c){if(0!==c){var b=this.gd,e,a=Math.sin(c);c=Math.cos(c);var f=b[0],r=b[1],h=b[2],d=b[3],k=b[4],u=b[5],m=b[6],l=b[7];e?b!==e&&(e[8]=b[8],e[9]=b[9],e[10]=b[10],e[11]=b[11],e[12]=b[12],e[13]=b[13],e[14]=b[14],e[15]=b[15]):e=b;e[0]=f*c+k*a;e[1]=r*c+u*a;e[2]=h*c+m*a;e[3]=d*c+l*a;e[4]=f*-a+k*c;e[5]=r*-a+u*c;e[6]=h*-a+m*c;e[7]=d*-a+l*c}};d.prototype.kd=function(){if(!p(this.Go,this.gd)){var c=this.vc();c.type=5;c.fa?jc(this.gd,c.fa):c.fa=ic(this.gd);jc(this.gd,
this.Go);this.Tb=this.zb=!1}};d.prototype.ym=function(c){this.Ja&&(32760<c&&(c=32760),this.Lk=this.vn[2]-this.bn-c*this.lA)};t.prototype.Kw=function(){var c=this.J,b=this.D;0!==this.$b?(c.depthMask(!0),c.colorMask(!1,!1,!1,!1),c.disable(c.BLEND),c.bindFramebuffer(c.FRAMEBUFFER,b.On),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,null,0),c.clear(c.DEPTH_BUFFER_BIT),c.bindFramebuffer(c.FRAMEBUFFER,null),b.ul=!0):(c.depthMask(!1),c.colorMask(!0,!0,!0,!0),c.enable(c.BLEND),b.ul=
!1)};t.prototype.Ow=function(){this.J.bindTexture(this.J.TEXTURE_2D,this.Ed)};t.prototype.Pw=function(){var c=this.J;c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,this.Ed);c.activeTexture(c.TEXTURE0)};t.prototype.Lw=function(){var c=this.Ks,b=this.D;b.Kk=c;b=b.fh;b.Gh&&b.Ol!==c&&(b.Ol=c,this.J.uniform1f(b.Gh,c))};t.prototype.Fw=function(){this.J.drawElements(this.J.TRIANGLES,this.Gc,this.J.UNSIGNED_SHORT,this.$b)};t.prototype.Hw=function(){this.J.blendFunc(this.$b,this.Gc)};t.prototype.Qw=
function(){var c,b,e,a=this.D.$a,f=this.D.Oq;c=0;for(b=a.length;c<b;c++)e=a[c],c===f&&e.Kl?(e.Tp(this.fa),e.wg=!0):e.wg=!1;jc(this.fa,this.D.Fn)};t.prototype.Gw=function(){var c=this.J,b=this.D;this.Ed?(b.Eg===this.Ed&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,null),b.Eg=null,c.activeTexture(c.TEXTURE0)),c.bindFramebuffer(c.FRAMEBUFFER,b.On),b.ul||c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,this.Ed,0)):(b.Ja||c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,
c.TEXTURE_2D,null,0),c.bindFramebuffer(c.FRAMEBUFFER,null))};t.prototype.Cw=function(){var c=this.J,b=this.$b;0===b?(c.clearColor(this.fa[0],this.fa[1],this.fa[2],this.fa[3]),c.clear(c.COLOR_BUFFER_BIT)):1===b?(c.enable(c.SCISSOR_TEST),c.scissor(this.fa[0],this.fa[1],this.fa[2],this.fa[3]),c.clearColor(0,0,0,0),c.clear(c.COLOR_BUFFER_BIT),c.disable(c.SCISSOR_TEST)):c.clear(c.DEPTH_BUFFER_BIT)};t.prototype.Jw=function(){var c=this.J;0!==this.$b?c.enable(c.DEPTH_TEST):c.disable(c.DEPTH_TEST)};t.prototype.Ew=
function(){var c=this.J,b=this.D;b.Ja&&c.disable(c.DEPTH_TEST);var e=b.$a[1];c.useProgram(e.Qj);!e.wg&&e.Kl&&(e.Tp(b.Fn),e.wg=!0);c.enableVertexAttribArray(e.ud);c.bindBuffer(c.ARRAY_BUFFER,b.gp);c.vertexAttribPointer(e.ud,4,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,this.$b/4,this.Gc);e=b.fh;c.useProgram(e.Qj);0<=e.ud&&(c.enableVertexAttribArray(e.ud),c.bindBuffer(c.ARRAY_BUFFER,b.hk[b.He]),c.vertexAttribPointer(e.ud,b.Ja?3:2,c.FLOAT,!1,0,0));0<=e.Rf&&(c.enableVertexAttribArray(e.Rf),c.bindBuffer(c.ARRAY_BUFFER,
b.Wj[b.He]),c.vertexAttribPointer(e.Rf,2,c.FLOAT,!1,0,0));b.Ja&&c.enable(c.DEPTH_TEST)};t.prototype.Mw=function(){var c=this.J,b=this.D,e=b.$a[this.$b];b.Oq=this.$b;b.fh=e;c.useProgram(e.Qj);!e.wg&&e.Kl&&(e.Tp(b.Fn),e.wg=!0);e.Gh&&e.Ol!==b.Kk&&(e.Ol=b.Kk,c.uniform1f(e.Gh,b.Kk));0<=e.ud&&(c.enableVertexAttribArray(e.ud),c.bindBuffer(c.ARRAY_BUFFER,b.hk[b.He]),c.vertexAttribPointer(e.ud,b.Ja?3:2,c.FLOAT,!1,0,0));0<=e.Rf&&(c.enableVertexAttribArray(e.Rf),c.bindBuffer(c.ARRAY_BUFFER,b.Wj[b.He]),c.vertexAttribPointer(e.Rf,
2,c.FLOAT,!1,0,0))};t.prototype.Iw=function(){var c=this.fa;this.J.uniform4f(this.D.fh.No,c[0],c[1],c[2],c[3])};t.prototype.Nw=function(){var c,b,e=this.D.fh,a=this.J;c=this.fa;e.mj&&this.D.Eg!==this.Ed&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,this.Ed),this.D.Eg=this.Ed,a.activeTexture(a.TEXTURE0));var f=c[0];e.Po&&f!==e.hs&&(e.hs=f,a.uniform1f(e.Po,f));f=c[1];e.Oo&&f!==e.gs&&(e.gs=f,a.uniform1f(e.Oo,f));f=c[2];b=c[3];!e.Ig||f===e.as&&b===e.bs||(e.as=f,e.bs=b,a.uniform2f(e.Ig,f,b));
f=c[4];b=c[5];!e.Hg||f===e.Zr&&b===e.$r||(e.Zr=f,e.$r=b,a.uniform2f(e.Hg,f,b));f=c[6];e.lj&&f!==e.ds&&(e.ds=f,a.uniform1f(e.lj,f));f=c[7];e.kj&&f!==e.cs&&(e.cs=f,a.uniform1f(e.kj,f));f=c[8];b=c[9];!e.pj||f===e.os&&b===e.qs||(e.os=f,e.qs=b,a.uniform2f(e.pj,f,b));f=c[10];b=c[11];!e.nj||f===e.ks&&b===e.ls||(e.ks=f,e.ls=b,a.uniform2f(e.nj,f,b));f=c[12];e.oj&&f!==e.ns&&(e.ns=f,a.uniform1f(e.oj,f));if(e.da.length)for(c=0,b=e.da.length;c<b;c++)f=this.yt[c],f!==e.Fo[c]&&(e.Fo[c]=f,a.uniform1f(e.da[c][1],
f))};d.prototype.vc=function(){this.od===this.Md.length&&this.Md.push(new t(0,this));return this.Md[this.od++]};d.prototype.ke=function(){if(0!==this.od&&!this.J.isContextLost()){var c=this.J;0<this.Rh&&(c.bindBuffer(c.ARRAY_BUFFER,this.gp),c.bufferSubData(c.ARRAY_BUFFER,0,this.hp.subarray(0,this.Rh)),b&&0<=b.ud&&"<point>"===b.name&&c.vertexAttribPointer(b.ud,4,c.FLOAT,!1,0,0));if(0<this.Gd){var b=this.fh;c.bindBuffer(c.ARRAY_BUFFER,this.hk[this.He]);c.bufferSubData(c.ARRAY_BUFFER,0,this.ik.subarray(0,
this.Gd));b&&0<=b.ud&&"<point>"!==b.name&&c.vertexAttribPointer(b.ud,this.Ja?3:2,c.FLOAT,!1,0,0);c.bindBuffer(c.ARRAY_BUFFER,this.Wj[this.He]);c.bufferSubData(c.ARRAY_BUFFER,0,this.Xj.subarray(0,this.Yf));b&&0<=b.Rf&&"<point>"!==b.name&&c.vertexAttribPointer(b.Rf,2,c.FLOAT,!1,0,0)}for(var e,c=0,b=this.od;c<b;c++)switch(e=this.Md[c],e.type){case 1:e.Fw();break;case 2:e.Ow();break;case 3:e.Lw();break;case 4:e.Hw();break;case 5:e.Qw();break;case 6:e.Gw();break;case 7:e.Cw();break;case 8:e.Ew();break;
case 9:e.Mw();break;case 10:e.Nw();break;case 11:e.Pw();break;case 12:e.Iw();break;case 13:e.Jw();break;case 14:e.Kw()}this.Rh=this.Yf=this.Gd=this.od=0;this.ul=this.Tb=this.zb=!1;this.He++;4<=this.He&&(this.He=0)}};d.prototype.gf=function(c){if(c!==this.Rr&&!this.Oi){var b=this.vc();b.type=3;this.Rr=b.Ks=c;this.Tb=this.zb=!1}};d.prototype.wc=function(c){if(c!==this.Nf){var b=this.vc();b.type=2;this.Nf=b.Ed=c;this.Tb=this.zb=!1}};d.prototype.Wf=function(c,b){if((c!==this.Sr||b!==this.Qr)&&!this.Oi){var e=
this.vc();e.type=4;e.$b=c;e.Gc=b;this.Sr=c;this.Qr=b;this.Tb=this.zb=!1}};d.prototype.kt=function(){this.Wf(this.J.ONE,this.J.ONE_MINUS_SRC_ALPHA)};d.prototype.Sh=function(c,b,e,a,f,r,h,d){15992<=this.Gd&&this.ke();var k=this.Gd,u=this.Yf,m=this.ik,l=this.Xj,y=this.Lk;if(this.zb)this.Md[this.od-1].Gc+=6;else{var g=this.vc();g.type=1;g.$b=this.Ja?k:k/2*3;g.Gc=6;this.zb=!0;this.Tb=!1}this.Ja?(m[k++]=c,m[k++]=b,m[k++]=y,m[k++]=e,m[k++]=a,m[k++]=y,m[k++]=f,m[k++]=r,m[k++]=y,m[k++]=h,m[k++]=d,m[k++]=y):
(m[k++]=c,m[k++]=b,m[k++]=e,m[k++]=a,m[k++]=f,m[k++]=r,m[k++]=h,m[k++]=d);l[u++]=0;l[u++]=0;l[u++]=1;l[u++]=0;l[u++]=1;l[u++]=1;l[u++]=0;l[u++]=1;this.Gd=k;this.Yf=u};d.prototype.Xd=function(c,b,e,a,f,r,h,d,k){15992<=this.Gd&&this.ke();var u=this.Gd,m=this.Yf,l=this.ik,y=this.Xj,g=this.Lk;if(this.zb)this.Md[this.od-1].Gc+=6;else{var q=this.vc();q.type=1;q.$b=this.Ja?u:u/2*3;q.Gc=6;this.zb=!0;this.Tb=!1}var q=k.left,n=k.top,t=k.right;k=k.bottom;this.Ja?(l[u++]=c,l[u++]=b,l[u++]=g,l[u++]=e,l[u++]=a,
l[u++]=g,l[u++]=f,l[u++]=r,l[u++]=g,l[u++]=h,l[u++]=d,l[u++]=g):(l[u++]=c,l[u++]=b,l[u++]=e,l[u++]=a,l[u++]=f,l[u++]=r,l[u++]=h,l[u++]=d);y[m++]=q;y[m++]=n;y[m++]=t;y[m++]=n;y[m++]=t;y[m++]=k;y[m++]=q;y[m++]=k;this.Gd=u;this.Yf=m};d.prototype.Bz=function(c,b,e,a,f,d,h,k,g,u,m,l,y,q,n,t){15992<=this.Gd&&this.ke();var p=this.Gd,x=this.Yf,w=this.ik,I=this.Xj,C=this.Lk;if(this.zb)this.Md[this.od-1].Gc+=6;else{var Y=this.vc();Y.type=1;Y.$b=this.Ja?p:p/2*3;Y.Gc=6;this.zb=!0;this.Tb=!1}this.Ja?(w[p++]=c,
w[p++]=b,w[p++]=C,w[p++]=e,w[p++]=a,w[p++]=C,w[p++]=f,w[p++]=d,w[p++]=C,w[p++]=h,w[p++]=k,w[p++]=C):(w[p++]=c,w[p++]=b,w[p++]=e,w[p++]=a,w[p++]=f,w[p++]=d,w[p++]=h,w[p++]=k);I[x++]=g;I[x++]=u;I[x++]=m;I[x++]=l;I[x++]=y;I[x++]=q;I[x++]=n;I[x++]=t;this.Gd=p;this.Yf=x};d.prototype.qz=function(c,b,e,a){7996<=this.Rh&&this.ke();var f=this.Rh,d=this.hp;if(this.Tb)this.Md[this.od-1].Gc++;else{var h=this.vc();h.type=8;h.$b=f;h.Gc=1;this.Tb=!0;this.zb=!1}d[f++]=c;d[f++]=b;d[f++]=e;d[f++]=a;this.Rh=f};d.prototype.Mc=
function(c){if(this.bj!==c){if(!this.$a[c]){if(0===this.bj)return;c=0}var b=this.vc();b.type=9;this.bj=b.$b=c;this.Tb=this.zb=!1}};d.prototype.Fj=function(c){c=this.$a[c];return!(!c.Ig&&!c.Hg)};d.prototype.jp=function(c){c=this.$a[c];return!!(c.Ig||c.Hg||c.En)};d.prototype.ip=function(c){return this.$a[c].zd};d.prototype.yz=function(c){c=this.$a[c];return 0!==c.Tk||0!==c.Uk};d.prototype.ey=function(c){return this.$a[c].Tk};d.prototype.fy=function(c){return this.$a[c].Uk};d.prototype.gy=function(c,
b){return this.$a[c].da[b][2]};d.prototype.km=function(c){return this.$a[c].rn};d.prototype.Wh=function(c,b,e,a,f,d,h,k,g,u,m,l,y,q,n){var t=this.$a[this.bj],p,x;if(t.Cy||n.length){p=this.vc();p.type=10;p.fa?jc(this.gd,p.fa):p.fa=ic();x=p.fa;x[0]=b;x[1]=e;x[2]=a;x[3]=f;x[4]=d;x[5]=h;x[6]=k;x[7]=g;x[8]=u;x[9]=m;x[10]=l;x[11]=y;x[12]=q;t.mj?p.Ed=c:p.Ed=null;if(n.length)for(e=p.yt,e.length=n.length,c=0,b=n.length;c<b;c++)e[c]=n[c];this.Tb=this.zb=!1}};d.prototype.clear=function(c,b,e,a){var f=this.vc();
f.type=7;f.$b=0;f.fa||(f.fa=ic());f.fa[0]=c;f.fa[1]=b;f.fa[2]=e;f.fa[3]=a;this.Tb=this.zb=!1};d.prototype.clearRect=function(c,b,e,a){if(!(0>e||0>a)){var f=this.vc();f.type=7;f.$b=1;f.fa||(f.fa=ic());f.fa[0]=c;f.fa[1]=b;f.fa[2]=e;f.fa[3]=a;this.Tb=this.zb=!1}};d.prototype.nt=function(c){if(this.Ja&&(c=!!c,this.Oi!==c)){var b=this.vc();b.type=14;b.$b=c?1:0;this.Tb=this.zb=!1;this.Oi=c;this.pm=null;this.Oi?this.Mc(2):this.Mc(0)}};d.prototype.mt=function(c){if(this.Ja){var b=this.vc();b.type=13;b.$b=
c?1:0;this.Tb=this.zb=!1}};d.prototype.dr=function(){jc(this.Go,n);this.Ad();this.kd();var c=this.width/2,b=this.height/2;this.Sh(-c,b,c,b,c,-b,-c,-b);jc(n,this.gd);this.kd()};d.prototype.lt=function(c,b,e){this.Mc(3);var a=this.vc();a.type=12;a.fa||(a.fa=ic());a.fa[0]=c;a.fa[1]=b;a.fa[2]=e;a.fa[3]=1;this.Tb=this.zb=!1};d.prototype.Wz=function(){this.Mc(0)};d.prototype.Hz=function(){this.Mc(2)};d.prototype.xz=function(){this.ke();this.J.flush()};var g=[],k={};d.prototype.rw=function(){N(g);k={}};
d.prototype.Eh=function(c,b,e,a){b=!!b;e=!!e;var f=c.src+","+b+","+e+(b?",undefined":""),d=null;if("undefined"!==typeof c.src&&k.hasOwnProperty(f))return d=k[f],d.Ak++,d;this.ke();var h=this.J,q=ma(c.width)&&ma(c.height),d=h.createTexture();h.bindTexture(h.TEXTURE_2D,d);h.pixelStorei(h.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var n=h.RGBA,u=h.RGBA,m=h.UNSIGNED_BYTE;if(a&&!this.Se)switch(a){case 1:u=n=h.RGB;break;case 2:m=h.UNSIGNED_SHORT_4_4_4_4;break;case 3:m=h.UNSIGNED_SHORT_5_5_5_1;break;case 4:u=n=
h.RGB,m=h.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!q&&b){a=document.createElement("canvas");a.width=na(c.width);a.height=na(c.height);var l=a.getContext("2d");"undefined"!==typeof l.imageSmoothingEnabled?l.imageSmoothingEnabled=e:(l.webkitImageSmoothingEnabled=e,l.mozImageSmoothingEnabled=e,l.msImageSmoothingEnabled=e);l.drawImage(c,0,0,c.width,c.height,0,0,a.width,a.height);h.texImage2D(h.TEXTURE_2D,0,n,u,m,a)}else h.texImage2D(h.TEXTURE_2D,0,n,u,m,c);b?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,
h.REPEAT),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.REPEAT)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE));e?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.LINEAR),(q||2<=this.version)&&this.Sq?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR_MIPMAP_LINEAR),h.generateMipmap(h.TEXTURE_2D)):h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,
h.NEAREST),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.NEAREST));h.bindTexture(h.TEXTURE_2D,null);this.Nf=null;d.gg=c.width;d.fg=c.height;d.Ak=1;d.Hq=f;g.push(d);return k[f]=d};d.prototype.Rc=function(c,b,e,a,f){this.ke();var d=this.J;this.Se&&(a=!1);var h=d.createTexture();d.bindTexture(d.TEXTURE_2D,h);d.texImage2D(d.TEXTURE_2D,0,d.RGBA,c,b,0,d.RGBA,a?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,null);f?(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));d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,e?d.LINEAR:d.NEAREST);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,e?d.LINEAR:d.NEAREST);d.bindTexture(d.TEXTURE_2D,null);this.Nf=null;h.gg=c;h.fg=b;g.push(h);return h};d.prototype.eu=function(c,b,e){this.ke();var a=this.J;this.Se&&(e=!1);a.bindTexture(a.TEXTURE_2D,b);a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,
!0);try{a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,e?a.UNSIGNED_SHORT_4_4_4_4:a.UNSIGNED_BYTE,c)}catch(f){console&&console.error&&console.error("Error updating WebGL texture: ",f)}a.bindTexture(a.TEXTURE_2D,null);this.Nf=null};d.prototype.deleteTexture=function(c){c&&("undefined"!==typeof c.Ak&&1<c.Ak?c.Ak--:(this.ke(),c===this.Nf&&(this.J.bindTexture(this.J.TEXTURE_2D,null),this.Nf=null),c===this.Eg&&(this.J.activeTexture(this.J.TEXTURE1),this.J.bindTexture(this.J.TEXTURE_2D,null),this.J.activeTexture(this.J.TEXTURE0),
this.Eg=null),Ea(g,c),"undefined"!==typeof c.Hq&&delete k[c.Hq],this.J.deleteTexture(c)))};d.prototype.Bd=function(c){if(c!==this.pm){var b=this.vc();b.type=6;this.pm=b.Ed=c;this.Tb=this.zb=!1}};lb=d})();
(function(){function d(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var b=this;this.Qe=(this.wl=/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.tc=!!a.dc;this.Gr="undefined"!==typeof window.AppMobi||
this.tc;this.Rd=!!window.c2cocoonjs;this.Sd=!!window.c2ejecta;this.Rd&&(CocoonJS.App.onSuspended.addEventListener(function(){b.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){b.setSuspended(!1)}));this.Sd&&(document.addEventListener("pagehide",function(){b.setSuspended(!0)}),document.addEventListener("pageshow",function(){b.setSuspended(!1)}),document.addEventListener("resize",function(){b.setSize(window.innerWidth,window.innerHeight)}));this.jb=this.tc||this.Rd||this.Sd;this.Qi=
/edge\//i.test(navigator.userAgent);this.Se=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Qi;this.Kr=/tizen/i.test(navigator.userAgent);this.sl=/android/i.test(navigator.userAgent)&&!this.Kr&&!this.Se&&!this.Qi;this.Or=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Se&&!this.Qi;this.Ty=/ipad/i.test(navigator.userAgent);this.Xi=this.Or||this.Ty||this.Sd;this.wo=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.Se&&!this.Qi;this.Fr=/amazonwebappplatform/i.test(navigator.userAgent);this.My=/firefox/i.test(navigator.userAgent);this.Qy=/safari/i.test(navigator.userAgent)&&!this.wo&&!this.Se&&!this.Qi;this.Ry=/windows/i.test(navigator.userAgent);this.Py=this.Ri="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Mr=!("undefined"===typeof window.c2isWindows8||
!window.c2isWindows8);this.Sy=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Ui=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Co=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.yl=!!window.cr_windows10;this.Lr=this.Mr||this.Sy||this.Co||this.yl;this.Ky=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.tl=this.sl&&!this.wo&&!this.wl&&!this.My&&!this.Fr&&!this.jb;
this.devicePixelRatio=1;this.Lf=this.Qe||this.wl||this.Gr||this.Rd||this.sl||this.Xi||this.Ui||this.Co||this.Ky||this.Kr||this.Sd;this.Lf||(this.Lf=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.xl=!!(this.Xi&&this.Qe&&window.webkit);"undefined"===typeof cr_is_preview||this.Ri||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Ri=!0);this.Ly="undefined"!==
typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=a;this.Jq=document.getElementById("c2canvasdiv");this.D=this.J=null;this.co="(unavailable)";this.Ja=!1;this.ng=0;this.Oa=null;this.$k=!1;this.Gs=this.Hs=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.ontouchstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.tc&&(window.c2runtime=
this);this.Ri&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.tl&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.T=this.width;this.S=this.height;this.Ik=this.width;this.ti=this.height;this.Ch=window.innerWidth;this.Bh=window.innerHeight;this.ca=!0;this.Ti=!1;Date.now||(Date.now=
function(){return+new Date});this.plugins=[];this.types={};this.G=[];this.Va=[];this.Jo={};this.Td=[];this.Nn={};this.Je=[];this.fi=[];this.Sm=[];this.nn=[];this.gw=[];this.Pr=this.Et=null;this.kg={};this.yo=this.Jf=!1;this.dd=0;this.xo=this.Ao=!1;this.Od=[];this.Pi=!1;this.Gl=this.tp="";this.Db=null;this.Te="";this.Uj=this.Bt=!1;this.Zk=[];this.mg=this.lg=0;this.vs=30;this.Cn=this.qj=0;this.Xg=1;this.kb=new bb;this.rf=new bb;this.Ul=this.gl=this.rg=this.$d=this.Gg=this.Rn=this.Bl=0;this.oi=null;
this.Qk=[];this.Mn=[];this.Sk=-1;this.Qo=[[]];this.Np=this.Ll=0;this.lm(null);this.So=[];this.Nl=-1;this.As=this.vj=0;this.Io=!0;this.Ai=0;this.Vj=[];this.Kp=this.lp=-1;this.Yi=!0;this.Jl=0;this.Ag=!1;this.Yz=0;this.eh=null;this.ed=this.qr=!1;this.Es=new ea;this.Zo=new ea;this.Fs=new ea;this.Rg=[];this.Zd=new db([]);this.Fp=new db([]);this.dh=[];this.Hi={};this.Bf={};this.wf={};this.ei={};this.Eq={};this.Vr=this.Fl=this.mb=this.Cb=this.Ur=this.El=this.La=null;this.ci=this.Do=!1;this.Tn=[null,null];
this.Ne=0;this.Pn="";this.bf={};this.Tj=this.Pf=null;this.Dt="";this.Tl=[];this.Gz()}}function q(a,b){return 128>=b?a[3]:256>=b?a[2]:512>=b?a[1]:a[0]}function p(){try{return!!window.indexedDB}catch(a){return!1}}function t(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function n(a,b,c,f){try{var l=indexedDB.open("_C2SaveStates");l.onupgradeneeded=t;l.onerror=f;l.onsuccess=function(l){l=l.target.result;l.onerror=f;l.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,
data:b}).onsuccess=c}}catch(e){f(e)}}function g(a,b,c){try{var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=t;f.onerror=c;f.onsuccess=function(f){f=f.target.result;f.onerror=c;var l=f.transaction(["saves"]).objectStore("saves").get(a);l.onsuccess=function(){l.result?b(l.result.data):b(null)}}}catch(l){c(l)}}function k(){ga("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+
"?continuous"}function c(a){var b,c={};for(b in a)!a.hasOwnProperty(b)||a[b]instanceof ea||a[b]&&"undefined"!==typeof a[b].dB||"spriteCreatedDestroyCallback"!==b&&(c[b]=a[b]);return c}var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.Gz=function(){var a=this;if(this.xl)this.Kx(function(b){a.jj(JSON.parse(b))},function(){alert("Error fetching data.js")});else{var b;this.Ui?
b=new ActiveXObject("Microsoft.XMLHTTP"):b=new XMLHttpRequest;var c="data.js";if(this.Mr||this.Ui||this.Co||this.yl)c="data.json";b.open("GET",c,!0);var f=!1;if(!this.jb&&"response"in b&&"responseType"in b)try{b.responseType="json",f="json"===b.responseType}catch(l){f=!1}if(!f&&"responseType"in b)try{b.responseType="text"}catch(e){}if("overrideMimeType"in b)try{b.overrideMimeType("application/json; charset=utf-8")}catch(m){}this.Ui?b.onreadystatechange=function(){4===b.readyState&&a.jj(JSON.parse(b.responseText))}:
(b.onload=function(){if(f)a.jj(b.response);else if(a.Sd){var c=b.responseText,c=c.substr(c.indexOf("{"));a.jj(JSON.parse(c))}else a.jj(JSON.parse(b.responseText))},b.onerror=function(a){ha("Error requesting "+c+":");ha(a)});b.send()}};d.prototype.Gy=function(){var a=this,b,c,f,l,e,m,h,d,r;this.Bg=(!this.jb||this.Sd||this.Qe)&&this.fA&&!this.tl;0===this.Cc&&this.Xi&&(this.Bg=!1);this.devicePixelRatio=this.Bg?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||
1:1;this.ac();0<this.Cc&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(b){b.preventDefault();a.cz();ga("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.D.Ar();a.D.hf(a.D.width,a.D.height,!0);a.Cb=null;a.mb=null;a.Tn[0]=null;a.Tn[1]=null;a.dz();a.ca=!0;ga("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.Yw&&(this.Rd||this.Sd||
!this.jb)&&(b={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.J=this.canvas.getContext("webgl2",b)||this.canvas.getContext("webgl",b)||this.canvas.getContext("experimental-webgl",b))}catch(k){}if(this.J){if(b=this.J.getExtension("WEBGL_debug_renderer_info"))this.co=this.J.getParameter(b.UNMASKED_RENDERER_WEBGL)+" ["+this.J.getParameter(b.UNMASKED_VENDOR_WEBGL)+"]";this.Ja&&(this.co+=" [front-to-back enabled]");this.jb||(this.Wb=document.createElement("canvas"),
jQuery(this.Wb).appendTo(this.canvas.parentNode),this.Wb.oncontextmenu=function(){return!1},this.Wb.onselectstart=function(){return!1},this.Wb.width=Math.round(this.Ik*this.devicePixelRatio),this.Wb.height=Math.round(this.ti*this.devicePixelRatio),jQuery(this.Wb).css({width:this.Ik+"px",height:this.ti+"px"}),this.Xs(),this.fp=this.Wb.getContext("2d"));this.D=new lb(this.J,this.Lf,this.Ja);this.D.hf(this.canvas.width,this.canvas.height);this.D.Sq=0!==this.Rw;this.Oa=null;b=0;for(c=this.G.length;b<
c;b++)for(e=this.G[b],f=0,l=e.Z.length;f<l;f++)h=e.Z[f],h.rb=this.D.ao(h.id),h.zd=this.D.ip(h.rb),this.ci=this.ci||this.D.Fj(h.rb);b=0;for(c=this.Td.length;b<c;b++){d=this.Td[b];f=0;for(l=d.Z.length;f<l;f++)h=d.Z[f],h.rb=this.D.ao(h.id),h.zd=this.D.ip(h.rb);d.de();f=0;for(l=d.ba.length;f<l;f++){r=d.ba[f];e=0;for(m=r.Z.length;e<m;e++)h=r.Z[e],h.rb=this.D.ao(h.id),h.zd=this.D.ip(h.rb),this.ci=this.ci||this.D.Fj(h.rb);r.de()}}}else{if(0<this.Cc&&this.tc){this.canvas=null;document.oncontextmenu=function(){return!1};
document.onselectstart=function(){return!1};this.Oa=AppMobi.canvas.getContext("2d");try{this.Oa.samplingMode=this.Na?"smooth":"sharp",this.Oa.globalScale=1,this.Oa.HTML5CompatibilityMode=!0,this.Oa.imageSmoothingEnabled=this.Na}catch(y){}0!==this.width&&0!==this.height&&(this.Oa.width=this.width,this.Oa.height=this.height)}this.Oa||(this.Rd?(b={antialias:!!this.Na,alpha:!0},this.Oa=this.canvas.getContext("2d",b)):(b={alpha:!0},this.Oa=this.canvas.getContext("2d",b)),this.xm(this.Oa,this.Na));this.fp=
this.Wb=null}this.Nt=function(b){a.Ha(!1,b)};window==window.top||this.jb||this.Lr||this.Ui||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Rd&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ga("Reloading for continuous preview"),this.Gl="__c2_continuouspreview",this.Uj=!0),this.oz&&!this.Lf&&(jQuery(window).focus(function(){a.setSuspended(!1)}),
jQuery(window).blur(function(){var b=window.parent;b&&b.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.Sf()});this.jb||(b=function(a){if(kb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(b){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",b):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",
b):document.addEventListener("touchstart",b),document.addEventListener("mousedown",b));0===this.Cc&&this.Bg&&1<this.devicePixelRatio&&this.setSize(this.ob,this.nb,!0);this.Wt();this.yy();this.go();this.N={}};d.prototype.setSize=function(a,b,c){var f=0,l=0,e=0,m=0,m=0;if(this.Ch!==a||this.Bh!==b||c){this.Ch=a;this.Bh=b;var h=this.Cc;if((e=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Ag)&&!this.Qe)||0!==this.Cc||c)e&&0<this.Ne&&(h=this.Ne),
c=this.devicePixelRatio,4<=h?(e=this.ob/this.nb,a/b>e?(e*=b,5===h?(m=e*c/this.ob,1<m?m=Math.floor(m):1>m&&(m=1/Math.ceil(1/m)),e=this.ob*m/c,m=this.nb*m/c,f=(a-e)/2,l=(b-m)/2,a=e,b=m):(f=(a-e)/2,a=e)):(m=a/e,5===h?(m=m*c/this.nb,1<m?m=Math.floor(m):1>m&&(m=1/Math.ceil(1/m)),e=this.ob*m/c,m=this.nb*m/c,f=(a-e)/2,l=(b-m)/2,a=e):l=(b-m)/2,b=m)):this.Ri&&this.Ag&&0===this.er&&(f=Math.floor((a-this.ob)/2),l=Math.floor((b-this.nb)/2),a=this.ob,b=this.nb),2>h&&(this.mi=c),this.Ik=Math.round(a),this.ti=Math.round(b),
this.width=Math.round(a*c),this.height=Math.round(b*c),this.ca=!0,this.fu?(this.T=this.width,this.S=this.height,this.ad=!0):this.width<this.ob&&this.height<this.nb||1===h?(this.T=this.width,this.S=this.height,this.ad=!0):(this.T=this.ob,this.S=this.nb,this.ad=!1,2===h?(e=this.ob/this.nb,h=this.Ch/this.Bh,h<e?this.T=this.S*h:h>e&&(this.S=this.T/h)):3===h&&(e=this.ob/this.nb,h=this.Ch/this.Bh,h>e?this.T=this.S*h:h<e&&(this.S=this.T/h))),this.Jq&&!this.jb&&(jQuery(this.Jq).css({width:Math.round(a)+"px",
height:Math.round(b)+"px","margin-left":Math.floor(f)+"px","margin-top":Math.floor(l)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(b)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*c),this.canvas.height=Math.round(b*c),this.Sd?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=Math.floor(l)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px"):this.Bg&&!this.jb&&(this.canvas.style.width=
Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px")),this.Wb&&(this.Wb.width=Math.round(a*c),this.Wb.height=Math.round(b*c),this.Wb.style.width=this.Ik+"px",this.Wb.style.height=this.ti+"px"),this.D&&this.D.hf(Math.round(a*c),Math.round(b*c)),this.tc&&this.Oa&&(this.Oa.width=Math.round(a),this.Oa.height=Math.round(b)),this.Oa&&this.xm(this.Oa,this.Na),this.Wt(),this.Or&&!this.Qe&&window.scrollTo(0,0)}};d.prototype.Wt=function(){if(this.iw&&0!==this.ep){var a="portrait";2===this.ep&&(a=
"landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(b){console&&console.warn&&console.warn("Failed to lock orientation: ",b)}}};d.prototype.cz=function(){this.D.rw();this.Do=!0;var a,b,c;a=0;for(b=this.G.length;a<b;a++)c=
this.G[a],c.Oh&&c.Oh()};d.prototype.dz=function(){this.Do=!1;var a,b,c;a=0;for(b=this.G.length;a<b;a++)c=this.G[a],c.zj&&c.zj()};d.prototype.Xs=function(){if(!this.jb){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Ag)&&!this.Qe?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Wb).css(a)}};var e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||
window.msCancelAnimationFrame||window.oCancelAnimationFrame;d.prototype.setSuspended=function(a){var b;if(a&&!this.Ti)for(ga("[Construct 2] Suspending"),this.Ti=!0,-1!==this.lp&&e&&e(this.lp),-1!==this.Kp&&clearTimeout(this.Kp),a=0,b=this.Vj.length;a<b;a++)this.Vj[a](!0);else if(!a&&this.Ti){ga("[Construct 2] Resuming");this.Ti=!1;this.Bl=Wa();this.Gg=Wa();a=this.qj=this.gl=0;for(b=this.Vj.length;a<b;a++)this.Vj[a](!1);this.Ha(!1)}};d.prototype.zq=function(a){this.Vj.push(a)};d.prototype.uf=function(a){return this.Tl[a]};
d.prototype.jj=function(a){a&&a.project||ha("Project model unavailable");a=a.project;this.name=a[0];this.Zq=a[1];this.Cc=a[12];this.er=a[12];this.ob=a[10];this.nb=a[11];this.Rs=this.ob/2;this.Ss=this.nb/2;this.jb&&!this.Sd&&(4<=a[12]||0===a[12])&&(ga("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.er=this.Cc=3);this.Wp=a[18];this.Qf=a[19];if(0===this.Qf){var b=new Image;b.crossOrigin="anonymous";this.ot(b,"loading-logo.png");
this.Pf={Ml:b}}else if(4===this.Qf){b=new Image;b.src="";var c=new Image;c.src="";var f=new Image;f.src="";var l=new Image;l.src="";var e=new Image;e.src="";var m=new Image;m.src="";var h=new Image;h.src="";var d=new Image;d.src="";var r=new Image;r.src="";var k=new Image;k.src="";var y=new Image;y.src="";var u=new Image;u.src="";this.Pf={Ml:[b,c,f,l],uz:[e,m,h,d],iA:[r,k,y,u]}}this.vj=a[21];this.Tl=nc();this.Ae=new T(this);b=0;for(c=a[2].length;b<c;b++)h=a[2][b],f=this.uf(h[0]),mb(h,f.prototype),
d=new f(this),d.Fm=h[1],d.Mf=h[2],d.gB=h[5],d.xs=h[9],d.K&&d.K(),this.plugins.push(d);this.Tl=nc();b=0;for(c=a[3].length;b<c;b++){h=a[3][b];e=this.uf(h[1]);d=null;f=0;for(l=this.plugins.length;f<l;f++)if(this.plugins[f]instanceof e){d=this.plugins[f];break}r=new d.V(d);r.name=h[0];r.L=h[2];r.vo=h[3].slice(0);r.gA=h[3].length;r.jw=h[4];r.Px=h[5];r.ma=h[11];r.L?(r.Lg=[],r.Ke=this.Ai++,r.Ra=null):(r.Lg=null,r.Ke=-1,r.Ra=[]);r.Xk=null;r.lh=null;r.Tq=null;r.Ub=!1;r.Qc=null;h[6]?(r.Yj=h[6][0],r.Zj=h[6][1],
r.$j=h[6][2]):(r.Yj=null,r.Zj=0,r.$j=0);h[7]?r.Pc=h[7]:r.Pc=null;r.index=b;r.k=[];r.Nk=[];r.lf=[new nb(r)];r.ie=0;r.sd=null;r.xw=0;r.ai=!0;r.Tm=qb;r.lr=rb;r.by=sb;r.aa=tb;r.Hj=ub;r.Pg=vb;r.ue=wb;r.jl=xb;r.Un=yb;r.Wn=zb;r.Kd=Ab;r.Xn=Bb;r.Ek=new eb(this.ob,this.nb);r.sk=!0;r.tk=!1;r.N={};r.toString=Cb;r.Va=[];f=0;for(l=h[8].length;f<l;f++){k=h[8][f];y=this.uf(k[1]);u=null;e=0;for(m=this.Va.length;e<m;e++)if(this.Va[e]instanceof y){u=this.Va[e];break}u||(u=new y(this),u.Sl=[],u.Rl=new ea,u.K&&u.K(),
this.Va.push(u),oc&&u instanceof oc&&(this.Et=u),fc.Vy&&u instanceof fc.Vy&&(this.Pr=u));-1===u.Sl.indexOf(r)&&u.Sl.push(r);e=new u.V(u,r);e.name=k[0];e.ma=k[2];e.K();r.Va.push(e)}r.global=h[9];r.zo=h[10];r.Z=[];f=0;for(l=h[12].length;f<l;f++)r.Z.push({id:h[12][f][0],name:h[12][f][1],rb:-1,zd:!1,Ua:!0,index:f});r.Nm=h[13];this.Wp&&!r.L&&!r.zo&&d.Mf||r.K();r.name&&(this.types[r.name]=r);this.G.push(r);d.Fm&&(f=new d.R(r),f.uid=this.vj++,f.bt=this.As++,f.yg=0,f.Fi=Gb,f.toString=Hb,f.B=h[14],f.K(),r.k.push(f),
this.bf[f.uid.toString()]=f)}b=0;for(c=a[4].length;b<c;b++)for(e=a[4][b],m=this.G[e[0]],f=1,l=e.length;f<l;f++)h=this.G[e[f]],h.Ra.push(m),m.Lg.push(h);b=0;for(c=a[28].length;b<c;b++){e=a[28][b];m=[];f=0;for(l=e.length;f<l;f++)m.push(this.G[e[f]]);f=0;for(l=m.length;f<l;f++)m[f].Ub=!0,m[f].Qc=m}if(0<this.Ai)for(b=0,c=this.G.length;b<c;b++)if(h=this.G[b],!h.L&&h.Ra.length){h.Xk=Array(this.Ai);h.lh=Array(this.Ai);h.Tq=Array(this.Ai);r=[];f=u=y=k=0;for(l=h.Ra.length;f<l;f++)for(d=h.Ra[f],h.Xk[d.Ke]=
k,k+=d.gA,h.lh[d.Ke]=y,y+=d.jw,h.Tq[d.Ke]=u,u+=d.Px,e=0,m=d.Z.length;e<m;e++)r.push(ya({},d.Z[e]));h.Z=r.concat(h.Z);f=0;for(l=h.Z.length;f<l;f++)h.Z[f].index=f}b=0;for(c=a[5].length;b<c;b++)h=a[5][b],f=new Ib(this,h),this.Jo[f.name]=f,this.Td.push(f);b=0;for(c=a[6].length;b<c;b++)h=a[6][b],f=new Jb(this,h),this.Nn[f.name]=f,this.Je.push(f);b=0;for(c=this.Je.length;b<c;b++)this.Je[b].eb();b=0;for(c=this.Je.length;b<c;b++)this.Je[b].Rp();b=0;for(c=this.Sm.length;b<c;b++)this.Sm[b].eb();N(this.Sm);
this.hw=a[7];this.Pn=a[8];this.Ic=a[9];this.mi=1;this.Yw=a[13];this.Na=a[14];this.Mq=a[15];this.fA=a[17];this.ep=a[20];this.iw=0<this.ep;this.oz=a[22];this.ad=this.fu=a[23];this.Rw=a[24];this.vz=a[25];this.Ja=a[27]&&!this.Se;this.Jm=Date.now();N(this.Tl);this.Gy()};var a=!1,f=0,r=[];d.prototype.Cz=function(a,b){function c(){f--;l.rs()}var l=this;a.addEventListener("load",c);a.addEventListener("error",c);r.push([a,b]);this.rs()};d.prototype.rs=function(){for(var a;r.length&&100>f;)f++,a=r.shift(),
this.ot(a[0],a[1])};d.prototype.Ym=function(b,c){b.cocoonLazyLoad=!0;b.onerror=function(c){a=b.Gq=!0;console&&console.error&&console.error("Error loading image '"+b.src+"': ",c)};this.Sd?b.src=c:b.src||("undefined"!==typeof XAPKReader?XAPKReader.get(c,function(a){b.src=a},function(f){a=b.Gq=!0;console&&console.error&&console.error("Error extracting image '"+c+"' from expansion file: ",f)}):(b.crossOrigin="anonymous",this.Cz(b,c)));this.fi.push(b)};d.prototype.Mx=function(a){var b,c;b=0;for(c=this.fi.length;b<
c;b++)if(this.fi[b].sw===a)return this.fi[b];return null};var h=0,M=!1;d.prototype.yy=function(){this.eh&&(h=this.eh.Uz(this.hw))};d.prototype.Cq=function(){var a=h,b=0,c=0,f=!0,l,e,c=0;for(l=this.fi.length;c<l;c++){e=this.fi[c];var m=e.Hk;if(!m||0>=m)m=5E4;a+=m;e.src&&(e.complete||e.loaded)&&!e.Gq?b+=m:f=!1}f&&this.vz&&this.eh&&(M||(this.eh.Zz(),M=!0),c=this.eh.cy(),b+=c,c<h&&(f=!1));this.Wd=0==a?1:b/a;return f};var G=!1;d.prototype.go=function(){if(this.Oa||this.D){var c=this.Oa||this.fp;this.Wb&&
this.Xs();var f=window.innerWidth,l=window.innerHeight;this.Ch===f&&this.Bh===l||this.setSize(f,l);this.Wd=0;this.Tr=-1;var e=this;if(this.Cq()&&(4!==this.Qf||G))this.zy();else{l=Date.now()-this.Jm;if(c){var h=this.width,m=this.height,f=this.devicePixelRatio;if(3>this.Qf&&(this.Rd||500<=l&&this.Tr!=this.Wd)){c.clearRect(0,0,h,m);var l=h/2,m=m/2,h=0===this.Qf&&this.Pf.Ml.complete,d=40*f,r=0,k=80*f,y;if(h){var u=this.Pf.Ml,k=u.width*f;y=u.height*f;d=k/2;r=y/2;c.drawImage(u,z(l-d),z(m-r),k,y)}1>=this.Qf?
(l=z(l-d)+.5,m=z(m+(r+(h?12*f:0)))+.5,c.fillStyle=a?"red":"DodgerBlue",c.fillRect(l,m,Math.floor(k*this.Wd),6*f),c.strokeStyle="black",c.strokeRect(l,m,k,6*f),c.strokeStyle="white",c.strokeRect(l-1*f,m-1*f,k+2*f,8*f)):2===this.Qf&&(c.font=this.Sd?"12pt ArialMT":"12pt Arial",c.fillStyle=a?"#f00":"#999",c.nB="middle",f=Math.round(100*this.Wd)+"%",h=c.measureText?c.measureText(f):null,c.fillText(f,l-(h?h.width:0)/2,m));this.Tr=this.Wd}else if(4===this.Qf){this.Ww(c);b?b(function(){e.go()}):setTimeout(function(){e.go()},
16);return}}setTimeout(function(){e.go()},this.Rd?10:100)}}};var u=-1,m="undefined"===typeof cr_is_preview?200:0,l=!0,y=!1,ja=0,F=0,O="undefined"===typeof cr_is_preview?3E3:0,J=null,x=null,w=0;d.prototype.Ww=function(b){if(!G){for(var c=Math.ceil(this.width),f=Math.ceil(this.height),e=this.Pf.Ml,h=this.Pf.uz,d=this.Pf.iA,r=0;4>r;++r)if(!e[r].complete||!h[r].complete||!d[r].complete)return;0===w&&(u=Date.now());var r=Date.now(),k=!1,g=b,n,p;l||y?(b.clearRect(0,0,c,f),J&&J.width===c&&J.height===f||
(J=document.createElement("canvas"),J.width=c,J.height=f,x=J.getContext("2d")),g=x,k=!0,l&&1===w&&(u=Date.now())):b.globalAlpha=1;g.fillStyle="#333333";g.fillRect(0,0,c,f);256<this.ti?(n=Ga(.22*f,105,.6*c),p=.25*n,g.drawImage(q(h,n),.5*c-n/2,.2*f-p/2,n,p),p=n=Math.min(.395*f,.95*c),g.drawImage(q(e,n),.5*c-n/2,.485*f-p/2,n,p),n=Ga(.22*f,105,.6*c),p=.25*n,g.drawImage(q(d,n),.5*c-n/2,.868*f-p/2,n,p),g.fillStyle="#3C3C3C",n=c,p=Math.max(.005*f,2),g.fillRect(0,.8*f-p/2,n,p),g.fillStyle=a?"red":"#E0FF65",
n=c*this.Wd,g.fillRect(.5*c-n/2,.8*f-p/2,n,p)):(p=n=.55*f,g.drawImage(q(e,n),.5*c-n/2,.45*f-p/2,n,p),g.fillStyle="#3C3C3C",n=c,p=Math.max(.005*f,2),g.fillRect(0,.85*f-p/2,n,p),g.fillStyle=a?"red":"#E0FF65",n=c*this.Wd,g.fillRect(.5*c-n/2,.85*f-p/2,n,p));k&&(l?b.globalAlpha=0===w?0:Math.min((r-u)/300,1):y&&(b.globalAlpha=Math.max(1-(r-F)/300,0)),b.drawImage(J,0,0,c,f));l&&300<=r-u&&2<=w&&(l=!1,ja=r);!l&&r-ja>=O&&!y&&1<=this.Wd&&(y=!0,F=r);if(y&&r-F>=300+m||"undefined"!==typeof cr_is_preview&&1<=this.Wd&&
500>Date.now()-u)G=!0,y=l=!1,this.Pf=x=J=null;++w}};d.prototype.zy=function(){this.Wb&&(this.canvas.parentNode.removeChild(this.Wb),this.Wb=this.fp=null);this.Jm=Date.now();this.Gg=Wa();var a,b,c;if(this.Wp)for(a=0,b=this.G.length;a<b;a++)c=this.G[a],c.L||c.zo||!c.Aa.Mf||c.K();else this.Yi=!1;a=0;for(b=this.Td.length;a<b;a++)this.Td[a].uw();2<=this.Cc&&(a=this.ob/this.nb,b=this.width/this.height,this.mi=2!==this.Cc&&b>a||2===this.Cc&&b<a?this.height/this.nb:this.width/this.ob);this.Zq?this.Jo[this.Zq].Ep():
this.Td[0].Ep();this.Wp||(this.Jl=1,this.trigger(T.prototype.n.pq,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(b=this.G.length;a<b;a++)c=this.G[a],c.Is&&c.Is();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Ha(!1);this.tc&&AppMobi.webview.execute("onGameReady();")};d.prototype.Ha=function(a,c,f){if(this.La){var l=Wa();if(f||!this.Ti||a){a||
(b?this.lp=b(this.Nt):this.Kp=setTimeout(this.Nt,this.Lf?1:16));c=c||l;var e=this.Cc;((f=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Qe)||this.Ag)&&0<this.Ne&&(e=this.Ne);if(0<e){var e=window.innerWidth,h=window.innerHeight;this.Ch===e&&this.Bh===h||this.setSize(e,h)}this.jb||(f?this.$k||(this.$k=!0):this.$k?(this.$k=!1,0===this.Cc&&this.setSize(Math.round(this.Hs/this.devicePixelRatio),Math.round(this.Gs/this.devicePixelRatio),
!0)):(this.Hs=this.width,this.Gs=this.height));this.Yi&&(f=this.Cq(),this.Jl=this.Wd,f&&(this.Yi=!1,this.Wd=1,this.trigger(T.prototype.n.pq,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.Xy(c);!this.ca&&!this.Rd||this.Do||this.Uj||a||(this.ca=!1,this.D?this.Nb():this.Sc(),this.Tj&&(this.canvas&&this.canvas.toDataURL&&(this.Dt=this.canvas.toDataURL(this.Tj[0],this.Tj[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Dt),this.trigger(T.prototype.n.Wu,null)),this.Tj=null));this.fB||(this.$d++,
this.rg++,this.gl++);this.qj+=Wa()-l}}};d.prototype.Xy=function(a){var b,c,f,l,e,h,m,d;1E3<=a-this.Gg&&(this.Gg+=1E3,1E3<=a-this.Gg&&(this.Gg=a),this.Rn=this.gl,this.gl=0,this.Cn=this.qj,this.qj=0);b=0;0!==this.Bl&&(b=a-this.Bl,0>b&&(b=0),this.mg=b/=1E3,.5<this.mg?this.mg=0:this.mg>1/this.vs&&(this.mg=1/this.vs));this.Bl=a;this.lg=this.mg*this.Xg;this.kb.add(this.lg);this.rf.add(b);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Ag)&&
!this.Qe;2<=this.Cc||a&&0<this.Ne?(b=this.ob/this.nb,c=this.width/this.height,f=this.Cc,a&&0<this.Ne&&(f=this.Ne),this.mi=2!==f&&c>b||2===f&&c<b?this.height/this.nb:this.width/this.ob,this.La&&(this.La.up(this.La.scrollX),this.La.vp(this.La.scrollY))):this.mi=this.Bg?this.devicePixelRatio:1;this.ac();this.dd++;this.Ae.Kz();this.dd--;this.ac();this.dd++;c=this.Es.qf();a=0;for(b=c.length;a<b;a++)c[a].lB();a=0;for(b=this.G.length;a<b;a++)if(h=this.G[a],!h.L&&(h.Va.length||h.Ra.length))for(c=0,f=h.k.length;c<
f;c++)for(m=h.k[c],l=0,e=m.W.length;l<e;l++)m.W[l].Ha();a=0;for(b=this.G.length;a<b;a++)if(h=this.G[a],!h.L&&(h.Va.length||h.Ra.length))for(c=0,f=h.k.length;c<f;c++)for(m=h.k[c],l=0,e=m.W.length;l<e;l++)d=m.W[l],d.Ys&&d.Ys();c=this.Zo.qf();a=0;for(b=c.length;a<b;a++)c[a].Ha();this.dd--;this.By();for(a=0;this.oi&&10>a++;)this.Rq(this.oi);a=0;for(b=this.Je.length;a<b;a++)this.Je[a].ko=!1;this.La.pg&&this.La.pg.qb();N(this.Rg);this.Io=!1;this.dd++;a=0;for(b=this.G.length;a<b;a++)if(h=this.G[a],!h.L&&
(h.Va.length||h.Ra.length))for(c=0,f=h.k.length;c<f;c++)for(m=h.k[c],l=0,e=m.W.length;l<e;l++)d=m.W[l],d.ak&&d.ak();c=this.Fs.qf();a=0;for(b=c.length;a<b;a++)c[a].ak();this.dd--};d.prototype.Sf=function(){var a,b,c,f,l,e,h,m,d;a=0;for(b=this.G.length;a<b;a++)if(h=this.G[a],!h.L)for(c=0,f=h.k.length;c<f;c++)if(m=h.k[c],m.Sf&&m.Sf(),m.W)for(l=0,e=m.W.length;l<e;l++)d=m.W[l],d.Sf&&d.Sf()};d.prototype.Rq=function(a){var b=this.La;this.La.$z();var c,f,l;if(this.D)for(c=0,f=this.G.length;c<f;c++)l=this.G[c],
l.L||!l.ck||l.global&&0!==l.k.length||-1!==a.Li.indexOf(l)||l.ck();b==a&&N(this.Ae.Oc);N(this.Rg);this.it(!0);a.Ep();this.it(!1);this.Io=this.ca=!0;this.ac()};d.prototype.it=function(a){var b,c,f,l,e,h,m,d,r;b=0;for(c=this.Va.length;b<c;b++)f=this.Va[b],a?f.wj&&f.wj():f.yj&&f.yj();b=0;for(c=this.G.length;b<c;b++)if(f=this.G[b],f.global||f.Aa.Fm)for(l=0,e=f.k.length;l<e;l++)if(h=f.k[l],a?h.wj&&h.wj():h.yj&&h.yj(),h.W)for(m=0,d=h.W.length;m<d;m++)r=h.W[m],a?r.wj&&r.wj():r.yj&&r.yj()};d.prototype.bk=
function(a){this.Zo.add(a)};d.prototype.Oe=function(a){return a&&-1!==a.uj?this.mg*a.uj:this.lg};d.prototype.Sc=function(){this.La.Sc(this.Oa);this.tc&&this.Oa.present()};d.prototype.Nb=function(){this.Ja&&(this.ng=1,this.La.Gf(this.D));this.La.Nb(this.D);this.D.xz()};d.prototype.qk=function(a){a&&this.Qk.push(a)};d.prototype.ht=function(a){Ea(this.Qk,a)};d.prototype.vg=function(a){a=a.toString();return this.bf.hasOwnProperty(a)?this.bf[a]:null};var I=[];d.prototype.ge=function(a){var b,c;b=a.type.name;
var f=null;if(this.kg.hasOwnProperty(b)){if(f=this.kg[b],f.contains(a))return}else f=I.length?I.pop():new ea,this.kg[b]=f;f.add(a);this.Jf=!0;if(a.Ub)for(b=0,c=a.siblings.length;b<c;b++)this.ge(a.siblings[b]);this.yo&&f.di.push(a);this.xo||(this.dd++,this.trigger(Object.getPrototypeOf(a.type.Aa).n.Yu,a),this.dd--)};d.prototype.ac=function(){if(this.Jf){var a,b,c,f,l,e;this.yo=!0;c=0;for(l=this.Od.length;c<l;++c)for(a=this.Od[c],b=a.type,b.k.push(a),f=0,e=b.Ra.length;f<e;++f)b.Ra[f].k.push(a),b.Ra[f].ai=
!0;N(this.Od);this.Ru();Va(this.kg);this.Jf=this.yo=!1}};d.prototype.Ru=function(){for(var a in this.kg)this.kg.hasOwnProperty(a)&&this.ou(this.kg[a])};d.prototype.ou=function(a){var b=a.qf(),c=b[0].type,f,l,e,h,m,d;Xa(c.k,a);c.ai=!0;0===c.k.length&&(c.tk=!1);f=0;for(l=c.Ra.length;f<l;++f)d=c.Ra[f],Xa(d.k,a),d.ai=!0;f=0;for(l=this.Ae.Oc.length;f<l;++f)if(m=this.Ae.Oc[f],m.xc.hasOwnProperty(c.index)&&Xa(m.xc[c.index].Pe,a),!c.L)for(e=0,h=c.Ra.length;e<h;++e)d=c.Ra[e],m.xc.hasOwnProperty(d.index)&&
Xa(m.xc[d.index].Pe,a);if(m=b[0].u){if(m.ld)for(e=m.k,f=0,l=e.length;f<l;++f)h=e[f],a.contains(h)&&(h.Ia(),m.Zb.update(h,h.Jc,null),h.Jc.set(0,0,-1,-1));Xa(m.k,a);m.Oj(0)}for(f=0;f<b.length;++f)this.nu(b[f],c);a.clear();I.push(a);this.ca=!0};d.prototype.nu=function(a,b){var c,f,l;c=0;for(f=this.Qk.length;c<f;++c)this.Qk[c](a);a.Cf&&b.Ek.update(a,a.Cf,null);(c=a.u)&&c.Th(a,!0);if(a.W)for(c=0,f=a.W.length;c<f;++c)l=a.W[c],l.Vd&&l.Vd(),l.behavior.Rl.remove(a);this.Es.remove(a);this.Zo.remove(a);this.Fs.remove(a);
a.Vd&&a.Vd();this.bf.hasOwnProperty(a.uid.toString())&&delete this.bf[a.uid.toString()];this.Ul--;100>b.Nk.length&&b.Nk.push(a)};d.prototype.Dn=function(a,b,c,f){if(a.L){var l=z(Math.random()*a.Lg.length);return this.Dn(a.Lg[l],b,c,f)}return a.sd?this.Df(a.sd,b,!1,c,f,!1):null};var C=[];d.prototype.Df=function(a,b,c,f,l,e){var h,m,d,r;if(!a)return null;var k=this.G[a[1]],y=k.Aa.Mf;if(this.Yi&&y&&!k.zo||y&&!this.D&&11===a[0][11])return null;var u=b;y||(b=null);var g;k.Nk.length?(g=k.Nk.pop(),g.Yb=
!0,k.Aa.R.call(g,k)):(g=new k.Aa.R(k),g.Yb=!1);!c||e||this.bf.hasOwnProperty(a[2].toString())?g.uid=this.vj++:g.uid=a[2];this.bf[g.uid.toString()]=g;g.bt=this.As++;g.yg=k.k.length;h=0;for(m=this.Od.length;h<m;++h)this.Od[h].type===k&&g.yg++;g.Fi=Gb;g.toString=Hb;d=a[3];if(g.Yb)Va(g.N);else{g.N={};if("undefined"!==typeof cr_is_preview)for(g.Dr=[],g.Dr.length=d.length,h=0,m=d.length;h<m;h++)g.Dr[h]=d[h][1];g.Bb=[];g.Bb.length=d.length}h=0;for(m=d.length;h<m;h++)g.Bb[h]=d[h][0];if(y){var n=a[0];g.x=
ia(f)?n[0]:f;g.y=ia(l)?n[1]:l;g.z=n[2];g.width=n[3];g.height=n[4];g.depth=n[5];g.q=n[6];g.opacity=n[7];g.Ec=n[8];g.Fc=n[9];g.cc=n[10];h=n[11];!this.D&&k.Z.length&&(g.cc=h);g.pi=gb(g.cc);this.J&&hb(g,g.cc,this.J);if(g.Yb){h=0;for(m=n[12].length;h<m;h++)for(d=0,r=n[12][h].length;d<r;d++)g.Ya[h][d]=n[12][h][d];g.Ma.set(0,0,0,0);g.Cf.set(0,0,-1,-1);g.Jc.set(0,0,-1,-1);g.gc.Yh(g.Ma);N(g.tn)}else{g.Ya=n[12].slice(0);h=0;for(m=g.Ya.length;h<m;h++)g.Ya[h]=n[12][h].slice(0);g.za=[];g.vf=[];g.vf.length=k.Z.length;
g.Ma=new ua(0,0,0,0);g.Cf=new ua(0,0,-1,-1);g.Jc=new ua(0,0,-1,-1);g.gc=new xa;g.tn=[];g.C=Kb;g.fw=Lb;g.jc=Mb;g.Ia=Nb;g.bu=Ob;g.Vp=Pb;g.ne=Qb}g.bi=!1;g.Rt=0;g.Qt=0;g.Pt=null;14===n.length&&(g.bi=!0,g.Rt=n[13][0],g.Qt=n[13][1],g.Pt=n[13][2]);h=0;for(m=k.Z.length;h<m;h++)g.vf[h]=!0;g.jf=!0;g.de=Rb;g.de();g.cu=!!g.za.length;g.zk=!0;g.yn=!0;k.sk=!0;g.visible=!0;g.uj=-1;g.u=b;g.ee=b.k.length;g.ng=0;"undefined"===typeof g.Ba&&(g.Ba=null);this.ca=g.Ge=!0}var p;N(C);h=0;for(m=k.Ra.length;h<m;h++)C.push.apply(C,
k.Ra[h].Va);C.push.apply(C,k.Va);if(g.Yb)for(h=0,m=C.length;h<m;h++){var q=C[h];p=g.W[h];p.Yb=!0;q.behavior.R.call(p,q,g);n=a[4][h];d=0;for(r=n.length;d<r;d++)p.B[d]=n[d];p.K();q.behavior.Rl.add(g)}else for(g.W=[],h=0,m=C.length;h<m;h++)q=C[h],p=new q.behavior.R(q,g),p.Yb=!1,p.B=a[4][h].slice(0),p.K(),g.W.push(p),q.behavior.Rl.add(g);n=a[5];if(g.Yb)for(h=0,m=n.length;h<m;h++)g.B[h]=n[h];else g.B=n.slice(0);this.Od.push(g);this.Jf=!0;b&&(b.li(g,!0),1!==b.xd||1!==b.yd)&&(k.tk=!0);this.Ul++;if(k.Ub){if(g.Ub=
!0,g.Yb?N(g.siblings):g.siblings=[],!c&&!e){h=0;for(m=k.Qc.length;h<m;h++)if(k.Qc[h]!==k){if(!k.Qc[h].sd)return null;g.siblings.push(this.Df(k.Qc[h].sd,u,!1,y?g.x:f,y?g.y:l,!0))}h=0;for(m=g.siblings.length;h<m;h++)for(g.siblings[h].siblings.push(g),d=0;d<m;d++)h!==d&&g.siblings[h].siblings.push(g.siblings[d])}}else g.Ub=!1,g.siblings=null;g.K();h=0;for(m=g.W.length;h<m;h++)g.W[h].sz&&g.W[h].sz();return g};d.prototype.Yn=function(a){var b,c;b=0;for(c=this.La.ba.length;b<c;b++){var f=this.La.ba[b];
if(jb(f.name,a))return f}return null};d.prototype.Ci=function(a){a=z(a);0>a&&(a=0);a>=this.La.ba.length&&(a=this.La.ba.length-1);return this.La.ba[a]};d.prototype.An=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].aa().ka=!0};d.prototype.Hj=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].Hj()};d.prototype.Pg=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].Pg()};d.prototype.ue=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].ue()};d.prototype.$t=function(a){if(a.sk){var b,c,f=a.k;b=
0;for(c=f.length;b<c;++b)f[b].Vp();f=this.Od;b=0;for(c=f.length;b<c;++b)f[b].type===a&&f[b].Vp();a.sk=!1}};d.prototype.ir=function(a,b,c,f){var l,e,h=a?1!==a.xd||1!==a.yd:!1;if(b.L)for(a=0,l=b.Lg.length;a<l;++a)e=b.Lg[a],h||e.tk?Ca(f,e.k):(this.$t(e),e.Ek.nm(c,f));else h||b.tk?Ca(f,b.k):(this.$t(b),b.Ek.nm(c,f))};d.prototype.pr=function(a,b,c,f){var l,e;l=0;for(e=b.length;l<e;++l)this.ir(a,b[l],c,f)};d.prototype.hy=function(a,b,c){var f=this.Et;f&&this.pr(a,f.Sl,b,c)};d.prototype.$x=function(a,b,
c){var f=this.Pr;f&&this.pr(a,f.Sl,b,c)};d.prototype.It=function(a,b,c,f){var l=a.aa(),e,h,m,d,r=this.ib().fb.wd,k,g,y;if(l.ka)for(f||(l.ka=!1,N(l.k)),e=0,d=a.k.length;e<d;e++)if(m=a.k[e],m.Ia(),k=m.u.qc(b,c,!0),g=m.u.qc(b,c,!1),m.jc(k,g)){if(f)return!1;l.k.push(m)}else r&&l.na.push(m);else{h=0;y=r?l.na:l.k;e=0;for(d=y.length;e<d;e++)if(m=y[e],m.Ia(),k=m.u.qc(b,c,!0),g=m.u.qc(b,c,!1),m.jc(k,g)){if(f)return!1;r?l.k.push(m):(l.k[h]=l.k[e],h++)}f||(y.length=h)}a.Kd();return f?!0:l.jo()};d.prototype.nc=
function(a,b){if(!(a&&b&&a!==b&&a.Ge&&b.Ge))return!1;a.Ia();b.Ia();var c=a.u,f=b.u,l,e,h,m,d,r,k,g;if(c===f||c.xd===f.xd&&f.yd===f.yd&&c.scale===f.scale&&c.q===f.q&&c.fe===f.fe){if(!a.Ma.Hy(b.Ma)||!a.gc.Er(b.gc)||a.bi&&b.bi)return!1;if(a.bi)return this.Jt(a,b);if(b.bi)return this.Jt(b,a);k=a.Ba&&!a.Ba.sh();l=b.Ba&&!b.Ba.sh();if(!k&&!l)return!0;k?(a.Ba.hg(a.width,a.height,a.q),k=a.Ba):(this.Zd.Xh(a.gc,a.x,a.y,a.width,a.height),k=this.Zd);l?(b.Ba.hg(b.width,b.height,b.q),g=b.Ba):(this.Zd.Xh(b.gc,b.x,
b.y,b.width,b.height),g=this.Zd);return k.Mi(g,b.x-a.x,b.y-a.y)}k=a.Ba&&!a.Ba.sh();l=b.Ba&&!b.Ba.sh();k?(a.Ba.hg(a.width,a.height,a.q),this.Zd.ut(a.Ba)):this.Zd.Xh(a.gc,a.x,a.y,a.width,a.height);k=this.Zd;l?(b.Ba.hg(b.width,b.height,b.q),this.Fp.ut(b.Ba)):this.Fp.Xh(b.gc,b.x,b.y,b.width,b.height);g=this.Fp;l=0;for(e=k.Zc;l<e;l++)h=2*l,m=h+1,d=k.Ka[h],r=k.Ka[m],k.Ka[h]=c.Sa(d+a.x,r+a.y,!0),k.Ka[m]=c.Sa(d+a.x,r+a.y,!1);k.Ia();l=0;for(e=g.Zc;l<e;l++)h=2*l,m=h+1,d=g.Ka[h],r=g.Ka[m],g.Ka[h]=f.Sa(d+b.x,
r+b.y,!0),g.Ka[m]=f.Sa(d+b.x,r+b.y,!1);g.Ia();return k.Mi(g,0,0)};var Y=new xa;new ua(0,0,0,0);var W=[];d.prototype.Jt=function(a,b){var c,f,l,e,h=b.Ma,m=a.x,d=a.y;a.Ux(h,W);var r=b.Ba&&!b.Ba.sh();c=0;for(f=W.length;c<f;++c)if(l=W[c],e=l.Da,h.Iy(e,m,d)&&(Y.Yh(e),Y.offset(m,d),Y.Er(b.gc)))if(r)if(b.Ba.hg(b.width,b.height,b.q),l.ef){if(l.ef.Mi(b.Ba,b.x-(m+e.left),b.y-(d+e.top)))return N(W),!0}else{if(this.Zd.Xh(Y,0,0,e.right-e.left,e.bottom-e.top),this.Zd.Mi(b.Ba,b.x,b.y))return N(W),!0}else if(l.ef){if(this.Zd.Xh(b.gc,
0,0,b.width,b.height),l.ef.Mi(this.Zd,-(m+e.left),-(d+e.top)))return N(W),!0}else return N(W),!0;N(W);return!1};d.prototype.Op=function(a,b){if(!b)return!1;var c,f,l,e,h;c=0;for(f=a.Va.length;c<f;c++)if(a.Va[c].behavior instanceof b)return!0;if(!a.L)for(c=0,f=a.Ra.length;c<f;c++)for(h=a.Ra[c],l=0,e=h.Va.length;l<e;l++)if(h.Va[l].behavior instanceof b)return!0;return!1};d.prototype.Pp=function(a){return this.Op(a,fc.IA)};d.prototype.Qp=function(a){return this.Op(a,fc.JA)};var A=[];d.prototype.ab=function(a){var b,
c,f;a.Ia();this.hy(a.u,a.Ma,A);b=0;for(c=A.length;b<c;++b)if(f=A[b],f.N.solidEnabled&&this.nc(a,f))return N(A),f;N(A);return null};var Q=[];d.prototype.nf=function(a,b){var c=null;b&&(c=Q,N(c));a.Ia();this.$x(a.u,a.Ma,A);var f,l,e;f=0;for(l=A.length;f<l;++f)if(e=A[f],e.N.jumpthruEnabled&&this.nc(a,e))if(b)c.push(e);else return N(A),e;N(A);return c};d.prototype.hd=function(a,b,c,f,l,e){f=f||50;var h=a.x,m=a.y,d,r=null,k=null;for(d=0;d<f;d++)if(a.x=h+b*d,a.y=m+c*d,a.C(),!this.nc(a,r)&&((r=this.ab(a))&&
(k=r),!r&&(l&&(e?r=this.nc(a,e)?e:null:r=this.nf(a),r&&(k=r)),!r)))return k&&this.mm(a,b,c,k),!0;a.x=h;a.y=m;a.C();return!1};d.prototype.Az=function(a,b,c,f){f=f||50;var l=a.x,e=a.y,h=null,m=null,d,r,k;for(d=0;d<f;++d)for(r=0;2>r;++r)if(k=2*r-1,a.x=l+b*d*k,a.y=e+c*d*k,a.C(),!this.nc(a,h))if(h=this.ab(a))m=h;else return m&&this.mm(a,b*k,c*k,m),!0;a.x=l;a.y=e;a.C();return!1};d.prototype.mm=function(a,b,c,f){var l=2,e,h=!1;e=!1;for(var m=a.x,d=a.y;16>=l;)e=1/l,l*=2,a.x+=b*e*(h?1:-1),a.y+=c*e*(h?1:-1),
a.C(),this.nc(a,f)?e=h=!0:(e=h=!1,m=a.x,d=a.y);e&&(a.x=m,a.y=d,a.C())};d.prototype.dt=function(a,b){var c=ia(b)?100:b,f=0,l=a.x,e=a.y,h=0,m=0,d=0,r=this.ab(a);if(!r)return!0;for(;f<=c;){switch(h){case 0:m=0;d=-1;f++;break;case 1:m=1;d=-1;break;case 2:m=1;d=0;break;case 3:d=m=1;break;case 4:m=0;d=1;break;case 5:m=-1;d=1;break;case 6:m=-1;d=0;break;case 7:d=m=-1}h=(h+1)%8;a.x=z(l+m*f);a.y=z(e+d*f);a.C();if(!this.nc(a,r)&&(r=this.ab(a),!r))return!0}a.x=l;a.y=e;a.C();return!1};d.prototype.Qg=function(a,
b){a.Ge&&b.Ge&&this.Rg.push([a,b])};d.prototype.ew=function(a,b,c){var f,l,e;f=0;for(l=this.Rg.length;f<l;++f){e=this.Rg[f];if(e[0]===a)e=e[1];else if(e[1]===a)e=e[0];else continue;if(b.L){if(-1===b.Lg.indexOf(b))continue}else if(e.type!==b)continue;-1===c.indexOf(e)&&c.push(e)}};d.prototype.qw=function(a,b){var c,f,l;c=0;for(f=this.Rg.length;c<f;c++)if(l=this.Rg[c],l[0]===a&&l[1]===b||l[0]===b&&l[1]===a)return!0;return!1};d.prototype.ow=function(a,b,c){var f=a.x,l=a.y,e=pa(10,Sa(b,c,f,l)),h=Na(b,
c,f,l),m=this.ab(a);if(!m)return Ja(h+ra);var d=m,r,k,g,y,u=S(5);for(r=1;36>r;r++)if(k=h-r*u,a.x=b+Math.cos(k)*e,a.y=c+Math.sin(k)*e,a.C(),!this.nc(a,d)&&(d=this.ab(a),!d)){g=k;break}36===r&&(g=Ja(h+ra));d=m;for(r=1;36>r;r++)if(k=h+r*u,a.x=b+Math.cos(k)*e,a.y=c+Math.sin(k)*e,a.C(),!this.nc(a,d)&&(d=this.ab(a),!d)){y=k;break}36===r&&(y=Ja(h+ra));a.x=f;a.y=l;a.C();if(y===g)return y;a=Oa(y,g)/2;a=Qa(y,g)?Ja(g+a+ra):Ja(y+a);g=Math.cos(h);h=Math.sin(h);y=Math.cos(a);a=Math.sin(a);b=g*y+h*a;return Na(0,
0,g-2*b*y,h-2*b*a)};var X=-1;d.prototype.trigger=function(a,b,c){if(!this.La)return!1;var f=this.La.pg;if(!f)return!1;var l=!1,e,h,m;X++;var d=f.In;h=0;for(m=d.length;h<m;++h)e=this.Ut(a,b,d[h],c),l=l||e;e=this.Ut(a,b,f,c);X--;return l||e};d.prototype.Ut=function(a,b,c,f){var l=!1,e,h,m,d;if(b)for(m=this.Mp(a,b,b.type.name,c,f),l=l||m,d=b.type.Ra,e=0,h=d.length;e<h;++e)m=this.Mp(a,b,d[e].name,c,f),l=l||m;else m=this.Mp(a,b,"system",c,f),l=l||m;return l};d.prototype.Mp=function(a,b,c,f,l){var e,h=
!1,m=!1,m="undefined"!==typeof l,d=(m?f.Vq:f.Vt)[c];if(!d)return h;var r=null;f=0;for(e=d.length;f<e;++f)if(d[f].method==a){r=d[f].xi;break}if(!r)return h;var k;m?k=r[l]:k=r;if(!k)return null;f=0;for(e=k.length;f<e;f++)a=k[f][0],l=k[f][1],m=this.Jx(b,c,a,l),h=h||m;return h};d.prototype.Jx=function(a,b,c,f){var l,e,h=!1;this.Np++;var m=this.ib().fb;m&&this.Hj(m.Xf);var d=1<this.Np;this.Hj(c.Xf);d&&this.zz();var r=this.lm(c);r.fb=c;a&&(l=this.types[b].aa(),l.ka=!1,N(l.k),l.k[0]=a,this.types[b].Kd());
a=!0;if(c.parent){b=r.Ht;for(l=c.parent;l;)b.push(l),l=l.parent;b.reverse();l=0;for(e=b.length;l<e;l++)if(!b[l].Mz()){a=!1;break}}a&&(this.rg++,c.wd?c.Lz(f):c.qb(),h=h||r.Fg);this.hm();d&&this.rz();this.ue(c.Xf);m&&this.ue(m.Xf);this.Jf&&0===this.dd&&0===X&&!this.Ao&&this.ac();this.Np--;return h};d.prototype.Bi=function(){var a=this.ib();return a.fb.wb[a.ub]};d.prototype.Vx=function(){var a=this.ib();return a.fb.md[a.Bc]};d.prototype.zz=function(){this.Ll++;this.Ll>=this.Qo.length&&this.Qo.push([])};
d.prototype.rz=function(){this.Ll--};d.prototype.jr=function(){return this.Qo[this.Ll]};d.prototype.lm=function(a){this.Sk++;this.Sk>=this.Mn.length&&this.Mn.push(new Sb);var b=this.ib();b.reset(a);return b};d.prototype.hm=function(){this.Sk--};d.prototype.ib=function(){return this.Mn[this.Sk]};d.prototype.ct=function(){this.Nl++;this.Nl>=this.So.length&&this.So.push(ba({name:void 0,index:0,sb:!1}));var a=this.Wx();a.name=void 0;a.index=0;a.sb=!1;return a};d.prototype.Ws=function(){this.Nl--};d.prototype.Wx=
function(){return this.So[this.Nl]};d.prototype.kr=function(a,b){for(var c,f,l,e,h,m;b;){c=0;for(f=b.Dd.length;c<f;c++)if(m=b.Dd[c],m instanceof Tb&&jb(a,m.name))return m;b=b.parent}c=0;for(f=this.Je.length;c<f;c++)for(h=this.Je[c],l=0,e=h.Hf.length;l<e;l++)if(m=h.Hf[l],m instanceof Tb&&jb(a,m.name))return m;return null};d.prototype.mr=function(a){var b,c;b=0;for(c=this.Td.length;b<c;b++)if(this.Td[b].ma===a)return this.Td[b];return null};d.prototype.ll=function(a){var b,c;b=0;for(c=this.G.length;b<
c;b++)if(this.G[b].ma===a)return this.G[b];return null};d.prototype.Xx=function(a){var b,c;b=0;for(c=this.dh.length;b<c;b++)if(this.dh[b].ma===a)return this.dh[b];return null};d.prototype.Aw=function(a,b){this.Tj=[a,b];this.ca=!0};d.prototype.By=function(){var a=this,b=this.tp,c=this.Te,f=this.Gl,l=!1;this.Bt&&(l=!0,b="__c2_continuouspreview",this.Bt=!1);if(b.length){this.ac();c=this.Qz();if(p()&&!this.Rd)n(b,c,function(){ga("Saved state to IndexedDB storage ("+c.length+" bytes)");a.Te=c;a.trigger(T.prototype.n.hn,
null);a.Te="";l&&k()},function(f){try{localStorage.setItem("__c2save_"+b,c),ga("Saved state to WebStorage ("+c.length+" bytes)"),a.Te=c,a.trigger(T.prototype.n.hn,null),a.Te="",l&&k()}catch(e){ga("Failed to save game state: "+f+"; "+e),a.trigger(T.prototype.n.sq,null)}});else try{localStorage.setItem("__c2save_"+b,c),ga("Saved state to WebStorage ("+c.length+" bytes)"),a.Te=c,this.trigger(T.prototype.n.hn,null),a.Te="",l&&k()}catch(e){ga("Error saving to WebStorage: "+e),a.trigger(T.prototype.n.sq,
null)}this.Gl=this.tp="";this.Db=null}if(f.length){if(p()&&!this.Rd)g(f,function(b){b?(a.Db=b,ga("Loaded state from IndexedDB storage ("+a.Db.length+" bytes)")):(a.Db=localStorage.getItem("__c2save_"+f)||"",ga("Loaded state from WebStorage ("+a.Db.length+" bytes)"));a.Uj=!1;a.Db||(a.Db=null,a.trigger(T.prototype.n.ok,null))},function(){a.Db=localStorage.getItem("__c2save_"+f)||"";ga("Loaded state from WebStorage ("+a.Db.length+" bytes)");a.Uj=!1;a.Db||(a.Db=null,a.trigger(T.prototype.n.ok,null))});
else{try{this.Db=localStorage.getItem("__c2save_"+f)||"",ga("Loaded state from WebStorage ("+this.Db.length+" bytes)")}catch(h){this.Db=null}this.Uj=!1;a.Db||(a.Db=null,a.trigger(T.prototype.n.ok,null))}this.tp=this.Gl=""}null!==this.Db&&(this.ac(),this.Wy(this.Db)?(this.Te=this.Db,this.trigger(T.prototype.n.hv,null),this.Te=""):a.trigger(T.prototype.n.ok,null),this.Db=null)};d.prototype.Qz=function(){var a,b,f,l,e,h,m,d={c2save:!0,version:1,rt:{time:this.kb.O,walltime:this.rf.O,timescale:this.Xg,
tickcount:this.$d,execcount:this.rg,next_uid:this.vj,running_layout:this.La.ma,start_time_offset:Date.now()-this.Jm},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(b=this.G.length;a<b;a++)if(e=this.G[a],!e.L&&!this.Pp(e)){h={instances:[]};Ua(e.N)&&(h.ex=c(e.N));f=0;for(l=e.k.length;f<l;f++)h.instances.push(this.sp(e.k[f]));d.types[e.ma.toString()]=h}a=0;for(b=this.Td.length;a<b;a++)f=this.Td[a],d.layouts[f.ma.toString()]=f.Ta();l=d.events.groups;a=0;for(b=this.dh.length;a<
b;a++)f=this.dh[a],l[f.ma.toString()]=this.Hi[f.Gi].oh;b=d.events.cnds;for(m in this.Bf)this.Bf.hasOwnProperty(m)&&(a=this.Bf[m],Ua(a.N)&&(b[m]={ex:c(a.N)}));b=d.events.acts;for(m in this.wf)this.wf.hasOwnProperty(m)&&(a=this.wf[m],Ua(a.N)&&(b[m]={ex:c(a.N)}));b=d.events.vars;for(m in this.ei)this.ei.hasOwnProperty(m)&&(a=this.ei[m],a.zl||a.parent&&!a.Wi||(b[m]=a.data));d.system=this.Ae.Ta();return JSON.stringify(d)};d.prototype.et=function(){var a,b,c,f,l,e;this.bf={};a=0;for(b=this.G.length;a<b;a++)if(c=
this.G[a],!c.L)for(f=0,l=c.k.length;f<l;f++)e=c.k[f],this.bf[e.uid.toString()]=e};d.prototype.Wy=function(a){var b;try{b=JSON.parse(a)}catch(c){return!1}if(!b.c2save||1<b.version)return!1;this.Pi=!0;a=b.rt;this.kb.reset();this.kb.O=a.time;this.rf.reset();this.rf.O=a.walltime||0;this.Xg=a.timescale;this.$d=a.tickcount;this.rg=a.execcount;this.Jm=Date.now()-a.start_time_offset;var f=a.running_layout;if(f!==this.La.ma)if(f=this.mr(f))this.Rq(f);else return;var l,e,h,m,d,r,k;r=b.types;for(e in r)if(r.hasOwnProperty(e)&&
(m=this.ll(parseInt(e,10)))&&!m.L&&!this.Pp(m)){r[e].ex?m.N=r[e].ex:Va(m.N);d=m.k;h=r[e].instances;f=0;for(l=qa(d.length,h.length);f<l;f++)this.Hl(d[f],h[f]);f=h.length;for(l=d.length;f<l;f++)this.ge(d[f]);f=d.length;for(l=h.length;f<l;f++){d=null;if(m.Aa.Mf&&(d=this.La.kl(h[f].w.l),!d))continue;d=this.Df(m.sd,d,!1,0,0,!0);this.Hl(d,h[f])}m.ai=!0}this.ac();this.et();l=b.layouts;for(e in l)l.hasOwnProperty(e)&&(f=this.mr(parseInt(e,10)))&&f.bb(l[e]);l=b.events.groups;for(e in l)l.hasOwnProperty(e)&&
(f=this.Xx(parseInt(e,10)))&&this.Hi[f.Gi]&&this.Hi[f.Gi].Sz(l[e]);f=b.events.cnds;for(e in this.Bf)this.Bf.hasOwnProperty(e)&&(f.hasOwnProperty(e)?this.Bf[e].N=f[e].ex:this.Bf[e].N={});f=b.events.acts;for(e in this.wf)this.wf.hasOwnProperty(e)&&(f.hasOwnProperty(e)?this.wf[e].N=f[e].ex:this.wf[e].N={});f=b.events.vars;for(e in f)f.hasOwnProperty(e)&&this.ei.hasOwnProperty(e)&&(this.ei[e].data=f[e]);this.vj=a.next_uid;this.Pi=!1;f=0;for(l=this.Zk.length;f<l;++f)d=this.Zk[f],this.trigger(Object.getPrototypeOf(d.type.Aa).n.$f,
d);N(this.Zk);this.Ae.bb(b.system);f=0;for(l=this.G.length;f<l;f++)if(m=this.G[f],!m.L&&!this.Pp(m))for(b=0,e=m.k.length;b<e;b++){d=m.k[b];if(m.Ub)for(r=d.Fi(),N(d.siblings),a=0,h=m.Qc.length;a<h;a++)k=m.Qc[a],m!==k&&d.siblings.push(k.k[r]);d.Hd&&d.Hd();if(d.W)for(a=0,h=d.W.length;a<h;a++)r=d.W[a],r.Hd&&r.Hd()}return this.ca=!0};d.prototype.sp=function(a,b){var f,l,e,h,m;h=a.type;e=h.Aa;var d={};b?d.c2=!0:d.uid=a.uid;Ua(a.N)&&(d.ex=c(a.N));if(a.Bb&&a.Bb.length)for(d.ivs={},f=0,l=a.Bb.length;f<l;f++)d.ivs[a.type.vo[f].toString()]=
a.Bb[f];if(e.Mf){e={x:a.x,y:a.y,w:a.width,h:a.height,l:a.u.ma,zi:a.ne()};0!==a.q&&(e.a=a.q);1!==a.opacity&&(e.o=a.opacity);.5!==a.Ec&&(e.hX=a.Ec);.5!==a.Fc&&(e.hY=a.Fc);0!==a.cc&&(e.bm=a.cc);a.visible||(e.v=a.visible);a.Ge||(e.ce=a.Ge);-1!==a.uj&&(e.mts=a.uj);if(h.Z.length)for(e.fx=[],f=0,l=h.Z.length;f<l;f++)m=h.Z[f],e.fx.push({name:m.name,active:a.vf[m.index],params:a.Ya[m.index]});d.w=e}if(a.W&&a.W.length)for(d.behs={},f=0,l=a.W.length;f<l;f++)h=a.W[f],h.Ta&&(d.behs[h.type.ma.toString()]=h.Ta());
a.Ta&&(d.data=a.Ta());return d};d.prototype.Zx=function(a,b){var c,f;c=0;for(f=a.vo.length;c<f;c++)if(a.vo[c]===b)return c;return-1};d.prototype.Tx=function(a,b){var c,f;c=0;for(f=a.W.length;c<f;c++)if(a.W[c].type.ma===b)return c;return-1};d.prototype.Hl=function(a,b,c){var f,l,e,h,m;m=a.type;var d=m.Aa;if(c){if(!b.c2)return}else a.uid=b.uid;b.ex?a.N=b.ex:Va(a.N);if(l=b.ivs)for(f in l)l.hasOwnProperty(f)&&(e=this.Zx(m,parseInt(f,10)),0>e||e>=a.Bb.length||(h=l[f],null===h&&(h=NaN),a.Bb[e]=h));if(d.Mf){e=
b.w;a.u.ma!==e.l&&(l=a.u,a.u=this.La.kl(e.l),a.u?(l.Th(a,!0),a.u.li(a,!0),a.C(),a.u.Oj(0)):(a.u=l,c||this.ge(a)));a.x=e.x;a.y=e.y;a.width=e.w;a.height=e.h;a.ee=e.zi;a.q=e.hasOwnProperty("a")?e.a:0;a.opacity=e.hasOwnProperty("o")?e.o:1;a.Ec=e.hasOwnProperty("hX")?e.hX:.5;a.Fc=e.hasOwnProperty("hY")?e.hY:.5;a.visible=e.hasOwnProperty("v")?e.v:!0;a.Ge=e.hasOwnProperty("ce")?e.ce:!0;a.uj=e.hasOwnProperty("mts")?e.mts:-1;a.cc=e.hasOwnProperty("bm")?e.bm:0;a.pi=gb(a.cc);this.J&&hb(a,a.cc,this.J);a.C();
if(e.hasOwnProperty("fx"))for(c=0,l=e.fx.length;c<l;c++)h=m.Wn(e.fx[c].name),0>h||(a.vf[h]=e.fx[c].active,a.Ya[h]=e.fx[c].params);a.de()}if(m=b.behs)for(f in m)m.hasOwnProperty(f)&&(c=this.Tx(a,parseInt(f,10)),0>c||a.W[c].bb(m[f]));b.data&&a.bb(b.data)};d.prototype.Wq=function(a,b,c){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(b,c)},c)};d.prototype.Kx=function(a,b){this.Wq("data.js",function(c){var f=new FileReader;f.onload=function(b){a(b.target.result)};
f.onerror=b;f.readAsText(c)},b)};var R=[],D=0;d.prototype.Xo=function(){if(R.length&&!(8<=D)){D++;var a=R.shift();this.Dw(a.filename,a.aA,a.ax)}};d.prototype.Xq=function(a,b,c){var f=this;R.push({filename:a,aA:function(a){D--;f.Xo();b(a)},ax:function(a){D--;f.Xo();c(a)}});this.Xo()};d.prototype.Dw=function(a,b,c){this.Wq(a,function(a){var c=new FileReader;c.onload=function(a){b(a.target.result)};c.readAsArrayBuffer(a)},c)};d.prototype.Lx=function(a,b,c){var f="",e=a.toLowerCase(),l=e.substr(e.length-
4),e=e.substr(e.length-5);".mp4"===l?f="video/mp4":".webm"===e?f="video/webm":".m4a"===l?f="audio/mp4":".mp3"===l&&(f="audio/mpeg");this.Xq(a,function(a){a=URL.createObjectURL(new Blob([a],{type:f}));b(a)},c)};d.prototype.Jy=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};d.prototype.ot=function(a,b){this.xl&&!this.Jy(b)?this.Lx(b,function(b){a.src=b},function(a){alert("Failed to load image: "+a)}):a.src=b};d.prototype.xm=function(a,b){"undefined"!==
typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=b:(a.webkitImageSmoothingEnabled=b,a.mozImageSmoothingEnabled=b,a.msImageSmoothingEnabled=b)};Ub=function(a){return new d(document.getElementById(a))};Vb=function(a,b){return new d({dc:!0,width:a,height:b})};window.cr_createRuntime=Ub;window.cr_createDCRuntime=Vb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.bg=!0;document.body.appendChild(a);a=new d(a);
window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new d(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();
window.cr_getC2Runtime=function(){var d=document.getElementById("c2canvas");return d?d.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(d,q){var p=window.cr_getC2Runtime();p&&p.Aw(d,q)};window.cr_sizeCanvas=function(d,q){if(0!==d&&0!==q){var p=window.cr_getC2Runtime();p&&p.setSize(d,q)}};window.cr_setSuspended=function(d){var q=window.cr_getC2Runtime();q&&q.setSuspended(d)};
(function(){function d(a,b){this.b=a;this.pg=null;this.scrollX=this.b.ob/2;this.scrollY=this.b.nb/2;this.scale=1;this.q=0;this.mh=!0;this.name=b[0];this.mz=b[1];this.lz=b[2];this.width=b[1];this.height=b[2];this.Xt=b[3];this.zt=b[4];this.ma=b[5];var c=b[6],e,d;this.ba=[];this.Li=[];e=0;for(d=c.length;e<d;e++){var k=new Wb(this,c[e]);k.Cs=e;this.ba.push(k)}c=b[7];this.Kf=[];e=0;for(d=c.length;e<d;e++){var k=c[e],g=this.b.G[k[1]];g.sd||(g.sd=k);this.Kf.push(k);-1===this.Li.indexOf(g)&&this.Li.push(g)}this.Z=
[];this.za=[];this.jf=!0;this.Ya=[];e=0;for(d=b[8].length;e<d;e++)this.Z.push({id:b[8][e][0],name:b[8][e][1],rb:-1,zd:!1,Ua:!0,index:e}),this.Ya.push(b[8][e][2].slice(0));this.de();this.Uf=new ua(0,0,1,1);this.mp=new ua(0,0,1,1);this.Tf={}}function q(a,b){return a.ee-b.ee}function p(a,b){this.lb=a;this.b=a.b;this.k=[];this.scale=1;this.q=0;this.Ie=!1;this.of=new ua(0,0,0,0);this.St=new xa;this.Ea=this.ya=this.Fa=this.xa=0;this.Zg=!1;this.tf=-1;this.Bn=0;this.name=b[0];this.index=b[1];this.ma=b[2];
this.visible=b[3];this.Ld=b[4];this.be=b[5];this.xd=b[6];this.yd=b[7];this.opacity=b[8];this.fl=b[9];this.ld=b[10];this.fe=b[11];this.cc=b[12];this.Xw=b[13];this.pi="source-over";this.kc=this.mc=0;this.Zb=null;this.Ue=t();this.Yd=!0;this.Dh=new ua(0,0,-1,-1);this.Rb=new ua(0,0,-1,-1);this.ld&&(this.Zb=new fb(this.b.ob,this.b.nb));this.ve=!1;var c=b[14],e,d;this.Ft=[];this.cd=[];this.si=[];e=0;for(d=c.length;e<d;e++){var k=c[e],g=this.b.G[k[1]];g.sd||(g.sd=k,g.xw=this.index);this.cd.push(k);-1===this.lb.Li.indexOf(g)&&
this.lb.Li.push(g)}Ba(this.Ft,this.cd);this.Z=[];this.za=[];this.jf=!0;this.Ya=[];e=0;for(d=b[15].length;e<d;e++)this.Z.push({id:b[15][e][0],name:b[15][e][1],rb:-1,zd:!1,Ua:!0,index:e}),this.Ya.push(b[15][e][2].slice(0));this.de();this.Uf=new ua(0,0,1,1);this.mp=new ua(0,0,1,1)}function t(){return c.length?c.pop():[]}function n(a){N(a);c.push(a)}d.prototype.Pz=function(a){var b=a.type.ma.toString();this.Tf.hasOwnProperty(b)||(this.Tf[b]=[]);this.Tf[b].push(this.b.sp(a))};d.prototype.rr=function(){var a=
this.ba[0];return!a.be&&1===a.opacity&&!a.fl&&a.visible};d.prototype.de=function(){N(this.za);this.jf=!0;var a,b,c;a=0;for(b=this.Z.length;a<b;a++)c=this.Z[a],c.Ua&&(this.za.push(c),c.zd||(this.jf=!1))};d.prototype.Vn=function(a){var b,c,e;b=0;for(c=this.Z.length;b<c;b++)if(e=this.Z[b],e.name===a)return e;return null};var g=[],k=!0;d.prototype.Ep=function(){this.zt&&(this.pg=this.b.Nn[this.zt],this.pg.Rp());this.b.La=this;this.width=this.mz;this.height=this.lz;this.scrollX=this.b.ob/2;this.scrollY=
this.b.nb/2;var a,b,c,e,d,n,u;a=0;for(c=this.b.G.length;a<c;a++)if(b=this.b.G[a],!b.L)for(d=b.k,b=0,e=d.length;b<e;b++)if(n=d[b],n.u){var m=n.u.Cs;m>=this.ba.length&&(m=this.ba.length-1);n.u=this.ba[m];-1===n.u.k.indexOf(n)&&n.u.k.push(n);n.u.Zg=!0}if(!k)for(a=0,c=this.ba.length;a<c;++a)this.ba[a].k.sort(q);N(g);this.lw();a=0;for(c=this.ba.length;a<c;a++)n=this.ba[a],n.vw(),n.Vm();d=!1;if(!this.mh){for(u in this.Tf)if(this.Tf.hasOwnProperty(u)&&(b=this.b.ll(parseInt(u,10)))&&!b.L&&this.b.Qp(b)){e=
this.Tf[u];a=0;for(c=e.length;a<c;a++){n=null;if(b.Aa.Mf&&(n=this.kl(e[a].w.l),!n))continue;n=this.b.Df(b.sd,n,!1,0,0,!0);this.b.Hl(n,e[a]);d=!0;g.push(n)}N(e)}a=0;for(c=this.ba.length;a<c;a++)this.ba[a].k.sort(q),this.ba[a].Zg=!0}d&&(this.b.ac(),this.b.et());for(a=0;a<g.length;a++)if(n=g[a],n.type.Ub)for(c=n.Fi(),b=0,e=n.type.Qc.length;b<e;b++)u=n.type.Qc[b],n.type!==u&&(u.k.length>c?n.siblings.push(u.k[c]):u.sd&&(d=this.b.Df(u.sd,n.u,!0,n.x,n.y,!0),this.b.ac(),u.Tm(),n.siblings.push(d),g.push(d)));
a=0;for(c=this.Kf.length;a<c;a++)n=this.Kf[a],b=this.b.G[n[1]],b.Ub||this.b.Df(this.Kf[a],null,!0);this.b.oi=null;this.b.ac();if(this.b.Oa&&!this.b.jb)for(a=0,c=this.b.G.length;a<c;a++)u=this.b.G[a],!u.L&&u.k.length&&u.Ej&&u.Ej(this.b.Oa);if(this.b.Pi)Ba(this.b.Zk,g);else for(a=0,c=g.length;a<c;a++)n=g[a],this.b.trigger(Object.getPrototypeOf(n.type.Aa).n.$f,n);N(g);this.b.Pi||this.b.trigger(T.prototype.n.oq,null);this.mh=!1};d.prototype.uw=function(){var a,b,c,e,d;b=a=0;for(c=this.Kf.length;a<c;a++)e=
this.Kf[a],d=this.b.G[e[1]],d.global?d.Ub||this.b.Df(e,null,!0):(this.Kf[b]=e,b++);Aa(this.Kf,b)};d.prototype.$z=function(){this.b.Pi||this.b.trigger(T.prototype.n.gv,null);this.b.xo=!0;N(this.b.Ae.Oc);var a,b,c,e,d,g;if(!this.mh)for(a=0,b=this.ba.length;a<b;a++)for(this.ba[a].Up(),d=this.ba[a].k,c=0,e=d.length;c<e;c++)g=d[c],g.type.global||this.b.Qp(g.type)&&this.Pz(g);a=0;for(b=this.ba.length;a<b;a++){d=this.ba[a].k;c=0;for(e=d.length;c<e;c++)g=d[c],g.type.global||this.b.ge(g);this.b.ac();N(d);
this.ba[a].Zg=!0}a=0;for(b=this.b.G.length;a<b;a++)if(d=this.b.G[a],!(d.global||d.Aa.Mf||d.Aa.Fm||d.L)){c=0;for(e=d.k.length;c<e;c++)this.b.ge(d.k[c]);this.b.ac()}k=!1;this.b.xo=!1};new ua(0,0,0,0);d.prototype.Sc=function(a){var b,c=a,e=!1,d=!this.b.ad;d&&(this.b.Fl||(this.b.Fl=document.createElement("canvas"),b=this.b.Fl,b.width=this.b.T,b.height=this.b.S,this.b.Vr=b.getContext("2d"),e=!0),b=this.b.Fl,c=this.b.Vr,b.width!==this.b.T&&(b.width=this.b.T,e=!0),b.height!==this.b.S&&(b.height=this.b.S,
e=!0),e&&this.b.xm(c,this.b.Na));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.Mq&&!this.rr()&&c.clearRect(0,0,this.b.T,this.b.S);var k,g,e=0;for(k=this.ba.length;e<k;e++)g=this.ba[e],g.visible&&0<g.opacity&&11!==g.cc&&(g.k.length||!g.be)?g.Sc(c):g.Vm();d&&a.drawImage(b,0,0,this.b.width,this.b.height)};d.prototype.Gf=function(a){a.nt(!0);this.b.mb||(this.b.mb=a.Rc(this.b.T,this.b.S,this.b.Na));if(this.b.mb.gg!==this.b.T||this.b.mb.fg!==this.b.S)a.deleteTexture(this.b.mb),this.b.mb=
a.Rc(this.b.T,this.b.S,this.b.Na);a.Bd(this.b.mb);this.b.ad||a.hf(this.b.T,this.b.S);var b,c;for(b=this.ba.length-1;0<=b;--b)c=this.ba[b],c.visible&&1===c.opacity&&c.jf&&0===c.cc&&(c.k.length||!c.be)?c.Gf(a):c.Vm();a.nt(!1)};d.prototype.Nb=function(a){var b=0<this.za.length||this.b.ci||!this.b.ad||this.b.Ja;if(b){this.b.mb||(this.b.mb=a.Rc(this.b.T,this.b.S,this.b.Na));if(this.b.mb.gg!==this.b.T||this.b.mb.fg!==this.b.S)a.deleteTexture(this.b.mb),this.b.mb=a.Rc(this.b.T,this.b.S,this.b.Na);a.Bd(this.b.mb);
this.b.ad||a.hf(this.b.T,this.b.S)}else this.b.mb&&(a.Bd(null),a.deleteTexture(this.b.mb),this.b.mb=null);this.b.Mq&&!this.rr()&&a.clear(0,0,0,0);var c,e,d;c=0;for(e=this.ba.length;c<e;c++)d=this.ba[c],d.visible&&0<d.opacity&&(d.k.length||!d.be)?d.Nb(a):d.Vm();b&&(0===this.za.length||1===this.za.length&&this.b.ad?(1===this.za.length?(b=this.za[0].index,a.Mc(this.za[0].rb),a.Wh(null,1/this.b.T,1/this.b.S,0,0,1,1,this.scale,this.q,0,0,this.b.T/2,this.b.S/2,this.b.kb.O,this.Ya[b]),a.km(this.za[0].rb)&&
(this.b.ca=!0)):a.Mc(0),this.b.ad||a.hf(this.b.width,this.b.height),a.Bd(null),a.mt(!1),a.gf(1),a.wc(this.b.mb),a.kt(),a.Ad(),a.kd(),b=this.b.width/2,c=this.b.height/2,a.Sh(-b,c,b,c,b,-c,-b,-c),a.wc(null),a.mt(!0)):this.np(a,null,null,null))};d.prototype.Di=function(){return 0<this.za.length||this.b.ci||!this.b.ad||this.b.Ja?this.b.mb:null};d.prototype.nr=function(){var a=this.ba[0].Dc(),b,c,e;b=1;for(c=this.ba.length;b<c;b++)e=this.ba[b],(0!==e.xd||0!==e.yd)&&e.Dc()<a&&(a=e.Dc());return a};d.prototype.up=
function(a){if(!this.Xt){var b=1/this.nr()*this.b.T/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ca=!0)};d.prototype.vp=function(a){if(!this.Xt){var b=1/this.nr()*this.b.S/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ca=!0)};d.prototype.lw=function(){this.up(this.scrollX);this.vp(this.scrollY)};d.prototype.np=function(a,b,c,e){var d=c?c.za:b?b.za:this.za,k=1,g=0,m=0,l=0,y=this.b.T,n=this.b.S;c?(k=c.u.Dc(),g=c.u.yb(),
m=c.u.xa,l=c.u.ya,y=c.u.Fa,n=c.u.Ea):b&&(k=b.Dc(),g=b.yb(),m=b.xa,l=b.ya,y=b.Fa,n=b.Ea);var p=this.b.Tn,q,t,x,w,I=0,C=1,Y,W,A=this.b.T,Q=this.b.S,X=A/2,R=Q/2,D=b?b.Uf:this.Uf,v=b?b.mp:this.mp,B=0,E=0,L=0,K=0,P=A,V=A,H=Q,ca=Q,Z=x=0;w=c?c.u.yb():0;if(c){q=0;for(t=d.length;q<t;q++)x+=a.ey(d[q].rb),Z+=a.fy(d[q].rb);K=c.Ma;B=b.Sa(K.left,K.top,!0,!0);L=b.Sa(K.left,K.top,!1,!0);P=b.Sa(K.right,K.bottom,!0,!0);H=b.Sa(K.right,K.bottom,!1,!0);0!==w&&(q=b.Sa(K.right,K.top,!0,!0),t=b.Sa(K.right,K.top,!1,!0),E=
b.Sa(K.left,K.bottom,!0,!0),K=b.Sa(K.left,K.bottom,!1,!0),w=Math.min(B,P,q,E),P=Math.max(B,P,q,E),B=w,w=Math.min(L,H,t,K),H=Math.max(L,H,t,K),L=w);B-=x;L-=Z;P+=x;H+=Z;v.left=B/A;v.top=1-L/Q;v.right=P/A;v.bottom=1-H/Q;E=B=z(B);K=L=z(L);V=P=sa(P);ca=H=sa(H);E-=x;K-=Z;V+=x;ca+=Z;0>B&&(B=0);0>L&&(L=0);P>A&&(P=A);H>Q&&(H=Q);0>E&&(E=0);0>K&&(K=0);V>A&&(V=A);ca>Q&&(ca=Q);D.left=B/A;D.top=1-L/Q;D.right=P/A;D.bottom=1-H/Q}else D.left=v.left=0,D.top=v.top=0,D.right=v.right=1,D.bottom=v.bottom=1;Z=c&&(a.Fj(d[0].rb)||
0!==x||0!==Z||1!==c.opacity||c.type.Aa.xs)||b&&!c&&1!==b.opacity;a.kt();if(Z){p[I]||(p[I]=a.Rc(A,Q,this.b.Na));if(p[I].gg!==A||p[I].fg!==Q)a.deleteTexture(p[I]),p[I]=a.Rc(A,Q,this.b.Na);a.Mc(0);a.Bd(p[I]);W=ca-K;a.clearRect(E,Q-K-W,V-E,W);c?c.Nb(a):(a.wc(this.b.Cb),a.gf(b.opacity),a.Ad(),a.translate(-X,-R),a.kd(),a.Xd(B,H,P,H,P,L,B,L,D));v.left=v.top=0;v.right=v.bottom=1;c&&(w=D.top,D.top=D.bottom,D.bottom=w);I=1;C=0}a.gf(1);x=d.length-1;var va=a.jp(d[x].rb)||!b&&!c&&!this.b.ad;q=w=0;for(t=d.length;q<
t;q++){p[I]||(p[I]=a.Rc(A,Q,this.b.Na));if(p[I].gg!==A||p[I].fg!==Q)a.deleteTexture(p[I]),p[I]=a.Rc(A,Q,this.b.Na);a.Mc(d[q].rb);w=d[q].index;a.km(d[q].rb)&&(this.b.ca=!0);0!=q||Z?(a.Wh(e,1/A,1/Q,v.left,v.top,v.right,v.bottom,k,g,m,l,(m+y)/2,(l+n)/2,this.b.kb.O,c?c.Ya[w]:b?b.Ya[w]:this.Ya[w]),a.wc(null),q!==x||va?(a.Bd(p[I]),W=ca-K,Y=Q-K-W,a.clearRect(E,Y,V-E,W)):(c?a.Wf(c.mc,c.kc):b&&a.Wf(b.mc,b.kc),a.Bd(e)),a.wc(p[C]),a.Ad(),a.translate(-X,-R),a.kd(),a.Xd(B,H,P,H,P,L,B,L,D),q!==x||va||a.wc(null)):
(a.Bd(p[I]),W=ca-K,Y=Q-K-W,a.clearRect(E,Y,V-E,W),c?(c.Mb&&c.Mb.M?(Y=c.Mb.M,C=1/Y.width,Y=1/Y.height):(C=1/c.width,Y=1/c.height),a.Wh(e,C,Y,v.left,v.top,v.right,v.bottom,k,g,m,l,(m+y)/2,(l+n)/2,this.b.kb.O,c.Ya[w]),c.Nb(a)):(a.Wh(e,1/A,1/Q,0,0,1,1,k,g,m,l,(m+y)/2,(l+n)/2,this.b.kb.O,b?b.Ya[w]:this.Ya[w]),a.wc(b?this.b.Cb:this.b.mb),a.Ad(),a.translate(-X,-R),a.kd(),a.Xd(B,H,P,H,P,L,B,L,D)),v.left=v.top=0,v.right=v.bottom=1,c&&!va&&(w=H,H=L,L=w));I=0===I?1:0;C=0===I?1:0}va&&(a.Mc(0),c?a.Wf(c.mc,c.kc):
b?a.Wf(b.mc,b.kc):this.b.ad||(a.hf(this.b.width,this.b.height),X=this.b.width/2,R=this.b.height/2,L=B=0,P=this.b.width,H=this.b.height),a.Bd(e),a.wc(p[C]),a.Ad(),a.translate(-X,-R),a.kd(),c&&1===d.length&&!Z?a.Xd(B,L,P,L,P,H,B,H,D):a.Xd(B,H,P,H,P,L,B,L,D),a.wc(null))};d.prototype.kl=function(a){var b,c;b=0;for(c=this.ba.length;b<c;b++)if(this.ba[b].ma===a)return this.ba[b];return null};d.prototype.Ta=function(){var a,b,c,e={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.q,w:this.width,h:this.height,
fv:this.mh,persist:this.Tf,fx:[],layers:{}};a=0;for(b=this.Z.length;a<b;a++)c=this.Z[a],e.fx.push({name:c.name,active:c.Ua,params:this.Ya[c.index]});a=0;for(b=this.ba.length;a<b;a++)c=this.ba[a],e.layers[c.ma.toString()]=c.Ta();return e};d.prototype.bb=function(a){var b,c,e,d;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.q=a.a;this.width=a.w;this.height=a.h;this.Tf=a.persist;"undefined"!==typeof a.fv&&(this.mh=a.fv);var k=a.fx;b=0;for(c=k.length;b<c;b++)if(e=this.Vn(k[b].name))e.Ua=k[b].active,
this.Ya[e.index]=k[b].params;this.de();b=a.layers;for(d in b)b.hasOwnProperty(d)&&(a=this.kl(parseInt(d,10)))&&a.bb(b[d])};Ib=d;p.prototype.de=function(){N(this.za);this.jf=!0;var a,b,c;a=0;for(b=this.Z.length;a<b;a++)c=this.Z[a],c.Ua&&(this.za.push(c),c.zd||(this.jf=!1))};p.prototype.Vn=function(a){var b,c,e;b=0;for(c=this.Z.length;b<c;b++)if(e=this.Z[b],e.name===a)return e;return null};p.prototype.vw=function(){var a,b,c,e,d,k;b=a=0;for(c=this.cd.length;a<c;a++){e=this.cd[a];d=this.b.G[e[1]];k=
this.b.Qp(d);d=!0;if(!k||this.lb.mh){e=this.b.Df(e,this,!0);if(!e)continue;g.push(e);e.type.global&&(d=!1,this.si.push(e.uid))}d&&(this.cd[b]=this.cd[a],b++)}this.cd.length=b;this.b.ac();!this.b.D&&this.Z.length&&(this.cc=this.Xw);this.pi=gb(this.cc);this.b.J&&hb(this,this.cc,this.b.J);this.Yd=!0};p.prototype.Th=function(a,b){var c=Da(this.k,a);0>c||(b&&this.ld&&a.Jc&&a.Jc.right>=a.Jc.left&&(a.Ia(),this.Zb.update(a,a.Jc,null),a.Jc.set(0,0,-1,-1)),c===this.k.length-1?this.k.pop():(za(this.k,c),this.Oj(c)),
this.Yd=!0)};p.prototype.li=function(a,b){a.ee=this.k.length;this.k.push(a);b&&this.ld&&a.Jc&&a.C();this.Yd=!0};p.prototype.wz=function(a){this.k.unshift(a);this.Oj(0)};p.prototype.bz=function(a,b,c){var e=a.ne();b=b.ne();za(this.k,e);e<b&&b--;c&&b++;b===this.k.length?this.k.push(a):this.k.splice(b,0,a);this.Oj(e<b?e:b)};p.prototype.Oj=function(a){-1===this.tf?this.tf=a:a<this.tf&&(this.tf=a);this.Yd=this.Zg=!0};p.prototype.Up=function(){if(this.Zg){-1===this.tf&&(this.tf=0);var a,b,c;if(this.ld)for(a=
this.tf,b=this.k.length;a<b;++a)c=this.k[a],c.ee=a,this.Zb.Yy(c.Jc);else for(a=this.tf,b=this.k.length;a<b;++a)this.k[a].ee=a;this.Zg=!1;this.tf=-1}};p.prototype.Dc=function(a){return this.ay()*(this.b.ad||a?this.b.mi:1)};p.prototype.ay=function(){return(this.scale*this.lb.scale-1)*this.fe+1};p.prototype.yb=function(){return this.Ie?0:Ja(this.lb.q+this.q)};var c=[],b=[],e=[];p.prototype.$n=function(){this.Up();this.Zb.nm(this.xa,this.ya,this.Fa,this.Ea,e);if(!e.length)return t();if(1===e.length){var a=
t();Ba(a,e[0]);N(e);return a}for(var c=!0;1<e.length;){for(var a=e,d=void 0,h=void 0,k=void 0,g=void 0,u=void 0,d=0,h=a.length;d<h-1;d+=2){var k=a[d],g=a[d+1],u=t(),m=k,l=g,y=u,p=0,q=0,O=0,J=m.length,x=l.length,w=void 0,I=void 0;for(y.length=J+x;p<J&&q<x;++O)w=m[p],I=l[q],w.ee<I.ee?(y[O]=w,++p):(y[O]=I,++q);for(;p<J;++p,++O)y[O]=m[p];for(;q<x;++q,++O)y[O]=l[q];c||(n(k),n(g));b.push(u)}1===h%2&&(c?(k=t(),Ba(k,a[h-1]),b.push(k)):b.push(a[h-1]));Ba(a,b);N(b);c=!1}a=e[0];N(e);return a};p.prototype.Sc=
function(a){this.ve=this.fl||1!==this.opacity||0!==this.cc;var b=this.b.canvas,c=a,e=!1;this.ve&&(this.b.El||(this.b.El=document.createElement("canvas"),b=this.b.El,b.width=this.b.T,b.height=this.b.S,this.b.Ur=b.getContext("2d"),e=!0),b=this.b.El,c=this.b.Ur,b.width!==this.b.T&&(b.width=this.b.T,e=!0),b.height!==this.b.S&&(b.height=this.b.S,e=!0),e&&this.b.xm(c,this.b.Na),this.be&&c.clearRect(0,0,this.b.T,this.b.S));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.be||(c.fillStyle="rgb("+
this.Ld[0]+","+this.Ld[1]+","+this.Ld[2]+")",c.fillRect(0,0,this.b.T,this.b.S));c.save();this.Ie=!0;var e=this.qc(0,0,!0,!0),d=this.qc(0,0,!1,!0);this.Ie=!1;this.b.Ic&&(e=Math.round(e),d=Math.round(d));this.qm(e,d,c);var k=this.Dc();c.scale(k,k);c.translate(-e,-d);this.ld?(this.Rb.left=this.Zb.zc(this.xa),this.Rb.top=this.Zb.Ac(this.ya),this.Rb.right=this.Zb.zc(this.Fa),this.Rb.bottom=this.Zb.Ac(this.Ea),this.Yd||!this.Rb.wi(this.Dh)?(n(this.Ue),e=this.$n(),this.Yd=!1,this.Dh.qi(this.Rb)):e=this.Ue):
e=this.k;for(var g,m=null,d=0,k=e.length;d<k;++d)g=e[d],g!==m&&(this.Sw(g,c),m=g);this.ld&&(this.Ue=e);c.restore();this.ve&&(a.globalCompositeOperation=this.pi,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};p.prototype.Sw=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ia();var c=a.Ma;c.right<this.xa||c.bottom<this.ya||c.left>this.Fa||c.top>this.Ea||(b.globalCompositeOperation=a.pi,a.Sc(b))}};p.prototype.Vm=function(){this.Ie=!0;var a=this.qc(0,0,!0,!0),b=this.qc(0,0,!1,!0);this.Ie=!1;this.b.Ic&&
(a=Math.round(a),b=Math.round(b));this.qm(a,b,null)};p.prototype.qm=function(a,b,c){var e=this.Dc();this.xa=a;this.ya=b;this.Fa=a+1/e*this.b.T;this.Ea=b+1/e*this.b.S;this.xa>this.Fa&&(a=this.xa,this.xa=this.Fa,this.Fa=a);this.ya>this.Ea&&(a=this.ya,this.ya=this.Ea,this.Ea=a);a=this.yb();0!==a&&(c&&(c.translate(this.b.T/2,this.b.S/2),c.rotate(-a),c.translate(this.b.T/-2,this.b.S/-2)),this.of.set(this.xa,this.ya,this.Fa,this.Ea),this.of.offset((this.xa+this.Fa)/-2,(this.ya+this.Ea)/-2),this.St.xt(this.of,
a),this.St.Fq(this.of),this.of.offset((this.xa+this.Fa)/2,(this.ya+this.Ea)/2),this.xa=this.of.left,this.ya=this.of.top,this.Fa=this.of.right,this.Ea=this.of.bottom)};p.prototype.Gf=function(a){if(this.ve=this.fl){this.b.Cb||(this.b.Cb=a.Rc(this.b.T,this.b.S,this.b.Na));if(this.b.Cb.gg!==this.b.T||this.b.Cb.fg!==this.b.S)a.deleteTexture(this.b.Cb),this.b.Cb=a.Rc(this.b.T,this.b.S,this.b.Na);a.Bd(this.b.Cb)}this.Ie=!0;var b=this.qc(0,0,!0,!0),c=this.qc(0,0,!1,!0);this.Ie=!1;this.b.Ic&&(b=Math.round(b),
c=Math.round(c));this.qm(b,c,null);b=this.Dc();a.Ad();a.scale(b,b);a.rm(-this.yb());a.translate((this.xa+this.Fa)/-2,(this.ya+this.Ea)/-2);a.kd();this.ld?(this.Rb.left=this.Zb.zc(this.xa),this.Rb.top=this.Zb.Ac(this.ya),this.Rb.right=this.Zb.zc(this.Fa),this.Rb.bottom=this.Zb.Ac(this.Ea),this.Yd||!this.Rb.wi(this.Dh)?(n(this.Ue),b=this.$n(),this.Yd=!1,this.Dh.qi(this.Rb)):b=this.Ue):b=this.k;for(var e,d=null,c=b.length-1;0<=c;--c)e=b[c],e!==d&&(this.Uw(b[c],a),d=e);this.ld&&(this.Ue=b);this.be||(this.Bn=
this.b.ng++,a.ym(this.Bn),a.lt(1,1,1),a.dr(),a.Hz())};p.prototype.Nb=function(a){var b=0,c=0;if(this.ve=this.fl||1!==this.opacity||0<this.za.length||0!==this.cc){this.b.Cb||(this.b.Cb=a.Rc(this.b.T,this.b.S,this.b.Na));if(this.b.Cb.gg!==this.b.T||this.b.Cb.fg!==this.b.S)a.deleteTexture(this.b.Cb),this.b.Cb=a.Rc(this.b.T,this.b.S,this.b.Na);a.Bd(this.b.Cb);this.be&&a.clear(0,0,0,0)}this.be||(this.b.Ja?(a.ym(this.Bn),a.lt(this.Ld[0]/255,this.Ld[1]/255,this.Ld[2]/255),a.dr(),a.Wz()):a.clear(this.Ld[0]/
255,this.Ld[1]/255,this.Ld[2]/255,1));this.Ie=!0;var e=this.qc(0,0,!0,!0),b=this.qc(0,0,!1,!0);this.Ie=!1;this.b.Ic&&(e=Math.round(e),b=Math.round(b));this.qm(e,b,null);e=this.Dc();a.Ad();a.scale(e,e);a.rm(-this.yb());a.translate((this.xa+this.Fa)/-2,(this.ya+this.Ea)/-2);a.kd();this.ld?(this.Rb.left=this.Zb.zc(this.xa),this.Rb.top=this.Zb.Ac(this.ya),this.Rb.right=this.Zb.zc(this.Fa),this.Rb.bottom=this.Zb.Ac(this.Ea),this.Yd||!this.Rb.wi(this.Dh)?(n(this.Ue),b=this.$n(),this.Yd=!1,this.Dh.qi(this.Rb)):
b=this.Ue):b=this.k;var d,k,g=null,c=0;for(d=b.length;c<d;++c)k=b[c],k!==g&&(this.Tw(b[c],a),g=k);this.ld&&(this.Ue=b);this.ve&&(b=this.za.length?this.za[0].rb:0,c=this.za.length?this.za[0].index:0,0===this.za.length||1===this.za.length&&!a.jp(b)&&1===this.opacity?(1===this.za.length?(a.Mc(b),a.Wh(this.lb.Di(),1/this.b.T,1/this.b.S,0,0,1,1,e,this.yb(),this.xa,this.ya,(this.xa+this.Fa)/2,(this.ya+this.Ea)/2,this.b.kb.O,this.Ya[c]),a.km(b)&&(this.b.ca=!0)):a.Mc(0),a.Bd(this.lb.Di()),a.gf(this.opacity),
a.wc(this.b.Cb),a.Wf(this.mc,this.kc),a.Ad(),a.kd(),e=this.b.T/2,b=this.b.S/2,a.Sh(-e,b,e,b,e,-b,-e,-b),a.wc(null)):this.lb.np(a,this,null,this.lb.Di()))};p.prototype.Tw=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ia();var c=a.Ma;c.right<this.xa||c.bottom<this.ya||c.left>this.Fa||c.top>this.Ea||(b.ym(a.ng),a.cu?this.Vw(a,b):(b.Mc(0),b.Wf(a.mc,a.kc),a.Nb(b)))}};p.prototype.Uw=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ia();var c=a.Ma;c.right<this.xa||c.bottom<this.ya||c.left>
this.Fa||c.top>this.Ea||(a.ng=this.b.ng++,0===a.cc&&1===a.opacity&&a.jf&&a.Gf&&(b.ym(a.ng),a.Gf(b)))}};p.prototype.Vw=function(a,b){var c=a.za[0].rb,e=a.za[0].index,d=this.Dc();if(1!==a.za.length||b.jp(c)||b.yz(c)||(a.q||a.u.yb())&&b.Fj(c)||1!==a.opacity||a.type.Aa.xs)this.lb.np(b,this,a,this.ve?this.b.Cb:this.lb.Di()),b.Ad(),b.scale(d,d),b.rm(-this.yb()),b.translate((this.xa+this.Fa)/-2,(this.ya+this.Ea)/-2),b.kd();else{b.Mc(c);b.Wf(a.mc,a.kc);b.km(c)&&(this.b.ca=!0);var k=0,g=0,m=0,l=0;b.Fj(c)&&
(l=a.Ma,k=this.Sa(l.left,l.top,!0,!0),g=this.Sa(l.left,l.top,!1,!0),m=this.Sa(l.right,l.bottom,!0,!0),l=this.Sa(l.right,l.bottom,!1,!0),k=k/windowWidth,g=1-g/windowHeight,m=m/windowWidth,l=1-l/windowHeight);var y;a.Mb&&a.Mb.M?(y=a.Mb.M,c=1/y.width,y=1/y.height):(c=1/a.width,y=1/a.height);b.Wh(this.ve?this.b.Cb:this.lb.Di(),c,y,k,g,m,l,d,this.yb(),this.xa,this.ya,(this.xa+this.Fa)/2,(this.ya+this.Ea)/2,this.b.kb.O,a.Ya[e]);a.Nb(b)}};p.prototype.qc=function(a,b,c,e){var d=this.b.devicePixelRatio;this.b.Bg&&
(a*=d,b*=d);var d=this.b.Rs,k=this.b.Ss,d=(this.lb.scrollX-d)*this.xd+d,k=(this.lb.scrollY-k)*this.yd+k,g=d,m=k,l=1/this.Dc(!e);e?(g-=this.b.T*l/2,m-=this.b.S*l/2):(g-=this.b.width*l/2,m-=this.b.height*l/2);g+=a*l;m+=b*l;b=this.yb();0!==b&&(g-=d,m-=k,a=Math.cos(b),b=Math.sin(b),e=g*a-m*b,m=m*a+g*b,g=e+d,m+=k);return c?g:m};p.prototype.Sa=function(a,b,c,e){var d=this.b.Rs,k=this.b.Ss,g=(this.lb.scrollX-d)*this.xd+d,m=(this.lb.scrollY-k)*this.yd+k,k=g,d=m,l=this.yb();if(0!==l){a-=g;b-=m;var y=Math.cos(-l),
l=Math.sin(-l),n=a*y-b*l;b=b*y+a*l;a=n+g;b+=m}g=1/this.Dc(!e);e?(k-=this.b.T*g/2,d-=this.b.S*g/2):(k-=this.b.width*g/2,d-=this.b.height*g/2);k=(a-k)/g;d=(b-d)/g;a=this.b.devicePixelRatio;this.b.Bg&&!e&&(k/=a,d/=a);return c?k:d};p.prototype.Ta=function(){var a,b,c,e={s:this.scale,a:this.q,vl:this.xa,vt:this.ya,vr:this.Fa,vb:this.Ea,v:this.visible,bc:this.Ld,t:this.be,px:this.xd,py:this.yd,o:this.opacity,zr:this.fe,fx:[],cg:this.si,instances:[]};a=0;for(b=this.Z.length;a<b;a++)c=this.Z[a],e.fx.push({name:c.name,
active:c.Ua,params:this.Ya[c.index]});return e};p.prototype.bb=function(a){var b,c,e;this.scale=a.s;this.q=a.a;this.xa=a.vl;this.ya=a.vt;this.Fa=a.vr;this.Ea=a.vb;this.visible=a.v;this.Ld=a.bc;this.be=a.t;this.xd=a.px;this.yd=a.py;this.opacity=a.o;this.fe=a.zr;this.si=a.cg||[];Ba(this.cd,this.Ft);var d=new ea;b=0;for(e=this.si.length;b<e;++b)d.add(this.si[b]);c=b=0;for(e=this.cd.length;b<e;++b)d.contains(this.cd[b][2])||(this.cd[c]=this.cd[b],++c);Aa(this.cd,c);c=a.fx;b=0;for(e=c.length;b<e;b++)if(a=
this.Vn(c[b].name))a.Ua=c[b].active,this.Ya[a.index]=c[b].params;this.de();this.k.sort(q);this.Zg=!0};Wb=p})();
(function(){function d(a,b){var c,e=a.length;switch(e){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<e;c++)if(a[c]!==b[c])return!1;return!0}}function q(a,b){return a.index-b.index}function p(a){var b,c,e,f;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(q);a.length>=M.length&&(M.length=a.length+1);M[a.length]||(M[a.length]=[]);f=M[a.length];b=0;for(c=f.length;b<c;b++)if(e=f[b],d(a,e))return e;f.push(a);return a}
function t(a,b){this.b=a;this.Vt={};this.Vq={};this.ko=!1;this.ur=new ea;this.In=[];this.qn=[];this.name=b[0];var c=b[1];this.Hf=[];var e,f;e=0;for(f=c.length;e<f;e++)this.Br(c[e],null,this.Hf)}function n(a){this.type=a;this.k=[];this.na=[];this.ka=!0}function g(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ta=[];this.Xf=[];this.sr=this.Pm=this.Lp=this.po=this.group=this.Cp=!1;this.wb=[];this.md=[];this.Dd=[];this.Gi="";this.oh=this.po=this.group=!1;this.Fk=null;c[1]&&(this.Gi=c[1][1].toLowerCase(),
this.group=!0,this.po=!!c[1][0],this.Fk=[],this.oh=this.po,this.b.dh.push(this),this.b.Hi[this.Gi]=this);this.wd=c[2];this.ma=c[4];this.group||(this.b.Eq[this.ma.toString()]=this);var e=c[5];a=0;for(b=e.length;a<b;a++){var f=new Xb(this,e[a]);f.index=a;this.wb.push(f);this.yq(f.type)}e=c[6];a=0;for(b=e.length;a<b;a++)f=new Yb(this,e[a]),f.index=a,this.md.push(f);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Br(c[a],this,this.Dd);this.Al=!1;this.wb.length&&(this.Al=null==this.wb[0].type&&
this.wb[0].Sb==T.prototype.n.fq)}function k(a,b){var c,e,f;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Ub))for(c=0,e=a.Qc.length;c<e;c++)f=a.Qc[c],a!==f&&-1===b.indexOf(f)&&b.push(f)}function c(a,b){this.$c=a;this.sheet=a.sheet;this.b=a.b;this.da=[];this.Za=[];this.N={};this.index=-1;this.ji=!1;this.Sb=this.b.uf(b[1]);this.trigger=0<b[3];this.Uq=2===b[3];this.pe=b[4];this.Ni=b[5];this.Uy=b[6];this.ma=b[7];this.b.Bf[this.ma.toString()]=this;-1===b[0]?(this.type=null,this.qb=this.rp,this.dg=null,this.Nd=
-1):(this.type=this.b.G[b[0]],this.qb=this.Uy?this.Nz:this.qp,b[2]?(this.dg=this.type.jl(b[2]),this.Nd=this.type.Un(b[2])):(this.dg=null,this.Nd=-1),this.$c.parent&&this.$c.parent.zm());this.Uq&&(this.qb=this.Oz);if(10===b.length){var c,e,f=b[9];c=0;for(e=f.length;c<e;c++){var d=new Zb(this,f[c]);this.da.push(d)}this.Za.length=f.length}}function b(a,b){this.$c=a;this.sheet=a.sheet;this.b=a.b;this.da=[];this.Za=[];this.N={};this.index=-1;this.ji=!1;this.Sb=this.b.uf(b[1]);-1===b[0]?(this.type=null,
this.qb=this.rp,this.dg=null,this.Nd=-1):(this.type=this.b.G[b[0]],this.qb=this.qp,b[2]?(this.dg=this.type.jl(b[2]),this.Nd=this.type.Un(b[2])):(this.dg=null,this.Nd=-1));this.ma=b[3];this.b.wf[this.ma.toString()]=this;if(6===b.length){var c,e,f=b[5];c=0;for(e=f.length;c<e;c++){var d=new Zb(this,f[c]);this.da.push(d)}this.Za.length=f.length}}function e(){u++;G.length===u&&G.push(new $b);return G[u]}function a(a,b){this.Pa=a;this.$c=a.$c;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.le=null;this.kf=
0;this.get=null;this.Nq=0;this.lb=null;this.key=0;this.object=null;this.index=0;this.ek=this.Ug=this.ek=this.Ug=this.Yq=this.qg=this.fk=null;this.Fd=!1;var c,e,f;switch(b[0]){case 0:case 7:this.le=new ac(this,b[1]);this.kf=0;this.get=this.ny;break;case 1:this.le=new ac(this,b[1]);this.kf=0;this.get=this.oy;break;case 5:this.le=new ac(this,b[1]);this.kf=0;this.get=this.uy;break;case 3:case 8:this.Nq=b[1];this.get=this.ky;break;case 6:this.lb=this.b.Jo[b[1]];this.get=this.vy;break;case 9:this.key=b[1];
this.get=this.ty;break;case 4:this.object=this.b.G[b[1]];this.get=this.wy;this.$c.yq(this.object);this.Pa instanceof Yb?this.$c.zm():this.$c.parent&&this.$c.parent.zm();break;case 10:this.index=b[1];a.type&&a.type.L?(this.get=this.qy,this.Fd=!0):this.get=this.ry;break;case 11:this.fk=b[1];this.qg=null;this.get=this.my;break;case 2:case 12:this.Yq=b[1];this.get=this.jy;break;case 13:for(this.get=this.xy,this.Ug=[],this.ek=[],c=1,e=b.length;c<e;c++)f=new Zb(this.Pa,b[c]),this.Ug.push(f),this.ek.push(0)}}
function f(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ta=[];this.name=c[1];this.Xm=c[2];this.rl=c[3];this.Wi=!!c[4];this.zl=!!c[5];this.ma=c[6];this.b.ei[this.ma.toString()]=this;this.data=this.rl;this.parent?(this.Jg=this.Wi||this.zl?-1:this.b.Yz++,this.b.gw.push(this)):(this.Jg=-1,this.b.nn.push(this))}function r(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ta=[];this.Ki=null;this.Ey=c[1];this.Ua=!0}function h(){this.Ht=[];this.reset(null)}var M=[];t.prototype.toString=function(){return this.name};
t.prototype.Br=function(a,b,c){switch(a[0]){case 0:a=new bc(this,b,a);if(a.wd)for(c.push(a),c=0,b=a.wb.length;c<b;c++)a.wb[c].trigger&&this.Cr(a,c);else a.Nr()?this.Cr(a,0):c.push(a);break;case 1:a=new Tb(this,b,a);c.push(a);break;case 2:a=new cc(this,b,a),c.push(a)}};t.prototype.eb=function(){var a,b;a=0;for(b=this.Hf.length;a<b;a++)this.Hf[a].eb(a<b-1&&this.Hf[a+1].Al)};t.prototype.Rp=function(){N(this.In);N(this.qn);this.xq(this);N(this.qn)};t.prototype.xq=function(a){var b,c,e,f,d=a.In,h=a.qn,
k=this.ur.qf();b=0;for(c=k.length;b<c;++b)e=k[b],f=e.Ki,!e.Ua||a===f||-1<h.indexOf(f)||(h.push(f),f.xq(a),d.push(f))};t.prototype.qb=function(a){this.b.mB||(this.ko=!0,a||(this.b.Ao=!0));var b,c;b=0;for(c=this.Hf.length;b<c;b++){var e=this.Hf[b];e.qb();this.b.An(e.ta);this.b.Jf&&this.b.ac()}a||(this.b.Ao=!1)};t.prototype.Cr=function(a,b){a.wd||this.b.Sm.push(a);var c,e,f=a.wb[b],d;f.type?d=f.type.name:d="system";var h=(c=f.Uq)?this.Vq:this.Vt;h[d]||(h[d]=[]);d=h[d];h=f.Sb;if(c){if(f.da.length&&(f=
f.da[0],1===f.type&&2===f.le.type)){f=f.le.value.toLowerCase();c=0;for(e=d.length;c<e;c++)if(d[c].method==h){c=d[c].xi;c[f]?c[f].push([a,b]):c[f]=[[a,b]];return}c={};c[f]=[[a,b]];d.push({method:h,xi:c})}}else{c=0;for(e=d.length;c<e;c++)if(d[c].method==h){d[c].xi.push([a,b]);return}U&&h===U.prototype.n.bh?d.unshift({method:h,xi:[[a,b]]}):d.push({method:h,xi:[[a,b]]})}};Jb=t;n.prototype.jo=function(){return this.ka?this.type.k.length:this.k.length};n.prototype.Tc=function(){return this.ka?this.type.k:
this.k};n.prototype.Cj=function(a){a&&(a.b.ib().fb.wd?(this.ka&&(N(this.k),Ba(this.na,a.type.k),this.ka=!1),a=this.na.indexOf(a),-1!==a&&(this.k.push(this.na[a]),this.na.splice(a,1))):(this.ka=!1,N(this.k),this.k[0]=a))};nb=n;window._c2hh_="17C7BA6126A39ACC5969FD9A3F3ADBED1B361E30";g.prototype.eb=function(a){var b,c=this.parent;if(this.group)for(this.Pm=!0;c;){if(!c.group){this.Pm=!1;break}c=c.parent}this.Lp=!this.Nr()&&(!this.parent||this.parent.group&&this.parent.Pm);this.sr=!!a;this.Xf=this.ta.slice(0);
for(c=this.parent;c;){a=0;for(b=c.ta.length;a<b;a++)this.dw(c.ta[a]);c=c.parent}this.ta=p(this.ta);this.Xf=p(this.Xf);a=0;for(b=this.wb.length;a<b;a++)this.wb[a].eb();a=0;for(b=this.md.length;a<b;a++)this.md[a].eb();a=0;for(b=this.Dd.length;a<b;a++)this.Dd[a].eb(a<b-1&&this.Dd[a+1].Al)};g.prototype.Sz=function(a){if(this.oh!==!!a){this.oh=!!a;var b;a=0;for(b=this.Fk.length;a<b;++a)this.Fk[a].Zt();0<b&&this.b.La.pg&&this.b.La.pg.Rp()}};g.prototype.yq=function(a){k(a,this.ta)};g.prototype.dw=function(a){k(a,
this.Xf)};g.prototype.zm=function(){this.Cp=!0;this.parent&&this.parent.zm()};g.prototype.Nr=function(){return this.wb.length?this.wb[0].trigger:!1};g.prototype.qb=function(){var a,b,c=!1,e=this.b,f=this.b.ib();f.fb=this;var d=this.wb;this.Al||(f.Kn=!1);if(this.wd){0===d.length&&(c=!0);f.ub=0;for(a=d.length;f.ub<a;f.ub++)b=d[f.ub],b.trigger||(b=b.qb())&&(c=!0);(f.Fg=c)&&this.tm()}else{f.ub=0;for(a=d.length;f.ub<a;f.ub++)if(b=d[f.ub].qb(),!b){f.Fg=!1;this.Lp&&e.Jf&&e.ac();return}f.Fg=!0;this.tm()}this.Zw(f)};
g.prototype.Zw=function(a){a.Fg&&this.sr&&(a.Kn=!0);this.Lp&&this.b.Jf&&this.b.ac()};g.prototype.Lz=function(a){this.b.ib().fb=this;this.wb[a].qb()&&(this.tm(),this.b.ib().Fg=!0)};g.prototype.tm=function(){var a=this.b.ib(),b;a.Bc=0;for(b=this.md.length;a.Bc<b;a.Bc++)if(this.md[a.Bc].qb())return;this.jt()};g.prototype.Jz=function(){var a=this.b.ib(),b;for(b=this.md.length;a.Bc<b;a.Bc++)if(this.md[a.Bc].qb())return;this.jt()};g.prototype.jt=function(){if(this.Dd.length){var a,b,c,e,f=this.Dd.length-
1;this.b.lm(this);if(this.Cp)for(a=0,b=this.Dd.length;a<b;a++)c=this.Dd[a],(e=!this.Pm||!this.group&&a<f)&&this.b.Pg(c.ta),c.qb(),e?this.b.ue(c.ta):this.b.An(c.ta);else for(a=0,b=this.Dd.length;a<b;a++)this.Dd[a].qb();this.b.hm()}};g.prototype.Mz=function(){var a=this.b.ib();a.fb=this;var b=!1,c;a.ub=0;for(c=this.wb.length;a.ub<c;a.ub++)if(this.wb[a.ub].qb())b=!0;else if(!this.wd)return!1;return this.wd?b:!0};g.prototype.Uh=function(){this.b.rg++;var a=this.b.ib().ub,b=this.b.lm(this);if(!this.wd)for(b.ub=
a+1,a=this.wb.length;b.ub<a;b.ub++)if(!this.wb[b.ub].qb()){this.b.hm();return}this.tm();this.b.hm()};g.prototype.Ny=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.wb[b].type===a.type)return!1;return!0};bc=g;c.prototype.eb=function(){var a,b,c;a=0;for(b=this.da.length;a<b;a++)c=this.da[a],c.eb(),c.Fd&&(this.ji=!0)};c.prototype.Oz=function(){return!0};c.prototype.rp=function(){var a,b;a=0;for(b=this.da.length;a<b;a++)this.Za[a]=this.da[a].get();return Ta(this.Sb.apply(this.b.Ae,
this.Za),this.Ni)};c.prototype.Nz=function(){var a,b;a=0;for(b=this.da.length;a<b;a++)this.Za[a]=this.da[a].get();a=this.Sb.apply(this.dg?this.dg:this.type,this.Za);this.type.Kd();return a};c.prototype.qp=function(){var a,b,c,e,f,d,h,k,g=this.type,n=g.aa(),r=this.$c.wd&&!this.trigger;b=0;var u=g.Ub,p=g.L,q=g.Ke,t=this.Nd,M=-1<t,G=this.ji,D=this.da,v=this.Za,B=this.Ni,E=this.Sb,L;if(G)for(b=0,f=D.length;b<f;++b)d=D[b],d.Fd||(v[b]=d.get(0));else for(b=0,f=D.length;b<f;++b)v[b]=D[b].get(0);if(n.ka){N(n.k);
N(n.na);L=g.k;a=0;for(e=L.length;a<e;++a){k=L[a];if(G)for(b=0,f=D.length;b<f;++b)d=D[b],d.Fd&&(v[b]=d.get(a));M?(b=0,p&&(b=k.type.lh[q]),b=E.apply(k.W[t+b],v)):b=E.apply(k,v);(h=Ta(b,B))?n.k.push(k):r&&n.na.push(k)}g.finish&&g.finish(!0);n.ka=!1;g.Kd();return n.jo()}c=0;L=(h=r&&!this.$c.Ny(this))?n.na:n.k;var K=!1;a=0;for(e=L.length;a<e;++a){k=L[a];if(G)for(b=0,f=D.length;b<f;++b)d=D[b],d.Fd&&(v[b]=d.get(a));M?(b=0,p&&(b=k.type.lh[q]),b=E.apply(k.W[t+b],v)):b=E.apply(k,v);if(Ta(b,B))if(K=!0,h){if(n.k.push(k),
u)for(b=0,f=k.siblings.length;b<f;b++)d=k.siblings[b],d.type.aa().k.push(d)}else{L[c]=k;if(u)for(b=0,f=k.siblings.length;b<f;b++)d=k.siblings[b],d.type.aa().k[c]=d;c++}else if(h){L[c]=k;if(u)for(b=0,f=k.siblings.length;b<f;b++)d=k.siblings[b],d.type.aa().na[c]=d;c++}else if(r&&(n.na.push(k),u))for(b=0,f=k.siblings.length;b<f;b++)d=k.siblings[b],d.type.aa().na.push(d)}Aa(L,c);if(u)for(p=g.Qc,a=0,e=p.length;a<e;a++)k=p[a].aa(),h?Aa(k.na,c):Aa(k.k,c);c=K;if(h&&!K)for(a=0,e=n.k.length;a<e;a++){k=n.k[a];
if(G)for(b=0,f=D.length;b<f;b++)d=D[b],d.Fd&&(v[b]=d.get(a));b=M?E.apply(k.W[t],v):E.apply(k,v);if(Ta(b,B)){K=!0;break}}g.finish&&g.finish(c||r);return r?K:n.jo()};Xb=c;b.prototype.eb=function(){var a,b,c;a=0;for(b=this.da.length;a<b;a++)c=this.da[a],c.eb(),c.Fd&&(this.ji=!0)};b.prototype.rp=function(){var a=this.b,b,c,e=this.da,f=this.Za;b=0;for(c=e.length;b<c;++b)f[b]=e[b].get();return this.Sb.apply(a.Ae,f)};b.prototype.qp=function(){var a=this.type,b=this.Nd,c=a.Ke,e=this.ji,f=this.da,d=this.Za,
h=this.Sb,k=a.aa().Tc(),a=a.L,g=-1<b,n,r,u,p,q,t;if(e)for(r=0,p=f.length;r<p;++r)q=f[r],q.Fd||(d[r]=q.get(0));else for(r=0,p=f.length;r<p;++r)d[r]=f[r].get(0);n=0;for(u=k.length;n<u;++n){t=k[n];if(e)for(r=0,p=f.length;r<p;++r)q=f[r],q.Fd&&(d[r]=q.get(n));g?(r=0,a&&(r=t.type.lh[c]),h.apply(t.W[b+r],d)):h.apply(t,d)}return!1};Yb=b;var G=[],u=-1;a.prototype.eb=function(){var a,b;if(11===this.type)this.qg=this.b.kr(this.fk,this.$c.parent);else if(13===this.type)for(a=0,b=this.Ug.length;a<b;a++)this.Ug[a].eb();
this.le&&this.le.eb()};a.prototype.Zy=function(a){this.Fd||!a||a.Aa.Fm||(this.Fd=!0)};a.prototype.tt=function(){this.Fd=!0};a.prototype.ny=function(a){this.kf=a||0;a=e();this.le.get(a);u--;return a.data};a.prototype.oy=function(a){this.kf=a||0;a=e();this.le.get(a);u--;return la(a.data)?a.data:""};a.prototype.wy=function(){return this.object};a.prototype.ky=function(){return this.Nq};a.prototype.uy=function(a){this.kf=a||0;a=e();this.le.get(a);u--;return a.Ob()?this.b.Ci(a.data):this.b.Yn(a.data)};
a.prototype.vy=function(){return this.lb};a.prototype.ty=function(){return this.key};a.prototype.ry=function(){return this.index};a.prototype.qy=function(a){a=a||0;var b=this.Pa.type,c=null,c=b.aa(),e=c.Tc();if(e.length)c=e[a%e.length].type;else if(c.na.length)c=c.na[a%c.na.length].type;else if(b.k.length)c=b.k[a%b.k.length].type;else return 0;return this.index+c.Xk[b.Ke]};a.prototype.my=function(){return this.qg};a.prototype.jy=function(){return this.Yq};a.prototype.xy=function(){var a,b;a=0;for(b=
this.Ug.length;a<b;a++)this.ek[a]=this.Ug[a].get();return this.ek};Zb=a;f.prototype.eb=function(){this.ta=p(this.ta)};f.prototype.Sg=function(a){var b=this.b.jr();this.parent&&!this.Wi&&b?(this.Jg>=b.length&&(b.length=this.Jg+1),b[this.Jg]=a):this.data=a};f.prototype.Ei=function(){var a=this.b.jr();return!this.parent||this.Wi||!a||this.zl?this.data:this.Jg>=a.length||"undefined"===typeof a[this.Jg]?this.rl:a[this.Jg]};f.prototype.qb=function(){!this.parent||this.Wi||this.zl||this.Sg(this.rl)};Tb=
f;r.prototype.toString=function(){return"include:"+this.Ki.toString()};r.prototype.eb=function(){this.Ki=this.b.Nn[this.Ey];this.sheet.ur.add(this);this.ta=p(this.ta);for(var a=this.parent;a;)a.group&&a.Fk.push(this),a=a.parent;this.Zt()};r.prototype.qb=function(){this.parent&&this.b.Hj(this.b.G);this.Ki.ko||this.Ki.qb(!0);this.parent&&this.b.ue(this.b.G)};r.prototype.Zt=function(){for(var a=this.parent;a;){if(a.group&&!a.oh){this.Ua=!1;return}a=a.parent}this.Ua=!0};cc=r;h.prototype.reset=function(a){this.fb=
a;this.Bc=this.ub=0;N(this.Ht);this.Kn=this.Fg=!1};h.prototype.Ir=function(){return this.fb.Cp?!0:this.ub<this.fb.wb.length-1?!!this.fb.ta.length:!1};Sb=h})();
(function(){function d(d,c){this.Pa=d;this.b=d.b;this.type=c[0];this.get=[this.wx,this.rx,this.Fx,this.Ix,this.bx,this.Gx,this.Ax,this.nx,this.zx,this.Ex,this.cx,this.Dx,this.ox,this.Bx,this.xx,this.yx,this.tx,this.ux,this.mx,this.Hx,this.Cx,this.vx,this.kx,this.qx][this.type];var b=null;this.$e=this.da=this.Za=this.Sb=this.Mm=this.second=this.first=this.value=null;this.Nd=-1;this.Qd=null;this.du=-1;this.qg=this.fk=null;this.Vh=!1;switch(this.type){case 0:case 1:case 2:this.value=c[1];break;case 3:this.first=
new ac(d,c[1]);break;case 18:this.first=new ac(d,c[1]);this.second=new ac(d,c[2]);this.Mm=new ac(d,c[3]);break;case 19:this.Sb=this.b.uf(c[1]);this.Sb!==T.prototype.ea.random&&this.Sb!==T.prototype.ea.Lq||this.Pa.tt();this.Za=[];this.da=[];3===c.length?(b=c[2],this.Za.length=b.length+1):this.Za.length=1;break;case 20:this.$e=this.b.G[c[1]];this.Nd=-1;this.Sb=this.b.uf(c[2]);this.Vh=c[3];pc&&this.Sb===pc.prototype.ea.mu&&this.Pa.tt();c[4]?this.Qd=new ac(d,c[4]):this.Qd=null;this.Za=[];this.da=[];6===
c.length?(b=c[5],this.Za.length=b.length+1):this.Za.length=1;break;case 21:this.$e=this.b.G[c[1]];this.Vh=c[2];c[3]?this.Qd=new ac(d,c[3]):this.Qd=null;this.du=c[4];break;case 22:this.$e=this.b.G[c[1]];this.$e.jl(c[2]);this.Nd=this.$e.Un(c[2]);this.Sb=this.b.uf(c[3]);this.Vh=c[4];c[5]?this.Qd=new ac(d,c[5]):this.Qd=null;this.Za=[];this.da=[];7===c.length?(b=c[6],this.Za.length=b.length+1):this.Za.length=1;break;case 23:this.fk=c[1],this.qg=null}this.Pa.Zy(this.$e);4<=this.type&&17>=this.type&&(this.first=
new ac(d,c[1]),this.second=new ac(d,c[2]));if(b){var e,a;e=0;for(a=b.length;e<a;e++)this.da.push(new ac(d,b[e]))}}function q(){++g;n.length===g&&n.push(new $b);return n[g]}function p(d,c,b){var e,a;e=0;for(a=d.length;e<a;++e)d[e].get(b),c[e+1]=b.data}function t(d,c){this.type=d||dc.ah;this.data=c||0;this.Ng=null;this.type==dc.ah&&(this.data=Math.floor(this.data))}d.prototype.eb=function(){23===this.type&&(this.qg=this.Pa.b.kr(this.fk,this.Pa.$c.parent));this.first&&this.first.eb();this.second&&this.second.eb();
this.Mm&&this.Mm.eb();this.Qd&&this.Qd.eb();if(this.da){var d,c;d=0;for(c=this.da.length;d<c;d++)this.da[d].eb()}};var n=[],g=-1;d.prototype.Hx=function(d){var c=this.da,b=this.Za;b[0]=d;d=q();p(c,b,d);--g;this.Sb.apply(this.b.Ae,b)};d.prototype.Cx=function(d){var c=this.$e,b=this.Za,e=this.da,a=this.Qd,f=this.Sb,n=this.Pa.kf,h=c.aa(),t=h.Tc();if(!t.length)if(h.na.length)t=h.na;else{this.Vh?d.Lc(""):d.Ga(0);return}b[0]=d;d.Ng=c;d=q();p(e,b,d);a&&(a.get(d),d.Ob()&&(n=d.data,t=c.k));--g;c=t.length;
if(n>=c||n<=-c)n%=c;0>n&&(n+=c);f.apply(t[n],b)};d.prototype.kx=function(d){var c=this.$e,b=this.Za,e=this.da,a=this.Qd,f=this.Nd,n=this.Sb,h=this.Pa.kf,t=c.aa(),G=t.Tc();if(!G.length)if(t.na.length)G=t.na;else{this.Vh?d.Lc(""):d.Ga(0);return}b[0]=d;d.Ng=c;d=q();p(e,b,d);a&&(a.get(d),d.Ob()&&(h=d.data,G=c.k));--g;e=G.length;if(h>=e||h<=-e)h%=e;0>h&&(h+=e);h=G[h];G=0;c.L&&(G=h.type.lh[c.Ke]);n.apply(h.W[f+G],b)};d.prototype.vx=function(d){var c=this.Qd,b=this.$e,e=this.du,a=this.Pa.kf,f=b.aa(),n=f.Tc();
if(!n.length)if(f.na.length)n=f.na;else{this.Vh?d.Lc(""):d.Ga(0);return}if(c){f=q();c.get(f);if(f.Ob()){a=f.data;n=b.k;0!==n.length&&(a%=n.length,0>a&&(a+=n.length));a=b.Xn(a);b=a.Bb[e];la(b)?d.Lc(b):d.U(b);--g;return}--g}c=n.length;if(a>=c||a<=-c)a%=c;0>a&&(a+=c);a=n[a];n=0;b.L&&(n=a.type.Xk[b.Ke]);b=a.Bb[e+n];la(b)?d.Lc(b):d.U(b)};d.prototype.wx=function(d){d.type=dc.ah;d.data=this.value};d.prototype.rx=function(d){d.type=dc.$g;d.data=this.value};d.prototype.Fx=function(d){d.type=dc.String;d.data=
this.value};d.prototype.Ix=function(d){this.first.get(d);d.Ob()&&(d.data=-d.data)};d.prototype.bx=function(d){this.first.get(d);var c=q();this.second.get(c);d.Ob()&&c.Ob()&&(d.data+=c.data,c.uh()&&d.Hh());--g};d.prototype.Gx=function(d){this.first.get(d);var c=q();this.second.get(c);d.Ob()&&c.Ob()&&(d.data-=c.data,c.uh()&&d.Hh());--g};d.prototype.Ax=function(d){this.first.get(d);var c=q();this.second.get(c);d.Ob()&&c.Ob()&&(d.data*=c.data,c.uh()&&d.Hh());--g};d.prototype.nx=function(d){this.first.get(d);
var c=q();this.second.get(c);d.Ob()&&c.Ob()&&(d.data/=c.data,d.Hh());--g};d.prototype.zx=function(d){this.first.get(d);var c=q();this.second.get(c);d.Ob()&&c.Ob()&&(d.data%=c.data,c.uh()&&d.Hh());--g};d.prototype.Ex=function(d){this.first.get(d);var c=q();this.second.get(c);d.Ob()&&c.Ob()&&(d.data=Math.pow(d.data,c.data),c.uh()&&d.Hh());--g};d.prototype.cx=function(d){this.first.get(d);var c=q();this.second.get(c);c.xh()||d.xh()?this.hx(d,c):this.gx(d,c);--g};d.prototype.hx=function(d,c){d.xh()&&
c.xh()?this.jx(d,c):this.ix(d,c)};d.prototype.jx=function(d,c){d.data+=c.data};d.prototype.ix=function(d,c){d.xh()?d.data+=(Math.round(1E10*c.data)/1E10).toString():d.Lc(d.data.toString()+c.data)};d.prototype.gx=function(d,c){d.Ga(d.data&&c.data?1:0)};d.prototype.Dx=function(d){this.first.get(d);var c=q();this.second.get(c);d.Ob()&&c.Ob()&&(d.data||c.data?d.Ga(1):d.Ga(0));--g};d.prototype.mx=function(d){this.first.get(d);d.data?this.second.get(d):this.Mm.get(d)};d.prototype.ox=function(d){this.first.get(d);
var c=q();this.second.get(c);d.Ga(d.data===c.data?1:0);--g};d.prototype.Bx=function(d){this.first.get(d);var c=q();this.second.get(c);d.Ga(d.data!==c.data?1:0);--g};d.prototype.xx=function(d){this.first.get(d);var c=q();this.second.get(c);d.Ga(d.data<c.data?1:0);--g};d.prototype.yx=function(d){this.first.get(d);var c=q();this.second.get(c);d.Ga(d.data<=c.data?1:0);--g};d.prototype.tx=function(d){this.first.get(d);var c=q();this.second.get(c);d.Ga(d.data>c.data?1:0);--g};d.prototype.ux=function(d){this.first.get(d);
var c=q();this.second.get(c);d.Ga(d.data>=c.data?1:0);--g};d.prototype.qx=function(d){var c=this.qg.Ei();ka(c)?d.U(c):d.Lc(c)};ac=d;t.prototype.uh=function(){return this.type===dc.$g};t.prototype.Ob=function(){return this.type===dc.ah||this.type===dc.$g};t.prototype.xh=function(){return this.type===dc.String};t.prototype.Hh=function(){this.uh()||(this.xh()&&(this.data=parseFloat(this.data)),this.type=dc.$g)};t.prototype.Ga=function(d){this.type=dc.ah;this.data=Math.floor(d)};t.prototype.U=function(d){this.type=
dc.$g;this.data=d};t.prototype.Lc=function(d){this.type=dc.String;this.data=d};t.prototype.Am=function(d){ka(d)?(this.type=dc.$g,this.data=d):la(d)?(this.type=dc.String,this.data=d.toString()):(this.type=dc.ah,this.data=0)};$b=t;dc={ah:0,$g:1,String:2}})();function T(d){this.b=d;this.Oc=[]}
T.prototype.Ta=function(){var d={},q,p,t,n,g,k,c,b;d.waits=[];var e=d.waits,a;q=0;for(p=this.Oc.length;q<p;q++){k=this.Oc[q];a={t:k.time,st:k.Ct,s:k.Bp,ev:k.jh.ma,sm:[],sols:{}};k.jh.md[k.Bc]&&(a.act=k.jh.md[k.Bc].ma);t=0;for(n=k.ta.length;t<n;t++)a.sm.push(k.ta[t].ma);for(g in k.xc)if(k.xc.hasOwnProperty(g)){c=this.b.G[parseInt(g,10)];b={sa:k.xc[g].um,insts:[]};t=0;for(n=k.xc[g].Pe.length;t<n;t++)b.insts.push(k.xc[g].Pe[t].uid);a.sols[c.ma.toString()]=b}e.push(a)}return d};
T.prototype.bb=function(d){d=d.waits;var q,p,t,n,g,k,c,b,e,a,f;N(this.Oc);q=0;for(p=d.length;q<p;q++)if(k=d[q],b=this.b.Eq[k.ev.toString()]){e=-1;t=0;for(n=b.md.length;t<n;t++)if(b.md[t].ma===k.act){e=t;break}if(-1!==e){c={xc:{},ta:[],Jn:!1};c.time=k.t;c.Ct=k.st||"";c.Bp=!!k.s;c.jh=b;c.Bc=e;t=0;for(n=k.sm.length;t<n;t++)(b=this.b.ll(k.sm[t]))&&c.ta.push(b);for(g in k.sols)if(k.sols.hasOwnProperty(g)&&(b=this.b.ll(parseInt(g,10)))){e=k.sols[g];a={um:e.sa,Pe:[]};t=0;for(n=e.insts.length;t<n;t++)(f=
this.b.vg(e.insts[t]))&&a.Pe.push(f);c.xc[b.index.toString()]=a}this.Oc.push(c)}}};
(function(){function d(){}function q(){}function p(){}var t=T.prototype;d.prototype.yu=function(){return!0};d.prototype.oq=function(){return!0};d.prototype.gv=function(){return!0};d.prototype.pu=function(b,c,a){return ec(b,c,a)};d.prototype.yv=function(b){var c=this.b.ib(),a=c.fb,d=c.Ir(),c=this.b.ct();if(d)for(d=0;d<b&&!c.sb;d++)this.b.Pg(a.ta),c.index=d,a.Uh(),this.b.ue(a.ta);else for(d=0;d<b&&!c.sb;d++)c.index=d,a.Uh();this.b.Ws();return!1};var n=[],g=-1;d.prototype.Au=function(b){var c=b.aa();
g++;n.length===g&&n.push([]);var a=n[g];Ba(a,c.Tc());var d=this.b.ib(),k=d.fb,h=d.Ir(),d=this.b.ct(),p,q,u,m,l,y,t=b.Ub;if(h)for(h=0,p=a.length;h<p&&!d.sb;h++){this.b.Pg(k.ta);m=a[h];c=b.aa();c.ka=!1;N(c.k);c.k[0]=m;if(t)for(q=0,u=m.siblings.length;q<u;q++)l=m.siblings[q],y=l.type.aa(),y.ka=!1,N(y.k),y.k[0]=l;d.index=h;k.Uh();this.b.ue(k.ta)}else for(c.ka=!1,N(c.k),h=0,p=a.length;h<p&&!d.sb;h++){m=a[h];c.k[0]=m;if(t)for(q=0,u=m.siblings.length;q<u;q++)l=m.siblings[q],y=l.type.aa(),y.ka=!1,N(y.k),
y.k[0]=l;d.index=h;k.Uh()}N(a);this.b.Ws();g--;return!1};d.prototype.Zv=function(){var b=this.b.Bi().N;"undefined"===typeof b.TriggerOnce_lastTick&&(b.TriggerOnce_lastTick=-1);var c=b.TriggerOnce_lastTick,a=this.b.$d;b.TriggerOnce_lastTick=a;return this.b.Io||c!==a-1};d.prototype.xu=function(b){var c=this.b.Bi(),a=c.N.Every_lastTime||0,d=this.b.kb.O;"undefined"===typeof c.N.Every_seconds&&(c.N.Every_seconds=b);var g=c.N.Every_seconds;if(d>=a+g)return c.N.Every_lastTime=a+g,d>=c.N.Every_lastTime+.04&&
(c.N.Every_lastTime=d),c.N.Every_seconds=b,!0;d<a-.1&&(c.N.Every_lastTime=d);return!1};d.prototype.su=function(b,c,a){return ec(b.Ei(),c,a)};d.prototype.Ku=function(b){return(b=this.b.Hi[b.toLowerCase()])&&b.oh};d.prototype.fq=function(){var b=this.b.ib();return b.Kn?!1:!b.Fg};d.prototype.pq=function(){return!0};d.prototype.Wu=function(){return!0};d.prototype.hn=function(){return!0};d.prototype.sq=function(){return!0};d.prototype.hv=function(){return!0};d.prototype.ok=function(){return!0};d.prototype.ku=
function(b,c,a){return Oa(S(b),S(a))<=S(c)};d.prototype.Iu=function(b,c){return Qa(S(b),S(c))};d.prototype.Fu=function(b,c,a){b=Ma(b);c=Ma(c);a=Ma(a);return Qa(a,c)?Qa(b,c)&&!Qa(b,a):!(!Qa(b,c)&&Qa(b,a))};t.n=new d;q.prototype.Bu=function(b){this.b.Yi||this.b.oi||(this.b.oi=b)};q.prototype.uu=function(b,c,a,d){if(c&&b&&(c=this.b.Dn(b,c,a,d))){this.b.dd++;var g;this.b.trigger(Object.getPrototypeOf(b.Aa).n.$f,c);if(c.Ub)for(a=0,d=c.siblings.length;a<d;a++)g=c.siblings[a],this.b.trigger(Object.getPrototypeOf(g.type.Aa).n.$f,
g);this.b.dd--;b=b.aa();b.ka=!1;N(b.k);b.k[0]=c;if(c.Ub)for(a=0,d=c.siblings.length;a<d;a++)g=c.siblings[a],b=g.type.aa(),b.ka=!1,N(b.k),b.k[0]=g}};q.prototype.Pv=function(b,c){0===b.Xm?ka(c)?b.Sg(c):b.Sg(parseFloat(c)):1===b.Xm&&b.Sg(c.toString())};q.prototype.ju=function(b,c){0===b.Xm?ka(c)?b.Sg(b.Ei()+c):b.Sg(b.Ei()+parseFloat(c)):1===b.Xm&&b.Sg(b.Ei()+c.toString())};var k=[],c=[];q.prototype.$v=function(b){if(!(0>b)){var e,a,d,g=this.b.ib(),h;k.length?h=k.pop():h={xc:{},ta:[]};h.Jn=!1;h.time=
this.b.kb.O+b;h.Ct="";h.Bp=!1;h.jh=g.fb;h.Bc=g.Bc+1;b=0;for(e=this.b.G.length;b<e;b++)d=this.b.G[b],a=d.aa(),a.ka&&-1===g.fb.ta.indexOf(d)||(h.ta.push(d),d=void 0,c.length?d=c.pop():d={Pe:[]},d.um=!1,d.um=a.ka,Ba(d.Pe,a.k),h.xc[b.toString()]=d);this.Oc.push(h);return!0}};q.prototype.Av=function(){var b,c,a;b=0;for(c=this.b.nn.length;b<c;b++)a=this.b.nn[b],a.data=a.rl};t.F=new q;p.prototype["int"]=function(b,c){la(c)?(b.Ga(parseInt(c,10)),isNaN(b.data)&&(b.data=0)):b.Ga(c)};p.prototype["float"]=function(b,
c){la(c)?(b.U(parseFloat(c)),isNaN(b.data)&&(b.data=0)):b.U(c)};p.prototype.random=function(b,c,a){void 0===a?b.U(Math.random()*c):b.U(Math.random()*(a-c)+c)};p.prototype.sqrt=function(b,c){b.U(Math.sqrt(c))};p.prototype.abs=function(b,c){b.U(Math.abs(c))};p.prototype.round=function(b,c){b.Ga(Math.round(c))};p.prototype.floor=function(b,c){b.Ga(Math.floor(c))};p.prototype.ceil=function(b,c){b.Ga(Math.ceil(c))};p.prototype.sin=function(b,c){b.U(Math.sin(S(c)))};p.prototype.cos=function(b,c){b.U(Math.cos(S(c)))};
p.prototype.tan=function(b,c){b.U(Math.tan(S(c)))};p.prototype.asin=function(b,c){b.U(Ha(Math.asin(c)))};p.prototype.acos=function(b,c){b.U(Ha(Math.acos(c)))};p.prototype.atan=function(b,c){b.U(Ha(Math.atan(c)))};p.prototype.exp=function(b,c){b.U(Math.exp(c))};p.prototype.log10=function(b,c){b.U(Math.log(c)/Math.LN10)};p.prototype.max=function(b){var c=arguments[1];"number"!==typeof c&&(c=0);var a,d,g;a=2;for(d=arguments.length;a<d;a++)g=arguments[a],"number"===typeof g&&c<g&&(c=g);b.U(c)};p.prototype.min=
function(b){var c=arguments[1];"number"!==typeof c&&(c=0);var a,d,g;a=2;for(d=arguments.length;a<d;a++)g=arguments[a],"number"===typeof g&&c>g&&(c=g);b.U(c)};p.prototype.lg=function(b){b.U(this.b.lg)};p.prototype.Xg=function(b){b.U(this.b.Xg)};p.prototype.time=function(b){b.U(this.b.kb.O)};p.prototype.$d=function(b){b.Ga(this.b.$d)};p.prototype.Ul=function(b){b.Ga(this.b.Ul)};p.prototype.Rn=function(b){b.Ga(this.b.Rn)};p.prototype.q=function(b,c,a,d,g){b.U(Ha(Na(c,a,d,g)))};p.prototype.left=function(b,
c,a){b.Lc(la(c)?c.substr(0,a):"")};p.prototype.right=function(b,c,a){b.Lc(la(c)?c.substr(c.length-a):"")};p.prototype.replace=function(b,c,a,d){la(c)&&la(a)&&la(d)?b.Lc(c.replace(new RegExp(cb(a),"gi"),d)):b.Lc(la(c)?c:"")};p.prototype.trim=function(b,c){b.Lc(la(c)?c.trim():"")};p.prototype.Lq=function(b){var c=z(Math.random()*(arguments.length-1));b.Am(arguments[c+1])};p.prototype.Cn=function(b){b.U(this.b.Cn/1E3)};p.prototype.Jl=function(b){b.U(this.b.Jl)};t.ea=new p;t.Kz=function(){var b,d,a,f,
g,h,n=this.b.ib();b=0;for(a=this.Oc.length;b<a;b++){f=this.Oc[b];if(-1===f.time){if(!f.Bp)continue}else if(f.time>this.b.kb.O)continue;n.fb=f.jh;n.Bc=f.Bc;n.ub=0;for(d in f.xc)f.xc.hasOwnProperty(d)&&(g=this.b.G[parseInt(d,10)].aa(),h=f.xc[d],g.ka=h.um,Ba(g.k,h.Pe),g=h,N(g.Pe),c.push(g));f.jh.Jz();this.b.An(f.ta);f.Jn=!0}d=b=0;for(a=this.Oc.length;b<a;b++)f=this.Oc[b],this.Oc[d]=f,f.Jn?(Va(f.xc),N(f.ta),k.push(f)):d++;Aa(this.Oc,d)}})();
(function(){mb=function(d,p){var t=d[1],n=d[3],g=d[4],k=d[5],c=d[6],b=d[7],e=d[8];p.n||(p.n={});p.F||(p.F={});p.ea||(p.ea={});var a=p.n,f=p.F,r=p.ea;n&&(a.dq=function(a,b){return ec(this.x,a,b)},a.uA=function(a,b){return ec(this.y,a,b)},a.zA=function(){var a=this.u;this.Ia();var b=this.Ma;return!(b.right<a.xa||b.bottom<a.ya||b.left>a.Fa||b.top>a.Ea)},a.AA=function(){this.Ia();var a=this.Ma,b=this.b.La;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.LA=function(a,b,c){var d=this.aa(),
e=d.Tc();if(!e.length)return!1;var f=e[0],g=f,k=Sa(f.x,f.y,b,c),n,p,r;n=1;for(p=e.length;n<p;n++)if(f=e[n],r=Sa(f.x,f.y,b,c),0===a&&r<k||1===a&&r>k)k=r,g=f;d.Cj(g);return!0},f.Rv=function(a){this.x!==a&&(this.x=a,this.C())},f.ZA=function(a){this.y!==a&&(this.y=a,this.C())},f.Kv=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.C()},f.XA=function(a,b){var c=a.by(this);if(c){var d;c.ug?(d=c.ug(b,!0),c=c.ug(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.C()}},f.Tu=
function(a){0!==a&&(this.x+=Math.cos(this.q)*a,this.y+=Math.sin(this.q)*a,this.C())},f.EA=function(a,b){0!==b&&(this.x+=Math.cos(S(a))*b,this.y+=Math.sin(S(a))*b,this.C())},r.ln=function(a){a.U(this.x)},r.mn=function(a){a.U(this.y)},r.lg=function(a){a.U(this.b.Oe(this))});g&&(a.tA=function(a,b){return ec(this.width,a,b)},a.rA=function(a,b){return ec(this.height,a,b)},f.Qv=function(a){this.width!==a&&(this.width=a,this.C())},f.VA=function(a){this.height!==a&&(this.height=a,this.C())},f.uq=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.C()},r.vq=function(a){a.U(this.width)},r.Cu=function(a){a.U(this.height)},r.oA=function(a){this.Ia();a.U(this.Ma.left)},r.qA=function(a){this.Ia();a.U(this.Ma.top)},r.pA=function(a){this.Ia();a.U(this.Ma.right)},r.nA=function(a){this.Ia();a.U(this.Ma.bottom)});k&&(a.ku=function(a,b){return Oa(this.q,S(b))<=S(a)},a.Iu=function(a){return Qa(this.q,S(a))},a.Fu=function(a,b){var c=Ma(a),d=Ma(b),e=Ja(this.q);return Qa(d,c)?Qa(e,c)&&
!Qa(e,d):!(!Qa(e,c)&&Qa(e,d))},f.Bv=function(a){a=S(Ia(a));isNaN(a)||this.q===a||(this.q=a,this.C())},f.PA=function(a){0===a||isNaN(a)||(this.q+=S(a),this.q=Ja(this.q),this.C())},f.QA=function(a){0===a||isNaN(a)||(this.q-=S(a),this.q=Ja(this.q),this.C())},f.RA=function(a,b){var c=Pa(this.q,S(b),S(a));isNaN(c)||this.q===c||(this.q=c,this.C())},f.SA=function(a,b,c){a=Pa(this.q,Math.atan2(c-this.y,b-this.x),S(a));isNaN(a)||this.q===a||(this.q=a,this.C())},f.Ov=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.q===c||(this.q=c,this.C())},r.mA=function(a){a.U(Ka(this.q))});t||(a.cq=function(a,b,c){return ec(this.Bb[a],b,c)},a.xA=function(a){return this.Bb[a]},a.MA=function(a,b){var c=this.aa(),d=c.Tc();if(!d.length)return!1;var e=d[0],f=e,g=e.Bb[b],k,n,p;k=1;for(n=d.length;k<n;k++)if(e=d[k],p=e.Bb[b],0===a&&p<g||1===a&&p>g)g=p,f=e;c.Cj(f);return!0},a.KA=function(a){var b,c,d,e,f;if(this.b.Bi().Ni){f=this.aa();if(f.ka)for(f.ka=!1,N(f.k),N(f.na),d=this.k,b=0,c=d.length;b<c;b++)e=d[b],
e.uid===a?f.na.push(e):f.k.push(e);else{d=b=0;for(c=f.k.length;b<c;b++)e=f.k[b],f.k[d]=e,e.uid===a?f.na.push(e):d++;Aa(f.k,d)}this.Kd();return!!f.k.length}e=this.b.vg(a);if(!e)return!1;f=this.aa();if(!f.ka&&-1===f.k.indexOf(e))return!1;if(this.L)for(a=e.type.Ra,b=0,c=a.length;b<c;b++){if(a[b]===this)return f.Cj(e),this.Kd(),!0}else if(e.type===this)return f.Cj(e),this.Kd(),!0;return!1},a.$f=function(){return!0},a.Yu=function(){return!0},f.Hv=function(a,b){var c=this.Bb;ka(c[a])?c[a]=ka(b)?b:parseFloat(b):
la(c[a])&&(c[a]=la(b)?b:b.toString())},f.iu=function(a,b){var c=this.Bb;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.Xv=function(a,b){var c=this.Bb;ka(c[a])&&(c[a]=ka(b)?c[a]-b:c[a]-parseFloat(b))},f.TA=function(a,b){this.Bb[a]=b?1:0},f.$A=function(a){this.Bb[a]=1-this.Bb[a]},f.wu=function(){this.b.ge(this)},f.Su||(f.Su=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Hl(this,b,!0);this.Hd&&this.Hd();if(this.W)for(a=0,b=this.W.length;a<
b;++a)c=this.W[a],c.Hd&&c.Hd()}),r.vA=function(a){var b=a.Ng.k.length,c,d,e;c=0;for(d=this.b.Od.length;c<d;c++)e=this.b.Od[c],a.Ng.L?0<=e.type.Ra.indexOf(a.Ng)&&b++:e.type===a.Ng&&b++;a.Ga(b)},r.OA=function(a){a.Ga(a.Ng.aa().Tc().length)},r.aB=function(a){a.Ga(this.uid)},r.wA=function(a){a.Ga(this.Fi())},r.bq||(r.bq=function(a){a.Lc(JSON.stringify(this.b.sp(this,!0)))}));c&&(a.BA=function(){return this.visible},f.YA=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.ca=!0)},a.sA=function(a,
b){return ec(ib(100*this.opacity),a,b)},f.WA=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ca=!0)},r.Opacity=function(a){a.U(ib(100*this.opacity))});b&&(a.yA=function(a){return a?this.u===a:!1},a.NA=function(a){var b=this.aa(),c=b.Tc();if(!c.length)return!1;var d=c[0],e=d,f,g;f=1;for(g=c.length;f<g;f++)if(d=c[f],0===a){if(d.u.index>e.u.index||d.u.index===e.u.index&&d.ne()>e.ne())e=d}else if(d.u.index<e.u.index||d.u.index===e.u.index&&d.ne()<e.ne())e=d;b.Cj(e);return!0},
f.HA=function(){var a=this.u,b=a.k;b.length&&b[b.length-1]===this||(a.Th(this,!1),a.li(this,!1),this.b.ca=!0)},f.FA=function(){var a=this.u,b=a.k;b.length&&b[0]===this||(a.Th(this,!1),a.wz(this),this.b.ca=!0)},f.GA=function(a){a&&a!=this.u&&(this.u.Th(this,!0),this.u=a,a.li(this,!0),this.b.ca=!0)},f.cB=function(a,b){var c=0===a;if(b){var d=b.lr(this);d&&d.uid!==this.uid&&(this.u.index!==d.u.index&&(this.u.Th(this,!0),this.u=d.u,d.u.li(this,!0)),this.u.bz(this,d,c),this.b.ca=!0)}},r.DA=function(a){a.Ga(this.u.Cs)},
r.CA=function(a){a.Lc(this.u.name)},r.bB=function(a){a.Ga(this.ne())});e&&(f.UA=function(a,b){if(this.b.D){var c=this.type.Wn(b);if(!(0>c)){var d=1===a;this.vf[c]!==d&&(this.vf[c]=d,this.de(),this.b.ca=!0)}}},f.Ev=function(a,b,c){if(this.b.D){var d=this.type.Wn(a);0>d||(a=this.type.Z[d],d=this.Ya[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.D.gy(a.rb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Ua&&(this.b.ca=!0))))}})};Kb=function(){this.yn=this.zk=!0;this.type.sk=!0;this.b.ca=!0;var d,p,t=this.tn;d=0;for(p=
t.length;d<p;++d)t[d](this);this.u.ld&&this.Ia()};Lb=function(d){d&&this.tn.push(d)};Nb=function(){if(this.zk){var d=this.Ma,p=this.gc;d.set(this.x,this.y,this.x+this.width,this.y+this.height);d.offset(-this.Ec*this.width,-this.Fc*this.height);this.q?(d.offset(-this.x,-this.y),p.xt(d,this.q),p.offset(this.x,this.y),p.Fq(d)):p.Yh(d);d.normalize();this.zk=!1;this.bu()}};var d=new ua(0,0,0,0);Ob=function(){if(this.u.ld){var q=this.u.Zb,p=this.Ma;d.set(q.zc(p.left),q.Ac(p.top),q.zc(p.right),q.Ac(p.bottom));
this.Jc.wi(d)||(this.Jc.right<this.Jc.left?q.update(this,null,d):q.update(this,this.Jc,d),this.Jc.qi(d),this.u.Yd=!0)}};Pb=function(){if(this.yn&&this.Ge){this.Ia();var q=this.type.Ek,p=this.Ma;d.set(q.zc(p.left),q.Ac(p.top),q.zc(p.right),q.Ac(p.bottom));this.Cf.wi(d)||(this.Cf.right<this.Cf.left?q.update(this,null,d):q.update(this,this.Cf,d),this.Cf.qi(d),this.yn=!1)}};Mb=function(d,p){return this.Ma.jc(d,p)&&this.gc.jc(d,p)?this.bi?this.bA(d,p):this.Ba&&!this.Ba.sh()?(this.Ba.hg(this.width,this.height,
this.q),this.Ba.jc(d-this.x,p-this.y)):!0:!1};Gb=function(){this.type.Tm();return this.yg};Qb=function(){this.u.Up();return this.ee};Rb=function(){N(this.za);var d,p,t,n=!0;d=0;for(p=this.vf.length;d<p;d++)this.vf[d]&&(t=this.type.Z[d],this.za.push(t),t.zd||(n=!1));this.cu=!!this.za.length;this.jf=n};Hb=function(){return"Inst"+this.bt};rb=function(d){if(d&&d.Ub&&d.type!=this){var p,t,n;p=0;for(t=d.siblings.length;p<t;p++)if(n=d.siblings[p],n.type==this)return n}d=this.aa().Tc();return d.length?d[0]:
null};sb=function(d){var p=this.aa().Tc();return p.length?p[d.Fi()%p.length]:null};qb=function(){if(this.ai&&!this.L){var d,p;d=0;for(p=this.k.length;d<p;d++)this.k[d].yg=d;var t=d,n=this.b.Od;d=0;for(p=n.length;d<p;++d)n[d].type===this&&(n[d].yg=t++);this.ai=!1}};Bb=function(d){if(d<this.k.length)return this.k[d];d-=this.k.length;var p=this.b.Od,t,n;t=0;for(n=p.length;t<n;++t)if(p[t].type===this){if(0===d)return p[t];--d}return null};tb=function(){return this.lf[this.ie]};ub=function(){this.ie++;
this.ie===this.lf.length?this.lf.push(new nb(this)):(this.lf[this.ie].ka=!0,N(this.lf[this.ie].na))};vb=function(){this.ie++;this.ie===this.lf.length&&this.lf.push(new nb(this));var d=this.lf[this.ie],p=this.lf[this.ie-1];p.ka?(d.ka=!0,N(d.na)):(d.ka=!1,Ba(d.k,p.k))};wb=function(){this.ie--};xb=function(d){var p,t,n,g,k,c=0;if(!this.L)for(p=0,t=this.Ra.length;p<t;p++)for(k=this.Ra[p],n=0,g=k.Va.length;n<g;n++){if(d===k.Va[n].name)return this.N.lastBehIndex=c,k.Va[n];c++}p=0;for(t=this.Va.length;p<
t;p++){if(d===this.Va[p].name)return this.N.lastBehIndex=c,this.Va[p];c++}return null};yb=function(d){return this.jl(d)?this.N.lastBehIndex:-1};zb=function(d){var p,t;p=0;for(t=this.Z.length;p<t;p++)if(this.Z[p].name===d)return p;return-1};Ab=function(){if(this.Ub&&!this.L){var d,p,t,n,g,k,c;this.Tm();k=this.aa();var b=k.ka,e=(d=this.b.ib())&&d.fb&&d.fb.wd;d=0;for(p=this.Qc.length;d<p;d++)if(g=this.Qc[d],g!==this&&(g.Tm(),c=g.aa(),c.ka=b,!b)){N(c.k);t=0;for(n=k.k.length;t<n;++t)c.k[t]=g.Xn(k.k[t].yg);
if(e)for(N(c.na),t=0,n=k.na.length;t<n;++t)c.na[t]=g.Xn(k.na[t].yg)}}};Cb=function(){return"Type"+this.ma};ec=function(d,p,t){if("undefined"===typeof d||"undefined"===typeof t)return!1;switch(p){case 0:return d===t;case 1:return d!==t;case 2:return d<t;case 3:return d<=t;case 4:return d>t;case 5:return d>=t;default:return!1}}})();
var mc={brightness:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp float brightness;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\nlowp float a = front.a;\nif (a != 0.0)\nfront.rgb /= front.a;\nfront.rgb += (brightness - 1.0);\nfront.rgb *= a;\ngl_FragColor = front;\n}",Tk:0,Uk:0,En:!1,zd:!0,rn:!1,da:[["brightness",0,1]]}};function qc(d){this.b=d}
(function(){function d(){return c.length?c.pop():[]}function q(b){var d,a;d=0;for(a=b.length;d<a;d++)Array.isArray(b[d])&&q(b[d]);N(b);c.push(b)}function p(){}function t(){}function n(){}var g=qc.prototype;g.V=function(b){this.Aa=b;this.b=b.b};g.V.prototype.K=function(){};g.R=function(b){this.type=b;this.b=b.b};var k=g.R.prototype,c=[];Array.isArray||(Array.isArray=function(b){return"[object Array]"===Object.prototype.toString.call(b)});k.K=function(){this.rd=this.B[0];this.Pd=this.B[1];this.je=this.B[2];
this.Yb||(this.Ee=d());var b=this.Ee;b.length=this.rd;var c,a,f;for(c=0;c<this.rd;c++)for(b[c]||(b[c]=d()),b[c].length=this.Pd,a=0;a<this.Pd;a++)for(b[c][a]||(b[c][a]=d()),b[c][a].length=this.je,f=0;f<this.je;f++)b[c][a][f]=0;this.$q=[];this.br=[];this.cr=[];this.Le=-1};k.Vd=function(){var b;for(b=0;b<this.rd;b++)q(this.Ee[b]);N(this.Ee)};k.nd=function(b,c,a){b=Math.floor(b);c=Math.floor(c);a=Math.floor(a);return isNaN(b)||0>b||b>this.rd-1||isNaN(c)||0>c||c>this.Pd-1||isNaN(a)||0>a||a>this.je-1?0:
this.Ee[b][c][a]};k.set=function(b,c,a,d){b=Math.floor(b);c=Math.floor(c);a=Math.floor(a);isNaN(b)||0>b||b>this.rd-1||isNaN(c)||0>c||c>this.Pd-1||isNaN(a)||0>a||a>this.je-1||(this.Ee[b][c][a]=d)};k.Sx=function(){return JSON.stringify({c2array:!0,size:[this.rd,this.Pd,this.je],data:this.Ee})};k.Ta=function(){return{size:[this.rd,this.Pd,this.je],data:this.Ee}};k.bb=function(b){var c=b.size;this.rd=c[0];this.Pd=c[1];this.je=c[2];this.Ee=b.data};k.hf=function(b,c,a){0>b&&(b=0);0>c&&(c=0);0>a&&(a=0);
if(this.rd!==b||this.Pd!==c||this.je!==a){this.rd=b;this.Pd=c;this.je=a;var f,g,h=this.Ee;h.length=b;for(b=0;b<this.rd;b++)for(ia(h[b])&&(h[b]=d()),h[b].length=c,f=0;f<this.Pd;f++)for(ia(h[b][f])&&(h[b][f]=d()),h[b][f].length=a,g=0;g<this.je;g++)ia(h[b][f][g])&&(h[b][f][g]=0)}};k.hB=function(){return 0<=this.Le&&this.Le<this.$q.length?this.$q[this.Le]:0};k.iB=function(){return 0<=this.Le&&this.Le<this.br.length?this.br[this.Le]:0};k.jB=function(){return 0<=this.Le&&this.Le<this.cr.length?this.cr[this.Le]:
0};p.prototype.dq=function(b,c,a){return ec(this.nd(b,0,0),c,a)};p.prototype.tu=function(b,c,a,d){return ec(this.nd(b,c,0),a,d)};k.bg=function(b){this.b.Pg(b.ta);b.Uh();this.b.ue(b.ta)};g.n=new p;t.prototype.uq=function(b,c,a){this.hf(b,c,a)};t.prototype.Rv=function(b,c){this.set(b,0,0,c)};t.prototype.Sv=function(b,c,a){this.set(b,c,0,a)};g.F=new t;n.prototype.lu=function(b,c,a,d){b.Am(this.nd(c,a||0,d||0))};n.prototype.vq=function(b){b.Ga(this.rd)};n.prototype.Cu=function(b){b.Ga(this.Pd)};n.prototype.bq=
function(b){b.Lc(this.Sx())};g.ea=new n})();function rc(d){this.b=d}
(function(){function d(a){-1===ob.indexOf(a)&&ob.push(a)}function q(a){var b=a.A,c;try{c=b.play()}catch(e){d(a);return}c?c.catch(function(){d(a)}):Fc&&!A.ed&&d(a)}function p(){var a,b,c,e;Gc||va||!v||(t(),"running"===v.state&&(Gc=!0));var f=ob.slice(0);N(ob);if(!V)for(a=0,b=f.length;a<b;++a)c=f[a],c.sb||c.Uc||(e=c.A.play())&&e.catch(function(){d(c)})}function t(){"suspended"===v.state&&v.resume&&v.resume();if(v.createBuffer){var a=v.createBuffer(1,220,22050),c=v.createBufferSource();c.buffer=a;c.connect(v.destination);
b(c)}}function n(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function g(a){a=a.toLowerCase();return aa.hasOwnProperty(a)&&aa[a].length?aa[a][0].bd():v.destination}function k(){return v.createGain?v.createGain():v.createGainNode()}function c(a){return v.createDelay?v.createDelay(a):v.createDelayNode(a)}function b(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function e(a,b,c,d){a.start?a.start(d||0,b):a.noteGrainOn(d||0,b,c-b)}function a(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}
function f(a,b,c,d,e,f){this.type="filter";this.cb=[a,b,c,d,e,f];this.ra=k();this.Y=k();this.Y.gain.value=f;this.X=k();this.X.gain.value=1-f;this.gb=v.createBiquadFilter();this.gb.type="number"===typeof this.gb.type?a:Nc[a];this.gb.frequency.value=b;this.gb.detune&&(this.gb.detune.value=c);this.gb.Q.value=d;this.gb.gain.value=e;this.ra.connect(this.gb);this.ra.connect(this.X);this.gb.connect(this.Y)}function r(a,b,d){this.type="delay";this.cb=[a,b,d];this.ra=k();this.Y=k();this.Y.gain.value=d;this.X=
k();this.X.gain.value=1-d;this.rj=k();this.td=c(a);this.td.delayTime.value=a;this.Ok=k();this.Ok.gain.value=b;this.ra.connect(this.rj);this.ra.connect(this.X);this.rj.connect(this.Y);this.rj.connect(this.td);this.td.connect(this.Ok);this.Ok.connect(this.rj)}function h(a,b,c,d){this.type="convolve";this.cb=[b,c,d];this.ra=k();this.Y=k();this.Y.gain.value=c;this.X=k();this.X.gain.value=1-c;this.ig=v.createConvolver();a&&(this.ig.normalize=b,this.ig.buffer=a);this.ra.connect(this.ig);this.ra.connect(this.X);
this.ig.connect(this.Y)}function M(a,d,e,f,l){this.type="flanger";this.cb=[a,d,e,f,l];this.ra=k();this.X=k();this.X.gain.value=1-l/2;this.Y=k();this.Y.gain.value=l/2;this.Yk=k();this.Yk.gain.value=f;this.td=c(a+d);this.td.delayTime.value=a;this.Qb=v.createOscillator();this.Qb.frequency.value=e;this.Yc=k();this.Yc.gain.value=d;this.ra.connect(this.td);this.ra.connect(this.X);this.td.connect(this.Y);this.td.connect(this.Yk);this.Yk.connect(this.td);this.Qb.connect(this.Yc);this.Yc.connect(this.td.delayTime);
b(this.Qb)}function G(a,c,d,e,f,l){this.type="phaser";this.cb=[a,c,d,e,f,l];this.ra=k();this.X=k();this.X.gain.value=1-l/2;this.Y=k();this.Y.gain.value=l/2;this.gb=v.createBiquadFilter();this.gb.type="number"===typeof this.gb.type?7:"allpass";this.gb.frequency.value=a;this.gb.detune&&(this.gb.detune.value=c);this.gb.Q.value=d;this.Qb=v.createOscillator();this.Qb.frequency.value=f;this.Yc=k();this.Yc.gain.value=e;this.ra.connect(this.gb);this.ra.connect(this.X);this.gb.connect(this.Y);this.Qb.connect(this.Yc);
this.Yc.connect(this.gb.frequency);b(this.Qb)}function u(a){this.type="gain";this.cb=[a];this.wa=k();this.wa.gain.value=a}function m(a,c){this.type="tremolo";this.cb=[a,c];this.wa=k();this.wa.gain.value=1-c/2;this.Qb=v.createOscillator();this.Qb.frequency.value=a;this.Yc=k();this.Yc.gain.value=c/2;this.Qb.connect(this.Yc);this.Yc.connect(this.wa.gain);b(this.Qb)}function l(a,c){this.type="ringmod";this.cb=[a,c];this.ra=k();this.Y=k();this.Y.gain.value=c;this.X=k();this.X.gain.value=1-c;this.Mj=k();
this.Mj.gain.value=0;this.Qb=v.createOscillator();this.Qb.frequency.value=a;this.Qb.connect(this.Mj.gain);b(this.Qb);this.ra.connect(this.Mj);this.ra.connect(this.X);this.Mj.connect(this.Y)}function y(a,b,c,d,e){this.type="distortion";this.cb=[a,b,c,d,e];this.ra=k();this.jm=k();this.im=k();this.Rz(c,Math.pow(10,d/20));this.Y=k();this.Y.gain.value=e;this.X=k();this.X.gain.value=1-e;this.Zm=v.createWaveShaper();this.Mk=new Float32Array(65536);this.Qx(a,b);this.Zm.Mk=this.Mk;this.ra.connect(this.jm);
this.ra.connect(this.X);this.jm.connect(this.Zm);this.Zm.connect(this.im);this.im.connect(this.Y)}function ja(a,b,c,d,e){this.type="compressor";this.cb=[a,b,c,d,e];this.wa=v.createDynamicsCompressor();try{this.wa.threshold.value=a,this.wa.knee.value=b,this.wa.ratio.value=c,this.wa.attack.value=d,this.wa.release.value=e}catch(f){}}function F(a,b){this.type="analyser";this.cb=[a,b];this.wa=v.createAnalyser();this.wa.fftSize=a;this.wa.smoothingTimeConstant=b;this.Ox=new Float32Array(this.wa.frequencyBinCount);
this.At=new Uint8Array(a);this.Aj=0}function O(){this.Ca=null;this.Il=0}function J(a,b){this.src=a;this.ja=D;this.oe=b;this.rk=!1;var c=this;this.Ih=this.Ph=null;this.Qh=[];this.vm=0;this.Yp=this.Wk=this.Gt=this.cm=!1;1===D&&b&&!pb&&(this.ja=0,this.Ph=k());this.Fe=this.ua=null;var d;switch(this.ja){case 0:this.ua=new Audio;this.ua.crossOrigin="anonymous";this.ua.addEventListener("canplaythrough",function(){c.Yp=!0});1===D&&v.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Gt=!0,
this.ua.addEventListener("canplay",function(){!c.Ih&&c.ua&&(c.Ih=v.createMediaElementSource(c.ua),c.Ih.connect(c.Ph))}));this.ua.autoplay=!1;this.ua.kB="auto";this.ua.src=a;break;case 1:A.xl?A.Xq(a,function(a){c.Fe=a;c.Pq()},function(){c.Wk=!0}):(d=new XMLHttpRequest,d.open("GET",a,!0),d.responseType="arraybuffer",d.onload=function(){c.Fe=d.response;c.Pq()},d.onerror=function(){c.Wk=!0},d.send());break;case 2:this.ua=!0;break;case 3:this.ua=!0}}function x(a,b){var c=this;this.tag=b;this.sb=this.me=
!0;this.src=a.src;this.buffer=a;this.ja=D;this.oe=a.oe;this.playbackRate=1;this.qh=!0;this.Uc=this.jd=!1;this.Kc=0;this.Vi=this.vh=this.pe=!1;this.volume=1;this.dp=function(a){if(!c.Uc&&!c.jd){var b=this;b||(b=a.target);b===c.pk&&(c.qh=!0,c.sb=!0,X=c.tag,A.trigger(rc.prototype.n.mk,Q))}};this.pk=null;this.rh=1===P&&!this.oe||2===P;this.Kh=1;this.startTime=this.rh?A.kb.O:A.rf.O;this.pb=this.xb=null;this.re=!1;this.Vb=null;this.Os=this.Ns=this.Ms=this.Ls=this.Qs=this.Ps=0;this.A=null;var d=!1;1!==this.ja||
0!==this.buffer.ja||this.buffer.Gt||(this.ja=0);switch(this.ja){case 0:this.oe?(this.A=a.ua,d=!a.rk,a.rk=!0):(this.A=new Audio,this.A.crossOrigin="anonymous",this.A.autoplay=!1,this.A.src=a.ua.src,d=!0);d&&this.A.addEventListener("ended",function(){X=c.tag;c.sb=!0;A.trigger(rc.prototype.n.mk,Q)});break;case 1:this.xb=k();this.xb.connect(g(b));1===this.buffer.ja?a.ua&&(this.A=v.createBufferSource(),this.A.buffer=a.ua,this.A.connect(this.xb)):(this.A=this.buffer.ua,this.buffer.Ph.connect(this.xb),this.buffer.rk||
(this.buffer.rk=!0,this.buffer.ua.addEventListener("ended",function(){X=c.tag;c.sb=!0;A.trigger(rc.prototype.n.mk,Q)})));break;case 2:this.A=new window.Media(R+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.qh=!0,c.sb=!0,X=c.tag,A.trigger(rc.prototype.n.mk,Q))});break;case 3:this.A=!0}}function w(a){N(Fa);if(a.length){var b,c,d;b=0;for(c=E.length;b<c;b++)d=E[b],jb(a,d.tag)&&Fa.push(d)}else L&&!L.xg()&&(N(Fa),Fa[0]=L)}function I(a,b){aa.hasOwnProperty(a)?aa[a].push(b):aa[a]=[b];
var c,d,e,f,l=v.destination;if(aa.hasOwnProperty(a)&&(e=aa[a],e.length))for(l=e[0].bd(),c=0,d=e.length;c<d;c++)f=e[c],c+1===d?f.qd(v.destination):f.qd(e[c+1].bd());w(a);c=0;for(d=Fa.length;c<d;c++)Fa[c].Dz(l);La&&Fb===a&&(La.disconnect(),La.connect(l))}function C(){}function Y(){}var W=rc.prototype;W.V=function(a){this.Aa=a;this.b=a.b};W.V.prototype.K=function(){};var A=null,Q=null,X="",R="",D=0,v=null,B=[],E=[],L=null,K=!1,P=0,V=!1,H=1,ca=0,Z=0,va=!1,Eb=1,Db=1,Bc=10,Dc=1E4,Ec=1,La=null,Fb="",Fc=
!1,ob=[],pb=!1,Gc=!1;document.addEventListener("pointerup",p,!0);document.addEventListener("touchend",p,!0);document.addEventListener("click",p,!0);document.addEventListener("keydown",p,!0);document.addEventListener("gamepadconnected",p,!0);var aa={},Nc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");f.prototype.qd=function(a){this.Y.disconnect();this.Y.connect(a);this.X.disconnect();this.X.connect(a)};f.prototype.remove=function(){this.ra.disconnect();this.gb.disconnect();
this.Y.disconnect();this.X.disconnect()};f.prototype.bd=function(){return this.ra};r.prototype.qd=function(a){this.Y.disconnect();this.Y.connect(a);this.X.disconnect();this.X.connect(a)};r.prototype.remove=function(){this.ra.disconnect();this.rj.disconnect();this.td.disconnect();this.Ok.disconnect();this.Y.disconnect();this.X.disconnect()};r.prototype.bd=function(){return this.ra};h.prototype.qd=function(a){this.Y.disconnect();this.Y.connect(a);this.X.disconnect();this.X.connect(a)};h.prototype.remove=
function(){this.ra.disconnect();this.ig.disconnect();this.Y.disconnect();this.X.disconnect()};h.prototype.bd=function(){return this.ra};M.prototype.qd=function(a){this.X.disconnect();this.X.connect(a);this.Y.disconnect();this.Y.connect(a)};M.prototype.remove=function(){this.ra.disconnect();this.td.disconnect();this.Qb.disconnect();this.Yc.disconnect();this.X.disconnect();this.Y.disconnect();this.Yk.disconnect()};M.prototype.bd=function(){return this.ra};G.prototype.qd=function(a){this.X.disconnect();
this.X.connect(a);this.Y.disconnect();this.Y.connect(a)};G.prototype.remove=function(){this.ra.disconnect();this.gb.disconnect();this.Qb.disconnect();this.Yc.disconnect();this.X.disconnect();this.Y.disconnect()};G.prototype.bd=function(){return this.ra};u.prototype.qd=function(a){this.wa.disconnect();this.wa.connect(a)};u.prototype.remove=function(){this.wa.disconnect()};u.prototype.bd=function(){return this.wa};m.prototype.qd=function(a){this.wa.disconnect();this.wa.connect(a)};m.prototype.remove=
function(){this.Qb.disconnect();this.Yc.disconnect();this.wa.disconnect()};m.prototype.bd=function(){return this.wa};l.prototype.qd=function(a){this.Y.disconnect();this.Y.connect(a);this.X.disconnect();this.X.connect(a)};l.prototype.remove=function(){this.Qb.disconnect();this.Mj.disconnect();this.ra.disconnect();this.Y.disconnect();this.X.disconnect()};l.prototype.bd=function(){return this.ra};y.prototype.Rz=function(a,b){.01>a&&(a=.01);this.jm.gain.value=a;this.im.gain.value=Math.pow(1/a,.6)*b};
y.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};y.prototype.Qx=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),e=0,f=0;32768>f;++f)e=f/32768,e=this.shape(e,c,d),this.Mk[32768+f]=e,this.Mk[32768-f-1]=-e};y.prototype.qd=function(a){this.Y.disconnect();this.Y.connect(a);this.X.disconnect();this.X.connect(a)};y.prototype.remove=function(){this.ra.disconnect();this.jm.disconnect();this.Zm.disconnect();this.im.disconnect();
this.Y.disconnect();this.X.disconnect()};y.prototype.bd=function(){return this.ra};ja.prototype.qd=function(a){this.wa.disconnect();this.wa.connect(a)};ja.prototype.remove=function(){this.wa.disconnect()};ja.prototype.bd=function(){return this.wa};F.prototype.Ha=function(){this.wa.getFloatFrequencyData(this.Ox);this.wa.getByteTimeDomainData(this.At);for(var a=this.wa.fftSize,b=0,c=this.Aj=0,d=0;b<a;b++)d=(this.At[b]-128)/128,0>d&&(d=-d),this.Aj<d&&(this.Aj=d),c+=d*d;this.Aj=n(this.Aj);n(Math.sqrt(c/
a))};F.prototype.qd=function(a){this.wa.disconnect();this.wa.connect(a)};F.prototype.remove=function(){this.wa.disconnect()};F.prototype.bd=function(){return this.wa};O.prototype.Nj=function(a){this.Ca=a};O.prototype.pl=function(){return!!this.Ca};O.prototype.Ha=function(){};J.prototype.Ez=function(){var a,b,c,d;c=a=0;for(b=E.length;a<b;++a)d=E[a],E[c]=d,d.buffer===this?d.stop():++c;E.length=c;this.Ih&&(this.Ih.disconnect(),this.Ih=null);this.Ph&&(this.Ph.disconnect(),this.Ph=null);this.Fe=this.ua=
null};J.prototype.Pq=function(){if(!this.ua&&this.Fe){var a=this;if(v.decodeAudioData)v.decodeAudioData(this.Fe,function(b){a.ua=b;a.Fe=null;var c,d,e;if(ia(a.fm)||V)ia(a.Gk)||(c=a.Gk.ig,c.normalize=a.Bs,c.buffer=b);else if(a.Qh.length){c=0;for(d=a.Qh.length;c<d;c++){b=a.Qh[c];e=new x(a,b.Mt);e.yp(!0);if("undefined"!==typeof b.Ds&&(b.Ca=A.vg(b.Ds),!b.Ca))continue;if(b.Ca){var f=Ra(b.Ca.x,b.Ca.y,-b.Ca.u.yb(),ca,Z,!0),l=Ra(b.Ca.x,b.Ca.y,-b.Ca.u.yb(),ca,Z,!1);e.xp(f,l,Ha(b.Ca.q-b.Ca.u.yb()),b.lo,b.Yo,
b.$o);e.Nj(b.Ca)}else e.xp(b.x,b.y,b.cw,b.lo,b.Yo,b.$o);e.play(a.Ro,a.Xp,a.vm);a.cm&&e.pause();E.push(e)}N(a.Qh)}else e=new x(a,a.fm||""),e.play(a.Ro,a.Xp,a.vm),a.cm&&e.pause(),E.push(e)},function(){a.Wk=!0});else if(this.ua=v.createBuffer(this.Fe,!1),this.Fe=null,ia(this.fm)||V)ia(this.Gk)||(b=this.Gk.ig,b.normalize=this.Bs,b.buffer=this.ua);else{var b=new x(this,this.fm);b.play(this.Ro,this.Xp,this.vm);this.cm&&b.pause();E.push(b)}}};J.prototype.Hr=function(){switch(this.ja){case 0:var a=4<=this.ua.readyState;
a&&(this.Yp=!0);return a||this.Yp;case 1:return!!this.Fe||!!this.ua;case 2:return!0;case 3:return!0}return!1};J.prototype.Oy=function(){switch(this.ja){case 0:return this.Hr();case 1:return!!this.ua;case 2:return!0;case 3:return!0}return!1};J.prototype.Dy=function(){switch(this.ja){case 0:return!!this.ua.error;case 1:return this.Wk}return!1};x.prototype.xg=function(){switch(this.ja){case 0:return this.A.ended;case 1:return 1===this.buffer.ja?!this.me&&!this.sb&&this.A.loop||this.Uc?!1:this.qh:this.A.ended;
case 2:return this.qh;case 3:!0}return!0};x.prototype.pw=function(){return this.me||this.sb?!0:this.xg()};x.prototype.yp=function(a){1===D&&(!this.re&&a?this.xb&&(this.pb||(this.pb=v.createPanner(),this.pb.panningModel="number"===typeof this.pb.panningModel?Eb:["equalpower","HRTF","soundfield"][Eb],this.pb.distanceModel="number"===typeof this.pb.distanceModel?Db:["linear","inverse","exponential"][Db],this.pb.refDistance=Bc,this.pb.maxDistance=Dc,this.pb.rolloffFactor=Ec),this.xb.disconnect(),this.xb.connect(this.pb),
this.pb.connect(g(this.tag)),this.re=!0):this.re&&!a&&this.xb&&(this.pb.disconnect(),this.xb.disconnect(),this.xb.connect(g(this.tag)),this.re=!1))};x.prototype.xp=function(a,b,c,d,e,f){this.re&&1===D&&(this.pb.setPosition(a,b,0),this.pb.setOrientation(Math.cos(S(c)),Math.sin(S(c)),0),this.pb.coneInnerAngle=d,this.pb.coneOuterAngle=e,this.pb.coneOuterGain=f,this.Ps=a,this.Qs=b,this.Ls=c,this.Ms=d,this.Ns=e,this.Os=f)};x.prototype.Nj=function(a){this.re&&1===D&&(this.Vb||(this.Vb=new O),this.Vb.Nj(a))};
x.prototype.Ha=function(a){if(this.re&&1===D&&this.Vb&&this.Vb.pl()&&this.Si()){this.Vb.Ha(a);a=this.Vb.Ca;var b=Ra(a.x,a.y,-a.u.yb(),ca,Z,!0),c=Ra(a.x,a.y,-a.u.yb(),ca,Z,!1);this.pb.setPosition(b,c,0);b=0;"undefined"!==typeof this.Vb.Ca.q&&(b=a.q-a.u.yb(),this.pb.setOrientation(Math.cos(b),Math.sin(b),0))}};x.prototype.play=function(a,c,d,f){var l=this.A;this.pe=a;this.volume=c;d=d||0;f=f||0;switch(this.ja){case 0:1!==l.playbackRate&&(l.playbackRate=1);l.volume!==c*H&&(l.volume=c*H);l.loop!==a&&
(l.loop=a);l.muted&&(l.muted=!1);if(l.currentTime!==d)try{l.currentTime=d}catch(g){}q(this);break;case 1:this.muted=!1;this.Kh=1;if(1===this.buffer.ja)this.xb.gain.value=c*H,this.me||(this.A=v.createBufferSource(),this.A.buffer=this.buffer.ua,this.A.connect(this.xb)),this.A.onended=this.dp,this.pk=this.A,this.A.loop=a,this.qh=!1,0===d?b(this.A,f):e(this.A,d,this.tg(),f);else{1!==l.playbackRate&&(l.playbackRate=1);l.loop!==a&&(l.loop=a);l.volume=c*H;if(l.currentTime!==d)try{l.currentTime=d}catch(h){}q(this)}break;
case 2:(!this.me&&this.sb||0!==d)&&l.seekTo(d);l.play();this.qh=!1;break;case 3:A.tc?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.rh?A.kb.O:A.rf.O)-d;this.Uc=this.sb=this.me=!1};x.prototype.stop=function(){switch(this.ja){case 0:this.A.paused||this.A.pause();break;case 1:1===this.buffer.ja?a(this.A):this.A.paused||this.A.pause();break;case 2:this.A.stop();break;case 3:A.tc&&AppMobi.context.stopSound(this.src)}this.sb=!0;this.Uc=
!1};x.prototype.pause=function(){if(!(this.me||this.sb||this.xg()||this.Uc)){switch(this.ja){case 0:this.A.paused||this.A.pause();break;case 1:1===this.buffer.ja?(this.Kc=this.Zn(!0),this.pe&&(this.Kc=this.Kc%this.tg()),this.Uc=!0,a(this.A)):this.A.paused||this.A.pause();break;case 2:this.A.pause();break;case 3:A.tc&&AppMobi.context.stopSound(this.src)}this.Uc=!0}};x.prototype.Iz=function(){if(!(this.me||this.sb||this.xg())&&this.Uc){switch(this.ja){case 0:q(this);break;case 1:1===this.buffer.ja?
(this.A=v.createBufferSource(),this.A.buffer=this.buffer.ua,this.A.connect(this.xb),this.A.onended=this.dp,this.pk=this.A,this.A.loop=this.pe,this.xb.gain.value=H*this.volume*this.Kh,this.Um(),this.startTime=(this.rh?A.kb.O:A.rf.O)-this.Kc/(this.playbackRate||.001),e(this.A,this.Kc,this.tg())):q(this);break;case 2:this.A.play();break;case 3:A.tc&&AppMobi.context.resumeSound(this.src)}this.Uc=!1}};x.prototype.seek=function(a){if(!(this.me||this.sb||this.xg()))switch(this.ja){case 0:try{this.A.currentTime=
a}catch(b){}break;case 1:if(1===this.buffer.ja)this.Uc?this.Kc=a:(this.pause(),this.Kc=a,this.Iz());else try{this.A.currentTime=a}catch(c){}break;case 3:A.tc&&AppMobi.context.seekSound(this.src,a)}};x.prototype.Dz=function(a){1===this.ja&&(this.re?(this.pb.disconnect(),this.pb.connect(a)):(this.xb.disconnect(),this.xb.connect(a)))};x.prototype.tg=function(){var a=0;switch(this.ja){case 0:"undefined"!==typeof this.A.duration&&(a=this.A.duration);break;case 1:a=this.buffer.ua.duration;break;case 2:a=
this.A.getDuration();break;case 3:A.tc&&(a=AppMobi.context.getDurationSound(this.src))}return a};x.prototype.Zn=function(a){var b=this.tg(),c=0;switch(this.ja){case 0:"undefined"!==typeof this.A.currentTime&&(c=this.A.currentTime);break;case 1:if(1===this.buffer.ja){if(this.Uc)return this.Kc;c=(this.rh?A.kb.O:A.rf.O)-this.startTime}else"undefined"!==typeof this.A.currentTime&&(c=this.A.currentTime);break;case 3:A.tc&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.pe&&
c>b&&(c=b);return c};x.prototype.Si=function(){return!this.Uc&&!this.me&&!this.sb&&!this.xg()};x.prototype.Xz=function(){return!this.me&&!this.sb&&!this.xg()};x.prototype.dA=function(){var a=this.volume*H;isFinite(a)||(a=0);switch(this.ja){case 0:"undefined"!==typeof this.A.volume&&this.A.volume!==a&&(this.A.volume=a);break;case 1:1===this.buffer.ja?this.xb.gain.value=a*this.Kh:"undefined"!==typeof this.A.volume&&this.A.volume!==a&&(this.A.volume=a)}};x.prototype.Rk=function(a){switch(this.ja){case 0:this.A.muted!==
!!a&&(this.A.muted=!!a);break;case 1:1===this.buffer.ja?(this.Kh=a?0:1,this.xb.gain.value=H*this.volume*this.Kh):this.A.muted!==!!a&&(this.A.muted=!!a)}};x.prototype.Tz=function(){this.vh=!0;this.Rk(this.vh||this.Vi)};x.prototype.pt=function(a){this.Vi=!!a;this.Rk(this.vh||this.Vi)};x.prototype.Um=function(){var a=this.playbackRate;this.rh&&(a*=A.Xg);switch(this.ja){case 0:this.A.playbackRate!==a&&(this.A.playbackRate=a);break;case 1:1===this.buffer.ja?this.A.playbackRate.value!==a&&(this.A.playbackRate.value=
a):this.A.playbackRate!==a&&(this.A.playbackRate=a)}};x.prototype.Vz=function(b){switch(this.ja){case 0:b?this.Si()?(this.jd=!0,this.A.pause()):this.jd=!1:this.jd&&(this.A.play(),this.jd=!1);break;case 1:b?this.Si()?(this.jd=!0,1===this.buffer.ja?(this.Kc=this.Zn(!0),this.pe&&(this.Kc=this.Kc%this.tg()),a(this.A)):this.A.pause()):this.jd=!1:this.jd&&(1===this.buffer.ja?(this.A=v.createBufferSource(),this.A.buffer=this.buffer.ua,this.A.connect(this.xb),this.A.onended=this.dp,this.pk=this.A,this.A.loop=
this.pe,this.xb.gain.value=H*this.volume*this.Kh,this.Um(),this.startTime=(this.rh?A.kb.O:A.rf.O)-this.Kc/(this.playbackRate||.001),e(this.A,this.Kc,this.tg())):this.A.play(),this.jd=!1);break;case 2:b?this.Si()?(this.A.pause(),this.jd=!0):this.jd=!1:this.jd&&(this.jd=!1,this.A.play())}};W.R=function(a){this.type=a;A=this.b=a.b;Q=this;this.Wc=null;this.ij=-600;this.b.xl&&(pb=!0);!(this.b.Xi||this.b.sl&&(this.b.wo||this.b.tl))||this.b.wl||this.b.jb||this.b.Fr||pb||(Fc=!0);v=null;"undefined"!==typeof AudioContext?
(D=1,v=new AudioContext):"undefined"!==typeof webkitAudioContext&&(D=1,v=new webkitAudioContext);this.b.Xi&&v&&(v.close&&v.close(),"undefined"!==typeof AudioContext?v=new AudioContext:"undefined"!==typeof webkitAudioContext&&(v=new webkitAudioContext));1!==D&&(this.b.Qe&&"undefined"!==typeof window.Media?D=2:this.b.Gr&&(D=3));2===D&&(R=location.href,a=R.lastIndexOf("/"),-1<a&&(R=R.substr(0,a+1)),R=R.replace("file://",""));if(this.b.Qy&&this.b.Ry&&"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.ge(this);else{if(this.b.tc)K=this.b.sl;else try{K=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')&&!this.b.yl}catch(b){K=!1}this.b.bk(this)}};var wa=W.R.prototype;wa.K=function(){this.b.eh=this;P=this.B[0];this.ff=this.B[1];this.pz=0!==this.B[2];this.zs=0;Eb=this.B[3];Db=this.B[4];this.ij=-this.B[5];Bc=this.B[6];Dc=this.B[7];Ec=this.B[8];this.Wc=new O;var a=this.b.T||this.b.width,b=this.b.S||this.b.height;1===D&&(v.listener.setPosition(a/2,b/2,this.ij),v.listener.setOrientation(0,0,
1,0,-1,0),window.c2OnAudioMicStream=function(a,b){La&&La.disconnect();Fb=b.toLowerCase();La=v.createMediaStreamSource(a);La.connect(g(Fb))});this.b.zq(function(a){Q.jz(a)});var c=this;this.b.qk(function(a){c.xj(a)})};wa.xj=function(a){var b,c,d;b=0;for(c=E.length;b<c;b++)d=E[b],d.Vb&&d.Vb.Ca===a&&(d.Vb.Ca=null,d.re&&d.Si()&&d.pe&&d.stop());this.Wc.Ca===a&&(this.Wc.Ca=null)};wa.Ta=function(){var a={silent:V,masterVolume:H,listenerZ:this.ij,listenerUid:this.Wc.pl()?this.Wc.Ca.uid:-1,playing:[],effects:{}},
b=a.playing,c,d,e,f,l,g;c=0;for(d=E.length;c<d;c++)e=E[c],!e.Xz()||3===this.ff||e.oe&&1===this.ff||!e.oe&&2===this.ff||(f=e.Zn(),e.pe&&(f=f%e.tg()),f={tag:e.tag,buffersrc:e.buffer.src,is_music:e.oe,playbackTime:f,volume:e.volume,looping:e.pe,muted:e.vh,playbackRate:e.playbackRate,paused:e.Uc,resume_position:e.Kc},e.re&&(f.pan={},g=f.pan,e.Vb&&e.Vb.pl()?g.objUid=e.Vb.Ca.uid:(g.x=e.Ps,g.y=e.Qs,g.a=e.Ls),g.ia=e.Ms,g.oa=e.Ns,g.og=e.Os),b.push(f));b=a.effects;for(l in aa)if(aa.hasOwnProperty(l)){e=[];
c=0;for(d=aa[l].length;c<d;c++)e.push({type:aa[l][c].type,params:aa[l][c].cb});b[l]=e}return a};var Za=[];wa.bb=function(a){var b=a.silent;H=a.masterVolume;this.ij=a.listenerZ;this.Wc.Nj(null);var c=a.listenerUid;-1!==c&&(this.Wc.Il=c,Za.push(this.Wc));var c=a.playing,d,e,g,k,n,p,t,q,x,w,J;if(3!==this.ff)for(d=0,e=E.length;d<e;d++)x=E[d],x.oe&&1===this.ff||(x.oe||2!==this.ff)&&x.stop();for(n in aa)if(aa.hasOwnProperty(n))for(d=0,e=aa[n].length;d<e;d++)aa[n][d].remove();Va(aa);for(n in a.effects)if(a.effects.hasOwnProperty(n))for(p=
a.effects[n],d=0,e=p.length;d<e;d++)switch(g=p[d].type,w=p[d].params,g){case "filter":I(n,new f(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "delay":I(n,new r(w[0],w[1],w[2]));break;case "convolve":g=w[2];x=this.il(g,!1);x.ua?g=new h(x.ua,w[0],w[1],g):(g=new h(null,w[0],w[1],g),x.Bs=w[0],x.Gk=g);I(n,g);break;case "flanger":I(n,new M(w[0],w[1],w[2],w[3],w[4]));break;case "phaser":I(n,new G(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "gain":I(n,new u(w[0]));break;case "tremolo":I(n,new m(w[0],w[1]));break;
case "ringmod":I(n,new l(w[0],w[1]));break;case "distortion":I(n,new y(w[0],w[1],w[2],w[3],w[4]));break;case "compressor":I(n,new ja(w[0],w[1],w[2],w[3],w[4]));break;case "analyser":I(n,new F(w[0],w[1]))}d=0;for(e=c.length;d<e;d++)3===this.ff||(a=c[d],g=a.buffersrc,k=a.is_music,n=a.tag,p=a.playbackTime,t=a.looping,q=a.volume,J=(w=a.pan)&&w.hasOwnProperty("objUid")?w.objUid:-1,k&&1===this.ff)||!k&&2===this.ff||((x=this.hr(g,n,k,t,q))?(x.Kc=a.resume_position,x.yp(!!w),x.play(t,q,p),x.Um(),x.dA(),x.Rk(x.vh||
x.Vi),a.paused&&x.pause(),a.muted&&x.Tz(),x.Rk(x.vh||x.Vi),w&&(-1!==J?(x.Vb=x.Vb||new O,x.Vb.Il=J,Za.push(x.Vb)):x.xp(w.x,w.y,w.a,w.ia,w.oa,w.og))):(x=this.il(g,k),x.vm=p,x.cm=a.paused,w&&(-1!==J?x.Qh.push({Ds:J,lo:w.ia,Yo:w.oa,$o:w.og,Mt:n}):x.Qh.push({x:w.x,y:w.y,cw:w.a,lo:w.ia,Yo:w.oa,$o:w.og,Mt:n}))));if(b&&!V){d=0;for(e=E.length;d<e;d++)E[d].pt(!0);V=!0}else if(!b&&V){d=0;for(e=E.length;d<e;d++)E[d].pt(!1);V=!1}};wa.Hd=function(){var a,b,c,d;a=0;for(b=Za.length;a<b;a++)c=Za[a],d=this.b.vg(c.Il),
c.Nj(d),c.Il=-1,d&&(ca=d.x,Z=d.y);N(Za)};wa.jz=function(a){if(!this.pz){!a&&v&&v.resume&&(v.resume(),va=!1);var b,c;b=0;for(c=E.length;b<c;b++)E[b].Vz(a);a&&v&&v.suspend&&(v.suspend(),va=!0)}};wa.Ha=function(){var a=this.b.lg,b,c,d;b=0;for(c=E.length;b<c;b++)d=E[b],d.Ha(a),0!==P&&d.Um();var e,f;for(e in aa)if(aa.hasOwnProperty(e))for(d=aa[e],b=0,c=d.length;b<c;b++)f=d[b],f.Ha&&f.Ha();1===D&&this.Wc.pl()&&(this.Wc.Ha(a),ca=this.Wc.Ca.x,Z=this.Wc.Ca.y,v.listener.setPosition(this.Wc.Ca.x,this.Wc.Ca.y,
this.ij))};var $a=[];wa.Uz=function(a){var b,c,d,e,f,l=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],e=d[0],d=2*d[1],(f=4<e.length&&".ogg"===e.substr(e.length-4))&&K||!f&&!K)$a.push({filename:e,size:d,Ca:null}),l+=d;return l};wa.Zz=function(){var a,b,c,d;a=0;for(b=$a.length;a<b;++a)c=$a[a],d=this.b.Pn+c.filename,c.Ca=this.il(d,!1)};wa.cy=function(){var a=0,b,c,d;b=0;for(c=$a.length;b<c;++b)d=$a[b],d.Ca.Oy()||d.Ca.Dy()||this.b.jb||this.b.tl?a+=d.size:d.Ca.Hr()&&(a+=Math.floor(d.size/2));return a};wa.Fz=function(){var a,
b,c,d;c=a=0;for(b=B.length;a<b;++a)d=B[a],B[c]=d,d.oe?d.Ez():++c;B.length=c};wa.il=function(a,b){var c,d,e,f=null;c=0;for(d=B.length;c<d;c++)if(e=B[c],e.src===a){f=e;break}f||(pb&&b&&this.Fz(),f=new J(a,b),B.push(f));return f};wa.hr=function(a,b,c,d,e){var f,l,g;f=0;for(l=E.length;f<l;f++)if(g=E[f],g.src===a&&(g.pw()||c))return g.tag=b,g;a=this.il(a,c);if(!a.ua)return"<preload>"!==b&&(a.fm=b,a.Ro=d,a.Xp=e),null;g=new x(a,b);E.push(g);return g};var Fa=[];C.prototype.mk=function(a){return jb(X,a)};
W.n=new C;Y.prototype.Play=function(a,b,c,d){!V&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1<c&&(c=1),L=this.hr(this.b.Pn+a[0]+(K?".ogg":".m4a"),d,a[1],0!==b,c))&&(L.yp(!1),L.play(0!==b,c,0,this.zs),this.zs=0)};Y.prototype.Wv=function(a){w(a);var b;a=0;for(b=Fa.length;a<b;a++)Fa[a].stop()};W.F=new Y;W.ea=new function(){}})();function sc(d){this.b=d}
(function(){function d(){k&&c&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(a){b.iz(a)})}function q(){}function p(){}function t(b){console&&console.warn&&console.warn("Fullscreen request failed: ",b);a.setSize(window.innerWidth,window.innerHeight)}var n=sc.prototype;n.V=function(a){this.Aa=a;this.b=a.b};var g=n.V.prototype;g.K=function(){};var k=!1,c=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.bg){var a=document.createElement("script");
a.onload=function(){k=!0;d()};a.src="offlineClient.js";document.head.appendChild(a)}});var b=null;g.Is=function(){c=!0;d()};n.R=function(a){this.type=a;this.b=a.b};g=n.R.prototype;g.K=function(){var a=this;window.addEventListener("resize",function(){a.b.trigger(sc.prototype.n.qv,a)});b=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){a.b.trigger(sc.prototype.n.nv,a)}),window.addEventListener("offline",function(){a.b.trigger(sc.prototype.n.kv,a)}));this.b.tc||
(document.addEventListener("appMobi.device.update.available",function(){a.b.trigger(sc.prototype.n.jn,a)}),document.addEventListener("backbutton",function(){a.b.trigger(sc.prototype.n.lk,a)}),document.addEventListener("menubutton",function(){a.b.trigger(sc.prototype.n.qq,a)}),document.addEventListener("searchbutton",function(){a.b.trigger(sc.prototype.n.rv,a)}),document.addEventListener("tizenhwkey",function(b){var c;switch(b.keyName){case "back":c=a.b.trigger(sc.prototype.n.lk,a);!c&&window.tizen&&
window.tizen.application.getCurrentApplication().exit();break;case "menu":(c=a.b.trigger(sc.prototype.n.qq,a))||b.preventDefault()}}));this.b.yl&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(b){a.b.trigger(sc.prototype.n.lk,a)&&(b.handled=!0)}):this.b.Lr&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!a.b.trigger(sc.prototype.n.lk,a)});this.b.zq(function(b){b?a.b.trigger(sc.prototype.n.ov,a):
a.b.trigger(sc.prototype.n.pv,a)})};g.iz=function(a){a=a.data.type;"downloading-update"===a?this.b.trigger(sc.prototype.n.tv,this):"update-ready"===a||"update-pending"===a?this.b.trigger(sc.prototype.n.jn,this):"offline-ready"===a&&this.b.trigger(sc.prototype.n.lv,this)};q.prototype.nv=function(){return!0};q.prototype.kv=function(){return!0};q.prototype.jn=function(){return!0};q.prototype.pv=function(){return!0};q.prototype.ov=function(){return!0};q.prototype.qv=function(){return!0};q.prototype.lk=
function(){return!0};q.prototype.qq=function(){return!0};q.prototype.rv=function(){return!0};q.prototype.tv=function(){return!0};q.prototype.jn=function(){return!0};q.prototype.lv=function(){return!0};n.n=new q;var e=!0,a=null;p.prototype.zv=function(b){this.b.jb?ga("[Construct 2] Requesting fullscreen is not supported on this platform - the request has been ignored"):(2<=b&&(b+=1),6===b&&(b=2),this.b.Py?this.b.Ly?debuggerFullscreen(!0):!this.b.Ag&&window.nwgui&&(window.nwgui.Window.get().enterFullscreen(),
this.b.Ag=!0,this.b.Ne=2<=b?b:0):document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement||document.fullScreen||document.fullScreenElement||(this.b.Ne=2<=b?b:0,b=document.documentElement,e&&(e=!1,a=this.b,b.addEventListener("mozfullscreenerror",t),b.addEventListener("webkitfullscreenerror",t),b.addEventListener("MSFullscreenError",t),b.addEventListener("fullscreenerror",t)),b.requestFullscreen?b.requestFullscreen():b.mozRequestFullScreen?b.mozRequestFullScreen():b.msRequestFullscreen?
b.msRequestFullscreen():b.webkitRequestFullScreen&&("undefined"!==typeof Element&&"undefined"!==typeof Element.ALLOW_KEYBOARD_INPUT?b.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):b.webkitRequestFullScreen())))};n.F=new p;n.ea=new function(){}})();function pc(d){this.b=d}
(function(){function d(){this.name="";this.Kj=0;this.cb=[]}function q(){c++;c===k.length&&k.push(new d);return k[c]}function p(){}function t(){}function n(){}var g=pc.prototype;g.V=function(b){this.Aa=b;this.b=b.b};g.V.prototype.K=function(){};g.R=function(b){this.type=b;this.b=b.b};var k=[],c=-1;g.R.prototype.K=function(){var b=this;window.c2_callFunction=function(d,a){var f,g,h,k=q();k.name=d.toLowerCase();k.Kj=0;if(a)for(k.cb.length=a.length,f=0,g=a.length;f<g;++f)h=a[f],k.cb[f]="number"===typeof h||
"string"===typeof h?h:"boolean"===typeof h?h?1:0:0;else N(k.cb);b.b.trigger(pc.prototype.n.nk,b,k.name);c--;return k.Kj}};p.prototype.nk=function(b){var d=0>c?null:k[c];return d?jb(b,d.name):!1};p.prototype.ru=function(b,d,a){var f=0>c?null:k[c];if(!f)return!1;b=z(b);return 0>b||b>=f.cb.length?!1:ec(f.cb[b],d,a)};g.n=new p;t.prototype.CallFunction=function(b,d){var a=q();a.name=b.toLowerCase();a.Kj=0;Ba(a.cb,d);this.b.trigger(pc.prototype.n.nk,this,a.name);c--};g.F=new t;n.prototype.wv=function(b,
d){d=z(d);var a=0>c?null:k[c];a?0<=d&&d<a.cb.length?b.Am(a.cb[d]):b.Ga(0):b.Ga(0)};n.prototype.mu=function(b,d){var a=q();a.name=d.toLowerCase();a.Kj=0;N(a.cb);var f,g;f=2;for(g=arguments.length;f<g;f++)a.cb.push(arguments[f]);this.b.trigger(pc.prototype.n.nk,this,a.name);c--;b.Am(a.Kj)};g.ea=new n})();function tc(d){this.b=d}
(function(){function d(){}var q=tc.prototype;q.V=function(d){this.Aa=d;this.b=d.b};q.V.prototype.K=function(){};q.R=function(d){this.type=d;this.b=d.b;this.Ah=Array(256);this.dk=Array(256);this.pf=0};var p=q.R.prototype;p.K=function(){var d=this;this.b.jb||(jQuery(document).keydown(function(g){d.bp(g)}),jQuery(document).keyup(function(g){d.cp(g)}))};var t=[32,33,34,35,36,37,38,39,40,44];p.bp=function(d){var g=!1;window!=window.top&&-1<t.indexOf(d.which)&&(d.preventDefault(),g=!0,d.stopPropagation());
if(this.Ah[d.which])this.dk[d.which]&&!g&&d.preventDefault();else{this.Ah[d.which]=!0;this.pf=d.which;this.b.ed=!0;this.b.trigger(tc.prototype.n.iq,this);var k=this.b.trigger(tc.prototype.n.lq,this),c=this.b.trigger(tc.prototype.n.cv,this);this.b.ed=!1;if(k||c)this.dk[d.which]=!0,g||d.preventDefault()}};p.cp=function(d){this.Ah[d.which]=!1;this.pf=d.which;this.b.ed=!0;this.b.trigger(tc.prototype.n.jq,this);var g=this.b.trigger(tc.prototype.n.nq,this),k=this.b.trigger(tc.prototype.n.mq,this);this.b.ed=
!1;if(g||k||this.dk[d.which])this.dk[d.which]=!0,d.preventDefault()};p.Sf=function(){var d;for(d=0;256>d;++d)if(this.Ah[d]){this.Ah[d]=!1;this.pf=d;this.b.trigger(tc.prototype.n.jq,this);var g=this.b.trigger(tc.prototype.n.nq,this),k=this.b.trigger(tc.prototype.n.mq,this);if(g||k)this.dk[d]=!0}};p.Ta=function(){return{triggerKey:this.pf}};p.bb=function(d){this.pf=d.triggerKey};d.prototype.Mu=function(d){return this.Ah[d]};d.prototype.lq=function(d){return d===this.pf};d.prototype.iq=function(){return!0};
d.prototype.jq=function(){return!0};d.prototype.nq=function(d){return d===this.pf};d.prototype.cv=function(d){return d===this.pf};d.prototype.mq=function(d){return d===this.pf};q.n=new d;q.F=new function(){};q.ea=new function(){}})();function uc(d){this.b=d}
(function(){function d(){}function q(){}function p(){}var t=uc.prototype;t.V=function(c){this.Aa=c;this.b=c.b};t.V.prototype.K=function(){};t.R=function(c){this.type=c;this.b=c.b;this.eg=Array(4);this.Tt=this.Rm=this.Yg=this.Ze=this.Ye=0;this.ho=!1};var n=t.R.prototype;n.K=function(){var c=this;if(!this.b.jb){jQuery(document).mousemove(function(b){c.gz(b)});jQuery(document).mousedown(function(b){c.fz(b)});jQuery(document).mouseup(function(b){c.hz(b)});jQuery(document).dblclick(function(b){c.ez(b)});
var b=function(b){c.kz(b)};document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var g={left:0,top:0};n.gz=function(c){var b=this.b.jb?g:jQuery(this.b.canvas).offset();this.Ye=c.pageX-b.left;this.Ze=c.pageY-b.top};n.ws=function(){return 0<this.b.Cc?!0:0<=this.Ye&&0<=this.Ze&&this.Ye<this.b.width&&this.Ze<this.b.height};n.fz=function(c){this.ws()&&(this.eg[c.which]=!0,this.b.ed=!0,this.b.trigger(uc.prototype.n.hq,this),this.Yg=c.which-1,this.Rm=0,this.b.trigger(uc.prototype.n.dn,
this),this.b.trigger(uc.prototype.n.gn,this),this.b.ed=!1)};n.hz=function(c){this.eg[c.which]&&(this.b.qr&&!this.b.Lf&&c.preventDefault(),this.b.qr=!0,this.eg[c.which]=!1,this.b.ed=!0,this.Yg=c.which-1,this.b.trigger(uc.prototype.n.rq,this),this.b.ed=!1)};n.ez=function(c){this.ws()&&(c.preventDefault(),this.b.ed=!0,this.Yg=c.which-1,this.Rm=1,this.b.trigger(uc.prototype.n.dn,this),this.b.trigger(uc.prototype.n.gn,this),this.b.ed=!1)};n.kz=function(c){this.Tt=0>(c.wheelDelta?c.wheelDelta:c.detail?
-c.detail:0)?0:1;this.ho=!1;this.b.ed=!0;this.b.trigger(uc.prototype.n.vv,this);this.b.ed=!1;this.ho&&kb(c)&&c.preventDefault()};n.Sf=function(){var c,b;c=0;for(b=this.eg.length;c<b;++c)this.eg[c]&&(this.eg[c]=!1,this.Yg=c-1,this.b.trigger(uc.prototype.n.rq,this))};d.prototype.dn=function(c,b){return c===this.Yg&&b===this.Rm};d.prototype.hq=function(){return!0};d.prototype.Gu=function(c){return this.eg[c+1]};d.prototype.rq=function(c){return c===this.Yg};d.prototype.Qu=function(c){var b=this.b.Bi();
return Ta(this.b.It(c,this.Ye,this.Ze,b.Ni),b.Ni)};d.prototype.gn=function(c,b,d){return c!==this.Yg||b!==this.Rm?!1:this.b.It(d,this.Ye,this.Ze,!1)};d.prototype.vv=function(c){this.ho=!0;return c===this.Tt};t.n=new d;var k=null;q.prototype.Dv=function(c){this.b.jb||(c="auto pointer text crosshair move help wait none".split(" ")[c],k!==c&&(k=c,document.body.style.cursor=c))};t.F=new q;p.prototype.ln=function(c,b){var d,a,f,g,h;ia(b)?(d=this.b.Ci(0),a=d.scale,f=d.fe,g=d.xd,h=d.q,d.scale=1,d.fe=1,d.xd=
1,d.q=0,c.U(d.qc(this.Ye,this.Ze,!0)),d.scale=a,d.fe=f,d.xd=g,d.q=h):(d=ka(b)?this.b.Ci(b):this.b.Yn(b))?c.U(d.qc(this.Ye,this.Ze,!0)):c.U(0)};p.prototype.mn=function(c,b){var d,a,f,g,h;ia(b)?(d=this.b.Ci(0),a=d.scale,f=d.fe,g=d.yd,h=d.q,d.scale=1,d.fe=1,d.yd=1,d.q=0,c.U(d.qc(this.Ye,this.Ze,!1)),d.scale=a,d.fe=f,d.yd=g,d.q=h):(d=ka(b)?this.b.Ci(b):this.b.Yn(b))?c.U(d.qc(this.Ye,this.Ze,!1)):c.U(0)};t.ea=new p})();function vc(d){this.b=d}
(function(){function d(d){this.Pa=d;this.Ua=!1;this.q=this.speed=this.y=this.x=0;this.opacity=1;this.xf=this.ph=this.size=this.ml=0}function q(){}var p=vc.prototype;p.V=function(d){this.Aa=d;this.b=d.b};var t=p.V.prototype;t.K=function(){this.L||(this.M=new Image,this.M.Hk=this.Zj,this.la=null,this.b.Ym(this.M,this.Yj))};t.Oh=function(){this.L||(this.la=null)};t.zj=function(){this.L||!this.k.length||this.la||(this.la=this.b.D.Eh(this.M,!0,this.b.Na,this.$j))};t.Fh=function(){this.L||this.la||!this.b.D||
(this.la=this.b.D.Eh(this.M,!0,this.b.Na,this.$j))};t.ck=function(){this.L||this.k.length||!this.la||(this.b.D.deleteTexture(this.la),this.la=null)};t.Ej=function(d){d.drawImage(this.M,0,0)};d.prototype.init=function(){var d=this.Pa;this.x=d.x-d.$m/2+Math.random()*d.$m;this.y=d.y-d.an/2+Math.random()*d.an;this.speed=d.so-d.Hm/2+Math.random()*d.Hm;this.q=d.q-d.Im/2+Math.random()*d.Im;this.opacity=d.qo;this.size=d.ro-d.Gm/2+Math.random()*d.Gm;this.ml=d.fo-d.nl/2+Math.random()*d.nl;this.xf=this.ph=0};
d.prototype.Ha=function(d){var k=this.Pa;this.x+=Math.cos(this.q)*this.speed*d;this.y+=Math.sin(this.q)*this.speed*d;this.y+=this.ph*d;this.speed+=k.Kb*d;this.size+=this.ml*d;this.ph+=k.hb*d;this.xf+=d;1>this.size?this.Ua=!1:(0!==k.fj&&(this.q+=Math.random()*k.fj*d-k.fj*d/2),0!==k.hj&&(this.speed+=Math.random()*k.hj*d-k.hj*d/2),0!==k.gj&&(this.opacity+=Math.random()*k.gj*d-k.gj*d/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=k.hh&&this.xf>=k.timeout&&(this.Ua=!1),2===k.hh&&
0>=this.speed&&(this.Ua=!1))};d.prototype.Sc=function(d){var k=this.Pa.opacity*this.opacity;if(0!==k){0===this.Pa.hh&&(k*=1-this.xf/this.Pa.timeout);d.globalAlpha=k;var k=this.x-this.size/2,c=this.y-this.size/2;this.Pa.b.Ic&&(k=k+.5|0,c=c+.5|0);d.drawImage(this.Pa.type.M,k,c,this.size,this.size)}};d.prototype.Nb=function(d){var k=this.Pa.opacity*this.opacity;0===this.Pa.hh&&(k*=1-this.xf/this.Pa.timeout);var c=this.size,b=c*this.Pa.Ts,e=this.x-c/2,a=this.y-c/2;this.Pa.b.Ic&&(e=e+.5|0,a=a+.5|0);1>
b||0===k||(b<d.$y||b>d.To?(d.gf(k),d.Sh(e,a,e+c,a,e+c,a+c,e,a+c)):d.qz(this.x,this.y,b,k))};d.prototype.left=function(){return this.x-this.size/2};d.prototype.right=function(){return this.x+this.size/2};d.prototype.top=function(){return this.y-this.size/2};d.prototype.bottom=function(){return this.y+this.size/2};p.R=function(d){this.type=d;this.b=d.b};var t=p.R.prototype,n=[];t.K=function(){var d=this.B;this.om=d[0];this.Im=S(d[1]);this.Zh=d[2];this.Dp=!0;this.so=d[3];this.ro=d[4];this.qo=d[5]/100;
this.fo=d[6];this.$m=d[7];this.an=d[8];this.Hm=d[9];this.Gm=d[10];this.nl=d[11];this.Kb=d[12];this.hb=d[13];this.fj=d[14];this.hj=d[15];this.gj=d[16];this.hh=d[17];this.timeout=d[18];this.Og=0;this.Ts=1;this.Yl=this.x;this.$l=this.y;this.Zl=this.x;this.Xl=this.y;this.fw(function(d){d.Ma.set(d.Yl,d.$l,d.Zl,d.Xl);d.gc.Yh(d.Ma);d.zk=!1;d.Vp();d.bu()});this.Yb||(this.uc=[]);this.b.bk(this);this.type.Fh();if(1===this.Zh)for(d=0;d<this.om;d++)this.pn().opacity=0;this.bl=!0};t.Ta=function(){var d={r:this.om,
sc:this.Im,st:this.Zh,s:this.Dp,isp:this.so,isz:this.ro,io:this.qo,gr:this.fo,xr:this.$m,yr:this.an,spr:this.Hm,szr:this.Gm,grnd:this.nl,acc:this.Kb,g:this.hb,lar:this.fj,lsr:this.hj,lor:this.gj,dm:this.hh,to:this.timeout,pcc:this.Og,ft:this.bl,p:[]},k,c,b,e=d.p;k=0;for(c=this.uc.length;k<c;k++)b=this.uc[k],e.push([b.x,b.y,b.speed,b.q,b.opacity,b.ml,b.size,b.ph,b.xf]);return d};t.bb=function(d){this.om=d.r;this.Im=d.sc;this.Zh=d.st;this.Dp=d.s;this.so=d.isp;this.ro=d.isz;this.qo=d.io;this.fo=d.gr;
this.$m=d.xr;this.an=d.yr;this.Hm=d.spr;this.Gm=d.szr;this.nl=d.grnd;this.Kb=d.acc;this.hb=d.g;this.fj=d.lar;this.hj=d.lsr;this.gj=d.lor;this.hh=d.dm;this.timeout=d.to;this.Og=d.pcc;this.bl=d.ft;n.push.apply(n,this.uc);N(this.uc);var k,c,b,e=d.p;d=0;for(k=e.length;d<k;d++)c=this.pn(),b=e[d],c.x=b[0],c.y=b[1],c.speed=b[2],c.q=b[3],c.opacity=b[4],c.ml=b[5],c.size=b[6],c.ph=b[7],c.xf=b[8]};t.Vd=function(){n.push.apply(n,this.uc);N(this.uc)};t.pn=function(){var g;n.length?(g=n.pop(),g.Pa=this):g=new d(this);
this.uc.push(g);g.Ua=!0;return g};t.Ha=function(){var d=this.b.Oe(this),k,c,b,e;if(0===this.Zh&&this.Dp)for(this.Og+=d*this.om,c=z(this.Og),this.Og-=c,k=0;k<c;k++)b=this.pn(),b.init();this.Yl=this.x;this.$l=this.y;this.Zl=this.x;this.Xl=this.y;e=k=0;for(c=this.uc.length;k<c;k++)b=this.uc[k],this.uc[e]=b,this.b.ca=!0,1===this.Zh&&this.bl&&b.init(),b.Ha(d),b.Ua?(b.left()<this.Yl&&(this.Yl=b.left()),b.right()>this.Zl&&(this.Zl=b.right()),b.top()<this.$l&&(this.$l=b.top()),b.bottom()>this.Xl&&(this.Xl=
b.bottom()),e++):n.push(b);Aa(this.uc,e);this.C();this.bl=!1;1===this.Zh&&0===this.uc.length&&this.b.ge(this)};t.Sc=function(d){var k,c,b,e=this.u;k=0;for(c=this.uc.length;k<c;k++)b=this.uc[k],b.right()>=e.xa&&b.bottom()>=e.ya&&b.left()<=e.Fa&&b.top()<=e.Ea&&b.Sc(d)};t.Nb=function(d){this.Ts=this.u.Dc();d.wc(this.type.la);var k,c,b,e=this.u;k=0;for(c=this.uc.length;k<c;k++)b=this.uc[k],b.right()>=e.xa&&b.bottom()>=e.ya&&b.left()<=e.Fa&&b.top()<=e.Ea&&b.Nb(d)};p.n=new function(){};q.prototype.kn=function(d){this.hb=
d};p.F=new q;p.ea=new function(){}})();function U(d){this.b=d}
(function(){function d(){if(0===this.Hn.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.$h?b.drawImage(this.M,this.Mh,this.Nh,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.M,0,0,this.width,this.height);this.Hn=a.toDataURL("image/png")}return this.Hn}function q(){}function p(a){a[0]=0;a[1]=0;a[2]=0;h.push(a)}function t(a,b){return a<b?""+a+","+b:""+b+","+a}function n(a,b,c,d){b=b.uid;c=c.uid;var e=t(b,c);if(a.hasOwnProperty(e))a[e][2]=
d;else{var f=h.length?h.pop():[0,0,0];f[0]=b;f[1]=c;f[2]=d;a[e]=f}}function g(a,b,c){b=t(b.uid,c.uid);a.hasOwnProperty(b)&&(p(a[b]),delete a[b])}function k(a,b,c){b=t(b.uid,c.uid);if(a.hasOwnProperty(b))return M=a[b][2],!0;M=-2;return!1}function c(){}function b(){}var e=U.prototype;e.V=function(a){this.Aa=a;this.b=a.b};var a=e.V.prototype;a.K=function(){if(!this.L){var a,b,c,e,f,g,h,m,k;this.Id=[];this.Ii=!1;a=0;for(b=this.Pc.length;a<b;a++){f=this.Pc[a];h={};h.name=f[0];h.speed=f[1];h.loop=f[2];
h.op=f[3];h.pp=f[4];h.Us=f[5];h.ma=f[6];h.frames=[];c=0;for(e=f[7].length;c<e;c++)g=f[7][c],m={},m.Yj=g[0],m.Zj=g[1],m.Mh=g[2],m.Nh=g[3],m.width=g[4],m.height=g[5],m.duration=g[6],m.Ec=g[7],m.Fc=g[8],m.no=g[9],m.gm=g[10],m.Vs=g[11],m.$h=0!==m.width,m.Hn="",m.eB=d,k={left:0,top:0,right:1,bottom:1},m.Ap=k,m.la=null,(k=this.b.Mx(g[0]))?m.M=k:(m.M=new Image,m.M.sw=g[0],m.M.Hk=g[1],m.M.mw=null,this.b.Ym(m.M,g[0])),h.frames.push(m),this.Id.push(m);this.Pc[a]=h}}};a.au=function(){var a,b,c;a=0;for(b=this.k.length;a<
b;a++)c=this.k[a],c.Jk=c.Mb.la};a.Oh=function(){if(!this.L){var a,b,c;a=0;for(b=this.Id.length;a<b;++a)c=this.Id[a],c.M.mw=null,c.la=null;this.Ii=!1;this.au()}};a.zj=function(){if(!this.L&&this.k.length){var a,b,c;a=0;for(b=this.Id.length;a<b;++a)c=this.Id[a],c.la=this.b.D.Eh(c.M,!1,this.b.Na,c.Vs);this.au()}};a.Fh=function(){if(!this.L&&!this.Ii&&this.b.D){var a,b,c;a=0;for(b=this.Id.length;a<b;++a)c=this.Id[a],c.la=this.b.D.Eh(c.M,!1,this.b.Na,c.Vs);this.Ii=!0}};a.ck=function(){if(!this.L&&!this.k.length&&
this.Ii){var a,b,c;a=0;for(b=this.Id.length;a<b;++a)c=this.Id[a],this.b.D.deleteTexture(c.la),c.la=null;this.Ii=!1}};var f=[];a.Ej=function(a){var b,c,d;N(f);b=0;for(c=this.Id.length;b<c;++b)d=this.Id[b].M,-1===f.indexOf(d)&&(a.drawImage(d,0,0),f.push(d))};e.R=function(a){this.type=a;this.b=a.b;a=this.type.Pc[0].frames[0].gm;this.Yb?this.Ba.Pj(a):this.Ba=new db(a)};var r=e.R.prototype;r.K=function(){this.visible=0===this.B[0];this.oo=this.Bo=!1;this.Ge=0!==this.B[3];this.Qa=this.fr(this.B[1])||this.type.Pc[0];
this.P=this.B[2];0>this.P&&(this.P=0);this.P>=this.Qa.frames.length&&(this.P=this.Qa.frames.length-1);var a=this.Qa.frames[this.P];this.Ba.Pj(a.gm);this.Ec=a.Ec;this.Fc=a.Fc;this.Ff=this.Qa.speed;this.Ef=this.Qa.pp;1===this.type.Pc.length&&1===this.type.Pc[0].frames.length||0===this.Ff||(this.b.bk(this),this.Bo=!0);this.Yb?this.he.reset():this.he=new bb;this.Me=this.he.O;this.ag=!0;this.De=0;this.yf=!0;this.Dk=this.Aq="";this.Kq=0;this.zn=-1;this.type.Fh();var b,c,d,e,f,g,h,a=0;for(b=this.type.Pc.length;a<
b;a++)for(e=this.type.Pc[a],c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.M.width,f.height=f.M.height),f.$h&&(h=f.M,g=f.Ap,g.left=f.Mh/h.width,g.top=f.Nh/h.height,g.right=(f.Mh+f.width)/h.width,g.bottom=(f.Nh+f.height)/h.height,0===f.Mh&&0===f.Nh&&f.width===h.width&&f.height===h.height&&(f.$h=!1));this.Mb=this.Qa.frames[this.P];this.Jk=this.Mb.la};r.Ta=function(){var a={a:this.Qa.ma,f:this.P,cas:this.Ff,fs:this.Me,ar:this.De,at:this.he.O,rt:this.Ef};this.ag||(a.ap=this.ag);this.yf||
(a.af=this.yf);return a};r.bb=function(a){var b=this.Rx(a.a);b&&(this.Qa=b);this.P=a.f;0>this.P&&(this.P=0);this.P>=this.Qa.frames.length&&(this.P=this.Qa.frames.length-1);this.Ff=a.cas;this.Me=a.fs;this.De=a.ar;this.he.reset();this.he.O=a.at;this.ag=a.hasOwnProperty("ap")?a.ap:!0;this.yf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Ef=a.rt:this.Ef=this.Qa.pp;this.Mb=this.Qa.frames[this.P];this.Jk=this.Mb.la;this.Ba.Pj(this.Mb.gm);this.Ec=this.Mb.Ec;this.Fc=this.Mb.Fc};r.sn=function(a){this.P=
a?0:this.Qa.frames.length-1;this.ag=!1;this.Aq=this.Qa.name;this.oo=!0;this.b.trigger(U.prototype.n.Vu,this);this.b.trigger(U.prototype.n.Uu,this);this.oo=!1;this.De=0};r.bg=function(){return this.he.O};r.Ha=function(){this.he.add(this.b.Oe(this));this.Dk.length&&this.Qq();0<=this.zn&&this.Bw();var a=this.he.O,b=this.Qa,c=b.frames[this.P],d=c.duration/this.Ff;this.ag&&a>=this.Me+d&&(this.yf?this.P++:this.P--,this.Me+=d,this.P>=b.frames.length&&(b.Us?(this.yf=!1,this.P=b.frames.length-2):b.loop?this.P=
this.Ef:(this.De++,this.De>=b.op?this.sn(!1):this.P=this.Ef)),0>this.P&&(b.Us?(this.P=1,this.yf=!0,b.loop||(this.De++,this.De>=b.op&&this.sn(!0))):b.loop?this.P=this.Ef:(this.De++,this.De>=b.op?this.sn(!0):this.P=this.Ef)),0>this.P?this.P=0:this.P>=b.frames.length&&(this.P=b.frames.length-1),a>this.Me+b.frames[this.P].duration/this.Ff&&(this.Me=a),a=b.frames[this.P],this.bh(c,a),this.b.ca=!0)};r.fr=function(a){var b,c,d;b=0;for(c=this.type.Pc.length;b<c;b++)if(d=this.type.Pc[b],jb(d.name,a))return d;
return null};r.Rx=function(a){var b,c,d;b=0;for(c=this.type.Pc.length;b<c;b++)if(d=this.type.Pc[b],d.ma===a)return d;return null};r.Qq=function(){var a=this.Qa.frames[this.P],b=this.fr(this.Dk);this.Dk="";!b||jb(b.name,this.Qa.name)&&this.ag||(this.Qa=b,this.Ff=b.speed,this.Ef=b.pp,0>this.P&&(this.P=0),this.P>=this.Qa.frames.length&&(this.P=this.Qa.frames.length-1),1===this.Kq&&(this.P=0),this.ag=!0,this.Me=this.he.O,this.yf=!0,this.bh(a,this.Qa.frames[this.P]),this.b.ca=!0)};r.Bw=function(){var a=
this.Qa.frames[this.P],b=this.P;this.P=z(this.zn);0>this.P&&(this.P=0);this.P>=this.Qa.frames.length&&(this.P=this.Qa.frames.length-1);b!==this.P&&(this.bh(a,this.Qa.frames[this.P]),this.Me=this.he.O,this.b.ca=!0);this.zn=-1};r.bh=function(a,b){var c=a.width,d=a.height,e=b.width,f=b.height;c!=e&&(this.width*=e/c);d!=f&&(this.height*=f/d);this.Ec=b.Ec;this.Fc=b.Fc;this.Ba.Pj(b.gm);this.C();this.Mb=b;this.Jk=b.la;c=0;for(d=this.W.length;c<d;c++)e=this.W[c],e.Js&&e.Js(a,b);this.b.trigger(U.prototype.n.bh,
this)};r.Sc=function(a){a.globalAlpha=this.opacity;var b=this.Mb,c=b.$h,d=b.M,e=this.x,f=this.y,g=this.width,h=this.height;if(0===this.q&&0<=g&&0<=h)e-=this.Ec*g,f-=this.Fc*h,this.b.Ic&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.Mh,b.Nh,b.width,b.height,e,f,g,h):a.drawImage(d,e,f,g,h);else{this.b.Ic&&(e=Math.round(e),f=Math.round(f));a.save();var m=0<g?1:-1,k=0<h?1:-1;a.translate(e,f);1===m&&1===k||a.scale(m,k);a.rotate(this.q*m*k);e=0-this.Ec*oa(g);f=0-this.Fc*oa(h);c?a.drawImage(d,b.Mh,
b.Nh,b.width,b.height,e,f,oa(g),oa(h)):a.drawImage(d,e,f,oa(g),oa(h));a.restore()}};r.Gf=function(a){this.Nb(a)};r.Nb=function(a){a.wc(this.Jk);a.gf(this.opacity);var b=this.Mb,c=this.gc;if(this.b.Ic){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.$h?a.Xd(c.Ib+d,c.Jb+e,c.oc+d,c.pc+e,c.hc+d,c.ic+e,c.ec+d,c.fc+e,b.Ap):a.Sh(c.Ib+d,c.Jb+e,c.oc+d,c.pc+e,c.hc+d,c.ic+e,c.ec+d,c.fc+e)}else b.$h?a.Xd(c.Ib,c.Jb,c.oc,c.pc,c.hc,c.ic,c.ec,c.fc,b.Ap):a.Sh(c.Ib,c.Jb,c.oc,c.pc,c.hc,c.ic,c.ec,c.fc)};
r.Yx=function(a){var b=this.Mb,c,d;c=0;for(d=b.no.length;c<d;c++)if(jb(a,b.no[c][0]))return c;return-1};r.ug=function(a,b){var c=this.Mb,d=c.no,e;la(a)?e=this.Yx(a):e=a-1;e=z(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.Ec)*this.width,d=d[e][2],d=(d-c.Fc)*this.height,c=Math.cos(this.q);e=Math.sin(this.q);var g=f*c-d*e,d=d*c+f*e,f=g+this.x,d=d+this.y;return b?f:d};var h=[],M=-2,G=[];q.prototype.Xu=function(a){if(!a)return!1;var b=this.b,c=b.Bi(),d=c.type,e=null;c.N.collmemory?e=c.N.collmemory:
(e={},c.N.collmemory=e);c.N.spriteCreatedDestroyCallback||(c.N.spriteCreatedDestroyCallback=!0,b.qk(function(a){var b=c.N.collmemory;a=a.uid;var d,e;for(d in b)b.hasOwnProperty(d)&&(e=b[d],e[0]===a||e[1]===a)&&(p(b[d]),delete b[d])}));var f=d.aa(),h=a.aa(),f=f.Tc(),m,r,u,t,q,A,Q,X=this.b.$d,R=X-1,D=b.ib().fb;for(r=0;r<f.length;r++){u=f[r];h.ka?(u.Ia(),this.b.ir(u.u,a,u.Ma,G),m=G,this.b.ew(u,a,m)):m=h.Tc();for(t=0;t<m.length;t++)q=m[t],b.nc(u,q)||b.qw(u,q)?(A=k(e,u,q),A=!A||M<R,n(e,u,q,X),A&&(b.Pg(D.ta),
A=d.aa(),Q=a.aa(),A.ka=!1,Q.ka=!1,d===a?(A.k.length=2,A.k[0]=u,A.k[1]=q,d.Kd()):(A.k.length=1,Q.k.length=1,A.k[0]=u,Q.k[0]=q,d.Kd(),a.Kd()),D.Uh(),b.ue(D.ta))):g(e,u,q);N(G)}return!1};var u=new ea,m=!1;new ua(0,0,0,0);a.finish=function(a){if(m){if(a){var b=this.b.ib().fb.wd;a=null.aa();var c=u.qf(),d,e;if(a.ka){a.ka=!1;N(a.k);d=0;for(e=c.length;d<e;++d)a.k[d]=c[d];if(b)for(N(a.na),d=0,e=null.k.length;d<e;++d)c=null.k[d],u.contains(c)||a.na.push(c)}else if(b)for(b=a.k.length,d=0,e=c.length;d<e;++d)a.k[b+
d]=c[d],Ea(a.na,c[d]);else Ba(a.k,c);null.Kd()}u.clear();m=!1}};q.prototype.qu=function(a,b){return ec(this.yf?this.Ff:-this.Ff,a,b)};q.prototype.Uu=function(a){return jb(this.Aq,a)};q.prototype.Vu=function(){return!0};q.prototype.bh=function(){return!0};q.prototype.Nu=function(){return 0>this.width};e.n=new q;c.prototype.Vv=function(a,b,c){if(a&&b&&(b=this.b.Dn(a,b,this.ug(c,!0),this.ug(c,!1)))){"undefined"!==typeof b.q&&(b.q=this.q,b.C());this.b.dd++;var d,e,f;this.b.trigger(Object.getPrototypeOf(a.Aa).n.$f,
b);if(b.Ub)for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],this.b.trigger(Object.getPrototypeOf(f.type.Aa).n.$f,f);this.b.dd--;d=this.b.Vx();c=!1;if(ia(d.N.Spawn_LastExec)||d.N.Spawn_LastExec<this.b.rg)c=!0,d.N.Spawn_LastExec=this.b.rg;if(a!=this.type&&(a=a.aa(),a.ka=!1,c?(N(a.k),a.k[0]=b):a.k.push(b),b.Ub))for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],a=f.type.aa(),a.ka=!1,c?(N(a.k),a.k[0]=f):a.k.push(f)}};c.prototype.Cv=function(a,b){this.Dk=a;this.Kq=b;this.Bo||(this.b.bk(this),this.Bo=
!0);this.oo||this.Qq()};c.prototype.Jv=function(a){a=oa(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.C())};c.prototype.Fv=function(a){a=oa(this.height)*(0===a?-1:1);this.height!==a&&(this.height=a,this.C())};c.prototype.Lv=function(a){var b=this.Mb,c=b.width*a*(0>this.width?-1:1);a=b.height*a*(0>this.height?-1:1);if(this.width!==c||this.height!==a)this.width=c,this.height=a,this.C()};e.F=new c;b.prototype.Du=function(a,b){a.U(this.ug(b,!0))};b.prototype.Eu=function(a,b){a.U(this.ug(b,
!1))};e.ea=new b})();function wc(d){this.b=d}
(function(){function d(){return c.length?c.pop():{}}function q(b){var d,a;d=0;for(a=b.length;d<a;d++)c.push(b[d]);N(b)}function p(b){return b.length&&" "===b.charAt(b.length-1)?b.substring(0,b.length-1):b}function t(){}var n=wc.prototype;n.K=function(){n.F.Qv=function(b){this.width!==b&&(this.width=b,this.Wg=!0,this.C())}};n.V=function(b){this.Aa=b;this.b=b.b};var g=n.V.prototype;g.K=function(){};g.Oh=function(){if(!this.L){var b,c,a;b=0;for(c=this.k.length;b<c;b++)a=this.k[b],a.qe=null,a.Mg=null,
a.Xc=null}};n.R=function(b){this.type=b;this.b=b.b;this.Yb?N(this.Of):this.Of=[];this.Wg=!0};g=n.R.prototype;g.K=function(){this.text=this.B[0];this.visible=0===this.B[1];this.font=this.B[2];this.color=this.B[3];this.ol=this.B[4];this.Wm=this.B[5];this.$p=0===this.B[7];this.Ho=this.We=this.width;this.Ve=this.height;this.Ko=this.B[8];this.el=this.kh="";this.Kt=this.Lt=this.Gj=0;this.nz();this.Xc=this.Mg=this.qe=null;this.ys=!1;this.cj=this.b.$d;this.Yb?this.Uf.set(0,0,1,1):this.Uf=new ua(0,0,1,1);
this.b.D&&this.b.bk(this)};g.nz=function(){var b=this.font.split(" "),c;for(c=0;c<b.length;c++)if("pt"===b[c].substr(b[c].length-2,2)){this.Gj=parseInt(b[c].substr(0,b[c].length-2));this.kp=Math.ceil(this.Gj/72*96)+4;0<c&&(this.el=b[c-1]);this.kh=b[c+1];for(c+=2;c<b.length;c++)this.kh+=" "+b[c];break}};g.Ta=function(){return{t:this.text,f:this.font,c:this.color,ha:this.ol,va:this.Wm,wr:this.$p,lho:this.Ko,fn:this.kh,fs:this.el,ps:this.Gj,pxh:this.kp,tw:this.Lt,th:this.Kt,lrt:this.cj}};g.bb=function(b){this.text=
b.t;this.font=b.f;this.color=b.c;this.ol=b.ha;this.Wm=b.va;this.$p=b.wr;this.Ko=b.lho;this.kh=b.fn;this.el=b.fs;this.Gj=b.ps;this.kp=b.pxh;this.Lt=b.tw;this.Kt=b.th;this.cj=b.lrt;this.Wg=!0;this.Ho=this.We=this.width;this.Ve=this.height};g.Ha=function(){if(this.b.D&&this.Xc&&300<=this.b.$d-this.cj){var b=this.u;this.Ia();var c=this.Ma;if(c.right<b.xa||c.bottom<b.ya||c.left>b.Fa||c.top>b.Ea)this.b.D.deleteTexture(this.Xc),this.qe=this.Mg=this.Xc=null}};g.Vd=function(){this.qe=this.Mg=null;this.b.D&&
this.Xc&&this.b.D.deleteTexture(this.Xc);this.Xc=null};g.bg=function(){this.font=this.el+" "+this.Gj.toString()+"pt "+this.kh;this.Wg=!0;this.b.ca=!0};g.Sc=function(b,c){b.font=this.font;b.textBaseline="top";b.fillStyle=this.color;b.globalAlpha=c?1:this.opacity;var a=1;c&&(a=Math.abs(this.u.Dc()),b.save(),b.scale(a,a));if(this.Wg||this.width!==this.Ho)this.type.Aa.aw(this.text,this.Of,b,this.width,this.$p),this.Wg=!1,this.Ho=this.width;this.Ia();var a=c?0:this.gc.Ib,d=c?0:this.gc.Jb;this.b.Ic&&(a=
a+.5|0,d=d+.5|0);0===this.q||c||(b.save(),b.translate(a,d),b.rotate(this.q),d=a=0);var g=d+this.height,h=this.kp,h=h+this.Ko,k,n;1===this.Wm?d+=Math.max(this.height/2-this.Of.length*h/2,0):2===this.Wm&&(d+=Math.max(this.height-this.Of.length*h-2,0));for(n=0;n<this.Of.length&&!(k=a,1===this.ol?k=a+(this.width-this.Of[n].width)/2:2===this.ol&&(k=a+(this.width-this.Of[n].width)),b.fillText(this.Of[n].text,k,d),d+=h,d>=g-h);n++);(0!==this.q||c)&&b.restore();this.cj=this.b.$d};g.Nb=function(b){if(!(1>
this.width||1>this.height)){var c=this.Wg||this.ys;this.ys=!1;var a=this.u.Dc(),d=this.u.yb(),g=this.Uf,h=a*this.width,k=a*this.height,n=Math.ceil(h),p=Math.ceil(k),m=Math.abs(n),l=Math.abs(p),t=this.b.T/2,q=this.b.S/2;this.Mg||(this.qe=document.createElement("canvas"),this.qe.width=m,this.qe.height=l,this.We=m,this.Ve=l,c=!0,this.Mg=this.qe.getContext("2d"));if(m!==this.We||l!==this.Ve)this.qe.width=m,this.qe.height=l,this.Xc&&(b.deleteTexture(this.Xc),this.Xc=null),c=!0;c&&(this.Mg.clearRect(0,
0,m,l),this.Sc(this.Mg,!0),this.Xc||(this.Xc=b.Rc(m,l,this.b.Na,this.b.Lf)),b.eu(this.qe,this.Xc,this.b.Lf));this.We=m;this.Ve=l;b.wc(this.Xc);b.gf(this.opacity);b.Ad();b.translate(-t,-q);b.kd();var F=this.gc,c=this.u.Sa(F.Ib,F.Jb,!0,!0),m=this.u.Sa(F.Ib,F.Jb,!1,!0),l=this.u.Sa(F.oc,F.pc,!0,!0),t=this.u.Sa(F.oc,F.pc,!1,!0),q=this.u.Sa(F.hc,F.ic,!0,!0),O=this.u.Sa(F.hc,F.ic,!1,!0),J=this.u.Sa(F.ec,F.fc,!0,!0),F=this.u.Sa(F.ec,F.fc,!1,!0);if(this.b.Ic||0===this.q&&0===d)var x=(c+.5|0)-c,w=(m+.5|0)-
m,c=c+x,m=m+w,l=l+x,t=t+w,q=q+x,O=O+w,J=J+x,F=F+w;0===this.q&&0===d?(l=c+n,t=m,q=l,O=m+p,J=c,F=O,g.right=1,g.bottom=1):(g.right=h/n,g.bottom=k/p);b.Xd(c,m,l,t,q,O,J,F,g);b.Ad();b.scale(a,a);b.rm(-this.u.yb());b.translate((this.u.xa+this.u.Fa)/-2,(this.u.ya+this.u.Ea)/-2);b.kd();this.cj=this.b.$d}};var k=[];n.Yv=function(b){N(k);for(var c="",a,d=0;d<b.length;)if(a=b.charAt(d),"\n"===a)c.length&&(k.push(c),c=""),k.push("\n"),++d;else if(" "===a||"\t"===a||"-"===a){do c+=b.charAt(d),d++;while(d<b.length&&
(" "===b.charAt(d)||"\t"===b.charAt(d)));k.push(c);c=""}else d<b.length&&(c+=a,d++);c.length&&k.push(c)};var c=[];n.aw=function(b,c,a,f,g){if(b&&b.length)if(2>=f)q(c);else{if(100>=b.length&&-1===b.indexOf("\n")){var h=a.measureText(b).width;if(h<=f){q(c);c.push(d());c[0].text=b;c[0].width=h;return}}this.bw(b,c,a,f,g)}else q(c)};n.bw=function(b,e,a,f,g){g&&(this.Yv(b),b=k);var h="",n,t,u,m=0;for(u=0;u<b.length;u++)"\n"===b[u]?(m>=e.length&&e.push(d()),h=p(h),t=e[m],t.text=h,t.width=a.measureText(h).width,
m++,h=""):(n=h,h+=b[u],t=a.measureText(h).width,t>=f&&(m>=e.length&&e.push(d()),n=p(n),t=e[m],t.text=n,t.width=a.measureText(n).width,m++,h=b[u],g||" "!==h||(h="")));h.length&&(m>=e.length&&e.push(d()),h=p(h),t=e[m],t.text=h,t.width=a.measureText(h).width,m++);for(u=m;u<e.length;u++)c.push(e[u]);e.length=m};n.n=new function(){};t.prototype.Nv=function(b){ka(b)&&1E9>b&&(b=Math.round(1E10*b)/1E10);b=b.toString();this.text!==b&&(this.text=b,this.Wg=!0,this.b.ca=!0)};n.F=new t;n.ea=new function(){}})();
function xc(d){this.b=d}
(function(){var d=xc.prototype;d.V=function(d){this.Aa=d;this.b=d.b};var q=d.V.prototype;q.K=function(){this.L||(this.M=new Image,this.M.Hk=this.Zj,this.b.Ym(this.M,this.Yj),this.la=this.pattern=null)};q.Oh=function(){this.L||(this.la=null)};q.zj=function(){if(!this.L&&this.k.length){this.la||(this.la=this.b.D.Eh(this.M,!0,this.b.Na,this.$j));var d,t;d=0;for(t=this.k.length;d<t;d++)this.k[d].la=this.la}};q.Fh=function(){this.L||this.la||!this.b.D||(this.la=this.b.D.Eh(this.M,!0,this.b.Na,this.$j))};
q.ck=function(){this.L||this.k.length||!this.la||(this.b.D.deleteTexture(this.la),this.la=null)};q.Ej=function(d){d.drawImage(this.M,0,0)};d.R=function(d){this.type=d;this.b=d.b};q=d.R.prototype;q.K=function(){this.visible=0===this.B[0];this.Uf=new ua(0,0,0,0);this.tr=!1;this.M=this.type.M;this.b.D?(this.type.Fh(),this.la=this.type.la):(this.type.pattern||(this.type.pattern=this.b.Oa.createPattern(this.type.M,"repeat")),this.pattern=this.type.pattern)};q.Hd=function(){this.tr=!1;this.M=this.type.M};
q.Vd=function(){this.b.D&&this.tr&&this.la&&(this.b.D.deleteTexture(this.la),this.la=null)};q.Sc=function(d){d.globalAlpha=this.opacity;d.save();d.fillStyle=this.pattern;var t=this.x,n=this.y;this.b.Ic&&(t=Math.round(t),n=Math.round(n));var g=-(this.Ec*this.width),k=-(this.Fc*this.height),c=g%this.M.width,b=k%this.M.height;0>c&&(c+=this.M.width);0>b&&(b+=this.M.height);d.translate(t,n);d.rotate(this.q);d.translate(c,b);d.fillRect(g-c,k-b,this.width,this.height);d.restore()};q.Gf=function(d){this.Nb(d)};
q.Nb=function(d){d.wc(this.la);d.gf(this.opacity);var t=this.Uf;t.right=this.width/this.M.width;t.bottom=this.height/this.M.height;var n=this.gc;if(this.b.Ic){var g=Math.round(this.x)-this.x,k=Math.round(this.y)-this.y;d.Xd(n.Ib+g,n.Jb+k,n.oc+g,n.pc+k,n.hc+g,n.ic+k,n.ec+g,n.fc+k,t)}else d.Xd(n.Ib,n.Jb,n.oc,n.pc,n.hc,n.ic,n.ec,n.fc,t)};d.n=new function(){};d.F=new function(){};d.ea=new function(){}})();function yc(d){this.b=d}
(function(){function d(){this.Om=this.id=-1;this.Bq=this.ih=this.gk=this.Ji=!1;this.Da=new ua(0,0,0,0)}function q(a){1E4>r.length&&r.push(a)}function p(){this.id=-1;this.Da=new ua(0,0,0,0);this.ef=null}function t(a){1E4>h.length&&h.push(a)}function n(a,b,c){var d;return M.length?(d=M.pop(),d.j=a,d.x=b,d.y=c,d.left=d.x*d.j.tb*d.j.Hb,d.top=d.y*d.j.Lb*d.j.Gb,d.clear(),d.Ij=!1,d):new g(a,b,c)}function g(a,b,c){this.j=a;this.x=b;this.y=c;this.left=this.x*this.j.tb*this.j.Hb;this.top=this.y*this.j.Lb*this.j.Gb;
this.Be=[];this.Xb=[];this.rc=[];this.Ij=!1;var d,e;a=0;for(b=this.j.Lb;a<b;++a){e=[];c=0;for(d=this.j.tb;c<d;++c)e.push(-1);this.Be.push(e)}}var k=yc.prototype;k.V=function(a){this.Aa=a;this.b=a.b};var c=k.V.prototype;c.K=function(){var a,b,c;if(!this.L&&(this.M=new Image,this.M.Hk=this.Zj,this.b.Ym(this.M,this.Yj),this.jg=[],this.Gn=!1,this.ae=[],this.Ot=!1,this.Nm&&this.Nm.length))for(a=0,b=this.Nm.length;a<b;++a)(c=this.Nm[a])?this.ae.push({ef:c,cl:[[[null,null],[null,null]],[[null,null],[null,
null]]]}):this.ae.push(null)};c.zf=function(a,b,c,d,e,f){if(!(0>a||a>=this.ae.length)&&this.ae[a]){var g=this.ae[a].cl;a=new db(this.ae[a].ef);a.hg(b,c,0);f&&a.zw();d&&a.az(b/2);e&&a.Nx(c/2);g[d?1:0][e?1:0][f?1:0]=a}};c.or=function(c){if(-1===c)return null;var d=c&f;return 0>d||d>=this.ae.length||!this.ae[d]?null:this.ae[d].cl[c&b?1:0][c&e?1:0][c&a?1:0]};c.Sn=function(){var a,b,c=this.b.D;if(c)for(a=0,b=this.jg.length;a<b;++a)c.deleteTexture(this.jg[a]);N(this.jg);this.Gn=!1};c.Vo=function(a,b,c,
d,e,f,g){if(!(this.Gn||0>=a||0>=b)){this.Sn();var h=this.M.width,k=this.M.height,n;for(n=d;n+b<=k;n+=b+f)for(d=c;d+a<=h;d+=a+e)this.jg.push(this.vu(d,n,a,b,g));this.Gn=!0}};c.vu=function(a,b,c,d,e){if(this.b.D)return this.cn(a,b,c,d,!1,!1,!1,e);var f=[[[null,null],[null,null]],[[null,null],[null,null]]];f[0][0][0]=this.cn(a,b,c,d,!1,!1,!1,e);return{cl:f,x:a,y:b,hA:c,Ay:d}};c.gq=function(a,b,c,d,e){if(0>a||a>=this.jg.length)return null;a=this.jg[a];var f=a.cl;b=b?1:0;c=c?1:0;d=d?1:0;var g=f[b][c][d];
if(g)return g;g=this.cn(a.x,a.y,a.hA,a.Ay,0!==b,0!==c,0!==d,e);return f[b][c][d]=g};c.cn=function(a,b,c,d,e,f,g,h){var k=c,n=d;this.b.D&&!h&&(ma(k)||(k=na(k)),ma(n)||(n=na(n)));var p=document.createElement("canvas");p.width=k;p.height=n;var t=p.getContext("2d");if(this.b.Oa)return e?f?(g?(t.rotate(Math.PI/2),t.scale(-1,1)):t.scale(-1,-1),t.translate(-k,-n)):g?(t.rotate(Math.PI/2),t.translate(0,-n)):(t.scale(-1,1),t.translate(-k,0)):f?g?(t.rotate(-Math.PI/2),t.translate(-k,0)):(t.scale(1,-1),t.translate(0,
-n)):g&&(t.scale(-1,1),t.rotate(Math.PI/2)),t.drawImage(this.M,a,b,c,d,0,0,k,n),h?p:this.b.Oa.createPattern(p,"repeat");t.drawImage(this.M,a,b,c,d,0,0,k,n);a=this.b.D.Rc(k,n,this.b.Na,!1,!h);this.b.D.eu(p,a);return a};c.Oh=function(){this.L||this.Sn()};c.zj=function(){};c.Fh=function(){};c.ck=function(){this.L||this.k.length||this.Sn()};c.Ej=function(){};k.R=function(a){this.type=a;this.b=a.b};var c=k.R.prototype,b=-2147483648,e=1073741824,a=536870912,f=536870911,r=[],h=[],M=[];g.prototype.clear=
function(){var a,b,c,d,e;this.Be.length=this.j.Lb;a=0;for(b=this.Be.length;a<b;++a)for(e=this.Be[a],e||(e=[],this.Be[a]=e),e.length=this.j.tb,c=0,d=e.length;c<d;++c)e[c]=-1};g.prototype.sj=function(){if(!this.Ij){var c=this.j.Hb,g=this.j.Gb;if(!(0>=c||0>=g)){var l,k,n,F,O,J;l=0;for(k=this.Xb.length;l<k;++l)q(this.Xb[l]);l=0;for(k=this.rc.length;l<k;++l)t(this.rc[l]);N(this.Xb);N(this.rc);var x=Math.min(this.j.vd,Math.floor(this.j.width/c)),w=Math.min(this.j.Ud,Math.floor(this.j.height/g)),x=x-this.left/
c,w=w-this.top/g;x>this.j.tb&&(x=this.j.tb);w>this.j.Lb&&(w=this.j.Lb);var I=this.j.Vf,C=null;l=0;for(k=w;l<k;++l){O=this.Be[l];n=0;for(F=x;n<F;++n)J=O[n],-1===J?C&&(this.Xb.push(C),C=null):I||!C||J!==C.id?(C&&this.Xb.push(C),C=r.length?r.pop():new d,C.id=J,C.Om=J&f,C.Ji=0!==(J&b),C.gk=0!==(J&e),C.ih=0!==(J&a),C.Bq=C.Ji||C.gk||C.ih,C.Da.left=n*c+this.left,C.Da.top=l*g+this.top,C.Da.right=C.Da.left+c,C.Da.bottom=C.Da.top+g):C.Da.right+=c;C&&(this.Xb.push(C),C=null)}var C=null,G=!1;l=0;for(k=w;l<k;++l){O=
this.Be[l];n=0;for(F=x;n<F;++n)J=O[n],-1===J?C&&(this.rc.push(C),C=null,G=!1):(w=this.j.type.or(J),!C||w||G?(C&&this.rc.push(C),C=h.length?h.pop():new p,C.id=J,C.ef=w?w:null,J=C.Da,J.left=n*c+this.left,J.top=l*g+this.top,J.right=J.left+c,J.bottom=J.top+g,G=!!w):C.Da.right+=c);C&&(this.rc.push(C),C=null,G=!1)}if(!I)for(k=this.Xb.length,l=0;l<k;++l)for(F=this.Xb[l],c=l+1;c<k;++c)if(n=this.Xb[c],!(n.Da.top<F.Da.bottom)){if(n.Da.top>F.Da.bottom)break;if(n.Da.right>F.Da.right||n.Da.left>F.Da.left)break;
n.id===F.id&&n.Da.left===F.Da.left&&n.Da.right===F.Da.right&&(q(this.Xb[c]),this.Xb.splice(c,1),--k,F.Da.bottom+=g,--c)}k=this.rc.length;for(l=0;l<k;++l)if(F=this.rc[l],!F.ef)for(O=F.Da,c=l+1;c<k;++c)if(n=this.rc[c],F=n.Da,!(F.top<O.bottom)){if(F.top>O.bottom)break;if(F.right>O.right||F.left>O.left)break;n.ef||F.left!==O.left||F.right!==O.right||(t(this.rc[c]),this.rc.splice(c,1),--k,O.bottom+=g,--c)}this.Ij=!0}}};g.prototype.zp=function(a,b,c){this.Be[b][a]!==c&&(this.Be[b][a]=c,this.Ij=!1,this.j.uk=
!0,this.j.Bj=!0,this.j.b.ca=!0)};c.K=function(){var a,b,c;this.visible=0===this.B[0];this.Hb=this.B[1];this.Gb=this.B[2];this.Gp=this.B[3];this.Ip=this.B[4];this.Hp=this.B[5];this.Jp=this.B[6];this.Vf=0!==this.B[7];this.vd=this.Rt;this.Ud=this.Qt;this.We=this.width;this.Ve=this.height;var d=this.Hb,e=this.Gb;0===d&&(d=1);0===e&&(e=1);this.tb=Math.ceil(this.b.ob/d);this.Lb=Math.ceil(this.b.nb/e);if(!this.type.Ot)for(this.type.Ot=!0,a=0,b=this.type.ae.length;a<b;++a)if(c=this.type.ae[a])this.type.zf(a,
d,e,!1,!1,!1),this.type.zf(a,d,e,!1,!1,!0),this.type.zf(a,d,e,!1,!0,!1),this.type.zf(a,d,e,!1,!0,!0),this.type.zf(a,d,e,!0,!1,!1),this.type.zf(a,d,e,!0,!1,!0),this.type.zf(a,d,e,!0,!0,!1),this.type.zf(a,d,e,!0,!0,!0);this.Yb||(this.yc=[]);this.Wo(!0);this.qt(this.Pt);this.type.Vo(this.Hb,this.Gb,this.Gp,this.Ip,this.Hp,this.Jp,this.Vf);this.Bj=!1;this.uk=!0;this.Uo()};c.Uo=function(){if(this.uk){var a,b,c,d,e;a=0;for(b=this.yc.length;a<b;++a)for(e=this.yc[a],c=0,d=e.length;c<d;++c)e[c].sj();this.uk=
!1}};c.wm=function(){var a,b,c,d,e;a=0;for(b=this.yc.length;a<b;++a)for(e=this.yc[a],c=0,d=e.length;c<d;++c)e[c].Ij=!1;this.uk=!0};c.Wo=function(a){var b=z(this.width/this.Hb),c=z(this.height/this.Gb);if(!(b<=this.vd&&c<=this.Ud)||a){var d;a?(a=Math.ceil(this.Ud/this.Lb),d=Math.ceil(this.vd/this.tb)):(a=this.yc.length,d=Math.ceil(this.vd/this.tb),c>this.Ud&&(this.Ud=c,a=Math.ceil(this.Ud/this.Lb)),b>this.vd&&(this.vd=b,d=Math.ceil(this.vd/this.tb)),this.wm(),this.Bj=!0,this.b.ca=!0);for(var e,b=0;b<
a;++b)if(e=this.yc[b])for(c=e.length;c<d;++c)e.push(n(this,c,b));else{e=[];for(c=0;c<d;++c)e.push(n(this,c,b));this.yc[b]=e}}};c.wn=function(a,b){if(0>a||0>b)return null;var c=z(b/this.Lb);if(c>=this.yc.length)return null;var c=this.yc[c],d=z(a/this.tb);return d>=c.length?null:c[d]};c.xn=function(a,b){if(0>a||0>b||b>=this.yc.length)return null;var c=this.yc[b];return a>=c.length?null:c[a]};c.qt=function(c){var d=[];c=c.split(",");var f,g,h,k,n;f=0;for(g=c.length;f<g;++f)if(h=c[f],k=h.indexOf("x"),
-1<k)for(n=parseInt(h.substring(0,k),10),h=h.substring(k+1),k=parseInt(h,10),-1<h.indexOf("h")&&(k|=b),-1<h.indexOf("v")&&(k|=e),-1<h.indexOf("d")&&(k|=a);0<n;--n)d.push(k);else k=parseInt(h,10),-1<h.indexOf("h")&&(k|=b),-1<h.indexOf("v")&&(k|=e),-1<h.indexOf("d")&&(k|=a),d.push(k);for(f=c=0;f<this.Ud;++f)for(g=0;g<this.vd;++g)n=d[c++],(h=this.wn(g,f))&&h.zp(g%this.tb,f%this.Lb,n)};c.iy=function(){var c="";if(0>=this.vd||0>=this.Ud)return c;var d=1,g=this.bo(0,0),h,k,n,p,t,r,q,I;p=z(this.width/this.Hb);
k=z(this.height/this.Gb);for(h=0;h<k;++h)for(n=0===h?1:0;n<p;++n)t=this.bo(n,h),t===g?++d:(-1===g?(r=-1,g=I=q=!1):(r=g&f,q=0!==(g&b),I=0!==(g&e),g=0!==(g&a)),c=1===d?c+(""+r):c+(""+d+"x"+r),q&&(c+="h"),I&&(c+="v"),g&&(c+="d"),c+=",",d=1,g=t);-1===g?(r=-1,g=I=q=!1):(r=g&f,q=0!==(g&b),I=0!==(g&e),g=0!==(g&a));c=1===d?c+(""+r):c+(""+d+"x"+r);q&&(c+="h");I&&(c+="v");g&&(c+="d");return c};c.bo=function(a,b){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.vd||b>=this.Ud)return-1;var c=this.wn(a,b);
return c?c.Be[b%this.Lb][a%this.tb]:-1};c.zp=function(a,b,c){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.vd||b>=this.Ud)return-1;var d=this.wn(a,b);if(!d)return-1;d.zp(a%this.tb,b%this.Lb,c)};c.gu=function(a){return Math.floor((a-this.x)/(this.tb*this.Hb))};c.hu=function(a){return Math.floor((a-this.y)/(this.Lb*this.Gb))};c.jA=function(a){return Math.floor((a-this.x)/this.Hb)};c.kA=function(a){return Math.floor((a-this.y)/this.Gb)};c.Ux=function(a,b){var c=this.hu(a.top),d=this.gu(a.right),
e=this.hu(a.bottom),f,g,h;for(f=this.gu(a.left);f<=d;++f)for(g=c;g<=e;++g)if(h=this.xn(f,g))h.sj(),Ca(b,h.rc)};c.bA=function(a,b){var c=this.bo(this.jA(a),this.kA(b));if(-1===c)return!1;c=this.type.or(c);if(!c)return!0;var d=Math.floor((b-this.y)/this.Gb)*this.Gb+this.y;a-=Math.floor((a-this.x)/this.Hb)*this.Hb+this.x;return c.jc(a,b-d)};c.bg=function(a){var b,c,d,e,f,g;b=0;for(c=this.yc.length;b<c;++b)for(f=this.yc[b],d=0,e=f.length;d<e;++d)g=f[d],g.sj(),Ca(a,g.rc)};c.Vd=function(){var a,b,c,d,e;
a=0;for(b=this.yc.length;a<b;++a){e=this.yc[a];c=0;for(d=e.length;c<d;++c){for(var f=e[c],g=void 0,h=void 0,g=0,h=f.Xb.length;g<h;++g)q(f.Xb[g]);N(f.Xb);g=0;for(h=f.rc.length;g<h;++g)t(f.rc[g]);N(f.rc);1E3>M.length&&M.push(f)}N(e)}N(this.yc)};c.Ta=function(){this.Wo();return{w:z(this.width/this.Hb),h:z(this.height/this.Gb),d:this.iy()}};c.bb=function(a){this.vd=a.w;this.Ud=a.h;this.Wo(!0);this.qt(a.d);this.Bj=!0;this.wm()};c.Sc=function(a){if(!(0>=this.Hb||0>=this.Gb)){this.type.Vo(this.Hb,this.Gb,
this.Gp,this.Ip,this.Hp,this.Jp,this.Vf);if(this.width!==this.We||this.height!==this.Ve)this.Bj=!0,this.wm(),this.Uo(),this.We=this.width,this.Ve=this.height;a.globalAlpha=this.opacity;var b=this.u,c=b.xa,d=b.ya,e=b.Fa,b=b.Ea,f=this.x,g=this.y,h=this.Vf,k;this.b.Ic&&(f=Math.round(f),g=Math.round(g));var n=this.tb*this.Hb,p=this.Lb*this.Gb,t=Math.floor((c-f)/n),n=Math.floor((e-f)/n),r=Math.floor((d-g)/p),p=Math.floor((b-g)/p),q=f%this.Hb,A=g%this.Gb;this.Vf&&(A=q=0);if(0!==q||0!==A)a.save(),a.translate(q,
A),f-=q,g-=A,c-=q,d-=A,e-=q,b-=A;for(var G,M,R,D,v,B,E,L,K;t<=n;++t)for(G=r;G<=p;++G)if(M=this.xn(t,G))for(M.sj(),R=0,D=M.Xb.length;R<D;++R)v=M.Xb[R],-1!==v.id&&(k=v.Da,B=k.left+f,E=k.top+g,L=k.right+f,k=k.bottom+g,B>e||L<c||E>b||k<d||(K=this.type.gq(v.Om,v.Ji,v.gk,v.ih,this.Vf),h?a.drawImage(K,B,E):(a.fillStyle=this.type.gq(v.Om,v.Ji,v.gk,v.ih,this.Vf),a.fillRect(B,E,L-B,k-E))));0===q&&0===A||a.restore()}};var G=new ua(0,0,1,1);c.Gf=function(a){this.Nb(a)};c.Nb=function(a){if(!(0>=this.Hb||0>=this.Gb)){this.type.Vo(this.Hb,
this.Gb,this.Gp,this.Ip,this.Hp,this.Jp,this.Vf);if(this.width!==this.We||this.height!==this.Ve)this.Bj=!0,this.wm(),this.Uo(),this.We=this.width,this.Ve=this.height;a.gf(this.opacity);var b=this.type.jg,c=this.u,d=c.xa,e=c.ya,f=c.Fa,c=c.Ea,g=this.x,h=this.y,k;this.b.Ic&&(g=Math.round(g),h=Math.round(h));var n=this.tb*this.Hb,p=this.Lb*this.Gb,t=Math.floor((f-g)/n),r=Math.floor((e-h)/p),p=Math.floor((c-h)/p),q,A,M,X,R,D,v,B,E,L,K,P,V,H,ca,Z,va;for(ca=Math.floor((d-g)/n);ca<=t;++ca)for(Z=r;Z<=p;++Z)if(va=
this.xn(ca,Z))for(va.sj(),n=0,q=va.Xb.length;n<q;++n)A=va.Xb[n],-1!==A.id&&(k=A.Da,M=k.left+g,X=k.top+h,R=k.right+g,k=k.bottom+h,M>f||R<d||X>c||k<e||(a.wc(b[A.Om]),G.right=(R-M)/this.Hb,G.bottom=(k-X)/this.Gb,A.Bq?(A.ih&&(H=G.right,G.right=G.bottom,G.bottom=H),v=D=0,B=G.right,E=0,L=G.right,K=G.bottom,P=0,V=G.bottom,A.ih&&(H=P,P=B,B=H,H=V,V=E,E=H),A.Ji&&(H=D,D=B,B=H,H=v,v=E,E=H,H=P,P=L,L=H,H=V,V=K,K=H),A.gk&&(H=D,D=P,P=H,H=v,v=V,V=H,H=B,B=L,L=H,H=E,E=K,K=H),a.Bz(M,X,R,X,R,k,M,k,D,v,B,E,L,K,P,V)):a.Xd(M,
X,R,X,R,k,M,k,G)))}};k.n=new function(){};k.F=new function(){};k.ea=new function(){}})();function zc(d){this.b=d}
(function(){function d(){}var q=zc.prototype;q.V=function(d){this.behavior=d;this.b=d.b};q.V.prototype.K=function(){};q.R=function(d,n){this.type=d;this.behavior=d.behavior;this.j=n;this.b=d.b};var p=q.R.prototype;p.K=function(){var d=this.B[0];this.Kb=this.B[1];this.hb=this.B[2];this.kw=0!==this.B[3];this.wp=0!==this.B[4];this.H=Math.cos(this.j.q)*d;this.I=Math.sin(this.j.q)*d;this.Cl=this.j.x;this.Dl=this.j.y;this.fd=this.j.q;this.Qm=0;this.enabled=0!==this.B[5]};p.Ta=function(){return{acc:this.Kb,
g:this.hb,dx:this.H,dy:this.I,lx:this.Cl,ly:this.Dl,lka:this.fd,t:this.Qm,e:this.enabled}};p.bb=function(d){this.Kb=d.acc;this.hb=d.g;this.H=d.dx;this.I=d.dy;this.Cl=d.lx;this.Dl=d.ly;this.fd=d.lka;this.Qm=d.t;this.enabled=d.e};p.Ha=function(){if(this.enabled){var d=this.b.Oe(this.j),n,g;this.j.q!==this.fd&&(this.wp&&(n=Sa(0,0,this.H,this.I),this.H=Math.cos(this.j.q)*n,this.I=Math.sin(this.j.q)*n),this.fd=this.j.q);0!==this.Kb&&(n=Sa(0,0,this.H,this.I),g=0===this.H&&0===this.I?this.j.q:Na(0,0,this.H,
this.I),n+=this.Kb*d,0>n&&(n=0),this.H=Math.cos(g)*n,this.I=Math.sin(g)*n);0!==this.hb&&(this.I+=this.hb*d);this.Cl=this.j.x;this.Dl=this.j.y;if(0!==this.H||0!==this.I)if(this.j.x+=this.H*d,this.j.y+=this.I*d,this.Qm+=Sa(0,0,this.H*d,this.I*d),this.wp&&(this.j.q=Na(0,0,this.H,this.I),this.j.C(),this.fd=this.j.q),this.j.C(),this.kw&&(n=this.b.ab(this.j)))this.b.Qg(this.j,n),n=Sa(0,0,this.H,this.I),g=this.b.ow(this.j,this.Cl,this.Dl),this.H=Math.cos(g)*n,this.I=Math.sin(g)*n,this.j.x+=this.H*d,this.j.y+=
this.I*d,this.j.C(),this.wp&&(this.fd=this.j.q=g,this.j.C()),this.b.hd(this.j,this.H/n,this.I/n,Math.max(2.5*n*d,30))||this.b.dt(this.j,100)}};q.n=new function(){};d.prototype.Mv=function(d){var n=Na(0,0,this.H,this.I);this.H=Math.cos(n)*d;this.I=Math.sin(n)*d};d.prototype.tq=function(d){this.Kb=d};d.prototype.kn=function(d){this.hb=d};q.F=new d;q.ea=new function(){}})();function Ac(d){this.b=d}
(function(){function d(){}var q=Ac.prototype;q.V=function(d){this.behavior=d;this.b=d.b};q.V.prototype.K=function(){};q.R=function(d,n){this.type=d;this.behavior=d.behavior;this.j=n;this.b=d.b};var p=q.R.prototype;p.K=function(){this.wq=1===this.B[0];this.yi=this.B[1];this.jk=this.B[2];this.Vk=this.B[3];this.yw=this.B[4];this.Fb=this.wq?0:3;this.Yb?this.Cd.reset():this.Cd=new bb;this.Kg=this.j.opacity?this.j.opacity:1;this.wq&&(0===this.yi?(this.Fb=1,0===this.jk&&(this.Fb=2)):(this.j.opacity=0,this.b.ca=
!0))};p.Ta=function(){return{fit:this.yi,wt:this.jk,fot:this.Vk,s:this.Fb,st:this.Cd.O,mo:this.Kg}};p.bb=function(d){this.yi=d.fit;this.jk=d.wt;this.Vk=d.fot;this.Fb=d.s;this.Cd.reset();this.Cd.O=d.st;this.Kg=d.mo};p.Ha=function(){this.Cd.add(this.b.Oe(this.j));0===this.Fb&&(this.j.opacity=this.Cd.O/this.yi*this.Kg,this.b.ca=!0,this.j.opacity>=this.Kg&&(this.j.opacity=this.Kg,this.Fb=1,this.Cd.reset(),this.b.trigger(Ac.prototype.n.Zu,this.j)));1===this.Fb&&this.Cd.O>=this.jk&&(this.Fb=2,this.Cd.reset(),
this.b.trigger(Ac.prototype.n.uv,this.j));2===this.Fb&&0!==this.Vk&&(this.j.opacity=this.Kg-this.Cd.O/this.Vk*this.Kg,this.b.ca=!0,0>this.j.opacity&&(this.j.opacity=0,this.Fb=3,this.Cd.reset(),this.b.trigger(Ac.prototype.n.$u,this.j),1===this.yw&&this.b.ge(this.j)))};p.bg=function(){this.Fb=0;this.Cd.reset();0===this.yi?(this.Fb=1,0===this.jk&&(this.Fb=2)):(this.j.opacity=0,this.b.ca=!0)};d.prototype.$u=function(){return!0};d.prototype.Zu=function(){return!0};d.prototype.uv=function(){return!0};q.n=
new d;q.F=new function(){};q.ea=new function(){}})();function Cc(d){this.b=d}
(function(){function d(){}function q(){}var p=Cc.prototype;p.V=function(d){this.behavior=d;this.b=d.b};p.V.prototype.K=function(){};p.R=function(d,g){this.type=d;this.behavior=d.behavior;this.j=g;this.b=d.b};var t=p.R.prototype;t.K=function(){this.Ce=this.ze=this.Fb=this.Vl=this.Wl=0};t.Ta=function(){return{ontime:this.Wl,offtime:this.Vl,stage:this.Fb,stagetimeleft:this.ze,timeleft:this.Ce}};t.bb=function(d){this.Wl=d.ontime;this.Vl=d.offtime;this.Fb=d.stage;this.ze=d.stagetimeleft;this.Ce=d.timeleft;
null===this.Ce&&(this.Ce=Infinity)};t.Ha=function(){if(!(0>=this.Ce)){var d=this.b.Oe(this.j);this.Ce-=d;0>=this.Ce?(this.Ce=0,this.j.visible=!0,this.b.ca=!0,this.b.trigger(Cc.prototype.n.bv,this.j)):(this.ze-=d,0>=this.ze&&(0===this.Fb?(this.j.visible=!1,this.Fb=1,this.ze+=this.Vl):(this.j.visible=!0,this.Fb=0,this.ze+=this.Wl),this.b.ca=!0))}};d.prototype.bv=function(){return!0};p.n=new d;q.prototype.zu=function(d,g,k){this.Wl=d;this.Vl=g;this.Fb=1;this.ze=g;this.Ce=k;this.j.visible=!1;this.b.ca=
!0};p.F=new q;p.ea=new function(){}})();function Hc(d){this.b=d}
(function(){function d(){}var q=Hc.prototype;q.V=function(d){this.behavior=d;this.b=d.b};q.V.prototype.K=function(){};q.R=function(d,n){this.type=d;this.behavior=d.behavior;this.j=n;this.b=d.b};var p=q.R.prototype;p.K=function(){this.Eb=null;this.em=-1;this.mode=this.fd=this.Lm=this.Lh=this.df=this.Dj=0;var d=this;this.Yb||(this.tj=function(n){d.xj(n)});this.b.qk(this.tj)};p.Ta=function(){return{uid:this.Eb?this.Eb.uid:-1,pa:this.Dj,pd:this.df,msa:this.Lh,tsa:this.Lm,lka:this.fd,m:this.mode}};p.bb=
function(d){this.em=d.uid;this.Dj=d.pa;this.df=d.pd;this.Lh=d.msa;this.Lm=d.tsa;this.fd=d.lka;this.mode=d.m};p.Hd=function(){-1===this.em?this.Eb=null:this.Eb=this.b.vg(this.em);this.em=-1};p.xj=function(d){this.Eb==d&&(this.Eb=null)};p.Vd=function(){this.Eb=null;this.b.ht(this.tj)};p.Ha=function(){};p.ak=function(){if(this.Eb){this.fd!==this.j.q&&(this.Lh=Ja(this.Lh+(this.j.q-this.fd)));var d=this.j.x,n=this.j.y;if(3===this.mode||4===this.mode){var g=Sa(this.j.x,this.j.y,this.Eb.x,this.Eb.y);if(g>
this.df||4===this.mode&&g<this.df)n=Na(this.Eb.x,this.Eb.y,this.j.x,this.j.y),d=this.Eb.x+Math.cos(n)*this.df,n=this.Eb.y+Math.sin(n)*this.df}else d=this.Eb.x+Math.cos(this.Eb.q+this.Dj)*this.df,n=this.Eb.y+Math.sin(this.Eb.q+this.Dj)*this.df;this.fd=g=Ja(this.Lh+(this.Eb.q-this.Lm));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.j.x===d&&this.j.y===n||(this.j.x=d,this.j.y=n,this.j.C());0!==this.mode&&2!==this.mode||this.j.q===g||(this.j.q=g,this.j.C())}};q.n=new function(){};d.prototype.xv=
function(d,n){if(d){var g=d.lr(this.j);g&&(this.Eb=g,this.Dj=Na(g.x,g.y,this.j.x,this.j.y)-g.q,this.df=Sa(g.x,g.y,this.j.x,this.j.y),this.fd=this.Lh=this.j.q,this.Lm=g.q,this.mode=n)}};q.F=new d;q.ea=new function(){}})();function Ic(d){this.b=d}
(function(){function d(){}function q(){}var p=Ic.prototype;p.V=function(d){this.behavior=d;this.b=d.b};p.V.prototype.K=function(){};p.R=function(d,g){this.type=d;this.behavior=d.behavior;this.j=g;this.b=d.b;this.Sj=this.Em=this.Dm=this.ql=this.ni=this.vi=this.yh=this.zh=this.Lj=this.ej=!1;this.lc=null;this.Lo=-1;this.Dg=this.Cg=0;this.dl=!1;this.sg=this.Jd=0;this.al=!0;this.I=this.H=0};var t=p.R.prototype;t.Sp=function(){this.Wa=Math.cos(this.nh);this.Xa=Math.sin(this.nh);this.we=Math.cos(this.nh-
Math.PI/2);this.xe=Math.sin(this.nh-Math.PI/2);this.Wa=ib(this.Wa);this.Xa=ib(this.Xa);this.we=ib(this.we);this.xe=ib(this.xe);this.hl=this.hb;0>this.hb&&(this.Wa*=-1,this.Xa*=-1,this.hb=Math.abs(this.hb))};t.K=function(){this.Xe=this.B[0];this.Kb=this.B[1];this.gh=this.B[2];this.$i=this.B[3];this.hl=this.hb=this.B[4];this.Ql=this.B[5];this.Ln=0!==this.B[6];this.Eo=this.B[7]/1E3;this.ww=1===this.B[8];this.enabled=0!==this.B[9];this.gi=!1;this.hi=this.b.nf(this.j);this.Mo=-1;this.Vg=0;this.nh=S(90);
this.Sp();var d=this;this.ww&&!this.b.jb&&(jQuery(document).keydown(function(g){d.bp(g)}),jQuery(document).keyup(function(g){d.cp(g)}));this.Yb||(this.tj=function(g){d.xj(g)});this.b.qk(this.tj);this.j.N.isPlatformBehavior=!0};t.Ta=function(){return{ii:this.ql,lfx:this.Cg,lfy:this.Dg,lfo:this.lc?this.lc.uid:-1,am:this.Jd,en:this.enabled,fall:this.sg,ft:this.al,dx:this.H,dy:this.I,ms:this.Xe,acc:this.Kb,dec:this.gh,js:this.$i,g:this.hb,g1:this.hl,mf:this.Ql,wof:this.gi,woj:this.hi?this.hi.uid:-1,ga:this.nh,
edj:this.Ln,cdj:this.ni,dj:this.vi,sus:this.Eo}};t.bb=function(d){this.ql=d.ii;this.Cg=d.lfx;this.Dg=d.lfy;this.Lo=d.lfo;this.Jd=d.am;this.enabled=d.en;this.sg=d.fall;this.al=d.ft;this.H=d.dx;this.I=d.dy;this.Xe=d.ms;this.Kb=d.acc;this.gh=d.dec;this.$i=d.js;this.hb=d.g;this.hl=d.g1;this.Ql=d.mf;this.gi=d.wof;this.Mo=d.woj;this.nh=d.ga;this.Ln=d.edj;this.ni=d.cdj;this.vi=d.dj;this.Eo=d.sus;this.Sj=this.Em=this.Dm=this.yh=this.zh=this.Lj=this.ej=!1;this.Vg=0;this.Sp()};t.Hd=function(){-1===this.Lo?
this.lc=null:this.lc=this.b.vg(this.Lo);-1===this.Mo?this.hi=null:this.hi=this.b.vg(this.Mo)};t.xj=function(d){this.lc==d&&(this.lc=null)};t.Vd=function(){this.lc=null;this.b.ht(this.tj)};t.bp=function(d){switch(d.which){case 38:d.preventDefault();this.zh=!0;break;case 37:d.preventDefault();this.ej=!0;break;case 39:d.preventDefault(),this.Lj=!0}};t.cp=function(d){switch(d.which){case 38:d.preventDefault();this.yh=this.zh=!1;break;case 37:d.preventDefault();this.ej=!1;break;case 39:d.preventDefault(),
this.Lj=!1}};t.Sf=function(){this.zh=this.Lj=this.ej=!1};t.bg=function(){return 0>this.hb?-1:1};t.Jr=function(){var d=null,g=null,k,c;k=this.j.x;c=this.j.y;this.j.x+=this.Wa;this.j.y+=this.Xa;this.j.C();if(this.lc&&this.b.nc(this.j,this.lc)&&(!this.b.Op(this.lc.type,oc)||this.lc.N.solidEnabled))return this.j.x=k,this.j.y=c,this.j.C(),this.lc;(d=this.b.ab(this.j))||0!==this.sg||(g=this.b.nf(this.j,!0));this.j.x=k;this.j.y=c;this.j.C();if(d){if(this.b.nc(this.j,d))return null;this.dl=!1;return d}if(g&&
g.length){c=d=0;for(k=g.length;d<k;d++)g[c]=g[d],this.b.nc(this.j,g[d])||c++;if(1<=c)return this.dl=!0,g[0]}return null};t.Ha=function(){};t.Ys=function(){var d=this.b.Oe(this.j),g,k,c,b,e,a,f,p,h;this.zh||this.Sj||(this.yh=!1);var q=this.ej||this.Dm;c=this.Lj||this.Em;var t=(b=this.zh||this.Sj)&&!this.yh;this.Sj=this.Em=this.Dm=!1;if(this.enabled){this.ql&&(t=b=c=q=!1);b||(this.Vg=0);p=this.lc;h=!1;this.al&&((this.b.ab(this.j)||this.b.nf(this.j))&&this.b.hd(this.j,-this.Wa,-this.Xa,4,!0),this.al=
!1);!p||0!==this.I||p.y===this.Dg&&p.x===this.Cg||(g=p.x-this.Cg,k=p.y-this.Dg,this.j.x+=g,this.j.y+=k,this.j.C(),this.Cg=p.x,this.Dg=p.y,h=!0,this.b.ab(this.j)&&this.b.hd(this.j,-g,-k,2.5*Math.sqrt(g*g+k*k)));var u=this.Jr();if(k=this.b.ab(this.j))if(this.j.N.inputPredicted)this.b.hd(this.j,-this.Wa,-this.Xa,10,!1);else if(this.b.Az(this.j,this.we,this.xe,this.j.width/2))this.b.Qg(this.j,k);else if(this.b.dt(this.j,Math.max(this.j.width,this.j.height)/2))this.b.Qg(this.j,k);else return;u?(this.ni=
this.vi=!1,0<this.I&&(this.gi||(this.b.mm(this.j,-this.Wa,-this.Xa,u),this.gi=!0),this.I=0),p!=u)?(this.lc=u,this.Cg=u.x,this.Dg=u.y,this.b.Qg(this.j,u)):h&&(k=this.b.ab(this.j))&&(this.b.Qg(this.j,k),0!==g&&(0<g?this.b.hd(this.j,-this.we,-this.xe):this.b.hd(this.j,this.we,this.xe)),this.b.hd(this.j,-this.Wa,-this.Xa)):b||(this.ni=!0);if(u&&t||!u&&this.Ln&&b&&this.ni&&!this.vi)p=this.j.x,h=this.j.y,this.j.x-=this.Wa,this.j.y-=this.Xa,this.j.C(),this.b.ab(this.j)?t=!1:(this.Vg=this.Eo,this.b.trigger(Ic.prototype.n.kq,
this.j),this.Jd=2,this.I=-this.$i,t=!0,u?this.yh=!0:this.vi=!0),this.j.x=p,this.j.y=h,this.j.C();u||(b&&0<this.Vg?(this.I=-this.$i,this.Vg-=d):(this.lc=null,this.I+=this.hb*d,this.I>this.Ql&&(this.I=this.Ql)),t&&(this.yh=!0));this.gi=!!u;q==c&&(0>this.H?(this.H+=this.gh*d,0<this.H&&(this.H=0)):0<this.H&&(this.H-=this.gh*d,0>this.H&&(this.H=0)));q&&!c&&(this.H=0<this.H?this.H-(this.Kb+this.gh)*d:this.H-this.Kb*d);c&&!q&&(this.H=0>this.H?this.H+(this.Kb+this.gh)*d:this.H+this.Kb*d);this.H>this.Xe?this.H=
this.Xe:this.H<-this.Xe&&(this.H=-this.Xe);q=!1;0!==this.H&&(p=this.j.x,h=this.j.y,g=this.H*d*this.we,k=this.H*d*this.xe,this.j.x+=this.we*(1<this.H?1:-1)-this.Wa,this.j.y+=this.xe*(1<this.H?1:-1)-this.Xa,this.j.C(),b=!1,e=this.b.ab(this.j),this.j.x=p+g,this.j.y=h+k,this.j.C(),c=this.b.ab(this.j),!c&&u&&(c=this.b.nf(this.j))&&(this.j.x=p,this.j.y=h,this.j.C(),this.b.nc(this.j,c)?(c=null,b=!1):b=!0,this.j.x=p+g,this.j.y=h+k,this.j.C()),c?(g=Math.abs(this.H*d)+2,e||!this.b.hd(this.j,-this.Wa,-this.Xa,
g,b,c))?(this.b.Qg(this.j,c),g=Math.max(Math.abs(this.H*d*2.5),30),this.b.hd(this.j,this.we*(0>this.H?1:-1),this.xe*(0>this.H?1:-1),g,!1)?!u||b||this.dl||(p=this.j.x,h=this.j.y,this.j.x+=this.Wa,this.j.y+=this.Xa,this.b.ab(this.j)?this.b.hd(this.j,-this.Wa,-this.Xa,3,!1)||(this.j.x=p,this.j.y=h,this.j.C()):(this.j.x=p,this.j.y=h,this.j.C())):(this.j.x=p,this.j.y=h,this.j.C()),b||(this.H=0)):!e&&!t&&Math.abs(this.I)<Math.abs(this.$i/4)&&(this.I=0,u||(q=!0)):(p=this.Jr(),u&&!p?(k=Math.ceil(Math.abs(this.H*
d))+2,p=this.j.x,h=this.j.y,this.j.x+=this.Wa*k,this.j.y+=this.Xa*k,this.j.C(),this.b.ab(this.j)||this.b.nf(this.j)?this.b.hd(this.j,-this.Wa,-this.Xa,k+2,!0):(this.j.x=p,this.j.y=h,this.j.C())):p&&0===this.I&&this.b.mm(this.j,-this.Wa,-this.Xa,p)));if(0!==this.I){p=this.j.x;h=this.j.y;this.j.x+=this.I*d*this.Wa;this.j.y+=this.I*d*this.Xa;g=this.j.x;c=this.j.y;this.j.C();k=this.b.ab(this.j);b=!1;if(!k&&0<this.I&&!u){if((b=0<this.sg?null:this.b.nf(this.j,!0))&&b.length){if(this.hi){this.j.x=p;this.j.y=
h;this.j.C();f=e=0;for(a=b.length;e<a;e++)b[f]=b[e],this.b.nc(this.j,b[e])||f++;b.length=f;this.j.x=g;this.j.y=c;this.j.C()}1<=b.length&&(k=b[0])}b=!!k}k&&(this.b.Qg(this.j,k),this.Vg=0,g=b?Math.abs(this.I*d*2.5+10):Math.max(Math.abs(this.I*d*2.5+10),30),this.b.hd(this.j,this.Wa*(0>this.I?1:-1),this.Xa*(0>this.I?1:-1),g,b,k)?(this.lc=k,this.Cg=k.x,this.Dg=k.y,(this.dl=b)&&(q=!0),this.I=0):(this.j.x=p,this.j.y=h,this.j.C(),this.gi=!0,b||(this.I=0)))}3!==this.Jd&&0<this.I&&!u&&(this.b.trigger(Ic.prototype.n.av,
this.j),this.Jd=3);(u||q)&&0<=this.I&&(3===this.Jd||q||t&&0===this.I?(this.b.trigger(Ic.prototype.n.dv,this.j),this.Jd=0===this.H&&0===this.I?0:1):(0!==this.Jd&&0===this.H&&0===this.I&&(this.b.trigger(Ic.prototype.n.sv,this.j),this.Jd=0),1===this.Jd||0===this.H&&0===this.I||t||(this.b.trigger(Ic.prototype.n.jv,this.j),this.Jd=1)));0<this.sg&&this.sg--;this.hi=this.b.nf(this.j)}};d.prototype.Ou=function(){return 0!==this.H||0!==this.I};d.prototype.Pu=function(){if(0!==this.I)return!1;var d=null,g=
null,k,c;k=this.j.x;c=this.j.y;this.j.x+=this.Wa;this.j.y+=this.Xa;this.j.C();(d=this.b.ab(this.j))||0!==this.sg||(g=this.b.nf(this.j,!0));this.j.x=k;this.j.y=c;this.j.C();if(d)return!this.b.nc(this.j,d);if(g&&g.length){c=d=0;for(k=g.length;d<k;d++)g[c]=g[d],this.b.nc(this.j,g[d])||c++;if(1<=c)return!0}return!1};d.prototype.Hu=function(d){var g=!1,k=this.j.x,c=this.j.y;0===d?(this.j.x-=2*this.we,this.j.y-=2*this.xe):(this.j.x+=2*this.we,this.j.y+=2*this.xe);this.j.C();if(!this.b.ab(this.j))return this.j.x=
k,this.j.y=c,this.j.C(),!1;this.j.x-=3*this.Wa;this.j.y-=3*this.Xa;this.j.C();g=this.b.ab(this.j);this.j.x=k;this.j.y=c;this.j.C();return g};d.prototype.Lu=function(){return 0>this.I};d.prototype.Ju=function(){return 0<this.I};d.prototype.kq=function(){return!0};d.prototype.av=function(){return!0};d.prototype.sv=function(){return!0};d.prototype.jv=function(){return!0};d.prototype.dv=function(){return!0};p.n=new d;q.prototype.Gv=function(d){this.ql=d};q.prototype.Iv=function(d){this.Xe=d;0>this.Xe&&
(this.Xe=0)};q.prototype.tq=function(d){this.Kb=d;0>this.Kb&&(this.Kb=0)};q.prototype.kn=function(d){this.hl!==d&&(this.hb=d,this.Sp(),this.b.ab(this.j)&&(this.b.hd(this.j,this.Wa,this.Xa,10),this.j.x+=2*this.Wa,this.j.y+=2*this.Xa,this.j.C()),this.lc=null)};q.prototype.Uv=function(d){switch(d){case 0:this.Dm=!0;break;case 1:this.Em=!0;break;case 2:this.Sj=!0}};p.F=new q;p.ea=new function(){}})();function Jc(d){this.b=d}
(function(){var d=Jc.prototype;d.V=function(d){this.behavior=d;this.b=d.b};d.V.prototype.K=function(){};d.R=function(d,k){this.type=d;this.behavior=d.behavior;this.j=k;this.b=d.b;this.Ab=0};var q=d.R.prototype,p=2*Math.PI,t=Math.PI/2,n=3*Math.PI/2;q.K=function(){this.Ua=1===this.B[0];this.Jh=this.B[1];this.Zp=this.B[2];this.cf=this.B[3];this.cf+=Math.random()*this.B[4];0===this.cf?this.Ab=0:(this.Ab=this.B[5]/this.cf*p,this.Ab+=Math.random()*this.B[6]/this.cf*p);this.Hc=this.B[7];this.Hc+=Math.random()*
this.B[8];this.Jj=this.zg=this.qa=0;5===this.Jh&&(this.Hc=S(this.Hc));this.init()};q.Ta=function(){return{i:this.Ab,a:this.Ua,mv:this.Jh,w:this.Zp,p:this.cf,mag:this.Hc,iv:this.qa,iv2:this.zg,r:this.Jj,lkv:this.Vc,lkv2:this.aj}};q.bb=function(d){this.Ab=d.i;this.Ua=d.a;this.Jh=d.mv;this.Zp=d.w;this.cf=d.p;this.Hc=d.mag;this.qa=d.iv;this.zg=d.iv2||0;this.Jj=d.r;this.Vc=d.lkv;this.aj=d.lkv2||0};q.init=function(){switch(this.Jh){case 0:this.qa=this.j.x;break;case 1:this.qa=this.j.y;break;case 2:this.qa=
this.j.width;this.Jj=this.j.height/this.j.width;break;case 3:this.qa=this.j.width;break;case 4:this.qa=this.j.height;break;case 5:this.qa=this.j.q;break;case 6:this.qa=this.j.opacity;break;case 7:this.qa=0;break;case 8:this.qa=this.j.x,this.zg=this.j.y}this.Vc=this.qa;this.aj=this.zg};q.sf=function(d){d=d%p;switch(this.Zp){case 0:return Math.sin(d);case 1:return d<=t?d/t:d<=n?1-2*(d-t)/Math.PI:(d-n)/t-1;case 2:return 2*d/p-1;case 3:return-2*d/p+1;case 4:return d<Math.PI?-1:1}return 0};q.Ha=function(){var d=
this.b.Oe(this.j);this.Ua&&0!==d&&(0===this.cf?this.Ab=0:(this.Ab+=d/this.cf*p,this.Ab=this.Ab%p),this.cA())};q.cA=function(){switch(this.Jh){case 0:this.j.x!==this.Vc&&(this.qa+=this.j.x-this.Vc);this.j.x=this.qa+this.sf(this.Ab)*this.Hc;this.Vc=this.j.x;break;case 1:this.j.y!==this.Vc&&(this.qa+=this.j.y-this.Vc);this.j.y=this.qa+this.sf(this.Ab)*this.Hc;this.Vc=this.j.y;break;case 2:this.j.width=this.qa+this.sf(this.Ab)*this.Hc;this.j.height=this.j.width*this.Jj;break;case 3:this.j.width=this.qa+
this.sf(this.Ab)*this.Hc;break;case 4:this.j.height=this.qa+this.sf(this.Ab)*this.Hc;break;case 5:this.j.q!==this.Vc&&(this.qa=Ja(this.qa+(this.j.q-this.Vc)));this.j.q=Ja(this.qa+this.sf(this.Ab)*this.Hc);this.Vc=this.j.q;break;case 6:this.j.opacity=this.qa+this.sf(this.Ab)*this.Hc/100;0>this.j.opacity?this.j.opacity=0:1<this.j.opacity&&(this.j.opacity=1);break;case 8:this.j.x!==this.Vc&&(this.qa+=this.j.x-this.Vc),this.j.y!==this.aj&&(this.zg+=this.j.y-this.aj),this.j.x=this.qa+Math.cos(this.j.q)*
this.sf(this.Ab)*this.Hc,this.j.y=this.zg+Math.sin(this.j.q)*this.sf(this.Ab)*this.Hc,this.Vc=this.j.x,this.aj=this.j.y}this.j.C()};q.Js=function(d,k){switch(this.Jh){case 2:this.qa*=k.width/d.width;this.Jj=k.height/k.width;break;case 3:this.qa*=k.width/d.width;break;case 4:this.qa*=k.height/d.height}};d.n=new function(){};d.F=new function(){};d.ea=new function(){}})();function Kc(d){this.b=d}
(function(){var d=Kc.prototype;d.V=function(d){this.behavior=d;this.b=d.b};d.V.prototype.K=function(){};d.R=function(d,q){this.type=d;this.behavior=d.behavior;this.j=q;this.b=d.b};var q=d.R.prototype;q.K=function(){this.Nc={}};q.Vd=function(){Va(this.Nc)};q.Ta=function(){var d={},q,n;for(q in this.Nc)this.Nc.hasOwnProperty(q)&&(n=this.Nc[q],d[q]={c:n.current.O,t:n.total.O,d:n.duration,r:n.gt});return d};q.bb=function(d){this.Nc={};for(var q in d)d.hasOwnProperty(q)&&(this.Nc[q]={current:new bb,total:new bb,
duration:d[q].d,gt:d[q].r},this.Nc[q].current.O=d[q].c,this.Nc[q].total.O=d[q].t)};q.Ha=function(){var d=this.b.Oe(this.j),q,n;for(q in this.Nc)this.Nc.hasOwnProperty(q)&&(n=this.Nc[q],n.current.add(d),n.total.add(d))};q.ak=function(){var d,q;for(d in this.Nc)this.Nc.hasOwnProperty(d)&&(q=this.Nc[d],q.current.O>=q.duration&&(q.gt?q.current.O-=q.duration:delete this.Nc[d]))};d.n=new function(){};d.F=new function(){};d.ea=new function(){}})();function Lc(d){this.b=d}
(function(){var d=Lc.prototype;d.V=function(d){this.behavior=d;this.b=d.b};d.V.prototype.K=function(){};d.R=function(d,p){this.type=d;this.behavior=d.behavior;this.j=p;this.b=d.b};d=d.R.prototype;d.K=function(){};d.Ha=function(){this.j.Ia();var d=this.j.Ma,p=this.j.u.lb;(0>d.right||0>d.bottom||d.left>p.width||d.top>p.height)&&this.b.ge(this.j)}})();function Mc(d){this.b=d;this.Cm=this.Rj=this.Tg=this.Bm=0}
(function(){function d(){}var q=Mc.prototype;q.V=function(d){this.behavior=d;this.b=d.b};q.V.prototype.K=function(){};q.R=function(d,n){this.type=d;this.behavior=d.behavior;this.j=n;this.b=d.b};var p=q.R.prototype;p.K=function(){this.enabled=0!==this.B[0]};p.Ta=function(){return{smg:this.behavior.Bm,ss:this.behavior.Tg,se:this.behavior.Rj,smd:this.behavior.Cm}};p.bb=function(d){this.behavior.Bm=d.smg;this.behavior.Tg=d.ss;this.behavior.Rj=d.se;this.behavior.Cm=d.smd};p.Ha=function(){};p.ak=function(){if(this.enabled){var d=
this.behavior.Rl.qf(),n=0,g=0,k,c,b,e=0;k=0;for(c=d.length;k<c;k++){a:{b=d[k];for(var a=void 0,f=void 0,p=void 0,a=0,f=b.W.length;a<f;++a)if(p=b.W[a],p.behavior instanceof Mc){b=p;break a}b=null}b&&b.enabled&&(n+=d[k].x,g+=d[k].y,++e)}d=this.j.u.lb;c=this.b.kb.O;b=k=0;c>=this.behavior.Tg&&c<this.behavior.Rj&&(k=this.behavior.Bm*Math.min(this.b.Xg,1),0===this.behavior.Cm&&(k*=1-(c-this.behavior.Tg)/(this.behavior.Rj-this.behavior.Tg)),c=Math.random()*Math.PI*2,b=Math.random()*k,k=Math.cos(c)*b,b*=
Math.sin(c));d.up(n/e+k);d.vp(g/e+b)}};d.prototype.Tv=function(d,n,g){this.behavior.Bm=d;this.behavior.Tg=this.b.kb.O;this.behavior.Rj=this.behavior.Tg+n;this.behavior.Cm=g};q.F=new d})();function oc(d){this.b=d}
(function(){var d=oc.prototype;d.V=function(d){this.behavior=d;this.b=d.b};d.V.prototype.K=function(){};d.R=function(d,q){this.type=d;this.behavior=d.behavior;this.j=q;this.b=d.b};var q=d.R.prototype;q.K=function(){this.j.N.solidEnabled=0!==this.B[0]};q.Ha=function(){};d.n=new function(){};d.F=new function(){}})();
function nc(){return[qc,rc,sc,pc,tc,vc,uc,wc,U,xc,yc,Cc,Hc,Mc,oc,Ac,Ic,zc,Jc,Kc,Lc,T.prototype.n.oq,T.prototype.F.Pv,T.prototype.n.Ku,T.prototype.n.yu,U.prototype.F.Cv,U.prototype.n.$f,U.prototype.F.Hv,Ic.prototype.F.Iv,T.prototype.ea["int"],T.prototype.ea.random,U.prototype.n.cq,Ic.prototype.F.Uv,U.prototype.F.Jv,Ic.prototype.n.Hu,Ic.prototype.n.Pu,Ic.prototype.n.Ou,U.prototype.n.Xu,pc.prototype.F.CallFunction,T.prototype.F.ju,Cc.prototype.F.zu,U.prototype.F.wu,U.prototype.F.Vv,T.prototype.F.$v,
T.prototype.n.xu,T.prototype.n.Zv,U.prototype.F.iu,T.prototype.n.su,T.prototype.F.uu,U.prototype.F.Lv,T.prototype.ea.Lq,pc.prototype.n.nk,U.prototype.F.Kv,rc.prototype.F.Wv,rc.prototype.F.Play,Ic.prototype.F.Gv,T.prototype.F.Bu,U.prototype.n.qu,uc.prototype.n.dn,uc.prototype.n.Gu,tc.prototype.n.lq,T.prototype.n.pu,qc.prototype.ea.vq,T.prototype.n.fq,Hc.prototype.F.xv,uc.prototype.F.Dv,qc.prototype.F.Sv,U.prototype.F.Ov,uc.prototype.ea.ln,uc.prototype.ea.mn,qc.prototype.ea.lu,wc.prototype.n.cq,wc.prototype.F.Nv,
U.prototype.n.dq,U.prototype.F.Fv,tc.prototype.n.Mu,Ic.prototype.n.kq,Ic.prototype.n.Lu,Ic.prototype.n.Ju,Mc.prototype.F.Tv,pc.prototype.ea.wv,U.prototype.n.Nu,U.prototype.F.Tu,pc.prototype.n.ru,qc.prototype.n.tu,U.prototype.ea.Du,U.prototype.ea.Eu,U.prototype.F.Bv,T.prototype.ea.q,U.prototype.ea.ln,U.prototype.ea.mn,T.prototype.n.yv,T.prototype.n.Au,zc.prototype.F.Mv,zc.prototype.F.tq,zc.prototype.F.kn,U.prototype.F.Ev,U.prototype.F.Xv,U.prototype.F.uq,uc.prototype.n.gn,sc.prototype.F.zv,uc.prototype.n.Qu,
tc.prototype.n.iq,uc.prototype.n.hq,T.prototype.F.Av]};
