// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,da,E,ea,fa,ja,F,ka,la,ma,na,oa,pa,R,sa,ta,ua,va,wa,xa,Aa,Ca,Da,Ea,Fa,Ga,Ha,Ia,U,Ja,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Xa,V,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,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={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(g){return g.__proto__}:function(g){return g.constructor.prototype});
(function(){function g(d,k,b,q){this.set(d,k,b,q)}function n(){this.zb=this.yb=this.Bb=this.Ab=this.Ib=this.Hb=this.Ka=this.Ja=0}function a(d,k,b,q){d<k?b<q?(w=d<b?d:b,A=k>q?k:q):(w=d<q?d:q,A=k>b?k:b):b<q?(w=k<b?k:b,A=d>q?d:q):(w=k<q?k:q,A=d>b?d:b)}function e(){this.items=this.ad=null;this.Zf=0;q&&(this.ad=new Set);this.yg=[];this.pe=!0}function s(d){k[v++]=d}function c(){this.aa=this.ak=this.y=this.Hk=0}function t(d){this.ib=[];this.di=this.fi=this.gi=this.ei=0;this.Mh(d)}function u(d,k){this.Kk=
d;this.Jk=k;this.cells={}}function f(d,k){this.Kk=d;this.Jk=k;this.cells={}}function l(d,k,b){var q;return z.length?(q=z.pop(),q.pl=d,q.x=k,q.y=b,q):new ba(d,k,b)}function b(d,k,b){this.pl=d;this.x=k;this.y=b;this.mb=new ca}function h(d,k,b){var q;return x.length?(q=x.pop(),q.pl=d,q.x=k,q.y=b,q):new da(d,k,b)}function r(d,k,b){this.pl=d;this.x=k;this.y=b;this.mb=[];this.Yf=!0;this.ud=new ca;this.Cg=!1}function p(d,k){return d.fd-k.fd}E=function(d){window.console&&window.console.log&&window.console.log(d)};
ea=function(d){window.console&&window.console.error&&window.console.error(d)};aa=function(d){return d};fa=function(d){return"undefined"===typeof d};ja=function(d){return"number"===typeof d};F=function(d){return"string"===typeof d};ka=function(d){return 0<d&&0===(d-1&d)};la=function(d){--d;for(var k=1;32>k;k<<=1)d|=d>>k;return d+1};ma=function(d){return 0>d?-d:d};na=function(d,k){return d>k?d:k};oa=function(d,k){return d<k?d:k};pa=Math.PI;R=function(d){return 0<=d?d|0:(d|0)-1};sa=function(d){var k=
d|0;return k===d?k:k+1};ta=function(d,k,b,q,c,v,f,h){var a,z,m,p;d<b?(z=d,a=b):(z=b,a=d);c<f?(p=c,m=f):(p=f,m=c);if(a<p||z>m)return!1;k<q?(z=k,a=q):(z=q,a=k);v<h?(p=v,m=h):(p=h,m=v);if(a<p||z>m)return!1;a=c-d+f-b;z=v-k+h-q;d=b-d;k=q-k;c=f-c;v=h-v;h=ma(k*c-v*d);return ma(c*z-v*a)>h?!1:ma(d*z-k*a)<=h};g.prototype.set=function(d,k,b,q){this.left=d;this.top=k;this.right=b;this.bottom=q};g.prototype.oi=function(d){this.left=d.left;this.top=d.top;this.right=d.right;this.bottom=d.bottom};g.prototype.width=
function(){return this.right-this.left};g.prototype.height=function(){return this.bottom-this.top};g.prototype.offset=function(d,k){this.left+=d;this.top+=k;this.right+=d;this.bottom+=k;return this};g.prototype.normalize=function(){var d=0;this.left>this.right&&(d=this.left,this.left=this.right,this.right=d);this.top>this.bottom&&(d=this.top,this.top=this.bottom,this.bottom=d)};g.prototype.Nu=function(d){return!(d.right<this.left||d.bottom<this.top||d.left>this.right||d.top>this.bottom)};g.prototype.Ou=
function(d,k,b){return!(d.right+k<this.left||d.bottom+b<this.top||d.left+k>this.right||d.top+b>this.bottom)};g.prototype.Lb=function(d,k){return d>=this.left&&d<=this.right&&k>=this.top&&k<=this.bottom};g.prototype.Bi=function(d){return this.left===d.left&&this.top===d.top&&this.right===d.right&&this.bottom===d.bottom};ua=g;n.prototype.Lh=function(d){this.Ja=d.left;this.Ka=d.top;this.Hb=d.right;this.Ib=d.top;this.Ab=d.right;this.Bb=d.bottom;this.yb=d.left;this.zb=d.bottom};n.prototype.oq=function(d,
k){if(0===k)this.Lh(d);else{var b=Math.sin(k),q=Math.cos(k),c=d.left*b,v=d.top*b,f=d.right*b,b=d.bottom*b,h=d.left*q,a=d.top*q,z=d.right*q,q=d.bottom*q;this.Ja=h-v;this.Ka=a+c;this.Hb=z-v;this.Ib=a+f;this.Ab=z-b;this.Bb=q+f;this.yb=h-b;this.zb=q+c}};n.prototype.offset=function(d,k){this.Ja+=d;this.Ka+=k;this.Hb+=d;this.Ib+=k;this.Ab+=d;this.Bb+=k;this.yb+=d;this.zb+=k;return this};var w=0,A=0;n.prototype.Zn=function(d){a(this.Ja,this.Hb,this.Ab,this.yb);d.left=w;d.right=A;a(this.Ka,this.Ib,this.Bb,
this.zb);d.top=w;d.bottom=A};n.prototype.Lb=function(d,k){var b=this.Hb-this.Ja,q=this.Ib-this.Ka,c=this.Ab-this.Ja,v=this.Bb-this.Ka,f=d-this.Ja,h=k-this.Ka,a=b*b+q*q,z=b*c+q*v,q=b*f+q*h,m=c*c+v*v,p=c*f+v*h,l=1/(a*m-z*z),b=(m*q-z*p)*l,a=(a*p-z*q)*l;if(0<=b&&0<a&&1>b+a)return!0;b=this.yb-this.Ja;q=this.zb-this.Ka;a=b*b+q*q;z=b*c+q*v;q=b*f+q*h;l=1/(a*m-z*z);b=(m*q-z*p)*l;a=(a*p-z*q)*l;return 0<=b&&0<a&&1>b+a};n.prototype.me=function(d,k){if(k)switch(d){case 0:return this.Ja;case 1:return this.Hb;case 2:return this.Ab;
case 3:return this.yb;case 4:return this.Ja;default:return this.Ja}else switch(d){case 0:return this.Ka;case 1:return this.Ib;case 2:return this.Bb;case 3:return this.zb;case 4:return this.Ka;default:return this.Ka}};n.prototype.zp=function(){return(this.Ja+this.Hb+this.Ab+this.yb)/4};n.prototype.Ap=function(){return(this.Ka+this.Ib+this.Bb+this.zb)/4};n.prototype.Qo=function(d){var k=d.zp(),b=d.Ap();if(this.Lb(k,b))return!0;k=this.zp();b=this.Ap();if(d.Lb(k,b))return!0;var q,c,v,f,h,a,z,m;for(z=
0;4>z;z++)for(m=0;4>m;m++)if(k=this.me(z,!0),b=this.me(z,!1),q=this.me(z+1,!0),c=this.me(z+1,!1),v=d.me(m,!0),f=d.me(m,!1),h=d.me(m+1,!0),a=d.me(m+1,!1),ta(k,b,q,c,v,f,h,a))return!0;return!1};va=n;wa=function(d,k,b){return Math.max(Math.min(d,255),0)|Math.max(Math.min(k,255),0)<<8|Math.max(Math.min(b,255),0)<<16};xa=function(d){return d&255};Aa=function(d){return(d&65280)>>8};Ca=function(d){return(d&16711680)>>16};Da=function(d,k){for(var b in k)k.hasOwnProperty(b)&&(d[b]=k[b]);return d};Ea=function(d,
k){var b,q;k=R(k);if(!(0>k||k>=d.length)){b=k;for(q=d.length-1;b<q;b++)d[b]=d[b+1];d.length=q}};Fa=function(d,k){d.length=k.length;var b,q;b=0;for(q=k.length;b<q;b++)d[b]=k[b]};Ga=function(d,k){d.push.apply(d,k)};Ha=function(d,k){var b,q;b=0;for(q=d.length;b<q;++b)if(d[b]===k)return b;return-1};Ia=function(d,k){var b=Ha(d,k);-1!==b&&Ea(d,b)};U=function(d){return d/(180/pa)};Ja=function(d){return 180/pa*d};La=function(d){d%=360;0>d&&(d+=360);return d};Ma=function(d){d%=2*pa;0>d&&(d+=2*pa);return d};
Na=function(d){return La(Ja(d))};Oa=function(d){return Ma(U(d))};Pa=function(d,k,b,q){return Math.atan2(q-k,b-d)};Qa=function(d,k){if(d===k)return 0;var b=Math.sin(d),q=Math.cos(d),c=Math.sin(k),v=Math.cos(k),b=b*c+q*v;return 1<=b?0:-1>=b?pa:Math.acos(b)};Ra=function(d,k,b){var q=Math.sin(d),c=Math.cos(d),v=Math.sin(k),f=Math.cos(k);return Math.acos(q*v+c*f)>b?0<c*v-q*f?Ma(d+b):Ma(d-b):Ma(k)};Sa=function(d,k){var b=Math.sin(d),q=Math.cos(d),c=Math.sin(k),v=Math.cos(k);return 0>=q*c-b*v};Xa=function(d,
k,b,q,c,v){if(0===b)return v?d:k;var f=Math.sin(b);b=Math.cos(b);d-=q;k-=c;var h=d*f;d=d*b-k*f;k=k*b+h;return v?d+q:k+c};V=function(d,k,b,q){d=b-d;k=q-k;return Math.sqrt(d*d+k*k)};Ya=function(d,k){return!d!==!k};Za=function(d){for(var k in d)if(d.hasOwnProperty(k))return!0;return!1};$a=function(d){for(var k in d)d.hasOwnProperty(k)&&delete d[k]};var m=+new Date;ab=function(){if("undefined"!==typeof window.performance){var d=window.performance;if("undefined"!==typeof d.now)return d.now();if("undefined"!==
typeof d.webkitNow)return d.webkitNow();if("undefined"!==typeof d.mozNow)return d.mozNow();if("undefined"!==typeof d.msNow)return d.msNow()}return Date.now()-m};var y=!1,G=y=!1,d=!1;"undefined"!==typeof window&&(y=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),y=!y&&/safari/i.test(navigator.userAgent),G=/(iphone|ipod|ipad)/i.test(navigator.userAgent),d=window.c2ejecta);var q=!y&&!d&&!G&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;e.prototype.contains=
function(d){return this.Wd()?!1:q?this.ad.has(d):this.items&&this.items.hasOwnProperty(d)};e.prototype.add=function(d){if(q)this.ad.has(d)||(this.ad.add(d),this.pe=!1);else{var k=d.toString(),b=this.items;b?b.hasOwnProperty(k)||(b[k]=d,this.Zf++,this.pe=!1):(this.items={},this.items[k]=d,this.Zf=1,this.pe=!1)}};e.prototype.remove=function(d){if(!this.Wd())if(q)this.ad.has(d)&&(this.ad["delete"](d),this.pe=!1);else if(this.items){d=d.toString();var k=this.items;k.hasOwnProperty(d)&&(delete k[d],this.Zf--,
this.pe=!1)}};e.prototype.clear=function(){this.Wd()||(q?this.ad.clear():(this.items=null,this.Zf=0),this.yg.length=0,this.pe=!0)};e.prototype.Wd=function(){return 0===this.count()};e.prototype.count=function(){return q?this.ad.size:this.Zf};var k=null,v=0;e.prototype.kw=function(){if(!this.pe){if(q)this.yg.length=this.ad.size,k=this.yg,v=0,this.ad.forEach(s),k=null,v=0;else{var d=this.yg;d.length=this.Zf;var b,c=0,f=this.items;if(f)for(b in f)f.hasOwnProperty(b)&&(d[c++]=f[b])}this.pe=!0}};e.prototype.Te=
function(){this.kw();return this.yg};ca=e;new ca;bb=function(d,k){q?cb(d,k.ad):db(d,k.Te())};cb=function(d,k){var b,q,c,v;q=b=0;for(c=d.length;b<c;++b)v=d[b],k.has(v)||(d[q++]=v);d.length=q};db=function(d,k){var b,q,c,v;q=b=0;for(c=d.length;b<c;++b)v=d[b],-1===Ha(k,v)&&(d[q++]=v);d.length=q};c.prototype.add=function(d){this.y=d-this.Hk;this.ak=this.aa+this.y;this.Hk=this.ak-this.aa-this.y;this.aa=this.ak};c.prototype.reset=function(){this.aa=this.ak=this.y=this.Hk=0};eb=c;fb=function(d){return d.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,
"\\$&")};t.prototype.Mh=function(d){this.bq=d;this.Zc=d.length/2;this.ib.length=d.length;this.ii=this.ji=-1;this.bo=0};t.prototype.Vf=function(){return!this.bq.length};t.prototype.Aa=function(){for(var d=this.ib,k=d[0],b=k,q=d[1],c=q,v,f,h=1,z=this.Zc;h<z;++h)f=2*h,v=d[f],f=d[f+1],v<k&&(k=v),v>b&&(b=v),f<q&&(q=f),f>c&&(c=f);this.ei=k;this.fi=b;this.gi=q;this.di=c};t.prototype.Lh=function(d,k,b){this.ib.length=8;this.Zc=4;var q=this.ib;q[0]=d.left-k;q[1]=d.top-b;q[2]=d.right-k;q[3]=d.top-b;q[4]=d.right-
k;q[5]=d.bottom-b;q[6]=d.left-k;q[7]=d.bottom-b;this.ji=d.right-d.left;this.ii=d.bottom-d.top;this.Aa()};t.prototype.qg=function(d,k,b,q,c){this.ib.length=8;this.Zc=4;var v=this.ib;v[0]=d.Ja-k;v[1]=d.Ka-b;v[2]=d.Hb-k;v[3]=d.Ib-b;v[4]=d.Ab-k;v[5]=d.Bb-b;v[6]=d.yb-k;v[7]=d.zb-b;this.ji=q;this.ii=c;this.Aa()};t.prototype.nq=function(d){this.Zc=d.Zc;Fa(this.ib,d.ib);this.ei=d.ei;this.gi-d.gi;this.fi=d.fi;this.di=d.di};t.prototype.Hf=function(d,k,b){if(this.ji!==d||this.ii!==k||this.bo!==b){this.ji=d;
this.ii=k;this.bo=b;var q,c,v,f,h,z=0,a=1,m=this.bq,p=this.ib;0!==b&&(z=Math.sin(b),a=Math.cos(b));b=0;for(v=this.Zc;b<v;b++)q=2*b,c=q+1,f=m[q]*d,h=m[c]*k,p[q]=f*a-h*z,p[c]=h*a+f*z;this.Aa()}};t.prototype.Lb=function(d,k){var b=this.ib;if(d===b[0]&&k===b[1])return!0;var q,c,v,f=this.Zc,h=this.ei-110,z=this.gi-101,a=this.fi+131,m=this.di+120,p,l,Q=0,t=0;for(q=0;q<f;q++)c=2*q,v=(q+1)%f*2,p=b[c],c=b[c+1],l=b[v],v=b[v+1],ta(h,z,d,k,p,c,l,v)&&Q++,ta(a,m,d,k,p,c,l,v)&&t++;return 1===Q%2||1===t%2};t.prototype.$g=
function(d,k,b){var q=d.ib,c=this.ib;if(this.Lb(q[0]+k,q[1]+b)||d.Lb(c[0]-k,c[1]-b))return!0;var v,f,h,z,a,m,p,l,Q,t,x,e;v=0;for(z=this.Zc;v<z;v++)for(f=2*v,h=(v+1)%z*2,l=c[f],f=c[f+1],Q=c[h],t=c[h+1],h=0,p=d.Zc;h<p;h++)if(a=2*h,m=(h+1)%p*2,x=q[a]+k,a=q[a+1]+b,e=q[m]+k,m=q[m+1]+b,ta(l,f,Q,t,x,a,e,m))return!0;return!1};gb=t;u.prototype.ue=function(d,k,b){var q;q=this.cells[d];return q?(q=q[k])?q:b?(q=l(this,d,k),this.cells[d][k]=q):null:b?(q=l(this,d,k),this.cells[d]={},this.cells[d][k]=q):null};u.prototype.qc=
function(d){return R(d/this.Kk)};u.prototype.rc=function(d){return R(d/this.Jk)};u.prototype.update=function(d,k,b){var q,c,v,f,h;if(k)for(q=k.left,c=k.right;q<=c;++q)for(v=k.top,f=k.bottom;v<=f;++v)if(!b||!b.Lb(q,v))if(h=this.ue(q,v,!1))h.remove(d),h.Wd()&&(h.mb.clear(),1E3>z.length&&z.push(h),this.cells[q][v]=null);if(b)for(q=b.left,c=b.right;q<=c;++q)for(v=b.top,f=b.bottom;v<=f;++v)k&&k.Lb(q,v)||this.ue(q,v,!0).zl(d)};u.prototype.Hj=function(d,k){var b,q,c,v,f,h;b=this.qc(d.left);c=this.rc(d.top);
q=this.qc(d.right);for(f=this.rc(d.bottom);b<=q;++b)for(v=c;v<=f;++v)(h=this.ue(b,v,!1))&&h.dump(k)};hb=u;f.prototype.ue=function(d,k,b){var q;q=this.cells[d];return q?(q=q[k])?q:b?(q=h(this,d,k),this.cells[d][k]=q):null:b?(q=h(this,d,k),this.cells[d]={},this.cells[d][k]=q):null};f.prototype.qc=function(d){return R(d/this.Kk)};f.prototype.rc=function(d){return R(d/this.Jk)};f.prototype.update=function(d,k,b){var q,c,v,f,h;if(k)for(q=k.left,c=k.right;q<=c;++q)for(v=k.top,f=k.bottom;v<=f;++v)if(!b||
!b.Lb(q,v))if(h=this.ue(q,v,!1))h.remove(d),h.Wd()&&(h.reset(),1E3>x.length&&x.push(h),this.cells[q][v]=null);if(b)for(q=b.left,c=b.right;q<=c;++q)for(v=b.top,f=b.bottom;v<=f;++v)k&&k.Lb(q,v)||this.ue(q,v,!0).zl(d)};f.prototype.Hj=function(d,k,b,q,c){var v,f;d=this.qc(d);k=this.rc(k);b=this.qc(b);for(v=this.rc(q);d<=b;++d)for(q=k;q<=v;++q)(f=this.ue(d,q,!1))&&f.dump(c)};f.prototype.bv=function(d){var k,b,q,c,v;k=d.left;q=d.top;b=d.right;for(c=d.bottom;k<=b;++k)for(d=q;d<=c;++d)if(v=this.ue(k,d,!1))v.Yf=
!1};ib=f;var z=[];b.prototype.Wd=function(){return this.mb.Wd()};b.prototype.zl=function(d){this.mb.add(d)};b.prototype.remove=function(d){this.mb.remove(d)};b.prototype.dump=function(d){Ga(d,this.mb.Te())};ba=b;var x=[];r.prototype.Wd=function(){if(!this.mb.length)return!0;if(this.mb.length>this.ud.count())return!1;this.al();return!0};r.prototype.zl=function(d){this.ud.contains(d)?(this.ud.remove(d),this.ud.Wd()&&(this.Cg=!1)):this.mb.length?(this.mb[this.mb.length-1].nd()>d.nd()&&(this.Yf=!1),this.mb.push(d)):
(this.mb.push(d),this.Yf=!0)};r.prototype.remove=function(d){this.ud.add(d);this.Cg=!0;30<=this.ud.count()&&this.al()};r.prototype.al=function(){this.Cg&&(this.ud.count()===this.mb.length?this.reset():(bb(this.mb,this.ud),this.ud.clear(),this.Cg=!1))};r.prototype.At=function(){this.Yf||(this.mb.sort(p),this.Yf=!0)};r.prototype.reset=function(){this.mb.length=0;this.Yf=!0;this.ud.clear();this.Cg=!1};r.prototype.dump=function(d){this.al();this.At();this.mb.length&&d.push(this.mb)};da=r;var Q="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");
jb=function(d){return 0>=d||11<=d?"source-over":Q[d-1]};kb=function(d,k,b){if(b)switch(d.Gb=b.ONE,d.Cb=b.ONE_MINUS_SRC_ALPHA,k){case 1:d.Gb=b.ONE;d.Cb=b.ONE;break;case 3:d.Gb=b.ONE;d.Cb=b.ZERO;break;case 4:d.Gb=b.ONE_MINUS_DST_ALPHA;d.Cb=b.ONE;break;case 5:d.Gb=b.DST_ALPHA;d.Cb=b.ZERO;break;case 6:d.Gb=b.ZERO;d.Cb=b.SRC_ALPHA;break;case 7:d.Gb=b.ONE_MINUS_DST_ALPHA;d.Cb=b.ZERO;break;case 8:d.Gb=b.ZERO;d.Cb=b.ONE_MINUS_SRC_ALPHA;break;case 9:d.Gb=b.DST_ALPHA;d.Cb=b.ONE_MINUS_SRC_ALPHA;break;case 10:d.Gb=
b.ONE_MINUS_DST_ALPHA,d.Cb=b.SRC_ALPHA}};lb=function(d){return Math.round(1E6*d)/1E6};mb=function(d,k){return"string"!==typeof d||"string"!==typeof k||d.length!==k.length?!1:d===k?!0:d.toLowerCase()===k.toLowerCase()};nb=function(d){d=d.target;return!d||d===document||d===window||document&&document.body&&d===document.body||mb(d.tagName,"canvas")?!0:!1}})();var fc="undefined"!==typeof Float32Array?Float32Array:Array;function gc(g){var n=new fc(3);g&&(n[0]=g[0],n[1]=g[1],n[2]=g[2]);return n}
function hc(g){var n=new fc(16);g&&(n[0]=g[0],n[1]=g[1],n[2]=g[2],n[3]=g[3],n[4]=g[4],n[5]=g[5],n[6]=g[6],n[7]=g[7],n[8]=g[8],n[9]=g[9],n[10]=g[10],n[11]=g[11],n[12]=g[12],n[13]=g[13],n[14]=g[14],n[15]=g[15]);return n}function ic(g,n){n[0]=g[0];n[1]=g[1];n[2]=g[2];n[3]=g[3];n[4]=g[4];n[5]=g[5];n[6]=g[6];n[7]=g[7];n[8]=g[8];n[9]=g[9];n[10]=g[10];n[11]=g[11];n[12]=g[12];n[13]=g[13];n[14]=g[14];n[15]=g[15]}
function jc(g,n){var a=n[0],e=n[1];n=n[2];g[0]*=a;g[1]*=a;g[2]*=a;g[3]*=a;g[4]*=e;g[5]*=e;g[6]*=e;g[7]*=e;g[8]*=n;g[9]*=n;g[10]*=n;g[11]*=n}
function kc(g,n,a,e){e||(e=hc());var s,c,t,u,f,l,b,h,r=g[0],p=g[1];g=g[2];c=a[0];t=a[1];s=a[2];a=n[1];l=n[2];r===n[0]&&p===a&&g===l?(g=e,g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=1,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=1,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1):(a=r-n[0],l=p-n[1],b=g-n[2],h=1/Math.sqrt(a*a+l*l+b*b),a*=h,l*=h,b*=h,n=t*b-s*l,s=s*a-c*b,c=c*l-t*a,(h=Math.sqrt(n*n+s*s+c*c))?(h=1/h,n*=h,s*=h,c*=h):c=s=n=0,t=l*c-b*s,u=b*n-a*c,f=a*s-l*n,(h=Math.sqrt(t*t+u*u+f*f))?(h=1/h,t*=h,u*=h,f*=h):f=u=t=0,
e[0]=n,e[1]=t,e[2]=a,e[3]=0,e[4]=s,e[5]=u,e[6]=l,e[7]=0,e[8]=c,e[9]=f,e[10]=b,e[11]=0,e[12]=-(n*r+s*p+c*g),e[13]=-(t*r+u*p+f*g),e[14]=-(a*r+l*p+b*g),e[15]=1)}
(function(){function g(c){this.we=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.eo=gc([0,0,100]);this.ip=gc([0,0,0]);this.Jq=gc([0,1,0]);this.pn=gc([1,1,1]);this.so=!0;this.Zl=hc();this.Oc=hc();this.$o=hc();this.Qk=hc();this.A=c;this.Mo()}function n(c,a,e){this.A=c;this.Nh=a;this.name=e;this.Nc=c.getAttribLocation(a,"aPos");this.De=c.getAttribLocation(a,"aTex");this.gp=c.getUniformLocation(a,"matP");this.oj=c.getUniformLocation(a,"matMV");this.bg=
c.getUniformLocation(a,"opacity");this.hp=c.getUniformLocation(a,"samplerFront");this.qh=c.getUniformLocation(a,"samplerBack");this.qf=c.getUniformLocation(a,"destStart");this.pf=c.getUniformLocation(a,"destEnd");this.Vl=c.getUniformLocation(a,"seconds");this.Ul=c.getUniformLocation(a,"pixelWidth");this.Tl=c.getUniformLocation(a,"pixelHeight");this.ph=c.getUniformLocation(a,"layerScale");this.oh=c.getUniformLocation(a,"layerAngle");this.sh=c.getUniformLocation(a,"viewOrigin");this.rh=c.getUniformLocation(a,
"scrollPos");this.Iu=!!(this.Ul||this.Tl||this.Vl||this.qh||this.qf||this.pf||this.ph||this.oh||this.sh||this.rh);this.qp=this.rp=-999;this.rj=1;this.mp=this.lp=0;this.op=this.kp=this.jp=1;this.tp=this.sp=this.vp=this.up=this.np=0;this.Hl=[];this.pp=hc();this.bg&&c.uniform1f(this.bg,1);this.hp&&c.uniform1i(this.hp,0);this.qh&&c.uniform1i(this.qh,1);this.qf&&c.uniform2f(this.qf,0,0);this.pf&&c.uniform2f(this.pf,1,1);this.ph&&c.uniform1f(this.ph,1);this.oh&&c.uniform1f(this.oh,0);this.sh&&c.uniform2f(this.sh,
0,0);this.rh&&c.uniform2f(this.rh,0,0);this.df=!1}function a(c,a){this.type=c;this.D=a;this.A=a.A;this.od=this.Rc=this.Pp=0;this.ra=this.dd=null;this.pq=[]}g.prototype.Mo=function(){var c=this.A,a;this.bp=1;this.mf=this.ze=null;this.si=1;c.clearColor(0,0,0,0);c.clear(c.COLOR_BUFFER_BIT);c.enable(c.BLEND);c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA);c.disable(c.CULL_FACE);c.disable(c.DEPTH_TEST);this.cp=c.ONE;this.Zo=c.ONE_MINUS_SRC_ALPHA;this.ym=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,this.ym);this.Yh=
Array(4);this.Sh=Array(4);for(a=0;4>a;a++)this.Yh[a]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Yh[a]),this.Sh[a]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Sh[a]);this.Kd=0;this.Lu=c.createBuffer();c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.Lu);this.mn=new Float32Array(16E3);this.Xm=new Float32Array(16E3);this.tv=new Float32Array(32E3);for(var e=new Uint16Array(12E3),f=a=0;12E3>a;)e[a++]=f,e[a++]=f+1,e[a++]=f+2,e[a++]=f,e[a++]=f+2,e[a++]=f+3,f+=4;c.bufferData(c.ELEMENT_ARRAY_BUFFER,e,
c.STATIC_DRAW);this.zm=this.Dd=0;this.kb=[];a=this.Pk({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}"},"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}","<default>");
this.kb.push(a);a=this.Pk({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.kb.push(a);for(var l in lc)lc.hasOwnProperty(l)&&this.kb.push(this.Pk(lc[l],
"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}",l));c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,null);this.oe=[];this.Hd=0;this.hc=!1;this.oo=this.ih=-1;this.Ig=null;this.Yt=c.createFramebuffer();this.gq=null;this.Re=gc([0,0,0]);this.wp=c.getParameter(c.ALIASED_POINT_SIZE_RANGE)[1];2048<this.wp&&
(this.wp=2048);this.zd(0)};n.prototype.gn=function(c){var a=this.pp;if(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])ic(c,this.pp),this.A.uniformMatrix4fv(this.oj,!1,c)};g.prototype.Pk=function(c,a,e){var f=this.A,l=f.createShader(f.FRAGMENT_SHADER);f.shaderSource(l,c.src);f.compileShader(l);if(!f.getShaderParameter(l,f.COMPILE_STATUS))return f.deleteShader(l),
null;var b=f.createShader(f.VERTEX_SHADER);f.shaderSource(b,a);f.compileShader(b);if(!f.getShaderParameter(b,f.COMPILE_STATUS))return f.deleteShader(l),f.deleteShader(b),null;a=f.createProgram();f.attachShader(a,l);f.attachShader(a,b);f.linkProgram(a);if(!f.getProgramParameter(a,f.LINK_STATUS))return f.deleteShader(l),f.deleteShader(b),f.deleteProgram(a),null;f.useProgram(a);f.deleteShader(l);f.deleteShader(b);e=new n(f,a,e);e.Yk=c.Yk||0;e.Zk=c.Zk||0;e.no=!!c.no;e.Vn=!!c.Vn;e.P=c.P||[];c=0;for(l=
e.P.length;c<l;c++)e.P[c][1]=f.getUniformLocation(a,e.P[c][0]),e.Hl.push(0),f.uniform1f(e.P[c][1],0);return e};g.prototype.ml=function(c){var a,e;a=0;for(e=this.kb.length;a<e;a++)if(this.kb[a].name===c)return a;return-1};g.prototype.aq=function(c,a,e){var f=this.Oc,l=this.Zl,b=[0,0,0,0,0,0,0,0];b[0]=f[0]*c+f[4]*a+f[12];b[1]=f[1]*c+f[5]*a+f[13];b[2]=f[2]*c+f[6]*a+f[14];b[3]=f[3]*c+f[7]*a+f[15];b[4]=l[0]*b[0]+l[4]*b[1]+l[8]*b[2]+l[12]*b[3];b[5]=l[1]*b[0]+l[5]*b[1]+l[9]*b[2]+l[13]*b[3];b[6]=l[2]*b[0]+
l[6]*b[1]+l[10]*b[2]+l[14]*b[3];b[7]=-b[2];0!==b[7]&&(b[7]=1/b[7],b[4]*=b[7],b[5]*=b[7],b[6]*=b[7],e[0]=(.5*b[4]+.5)*this.width,e[1]=(.5*b[5]+.5)*this.height)};g.prototype.pg=function(c,a,e){if(this.width!==c||this.height!==a||e){this.se();this.width=c;this.height=a;this.A.viewport(0,0,c,a);a=c/a;var f=this.Zl,l;l=1*Math.tan(45*Math.PI/360);a*=l;c=-a;e=-l;f||(f=hc());var b=a-c,h=l-e;f[0]=2/b;f[1]=0;f[2]=0;f[3]=0;f[4]=0;f[5]=2/h;f[6]=0;f[7]=0;f[8]=(a+c)/b;f[9]=(l+e)/h;f[10]=-1001/999;f[11]=-1;f[12]=
0;f[13]=0;f[14]=-2E3/999;f[15]=0;kc(this.eo,this.ip,this.Jq,this.Oc);c=[0,0];a=[0,0];this.aq(0,0,c);this.aq(1,1,a);this.pn[0]=1/(a[0]-c[0]);this.pn[1]=-1/(a[1]-c[1]);c=0;for(a=this.kb.length;c<a;c++)e=this.kb[c],e.df=!1,e.gp&&(this.A.useProgram(e.Nh),this.A.uniformMatrix4fv(e.gp,!1,this.Zl));this.A.useProgram(this.kb[this.ih].Nh);this.A.bindTexture(this.A.TEXTURE_2D,null);this.A.activeTexture(this.A.TEXTURE1);this.A.bindTexture(this.A.TEXTURE_2D,null);this.A.activeTexture(this.A.TEXTURE0);this.mf=
this.ze=null}};g.prototype.xd=function(){kc(this.eo,this.ip,this.Jq,this.Oc);jc(this.Oc,this.pn)};g.prototype.translate=function(c,a){if(0!==c||0!==a){this.Re[0]=c;this.Re[1]=a;this.Re[2]=0;var e=this.Oc,f=this.Re,l=f[0],b=f[1],f=f[2];e[12]=e[0]*l+e[4]*b+e[8]*f+e[12];e[13]=e[1]*l+e[5]*b+e[9]*f+e[13];e[14]=e[2]*l+e[6]*b+e[10]*f+e[14];e[15]=e[3]*l+e[7]*b+e[11]*f+e[15]}};g.prototype.scale=function(c,a){if(1!==c||1!==a)this.Re[0]=c,this.Re[1]=a,this.Re[2]=1,jc(this.Oc,this.Re)};g.prototype.Km=function(c){if(0!==
c){var a=this.Oc,e,f=Math.sin(c);c=Math.cos(c);var l=a[0],b=a[1],h=a[2],r=a[3],p=a[4],w=a[5],g=a[6],m=a[7];e?a!==e&&(e[8]=a[8],e[9]=a[9],e[10]=a[10],e[11]=a[11],e[12]=a[12],e[13]=a[13],e[14]=a[14],e[15]=a[15]):e=a;e[0]=l*c+p*f;e[1]=b*c+w*f;e[2]=h*c+g*f;e[3]=r*c+m*f;e[4]=l*-f+p*c;e[5]=b*-f+w*c;e[6]=h*-f+g*c;e[7]=r*-f+m*c}};g.prototype.Cd=function(){for(var c=!1,a=0;16>a;a++)if(this.$o[a]!==this.Oc[a]){c=!0;break}c&&(c=this.$c(),c.type=5,c.ra?ic(this.Oc,c.ra):c.ra=hc(this.Oc),ic(this.Oc,this.$o),this.hc=
!1)};a.prototype.mt=function(){this.A.bindTexture(this.A.TEXTURE_2D,this.dd)};a.prototype.nt=function(){var c=this.A;c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,this.dd);c.activeTexture(c.TEXTURE0)};a.prototype.jt=function(){var c=this.Pp,a=this.D;a.si=c;a=a.Ig;a.bg&&a.rj!==c&&(a.rj=c,this.A.uniform1f(a.bg,c))};a.prototype.gt=function(){this.A.drawElements(this.A.TRIANGLES,this.od,this.A.UNSIGNED_SHORT,2*this.Rc)};a.prototype.it=function(){this.A.blendFunc(this.Rc,this.od)};a.prototype.ot=
function(){var c,a,e,f=this.D.kb,l=this.D.oo;c=0;for(a=f.length;c<a;c++)e=f[c],c===l&&e.oj?(e.gn(this.ra),e.df=!0):e.df=!1;ic(this.ra,this.D.Qk)};a.prototype.ht=function(){var c=this.A,a=this.D;this.dd?(a.mf===this.dd&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,null),a.mf=null,c.activeTexture(c.TEXTURE0)),c.bindFramebuffer(c.FRAMEBUFFER,a.Yt),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,this.dd,0)):(c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,
null,0),c.bindFramebuffer(c.FRAMEBUFFER,null))};a.prototype.et=function(){var c=this.A;0===this.Rc?(c.clearColor(this.ra[0],this.ra[1],this.ra[2],this.ra[3]),c.clear(c.COLOR_BUFFER_BIT)):(c.enable(c.SCISSOR_TEST),c.scissor(this.ra[0],this.ra[1],this.ra[2],this.ra[3]),c.clearColor(0,0,0,0),c.clear(this.A.COLOR_BUFFER_BIT),c.disable(c.SCISSOR_TEST))};a.prototype.ft=function(){var c=this.A,a=this.D,e=a.kb[1];c.useProgram(e.Nh);!e.df&&e.oj&&(e.gn(a.Qk),e.df=!0);c.enableVertexAttribArray(e.Nc);c.bindBuffer(c.ARRAY_BUFFER,
a.ym);c.vertexAttribPointer(e.Nc,4,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,this.Rc/4,this.od);e=a.Ig;c.useProgram(e.Nh);0<=e.Nc&&(c.enableVertexAttribArray(e.Nc),c.bindBuffer(c.ARRAY_BUFFER,a.Yh[a.Kd]),c.vertexAttribPointer(e.Nc,2,c.FLOAT,!1,0,0));0<=e.De&&(c.enableVertexAttribArray(e.De),c.bindBuffer(c.ARRAY_BUFFER,a.Sh[a.Kd]),c.vertexAttribPointer(e.De,2,c.FLOAT,!1,0,0))};a.prototype.kt=function(){var c=this.A,a=this.D,e=a.kb[this.Rc];a.oo=this.Rc;a.Ig=e;c.useProgram(e.Nh);!e.df&&e.oj&&(e.gn(a.Qk),
e.df=!0);e.bg&&e.rj!==a.si&&(e.rj=a.si,c.uniform1f(e.bg,a.si));0<=e.Nc&&(c.enableVertexAttribArray(e.Nc),c.bindBuffer(c.ARRAY_BUFFER,a.Yh[a.Kd]),c.vertexAttribPointer(e.Nc,2,c.FLOAT,!1,0,0));0<=e.De&&(c.enableVertexAttribArray(e.De),c.bindBuffer(c.ARRAY_BUFFER,a.Sh[a.Kd]),c.vertexAttribPointer(e.De,2,c.FLOAT,!1,0,0))};a.prototype.lt=function(){var c,a,e=this.D.Ig,f=this.A;c=this.ra;e.qh&&this.D.mf!==this.dd&&(f.activeTexture(f.TEXTURE1),f.bindTexture(f.TEXTURE_2D,this.dd),this.D.mf=this.dd,f.activeTexture(f.TEXTURE0));
var l=c[0];e.Ul&&l!==e.rp&&(e.rp=l,f.uniform1f(e.Ul,l));l=c[1];e.Tl&&l!==e.qp&&(e.qp=l,f.uniform1f(e.Tl,l));l=c[2];a=c[3];!e.qf||l===e.lp&&a===e.mp||(e.lp=l,e.mp=a,f.uniform2f(e.qf,l,a));l=c[4];a=c[5];!e.pf||l===e.jp&&a===e.kp||(e.jp=l,e.kp=l,f.uniform2f(e.pf,l,a));l=c[6];e.ph&&l!==e.op&&(e.op=l,f.uniform1f(e.ph,l));l=c[7];e.oh&&l!==e.np&&(e.np=l,f.uniform1f(e.oh,l));l=c[8];a=c[9];!e.sh||l===e.up&&a===e.vp||(e.up=l,e.vp=a,f.uniform2f(e.sh,l,a));l=c[10];a=c[11];!e.rh||l===e.sp&&a===e.tp||(e.sp=l,e.tp=
a,f.uniform2f(e.rh,l,a));e.Vl&&f.uniform1f(e.Vl,ab()/1E3);if(e.P.length)for(c=0,a=e.P.length;c<a;c++)l=this.pq[c],l!==e.Hl[c]&&(e.Hl[c]=l,f.uniform1f(e.P[c][1],l))};g.prototype.$c=function(){this.Hd===this.oe.length&&this.oe.push(new a(0,this));return this.oe[this.Hd++]};g.prototype.se=function(){if(0!==this.Hd&&!this.A.isContextLost()){var c=this.A;0<this.zm&&(c.bindBuffer(c.ARRAY_BUFFER,this.ym),c.bufferData(c.ARRAY_BUFFER,this.tv.subarray(0,this.zm),c.STREAM_DRAW),a&&0<=a.Nc&&"<point>"===a.name&&
c.vertexAttribPointer(a.Nc,4,c.FLOAT,!1,0,0));if(0<this.Dd){var a=this.Ig;c.bindBuffer(c.ARRAY_BUFFER,this.Yh[this.Kd]);c.bufferData(c.ARRAY_BUFFER,this.mn.subarray(0,this.Dd),c.STREAM_DRAW);a&&0<=a.Nc&&"<point>"!==a.name&&c.vertexAttribPointer(a.Nc,2,c.FLOAT,!1,0,0);c.bindBuffer(c.ARRAY_BUFFER,this.Sh[this.Kd]);c.bufferData(c.ARRAY_BUFFER,this.Xm.subarray(0,this.Dd),c.STREAM_DRAW);a&&0<=a.De&&"<point>"!==a.name&&c.vertexAttribPointer(a.De,2,c.FLOAT,!1,0,0)}for(var e,c=0,a=this.Hd;c<a;c++)switch(e=
this.oe[c],e.type){case 1:e.gt();break;case 2:e.mt();break;case 3:e.jt();break;case 4:e.it();break;case 5:e.ot();break;case 6:e.ht();break;case 7:e.et();break;case 8:e.ft();break;case 9:e.kt();break;case 10:e.lt();break;case 11:e.nt()}this.zm=this.Dd=this.Hd=0;this.hc=!1;this.Kd++;4<=this.Kd&&(this.Kd=0)}};g.prototype.wf=function(a){if(a!==this.bp){var e=this.$c();e.type=3;this.bp=e.Pp=a;this.hc=!1}};g.prototype.pc=function(a){if(a!==this.ze){var e=this.$c();e.type=2;this.ze=e.dd=a;this.hc=!1}};g.prototype.Me=
function(a,e){if(a!==this.cp||e!==this.Zo){var g=this.$c();g.type=4;g.Rc=a;g.od=e;this.cp=a;this.Zo=e;this.hc=!1}};g.prototype.kq=function(){this.Me(this.A.ONE,this.A.ONE_MINUS_SRC_ALPHA)};g.prototype.Gj=function(a,e,g,f,l,b,h,r){15992<=this.Dd&&this.se();var p=this.Dd,w=this.mn,n=this.Xm;if(this.hc)this.oe[this.Hd-1].od+=6;else{var m=this.$c();m.type=1;m.Rc=p/4*3;m.od=6;this.hc=!0}w[p]=a;n[p++]=0;w[p]=e;n[p++]=0;w[p]=g;n[p++]=1;w[p]=f;n[p++]=0;w[p]=l;n[p++]=1;w[p]=b;n[p++]=1;w[p]=h;n[p++]=0;w[p]=
r;n[p++]=1;this.Dd=p};g.prototype.wd=function(a,e,g,f,l,b,h,r,p){15992<=this.Dd&&this.se();var w=this.Dd,n=this.mn,m=this.Xm;if(this.hc)this.oe[this.Hd-1].od+=6;else{var y=this.$c();y.type=1;y.Rc=w/4*3;y.od=6;this.hc=!0}var y=p.left,s=p.top,d=p.right;p=p.bottom;n[w]=a;m[w++]=y;n[w]=e;m[w++]=s;n[w]=g;m[w++]=d;n[w]=f;m[w++]=s;n[w]=l;m[w++]=d;n[w]=b;m[w++]=p;n[w]=h;m[w++]=y;n[w]=r;m[w++]=p;this.Dd=w};g.prototype.zd=function(a){if(this.ih!==a){if(!this.kb[a]){if(0===this.ih)return;a=0}var e=this.$c();
e.type=9;this.ih=e.Rc=a;this.hc=!1}};g.prototype.Ch=function(a){a=this.kb[a];return!(!a.qf&&!a.pf)};g.prototype.Cm=function(a){a=this.kb[a];return!!(a.qf||a.pf||a.no)};g.prototype.Bv=function(a){a=this.kb[a];return 0!==a.Yk||0!==a.Zk};g.prototype.nu=function(a){return this.kb[a].Yk};g.prototype.ou=function(a){return this.kb[a].Zk};g.prototype.pu=function(a,e){return this.kb[a].P[e][2]};g.prototype.Dj=function(a){return this.kb[a].Vn};g.prototype.ng=function(a,e,g,f,l,b,h,r,p,w,n,m,y,s){var d=this.kb[this.ih],
q,k;if(d.Iu||s.length){q=this.$c();q.type=10;q.ra?ic(this.Oc,q.ra):q.ra=hc();k=q.ra;k[0]=e;k[1]=g;k[2]=f;k[3]=l;k[4]=b;k[5]=h;k[6]=r;k[7]=p;k[8]=w;k[9]=n;k[10]=m;k[11]=y;q.dd=d.qh?a:null;if(s.length)for(g=q.pq,g.length=s.length,a=0,e=s.length;a<e;a++)g[a]=s[a];this.hc=!1}};g.prototype.clear=function(a,e,g,f){var l=this.$c();l.type=7;l.Rc=0;l.ra||(l.ra=hc());l.ra[0]=a;l.ra[1]=e;l.ra[2]=g;l.ra[3]=f;this.hc=!1};g.prototype.clearRect=function(a,e,g,f){if(!(0>g||0>f)){var l=this.$c();l.type=7;l.Rc=1;l.ra||
(l.ra=hc());l.ra[0]=a;l.ra[1]=e;l.ra[2]=g;l.ra[3]=f;this.hc=!1}};g.prototype.Av=function(){this.se();this.A.flush()};var e=[],s={};g.prototype.Ws=function(){e.length=0;s={}};g.prototype.lj=function(a,g,n,f){g=!!g;n=!!n;var l=a.src+","+g+","+n+(g?",undefined":""),b=null;if("undefined"!==typeof a.src&&s.hasOwnProperty(l))return b=s[l],b.hi++,b;this.se();var h=this.A,r=ka(a.width)&&ka(a.height),b=h.createTexture();h.bindTexture(h.TEXTURE_2D,b);h.pixelStorei(h.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var p=
h.RGBA,w=h.RGBA,A=h.UNSIGNED_BYTE;if(f&&!this.we)switch(f){case 1:w=p=h.RGB;break;case 2:A=h.UNSIGNED_SHORT_4_4_4_4;break;case 3:A=h.UNSIGNED_SHORT_5_5_5_1;break;case 4:w=p=h.RGB,A=h.UNSIGNED_SHORT_5_6_5}if(!r&&g){f=document.createElement("canvas");f.width=la(a.width);f.height=la(a.height);var m=f.getContext("2d");m.webkitImageSmoothingEnabled=n;m.mozImageSmoothingEnabled=n;m.msImageSmoothingEnabled=n;m.imageSmoothingEnabled=n;m.drawImage(a,0,0,a.width,a.height,0,0,f.width,f.height);h.texImage2D(h.TEXTURE_2D,
0,p,w,A,f)}else h.texImage2D(h.TEXTURE_2D,0,p,w,A,a);g?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.REPEAT),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.REPEAT)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE));n?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.LINEAR),r&&this.so?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR_MIPMAP_LINEAR),h.generateMipmap(h.TEXTURE_2D)):h.texParameteri(h.TEXTURE_2D,
h.TEXTURE_MIN_FILTER,h.LINEAR)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.NEAREST),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.NEAREST));h.bindTexture(h.TEXTURE_2D,null);this.ze=null;b.Gg=a.width;b.Fg=a.height;b.hi=1;b.ao=l;e.push(b);return s[l]=b};g.prototype.Jd=function(a,g,n,f){this.se();var l=this.A;this.we&&(f=!1);var b=l.createTexture();l.bindTexture(l.TEXTURE_2D,b);l.texImage2D(l.TEXTURE_2D,0,l.RGBA,a,g,0,l.RGBA,f?l.UNSIGNED_SHORT_4_4_4_4:l.UNSIGNED_BYTE,null);l.texParameteri(l.TEXTURE_2D,
l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE);l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE);l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,n?l.LINEAR:l.NEAREST);l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,n?l.LINEAR:l.NEAREST);l.bindTexture(l.TEXTURE_2D,null);this.ze=null;b.Gg=a;b.Fg=g;e.push(b);return b};g.prototype.qw=function(a,e,g){this.se();var f=this.A;this.we&&(g=!1);f.bindTexture(f.TEXTURE_2D,e);f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{f.texImage2D(f.TEXTURE_2D,
0,f.RGBA,f.RGBA,g?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,a)}catch(l){console&&console.error&&console.error("Error updating WebGL texture: ",l)}f.bindTexture(f.TEXTURE_2D,null);this.ze=null};g.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.hi&&1<a.hi?a.hi--:(this.se(),a===this.ze&&(this.A.bindTexture(this.A.TEXTURE_2D,null),this.ze=null),a===this.mf&&(this.A.activeTexture(this.A.TEXTURE1),this.A.bindTexture(this.A.TEXTURE_2D,null),this.A.activeTexture(this.A.TEXTURE0),this.mf=null),
Ia(e,a),"undefined"!==typeof a.ao&&delete s[a.ao],this.A.deleteTexture(a)))};g.prototype.yd=function(a){if(a!==this.gq){var e=this.$c();e.type=6;this.gq=e.dd=a;this.hc=!1}};ob=g})();
(function(){function g(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function n(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function a(d){if(d&&(d.getContext||d.dc)&&!d.c2runtime){d.c2runtime=this;var b=this;this.Lc=(this.bh=/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.c2isphonegap&&window.c2isphonegap;this.Eb=!!d.dc;this.Tf="undefined"!==typeof window.AppMobi||this.Eb;this.Jc=!!window.c2cocoonjs;this.Wc=!!window.c2ejecta;this.Jc&&(CocoonJS.App.onSuspended.addEventListener(function(){b.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){b.setSuspended(!1)}));this.Wc&&(document.addEventListener("pagehide",function(){b.setSuspended(!0)}),document.addEventListener("pageshow",
function(){b.setSuspended(!1)}),document.addEventListener("resize",function(){b.setSize(window.innerWidth,window.innerHeight)}));this.Ca=this.Eb||this.Jc||this.Wc;this.we=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.Uo=/tizen/i.test(navigator.userAgent);this.Ti=/android/i.test(navigator.userAgent)&&!this.Uo&&!this.we;this.Gl=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.we;this.Yo=/ipad/i.test(navigator.userAgent);this.Yi=this.Gl||this.Yo||this.Wc;this.Yu=this.Gl&&/os\s6/i.test(navigator.userAgent);this.ah=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.we;this.Ro=/amazonwebappplatform/i.test(navigator.userAgent);this.Ru=/firefox/i.test(navigator.userAgent);this.To=/safari/i.test(navigator.userAgent)&&!this.ah&&!this.we;this.Vu=/windows/i.test(navigator.userAgent);this.xe="undefined"!==typeof window.c2nodewebkit||/nodewebkit/i.test(navigator.userAgent);
this.Wo=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Xu=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Uf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.El=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Vo=this.Wo||this.Xu||this.El;this.Pu=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Ui=this.Ti&&!this.ah&&!this.bh&&!this.Ru&&!this.Ro&&
!this.Ca;this.devicePixelRatio=1;this.Kc=this.Lc||this.bh||this.Tf||this.Jc||this.Ti||this.Yi||this.Uf||this.El||this.Pu||this.Uo||this.Wc;this.Kc||(this.Kc=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.xe||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)||(this.xe=!0);this.Qu="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=
d;this.fo=document.getElementById("c2canvasdiv");this.wa=this.D=this.A=null;this.dl="";this.Hi=!1;this.Jp=this.Kp=0;this.canvas.oncontextmenu=function(d){d.preventDefault&&d.preventDefault();return!1};this.canvas.onselectstart=function(d){d.preventDefault&&d.preventDefault();return!1};this.Eb&&(window.c2runtime=this);this.xe&&(window.ondragover=function(d){d.preventDefault();return!1},window.ondrop=function(d){d.preventDefault();return!1},require("nw.gui").App.clearCache());this.Ui&&"undefined"!==
typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=d.width;this.height=d.height;this.X=this.width;this.W=this.height;this.qi=this.width;this.pi=this.height;this.kh=window.innerWidth;this.jh=window.innerHeight;this.$t=!1;this.ga=!0;this.eh=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.B=[];this.Sa=[];this.Ql={};this.Yc=[];this.Xk={};this.Qd=[];this.Ag=[];this.kk=[];this.Ns=[];this.Os=[];this.uq=null;this.Xe={};this.Bl=this.ve=
!1;this.xc=0;this.Dl=!1;this.Vc=[];this.Xd=this.Ob=this.ij=this.Om="";this.Ph=this.sq=!1;this.Nk=this.uh=this.Pd=this.Od=0;this.ug=1;this.ic=new eb;this.Ed=new eb;this.cj=0;this.yp=!0;this.tj=this.Ji=this.Lf=this.Ac=this.of=this.cl=0;this.Lk=null;this.xi=[];this.Wk=[];this.Ci=-1;this.Wl=[[]];this.cn=this.pj=0;this.Ej(null);this.Yl=[];this.qj=-1;this.Ep=this.wh=0;this.Pl=!0;this.Mg=0;this.Qh=[];this.fk=this.Ij=-1;this.Zi=!0;this.nj=0;this.dh=!1;this.$v=0;this.Gf=null;this.Gu=!1;this.Il=0;this.Na=this.Rf=
this.Em=!1;this.Ip=new ca;this.hm=new ca;this.im=new ca;this.Jj=[];this.bd=new gb([]);this.Wm=new gb([]);this.Ff=[];this.Wg={};this.If={};this.Ef={};this.zg={};this.Xn={};this.fp=this.gj=this.kc=this.yc=this.ep=this.fj=this.Ba=null;this.xg=this.Fl=!1;this.el=[null,null];this.$e=0;this.Gi="";this.Ge={};this.Xj=this.ag=null;this.sj=[];this.Jv()}}function e(d){d.target.result.createObjectStore("saves",{keyPath:"slot"})}function s(d,b,k,a){var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=e;c.onerror=
a;c.onsuccess=function(c){c=c.target.result;c.onerror=a;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:d,data:b}).onsuccess=k}}function c(d,b,k){var a=indexedDB.open("_C2SaveStates");a.onupgradeneeded=e;a.onerror=k;a.onsuccess=function(a){a=a.target.result;a.onerror=k;var v=a.transaction(["saves"]).objectStore("saves").get(d);v.onsuccess=function(){v.result?b(v.result.data):b(null)}}}function t(){E("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<
window.location.search.indexOf("continuous")?window.location.reload(!0):window.location+="?continuous"}function u(d){var b,k={};for(b in d)!d.hasOwnProperty(b)||d[b]instanceof ca||d[b]&&"undefined"!==typeof d[b].ax||(k[b]=d[b]);return k}a.prototype.Jv=function(){var d=this,b;b=this.Uf?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var k="data.js";if(this.Wo||this.Uf||this.El)k="data.json";b.open("GET",k,!0);var a=!1;if(!this.Ca&&"response"in b&&"responseType"in b)try{b.responseType="json",
a="json"===b.responseType}catch(c){a=!1}if(!a&&"responseType"in b)try{b.responseType="text"}catch(f){}if("overrideMimeType"in b)try{b.overrideMimeType("application/json; charset=utf-8")}catch(e){}this.Uf?b.onreadystatechange=function(){4===b.readyState&&d.kj(JSON.parse(b.responseText))}:(b.onload=function(){if(a)d.kj(b.response);else if(d.Wc){var k=b.responseText,k=k.substr(k.indexOf("{"));d.kj(JSON.parse(k))}else d.kj(JSON.parse(b.responseText))},b.onerror=function(d){ea("Error requesting "+k+":");
ea(d)});b.send()};a.prototype.Mu=function(){var d=this,b,k,a,c,f,e,h,m,p;this.devicePixelRatio=(this.jf=(!this.Ca||this.Wc)&&this.mw&&!this.Ui)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.xb();k=!(!this.$t&&(!this.Ak||this.xe||this.Vo||this.Uf||this.bh||this.Lc||this.Ro));0<this.Tb&&this.setSize(g(),n(),!0);try{this.yt&&(this.Jc||this.Wc||!this.Ca)&&(b={alpha:k,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.A=
this.canvas.getContext("webgl",b)||this.canvas.getContext("experimental-webgl",b))}catch(l){}if(this.A){this.Ca||(this.sb=document.createElement("canvas"),jQuery(this.sb).appendTo(this.canvas.parentNode),this.sb.oncontextmenu=function(){return!1},this.sb.onselectstart=function(){return!1},this.sb.width=this.qi,this.sb.height=this.pi,jQuery(this.sb).css({width:this.qi+"px",height:this.pi+"px"}),this.$p(),this.wm=this.sb.getContext("2d"));this.D=new ob(this.A,this.Kc);this.D.pg(this.canvas.width,this.canvas.height);
this.D.so=0!==this.pt;this.wa=null;this.canvas.addEventListener("webglcontextlost",function(k){k.preventDefault();d.iv();E("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){d.D.Mo();d.D.pg(d.D.width,d.D.height,!0);d.yc=null;d.kc=null;d.el[0]=null;d.el[1]=null;d.jv();d.ga=!0;E("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);b=0;for(k=this.B.length;b<k;b++)for(f=this.B[b],a=0,c=f.S.length;a<c;a++)h=
f.S[a],h.ub=this.D.ml(h.id),this.xg=this.xg||this.D.Ch(h.ub);b=0;for(k=this.Yc.length;b<k;b++){m=this.Yc[b];a=0;for(c=m.S.length;a<c;a++)h=m.S[a],h.ub=this.D.ml(h.id);a=0;for(c=m.Y.length;a<c;a++)for(p=m.Y[a],f=0,e=p.S.length;f<e;f++)h=p.S[f],h.ub=this.D.ml(h.id),this.xg=this.xg||this.D.Ch(h.ub)}}else{if(0<this.Tb&&this.Eb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.wa=AppMobi.canvas.getContext("2d");try{this.wa.samplingMode=this.la?
"smooth":"sharp",this.wa.globalScale=1,this.wa.HTML5CompatibilityMode=!0,this.wa.imageSmoothingEnabled=this.la}catch(y){}0!==this.width&&0!==this.height&&(this.wa.width=this.width,this.wa.height=this.height)}this.wa||(b=this.Jc?{antialias:!!this.la,alpha:k}:{alpha:k},this.wa=this.canvas.getContext("2d",b),this.wa.webkitImageSmoothingEnabled=this.la,this.wa.mozImageSmoothingEnabled=this.la,this.wa.msImageSmoothingEnabled=this.la,this.wa.imageSmoothingEnabled=this.la);this.wm=this.sb=null}this.ek=function(){d.Ra(!1)};
window==window.top||this.Ca||this.Vo||this.Uf||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Jc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(E("Reloading for continuous preview"),this.ij="__c2_continuouspreview",this.Ph=!0),this.rv&&!this.Kc&&(jQuery(window).focus(function(){d.setSuspended(!1)}),
jQuery(window).blur(function(){d.setSuspended(!0)})));this.Ca||(b=function(d){nb(d)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur&&document.activeElement.blur()},window.navigator.pointerEnabled?document.addEventListener("pointerdown",b):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",b):document.addEventListener("touchstart",b),document.addEventListener("mousedown",b));0===this.Tb&&this.jf&&1<this.devicePixelRatio&&
this.setSize(this.Ya,this.Xa,!0);this.Fq();this.Eu();this.go();this.M={}};a.prototype.setSize=function(d,b,k){var a=0,c=0,f=0,h=0,h=0,e=this.Yu&&this.To&&!navigator.standalone&&!this.Ca&&!this.Lc;e&&(b+=60);if(this.kh!==d||this.jh!==b||k){this.kh=d;this.jh=b;var m=this.Tb,p=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.dh)&&!this.Lc;if(p||0!==this.Tb||k)p&&0<this.$e&&(m=this.$e),k=this.devicePixelRatio,4<=m?(f=this.Ya/this.Xa,d/b>f?
(f*=b,5===m?(h=f*k/this.Ya,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),f=this.Ya*h/k,h=this.Xa*h/k,a=(d-f)/2,c=(b-h)/2,d=f,b=h):(a=(d-f)/2,d=f)):(h=d/f,5===m?(h=h*k/this.Xa,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),f=this.Ya*h/k,h=this.Xa*h/k,a=(d-f)/2,c=(b-h)/2,d=f):c=(b-h)/2,b=h),p&&!this.xe&&(c=a=0)):this.xe&&this.dh&&0===this.zo&&(a=Math.floor((d-this.Ya)/2),c=Math.floor((b-this.Xa)/2),d=this.Ya,b=this.Xa),2>m&&(this.Eg=k),this.jf&&this.Yo&&1<k&&(1024<=d&&(d=1023),1024<=b&&(b=1023)),this.qi=
Math.round(d),this.pi=Math.round(b),this.width=Math.round(d*k),this.height=Math.round(b*k),this.ga=!0,this.Rq?(this.X=this.width,this.W=this.height,this.Ic=!0):this.width<this.Ya&&this.height<this.Xa||1===m?(this.X=this.width,this.W=this.height,this.Ic=!0):(this.X=this.Ya,this.W=this.Xa,this.Ic=!1,2===m?(f=this.Ya/this.Xa,m=this.kh/this.jh,m<f?this.X=this.W*m:m>f&&(this.W=this.X/m)):3===m&&(f=this.Ya/this.Xa,m=this.kh/this.jh,m>f?this.X=this.W*m:m<f&&(this.W=this.X/m))),this.fo&&!this.Ca&&(jQuery(this.fo).css({width:Math.round(d)+
"px",height:Math.round(b)+"px","margin-left":Math.floor(a)+"px","margin-top":Math.floor(c)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(d)+"px",height:Math.round(b)+"px"})),this.canvas&&(this.canvas.width=Math.round(d*k),this.canvas.height=Math.round(b*k),this.Wc?(this.canvas.style.left=Math.floor(a)+"px",this.canvas.style.top=Math.floor(c)+"px",this.canvas.style.width=Math.round(d)+"px",this.canvas.style.height=Math.round(b)+"px"):this.jf&&!this.Ca&&jQuery(this.canvas).css({width:Math.round(d)+
"px",height:Math.round(b)+"px"})),this.sb&&(this.sb.width=Math.round(d),this.sb.height=Math.round(b),jQuery(this.sb).css({width:Math.round(d)+"px",height:Math.round(b)+"px"})),this.D&&this.D.pg(Math.round(d*k),Math.round(b*k)),this.Eb&&this.wa&&(this.wa.width=Math.round(d),this.wa.height=Math.round(b)),this.wa&&(this.wa.webkitImageSmoothingEnabled=this.la,this.wa.mozImageSmoothingEnabled=this.la,this.wa.msImageSmoothingEnabled=this.la,this.wa.imageSmoothingEnabled=this.la),this.Fq(),this.Ca||!e&&
!this.Gl||window.setTimeout(function(){window.scrollTo(0,1)},100)}};a.prototype.Fq=function(){if(this.Qs&&0!==this.um){var d="portrait";2===this.um&&(d="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(d):screen.lockOrientation?screen.lockOrientation(d):screen.webkitLockOrientation?screen.webkitLockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):screen.msLockOrientation&&screen.msLockOrientation(d)}};a.prototype.iv=function(){this.D.Ws();this.Fl=
!0;var d,b,k;d=0;for(b=this.B.length;d<b;d++)k=this.B[d],k.uj&&k.uj()};a.prototype.jv=function(){this.Fl=!1;var d,b,k;d=0;for(b=this.B.length;d<b;d++)k=this.B[d],k.rm&&k.rm()};a.prototype.$p=function(){if(!this.Ca){var d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.dh)&&!this.Lc?jQuery(this.canvas).offset():jQuery(this.canvas).position();d.position="absolute";jQuery(this.sb).css(d)}};var f=window.cancelAnimationFrame||window.mozCancelAnimationFrame||
window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;a.prototype.setSuspended=function(d){var b;if(d&&!this.eh)for(E("[Construct 2] Suspending"),this.eh=!0,-1!==this.Ij&&f&&f(this.Ij),-1!==this.fk&&clearTimeout(this.fk),d=0,b=this.Qh.length;d<b;d++)this.Qh[d](!0);else if(!d&&this.eh){E("[Construct 2] Resuming");this.eh=!1;this.cj=ab();this.of=ab();d=this.uh=this.Ji=0;for(b=this.Qh.length;d<b;d++)this.Qh[d](!1);this.Ra(!1)}};a.prototype.Ms=function(d){this.Qh.push(d)};
a.prototype.ie=function(d){return this.sj[d]};a.prototype.kj=function(d){d&&d.project||ea("Project model unavailable");d=d.project;this.name=d[0];this.yo=d[1];this.Tb=d[12];this.zo=d[12];this.Ya=d[10];this.Xa=d[11];this.Wp=this.Ya/2;this.Xp=this.Xa/2;this.Ca&&!this.Wc&&(4<=d[12]||0===d[12])&&(E("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.zo=this.Tb=3);this.kn=d[18];this.nh=d[19];0===this.nh&&(this.ag=new Image,this.ag.src=
"loading-logo.png");this.wh=d[21];this.sj=mc();this.Ad=new X(this);var b,k,a,c,f,h,e,m,p;b=0;for(k=d[2].length;b<k;b++)e=d[2][b],a=this.ie(e[0]),pb(e,a.prototype),p=new a(this),p.Wj=e[1],p.ye=e[2],p.Cp=e[9],p.U&&p.U(),this.plugins.push(p);this.sj=mc();b=0;for(k=d[3].length;b<k;b++){e=d[3][b];f=this.ie(e[1]);p=null;a=0;for(c=this.plugins.length;a<c;a++)if(this.plugins[a]instanceof f){p=this.plugins[a];break}var l=new p.ua(p);l.name=e[0];l.N=e[2];l.Al=e[3].slice(0);l.ow=e[3].length;l.Rs=e[4];l.bu=e[5];
l.ba=e[11];l.N?(l.dg=[],l.Rd=this.Mg++,l.Ga=null):(l.dg=null,l.Rd=-1,l.Ga=[]);l.Ei=null;l.Nf=null;l.uo=null;l.Mb=!1;l.gc=null;e[6]?(l.Ym=e[6][0],l.Zm=e[6][1],l.$m=e[6][2]):(l.Ym=null,l.Zm=0,l.$m=0);l.ec=e[7]?e[7]:null;l.index=b;l.d=[];l.vi=[];l.Pe=[new qb(l)];l.Nd=0;l.Fc=null;l.ct=0;l.sg=!0;l.lk=rb;l.kl=sb;l.lu=tb;l.K=ub;l.Dh=wb;l.Eh=xb;l.Ie=yb;l.Mi=zb;l.gl=Ab;l.jl=Bb;l.fc=Cb;l.Do=Db;l.mi=new hb(this.Ya,this.Xa);l.bi=!0;l.ci=!1;l.M={};l.toString=Eb;l.Sa=[];a=0;for(c=e[8].length;a<c;a++){m=e[8][a];
var y=this.ie(m[1]),g=null;f=0;for(h=this.Sa.length;f<h;f++)if(this.Sa[f]instanceof y){g=this.Sa[f];break}g||(g=new y(this),g.em=[],g.dm=new ca,g.U&&g.U(),this.Sa.push(g),nc&&g instanceof nc&&(this.uq=g));-1===g.em.indexOf(l)&&g.em.push(l);f=new g.ua(g,l);f.name=m[0];f.ba=m[2];f.U();l.Sa.push(f)}l.global=e[9];l.Cl=e[10];l.S=[];a=0;for(c=e[12].length;a<c;a++)l.S.push({id:e[12][a][0],name:e[12][a][1],ub:-1,sc:!0,index:a});l.vx=e[13];this.kn&&!l.N&&!l.Cl&&p.ye||l.U();l.name&&(this.types[l.name]=l);this.B.push(l);
p.Wj&&(a=new p.ja(l),a.uid=this.wh++,a.cq=this.Ep++,a.ff=0,a.Tg=Fb,a.toString=Gb,a.I=e[14],a.U(),l.d.push(a),this.Ge[a.uid.toString()]=a)}b=0;for(k=d[4].length;b<k;b++)for(f=d[4][b],h=this.B[f[0]],a=1,c=f.length;a<c;a++)e=this.B[f[a]],e.Ga.push(h),h.dg.push(e);b=0;for(k=d[27].length;b<k;b++){f=d[27][b];h=[];a=0;for(c=f.length;a<c;a++)h.push(this.B[f[a]]);a=0;for(c=h.length;a<c;a++)h[a].Mb=!0,h[a].gc=h}if(0<this.Mg)for(b=0,k=this.B.length;b<k;b++)if(e=this.B[b],!e.N&&e.Ga.length){e.Ei=Array(this.Mg);
e.Nf=Array(this.Mg);e.uo=Array(this.Mg);l=[];a=g=y=m=0;for(c=e.Ga.length;a<c;a++)for(p=e.Ga[a],e.Ei[p.Rd]=m,m+=p.ow,e.Nf[p.Rd]=y,y+=p.Rs,e.uo[p.Rd]=g,g+=p.bu,f=0,h=p.S.length;f<h;f++)l.push(Da({},p.S[f]));e.S=l.concat(e.S);a=0;for(c=e.S.length;a<c;a++)e.S[a].index=a}b=0;for(k=d[5].length;b<k;b++)e=d[5][b],a=new Hb(this,e),this.Ql[a.name]=a,this.Yc.push(a);b=0;for(k=d[6].length;b<k;b++)e=d[6][b],a=new Ib(this,e),this.Xk[a.name]=a,this.Qd.push(a);b=0;for(k=this.Qd.length;b<k;b++)this.Qd[b].Qa();b=0;
for(k=this.Qd.length;b<k;b++)this.Qd[b].Mq();b=0;for(k=this.kk.length;b<k;b++)this.kk[b].Qa();this.kk.length=0;this.Ps=d[7];this.Gi=d[8];this.vd=d[9];this.Eg=1;this.yt=d[13];this.la=d[14];this.Ak=d[15];this.pw=d[16];this.mw=d[17];this.um=d[20];this.Qs=0<this.um;this.rv=d[22];this.Ic=this.Rq=d[23];this.pt=d[24];this.yv=d[25];this.Yj=Date.now();this.sj.length=0;this.Mu()};var l=!1;a.prototype.Qq=function(d,b){d.cocoonLazyLoad=!0;d.onerror=function(b){l=d.$n=!0;console&&console.error&&console.error("Error loading image '"+
d.src+"': ",b)};this.Wc?d.src=b:d.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(b){d.src=b},function(k){l=d.$n=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",k)}):d.src=b);this.Ag.push(d)};a.prototype.Zt=function(d){var b,k;b=0;for(k=this.Ag.length;b<k;b++)if(this.Ag[b].Xs===d)return this.Ag[b];return null};var b=0,h=!1;a.prototype.Eu=function(){this.Gf&&(b=this.Gf.Yv(this.Ps))};a.prototype.Wn=function(){var d=b,a=0,k=0,c=!0,f,e,k=
0;for(f=this.Ag.length;k<f;k++){e=this.Ag[k];var m=e.lo;if(!m||0>=m)m=5E4;d+=m;e.src&&(e.complete||e.loaded)&&!e.$n?a+=m:c=!1}c&&this.yv&&this.Gf&&(h||(this.Gf.aw(),h=!0),k=this.Gf.mu(),a+=k,k<b&&(c=!1));this.vf=0==d?0:a/d;return c};a.prototype.go=function(){if(this.wa||this.D){var d=this.wa||this.wm;this.sb&&this.$p();this.vf=0;this.dp=-1;if(this.Wn())this.Fu();else{var b=Date.now()-this.Yj;if(d){var k=this.width,a=this.height,c=this.devicePixelRatio;this.sb&&(k=this.qi,a=this.pi,c=1);if(3!==this.nh&&
(this.Jc||500<=b&&this.dp!=this.vf)){d.clearRect(0,0,k,a);var b=k/2,a=a/2,k=0===this.nh&&this.ag.complete,f=40*c,e=0,h=80*c,m;k&&(h=this.ag.width*c,m=this.ag.height*c,f=h/2,e=m/2,d.drawImage(this.ag,R(b-f),R(a-e),h,m));1>=this.nh?(b=R(b-f)+.5,a=R(a+(e+(k?12*c:0)))+.5,d.fillStyle=l?"red":"DodgerBlue",d.fillRect(b,a,Math.floor(h*this.vf),6*c),d.strokeStyle="black",d.strokeRect(b,a,h,6*c),d.strokeStyle="white",d.strokeRect(b-1*c,a-1*c,h+2*c,8*c)):2===this.nh&&(d.font=this.Wc?"12pt ArialMT":"12pt Arial",
d.fillStyle=l?"#f00":"#999",d.ux="middle",c=Math.round(100*this.vf)+"%",k=d.measureText?d.measureText(c):null,d.fillText(c,b-(k?k.width:0)/2,a))}this.dp=this.vf}setTimeout(function(d){return function(){d.go()}}(this),this.Jc?10:100)}}};a.prototype.Fu=function(){this.sb&&(this.canvas.parentNode.removeChild(this.sb),this.sb=this.wm=null);this.Yj=Date.now();this.of=ab();var d,b,k;if(this.kn)for(d=0,b=this.B.length;d<b;d++)k=this.B[d],k.N||k.Cl||!k.ya.ye||k.U();else this.Zi=!1;d=0;for(b=this.Yc.length;d<
b;d++)this.Yc[d].Ys();2<=this.Tb&&(d=this.Ya/this.Xa,b=this.width/this.height,this.Eg=2!==this.Tb&&b>d||2===this.Tb&&b<d?this.height/this.Xa:this.width/this.Ya);this.yo?this.Ql[this.yo].Um():this.Yc[0].Um();this.kn||(this.nj=1,this.trigger(X.prototype.j.Dn,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();d=0;for(b=this.B.length;d<b;d++)k=this.B[d],k.hv&&k.hv();this.Ra(!1);this.Eb&&AppMobi.webview.execute("onGameReady();")};var r=window.requestAnimationFrame||
window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;a.prototype.Ra=function(d){if(this.Ba){var b=ab();if(this.Gu&&this.Em&&29>b-this.Il)this.Em=!1,this.Il=b,r?this.Ij=r(this.ek,this.canvas):this.fk=setTimeout(this.ek,this.Kc?1:16);else{this.Em=!0;this.Il=b;var k=this.Tb,a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Lc;(a||this.dh)&&0<this.$e&&(k=this.$e);
0<k&&(!this.Yi||window.self!==window.top)&&(k=window.innerHeight,this.kh===window.innerWidth&&this.jh===k||this.setSize(g(),n()));this.Ca||(a?(this.Hi||(this.dl=jQuery(this.canvas).css("margin")||"0",this.Hi=!0),this.ah||this.xe||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.Hi?(this.ah||this.xe||jQuery(this.canvas).css("margin",this.dl),this.dl=
"",this.Hi=!1,0===this.Tb&&this.setSize(Math.round(this.Kp/this.devicePixelRatio),Math.round(this.Jp/this.devicePixelRatio),!0)):(this.Kp=this.width,this.Jp=this.height));this.Zi&&(a=this.Wn(),this.nj=this.vf,a&&(this.Zi=!1,this.vf=1,this.trigger(X.prototype.j.Dn,null)));this.av();!this.ga&&!this.Jc||this.Fl||this.Ph||d||(this.ga=!1,this.D?this.Hc():this.kd(),this.Xj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.Xj[0],this.Xj[1]),this.trigger(X.prototype.j.Ir,null)),this.Xj=null));
this.mx||(this.Ac++,this.Lf++,this.Ji++);this.uh+=ab()-b;this.eh||d||(r?this.Ij=r(this.ek,this.canvas):this.fk=setTimeout(this.ek,this.Kc?1:16))}}};a.prototype.av=function(){var d,b,k,a,c,f,e,h,m;d=ab();1E3<=d-this.of&&(this.of+=1E3,1E3<=d-this.of&&(this.of=d),this.cl=this.Ji,this.Ji=0,this.Nk=this.uh,this.uh=0);this.yp&&(0!==this.cj&&(b=d-this.cj,0!==b||this.Qu?(this.Pd=b/1E3,.5<this.Pd?this.Pd=0:.1<this.Pd&&(this.Pd=.1)):(10<=this.wx&&(this.yp=!1),this.Pd=1/60)),this.cj=d);this.Od=this.Pd*this.ug;
this.ic.add(this.Od);this.Ed.add(this.Pd);d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.dh)&&!this.Lc;2<=this.Tb||d&&0<this.$e?(b=this.Ya/this.Xa,k=this.width/this.height,a=this.Tb,d&&0<this.$e&&(a=this.$e),this.Eg=2!==a&&k>b||2===a&&k<b?this.height/this.Xa:this.width/this.Ya,this.Ba&&(this.Ba.iq(this.Ba.scrollX),this.Ba.jq(this.Ba.scrollY))):this.Eg=this.jf?this.devicePixelRatio:1;this.xb();this.xc++;this.Ad.Nv();this.xc--;this.xb();
this.xc++;k=this.Ip.Te();d=0;for(b=k.length;d<b;d++)k[d].ox();d=0;for(b=this.B.length;d<b;d++)if(e=this.B[d],!e.N&&(e.Sa.length||e.Ga.length))for(k=0,a=e.d.length;k<a;k++)for(h=e.d[k],c=0,f=h.V.length;c<f;c++)h.V[c].Ra();d=0;for(b=this.B.length;d<b;d++)if(e=this.B[d],!e.N&&(e.Sa.length||e.Ga.length))for(k=0,a=e.d.length;k<a;k++)for(h=e.d[k],c=0,f=h.V.length;c<f;c++)m=h.V[c],m.xv&&m.xv();k=this.hm.Te();d=0;for(b=k.length;d<b;d++)k[d].Ra();this.xc--;this.Hu();for(d=0;this.Lk&&10>d++;)this.ro(this.Lk);
d=0;for(b=this.Qd.length;d<b;d++)this.Qd[d].sl=!1;this.Ba.Jg&&this.Ba.Jg.$a();this.Jj.length=0;this.Pl=!1;this.xc++;d=0;for(b=this.B.length;d<b;d++)if(e=this.B[d],!e.N&&(e.Sa.length||e.Ga.length))for(k=0,a=e.d.length;k<a;k++)for(h=e.d[k],c=0,f=h.V.length;c<f;c++)m=h.V[c],m.dk&&m.dk();k=this.im.Te();d=0;for(b=k.length;d<b;d++)k[d].dk();this.xc--};a.prototype.ro=function(d){var b=this.Ba;this.Ba.bw();var k,a,c,e,f,h,m;if(this.D)for(k=0,a=this.B.length;k<a;k++)f=this.B[k],f.N||!f.en||f.global&&0!==f.d.length||
-1!==d.Zg.indexOf(f)||f.en();b==d&&(this.Ad.cc.length=0);d.Um();k=0;for(a=this.B.length;k<a;k++)if(f=this.B[k],f.global||f.ya.Wj)for(d=0,b=f.d.length;d<b;d++)if(h=f.d[d],h.nm&&h.nm(),h.V)for(c=0,e=h.V.length;c<e;c++)m=h.V[c],m.nm&&m.nm();this.Pl=this.ga=!0;this.xb()};a.prototype.tg=function(d){this.hm.add(d)};a.prototype.dw=function(d){this.im.add(d)};a.prototype.Pf=function(d){return d&&-1!==d.tf?this.Pd*d.tf:this.Od};a.prototype.kd=function(){this.Ba.kd(this.wa);this.Eb&&this.wa.present()};a.prototype.Hc=
function(){this.Ba.Hc(this.D);this.D.Av()};a.prototype.zk=function(d){d&&this.xi.push(d)};a.prototype.Iv=function(d){Ia(this.xi,d)};a.prototype.Rg=function(d){d=d.toString();return this.Ge.hasOwnProperty(d)?this.Ge[d]:null};var p=[];a.prototype.Fd=function(d){var b,k;b=d.type.name;var a=null;if(this.Xe.hasOwnProperty(b)){if(a=this.Xe[b],a.contains(d))return}else a=p.length?p.pop():new ca,this.Xe[b]=a;a.add(d);this.ve=!0;if(d.Mb)for(b=0,k=d.siblings.length;b<k;b++)this.Fd(d.siblings[b]);this.Bl&&a.yg.push(d);
this.xc++;this.trigger(Object.getPrototypeOf(d.type.ya).j.Kr,d);this.xc--};a.prototype.xb=function(){if(this.ve){var d,b,k,a,c,e;this.Bl=!0;k=0;for(c=this.Vc.length;k<c;++k)for(d=this.Vc[k],b=d.type,b.d.push(d),a=0,e=b.Ga.length;a<e;++a)b.Ga[a].d.push(d),b.Ga[a].sg=!0;this.Vc.length=0;this.Ar();$a(this.Xe);this.ve=this.Bl=!1}};a.prototype.Ar=function(){for(var d in this.Xe)this.Xe.hasOwnProperty(d)&&this.er(this.Xe[d])};a.prototype.er=function(d){var b=d.Te(),k=b[0].type,a,c,e,f,h,m;bb(k.d,d);k.sg=
!0;0===k.d.length&&(k.ci=!1);a=0;for(c=k.Ga.length;a<c;++a)m=k.Ga[a],bb(m.d,d),m.sg=!0;a=0;for(c=this.Ad.cc.length;a<c;++a)if(h=this.Ad.cc[a],h.Pb.hasOwnProperty(k.index)&&bb(h.Pb[k.index].Vd,d),!k.N)for(e=0,f=k.Ga.length;e<f;++e)m=k.Ga[e],h.Pb.hasOwnProperty(m.index)&&bb(h.Pb[m.index].Vd,d);if(h=b[0].n){if(h.ed)for(e=h.d,a=0,c=e.length;a<c;++a)f=e[a],d.contains(f)&&(f.Aa(),h.oc.update(f,f.$b,null),f.$b.set(0,0,-1,-1));bb(h.d,d);h.Kh(0)}for(a=0;a<b.length;++a)this.dr(b[a],k);d.clear();p.push(d);this.ga=
!0};a.prototype.dr=function(d,b){var k,a,c;k=0;for(a=this.xi.length;k<a;++k)this.xi[k](d);d.qe&&b.mi.update(d,d.qe,null);(k=d.n)&&k.mg(d,!0);if(d.V)for(k=0,a=d.V.length;k<a;++k)c=d.V[k],c.jg&&c.jg(),c.behavior.dm.remove(d);this.Ip.remove(d);this.hm.remove(d);this.im.remove(d);d.jg&&d.jg();this.Ge.hasOwnProperty(d.uid.toString())&&delete this.Ge[d.uid.toString()];this.tj--;100>b.vi.length&&b.vi.push(d)};a.prototype.Ok=function(d,b,k,a){if(d.N){var c=R(Math.random()*d.dg.length);return this.Ok(d.dg[c],
b,k,a)}return d.Fc?this.re(d.Fc,b,!1,k,a,!1):null};var w=[];a.prototype.re=function(d,b,k,a,c,e){var f,h,m,l;if(!d)return null;var p=this.B[d[1]],g=p.ya.ye;if(this.Zi&&g&&!p.Cl||g&&!this.D&&11===d[0][11])return null;var y=b;g||(b=null);var r;p.vi.length?(r=p.vi.pop(),r.nc=!0,p.ya.ja.call(r,p)):(r=new p.ya.ja(p),r.nc=!1);r.uid=k&&!e?d[2]:this.wh++;this.Ge[r.uid.toString()]=r;r.cq=this.Ep++;r.ff=p.d.length;f=0;for(h=this.Vc.length;f<h;++f)this.Vc[f].type===p&&r.ff++;r.Tg=Fb;r.toString=Gb;m=d[3];if(r.nc)$a(r.M);
else{r.M={};if("undefined"!==typeof cr_is_preview)for(r.Po=[],r.Po.length=m.length,f=0,h=m.length;f<h;f++)r.Po[f]=m[f][1];r.gb=[];r.gb.length=m.length}f=0;for(h=m.length;f<h;f++)r.gb[f]=m[f][0];if(g){var n=d[0];r.x=fa(a)?n[0]:a;r.y=fa(c)?n[1]:c;r.z=n[2];r.width=n[3];r.height=n[4];r.depth=n[5];r.k=n[6];r.opacity=n[7];r.Ub=n[8];r.Vb=n[9];r.Sb=n[10];f=n[11];!this.D&&p.S.length&&(r.Sb=f);r.Hg=jb(r.Sb);this.A&&kb(r,r.Sb,this.A);if(r.nc){f=0;for(h=n[12].length;f<h;f++)for(m=0,l=n[12][f].length;m<l;m++)r.Ia[f][m]=
n[12][f][m];r.Ea.set(0,0,0,0);r.qe.set(0,0,-1,-1);r.$b.set(0,0,-1,-1);r.Kb.Lh(r.Ea);r.Fk.length=0}else{r.Ia=n[12].slice(0);f=0;for(h=r.Ia.length;f<h;f++)r.Ia[f]=n[12][f].slice(0);r.ka=[];r.je=[];r.je.length=p.S.length;r.Ea=new ua(0,0,0,0);r.qe=new ua(0,0,-1,-1);r.$b=new ua(0,0,-1,-1);r.Kb=new va;r.Fk=[];r.H=Jb;r.$w=Kb;r.Lb=Lb;r.Aa=Mb;r.lw=Nb;r.Oq=Ob;r.nd=Pb}r.Th=!1;r.gw=0;r.fw=0;r.ew=null;14===n.length&&(r.Th=!0,r.gw=n[13][0],r.fw=n[13][1],r.ew=n[13][2]);f=0;for(h=p.S.length;f<h;f++)r.je[f]=!0;r.ge=
Qb;r.ge();r.Pq=!!r.ka.length;r.Ek=!0;r.Ik=!0;p.bi=!0;r.visible=!0;r.tf=-1;r.n=b;r.fd=b.d.length;"undefined"===typeof r.na&&(r.na=null);this.ga=r.Id=!0}var A;f=w.length=0;for(h=p.Ga.length;f<h;f++)w.push.apply(w,p.Ga[f].Sa);w.push.apply(w,p.Sa);if(r.nc)for(f=0,h=w.length;f<h;f++){var s=w[f];A=r.V[f];A.nc=!0;s.behavior.ja.call(A,s,r);n=d[4][f];m=0;for(l=n.length;m<l;m++)A.I[m]=n[m];A.U();s.behavior.dm.add(r)}else for(r.V=[],f=0,h=w.length;f<h;f++)s=w[f],A=new s.behavior.ja(s,r),A.nc=!1,A.I=d[4][f].slice(0),
A.U(),r.V.push(A),s.behavior.dm.add(r);n=d[5];if(r.nc)for(f=0,h=n.length;f<h;f++)r.I[f]=n[f];else r.I=n.slice(0);this.Vc.push(r);this.ve=!0;b&&(b.Dg(r,!0),1!==b.Yb||1!==b.Zb)&&(p.ci=!0);this.tj++;if(p.Mb){if(r.Mb=!0,r.nc?r.siblings.length=0:r.siblings=[],!k&&!e){f=0;for(h=p.gc.length;f<h;f++)if(p.gc[f]!==p){if(!p.gc[f].Fc)return null;r.siblings.push(this.re(p.gc[f].Fc,y,!1,g?r.x:a,g?r.y:c,!0))}f=0;for(h=r.siblings.length;f<h;f++)for(r.siblings[f].siblings.push(r),m=0;m<h;m++)f!==m&&r.siblings[f].siblings.push(r.siblings[m])}}else r.Mb=
!1,r.siblings=null;r.U();f=0;for(h=r.V.length;f<h;f++)r.V[f].wv&&r.V[f].wv();return r};a.prototype.Qg=function(d){var b,k;b=0;for(k=this.Ba.Y.length;b<k;b++){var a=this.Ba.Y[b];if(mb(a.name,d))return a}return null};a.prototype.Td=function(d){d=R(d);0>d&&(d=0);d>=this.Ba.Y.length&&(d=this.Ba.Y.length-1);return this.Ba.Y[d]};a.prototype.Mk=function(d){var b,k;b=0;for(k=d.length;b<k;b++)d[b].K().T=!0};a.prototype.Dh=function(d){var b,k;b=0;for(k=d.length;b<k;b++)d[b].Dh()};a.prototype.Eh=function(d){var b,
k;b=0;for(k=d.length;b<k;b++)d[b].Eh()};a.prototype.Ie=function(d){var b,k;b=0;for(k=d.length;b<k;b++)d[b].Ie()};a.prototype.Kq=function(d){if(d.bi){var b,k,a=d.d;b=0;for(k=a.length;b<k;++b)a[b].Oq();a=this.Vc;b=0;for(k=a.length;b<k;++b)a[b].type===d&&a[b].Oq();d.bi=!1}};a.prototype.hl=function(d,b,k,a){var f,c,h=d?1!==d.Yb||1!==d.Zb:!1;if(b.N)for(d=0,f=b.dg.length;d<f;++d)c=b.dg[d],h||c.ci?Ga(a,c.d):(this.Kq(c),c.mi.Hj(k,a));else h||b.ci?Ga(a,b.d):(this.Kq(b),b.mi.Hj(k,a))};a.prototype.ru=function(d,
b,k,a){var f,c;f=0;for(c=b.length;f<c;++f)this.hl(d,b[f],k,a)};a.prototype.qu=function(d,b,k){var a=this.uq;a&&this.ru(d,a.em,b,k)};a.prototype.Rh=function(d,b,k){var a=d.K(),f,c,h,e,m,p;if(a.T)for(a.T=!1,f=a.d.length=0,e=d.d.length;f<e;f++)h=d.d[f],h.Aa(),m=h.n.qb(b,k,!0),p=h.n.qb(b,k,!1),h.Lb(m,p)&&a.d.push(h);else{f=c=0;for(e=a.d.length;f<e;f++)h=a.d[f],h.Aa(),m=h.n.qb(b,k,!0),p=h.n.qb(b,k,!1),h.Lb(m,p)&&(a.d[c]=a.d[f],c++);a.d.length=c}d.fc();return a.rl()};a.prototype.de=function(d,b){if(!(d&&
b&&d!==b&&d.Id&&b.Id))return!1;d.Aa();b.Aa();var a=d.n,f=b.n,c,h,e,m,p,l,r,g;if(a===f||a.Yb===f.Yb&&f.Zb===f.Zb&&a.scale===f.scale&&a.k===f.k&&a.Jb===f.Jb){if(!d.Ea.Nu(b.Ea)||!d.Kb.Qo(b.Kb)||d.Th&&b.Th)return!1;if(d.Th)return this.xq(d,b);if(b.Th)return this.xq(b,d);r=d.na&&!d.na.Vf();c=b.na&&!b.na.Vf();if(!r&&!c)return!0;r?(d.na.Hf(d.width,d.height,d.k),r=d.na):(this.bd.qg(d.Kb,d.x,d.y,d.width,d.height),r=this.bd);c?(b.na.Hf(b.width,b.height,b.k),g=b.na):(this.bd.qg(b.Kb,b.x,b.y,b.width,b.height),
g=this.bd);return r.$g(g,b.x-d.x,b.y-d.y)}r=d.na&&!d.na.Vf();c=b.na&&!b.na.Vf();r?(d.na.Hf(d.width,d.height,d.k),this.bd.nq(d.na)):this.bd.qg(d.Kb,d.x,d.y,d.width,d.height);r=this.bd;c?(b.na.Hf(b.width,b.height,b.k),this.Wm.nq(b.na)):this.Wm.qg(b.Kb,b.x,b.y,b.width,b.height);g=this.Wm;c=0;for(h=r.Zc;c<h;c++)e=2*c,m=e+1,p=r.ib[e],l=r.ib[m],r.ib[e]=a.Ha(p+d.x,l+d.y,!0),r.ib[m]=a.Ha(p+d.x,l+d.y,!1);r.Aa();c=0;for(h=g.Zc;c<h;c++)e=2*c,m=e+1,p=g.ib[e],l=g.ib[m],g.ib[e]=f.Ha(p+b.x,l+b.y,!0),g.ib[m]=f.Ha(p+
b.x,l+b.y,!1);g.Aa();return r.$g(g,0,0)};var A=new va;new ua(0,0,0,0);var m=[];a.prototype.xq=function(d,b){var a,f,c,h,e=b.Ea,p=d.x,l=d.y;d.hx(e,m);var r=b.na&&!b.na.Vf();a=0;for(f=m.length;a<f;++a)if(c=m[a],h=c.qx,e.Ou(h,p,l)&&(A.Lh(h),A.offset(p,l),A.Qo(b.Kb)))if(r)if(b.na.Hf(b.width,b.height,b.k),c.Am){if(c.Am.$g(b.na,b.x-(p+h.left),b.y-(l+h.top)))return m.length=0,!0}else{if(this.bd.qg(A,0,0,h.right-h.left,h.bottom-h.top),this.bd.$g(b.na,b.x,b.y))return m.length=0,!0}else if(c.Am){if(this.bd.qg(b.Kb,
0,0,b.width,b.height),c.Am.$g(this.bd,-(p+h.left),-(l+h.top)))return m.length=0,!0}else return m.length=0,!0;m.length=0;return!1};a.prototype.Gq=function(d,b){if(!b)return!1;var a,f,c,h,e;a=0;for(f=d.Sa.length;a<f;a++)if(d.Sa[a].behavior instanceof b)return!0;if(!d.N)for(a=0,f=d.Ga.length;a<f;a++)for(e=d.Ga[a],c=0,h=e.Sa.length;c<h;c++)if(e.Sa[c].behavior instanceof b)return!0;return!1};a.prototype.Hq=function(d){return this.Gq(d,ec.Fw)};a.prototype.dn=function(d){return this.Gq(d,ec.Gw)};var y=[];
a.prototype.cd=function(d){var b,a,f;d.Aa();this.qu(d.n,d.Ea,y);b=0;for(a=y.length;b<a;++b)if(f=y[b],f.M.solidEnabled&&this.de(d,f))return y.length=0,f;y.length=0;return null};a.prototype.dq=function(d,b,a,f){f=f||50;var c=d.x,h=d.y,e,m=null,p=null;for(e=0;e<f;e++)if(d.x=c+b*e,d.y=h+a*e,d.H(),!this.de(d,m)&&((m=this.cd(d))&&(p=m),!m&&!m))return p&&this.Dv(d,b,a,p),!0;d.x=c;d.y=h;d.H();return!1};a.prototype.Gv=function(d,b,a,f,c){f=f||50;var h=d.x,e=d.y,m;for(m=0;m<f;m++)if(d.x=h+b*m,d.y=e+a*m,d.H(),
!this.de(d,c))return;d.x=h;d.y=e;d.H()};a.prototype.Dv=function(d,b,a,f){var c=2,h,e=!1;h=!1;for(var m=d.x,p=d.y;16>=c;)h=1/c,c*=2,d.x+=b*h*(e?1:-1),d.y+=a*h*(e?1:-1),d.H(),this.de(d,f)?h=e=!0:(h=e=!1,m=d.x,p=d.y);h&&(d.x=m,d.y=p,d.H())};a.prototype.Dm=function(d,b){var a=fa(b)?100:b,f=0,c=d.x,h=d.y,e=0,m=0,p=0,l=this.cd(d);if(!l)return!0;for(;f<=a;){switch(e){case 0:m=0;p=-1;f++;break;case 1:m=1;p=-1;break;case 2:m=1;p=0;break;case 3:p=m=1;break;case 4:m=0;p=1;break;case 5:m=-1;p=1;break;case 6:m=
-1;p=0;break;case 7:p=m=-1}e=(e+1)%8;d.x=R(c+m*f);d.y=R(h+p*f);d.H();if(!this.de(d,l)&&(l=this.cd(d),!l))return!0}d.x=c;d.y=h;d.H();return!1};a.prototype.Fh=function(d,b){d.Id&&b.Id&&this.Jj.push([d,b])};a.prototype.Vs=function(d,b){var a,f,c;a=0;for(f=this.Jj.length;a<f;a++)if(c=this.Jj[a],c[0]==d&&c[1]==b||c[0]==b&&c[1]==d)return!0;return!1};a.prototype.co=function(d,b,a,f){var c=d.x,h=d.y,e=na(10,V(b,a,c,h)),m=Pa(b,a,c,h),p=f||this.cd(d);if(!p)return Ma(m+pa);var l=p,r,g,y,n,w=U(5);for(r=1;36>
r;r++)if(g=m-r*w,d.x=b+Math.cos(g)*e,d.y=a+Math.sin(g)*e,d.H(),!this.de(d,l)&&(l=f?null:this.cd(d),!l)){y=g;break}36===r&&(y=Ma(m+pa));l=p;for(r=1;36>r;r++)if(g=m+r*w,d.x=b+Math.cos(g)*e,d.y=a+Math.sin(g)*e,d.H(),!this.de(d,l)&&(l=f?null:this.cd(d),!l)){n=g;break}36===r&&(n=Ma(m+pa));d.x=c;d.y=h;d.H();if(n===y)return n;d=Qa(n,y)/2;d=Sa(n,y)?Ma(y+d+pa):Ma(n+d);y=Math.cos(m);m=Math.sin(m);n=Math.cos(d);d=Math.sin(d);b=y*n+m*d;return Pa(0,0,y-2*b*n,m-2*b*d)};var G=-1;a.prototype.trigger=function(d,b,
a){if(!this.Ba)return!1;var f=this.Ba.Jg;if(!f)return!1;var c=!1,h,e,m;G++;var p=f.Sk;e=0;for(m=p.length;e<m;++e)h=this.Dq(d,b,p[e],a),c=c||h;h=this.Dq(d,b,f,a);G--;return c||h};a.prototype.Dq=function(d,b,a,f){var c=!1,h,e,m,p;if(b)for(m=this.bn(d,b,b.type.name,a,f),c=c||m,p=b.type.Ga,h=0,e=p.length;h<e;++h)m=this.bn(d,b,p[h].name,a,f),c=c||m;else m=this.bn(d,b,"system",a,f),c=c||m;return c};a.prototype.bn=function(d,b,a,f,c){var h,e=!1,m=!1,m="undefined"!==typeof c,p=(m?f.wo:f.Eq)[a];if(!p)return e;
var l=null;f=0;for(h=p.length;f<h;++f)if(p[f].method==d){l=p[f].Kg;break}if(!l)return e;d=m?l[c]:l;if(!d)return null;f=0;for(h=d.length;f<h;f++)c=d[f][0],m=d[f][1],m=this.Xt(b,a,c,m),e=e||m;return e};a.prototype.Xt=function(d,b,a,f){var c,h,e=!1;this.cn++;var m=this.fb().eb;m&&this.Dh(m.Ne);var p=1<this.cn;this.Dh(a.Ne);p&&this.Ev();var l=this.Ej(a);l.eb=a;d&&(c=this.types[b].K(),c.T=!1,c.d.length=1,c.d[0]=d,this.types[b].fc());d=!0;if(a.parent){b=l.wq;for(c=a.parent;c;)b.push(c),c=c.parent;b.reverse();
c=0;for(h=b.length;c<h;c++)if(!b[c].Pv()){d=!1;break}}d&&(this.Lf++,a.Pc?a.Ov(f):a.$a(),e=e||l.nf);this.Aj();p&&this.uv();this.Ie(a.Ne);m&&this.Ie(m.Ne);this.ve&&0===this.xc&&0===G&&!this.Dl&&this.xb();this.cn--;return e};a.prototype.Of=function(){var d=this.fb();return d.eb.cb[d.Ta]};a.prototype.fu=function(){var d=this.fb();return d.eb.Bc[d.Rb]};a.prototype.Ev=function(){this.pj++;this.pj>=this.Wl.length&&this.Wl.push([])};a.prototype.uv=function(){this.pj--};a.prototype.Bo=function(){return this.Wl[this.pj]};
a.prototype.Ej=function(d){this.Ci++;this.Ci>=this.Wk.length&&this.Wk.push(new Rb);var b=this.fb();b.reset(d);return b};a.prototype.Aj=function(){this.Ci--};a.prototype.fb=function(){return this.Wk[this.Ci]};a.prototype.Fv=function(){this.qj++;this.qj>=this.Yl.length&&this.Yl.push(aa({name:void 0,index:0,wb:!1}));var d=this.gu();d.name=void 0;d.index=0;d.wb=!1;return d};a.prototype.vv=function(){this.qj--};a.prototype.gu=function(){return this.Yl[this.qj]};a.prototype.Co=function(d,b){for(var a,f,
c,h,e,m;b;){a=0;for(f=b.Sc.length;a<f;a++)if(m=b.Sc[a],m instanceof Sb&&mb(d,m.name))return m;b=b.parent}a=0;for(f=this.Qd.length;a<f;a++)for(e=this.Qd[a],c=0,h=e.te.length;c<h;c++)if(m=e.te[c],m instanceof Sb&&mb(d,m.name))return m;return null};a.prototype.Eo=function(d){var b,a;b=0;for(a=this.Yc.length;b<a;b++)if(this.Yc[b].ba===d)return this.Yc[b];return null};a.prototype.Oi=function(d){var b,a;b=0;for(a=this.B.length;b<a;b++)if(this.B[b].ba===d)return this.B[b];return null};a.prototype.hu=function(d){var b,
a;b=0;for(a=this.Ff.length;b<a;b++)if(this.Ff[b].ba===d)return this.Ff[b];return null};a.prototype.Hu=function(){var d=this,b=this.Om,a=this.Xd,f=this.ij,h=!1;this.sq&&(h=!0,b="__c2_continuouspreview",this.sq=!1);if(b.length){this.xb();a=this.Tv();if(window.indexedDB&&!this.Jc)s(b,a,function(){E("Saved state to IndexedDB storage ("+a.length+" bytes)");d.Xd=a;d.trigger(X.prototype.j.vk,null);d.Xd="";h&&t()},function(f){try{localStorage.setItem("__c2save_"+b,a),E("Saved state to WebStorage ("+a.length+
" bytes)"),d.Xd=a,d.trigger(X.prototype.j.vk,null),d.Xd="",h&&t()}catch(c){E("Failed to save game state: "+f+"; "+c)}});else try{localStorage.setItem("__c2save_"+b,a),E("Saved state to WebStorage ("+a.length+" bytes)"),d.Xd=a,this.trigger(X.prototype.j.vk,null),d.Xd="",h&&t()}catch(e){E("Error saving to WebStorage: "+e)}this.Ob=this.ij=this.Om=""}f.length&&(window.indexedDB&&!this.Jc?c(f,function(b){b?(d.Ob=b,E("Loaded state from IndexedDB storage ("+d.Ob.length+" bytes)")):(d.Ob=localStorage.getItem("__c2save_"+
f)||"",E("Loaded state from WebStorage ("+d.Ob.length+" bytes)"));d.Ph=!1;d.Ob.length||d.trigger(X.prototype.j.tk,null)},function(){d.Ob=localStorage.getItem("__c2save_"+f)||"";E("Loaded state from WebStorage ("+d.Ob.length+" bytes)");d.Ph=!1;d.Ob.length||d.trigger(X.prototype.j.tk,null)}):(this.Ob=localStorage.getItem("__c2save_"+f)||"",E("Loaded state from WebStorage ("+this.Ob.length+" bytes)"),this.Ph=!1,d.Ob.length||d.trigger(X.prototype.j.tk,null)),this.Om=this.ij="");this.Ob.length&&(this.xb(),
this.$u(this.Ob),this.Xd=this.Ob,this.trigger(X.prototype.j.Sr,null),this.Ob=this.Xd="")};a.prototype.Tv=function(){var d,b,a,f,c,h,e,m={c2save:!0,version:1,rt:{time:this.ic.aa,walltime:this.Ed.aa,timescale:this.ug,tickcount:this.Ac,execcount:this.Lf,next_uid:this.wh,running_layout:this.Ba.ba,start_time_offset:Date.now()-this.Yj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};d=0;for(b=this.B.length;d<b;d++)if(c=this.B[d],!c.N&&!this.Hq(c)){h={instances:[]};Za(c.M)&&(h.ex=u(c.M));
a=0;for(f=c.d.length;a<f;a++)h.instances.push(this.Nm(c.d[a]));m.types[c.ba.toString()]=h}d=0;for(b=this.Yc.length;d<b;d++)a=this.Yc[d],m.layouts[a.ba.toString()]=a.Fb();f=m.events.groups;d=0;for(b=this.Ff.length;d<b;d++)a=this.Ff[d],f[a.ba.toString()]=this.Wg[a.Vg].Ug;b=m.events.cnds;for(e in this.If)this.If.hasOwnProperty(e)&&(d=this.If[e],Za(d.M)&&(b[e]={ex:u(d.M)}));b=m.events.acts;for(e in this.Ef)this.Ef.hasOwnProperty(e)&&(d=this.Ef[e],Za(d.M)&&(b[e]={ex:d.M}));b=m.events.vars;for(e in this.zg)this.zg.hasOwnProperty(e)&&
(d=this.zg[e],d.Vi||d.parent&&!d.gh||(b[e]=d.data));m.system=this.Ad.Fb();return JSON.stringify(m)};a.prototype.fq=function(){var d,b,a,f,c,h;this.Ge={};d=0;for(b=this.B.length;d<b;d++)if(a=this.B[d],!a.N)for(f=0,c=a.d.length;f<c;f++)h=a.d[f],this.Ge[h.uid.toString()]=h};a.prototype.$u=function(d){d=JSON.parse(d);if(d.c2save&&!(1<d.version)){var b=d.rt;this.ic.reset();this.ic.aa=b.time;this.Ed.reset();this.Ed.aa=b.walltime||0;this.ug=b.timescale;this.Ac=b.tickcount;this.Yj=Date.now()-b.start_time_offset;
var a=b.running_layout;if(a!==this.Ba.ba)if(a=this.Eo(a))this.ro(a);else return;var f,c,h,e,m,p,l;p=d.types;for(c in p)if(p.hasOwnProperty(c)&&(e=this.Oi(parseInt(c,10)))&&!e.N&&!this.Hq(e)){p[c].ex?e.M=p[c].ex:$a(e.M);m=e.d;h=p[c].instances;a=0;for(f=oa(m.length,h.length);a<f;a++)this.jj(m[a],h[a]);a=h.length;for(f=m.length;a<f;a++)this.Fd(m[a]);a=m.length;for(f=h.length;a<f;a++){m=null;if(e.ya.ye&&(m=this.Ba.Ni(h[a].w.l),!m))continue;m=this.re(e.Fc,m,!1,0,0,!0);this.jj(m,h[a])}e.sg=!0}this.xb();
this.fq();f=d.layouts;for(c in f)f.hasOwnProperty(c)&&(a=this.Eo(parseInt(c,10)))&&a.Wb(f[c]);f=d.events.groups;for(c in f)f.hasOwnProperty(c)&&(a=this.hu(parseInt(c,10)))&&this.Wg[a.Vg]&&(this.Wg[a.Vg].Ug=f[c]);a=d.events.cnds;for(c in a)a.hasOwnProperty(c)&&this.If.hasOwnProperty(c)&&(this.If[c].M=a[c].ex);a=d.events.acts;for(c in a)a.hasOwnProperty(c)&&this.Ef.hasOwnProperty(c)&&(this.Ef[c].M=a[c].ex);a=d.events.vars;for(c in a)a.hasOwnProperty(c)&&this.zg.hasOwnProperty(c)&&(this.zg[c].data=a[c]);
this.wh=b.next_uid;this.Ad.Wb(d.system);a=0;for(f=this.B.length;a<f;a++)if(e=this.B[a],!e.N)for(c=0,d=e.d.length;c<d;c++){m=e.d[c];if(e.Mb)for(p=m.Tg(),b=m.siblings.length=0,h=e.gc.length;b<h;b++)l=e.gc[b],e!==l&&m.siblings.push(l.d[p]);m.gd&&m.gd();if(m.V)for(b=0,h=m.V.length;b<h;b++)p=m.V[b],p.gd&&p.gd()}this.ga=!0}};a.prototype.Nm=function(d,b){var a,c,f,h,e;h=d.type;f=h.ya;var m={};b?m.c2=!0:m.uid=d.uid;Za(d.M)&&(m.ex=u(d.M));if(d.gb&&d.gb.length)for(m.ivs={},a=0,c=d.gb.length;a<c;a++)m.ivs[d.type.Al[a].toString()]=
d.gb[a];if(f.ye){f={x:d.x,y:d.y,w:d.width,h:d.height,l:d.n.ba,zi:d.nd()};0!==d.k&&(f.a=d.k);1!==d.opacity&&(f.o=d.opacity);.5!==d.Ub&&(f.hX=d.Ub);.5!==d.Vb&&(f.hY=d.Vb);0!==d.Sb&&(f.bm=d.Sb);d.visible||(f.v=d.visible);d.Id||(f.ce=d.Id);-1!==d.tf&&(f.mts=d.tf);if(h.S.length)for(f.fx=[],a=0,c=h.S.length;a<c;a++)e=h.S[a],f.fx.push({name:e.name,active:d.je[e.index],params:d.Ia[e.index]});m.w=f}if(d.V&&d.V.length)for(m.behs={},a=0,c=d.V.length;a<c;a++)h=d.V[a],h.Fb&&(m.behs[h.type.ba.toString()]=h.Fb());
d.Fb&&(m.data=d.Fb());return m};a.prototype.ju=function(d,b){var a,f;a=0;for(f=d.Al.length;a<f;a++)if(d.Al[a]===b)return a;return-1};a.prototype.eu=function(d,b){var a,f;a=0;for(f=d.V.length;a<f;a++)if(d.V[a].type.ba===b)return a;return-1};a.prototype.jj=function(d,b,a){var f,c,h,e,m;m=d.type;h=m.ya;if(a){if(!b.c2)return}else d.uid=b.uid;b.ex?d.M=b.ex:$a(d.M);if(c=b.ivs)for(f in c)c.hasOwnProperty(f)&&(a=this.ju(m,parseInt(f,10)),0>a||a>=d.gb.length||(d.gb[a]=c[f]));if(h.ye){h=b.w;d.n.ba!==h.l&&(a=
d.n,d.n=this.Ba.Ni(h.l),d.n?(a.mg(d,!0),d.n.Dg(d,!0),d.H(),d.n.Kh(0)):(d.n=a,this.Fd(d)));d.x=h.x;d.y=h.y;d.width=h.w;d.height=h.h;d.fd=h.zi;d.k=h.hasOwnProperty("a")?h.a:0;d.opacity=h.hasOwnProperty("o")?h.o:1;d.Ub=h.hasOwnProperty("hX")?h.hX:.5;d.Vb=h.hasOwnProperty("hY")?h.hY:.5;d.visible=h.hasOwnProperty("v")?h.v:!0;d.Id=h.hasOwnProperty("ce")?h.ce:!0;d.tf=h.hasOwnProperty("mts")?h.mts:-1;d.Sb=h.hasOwnProperty("bm")?h.bm:0;d.Hg=jb(d.Sb);this.A&&kb(d,d.Sb,this.A);d.H();if(h.hasOwnProperty("fx"))for(a=
0,c=h.fx.length;a<c;a++)e=m.jl(h.fx[a].name),0>e||(d.je[e]=h.fx[a].active,d.Ia[e]=h.fx[a].params);d.ge()}if(m=b.behs)for(f in m)m.hasOwnProperty(f)&&(h=this.eu(d,parseInt(f,10)),0>h||d.V[h].Wb(m[f]));b.data&&d.Wb(b.data)};Tb=function(d){return new a(document.getElementById(d))};Ub=function(d,b){return new a({dc:!0,width:d,height:b})};window.cr_createRuntime=Tb;window.cr_createDCRuntime=Ub;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var d=document.createElement("screencanvas")||document.createElement("canvas");
d.tx=!0;document.body.appendChild(d);d=new a(d);window.c2runtime=d;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return d};window.createEjectaRuntime=function(){var d=new a(document.getElementById("canvas"));window.c2runtime=d;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return d}})();
window.cr_getC2Runtime=function(){var g=document.getElementById("c2canvas");return g?g.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(g,n){if(0!==g&&0!==n){var a=window.cr_getC2Runtime();a&&a.setSize(g,n)}};window.cr_setSuspended=function(g){var n=window.cr_getC2Runtime();n&&n.setSuspended(g)};
(function(){function g(b,a){this.b=b;this.Jg=null;this.scrollX=this.b.Ya/2;this.scrollY=this.b.Xa/2;this.scale=1;this.k=0;this.Og=!0;this.name=a[0];this.width=a[1];this.height=a[2];this.Iq=a[3];this.qq=a[4];this.ba=a[5];var f=a[6],c,e;this.Y=[];this.Zg=[];c=0;for(e=f.length;c<e;c++){var l=new Vb(this,f[c]);l.Gp=c;this.Y.push(l)}f=a[7];this.gf=[];c=0;for(e=f.length;c<e;c++){var l=f[c],m=this.b.B[l[1]];m.Fc||(m.Fc=l);this.gf.push(l);-1===this.Zg.indexOf(m)&&this.Zg.push(m)}this.S=[];this.ka=[];this.Ia=
[];c=0;for(e=a[8].length;c<e;c++)this.S.push({id:a[8][c][0],name:a[8][c][1],ub:-1,sc:!0,index:c}),this.Ia.push(a[8][c][2].slice(0));this.ge();this.Ke=new ua(0,0,1,1);this.Fm=new ua(0,0,1,1);this.He={}}function n(b,a){return b.fd-a.fd}function a(b,a){this.xa=b;this.b=b.b;this.d=[];this.scale=1;this.k=0;this.Ye=!1;this.ee=new ua(0,0,0,0);this.Bq=new va;this.ab=this.Ma=this.bb=this.La=0;this.zf=!1;this.he=-1;this.name=a[0];this.index=a[1];this.ba=a[2];this.visible=a[3];this.ne=a[4];this.fe=a[5];this.Yb=
a[6];this.Zb=a[7];this.opacity=a[8];this.bl=a[9];this.ed=a[10];this.Jb=a[11];this.Sb=a[12];this.xt=a[13];this.Hg="source-over";this.Cb=this.Gb=0;this.oc=null;this.$f=e();this.Zd=!0;this.bj=new ua(0,0,-1,-1);this.Ec=new ua(0,0,-1,-1);this.ed&&(this.oc=new ib(this.b.Ya,this.b.Xa));this.Le=!1;var c=a[14],f,l;this.Sf=[];f=0;for(l=c.length;f<l;f++){var g=c[f],m=this.b.B[g[1]];m.Fc||(m.Fc=g,m.ct=this.index);this.Sf.push(g);-1===this.xa.Zg.indexOf(m)&&this.xa.Zg.push(m)}this.S=[];this.ka=[];this.Ia=[];f=
0;for(l=a[15].length;f<l;f++)this.S.push({id:a[15][f][0],name:a[15][f][1],ub:-1,sc:!0,index:f}),this.Ia.push(a[15][f][2].slice(0));this.ge();this.Ke=new ua(0,0,1,1);this.Fm=new ua(0,0,1,1)}function e(){return u.length?u.pop():[]}function s(b){b.length=0;u.push(b)}g.prototype.Sv=function(b){var a=b.type.ba.toString();this.He.hasOwnProperty(a)||(this.He[a]=[]);this.He[a].push(this.b.Nm(b))};g.prototype.Io=function(){var b=this.Y[0];return!b.fe&&1===b.opacity&&!b.bl&&b.visible};g.prototype.ge=function(){this.ka.length=
0;var b,a,f;b=0;for(a=this.S.length;b<a;b++)f=this.S[b],f.sc&&this.ka.push(f)};g.prototype.il=function(b){var a,f,c;a=0;for(f=this.S.length;a<f;a++)if(c=this.S[a],c.name===b)return c;return null};var c=[],t=!0;g.prototype.Um=function(){this.qq&&(this.Jg=this.b.Xk[this.qq],this.Jg.Mq());this.b.Ba=this;this.scrollX=this.b.Ya/2;this.scrollY=this.b.Xa/2;var b,a,f,e,l,g,m;b=0;for(f=this.b.B.length;b<f;b++)if(a=this.b.B[b],!a.N)for(l=a.d,a=0,e=l.length;a<e;a++)if(g=l[a],g.n){var y=g.n.Gp;y>=this.Y.length&&
(y=this.Y.length-1);g.n=this.Y[y];-1===g.n.d.indexOf(g)&&g.n.d.push(g);g.n.zf=!0}if(!t)for(b=0,f=this.Y.length;b<f;++b)this.Y[b].d.sort(n);c.length=0;this.Ss();b=0;for(f=this.Y.length;b<f;b++)g=this.Y[b],g.Zs(),g.hn();l=!1;if(!this.Og){for(m in this.He)if(this.He.hasOwnProperty(m)&&(a=this.b.Oi(parseInt(m,10)))&&!a.N&&this.b.dn(a)){e=this.He[m];b=0;for(f=e.length;b<f;b++){g=null;if(a.ya.ye&&(g=this.Ni(e[b].w.l),!g))continue;g=this.b.re(a.Fc,g,!1,0,0,!0);this.b.jj(g,e[b]);l=!0;c.push(g)}e.length=0}b=
0;for(f=this.Y.length;b<f;b++)this.Y[b].d.sort(n),this.Y[b].zf=!0}l&&(this.b.xb(),this.b.fq());for(b=0;b<c.length;b++)if(g=c[b],g.type.Mb)for(f=g.Tg(),a=0,e=g.type.gc.length;a<e;a++)m=g.type.gc[a],g.type!==m&&(m.d.length>f?g.siblings.push(m.d[f]):m.Fc&&(l=this.b.re(m.Fc,g.n,!0,g.x,g.y,!0),this.b.xb(),m.lk(),g.siblings.push(l),c.push(l)));b=0;for(f=this.gf.length;b<f;b++)this.b.re(this.gf[b],null,!0);this.b.Lk=null;this.b.xb();if(this.b.wa&&!this.b.Ca)for(b=0,f=this.b.B.length;b<f;b++)m=this.b.B[b],
!m.N&&m.d.length&&m.Bm&&m.Bm(this.b.wa);b=0;for(f=c.length;b<f;b++)g=c[b],this.b.trigger(Object.getPrototypeOf(g.type.ya).j.Cf,g);c.length=0;this.b.trigger(X.prototype.j.Cn,null);this.Og=!1};g.prototype.Ys=function(){var b,a,f,c,e;a=b=0;for(f=this.gf.length;b<f;b++)c=this.gf[b],e=this.b.B[c[1]],e.global?this.b.re(c,null,!0):(this.gf[a]=c,a++);this.gf.length=a};g.prototype.bw=function(){this.b.trigger(X.prototype.j.Rr,null);this.b.Ad.cc.length=0;var b,a,f,c,e,l;b=0;for(a=this.Y.length;b<a;b++)for(this.Y[b].jn(),
e=this.Y[b].d,f=0,c=e.length;f<c;f++)l=e[f],l.type.global||this.b.dn(l.type)&&this.Sv(l);b=0;for(a=this.Y.length;b<a;b++){e=this.Y[b].d;f=0;for(c=e.length;f<c;f++)l=e[f],l.type.global||this.b.Fd(l);this.b.xb();e.length=0;this.Y[b].zf=!0}b=0;for(a=this.b.B.length;b<a;b++)if(e=this.b.B[b],!(e.global||e.ya.ye||e.ya.Wj||e.N)){f=0;for(c=e.d.length;f<c;f++)this.b.Fd(e.d[f]);this.b.xb()}t=!1};g.prototype.kd=function(b){var a,f=b,c=!1,e=!this.b.Ic;e&&(this.b.gj||(this.b.gj=document.createElement("canvas"),
a=this.b.gj,a.width=this.b.X,a.height=this.b.W,this.b.fp=a.getContext("2d"),c=!0),a=this.b.gj,f=this.b.fp,a.width!==this.b.X&&(a.width=this.b.X,c=!0),a.height!==this.b.W&&(a.height=this.b.W,c=!0),c&&(f.webkitImageSmoothingEnabled=this.b.la,f.mozImageSmoothingEnabled=this.b.la,f.msImageSmoothingEnabled=this.b.la,f.imageSmoothingEnabled=this.b.la));f.globalAlpha=1;f.globalCompositeOperation="source-over";this.b.Ak&&!this.Io()&&f.clearRect(0,0,this.b.X,this.b.W);var l,m,c=0;for(l=this.Y.length;c<l;c++)m=
this.Y[c],m.visible&&0<m.opacity&&11!==m.Sb&&(m.d.length||!m.fe)?m.kd(f):m.hn();e&&b.drawImage(a,0,0,this.b.width,this.b.height)};g.prototype.Hc=function(b){var a=0<this.ka.length||this.b.xg||!this.b.Ic;if(a){this.b.kc||(this.b.kc=b.Jd(this.b.X,this.b.W,this.b.la));if(this.b.kc.Gg!==this.b.X||this.b.kc.Fg!==this.b.W)b.deleteTexture(this.b.kc),this.b.kc=b.Jd(this.b.X,this.b.W,this.b.la);b.yd(this.b.kc);this.b.Ic||b.pg(this.b.X,this.b.W)}else this.b.kc&&(b.yd(null),b.deleteTexture(this.b.kc),this.b.kc=
null);this.b.Ak&&!this.Io()&&b.clear(0,0,0,0);var f,c,e;f=0;for(c=this.Y.length;f<c;f++)e=this.Y[f],e.visible&&0<e.opacity&&(e.d.length||!e.fe)?e.Hc(b):e.hn();a&&(0===this.ka.length||1===this.ka.length&&this.b.Ic?(1===this.ka.length?(a=this.ka[0].index,b.zd(this.ka[0].ub),b.ng(null,1/this.b.X,1/this.b.W,0,0,1,1,this.scale,this.k,0,0,this.b.X/2,this.b.W/2,this.Ia[a]),b.Dj(this.ka[0].ub)&&(this.b.ga=!0)):b.zd(0),this.b.Ic||b.pg(this.b.width,this.b.height),b.yd(null),b.wf(1),b.pc(this.b.kc),b.kq(),b.xd(),
b.Cd(),a=this.b.width/2,f=this.b.height/2,b.Gj(-a,f,a,f,a,-f,-a,-f),b.pc(null)):this.Gm(b,null,null,null))};g.prototype.Sg=function(){return 0<this.ka.length||this.b.xg||!this.b.Ic?this.b.kc:null};g.prototype.Fo=function(){var b=this.Y[0].wc(),a,f,c;a=1;for(f=this.Y.length;a<f;a++)c=this.Y[a],(0!==c.Yb||0!==c.Zb)&&c.wc()<b&&(b=c.wc());return b};g.prototype.iq=function(b){if(!this.Iq){var a=1/this.Fo()*this.b.X/2;b>this.width-a&&(b=this.width-a);b<a&&(b=a)}this.scrollX!==b&&(this.scrollX=b,this.b.ga=
!0)};g.prototype.jq=function(b){if(!this.Iq){var a=1/this.Fo()*this.b.W/2;b>this.height-a&&(b=this.height-a);b<a&&(b=a)}this.scrollY!==b&&(this.scrollY=b,this.b.ga=!0)};g.prototype.Ss=function(){this.iq(this.scrollX);this.jq(this.scrollY)};g.prototype.Gm=function(b,a,f,c){var e=f?f.ka:a?a.ka:this.ka,l=1,m=0,g=0,n=0,d=this.b.X,q=this.b.W;f?(l=f.n.wc(),m=f.n.Wa(),g=f.n.La,n=f.n.Ma,d=f.n.bb,q=f.n.ab):a&&(l=a.wc(),m=a.Wa(),g=a.La,n=a.Ma,d=a.bb,q=a.ab);var k=this.b.el,v,z,s,t,B=0,u=1,ga,S=this.b.X,O=this.b.W,
T=S/2,D=O/2,L=a?a.Ke:this.Ke,C=a?a.Fm:this.Fm,I=0,K=0,H=0,N=0,J=S,ha=S,M=O,qa=O,ia=s=0,ya=f?f.n.Wa():0;if(f){v=0;for(z=e.length;v<z;v++)s+=b.nu(e[v].ub),ia+=b.ou(e[v].ub);t=f.Ea;I=a.Ha(t.left,t.top,!0,!0);H=a.Ha(t.left,t.top,!1,!0);J=a.Ha(t.right,t.bottom,!0,!0);M=a.Ha(t.right,t.bottom,!1,!0);0!==ya&&(v=a.Ha(t.right,t.top,!0,!0),z=a.Ha(t.right,t.top,!1,!0),K=a.Ha(t.left,t.bottom,!0,!0),N=a.Ha(t.left,t.bottom,!1,!0),t=Math.min(I,J,v,K),J=Math.max(I,J,v,K),I=t,t=Math.min(H,M,z,N),M=Math.max(H,M,z,N),
H=t);I-=s;H-=ia;J+=s;M+=ia;C.left=I/S;C.top=1-H/O;C.right=J/S;C.bottom=1-M/O;K=I=R(I);N=H=R(H);ha=J=sa(J);qa=M=sa(M);K-=s;N-=ia;ha+=s;qa+=ia;0>I&&(I=0);0>H&&(H=0);J>S&&(J=S);M>O&&(M=O);0>K&&(K=0);0>N&&(N=0);ha>S&&(ha=S);qa>O&&(qa=O);L.left=I/S;L.top=1-H/O;L.right=J/S;L.bottom=1-M/O}else L.left=C.left=0,L.top=C.top=0,L.right=C.right=1,L.bottom=C.bottom=1;ia=f&&((f.k||ya)&&b.Ch(e[0].ub)||0!==s||0!==ia||1!==f.opacity||f.type.ya.Cp)||a&&!f&&1!==a.opacity;b.kq();if(ia){k[B]||(k[B]=b.Jd(S,O,this.b.la));
if(k[B].Gg!==S||k[B].Fg!==O)b.deleteTexture(k[B]),k[B]=b.Jd(S,O,this.b.la);b.zd(0);b.yd(k[B]);ga=qa-N;b.clearRect(K,O-N-ga,ha-K,ga);f?f.Hc(b):(b.pc(this.b.yc),b.wf(a.opacity),b.xd(),b.translate(-T,-D),b.Cd(),b.wd(I,M,J,M,J,H,I,H,L));C.left=C.top=0;C.right=C.bottom=1;f&&(t=L.top,L.top=L.bottom,L.bottom=t);B=1;u=0}b.wf(1);s=e.length-1;var ya=b.Cm(e[s].ub)||!a&&!f&&!this.b.Ic,za=0;v=0;for(z=e.length;v<z;v++){k[B]||(k[B]=b.Jd(S,O,this.b.la));if(k[B].Gg!==S||k[B].Fg!==O)b.deleteTexture(k[B]),k[B]=b.Jd(S,
O,this.b.la);b.zd(e[v].ub);za=e[v].index;b.Dj(e[v].ub)&&(this.b.ga=!0);0!=v||ia?(b.ng(c,1/S,1/O,C.left,C.top,C.right,C.bottom,l,m,g,n,(g+d)/2,(n+q)/2,f?f.Ia[za]:a?a.Ia[za]:this.Ia[za]),b.pc(null),v!==s||ya?(b.yd(k[B]),ga=qa-N,t=O-N-ga,b.clearRect(K,t,ha-K,ga)):(f?b.Me(f.Gb,f.Cb):a&&b.Me(a.Gb,a.Cb),b.yd(c)),b.pc(k[u]),b.xd(),b.translate(-T,-D),b.Cd(),b.wd(I,M,J,M,J,H,I,H,L),v!==s||ya||b.pc(null)):(b.yd(k[B]),ga=qa-N,t=O-N-ga,b.clearRect(K,t,ha-K,ga),f?(b.ng(c,1/f.width,1/f.height,C.left,C.top,C.right,
C.bottom,l,m,g,n,(g+d)/2,(n+q)/2,f.Ia[za]),f.Hc(b)):(b.ng(c,1/S,1/O,0,0,1,1,l,m,g,n,(g+d)/2,(n+q)/2,a?a.Ia[za]:this.Ia[za]),b.pc(a?this.b.yc:this.b.kc),b.xd(),b.translate(-T,-D),b.Cd(),b.wd(I,M,J,M,J,H,I,H,L)),C.left=C.top=0,C.right=C.bottom=1,f&&!ya&&(t=M,M=H,H=t));B=0===B?1:0;u=0===B?1:0}ya&&(b.zd(0),f?b.Me(f.Gb,f.Cb):a?b.Me(a.Gb,a.Cb):this.b.Ic||(b.pg(this.b.width,this.b.height),T=this.b.width/2,D=this.b.height/2,H=I=0,J=this.b.width,M=this.b.height),b.yd(c),b.pc(k[u]),b.xd(),b.translate(-T,-D),
b.Cd(),f&&1===e.length&&!ia?b.wd(I,H,J,H,J,M,I,M,L):b.wd(I,M,J,M,J,H,I,H,L),b.pc(null))};g.prototype.Ni=function(b){var a,f;a=0;for(f=this.Y.length;a<f;a++)if(this.Y[a].ba===b)return this.Y[a];return null};g.prototype.Fb=function(){var b,a,f,c={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.k,w:this.width,h:this.height,fv:this.Og,persist:this.He,fx:[],layers:{}};b=0;for(a=this.S.length;b<a;b++)f=this.S[b],c.fx.push({name:f.name,active:f.sc,params:this.Ia[f.index]});b=0;for(a=this.Y.length;b<
a;b++)f=this.Y[b],c.layers[f.ba.toString()]=f.Fb();return c};g.prototype.Wb=function(b){var a,f,c,e;this.scrollX=b.sx;this.scrollY=b.sy;this.scale=b.s;this.k=b.a;this.width=b.w;this.height=b.h;this.He=b.persist;"undefined"!==typeof b.fv&&(this.Og=b.fv);var l=b.fx;a=0;for(f=l.length;a<f;a++)if(c=this.il(l[a].name))c.sc=l[a].active,this.Ia[c.index]=l[a].params;this.ge();a=b.layers;for(e in a)a.hasOwnProperty(e)&&(b=this.Ni(parseInt(e,10)))&&b.Wb(a[e])};Hb=g;a.prototype.ge=function(){this.ka.length=
0;var b,a,f;b=0;for(a=this.S.length;b<a;b++)f=this.S[b],f.sc&&this.ka.push(f)};a.prototype.il=function(b){var a,f,c;a=0;for(f=this.S.length;a<f;a++)if(c=this.S[a],c.name===b)return c;return null};a.prototype.Zs=function(){var a,f,e,l,g,n;f=a=0;for(e=this.Sf.length;a<e;a++){l=this.Sf[a];g=this.b.B[l[1]];n=this.b.dn(g);g=!0;if(!n||this.xa.Og)l=this.b.re(l,this,!0),c.push(l),l.type.global&&(g=!1);g&&(this.Sf[f]=this.Sf[a],f++)}this.Sf.length=f;this.b.xb();!this.b.D&&this.S.length&&(this.Sb=this.xt);
this.Hg=jb(this.Sb);this.b.A&&kb(this,this.Sb,this.b.A);this.Zd=!0};a.prototype.mg=function(a,f){var c=Ha(this.d,a);0>c||(f&&this.ed&&a.$b&&a.$b.right>=a.$b.left&&(a.Aa(),this.oc.update(a,a.$b,null),a.$b.set(0,0,-1,-1)),c===this.d.length-1?this.d.pop():(Ea(this.d,c),this.Kh(c)),this.Zd=!0)};a.prototype.Dg=function(a,f){a.fd=this.d.length;this.d.push(a);f&&this.ed&&a.$b&&a.H();this.Zd=!0};a.prototype.zv=function(a){this.d.unshift(a);this.Kh(0)};a.prototype.gv=function(a,f,c){var e=a.nd();f=f.nd();
Ea(this.d,e);e<f&&f--;c&&f++;f===this.d.length?this.d.push(a):this.d.splice(f,0,a);this.Kh(e<f?e:f)};a.prototype.Kh=function(a){-1===this.he?this.he=a:a<this.he&&(this.he=a);this.Zd=this.zf=!0};a.prototype.jn=function(){if(this.zf){-1===this.he&&(this.he=0);var a,f,c;if(this.ed)for(a=this.he,f=this.d.length;a<f;++a)c=this.d[a],c.fd=a,this.oc.bv(c.$b);else for(a=this.he,f=this.d.length;a<f;++a)this.d[a].fd=a;this.zf=!1;this.he=-1}};a.prototype.wc=function(a){return this.ku()*(this.b.Ic||a?this.b.Eg:
1)};a.prototype.ku=function(){return(this.scale*this.xa.scale-1)*this.Jb+1};a.prototype.Wa=function(){return this.Ye?0:Ma(this.xa.k+this.k)};var u=[],f=[],l=[];a.prototype.Go=function(){this.jn();this.oc.Hj(this.La,this.Ma,this.bb,this.ab,l);if(!l.length)return e();if(1===l.length){var a=e();Fa(a,l[0]);l.length=0;return a}for(var c=!0;1<l.length;){for(var a=l,g=void 0,p=void 0,n=void 0,t=void 0,m=void 0,g=0,p=a.length;g<p-1;g+=2){var n=a[g],t=a[g+1],m=e(),y=n,G=t,d=m,q=0,k=0,v=0,z=y.length,u=G.length,
Q=void 0,B=void 0;for(d.length=z+u;q<z&&k<u;++v)Q=y[q],B=G[k],Q.fd<B.fd?(d[v]=Q,++q):(d[v]=B,++k);for(;q<z;++q,++v)d[v]=y[q];for(;k<u;++k,++v)d[v]=G[k];c||(s(n),s(t));f.push(m)}1===p%2&&(c?(n=e(),Fa(n,a[p-1]),f.push(n)):f.push(a[p-1]));Fa(a,f);f.length=0;c=!1}a=l[0];l.length=0;return a};a.prototype.kd=function(a){this.Le=this.bl||1!==this.opacity||0!==this.Sb;var f=this.b.canvas,c=a,e=!1;this.Le&&(this.b.fj||(this.b.fj=document.createElement("canvas"),f=this.b.fj,f.width=this.b.X,f.height=this.b.W,
this.b.ep=f.getContext("2d"),e=!0),f=this.b.fj,c=this.b.ep,f.width!==this.b.X&&(f.width=this.b.X,e=!0),f.height!==this.b.W&&(f.height=this.b.W,e=!0),e&&(c.webkitImageSmoothingEnabled=this.b.la,c.mozImageSmoothingEnabled=this.b.la,c.msImageSmoothingEnabled=this.b.la,c.imageSmoothingEnabled=this.b.la),this.fe&&c.clearRect(0,0,this.b.X,this.b.W));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.fe||(c.fillStyle="rgb("+this.ne[0]+","+this.ne[1]+","+this.ne[2]+")",c.fillRect(0,0,this.b.X,
this.b.W));c.save();this.Ye=!0;var e=this.qb(0,0,!0,!0),l=this.qb(0,0,!1,!0);this.Ye=!1;this.b.vd&&(e=Math.round(e),l=Math.round(l));this.Jm(e,l,c);var g=this.wc();c.scale(g,g);c.translate(-e,-l);this.ed?(this.Ec.left=this.oc.qc(this.La),this.Ec.top=this.oc.rc(this.Ma),this.Ec.right=this.oc.qc(this.bb),this.Ec.bottom=this.oc.rc(this.ab),this.Zd||!this.Ec.Bi(this.bj)?(s(this.$f),e=this.Go(),this.Zd=!1,this.bj.oi(this.Ec)):e=this.$f):e=this.d;for(var m,n=null,l=0,g=e.length;l<g;++l)m=e[l],m!==n&&(this.qt(m,
c),n=m);this.ed&&(this.$f=e);c.restore();this.Le&&(a.globalCompositeOperation=this.Hg,a.globalAlpha=this.opacity,a.drawImage(f,0,0))};a.prototype.qt=function(a,f){if(a.visible&&0!==a.width&&0!==a.height){a.Aa();var c=a.Ea;c.right<this.La||c.bottom<this.Ma||c.left>this.bb||c.top>this.ab||(f.globalCompositeOperation=a.Hg,a.kd(f))}};a.prototype.hn=function(){this.Ye=!0;var a=this.qb(0,0,!0,!0),f=this.qb(0,0,!1,!0);this.Ye=!1;this.b.vd&&(a=Math.round(a),f=Math.round(f));this.Jm(a,f,null)};a.prototype.Jm=
function(a,f,c){var e=this.wc();this.La=a;this.Ma=f;this.bb=a+1/e*this.b.X;this.ab=f+1/e*this.b.W;a=this.Wa();0!==a&&(c&&(c.translate(this.b.X/2,this.b.W/2),c.rotate(-a),c.translate(this.b.X/-2,this.b.W/-2)),this.ee.set(this.La,this.Ma,this.bb,this.ab),this.ee.offset((this.La+this.bb)/-2,(this.Ma+this.ab)/-2),this.Bq.oq(this.ee,a),this.Bq.Zn(this.ee),this.ee.offset((this.La+this.bb)/2,(this.Ma+this.ab)/2),this.La=this.ee.left,this.Ma=this.ee.top,this.bb=this.ee.right,this.ab=this.ee.bottom)};a.prototype.Hc=
function(a){var f=0,c=0;if(this.Le=this.bl||1!==this.opacity||0<this.ka.length||0!==this.Sb){this.b.yc||(this.b.yc=a.Jd(this.b.X,this.b.W,this.b.la));if(this.b.yc.Gg!==this.b.X||this.b.yc.Fg!==this.b.W)a.deleteTexture(this.b.yc),this.b.yc=a.Jd(this.b.X,this.b.W,this.b.la);a.yd(this.b.yc);this.fe&&a.clear(0,0,0,0)}this.fe||a.clear(this.ne[0]/255,this.ne[1]/255,this.ne[2]/255,1);this.Ye=!0;var e=this.qb(0,0,!0,!0),f=this.qb(0,0,!1,!0);this.Ye=!1;this.b.vd&&(e=Math.round(e),f=Math.round(f));this.Jm(e,
f,null);e=this.wc();a.xd();a.scale(e,e);a.Km(-this.Wa());a.translate((this.La+this.bb)/-2,(this.Ma+this.ab)/-2);a.Cd();this.ed?(this.Ec.left=this.oc.qc(this.La),this.Ec.top=this.oc.rc(this.Ma),this.Ec.right=this.oc.qc(this.bb),this.Ec.bottom=this.oc.rc(this.ab),this.Zd||!this.Ec.Bi(this.bj)?(s(this.$f),f=this.Go(),this.Zd=!1,this.bj.oi(this.Ec)):f=this.$f):f=this.d;var l,g,m=null,c=0;for(l=f.length;c<l;++c)g=f[c],g!==m&&(this.tt(f[c],a),m=g);this.ed&&(this.$f=f);this.Le&&(f=this.ka.length?this.ka[0].ub:
0,c=this.ka.length?this.ka[0].index:0,0===this.ka.length||1===this.ka.length&&!a.Cm(f)&&1===this.opacity?(1===this.ka.length?(a.zd(f),a.ng(this.xa.Sg(),1/this.b.X,1/this.b.W,0,0,1,1,e,this.Wa(),this.La,this.Ma,(this.La+this.bb)/2,(this.Ma+this.ab)/2,this.Ia[c]),a.Dj(f)&&(this.b.ga=!0)):a.zd(0),a.yd(this.xa.Sg()),a.wf(this.opacity),a.pc(this.b.yc),a.Me(this.Gb,this.Cb),a.xd(),a.Cd(),e=this.b.X/2,f=this.b.W/2,a.Gj(-e,f,e,f,e,-f,-e,-f),a.pc(null)):this.xa.Gm(a,this,null,this.xa.Sg()))};a.prototype.tt=
function(a,f){if(a.visible&&0!==a.width&&0!==a.height){a.Aa();var c=a.Ea;c.right<this.La||c.bottom<this.Ma||c.left>this.bb||c.top>this.ab||(a.Pq?this.ut(a,f):(f.zd(0),f.Me(a.Gb,a.Cb),a.Hc(f)))}};a.prototype.ut=function(a,f){var c=a.ka[0].ub,e=a.ka[0].index,l=this.wc();if(1!==a.ka.length||f.Cm(c)||f.Bv(c)||(a.k||a.n.Wa())&&f.Ch(c)||1!==a.opacity||a.type.ya.Cp)this.xa.Gm(f,this,a,this.Le?this.b.yc:this.xa.Sg()),f.xd(),f.scale(l,l),f.Km(-this.Wa()),f.translate((this.La+this.bb)/-2,(this.Ma+this.ab)/
-2),f.Cd();else{f.zd(c);f.Me(a.Gb,a.Cb);f.Dj(c)&&(this.b.ga=!0);var g=0,m=0,n=0,s=0;f.Ch(c)&&(c=a.Ea,g=this.Ha(c.left,c.top,!0,!0),m=this.Ha(c.left,c.top,!1,!0),n=this.Ha(c.right,c.bottom,!0,!0),c=this.Ha(c.right,c.bottom,!1,!0),g/=windowWidth,m=1-m/windowHeight,n/=windowWidth,s=1-c/windowHeight);f.ng(this.Le?this.b.yc:this.xa.Sg(),1/a.width,1/a.height,g,m,n,s,l,this.Wa(),this.La,this.Ma,(this.La+this.bb)/2,(this.Ma+this.ab)/2,a.Ia[e]);a.Hc(f)}};a.prototype.qb=function(a,f,c,e){var l=this.b.devicePixelRatio;
this.b.jf&&(a*=l,f*=l);var l=this.b.Wp,g=this.b.Xp,l=(this.xa.scrollX-l)*this.Yb+l,g=(this.xa.scrollY-g)*this.Zb+g,m=1/this.wc(!e);e?(l-=this.b.X*m/2,g-=this.b.W*m/2):(l-=this.b.width*m/2,g-=this.b.height*m/2);l+=a*m;g+=f*m;f=this.Wa();0!==f&&(l-=this.xa.scrollX,g-=this.xa.scrollY,a=Math.cos(f),f=Math.sin(f),e=l*a-g*f,g=g*a+l*f,l=e+this.xa.scrollX,g+=this.xa.scrollY);return c?l:g};a.prototype.Ha=function(a,f,c,e){var l=this.Wa();if(0!==l){a-=this.xa.scrollX;f-=this.xa.scrollY;var g=Math.cos(-l),l=
Math.sin(-l),m=a*g-f*l;f=f*g+a*l;a=m+this.xa.scrollX;f+=this.xa.scrollY}g=this.b.Wp;l=this.b.Xp;g=(this.xa.scrollX-g)*this.Yb+g;l=(this.xa.scrollY-l)*this.Zb+l;m=1/this.wc(!e);e?(g-=this.b.X*m/2,l-=this.b.W*m/2):(g-=this.b.width*m/2,l-=this.b.height*m/2);g=(a-g)/m;l=(f-l)/m;a=this.b.devicePixelRatio;this.b.jf&&!e&&(g/=a,l/=a);return c?g:l};a.prototype.Fb=function(){var a,f,c,e={s:this.scale,a:this.k,vl:this.La,vt:this.Ma,vr:this.bb,vb:this.ab,v:this.visible,bc:this.ne,t:this.fe,px:this.Yb,py:this.Zb,
o:this.opacity,zr:this.Jb,fx:[],instances:[]};a=0;for(f=this.S.length;a<f;a++)c=this.S[a],e.fx.push({name:c.name,active:c.sc,params:this.Ia[c.index]});return e};a.prototype.Wb=function(a){var f,c;this.scale=a.s;this.k=a.a;this.La=a.vl;this.Ma=a.vt;this.bb=a.vr;this.ab=a.vb;this.visible=a.v;this.ne=a.bc;this.fe=a.t;this.Yb=a.px;this.Zb=a.py;this.opacity=a.o;this.Jb=a.zr;var e=a.fx;a=0;for(f=e.length;a<f;a++)if(c=this.il(e[a].name))c.sc=e[a].active,this.Ia[c.index]=e[a].params;this.ge();this.d.sort(n);
this.zf=!0};Vb=a})();
(function(){function g(a,b){var f,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(f=0;f<d;f++)if(a[f]!==b[f])return!1;return!0}}function n(a,b){return a.index-b.index}function a(a){var b,f,d,c;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(n);a.length>=p.length&&(p.length=a.length+1);p[a.length]||(p[a.length]=[]);c=p[a.length];b=0;for(f=c.length;b<f;b++)if(d=c[b],g(a,d))return d;c.push(a);return a}
function e(a,b){this.b=a;this.Eq={};this.wo={};this.sl=!1;this.Lo=new ca;this.Sk=[];this.Bk=[];this.name=b[0];var f=b[1];this.te=[];var d,c;d=0;for(c=f.length;d<c;d++)this.No(f[d],null,this.te)}function s(a){this.type=a;this.d=[];this.ca=[];this.T=!0}function c(a,b,f){this.sheet=a;this.parent=b;this.b=a.b;this.ta=[];this.Ne=[];this.Jo=this.gk=this.an=this.yl=this.group=this.Tm=!1;this.cb=[];this.Bc=[];this.Sc=[];this.Vg="";this.Ug=this.yl=this.group=!1;this.ko=null;f[1]&&(this.Vg=f[1][1].toLowerCase(),
this.group=!0,this.yl=!!f[1][0],this.ko=[],this.Ug=this.yl,this.b.Ff.push(this),this.b.Wg[this.Vg]=this);this.Pc=f[2];this.ba=f[4];this.group||(this.b.Xn[this.ba.toString()]=this);var d=f[5];a=0;for(b=d.length;a<b;a++){var c=new Wb(this,d[a]);c.index=a;this.cb.push(c);this.Sn(c.type)}d=f[6];a=0;for(b=d.length;a<b;a++)c=new Xb(this,d[a]),c.index=a,this.Bc.push(c);if(8===f.length)for(f=f[7],a=0,b=f.length;a<b;a++)this.sheet.No(f[a],this,this.Sc);this.Wi=!1;this.cb.length&&(this.Wi=null==this.cb[0].type&&
this.cb[0].rb==X.prototype.j.vn)}function t(a,b){var f,d,c;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Mb))for(f=0,d=a.gc.length;f<d;f++)c=a.gc[f],a!==c&&-1===b.indexOf(c)&&b.push(c)}function u(a,b){this.tc=a;this.sheet=a.sheet;this.b=a.b;this.P=[];this.za=[];this.M={};this.index=-1;this.Bg=!1;this.rb=this.b.ie(b[1]);this.trigger=0<b[3];this.vo=2===b[3];this.qd=b[4];this.Si=b[5];this.Zu=b[6];this.ba=b[7];this.b.If[this.ba.toString()]=this;-1===b[0]?(this.type=null,this.$a=this.Mm,this.Ve=null,this.Cc=-1):
(this.type=this.b.B[b[0]],this.$a=this.Zu?this.Qv:this.Lm,b[2]?(this.Ve=this.type.Mi(b[2]),this.Cc=this.type.gl(b[2])):(this.Ve=null,this.Cc=-1),this.tc.parent&&this.tc.parent.Rj());this.vo&&(this.$a=this.Rv);if(10===b.length){var f,d,c=b[9];f=0;for(d=c.length;f<d;f++){var e=new Yb(this,c[f]);this.P.push(e)}this.za.length=c.length}}function f(a,b){this.tc=a;this.sheet=a.sheet;this.b=a.b;this.P=[];this.za=[];this.M={};this.index=-1;this.Bg=!1;this.rb=this.b.ie(b[1]);-1===b[0]?(this.type=null,this.$a=
this.Mm,this.Ve=null,this.Cc=-1):(this.type=this.b.B[b[0]],this.$a=this.Lm,b[2]?(this.Ve=this.type.Mi(b[2]),this.Cc=this.type.gl(b[2])):(this.Ve=null,this.Cc=-1));this.ba=b[3];this.b.Ef[this.ba.toString()]=this;if(6===b.length){var f,d,c=b[5];f=0;for(d=c.length;f<d;f++){var e=new Yb(this,c[f]);this.P.push(e)}this.za.length=c.length}}function l(a,b){this.J=a;this.tc=a.tc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.ld=null;this.Oe=0;this.get=null;this.jo=0;this.xa=null;this.key=0;this.object=
null;this.index=0;this.Vh=this.xf=this.Vh=this.xf=this.xo=this.Ze=this.Wh=null;this.Tc=!1;var f,d,c;switch(b[0]){case 0:case 7:this.ld=new Zb(this,b[1]);this.Oe=0;this.get=this.vu;break;case 1:this.ld=new Zb(this,b[1]);this.Oe=0;this.get=this.wu;break;case 5:this.ld=new Zb(this,b[1]);this.Oe=0;this.get=this.Au;break;case 3:case 8:this.jo=b[1];this.get=this.tu;break;case 6:this.xa=this.b.Ql[b[1]];this.get=this.Bu;break;case 9:this.key=b[1];this.get=this.zu;break;case 4:this.object=this.b.B[b[1]];this.get=
this.Cu;this.tc.Sn(this.object);this.J instanceof Xb?this.tc.Rj():this.tc.parent&&this.tc.parent.Rj();break;case 10:this.index=b[1];a.type.N?(this.get=this.xu,this.Tc=!0):this.get=this.yu;break;case 11:this.Wh=b[1];this.Ze=null;this.get=this.uu;break;case 2:case 12:this.xo=b[1];this.get=this.su;break;case 13:for(this.get=this.Du,this.xf=[],this.Vh=[],f=1,d=b.length;f<d;f++)c=new Yb(this.J,b[f]),this.xf.push(c),this.Vh.push(0)}}function b(a,b,f){this.sheet=a;this.parent=b;this.b=a.b;this.ta=[];this.name=
f[1];this.Xh=f[2];this.xl=f[3];this.gh=!!f[4];this.Vi=!!f[5];this.ba=f[6];this.b.zg[this.ba.toString()]=this;this.data=this.xl;this.parent?(this.rf=this.gh||this.Vi?-1:this.b.$v++,this.b.Os.push(this)):(this.rf=-1,this.b.Ns.push(this))}function h(a,b,f){this.sheet=a;this.parent=b;this.b=a.b;this.ta=[];this.Yg=null;this.Ku=f[1];this.sc=!0}function r(){this.wq=[];this.reset(null)}var p=[];e.prototype.toString=function(){return this.name};e.prototype.No=function(a,b,f){switch(a[0]){case 0:a=new $b(this,
b,a);if(a.Pc)for(f.push(a),f=0,b=a.cb.length;f<b;f++)a.cb[f].trigger&&this.Oo(a,f);else a.Xo()?this.Oo(a,0):f.push(a);break;case 1:a=new Sb(this,b,a);f.push(a);break;case 2:a=new ac(this,b,a),f.push(a)}};e.prototype.Qa=function(){var a,b;a=0;for(b=this.te.length;a<b;a++)this.te[a].Qa(a<b-1&&this.te[a+1].Wi)};e.prototype.Mq=function(){this.Sk.length=0;this.Bk.length=0;this.Rn(this);this.Bk.length=0};e.prototype.Rn=function(a){var b,f,d,c,e=a.Sk,l=a.Bk,h=this.Lo.Te();b=0;for(f=h.length;b<f;++b)d=h[b],
c=d.Yg,!d.sc||a===c||-1<l.indexOf(c)||(l.push(c),c.Rn(a),e.push(c))};e.prototype.$a=function(a){this.b.rx||(this.sl=!0,a||(this.b.Dl=!0));var b,f;b=0;for(f=this.te.length;b<f;b++){var d=this.te[b];d.$a();this.b.Mk(d.ta);this.b.ve&&this.b.xb()}a||(this.b.Dl=!1)};e.prototype.Oo=function(a,b){a.Pc||this.b.kk.push(a);var f,d,c=a.cb[b],e;e=c.type?c.type.name:"system";var l=(f=c.vo)?this.wo:this.Eq;l[e]||(l[e]=[]);e=l[e];l=c.rb;if(f){if(c.P.length&&(c=c.P[0],1===c.type&&2===c.ld.type)){c=c.ld.value.toLowerCase();
f=0;for(d=e.length;f<d;f++)if(e[f].method==l){f=e[f].Kg;f[c]?f[c].push([a,b]):f[c]=[[a,b]];return}f={};f[c]=[[a,b]];e.push({method:l,Kg:f})}}else{f=0;for(d=e.length;f<d;f++)if(e[f].method==l){e[f].Kg.push([a,b]);return}Y&&l===Y.prototype.j.Df?e.unshift({method:l,Kg:[[a,b]]}):e.push({method:l,Kg:[[a,b]]})}};Ib=e;s.prototype.rl=function(){return this.T?this.type.d.length:this.d.length};s.prototype.Db=function(){return this.T?this.type.d:this.d};s.prototype.lg=function(a){a&&(a.b.fb().eb.Pc?(this.T&&
(this.d.length=0,Fa(this.ca,a.type.d),this.T=!1),a=this.ca.indexOf(a),-1!==a&&(this.d.push(this.ca[a]),this.ca.splice(a,1))):(this.T=!1,this.d.length=1,this.d[0]=a))};qb=s;window._c2hh_="9D9F626D6BAEC33C4C8791199FC5293CA45CE74F";c.prototype.Qa=function(b){var f,c=this.parent;if(this.group)for(this.gk=!0;c;){if(!c.group){this.gk=!1;break}c=c.parent}this.an=!this.Xo()&&(!this.parent||this.parent.group&&this.parent.gk);this.Jo=!!b;this.Ne=this.ta.slice(0);for(c=this.parent;c;){b=0;for(f=c.ta.length;b<
f;b++)this.Ls(c.ta[b]);c=c.parent}this.ta=a(this.ta);this.Ne=a(this.Ne);b=0;for(f=this.cb.length;b<f;b++)this.cb[b].Qa();b=0;for(f=this.Bc.length;b<f;b++)this.Bc[b].Qa();b=0;for(f=this.Sc.length;b<f;b++)this.Sc[b].Qa(b<f-1&&this.Sc[b+1].Wi)};c.prototype.Sn=function(a){t(a,this.ta)};c.prototype.Ls=function(a){t(a,this.Ne)};c.prototype.Rj=function(){this.Tm=!0;this.parent&&this.parent.Rj()};c.prototype.Xo=function(){return this.cb.length?this.cb[0].trigger:!1};c.prototype.$a=function(){var a,b=!1,f,
d=this.b,c=this.b.fb();c.eb=this;var e=this.cb;this.Wi||(c.Vk=!1);if(this.Pc){0===e.length&&(b=!0);c.Ta=0;for(a=e.length;c.Ta<a;c.Ta++)e[c.Ta].trigger||(f=e[c.Ta].$a())&&(b=!0);(c.nf=b)&&this.Mj()}else{c.Ta=0;for(a=e.length;c.Ta<a;c.Ta++)if(f=e[c.Ta].$a(),!f){c.nf=!1;this.an&&d.ve&&d.xb();return}c.nf=!0;this.Mj()}this.zt(c)};c.prototype.zt=function(a){a.nf&&this.Jo&&(a.Vk=!0);this.an&&this.b.ve&&this.b.xb()};c.prototype.Ov=function(a){this.b.fb().eb=this;this.cb[a].$a()&&(this.Mj(),this.b.fb().nf=
!0)};c.prototype.Mj=function(){var a=this.b.fb(),b;a.Rb=0;for(b=this.Bc.length;a.Rb<b;a.Rb++)if(this.Bc[a.Rb].$a())return;this.hq()};c.prototype.Lv=function(){var a=this.b.fb(),b;for(b=this.Bc.length;a.Rb<b;a.Rb++)if(this.Bc[a.Rb].$a())return;this.hq()};c.prototype.hq=function(){if(this.Sc.length){var a,b,f,d,c=this.Sc.length-1;this.b.Ej(this);if(this.Tm)for(a=0,b=this.Sc.length;a<b;a++)f=this.Sc[a],(d=!this.gk||!this.group&&a<c)&&this.b.Eh(f.ta),f.$a(),d?this.b.Ie(f.ta):this.b.Mk(f.ta);else for(a=
0,b=this.Sc.length;a<b;a++)this.Sc[a].$a();this.b.Aj()}};c.prototype.Pv=function(){var a=this.b.fb();a.eb=this;var b=!1,f;a.Ta=0;for(f=this.cb.length;a.Ta<f;a.Ta++)if(this.cb[a.Ta].$a())b=!0;else if(!this.Pc)return!1;return this.Pc?b:!0};c.prototype.Im=function(){this.b.Lf++;var a=this.b.fb().Ta,b=this.b.Ej(this);if(!this.Pc)for(b.Ta=a+1,a=this.cb.length;b.Ta<a;b.Ta++)if(!this.cb[b.Ta].$a()){this.b.Aj();return}this.Mj();this.b.Aj()};c.prototype.Su=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=
b;--b)if(this.cb[b].type===a.type)return!1;return!0};$b=c;u.prototype.Qa=function(){var a,b,f;a=0;for(b=this.P.length;a<b;a++)f=this.P[a],f.Qa(),f.Tc&&(this.Bg=!0)};u.prototype.Rv=function(){return!0};u.prototype.Mm=function(){var a,b;a=0;for(b=this.P.length;a<b;a++)this.za[a]=this.P[a].get();return Ya(this.rb.apply(this.b.Ad,this.za),this.Si)};u.prototype.Qv=function(){var a,b;a=0;for(b=this.P.length;a<b;a++)this.za[a]=this.P[a].get();a=this.rb.apply(this.Ve?this.Ve:this.type,this.za);this.type.fc();
return a};u.prototype.Lm=function(){var a,b,f,d,c,e,l,h,g=this.type,p=g.K(),n=this.tc.Pc&&!this.trigger;b=0;var r=g.Mb,s=g.N,t=g.Rd,w=this.Cc,u=-1<w,A=this.Bg,L=this.P,C=this.za,I=this.Si,K=this.rb,H;if(A)for(b=0,c=L.length;b<c;++b)e=L[b],e.Tc||(C[b]=e.get(0));else for(b=0,c=L.length;b<c;++b)C[b]=L[b].get(0);if(p.T){p.d.length=0;p.ca.length=0;H=g.d;a=0;for(d=H.length;a<d;++a){h=H[a];if(A)for(b=0,c=L.length;b<c;++b)e=L[b],e.Tc&&(C[b]=e.get(a));u?(b=0,s&&(b=h.type.Nf[t]),b=K.apply(h.V[w+b],C)):b=K.apply(h,
C);(l=Ya(b,I))?p.d.push(h):n&&p.ca.push(h)}g.finish&&g.finish(!0);p.T=!1;g.fc();return p.rl()}f=0;H=(l=n&&!this.tc.Su(this))?p.ca:p.d;var N=!1;a=0;for(d=H.length;a<d;++a){h=H[a];if(A)for(b=0,c=L.length;b<c;++b)e=L[b],e.Tc&&(C[b]=e.get(a));u?(b=0,s&&(b=h.type.Nf[t]),b=K.apply(h.V[w+b],C)):b=K.apply(h,C);if(Ya(b,I))if(N=!0,l){if(p.d.push(h),r)for(b=0,c=h.siblings.length;b<c;b++)e=h.siblings[b],e.type.K().d.push(e)}else{H[f]=h;if(r)for(b=0,c=h.siblings.length;b<c;b++)e=h.siblings[b],e.type.K().d[f]=
e;f++}else if(l){H[f]=h;if(r)for(b=0,c=h.siblings.length;b<c;b++)e=h.siblings[b],e.type.K().ca[f]=e;f++}else if(n&&(p.ca.push(h),r))for(b=0,c=h.siblings.length;b<c;b++)e=h.siblings[b],e.type.K().ca.push(e)}H.length=f;if(r)for(s=g.gc,a=0,d=s.length;a<d;a++)h=s[a].K(),l?h.ca.length=f:h.d.length=f;f=N;if(l&&!N)for(a=0,d=p.d.length;a<d;a++){h=p.d[a];if(A)for(b=0,c=L.length;b<c;b++)e=L[b],e.Tc&&(C[b]=e.get(a));b=u?K.apply(h.V[w],C):K.apply(h,C);if(Ya(b,I)){N=!0;break}}g.finish&&g.finish(f||n);return n?
N:p.rl()};Wb=u;f.prototype.Qa=function(){var a,b,f;a=0;for(b=this.P.length;a<b;a++)f=this.P[a],f.Qa(),f.Tc&&(this.Bg=!0)};f.prototype.Mm=function(){var a,b;a=0;for(b=this.P.length;a<b;a++)this.za[a]=this.P[a].get();return this.rb.apply(this.b.Ad,this.za)};f.prototype.Lm=function(){var a=this.type.K().Db(),b=this.type.N,f=this.type.Rd,d=this.Cc,c=-1<d,e=this.Bg,l=this.P,h=this.za,g=this.rb,p,n,r,s,t,w;if(e)for(n=0,s=l.length;n<s;++n)t=l[n],t.Tc||(h[n]=t.get(0));else for(n=0,s=l.length;n<s;++n)h[n]=
l[n].get(0);p=0;for(r=a.length;p<r;++p){w=a[p];if(e)for(n=0,s=l.length;n<s;++n)t=l[n],t.Tc&&(h[n]=t.get(p));c?(n=0,b&&(n=w.type.Nf[f]),g.apply(w.V[d+n],h)):g.apply(w,h)}return!1};Xb=f;var w=[],A=-1;l.prototype.Qa=function(){var a,b;if(11===this.type)this.Ze=this.b.Co(this.Wh,this.tc.parent);else if(13===this.type)for(a=0,b=this.xf.length;a<b;a++)this.xf[a].Qa();this.ld&&this.ld.Qa()};l.prototype.dv=function(a){this.Tc||!a||a.ya.Wj||(this.Tc=!0)};l.prototype.mq=function(){this.Tc=!0};l.prototype.jb=
function(){A++;w.length===A&&w.push(new bc);return w[A]};l.prototype.Za=function(){A--};l.prototype.vu=function(a){this.Oe=a||0;a=this.jb();this.ld.get(a);this.Za();return a.data};l.prototype.wu=function(a){this.Oe=a||0;a=this.jb();this.ld.get(a);this.Za();return F(a.data)?a.data:""};l.prototype.Cu=function(){return this.object};l.prototype.tu=function(){return this.jo};l.prototype.Au=function(a){this.Oe=a||0;a=this.jb();this.ld.get(a);this.Za();return a.lb()?this.b.Td(a.data):this.b.Qg(a.data)};
l.prototype.Bu=function(){return this.xa};l.prototype.zu=function(){return this.key};l.prototype.yu=function(){return this.index};l.prototype.xu=function(a){a=a||0;var b=this.J.type,f=null,f=b.K(),d=f.Db();if(d.length)f=d[a%d.length].type;else if(f.ca.length)f=f.ca[a%f.ca.length].type;else if(b.d.length)f=b.d[a%b.d.length].type;else return 0;return this.index+f.Ei[b.Rd]};l.prototype.uu=function(){return this.Ze};l.prototype.su=function(){return this.xo};l.prototype.Du=function(){var a,b;a=0;for(b=
this.xf.length;a<b;a++)this.Vh[a]=this.xf[a].get();return this.Vh};Yb=l;b.prototype.Qa=function(){this.ta=a(this.ta)};b.prototype.be=function(a){var b=this.b.Bo();this.parent&&!this.gh&&b?(this.rf>=b.length&&(b.length=this.rf+1),b[this.rf]=a):this.data=a};b.prototype.cf=function(){var a=this.b.Bo();return!this.parent||this.gh||!a||this.Vi?this.data:this.rf>=a.length||"undefined"===typeof a[this.rf]?this.xl:a[this.rf]};b.prototype.$a=function(){!this.parent||this.gh||this.Vi||this.be(this.xl)};Sb=
b;h.prototype.toString=function(){return"include:"+this.Yg.toString()};h.prototype.Qa=function(){this.Yg=this.b.Xk[this.Ku];this.sheet.Lo.add(this);this.ta=a(this.ta);for(var b=this.parent;b;)b.group&&b.ko.push(this),b=b.parent;this.hw()};h.prototype.$a=function(){this.parent&&this.b.Dh(this.b.B);this.Yg.sl||this.Yg.$a(!0);this.parent&&this.b.Ie(this.b.B)};h.prototype.hw=function(){for(var a=this.parent;a;){if(a.group&&!a.Ug){this.sc=!1;return}a=a.parent}this.sc=!0};ac=h;r.prototype.reset=function(a){this.eb=
a;this.Rb=this.Ta=0;this.wq.length=0;this.Vk=this.nf=!1};r.prototype.Uu=function(){return this.eb.Tm?!0:this.Ta<this.eb.cb.length-1?!!this.eb.ta.length:!1};Rb=r})();
(function(){function g(a,e){this.J=a;this.b=a.b;this.type=e[0];this.get=[this.Lt,this.Ht,this.Tt,this.Wt,this.Bt,this.Ut,this.Pt,this.Et,this.Ot,this.St,this.Ct,this.Rt,this.Ft,this.Qt,this.Mt,this.Nt,this.It,this.Jt,this.Dt,this.Vt,this.to,this.Kt,this.to,this.Gt][this.type];var g=null;this.Xb=this.P=this.za=this.rb=this.ck=this.pb=this.first=this.value=null;this.Cc=-1;this.Ud=null;this.ln=-1;this.Ze=this.Wh=null;this.Hh=!1;switch(this.type){case 0:case 1:case 2:this.value=e[1];break;case 3:this.first=
new Zb(a,e[1]);break;case 18:this.first=new Zb(a,e[1]);this.pb=new Zb(a,e[2]);this.ck=new Zb(a,e[3]);break;case 19:this.rb=this.b.ie(e[1]);this.rb!==X.prototype.F.random&&this.rb!==X.prototype.F.io||this.J.mq();this.za=[];this.P=[];3===e.length?(g=e[2],this.za.length=g.length+1):this.za.length=1;break;case 20:this.Xb=this.b.B[e[1]];this.Cc=-1;this.rb=this.b.ie(e[2]);this.Hh=e[3];oc&&this.rb===oc.prototype.F.cr&&this.J.mq();this.Ud=e[4]?new Zb(a,e[4]):null;this.za=[];this.P=[];6===e.length?(g=e[5],
this.za.length=g.length+1):this.za.length=1;break;case 21:this.Xb=this.b.B[e[1]];this.Hh=e[2];this.Ud=e[3]?new Zb(a,e[3]):null;this.ln=e[4];break;case 22:this.Xb=this.b.B[e[1]];this.Xb.Mi(e[2]);this.Cc=this.Xb.gl(e[2]);this.rb=this.b.ie(e[3]);this.Hh=e[4];this.Ud=e[5]?new Zb(a,e[5]):null;this.za=[];this.P=[];7===e.length?(g=e[6],this.za.length=g.length+1):this.za.length=1;break;case 23:this.Wh=e[1],this.Ze=null}this.J.dv(this.Xb);4<=this.type&&17>=this.type&&(this.first=new Zb(a,e[1]),this.pb=new Zb(a,
e[2]));if(g){var c,n;c=0;for(n=g.length;c<n;c++)this.P.push(new Zb(a,g[c]))}}function n(a,e){this.type=a||cc.Bf;this.data=e||0;this.gg=null;this.type==cc.Bf&&(this.data=Math.floor(this.data))}g.prototype.Qa=function(){23===this.type&&(this.Ze=this.J.b.Co(this.Wh,this.J.tc.parent));this.first&&this.first.Qa();this.pb&&this.pb.Qa();this.ck&&this.ck.Qa();this.Ud&&this.Ud.Qa();if(this.P){var a,e;a=0;for(e=this.P.length;a<e;a++)this.P[a].Qa()}};g.prototype.Vt=function(a){this.za[0]=a;a=this.J.jb();var e,
g;e=0;for(g=this.P.length;e<g;e++)this.P[e].get(a),this.za[e+1]=a.data;this.J.Za();this.rb.apply(this.b.Ad,this.za)};g.prototype.to=function(a){var e=this.Xb.K(),g=e.Db();if(!g.length)if(e.ca.length)g=e.ca;else{this.Hh?a.tb(""):a.ea(0);return}this.za[0]=a;a.gg=this.Xb;a=this.J.jb();var c,e=0;for(c=this.P.length;e<c;e++)this.P[e].get(a),this.za[e+1]=a.data;e=this.J.Oe;this.Ud&&(this.Ud.get(a),a.lb()&&(e=a.data,g=this.Xb.d));this.J.Za();e%=g.length;0>e&&(e+=g.length);g=g[e];-1<this.Cc?(a=0,this.Xb.N&&
(a=g.type.Nf[this.Xb.Rd]),this.rb.apply(g.V[this.Cc+a],this.za)):this.rb.apply(g,this.za)};g.prototype.Kt=function(a){var e=this.Xb.K(),g=e.Db();if(!g.length)if(e.ca.length)g=e.ca;else{this.Hh?a.tb(""):a.ea(0);return}e=this.J.Oe;if(this.Ud){var c=this.J.jb();this.Ud.get(c);if(c.lb()){e=c.data;g=this.Xb.d;e%=g.length;0>e&&(e+=g.length);g=g[e].gb[this.ln];F(g)?a.tb(g):a.C(g);this.J.Za();return}this.J.Za()}e%=g.length;0>e&&(e+=g.length);g=g[e];e=0;this.Xb.N&&(e=g.type.Ei[this.Xb.Rd]);g=g.gb[this.ln+
e];F(g)?a.tb(g):a.C(g)};g.prototype.Lt=function(a){a.type=cc.Bf;a.data=this.value};g.prototype.Ht=function(a){a.type=cc.Af;a.data=this.value};g.prototype.Tt=function(a){a.type=cc.String;a.data=this.value};g.prototype.Wt=function(a){this.first.get(a);a.lb()&&(a.data=-a.data)};g.prototype.Bt=function(a){this.first.get(a);var e=this.J.jb();this.pb.get(e);a.lb()&&e.lb()&&(a.data+=e.data,e.Wf()&&a.cg());this.J.Za()};g.prototype.Ut=function(a){this.first.get(a);var e=this.J.jb();this.pb.get(e);a.lb()&&
e.lb()&&(a.data-=e.data,e.Wf()&&a.cg());this.J.Za()};g.prototype.Pt=function(a){this.first.get(a);var e=this.J.jb();this.pb.get(e);a.lb()&&e.lb()&&(a.data*=e.data,e.Wf()&&a.cg());this.J.Za()};g.prototype.Et=function(a){this.first.get(a);var e=this.J.jb();this.pb.get(e);a.lb()&&e.lb()&&(a.data/=e.data,a.cg());this.J.Za()};g.prototype.Ot=function(a){this.first.get(a);var e=this.J.jb();this.pb.get(e);a.lb()&&e.lb()&&(a.data%=e.data,e.Wf()&&a.cg());this.J.Za()};g.prototype.St=function(a){this.first.get(a);
var e=this.J.jb();this.pb.get(e);a.lb()&&e.lb()&&(a.data=Math.pow(a.data,e.data),e.Wf()&&a.cg());this.J.Za()};g.prototype.Ct=function(a){this.first.get(a);var e=this.J.jb();this.pb.get(e);a.lb()?e.Xi()?a.tb(a.data.toString()+e.data):a.data&&e.data?a.ea(1):a.ea(0):a.Xi()&&(a.data=e.Xi()?a.data+e.data:a.data+(Math.round(1E10*e.data)/1E10).toString());this.J.Za()};g.prototype.Rt=function(a){this.first.get(a);var e=this.J.jb();this.pb.get(e);a.lb()&&e.lb()&&(a.data||e.data?a.ea(1):a.ea(0));this.J.Za()};
g.prototype.Dt=function(a){this.first.get(a);a.data?this.pb.get(a):this.ck.get(a)};g.prototype.Ft=function(a){this.first.get(a);var e=this.J.jb();this.pb.get(e);a.ea(a.data===e.data?1:0);this.J.Za()};g.prototype.Qt=function(a){this.first.get(a);var e=this.J.jb();this.pb.get(e);a.ea(a.data!==e.data?1:0);this.J.Za()};g.prototype.Mt=function(a){this.first.get(a);var e=this.J.jb();this.pb.get(e);a.ea(a.data<e.data?1:0);this.J.Za()};g.prototype.Nt=function(a){this.first.get(a);var e=this.J.jb();this.pb.get(e);
a.ea(a.data<=e.data?1:0);this.J.Za()};g.prototype.It=function(a){this.first.get(a);var e=this.J.jb();this.pb.get(e);a.ea(a.data>e.data?1:0);this.J.Za()};g.prototype.Jt=function(a){this.first.get(a);var e=this.J.jb();this.pb.get(e);a.ea(a.data>=e.data?1:0);this.J.Za()};g.prototype.Gt=function(a){var e=this.Ze.cf();ja(e)?a.C(e):a.tb(e)};Zb=g;n.prototype.Wf=function(){return this.type===cc.Af};n.prototype.lb=function(){return this.type===cc.Bf||this.type===cc.Af};n.prototype.Xi=function(){return this.type===
cc.String};n.prototype.cg=function(){this.Wf()||(this.Xi()&&(this.data=parseFloat(this.data)),this.type=cc.Af)};n.prototype.ea=function(a){this.type=cc.Bf;this.data=Math.floor(a)};n.prototype.C=function(a){this.type=cc.Af;this.data=a};n.prototype.tb=function(a){this.type=cc.String;this.data=a};n.prototype.Qm=function(a){ja(a)?(this.type=cc.Af,this.data=a):F(a)?(this.type=cc.String,this.data=a.toString()):(this.type=cc.Bf,this.data=0)};bc=n;cc={Bf:0,Af:1,String:2}})();
function X(g){this.b=g;this.cc=[]}X.prototype.Fb=function(){var g={},n,a,e,s,c,t,u,f;g.waits=[];var l=g.waits,b;n=0;for(a=this.cc.length;n<a;n++){t=this.cc[n];b={t:t.time,st:t.tq,s:t.Sm,ev:t.Kf.ba,sm:[],sols:{}};t.Kf.Bc[t.Rb]&&(b.act=t.Kf.Bc[t.Rb].ba);e=0;for(s=t.ta.length;e<s;e++)b.sm.push(t.ta[e].ba);for(c in t.Pb)if(t.Pb.hasOwnProperty(c)){u=this.b.B[parseInt(c,10)];f={sa:t.Pb[c].Nj,insts:[]};e=0;for(s=t.Pb[c].Vd.length;e<s;e++)f.insts.push(t.Pb[c].Vd[e].uid);b.sols[u.ba.toString()]=f}l.push(b)}return g};
X.prototype.Wb=function(g){g=g.waits;var n,a,e,s,c,t,u,f,l,b,h;n=this.cc.length=0;for(a=g.length;n<a;n++)if(t=g[n],f=this.b.Xn[t.ev.toString()]){l=-1;e=0;for(s=f.Bc.length;e<s;e++)if(f.Bc[e].ba===t.act){l=e;break}if(-1!==l){u={Pb:{},ta:[],Tk:!1};u.time=t.t;u.tq=t.st||"";u.Sm=!!t.s;u.Kf=f;u.Rb=l;e=0;for(s=t.sm.length;e<s;e++)(f=this.b.Oi(t.sm[e]))&&u.ta.push(f);for(c in t.sols)if(t.sols.hasOwnProperty(c)&&(f=this.b.Oi(parseInt(c,10)))){l=t.sols[c];b={Nj:l.sa,Vd:[]};e=0;for(s=l.insts.length;e<s;e++)(h=
this.b.Rg(l.insts[e]))&&b.Vd.push(h);u.Pb[f.index.toString()]=b}this.cc.push(u)}}};
(function(){function g(){}function n(){}function a(){}var e=X.prototype;g.prototype.Cn=function(){return!0};g.prototype.Rr=function(){return!0};g.prototype.fr=function(a,c,b){return dc(a,c,b)};var s=[],c=-1;g.prototype.mr=function(a){var e=a.K();c++;s.length===c&&s.push([]);var b=s[c];Fa(b,e.Db());var h=this.b.fb(),g=h.eb,p=h.Uu(),h=this.b.Fv(),n,t,m,u,G,d,q=a.Mb;if(p)for(p=0,n=b.length;p<n&&!h.wb;p++){this.b.Eh(g.ta);u=b[p];e=a.K();e.T=!1;e.d.length=1;e.d[0]=u;if(q)for(t=0,m=u.siblings.length;t<
m;t++)G=u.siblings[t],d=G.type.K(),d.T=!1,d.d.length=1,d.d[0]=G;h.index=p;g.Im();this.b.Ie(g.ta)}else for(e.T=!1,e.d.length=1,p=0,n=b.length;p<n&&!h.wb;p++){u=b[p];e.d[0]=u;if(q)for(t=0,m=u.siblings.length;t<m;t++)G=u.siblings[t],d=G.type.K(),d.T=!1,d.d.length=1,d.d[0]=G;h.index=p;g.Im()}b.length=0;this.b.vv();c--;return!1};g.prototype.Zr=function(a,e,b,h){var g,p,n,t;if(a){c++;s.length===c&&s.push([]);var m=s[c],u=a.K();Fa(m,u.Db());u.T&&(u.ca.length=0);var G=this.b.Of();n=g=0;for(p=m.length;g<p;g++)t=
m[g],m[n]=t,e=G.P[1].get(g),h=G.P[3].get(g),dc(e,b,h)?n++:u.ca.push(t);m.length=n;u.T=!1;Fa(u.d,m);m.length=0;c--;a.fc();return!!u.d.length}};g.prototype.Bs=function(){var a=this.b.Of().M;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var c=a.TriggerOnce_lastTick,b=this.b.Ac;a.TriggerOnce_lastTick=b;return this.b.Pl||c!==b-1};g.prototype.lr=function(a){var c=this.b.Of(),b=c.M.Every_lastTime||0,e=this.b.ic.aa;"undefined"===typeof c.M.Every_seconds&&(c.M.Every_seconds=a);var g=
c.M.Every_seconds;if(e>=b+g)return c.M.Every_lastTime=b+g,e>=c.M.Every_lastTime+.04&&(c.M.Every_lastTime=e),c.M.Every_seconds=a,!0;e<b-.1&&(c.M.Every_lastTime=e);return!1};g.prototype.$r=function(a,c){if(!a)return!1;var b=a.K(),e=b.Db();c=R(c);if(0>c||c>=e.length)return!1;b.lg(e[c]);a.fc();return!0};g.prototype.hr=function(a,c,b){return dc(a.cf(),c,b)};g.prototype.rr=function(a){return(a=this.b.Wg[a.toLowerCase()])&&a.Ug};g.prototype.Yr=function(a){if(!a||!a.d.length)return!1;a.K().T=!0;a.fc();return!0};
g.prototype.vn=function(){var a=this.b.fb();return a.Vk?!1:!a.nf};g.prototype.Dn=function(){return!0};g.prototype.Ir=function(){return!0};g.prototype.vk=function(){return!0};g.prototype.Sr=function(){return!0};g.prototype.tk=function(){return!0};g.prototype.Vq=function(a,c,b){return Qa(U(a),U(b))<=U(c)};g.prototype.qr=function(a,c){return Sa(U(a),U(c))};g.prototype.wn=function(a,c,b){a=Oa(a);c=Oa(c);b=Oa(b);return Sa(b,c)?Sa(a,c)&&!Sa(a,b):!(!Sa(a,c)&&Sa(a,b))};e.j=new g;n.prototype.kr=function(a,
c,b,e){if(c&&a&&(c=this.b.Ok(a,c,b,e))){this.b.xc++;var g;this.b.trigger(Object.getPrototypeOf(a.ya).j.Cf,c);if(c.Mb)for(b=0,e=c.siblings.length;b<e;b++)g=c.siblings[b],this.b.trigger(Object.getPrototypeOf(g.type.ya).j.Cf,g);this.b.xc--;a=a.K();a.T=!1;a.d.length=1;a.d[0]=c;if(c.Mb)for(b=0,e=c.siblings.length;b<e;b++)g=c.siblings[b],a=g.type.K(),a.T=!1,a.d.length=1,a.d[0]=g}};n.prototype.ss=function(a,c){0===a.Xh?ja(c)?a.be(c):a.be(parseFloat(c)):1===a.Xh&&a.be(c.toString())};n.prototype.Tq=function(a,
c){0===a.Xh?ja(c)?a.be(a.cf()+c):a.be(a.cf()+parseFloat(c)):1===a.Xh&&a.be(a.cf()+c.toString())};n.prototype.zs=function(a,c){0===a.Xh&&(ja(c)?a.be(a.cf()-c):a.be(a.cf()-parseFloat(c)))};n.prototype.ns=function(a,c){var b=c;0>b&&(b=0);if(a){var e=a.K().Db(),g,p;g=0;for(p=e.length;g<p;g++)e[g].tf=b}};n.prototype.cs=function(a){if(!a)return!1;a=a.K().Db();var c,b;c=0;for(b=a.length;c<b;c++)a[c].tf=-1};var t=[],u=[];n.prototype.Cs=function(a){if(!(0>a)){var c,b,e,g=this.b.fb(),p;p=t.length?t.pop():{Pb:{},
ta:[]};p.Tk=!1;p.time=this.b.ic.aa+a;p.tq="";p.Sm=!1;p.Kf=g.eb;p.Rb=g.Rb+1;a=0;for(c=this.b.B.length;a<c;a++)e=this.b.B[a],b=e.K(),b.T&&-1===g.eb.ta.indexOf(e)||(p.ta.push(e),e=void 0,e=u.length?u.pop():{Vd:[]},e.Nj=!1,e.Nj=b.T,Fa(e.Vd,b.d),p.Pb[a.toString()]=e);this.cc.push(p);return!0}};e.u=new n;a.prototype["int"]=function(a,c){F(c)?(a.ea(parseInt(c,10)),isNaN(a.data)&&(a.data=0)):a.ea(c)};a.prototype["float"]=function(a,c){F(c)?(a.C(parseFloat(c)),isNaN(a.data)&&(a.data=0)):a.C(c)};a.prototype.cw=
function(a,c){F(c)?a.tb(c):a.tb(c.toString())};a.prototype.random=function(a,c,b){void 0===b?a.C(Math.random()*c):a.C(Math.random()*(b-c)+c)};a.prototype.sqrt=function(a,c){a.C(Math.sqrt(c))};a.prototype.abs=function(a,c){a.C(Math.abs(c))};a.prototype.round=function(a,c){a.ea(Math.round(c))};a.prototype.floor=function(a,c){a.ea(Math.floor(c))};a.prototype.ceil=function(a,c){a.ea(Math.ceil(c))};a.prototype.sin=function(a,c){a.C(Math.sin(U(c)))};a.prototype.cos=function(a,c){a.C(Math.cos(U(c)))};a.prototype.tan=
function(a,c){a.C(Math.tan(U(c)))};a.prototype.asin=function(a,c){a.C(Ja(Math.asin(c)))};a.prototype.acos=function(a,c){a.C(Ja(Math.acos(c)))};a.prototype.atan=function(a,c){a.C(Ja(Math.atan(c)))};a.prototype.exp=function(a,c){a.C(Math.exp(c))};a.prototype.log10=function(a,c){a.C(Math.log(c)/Math.LN10)};a.prototype.max=function(a){var c=arguments[1];"number"!==typeof c&&(c=0);var b,e,g;b=2;for(e=arguments.length;b<e;b++)g=arguments[b],"number"===typeof g&&c<g&&(c=g);a.C(c)};a.prototype.min=function(a){var c=
arguments[1];"number"!==typeof c&&(c=0);var b,e,g;b=2;for(e=arguments.length;b<e;b++)g=arguments[b],"number"===typeof g&&c>g&&(c=g);a.C(c)};a.prototype.Od=function(a){a.C(this.b.Od)};a.prototype.ug=function(a){a.C(this.b.ug)};a.prototype.time=function(a){a.C(this.b.ic.aa)};a.prototype.Ac=function(a){a.ea(this.b.Ac)};a.prototype.tj=function(a){a.ea(this.b.tj)};a.prototype.cl=function(a){a.ea(this.b.cl)};a.prototype.k=function(a,c,b,e,g){a.C(Ja(Pa(c,b,e,g)))};a.prototype.Uv=function(a){a.C(this.b.Ba.scrollX)};
a.prototype.Vv=function(a){a.C(this.b.Ba.scrollY)};a.prototype.find=function(a,c,b){F(c)&&F(b)?a.ea(c.search(new RegExp(fb(b),"i"))):a.ea(-1)};a.prototype.left=function(a,c,b){a.tb(F(c)?c.substr(0,b):"")};a.prototype.right=function(a,c,b){a.tb(F(c)?c.substr(c.length-b):"")};a.prototype.replace=function(a,c,b,e){F(c)&&F(b)&&F(e)?a.tb(c.replace(new RegExp(fb(b),"gi"),e)):a.tb(F(c)?c:"")};a.prototype.trim=function(a,c){a.tb(F(c)?c.trim():"")};a.prototype.io=function(a){var c=R(Math.random()*(arguments.length-
1));a.Qm(arguments[c+1])};a.prototype.Mv=function(a,c,b,e){a.ea(wa(c,b,e))};a.prototype.Cv=function(a){a.tb(this.b.pw)};a.prototype.Nk=function(a){a.C(this.b.Nk/1E3)};a.prototype.nj=function(a){a.C(this.b.nj)};a.prototype.pv=function(a){a.ea(this.b.Ya)};a.prototype.ov=function(a){a.ea(this.b.Xa)};e.F=new a;e.Nv=function(){var a,c,b,e,g,p,n=this.b.fb();a=0;for(b=this.cc.length;a<b;a++){e=this.cc[a];if(-1===e.time){if(!e.Sm)continue}else if(e.time>this.b.ic.aa)continue;n.eb=e.Kf;n.Rb=e.Rb;n.Ta=0;for(c in e.Pb)e.Pb.hasOwnProperty(c)&&
(g=this.b.B[parseInt(c,10)].K(),p=e.Pb[c],g.T=p.Nj,Fa(g.d,p.Vd),g=p,g.Vd.length=0,u.push(g));e.Kf.Lv();this.b.Mk(e.ta);e.Tk=!0}c=a=0;for(b=this.cc.length;a<b;a++)e=this.cc[a],this.cc[c]=e,e.Tk?($a(e.Pb),e.ta.length=0,t.push(e)):c++;this.cc.length=c}})();
(function(){pb=function(g,a){var e=g[1],s=g[3],c=g[4],t=g[5],u=g[6],f=g[7],l=g[8];a.j||(a.j={});a.u||(a.u={});a.F||(a.F={});var b=a.j,h=a.u,r=a.F;s&&(b.un=function(a,b){return dc(this.x,a,b)},b.ir=function(a,b){return dc(this.y,a,b)},b.xw=function(){var a=this.n;this.Aa();var b=this.Ea;return!(b.right<a.La||b.bottom<a.Ma||b.left>a.bb||b.top>a.ab)},b.yw=function(){this.Aa();var a=this.Ea,b=this.b.Ba;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},b.Iw=function(a,b,c){var f=this.K(),e=
f.Db();if(!e.length)return!1;var g=e[0],d=g,l=V(g.x,g.y,b,c),k,h,n;k=1;for(h=e.length;k<h;k++)if(g=e[k],n=V(g.x,g.y,b,c),0===a&&n<l||1===a&&n>l)l=n,d=g;f.lg(d);return!0},h.Ln=function(a){this.x!==a&&(this.x=a,this.H())},h.us=function(a){this.y!==a&&(this.y=a,this.H())},h.os=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.H()},h.Vw=function(a,b){var c=a.lu(this);if(c){var f;c.Pg?(f=c.Pg(b,!0),c=c.Pg(b,!1)):(f=c.x,c=c.y);if(this.x!==f||this.y!==c)this.x=f,this.y=c,this.H()}},h.Cw=function(a){0!==
a&&(this.x+=Math.cos(this.k)*a,this.y+=Math.sin(this.k)*a,this.H())},h.Bw=function(a,b){0!==b&&(this.x+=Math.cos(U(a))*b,this.y+=Math.sin(U(a))*b,this.H())},r.ai=function(a){a.C(this.x)},r.yk=function(a){a.C(this.y)},r.Od=function(a){a.C(this.b.Pf(this))});c&&(b.vw=function(a,b){return dc(this.width,a,b)},b.sw=function(a,b){return dc(this.height,a,b)},h.ts=function(a){this.width!==a&&(this.width=a,this.H())},h.Tw=function(a){this.height!==a&&(this.height=a,this.H())},h.xk=function(a,b){if(this.width!==
a||this.height!==b)this.width=a,this.height=b,this.H()},r.Ds=function(a){a.C(this.width)},r.nr=function(a){a.C(this.height)},r.rn=function(a){this.Aa();a.C(this.Ea.left)},r.$q=function(a){this.Aa();a.C(this.Ea.top)},r.sn=function(a){this.Aa();a.C(this.Ea.right)},r.Zq=function(a){this.Aa();a.C(this.Ea.bottom)});t&&(b.Vq=function(a,b){return Qa(this.k,U(b))<=U(a)},b.qr=function(a){return Sa(this.k,U(a))},b.wn=function(a,b){var c=Oa(a),f=Oa(b),e=Ma(this.k);return Sa(f,c)?Sa(e,c)&&!Sa(e,f):!(!Sa(e,c)&&
Sa(e,f))},h.ds=function(a){a=U(La(a));isNaN(a)||this.k===a||(this.k=a,this.H())},h.Mw=function(a){0===a||isNaN(a)||(this.k+=U(a),this.k=Ma(this.k),this.H())},h.Nw=function(a){0===a||isNaN(a)||(this.k-=U(a),this.k=Ma(this.k),this.H())},h.Ow=function(a,b){var c=Ra(this.k,U(b),U(a));isNaN(c)||this.k===c||(this.k=c,this.H())},h.Pw=function(a,b,c){a=Ra(this.k,Math.atan2(c-this.y,b-this.x),U(a));isNaN(a)||this.k===a||(this.k=a,this.H())},h.Ww=function(a,b){var c=Math.atan2(b-this.y,a-this.x);isNaN(c)||
this.k===c||(this.k=c,this.H())},r.rw=function(a){a.C(Na(this.k))});e||(b.qk=function(a,b,c){return dc(this.gb[a],b,c)},b.pr=function(a){return this.gb[a]},b.Jw=function(a,b){var c=this.K(),f=c.Db();if(!f.length)return!1;var e=f[0],g=e,d=e.gb[b],l,k,h;l=1;for(k=f.length;l<k;l++)if(e=f[l],h=e.gb[b],0===a&&h<d||1===a&&h>d)d=h,g=e;c.lg(g);return!0},b.Hw=function(a){var b,c,f,e,g;if(this.b.Of().Si){g=this.K();if(g.T)for(g.T=!1,g.d.length=0,g.ca.length=0,f=this.d,b=0,c=f.length;b<c;b++)e=f[b],e.uid===
a?g.ca.push(e):g.d.push(e);else{f=b=0;for(c=g.d.length;b<c;b++)e=g.d[b],g.d[f]=e,e.uid===a?g.ca.push(e):f++;g.d.length=f}this.fc();return!!g.d.length}e=this.b.Rg(a);if(!e)return!1;g=this.K();if(!g.T&&-1===g.d.indexOf(e))return!1;if(this.N)for(a=e.type.Ga,b=0,c=a.length;b<c;b++){if(a[b]===this)return g.lg(e),this.fc(),!0}else if(e.type===this)return g.lg(e),this.fc(),!0;return!1},b.Cf=function(){return!0},b.Kr=function(){return!0},h.wk=function(a,b){var c=this.gb;ja(c[a])?c[a]=ja(b)?b:parseFloat(b):
F(c[a])&&(c[a]=F(b)?b:b.toString())},h.Sq=function(a,b){var c=this.gb;ja(c[a])?c[a]=ja(b)?c[a]+b:c[a]+parseFloat(b):F(c[a])&&(c[a]=F(b)?c[a]+b:c[a]+b.toString())},h.ys=function(a,b){var c=this.gb;ja(c[a])&&(c[a]=ja(b)?c[a]-b:c[a]-parseFloat(b))},h.Qw=function(a,b){this.gb[a]=b?1:0},h.Xw=function(a){this.gb[a]=1-this.gb[a]},h.rk=function(){this.b.Fd(this)},h.Cr||(h.Cr=function(a){var b,c;try{b=JSON.parse(a)}catch(f){return}this.b.jj(this,b,!0);this.gd&&this.gd();if(this.V)for(a=0,b=this.V.length;a<
b;++a)c=this.V[a],c.gd&&c.gd()}),r.jr=function(a){var b=a.gg.d.length,c,f,e;c=0;for(f=this.b.Vc.length;c<f;c++)e=this.b.Vc[c],a.gg.N?0<=e.type.Ga.indexOf(a.gg)&&b++:e.type===a.gg&&b++;a.ea(b)},r.Lw=function(a){a.ea(a.gg.K().Db().length)},r.Yw=function(a){a.ea(this.uid)},r.or=function(a){a.ea(this.Tg())},r.Yq||(r.Yq=function(a){a.tb(JSON.stringify(this.b.Nm(this,!0)))}));u&&(b.zw=function(){return this.visible},h.Kn=function(a){!a!==!this.visible&&(this.visible=a,this.b.ga=!0)},b.uw=function(a,b){return dc(lb(100*
this.opacity),a,b)},h.Uw=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ga=!0)},r.Opacity=function(a){a.C(lb(100*this.opacity))});f&&(b.ww=function(a){return a?this.n===a:!1},b.Kw=function(a){var b=this.K(),c=b.Db();if(!c.length)return!1;var f=c[0],e=f,g,d;g=1;for(d=c.length;g<d;g++)if(f=c[g],0===a){if(f.n.index>e.n.index||f.n.index===e.n.index&&f.nd()>e.nd())e=f}else if(f.n.index<e.n.index||f.n.index===e.n.index&&f.nd()<e.nd())e=f;b.lg(e);return!0},h.Ew=function(){var a=
this.n,b=a.d;b.length&&b[b.length-1]===this||(a.mg(this,!1),a.Dg(this,!1),this.b.ga=!0)},h.Dr=function(){var a=this.n,b=a.d;b.length&&b[0]===this||(a.mg(this,!1),a.zv(this),this.b.ga=!0)},h.Dw=function(a){a&&a!=this.n&&(this.n.mg(this,!0),this.n=a,a.Dg(this,!0),this.b.ga=!0)},h.Gs=function(a,b){var c=0===a;if(b){var f=b.kl(this);f&&f.uid!==this.uid&&(this.n.index!==f.n.index&&(this.n.mg(this,!0),this.n=f.n,f.n.Dg(this,!0)),this.n.gv(this,f,c),this.b.ga=!0)}},r.Aw=function(a){a.ea(this.n.Gp)},r.Br=
function(a){a.tb(this.n.name)},r.Zw=function(a){a.ea(this.nd())});l&&(h.Rw=function(a,b){if(this.b.D){var c=this.type.jl(b);if(!(0>c)){var f=1===a;this.je[c]!==f&&(this.je[c]=f,this.ge(),this.b.ga=!0)}}},h.Sw=function(a,b,c){if(this.b.D){var f=this.type.jl(a);0>f||(a=this.type.S[f],f=this.Ia[f],b=Math.floor(b),0>b||b>=f.length||(1===this.b.D.pu(a.ub,b)&&(c/=100),f[b]!==c&&(f[b]=c,a.sc&&(this.b.ga=!0))))}})};Jb=function(){this.Ik=this.Ek=!0;this.type.bi=!0;this.b.ga=!0;var g,a,e=this.Fk;g=0;for(a=
e.length;g<a;++g)e[g](this);this.n.ed&&this.Aa()};Kb=function(g){g&&this.Fk.push(g)};Mb=function(){if(this.Ek){var g=this.Ea,a=this.Kb;g.set(this.x,this.y,this.x+this.width,this.y+this.height);g.offset(-this.Ub*this.width,-this.Vb*this.height);this.k?(g.offset(-this.x,-this.y),a.oq(g,this.k),a.offset(this.x,this.y),a.Zn(g)):a.Lh(g);g.normalize();this.Ek=!1;this.lw()}};var g=new ua(0,0,0,0);Nb=function(){if(this.n.ed){var n=this.n.oc,a=this.Ea;g.set(n.qc(a.left),n.rc(a.top),n.qc(a.right),n.rc(a.bottom));
this.$b.Bi(g)||(this.$b.right<this.$b.left?n.update(this,null,g):n.update(this,this.$b,g),this.$b.oi(g),this.n.Zd=!0)}};Ob=function(){if(this.Ik&&this.Id){this.Aa();var n=this.type.mi,a=this.Ea;g.set(n.qc(a.left),n.rc(a.top),n.qc(a.right),n.rc(a.bottom));this.qe.Bi(g)||(this.qe.right<this.qe.left?n.update(this,null,g):n.update(this,this.qe,g),this.qe.oi(g),this.Ik=!1)}};Lb=function(g,a){return this.Ea.Lb(g,a)&&this.Kb.Lb(g,a)?this.na&&!this.na.Vf()?(this.na.Hf(this.width,this.height,this.k),this.na.Lb(g-
this.x,a-this.y)):!0:!1};Fb=function(){this.type.lk();return this.ff};Pb=function(){this.n.jn();return this.fd};Qb=function(){this.ka.length=0;var g,a;g=0;for(a=this.je.length;g<a;g++)this.je[g]&&this.ka.push(this.type.S[g]);this.Pq=!!this.ka.length};Gb=function(){return"Inst"+this.cq};sb=function(g){if(g&&g.Mb&&g.type!=this){var a,e,s;a=0;for(e=g.siblings.length;a<e;a++)if(s=g.siblings[a],s.type==this)return s}g=this.K().Db();return g.length?g[0]:null};tb=function(g){var a=this.K().Db();return a.length?
a[g.Tg()%a.length]:null};rb=function(){if(this.sg&&!this.N){var g,a;g=0;for(a=this.d.length;g<a;g++)this.d[g].ff=g;var e=g,s=this.b.Vc;g=0;for(a=s.length;g<a;++g)s[g].type===this&&(s[g].ff=e++);this.sg=!1}};Db=function(g){if(g<this.d.length)return this.d[g];g-=this.d.length;var a=this.b.Vc,e,s;e=0;for(s=a.length;e<s;++e)if(a[e].type===this){if(0===g)return a[e];--g}return null};ub=function(){return this.Pe[this.Nd]};wb=function(){this.Nd++;this.Nd===this.Pe.length?this.Pe.push(new qb(this)):this.Pe[this.Nd].T=
!0};xb=function(){this.Nd++;this.Nd===this.Pe.length&&this.Pe.push(new qb(this));var g=this.Pe[this.Nd],a=this.Pe[this.Nd-1];a.T?g.T=!0:(g.T=!1,Fa(g.d,a.d),Fa(g.ca,a.ca))};yb=function(){this.Nd--};zb=function(g){var a,e,s,c,t,u=0;if(!this.N)for(a=0,e=this.Ga.length;a<e;a++)for(t=this.Ga[a],s=0,c=t.Sa.length;s<c;s++){if(g===t.Sa[s].name)return this.M.lastBehIndex=u,t.Sa[s];u++}a=0;for(e=this.Sa.length;a<e;a++){if(g===this.Sa[a].name)return this.M.lastBehIndex=u,this.Sa[a];u++}return null};Ab=function(g){return this.Mi(g)?
this.M.lastBehIndex:-1};Bb=function(g){var a,e;a=0;for(e=this.S.length;a<e;a++)if(this.S[a].name===g)return a;return-1};Cb=function(){if(this.Mb&&!this.N){var g,a,e,s,c,t,u;this.lk();t=this.K();var f=t.T,l=(g=this.b.fb())&&g.eb&&g.eb.Pc;g=0;for(a=this.gc.length;g<a;g++)if(c=this.gc[g],c!==this&&(c.lk(),u=c.K(),u.T=f,!f)){u.d.length=t.d.length;e=0;for(s=t.d.length;e<s;e++)u.d[e]=c.Do(t.d[e].ff);if(l)for(u.ca.length=t.ca.length,e=0,s=t.ca.length;e<s;e++)u.ca[e]=c.Do(t.ca[e].ff)}}};Eb=function(){return"Type"+
this.ba};dc=function(g,a,e){if("undefined"===typeof g||"undefined"===typeof e)return!1;switch(a){case 0:return g===e;case 1:return g!==e;case 2:return g<e;case 3:return g<=e;case 4:return g>e;case 5:return g>=e;default:return!1}}})();var lc={};function pc(g){this.b=g}
(function(){function g(a){a=Math.pow(10,a/20);0>a&&(a=0);1<a&&(a=1);return a}function n(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function a(a){a=a.toLowerCase();return W.hasOwnProperty(a)&&W[a].length?W[a][0].vc():D.destination}function e(){return D.createGain?D.createGain():D.createGainNode()}function s(a){return D.createDelay?D.createDelay(a):D.createDelayNode(a)}function c(a){a.start?a.start(0):a.noteOn(0)}function t(a,b,d){a.start?a.start(0,b):a.noteGrainOn(0,b,d-b)}function u(a){try{a.stop?
a.stop(0):a.noteOff(0)}catch(b){}}function f(a,b,d,c,f,k){this.type="filter";this.hb=[a,b,d,c,f,k];this.da=e();this.R=e();this.R.gain.value=k;this.L=e();this.L.gain.value=1-k;this.Ua=D.createBiquadFilter();this.Ua.type="number"===typeof this.Ua.type?a:Bc[a];this.Ua.frequency.value=b;this.Ua.detune&&(this.Ua.detune.value=d);this.Ua.Q.value=c;this.Ua.gain.value=f;this.da.connect(this.Ua);this.da.connect(this.L);this.Ua.connect(this.R)}function l(a,b,d){this.type="delay";this.hb=[a,b,d];this.da=e();
this.R=e();this.R.gain.value=d;this.L=e();this.L.gain.value=1-d;this.vh=e();this.Gc=s(a);this.Gc.delayTime.value=a;this.wi=e();this.wi.gain.value=b;this.da.connect(this.vh);this.da.connect(this.L);this.vh.connect(this.R);this.vh.connect(this.Gc);this.Gc.connect(this.wi);this.wi.connect(this.vh)}function b(a,b,d,c){this.type="convolve";this.hb=[b,d,c];this.da=e();this.R=e();this.R.gain.value=d;this.L=e();this.L.gain.value=1-d;this.We=D.createConvolver();a&&(this.We.normalize=b,this.We.buffer=a);this.da.connect(this.We);
this.da.connect(this.L);this.We.connect(this.R)}function h(a,b,d,f,k){this.type="flanger";this.hb=[a,b,d,f,k];this.da=e();this.L=e();this.L.gain.value=1-k/2;this.R=e();this.R.gain.value=k/2;this.Fi=e();this.Fi.gain.value=f;this.Gc=s(a+b);this.Gc.delayTime.value=a;this.nb=D.createOscillator();this.nb.frequency.value=d;this.mc=e();this.mc.gain.value=b;this.da.connect(this.Gc);this.da.connect(this.L);this.Gc.connect(this.R);this.Gc.connect(this.Fi);this.Fi.connect(this.Gc);this.nb.connect(this.mc);this.mc.connect(this.Gc.delayTime);
c(this.nb)}function r(a,b,d,f,k,g){this.type="phaser";this.hb=[a,b,d,f,k,g];this.da=e();this.L=e();this.L.gain.value=1-g/2;this.R=e();this.R.gain.value=g/2;this.Ua=D.createBiquadFilter();this.Ua.type="number"===typeof this.Ua.type?7:"allpass";this.Ua.frequency.value=a;this.Ua.detune&&(this.Ua.detune.value=b);this.Ua.Q.value=d;this.nb=D.createOscillator();this.nb.frequency.value=k;this.mc=e();this.mc.gain.value=f;this.da.connect(this.Ua);this.da.connect(this.L);this.Ua.connect(this.R);this.nb.connect(this.mc);
this.mc.connect(this.Ua.frequency);c(this.nb)}function p(a){this.type="gain";this.hb=[a];this.fa=e();this.fa.gain.value=a}function w(a,b){this.type="tremolo";this.hb=[a,b];this.fa=e();this.fa.gain.value=1-b/2;this.nb=D.createOscillator();this.nb.frequency.value=a;this.mc=e();this.mc.gain.value=b/2;this.nb.connect(this.mc);this.mc.connect(this.fa.gain);c(this.nb)}function A(a,b){this.type="ringmod";this.hb=[a,b];this.da=e();this.R=e();this.R.gain.value=b;this.L=e();this.L.gain.value=1-b;this.Ih=e();
this.Ih.gain.value=0;this.nb=D.createOscillator();this.nb.frequency.value=a;this.nb.connect(this.Ih.gain);c(this.nb);this.da.connect(this.Ih);this.da.connect(this.L);this.Ih.connect(this.R)}function m(a,b,d,c,f){this.type="distortion";this.hb=[a,b,d,c,f];this.da=e();this.Cj=e();this.Bj=e();this.Wv(d,Math.pow(10,c/20));this.R=e();this.R.gain.value=f;this.L=e();this.L.gain.value=1-f;this.pk=D.createWaveShaper();this.ti=new Float32Array(65536);this.cu(a,b);this.pk.ti=this.ti;this.da.connect(this.Cj);
this.da.connect(this.L);this.Cj.connect(this.pk);this.pk.connect(this.Bj);this.Bj.connect(this.R)}function y(a,b,d,c,f){this.type="compressor";this.hb=[a,b,d,c,f];this.fa=D.createDynamicsCompressor();try{this.fa.threshold.value=a,this.fa.knee.value=b,this.fa.ratio.value=d,this.fa.attack.value=c,this.fa.release.value=f}catch(e){}}function G(a,b){this.type="analyser";this.hb=[a,b];this.fa=D.createAnalyser();this.fa.fftSize=a;this.fa.smoothingTimeConstant=b;this.au=new Float32Array(this.fa.frequencyBinCount);
this.rq=new Uint8Array(a);this.Ah=0}function d(){this.O=null;this.mj=0;this.Qe=[];this.cm=this.aj=this.$i=0}function q(a,b){this.src=a;this.Z=T;this.Xc=b;this.Tn=!1;var d=this;this.$l=this.vm=null;this.kg=[];this.Oj=0;this.on=this.$k=this.vq=this.wj=!1;1===T&&b&&(this.Z=0,this.vm=e());this.Ue=this.qa=null;var c;switch(this.Z){case 0:this.qa=new Audio;this.qa.addEventListener("canplaythrough",function(){d.on=!0});1===T&&D.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.vq=!0,this.qa.addEventListener("canplay",
function(){d.$l||(d.$l=D.createMediaElementSource(d.qa),d.$l.connect(d.vm))}));this.qa.autoplay=!1;this.qa.nx="auto";this.qa.src=a;break;case 1:c=new XMLHttpRequest;c.open("GET",a,!0);c.responseType="arraybuffer";c.onload=function(){d.Ue=c.response;d.$s()};c.onerror=function(){d.$k=!0};c.send();break;case 2:this.qa=!0;break;case 3:this.qa=!0}}function k(b,d){var c=this;this.tag=d;this.wb=this.md=!0;this.src=b.src;this.buffer=b;this.Z=T;this.Xc=b.Xc;this.playbackRate=1;this.xm=!0;this.Mc=this.$d=!1;
this.ac=0;this.fh=this.Xf=this.qd=!1;this.volume=1;this.lf=1===H&&!this.Xc||2===H;this.eg=1;this.startTime=this.lf?P.ic.aa:P.Ed.aa;this.Pa=this.Va=null;this.td=!1;this.Oa=null;this.Tp=this.Sp=this.Rp=this.Qp=this.Vp=this.Up=0;this.p=null;var f=!1;1!==this.Z||0!==this.buffer.Z||this.buffer.vq||(this.Z=0);switch(this.Z){case 0:this.Xc?(this.p=b.qa,f=!b.Tn,b.Tn=!0):(this.p=new Audio,this.p.autoplay=!1,this.p.src=b.qa.src,f=!0);f&&this.p.addEventListener("ended",function(){S=c.tag;c.wb=!0;P.trigger(pc.prototype.j.sk,
ga)});break;case 1:this.Va=e();this.Va.connect(a(d));1===this.buffer.Z?b.qa&&(this.p=D.createBufferSource(),this.p.buffer=b.qa,this.p.connect(this.Va)):(this.p=this.buffer.qa,this.buffer.vm.connect(this.Va));break;case 2:this.p=new window.Media(O+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.xm=!0,c.wb=!0,S=c.tag,P.trigger(pc.prototype.j.sk,ga))});break;case 3:this.p=!0}}function v(a){Ba.length=0;if(a.length){var b,d,c;b=0;for(d=C.length;b<d;b++)c=C[b],mb(a,c.tag)&&Ba.push(c)}else I&&
!I.ef()&&(Ba.length=1,Ba[0]=I)}function z(a,b){W.hasOwnProperty(a)?W[a].push(b):W[a]=[b];var d,c,f,e,k=D.destination;if(W.hasOwnProperty(a)&&(f=W[a],f.length))for(k=f[0].vc(),d=0,c=f.length;d<c;d++)e=f[d],d+1===c?e.Dc(D.destination):e.Dc(f[d+1].vc());v(a);d=0;for(c=Ba.length;d<c;d++)Ba[d].Hv(k);Ka&&vb===a&&(Ka.disconnect(),Ka.connect(k))}function x(){}function Q(){}var B=pc.prototype;B.ua=function(a){this.ya=a;this.b=a.b};B.ua.prototype.U=function(){};var P=null,ga=null,S="",O="",T=0,D=null,L=[],
C=[],I=null,K=!1,H=0,N=!1,J=1,ha=0,M=0,qa=1,ia=1,ya=10,za=1E4,yc=1,Ka=null,vb="",Ta=!1,Ua=[],W={},Bc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");f.prototype.Dc=function(a){this.R.disconnect();this.R.connect(a);this.L.disconnect();this.L.connect(a)};f.prototype.remove=function(){this.da.disconnect();this.Ua.disconnect();this.R.disconnect();this.L.disconnect()};f.prototype.vc=function(){return this.da};l.prototype.Dc=function(a){this.R.disconnect();this.R.connect(a);
this.L.disconnect();this.L.connect(a)};l.prototype.remove=function(){this.da.disconnect();this.vh.disconnect();this.Gc.disconnect();this.wi.disconnect();this.R.disconnect();this.L.disconnect()};l.prototype.vc=function(){return this.da};b.prototype.Dc=function(a){this.R.disconnect();this.R.connect(a);this.L.disconnect();this.L.connect(a)};b.prototype.remove=function(){this.da.disconnect();this.We.disconnect();this.R.disconnect();this.L.disconnect()};b.prototype.vc=function(){return this.da};h.prototype.Dc=
function(a){this.L.disconnect();this.L.connect(a);this.R.disconnect();this.R.connect(a)};h.prototype.remove=function(){this.da.disconnect();this.Gc.disconnect();this.nb.disconnect();this.mc.disconnect();this.L.disconnect();this.R.disconnect();this.Fi.disconnect()};h.prototype.vc=function(){return this.da};r.prototype.Dc=function(a){this.L.disconnect();this.L.connect(a);this.R.disconnect();this.R.connect(a)};r.prototype.remove=function(){this.da.disconnect();this.Ua.disconnect();this.nb.disconnect();
this.mc.disconnect();this.L.disconnect();this.R.disconnect()};r.prototype.vc=function(){return this.da};p.prototype.Dc=function(a){this.fa.disconnect();this.fa.connect(a)};p.prototype.remove=function(){this.fa.disconnect()};p.prototype.vc=function(){return this.fa};w.prototype.Dc=function(a){this.fa.disconnect();this.fa.connect(a)};w.prototype.remove=function(){this.nb.disconnect();this.mc.disconnect();this.fa.disconnect()};w.prototype.vc=function(){return this.fa};A.prototype.Dc=function(a){this.R.disconnect();
this.R.connect(a);this.L.disconnect();this.L.connect(a)};A.prototype.remove=function(){this.nb.disconnect();this.Ih.disconnect();this.da.disconnect();this.R.disconnect();this.L.disconnect()};A.prototype.vc=function(){return this.da};m.prototype.Wv=function(a,b){.01>a&&(a=.01);this.Cj.gain.value=a;this.Bj.gain.value=Math.pow(1/a,.6)*b};m.prototype.shape=function(a,b,d){var c=1.05*d*b-b;d=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+c*(1-Math.exp(-(1/c)*(a-b)));return b*d};m.prototype.cu=function(a,b){for(var d=Math.pow(10,
a/20),c=Math.pow(10,b/20),f=0,e=0;32768>e;++e)f=e/32768,f=this.shape(f,d,c),this.ti[32768+e]=f,this.ti[32768-e-1]=-f};m.prototype.Dc=function(a){this.R.disconnect();this.R.connect(a);this.L.disconnect();this.L.connect(a)};m.prototype.remove=function(){this.da.disconnect();this.Cj.disconnect();this.pk.disconnect();this.Bj.disconnect();this.R.disconnect();this.L.disconnect()};m.prototype.vc=function(){return this.da};y.prototype.Dc=function(a){this.fa.disconnect();this.fa.connect(a)};y.prototype.remove=
function(){this.fa.disconnect()};y.prototype.vc=function(){return this.fa};G.prototype.Ra=function(){this.fa.getFloatFrequencyData(this.au);this.fa.getByteTimeDomainData(this.rq);for(var a=this.fa.fftSize,b=0,d=this.Ah=0,c=0;b<a;b++)c=(this.rq[b]-128)/128,0>c&&(c=-c),this.Ah<c&&(this.Ah=c),d+=c*c;this.Ah=n(this.Ah);n(Math.sqrt(d/a))};G.prototype.Dc=function(a){this.fa.disconnect();this.fa.connect(a)};G.prototype.remove=function(){this.fa.disconnect()};G.prototype.vc=function(){return this.fa};d.prototype.Jh=
function(a){if(this.O=a)this.$i=this.O.x,this.aj=this.O.y;this.Qe.length=0};d.prototype.Qi=function(){return!!this.O};d.prototype.Ra=function(a){this.O&&0!==a&&(this.cm=Pa(this.$i,this.aj,this.O.x,this.O.y),a=V(this.$i,this.aj,this.O.x,this.O.y)/a,4>this.Qe.length||this.Qe.shift(),this.Qe.push(a),this.$i=this.O.x,this.aj=this.O.y)};d.prototype.Ho=function(){if(!this.Qe.length)return 0;var a,b,d=0;a=0;for(b=this.Qe.length;a<b;a++)d+=this.Qe[a];return d/this.Qe.length};d.prototype.nl=function(){return Math.cos(this.cm)*
this.Ho()};d.prototype.ol=function(){return Math.sin(this.cm)*this.Ho()};var zc=!1;q.prototype.$s=function(){if(!this.qa&&this.Ue){var a=this;if(D.decodeAudioData)D.decodeAudioData(this.Ue,function(b){a.qa=b;a.Ue=null;var d,c,f;if(fa(a.yj)||N)fa(a.ni)||(d=a.ni.We,d.normalize=a.Fp,d.buffer=b);else if(a.kg.length){d=0;for(c=a.kg.length;d<c;d++){b=a.kg[d];f=new k(a,b.Aq);f.Qj(!0);if("undefined"!==typeof b.Hp&&(b.O=P.Rg(b.Hp),!b.O))continue;if(b.O){var e=Xa(b.O.x,b.O.y,-b.O.n.Wa(),ha,M,!0),g=Xa(b.O.x,
b.O.y,-b.O.n.Wa(),ha,M,!1);f.Pm(e,g,Ja(b.O.k-b.O.n.Wa()),b.tl,b.gm,b.jm);f.Jh(b.O)}else f.Pm(b.x,b.y,b.Hs,b.tl,b.gm,b.jm);f.play(a.Xl,a.nn,a.Oj);a.wj&&f.pause();C.push(f)}a.kg.length=0}else f=new k(a,a.yj),f.play(a.Xl,a.nn,a.Oj),a.wj&&f.pause(),C.push(f)},function(){a.$k=!0});else if(this.qa=D.createBuffer(this.Ue,!1),this.Ue=null,fa(this.yj)||N)fa(this.ni)||(b=this.ni.We,b.normalize=this.Fp,b.buffer=this.qa);else{var b=new k(this,this.yj);b.play(this.Xl,this.nn,this.Oj);this.wj&&b.pause();C.push(b)}}};
q.prototype.So=function(){switch(this.Z){case 0:var a=4<=this.qa.readyState;a&&(this.on=!0);return a||this.on;case 1:return!!this.Ue||!!this.qa;case 2:return!0;case 3:return!0}return!1};q.prototype.Tu=function(){switch(this.Z){case 0:return this.So();case 1:return!!this.qa;case 2:return!0;case 3:return!0}return!1};q.prototype.Ju=function(){switch(this.Z){case 0:return!!this.qa.error;case 1:return this.$k}return!1};k.prototype.ef=function(){var a;switch(this.Z){case 0:return this.p.ended;case 1:if(1===
this.buffer.Z){if(!this.md&&!this.wb&&this.p.loop||this.Mc)return!1;a=this.lf?P.ic.aa:P.Ed.aa;return a-this.startTime>this.buffer.qa.duration}return this.p.ended;case 2:return this.xm;case 3:!0}return!0};k.prototype.Us=function(){return this.md||this.wb?!0:this.ef()};k.prototype.Qj=function(b){1===T&&(!this.td&&b?this.Va&&(this.Pa||(this.Pa=D.createPanner(),this.Pa.panningModel="number"===typeof this.Pa.panningModel?qa:["equalpower","HRTF","soundfield"][qa],this.Pa.distanceModel="number"===typeof this.Pa.distanceModel?
ia:["linear","inverse","exponential"][ia],this.Pa.refDistance=ya,this.Pa.maxDistance=za,this.Pa.rolloffFactor=yc),this.Va.disconnect(),this.Va.connect(this.Pa),this.Pa.connect(a(this.tag)),this.td=!0):this.td&&!b&&this.Va&&(this.Pa.disconnect(),this.Va.disconnect(),this.Va.connect(a(this.tag)),this.td=!1))};k.prototype.Pm=function(a,b,d,c,f,e){this.td&&1===T&&(this.Pa.setPosition(a,b,0),this.Pa.setOrientation(Math.cos(U(d)),Math.sin(U(d)),0),this.Pa.coneInnerAngle=c,this.Pa.coneOuterAngle=f,this.Pa.coneOuterGain=
e,this.Up=a,this.Vp=b,this.Qp=d,this.Rp=c,this.Sp=f,this.Tp=e)};k.prototype.Jh=function(a){this.td&&1===T&&(this.Oa||(this.Oa=new d),this.Oa.Jh(a))};k.prototype.Ra=function(a){if(this.td&&1===T&&this.Oa&&this.Oa.Qi()&&this.hf()){this.Oa.Ra(a);a=this.Oa.O;var b=Xa(a.x,a.y,-a.n.Wa(),ha,M,!0),d=Xa(a.x,a.y,-a.n.Wa(),ha,M,!1);this.Pa.setPosition(b,d,0);b=0;"undefined"!==typeof this.Oa.O.k&&(b=a.k-a.n.Wa(),this.Pa.setOrientation(Math.cos(b),Math.sin(b),0));b=Xa(this.Oa.nl(),this.Oa.ol(),-a.n.Wa(),0,0,!0);
d=Xa(this.Oa.nl(),this.Oa.ol(),-a.n.Wa(),0,0,!1);this.Pa.setVelocity(b,d,0)}};k.prototype.play=function(a,b,d){var f=this.p;this.qd=a;this.volume=b;d=d||0;switch(this.Z){case 0:1!==f.playbackRate&&(f.playbackRate=1);f.volume!==b*J&&(f.volume=b*J);f.loop!==a&&(f.loop=a);f.muted&&(f.muted=!1);if(f.currentTime!==d)try{f.currentTime=d}catch(e){}if(this.Xc&&Ta&&!P.Na)Ua.push(this);else try{this.p.play()}catch(k){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+
"': ",k)}break;case 1:this.muted=!1;this.eg=1;if(1===this.buffer.Z)this.md||(this.p=D.createBufferSource(),this.p.buffer=this.buffer.qa,this.p.connect(this.Va)),this.p.loop=a,this.Va.gain.value=b*J,0===d?c(this.p):t(this.p,d,this.bf());else{1!==f.playbackRate&&(f.playbackRate=1);f.loop!==a&&(f.loop=a);this.Va.gain.value=b*J;if(f.currentTime!==d)try{f.currentTime=d}catch(g){}this.Xc&&Ta&&!P.Na?Ua.push(this):f.play()}break;case 2:(!this.md&&this.wb||0!==d)&&f.seekTo(d);f.play();this.xm=!1;break;case 3:P.Eb?
AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.lf?P.ic.aa:P.Ed.aa)-d;this.Mc=this.wb=this.md=!1};k.prototype.stop=function(){switch(this.Z){case 0:this.p.paused||this.p.pause();break;case 1:1===this.buffer.Z?u(this.p):this.p.paused||this.p.pause();break;case 2:this.p.stop();break;case 3:P.Eb&&AppMobi.context.stopSound(this.src)}this.wb=!0;this.Mc=!1};k.prototype.pause=function(){if(!(this.md||this.wb||this.ef()||this.Mc)){switch(this.Z){case 0:this.p.paused||
this.p.pause();break;case 1:1===this.buffer.Z?(this.ac=this.ll(),this.qd&&(this.ac%=this.bf()),u(this.p)):this.p.paused||this.p.pause();break;case 2:this.p.pause();break;case 3:P.Eb&&AppMobi.context.stopSound(this.src)}this.Mc=!0}};k.prototype.Kv=function(){if(!(this.md||this.wb||this.ef())&&this.Mc){switch(this.Z){case 0:this.p.play();break;case 1:1===this.buffer.Z?(this.p=D.createBufferSource(),this.p.buffer=this.buffer.qa,this.p.connect(this.Va),this.p.loop=this.qd,this.Va.gain.value=J*this.volume*
this.eg,this.startTime=(this.lf?P.ic.aa:P.Ed.aa)-this.ac,t(this.p,this.ac,this.bf())):this.p.play();break;case 2:this.p.play();break;case 3:P.Eb&&AppMobi.context.resumeSound(this.src)}this.Mc=!1}};k.prototype.seek=function(a){if(!(this.md||this.wb||this.ef()))switch(this.Z){case 0:try{this.p.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.Z)this.Mc?this.ac=a:(this.pause(),this.ac=a,this.Kv());else try{this.p.currentTime=a}catch(d){}break;case 3:P.Eb&&AppMobi.context.seekSound(this.src,a)}};
k.prototype.Hv=function(a){1===this.Z&&(this.td?(this.Pa.disconnect(),this.Pa.connect(a)):(this.Va.disconnect(),this.Va.connect(a)))};k.prototype.bf=function(){switch(this.Z){case 0:if("undefined"!==typeof this.p.duration)return this.p.duration;break;case 1:return this.buffer.qa.duration;case 2:return this.p.getDuration();case 3:if(P.Eb)return AppMobi.context.getDurationSound(this.src)}return 0};k.prototype.ll=function(){var a=this.bf(),b=0;switch(this.Z){case 0:"undefined"!==typeof this.p.currentTime&&
(b=this.p.currentTime);break;case 1:if(1===this.buffer.Z){if(this.Mc)return this.ac;b=(this.lf?P.ic.aa:P.Ed.aa)-this.startTime}else"undefined"!==typeof this.p.currentTime&&(b=this.p.currentTime);break;case 3:P.Eb&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.qd&&b>a&&(b=a);return b};k.prototype.hf=function(){return!this.Mc&&!this.md&&!this.wb&&!this.ef()};k.prototype.jw=function(){var a=this.volume*J;switch(this.Z){case 0:this.p.volume&&this.p.volume!==a&&(this.p.volume=a);break;case 1:this.Va.gain.value=
a*this.eg}};k.prototype.yi=function(a){switch(this.Z){case 0:this.p.muted!==!!a&&(this.p.muted=!!a);break;case 1:this.eg=a?0:1,this.Va.gain.value=J*this.volume*this.eg}};k.prototype.Xv=function(){this.Xf=!0;this.yi(this.Xf||this.fh)};k.prototype.lq=function(a){this.fh=!!a;this.yi(this.Xf||this.fh)};k.prototype.Nq=function(){var a=this.playbackRate;this.lf&&(a*=P.ug);switch(this.Z){case 0:this.p.playbackRate!==a&&(this.p.playbackRate=a);break;case 1:1===this.buffer.Z?this.p.playbackRate.value!==a&&
(this.p.playbackRate.value=a):this.p.playbackRate!==a&&(this.p.playbackRate=a)}};k.prototype.Zv=function(a){switch(this.Z){case 0:a?this.hf()?(this.p.pause(),this.$d=!0):this.$d=!1:this.$d&&this.p.play();break;case 1:a?this.hf()?(1===this.buffer.Z?(this.ac=this.ll(),this.qd&&(this.ac%=this.bf()),u(this.p)):this.p.pause(),this.$d=!0):this.$d=!1:this.$d&&(1===this.buffer.Z?(this.p=D.createBufferSource(),this.p.buffer=this.buffer.qa,this.p.connect(this.Va),this.p.loop=this.qd,this.Va.gain.value=J*this.volume*
this.eg,this.startTime=(this.lf?P.ic.aa:P.Ed.aa)-this.ac,t(this.p,this.ac,this.bf())):this.p.play());break;case 2:a?this.hf()?(this.p.pause(),this.$d=!0):this.$d=!1:this.$d&&this.p.play()}};B.ja=function(a){this.type=a;P=this.b=a.b;ga=this;this.Nb=null;this.mh=-600;!(this.b.Yi||this.b.Ti&&(this.b.ah||this.b.Ui))||this.b.bh||this.b.Ca||(Ta=!0);D=null;"undefined"!==typeof AudioContext?(T=1,D=new AudioContext):"undefined"!==typeof webkitAudioContext&&(T=1,D=new webkitAudioContext);(this.b.Yi&&1===T||
Ta)&&document.addEventListener("touchstart",function(){var a,b,d;!zc&&D&&(a=D.createBuffer(1,1,22050),b=D.createBufferSource(),b.buffer=a,b.connect(D.destination),c(b),zc=!0);if(Ta){if(!N)for(a=0,b=Ua.length;a<b;++a)d=Ua[a],d.wb||d.Mc||d.p.play();Ua.length=0}},!0);1!==T&&(this.b.Lc&&"undefined"!==typeof window.Media?T=2:this.b.Tf&&(T=3));2===T&&(O=location.href,a=O.lastIndexOf("/"),-1<a&&(O=O.substr(0,a+1)),O=O.replace("file://",""));if(this.b.To&&this.b.Vu&&"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.Fd(this);else{if(this.b.Eb)K=this.b.Ti;else try{K=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){K=!1}this.b.tg(this)}};var ra=B.ja.prototype;ra.U=function(){this.b.Gf=this;H=this.I[0];this.ae=this.I[1];this.sv=0!==this.I[2];qa=this.I[3];ia=this.I[4];this.mh=-this.I[5];ya=this.I[6];za=this.I[7];yc=this.I[8];this.Nb=new d;var b=this.b.X||this.b.width,c=this.b.W||this.b.height;1===T&&(D.listener.speedOfSound=this.I[9],D.listener.dopplerFactor=this.I[10],D.listener.setPosition(b/
2,c/2,this.mh),D.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(b,d){Ka&&Ka.disconnect();vb=d.toLowerCase();Ka=D.createMediaStreamSource(b);Ka.connect(a(vb))});this.b.Ms(function(a){ga.mv(a)});var f=this;this.b.zk(function(a){f.km(a)})};ra.km=function(a){var b,d,c;b=0;for(d=C.length;b<d;b++)c=C[b],c.Oa&&c.Oa.O===a&&(c.Oa.O=null,c.td&&c.hf()&&c.qd&&c.stop());this.Nb.O===a&&(this.Nb.O=null)};ra.Fb=function(){var a={silent:N,masterVolume:J,listenerZ:this.mh,listenerUid:this.Nb.Qi()?
this.Nb.O.uid:-1,playing:[],effects:{}},b=a.playing,d,c,f,e,k,g;d=0;for(c=C.length;d<c;d++)f=C[d],!f.hf()||3===this.ae||f.Xc&&1===this.ae||!f.Xc&&2===this.ae||(e=f.ll(),f.qd&&(e%=f.bf()),e={tag:f.tag,buffersrc:f.buffer.src,is_music:f.Xc,playbackTime:e,volume:f.volume,looping:f.qd,muted:f.Xf,playbackRate:f.playbackRate,paused:f.Mc,resume_position:f.ac},f.td&&(e.pan={},g=e.pan,f.Oa&&f.Oa.Qi()?g.objUid=f.Oa.O.uid:(g.x=f.Up,g.y=f.Vp,g.a=f.Qp),g.ia=f.Rp,g.oa=f.Sp,g.og=f.Tp),b.push(e));b=a.effects;for(k in W)if(W.hasOwnProperty(k)){f=
[];d=0;for(c=W[k].length;d<c;d++)f.push({type:W[k][d].type,params:W[k][d].hb});b[k]=f}return a};var Va=[];ra.Wb=function(a){var c=a.silent;J=a.masterVolume;this.mh=a.listenerZ;this.Nb.Jh(null);var e=a.listenerUid;-1!==e&&(this.Nb.mj=e,Va.push(this.Nb));var e=a.playing,k,g,n,v,q,t,s,u,B,x,Q;if(3!==this.ae)for(k=0,g=C.length;k<g;k++)B=C[k],B.Xc&&1===this.ae||(B.Xc||2!==this.ae)&&B.stop();for(q in W)if(W.hasOwnProperty(q))for(k=0,g=W[q].length;k<g;k++)W[q][k].remove();$a(W);for(q in a.effects)if(a.effects.hasOwnProperty(q))for(t=
a.effects[q],k=0,g=t.length;k<g;k++)switch(n=t[k].type,x=t[k].params,n){case "filter":z(q,new f(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "delay":z(q,new l(x[0],x[1],x[2]));break;case "convolve":n=x[2];B=this.Li(n,!1);B.qa?n=new b(B.qa,x[0],x[1],n):(n=new b(null,x[0],x[1],n),B.Fp=x[0],B.ni=n);z(q,n);break;case "flanger":z(q,new h(x[0],x[1],x[2],x[3],x[4]));break;case "phaser":z(q,new r(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "gain":z(q,new p(x[0]));break;case "tremolo":z(q,new w(x[0],x[1]));break;
case "ringmod":z(q,new A(x[0],x[1]));break;case "distortion":z(q,new m(x[0],x[1],x[2],x[3],x[4]));break;case "compressor":z(q,new y(x[0],x[1],x[2],x[3],x[4]));break;case "analyser":z(q,new G(x[0],x[1]))}k=0;for(g=e.length;k<g;k++)3===this.ae||(a=e[k],n=a.buffersrc,v=a.is_music,q=a.tag,t=a.playbackTime,s=a.looping,u=a.volume,Q=(x=a.pan)&&x.hasOwnProperty("objUid")?x.objUid:-1,v&&1===this.ae)||!v&&2===this.ae||((B=this.fl(n,q,v,s,u))?(B.ac=a.resume_position,B.Qj(!!x),B.play(s,u,t),B.Nq(),B.jw(),B.yi(B.Xf||
B.fh),a.paused&&B.pause(),a.muted&&B.Xv(),B.yi(B.Xf||B.fh),x&&(-1!==Q?(B.Oa=B.Oa||new d,B.Oa.mj=Q,Va.push(B.Oa)):B.Pm(x.x,x.y,x.a,x.ia,x.oa,x.og))):(B=this.Li(n,v),B.Oj=t,B.wj=a.paused,x&&(-1!==Q?B.kg.push({Hp:Q,tl:x.ia,gm:x.oa,jm:x.og,Aq:q}):B.kg.push({x:x.x,y:x.y,Hs:x.a,tl:x.ia,gm:x.oa,jm:x.og,Aq:q}))));if(c&&!N){k=0;for(g=C.length;k<g;k++)C[k].lq(!0);N=!0}else if(!c&&N){k=0;for(g=C.length;k<g;k++)C[k].lq(!1);N=!1}};ra.gd=function(){var a,b,d,c;a=0;for(b=Va.length;a<b;a++)d=Va[a],c=this.b.Rg(d.mj),
d.Jh(c),d.mj=-1,c&&(ha=c.x,M=c.y);Va.length=0};ra.mv=function(a){if(!this.sv){!a&&D&&D.resume&&D.resume();var b,d;b=0;for(d=C.length;b<d;b++)C[b].Zv(a);a&&D&&D.suspend&&D.suspend()}};ra.Ra=function(){var a=this.b.Od,b,d,c;b=0;for(d=C.length;b<d;b++)c=C[b],c.Ra(a),0===c.Z||3===c.Z||c.md||c.wb||!c.ef()||(c.wb=!0,S=c.tag,P.trigger(pc.prototype.j.sk,ga)),0!==H&&c.Nq();var f,e;for(f in W)if(W.hasOwnProperty(f))for(c=W[f],b=0,d=c.length;b<d;b++)e=c[b],e.Ra&&e.Ra();1===T&&this.Nb.Qi()&&(this.Nb.Ra(a),ha=
this.Nb.O.x,M=this.Nb.O.y,D.listener.setPosition(this.Nb.O.x,this.Nb.O.y,this.mh),D.listener.setVelocity(this.Nb.nl(),this.Nb.ol(),0))};var Wa=[];ra.Yv=function(a){var b,d,c,f,e,k=0;b=0;for(d=a.length;b<d;++b)if(c=a[b],f=c[0],c=2*c[1],(e=4<f.length&&".ogg"===f.substr(f.length-4))&&K||!e&&!K)Wa.push({filename:f,size:c,O:null}),k+=c;return k};ra.aw=function(){var a,b,d,c;a=0;for(b=Wa.length;a<b;++a)d=Wa[a],c=this.b.Gi+d.filename,d.O=this.Li(c,!1)};ra.mu=function(){var a=0,b,d,c;b=0;for(d=Wa.length;b<
d;++b)c=Wa[b],c.O.Tu()||c.O.Ju()||this.b.Ca||this.b.Ui?a+=c.size:c.O.So()&&(a+=Math.floor(c.size/2));return a};ra.Li=function(a,b){var d,c,f,e=null;d=0;for(c=L.length;d<c;d++)if(f=L[d],f.src===a){e=f;break}e||(e=new q(a,b),L.push(e));return e};ra.fl=function(a,b,d,c,f){var e,g,l;e=0;for(g=C.length;e<g;e++)if(l=C[e],l.src===a&&(l.Us()||d))return l.tag=b,l;a=this.Li(a,d);if(!a.qa)return"<preload>"!==b&&(a.yj=b,a.Xl=c,a.nn=f),null;l=new k(a,b);C.push(l);return l};var Ba=[];x.prototype.sk=function(a){return mb(S,
a)};x.prototype.yr=function(a){v(a);var b;a=0;for(b=Ba.length;a<b;a++)if(Ba[a].hf())return!0;return!1};B.j=new x;Q.prototype.Play=function(a,b,d,c){!N&&(d=g(d),I=this.fl(this.b.Gi+a[0]+(K?".ogg":".m4a"),c,a[1],0!==b,d))&&(I.Qj(!1),I.play(0!==b,d))};Q.prototype.bs=function(a,b,d,c,f){!N&&(c=g(c),I=this.fl(this.b.Gi+b.toLowerCase()+(K?".ogg":".m4a"),f,1===a,0!==d,c))&&(I.Qj(!1),I.play(0!==d,c))};Q.prototype.Nn=function(a){v(a);var b;a=0;for(b=Ba.length;a<b;a++)Ba[a].stop()};B.u=new Q;B.F=new function(){}})();
function oc(g){this.b=g}
(function(){function g(){this.name="";this.Gh=0;this.hb=[]}function n(){u++;u===t.length&&t.push(new g);return t[u]}function a(){}function e(){}function s(){}var c=oc.prototype;c.ua=function(a){this.ya=a;this.b=a.b};c.ua.prototype.U=function(){};c.ja=function(a){this.type=a;this.b=a.b};var t=[],u=-1;c.ja.prototype.U=function(){var a=this;window.c2_callFunction=function(c,b){var e,g,p,t=n();t.name=c.toLowerCase();t.Gh=0;if(b)for(t.hb.length=b.length,e=0,g=b.length;e<g;++e)p=b[e],t.hb[e]="number"===
typeof p||"string"===typeof p?p:"boolean"===typeof p?p?1:0:0;else t.hb.length=0;a.b.trigger(oc.prototype.j.$h,a,t.name);u--;return t.Gh}};a.prototype.$h=function(a){var c=0>u?null:t[u];return c?mb(a,c.name):!1};c.j=new a;e.prototype.CallFunction=function(a,c){var b=n();b.name=a.toLowerCase();b.Gh=0;Fa(b.hb,c);this.b.trigger(oc.prototype.j.$h,this,b.name);u--};c.u=new e;s.prototype.Xr=function(a,c){c=R(c);var b=0>u?null:t[u];b?0<=c&&c<b.hb.length?a.Qm(b.hb[c]):a.ea(0):a.ea(0)};s.prototype.cr=function(a,
c){var b=n();b.name=c.toLowerCase();b.Gh=0;b.hb.length=0;var e,g;e=2;for(g=arguments.length;e<g;e++)b.hb.push(arguments[e]);this.b.trigger(oc.prototype.j.$h,this,b.name);u--;a.Qm(b.Gh)};c.F=new s})();function qc(g){this.b=g}
(function(){function g(){}var n=qc.prototype;n.ua=function(a){this.ya=a;this.b=a.b};n.ua.prototype.U=function(){};n.ja=function(a){this.type=a;this.b=a.b;this.hh=Array(256);this.nk=Array(256);this.Se=0};var a=n.ja.prototype;a.U=function(){var a=this;this.b.Ca||(jQuery(document).keydown(function(c){a.lm(c)}),jQuery(document).keyup(function(c){a.mm(c)}))};var e=[32,33,34,35,36,37,38,39,40,44];a.lm=function(a){var c=!1;window!=window.top&&-1<e.indexOf(a.which)&&(a.preventDefault(),c=!0,a.stopPropagation());
if(this.hh[a.which])this.nk[a.which]&&!c&&a.preventDefault();else{this.hh[a.which]=!0;this.Se=a.which;this.b.Na=!0;this.b.trigger(qc.prototype.j.Gr,this);var g=this.b.trigger(qc.prototype.j.zn,this),n=this.b.trigger(qc.prototype.j.An,this);this.b.Na=!1;if(g||n)this.nk[a.which]=!0,c||a.preventDefault()}};a.mm=function(a){this.hh[a.which]=!1;this.Se=a.which;this.b.Na=!0;this.b.trigger(qc.prototype.j.Hr,this);var c=this.b.trigger(qc.prototype.j.Qr,this),e=this.b.trigger(qc.prototype.j.Bn,this);this.b.Na=
!1;if(c||e||this.nk[a.which])this.nk[a.which]=!0,a.preventDefault()};a.Fb=function(){return{triggerKey:this.Se}};a.Wb=function(a){this.Se=a.triggerKey};g.prototype.zn=function(a){return a===this.Se};g.prototype.Gr=function(){return!0};g.prototype.Hr=function(){return!0};g.prototype.Qr=function(a){return a===this.Se};g.prototype.sr=function(a){a=Math.floor(a);return 0>a||a>=this.hh.length?!1:this.hh[a]};g.prototype.An=function(a){return a===this.Se};g.prototype.Bn=function(a){return a===this.Se};n.j=
new g;n.u=new function(){};n.F=new function(){}})();function rc(g){this.b=g}
(function(){function g(){}function n(){}var a=rc.prototype;a.ua=function(a){this.ya=a;this.b=a.b};a.ua.prototype.U=function(){};a.ja=function(a){this.type=a;this.b=a.b;this.Gk=Array(4);this.Cq=this.ik=this.vg=this.Fe=this.Ee=0;this.ql=!1};var e=a.ja.prototype;e.U=function(){var a=this;if(!this.b.Ca){jQuery(document).mousemove(function(e){a.pm(e)});jQuery(document).mousedown(function(e){a.om(e)});jQuery(document).mouseup(function(e){a.qm(e)});jQuery(document).dblclick(function(e){a.kv(e)});var e=function(e){a.nv(e)};
document.addEventListener("mousewheel",e,!1);document.addEventListener("DOMMouseScroll",e,!1)}};var s={left:0,top:0};e.pm=function(a){var e=this.b.Ca?s:jQuery(this.b.canvas).offset();this.Ee=a.pageX-e.left;this.Fe=a.pageY-e.top};e.Bp=function(){return 0<this.b.Tb?!0:0<=this.Ee&&0<=this.Fe&&this.Ee<this.b.width&&this.Fe<this.b.height};e.om=function(a){this.Bp()&&(this.b.Rf&&!this.b.Kc&&a.preventDefault(),this.Gk[a.which]=!0,this.b.Na=!0,this.b.trigger(rc.prototype.j.Fr,this),this.vg=a.which-1,this.ik=
0,this.b.trigger(rc.prototype.j.yn,this),this.b.trigger(rc.prototype.j.uk,this),this.b.Na=!1)};e.qm=function(a){this.Gk[a.which]&&(this.b.Rf&&!this.b.Kc&&a.preventDefault(),this.b.Rf=!0,this.Gk[a.which]=!1,this.b.Na=!0,this.vg=a.which-1,this.b.trigger(rc.prototype.j.Tr,this),this.b.Na=!1)};e.kv=function(a){this.Bp()&&(a.preventDefault(),this.b.Na=!0,this.vg=a.which-1,this.ik=1,this.b.trigger(rc.prototype.j.yn,this),this.b.trigger(rc.prototype.j.uk,this),this.b.Na=!1)};e.nv=function(a){this.Cq=0>(a.wheelDelta?
a.wheelDelta:a.detail?-a.detail:0)?0:1;this.ql=!1;this.b.Na=!0;this.b.trigger(rc.prototype.j.Wr,this);this.b.Na=!1;this.ql&&a.preventDefault()};g.prototype.yn=function(a,e){return a===this.vg&&e===this.ik};g.prototype.Fr=function(){return!0};g.prototype.Tr=function(a){return a===this.vg};g.prototype.uk=function(a,e,g){return a!==this.vg||e!==this.ik?!1:this.b.Rh(g,this.Ee,this.Fe)};g.prototype.Wr=function(a){this.ql=!0;return a===this.Cq};a.j=new g;a.u=new function(){};n.prototype.ai=function(a,e){var g,
f,l,b,h;fa(e)?(g=this.b.Td(0),f=g.scale,l=g.Jb,b=g.Yb,h=g.k,g.scale=1,g.Jb=1,g.Yb=1,g.k=0,a.C(g.qb(this.Ee,this.Fe,!0)),g.scale=f,g.Jb=l,g.Yb=b,g.k=h):(g=ja(e)?this.b.Td(e):this.b.Qg(e))?a.C(g.qb(this.Ee,this.Fe,!0)):a.C(0)};n.prototype.yk=function(a,e){var g,f,l,b,h;fa(e)?(g=this.b.Td(0),f=g.scale,l=g.Jb,b=g.Zb,h=g.k,g.scale=1,g.Jb=1,g.Zb=1,g.k=0,a.C(g.qb(this.Ee,this.Fe,!1)),g.scale=f,g.Jb=l,g.Zb=b,g.k=h):(g=ja(e)?this.b.Td(e):this.b.Qg(e))?a.C(g.qb(this.Ee,this.Fe,!1)):a.C(0)};a.F=new n})();
function Y(g){this.b=g}
(function(){function g(){if(0===this.Rk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.rg?b.drawImage(this.ma,this.hg,this.ig,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.ma,0,0,this.width,this.height);this.Rk=a.toDataURL("image/png")}return this.Rk}function n(){}function a(a){a[0]=0;a[1]=0;a[2]=0;w.push(a)}function e(a,b){return a<b?""+a+","+b:""+b+","+a}function s(a,b,d,c){b=b.uid;d=d.uid;var f=e(b,d);if(a.hasOwnProperty(f))a[f][2]=
c;else{var g=w.length?w.pop():[0,0,0];g[0]=b;g[1]=d;g[2]=c;a[f]=g}}function c(b,d,c){d=e(d.uid,c.uid);b.hasOwnProperty(d)&&(a(b[d]),delete b[d])}function t(a,b,d){b=e(b.uid,d.uid);if(a.hasOwnProperty(b))return A=a[b][2],!0;A=-2;return!1}function u(a,b,c){if(!a)return!1;var f=0!==b||0!==c,e,g,l=!1,h,m=this.b.Of(),n=m.type,m=m.Si,p=a.K();h=this.b.fb().eb.Pc;p.T?(this.Aa(),this.b.hl(this.n,a,this.Ea,q),p=q):p=h?p.ca:p.d;y=a;d=n!==a&&!m;f&&(e=this.x,g=this.y,this.x+=b,this.y+=c,this.H());b=0;for(c=p.length;b<
c;b++)if(h=p[b],this.b.de(this,h)){l=!0;if(m)break;n!==a&&G.add(h)}f&&(this.x=e,this.y=g,this.H());q.length=0;return l}function f(){}function l(){}var b=Y.prototype;b.ua=function(a){this.ya=a;this.b=a.b};var h=b.ua.prototype;h.U=function(){if(!this.N){var a,b,d,c,f,e,l,h,m;this.Uc=[];this.Xg=!1;a=0;for(b=this.ec.length;a<b;a++){f=this.ec[a];l={};l.name=f[0];l.speed=f[1];l.loop=f[2];l.Hm=f[3];l.Kj=f[4];l.Yp=f[5];l.ba=f[6];l.frames=[];d=0;for(c=f[7].length;d<c;d++)e=f[7][d],h={},h.Ym=e[0],h.Zm=e[1],
h.hg=e[2],h.ig=e[3],h.width=e[4],h.height=e[5],h.duration=e[6],h.Ub=e[7],h.Vb=e[8],h.wl=e[9],h.zj=e[10],h.Zp=e[11],h.rg=0!==h.width,h.Rk="",h.ix=g,m={left:0,top:0,right:1,bottom:1},h.Rm=m,h.Da=null,(m=this.b.Zt(e[0]))?h.ma=m:(h.ma=new Image,h.ma.Xs=e[0],h.ma.lo=e[1],h.ma.Ts=null,this.b.Qq(h.ma,e[0])),l.frames.push(h),this.Uc.push(h);this.ec[a]=l}}};h.Lq=function(){var a,b,d;a=0;for(b=this.d.length;a<b;a++)d=this.d[a],d.ri=d.uc.Da};h.uj=function(){if(!this.N){var a,b,d;a=0;for(b=this.Uc.length;a<b;++a)d=
this.Uc[a],d.ma.Ts=null,d.Da=null;this.Xg=!1;this.Lq()}};h.rm=function(){if(!this.N&&this.d.length){var a,b,d;a=0;for(b=this.Uc.length;a<b;++a)d=this.Uc[a],d.Da=this.b.D.lj(d.ma,!1,this.b.la,d.Zp);this.Lq()}};h.Sl=function(){if(!this.N&&!this.Xg&&this.b.D){var a,b,d;a=0;for(b=this.Uc.length;a<b;++a)d=this.Uc[a],d.Da=this.b.D.lj(d.ma,!1,this.b.la,d.Zp);this.Xg=!0}};h.en=function(){if(!this.N&&!this.d.length&&this.Xg){var a,b,d;a=0;for(b=this.Uc.length;a<b;++a)d=this.Uc[a],this.b.D.deleteTexture(d.Da),
d.Da=null;this.Xg=!1}};var r=[];h.Bm=function(a){var b,d,c;b=r.length=0;for(d=this.Uc.length;b<d;++b)c=this.Uc[b].ma,-1===r.indexOf(c)&&(a.drawImage(c,0,0),r.push(c))};b.ja=function(a){this.type=a;this.b=a.b;a=this.type.ec[0].frames[0].zj;this.nc?this.na.Mh(a):this.na=new gb(a)};var p=b.ja.prototype;p.U=function(){this.visible=0===this.I[0];this.Ri=this.kf=!1;this.Id=0!==this.I[3];1===this.type.ec.length&&1===this.type.ec[0].frames.length||0===this.type.ec[0].speed||(this.b.tg(this),this.kf=!0);this.Fa=
this.Ao(this.I[1])||this.type.ec[0];this.G=this.I[2];0>this.G&&(this.G=0);this.G>=this.Fa.frames.length&&(this.G=this.Fa.frames.length-1);var a=this.Fa.frames[this.G];this.na.Mh(a.zj);this.Ub=a.Ub;this.Vb=a.Vb;this.Jf=this.Fa.speed;this.nc?this.hd.reset():this.hd=new eb;this.Sd=this.hd.aa;this.le=!0;this.Gd=0;this.ke=!0;this.li=this.Un="";this.ho=0;this.ki=-1;this.type.Sl();var b,d,c,f,e,g,l,a=0;for(b=this.type.ec.length;a<b;a++)for(f=this.type.ec[a],d=0,c=f.frames.length;d<c;d++)e=f.frames[d],0===
e.width&&(e.width=e.ma.width,e.height=e.ma.height),e.rg&&(l=e.ma,g=e.Rm,g.left=e.hg/l.width,g.top=e.ig/l.height,g.right=(e.hg+e.width)/l.width,g.bottom=(e.ig+e.height)/l.height,0===e.hg&&0===e.ig&&e.width===l.width&&e.height===l.height&&(e.rg=!1));this.uc=this.Fa.frames[this.G];this.ri=this.uc.Da};p.Fb=function(){var a={a:this.Fa.ba,f:this.G,cas:this.Jf,fs:this.Sd,ar:this.Gd,at:this.hd.aa};this.le||(a.ap=this.le);this.ke||(a.af=this.ke);return a};p.Wb=function(a){var b=this.du(a.a);b&&(this.Fa=b);
this.G=a.f;0>this.G&&(this.G=0);this.G>=this.Fa.frames.length&&(this.G=this.Fa.frames.length-1);this.Jf=a.cas;this.Sd=a.fs;this.Gd=a.ar;this.hd.reset();this.hd.aa=a.at;this.le=a.hasOwnProperty("ap")?a.ap:!0;this.ke=a.hasOwnProperty("af")?a.af:!0;this.uc=this.Fa.frames[this.G];this.ri=this.uc.Da;this.na.Mh(this.uc.zj);this.Ub=this.uc.Ub;this.Vb=this.uc.Vb};p.Dk=function(a){this.G=a?0:this.Fa.frames.length-1;this.le=!1;this.Un=this.Fa.name;this.Ri=!0;this.b.trigger(Y.prototype.j.xn,this);this.b.trigger(Y.prototype.j.Er,
this);this.Ri=!1;this.Gd=0};p.kx=function(){return this.hd.aa};p.Ra=function(){this.hd.add(this.b.Pf(this));this.li.length&&this.po();0<=this.ki&&this.qo();var a=this.hd.aa,b=this.Fa,d=b.frames[this.G],c=d.duration/this.Jf;this.le&&a>=this.Sd+c&&(this.ke?this.G++:this.G--,this.Sd+=c,this.G>=b.frames.length&&(b.Yp?(this.ke=!1,this.G=b.frames.length-2):b.loop?this.G=b.Kj:(this.Gd++,this.Gd>=b.Hm?this.Dk(!1):this.G=b.Kj)),0>this.G&&(b.Yp?(this.G=1,this.ke=!0,b.loop||(this.Gd++,this.Gd>=b.Hm&&this.Dk(!0))):
b.loop?this.G=b.Kj:(this.Gd++,this.Gd>=b.Hm?this.Dk(!0):this.G=b.Kj)),0>this.G?this.G=0:this.G>=b.frames.length&&(this.G=b.frames.length-1),a>this.Sd+b.frames[this.G].duration/this.Jf&&(this.Sd=a),a=b.frames[this.G],this.Df(d,a),this.b.ga=!0)};p.Ao=function(a){var b,d,c;b=0;for(d=this.type.ec.length;b<d;b++)if(c=this.type.ec[b],mb(c.name,a))return c;return null};p.du=function(a){var b,d,c;b=0;for(d=this.type.ec.length;b<d;b++)if(c=this.type.ec[b],c.ba===a)return c;return null};p.po=function(){var a=
this.Fa.frames[this.G],b=this.Ao(this.li);this.li="";!b||mb(b.name,this.Fa.name)&&this.le||(this.Fa=b,this.Jf=b.speed,0>this.G&&(this.G=0),this.G>=this.Fa.frames.length&&(this.G=this.Fa.frames.length-1),1===this.ho&&(this.G=0),this.le=!0,this.Sd=this.hd.aa,this.ke=!0,this.Df(a,this.Fa.frames[this.G]),this.b.ga=!0)};p.qo=function(){var a=this.Fa.frames[this.G],b=this.G;this.G=R(this.ki);0>this.G&&(this.G=0);this.G>=this.Fa.frames.length&&(this.G=this.Fa.frames.length-1);b!==this.G&&(this.Df(a,this.Fa.frames[this.G]),
this.Sd=this.hd.aa,this.b.ga=!0);this.ki=-1};p.Df=function(a,b){var d=a.width,c=a.height,f=b.width,e=b.height;d!=f&&(this.width*=f/d);c!=e&&(this.height*=e/c);this.Ub=b.Ub;this.Vb=b.Vb;this.na.Mh(b.zj);this.H();this.uc=b;this.ri=b.Da;d=0;for(c=this.V.length;d<c;d++)f=this.V[d],f.lv&&f.lv(a,b);this.b.trigger(Y.prototype.j.Df,this)};p.kd=function(a){a.globalAlpha=this.opacity;var b=this.uc,d=b.rg,c=b.ma,f=this.x,e=this.y,g=this.width,l=this.height;if(0===this.k&&0<=g&&0<=l)f-=this.Ub*g,e-=this.Vb*l,
this.b.vd&&(f=Math.round(f),e=Math.round(e)),d?a.drawImage(c,b.hg,b.ig,b.width,b.height,f,e,g,l):a.drawImage(c,f,e,g,l);else{this.b.vd&&(f=Math.round(f),e=Math.round(e));a.save();var h=0<g?1:-1,m=0<l?1:-1;a.translate(f,e);1===h&&1===m||a.scale(h,m);a.rotate(this.k*h*m);f=0-this.Ub*ma(g);e=0-this.Vb*ma(l);d?a.drawImage(c,b.hg,b.ig,b.width,b.height,f,e,ma(g),ma(l)):a.drawImage(c,f,e,ma(g),ma(l));a.restore()}};p.Hc=function(a){a.pc(this.ri);a.wf(this.opacity);var b=this.uc,d=this.Kb;if(this.b.vd){var c=
Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.rg?a.wd(d.Ja+c,d.Ka+f,d.Hb+c,d.Ib+f,d.Ab+c,d.Bb+f,d.yb+c,d.zb+f,b.Rm):a.Gj(d.Ja+c,d.Ka+f,d.Hb+c,d.Ib+f,d.Ab+c,d.Bb+f,d.yb+c,d.zb+f)}else b.rg?a.wd(d.Ja,d.Ka,d.Hb,d.Ib,d.Ab,d.Bb,d.yb,d.zb,b.Rm):a.Gj(d.Ja,d.Ka,d.Hb,d.Ib,d.Ab,d.Bb,d.yb,d.zb)};p.iu=function(a){var b=this.uc,d,c;d=0;for(c=b.wl.length;d<c;d++)if(mb(a,b.wl[d][0]))return d;return-1};p.Pg=function(a,b){var d=this.uc,c=d.wl,f;f=F(a)?this.iu(a):a-1;f=R(f);if(0>f||f>=c.length)return b?this.x:
this.y;var e=(c[f][1]-d.Ub)*this.width,c=c[f][2],c=(c-d.Vb)*this.height,d=Math.cos(this.k);f=Math.sin(this.k);var g=e*d-c*f,c=c*d+e*f,e=g+this.x,c=c+this.y;return b?e:c};var w=[],A=-2,m=[];n.prototype.Jr=function(b){if(!b)return!1;var d=this.b,f=d.Of(),e=f.type;f.M.collmemory||(f.M.collmemory={},d.zk(function(b){return function(d){d=d.uid;var c,f;for(c in b)b.hasOwnProperty(c)&&(f=b[c],f[0]===d||f[1]===d)&&(a(b[c]),delete b[c])}}(f.M.collmemory)));var f=f.M.collmemory,g=e.K(),l=b.K(),g=g.Db(),h,n,
p,q,r,u,w,y=this.b.Ac,G=y-1,K=d.fb().eb;for(n=0;n<g.length;n++){p=g[n];l.T?(p.Aa(),this.b.hl(p.n,b,p.Ea,m),h=m):h=l.Db();for(q=0;q<h.length;q++)r=h[q],d.de(p,r)||d.Vs(p,r)?(u=t(f,p,r),u=!u||A<G,s(f,p,r,y),u&&(d.Eh(K.ta),u=e.K(),w=b.K(),u.T=!1,w.T=!1,e===b?(u.d.length=2,u.d[0]=p,u.d[1]=r,e.fc()):(u.d.length=1,w.d.length=1,u.d[0]=p,w.d[0]=r,e.fc(),b.fc()),K.Im(),d.Ie(K.ta))):c(f,p,r);m.length=0}return!1};var y=null,G=new ca,d=!1,q=[];h.finish=function(a){if(d){if(a){var b=this.b.fb().eb.Pc;a=y.K();
var c=G.Te(),f,e;if(a.T){a.T=!1;a.d.length=c.length;f=0;for(e=c.length;f<e;f++)a.d[f]=c[f];if(b)for(f=a.ca.length=0,e=y.d.length;f<e;f++)c=y.d[f],G.contains(c)||a.ca.push(c)}else if(b)for(b=a.d.length,a.d.length=b+c.length,f=0,e=c.length;f<e;f++)a.d[b+f]=c[f],Ia(a.ca,c[f]);else Fa(a.d,c);y.fc()}G.clear();d=!1}};n.prototype.ur=function(a){return u.call(this,a,0,0)};n.prototype.xr=function(a,b,d){return u.call(this,a,b,d)};n.prototype.gr=function(a,b){return dc(this.G,a,b)};n.prototype.Er=function(a){return mb(this.Un,
a)};n.prototype.xn=function(){return!0};n.prototype.Df=function(){return!0};b.j=new n;f.prototype.ws=function(a,b,d){if(a&&b&&(b=this.b.Ok(a,b,this.Pg(d,!0),this.Pg(d,!1)))){"undefined"!==typeof b.k&&(b.k=this.k,b.H());this.b.xc++;var c,f,e;this.b.trigger(Object.getPrototypeOf(a.ya).j.Cf,b);if(b.Mb)for(c=0,f=b.siblings.length;c<f;c++)e=b.siblings[c],this.b.trigger(Object.getPrototypeOf(e.type.ya).j.Cf,e);this.b.xc--;c=this.b.fu();d=!1;if(fa(c.M.Spawn_LastExec)||c.M.Spawn_LastExec<this.b.Lf)d=!0,c.M.Spawn_LastExec=
this.b.Lf;if(a!=this.type&&(a=a.K(),a.T=!1,d?(a.d.length=1,a.d[0]=b):a.d.push(b),b.Mb))for(c=0,f=b.siblings.length;c<f;c++)e=b.siblings[c],a=e.type.K(),a.T=!1,d?(a.d.length=1,a.d[0]=e):a.d.push(e)}};f.prototype.xs=function(){this.le=!1};f.prototype.gs=function(a,b){this.li=a;this.ho=b;this.kf||(this.b.tg(this),this.kf=!0);this.Ri||this.po()};f.prototype.hs=function(a){this.ki=a;this.kf||(this.b.tg(this),this.kf=!0);this.Ri||this.qo()};f.prototype.js=function(a){this.Jf=ma(a);this.ke=0<=a;this.kf||
(this.b.tg(this),this.kf=!0)};f.prototype.qs=function(a){var b=this.uc,d=b.width*a*(0>this.width?-1:1);a=b.height*a*(0>this.height?-1:1);if(this.width!==d||this.height!==a)this.width=d,this.height=a,this.H()};b.u=new f;l.prototype.Wq=function(a){a.ea(this.G)};l.prototype.Xq=function(a){a.tb(this.Fa.name)};b.F=new l})();function sc(g){this.b=g}
(function(){function g(){return u.length?u.pop():{}}function n(a){var c,b;c=0;for(b=a.length;c<b;c++)u.push(a[c]);a.length=0}function a(){}function e(){}var s=sc.prototype;s.U=function(){s.u.ts=function(a){this.width!==a&&(this.width=a,this.yf=!0,this.H())}};s.ua=function(a){this.ya=a;this.b=a.b};var c=s.ua.prototype;c.U=function(){};c.uj=function(){if(!this.N){var a,c,b;a=0;for(c=this.d.length;a<c;a++)b=this.d[a],b.sd=null,b.uf=null,b.lc=null}};s.ja=function(a){this.type=a;this.b=a.b;this.nc?this.Ce.length=
0:this.Ce=[];this.yf=!0};c=s.ja.prototype;c.U=function(){this.text=this.I[0];this.visible=0===this.I[1];this.font=this.I[2];this.color=this.I[3];this.Pi=this.I[4];this.ok=this.I[5];this.qn=0===this.I[7];this.Ol=this.ej=this.width;this.dj=this.height;this.Rl=this.I[8];this.Ii=this.Mf="";this.yq=this.zq=this.Je=0;this.qv();this.lc=this.uf=this.sd=null;this.fm=!1;this.lh=this.b.Ac;this.nc?this.Ke.set(0,0,1,1):this.Ke=new ua(0,0,1,1);this.b.D&&this.b.tg(this)};c.qv=function(){var a=this.font.split(" "),
c;for(c=0;c<a.length;c++)if("pt"===a[c].substr(a[c].length-2,2)){this.Je=parseInt(a[c].substr(0,a[c].length-2));this.Fj=Math.ceil(this.Je/72*96)+4;0<c&&(this.Ii=a[c-1]);this.Mf=a[c+1];for(c+=2;c<a.length;c++)this.Mf+=" "+a[c];break}};c.Fb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Pi,va:this.ok,wr:this.qn,lho:this.Rl,fn:this.Mf,fs:this.Ii,ps:this.Je,pxh:this.Fj,tw:this.zq,th:this.yq,lrt:this.lh}};c.Wb=function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.Pi=a.ha;this.ok=
a.va;this.qn=a.wr;this.Rl=a.lho;this.Mf=a.fn;this.Ii=a.fs;this.Je=a.ps;this.Fj=a.pxh;this.zq=a.tw;this.yq=a.th;this.lh=a.lrt;this.yf=!0;this.Ol=this.ej=this.width;this.dj=this.height};c.Ra=function(){if(this.b.D&&this.lc&&300<=this.b.Ac-this.lh){var a=this.n;this.Aa();var c=this.Ea;if(c.right<a.La||c.bottom<a.Ma||c.left>a.bb||c.top>a.ab)this.b.D.deleteTexture(this.lc),this.sd=this.uf=this.lc=null}};c.jg=function(){this.sd=this.uf=null;this.b.D&&this.lc&&this.b.D.deleteTexture(this.lc);this.lc=null};
c.iw=function(){this.font=this.Ii+" "+this.Je.toString()+"pt "+this.Mf;this.yf=!0;this.b.ga=!0};c.kd=function(a,c){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=c?1:this.opacity;var b=1;c&&(b=this.n.wc(),a.save(),a.scale(b,b));if(this.yf||this.width!==this.Ol)this.type.ya.Es(this.text,this.Ce,a,this.width,this.qn),this.yf=!1,this.Ol=this.width;this.Aa();var b=c?0:this.Kb.Ja,e=c?0:this.Kb.Ka;this.b.vd&&(b=b+.5|0,e=e+.5|0);0===this.k||c||(a.save(),a.translate(b,e),a.rotate(this.k),
e=b=0);var g=e+this.height,n=this.Fj,n=n+this.Rl,t,s;1===this.ok?e+=Math.max(this.height/2-this.Ce.length*n/2,0):2===this.ok&&(e+=Math.max(this.height-this.Ce.length*n-2,0));for(s=0;s<this.Ce.length&&!(t=b,1===this.Pi?t=b+(this.width-this.Ce[s].width)/2:2===this.Pi&&(t=b+(this.width-this.Ce[s].width)),a.fillText(this.Ce[s].text,t,e),e+=n,e>=g-n);s++);(0!==this.k||c)&&a.restore();this.lh=this.b.Ac};c.Hc=function(a){if(!(1>this.width||1>this.height)){var c=this.yf||this.fm;this.fm=!1;var b=this.n.wc(),
e=this.n.Wa(),g=this.Ke,n=b*this.width,t=b*this.height,s=Math.ceil(n),m=Math.ceil(t),u=this.b.X/2,G=this.b.W/2;this.uf||(this.sd=document.createElement("canvas"),this.sd.width=s,this.sd.height=m,this.ej=s,this.dj=m,c=!0,this.uf=this.sd.getContext("2d"));if(s!==this.ej||m!==this.dj)this.sd.width=s,this.sd.height=m,this.lc&&(a.deleteTexture(this.lc),this.lc=null),c=!0;c&&(this.uf.clearRect(0,0,s,m),this.kd(this.uf,!0),this.lc||(this.lc=a.Jd(s,m,this.b.la,this.b.Kc)),a.qw(this.sd,this.lc,this.b.Kc));
this.ej=s;this.dj=m;a.pc(this.lc);a.wf(this.opacity);a.xd();a.translate(-u,-G);a.Cd();var d=this.Kb,c=this.n.Ha(d.Ja,d.Ka,!0,!0),u=this.n.Ha(d.Ja,d.Ka,!1,!0),G=this.n.Ha(d.Hb,d.Ib,!0,!0),q=this.n.Ha(d.Hb,d.Ib,!1,!0),k=this.n.Ha(d.Ab,d.Bb,!0,!0),v=this.n.Ha(d.Ab,d.Bb,!1,!0),z=this.n.Ha(d.yb,d.zb,!0,!0),d=this.n.Ha(d.yb,d.zb,!1,!0);if(this.b.vd||0===this.k&&0===e)var x=(c+.5|0)-c,Q=(u+.5|0)-u,c=c+x,u=u+Q,G=G+x,q=q+Q,k=k+x,v=v+Q,z=z+x,d=d+Q;0===this.k&&0===e?(G=c+s,q=u,k=G,v=u+m,z=c,d=v,g.right=1,g.bottom=
1):(g.right=n/s,g.bottom=t/m);a.wd(c,u,G,q,k,v,z,d,g);a.xd();a.scale(b,b);a.Km(-this.n.Wa());a.translate((this.n.La+this.n.bb)/-2,(this.n.Ma+this.n.ab)/-2);a.Cd();this.lh=this.b.Ac}};var t=[];s.As=function(a){t.length=0;for(var c="",b,e=0;e<a.length;)if(b=a.charAt(e),"\n"===b)c.length&&(t.push(c),c=""),t.push("\n"),++e;else if(" "===b||"\t"===b||"-"===b){do c+=a.charAt(e),e++;while(e<a.length&&(" "===a.charAt(e)||"\t"===a.charAt(e)));t.push(c);c=""}else e<a.length&&(c+=b,e++);c.length&&t.push(c)};
var u=[];s.Es=function(a,c,b,e,t){if(a&&a.length)if(2>=e)n(c);else{if(100>=a.length&&-1===a.indexOf("\n")){var p=b.measureText(a).width;if(p<=e){n(c);c.push(g());c[0].text=a;c[0].width=p;return}}this.Fs(a,c,b,e,t)}else n(c)};s.Fs=function(a,c,b,e,n){n&&(this.As(a),a=t);var p="",s,A,m,y=0;for(m=0;m<a.length;m++)"\n"===a[m]?(y>=c.length&&c.push(g()),A=c[y],A.text=p,A.width=b.measureText(p).width,y++,p=""):(s=p,p+=a[m],A=b.measureText(p).width,A>=e&&(y>=c.length&&c.push(g()),A=c[y],A.text=s,A.width=
b.measureText(s).width,y++,p=a[m],n||" "!==p||(p="")));p.length&&(y>=c.length&&c.push(g()),A=c[y],A.text=p,A.width=b.measureText(p).width,y++);for(m=y;m<c.length;m++)u.push(c[m]);c.length=y};s.j=new function(){};a.prototype.rs=function(a){ja(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.yf=!0,this.b.ga=!0)};a.prototype.ls=function(a){this.Je!==a&&(this.Je=a,this.Fj=Math.ceil(this.Je/72*96)+4,this.iw())};a.prototype.ks=function(a){a="rgb("+xa(a).toString()+
","+Aa(a).toString()+","+Ca(a).toString()+")";a!==this.color&&(this.color=a,this.fm=!0,this.b.ga=!0)};s.u=new a;e.prototype.Text=function(a){a.tb(this.text)};s.F=new e})();function tc(g){this.b=g}
(function(){var g=tc.prototype;g.ua=function(a){this.ya=a;this.b=a.b};var n=g.ua.prototype;n.U=function(){this.N||(this.ma=new Image,this.ma.lo=this.Zm,this.b.Qq(this.ma,this.Ym),this.Da=this.pattern=null)};n.uj=function(){this.N||(this.Da=null)};n.rm=function(){if(!this.N&&this.d.length){this.Da||(this.Da=this.b.D.lj(this.ma,!0,this.b.la,this.$m));var a,e;a=0;for(e=this.d.length;a<e;a++)this.d[a].Da=this.Da}};n.Sl=function(){this.N||this.Da||!this.b.D||(this.Da=this.b.D.lj(this.ma,!0,this.b.la,this.$m))};
n.en=function(){this.N||this.d.length||!this.Da||(this.b.D.deleteTexture(this.Da),this.Da=null)};n.Bm=function(a){a.drawImage(this.ma,0,0)};g.ja=function(a){this.type=a;this.b=a.b};n=g.ja.prototype;n.U=function(){this.visible=0===this.I[0];this.Ke=new ua(0,0,0,0);this.Ko=!1;this.ma=this.type.ma;this.b.D?(this.type.Sl(),this.Da=this.type.Da):(this.type.pattern||(this.type.pattern=this.b.wa.createPattern(this.type.ma,"repeat")),this.pattern=this.type.pattern)};n.gd=function(){this.Ko=!1;this.ma=this.type.ma};
n.jg=function(){this.b.D&&this.Ko&&this.Da&&(this.b.D.deleteTexture(this.Da),this.Da=null)};n.kd=function(a){a.globalAlpha=this.opacity;a.save();a.fillStyle=this.pattern;var e=this.x,g=this.y;this.b.vd&&(e=Math.round(e),g=Math.round(g));var c=-(this.Ub*this.width),n=-(this.Vb*this.height),u=c%this.ma.width,f=n%this.ma.height;0>u&&(u+=this.ma.width);0>f&&(f+=this.ma.height);a.translate(e,g);a.rotate(this.k);a.translate(u,f);a.fillRect(c-u,n-f,this.width,this.height);a.restore()};n.Hc=function(a){a.pc(this.Da);
a.wf(this.opacity);var e=this.Ke;e.right=this.width/this.ma.width;e.bottom=this.height/this.ma.height;var g=this.Kb;if(this.b.vd){var c=Math.round(this.x)-this.x,n=Math.round(this.y)-this.y;a.wd(g.Ja+c,g.Ka+n,g.Hb+c,g.Ib+n,g.Ab+c,g.Bb+n,g.yb+c,g.zb+n,e)}else a.wd(g.Ja,g.Ka,g.Hb,g.Ib,g.Ab,g.Bb,g.yb,g.zb,e)};g.j=new function(){};g.u=new function(){};g.F=new function(){}})();function Z(g){this.b=g}
(function(){function g(a){l=a.x;b=a.y;h=a.z}function n(a){r=a.x;p=a.y;w=a.z}function a(a,b,c,f){var g;g=A.length?A.pop():new e;g.init(a,b,c,f);return g}function e(){this.Oh=this.id=this.Be=this.Ae=this.y=this.x=this.$j=this.Zj=this.Ml=this.time=this.Vm=0;this.Uh=this.jk=!1}function s(){}function c(){}var t=Z.prototype;t.ua=function(a){this.ya=a;this.b=a.b};t.ua.prototype.U=function(){};t.ja=function(a){this.type=a;this.b=a.b;this.touches=[];this.am=!1};var u=t.ja.prototype,f={left:0,top:0};u.Ng=function(a){var b,
c;b=0;for(c=this.touches.length;b<c;b++)if(this.touches[b].id===a)return b;return-1};var l=0,b=0,h=0,r=0,p=0,w=0,A=[];e.prototype.init=function(a,b,c,e){var f=ab();this.Vm=this.Ml=this.time=f;this.Zj=a;this.$j=b;this.x=a;this.y=b;this.Ae=a;this.Be=b;this.id=c;this.Oh=e;this.Uh=this.jk=!1};e.prototype.update=function(a,b,c){this.Ml=this.time;this.time=a;this.Ae=this.x;this.Be=this.y;this.x=b;this.y=c;!this.Uh&&15<=V(this.Zj,this.$j,this.x,this.y)&&(this.Uh=!0)};e.prototype.cv=function(a,b){!this.jk&&
500<=ab()-this.Vm&&!this.Uh&&15>V(this.Zj,this.$j,this.x,this.y)&&(this.jk=!0,a.Bd=this.Oh,a.wg=this.id,a.Qf=b,a.b.trigger(Z.prototype.j.Or,a),a.Ld=this.x,a.Md=this.y,a.b.trigger(Z.prototype.j.Pr,a),a.Qf=0)};var m=-1E3,y=-1E3,G=-1E4;e.prototype.xp=function(a,b){if(!this.jk){var c=ab();333>=c-this.Vm&&!this.Uh&&15>V(this.Zj,this.$j,this.x,this.y)&&(a.Bd=this.Oh,a.wg=this.id,a.Qf=b,666>=c-G&&25>V(m,y,this.x,this.y)?(a.b.trigger(Z.prototype.j.Lr,a),a.Ld=this.x,a.Md=this.y,a.b.trigger(Z.prototype.j.Mr,
a),y=m=-1E3,G=-1E4):(a.b.trigger(Z.prototype.j.Ur,a),a.Ld=this.x,a.Md=this.y,a.b.trigger(Z.prototype.j.Vr,a),m=this.x,y=this.y,G=c),a.Qf=0)}};u.U=function(){this.Wu=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Qf=this.wg=this.Bd=this.Md=this.Ld=this.Qn=this.Pn=this.On=this.Ks=this.Js=this.Is=this.zh=this.yh=this.xh=0;this.nw=0!==this.I[0];var a=0<this.b.Tb?document:this.b.canvas,b=document;this.b.Eb?b=a=window.Canvas:this.b.Jc&&(b=a=window);var c=this;window.navigator.pointerEnabled?
(a.addEventListener("pointerdown",function(a){c.Mp(a)},!1),a.addEventListener("pointermove",function(a){c.Lp(a)},!1),b.addEventListener("pointerup",function(a){c.vj(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.vj(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",
function(a){a.preventDefault()},!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.Mp(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Lp(a)},!1),b.addEventListener("MSPointerUp",function(a){c.vj(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.vj(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",
function(a){c.Op(a)},!1),a.addEventListener("touchmove",function(a){c.Np(a)},!1),b.addEventListener("touchend",function(a){c.tm(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.tm(a,!0)},!1));if(this.Wu){var e=function(a){a=a.reading;c.On=a.accelerationX;c.Pn=a.accelerationY;c.Qn=a.accelerationZ},f=function(a){a=a.reading;c.xh=a.yawDegrees;c.yh=a.pitchDegrees;c.zh=a.rollDegrees},h=Windows.Devices.Sensors.Accelerometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),
h.addEventListener("readingchanged",e));var l=Windows.Devices.Sensors.Inclinometer.getDefault();l&&(l.reportInterval=Math.max(l.minimumReportInterval,16),l.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(h&&h.removeEventListener("readingchanged",e),l&&l.removeEventListener("readingchanged",f)):(h&&h.addEventListener("readingchanged",e),l&&l.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",
function(a){c.xh=a.alpha||0;c.yh=a.beta||0;c.zh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Is=a.accelerationIncludingGravity.x||0,c.Js=a.accelerationIncludingGravity.y||0,c.Ks=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.On=a.acceleration.x||0,c.Pn=a.acceleration.y||0,c.Qn=a.acceleration.z||0)},!1);this.nw&&!this.b.Ca&&(jQuery(document).mousemove(function(a){c.pm(a)}),jQuery(document).mousedown(function(a){c.om(a)}),jQuery(document).mouseup(function(a){c.qm(a)}));
this.b.Tf&&!this.b.Eb&&AppMobi.accelerometer.watchAcceleration(g,{frequency:40,adjustForRotation:!0});this.b.Lc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(n,null,{frequency:40});this.b.dw(this)};u.Lp=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.Ng(a.pointerId),c=ab();if(0<=b){var e=this.b.Ca?f:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-e.left,a.pageY-e.top)}}};u.Mp=function(b){if(b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType){b.preventDefault&&nb(b)&&b.preventDefault();var c=this.b.Ca?f:jQuery(this.b.canvas).offset(),e=b.pageX-c.left,c=b.pageY-c.top;ab();this.Bd=this.touches.length;this.wg=b.pointerId;this.touches.push(a(e,c,b.pointerId,this.Bd));this.b.Na=!0;this.b.trigger(Z.prototype.j.Fn,this);this.b.trigger(Z.prototype.j.In,this);this.Ld=e;this.Md=c;this.b.trigger(Z.prototype.j.Hn,this);
this.b.Na=!1}};u.vj=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.Ng(a.pointerId);this.Bd=0<=c?this.touches[c].Oh:-1;this.wg=0<=c?this.touches[c].id:-1;this.b.Na=!0;this.b.trigger(Z.prototype.j.En,this);this.b.trigger(Z.prototype.j.Gn,this);0<=c&&(b||this.touches[c].xp(this,c),100>A.length&&A.push(this.touches[c]),this.touches.splice(c,1));this.b.Na=!1}};u.Np=function(a){a.preventDefault&&a.preventDefault();
var b=ab(),c,e,g,h;c=0;for(e=a.changedTouches.length;c<e;c++)if(g=a.changedTouches[c],h=this.Ng(g.identifier),0<=h){var l=this.b.Ca?f:jQuery(this.b.canvas).offset();h=this.touches[h];2>b-h.time||h.update(b,g.pageX-l.left,g.pageY-l.top)}};u.Op=function(b){b.preventDefault&&nb(b)&&b.preventDefault();var c=this.b.Ca?f:jQuery(this.b.canvas).offset();ab();this.b.Na=!0;var e,g,h,l;e=0;for(g=b.changedTouches.length;e<g;e++)if(h=b.changedTouches[e],l=this.Ng(h.identifier),-1===l){l=h.pageX-c.left;var m=h.pageY-
c.top;this.Bd=this.touches.length;this.wg=h.identifier;this.touches.push(a(l,m,h.identifier,this.Bd));this.b.trigger(Z.prototype.j.Fn,this);this.b.trigger(Z.prototype.j.In,this);this.Ld=l;this.Md=m;this.b.trigger(Z.prototype.j.Hn,this)}this.b.Na=!1};u.tm=function(a,b){a.preventDefault&&nb(a)&&a.preventDefault();this.b.Na=!0;var c,e,f;c=0;for(e=a.changedTouches.length;c<e;c++)f=a.changedTouches[c],f=this.Ng(f.identifier),0<=f&&(this.Bd=this.touches[f].Oh,this.wg=this.touches[f].id,this.b.trigger(Z.prototype.j.En,
this),this.b.trigger(Z.prototype.j.Gn,this),b||this.touches[f].xp(this,f),100>A.length&&A.push(this.touches[f]),this.touches.splice(f,1));this.b.Na=!1};u.cx=function(){return this.b.Tf&&0===this.xh&&0!==h?90*h:this.b.Lc&&0===this.xh&&0!==w?90*w:this.xh};u.gx=function(){return this.b.Tf&&0===this.yh&&0!==b?-90*b:this.b.Lc&&0===this.yh&&0!==p?90*p:this.yh};u.jx=function(){return this.b.Tf&&0===this.zh&&0!==l?90*l:this.b.Lc&&0===this.zh&&0!==r?90*r:this.zh};u.om=function(a){a.preventDefault&&this.b.Rf&&
!this.b.Kc&&a.preventDefault();this.Op({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.am=!0};u.pm=function(a){this.am&&this.Np({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};u.qm=function(a){a.preventDefault&&this.b.Rf&&!this.b.Kc&&a.preventDefault();this.b.Rf=!0;this.tm({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.am=!1};u.dk=function(){var a,b,c,e=ab();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=e-50&&(c.Ml=e),c.cv(this,
a)};s.prototype.In=function(){return!0};s.prototype.Gn=function(){return!0};s.prototype.Hn=function(a){return a?this.b.Rh(a,this.Ld,this.Md):!1};s.prototype.Fn=function(a){a=Math.floor(a);return a===this.Bd};s.prototype.En=function(a){a=Math.floor(a);return a===this.Bd};s.prototype.Or=function(){return!0};s.prototype.Ur=function(){return!0};s.prototype.Lr=function(){return!0};s.prototype.Pr=function(a){return a?this.b.Rh(a,this.Ld,this.Md):!1};s.prototype.Vr=function(a){return a?this.b.Rh(a,this.Ld,
this.Md):!1};s.prototype.Mr=function(a){return a?this.b.Rh(a,this.Ld,this.Md):!1};t.j=new s;c.prototype.ai=function(a,b){var c=this.Qf;if(0>c||c>=this.touches.length)a.C(0);else{var e,f,g,h,l;fa(b)?(e=this.b.Td(0),f=e.scale,g=e.Jb,h=e.Yb,l=e.k,e.scale=1,e.Jb=1,e.Yb=1,e.k=0,a.C(e.qb(this.touches[c].x,this.touches[c].y,!0)),e.scale=f,e.Jb=g,e.Yb=h,e.k=l):(e=ja(b)?this.b.Td(b):this.b.Qg(b))?a.C(e.qb(this.touches[c].x,this.touches[c].y,!0)):a.C(0)}};c.prototype.yk=function(a,b){var c=this.Qf;if(0>c||
c>=this.touches.length)a.C(0);else{var e,f,g,h,l;fa(b)?(e=this.b.Td(0),f=e.scale,g=e.Jb,h=e.Zb,l=e.k,e.scale=1,e.Jb=1,e.Zb=1,e.k=0,a.C(e.qb(this.touches[c].x,this.touches[c].y,!1)),e.scale=f,e.Jb=g,e.Zb=h,e.k=l):(e=ja(b)?this.b.Td(b):this.b.Qg(b))?a.C(e.qb(this.touches[c].x,this.touches[c].y,!1)):a.C(0)}};t.F=new c})();function uc(g){this.b=g}
(function(){function g(){}function n(){}function a(){}var e=uc.prototype;e.ua=function(a){this.behavior=a;this.b=a.b};e.ua.prototype.U=function(){};e.ja=function(a,e){this.type=a;this.behavior=a.behavior;this.i=e;this.b=a.b};var s=e.ja.prototype;s.U=function(){var a=this.I[0];this.Qb=this.I[1];this.Ki=this.I[2];this.Yn=0!==this.I[3];this.Pj=0!==this.I[4];this.r=Math.cos(this.i.k)*a;this.q=Math.sin(this.i.k)*a;this.Ae=this.i.x;this.Be=this.i.y;this.jc=this.i.k;this.hk=0;this.enabled=0!==this.I[5]};
s.Fb=function(){return{acc:this.Qb,g:this.Ki,dx:this.r,dy:this.q,lx:this.Ae,ly:this.Be,lka:this.jc,t:this.hk,e:this.enabled}};s.Wb=function(a){this.Qb=a.acc;this.Ki=a.g;this.r=a.dx;this.q=a.dy;this.Ae=a.lx;this.Be=a.ly;this.jc=a.lka;this.hk=a.t;this.enabled=a.e};s.Ra=function(){if(this.enabled){var a=this.b.Pf(this.i),e,g;this.i.k!==this.jc&&(this.Pj&&(e=V(0,0,this.r,this.q),this.r=Math.cos(this.i.k)*e,this.q=Math.sin(this.i.k)*e),this.jc=this.i.k);0!==this.Qb&&(e=V(0,0,this.r,this.q),g=0===this.r&&
0===this.q?this.i.k:Pa(0,0,this.r,this.q),e+=this.Qb*a,0>e&&(e=0),this.r=Math.cos(g)*e,this.q=Math.sin(g)*e);0!==this.Ki&&(this.q+=this.Ki*a);this.Ae=this.i.x;this.Be=this.i.y;if(0!==this.r||0!==this.q)if(this.i.x+=this.r*a,this.i.y+=this.q*a,this.hk+=V(0,0,this.r*a,this.q*a),this.Pj&&(this.i.k=Pa(0,0,this.r,this.q),this.i.H(),this.jc=this.i.k),this.i.H(),this.Yn&&(e=this.b.cd(this.i)))this.b.Fh(this.i,e),e=V(0,0,this.r,this.q),g=this.b.co(this.i,this.Ae,this.Be),this.r=Math.cos(g)*e,this.q=Math.sin(g)*
e,this.i.x+=this.r*a,this.i.y+=this.q*a,this.i.H(),this.Pj&&(this.jc=this.i.k=g,this.i.H()),this.b.dq(this.i,this.r/e,this.q/e,Math.max(2.5*e*a,30))||this.b.Dm(this.i,100)}};g.prototype.tn=function(a,e){return dc(V(0,0,this.r,this.q),a,e)};e.j=new g;n.prototype.Jn=function(a){var e=Pa(0,0,this.r,this.q);this.r=Math.cos(e)*a;this.q=Math.sin(e)*a};n.prototype.es=function(a){a=U(a);var e=V(0,0,this.r,this.q);this.r=Math.cos(a)*e;this.q=Math.sin(a)*e};n.prototype.br=function(a){if(a&&(a=a.kl(this.i))){var e=
this.b.Pf(this.i),g=V(0,0,this.r,this.q),f=this.b.co(this.i,this.Ae,this.Be,a);this.r=Math.cos(f)*g;this.q=Math.sin(f)*g;this.i.x+=this.r*e;this.i.y+=this.q*e;this.i.H();this.Pj&&(this.jc=this.i.k=f,this.i.H());this.Yn?this.b.dq(this.i,this.r/g,this.q/g,Math.max(2.5*g*e,30))||this.b.Dm(this.i,100):this.b.Gv(this.i,this.r/g,this.q/g,Math.max(2.5*g*e,30),a)}};e.u=new n;a.prototype.Mn=function(a){var e=V(0,0,this.r,this.q),e=lb(e);a.C(e)};a.prototype.Uq=function(a){a.C(Ja(Pa(0,0,this.r,this.q)))};e.F=
new a})();function vc(g){this.b=g}
(function(){function g(){}function n(){}function a(){}var e=vc.prototype;e.ua=function(a){this.behavior=a;this.b=a.b};e.ua.prototype.U=function(){};e.ja=function(a,e){this.type=a;this.behavior=a.behavior;this.i=e;this.b=a.b;this.Uj=this.Tj=this.Sj=this.Vj=this.ul=this.Lj=this.hj=this.Ai=this.mk=!1;this.Ll=this.Kl=this.Jl=this.Nl=-1;this.q=this.r=0};var s=e.ja.prototype;s.U=function(){this.rd=this.I[0];this.Qb=this.I[1];this.jd=this.I[2];this.Uk=this.I[3];this.Ck=this.I[4];this.bt=1===this.I[5];this.enabled=
0!==this.I[6];this.bt&&!this.b.Ca&&(jQuery(document).keydown(function(a){return function(e){a.lm(e)}}(this)),jQuery(document).keyup(function(a){return function(e){a.mm(e)}}(this)))};s.Fb=function(){return{dx:this.r,dy:this.q,enabled:this.enabled,maxspeed:this.rd,acc:this.Qb,dec:this.jd,ignoreInput:this.ul}};s.Wb=function(a){this.r=a.dx;this.q=a.dy;this.enabled=a.enabled;this.rd=a.maxspeed;this.Qb=a.acc;this.jd=a.dec;this.ul=a.ignoreInput;this.Uj=this.Tj=this.Sj=this.Vj=this.Lj=this.hj=this.Ai=this.mk=
!1;this.Ll=this.Kl=this.Jl=this.Nl=-1};s.lm=function(a){var e=this.b.Ac;switch(a.which){case 37:a.preventDefault();this.Kl<e&&(this.hj=!0);break;case 38:a.preventDefault();this.Nl<e&&(this.mk=!0);break;case 39:a.preventDefault();this.Ll<e&&(this.Lj=!0);break;case 40:a.preventDefault(),this.Jl<e&&(this.Ai=!0)}};s.mm=function(a){var e=this.b.Ac;switch(a.which){case 37:a.preventDefault();this.hj=!1;this.Kl=e;break;case 38:a.preventDefault();this.mk=!1;this.Nl=e;break;case 39:a.preventDefault();this.Lj=
!1;this.Ll=e;break;case 40:a.preventDefault(),this.Ai=!1,this.Jl=e}};s.Ra=function(){var a=this.b.Pf(this.i),e=this.hj||this.Tj,g=this.Lj||this.Uj,f=this.mk||this.Vj,l=this.Ai||this.Sj;this.Sj=this.Vj=this.Uj=this.Tj=!1;if(this.enabled){var b=this.b.cd(this.i);if(b&&(this.b.Fh(this.i,b),!this.b.Dm(this.i)))return;this.ul&&(l=f=g=e=!1);0===this.Uk?g=e=!1:1===this.Uk&&(l=f=!1);2===this.Uk&&(f||l)&&(g=e=!1);e==g&&(0>this.r?(this.r+=this.jd*a,0<this.r&&(this.r=0)):0<this.r&&(this.r-=this.jd*a,0>this.r&&
(this.r=0)));f==l&&(0>this.q?(this.q+=this.jd*a,0<this.q&&(this.q=0)):0<this.q&&(this.q-=this.jd*a,0>this.q&&(this.q=0)));e&&!g&&(this.r=0<this.r?this.r-(this.Qb+this.jd)*a:this.r-this.Qb*a);g&&!e&&(this.r=0>this.r?this.r+(this.Qb+this.jd)*a:this.r+this.Qb*a);f&&!l&&(this.q=0<this.q?this.q-(this.Qb+this.jd)*a:this.q-this.Qb*a);l&&!f&&(this.q=0>this.q?this.q+(this.Qb+this.jd)*a:this.q+this.Qb*a);if(0!==this.r||0!==this.q){Math.sqrt(this.r*this.r+this.q*this.q)>this.rd&&(b=Math.atan2(this.q,this.r),
this.r=this.rd*Math.cos(b),this.q=this.rd*Math.sin(b));g=this.i.x;f=this.i.y;e=this.i.k;this.i.x+=this.r*a;this.i.H();if(b=this.b.cd(this.i))this.i.x=g,this.r=0,this.i.H(),this.b.Fh(this.i,b);this.i.y+=this.q*a;this.i.H();if(b=this.b.cd(this.i))this.i.y=f,this.q=0,this.i.H(),this.b.Fh(this.i,b);a=lb(this.r);b=lb(this.q);if(0!==a||0!==b)1===this.Ck?this.i.k=Oa(90*Math.round(Ja(Math.atan2(b,a))/90)):2===this.Ck?this.i.k=Oa(45*Math.round(Ja(Math.atan2(b,a))/45)):3===this.Ck&&(this.i.k=Math.atan2(b,a));
this.i.H();this.i.k!=e&&(b=this.b.cd(this.i))&&(this.i.k=e,this.i.H(),this.b.Fh(this.i,b))}}};g.prototype.tr=function(){return 0!==this.r||0!==this.q};g.prototype.tn=function(a,e){var g=Math.sqrt(this.r*this.r+this.q*this.q);return dc(g,a,e)};e.j=new g;n.prototype.Nn=function(){this.q=this.r=0};n.prototype.Jn=function(a){0>a&&(a=0);a>this.rd&&(a=this.rd);var e=Math.atan2(this.q,this.r);this.r=a*Math.cos(e);this.q=a*Math.sin(e)};n.prototype.ms=function(a){this.rd=a;0>this.rd&&(this.rd=0)};n.prototype.vs=
function(a){switch(a){case 0:this.Tj=!0;break;case 1:this.Uj=!0;break;case 2:this.Vj=!0;break;case 3:this.Sj=!0}};e.u=new n;a.prototype.Mn=function(a){a.C(Math.sqrt(this.r*this.r+this.q*this.q))};e.F=new a})();function wc(g){this.b=g}
(function(){function g(){}var n=wc.prototype;n.ua=function(a){this.behavior=a;this.b=a.b};n.ua.prototype.U=function(){};n.ja=function(a,g){this.type=a;this.behavior=a.behavior;this.i=g;this.b=a.b};var a=n.ja.prototype;a.U=function(){var a=1===this.I[0];this.Lg=this.I[1];this.Zh=this.I[2];this.Di=this.I[3];this.dt=this.I[4];this.zc=a?0:3;this.nc?this.Qc.reset():this.Qc=new eb;this.sf=this.i.opacity?this.i.opacity:1;a&&(0===this.Lg?(this.zc=1,0===this.Zh&&(this.zc=2)):(this.i.opacity=0,this.b.ga=!0))};
a.Fb=function(){return{fit:this.Lg,wt:this.Zh,fot:this.Di,s:this.zc,st:this.Qc.aa,mo:this.sf}};a.Wb=function(a){this.Lg=a.fit;this.Zh=a.wt;this.Di=a.fot;this.zc=a.s;this.Qc.reset();this.Qc.aa=a.st;this.sf=a.mo};a.Ra=function(){this.Qc.add(this.b.Pf(this.i));0===this.zc&&(this.i.opacity=this.Qc.aa/this.Lg*this.sf,this.b.ga=!0,this.i.opacity>=this.sf&&(this.i.opacity=this.sf,this.zc=1,this.Qc.reset()));1===this.zc&&this.Qc.aa>=this.Zh&&(this.zc=2,this.Qc.reset());2===this.zc&&0!==this.Di&&(this.i.opacity=
this.sf-this.Qc.aa/this.Di*this.sf,this.b.ga=!0,0>this.i.opacity&&(this.i.opacity=0,this.zc=3,this.Qc.reset(),this.b.trigger(wc.prototype.j.Nr,this.i),1===this.dt&&this.b.Fd(this.i)))};a.bx=function(){this.zc=0;this.Qc.reset();0===this.Lg?(this.zc=1,0===this.Zh&&(this.zc=2)):(this.i.opacity=0,this.b.ga=!0)};g.prototype.Nr=function(){return!0};n.j=new g;n.u=new function(){}})();function xc(g){this.b=g}
(function(){function g(){}var n=xc.prototype;n.ua=function(a){this.behavior=a;this.b=a.b};n.ua.prototype.U=function(){};n.ja=function(a,g){this.type=a;this.behavior=a.behavior;this.i=g;this.b=a.b};var a=n.ja.prototype;a.U=function(){this.ob=null;this.xj=-1;this.mode=this.jc=this.bk=this.fg=this.Yd=this.Bh=0;var a=this;this.nc||(this.Dp=function(g){a.km(g)});this.b.zk(this.Dp)};a.Fb=function(){return{uid:this.ob?this.ob.uid:-1,pa:this.Bh,pd:this.Yd,msa:this.fg,tsa:this.bk,lka:this.jc,m:this.mode}};
a.Wb=function(a){this.xj=a.uid;this.Bh=a.pa;this.Yd=a.pd;this.fg=a.msa;this.bk=a.tsa;this.jc=a.lka;this.mode=a.m};a.gd=function(){this.ob=-1===this.xj?null:this.b.Rg(this.xj);this.xj=-1};a.km=function(a){this.ob==a&&(this.ob=null)};a.jg=function(){this.ob=null;this.b.Iv(this.Dp)};a.Ra=function(){};a.dk=function(){if(this.ob){this.jc!==this.i.k&&(this.fg=Ma(this.fg+(this.i.k-this.jc)));var a=this.i.x,g=this.i.y;if(3===this.mode||4===this.mode){var c=V(this.i.x,this.i.y,this.ob.x,this.ob.y);if(c>this.Yd||
4===this.mode&&c<this.Yd)g=Pa(this.ob.x,this.ob.y,this.i.x,this.i.y),a=this.ob.x+Math.cos(g)*this.Yd,g=this.ob.y+Math.sin(g)*this.Yd}else a=this.ob.x+Math.cos(this.ob.k+this.Bh)*this.Yd,g=this.ob.y+Math.sin(this.ob.k+this.Bh)*this.Yd;this.jc=c=Ma(this.fg+(this.ob.k-this.bk));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.i.x===a&&this.i.y===g||(this.i.x=a,this.i.y=g,this.i.H());0!==this.mode&&2!==this.mode||this.i.k===c||(this.i.k=c,this.i.H())}};n.j=new function(){};g.prototype.as=
function(a,g){if(a){var c=a.kl(this.i);c&&(this.ob=c,this.Bh=Pa(c.x,c.y,this.i.x,this.i.y)-c.k,this.Yd=V(c.x,c.y,this.i.x,this.i.y),this.jc=this.fg=this.i.k,this.bk=c.k,this.mode=g)}};n.u=new g;n.F=new function(){}})();function Ac(g){this.b=g}
(function(){var g=Ac.prototype;g.ua=function(g){this.behavior=g;this.b=g.b};g.ua.prototype.U=function(){};g.ja=function(g,a){this.type=g;this.behavior=g.behavior;this.i=a;this.b=g.b};g=g.ja.prototype;g.U=function(){};g.Ra=function(){this.i.Aa();var g=this.i.Ea,a=this.i.n.xa;(0>g.right||0>g.bottom||g.left>a.width||g.top>a.height)&&this.b.Fd(this.i)}})();function nc(g){this.b=g}
(function(){var g=nc.prototype;g.ua=function(a){this.behavior=a;this.b=a.b};g.ua.prototype.U=function(){};g.ja=function(a,e){this.type=a;this.behavior=a.behavior;this.i=e;this.b=a.b};var n=g.ja.prototype;n.U=function(){this.i.M.solidEnabled=0!==this.I[0]};n.Ra=function(){};g.j=new function(){};g.u=new function(){}})();
function mc(){return[pc,oc,qc,rc,Y,sc,tc,Z,nc,wc,uc,Ac,vc,xc,X.prototype.j.Cn,tc.prototype.u.wk,tc.prototype.F.ai,sc.prototype.j.qk,sc.prototype.u.rs,X.prototype.F.Cv,X.prototype.j.hr,X.prototype.u.ss,X.prototype.j.fr,Y.prototype.F.jr,X.prototype.u.zs,X.prototype.F.Od,X.prototype.u.kr,Y.prototype.u.Dr,Y.prototype.u.hs,Y.prototype.u.xk,Y.prototype.u.rk,Y.prototype.u.wk,uc.prototype.u.Jn,X.prototype.F["int"],X.prototype.F.random,pc.prototype.u.bs,Y.prototype.j.qk,uc.prototype.u.es,X.prototype.j.rr,
X.prototype.F.Uv,X.prototype.F.cw,Y.prototype.j.ur,X.prototype.j.Zr,Y.prototype.F.or,Y.prototype.u.os,Y.prototype.u.gs,Y.prototype.j.Jr,X.prototype.j.vn,X.prototype.j.$r,Y.prototype.u.ys,Y.prototype.F.Od,Y.prototype.u.ws,xc.prototype.u.as,Y.prototype.F.Br,oc.prototype.F.Xr,tc.prototype.j.qk,X.prototype.j.mr,tc.prototype.j.un,uc.prototype.j.tn,X.prototype.F.abs,tc.prototype.u.Ln,X.prototype.j.Bs,pc.prototype.j.yr,pc.prototype.u.Nn,uc.prototype.u.br,X.prototype.F.io,Y.prototype.j.ir,X.prototype.F.Vv,
Y.prototype.u.us,tc.prototype.F.Zq,Y.prototype.F.nr,tc.prototype.F.$q,Y.prototype.j.un,Y.prototype.u.Ln,tc.prototype.F.rn,Y.prototype.F.Ds,tc.prototype.F.sn,Y.prototype.F.ai,Y.prototype.F.sn,Y.prototype.F.rn,oc.prototype.u.CallFunction,X.prototype.u.Tq,Y.prototype.u.Sq,X.prototype.j.lr,uc.prototype.F.Uq,Y.prototype.j.wn,Y.prototype.u.js,uc.prototype.F.Mn,oc.prototype.j.$h,Y.prototype.u.Gs,Y.prototype.u.ds,Y.prototype.j.Cf,Y.prototype.F.yk,Y.prototype.j.xn,qc.prototype.j.sr,vc.prototype.u.vs,qc.prototype.j.Bn,
qc.prototype.j.An,vc.prototype.u.ms,vc.prototype.j.tr,Y.prototype.F.Xq,Y.prototype.F.Wq,Y.prototype.u.xs,Y.prototype.u.qs,Y.prototype.j.xr,X.prototype.F.ceil,sc.prototype.u.Kn,sc.prototype.u.ks,X.prototype.F.Mv,Y.prototype.j.gr,Y.prototype.u.Kn,X.prototype.u.cs,X.prototype.u.ns,qc.prototype.j.zn,X.prototype.u.Cs,tc.prototype.u.xk,X.prototype.F.pv,X.prototype.F.ov,sc.prototype.u.xk,sc.prototype.u.wk,sc.prototype.u.ls,tc.prototype.u.rk,X.prototype.j.Yr,sc.prototype.u.rk,rc.prototype.j.uk,Y.prototype.j.pr]}
;
