// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,da,ea,fa,ha,ia,ja,u,ka,la,na,pa,qa,ra,P,ta,ua,va,wa,ya,za,Aa,Q,Ba,Ca,Da,Ea,Fa,U,Ga,Ha,Ia,Ja,Ka,Na,Oa,Pa,Qa,Ra,Ta,Ua,Va,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc={},hc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(b){return b.__proto__}:function(b){return b.constructor.prototype});
(function(){function b(a,e,c,f){this.set(a,e,c,f)}function p(){this.Rb=this.Qb=this.Tb=this.Sb=this.ec=this.cc=this.sb=this.rb=0}function h(a,e,c,f){a<e?c<f?(J=a<c?a:c,G=e>f?e:f):(J=a<f?a:f,G=e>c?e:c):c<f?(J=e<c?e:c,G=a>f?a:f):(J=e<f?e:f,G=a>c?a:c)}function q(){this.items=this.Yd=null;this.wi=0;y&&(this.Yd=new Set);this.Ah=[];this.Le=!0}function m(a){z[E++]=a}function r(){this.ea=this.Ol=this.y=this.qm=0}function l(a){this.bb=[];this.Kj=this.Mj=this.Nj=this.Lj=0;this.mj(a)}function a(a,e){this.wm=
a;this.vm=e;this.cells={}}function c(a,e){this.wm=a;this.vm=e;this.cells={}}function d(a,e,c){var f;return F.length?(f=F.pop(),f.gn=a,f.x=e,f.y=c,f):new ba(a,e,c)}function e(a,e,c){this.gn=a;this.x=e;this.y=c;this.Ab=new da}function f(a,e,c){var f;return w.length?(f=w.pop(),f.gn=a,f.x=e,f.y=c,f):new ea(a,e,c)}function k(a,e,c){this.gn=a;this.x=e;this.y=c;this.Ab=[];this.Ng=!0;this.Vd=new da;this.Ih=!1}function g(a,e){return a.Jd-e.Jd}fa=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};ia=function(a){return"undefined"===typeof a};ja=function(a){return"number"===typeof a};u=function(a){return"string"===typeof a};ka=function(a){return 0<a&&0===(a-1&a)};la=function(a){--a;for(var e=1;32>e;e<<=1)a=a|a>>e;return a+1};na=function(a){return 0>a?-a:a};pa=function(a,e){return a>e?a:e};qa=function(a,e){return a<e?a:e};ra=Math.PI;P=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,c,f,d,g,n,k){var v,t,x,l;a<c?(t=a,v=c):(t=c,v=a);d<n?(l=d,x=n):(l=n,x=d);if(v<l||t>x)return!1;e<f?(t=e,v=f):(t=f,v=e);g<k?(l=g,x=k):(l=k,x=g);if(v<l||t>x)return!1;v=d-a+n-c;t=g-e+k-f;a=c-a;e=f-e;d=n-d;g=k-g;k=na(e*d-g*a);return na(d*t-g*v)>k?!1:na(a*t-e*v)<=k};b.prototype.set=function(a,e,c,f){this.left=a;this.top=e;this.right=c;this.bottom=f};b.prototype.wg=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};b.prototype.width=
function(){return this.right-this.left};b.prototype.height=function(){return this.bottom-this.top};b.prototype.offset=function(a,e){this.left+=a;this.top+=e;this.right+=a;this.bottom+=e;return this};b.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)};b.prototype.wq=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};b.prototype.xq=
function(a,e,c){return!(a.right+e<this.left||a.bottom+c<this.top||a.left+e>this.right||a.top+c>this.bottom)};b.prototype.tb=function(a,e){return a>=this.left&&a<=this.right&&e>=this.top&&e<=this.bottom};b.prototype.Rh=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};va=b;p.prototype.kg=function(a){this.rb=a.left;this.sb=a.top;this.cc=a.right;this.ec=a.top;this.Sb=a.right;this.Tb=a.bottom;this.Qb=a.left;this.Rb=a.bottom};p.prototype.os=function(a,
e){if(0===e)this.kg(a);else{var c=Math.sin(e),f=Math.cos(e),d=a.left*c,g=a.top*c,k=a.right*c,c=a.bottom*c,n=a.left*f,v=a.top*f,t=a.right*f,f=a.bottom*f;this.rb=n-g;this.sb=v+d;this.cc=t-g;this.ec=v+k;this.Sb=t-c;this.Tb=f+k;this.Qb=n-c;this.Rb=f+d}};p.prototype.offset=function(a,e){this.rb+=a;this.sb+=e;this.cc+=a;this.ec+=e;this.Sb+=a;this.Tb+=e;this.Qb+=a;this.Rb+=e;return this};var J=0,G=0;p.prototype.Fp=function(a){h(this.rb,this.cc,this.Sb,this.Qb);a.left=J;a.right=G;h(this.sb,this.ec,this.Tb,
this.Rb);a.top=J;a.bottom=G};p.prototype.tb=function(a,e){var c=this.rb,f=this.sb,d=this.cc-c,g=this.ec-f,k=this.Sb-c,n=this.Tb-f,v=a-c,t=e-f,x=d*d+g*g,l=d*k+g*n,g=d*v+g*t,b=k*k+n*n,m=k*v+n*t,r=1/(x*b-l*l),d=(b*g-l*m)*r,x=(x*m-l*g)*r;if(0<=d&&0<x&&1>d+x)return!0;d=this.Qb-c;g=this.Rb-f;x=d*d+g*g;l=d*k+g*n;g=d*v+g*t;r=1/(x*b-l*l);d=(b*g-l*m)*r;x=(x*m-l*g)*r;return 0<=d&&0<x&&1>d+x};p.prototype.Xc=function(a,e){if(e)switch(a){case 0:return this.rb;case 1:return this.cc;case 2:return this.Sb;case 3:return this.Qb;
case 4:return this.rb;default:return this.rb}else switch(a){case 0:return this.sb;case 1:return this.ec;case 2:return this.Tb;case 3:return this.Rb;case 4:return this.sb;default:return this.sb}};p.prototype.ir=function(){return(this.rb+this.cc+this.Sb+this.Qb)/4};p.prototype.jr=function(){return(this.sb+this.ec+this.Tb+this.Rb)/4};p.prototype.fi=function(a,e,c,f){if(this.tb(a,e)||this.tb(c,f))return!0;var d,g,k,n,v;for(v=0;4>v;v++)if(d=this.Xc(v,!0),g=this.Xc(v,!1),k=this.Xc(v+1,!0),n=this.Xc(v+1,
!1),ua(a,e,c,f,d,g,k,n))return!0;return!1};p.prototype.vq=function(a){var e=a.ir(),c=a.jr();if(this.tb(e,c))return!0;e=this.ir();c=this.jr();if(a.tb(e,c))return!0;var f,d,g,k,n,v,t,x;for(t=0;4>t;t++)for(x=0;4>x;x++)if(e=this.Xc(t,!0),c=this.Xc(t,!1),f=this.Xc(t+1,!0),d=this.Xc(t+1,!1),g=a.Xc(x,!0),k=a.Xc(x,!1),n=a.Xc(x+1,!0),v=a.Xc(x+1,!1),ua(e,c,f,d,g,k,n,v))return!0;return!1};wa=p;ya=function(a,e){for(var c in e)e.hasOwnProperty(c)&&(a[c]=e[c]);return a};za=function(a,e){var c,f;e=P(e);if(!(0>e||
e>=a.length)){c=e;for(f=a.length-1;c<f;c++)a[c]=a[c+1];Aa(a,f)}};Aa=function(a,e){a.length=e};Q=function(a){Aa(a,0)};Ba=function(a,e){Q(a);var c,f;c=0;for(f=e.length;c<f;++c)a[c]=e[c]};Ca=function(a,e){a.push.apply(a,e)};Da=function(a,e){var c,f;c=0;for(f=a.length;c<f;++c)if(a[c]===e)return c;return-1};Ea=function(a,e){var c=Da(a,e);-1!==c&&za(a,c)};Fa=function(a,e,c){return a<e?e:a>c?c:a};U=function(a){return a/(180/ra)};Ga=function(a){return 180/ra*a};Ha=function(a){a%=360;0>a&&(a+=360);return a};
Ia=function(a){a%=2*ra;0>a&&(a+=2*ra);return a};Ja=function(a){return Ha(Ga(a))};Ka=function(a){return Ia(U(a))};Na=function(a,e,c,f){return Math.atan2(f-e,c-a)};Oa=function(a,e){if(a===e)return 0;var c=Math.sin(a),f=Math.cos(a),d=Math.sin(e),g=Math.cos(e),c=c*d+f*g;return 1<=c?0:-1>=c?ra:Math.acos(c)};Pa=function(a,e,c){var f=Math.sin(a),d=Math.cos(a),g=Math.sin(e),k=Math.cos(e);return Math.acos(f*g+d*k)>c?0<d*g-f*k?Ia(a+c):Ia(a-c):Ia(e)};Qa=function(a,e){var c=Math.sin(a),f=Math.cos(a),d=Math.sin(e),
g=Math.cos(e);return 0>=f*d-c*g};Ra=function(a,e,c,f,d,g){if(0===c)return g?a:e;var k=Math.sin(c);c=Math.cos(c);a-=f;e-=d;var n=a*k;a=a*c-e*k;e=e*c+n;return g?a+f:e+d};Ta=function(a,e,c,f){a=c-a;e=f-e;return Math.sqrt(a*a+e*e)};Ua=function(a,e){return!a!==!e};Va=function(a){for(var e in a)if(a.hasOwnProperty(e))return!0;return!1};ab=function(a){for(var e in a)a.hasOwnProperty(e)&&delete a[e]};var D=+new Date;bb=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()-D};var n=!1,B=n=!1,L=!1;"undefined"!==typeof window&&(n=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),n=!n&&/safari/i.test(navigator.userAgent),B=/(iphone|ipod|ipad)/i.test(navigator.userAgent),L=window.c2ejecta);var y=!n&&!L&&!B&&"undefined"!==typeof Set&&"undefined"!==
typeof Set.prototype.forEach;q.prototype.contains=function(a){return this.ne()?!1:y?this.Yd.has(a):this.items&&this.items.hasOwnProperty(a)};q.prototype.add=function(a){if(y)this.Yd.has(a)||(this.Yd.add(a),this.Le=!1);else{var e=a.toString(),c=this.items;c?c.hasOwnProperty(e)||(c[e]=a,this.wi++,this.Le=!1):(this.items={},this.items[e]=a,this.wi=1,this.Le=!1)}};q.prototype.remove=function(a){if(!this.ne())if(y)this.Yd.has(a)&&(this.Yd["delete"](a),this.Le=!1);else if(this.items){a=a.toString();var e=
this.items;e.hasOwnProperty(a)&&(delete e[a],this.wi--,this.Le=!1)}};q.prototype.clear=function(){this.ne()||(y?this.Yd.clear():(this.items=null,this.wi=0),Q(this.Ah),this.Le=!0)};q.prototype.ne=function(){return 0===this.count()};q.prototype.count=function(){return y?this.Yd.size:this.wi};var z=null,E=0;q.prototype.By=function(){if(!this.Le){if(y)Q(this.Ah),z=this.Ah,E=0,this.Yd.forEach(m),z=null,E=0;else{var a=this.Ah;Q(a);var e,c=0,f=this.items;if(f)for(e in f)f.hasOwnProperty(e)&&(a[c++]=f[e])}this.Le=
!0}};q.prototype.Id=function(){this.By();return this.Ah};da=q;new da;cb=function(a,e){y?db(a,e.Yd):eb(a,e.Id())};db=function(a,e){var c,f,d,g;f=c=0;for(d=a.length;c<d;++c)g=a[c],e.has(g)||(a[f++]=g);Aa(a,f)};eb=function(a,e){var c,f,d,g;f=c=0;for(d=a.length;c<d;++c)g=a[c],-1===Da(e,g)&&(a[f++]=g);Aa(a,f)};r.prototype.add=function(a){this.y=a-this.qm;this.Ol=this.ea+this.y;this.qm=this.Ol-this.ea-this.y;this.ea=this.Ol};r.prototype.reset=function(){this.ea=this.Ol=this.y=this.qm=0};fb=r;gb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,
"\\$&")};l.prototype.mj=function(a){this.Tr=a;this.gd=a.length/2;this.bb.length=a.length;this.Qj=this.Rj=-1;this.Ip=0};l.prototype.Rf=function(){return!this.Tr.length};l.prototype.za=function(){for(var a=this.bb,e=a[0],c=e,f=a[1],d=f,g,k,n=1,v=this.gd;n<v;++n)k=2*n,g=a[k],k=a[k+1],g<e&&(e=g),g>c&&(c=g),k<f&&(f=k),k>d&&(d=k);this.Lj=e;this.Mj=c;this.Nj=f;this.Kj=d};l.prototype.kg=function(a,e,c){this.bb.length=8;this.gd=4;var f=this.bb;f[0]=a.left-e;f[1]=a.top-c;f[2]=a.right-e;f[3]=a.top-c;f[4]=a.right-
e;f[5]=a.bottom-c;f[6]=a.left-e;f[7]=a.bottom-c;this.Rj=a.right-a.left;this.Qj=a.bottom-a.top;this.za()};l.prototype.oh=function(a,e,c,f,d){this.bb.length=8;this.gd=4;var g=this.bb;g[0]=a.rb-e;g[1]=a.sb-c;g[2]=a.cc-e;g[3]=a.ec-c;g[4]=a.Sb-e;g[5]=a.Tb-c;g[6]=a.Qb-e;g[7]=a.Rb-c;this.Rj=f;this.Qj=d;this.za()};l.prototype.ns=function(a){this.gd=a.gd;Ba(this.bb,a.bb);this.Lj=a.Lj;this.Nj-a.Nj;this.Mj=a.Mj;this.Kj=a.Kj};l.prototype.uf=function(a,e,c){if(this.Rj!==a||this.Qj!==e||this.Ip!==c){this.Rj=a;
this.Qj=e;this.Ip=c;var f,d,g,k,n,v=0,t=1,x=this.Tr,l=this.bb;0!==c&&(v=Math.sin(c),t=Math.cos(c));c=0;for(g=this.gd;c<g;c++)f=2*c,d=f+1,k=x[f]*a,n=x[d]*e,l[f]=k*t-n*v,l[d]=n*t+k*v;this.za()}};l.prototype.tb=function(a,e){var c=this.bb;if(a===c[0]&&e===c[1])return!0;var f,d,g,k=this.gd,n=this.Lj-110,v=this.Nj-101,t=this.Mj+131,x=this.Kj+120,l,b,m=0,r=0;for(f=0;f<k;f++)d=2*f,g=(f+1)%k*2,l=c[d],d=c[d+1],b=c[g],g=c[g+1],ua(n,v,a,e,l,d,b,g)&&m++,ua(t,x,a,e,l,d,b,g)&&r++;return 1===m%2||1===r%2};l.prototype.ei=
function(a,e,c){var f=a.bb,d=this.bb;if(this.tb(f[0]+e,f[1]+c)||a.tb(d[0]-e,d[1]-c))return!0;var g,k,n,v,t,x,l,b,m,r,B,J;g=0;for(v=this.gd;g<v;g++)for(k=2*g,n=(g+1)%v*2,b=d[k],k=d[k+1],m=d[n],r=d[n+1],n=0,l=a.gd;n<l;n++)if(t=2*n,x=(n+1)%l*2,B=f[t]+e,t=f[t+1]+c,J=f[x]+e,x=f[x+1]+c,ua(b,k,m,r,B,t,J,x))return!0;return!1};l.prototype.fi=function(a,e,c,f,d,g){var k=this.bb;if(this.tb(c-a,f-e))return!0;var n,v,t,x,l,b;n=0;for(v=this.gd;n<v;n++)if(t=2*n,x=(n+1)%v*2,l=k[t]+a,t=k[t+1]+e,b=k[x]+a,x=k[x+1]+
e,ua(c,f,d,g,l,t,b,x))return!0;return!1};hb=l;a.prototype.Re=function(a,e,c){var f;f=this.cells[a];return f?(f=f[e])?f:c?(f=d(this,a,e),this.cells[a][e]=f):null:c?(f=d(this,a,e),this.cells[a]={},this.cells[a][e]=f):null};a.prototype.jc=function(a){return P(a/this.wm)};a.prototype.kc=function(a){return P(a/this.vm)};a.prototype.update=function(a,e,c){var f,d,g,k,n;if(e)for(f=e.left,d=e.right;f<=d;++f)for(g=e.top,k=e.bottom;g<=k;++g)if(!c||!c.tb(f,g))if(n=this.Re(f,g,!1))n.remove(a),n.ne()&&(n.Ab.clear(),
1E3>F.length&&F.push(n),this.cells[f][g]=null);if(c)for(f=c.left,d=c.right;f<=d;++f)for(g=c.top,k=c.bottom;g<=k;++g)e&&e.tb(f,g)||this.Re(f,g,!0).un(a)};a.prototype.tl=function(a,e){var c,f,d,g,k,n;c=this.jc(a.left);d=this.kc(a.top);f=this.jc(a.right);for(k=this.kc(a.bottom);c<=f;++c)for(g=d;g<=k;++g)(n=this.Re(c,g,!1))&&n.dump(e)};ib=a;c.prototype.Re=function(a,e,c){var d;d=this.cells[a];return d?(d=d[e])?d:c?(d=f(this,a,e),this.cells[a][e]=d):null:c?(d=f(this,a,e),this.cells[a]={},this.cells[a][e]=
d):null};c.prototype.jc=function(a){return P(a/this.wm)};c.prototype.kc=function(a){return P(a/this.vm)};c.prototype.update=function(a,e,c){var f,d,g,k,n;if(e)for(f=e.left,d=e.right;f<=d;++f)for(g=e.top,k=e.bottom;g<=k;++g)if(!c||!c.tb(f,g))if(n=this.Re(f,g,!1))n.remove(a),n.ne()&&(n.reset(),1E3>w.length&&w.push(n),this.cells[f][g]=null);if(c)for(f=c.left,d=c.right;f<=d;++f)for(g=c.top,k=c.bottom;g<=k;++g)e&&e.tb(f,g)||this.Re(f,g,!0).un(a)};c.prototype.tl=function(a,e,c,f,d){var g,k;a=this.jc(a);
e=this.kc(e);c=this.jc(c);for(g=this.kc(f);a<=c;++a)for(f=e;f<=g;++f)(k=this.Re(a,f,!1))&&k.dump(d)};c.prototype.ix=function(a){var e,c,f,d,g;e=a.left;f=a.top;c=a.right;for(d=a.bottom;e<=c;++e)for(a=f;a<=d;++a)if(g=this.Re(e,a,!1))g.Ng=!1};jb=c;var F=[];e.prototype.ne=function(){return this.Ab.ne()};e.prototype.un=function(a){this.Ab.add(a)};e.prototype.remove=function(a){this.Ab.remove(a)};e.prototype.dump=function(a){Ca(a,this.Ab.Id())};ba=e;var w=[];k.prototype.ne=function(){if(!this.Ab.length)return!0;
if(this.Ab.length>this.Vd.count())return!1;this.Om();return!0};k.prototype.un=function(a){this.Vd.contains(a)?(this.Vd.remove(a),this.Vd.ne()&&(this.Ih=!1)):this.Ab.length?(this.Ab[this.Ab.length-1].Rd()>a.Rd()&&(this.Ng=!1),this.Ab.push(a)):(this.Ab.push(a),this.Ng=!0)};k.prototype.remove=function(a){this.Vd.add(a);this.Ih=!0;30<=this.Vd.count()&&this.Om()};k.prototype.Om=function(){this.Ih&&(this.Vd.count()===this.Ab.length?this.reset():(cb(this.Ab,this.Vd),this.Vd.clear(),this.Ih=!1))};k.prototype.qv=
function(){this.Ng||(this.Ab.sort(g),this.Ng=!0)};k.prototype.reset=function(){Q(this.Ab);this.Ng=!0;this.Vd.clear();this.Ih=!1};k.prototype.dump=function(a){this.Om();this.qv();this.Ab.length&&a.push(this.Ab)};ea=k;var C="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");kb=function(a){return 0>=a||11<=a?"source-over":C[a-1]};lb=function(a,e,c){if(c)switch(a.$b=c.ONE,a.Ub=c.ONE_MINUS_SRC_ALPHA,e){case 1:a.$b=c.ONE;a.Ub=
c.ONE;break;case 3:a.$b=c.ONE;a.Ub=c.ZERO;break;case 4:a.$b=c.ONE_MINUS_DST_ALPHA;a.Ub=c.ONE;break;case 5:a.$b=c.DST_ALPHA;a.Ub=c.ZERO;break;case 6:a.$b=c.ZERO;a.Ub=c.SRC_ALPHA;break;case 7:a.$b=c.ONE_MINUS_DST_ALPHA;a.Ub=c.ZERO;break;case 8:a.$b=c.ZERO;a.Ub=c.ONE_MINUS_SRC_ALPHA;break;case 9:a.$b=c.DST_ALPHA;a.Ub=c.ONE_MINUS_SRC_ALPHA;break;case 10:a.$b=c.ONE_MINUS_DST_ALPHA,a.Ub=c.SRC_ALPHA}};mb=function(a){return Math.round(1E6*a)/1E6};nb=function(a,e){return"string"!==typeof a||"string"!==typeof e||
a.length!==e.length?!1:a===e?!0:a.toLowerCase()===e.toLowerCase()};ob=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||nb(a.tagName,"canvas")?!0:!1}})();var ic="undefined"!==typeof Float32Array?Float32Array:Array;function jc(b){var p=new ic(3);b&&(p[0]=b[0],p[1]=b[1],p[2]=b[2]);return p}
function kc(b){var p=new ic(16);b&&(p[0]=b[0],p[1]=b[1],p[2]=b[2],p[3]=b[3],p[4]=b[4],p[5]=b[5],p[6]=b[6],p[7]=b[7],p[8]=b[8],p[9]=b[9],p[10]=b[10],p[11]=b[11],p[12]=b[12],p[13]=b[13],p[14]=b[14],p[15]=b[15]);return p}function lc(b,p){p[0]=b[0];p[1]=b[1];p[2]=b[2];p[3]=b[3];p[4]=b[4];p[5]=b[5];p[6]=b[6];p[7]=b[7];p[8]=b[8];p[9]=b[9];p[10]=b[10];p[11]=b[11];p[12]=b[12];p[13]=b[13];p[14]=b[14];p[15]=b[15]}
function mc(b,p){var h=p[0],q=p[1];p=p[2];b[0]*=h;b[1]*=h;b[2]*=h;b[3]*=h;b[4]*=q;b[5]*=q;b[6]*=q;b[7]*=q;b[8]*=p;b[9]*=p;b[10]*=p;b[11]*=p}
function nc(b,p,h,q){q||(q=kc());var m,r,l,a,c,d,e,f,k=b[0],g=b[1];b=b[2];r=h[0];l=h[1];m=h[2];h=p[1];d=p[2];k===p[0]&&g===h&&b===d?(b=q,b[0]=1,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=1,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[10]=1,b[11]=0,b[12]=0,b[13]=0,b[14]=0,b[15]=1):(h=k-p[0],d=g-p[1],e=b-p[2],f=1/Math.sqrt(h*h+d*d+e*e),h*=f,d*=f,e*=f,p=l*e-m*d,m=m*h-r*e,r=r*d-l*h,(f=Math.sqrt(p*p+m*m+r*r))?(f=1/f,p*=f,m*=f,r*=f):r=m=p=0,l=d*r-e*m,a=e*p-h*r,c=h*m-d*p,(f=Math.sqrt(l*l+a*a+c*c))?(f=1/f,l*=f,a*=f,c*=f):c=a=l=0,
q[0]=p,q[1]=l,q[2]=h,q[3]=0,q[4]=m,q[5]=a,q[6]=d,q[7]=0,q[8]=r,q[9]=c,q[10]=e,q[11]=0,q[12]=-(p*k+m*g+r*b),q[13]=-(l*k+a*g+c*b),q[14]=-(h*k+d*g+e*b),q[15]=1)}
(function(){function b(a,c,d){this.oe=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ga=!!d;this.Fk=this.ji=!1;this.Dm=0;this.jm=1;this.$o=1E3;this.Gy=(this.$o-this.jm)/32768;this.rm=jc([0,0,100]);this.Sq=jc([0,0,0]);this.Ns=jc([0,1,0]);this.zj=jc([1,1,1]);this.Up=!0;this.Zk=kc();this.Pc=kc();this.Fn=kc();this.Cm=kc();this.G=a;this.version=0===this.G.getParameter(this.G.VERSION).indexOf("WebGL 2")?2:1;this.rq()}function p(a,c,d){this.G=a;this.nj=
c;this.name=d;this.dd=a.getAttribLocation(c,"aPos");this.Ze=a.getAttribLocation(c,"aTex");this.Qq=a.getUniformLocation(c,"matP");this.Uk=a.getUniformLocation(c,"matMV");this.ah=a.getUniformLocation(c,"opacity");this.Ln=a.getUniformLocation(c,"colorFill");this.Rq=a.getUniformLocation(c,"samplerFront");this.Li=a.getUniformLocation(c,"samplerBack");this.Yf=a.getUniformLocation(c,"destStart");this.Xf=a.getUniformLocation(c,"destEnd");this.Ni=a.getUniformLocation(c,"seconds");this.Nn=a.getUniformLocation(c,
"pixelWidth");this.Mn=a.getUniformLocation(c,"pixelHeight");this.Ki=a.getUniformLocation(c,"layerScale");this.Ji=a.getUniformLocation(c,"layerAngle");this.Oi=a.getUniformLocation(c,"viewOrigin");this.Mi=a.getUniformLocation(c,"scrollPos");this.Jw=!!(this.Nn||this.Mn||this.Ni||this.Li||this.Yf||this.Xf||this.Ki||this.Ji||this.Oi||this.Mi);this.$q=this.br=-999;this.Yk=1;this.Wq=this.Vq=0;this.Yq=this.Uq=this.Tq=1;this.er=this.dr=this.cr=this.hr=this.fr=this.Xq=0;this.En=[];this.Zq=kc();this.ah&&a.uniform1f(this.ah,
1);this.Ln&&a.uniform4f(this.Ln,1,1,1,1);this.Rq&&a.uniform1i(this.Rq,0);this.Li&&a.uniform1i(this.Li,1);this.Yf&&a.uniform2f(this.Yf,0,0);this.Xf&&a.uniform2f(this.Xf,1,1);this.Ki&&a.uniform1f(this.Ki,1);this.Ji&&a.uniform1f(this.Ji,0);this.Oi&&a.uniform2f(this.Oi,0,0);this.Mi&&a.uniform2f(this.Mi,0,0);this.Ni&&a.uniform1f(this.Ni,0);this.Kf=!1}function h(a,c){return a[0]===c[0]&&a[1]===c[1]&&a[2]===c[2]&&a[3]===c[3]&&a[4]===c[4]&&a[5]===c[5]&&a[6]===c[6]&&a[7]===c[7]&&a[8]===c[8]&&a[9]===c[9]&&
a[10]===c[10]&&a[11]===c[11]&&a[12]===c[12]&&a[13]===c[13]&&a[14]===c[14]&&a[15]===c[15]}function q(a,c){this.type=a;this.C=c;this.G=c.G;this.ad=this.ac=this.Er=0;this.ba=this.md=null;this.qs=[]}var m=kc();b.prototype.rq=function(){var a=this.G,c;this.Lq=1;this.Uf=this.Ve=null;this.Zj=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.Ga?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.Mq=a.ONE;this.Kq=a.ONE_MINUS_SRC_ALPHA;this.fm=new Float32Array(8E3*(this.Ga?3:2));this.Ql=new Float32Array(16E3);this.eo=new Float32Array(32E3);this.co=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.co);a.bufferData(a.ARRAY_BUFFER,this.eo.byteLength,a.DYNAMIC_DRAW);this.yj=Array(4);this.sj=Array(4);for(c=0;4>c;c++)this.yj[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.yj[c]),a.bufferData(a.ARRAY_BUFFER,this.fm.byteLength,a.DYNAMIC_DRAW),this.sj[c]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.sj[c]),a.bufferData(a.ARRAY_BUFFER,this.Ql.byteLength,a.DYNAMIC_DRAW);this.ee=0;this.Nw=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Nw);for(var d=new Uint16Array(12E3),e=c=0;12E3>c;)d[c++]=e,d[c++]=e+1,d[c++]=e+2,d[c++]=e,d[c++]=e+2,d[c++]=e+3,e+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,d,a.STATIC_DRAW);this.ih=this.uh=this.Ce=0;this.Ta=[];c=this.Ga?"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}";d=this.Nh({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}"},c,"<default>");this.Ta.push(d);d=this.Nh({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.Ta.push(d);d=this.Nh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},c,"<earlyz>");this.Ta.push(d);d=this.Nh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
c,"<fill>");this.Ta.push(d);for(var f in oc)oc.hasOwnProperty(f)&&this.Ta.push(this.Nh(oc[f],c,f));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.de=[];this.Md=0;this.Xb=this.Ib=!1;this.Pp=this.Ai=-1;this.yg=null;this.Nm=a.createFramebuffer();this.ck=this.wl=null;this.Dp=!1;this.Ga&&(this.ck=a.createRenderbuffer());this.nf=jc([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.kx=a[0];this.Rn=a[1];2048<this.Rn&&(this.Rn=2048);this.yc(0)};p.prototype.Ro=function(a){h(this.Zq,
a)||(lc(a,this.Zq),this.G.uniformMatrix4fv(this.Uk,!1,a))};b.prototype.Nh=function(a,c,d){var e=this.G,f=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(f,a.src);e.compileShader(f);if(!e.getShaderParameter(f,e.COMPILE_STATUS))return e.deleteShader(f),null;var k=e.createShader(e.VERTEX_SHADER);e.shaderSource(k,c);e.compileShader(k);if(!e.getShaderParameter(k,e.COMPILE_STATUS))return e.deleteShader(f),e.deleteShader(k),null;c=e.createProgram();e.attachShader(c,f);e.attachShader(c,k);e.linkProgram(c);
if(!e.getProgramParameter(c,e.LINK_STATUS))return e.deleteShader(f),e.deleteShader(k),e.deleteProgram(c),null;e.useProgram(c);e.deleteShader(f);e.deleteShader(k);d=new p(e,c,d);d.Lm=a.Lm||0;d.Mm=a.Mm||0;d.Op=!!a.Op;d.Ad=!!a.Ad;d.Bp=!!a.Bp;d.aa=a.aa||[];a=0;for(f=d.aa.length;a<f;a++)d.aa[a][1]=e.getUniformLocation(c,d.aa[a][0]),d.En.push(0),e.uniform1f(d.aa[a][1],0);return d};b.prototype.bn=function(a){var c,d;c=0;for(d=this.Ta.length;c<d;c++)if(this.Ta[c].name===a)return c;return-1};b.prototype.Sr=
function(a,c,d){var e=this.Pc,f=this.Zk,k=[0,0,0,0,0,0,0,0];k[0]=e[0]*a+e[4]*c+e[12];k[1]=e[1]*a+e[5]*c+e[13];k[2]=e[2]*a+e[6]*c+e[14];k[3]=e[3]*a+e[7]*c+e[15];k[4]=f[0]*k[0]+f[4]*k[1]+f[8]*k[2]+f[12]*k[3];k[5]=f[1]*k[0]+f[5]*k[1]+f[9]*k[2]+f[13]*k[3];k[6]=f[2]*k[0]+f[6]*k[1]+f[10]*k[2]+f[14]*k[3];k[7]=-k[2];0!==k[7]&&(k[7]=1/k[7],k[4]*=k[7],k[5]*=k[7],k[6]*=k[7],d[0]=(.5*k[4]+.5)*this.width,d[1]=(.5*k[5]+.5)*this.height)};b.prototype.jg=function(a,c,d){if(this.width!==a||this.height!==c||d){this.ge();
d=this.G;this.width=a;this.height=c;d.viewport(0,0,a,c);nc(this.rm,this.Sq,this.Ns,this.Pc);if(this.Ga){var e=-a/2;a=a/2;var f=c/2;c=-c/2;var k=this.jm,g=this.$o,l=this.Zk;l||(l=kc());var b=a-e,m=c-f,n=g-k;l[0]=2/b;l[1]=0;l[2]=0;l[3]=0;l[4]=0;l[5]=2/m;l[6]=0;l[7]=0;l[8]=0;l[9]=0;l[10]=-2/n;l[11]=0;l[12]=-(e+a)/b;l[13]=-(c+f)/m;l[14]=-(g+k)/n;l[15]=1;this.zj[0]=1;this.zj[1]=1}else c=a/c,e=this.jm,a=this.$o,l=this.Zk,g=e*Math.tan(45*Math.PI/360),c*=g,f=-c,k=-g,l||(l=kc()),b=c-f,m=g-k,n=a-e,l[0]=2*e/
b,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=2*e/m,l[6]=0,l[7]=0,l[8]=(c+f)/b,l[9]=(g+k)/m,l[10]=-(a+e)/n,l[11]=-1,l[12]=0,l[13]=0,l[14]=-(a*e*2)/n,l[15]=0,e=[0,0],a=[0,0],this.Sr(0,0,e),this.Sr(1,1,a),this.zj[0]=1/(a[0]-e[0]),this.zj[1]=-1/(a[1]-e[1]);e=0;for(a=this.Ta.length;e<a;e++)f=this.Ta[e],f.Kf=!1,f.Qq&&(d.useProgram(f.nj),d.uniformMatrix4fv(f.Qq,!1,this.Zk));d.useProgram(this.Ta[this.Ai].nj);d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE1);d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE0);
this.Uf=this.Ve=null;this.ck&&(d.bindFramebuffer(d.FRAMEBUFFER,this.Nm),d.bindRenderbuffer(d.RENDERBUFFER,this.ck),d.renderbufferStorage(d.RENDERBUFFER,d.DEPTH_COMPONENT16,this.width,this.height),this.Dp||(d.framebufferRenderbuffer(d.FRAMEBUFFER,d.DEPTH_ATTACHMENT,d.RENDERBUFFER,this.ck),this.Dp=!0),d.bindRenderbuffer(d.RENDERBUFFER,null),d.bindFramebuffer(d.FRAMEBUFFER,null),this.wl=null)}};b.prototype.jd=function(){nc(this.rm,this.Sq,this.Ns,this.Pc);mc(this.Pc,this.zj)};b.prototype.translate=function(a,
c){if(0!==a||0!==c){this.nf[0]=a;this.nf[1]=c;this.nf[2]=0;var d=this.Pc,e=this.nf,f=e[0],k=e[1],e=e[2];d[12]=d[0]*f+d[4]*k+d[8]*e+d[12];d[13]=d[1]*f+d[5]*k+d[9]*e+d[13];d[14]=d[2]*f+d[6]*k+d[10]*e+d[14];d[15]=d[3]*f+d[7]*k+d[11]*e+d[15]}};b.prototype.scale=function(a,c){if(1!==a||1!==c)this.nf[0]=a,this.nf[1]=c,this.nf[2]=1,mc(this.Pc,this.nf)};b.prototype.zl=function(a){if(0!==a){var c=this.Pc,d,e=Math.sin(a);a=Math.cos(a);var f=c[0],k=c[1],g=c[2],l=c[3],b=c[4],m=c[5],n=c[6],r=c[7];d?c!==d&&(d[8]=
c[8],d[9]=c[9],d[10]=c[10],d[11]=c[11],d[12]=c[12],d[13]=c[13],d[14]=c[14],d[15]=c[15]):d=c;d[0]=f*a+b*e;d[1]=k*a+m*e;d[2]=g*a+n*e;d[3]=l*a+r*e;d[4]=f*-e+b*a;d[5]=k*-e+m*a;d[6]=g*-e+n*a;d[7]=l*-e+r*a}};b.prototype.Tc=function(){if(!h(this.Fn,this.Pc)){var a=this.tc();a.type=5;a.ba?lc(this.Pc,a.ba):a.ba=kc(this.Pc);lc(this.Pc,this.Fn);this.Xb=this.Ib=!1}};b.prototype.El=function(a){this.Ga&&(32760<a&&(a=32760),this.Dm=this.rm[2]-this.jm-a*this.Gy)};q.prototype.Xu=function(){var a=this.G,c=this.C;0!==
this.ac?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,c.Nm),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),c.Fk=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),c.Fk=!1)};q.prototype.av=function(){this.G.bindTexture(this.G.TEXTURE_2D,this.md)};q.prototype.bv=function(){var a=this.G;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.md);
a.activeTexture(a.TEXTURE0)};q.prototype.Yu=function(){var a=this.Er,c=this.C;c.Zj=a;c=c.yg;c.ah&&c.Yk!==a&&(c.Yk=a,this.G.uniform1f(c.ah,a))};q.prototype.Su=function(){this.G.drawElements(this.G.TRIANGLES,this.ad,this.G.UNSIGNED_SHORT,this.ac)};q.prototype.Uu=function(){this.G.blendFunc(this.ac,this.ad)};q.prototype.cv=function(){var a,c,d,e=this.C.Ta,f=this.C.Pp;a=0;for(c=e.length;a<c;a++)d=e[a],a===f&&d.Uk?(d.Ro(this.ba),d.Kf=!0):d.Kf=!1;lc(this.ba,this.C.Cm)};q.prototype.Tu=function(){var a=this.G,
c=this.C;this.md?(c.Uf===this.md&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),c.Uf=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,c.Nm),c.Fk||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.md,0)):(c.Ga||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};q.prototype.Pu=function(){var a=this.G,c=this.ac;0===c?(a.clearColor(this.ba[0],this.ba[1],this.ba[2],this.ba[3]),a.clear(a.COLOR_BUFFER_BIT)):
1===c?(a.enable(a.SCISSOR_TEST),a.scissor(this.ba[0],this.ba[1],this.ba[2],this.ba[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};q.prototype.Wu=function(){var a=this.G;0!==this.ac?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};q.prototype.Ru=function(){var a=this.G,c=this.C;c.Ga&&a.disable(a.DEPTH_TEST);var d=c.Ta[1];a.useProgram(d.nj);!d.Kf&&d.Uk&&(d.Ro(c.Cm),d.Kf=!0);a.enableVertexAttribArray(d.dd);a.bindBuffer(a.ARRAY_BUFFER,c.co);
a.vertexAttribPointer(d.dd,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.ac/4,this.ad);d=c.yg;a.useProgram(d.nj);0<=d.dd&&(a.enableVertexAttribArray(d.dd),a.bindBuffer(a.ARRAY_BUFFER,c.yj[c.ee]),a.vertexAttribPointer(d.dd,c.Ga?3:2,a.FLOAT,!1,0,0));0<=d.Ze&&(a.enableVertexAttribArray(d.Ze),a.bindBuffer(a.ARRAY_BUFFER,c.sj[c.ee]),a.vertexAttribPointer(d.Ze,2,a.FLOAT,!1,0,0));c.Ga&&a.enable(a.DEPTH_TEST)};q.prototype.Zu=function(){var a=this.G,c=this.C,d=c.Ta[this.ac];c.Pp=this.ac;c.yg=d;a.useProgram(d.nj);
!d.Kf&&d.Uk&&(d.Ro(c.Cm),d.Kf=!0);d.ah&&d.Yk!==c.Zj&&(d.Yk=c.Zj,a.uniform1f(d.ah,c.Zj));0<=d.dd&&(a.enableVertexAttribArray(d.dd),a.bindBuffer(a.ARRAY_BUFFER,c.yj[c.ee]),a.vertexAttribPointer(d.dd,c.Ga?3:2,a.FLOAT,!1,0,0));0<=d.Ze&&(a.enableVertexAttribArray(d.Ze),a.bindBuffer(a.ARRAY_BUFFER,c.sj[c.ee]),a.vertexAttribPointer(d.Ze,2,a.FLOAT,!1,0,0))};q.prototype.Vu=function(){var a=this.ba;this.G.uniform4f(this.C.yg.Ln,a[0],a[1],a[2],a[3])};q.prototype.$u=function(){var a,c,d=this.C.yg,e=this.G;a=
this.ba;d.Li&&this.C.Uf!==this.md&&(e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,this.md),this.C.Uf=this.md,e.activeTexture(e.TEXTURE0));var f=a[0];d.Nn&&f!==d.br&&(d.br=f,e.uniform1f(d.Nn,f));f=a[1];d.Mn&&f!==d.$q&&(d.$q=f,e.uniform1f(d.Mn,f));f=a[2];c=a[3];!d.Yf||f===d.Vq&&c===d.Wq||(d.Vq=f,d.Wq=c,e.uniform2f(d.Yf,f,c));f=a[4];c=a[5];!d.Xf||f===d.Tq&&c===d.Uq||(d.Tq=f,d.Uq=c,e.uniform2f(d.Xf,f,c));f=a[6];d.Ki&&f!==d.Yq&&(d.Yq=f,e.uniform1f(d.Ki,f));f=a[7];d.Ji&&f!==d.Xq&&(d.Xq=f,e.uniform1f(d.Ji,
f));f=a[8];c=a[9];!d.Oi||f===d.fr&&c===d.hr||(d.fr=f,d.hr=c,e.uniform2f(d.Oi,f,c));f=a[10];c=a[11];!d.Mi||f===d.cr&&c===d.dr||(d.cr=f,d.dr=c,e.uniform2f(d.Mi,f,c));f=a[12];d.Ni&&f!==d.er&&(d.er=f,e.uniform1f(d.Ni,f));if(d.aa.length)for(a=0,c=d.aa.length;a<c;a++)f=this.qs[a],f!==d.En[a]&&(d.En[a]=f,e.uniform1f(d.aa[a][1],f))};b.prototype.tc=function(){this.Md===this.de.length&&this.de.push(new q(0,this));return this.de[this.Md++]};b.prototype.ge=function(){if(0!==this.Md&&!this.G.isContextLost()){var a=
this.G;0<this.ih&&(a.bindBuffer(a.ARRAY_BUFFER,this.co),a.bufferSubData(a.ARRAY_BUFFER,0,this.eo.subarray(0,this.ih)),c&&0<=c.dd&&"<point>"===c.name&&a.vertexAttribPointer(c.dd,4,a.FLOAT,!1,0,0));if(0<this.Ce){var c=this.yg;a.bindBuffer(a.ARRAY_BUFFER,this.yj[this.ee]);a.bufferSubData(a.ARRAY_BUFFER,0,this.fm.subarray(0,this.Ce));c&&0<=c.dd&&"<point>"!==c.name&&a.vertexAttribPointer(c.dd,this.Ga?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.sj[this.ee]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Ql.subarray(0,
this.uh));c&&0<=c.Ze&&"<point>"!==c.name&&a.vertexAttribPointer(c.Ze,2,a.FLOAT,!1,0,0)}for(var d,a=0,c=this.Md;a<c;a++)switch(d=this.de[a],d.type){case 1:d.Su();break;case 2:d.av();break;case 3:d.Yu();break;case 4:d.Uu();break;case 5:d.cv();break;case 6:d.Tu();break;case 7:d.Pu();break;case 8:d.Ru();break;case 9:d.Zu();break;case 10:d.$u();break;case 11:d.bv();break;case 12:d.Vu();break;case 13:d.Wu();break;case 14:d.Xu()}this.ih=this.uh=this.Ce=this.Md=0;this.Fk=this.Xb=this.Ib=!1;this.ee++;4<=this.ee&&
(this.ee=0)}};b.prototype.jf=function(a){if(a!==this.Lq&&!this.ji){var c=this.tc();c.type=3;this.Lq=c.Er=a;this.Xb=this.Ib=!1}};b.prototype.xc=function(a){if(a!==this.Ve){var c=this.tc();c.type=2;this.Ve=c.md=a;this.Xb=this.Ib=!1}};b.prototype.hf=function(a,c){if((a!==this.Mq||c!==this.Kq)&&!this.ji){var d=this.tc();d.type=4;d.ac=a;d.ad=c;this.Mq=a;this.Kq=c;this.Xb=this.Ib=!1}};b.prototype.bs=function(){this.hf(this.G.ONE,this.G.ONE_MINUS_SRC_ALPHA)};b.prototype.jh=function(a,c,d,e,f,k,g,l){15992<=
this.Ce&&this.ge();var b=this.Ce,m=this.uh,n=this.fm,r=this.Ql,p=this.Dm;if(this.Ib)this.de[this.Md-1].ad+=6;else{var h=this.tc();h.type=1;h.ac=this.Ga?b:b/2*3;h.ad=6;this.Ib=!0;this.Xb=!1}this.Ga?(n[b++]=a,n[b++]=c,n[b++]=p,n[b++]=d,n[b++]=e,n[b++]=p,n[b++]=f,n[b++]=k,n[b++]=p,n[b++]=g,n[b++]=l,n[b++]=p):(n[b++]=a,n[b++]=c,n[b++]=d,n[b++]=e,n[b++]=f,n[b++]=k,n[b++]=g,n[b++]=l);r[m++]=0;r[m++]=0;r[m++]=1;r[m++]=0;r[m++]=1;r[m++]=1;r[m++]=0;r[m++]=1;this.Ce=b;this.uh=m};b.prototype.Wd=function(a,c,
d,e,f,k,g,l,b){15992<=this.Ce&&this.ge();var m=this.Ce,n=this.uh,r=this.fm,p=this.Ql,h=this.Dm;if(this.Ib)this.de[this.Md-1].ad+=6;else{var z=this.tc();z.type=1;z.ac=this.Ga?m:m/2*3;z.ad=6;this.Ib=!0;this.Xb=!1}var z=b.left,q=b.top,F=b.right;b=b.bottom;this.Ga?(r[m++]=a,r[m++]=c,r[m++]=h,r[m++]=d,r[m++]=e,r[m++]=h,r[m++]=f,r[m++]=k,r[m++]=h,r[m++]=g,r[m++]=l,r[m++]=h):(r[m++]=a,r[m++]=c,r[m++]=d,r[m++]=e,r[m++]=f,r[m++]=k,r[m++]=g,r[m++]=l);p[n++]=z;p[n++]=q;p[n++]=F;p[n++]=q;p[n++]=F;p[n++]=b;p[n++]=
z;p[n++]=b;this.Ce=m;this.uh=n};b.prototype.Fx=function(a,c,d,e){7996<=this.ih&&this.ge();var f=this.ih,k=this.eo;if(this.Xb)this.de[this.Md-1].ad++;else{var g=this.tc();g.type=8;g.ac=f;g.ad=1;this.Xb=!0;this.Ib=!1}k[f++]=a;k[f++]=c;k[f++]=d;k[f++]=e;this.ih=f};b.prototype.yc=function(a){if(this.Ai!==a){if(!this.Ta[a]){if(0===this.Ai)return;a=0}var c=this.tc();c.type=9;this.Ai=c.ac=a;this.Xb=this.Ib=!1}};b.prototype.bj=function(a){a=this.Ta[a];return!(!a.Yf&&!a.Xf)};b.prototype.ho=function(a){a=this.Ta[a];
return!!(a.Yf||a.Xf||a.Op)};b.prototype.fo=function(a){return this.Ta[a].Ad};b.prototype.Nx=function(a){a=this.Ta[a];return 0!==a.Lm||0!==a.Mm};b.prototype.qw=function(a){return this.Ta[a].Lm};b.prototype.rw=function(a){return this.Ta[a].Mm};b.prototype.sw=function(a,c){return this.Ta[a].aa[c][2]};b.prototype.rl=function(a){return this.Ta[a].Bp};b.prototype.nh=function(a,c,d,e,f,k,g,l,b,m,n,r,p,h,z){var q=this.Ta[this.Ai],F,w;if(q.Jw||z.length){F=this.tc();F.type=10;F.ba?lc(this.Pc,F.ba):F.ba=kc();
w=F.ba;w[0]=c;w[1]=d;w[2]=e;w[3]=f;w[4]=k;w[5]=g;w[6]=l;w[7]=b;w[8]=m;w[9]=n;w[10]=r;w[11]=p;w[12]=h;q.Li?F.md=a:F.md=null;if(z.length)for(d=F.qs,d.length=z.length,a=0,c=z.length;a<c;a++)d[a]=z[a];this.Xb=this.Ib=!1}};b.prototype.clear=function(a,c,d,e){var f=this.tc();f.type=7;f.ac=0;f.ba||(f.ba=kc());f.ba[0]=a;f.ba[1]=c;f.ba[2]=d;f.ba[3]=e;this.Xb=this.Ib=!1};b.prototype.clearRect=function(a,c,d,e){if(!(0>d||0>e)){var f=this.tc();f.type=7;f.ac=1;f.ba||(f.ba=kc());f.ba[0]=a;f.ba[1]=c;f.ba[2]=d;f.ba[3]=
e;this.Xb=this.Ib=!1}};b.prototype.es=function(a){if(this.Ga&&(a=!!a,this.ji!==a)){var c=this.tc();c.type=14;c.ac=a?1:0;this.Xb=this.Ib=!1;this.ji=a;this.wl=null;this.ji?this.yc(2):this.yc(0)}};b.prototype.ds=function(a){if(this.Ga){var c=this.tc();c.type=13;c.ac=a?1:0;this.Xb=this.Ib=!1}};b.prototype.bq=function(){lc(this.Fn,m);this.jd();this.Tc();var a=this.width/2,c=this.height/2;this.jh(-a,c,a,c,a,-c,-a,-c);lc(m,this.Pc);this.Tc()};b.prototype.cs=function(a,c,d){this.yc(3);var e=this.tc();e.type=
12;e.ba||(e.ba=kc());e.ba[0]=a;e.ba[1]=c;e.ba[2]=d;e.ba[3]=1;this.Xb=this.Ib=!1};b.prototype.ky=function(){this.yc(0)};b.prototype.Vx=function(){this.yc(2)};b.prototype.Mx=function(){this.ge();this.G.flush()};var r=[],l={};b.prototype.Iu=function(){Q(r);l={}};b.prototype.Zg=function(a,c,d,e){c=!!c;d=!!d;var f=a.src+","+c+","+d+(c?",undefined":""),k=null;if("undefined"!==typeof a.src&&l.hasOwnProperty(f))return k=l[f],k.Pj++,k;this.ge();var g=this.G,b=ka(a.width)&&ka(a.height),k=g.createTexture();
g.bindTexture(g.TEXTURE_2D,k);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var m=g.RGBA,p=g.RGBA,n=g.UNSIGNED_BYTE;if(e&&!this.oe)switch(e){case 1:p=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:p=m=g.RGB,n=g.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!b&&c){e=document.createElement("canvas");e.width=la(a.width);e.height=la(a.height);var B=e.getContext("2d");"undefined"!==typeof B.imageSmoothingEnabled?B.imageSmoothingEnabled=d:(B.webkitImageSmoothingEnabled=
d,B.mozImageSmoothingEnabled=d,B.msImageSmoothingEnabled=d);B.drawImage(a,0,0,a.width,a.height,0,0,e.width,e.height);g.texImage2D(g.TEXTURE_2D,0,m,p,n,e)}else g.texImage2D(g.TEXTURE_2D,0,m,p,n,a);c?(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));d?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),
(b||2<=this.version)&&this.Up?(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.Ve=null;k.tf=a.width;k.sf=a.height;k.Pj=1;k.Hp=f;r.push(k);return l[f]=k};b.prototype.Kc=function(a,c,d,e){this.ge();var f=this.G;this.oe&&(e=
!1);var k=f.createTexture();f.bindTexture(f.TEXTURE_2D,k);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,a,c,0,f.RGBA,e?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,null);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,d?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,d?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.Ve=null;k.tf=a;k.sf=c;r.push(k);return k};
b.prototype.Ey=function(a,c,d){this.ge();var e=this.G;this.oe&&(d=!1);e.bindTexture(e.TEXTURE_2D,c);e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,d?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,a)}catch(f){console&&console.error&&console.error("Error updating WebGL texture: ",f)}e.bindTexture(e.TEXTURE_2D,null);this.Ve=null};b.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Pj&&1<a.Pj?a.Pj--:(this.ge(),a===this.Ve&&(this.G.bindTexture(this.G.TEXTURE_2D,
null),this.Ve=null),a===this.Uf&&(this.G.activeTexture(this.G.TEXTURE1),this.G.bindTexture(this.G.TEXTURE_2D,null),this.G.activeTexture(this.G.TEXTURE0),this.Uf=null),Ea(r,a),"undefined"!==typeof a.Hp&&delete l[a.Hp],this.G.deleteTexture(a)))};b.prototype.kd=function(a){if(a!==this.wl){var c=this.tc();c.type=6;this.wl=c.md=a;this.Xb=this.Ib=!1}};pb=b})();
(function(){function b(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var e=this;this.me=(this.Gk=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2iscordova&&window.c2iscordova;this.Yb=!!a.dc;this.zq="undefined"!==typeof window.AppMobi||
this.Yb;this.bd=!!window.c2cocoonjs;this.wd=!!window.c2ejecta;this.bd&&(CocoonJS.App.onSuspended.addEventListener(function(){e.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){e.setSuspended(!1)}));this.wd&&(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.lb=this.Yb||this.bd||this.wd;this.li=
/edge\//i.test(navigator.userAgent);this.oe=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.li;this.Eq=/tizen/i.test(navigator.userAgent);this.Dk=/android/i.test(navigator.userAgent)&&!this.Eq&&!this.oe&&!this.li;this.Iq=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.oe&&!this.li;this.Zw=/ipad/i.test(navigator.userAgent);this.vi=this.Iq||this.Zw||this.wd;this.hi=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.oe&&!this.li;this.yq=/amazonwebappplatform/i.test(navigator.userAgent);this.Sw=/firefox/i.test(navigator.userAgent);this.Vw=/safari/i.test(navigator.userAgent)&&!this.hi&&!this.oe&&!this.li;this.Ww=/windows/i.test(navigator.userAgent);this.Pf="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Gq=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.Xw=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.ri=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Bn=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.An=!!window.cr_windows10;this.Fq=this.Gq||this.Xw||this.Bn||this.An;this.Qw=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Ek=this.Dk&&!this.hi&&!this.Gk&&!this.Sw&&!this.yq&&!this.lb;this.devicePixelRatio=
1;this.Te=this.me||this.Gk||this.zq||this.bd||this.Dk||this.vi||this.ri||this.Bn||this.Qw||this.Eq||this.wd;this.Te||(this.Te=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.qi=!!(this.vi&&this.me&&window.webkit);this.kn=null;this.Lw="";this.qi&&(this.kn=cordova&&cordova.plugins&&cordova.plugins.CorHttpd?cordova.plugins.CorHttpd:null);"undefined"===typeof cr_is_preview||this.Pf||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&
!/nwjs/i.test(navigator.userAgent)||(this.Pf=!0);this.canvas=a;this.Jp=document.getElementById("c2canvasdiv");this.C=this.G=null;this.dn="(unavailable)";this.Ga=!1;this.Cf=0;this.Ma=null;this.Qm="";this.lk=!1;this.Ar=this.Br=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.Yb&&(window.c2runtime=this);this.Pf&&(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.Ek&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.N=this.width;this.M=this.height;this.Xj=this.width;this.Ph=this.height;this.Wg=window.innerWidth;this.Vg=window.innerHeight;this.Aa=!0;this.oi=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.F=[];this.Qa=[];this.Yg=
{};this.yd=[];this.Km={};this.he=[];this.Ch=[];this.Xl=[];this.wu=[];this.xu=[];this.Jq=this.Fo=null;this.yf={};this.xn=this.Se=!1;this.xd=0;this.wn=this.zn=!1;this.td=[];this.ki=!1;this.Rk=this.yo="";this.ob=null;this.pe="";this.qj=this.us=!1;this.kk=[];this.Bf=this.Af=0;this.kr=30;this.Am=this.Pi=0;this.yh=1;this.mb=new fb;this.De=new fb;this.dl=this.rk=this.Ff=this.$d=this.Wf=this.Pm=this.Kk=0;this.wf=null;this.dk=[];this.Jm=[];this.fk=-1;this.On=[[]];this.Mo=this.Vk=0;this.sl(null);this.Qn=[];
this.Xk=-1;this.Th=this.pr=this.Ui=0;this.rj=[];this.Jo=this.no=-1;this.Pg=!0;this.$g=0;this.mi=!1;this.qy=0;this.ug=null;this.Dc=this.lq=!1;this.tr=new da;this.Vn=new da;this.ur=new da;this.hj=[];this.Fd=new hb([]);this.Io=new hb([]);this.tg=[];this.vk={};this.Me={};this.Je={};this.Bh={};this.Ep={};this.Pq=this.Qk=this.$a=this.nb=this.Oq=this.Pk=this.xa=null;this.zh=this.Cn=!1;this.Rm=[null,null];this.Gf=0;this.jk="";this.te={};this.pj=this.Xe=null;this.ws="";this.cl=[];this.Ux()}}function p(a,e){return 128>=
e?a[3]:256>=e?a[2]:512>=e?a[1]:a[0]}function h(){try{return!!window.indexedDB}catch(a){return!1}}function q(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function m(a,e,c,f){try{var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=q;d.onerror=f;d.onsuccess=function(d){d=d.target.result;d.onerror=f;d.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:e}).onsuccess=c}}catch(g){f(g)}}function r(a,e,c){try{var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=
q;f.onerror=c;f.onsuccess=function(f){f=f.target.result;f.onerror=c;var d=f.transaction(["saves"]).objectStore("saves").get(a);d.onsuccess=function(){d.result?e(d.result.data):e(null)}}}catch(d){c(d)}}function l(){fa("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,c={};for(e in a)!a.hasOwnProperty(e)||a[e]instanceof da||a[e]&&"undefined"!==
typeof a[e].Dz||"spriteCreatedDestroyCallback"!==e&&(c[e]=a[e]);return c}var c=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;b.prototype.Ux=function(){var a=this;if(this.qi){var e=function(){a.Vv(function(e){a.Hi(JSON.parse(e))},function(){alert("Error fetching data.js")})};this.kn?this.kn.startServer({port:0,localhost_only:!0},function(c){a.Lw=c;e()},function(a){console.log("Error starting local server: "+
a+". Video playback will not work.");e()}):(console.log("Local server unavailable. Video playback will not work."),e())}else{var c;this.ri?c=new ActiveXObject("Microsoft.XMLHTTP"):c=new XMLHttpRequest;var f="data.js";if(this.Gq||this.ri||this.Bn||this.An)f="data.json";c.open("GET",f,!0);var d=!1;if(!this.lb&&"response"in c&&"responseType"in c)try{c.responseType="json",d="json"===c.responseType}catch(g){d=!1}if(!d&&"responseType"in c)try{c.responseType="text"}catch(k){}if("overrideMimeType"in c)try{c.overrideMimeType("application/json; charset=utf-8")}catch(n){}this.ri?
c.onreadystatechange=function(){4===c.readyState&&a.Hi(JSON.parse(c.responseText))}:(c.onload=function(){if(d)a.Hi(c.response);else if(a.wd){var e=c.responseText,e=e.substr(e.indexOf("{"));a.Hi(JSON.parse(e))}else a.Hi(JSON.parse(c.responseText))},c.onerror=function(a){ha("Error requesting "+f+":");ha(a)});c.send()}};b.prototype.Ow=function(){var a=this,e,c,f,d,g,k,n,l,b;this.Qf=(!this.lb||this.wd||this.me)&&this.Cy&&!this.Ek;0===this.mc&&this.vi&&(this.Qf=!1);this.devicePixelRatio=this.Qf?window.devicePixelRatio||
window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Ob();0<this.mc&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(e){e.preventDefault();a.qx();fa("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.C.rq();a.C.jg(a.C.width,a.C.height,!0);a.nb=null;a.$a=null;a.Rm[0]=null;a.Rm[1]=null;a.rx();a.Aa=!0;fa("[Construct 2] WebGL context restored");
window.cr_setSuspended(!1)},!1);try{this.ov&&(this.bd||this.wd||!this.lb)&&(e={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.G=this.canvas.getContext("webgl2",e)||this.canvas.getContext("webgl",e)||this.canvas.getContext("experimental-webgl",e))}catch(m){}if(this.G){if(e=this.G.getExtension("WEBGL_debug_renderer_info"))this.dn=this.G.getParameter(e.UNMASKED_RENDERER_WEBGL)+" ["+this.G.getParameter(e.UNMASKED_VENDOR_WEBGL)+"]";this.Ga&&(this.dn+=
" [front-to-back enabled]");this.lb||(this.Kb=document.createElement("canvas"),jQuery(this.Kb).appendTo(this.canvas.parentNode),this.Kb.oncontextmenu=function(){return!1},this.Kb.onselectstart=function(){return!1},this.Kb.width=Math.round(this.Xj*this.devicePixelRatio),this.Kb.height=Math.round(this.Ph*this.devicePixelRatio),jQuery(this.Kb).css({width:this.Xj+"px",height:this.Ph+"px"}),this.Qr(),this.bo=this.Kb.getContext("2d"));this.C=new pb(this.G,this.Te,this.Ga);this.C.jg(this.canvas.width,this.canvas.height);
this.C.Up=0!==this.dv;this.Ma=null;e=0;for(c=this.F.length;e<c;e++)for(g=this.F[e],f=0,d=g.X.length;f<d;f++)n=g.X[f],n.fb=this.C.bn(n.id),n.Ad=this.C.fo(n.fb),this.zh=this.zh||this.C.bj(n.fb);e=0;for(c=this.yd.length;e<c;e++){l=this.yd[e];f=0;for(d=l.X.length;f<d;f++)n=l.X[f],n.fb=this.C.bn(n.id),n.Ad=this.C.fo(n.fb);l.Hd();f=0;for(d=l.Z.length;f<d;f++){b=l.Z[f];g=0;for(k=b.X.length;g<k;g++)n=b.X[g],n.fb=this.C.bn(n.id),n.Ad=this.C.fo(n.fb),this.zh=this.zh||this.C.bj(n.fb);b.Hd()}}}else{if(0<this.mc&&
this.Yb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Ma=AppMobi.canvas.getContext("2d");try{this.Ma.samplingMode=this.Ha?"smooth":"sharp",this.Ma.globalScale=1,this.Ma.HTML5CompatibilityMode=!0,this.Ma.imageSmoothingEnabled=this.Ha}catch(r){}0!==this.width&&0!==this.height&&(this.Ma.width=this.width,this.Ma.height=this.height)}this.Ma||(this.bd?(e={antialias:!!this.Ha,alpha:!0},this.Ma=this.canvas.getContext("2d",e)):(e={alpha:!0},
this.Ma=this.canvas.getContext("2d",e)),this.Dl(this.Ma,this.Ha));this.bo=this.Kb=null}this.Gs=function(e){a.Ea(!1,e)};window==window.top||this.lb||this.Fq||this.ri||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.bd&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(fa("Reloading for continuous preview"),
this.Rk="__c2_continuouspreview",this.qj=!0),this.Dx&&!this.Te&&(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.cf()});this.lb||(e=function(a){if(ob(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.mc&&this.Qf&&1<this.devicePixelRatio&&this.setSize(this.qb,this.pb,!0);this.Ls();this.Gw();this.go();this.H={}};b.prototype.setSize=function(a,e,c){var f=0,d=0,g=0,n=0,n=0;if(this.Wg!==a||this.Vg!==e||c){this.Wg=a;this.Vg=e;var k=this.mc,l=(document.mozFullScreen||document.webkitIsFullScreen||
!!document.msFullscreenElement||document.fullScreen||this.mi)&&!this.me;if(l||0!==this.mc||c)l&&0<this.Gf&&(k=this.Gf),c=this.devicePixelRatio,4<=k?(g=this.qb/this.pb,a/e>g?(g*=e,5===k?(n=g*c/this.qb,1<n?n=Math.floor(n):1>n&&(n=1/Math.ceil(1/n)),g=this.qb*n/c,n=this.pb*n/c,f=(a-g)/2,d=(e-n)/2,a=g,e=n):(f=(a-g)/2,a=g)):(n=a/g,5===k?(n=n*c/this.pb,1<n?n=Math.floor(n):1>n&&(n=1/Math.ceil(1/n)),g=this.qb*n/c,n=this.pb*n/c,f=(a-g)/2,d=(e-n)/2,a=g):d=(e-n)/2,e=n),l&&!this.Pf&&(d=f=0)):this.Pf&&this.mi&&
0===this.cq&&(f=Math.floor((a-this.qb)/2),d=Math.floor((e-this.pb)/2),a=this.qb,e=this.pb),2>k&&(this.Kh=c),this.Xj=Math.round(a),this.Ph=Math.round(e),this.width=Math.round(a*c),this.height=Math.round(e*c),this.Aa=!0,this.Ws?(this.N=this.width,this.M=this.height,this.Mc=!0):this.width<this.qb&&this.height<this.pb||1===k?(this.N=this.width,this.M=this.height,this.Mc=!0):(this.N=this.qb,this.M=this.pb,this.Mc=!1,2===k?(g=this.qb/this.pb,k=this.Wg/this.Vg,k<g?this.N=this.M*k:k>g&&(this.M=this.N/k)):
3===k&&(g=this.qb/this.pb,k=this.Wg/this.Vg,k>g?this.N=this.M*k:k<g&&(this.M=this.N/k))),this.Jp&&!this.lb&&(jQuery(this.Jp).css({width:Math.round(a)+"px",height:Math.round(e)+"px","margin-left":Math.floor(f)+"px","margin-top":Math.floor(d)+"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*c),this.canvas.height=Math.round(e*c),this.wd?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=
Math.floor(d)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(e)+"px"):this.Qf&&!this.lb&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(e)+"px")),this.Kb&&(this.Kb.width=Math.round(a*c),this.Kb.height=Math.round(e*c),this.Kb.style.width=this.Xj+"px",this.Kb.style.height=this.Ph+"px"),this.C&&this.C.jg(Math.round(a*c),Math.round(e*c)),this.Yb&&this.Ma&&(this.Ma.width=Math.round(a),this.Ma.height=Math.round(e)),this.Ma&&this.Dl(this.Ma,
this.Ha),this.Ls(),this.Iq&&!this.me&&window.scrollTo(0,0)}};b.prototype.Ls=function(){if(this.zu&&0!==this.$n){var a="portrait";2===this.$n&&(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)}}};b.prototype.qx=function(){this.C.Iu();this.Cn=!0;var a,e,c;a=0;for(e=this.F.length;a<e;a++)c=this.F[a],c.Yi&&c.Yi()};b.prototype.rx=function(){this.Cn=!1;var a,e,c;a=0;for(e=this.F.length;a<e;a++)c=this.F[a],c.el&&c.el()};b.prototype.Qr=function(){if(!this.lb){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.mi)&&!this.me?jQuery(this.canvas).offset():jQuery(this.canvas).position();
a.position="absolute";jQuery(this.Kb).css(a)}};var d=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;b.prototype.setSuspended=function(a){var e;if(a&&!this.oi)for(fa("[Construct 2] Suspending"),this.oi=!0,-1!==this.no&&d&&d(this.no),-1!==this.Jo&&clearTimeout(this.Jo),a=0,e=this.rj.length;a<e;a++)this.rj[a](!0);else if(!a&&this.oi){fa("[Construct 2] Resuming");this.oi=!1;this.Kk=bb();this.Wf=
bb();a=this.Pi=this.rk=0;for(e=this.rj.length;a<e;a++)this.rj[a](!1);this.Ea(!1)}};b.prototype.zp=function(a){this.rj.push(a)};b.prototype.He=function(a){return this.cl[a]};b.prototype.Hi=function(a){a&&a.project||ha("Project model unavailable");a=a.project;this.name=a[0];this.aq=a[1];this.mc=a[12];this.cq=a[12];this.qb=a[10];this.pb=a[11];this.Lr=this.qb/2;this.Mr=this.pb/2;this.lb&&!this.wd&&(4<=a[12]||0===a[12])&&(fa("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),
this.cq=this.mc=3);this.Uo=a[18];this.Ye=a[19];if(0===this.Ye){var e=new Image;e.crossOrigin="anonymous";this.gs(e,"loading-logo.png");this.Xe={Wk:e}}else if(4===this.Ye){e=new Image;e.src="";var c=new Image;c.src="";var f=new Image;f.src="";var d=new Image;d.src="";var g=new Image;g.src="";var n=new Image;n.src="";var k=new Image;k.src="";var l=new Image;l.src="";var b=new Image;b.src="";var m=new Image;m.src="";var r=new Image;r.src="";var p=new Image;p.src="";this.Xe={Wk:[e,c,f,d],Jx:[g,n,k,l],
Fy:[b,m,r,p]}}this.Ui=a[21];this.cl=pc();this.Zd=new X(this);e=0;for(c=a[2].length;e<c;e++)k=a[2][e],f=this.He(k[0]),rb(k,f.prototype),l=new f(this),l.Jl=k[1],l.Ue=k[2],l.Gz=k[5],l.mr=k[9],l.L&&l.L(),this.plugins.push(l);this.cl=pc();e=0;for(c=a[3].length;e<c;e++){k=a[3][e];g=this.He(k[1]);l=null;f=0;for(d=this.plugins.length;f<d;f++)if(this.plugins[f]instanceof g){l=this.plugins[f];break}b=new l.ja(l);b.name=k[0];b.K=k[2];b.vn=k[3].slice(0);b.Dy=k[3].length;b.Au=k[4];b.$v=k[5];b.ca=k[11];b.K?(b.$f=
[],b.ie=this.Th++,b.Na=null):(b.$f=null,b.ie=-1,b.Na=[]);b.hk=null;b.Eg=null;b.Vp=null;b.qc=!1;b.Cc=null;k[6]?(b.Rl=k[6][0],b.Sl=k[6][1],b.tj=k[6][2]):(b.Rl=null,b.Sl=0,b.tj=0);k[7]?b.Bc=k[7]:b.Bc=null;b.index=e;b.j=[];b.ak=[];b.ze=[new sb(b)];b.Od=0;b.Zc=null;b.Nu=0;b.rh=!0;b.Zl=tb;b.hw=ub;b.ow=vb;b.U=wb;b.ej=xb;b.fj=yb;b.ef=zb;b.tk=Ab;b.Um=Bb;b.Xm=Cb;b.Wc=Db;b.Ym=Fb;b.Uj=new ib(this.qb,this.pb);b.Hj=!0;b.Ij=!1;b.H={};b.toString=Gb;b.Qa=[];f=0;for(d=k[8].length;f<d;f++){m=k[8][f];r=this.He(m[1]);
p=null;g=0;for(n=this.Qa.length;g<n;g++)if(this.Qa[g]instanceof r){p=this.Qa[g];break}p||(p=new r(this),p.bl=[],p.al=new da,p.L&&p.L(),this.Qa.push(p),qc&&p instanceof qc&&(this.Fo=p),rc&&p instanceof rc&&(this.Jq=p));-1===p.bl.indexOf(b)&&p.bl.push(b);g=new p.ja(p,b);g.name=m[0];g.ca=m[2];g.L();b.Qa.push(g)}b.global=k[9];b.yn=k[10];b.X=[];f=0;for(d=k[12].length;f<d;f++)b.X.push({id:k[12][f][0],name:k[12][f][1],fb:-1,Ad:!1,Pa:!0,index:f});b.Lz=k[13];this.Uo&&!b.K&&!b.yn&&l.Ue||b.L();b.name&&(this.types[b.name]=
b);this.F.push(b);l.Jl&&(f=new l.Y(b),f.uid=this.Ui++,f.Ur=this.pr++,f.Mf=0,f.Zh=Hb,f.toString=Ib,f.A=k[14],f.L(),b.j.push(f),this.te[f.uid.toString()]=f)}e=0;for(c=a[4].length;e<c;e++)for(g=a[4][e],n=this.F[g[0]],f=1,d=g.length;f<d;f++)k=this.F[g[f]],k.Na.push(n),n.$f.push(k);e=0;for(c=a[28].length;e<c;e++){g=a[28][e];n=[];f=0;for(d=g.length;f<d;f++)n.push(this.F[g[f]]);f=0;for(d=n.length;f<d;f++)n[f].qc=!0,n[f].Cc=n}if(0<this.Th)for(e=0,c=this.F.length;e<c;e++)if(k=this.F[e],!k.K&&k.Na.length){k.hk=
Array(this.Th);k.Eg=Array(this.Th);k.Vp=Array(this.Th);b=[];f=p=r=m=0;for(d=k.Na.length;f<d;f++)for(l=k.Na[f],k.hk[l.ie]=m,m+=l.Dy,k.Eg[l.ie]=r,r+=l.Au,k.Vp[l.ie]=p,p+=l.$v,g=0,n=l.X.length;g<n;g++)b.push(ya({},l.X[g]));k.X=b.concat(k.X);f=0;for(d=k.X.length;f<d;f++)k.X[f].index=f}e=0;for(c=a[5].length;e<c;e++)k=a[5][e],f=new Jb(this,k),this.Yg[f.name]=f,this.yd.push(f);e=0;for(c=a[6].length;e<c;e++)k=a[6][e],f=new Kb(this,k),this.Km[f.name]=f,this.he.push(f);e=0;for(c=this.he.length;e<c;e++)this.he[e].Wa();
e=0;for(c=this.he.length;e<c;e++)this.he[e].Qo();e=0;for(c=this.Xl.length;e<c;e++)this.Xl[e].Wa();Q(this.Xl);this.yu=a[7];this.jk=a[8];this.Rc=a[9];this.Kh=1;this.ov=a[13];this.Ha=a[14];this.Lp=a[15];this.Cy=a[17];this.$n=a[20];this.zu=0<this.$n;this.Dx=a[22];this.Mc=this.Ws=a[23];this.dv=a[24];this.Kx=a[25];this.Ga=a[27]&&!this.oe;this.Nl=Date.now();Q(this.cl);this.Ow()};var e=!1;b.prototype.Wo=function(a,c){a.cocoonLazyLoad=!0;a.onerror=function(c){e=a.Gp=!0;console&&console.error&&console.error("Error loading image '"+
a.src+"': ",c)};this.wd?a.src=c:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(c,function(e){a.src=e},function(f){e=a.Gp=!0;console&&console.error&&console.error("Error extracting image '"+c+"' from expansion file: ",f)}):(a.crossOrigin="anonymous",this.gs(a,c)));this.Ch.push(a)};b.prototype.Yv=function(a){var e,c;e=0;for(c=this.Ch.length;e<c;e++)if(this.Ch[e].Ju===a)return this.Ch[e];return null};var f=0,k=!1;b.prototype.Gw=function(){this.ug&&(f=this.ug.iy(this.yu))};b.prototype.Cp=function(){var a=
f,e=0,c=0,d=!0,g,n,c=0;for(g=this.Ch.length;c<g;c++){n=this.Ch[c];var b=n.Bm;if(!b||0>=b)b=5E4;a+=b;n.src&&(n.complete||n.loaded)&&!n.Gp?e+=b:d=!1}d&&this.Kx&&this.ug&&(k||(this.ug.ry(),k=!0),c=this.ug.pw(),e+=c,c<f&&(d=!1));this.Bd=0==a?1:e/a;return d};var g=!1;b.prototype.go=function(){if(this.Ma||this.C){var a=this.Ma||this.bo;this.Kb&&this.Qr();var f=window.innerWidth,d=window.innerHeight;this.Wg===f&&this.Vg===d||this.setSize(f,d);this.Bd=0;this.Nq=-1;var k=this;if(this.Cp()&&(4!==this.Ye||g))this.Hw();
else{d=Date.now()-this.Nl;if(a){var n=this.width,b=this.height,f=this.devicePixelRatio;if(3>this.Ye&&(this.bd||500<=d&&this.Nq!=this.Bd)){a.clearRect(0,0,n,b);var d=n/2,b=b/2,n=0===this.Ye&&this.Xe.Wk.complete,l=40*f,m=0,r=80*f,p;if(n){var B=this.Xe.Wk,r=B.width*f;p=B.height*f;l=r/2;m=p/2;a.drawImage(B,P(d-l),P(b-m),r,p)}1>=this.Ye?(d=P(d-l)+.5,b=P(b+(m+(n?12*f:0)))+.5,a.fillStyle=e?"red":"DodgerBlue",a.fillRect(d,b,Math.floor(r*this.Bd),6*f),a.strokeStyle="black",a.strokeRect(d,b,r,6*f),a.strokeStyle=
"white",a.strokeRect(d-1*f,b-1*f,r+2*f,8*f)):2===this.Ye&&(a.font=this.wd?"12pt ArialMT":"12pt Arial",a.fillStyle=e?"#f00":"#999",a.Kz="middle",f=Math.round(100*this.Bd)+"%",n=a.measureText?a.measureText(f):null,a.fillText(f,d-(n?n.width:0)/2,b));this.Nq=this.Bd}else if(4===this.Ye){this.lv(a);c?c(function(){k.go()}):setTimeout(function(){k.go()},16);return}}setTimeout(function(){k.go()},this.bd?10:100)}}};var J=-1,G="undefined"===typeof cr_is_preview?200:0,D=!0,n=!1,B=0,L=0,y="undefined"===typeof cr_is_preview?
3E3:0,z=null,E=null,F=0;b.prototype.lv=function(a){if(!g){for(var c=Math.ceil(this.width),f=Math.ceil(this.height),d=this.Xe.Wk,k=this.Xe.Jx,b=this.Xe.Fy,l=0;4>l;++l)if(!d[l].complete||!k[l].complete||!b[l].complete)return;0===F&&(J=Date.now());var l=Date.now(),m=!1,r=a,h,q;D||n?(a.clearRect(0,0,c,f),z&&z.width===c&&z.height===f||(z=document.createElement("canvas"),z.width=c,z.height=f,E=z.getContext("2d")),r=E,m=!0,D&&1===F&&(J=Date.now())):a.globalAlpha=1;r.fillStyle="#333333";r.fillRect(0,0,c,
f);256<this.Ph?(h=Fa(.22*f,105,.6*c),q=.25*h,r.drawImage(p(k,h),.5*c-h/2,.2*f-q/2,h,q),q=h=Math.min(.395*f,.95*c),r.drawImage(p(d,h),.5*c-h/2,.485*f-q/2,h,q),h=Fa(.22*f,105,.6*c),q=.25*h,r.drawImage(p(b,h),.5*c-h/2,.868*f-q/2,h,q),r.fillStyle="#3C3C3C",h=c,q=Math.max(.005*f,2),r.fillRect(0,.8*f-q/2,h,q),r.fillStyle=e?"red":"#E0FF65",h=c*this.Bd,r.fillRect(.5*c-h/2,.8*f-q/2,h,q)):(q=h=.55*f,r.drawImage(p(d,h),.5*c-h/2,.45*f-q/2,h,q),r.fillStyle="#3C3C3C",h=c,q=Math.max(.005*f,2),r.fillRect(0,.85*f-
q/2,h,q),r.fillStyle=e?"red":"#E0FF65",h=c*this.Bd,r.fillRect(.5*c-h/2,.85*f-q/2,h,q));m&&(D?a.globalAlpha=0===F?0:Math.min((l-J)/300,1):n&&(a.globalAlpha=Math.max(1-(l-L)/300,0)),a.drawImage(z,0,0,c,f));D&&300<=l-J&&2<=F&&(D=!1,B=l);!D&&l-B>=y&&!n&&1<=this.Bd&&(n=!0,L=l);if(n&&l-L>=300+G||"undefined"!==typeof cr_is_preview&&1<=this.Bd&&500>Date.now()-J)g=!0,n=D=!1,this.Xe=E=z=null;++F}};b.prototype.Hw=function(){this.Kb&&(this.canvas.parentNode.removeChild(this.Kb),this.Kb=this.bo=null);this.Nl=
Date.now();this.Wf=bb();var a,e,c;if(this.Uo)for(a=0,e=this.F.length;a<e;a++)c=this.F[a],c.K||c.yn||!c.Fa.Ue||c.L();else this.Pg=!1;a=0;for(e=this.yd.length;a<e;a++)this.yd[a].Ku();2<=this.mc&&(a=this.qb/this.pb,e=this.width/this.height,this.Kh=2!==this.mc&&e>a||2===this.mc&&e<a?this.height/this.pb:this.width/this.qb);this.aq?this.Yg[this.aq].Ho():this.yd[0].Ho();this.Uo||(this.$g=1,this.trigger(X.prototype.k.mp,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++)c=this.F[a],c.Cr&&c.Cr();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Ea(!1);this.Yb&&AppMobi.webview.execute("onGameReady();")};b.prototype.Ea=function(a,e,f){if(this.xa){var d=bb();if(f||!this.oi||a){a||(c?this.no=c(this.Gs):this.Jo=setTimeout(this.Gs,this.Te?1:16));e=e||d;var g=this.mc;((f=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&
!this.me)||this.mi)&&0<this.Gf&&(g=this.Gf);if(0<g){var g=window.innerWidth,k=window.innerHeight;this.Wg===g&&this.Vg===k||this.setSize(g,k)}this.lb||(f?(this.lk||(this.Qm=jQuery(this.canvas).css("margin")||"0",this.lk=!0),this.hi||this.Pf||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.lk?(this.hi||this.Pf||jQuery(this.canvas).css("margin",this.Qm),
this.Qm="",this.lk=!1,0===this.mc&&this.setSize(Math.round(this.Br/this.devicePixelRatio),Math.round(this.Ar/this.devicePixelRatio),!0)):(this.Br=this.width,this.Ar=this.height));this.Pg&&(f=this.Cp(),this.$g=this.Bd,f&&(this.Pg=!1,this.Bd=1,this.trigger(X.prototype.k.mp,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.cx(e);!this.Aa&&!this.bd||this.Cn||this.qj||a||(this.Aa=!1,this.C?this.Vb():this.Lc(),this.pj&&(this.canvas&&this.canvas.toDataURL&&(this.ws=this.canvas.toDataURL(this.pj[0],
this.pj[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.ws),this.trigger(X.prototype.k.Jt,null)),this.pj=null));this.Fz||(this.$d++,this.Ff++,this.rk++);this.Pi+=bb()-d}}};b.prototype.cx=function(a){var e,c,f,d,g,k,n,b;1E3<=a-this.Wf&&(this.Wf+=1E3,1E3<=a-this.Wf&&(this.Wf=a),this.Pm=this.rk,this.rk=0,this.Am=this.Pi,this.Pi=0);e=0;0!==this.Kk&&(e=a-this.Kk,0>e&&(e=0),this.Bf=e/=1E3,.5<this.Bf?this.Bf=0:this.Bf>1/this.kr&&(this.Bf=1/this.kr));this.Kk=a;this.Af=this.Bf*this.yh;this.mb.add(this.Af);
this.De.add(e);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.mi)&&!this.me;2<=this.mc||a&&0<this.Gf?(e=this.qb/this.pb,c=this.width/this.height,f=this.mc,a&&0<this.Gf&&(f=this.Gf),this.Kh=2!==f&&c>e||2===f&&c<e?this.height/this.pb:this.width/this.qb,this.xa&&(this.xa.$r(this.xa.scrollX),this.xa.as(this.xa.scrollY))):this.Kh=this.Qf?this.devicePixelRatio:1;this.Ob();this.xd++;this.Zd.Yx();this.xd--;this.Ob();this.xd++;c=this.tr.Id();
a=0;for(e=c.length;a<e;a++)c[a].Iz();a=0;for(e=this.F.length;a<e;a++)if(k=this.F[a],!k.K&&(k.Qa.length||k.Na.length))for(c=0,f=k.j.length;c<f;c++)for(n=k.j[c],d=0,g=n.R.length;d<g;d++)n.R[d].Ea();a=0;for(e=this.F.length;a<e;a++)if(k=this.F[a],!k.K&&(k.Qa.length||k.Na.length))for(c=0,f=k.j.length;c<f;c++)for(n=k.j[c],d=0,g=n.R.length;d<g;d++)b=n.R[d],b.Rr&&b.Rr();c=this.Vn.Id();a=0;for(e=c.length;a<e;a++)c[a].Ea();this.xd--;this.Iw();for(a=0;this.wf&&10>a++;)this.Tp(this.wf);a=0;for(e=this.he.length;a<
e;a++)this.he[a].jn=!1;this.xa.Df&&this.xa.Df.cb();Q(this.hj);this.xd++;a=0;for(e=this.F.length;a<e;a++)if(k=this.F[a],!k.K&&(k.Qa.length||k.Na.length))for(c=0,f=k.j.length;c<f;c++)for(n=k.j[c],d=0,g=n.R.length;d<g;d++)b=n.R[d],b.Fs&&b.Fs();c=this.ur.Id();a=0;for(e=c.length;a<e;a++)c[a].Fs();this.xd--};b.prototype.cf=function(){var a,e,c,f,d,g,k,n,b;a=0;for(e=this.F.length;a<e;a++)if(k=this.F[a],!k.K)for(c=0,f=k.j.length;c<f;c++)if(n=k.j[c],n.cf&&n.cf(),n.R)for(d=0,g=n.R.length;d<g;d++)b=n.R[d],b.cf&&
b.cf()};b.prototype.Tp=function(a){var e=this.xa;this.xa.ty();var c,f,d;if(this.C)for(c=0,f=this.F.length;c<f;c++)d=this.F[c],d.K||!d.Yl||d.global&&0!==d.j.length||-1!==a.di.indexOf(d)||d.Yl();e==a&&Q(this.Zd.Ac);Q(this.hj);this.Yr(!0);a.Ho();this.Yr(!1);this.Aa=!0;this.Ob()};b.prototype.Yr=function(a){var e,c,f,d,g,k,n,b,l;e=0;for(c=this.Qa.length;e<c;e++)f=this.Qa[e],a?f.Vi&&f.Vi():f.Xi&&f.Xi();e=0;for(c=this.F.length;e<c;e++)if(f=this.F[e],f.global||f.Fa.Jl)for(d=0,g=f.j.length;d<g;d++)if(k=f.j[d],
a?k.Vi&&k.Vi():k.Xi&&k.Xi(),k.R)for(n=0,b=k.R.length;n<b;n++)l=k.R[n],a?l.Vi&&l.Vi():l.Xi&&l.Xi()};b.prototype.wh=function(a){this.Vn.add(a)};b.prototype.ke=function(a){return a&&-1!==a.Ti?this.Bf*a.Ti:this.Af};b.prototype.Lc=function(){this.xa.Lc(this.Ma);this.Yb&&this.Ma.present()};b.prototype.Vb=function(){this.Ga&&(this.Cf=1,this.xa.zf(this.C));this.xa.Vb(this.C);this.C.Mx()};b.prototype.Fj=function(a){a&&this.dk.push(a)};b.prototype.Xr=function(a){Ea(this.dk,a)};b.prototype.Jf=function(a){a=
a.toString();return this.te.hasOwnProperty(a)?this.te[a]:null};var w=[];b.prototype.Ge=function(a){var e,c;e=a.type.name;var f=null;if(this.yf.hasOwnProperty(e)){if(f=this.yf[e],f.contains(a))return}else f=w.length?w.pop():new da,this.yf[e]=f;f.add(a);this.Se=!0;if(a.qc)for(e=0,c=a.siblings.length;e<c;e++)this.Ge(a.siblings[e]);this.xn&&f.Ah.push(a);this.wn||(this.xd++,this.trigger(Object.getPrototypeOf(a.type.Fa).k.Lt,a),this.xd--)};b.prototype.Ob=function(){if(this.Se){var a,e,c,f,d,g;this.xn=!0;
c=0;for(d=this.td.length;c<d;++c)for(a=this.td[c],e=a.type,e.j.push(a),f=0,g=e.Na.length;f<g;++f)e.Na[f].j.push(a),e.Na[f].rh=!0;Q(this.td);this.Bt();ab(this.yf);this.Se=this.xn=!1}};b.prototype.Bt=function(){for(var a in this.yf)this.yf.hasOwnProperty(a)&&this.ct(this.yf[a])};b.prototype.ct=function(a){var e=a.Id(),c=e[0].type,f,d,g,k,n,b;cb(c.j,a);c.rh=!0;0===c.j.length&&(c.Ij=!1);f=0;for(d=c.Na.length;f<d;++f)b=c.Na[f],cb(b.j,a),b.rh=!0;f=0;for(d=this.Zd.Ac.length;f<d;++f)if(n=this.Zd.Ac[f],n.ic.hasOwnProperty(c.index)&&
cb(n.ic[c.index].le,a),!c.K)for(g=0,k=c.Na.length;g<k;++g)b=c.Na[g],n.ic.hasOwnProperty(b.index)&&cb(n.ic[b.index].le,a);if(n=e[0].n){if(n.Uc)for(g=n.j,f=0,d=g.length;f<d;++f)k=g[f],a.contains(k)&&(k.za(),n.Mb.update(k,k.vc,null),k.vc.set(0,0,-1,-1));cb(n.j,a);n.lj(0)}for(f=0;f<e.length;++f)this.bt(e[f],c);a.clear();w.push(a);this.Aa=!0};b.prototype.bt=function(a,e){var c,f,d;c=0;for(f=this.dk.length;c<f;++c)this.dk[c](a);a.Ne&&e.Uj.update(a,a.Ne,null);(c=a.n)&&c.lh(a,!0);if(a.R)for(c=0,f=a.R.length;c<
f;++c)d=a.R[c],d.ue&&d.ue(),d.behavior.al.remove(a);this.tr.remove(a);this.Vn.remove(a);this.ur.remove(a);a.ue&&a.ue();this.te.hasOwnProperty(a.uid.toString())&&delete this.te[a.uid.toString()];this.dl--;100>e.ak.length&&e.ak.push(a)};b.prototype.Np=function(a,e,c,f){if(a.K){var d=P(Math.random()*a.$f.length);return this.Np(a.$f[d],e,c,f)}return a.Zc?this.Oe(a.Zc,e,!1,c,f,!1):null};var C=[];b.prototype.Oe=function(a,e,c,f,d,g){var k,n,b,l;if(!a)return null;var m=this.F[a[1]],r=m.Fa.Ue;if(this.Pg&&
r&&!m.yn||r&&!this.C&&11===a[0][11])return null;var p=e;r||(e=null);var h;m.ak.length?(h=m.ak.pop(),h.uc=!0,m.Fa.Y.call(h,m)):(h=new m.Fa.Y(m),h.uc=!1);!c||g||this.te.hasOwnProperty(a[2].toString())?h.uid=this.Ui++:h.uid=a[2];this.te[h.uid.toString()]=h;h.Ur=this.pr++;h.Mf=m.j.length;k=0;for(n=this.td.length;k<n;++k)this.td[k].type===m&&h.Mf++;h.Zh=Hb;h.toString=Ib;b=a[3];if(h.uc)ab(h.H);else{h.H={};if("undefined"!==typeof cr_is_preview)for(h.uq=[],h.uq.length=b.length,k=0,n=b.length;k<n;k++)h.uq[k]=
b[k][1];h.kb=[];h.kb.length=b.length}k=0;for(n=b.length;k<n;k++)h.kb[k]=b[k][0];if(r){var B=a[0];h.x=ia(f)?B[0]:f;h.y=ia(d)?B[1]:d;h.z=B[2];h.width=B[3];h.height=B[4];h.depth=B[5];h.m=B[6];h.opacity=B[7];h.oc=B[8];h.pc=B[9];h.Pb=B[10];k=B[11];!this.C&&m.X.length&&(h.Pb=k);h.Mh=kb(h.Pb);this.G&&lb(h,h.Pb,this.G);if(h.uc){k=0;for(n=B[12].length;k<n;k++)for(b=0,l=B[12][k].length;b<l;b++)h.Ra[k][b]=B[12][k][b];h.Da.set(0,0,0,0);h.Ne.set(0,0,-1,-1);h.vc.set(0,0,-1,-1);h.Db.kg(h.Da);Q(h.pm)}else{h.Ra=B[12].slice(0);
k=0;for(n=h.Ra.length;k<n;k++)h.Ra[k]=B[12][k].slice(0);h.qa=[];h.Ie=[];h.Ie.length=m.X.length;h.Da=new va(0,0,0,0);h.Ne=new va(0,0,-1,-1);h.vc=new va(0,0,-1,-1);h.Db=new wa;h.pm=[];h.D=Lb;h.vu=Mb;h.tb=Nb;h.za=Ob;h.Ss=Pb;h.To=Qb;h.Rd=Rb}h.xh=!1;h.yy=0;h.xy=0;h.wy=null;14===B.length&&(h.xh=!0,h.yy=B[13][0],h.xy=B[13][1],h.wy=B[13][2]);k=0;for(n=m.X.length;k<n;k++)h.Ie[k]=!0;h.xe=!0;h.Hd=Sb;h.Hd();h.Ts=!!h.qa.length;h.Oj=!0;h.um=!0;m.Hj=!0;h.visible=!0;h.Ti=-1;h.n=e;h.Jd=e.j.length;h.Cf=0;"undefined"===
typeof h.ka&&(h.ka=null);this.Aa=h.Nd=!0}var q;Q(C);k=0;for(n=m.Na.length;k<n;k++)C.push.apply(C,m.Na[k].Qa);C.push.apply(C,m.Qa);if(h.uc)for(k=0,n=C.length;k<n;k++){var z=C[k];q=h.R[k];q.uc=!0;z.behavior.Y.call(q,z,h);B=a[4][k];b=0;for(l=B.length;b<l;b++)q.A[b]=B[b];q.L();z.behavior.al.add(h)}else for(h.R=[],k=0,n=C.length;k<n;k++)z=C[k],q=new z.behavior.Y(z,h),q.uc=!1,q.A=a[4][k].slice(0),q.L(),h.R.push(q),z.behavior.al.add(h);B=a[5];if(h.uc)for(k=0,n=B.length;k<n;k++)h.A[k]=B[k];else h.A=B.slice(0);
this.td.push(h);this.Se=!0;e&&(e.Jh(h,!0),1!==e.ed||1!==e.fd)&&(m.Ij=!0);this.dl++;if(m.qc){if(h.qc=!0,h.uc?Q(h.siblings):h.siblings=[],!c&&!g){k=0;for(n=m.Cc.length;k<n;k++)if(m.Cc[k]!==m){if(!m.Cc[k].Zc)return null;h.siblings.push(this.Oe(m.Cc[k].Zc,p,!1,r?h.x:f,r?h.y:d,!0))}k=0;for(n=h.siblings.length;k<n;k++)for(h.siblings[k].siblings.push(h),b=0;b<n;b++)k!==b&&h.siblings[k].siblings.push(h.siblings[b])}}else h.qc=!1,h.siblings=null;h.L();k=0;for(n=h.R.length;k<n;k++)h.R[k].Ix&&h.R[k].Ix();return h};
b.prototype.Zm=function(a){var e,c;e=0;for(c=this.xa.Z.length;e<c;e++){var f=this.xa.Z[e];if(nb(f.name,a))return f}return null};b.prototype.Wh=function(a){a=P(a);0>a&&(a=0);a>=this.xa.Z.length&&(a=this.xa.Z.length-1);return this.xa.Z[a]};b.prototype.xm=function(a){var e,c;e=0;for(c=a.length;e<c;e++)a[e].U().V=!0};b.prototype.ej=function(a){var e,c;e=0;for(c=a.length;e<c;e++)a[e].ej()};b.prototype.fj=function(a){var e,c;e=0;for(c=a.length;e<c;e++)a[e].fj()};b.prototype.ef=function(a){var e,c;e=0;for(c=
a.length;e<c;e++)a[e].ef()};b.prototype.Ps=function(a){if(a.Hj){var e,c,f=a.j;e=0;for(c=f.length;e<c;++e)f[e].To();f=this.td;e=0;for(c=f.length;e<c;++e)f[e].type===a&&f[e].To();a.Hj=!1}};b.prototype.Vm=function(a,e,c,f){var d,g,k=a?1!==a.ed||1!==a.fd:!1;if(e.K)for(a=0,d=e.$f.length;a<d;++a)g=e.$f[a],k||g.Ij?Ca(f,g.j):(this.Ps(g),g.Uj.tl(c,f));else k||e.Ij?Ca(f,e.j):(this.Ps(e),e.Uj.tl(c,f))};b.prototype.Yh=function(a,e,c,f){var d,g;d=0;for(g=e.length;d<g;++d)this.Vm(a,e[d],c,f)};b.prototype.jq=function(a,
e,c){var f=this.Fo;f&&this.Yh(a,f.bl,e,c)};b.prototype.lw=function(a,e,c){var f=this.Jq;f&&this.Yh(a,f.bl,e,c)};b.prototype.vy=function(a,e,c){var f=a.U(),d,g,k,n,b=this.Va().Ya.Qc,l,m,h;if(f.V)for(f.V=!1,Q(f.j),d=0,n=a.j.length;d<n;d++)k=a.j[d],k.za(),l=k.n.fc(e,c,!0),m=k.n.fc(e,c,!1),k.tb(l,m)?f.j.push(k):b&&f.S.push(k);else{g=0;h=b?f.S:f.j;d=0;for(n=h.length;d<n;d++)k=h[d],k.za(),l=k.n.fc(e,c,!0),m=k.n.fc(e,c,!1),k.tb(l,m)&&(b?f.j.push(k):(f.j[g]=f.j[d],g++));h.length=g}a.Wc();return f.Bk()};b.prototype.zc=
function(a,e){if(!(a&&e&&a!==e&&a.Nd&&e.Nd))return!1;a.za();e.za();var c=a.n,f=e.n,d,g,k,n,b,l,m,h;if(c===f||c.ed===f.ed&&f.fd===f.fd&&c.scale===f.scale&&c.m===f.m&&c.Kd===f.Kd){if(!a.Da.wq(e.Da)||!a.Db.vq(e.Db)||a.xh&&e.xh)return!1;if(a.xh)return this.Bs(a,e);if(e.xh)return this.Bs(e,a);m=a.ka&&!a.ka.Rf();d=e.ka&&!e.ka.Rf();if(!m&&!d)return!0;m?(a.ka.uf(a.width,a.height,a.m),m=a.ka):(this.Fd.oh(a.Db,a.x,a.y,a.width,a.height),m=this.Fd);d?(e.ka.uf(e.width,e.height,e.m),h=e.ka):(this.Fd.oh(e.Db,e.x,
e.y,e.width,e.height),h=this.Fd);return m.ei(h,e.x-a.x,e.y-a.y)}m=a.ka&&!a.ka.Rf();d=e.ka&&!e.ka.Rf();m?(a.ka.uf(a.width,a.height,a.m),this.Fd.ns(a.ka)):this.Fd.oh(a.Db,a.x,a.y,a.width,a.height);m=this.Fd;d?(e.ka.uf(e.width,e.height,e.m),this.Io.ns(e.ka)):this.Io.oh(e.Db,e.x,e.y,e.width,e.height);h=this.Io;d=0;for(g=m.gd;d<g;d++)k=2*d,n=k+1,b=m.bb[k],l=m.bb[n],m.bb[k]=c.Oa(b+a.x,l+a.y,!0),m.bb[n]=c.Oa(b+a.x,l+a.y,!1);m.za();d=0;for(g=h.gd;d<g;d++)k=2*d,n=k+1,b=h.bb[k],l=h.bb[n],h.bb[k]=f.Oa(b+e.x,
l+e.y,!0),h.bb[n]=f.Oa(b+e.x,l+e.y,!1);h.za();return m.ei(h,0,0)};var M=new wa,ca=new va(0,0,0,0),R=[];b.prototype.Bs=function(a,e){var c,f,d,g,k=e.Da,n=a.x,b=a.y;a.dw(k,R);var l=e.ka&&!e.ka.Rf();c=0;for(f=R.length;c<f;++c)if(d=R[c],g=d.Qx,k.xq(g,n,b)&&(M.kg(g),M.offset(n,b),M.vq(e.Db)))if(l)if(e.ka.uf(e.width,e.height,e.m),d.aj){if(d.aj.ei(e.ka,e.x-(n+g.left),e.y-(b+g.top)))return Q(R),!0}else{if(this.Fd.oh(M,0,0,g.right-g.left,g.bottom-g.top),this.Fd.ei(e.ka,e.x,e.y))return Q(R),!0}else if(d.aj){if(this.Fd.oh(e.Db,
0,0,e.width,e.height),d.aj.ei(this.Fd,-(n+g.left),-(b+g.top)))return Q(R),!0}else return Q(R),!0;Q(R);return!1};b.prototype.As=function(a,e,c,f,d){if(!d||!d.Nd)return!1;d.za();ca.set(qa(a,c),qa(e,f),pa(a,c),pa(e,f));if(!d.Da.wq(ca))return!1;if(d.xh){d.dw(ca,R);var g,k,n,b=d.x,l=d.y;d=0;for(g=R.length;d<g;++d)if(k=R[d],n=k.Qx,ca.xq(n,b,l)&&(M.kg(n),M.offset(b,l),M.fi(a,e,c,f)))if(k.aj){if(k.aj.fi(b+n.left,l+n.top,a,e,c,f))return Q(R),!0}else return Q(R),!0;Q(R);return!1}if(!d.Db.fi(a,e,c,f))return!1;
if(!d.ka||d.ka.Rf())return!0;d.ka.uf(d.width,d.height,d.m);return d.ka.fi(d.x,d.y,a,e,c,f)};b.prototype.No=function(a,e){if(!e)return!1;var c,f,d,g,k;c=0;for(f=a.Qa.length;c<f;c++)if(a.Qa[c].behavior instanceof e)return!0;if(!a.K)for(c=0,f=a.Na.length;c<f;c++)for(k=a.Na[c],d=0,g=k.Qa.length;d<g;d++)if(k.Qa[d].behavior instanceof e)return!0;return!1};b.prototype.Oo=function(a){return this.No(a,hc.cz)};b.prototype.Po=function(a){return this.No(a,hc.dz)};var K=[];b.prototype.Nb=function(a){var e,c,f;
a.za();this.jq(a.n,a.Da,K);e=0;for(c=K.length;e<c;++e)if(f=K[e],f.H.solidEnabled&&this.zc(a,f))return Q(K),f;Q(K);return null};var A=[];b.prototype.lf=function(a,e){var c=null;e&&(c=A,Q(c));a.za();this.lw(a.n,a.Da,K);var f,d,g;f=0;for(d=K.length;f<d;++f)if(g=K[f],g.H.jumpthruEnabled&&this.zc(a,g))if(e)c.push(g);else return Q(K),g;Q(K);return c};b.prototype.hd=function(a,e,c,f,d,g){f=f||50;var k=a.x,n=a.y,b,l=null,m=null;for(b=0;b<f;b++)if(a.x=k+e*b,a.y=n+c*b,a.D(),!this.zc(a,l)&&((l=this.Nb(a))&&
(m=l),!l&&(d&&(g?l=this.zc(a,g)?g:null:l=this.lf(a),l&&(m=l)),!l)))return m&&this.ko(a,e,c,m),!0;a.x=k;a.y=n;a.D();return!1};b.prototype.ko=function(a,e,c,f){var d=2,g,k=!1;g=!1;for(var n=a.x,b=a.y;16>=d;)g=1/d,d*=2,a.x+=e*g*(k?1:-1),a.y+=c*g*(k?1:-1),a.D(),this.zc(a,f)?g=k=!0:(g=k=!1,n=a.x,b=a.y);g&&(a.x=n,a.y=b,a.D())};b.prototype.Vr=function(a,e){var c=ia(e)?100:e,f=0,d=a.x,g=a.y,k=0,n=0,b=0,l=this.Nb(a);if(!l)return!0;for(;f<=c;){switch(k){case 0:n=0;b=-1;f++;break;case 1:n=1;b=-1;break;case 2:n=
1;b=0;break;case 3:b=n=1;break;case 4:n=0;b=1;break;case 5:n=-1;b=1;break;case 6:n=-1;b=0;break;case 7:b=n=-1}k=(k+1)%8;a.x=P(d+n*f);a.y=P(g+b*f);a.D();if(!this.zc(a,l)&&(l=this.Nb(a),!l))return!0}a.x=d;a.y=g;a.D();return!1};b.prototype.kh=function(a,e){a.Nd&&e.Nd&&this.hj.push([a,e])};b.prototype.Gu=function(a,e){var c,f,d;c=0;for(f=this.hj.length;c<f;c++)if(d=this.hj[c],d[0]==a&&d[1]==e||d[0]==e&&d[1]==a)return!0;return!1};b.prototype.Eu=function(a,e,c){var f=a.x,d=a.y,g=pa(10,Ta(e,c,f,d)),k=Na(e,
c,f,d),n=this.Nb(a);if(!n)return Ia(k+ra);var b=n,l,m,h,r,p=U(5);for(l=1;36>l;l++)if(m=k-l*p,a.x=e+Math.cos(m)*g,a.y=c+Math.sin(m)*g,a.D(),!this.zc(a,b)&&(b=this.Nb(a),!b)){h=m;break}36===l&&(h=Ia(k+ra));b=n;for(l=1;36>l;l++)if(m=k+l*p,a.x=e+Math.cos(m)*g,a.y=c+Math.sin(m)*g,a.D(),!this.zc(a,b)&&(b=this.Nb(a),!b)){r=m;break}36===l&&(r=Ia(k+ra));a.x=f;a.y=d;a.D();if(r===h)return r;a=Oa(r,h)/2;a=Qa(r,h)?Ia(h+a+ra):Ia(r+a);h=Math.cos(k);k=Math.sin(k);r=Math.cos(a);a=Math.sin(a);e=h*r+k*a;return Na(0,
0,h-2*e*r,k-2*e*a)};var N=-1;b.prototype.trigger=function(a,e,c){if(!this.xa)return!1;var f=this.xa.Df;if(!f)return!1;var d=!1,g,k,n;N++;var b=f.Fm;k=0;for(n=b.length;k<n;++k)g=this.Js(a,e,b[k],c),d=d||g;g=this.Js(a,e,f,c);N--;return d||g};b.prototype.Js=function(a,e,c,f){var d=!1,g,k,n,b;if(e)for(n=this.Lo(a,e,e.type.name,c,f),d=d||n,b=e.type.Na,g=0,k=b.length;g<k;++g)n=this.Lo(a,e,b[g].name,c,f),d=d||n;else n=this.Lo(a,e,"system",c,f),d=d||n;return d};b.prototype.Lo=function(a,e,c,f,d){var g,k=
!1,n=!1,n="undefined"!==typeof d,b=(n?f.Xp:f.Ks)[c];if(!b)return k;var l=null;f=0;for(g=b.length;f<g;++f)if(b[f].method==a){l=b[f].Sh;break}if(!l)return k;var m;n?m=l[d]:m=l;if(!m)return null;f=0;for(g=m.length;f<g;f++)a=m[f][0],d=m[f][1],n=this.Uv(e,c,a,d),k=k||n;return k};b.prototype.Uv=function(a,e,c,f){var d,g,k=!1;this.Mo++;var n=this.Va().Ya;n&&this.ej(n.kf);var b=1<this.Mo;this.ej(c.kf);b&&this.Ox();var l=this.sl(c);l.Ya=c;a&&(d=this.types[e].U(),d.V=!1,Q(d.j),d.j[0]=a,this.types[e].Wc());
a=!0;if(c.parent){e=l.zs;for(d=c.parent;d;)e.push(d),d=d.parent;e.reverse();d=0;for(g=e.length;d<g;d++)if(!e[d].$x()){a=!1;break}}a&&(this.Ff++,c.Qc?c.Zx(f):c.cb(),k=k||l.Vf);this.ml();b&&this.Gx();this.ef(c.kf);n&&this.ef(n.kf);this.Se&&0===this.xd&&0===N&&!this.zn&&this.Ob();this.Mo--;return k};b.prototype.Hf=function(){var a=this.Va();return a.Ya.hb[a.Xa]};b.prototype.fw=function(){return this.Hf().type};b.prototype.Rw=function(){return 0===this.Va().Xa};b.prototype.ew=function(){var a=this.Va();
return a.Ya.Vc[a.lc]};b.prototype.Ox=function(){this.Vk++;this.Vk>=this.On.length&&this.On.push([])};b.prototype.Gx=function(){this.Vk--};b.prototype.fq=function(){return this.On[this.Vk]};b.prototype.sl=function(a){this.fk++;this.fk>=this.Jm.length&&this.Jm.push(new Tb);var e=this.Va();e.reset(a);return e};b.prototype.ml=function(){this.fk--};b.prototype.Va=function(){return this.Jm[this.fk]};b.prototype.Px=function(){this.Xk++;this.Xk>=this.Qn.length&&this.Qn.push(aa({name:void 0,index:0,Cb:!1}));
var a=this.gw();a.name=void 0;a.index=0;a.Cb=!1;return a};b.prototype.Hx=function(){this.Xk--};b.prototype.gw=function(){return this.Qn[this.Xk]};b.prototype.gq=function(a,e){for(var c,f,d,g,k,n;e;){c=0;for(f=e.ld.length;c<f;c++)if(n=e.ld[c],n instanceof Ub&&nb(a,n.name))return n;e=e.parent}c=0;for(f=this.he.length;c<f;c++)for(k=this.he[c],d=0,g=k.Qe.length;d<g;d++)if(n=k.Qe[d],n instanceof Ub&&nb(a,n.name))return n;return null};b.prototype.hq=function(a){var e,c;e=0;for(c=this.yd.length;e<c;e++)if(this.yd[e].ca===
a)return this.yd[e];return null};b.prototype.Hg=function(a){var e,c;e=0;for(c=this.F.length;e<c;e++)if(this.F[e].ca===a)return this.F[e];return null};b.prototype.iw=function(a){var e,c;e=0;for(c=this.tg.length;e<c;e++)if(this.tg[e].ca===a)return this.tg[e];return null};b.prototype.Ou=function(a,e){this.pj=[a,e];this.Aa=!0};b.prototype.Iw=function(){var a=this,e=this.yo,c=this.pe,f=this.Rk,d=!1;this.us&&(d=!0,e="__c2_continuouspreview",this.us=!1);if(e.length){this.Ob();c=this.ey();if(h()&&!this.bd)m(e,
c,function(){fa("Saved state to IndexedDB storage ("+c.length+" bytes)");a.pe=c;a.trigger(X.prototype.k.lm,null);a.pe="";d&&l()},function(f){try{localStorage.setItem("__c2save_"+e,c),fa("Saved state to WebStorage ("+c.length+" bytes)"),a.pe=c,a.trigger(X.prototype.k.lm,null),a.pe="",d&&l()}catch(g){fa("Failed to save game state: "+f+"; "+g),a.trigger(X.prototype.k.qp,null)}});else try{localStorage.setItem("__c2save_"+e,c),fa("Saved state to WebStorage ("+c.length+" bytes)"),a.pe=c,this.trigger(X.prototype.k.lm,
null),a.pe="",d&&l()}catch(g){fa("Error saving to WebStorage: "+g),a.trigger(X.prototype.k.qp,null)}this.Rk=this.yo="";this.ob=null}if(f.length){if(h()&&!this.bd)r(f,function(e){e?(a.ob=e,fa("Loaded state from IndexedDB storage ("+a.ob.length+" bytes)")):(a.ob=localStorage.getItem("__c2save_"+f)||"",fa("Loaded state from WebStorage ("+a.ob.length+" bytes)"));a.qj=!1;a.ob||(a.ob=null,a.trigger(X.prototype.k.Cj,null))},function(){a.ob=localStorage.getItem("__c2save_"+f)||"";fa("Loaded state from WebStorage ("+
a.ob.length+" bytes)");a.qj=!1;a.ob||(a.ob=null,a.trigger(X.prototype.k.Cj,null))});else{try{this.ob=localStorage.getItem("__c2save_"+f)||"",fa("Loaded state from WebStorage ("+this.ob.length+" bytes)")}catch(k){this.ob=null}this.qj=!1;a.ob||(a.ob=null,a.trigger(X.prototype.k.Cj,null))}this.yo=this.Rk=""}null!==this.ob&&(this.Ob(),this.bx(this.ob)?(this.pe=this.ob,this.trigger(X.prototype.k.Pt,null),this.pe=""):a.trigger(X.prototype.k.Cj,null),this.ob=null)};b.prototype.ey=function(){var e,c,f,d,
g,k,n,b={c2save:!0,version:1,rt:{time:this.mb.ea,walltime:this.De.ea,timescale:this.yh,tickcount:this.$d,execcount:this.Ff,next_uid:this.Ui,running_layout:this.xa.ca,start_time_offset:Date.now()-this.Nl},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};e=0;for(c=this.F.length;e<c;e++)if(g=this.F[e],!g.K&&!this.Oo(g)){k={instances:[]};Va(g.H)&&(k.ex=a(g.H));f=0;for(d=g.j.length;f<d;f++)k.instances.push(this.xo(g.j[f]));b.types[g.ca.toString()]=k}e=0;for(c=this.yd.length;e<c;e++)f=this.yd[e],
b.layouts[f.ca.toString()]=f.eb();d=b.events.groups;e=0;for(c=this.tg.length;e<c;e++)f=this.tg[e],d[f.ca.toString()]=this.vk[f.ai].$h;c=b.events.cnds;for(n in this.Me)this.Me.hasOwnProperty(n)&&(e=this.Me[n],Va(e.H)&&(c[n]={ex:a(e.H)}));c=b.events.acts;for(n in this.Je)this.Je.hasOwnProperty(n)&&(e=this.Je[n],Va(e.H)&&(c[n]={ex:a(e.H)}));c=b.events.vars;for(n in this.Bh)this.Bh.hasOwnProperty(n)&&(e=this.Bh[n],e.Hk||e.parent&&!e.ti||(c[n]=e.data));b.system=this.Zd.eb();return JSON.stringify(b)};b.prototype.Wr=
function(){var a,e,c,f,d,g;this.te={};a=0;for(e=this.F.length;a<e;a++)if(c=this.F[a],!c.K)for(f=0,d=c.j.length;f<d;f++)g=c.j[f],this.te[g.uid.toString()]=g};b.prototype.bx=function(a){var e;try{e=JSON.parse(a)}catch(c){return!1}if(!e.c2save||1<e.version)return!1;this.ki=!0;a=e.rt;this.mb.reset();this.mb.ea=a.time;this.De.reset();this.De.ea=a.walltime||0;this.yh=a.timescale;this.$d=a.tickcount;this.Ff=a.execcount;this.Nl=Date.now()-a.start_time_offset;var f=a.running_layout;if(f!==this.xa.ca)if(f=
this.hq(f))this.Tp(f);else return;var d,g,k,n,b,l,m;l=e.types;for(g in l)if(l.hasOwnProperty(g)&&(n=this.Hg(parseInt(g,10)))&&!n.K&&!this.Oo(n)){l[g].ex?n.H=l[g].ex:ab(n.H);b=n.j;k=l[g].instances;f=0;for(d=qa(b.length,k.length);f<d;f++)this.Sk(b[f],k[f]);f=k.length;for(d=b.length;f<d;f++)this.Ge(b[f]);f=b.length;for(d=k.length;f<d;f++){b=null;if(n.Fa.Ue&&(b=this.xa.uk(k[f].w.l),!b))continue;b=this.Oe(n.Zc,b,!1,0,0,!0);this.Sk(b,k[f])}n.rh=!0}this.Ob();this.Wr();d=e.layouts;for(g in d)d.hasOwnProperty(g)&&
(f=this.hq(parseInt(g,10)))&&f.zb(d[g]);d=e.events.groups;for(g in d)d.hasOwnProperty(g)&&(f=this.iw(parseInt(g,10)))&&this.vk[f.ai]&&this.vk[f.ai].gy(d[g]);f=e.events.cnds;for(g in this.Me)this.Me.hasOwnProperty(g)&&(f.hasOwnProperty(g)?this.Me[g].H=f[g].ex:this.Me[g].H={});f=e.events.acts;for(g in this.Je)this.Je.hasOwnProperty(g)&&(f.hasOwnProperty(g)?this.Je[g].H=f[g].ex:this.Je[g].H={});f=e.events.vars;for(g in f)f.hasOwnProperty(g)&&this.Bh.hasOwnProperty(g)&&(this.Bh[g].data=f[g]);this.Ui=
a.next_uid;this.ki=!1;f=0;for(d=this.kk.length;f<d;++f)b=this.kk[f],this.trigger(Object.getPrototypeOf(b.type.Fa).k.Fh,b);Q(this.kk);this.Zd.zb(e.system);f=0;for(d=this.F.length;f<d;f++)if(n=this.F[f],!n.K&&!this.Oo(n))for(e=0,g=n.j.length;e<g;e++){b=n.j[e];if(n.qc)for(l=b.Zh(),Q(b.siblings),a=0,k=n.Cc.length;a<k;a++)m=n.Cc[a],n!==m&&b.siblings.push(m.j[l]);b.od&&b.od();if(b.R)for(a=0,k=b.R.length;a<k;a++)l=b.R[a],l.od&&l.od()}return this.Aa=!0};b.prototype.xo=function(e,c){var f,d,g,k,n;k=e.type;
g=k.Fa;var b={};c?b.c2=!0:b.uid=e.uid;Va(e.H)&&(b.ex=a(e.H));if(e.kb&&e.kb.length)for(b.ivs={},f=0,d=e.kb.length;f<d;f++)b.ivs[e.type.vn[f].toString()]=e.kb[f];if(g.Ue){g={x:e.x,y:e.y,w:e.width,h:e.height,l:e.n.ca,zi:e.Rd()};0!==e.m&&(g.a=e.m);1!==e.opacity&&(g.o=e.opacity);.5!==e.oc&&(g.hX=e.oc);.5!==e.pc&&(g.hY=e.pc);0!==e.Pb&&(g.bm=e.Pb);e.visible||(g.v=e.visible);e.Nd||(g.ce=e.Nd);-1!==e.Ti&&(g.mts=e.Ti);if(k.X.length)for(g.fx=[],f=0,d=k.X.length;f<d;f++)n=k.X[f],g.fx.push({name:n.name,active:e.Ie[n.index],
params:e.Ra[n.index]});b.w=g}if(e.R&&e.R.length)for(b.behs={},f=0,d=e.R.length;f<d;f++)k=e.R[f],k.eb&&(b.behs[k.type.ca.toString()]=k.eb());e.eb&&(b.data=e.eb());return b};b.prototype.kw=function(a,e){var c,f;c=0;for(f=a.vn.length;c<f;c++)if(a.vn[c]===e)return c;return-1};b.prototype.cw=function(a,e){var c,f;c=0;for(f=a.R.length;c<f;c++)if(a.R[c].type.ca===e)return c;return-1};b.prototype.Sk=function(a,e,c){var f,d,g,k,n;n=a.type;k=n.Fa;if(c){if(!e.c2)return}else a.uid=e.uid;e.ex?a.H=e.ex:ab(a.H);
if(d=e.ivs)for(f in d)d.hasOwnProperty(f)&&(g=this.kw(n,parseInt(f,10)),0>g||g>=a.kb.length||(a.kb[g]=d[f]));if(k.Ue){g=e.w;a.n.ca!==g.l&&(d=a.n,a.n=this.xa.uk(g.l),a.n?(d.lh(a,!0),a.n.Jh(a,!0),a.D(),a.n.lj(0)):(a.n=d,c||this.Ge(a)));a.x=g.x;a.y=g.y;a.width=g.w;a.height=g.h;a.Jd=g.zi;a.m=g.hasOwnProperty("a")?g.a:0;a.opacity=g.hasOwnProperty("o")?g.o:1;a.oc=g.hasOwnProperty("hX")?g.hX:.5;a.pc=g.hasOwnProperty("hY")?g.hY:.5;a.visible=g.hasOwnProperty("v")?g.v:!0;a.Nd=g.hasOwnProperty("ce")?g.ce:!0;
a.Ti=g.hasOwnProperty("mts")?g.mts:-1;a.Pb=g.hasOwnProperty("bm")?g.bm:0;a.Mh=kb(a.Pb);this.G&&lb(a,a.Pb,this.G);a.D();if(g.hasOwnProperty("fx"))for(c=0,d=g.fx.length;c<d;c++)k=n.Xm(g.fx[c].name),0>k||(a.Ie[k]=g.fx[c].active,a.Ra[k]=g.fx[c].params);a.Hd()}if(n=e.behs)for(f in n)n.hasOwnProperty(f)&&(c=this.cw(a,parseInt(f,10)),0>c||a.R[c].zb(n[f]));e.data&&a.zb(e.data)};b.prototype.Yp=function(a,e,c){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(e,
c)},c)};b.prototype.Vv=function(a,e){this.Yp("data.js",function(c){var f=new FileReader;f.onload=function(e){a(e.target.result)};f.onerror=e;f.readAsText(c)},e)};var O=[],ga=0;b.prototype.Sn=function(){if(O.length&&!(8<=ga)){ga++;var a=O.shift();this.Qu(a.filename,a.uy,a.rv)}};b.prototype.Zp=function(a,e,c){var f=this;O.push({filename:a,uy:function(a){ga--;f.Sn();e(a)},rv:function(a){ga--;f.Sn();c(a)}});this.Sn()};b.prototype.Qu=function(a,e,c){this.Yp(a,function(a){var c=new FileReader;c.onload=
function(a){e(a.target.result)};c.readAsArrayBuffer(a)},c)};b.prototype.Wv=function(a,e,c){this.Zp(a,function(a){a=URL.createObjectURL(new Blob([a]));e(a)},c)};b.prototype.Pw=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};b.prototype.gs=function(a,e){this.qi&&!this.Pw(e)?this.Wv(e,function(e){a.src=e},function(a){alert("Failed to load image: "+a)}):a.src=e};b.prototype.Dl=function(a,e){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=
e:(a.webkitImageSmoothingEnabled=e,a.mozImageSmoothingEnabled=e,a.msImageSmoothingEnabled=e)};Vb=function(a){return new b(document.getElementById(a))};Wb=function(a,e){return new b({dc:!0,width:a,height:e})};window.cr_createRuntime=Vb;window.cr_createDCRuntime=Wb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Jj=!0;document.body.appendChild(a);a=new b(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 b(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var b=document.getElementById("c2canvas");return b?b.c2runtime:window.c2runtime?window.c2runtime:null};
window.cr_getSnapshot=function(b,p){var h=window.cr_getC2Runtime();h&&h.Ou(b,p)};window.cr_sizeCanvas=function(b,p){if(0!==b&&0!==p){var h=window.cr_getC2Runtime();h&&h.setSize(b,p)}};window.cr_setSuspended=function(b){var p=window.cr_getC2Runtime();p&&p.setSuspended(b)};
(function(){function b(a,c){this.b=a;this.Df=null;this.scrollX=this.b.qb/2;this.scrollY=this.b.pb/2;this.scale=1;this.m=0;this.Fg=!0;this.name=c[0];this.Bx=c[1];this.Ax=c[2];this.width=c[1];this.height=c[2];this.Ms=c[3];this.ss=c[4];this.ca=c[5];var d=c[6],g,b;this.Z=[];this.di=[];g=0;for(b=d.length;g<b;g++){var l=new Xb(this,d[g]);l.rr=g;this.Z.push(l)}d=c[7];this.Of=[];g=0;for(b=d.length;g<b;g++){var l=d[g],m=this.b.F[l[1]];m.Zc||(m.Zc=l);this.Of.push(l);-1===this.di.indexOf(m)&&this.di.push(m)}this.X=
[];this.qa=[];this.xe=!0;this.Ra=[];g=0;for(b=c[8].length;g<b;g++)this.X.push({id:c[8][g][0],name:c[8][g][1],fb:-1,Ad:!1,Pa:!0,index:g}),this.Ra.push(c[8][g][2].slice(0));this.Hd();this.gf=new va(0,0,1,1);this.oo=new va(0,0,1,1);this.df={}}function p(a,c){return a.Jd-c.Jd}function h(a,c){this.yb=a;this.b=a.b;this.j=[];this.scale=1;this.m=0;this.fe=!1;this.Ae=new va(0,0,0,0);this.Hs=new wa;this.Ba=this.wa=this.Ca=this.ua=0;this.pg=!1;this.Fe=-1;this.ym=0;this.name=c[0];this.index=c[1];this.ca=c[2];
this.visible=c[3];this.rd=c[4];this.Gd=c[5];this.ed=c[6];this.fd=c[7];this.opacity=c[8];this.qk=c[9];this.Uc=c[10];this.Kd=c[11];this.Pb=c[12];this.nv=c[13];this.Mh="source-over";this.Ub=this.$b=0;this.Mb=null;this.qe=q();this.Cd=!0;this.Xg=new va(0,0,-1,-1);this.Fb=new va(0,0,-1,-1);this.Uc&&(this.Mb=new jb(this.b.qb,this.b.pb));this.Xd=!1;var d=c[14],g,b;this.xs=[];this.Oc=[];this.Oh=[];g=0;for(b=d.length;g<b;g++){var l=d[g],m=this.b.F[l[1]];m.Zc||(m.Zc=l,m.Nu=this.index);this.Oc.push(l);-1===this.yb.di.indexOf(m)&&
this.yb.di.push(m)}Ba(this.xs,this.Oc);this.X=[];this.qa=[];this.xe=!0;this.Ra=[];g=0;for(b=c[15].length;g<b;g++)this.X.push({id:c[15][g][0],name:c[15][g][1],fb:-1,Ad:!1,Pa:!0,index:g}),this.Ra.push(c[15][g][2].slice(0));this.Hd();this.gf=new va(0,0,1,1);this.oo=new va(0,0,1,1)}function q(){return a.length?a.pop():[]}function m(e){Q(e);a.push(e)}b.prototype.cy=function(a){var c=a.type.ca.toString();this.df.hasOwnProperty(c)||(this.df[c]=[]);this.df[c].push(this.b.xo(a))};b.prototype.nq=function(){var a=
this.Z[0];return!a.Gd&&1===a.opacity&&!a.qk&&a.visible};b.prototype.Hd=function(){Q(this.qa);this.xe=!0;var a,c,d;a=0;for(c=this.X.length;a<c;a++)d=this.X[a],d.Pa&&(this.qa.push(d),d.Ad||(this.xe=!1))};b.prototype.Wm=function(a){var c,d,g;c=0;for(d=this.X.length;c<d;c++)if(g=this.X[c],g.name===a)return g;return null};var r=[],l=!0;b.prototype.Ho=function(){this.ss&&(this.Df=this.b.Km[this.ss],this.Df.Qo());this.b.xa=this;this.width=this.Bx;this.height=this.Ax;this.scrollX=this.b.qb/2;this.scrollY=
this.b.pb/2;var a,c,d,g,b,m,h;a=0;for(d=this.b.F.length;a<d;a++)if(c=this.b.F[a],!c.K)for(b=c.j,c=0,g=b.length;c<g;c++)if(m=b[c],m.n){var n=m.n.rr;n>=this.Z.length&&(n=this.Z.length-1);m.n=this.Z[n];-1===m.n.j.indexOf(m)&&m.n.j.push(m);m.n.pg=!0}if(!l)for(a=0,d=this.Z.length;a<d;++a)this.Z[a].j.sort(p);Q(r);this.Cu();a=0;for(d=this.Z.length;a<d;a++)m=this.Z[a],m.Lu(),m.cm();b=!1;if(!this.Fg){for(h in this.df)if(this.df.hasOwnProperty(h)&&(c=this.b.Hg(parseInt(h,10)))&&!c.K&&this.b.Po(c)){g=this.df[h];
a=0;for(d=g.length;a<d;a++){m=null;if(c.Fa.Ue&&(m=this.uk(g[a].w.l),!m))continue;m=this.b.Oe(c.Zc,m,!1,0,0,!0);this.b.Sk(m,g[a]);b=!0;r.push(m)}Q(g)}a=0;for(d=this.Z.length;a<d;a++)this.Z[a].j.sort(p),this.Z[a].pg=!0}b&&(this.b.Ob(),this.b.Wr());for(a=0;a<r.length;a++)if(m=r[a],m.type.qc)for(d=m.Zh(),c=0,g=m.type.Cc.length;c<g;c++)h=m.type.Cc[c],m.type!==h&&(h.j.length>d?m.siblings.push(h.j[d]):h.Zc&&(b=this.b.Oe(h.Zc,m.n,!0,m.x,m.y,!0),this.b.Ob(),h.Zl(),m.siblings.push(b),r.push(b)));a=0;for(d=
this.Of.length;a<d;a++)this.b.Oe(this.Of[a],null,!0);this.b.wf=null;this.b.Ob();if(this.b.Ma&&!this.b.lb)for(a=0,d=this.b.F.length;a<d;a++)h=this.b.F[a],!h.K&&h.j.length&&h.ql&&h.ql(this.b.Ma);if(this.b.ki)Ba(this.b.kk,r);else for(a=0,d=r.length;a<d;a++)m=r[a],this.b.trigger(Object.getPrototypeOf(m.type.Fa).k.Fh,m);Q(r);this.b.ki||this.b.trigger(X.prototype.k.lp,null);this.Fg=!1};b.prototype.Ku=function(){var a,c,d,g,b;c=a=0;for(d=this.Of.length;a<d;a++)g=this.Of[a],b=this.b.F[g[1]],b.global?b.qc||
this.b.Oe(g,null,!0):(this.Of[c]=g,c++);Aa(this.Of,c)};b.prototype.ty=function(){this.b.ki||this.b.trigger(X.prototype.k.Ot,null);this.b.wn=!0;Q(this.b.Zd.Ac);var a,c,d,g,b,m;if(!this.Fg)for(a=0,c=this.Z.length;a<c;a++)for(this.Z[a].So(),b=this.Z[a].j,d=0,g=b.length;d<g;d++)m=b[d],m.type.global||this.b.Po(m.type)&&this.cy(m);a=0;for(c=this.Z.length;a<c;a++){b=this.Z[a].j;d=0;for(g=b.length;d<g;d++)m=b[d],m.type.global||this.b.Ge(m);this.b.Ob();Q(b);this.Z[a].pg=!0}a=0;for(c=this.b.F.length;a<c;a++)if(b=
this.b.F[a],!(b.global||b.Fa.Ue||b.Fa.Jl||b.K)){d=0;for(g=b.j.length;d<g;d++)this.b.Ge(b.j[d]);this.b.Ob()}l=!1;this.b.wn=!1};new va(0,0,0,0);b.prototype.Lc=function(a){var c,d=a,g=!1,b=!this.b.Mc;b&&(this.b.Qk||(this.b.Qk=document.createElement("canvas"),c=this.b.Qk,c.width=this.b.N,c.height=this.b.M,this.b.Pq=c.getContext("2d"),g=!0),c=this.b.Qk,d=this.b.Pq,c.width!==this.b.N&&(c.width=this.b.N,g=!0),c.height!==this.b.M&&(c.height=this.b.M,g=!0),g&&this.b.Dl(d,this.b.Ha));d.globalAlpha=1;d.globalCompositeOperation=
"source-over";this.b.Lp&&!this.nq()&&d.clearRect(0,0,this.b.N,this.b.M);var l,m,g=0;for(l=this.Z.length;g<l;g++)m=this.Z[g],m.visible&&0<m.opacity&&11!==m.Pb&&(m.j.length||!m.Gd)?m.Lc(d):m.cm();b&&a.drawImage(c,0,0,this.b.width,this.b.height)};b.prototype.zf=function(a){a.es(!0);this.b.$a||(this.b.$a=a.Kc(this.b.N,this.b.M,this.b.Ha));if(this.b.$a.tf!==this.b.N||this.b.$a.sf!==this.b.M)a.deleteTexture(this.b.$a),this.b.$a=a.Kc(this.b.N,this.b.M,this.b.Ha);a.kd(this.b.$a);this.b.Mc||a.jg(this.b.N,
this.b.M);var c,d;for(c=this.Z.length-1;0<=c;--c)d=this.Z[c],d.visible&&1===d.opacity&&d.xe&&0===d.Pb&&(d.j.length||!d.Gd)?d.zf(a):d.cm();a.es(!1)};b.prototype.Vb=function(a){var c=0<this.qa.length||this.b.zh||!this.b.Mc||this.b.Ga;if(c){this.b.$a||(this.b.$a=a.Kc(this.b.N,this.b.M,this.b.Ha));if(this.b.$a.tf!==this.b.N||this.b.$a.sf!==this.b.M)a.deleteTexture(this.b.$a),this.b.$a=a.Kc(this.b.N,this.b.M,this.b.Ha);a.kd(this.b.$a);this.b.Mc||a.jg(this.b.N,this.b.M)}else this.b.$a&&(a.kd(null),a.deleteTexture(this.b.$a),
this.b.$a=null);this.b.Lp&&!this.nq()&&a.clear(0,0,0,0);var d,g,b;d=0;for(g=this.Z.length;d<g;d++)b=this.Z[d],b.visible&&0<b.opacity&&(b.j.length||!b.Gd)?b.Vb(a):b.cm();c&&(0===this.qa.length||1===this.qa.length&&this.b.Mc?(1===this.qa.length?(c=this.qa[0].index,a.yc(this.qa[0].fb),a.nh(null,1/this.b.N,1/this.b.M,0,0,1,1,this.scale,this.m,0,0,this.b.N/2,this.b.M/2,this.b.mb.ea,this.Ra[c]),a.rl(this.qa[0].fb)&&(this.b.Aa=!0)):a.yc(0),this.b.Mc||a.jg(this.b.width,this.b.height),a.kd(null),a.ds(!1),
a.jf(1),a.xc(this.b.$a),a.bs(),a.jd(),a.Tc(),c=this.b.width/2,d=this.b.height/2,a.jh(-c,d,c,d,c,-d,-c,-d),a.xc(null),a.ds(!0)):this.po(a,null,null,null))};b.prototype.Xh=function(){return 0<this.qa.length||this.b.zh||!this.b.Mc||this.b.Ga?this.b.$a:null};b.prototype.iq=function(){var a=this.Z[0].nc(),c,d,g;c=1;for(d=this.Z.length;c<d;c++)g=this.Z[c],(0!==g.ed||0!==g.fd)&&g.nc()<a&&(a=g.nc());return a};b.prototype.$r=function(a){if(!this.Ms){var c=1/this.iq()*this.b.N/2;a>this.width-c&&(a=this.width-
c);a<c&&(a=c)}this.scrollX!==a&&(this.scrollX=a,this.b.Aa=!0)};b.prototype.as=function(a){if(!this.Ms){var c=1/this.iq()*this.b.M/2;a>this.height-c&&(a=this.height-c);a<c&&(a=c)}this.scrollY!==a&&(this.scrollY=a,this.b.Aa=!0)};b.prototype.Cu=function(){this.$r(this.scrollX);this.as(this.scrollY)};b.prototype.po=function(a,c,d,g){var b=d?d.qa:c?c.qa:this.qa,l=1,m=0,n=0,h=0,r=this.b.N,p=this.b.M;d?(l=d.n.nc(),m=d.n.Ua(),n=d.n.ua,h=d.n.wa,r=d.n.Ca,p=d.n.Ba):c&&(l=c.nc(),m=c.Ua(),n=c.ua,h=c.wa,r=c.Ca,
p=c.Ba);var q=this.b.Rm,E,F,w,C,M=0,ca=1,R,K,A=this.b.N,N=this.b.M,O=A/2,ga=N/2,v=c?c.gf:this.gf,t=c?c.oo:this.oo,x=0,S=0,I=0,H=0,V=A,sa=A,T=N,xa=N,ma=w=0;C=d?d.n.Ua():0;if(d){E=0;for(F=b.length;E<F;E++)w+=a.qw(b[E].fb),ma+=a.rw(b[E].fb);H=d.Da;x=c.Oa(H.left,H.top,!0,!0);I=c.Oa(H.left,H.top,!1,!0);V=c.Oa(H.right,H.bottom,!0,!0);T=c.Oa(H.right,H.bottom,!1,!0);0!==C&&(E=c.Oa(H.right,H.top,!0,!0),F=c.Oa(H.right,H.top,!1,!0),S=c.Oa(H.left,H.bottom,!0,!0),H=c.Oa(H.left,H.bottom,!1,!0),C=Math.min(x,V,E,
S),V=Math.max(x,V,E,S),x=C,C=Math.min(I,T,F,H),T=Math.max(I,T,F,H),I=C);x-=w;I-=ma;V+=w;T+=ma;t.left=x/A;t.top=1-I/N;t.right=V/A;t.bottom=1-T/N;S=x=P(x);H=I=P(I);sa=V=ta(V);xa=T=ta(T);S-=w;H-=ma;sa+=w;xa+=ma;0>x&&(x=0);0>I&&(I=0);V>A&&(V=A);T>N&&(T=N);0>S&&(S=0);0>H&&(H=0);sa>A&&(sa=A);xa>N&&(xa=N);v.left=x/A;v.top=1-I/N;v.right=V/A;v.bottom=1-T/N}else v.left=t.left=0,v.top=t.top=0,v.right=t.right=1,v.bottom=t.bottom=1;ma=d&&(a.bj(b[0].fb)||0!==w||0!==ma||1!==d.opacity||d.type.Fa.mr)||c&&!d&&1!==
c.opacity;a.bs();if(ma){q[M]||(q[M]=a.Kc(A,N,this.b.Ha));if(q[M].tf!==A||q[M].sf!==N)a.deleteTexture(q[M]),q[M]=a.Kc(A,N,this.b.Ha);a.yc(0);a.kd(q[M]);K=xa-H;a.clearRect(S,N-H-K,sa-S,K);d?d.Vb(a):(a.xc(this.b.nb),a.jf(c.opacity),a.jd(),a.translate(-O,-ga),a.Tc(),a.Wd(x,T,V,T,V,I,x,I,v));t.left=t.top=0;t.right=t.bottom=1;d&&(C=v.top,v.top=v.bottom,v.bottom=C);M=1;ca=0}a.jf(1);w=b.length-1;var Ma=a.ho(b[w].fb)||!c&&!d&&!this.b.Mc;E=C=0;for(F=b.length;E<F;E++){q[M]||(q[M]=a.Kc(A,N,this.b.Ha));if(q[M].tf!==
A||q[M].sf!==N)a.deleteTexture(q[M]),q[M]=a.Kc(A,N,this.b.Ha);a.yc(b[E].fb);C=b[E].index;a.rl(b[E].fb)&&(this.b.Aa=!0);0!=E||ma?(a.nh(g,1/A,1/N,t.left,t.top,t.right,t.bottom,l,m,n,h,(n+r)/2,(h+p)/2,this.b.mb.ea,d?d.Ra[C]:c?c.Ra[C]:this.Ra[C]),a.xc(null),E!==w||Ma?(a.kd(q[M]),K=xa-H,R=N-H-K,a.clearRect(S,R,sa-S,K)):(d?a.hf(d.$b,d.Ub):c&&a.hf(c.$b,c.Ub),a.kd(g)),a.xc(q[ca]),a.jd(),a.translate(-O,-ga),a.Tc(),a.Wd(x,T,V,T,V,I,x,I,v),E!==w||Ma||a.xc(null)):(a.kd(q[M]),K=xa-H,R=N-H-K,a.clearRect(S,R,sa-
S,K),d?(d.Eb&&d.Eb.P?(R=d.Eb.P,ca=1/R.width,R=1/R.height):(ca=1/d.width,R=1/d.height),a.nh(g,ca,R,t.left,t.top,t.right,t.bottom,l,m,n,h,(n+r)/2,(h+p)/2,this.b.mb.ea,d.Ra[C]),d.Vb(a)):(a.nh(g,1/A,1/N,0,0,1,1,l,m,n,h,(n+r)/2,(h+p)/2,this.b.mb.ea,c?c.Ra[C]:this.Ra[C]),a.xc(c?this.b.nb:this.b.$a),a.jd(),a.translate(-O,-ga),a.Tc(),a.Wd(x,T,V,T,V,I,x,I,v)),t.left=t.top=0,t.right=t.bottom=1,d&&!Ma&&(C=T,T=I,I=C));M=0===M?1:0;ca=0===M?1:0}Ma&&(a.yc(0),d?a.hf(d.$b,d.Ub):c?a.hf(c.$b,c.Ub):this.b.Mc||(a.jg(this.b.width,
this.b.height),O=this.b.width/2,ga=this.b.height/2,I=x=0,V=this.b.width,T=this.b.height),a.kd(g),a.xc(q[ca]),a.jd(),a.translate(-O,-ga),a.Tc(),d&&1===b.length&&!ma?a.Wd(x,I,V,I,V,T,x,T,v):a.Wd(x,T,V,T,V,I,x,I,v),a.xc(null))};b.prototype.uk=function(a){var c,d;c=0;for(d=this.Z.length;c<d;c++)if(this.Z[c].ca===a)return this.Z[c];return null};b.prototype.eb=function(){var a,c,d,g={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.m,w:this.width,h:this.height,fv:this.Fg,persist:this.df,fx:[],layers:{}};
a=0;for(c=this.X.length;a<c;a++)d=this.X[a],g.fx.push({name:d.name,active:d.Pa,params:this.Ra[d.index]});a=0;for(c=this.Z.length;a<c;a++)d=this.Z[a],g.layers[d.ca.toString()]=d.eb();return g};b.prototype.zb=function(a){var c,d,g,b;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.df=a.persist;"undefined"!==typeof a.fv&&(this.Fg=a.fv);var l=a.fx;c=0;for(d=l.length;c<d;c++)if(g=this.Wm(l[c].name))g.Pa=l[c].active,this.Ra[g.index]=l[c].params;this.Hd();
c=a.layers;for(b in c)c.hasOwnProperty(b)&&(a=this.uk(parseInt(b,10)))&&a.zb(c[b])};Jb=b;h.prototype.Hd=function(){Q(this.qa);this.xe=!0;var a,c,d;a=0;for(c=this.X.length;a<c;a++)d=this.X[a],d.Pa&&(this.qa.push(d),d.Ad||(this.xe=!1))};h.prototype.Wm=function(a){var c,d,g;c=0;for(d=this.X.length;c<d;c++)if(g=this.X[c],g.name===a)return g;return null};h.prototype.Lu=function(){var a,c,d,g,b,l;c=a=0;for(d=this.Oc.length;a<d;a++){g=this.Oc[a];b=this.b.F[g[1]];l=this.b.Po(b);b=!0;if(!l||this.yb.Fg){g=
this.b.Oe(g,this,!0);if(!g)continue;r.push(g);g.type.global&&(b=!1,this.Oh.push(g.uid))}b&&(this.Oc[c]=this.Oc[a],c++)}this.Oc.length=c;this.b.Ob();!this.b.C&&this.X.length&&(this.Pb=this.nv);this.Mh=kb(this.Pb);this.b.G&&lb(this,this.Pb,this.b.G);this.Cd=!0};h.prototype.lh=function(a,c){var d=Da(this.j,a);0>d||(c&&this.Uc&&a.vc&&a.vc.right>=a.vc.left&&(a.za(),this.Mb.update(a,a.vc,null),a.vc.set(0,0,-1,-1)),d===this.j.length-1?this.j.pop():(za(this.j,d),this.lj(d)),this.Cd=!0)};h.prototype.Jh=function(a,
c){a.Jd=this.j.length;this.j.push(a);c&&this.Uc&&a.vc&&a.D();this.Cd=!0};h.prototype.Lx=function(a){this.j.unshift(a);this.lj(0)};h.prototype.mx=function(a,c,d){var g=a.Rd();c=c.Rd();za(this.j,g);g<c&&c--;d&&c++;c===this.j.length?this.j.push(a):this.j.splice(c,0,a);this.lj(g<c?g:c)};h.prototype.lj=function(a){-1===this.Fe?this.Fe=a:a<this.Fe&&(this.Fe=a);this.Cd=this.pg=!0};h.prototype.So=function(){if(this.pg){-1===this.Fe&&(this.Fe=0);var a,c,d;if(this.Uc)for(a=this.Fe,c=this.j.length;a<c;++a)d=
this.j[a],d.Jd=a,this.Mb.ix(d.vc);else for(a=this.Fe,c=this.j.length;a<c;++a)this.j[a].Jd=a;this.pg=!1;this.Fe=-1}};h.prototype.nc=function(a){return this.mw()*(this.b.Mc||a?this.b.Kh:1)};h.prototype.mw=function(){return(this.scale*this.yb.scale-1)*this.Kd+1};h.prototype.Ua=function(){return this.fe?0:Ia(this.yb.m+this.m)};var a=[],c=[],d=[];h.prototype.an=function(){this.So();this.Mb.tl(this.ua,this.wa,this.Ca,this.Ba,d);if(!d.length)return q();if(1===d.length){var a=q();Ba(a,d[0]);Q(d);return a}for(var f=
!0;1<d.length;){for(var a=d,b=void 0,g=void 0,l=void 0,h=void 0,r=void 0,b=0,g=a.length;b<g-1;b+=2){var l=a[b],h=a[b+1],r=q(),n=l,p=h,L=r,y=0,z=0,E=0,F=n.length,w=p.length,C=void 0,M=void 0;for(L.length=F+w;y<F&&z<w;++E)C=n[y],M=p[z],C.Jd<M.Jd?(L[E]=C,++y):(L[E]=M,++z);for(;y<F;++y,++E)L[E]=n[y];for(;z<w;++z,++E)L[E]=p[z];f||(m(l),m(h));c.push(r)}1===g%2&&(f?(l=q(),Ba(l,a[g-1]),c.push(l)):c.push(a[g-1]));Ba(a,c);Q(c);f=!1}a=d[0];Q(d);return a};h.prototype.Lc=function(a){this.Xd=this.qk||1!==this.opacity||
0!==this.Pb;var c=this.b.canvas,d=a,g=!1;this.Xd&&(this.b.Pk||(this.b.Pk=document.createElement("canvas"),c=this.b.Pk,c.width=this.b.N,c.height=this.b.M,this.b.Oq=c.getContext("2d"),g=!0),c=this.b.Pk,d=this.b.Oq,c.width!==this.b.N&&(c.width=this.b.N,g=!0),c.height!==this.b.M&&(c.height=this.b.M,g=!0),g&&this.b.Dl(d,this.b.Ha),this.Gd&&d.clearRect(0,0,this.b.N,this.b.M));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.Gd||(d.fillStyle="rgb("+this.rd[0]+","+this.rd[1]+","+this.rd[2]+")",
d.fillRect(0,0,this.b.N,this.b.M));d.save();this.fe=!0;var g=this.fc(0,0,!0,!0),b=this.fc(0,0,!1,!0);this.fe=!1;this.b.Rc&&(g=Math.round(g),b=Math.round(b));this.yl(g,b,d);var l=this.nc();d.scale(l,l);d.translate(-g,-b);this.Uc?(this.Fb.left=this.Mb.jc(this.ua),this.Fb.top=this.Mb.kc(this.wa),this.Fb.right=this.Mb.jc(this.Ca),this.Fb.bottom=this.Mb.kc(this.Ba),this.Cd||!this.Fb.Rh(this.Xg)?(m(this.qe),g=this.an(),this.Cd=!1,this.Xg.wg(this.Fb)):g=this.qe):g=this.j;for(var h,n=null,b=0,l=g.length;b<
l;++b)h=g[b],h!==n&&(this.gv(h,d),n=h);this.Uc&&(this.qe=g);d.restore();this.Xd&&(a.globalCompositeOperation=this.Mh,a.globalAlpha=this.opacity,a.drawImage(c,0,0))};h.prototype.gv=function(a,c){if(a.visible&&0!==a.width&&0!==a.height){a.za();var d=a.Da;d.right<this.ua||d.bottom<this.wa||d.left>this.Ca||d.top>this.Ba||(c.globalCompositeOperation=a.Mh,a.Lc(c))}};h.prototype.cm=function(){this.fe=!0;var a=this.fc(0,0,!0,!0),c=this.fc(0,0,!1,!0);this.fe=!1;this.b.Rc&&(a=Math.round(a),c=Math.round(c));
this.yl(a,c,null)};h.prototype.yl=function(a,c,d){var g=this.nc();this.ua=a;this.wa=c;this.Ca=a+1/g*this.b.N;this.Ba=c+1/g*this.b.M;this.ua>this.Ca&&(a=this.ua,this.ua=this.Ca,this.Ca=a);this.wa>this.Ba&&(a=this.wa,this.wa=this.Ba,this.Ba=a);a=this.Ua();0!==a&&(d&&(d.translate(this.b.N/2,this.b.M/2),d.rotate(-a),d.translate(this.b.N/-2,this.b.M/-2)),this.Ae.set(this.ua,this.wa,this.Ca,this.Ba),this.Ae.offset((this.ua+this.Ca)/-2,(this.wa+this.Ba)/-2),this.Hs.os(this.Ae,a),this.Hs.Fp(this.Ae),this.Ae.offset((this.ua+
this.Ca)/2,(this.wa+this.Ba)/2),this.ua=this.Ae.left,this.wa=this.Ae.top,this.Ca=this.Ae.right,this.Ba=this.Ae.bottom)};h.prototype.zf=function(a){if(this.Xd=this.qk){this.b.nb||(this.b.nb=a.Kc(this.b.N,this.b.M,this.b.Ha));if(this.b.nb.tf!==this.b.N||this.b.nb.sf!==this.b.M)a.deleteTexture(this.b.nb),this.b.nb=a.Kc(this.b.N,this.b.M,this.b.Ha);a.kd(this.b.nb)}this.fe=!0;var c=this.fc(0,0,!0,!0),d=this.fc(0,0,!1,!0);this.fe=!1;this.b.Rc&&(c=Math.round(c),d=Math.round(d));this.yl(c,d,null);c=this.nc();
a.jd();a.scale(c,c);a.zl(-this.Ua());a.translate((this.ua+this.Ca)/-2,(this.wa+this.Ba)/-2);a.Tc();this.Uc?(this.Fb.left=this.Mb.jc(this.ua),this.Fb.top=this.Mb.kc(this.wa),this.Fb.right=this.Mb.jc(this.Ca),this.Fb.bottom=this.Mb.kc(this.Ba),this.Cd||!this.Fb.Rh(this.Xg)?(m(this.qe),c=this.an(),this.Cd=!1,this.Xg.wg(this.Fb)):c=this.qe):c=this.j;for(var g,b=null,d=c.length-1;0<=d;--d)g=c[d],g!==b&&(this.jv(c[d],a),b=g);this.Uc&&(this.qe=c);this.Gd||(this.ym=this.b.Cf++,a.El(this.ym),a.cs(1,1,1),a.bq(),
a.Vx())};h.prototype.Vb=function(a){var c=0,d=0;if(this.Xd=this.qk||1!==this.opacity||0<this.qa.length||0!==this.Pb){this.b.nb||(this.b.nb=a.Kc(this.b.N,this.b.M,this.b.Ha));if(this.b.nb.tf!==this.b.N||this.b.nb.sf!==this.b.M)a.deleteTexture(this.b.nb),this.b.nb=a.Kc(this.b.N,this.b.M,this.b.Ha);a.kd(this.b.nb);this.Gd&&a.clear(0,0,0,0)}this.Gd||(this.b.Ga?(a.El(this.ym),a.cs(this.rd[0]/255,this.rd[1]/255,this.rd[2]/255),a.bq(),a.ky()):a.clear(this.rd[0]/255,this.rd[1]/255,this.rd[2]/255,1));this.fe=
!0;var g=this.fc(0,0,!0,!0),c=this.fc(0,0,!1,!0);this.fe=!1;this.b.Rc&&(g=Math.round(g),c=Math.round(c));this.yl(g,c,null);g=this.nc();a.jd();a.scale(g,g);a.zl(-this.Ua());a.translate((this.ua+this.Ca)/-2,(this.wa+this.Ba)/-2);a.Tc();this.Uc?(this.Fb.left=this.Mb.jc(this.ua),this.Fb.top=this.Mb.kc(this.wa),this.Fb.right=this.Mb.jc(this.Ca),this.Fb.bottom=this.Mb.kc(this.Ba),this.Cd||!this.Fb.Rh(this.Xg)?(m(this.qe),c=this.an(),this.Cd=!1,this.Xg.wg(this.Fb)):c=this.qe):c=this.j;var b,l,h=null,d=0;
for(b=c.length;d<b;++d)l=c[d],l!==h&&(this.hv(c[d],a),h=l);this.Uc&&(this.qe=c);this.Xd&&(c=this.qa.length?this.qa[0].fb:0,d=this.qa.length?this.qa[0].index:0,0===this.qa.length||1===this.qa.length&&!a.ho(c)&&1===this.opacity?(1===this.qa.length?(a.yc(c),a.nh(this.yb.Xh(),1/this.b.N,1/this.b.M,0,0,1,1,g,this.Ua(),this.ua,this.wa,(this.ua+this.Ca)/2,(this.wa+this.Ba)/2,this.b.mb.ea,this.Ra[d]),a.rl(c)&&(this.b.Aa=!0)):a.yc(0),a.kd(this.yb.Xh()),a.jf(this.opacity),a.xc(this.b.nb),a.hf(this.$b,this.Ub),
a.jd(),a.Tc(),g=this.b.N/2,c=this.b.M/2,a.jh(-g,c,g,c,g,-c,-g,-c),a.xc(null)):this.yb.po(a,this,null,this.yb.Xh()))};h.prototype.hv=function(a,c){if(a.visible&&0!==a.width&&0!==a.height){a.za();var d=a.Da;d.right<this.ua||d.bottom<this.wa||d.left>this.Ca||d.top>this.Ba||(c.El(a.Cf),a.Ts?this.kv(a,c):(c.yc(0),c.hf(a.$b,a.Ub),a.Vb(c)))}};h.prototype.jv=function(a,c){if(a.visible&&0!==a.width&&0!==a.height){a.za();var d=a.Da;d.right<this.ua||d.bottom<this.wa||d.left>this.Ca||d.top>this.Ba||(a.Cf=this.b.Cf++,
0===a.Pb&&1===a.opacity&&a.xe&&a.zf&&(c.El(a.Cf),a.zf(c)))}};h.prototype.kv=function(a,c){var d=a.qa[0].fb,g=a.qa[0].index,b=this.nc();if(1!==a.qa.length||c.ho(d)||c.Nx(d)||(a.m||a.n.Ua())&&c.bj(d)||1!==a.opacity||a.type.Fa.mr)this.yb.po(c,this,a,this.Xd?this.b.nb:this.yb.Xh()),c.jd(),c.scale(b,b),c.zl(-this.Ua()),c.translate((this.ua+this.Ca)/-2,(this.wa+this.Ba)/-2),c.Tc();else{c.yc(d);c.hf(a.$b,a.Ub);c.rl(d)&&(this.b.Aa=!0);var l=0,m=0,n=0,h=0;c.bj(d)&&(h=a.Da,l=this.Oa(h.left,h.top,!0,!0),m=this.Oa(h.left,
h.top,!1,!0),n=this.Oa(h.right,h.bottom,!0,!0),h=this.Oa(h.right,h.bottom,!1,!0),l=l/windowWidth,m=1-m/windowHeight,n=n/windowWidth,h=1-h/windowHeight);var r;a.Eb&&a.Eb.P?(r=a.Eb.P,d=1/r.width,r=1/r.height):(d=1/a.width,r=1/a.height);c.nh(this.Xd?this.b.nb:this.yb.Xh(),d,r,l,m,n,h,b,this.Ua(),this.ua,this.wa,(this.ua+this.Ca)/2,(this.wa+this.Ba)/2,this.b.mb.ea,a.Ra[g]);a.Vb(c)}};h.prototype.fc=function(a,c,d,g){var b=this.b.devicePixelRatio;this.b.Qf&&(a*=b,c*=b);var b=this.b.Lr,l=this.b.Mr,b=(this.yb.scrollX-
b)*this.ed+b,l=(this.yb.scrollY-l)*this.fd+l,m=b,n=l,h=1/this.nc(!g);g?(m-=this.b.N*h/2,n-=this.b.M*h/2):(m-=this.b.width*h/2,n-=this.b.height*h/2);m+=a*h;n+=c*h;c=this.Ua();0!==c&&(m-=b,n-=l,a=Math.cos(c),c=Math.sin(c),g=m*a-n*c,n=n*a+m*c,m=g+b,n+=l);return d?m:n};h.prototype.Oa=function(a,c,d,g){var b=this.b.Lr,l=this.b.Mr,m=(this.yb.scrollX-b)*this.ed+b,n=(this.yb.scrollY-l)*this.fd+l,l=m,b=n,h=this.Ua();if(0!==h){a-=m;c-=n;var r=Math.cos(-h),h=Math.sin(-h),p=a*r-c*h;c=c*r+a*h;a=p+m;c+=n}m=1/this.nc(!g);
g?(l-=this.b.N*m/2,b-=this.b.M*m/2):(l-=this.b.width*m/2,b-=this.b.height*m/2);l=(a-l)/m;b=(c-b)/m;a=this.b.devicePixelRatio;this.b.Qf&&!g&&(l/=a,b/=a);return d?l:b};h.prototype.eb=function(){var a,c,d,g={s:this.scale,a:this.m,vl:this.ua,vt:this.wa,vr:this.Ca,vb:this.Ba,v:this.visible,bc:this.rd,t:this.Gd,px:this.ed,py:this.fd,o:this.opacity,zr:this.Kd,fx:[],cg:this.Oh,instances:[]};a=0;for(c=this.X.length;a<c;a++)d=this.X[a],g.fx.push({name:d.name,active:d.Pa,params:this.Ra[d.index]});return g};
h.prototype.zb=function(a){var c,d,g;this.scale=a.s;this.m=a.a;this.ua=a.vl;this.wa=a.vt;this.Ca=a.vr;this.Ba=a.vb;this.visible=a.v;this.rd=a.bc;this.Gd=a.t;this.ed=a.px;this.fd=a.py;this.opacity=a.o;this.Kd=a.zr;this.Oh=a.cg||[];Ba(this.Oc,this.xs);var b=new da;c=0;for(g=this.Oh.length;c<g;++c)b.add(this.Oh[c]);d=c=0;for(g=this.Oc.length;c<g;++c)b.contains(this.Oc[c][2])||(this.Oc[d]=this.Oc[c],++d);Aa(this.Oc,d);d=a.fx;c=0;for(g=d.length;c<g;c++)if(a=this.Wm(d[c].name))a.Pa=d[c].active,this.Ra[a.index]=
d[c].params;this.Hd();this.j.sort(p);this.pg=!0};Xb=h})();
(function(){function b(a,c){var d,e=a.length;switch(e){case 0:return!0;case 1:return a[0]===c[0];case 2:return a[0]===c[0]&&a[1]===c[1];default:for(d=0;d<e;d++)if(a[d]!==c[d])return!1;return!0}}function p(a,c){return a.index-c.index}function h(a){var c,d,e,f;2===a.length?a[0].index>a[1].index&&(c=a[0],a[0]=a[1],a[1]=c):2<a.length&&a.sort(p);a.length>=J.length&&(J.length=a.length+1);J[a.length]||(J[a.length]=[]);f=J[a.length];c=0;for(d=f.length;c<d;c++)if(e=f[c],b(a,e))return e;f.push(a);return a}
function q(a,c){this.b=a;this.Ks={};this.Xp={};this.jn=!1;this.qq=new da;this.Fm=[];this.nm=[];this.name=c[0];var d=c[1];this.Qe=[];var e,f;e=0;for(f=d.length;e<f;e++)this.sq(d[e],null,this.Qe)}function m(a){this.type=a;this.j=[];this.S=[];this.V=!0}function r(a,c,d){this.sheet=a;this.parent=c;this.b=a.b;this.ya=[];this.kf=[];this.oq=this.Ul=this.Ko=this.qn=this.group=this.Eo=!1;this.hb=[];this.Vc=[];this.ld=[];this.ai="";this.$h=this.qn=this.group=!1;this.Vj=null;d[1]&&(this.ai=d[1][1].toLowerCase(),
this.group=!0,this.qn=!!d[1][0],this.Vj=[],this.$h=this.qn,this.b.tg.push(this),this.b.vk[this.ai]=this);this.Qc=d[2];this.ca=d[4];this.group||(this.b.Ep[this.ca.toString()]=this);var e=d[5];a=0;for(c=e.length;a<c;a++){var f=new Yb(this,e[a]);f.index=a;this.hb.push(f);this.yp(f.type)}e=d[6];a=0;for(c=e.length;a<c;a++)f=new Zb(this,e[a]),f.index=a,this.Vc.push(f);if(8===d.length)for(d=d[7],a=0,c=d.length;a<c;a++)this.sheet.sq(d[a],this,this.ld);this.Ik=!1;this.hb.length&&(this.Ik=null==this.hb[0].type&&
this.hb[0].Gb==X.prototype.k.lt)}function l(a,c){var d,e,f;if(a&&(-1===c.indexOf(a)&&c.push(a),a.qc))for(d=0,e=a.Cc.length;d<e;d++)f=a.Cc[d],a!==f&&-1===c.indexOf(f)&&c.push(f)}function a(a,c){this.Jc=a;this.sheet=a.sheet;this.b=a.b;this.aa=[];this.Sa=[];this.H={};this.index=-1;this.Hh=!1;this.Gb=this.b.He(c[1]);this.trigger=0<c[3];this.Wp=2===c[3];this.Sd=c[4];this.gi=c[5];this.$w=c[6];this.ca=c[7];this.b.Me[this.ca.toString()]=this;-1===c[0]?(this.type=null,this.cb=this.wo,this.rf=null,this.sd=
-1):(this.type=this.b.F[c[0]],this.cb=this.$w?this.ay:this.vo,c[2]?(this.rf=this.type.tk(c[2]),this.sd=this.type.Um(c[2])):(this.rf=null,this.sd=-1),this.Jc.parent&&this.Jc.parent.Fl());this.Wp&&(this.cb=this.by);if(10===c.length){var d,e,f=c[9];d=0;for(e=f.length;d<e;d++){var g=new $b(this,f[d]);this.aa.push(g)}this.Sa.length=f.length}}function c(a,c){this.Jc=a;this.sheet=a.sheet;this.b=a.b;this.aa=[];this.Sa=[];this.H={};this.index=-1;this.Hh=!1;this.Gb=this.b.He(c[1]);-1===c[0]?(this.type=null,
this.cb=this.wo,this.rf=null,this.sd=-1):(this.type=this.b.F[c[0]],this.cb=this.vo,c[2]?(this.rf=this.type.tk(c[2]),this.sd=this.type.Um(c[2])):(this.rf=null,this.sd=-1));this.ca=c[3];this.b.Je[this.ca.toString()]=this;if(6===c.length){var d,e,f=c[5];d=0;for(e=f.length;d<e;d++){var g=new $b(this,f[d]);this.aa.push(g)}this.Sa.length=f.length}}function d(){D++;G.length===D&&G.push(new ac);return G[D]}function e(a,c){this.Ia=a;this.Jc=a.Jc;this.sheet=a.sheet;this.b=a.b;this.type=c[0];this.Pd=null;this.ye=
0;this.get=null;this.Mp=0;this.yb=null;this.key=0;this.object=null;this.index=0;this.wj=this.lg=this.wj=this.lg=this.$p=this.Ef=this.xj=null;this.nd=!1;var d,e,f;switch(c[0]){case 0:case 7:this.Pd=new bc(this,c[1]);this.ye=0;this.get=this.xw;break;case 1:this.Pd=new bc(this,c[1]);this.ye=0;this.get=this.yw;break;case 5:this.Pd=new bc(this,c[1]);this.ye=0;this.get=this.Cw;break;case 3:case 8:this.Mp=c[1];this.get=this.vw;break;case 6:this.yb=this.b.Yg[c[1]];this.get=this.Dw;break;case 9:this.key=c[1];
this.get=this.Bw;break;case 4:this.object=this.b.F[c[1]];this.get=this.Ew;this.Jc.yp(this.object);this.Ia instanceof Zb?this.Jc.Fl():this.Jc.parent&&this.Jc.parent.Fl();break;case 10:this.index=c[1];a.type&&a.type.K?(this.get=this.zw,this.nd=!0):this.get=this.Aw;break;case 11:this.xj=c[1];this.Ef=null;this.get=this.ww;break;case 2:case 12:this.$p=c[1];this.get=this.uw;break;case 13:for(this.get=this.Fw,this.lg=[],this.wj=[],d=1,e=c.length;d<e;d++)f=new $b(this.Ia,c[d]),this.lg.push(f),this.wj.push(0)}}
function f(a,c,d){this.sheet=a;this.parent=c;this.b=a.b;this.ya=[];this.name=d[1];this.Vs=d[2];this.pn=d[3];this.ti=!!d[4];this.Hk=!!d[5];this.ca=d[6];this.b.Bh[this.ca.toString()]=this;this.data=this.pn;this.parent?(this.Zf=this.ti||this.Hk?-1:this.b.qy++,this.b.xu.push(this)):(this.Zf=-1,this.b.wu.push(this))}function k(a,c,d){this.sheet=a;this.parent=c;this.b=a.b;this.ya=[];this.ci=null;this.Mw=d[1];this.Pa=!0}function g(){this.zs=[];this.reset(null)}var J=[];q.prototype.toString=function(){return this.name};
q.prototype.sq=function(a,c,d){switch(a[0]){case 0:a=new cc(this,c,a);if(a.Qc)for(d.push(a),d=0,c=a.hb.length;d<c;d++)a.hb[d].trigger&&this.tq(a,d);else a.Hq()?this.tq(a,0):d.push(a);break;case 1:a=new Ub(this,c,a);d.push(a);break;case 2:a=new dc(this,c,a),d.push(a)}};q.prototype.Wa=function(){var a,c;a=0;for(c=this.Qe.length;a<c;a++)this.Qe[a].Wa(a<c-1&&this.Qe[a+1].Ik)};q.prototype.Qo=function(){Q(this.Fm);Q(this.nm);this.xp(this);Q(this.nm)};q.prototype.xp=function(a){var c,d,e,f,g=a.Fm,b=a.nm,
l=this.qq.Id();c=0;for(d=l.length;c<d;++c)e=l[c],f=e.ci,!e.Pa||a===f||-1<b.indexOf(f)||(b.push(f),f.xp(a),g.push(f))};q.prototype.cb=function(a){this.b.Jz||(this.jn=!0,a||(this.b.zn=!0));var c,d;c=0;for(d=this.Qe.length;c<d;c++){var e=this.Qe[c];e.cb();this.b.xm(e.ya);this.b.Se&&this.b.Ob()}a||(this.b.zn=!1)};q.prototype.tq=function(a,c){a.Qc||this.b.Xl.push(a);var d,e,f=a.hb[c],g;f.type?g=f.type.name:g="system";var b=(d=f.Wp)?this.Xp:this.Ks;b[g]||(b[g]=[]);g=b[g];b=f.Gb;if(d){if(f.aa.length&&(f=
f.aa[0],1===f.type&&2===f.Pd.type)){f=f.Pd.value.toLowerCase();d=0;for(e=g.length;d<e;d++)if(g[d].method==b){d=g[d].Sh;d[f]?d[f].push([a,c]):d[f]=[[a,c]];return}d={};d[f]=[[a,c]];g.push({method:b,Sh:d})}}else{d=0;for(e=g.length;d<e;d++)if(g[d].method==b){g[d].Sh.push([a,c]);return}Y&&b===Y.prototype.k.sg?g.unshift({method:b,Sh:[[a,c]]}):g.push({method:b,Sh:[[a,c]]})}};Kb=q;m.prototype.Bk=function(){return this.V?this.type.j.length:this.j.length};m.prototype.Wb=function(){return this.V?this.type.j:
this.j};m.prototype.$i=function(a){a&&(a.b.Va().Ya.Qc?(this.V&&(Q(this.j),Ba(this.S,a.type.j),this.V=!1),a=this.S.indexOf(a),-1!==a&&(this.j.push(this.S[a]),this.S.splice(a,1))):(this.V=!1,Q(this.j),this.j[0]=a))};sb=m;window._c2hh_="9CD36AF96FC621E4AF777B94D9496373E7390761";r.prototype.Wa=function(a){var c,d=this.parent;if(this.group)for(this.Ul=!0;d;){if(!d.group){this.Ul=!1;break}d=d.parent}this.Ko=!this.Hq()&&(!this.parent||this.parent.group&&this.parent.Ul);this.oq=!!a;this.kf=this.ya.slice(0);
for(d=this.parent;d;){a=0;for(c=d.ya.length;a<c;a++)this.tu(d.ya[a]);d=d.parent}this.ya=h(this.ya);this.kf=h(this.kf);a=0;for(c=this.hb.length;a<c;a++)this.hb[a].Wa();a=0;for(c=this.Vc.length;a<c;a++)this.Vc[a].Wa();a=0;for(c=this.ld.length;a<c;a++)this.ld[a].Wa(a<c-1&&this.ld[a+1].Ik)};r.prototype.gy=function(a){if(this.$h!==!!a){this.$h=!!a;var c;a=0;for(c=this.Vj.length;a<c;++a)this.Vj[a].Os();0<c&&this.b.xa.Df&&this.b.xa.Df.Qo()}};r.prototype.yp=function(a){l(a,this.ya)};r.prototype.tu=function(a){l(a,
this.kf)};r.prototype.Fl=function(){this.Eo=!0;this.parent&&this.parent.Fl()};r.prototype.Hq=function(){return this.hb.length?this.hb[0].trigger:!1};r.prototype.cb=function(){var a,c,d=!1,e=this.b,f=this.b.Va();f.Ya=this;var g=this.hb;this.Ik||(f.Hm=!1);if(this.Qc){0===g.length&&(d=!0);f.Xa=0;for(a=g.length;f.Xa<a;f.Xa++)c=g[f.Xa],c.trigger||(c=c.cb())&&(d=!0);(f.Vf=d)&&this.Al()}else{f.Xa=0;for(a=g.length;f.Xa<a;f.Xa++)if(c=g[f.Xa].cb(),!c){f.Vf=!1;this.Ko&&e.Se&&e.Ob();return}f.Vf=!0;this.Al()}this.pv(f)};
r.prototype.pv=function(a){a.Vf&&this.oq&&(a.Hm=!0);this.Ko&&this.b.Se&&this.b.Ob()};r.prototype.Zx=function(a){this.b.Va().Ya=this;this.hb[a].cb()&&(this.Al(),this.b.Va().Vf=!0)};r.prototype.Al=function(){var a=this.b.Va(),c;a.lc=0;for(c=this.Vc.length;a.lc<c;a.lc++)if(this.Vc[a.lc].cb())return;this.Zr()};r.prototype.Xx=function(){var a=this.b.Va(),c;for(c=this.Vc.length;a.lc<c;a.lc++)if(this.Vc[a.lc].cb())return;this.Zr()};r.prototype.Zr=function(){if(this.ld.length){var a,c,d,e,f=this.ld.length-
1;this.b.sl(this);if(this.Eo)for(a=0,c=this.ld.length;a<c;a++)d=this.ld[a],(e=!this.Ul||!this.group&&a<f)&&this.b.fj(d.ya),d.cb(),e?this.b.ef(d.ya):this.b.xm(d.ya);else for(a=0,c=this.ld.length;a<c;a++)this.ld[a].cb();this.b.ml()}};r.prototype.$x=function(){var a=this.b.Va();a.Ya=this;var c=!1,d;a.Xa=0;for(d=this.hb.length;a.Xa<d;a.Xa++)if(this.hb[a.Xa].cb())c=!0;else if(!this.Qc)return!1;return this.Qc?c:!0};r.prototype.so=function(){this.b.Ff++;var a=this.b.Va().Xa,c=this.b.sl(this);if(!this.Qc)for(c.Xa=
a+1,a=this.hb.length;c.Xa<a;c.Xa++)if(!this.hb[c.Xa].cb()){this.b.ml();return}this.Al();this.b.ml()};r.prototype.Tw=function(a){var c=a.index;if(0===c)return!0;for(--c;0<=c;--c)if(this.hb[c].type===a.type)return!1;return!0};cc=r;a.prototype.Wa=function(){var a,c,d;a=0;for(c=this.aa.length;a<c;a++)d=this.aa[a],d.Wa(),d.nd&&(this.Hh=!0)};a.prototype.by=function(){return!0};a.prototype.wo=function(){var a,c;a=0;for(c=this.aa.length;a<c;a++)this.Sa[a]=this.aa[a].get();return Ua(this.Gb.apply(this.b.Zd,
this.Sa),this.gi)};a.prototype.ay=function(){var a,c;a=0;for(c=this.aa.length;a<c;a++)this.Sa[a]=this.aa[a].get();a=this.Gb.apply(this.rf?this.rf:this.type,this.Sa);this.type.Wc();return a};a.prototype.vo=function(){var a,c,d,e,f,g,b,l,m=this.type,k=m.U(),h=this.Jc.Qc&&!this.trigger;c=0;var r=m.qc,p=m.K,q=m.ie,J=this.sd,G=-1<J,D=this.Hh,v=this.aa,t=this.Sa,x=this.gi,S=this.Gb,I;if(D)for(c=0,f=v.length;c<f;++c)g=v[c],g.nd||(t[c]=g.get(0));else for(c=0,f=v.length;c<f;++c)t[c]=v[c].get(0);if(k.V){Q(k.j);
Q(k.S);I=m.j;a=0;for(e=I.length;a<e;++a){l=I[a];if(D)for(c=0,f=v.length;c<f;++c)g=v[c],g.nd&&(t[c]=g.get(a));G?(c=0,p&&(c=l.type.Eg[q]),c=S.apply(l.R[J+c],t)):c=S.apply(l,t);(b=Ua(c,x))?k.j.push(l):h&&k.S.push(l)}m.finish&&m.finish(!0);k.V=!1;m.Wc();return k.Bk()}d=0;I=(b=h&&!this.Jc.Tw(this))?k.S:k.j;var H=!1;a=0;for(e=I.length;a<e;++a){l=I[a];if(D)for(c=0,f=v.length;c<f;++c)g=v[c],g.nd&&(t[c]=g.get(a));G?(c=0,p&&(c=l.type.Eg[q]),c=S.apply(l.R[J+c],t)):c=S.apply(l,t);if(Ua(c,x))if(H=!0,b){if(k.j.push(l),
r)for(c=0,f=l.siblings.length;c<f;c++)g=l.siblings[c],g.type.U().j.push(g)}else{I[d]=l;if(r)for(c=0,f=l.siblings.length;c<f;c++)g=l.siblings[c],g.type.U().j[d]=g;d++}else if(b){I[d]=l;if(r)for(c=0,f=l.siblings.length;c<f;c++)g=l.siblings[c],g.type.U().S[d]=g;d++}else if(h&&(k.S.push(l),r))for(c=0,f=l.siblings.length;c<f;c++)g=l.siblings[c],g.type.U().S.push(g)}Aa(I,d);if(r)for(p=m.Cc,a=0,e=p.length;a<e;a++)l=p[a].U(),b?Aa(l.S,d):Aa(l.j,d);d=H;if(b&&!H)for(a=0,e=k.j.length;a<e;a++){l=k.j[a];if(D)for(c=
0,f=v.length;c<f;c++)g=v[c],g.nd&&(t[c]=g.get(a));c=G?S.apply(l.R[J],t):S.apply(l,t);if(Ua(c,x)){H=!0;break}}m.finish&&m.finish(d||h);return h?H:k.Bk()};Yb=a;c.prototype.Wa=function(){var a,c,d;a=0;for(c=this.aa.length;a<c;a++)d=this.aa[a],d.Wa(),d.nd&&(this.Hh=!0)};c.prototype.wo=function(){var a=this.b,c,d,e=this.aa,f=this.Sa;c=0;for(d=e.length;c<d;++c)f[c]=e[c].get();return this.Gb.apply(a.Zd,f)};c.prototype.vo=function(){var a=this.type,c=this.sd,d=a.ie,e=this.Hh,f=this.aa,g=this.Sa,b=this.Gb,
l=a.U().Wb(),a=a.K,m=-1<c,k,h,r,p,q,J;if(e)for(h=0,p=f.length;h<p;++h)q=f[h],q.nd||(g[h]=q.get(0));else for(h=0,p=f.length;h<p;++h)g[h]=f[h].get(0);k=0;for(r=l.length;k<r;++k){J=l[k];if(e)for(h=0,p=f.length;h<p;++h)q=f[h],q.nd&&(g[h]=q.get(k));m?(h=0,a&&(h=J.type.Eg[d]),b.apply(J.R[c+h],g)):b.apply(J,g)}return!1};Zb=c;var G=[],D=-1;e.prototype.Wa=function(){var a,c;if(11===this.type)this.Ef=this.b.gq(this.xj,this.Jc.parent);else if(13===this.type)for(a=0,c=this.lg.length;a<c;a++)this.lg[a].Wa();this.Pd&&
this.Pd.Wa()};e.prototype.jx=function(a){this.nd||!a||a.Fa.Jl||(this.nd=!0)};e.prototype.ks=function(){this.nd=!0};e.prototype.xw=function(a){this.ye=a||0;a=d();this.Pd.get(a);D--;return a.data};e.prototype.yw=function(a){this.ye=a||0;a=d();this.Pd.get(a);D--;return u(a.data)?a.data:""};e.prototype.Ew=function(){return this.object};e.prototype.vw=function(){return this.Mp};e.prototype.Cw=function(a){this.ye=a||0;a=d();this.Pd.get(a);D--;return a.xb()?this.b.Wh(a.data):this.b.Zm(a.data)};e.prototype.Dw=
function(){return this.yb};e.prototype.Bw=function(){return this.key};e.prototype.Aw=function(){return this.index};e.prototype.zw=function(a){a=a||0;var c=this.Ia.type,d=null,d=c.U(),e=d.Wb();if(e.length)d=e[a%e.length].type;else if(d.S.length)d=d.S[a%d.S.length].type;else if(c.j.length)d=c.j[a%c.j.length].type;else return 0;return this.index+d.hk[c.ie]};e.prototype.ww=function(){return this.Ef};e.prototype.uw=function(){return this.$p};e.prototype.Fw=function(){var a,c;a=0;for(c=this.lg.length;a<
c;a++)this.wj[a]=this.lg[a].get();return this.wj};$b=e;f.prototype.Wa=function(){this.ya=h(this.ya)};f.prototype.Gl=function(a){var c=this.b.fq();this.parent&&!this.ti&&c?(this.Zf>=c.length&&(c.length=this.Zf+1),c[this.Zf]=a):this.data=a};f.prototype.kq=function(){var a=this.b.fq();return!this.parent||this.ti||!a||this.Hk?this.data:this.Zf>=a.length||"undefined"===typeof a[this.Zf]?this.pn:a[this.Zf]};f.prototype.cb=function(){!this.parent||this.ti||this.Hk||this.Gl(this.pn)};Ub=f;k.prototype.toString=
function(){return"include:"+this.ci.toString()};k.prototype.Wa=function(){this.ci=this.b.Km[this.Mw];this.sheet.qq.add(this);this.ya=h(this.ya);for(var a=this.parent;a;)a.group&&a.Vj.push(this),a=a.parent;this.Os()};k.prototype.cb=function(){this.parent&&this.b.ej(this.b.F);this.ci.jn||this.ci.cb(!0);this.parent&&this.b.ef(this.b.F)};k.prototype.Os=function(){for(var a=this.parent;a;){if(a.group&&!a.$h){this.Pa=!1;return}a=a.parent}this.Pa=!0};dc=k;g.prototype.reset=function(a){this.Ya=a;this.lc=
this.Xa=0;Q(this.zs);this.Hm=this.Vf=!1};g.prototype.Uw=function(){return this.Ya.Eo?!0:this.Xa<this.Ya.hb.length-1?!!this.Ya.ya.length:!1};Tb=g})();
(function(){function b(b,a){this.Ia=b;this.b=b.b;this.type=a[0];this.get=[this.Hv,this.Dv,this.Qv,this.Tv,this.sv,this.Rv,this.Lv,this.Av,this.Kv,this.Pv,this.tv,this.Ov,this.Bv,this.Mv,this.Iv,this.Jv,this.Ev,this.Fv,this.zv,this.Sv,this.Nv,this.Gv,this.yv,this.Cv][this.type];var c=null;this.se=this.aa=this.Sa=this.Gb=this.Tl=this.second=this.first=this.value=null;this.sd=-1;this.vd=null;this.Us=-1;this.Ef=this.xj=null;this.mh=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new bc(b,a[1]);break;case 18:this.first=new bc(b,a[1]);this.second=new bc(b,a[2]);this.Tl=new bc(b,a[3]);break;case 19:this.Gb=this.b.He(a[1]);this.Gb!==X.prototype.La.random&&this.Gb!==X.prototype.La.Hu||this.Ia.ks();this.Sa=[];this.aa=[];3===a.length?(c=a[2],this.Sa.length=c.length+1):this.Sa.length=1;break;case 20:this.se=this.b.F[a[1]];this.sd=-1;this.Gb=this.b.He(a[2]);this.mh=a[3];gc.Function&&this.Gb===gc.Function.prototype.La.My&&this.Ia.ks();a[4]?this.vd=new bc(b,a[4]):this.vd=null;this.Sa=
[];this.aa=[];6===a.length?(c=a[5],this.Sa.length=c.length+1):this.Sa.length=1;break;case 21:this.se=this.b.F[a[1]];this.mh=a[2];a[3]?this.vd=new bc(b,a[3]):this.vd=null;this.Us=a[4];break;case 22:this.se=this.b.F[a[1]];this.se.tk(a[2]);this.sd=this.se.Um(a[2]);this.Gb=this.b.He(a[3]);this.mh=a[4];a[5]?this.vd=new bc(b,a[5]):this.vd=null;this.Sa=[];this.aa=[];7===a.length?(c=a[6],this.Sa.length=c.length+1):this.Sa.length=1;break;case 23:this.xj=a[1],this.Ef=null}this.Ia.jx(this.se);4<=this.type&&
17>=this.type&&(this.first=new bc(b,a[1]),this.second=new bc(b,a[2]));if(c){var d,e;d=0;for(e=c.length;d<e;d++)this.aa.push(new bc(b,c[d]))}}function p(){++r;m.length===r&&m.push(new ac);return m[r]}function h(b,a,c){var d,e;d=0;for(e=b.length;d<e;++d)b[d].get(c),a[d+1]=c.data}function q(b,a){this.type=b||ec.rg;this.data=a||0;this.bg=null;this.type==ec.rg&&(this.data=Math.floor(this.data))}b.prototype.Wa=function(){23===this.type&&(this.Ef=this.Ia.b.gq(this.xj,this.Ia.Jc.parent));this.first&&this.first.Wa();
this.second&&this.second.Wa();this.Tl&&this.Tl.Wa();this.vd&&this.vd.Wa();if(this.aa){var b,a;b=0;for(a=this.aa.length;b<a;b++)this.aa[b].Wa()}};var m=[],r=-1;b.prototype.Sv=function(b){var a=this.aa,c=this.Sa;c[0]=b;b=p();h(a,c,b);--r;this.Gb.apply(this.b.Zd,c)};b.prototype.Nv=function(b){var a=this.se,c=this.Sa,d=this.aa,e=this.vd,f=this.Gb,m=this.Ia.ye,g=a.U(),q=g.Wb();if(!q.length)if(g.S.length)q=g.S;else{this.mh?b.hc(""):b.Ja(0);return}c[0]=b;b.bg=a;b=p();h(d,c,b);e&&(e.get(b),b.xb()&&(m=b.data,
q=a.j));--r;a=q.length;if(m>=a||m<=-a)m%=a;0>m&&(m+=a);f.apply(q[m],c)};b.prototype.yv=function(b){var a=this.se,c=this.Sa,d=this.aa,e=this.vd,f=this.sd,m=this.Gb,g=this.Ia.ye,q=a.U(),G=q.Wb();if(!G.length)if(q.S.length)G=q.S;else{this.mh?b.hc(""):b.Ja(0);return}c[0]=b;b.bg=a;b=p();h(d,c,b);e&&(e.get(b),b.xb()&&(g=b.data,G=a.j));--r;d=G.length;if(g>=d||g<=-d)g%=d;0>g&&(g+=d);g=G[g];G=0;a.K&&(G=g.type.Eg[a.ie]);m.apply(g.R[f+G],c)};b.prototype.Gv=function(b){var a=this.vd,c=this.se,d=this.Us,e=this.Ia.ye,
f=c.U(),m=f.Wb();if(!m.length)if(f.S.length)m=f.S;else{this.mh?b.hc(""):b.Ja(0);return}if(a){f=p();a.get(f);if(f.xb()){e=f.data;m=c.j;0!==m.length&&(e%=m.length,0>e&&(e+=m.length));e=c.Ym(e);c=e.kb[d];u(c)?b.hc(c):b.O(c);--r;return}--r}a=m.length;if(e>=a||e<=-a)e%=a;0>e&&(e+=a);e=m[e];m=0;c.K&&(m=e.type.hk[c.ie]);c=e.kb[d+m];u(c)?b.hc(c):b.O(c)};b.prototype.Hv=function(b){b.type=ec.rg;b.data=this.value};b.prototype.Dv=function(b){b.type=ec.qg;b.data=this.value};b.prototype.Qv=function(b){b.type=ec.String;
b.data=this.value};b.prototype.Tv=function(b){this.first.get(b);b.xb()&&(b.data=-b.data)};b.prototype.sv=function(b){this.first.get(b);var a=p();this.second.get(a);b.xb()&&a.xb()&&(b.data+=a.data,a.Lg()&&b.bh());--r};b.prototype.Rv=function(b){this.first.get(b);var a=p();this.second.get(a);b.xb()&&a.xb()&&(b.data-=a.data,a.Lg()&&b.bh());--r};b.prototype.Lv=function(b){this.first.get(b);var a=p();this.second.get(a);b.xb()&&a.xb()&&(b.data*=a.data,a.Lg()&&b.bh());--r};b.prototype.Av=function(b){this.first.get(b);
var a=p();this.second.get(a);b.xb()&&a.xb()&&(b.data/=a.data,b.bh());--r};b.prototype.Kv=function(b){this.first.get(b);var a=p();this.second.get(a);b.xb()&&a.xb()&&(b.data%=a.data,a.Lg()&&b.bh());--r};b.prototype.Pv=function(b){this.first.get(b);var a=p();this.second.get(a);b.xb()&&a.xb()&&(b.data=Math.pow(b.data,a.data),a.Lg()&&b.bh());--r};b.prototype.tv=function(b){this.first.get(b);var a=p();this.second.get(a);a.Og()||b.Og()?this.vv(b,a):this.uv(b,a);--r};b.prototype.vv=function(b,a){b.Og()&&
a.Og()?this.xv(b,a):this.wv(b,a)};b.prototype.xv=function(b,a){b.data+=a.data};b.prototype.wv=function(b,a){b.Og()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.hc(b.data.toString()+a.data)};b.prototype.uv=function(b,a){b.Ja(b.data&&a.data?1:0)};b.prototype.Ov=function(b){this.first.get(b);var a=p();this.second.get(a);b.xb()&&a.xb()&&(b.data||a.data?b.Ja(1):b.Ja(0));--r};b.prototype.zv=function(b){this.first.get(b);b.data?this.second.get(b):this.Tl.get(b)};b.prototype.Bv=function(b){this.first.get(b);
var a=p();this.second.get(a);b.Ja(b.data===a.data?1:0);--r};b.prototype.Mv=function(b){this.first.get(b);var a=p();this.second.get(a);b.Ja(b.data!==a.data?1:0);--r};b.prototype.Iv=function(b){this.first.get(b);var a=p();this.second.get(a);b.Ja(b.data<a.data?1:0);--r};b.prototype.Jv=function(b){this.first.get(b);var a=p();this.second.get(a);b.Ja(b.data<=a.data?1:0);--r};b.prototype.Ev=function(b){this.first.get(b);var a=p();this.second.get(a);b.Ja(b.data>a.data?1:0);--r};b.prototype.Fv=function(b){this.first.get(b);
var a=p();this.second.get(a);b.Ja(b.data>=a.data?1:0);--r};b.prototype.Cv=function(b){var a=this.Ef.kq();ja(a)?b.O(a):b.hc(a)};bc=b;q.prototype.Lg=function(){return this.type===ec.qg};q.prototype.xb=function(){return this.type===ec.rg||this.type===ec.qg};q.prototype.Og=function(){return this.type===ec.String};q.prototype.bh=function(){this.Lg()||(this.Og()&&(this.data=parseFloat(this.data)),this.type=ec.qg)};q.prototype.Ja=function(b){this.type=ec.rg;this.data=Math.floor(b)};q.prototype.O=function(b){this.type=
ec.qg;this.data=b};q.prototype.hc=function(b){this.type=ec.String;this.data=b};q.prototype.my=function(b){ja(b)?(this.type=ec.qg,this.data=b):u(b)?(this.type=ec.String,this.data=b.toString()):(this.type=ec.rg,this.data=0)};ac=q;ec={rg:0,qg:1,String:2}})();function X(b){this.b=b;this.Ac=[]}
X.prototype.eb=function(){var b={},p,h,q,m,r,l,a,c;b.waits=[];var d=b.waits,e;p=0;for(h=this.Ac.length;p<h;p++){l=this.Ac[p];e={t:l.time,st:l.vs,s:l.Do,ev:l.Bg.ca,sm:[],sols:{}};l.Bg.Vc[l.lc]&&(e.act=l.Bg.Vc[l.lc].ca);q=0;for(m=l.ya.length;q<m;q++)e.sm.push(l.ya[q].ca);for(r in l.ic)if(l.ic.hasOwnProperty(r)){a=this.b.F[parseInt(r,10)];c={sa:l.ic[r].Bl,insts:[]};q=0;for(m=l.ic[r].le.length;q<m;q++)c.insts.push(l.ic[r].le[q].uid);e.sols[a.ca.toString()]=c}d.push(e)}return b};
X.prototype.zb=function(b){b=b.waits;var p,h,q,m,r,l,a,c,d,e,f;Q(this.Ac);p=0;for(h=b.length;p<h;p++)if(l=b[p],c=this.b.Ep[l.ev.toString()]){d=-1;q=0;for(m=c.Vc.length;q<m;q++)if(c.Vc[q].ca===l.act){d=q;break}if(-1!==d){a={ic:{},ya:[],Gm:!1};a.time=l.t;a.vs=l.st||"";a.Do=!!l.s;a.Bg=c;a.lc=d;q=0;for(m=l.sm.length;q<m;q++)(c=this.b.Hg(l.sm[q]))&&a.ya.push(c);for(r in l.sols)if(l.sols.hasOwnProperty(r)&&(c=this.b.Hg(parseInt(r,10)))){d=l.sols[r];e={Bl:d.sa,le:[]};q=0;for(m=d.insts.length;q<m;q++)(f=
this.b.Jf(d.insts[q]))&&e.le.push(f);a.ic[c.index.toString()]=e}this.Ac.push(a)}}};
(function(){function b(){}function p(){}function h(){}var q=X.prototype;b.prototype.nt=function(){return!0};b.prototype.lp=function(){return!0};b.prototype.Ot=function(){return!0};b.prototype.et=function(a,d,e){return fc(a,d,e)};var m=[],r=-1;b.prototype.ot=function(a){var d=a.U();r++;m.length===r&&m.push([]);var e=m[r];Ba(e,d.Wb());var b=this.b.Va(),k=b.Ya,g=b.Uw(),b=this.b.Px(),l,h,p,n,q,L,y=a.qc;if(g)for(g=0,l=e.length;g<l&&!b.Cb;g++){this.b.fj(k.ya);n=e[g];d=a.U();d.V=!1;Q(d.j);d.j[0]=n;if(y)for(h=
0,p=n.siblings.length;h<p;h++)q=n.siblings[h],L=q.type.U(),L.V=!1,Q(L.j),L.j[0]=q;b.index=g;k.so();this.b.ef(k.ya)}else for(d.V=!1,Q(d.j),g=0,l=e.length;g<l&&!b.Cb;g++){n=e[g];d.j[0]=n;if(y)for(h=0,p=n.siblings.length;h<p;h++)q=n.siblings[h],L=q.type.U(),L.V=!1,Q(L.j),L.j[0]=q;b.index=g;k.so()}Q(e);this.b.Hx();r--;return!1};b.prototype.Zt=function(a,d,e,b){var k,g,h,l;if(a){r++;m.length===r&&m.push([]);var p=m[r],n=a.U();Ba(p,n.Wb());n.V&&Q(n.S);var q=this.b.Hf();h=k=0;for(g=p.length;k<g;k++)l=p[k],
p[h]=l,d=q.aa[1].get(k),b=q.aa[3].get(k),fc(d,e,b)?h++:n.S.push(l);Aa(p,h);n.V=!1;Ba(n.j,p);Q(p);r--;a.Wc();return!!n.j.length}};b.prototype.mt=function(a){var d=this.b.Hf(),e=d.H.Every_lastTime||0,b=this.b.mb.ea;"undefined"===typeof d.H.Every_seconds&&(d.H.Every_seconds=a);var m=d.H.Every_seconds;if(b>=e+m)return d.H.Every_lastTime=e+m,b>=d.H.Every_lastTime+.04&&(d.H.Every_lastTime=b),d.H.Every_seconds=a,!0;b<e-.1&&(d.H.Every_lastTime=b);return!1};b.prototype.jt=function(a,d,e){return fc(a.kq(),
d,e)};b.prototype.lt=function(){var a=this.b.Va();return a.Hm?!1:!a.Vf};b.prototype.mp=function(){return!0};b.prototype.Jt=function(){return!0};b.prototype.lm=function(){return!0};b.prototype.qp=function(){return!0};b.prototype.Pt=function(){return!0};b.prototype.Cj=function(){return!0};b.prototype.Zs=function(a,d,e){return Oa(U(a),U(e))<=U(d)};b.prototype.xt=function(a,d){return Qa(U(a),U(d))};b.prototype.ut=function(a,d,e){a=Ka(a);d=Ka(d);e=Ka(e);return Qa(e,d)?Qa(a,d)&&!Qa(a,e):!(!Qa(a,d)&&Qa(a,
e))};q.k=new b;p.prototype.pt=function(a){this.b.Pg||this.b.wf||(this.b.wf=a)};p.prototype.iu=function(a,d){0===a.Vs?ja(d)?a.Gl(d):a.Gl(parseFloat(d)):1===a.Vs&&a.Gl(d.toString())};var l=[],a=[];p.prototype.pu=function(c){if(!(0>c)){var d,e,b,m=this.b.Va(),g;l.length?g=l.pop():g={ic:{},ya:[]};g.Gm=!1;g.time=this.b.mb.ea+c;g.vs="";g.Do=!1;g.Bg=m.Ya;g.lc=m.lc+1;c=0;for(d=this.b.F.length;c<d;c++)b=this.b.F[c],e=b.U(),e.V&&-1===m.Ya.ya.indexOf(b)||(g.ya.push(b),b=void 0,a.length?b=a.pop():b={le:[]},b.Bl=
!1,b.Bl=e.V,Ba(b.le,e.j),g.ic[c.toString()]=b);this.Ac.push(g);return!0}};p.prototype.qt=function(a){if(!this.b.Pg&&!this.b.wf)for(var d in this.b.Yg)if(this.b.Yg.hasOwnProperty(d)&&nb(d,a)){this.b.wf=this.b.Yg[d];break}};q.I=new p;h.prototype["int"]=function(a,d){u(d)?(a.Ja(parseInt(d,10)),isNaN(a.data)&&(a.data=0)):a.Ja(d)};h.prototype["float"]=function(a,d){u(d)?(a.O(parseFloat(d)),isNaN(a.data)&&(a.data=0)):a.O(d)};h.prototype.random=function(a,d,e){void 0===e?a.O(Math.random()*d):a.O(Math.random()*
(e-d)+d)};h.prototype.sqrt=function(a,d){a.O(Math.sqrt(d))};h.prototype.abs=function(a,d){a.O(Math.abs(d))};h.prototype.round=function(a,d){a.Ja(Math.round(d))};h.prototype.floor=function(a,d){a.Ja(Math.floor(d))};h.prototype.ceil=function(a,d){a.Ja(Math.ceil(d))};h.prototype.sin=function(a,d){a.O(Math.sin(U(d)))};h.prototype.cos=function(a,d){a.O(Math.cos(U(d)))};h.prototype.tan=function(a,d){a.O(Math.tan(U(d)))};h.prototype.asin=function(a,d){a.O(Ga(Math.asin(d)))};h.prototype.acos=function(a,d){a.O(Ga(Math.acos(d)))};
h.prototype.atan=function(a,d){a.O(Ga(Math.atan(d)))};h.prototype.exp=function(a,d){a.O(Math.exp(d))};h.prototype.log10=function(a,d){a.O(Math.log(d)/Math.LN10)};h.prototype.max=function(a){var d=arguments[1];"number"!==typeof d&&(d=0);var e,b,m;e=2;for(b=arguments.length;e<b;e++)m=arguments[e],"number"===typeof m&&d<m&&(d=m);a.O(d)};h.prototype.min=function(a){var d=arguments[1];"number"!==typeof d&&(d=0);var e,b,m;e=2;for(b=arguments.length;e<b;e++)m=arguments[e],"number"===typeof m&&d>m&&(d=m);
a.O(d)};h.prototype.Af=function(a){a.O(this.b.Af)};h.prototype.yh=function(a){a.O(this.b.yh)};h.prototype.time=function(a){a.O(this.b.mb.ea)};h.prototype.$d=function(a){a.Ja(this.b.$d)};h.prototype.dl=function(a){a.Ja(this.b.dl)};h.prototype.Pm=function(a){a.Ja(this.b.Pm)};h.prototype.m=function(a,d,e,b,m){a.O(Ga(Na(d,e,b,m)))};h.prototype.left=function(a,d,e){a.hc(u(d)?d.substr(0,e):"")};h.prototype.right=function(a,d,e){a.hc(u(d)?d.substr(d.length-e):"")};h.prototype.replace=function(a,d,e,b){u(d)&&
u(e)&&u(b)?a.hc(d.replace(new RegExp(gb(e),"gi"),b)):a.hc(u(d)?d:"")};h.prototype.trim=function(a,d){a.hc(u(d)?d.trim():"")};h.prototype.ax=function(a){this.b.xa?a.hc(this.b.xa.name):a.hc("")};h.prototype.Hu=function(a){var d=P(Math.random()*(arguments.length-1));a.my(arguments[d+1])};h.prototype.Am=function(a){a.O(this.b.Am/1E3)};h.prototype.$g=function(a){a.O(this.b.$g)};q.La=new h;q.Yx=function(){var c,d,e,b,m,g,h=this.b.Va();c=0;for(e=this.Ac.length;c<e;c++){b=this.Ac[c];if(-1===b.time){if(!b.Do)continue}else if(b.time>
this.b.mb.ea)continue;h.Ya=b.Bg;h.lc=b.lc;h.Xa=0;for(d in b.ic)b.ic.hasOwnProperty(d)&&(m=this.b.F[parseInt(d,10)].U(),g=b.ic[d],m.V=g.Bl,Ba(m.j,g.le),m=g,Q(m.le),a.push(m));b.Bg.Xx();this.b.xm(b.ya);b.Gm=!0}d=c=0;for(e=this.Ac.length;c<e;c++)b=this.Ac[c],this.Ac[d]=b,b.Gm?(ab(b.ic),Q(b.ya),l.push(b)):d++;Aa(this.Ac,d)}})();
(function(){rb=function(b,h){var q=b[1],m=b[3],r=b[4],l=b[5],a=b[6],c=b[7],d=b[8];h.k||(h.k={});h.I||(h.I={});h.La||(h.La={});var e=h.k,f=h.I,k=h.La;m&&(e.Qy=function(a,c){return fc(this.x,a,c)},e.bp=function(a,c){return fc(this.y,a,c)},e.Vy=function(){var a=this.n;this.za();var c=this.Da;return!(c.right<a.ua||c.bottom<a.wa||c.left>a.Ca||c.top>a.Ba)},e.Wy=function(){this.za();var a=this.Da,c=this.b.xa;return 0>a.right||0>a.bottom||a.left>c.width||a.top>c.height},e.fz=function(a,c,d){var e=this.U(),
b=e.Wb();if(!b.length)return!1;var f=b[0],m=f,h=Ta(f.x,f.y,c,d),l,k,r;l=1;for(k=b.length;l<k;l++)if(f=b[l],r=Ta(f.x,f.y,c,d),0===a&&r<h||1===a&&r>h)h=r,m=f;e.$i(m);return!0},f.vz=function(a){this.x!==a&&(this.x=a,this.D())},f.wz=function(a){this.y!==a&&(this.y=a,this.D())},f.gu=function(a,c){if(this.x!==a||this.y!==c)this.x=a,this.y=c,this.D()},f.hu=function(a,c){var d=a.ow(this);if(d){var e;d.Vh?(e=d.Vh(c,!0),d=d.Vh(c,!1)):(e=d.x,d=d.y);if(this.x!==e||this.y!==d)this.x=e,this.y=d,this.D()}},f.$y=
function(a){0!==a&&(this.x+=Math.cos(this.m)*a,this.y+=Math.sin(this.m)*a,this.D())},f.Zy=function(a,c){0!==c&&(this.x+=Math.cos(U(a))*c,this.y+=Math.sin(U(a))*c,this.D())},k.vp=function(a){a.O(this.x)},k.wp=function(a){a.O(this.y)},k.Af=function(a){a.O(this.b.ke(this))});r&&(e.Py=function(a,c){return fc(this.width,a,c)},e.Ny=function(a,c){return fc(this.height,a,c)},f.lu=function(a){this.width!==a&&(this.width=a,this.D())},f.pz=function(a){this.height!==a&&(this.height=a,this.D())},f.sz=function(a,
c){if(this.width!==a||this.height!==c)this.width=a,this.height=c,this.D()},k.Az=function(a){a.O(this.width)},k.Sy=function(a){a.O(this.height)},k.Jy=function(a){this.za();a.O(this.Da.left)},k.Ly=function(a){this.za();a.O(this.Da.top)},k.Ky=function(a){this.za();a.O(this.Da.right)},k.Iy=function(a){this.za();a.O(this.Da.bottom)});l&&(e.Zs=function(a,c){return Oa(this.m,U(c))<=U(a)},e.xt=function(a){return Qa(this.m,U(a))},e.ut=function(a,c){var d=Ka(a),e=Ka(c),b=Ia(this.m);return Qa(e,d)?Qa(b,d)&&
!Qa(b,e):!(!Qa(b,d)&&Qa(b,e))},f.bu=function(a){a=U(Ha(a));isNaN(a)||this.m===a||(this.m=a,this.D())},f.jz=function(a){0===a||isNaN(a)||(this.m+=U(a),this.m=Ia(this.m),this.D())},f.kz=function(a){0===a||isNaN(a)||(this.m-=U(a),this.m=Ia(this.m),this.D())},f.lz=function(a,c){var d=Pa(this.m,U(c),U(a));isNaN(d)||this.m===d||(this.m=d,this.D())},f.mz=function(a,c,d){a=Pa(this.m,Math.atan2(d-this.y,c-this.x),U(a));isNaN(a)||this.m===a||(this.m=a,this.D())},f.uz=function(a,c){var d=Math.atan2(c-this.y,
a-this.x);isNaN(d)||this.m===d||(this.m=d,this.D())},k.Ys=function(a){a.O(Ja(this.m))});q||(e.ht=function(a,c,d){return fc(this.kb[a],c,d)},e.wt=function(a){return this.kb[a]},e.gz=function(a,c){var d=this.U(),e=d.Wb();if(!e.length)return!1;var b=e[0],f=b,m=b.kb[c],h,l,k;h=1;for(l=e.length;h<l;h++)if(b=e[h],k=b.kb[c],0===a&&k<m||1===a&&k>m)m=k,f=b;d.$i(f);return!0},e.ez=function(a){var c,d,e,b,f;if(this.b.Hf().gi){f=this.U();if(f.V)for(f.V=!1,Q(f.j),Q(f.S),e=this.j,c=0,d=e.length;c<d;c++)b=e[c],b.uid===
a?f.S.push(b):f.j.push(b);else{e=c=0;for(d=f.j.length;c<d;c++)b=f.j[c],f.j[e]=b,b.uid===a?f.S.push(b):e++;Aa(f.j,e)}this.Wc();return!!f.j.length}b=this.b.Jf(a);if(!b)return!1;f=this.U();if(!f.V&&-1===f.j.indexOf(b))return!1;if(this.K)for(a=b.type.Na,c=0,d=a.length;c<d;c++){if(a[c]===this)return f.$i(b),this.Wc(),!0}else if(b.type===this)return f.$i(b),this.Wc(),!0;return!1},e.Fh=function(){return!0},e.Lt=function(){return!0},f.qz=function(a,c){var d=this.kb;ja(d[a])?d[a]=ja(c)?c:parseFloat(c):u(d[a])&&
(d[a]=u(c)?c:c.toString())},f.Hy=function(a,c){var d=this.kb;ja(d[a])?d[a]=ja(c)?d[a]+c:d[a]+parseFloat(c):u(d[a])&&(d[a]=u(c)?d[a]+c:d[a]+c.toString())},f.xz=function(a,c){var d=this.kb;ja(d[a])&&(d[a]=ja(c)?d[a]-c:d[a]-parseFloat(c))},f.eu=function(a,c){this.kb[a]=c?1:0},f.yz=function(a){this.kb[a]=1-this.kb[a]},f.kt=function(){this.b.Ge(this)},f.Ct||(f.Ct=function(a){var c,d;try{c=JSON.parse(a)}catch(e){return}this.b.Sk(this,c,!0);this.od&&this.od();if(this.R)for(a=0,c=this.R.length;a<c;++a)d=
this.R[a],d.od&&d.od()}),k.Ry=function(a){var c=a.bg.j.length,d,e,b;d=0;for(e=this.b.td.length;d<e;d++)b=this.b.td[d],a.bg.K?0<=b.type.Na.indexOf(a.bg)&&c++:b.type===a.bg&&c++;a.Ja(c)},k.iz=function(a){a.Ja(a.bg.U().Wb().length)},k.zz=function(a){a.Ja(this.uid)},k.Ty=function(a){a.Ja(this.Zh())},k.$s||(k.$s=function(a){a.hc(JSON.stringify(this.b.xo(this,!0)))}));a&&(e.At=function(){return this.visible},f.ku=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.Aa=!0)},e.Oy=function(a,c){return fc(mb(100*
this.opacity),a,c)},f.rz=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.Aa=!0)},k.Opacity=function(a){a.O(mb(100*this.opacity))});c&&(e.Uy=function(a){return a?this.n===a:!1},e.hz=function(a){var c=this.U(),d=c.Wb();if(!d.length)return!1;var e=d[0],b=e,f,m;f=1;for(m=d.length;f<m;f++)if(e=d[f],0===a){if(e.n.index>b.n.index||e.n.index===b.n.index&&e.Rd()>b.Rd())b=e}else if(e.n.index<b.n.index||e.n.index===b.n.index&&e.Rd()<b.Rd())b=e;c.$i(b);return!0},f.bz=function(){var a=
this.n,c=a.j;c.length&&c[c.length-1]===this||(a.lh(this,!1),a.Jh(this,!1),this.b.Aa=!0)},f.Dt=function(){var a=this.n,c=a.j;c.length&&c[0]===this||(a.lh(this,!1),a.Lx(this),this.b.Aa=!0)},f.az=function(a){a&&a!=this.n&&(this.n.lh(this,!0),this.n=a,a.Jh(this,!0),this.b.Aa=!0)},f.Cz=function(a,c){var d=0===a;if(c){var e=c.hw(this);e&&e.uid!==this.uid&&(this.n.index!==e.n.index&&(this.n.lh(this,!0),this.n=e.n,e.n.Jh(this,!0)),this.n.mx(this,e,d),this.b.Aa=!0)}},k.Yy=function(a){a.Ja(this.n.rr)},k.Xy=
function(a){a.hc(this.n.name)},k.Bz=function(a){a.Ja(this.Rd())});d&&(f.nz=function(a,c){if(this.b.C){var d=this.type.Xm(c);if(!(0>d)){var e=1===a;this.Ie[d]!==e&&(this.Ie[d]=e,this.Hd(),this.b.Aa=!0)}}},f.oz=function(a,c,d){if(this.b.C){var e=this.type.Xm(a);0>e||(a=this.type.X[e],e=this.Ra[e],c=Math.floor(c),0>c||c>=e.length||(1===this.b.C.sw(a.fb,c)&&(d/=100),e[c]!==d&&(e[c]=d,a.Pa&&(this.b.Aa=!0))))}})};Lb=function(){this.um=this.Oj=!0;this.type.Hj=!0;this.b.Aa=!0;var b,h,q=this.pm;b=0;for(h=
q.length;b<h;++b)q[b](this);this.n.Uc&&this.za()};Mb=function(b){b&&this.pm.push(b)};Ob=function(){if(this.Oj){var b=this.Da,h=this.Db;b.set(this.x,this.y,this.x+this.width,this.y+this.height);b.offset(-this.oc*this.width,-this.pc*this.height);this.m?(b.offset(-this.x,-this.y),h.os(b,this.m),h.offset(this.x,this.y),h.Fp(b)):h.kg(b);b.normalize();this.Oj=!1;this.Ss()}};var b=new va(0,0,0,0);Pb=function(){if(this.n.Uc){var p=this.n.Mb,h=this.Da;b.set(p.jc(h.left),p.kc(h.top),p.jc(h.right),p.kc(h.bottom));
this.vc.Rh(b)||(this.vc.right<this.vc.left?p.update(this,null,b):p.update(this,this.vc,b),this.vc.wg(b),this.n.Cd=!0)}};Qb=function(){if(this.um&&this.Nd){this.za();var p=this.type.Uj,h=this.Da;b.set(p.jc(h.left),p.kc(h.top),p.jc(h.right),p.kc(h.bottom));this.Ne.Rh(b)||(this.Ne.right<this.Ne.left?p.update(this,null,b):p.update(this,this.Ne,b),this.Ne.wg(b),this.um=!1)}};Nb=function(b,h){return this.Da.tb(b,h)&&this.Db.tb(b,h)?this.ka&&!this.ka.Rf()?(this.ka.uf(this.width,this.height,this.m),this.ka.tb(b-
this.x,h-this.y)):!0:!1};Hb=function(){this.type.Zl();return this.Mf};Rb=function(){this.n.So();return this.Jd};Sb=function(){Q(this.qa);var b,h,q,m=!0;b=0;for(h=this.Ie.length;b<h;b++)this.Ie[b]&&(q=this.type.X[b],this.qa.push(q),q.Ad||(m=!1));this.Ts=!!this.qa.length;this.xe=m};Ib=function(){return"Inst"+this.Ur};ub=function(b){if(b&&b.qc&&b.type!=this){var h,q,m;h=0;for(q=b.siblings.length;h<q;h++)if(m=b.siblings[h],m.type==this)return m}b=this.U().Wb();return b.length?b[0]:null};vb=function(b){var h=
this.U().Wb();return h.length?h[b.Zh()%h.length]:null};tb=function(){if(this.rh&&!this.K){var b,h;b=0;for(h=this.j.length;b<h;b++)this.j[b].Mf=b;var q=b,m=this.b.td;b=0;for(h=m.length;b<h;++b)m[b].type===this&&(m[b].Mf=q++);this.rh=!1}};Fb=function(b){if(b<this.j.length)return this.j[b];b-=this.j.length;var h=this.b.td,q,m;q=0;for(m=h.length;q<m;++q)if(h[q].type===this){if(0===b)return h[q];--b}return null};wb=function(){return this.ze[this.Od]};xb=function(){this.Od++;this.Od===this.ze.length?this.ze.push(new sb(this)):
(this.ze[this.Od].V=!0,Q(this.ze[this.Od].S))};yb=function(){this.Od++;this.Od===this.ze.length&&this.ze.push(new sb(this));var b=this.ze[this.Od],h=this.ze[this.Od-1];h.V?(b.V=!0,Q(b.S)):(b.V=!1,Ba(b.j,h.j),Ba(b.S,h.S))};zb=function(){this.Od--};Ab=function(b){var h,q,m,r,l,a=0;if(!this.K)for(h=0,q=this.Na.length;h<q;h++)for(l=this.Na[h],m=0,r=l.Qa.length;m<r;m++){if(b===l.Qa[m].name)return this.H.lastBehIndex=a,l.Qa[m];a++}h=0;for(q=this.Qa.length;h<q;h++){if(b===this.Qa[h].name)return this.H.lastBehIndex=
a,this.Qa[h];a++}return null};Bb=function(b){return this.tk(b)?this.H.lastBehIndex:-1};Cb=function(b){var h,q;h=0;for(q=this.X.length;h<q;h++)if(this.X[h].name===b)return h;return-1};Db=function(){if(this.qc&&!this.K){var b,h,q,m,r,l,a;this.Zl();l=this.U();var c=l.V,d=(b=this.b.Va())&&b.Ya&&b.Ya.Qc;b=0;for(h=this.Cc.length;b<h;b++)if(r=this.Cc[b],r!==this&&(r.Zl(),a=r.U(),a.V=c,!c)){Q(a.j);q=0;for(m=l.j.length;q<m;++q)a.j[q]=r.Ym(l.j[q].Mf);if(d)for(Q(a.S),q=0,m=l.S.length;q<m;++q)a.S[q]=r.Ym(l.S[q].Mf)}}};
Gb=function(){return"Type"+this.ca};fc=function(b,h,q){if("undefined"===typeof b||"undefined"===typeof q)return!1;switch(h){case 0:return b===q;case 1:return b!==q;case 2:return b<q;case 3:return b<=q;case 4:return b>q;case 5:return b>=q;default:return!1}}})();var oc={};function sc(b){this.b=b}
(function(){function b(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function p(a){a=a.toLowerCase();return W.hasOwnProperty(a)&&W[a].length?W[a][0].Nc():A.destination}function h(){return A.createGain?A.createGain():A.createGainNode()}function q(a){return A.createDelay?A.createDelay(a):A.createDelayNode(a)}function m(a,c){a.start?a.start(c||0):a.noteOn(c||0)}function r(a,c,d,e){a.start?a.start(e||0,c):a.noteGrainOn(e||0,c,d-c)}function l(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(c){}}
function a(a,c,d,e,b,f){this.type="filter";this.zd=[a,c,d,e,b,f];this.ma=h();this.W=h();this.W.gain.value=f;this.T=h();this.T.gain.value=1-f;this.Za=A.createBiquadFilter();this.Za.type="number"===typeof this.Za.type?a:Fc[a];this.Za.frequency.value=c;this.Za.detune&&(this.Za.detune.value=d);this.Za.Q.value=e;this.Za.gain.value=b;this.ma.connect(this.Za);this.ma.connect(this.T);this.Za.connect(this.W)}function c(a,c,d){this.type="delay";this.zd=[a,c,d];this.ma=h();this.W=h();this.W.gain.value=d;this.T=
h();this.T.gain.value=1-d;this.Qi=h();this.$c=q(a);this.$c.delayTime.value=a;this.bk=h();this.bk.gain.value=c;this.ma.connect(this.Qi);this.ma.connect(this.T);this.Qi.connect(this.W);this.Qi.connect(this.$c);this.$c.connect(this.bk);this.bk.connect(this.Qi)}function d(a,c,d,e){this.type="convolve";this.zd=[c,d,e];this.ma=h();this.W=h();this.W.gain.value=d;this.T=h();this.T.gain.value=1-d;this.xf=A.createConvolver();a&&(this.xf.normalize=c,this.xf.buffer=a);this.ma.connect(this.xf);this.ma.connect(this.T);
this.xf.connect(this.W)}function e(a,c,d,e,b){this.type="flanger";this.zd=[a,c,d,e,b];this.ma=h();this.T=h();this.T.gain.value=1-b/2;this.W=h();this.W.gain.value=b/2;this.ik=h();this.ik.gain.value=e;this.$c=q(a+c);this.$c.delayTime.value=a;this.Bb=A.createOscillator();this.Bb.frequency.value=d;this.Ic=h();this.Ic.gain.value=c;this.ma.connect(this.$c);this.ma.connect(this.T);this.$c.connect(this.W);this.$c.connect(this.ik);this.ik.connect(this.$c);this.Bb.connect(this.Ic);this.Ic.connect(this.$c.delayTime);
m(this.Bb)}function f(a,c,d,e,b,f){this.type="phaser";this.zd=[a,c,d,e,b,f];this.ma=h();this.T=h();this.T.gain.value=1-f/2;this.W=h();this.W.gain.value=f/2;this.Za=A.createBiquadFilter();this.Za.type="number"===typeof this.Za.type?7:"allpass";this.Za.frequency.value=a;this.Za.detune&&(this.Za.detune.value=c);this.Za.Q.value=d;this.Bb=A.createOscillator();this.Bb.frequency.value=b;this.Ic=h();this.Ic.gain.value=e;this.ma.connect(this.Za);this.ma.connect(this.T);this.Za.connect(this.W);this.Bb.connect(this.Ic);
this.Ic.connect(this.Za.frequency);m(this.Bb)}function k(a){this.type="gain";this.zd=[a];this.na=h();this.na.gain.value=a}function g(a,c){this.type="tremolo";this.zd=[a,c];this.na=h();this.na.gain.value=1-c/2;this.Bb=A.createOscillator();this.Bb.frequency.value=a;this.Ic=h();this.Ic.gain.value=c/2;this.Bb.connect(this.Ic);this.Ic.connect(this.na.gain);m(this.Bb)}function J(a,c){this.type="ringmod";this.zd=[a,c];this.ma=h();this.W=h();this.W.gain.value=c;this.T=h();this.T.gain.value=1-c;this.jj=h();
this.jj.gain.value=0;this.Bb=A.createOscillator();this.Bb.frequency.value=a;this.Bb.connect(this.jj.gain);m(this.Bb);this.ma.connect(this.jj);this.ma.connect(this.T);this.jj.connect(this.W)}function G(a,c,d,e,b){this.type="distortion";this.zd=[a,c,d,e,b];this.ma=h();this.ol=h();this.nl=h();this.fy(d,Math.pow(10,e/20));this.W=h();this.W.gain.value=b;this.T=h();this.T.gain.value=1-b;this.gm=A.createWaveShaper();this.$j=new Float32Array(65536);this.aw(a,c);this.gm.$j=this.$j;this.ma.connect(this.ol);
this.ma.connect(this.T);this.ol.connect(this.gm);this.gm.connect(this.nl);this.nl.connect(this.W)}function D(a,c,d,e,b){this.type="compressor";this.zd=[a,c,d,e,b];this.na=A.createDynamicsCompressor();try{this.na.threshold.value=a,this.na.knee.value=c,this.na.ratio.value=d,this.na.attack.value=e,this.na.release.value=b}catch(f){}}function n(a,c){this.type="analyser";this.zd=[a,c];this.na=A.createAnalyser();this.na.fftSize=a;this.na.smoothingTimeConstant=c;this.Zv=new Float32Array(this.na.frequencyBinCount);
this.ts=new Uint8Array(a);this.Zi=0}function B(){this.ta=null;this.Tk=0}function L(a,c){this.src=a;this.da=K;this.cd=c;this.Gj=!1;var d=this;this.Tn=this.ao=null;this.hh=[];this.Cl=0;this.Xo=this.gk=this.ys=this.jl=!1;1===K&&c&&!Ya&&(this.da=0,this.ao=h());this.be=this.ra=null;var e;switch(this.da){case 0:this.ra=new Audio;this.ra.crossOrigin="anonymous";this.ra.addEventListener("canplaythrough",function(){d.Xo=!0});1===K&&A.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.ys=!0,
this.ra.addEventListener("canplay",function(){d.Tn||(d.Tn=A.createMediaElementSource(d.ra),d.Tn.connect(d.ao))}));this.ra.autoplay=!1;this.ra.Hz="auto";this.ra.src=a;break;case 1:C.qi?C.Zp(a,function(a){d.be=a;d.Qp()},function(){d.gk=!0}):(e=new XMLHttpRequest,e.open("GET",a,!0),e.responseType="arraybuffer",e.onload=function(){d.be=e.response;d.Qp()},e.onerror=function(){d.gk=!0},e.send());break;case 2:this.ra=!0;break;case 3:this.ra=!0}}function y(a,c){var d=this;this.tag=c;this.Cb=this.Qd=!0;this.src=
a.src;this.buffer=a;this.da=K;this.cd=a.cd;this.playbackRate=1;this.Jg=!0;this.Ec=this.Sc=!1;this.wc=0;this.si=this.Mg=this.Sd=!1;this.volume=1;this.Zn=function(a){if(!d.Ec&&!d.Sc){var c=this;c||(c=a.target);c===d.Ej&&(d.Jg=!0,d.Cb=!0,ca=d.tag,C.trigger(sc.prototype.k.Bj,M))}};this.Ej=null;this.Kg=1===t&&!this.cd||2===t;this.eh=1;this.startTime=this.Kg?C.mb.ea:C.De.ea;this.ab=this.ib=null;this.Ud=!1;this.Jb=null;this.Ir=this.Hr=this.Gr=this.Fr=this.Kr=this.Jr=0;this.q=null;var e=!1;1!==this.da||0!==
this.buffer.da||this.buffer.ys||(this.da=0);switch(this.da){case 0:this.cd?(this.q=a.ra,e=!a.Gj,a.Gj=!0):(this.q=new Audio,this.q.crossOrigin="anonymous",this.q.autoplay=!1,this.q.src=a.ra.src,e=!0);e&&this.q.addEventListener("ended",function(){ca=d.tag;d.Cb=!0;C.trigger(sc.prototype.k.Bj,M)});break;case 1:this.ib=h();this.ib.connect(p(c));1===this.buffer.da?a.ra&&(this.q=A.createBufferSource(),this.q.buffer=a.ra,this.q.connect(this.ib)):(this.q=this.buffer.ra,this.buffer.ao.connect(this.ib),this.buffer.Gj||
(this.buffer.Gj=!0,this.buffer.ra.addEventListener("ended",function(){ca=d.tag;d.Cb=!0;C.trigger(sc.prototype.k.Bj,M)})));break;case 2:this.q=new window.Media(R+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.Jg=!0,d.Cb=!0,ca=d.tag,C.trigger(sc.prototype.k.Bj,M))});break;case 3:this.q=!0}}function z(a,c){W.hasOwnProperty(a)?W[a].push(c):W[a]=[c];var d,e,b,f,g=A.destination;if(W.hasOwnProperty(a)&&(b=W[a],b.length))for(g=b[0].Nc(),d=0,e=b.length;d<e;d++)f=b[d],d+1===e?f.Yc(A.destination):
f.Yc(b[d+1].Nc());Q(Sa);if(a.length)for(d=0,e=O.length;d<e;d++)b=O[d],nb(a,b.tag)&&Sa.push(b);else ga&&!ga.Lf()&&(Q(Sa),Sa[0]=ga);d=0;for(e=Sa.length;d<e;d++)Sa[d].Rx(g);La&&Eb===a&&(La.disconnect(),La.connect(g))}function E(){}function F(){}var w=sc.prototype;w.ja=function(a){this.Fa=a;this.b=a.b};w.ja.prototype.L=function(){};var C=null,M=null,ca="",R="",K=0,A=null,N=[],O=[],ga=null,v=!1,t=0,x=!1,S=1,I=0,H=0,V=!1,sa=1,T=1,xa=10,ma=1E4,Ma=1,La=null,Eb="",Wa=!1,Xa=[],Ya=!1,W={},Fc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");
a.prototype.Yc=function(a){this.W.disconnect();this.W.connect(a);this.T.disconnect();this.T.connect(a)};a.prototype.remove=function(){this.ma.disconnect();this.Za.disconnect();this.W.disconnect();this.T.disconnect()};a.prototype.Nc=function(){return this.ma};c.prototype.Yc=function(a){this.W.disconnect();this.W.connect(a);this.T.disconnect();this.T.connect(a)};c.prototype.remove=function(){this.ma.disconnect();this.Qi.disconnect();this.$c.disconnect();this.bk.disconnect();this.W.disconnect();this.T.disconnect()};
c.prototype.Nc=function(){return this.ma};d.prototype.Yc=function(a){this.W.disconnect();this.W.connect(a);this.T.disconnect();this.T.connect(a)};d.prototype.remove=function(){this.ma.disconnect();this.xf.disconnect();this.W.disconnect();this.T.disconnect()};d.prototype.Nc=function(){return this.ma};e.prototype.Yc=function(a){this.T.disconnect();this.T.connect(a);this.W.disconnect();this.W.connect(a)};e.prototype.remove=function(){this.ma.disconnect();this.$c.disconnect();this.Bb.disconnect();this.Ic.disconnect();
this.T.disconnect();this.W.disconnect();this.ik.disconnect()};e.prototype.Nc=function(){return this.ma};f.prototype.Yc=function(a){this.T.disconnect();this.T.connect(a);this.W.disconnect();this.W.connect(a)};f.prototype.remove=function(){this.ma.disconnect();this.Za.disconnect();this.Bb.disconnect();this.Ic.disconnect();this.T.disconnect();this.W.disconnect()};f.prototype.Nc=function(){return this.ma};k.prototype.Yc=function(a){this.na.disconnect();this.na.connect(a)};k.prototype.remove=function(){this.na.disconnect()};
k.prototype.Nc=function(){return this.na};g.prototype.Yc=function(a){this.na.disconnect();this.na.connect(a)};g.prototype.remove=function(){this.Bb.disconnect();this.Ic.disconnect();this.na.disconnect()};g.prototype.Nc=function(){return this.na};J.prototype.Yc=function(a){this.W.disconnect();this.W.connect(a);this.T.disconnect();this.T.connect(a)};J.prototype.remove=function(){this.Bb.disconnect();this.jj.disconnect();this.ma.disconnect();this.W.disconnect();this.T.disconnect()};J.prototype.Nc=function(){return this.ma};
G.prototype.fy=function(a,c){.01>a&&(a=.01);this.ol.gain.value=a;this.nl.gain.value=Math.pow(1/a,.6)*c};G.prototype.shape=function(a,c,d){var e=1.05*d*c-c;d=0>a?-1:1;a=0>a?-a:a;c=a<c?a:c+e*(1-Math.exp(-(1/e)*(a-c)));return c*d};G.prototype.aw=function(a,c){for(var d=Math.pow(10,a/20),e=Math.pow(10,c/20),b=0,f=0;32768>f;++f)b=f/32768,b=this.shape(b,d,e),this.$j[32768+f]=b,this.$j[32768-f-1]=-b};G.prototype.Yc=function(a){this.W.disconnect();this.W.connect(a);this.T.disconnect();this.T.connect(a)};
G.prototype.remove=function(){this.ma.disconnect();this.ol.disconnect();this.gm.disconnect();this.nl.disconnect();this.W.disconnect();this.T.disconnect()};G.prototype.Nc=function(){return this.ma};D.prototype.Yc=function(a){this.na.disconnect();this.na.connect(a)};D.prototype.remove=function(){this.na.disconnect()};D.prototype.Nc=function(){return this.na};n.prototype.Ea=function(){this.na.getFloatFrequencyData(this.Zv);this.na.getByteTimeDomainData(this.ts);for(var a=this.na.fftSize,c=0,d=this.Zi=
0,e=0;c<a;c++)e=(this.ts[c]-128)/128,0>e&&(e=-e),this.Zi<e&&(this.Zi=e),d+=e*e;this.Zi=b(this.Zi);b(Math.sqrt(d/a))};n.prototype.Yc=function(a){this.na.disconnect();this.na.connect(a)};n.prototype.remove=function(){this.na.disconnect()};n.prototype.Nc=function(){return this.na};B.prototype.kj=function(a){this.ta=a};B.prototype.Ak=function(){return!!this.ta};B.prototype.Ea=function(){};var qb=!1;L.prototype.Sx=function(){var a,c,d,e;d=a=0;for(c=O.length;a<c;++a)e=O[a],O[d]=e,e.buffer===this?e.stop():
++d;O.length=d;this.be=this.ra=null};L.prototype.Qp=function(){if(!this.ra&&this.be){var a=this;if(A.decodeAudioData)A.decodeAudioData(this.be,function(c){a.ra=c;a.be=null;var d,e,b;if(ia(a.kl)||x)ia(a.Wj)||(d=a.Wj.xf,d.normalize=a.qr,d.buffer=c);else if(a.hh.length){d=0;for(e=a.hh.length;d<e;d++){c=a.hh[d];b=new y(a,c.Es);b.Bo(!0);if("undefined"!==typeof c.sr&&(c.ta=C.Jf(c.sr),!c.ta))continue;if(c.ta){var f=Ra(c.ta.x,c.ta.y,-c.ta.n.Ua(),I,H,!0),g=Ra(c.ta.x,c.ta.y,-c.ta.n.Ua(),I,H,!1);b.Ao(f,g,Ga(c.ta.m-
c.ta.n.Ua()),c.ln,c.Un,c.Wn);b.kj(c.ta)}else b.Ao(c.x,c.y,c.su,c.ln,c.Un,c.Wn);b.play(a.Pn,a.Vo,a.Cl);a.jl&&b.pause();O.push(b)}Q(a.hh)}else b=new y(a,a.kl||""),b.play(a.Pn,a.Vo,a.Cl),a.jl&&b.pause(),O.push(b)},function(){a.gk=!0});else if(this.ra=A.createBuffer(this.be,!1),this.be=null,ia(this.kl)||x)ia(this.Wj)||(c=this.Wj.xf,c.normalize=this.qr,c.buffer=this.ra);else{var c=new y(this,this.kl);c.play(this.Pn,this.Vo,this.Cl);this.jl&&c.pause();O.push(c)}}};L.prototype.Bq=function(){switch(this.da){case 0:var a=
4<=this.ra.readyState;a&&(this.Xo=!0);return a||this.Xo;case 1:return!!this.be||!!this.ra;case 2:return!0;case 3:return!0}return!1};L.prototype.Cq=function(){switch(this.da){case 0:return this.Bq();case 1:return!!this.ra;case 2:return!0;case 3:return!0}return!1};L.prototype.mq=function(){switch(this.da){case 0:return!!this.ra.error;case 1:return this.gk}return!1};y.prototype.Lf=function(){switch(this.da){case 0:return this.q.ended;case 1:return 1===this.buffer.da?!this.Qd&&!this.Cb&&this.q.loop||
this.Ec?!1:this.Jg:this.q.ended;case 2:return this.Jg;case 3:!0}return!0};y.prototype.Fu=function(){return this.Qd||this.Cb?!0:this.Lf()};y.prototype.Bo=function(a){1===K&&(!this.Ud&&a?this.ib&&(this.ab||(this.ab=A.createPanner(),this.ab.panningModel="number"===typeof this.ab.panningModel?sa:["equalpower","HRTF","soundfield"][sa],this.ab.distanceModel="number"===typeof this.ab.distanceModel?T:["linear","inverse","exponential"][T],this.ab.refDistance=xa,this.ab.maxDistance=ma,this.ab.rolloffFactor=
Ma),this.ib.disconnect(),this.ib.connect(this.ab),this.ab.connect(p(this.tag)),this.Ud=!0):this.Ud&&!a&&this.ib&&(this.ab.disconnect(),this.ib.disconnect(),this.ib.connect(p(this.tag)),this.Ud=!1))};y.prototype.Ao=function(a,c,d,e,b,f){this.Ud&&1===K&&(this.ab.setPosition(a,c,0),this.ab.setOrientation(Math.cos(U(d)),Math.sin(U(d)),0),this.ab.coneInnerAngle=e,this.ab.coneOuterAngle=b,this.ab.coneOuterGain=f,this.Jr=a,this.Kr=c,this.Fr=d,this.Gr=e,this.Hr=b,this.Ir=f)};y.prototype.kj=function(a){this.Ud&&
1===K&&(this.Jb||(this.Jb=new B),this.Jb.kj(a))};y.prototype.Ea=function(a){if(this.Ud&&1===K&&this.Jb&&this.Jb.Ak()&&this.ni()){this.Jb.Ea(a);a=this.Jb.ta;var c=Ra(a.x,a.y,-a.n.Ua(),I,H,!0),d=Ra(a.x,a.y,-a.n.Ua(),I,H,!1);this.ab.setPosition(c,d,0);c=0;"undefined"!==typeof this.Jb.ta.m&&(c=a.m-a.n.Ua(),this.ab.setOrientation(Math.cos(c),Math.sin(c),0))}};y.prototype.play=function(a,c,d,e){var b=this.q;this.Sd=a;this.volume=c;d=d||0;e=e||0;switch(this.da){case 0:1!==b.playbackRate&&(b.playbackRate=
1);b.volume!==c*S&&(b.volume=c*S);b.loop!==a&&(b.loop=a);b.muted&&(b.muted=!1);if(b.currentTime!==d)try{b.currentTime=d}catch(f){}if(this.cd&&Wa&&!C.Dc)Xa.push(this);else try{this.q.play()}catch(g){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",g)}break;case 1:this.muted=!1;this.eh=1;if(1===this.buffer.da)this.ib.gain.value=c*S,this.Qd||(this.q=A.createBufferSource(),this.q.buffer=this.buffer.ra,this.q.connect(this.ib)),this.q.onended=this.Zn,
this.Ej=this.q,this.q.loop=a,this.Jg=!1,0===d?m(this.q,e):r(this.q,d,this.If(),e);else{1!==b.playbackRate&&(b.playbackRate=1);b.loop!==a&&(b.loop=a);b.volume=c*S;if(b.currentTime!==d)try{b.currentTime=d}catch(h){}this.cd&&Wa&&!C.Dc?Xa.push(this):b.play()}break;case 2:(!this.Qd&&this.Cb||0!==d)&&b.seekTo(d);b.play();this.Jg=!1;break;case 3:C.Yb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Kg?C.mb.ea:C.De.ea)-d;this.Ec=this.Cb=this.Qd=
!1};y.prototype.stop=function(){switch(this.da){case 0:this.q.paused||this.q.pause();break;case 1:1===this.buffer.da?l(this.q):this.q.paused||this.q.pause();break;case 2:this.q.stop();break;case 3:C.Yb&&AppMobi.context.stopSound(this.src)}this.Cb=!0;this.Ec=!1};y.prototype.pause=function(){if(!(this.Qd||this.Cb||this.Lf()||this.Ec)){switch(this.da){case 0:this.q.paused||this.q.pause();break;case 1:1===this.buffer.da?(this.wc=this.$m(!0),this.Sd&&(this.wc=this.wc%this.If()),this.Ec=!0,l(this.q)):this.q.paused||
this.q.pause();break;case 2:this.q.pause();break;case 3:C.Yb&&AppMobi.context.stopSound(this.src)}this.Ec=!0}};y.prototype.Wx=function(){if(!(this.Qd||this.Cb||this.Lf())&&this.Ec){switch(this.da){case 0:this.q.play();break;case 1:1===this.buffer.da?(this.q=A.createBufferSource(),this.q.buffer=this.buffer.ra,this.q.connect(this.ib),this.q.onended=this.Zn,this.Ej=this.q,this.q.loop=this.Sd,this.ib.gain.value=S*this.volume*this.eh,this.$l(),this.startTime=(this.Kg?C.mb.ea:C.De.ea)-this.wc/(this.playbackRate||
.001),r(this.q,this.wc,this.If())):this.q.play();break;case 2:this.q.play();break;case 3:C.Yb&&AppMobi.context.resumeSound(this.src)}this.Ec=!1}};y.prototype.seek=function(a){if(!(this.Qd||this.Cb||this.Lf()))switch(this.da){case 0:try{this.q.currentTime=a}catch(c){}break;case 1:if(1===this.buffer.da)this.Ec?this.wc=a:(this.pause(),this.wc=a,this.Wx());else try{this.q.currentTime=a}catch(d){}break;case 3:C.Yb&&AppMobi.context.seekSound(this.src,a)}};y.prototype.Rx=function(a){1===this.da&&(this.Ud?
(this.ab.disconnect(),this.ab.connect(a)):(this.ib.disconnect(),this.ib.connect(a)))};y.prototype.If=function(){var a=0;switch(this.da){case 0:"undefined"!==typeof this.q.duration&&(a=this.q.duration);break;case 1:a=this.buffer.ra.duration;break;case 2:a=this.q.getDuration();break;case 3:C.Yb&&(a=AppMobi.context.getDurationSound(this.src))}return a};y.prototype.$m=function(a){var c=this.If(),d=0;switch(this.da){case 0:"undefined"!==typeof this.q.currentTime&&(d=this.q.currentTime);break;case 1:if(1===
this.buffer.da){if(this.Ec)return this.wc;d=(this.Kg?C.mb.ea:C.De.ea)-this.startTime}else"undefined"!==typeof this.q.currentTime&&(d=this.q.currentTime);break;case 3:C.Yb&&(d=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(d*=this.playbackRate);!this.Sd&&d>c&&(d=c);return d};y.prototype.ni=function(){return!this.Ec&&!this.Qd&&!this.Cb&&!this.Lf()};y.prototype.ny=function(){return!this.Qd&&!this.Cb&&!this.Lf()};y.prototype.Ay=function(){var a=this.volume*S;isFinite(a)||(a=0);switch(this.da){case 0:"undefined"!==
typeof this.q.volume&&this.q.volume!==a&&(this.q.volume=a);break;case 1:1===this.buffer.da?this.ib.gain.value=a*this.eh:"undefined"!==typeof this.q.volume&&this.q.volume!==a&&(this.q.volume=a)}};y.prototype.ek=function(a){switch(this.da){case 0:this.q.muted!==!!a&&(this.q.muted=!!a);break;case 1:1===this.buffer.da?(this.eh=a?0:1,this.ib.gain.value=S*this.volume*this.eh):this.q.muted!==!!a&&(this.q.muted=!!a)}};y.prototype.hy=function(){this.Mg=!0;this.ek(this.Mg||this.si)};y.prototype.hs=function(a){this.si=
!!a;this.ek(this.Mg||this.si)};y.prototype.$l=function(){var a=this.playbackRate;this.Kg&&(a*=C.yh);switch(this.da){case 0:this.q.playbackRate!==a&&(this.q.playbackRate=a);break;case 1:1===this.buffer.da?this.q.playbackRate.value!==a&&(this.q.playbackRate.value=a):this.q.playbackRate!==a&&(this.q.playbackRate=a)}};y.prototype.jy=function(a){switch(this.da){case 0:a?this.ni()?(this.Sc=!0,this.q.pause()):this.Sc=!1:this.Sc&&(this.q.play(),this.Sc=!1);break;case 1:a?this.ni()?(this.Sc=!0,1===this.buffer.da?
(this.wc=this.$m(!0),this.Sd&&(this.wc=this.wc%this.If()),l(this.q)):this.q.pause()):this.Sc=!1:this.Sc&&(1===this.buffer.da?(this.q=A.createBufferSource(),this.q.buffer=this.buffer.ra,this.q.connect(this.ib),this.q.onended=this.Zn,this.Ej=this.q,this.q.loop=this.Sd,this.ib.gain.value=S*this.volume*this.eh,this.$l(),this.startTime=(this.Kg?C.mb.ea:C.De.ea)-this.wc/(this.playbackRate||.001),r(this.q,this.wc,this.If())):this.q.play(),this.Sc=!1);break;case 2:a?this.ni()?(this.q.pause(),this.Sc=!0):
this.Sc=!1:this.Sc&&(this.Sc=!1,this.q.play())}};w.Y=function(a){function c(){if(!V&&A.createBuffer){var a=A.createBuffer(1,220,22050),d=A.createBufferSource();d.buffer=a;d.connect(A.destination);m(d)}}this.type=a;C=this.b=a.b;M=this;this.Gc=null;this.Gi=-600;this.b.qi&&(Ya=!0);!(this.b.vi||this.b.Dk&&(this.b.hi||this.b.Ek))||this.b.Gk||this.b.lb||this.b.yq||Ya||(Wa=!0);A=null;"undefined"!==typeof AudioContext?(K=1,A=new AudioContext):"undefined"!==typeof webkitAudioContext&&(K=1,A=new webkitAudioContext);
this.b.vi&&A&&(A.close&&A.close(),"undefined"!==typeof AudioContext?A=new AudioContext:"undefined"!==typeof webkitAudioContext&&(A=new webkitAudioContext));Wa?document.addEventListener("touchend",function(){!qb&&A&&(c(),qb=!0);var a,d,e;if(Wa){if(!x)for(a=0,d=Xa.length;a<d;++a)e=Xa[a],e.Cb||e.Ec||e.q.play();Q(Xa)}},!0):Ya&&document.addEventListener("touchend",function(){!qb&&A&&(c(),qb=!0)},!0);1!==K&&(this.b.me&&"undefined"!==typeof window.Media?K=2:this.b.zq&&(K=3));2===K&&(R=location.href,a=R.lastIndexOf("/"),
-1<a&&(R=R.substr(0,a+1)),R=R.replace("file://",""));if(this.b.Vw&&this.b.Ww&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime.  Audio cannot be played until Quicktime is installed."),this.b.Ge(this);else{if(this.b.Yb)v=this.b.Dk;else try{v=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(d){v=!1}this.b.wh(this)}};var oa=w.Y.prototype;oa.L=function(){this.b.ug=this;t=this.A[0];this.we=this.A[1];this.Ex=0!==this.A[2];this.or=0;sa=this.A[3];
T=this.A[4];this.Gi=-this.A[5];xa=this.A[6];ma=this.A[7];Ma=this.A[8];this.Gc=new B;var a=this.b.N||this.b.width,c=this.b.M||this.b.height;1===K&&(A.listener.setPosition(a/2,c/2,this.Gi),A.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,c){La&&La.disconnect();Eb=c.toLowerCase();La=A.createMediaStreamSource(a);La.connect(p(Eb))});this.b.zp(function(a){M.yx(a)});var d=this;this.b.Fj(function(a){d.Wi(a)})};oa.Wi=function(a){var c,d,e;c=0;for(d=O.length;c<d;c++)e=O[c],e.Jb&&
e.Jb.ta===a&&(e.Jb.ta=null,e.Ud&&e.ni()&&e.Sd&&e.stop());this.Gc.ta===a&&(this.Gc.ta=null)};oa.eb=function(){var a={silent:x,masterVolume:S,listenerZ:this.Gi,listenerUid:this.Gc.Ak()?this.Gc.ta.uid:-1,playing:[],effects:{}},c=a.playing,d,e,b,f,g,m;d=0;for(e=O.length;d<e;d++)b=O[d],!b.ny()||3===this.we||b.cd&&1===this.we||!b.cd&&2===this.we||(f=b.$m(),b.Sd&&(f=f%b.If()),f={tag:b.tag,buffersrc:b.buffer.src,is_music:b.cd,playbackTime:f,volume:b.volume,looping:b.Sd,muted:b.Mg,playbackRate:b.playbackRate,
paused:b.Ec,resume_position:b.wc},b.Ud&&(f.pan={},m=f.pan,b.Jb&&b.Jb.Ak()?m.objUid=b.Jb.ta.uid:(m.x=b.Jr,m.y=b.Kr,m.a=b.Fr),m.ia=b.Gr,m.oa=b.Hr,m.og=b.Ir),c.push(f));c=a.effects;for(g in W)if(W.hasOwnProperty(g)){b=[];d=0;for(e=W[g].length;d<e;d++)b.push({type:W[g][d].type,params:W[g][d].zd});c[g]=b}return a};var Za=[];oa.zb=function(b){var m=b.silent;S=b.masterVolume;this.Gi=b.listenerZ;this.Gc.kj(null);var h=b.listenerUid;-1!==h&&(this.Gc.Tk=h,Za.push(this.Gc));var h=b.playing,l,r,q,p,y,E,C,F,w,
t,v;if(3!==this.we)for(l=0,r=O.length;l<r;l++)w=O[l],w.cd&&1===this.we||(w.cd||2!==this.we)&&w.stop();for(y in W)if(W.hasOwnProperty(y))for(l=0,r=W[y].length;l<r;l++)W[y][l].remove();ab(W);for(y in b.effects)if(b.effects.hasOwnProperty(y))for(E=b.effects[y],l=0,r=E.length;l<r;l++)switch(q=E[l].type,t=E[l].params,q){case "filter":z(y,new a(t[0],t[1],t[2],t[3],t[4],t[5]));break;case "delay":z(y,new c(t[0],t[1],t[2]));break;case "convolve":q=t[2];w=this.sk(q,!1);w.ra?q=new d(w.ra,t[0],t[1],q):(q=new d(null,
t[0],t[1],q),w.qr=t[0],w.Wj=q);z(y,q);break;case "flanger":z(y,new e(t[0],t[1],t[2],t[3],t[4]));break;case "phaser":z(y,new f(t[0],t[1],t[2],t[3],t[4],t[5]));break;case "gain":z(y,new k(t[0]));break;case "tremolo":z(y,new g(t[0],t[1]));break;case "ringmod":z(y,new J(t[0],t[1]));break;case "distortion":z(y,new G(t[0],t[1],t[2],t[3],t[4]));break;case "compressor":z(y,new D(t[0],t[1],t[2],t[3],t[4]));break;case "analyser":z(y,new n(t[0],t[1]))}l=0;for(r=h.length;l<r;l++)3===this.we||(b=h[l],q=b.buffersrc,
p=b.is_music,y=b.tag,E=b.playbackTime,C=b.looping,F=b.volume,v=(t=b.pan)&&t.hasOwnProperty("objUid")?t.objUid:-1,p&&1===this.we)||!p&&2===this.we||((w=this.Tm(q,y,p,C,F))?(w.wc=b.resume_position,w.Bo(!!t),w.play(C,F,E),w.$l(),w.Ay(),w.ek(w.Mg||w.si),b.paused&&w.pause(),b.muted&&w.hy(),w.ek(w.Mg||w.si),t&&(-1!==v?(w.Jb=w.Jb||new B,w.Jb.Tk=v,Za.push(w.Jb)):w.Ao(t.x,t.y,t.a,t.ia,t.oa,t.og))):(w=this.sk(q,p),w.Cl=E,w.jl=b.paused,t&&(-1!==v?w.hh.push({sr:v,ln:t.ia,Un:t.oa,Wn:t.og,Es:y}):w.hh.push({x:t.x,
y:t.y,su:t.a,ln:t.ia,Un:t.oa,Wn:t.og,Es:y}))));if(m&&!x){l=0;for(r=O.length;l<r;l++)O[l].hs(!0);x=!0}else if(!m&&x){l=0;for(r=O.length;l<r;l++)O[l].hs(!1);x=!1}};oa.od=function(){var a,c,d,e;a=0;for(c=Za.length;a<c;a++)d=Za[a],e=this.b.Jf(d.Tk),d.kj(e),d.Tk=-1,e&&(I=e.x,H=e.y);Q(Za)};oa.yx=function(a){if(!this.Ex){!a&&A&&A.resume&&(A.resume(),V=!1);var c,d;c=0;for(d=O.length;c<d;c++)O[c].jy(a);a&&A&&A.suspend&&(A.suspend(),V=!0)}};oa.Ea=function(){var a=this.b.Af,c,d,e;c=0;for(d=O.length;c<d;c++)e=
O[c],e.Ea(a),0!==t&&e.$l();var b,f;for(b in W)if(W.hasOwnProperty(b))for(e=W[b],c=0,d=e.length;c<d;c++)f=e[c],f.Ea&&f.Ea();1===K&&this.Gc.Ak()&&(this.Gc.Ea(a),I=this.Gc.ta.x,H=this.Gc.ta.y,A.listener.setPosition(this.Gc.ta.x,this.Gc.ta.y,this.Gi))};var $a=[];oa.iy=function(a){var c,d,e,b,f,g=0;c=0;for(d=a.length;c<d;++c)if(e=a[c],b=e[0],e=2*e[1],(f=4<b.length&&".ogg"===b.substr(b.length-4))&&v||!f&&!v)$a.push({filename:b,size:e,ta:null}),g+=e;return g};oa.ry=function(){var a,c,d,e;a=0;for(c=$a.length;a<
c;++a)d=$a[a],e=this.b.jk+d.filename,d.ta=this.sk(e,!1)};oa.pw=function(){var a=0,c,d,e;c=0;for(d=$a.length;c<d;++c)e=$a[c],e.ta.Cq()||e.ta.mq()||this.b.lb||this.b.Ek?a+=e.size:e.ta.Bq()&&(a+=Math.floor(e.size/2));return a};oa.Tx=function(){var a,c,d,e;d=a=0;for(c=N.length;a<c;++a)e=N[a],N[d]=e,e.cd?e.Sx():++d;N.length=d};oa.sk=function(a,c){var d,e,b,f=null;d=0;for(e=N.length;d<e;d++)if(b=N[d],b.src===a){f=b;break}f||(Ya&&c&&this.Tx(),f=new L(a,c),N.push(f));return f};oa.Tm=function(a,c,d,e,b){var f,
g,m;f=0;for(g=O.length;f<g;f++)if(m=O[f],m.src===a&&(m.Fu()||d))return m.tag=c,m;a=this.sk(a,d);if(!a.ra)return"<preload>"!==c&&(a.kl=c,a.Pn=e,a.Vo=b),null;m=new y(a,c);O.push(m);return m};var Sa=[];E.prototype.Bj=function(a){return nb(ca,a)};E.prototype.au=function(){var a,c;a=0;for(c=N.length;a<c;a++)if(!N[a].Cq()&&!N[a].mq())return!1;return!0};w.k=new E;F.prototype.Play=function(a,c,d,e){!x&&(d=Math.pow(10,d/20),isFinite(d)||(d=0),0>d&&(d=0),1<d&&(d=1),ga=this.Tm(this.b.jk+a[0]+(v?".ogg":".m4a"),
e,a[1],0!==c,d))&&(ga.Bo(!1),ga.play(0!==c,d,0,this.or),this.or=0)};F.prototype.$t=function(a){if(!x){var c=a[1];a=this.b.jk+a[0]+(v?".ogg":".m4a");3===K?this.b.Yb?AppMobi.context.loadSound(a):AppMobi.player.loadSound(a):2!==K&&this.Tm(a,"<preload>",c,!1)}};w.I=new F;w.La=new function(){}})();function Z(b){this.b=b}
(function(){function b(){r&&l&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(c){a.xx(c)})}function p(){}function h(){}var q=Z.prototype;q.ja=function(a){this.Fa=a;this.b=a.b};var m=q.ja.prototype;m.L=function(){};var r=!1,l=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.Jj){var a=document.createElement("script");a.onload=function(){r=!0;b()};a.src="offlineClient.js";document.head.appendChild(a)}});var a=null;m.Cr=function(){l=
!0;b()};q.Y=function(a){this.type=a;this.b=a.b};m=q.Y.prototype;m.L=function(){var c=this;window.addEventListener("resize",function(){c.b.trigger(Z.prototype.k.Vt,c)});a=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){c.b.trigger(Z.prototype.k.St,c)}),window.addEventListener("offline",function(){c.b.trigger(Z.prototype.k.Qt,c)}));"undefined"!==typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){c.b.$g=1;c.b.trigger(Z.prototype.k.Dj,
c)}),window.applicationCache.addEventListener("progress",function(a){c.b.$g=a.loaded/a.total||0}));this.b.Yb||(document.addEventListener("appMobi.device.update.available",function(){c.b.trigger(Z.prototype.k.Dj,c)}),document.addEventListener("backbutton",function(){c.b.trigger(Z.prototype.k.Aj,c)}),document.addEventListener("menubutton",function(){c.b.trigger(Z.prototype.k.np,c)}),document.addEventListener("searchbutton",function(){c.b.trigger(Z.prototype.k.Wt,c)}),document.addEventListener("tizenhwkey",
function(a){var e;switch(a.keyName){case "back":e=c.b.trigger(Z.prototype.k.Aj,c);!e&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(e=c.b.trigger(Z.prototype.k.np,c))||a.preventDefault()}}));this.b.An&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(a){c.b.trigger(Z.prototype.k.Aj,c)&&(a.zk=!0)}):this.b.Fq&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!c.b.trigger(Z.prototype.k.Aj,
c)});this.b.zp(function(a){a?c.b.trigger(Z.prototype.k.Tt,c):c.b.trigger(Z.prototype.k.Ut,c)});this.Yw="undefined"!==typeof window.is_scirra_arcade};m.xx=function(a){a=a.data.type;"downloading-update"===a?this.b.trigger(Z.prototype.k.Xt,this):"update-ready"===a||"update-pending"===a?this.b.trigger(Z.prototype.k.Dj,this):"offline-ready"===a&&this.b.trigger(Z.prototype.k.Rt,this)};p.prototype.St=function(){return!0};p.prototype.Qt=function(){return!0};p.prototype.Dj=function(){return!0};p.prototype.Ut=
function(){return!0};p.prototype.Tt=function(){return!0};p.prototype.Vt=function(){return!0};p.prototype.Aj=function(){return!0};p.prototype.np=function(){return!0};p.prototype.Wt=function(){return!0};p.prototype.Xt=function(){return!0};p.prototype.Dj=function(){return!0};p.prototype.Rt=function(){return!0};q.k=new p;h.prototype.dt=function(){this.b.bd?CocoonJS.App.forceToFinish():window.tizen?window.tizen.application.getCurrentApplication().exit():navigator.app&&navigator.app.exitApp?navigator.app.exitApp():
navigator.device&&navigator.device.exitApp?navigator.device.exitApp():this.Yw||this.b.lb||window.close()};q.I=new h;q.La=new function(){}})();function tc(b){this.b=b}
(function(){function b(){}var p=tc.prototype;p.ja=function(b){this.Fa=b;this.b=b.b};p.ja.prototype.L=function(){};p.Y=function(b){this.type=b;this.b=b.b;this.Sg=Array(256);this.vj=Array(256);this.Be=0};var h=p.Y.prototype;h.L=function(){var b=this;this.b.lb||(jQuery(document).keydown(function(h){b.Xn(h)}),jQuery(document).keyup(function(h){b.Yn(h)}))};var q=[32,33,34,35,36,37,38,39,40,44];h.Xn=function(b){var h=!1;window!=window.top&&-1<q.indexOf(b.which)&&(b.preventDefault(),h=!0,b.stopPropagation());
if(this.Sg[b.which])this.vj[b.which]&&!h&&b.preventDefault();else{this.Sg[b.which]=!0;this.Be=b.which;this.b.Dc=!0;this.b.trigger(tc.prototype.k.Ht,this);var l=this.b.trigger(tc.prototype.k.hp,this),a=this.b.trigger(tc.prototype.k.Nt,this);this.b.Dc=!1;if(l||a)this.vj[b.which]=!0,h||b.preventDefault()}};h.Yn=function(b){this.Sg[b.which]=!1;this.Be=b.which;this.b.Dc=!0;this.b.trigger(tc.prototype.k.cp,this);var h=this.b.trigger(tc.prototype.k.jp,this),l=this.b.trigger(tc.prototype.k.ip,this);this.b.Dc=
!1;if(h||l||this.vj[b.which])this.vj[b.which]=!0,b.preventDefault()};h.cf=function(){var b;for(b=0;256>b;++b)if(this.Sg[b]){this.Sg[b]=!1;this.Be=b;this.b.trigger(tc.prototype.k.cp,this);var h=this.b.trigger(tc.prototype.k.jp,this),l=this.b.trigger(tc.prototype.k.ip,this);if(h||l)this.vj[b]=!0}};h.eb=function(){return{triggerKey:this.Be}};h.zb=function(b){this.Be=b.triggerKey};b.prototype.yt=function(b){return this.Sg[b]};b.prototype.hp=function(b){return b===this.Be};b.prototype.Ht=function(){return!0};
b.prototype.cp=function(){return!0};b.prototype.jp=function(b){return b===this.Be};b.prototype.Nt=function(b){return b===this.Be};b.prototype.ip=function(b){return b===this.Be};p.k=new b;p.I=new function(){};p.La=new function(){}})();function uc(b){this.b=b}
(function(){function b(){}function p(){}var h=uc.prototype;h.ja=function(b){this.Fa=b;this.b=b.b};h.ja.prototype.L=function(){};h.Y=function(b){this.type=b;this.b=b.b;this.vg=Array(4);this.Is=this.Wl=this.ng=this.bf=this.$e=0;this.zk=!1};var q=h.Y.prototype;q.L=function(){var b=this;if(!this.b.lb){jQuery(document).mousemove(function(a){b.vx(a)});jQuery(document).mousedown(function(a){b.ux(a)});jQuery(document).mouseup(function(a){b.wx(a)});jQuery(document).dblclick(function(a){b.tx(a)});var m=function(a){b.zx(a)};
document.addEventListener("mousewheel",m,!1);document.addEventListener("DOMMouseScroll",m,!1)}};var m={left:0,top:0};q.vx=function(b){var h=this.b.lb?m:jQuery(this.b.canvas).offset();this.$e=b.pageX-h.left;this.bf=b.pageY-h.top};q.lr=function(){return 0<this.b.mc?!0:0<=this.$e&&0<=this.bf&&this.$e<this.b.width&&this.bf<this.b.height};q.ux=function(b){this.lr()&&(this.vg[b.which]=!0,this.b.Dc=!0,this.b.trigger(uc.prototype.k.Gt,this),this.ng=b.which-1,this.Wl=0,this.b.trigger(uc.prototype.k.fp,this),
this.b.trigger(uc.prototype.k.km,this),this.b.Dc=!1)};q.wx=function(b){this.vg[b.which]&&(this.b.lq&&!this.b.Te&&b.preventDefault(),this.b.lq=!0,this.vg[b.which]=!1,this.b.Dc=!0,this.ng=b.which-1,this.b.trigger(uc.prototype.k.pp,this),this.b.Dc=!1)};q.tx=function(b){this.lr()&&(b.preventDefault(),this.b.Dc=!0,this.ng=b.which-1,this.Wl=1,this.b.trigger(uc.prototype.k.fp,this),this.b.trigger(uc.prototype.k.km,this),this.b.Dc=!1)};q.zx=function(b){this.Is=0>(b.wheelDelta?b.wheelDelta:b.detail?-b.detail:
0)?0:1;this.zk=!1;this.b.Dc=!0;this.b.trigger(uc.prototype.k.Yt,this);this.b.Dc=!1;this.zk&&ob(b)&&b.preventDefault()};q.cf=function(){var b,m;b=0;for(m=this.vg.length;b<m;++b)this.vg[b]&&(this.vg[b]=!1,this.ng=b-1,this.b.trigger(uc.prototype.k.pp,this))};b.prototype.fp=function(b,m){return b===this.ng&&m===this.Wl};b.prototype.Gt=function(){return!0};b.prototype.pp=function(b){return b===this.ng};b.prototype.km=function(b,m,a){return b!==this.ng||m!==this.Wl?!1:this.b.vy(a,this.$e,this.bf)};b.prototype.Yt=
function(b){this.zk=!0;return b===this.Is};h.k=new b;h.I=new function(){};p.prototype.vp=function(b,m){var a,c,d,e,f;ia(m)?(a=this.b.Wh(0),c=a.scale,d=a.Kd,e=a.ed,f=a.m,a.scale=1,a.Kd=1,a.ed=1,a.m=0,b.O(a.fc(this.$e,this.bf,!0)),a.scale=c,a.Kd=d,a.ed=e,a.m=f):(a=ja(m)?this.b.Wh(m):this.b.Zm(m))?b.O(a.fc(this.$e,this.bf,!0)):b.O(0)};p.prototype.wp=function(b,m){var a,c,d,e,f;ia(m)?(a=this.b.Wh(0),c=a.scale,d=a.Kd,e=a.fd,f=a.m,a.scale=1,a.Kd=1,a.fd=1,a.m=0,b.O(a.fc(this.$e,this.bf,!1)),a.scale=c,a.Kd=
d,a.fd=e,a.m=f):(a=ja(m)?this.b.Wh(m):this.b.Zm(m))?b.O(a.fc(this.$e,this.bf,!1)):b.O(0)};h.La=new p})();function vc(b){this.b=b}
(function(){function b(b){this.Ia=b;this.Pa=!1;this.m=this.speed=this.y=this.x=0;this.opacity=1;this.Ke=this.Ig=this.size=this.wk=0}var p=vc.prototype;p.ja=function(b){this.Fa=b;this.b=b.b};var h=p.ja.prototype;h.L=function(){this.K||(this.P=new Image,this.P.Bm=this.Sl,this.fa=null,this.b.Wo(this.P,this.Rl))};h.Yi=function(){this.K||(this.fa=null)};h.el=function(){this.K||!this.j.length||this.fa||(this.fa=this.b.C.Zg(this.P,!0,this.b.Ha,this.tj))};h.Ii=function(){this.K||this.fa||!this.b.C||(this.fa=
this.b.C.Zg(this.P,!0,this.b.Ha,this.tj))};h.Yl=function(){this.K||this.j.length||!this.fa||(this.b.C.deleteTexture(this.fa),this.fa=null)};h.ql=function(b){b.drawImage(this.P,0,0)};b.prototype.init=function(){var b=this.Ia;this.x=b.x-b.hm/2+Math.random()*b.hm;this.y=b.y-b.im/2+Math.random()*b.im;this.speed=b.tn-b.Ll/2+Math.random()*b.Ll;this.m=b.m-b.Ml/2+Math.random()*b.Ml;this.opacity=b.rn;this.size=b.sn-b.Kl/2+Math.random()*b.Kl;this.wk=b.hn-b.xk/2+Math.random()*b.xk;this.Ke=this.Ig=0};b.prototype.Ea=
function(b){var h=this.Ia;this.x+=Math.cos(this.m)*this.speed*b;this.y+=Math.sin(this.m)*this.speed*b;this.y+=this.Ig*b;this.speed+=h.gb*b;this.size+=this.wk*b;this.Ig+=h.Hb*b;this.Ke+=b;1>this.size?this.Pa=!1:(0!==h.Di&&(this.m+=Math.random()*h.Di*b-h.Di*b/2),0!==h.Fi&&(this.speed+=Math.random()*h.Fi*b-h.Fi*b/2),0!==h.Ei&&(this.opacity+=Math.random()*h.Ei*b-h.Ei*b/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=h.Ag&&this.Ke>=h.timeout&&(this.Pa=!1),2===h.Ag&&0>=this.speed&&
(this.Pa=!1))};b.prototype.Lc=function(b){var h=this.Ia.opacity*this.opacity;if(0!==h){0===this.Ia.Ag&&(h*=1-this.Ke/this.Ia.timeout);b.globalAlpha=h;var h=this.x-this.size/2,l=this.y-this.size/2;this.Ia.b.Rc&&(h=h+.5|0,l=l+.5|0);b.drawImage(this.Ia.type.P,h,l,this.size,this.size)}};b.prototype.Vb=function(b){var h=this.Ia.opacity*this.opacity;0===this.Ia.Ag&&(h*=1-this.Ke/this.Ia.timeout);var l=this.size,a=l*this.Ia.Nr,c=this.x-l/2,d=this.y-l/2;this.Ia.b.Rc&&(c=c+.5|0,d=d+.5|0);1>a||0===h||(a<b.kx||
a>b.Rn?(b.jf(h),b.jh(c,d,c+l,d,c+l,d+l,c,d+l)):b.Fx(this.x,this.y,a,h))};b.prototype.left=function(){return this.x-this.size/2};b.prototype.right=function(){return this.x+this.size/2};b.prototype.top=function(){return this.y-this.size/2};b.prototype.bottom=function(){return this.y+this.size/2};p.Y=function(b){this.type=b;this.b=b.b};var h=p.Y.prototype,q=[];h.L=function(){var b=this.A;this.ul=b[0];this.Ml=U(b[1]);this.ph=b[2];this.Go=!0;this.tn=b[3];this.sn=b[4];this.rn=b[5]/100;this.hn=b[6];this.hm=
b[7];this.im=b[8];this.Ll=b[9];this.Kl=b[10];this.xk=b[11];this.gb=b[12];this.Hb=b[13];this.Di=b[14];this.Fi=b[15];this.Ei=b[16];this.Ag=b[17];this.timeout=b[18];this.gg=0;this.Nr=1;this.gl=this.x;this.il=this.y;this.hl=this.x;this.fl=this.y;this.vu(function(b){b.Da.set(b.gl,b.il,b.hl,b.fl);b.Db.kg(b.Da);b.Oj=!1;b.To();b.Ss()});this.uc||(this.gc=[]);this.b.wh(this);this.type.Ii();if(1===this.ph)for(b=0;b<this.ul;b++)this.mm().opacity=0;this.nk=!0};h.eb=function(){var b={r:this.ul,sc:this.Ml,st:this.ph,
s:this.Go,isp:this.tn,isz:this.sn,io:this.rn,gr:this.hn,xr:this.hm,yr:this.im,spr:this.Ll,szr:this.Kl,grnd:this.xk,acc:this.gb,g:this.Hb,lar:this.Di,lsr:this.Fi,lor:this.Ei,dm:this.Ag,to:this.timeout,pcc:this.gg,ft:this.nk,p:[]},h,l,a,c=b.p;h=0;for(l=this.gc.length;h<l;h++)a=this.gc[h],c.push([a.x,a.y,a.speed,a.m,a.opacity,a.wk,a.size,a.Ig,a.Ke]);return b};h.zb=function(b){this.ul=b.r;this.Ml=b.sc;this.ph=b.st;this.Go=b.s;this.tn=b.isp;this.sn=b.isz;this.rn=b.io;this.hn=b.gr;this.hm=b.xr;this.im=
b.yr;this.Ll=b.spr;this.Kl=b.szr;this.xk=b.grnd;this.gb=b.acc;this.Hb=b.g;this.Di=b.lar;this.Fi=b.lsr;this.Ei=b.lor;this.Ag=b.dm;this.timeout=b.to;this.gg=b.pcc;this.nk=b.ft;q.push.apply(q,this.gc);Q(this.gc);var h,l,a,c=b.p;b=0;for(h=c.length;b<h;b++)l=this.mm(),a=c[b],l.x=a[0],l.y=a[1],l.speed=a[2],l.m=a[3],l.opacity=a[4],l.wk=a[5],l.size=a[6],l.Ig=a[7],l.Ke=a[8]};h.ue=function(){q.push.apply(q,this.gc);Q(this.gc)};h.mm=function(){var h;q.length?(h=q.pop(),h.Ia=this):h=new b(this);this.gc.push(h);
h.Pa=!0;return h};h.Ea=function(){var b=this.b.ke(this),h,l,a,c;if(0===this.ph&&this.Go)for(this.gg+=b*this.ul,l=P(this.gg),this.gg-=l,h=0;h<l;h++)a=this.mm(),a.init();this.gl=this.x;this.il=this.y;this.hl=this.x;this.fl=this.y;c=h=0;for(l=this.gc.length;h<l;h++)a=this.gc[h],this.gc[c]=a,this.b.Aa=!0,1===this.ph&&this.nk&&a.init(),a.Ea(b),a.Pa?(a.left()<this.gl&&(this.gl=a.left()),a.right()>this.hl&&(this.hl=a.right()),a.top()<this.il&&(this.il=a.top()),a.bottom()>this.fl&&(this.fl=a.bottom()),c++):
q.push(a);Aa(this.gc,c);this.D();this.nk=!1;1===this.ph&&0===this.gc.length&&this.b.Ge(this)};h.Lc=function(b){var h,l,a,c=this.n;h=0;for(l=this.gc.length;h<l;h++)a=this.gc[h],a.right()>=c.ua&&a.bottom()>=c.wa&&a.left()<=c.Ca&&a.top()<=c.Ba&&a.Lc(b)};h.Vb=function(b){this.Nr=this.n.nc();b.xc(this.type.fa);var h,l,a,c=this.n;h=0;for(l=this.gc.length;h<l;h++)a=this.gc[h],a.right()>=c.ua&&a.bottom()>=c.wa&&a.left()<=c.Ca&&a.top()<=c.Ba&&a.Vb(b)};p.k=new function(){};p.I=new function(){};p.La=new function(){}})();
function Y(b){this.b=b}
(function(){function b(){if(0===this.Em.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var c=a.getContext("2d");this.qh?c.drawImage(this.P,this.fh,this.gh,this.width,this.height,0,0,this.width,this.height):c.drawImage(this.P,0,0,this.width,this.height);this.Em=a.toDataURL("image/png")}return this.Em}function p(){}function h(a){a[0]=0;a[1]=0;a[2]=0;k.push(a)}function q(a,c){return a<c?""+a+","+c:""+c+","+a}function m(a,c,b,d){c=c.uid;b=b.uid;var e=q(c,b);if(a.hasOwnProperty(e))a[e][2]=
d;else{var f=k.length?k.pop():[0,0,0];f[0]=c;f[1]=b;f[2]=d;a[e]=f}}function r(a,c,b){c=q(c.uid,b.uid);a.hasOwnProperty(c)&&(h(a[c]),delete a[c])}function l(a,c,b){c=q(c.uid,b.uid);if(a.hasOwnProperty(c))return g=a[c][2],!0;g=-2;return!1}function a(){}var c=Y.prototype;c.ja=function(a){this.Fa=a;this.b=a.b};var d=c.ja.prototype;d.L=function(){if(!this.K){var a,c,d,e,f,g,h,l,k;this.pd=[];this.bi=!1;a=0;for(c=this.Bc.length;a<c;a++){f=this.Bc[a];h={};h.name=f[0];h.speed=f[1];h.loop=f[2];h.qo=f[3];h.ro=
f[4];h.Or=f[5];h.ca=f[6];h.frames=[];d=0;for(e=f[7].length;d<e;d++)g=f[7][d],l={},l.Rl=g[0],l.Sl=g[1],l.fh=g[2],l.gh=g[3],l.width=g[4],l.height=g[5],l.duration=g[6],l.oc=g[7],l.pc=g[8],l.nn=g[9],l.ll=g[10],l.Pr=g[11],l.qh=0!==l.width,l.Em="",l.Ez=b,k={left:0,top:0,right:1,bottom:1},l.Co=k,l.fa=null,(k=this.b.Yv(g[0]))?l.P=k:(l.P=new Image,l.P.Ju=g[0],l.P.Bm=g[1],l.P.Du=null,this.b.Wo(l.P,g[0])),h.frames.push(l),this.pd.push(l);this.Bc[a]=h}}};d.Qs=function(){var a,c,b;a=0;for(c=this.j.length;a<c;a++)b=
this.j[a],b.Yj=b.Eb.fa};d.Yi=function(){if(!this.K){var a,c,b;a=0;for(c=this.pd.length;a<c;++a)b=this.pd[a],b.P.Du=null,b.fa=null;this.bi=!1;this.Qs()}};d.el=function(){if(!this.K&&this.j.length){var a,c,b;a=0;for(c=this.pd.length;a<c;++a)b=this.pd[a],b.fa=this.b.C.Zg(b.P,!1,this.b.Ha,b.Pr);this.Qs()}};d.Ii=function(){if(!this.K&&!this.bi&&this.b.C){var a,c,b;a=0;for(c=this.pd.length;a<c;++a)b=this.pd[a],b.fa=this.b.C.Zg(b.P,!1,this.b.Ha,b.Pr);this.bi=!0}};d.Yl=function(){if(!this.K&&!this.j.length&&
this.bi){var a,c,b;a=0;for(c=this.pd.length;a<c;++a)b=this.pd[a],this.b.C.deleteTexture(b.fa),b.fa=null;this.bi=!1}};var e=[];d.ql=function(a){var c,b,d;Q(e);c=0;for(b=this.pd.length;c<b;++c)d=this.pd[c].P,-1===e.indexOf(d)&&(a.drawImage(d,0,0),e.push(d))};c.Y=function(a){this.type=a;this.b=a.b;a=this.type.Bc[0].frames[0].ll;this.uc?this.ka.mj(a):this.ka=new hb(a)};var f=c.Y.prototype;f.L=function(){this.visible=0===this.A[0];this.Ck=this.pi=!1;this.Nd=0!==this.A[3];this.Ka=this.dq(this.A[1])||this.type.Bc[0];
this.J=this.A[2];0>this.J&&(this.J=0);this.J>=this.Ka.frames.length&&(this.J=this.Ka.frames.length-1);var a=this.Ka.frames[this.J];this.ka.mj(a.ll);this.oc=a.oc;this.pc=a.pc;this.xg=this.Ka.speed;this.Pe=this.Ka.ro;1===this.type.Bc.length&&1===this.type.Bc[0].frames.length||0===this.xg||(this.b.wh(this),this.pi=!0);this.uc?this.Ld.reset():this.Ld=new fb;this.je=this.Ld.ea;this.qf=!0;this.ae=0;this.pf=!0;this.Tj=this.Ap="";this.Kp=0;this.Sj=-1;this.type.Ii();var c,b,d,e,f,g,h,a=0;for(c=this.type.Bc.length;a<
c;a++)for(e=this.type.Bc[a],b=0,d=e.frames.length;b<d;b++)f=e.frames[b],0===f.width&&(f.width=f.P.width,f.height=f.P.height),f.qh&&(h=f.P,g=f.Co,g.left=f.fh/h.width,g.top=f.gh/h.height,g.right=(f.fh+f.width)/h.width,g.bottom=(f.gh+f.height)/h.height,0===f.fh&&0===f.gh&&f.width===h.width&&f.height===h.height&&(f.qh=!1));this.Eb=this.Ka.frames[this.J];this.Yj=this.Eb.fa};f.eb=function(){var a={a:this.Ka.ca,f:this.J,cas:this.xg,fs:this.je,ar:this.ae,at:this.Ld.ea,rt:this.Pe};this.qf||(a.ap=this.qf);
this.pf||(a.af=this.pf);return a};f.zb=function(a){var c=this.bw(a.a);c&&(this.Ka=c);this.J=a.f;0>this.J&&(this.J=0);this.J>=this.Ka.frames.length&&(this.J=this.Ka.frames.length-1);this.xg=a.cas;this.je=a.fs;this.ae=a.ar;this.Ld.reset();this.Ld.ea=a.at;this.qf=a.hasOwnProperty("ap")?a.ap:!0;this.pf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Pe=a.rt:this.Pe=this.Ka.ro;this.Eb=this.Ka.frames[this.J];this.Yj=this.Eb.fa;this.ka.mj(this.Eb.ll);this.oc=this.Eb.oc;this.pc=this.Eb.pc};f.om=
function(a){this.J=a?0:this.Ka.frames.length-1;this.qf=!1;this.Ap=this.Ka.name;this.Ck=!0;this.b.trigger(Y.prototype.k.Ft,this);this.b.trigger(Y.prototype.k.Et,this);this.Ck=!1;this.ae=0};f.Jj=function(){return this.Ld.ea};f.Ea=function(){this.Ld.add(this.b.ke(this));this.Tj.length&&this.Rp();0<=this.Sj&&this.Sp();var a=this.Ld.ea,c=this.Ka,b=c.frames[this.J],d=b.duration/this.xg;this.qf&&a>=this.je+d&&(this.pf?this.J++:this.J--,this.je+=d,this.J>=c.frames.length&&(c.Or?(this.pf=!1,this.J=c.frames.length-
2):c.loop?this.J=this.Pe:(this.ae++,this.ae>=c.qo?this.om(!1):this.J=this.Pe)),0>this.J&&(c.Or?(this.J=1,this.pf=!0,c.loop||(this.ae++,this.ae>=c.qo&&this.om(!0))):c.loop?this.J=this.Pe:(this.ae++,this.ae>=c.qo?this.om(!0):this.J=this.Pe)),0>this.J?this.J=0:this.J>=c.frames.length&&(this.J=c.frames.length-1),a>this.je+c.frames[this.J].duration/this.xg&&(this.je=a),a=c.frames[this.J],this.sg(b,a),this.b.Aa=!0)};f.dq=function(a){var c,b,d;c=0;for(b=this.type.Bc.length;c<b;c++)if(d=this.type.Bc[c],nb(d.name,
a))return d;return null};f.bw=function(a){var c,b,d;c=0;for(b=this.type.Bc.length;c<b;c++)if(d=this.type.Bc[c],d.ca===a)return d;return null};f.Rp=function(){var a=this.Ka.frames[this.J],c=this.dq(this.Tj);this.Tj="";!c||nb(c.name,this.Ka.name)&&this.qf||(this.Ka=c,this.xg=c.speed,this.Pe=c.ro,0>this.J&&(this.J=0),this.J>=this.Ka.frames.length&&(this.J=this.Ka.frames.length-1),1===this.Kp&&(this.J=0),this.qf=!0,this.je=this.Ld.ea,this.pf=!0,this.sg(a,this.Ka.frames[this.J]),this.b.Aa=!0)};f.Sp=function(){var a=
this.Ka.frames[this.J],c=this.J;this.J=P(this.Sj);0>this.J&&(this.J=0);this.J>=this.Ka.frames.length&&(this.J=this.Ka.frames.length-1);c!==this.J&&(this.sg(a,this.Ka.frames[this.J]),this.je=this.Ld.ea,this.b.Aa=!0);this.Sj=-1};f.sg=function(a,c){var b=a.width,d=a.height,e=c.width,f=c.height;b!=e&&(this.width*=e/b);d!=f&&(this.height*=f/d);this.oc=c.oc;this.pc=c.pc;this.ka.mj(c.ll);this.D();this.Eb=c;this.Yj=c.fa;b=0;for(d=this.R.length;b<d;b++)e=this.R[b],e.Dr&&e.Dr(a,c);this.b.trigger(Y.prototype.k.sg,
this)};f.Lc=function(a){a.globalAlpha=this.opacity;var c=this.Eb,b=c.qh,d=c.P,e=this.x,f=this.y,g=this.width,h=this.height;if(0===this.m&&0<=g&&0<=h)e-=this.oc*g,f-=this.pc*h,this.b.Rc&&(e=Math.round(e),f=Math.round(f)),b?a.drawImage(d,c.fh,c.gh,c.width,c.height,e,f,g,h):a.drawImage(d,e,f,g,h);else{this.b.Rc&&(e=Math.round(e),f=Math.round(f));a.save();var l=0<g?1:-1,k=0<h?1:-1;a.translate(e,f);1===l&&1===k||a.scale(l,k);a.rotate(this.m*l*k);e=0-this.oc*na(g);f=0-this.pc*na(h);b?a.drawImage(d,c.fh,
c.gh,c.width,c.height,e,f,na(g),na(h)):a.drawImage(d,e,f,na(g),na(h));a.restore()}};f.zf=function(a){this.Vb(a)};f.Vb=function(a){a.xc(this.Yj);a.jf(this.opacity);var c=this.Eb,b=this.Db;if(this.b.Rc){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;c.qh?a.Wd(b.rb+d,b.sb+e,b.cc+d,b.ec+e,b.Sb+d,b.Tb+e,b.Qb+d,b.Rb+e,c.Co):a.jh(b.rb+d,b.sb+e,b.cc+d,b.ec+e,b.Sb+d,b.Tb+e,b.Qb+d,b.Rb+e)}else c.qh?a.Wd(b.rb,b.sb,b.cc,b.ec,b.Sb,b.Tb,b.Qb,b.Rb,c.Co):a.jh(b.rb,b.sb,b.cc,b.ec,b.Sb,b.Tb,b.Qb,b.Rb)};
f.jw=function(a){var c=this.Eb,b,d;b=0;for(d=c.nn.length;b<d;b++)if(nb(a,c.nn[b][0]))return b;return-1};f.Vh=function(a,c){var b=this.Eb,d=b.nn,e;u(a)?e=this.jw(a):e=a-1;e=P(e);if(0>e||e>=d.length)return c?this.x:this.y;var f=(d[e][1]-b.oc)*this.width,d=d[e][2],d=(d-b.pc)*this.height,b=Math.cos(this.m);e=Math.sin(this.m);var g=f*b-d*e,d=d*b+f*e,f=g+this.x,d=d+this.y;return c?f:d};var k=[],g=-2,J=[];p.prototype.Kt=function(a){if(!a)return!1;var c=this.b,b=c.Hf(),d=b.type,e=null;b.H.collmemory?e=b.H.collmemory:
(e={},b.H.collmemory=e);b.H.spriteCreatedDestroyCallback||(b.H.spriteCreatedDestroyCallback=!0,c.Fj(function(a){var c=b.H.collmemory;a=a.uid;var d,e;for(d in c)c.hasOwnProperty(d)&&(e=c[d],e[0]===a||e[1]===a)&&(h(c[d]),delete c[d])}));var f=d.U(),k=a.U(),f=f.Wb(),n,q,p,G,D,B,L,v=this.b.$d,t=v-1,x=c.Va().Ya;for(q=0;q<f.length;q++){p=f[q];k.V?(p.za(),this.b.Vm(p.n,a,p.Da,J),n=J):n=k.Wb();for(G=0;G<n.length;G++)D=n[G],c.zc(p,D)||c.Gu(p,D)?(B=l(e,p,D),B=!B||g<t,m(e,p,D,v),B&&(c.fj(x.ya),B=d.U(),L=a.U(),
B.V=!1,L.V=!1,d===a?(B.j.length=2,B.j[0]=p,B.j[1]=D,d.Wc()):(B.j.length=1,L.j.length=1,B.j[0]=p,L.j[0]=D,d.Wc(),a.Wc()),x.so(),c.ef(x.ya))):r(e,p,D);Q(J)}return!1};var G=null,D=new da,n=!1,B=[],L=new va(0,0,0,0);d.finish=function(a){if(n){if(a){var c=this.b.Va().Ya.Qc;a=G.U();var b=D.Id(),d,e;if(a.V){a.V=!1;Q(a.j);d=0;for(e=b.length;d<e;++d)a.j[d]=b[d];if(c)for(Q(a.S),d=0,e=G.j.length;d<e;++d)b=G.j[d],D.contains(b)||a.S.push(b)}else if(c)for(c=a.j.length,d=0,e=b.length;d<e;++d)a.j[c+d]=b[d],Ea(a.S,
b[d]);else Ba(a.j,b);G.Wc()}D.clear();n=!1}};p.prototype.zt=function(a){if(a){var c=!1,b,d,e,f=this.b.Hf(),g=f.type,f=f.gi;b=a.U();d=this.b.Va().Ya.Qc;var h;b.V?(this.za(),L.wg(this.Da),L.offset(0,0),this.b.Vm(this.n,a,L,B),h=B):h=d?this.b.Rw()&&!b.S.length&&b.j.length?b.j:b.S:b.j;G=a;n=g!==a&&!f;b=0;for(d=h.length;b<d;b++)if(e=h[b],this.b.zc(this,e)){c=!0;if(f)break;g!==a&&D.add(e)}Q(B);a=c}else a=!1;return a};p.prototype.gt=function(a,c){return fc(this.J,a,c)};p.prototype.Et=function(a){return nb(this.Ap,
a)};p.prototype.Ft=function(){return!0};p.prototype.sg=function(){return!0};c.k=new p;a.prototype.nu=function(a,c,b){if(a&&c&&(c=this.b.Np(a,c,this.Vh(b,!0),this.Vh(b,!1)))){"undefined"!==typeof c.m&&(c.m=this.m,c.D());this.b.xd++;var d,e,f;this.b.trigger(Object.getPrototypeOf(a.Fa).k.Fh,c);if(c.qc)for(d=0,e=c.siblings.length;d<e;d++)f=c.siblings[d],this.b.trigger(Object.getPrototypeOf(f.type.Fa).k.Fh,f);this.b.xd--;d=this.b.ew();b=!1;if(ia(d.H.Spawn_LastExec)||d.H.Spawn_LastExec<this.b.Ff)b=!0,d.H.Spawn_LastExec=
this.b.Ff;if(a!=this.type&&(a=a.U(),a.V=!1,b?(Q(a.j),a.j[0]=c):a.j.push(c),c.qc))for(d=0,e=c.siblings.length;d<e;d++)f=c.siblings[d],a=f.type.U(),a.V=!1,b?(Q(a.j),a.j[0]=f):a.j.push(f)}};a.prototype.cu=function(a,c){this.Tj=a;this.Kp=c;this.pi||(this.b.wh(this),this.pi=!0);this.Ck||this.Rp()};a.prototype.du=function(a){this.Sj=a;this.pi||(this.b.wh(this),this.pi=!0);this.Ck||this.Sp()};a.prototype.fu=function(a){a=na(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.D())};c.I=new a;c.La=
new function(){}})();function wc(b){this.b=b}
(function(){function b(){return a.length?a.pop():{}}function p(c){var b,e;b=0;for(e=c.length;b<e;b++)a.push(c[b]);Q(c)}function h(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function q(){}var m=wc.prototype;m.L=function(){m.I.lu=function(a){this.width!==a&&(this.width=a,this.vh=!0,this.D())}};m.ja=function(a){this.Fa=a;this.b=a.b};var r=m.ja.prototype;r.L=function(){};r.Yi=function(){if(!this.K){var a,b,e;a=0;for(b=this.j.length;a<b;a++)e=this.j[a],e.Td=null,e.ag=null,
e.Hc=null}};m.Y=function(a){this.type=a;this.b=a.b;this.uc?Q(this.We):this.We=[];this.vh=!0};r=m.Y.prototype;r.L=function(){this.text=this.A[0];this.visible=0===this.A[1];this.font=this.A[2];this.color=this.A[3];this.yk=this.A[4];this.em=this.A[5];this.Zo=0===this.A[7];this.Gn=this.Mk=this.width;this.Lk=this.height;this.Hn=this.A[8];this.pk=this.Cg="";this.Cs=this.Ds=this.cj=0;this.Cx();this.Hc=this.ag=this.Td=null;this.nr=!1;this.Bi=this.b.$d;this.uc?this.gf.set(0,0,1,1):this.gf=new va(0,0,1,1);
this.b.C&&this.b.wh(this)};r.Cx=function(){var a=this.font.split(" "),b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.cj=parseInt(a[b].substr(0,a[b].length-2));this.lo=Math.ceil(this.cj/72*96)+4;0<b&&(this.pk=a[b-1]);this.Cg=a[b+1];for(b+=2;b<a.length;b++)this.Cg+=" "+a[b];break}};r.eb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.yk,va:this.em,wr:this.Zo,lho:this.Hn,fn:this.Cg,fs:this.pk,ps:this.cj,pxh:this.lo,tw:this.Ds,th:this.Cs,lrt:this.Bi}};r.zb=function(a){this.text=
a.t;this.font=a.f;this.color=a.c;this.yk=a.ha;this.em=a.va;this.Zo=a.wr;this.Hn=a.lho;this.Cg=a.fn;this.pk=a.fs;this.cj=a.ps;this.lo=a.pxh;this.Ds=a.tw;this.Cs=a.th;this.Bi=a.lrt;this.vh=!0;this.Gn=this.Mk=this.width;this.Lk=this.height};r.Ea=function(){if(this.b.C&&this.Hc&&300<=this.b.$d-this.Bi){var a=this.n;this.za();var b=this.Da;if(b.right<a.ua||b.bottom<a.wa||b.left>a.Ca||b.top>a.Ba)this.b.C.deleteTexture(this.Hc),this.Td=this.ag=this.Hc=null}};r.ue=function(){this.Td=this.ag=null;this.b.C&&
this.Hc&&this.b.C.deleteTexture(this.Hc);this.Hc=null};r.Jj=function(){this.font=this.pk+" "+this.cj.toString()+"pt "+this.Cg;this.vh=!0;this.b.Aa=!0};r.Lc=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var e=1;b&&(e=Math.abs(this.n.nc()),a.save(),a.scale(e,e));if(this.vh||this.width!==this.Gn)this.type.Fa.qu(this.text,this.We,a,this.width,this.Zo),this.vh=!1,this.Gn=this.width;this.za();var e=b?0:this.Db.rb,f=b?0:this.Db.sb;this.b.Rc&&(e=
e+.5|0,f=f+.5|0);0===this.m||b||(a.save(),a.translate(e,f),a.rotate(this.m),f=e=0);var h=f+this.height,g=this.lo,g=g+this.Hn,l,m;1===this.em?f+=Math.max(this.height/2-this.We.length*g/2,0):2===this.em&&(f+=Math.max(this.height-this.We.length*g-2,0));for(m=0;m<this.We.length&&!(l=e,1===this.yk?l=e+(this.width-this.We[m].width)/2:2===this.yk&&(l=e+(this.width-this.We[m].width)),a.fillText(this.We[m].text,l,f),f+=g,f>=h-g);m++);(0!==this.m||b)&&a.restore();this.Bi=this.b.$d};r.Vb=function(a){if(!(1>
this.width||1>this.height)){var b=this.vh||this.nr;this.nr=!1;var e=this.n.nc(),f=this.n.Ua(),h=this.gf,g=e*this.width,l=e*this.height,m=Math.ceil(g),q=Math.ceil(l),n=Math.abs(m),r=Math.abs(q),p=this.b.N/2,y=this.b.M/2;this.ag||(this.Td=document.createElement("canvas"),this.Td.width=n,this.Td.height=r,this.Mk=n,this.Lk=r,b=!0,this.ag=this.Td.getContext("2d"));if(n!==this.Mk||r!==this.Lk)this.Td.width=n,this.Td.height=r,this.Hc&&(a.deleteTexture(this.Hc),this.Hc=null),b=!0;b&&(this.ag.clearRect(0,
0,n,r),this.Lc(this.ag,!0),this.Hc||(this.Hc=a.Kc(n,r,this.b.Ha,this.b.Te)),a.Ey(this.Td,this.Hc,this.b.Te));this.Mk=n;this.Lk=r;a.xc(this.Hc);a.jf(this.opacity);a.jd();a.translate(-p,-y);a.Tc();var z=this.Db,b=this.n.Oa(z.rb,z.sb,!0,!0),n=this.n.Oa(z.rb,z.sb,!1,!0),r=this.n.Oa(z.cc,z.ec,!0,!0),p=this.n.Oa(z.cc,z.ec,!1,!0),y=this.n.Oa(z.Sb,z.Tb,!0,!0),E=this.n.Oa(z.Sb,z.Tb,!1,!0),F=this.n.Oa(z.Qb,z.Rb,!0,!0),z=this.n.Oa(z.Qb,z.Rb,!1,!0);if(this.b.Rc||0===this.m&&0===f)var w=(b+.5|0)-b,C=(n+.5|0)-
n,b=b+w,n=n+C,r=r+w,p=p+C,y=y+w,E=E+C,F=F+w,z=z+C;0===this.m&&0===f?(r=b+m,p=n,y=r,E=n+q,F=b,z=E,h.right=1,h.bottom=1):(h.right=g/m,h.bottom=l/q);a.Wd(b,n,r,p,y,E,F,z,h);a.jd();a.scale(e,e);a.zl(-this.n.Ua());a.translate((this.n.ua+this.n.Ca)/-2,(this.n.wa+this.n.Ba)/-2);a.Tc();this.Bi=this.b.$d}};var l=[];m.ou=function(a){Q(l);for(var b="",e,f=0;f<a.length;)if(e=a.charAt(f),"\n"===e)b.length&&(l.push(b),b=""),l.push("\n"),++f;else if(" "===e||"\t"===e||"-"===e){do b+=a.charAt(f),f++;while(f<a.length&&
(" "===a.charAt(f)||"\t"===a.charAt(f)));l.push(b);b=""}else f<a.length&&(b+=e,f++);b.length&&l.push(b)};var a=[];m.qu=function(a,d,e,f,h){if(a&&a.length)if(2>=f)p(d);else{if(100>=a.length&&-1===a.indexOf("\n")){var g=e.measureText(a).width;if(g<=f){p(d);d.push(b());d[0].text=a;d[0].width=g;return}}this.ru(a,d,e,f,h)}else p(d)};m.ru=function(c,d,e,f,m){m&&(this.ou(c),c=l);var g="",q,r,p,n=0;for(p=0;p<c.length;p++)"\n"===c[p]?(n>=d.length&&d.push(b()),g=h(g),r=d[n],r.text=g,r.width=e.measureText(g).width,
n++,g=""):(q=g,g+=c[p],r=e.measureText(g).width,r>=f&&(n>=d.length&&d.push(b()),q=h(q),r=d[n],r.text=q,r.width=e.measureText(q).width,n++,g=c[p],m||" "!==g||(g="")));g.length&&(n>=d.length&&d.push(b()),g=h(g),r=d[n],r.text=g,r.width=e.measureText(g).width,n++);for(p=n;p<d.length;p++)a.push(d[p]);d.length=n};q.prototype.it=function(a,b){return b?this.text==a:nb(this.text,a)};m.k=new q;m.I=new function(){};m.La=new function(){}})();function xc(b){this.b=b}
(function(){var b=xc.prototype;b.ja=function(b){this.Fa=b;this.b=b.b};var p=b.ja.prototype;p.L=function(){this.K||(this.P=new Image,this.P.Bm=this.Sl,this.b.Wo(this.P,this.Rl),this.fa=this.pattern=null)};p.Yi=function(){this.K||(this.fa=null)};p.el=function(){if(!this.K&&this.j.length){this.fa||(this.fa=this.b.C.Zg(this.P,!0,this.b.Ha,this.tj));var b,q;b=0;for(q=this.j.length;b<q;b++)this.j[b].fa=this.fa}};p.Ii=function(){this.K||this.fa||!this.b.C||(this.fa=this.b.C.Zg(this.P,!0,this.b.Ha,this.tj))};
p.Yl=function(){this.K||this.j.length||!this.fa||(this.b.C.deleteTexture(this.fa),this.fa=null)};p.ql=function(b){b.drawImage(this.P,0,0)};b.Y=function(b){this.type=b;this.b=b.b};p=b.Y.prototype;p.L=function(){this.visible=0===this.A[0];this.gf=new va(0,0,0,0);this.pq=!1;this.P=this.type.P;this.b.C?(this.type.Ii(),this.fa=this.type.fa):(this.type.pattern||(this.type.pattern=this.b.Ma.createPattern(this.type.P,"repeat")),this.pattern=this.type.pattern)};p.od=function(){this.pq=!1;this.P=this.type.P};
p.ue=function(){this.b.C&&this.pq&&this.fa&&(this.b.C.deleteTexture(this.fa),this.fa=null)};p.Lc=function(b){b.globalAlpha=this.opacity;b.save();b.fillStyle=this.pattern;var q=this.x,m=this.y;this.b.Rc&&(q=Math.round(q),m=Math.round(m));var r=-(this.oc*this.width),l=-(this.pc*this.height),a=r%this.P.width,c=l%this.P.height;0>a&&(a+=this.P.width);0>c&&(c+=this.P.height);b.translate(q,m);b.rotate(this.m);b.translate(a,c);b.fillRect(r-a,l-c,this.width,this.height);b.restore()};p.zf=function(b){this.Vb(b)};
p.Vb=function(b){b.xc(this.fa);b.jf(this.opacity);var q=this.gf;q.right=this.width/this.P.width;q.bottom=this.height/this.P.height;var m=this.Db;if(this.b.Rc){var r=Math.round(this.x)-this.x,l=Math.round(this.y)-this.y;b.Wd(m.rb+r,m.sb+l,m.cc+r,m.ec+l,m.Sb+r,m.Tb+l,m.Qb+r,m.Rb+l,q)}else b.Wd(m.rb,m.sb,m.cc,m.ec,m.Sb,m.Tb,m.Qb,m.Rb,q)};b.k=new function(){};b.I=new function(){};b.La=new function(){}})();function yc(b){this.b=b}
(function(){function b(){}var p=yc.prototype;p.ja=function(b){this.behavior=b;this.b=b.b};p.ja.prototype.L=function(){};p.Y=function(b,h){this.type=b;this.behavior=b.behavior;this.d=h;this.b=b.b};var h=p.Y.prototype;h.L=function(){var b=this.A[0];this.gb=this.A[1];this.Hb=this.A[2];this.Bu=0!==this.A[3];this.zo=0!==this.A[4];this.u=Math.cos(this.d.m)*b;this.B=Math.sin(this.d.m)*b;this.Nk=this.d.x;this.Ok=this.d.y;this.Tg=this.d.m;this.Vl=0;this.enabled=0!==this.A[5]};h.eb=function(){return{acc:this.gb,
g:this.Hb,dx:this.u,dy:this.B,lx:this.Nk,ly:this.Ok,lka:this.Tg,t:this.Vl,e:this.enabled}};h.zb=function(b){this.gb=b.acc;this.Hb=b.g;this.u=b.dx;this.B=b.dy;this.Nk=b.lx;this.Ok=b.ly;this.Tg=b.lka;this.Vl=b.t;this.enabled=b.e};h.Ea=function(){if(this.enabled){var b=this.b.ke(this.d),h,r;this.d.m!==this.Tg&&(this.zo&&(h=Ta(0,0,this.u,this.B),this.u=Math.cos(this.d.m)*h,this.B=Math.sin(this.d.m)*h),this.Tg=this.d.m);0!==this.gb&&(h=Ta(0,0,this.u,this.B),r=0===this.u&&0===this.B?this.d.m:Na(0,0,this.u,
this.B),h+=this.gb*b,0>h&&(h=0),this.u=Math.cos(r)*h,this.B=Math.sin(r)*h);0!==this.Hb&&(this.B+=this.Hb*b);this.Nk=this.d.x;this.Ok=this.d.y;if(0!==this.u||0!==this.B)if(this.d.x+=this.u*b,this.d.y+=this.B*b,this.Vl+=Ta(0,0,this.u*b,this.B*b),this.zo&&(this.d.m=Na(0,0,this.u,this.B),this.d.D(),this.Tg=this.d.m),this.d.D(),this.Bu&&(h=this.b.Nb(this.d)))this.b.kh(this.d,h),h=Ta(0,0,this.u,this.B),r=this.b.Eu(this.d,this.Nk,this.Ok),this.u=Math.cos(r)*h,this.B=Math.sin(r)*h,this.d.x+=this.u*b,this.d.y+=
this.B*b,this.d.D(),this.zo&&(this.Tg=this.d.m=r,this.d.D()),this.b.hd(this.d,this.u/h,this.B/h,Math.max(2.5*h*b,30))||this.b.Vr(this.d,100)}};p.k=new function(){};b.prototype.Gh=function(b){var h=Na(0,0,this.u,this.B);this.u=Math.cos(h)*b;this.B=Math.sin(h)*b};b.prototype.up=function(b){b=U(b);var h=Ta(0,0,this.u,this.B);this.u=Math.cos(b)*h;this.B=Math.sin(b)*h};b.prototype.of=function(b){this.enabled=1===b};p.I=new b;p.La=new function(){}})();function zc(b){this.b=b}
(function(){function b(){}var p=zc.prototype;p.ja=function(a){this.behavior=a;this.b=a.b};var h=p.ja.prototype;h.L=function(){this.dg=[]};h.Xv=function(a){var c,b,e;c=0;for(b=a.R.length;c<b;++c)if(e=a.R[c],e instanceof zc.prototype.Y&&e.type===this)return e;return null};p.Y=function(a,c){this.type=a;this.behavior=a.behavior;this.d=c;this.b=a.b};h=p.Y.prototype;h.L=function(){this.nx=this.A[0];this.Lb=this.A[1];this.zm=U(this.A[2]);this.uj=0!==this.A[3]};h.ue=function(){};h.eb=function(){var a={r:this.Lb,
c:this.zm,t:[]},c,b;c=0;for(b=this.type.dg.length;c<b;c++)a.t.push(this.type.dg[c].ca);return a};h.zb=function(a){this.Lb=a.r;this.zm=a.c;Q(this.type.dg);var c,b,e;c=0;for(b=a.t.length;c<b;c++)(e=this.b.Hg(a.t[c]))&&this.type.dg.push(e)};h.Ea=function(){};var q=[],m=new va(0,0,0,0);h.Kw=function(a,c){var b=this.d.x,e=this.d.y,f=this.d.m;0>this.d.width&&(f+=Math.PI);if(Ta(b,e,a,c)>this.Lb||Oa(f,Na(b,e,a,c))>this.zm/2)return!1;var h,g;m.set(b,e,a,c);m.normalize();if(0===this.nx)for(this.uj?this.b.jq(this.d.n,
m,q):(f=this.b.Fo)&&Ca(q,f.al.Id()),f=0,h=q.length;f<h;++f){if(g=q[f],g.H.solidEnabled&&g!==this.d&&this.b.As(b,e,a,c,g))return Q(q),!1}else{if(this.uj)this.b.Yh(this.d.n,this.type.dg,m,q);else for(f=0,h=this.type.dg.length;f<h;++f)Ca(q,this.type.dg[f].j);f=0;for(h=q.length;f<h;++f)if(g=q[f],g!==this.d&&this.b.As(b,e,a,c,g))return Q(q),!1}Q(q);return!0};var r=new da,l=new da;b.prototype.tt=function(a){if(!a)return!1;var c,b,e,f,h,g,m,q,p=this.b.fw().U();a=a.U();var n=p.Wb(),B=a.Wb();p.V&&Q(p.S);a.V&&
Q(a.S);var L=this.b.Hf().gi;c=0;for(e=n.length;c<e;++c){h=n[c];q=!1;g=this.Xv(h);b=0;for(f=B.length;b<f;++b)m=B[b],h!==m&&Ua(g.Kw(m.x,m.y),L)&&(q=!0,l.add(m));q&&r.add(h)}c=r.Id();b=l.Id();p.V=!1;a.V=!1;Ba(p.j,c);Ba(a.j,b);r.clear();l.clear();return p.Bk()};p.k=new b;p.I=new function(){};p.La=new function(){}})();function Ac(b){this.b=b}
(function(){function b(){}function p(){}var h=Ac.prototype;h.ja=function(b){this.behavior=b;this.b=b.b};h.ja.prototype.L=function(){};h.Y=function(b,h){this.type=b;this.behavior=b.behavior;this.d=h;this.b=b.b;this.oj=this.Il=this.Hl=this.mn=this.Lh=this.Qh=this.Qg=this.Rg=this.ij=this.Ci=!1;this.Zb=null;this.In=-1;this.Tf=this.Sf=0;this.ok=!1;this.Dg=this.qd=0;this.mk=!0;this.B=this.u=0};var q=h.Y.prototype;q.Rs=function(){this.ub=Math.cos(this.Gg);this.wb=Math.sin(this.Gg);this.hg=Math.cos(this.Gg-
Math.PI/2);this.ig=Math.sin(this.Gg-Math.PI/2);this.ub=mb(this.ub);this.wb=mb(this.wb);this.hg=mb(this.hg);this.ig=mb(this.ig);this.Sm=this.Hb;0>this.Hb&&(this.ub*=-1,this.wb*=-1,this.Hb=Math.abs(this.Hb))};q.L=function(){this.dh=this.A[0];this.gb=this.A[1];this.zg=this.A[2];this.xi=this.A[3];this.Sm=this.Hb=this.A[4];this.$k=this.A[5];this.Im=0!==this.A[6];this.Dn=this.A[7]/1E3;this.Mu=1===this.A[8];this.enabled=0!==this.A[9];this.Dh=!1;this.Eh=this.b.lf(this.d);this.Jn=-1;this.mg=0;this.Gg=U(90);
this.Rs();var b=this;this.Mu&&!this.b.lb&&(jQuery(document).keydown(function(h){b.Xn(h)}),jQuery(document).keyup(function(h){b.Yn(h)}));this.uc||(this.Si=function(h){b.Wi(h)});this.b.Fj(this.Si);this.d.H.isPlatformBehavior=!0};q.eb=function(){return{ii:this.mn,lfx:this.Sf,lfy:this.Tf,lfo:this.Zb?this.Zb.uid:-1,am:this.qd,en:this.enabled,fall:this.Dg,ft:this.mk,dx:this.u,dy:this.B,ms:this.dh,acc:this.gb,dec:this.zg,js:this.xi,g:this.Hb,g1:this.Sm,mf:this.$k,wof:this.Dh,woj:this.Eh?this.Eh.uid:-1,ga:this.Gg,
edj:this.Im,cdj:this.Lh,dj:this.Qh,sus:this.Dn}};q.zb=function(b){this.mn=b.ii;this.Sf=b.lfx;this.Tf=b.lfy;this.In=b.lfo;this.qd=b.am;this.enabled=b.en;this.Dg=b.fall;this.mk=b.ft;this.u=b.dx;this.B=b.dy;this.dh=b.ms;this.gb=b.acc;this.zg=b.dec;this.xi=b.js;this.Hb=b.g;this.Sm=b.g1;this.$k=b.mf;this.Dh=b.wof;this.Jn=b.woj;this.Gg=b.ga;this.Im=b.edj;this.Lh=b.cdj;this.Qh=b.dj;this.Dn=b.sus;this.oj=this.Il=this.Hl=this.Qg=this.Rg=this.ij=this.Ci=!1;this.mg=0;this.Rs()};q.od=function(){-1===this.In?
this.Zb=null:this.Zb=this.b.Jf(this.In);-1===this.Jn?this.Eh=null:this.Eh=this.b.Jf(this.Jn)};q.Wi=function(b){this.Zb==b&&(this.Zb=null)};q.ue=function(){this.Zb=null;this.b.Xr(this.Si)};q.Xn=function(b){switch(b.which){case 38:b.preventDefault();this.Rg=!0;break;case 37:b.preventDefault();this.Ci=!0;break;case 39:b.preventDefault(),this.ij=!0}};q.Yn=function(b){switch(b.which){case 38:b.preventDefault();this.Qg=this.Rg=!1;break;case 37:b.preventDefault();this.Ci=!1;break;case 39:b.preventDefault(),
this.ij=!1}};q.cf=function(){this.Rg=this.ij=this.Ci=!1};q.Jj=function(){return 0>this.Hb?-1:1};q.Dq=function(){var b=null,h=null,l,a;l=this.d.x;a=this.d.y;this.d.x+=this.ub;this.d.y+=this.wb;this.d.D();if(this.Zb&&this.b.zc(this.d,this.Zb)&&(!this.b.No(this.Zb.type,qc)||this.Zb.H.solidEnabled))return this.d.x=l,this.d.y=a,this.d.D(),this.Zb;(b=this.b.Nb(this.d))||0!==this.Dg||(h=this.b.lf(this.d,!0));this.d.x=l;this.d.y=a;this.d.D();if(b){if(this.b.zc(this.d,b))return null;this.ok=!1;return b}if(h&&
h.length){a=b=0;for(l=h.length;b<l;b++)h[a]=h[b],this.b.zc(this.d,h[b])||a++;if(1<=a)return this.ok=!0,h[0]}return null};q.Ea=function(){};q.Rr=function(){var b=this.b.ke(this.d),h,l,a,c,d,e,f,k,g;this.Rg||this.oj||(this.Qg=!1);var q=this.Ci||this.Hl;a=this.ij||this.Il;var p=(c=this.Rg||this.oj)&&!this.Qg;this.oj=this.Il=this.Hl=!1;if(this.enabled){this.mn&&(p=c=a=q=!1);c||(this.mg=0);k=this.Zb;g=!1;this.mk&&((this.b.Nb(this.d)||this.b.lf(this.d))&&this.b.hd(this.d,-this.ub,-this.wb,4,!0),this.mk=
!1);!k||0!==this.B||k.y===this.Tf&&k.x===this.Sf||(h=k.x-this.Sf,l=k.y-this.Tf,this.d.x+=h,this.d.y+=l,this.d.D(),this.Sf=k.x,this.Tf=k.y,g=!0,this.b.Nb(this.d)&&this.b.hd(this.d,-h,-l,2.5*Math.sqrt(h*h+l*l)));var D=this.Dq();if(l=this.b.Nb(this.d))if(this.d.H.inputPredicted)this.b.hd(this.d,-this.ub,-this.wb,10,!1);else if(this.b.Vr(this.d,Math.max(this.d.width,this.d.height)/2))this.b.kh(this.d,l);else return;D?(this.Lh=this.Qh=!1,0<this.B&&(this.Dh||(this.b.ko(this.d,-this.ub,-this.wb,D),this.Dh=
!0),this.B=0),k!=D)?(this.Zb=D,this.Sf=D.x,this.Tf=D.y,this.b.kh(this.d,D)):g&&(l=this.b.Nb(this.d))&&(this.b.kh(this.d,l),0!==h&&(0<h?this.b.hd(this.d,-this.hg,-this.ig):this.b.hd(this.d,this.hg,this.ig)),this.b.hd(this.d,-this.ub,-this.wb)):c||(this.Lh=!0);if(D&&p||!D&&this.Im&&c&&this.Lh&&!this.Qh)k=this.d.x,g=this.d.y,this.d.x-=this.ub,this.d.y-=this.wb,this.d.D(),this.b.Nb(this.d)?p=!1:(this.mg=this.Dn,this.b.trigger(Ac.prototype.k.gp,this.d),this.qd=2,this.B=-this.xi,p=!0,D?this.Qg=!0:this.Qh=
!0),this.d.x=k,this.d.y=g,this.d.D();D||(c&&0<this.mg?(this.B=-this.xi,this.mg-=b):(this.Zb=null,this.B+=this.Hb*b,this.B>this.$k&&(this.B=this.$k)),p&&(this.Qg=!0));this.Dh=!!D;q==a&&(0>this.u?(this.u+=this.zg*b,0<this.u&&(this.u=0)):0<this.u&&(this.u-=this.zg*b,0>this.u&&(this.u=0)));q&&!a&&(this.u=0<this.u?this.u-(this.gb+this.zg)*b:this.u-this.gb*b);a&&!q&&(this.u=0>this.u?this.u+(this.gb+this.zg)*b:this.u+this.gb*b);this.u>this.dh?this.u=this.dh:this.u<-this.dh&&(this.u=-this.dh);q=!1;0!==this.u&&
(k=this.d.x,g=this.d.y,h=this.u*b*this.hg,l=this.u*b*this.ig,this.d.x+=this.hg*(1<this.u?1:-1)-this.ub,this.d.y+=this.ig*(1<this.u?1:-1)-this.wb,this.d.D(),c=!1,d=this.b.Nb(this.d),this.d.x=k+h,this.d.y=g+l,this.d.D(),a=this.b.Nb(this.d),!a&&D&&(a=this.b.lf(this.d))&&(this.d.x=k,this.d.y=g,this.d.D(),this.b.zc(this.d,a)?(a=null,c=!1):c=!0,this.d.x=k+h,this.d.y=g+l,this.d.D()),a?(h=Math.abs(this.u*b)+2,d||!this.b.hd(this.d,-this.ub,-this.wb,h,c,a))?(this.b.kh(this.d,a),h=Math.max(Math.abs(this.u*b*
2.5),30),this.b.hd(this.d,this.hg*(0>this.u?1:-1),this.ig*(0>this.u?1:-1),h,!1)?!D||c||this.ok||(k=this.d.x,g=this.d.y,this.d.x+=this.ub,this.d.y+=this.wb,this.b.Nb(this.d)?this.b.hd(this.d,-this.ub,-this.wb,3,!1)||(this.d.x=k,this.d.y=g,this.d.D()):(this.d.x=k,this.d.y=g,this.d.D())):(this.d.x=k,this.d.y=g,this.d.D()),c||(this.u=0)):!d&&!p&&Math.abs(this.B)<Math.abs(this.xi/4)&&(this.B=0,D||(q=!0)):(k=this.Dq(),D&&!k?(l=Math.ceil(Math.abs(this.u*b))+2,k=this.d.x,g=this.d.y,this.d.x+=this.ub*l,this.d.y+=
this.wb*l,this.d.D(),this.b.Nb(this.d)||this.b.lf(this.d)?this.b.hd(this.d,-this.ub,-this.wb,l+2,!0):(this.d.x=k,this.d.y=g,this.d.D())):k&&0===this.B&&this.b.ko(this.d,-this.ub,-this.wb,k)));if(0!==this.B){k=this.d.x;g=this.d.y;this.d.x+=this.B*b*this.ub;this.d.y+=this.B*b*this.wb;h=this.d.x;a=this.d.y;this.d.D();l=this.b.Nb(this.d);c=!1;if(!l&&0<this.B&&!D){if((c=0<this.Dg?null:this.b.lf(this.d,!0))&&c.length){if(this.Eh){this.d.x=k;this.d.y=g;this.d.D();f=d=0;for(e=c.length;d<e;d++)c[f]=c[d],this.b.zc(this.d,
c[d])||f++;c.length=f;this.d.x=h;this.d.y=a;this.d.D()}1<=c.length&&(l=c[0])}c=!!l}l&&(this.b.kh(this.d,l),this.mg=0,h=c?Math.abs(this.B*b*2.5+10):Math.max(Math.abs(this.B*b*2.5+10),30),this.b.hd(this.d,this.ub*(0>this.B?1:-1),this.wb*(0>this.B?1:-1),h,c,l)?(this.Zb=l,this.Sf=l.x,this.Tf=l.y,(this.ok=c)&&(q=!0),this.B=0):(this.d.x=k,this.d.y=g,this.d.D(),this.Dh=!0,c||(this.B=0)))}3!==this.qd&&0<this.B&&!D&&(this.b.trigger(Ac.prototype.k.Mt,this.d),this.qd=3);if(D||q)3===this.qd||q||p&&0===this.B?
(this.b.trigger(Ac.prototype.k.kp,this.d),this.qd=0===this.u&&0===this.B?0:1):(0!==this.qd&&0===this.u&&0===this.B&&(this.b.trigger(Ac.prototype.k.sp,this.d),this.qd=0),1===this.qd||0===this.u&&0===this.B||p||(this.b.trigger(Ac.prototype.k.op,this.d),this.qd=1));0<this.Dg&&this.Dg--;this.Eh=this.b.lf(this.d)}};b.prototype.gp=function(){return!0};b.prototype.Mt=function(){return!0};b.prototype.sp=function(){return!0};b.prototype.op=function(){return!0};b.prototype.kp=function(){return!0};h.k=new b;
p.prototype.mu=function(b){switch(b){case 0:this.Hl=!0;break;case 1:this.Il=!0;break;case 2:this.oj=!0}};p.prototype.ju=function(b){this.B=b};p.prototype.of=function(b){this.enabled!==(1===b)&&(this.enabled=1===b,this.enabled||(this.Zb=null))};h.I=new p;h.La=new function(){}})();function Bc(b){this.b=b}
(function(){function b(){}var p=Bc.prototype;p.ja=function(b){this.behavior=b;this.b=b.b};p.ja.prototype.L=function(){};p.Y=function(b,h){this.type=b;this.behavior=b.behavior;this.d=h;this.b=b.b};var h=p.Y.prototype;h.L=function(){this.speed=U(this.A[0]);this.gb=U(this.A[1])};h.eb=function(){return{speed:this.speed,acc:this.gb}};h.zb=function(b){this.speed=b.speed;this.gb=b.acc};h.Ea=function(){var b=this.b.ke(this.d);0!==b&&(0!==this.gb&&(this.speed+=this.gb*b),0!==this.speed&&(this.d.m=Ia(this.d.m+
this.speed*b),this.d.D()))};p.k=new function(){};b.prototype.Gh=function(b){this.speed=U(b)};p.I=new b;p.La=new function(){}})();function Cc(b){this.b=b}
(function(){var b=Cc.prototype;b.ja=function(b){this.behavior=b;this.b=b.b};b.ja.prototype.L=function(){};b.Y=function(b,h){this.type=b;this.behavior=b.behavior;this.d=h;this.b=b.b;this.jb=0};var p=b.Y.prototype,h=2*Math.PI,q=Math.PI/2,m=3*Math.PI/2;p.L=function(){this.Pa=1===this.A[0];this.Ri=this.A[1];this.Yo=this.A[2];this.ve=this.A[3];this.ve+=Math.random()*this.A[4];0===this.ve?this.jb=0:(this.jb=this.A[5]/this.ve*h,this.jb+=Math.random()*this.A[6]/this.ve*h);this.rc=this.A[7];this.rc+=Math.random()*
this.A[8];this.gj=this.Nf=this.la=0;this.init()};p.eb=function(){return{i:this.jb,a:this.Pa,mv:this.Ri,w:this.Yo,p:this.ve,mag:this.rc,iv:this.la,iv2:this.Nf,r:this.gj,lkv:this.Fc,lkv2:this.yi}};p.zb=function(b){this.jb=b.i;this.Pa=b.a;this.Ri=b.mv;this.Yo=b.w;this.ve=b.p;this.rc=b.mag;this.la=b.iv;this.Nf=b.iv2||0;this.gj=b.r;this.Fc=b.lkv;this.yi=b.lkv2||0};p.init=function(){switch(this.Ri){case 0:this.la=this.d.x;break;case 1:this.la=this.d.y;break;case 2:this.la=this.d.width;this.gj=this.d.height/
this.d.width;break;case 3:this.la=this.d.width;break;case 4:this.la=this.d.height;break;case 5:this.la=this.d.m;this.rc=U(this.rc);break;case 6:this.la=this.d.opacity;break;case 7:this.la=0;break;case 8:this.la=this.d.x,this.Nf=this.d.y}this.Fc=this.la;this.yi=this.Nf};p.Ee=function(b){b=b%h;switch(this.Yo){case 0:return Math.sin(b);case 1:return b<=q?b/q:b<=m?1-2*(b-q)/Math.PI:(b-m)/q-1;case 2:return 2*b/h-1;case 3:return-2*b/h+1;case 4:return b<Math.PI?-1:1}return 0};p.Ea=function(){var b=this.b.ke(this.d);
this.Pa&&0!==b&&(0===this.ve?this.jb=0:(this.jb+=b/this.ve*h,this.jb=this.jb%h),this.zy())};p.zy=function(){switch(this.Ri){case 0:this.d.x!==this.Fc&&(this.la+=this.d.x-this.Fc);this.d.x=this.la+this.Ee(this.jb)*this.rc;this.Fc=this.d.x;break;case 1:this.d.y!==this.Fc&&(this.la+=this.d.y-this.Fc);this.d.y=this.la+this.Ee(this.jb)*this.rc;this.Fc=this.d.y;break;case 2:this.d.width=this.la+this.Ee(this.jb)*this.rc;this.d.height=this.d.width*this.gj;break;case 3:this.d.width=this.la+this.Ee(this.jb)*
this.rc;break;case 4:this.d.height=this.la+this.Ee(this.jb)*this.rc;break;case 5:this.d.m!==this.Fc&&(this.la=Ia(this.la+(this.d.m-this.Fc)));this.d.m=Ia(this.la+this.Ee(this.jb)*this.rc);this.Fc=this.d.m;break;case 6:this.d.opacity=this.la+this.Ee(this.jb)*this.rc/100;0>this.d.opacity?this.d.opacity=0:1<this.d.opacity&&(this.d.opacity=1);break;case 8:this.d.x!==this.Fc&&(this.la+=this.d.x-this.Fc),this.d.y!==this.yi&&(this.Nf+=this.d.y-this.yi),this.d.x=this.la+Math.cos(this.d.m)*this.Ee(this.jb)*
this.rc,this.d.y=this.Nf+Math.sin(this.d.m)*this.Ee(this.jb)*this.rc,this.Fc=this.d.x,this.yi=this.d.y}this.d.D()};p.Dr=function(b,h){switch(this.Ri){case 2:this.la*=h.width/b.width;this.gj=h.height/h.width;break;case 3:this.la*=h.width/b.width;break;case 4:this.la*=h.height/b.height}};b.k=new function(){};b.I=new function(){};b.La=new function(){}})();function Dc(b){this.b=b}
(function(){function b(){}function p(){}var h=Dc.prototype;h.ja=function(b){this.behavior=b;this.b=b.b};h.ja.prototype.L=function(){this.Ed=[]};h.Y=function(b,a){this.type=b;this.behavior=b.behavior;this.d=a;this.b=b.b};var q=h.Y.prototype;q.L=function(){this.Lb=this.A[0];this.ff=this.A[1];this.xl=0!==this.A[2];this.uo=U(this.A[3]);this.Pl=this.A[4];this.pl=0!==this.A[5];this.jo=this.A[6];this.enabled=0!==this.A[7];this.uj=0!==this.A[8];this.Jk=0;this.ud=this.ff;this.currentTarget=null;this.Kn=-1;
this.fg=this.eg=0;this.Ug=[0,0,0,0];this.Dd=0;this.Uh=!0;var b=this;this.uc||(this.Si=function(a){b.Wi(a)});this.b.Fj(this.Si)};q.eb=function(){var b={r:this.Lb,rof:this.ff,re:this.xl,rs:this.uo,tm:this.Pl,pa:this.pl,ps:this.jo,en:this.enabled,lct:this.Jk,ftc:this.ud,target:this.currentTarget?this.currentTarget.uid:-1,ox:this.eg,oy:this.fg,ls:this.Ug,sc:this.Dd,targs:[]},a,c;a=0;for(c=this.type.Ed.length;a<c;a++)b.targs.push(this.type.Ed[a].ca);return b};q.zb=function(b){this.Lb=b.r;this.ff=b.rof;
this.xl=b.re;this.uo=b.rs;this.Pl=b.tm;this.pl=b.pa;this.jo=b.ps;this.enabled=b.en;this.Jk=b.lct;this.ud=b.ftc||0;this.Kn=b.target;this.eg=b.ox;this.fg=b.oy;this.Ug=b.ls;this.Dd=b.sc;Q(this.type.Ed);var a,c,d;a=0;for(c=b.targs.length;a<c;a++)(d=this.b.Hg(b.targs[a]))&&this.type.Ed.push(d)};q.od=function(){-1===this.Kn?this.currentTarget=null:this.currentTarget=this.b.Jf(this.Kn)};q.Wi=function(b){this.currentTarget==b&&(this.currentTarget=null)};q.ue=function(){this.currentTarget=null;this.b.Xr(this.Si)};
q.uu=function(b){4>this.Dd?(this.Ug[this.Dd]=b,this.Dd++):(this.Ug.shift(),this.Ug.push(b))};q.cn=function(){for(var b=0,a=0;a<this.Dd;a++)b+=this.Ug[a];return b/this.Dd};q.Aq=function(b){var a=this.d,c=b.x-a.x;b=b.y-a.y;return c*c+b*b<=this.Lb*this.Lb};var m=new va(0,0,0,0),r=[];q.gx=function(){var b,a,c;m.left=this.d.x-this.Lb;m.top=this.d.y-this.Lb;m.right=this.d.x+this.Lb;m.bottom=this.d.y+this.Lb;if(this.uj)this.b.Yh(null,this.type.Ed,m,r);else for(b=0,a=this.type.Ed.length;b<a;++b)Ca(r,this.type.Ed[b].j);
b=0;for(a=r.length;b<a;++b)if(c=r[b],this.Aq(c)){this.currentTarget=c;Q(r);return}Q(r)};q.hx=function(){var b,a,c,d,e,f=this.d.x,h=this.d.y,g=this.Lb*this.Lb;this.currentTarget=null;m.left=f-this.Lb;m.top=h-this.Lb;m.right=f+this.Lb;m.bottom=h+this.Lb;if(this.uj)this.b.Yh(null,this.type.Ed,m,r);else for(b=0,a=this.type.Ed.length;b<a;++b)Ca(r,this.type.Ed[b].j);b=0;for(a=r.length;b<a;++b)c=r[b],d=f-c.x,e=h-c.y,d=d*d+e*e,d<g&&(this.currentTarget=c,g=d);r.length=0};q.Ea=function(){var b=this.b.ke(this.d),
a=this.b.mb.ea,c=this.d;if(this.enabled){this.currentTarget&&!this.Aq(this.currentTarget)&&(this.currentTarget=null,this.Dd=0,this.Uh=!0);a>=this.Jk+.1&&((this.Jk=a,0!==this.Pl||this.currentTarget)?1===this.Pl&&(a=this.currentTarget,this.hx(),this.currentTarget&&this.currentTarget!==a&&(this.Dd=0,this.Uh=!0,this.eg=this.currentTarget.x,this.fg=this.currentTarget.y,this.b.trigger(Dc.prototype.k.tp,this.d))):(this.gx(),this.currentTarget&&(this.Dd=0,this.Uh=!0,this.eg=this.currentTarget.x,this.fg=this.currentTarget.y,
this.b.trigger(Dc.prototype.k.tp,this.d))));this.ud+=b;if(this.currentTarget){a=Na(c.x,c.y,this.currentTarget.x,this.currentTarget.y);if(this.pl){var d=c.x,e=c.y,f=this.currentTarget.x,h=this.currentTarget.y,g=Na(f,h,this.eg,this.fg);this.Uh||this.uu(Ta(f,h,this.eg,this.fg)/b);var m=this.cn(),p=h-e,q=f-d,d=(m*Math.sin(g)*(d-f)-m*Math.cos(g)*(e-h))/this.jo,p=Math.asin(d/Math.sqrt(p*p+q*q))-Math.atan2(p,-q)+Math.PI;isNaN(p)||(a=p)}this.xl&&(c.m=Pa(c.m,a,this.uo*b),c.D());this.ud>=this.ff&&(!this.xl||
.1>=Ga(Oa(c.m,a)))&&(!this.pl||4<=this.Dd)&&(this.ud-=this.ff,this.ud>=this.ff&&(this.ud=0),this.b.trigger(Dc.prototype.k.rp,this.d));this.currentTarget&&(this.eg=this.currentTarget.x,this.fg=this.currentTarget.y);this.Uh=!1}this.ud>this.ff&&(this.ud=this.ff)}};b.prototype.rp=function(){return!0};b.prototype.tp=function(){return!0};h.k=new b;p.prototype.Xs=function(b){var a=this.type.Ed;if(-1===a.indexOf(b)){var c,d,e;c=0;for(d=a.length;c<d;c++)if(e=a[c],e.K&&-1!==e.$f.indexOf(b))return;a.push(b)}};
p.prototype.of=function(b){this.enabled=0!==b};h.I=new p;h.La=new function(){}})();function Ec(b){this.b=b}
(function(){function b(){}function p(){}function h(){}var q=Ec.prototype;q.ja=function(b){this.behavior=b;this.b=b.b};q.ja.prototype.L=function(){};q.Y=function(b,h){this.type=b;this.behavior=b.behavior;this.d=h;this.b=b.b;this.vf=this.B=this.u=0};var m=q.Y.prototype;m.L=function(){this.sh=this.A[0];this.mo=this.A[1];this.enabled=0!==this.A[2]};m.eb=function(){return{dx:this.u,dy:this.B,cancelStep:this.vf,enabled:this.enabled,stepMode:this.sh,pxPerStep:this.mo}};m.zb=function(b){this.u=b.dx;this.B=
b.dy;this.vf=b.cancelStep;this.enabled=b.enabled;this.sh=b.stepMode;this.mo=b.pxPerStep};m.cn=function(){return Math.sqrt(this.u*this.u+this.B*this.B)};m.Ua=function(){return Math.atan2(this.B,this.u)};m.step=function(b,h,a){if(0!==b||0!==h){var c=this.d.x,d=this.d.y,e,f=Math.round(Math.sqrt(b*b+h*h)/this.mo);0===f&&(f=1);var k;for(k=1;k<=f;k++)if(e=k/f,this.d.x=c+b*e,this.d.y=d+h*e,this.d.D(),this.b.trigger(a,this.d),1===this.vf){k--;e=k/f;this.d.x=c+b*e;this.d.y=d+h*e;this.d.D();break}else if(2===
this.vf)break}};m.Ea=function(){var b=this.b.ke(this.d),h=this.u*b,b=this.B*b;0===this.u&&0===this.B||!this.enabled||(this.vf=0,0===this.sh?(this.d.x+=h,this.d.y+=b):1===this.sh?this.step(h,b,Ec.prototype.k.It):2===this.sh?(this.step(h,0,Ec.prototype.k.dp),this.vf=0,this.step(0,b,Ec.prototype.k.ep)):3===this.sh&&(this.step(0,b,Ec.prototype.k.ep),this.vf=0,this.step(h,0,Ec.prototype.k.dp)),this.d.D())};b.prototype.It=function(){return!0};b.prototype.dp=function(){return!0};b.prototype.ep=function(){return!0};
q.k=new b;p.prototype.Gh=function(b,h){var a;switch(b){case 0:a=this.Ua();this.u=Math.cos(a)*h;this.B=Math.sin(a)*h;break;case 1:this.u=h;break;case 2:this.B=h}};p.prototype.up=function(b){b=U(b);var h=this.cn();this.u=Math.cos(b)*h;this.B=Math.sin(b)*h};p.prototype.of=function(b){this.enabled=1===b};q.I=new p;h.prototype.u=function(b){b.O(this.u)};h.prototype.B=function(b){b.O(this.B)};q.La=new h})();function rc(b){this.b=b}
(function(){function b(){}var p=rc.prototype;p.ja=function(b){this.behavior=b;this.b=b.b};p.ja.prototype.L=function(){};p.Y=function(b,h){this.type=b;this.behavior=b.behavior;this.d=h;this.b=b.b};var h=p.Y.prototype;h.L=function(){this.d.H.jumpthruEnabled=0!==this.A[0]};h.Ea=function(){};p.k=new function(){};b.prototype.of=function(b){this.d.H.jumpthruEnabled=!!b};p.I=new b})();function qc(b){this.b=b}
(function(){function b(){}var p=qc.prototype;p.ja=function(b){this.behavior=b;this.b=b.b};p.ja.prototype.L=function(){};p.Y=function(b,h){this.type=b;this.behavior=b.behavior;this.d=h;this.b=b.b};var h=p.Y.prototype;h.L=function(){this.d.H.solidEnabled=0!==this.A[0]};h.Ea=function(){};p.k=new function(){};b.prototype.of=function(b){this.d.H.solidEnabled=!!b};p.I=new b})();
function pc(){return[sc,Z,uc,vc,tc,Y,xc,wc,Ac,qc,Bc,rc,Dc,zc,yc,Ec,Cc,X.prototype.k.lp,X.prototype.I.iu,Y.prototype.La.vp,Y.prototype.La.wp,Dc.prototype.I.Xs,Y.prototype.k.Kt,sc.prototype.I.Play,Ac.prototype.I.ju,Y.prototype.I.gu,X.prototype.I.pu,X.prototype.k.nt,Y.prototype.I.hu,Y.prototype.I.nu,zc.prototype.k.tt,Dc.prototype.I.of,X.prototype.k.ot,Dc.prototype.k.rp,Y.prototype.I.kt,Y.prototype.k.wt,Y.prototype.k.zt,X.prototype.k.Zt,Y.prototype.I.eu,Ec.prototype.I.Gh,xc.prototype.k.bp,Y.prototype.k.bp,
X.prototype.k.mt,Y.prototype.k.gt,Y.prototype.I.du,qc.prototype.I.of,Y.prototype.k.At,uc.prototype.k.km,Y.prototype.I.ku,Y.prototype.k.ht,yc.prototype.I.up,Y.prototype.La.Ys,Bc.prototype.I.Gh,yc.prototype.I.Gh,vc.prototype.I.bu,Ac.prototype.k.op,Y.prototype.I.cu,Ac.prototype.k.gp,Ac.prototype.k.sp,Ac.prototype.k.kp,tc.prototype.k.yt,Y.prototype.I.fu,Ac.prototype.I.mu,Y.prototype.k.Fh,Y.prototype.I.Dt,tc.prototype.k.hp,X.prototype.I.pt,X.prototype.I.qt,X.prototype.k.et,X.prototype.La.ax,X.prototype.k.jt,
wc.prototype.k.it,Z.prototype.I.dt,sc.prototype.I.$t,sc.prototype.k.au]};
