// Generated by Construct 2, the HTML5 game and app creator :: https://www.construct.net
'use strict';var aa,da,ea,fa,ga,ha,ja,ka,y,na,oa,pa,qa,ra,sa,C,ta,ua,va,xa,ya,za,Aa,Ba,Ca,Da,Fa,G,Ga,Ha,Ia,Ja,Ka,Q,Ma,Na,Oa,Pa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc,hc,ic,jc,kc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(d){return d.__proto__}:function(d){return d.constructor.prototype});
(function(){function d(a,e,b,c){this.set(a,e,b,c)}function r(){this.rc=this.qc=this.uc=this.tc=this.Ic=this.Hc=this.Xb=this.Wb=0}function q(a,e,b,c){a<e?b<c?(N=a<b?a:b,O=e>c?e:c):(N=a<c?a:c,O=e>b?e:b):b<c?(N=e<b?e:b,O=a>c?a:c):(N=e<c?e:c,O=a>b?a:b)}function p(){this.items=this.Xa=null;this.tj=0;U&&(this.Xa=new Set);this.ri=[];this.tf=!0}function m(a){x[L++]=a}function k(){this.M=this.jn=this.y=this.Ii=0}function l(a){this.Fb=[];this.Kk=this.Mk=this.Nk=this.Lk=0;this.dk(a)}function a(a,e){this.Wn=
a;this.Vn=e;this.cells={}}function b(a,e){this.Wn=a;this.Vn=e;this.cells={}}function c(a,e,b){var c;return A.length?(c=A.pop(),c.Go=a,c.x=e,c.y=b,c):new da(a,e,b)}function e(a,e,b){this.Go=a;this.x=e;this.y=b;this.Jb=new ea}function h(a,e,b){var c;return v.length?(c=v.pop(),c.Go=a,c.x=e,c.y=b,c):new fa(a,e,b)}function f(a,e,b){this.Go=a;this.x=e;this.y=b;this.Jb=[];this.Kh=!0;this.te=new ea;this.Fi=!1}function g(a,e){return a.Zd-e.Zd}ga=function(a){window.console&&window.console.log&&window.console.log(a)};
ha=function(a){window.console&&window.console.error&&window.console.error(a)};aa=function(a){return a};ja=function(a){return"undefined"===typeof a};ka=function(a){return"number"===typeof a};y=function(a){return"string"===typeof a};na=function(a){return 0<a&&0===(a-1&a)};oa=function(a){--a;for(var e=1;32>e;e<<=1)a=a|a>>e;return a+1};pa=function(a){return 0>a?-a:a};qa=function(a,e){return a>e?a:e};ra=function(a,e){return a<e?a:e};sa=Math.PI;C=function(a){return 0<=a?a|0:(a|0)-1};ta=function(a){var e=
a|0;return e===a?e:e+1};ua=function(a,e,b,c,h,g,n,f){var t,w,z,d;a<b?(w=a,t=b):(w=b,t=a);h<n?(d=h,z=n):(d=n,z=h);if(t<d||w>z)return!1;e<c?(w=e,t=c):(w=c,t=e);g<f?(d=g,z=f):(d=f,z=g);if(t<d||w>z)return!1;t=h-a+n-b;w=g-e+f-c;a=b-a;e=c-e;h=n-h;g=f-g;f=pa(e*h-g*a);return pa(h*w-g*t)>f?!1:pa(a*w-e*t)<=f};d.prototype.set=function(a,e,b,c){this.left=a;this.top=e;this.right=b;this.bottom=c};d.prototype.kh=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};d.prototype.width=
function(){return this.right-this.left};d.prototype.height=function(){return this.bottom-this.top};d.prototype.offset=function(a,e){this.left+=a;this.top+=e;this.right+=a;this.bottom+=e;return this};d.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};d.prototype.Ps=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};d.prototype.Qs=
function(a,e,b){return!(a.right+e<this.left||a.bottom+b<this.top||a.left+e>this.right||a.top+b>this.bottom)};d.prototype.hc=function(a,e){return a>=this.left&&a<=this.right&&e>=this.top&&e<=this.bottom};d.prototype.Ri=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};va=d;r.prototype.Uf=function(a){this.Wb=a.left;this.Xb=a.top;this.Hc=a.right;this.Ic=a.top;this.tc=a.right;this.uc=a.bottom;this.qc=a.left;this.rc=a.bottom};r.prototype.Eu=function(a,
e){if(0===e)this.Uf(a);else{var b=Math.sin(e),c=Math.cos(e),h=a.left*b,g=a.top*b,n=a.right*b,b=a.bottom*b,f=a.left*c,t=a.top*c,w=a.right*c,c=a.bottom*c;this.Wb=f-g;this.Xb=t+h;this.Hc=w-g;this.Ic=t+n;this.tc=w-b;this.uc=c+n;this.qc=f-b;this.rc=c+h}};r.prototype.offset=function(a,e){this.Wb+=a;this.Xb+=e;this.Hc+=a;this.Ic+=e;this.tc+=a;this.uc+=e;this.qc+=a;this.rc+=e;return this};var N=0,O=0;r.prototype.Or=function(a){q(this.Wb,this.Hc,this.tc,this.qc);a.left=N;a.right=O;q(this.Xb,this.Ic,this.uc,
this.rc);a.top=N;a.bottom=O};r.prototype.hc=function(a,e){var b=this.Wb,c=this.Xb,h=this.Hc-b,g=this.Ic-c,n=this.tc-b,f=this.uc-c,t=a-b,w=e-c,z=h*h+g*g,d=h*n+g*f,g=h*t+g*w,l=n*n+f*f,u=n*t+f*w,m=1/(z*l-d*d),h=(l*g-d*u)*m,z=(z*u-d*g)*m;if(0<=h&&0<z&&1>h+z)return!0;h=this.qc-b;g=this.rc-c;z=h*h+g*g;d=h*n+g*f;g=h*t+g*w;m=1/(z*l-d*d);h=(l*g-d*u)*m;z=(z*u-d*g)*m;return 0<=h&&0<z&&1>h+z};r.prototype.rf=function(a,e){if(e)switch(a){case 0:return this.Wb;case 1:return this.Hc;case 2:return this.tc;case 3:return this.qc;
case 4:return this.Wb;default:return this.Wb}else switch(a){case 0:return this.Xb;case 1:return this.Ic;case 2:return this.uc;case 3:return this.rc;case 4:return this.Xb;default:return this.Xb}};r.prototype.Gt=function(){return(this.Wb+this.Hc+this.tc+this.qc)/4};r.prototype.Ht=function(){return(this.Xb+this.Ic+this.uc+this.rc)/4};r.prototype.To=function(a){var e=a.Gt(),b=a.Ht();if(this.hc(e,b))return!0;e=this.Gt();b=this.Ht();if(a.hc(e,b))return!0;var c,h,g,n,f,t,w,z;for(w=0;4>w;w++)for(z=0;4>z;z++)if(e=
this.rf(w,!0),b=this.rf(w,!1),c=this.rf(w+1,!0),h=this.rf(w+1,!1),g=a.rf(z,!0),n=a.rf(z,!1),f=a.rf(z+1,!0),t=a.rf(z+1,!1),ua(e,b,c,h,g,n,f,t))return!0;return!1};xa=r;ya=function(a,e,b){return Math.max(Math.min(a,255),0)|Math.max(Math.min(e,255),0)<<8|Math.max(Math.min(b,255),0)<<16};za=function(a){return a&255};Aa=function(a){return(a&65280)>>8};Ba=function(a){return(a&16711680)>>16};Ca=function(a,e){for(var b in e)e.hasOwnProperty(b)&&(a[b]=e[b]);return a};Da=function(a,e){var b,c;e=C(e);if(!(0>
e||e>=a.length)){b=e;for(c=a.length-1;b<c;b++)a[b]=a[b+1];Fa(a,c)}};Fa=function(a,e){a.length=e};G=function(a){Fa(a,0)};Ga=function(a,e){G(a);var b,c;b=0;for(c=e.length;b<c;++b)a[b]=e[b]};Ha=function(a,e){a.push.apply(a,e)};Ia=function(a,e){var b,c;b=0;for(c=a.length;b<c;++b)if(a[b]===e)return b;return-1};Ja=function(a,e){var b=Ia(a,e);-1!==b&&Da(a,b)};Ka=function(a,e,b){return a<e?e:a>b?b:a};Q=function(a){return a/(180/sa)};Ma=function(a){return 180/sa*a};Na=function(a){a%=360;0>a&&(a+=360);return a};
Oa=function(a){a%=2*sa;0>a&&(a+=2*sa);return a};Pa=function(a){return Na(Ma(a))};Ra=function(a){return Oa(Q(a))};Sa=function(a,e,b,c){return Math.atan2(c-e,b-a)};Ta=function(a,e){if(a===e)return 0;var b=Math.sin(a),c=Math.cos(a),h=Math.sin(e),g=Math.cos(e),b=b*h+c*g;return 1<=b?0:-1>=b?sa:Math.acos(b)};Ua=function(a,e,b){var c=Math.sin(a),h=Math.cos(a),g=Math.sin(e),n=Math.cos(e);return Math.acos(c*g+h*n)>b?0<h*g-c*n?Oa(a+b):Oa(a-b):Oa(e)};Va=function(a,e){var b=Math.sin(a),c=Math.cos(a),h=Math.sin(e),
g=Math.cos(e);return 0>=c*h-b*g};Wa=function(a,e,b,c,h,g){if(0===b)return g?a:e;var n=Math.sin(b);b=Math.cos(b);a-=c;e-=h;var f=a*n;a=a*b-e*n;e=e*b+f;return g?a+c:e+h};Xa=function(a,e,b,c){a=b-a;e=c-e;return Math.sqrt(a*a+e*e)};Ya=function(a,e){return!a!==!e};Za=function(a){for(var e in a)if(a.hasOwnProperty(e))return!0;return!1};bb=function(a){for(var e in a)a.hasOwnProperty(e)&&delete a[e]};var u=+new Date;cb=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 n=!1,t=n=!1,P=!1;"undefined"!==typeof window&&(n=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),n=!n&&/safari/i.test(navigator.userAgent),t=/(iphone|ipod|ipad)/i.test(navigator.userAgent),P=window.c2ejecta);var U=!n&&!P&&!t&&"undefined"!==typeof Set&&"undefined"!==
typeof Set.prototype.forEach;p.prototype.contains=function(a){return this.Me()?!1:U?this.Xa.has(a):this.items&&this.items.hasOwnProperty(a)};p.prototype.add=function(a){if(U)this.Xa.has(a)||(this.Xa.add(a),this.tf=!1);else{var e=a.toString(),b=this.items;b?b.hasOwnProperty(e)||(b[e]=a,this.tj++,this.tf=!1):(this.items={},this.items[e]=a,this.tj=1,this.tf=!1)}};p.prototype.remove=function(a){if(!this.Me())if(U)this.Xa.has(a)&&(this.Xa["delete"](a),this.tf=!1);else if(this.items){a=a.toString();var e=
this.items;e.hasOwnProperty(a)&&(delete e[a],this.tj--,this.tf=!1)}};p.prototype.clear=function(){this.Me()||(U?this.Xa.clear():(this.items=null,this.tj=0),G(this.ri),this.tf=!0)};p.prototype.Me=function(){return 0===this.count()};p.prototype.count=function(){return U?this.Xa.size:this.tj};var x=null,L=0;p.prototype.IB=function(){if(!this.tf){if(U)G(this.ri),x=this.ri,L=0,this.Xa.forEach(m),x=null,L=0;else{var a=this.ri;G(a);var e,b=0,c=this.items;if(c)for(e in c)c.hasOwnProperty(e)&&(a[b++]=c[e])}this.tf=
!0}};p.prototype.ff=function(){this.IB();return this.ri};ea=p;new ea;db=function(a,e){U?eb(a,e.Xa):fb(a,e.ff())};eb=function(a,e){var b,c,h,g;c=b=0;for(h=a.length;b<h;++b)g=a[b],e.has(g)||(a[c++]=g);Fa(a,c)};fb=function(a,e){var b,c,h,g;c=b=0;for(h=a.length;b<h;++b)g=a[b],-1===Ia(e,g)&&(a[c++]=g);Fa(a,c)};k.prototype.add=function(a){this.y=a-this.Ii;this.jn=this.M+this.y;this.Ii=this.jn-this.M-this.y;this.M=this.jn};k.prototype.reset=function(){this.M=this.jn=this.y=this.Ii=0};gb=k;hb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,
"\\$&")};l.prototype.dk=function(a){this.mu=a;this.Rd=a.length/2;this.Fb.length=a.length;this.Qk=this.Rk=-1;this.Rr=0};l.prototype.Bg=function(){return!this.mu.length};l.prototype.xa=function(){for(var a=this.Fb,e=a[0],b=e,c=a[1],h=c,g,n,f=1,t=this.Rd;f<t;++f)n=2*f,g=a[n],n=a[n+1],g<e&&(e=g),g>b&&(b=g),n<c&&(c=n),n>h&&(h=n);this.Lk=e;this.Mk=b;this.Nk=c;this.Kk=h};l.prototype.Uf=function(a,e,b){this.Fb.length=8;this.Rd=4;var c=this.Fb;c[0]=a.left-e;c[1]=a.top-b;c[2]=a.right-e;c[3]=a.top-b;c[4]=a.right-
e;c[5]=a.bottom-b;c[6]=a.left-e;c[7]=a.bottom-b;this.Rk=a.right-a.left;this.Qk=a.bottom-a.top;this.xa()};l.prototype.Ug=function(a,e,b,c,h){this.Fb.length=8;this.Rd=4;var g=this.Fb;g[0]=a.Wb-e;g[1]=a.Xb-b;g[2]=a.Hc-e;g[3]=a.Ic-b;g[4]=a.tc-e;g[5]=a.uc-b;g[6]=a.qc-e;g[7]=a.rc-b;this.Rk=c;this.Qk=h;this.xa()};l.prototype.Du=function(a){this.Rd=a.Rd;Ga(this.Fb,a.Fb);this.Lk=a.Lk;this.Nk=a.Nk;this.Mk=a.Mk;this.Kk=a.Kk};l.prototype.gg=function(a,e,b){if(this.Rk!==a||this.Qk!==e||this.Rr!==b){this.Rk=a;
this.Qk=e;this.Rr=b;var c,h,g,n,f,t=0,w=1,z=this.mu,d=this.Fb;0!==b&&(t=Math.sin(b),w=Math.cos(b));b=0;for(g=this.Rd;b<g;b++)c=2*b,h=c+1,n=z[c]*a,f=z[h]*e,d[c]=n*w-f*t,d[h]=f*w+n*t;this.xa()}};l.prototype.hc=function(a,e){var b=this.Fb;if(a===b[0]&&e===b[1])return!0;var c,h,g,n=this.Rd,f=this.Lk-110,t=this.Nk-101,w=this.Mk+131,z=this.Kk+120,d,l,u=0,m=0;for(c=0;c<n;c++)h=2*c,g=(c+1)%n*2,d=b[h],h=b[h+1],l=b[g],g=b[g+1],ua(f,t,a,e,d,h,l,g)&&u++,ua(w,z,a,e,d,h,l,g)&&m++;return 1===u%2||1===m%2};l.prototype.zg=
function(a,e,b){var c=a.Fb,h=this.Fb;if(this.hc(c[0]+e,c[1]+b)||a.hc(h[0]-e,h[1]-b))return!0;var g,n,f,t,w,z,d,l,u,m,N,x;g=0;for(t=this.Rd;g<t;g++)for(n=2*g,f=(g+1)%t*2,l=h[n],n=h[n+1],u=h[f],m=h[f+1],f=0,d=a.Rd;f<d;f++)if(w=2*f,z=(f+1)%d*2,N=c[w]+e,w=c[w+1]+b,x=c[z]+e,z=c[z+1]+b,ua(l,n,u,m,N,w,x,z))return!0;return!1};ib=l;a.prototype.zf=function(a,e,b){var h;h=this.cells[a];return h?(h=h[e])?h:b?(h=c(this,a,e),this.cells[a][e]=h):null:b?(h=c(this,a,e),this.cells[a]={},this.cells[a][e]=h):null};a.prototype.nc=
function(a){return C(a/this.Wn)};a.prototype.oc=function(a){return C(a/this.Vn)};a.prototype.update=function(a,e,b){var c,h,g,n,f;if(e)for(c=e.left,h=e.right;c<=h;++c)for(g=e.top,n=e.bottom;g<=n;++g)if(!b||!b.hc(c,g))if(f=this.zf(c,g,!1))f.remove(a),f.Me()&&(f.Jb.clear(),1E3>A.length&&A.push(f),this.cells[c][g]=null);if(b)for(c=b.left,h=b.right;c<=h;++c)for(g=b.top,n=b.bottom;g<=n;++g)e&&e.hc(c,g)||this.zf(c,g,!0).Ro(a)};a.prototype.Lm=function(a,e){var b,c,h,g,n,f;b=this.nc(a.left);h=this.oc(a.top);
c=this.nc(a.right);for(n=this.oc(a.bottom);b<=c;++b)for(g=h;g<=n;++g)(f=this.zf(b,g,!1))&&f.dump(e)};jb=a;b.prototype.zf=function(a,e,b){var c;c=this.cells[a];return c?(c=c[e])?c:b?(c=h(this,a,e),this.cells[a][e]=c):null:b?(c=h(this,a,e),this.cells[a]={},this.cells[a][e]=c):null};b.prototype.nc=function(a){return C(a/this.Wn)};b.prototype.oc=function(a){return C(a/this.Vn)};b.prototype.update=function(a,e,b){var c,h,g,n,f;if(e)for(c=e.left,h=e.right;c<=h;++c)for(g=e.top,n=e.bottom;g<=n;++g)if(!b||
!b.hc(c,g))if(f=this.zf(c,g,!1))f.remove(a),f.Me()&&(f.reset(),1E3>v.length&&v.push(f),this.cells[c][g]=null);if(b)for(c=b.left,h=b.right;c<=h;++c)for(g=b.top,n=b.bottom;g<=n;++g)e&&e.hc(c,g)||this.zf(c,g,!0).Ro(a)};b.prototype.Lm=function(a,e,b,c,h){var g,n;a=this.nc(a);e=this.oc(e);b=this.nc(b);for(g=this.oc(c);a<=b;++a)for(c=e;c<=g;++c)(n=this.zf(a,c,!1))&&n.dump(h)};b.prototype.uA=function(a){var e,b,c,h,g;e=a.left;c=a.top;b=a.right;for(h=a.bottom;e<=b;++e)for(a=c;a<=h;++a)if(g=this.zf(e,a,!1))g.Kh=
!1};kb=b;var A=[];e.prototype.Me=function(){return this.Jb.Me()};e.prototype.Ro=function(a){this.Jb.add(a)};e.prototype.remove=function(a){this.Jb.remove(a)};e.prototype.dump=function(a){Ha(a,this.Jb.ff())};da=e;var v=[];f.prototype.Me=function(){if(!this.Jb.length)return!0;if(this.Jb.length>this.te.count())return!1;this.so();return!0};f.prototype.Ro=function(a){this.te.contains(a)?(this.te.remove(a),this.te.Me()&&(this.Fi=!1)):this.Jb.length?(this.Jb[this.Jb.length-1].ke()>a.ke()&&(this.Kh=!1),this.Jb.push(a)):
(this.Jb.push(a),this.Kh=!0)};f.prototype.remove=function(a){this.te.add(a);this.Fi=!0;30<=this.te.count()&&this.so()};f.prototype.so=function(){this.Fi&&(this.te.count()===this.Jb.length?this.reset():(db(this.Jb,this.te),this.te.clear(),this.Fi=!1))};f.prototype.Hy=function(){this.Kh||(this.Jb.sort(g),this.Kh=!0)};f.prototype.reset=function(){G(this.Jb);this.Kh=!0;this.te.clear();this.Fi=!1};f.prototype.dump=function(a){this.so();this.Hy();this.Jb.length&&a.push(this.Jb)};fa=f;var F="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");
lb=function(a){return 0>=a||11<=a?"source-over":F[a-1]};mb=function(a,e,b){if(b)switch(a.ec=b.ONE,a.ac=b.ONE_MINUS_SRC_ALPHA,e){case 1:a.ec=b.ONE;a.ac=b.ONE;break;case 3:a.ec=b.ONE;a.ac=b.ZERO;break;case 4:a.ec=b.ONE_MINUS_DST_ALPHA;a.ac=b.ONE;break;case 5:a.ec=b.DST_ALPHA;a.ac=b.ZERO;break;case 6:a.ec=b.ZERO;a.ac=b.SRC_ALPHA;break;case 7:a.ec=b.ONE_MINUS_DST_ALPHA;a.ac=b.ZERO;break;case 8:a.ec=b.ZERO;a.ac=b.ONE_MINUS_SRC_ALPHA;break;case 9:a.ec=b.DST_ALPHA;a.ac=b.ONE_MINUS_SRC_ALPHA;break;case 10:a.ec=
b.ONE_MINUS_DST_ALPHA,a.ac=b.SRC_ALPHA}};nb=function(a){return Math.round(1E6*a)/1E6};ob=function(a,e){return"string"!==typeof a||"string"!==typeof e||a.length!==e.length?!1:a===e?!0:a.toLowerCase()===e.toLowerCase()};pb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||ob(a.tagName,"canvas")?!0:!1}})();var lc="undefined"!==typeof Float32Array?Float32Array:Array;function mc(d){var r=new lc(3);d&&(r[0]=d[0],r[1]=d[1],r[2]=d[2]);return r}
function nc(d){var r=new lc(16);d&&(r[0]=d[0],r[1]=d[1],r[2]=d[2],r[3]=d[3],r[4]=d[4],r[5]=d[5],r[6]=d[6],r[7]=d[7],r[8]=d[8],r[9]=d[9],r[10]=d[10],r[11]=d[11],r[12]=d[12],r[13]=d[13],r[14]=d[14],r[15]=d[15]);return r}function oc(d,r){r[0]=d[0];r[1]=d[1];r[2]=d[2];r[3]=d[3];r[4]=d[4];r[5]=d[5];r[6]=d[6];r[7]=d[7];r[8]=d[8];r[9]=d[9];r[10]=d[10];r[11]=d[11];r[12]=d[12];r[13]=d[13];r[14]=d[14];r[15]=d[15]}
function pc(d,r){var q=r[0],p=r[1];r=r[2];d[0]*=q;d[1]*=q;d[2]*=q;d[3]*=q;d[4]*=p;d[5]*=p;d[6]*=p;d[7]*=p;d[8]*=r;d[9]*=r;d[10]*=r;d[11]*=r}
function qc(d,r,q,p){p||(p=nc());var m,k,l,a,b,c,e,h,f=d[0],g=d[1];d=d[2];k=q[0];l=q[1];m=q[2];q=r[1];c=r[2];f===r[0]&&g===q&&d===c?(d=p,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):(q=f-r[0],c=g-r[1],e=d-r[2],h=1/Math.sqrt(q*q+c*c+e*e),q*=h,c*=h,e*=h,r=l*e-m*c,m=m*q-k*e,k=k*c-l*q,(h=Math.sqrt(r*r+m*m+k*k))?(h=1/h,r*=h,m*=h,k*=h):k=m=r=0,l=c*k-e*m,a=e*r-q*k,b=q*m-c*r,(h=Math.sqrt(l*l+a*a+b*b))?(h=1/h,l*=h,a*=h,b*=h):b=a=l=0,
p[0]=r,p[1]=l,p[2]=q,p[3]=0,p[4]=m,p[5]=a,p[6]=c,p[7]=0,p[8]=k,p[9]=b,p[10]=e,p[11]=0,p[12]=-(r*f+m*g+k*d),p[13]=-(l*f+a*g+b*d),p[14]=-(q*f+c*g+e*d),p[15]=1)}
(function(){function d(a,b,c){this.Ne=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ja=!!c;this.Ll=this.kj=!1;this.bo=0;this.Bn=1;this.Sq=1E3;this.QB=(this.Sq-this.Bn)/32768;this.Tn=mc([0,0,100]);this.lt=mc([0,0,0]);this.$u=mc([0,1,0]);this.vk=mc([1,1,1]);this.os=!0;this.km=nc();this.cd=nc();this.fp=nc();this.ao=nc();this.G=a;this.version=0===this.G.getParameter(this.G.VERSION).indexOf("WebGL 2")?2:1;this.Ls()}function r(a,b,c){this.G=a;this.ek=
b;this.name=c;this.ud=a.getAttribLocation(b,"aPos");this.Jf=a.getAttribLocation(b,"aTex");this.jt=a.getUniformLocation(b,"matP");this.em=a.getUniformLocation(b,"matMV");this.Uh=a.getUniformLocation(b,"opacity");this.tp=a.getUniformLocation(b,"colorFill");this.kt=a.getUniformLocation(b,"samplerFront");this.Ej=a.getUniformLocation(b,"samplerBack");this.Ig=a.getUniformLocation(b,"destStart");this.Hg=a.getUniformLocation(b,"destEnd");this.Gj=a.getUniformLocation(b,"seconds");this.vp=a.getUniformLocation(b,
"pixelWidth");this.up=a.getUniformLocation(b,"pixelHeight");this.Dj=a.getUniformLocation(b,"layerScale");this.Cj=a.getUniformLocation(b,"layerAngle");this.Hj=a.getUniformLocation(b,"viewOrigin");this.Fj=a.getUniformLocation(b,"scrollPos");this.Yz=!!(this.vp||this.up||this.Gj||this.Ej||this.Ig||this.Hg||this.Dj||this.Cj||this.Hj||this.Fj);this.xt=this.yt=-999;this.jm=1;this.pt=this.ot=0;this.tt=this.nt=this.mt=1;this.Bt=this.At=this.zt=this.Dt=this.Ct=this.qt=0;this.ep=[];this.ut=nc();this.Uh&&a.uniform1f(this.Uh,
1);this.tp&&a.uniform4f(this.tp,1,1,1,1);this.kt&&a.uniform1i(this.kt,0);this.Ej&&a.uniform1i(this.Ej,1);this.Ig&&a.uniform2f(this.Ig,0,0);this.Hg&&a.uniform2f(this.Hg,1,1);this.Dj&&a.uniform1f(this.Dj,1);this.Cj&&a.uniform1f(this.Cj,0);this.Hj&&a.uniform2f(this.Hj,0,0);this.Fj&&a.uniform2f(this.Fj,0,0);this.Gj&&a.uniform1f(this.Gj,0);this.vg=!1}function q(a,b){return a[0]===b[0]&&a[1]===b[1]&&a[2]===b[2]&&a[3]===b[3]&&a[4]===b[4]&&a[5]===b[5]&&a[6]===b[6]&&a[7]===b[7]&&a[8]===b[8]&&a[9]===b[9]&&
a[10]===b[10]&&a[11]===b[11]&&a[12]===b[12]&&a[13]===b[13]&&a[14]===b[14]&&a[15]===b[15]}function p(a,b){this.type=a;this.H=b;this.G=b.G;this.sd=this.fc=this.Yt=0;this.ca=this.Ad=null;this.Fu=[]}var m=nc();d.prototype.Ls=function(){var a=this.G,b;this.dt=1;this.Cg=this.Ff=null;this.Yk=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.Ja?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.et=a.ONE;this.ct=a.ONE_MINUS_SRC_ALPHA;this.xn=new Float32Array(8E3*(this.Ja?3:2));this.kn=new Float32Array(16E3);this.Tp=new Float32Array(32E3);this.Sp=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Sp);a.bufferData(a.ARRAY_BUFFER,this.Tp.byteLength,a.DYNAMIC_DRAW);this.tk=Array(4);this.mk=Array(4);for(b=0;4>b;b++)this.tk[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.tk[b]),a.bufferData(a.ARRAY_BUFFER,this.xn.byteLength,a.DYNAMIC_DRAW),this.mk[b]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.mk[b]),a.bufferData(a.ARRAY_BUFFER,this.kn.byteLength,a.DYNAMIC_DRAW);this.Ce=0;this.aA=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.aA);for(var c=new Uint16Array(12E3),e=b=0;12E3>b;)c[b++]=e,c[b++]=e+1,c[b++]=e+2,c[b++]=e,c[b++]=e+2,c[b++]=e+3,e+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,c,a.STATIC_DRAW);this.di=this.ni=this.gf=0;this.Ya=[];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}";c=this.Mi({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.Ya.push(c);c=this.Mi({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.Ya.push(c);c=this.Mi({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.Ya.push(c);c=this.Mi({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
b,"<fill>");this.Ya.push(c);for(var h in rc)rc.hasOwnProperty(h)&&this.Ya.push(this.Mi(rc[h],b,h));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Be=[];this.fe=0;this.cc=this.Qb=!1;this.ds=this.vj=-1;this.mh=null;this.qo=a.createFramebuffer();this.dl=this.Mm=null;this.Mr=!1;this.Ja&&(this.dl=a.createRenderbuffer());this.Xf=mc([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.xA=a[0];this.zp=a[1];2048<this.zp&&(this.zp=2048);this.Ec(0)};r.prototype.Lq=function(a){q(this.ut,
a)||(oc(a,this.ut),this.G.uniformMatrix4fv(this.em,!1,a))};d.prototype.Mi=function(a,b,c){var e=this.G,h=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(h,a.src);e.compileShader(h);if(!e.getShaderParameter(h,e.COMPILE_STATUS))throw a=e.getShaderInfoLog(h),e.deleteShader(h),Error("error compiling fragment shader: "+a);var f=e.createShader(e.VERTEX_SHADER);e.shaderSource(f,b);e.compileShader(f);if(!e.getShaderParameter(f,e.COMPILE_STATUS))throw a=e.getShaderInfoLog(f),e.deleteShader(h),e.deleteShader(f),
Error("error compiling vertex shader: "+a);b=e.createProgram();e.attachShader(b,h);e.attachShader(b,f);e.linkProgram(b);if(!e.getProgramParameter(b,e.LINK_STATUS))throw a=e.getProgramInfoLog(b),e.deleteShader(h),e.deleteShader(f),e.deleteProgram(b),Error("error linking shader program: "+a);e.useProgram(b);e.deleteShader(h);e.deleteShader(f);h=new r(e,b,c);h.jl=a.jl||0;h.kl=a.kl||0;h.$n=!!a.$n;h.vd=!!a.vd;h.Qn=!!a.Qn;h.aa=a.aa||[];a=0;for(f=h.aa.length;a<f;a++)h.aa[a][1]=e.getUniformLocation(b,h.aa[a][0]),
h.ep.push(0),e.uniform1f(h.aa[a][1],0);return h};d.prototype.Do=function(a){var b,c;b=0;for(c=this.Ya.length;b<c;b++)if(this.Ya[b].name===a)return b;return-1};d.prototype.lu=function(a,b,c){var e=this.cd,h=this.km,f=[0,0,0,0,0,0,0,0];f[0]=e[0]*a+e[4]*b+e[12];f[1]=e[1]*a+e[5]*b+e[13];f[2]=e[2]*a+e[6]*b+e[14];f[3]=e[3]*a+e[7]*b+e[15];f[4]=h[0]*f[0]+h[4]*f[1]+h[8]*f[2]+h[12]*f[3];f[5]=h[1]*f[0]+h[5]*f[1]+h[9]*f[2]+h[13]*f[3];f[6]=h[2]*f[0]+h[6]*f[1]+h[10]*f[2]+h[14]*f[3];f[7]=-f[2];0!==f[7]&&(f[7]=1/
f[7],f[4]*=f[7],f[5]*=f[7],f[6]*=f[7],c[0]=(.5*f[4]+.5)*this.width,c[1]=(.5*f[5]+.5)*this.height)};d.prototype.Tg=function(a,b,c){if(this.width!==a||this.height!==b||c){this.Ge();c=this.G;this.width=a;this.height=b;c.viewport(0,0,a,b);qc(this.Tn,this.lt,this.$u,this.cd);if(this.Ja){var e=-a/2;a=a/2;var h=b/2;b=-b/2;var f=this.Bn,g=this.Sq,d=this.km;d||(d=nc());var l=a-e,u=b-h,n=g-f;d[0]=2/l;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/n;d[11]=0;d[12]=-(e+a)/l;d[13]=-(b+
h)/u;d[14]=-(g+f)/n;d[15]=1;this.vk[0]=1;this.vk[1]=1}else b=a/b,e=this.Bn,a=this.Sq,d=this.km,g=e*Math.tan(45*Math.PI/360),b*=g,h=-b,f=-g,d||(d=nc()),l=b-h,u=g-f,n=a-e,d[0]=2*e/l,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=2*e/u,d[6]=0,d[7]=0,d[8]=(b+h)/l,d[9]=(g+f)/u,d[10]=-(a+e)/n,d[11]=-1,d[12]=0,d[13]=0,d[14]=-(a*e*2)/n,d[15]=0,e=[0,0],a=[0,0],this.lu(0,0,e),this.lu(1,1,a),this.vk[0]=1/(a[0]-e[0]),this.vk[1]=-1/(a[1]-e[1]);e=0;for(a=this.Ya.length;e<a;e++)h=this.Ya[e],h.vg=!1,h.jt&&(c.useProgram(h.ek),
c.uniformMatrix4fv(h.jt,!1,this.km));c.useProgram(this.Ya[this.vj].ek);c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE0);this.Cg=this.Ff=null;this.dl&&(c.bindFramebuffer(c.FRAMEBUFFER,this.qo),c.bindRenderbuffer(c.RENDERBUFFER,this.dl),c.renderbufferStorage(c.RENDERBUFFER,c.DEPTH_COMPONENT16,this.width,this.height),this.Mr||(c.framebufferRenderbuffer(c.FRAMEBUFFER,c.DEPTH_ATTACHMENT,c.RENDERBUFFER,this.dl),this.Mr=!0),c.bindRenderbuffer(c.RENDERBUFFER,
null),c.bindFramebuffer(c.FRAMEBUFFER,null),this.Mm=null)}};d.prototype.wd=function(){qc(this.Tn,this.lt,this.$u,this.cd);pc(this.cd,this.vk)};d.prototype.translate=function(a,b){if(0!==a||0!==b){this.Xf[0]=a;this.Xf[1]=b;this.Xf[2]=0;var c=this.cd,e=this.Xf,h=e[0],f=e[1],e=e[2];c[12]=c[0]*h+c[4]*f+c[8]*e+c[12];c[13]=c[1]*h+c[5]*f+c[9]*e+c[13];c[14]=c[2]*h+c[6]*f+c[10]*e+c[14];c[15]=c[3]*h+c[7]*f+c[11]*e+c[15]}};d.prototype.scale=function(a,b){if(1!==a||1!==b)this.Xf[0]=a,this.Xf[1]=b,this.Xf[2]=
1,pc(this.cd,this.Xf)};d.prototype.Pm=function(a){if(0!==a){var b=this.cd,c,e=Math.sin(a);a=Math.cos(a);var h=b[0],f=b[1],g=b[2],d=b[3],l=b[4],u=b[5],n=b[6],t=b[7];c?b!==c&&(c[8]=b[8],c[9]=b[9],c[10]=b[10],c[11]=b[11],c[12]=b[12],c[13]=b[13],c[14]=b[14],c[15]=b[15]):c=b;c[0]=h*a+l*e;c[1]=f*a+u*e;c[2]=g*a+n*e;c[3]=d*a+t*e;c[4]=h*-e+l*a;c[5]=f*-e+u*a;c[6]=g*-e+n*a;c[7]=d*-e+t*a}};d.prototype.jd=function(){if(!q(this.fp,this.cd)){var a=this.Bc();a.type=5;a.ca?oc(this.cd,a.ca):a.ca=nc(this.cd);oc(this.cd,
this.fp);this.cc=this.Qb=!1}};d.prototype.Um=function(a){this.Ja&&(32760<a&&(a=32760),this.bo=this.Tn[2]-this.Bn-a*this.QB)};p.prototype.ny=function(){var a=this.G,b=this.H;0!==this.fc?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,b.qo),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),b.Ll=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),b.Ll=
!1)};p.prototype.uy=function(){this.G.bindTexture(this.G.TEXTURE_2D,this.Ad)};p.prototype.vy=function(){var a=this.G;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Ad);a.activeTexture(a.TEXTURE0)};p.prototype.oy=function(){var a=this.Yt,b=this.H;b.Yk=a;b=b.mh;b.Uh&&b.jm!==a&&(b.jm=a,this.G.uniform1f(b.Uh,a))};p.prototype.hy=function(){this.G.drawElements(this.G.TRIANGLES,this.sd,this.G.UNSIGNED_SHORT,this.fc)};p.prototype.jy=function(){this.G.blendFunc(this.fc,this.sd)};p.prototype.xy=
function(){var a,b,c,e=this.H.Ya,h=this.H.ds;a=0;for(b=e.length;a<b;a++)c=e[a],a===h&&c.em?(c.Lq(this.ca),c.vg=!0):c.vg=!1;oc(this.ca,this.H.ao)};p.prototype.iy=function(){var a=this.G,b=this.H;this.Ad?(b.Cg===this.Ad&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),b.Cg=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,b.qo),b.Ll||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Ad,0)):(b.Ja||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,
a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};p.prototype.ey=function(){var a=this.G,b=this.fc;0===b?(a.clearColor(this.ca[0],this.ca[1],this.ca[2],this.ca[3]),a.clear(a.COLOR_BUFFER_BIT)):1===b?(a.enable(a.SCISSOR_TEST),a.scissor(this.ca[0],this.ca[1],this.ca[2],this.ca[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};p.prototype.my=function(){var a=this.G;0!==this.fc?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};p.prototype.gy=
function(){var a=this.G,b=this.H;b.Ja&&a.disable(a.DEPTH_TEST);var c=b.Ya[1];a.useProgram(c.ek);!c.vg&&c.em&&(c.Lq(b.ao),c.vg=!0);a.enableVertexAttribArray(c.ud);a.bindBuffer(a.ARRAY_BUFFER,b.Sp);a.vertexAttribPointer(c.ud,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.fc/4,this.sd);c=b.mh;a.useProgram(c.ek);0<=c.ud&&(a.enableVertexAttribArray(c.ud),a.bindBuffer(a.ARRAY_BUFFER,b.tk[b.Ce]),a.vertexAttribPointer(c.ud,b.Ja?3:2,a.FLOAT,!1,0,0));0<=c.Jf&&(a.enableVertexAttribArray(c.Jf),a.bindBuffer(a.ARRAY_BUFFER,
b.mk[b.Ce]),a.vertexAttribPointer(c.Jf,2,a.FLOAT,!1,0,0));b.Ja&&a.enable(a.DEPTH_TEST)};p.prototype.qy=function(){var a=this.G,b=this.H,c=b.Ya[this.fc];b.ds=this.fc;b.mh=c;a.useProgram(c.ek);!c.vg&&c.em&&(c.Lq(b.ao),c.vg=!0);c.Uh&&c.jm!==b.Yk&&(c.jm=b.Yk,a.uniform1f(c.Uh,b.Yk));0<=c.ud&&(a.enableVertexAttribArray(c.ud),a.bindBuffer(a.ARRAY_BUFFER,b.tk[b.Ce]),a.vertexAttribPointer(c.ud,b.Ja?3:2,a.FLOAT,!1,0,0));0<=c.Jf&&(a.enableVertexAttribArray(c.Jf),a.bindBuffer(a.ARRAY_BUFFER,b.mk[b.Ce]),a.vertexAttribPointer(c.Jf,
2,a.FLOAT,!1,0,0))};p.prototype.ky=function(){var a=this.ca;this.G.uniform4f(this.H.mh.tp,a[0],a[1],a[2],a[3])};p.prototype.ty=function(){var a,b,c=this.H.mh,e=this.G;a=this.ca;c.Ej&&this.H.Cg!==this.Ad&&(e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,this.Ad),this.H.Cg=this.Ad,e.activeTexture(e.TEXTURE0));var h=a[0];c.vp&&h!==c.yt&&(c.yt=h,e.uniform1f(c.vp,h));h=a[1];c.up&&h!==c.xt&&(c.xt=h,e.uniform1f(c.up,h));h=a[2];b=a[3];!c.Ig||h===c.ot&&b===c.pt||(c.ot=h,c.pt=b,e.uniform2f(c.Ig,h,b));
h=a[4];b=a[5];!c.Hg||h===c.mt&&b===c.nt||(c.mt=h,c.nt=b,e.uniform2f(c.Hg,h,b));h=a[6];c.Dj&&h!==c.tt&&(c.tt=h,e.uniform1f(c.Dj,h));h=a[7];c.Cj&&h!==c.qt&&(c.qt=h,e.uniform1f(c.Cj,h));h=a[8];b=a[9];!c.Hj||h===c.Ct&&b===c.Dt||(c.Ct=h,c.Dt=b,e.uniform2f(c.Hj,h,b));h=a[10];b=a[11];!c.Fj||h===c.zt&&b===c.At||(c.zt=h,c.At=b,e.uniform2f(c.Fj,h,b));h=a[12];c.Gj&&h!==c.Bt&&(c.Bt=h,e.uniform1f(c.Gj,h));if(c.aa.length)for(a=0,b=c.aa.length;a<b;a++)h=this.Fu[a],h!==c.ep[a]&&(c.ep[a]=h,e.uniform1f(c.aa[a][1],
h))};d.prototype.Bc=function(){this.fe===this.Be.length&&this.Be.push(new p(0,this));return this.Be[this.fe++]};d.prototype.Ge=function(){if(0!==this.fe&&!this.G.isContextLost()){var a=this.G;0<this.di&&(a.bindBuffer(a.ARRAY_BUFFER,this.Sp),a.bufferSubData(a.ARRAY_BUFFER,0,this.Tp.subarray(0,this.di)),b&&0<=b.ud&&"<point>"===b.name&&a.vertexAttribPointer(b.ud,4,a.FLOAT,!1,0,0));if(0<this.gf){var b=this.mh;a.bindBuffer(a.ARRAY_BUFFER,this.tk[this.Ce]);a.bufferSubData(a.ARRAY_BUFFER,0,this.xn.subarray(0,
this.gf));b&&0<=b.ud&&"<point>"!==b.name&&a.vertexAttribPointer(b.ud,this.Ja?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.mk[this.Ce]);a.bufferSubData(a.ARRAY_BUFFER,0,this.kn.subarray(0,this.ni));b&&0<=b.Jf&&"<point>"!==b.name&&a.vertexAttribPointer(b.Jf,2,a.FLOAT,!1,0,0)}for(var c,a=0,b=this.fe;a<b;a++)switch(c=this.Be[a],c.type){case 1:c.hy();break;case 2:c.uy();break;case 3:c.oy();break;case 4:c.jy();break;case 5:c.xy();break;case 6:c.iy();break;case 7:c.ey();break;case 8:c.gy();break;
case 9:c.qy();break;case 10:c.ty();break;case 11:c.vy();break;case 12:c.ky();break;case 13:c.my();break;case 14:c.ny()}this.di=this.ni=this.gf=this.fe=0;this.Ll=this.cc=this.Qb=!1;this.Ce++;4<=this.Ce&&(this.Ce=0)}};d.prototype.Sg=function(a){if(a!==this.dt&&!this.kj){var b=this.Bc();b.type=3;this.dt=b.Yt=a;this.cc=this.Qb=!1}};d.prototype.Tc=function(a){if(a!==this.Ff){var b=this.Bc();b.type=2;this.Ff=b.Ad=a;this.cc=this.Qb=!1}};d.prototype.Tf=function(a,b){if((a!==this.et||b!==this.ct)&&!this.kj){var c=
this.Bc();c.type=4;c.fc=a;c.sd=b;this.et=a;this.ct=b;this.cc=this.Qb=!1}};d.prototype.tu=function(){this.Tf(this.G.ONE,this.G.ONE_MINUS_SRC_ALPHA)};d.prototype.ei=function(a,b,c,e,h,f,g,d){15992<=this.gf&&this.Ge();var l=this.gf,u=this.ni,n=this.xn,t=this.kn,m=this.bo;if(this.Qb)this.Be[this.fe-1].sd+=6;else{var k=this.Bc();k.type=1;k.fc=this.Ja?l:l/2*3;k.sd=6;this.Qb=!0;this.cc=!1}this.Ja?(n[l++]=a,n[l++]=b,n[l++]=m,n[l++]=c,n[l++]=e,n[l++]=m,n[l++]=h,n[l++]=f,n[l++]=m,n[l++]=g,n[l++]=d,n[l++]=m):
(n[l++]=a,n[l++]=b,n[l++]=c,n[l++]=e,n[l++]=h,n[l++]=f,n[l++]=g,n[l++]=d);t[u++]=0;t[u++]=0;t[u++]=1;t[u++]=0;t[u++]=1;t[u++]=1;t[u++]=0;t[u++]=1;this.gf=l;this.ni=u};d.prototype.Qf=function(a,b,c,e,h,f,g,d,l){15992<=this.gf&&this.Ge();var u=this.gf,n=this.ni,t=this.xn,m=this.kn,k=this.bo;if(this.Qb)this.Be[this.fe-1].sd+=6;else{var x=this.Bc();x.type=1;x.fc=this.Ja?u:u/2*3;x.sd=6;this.Qb=!0;this.cc=!1}var x=l.left,p=l.top,r=l.right;l=l.bottom;this.Ja?(t[u++]=a,t[u++]=b,t[u++]=k,t[u++]=c,t[u++]=e,
t[u++]=k,t[u++]=h,t[u++]=f,t[u++]=k,t[u++]=g,t[u++]=d,t[u++]=k):(t[u++]=a,t[u++]=b,t[u++]=c,t[u++]=e,t[u++]=h,t[u++]=f,t[u++]=g,t[u++]=d);m[n++]=x;m[n++]=p;m[n++]=r;m[n++]=p;m[n++]=r;m[n++]=l;m[n++]=x;m[n++]=l;this.gf=u;this.ni=n};d.prototype.PA=function(a,b,c,e){7996<=this.di&&this.Ge();var h=this.di,f=this.Tp;if(this.cc)this.Be[this.fe-1].sd++;else{var g=this.Bc();g.type=8;g.fc=h;g.sd=1;this.cc=!0;this.Qb=!1}f[h++]=a;f[h++]=b;f[h++]=c;f[h++]=e;this.di=h};d.prototype.Ec=function(a){if(this.vj!==
a){if(!this.Ya[a]){if(0===this.vj)return;a=0}var b=this.Bc();b.type=9;this.vj=b.fc=a;this.cc=this.Qb=!1}};d.prototype.Tj=function(a){a=this.Ya[a];return!(!a.Ig&&!a.Hg)};d.prototype.Wp=function(a){a=this.Ya[a];return!!(a.Ig||a.Hg||a.$n)};d.prototype.Vp=function(a){return this.Ya[a].vd};d.prototype.YA=function(a){a=this.Ya[a];return 0!==a.jl||0!==a.kl};d.prototype.Gz=function(a){return this.Ya[a].jl};d.prototype.Hz=function(a){return this.Ya[a].kl};d.prototype.Iz=function(a,b){return this.Ya[a].aa[b][2]};
d.prototype.Im=function(a){return this.Ya[a].Qn};d.prototype.ki=function(a,b,c,e,h,f,g,d,l,u,n,t,m,k,x){var p=this.Ya[this.vj],r,q;if(p.Yz||x.length){r=this.Bc();r.type=10;r.ca?oc(this.cd,r.ca):r.ca=nc();q=r.ca;q[0]=b;q[1]=c;q[2]=e;q[3]=h;q[4]=f;q[5]=g;q[6]=d;q[7]=l;q[8]=u;q[9]=n;q[10]=t;q[11]=m;q[12]=k;p.Ej?r.Ad=a:r.Ad=null;if(x.length)for(c=r.Fu,c.length=x.length,a=0,b=x.length;a<b;a++)c[a]=x[a];this.cc=this.Qb=!1}};d.prototype.clear=function(a,b,c,e){var h=this.Bc();h.type=7;h.fc=0;h.ca||(h.ca=
nc());h.ca[0]=a;h.ca[1]=b;h.ca[2]=c;h.ca[3]=e;this.cc=this.Qb=!1};d.prototype.clearRect=function(a,b,c,e){if(!(0>c||0>e)){var h=this.Bc();h.type=7;h.fc=1;h.ca||(h.ca=nc());h.ca[0]=a;h.ca[1]=b;h.ca[2]=c;h.ca[3]=e;this.cc=this.Qb=!1}};d.prototype.xu=function(a){if(this.Ja&&(a=!!a,this.kj!==a)){var b=this.Bc();b.type=14;b.fc=a?1:0;this.cc=this.Qb=!1;this.kj=a;this.Mm=null;this.kj?this.Ec(2):this.Ec(0)}};d.prototype.vu=function(a){if(this.Ja){var b=this.Bc();b.type=13;b.fc=a?1:0;this.cc=this.Qb=!1}};
d.prototype.zs=function(){oc(this.fp,m);this.wd();this.jd();var a=this.width/2,b=this.height/2;this.ei(-a,b,a,b,a,-b,-a,-b);oc(m,this.cd);this.jd()};d.prototype.uu=function(a,b,c){this.Ec(3);var e=this.Bc();e.type=12;e.ca||(e.ca=nc());e.ca[0]=a;e.ca[1]=b;e.ca[2]=c;e.ca[3]=1;this.cc=this.Qb=!1};d.prototype.vB=function(){this.Ec(0)};d.prototype.hB=function(){this.Ec(2)};d.prototype.XA=function(){this.Ge();this.G.flush()};var k=[],l={};d.prototype.Ux=function(){G(k);l={}};d.prototype.Zl=function(a,b,
c,e){b=!!b;c=!!c;var h=a.src+","+b+","+c+(b?",undefined":""),f=null;if("undefined"!==typeof a.src&&l.hasOwnProperty(h))return f=l[h],f.Pk++,f;this.Ge();var g=this.G,d=na(a.width)&&na(a.height),f=g.createTexture();g.bindTexture(g.TEXTURE_2D,f);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var m=g.RGBA,u=g.RGBA,n=g.UNSIGNED_BYTE;if(e&&!this.Ne)switch(e){case 1:u=m=g.RGB;break;case 2:n=g.UNSIGNED_SHORT_4_4_4_4;break;case 3:n=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:u=m=g.RGB,n=g.UNSIGNED_SHORT_5_6_5}if(1===
this.version&&!d&&b){e=document.createElement("canvas");e.width=oa(a.width);e.height=oa(a.height);var t=e.getContext("2d");"undefined"!==typeof t.imageSmoothingEnabled?t.imageSmoothingEnabled=c:(t.webkitImageSmoothingEnabled=c,t.mozImageSmoothingEnabled=c,t.msImageSmoothingEnabled=c);t.drawImage(a,0,0,a.width,a.height,0,0,e.width,e.height);g.texImage2D(g.TEXTURE_2D,0,m,u,n,e)}else g.texImage2D(g.TEXTURE_2D,0,m,u,n,a);b?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,
g.TEXTURE_WRAP_T,g.REPEAT)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE));c?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),(d||2<=this.version)&&this.os?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_LINEAR),g.generateMipmap(g.TEXTURE_2D)):g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,
g.TEXTURE_MIN_FILTER,g.NEAREST));g.bindTexture(g.TEXTURE_2D,null);this.Ff=null;f.fg=a.width;f.eg=a.height;f.Pk=1;f.Qr=h;k.push(f);return l[h]=f};d.prototype.Xc=function(a,b,c,e){this.Ge();var h=this.G;this.Ne&&(e=!1);var f=h.createTexture();h.bindTexture(h.TEXTURE_2D,f);h.texImage2D(h.TEXTURE_2D,0,h.RGBA,a,b,0,h.RGBA,e?h.UNSIGNED_SHORT_4_4_4_4:h.UNSIGNED_BYTE,null);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,
h.TEXTURE_MAG_FILTER,c?h.LINEAR:h.NEAREST);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,c?h.LINEAR:h.NEAREST);h.bindTexture(h.TEXTURE_2D,null);this.Ff=null;f.fg=a;f.eg=b;k.push(f);return f};d.prototype.MB=function(a,b,c){this.Ge();var e=this.G;this.Ne&&(c=!1);e.bindTexture(e.TEXTURE_2D,b);e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,c?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,a)}catch(h){console&&console.error&&console.error("Error updating WebGL texture: ",
h)}e.bindTexture(e.TEXTURE_2D,null);this.Ff=null};d.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Pk&&1<a.Pk?a.Pk--:(this.Ge(),a===this.Ff&&(this.G.bindTexture(this.G.TEXTURE_2D,null),this.Ff=null),a===this.Cg&&(this.G.activeTexture(this.G.TEXTURE1),this.G.bindTexture(this.G.TEXTURE_2D,null),this.G.activeTexture(this.G.TEXTURE0),this.Cg=null),Ja(k,a),"undefined"!==typeof a.Qr&&delete l[a.Qr],this.G.deleteTexture(a)))};d.prototype.xd=function(a){if(a!==this.Mm){var b=this.Bc();b.type=
6;this.Mm=b.Ad=a;this.cc=this.Qb=!1}};qb=d})();
(function(){function d(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var e=this;this.ad=(this.Ml=/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.jc=!!a.dc;this.Ss="undefined"!==typeof window.AppMobi||
this.jc;this.td=!!window.c2cocoonjs;this.Ld=!!window.c2ejecta;this.td&&(CocoonJS.App.onSuspended.addEventListener(function(){e.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){e.setSuspended(!1)}));this.Ld&&(document.addEventListener("pagehide",function(){e.setSuspended(!0)}),document.addEventListener("pageshow",function(){e.setSuspended(!1)}),document.addEventListener("resize",function(){e.setSize(window.innerWidth,window.innerHeight)}));this.Ka=this.jc||this.td||this.Ld;this.mj=
/edge\//i.test(navigator.userAgent);this.Ne=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.mj;this.Vs=/tizen/i.test(navigator.userAgent);this.ij=/android/i.test(navigator.userAgent)&&!this.Vs&&!this.Ne&&!this.mj;this.Ys=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Ne&&!this.mj;this.pA=/ipad/i.test(navigator.userAgent);this.Mh=this.Ys||this.pA||this.Ld;this.Uo=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.Ne&&!this.mj;this.Rs=/amazonwebappplatform/i.test(navigator.userAgent);this.fA=/firefox/i.test(navigator.userAgent);this.jA=/safari/i.test(navigator.userAgent)&&!this.Uo&&!this.Ne&&!this.mj;this.lA=/windows/i.test(navigator.userAgent);this.Xo="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Ws=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.nA=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.qj=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.bp=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.$o=!!window.cr_windows10;this.kA=this.Ws||this.nA||this.bp||this.$o;this.dA=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Kl=this.ij&&!this.Uo&&!this.Ml&&!this.fA&&!this.Rs&&!this.Ka;this.devicePixelRatio=
1;this.Oe=this.ad||this.Ml||this.Ss||this.td||this.ij||this.Mh||this.qj||this.bp||this.dA||this.Vs||this.Ld;this.Oe||(this.Oe=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Ol=!!(this.Mh&&this.ad&&window.webkit);"undefined"===typeof cr_is_preview||this.Xo||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Xo=!0);this.canvas=a;this.Ur=document.getElementById("c2canvasdiv");
this.H=this.G=null;this.Fo="(unavailable)";this.Ja=!1;this.mg=0;this.Ta=null;this.ql=!1;this.St=this.Tt=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.jc&&(window.c2runtime=this);this.Xo&&(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.Kl&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.P=this.width;this.O=this.height;this.Wk=this.width;this.Oi=this.height;this.Sh=window.innerWidth;this.Rh=window.innerHeight;this.ba=!0;this.oj=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.F=[];this.Ra=[];this.op={};this.Nd=[];this.po={};
this.He=[];this.ti=[];this.sn=[];this.Nn=[];this.Hx=[];this.bt=this.Lu=null;this.jg={};this.Wo=this.Af=!1;this.bd=0;this.Vo=this.Zo=!1;this.Id=[];this.lj=!1;this.Xl=this.jq="";this.Ab=null;this.Pe="";this.jk=this.Iu=!1;this.pl=[];this.lg=this.kg=0;this.It=30;this.Zn=this.Ij=0;this.ah=1;this.yb=new gb;this.hf=new gb;this.pm=this.wl=this.qg=this.hd=this.Eg=this.uo=this.Sl=0;this.hg=null;this.fl=[];this.oo=[];this.il=-1;this.wp=[[]];this.Fq=this.fm=0;this.Jm(null);this.yp=[];this.hm=-1;this.Nt=this.Lj=
0;this.np=!0;this.Ui=0;this.kk=[];this.Cq=this.$p=-1;this.Nh=!0;this.cm=0;this.Nl=!1;this.xB=0;this.hh=null;this.lb=this.Dl=!1;this.Rt=new ea;this.Ep=new ea;this.Fp=new ea;this.Qg=[];this.Fc=new ib([]);this.xq=new ib([]);this.qf=[];this.Dh={};this.uf={};this.of={};this.si={};this.Nr={};this.it=this.Wl=this.mb=this.zb=this.ht=this.Vl=this.pa=null;this.qi=this.cp=!1;this.vo=[null,null];this.yh=0;this.ro="";this.Se={};this.hk=this.Hf=null;this.Ku="";this.om=[];this.gB()}}function r(a,e){return 128>=
e?a[3]:256>=e?a[2]:512>=e?a[1]:a[0]}function q(){try{return!!window.indexedDB}catch(a){return!1}}function p(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function m(a,e,b,c){try{var h=indexedDB.open("_C2SaveStates");h.onupgradeneeded=p;h.onerror=c;h.onsuccess=function(h){h=h.target.result;h.onerror=c;h.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:e}).onsuccess=b}}catch(g){c(g)}}function k(a,e,b){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=
p;c.onerror=b;c.onsuccess=function(c){c=c.target.result;c.onerror=b;var h=c.transaction(["saves"]).objectStore("saves").get(a);h.onsuccess=function(){h.result?e(h.result.data):e(null)}}}catch(h){b(h)}}function l(){ga("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function a(a){var e,b={};for(e in a)!a.hasOwnProperty(e)||a[e]instanceof ea||a[e]&&"undefined"!==
typeof a[e].xC||"spriteCreatedDestroyCallback"!==e&&(b[e]=a[e]);return b}var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.gB=function(){var a=this;if(this.Ol)this.lz(function(e){a.Bj(JSON.parse(e))},function(){alert("Error fetching data.js")});else{var e;this.qj?e=new ActiveXObject("Microsoft.XMLHTTP"):e=new XMLHttpRequest;var b="data.js";if(this.Ws||this.qj||this.bp||
this.$o)b="data.json";e.open("GET",b,!0);var c=!1;if(!this.Ka&&"response"in e&&"responseType"in e)try{e.responseType="json",c="json"===e.responseType}catch(h){c=!1}if(!c&&"responseType"in e)try{e.responseType="text"}catch(g){}if("overrideMimeType"in e)try{e.overrideMimeType("application/json; charset=utf-8")}catch(n){}this.qj?e.onreadystatechange=function(){4===e.readyState&&a.Bj(JSON.parse(e.responseText))}:(e.onload=function(){if(c)a.Bj(e.response);else if(a.Ld){var b=e.responseText,b=b.substr(b.indexOf("{"));
a.Bj(JSON.parse(b))}else a.Bj(JSON.parse(e.responseText))},e.onerror=function(a){ha("Error requesting "+b+":");ha(a)});e.send()}};d.prototype.bA=function(){var a=this,e,b,c,h,g,n,f,d,t;this.Ag=(!this.Ka||this.Ld||this.ad)&&this.JB&&!this.Kl;0===this.ic&&this.Mh&&(this.Ag=!1);this.devicePixelRatio=this.Ag?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;"object"===typeof window.StatusBar&&window.StatusBar.hide();this.Yb();0<this.ic&&
this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(e){e.preventDefault();a.CA();ga("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.H.Ls();a.H.Tg(a.H.width,a.H.height,!0);a.zb=null;a.mb=null;a.vo[0]=null;a.vo[1]=null;a.DA();a.ba=!0;ga("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.Fy&&(this.td||this.Ld||!this.Ka)&&(e={alpha:!0,
depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.ij||(this.G=this.canvas.getContext("webgl2",e)),this.G||(this.G=this.canvas.getContext("webgl",e)||this.canvas.getContext("experimental-webgl",e)))}catch(l){}if(this.G){if(e=this.G.getExtension("WEBGL_debug_renderer_info"))this.Fo=this.G.getParameter(e.UNMASKED_RENDERER_WEBGL)+" ["+this.G.getParameter(e.UNMASKED_VENDOR_WEBGL)+"]";this.Ja&&(this.Fo+=" [front-to-back enabled]");this.Ka||(this.Ub=document.createElement("canvas"),
jQuery(this.Ub).appendTo(this.canvas.parentNode),this.Ub.oncontextmenu=function(){return!1},this.Ub.onselectstart=function(){return!1},this.Ub.width=Math.round(this.Wk*this.devicePixelRatio),this.Ub.height=Math.round(this.Oi*this.devicePixelRatio),jQuery(this.Ub).css({width:this.Wk+"px",height:this.Oi+"px"}),this.ju(),this.Pp=this.Ub.getContext("2d"));this.H=new qb(this.G,this.Oe,this.Ja);this.H.Tg(this.canvas.width,this.canvas.height);this.H.os=0!==this.yy;this.Ta=null;e=0;for(b=this.F.length;e<
b;e++)for(g=this.F[e],c=0,h=g.Y.length;c<h;c++)f=g.Y[c],f.qb=this.H.Do(f.id),f.vd=this.H.Vp(f.qb),this.qi=this.qi||this.H.Tj(f.qb);e=0;for(b=this.Nd.length;e<b;e++){d=this.Nd[e];c=0;for(h=d.Y.length;c<h;c++)f=d.Y[c],f.qb=this.H.Do(f.id),f.vd=this.H.Vp(f.qb);d.Yd();c=0;for(h=d.Z.length;c<h;c++){t=d.Z[c];g=0;for(n=t.Y.length;g<n;g++)f=t.Y[g],f.qb=this.H.Do(f.id),f.vd=this.H.Vp(f.qb),this.qi=this.qi||this.H.Tj(f.qb);t.Yd()}}}else{if(0<this.ic&&this.jc){this.canvas=null;document.oncontextmenu=function(){return!1};
document.onselectstart=function(){return!1};this.Ta=AppMobi.canvas.getContext("2d");try{this.Ta.samplingMode=this.Pa?"smooth":"sharp",this.Ta.globalScale=1,this.Ta.HTML5CompatibilityMode=!0,this.Ta.imageSmoothingEnabled=this.Pa}catch(m){}0!==this.width&&0!==this.height&&(this.Ta.width=this.width,this.Ta.height=this.height)}this.Ta||(this.td?(e={antialias:!!this.Pa,alpha:!0},this.Ta=this.canvas.getContext("2d",e)):(e={alpha:!0},this.Ta=this.canvas.getContext("2d",e)),this.Tm(this.Ta,this.Pa));this.Pp=
this.Ub=null}this.Tu=function(e){a.Ba(!1,e)};window==window.top||this.Ka||this.kA||this.qj||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.td&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ga("Reloading for continuous preview"),this.Xl="__c2_continuouspreview",this.jk=!0),this.NA&&!this.Oe&&(jQuery(window).focus(function(){a.setSuspended(!1)}),
jQuery(window).blur(function(){var e=window.parent;e&&e.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.Ue()});this.Ka||(e=function(a){if(pb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(e){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",e):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",
e):document.addEventListener("touchstart",e),document.addEventListener("mousedown",e));0===this.ic&&this.Ag&&1<this.devicePixelRatio&&this.setSize(this.Db,this.Cb,!0);this.Yu();this.Vz();this.go();this.J={}};d.prototype.setSize=function(a,e,b){var c=0,h=0,g=0,n=0,n=0;if(this.Sh!==a||this.Rh!==e||b){this.Sh=a;this.Rh=e;var f=this.ic;if((g=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Nl)&&!this.ad)||0!==this.ic||b)g&&(f=this.yh),b=this.devicePixelRatio,
4<=f?(5===f&&1!==b&&(a+=1,e+=1),g=this.Db/this.Cb,a/e>g?(g*=e,5===f?(n=g*b/this.Db,1<n?n=Math.floor(n):1>n&&(n=1/Math.ceil(1/n)),g=this.Db*n/b,n=this.Cb*n/b,c=(a-g)/2,h=(e-n)/2,a=g,e=n):(c=(a-g)/2,a=g)):(n=a/g,5===f?(n=n*b/this.Cb,1<n?n=Math.floor(n):1>n&&(n=1/Math.ceil(1/n)),g=this.Db*n/b,n=this.Cb*n/b,c=(a-g)/2,h=(e-n)/2,a=g):h=(e-n)/2,e=n)):g&&0===f&&(c=Math.floor((a-this.Db)/2),h=Math.floor((e-this.Cb)/2),a=this.Db,e=this.Cb),2>f&&(this.Hi=b),this.Wk=Math.round(a),this.Oi=Math.round(e),this.width=
Math.round(a*b),this.height=Math.round(e*b),this.ba=!0,this.lv?(this.P=this.width,this.O=this.height,this.Yc=!0):this.width<this.Db&&this.height<this.Cb||1===f?(this.P=this.width,this.O=this.height,this.Yc=!0):(this.P=this.Db,this.O=this.Cb,this.Yc=!1,2===f?(g=this.Db/this.Cb,f=this.Sh/this.Rh,f<g?this.P=this.O*f:f>g&&(this.O=this.P/f)):3===f&&(g=this.Db/this.Cb,f=this.Sh/this.Rh,f>g?this.P=this.O*f:f<g&&(this.O=this.P/f))),this.Ur&&!this.Ka&&(jQuery(this.Ur).css({width:Math.round(a)+"px",height:Math.round(e)+
"px","margin-left":Math.floor(c)+"px","margin-top":Math.floor(h)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(e)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*b),this.canvas.height=Math.round(e*b),this.Ld?(this.canvas.style.left=Math.floor(c)+"px",this.canvas.style.top=Math.floor(h)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(e)+"px"):this.Ag&&!this.Ka&&(this.canvas.style.width=Math.round(a)+
"px",this.canvas.style.height=Math.round(e)+"px")),this.Ub&&(this.Ub.width=Math.round(a*b),this.Ub.height=Math.round(e*b),this.Ub.style.width=this.Wk+"px",this.Ub.style.height=this.Oi+"px"),this.H&&this.H.Tg(Math.round(a*b),Math.round(e*b)),this.jc&&this.Ta&&(this.Ta.width=Math.round(a),this.Ta.height=Math.round(e)),this.Ta&&this.Tm(this.Ta,this.Pa),this.Yu(),this.Ys&&!this.ad&&window.scrollTo(0,0)}};d.prototype.Yu=function(){if(this.Kx&&0!==this.Op){var a="portrait";2===this.Op&&(a="landscape");
try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(e){console&&console.warn&&console.warn("Failed to lock orientation: ",e)}}};d.prototype.CA=function(){this.H.Ux();this.cp=!0;var a,e,b;a=0;for(e=this.F.length;a<e;a++)b=this.F[a],b.rm&&
b.rm()};d.prototype.DA=function(){this.cp=!1;var a,e,b;a=0;for(e=this.F.length;a<e;a++)b=this.F[a],b.Lp&&b.Lp()};d.prototype.ju=function(){if(!this.Ka){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Nl)&&!this.ad?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Ub).css(a)}};var c=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||
window.oCancelAnimationFrame;d.prototype.setSuspended=function(a){var e;if(a&&!this.oj)for(ga("[Construct 2] Suspending"),this.oj=!0,-1!==this.$p&&c&&c(this.$p),-1!==this.Cq&&clearTimeout(this.Cq),a=0,e=this.kk.length;a<e;a++)this.kk[a](!0);else if(!a&&this.oj){ga("[Construct 2] Resuming");this.oj=!1;this.Sl=cb();this.Eg=cb();a=this.Ij=this.wl=0;for(e=this.kk.length;a<e;a++)this.kk[a](!1);this.Ba(!1)}};d.prototype.Fx=function(a){this.kk.push(a)};d.prototype.kf=function(a){return this.om[a]};d.prototype.Bj=
function(a){a&&a.project||ha("Project model unavailable");a=a.project;this.name=a[0];this.ys=a[1];this.ic=a[12];this.Db=a[10];this.Cb=a[11];this.eu=this.Db/2;this.fu=this.Cb/2;this.Ka&&!this.Ld&&(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.ic=3);this.Oq=a[18];this.If=a[19];if(0===this.If){var e=new Image;e.crossOrigin="anonymous";this.yu(e,"loading-logo.png");this.Hf={gm:e}}else if(4===this.If){e=
new Image;e.src="";var b=new Image;b.src="";var c=new Image;c.src="";var h=new Image;h.src="";var g=new Image;g.src="";var n=new Image;n.src="";var f=new Image;f.src="";var d=new Image;d.src="";var t=new Image;t.src="";var l=new Image;l.src="";var m=new Image;m.src="";var u=new Image;u.src="";this.Hf={gm:[e,b,c,h],UA:[g,n,f,d],NB:[t,l,m,u]}}this.Lj=a[21];this.om=sc();this.we=new W(this);e=0;for(b=a[2].length;e<b;e++)f=a[2][e],c=this.kf(f[0]),rb(f,c.prototype),d=new c(this),d.$m=f[1],d.Cf=f[2],d.oA=
f[5],d.Kt=f[9],d.I&&d.I(),this.plugins.push(d);this.om=sc();e=0;for(b=a[3].length;e<b;e++){f=a[3][e];g=this.kf(f[1]);d=null;c=0;for(h=this.plugins.length;c<h;c++)if(this.plugins[c]instanceof g){d=this.plugins[c];break}t=new d.R(d);t.name=f[0];t.S=f[2];t.So=f[3].slice(0);t.LB=f[3].length;t.Lx=f[4];t.pz=f[5];t.ea=f[11];t.S?(t.Kg=[],t.Ie=this.Ui++,t.Na=null):(t.Kg=null,t.Ie=-1,t.Na=[]);t.nl=null;t.wh=null;t.qs=null;t.Rb=!1;t.Lc=null;f[6]?(t.zq=f[6][0],t.Aq=f[6][1],t.Bq=f[6][2]):(t.zq=null,t.Aq=0,t.Bq=
0);f[7]?t.Kc=f[7]:t.Kc=null;t.index=e;t.j=[];t.$k=[];t.cf=[new ub(t)];t.ge=0;t.pd=null;t.Zx=0;t.mi=!0;t.tn=vb;t.yz=wb;t.Ez=xb;t.W=yb;t.Vj=zb;t.Wj=Ab;t.Pf=Bb;t.yl=Cb;t.xo=Db;t.zo=Eb;t.Ed=Fb;t.Ao=Jb;t.Ki=new jb(this.Db,this.Cb);t.Hk=!0;t.Ik=!1;t.J={};t.toString=Kb;t.Ra=[];c=0;for(h=f[8].length;c<h;c++){l=f[8][c];m=this.kf(l[1]);u=null;g=0;for(n=this.Ra.length;g<n;g++)if(this.Ra[g]instanceof m){u=this.Ra[g];break}u||(u=new m(this),u.nm=[],u.mm=new ea,u.I&&u.I(),this.Ra.push(u),tc&&u instanceof tc&&(this.Lu=
u),kc.rA&&u instanceof kc.rA&&(this.bt=u));-1===u.nm.indexOf(t)&&u.nm.push(t);g=new u.R(u,t);g.name=l[0];g.ea=l[2];g.I();t.Ra.push(g)}t.global=f[9];t.Yo=f[10];t.Y=[];c=0;for(h=f[12].length;c<h;c++)t.Y.push({id:f[12][c][0],name:f[12][c][1],qb:-1,vd:!1,Gb:!0,index:c});t.RC=f[13];this.Oq&&!t.S&&!t.Yo&&d.Cf||t.I();t.name&&(this.types[t.name]=t);this.F.push(t);d.$m&&(c=new d.N(t),c.uid=this.Lj++,c.nu=this.Nt++,c.yg=0,c.cj=Lb,c.toString=Mb,c.C=f[14],c.I(),t.j.push(c),this.Se[c.uid.toString()]=c)}e=0;for(b=
a[4].length;e<b;e++)for(g=a[4][e],n=this.F[g[0]],c=1,h=g.length;c<h;c++)f=this.F[g[c]],f.Na.push(n),n.Kg.push(f);e=0;for(b=a[28].length;e<b;e++){g=a[28][e];n=[];c=0;for(h=g.length;c<h;c++)n.push(this.F[g[c]]);c=0;for(h=n.length;c<h;c++)n[c].Rb=!0,n[c].Lc=n}if(0<this.Ui)for(e=0,b=this.F.length;e<b;e++)if(f=this.F[e],!f.S&&f.Na.length){f.nl=Array(this.Ui);f.wh=Array(this.Ui);f.qs=Array(this.Ui);t=[];c=u=m=l=0;for(h=f.Na.length;c<h;c++)for(d=f.Na[c],f.nl[d.Ie]=l,l+=d.LB,f.wh[d.Ie]=m,m+=d.Lx,f.qs[d.Ie]=
u,u+=d.pz,g=0,n=d.Y.length;g<n;g++)t.push(Ca({},d.Y[g]));f.Y=t.concat(f.Y);c=0;for(h=f.Y.length;c<h;c++)f.Y[c].index=c}e=0;for(b=a[5].length;e<b;e++)f=a[5][e],c=new Nb(this,f),this.op[c.name]=c,this.Nd.push(c);e=0;for(b=a[6].length;e<b;e++)f=a[6][e],c=new Ob(this,f),this.po[c.name]=c,this.He.push(c);e=0;for(b=this.He.length;e<b;e++)this.He[e].eb();e=0;for(b=this.He.length;e<b;e++)this.He[e].Kq();e=0;for(b=this.sn.length;e<b;e++)this.sn[e].eb();G(this.sn);this.Jx=a[7];this.ro=a[8];this.Pd=a[9];this.Hi=
1;this.Fy=a[13];this.Pa=a[14];this.Xr=a[15];this.JB=a[17];this.Op=a[20];this.Kx=0<this.Op;this.NA=a[22];this.Yc=this.lv=a[23];this.yy=a[24];this.VA=a[25];this.Ja=a[27]&&!this.Ne;this.dn=Date.now();G(this.om);this.bA()};var e=!1,h=0,f=[];d.prototype.aB=function(a,e){function b(){h--;c.Et()}var c=this;a.addEventListener("load",b);a.addEventListener("error",b);f.push([a,e]);this.Et()};d.prototype.Et=function(){for(var a;f.length&&100>h;)h++,a=f.shift(),this.yu(a[0],a[1])};d.prototype.kv=function(a,b){a.cocoonLazyLoad=
!0;a.onerror=function(b){e=a.Pr=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",b)};this.Ld?a.src=b:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(e){a.src=e},function(c){e=a.Pr=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",c)}):(a.crossOrigin="anonymous",this.aB(a,b)));this.ti.push(a)};d.prototype.nz=function(a){var e,b;e=0;for(b=this.ti.length;e<b;e++)if(this.ti[e].Wx===a)return this.ti[e];return null};
var g=0,N=!1;d.prototype.Vz=function(){this.hh&&(g=this.hh.tB(this.Jx))};d.prototype.Lr=function(){var a=g,e=0,b=0,c=!0,h,f,b=0;for(h=this.ti.length;b<h;b++){f=this.ti[b];var n=f.bs;if(!n||0>=n)n=5E4;a+=n;f.src&&(f.complete||f.loaded)&&!f.Pr?e+=n:c=!1}c&&this.VA&&this.hh&&(N||(this.hh.yB(),N=!0),b=this.hh.Fz(),e+=b,b<g&&(c=!1));this.Qd=0==a?1:e/a;return c};var O=!1;d.prototype.go=function(){if(this.Ta||this.H){var a=this.Ta||this.Pp;this.Ub&&this.ju();var c=window.innerWidth,h=window.innerHeight;
this.Sh===c&&this.Rh===h||this.setSize(c,h);this.Qd=0;this.gt=-1;var g=this;if(this.Lr()&&(4!==this.If||O))this.Wz();else{h=Date.now()-this.dn;if(a){var f=this.width,n=this.height,c=this.devicePixelRatio;if(3>this.If&&(this.td||500<=h&&this.gt!=this.Qd)){a.clearRect(0,0,f,n);var h=f/2,n=n/2,f=0===this.If&&this.Hf.gm.complete,t=40*c,d=0,l=80*c,u;if(f){var m=this.Hf.gm,l=m.width*c;u=m.height*c;t=l/2;d=u/2;a.drawImage(m,C(h-t),C(n-d),l,u)}1>=this.If?(h=C(h-t)+.5,n=C(n+(d+(f?12*c:0)))+.5,a.fillStyle=
e?"red":"DodgerBlue",a.fillRect(h,n,Math.floor(l*this.Qd),6*c),a.strokeStyle="black",a.strokeRect(h,n,l,6*c),a.strokeStyle="white",a.strokeRect(h-1*c,n-1*c,l+2*c,8*c)):2===this.If&&(a.font=this.Ld?"12pt ArialMT":"12pt Arial",a.fillStyle=e?"#f00":"#999",a.QC="middle",c=Math.round(100*this.Qd)+"%",f=a.measureText?a.measureText(c):null,a.fillText(c,h-(f?f.width:0)/2,n));this.gt=this.Qd}else if(4===this.If){this.Dy(a);b?b(function(){g.go()}):setTimeout(function(){g.go()},16);return}}setTimeout(function(){g.go()},
this.td?10:100)}}};var u=-1,n="undefined"===typeof cr_is_preview?200:0,t=!0,P=!1,U=0,x=0,L="undefined"===typeof cr_is_preview?3E3:0,A=null,v=null,F=0;d.prototype.Dy=function(a){if(!O){for(var b=Math.ceil(this.width),c=Math.ceil(this.height),h=this.Hf.gm,g=this.Hf.UA,f=this.Hf.NB,d=0;4>d;++d)if(!h[d].complete||!g[d].complete||!f[d].complete)return;0===F&&(u=Date.now());var d=Date.now(),l=!1,m=a,k,p;t||P?(a.clearRect(0,0,b,c),A&&A.width===b&&A.height===c||(A=document.createElement("canvas"),A.width=
b,A.height=c,v=A.getContext("2d")),m=v,l=!0,t&&1===F&&(u=Date.now())):a.globalAlpha=1;m.fillStyle="#333333";m.fillRect(0,0,b,c);256<this.Oi?(k=Ka(.22*c,105,.6*b),p=.25*k,m.drawImage(r(g,k),.5*b-k/2,.2*c-p/2,k,p),p=k=Math.min(.395*c,.95*b),m.drawImage(r(h,k),.5*b-k/2,.485*c-p/2,k,p),k=Ka(.22*c,105,.6*b),p=.25*k,m.drawImage(r(f,k),.5*b-k/2,.868*c-p/2,k,p),m.fillStyle="#3C3C3C",k=b,p=Math.max(.005*c,2),m.fillRect(0,.8*c-p/2,k,p),m.fillStyle=e?"red":"#E0FF65",k=b*this.Qd,m.fillRect(.5*b-k/2,.8*c-p/2,
k,p)):(p=k=.55*c,m.drawImage(r(h,k),.5*b-k/2,.45*c-p/2,k,p),m.fillStyle="#3C3C3C",k=b,p=Math.max(.005*c,2),m.fillRect(0,.85*c-p/2,k,p),m.fillStyle=e?"red":"#E0FF65",k=b*this.Qd,m.fillRect(.5*b-k/2,.85*c-p/2,k,p));l&&(t?a.globalAlpha=0===F?0:Math.min((d-u)/300,1):P&&(a.globalAlpha=Math.max(1-(d-x)/300,0)),a.drawImage(A,0,0,b,c));t&&300<=d-u&&2<=F&&(t=!1,U=d);!t&&d-U>=L&&!P&&1<=this.Qd&&(P=!0,x=d);if(P&&d-x>=300+n||"undefined"!==typeof cr_is_preview&&1<=this.Qd&&500>Date.now()-u)O=!0,P=t=!1,this.Hf=
v=A=null;++F}};d.prototype.Wz=function(){this.Ub&&(this.canvas.parentNode.removeChild(this.Ub),this.Ub=this.Pp=null);this.dn=Date.now();this.Eg=cb();var a,e,b;if(this.Oq)for(a=0,e=this.F.length;a<e;a++)b=this.F[a],b.S||b.Yo||!b.za.Cf||b.I();else this.Nh=!1;a=0;for(e=this.Nd.length;a<e;a++)this.Nd[a].Xx();2<=this.ic&&(a=this.Db/this.Cb,e=this.width/this.height,this.Hi=2!==this.ic&&e>a||2===this.ic&&e<a?this.height/this.Cb:this.width/this.Db);this.ys?this.op[this.ys].vq():this.Nd[0].vq();this.Oq||(this.cm=
1,this.trigger(W.prototype.k.ir,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(e=this.F.length;a<e;a++)b=this.F[a],b.BA&&b.BA();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Ba(!1);this.jc&&AppMobi.webview.execute("onGameReady();")};d.prototype.Ba=function(a,e,c){if(this.pa){var h=cb();if(c||!this.oj||a){a||(b?this.$p=b(this.Tu):this.Cq=setTimeout(this.Tu,
this.Oe?1:16));e=e||h;var g=this.ic;((c=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.ad)||this.Nl)&&0<this.yh&&(g=this.yh);if(0<g){var g=window.innerWidth,f=window.innerHeight;this.Sh===g&&this.Rh===f||this.setSize(g,f)}this.Ka||(c?this.ql||(this.ql=!0):this.ql?(this.ql=!1,0===this.ic&&this.setSize(Math.round(this.Tt/this.devicePixelRatio),Math.round(this.St/this.devicePixelRatio),!0)):(this.Tt=this.width,this.St=this.height));this.Nh&&
(c=this.Lr(),this.cm=this.Qd,c&&(this.Nh=!1,this.Qd=1,this.trigger(W.prototype.k.ir,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.tA(e);!this.ba&&!this.td||this.cp||this.jk||a||(this.ba=!1,this.H?this.vc():this.rd(),this.hk&&(this.canvas&&this.canvas.toDataURL&&(this.Ku=this.canvas.toDataURL(this.hk[0],this.hk[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Ku),this.trigger(W.prototype.k.gw,null)),this.hk=null));this.AC||(this.hd++,this.qg++,this.wl++);this.Ij+=cb()-h}}};d.prototype.tA=
function(a){var e,b,c,h,g,f,n,d;1E3<=a-this.Eg&&(this.Eg+=1E3,1E3<=a-this.Eg&&(this.Eg=a),this.uo=this.wl,this.wl=0,this.Zn=this.Ij,this.Ij=0);e=0;0!==this.Sl&&(e=a-this.Sl,0>e&&(e=0),this.lg=e/=1E3,.5<this.lg?this.lg=0:this.lg>1/this.It&&(this.lg=1/this.It));this.Sl=a;this.kg=this.lg*this.ah;this.yb.add(this.kg);this.hf.add(e);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Nl)&&!this.ad;2<=this.ic||a&&0<this.yh?(e=this.Db/this.Cb,
b=this.width/this.height,c=this.ic,a&&0<this.yh&&(c=this.yh),this.Hi=2!==c&&b>e||2===c&&b<e?this.height/this.Cb:this.width/this.Db,this.pa&&(this.pa.kq(this.pa.scrollX),this.pa.lq(this.pa.scrollY))):this.Hi=this.Ag?this.devicePixelRatio:1;this.Yb();this.bd++;this.we.lB();this.bd--;this.Yb();this.bd++;b=this.Rt.ff();a=0;for(e=b.length;a<e;a++)b[a].KC();a=0;for(e=this.F.length;a<e;a++)if(f=this.F[a],!f.S&&(f.Ra.length||f.Na.length))for(b=0,c=f.j.length;b<c;b++)for(n=f.j[b],h=0,g=n.T.length;h<g;h++)n.T[h].Ba();
a=0;for(e=this.F.length;a<e;a++)if(f=this.F[a],!f.S&&(f.Ra.length||f.Na.length))for(b=0,c=f.j.length;b<c;b++)for(n=f.j[b],h=0,g=n.T.length;h<g;h++)d=n.T[h],d.ku&&d.ku();b=this.Ep.ff();a=0;for(e=b.length;a<e;a++)b[a].Ba();this.bd--;this.Xz();for(a=0;this.hg&&10>a++;)this.ls(this.hg);a=0;for(e=this.He.length;a<e;a++)this.He[a].Ko=!1;this.pa.ng&&this.pa.ng.pb();G(this.Qg);this.np=!1;this.bd++;a=0;for(e=this.F.length;a<e;a++)if(f=this.F[a],!f.S&&(f.Ra.length||f.Na.length))for(b=0,c=f.j.length;b<c;b++)for(n=
f.j[b],h=0,g=n.T.length;h<g;h++)d=n.T[h],d.Zg&&d.Zg();b=this.Fp.ff();a=0;for(e=b.length;a<e;a++)b[a].Zg();this.bd--};d.prototype.Ue=function(){var a,e,b,c,h,g,f,n,d;a=0;for(e=this.F.length;a<e;a++)if(f=this.F[a],!f.S)for(b=0,c=f.j.length;b<c;b++)if(n=f.j[b],n.Ue&&n.Ue(),n.T)for(h=0,g=n.T.length;h<g;h++)d=n.T[h],d.Ue&&d.Ue()};d.prototype.ls=function(a){var e=this.pa;this.pa.zB();var b,c,h;if(this.H)for(b=0,c=this.F.length;b<c;b++)h=this.F[b],h.S||!h.Jq||h.global&&0!==h.j.length||-1!==a.hj.indexOf(h)||
h.Jq();e==a&&G(this.we.Jc);G(this.Qg);this.ru(!0);a.vq();this.ru(!1);this.np=this.ba=!0;this.Yb()};d.prototype.ru=function(a){var e,b,c,h,g,f,n,d,t;e=0;for(b=this.Ra.length;e<b;e++)c=this.Ra[e],a?c.ai&&c.ai():c.Pj&&c.Pj();e=0;for(b=this.F.length;e<b;e++)if(c=this.F[e],c.global||c.za.$m)for(h=0,g=c.j.length;h<g;h++)if(f=c.j[h],a?f.ai&&f.ai():f.Pj&&f.Pj(),f.T)for(n=0,d=f.T.length;n<d;n++)t=f.T[n],a?t.ai&&t.ai():t.Pj&&t.Pj()};d.prototype.oi=function(a){this.Ep.add(a)};d.prototype.CB=function(a){this.Fp.add(a)};
d.prototype.Jd=function(a){return a&&-1!==a.Yh?this.lg*a.Yh:this.kg};d.prototype.rd=function(){this.pa.rd(this.Ta);this.jc&&this.Ta.present()};d.prototype.vc=function(){this.Ja&&(this.mg=1,this.pa.qh(this.H));this.pa.vc(this.H);this.H.XA()};d.prototype.Mn=function(a){a&&this.fl.push(a)};d.prototype.fB=function(a){Ja(this.fl,a)};d.prototype.Ah=function(a){a=a.toString();return this.Se.hasOwnProperty(a)?this.Se[a]:null};var I=[];d.prototype.$d=function(a){var e,b;e=a.type.name;var c=null;if(this.jg.hasOwnProperty(e)){if(c=
this.jg[e],c.contains(a))return}else c=I.length?I.pop():new ea,this.jg[e]=c;c.add(a);this.Af=!0;if(a.Rb)for(e=0,b=a.siblings.length;e<b;e++)this.$d(a.siblings[e]);this.Wo&&c.ri.push(a);this.Vo||(this.bd++,this.trigger(Object.getPrototypeOf(a.type.za).k.Zq,a),this.bd--)};d.prototype.Yb=function(){if(this.Af){var a,e,b,c,h,g;this.Wo=!0;b=0;for(h=this.Id.length;b<h;++b)for(a=this.Id[b],e=a.type,e.j.push(a),c=0,g=e.Na.length;c<g;++c)e.Na[c].j.push(a),e.Na[c].mi=!0;G(this.Id);this.Vv();bb(this.jg);this.Af=
this.Wo=!1}};d.prototype.Vv=function(){for(var a in this.jg)this.jg.hasOwnProperty(a)&&this.vv(this.jg[a])};d.prototype.vv=function(a){var e=a.ff(),b=e[0].type,c,h,g,f,n,d;db(b.j,a);b.mi=!0;0===b.j.length&&(b.Ik=!1);c=0;for(h=b.Na.length;c<h;++c)d=b.Na[c],db(d.j,a),d.mi=!0;c=0;for(h=this.we.Jc.length;c<h;++c)if(n=this.we.Jc[c],n.lc.hasOwnProperty(b.index)&&db(n.lc[b.index].Le,a),!b.S)for(g=0,f=b.Na.length;g<f;++g)d=b.Na[g],n.lc.hasOwnProperty(d.index)&&db(n.lc[d.index].Le,a);if(n=e[0].q){if(n.kd)for(g=
n.j,c=0,h=g.length;c<h;++c)f=g[c],a.contains(f)&&(f.xa(),n.Vb.update(f,f.Cc,null),f.Cc.set(0,0,-1,-1));db(n.j,a);n.ck(0)}for(c=0;c<e.length;++c)this.uv(e[c],b);a.clear();I.push(a);this.ba=!0};d.prototype.uv=function(a,e){var b,c,h;b=0;for(c=this.fl.length;b<c;++b)this.fl[b](a);a.nd&&e.Ki.update(a,a.nd,null);(b=a.q)&&b.hi(a,!0);if(a.T)for(b=0,c=a.T.length;b<c;++b)h=a.T[b],h.Te&&h.Te(),h.behavior.mm.remove(a);this.Rt.remove(a);this.Ep.remove(a);this.Fp.remove(a);a.Te&&a.Te();this.Se.hasOwnProperty(a.uid.toString())&&
delete this.Se[a.uid.toString()];this.pm--;100>e.$k.length&&e.$k.push(a)};d.prototype.Vk=function(a,e,b,c){if(a.S){var h=C(Math.random()*a.Kg.length);return this.Vk(a.Kg[h],e,b,c)}return a.pd?this.wf(a.pd,e,!1,b,c,!1):null};var V=[];d.prototype.wf=function(a,e,b,c,h,g){var f,n,d,t;if(!a)return null;var l=this.F[a[1]],m=l.za.Cf;if(this.Nh&&m&&!l.Yo||m&&!this.H&&11===a[0][11])return null;var u=e;m||(e=null);var k;l.$k.length?(k=l.$k.pop(),k.kc=!0,l.za.N.call(k,l)):(k=new l.za.N(l),k.kc=!1);!b||g||this.Se.hasOwnProperty(a[2].toString())?
k.uid=this.Lj++:k.uid=a[2];this.Se[k.uid.toString()]=k;k.nu=this.Nt++;k.yg=l.j.length;f=0;for(n=this.Id.length;f<n;++f)this.Id[f].type===l&&k.yg++;k.cj=Lb;k.toString=Mb;d=a[3];if(k.kc)bb(k.J);else{k.J={};if("undefined"!==typeof cr_is_preview)for(k.Os=[],k.Os.length=d.length,f=0,n=d.length;f<n;f++)k.Os[f]=d[f][1];k.xb=[];k.xb.length=d.length}f=0;for(n=d.length;f<n;f++)k.xb[f]=d[f][0];if(m){var x=a[0];k.x=ja(c)?x[0]:c;k.y=ja(h)?x[1]:h;k.z=x[2];k.width=x[3];k.height=x[4];k.depth=x[5];k.m=x[6];k.opacity=
x[7];k.Mc=x[8];k.Nc=x[9];k.Zb=x[10];f=x[11];!this.H&&l.Y.length&&(k.Zb=f);k.Li=lb(k.Zb);this.G&&mb(k,k.Zb,this.G);if(k.kc){f=0;for(n=x[12].length;f<n;f++)for(d=0,t=x[12][f].length;d<t;d++)k.Ua[f][d]=x[12][f][d];k.Ea.set(0,0,0,0);k.nd.set(0,0,-1,-1);k.Cc.set(0,0,-1,-1);k.$b.Uf(k.Ea);G(k.Sn)}else{k.Ua=x[12].slice(0);f=0;for(n=k.Ua.length;f<n;f++)k.Ua[f]=x[12][f].slice(0);k.ua=[];k.nf=[];k.nf.length=l.Y.length;k.Ea=new va(0,0,0,0);k.nd=new va(0,0,-1,-1);k.Cc=new va(0,0,-1,-1);k.$b=new xa;k.Sn=[];k.D=
Pb;k.Gx=Qb;k.hc=Rb;k.xa=Sb;k.hv=Tb;k.Nq=Ub;k.ke=Vb}k.$g=!1;k.GB=0;k.EB=0;k.DB=null;14===x.length&&(k.$g=!0,k.GB=x[13][0],k.EB=x[13][1],k.DB=x[13][2]);f=0;for(n=l.Y.length;f<n;f++)k.nf[f]=!0;k.Ye=!0;k.Yd=Wb;k.Yd();k.iv=!!k.ua.length;k.Ok=!0;k.Un=!0;l.Hk=!0;k.visible=!0;k.Yh=-1;k.q=e;k.Zd=e.j.length;k.mg=0;"undefined"===typeof k.la&&(k.la=null);this.ba=k.Wc=!0}var p;G(V);f=0;for(n=l.Na.length;f<n;f++)V.push.apply(V,l.Na[f].Ra);V.push.apply(V,l.Ra);if(k.kc)for(f=0,n=V.length;f<n;f++){var r=V[f];p=k.T[f];
p.kc=!0;r.behavior.N.call(p,r,k);x=a[4][f];d=0;for(t=x.length;d<t;d++)p.C[d]=x[d];p.I();r.behavior.mm.add(k)}else for(k.T=[],f=0,n=V.length;f<n;f++)r=V[f],p=new r.behavior.N(r,k),p.kc=!1,p.C=a[4][f].slice(0),p.I(),k.T.push(p),r.behavior.mm.add(k);x=a[5];if(k.kc)for(f=0,n=x.length;f<n;f++)k.C[f]=x[f];else k.C=x.slice(0);this.Id.push(k);this.Af=!0;e&&(e.Gi(k,!0),1!==e.zc||1!==e.Ac)&&(l.Ik=!0);this.pm++;if(l.Rb){if(k.Rb=!0,k.kc?G(k.siblings):k.siblings=[],!b&&!g){f=0;for(n=l.Lc.length;f<n;f++)if(l.Lc[f]!==
l){if(!l.Lc[f].pd)return null;k.siblings.push(this.wf(l.Lc[f].pd,u,!1,m?k.x:c,m?k.y:h,!0))}f=0;for(n=k.siblings.length;f<n;f++)for(k.siblings[f].siblings.push(k),d=0;d<n;d++)f!==d&&k.siblings[f].siblings.push(k.siblings[d])}}else k.Rb=!1,k.siblings=null;k.I();f=0;for(n=k.T.length;f<n;f++)k.T[f].TA&&k.T[f].TA();return k};d.prototype.aj=function(a){var e,b;e=0;for(b=this.pa.Z.length;e<b;e++){var c=this.pa.Z[e];if(ob(c.name,a))return c}return null};d.prototype.Ke=function(a){a=C(a);0>a&&(a=0);a>=this.pa.Z.length&&
(a=this.pa.Z.length-1);return this.pa.Z[a]};d.prototype.Xn=function(a){var e,b;e=0;for(b=a.length;e<b;e++)a[e].W().da=!0};d.prototype.Vj=function(a){var e,b;e=0;for(b=a.length;e<b;e++)a[e].Vj()};d.prototype.Wj=function(a){var e,b;e=0;for(b=a.length;e<b;e++)a[e].Wj()};d.prototype.Pf=function(a){var e,b;e=0;for(b=a.length;e<b;e++)a[e].Pf()};d.prototype.cv=function(a){if(a.Hk){var e,b,c=a.j;e=0;for(b=c.length;e<b;++e)c[e].Nq();c=this.Id;e=0;for(b=c.length;e<b;++e)c[e].type===a&&c[e].Nq();a.Hk=!1}};d.prototype.zl=
function(a,e,b,c){var h,f,g=a?1!==a.zc||1!==a.Ac:!1;if(e.S)for(a=0,h=e.Kg.length;a<h;++a)f=e.Kg[a],g||f.Ik?Ha(c,f.j):(this.cv(f),f.Ki.Lm(b,c));else g||e.Ik?Ha(c,e.j):(this.cv(e),e.Ki.Lm(b,c))};d.prototype.Eo=function(a,e,b,c){var h,f;h=0;for(f=e.length;h<f;++h)this.zl(a,e[h],b,c)};d.prototype.Hs=function(a,e,b){var c=this.Lu;c&&this.Eo(a,c.nm,e,b)};d.prototype.Cz=function(a,e,b){var c=this.bt;c&&this.Eo(a,c.nm,e,b)};d.prototype.lk=function(a,e,b){var c=a.W(),h,f,g,n,d=this.$a().gb.ed,t,l,k;if(c.da)for(c.da=
!1,G(c.j),h=0,n=a.j.length;h<n;h++)g=a.j[h],g.xa(),t=g.q.sb(e,b,!0),l=g.q.sb(e,b,!1),g.hc(t,l)?c.j.push(g):d&&c.fa.push(g);else{f=0;k=d?c.fa:c.j;h=0;for(n=k.length;h<n;h++)g=k[h],g.xa(),t=g.q.sb(e,b,!0),l=g.q.sb(e,b,!1),g.hc(t,l)&&(d?c.j.push(g):(c.j[f]=c.j[h],f++));k.length=f}a.Ed();return c.Jo()};d.prototype.mc=function(a,e){if(!(a&&e&&a!==e&&a.Wc&&e.Wc))return!1;a.xa();e.xa();var b=a.q,c=e.q,h,f,g,n,d,t,l,k;if(b===c||b.zc===c.zc&&c.Ac===c.Ac&&b.scale===c.scale&&b.m===c.m&&b.gc===c.gc){if(!a.Ea.Ps(e.Ea)||
!a.$b.To(e.$b)||a.$g&&e.$g)return!1;if(a.$g)return this.Pu(a,e);if(e.$g)return this.Pu(e,a);l=a.la&&!a.la.Bg();h=e.la&&!e.la.Bg();if(!l&&!h)return!0;l?(a.la.gg(a.width,a.height,a.m),l=a.la):(this.Fc.Ug(a.$b,a.x,a.y,a.width,a.height),l=this.Fc);h?(e.la.gg(e.width,e.height,e.m),k=e.la):(this.Fc.Ug(e.$b,e.x,e.y,e.width,e.height),k=this.Fc);return l.zg(k,e.x-a.x,e.y-a.y)}l=a.la&&!a.la.Bg();h=e.la&&!e.la.Bg();l?(a.la.gg(a.width,a.height,a.m),this.Fc.Du(a.la)):this.Fc.Ug(a.$b,a.x,a.y,a.width,a.height);
l=this.Fc;h?(e.la.gg(e.width,e.height,e.m),this.xq.Du(e.la)):this.xq.Ug(e.$b,e.x,e.y,e.width,e.height);k=this.xq;h=0;for(f=l.Rd;h<f;h++)g=2*h,n=g+1,d=l.Fb[g],t=l.Fb[n],l.Fb[g]=b.Oa(d+a.x,t+a.y,!0),l.Fb[n]=b.Oa(d+a.x,t+a.y,!1);l.xa();h=0;for(f=k.Rd;h<f;h++)g=2*h,n=g+1,d=k.Fb[g],t=k.Fb[n],k.Fb[g]=c.Oa(d+e.x,t+e.y,!0),k.Fb[n]=c.Oa(d+e.x,t+e.y,!1);k.xa();return l.zg(k,0,0)};var S=new xa;new va(0,0,0,0);var K=[];d.prototype.Pu=function(a,e){var b,c,h,f,g=e.Ea,n=a.x,d=a.y;a.vz(g,K);var t=e.la&&!e.la.Bg();
b=0;for(c=K.length;b<c;++b)if(h=K[b],f=h.bB,g.Qs(f,n,d)&&(S.Uf(f),S.offset(n,d),S.To(e.$b)))if(t)if(e.la.gg(e.width,e.height,e.m),h.Sj){if(h.Sj.zg(e.la,e.x-(n+f.left),e.y-(d+f.top)))return G(K),!0}else{if(this.Fc.Ug(S,0,0,f.right-f.left,f.bottom-f.top),this.Fc.zg(e.la,e.x,e.y))return G(K),!0}else if(h.Sj){if(this.Fc.Ug(e.$b,0,0,e.width,e.height),h.Sj.zg(this.Fc,-(n+f.left),-(d+f.top)))return G(K),!0}else return G(K),!0;G(K);return!1};d.prototype.yq=function(a,e){if(!e||!e.Wc)return!1;e.xa();if(!e.Ea.Ps(a))return!1;
if(e.$g){e.vz(a,K);var b,c,h,f,g=e.x,n=e.y;b=0;for(c=K.length;b<c;++b)if(h=K[b],f=h.bB,a.Qs(f,g,n))if(h.Sj){if(this.Fc.Uf(a,0,0),h.Sj.zg(this.Fc,-(g+f.left),-(n+f.top)))return G(K),!0}else return G(K),!0;G(K);return!1}S.Uf(a);if(!e.$b.To(S))return!1;if(!e.la||e.la.Bg())return!0;e.la.gg(e.width,e.height,e.m);S.offset(-a.left,-a.top);this.Fc.Ug(S,0,0,1,1);return e.la.zg(this.Fc,a.left-e.x,a.top-e.y)};d.prototype.Gq=function(a,e){if(!e)return!1;var b,c,h,f,g;b=0;for(c=a.Ra.length;b<c;b++)if(a.Ra[b].behavior instanceof
e)return!0;if(!a.S)for(b=0,c=a.Na.length;b<c;b++)for(g=a.Na[b],h=0,f=g.Ra.length;h<f;h++)if(g.Ra[h].behavior instanceof e)return!0;return!1};d.prototype.Hq=function(a){return this.Gq(a,kc.fC)};d.prototype.Iq=function(a){return this.Gq(a,kc.gC)};var B=[];d.prototype.Za=function(a){var e,b,c;a.xa();this.Hs(a.q,a.Ea,B);e=0;for(b=B.length;e<b;++e)if(c=B[e],c.J.solidEnabled&&this.mc(a,c))return G(B),c;G(B);return null};d.prototype.BB=function(a){var e,b,c;this.Hs(null,a,B);e=0;for(b=B.length;e<b;++e)if(c=
B[e],c.J.solidEnabled&&this.yq(a,c))return G(B),c;G(B);return null};var R=[];d.prototype.Wf=function(a,e){var b=null;e&&(b=R,G(b));a.xa();this.Cz(a.q,a.Ea,B);var c,h,f;c=0;for(h=B.length;c<h;++c)if(f=B[c],f.J.jumpthruEnabled&&this.mc(a,f))if(e)b.push(f);else return G(B),f;G(B);return b};d.prototype.Sc=function(a,e,b,c,h,f){c=c||50;var g=a.x,n=a.y,d,t=null,l=null;for(d=0;d<c;d++)if(a.x=g+e*d,a.y=n+b*d,a.D(),!this.mc(a,t)&&((t=this.Za(a))&&(l=t),!t&&(h&&(f?t=this.mc(a,f)?f:null:t=this.Wf(a),t&&(l=t)),
!t)))return l&&this.Km(a,e,b,l),!0;a.x=g;a.y=n;a.D();return!1};d.prototype.Xp=function(a,e,b,c){c=c||50;var h=a.x,f=a.y,g=null,n=null,d,t,l;for(d=0;d<c;++d)for(t=0;2>t;++t)if(l=2*t-1,a.x=h+e*d*l,a.y=f+b*d*l,a.D(),!this.mc(a,g))if(g=this.Za(a))n=g;else return n&&this.Km(a,e*l,b*l,n),!0;a.x=h;a.y=f;a.D();return!1};d.prototype.Km=function(a,e,b,c){var h=2,f,g=!1;f=!1;for(var n=a.x,d=a.y;16>=h;)f=1/h,h*=2,a.x+=e*f*(g?1:-1),a.y+=b*f*(g?1:-1),a.D(),this.mc(a,c)?f=g=!0:(f=g=!1,n=a.x,d=a.y);f&&(a.x=n,a.y=
d,a.D())};d.prototype.Yp=function(a,e){var b=ja(e)?100:e,c=0,h=a.x,f=a.y,g=0,n=0,d=0,t=this.Za(a);if(!t)return!0;for(;c<=b;){switch(g){case 0:n=0;d=-1;c++;break;case 1:n=1;d=-1;break;case 2:n=1;d=0;break;case 3:d=n=1;break;case 4:n=0;d=1;break;case 5:n=-1;d=1;break;case 6:n=-1;d=0;break;case 7:d=n=-1}g=(g+1)%8;a.x=C(h+n*c);a.y=C(f+d*c);a.D();if(!this.mc(a,t)&&(t=this.Za(a),!t))return!0}a.x=h;a.y=f;a.D();return!1};d.prototype.fd=function(a,e){a.Wc&&e.Wc&&this.Qg.push([a,e])};d.prototype.Ex=function(a,
e,b){var c,h,f;c=0;for(h=this.Qg.length;c<h;++c){f=this.Qg[c];if(f[0]===a)f=f[1];else if(f[1]===a)f=f[0];else continue;if(e.S){if(-1===e.Kg.indexOf(e))continue}else if(f.type!==e)continue;-1===b.indexOf(f)&&b.push(f)}};d.prototype.Sx=function(a,e){var b,c,h;b=0;for(c=this.Qg.length;b<c;b++)if(h=this.Qg[b],h[0]===a&&h[1]===e||h[0]===e&&h[1]===a)return!0;return!1};d.prototype.Px=function(a,e,b){var c=a.x,h=a.y,f=qa(10,Xa(e,b,c,h)),g=Sa(e,b,c,h),n=this.Za(a);if(!n)return Oa(g+sa);var d=n,t,l,k,m,u=Q(5);
for(t=1;36>t;t++)if(l=g-t*u,a.x=e+Math.cos(l)*f,a.y=b+Math.sin(l)*f,a.D(),!this.mc(a,d)&&(d=this.Za(a),!d)){k=l;break}36===t&&(k=Oa(g+sa));d=n;for(t=1;36>t;t++)if(l=g+t*u,a.x=e+Math.cos(l)*f,a.y=b+Math.sin(l)*f,a.D(),!this.mc(a,d)&&(d=this.Za(a),!d)){m=l;break}36===t&&(m=Oa(g+sa));a.x=c;a.y=h;a.D();if(m===k)return m;a=Ta(m,k)/2;a=Va(m,k)?Oa(k+a+sa):Oa(m+a);k=Math.cos(g);g=Math.sin(g);m=Math.cos(a);a=Math.sin(a);e=k*m+g*a;return Sa(0,0,k-2*e*m,g-2*e*a)};var la=-1;d.prototype.trigger=function(a,e,b){if(!this.pa)return!1;
var c=this.pa.ng;if(!c)return!1;var h=!1,f,g,n;la++;var d=c.eo;g=0;for(n=d.length;g<n;++g)f=this.Wu(a,e,d[g],b),h=h||f;f=this.Wu(a,e,c,b);la--;return h||f};d.prototype.Wu=function(a,e,b,c){var h=!1,f,g,n,d;if(e)for(n=this.Eq(a,e,e.type.name,b,c),h=h||n,d=e.type.Na,f=0,g=d.length;f<g;++f)n=this.Eq(a,e,d[f].name,b,c),h=h||n;else n=this.Eq(a,e,"system",b,c),h=h||n;return h};d.prototype.Eq=function(a,e,b,c,h){var f,g=!1,n=!1,n="undefined"!==typeof h,d=(n?c.ts:c.Xu)[b];if(!d)return g;var t=null;c=0;for(f=
d.length;c<f;++c)if(d[c].method==a){t=d[c].Si;break}if(!t)return g;var l;n?l=t[h]:l=t;if(!l)return null;c=0;for(f=l.length;c<f;c++)a=l[c][0],h=l[c][1],n=this.kz(e,b,a,h),g=g||n;return g};d.prototype.kz=function(a,e,b,c){var h,f,g=!1;this.Fq++;var n=this.$a().gb;n&&this.Vj(n.Vf);var d=1<this.Fq;this.Vj(b.Vf);d&&this.ZA();var t=this.Jm(b);t.gb=b;a&&(h=this.types[e].W(),h.da=!1,G(h.j),h.j[0]=a,this.types[e].Ed());a=!0;if(b.parent){e=t.Ou;for(h=b.parent;h;)e.push(h),h=h.parent;e.reverse();h=0;for(f=e.length;h<
f;h++)if(!e[h].nB()){a=!1;break}}a&&(this.qg++,b.ed?b.mB(c):b.pb(),g=g||t.Dg);this.Fm();d&&this.RA();this.Pf(b.Vf);n&&this.Pf(n.Vf);this.Af&&0===this.bd&&0===la&&!this.Zo&&this.Yb();this.Fq--;return g};d.prototype.Zi=function(){var a=this.$a();return a.gb.tb[a.fb]};d.prototype.eA=function(){return 0===this.$a().fb};d.prototype.wz=function(){var a=this.$a();return a.gb.md[a.pc]};d.prototype.ZA=function(){this.fm++;this.fm>=this.wp.length&&this.wp.push([])};d.prototype.RA=function(){this.fm--};d.prototype.Cs=
function(){return this.wp[this.fm]};d.prototype.Jm=function(a){this.il++;this.il>=this.oo.length&&this.oo.push(new Xb);var e=this.$a();e.reset(a);return e};d.prototype.Fm=function(){this.il--};d.prototype.$a=function(){return this.oo[this.il]};d.prototype.$A=function(){this.hm++;this.hm>=this.yp.length&&this.yp.push(aa({name:void 0,index:0,Lb:!1}));var a=this.xz();a.name=void 0;a.index=0;a.Lb=!1;return a};d.prototype.SA=function(){this.hm--};d.prototype.xz=function(){return this.yp[this.hm]};d.prototype.Es=
function(a,e){for(var b,c,h,f,g,n;e;){b=0;for(c=e.zd.length;b<c;b++)if(n=e.zd[b],n instanceof Yb&&ob(a,n.name))return n;e=e.parent}b=0;for(c=this.He.length;b<c;b++)for(g=this.He[b],h=0,f=g.yf.length;h<f;h++)if(n=g.yf[h],n instanceof Yb&&ob(a,n.name))return n;return null};d.prototype.Fs=function(a){var e,b;e=0;for(b=this.Nd.length;e<b;e++)if(this.Nd[e].ea===a)return this.Nd[e];return null};d.prototype.Bh=function(a){var e,b;e=0;for(b=this.F.length;e<b;e++)if(this.F[e].ea===a)return this.F[e];return null};
d.prototype.zz=function(a){var e,b;e=0;for(b=this.qf.length;e<b;e++)if(this.qf[e].ea===a)return this.qf[e];return null};d.prototype.cy=function(a,e){this.hk=[a,e];this.ba=!0};d.prototype.Xz=function(){var a=this,e=this.jq,b=this.Pe,c=this.Xl,h=!1;this.Iu&&(h=!0,e="__c2_continuouspreview",this.Iu=!1);if(e.length){this.Yb();b=this.rB();if(q()&&!this.td)m(e,b,function(){ga("Saved state to IndexedDB storage ("+b.length+" bytes)");a.Pe=b;a.trigger(W.prototype.k.Fn,null);b=a.Pe="";h&&l()},function(c){try{localStorage.setItem("__c2save_"+
e,b),ga("Saved state to WebStorage ("+b.length+" bytes)"),a.Pe=b,a.trigger(W.prototype.k.Fn,null),b=a.Pe="",h&&l()}catch(f){ga("Failed to save game state: "+c+"; "+f),a.trigger(W.prototype.k.nr,null)}});else try{localStorage.setItem("__c2save_"+e,b),ga("Saved state to WebStorage ("+b.length+" bytes)"),a.Pe=b,this.trigger(W.prototype.k.Fn,null),b=a.Pe="",h&&l()}catch(f){ga("Error saving to WebStorage: "+f),a.trigger(W.prototype.k.nr,null)}this.Xl=this.jq="";this.Ab=null}if(c.length){if(q()&&!this.td)k(c,
function(e){e?(a.Ab=e,ga("Loaded state from IndexedDB storage ("+a.Ab.length+" bytes)")):(a.Ab=localStorage.getItem("__c2save_"+c)||"",ga("Loaded state from WebStorage ("+a.Ab.length+" bytes)"));a.jk=!1;a.Ab||(a.Ab=null,a.trigger(W.prototype.k.zk,null))},function(){a.Ab=localStorage.getItem("__c2save_"+c)||"";ga("Loaded state from WebStorage ("+a.Ab.length+" bytes)");a.jk=!1;a.Ab||(a.Ab=null,a.trigger(W.prototype.k.zk,null))});else{try{this.Ab=localStorage.getItem("__c2save_"+c)||"",ga("Loaded state from WebStorage ("+
this.Ab.length+" bytes)")}catch(g){this.Ab=null}this.jk=!1;a.Ab||(a.Ab=null,a.trigger(W.prototype.k.zk,null))}this.jq=this.Xl=""}null!==this.Ab&&(this.Yb(),this.sA(this.Ab)?(this.Pe=this.Ab,this.trigger(W.prototype.k.zw,null),this.Pe=""):a.trigger(W.prototype.k.zk,null),this.Ab=null)};d.prototype.rB=function(){var e,b,c,h,f,g,n,d={c2save:!0,version:1,rt:{time:this.yb.M,walltime:this.hf.M,timescale:this.ah,tickcount:this.hd,execcount:this.qg,next_uid:this.Lj,running_layout:this.pa.ea,start_time_offset:Date.now()-
this.dn},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};e=0;for(b=this.F.length;e<b;e++)if(f=this.F[e],!f.S&&!this.Hq(f)){g={instances:[]};Za(f.J)&&(g.ex=a(f.J));c=0;for(h=f.j.length;c<h;c++)g.instances.push(this.iq(f.j[c]));d.types[f.ea.toString()]=g}e=0;for(b=this.Nd.length;e<b;e++)c=this.Nd[e],d.layouts[c.ea.toString()]=c.Qa();h=d.events.groups;e=0;for(b=this.qf.length;e<b;e++)c=this.qf[e],h[c.ea.toString()]=this.Dh[c.ej].ug;b=d.events.cnds;for(n in this.uf)this.uf.hasOwnProperty(n)&&
(e=this.uf[n],Za(e.J)&&(b[n]={ex:a(e.J)}));b=d.events.acts;for(n in this.of)this.of.hasOwnProperty(n)&&(e=this.of[n],Za(e.J)&&(b[n]={ex:a(e.J)}));b=d.events.vars;for(n in this.si)this.si.hasOwnProperty(n)&&(e=this.si[n],e.Pl||e.parent&&!e.sj||(b[n]=e.data));d.system=this.we.Qa();return JSON.stringify(d)};d.prototype.pu=function(){var a,e,b,c,h,f;this.Se={};a=0;for(e=this.F.length;a<e;a++)if(b=this.F[a],!b.S)for(c=0,h=b.j.length;c<h;c++)f=b.j[c],this.Se[f.uid.toString()]=f};d.prototype.sA=function(a){var e;
try{e=JSON.parse(a)}catch(b){return!1}if(!e.c2save||1<e.version)return!1;this.lj=!0;a=e.rt;this.yb.reset();this.yb.M=a.time;this.hf.reset();this.hf.M=a.walltime||0;this.ah=a.timescale;this.hd=a.tickcount;this.qg=a.execcount;this.dn=Date.now()-a.start_time_offset;var c=a.running_layout;if(c!==this.pa.ea)if(c=this.Fs(c))this.ls(c);else return;var h,f,g,n,d,t,l;t=e.types;for(f in t)if(t.hasOwnProperty(f)&&(n=this.Bh(parseInt(f,10)))&&!n.S&&!this.Hq(n)){t[f].ex?n.J=t[f].ex:bb(n.J);d=n.j;g=t[f].instances;
c=0;for(h=ra(d.length,g.length);c<h;c++)this.Yl(d[c],g[c]);c=g.length;for(h=d.length;c<h;c++)this.$d(d[c]);c=d.length;for(h=g.length;c<h;c++){d=null;if(n.za.Cf&&(d=this.pa.Al(g[c].w.l),!d))continue;d=this.wf(n.pd,d,!1,0,0,!0);this.Yl(d,g[c])}n.mi=!0}this.Yb();this.pu();h=e.layouts;for(f in h)h.hasOwnProperty(f)&&(c=this.Fs(parseInt(f,10)))&&c.bb(h[f]);h=e.events.groups;for(f in h)h.hasOwnProperty(f)&&(c=this.zz(parseInt(f,10)))&&this.Dh[c.ej]&&this.Dh[c.ej].ak(h[f]);c=e.events.cnds;for(f in this.uf)this.uf.hasOwnProperty(f)&&
(c.hasOwnProperty(f)?this.uf[f].J=c[f].ex:this.uf[f].J={});c=e.events.acts;for(f in this.of)this.of.hasOwnProperty(f)&&(c.hasOwnProperty(f)?this.of[f].J=c[f].ex:this.of[f].J={});c=e.events.vars;for(f in c)c.hasOwnProperty(f)&&this.si.hasOwnProperty(f)&&(this.si[f].data=c[f]);this.Lj=a.next_uid;this.lj=!1;c=0;for(h=this.pl.length;c<h;++c)d=this.pl[c],this.trigger(Object.getPrototypeOf(d.type.za).k.Yf,d);G(this.pl);this.we.bb(e.system);c=0;for(h=this.F.length;c<h;c++)if(n=this.F[c],!n.S&&!this.Hq(n))for(e=
0,f=n.j.length;e<f;e++){d=n.j[e];if(n.Rb)for(t=d.cj(),G(d.siblings),a=0,g=n.Lc.length;a<g;a++)l=n.Lc[a],n!==l&&d.siblings.push(l.j[t]);d.be&&d.be();if(d.T)for(a=0,g=d.T.length;a<g;a++)t=d.T[a],t.be&&t.be()}return this.ba=!0};d.prototype.iq=function(e,b){var c,h,f,g,n;g=e.type;f=g.za;var d={};b?d.c2=!0:d.uid=e.uid;Za(e.J)&&(d.ex=a(e.J));if(e.xb&&e.xb.length)for(d.ivs={},c=0,h=e.xb.length;c<h;c++)d.ivs[e.type.So[c].toString()]=e.xb[c];if(f.Cf){f={x:e.x,y:e.y,w:e.width,h:e.height,l:e.q.ea,zi:e.ke()};
0!==e.m&&(f.a=e.m);1!==e.opacity&&(f.o=e.opacity);.5!==e.Mc&&(f.hX=e.Mc);.5!==e.Nc&&(f.hY=e.Nc);0!==e.Zb&&(f.bm=e.Zb);e.visible||(f.v=e.visible);e.Wc||(f.ce=e.Wc);-1!==e.Yh&&(f.mts=e.Yh);if(g.Y.length)for(f.fx=[],c=0,h=g.Y.length;c<h;c++)n=g.Y[c],f.fx.push({name:n.name,active:e.nf[n.index],params:e.Ua[n.index]});d.w=f}if(e.T&&e.T.length)for(d.behs={},c=0,h=e.T.length;c<h;c++)g=e.T[c],g.Qa&&(d.behs[g.type.ea.toString()]=g.Qa());e.Qa&&(d.data=e.Qa());return d};d.prototype.Bz=function(a,e){var b,c;b=
0;for(c=a.So.length;b<c;b++)if(a.So[b]===e)return b;return-1};d.prototype.uz=function(a,e){var b,c;b=0;for(c=a.T.length;b<c;b++)if(a.T[b].type.ea===e)return b;return-1};d.prototype.Yl=function(a,e,b){var c,h,f,g,n;n=a.type;var d=n.za;if(b){if(!e.c2)return}else a.uid=e.uid;e.ex?a.J=e.ex:bb(a.J);if(h=e.ivs)for(c in h)h.hasOwnProperty(c)&&(f=this.Bz(n,parseInt(c,10)),0>f||f>=a.xb.length||(g=h[c],null===g&&(g=NaN),a.xb[f]=g));if(d.Cf){f=e.w;a.q.ea!==f.l&&(h=a.q,a.q=this.pa.Al(f.l),a.q?(h.hi(a,!0),a.q.Gi(a,
!0),a.D(),a.q.ck(0)):(a.q=h,b||this.$d(a)));a.x=f.x;a.y=f.y;a.width=f.w;a.height=f.h;a.Zd=f.zi;a.m=f.hasOwnProperty("a")?f.a:0;a.opacity=f.hasOwnProperty("o")?f.o:1;a.Mc=f.hasOwnProperty("hX")?f.hX:.5;a.Nc=f.hasOwnProperty("hY")?f.hY:.5;a.visible=f.hasOwnProperty("v")?f.v:!0;a.Wc=f.hasOwnProperty("ce")?f.ce:!0;a.Yh=f.hasOwnProperty("mts")?f.mts:-1;a.Zb=f.hasOwnProperty("bm")?f.bm:0;a.Li=lb(a.Zb);this.G&&mb(a,a.Zb,this.G);a.D();if(f.hasOwnProperty("fx"))for(b=0,h=f.fx.length;b<h;b++)g=n.zo(f.fx[b].name),
0>g||(a.nf[g]=f.fx[b].active,a.Ua[g]=f.fx[b].params);a.Yd()}if(n=e.behs)for(c in n)n.hasOwnProperty(c)&&(b=this.uz(a,parseInt(c,10)),0>b||a.T[b].bb(n[c]));e.data&&a.bb(e.data)};d.prototype.us=function(a,e,b){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(e,b)},b)};d.prototype.lz=function(a,e){this.us("data.js",function(b){var c=new FileReader;c.onload=function(e){a(e.target.result)};c.onerror=e;c.readAsText(b)},e)};var ia=[],E=0;d.prototype.Ap=function(){if(ia.length&&
!(8<=E)){E++;var a=ia.shift();this.fy(a.filename,a.AB,a.Iy)}};d.prototype.vs=function(a,e,b){var c=this;ia.push({filename:a,AB:function(a){E--;c.Ap();e(a)},Iy:function(a){E--;c.Ap();b(a)}});this.Ap()};d.prototype.fy=function(a,e,b){this.us(a,function(a){var b=new FileReader;b.onload=function(a){e(a.target.result)};b.readAsArrayBuffer(a)},b)};d.prototype.mz=function(a,e,b){var c="",h=a.toLowerCase(),f=h.substr(h.length-4),h=h.substr(h.length-5);".mp4"===f?c="video/mp4":".webm"===h?c="video/webm":".m4a"===
f?c="audio/mp4":".mp3"===f&&(c="audio/mpeg");this.vs(a,function(a){a=URL.createObjectURL(new Blob([a],{type:c}));e(a)},b)};d.prototype.cA=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};d.prototype.yu=function(a,e){this.Ol&&!this.cA(e)?this.mz(e,function(e){a.src=e},function(a){alert("Failed to load image: "+a)}):a.src=e};d.prototype.Tm=function(a,e){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=e:(a.webkitImageSmoothingEnabled=
e,a.mozImageSmoothingEnabled=e,a.msImageSmoothingEnabled=e)};Zb=function(a){return new d(document.getElementById(a))};$b=function(a,e){return new d({dc:!0,width:a,height:e})};window.cr_createRuntime=Zb;window.cr_createDCRuntime=$b;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.sf=!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,r){var q=window.cr_getC2Runtime();q&&q.cy(d,r)};
window.cr_sizeCanvas=function(d,r){if(0!==d&&0!==r){var q=window.cr_getC2Runtime();q&&q.setSize(d,r)}};window.cr_setSuspended=function(d){var r=window.cr_getC2Runtime();r&&r.setSuspended(d)};
(function(){function d(a,b){this.b=a;this.ng=null;this.scrollX=this.b.Db/2;this.scrollY=this.b.Cb/2;this.scale=1;this.m=0;this.xh=!0;this.name=b[0];this.JA=b[1];this.IA=b[2];this.width=b[1];this.height=b[2];this.Zu=b[3];this.Gu=b[4];this.ea=b[5];var c=b[6],g,d;this.Z=[];this.hj=[];g=0;for(d=c.length;g<d;g++){var l=new ac(this,c[g]);l.Pt=g;this.Z.push(l)}c=b[7];this.Bf=[];g=0;for(d=c.length;g<d;g++){var l=c[g],k=this.b.F[l[1]];k.pd||(k.pd=l);this.Bf.push(l);-1===this.hj.indexOf(k)&&this.hj.push(k)}this.Y=
[];this.ua=[];this.Ye=!0;this.Ua=[];g=0;for(d=b[8].length;g<d;g++)this.Y.push({id:b[8][g][0],name:b[8][g][1],qb:-1,vd:!1,Gb:!0,index:g}),this.Ua.push(b[8][g][2].slice(0));this.Yd();this.gi=new va(0,0,1,1);this.aq=new va(0,0,1,1);this.Of={}}function r(a,b){return a.Zd-b.Zd}function q(a,b){this.ab=a;this.b=a.b;this.j=[];this.scale=1;this.m=0;this.Fe=!1;this.df=new va(0,0,0,0);this.Uu=new xa;this.Ga=this.Da=this.Ha=this.Ca=0;this.dh=!1;this.jf=-1;this.Yn=0;this.name=b[0];this.index=b[1];this.ea=b[2];
this.visible=b[3];this.Fd=b[4];this.Xd=b[5];this.zc=b[6];this.Ac=b[7];this.opacity=b[8];this.ul=b[9];this.kd=b[10];this.gc=b[11];this.Zb=b[12];this.Ey=b[13];this.Li="source-over";this.ac=this.ec=0;this.Vb=null;this.Qe=p();this.Ud=!0;this.Th=new va(0,0,-1,-1);this.Nb=new va(0,0,-1,-1);this.kd&&(this.Vb=new kb(this.b.Db,this.b.Cb));this.ue=!1;var c=b[14],g,d;this.Mu=[];this.$c=[];this.Ni=[];g=0;for(d=c.length;g<d;g++){var l=c[g],k=this.b.F[l[1]];k.pd||(k.pd=l,k.Zx=this.index);this.$c.push(l);-1===this.ab.hj.indexOf(k)&&
this.ab.hj.push(k)}Ga(this.Mu,this.$c);this.Y=[];this.ua=[];this.Ye=!0;this.Ua=[];g=0;for(d=b[15].length;g<d;g++)this.Y.push({id:b[15][g][0],name:b[15][g][1],qb:-1,vd:!1,Gb:!0,index:g}),this.Ua.push(b[15][g][2].slice(0));this.Yd();this.gi=new va(0,0,1,1);this.aq=new va(0,0,1,1)}function p(){return a.length?a.pop():[]}function m(e){G(e);a.push(e)}d.prototype.qB=function(a){var b=a.type.ea.toString();this.Of.hasOwnProperty(b)||(this.Of[b]=[]);this.Of[b].push(this.b.iq(a))};d.prototype.Is=function(){var a=
this.Z[0];return!a.Xd&&1===a.opacity&&!a.ul&&a.visible};d.prototype.Yd=function(){G(this.ua);this.Ye=!0;var a,b,c;a=0;for(b=this.Y.length;a<b;a++)c=this.Y[a],c.Gb&&(this.ua.push(c),c.vd||(this.Ye=!1))};d.prototype.yo=function(a){var b,c,g;b=0;for(c=this.Y.length;b<c;b++)if(g=this.Y[b],g.name===a)return g;return null};var k=[],l=!0;d.prototype.vq=function(){this.Gu&&(this.ng=this.b.po[this.Gu],this.ng.Kq());this.b.pa=this;this.width=this.JA;this.height=this.IA;this.scrollX=this.b.Db/2;this.scrollY=
this.b.Cb/2;var a,b,c,g,d,m,u;a=0;for(c=this.b.F.length;a<c;a++)if(b=this.b.F[a],!b.S)for(d=b.j,b=0,g=d.length;b<g;b++)if(m=d[b],m.q){var n=m.q.Pt;n>=this.Z.length&&(n=this.Z.length-1);m.q=this.Z[n];-1===m.q.j.indexOf(m)&&m.q.j.push(m);m.q.dh=!0}if(!l)for(a=0,c=this.Z.length;a<c;++a)this.Z[a].j.sort(r);G(k);this.Nx();a=0;for(c=this.Z.length;a<c;a++)m=this.Z[a],m.Yx(),m.vn();d=!1;if(!this.xh){for(u in this.Of)if(this.Of.hasOwnProperty(u)&&(b=this.b.Bh(parseInt(u,10)))&&!b.S&&this.b.Iq(b)){g=this.Of[u];
a=0;for(c=g.length;a<c;a++){m=null;if(b.za.Cf&&(m=this.Al(g[a].w.l),!m))continue;m=this.b.wf(b.pd,m,!1,0,0,!0);this.b.Yl(m,g[a]);d=!0;k.push(m)}G(g)}a=0;for(c=this.Z.length;a<c;a++)this.Z[a].j.sort(r),this.Z[a].dh=!0}d&&(this.b.Yb(),this.b.pu());for(a=0;a<k.length;a++)if(m=k[a],m.type.Rb)for(c=m.cj(),b=0,g=m.type.Lc.length;b<g;b++)u=m.type.Lc[b],m.type!==u&&(u.j.length>c?m.siblings.push(u.j[c]):u.pd&&(d=this.b.wf(u.pd,m.q,!0,m.x,m.y,!0),this.b.Yb(),u.tn(),m.siblings.push(d),k.push(d)));a=0;for(c=
this.Bf.length;a<c;a++)m=this.Bf[a],b=this.b.F[m[1]],b.Rb||this.b.wf(this.Bf[a],null,!0);this.b.hg=null;this.b.Yb();if(this.b.Ta&&!this.b.Ka)for(a=0,c=this.b.F.length;a<c;a++)u=this.b.F[a],!u.S&&u.j.length&&u.Up&&u.Up(this.b.Ta);if(this.b.lj)Ga(this.b.pl,k);else for(a=0,c=k.length;a<c;a++)m=k[a],this.b.trigger(Object.getPrototypeOf(m.type.za).k.Yf,m);G(k);this.b.lj||this.b.trigger(W.prototype.k.hr,null);this.xh=!1};d.prototype.Xx=function(){var a,b,c,g,d;b=a=0;for(c=this.Bf.length;a<c;a++)g=this.Bf[a],
d=this.b.F[g[1]],d.global?d.Rb||this.b.wf(g,null,!0):(this.Bf[b]=g,b++);Fa(this.Bf,b)};d.prototype.zB=function(){this.b.lj||this.b.trigger(W.prototype.k.yw,null);this.b.Vo=!0;G(this.b.we.Jc);var a,b,c,g,d,k;if(!this.xh)for(a=0,b=this.Z.length;a<b;a++)for(this.Z[a].Mq(),d=this.Z[a].j,c=0,g=d.length;c<g;c++)k=d[c],k.type.global||this.b.Iq(k.type)&&this.qB(k);a=0;for(b=this.Z.length;a<b;a++){d=this.Z[a].j;c=0;for(g=d.length;c<g;c++)k=d[c],k.type.global||this.b.$d(k);this.b.Yb();G(d);this.Z[a].dh=!0}a=
0;for(b=this.b.F.length;a<b;a++)if(d=this.b.F[a],!(d.global||d.za.Cf||d.za.$m||d.S)){c=0;for(g=d.j.length;c<g;c++)this.b.$d(d.j[c]);this.b.Yb()}l=!1;this.b.Vo=!1};new va(0,0,0,0);d.prototype.rd=function(a){var b,c=a,g=!1,d=!this.b.Yc;d&&(this.b.Wl||(this.b.Wl=document.createElement("canvas"),b=this.b.Wl,b.width=this.b.P,b.height=this.b.O,this.b.it=b.getContext("2d"),g=!0),b=this.b.Wl,c=this.b.it,b.width!==this.b.P&&(b.width=this.b.P,g=!0),b.height!==this.b.O&&(b.height=this.b.O,g=!0),g&&this.b.Tm(c,
this.b.Pa));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.Xr&&!this.Is()&&c.clearRect(0,0,this.b.P,this.b.O);var l,k,g=0;for(l=this.Z.length;g<l;g++)k=this.Z[g],k.visible&&0<k.opacity&&11!==k.Zb&&(k.j.length||!k.Xd)?k.rd(c):k.vn();d&&a.drawImage(b,0,0,this.b.width,this.b.height)};d.prototype.qh=function(a){a.xu(!0);this.b.mb||(this.b.mb=a.Xc(this.b.P,this.b.O,this.b.Pa));if(this.b.mb.fg!==this.b.P||this.b.mb.eg!==this.b.O)a.deleteTexture(this.b.mb),this.b.mb=a.Xc(this.b.P,this.b.O,
this.b.Pa);a.xd(this.b.mb);this.b.Yc||a.Tg(this.b.P,this.b.O);var b,c;for(b=this.Z.length-1;0<=b;--b)c=this.Z[b],c.visible&&1===c.opacity&&c.Ye&&0===c.Zb&&(c.j.length||!c.Xd)?c.qh(a):c.vn();a.xu(!1)};d.prototype.vc=function(a){var b=0<this.ua.length||this.b.qi||!this.b.Yc||this.b.Ja;if(b){this.b.mb||(this.b.mb=a.Xc(this.b.P,this.b.O,this.b.Pa));if(this.b.mb.fg!==this.b.P||this.b.mb.eg!==this.b.O)a.deleteTexture(this.b.mb),this.b.mb=a.Xc(this.b.P,this.b.O,this.b.Pa);a.xd(this.b.mb);this.b.Yc||a.Tg(this.b.P,
this.b.O)}else this.b.mb&&(a.xd(null),a.deleteTexture(this.b.mb),this.b.mb=null);this.b.Xr&&!this.Is()&&a.clear(0,0,0,0);var c,g,d;c=0;for(g=this.Z.length;c<g;c++)d=this.Z[c],d.visible&&0<d.opacity&&(d.j.length||!d.Xd)?d.vc(a):d.vn();b&&(0===this.ua.length||1===this.ua.length&&this.b.Yc?(1===this.ua.length?(b=this.ua[0].index,a.Ec(this.ua[0].qb),a.ki(null,1/this.b.P,1/this.b.O,0,0,1,1,this.scale,this.m,0,0,this.b.P/2,this.b.O/2,this.b.yb.M,this.Ua[b]),a.Im(this.ua[0].qb)&&(this.b.ba=!0)):a.Ec(0),
this.b.Yc||a.Tg(this.b.width,this.b.height),a.xd(null),a.vu(!1),a.Sg(1),a.Tc(this.b.mb),a.tu(),a.wd(),a.jd(),b=this.b.width/2,c=this.b.height/2,a.ei(-b,c,b,c,b,-c,-b,-c),a.Tc(null),a.vu(!0)):this.bq(a,null,null,null))};d.prototype.bj=function(){return 0<this.ua.length||this.b.qi||!this.b.Yc||this.b.Ja?this.b.mb:null};d.prototype.Gs=function(){var a=this.Z[0].xc(),b,c,g;b=1;for(c=this.Z.length;b<c;b++)g=this.Z[b],(0!==g.zc||0!==g.Ac)&&g.xc()<a&&(a=g.xc());return a};d.prototype.kq=function(a){if(!this.Zu){var b=
1/this.Gs()*this.b.P/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ba=!0)};d.prototype.lq=function(a){if(!this.Zu){var b=1/this.Gs()*this.b.O/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ba=!0)};d.prototype.Nx=function(){this.kq(this.scrollX);this.lq(this.scrollY)};d.prototype.bq=function(a,b,c,g){var d=c?c.ua:b?b.ua:this.ua,l=1,k=0,n=0,t=0,m=this.b.P,p=this.b.O;c?(l=c.q.xc(),k=c.q.wb(),n=c.q.Ca,t=c.q.Da,m=c.q.Ha,
p=c.q.Ga):b&&(l=b.xc(),k=b.wb(),n=b.Ca,t=b.Da,m=b.Ha,p=b.Ga);var x=this.b.vo,r,q,v,F,I=0,V=1,S,K,B=this.b.P,R=this.b.O,la=B/2,ia=R/2,E=b?b.gi:this.gi,w=b?b.aq:this.aq,z=0,D=0,J=0,H=0,T=B,ba=B,M=R,ma=R,ca=v=0;F=c?c.q.wb():0;if(c){r=0;for(q=d.length;r<q;r++)v+=a.Gz(d[r].qb),ca+=a.Hz(d[r].qb);H=c.Ea;z=b.Oa(H.left,H.top,!0,!0);J=b.Oa(H.left,H.top,!1,!0);T=b.Oa(H.right,H.bottom,!0,!0);M=b.Oa(H.right,H.bottom,!1,!0);0!==F&&(r=b.Oa(H.right,H.top,!0,!0),q=b.Oa(H.right,H.top,!1,!0),D=b.Oa(H.left,H.bottom,
!0,!0),H=b.Oa(H.left,H.bottom,!1,!0),F=Math.min(z,T,r,D),T=Math.max(z,T,r,D),z=F,F=Math.min(J,M,q,H),M=Math.max(J,M,q,H),J=F);z-=v;J-=ca;T+=v;M+=ca;w.left=z/B;w.top=1-J/R;w.right=T/B;w.bottom=1-M/R;D=z=C(z);H=J=C(J);ba=T=ta(T);ma=M=ta(M);D-=v;H-=ca;ba+=v;ma+=ca;0>z&&(z=0);0>J&&(J=0);T>B&&(T=B);M>R&&(M=R);0>D&&(D=0);0>H&&(H=0);ba>B&&(ba=B);ma>R&&(ma=R);E.left=z/B;E.top=1-J/R;E.right=T/B;E.bottom=1-M/R}else E.left=w.left=0,E.top=w.top=0,E.right=w.right=1,E.bottom=w.bottom=1;ca=c&&(a.Tj(d[0].qb)||0!==
v||0!==ca||1!==c.opacity||c.type.za.Kt)||b&&!c&&1!==b.opacity;a.tu();if(ca){x[I]||(x[I]=a.Xc(B,R,this.b.Pa));if(x[I].fg!==B||x[I].eg!==R)a.deleteTexture(x[I]),x[I]=a.Xc(B,R,this.b.Pa);a.Ec(0);a.xd(x[I]);K=ma-H;a.clearRect(D,R-H-K,ba-D,K);c?c.vc(a):(a.Tc(this.b.zb),a.Sg(b.opacity),a.wd(),a.translate(-la,-ia),a.jd(),a.Qf(z,M,T,M,T,J,z,J,E));w.left=w.top=0;w.right=w.bottom=1;c&&(F=E.top,E.top=E.bottom,E.bottom=F);I=1;V=0}a.Sg(1);v=d.length-1;var La=a.Wp(d[v].qb)||!b&&!c&&!this.b.Yc;r=F=0;for(q=d.length;r<
q;r++){x[I]||(x[I]=a.Xc(B,R,this.b.Pa));if(x[I].fg!==B||x[I].eg!==R)a.deleteTexture(x[I]),x[I]=a.Xc(B,R,this.b.Pa);a.Ec(d[r].qb);F=d[r].index;a.Im(d[r].qb)&&(this.b.ba=!0);0!=r||ca?(a.ki(g,1/B,1/R,w.left,w.top,w.right,w.bottom,l,k,n,t,(n+m)/2,(t+p)/2,this.b.yb.M,c?c.Ua[F]:b?b.Ua[F]:this.Ua[F]),a.Tc(null),r!==v||La?(a.xd(x[I]),K=ma-H,S=R-H-K,a.clearRect(D,S,ba-D,K)):(c?a.Tf(c.ec,c.ac):b&&a.Tf(b.ec,b.ac),a.xd(g)),a.Tc(x[V]),a.wd(),a.translate(-la,-ia),a.jd(),a.Qf(z,M,T,M,T,J,z,J,E),r!==v||La||a.Tc(null)):
(a.xd(x[I]),K=ma-H,S=R-H-K,a.clearRect(D,S,ba-D,K),c?(c.Hb&&c.Hb.Ma?(S=c.Hb.Ma,V=1/S.width,S=1/S.height):(V=1/c.width,S=1/c.height),a.ki(g,V,S,w.left,w.top,w.right,w.bottom,l,k,n,t,(n+m)/2,(t+p)/2,this.b.yb.M,c.Ua[F]),c.vc(a)):(a.ki(g,1/B,1/R,0,0,1,1,l,k,n,t,(n+m)/2,(t+p)/2,this.b.yb.M,b?b.Ua[F]:this.Ua[F]),a.Tc(b?this.b.zb:this.b.mb),a.wd(),a.translate(-la,-ia),a.jd(),a.Qf(z,M,T,M,T,J,z,J,E)),w.left=w.top=0,w.right=w.bottom=1,c&&!La&&(F=M,M=J,J=F));I=0===I?1:0;V=0===I?1:0}La&&(a.Ec(0),c?a.Tf(c.ec,
c.ac):b?a.Tf(b.ec,b.ac):this.b.Yc||(a.Tg(this.b.width,this.b.height),la=this.b.width/2,ia=this.b.height/2,J=z=0,T=this.b.width,M=this.b.height),a.xd(g),a.Tc(x[V]),a.wd(),a.translate(-la,-ia),a.jd(),c&&1===d.length&&!ca?a.Qf(z,J,T,J,T,M,z,M,E):a.Qf(z,M,T,M,T,J,z,J,E),a.Tc(null))};d.prototype.Al=function(a){var b,c;b=0;for(c=this.Z.length;b<c;b++)if(this.Z[b].ea===a)return this.Z[b];return null};d.prototype.Qa=function(){var a,b,c,g={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.m,w:this.width,
h:this.height,fv:this.xh,persist:this.Of,fx:[],layers:{}};a=0;for(b=this.Y.length;a<b;a++)c=this.Y[a],g.fx.push({name:c.name,active:c.Gb,params:this.Ua[c.index]});a=0;for(b=this.Z.length;a<b;a++)c=this.Z[a],g.layers[c.ea.toString()]=c.Qa();return g};d.prototype.bb=function(a){var b,c,g,d;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.m=a.a;this.width=a.w;this.height=a.h;this.Of=a.persist;"undefined"!==typeof a.fv&&(this.xh=a.fv);var l=a.fx;b=0;for(c=l.length;b<c;b++)if(g=this.yo(l[b].name))g.Gb=
l[b].active,this.Ua[g.index]=l[b].params;this.Yd();b=a.layers;for(d in b)b.hasOwnProperty(d)&&(a=this.Al(parseInt(d,10)))&&a.bb(b[d])};Nb=d;q.prototype.Yd=function(){G(this.ua);this.Ye=!0;var a,b,c;a=0;for(b=this.Y.length;a<b;a++)c=this.Y[a],c.Gb&&(this.ua.push(c),c.vd||(this.Ye=!1))};q.prototype.yo=function(a){var b,c,g;b=0;for(c=this.Y.length;b<c;b++)if(g=this.Y[b],g.name===a)return g;return null};q.prototype.Yx=function(){var a,b,c,g,d,l;b=a=0;for(c=this.$c.length;a<c;a++){g=this.$c[a];d=this.b.F[g[1]];
l=this.b.Iq(d);d=!0;if(!l||this.ab.xh){g=this.b.wf(g,this,!0);if(!g)continue;k.push(g);g.type.global&&(d=!1,this.Ni.push(g.uid))}d&&(this.$c[b]=this.$c[a],b++)}this.$c.length=b;this.b.Yb();!this.b.H&&this.Y.length&&(this.Zb=this.Ey);this.Li=lb(this.Zb);this.b.G&&mb(this,this.Zb,this.b.G);this.Ud=!0};q.prototype.hi=function(a,b){var c=Ia(this.j,a);0>c||(b&&this.kd&&a.Cc&&a.Cc.right>=a.Cc.left&&(a.xa(),this.Vb.update(a,a.Cc,null),a.Cc.set(0,0,-1,-1)),c===this.j.length-1?this.j.pop():(Da(this.j,c),this.ck(c)),
this.Ud=!0)};q.prototype.Gi=function(a,b){a.Zd=this.j.length;this.j.push(a);b&&this.kd&&a.Cc&&a.D();this.Ud=!0};q.prototype.WA=function(a){this.j.unshift(a);this.ck(0)};q.prototype.yA=function(a,b,c){var g=a.ke();b=b.ke();Da(this.j,g);g<b&&b--;c&&b++;b===this.j.length?this.j.push(a):this.j.splice(b,0,a);this.ck(g<b?g:b)};q.prototype.ck=function(a){-1===this.jf?this.jf=a:a<this.jf&&(this.jf=a);this.Ud=this.dh=!0};q.prototype.Mq=function(){if(this.dh){-1===this.jf&&(this.jf=0);var a,b,c;if(this.kd)for(a=
this.jf,b=this.j.length;a<b;++a)c=this.j[a],c.Zd=a,this.Vb.uA(c.Cc);else for(a=this.jf,b=this.j.length;a<b;++a)this.j[a].Zd=a;this.dh=!1;this.jf=-1}};q.prototype.xc=function(a){return this.Dz()*(this.b.Yc||a?this.b.Hi:1)};q.prototype.Dz=function(){return(this.scale*this.ab.scale-1)*this.gc+1};q.prototype.wb=function(){return this.Fe?0:Oa(this.ab.m+this.m)};var a=[],b=[],c=[];q.prototype.Co=function(){this.Mq();this.Vb.Lm(this.Ca,this.Da,this.Ha,this.Ga,c);if(!c.length)return p();if(1===c.length){var a=
p();Ga(a,c[0]);G(c);return a}for(var h=!0;1<c.length;){for(var a=c,f=void 0,g=void 0,d=void 0,l=void 0,k=void 0,f=0,g=a.length;f<g-1;f+=2){var d=a[f],l=a[f+1],k=p(),n=d,t=l,r=k,q=0,x=0,L=0,A=n.length,v=t.length,F=void 0,I=void 0;for(r.length=A+v;q<A&&x<v;++L)F=n[q],I=t[x],F.Zd<I.Zd?(r[L]=F,++q):(r[L]=I,++x);for(;q<A;++q,++L)r[L]=n[q];for(;x<v;++x,++L)r[L]=t[x];h||(m(d),m(l));b.push(k)}1===g%2&&(h?(d=p(),Ga(d,a[g-1]),b.push(d)):b.push(a[g-1]));Ga(a,b);G(b);h=!1}a=c[0];G(c);return a};q.prototype.rd=
function(a){this.ue=this.ul||1!==this.opacity||0!==this.Zb;var b=this.b.canvas,c=a,g=!1;this.ue&&(this.b.Vl||(this.b.Vl=document.createElement("canvas"),b=this.b.Vl,b.width=this.b.P,b.height=this.b.O,this.b.ht=b.getContext("2d"),g=!0),b=this.b.Vl,c=this.b.ht,b.width!==this.b.P&&(b.width=this.b.P,g=!0),b.height!==this.b.O&&(b.height=this.b.O,g=!0),g&&this.b.Tm(c,this.b.Pa),this.Xd&&c.clearRect(0,0,this.b.P,this.b.O));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Xd||(c.fillStyle="rgb("+
this.Fd[0]+","+this.Fd[1]+","+this.Fd[2]+")",c.fillRect(0,0,this.b.P,this.b.O));c.save();this.Fe=!0;var g=this.sb(0,0,!0,!0),d=this.sb(0,0,!1,!0);this.Fe=!1;this.b.Pd&&(g=Math.round(g),d=Math.round(d));this.Om(g,d,c);var l=this.xc();c.scale(l,l);c.translate(-g,-d);this.kd?(this.Nb.left=this.Vb.nc(this.Ca),this.Nb.top=this.Vb.oc(this.Da),this.Nb.right=this.Vb.nc(this.Ha),this.Nb.bottom=this.Vb.oc(this.Ga),this.Ud||!this.Nb.Ri(this.Th)?(m(this.Qe),g=this.Co(),this.Ud=!1,this.Th.kh(this.Nb)):g=this.Qe):
g=this.j;for(var k,n=null,d=0,l=g.length;d<l;++d)k=g[d],k!==n&&(this.zy(k,c),n=k);this.kd&&(this.Qe=g);c.restore();this.ue&&(a.globalCompositeOperation=this.Li,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};q.prototype.zy=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.xa();var c=a.Ea;c.right<this.Ca||c.bottom<this.Da||c.left>this.Ha||c.top>this.Ga||(b.globalCompositeOperation=a.Li,a.rd(b))}};q.prototype.vn=function(){this.Fe=!0;var a=this.sb(0,0,!0,!0),b=this.sb(0,0,!1,!0);this.Fe=!1;this.b.Pd&&
(a=Math.round(a),b=Math.round(b));this.Om(a,b,null)};q.prototype.Om=function(a,b,c){var g=this.xc();this.Ca=a;this.Da=b;this.Ha=a+1/g*this.b.P;this.Ga=b+1/g*this.b.O;this.Ca>this.Ha&&(a=this.Ca,this.Ca=this.Ha,this.Ha=a);this.Da>this.Ga&&(a=this.Da,this.Da=this.Ga,this.Ga=a);a=this.wb();0!==a&&(c&&(c.translate(this.b.P/2,this.b.O/2),c.rotate(-a),c.translate(this.b.P/-2,this.b.O/-2)),this.df.set(this.Ca,this.Da,this.Ha,this.Ga),this.df.offset((this.Ca+this.Ha)/-2,(this.Da+this.Ga)/-2),this.Uu.Eu(this.df,
a),this.Uu.Or(this.df),this.df.offset((this.Ca+this.Ha)/2,(this.Da+this.Ga)/2),this.Ca=this.df.left,this.Da=this.df.top,this.Ha=this.df.right,this.Ga=this.df.bottom)};q.prototype.qh=function(a){if(this.ue=this.ul){this.b.zb||(this.b.zb=a.Xc(this.b.P,this.b.O,this.b.Pa));if(this.b.zb.fg!==this.b.P||this.b.zb.eg!==this.b.O)a.deleteTexture(this.b.zb),this.b.zb=a.Xc(this.b.P,this.b.O,this.b.Pa);a.xd(this.b.zb)}this.Fe=!0;var b=this.sb(0,0,!0,!0),c=this.sb(0,0,!1,!0);this.Fe=!1;this.b.Pd&&(b=Math.round(b),
c=Math.round(c));this.Om(b,c,null);b=this.xc();a.wd();a.scale(b,b);a.Pm(-this.wb());a.translate((this.Ca+this.Ha)/-2,(this.Da+this.Ga)/-2);a.jd();this.kd?(this.Nb.left=this.Vb.nc(this.Ca),this.Nb.top=this.Vb.oc(this.Da),this.Nb.right=this.Vb.nc(this.Ha),this.Nb.bottom=this.Vb.oc(this.Ga),this.Ud||!this.Nb.Ri(this.Th)?(m(this.Qe),b=this.Co(),this.Ud=!1,this.Th.kh(this.Nb)):b=this.Qe):b=this.j;for(var g,d=null,c=b.length-1;0<=c;--c)g=b[c],g!==d&&(this.By(b[c],a),d=g);this.kd&&(this.Qe=b);this.Xd||(this.Yn=
this.b.mg++,a.Um(this.Yn),a.uu(1,1,1),a.zs(),a.hB())};q.prototype.vc=function(a){var b=0,c=0;if(this.ue=this.ul||1!==this.opacity||0<this.ua.length||0!==this.Zb){this.b.zb||(this.b.zb=a.Xc(this.b.P,this.b.O,this.b.Pa));if(this.b.zb.fg!==this.b.P||this.b.zb.eg!==this.b.O)a.deleteTexture(this.b.zb),this.b.zb=a.Xc(this.b.P,this.b.O,this.b.Pa);a.xd(this.b.zb);this.Xd&&a.clear(0,0,0,0)}this.Xd||(this.b.Ja?(a.Um(this.Yn),a.uu(this.Fd[0]/255,this.Fd[1]/255,this.Fd[2]/255),a.zs(),a.vB()):a.clear(this.Fd[0]/
255,this.Fd[1]/255,this.Fd[2]/255,1));this.Fe=!0;var g=this.sb(0,0,!0,!0),b=this.sb(0,0,!1,!0);this.Fe=!1;this.b.Pd&&(g=Math.round(g),b=Math.round(b));this.Om(g,b,null);g=this.xc();a.wd();a.scale(g,g);a.Pm(-this.wb());a.translate((this.Ca+this.Ha)/-2,(this.Da+this.Ga)/-2);a.jd();this.kd?(this.Nb.left=this.Vb.nc(this.Ca),this.Nb.top=this.Vb.oc(this.Da),this.Nb.right=this.Vb.nc(this.Ha),this.Nb.bottom=this.Vb.oc(this.Ga),this.Ud||!this.Nb.Ri(this.Th)?(m(this.Qe),b=this.Co(),this.Ud=!1,this.Th.kh(this.Nb)):
b=this.Qe):b=this.j;var d,l,k=null,c=0;for(d=b.length;c<d;++c)l=b[c],l!==k&&(this.Ay(b[c],a),k=l);this.kd&&(this.Qe=b);this.ue&&(b=this.ua.length?this.ua[0].qb:0,c=this.ua.length?this.ua[0].index:0,0===this.ua.length||1===this.ua.length&&!a.Wp(b)&&1===this.opacity?(1===this.ua.length?(a.Ec(b),a.ki(this.ab.bj(),1/this.b.P,1/this.b.O,0,0,1,1,g,this.wb(),this.Ca,this.Da,(this.Ca+this.Ha)/2,(this.Da+this.Ga)/2,this.b.yb.M,this.Ua[c]),a.Im(b)&&(this.b.ba=!0)):a.Ec(0),a.xd(this.ab.bj()),a.Sg(this.opacity),
a.Tc(this.b.zb),a.Tf(this.ec,this.ac),a.wd(),a.jd(),g=this.b.P/2,b=this.b.O/2,a.ei(-g,b,g,b,g,-b,-g,-b),a.Tc(null)):this.ab.bq(a,this,null,this.ab.bj()))};q.prototype.Ay=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.xa();var c=a.Ea;c.right<this.Ca||c.bottom<this.Da||c.left>this.Ha||c.top>this.Ga||(b.Um(a.mg),a.iv?this.Cy(a,b):(b.Ec(0),b.Tf(a.ec,a.ac),a.vc(b)))}};q.prototype.By=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.xa();var c=a.Ea;c.right<this.Ca||c.bottom<this.Da||c.left>
this.Ha||c.top>this.Ga||(a.mg=this.b.mg++,0===a.Zb&&1===a.opacity&&a.Ye&&a.qh&&(b.Um(a.mg),a.qh(b)))}};q.prototype.Cy=function(a,b){var c=a.ua[0].qb,g=a.ua[0].index,d=this.xc();if(1!==a.ua.length||b.Wp(c)||b.YA(c)||(a.m||a.q.wb())&&b.Tj(c)||1!==a.opacity||a.type.za.Kt)this.ab.bq(b,this,a,this.ue?this.b.zb:this.ab.bj()),b.wd(),b.scale(d,d),b.Pm(-this.wb()),b.translate((this.Ca+this.Ha)/-2,(this.Da+this.Ga)/-2),b.jd();else{b.Ec(c);b.Tf(a.ec,a.ac);b.Im(c)&&(this.b.ba=!0);var l=0,k=0,n=0,t=0;b.Tj(c)&&
(t=a.Ea,l=this.Oa(t.left,t.top,!0,!0),k=this.Oa(t.left,t.top,!1,!0),n=this.Oa(t.right,t.bottom,!0,!0),t=this.Oa(t.right,t.bottom,!1,!0),l=l/windowWidth,k=1-k/windowHeight,n=n/windowWidth,t=1-t/windowHeight);var m;a.Hb&&a.Hb.Ma?(m=a.Hb.Ma,c=1/m.width,m=1/m.height):(c=1/a.width,m=1/a.height);b.ki(this.ue?this.b.zb:this.ab.bj(),c,m,l,k,n,t,d,this.wb(),this.Ca,this.Da,(this.Ca+this.Ha)/2,(this.Da+this.Ga)/2,this.b.yb.M,a.Ua[g]);a.vc(b)}};q.prototype.sb=function(a,b,c,g){var d=this.b.devicePixelRatio;
this.b.Ag&&(a*=d,b*=d);var d=this.b.eu,l=this.b.fu,d=(this.ab.scrollX-d)*this.zc+d,l=(this.ab.scrollY-l)*this.Ac+l,k=d,n=l,t=1/this.xc(!g);g?(k-=this.b.P*t/2,n-=this.b.O*t/2):(k-=this.b.width*t/2,n-=this.b.height*t/2);k+=a*t;n+=b*t;b=this.wb();0!==b&&(k-=d,n-=l,a=Math.cos(b),b=Math.sin(b),g=k*a-n*b,n=n*a+k*b,k=g+d,n+=l);return c?k:n};q.prototype.Oa=function(a,b,c,g){var d=this.b.eu,l=this.b.fu,k=(this.ab.scrollX-d)*this.zc+d,n=(this.ab.scrollY-l)*this.Ac+l,l=k,d=n,t=this.wb();if(0!==t){a-=k;b-=n;
var m=Math.cos(-t),t=Math.sin(-t),p=a*m-b*t;b=b*m+a*t;a=p+k;b+=n}k=1/this.xc(!g);g?(l-=this.b.P*k/2,d-=this.b.O*k/2):(l-=this.b.width*k/2,d-=this.b.height*k/2);l=(a-l)/k;d=(b-d)/k;a=this.b.devicePixelRatio;this.b.Ag&&!g&&(l/=a,d/=a);return c?l:d};q.prototype.Qa=function(){var a,b,c,g={s:this.scale,a:this.m,vl:this.Ca,vt:this.Da,vr:this.Ha,vb:this.Ga,v:this.visible,bc:this.Fd,t:this.Xd,px:this.zc,py:this.Ac,o:this.opacity,zr:this.gc,fx:[],cg:this.Ni,instances:[]};a=0;for(b=this.Y.length;a<b;a++)c=
this.Y[a],g.fx.push({name:c.name,active:c.Gb,params:this.Ua[c.index]});return g};q.prototype.bb=function(a){var b,c,g;this.scale=a.s;this.m=a.a;this.Ca=a.vl;this.Da=a.vt;this.Ha=a.vr;this.Ga=a.vb;this.visible=a.v;this.Fd=a.bc;this.Xd=a.t;this.zc=a.px;this.Ac=a.py;this.opacity=a.o;this.gc=a.zr;this.Ni=a.cg||[];Ga(this.$c,this.Mu);var d=new ea;b=0;for(g=this.Ni.length;b<g;++b)d.add(this.Ni[b]);c=b=0;for(g=this.$c.length;b<g;++b)d.contains(this.$c[b][2])||(this.$c[c]=this.$c[b],++c);Fa(this.$c,c);c=
a.fx;b=0;for(g=c.length;b<g;b++)if(a=this.yo(c[b].name))a.Gb=c[b].active,this.Ua[a.index]=c[b].params;this.Yd();this.j.sort(r);this.dh=!0};ac=q})();
(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 r(a,b){return a.index-b.index}function q(a){var b,c,e,g;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(r);a.length>=N.length&&(N.length=a.length+1);N[a.length]||(N[a.length]=[]);g=N[a.length];b=0;for(c=g.length;b<c;b++)if(e=g[b],d(a,e))return e;g.push(a);return a}
function p(a,b){this.b=a;this.Xu={};this.ts={};this.Ko=!1;this.Ks=new ea;this.eo=[];this.On=[];this.name=b[0];var c=b[1];this.yf=[];var e,g;e=0;for(g=c.length;e<g;e++)this.Ms(c[e],null,this.yf)}function m(a){this.type=a;this.j=[];this.fa=[];this.da=!0}function k(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Fa=[];this.Vf=[];this.Js=this.nn=this.Dq=this.Il=this.group=this.tq=!1;this.tb=[];this.md=[];this.zd=[];this.ej="";this.ug=this.Il=this.group=!1;this.Tk=null;c[1]&&(this.ej=c[1][1].toLowerCase(),
this.group=!0,this.Il=!!c[1][0],this.Tk=[],this.ug=this.Il,this.b.qf.push(this),this.b.Dh[this.ej]=this);this.ed=c[2];this.ea=c[4];this.group||(this.b.Nr[this.ea.toString()]=this);var e=c[5];a=0;for(b=e.length;a<b;a++){var g=new bc(this,e[a]);g.index=a;this.tb.push(g);this.Jr(g.type)}e=c[6];a=0;for(b=e.length;a<b;a++)g=new cc(this,e[a]),g.index=a,this.md.push(g);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Ms(c[a],this,this.zd);this.Rl=!1;this.tb.length&&(this.Rl=null==this.tb[0].type&&
this.tb[0].Ob==W.prototype.k.Uq)}function l(a,b){var c,e,g;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Rb))for(c=0,e=a.Lc.length;c<e;c++)g=a.Lc[c],a!==g&&-1===b.indexOf(g)&&b.push(g)}function a(a,b){this.Vc=a;this.sheet=a.sheet;this.b=a.b;this.aa=[];this.Wa=[];this.J={};this.index=-1;this.Ei=!1;this.Ob=this.b.kf(b[1]);this.trigger=0<b[3];this.rs=2===b[3];this.oe=b[4];this.Jl=b[5];this.qA=b[6];this.ea=b[7];this.b.uf[this.ea.toString()]=this;-1===b[0]?(this.type=null,this.pb=this.hq,this.dg=null,this.Gd=
-1):(this.type=this.b.F[b[0]],this.pb=this.qA?this.oB:this.gq,b[2]?(this.dg=this.type.yl(b[2]),this.Gd=this.type.xo(b[2])):(this.dg=null,this.Gd=-1),this.Vc.parent&&this.Vc.parent.Vm());this.rs&&(this.pb=this.pB);if(10===b.length){var c,e,g=b[9];c=0;for(e=g.length;c<e;c++){var d=new dc(this,g[c]);this.aa.push(d)}this.Wa.length=g.length}}function b(a,b){this.Vc=a;this.sheet=a.sheet;this.b=a.b;this.aa=[];this.Wa=[];this.J={};this.index=-1;this.Ei=!1;this.Ob=this.b.kf(b[1]);-1===b[0]?(this.type=null,
this.pb=this.hq,this.dg=null,this.Gd=-1):(this.type=this.b.F[b[0]],this.pb=this.gq,b[2]?(this.dg=this.type.yl(b[2]),this.Gd=this.type.xo(b[2])):(this.dg=null,this.Gd=-1));this.ea=b[3];this.b.of[this.ea.toString()]=this;if(6===b.length){var c,e,g=b[5];c=0;for(e=g.length;c<e;c++){var d=new dc(this,g[c]);this.aa.push(d)}this.Wa.length=g.length}}function c(){u++;O.length===u&&O.push(new ec);return O[u]}function e(a,b){this.La=a;this.Vc=a.Vc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.ie=null;this.bf=
0;this.get=null;this.Zr=0;this.ab=null;this.key=0;this.object=null;this.index=0;this.qk=this.Wg=this.qk=this.Wg=this.ws=this.pg=this.rk=null;this.Bd=!1;var c,e,g;switch(b[0]){case 0:case 7:this.ie=new fc(this,b[1]);this.bf=0;this.get=this.Mz;break;case 1:this.ie=new fc(this,b[1]);this.bf=0;this.get=this.Nz;break;case 5:this.ie=new fc(this,b[1]);this.bf=0;this.get=this.Rz;break;case 3:case 8:this.Zr=b[1];this.get=this.Kz;break;case 6:this.ab=this.b.op[b[1]];this.get=this.Sz;break;case 9:this.key=b[1];
this.get=this.Qz;break;case 4:this.object=this.b.F[b[1]];this.get=this.Tz;this.Vc.Jr(this.object);this.La instanceof cc?this.Vc.Vm():this.Vc.parent&&this.Vc.parent.Vm();break;case 10:this.index=b[1];a.type&&a.type.S?(this.get=this.Oz,this.Bd=!0):this.get=this.Pz;break;case 11:this.rk=b[1];this.pg=null;this.get=this.Lz;break;case 2:case 12:this.ws=b[1];this.get=this.Jz;break;case 13:for(this.get=this.Uz,this.Wg=[],this.qk=[],c=1,e=b.length;c<e;c++)g=new dc(this.La,b[c]),this.Wg.push(g),this.qk.push(0)}}
function h(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Fa=[];this.name=c[1];this.sk=c[2];this.Hl=c[3];this.sj=!!c[4];this.Pl=!!c[5];this.ea=c[6];this.b.si[this.ea.toString()]=this;this.data=this.Hl;this.parent?(this.Jg=this.sj||this.Pl?-1:this.b.xB++,this.b.Hx.push(this)):(this.Jg=-1,this.b.Nn.push(this))}function f(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Fa=[];this.gj=null;this.$z=c[1];this.Gb=!0}function g(){this.Ou=[];this.reset(null)}var N=[];p.prototype.toString=function(){return this.name};
p.prototype.Ms=function(a,b,c){switch(a[0]){case 0:a=new gc(this,b,a);if(a.ed)for(c.push(a),c=0,b=a.tb.length;c<b;c++)a.tb[c].trigger&&this.Ns(a,c);else a.Xs()?this.Ns(a,0):c.push(a);break;case 1:a=new Yb(this,b,a);c.push(a);break;case 2:a=new hc(this,b,a),c.push(a)}};p.prototype.eb=function(){var a,b;a=0;for(b=this.yf.length;a<b;a++)this.yf[a].eb(a<b-1&&this.yf[a+1].Rl)};p.prototype.Kq=function(){G(this.eo);G(this.On);this.Ir(this);G(this.On)};p.prototype.Ir=function(a){var b,c,e,g,d=a.eo,h=a.On,
f=this.Ks.ff();b=0;for(c=f.length;b<c;++b)e=f[b],g=e.gj,!e.Gb||a===g||-1<h.indexOf(g)||(h.push(g),g.Ir(a),d.push(g))};p.prototype.pb=function(a){this.b.NC||(this.Ko=!0,a||(this.b.Zo=!0));var b,c;b=0;for(c=this.yf.length;b<c;b++){var e=this.yf[b];e.pb();this.b.Xn(e.Fa);this.b.Af&&this.b.Yb()}a||(this.b.Zo=!1)};p.prototype.Ns=function(a,b){a.ed||this.b.sn.push(a);var c,e,g=a.tb[b],d;g.type?d=g.type.name:d="system";var h=(c=g.rs)?this.ts:this.Xu;h[d]||(h[d]=[]);d=h[d];h=g.Ob;if(c){if(g.aa.length&&(g=
g.aa[0],1===g.type&&2===g.ie.type)){g=g.ie.value.toLowerCase();c=0;for(e=d.length;c<e;c++)if(d[c].method==h){c=d[c].Si;c[g]?c[g].push([a,b]):c[g]=[[a,b]];return}c={};c[g]=[[a,b]];d.push({method:h,Si:c})}}else{c=0;for(e=d.length;c<e;c++)if(d[c].method==h){d[c].Si.push([a,b]);return}Y&&h===Y.prototype.k.gh?d.unshift({method:h,Si:[[a,b]]}):d.push({method:h,Si:[[a,b]]})}};Ob=p;m.prototype.Jo=function(){return this.da?this.type.j.length:this.j.length};m.prototype.wc=function(){return this.da?this.type.j:
this.j};m.prototype.Rj=function(a){a&&(a.b.$a().gb.ed?(this.da&&(G(this.j),Ga(this.fa,a.type.j),this.da=!1),a=this.fa.indexOf(a),-1!==a&&(this.j.push(this.fa[a]),this.fa.splice(a,1))):(this.da=!1,G(this.j),this.j[0]=a))};ub=m;window._c2hh_="A9DC9C5674BE191C4BD10C2ED497C8E777925B1A";k.prototype.eb=function(a){var b,c=this.parent;if(this.group)for(this.nn=!0;c;){if(!c.group){this.nn=!1;break}c=c.parent}this.Dq=!this.Xs()&&(!this.parent||this.parent.group&&this.parent.nn);this.Js=!!a;this.Vf=this.Fa.slice(0);
for(c=this.parent;c;){a=0;for(b=c.Fa.length;a<b;a++)this.Dx(c.Fa[a]);c=c.parent}this.Fa=q(this.Fa);this.Vf=q(this.Vf);a=0;for(b=this.tb.length;a<b;a++)this.tb[a].eb();a=0;for(b=this.md.length;a<b;a++)this.md[a].eb();a=0;for(b=this.zd.length;a<b;a++)this.zd[a].eb(a<b-1&&this.zd[a+1].Rl)};k.prototype.ak=function(a){if(this.ug!==!!a){this.ug=!!a;var b;a=0;for(b=this.Tk.length;a<b;++a)this.Tk[a].bv();0<b&&this.b.pa.ng&&this.b.pa.ng.Kq()}};k.prototype.Jr=function(a){l(a,this.Fa)};k.prototype.Dx=function(a){l(a,
this.Vf)};k.prototype.Vm=function(){this.tq=!0;this.parent&&this.parent.Vm()};k.prototype.Xs=function(){return this.tb.length?this.tb[0].trigger:!1};k.prototype.pb=function(){var a,b,c=!1,e=this.b,g=this.b.$a();g.gb=this;var d=this.tb;this.Rl||(g.lo=!1);if(this.ed){0===d.length&&(c=!0);g.fb=0;for(a=d.length;g.fb<a;g.fb++)b=d[g.fb],b.trigger||(b=b.pb())&&(c=!0);(g.Dg=c)&&this.Qm()}else{g.fb=0;for(a=d.length;g.fb<a;g.fb++)if(b=d[g.fb].pb(),!b){g.Dg=!1;this.Dq&&e.Af&&e.Yb();return}g.Dg=!0;this.Qm()}this.Gy(g)};
k.prototype.Gy=function(a){a.Dg&&this.Js&&(a.lo=!0);this.Dq&&this.b.Af&&this.b.Yb()};k.prototype.mB=function(a){this.b.$a().gb=this;this.tb[a].pb()&&(this.Qm(),this.b.$a().Dg=!0)};k.prototype.Qm=function(){var a=this.b.$a(),b;a.pc=0;for(b=this.md.length;a.pc<b;a.pc++)if(this.md[a.pc].pb())return;this.su()};k.prototype.jB=function(){var a=this.b.$a(),b;for(b=this.md.length;a.pc<b;a.pc++)if(this.md[a.pc].pb())return;this.su()};k.prototype.su=function(){if(this.zd.length){var a,b,c,e,g=this.zd.length-
1;this.b.Jm(this);if(this.tq)for(a=0,b=this.zd.length;a<b;a++)c=this.zd[a],(e=!this.nn||!this.group&&a<g)&&this.b.Wj(c.Fa),c.pb(),e?this.b.Pf(c.Fa):this.b.Xn(c.Fa);else for(a=0,b=this.zd.length;a<b;a++)this.zd[a].pb();this.b.Fm()}};k.prototype.nB=function(){var a=this.b.$a();a.gb=this;var b=!1,c;a.fb=0;for(c=this.tb.length;a.fb<c;a.fb++)if(this.tb[a.fb].pb())b=!0;else if(!this.ed)return!1;return this.ed?b:!0};k.prototype.fq=function(){this.b.qg++;var a=this.b.$a().fb,b=this.b.Jm(this);if(!this.ed)for(b.fb=
a+1,a=this.tb.length;b.fb<a;b.fb++)if(!this.tb[b.fb].pb()){this.b.Fm();return}this.Qm();this.b.Fm()};k.prototype.gA=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.tb[b].type===a.type)return!1;return!0};gc=k;a.prototype.eb=function(){var a,b,c;a=0;for(b=this.aa.length;a<b;a++)c=this.aa[a],c.eb(),c.Bd&&(this.Ei=!0)};a.prototype.pB=function(){return!0};a.prototype.hq=function(){var a,b;a=0;for(b=this.aa.length;a<b;a++)this.Wa[a]=this.aa[a].get();return Ya(this.Ob.apply(this.b.we,
this.Wa),this.Jl)};a.prototype.oB=function(){var a,b;a=0;for(b=this.aa.length;a<b;a++)this.Wa[a]=this.aa[a].get();a=this.Ob.apply(this.dg?this.dg:this.type,this.Wa);this.type.Ed();return a};a.prototype.gq=function(){var a,b,c,e,g,d,h,f,l=this.type,k=l.W(),m=this.Vc.ed&&!this.trigger;b=0;var u=l.Rb,p=l.S,r=l.Ie,q=this.Gd,N=-1<q,O=this.Ei,E=this.aa,w=this.Wa,z=this.Jl,D=this.Ob,J;if(O)for(b=0,g=E.length;b<g;++b)d=E[b],d.Bd||(w[b]=d.get(0));else for(b=0,g=E.length;b<g;++b)w[b]=E[b].get(0);if(k.da){G(k.j);
G(k.fa);J=l.j;a=0;for(e=J.length;a<e;++a){f=J[a];if(O)for(b=0,g=E.length;b<g;++b)d=E[b],d.Bd&&(w[b]=d.get(a));N?(b=0,p&&(b=f.type.wh[r]),b=D.apply(f.T[q+b],w)):b=D.apply(f,w);(h=Ya(b,z))?k.j.push(f):m&&k.fa.push(f)}l.finish&&l.finish(!0);k.da=!1;l.Ed();return k.Jo()}c=0;J=(h=m&&!this.Vc.gA(this))?k.fa:k.j;var H=!1;a=0;for(e=J.length;a<e;++a){f=J[a];if(O)for(b=0,g=E.length;b<g;++b)d=E[b],d.Bd&&(w[b]=d.get(a));N?(b=0,p&&(b=f.type.wh[r]),b=D.apply(f.T[q+b],w)):b=D.apply(f,w);if(Ya(b,z))if(H=!0,h){if(k.j.push(f),
u)for(b=0,g=f.siblings.length;b<g;b++)d=f.siblings[b],d.type.W().j.push(d)}else{J[c]=f;if(u)for(b=0,g=f.siblings.length;b<g;b++)d=f.siblings[b],d.type.W().j[c]=d;c++}else if(h){J[c]=f;if(u)for(b=0,g=f.siblings.length;b<g;b++)d=f.siblings[b],d.type.W().fa[c]=d;c++}else if(m&&(k.fa.push(f),u))for(b=0,g=f.siblings.length;b<g;b++)d=f.siblings[b],d.type.W().fa.push(d)}Fa(J,c);if(u)for(p=l.Lc,a=0,e=p.length;a<e;a++)f=p[a].W(),h?Fa(f.fa,c):Fa(f.j,c);c=H;if(h&&!H)for(a=0,e=k.j.length;a<e;a++){f=k.j[a];if(O)for(b=
0,g=E.length;b<g;b++)d=E[b],d.Bd&&(w[b]=d.get(a));b=N?D.apply(f.T[q],w):D.apply(f,w);if(Ya(b,z)){H=!0;break}}l.finish&&l.finish(c||m);return m?H:k.Jo()};bc=a;b.prototype.eb=function(){var a,b,c;a=0;for(b=this.aa.length;a<b;a++)c=this.aa[a],c.eb(),c.Bd&&(this.Ei=!0)};b.prototype.hq=function(){var a=this.b,b,c,e=this.aa,g=this.Wa;b=0;for(c=e.length;b<c;++b)g[b]=e[b].get();return this.Ob.apply(a.we,g)};b.prototype.gq=function(){var a=this.type,b=this.Gd,c=a.Ie,e=this.Ei,g=this.aa,d=this.Wa,h=this.Ob,
f=a.W().wc(),a=a.S,l=-1<b,k,m,u,p,r,q;if(e)for(m=0,p=g.length;m<p;++m)r=g[m],r.Bd||(d[m]=r.get(0));else for(m=0,p=g.length;m<p;++m)d[m]=g[m].get(0);k=0;for(u=f.length;k<u;++k){q=f[k];if(e)for(m=0,p=g.length;m<p;++m)r=g[m],r.Bd&&(d[m]=r.get(k));l?(m=0,a&&(m=q.type.wh[c]),h.apply(q.T[b+m],d)):h.apply(q,d)}return!1};cc=b;var O=[],u=-1;e.prototype.eb=function(){var a,b;if(11===this.type)this.pg=this.b.Es(this.rk,this.Vc.parent);else if(13===this.type)for(a=0,b=this.Wg.length;a<b;a++)this.Wg[a].eb();this.ie&&
this.ie.eb()};e.prototype.wA=function(a){this.Bd||!a||a.za.$m||(this.Bd=!0)};e.prototype.Cu=function(){this.Bd=!0};e.prototype.Mz=function(a){this.bf=a||0;a=c();this.ie.get(a);u--;return a.data};e.prototype.Nz=function(a){this.bf=a||0;a=c();this.ie.get(a);u--;return y(a.data)?a.data:""};e.prototype.Tz=function(){return this.object};e.prototype.Kz=function(){return this.Zr};e.prototype.Rz=function(a){this.bf=a||0;a=c();this.ie.get(a);u--;return a.Ib()?this.b.Ke(a.data):this.b.aj(a.data)};e.prototype.Sz=
function(){return this.ab};e.prototype.Qz=function(){return this.key};e.prototype.Pz=function(){return this.index};e.prototype.Oz=function(a){a=a||0;var b=this.La.type,c=null,c=b.W(),e=c.wc();if(e.length)c=e[a%e.length].type;else if(c.fa.length)c=c.fa[a%c.fa.length].type;else if(b.j.length)c=b.j[a%b.j.length].type;else return 0;return this.index+c.nl[b.Ie]};e.prototype.Lz=function(){return this.pg};e.prototype.Jz=function(){return this.ws};e.prototype.Uz=function(){var a,b;a=0;for(b=this.Wg.length;a<
b;a++)this.qk[a]=this.Wg[a].get();return this.qk};dc=e;h.prototype.eb=function(){this.Fa=q(this.Fa)};h.prototype.Xe=function(a){var b=this.b.Cs();this.parent&&!this.sj&&b?(this.Jg>=b.length&&(b.length=this.Jg+1),b[this.Jg]=a):this.data=a};h.prototype.tg=function(){var a=this.b.Cs();return!this.parent||this.sj||!a||this.Pl?this.data:this.Jg>=a.length||"undefined"===typeof a[this.Jg]?this.Hl:a[this.Jg]};h.prototype.pb=function(){!this.parent||this.sj||this.Pl||this.Xe(this.Hl)};Yb=h;f.prototype.toString=
function(){return"include:"+this.gj.toString()};f.prototype.eb=function(){this.gj=this.b.po[this.$z];this.sheet.Ks.add(this);this.Fa=q(this.Fa);for(var a=this.parent;a;)a.group&&a.Tk.push(this),a=a.parent;this.bv()};f.prototype.pb=function(){this.parent&&this.b.Vj(this.b.F);this.gj.Ko||this.gj.pb(!0);this.parent&&this.b.Pf(this.b.F)};f.prototype.bv=function(){for(var a=this.parent;a;){if(a.group&&!a.ug){this.Gb=!1;return}a=a.parent}this.Gb=!0};hc=f;g.prototype.reset=function(a){this.gb=a;this.pc=
this.fb=0;G(this.Ou);this.lo=this.Dg=!1};g.prototype.iA=function(){return this.gb.tq?!0:this.fb<this.gb.tb.length-1?!!this.gb.Fa.length:!1};Xb=g})();
(function(){function d(d,a){this.La=d;this.b=d.b;this.type=a[0];this.get=[this.Yy,this.Uy,this.gz,this.jz,this.Jy,this.hz,this.bz,this.Ry,this.az,this.fz,this.Ky,this.ez,this.Sy,this.cz,this.Zy,this.$y,this.Vy,this.Wy,this.Qy,this.iz,this.dz,this.Xy,this.Py,this.Ty][this.type];var b=null;this.Re=this.aa=this.Wa=this.Ob=this.ln=this.second=this.first=this.value=null;this.Gd=-1;this.Kd=null;this.jv=-1;this.pg=this.rk=null;this.ji=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new fc(d,a[1]);break;case 18:this.first=new fc(d,a[1]);this.second=new fc(d,a[2]);this.ln=new fc(d,a[3]);break;case 19:this.Ob=this.b.kf(a[1]);this.Ob!==W.prototype.U.random&&this.Ob!==W.prototype.U.Wr||this.La.Cu();this.Wa=[];this.aa=[];3===a.length?(b=a[2],this.Wa.length=b.length+1):this.Wa.length=1;break;case 20:this.Re=this.b.F[a[1]];this.Gd=-1;this.Ob=this.b.kf(a[2]);this.ji=a[3];uc&&this.Ob===uc.prototype.U.sv&&this.La.Cu();a[4]?this.Kd=new fc(d,a[4]):this.Kd=null;this.Wa=[];this.aa=[];6===
a.length?(b=a[5],this.Wa.length=b.length+1):this.Wa.length=1;break;case 21:this.Re=this.b.F[a[1]];this.ji=a[2];a[3]?this.Kd=new fc(d,a[3]):this.Kd=null;this.jv=a[4];break;case 22:this.Re=this.b.F[a[1]];this.Re.yl(a[2]);this.Gd=this.Re.xo(a[2]);this.Ob=this.b.kf(a[3]);this.ji=a[4];a[5]?this.Kd=new fc(d,a[5]):this.Kd=null;this.Wa=[];this.aa=[];7===a.length?(b=a[6],this.Wa.length=b.length+1):this.Wa.length=1;break;case 23:this.rk=a[1],this.pg=null}this.La.wA(this.Re);4<=this.type&&17>=this.type&&(this.first=
new fc(d,a[1]),this.second=new fc(d,a[2]));if(b){var c,e;c=0;for(e=b.length;c<e;c++)this.aa.push(new fc(d,b[c]))}}function r(){++k;m.length===k&&m.push(new ec);return m[k]}function q(d,a,b){var c,e;c=0;for(e=d.length;c<e;++c)d[c].get(b),a[c+1]=b.data}function p(d,a){this.type=d||ic.fh;this.data=a||0;this.Ng=null;this.type==ic.fh&&(this.data=Math.floor(this.data))}d.prototype.eb=function(){23===this.type&&(this.pg=this.La.b.Es(this.rk,this.La.Vc.parent));this.first&&this.first.eb();this.second&&this.second.eb();
this.ln&&this.ln.eb();this.Kd&&this.Kd.eb();if(this.aa){var d,a;d=0;for(a=this.aa.length;d<a;d++)this.aa[d].eb()}};var m=[],k=-1;d.prototype.iz=function(d){var a=this.aa,b=this.Wa;b[0]=d;d=r();q(a,b,d);--k;this.Ob.apply(this.b.we,b)};d.prototype.dz=function(d){var a=this.Re,b=this.Wa,c=this.aa,e=this.Kd,h=this.Ob,f=this.La.bf,g=a.W(),m=g.wc();if(!m.length)if(g.fa.length)m=g.fa;else{this.ji?d.Uc(""):d.wa(0);return}b[0]=d;d.Ng=a;d=r();q(c,b,d);e&&(e.get(d),d.Ib()&&(f=d.data,m=a.j));--k;a=m.length;if(f>=
a||f<=-a)f%=a;0>f&&(f+=a);h.apply(m[f],b)};d.prototype.Py=function(d){var a=this.Re,b=this.Wa,c=this.aa,e=this.Kd,h=this.Gd,f=this.Ob,g=this.La.bf,m=a.W(),p=m.wc();if(!p.length)if(m.fa.length)p=m.fa;else{this.ji?d.Uc(""):d.wa(0);return}b[0]=d;d.Ng=a;d=r();q(c,b,d);e&&(e.get(d),d.Ib()&&(g=d.data,p=a.j));--k;c=p.length;if(g>=c||g<=-c)g%=c;0>g&&(g+=c);g=p[g];p=0;a.S&&(p=g.type.wh[a.Ie]);f.apply(g.T[h+p],b)};d.prototype.Xy=function(d){var a=this.Kd,b=this.Re,c=this.jv,e=this.La.bf,h=b.W(),f=h.wc();if(!f.length)if(h.fa.length)f=
h.fa;else{this.ji?d.Uc(""):d.wa(0);return}if(a){h=r();a.get(h);if(h.Ib()){e=h.data;f=b.j;0!==f.length&&(e%=f.length,0>e&&(e+=f.length));e=b.Ao(e);b=e.xb[c];y(b)?d.Uc(b):d.K(b);--k;return}--k}a=f.length;if(e>=a||e<=-a)e%=a;0>e&&(e+=a);e=f[e];f=0;b.S&&(f=e.type.nl[b.Ie]);b=e.xb[c+f];y(b)?d.Uc(b):d.K(b)};d.prototype.Yy=function(d){d.type=ic.fh;d.data=this.value};d.prototype.Uy=function(d){d.type=ic.eh;d.data=this.value};d.prototype.gz=function(d){d.type=ic.String;d.data=this.value};d.prototype.jz=function(d){this.first.get(d);
d.Ib()&&(d.data=-d.data)};d.prototype.Jy=function(d){this.first.get(d);var a=r();this.second.get(a);d.Ib()&&a.Ib()&&(d.data+=a.data,a.Ih()&&d.Vh());--k};d.prototype.hz=function(d){this.first.get(d);var a=r();this.second.get(a);d.Ib()&&a.Ib()&&(d.data-=a.data,a.Ih()&&d.Vh());--k};d.prototype.bz=function(d){this.first.get(d);var a=r();this.second.get(a);d.Ib()&&a.Ib()&&(d.data*=a.data,a.Ih()&&d.Vh());--k};d.prototype.Ry=function(d){this.first.get(d);var a=r();this.second.get(a);d.Ib()&&a.Ib()&&(d.data/=
a.data,d.Vh());--k};d.prototype.az=function(d){this.first.get(d);var a=r();this.second.get(a);d.Ib()&&a.Ib()&&(d.data%=a.data,a.Ih()&&d.Vh());--k};d.prototype.fz=function(d){this.first.get(d);var a=r();this.second.get(a);d.Ib()&&a.Ib()&&(d.data=Math.pow(d.data,a.data),a.Ih()&&d.Vh());--k};d.prototype.Ky=function(d){this.first.get(d);var a=r();this.second.get(a);a.Lh()||d.Lh()?this.My(d,a):this.Ly(d,a);--k};d.prototype.My=function(d,a){d.Lh()&&a.Lh()?this.Oy(d,a):this.Ny(d,a)};d.prototype.Oy=function(d,
a){d.data+=a.data};d.prototype.Ny=function(d,a){d.Lh()?d.data+=(Math.round(1E10*a.data)/1E10).toString():d.Uc(d.data.toString()+a.data)};d.prototype.Ly=function(d,a){d.wa(d.data&&a.data?1:0)};d.prototype.ez=function(d){this.first.get(d);var a=r();this.second.get(a);d.Ib()&&a.Ib()&&(d.data||a.data?d.wa(1):d.wa(0));--k};d.prototype.Qy=function(d){this.first.get(d);d.data?this.second.get(d):this.ln.get(d)};d.prototype.Sy=function(d){this.first.get(d);var a=r();this.second.get(a);d.wa(d.data===a.data?
1:0);--k};d.prototype.cz=function(d){this.first.get(d);var a=r();this.second.get(a);d.wa(d.data!==a.data?1:0);--k};d.prototype.Zy=function(d){this.first.get(d);var a=r();this.second.get(a);d.wa(d.data<a.data?1:0);--k};d.prototype.$y=function(d){this.first.get(d);var a=r();this.second.get(a);d.wa(d.data<=a.data?1:0);--k};d.prototype.Vy=function(d){this.first.get(d);var a=r();this.second.get(a);d.wa(d.data>a.data?1:0);--k};d.prototype.Wy=function(d){this.first.get(d);var a=r();this.second.get(a);d.wa(d.data>=
a.data?1:0);--k};d.prototype.Ty=function(d){var a=this.pg.tg();ka(a)?d.K(a):d.Uc(a)};fc=d;p.prototype.Ih=function(){return this.type===ic.eh};p.prototype.Ib=function(){return this.type===ic.fh||this.type===ic.eh};p.prototype.Lh=function(){return this.type===ic.String};p.prototype.Vh=function(){this.Ih()||(this.Lh()&&(this.data=parseFloat(this.data)),this.type=ic.eh)};p.prototype.wa=function(d){this.type=ic.fh;this.data=Math.floor(d)};p.prototype.K=function(d){this.type=ic.eh;this.data=d};p.prototype.Uc=
function(d){this.type=ic.String;this.data=d};p.prototype.Wm=function(d){ka(d)?(this.type=ic.eh,this.data=d):y(d)?(this.type=ic.String,this.data=d.toString()):(this.type=ic.fh,this.data=0)};ec=p;ic={fh:0,eh:1,String:2}})();function W(d){this.b=d;this.Jc=[]}
W.prototype.Qa=function(){var d={},r,q,p,m,k,l,a,b;d.waits=[];var c=d.waits,e;r=0;for(q=this.Jc.length;r<q;r++){l=this.Jc[r];e={t:l.time,st:l.Ju,s:l.sq,ev:l.sh.ea,sm:[],sols:{}};l.sh.md[l.pc]&&(e.act=l.sh.md[l.pc].ea);p=0;for(m=l.Fa.length;p<m;p++)e.sm.push(l.Fa[p].ea);for(k in l.lc)if(l.lc.hasOwnProperty(k)){a=this.b.F[parseInt(k,10)];b={sa:l.lc[k].Rm,insts:[]};p=0;for(m=l.lc[k].Le.length;p<m;p++)b.insts.push(l.lc[k].Le[p].uid);e.sols[a.ea.toString()]=b}c.push(e)}return d};
W.prototype.bb=function(d){d=d.waits;var r,q,p,m,k,l,a,b,c,e,h;G(this.Jc);r=0;for(q=d.length;r<q;r++)if(l=d[r],b=this.b.Nr[l.ev.toString()]){c=-1;p=0;for(m=b.md.length;p<m;p++)if(b.md[p].ea===l.act){c=p;break}if(-1!==c){a={lc:{},Fa:[],ho:!1};a.time=l.t;a.Ju=l.st||"";a.sq=!!l.s;a.sh=b;a.pc=c;p=0;for(m=l.sm.length;p<m;p++)(b=this.b.Bh(l.sm[p]))&&a.Fa.push(b);for(k in l.sols)if(l.sols.hasOwnProperty(k)&&(b=this.b.Bh(parseInt(k,10)))){c=l.sols[k];e={Rm:c.sa,Le:[]};p=0;for(m=c.insts.length;p<m;p++)(h=
this.b.Ah(c.insts[p]))&&e.Le.push(h);a.lc[b.index.toString()]=e}this.Jc.push(a)}}};
(function(){function d(){}function r(){}function q(){}var p=W.prototype;d.prototype.Fv=function(){return!0};d.prototype.hr=function(){return!0};d.prototype.yw=function(){return!0};d.prototype.wv=function(a,c,e){return jc(a,c,e)};var m=[],k=-1;d.prototype.Iv=function(a){var c=a.W();k++;m.length===k&&m.push([]);var e=m[k];Ga(e,c.wc());var d=this.b.$a(),f=d.gb,g=d.iA(),d=this.b.$A(),l,p,u,n,t,r,q=a.Rb;if(g)for(g=0,l=e.length;g<l&&!d.Lb;g++){this.b.Wj(f.Fa);n=e[g];c=a.W();c.da=!1;G(c.j);c.j[0]=n;if(q)for(p=
0,u=n.siblings.length;p<u;p++)t=n.siblings[p],r=t.type.W(),r.da=!1,G(r.j),r.j[0]=t;d.index=g;f.fq();this.b.Pf(f.Fa)}else for(c.da=!1,G(c.j),g=0,l=e.length;g<l&&!d.Lb;g++){n=e[g];c.j[0]=n;if(q)for(p=0,u=n.siblings.length;p<u;p++)t=n.siblings[p],r=t.type.W(),r.da=!1,G(r.j),r.j[0]=t;d.index=g;f.fq()}G(e);this.b.SA();k--;return!1};d.prototype.ox=function(){var a=this.b.Zi().J;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var c=a.TriggerOnce_lastTick,e=this.b.hd;a.TriggerOnce_lastTick=
e;return this.b.np||c!==e-1};d.prototype.Ev=function(a){var c=this.b.Zi(),e=c.J.Every_lastTime||0,d=this.b.yb.M;"undefined"===typeof c.J.Every_seconds&&(c.J.Every_seconds=a);var f=c.J.Every_seconds;if(d>=e+f)return c.J.Every_lastTime=e+f,d>=c.J.Every_lastTime+.04&&(c.J.Every_lastTime=d),c.J.Every_seconds=a,!0;d<e-.1&&(c.J.Every_lastTime=d);return!1};d.prototype.zv=function(a,c,e){return jc(a.tg(),c,e)};d.prototype.Ov=function(a){return(a=this.b.Dh[a.toLowerCase()])&&a.ug};d.prototype.Uq=function(){var a=
this.b.$a();return a.lo?!1:!a.Dg};d.prototype.ir=function(){return!0};d.prototype.gw=function(){return!0};d.prototype.Fn=function(){return!0};d.prototype.nr=function(){return!0};d.prototype.zw=function(){return!0};d.prototype.zk=function(){return!0};d.prototype.pv=function(a,c,e){return Ta(Q(a),Q(e))<=Q(c)};d.prototype.Vq=function(a,c){return Va(Q(a),Q(c))};d.prototype.Mv=function(a,c,e){a=Ra(a);c=Ra(c);e=Ra(e);return Va(e,c)?Va(a,c)&&!Va(a,e):!(!Va(a,c)&&Va(a,e))};p.k=new d;r.prototype.Kv=function(a){this.b.Nh||
this.b.hg||(this.b.hg=a)};r.prototype.Dv=function(a,c,e,d){if(c&&a&&(c=this.b.Vk(a,c,e,d))){this.b.bd++;var f;this.b.trigger(Object.getPrototypeOf(a.za).k.Yf,c);if(c.Rb)for(e=0,d=c.siblings.length;e<d;e++)f=c.siblings[e],this.b.trigger(Object.getPrototypeOf(f.type.za).k.Yf,f);this.b.bd--;a=a.W();a.da=!1;G(a.j);a.j[0]=c;if(c.Rb)for(e=0,d=c.siblings.length;e<d;e++)f=c.siblings[e],a=f.type.W(),a.da=!1,G(a.j),a.j[0]=f}};r.prototype.gx=function(a,c){0===a.sk?ka(c)?a.Xe(c):a.Xe(parseFloat(c)):1===a.sk&&
a.Xe(c.toString())};r.prototype.nv=function(a,c){0===a.sk?ka(c)?a.Xe(a.tg()+c):a.Xe(a.tg()+parseFloat(c)):1===a.sk&&a.Xe(a.tg()+c.toString())};r.prototype.mx=function(a,c){0===a.sk&&(ka(c)?a.Xe(a.tg()-c):a.Xe(a.tg()-parseFloat(c)))};r.prototype.Tw=function(a,c){var e=this.b.Dh[a.toLowerCase()];if(e)switch(c){case 0:e.ak(!1);break;case 1:e.ak(!0);break;case 2:e.ak(!e.ug)}};r.prototype.Xw=function(a,c){var e=c;0>e&&(e=0);if(a){var d=a.W().wc(),f,g;f=0;for(g=d.length;f<g;f++)d[f].Yh=e}};var l=[],a=[];
r.prototype.tx=function(b){if(!(0>b)){var c,e,d,f=this.b.$a(),g;l.length?g=l.pop():g={lc:{},Fa:[]};g.ho=!1;g.time=this.b.yb.M+b;g.Ju="";g.sq=!1;g.sh=f.gb;g.pc=f.pc+1;b=0;for(c=this.b.F.length;b<c;b++)d=this.b.F[b],e=d.W(),e.da&&-1===f.gb.Fa.indexOf(d)||(g.Fa.push(d),d=void 0,a.length?d=a.pop():d={Le:[]},d.Rm=!1,d.Rm=e.da,Ga(d.Le,e.j),g.lc[b.toString()]=d);this.Jc.push(g);return!0}};r.prototype.Iw=function(){var a,c,e;a=0;for(c=this.b.Nn.length;a<c;a++)e=this.b.Nn[a],e.data=e.Hl};r.prototype.Jw=function(){if(!this.b.Nh&&
!this.b.hg&&this.b.pa){this.b.hg=this.b.pa;var a,c,e;a=0;for(c=this.b.qf.length;a<c;a++)e=this.b.qf[a],e.ak(e.Il)}};p.B=new r;q.prototype["int"]=function(a,c){y(c)?(a.wa(parseInt(c,10)),isNaN(a.data)&&(a.data=0)):a.wa(c)};q.prototype["float"]=function(a,c){y(c)?(a.K(parseFloat(c)),isNaN(a.data)&&(a.data=0)):a.K(c)};q.prototype.random=function(a,c,e){void 0===e?a.K(Math.random()*c):a.K(Math.random()*(e-c)+c)};q.prototype.sqrt=function(a,c){a.K(Math.sqrt(c))};q.prototype.abs=function(a,c){a.K(Math.abs(c))};
q.prototype.round=function(a,c){a.wa(Math.round(c))};q.prototype.floor=function(a,c){a.wa(Math.floor(c))};q.prototype.ceil=function(a,c){a.wa(Math.ceil(c))};q.prototype.sin=function(a,c){a.K(Math.sin(Q(c)))};q.prototype.cos=function(a,c){a.K(Math.cos(Q(c)))};q.prototype.tan=function(a,c){a.K(Math.tan(Q(c)))};q.prototype.asin=function(a,c){a.K(Ma(Math.asin(c)))};q.prototype.acos=function(a,c){a.K(Ma(Math.acos(c)))};q.prototype.atan=function(a,c){a.K(Ma(Math.atan(c)))};q.prototype.exp=function(a,c){a.K(Math.exp(c))};
q.prototype.log10=function(a,c){a.K(Math.log(c)/Math.LN10)};q.prototype.max=function(a){var c=arguments[1];"number"!==typeof c&&(c=0);var e,d,f;e=2;for(d=arguments.length;e<d;e++)f=arguments[e],"number"===typeof f&&c<f&&(c=f);a.K(c)};q.prototype.min=function(a){var c=arguments[1];"number"!==typeof c&&(c=0);var e,d,f;e=2;for(d=arguments.length;e<d;e++)f=arguments[e],"number"===typeof f&&c>f&&(c=f);a.K(c)};q.prototype.kg=function(a){a.K(this.b.kg)};q.prototype.ah=function(a){a.K(this.b.ah)};q.prototype.time=
function(a){a.K(this.b.yb.M)};q.prototype.hd=function(a){a.wa(this.b.hd)};q.prototype.pm=function(a){a.wa(this.b.pm)};q.prototype.uo=function(a){a.wa(this.b.uo)};q.prototype.by=function(a,c,e,d,f){a.K(Xa(c,e,d,f))};q.prototype.m=function(a,c,e,d,f){a.K(Ma(Sa(c,e,d,f)))};q.prototype.PB=function(a){a.wa(this.b.width)};q.prototype.OB=function(a){a.wa(this.b.height)};q.prototype.left=function(a,c,e){a.Uc(y(c)?c.substr(0,e):"")};q.prototype.right=function(a,c,e){a.Uc(y(c)?c.substr(c.length-e):"")};q.prototype.replace=
function(a,c,e,d){y(c)&&y(e)&&y(d)?a.Uc(c.replace(new RegExp(hb(e),"gi"),d)):a.Uc(y(c)?c:"")};q.prototype.trim=function(a,c){a.Uc(y(c)?c.trim():"")};q.prototype.Wr=function(a){var c=C(Math.random()*(arguments.length-1));a.Wm(arguments[c+1])};q.prototype.kB=function(a,c,e,d){a.wa(ya(c,e,d))};q.prototype.Zn=function(a){a.K(this.b.Zn/1E3)};q.prototype.cm=function(a){a.K(this.b.cm)};p.U=new q;p.lB=function(){var b,c,e,d,f,g,k=this.b.$a();b=0;for(e=this.Jc.length;b<e;b++){d=this.Jc[b];if(-1===d.time){if(!d.sq)continue}else if(d.time>
this.b.yb.M)continue;k.gb=d.sh;k.pc=d.pc;k.fb=0;for(c in d.lc)d.lc.hasOwnProperty(c)&&(f=this.b.F[parseInt(c,10)].W(),g=d.lc[c],f.da=g.Rm,Ga(f.j,g.Le),f=g,G(f.Le),a.push(f));d.sh.jB();this.b.Xn(d.Fa);d.ho=!0}c=b=0;for(e=this.Jc.length;b<e;b++)d=this.Jc[b],this.Jc[c]=d,d.ho?(bb(d.lc),G(d.Fa),l.push(d)):c++;Fa(this.Jc,c)}})();
(function(){rb=function(d,q){var p=d[1],m=d[3],k=d[4],l=d[5],a=d[6],b=d[7],c=d[8];q.k||(q.k={});q.B||(q.B={});q.U||(q.U={});var e=q.k,h=q.B,f=q.U;m&&(e.Bv=function(a,b){return jc(this.x,a,b)},e.Cv=function(a,b){return jc(this.y,a,b)},e.Qv=function(){var a=this.q;this.xa();var b=this.Ea;return!(b.right<a.Ca||b.bottom<a.Da||b.left>a.Ha||b.top>a.Ga)},e.Rv=function(){this.xa();var a=this.Ea,b=this.b.pa;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},e.hC=function(a,b,c){var e=this.W(),d=
e.wc();if(!d.length)return!1;var f=d[0],h=f,k=Xa(f.x,f.y,b,c),m,l,p;m=1;for(l=d.length;m<l;m++)if(f=d[m],p=Xa(f.x,f.y,b,c),0===a&&p<k||1===a&&p>k)k=p,h=f;e.Rj(h);return!0},h.Ar=function(a){this.x!==a&&(this.x=a,this.D())},h.rC=function(a){this.y!==a&&(this.y=a,this.D())},h.rr=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.D()},h.sr=function(a,b){var c=a.Ez(this);if(c){var e;c.$i?(e=c.$i(b,!0),c=c.$i(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.D()}},h.Xv=function(a){0!==
a&&(this.x+=Math.cos(this.m)*a,this.y+=Math.sin(this.m)*a,this.D())},h.dC=function(a,b){0!==b&&(this.x+=Math.cos(Q(a))*b,this.y+=Math.sin(Q(a))*b,this.D())},f.Bi=function(a){a.K(this.x)},f.Ci=function(a){a.K(this.y)},f.kg=function(a){a.K(this.b.Jd(this))});k&&(e.Av=function(a,b){return jc(this.width,a,b)},e.VB=function(a,b){return jc(this.height,a,b)},h.ur=function(a){this.width!==a&&(this.width=a,this.D())},h.qC=function(a){this.height!==a&&(this.height=a,this.D())},h.ax=function(a,b){if(this.width!==
a||this.height!==b)this.width=a,this.height=b,this.D()},f.ux=function(a){a.K(this.width)},f.YB=function(a){a.K(this.height)},f.SB=function(a){this.xa();a.K(this.Ea.left)},f.UB=function(a){this.xa();a.K(this.Ea.top)},f.TB=function(a){this.xa();a.K(this.Ea.right)},f.RB=function(a){this.xa();a.K(this.Ea.bottom)});l&&(e.pv=function(a,b){return Ta(this.m,Q(b))<=Q(a)},e.Vq=function(a){return Va(this.m,Q(a))},e.Mv=function(a,b){var c=Ra(a),e=Ra(b),d=Oa(this.m);return Va(e,c)?Va(d,c)&&!Va(d,e):!(!Va(d,c)&&
Va(d,e))},h.Mw=function(a){a=Q(Na(a));isNaN(a)||this.m===a||(this.m=a,this.D())},h.lC=function(a){0===a||isNaN(a)||(this.m+=Q(a),this.m=Oa(this.m),this.D())},h.mC=function(a){0===a||isNaN(a)||(this.m-=Q(a),this.m=Oa(this.m),this.D())},h.Kw=function(a,b){var c=Ua(this.m,Q(b),Q(a));isNaN(c)||this.m===c||(this.m=c,this.D())},h.Lw=function(a,b,c){a=Ua(this.m,Math.atan2(c-this.y,b-this.x),Q(a));isNaN(a)||this.m===a||(this.m=a,this.D())},h.cx=function(a,b){var c=Math.atan2(b-this.y,a-this.x);isNaN(c)||
this.m===c||(this.m=c,this.D())},f.ov=function(a){a.K(Pa(this.m))});p||(e.yv=function(a,b,c){return jc(this.xb[a],b,c)},e.$B=function(a){return this.xb[a]},e.iC=function(a,b){var c=this.W(),e=c.wc();if(!e.length)return!1;var d=e[0],f=d,h=d.xb[b],k,m,l;k=1;for(m=e.length;k<m;k++)if(d=e[k],l=d.xb[b],0===a&&l<h||1===a&&l>h)h=l,f=d;c.Rj(f);return!0},e.Hw=function(a){var b,c,e,d,f;if(this.b.Zi().Jl){f=this.W();if(f.da)for(f.da=!1,G(f.j),G(f.fa),e=this.j,b=0,c=e.length;b<c;b++)d=e[b],d.uid===a?f.fa.push(d):
f.j.push(d);else{e=b=0;for(c=f.j.length;b<c;b++)d=f.j[b],f.j[e]=d,d.uid===a?f.fa.push(d):e++;Fa(f.j,e)}this.Ed();return!!f.j.length}d=this.b.Ah(a);if(!d)return!1;f=this.W();if(!f.da&&-1===f.j.indexOf(d))return!1;if(this.S)for(a=d.type.Na,b=0,c=a.length;b<c;b++){if(a[b]===this)return f.Rj(d),this.Ed(),!0}else if(d.type===this)return f.Rj(d),this.Ed(),!0;return!1},e.Yf=function(){return!0},e.Zq=function(){return!0},h.Uw=function(a,b){var c=this.xb;ka(c[a])?c[a]=ka(b)?b:parseFloat(b):y(c[a])&&(c[a]=
y(b)?b:b.toString())},h.mv=function(a,b){var c=this.xb;ka(c[a])?c[a]=ka(b)?c[a]+b:c[a]+parseFloat(b):y(c[a])&&(c[a]=y(b)?c[a]+b:c[a]+b.toString())},h.kx=function(a,b){var c=this.xb;ka(c[a])&&(c[a]=ka(b)?c[a]-b:c[a]-parseFloat(b))},h.nC=function(a,b){this.xb[a]=b?1:0},h.sC=function(a){this.xb[a]=1-this.xb[a]},h.Tq=function(){this.b.$d(this)},h.Wv||(h.Wv=function(a){var b,c;try{b=JSON.parse(a)}catch(e){return}this.b.Yl(this,b,!0);this.be&&this.be();if(this.T)for(a=0,b=this.T.length;a<b;++a)c=this.T[a],
c.be&&c.be()}),f.XB=function(a){var b=a.Ng.j.length,c,e,d;c=0;for(e=this.b.Id.length;c<e;c++)d=this.b.Id[c],a.Ng.S?0<=d.type.Na.indexOf(a.Ng)&&b++:d.type===a.Ng&&b++;a.wa(b)},f.kC=function(a){a.wa(a.Ng.W().wc().length)},f.qx=function(a){a.wa(this.uid)},f.ZB=function(a){a.wa(this.cj())},f.rv||(f.rv=function(a){a.Uc(JSON.stringify(this.b.iq(this,!0)))}));a&&(e.Tv=function(){return this.visible},h.tr=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.ba=!0)},e.WB=function(a,b){return jc(nb(100*
this.opacity),a,b)},h.Yw=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ba=!0)},f.Opacity=function(a){a.K(nb(100*this.opacity))});b&&(e.aC=function(a){return a?this.q===a:!1},e.jC=function(a){var b=this.W(),c=b.wc();if(!c.length)return!1;var e=c[0],d=e,f,h;f=1;for(h=c.length;f<h;f++)if(e=c[f],0===a){if(e.q.index>d.q.index||e.q.index===d.q.index&&e.ke()>d.ke())d=e}else if(e.q.index<d.q.index||e.q.index===d.q.index&&e.ke()<d.ke())d=e;b.Rj(d);return!0},h.Zv=function(){var a=
this.q,b=a.j;b.length&&b[b.length-1]===this||(a.hi(this,!1),a.Gi(this,!1),this.b.ba=!0)},h.Yv=function(){var a=this.q,b=a.j;b.length&&b[0]===this||(a.hi(this,!1),a.WA(this),this.b.ba=!0)},h.eC=function(a){a&&a!=this.q&&(this.q.hi(this,!0),this.q=a,a.Gi(this,!0),this.b.ba=!0)},h.xx=function(a,b){var c=0===a;if(b){var e=b.yz(this);e&&e.uid!==this.uid&&(this.q.index!==e.q.index&&(this.q.hi(this,!0),this.q=e.q,e.q.Gi(this,!0)),this.q.yA(this,e,c),this.b.ba=!0)}},f.cC=function(a){a.wa(this.q.Pt)},f.bC=
function(a){a.Uc(this.q.name)},f.tC=function(a){a.wa(this.ke())});c&&(h.oC=function(a,b){if(this.b.H){var c=this.type.zo(b);if(!(0>c)){var e=1===a;this.nf[c]!==e&&(this.nf[c]=e,this.Yd(),this.b.ba=!0)}}},h.pC=function(a,b,c){if(this.b.H){var e=this.type.zo(a);0>e||(a=this.type.Y[e],e=this.Ua[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.H.Iz(a.qb,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.Gb&&(this.b.ba=!0))))}})};Pb=function(){this.Un=this.Ok=!0;this.type.Hk=!0;this.b.ba=!0;var d,q,p=this.Sn;d=0;for(q=
p.length;d<q;++d)p[d](this);this.q.kd&&this.xa()};Qb=function(d){d&&this.Sn.push(d)};Sb=function(){if(this.Ok){var d=this.Ea,q=this.$b;d.set(this.x,this.y,this.x+this.width,this.y+this.height);d.offset(-this.Mc*this.width,-this.Nc*this.height);this.m?(d.offset(-this.x,-this.y),q.Eu(d,this.m),q.offset(this.x,this.y),q.Or(d)):q.Uf(d);d.normalize();this.Ok=!1;this.hv()}};var d=new va(0,0,0,0);Tb=function(){if(this.q.kd){var r=this.q.Vb,q=this.Ea;d.set(r.nc(q.left),r.oc(q.top),r.nc(q.right),r.oc(q.bottom));
this.Cc.Ri(d)||(this.Cc.right<this.Cc.left?r.update(this,null,d):r.update(this,this.Cc,d),this.Cc.kh(d),this.q.Ud=!0)}};Ub=function(){if(this.Un&&this.Wc){this.xa();var r=this.type.Ki,q=this.Ea;d.set(r.nc(q.left),r.oc(q.top),r.nc(q.right),r.oc(q.bottom));this.nd.Ri(d)||(this.nd.right<this.nd.left?r.update(this,null,d):r.update(this,this.nd,d),this.nd.kh(d),this.Un=!1)}};Rb=function(d,q){return this.Ea.hc(d,q)&&this.$b.hc(d,q)?this.$g?this.PC(d,q):this.la&&!this.la.Bg()?(this.la.gg(this.width,this.height,
this.m),this.la.hc(d-this.x,q-this.y)):!0:!1};Lb=function(){this.type.tn();return this.yg};Vb=function(){this.q.Mq();return this.Zd};Wb=function(){G(this.ua);var d,q,p,m=!0;d=0;for(q=this.nf.length;d<q;d++)this.nf[d]&&(p=this.type.Y[d],this.ua.push(p),p.vd||(m=!1));this.iv=!!this.ua.length;this.Ye=m};Mb=function(){return"Inst"+this.nu};wb=function(d){if(d&&d.Rb&&d.type!=this){var q,p,m;q=0;for(p=d.siblings.length;q<p;q++)if(m=d.siblings[q],m.type==this)return m}d=this.W().wc();return d.length?d[0]:
null};xb=function(d){var q=this.W().wc();return q.length?q[d.cj()%q.length]:null};vb=function(){if(this.mi&&!this.S){var d,q;d=0;for(q=this.j.length;d<q;d++)this.j[d].yg=d;var p=d,m=this.b.Id;d=0;for(q=m.length;d<q;++d)m[d].type===this&&(m[d].yg=p++);this.mi=!1}};Jb=function(d){if(d<this.j.length)return this.j[d];d-=this.j.length;var q=this.b.Id,p,m;p=0;for(m=q.length;p<m;++p)if(q[p].type===this){if(0===d)return q[p];--d}return null};yb=function(){return this.cf[this.ge]};zb=function(){this.ge++;
this.ge===this.cf.length?this.cf.push(new ub(this)):(this.cf[this.ge].da=!0,G(this.cf[this.ge].fa))};Ab=function(){this.ge++;this.ge===this.cf.length&&this.cf.push(new ub(this));var d=this.cf[this.ge],q=this.cf[this.ge-1];q.da?d.da=!0:(d.da=!1,Ga(d.j,q.j));G(d.fa)};Bb=function(){this.ge--};Cb=function(d){var q,p,m,k,l,a=0;if(!this.S)for(q=0,p=this.Na.length;q<p;q++)for(l=this.Na[q],m=0,k=l.Ra.length;m<k;m++){if(d===l.Ra[m].name)return this.J.lastBehIndex=a,l.Ra[m];a++}q=0;for(p=this.Ra.length;q<p;q++){if(d===
this.Ra[q].name)return this.J.lastBehIndex=a,this.Ra[q];a++}return null};Db=function(d){return this.yl(d)?this.J.lastBehIndex:-1};Eb=function(d){var q,p;q=0;for(p=this.Y.length;q<p;q++)if(this.Y[q].name===d)return q;return-1};Fb=function(){if(this.Rb&&!this.S){var d,q,p,m,k,l,a;this.tn();l=this.W();var b=l.da,c=(d=this.b.$a())&&d.gb&&d.gb.ed;d=0;for(q=this.Lc.length;d<q;d++)if(k=this.Lc[d],k!==this&&(k.tn(),a=k.W(),a.da=b,!b)){G(a.j);p=0;for(m=l.j.length;p<m;++p)a.j[p]=k.Ao(l.j[p].yg);if(c)for(G(a.fa),
p=0,m=l.fa.length;p<m;++p)a.fa[p]=k.Ao(l.fa[p].yg)}}};Kb=function(){return"Type"+this.ea};jc=function(d,q,p){if("undefined"===typeof d||"undefined"===typeof p)return!1;switch(q){case 0:return d===p;case 1:return d!==p;case 2:return d<p;case 3:return d<=p;case 4:return d>p;case 5:return d>=p;default:return!1}}})();
var rc={lighten:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp sampler2D samplerBack;\nuniform mediump vec2 destStart;\nuniform mediump vec2 destEnd;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\nfront.rgb /= front.a;\nlowp vec4 back = texture2D(samplerBack, mix(destStart, destEnd, vTex));\nback.rgb /= back.a;\nfront.rgb = max(front.rgb, back.rgb) * front.a;\ngl_FragColor = front * back.a;\n}",jl:0,kl:0,$n:!0,vd:!1,Qn:!1,aa:[]}};
function vc(d){this.b=d}
(function(){function d(a){-1===sb.indexOf(a)&&sb.push(a)}function r(a){var b=a.A,c;try{c=b.play()}catch(e){d(a);return}c?c.catch(function(){d(a)}):Nc&&!B.lb&&d(a)}function q(){var a,b,c,e;Oc||La||!w||(p(),"running"===w.state&&(Oc=!0));var f=sb.slice(0);G(sb);if(!ba)for(a=0,b=f.length;a<b;++a)c=f[a],c.Lb||c.Oc||(e=c.A.play())&&e.catch(function(){d(c)})}function p(){"suspended"===w.state&&w.resume&&w.resume();if(w.createBuffer){var a=w.createBuffer(1,220,22050),c=w.createBufferSource();c.buffer=a;c.connect(w.destination);
b(c)}}function m(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function k(a){a=a.toLowerCase();return X.hasOwnProperty(a)&&X[a].length?X[a][0].Zc():w.destination}function l(){return w.createGain?w.createGain():w.createGainNode()}function a(a){return w.createDelay?w.createDelay(a):w.createDelayNode(a)}function b(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function c(a,b,c,e){a.start?a.start(e||0,b):a.noteGrainOn(e||0,b,c-b)}function e(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function h(a,
b,c,e,d,f){this.type="filter";this.Eb=[a,b,c,e,d,f];this.ma=l();this.X=l();this.X.gain.value=f;this.V=l();this.V.gain.value=1-f;this.kb=w.createBiquadFilter();this.kb.type="number"===typeof this.kb.type?a:Tc[a];this.kb.frequency.value=b;this.kb.detune&&(this.kb.detune.value=c);this.kb.Q.value=e;this.kb.gain.value=d;this.ma.connect(this.kb);this.ma.connect(this.V);this.kb.connect(this.X)}function f(b,c,e){this.type="delay";this.Eb=[b,c,e];this.ma=l();this.X=l();this.X.gain.value=e;this.V=l();this.V.gain.value=
1-e;this.Jj=l();this.qd=a(b);this.qd.delayTime.value=b;this.al=l();this.al.gain.value=c;this.ma.connect(this.Jj);this.ma.connect(this.V);this.Jj.connect(this.X);this.Jj.connect(this.qd);this.qd.connect(this.al);this.al.connect(this.Jj)}function g(a,b,c,e){this.type="convolve";this.Eb=[b,c,e];this.ma=l();this.X=l();this.X.gain.value=c;this.V=l();this.V.gain.value=1-c;this.ig=w.createConvolver();a&&(this.ig.normalize=b,this.ig.buffer=a);this.ma.connect(this.ig);this.ma.connect(this.V);this.ig.connect(this.X)}
function N(c,e,d,f,g){this.type="flanger";this.Eb=[c,e,d,f,g];this.ma=l();this.V=l();this.V.gain.value=1-g/2;this.X=l();this.X.gain.value=g/2;this.ol=l();this.ol.gain.value=f;this.qd=a(c+e);this.qd.delayTime.value=c;this.Kb=w.createOscillator();this.Kb.frequency.value=d;this.Rc=l();this.Rc.gain.value=e;this.ma.connect(this.qd);this.ma.connect(this.V);this.qd.connect(this.X);this.qd.connect(this.ol);this.ol.connect(this.qd);this.Kb.connect(this.Rc);this.Rc.connect(this.qd.delayTime);b(this.Kb)}function O(a,
c,e,d,f,g){this.type="phaser";this.Eb=[a,c,e,d,f,g];this.ma=l();this.V=l();this.V.gain.value=1-g/2;this.X=l();this.X.gain.value=g/2;this.kb=w.createBiquadFilter();this.kb.type="number"===typeof this.kb.type?7:"allpass";this.kb.frequency.value=a;this.kb.detune&&(this.kb.detune.value=c);this.kb.Q.value=e;this.Kb=w.createOscillator();this.Kb.frequency.value=f;this.Rc=l();this.Rc.gain.value=d;this.ma.connect(this.kb);this.ma.connect(this.V);this.kb.connect(this.X);this.Kb.connect(this.Rc);this.Rc.connect(this.kb.frequency);
b(this.Kb)}function u(a){this.type="gain";this.Eb=[a];this.ta=l();this.ta.gain.value=a}function n(a,c){this.type="tremolo";this.Eb=[a,c];this.ta=l();this.ta.gain.value=1-c/2;this.Kb=w.createOscillator();this.Kb.frequency.value=a;this.Rc=l();this.Rc.gain.value=c/2;this.Kb.connect(this.Rc);this.Rc.connect(this.ta.gain);b(this.Kb)}function t(a,c){this.type="ringmod";this.Eb=[a,c];this.ma=l();this.X=l();this.X.gain.value=c;this.V=l();this.V.gain.value=1-c;this.$j=l();this.$j.gain.value=0;this.Kb=w.createOscillator();
this.Kb.frequency.value=a;this.Kb.connect(this.$j.gain);b(this.Kb);this.ma.connect(this.$j);this.ma.connect(this.V);this.$j.connect(this.X)}function P(a,b,c,e,d){this.type="distortion";this.Eb=[a,b,c,e,d];this.ma=l();this.Hm=l();this.Gm=l();this.sB(c,Math.pow(10,e/20));this.X=l();this.X.gain.value=d;this.V=l();this.V.gain.value=1-d;this.yn=w.createWaveShaper();this.Zk=new Float32Array(65536);this.qz(a,b);this.yn.Zk=this.Zk;this.ma.connect(this.Hm);this.ma.connect(this.V);this.Hm.connect(this.yn);
this.yn.connect(this.Gm);this.Gm.connect(this.X)}function U(a,b,c,e,d){this.type="compressor";this.Eb=[a,b,c,e,d];this.ta=w.createDynamicsCompressor();try{this.ta.threshold.value=a,this.ta.knee.value=b,this.ta.ratio.value=c,this.ta.attack.value=e,this.ta.release.value=d}catch(f){}}function x(a,b){this.type="analyser";this.Eb=[a,b];this.ta=w.createAnalyser();this.ta.fftSize=a;this.ta.smoothingTimeConstant=b;this.oz=new Float32Array(this.ta.frequencyBinCount);this.Hu=new Uint8Array(a);this.Qj=0}function L(){this.na=
null;this.$l=0}function A(a,b){this.src=a;this.ja=E;this.me=b;this.Fk=!1;var c=this;this.Wh=this.bi=null;this.ci=[];this.Sm=0;this.Qq=this.ml=this.Nu=this.Cm=!1;1===E&&b&&!tb&&(this.ja=0,this.bi=l());this.Ae=this.qa=null;var e;switch(this.ja){case 0:this.qa=new Audio;this.qa.crossOrigin="anonymous";this.qa.addEventListener("canplaythrough",function(){c.Qq=!0});1===E&&w.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Nu=!0,this.qa.addEventListener("canplay",function(){!c.Wh&&c.qa&&
(c.Wh=w.createMediaElementSource(c.qa),c.Wh.connect(c.bi))}));this.qa.autoplay=!1;this.qa.JC="auto";this.qa.src=a;break;case 1:B.Ol?B.vs(a,function(a){c.Ae=a;c.es()},function(){c.ml=!0}):(e=new XMLHttpRequest,e.open("GET",a,!0),e.responseType="arraybuffer",e.onload=function(){c.Ae=e.response;c.es()},e.onerror=function(){c.ml=!0},e.send());break;case 2:this.qa=!0;break;case 3:this.qa=!0}}function v(a,b){var c=this;this.tag=b;this.Lb=this.je=!0;this.src=a.src;this.buffer=a;this.ja=E;this.me=a.me;this.playbackRate=
1;this.Gh=!0;this.Oc=this.gd=!1;this.Dc=0;this.rj=this.Jh=this.oe=!1;this.volume=1;this.Np=function(a){if(!c.Oc&&!c.gd){var b=this;b||(b=a.target);b===c.Ek&&(c.Gh=!0,c.Lb=!0,la=c.tag,B.trigger(vc.prototype.k.wk,R))}};this.Ek=null;this.Hh=1===T&&!this.me||2===T;this.Xh=1;this.startTime=this.Hh?B.yb.M:B.hf.M;this.nb=this.ub=null;this.qe=!1;this.Tb=null;this.bu=this.au=this.$t=this.Zt=this.du=this.cu=0;this.A=null;var e=!1;1!==this.ja||0!==this.buffer.ja||this.buffer.Nu||(this.ja=0);switch(this.ja){case 0:this.me?
(this.A=a.qa,e=!a.Fk,a.Fk=!0):(this.A=new Audio,this.A.crossOrigin="anonymous",this.A.autoplay=!1,this.A.src=a.qa.src,e=!0);e&&this.A.addEventListener("ended",function(){la=c.tag;c.Lb=!0;B.trigger(vc.prototype.k.wk,R)});break;case 1:this.ub=l();this.ub.connect(k(b));1===this.buffer.ja?a.qa&&(this.A=w.createBufferSource(),this.A.buffer=a.qa,this.A.connect(this.ub)):(this.A=this.buffer.qa,this.buffer.bi.connect(this.ub),this.buffer.Fk||(this.buffer.Fk=!0,this.buffer.qa.addEventListener("ended",function(){la=
c.tag;c.Lb=!0;B.trigger(vc.prototype.k.wk,R)})));break;case 2:this.A=new window.Media(ia+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.Gh=!0,c.Lb=!0,la=c.tag,B.trigger(vc.prototype.k.wk,R))});break;case 3:this.A=!0}}function F(a){G(Ea);if(a.length){var b,c,e;b=0;for(c=D.length;b<c;b++)e=D[b],ob(a,e.tag)&&Ea.push(e)}else J&&!J.wg()&&(G(Ea),Ea[0]=J)}function I(a,b){X.hasOwnProperty(a)?X[a].push(b):X[a]=[b];var c,e,d,f,g=w.destination;if(X.hasOwnProperty(a)&&(d=X[a],d.length))for(g=
d[0].Zc(),c=0,e=d.length;c<e;c++)f=d[c],c+1===e?f.od(w.destination):f.od(d[c+1].Zc());F(a);c=0;for(e=Ea.length;c<e;c++)Ea[c].cB(g);Qa&&Ib===a&&(Qa.disconnect(),Qa.connect(g))}function V(){}function S(){}var K=vc.prototype;K.R=function(a){this.za=a;this.b=a.b};K.R.prototype.I=function(){};var B=null,R=null,la="",ia="",E=0,w=null,z=[],D=[],J=null,H=!1,T=0,ba=!1,M=1,ma=0,ca=0,La=!1,Hb=1,Gb=1,Jc=10,Lc=1E4,Mc=1,Qa=null,Ib="",Nc=!1,sb=[],tb=!1,Oc=!1;document.addEventListener("pointerup",q,!0);document.addEventListener("touchend",
q,!0);document.addEventListener("click",q,!0);document.addEventListener("keydown",q,!0);document.addEventListener("gamepadconnected",q,!0);var X={},Tc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");h.prototype.od=function(a){this.X.disconnect();this.X.connect(a);this.V.disconnect();this.V.connect(a)};h.prototype.remove=function(){this.ma.disconnect();this.kb.disconnect();this.X.disconnect();this.V.disconnect()};h.prototype.Zc=function(){return this.ma};f.prototype.od=
function(a){this.X.disconnect();this.X.connect(a);this.V.disconnect();this.V.connect(a)};f.prototype.remove=function(){this.ma.disconnect();this.Jj.disconnect();this.qd.disconnect();this.al.disconnect();this.X.disconnect();this.V.disconnect()};f.prototype.Zc=function(){return this.ma};g.prototype.od=function(a){this.X.disconnect();this.X.connect(a);this.V.disconnect();this.V.connect(a)};g.prototype.remove=function(){this.ma.disconnect();this.ig.disconnect();this.X.disconnect();this.V.disconnect()};
g.prototype.Zc=function(){return this.ma};N.prototype.od=function(a){this.V.disconnect();this.V.connect(a);this.X.disconnect();this.X.connect(a)};N.prototype.remove=function(){this.ma.disconnect();this.qd.disconnect();this.Kb.disconnect();this.Rc.disconnect();this.V.disconnect();this.X.disconnect();this.ol.disconnect()};N.prototype.Zc=function(){return this.ma};O.prototype.od=function(a){this.V.disconnect();this.V.connect(a);this.X.disconnect();this.X.connect(a)};O.prototype.remove=function(){this.ma.disconnect();
this.kb.disconnect();this.Kb.disconnect();this.Rc.disconnect();this.V.disconnect();this.X.disconnect()};O.prototype.Zc=function(){return this.ma};u.prototype.od=function(a){this.ta.disconnect();this.ta.connect(a)};u.prototype.remove=function(){this.ta.disconnect()};u.prototype.Zc=function(){return this.ta};n.prototype.od=function(a){this.ta.disconnect();this.ta.connect(a)};n.prototype.remove=function(){this.Kb.disconnect();this.Rc.disconnect();this.ta.disconnect()};n.prototype.Zc=function(){return this.ta};
t.prototype.od=function(a){this.X.disconnect();this.X.connect(a);this.V.disconnect();this.V.connect(a)};t.prototype.remove=function(){this.Kb.disconnect();this.$j.disconnect();this.ma.disconnect();this.X.disconnect();this.V.disconnect()};t.prototype.Zc=function(){return this.ma};P.prototype.sB=function(a,b){.01>a&&(a=.01);this.Hm.gain.value=a;this.Gm.gain.value=Math.pow(1/a,.6)*b};P.prototype.shape=function(a,b,c){var e=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+e*(1-Math.exp(-(1/e)*(a-b)));return b*
c};P.prototype.qz=function(a,b){for(var c=Math.pow(10,a/20),e=Math.pow(10,b/20),d=0,f=0;32768>f;++f)d=f/32768,d=this.shape(d,c,e),this.Zk[32768+f]=d,this.Zk[32768-f-1]=-d};P.prototype.od=function(a){this.X.disconnect();this.X.connect(a);this.V.disconnect();this.V.connect(a)};P.prototype.remove=function(){this.ma.disconnect();this.Hm.disconnect();this.yn.disconnect();this.Gm.disconnect();this.X.disconnect();this.V.disconnect()};P.prototype.Zc=function(){return this.ma};U.prototype.od=function(a){this.ta.disconnect();
this.ta.connect(a)};U.prototype.remove=function(){this.ta.disconnect()};U.prototype.Zc=function(){return this.ta};x.prototype.Ba=function(){this.ta.getFloatFrequencyData(this.oz);this.ta.getByteTimeDomainData(this.Hu);for(var a=this.ta.fftSize,b=0,c=this.Qj=0,e=0;b<a;b++)e=(this.Hu[b]-128)/128,0>e&&(e=-e),this.Qj<e&&(this.Qj=e),c+=e*e;this.Qj=m(this.Qj);m(Math.sqrt(c/a))};x.prototype.od=function(a){this.ta.disconnect();this.ta.connect(a)};x.prototype.remove=function(){this.ta.disconnect()};x.prototype.Zc=
function(){return this.ta};L.prototype.bk=function(a){this.na=a};L.prototype.Fl=function(){return!!this.na};L.prototype.Ba=function(){};A.prototype.dB=function(){var a,b,c,e;c=a=0;for(b=D.length;a<b;++a)e=D[a],D[c]=e,e.buffer===this?e.stop():++c;D.length=c;this.Wh&&(this.Wh.disconnect(),this.Wh=null);this.bi&&(this.bi.disconnect(),this.bi=null);this.Ae=this.qa=null};A.prototype.es=function(){if(!this.qa&&this.Ae){var a=this;if(w.decodeAudioData)w.decodeAudioData(this.Ae,function(b){a.qa=b;a.Ae=null;
var c,e,d;if(ja(a.Dm)||ba)ja(a.Uk)||(c=a.Uk.ig,c.normalize=a.Ot,c.buffer=b);else if(a.ci.length){c=0;for(e=a.ci.length;c<e;c++){b=a.ci[c];d=new v(a,b.Su);d.oq(!0);if("undefined"!==typeof b.Qt&&(b.na=B.Ah(b.Qt),!b.na))continue;if(b.na){var f=Wa(b.na.x,b.na.y,-b.na.q.wb(),ma,ca,!0),g=Wa(b.na.x,b.na.y,-b.na.q.wb(),ma,ca,!1);d.nq(f,g,Ma(b.na.m-b.na.q.wb()),b.Mo,b.Dp,b.Gp);d.bk(b.na)}else d.nq(b.x,b.y,b.ld,b.Mo,b.Dp,b.Gp);d.play(a.xp,a.Pq,a.Sm);a.Cm&&d.pause();D.push(d)}G(a.ci)}else d=new v(a,a.Dm||""),
d.play(a.xp,a.Pq,a.Sm),a.Cm&&d.pause(),D.push(d)},function(){a.ml=!0});else if(this.qa=w.createBuffer(this.Ae,!1),this.Ae=null,ja(this.Dm)||ba)ja(this.Uk)||(b=this.Uk.ig,b.normalize=this.Ot,b.buffer=this.qa);else{var b=new v(this,this.Dm);b.play(this.xp,this.Pq,this.Sm);this.Cm&&b.pause();D.push(b)}}};A.prototype.Ts=function(){switch(this.ja){case 0:var a=4<=this.qa.readyState;a&&(this.Qq=!0);return a||this.Qq;case 1:return!!this.Ae||!!this.qa;case 2:return!0;case 3:return!0}return!1};A.prototype.hA=
function(){switch(this.ja){case 0:return this.Ts();case 1:return!!this.qa;case 2:return!0;case 3:return!0}return!1};A.prototype.Zz=function(){switch(this.ja){case 0:return!!this.qa.error;case 1:return this.ml}return!1};v.prototype.wg=function(){switch(this.ja){case 0:return this.A.ended;case 1:return 1===this.buffer.ja?!this.je&&!this.Lb&&this.A.loop||this.Oc?!1:this.Gh:this.A.ended;case 2:return this.Gh;case 3:!0}return!0};v.prototype.Rx=function(){return this.je||this.Lb?!0:this.wg()};v.prototype.oq=
function(a){1===E&&(!this.qe&&a?this.ub&&(this.nb||(this.nb=w.createPanner(),this.nb.panningModel="number"===typeof this.nb.panningModel?Hb:["equalpower","HRTF","soundfield"][Hb],this.nb.distanceModel="number"===typeof this.nb.distanceModel?Gb:["linear","inverse","exponential"][Gb],this.nb.refDistance=Jc,this.nb.maxDistance=Lc,this.nb.rolloffFactor=Mc),this.ub.disconnect(),this.ub.connect(this.nb),this.nb.connect(k(this.tag)),this.qe=!0):this.qe&&!a&&this.ub&&(this.nb.disconnect(),this.ub.disconnect(),
this.ub.connect(k(this.tag)),this.qe=!1))};v.prototype.nq=function(a,b,c,e,d,f){this.qe&&1===E&&(this.nb.setPosition(a,b,0),this.nb.setOrientation(Math.cos(Q(c)),Math.sin(Q(c)),0),this.nb.coneInnerAngle=e,this.nb.coneOuterAngle=d,this.nb.coneOuterGain=f,this.cu=a,this.du=b,this.Zt=c,this.$t=e,this.au=d,this.bu=f)};v.prototype.bk=function(a){this.qe&&1===E&&(this.Tb||(this.Tb=new L),this.Tb.bk(a))};v.prototype.Ba=function(a){if(this.qe&&1===E&&this.Tb&&this.Tb.Fl()&&this.nj()){this.Tb.Ba(a);a=this.Tb.na;
var b=Wa(a.x,a.y,-a.q.wb(),ma,ca,!0),c=Wa(a.x,a.y,-a.q.wb(),ma,ca,!1);this.nb.setPosition(b,c,0);b=0;"undefined"!==typeof this.Tb.na.m&&(b=a.m-a.q.wb(),this.nb.setOrientation(Math.cos(b),Math.sin(b),0))}};v.prototype.play=function(a,e,d,f){var g=this.A;this.oe=a;this.volume=e;d=d||0;f=f||0;switch(this.ja){case 0:1!==g.playbackRate&&(g.playbackRate=1);g.volume!==e*M&&(g.volume=e*M);g.loop!==a&&(g.loop=a);g.muted&&(g.muted=!1);if(g.currentTime!==d)try{g.currentTime=d}catch(h){}r(this);break;case 1:this.muted=
!1;this.Xh=1;if(1===this.buffer.ja)this.ub.gain.value=e*M,this.je||(this.A=w.createBufferSource(),this.A.buffer=this.buffer.qa,this.A.connect(this.ub)),this.A.onended=this.Np,this.Ek=this.A,this.A.loop=a,this.Gh=!1,0===d?b(this.A,f):c(this.A,d,this.rg(),f);else{1!==g.playbackRate&&(g.playbackRate=1);g.loop!==a&&(g.loop=a);g.volume=e*M;if(g.currentTime!==d)try{g.currentTime=d}catch(k){}r(this)}break;case 2:(!this.je&&this.Lb||0!==d)&&g.seekTo(d);g.play();this.Gh=!1;break;case 3:B.jc?AppMobi.context.playSound(this.src,
a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Hh?B.yb.M:B.hf.M)-d;this.Oc=this.Lb=this.je=!1};v.prototype.stop=function(){switch(this.ja){case 0:this.A.paused||this.A.pause();break;case 1:1===this.buffer.ja?e(this.A):this.A.paused||this.A.pause();break;case 2:this.A.stop();break;case 3:B.jc&&AppMobi.context.stopSound(this.src)}this.Lb=!0;this.Oc=!1};v.prototype.pause=function(){if(!(this.je||this.Lb||this.wg()||this.Oc)){switch(this.ja){case 0:this.A.paused||this.A.pause();
break;case 1:1===this.buffer.ja?(this.Dc=this.Bo(!0),this.oe&&(this.Dc=this.Dc%this.rg()),this.Oc=!0,e(this.A)):this.A.paused||this.A.pause();break;case 2:this.A.pause();break;case 3:B.jc&&AppMobi.context.stopSound(this.src)}this.Oc=!0}};v.prototype.iB=function(){if(!(this.je||this.Lb||this.wg())&&this.Oc){switch(this.ja){case 0:r(this);break;case 1:1===this.buffer.ja?(this.A=w.createBufferSource(),this.A.buffer=this.buffer.qa,this.A.connect(this.ub),this.A.onended=this.Np,this.Ek=this.A,this.A.loop=
this.oe,this.ub.gain.value=M*this.volume*this.Xh,this.un(),this.startTime=(this.Hh?B.yb.M:B.hf.M)-this.Dc/(this.playbackRate||.001),c(this.A,this.Dc,this.rg())):r(this);break;case 2:this.A.play();break;case 3:B.jc&&AppMobi.context.resumeSound(this.src)}this.Oc=!1}};v.prototype.seek=function(a){if(!(this.je||this.Lb||this.wg()))switch(this.ja){case 0:try{this.A.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.ja)this.Oc?this.Dc=a:(this.pause(),this.Dc=a,this.iB());else try{this.A.currentTime=
a}catch(c){}break;case 3:B.jc&&AppMobi.context.seekSound(this.src,a)}};v.prototype.cB=function(a){1===this.ja&&(this.qe?(this.nb.disconnect(),this.nb.connect(a)):(this.ub.disconnect(),this.ub.connect(a)))};v.prototype.rg=function(){var a=0;switch(this.ja){case 0:"undefined"!==typeof this.A.duration&&(a=this.A.duration);break;case 1:a=this.buffer.qa.duration;break;case 2:a=this.A.getDuration();break;case 3:B.jc&&(a=AppMobi.context.getDurationSound(this.src))}return a};v.prototype.Bo=function(a){var b=
this.rg(),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.Oc)return this.Dc;c=(this.Hh?B.yb.M:B.hf.M)-this.startTime}else"undefined"!==typeof this.A.currentTime&&(c=this.A.currentTime);break;case 3:B.jc&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.oe&&c>b&&(c=b);return c};v.prototype.nj=function(){return!this.Oc&&!this.je&&!this.Lb&&!this.wg()};v.prototype.wB=function(){return!this.je&&
!this.Lb&&!this.wg()};v.prototype.HB=function(){var a=this.volume*M;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.ub.gain.value=a*this.Xh:"undefined"!==typeof this.A.volume&&this.A.volume!==a&&(this.A.volume=a)}};v.prototype.hl=function(a){switch(this.ja){case 0:this.A.muted!==!!a&&(this.A.muted=!!a);break;case 1:1===this.buffer.ja?(this.Xh=a?0:1,this.ub.gain.value=M*this.volume*this.Xh):this.A.muted!==
!!a&&(this.A.muted=!!a)}};v.prototype.Au=function(a){this.Jh=!!a;this.hl(this.Jh||this.rj)};v.prototype.Bu=function(a){this.rj=!!a;this.hl(this.Jh||this.rj)};v.prototype.un=function(){var a=this.playbackRate;this.Hh&&(a*=B.ah);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)}};v.prototype.uB=function(a){switch(this.ja){case 0:a?this.nj()?
(this.gd=!0,this.A.pause()):this.gd=!1:this.gd&&(this.A.play(),this.gd=!1);break;case 1:a?this.nj()?(this.gd=!0,1===this.buffer.ja?(this.Dc=this.Bo(!0),this.oe&&(this.Dc=this.Dc%this.rg()),e(this.A)):this.A.pause()):this.gd=!1:this.gd&&(1===this.buffer.ja?(this.A=w.createBufferSource(),this.A.buffer=this.buffer.qa,this.A.connect(this.ub),this.A.onended=this.Np,this.Ek=this.A,this.A.loop=this.oe,this.ub.gain.value=M*this.volume*this.Xh,this.un(),this.startTime=(this.Hh?B.yb.M:B.hf.M)-this.Dc/(this.playbackRate||
.001),c(this.A,this.Dc,this.rg())):this.A.play(),this.gd=!1);break;case 2:a?this.nj()?(this.A.pause(),this.gd=!0):this.gd=!1:this.gd&&(this.gd=!1,this.A.play())}};K.N=function(a){this.type=a;B=this.b=a.b;R=this;this.Pc=null;this.Aj=-600;this.b.Ol&&(tb=!0);!(this.b.Mh||this.b.ij&&(this.b.Uo||this.b.Kl))||this.b.Ml||this.b.Ka||this.b.Rs||tb||(Nc=!0);w=null;"undefined"!==typeof AudioContext?(E=1,w=new AudioContext):"undefined"!==typeof webkitAudioContext&&(E=1,w=new webkitAudioContext);this.b.Mh&&w&&
(w.close&&w.close(),"undefined"!==typeof AudioContext?w=new AudioContext:"undefined"!==typeof webkitAudioContext&&(w=new webkitAudioContext));1!==E&&(this.b.ad&&"undefined"!==typeof window.Media?E=2:this.b.Ss&&(E=3));2===E&&(ia=location.href,a=ia.lastIndexOf("/"),-1<a&&(ia=ia.substr(0,a+1)),ia=ia.replace("file://",""));if(this.b.jA&&this.b.lA&&"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.$d(this);else{if(this.b.jc)H=this.b.ij;else try{H=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')&&!this.b.$o}catch(b){H=!1}this.b.oi(this)}};var wa=K.N.prototype;wa.I=function(){this.b.hh=this;T=this.C[0];this.We=this.C[1];this.OA=0!==this.C[2];this.Mt=0;Hb=this.C[3];Gb=this.C[4];this.Aj=-this.C[5];Jc=this.C[6];Lc=this.C[7];Mc=this.C[8];this.Pc=new L;var a=this.b.P||this.b.width,b=this.b.O||this.b.height;1===E&&(w.listener.setPosition(a/2,b/2,this.Aj),w.listener.setOrientation(0,0,
1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Qa&&Qa.disconnect();Ib=b.toLowerCase();Qa=w.createMediaStreamSource(a);Qa.connect(k(Ib))});this.b.Fx(function(a){R.GA(a)});var c=this;this.b.Mn(function(a){c.Hp(a)})};wa.Hp=function(a){var b,c,e;b=0;for(c=D.length;b<c;b++)e=D[b],e.Tb&&e.Tb.na===a&&(e.Tb.na=null,e.qe&&e.nj()&&e.oe&&e.stop());this.Pc.na===a&&(this.Pc.na=null)};wa.Qa=function(){var a={silent:ba,masterVolume:M,listenerZ:this.Aj,listenerUid:this.Pc.Fl()?this.Pc.na.uid:-1,playing:[],effects:{}},
b=a.playing,c,e,d,f,g,h;c=0;for(e=D.length;c<e;c++)d=D[c],!d.wB()||3===this.We||d.me&&1===this.We||!d.me&&2===this.We||(f=d.Bo(),d.oe&&(f=f%d.rg()),f={tag:d.tag,buffersrc:d.buffer.src,is_music:d.me,playbackTime:f,volume:d.volume,looping:d.oe,muted:d.Jh,playbackRate:d.playbackRate,paused:d.Oc,resume_position:d.Dc},d.qe&&(f.pan={},h=f.pan,d.Tb&&d.Tb.Fl()?h.objUid=d.Tb.na.uid:(h.x=d.cu,h.y=d.du,h.a=d.Zt),h.ia=d.$t,h.oa=d.au,h.og=d.bu),b.push(f));b=a.effects;for(g in X)if(X.hasOwnProperty(g)){d=[];c=
0;for(e=X[g].length;c<e;c++)d.push({type:X[g][c].type,params:X[g][c].Eb});b[g]=d}return a};var $a=[];wa.bb=function(a){var b=a.silent;M=a.masterVolume;this.Aj=a.listenerZ;this.Pc.bk(null);var c=a.listenerUid;-1!==c&&(this.Pc.$l=c,$a.push(this.Pc));var c=a.playing,e,d,k,m,l,p,q,r,A,v,K;if(3!==this.We)for(e=0,d=D.length;e<d;e++)A=D[e],A.me&&1===this.We||(A.me||2!==this.We)&&A.stop();for(l in X)if(X.hasOwnProperty(l))for(e=0,d=X[l].length;e<d;e++)X[l][e].remove();bb(X);for(l in a.effects)if(a.effects.hasOwnProperty(l))for(p=
a.effects[l],e=0,d=p.length;e<d;e++)switch(k=p[e].type,v=p[e].params,k){case "filter":I(l,new h(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "delay":I(l,new f(v[0],v[1],v[2]));break;case "convolve":k=v[2];A=this.xl(k,!1);A.qa?k=new g(A.qa,v[0],v[1],k):(k=new g(null,v[0],v[1],k),A.Ot=v[0],A.Uk=k);I(l,k);break;case "flanger":I(l,new N(v[0],v[1],v[2],v[3],v[4]));break;case "phaser":I(l,new O(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "gain":I(l,new u(v[0]));break;case "tremolo":I(l,new n(v[0],v[1]));break;
case "ringmod":I(l,new t(v[0],v[1]));break;case "distortion":I(l,new P(v[0],v[1],v[2],v[3],v[4]));break;case "compressor":I(l,new U(v[0],v[1],v[2],v[3],v[4]));break;case "analyser":I(l,new x(v[0],v[1]))}e=0;for(d=c.length;e<d;e++)3===this.We||(a=c[e],k=a.buffersrc,m=a.is_music,l=a.tag,p=a.playbackTime,q=a.looping,r=a.volume,K=(v=a.pan)&&v.hasOwnProperty("objUid")?v.objUid:-1,m&&1===this.We)||!m&&2===this.We||((A=this.Bs(k,l,m,q,r))?(A.Dc=a.resume_position,A.oq(!!v),A.play(q,r,p),A.un(),A.HB(),A.hl(A.Jh||
A.rj),a.paused&&A.pause(),a.muted&&A.Au(!0),A.hl(A.Jh||A.rj),v&&(-1!==K?(A.Tb=A.Tb||new L,A.Tb.$l=K,$a.push(A.Tb)):A.nq(v.x,v.y,v.a,v.ia,v.oa,v.og))):(A=this.xl(k,m),A.Sm=p,A.Cm=a.paused,v&&(-1!==K?A.ci.push({Qt:K,Mo:v.ia,Dp:v.oa,Gp:v.og,Su:l}):A.ci.push({x:v.x,y:v.y,ld:v.a,Mo:v.ia,Dp:v.oa,Gp:v.og,Su:l}))));if(b&&!ba){e=0;for(d=D.length;e<d;e++)D[e].Bu(!0);ba=!0}else if(!b&&ba){e=0;for(d=D.length;e<d;e++)D[e].Bu(!1);ba=!1}};wa.be=function(){var a,b,c,e;a=0;for(b=$a.length;a<b;a++)c=$a[a],e=this.b.Ah(c.$l),
c.bk(e),c.$l=-1,e&&(ma=e.x,ca=e.y);G($a)};wa.GA=function(a){if(!this.OA){!a&&w&&w.resume&&(w.resume(),La=!1);var b,c;b=0;for(c=D.length;b<c;b++)D[b].uB(a);a&&w&&w.suspend&&(w.suspend(),La=!0)}};wa.Ba=function(){var a=this.b.kg,b,c,e;b=0;for(c=D.length;b<c;b++)e=D[b],e.Ba(a),0!==T&&e.un();var d,f;for(d in X)if(X.hasOwnProperty(d))for(e=X[d],b=0,c=e.length;b<c;b++)f=e[b],f.Ba&&f.Ba();1===E&&this.Pc.Fl()&&(this.Pc.Ba(a),ma=this.Pc.na.x,ca=this.Pc.na.y,w.listener.setPosition(this.Pc.na.x,this.Pc.na.y,
this.Aj))};var ab=[];wa.tB=function(a){var b,c,e,d,f,g=0;b=0;for(c=a.length;b<c;++b)if(e=a[b],d=e[0],e=2*e[1],(f=4<d.length&&".ogg"===d.substr(d.length-4))&&H||!f&&!H)ab.push({filename:d,size:e,na:null}),g+=e;return g};wa.yB=function(){var a,b,c,e;a=0;for(b=ab.length;a<b;++a)c=ab[a],e=this.b.ro+c.filename,c.na=this.xl(e,!1)};wa.Fz=function(){var a=0,b,c,e;b=0;for(c=ab.length;b<c;++b)e=ab[b],e.na.hA()||e.na.Zz()||this.b.Ka||this.b.Kl?a+=e.size:e.na.Ts()&&(a+=Math.floor(e.size/2));return a};wa.eB=function(){var a,
b,c,e;c=a=0;for(b=z.length;a<b;++a)e=z[a],z[c]=e,e.me?e.dB():++c;z.length=c};wa.xl=function(a,b){var c,e,d,f=null;c=0;for(e=z.length;c<e;c++)if(d=z[c],d.src===a){f=d;break}f||(tb&&b&&this.eB(),f=new A(a,b),z.push(f));return f};wa.Bs=function(a,b,c,e,d){var f,g,h;f=0;for(g=D.length;f<g;f++)if(h=D[f],h.src===a&&(h.Rx()||c))return h.tag=b,h;a=this.xl(a,c);if(!a.qa)return"<preload>"!==b&&(a.Dm=b,a.xp=e,a.Pq=d),null;h=new v(a,b);D.push(h);return h};var Ea=[];V.prototype.wk=function(a){return ob(la,a)};
K.k=new V;S.prototype.Play=function(a,b,c,e){!ba&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1<c&&(c=1),J=this.Bs(this.b.ro+a[0]+(H?".ogg":".m4a"),e,a[1],0!==b,c))&&(J.oq(!1),J.play(0!==b,c,0,this.Mt),this.Mt=0)};S.prototype.Ww=function(a,b){F(a);var c,e;c=0;for(e=Ea.length;c<e;c++)Ea[c].Au(0===b)};S.prototype.Hn=function(a){F(a);var b;a=0;for(b=Ea.length;a<b;a++)Ea[a].stop()};K.B=new S;K.U=new function(){}})();function uc(d){this.b=d}
(function(){function d(){this.name="";this.Zj=0;this.Eb=[]}function r(){a++;a===l.length&&l.push(new d);return l[a]}function q(){}function p(){}function m(){}var k=uc.prototype;k.R=function(a){this.za=a;this.b=a.b};k.R.prototype.I=function(){};k.N=function(a){this.type=a;this.b=a.b};var l=[],a=-1;k.N.prototype.I=function(){var b=this;window.c2_callFunction=function(c,e){var d,f,g,k=r();k.name=c.toLowerCase();k.Zj=0;if(e)for(k.Eb.length=e.length,d=0,f=e.length;d<f;++d)g=e[d],k.Eb[d]="number"===typeof g||
"string"===typeof g?g:"boolean"===typeof g?g?1:0:0;else G(k.Eb);b.b.trigger(uc.prototype.k.yk,b,k.name);a--;return k.Zj}};q.prototype.yk=function(b){var c=0>a?null:l[a];return c?ob(b,c.name):!1};k.k=new q;p.prototype.CallFunction=function(b,c){var e=r();e.name=b.toLowerCase();e.Zj=0;Ga(e.Eb,c);this.b.trigger(uc.prototype.k.yk,this,e.name);a--};k.B=new p;m.prototype.Gw=function(b,c){c=C(c);var e=0>a?null:l[a];e?0<=c&&c<e.Eb.length?b.Wm(e.Eb[c]):b.wa(0):b.wa(0)};m.prototype.sv=function(b,c){var e=r();
e.name=c.toLowerCase();e.Zj=0;G(e.Eb);var d,f;d=2;for(f=arguments.length;d<f;d++)e.Eb.push(arguments[d]);this.b.trigger(uc.prototype.k.yk,this,e.name);a--;b.Wm(e.Zj)};k.U=new m})();function wc(d){this.b=d}
(function(){function d(){}var r=wc.prototype;r.R=function(d){this.za=d;this.b=d.b};r.R.prototype.I=function(){};r.N=function(d){this.type=d;this.b=d.b;this.Qh=Array(256);this.pk=Array(256);this.ef=0};var q=r.N.prototype;q.I=function(){var d=this;this.b.Ka||(jQuery(document).keydown(function(k){d.Nj(k)}),jQuery(document).keyup(function(k){d.Oj(k)}))};var p=[32,33,34,35,36,37,38,39,40,44];q.Nj=function(d){var k=!1;window!=window.top&&-1<p.indexOf(d.which)&&(d.preventDefault(),k=!0,d.stopPropagation());
if(this.Qh[d.which])this.pk[d.which]&&!k&&d.preventDefault();else{this.Qh[d.which]=!0;this.ef=d.which;this.b.lb=!0;this.b.trigger(wc.prototype.k.fw,this);var l=this.b.trigger(wc.prototype.k.cr,this),a=this.b.trigger(wc.prototype.k.ww,this);this.b.lb=!1;if(l||a)this.pk[d.which]=!0,k||d.preventDefault()}};q.Oj=function(d){this.Qh[d.which]=!1;this.ef=d.which;this.b.lb=!0;this.b.trigger(wc.prototype.k.Xq,this);var k=this.b.trigger(wc.prototype.k.er,this),l=this.b.trigger(wc.prototype.k.dr,this);this.b.lb=
!1;if(k||l||this.pk[d.which])this.pk[d.which]=!0,d.preventDefault()};q.Ue=function(){var d;for(d=0;256>d;++d)if(this.Qh[d]){this.Qh[d]=!1;this.ef=d;this.b.trigger(wc.prototype.k.Xq,this);var k=this.b.trigger(wc.prototype.k.er,this),l=this.b.trigger(wc.prototype.k.dr,this);if(k||l)this.pk[d]=!0}};q.Qa=function(){return{triggerKey:this.ef}};q.bb=function(d){this.ef=d.triggerKey};d.prototype.Pv=function(d){return this.Qh[d]};d.prototype.cr=function(d){return d===this.ef};d.prototype.fw=function(){return!0};
d.prototype.Xq=function(){return!0};d.prototype.er=function(d){return d===this.ef};d.prototype.ww=function(d){return d===this.ef};d.prototype.dr=function(d){return d===this.ef};r.k=new d;r.B=new function(){};r.U=new function(){}})();var xc=!1;
try{!function(){var d,r,q;!function(){var p={},m={};d=function(d,m,a){p[d]={$x:m,Qx:a}};q=r=function(d){function l(a){if("."!==a.charAt(0))return a;a=a.split("/");for(var b=d.split("/").slice(0,-1),c=0,e=a.length;e>c;c++){var f=a[c];".."===f?b.pop():"."!==f&&b.push(f)}return b.join("/")}if(q.uC=p,m[d])return m[d];if(m[d]={},!p[d])throw Error("Could not find module "+d);for(var a,b=p[d],c=b.$x,b=b.Qx,e=[],h=0,f=c.length;f>h;h++)"exports"===c[h]?e.push(a={}):e.push(r(l(c[h])));c=b.apply(this,e);return m[d]=
a||c}}();d("promise/all",["./utils","exports"],function(d,m){var k=d.isArray,l=d.isFunction;m.all=function(a){if(!k(a))throw new TypeError("You must pass an array to all.");return new this(function(b,c){function e(a){return function(c){f[a]=c;0===--g&&b(f)}}var d,f=[],g=a.length;0===g&&b([]);for(var k=0;k<a.length;k++)(d=a[k])&&l(d.then)?d.then(e(k),c):(f[k]=d,0===--g&&b(f))})}});d("promise/asap",["exports"],function(d){function m(){return function(){process.IC(a)}}function k(){var b=0,c=new e(a),
d=document.createTextNode("");return c.observe(d,{characterData:!0}),function(){d.data=b=++b%2}}function l(){return function(){h.setTimeout(a,1)}}function a(){for(var a=0;a<f.length;a++){var b=f[a];(0,b[0])(b[1])}f=[]}var b,c="undefined"!=typeof window?window:{},e=c.MutationObserver||c.WebKitMutationObserver,h="undefined"!=typeof global?global:void 0===this?window:this,f=[];b="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?m():e?k():l();d.Ix=function(a,c){1===f.push([a,
c])&&b()}});d("promise/config",["exports"],function(d){var m={BC:!1};d.$r=m;d.Tx=function(d,l){return 2!==arguments.length?m[d]:void(m[d]=l)}});d("promise/polyfill",["./promise","./utils","exports"],function(d,m,k){var l=d.Promise,a=m.isFunction;k.QA=function(){var b;b="undefined"!=typeof global?global:"undefined"!=typeof window&&window.document?window:self;"Promise"in b&&"resolve"in b.Promise&&"reject"in b.Promise&&"all"in b.Promise&&"race"in b.Promise&&function(){var c;return new b.Promise(function(a){c=
a}),a(c)}()||(b.Promise=l)}});d("promise/promise","./config ./utils ./all ./race ./resolve ./reject ./asap exports".split(" "),function(d,m,k,l,a,b,c,e){function h(a){if(!v(a))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof h))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.Dk=[];f(a,this)}function f(a,b){function c(a){n(b,
a)}function e(a){P(b,a)}try{a(c,e)}catch(d){e(d)}}function g(a,b,c,e){var d,f,g,h,k=v(c);if(k)try{d=c(e),g=!0}catch(m){h=!0,f=m}else d=e,g=!0;u(b,d)||(k&&g?n(b,d):h?P(b,f):a===V?n(b,d):a===S&&P(b,d))}function q(a,b,c,e){a=a.Dk;var d=a.length;a[d]=b;a[d+V]=c;a[d+S]=e}function r(a,b){for(var c,e,d=a.Dk,f=a.Ck,h=0;h<d.length;h+=3)c=d[h],e=d[h+b],g(b,c,e,f);a.Dk=null}function u(a,b){var c,e=null;try{if(a===b)throw new TypeError("A promises callback cannot return that same promise.");if(A(b)&&(e=b.then,
v(e)))return e.call(b,function(e){return c?!0:(c=!0,void(b!==e?n(a,e):t(a,e)))},function(b){return c?!0:(c=!0,void P(a,b))}),!0}catch(d){return c?!0:(P(a,d),!0)}return!1}function n(a,b){a===b?t(a,b):u(a,b)||t(a,b)}function t(a,b){a.ye===F&&(a.ye=I,a.Ck=b,L.async(U,a))}function P(a,b){a.ye===F&&(a.ye=I,a.Ck=b,L.async(x,a))}function U(a){r(a,a.ye=V)}function x(a){r(a,a.ye=S)}var L=d.$r,A=(d.Tx,m.zA),v=m.isFunction;d=(m.now,k.all);l=l.race;a=a.resolve;b=b.reject;L.async=c.Ix;var F=void 0,I=0,V=1,S=2;
h.prototype={constructor:h,ye:void 0,Ck:void 0,Dk:void 0,then:function(a,b){var c=this,e=new this.constructor(function(){});if(this.ye){var d=arguments;L.async(function(){g(c.ye,e,d[c.ye-1],c.Ck)})}else q(this,e,a,b);return e},"catch":function(a){return this.then(null,a)}};h.all=d;h.race=l;h.resolve=a;h.reject=b;e.Promise=h});d("promise/race",["./utils","exports"],function(d,m){var k=d.isArray;m.race=function(d){if(!k(d))throw new TypeError("You must pass an array to race.");return new this(function(a,
b){for(var c,e=0;e<d.length;e++)(c=d[e])&&"function"==typeof c.then?c.then(a,b):a(c)})}});d("promise/reject",["exports"],function(d){d.reject=function(d){return new this(function(k,l){l(d)})}});d("promise/resolve",["exports"],function(d){d.resolve=function(d){return d&&"object"==typeof d&&d.constructor===this?d:new this(function(k){k(d)})}});d("promise/utils",["exports"],function(d){function m(d){return"function"==typeof d}var k=Date.now||function(){return(new Date).getTime()};d.zA=function(d){return m(d)||
"object"==typeof d&&null!==d};d.isFunction=m;d.isArray=function(d){return"[object Array]"===Object.prototype.toString.call(d)};d.now=k});r("promise/polyfill").QA()}();var yc=function(){return function(d){function r(p){if(q[p])return q[p].he;var m=q[p]={he:{},id:p,loaded:!1};return d[p].call(m.he,m,m.he,r),m.loaded=!0,m.he}var q={};return r.sf=d,r.Ii=q,r.Lo="",r(0)}([function(d,r,q){r.Bk=!0;var p=function(d){function k(a,b){a[b]=function(){var c=arguments;return a.ready().then(function(){return a[b].apply(a,
c)})}}function l(){for(var a=1;a<arguments.length;a++){var b=arguments[a];if(b)for(var c in b)b.hasOwnProperty(c)&&(g(b[c])?arguments[0][c]=b[c].slice():arguments[0][c]=b[c])}return arguments[0]}function a(a){for(var b in c)if(c.hasOwnProperty(b)&&c[b]===a)return!0;return!1}var b={},c={xi:"asyncStorage",yi:"localStorageWrapper",Ai:"webSQLStorage"},e="clear getItem iterate key keys length removeItem setItem".split(" "),h={description:"",rh:[c.xi,c.Ai,c.yi].slice(),name:"localforage",size:4980736,Aa:"keyvaluepairs",
version:1},f=function(a){var b={},e;try{var d=d||a.indexedDB||a.webkitIndexedDB||a.mozIndexedDB||a.$s||a.msIndexedDB;e="undefined"!=typeof a.openDatabase&&a.navigator&&a.navigator.userAgent&&/Safari/.test(a.navigator.userAgent)&&!/Chrome/.test(a.navigator.userAgent)?!1:d&&"function"==typeof d.open&&"undefined"!=typeof a.IDBKeyRange}catch(f){e=!1}b[c.xi]=!!e;var g;try{g=a.openDatabase}catch(h){g=!1}b[c.Ai]=!!g;var k;try{k=a.localStorage&&"setItem"in a.localStorage&&a.localStorage.setItem}catch(m){k=
!1}return b[c.yi]=!!k,b}(d),g=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};return new (function(){function d(a){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");this.xi=c.xi;this.yi=c.yi;this.Ai=c.Ai;this.In=l({},h);this.$f=l({},this.In,a);this.Dr=this.ae=null;this.lf=!1;this.ya=null;this.Er();this.wu(this.$f.rh)}return d.prototype.$r=function(a){if("object"==typeof a){if(this.lf)return Error("Can't call config() after localforage has been used.");
for(var b in a)"storeName"===b&&(a[b]=a[b].replace(/\W/g,"_")),this.$f[b]=a[b];return"driver"in a&&a.rh&&this.wu(this.$f.rh),!0}return"string"==typeof a?this.$f[a]:this.$f},d.prototype.rh=function(){return this.Di||null},d.prototype.Ds=function(c,e,d){var f=this,g=function(){if(a(c))switch(c){case f.xi:return new Promise(function(a){a(q(1))});case f.yi:return new Promise(function(a){a(q(2))});case f.Ai:return new Promise(function(a){a(q(4))})}else if(b[c])return Promise.resolve(b[c]);return Promise.reject(Error("Driver not found."))}();
return g.then(e,d),g},d.prototype.ready=function(a){var b=this,c=b.ae.then(function(){return null===b.lf&&(b.lf=b.Dr()),b.lf});return c.then(a,a),c},d.prototype.wu=function(a,b,c){function e(){f.$f.rh=f.rh()}function d(a){return function(){function b(){for(;c<a.length;){var d=a[c];return c++,f.ya=null,f.lf=null,f.Ds(d).then(function(a){return f.yx(a),e(),f.lf=f.Kn(f.$f),f.lf})["catch"](b)}e();return f.ae=Promise.reject(Error("No available storage method found.")),f.ae}var c=0;return b()}}var f=this;
g(a)||(a=[a]);var h=this.zx(a);return this.ae=(null!==this.ae?this.ae["catch"](function(){return Promise.resolve()}):Promise.resolve()).then(function(){var a=h[0];return f.ya=null,f.lf=null,f.Ds(a).then(function(a){f.Di=a.Di;e();f.Er();f.Dr=d(h)})})["catch"](function(){e();return f.ae=Promise.reject(Error("No available storage method found.")),f.ae}),this.ae.then(b,c),this.ae},d.prototype.supports=function(a){return!!f[a]},d.prototype.yx=function(a){l(this,a)},d.prototype.zx=function(a){for(var b=
[],c=0,e=a.length;e>c;c++){var d=a[c];this.supports(d)&&b.push(d)}return b},d.prototype.Er=function(){for(var a=0;a<e.length;a++)k(this,e[a])},d.prototype.Vk=function(a){return new d(a)},d}())}("undefined"!=typeof window?window:self);r["default"]=p;d.he=r["default"]},function(d,r){r.Bk=!0;r["default"]=function(d){function p(a,b){a=a||[];b=b||{};try{return new Blob(a,b)}catch(c){if("TypeError"!==c.name)throw c;for(var e=new (d.BlobBuilder||d.sf||d.Lo||d.WebKitBlobBuilder),f=0;f<a.length;f+=1)e.append(a[f]);
return e.getBlob(b.type)}}function m(a){return new Promise(function(b,c){var e=new XMLHttpRequest;e.open("GET",a);e.withCredentials=!0;e.responseType="arraybuffer";e.onreadystatechange=function(){return 4===e.readyState?200===e.status?b({response:e.response,type:e.getResponseHeader("Content-Type")}):void c({status:e.status,response:e.response}):void 0};e.send()})}function k(a){return(new Promise(function(b,c){var e=p([""],{type:"image/png"}),d=a.transaction([F],"readwrite");d.objectStore(F).put(e,
"key");d.oncomplete=function(){var e=a.transaction([F],"readwrite").objectStore(F).get("key");e.onerror=c;e.onsuccess=function(a){var c=URL.createObjectURL(a.target.result);m(c).then(function(a){b(!(!a||"image/png"!==a.type))},function(){b(!1)}).then(function(){URL.revokeObjectURL(c)})}};d.onerror=d.onabort=c}))["catch"](function(){return!1})}function l(a){return"boolean"==typeof A?Promise.resolve(A):k(a).then(function(a){return A=a})}function a(a){return new Promise(function(b,c){var e=new FileReader;
e.onerror=c;e.onloadend=function(c){b({Cr:!0,data:btoa(c.target.result||""),type:a.type})};e.readAsBinaryString(a)})}function b(a){for(var b=atob(a.data),c=b.length,e=new ArrayBuffer(c),d=new Uint8Array(e),f=0;c>f;f++)d[f]=b.charCodeAt(f);return p([e],{type:a.type})}function c(a){var b=this,c=b.Jn().then(function(){var a=v[b.ya.name];return a&&a.nh?a.nh:void 0});return c.then(a,a),c}function e(a){a=v[a.name];var b={};b.promise=new Promise(function(a){b.resolve=a});a.gs.push(b);a.nh?a.nh=a.nh.then(function(){return b.promise}):
a.nh=b.promise}function h(a){function b(){return Promise.resolve()}var e=this,g={db:null};if(a)for(var h in a)g[h]=a[h];v||(v={});var k=v[g.name];k||(k={tl:[],db:null,nh:null,gs:[]},v[g.name]=k);k.tl.push(e);e.Jn||(e.Jn=e.ready,e.ready=c);a=[];for(h=0;h<k.tl.length;h++){var m=k.tl[h];m!==e&&a.push(m.Jn()["catch"](b))}var l=k.tl.slice(0);return Promise.all(a).then(function(){return g.db=k.db,f(g,!1)}).then(function(a){g.db=a;var b;b=e.In.version;if(g.db){var c=!g.db.objectStoreNames.contains(g.Aa),
h=g.version>g.db.version;(g.version<g.db.version&&(g.version!==b&&d.console.warn('The database "'+g.name+"\" can't be downgraded from version "+g.db.version+" to version "+g.version+"."),g.version=g.db.version),h||c)?(c&&(b=g.db.version+1,b>g.version&&(g.version=b)),b=!0):b=!1}else b=!0;return b?f(g,!0):a}).then(function(a){g.db=k.db=a;e.ya=g;for(a=0;a<l.length;a++){var b=l[a];b!==e&&(b.ya.db=g.db,b.ya.version=g.version)}})}function f(a,b){return new Promise(function(c,f){if(a.db){if(!b)return c(a.db);
e(a);a.db.close()}var g=[a.name];b&&g.push(a.version);var h=L.open.apply(L,g);b&&(h.onupgradeneeded=function(b){var c=h.result;try{c.createObjectStore(a.Aa),1>=b.oldVersion&&c.createObjectStore(F)}catch(e){if("ConstraintError"!==e.name)throw e;d.console.warn('The database "'+a.name+'" has been upgraded from version '+b.oldVersion+" to version "+b.newVersion+', but the storage "'+a.Aa+'" already exists.')}});h.onerror=function(){f(h.error)};h.onsuccess=function(){c(h.result);var b=v[a.name].gs.pop();
b&&b.resolve()}})}function g(a,c){var e=this;"string"!=typeof a&&(d.console.warn(a+" used as a key, but it is not a string."),a=String(a));var f=new Promise(function(c,d){e.ready().then(function(){var f=e.ya,g=f.db.transaction(f.Aa,"readonly").objectStore(f.Aa).get(a);g.onsuccess=function(){var a=g.result;void 0===a&&(a=null);a&&a.Cr&&(a=b(a));c(a)};g.onerror=function(){d(g.error)}})["catch"](d)});return x(f,c),f}function r(a,c){var e=this,d=new Promise(function(c,d){e.ready().then(function(){var f=
e.ya,g=f.db.transaction(f.Aa,"readonly").objectStore(f.Aa).openCursor(),h=1;g.onsuccess=function(){var e=g.result;if(e){var d=e.value;d&&d.Cr&&(d=b(d));d=a(d,e.key,h++);void 0!==d?c(d):e["continue"]()}else c()};g.onerror=function(){d(g.error)}})["catch"](d)});return x(d,c),d}function O(b,c,e){var f=this;"string"!=typeof b&&(d.console.warn(b+" used as a key, but it is not a string."),b=String(b));var g=new Promise(function(e,d){var g;f.ready().then(function(){return g=f.ya,c instanceof Blob?l(g.db).then(function(b){return b?
c:a(c)}):c}).then(function(a){var c=g.db.transaction(g.Aa,"readwrite"),f=c.objectStore(g.Aa);null===a&&(a=void 0);c.oncomplete=function(){void 0===a&&(a=null);e(a)};c.onabort=c.onerror=function(){d(h.error?h.error:h.transaction.error)};var h=f.put(a,b)})["catch"](d)});return x(g,e),g}function u(a,b){var c=this;"string"!=typeof a&&(d.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(b,e){c.ready().then(function(){var d=c.ya,f=d.db.transaction(d.Aa,"readwrite"),
g=f.objectStore(d.Aa)["delete"](a);f.oncomplete=function(){b()};f.onerror=function(){e(g.error)};f.onabort=function(){e(g.error?g.error:g.transaction.error)}})["catch"](e)});return x(e,b),e}function n(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var e=b.ya,d=e.db.transaction(e.Aa,"readwrite"),f=d.objectStore(e.Aa).clear();d.oncomplete=function(){a()};d.onabort=d.onerror=function(){c(f.error?f.error:f.transaction.error)}})["catch"](c)});return x(c,a),c}function t(a){var b=this,
c=new Promise(function(a,c){b.ready().then(function(){var e=b.ya,d=e.db.transaction(e.Aa,"readonly").objectStore(e.Aa).count();d.onsuccess=function(){a(d.result)};d.onerror=function(){c(d.error)}})["catch"](c)});return x(c,a),c}function P(a,b){var c=this,e=new Promise(function(b,e){return 0>a?void b(null):void c.ready().then(function(){var d=c.ya,f=!1,g=d.db.transaction(d.Aa,"readonly").objectStore(d.Aa).openCursor();g.onsuccess=function(){var c=g.result;return c?void(0===a?b(c.key):f?b(c.key):(f=
!0,c.advance(a))):void b(null)};g.onerror=function(){e(g.error)}})["catch"](e)});return x(e,b),e}function U(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var e=b.ya,d=e.db.transaction(e.Aa,"readonly").objectStore(e.Aa).openCursor(),f=[];d.onsuccess=function(){var b=d.result;return b?(f.push(b.key),void b["continue"]()):void a(f)};d.onerror=function(){c(d.error)}})["catch"](c)});return x(c,a),c}function x(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var L=L||d.indexedDB||
d.webkitIndexedDB||d.mozIndexedDB||d.$s||d.msIndexedDB;if(L){var A,v,F="local-forage-detect-blob-support";return{Di:"asyncStorage",Kn:h,Zs:r,getItem:g,setItem:O,removeItem:u,clear:n,length:t,key:P,keys:U}}}("undefined"!=typeof window?window:self);d.he=r["default"]},function(d,r,q){r.Bk=!0;r["default"]=function(d){function m(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var k=null;try{if(!(d.localStorage&&"setItem"in d.localStorage))return;k=d.localStorage}catch(l){return}return{Di:"localStorageWrapper",
Kn:function(a){var b={};if(a)for(var c in a)b[c]=a[c];return b.ne=b.name+"/",b.Aa!==this.In.Aa&&(b.ne+=b.Aa+"/"),this.ya=b,(new Promise(function(a){a(q(3))})).then(function(a){return b.Rg=a,Promise.resolve()})},Zs:function(a,b){var c=this,e=c.ready().then(function(){for(var b=c.ya,e=b.ne,d=e.length,m=k.length,l=1,p=0;m>p;p++){var n=k.key(p);if(0===n.indexOf(e)){var t=k.getItem(n);if(t&&(t=b.Rg.el(t)),t=a(t,n.substring(d),l++),void 0!==t)return t}}});return m(e,b),e},getItem:function(a,b){var c=this;
"string"!=typeof a&&(d.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=c.ready().then(function(){var b=c.ya,e=k.getItem(b.ne+a);return e&&(e=b.Rg.el(e)),e});return m(e,b),e},setItem:function(a,b,c){var e=this;"string"!=typeof a&&(d.console.warn(a+" used as a key, but it is not a string."),a=String(a));var h=e.ready().then(function(){void 0===b&&(b=null);var c=b;return new Promise(function(d,h){var m=e.ya;m.Rg.serialize(b,function(b,e){if(e)h(e);else try{k.setItem(m.ne+
a,b),d(c)}catch(l){"QuotaExceededError"!==l.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==l.name||h(l),h(l)}})})});return m(h,c),h},removeItem:function(a,b){var c=this;"string"!=typeof a&&(d.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=c.ready().then(function(){k.removeItem(c.ya.ne+a)});return m(e,b),e},clear:function(a){var b=this,c=b.ready().then(function(){for(var a=b.ya.ne,c=k.length-1;0<=c;c--){var d=k.key(c);0===d.indexOf(a)&&k.removeItem(d)}});return m(c,a),c},length:function(a){var b=
this.keys().then(function(a){return a.length});return m(b,a),b},key:function(a,b){var c=this,e=c.ready().then(function(){var b,e=c.ya;try{b=k.key(a)}catch(d){b=null}return b&&(b=b.substring(e.ne.length)),b});return m(e,b),e},keys:function(a){var b=this,c=b.ready().then(function(){for(var a=b.ya,c=k.length,d=[],g=0;c>g;g++)0===k.key(g).indexOf(a.ne)&&d.push(k.key(g).substring(a.ne.length));return d});return m(c,a),c}}}("undefined"!=typeof window?window:self);d.he=r["default"]},function(d,r){r.Bk=!0;
r["default"]=function(d){function p(a){var b,c,e,d,f;b=.75*a.length;var g=a.length,m=0;"="===a[a.length-1]&&(b--,"="===a[a.length-2]&&b--);var l=new ArrayBuffer(b),p=new Uint8Array(l);for(b=0;g>b;b+=4)c=k.indexOf(a[b]),e=k.indexOf(a[b+1]),d=k.indexOf(a[b+2]),f=k.indexOf(a[b+3]),p[m++]=c<<2|e>>4,p[m++]=(15&e)<<4|d>>2,p[m++]=(3&d)<<6|63&f;return l}function m(a){var b=new Uint8Array(a),c="";for(a=0;a<b.length;a+=3)c+=k[b[a]>>2],c+=k[(3&b[a])<<4|b[a+1]>>4],c+=k[(15&b[a+1])<<2|b[a+2]>>6],c+=k[63&b[a+2]];
return 2===b.length%3?c=c.substring(0,c.length-1)+"=":1===b.length%3&&(c=c.substring(0,c.length-2)+"=="),c}var k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/^~~local_forage_type~([^~]+)~/;return{serialize:function(a,b){var c="";if(a&&(c=a.toString()),a&&("[object ArrayBuffer]"===a.toString()||a.buffer&&"[object ArrayBuffer]"===a.buffer.toString())){var e,d="__lfsc__:";a instanceof ArrayBuffer?(e=a,d+="arbf"):(e=a.buffer,"[object Int8Array]"===c?d+="si08":"[object Uint8Array]"===
c?d+="ui08":"[object Uint8ClampedArray]"===c?d+="uic8":"[object Int16Array]"===c?d+="si16":"[object Uint16Array]"===c?d+="ur16":"[object Int32Array]"===c?d+="si32":"[object Uint32Array]"===c?d+="ui32":"[object Float32Array]"===c?d+="fl32":"[object Float64Array]"===c?d+="fl64":b(Error("Failed to get type for BinaryArray")));b(d+m(e))}else if("[object Blob]"===c)c=new FileReader,c.onload=function(){var c="~~local_forage_type~"+a.type+"~"+m(this.result);b("__lfsc__:blob"+c)},c.readAsArrayBuffer(a);else try{b(JSON.stringify(a))}catch(f){console.error("Couldn't convert value into a JSON string: ",
a),b(null,f)}},el:function(a){if("__lfsc__:"!==a.substring(0,9))return JSON.parse(a);var b,c=a.substring(13);a=a.substring(9,13);if("blob"===a&&l.test(c)){var e=c.match(l);b=e[1];c=c.substring(e[0].length)}c=p(c);switch(a){case "arbf":return c;case "blob":var h;c=[c];b={type:b};c=c||[];b=b||{};try{h=new Blob(c,b)}catch(f){if("TypeError"!==f.name)throw f;h=new (d.BlobBuilder||d.sf||d.Lo||d.WebKitBlobBuilder);for(a=0;a<c.length;a+=1)h.append(c[a]);h=h.getBlob(b.type)}return h;case "si08":return new Int8Array(c);
case "ui08":return new Uint8Array(c);case "uic8":return new Uint8ClampedArray(c);case "si16":return new Int16Array(c);case "ur16":return new Uint16Array(c);case "si32":return new Int32Array(c);case "ui32":return new Uint32Array(c);case "fl32":return new Float32Array(c);case "fl64":return new Float64Array(c);default:throw Error("Unkown type: "+a);}},OC:p,wC:m}}("undefined"!=typeof window?window:self);d.he=r["default"]},function(d,r,q){r.Bk=!0;r["default"]=function(d){function m(a){var b=this,c={db:null};
if(a)for(var e in a)c[e]="string"!=typeof a[e]?a[e].toString():a[e];var d=new Promise(function(a,e){try{c.db=r(c.name,String(c.version),c.description,c.size)}catch(d){return e(d)}c.db.transaction(function(d){d.executeSql("CREATE TABLE IF NOT EXISTS "+c.Aa+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){b.ya=c;a()},function(a,b){e(b)})})});return(new Promise(function(a){a(q(3))})).then(function(a){return c.Rg=a,d})}function k(a,b){var c=this;"string"!=typeof a&&(d.console.warn(a+" used as a key, but it is not a string."),
a=String(a));var e=new Promise(function(b,e){c.ready().then(function(){var d=c.ya;d.db.transaction(function(c){c.executeSql("SELECT * FROM "+d.Aa+" WHERE key = ? LIMIT 1",[a],function(a,c){var e=c.rows.length?c.rows.item(0).value:null;e&&(e=d.Rg.el(e));b(e)},function(a,b){e(b)})})})["catch"](e)});return g(e,b),e}function l(a,b){var c=this,e=new Promise(function(b,e){c.ready().then(function(){var d=c.ya;d.db.transaction(function(c){c.executeSql("SELECT * FROM "+d.Aa,[],function(c,e){for(var f=e.rows,
g=f.length,h=0;g>h;h++){var k=f.item(h),m=k.value;if(m&&(m=d.Rg.el(m)),m=a(m,k.key,h+1),void 0!==m)return void b(m)}b()},function(a,b){e(b)})})})["catch"](e)});return g(e,b),e}function a(a,b,c){var e=this;"string"!=typeof a&&(d.console.warn(a+" used as a key, but it is not a string."),a=String(a));var f=new Promise(function(c,d){e.ready().then(function(){void 0===b&&(b=null);var f=b,g=e.ya;g.Rg.serialize(b,function(b,e){e?d(e):g.db.transaction(function(e){e.executeSql("INSERT OR REPLACE INTO "+g.Aa+
" (key, value) VALUES (?, ?)",[a,b],function(){c(f)},function(a,b){d(b)})},function(a){a.code===a.QUOTA_ERR&&d(a)})})})["catch"](d)});return g(f,c),f}function b(a,b){var c=this;"string"!=typeof a&&(d.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(b,e){c.ready().then(function(){var d=c.ya;d.db.transaction(function(c){c.executeSql("DELETE FROM "+d.Aa+" WHERE key = ?",[a],function(){b()},function(a,b){e(b)})})})["catch"](e)});return g(e,b),e}function c(a){var b=
this,c=new Promise(function(a,c){b.ready().then(function(){var e=b.ya;e.db.transaction(function(b){b.executeSql("DELETE FROM "+e.Aa,[],function(){a()},function(a,b){c(b)})})})["catch"](c)});return g(c,a),c}function e(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var e=b.ya;e.db.transaction(function(b){b.executeSql("SELECT COUNT(key) as c FROM "+e.Aa,[],function(b,c){var e=c.rows.item(0).Ii;a(e)},function(a,b){c(b)})})})["catch"](c)});return g(c,a),c}function h(a,b){var c=this,
e=new Promise(function(b,e){c.ready().then(function(){var d=c.ya;d.db.transaction(function(c){c.executeSql("SELECT key FROM "+d.Aa+" WHERE id = ? LIMIT 1",[a+1],function(a,c){var e=c.rows.length?c.rows.item(0).key:null;b(e)},function(a,b){e(b)})})})["catch"](e)});return g(e,b),e}function f(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var e=b.ya;e.db.transaction(function(b){b.executeSql("SELECT key FROM "+e.Aa,[],function(b,c){for(var e=[],d=0;d<c.rows.length;d++)e.push(c.rows.item(d).key);
a(e)},function(a,b){c(b)})})})["catch"](c)});return g(c,a),c}function g(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var r=d.openDatabase;if(r)return{Di:"webSQLStorage",Kn:m,Zs:l,getItem:k,setItem:a,removeItem:b,clear:c,length:e,key:h,keys:f}}("undefined"!=typeof window?window:self);d.he=r["default"]}])};"object"==typeof exports&&"object"==typeof module?module.he=yc():"function"==typeof define&&define.vC?define([],yc):"object"==typeof exports?exports.localforage=yc():this.localforage=
yc()}catch(zc){xc=!0}function Z(d){this.b=d}
(function(){function d(a){a.b.trigger(Z.prototype.k.xk,a)}function r(){}function q(){}function p(){}var m="",k="",l="";"undefined"!==typeof window.is_scirra_arcade&&(l="sa"+window.scirra_arcade_id+"_");var a=Z.prototype;a.R=function(a){this.za=a;this.b=a.b};a.R.prototype.I=function(){};a.N=function(a){this.type=a;this.b=a.b};var b=a.N.prototype;b.I=function(){this.Qp=this.Rp=0};b.Te=function(){};b.Qa=function(){return{}};b.bb=function(){};r.prototype.uw=function(a){return m===a};r.prototype.ew=function(){return!0};
r.prototype.sw=function(a){return m===a};r.prototype.dw=function(){return!0};r.prototype.xk=function(){return!0};r.prototype.$q=function(a){return m===a};r.prototype.br=function(a){return m===a};r.prototype.aw=function(){return!0};r.prototype.$v=function(){return!0};a.k=new r;q.prototype.Vw=function(a,b){if(xc)d(this);else{var h=l+a;this.Rp++;var f=this;localforage.setItem(h,b,function(b,e){f.Rp--;b?f.b.trigger(Z.prototype.k.xk,f):(m=a,k=e,f.b.trigger(Z.prototype.k.ew,f),f.b.trigger(Z.prototype.k.uw,
f),k=m="");0===f.Rp&&f.b.trigger(Z.prototype.k.aw,f)})}};q.prototype.Jv=function(a){if(xc)d(this);else{var b=l+a;this.Qp++;var h=this;localforage.getItem(b,function(b,e){h.Qp--;if(b)h.b.trigger(Z.prototype.k.xk,h);else{m=a;k=e;if("undefined"===typeof k||null===k)k="";h.b.trigger(Z.prototype.k.dw,h);h.b.trigger(Z.prototype.k.sw,h);k=m=""}0===h.Qp&&h.b.trigger(Z.prototype.k.$v,h)})}};q.prototype.tv=function(a){if(xc)d(this);else{var b=this;localforage.getItem(l+a,function(d,f){d?b.b.trigger(Z.prototype.k.xk,
b):(m=a,null===f?(k="",b.b.trigger(Z.prototype.k.br,b)):(k=f,b.b.trigger(Z.prototype.k.$q,b)),k=m="")})}};a.B=new q;p.prototype.Uv=function(a){a.Wm(k)};a.U=new p})();function Ac(d){this.b=d}
(function(){function d(){}function r(){}function q(){}var p=Ac.prototype;p.R=function(a){this.za=a;this.b=a.b};p.R.prototype.I=function(){};p.N=function(a){this.type=a;this.b=a.b;this.ih=Array(4);this.Vu=this.qn=this.bh=this.Mf=this.Lf=0;this.Io=!1};var m=p.N.prototype;m.I=function(){var a=this;if(!this.b.Ka){jQuery(document).mousemove(function(b){a.Jp(b)});jQuery(document).mousedown(function(b){a.Ip(b)});jQuery(document).mouseup(function(b){a.Kp(b)});jQuery(document).dblclick(function(b){a.EA(b)});
var b=function(b){a.HA(b)};document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var k={left:0,top:0};m.Jp=function(a){var b=this.b.Ka?k:jQuery(this.b.canvas).offset();this.Lf=a.pageX-b.left;this.Mf=a.pageY-b.top};m.Jt=function(){return 0<this.b.ic?!0:0<=this.Lf&&0<=this.Mf&&this.Lf<this.b.width&&this.Mf<this.b.height};m.Ip=function(a){this.Jt()&&(this.ih[a.which]=!0,this.b.lb=!0,this.b.trigger(Ac.prototype.k.cw,this),this.bh=a.which-1,this.qn=0,this.b.trigger(Ac.prototype.k.Dn,
this),this.b.trigger(Ac.prototype.k.En,this),this.b.lb=!1)};m.Kp=function(a){this.ih[a.which]&&(this.b.Dl&&!this.b.Oe&&a.preventDefault(),this.b.Dl=!0,this.ih[a.which]=!1,this.b.lb=!0,this.bh=a.which-1,this.b.trigger(Ac.prototype.k.mr,this),this.b.lb=!1)};m.EA=function(a){this.Jt()&&(a.preventDefault(),this.b.lb=!0,this.bh=a.which-1,this.qn=1,this.b.trigger(Ac.prototype.k.Dn,this),this.b.trigger(Ac.prototype.k.En,this),this.b.lb=!1)};m.HA=function(a){this.Vu=0>(a.wheelDelta?a.wheelDelta:a.detail?
-a.detail:0)?0:1;this.Io=!1;this.b.lb=!0;this.b.trigger(Ac.prototype.k.Fw,this);this.b.lb=!1;this.Io&&pb(a)&&a.preventDefault()};m.Ue=function(){var a,b;a=0;for(b=this.ih.length;a<b;++a)this.ih[a]&&(this.ih[a]=!1,this.bh=a-1,this.b.trigger(Ac.prototype.k.mr,this))};d.prototype.Dn=function(a,b){return a===this.bh&&b===this.qn};d.prototype.cw=function(){return!0};d.prototype.mr=function(a){return a===this.bh};d.prototype.En=function(a,b,c){return a!==this.bh||b!==this.qn?!1:this.b.lk(c,this.Lf,this.Mf)};
d.prototype.Fw=function(a){this.Io=!0;return a===this.Vu};p.k=new d;var l=null;r.prototype.Rw=function(a){this.b.Ka||(a="auto pointer text crosshair move help wait none".split(" ")[a],l!==a&&(l=a,document.body.style.cursor=a))};p.B=new r;q.prototype.Bi=function(a,b){var c,e,d,f,g;ja(b)?(c=this.b.Ke(0),e=c.scale,d=c.gc,f=c.zc,g=c.m,c.scale=1,c.gc=1,c.zc=1,c.m=0,a.K(c.sb(this.Lf,this.Mf,!0)),c.scale=e,c.gc=d,c.zc=f,c.m=g):(c=ka(b)?this.b.Ke(b):this.b.aj(b))?a.K(c.sb(this.Lf,this.Mf,!0)):a.K(0)};q.prototype.Ci=
function(a,b){var c,e,d,f,g;ja(b)?(c=this.b.Ke(0),e=c.scale,d=c.gc,f=c.Ac,g=c.m,c.scale=1,c.gc=1,c.Ac=1,c.m=0,a.K(c.sb(this.Lf,this.Mf,!1)),c.scale=e,c.gc=d,c.Ac=f,c.m=g):(c=ka(b)?this.b.Ke(b):this.b.aj(b))?a.K(c.sb(this.Lf,this.Mf,!1)):a.K(0)};p.U=new q})();function Bc(d){this.b=d}
(function(){function d(d){this.La=d;this.Gb=!1;this.m=this.speed=this.y=this.x=0;this.opacity=1;this.pf=this.Eh=this.size=this.Bl=0}function r(){}var q=Bc.prototype;q.R=function(d){this.za=d;this.b=d.b};var p=q.R.prototype;p.I=function(){this.S||(this.Ma=new Image,this.Ma.bs=this.Aq,this.Mb=null,this.b.kv(this.Ma,this.zq))};p.rm=function(){this.S||(this.Mb=null)};p.Lp=function(){this.S||!this.j.length||this.Mb||(this.Mb=this.b.H.Zl(this.Ma,!0,this.b.Pa,this.Bq))};p.sp=function(){this.S||this.Mb||
!this.b.H||(this.Mb=this.b.H.Zl(this.Ma,!0,this.b.Pa,this.Bq))};p.Jq=function(){this.S||this.j.length||!this.Mb||(this.b.H.deleteTexture(this.Mb),this.Mb=null)};p.Up=function(d){d.drawImage(this.Ma,0,0)};d.prototype.init=function(){var d=this.La;this.x=d.x-d.zn/2+Math.random()*d.zn;this.y=d.y-d.An/2+Math.random()*d.An;this.speed=d.Qo-d.bn/2+Math.random()*d.bn;this.m=d.m-d.cn/2+Math.random()*d.cn;this.opacity=d.Oo;this.size=d.Po-d.an/2+Math.random()*d.an;this.Bl=d.Ho-d.Cl/2+Math.random()*d.Cl;this.pf=
this.Eh=0};d.prototype.Ba=function(d){var m=this.La;this.x+=Math.cos(this.m)*this.speed*d;this.y+=Math.sin(this.m)*this.speed*d;this.y+=this.Eh*d;this.speed+=m.ka*d;this.size+=this.Bl*d;this.Eh+=m.Pb*d;this.pf+=d;1>this.size?this.Gb=!1:(0!==m.xj&&(this.m+=Math.random()*m.xj*d-m.xj*d/2),0!==m.zj&&(this.speed+=Math.random()*m.zj*d-m.zj*d/2),0!==m.yj&&(this.opacity+=Math.random()*m.yj*d-m.yj*d/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=m.ph&&this.pf>=m.timeout&&(this.Gb=!1),
2===m.ph&&0>=this.speed&&(this.Gb=!1))};d.prototype.rd=function(d){var m=this.La.opacity*this.opacity;if(0!==m){0===this.La.ph&&(m*=1-this.pf/this.La.timeout);d.globalAlpha=m;var m=this.x-this.size/2,a=this.y-this.size/2;this.La.b.Pd&&(m=m+.5|0,a=a+.5|0);d.drawImage(this.La.type.Ma,m,a,this.size,this.size)}};d.prototype.vc=function(d){var m=this.La.opacity*this.opacity;0===this.La.ph&&(m*=1-this.pf/this.La.timeout);var a=this.size,b=a*this.La.gu,c=this.x-a/2,e=this.y-a/2;this.La.b.Pd&&(c=c+.5|0,e=
e+.5|0);1>b||0===m||(b<d.xA||b>d.zp?(d.Sg(m),d.ei(c,e,c+a,e,c+a,e+a,c,e+a)):d.PA(this.x,this.y,b,m))};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};q.N=function(d){this.type=d;this.b=d.b};var p=q.N.prototype,m=[];p.I=function(){var d=this.C;this.Xj=d[0];this.cn=Q(d[1]);this.Vg=d[2];this.uq=!0;this.Qo=d[3];this.Po=d[4];this.Oo=
d[5]/100;this.Ho=d[6];this.zn=d[7];this.An=d[8];this.bn=d[9];this.an=d[10];this.Cl=d[11];this.ka=d[12];this.Pb=d[13];this.xj=d[14];this.zj=d[15];this.yj=d[16];this.ph=d[17];this.timeout=d[18];this.Og=0;this.gu=1;this.zm=this.x;this.Bm=this.y;this.Am=this.x;this.ym=this.y;this.Gx(function(d){d.Ea.set(d.zm,d.Bm,d.Am,d.ym);d.$b.Uf(d.Ea);d.Ok=!1;d.Nq();d.hv()});this.kc||(this.ob=[]);this.b.oi(this);this.type.sp();if(1===this.Vg)for(d=0;d<this.Xj;d++)this.Gk().opacity=0;this.Xi=!0};p.Qa=function(){var d=
{r:this.Xj,sc:this.cn,st:this.Vg,s:this.uq,isp:this.Qo,isz:this.Po,io:this.Oo,gr:this.Ho,xr:this.zn,yr:this.An,spr:this.bn,szr:this.an,grnd:this.Cl,acc:this.ka,g:this.Pb,lar:this.xj,lsr:this.zj,lor:this.yj,dm:this.ph,to:this.timeout,pcc:this.Og,ft:this.Xi,p:[]},m,a,b,c=d.p;m=0;for(a=this.ob.length;m<a;m++)b=this.ob[m],c.push([b.x,b.y,b.speed,b.m,b.opacity,b.Bl,b.size,b.Eh,b.pf]);return d};p.bb=function(d){this.Xj=d.r;this.cn=d.sc;this.Vg=d.st;this.uq=d.s;this.Qo=d.isp;this.Po=d.isz;this.Oo=d.io;this.Ho=
d.gr;this.zn=d.xr;this.An=d.yr;this.bn=d.spr;this.an=d.szr;this.Cl=d.grnd;this.ka=d.acc;this.Pb=d.g;this.xj=d.lar;this.zj=d.lsr;this.yj=d.lor;this.ph=d.dm;this.timeout=d.to;this.Og=d.pcc;this.Xi=d.ft;m.push.apply(m,this.ob);G(this.ob);var l,a,b,c=d.p;d=0;for(l=c.length;d<l;d++)a=this.Gk(),b=c[d],a.x=b[0],a.y=b[1],a.speed=b[2],a.m=b[3],a.opacity=b[4],a.Bl=b[5],a.size=b[6],a.Eh=b[7],a.pf=b[8]};p.Te=function(){m.push.apply(m,this.ob);G(this.ob)};p.Gk=function(){var k;m.length?(k=m.pop(),k.La=this):k=
new d(this);this.ob.push(k);k.Gb=!0;return k};p.Ba=function(){var d=this.b.Jd(this),l,a,b,c;if(0===this.Vg&&this.uq)for(this.Og+=d*this.Xj,a=C(this.Og),this.Og-=a,l=0;l<a;l++)b=this.Gk(),b.init();this.zm=this.x;this.Bm=this.y;this.Am=this.x;this.ym=this.y;c=l=0;for(a=this.ob.length;l<a;l++)b=this.ob[l],this.ob[c]=b,this.b.ba=!0,1===this.Vg&&this.Xi&&b.init(),b.Ba(d),b.Gb?(b.left()<this.zm&&(this.zm=b.left()),b.right()>this.Am&&(this.Am=b.right()),b.top()<this.Bm&&(this.Bm=b.top()),b.bottom()>this.ym&&
(this.ym=b.bottom()),c++):m.push(b);Fa(this.ob,c);this.D();this.Xi=!1;1===this.Vg&&0===this.ob.length&&this.b.$d(this)};p.rd=function(d){var m,a,b,c=this.q;m=0;for(a=this.ob.length;m<a;m++)b=this.ob[m],b.right()>=c.Ca&&b.bottom()>=c.Da&&b.left()<=c.Ha&&b.top()<=c.Ga&&b.rd(d)};p.vc=function(d){this.gu=this.q.xc();d.Tc(this.type.Mb);var m,a,b,c=this.q;m=0;for(a=this.ob.length;m<a;m++)b=this.ob[m],b.right()>=c.Ca&&b.bottom()>=c.Da&&b.left()<=c.Ha&&b.top()<=c.Ga&&b.vc(d)};q.k=new function(){};r.prototype.Zw=
function(d){this.Xj=d;var l;if(1===this.Vg&&this.Xi)if(d<this.ob.length)for(d=this.ob.length-d,l=0;l<d;l++)m.push(this.ob.pop());else if(d>this.ob.length)for(d=d-this.ob.length,l=0;l<d;l++)this.Gk().opacity=0};q.B=new r;q.U=new function(){}})();function Y(d){this.b=d}
(function(){function d(){if(0===this.co.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.li?b.drawImage(this.Ma,this.Zh,this.$h,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.Ma,0,0,this.width,this.height);this.co=a.toDataURL("image/png")}return this.co}function r(){}function q(a){a[0]=0;a[1]=0;a[2]=0;g.push(a)}function p(a,b){return a<b?""+a+","+b:""+b+","+a}function m(a,b,c,d){b=b.uid;c=c.uid;var e=p(b,c);if(a.hasOwnProperty(e))a[e][2]=
d;else{var f=g.length?g.pop():[0,0,0];f[0]=b;f[1]=c;f[2]=d;a[e]=f}}function k(a,b,c){b=p(b.uid,c.uid);a.hasOwnProperty(b)&&(q(a[b]),delete a[b])}function l(a,b,c){b=p(b.uid,c.uid);if(a.hasOwnProperty(b))return N=a[b][2],!0;N=-2;return!1}function a(){}function b(){}var c=Y.prototype;c.R=function(a){this.za=a;this.b=a.b};var e=c.R.prototype;e.I=function(){if(!this.S){var a,b,c,e,f,g,h,m,k;this.Cd=[];this.fj=!1;a=0;for(b=this.Kc.length;a<b;a++){f=this.Kc[a];h={};h.name=f[0];h.speed=f[1];h.loop=f[2];
h.cq=f[3];h.dq=f[4];h.hu=f[5];h.ea=f[6];h.frames=[];c=0;for(e=f[7].length;c<e;c++)g=f[7][c],m={},m.zq=g[0],m.Aq=g[1],m.Zh=g[2],m.$h=g[3],m.width=g[4],m.height=g[5],m.duration=g[6],m.Mc=g[7],m.Nc=g[8],m.No=g[9],m.Em=g[10],m.iu=g[11],m.li=0!==m.width,m.co="",m.zC=d,k={left:0,top:0,right:1,bottom:1},m.rq=k,m.Mb=null,(k=this.b.nz(g[0]))?m.Ma=k:(m.Ma=new Image,m.Ma.Wx=g[0],m.Ma.bs=g[1],m.Ma.Ox=null,this.b.kv(m.Ma,g[0])),h.frames.push(m),this.Cd.push(m);this.Kc[a]=h}}};e.dv=function(){var a,b,c;a=0;for(b=
this.j.length;a<b;a++)c=this.j[a],c.Xk=c.Hb.Mb};e.rm=function(){if(!this.S){var a,b,c;a=0;for(b=this.Cd.length;a<b;++a)c=this.Cd[a],c.Ma.Ox=null,c.Mb=null;this.fj=!1;this.dv()}};e.Lp=function(){if(!this.S&&this.j.length){var a,b,c;a=0;for(b=this.Cd.length;a<b;++a)c=this.Cd[a],c.Mb=this.b.H.Zl(c.Ma,!1,this.b.Pa,c.iu);this.dv()}};e.sp=function(){if(!this.S&&!this.fj&&this.b.H){var a,b,c;a=0;for(b=this.Cd.length;a<b;++a)c=this.Cd[a],c.Mb=this.b.H.Zl(c.Ma,!1,this.b.Pa,c.iu);this.fj=!0}};e.Jq=function(){if(!this.S&&
!this.j.length&&this.fj){var a,b,c;a=0;for(b=this.Cd.length;a<b;++a)c=this.Cd[a],this.b.H.deleteTexture(c.Mb),c.Mb=null;this.fj=!1}};var h=[];e.Up=function(a){var b,c,d;G(h);b=0;for(c=this.Cd.length;b<c;++b)d=this.Cd[b].Ma,-1===h.indexOf(d)&&(a.drawImage(d,0,0),h.push(d))};c.N=function(a){this.type=a;this.b=a.b;a=this.type.Kc[0].frames[0].Em;this.kc?this.la.dk(a):this.la=new ib(a)};var f=c.N.prototype;f.I=function(){this.visible=0===this.C[0];this.Gl=this.pj=!1;this.Wc=0!==this.C[3];this.Ia=this.As(this.C[1])||
this.type.Kc[0];this.L=this.C[2];0>this.L&&(this.L=0);this.L>=this.Ia.frames.length&&(this.L=this.Ia.frames.length-1);var a=this.Ia.frames[this.L];this.la.dk(a.Em);this.Mc=a.Mc;this.Nc=a.Nc;this.lh=this.Ia.speed;this.xf=this.Ia.dq;1===this.type.Kc.length&&1===this.type.Kc[0].frames.length||0===this.lh||(this.b.oi(this),this.pj=!0);this.kc?this.ee.reset():this.ee=new gb;this.Je=this.ee.M;this.bg=!0;this.ze=0;this.ag=!0;this.jh=this.Kr="";this.Vr=0;this.Sk=-1;this.type.sp();var b,c,d,e,f,g,h,a=0;for(b=
this.type.Kc.length;a<b;a++)for(e=this.type.Kc[a],c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.Ma.width,f.height=f.Ma.height),f.li&&(h=f.Ma,g=f.rq,g.left=f.Zh/h.width,g.top=f.$h/h.height,g.right=(f.Zh+f.width)/h.width,g.bottom=(f.$h+f.height)/h.height,0===f.Zh&&0===f.$h&&f.width===h.width&&f.height===h.height&&(f.li=!1));this.Hb=this.Ia.frames[this.L];this.Xk=this.Hb.Mb};f.Qa=function(){var a={a:this.Ia.ea,f:this.L,cas:this.lh,fs:this.Je,ar:this.ze,at:this.ee.M,rt:this.xf};
this.bg||(a.ap=this.bg);this.ag||(a.af=this.ag);return a};f.bb=function(a){var b=this.sz(a.a);b&&(this.Ia=b);this.L=a.f;0>this.L&&(this.L=0);this.L>=this.Ia.frames.length&&(this.L=this.Ia.frames.length-1);this.lh=a.cas;this.Je=a.fs;this.ze=a.ar;this.ee.reset();this.ee.M=a.at;this.bg=a.hasOwnProperty("ap")?a.ap:!0;this.ag=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.xf=a.rt:this.xf=this.Ia.dq;this.Hb=this.Ia.frames[this.L];this.Xk=this.Hb.Mb;this.la.dk(this.Hb.Em);this.Mc=this.Hb.Mc;
this.Nc=this.Hb.Nc};f.Rn=function(a){this.L=a?0:this.Ia.frames.length-1;this.bg=!1;this.Kr=this.Ia.name;this.Gl=!0;this.b.trigger(Y.prototype.k.bw,this);this.b.trigger(Y.prototype.k.Wq,this);this.Gl=!1;this.ze=0};f.sf=function(){return this.ee.M};f.Ba=function(){this.ee.add(this.b.Jd(this));this.jh.length&&this.hs();0<=this.Sk&&this.ks();var a=this.ee.M,b=this.Ia,c=b.frames[this.L],d=c.duration/this.lh;this.bg&&a>=this.Je+d&&(this.ag?this.L++:this.L--,this.Je+=d,this.L>=b.frames.length&&(b.hu?(this.ag=
!1,this.L=b.frames.length-2):b.loop?this.L=this.xf:(this.ze++,this.ze>=b.cq?this.Rn(!1):this.L=this.xf)),0>this.L&&(b.hu?(this.L=1,this.ag=!0,b.loop||(this.ze++,this.ze>=b.cq&&this.Rn(!0))):b.loop?this.L=this.xf:(this.ze++,this.ze>=b.cq?this.Rn(!0):this.L=this.xf)),0>this.L?this.L=0:this.L>=b.frames.length&&(this.L=b.frames.length-1),a>this.Je+b.frames[this.L].duration/this.lh&&(this.Je=a),a=b.frames[this.L],this.gh(c,a),this.b.ba=!0)};f.As=function(a){var b,c,d;b=0;for(c=this.type.Kc.length;b<c;b++)if(d=
this.type.Kc[b],ob(d.name,a))return d;return null};f.sz=function(a){var b,c,d;b=0;for(c=this.type.Kc.length;b<c;b++)if(d=this.type.Kc[b],d.ea===a)return d;return null};f.hs=function(){var a=this.Ia.frames[this.L],b=this.As(this.jh);this.jh="";!b||ob(b.name,this.Ia.name)&&this.bg||(this.Ia=b,this.lh=b.speed,this.xf=b.dq,0>this.L&&(this.L=0),this.L>=this.Ia.frames.length&&(this.L=this.Ia.frames.length-1),1===this.Vr&&(this.L=0),this.bg=!0,this.Je=this.ee.M,this.ag=!0,this.gh(a,this.Ia.frames[this.L]),
this.b.ba=!0)};f.ks=function(){var a=this.Ia.frames[this.L],b=this.L;this.L=C(this.Sk);0>this.L&&(this.L=0);this.L>=this.Ia.frames.length&&(this.L=this.Ia.frames.length-1);b!==this.L&&(this.gh(a,this.Ia.frames[this.L]),this.Je=this.ee.M,this.b.ba=!0);this.Sk=-1};f.gh=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.Mc=b.Mc;this.Nc=b.Nc;this.la.dk(b.Em);this.D();this.Hb=b;this.Xk=b.Mb;c=0;for(d=this.T.length;c<d;c++)e=this.T[c],e.FA&&
e.FA(a,b);this.b.trigger(Y.prototype.k.gh,this)};f.rd=function(a){a.globalAlpha=this.opacity;var b=this.Hb,c=b.li,d=b.Ma,e=this.x,f=this.y,g=this.width,h=this.height;if(0===this.m&&0<=g&&0<=h)e-=this.Mc*g,f-=this.Nc*h,this.b.Pd&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.Zh,b.$h,b.width,b.height,e,f,g,h):a.drawImage(d,e,f,g,h);else{this.b.Pd&&(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.m*m*k);e=0-this.Mc*pa(g);
f=0-this.Nc*pa(h);c?a.drawImage(d,b.Zh,b.$h,b.width,b.height,e,f,pa(g),pa(h)):a.drawImage(d,e,f,pa(g),pa(h));a.restore()}};f.qh=function(a){this.vc(a)};f.vc=function(a){a.Tc(this.Xk);a.Sg(this.opacity);var b=this.Hb,c=this.$b;if(this.b.Pd){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.li?a.Qf(c.Wb+d,c.Xb+e,c.Hc+d,c.Ic+e,c.tc+d,c.uc+e,c.qc+d,c.rc+e,b.rq):a.ei(c.Wb+d,c.Xb+e,c.Hc+d,c.Ic+e,c.tc+d,c.uc+e,c.qc+d,c.rc+e)}else b.li?a.Qf(c.Wb,c.Xb,c.Hc,c.Ic,c.tc,c.uc,c.qc,c.rc,b.rq):a.ei(c.Wb,
c.Xb,c.Hc,c.Ic,c.tc,c.uc,c.qc,c.rc)};f.Az=function(a){var b=this.Hb,c,d;c=0;for(d=b.No.length;c<d;c++)if(ob(a,b.No[c][0]))return c;return-1};f.$i=function(a,b){var c=this.Hb,d=c.No,e;y(a)?e=this.Az(a):e=a-1;e=C(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.Mc)*this.width,d=d[e][2],d=(d-c.Nc)*this.height,c=Math.cos(this.m);e=Math.sin(this.m);var g=f*c-d*e,d=d*c+f*e,f=g+this.x,d=d+this.y;return b?f:d};var g=[],N=-2,O=[];r.prototype.hw=function(a){if(!a)return!1;var b=this.b,c=b.Zi(),
d=c.type,e=null;c.J.collmemory?e=c.J.collmemory:(e={},c.J.collmemory=e);c.J.spriteCreatedDestroyCallback||(c.J.spriteCreatedDestroyCallback=!0,b.Mn(function(a){var b=c.J.collmemory;a=a.uid;var d,e;for(d in b)b.hasOwnProperty(d)&&(e=b[d],e[0]===a||e[1]===a)&&(q(b[d]),delete b[d])}));var f=d.W(),g=a.W(),f=f.wc(),h,n,p,t,r,u,P,w=this.b.hd,U=w-1,D=b.$a().gb;for(n=0;n<f.length;n++){p=f[n];g.da?(p.xa(),this.b.zl(p.q,a,p.Ea,O),h=O,this.b.Ex(p,a,h)):h=g.wc();for(t=0;t<h.length;t++)r=h[t],b.mc(p,r)||b.Sx(p,
r)?(u=l(e,p,r),u=!u||N<U,m(e,p,r,w),u&&(b.Wj(D.Fa),u=d.W(),P=a.W(),u.da=!1,P.da=!1,d===a?(u.j.length=2,u.j[0]=p,u.j[1]=r,d.Ed()):(u.j.length=1,P.j.length=1,u.j[0]=p,P.j[0]=r,d.Ed(),a.Ed()),D.fq(),b.Pf(D.Fa))):k(e,p,r);G(O)}return!1};var u=null,n=new ea,t=!1,P=[],U=new va(0,0,0,0);e.finish=function(a){if(t){if(a){var b=this.b.$a().gb.ed;a=u.W();var c=n.ff(),d,e;if(a.da){a.da=!1;G(a.j);d=0;for(e=c.length;d<e;++d)a.j[d]=c[d];if(b)for(G(a.fa),d=0,e=u.j.length;d<e;++d)c=u.j[d],n.contains(c)||a.fa.push(c)}else if(b)for(b=
a.j.length,d=0,e=c.length;d<e;++d)a.j[b+d]=c[d],Ja(a.fa,c[d]);else Ga(a.j,c);u.Ed()}n.clear();t=!1}};r.prototype.Sv=function(a){if(a){var b=!1,c,d,e,f=this.b.Zi(),g=f.type,f=f.Jl;c=a.W();d=this.b.$a().gb.ed;var h;c.da?(this.xa(),U.kh(this.Ea),U.offset(0,0),this.b.zl(this.q,a,U,P),h=P):h=d?this.b.eA()&&!c.fa.length&&c.j.length?c.j:c.fa:c.j;u=a;t=g!==a&&!f;c=0;for(d=h.length;c<d;c++)if(e=h[c],this.b.mc(this,e)){b=!0;if(f)break;g!==a&&n.add(e)}G(P);a=b}else a=!1;return a};r.prototype.Lv=function(a){return this.jh.length?
ob(this.jh,a):ob(this.Ia.name,a)};r.prototype.xv=function(a,b){return jc(this.L,a,b)};r.prototype.Wq=function(a){return ob(this.Kr,a)};r.prototype.bw=function(){return!0};r.prototype.gh=function(){return!0};c.k=new r;a.prototype.hx=function(a,b,c){if(a&&b&&(b=this.b.Vk(a,b,this.$i(c,!0),this.$i(c,!1)))){"undefined"!==typeof b.m&&(b.m=this.m,b.D());this.b.bd++;var d,e,f;this.b.trigger(Object.getPrototypeOf(a.za).k.Yf,b);if(b.Rb)for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],this.b.trigger(Object.getPrototypeOf(f.type.za).k.Yf,
f);this.b.bd--;d=this.b.wz();c=!1;if(ja(d.J.Spawn_LastExec)||d.J.Spawn_LastExec<this.b.qg)c=!0,d.J.Spawn_LastExec=this.b.qg;if(a!=this.type&&(a=a.W(),a.da=!1,c?(G(a.j),a.j[0]=b):a.j.push(b),b.Rb))for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],a=f.type.W(),a.da=!1,c?(G(a.j),a.j[0]=f):a.j.push(f)}};a.prototype.Ow=function(a,b){this.jh=a;this.Vr=b;this.pj||(this.b.oi(this),this.pj=!0);this.Gl||this.hs()};a.prototype.Pw=function(a){this.Sk=a;this.pj||(this.b.oi(this),this.pj=!0);this.Gl||this.ks()};
a.prototype.$w=function(a){var b=this.Hb,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.D()};a.prototype.Qw=function(a){this.Wc!==(0!==a)&&((this.Wc=0!==a)?this.D():(this.nd.right>=this.nd.left&&this.type.Ki.update(this,this.nd,null),this.nd.set(0,0,-1,-1)))};c.B=new a;b.prototype.qv=function(a){a.wa(this.L)};c.U=new b})();function Cc(d){this.b=d}
(function(){function d(){return a.length?a.pop():{}}function r(b){var c,d;c=0;for(d=b.length;c<d;c++)a.push(b[c]);G(b)}function q(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function p(){}var m=Cc.prototype;m.I=function(){m.B.ur=function(a){this.width!==a&&(this.width=a,this.Yg=!0,this.D())}};m.R=function(a){this.za=a;this.b=a.b};var k=m.R.prototype;k.I=function(){};k.rm=function(){if(!this.S){var a,c,d;a=0;for(c=this.j.length;a<c;a++)d=this.j[a],d.pe=null,d.Mg=null,
d.Qc=null}};m.N=function(a){this.type=a;this.b=a.b;this.kc?G(this.Gf):this.Gf=[];this.Yg=!0};k=m.N.prototype;k.I=function(){this.text=this.C[0];this.visible=0===this.C[1];this.font=this.C[2];this.color=this.C[3];this.El=this.C[4];this.wn=this.C[5];this.Rq=0===this.C[7];this.mp=this.Ul=this.width;this.Tl=this.height;this.pp=this.C[8];this.sl=this.uh="";this.Qu=this.Ru=this.Uj=0;this.KA();this.Qc=this.Mg=this.pe=null;this.Cp=!1;this.wj=this.b.hd;this.kc?this.gi.set(0,0,1,1):this.gi=new va(0,0,1,1);
this.b.H&&this.b.oi(this)};k.KA=function(){var a=this.font.split(" "),c;for(c=0;c<a.length;c++)if("pt"===a[c].substr(a[c].length-2,2)){this.Uj=parseInt(a[c].substr(0,a[c].length-2));this.Zp=Math.ceil(this.Uj/72*96)+4;0<c&&(this.sl=a[c-1]);this.uh=a[c+1];for(c+=2;c<a.length;c++)this.uh+=" "+a[c];break}};k.Qa=function(){return{t:this.text,f:this.font,c:this.color,ha:this.El,va:this.wn,wr:this.Rq,lho:this.pp,fn:this.uh,fs:this.sl,ps:this.Uj,pxh:this.Zp,tw:this.Ru,th:this.Qu,lrt:this.wj}};k.bb=function(a){this.text=
a.t;this.font=a.f;this.color=a.c;this.El=a.ha;this.wn=a.va;this.Rq=a.wr;this.pp=a.lho;this.uh=a.fn;this.sl=a.fs;this.Uj=a.ps;this.Zp=a.pxh;this.Ru=a.tw;this.Qu=a.th;this.wj=a.lrt;this.Yg=!0;this.mp=this.Ul=this.width;this.Tl=this.height};k.Ba=function(){if(this.b.H&&this.Qc&&300<=this.b.hd-this.wj){var a=this.q;this.xa();var c=this.Ea;if(c.right<a.Ca||c.bottom<a.Da||c.left>a.Ha||c.top>a.Ga)this.b.H.deleteTexture(this.Qc),this.pe=this.Mg=this.Qc=null}};k.Te=function(){this.pe=this.Mg=null;this.b.H&&
this.Qc&&this.b.H.deleteTexture(this.Qc);this.Qc=null};k.sf=function(){this.font=this.sl+" "+this.Uj.toString()+"pt "+this.uh;this.Yg=!0;this.b.ba=!0};k.rd=function(a,c){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=c?1:this.opacity;var d=1;c&&(d=Math.abs(this.q.xc()),a.save(),a.scale(d,d));if(this.Yg||this.width!==this.mp)this.type.za.vx(this.text,this.Gf,a,this.width,this.Rq),this.Yg=!1,this.mp=this.width;this.xa();var d=c?0:this.$b.Wb,h=c?0:this.$b.Xb;this.b.Pd&&(d=
d+.5|0,h=h+.5|0);0===this.m||c||(a.save(),a.translate(d,h),a.rotate(this.m),h=d=0);var f=h+this.height,g=this.Zp,g=g+this.pp,m,k;1===this.wn?h+=Math.max(this.height/2-this.Gf.length*g/2,0):2===this.wn&&(h+=Math.max(this.height-this.Gf.length*g-2,0));for(k=0;k<this.Gf.length&&!(m=d,1===this.El?m=d+(this.width-this.Gf[k].width)/2:2===this.El&&(m=d+(this.width-this.Gf[k].width)),a.fillText(this.Gf[k].text,m,h),h+=g,h>=f-g);k++);(0!==this.m||c)&&a.restore();this.wj=this.b.hd};k.vc=function(a){if(!(1>
this.width||1>this.height)){var c=this.Yg||this.Cp;this.Cp=!1;var d=this.q.xc(),h=this.q.wb(),f=this.gi,g=d*this.width,m=d*this.height,k=Math.ceil(g),l=Math.ceil(m),n=Math.abs(k),p=Math.abs(l),r=this.b.P/2,q=this.b.O/2;this.Mg||(this.pe=document.createElement("canvas"),this.pe.width=n,this.pe.height=p,this.Ul=n,this.Tl=p,c=!0,this.Mg=this.pe.getContext("2d"));if(n!==this.Ul||p!==this.Tl)this.pe.width=n,this.pe.height=p,this.Qc&&(a.deleteTexture(this.Qc),this.Qc=null),c=!0;c&&(this.Mg.clearRect(0,
0,n,p),this.rd(this.Mg,!0),this.Qc||(this.Qc=a.Xc(n,p,this.b.Pa,this.b.Oe)),a.MB(this.pe,this.Qc,this.b.Oe));this.Ul=n;this.Tl=p;a.Tc(this.Qc);a.Sg(this.opacity);a.wd();a.translate(-r,-q);a.jd();var x=this.$b,c=this.q.Oa(x.Wb,x.Xb,!0,!0),n=this.q.Oa(x.Wb,x.Xb,!1,!0),p=this.q.Oa(x.Hc,x.Ic,!0,!0),r=this.q.Oa(x.Hc,x.Ic,!1,!0),q=this.q.Oa(x.tc,x.uc,!0,!0),L=this.q.Oa(x.tc,x.uc,!1,!0),A=this.q.Oa(x.qc,x.rc,!0,!0),x=this.q.Oa(x.qc,x.rc,!1,!0);if(this.b.Pd||0===this.m&&0===h)var v=(c+.5|0)-c,F=(n+.5|0)-
n,c=c+v,n=n+F,p=p+v,r=r+F,q=q+v,L=L+F,A=A+v,x=x+F;0===this.m&&0===h?(p=c+k,r=n,q=p,L=n+l,A=c,x=L,f.right=1,f.bottom=1):(f.right=g/k,f.bottom=m/l);a.Qf(c,n,p,r,q,L,A,x,f);a.wd();a.scale(d,d);a.Pm(-this.q.wb());a.translate((this.q.Ca+this.q.Ha)/-2,(this.q.Da+this.q.Ga)/-2);a.jd();this.wj=this.b.hd}};var l=[];m.nx=function(a){G(l);for(var c="",d,h=0;h<a.length;)if(d=a.charAt(h),"\n"===d)c.length&&(l.push(c),c=""),l.push("\n"),++h;else if(" "===d||"\t"===d||"-"===d){do c+=a.charAt(h),h++;while(h<a.length&&
(" "===a.charAt(h)||"\t"===a.charAt(h)));l.push(c);c=""}else h<a.length&&(c+=d,h++);c.length&&l.push(c)};var a=[];m.vx=function(a,c,e,h,f){if(a&&a.length)if(2>=h)r(c);else{if(100>=a.length&&-1===a.indexOf("\n")){var g=e.measureText(a).width;if(g<=h){r(c);c.push(d());c[0].text=a;c[0].width=g;return}}this.wx(a,c,e,h,f)}else r(c)};m.wx=function(b,c,e,h,f){f&&(this.nx(b),b=l);var g="",m,k,p,n=0;for(p=0;p<b.length;p++)"\n"===b[p]?(n>=c.length&&c.push(d()),g=q(g),k=c[n],k.text=g,k.width=e.measureText(g).width,
n++,g=""):(m=g,g+=b[p],k=e.measureText(g).width,k>=h&&(n>=c.length&&c.push(d()),m=q(m),k=c[n],k.text=m,k.width=e.measureText(m).width,n++,g=b[p],f||" "!==g||(g="")));g.length&&(n>=c.length&&c.push(d()),g=q(g),k=c[n],k.text=g,k.width=e.measureText(g).width,n++);for(p=n;p<c.length;p++)a.push(c[p]);c.length=n};m.k=new function(){};p.prototype.bx=function(a){ka(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Yg=!0,this.b.ba=!0)};p.prototype.Sw=function(a){a="rgb("+
za(a).toString()+","+Aa(a).toString()+","+Ba(a).toString()+")";a!==this.color&&(this.color=a,this.Cp=!0,this.b.ba=!0)};m.B=new p;m.U=new function(){}})();function Dc(d){this.b=d}
(function(){function d(a){c=a.x;e=a.y;h=a.z}function r(a,b,c,d){var e;e=f.length?f.pop():new q;e.init(a,b,c,d);return e}function q(){this.ik=this.id=this.Gg=this.Fg=this.y=this.x=this.hn=this.gn=this.kp=this.time=this.wq=0;this.nk=this.rn=!1}function p(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function m(){}function k(){}var l=Dc.prototype;l.R=function(a){this.za=a;
this.b=a.b};l.R.prototype.I=function(){};l.N=function(a){this.type=a;this.b=a.b;this.touches=[];this.Bp=!1};var a=l.N.prototype,b={left:0,top:0};a.Vi=function(a){var b,c;b=0;for(c=this.touches.length;b<c;b++)if(this.touches[b].id===a)return b;return-1};var c=0,e=0,h=0,f=[];q.prototype.init=function(a,b,c,d){var e=cb();this.wq=this.kp=this.time=e;this.gn=a;this.hn=b;this.x=a;this.y=b;this.Fg=a;this.Gg=b;this.pressure=this.height=this.width=0;this.id=c;this.ik=d;this.nk=this.rn=!1};q.prototype.update=
function(a,b,c,d,e,f){this.kp=this.time;this.time=a;this.Fg=this.x;this.Gg=this.y;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=f;!this.nk&&15<=Xa(this.gn,this.hn,this.x,this.y)&&(this.nk=!0)};q.prototype.vA=function(a,b){!this.rn&&500<=cb()-this.wq&&!this.nk&&15>Xa(this.gn,this.hn,this.x,this.y)&&(this.rn=!0,a.xe=this.ik,a.pi=this.id,a.Ch=b,a.b.trigger(Dc.prototype.k.qw,a),a.De=this.x,a.Ee=this.y,a.b.trigger(Dc.prototype.k.rw,a),a.Ch=0)};var g=-1E3,N=-1E3,O=-1E4;q.prototype.Ft=function(a,
b){if(!this.rn){var c=cb();333>=c-this.wq&&!this.nk&&15>Xa(this.gn,this.hn,this.x,this.y)&&(a.xe=this.ik,a.pi=this.id,a.Ch=b,666>=c-O&&25>Xa(g,N,this.x,this.y)?(a.b.trigger(Dc.prototype.k.iw,a),a.De=this.x,a.Ee=this.y,a.b.trigger(Dc.prototype.k.jw,a),N=g=-1E3,O=-1E4):(a.b.trigger(Dc.prototype.k.Cw,a),a.De=this.x,a.Ee=this.y,a.b.trigger(Dc.prototype.k.Dw,a),g=this.x,N=this.y,O=c),a.Ch=0)}};a.I=function(){this.mA=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Ch=this.pi=this.xe=
this.Ee=this.De=this.Hr=this.Gr=this.Fr=this.Cx=this.Bx=this.Ax=this.xm=this.wm=this.vm=0;this.KB=0!==this.C[0];var a=0<this.b.ic?document:this.b.canvas,b=document;this.b.jc?b=a=window.Canvas:this.b.td&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.Vt(a)},!1),a.addEventListener("pointermove",function(a){c.Ut(a)},!1),b.addEventListener("pointerup",function(a){c.tm(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.tm(a,!0)},!1),this.b.canvas&&
(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.Vt(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Ut(a)},!1),b.addEventListener("MSPointerUp",
function(a){c.tm(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.tm(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.Xt(a)},!1),a.addEventListener("touchmove",function(a){c.Wt(a)},!1),b.addEventListener("touchend",function(a){c.Mp(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Mp(a,!0)},
!1));if(this.mA){var e=function(a){a=a.reading;c.Fr=a.accelerationX;c.Gr=a.accelerationY;c.Hr=a.accelerationZ},f=function(a){a=a.reading;c.vm=a.yawDegrees;c.wm=a.pitchDegrees;c.xm=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",e));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",
function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",e),h&&h.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",e),h&&h.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",function(a){c.vm=a.alpha||0;c.wm=a.beta||0;c.xm=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Ax=a.accelerationIncludingGravity.x||0,c.Bx=a.accelerationIncludingGravity.y||
0,c.Cx=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Fr=a.acceleration.x||0,c.Gr=a.acceleration.y||0,c.Hr=a.acceleration.z||0)},!1);this.KB&&!this.b.Ka&&(jQuery(document).mousemove(function(a){c.Jp(a)}),jQuery(document).mousedown(function(a){c.Ip(a)}),jQuery(document).mouseup(function(a){c.Kp(a)}));!this.b.Mh&&this.b.ad&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(d,null,{frequency:40});this.b.CB(this)};a.Ut=function(a){if(a.pointerType!==
a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var c=this.Vi(a.pointerId),d=cb();if(0<=c){var e=this.b.Ka?b:jQuery(this.b.canvas).offset(),c=this.touches[c];2>d-c.time||c.update(d,a.pageX-e.left,a.pageY-e.top,a.width||0,a.height||0,a.pressure||0)}}};a.Vt=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&pb(a)&&a.preventDefault();var c=this.b.Ka?b:jQuery(this.b.canvas).offset(),d=a.pageX-c.left,c=a.pageY-c.top;cb();
this.xe=this.touches.length;this.pi=a.pointerId;this.touches.push(r(d,c,a.pointerId,this.xe));this.b.lb=!0;this.b.trigger(Dc.prototype.k.kr,this);this.b.trigger(Dc.prototype.k.qr,this);this.De=d;this.Ee=c;this.b.trigger(Dc.prototype.k.pr,this);this.b.lb=!1}};a.tm=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&pb(a)&&a.preventDefault();var c=this.Vi(a.pointerId);this.xe=0<=c?this.touches[c].ik:-1;this.pi=0<=c?this.touches[c].id:-1;this.b.lb=!0;this.b.trigger(Dc.prototype.k.jr,
this);this.b.trigger(Dc.prototype.k.or,this);0<=c&&(b||this.touches[c].Ft(this,c),100>f.length&&f.push(this.touches[c]),this.touches.splice(c,1));this.b.lb=!1}};a.Wt=function(a){a.preventDefault&&a.preventDefault();var c=cb(),d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],g=this.Vi(f.identifier),0<=g){var h=this.b.Ka?b:jQuery(this.b.canvas).offset();g=this.touches[g];2>c-g.time||g.update(c,f.pageX-h.left,f.pageY-h.top,2*(f.LC||f.TC||f.DC||f.GC||0),2*(f.MC||f.UC||f.EC||
f.HC||0),f.yC||f.SC||f.CC||f.FC||0)}};a.Xt=function(a){a.preventDefault&&pb(a)&&a.preventDefault();var c=this.b.Ka?b:jQuery(this.b.canvas).offset();cb();this.b.lb=!0;var d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],g=this.Vi(f.identifier),-1===g){g=f.pageX-c.left;var h=f.pageY-c.top;this.xe=this.touches.length;this.pi=f.identifier;this.touches.push(r(g,h,f.identifier,this.xe));this.b.trigger(Dc.prototype.k.kr,this);this.b.trigger(Dc.prototype.k.qr,this);this.De=g;this.Ee=
h;this.b.trigger(Dc.prototype.k.pr,this)}this.b.lb=!1};a.Mp=function(a,b){a.preventDefault&&pb(a)&&a.preventDefault();this.b.lb=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.Vi(e.identifier),0<=e&&(this.xe=this.touches[e].ik,this.pi=this.touches[e].id,this.b.trigger(Dc.prototype.k.jr,this),this.b.trigger(Dc.prototype.k.or,this),b||this.touches[e].Ft(this,e),100>f.length&&f.push(this.touches[e]),this.touches.splice(e,1));this.b.lb=!1};a.sf=function(){return this.b.ad&&
0===this.vm&&0!==h?90*h:this.vm};a.Lo=function(){return this.b.ad&&0===this.wm&&0!==e?90*e:this.wm};a.$s=function(){return this.b.ad&&0===this.xm&&0!==c?90*c:this.xm};a.Ip=function(a){p(a)||(this.Xt({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.Bp=!0)};a.Jp=function(a){this.Bp&&!p(a)&&this.Wt({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};a.Kp=function(a){a.preventDefault&&this.b.Dl&&!this.b.Oe&&a.preventDefault();this.b.Dl=!0;p(a)||(this.Mp({changedTouches:[{pageX:a.pageX,
pageY:a.pageY,identifier:0}]}),this.Bp=!1)};a.Zg=function(){var a,b,c,d=cb();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.kp=d),c.vA(this,a)};m.prototype.qr=function(){return!0};m.prototype.or=function(){return!0};m.prototype.pr=function(a){return a?this.b.lk(a,this.De,this.Ee):!1};m.prototype.kr=function(a){a=Math.floor(a);return a===this.xe};m.prototype.jr=function(a){a=Math.floor(a);return a===this.xe};m.prototype.qw=function(){return!0};m.prototype.Cw=function(){return!0};
m.prototype.iw=function(){return!0};m.prototype.rw=function(a){return a?this.b.lk(a,this.De,this.Ee):!1};m.prototype.Dw=function(a){return a?this.b.lk(a,this.De,this.Ee):!1};m.prototype.jw=function(a){return a?this.b.lk(a,this.De,this.Ee):!1};l.k=new m;l.B=new function(){};k.prototype.Bi=function(a,b){var c=this.Ch;if(0>c||c>=this.touches.length)a.K(0);else{var d,e,f,g,h;ja(b)?(d=this.b.Ke(0),e=d.scale,f=d.gc,g=d.zc,h=d.m,d.scale=1,d.gc=1,d.zc=1,d.m=0,a.K(d.sb(this.touches[c].x,this.touches[c].y,
!0)),d.scale=e,d.gc=f,d.zc=g,d.m=h):(d=ka(b)?this.b.Ke(b):this.b.aj(b))?a.K(d.sb(this.touches[c].x,this.touches[c].y,!0)):a.K(0)}};k.prototype.Ci=function(a,b){var c=this.Ch;if(0>c||c>=this.touches.length)a.K(0);else{var d,e,f,g,h;ja(b)?(d=this.b.Ke(0),e=d.scale,f=d.gc,g=d.Ac,h=d.m,d.scale=1,d.gc=1,d.Ac=1,d.m=0,a.K(d.sb(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.gc=f,d.Ac=g,d.m=h):(d=ka(b)?this.b.Ke(b):this.b.aj(b))?a.K(d.sb(this.touches[c].x,this.touches[c].y,!1)):a.K(0)}};l.U=new k})();
function Ec(d){this.b=d}
(function(){function d(){}var r=Ec.prototype;r.R=function(d){this.behavior=d;this.b=d.b};r.R.prototype.I=function(){};r.N=function(d,m){this.type=d;this.behavior=d.behavior;this.i=m;this.b=d.b};var q=r.N.prototype;q.I=function(){var d=this.C[0];this.ka=this.C[1];this.Pb=this.C[2];this.Mx=0!==this.C[3];this.mq=0!==this.C[4];this.n=Math.cos(this.i.m)*d;this.u=Math.sin(this.i.m)*d;this.Fg=this.i.x;this.Gg=this.i.y;this.Md=this.i.m;this.pn=0;this.enabled=0!==this.C[5]};q.Qa=function(){return{acc:this.ka,g:this.Pb,
dx:this.n,dy:this.u,lx:this.Fg,ly:this.Gg,lka:this.Md,t:this.pn,e:this.enabled}};q.bb=function(d){this.ka=d.acc;this.Pb=d.g;this.n=d.dx;this.u=d.dy;this.Fg=d.lx;this.Gg=d.ly;this.Md=d.lka;this.pn=d.t;this.enabled=d.e};q.Ba=function(){if(this.enabled){var d=this.b.Jd(this.i),m,k;this.i.m!==this.Md&&(this.mq&&(m=Xa(0,0,this.n,this.u),this.n=Math.cos(this.i.m)*m,this.u=Math.sin(this.i.m)*m),this.Md=this.i.m);0!==this.ka&&(m=Xa(0,0,this.n,this.u),k=0===this.n&&0===this.u?this.i.m:Sa(0,0,this.n,this.u),
m+=this.ka*d,0>m&&(m=0),this.n=Math.cos(k)*m,this.u=Math.sin(k)*m);0!==this.Pb&&(this.u+=this.Pb*d);this.Fg=this.i.x;this.Gg=this.i.y;if(0!==this.n||0!==this.u)if(this.i.x+=this.n*d,this.i.y+=this.u*d,this.pn+=Xa(0,0,this.n*d,this.u*d),this.mq&&(this.i.m=Sa(0,0,this.n,this.u),this.i.D(),this.Md=this.i.m),this.i.D(),this.Mx&&(m=this.b.Za(this.i)))this.b.fd(this.i,m),m=Xa(0,0,this.n,this.u),k=this.b.Px(this.i,this.Fg,this.Gg),this.n=Math.cos(k)*m,this.u=Math.sin(k)*m,this.i.x+=this.n*d,this.i.y+=this.u*
d,this.i.D(),this.mq&&(this.Md=this.i.m=k,this.i.D()),this.b.Sc(this.i,this.n/m,this.u/m,Math.max(2.5*m*d,30))||this.b.Yp(this.i,100)}};r.k=new function(){};d.prototype.Ak=function(d){var m=Sa(0,0,this.n,this.u);this.n=Math.cos(m)*d;this.u=Math.sin(m)*d};d.prototype.Nw=function(d){d=Q(d);var m=Xa(0,0,this.n,this.u);this.n=Math.cos(d)*m;this.u=Math.sin(d)*m};d.prototype.Zf=function(d){this.enabled=1===d};r.B=new d;r.U=new function(){}})();function Fc(d){this.b=d}
(function(){function d(){}function r(){}var q=Fc.prototype;q.R=function(d){this.behavior=d;this.b=d.b};q.R.prototype.I=function(){};q.N=function(d,k){this.type=d;this.behavior=d.behavior;this.i=k;this.b=d.b;this.$e=this.Ze=this.Ym=this.Zm=this.xg=this.Vd=this.Od=this.Qi=this.ok=!1;this.jp=this.ip=this.gp=this.lp=-1;this.u=this.n=0};var p=q.N.prototype;p.I=function(){this.Bb=this.C[0];this.ka=this.C[1];this.hb=this.C[2];this.jo=this.C[3];this.Pn=this.C[4];this.fo=1===this.C[5];this.enabled=0!==this.C[6];
this.fo&&!this.b.Ka&&(jQuery(document).keydown(function(d){return function(k){d.Nj(k)}}(this)),jQuery(document).keyup(function(d){return function(k){d.Oj(k)}}(this)))};p.Qa=function(){return{dx:this.n,dy:this.u,enabled:this.enabled,maxspeed:this.Bb,acc:this.ka,dec:this.hb,ignoreInput:this.xg}};p.bb=function(d){this.n=d.dx;this.u=d.dy;this.enabled=d.enabled;this.Bb=d.maxspeed;this.ka=d.acc;this.hb=d.dec;this.xg=d.ignoreInput;this.$e=this.Ze=this.Ym=this.Zm=this.Vd=this.Od=this.Qi=this.ok=!1;this.jp=
this.ip=this.gp=this.lp=-1};p.Nj=function(d){var k=this.b.hd;switch(d.which){case 37:d.preventDefault();this.ip<k&&(this.Od=!0);break;case 38:d.preventDefault();this.lp<k&&(this.ok=!0);break;case 39:d.preventDefault();this.jp<k&&(this.Vd=!0);break;case 40:d.preventDefault(),this.gp<k&&(this.Qi=!0)}};p.Oj=function(d){var k=this.b.hd;switch(d.which){case 37:d.preventDefault();this.Od=!1;this.ip=k;break;case 38:d.preventDefault();this.ok=!1;this.lp=k;break;case 39:d.preventDefault();this.Vd=!1;this.jp=
k;break;case 40:d.preventDefault(),this.Qi=!1,this.gp=k}};p.Ue=function(){this.Vd=this.Od=this.Qi=this.ok=!1};p.Ba=function(){var d=this.b.Jd(this.i),k=this.Od||this.Ze,l=this.Vd||this.$e,a=this.ok||this.Zm,b=this.Qi||this.Ym;this.Ym=this.Zm=this.$e=this.Ze=!1;if(this.enabled){var c=this.b.Za(this.i);if(c&&(this.b.fd(this.i,c),!this.b.Yp(this.i)))return;this.xg&&(b=a=l=k=!1);0===this.jo?l=k=!1:1===this.jo&&(b=a=!1);2===this.jo&&(a||b)&&(l=k=!1);k==l&&(0>this.n?(this.n+=this.hb*d,0<this.n&&(this.n=
0)):0<this.n&&(this.n-=this.hb*d,0>this.n&&(this.n=0)));a==b&&(0>this.u?(this.u+=this.hb*d,0<this.u&&(this.u=0)):0<this.u&&(this.u-=this.hb*d,0>this.u&&(this.u=0)));k&&!l&&(this.n=0<this.n?this.n-(this.ka+this.hb)*d:this.n-this.ka*d);l&&!k&&(this.n=0>this.n?this.n+(this.ka+this.hb)*d:this.n+this.ka*d);a&&!b&&(this.u=0<this.u?this.u-(this.ka+this.hb)*d:this.u-this.ka*d);b&&!a&&(this.u=0>this.u?this.u+(this.ka+this.hb)*d:this.u+this.ka*d);if(0!==this.n||0!==this.u){Math.sqrt(this.n*this.n+this.u*this.u)>
this.Bb&&(c=Math.atan2(this.u,this.n),this.n=this.Bb*Math.cos(c),this.u=this.Bb*Math.sin(c));l=this.i.x;a=this.i.y;k=this.i.m;this.i.x+=this.n*d;this.i.D();if(c=this.b.Za(this.i))this.b.Sc(this.i,0>this.n?1:-1,0,Math.abs(Math.floor(this.n*d)))||(this.i.x=l),this.n=0,this.i.D(),this.b.fd(this.i,c);this.i.y+=this.u*d;this.i.D();if(c=this.b.Za(this.i))this.b.Sc(this.i,0,0>this.u?1:-1,Math.abs(Math.floor(this.u*d)))||(this.i.y=a),this.u=0,this.i.D(),this.b.fd(this.i,c);d=nb(this.n);c=nb(this.u);0===d&&
0===c||!this.i.type.za.oA||(1===this.Pn?this.i.m=Ra(90*Math.round(Ma(Math.atan2(c,d))/90)):2===this.Pn?this.i.m=Ra(45*Math.round(Ma(Math.atan2(c,d))/45)):3===this.Pn&&(this.i.m=Math.atan2(c,d)));this.i.D();this.i.m!=k&&(c=this.b.Za(this.i))&&(this.i.m=k,this.i.D(),this.b.fd(this.i,c))}}};d.prototype.Cn=function(){return 1E-10<Math.sqrt(this.n*this.n+this.u*this.u)};q.k=new d;r.prototype.Hn=function(){this.u=this.n=0};r.prototype.Ak=function(d){0>d&&(d=0);d>this.Bb&&(d=this.Bb);var k=Math.atan2(this.u,
this.n);this.n=d*Math.cos(k);this.u=d*Math.sin(k)};r.prototype.Gn=function(d){this.Bb=d;0>this.Bb&&(this.Bb=0)};r.prototype.Br=function(d){switch(d){case 0:this.Ze=!0;break;case 1:this.$e=!0;break;case 2:this.Zm=!0;break;case 3:this.Ym=!0}};r.prototype.Zf=function(d){this.enabled=1===d};q.B=new r;q.U=new function(){}})();function Gc(d){this.b=d}
(function(){function d(){}function r(){}var q=Gc.prototype;q.R=function(d){this.behavior=d;this.b=d.b};q.R.prototype.I=function(){};q.N=function(d,k){this.type=d;this.behavior=d.behavior;this.i=k;this.b=d.b};var p=q.N.prototype;p.I=function(){this.Ln=1===this.C[0];this.zu=!1;this.Ti=this.C[1];this.uk=this.C[2];this.ll=this.C[3];this.ay=this.C[4];this.rb=this.Ln?0:3;this.kc?this.yd.reset():this.yd=new gb;this.Kf=this.i.opacity?this.i.opacity:1;this.Ln&&(0===this.Ti?(this.rb=1,0===this.uk&&(this.rb=
2)):(this.i.opacity=0,this.b.ba=!0))};p.Qa=function(){return{fit:this.Ti,wt:this.uk,fot:this.ll,s:this.rb,st:this.yd.M,mo:this.Kf}};p.bb=function(d){this.Ti=d.fit;this.uk=d.wt;this.ll=d.fot;this.rb=d.s;this.yd.reset();this.yd.M=d.st;this.Kf=d.mo};p.Ba=function(){this.yd.add(this.b.Jd(this.i));0===this.rb&&(this.i.opacity=this.yd.M/this.Ti*this.Kf,this.b.ba=!0,this.i.opacity>=this.Kf&&(this.i.opacity=this.Kf,this.rb=1,this.yd.reset(),this.b.trigger(Gc.prototype.k.kw,this.i)));1===this.rb&&this.yd.M>=
this.uk&&(this.rb=2,this.yd.reset(),this.b.trigger(Gc.prototype.k.Ew,this.i));2===this.rb&&0!==this.ll&&(this.i.opacity=this.Kf-this.yd.M/this.ll*this.Kf,this.b.ba=!0,0>this.i.opacity&&(this.i.opacity=0,this.rb=3,this.yd.reset(),this.b.trigger(Gc.prototype.k.lw,this.i),1===this.ay&&this.b.$d(this.i)))};p.wy=function(){this.rb=0;this.yd.reset();0===this.Ti?(this.rb=1,0===this.uk&&(this.rb=2)):(this.i.opacity=0,this.b.ba=!0)};d.prototype.lw=function(){return!0};d.prototype.kw=function(){return!0};d.prototype.Ew=
function(){return!0};q.k=new d;r.prototype.ix=function(){this.Ln||this.zu||(this.Kf=this.i.opacity?this.i.opacity:1,this.zu=!0);3===this.rb&&this.wy()};q.B=new r;q.U=new function(){}})();function Hc(d){this.b=d}
(function(){function d(){}function r(){}var q=Hc.prototype;q.R=function(d){this.behavior=d;this.b=d.b};q.R.prototype.I=function(){};q.N=function(d,k){this.type=d;this.behavior=d.behavior;this.i=k;this.b=d.b};var p=q.N.prototype;p.I=function(){this.Wd=this.ve=this.rb=this.qm=this.um=0};p.Qa=function(){return{ontime:this.um,offtime:this.qm,stage:this.rb,stagetimeleft:this.ve,timeleft:this.Wd}};p.bb=function(d){this.um=d.ontime;this.qm=d.offtime;this.rb=d.stage;this.ve=d.stagetimeleft;this.Wd=d.timeleft;
null===this.Wd&&(this.Wd=Infinity)};p.Ba=function(){if(!(0>=this.Wd)){var d=this.b.Jd(this.i);this.Wd-=d;0>=this.Wd?(this.Wd=0,this.i.visible=!0,this.b.ba=!0,this.b.trigger(Hc.prototype.k.pw,this.i)):(this.ve-=d,0>=this.ve&&(0===this.rb?(this.i.visible=!1,this.rb=1,this.ve+=this.qm):(this.i.visible=!0,this.rb=0,this.ve+=this.um),this.b.ba=!0))}};d.prototype.Nv=function(){return 0<this.Wd};d.prototype.pw=function(){return!0};q.k=new d;r.prototype.Hv=function(d,k,l){this.um=d;this.qm=k;this.rb=1;this.ve=
k;this.Wd=l;this.i.visible=!1;this.b.ba=!0};q.B=new r;q.U=new function(){}})();function Ic(d){this.b=d}
(function(){function d(){}function r(){}var q={},p=Ic.prototype;p.ai=function(){var a,b;for(a in q)q.hasOwnProperty(a)&&(b=q[a],b.Ve.unsetReady(),b.Yj=!0)};p.R=function(a){this.behavior=a;this.b=a.b};p.R.prototype.I=function(){this.Mj=[];this.vf=[]};p.N=function(a,b){this.type=a;this.behavior=a.behavior;this.i=b;this.b=a.b};var m=p.N.prototype;m.I=function(){this.Sa=this.C[0];3>this.Sa&&(this.Sa=3);this.Hd=this.C[1];this.AA=this.C[2];this.dd=this.C[3];this.ka=this.C[4];this.hb=this.C[5];this.Jk=Q(this.C[6]);
this.Nm=0!==this.C[7];this.gl=0!==this.C[8];this.enabled=0!==this.C[9];this.Fh=this.Wi=this.Kj=this.le=!1;this.yc=0;this.Md=this.ld=this.i.m;this.fi=this.Td=this.Sd=this.Xa=0;this.Nf=Math.ceil(this.b.pa.width/this.Sa);this.Lg=Math.ceil(this.b.pa.height/this.Sa);this.Va=[];this.oh=!1;this.cl=this.bl=0;this.jj=this.Ql=!1;this.Tr=this.Sr=0;this.xs=!0;var a=this;this.kc||(this.MA=function(){a.Ql||(a.jj=!1,a.Vx(),a.Fh=0<a.Va.length,a.yc=0,a.b.trigger(Ic.prototype.k.lr,a.i),a.ko())},this.LA=function(){a.Ql||
(a.jj=!1,a.Yr(),a.Fh=!1,a.le=!1,a.yc=0,a.b.trigger(Ic.prototype.k.mw,a.i),a.ko())})};m.Te=function(){this.Ql=!0;this.oh=!1};m.Qa=function(){var a={cs:this.Sa,cb:this.Hd,ms:this.dd,acc:this.ka,dec:this.hb,av:this.Jk,re:this.Nm,de:this.gl,im:this.le,mfs:this.Kj,ftmwm:this.Wi,hp:this.Fh,mn:this.yc,a:this.ld,lka:this.Md,s:this.Xa,rx:this.Sd,ry:this.Td,ra:this.fi,myhc:this.Nf,myvc:this.Lg,path:this.Va,en:this.enabled,fr:this.xs,obs:[],costs:[]};this.jj?(a.dfp=!0,a.dpx=this.Sr,a.dpy=this.Tr):(a.dfp=this.oh,
a.dpx=this.bl,a.dpy=this.cl);var b,c;b=0;for(c=this.type.Mj.length;b<c;b++)a.obs.push(this.type.Mj[b].ea);b=0;for(c=this.type.vf.length;b<c;b++)a.costs.push({sid:this.type.vf[b].na.ea,cost:this.type.vf[b].as});return a};m.bb=function(a){this.Sa=a.cs;this.Hd=a.cb;this.dd=a.ms;this.ka=a.acc;this.hb=a.dec;this.Jk=a.av;this.Nm=a.re;this.gl=a.de;this.le=a.im;this.Kj=a.mfs;this.Wi=a.ftmwm;this.Fh=a.hp;this.yc=a.mn;this.ld=a.a;this.Md=a.lka;this.Xa=a.s;this.Sd=a.rx;this.Td=a.ry;this.fi=a.ra;this.Nf=a.myhc;
this.Lg=a.myvc;this.Va=a.path;this.enabled=a.en;this.xs=a.fr;this.oh=a.dfp;this.bl=a.dpx;this.cl=a.dpy;G(this.type.Mj);var b=a.obs,c,d,h;c=0;for(d=b.length;c<d;c++)(h=this.b.Bh(b[c]))&&this.type.Mj.push(h);G(this.type.vf);a=a.costs;c=0;for(d=a.length;c<d;c++)(h=this.b.Bh(a[c].sid))&&this.type.vf.push({na:h,as:a[c].cost});this.sg().Ve.setDiagonals(this.gl)};m.be=function(){this.sg().Yj=!0};m.Ba=function(){if(this.enabled&&this.le){this.Nm&&this.i.m!==this.Md&&(this.ld=this.i.m);var a=this.b.Jd(this.i),
b,c,d,h,f,g=this.i,k=Math.min(.4*this.dd,2*Math.abs(this.i.width)),m=Math.max(1.5*this.Xa,30);this.yc<this.Va.length?(h=this.Va[this.yc].x,f=this.Va[this.yc].y,d=Xa(this.Sd,this.Td,h,f),d<3*m*a&&(this.yc++,this.Sd=h,this.Td=f,this.yc<this.Va.length&&(h=this.Va[this.yc].x,f=this.Va[this.yc].y))):(h=this.Va[this.Va.length-1].x,f=this.Va[this.Va.length-1].y);this.fi=Sa(this.Sd,this.Td,h,f);d=Xa(g.x,g.y,this.Sd,this.Td);d<k&&this.yc<this.Va.length&&(this.Wi?this.Wi=!1:k=m*a,this.Sd+=Math.cos(this.fi)*
k,this.Td+=Math.sin(this.fi)*k);b=Sa(g.x,g.y,this.Sd,this.Td);c=Ta(this.ld,b);k=Xa(g.x,g.y,this.Va[this.Va.length-1].x,this.Va[this.Va.length-1].y);m=this.dd*this.dd/(2*this.hb);1<d&&(this.ld=Ua(this.ld,b,this.Jk*a),.5>=Ma(c)?c=this.dd:120<=Ma(c)||this.Kj&&0===this.yc?(c=0,this.Kj=!0):(b=c/this.Jk,d=Xa(g.x,g.y,this.Sd,this.Td),d=d/(2*Math.sin(c)),c=d*c/b,0>c&&(c=0),c>this.dd&&(c=this.dd)),k<m&&(c=Math.min(c,k/m*this.dd+this.dd/40)),this.Xa+=this.ka*a,this.Xa>c&&(this.Xa=c));g.x+=Math.cos(this.ld)*
this.Xa*a;g.y+=Math.sin(this.ld)*this.Xa*a;this.Nm&&(this.Md=g.m=this.ld);g.D();this.yc===this.Va.length&&Xa(g.x,g.y,h,f)<Math.max(3*this.Xa*a,10)&&(this.Fh=this.le=!1,this.Xa=this.yc=0,this.b.trigger(Ic.prototype.k.Yq,g))}};m.Zg=function(){this.enabled&&(this.rz(),this.ko())};m.ko=function(){this.oh&&!this.Ql&&(this.oh=!1,this.ns(this.i.x,this.i.y,this.bl,this.cl))};m.sg=function(){var a=""+this.Sa+","+this.Hd;q.hasOwnProperty(a)||(q[a]={Ve:new window.Pathfinder,cells:null,Yj:!1,Pg:[]});return q[a]};
m.rz=function(){var a=this.sg();if(!a.Ve.isReady()||a.Yj||a.Pg.length){var b,c,d,h,f,g,k,m,l,p;if(!a.Ve.isReady()||a.Yj){this.Nf=Math.ceil(this.b.pa.width/this.Sa);this.Lg=Math.ceil(this.b.pa.height/this.Sa);b=[];h=b.length=this.Nf;f=this.Lg;for(c=0;c<h;++c)for(b[c]=[],b[c].length=f,d=0;d<f;++d)b[c][d]=this.ou(c,d);a.cells=b;a.Ve.init(this.Nf,this.Lg,b,this.gl);a.Yj=!1;G(a.Pg)}else if(a.Pg.length){g=0;for(k=a.Pg.length;g<k;++g){b=a.Pg[g];m=b[0];l=b[1];h=b[2];c=b[3];b=[];h=h-m;f=c-l;b.length=h;for(c=
0;c<h;++c)for(b[c]=[],b[c].length=f,d=0;d<f;++d)p=this.ou(m+c,l+d),b[c][d]=p,a.cells[m+c][l+d]=p;a.Ve.updateRegion(m,l,h,f,b)}G(a.Pg)}}};m.Yr=function(){var a,b;a=0;for(b=this.Va.length;a<b;a++)window.freeResultNode(this.Va[a]);G(this.Va)};m.Vx=function(){var a=this.sg().Ve.pathList;this.Yr();var b,c,d,h;b=0;for(c=a.length;b<c;b++)d=a[b],h=window.allocResultNode(),h.x=(d.x+.5)*this.Sa,h.y=(d.y+.5)*this.Sa,this.Va.push(h)};var k=[],l=new va;m.ou=function(a,b){var c,d,h,f,g,m=0;l.left=a*this.Sa-this.Hd;
l.top=b*this.Sa-this.Hd;l.right=(a+1)*this.Sa+this.Hd;l.bottom=(b+1)*this.Sa+this.Hd;if(0===this.AA){if(this.b.BB(l))return window.PF_OBSTACLE}else{this.b.Eo(this.i.q,this.type.Mj,l,k);c=0;for(d=k.length;c<d;++c)if(this.b.yq(l,k[c]))return G(k),window.PF_OBSTACLE;k.length=0}c=0;for(d=this.type.vf.length;c<d;c++){h=this.type.vf[c].na;g=this.type.vf[c].as;this.b.zl(this.i.q,h,l,k);h=0;for(f=k.length;h<f;++h)this.b.yq(l,k[h])&&(m+=g);G(k)}return m};m.ns=function(a,b,c,d){var h=this.sg().Ve;if(h.isReady()){this.jj=
!0;this.Sr=c;this.Tr=d;a=Math.floor(a/this.Sa);b=Math.floor(b/this.Sa);c=Math.floor(c/this.Sa);d=Math.floor(d/this.Sa);var f,g,k,m,l,p,r;if(h.at(c,d)===window.PF_OBSTACLE){f=1E6;for(m=k=g=0;m<this.Nf;m++)for(l=0;l<this.Lg;l++)h.at(m,l)!==window.PF_OBSTACLE&&(p=c-m,r=d-l,p=p*p+r*r,p<f&&(f=p,g=m,k=l));c=g;d=k}h.findPath(a,b,c,d,this.MA,this.LA)}};d.prototype.lr=function(){return!0};d.prototype.mw=function(){return!0};d.prototype.Cn=function(){return this.le};d.prototype.Yq=function(){return!0};p.k=
new d;r.prototype.Gv=function(a,b){this.enabled&&(this.jj||!this.sg().Ve.isReady()?(this.oh=!0,this.bl=a,this.cl=b):this.ns(this.i.x,this.i.y,a,b))};r.prototype.jx=function(){this.Fh&&(this.le&&(this.Wi=!0),this.Kj=!this.le,this.le=!0,this.Sd=this.i.x,this.Td=this.i.y,this.fi=this.i.m)};r.prototype.Hn=function(){this.le=!1};r.prototype.Zf=function(a){this.enabled=0!==a};r.prototype.Gn=function(a){this.dd=a};r.prototype.Ak=function(a){0>a&&(a=0);a>this.dd&&(a=this.dd);this.Xa=a};m.sf=function(a,b,
c,d){var h=Math.min(a,c)-this.Hd,f=Math.min(b,d)-this.Hd;a=Math.max(a,c)+this.Hd;b=Math.max(b,d)+this.Hd;h=Math.max(Math.floor(h/this.Sa),0);f=Math.max(Math.floor(f/this.Sa),0);a=Math.min(Math.ceil(a/this.Sa),this.Nf);b=Math.min(Math.ceil(b/this.Sa),this.Lg);h>=a||f>=b||this.sg().Pg.push([h,f,a,b])};p.B=new r;p.U=new function(){}})();function Kc(d){this.b=d}
(function(){function d(){}function r(){}var q=Kc.prototype;q.R=function(d){this.behavior=d;this.b=d.b};q.R.prototype.I=function(){};q.N=function(d,k){this.type=d;this.behavior=d.behavior;this.i=k;this.b=d.b;this.gk=this.$e=this.Ze=this.xg=this.Ji=this.Pi=this.Oh=this.Ph=this.Vd=this.Od=!1;this.Sb=null;this.qp=-1;this.Ef=this.Df=0;this.Yi=!1;this.vh=this.Dd=0;this.rl=!0;this.u=this.n=0};var p=q.N.prototype;p.gv=function(){this.ib=Math.cos(this.zh);this.jb=Math.sin(this.zh);this.Rf=Math.cos(this.zh-
Math.PI/2);this.Sf=Math.sin(this.zh-Math.PI/2);this.ib=nb(this.ib);this.jb=nb(this.jb);this.Rf=nb(this.Rf);this.Sf=nb(this.Sf);this.wo=this.Pb;0>this.Pb&&(this.ib*=-1,this.jb*=-1,this.Pb=Math.abs(this.Pb))};p.I=function(){this.Bb=this.C[0];this.ka=this.C[1];this.hb=this.C[2];this.uj=this.C[3];this.wo=this.Pb=this.C[4];this.lm=this.C[5];this.no=0!==this.C[6];this.dp=this.C[7]/1E3;this.fo=1===this.C[8];this.enabled=0!==this.C[9];this.vi=!1;this.wi=this.b.Wf(this.i);this.rp=-1;this.Xg=0;this.zh=Q(90);
this.gv();var d=this;this.fo&&!this.b.Ka&&(jQuery(document).keydown(function(k){d.Nj(k)}),jQuery(document).keyup(function(k){d.Oj(k)}));this.kc||(this.Lt=function(k){d.Hp(k)});this.b.Mn(this.Lt);this.i.J.isPlatformBehavior=!0};p.Qa=function(){return{ii:this.xg,lfx:this.Df,lfy:this.Ef,lfo:this.Sb?this.Sb.uid:-1,am:this.Dd,en:this.enabled,fall:this.vh,ft:this.rl,dx:this.n,dy:this.u,ms:this.Bb,acc:this.ka,dec:this.hb,js:this.uj,g:this.Pb,g1:this.wo,mf:this.lm,wof:this.vi,woj:this.wi?this.wi.uid:-1,ga:this.zh,
edj:this.no,cdj:this.Ji,dj:this.Pi,sus:this.dp}};p.bb=function(d){this.xg=d.ii;this.Df=d.lfx;this.Ef=d.lfy;this.qp=d.lfo;this.Dd=d.am;this.enabled=d.en;this.vh=d.fall;this.rl=d.ft;this.n=d.dx;this.u=d.dy;this.Bb=d.ms;this.ka=d.acc;this.hb=d.dec;this.uj=d.js;this.Pb=d.g;this.wo=d.g1;this.lm=d.mf;this.vi=d.wof;this.rp=d.woj;this.zh=d.ga;this.no=d.edj;this.Ji=d.cdj;this.Pi=d.dj;this.dp=d.sus;this.gk=this.$e=this.Ze=this.Oh=this.Ph=this.Vd=this.Od=!1;this.Xg=0;this.gv()};p.be=function(){-1===this.qp?
this.Sb=null:this.Sb=this.b.Ah(this.qp);-1===this.rp?this.wi=null:this.wi=this.b.Ah(this.rp)};p.Hp=function(d){this.Sb==d&&(this.Sb=null)};p.Te=function(){this.Sb=null;this.b.fB(this.Lt)};p.Nj=function(d){switch(d.which){case 38:d.preventDefault();this.Ph=!0;break;case 37:d.preventDefault();this.Od=!0;break;case 39:d.preventDefault(),this.Vd=!0}};p.Oj=function(d){switch(d.which){case 38:d.preventDefault();this.Oh=this.Ph=!1;break;case 37:d.preventDefault();this.Od=!1;break;case 39:d.preventDefault(),
this.Vd=!1}};p.Ue=function(){this.Ph=this.Vd=this.Od=!1};p.sf=function(){return 0>this.Pb?-1:1};p.Us=function(){var d=null,k=null,l,a;l=this.i.x;a=this.i.y;this.i.x+=this.ib;this.i.y+=this.jb;this.i.D();if(this.Sb&&this.b.mc(this.i,this.Sb)&&(!this.b.Gq(this.Sb.type,tc)||this.Sb.J.solidEnabled))return this.i.x=l,this.i.y=a,this.i.D(),this.Sb;(d=this.b.Za(this.i))||0!==this.vh||(k=this.b.Wf(this.i,!0));this.i.x=l;this.i.y=a;this.i.D();if(d){if(this.b.mc(this.i,d))return null;this.Yi=!1;return d}if(k&&
k.length){a=d=0;for(l=k.length;d<l;d++)k[a]=k[d],this.b.mc(this.i,k[d])||a++;if(1<=a)return this.Yi=!0,k[0]}return null};p.Ba=function(){};p.ku=function(){var d=this.b.Jd(this.i),k,l,a,b,c,e,h,f,g;this.Ph||this.gk||(this.Oh=!1);var p=this.Od||this.Ze;a=this.Vd||this.$e;var r=(b=this.Ph||this.gk)&&!this.Oh;this.gk=this.$e=this.Ze=!1;if(this.enabled){this.xg&&(r=b=a=p=!1);b||(this.Xg=0);f=this.Sb;g=!1;this.rl&&((this.b.Za(this.i)||this.b.Wf(this.i))&&this.b.Sc(this.i,-this.ib,-this.jb,4,!0),this.rl=
!1);!f||0!==this.u||f.y===this.Ef&&f.x===this.Df||(k=f.x-this.Df,l=f.y-this.Ef,this.i.x+=k,this.i.y+=l,this.i.D(),this.Df=f.x,this.Ef=f.y,g=!0,this.b.Za(this.i)&&this.b.Sc(this.i,-k,-l,2.5*Math.sqrt(k*k+l*l)));var q=this.Us();if(l=this.b.Za(this.i))if(c=Math.abs(this.i.width),e=Math.abs(this.i.height),this.i.J.inputPredicted)this.b.Sc(this.i,-this.ib,-this.jb,10,!1);else if(this.b.Xp(this.i,-this.ib,-this.jb,e/8))this.b.fd(this.i,l);else if(this.b.Xp(this.i,this.Rf,this.Sf,c/2))this.b.fd(this.i,l);
else if(this.b.Xp(this.i,this.ib,this.jb,e/2))this.b.fd(this.i,l);else if(this.b.Yp(this.i,Math.max(c,e)/2))this.b.fd(this.i,l);else return;q?(this.Ji=this.Pi=!1,0<this.u&&(this.vi||(this.b.Km(this.i,-this.ib,-this.jb,q),this.vi=!0),this.u=0),f!=q)?(this.Sb=q,this.Df=q.x,this.Ef=q.y,this.b.fd(this.i,q)):g&&(l=this.b.Za(this.i))&&(this.b.fd(this.i,l),0!==k&&(0<k?this.b.Sc(this.i,-this.Rf,-this.Sf):this.b.Sc(this.i,this.Rf,this.Sf)),this.b.Sc(this.i,-this.ib,-this.jb)):b||(this.Ji=!0);if(q&&r||!q&&
this.no&&b&&this.Ji&&!this.Pi)f=this.i.x,g=this.i.y,this.i.x-=this.ib,this.i.y-=this.jb,this.i.D(),this.b.Za(this.i)?r=!1:(this.Xg=this.dp,this.b.trigger(Kc.prototype.k.vw,this.i),this.Dd=2,this.u=-this.uj,r=!0,q?this.Oh=!0:this.Pi=!0),this.i.x=f,this.i.y=g,this.i.D();q||(b&&0<this.Xg?(this.u=-this.uj,this.Xg-=d):(this.Sb=null,this.u+=this.Pb*d,this.u>this.lm&&(this.u=this.lm)),r&&(this.Oh=!0));this.vi=!!q;p==a&&(0>this.n?(this.n+=this.hb*d,0<this.n&&(this.n=0)):0<this.n&&(this.n-=this.hb*d,0>this.n&&
(this.n=0)));p&&!a&&(this.n=0<this.n?this.n-(this.ka+this.hb)*d:this.n-this.ka*d);a&&!p&&(this.n=0>this.n?this.n+(this.ka+this.hb)*d:this.n+this.ka*d);this.n>this.Bb?this.n=this.Bb:this.n<-this.Bb&&(this.n=-this.Bb);p=!1;0!==this.n&&(f=this.i.x,g=this.i.y,k=this.n*d*this.Rf,l=this.n*d*this.Sf,this.i.x+=this.Rf*(1<this.n?1:-1)-this.ib,this.i.y+=this.Sf*(1<this.n?1:-1)-this.jb,this.i.D(),b=!1,c=this.b.Za(this.i),this.i.x=f+k,this.i.y=g+l,this.i.D(),a=this.b.Za(this.i),!a&&q&&(a=this.b.Wf(this.i))&&
(this.i.x=f,this.i.y=g,this.i.D(),this.b.mc(this.i,a)?(a=null,b=!1):b=!0,this.i.x=f+k,this.i.y=g+l,this.i.D()),a?(k=Math.abs(this.n*d)+2,c||!this.b.Sc(this.i,-this.ib,-this.jb,k,b,a))?(this.b.fd(this.i,a),k=Math.max(Math.abs(this.n*d*2.5),30),this.b.Sc(this.i,this.Rf*(0>this.n?1:-1),this.Sf*(0>this.n?1:-1),k,!1)?!q||b||this.Yi||(f=this.i.x,g=this.i.y,this.i.x+=this.ib,this.i.y+=this.jb,this.b.Za(this.i)?this.b.Sc(this.i,-this.ib,-this.jb,3,!1)||(this.i.x=f,this.i.y=g,this.i.D()):(this.i.x=f,this.i.y=
g,this.i.D())):(this.i.x=f,this.i.y=g,this.i.D()),b||(this.n=0)):!c&&!r&&Math.abs(this.u)<Math.abs(this.uj/4)&&(this.u=0,q||(p=!0)):(f=this.Us(),q&&!f?(l=Math.ceil(Math.abs(this.n*d))+2,f=this.i.x,g=this.i.y,this.i.x+=this.ib*l,this.i.y+=this.jb*l,this.i.D(),this.b.Za(this.i)||this.b.Wf(this.i)?this.b.Sc(this.i,-this.ib,-this.jb,l+2,!0):(this.i.x=f,this.i.y=g,this.i.D())):f&&(!q&&this.Yi&&(this.Sb=f,this.Df=f.x,this.Ef=f.y,this.u=0,p=!0),0===this.u&&this.b.Km(this.i,-this.ib,-this.jb,f))));if(0!==
this.u){f=this.i.x;g=this.i.y;this.i.x+=this.u*d*this.ib;this.i.y+=this.u*d*this.jb;k=this.i.x;a=this.i.y;this.i.D();l=this.b.Za(this.i);b=!1;if(!l&&0<this.u&&!q){if((b=0<this.vh?null:this.b.Wf(this.i,!0))&&b.length){if(this.wi){this.i.x=f;this.i.y=g;this.i.D();h=c=0;for(e=b.length;c<e;c++)b[h]=b[c],this.b.mc(this.i,b[c])||h++;b.length=h;this.i.x=k;this.i.y=a;this.i.D()}1<=b.length&&(l=b[0])}b=!!l}l&&(this.b.fd(this.i,l),this.Xg=0,k=b?Math.abs(this.u*d*2.5+10):Math.max(Math.abs(this.u*d*2.5+10),30),
this.b.Sc(this.i,this.ib*(0>this.u?1:-1),this.jb*(0>this.u?1:-1),k,b,l)?(this.Sb=l,this.Df=l.x,this.Ef=l.y,(this.Yi=b)&&(p=!0),this.u=0):(this.i.x=f,this.i.y=g,this.i.D(),this.vi=!0,b||(this.u=0)))}3!==this.Dd&&0<this.u&&!q&&(this.b.trigger(Kc.prototype.k.ow,this.i),this.Dd=3);(q||p)&&0<=this.u&&(3===this.Dd||p||r&&0===this.u?(this.b.trigger(Kc.prototype.k.xw,this.i),this.Dd=0===this.n&&0===this.u?0:1):(0!==this.Dd&&0===this.n&&0===this.u&&(this.b.trigger(Kc.prototype.k.Bw,this.i),this.Dd=0),1===
this.Dd||0===this.n&&0===this.u||r||(this.b.trigger(Kc.prototype.k.Aw,this.i),this.Dd=1)));0<this.vh&&this.vh--;this.wi=this.b.Wf(this.i)}};d.prototype.Cn=function(){return 0!==this.n||0!==this.u};d.prototype.vw=function(){return!0};d.prototype.ow=function(){return!0};d.prototype.Bw=function(){return!0};d.prototype.Aw=function(){return!0};d.prototype.xw=function(){return!0};q.k=new d;r.prototype.Gn=function(d){this.Bb=d;0>this.Bb&&(this.Bb=0)};r.prototype.Br=function(d){switch(d){case 0:this.Ze=!0;
break;case 1:this.$e=!0;break;case 2:this.gk=!0}};r.prototype.Zf=function(d){this.enabled!==(1===d)&&(this.enabled=1===d,this.enabled||(this.Sb=null))};q.B=new r;q.U=new function(){}})();function Pc(d){this.b=d}
(function(){function d(){}var r=Pc.prototype;r.R=function(d){this.behavior=d;this.b=d.b};r.R.prototype.I=function(){};r.N=function(d,m){this.type=d;this.behavior=d.behavior;this.i=m;this.b=d.b};var q=r.N.prototype;q.I=function(){this.speed=Q(this.C[0]);this.ka=Q(this.C[1])};q.Qa=function(){return{speed:this.speed,acc:this.ka}};q.bb=function(d){this.speed=d.speed;this.ka=d.acc};q.Ba=function(){var d=this.b.Jd(this.i);0!==d&&(0!==this.ka&&(this.speed+=this.ka*d),0!==this.speed&&(this.i.m=Oa(this.i.m+
this.speed*d),this.i.D()))};r.k=new function(){};d.prototype.Ak=function(d){this.speed=Q(d)};r.B=new d;r.U=new function(){}})();function Qc(d){this.b=d}
(function(){var d=Qc.prototype;d.R=function(d){this.behavior=d;this.b=d.b};d.R.prototype.I=function(){};d.N=function(d,p){this.type=d;this.behavior=d.behavior;this.i=p;this.b=d.b};var r=d.N.prototype;r.I=function(){this.Gc={}};r.Te=function(){bb(this.Gc)};r.Qa=function(){var d={},p,m;for(p in this.Gc)this.Gc.hasOwnProperty(p)&&(m=this.Gc[p],d[p]={c:m.current.M,t:m.total.M,d:m.duration,r:m.qu});return d};r.bb=function(d){this.Gc={};for(var p in d)d.hasOwnProperty(p)&&(this.Gc[p]={current:new gb,total:new gb,
duration:d[p].d,qu:d[p].r},this.Gc[p].current.M=d[p].c,this.Gc[p].total.M=d[p].t)};r.Ba=function(){var d=this.b.Jd(this.i),p,m;for(p in this.Gc)this.Gc.hasOwnProperty(p)&&(m=this.Gc[p],m.current.add(d),m.total.add(d))};r.Zg=function(){var d,p;for(d in this.Gc)this.Gc.hasOwnProperty(d)&&(p=this.Gc[d],p.current.M>=p.duration&&(p.qu?p.current.M-=p.duration:delete this.Gc[d]))};d.k=new function(){};d.B=new function(){};d.U=new function(){}})();function Rc(d){this.b=d}
(function(){var d=Rc.prototype;d.R=function(d){this.behavior=d;this.b=d.b};d.R.prototype.I=function(){};d.N=function(d,q){this.type=d;this.behavior=d.behavior;this.i=q;this.b=d.b;this.mode=0};d=d.N.prototype;d.I=function(){this.mode=this.C[0]};d.Ba=function(){};d.Zg=function(){this.i.xa();var d=this.i.Ea,q=this.i.q.ab,p=!1;0===this.mode?(0>this.i.x&&(this.i.x=0,p=!0),0>this.i.y&&(this.i.y=0,p=!0),this.i.x>q.width&&(this.i.x=q.width,p=!0),this.i.y>q.height&&(this.i.y=q.height,p=!0)):(0>d.left&&(this.i.x-=
d.left,p=!0),0>d.top&&(this.i.y-=d.top,p=!0),d.right>q.width&&(this.i.x-=d.right-q.width,p=!0),d.bottom>q.height&&(this.i.y-=d.bottom-q.height,p=!0));p&&this.i.D()}})();function Sc(d){this.b=d}
(function(){var d=Sc.prototype;d.R=function(d){this.behavior=d;this.b=d.b};d.R.prototype.I=function(){};d.N=function(d,q){this.type=d;this.behavior=d.behavior;this.i=q;this.b=d.b};d=d.N.prototype;d.I=function(){};d.Ba=function(){this.i.xa();var d=this.i.Ea,q=this.i.q.ab;(0>d.right||0>d.bottom||d.left>q.width||d.top>q.height)&&this.b.$d(this.i)}})();function Uc(d){this.b=d;this.qq=this.Xm=this.fk=this.pq=0}
(function(){function d(){}var r=Uc.prototype;r.R=function(d){this.behavior=d;this.b=d.b};r.R.prototype.I=function(){};r.N=function(d,m){this.type=d;this.behavior=d.behavior;this.i=m;this.b=d.b};var q=r.N.prototype;q.I=function(){this.enabled=0!==this.C[0]};q.Qa=function(){return{smg:this.behavior.pq,ss:this.behavior.fk,se:this.behavior.Xm,smd:this.behavior.qq}};q.bb=function(d){this.behavior.pq=d.smg;this.behavior.fk=d.ss;this.behavior.Xm=d.se;this.behavior.qq=d.smd};q.Ba=function(){};q.Zg=function(){if(this.enabled){var d=
this.behavior.mm.ff(),m=0,k=0,l,a,b,c=0;l=0;for(a=d.length;l<a;l++){a:{b=d[l];for(var e=void 0,h=void 0,f=void 0,e=0,h=b.T.length;e<h;++e)if(f=b.T[e],f.behavior instanceof Uc){b=f;break a}b=null}b&&b.enabled&&(m+=d[l].x,k+=d[l].y,++c)}d=this.i.q.ab;a=this.b.yb.M;b=l=0;a>=this.behavior.fk&&a<this.behavior.Xm&&(l=this.behavior.pq*Math.min(this.b.ah,1),0===this.behavior.qq&&(l*=1-(a-this.behavior.fk)/(this.behavior.Xm-this.behavior.fk)),a=Math.random()*Math.PI*2,b=Math.random()*l,l=Math.cos(a)*b,b*=
Math.sin(a));d.kq(m/c+l);d.lq(k/c+b)}};d.prototype.Zf=function(d){this.enabled=0!==d};r.B=new d})();function tc(d){this.b=d}(function(){function d(){}var r=tc.prototype;r.R=function(d){this.behavior=d;this.b=d.b};r.R.prototype.I=function(){};r.N=function(d,m){this.type=d;this.behavior=d.behavior;this.i=m;this.b=d.b};var q=r.N.prototype;q.I=function(){this.i.J.solidEnabled=0!==this.C[0]};q.Ba=function(){};r.k=new function(){};d.prototype.Zf=function(d){this.i.J.solidEnabled=!!d};r.B=new d})();
function sc(){return[vc,uc,wc,Z,Bc,Ac,Cc,Dc,Y,Uc,Fc,Rc,Hc,Qc,tc,Ec,Gc,Ic,Kc,Pc,Sc,W.prototype.k.Ov,W.prototype.k.hr,Y.prototype.B.Tq,W.prototype.B.gx,uc.prototype.k.yk,W.prototype.B.Kv,W.prototype.k.zv,W.prototype.k.Fv,Y.prototype.B.cx,Ac.prototype.U.Bi,Ac.prototype.U.Ci,Cc.prototype.B.bx,W.prototype.k.Ev,W.prototype.U.random,W.prototype.k.ox,vc.prototype.B.Play,Ac.prototype.k.Dn,Y.prototype.k.Lv,Y.prototype.B.Ow,wc.prototype.k.Pv,Fc.prototype.B.Br,Fc.prototype.k.Cn,Y.prototype.k.Wq,Y.prototype.B.sr,
Y.prototype.B.Mw,Y.prototype.U.ov,Y.prototype.B.Ar,Y.prototype.k.Rv,Y.prototype.B.Lw,Y.prototype.U.Bi,Y.prototype.U.Ci,W.prototype.U.Wr,W.prototype.B.Dv,Ec.prototype.B.Ak,W.prototype.k.Iv,W.prototype.k.wv,W.prototype.U.by,Y.prototype.k.Qv,Y.prototype.B.mv,wc.prototype.k.cr,Y.prototype.B.Pw,Y.prototype.k.yv,Y.prototype.B.kx,Y.prototype.B.Uw,Y.prototype.k.xv,Y.prototype.B.hx,uc.prototype.B.CallFunction,Y.prototype.k.Tv,Y.prototype.B.tr,Y.prototype.k.hw,Y.prototype.U.qx,Y.prototype.k.Hw,uc.prototype.U.Gw,
Y.prototype.B.$w,Y.prototype.B.Yw,Y.prototype.B.xx,W.prototype.B.tx,Gc.prototype.B.ix,Y.prototype.B.Qw,Ec.prototype.B.Zf,Y.prototype.B.Yv,Y.prototype.k.Sv,Ac.prototype.B.Rw,Y.prototype.B.rr,Cc.prototype.B.sr,W.prototype.k.Uq,vc.prototype.B.Hn,Hc.prototype.B.Hv,Hc.prototype.k.Nv,Y.prototype.B.ur,Y.prototype.U.ux,Y.prototype.k.Av,W.prototype.B.nv,Z.prototype.B.Vw,Z.prototype.B.tv,Z.prototype.k.br,Z.prototype.k.$q,Z.prototype.B.Jv,Z.prototype.U.Uv,Y.prototype.U.qv,Y.prototype.k.Bv,Y.prototype.B.Kw,W.prototype.B.Tw,
W.prototype.B.Xw,Ac.prototype.k.En,Cc.prototype.B.Ar,Y.prototype.k.Zq,W.prototype.B.Jw,W.prototype.B.Iw,Cc.prototype.B.rr,Cc.prototype.U.Bi,Cc.prototype.U.Ci,Cc.prototype.B.tr,Y.prototype.B.ax,Ic.prototype.B.Gv,Ic.prototype.k.lr,Ic.prototype.B.jx,Ic.prototype.k.Yq,Y.prototype.k.Yf,Y.prototype.B.Zv,Fc.prototype.B.Gn,Ic.prototype.B.Zf,vc.prototype.B.Ww,Y.prototype.B.Xv,W.prototype.U.PB,Ec.prototype.B.Nw,W.prototype.U["int"],Y.prototype.k.Cv,W.prototype.U.OB,Bc.prototype.B.Zw,W.prototype.B.mx,Y.prototype.k.Vq,
Cc.prototype.B.Tq,Cc.prototype.B.Sw,W.prototype.U.kB]};
