// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,da,ea,fa,ga,ha,z,ja,ka,la,na,oa,pa,O,ra,sa,ua,va,wa,xa,ya,V,za,Aa,Ba,Ea,Fa,X,Ga,Ha,Ia,Ja,La,Ma,Na,Oa,Pa,Qa,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,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(f){return f.__proto__}:function(f){return f.constructor.prototype});
(function(){function f(b,a,g,c){this.set(b,a,g,c)}function l(){this.pb=this.ob=this.rb=this.qb=this.Eb=this.Db=this.Va=this.Ua=0}function n(b,a,g,c){b<a?g<c?(t=b<g?b:g,C=a>c?a:c):(t=b<c?b:c,C=a>g?a:g):g<c?(t=a<g?a:g,C=b>c?b:c):(t=a<c?a:c,C=b>g?b:g)}function q(){this.items=this.Ed=null;this.wh=0;A&&(this.Ed=new Set);this.Kg=[];this.qe=!0}function p(b){P[Q++]=b}function r(){this.X=this.qk=this.y=this.Tk=0}function e(b){this.hb=[];this.wi=this.yi=this.Ai=this.xi=0;this.$h(b)}function a(b,a){this.Xk=
b;this.Wk=a;this.cells={}}function c(b,a){this.Xk=b;this.Wk=a;this.cells={}}function d(b,a,g){var c;return G.length?(c=G.pop(),c.Gl=b,c.x=a,c.y=g,c):new ba(b,a,g)}function b(b,a,g){this.Gl=b;this.x=a;this.y=g;this.mb=new ca}function h(b,a,g){var c;return B.length?(c=B.pop(),c.Gl=b,c.x=a,c.y=g,c):new da(b,a,g)}function g(b,a,g){this.Gl=b;this.x=a;this.y=g;this.mb=[];this.Zf=!0;this.Bd=new ca;this.Og=!1}function k(b,a){return b.pd-a.pd}ea=function(b){window.console&&window.console.log&&window.console.log(b)};
fa=function(b){window.console&&window.console.error&&window.console.error(b)};aa=function(b){return b};ga=function(b){return"undefined"===typeof b};ha=function(b){return"number"===typeof b};z=function(b){return"string"===typeof b};ja=function(b){return 0<b&&0===(b-1&b)};ka=function(b){--b;for(var a=1;32>a;a<<=1)b=b|b>>a;return b+1};la=function(b){return 0>b?-b:b};na=function(b,a){return b>a?b:a};oa=function(b,a){return b<a?b:a};pa=Math.PI;O=function(b){return 0<=b?b|0:(b|0)-1};ra=function(b){var a=
b|0;return a===b?a:a+1};sa=function(b,a,g,c,h,k,d,v){var y,m,t,e;b<g?(m=b,y=g):(m=g,y=b);h<d?(e=h,t=d):(e=d,t=h);if(y<e||m>t)return!1;a<c?(m=a,y=c):(m=c,y=a);k<v?(e=k,t=v):(e=v,t=k);if(y<e||m>t)return!1;y=h-b+d-g;m=k-a+v-c;b=g-b;a=c-a;h=d-h;k=v-k;v=la(a*h-k*b);return la(h*m-k*y)>v?!1:la(b*m-a*y)<=v};f.prototype.set=function(b,a,g,c){this.left=b;this.top=a;this.right=g;this.bottom=c};f.prototype.Kf=function(b){this.left=b.left;this.top=b.top;this.right=b.right;this.bottom=b.bottom};f.prototype.width=
function(){return this.right-this.left};f.prototype.height=function(){return this.bottom-this.top};f.prototype.offset=function(b,a){this.left+=b;this.top+=a;this.right+=b;this.bottom+=a;return this};f.prototype.normalize=function(){var b=0;this.left>this.right&&(b=this.left,this.left=this.right,this.right=b);this.top>this.bottom&&(b=this.top,this.top=this.bottom,this.bottom=b)};f.prototype.su=function(b){return!(b.right<this.left||b.bottom<this.top||b.left>this.right||b.top>this.bottom)};f.prototype.tu=
function(b,a,g){return!(b.right+a<this.left||b.bottom+g<this.top||b.left+a>this.right||b.top+g>this.bottom)};f.prototype.Ib=function(b,a){return b>=this.left&&b<=this.right&&a>=this.top&&a<=this.bottom};f.prototype.Wg=function(b){return this.left===b.left&&this.top===b.top&&this.right===b.right&&this.bottom===b.bottom};ua=f;l.prototype.Ag=function(b){this.Ua=b.left;this.Va=b.top;this.Db=b.right;this.Eb=b.top;this.qb=b.right;this.rb=b.bottom;this.ob=b.left;this.pb=b.bottom};l.prototype.sq=function(b,
a){if(0===a)this.Ag(b);else{var g=Math.sin(a),c=Math.cos(a),h=b.left*g,k=b.top*g,d=b.right*g,g=b.bottom*g,v=b.left*c,y=b.top*c,m=b.right*c,c=b.bottom*c;this.Ua=v-k;this.Va=y+h;this.Db=m-k;this.Eb=y+d;this.qb=m-g;this.rb=c+d;this.ob=v-g;this.pb=c+h}};l.prototype.offset=function(b,a){this.Ua+=b;this.Va+=a;this.Db+=b;this.Eb+=a;this.qb+=b;this.rb+=a;this.ob+=b;this.pb+=a;return this};var t=0,C=0;l.prototype.Rn=function(b){n(this.Ua,this.Db,this.qb,this.ob);b.left=t;b.right=C;n(this.Va,this.Eb,this.rb,
this.pb);b.top=t;b.bottom=C};l.prototype.Ib=function(b,a){var g=this.Ua,c=this.Va,h=this.Db-g,k=this.Eb-c,d=this.qb-g,v=this.rb-c,y=b-g,m=a-c,t=h*h+k*k,e=h*d+k*v,k=h*y+k*m,f=d*d+v*v,x=d*y+v*m,C=1/(t*f-e*e),h=(f*k-e*x)*C,t=(t*x-e*k)*C;if(0<=h&&0<t&&1>h+t)return!0;h=this.ob-g;k=this.pb-c;t=h*h+k*k;e=h*d+k*v;k=h*y+k*m;C=1/(t*f-e*e);h=(f*k-e*x)*C;t=(t*x-e*k)*C;return 0<=h&&0<t&&1>h+t};l.prototype.Vc=function(b,a){if(a)switch(b){case 0:return this.Ua;case 1:return this.Db;case 2:return this.qb;case 3:return this.ob;
case 4:return this.Ua;default:return this.Ua}else switch(b){case 0:return this.Va;case 1:return this.Eb;case 2:return this.rb;case 3:return this.pb;case 4:return this.Va;default:return this.Va}};l.prototype.tp=function(){return(this.Ua+this.Db+this.qb+this.ob)/4};l.prototype.up=function(){return(this.Va+this.Eb+this.rb+this.pb)/4};l.prototype.Mo=function(b){var a=b.tp(),g=b.up();if(this.Ib(a,g))return!0;a=this.tp();g=this.up();if(b.Ib(a,g))return!0;var c,h,k,d,v,y,m,t;for(m=0;4>m;m++)for(t=0;4>t;t++)if(a=
this.Vc(m,!0),g=this.Vc(m,!1),c=this.Vc(m+1,!0),h=this.Vc(m+1,!1),k=b.Vc(t,!0),d=b.Vc(t,!1),v=b.Vc(t+1,!0),y=b.Vc(t+1,!1),sa(a,g,c,h,k,d,v,y))return!0;return!1};va=l;wa=function(b,a){for(var g in a)a.hasOwnProperty(g)&&(b[g]=a[g]);return b};xa=function(b,a){var g,c;a=O(a);if(!(0>a||a>=b.length)){g=a;for(c=b.length-1;g<c;g++)b[g]=b[g+1];ya(b,c)}};ya=function(b,a){b.length=a};V=function(b){ya(b,0)};za=function(b,a){V(b);var g,c;g=0;for(c=a.length;g<c;++g)b[g]=a[g]};Aa=function(b,a){b.push.apply(b,a)};
Ba=function(b,a){var g,c;g=0;for(c=b.length;g<c;++g)if(b[g]===a)return g;return-1};Ea=function(b,a){var g=Ba(b,a);-1!==g&&xa(b,g)};Fa=function(b,a,g){return b<a?a:b>g?g:b};X=function(b){return b/(180/pa)};Ga=function(b){return 180/pa*b};Ha=function(b){b%=360;0>b&&(b+=360);return b};Ia=function(b){b%=2*pa;0>b&&(b+=2*pa);return b};Ja=function(b){return Ha(Ga(b))};La=function(b){return Ia(X(b))};Ma=function(b,a,g,c){return Math.atan2(c-a,g-b)};Na=function(b,a){if(b===a)return 0;var g=Math.sin(b),c=Math.cos(b),
h=Math.sin(a),k=Math.cos(a),g=g*h+c*k;return 1<=g?0:-1>=g?pa:Math.acos(g)};Oa=function(b,a,g){var c=Math.sin(b),h=Math.cos(b),k=Math.sin(a),d=Math.cos(a);return Math.acos(c*k+h*d)>g?0<h*k-c*d?Ia(b+g):Ia(b-g):Ia(a)};Pa=function(b,a){var g=Math.sin(b),c=Math.cos(b),h=Math.sin(a),k=Math.cos(a);return 0>=c*h-g*k};Qa=function(b,a,g,c,h,k){if(0===g)return k?b:a;var d=Math.sin(g);g=Math.cos(g);b-=c;a-=h;var v=b*d;b=b*g-a*d;a=a*g+v;return k?b+c:a+h};Wa=function(b,a,g,c){b=g-b;a=c-a;return Math.sqrt(b*b+a*
a)};Xa=function(b,a){return!b!==!a};Ya=function(b){for(var a in b)if(b.hasOwnProperty(a))return!0;return!1};Za=function(b){for(var a in b)b.hasOwnProperty(a)&&delete b[a]};var U=+new Date;$a=function(){if("undefined"!==typeof window.performance){var b=window.performance;if("undefined"!==typeof b.now)return b.now();if("undefined"!==typeof b.webkitNow)return b.webkitNow();if("undefined"!==typeof b.mozNow)return b.mozNow();if("undefined"!==typeof b.msNow)return b.msNow()}return Date.now()-U};var m=!1,
x=m=!1,Z=!1;"undefined"!==typeof window&&(m=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),m=!m&&/safari/i.test(navigator.userAgent),x=/(iphone|ipod|ipad)/i.test(navigator.userAgent),Z=window.c2ejecta);var A=!m&&!Z&&!x&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;q.prototype.contains=function(b){return this.Rd()?!1:A?this.Ed.has(b):this.items&&this.items.hasOwnProperty(b)};q.prototype.add=function(b){if(A)this.Ed.has(b)||(this.Ed.add(b),this.qe=
!1);else{var a=b.toString(),g=this.items;g?g.hasOwnProperty(a)||(g[a]=b,this.wh++,this.qe=!1):(this.items={},this.items[a]=b,this.wh=1,this.qe=!1)}};q.prototype.remove=function(b){if(!this.Rd())if(A)this.Ed.has(b)&&(this.Ed["delete"](b),this.qe=!1);else if(this.items){b=b.toString();var a=this.items;a.hasOwnProperty(b)&&(delete a[b],this.wh--,this.qe=!1)}};q.prototype.clear=function(){this.Rd()||(A?this.Ed.clear():(this.items=null,this.wh=0),V(this.Kg),this.qe=!0)};q.prototype.Rd=function(){return 0===
this.count()};q.prototype.count=function(){return A?this.Ed.size:this.wh};var P=null,Q=0;q.prototype.Zv=function(){if(!this.qe){if(A)V(this.Kg),P=this.Kg,Q=0,this.Ed.forEach(p),P=null,Q=0;else{var b=this.Kg;V(b);var a,g=0,c=this.items;if(c)for(a in c)c.hasOwnProperty(a)&&(b[g++]=c[a])}this.qe=!0}};q.prototype.od=function(){this.Zv();return this.Kg};ca=q;new ca;ab=function(b,a){A?bb(b,a.Ed):cb(b,a.od())};bb=function(b,a){var g,c,h,k;c=g=0;for(h=b.length;g<h;++g)k=b[g],a.has(k)||(b[c++]=k);ya(b,c)};
cb=function(b,a){var g,c,k,h;c=g=0;for(k=b.length;g<k;++g)h=b[g],-1===Ba(a,h)&&(b[c++]=h);ya(b,c)};r.prototype.add=function(b){this.y=b-this.Tk;this.qk=this.X+this.y;this.Tk=this.qk-this.X-this.y;this.X=this.qk};r.prototype.reset=function(){this.X=this.qk=this.y=this.Tk=0};db=r;eb=function(b){return b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};e.prototype.$h=function(b){this.$p=b;this.hd=b.length/2;this.hb.length=b.length;this.Di=this.Ei=-1;this.Un=0};e.prototype.Wf=function(){return!this.$p.length};
e.prototype.wa=function(){for(var b=this.hb,a=b[0],g=a,c=b[1],h=c,k,d,v=1,y=this.hd;v<y;++v)d=2*v,k=b[d],d=b[d+1],k<a&&(a=k),k>g&&(g=k),d<c&&(c=d),d>h&&(h=d);this.xi=a;this.yi=g;this.Ai=c;this.wi=h};e.prototype.Ag=function(b,a,g){this.hb.length=8;this.hd=4;var c=this.hb;c[0]=b.left-a;c[1]=b.top-g;c[2]=b.right-a;c[3]=b.top-g;c[4]=b.right-a;c[5]=b.bottom-g;c[6]=b.left-a;c[7]=b.bottom-g;this.Ei=b.right-b.left;this.Di=b.bottom-b.top;this.wa()};e.prototype.zg=function(b,a,g,c,k){this.hb.length=8;this.hd=
4;var h=this.hb;h[0]=b.Ua-a;h[1]=b.Va-g;h[2]=b.Db-a;h[3]=b.Eb-g;h[4]=b.qb-a;h[5]=b.rb-g;h[6]=b.ob-a;h[7]=b.pb-g;this.Ei=c;this.Di=k;this.wa()};e.prototype.rq=function(b){this.hd=b.hd;za(this.hb,b.hb);this.xi=b.xi;this.Ai-b.Ai;this.yi=b.yi;this.wi=b.wi};e.prototype.If=function(b,a,g){if(this.Ei!==b||this.Di!==a||this.Un!==g){this.Ei=b;this.Di=a;this.Un=g;var c,h,k,d,v,y=0,m=1,t=this.$p,e=this.hb;0!==g&&(y=Math.sin(g),m=Math.cos(g));g=0;for(k=this.hd;g<k;g++)c=2*g,h=c+1,d=t[c]*b,v=t[h]*a,e[c]=d*m-v*
y,e[h]=v*m+d*y;this.wa()}};e.prototype.Ib=function(b,a){var g=this.hb;if(b===g[0]&&a===g[1])return!0;var c,h,k,d=this.hd,v=this.xi-110,y=this.Ai-101,m=this.yi+131,t=this.wi+120,e,f,x=0,C=0;for(c=0;c<d;c++)h=2*c,k=(c+1)%d*2,e=g[h],h=g[h+1],f=g[k],k=g[k+1],sa(v,y,b,a,e,h,f,k)&&x++,sa(m,t,b,a,e,h,f,k)&&C++;return 1===x%2||1===C%2};e.prototype.ih=function(b,a,g){var c=b.hb,h=this.hb;if(this.Ib(c[0]+a,c[1]+g)||b.Ib(h[0]-a,h[1]-g))return!0;var k,d,v,y,m,t,e,f,x,C,l,U;k=0;for(y=this.hd;k<y;k++)for(d=2*k,
v=(k+1)%y*2,f=h[d],d=h[d+1],x=h[v],C=h[v+1],v=0,e=b.hd;v<e;v++)if(m=2*v,t=(v+1)%e*2,l=c[m]+a,m=c[m+1]+g,U=c[t]+a,t=c[t+1]+g,sa(f,d,x,C,l,m,U,t))return!0;return!1};fb=e;a.prototype.Be=function(b,a,g){var c;c=this.cells[b];return c?(c=c[a])?c:g?(c=d(this,b,a),this.cells[b][a]=c):null:g?(c=d(this,b,a),this.cells[b]={},this.cells[b][a]=c):null};a.prototype.Vb=function(b){return O(b/this.Xk)};a.prototype.Wb=function(b){return O(b/this.Wk)};a.prototype.update=function(b,a,g){var c,h,k,d,v;if(a)for(c=a.left,
h=a.right;c<=h;++c)for(k=a.top,d=a.bottom;k<=d;++k)if(!g||!g.Ib(c,k))if(v=this.Be(c,k,!1))v.remove(b),v.Rd()&&(v.mb.clear(),1E3>G.length&&G.push(v),this.cells[c][k]=null);if(g)for(c=g.left,h=g.right;c<=h;++c)for(k=g.top,d=g.bottom;k<=d;++k)a&&a.Ib(c,k)||this.Be(c,k,!0).Rl(b)};a.prototype.bk=function(b,a){var g,c,h,k,d,v;g=this.Vb(b.left);h=this.Wb(b.top);c=this.Vb(b.right);for(d=this.Wb(b.bottom);g<=c;++g)for(k=h;k<=d;++k)(v=this.Be(g,k,!1))&&v.dump(a)};gb=a;c.prototype.Be=function(b,a,g){var c;c=
this.cells[b];return c?(c=c[a])?c:g?(c=h(this,b,a),this.cells[b][a]=c):null:g?(c=h(this,b,a),this.cells[b]={},this.cells[b][a]=c):null};c.prototype.Vb=function(b){return O(b/this.Xk)};c.prototype.Wb=function(b){return O(b/this.Wk)};c.prototype.update=function(b,a,g){var c,k,h,d,v;if(a)for(c=a.left,k=a.right;c<=k;++c)for(h=a.top,d=a.bottom;h<=d;++h)if(!g||!g.Ib(c,h))if(v=this.Be(c,h,!1))v.remove(b),v.Rd()&&(v.reset(),1E3>B.length&&B.push(v),this.cells[c][h]=null);if(g)for(c=g.left,k=g.right;c<=k;++c)for(h=
g.top,d=g.bottom;h<=d;++h)a&&a.Ib(c,h)||this.Be(c,h,!0).Rl(b)};c.prototype.bk=function(b,a,g,c,h){var k,d;b=this.Vb(b);a=this.Wb(a);g=this.Vb(g);for(k=this.Wb(c);b<=g;++b)for(c=a;c<=k;++c)(d=this.Be(b,c,!1))&&d.dump(h)};c.prototype.Ku=function(b){var a,g,c,h,k;a=b.left;c=b.top;g=b.right;for(h=b.bottom;a<=g;++a)for(b=c;b<=h;++b)if(k=this.Be(a,b,!1))k.Zf=!1};ib=c;var G=[];b.prototype.Rd=function(){return this.mb.Rd()};b.prototype.Rl=function(b){this.mb.add(b)};b.prototype.remove=function(b){this.mb.remove(b)};
b.prototype.dump=function(b){Aa(b,this.mb.od())};ba=b;var B=[];g.prototype.Rd=function(){if(!this.mb.length)return!0;if(this.mb.length>this.Bd.count())return!1;this.pl();return!0};g.prototype.Rl=function(b){this.Bd.contains(b)?(this.Bd.remove(b),this.Bd.Rd()&&(this.Og=!1)):this.mb.length?(this.mb[this.mb.length-1].Ic()>b.Ic()&&(this.Zf=!1),this.mb.push(b)):(this.mb.push(b),this.Zf=!0)};g.prototype.remove=function(b){this.Bd.add(b);this.Og=!0;30<=this.Bd.count()&&this.pl()};g.prototype.pl=function(){this.Og&&
(this.Bd.count()===this.mb.length?this.reset():(ab(this.mb,this.Bd),this.Bd.clear(),this.Og=!1))};g.prototype.Vs=function(){this.Zf||(this.mb.sort(k),this.Zf=!0)};g.prototype.reset=function(){V(this.mb);this.Zf=!0;this.Bd.clear();this.Og=!1};g.prototype.dump=function(b){this.pl();this.Vs();this.mb.length&&b.push(this.mb)};da=g;var u="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");jb=function(b){return 0>=b||11<=b?"source-over":
u[b-1]};kb=function(b,a,g){if(g)switch(b.Mb=g.ONE,b.Jb=g.ONE_MINUS_SRC_ALPHA,a){case 1:b.Mb=g.ONE;b.Jb=g.ONE;break;case 3:b.Mb=g.ONE;b.Jb=g.ZERO;break;case 4:b.Mb=g.ONE_MINUS_DST_ALPHA;b.Jb=g.ONE;break;case 5:b.Mb=g.DST_ALPHA;b.Jb=g.ZERO;break;case 6:b.Mb=g.ZERO;b.Jb=g.SRC_ALPHA;break;case 7:b.Mb=g.ONE_MINUS_DST_ALPHA;b.Jb=g.ZERO;break;case 8:b.Mb=g.ZERO;b.Jb=g.ONE_MINUS_SRC_ALPHA;break;case 9:b.Mb=g.DST_ALPHA;b.Jb=g.ONE_MINUS_SRC_ALPHA;break;case 10:b.Mb=g.ONE_MINUS_DST_ALPHA,b.Jb=g.SRC_ALPHA}};
lb=function(b){return Math.round(1E6*b)/1E6};mb=function(b,a){return"string"!==typeof b||"string"!==typeof a||b.length!==a.length?!1:b===a?!0:b.toLowerCase()===a.toLowerCase()};nb=function(b){b=b.target;return!b||b===document||b===window||document&&document.body&&b===document.body||mb(b.tagName,"canvas")?!0:!1}})();var fc="undefined"!==typeof Float32Array?Float32Array:Array;function gc(f){var l=new fc(3);f&&(l[0]=f[0],l[1]=f[1],l[2]=f[2]);return l}
function hc(f){var l=new fc(16);f&&(l[0]=f[0],l[1]=f[1],l[2]=f[2],l[3]=f[3],l[4]=f[4],l[5]=f[5],l[6]=f[6],l[7]=f[7],l[8]=f[8],l[9]=f[9],l[10]=f[10],l[11]=f[11],l[12]=f[12],l[13]=f[13],l[14]=f[14],l[15]=f[15]);return l}function ic(f,l){l[0]=f[0];l[1]=f[1];l[2]=f[2];l[3]=f[3];l[4]=f[4];l[5]=f[5];l[6]=f[6];l[7]=f[7];l[8]=f[8];l[9]=f[9];l[10]=f[10];l[11]=f[11];l[12]=f[12];l[13]=f[13];l[14]=f[14];l[15]=f[15]}
function jc(f,l){var n=l[0],q=l[1];l=l[2];f[0]*=n;f[1]*=n;f[2]*=n;f[3]*=n;f[4]*=q;f[5]*=q;f[6]*=q;f[7]*=q;f[8]*=l;f[9]*=l;f[10]*=l;f[11]*=l}
function kc(f,l,n,q){q||(q=hc());var p,r,e,a,c,d,b,h,g=f[0],k=f[1];f=f[2];r=n[0];e=n[1];p=n[2];n=l[1];d=l[2];g===l[0]&&k===n&&f===d?(f=q,f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1):(n=g-l[0],d=k-l[1],b=f-l[2],h=1/Math.sqrt(n*n+d*d+b*b),n*=h,d*=h,b*=h,l=e*b-p*d,p=p*n-r*b,r=r*d-e*n,(h=Math.sqrt(l*l+p*p+r*r))?(h=1/h,l*=h,p*=h,r*=h):r=p=l=0,e=d*r-b*p,a=b*l-n*r,c=n*p-d*l,(h=Math.sqrt(e*e+a*a+c*c))?(h=1/h,e*=h,a*=h,c*=h):c=a=e=0,
q[0]=l,q[1]=e,q[2]=n,q[3]=0,q[4]=p,q[5]=a,q[6]=d,q[7]=0,q[8]=r,q[9]=c,q[10]=b,q[11]=0,q[12]=-(l*g+p*k+r*f),q[13]=-(e*g+a*k+c*f),q[14]=-(n*g+d*k+b*f),q[15]=1)}
(function(){function f(a,c,d){this.Ee=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.ra=!!d;this.rj=this.jh=!1;this.cl=0;this.Hk=1;this.un=1E3;this.fw=(this.un-this.Hk)/32768;this.Uk=gc([0,0,100]);this.dp=gc([0,0,0]);this.Mq=gc([0,1,0]);this.mi=gc([1,1,1]);this.jo=!0;this.Jj=hc();this.yc=hc();this.cm=hc();this.bl=hc();this.u=a;this.version=0===this.u.getParameter(this.u.VERSION).indexOf("WebGL 2")?2:1;this.Io()}function l(a,c,d){this.u=a;this.ai=
c;this.name=d;this.Mc=a.getAttribLocation(c,"aPos");this.Ie=a.getAttribLocation(c,"aTex");this.bp=a.getUniformLocation(c,"matP");this.Ej=a.getUniformLocation(c,"matMV");this.fg=a.getUniformLocation(c,"opacity");this.im=a.getUniformLocation(c,"colorFill");this.cp=a.getUniformLocation(c,"samplerFront");this.Gh=a.getUniformLocation(c,"samplerBack");this.tf=a.getUniformLocation(c,"destStart");this.sf=a.getUniformLocation(c,"destEnd");this.Ih=a.getUniformLocation(c,"seconds");this.km=a.getUniformLocation(c,
"pixelWidth");this.jm=a.getUniformLocation(c,"pixelHeight");this.Fh=a.getUniformLocation(c,"layerScale");this.Eh=a.getUniformLocation(c,"layerAngle");this.Jh=a.getUniformLocation(c,"viewOrigin");this.Hh=a.getUniformLocation(c,"scrollPos");this.nu=!!(this.km||this.jm||this.Ih||this.Gh||this.tf||this.sf||this.Fh||this.Eh||this.Jh||this.Hh);this.lp=this.mp=-999;this.Ij=1;this.hp=this.gp=0;this.jp=this.fp=this.ep=1;this.pp=this.op=this.np=this.rp=this.qp=this.ip=0;this.am=[];this.kp=hc();this.fg&&a.uniform1f(this.fg,
1);this.im&&a.uniform4f(this.im,1,1,1,1);this.cp&&a.uniform1i(this.cp,0);this.Gh&&a.uniform1i(this.Gh,1);this.tf&&a.uniform2f(this.tf,0,0);this.sf&&a.uniform2f(this.sf,1,1);this.Fh&&a.uniform1f(this.Fh,1);this.Eh&&a.uniform1f(this.Eh,0);this.Jh&&a.uniform2f(this.Jh,0,0);this.Hh&&a.uniform2f(this.Hh,0,0);this.Ih&&a.uniform1f(this.Ih,0);this.hf=!1}function n(a,c){return a[0]===c[0]&&a[1]===c[1]&&a[2]===c[2]&&a[3]===c[3]&&a[4]===c[4]&&a[5]===c[5]&&a[6]===c[6]&&a[7]===c[7]&&a[8]===c[8]&&a[9]===c[9]&&
a[10]===c[10]&&a[11]===c[11]&&a[12]===c[12]&&a[13]===c[13]&&a[14]===c[14]&&a[15]===c[15]}function q(a,c){this.type=a;this.q=c;this.u=c.u;this.Jc=this.Nb=this.Mp=0;this.O=this.Rc=null;this.tq=[]}var p=hc();f.prototype.Io=function(){var a=this.u,c;this.Wo=1;this.of=this.nf=null;this.Oi=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.ra?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.Xo=a.ONE;this.Vo=a.ONE_MINUS_SRC_ALPHA;this.Dk=new Float32Array(8E3*(this.ra?3:2));this.rk=new Float32Array(16E3);this.Fm=new Float32Array(32E3);this.Em=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Em);a.bufferData(a.ARRAY_BUFFER,this.Fm.byteLength,a.DYNAMIC_DRAW);this.li=Array(4);this.fi=Array(4);for(c=0;4>c;c++)this.li[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.li[c]),a.bufferData(a.ARRAY_BUFFER,this.Dk.byteLength,a.DYNAMIC_DRAW),this.fi[c]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.fi[c]),a.bufferData(a.ARRAY_BUFFER,this.rk.byteLength,a.DYNAMIC_DRAW);this.Kd=0;this.qu=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.qu);for(var d=new Uint16Array(12E3),b=c=0;12E3>c;)d[c++]=b,d[c++]=b+1,d[c++]=b+2,d[c++]=b,d[c++]=b+2,d[c++]=b+3,b+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,d,a.STATIC_DRAW);this.tg=this.Eg=this.fe=0;this.Ja=[];c=this.ra?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";d=this.Tg({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},c,"<default>");this.Ja.push(d);d=this.Tg({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.Ja.push(d);d=this.Tg({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},c,"<earlyz>");this.Ja.push(d);d=this.Tg({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
c,"<fill>");this.Ja.push(d);for(var h in lc)lc.hasOwnProperty(h)&&this.Ja.push(this.Tg(lc[h],c,h));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Jd=[];this.td=0;this.Kb=this.xb=!1;this.ao=this.yh=-1;this.Mf=null;this.nl=a.createFramebuffer();this.Si=this.dk=null;this.Pn=!1;this.ra&&(this.Si=a.createRenderbuffer());this.Pe=gc([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.Mu=a[0];this.om=a[1];2048<this.om&&(this.om=2048);this.gc(0)};l.prototype.ln=function(a){n(this.kp,
a)||(ic(a,this.kp),this.u.uniformMatrix4fv(this.Ej,!1,a))};f.prototype.Tg=function(a,c,d){var b=this.u,h=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(h,a.src);b.compileShader(h);if(!b.getShaderParameter(h,b.COMPILE_STATUS))throw a=b.getShaderInfoLog(h),b.deleteShader(h),Error("error compiling fragment shader: "+a);var g=b.createShader(b.VERTEX_SHADER);b.shaderSource(g,c);b.compileShader(g);if(!b.getShaderParameter(g,b.COMPILE_STATUS))throw a=b.getShaderInfoLog(g),b.deleteShader(h),b.deleteShader(g),
Error("error compiling vertex shader: "+a);c=b.createProgram();b.attachShader(c,h);b.attachShader(c,g);b.linkProgram(c);if(!b.getProgramParameter(c,b.LINK_STATUS))throw a=b.getProgramInfoLog(c),b.deleteShader(h),b.deleteShader(g),b.deleteProgram(c),Error("error linking shader program: "+a);b.useProgram(c);b.deleteShader(h);b.deleteShader(g);h=new l(b,c,d);h.ll=a.ll||0;h.ml=a.ml||0;h.$n=!!a.$n;h.fd=!!a.fd;h.Nn=!!a.Nn;h.P=a.P||[];a=0;for(g=h.P.length;a<g;a++)h.P[a][1]=b.getUniformLocation(c,h.P[a][0]),
h.am.push(0),b.uniform1f(h.P[a][1],0);return h};f.prototype.El=function(a){var c,d;c=0;for(d=this.Ja.length;c<d;c++)if(this.Ja[c].name===a)return c;return-1};f.prototype.Zp=function(a,c,d){var b=this.yc,h=this.Jj,g=[0,0,0,0,0,0,0,0];g[0]=b[0]*a+b[4]*c+b[12];g[1]=b[1]*a+b[5]*c+b[13];g[2]=b[2]*a+b[6]*c+b[14];g[3]=b[3]*a+b[7]*c+b[15];g[4]=h[0]*g[0]+h[4]*g[1]+h[8]*g[2]+h[12]*g[3];g[5]=h[1]*g[0]+h[5]*g[1]+h[9]*g[2]+h[13]*g[3];g[6]=h[2]*g[0]+h[6]*g[1]+h[10]*g[2]+h[14]*g[3];g[7]=-g[2];0!==g[7]&&(g[7]=1/
g[7],g[4]*=g[7],g[5]*=g[7],g[6]*=g[7],d[0]=(.5*g[4]+.5)*this.width,d[1]=(.5*g[5]+.5)*this.height)};f.prototype.Zd=function(a,c,d){if(this.width!==a||this.height!==c||d){this.ze();d=this.u;this.width=a;this.height=c;d.viewport(0,0,a,c);kc(this.Uk,this.dp,this.Mq,this.yc);if(this.ra){var b=-a/2;a=a/2;var h=c/2;c=-c/2;var g=this.Hk,k=this.un,t=this.Jj;t||(t=hc());var e=a-b,f=c-h,m=k-g;t[0]=2/e;t[1]=0;t[2]=0;t[3]=0;t[4]=0;t[5]=2/f;t[6]=0;t[7]=0;t[8]=0;t[9]=0;t[10]=-2/m;t[11]=0;t[12]=-(b+a)/e;t[13]=-(c+
h)/f;t[14]=-(k+g)/m;t[15]=1;this.mi[0]=1;this.mi[1]=1}else c=a/c,b=this.Hk,a=this.un,t=this.Jj,k=b*Math.tan(45*Math.PI/360),c*=k,h=-c,g=-k,t||(t=hc()),e=c-h,f=k-g,m=a-b,t[0]=2*b/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*b/f,t[6]=0,t[7]=0,t[8]=(c+h)/e,t[9]=(k+g)/f,t[10]=-(a+b)/m,t[11]=-1,t[12]=0,t[13]=0,t[14]=-(a*b*2)/m,t[15]=0,b=[0,0],a=[0,0],this.Zp(0,0,b),this.Zp(1,1,a),this.mi[0]=1/(a[0]-b[0]),this.mi[1]=-1/(a[1]-b[1]);b=0;for(a=this.Ja.length;b<a;b++)h=this.Ja[b],h.hf=!1,h.bp&&(d.useProgram(h.ai),
d.uniformMatrix4fv(h.bp,!1,this.Jj));d.useProgram(this.Ja[this.yh].ai);d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE1);d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE0);this.of=this.nf=null;this.Si&&(d.bindFramebuffer(d.FRAMEBUFFER,this.nl),d.bindRenderbuffer(d.RENDERBUFFER,this.Si),d.renderbufferStorage(d.RENDERBUFFER,d.DEPTH_COMPONENT16,this.width,this.height),this.Pn||(d.framebufferRenderbuffer(d.FRAMEBUFFER,d.DEPTH_ATTACHMENT,d.RENDERBUFFER,this.Si),this.Pn=!0),d.bindRenderbuffer(d.RENDERBUFFER,
null),d.bindFramebuffer(d.FRAMEBUFFER,null),this.dk=null)}};f.prototype.Dd=function(){kc(this.Uk,this.dp,this.Mq,this.yc);jc(this.yc,this.mi)};f.prototype.translate=function(a,c){if(0!==a||0!==c){this.Pe[0]=a;this.Pe[1]=c;this.Pe[2]=0;var d=this.yc,b=this.Pe,h=b[0],g=b[1],b=b[2];d[12]=d[0]*h+d[4]*g+d[8]*b+d[12];d[13]=d[1]*h+d[5]*g+d[9]*b+d[13];d[14]=d[2]*h+d[6]*g+d[10]*b+d[14];d[15]=d[3]*h+d[7]*g+d[11]*b+d[15]}};f.prototype.scale=function(a,c){if(1!==a||1!==c)this.Pe[0]=a,this.Pe[1]=c,this.Pe[2]=
1,jc(this.yc,this.Pe)};f.prototype.Pm=function(a){if(0!==a){var c=this.yc,d,b=Math.sin(a);a=Math.cos(a);var h=c[0],g=c[1],k=c[2],t=c[3],e=c[4],f=c[5],m=c[6],x=c[7];d?c!==d&&(d[8]=c[8],d[9]=c[9],d[10]=c[10],d[11]=c[11],d[12]=c[12],d[13]=c[13],d[14]=c[14],d[15]=c[15]):d=c;d[0]=h*a+e*b;d[1]=g*a+f*b;d[2]=k*a+m*b;d[3]=t*a+x*b;d[4]=h*-b+e*a;d[5]=g*-b+f*a;d[6]=k*-b+m*a;d[7]=t*-b+x*a}};f.prototype.nd=function(){if(!n(this.cm,this.yc)){var a=this.cc();a.type=5;a.O?ic(this.yc,a.O):a.O=hc(this.yc);ic(this.yc,
this.cm);this.Kb=this.xb=!1}};f.prototype.ik=function(a){this.ra&&(32760<a&&(a=32760),this.cl=this.Uk[2]-this.Hk-a*this.fw)};q.prototype.Fs=function(){var a=this.u,c=this.q;0!==this.Nb?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,c.nl),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),c.rj=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),c.rj=
!1)};q.prototype.Js=function(){this.u.bindTexture(this.u.TEXTURE_2D,this.Rc)};q.prototype.Ks=function(){var a=this.u;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Rc);a.activeTexture(a.TEXTURE0)};q.prototype.Gs=function(){var a=this.Mp,c=this.q;c.Oi=a;c=c.Mf;c.fg&&c.Ij!==a&&(c.Ij=a,this.u.uniform1f(c.fg,a))};q.prototype.As=function(){this.u.drawElements(this.u.TRIANGLES,this.Jc,this.u.UNSIGNED_SHORT,this.Nb)};q.prototype.Cs=function(){this.u.blendFunc(this.Nb,this.Jc)};q.prototype.Ls=
function(){var a,c,d,b=this.q.Ja,h=this.q.ao;a=0;for(c=b.length;a<c;a++)d=b[a],a===h&&d.Ej?(d.ln(this.O),d.hf=!0):d.hf=!1;ic(this.O,this.q.bl)};q.prototype.Bs=function(){var a=this.u,c=this.q;this.Rc?(c.of===this.Rc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),c.of=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,c.nl),c.rj||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Rc,0)):(c.ra||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,
a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};q.prototype.xs=function(){var a=this.u,c=this.Nb;0===c?(a.clearColor(this.O[0],this.O[1],this.O[2],this.O[3]),a.clear(a.COLOR_BUFFER_BIT)):1===c?(a.enable(a.SCISSOR_TEST),a.scissor(this.O[0],this.O[1],this.O[2],this.O[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};q.prototype.Es=function(){var a=this.u;0!==this.Nb?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};q.prototype.zs=
function(){var a=this.u,c=this.q;c.ra&&a.disable(a.DEPTH_TEST);var d=c.Ja[1];a.useProgram(d.ai);!d.hf&&d.Ej&&(d.ln(c.bl),d.hf=!0);a.enableVertexAttribArray(d.Mc);a.bindBuffer(a.ARRAY_BUFFER,c.Em);a.vertexAttribPointer(d.Mc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Nb/4,this.Jc);d=c.Mf;a.useProgram(d.ai);0<=d.Mc&&(a.enableVertexAttribArray(d.Mc),a.bindBuffer(a.ARRAY_BUFFER,c.li[c.Kd]),a.vertexAttribPointer(d.Mc,c.ra?3:2,a.FLOAT,!1,0,0));0<=d.Ie&&(a.enableVertexAttribArray(d.Ie),a.bindBuffer(a.ARRAY_BUFFER,
c.fi[c.Kd]),a.vertexAttribPointer(d.Ie,2,a.FLOAT,!1,0,0));c.ra&&a.enable(a.DEPTH_TEST)};q.prototype.Hs=function(){var a=this.u,c=this.q,d=c.Ja[this.Nb];c.ao=this.Nb;c.Mf=d;a.useProgram(d.ai);!d.hf&&d.Ej&&(d.ln(c.bl),d.hf=!0);d.fg&&d.Ij!==c.Oi&&(d.Ij=c.Oi,a.uniform1f(d.fg,c.Oi));0<=d.Mc&&(a.enableVertexAttribArray(d.Mc),a.bindBuffer(a.ARRAY_BUFFER,c.li[c.Kd]),a.vertexAttribPointer(d.Mc,c.ra?3:2,a.FLOAT,!1,0,0));0<=d.Ie&&(a.enableVertexAttribArray(d.Ie),a.bindBuffer(a.ARRAY_BUFFER,c.fi[c.Kd]),a.vertexAttribPointer(d.Ie,
2,a.FLOAT,!1,0,0))};q.prototype.Ds=function(){var a=this.O;this.u.uniform4f(this.q.Mf.im,a[0],a[1],a[2],a[3])};q.prototype.Is=function(){var a,c,d=this.q.Mf,b=this.u;a=this.O;d.Gh&&this.q.of!==this.Rc&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,this.Rc),this.q.of=this.Rc,b.activeTexture(b.TEXTURE0));var h=a[0];d.km&&h!==d.mp&&(d.mp=h,b.uniform1f(d.km,h));h=a[1];d.jm&&h!==d.lp&&(d.lp=h,b.uniform1f(d.jm,h));h=a[2];c=a[3];!d.tf||h===d.gp&&c===d.hp||(d.gp=h,d.hp=c,b.uniform2f(d.tf,h,c));
h=a[4];c=a[5];!d.sf||h===d.ep&&c===d.fp||(d.ep=h,d.fp=c,b.uniform2f(d.sf,h,c));h=a[6];d.Fh&&h!==d.jp&&(d.jp=h,b.uniform1f(d.Fh,h));h=a[7];d.Eh&&h!==d.ip&&(d.ip=h,b.uniform1f(d.Eh,h));h=a[8];c=a[9];!d.Jh||h===d.qp&&c===d.rp||(d.qp=h,d.rp=c,b.uniform2f(d.Jh,h,c));h=a[10];c=a[11];!d.Hh||h===d.np&&c===d.op||(d.np=h,d.op=c,b.uniform2f(d.Hh,h,c));h=a[12];d.Ih&&h!==d.pp&&(d.pp=h,b.uniform1f(d.Ih,h));if(d.P.length)for(a=0,c=d.P.length;a<c;a++)h=this.tq[a],h!==d.am[a]&&(d.am[a]=h,b.uniform1f(d.P[a][1],h))};
f.prototype.cc=function(){this.td===this.Jd.length&&this.Jd.push(new q(0,this));return this.Jd[this.td++]};f.prototype.ze=function(){if(0!==this.td&&!this.u.isContextLost()){var a=this.u;0<this.tg&&(a.bindBuffer(a.ARRAY_BUFFER,this.Em),a.bufferSubData(a.ARRAY_BUFFER,0,this.Fm.subarray(0,this.tg)),c&&0<=c.Mc&&"<point>"===c.name&&a.vertexAttribPointer(c.Mc,4,a.FLOAT,!1,0,0));if(0<this.fe){var c=this.Mf;a.bindBuffer(a.ARRAY_BUFFER,this.li[this.Kd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Dk.subarray(0,
this.fe));c&&0<=c.Mc&&"<point>"!==c.name&&a.vertexAttribPointer(c.Mc,this.ra?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.fi[this.Kd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.rk.subarray(0,this.Eg));c&&0<=c.Ie&&"<point>"!==c.name&&a.vertexAttribPointer(c.Ie,2,a.FLOAT,!1,0,0)}for(var d,a=0,c=this.td;a<c;a++)switch(d=this.Jd[a],d.type){case 1:d.As();break;case 2:d.Js();break;case 3:d.Gs();break;case 4:d.Cs();break;case 5:d.Ls();break;case 6:d.Bs();break;case 7:d.xs();break;case 8:d.zs();break;
case 9:d.Hs();break;case 10:d.Is();break;case 11:d.Ks();break;case 12:d.Ds();break;case 13:d.Es();break;case 14:d.Fs()}this.tg=this.Eg=this.fe=this.td=0;this.rj=this.Kb=this.xb=!1;this.Kd++;4<=this.Kd&&(this.Kd=0)}};f.prototype.yf=function(a){if(a!==this.Wo&&!this.jh){var c=this.cc();c.type=3;this.Wo=c.Mp=a;this.Kb=this.xb=!1}};f.prototype.qc=function(a){if(a!==this.nf){var c=this.cc();c.type=2;this.nf=c.Rc=a;this.Kb=this.xb=!1}};f.prototype.Ne=function(a,c){if((a!==this.Xo||c!==this.Vo)&&!this.jh){var d=
this.cc();d.type=4;d.Nb=a;d.Jc=c;this.Xo=a;this.Vo=c;this.Kb=this.xb=!1}};f.prototype.jq=function(){this.Ne(this.u.ONE,this.u.ONE_MINUS_SRC_ALPHA)};f.prototype.vg=function(a,c,d,b,h,g,k,t){15992<=this.fe&&this.ze();var e=this.fe,f=this.Eg,m=this.Dk,x=this.rk,l=this.cl;if(this.xb)this.Jd[this.td-1].Jc+=6;else{var r=this.cc();r.type=1;r.Nb=this.ra?e:e/2*3;r.Jc=6;this.xb=!0;this.Kb=!1}this.ra?(m[e++]=a,m[e++]=c,m[e++]=l,m[e++]=d,m[e++]=b,m[e++]=l,m[e++]=h,m[e++]=g,m[e++]=l,m[e++]=k,m[e++]=t,m[e++]=l):
(m[e++]=a,m[e++]=c,m[e++]=d,m[e++]=b,m[e++]=h,m[e++]=g,m[e++]=k,m[e++]=t);x[f++]=0;x[f++]=0;x[f++]=1;x[f++]=0;x[f++]=1;x[f++]=1;x[f++]=0;x[f++]=1;this.fe=e;this.Eg=f};f.prototype.Me=function(a,c,d,b,h,g,k,t,e){15992<=this.fe&&this.ze();var f=this.fe,m=this.Eg,x=this.Dk,l=this.rk,r=this.cl;if(this.xb)this.Jd[this.td-1].Jc+=6;else{var p=this.cc();p.type=1;p.Nb=this.ra?f:f/2*3;p.Jc=6;this.xb=!0;this.Kb=!1}var p=e.left,n=e.top,q=e.right;e=e.bottom;this.ra?(x[f++]=a,x[f++]=c,x[f++]=r,x[f++]=d,x[f++]=b,
x[f++]=r,x[f++]=h,x[f++]=g,x[f++]=r,x[f++]=k,x[f++]=t,x[f++]=r):(x[f++]=a,x[f++]=c,x[f++]=d,x[f++]=b,x[f++]=h,x[f++]=g,x[f++]=k,x[f++]=t);l[m++]=p;l[m++]=n;l[m++]=q;l[m++]=n;l[m++]=q;l[m++]=e;l[m++]=p;l[m++]=e;this.fe=f;this.Eg=m};f.prototype.dv=function(a,c,d,b){7996<=this.tg&&this.ze();var h=this.tg,g=this.Fm;if(this.Kb)this.Jd[this.td-1].Jc++;else{var k=this.cc();k.type=8;k.Nb=h;k.Jc=1;this.Kb=!0;this.xb=!1}g[h++]=a;g[h++]=c;g[h++]=d;g[h++]=b;this.tg=h};f.prototype.gc=function(a){if(this.yh!==
a){if(!this.Ja[a]){if(0===this.yh)return;a=0}var c=this.cc();c.type=9;this.yh=c.Nb=a;this.Kb=this.xb=!1}};f.prototype.Rh=function(a){a=this.Ja[a];return!(!a.tf&&!a.sf)};f.prototype.Im=function(a){a=this.Ja[a];return!!(a.tf||a.sf||a.$n)};f.prototype.Hm=function(a){return this.Ja[a].fd};f.prototype.qv=function(a){a=this.Ja[a];return 0!==a.ll||0!==a.ml};f.prototype.Wt=function(a){return this.Ja[a].ll};f.prototype.Xt=function(a){return this.Ja[a].ml};f.prototype.Yt=function(a,c){return this.Ja[a].P[c][2]};
f.prototype.$j=function(a){return this.Ja[a].Nn};f.prototype.yg=function(a,c,d,b,h,g,k,t,e,f,m,x,l,r,p){var n=this.Ja[this.yh],q,B;if(n.nu||p.length){q=this.cc();q.type=10;q.O?ic(this.yc,q.O):q.O=hc();B=q.O;B[0]=c;B[1]=d;B[2]=b;B[3]=h;B[4]=g;B[5]=k;B[6]=t;B[7]=e;B[8]=f;B[9]=m;B[10]=x;B[11]=l;B[12]=r;n.Gh?q.Rc=a:q.Rc=null;if(p.length)for(d=q.tq,d.length=p.length,a=0,c=p.length;a<c;a++)d[a]=p[a];this.Kb=this.xb=!1}};f.prototype.clear=function(a,c,d,b){var h=this.cc();h.type=7;h.Nb=0;h.O||(h.O=hc());
h.O[0]=a;h.O[1]=c;h.O[2]=d;h.O[3]=b;this.Kb=this.xb=!1};f.prototype.clearRect=function(a,c,d,b){if(!(0>d||0>b)){var h=this.cc();h.type=7;h.Nb=1;h.O||(h.O=hc());h.O[0]=a;h.O[1]=c;h.O[2]=d;h.O[3]=b;this.Kb=this.xb=!1}};f.prototype.mq=function(a){if(this.ra&&(a=!!a,this.jh!==a)){var c=this.cc();c.type=14;c.Nb=a?1:0;this.Kb=this.xb=!1;this.jh=a;this.dk=null;this.jh?this.gc(2):this.gc(0)}};f.prototype.lq=function(a){if(this.ra){var c=this.cc();c.type=13;c.Nb=a?1:0;this.Kb=this.xb=!1}};f.prototype.vo=function(){ic(this.cm,
p);this.Dd();this.nd();var a=this.width/2,c=this.height/2;this.vg(-a,c,a,c,a,-c,-a,-c);ic(p,this.yc);this.nd()};f.prototype.kq=function(a,c,d){this.gc(3);var b=this.cc();b.type=12;b.O||(b.O=hc());b.O[0]=a;b.O[1]=c;b.O[2]=d;b.O[3]=1;this.Kb=this.xb=!1};f.prototype.Mv=function(){this.gc(0)};f.prototype.yv=function(){this.gc(2)};f.prototype.pv=function(){this.ze();this.u.flush()};var r=[],e={};f.prototype.qs=function(){V(r);e={}};f.prototype.eg=function(a,c,d,b){c=!!c;d=!!d;var h=a.src+","+c+","+d+(c?
",undefined":""),g=null;if("undefined"!==typeof a.src&&e.hasOwnProperty(h))return g=e[h],g.Ci++,g;this.ze();var k=this.u,t=ja(a.width)&&ja(a.height),g=k.createTexture();k.bindTexture(k.TEXTURE_2D,g);k.pixelStorei(k.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var f=k.RGBA,l=k.RGBA,m=k.UNSIGNED_BYTE;if(b&&!this.Ee)switch(b){case 1:l=f=k.RGB;break;case 2:m=k.UNSIGNED_SHORT_4_4_4_4;break;case 3:m=k.UNSIGNED_SHORT_5_5_5_1;break;case 4:l=f=k.RGB,m=k.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!t&&c){b=document.createElement("canvas");
b.width=ka(a.width);b.height=ka(a.height);var x=b.getContext("2d");"undefined"!==typeof x.imageSmoothingEnabled?x.imageSmoothingEnabled=d:(x.webkitImageSmoothingEnabled=d,x.mozImageSmoothingEnabled=d,x.msImageSmoothingEnabled=d);x.drawImage(a,0,0,a.width,a.height,0,0,b.width,b.height);k.texImage2D(k.TEXTURE_2D,0,f,l,m,b)}else k.texImage2D(k.TEXTURE_2D,0,f,l,m,a);c?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.REPEAT),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.REPEAT)):(k.texParameteri(k.TEXTURE_2D,
k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE));d?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.LINEAR),(t||2<=this.version)&&this.jo?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR_MIPMAP_LINEAR),k.generateMipmap(k.TEXTURE_2D)):k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.NEAREST),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.NEAREST));k.bindTexture(k.TEXTURE_2D,
null);this.nf=null;g.Ue=a.width;g.Te=a.height;g.Ci=1;g.Tn=h;r.push(g);return e[h]=g};f.prototype.Ec=function(a,c,d){var b;this.ze();var h=this.u;this.Ee&&(b=!1);var g=h.createTexture();h.bindTexture(h.TEXTURE_2D,g);h.texImage2D(h.TEXTURE_2D,0,h.RGBA,a,c,0,h.RGBA,b?h.UNSIGNED_SHORT_4_4_4_4:h.UNSIGNED_BYTE,null);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,d?h.LINEAR:h.NEAREST);
h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,d?h.LINEAR:h.NEAREST);h.bindTexture(h.TEXTURE_2D,null);this.nf=null;g.Ue=a;g.Te=c;r.push(g);return g};f.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Ci&&1<a.Ci?a.Ci--:(this.ze(),a===this.nf&&(this.u.bindTexture(this.u.TEXTURE_2D,null),this.nf=null),a===this.of&&(this.u.activeTexture(this.u.TEXTURE1),this.u.bindTexture(this.u.TEXTURE_2D,null),this.u.activeTexture(this.u.TEXTURE0),this.of=null),Ea(r,a),"undefined"!==typeof a.Tn&&delete e[a.Tn],
this.u.deleteTexture(a)))};f.prototype.Pc=function(a){if(a!==this.dk){var c=this.cc();c.type=6;this.dk=c.Rc=a;this.Kb=this.xb=!1}};ob=f})();
(function(){function f(b){if(b&&(b.getContext||b.dc)&&!b.c2runtime){b.c2runtime=this;var a=this;this.Qd=(this.sj=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2iscordova&&window.c2iscordova;this.Qb=!!b.dc;this.Oo="undefined"!==typeof window.AppMobi||
this.Qb;this.Kc=!!window.c2cocoonjs;this.bd=!!window.c2ejecta;this.Kc&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.bd&&(document.addEventListener("pagehide",function(){a.setSuspended(!0)}),document.addEventListener("pageshow",function(){a.setSuspended(!1)}),document.addEventListener("resize",function(){a.setSize(window.innerWidth,window.innerHeight)}));this.bb=this.Qb||this.Kc||this.bd;this.mh=
/edge\//i.test(navigator.userAgent);this.Ee=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.mh;this.Qo=/tizen/i.test(navigator.userAgent);this.pj=/android/i.test(navigator.userAgent)&&!this.Qo&&!this.Ee&&!this.mh;this.Uo=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Ee&&!this.mh;this.Fu=/ipad/i.test(navigator.userAgent);this.uh=this.Uo||this.Fu||this.bd;this.Tl=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.Ee&&!this.mh;this.No=/amazonwebappplatform/i.test(navigator.userAgent);this.xu=/firefox/i.test(navigator.userAgent);this.Bu=/safari/i.test(navigator.userAgent)&&!this.Tl&&!this.Ee&&!this.mh;this.Du=/windows/i.test(navigator.userAgent);this.tj="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.So=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.Eu=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.qh=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Zl=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Ro=!!window.cr_windows10;this.Cu=this.So||this.Eu||this.Zl||this.Ro;this.vu=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.qj=this.pj&&!this.Tl&&!this.sj&&!this.xu&&!this.No&&!this.bb;this.devicePixelRatio=
1;this.Uf=this.Qd||this.sj||this.Oo||this.Kc||this.pj||this.uh||this.qh||this.Zl||this.vu||this.Qo||this.bd;this.Uf||(this.Uf=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.uj=!!(this.uh&&this.Qd&&window.webkit);"undefined"===typeof cr_is_preview||this.tj||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.tj=!0);this.canvas=b;this.Vn=document.getElementById("c2canvasdiv");
this.q=this.u=null;this.Fl="(unavailable)";this.ra=!1;this.$e=0;this.Ga=null;this.Zi=!1;this.Gp=this.Hp=0;this.canvas.oncontextmenu=function(b){b.preventDefault&&b.preventDefault();return!1};this.canvas.onselectstart=function(b){b.preventDefault&&b.preventDefault();return!1};this.Qb&&(window.c2runtime=this);this.tj&&(window.ondragover=function(b){b.preventDefault();return!1},window.ondrop=function(b){b.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());
this.qj&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=b.width;this.height=b.height;this.F=this.width;this.D=this.height;this.Mi=this.width;this.Vg=this.height;this.bg=window.innerWidth;this.ag=window.innerHeight;this.ja=!0;this.ph=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.m=[];this.Fa=[];this.gm={};this.dd=[];this.kl={};this.Md=[];this.Mg=[];this.xk=[];this.Mk=[];this.gs=[];this.Xe={};this.Vl=this.Ce=!1;
this.cd=0;this.Ul=this.Xl=!1;this.Yc=[];this.kh=!1;this.Aj=this.Tm="";this.eb=null;this.Sd="";this.di=this.wq=!1;this.Yi=[];this.Ze=this.Ye=0;this.vp=30;this.al=this.Kh=0;this.Ig=1;this.yb=new db;this.ge=new db;this.Lj=this.bj=this.Yg=this.Gg=this.qf=this.ql=this.xj=0;this.Rg=null;this.gl=[];this.jl=[];this.Ui=-1;this.lm=[[]];this.gn=this.Fj=0;this.ak(null);this.nm=[];this.Hj=-1;this.Ap=this.Nh=0;this.fm=!0;this.Zg=0;this.ei=[];this.cn=this.Jm=-1;this.vh=!0;this.Dj=0;this.nh=!1;this.Ov=0;this.Gf=
null;this.kc=this.Eo=!1;this.Ep=new ca;this.tm=new ca;this.Fp=new ca;this.dq=[];this.kd=new fb([]);this.an=new fb([]);this.pe=[];this.eh={};this.ue={};this.me={};this.Lg={};this.Qn={};this.$o=this.zj=this.Pa=this.cb=this.Zo=this.yj=this.ka=null;this.Jg=this.$l=!1;this.rl=[null,null];this.ef=0;this.ol="";this.Vd={};this.ci=this.Ge=null;this.xq="";this.Kj=[];this.xv()}}function l(b,a){return 128>=a?b[3]:256>=a?b[2]:512>=a?b[1]:b[0]}function n(){try{return!!window.indexedDB}catch(b){return!1}}function q(b){b.target.result.createObjectStore("saves",
{keyPath:"slot"})}function p(b,a,g,c){try{var h=indexedDB.open("_C2SaveStates");h.onupgradeneeded=q;h.onerror=c;h.onsuccess=function(h){h=h.target.result;h.onerror=c;h.transaction(["saves"],"readwrite").objectStore("saves").put({slot:b,data:a}).onsuccess=g}}catch(k){c(k)}}function r(b,a,g){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=q;c.onerror=g;c.onsuccess=function(c){c=c.target.result;c.onerror=g;var h=c.transaction(["saves"]).objectStore("saves").get(b);h.onsuccess=function(){h.result?
a(h.result.data):a(null)}}}catch(h){g(h)}}function e(){ea("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function a(b){var a,g={};for(a in b)!b.hasOwnProperty(a)||b[a]instanceof ca||b[a]&&"undefined"!==typeof b[a].$w||"spriteCreatedDestroyCallback"!==a&&(g[a]=b[a]);return g}var c=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||
window.msRequestAnimationFrame||window.oRequestAnimationFrame;f.prototype.xv=function(){var b=this;if(this.uj)this.Et(function(a){b.Dh(JSON.parse(a))},function(){alert("Error fetching data.js")});else{var a;this.qh?a=new ActiveXObject("Microsoft.XMLHTTP"):a=new XMLHttpRequest;var g="data.js";if(this.So||this.qh||this.Zl||this.Ro)g="data.json";a.open("GET",g,!0);var c=!1;if(!this.bb&&"response"in a&&"responseType"in a)try{a.responseType="json",c="json"===a.responseType}catch(h){c=!1}if(!c&&"responseType"in
a)try{a.responseType="text"}catch(k){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(d){}this.qh?a.onreadystatechange=function(){4===a.readyState&&b.Dh(JSON.parse(a.responseText))}:(a.onload=function(){if(c)b.Dh(a.response);else if(b.bd){var g=a.responseText,g=g.substr(g.indexOf("{"));b.Dh(JSON.parse(g))}else b.Dh(JSON.parse(a.responseText))},a.onerror=function(b){fa("Error requesting "+g+":");fa(b)});a.send()}};f.prototype.ru=function(){var b=this,a,g,c,
h,k,d,m,t,e;this.mf=(!this.bb||this.bd||this.Qd)&&this.aw&&!this.qj;0===this.Pb&&this.uh&&(this.mf=!1);this.devicePixelRatio=this.mf?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Gb();0<this.Pb&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(a){a.preventDefault();b.Pu();ea("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",
function(){b.q.Io();b.q.Zd(b.q.width,b.q.height,!0);b.cb=null;b.Pa=null;b.rl[0]=null;b.rl[1]=null;b.Qu();b.ja=!0;ea("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.Ts&&(this.Kc||this.bd||!this.bb)&&(a={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.u=this.canvas.getContext("webgl2",a)||this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",a))}catch(f){}if(this.u){if(a=this.u.getExtension("WEBGL_debug_renderer_info"))this.Fl=
this.u.getParameter(a.UNMASKED_RENDERER_WEBGL)+" ["+this.u.getParameter(a.UNMASKED_VENDOR_WEBGL)+"]";this.ra&&(this.Fl+=" [front-to-back enabled]");this.bb||(this.Ab=document.createElement("canvas"),jQuery(this.Ab).appendTo(this.canvas.parentNode),this.Ab.oncontextmenu=function(){return!1},this.Ab.onselectstart=function(){return!1},this.Ab.width=Math.round(this.Mi*this.devicePixelRatio),this.Ab.height=Math.round(this.Vg*this.devicePixelRatio),jQuery(this.Ab).css({width:this.Mi+"px",height:this.Vg+
"px"}),this.Yp(),this.Dm=this.Ab.getContext("2d"));this.q=new ob(this.u,this.Uf,this.ra);this.q.Zd(this.canvas.width,this.canvas.height);this.q.jo=0!==this.Ms;this.Ga=null;a=0;for(g=this.m.length;a<g;a++)for(k=this.m[a],c=0,h=k.K.length;c<h;c++)m=k.K[c],m.Sa=this.q.El(m.id),m.fd=this.q.Hm(m.Sa),this.Jg=this.Jg||this.q.Rh(m.Sa);a=0;for(g=this.dd.length;a<g;a++){t=this.dd[a];c=0;for(h=t.K.length;c<h;c++)m=t.K[c],m.Sa=this.q.El(m.id),m.fd=this.q.Hm(m.Sa);t.md();c=0;for(h=t.L.length;c<h;c++){e=t.L[c];
k=0;for(d=e.K.length;k<d;k++)m=e.K[k],m.Sa=this.q.El(m.id),m.fd=this.q.Hm(m.Sa),this.Jg=this.Jg||this.q.Rh(m.Sa);e.md()}}}else{if(0<this.Pb&&this.Qb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Ga=AppMobi.canvas.getContext("2d");try{this.Ga.samplingMode=this.za?"smooth":"sharp",this.Ga.globalScale=1,this.Ga.HTML5CompatibilityMode=!0,this.Ga.imageSmoothingEnabled=this.za}catch(x){}0!==this.width&&0!==this.height&&(this.Ga.width=this.width,
this.Ga.height=this.height)}this.Ga||(this.Kc?(a={antialias:!!this.za,alpha:!0},this.Ga=this.canvas.getContext("2d",a)):(a={alpha:!0},this.Ga=this.canvas.getContext("2d",a)),this.hk(this.Ga,this.za));this.Dm=this.Ab=null}this.Eq=function(a){b.ib(!1,a)};window==window.top||this.bb||this.Cu||this.qh||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Kc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),
-1<window.location.search.indexOf("continuous")&&(ea("Reloading for continuous preview"),this.Aj="__c2_continuouspreview",this.di=!0),this.bv&&!this.Uf&&(jQuery(window).focus(function(){b.setSuspended(!1)}),jQuery(window).blur(function(){var a=window.parent;a&&a.document.hasFocus()||b.setSuspended(!0)})));window.addEventListener("blur",function(){b.qg()});this.bb||(a=function(b){if(nb(b)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(a){}},
"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",a):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",a):document.addEventListener("touchstart",a),document.addEventListener("mousedown",a));0===this.Pb&&this.mf&&1<this.devicePixelRatio&&this.setSize(this.gb,this.fb,!0);this.Jq();this.ku();this.go();this.ya={}};f.prototype.setSize=function(b,a,g){var c=0,h=0,k=0,d=0,d=0;if(this.bg!==b||this.ag!==a||g){this.bg=b;this.ag=a;var m=this.Pb;if((k=(document.mozFullScreen||
document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.nh)&&!this.Qd)||0!==this.Pb||g)k&&0<this.ef&&(m=this.ef),g=this.devicePixelRatio,4<=m?(k=this.gb/this.fb,b/a>k?(k*=a,5===m?(d=k*g/this.gb,1<d?d=Math.floor(d):1>d&&(d=1/Math.ceil(1/d)),k=this.gb*d/g,d=this.fb*d/g,c=(b-k)/2,h=(a-d)/2,b=k,a=d):(c=(b-k)/2,b=k)):(d=b/k,5===m?(d=d*g/this.fb,1<d?d=Math.floor(d):1>d&&(d=1/Math.ceil(1/d)),k=this.gb*d/g,d=this.fb*d/g,c=(b-k)/2,h=(a-d)/2,b=k):h=(a-d)/2,a=d)):this.tj&&this.nh&&
0===this.wo&&(c=Math.floor((b-this.gb)/2),h=Math.floor((a-this.fb)/2),b=this.gb,a=this.fb),2>m&&(this.Qg=g),this.Mi=Math.round(b),this.Vg=Math.round(a),this.width=Math.round(b*g),this.height=Math.round(a*g),this.ja=!0,this.Uq?(this.F=this.width,this.D=this.height,this.tc=!0):this.width<this.gb&&this.height<this.fb||1===m?(this.F=this.width,this.D=this.height,this.tc=!0):(this.F=this.gb,this.D=this.fb,this.tc=!1,2===m?(k=this.gb/this.fb,m=this.bg/this.ag,m<k?this.F=this.D*m:m>k&&(this.D=this.F/m)):
3===m&&(k=this.gb/this.fb,m=this.bg/this.ag,m>k?this.F=this.D*m:m<k&&(this.D=this.F/m))),this.Vn&&!this.bb&&(jQuery(this.Vn).css({width:Math.round(b)+"px",height:Math.round(a)+"px","margin-left":Math.floor(c)+"px","margin-top":Math.floor(h)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(b)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(b*g),this.canvas.height=Math.round(a*g),this.bd?(this.canvas.style.left=Math.floor(c)+"px",this.canvas.style.top=
Math.floor(h)+"px",this.canvas.style.width=Math.round(b)+"px",this.canvas.style.height=Math.round(a)+"px"):this.mf&&!this.bb&&(this.canvas.style.width=Math.round(b)+"px",this.canvas.style.height=Math.round(a)+"px")),this.Ab&&(this.Ab.width=Math.round(b*g),this.Ab.height=Math.round(a*g),this.Ab.style.width=this.Mi+"px",this.Ab.style.height=this.Vg+"px"),this.q&&this.q.Zd(Math.round(b*g),Math.round(a*g)),this.Qb&&this.Ga&&(this.Ga.width=Math.round(b),this.Ga.height=Math.round(a)),this.Ga&&this.hk(this.Ga,
this.za),this.Jq(),this.Uo&&!this.Qd&&window.scrollTo(0,0)}};f.prototype.Jq=function(){if(this.js&&0!==this.Cm){var b="portrait";2===this.Cm&&(b="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(b).catch(function(){}):screen.lockOrientation?screen.lockOrientation(b):screen.webkitLockOrientation?screen.webkitLockOrientation(b):screen.mozLockOrientation?screen.mozLockOrientation(b):screen.msLockOrientation&&screen.msLockOrientation(b)}catch(a){console&&console.warn&&
console.warn("Failed to lock orientation: ",a)}}};f.prototype.Pu=function(){this.q.qs();this.$l=!0;var b,a,g;b=0;for(a=this.m.length;b<a;b++)g=this.m[b],g.Mj&&g.Mj()};f.prototype.Qu=function(){this.$l=!1;var b,a,g;b=0;for(a=this.m.length;b<a;b++)g=this.m[b],g.Oj&&g.Oj()};f.prototype.Yp=function(){if(!this.bb){var b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.nh)&&!this.Qd?jQuery(this.canvas).offset():jQuery(this.canvas).position();
b.position="absolute";jQuery(this.Ab).css(b)}};var d=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;f.prototype.setSuspended=function(b){var a;if(b&&!this.ph)for(ea("[Construct 2] Suspending"),this.ph=!0,-1!==this.Jm&&d&&d(this.Jm),-1!==this.cn&&clearTimeout(this.cn),b=0,a=this.ei.length;b<a;b++)this.ei[b](!0);else if(!b&&this.ph){ea("[Construct 2] Resuming");this.ph=!1;this.xj=$a();this.qf=
$a();b=this.Kh=this.bj=0;for(a=this.ei.length;b<a;b++)this.ei[b](!1);this.ib(!1)}};f.prototype.ds=function(b){this.ei.push(b)};f.prototype.ke=function(b){return this.Kj[b]};f.prototype.Dh=function(b){b&&b.project||fa("Project model unavailable");b=b.project;this.name=b[0];this.qo=b[1];this.Pb=b[12];this.wo=b[12];this.gb=b[10];this.fb=b[11];this.Tp=this.gb/2;this.Up=this.fb/2;this.bb&&!this.bd&&(4<=b[12]||0===b[12])&&(ea("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),
this.wo=this.Pb=3);this.pn=b[18];this.He=b[19];if(0===this.He){var a=new Image;a.crossOrigin="anonymous";this.oq(a,"loading-logo.png");this.Ge={Gj:a}}else if(4===this.He){a=new Image;a.src="";var g=new Image;g.src="";var c=new Image;c.src="";var h=new Image;h.src="";var k=new Image;k.src="";var d=new Image;d.src="";var m=new Image;m.src="";var t=new Image;t.src="";var e=new Image;e.src="";var f=new Image;f.src="";var x=new Image;x.src="";var C=new Image;C.src="";this.Ge={Gj:[a,g,c,h],lv:[k,d,m,t],
dw:[e,f,x,C]}}this.Nh=b[21];this.Kj=mc();this.Fd=new Y(this);a=0;for(g=b[2].length;a<g;a++)m=b[2][a],c=this.ke(m[0]),pb(m,c.prototype),t=new c(this),t.lk=m[1],t.Fe=m[2],t.hx=m[5],t.xp=m[9],t.ma&&t.ma(),this.plugins.push(t);this.Kj=mc();a=0;for(g=b[3].length;a<g;a++){m=b[3][a];k=this.ke(m[1]);t=null;c=0;for(h=this.plugins.length;c<h;c++)if(this.plugins[c]instanceof k){t=this.plugins[c];break}e=new t.jb(t);e.name=m[0];e.B=m[2];e.Sl=m[3].slice(0);e.bw=m[3].length;e.ks=m[4];e.It=m[5];e.T=m[11];e.B?(e.ig=
[],e.Nd=this.Zg++,e.Ba=null):(e.ig=null,e.Nd=-1,e.Ba=[]);e.Wi=null;e.Pf=null;e.ko=null;e.$b=!1;e.jc=null;m[6]?(e.sk=m[6][0],e.bn=m[6][1],e.hi=m[6][2]):(e.sk=null,e.bn=0,e.hi=0);m[7]?e.hc=m[7]:e.hc=null;e.index=a;e.c=[];e.Qi=[];e.de=[new qb(e)];e.ud=0;e.Gc=null;e.us=0;e.Dg=!0;e.zk=rb;e.Pt=sb;e.Ut=tb;e.Z=ub;e.Sh=vb;e.ug=wb;e.Xd=yb;e.dj=zb;e.tl=Ab;e.yl=Bb;e.sd=Cb;e.Al=Db;e.Ji=new gb(this.gb,this.fb);e.ti=!0;e.vi=!1;e.ya={};e.toString=Eb;e.Fa=[];c=0;for(h=m[8].length;c<h;c++){f=m[8][c];x=this.ke(f[1]);
C=null;k=0;for(d=this.Fa.length;k<d;k++)if(this.Fa[k]instanceof x){C=this.Fa[k];break}C||(C=new x(this),C.yp=[],C.lg=new ca,C.ma&&C.ma(),this.Fa.push(C));-1===C.yp.indexOf(e)&&C.yp.push(e);k=new C.jb(C,e);k.name=f[0];k.T=f[2];k.ma();e.Fa.push(k)}e.global=m[9];e.Wl=m[10];e.K=[];c=0;for(h=m[12].length;c<h;c++)e.K.push({id:m[12][c][0],name:m[12][c][1],Sa:-1,fd:!1,Aa:!0,index:c});e.qx=m[13];this.pn&&!e.B&&!e.Wl&&t.Fe||e.ma();e.name&&(this.types[e.name]=e);this.m.push(e);t.lk&&(c=new t.Da(e),c.uid=this.Nh++,
c.aq=this.Ap++,c.kf=0,c.bh=Fb,c.toString=Gb,c.G=m[14],c.ma(),e.c.push(c),this.Vd[c.uid.toString()]=c)}a=0;for(g=b[4].length;a<g;a++)for(k=b[4][a],d=this.m[k[0]],c=1,h=k.length;c<h;c++)m=this.m[k[c]],m.Ba.push(d),d.ig.push(m);a=0;for(g=b[28].length;a<g;a++){k=b[28][a];d=[];c=0;for(h=k.length;c<h;c++)d.push(this.m[k[c]]);c=0;for(h=d.length;c<h;c++)d[c].$b=!0,d[c].jc=d}if(0<this.Zg)for(a=0,g=this.m.length;a<g;a++)if(m=this.m[a],!m.B&&m.Ba.length){m.Wi=Array(this.Zg);m.Pf=Array(this.Zg);m.ko=Array(this.Zg);
e=[];c=C=x=f=0;for(h=m.Ba.length;c<h;c++)for(t=m.Ba[c],m.Wi[t.Nd]=f,f+=t.bw,m.Pf[t.Nd]=x,x+=t.ks,m.ko[t.Nd]=C,C+=t.It,k=0,d=t.K.length;k<d;k++)e.push(wa({},t.K[k]));m.K=e.concat(m.K);c=0;for(h=m.K.length;c<h;c++)m.K[c].index=c}a=0;for(g=b[5].length;a<g;a++)m=b[5][a],c=new Hb(this,m),this.gm[c.name]=c,this.dd.push(c);a=0;for(g=b[6].length;a<g;a++)m=b[6][a],c=new Ib(this,m),this.kl[c.name]=c,this.Md.push(c);a=0;for(g=this.Md.length;a<g;a++)this.Md[a].Ka();a=0;for(g=this.Md.length;a<g;a++)this.Md[a].kn();
a=0;for(g=this.xk.length;a<g;a++)this.xk[a].Ka();V(this.xk);this.hs=b[7];this.ol=b[8];this.ed=b[9];this.Qg=1;this.Ts=b[13];this.za=b[14];this.Wn=b[15];this.aw=b[17];this.Cm=b[20];this.js=0<this.Cm;this.bv=b[22];this.tc=this.Uq=b[23];this.Ms=b[24];this.nv=b[25];this.ra=b[27]&&!this.Ee;this.pk=Date.now();V(this.Kj);this.ru()};var b=!1,h=0,g=[];f.prototype.tv=function(b,a){function c(){h--;k.sp()}var k=this;b.addEventListener("load",c);b.addEventListener("error",c);g.push([b,a]);this.sp()};f.prototype.sp=
function(){for(var b;g.length&&100>h;)h++,b=g.shift(),this.oq(b[0],b[1])};f.prototype.rn=function(a,g){a.cocoonLazyLoad=!0;a.onerror=function(g){b=a.Sn=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",g)};this.bd?a.src=g:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(g,function(b){a.src=b},function(c){b=a.Sn=!0;console&&console.error&&console.error("Error extracting image '"+g+"' from expansion file: ",c)}):(a.crossOrigin="anonymous",this.tv(a,g)));this.Mg.push(a)};
f.prototype.Gt=function(b){var a,g;a=0;for(g=this.Mg.length;a<g;a++)if(this.Mg[a].rs===b)return this.Mg[a];return null};var k=0,t=!1;f.prototype.ku=function(){this.Gf&&(k=this.Gf.Kv(this.hs))};f.prototype.On=function(){var b=k,a=0,g=0,c=!0,h,d,g=0;for(h=this.Mg.length;g<h;g++){d=this.Mg[g];var m=d.Yn;if(!m||0>=m)m=5E4;b+=m;d.src&&(d.complete||d.loaded)&&!d.Sn?a+=m:c=!1}c&&this.nv&&this.Gf&&(t||(this.Gf.Pv(),t=!0),g=this.Gf.Vt(),a+=g,g<k&&(c=!1));this.gd=0==b?1:a/b;return c};var C=!1;f.prototype.go=
function(){if(this.Ga||this.q){var a=this.Ga||this.Dm;this.Ab&&this.Yp();var g=window.innerWidth,k=window.innerHeight;this.bg===g&&this.ag===k||this.setSize(g,k);this.gd=0;this.Yo=-1;var h=this;if(this.On()&&(4!==this.He||C))this.lu();else{k=Date.now()-this.pk;if(a){var d=this.width,m=this.height,g=this.devicePixelRatio;if(3>this.He&&(this.Kc||500<=k&&this.Yo!=this.gd)){a.clearRect(0,0,d,m);var k=d/2,m=m/2,d=0===this.He&&this.Ge.Gj.complete,e=40*g,t=0,f=80*g,x;if(d){var l=this.Ge.Gj,f=l.width*g;x=
l.height*g;e=f/2;t=x/2;a.drawImage(l,O(k-e),O(m-t),f,x)}1>=this.He?(k=O(k-e)+.5,m=O(m+(t+(d?12*g:0)))+.5,a.fillStyle=b?"red":"DodgerBlue",a.fillRect(k,m,Math.floor(f*this.gd),6*g),a.strokeStyle="black",a.strokeRect(k,m,f,6*g),a.strokeStyle="white",a.strokeRect(k-1*g,m-1*g,f+2*g,8*g)):2===this.He&&(a.font=this.bd?"12pt ArialMT":"12pt Arial",a.fillStyle=b?"#f00":"#999",a.ox="middle",g=Math.round(100*this.gd)+"%",d=a.measureText?a.measureText(g):null,a.fillText(g,k-(d?d.width:0)/2,m));this.Yo=this.gd}else if(4===
this.He){this.Rs(a);c?c(function(){h.go()}):setTimeout(function(){h.go()},16);return}}setTimeout(function(){h.go()},this.Kc?10:100)}}};var U=-1,m="undefined"===typeof cr_is_preview?200:0,x=!0,Z=!1,A=0,P=0,Q="undefined"===typeof cr_is_preview?3E3:0,G=null,B=null,u=0;f.prototype.Rs=function(a){if(!C){for(var g=Math.ceil(this.width),c=Math.ceil(this.height),k=this.Ge.Gj,h=this.Ge.lv,d=this.Ge.dw,e=0;4>e;++e)if(!k[e].complete||!h[e].complete||!d[e].complete)return;0===u&&(U=Date.now());var e=Date.now(),
t=!1,f=a,p,r;x||Z?(a.clearRect(0,0,g,c),G&&G.width===g&&G.height===c||(G=document.createElement("canvas"),G.width=g,G.height=c,B=G.getContext("2d")),f=B,t=!0,x&&1===u&&(U=Date.now())):a.globalAlpha=1;f.fillStyle="#333333";f.fillRect(0,0,g,c);256<this.Vg?(p=Fa(.22*c,105,.6*g),r=.25*p,f.drawImage(l(h,p),.5*g-p/2,.2*c-r/2,p,r),r=p=Math.min(.395*c,.95*g),f.drawImage(l(k,p),.5*g-p/2,.485*c-r/2,p,r),p=Fa(.22*c,105,.6*g),r=.25*p,f.drawImage(l(d,p),.5*g-p/2,.868*c-r/2,p,r),f.fillStyle="#3C3C3C",p=g,r=Math.max(.005*
c,2),f.fillRect(0,.8*c-r/2,p,r),f.fillStyle=b?"red":"#E0FF65",p=g*this.gd,f.fillRect(.5*g-p/2,.8*c-r/2,p,r)):(r=p=.55*c,f.drawImage(l(k,p),.5*g-p/2,.45*c-r/2,p,r),f.fillStyle="#3C3C3C",p=g,r=Math.max(.005*c,2),f.fillRect(0,.85*c-r/2,p,r),f.fillStyle=b?"red":"#E0FF65",p=g*this.gd,f.fillRect(.5*g-p/2,.85*c-r/2,p,r));t&&(x?a.globalAlpha=0===u?0:Math.min((e-U)/300,1):Z&&(a.globalAlpha=Math.max(1-(e-P)/300,0)),a.drawImage(G,0,0,g,c));x&&300<=e-U&&2<=u&&(x=!1,A=e);!x&&e-A>=Q&&!Z&&1<=this.gd&&(Z=!0,P=e);
if(Z&&e-P>=300+m||"undefined"!==typeof cr_is_preview&&1<=this.gd&&500>Date.now()-U)C=!0,Z=x=!1,this.Ge=B=G=null;++u}};f.prototype.lu=function(){this.Ab&&(this.canvas.parentNode.removeChild(this.Ab),this.Ab=this.Dm=null);this.pk=Date.now();this.qf=$a();var b,a,g;if(this.pn)for(b=0,a=this.m.length;b<a;b++)g=this.m[b],g.B||g.Wl||!g.ua.Fe||g.ma();else this.vh=!1;b=0;for(a=this.dd.length;b<a;b++)this.dd[b].ss();2<=this.Pb&&(b=this.gb/this.fb,a=this.width/this.height,this.Qg=2!==this.Pb&&a>b||2===this.Pb&&
a<b?this.height/this.fb:this.width/this.gb);this.qo?this.gm[this.qo].$m():this.dd[0].$m();this.pn||(this.Dj=1,this.trigger(Y.prototype.k.Cn,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();b=0;for(a=this.m.length;b<a;b++)g=this.m[b],g.Ou&&g.Ou();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.ib(!1);this.Qb&&AppMobi.webview.execute("onGameReady();")};
f.prototype.ib=function(b,a,g){if(this.ka){var k=$a();if(g||!this.ph||b){b||(c?this.Jm=c(this.Eq):this.cn=setTimeout(this.Eq,this.Uf?1:16));a=a||k;var h=this.Pb;((g=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Qd)||this.nh)&&0<this.ef&&(h=this.ef);if(0<h){var h=window.innerWidth,d=window.innerHeight;this.bg===h&&this.ag===d||this.setSize(h,d)}this.bb||(g?this.Zi||(this.Zi=!0):this.Zi?(this.Zi=!1,0===this.Pb&&this.setSize(Math.round(this.Hp/
this.devicePixelRatio),Math.round(this.Gp/this.devicePixelRatio),!0)):(this.Hp=this.width,this.Gp=this.height));this.vh&&(g=this.On(),this.Dj=this.gd,g&&(this.vh=!1,this.gd=1,this.trigger(Y.prototype.k.Cn,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.Ju(a);!this.ja&&!this.Kc||this.$l||this.di||b||(this.ja=!1,this.q?this.Xb():this.$c(),this.ci&&(this.canvas&&this.canvas.toDataURL&&(this.xq=this.canvas.toDataURL(this.ci[0],this.ci[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.xq),
this.trigger(Y.prototype.k.ur,null)),this.ci=null));this.gx||(this.Gg++,this.Yg++,this.bj++);this.Kh+=$a()-k}}};f.prototype.Ju=function(b){var a,g,c,k,h,d,m,e;1E3<=b-this.qf&&(this.qf+=1E3,1E3<=b-this.qf&&(this.qf=b),this.ql=this.bj,this.bj=0,this.al=this.Kh,this.Kh=0);a=0;0!==this.xj&&(a=b-this.xj,0>a&&(a=0),this.Ze=a/=1E3,.5<this.Ze?this.Ze=0:this.Ze>1/this.vp&&(this.Ze=1/this.vp));this.xj=b;this.Ye=this.Ze*this.Ig;this.yb.add(this.Ye);this.ge.add(a);b=(document.mozFullScreen||document.webkitIsFullScreen||
document.fullScreen||!!document.msFullscreenElement||this.nh)&&!this.Qd;2<=this.Pb||b&&0<this.ef?(a=this.gb/this.fb,g=this.width/this.height,c=this.Pb,b&&0<this.ef&&(c=this.ef),this.Qg=2!==c&&g>a||2===c&&g<a?this.height/this.fb:this.width/this.gb,this.ka&&(this.ka.hq(this.ka.scrollX),this.ka.iq(this.ka.scrollY))):this.Qg=this.mf?this.devicePixelRatio:1;this.Gb();this.cd++;this.Fd.Bv();this.cd--;this.Gb();this.cd++;g=this.Ep.od();b=0;for(a=g.length;b<a;b++)g[b].kx();b=0;for(a=this.m.length;b<a;b++)if(d=
this.m[b],!d.B&&(d.Fa.length||d.Ba.length))for(g=0,c=d.c.length;g<c;g++)for(m=d.c[g],k=0,h=m.C.length;k<h;k++)m.C[k].ib();b=0;for(a=this.m.length;b<a;b++)if(d=this.m[b],!d.B&&(d.Fa.length||d.Ba.length))for(g=0,c=d.c.length;g<c;g++)for(m=d.c[g],k=0,h=m.C.length;k<h;k++)e=m.C[k],e.kv&&e.kv();g=this.tm.od();b=0;for(a=g.length;b<a;b++)g[b].ib();this.cd--;this.mu();for(b=0;this.Rg&&10>b++;)this.eo(this.Rg);b=0;for(a=this.Md.length;b<a;b++)this.Md[b].Kl=!1;this.ka.cf&&this.ka.cf.Ra();V(this.dq);this.fm=
!1;this.cd++;b=0;for(a=this.m.length;b<a;b++)if(d=this.m[b],!d.B&&(d.Fa.length||d.Ba.length))for(g=0,c=d.c.length;g<c;g++)for(m=d.c[g],k=0,h=m.C.length;k<h;k++)e=m.C[k],e.Dq&&e.Dq();g=this.Fp.od();b=0;for(a=g.length;b<a;b++)g[b].Dq();this.cd--};f.prototype.qg=function(){var b,a,g,c,k,h,d,m,e;b=0;for(a=this.m.length;b<a;b++)if(d=this.m[b],!d.B)for(g=0,c=d.c.length;g<c;g++)if(m=d.c[g],m.qg&&m.qg(),m.C)for(k=0,h=m.C.length;k<h;k++)e=m.C[k],e.qg&&e.qg()};f.prototype.eo=function(b){var a=this.ka;this.ka.Qv();
var g,c,k;if(this.q)for(g=0,c=this.m.length;g<c;g++)k=this.m[g],k.B||!k.yk||k.global&&0!==k.c.length||-1!==b.hh.indexOf(k)||k.yk();a==b&&V(this.Fd.Fb);V(this.dq);this.fq(!0);b.$m();this.fq(!1);this.fm=this.ja=!0;this.Gb()};f.prototype.fq=function(b){var a,g,c,k,h,d,m,e,t;a=0;for(g=this.Fa.length;a<g;a++)c=this.Fa[a],b?c.Oh&&c.Oh():c.Ph&&c.Ph();a=0;for(g=this.m.length;a<g;a++)if(c=this.m[a],c.global||c.ua.lk)for(k=0,h=c.c.length;k<h;k++)if(d=c.c[k],b?d.Oh&&d.Oh():d.Ph&&d.Ph(),d.C)for(m=0,e=d.C.length;m<
e;m++)t=d.C[m],b?t.Oh&&t.Oh():t.Ph&&t.Ph()};f.prototype.uk=function(b){this.tm.add(b)};f.prototype.ej=function(b){return b&&-1!==b.Mh?this.Ze*b.Mh:this.Ye};f.prototype.$c=function(){this.ka.$c(this.Ga);this.Qb&&this.Ga.present()};f.prototype.Xb=function(){this.ra&&(this.$e=1,this.ka.Of(this.q));this.ka.Xb(this.q);this.q.pv()};f.prototype.bs=function(b){b&&this.gl.push(b)};f.prototype.gj=function(b){b=b.toString();return this.Vd.hasOwnProperty(b)?this.Vd[b]:null};var I=[];f.prototype.je=function(b){var a,
g;a=b.type.name;var c=null;if(this.Xe.hasOwnProperty(a)){if(c=this.Xe[a],c.contains(b))return}else c=I.length?I.pop():new ca,this.Xe[a]=c;c.add(b);this.Ce=!0;if(b.$b)for(a=0,g=b.siblings.length;a<g;a++)this.je(b.siblings[a]);this.Vl&&c.Kg.push(b);this.Ul||(this.cd++,this.trigger(Object.getPrototypeOf(b.type.ua).k.wr,b),this.cd--)};f.prototype.Gb=function(){if(this.Ce){var b,a,g,c,k,h;this.Vl=!0;g=0;for(k=this.Yc.length;g<k;++g)for(b=this.Yc[g],a=b.type,a.c.push(b),c=0,h=a.Ba.length;c<h;++c)a.Ba[c].c.push(b),
a.Ba[c].Dg=!0;V(this.Yc);this.pr();Za(this.Xe);this.Ce=this.Vl=!1}};f.prototype.pr=function(){for(var b in this.Xe)this.Xe.hasOwnProperty(b)&&this.$q(this.Xe[b])};f.prototype.$q=function(b){var a=b.od(),g=a[0].type,c,k,h,d,m,e;ab(g.c,b);g.Dg=!0;0===g.c.length&&(g.vi=!1);c=0;for(k=g.Ba.length;c<k;++c)e=g.Ba[c],ab(e.c,b),e.Dg=!0;c=0;for(k=this.Fd.Fb.length;c<k;++c)if(m=this.Fd.Fb[c],m.Lb.hasOwnProperty(g.index)&&ab(m.Lb[g.index].yd,b),!g.B)for(h=0,d=g.Ba.length;h<d;++h)e=g.Ba[h],m.Lb.hasOwnProperty(e.index)&&
ab(m.Lb[e.index].yd,b);if(m=a[0].e){if(m.Cc)for(h=m.c,c=0,k=h.length;c<k;++c)d=h[c],b.contains(d)&&(d.wa(),m.Cb.update(d,d.ec,null),d.ec.set(0,0,-1,-1));ab(m.c,b);m.Zh(0)}for(c=0;c<a.length;++c)this.Zq(a[c],g);b.clear();I.push(b);this.ja=!0};f.prototype.Zq=function(b,a){var g,c,k;g=0;for(c=this.gl.length;g<c;++g)this.gl[g](b);b.ve&&a.Ji.update(b,b.ve,null);(g=b.e)&&g.wg(b,!0);if(b.C)for(g=0,c=b.C.length;g<c;++g)k=b.C[g],k.pg&&k.pg(),k.behavior.lg.remove(b);this.Ep.remove(b);this.tm.remove(b);this.Fp.remove(b);
b.pg&&b.pg();this.Vd.hasOwnProperty(b.uid.toString())&&delete this.Vd[b.uid.toString()];this.Lj--;100>a.Qi.length&&a.Qi.push(b)};f.prototype.Zn=function(b,a,g,c){if(b.B){var k=O(Math.random()*b.ig.length);return this.Zn(b.ig[k],a,g,c)}return b.Gc?this.we(b.Gc,a,!1,g,c,!1):null};var R=[];f.prototype.we=function(b,a,g,c,k,h){var d,m,e,t;if(!b)return null;var f=this.m[b[1]],x=f.ua.Fe;if(this.vh&&x&&!f.Wl||x&&!this.q&&11===b[0][11])return null;var C=a;x||(a=null);var l;f.Qi.length?(l=f.Qi.pop(),l.Ac=
!0,f.ua.Da.call(l,f)):(l=new f.ua.Da(f),l.Ac=!1);!g||h||this.Vd.hasOwnProperty(b[2].toString())?l.uid=this.Nh++:l.uid=b[2];this.Vd[l.uid.toString()]=l;l.aq=this.Ap++;l.kf=f.c.length;d=0;for(m=this.Yc.length;d<m;++d)this.Yc[d].type===f&&l.kf++;l.bh=Fb;l.toString=Gb;e=b[3];if(l.Ac)Za(l.ya);else{l.ya={};if("undefined"!==typeof cr_is_preview)for(l.Lo=[],l.Lo.length=e.length,d=0,m=e.length;d<m;d++)l.Lo[d]=e[d][1];l.ab=[];l.ab.length=e.length}d=0;for(m=e.length;d<m;d++)l.ab[d]=e[d][0];if(x){var p=b[0];
l.x=ga(c)?p[0]:c;l.y=ga(k)?p[1]:k;l.z=p[2];l.width=p[3];l.height=p[4];l.depth=p[5];l.j=p[6];l.opacity=p[7];l.Yb=p[8];l.Zb=p[9];l.Hb=p[10];d=p[11];!this.q&&f.K.length&&(l.Hb=d);l.Sg=jb(l.Hb);this.u&&kb(l,l.Hb,this.u);if(l.Ac){d=0;for(m=p[12].length;d<m;d++)for(e=0,t=p[12][d].length;e<t;e++)l.Ha[d][e]=p[12][d][e];l.Ea.set(0,0,0,0);l.ve.set(0,0,-1,-1);l.ec.set(0,0,-1,-1);l.ic.Ag(l.Ea);V(l.Sk)}else{l.Ha=p[12].slice(0);d=0;for(m=l.Ha.length;d<m;d++)l.Ha[d]=p[12][d].slice(0);l.ca=[];l.le=[];l.le.length=
f.K.length;l.Ea=new ua(0,0,0,0);l.ve=new ua(0,0,-1,-1);l.ec=new ua(0,0,-1,-1);l.ic=new va;l.Sk=[];l.Ca=Jb;l.es=Kb;l.Ib=Lb;l.wa=Mb;l.Qq=Nb;l.nn=Ob;l.Ic=Pb}l.Hg=!1;l.Wv=0;l.Vv=0;l.Uv=null;14===p.length&&(l.Hg=!0,l.Wv=p[13][0],l.Vv=p[13][1],l.Uv=p[13][2]);d=0;for(m=f.K.length;d<m;d++)l.le[d]=!0;l.ae=!0;l.md=Qb;l.md();l.Rq=!!l.ca.length;l.Bi=!0;l.Vk=!0;f.ti=!0;l.visible=!0;l.Mh=-1;l.e=a;l.pd=a.c.length;l.$e=0;"undefined"===typeof l.da&&(l.da=null);this.ja=l.Ve=!0}var r;V(R);d=0;for(m=f.Ba.length;d<m;d++)R.push.apply(R,
f.Ba[d].Fa);R.push.apply(R,f.Fa);if(l.Ac)for(d=0,m=R.length;d<m;d++){var n=R[d];r=l.C[d];r.Ac=!0;n.behavior.Da.call(r,n,l);p=b[4][d];e=0;for(t=p.length;e<t;e++)r.G[e]=p[e];r.ma();n.behavior.lg.add(l)}else for(l.C=[],d=0,m=R.length;d<m;d++)n=R[d],r=new n.behavior.Da(n,l),r.Ac=!1,r.G=b[4][d].slice(0),r.ma(),l.C.push(r),n.behavior.lg.add(l);p=b[5];if(l.Ac)for(d=0,m=p.length;d<m;d++)l.G[d]=p[d];else l.G=p.slice(0);this.Yc.push(l);this.Ce=!0;a&&(a.Pg(l,!0),1!==a.Nc||1!==a.Oc)&&(f.vi=!0);this.Lj++;if(f.$b){if(l.$b=
!0,l.Ac?V(l.siblings):l.siblings=[],!g&&!h){d=0;for(m=f.jc.length;d<m;d++)if(f.jc[d]!==f){if(!f.jc[d].Gc)return null;l.siblings.push(this.we(f.jc[d].Gc,C,!1,x?l.x:c,x?l.y:k,!0))}d=0;for(m=l.siblings.length;d<m;d++)for(l.siblings[d].siblings.push(l),e=0;e<m;e++)d!==e&&l.siblings[d].siblings.push(l.siblings[e])}}else l.$b=!1,l.siblings=null;l.ma();d=0;for(m=l.C.length;d<m;d++)l.C[d].jv&&l.C[d].jv();return l};f.prototype.Bl=function(b){var a,g;a=0;for(g=this.ka.L.length;a<g;a++){var c=this.ka.L[a];if(mb(c.name,
b))return c}return null};f.prototype.$g=function(b){b=O(b);0>b&&(b=0);b>=this.ka.L.length&&(b=this.ka.L.length-1);return this.ka.L[b]};f.prototype.Zk=function(b){var a,g;a=0;for(g=b.length;a<g;a++)b[a].Z().la=!0};f.prototype.Sh=function(b){var a,g;a=0;for(g=b.length;a<g;a++)b[a].Sh()};f.prototype.ug=function(b){var a,g;a=0;for(g=b.length;a<g;a++)b[a].ug()};f.prototype.Xd=function(b){var a,g;a=0;for(g=b.length;a<g;a++)b[a].Xd()};f.prototype.Oq=function(b){if(b.ti){var a,g,c=b.c;a=0;for(g=c.length;a<
g;++a)c[a].nn();c=this.Yc;a=0;for(g=c.length;a<g;++a)c[a].type===b&&c[a].nn();b.ti=!1}};f.prototype.Nt=function(b,a,g,c){var k,h,d=b?1!==b.Nc||1!==b.Oc:!1;if(a.B)for(b=0,k=a.ig.length;b<k;++b)h=a.ig[b],d||h.vi?Aa(c,h.c):(this.Oq(h),h.Ji.bk(g,c));else d||a.vi?Aa(c,a.c):(this.Oq(a),a.Ji.bk(g,c))};f.prototype.Sv=function(b,a,g){var c=b.Z(),k,h,d,m,e=this.Oa().Ma.zc,t,f,l;if(c.la)for(c.la=!1,V(c.c),k=0,m=b.c.length;k<m;k++)d=b.c[k],d.wa(),t=d.e.Wa(a,g,!0),f=d.e.Wa(a,g,!1),d.Ib(t,f)?c.c.push(d):e&&c.M.push(d);
else{h=0;l=e?c.M:c.c;k=0;for(m=l.length;k<m;k++)d=l[k],d.wa(),t=d.e.Wa(a,g,!0),f=d.e.Wa(a,g,!1),d.Ib(t,f)&&(e?c.c.push(d):(c.c[h]=c.c[k],h++));l.length=h}b.sd();return c.Jl()};f.prototype.Tv=function(b,a){if(!(b&&a&&b!==a&&b.Ve&&a.Ve))return!1;b.wa();a.wa();var g=b.e,c=a.e,k,h,d,m,e,t,f,l;if(g===c||g.Nc===c.Nc&&c.Oc===c.Oc&&g.scale===c.scale&&g.j===c.j&&g.qd===c.qd){if(!b.Ea.su(a.Ea)||!b.ic.Mo(a.ic)||b.Hg&&a.Hg)return!1;if(b.Hg)return this.Bq(b,a);if(a.Hg)return this.Bq(a,b);f=b.da&&!b.da.Wf();k=
a.da&&!a.da.Wf();if(!f&&!k)return!0;f?(b.da.If(b.width,b.height,b.j),f=b.da):(this.kd.zg(b.ic,b.x,b.y,b.width,b.height),f=this.kd);k?(a.da.If(a.width,a.height,a.j),l=a.da):(this.kd.zg(a.ic,a.x,a.y,a.width,a.height),l=this.kd);return f.ih(l,a.x-b.x,a.y-b.y)}f=b.da&&!b.da.Wf();k=a.da&&!a.da.Wf();f?(b.da.If(b.width,b.height,b.j),this.kd.rq(b.da)):this.kd.zg(b.ic,b.x,b.y,b.width,b.height);f=this.kd;k?(a.da.If(a.width,a.height,a.j),this.an.rq(a.da)):this.an.zg(a.ic,a.x,a.y,a.width,a.height);l=this.an;
k=0;for(h=f.hd;k<h;k++)d=2*k,m=d+1,e=f.hb[d],t=f.hb[m],f.hb[d]=g.Rb(e+b.x,t+b.y,!0),f.hb[m]=g.Rb(e+b.x,t+b.y,!1);f.wa();k=0;for(h=l.hd;k<h;k++)d=2*k,m=d+1,e=l.hb[d],t=l.hb[m],l.hb[d]=c.Rb(e+a.x,t+a.y,!0),l.hb[m]=c.Rb(e+a.x,t+a.y,!1);l.wa();return f.ih(l,0,0)};var L=new va;new ua(0,0,0,0);var F=[];f.prototype.Bq=function(b,a){var g,c,k,h,d=a.Ea,m=b.x,e=b.y;b.cx(d,F);var t=a.da&&!a.da.Wf();g=0;for(c=F.length;g<c;++g)if(k=F[g],h=k.lx,d.tu(h,m,e)&&(L.Ag(h),L.offset(m,e),L.Mo(a.ic)))if(t)if(a.da.If(a.width,
a.height,a.j),k.Gm){if(k.Gm.ih(a.da,a.x-(m+h.left),a.y-(e+h.top)))return V(F),!0}else{if(this.kd.zg(L,0,0,h.right-h.left,h.bottom-h.top),this.kd.ih(a.da,a.x,a.y))return V(F),!0}else if(k.Gm){if(this.kd.zg(a.ic,0,0,a.width,a.height),k.Gm.ih(this.kd,-(m+h.left),-(e+h.top)))return V(F),!0}else return V(F),!0;V(F);return!1};f.prototype.Kq=function(b,a){if(!a)return!1;var g,c,k,h,d;g=0;for(c=b.Fa.length;g<c;g++)if(b.Fa[g].behavior instanceof a)return!0;if(!b.B)for(g=0,c=b.Ba.length;g<c;g++)for(d=b.Ba[g],
k=0,h=d.Fa.length;k<h;k++)if(d.Fa[k].behavior instanceof a)return!0;return!1};f.prototype.hn=function(b){return this.Kq(b,ec.Dw)};f.prototype.jn=function(b){return this.Kq(b,ec.Ew)};var w=-1;f.prototype.trigger=function(b,a,g){if(!this.ka)return!1;var c=this.ka.cf;if(!c)return!1;var k=!1,h,d,m;w++;var e=c.el;d=0;for(m=e.length;d<m;++d)h=this.Hq(b,a,e[d],g),k=k||h;h=this.Hq(b,a,c,g);w--;return k||h};f.prototype.Hq=function(b,a,g,c){var k=!1,h,d,m,e;if(a)for(m=this.en(b,a,a.type.name,g,c),k=k||m,e=
a.type.Ba,h=0,d=e.length;h<d;++h)m=this.en(b,a,e[h].name,g,c),k=k||m;else m=this.en(b,a,"system",g,c),k=k||m;return k};f.prototype.en=function(b,a,g,c,k){var h,d=!1,m=!1,m="undefined"!==typeof k,e=(m?c.mo:c.Iq)[g];if(!e)return d;var t=null;c=0;for(h=e.length;c<h;++c)if(e[c].method==b){t=e[c].Xg;break}if(!t)return d;var f;m?f=t[k]:f=t;if(!f)return null;c=0;for(h=f.length;c<h;c++)b=f[c][0],k=f[c][1],m=this.Dt(a,g,b,k),d=d||m;return d};f.prototype.Dt=function(b,a,g,c){var k,h,d=!1;this.gn++;var m=this.Oa().Ma;
m&&this.Sh(m.Oe);var e=1<this.gn;this.Sh(g.Oe);e&&this.rv();var t=this.ak(g);t.Ma=g;b&&(k=this.types[a].Z(),k.la=!1,V(k.c),k.c[0]=b,this.types[a].sd());b=!0;if(g.parent){a=t.Aq;for(k=g.parent;k;)a.push(k),k=k.parent;a.reverse();k=0;for(h=a.length;k<h;k++)if(!a[k].Dv()){b=!1;break}}b&&(this.Yg++,g.zc?g.Cv(c):g.Ra(),d=d||t.pf);this.Wj();e&&this.gv();this.Xd(g.Oe);m&&this.Xd(m.Oe);this.Ce&&0===this.cd&&0===w&&!this.Xl&&this.Gb();this.gn--;return d};f.prototype.wl=function(){var b=this.Oa();return b.Ma.Xa[b.La]};
f.prototype.wu=function(){return 0===this.Oa().La};f.prototype.rv=function(){this.Fj++;this.Fj>=this.lm.length&&this.lm.push([])};f.prototype.gv=function(){this.Fj--};f.prototype.zo=function(){return this.lm[this.Fj]};f.prototype.ak=function(b){this.Ui++;this.Ui>=this.jl.length&&this.jl.push(new Rb);var a=this.Oa();a.reset(b);return a};f.prototype.Wj=function(){this.Ui--};f.prototype.Oa=function(){return this.jl[this.Ui]};f.prototype.sv=function(b){this.Hj++;this.Hj>=this.nm.length&&this.nm.push(aa({name:b,
index:0,Ta:!1}));var a=this.Ot();a.name=b;a.index=0;a.Ta=!1;return a};f.prototype.hv=function(){this.Hj--};f.prototype.Ot=function(){return this.nm[this.Hj]};f.prototype.Ao=function(b,a){for(var g,c,k,h,d,m;a;){g=0;for(c=a.Qc.length;g<c;g++)if(m=a.Qc[g],m instanceof Sb&&mb(b,m.name))return m;a=a.parent}g=0;for(c=this.Md.length;g<c;g++)for(d=this.Md[g],k=0,h=d.Ae.length;k<h;k++)if(m=d.Ae[k],m instanceof Sb&&mb(b,m.name))return m;return null};f.prototype.Bo=function(b){var a,g;a=0;for(g=this.dd.length;a<
g;a++)if(this.dd[a].T===b)return this.dd[a];return null};f.prototype.hj=function(b){var a,g;a=0;for(g=this.m.length;a<g;a++)if(this.m[a].T===b)return this.m[a];return null};f.prototype.Qt=function(b){var a,g;a=0;for(g=this.pe.length;a<g;a++)if(this.pe[a].T===b)return this.pe[a];return null};f.prototype.vs=function(b,a){this.ci=[b,a];this.ja=!0};f.prototype.mu=function(){var b=this,a=this.Tm,g=this.Sd,c=this.Aj,k=!1;this.wq&&(k=!0,a="__c2_continuouspreview",this.wq=!1);if(a.length){this.Gb();g=this.Hv();
if(n()&&!this.Kc)p(a,g,function(){ea("Saved state to IndexedDB storage ("+g.length+" bytes)");b.Sd=g;b.trigger(Y.prototype.k.Kk,null);b.Sd="";k&&e()},function(c){try{localStorage.setItem("__c2save_"+a,g),ea("Saved state to WebStorage ("+g.length+" bytes)"),b.Sd=g,b.trigger(Y.prototype.k.Kk,null),b.Sd="",k&&e()}catch(h){ea("Failed to save game state: "+c+"; "+h),b.trigger(Y.prototype.k.En,null)}});else try{localStorage.setItem("__c2save_"+a,g),ea("Saved state to WebStorage ("+g.length+" bytes)"),b.Sd=
g,this.trigger(Y.prototype.k.Kk,null),b.Sd="",k&&e()}catch(h){ea("Error saving to WebStorage: "+h),b.trigger(Y.prototype.k.En,null)}this.Aj=this.Tm="";this.eb=null}if(c.length){if(n()&&!this.Kc)r(c,function(a){a?(b.eb=a,ea("Loaded state from IndexedDB storage ("+b.eb.length+" bytes)")):(b.eb=localStorage.getItem("__c2save_"+c)||"",ea("Loaded state from WebStorage ("+b.eb.length+" bytes)"));b.di=!1;b.eb||(b.eb=null,b.trigger(Y.prototype.k.qi,null))},function(){b.eb=localStorage.getItem("__c2save_"+
c)||"";ea("Loaded state from WebStorage ("+b.eb.length+" bytes)");b.di=!1;b.eb||(b.eb=null,b.trigger(Y.prototype.k.qi,null))});else{try{this.eb=localStorage.getItem("__c2save_"+c)||"",ea("Loaded state from WebStorage ("+this.eb.length+" bytes)")}catch(d){this.eb=null}this.di=!1;b.eb||(b.eb=null,b.trigger(Y.prototype.k.qi,null))}this.Tm=this.Aj=""}null!==this.eb&&(this.Gb(),this.Iu(this.eb)?(this.Sd=this.eb,this.trigger(Y.prototype.k.Br,null),this.Sd=""):b.trigger(Y.prototype.k.qi,null),this.eb=null)};
f.prototype.Hv=function(){var b,g,c,k,h,d,m,e={c2save:!0,version:1,rt:{time:this.yb.X,walltime:this.ge.X,timescale:this.Ig,tickcount:this.Gg,execcount:this.Yg,next_uid:this.Nh,running_layout:this.ka.T,start_time_offset:Date.now()-this.pk},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};b=0;for(g=this.m.length;b<g;b++)if(h=this.m[b],!h.B&&!this.hn(h)){d={instances:[]};Ya(h.ya)&&(d.ex=a(h.ya));c=0;for(k=h.c.length;c<k;c++)d.instances.push(this.Sm(h.c[c]));e.types[h.T.toString()]=d}b=
0;for(g=this.dd.length;b<g;b++)c=this.dd[b],e.layouts[c.T.toString()]=c.Tb();k=e.events.groups;b=0;for(g=this.pe.length;b<g;b++)c=this.pe[b],k[c.T.toString()]=this.eh[c.dh].Rf;g=e.events.cnds;for(m in this.ue)this.ue.hasOwnProperty(m)&&(b=this.ue[m],Ya(b.ya)&&(g[m]={ex:a(b.ya)}));g=e.events.acts;for(m in this.me)this.me.hasOwnProperty(m)&&(b=this.me[m],Ya(b.ya)&&(g[m]={ex:a(b.ya)}));g=e.events.vars;for(m in this.Lg)this.Lg.hasOwnProperty(m)&&(b=this.Lg[m],b.vj||b.parent&&!b.sh||(g[m]=b.data));e.system=
this.Fd.Tb();return JSON.stringify(e)};f.prototype.cq=function(){var b,a,g,c,k,h;this.Vd={};b=0;for(a=this.m.length;b<a;b++)if(g=this.m[b],!g.B)for(c=0,k=g.c.length;c<k;c++)h=g.c[c],this.Vd[h.uid.toString()]=h};f.prototype.Iu=function(b){var a;try{a=JSON.parse(b)}catch(g){return!1}if(!a.c2save||1<a.version)return!1;this.kh=!0;b=a.rt;this.yb.reset();this.yb.X=b.time;this.ge.reset();this.ge.X=b.walltime||0;this.Ig=b.timescale;this.Gg=b.tickcount;this.Yg=b.execcount;this.pk=Date.now()-b.start_time_offset;
var c=b.running_layout;if(c!==this.ka.T)if(c=this.Bo(c))this.eo(c);else return;var k,h,d,m,e,t,f;t=a.types;for(h in t)if(t.hasOwnProperty(h)&&(m=this.hj(parseInt(h,10)))&&!m.B&&!this.hn(m)){t[h].ex?m.ya=t[h].ex:Za(m.ya);e=m.c;d=t[h].instances;c=0;for(k=oa(e.length,d.length);c<k;c++)this.Bj(e[c],d[c]);c=d.length;for(k=e.length;c<k;c++)this.je(e[c]);c=e.length;for(k=d.length;c<k;c++){e=null;if(m.ua.Fe&&(e=this.ka.fj(d[c].w.l),!e))continue;e=this.we(m.Gc,e,!1,0,0,!0);this.Bj(e,d[c])}m.Dg=!0}this.Gb();
this.cq();k=a.layouts;for(h in k)k.hasOwnProperty(h)&&(c=this.Bo(parseInt(h,10)))&&c.oc(k[h]);k=a.events.groups;for(h in k)k.hasOwnProperty(h)&&(c=this.Qt(parseInt(h,10)))&&this.eh[c.dh]&&this.eh[c.dh].nq(k[h]);c=a.events.cnds;for(h in this.ue)this.ue.hasOwnProperty(h)&&(c.hasOwnProperty(h)?this.ue[h].ya=c[h].ex:this.ue[h].ya={});c=a.events.acts;for(h in this.me)this.me.hasOwnProperty(h)&&(c.hasOwnProperty(h)?this.me[h].ya=c[h].ex:this.me[h].ya={});c=a.events.vars;for(h in c)c.hasOwnProperty(h)&&
this.Lg.hasOwnProperty(h)&&(this.Lg[h].data=c[h]);this.Nh=b.next_uid;this.kh=!1;c=0;for(k=this.Yi.length;c<k;++c)e=this.Yi[c],this.trigger(Object.getPrototypeOf(e.type.ua).k.ni,e);V(this.Yi);this.Fd.oc(a.system);c=0;for(k=this.m.length;c<k;c++)if(m=this.m[c],!m.B&&!this.hn(m))for(a=0,h=m.c.length;a<h;a++){e=m.c[a];if(m.$b)for(t=e.bh(),V(e.siblings),b=0,d=m.jc.length;b<d;b++)f=m.jc[b],m!==f&&e.siblings.push(f.c[t]);e.ne&&e.ne();if(e.C)for(b=0,d=e.C.length;b<d;b++)t=e.C[b],t.ne&&t.ne()}return this.ja=
!0};f.prototype.Sm=function(b,g){var c,k,h,d,m;d=b.type;h=d.ua;var e={};g?e.c2=!0:e.uid=b.uid;Ya(b.ya)&&(e.ex=a(b.ya));if(b.ab&&b.ab.length)for(e.ivs={},c=0,k=b.ab.length;c<k;c++)e.ivs[b.type.Sl[c].toString()]=b.ab[c];if(h.Fe){h={x:b.x,y:b.y,w:b.width,h:b.height,l:b.e.T,zi:b.Ic()};0!==b.j&&(h.a=b.j);1!==b.opacity&&(h.o=b.opacity);.5!==b.Yb&&(h.hX=b.Yb);.5!==b.Zb&&(h.hY=b.Zb);0!==b.Hb&&(h.bm=b.Hb);b.visible||(h.v=b.visible);b.Ve||(h.ce=b.Ve);-1!==b.Mh&&(h.mts=b.Mh);if(d.K.length)for(h.fx=[],c=0,k=
d.K.length;c<k;c++)m=d.K[c],h.fx.push({name:m.name,active:b.le[m.index],params:b.Ha[m.index]});e.w=h}if(b.C&&b.C.length)for(e.behs={},c=0,k=b.C.length;c<k;c++)d=b.C[c],d.Tb&&(e.behs[d.type.T.toString()]=d.Tb());b.Tb&&(e.data=b.Tb());return e};f.prototype.St=function(b,a){var g,c;g=0;for(c=b.Sl.length;g<c;g++)if(b.Sl[g]===a)return g;return-1};f.prototype.Mt=function(b,a){var g,c;g=0;for(c=b.C.length;g<c;g++)if(b.C[g].type.T===a)return g;return-1};f.prototype.Bj=function(b,a,g){var c,k,h,d,m;m=b.type;
var e=m.ua;if(g){if(!a.c2)return}else b.uid=a.uid;a.ex?b.ya=a.ex:Za(b.ya);if(k=a.ivs)for(c in k)k.hasOwnProperty(c)&&(h=this.St(m,parseInt(c,10)),0>h||h>=b.ab.length||(d=k[c],null===d&&(d=NaN),b.ab[h]=d));if(e.Fe){h=a.w;b.e.T!==h.l&&(k=b.e,b.e=this.ka.fj(h.l),b.e?(k.wg(b,!0),b.e.Pg(b,!0),b.Ca(),b.e.Zh(0)):(b.e=k,g||this.je(b)));b.x=h.x;b.y=h.y;b.width=h.w;b.height=h.h;b.pd=h.zi;b.j=h.hasOwnProperty("a")?h.a:0;b.opacity=h.hasOwnProperty("o")?h.o:1;b.Yb=h.hasOwnProperty("hX")?h.hX:.5;b.Zb=h.hasOwnProperty("hY")?
h.hY:.5;b.visible=h.hasOwnProperty("v")?h.v:!0;b.Ve=h.hasOwnProperty("ce")?h.ce:!0;b.Mh=h.hasOwnProperty("mts")?h.mts:-1;b.Hb=h.hasOwnProperty("bm")?h.bm:0;b.Sg=jb(b.Hb);this.u&&kb(b,b.Hb,this.u);b.Ca();if(h.hasOwnProperty("fx"))for(g=0,k=h.fx.length;g<k;g++)d=m.yl(h.fx[g].name),0>d||(b.le[d]=h.fx[g].active,b.Ha[d]=h.fx[g].params);b.md()}if(m=a.behs)for(c in m)m.hasOwnProperty(c)&&(g=this.Mt(b,parseInt(c,10)),0>g||b.C[g].oc(m[c]));a.data&&b.oc(a.data)};f.prototype.no=function(b,a,g){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+
"www/"+b,function(b){b.file(a,g)},g)};f.prototype.Et=function(b,a){this.no("data.js",function(g){var c=new FileReader;c.onload=function(a){b(a.target.result)};c.onerror=a;c.readAsText(g)},a)};var N=[],H=0;f.prototype.pm=function(){if(N.length&&!(8<=H)){H++;var b=N.shift();this.ys(b.filename,b.Rv,b.Ws)}};f.prototype.oo=function(b,a,g){var c=this;N.push({filename:b,Rv:function(b){H--;c.pm();a(b)},Ws:function(b){H--;c.pm();g(b)}});this.pm()};f.prototype.ys=function(b,a,g){this.no(b,function(b){var g=
new FileReader;g.onload=function(b){a(b.target.result)};g.readAsArrayBuffer(b)},g)};f.prototype.Ft=function(b,a,g){var c="",k=b.toLowerCase(),h=k.substr(k.length-4),k=k.substr(k.length-5);".mp4"===h?c="video/mp4":".webm"===k?c="video/webm":".m4a"===h?c="audio/mp4":".mp3"===h&&(c="audio/mpeg");this.oo(b,function(b){b=URL.createObjectURL(new Blob([b],{type:c}));a(b)},g)};f.prototype.uu=function(b){return/^(?:[a-z]+:)?\/\//.test(b)||"data:"===b.substr(0,5)||"blob:"===b.substr(0,5)};f.prototype.oq=function(b,
a){this.uj&&!this.uu(a)?this.Ft(a,function(a){b.src=a},function(b){alert("Failed to load image: "+b)}):b.src=a};f.prototype.hk=function(b,a){"undefined"!==typeof b.imageSmoothingEnabled?b.imageSmoothingEnabled=a:(b.webkitImageSmoothingEnabled=a,b.mozImageSmoothingEnabled=a,b.msImageSmoothingEnabled=a)};Tb=function(b){return new f(document.getElementById(b))};Ub=function(b,a){return new f({dc:!0,width:b,height:a})};window.cr_createRuntime=Tb;window.cr_createDCRuntime=Ub;window.createCocoonJSRuntime=
function(){window.c2cocoonjs=!0;var b=document.createElement("screencanvas")||document.createElement("canvas");b.Rk=!0;document.body.appendChild(b);b=new f(b);window.c2runtime=b;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return b};window.createEjectaRuntime=function(){var b=new f(document.getElementById("canvas"));window.c2runtime=b;window.c2runtime.setSize(window.innerWidth,
window.innerHeight);return b}})();window.cr_getC2Runtime=function(){var f=document.getElementById("c2canvas");return f?f.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(f,l){var n=window.cr_getC2Runtime();n&&n.vs(f,l)};window.cr_sizeCanvas=function(f,l){if(0!==f&&0!==l){var n=window.cr_getC2Runtime();n&&n.setSize(f,l)}};window.cr_setSuspended=function(f){var l=window.cr_getC2Runtime();l&&l.setSuspended(f)};
(function(){function f(b,a){this.b=b;this.cf=null;this.scrollX=this.b.gb/2;this.scrollY=this.b.fb/2;this.scale=1;this.j=0;this.Qf=!0;this.name=a[0];this.av=a[1];this.$u=a[2];this.width=a[1];this.height=a[2];this.Lq=a[3];this.uq=a[4];this.T=a[5];var g=a[6],c,d;this.L=[];this.hh=[];c=0;for(d=g.length;c<d;c++){var e=new Vb(this,g[c]);e.Cp=c;this.L.push(e)}g=a[7];this.De=[];c=0;for(d=g.length;c<d;c++){var e=g[c],f=this.b.m[e[1]];f.Gc||(f.Gc=e);this.De.push(e);-1===this.hh.indexOf(f)&&this.hh.push(f)}this.K=
[];this.ca=[];this.ae=!0;this.Ha=[];c=0;for(d=a[8].length;c<d;c++)this.K.push({id:a[8][c][0],name:a[8][c][1],Sa:-1,fd:!1,Aa:!0,index:c}),this.Ha.push(a[8][c][2].slice(0));this.md();this.Km=new ua(0,0,1,1);this.Lm=new ua(0,0,1,1);this.Le={}}function l(b,a){return b.pd-a.pd}function n(b,a){this.lb=b;this.b=b.b;this.c=[];this.scale=1;this.j=0;this.Ld=!1;this.ee=new ua(0,0,0,0);this.Fq=new va;this.na=this.ga=this.pa=this.fa=0;this.Cf=!1;this.ie=-1;this.$k=0;this.name=a[0];this.index=a[1];this.T=a[2];
this.visible=a[3];this.Wc=a[4];this.ld=a[5];this.Nc=a[6];this.Oc=a[7];this.opacity=a[8];this.aj=a[9];this.Cc=a[10];this.qd=a[11];this.Hb=a[12];this.Ss=a[13];this.Sg="source-over";this.Jb=this.Mb=0;this.Cb=null;this.Td=q();this.jd=!0;this.dg=new ua(0,0,-1,-1);this.tb=new ua(0,0,-1,-1);this.Cc&&(this.Cb=new ib(this.b.gb,this.b.fb));this.Cd=!1;var g=a[14],c,d;this.yq=[];this.xc=[];this.Ug=[];c=0;for(d=g.length;c<d;c++){var e=g[c],f=this.b.m[e[1]];f.Gc||(f.Gc=e,f.us=this.index);this.xc.push(e);-1===this.lb.hh.indexOf(f)&&
this.lb.hh.push(f)}za(this.yq,this.xc);this.K=[];this.ca=[];this.ae=!0;this.Ha=[];c=0;for(d=a[15].length;c<d;c++)this.K.push({id:a[15][c][0],name:a[15][c][1],Sa:-1,fd:!1,Aa:!0,index:c}),this.Ha.push(a[15][c][2].slice(0));this.md();this.Km=new ua(0,0,1,1);this.Lm=new ua(0,0,1,1)}function q(){return a.length?a.pop():[]}function p(b){V(b);a.push(b)}f.prototype.Gv=function(b){var a=b.type.T.toString();this.Le.hasOwnProperty(a)||(this.Le[a]=[]);this.Le[a].push(this.b.Sm(b))};f.prototype.Fo=function(){var b=
this.L[0];return!b.ld&&1===b.opacity&&!b.aj&&b.visible};f.prototype.md=function(){V(this.ca);this.ae=!0;var b,a,g;b=0;for(a=this.K.length;b<a;b++)g=this.K[b],g.Aa&&(this.ca.push(g),g.fd||(this.ae=!1))};f.prototype.xl=function(b){var a,g,c;a=0;for(g=this.K.length;a<g;a++)if(c=this.K[a],c.name===b)return c;return null};var r=[],e=!0;f.prototype.$m=function(){this.uq&&(this.cf=this.b.kl[this.uq],this.cf.kn());this.b.ka=this;this.width=this.av;this.height=this.$u;this.scrollX=this.b.gb/2;this.scrollY=
this.b.fb/2;var b,a,g,c,d,f,p;b=0;for(g=this.b.m.length;b<g;b++)if(a=this.b.m[b],!a.B)for(d=a.c,a=0,c=d.length;a<c;a++)if(f=d[a],f.e){var m=f.e.Cp;m>=this.L.length&&(m=this.L.length-1);f.e=this.L[m];-1===f.e.c.indexOf(f)&&f.e.c.push(f);f.e.Cf=!0}if(!e)for(b=0,g=this.L.length;b<g;++b)this.L[b].c.sort(l);V(r);this.ls();b=0;for(g=this.L.length;b<g;b++)f=this.L[b],f.ts(),f.Bk();d=!1;if(!this.Qf){for(p in this.Le)if(this.Le.hasOwnProperty(p)&&(a=this.b.hj(parseInt(p,10)))&&!a.B&&this.b.jn(a)){c=this.Le[p];
b=0;for(g=c.length;b<g;b++){f=null;if(a.ua.Fe&&(f=this.fj(c[b].w.l),!f))continue;f=this.b.we(a.Gc,f,!1,0,0,!0);this.b.Bj(f,c[b]);d=!0;r.push(f)}V(c)}b=0;for(g=this.L.length;b<g;b++)this.L[b].c.sort(l),this.L[b].Cf=!0}d&&(this.b.Gb(),this.b.cq());for(b=0;b<r.length;b++)if(f=r[b],f.type.$b)for(g=f.bh(),a=0,c=f.type.jc.length;a<c;a++)p=f.type.jc[a],f.type!==p&&(p.c.length>g?f.siblings.push(p.c[g]):p.Gc&&(d=this.b.we(p.Gc,f.e,!0,f.x,f.y,!0),this.b.Gb(),p.zk(),f.siblings.push(d),r.push(d)));b=0;for(g=
this.De.length;b<g;b++)f=this.De[b],a=this.b.m[f[1]],a.$b||this.b.we(this.De[b],null,!0);this.b.Rg=null;this.b.Gb();if(this.b.Ga&&!this.b.bb)for(b=0,g=this.b.m.length;b<g;b++)p=this.b.m[b],!p.B&&p.c.length&&p.Zj&&p.Zj(this.b.Ga);if(this.b.kh)za(this.b.Yi,r);else for(b=0,g=r.length;b<g;b++)f=r[b],this.b.trigger(Object.getPrototypeOf(f.type.ua).k.ni,f);V(r);this.b.kh||this.b.trigger(Y.prototype.k.Bn,null);this.Qf=!1};f.prototype.ss=function(){var b,a,c,k,d;a=b=0;for(c=this.De.length;b<c;b++)k=this.De[b],
d=this.b.m[k[1]],d.global?d.$b||this.b.we(k,null,!0):(this.De[a]=k,a++);ya(this.De,a)};f.prototype.Qv=function(){this.b.kh||this.b.trigger(Y.prototype.k.Ar,null);this.b.Ul=!0;V(this.b.Fd.Fb);var b,a,c,k,d,f;if(!this.Qf)for(b=0,a=this.L.length;b<a;b++)for(this.L[b].mn(),d=this.L[b].c,c=0,k=d.length;c<k;c++)f=d[c],f.type.global||this.b.jn(f.type)&&this.Gv(f);b=0;for(a=this.L.length;b<a;b++){d=this.L[b].c;c=0;for(k=d.length;c<k;c++)f=d[c],f.type.global||this.b.je(f);this.b.Gb();V(d);this.L[b].Cf=!0}b=
0;for(a=this.b.m.length;b<a;b++)if(d=this.b.m[b],!(d.global||d.ua.Fe||d.ua.lk||d.B)){c=0;for(k=d.c.length;c<k;c++)this.b.je(d.c[c]);this.b.Gb()}e=!1;this.b.Ul=!1};new ua(0,0,0,0);f.prototype.$c=function(b){var a,c=b,k=!1,d=!this.b.tc;d&&(this.b.zj||(this.b.zj=document.createElement("canvas"),a=this.b.zj,a.width=this.b.F,a.height=this.b.D,this.b.$o=a.getContext("2d"),k=!0),a=this.b.zj,c=this.b.$o,a.width!==this.b.F&&(a.width=this.b.F,k=!0),a.height!==this.b.D&&(a.height=this.b.D,k=!0),k&&this.b.hk(c,
this.b.za));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.Wn&&!this.Fo()&&c.clearRect(0,0,this.b.F,this.b.D);var e,f,k=0;for(e=this.L.length;k<e;k++)f=this.L[k],f.visible&&0<f.opacity&&11!==f.Hb&&(f.c.length||!f.ld)?f.$c(c):f.Bk();d&&b.drawImage(a,0,0,this.b.width,this.b.height)};f.prototype.Of=function(b){b.mq(!0);this.b.Pa||(this.b.Pa=b.Ec(this.b.F,this.b.D,this.b.za));if(this.b.Pa.Ue!==this.b.F||this.b.Pa.Te!==this.b.D)b.deleteTexture(this.b.Pa),this.b.Pa=b.Ec(this.b.F,this.b.D,
this.b.za);b.Pc(this.b.Pa);this.b.tc||b.Zd(this.b.F,this.b.D);var a,c;for(a=this.L.length-1;0<=a;--a)c=this.L[a],c.visible&&1===c.opacity&&c.ae&&0===c.Hb&&(c.c.length||!c.ld)?c.Of(b):c.Bk();b.mq(!1)};f.prototype.Xb=function(b){var a=0<this.ca.length||this.b.Jg||!this.b.tc||this.b.ra;if(a){this.b.Pa||(this.b.Pa=b.Ec(this.b.F,this.b.D,this.b.za));if(this.b.Pa.Ue!==this.b.F||this.b.Pa.Te!==this.b.D)b.deleteTexture(this.b.Pa),this.b.Pa=b.Ec(this.b.F,this.b.D,this.b.za);b.Pc(this.b.Pa);this.b.tc||b.Zd(this.b.F,
this.b.D)}else this.b.Pa&&(b.Pc(null),b.deleteTexture(this.b.Pa),this.b.Pa=null);this.b.Wn&&!this.Fo()&&b.clear(0,0,0,0);var c,k,d;c=0;for(k=this.L.length;c<k;c++)d=this.L[c],d.visible&&0<d.opacity&&(d.c.length||!d.ld)?d.Xb(b):d.Bk();a&&(0===this.ca.length||1===this.ca.length&&this.b.tc?(1===this.ca.length?(a=this.ca[0].index,b.gc(this.ca[0].Sa),b.yg(null,1/this.b.F,1/this.b.D,0,0,1,1,this.scale,this.j,0,0,this.b.F/2,this.b.D/2,this.b.yb.X,this.Ha[a]),b.$j(this.ca[0].Sa)&&(this.b.ja=!0)):b.gc(0),
this.b.tc||b.Zd(this.b.width,this.b.height),b.Pc(null),b.lq(!1),b.yf(1),b.qc(this.b.Pa),b.jq(),b.Dd(),b.nd(),a=this.b.width/2,c=this.b.height/2,b.vg(-a,c,a,c,a,-c,-a,-c),b.qc(null),b.lq(!0)):this.Mm(b,null,null,null))};f.prototype.ah=function(){return 0<this.ca.length||this.b.Jg||!this.b.tc||this.b.ra?this.b.Pa:null};f.prototype.Co=function(){var b=this.L[0].wc(),a,c,k;a=1;for(c=this.L.length;a<c;a++)k=this.L[a],(0!==k.Nc||0!==k.Oc)&&k.wc()<b&&(b=k.wc());return b};f.prototype.hq=function(b){if(!this.Lq){var a=
1/this.Co()*this.b.F/2;b>this.width-a&&(b=this.width-a);b<a&&(b=a)}this.scrollX!==b&&(this.scrollX=b,this.b.ja=!0)};f.prototype.iq=function(b){if(!this.Lq){var a=1/this.Co()*this.b.D/2;b>this.height-a&&(b=this.height-a);b<a&&(b=a)}this.scrollY!==b&&(this.scrollY=b,this.b.ja=!0)};f.prototype.ls=function(){this.hq(this.scrollX);this.iq(this.scrollY)};f.prototype.Mm=function(b,a,c,k){var d=c?c.ca:a?a.ca:this.ca,e=1,f=0,m=0,l=0,p=this.b.F,r=this.b.D;c?(e=c.e.wc(),f=c.e.wb(),m=c.e.fa,l=c.e.ga,p=c.e.pa,
r=c.e.na):a&&(e=a.wc(),f=a.wb(),m=a.fa,l=a.ga,p=a.pa,r=a.na);var n=this.b.rl,q,G,B,u,I=0,R=1,L,F,w=this.b.F,N=this.b.D,H=w/2,v=N/2,y=a?a.Km:this.Km,E=a?a.Lm:this.Lm,M=0,J=0,D=0,K=0,T=w,qa=w,S=N,ta=N,ia=B=0;u=c?c.e.wb():0;if(c){q=0;for(G=d.length;q<G;q++)B+=b.Wt(d[q].Sa),ia+=b.Xt(d[q].Sa);K=c.Ea;M=a.Rb(K.left,K.top,!0,!0);D=a.Rb(K.left,K.top,!1,!0);T=a.Rb(K.right,K.bottom,!0,!0);S=a.Rb(K.right,K.bottom,!1,!0);0!==u&&(q=a.Rb(K.right,K.top,!0,!0),G=a.Rb(K.right,K.top,!1,!0),J=a.Rb(K.left,K.bottom,!0,
!0),K=a.Rb(K.left,K.bottom,!1,!0),u=Math.min(M,T,q,J),T=Math.max(M,T,q,J),M=u,u=Math.min(D,S,G,K),S=Math.max(D,S,G,K),D=u);M-=B;D-=ia;T+=B;S+=ia;E.left=M/w;E.top=1-D/N;E.right=T/w;E.bottom=1-S/N;J=M=O(M);K=D=O(D);qa=T=ra(T);ta=S=ra(S);J-=B;K-=ia;qa+=B;ta+=ia;0>M&&(M=0);0>D&&(D=0);T>w&&(T=w);S>N&&(S=N);0>J&&(J=0);0>K&&(K=0);qa>w&&(qa=w);ta>N&&(ta=N);y.left=M/w;y.top=1-D/N;y.right=T/w;y.bottom=1-S/N}else y.left=E.left=0,y.top=E.top=0,y.right=E.right=1,y.bottom=E.bottom=1;ia=c&&(b.Rh(d[0].Sa)||0!==B||
0!==ia||1!==c.opacity||c.type.ua.xp)||a&&!c&&1!==a.opacity;b.jq();if(ia){n[I]||(n[I]=b.Ec(w,N,this.b.za));if(n[I].Ue!==w||n[I].Te!==N)b.deleteTexture(n[I]),n[I]=b.Ec(w,N,this.b.za);b.gc(0);b.Pc(n[I]);F=ta-K;b.clearRect(J,N-K-F,qa-J,F);c?c.Xb(b):(b.qc(this.b.cb),b.yf(a.opacity),b.Dd(),b.translate(-H,-v),b.nd(),b.Me(M,S,T,S,T,D,M,D,y));E.left=E.top=0;E.right=E.bottom=1;c&&(u=y.top,y.top=y.bottom,y.bottom=u);I=1;R=0}b.yf(1);B=d.length-1;var Ca=b.Im(d[B].Sa)||!a&&!c&&!this.b.tc;q=u=0;for(G=d.length;q<
G;q++){n[I]||(n[I]=b.Ec(w,N,this.b.za));if(n[I].Ue!==w||n[I].Te!==N)b.deleteTexture(n[I]),n[I]=b.Ec(w,N,this.b.za);b.gc(d[q].Sa);u=d[q].index;b.$j(d[q].Sa)&&(this.b.ja=!0);0!=q||ia?(b.yg(k,1/w,1/N,E.left,E.top,E.right,E.bottom,e,f,m,l,(m+p)/2,(l+r)/2,this.b.yb.X,c?c.Ha[u]:a?a.Ha[u]:this.Ha[u]),b.qc(null),q!==B||Ca?(b.Pc(n[I]),F=ta-K,L=N-K-F,b.clearRect(J,L,qa-J,F)):(c?b.Ne(c.Mb,c.Jb):a&&b.Ne(a.Mb,a.Jb),b.Pc(k)),b.qc(n[R]),b.Dd(),b.translate(-H,-v),b.nd(),b.Me(M,S,T,S,T,D,M,D,y),q!==B||Ca||b.qc(null)):
(b.Pc(n[I]),F=ta-K,L=N-K-F,b.clearRect(J,L,qa-J,F),c?(c.sb&&c.sb.S?(L=c.sb.S,R=1/L.width,L=1/L.height):(R=1/c.width,L=1/c.height),b.yg(k,R,L,E.left,E.top,E.right,E.bottom,e,f,m,l,(m+p)/2,(l+r)/2,this.b.yb.X,c.Ha[u]),c.Xb(b)):(b.yg(k,1/w,1/N,0,0,1,1,e,f,m,l,(m+p)/2,(l+r)/2,this.b.yb.X,a?a.Ha[u]:this.Ha[u]),b.qc(a?this.b.cb:this.b.Pa),b.Dd(),b.translate(-H,-v),b.nd(),b.Me(M,S,T,S,T,D,M,D,y)),E.left=E.top=0,E.right=E.bottom=1,c&&!Ca&&(u=S,S=D,D=u));I=0===I?1:0;R=0===I?1:0}Ca&&(b.gc(0),c?b.Ne(c.Mb,c.Jb):
a?b.Ne(a.Mb,a.Jb):this.b.tc||(b.Zd(this.b.width,this.b.height),H=this.b.width/2,v=this.b.height/2,D=M=0,T=this.b.width,S=this.b.height),b.Pc(k),b.qc(n[R]),b.Dd(),b.translate(-H,-v),b.nd(),c&&1===d.length&&!ia?b.Me(M,D,T,D,T,S,M,S,y):b.Me(M,S,T,S,T,D,M,D,y),b.qc(null))};f.prototype.fj=function(b){var a,c;a=0;for(c=this.L.length;a<c;a++)if(this.L[a].T===b)return this.L[a];return null};f.prototype.Tb=function(){var b,a,c,k={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.j,w:this.width,h:this.height,
fv:this.Qf,persist:this.Le,fx:[],layers:{}};b=0;for(a=this.K.length;b<a;b++)c=this.K[b],k.fx.push({name:c.name,active:c.Aa,params:this.Ha[c.index]});b=0;for(a=this.L.length;b<a;b++)c=this.L[b],k.layers[c.T.toString()]=c.Tb();return k};f.prototype.oc=function(b){var a,c,k,d;this.scrollX=b.sx;this.scrollY=b.sy;this.scale=b.s;this.j=b.a;this.width=b.w;this.height=b.h;this.Le=b.persist;"undefined"!==typeof b.fv&&(this.Qf=b.fv);var e=b.fx;a=0;for(c=e.length;a<c;a++)if(k=this.xl(e[a].name))k.Aa=e[a].active,
this.Ha[k.index]=e[a].params;this.md();a=b.layers;for(d in a)a.hasOwnProperty(d)&&(b=this.fj(parseInt(d,10)))&&b.oc(a[d])};Hb=f;n.prototype.md=function(){V(this.ca);this.ae=!0;var b,a,c;b=0;for(a=this.K.length;b<a;b++)c=this.K[b],c.Aa&&(this.ca.push(c),c.fd||(this.ae=!1))};n.prototype.xl=function(b){var a,c,k;a=0;for(c=this.K.length;a<c;a++)if(k=this.K[a],k.name===b)return k;return null};n.prototype.ts=function(){var b,a,c,k,d,e;a=b=0;for(c=this.xc.length;b<c;b++){k=this.xc[b];d=this.b.m[k[1]];e=
this.b.jn(d);d=!0;if(!e||this.lb.Qf){k=this.b.we(k,this,!0);if(!k)continue;r.push(k);k.type.global&&(d=!1,this.Ug.push(k.uid))}d&&(this.xc[a]=this.xc[b],a++)}this.xc.length=a;this.b.Gb();!this.b.q&&this.K.length&&(this.Hb=this.Ss);this.Sg=jb(this.Hb);this.b.u&&kb(this,this.Hb,this.b.u);this.jd=!0};n.prototype.wg=function(b,a){var c=Ba(this.c,b);0>c||(a&&this.Cc&&b.ec&&b.ec.right>=b.ec.left&&(b.wa(),this.Cb.update(b,b.ec,null),b.ec.set(0,0,-1,-1)),c===this.c.length-1?this.c.pop():(xa(this.c,c),this.Zh(c)),
this.jd=!0)};n.prototype.Pg=function(b,a){b.pd=this.c.length;this.c.push(b);a&&this.Cc&&b.ec&&b.Ca();this.jd=!0};n.prototype.ov=function(b){this.c.unshift(b);this.Zh(0)};n.prototype.Nu=function(b,a,c){var k=b.Ic();a=a.Ic();xa(this.c,k);k<a&&a--;c&&a++;a===this.c.length?this.c.push(b):this.c.splice(a,0,b);this.Zh(k<a?k:a)};n.prototype.Zh=function(b){-1===this.ie?this.ie=b:b<this.ie&&(this.ie=b);this.jd=this.Cf=!0};n.prototype.mn=function(){if(this.Cf){-1===this.ie&&(this.ie=0);var b,a,c;if(this.Cc)for(b=
this.ie,a=this.c.length;b<a;++b)c=this.c[b],c.pd=b,this.Cb.Ku(c.ec);else for(b=this.ie,a=this.c.length;b<a;++b)this.c[b].pd=b;this.Cf=!1;this.ie=-1}};n.prototype.wc=function(b){return this.Tt()*(this.b.tc||b?this.b.Qg:1)};n.prototype.Tt=function(){return(this.scale*this.lb.scale-1)*this.qd+1};n.prototype.wb=function(){return this.Ld?0:Ia(this.lb.j+this.j)};var a=[],c=[],d=[];n.prototype.Dl=function(){this.mn();this.Cb.bk(this.fa,this.ga,this.pa,this.na,d);if(!d.length)return q();if(1===d.length){var b=
q();za(b,d[0]);V(d);return b}for(var a=!0;1<d.length;){for(var b=d,g=void 0,k=void 0,e=void 0,f=void 0,l=void 0,g=0,k=b.length;g<k-1;g+=2){var e=b[g],f=b[g+1],l=q(),m=e,x=f,r=l,n=0,P=0,Q=0,G=m.length,B=x.length,u=void 0,I=void 0;for(r.length=G+B;n<G&&P<B;++Q)u=m[n],I=x[P],u.pd<I.pd?(r[Q]=u,++n):(r[Q]=I,++P);for(;n<G;++n,++Q)r[Q]=m[n];for(;P<B;++P,++Q)r[Q]=x[P];a||(p(e),p(f));c.push(l)}1===k%2&&(a?(e=q(),za(e,b[k-1]),c.push(e)):c.push(b[k-1]));za(b,c);V(c);a=!1}b=d[0];V(d);return b};n.prototype.$c=
function(b){this.Cd=this.aj||1!==this.opacity||0!==this.Hb;var a=this.b.canvas,c=b,k=!1;this.Cd&&(this.b.yj||(this.b.yj=document.createElement("canvas"),a=this.b.yj,a.width=this.b.F,a.height=this.b.D,this.b.Zo=a.getContext("2d"),k=!0),a=this.b.yj,c=this.b.Zo,a.width!==this.b.F&&(a.width=this.b.F,k=!0),a.height!==this.b.D&&(a.height=this.b.D,k=!0),k&&this.b.hk(c,this.b.za),this.ld&&c.clearRect(0,0,this.b.F,this.b.D));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.ld||(c.fillStyle="rgb("+
this.Wc[0]+","+this.Wc[1]+","+this.Wc[2]+")",c.fillRect(0,0,this.b.F,this.b.D));c.save();this.Ld=!0;var k=this.Wa(0,0,!0,!0),d=this.Wa(0,0,!1,!0);this.Ld=!1;this.b.ed&&(k=Math.round(k),d=Math.round(d));this.ek(k,d,c);var e=this.wc();c.scale(e,e);c.translate(-k,-d);this.Cc?(this.tb.left=this.Cb.Vb(this.fa),this.tb.top=this.Cb.Wb(this.ga),this.tb.right=this.Cb.Vb(this.pa),this.tb.bottom=this.Cb.Wb(this.na),this.jd||!this.tb.Wg(this.dg)?(p(this.Td),k=this.Dl(),this.jd=!1,this.dg.Kf(this.tb)):k=this.Td):
k=this.c;for(var f,m=null,d=0,e=k.length;d<e;++d)f=k[d],f!==m&&(this.Ns(f,c),m=f);this.Cc&&(this.Td=k);c.restore();this.Cd&&(b.globalCompositeOperation=this.Sg,b.globalAlpha=this.opacity,b.drawImage(a,0,0))};n.prototype.Ns=function(b,a){if(b.visible&&0!==b.width&&0!==b.height){b.wa();var c=b.Ea;c.right<this.fa||c.bottom<this.ga||c.left>this.pa||c.top>this.na||(a.globalCompositeOperation=b.Sg,b.$c(a))}};n.prototype.Bk=function(){this.Ld=!0;var b=this.Wa(0,0,!0,!0),a=this.Wa(0,0,!1,!0);this.Ld=!1;this.b.ed&&
(b=Math.round(b),a=Math.round(a));this.ek(b,a,null)};n.prototype.ek=function(b,a,c){var k=this.wc();this.fa=b;this.ga=a;this.pa=b+1/k*this.b.F;this.na=a+1/k*this.b.D;this.fa>this.pa&&(b=this.fa,this.fa=this.pa,this.pa=b);this.ga>this.na&&(b=this.ga,this.ga=this.na,this.na=b);b=this.wb();0!==b&&(c&&(c.translate(this.b.F/2,this.b.D/2),c.rotate(-b),c.translate(this.b.F/-2,this.b.D/-2)),this.ee.set(this.fa,this.ga,this.pa,this.na),this.ee.offset((this.fa+this.pa)/-2,(this.ga+this.na)/-2),this.Fq.sq(this.ee,
b),this.Fq.Rn(this.ee),this.ee.offset((this.fa+this.pa)/2,(this.ga+this.na)/2),this.fa=this.ee.left,this.ga=this.ee.top,this.pa=this.ee.right,this.na=this.ee.bottom)};n.prototype.Of=function(b){if(this.Cd=this.aj){this.b.cb||(this.b.cb=b.Ec(this.b.F,this.b.D,this.b.za));if(this.b.cb.Ue!==this.b.F||this.b.cb.Te!==this.b.D)b.deleteTexture(this.b.cb),this.b.cb=b.Ec(this.b.F,this.b.D,this.b.za);b.Pc(this.b.cb)}this.Ld=!0;var a=this.Wa(0,0,!0,!0),c=this.Wa(0,0,!1,!0);this.Ld=!1;this.b.ed&&(a=Math.round(a),
c=Math.round(c));this.ek(a,c,null);a=this.wc();b.Dd();b.scale(a,a);b.Pm(-this.wb());b.translate((this.fa+this.pa)/-2,(this.ga+this.na)/-2);b.nd();this.Cc?(this.tb.left=this.Cb.Vb(this.fa),this.tb.top=this.Cb.Wb(this.ga),this.tb.right=this.Cb.Vb(this.pa),this.tb.bottom=this.Cb.Wb(this.na),this.jd||!this.tb.Wg(this.dg)?(p(this.Td),a=this.Dl(),this.jd=!1,this.dg.Kf(this.tb)):a=this.Td):a=this.c;for(var k,d=null,c=a.length-1;0<=c;--c)k=a[c],k!==d&&(this.Ps(a[c],b),d=k);this.Cc&&(this.Td=a);this.ld||(this.$k=
this.b.$e++,b.ik(this.$k),b.kq(1,1,1),b.vo(),b.yv())};n.prototype.Xb=function(b){var a=0,c=0;if(this.Cd=this.aj||1!==this.opacity||0<this.ca.length||0!==this.Hb){this.b.cb||(this.b.cb=b.Ec(this.b.F,this.b.D,this.b.za));if(this.b.cb.Ue!==this.b.F||this.b.cb.Te!==this.b.D)b.deleteTexture(this.b.cb),this.b.cb=b.Ec(this.b.F,this.b.D,this.b.za);b.Pc(this.b.cb);this.ld&&b.clear(0,0,0,0)}this.ld||(this.b.ra?(b.ik(this.$k),b.kq(this.Wc[0]/255,this.Wc[1]/255,this.Wc[2]/255),b.vo(),b.Mv()):b.clear(this.Wc[0]/
255,this.Wc[1]/255,this.Wc[2]/255,1));this.Ld=!0;var k=this.Wa(0,0,!0,!0),a=this.Wa(0,0,!1,!0);this.Ld=!1;this.b.ed&&(k=Math.round(k),a=Math.round(a));this.ek(k,a,null);k=this.wc();b.Dd();b.scale(k,k);b.Pm(-this.wb());b.translate((this.fa+this.pa)/-2,(this.ga+this.na)/-2);b.nd();this.Cc?(this.tb.left=this.Cb.Vb(this.fa),this.tb.top=this.Cb.Wb(this.ga),this.tb.right=this.Cb.Vb(this.pa),this.tb.bottom=this.Cb.Wb(this.na),this.jd||!this.tb.Wg(this.dg)?(p(this.Td),a=this.Dl(),this.jd=!1,this.dg.Kf(this.tb)):
a=this.Td):a=this.c;var d,e,f=null,c=0;for(d=a.length;c<d;++c)e=a[c],e!==f&&(this.Os(a[c],b),f=e);this.Cc&&(this.Td=a);this.Cd&&(a=this.ca.length?this.ca[0].Sa:0,c=this.ca.length?this.ca[0].index:0,0===this.ca.length||1===this.ca.length&&!b.Im(a)&&1===this.opacity?(1===this.ca.length?(b.gc(a),b.yg(this.lb.ah(),1/this.b.F,1/this.b.D,0,0,1,1,k,this.wb(),this.fa,this.ga,(this.fa+this.pa)/2,(this.ga+this.na)/2,this.b.yb.X,this.Ha[c]),b.$j(a)&&(this.b.ja=!0)):b.gc(0),b.Pc(this.lb.ah()),b.yf(this.opacity),
b.qc(this.b.cb),b.Ne(this.Mb,this.Jb),b.Dd(),b.nd(),k=this.b.F/2,a=this.b.D/2,b.vg(-k,a,k,a,k,-a,-k,-a),b.qc(null)):this.lb.Mm(b,this,null,this.lb.ah()))};n.prototype.Os=function(b,a){if(b.visible&&0!==b.width&&0!==b.height){b.wa();var c=b.Ea;c.right<this.fa||c.bottom<this.ga||c.left>this.pa||c.top>this.na||(a.ik(b.$e),b.Rq?this.Qs(b,a):(a.gc(0),a.Ne(b.Mb,b.Jb),b.Xb(a)))}};n.prototype.Ps=function(b,a){if(b.visible&&0!==b.width&&0!==b.height){b.wa();var c=b.Ea;c.right<this.fa||c.bottom<this.ga||c.left>
this.pa||c.top>this.na||(b.$e=this.b.$e++,0===b.Hb&&1===b.opacity&&b.ae&&b.Of&&(a.ik(b.$e),b.Of(a)))}};n.prototype.Qs=function(b,a){var c=b.ca[0].Sa,k=b.ca[0].index,d=this.wc();if(1!==b.ca.length||a.Im(c)||a.qv(c)||(b.j||b.e.wb())&&a.Rh(c)||1!==b.opacity||b.type.ua.xp)this.lb.Mm(a,this,b,this.Cd?this.b.cb:this.lb.ah()),a.Dd(),a.scale(d,d),a.Pm(-this.wb()),a.translate((this.fa+this.pa)/-2,(this.ga+this.na)/-2),a.nd();else{a.gc(c);a.Ne(b.Mb,b.Jb);a.$j(c)&&(this.b.ja=!0);var e=0,f=0,m=0,l=0;a.Rh(c)&&
(l=b.Ea,e=this.Rb(l.left,l.top,!0,!0),f=this.Rb(l.left,l.top,!1,!0),m=this.Rb(l.right,l.bottom,!0,!0),l=this.Rb(l.right,l.bottom,!1,!0),e=e/windowWidth,f=1-f/windowHeight,m=m/windowWidth,l=1-l/windowHeight);var p;b.sb&&b.sb.S?(p=b.sb.S,c=1/p.width,p=1/p.height):(c=1/b.width,p=1/b.height);a.yg(this.Cd?this.b.cb:this.lb.ah(),c,p,e,f,m,l,d,this.wb(),this.fa,this.ga,(this.fa+this.pa)/2,(this.ga+this.na)/2,this.b.yb.X,b.Ha[k]);b.Xb(a)}};n.prototype.Wa=function(b,a,c,k){var d=this.b.devicePixelRatio;this.b.mf&&
(b*=d,a*=d);var d=this.b.Tp,e=this.b.Up,d=(this.lb.scrollX-d)*this.Nc+d,e=(this.lb.scrollY-e)*this.Oc+e,f=d,m=e,l=1/this.wc(!k);k?(f-=this.b.F*l/2,m-=this.b.D*l/2):(f-=this.b.width*l/2,m-=this.b.height*l/2);f+=b*l;m+=a*l;a=this.wb();0!==a&&(f-=d,m-=e,b=Math.cos(a),a=Math.sin(a),k=f*b-m*a,m=m*b+f*a,f=k+d,m+=e);return c?f:m};n.prototype.Rb=function(b,a,c,k){var d=this.b.Tp,e=this.b.Up,f=(this.lb.scrollX-d)*this.Nc+d,m=(this.lb.scrollY-e)*this.Oc+e,e=f,d=m,l=this.wb();if(0!==l){b-=f;a-=m;var p=Math.cos(-l),
l=Math.sin(-l),r=b*p-a*l;a=a*p+b*l;b=r+f;a+=m}f=1/this.wc(!k);k?(e-=this.b.F*f/2,d-=this.b.D*f/2):(e-=this.b.width*f/2,d-=this.b.height*f/2);e=(b-e)/f;d=(a-d)/f;b=this.b.devicePixelRatio;this.b.mf&&!k&&(e/=b,d/=b);return c?e:d};n.prototype.Tb=function(){var b,a,c,d={s:this.scale,a:this.j,vl:this.fa,vt:this.ga,vr:this.pa,vb:this.na,v:this.visible,bc:this.Wc,t:this.ld,px:this.Nc,py:this.Oc,o:this.opacity,zr:this.qd,fx:[],cg:this.Ug,instances:[]};b=0;for(a=this.K.length;b<a;b++)c=this.K[b],d.fx.push({name:c.name,
active:c.Aa,params:this.Ha[c.index]});return d};n.prototype.oc=function(b){var a,c,d;this.scale=b.s;this.j=b.a;this.fa=b.vl;this.ga=b.vt;this.pa=b.vr;this.na=b.vb;this.visible=b.v;this.Wc=b.bc;this.ld=b.t;this.Nc=b.px;this.Oc=b.py;this.opacity=b.o;this.qd=b.zr;this.Ug=b.cg||[];za(this.xc,this.yq);var e=new ca;a=0;for(d=this.Ug.length;a<d;++a)e.add(this.Ug[a]);c=a=0;for(d=this.xc.length;a<d;++a)e.contains(this.xc[a][2])||(this.xc[c]=this.xc[a],++c);ya(this.xc,c);c=b.fx;a=0;for(d=c.length;a<d;a++)if(b=
this.xl(c[a].name))b.Aa=c[a].active,this.Ha[b.index]=c[a].params;this.md();this.c.sort(l);this.Cf=!0};Vb=n})();
(function(){function f(b,a){var c,g=b.length;switch(g){case 0:return!0;case 1:return b[0]===a[0];case 2:return b[0]===a[0]&&b[1]===a[1];default:for(c=0;c<g;c++)if(b[c]!==a[c])return!1;return!0}}function l(b,a){return b.index-a.index}function n(b){var a,c,g,d;2===b.length?b[0].index>b[1].index&&(a=b[0],b[0]=b[1],b[1]=a):2<b.length&&b.sort(l);b.length>=t.length&&(t.length=b.length+1);t[b.length]||(t[b.length]=[]);d=t[b.length];a=0;for(c=d.length;a<c;a++)if(g=d[a],f(b,g))return g;d.push(b);return b}
function q(b,a){this.b=b;this.Iq={};this.mo={};this.Kl=!1;this.Ho=new ca;this.el=[];this.Ok=[];this.name=a[0];var c=a[1];this.Ae=[];var g,d;g=0;for(d=c.length;g<d;g++)this.Jo(c[g],null,this.Ae)}function p(b){this.type=b;this.c=[];this.M=[];this.la=!0}function r(b,a,c){this.sheet=b;this.parent=a;this.b=b.b;this.W=[];this.Oe=[];this.Go=this.vk=this.dn=this.nj=this.group=this.Ym=!1;this.Xa=[];this.Tc=[];this.Qc=[];this.dh="";this.Rf=this.nj=this.group=!1;this.Ki=null;c[1]&&(this.dh=c[1][1].toLowerCase(),
this.group=!0,this.nj=!!c[1][0],this.Ki=[],this.Rf=this.nj,this.b.pe.push(this),this.b.eh[this.dh]=this);this.zc=c[2];this.T=c[4];this.group||(this.b.Qn[this.T.toString()]=this);var g=c[5];b=0;for(a=g.length;b<a;b++){var d=new Wb(this,g[b]);d.index=b;this.Xa.push(d);this.Ln(d.type)}g=c[6];b=0;for(a=g.length;b<a;b++)d=new Xb(this,g[b]),d.index=b,this.Tc.push(d);if(8===c.length)for(c=c[7],b=0,a=c.length;b<a;b++)this.sheet.Jo(c[b],this,this.Qc);this.wj=!1;this.Xa.length&&(this.wj=null==this.Xa[0].type&&
this.Xa[0].ub==Y.prototype.k.wn)}function e(b,a){var c,g,d;if(b&&(-1===a.indexOf(b)&&a.push(b),b.$b))for(c=0,g=b.jc.length;c<g;c++)d=b.jc[c],b!==d&&-1===a.indexOf(d)&&a.push(d)}function a(b,a){this.rc=b;this.sheet=b.sheet;this.b=b.b;this.P=[];this.Ia=[];this.ya={};this.index=-1;this.Ng=!1;this.ub=this.b.ke(a[1]);this.trigger=0<a[3];this.lo=2===a[3];this.zd=a[4];this.oj=a[5];this.Gu=a[6];this.T=a[7];this.b.ue[this.T.toString()]=this;-1===a[0]?(this.type=null,this.Ra=this.Rm,this.Se=null,this.Xc=-1):
(this.type=this.b.m[a[0]],this.Ra=this.Gu?this.Ev:this.Qm,a[2]?(this.Se=this.type.dj(a[2]),this.Xc=this.type.tl(a[2])):(this.Se=null,this.Xc=-1),this.rc.parent&&this.rc.parent.jk());this.lo&&(this.Ra=this.Fv);if(10===a.length){var c,g,d=a[9];c=0;for(g=d.length;c<g;c++){var k=new Yb(this,d[c]);this.P.push(k)}this.Ia.length=d.length}}function c(b,a){this.rc=b;this.sheet=b.sheet;this.b=b.b;this.P=[];this.Ia=[];this.ya={};this.index=-1;this.Ng=!1;this.ub=this.b.ke(a[1]);-1===a[0]?(this.type=null,this.Ra=
this.Rm,this.Se=null,this.Xc=-1):(this.type=this.b.m[a[0]],this.Ra=this.Qm,a[2]?(this.Se=this.type.dj(a[2]),this.Xc=this.type.tl(a[2])):(this.Se=null,this.Xc=-1));this.T=a[3];this.b.me[this.T.toString()]=this;if(6===a.length){var c,g,d=a[5];c=0;for(g=d.length;c<g;c++){var k=new Yb(this,d[c]);this.P.push(k)}this.Ia.length=d.length}}function d(){U++;C.length===U&&C.push(new Zb);return C[U]}function b(b,a){this.ta=b;this.rc=b.rc;this.sheet=b.sheet;this.b=b.b;this.type=a[0];this.wd=null;this.be=0;this.get=
null;this.Xn=0;this.lb=null;this.key=0;this.object=null;this.index=0;this.ii=this.zf=this.ii=this.zf=this.po=this.df=this.ji=null;this.Sc=!1;var c,g,d;switch(a[0]){case 0:case 7:this.wd=new $b(this,a[1]);this.be=0;this.get=this.bu;break;case 1:this.wd=new $b(this,a[1]);this.be=0;this.get=this.cu;break;case 5:this.wd=new $b(this,a[1]);this.be=0;this.get=this.gu;break;case 3:case 8:this.Xn=a[1];this.get=this.$t;break;case 6:this.lb=this.b.gm[a[1]];this.get=this.hu;break;case 9:this.key=a[1];this.get=
this.fu;break;case 4:this.object=this.b.m[a[1]];this.get=this.iu;this.rc.Ln(this.object);this.ta instanceof Xb?this.rc.jk():this.rc.parent&&this.rc.parent.jk();break;case 10:this.index=a[1];b.type&&b.type.B?(this.get=this.du,this.Sc=!0):this.get=this.eu;break;case 11:this.ji=a[1];this.df=null;this.get=this.au;break;case 2:case 12:this.po=a[1];this.get=this.Zt;break;case 13:for(this.get=this.ju,this.zf=[],this.ii=[],c=1,g=a.length;c<g;c++)d=new Yb(this.ta,a[c]),this.zf.push(d),this.ii.push(0)}}function h(b,
a,c){this.sheet=b;this.parent=a;this.b=b.b;this.W=[];this.name=c[1];this.ki=c[2];this.mj=c[3];this.sh=!!c[4];this.vj=!!c[5];this.T=c[6];this.b.Lg[this.T.toString()]=this;this.data=this.mj;this.parent?(this.uf=this.sh||this.vj?-1:this.b.Ov++,this.b.gs.push(this)):(this.uf=-1,this.b.Mk.push(this))}function g(b,a,c){this.sheet=b;this.parent=a;this.b=b.b;this.W=[];this.gh=null;this.pu=c[1];this.Aa=!0}function k(){this.Aq=[];this.reset(null)}var t=[];q.prototype.toString=function(){return this.name};q.prototype.Jo=
function(b,a,c){switch(b[0]){case 0:b=new ac(this,a,b);if(b.zc)for(c.push(b),c=0,a=b.Xa.length;c<a;c++)b.Xa[c].trigger&&this.Ko(b,c);else b.To()?this.Ko(b,0):c.push(b);break;case 1:b=new Sb(this,a,b);c.push(b);break;case 2:b=new bc(this,a,b),c.push(b)}};q.prototype.Ka=function(){var b,a;b=0;for(a=this.Ae.length;b<a;b++)this.Ae[b].Ka(b<a-1&&this.Ae[b+1].wj)};q.prototype.kn=function(){V(this.el);V(this.Ok);this.Kn(this);V(this.Ok)};q.prototype.Kn=function(b){var a,c,g,d,k=b.el,e=b.Ok,h=this.Ho.od();
a=0;for(c=h.length;a<c;++a)g=h[a],d=g.gh,!g.Aa||b===d||-1<e.indexOf(d)||(e.push(d),d.Kn(b),k.push(d))};q.prototype.Ra=function(b){this.b.mx||(this.Kl=!0,b||(this.b.Xl=!0));var a,c;a=0;for(c=this.Ae.length;a<c;a++){var g=this.Ae[a];g.Ra();this.b.Zk(g.W);this.b.Ce&&this.b.Gb()}b||(this.b.Xl=!1)};q.prototype.Ko=function(b,a){b.zc||this.b.xk.push(b);var c,g,d=b.Xa[a],k;d.type?k=d.type.name:k="system";var e=(c=d.lo)?this.mo:this.Iq;e[k]||(e[k]=[]);k=e[k];e=d.ub;if(c){if(d.P.length&&(d=d.P[0],1===d.type&&
2===d.wd.type)){d=d.wd.value.toLowerCase();c=0;for(g=k.length;c<g;c++)if(k[c].method==e){c=k[c].Xg;c[d]?c[d].push([b,a]):c[d]=[[b,a]];return}c={};c[d]=[[b,a]];k.push({method:e,Xg:c})}}else{c=0;for(g=k.length;c<g;c++)if(k[c].method==e){k[c].Xg.push([b,a]);return}nc&&e===nc.prototype.k.Ff?k.unshift({method:e,Xg:[[b,a]]}):k.push({method:e,Xg:[[b,a]]})}};Ib=q;p.prototype.Jl=function(){return this.la?this.type.c.length:this.c.length};p.prototype.vc=function(){return this.la?this.type.c:this.c};p.prototype.xf=
function(b){b&&(b.b.Oa().Ma.zc?(this.la&&(V(this.c),za(this.M,b.type.c),this.la=!1),b=this.M.indexOf(b),-1!==b&&(this.c.push(this.M[b]),this.M.splice(b,1))):(this.la=!1,V(this.c),this.c[0]=b))};qb=p;window._c2hh_="37C83F976C140139885F3C396BA11413E974CC56";r.prototype.Ka=function(b){var a,c=this.parent;if(this.group)for(this.vk=!0;c;){if(!c.group){this.vk=!1;break}c=c.parent}this.dn=!this.To()&&(!this.parent||this.parent.group&&this.parent.vk);this.Go=!!b;this.Oe=this.W.slice(0);for(c=this.parent;c;){b=
0;for(a=c.W.length;b<a;b++)this.cs(c.W[b]);c=c.parent}this.W=n(this.W);this.Oe=n(this.Oe);b=0;for(a=this.Xa.length;b<a;b++)this.Xa[b].Ka();b=0;for(a=this.Tc.length;b<a;b++)this.Tc[b].Ka();b=0;for(a=this.Qc.length;b<a;b++)this.Qc[b].Ka(b<a-1&&this.Qc[b+1].wj)};r.prototype.nq=function(b){if(this.Rf!==!!b){this.Rf=!!b;var a;b=0;for(a=this.Ki.length;b<a;++b)this.Ki[b].Nq();0<a&&this.b.ka.cf&&this.b.ka.cf.kn()}};r.prototype.Ln=function(b){e(b,this.W)};r.prototype.cs=function(b){e(b,this.Oe)};r.prototype.jk=
function(){this.Ym=!0;this.parent&&this.parent.jk()};r.prototype.To=function(){return this.Xa.length?this.Xa[0].trigger:!1};r.prototype.Ra=function(){var b,a,c=!1,g=this.b,d=this.b.Oa();d.Ma=this;var k=this.Xa;this.wj||(d.il=!1);if(this.zc){0===k.length&&(c=!0);d.La=0;for(b=k.length;d.La<b;d.La++)a=k[d.La],a.trigger||(a=a.Ra())&&(c=!0);(d.pf=c)&&this.fk()}else{d.La=0;for(b=k.length;d.La<b;d.La++)if(a=k[d.La].Ra(),!a){d.pf=!1;this.dn&&g.Ce&&g.Gb();return}d.pf=!0;this.fk()}this.Us(d)};r.prototype.Us=
function(b){b.pf&&this.Go&&(b.il=!0);this.dn&&this.b.Ce&&this.b.Gb()};r.prototype.Cv=function(b){this.b.Oa().Ma=this;this.Xa[b].Ra()&&(this.fk(),this.b.Oa().pf=!0)};r.prototype.fk=function(){var b=this.b.Oa(),a;b.Ob=0;for(a=this.Tc.length;b.Ob<a;b.Ob++)if(this.Tc[b.Ob].Ra())return;this.gq()};r.prototype.Av=function(){var b=this.b.Oa(),a;for(a=this.Tc.length;b.Ob<a;b.Ob++)if(this.Tc[b.Ob].Ra())return;this.gq()};r.prototype.gq=function(){if(this.Qc.length){var b,a,c,g,d=this.Qc.length-1;this.b.ak(this);
if(this.Ym)for(b=0,a=this.Qc.length;b<a;b++)c=this.Qc[b],(g=!this.vk||!this.group&&b<d)&&this.b.ug(c.W),c.Ra(),g?this.b.Xd(c.W):this.b.Zk(c.W);else for(b=0,a=this.Qc.length;b<a;b++)this.Qc[b].Ra();this.b.Wj()}};r.prototype.Dv=function(){var b=this.b.Oa();b.Ma=this;var a=!1,c;b.La=0;for(c=this.Xa.length;b.La<c;b.La++)if(this.Xa[b.La].Ra())a=!0;else if(!this.zc)return!1;return this.zc?a:!0};r.prototype.Vh=function(){this.b.Yg++;var b=this.b.Oa().La,a=this.b.ak(this);if(!this.zc)for(a.La=b+1,b=this.Xa.length;a.La<
b;a.La++)if(!this.Xa[a.La].Ra()){this.b.Wj();return}this.fk();this.b.Wj()};r.prototype.yu=function(b){var a=b.index;if(0===a)return!0;for(--a;0<=a;--a)if(this.Xa[a].type===b.type)return!1;return!0};ac=r;a.prototype.Ka=function(){var b,a,c;b=0;for(a=this.P.length;b<a;b++)c=this.P[b],c.Ka(),c.Sc&&(this.Ng=!0)};a.prototype.Fv=function(){return!0};a.prototype.Rm=function(){var b,a;b=0;for(a=this.P.length;b<a;b++)this.Ia[b]=this.P[b].get();return Xa(this.ub.apply(this.b.Fd,this.Ia),this.oj)};a.prototype.Ev=
function(){var b,a;b=0;for(a=this.P.length;b<a;b++)this.Ia[b]=this.P[b].get();b=this.ub.apply(this.Se?this.Se:this.type,this.Ia);this.type.sd();return b};a.prototype.Qm=function(){var b,a,c,g,d,k,e,h,f=this.type,t=f.Z(),l=this.rc.zc&&!this.trigger;a=0;var p=f.$b,r=f.B,n=f.Nd,C=this.Xc,q=-1<C,U=this.Ng,y=this.P,E=this.Ia,M=this.oj,J=this.ub,D;if(U)for(a=0,d=y.length;a<d;++a)k=y[a],k.Sc||(E[a]=k.get(0));else for(a=0,d=y.length;a<d;++a)E[a]=y[a].get(0);if(t.la){V(t.c);V(t.M);D=f.c;b=0;for(g=D.length;b<
g;++b){h=D[b];if(U)for(a=0,d=y.length;a<d;++a)k=y[a],k.Sc&&(E[a]=k.get(b));q?(a=0,r&&(a=h.type.Pf[n]),a=J.apply(h.C[C+a],E)):a=J.apply(h,E);(e=Xa(a,M))?t.c.push(h):l&&t.M.push(h)}f.finish&&f.finish(!0);t.la=!1;f.sd();return t.Jl()}c=0;D=(e=l&&!this.rc.yu(this))?t.M:t.c;var K=!1;b=0;for(g=D.length;b<g;++b){h=D[b];if(U)for(a=0,d=y.length;a<d;++a)k=y[a],k.Sc&&(E[a]=k.get(b));q?(a=0,r&&(a=h.type.Pf[n]),a=J.apply(h.C[C+a],E)):a=J.apply(h,E);if(Xa(a,M))if(K=!0,e){if(t.c.push(h),p)for(a=0,d=h.siblings.length;a<
d;a++)k=h.siblings[a],k.type.Z().c.push(k)}else{D[c]=h;if(p)for(a=0,d=h.siblings.length;a<d;a++)k=h.siblings[a],k.type.Z().c[c]=k;c++}else if(e){D[c]=h;if(p)for(a=0,d=h.siblings.length;a<d;a++)k=h.siblings[a],k.type.Z().M[c]=k;c++}else if(l&&(t.M.push(h),p))for(a=0,d=h.siblings.length;a<d;a++)k=h.siblings[a],k.type.Z().M.push(k)}ya(D,c);if(p)for(r=f.jc,b=0,g=r.length;b<g;b++)h=r[b].Z(),e?ya(h.M,c):ya(h.c,c);c=K;if(e&&!K)for(b=0,g=t.c.length;b<g;b++){h=t.c[b];if(U)for(a=0,d=y.length;a<d;a++)k=y[a],
k.Sc&&(E[a]=k.get(b));a=q?J.apply(h.C[C],E):J.apply(h,E);if(Xa(a,M)){K=!0;break}}f.finish&&f.finish(c||l);return l?K:t.Jl()};Wb=a;c.prototype.Ka=function(){var b,a,c;b=0;for(a=this.P.length;b<a;b++)c=this.P[b],c.Ka(),c.Sc&&(this.Ng=!0)};c.prototype.Rm=function(){var b=this.b,a,c,g=this.P,d=this.Ia;a=0;for(c=g.length;a<c;++a)d[a]=g[a].get();return this.ub.apply(b.Fd,d)};c.prototype.Qm=function(){var b=this.type,a=this.Xc,c=b.Nd,g=this.Ng,d=this.P,k=this.Ia,e=this.ub,h=b.Z().vc(),b=b.B,f=-1<a,t,l,p,
r,n,C;if(g)for(l=0,r=d.length;l<r;++l)n=d[l],n.Sc||(k[l]=n.get(0));else for(l=0,r=d.length;l<r;++l)k[l]=d[l].get(0);t=0;for(p=h.length;t<p;++t){C=h[t];if(g)for(l=0,r=d.length;l<r;++l)n=d[l],n.Sc&&(k[l]=n.get(t));f?(l=0,b&&(l=C.type.Pf[c]),e.apply(C.C[a+l],k)):e.apply(C,k)}return!1};Xb=c;var C=[],U=-1;b.prototype.Ka=function(){var b,a;if(11===this.type)this.df=this.b.Ao(this.ji,this.rc.parent);else if(13===this.type)for(b=0,a=this.zf.length;b<a;b++)this.zf[b].Ka();this.wd&&this.wd.Ka()};b.prototype.Lu=
function(b){this.Sc||!b||b.ua.lk||(this.Sc=!0)};b.prototype.qq=function(){this.Sc=!0};b.prototype.bu=function(b){this.be=b||0;b=d();this.wd.get(b);U--;return b.data};b.prototype.cu=function(b){this.be=b||0;b=d();this.wd.get(b);U--;return z(b.data)?b.data:""};b.prototype.iu=function(){return this.object};b.prototype.$t=function(){return this.Xn};b.prototype.gu=function(b){this.be=b||0;b=d();this.wd.get(b);U--;return b.kb()?this.b.$g(b.data):this.b.Bl(b.data)};b.prototype.hu=function(){return this.lb};
b.prototype.fu=function(){return this.key};b.prototype.eu=function(){return this.index};b.prototype.du=function(b){b=b||0;var a=this.ta.type,c=null,c=a.Z(),g=c.vc();if(g.length)c=g[b%g.length].type;else if(c.M.length)c=c.M[b%c.M.length].type;else if(a.c.length)c=a.c[b%a.c.length].type;else return 0;return this.index+c.Wi[a.Nd]};b.prototype.au=function(){return this.df};b.prototype.Zt=function(){return this.po};b.prototype.ju=function(){var b,a;b=0;for(a=this.zf.length;b<a;b++)this.ii[b]=this.zf[b].get();
return this.ii};Yb=b;h.prototype.Ka=function(){this.W=n(this.W)};h.prototype.$d=function(b){var a=this.b.zo();this.parent&&!this.sh&&a?(this.uf>=a.length&&(a.length=this.uf+1),a[this.uf]=b):this.data=b};h.prototype.gf=function(){var b=this.b.zo();return!this.parent||this.sh||!b||this.vj?this.data:this.uf>=b.length||"undefined"===typeof b[this.uf]?this.mj:b[this.uf]};h.prototype.Ra=function(){!this.parent||this.sh||this.vj||this.$d(this.mj)};Sb=h;g.prototype.toString=function(){return"include:"+this.gh.toString()};
g.prototype.Ka=function(){this.gh=this.b.kl[this.pu];this.sheet.Ho.add(this);this.W=n(this.W);for(var b=this.parent;b;)b.group&&b.Ki.push(this),b=b.parent;this.Nq()};g.prototype.Ra=function(){this.parent&&this.b.Sh(this.b.m);this.gh.Kl||this.gh.Ra(!0);this.parent&&this.b.Xd(this.b.m)};g.prototype.Nq=function(){for(var b=this.parent;b;){if(b.group&&!b.Rf){this.Aa=!1;return}b=b.parent}this.Aa=!0};bc=g;k.prototype.reset=function(b){this.Ma=b;this.Ob=this.La=0;V(this.Aq);this.il=this.pf=!1};k.prototype.Au=
function(){return this.Ma.Ym?!0:this.La<this.Ma.Xa.length-1?!!this.Ma.W.length:!1};Rb=k})();
(function(){function f(e,a){this.ta=e;this.b=e.b;this.type=a[0];this.get=[this.nt,this.jt,this.zt,this.Ct,this.Xs,this.At,this.tt,this.gt,this.qt,this.yt,this.Ys,this.xt,this.ht,this.ut,this.ot,this.pt,this.kt,this.lt,this.et,this.Bt,this.wt,this.mt,this.dt,this.it][this.type];var c=null;this.Ud=this.P=this.Ia=this.ub=this.tk=this.second=this.first=this.value=null;this.Xc=-1;this.ad=null;this.Sq=-1;this.df=this.ji=null;this.xg=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new $b(e,a[1]);break;case 18:this.first=new $b(e,a[1]);this.second=new $b(e,a[2]);this.tk=new $b(e,a[3]);break;case 19:this.ub=this.b.ke(a[1]);this.ub!==Y.prototype.Ya.random&&this.ub!==Y.prototype.Ya.ps||this.ta.qq();this.Ia=[];this.P=[];3===a.length?(c=a[2],this.Ia.length=c.length+1):this.Ia.length=1;break;case 20:this.Ud=this.b.m[a[1]];this.Xc=-1;this.ub=this.b.ke(a[2]);this.xg=a[3];oc&&this.ub===oc.prototype.Ya.Yq&&this.ta.qq();a[4]?this.ad=new $b(e,a[4]):this.ad=null;this.Ia=[];this.P=[];6===
a.length?(c=a[5],this.Ia.length=c.length+1):this.Ia.length=1;break;case 21:this.Ud=this.b.m[a[1]];this.xg=a[2];a[3]?this.ad=new $b(e,a[3]):this.ad=null;this.Sq=a[4];break;case 22:this.Ud=this.b.m[a[1]];this.Ud.dj(a[2]);this.Xc=this.Ud.tl(a[2]);this.ub=this.b.ke(a[3]);this.xg=a[4];a[5]?this.ad=new $b(e,a[5]):this.ad=null;this.Ia=[];this.P=[];7===a.length?(c=a[6],this.Ia.length=c.length+1):this.Ia.length=1;break;case 23:this.ji=a[1],this.df=null}this.ta.Lu(this.Ud);4<=this.type&&17>=this.type&&(this.first=
new $b(e,a[1]),this.second=new $b(e,a[2]));if(c){var d,b;d=0;for(b=c.length;d<b;d++)this.P.push(new $b(e,c[d]))}}function l(){++r;p.length===r&&p.push(new Zb);return p[r]}function n(e,a,c){var d,b;d=0;for(b=e.length;d<b;++d)e[d].get(c),a[d+1]=c.data}function q(e,a){this.type=e||cc.Ef;this.data=a||0;this.vf=null;this.type==cc.Ef&&(this.data=Math.floor(this.data))}f.prototype.Ka=function(){23===this.type&&(this.df=this.ta.b.Ao(this.ji,this.ta.rc.parent));this.first&&this.first.Ka();this.second&&this.second.Ka();
this.tk&&this.tk.Ka();this.ad&&this.ad.Ka();if(this.P){var e,a;e=0;for(a=this.P.length;e<a;e++)this.P[e].Ka()}};var p=[],r=-1;f.prototype.Bt=function(e){var a=this.P,c=this.Ia;c[0]=e;e=l();n(a,c,e);--r;this.ub.apply(this.b.Fd,c)};f.prototype.wt=function(e){var a=this.Ud,c=this.Ia,d=this.P,b=this.ad,h=this.ub,g=this.ta.be,k=a.Z(),f=k.vc();if(!f.length)if(k.M.length)f=k.M;else{this.xg?e.Ub(""):e.qa(0);return}c[0]=e;e.vf=a;e=l();n(d,c,e);b&&(b.get(e),e.kb()&&(g=e.data,f=a.c));--r;a=f.length;if(g>=a||
g<=-a)g%=a;0>g&&(g+=a);h.apply(f[g],c)};f.prototype.dt=function(e){var a=this.Ud,c=this.Ia,d=this.P,b=this.ad,h=this.Xc,g=this.ub,k=this.ta.be,f=a.Z(),p=f.vc();if(!p.length)if(f.M.length)p=f.M;else{this.xg?e.Ub(""):e.qa(0);return}c[0]=e;e.vf=a;e=l();n(d,c,e);b&&(b.get(e),e.kb()&&(k=e.data,p=a.c));--r;d=p.length;if(k>=d||k<=-d)k%=d;0>k&&(k+=d);k=p[k];p=0;a.B&&(p=k.type.Pf[a.Nd]);g.apply(k.C[h+p],c)};f.prototype.mt=function(e){var a=this.ad,c=this.Ud,d=this.Sq,b=this.ta.be,h=c.Z(),g=h.vc();if(!g.length)if(h.M.length)g=
h.M;else{this.xg?e.Ub(""):e.qa(0);return}if(a){h=l();a.get(h);if(h.kb()){b=h.data;g=c.c;0!==g.length&&(b%=g.length,0>b&&(b+=g.length));b=c.Al(b);c=b.ab[d];z(c)?e.Ub(c):e.H(c);--r;return}--r}a=g.length;if(b>=a||b<=-a)b%=a;0>b&&(b+=a);b=g[b];g=0;c.B&&(g=b.type.Wi[c.Nd]);c=b.ab[d+g];z(c)?e.Ub(c):e.H(c)};f.prototype.nt=function(e){e.type=cc.Ef;e.data=this.value};f.prototype.jt=function(e){e.type=cc.Df;e.data=this.value};f.prototype.zt=function(e){e.type=cc.String;e.data=this.value};f.prototype.Ct=function(e){this.first.get(e);
e.kb()&&(e.data=-e.data)};f.prototype.Xs=function(e){this.first.get(e);var a=l();this.second.get(a);e.kb()&&a.kb()&&(e.data+=a.data,a.Xf()&&e.gg());--r};f.prototype.At=function(e){this.first.get(e);var a=l();this.second.get(a);e.kb()&&a.kb()&&(e.data-=a.data,a.Xf()&&e.gg());--r};f.prototype.tt=function(e){this.first.get(e);var a=l();this.second.get(a);e.kb()&&a.kb()&&(e.data*=a.data,a.Xf()&&e.gg());--r};f.prototype.gt=function(e){this.first.get(e);var a=l();this.second.get(a);e.kb()&&a.kb()&&(e.data/=
a.data,e.gg());--r};f.prototype.qt=function(e){this.first.get(e);var a=l();this.second.get(a);e.kb()&&a.kb()&&(e.data%=a.data,a.Xf()&&e.gg());--r};f.prototype.yt=function(e){this.first.get(e);var a=l();this.second.get(a);e.kb()&&a.kb()&&(e.data=Math.pow(e.data,a.data),a.Xf()&&e.gg());--r};f.prototype.Ys=function(e){this.first.get(e);var a=l();this.second.get(a);a.$f()||e.$f()?this.$s(e,a):this.Zs(e,a);--r};f.prototype.$s=function(e,a){e.$f()&&a.$f()?this.ct(e,a):this.bt(e,a)};f.prototype.ct=function(e,
a){e.data+=a.data};f.prototype.bt=function(e,a){e.$f()?e.data+=(Math.round(1E10*a.data)/1E10).toString():e.Ub(e.data.toString()+a.data)};f.prototype.Zs=function(e,a){e.qa(e.data&&a.data?1:0)};f.prototype.xt=function(e){this.first.get(e);var a=l();this.second.get(a);e.kb()&&a.kb()&&(e.data||a.data?e.qa(1):e.qa(0));--r};f.prototype.et=function(e){this.first.get(e);e.data?this.second.get(e):this.tk.get(e)};f.prototype.ht=function(e){this.first.get(e);var a=l();this.second.get(a);e.qa(e.data===a.data?
1:0);--r};f.prototype.ut=function(e){this.first.get(e);var a=l();this.second.get(a);e.qa(e.data!==a.data?1:0);--r};f.prototype.ot=function(e){this.first.get(e);var a=l();this.second.get(a);e.qa(e.data<a.data?1:0);--r};f.prototype.pt=function(e){this.first.get(e);var a=l();this.second.get(a);e.qa(e.data<=a.data?1:0);--r};f.prototype.kt=function(e){this.first.get(e);var a=l();this.second.get(a);e.qa(e.data>a.data?1:0);--r};f.prototype.lt=function(e){this.first.get(e);var a=l();this.second.get(a);e.qa(e.data>=
a.data?1:0);--r};f.prototype.it=function(e){var a=this.df.gf();ha(a)?e.H(a):e.Ub(a)};$b=f;q.prototype.Xf=function(){return this.type===cc.Df};q.prototype.kb=function(){return this.type===cc.Ef||this.type===cc.Df};q.prototype.$f=function(){return this.type===cc.String};q.prototype.gg=function(){this.Xf()||(this.$f()&&(this.data=parseFloat(this.data)),this.type=cc.Df)};q.prototype.qa=function(e){this.type=cc.Ef;this.data=Math.floor(e)};q.prototype.H=function(e){this.type=cc.Df;this.data=e};q.prototype.Ub=
function(e){this.type=cc.String;this.data=e};q.prototype.Wm=function(e){ha(e)?(this.type=cc.Df,this.data=e):z(e)?(this.type=cc.String,this.data=e.toString()):(this.type=cc.Ef,this.data=0)};Zb=q;cc={Ef:0,Df:1,String:2}})();function Y(f){this.b=f;this.Fb=[]}
Y.prototype.Tb=function(){var f={},l,n,q,p,r,e,a,c;f.waits=[];var d=f.waits,b;l=0;for(n=this.Fb.length;l<n;l++){e=this.Fb[l];b={t:e.time,st:e.kk,s:e.bi,ev:e.bf.T,sm:[],sols:{}};e.bf.Tc[e.Ob]&&(b.act=e.bf.Tc[e.Ob].T);q=0;for(p=e.W.length;q<p;q++)b.sm.push(e.W[q].T);for(r in e.Lb)if(e.Lb.hasOwnProperty(r)){a=this.b.m[parseInt(r,10)];c={sa:e.Lb[r].Xh,insts:[]};q=0;for(p=e.Lb[r].yd.length;q<p;q++)c.insts.push(e.Lb[r].yd[q].uid);b.sols[a.T.toString()]=c}d.push(b)}return f};
Y.prototype.oc=function(f){f=f.waits;var l,n,q,p,r,e,a,c,d,b,h;V(this.Fb);l=0;for(n=f.length;l<n;l++)if(e=f[l],c=this.b.Qn[e.ev.toString()]){d=-1;q=0;for(p=c.Tc.length;q<p;q++)if(c.Tc[q].T===e.act){d=q;break}if(-1!==d){a={Lb:{},W:[],fl:!1};a.time=e.t;a.kk=e.st||"";a.bi=!!e.s;a.bf=c;a.Ob=d;q=0;for(p=e.sm.length;q<p;q++)(c=this.b.hj(e.sm[q]))&&a.W.push(c);for(r in e.sols)if(e.sols.hasOwnProperty(r)&&(c=this.b.hj(parseInt(r,10)))){d=e.sols[r];b={Xh:d.sa,yd:[]};q=0;for(p=d.insts.length;q<p;q++)(h=this.b.gj(d.insts[q]))&&
b.yd.push(h);a.Lb[c.index.toString()]=b}this.Fb.push(a)}}};
(function(){function f(){}function l(){}function n(){var a;e.length?a=e.pop():a={Lb:{},W:[]};a.fl=!1;return a}function q(){var c;a.length?c=a.pop():c={yd:[]};c.Xh=!1;return c}function p(){}var r=Y.prototype;f.prototype.Bn=function(){return!0};f.prototype.Ar=function(){return!0};f.prototype.br=function(a,d,b){return dc(a,d,b)};f.prototype.fr=function(a,d,b){var e=this.b.Oa(),g=e.Ma,e=e.Au();a=this.b.sv(a);if(b<d)if(e)for(;d>=b&&!a.Ta;--d)this.b.ug(g.W),a.index=d,g.Vh(),this.b.Xd(g.W);else for(;d>=
b&&!a.Ta;--d)a.index=d,g.Vh();else if(e)for(;d<=b&&!a.Ta;++d)this.b.ug(g.W),a.index=d,g.Vh(),this.b.Xd(g.W);else for(;d<=b&&!a.Ta;++d)a.index=d,g.Vh();this.b.hv();return!1};f.prototype.Ur=function(){var a=this.b.wl().ya;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var d=a.TriggerOnce_lastTick,b=this.b.Gg;a.TriggerOnce_lastTick=b;return this.b.fm||d!==b-1};f.prototype.Er=function(a,d){if(!a)return!1;var b=a.Z(),e=b.vc();d=O(d);if(0>d||d>=e.length)return!1;b.xf(e[d]);a.sd();
return!0};f.prototype.Fr=function(a){if(!a)return!1;var d=a.Z(),b=d.vc(),e=O(Math.random()*b.length);if(e>=b.length)return!1;d.xf(b[e]);a.sd();return!0};f.prototype.cr=function(a,d,b){return dc(a.gf(),d,b)};f.prototype.kr=function(a){return(a=this.b.eh[a.toLowerCase()])&&a.Rf};f.prototype.wn=function(){var a=this.b.Oa();return a.il?!1:!a.pf};f.prototype.Cn=function(){return!0};f.prototype.ur=function(){return!0};f.prototype.Kk=function(){return!0};f.prototype.En=function(){return!0};f.prototype.Br=
function(){return!0};f.prototype.qi=function(){return!0};f.prototype.Wq=function(a,d,b){return Na(X(a),X(b))<=X(d)};f.prototype.jr=function(a,d){return Pa(X(a),X(d))};f.prototype.ir=function(a,d,b){a=La(a);d=La(d);b=La(b);return Pa(b,d)?Pa(a,d)&&!Pa(a,b):!(!Pa(a,d)&&Pa(a,b))};r.k=new f;l.prototype.er=function(a,d,b,e){if(d&&a&&(d=this.b.Zn(a,d,b,e))){this.b.cd++;var g;this.b.trigger(Object.getPrototypeOf(a.ua).k.ni,d);if(d.$b)for(b=0,e=d.siblings.length;b<e;b++)g=d.siblings[b],this.b.trigger(Object.getPrototypeOf(g.type.ua).k.ni,
g);this.b.cd--;a=a.Z();a.la=!1;V(a.c);a.c[0]=d;if(d.$b)for(b=0,e=d.siblings.length;b<e;b++)g=d.siblings[b],a=g.type.Z(),a.la=!1,V(a.c),a.c[0]=g}};l.prototype.Pr=function(a,d){0===a.ki?ha(d)?a.$d(d):a.$d(parseFloat(d)):1===a.ki&&a.$d(d.toString())};l.prototype.Vq=function(a,d){0===a.ki?ha(d)?a.$d(a.gf()+d):a.$d(a.gf()+parseFloat(d)):1===a.ki&&a.$d(a.gf()+d.toString())};l.prototype.Sr=function(a,d){0===a.ki&&(ha(d)?a.$d(a.gf()-d):a.$d(a.gf()-parseFloat(d)))};var e=[],a=[];l.prototype.Wr=function(a){if(!(0>
a)){var d,b,e,g=this.b.Oa(),k=n();k.time=this.b.yb.X+a;k.kk="";k.bi=!1;k.bf=g.Ma;k.Ob=g.Ob+1;a=0;for(d=this.b.m.length;a<d;a++)e=this.b.m[a],b=e.Z(),b.la&&-1===g.Ma.W.indexOf(e)||(k.W.push(e),e=q(),e.Xh=b.la,za(e.yd,b.c),k.Lb[a.toString()]=e);this.Fb.push(k);return!0}};l.prototype.Xr=function(a){var d,b,e,g=this.b.Oa(),k=n();k.time=-1;k.kk=a.toLowerCase();k.bi=!1;k.bf=g.Ma;k.Ob=g.Ob+1;a=0;for(d=this.b.m.length;a<d;a++)e=this.b.m[a],b=e.Z(),b.la&&-1===g.Ma.W.indexOf(e)||(k.W.push(e),e=q(),e.Xh=b.la,
za(e.yd,b.c),k.Lb[a.toString()]=e);this.Fb.push(k);return!0};l.prototype.Qr=function(a){a=a.toLowerCase();var d,b,e;d=0;for(b=this.Fb.length;d<b;++d)e=this.Fb[d],-1===e.time&&e.kk===a&&(e.bi=!0)};l.prototype.Gr=function(){var a,d,b;a=0;for(d=this.b.Mk.length;a<d;a++)b=this.b.Mk[a],b.data=b.mj};l.prototype.Hr=function(){if(!this.b.vh&&!this.b.Rg&&this.b.ka){this.b.Rg=this.b.ka;var a,d,b;a=0;for(d=this.b.pe.length;a<d;a++)b=this.b.pe[a],b.nq(b.nj)}};r.N=new l;p.prototype["int"]=function(a,d){z(d)?(a.qa(parseInt(d,
10)),isNaN(a.data)&&(a.data=0)):a.qa(d)};p.prototype["float"]=function(a,d){z(d)?(a.H(parseFloat(d)),isNaN(a.data)&&(a.data=0)):a.H(d)};p.prototype.random=function(a,d,b){void 0===b?a.H(Math.random()*d):a.H(Math.random()*(b-d)+d)};p.prototype.sqrt=function(a,d){a.H(Math.sqrt(d))};p.prototype.abs=function(a,d){a.H(Math.abs(d))};p.prototype.round=function(a,d){a.qa(Math.round(d))};p.prototype.floor=function(a,d){a.qa(Math.floor(d))};p.prototype.ceil=function(a,d){a.qa(Math.ceil(d))};p.prototype.sin=
function(a,d){a.H(Math.sin(X(d)))};p.prototype.cos=function(a,d){a.H(Math.cos(X(d)))};p.prototype.tan=function(a,d){a.H(Math.tan(X(d)))};p.prototype.asin=function(a,d){a.H(Ga(Math.asin(d)))};p.prototype.acos=function(a,d){a.H(Ga(Math.acos(d)))};p.prototype.atan=function(a,d){a.H(Ga(Math.atan(d)))};p.prototype.exp=function(a,d){a.H(Math.exp(d))};p.prototype.log10=function(a,d){a.H(Math.log(d)/Math.LN10)};p.prototype.max=function(a){var d=arguments[1];"number"!==typeof d&&(d=0);var b,e,g;b=2;for(e=
arguments.length;b<e;b++)g=arguments[b],"number"===typeof g&&d<g&&(d=g);a.H(d)};p.prototype.min=function(a){var d=arguments[1];"number"!==typeof d&&(d=0);var b,e,g;b=2;for(e=arguments.length;b<e;b++)g=arguments[b],"number"===typeof g&&d>g&&(d=g);a.H(d)};p.prototype.Ye=function(a){a.H(this.b.Ye)};p.prototype.Ig=function(a){a.H(this.b.Ig)};p.prototype.time=function(a){a.H(this.b.yb.X)};p.prototype.Gg=function(a){a.qa(this.b.Gg)};p.prototype.Lj=function(a){a.qa(this.b.Lj)};p.prototype.ql=function(a){a.qa(this.b.ql)};
p.prototype.j=function(a,d,b,e,g){a.H(Ga(Ma(d,b,e,g)))};p.prototype.$v=function(a,d){a.Ub(z(d)?d.toUpperCase():"")};p.prototype.left=function(a,d,b){a.Ub(z(d)?d.substr(0,b):"")};p.prototype.right=function(a,d,b){a.Ub(z(d)?d.substr(d.length-b):"")};p.prototype.replace=function(a,d,b,e){z(d)&&z(b)&&z(e)?a.Ub(d.replace(new RegExp(eb(b),"gi"),e)):a.Ub(z(d)?d:"")};p.prototype.trim=function(a,d){a.Ub(z(d)?d.trim():"")};p.prototype.ps=function(a){var d=O(Math.random()*(arguments.length-1));a.Wm(arguments[d+
1])};p.prototype.al=function(a){a.H(this.b.al/1E3)};p.prototype.Dj=function(a){a.H(this.b.Dj)};r.Ya=new p;r.Bv=function(){var c,d,b,h,g,k,f=this.b.Oa();c=0;for(b=this.Fb.length;c<b;c++){h=this.Fb[c];if(-1===h.time){if(!h.bi)continue}else if(h.time>this.b.yb.X)continue;f.Ma=h.bf;f.Ob=h.Ob;f.La=0;for(d in h.Lb)h.Lb.hasOwnProperty(d)&&(g=this.b.m[parseInt(d,10)].Z(),k=h.Lb[d],g.la=k.Xh,za(g.c,k.yd),g=k,V(g.yd),a.push(g));h.bf.Av();this.b.Zk(h.W);h.fl=!0}d=c=0;for(b=this.Fb.length;c<b;c++)h=this.Fb[c],
this.Fb[d]=h,h.fl?(Za(h.Lb),V(h.W),e.push(h)):d++;ya(this.Fb,d)}})();
(function(){pb=function(f,n){var q=f[1],p=f[3],r=f[4],e=f[5],a=f[6],c=f[7],d=f[8];n.k||(n.k={});n.N||(n.N={});n.Ya||(n.Ya={});var b=n.k,h=n.N,g=n.Ya;p&&(b.dr=function(a,b){return dc(this.x,a,b)},b.rw=function(a,b){return dc(this.y,a,b)},b.lr=function(){var a=this.e;this.wa();var b=this.Ea;return!(b.right<a.fa||b.bottom<a.ga||b.left>a.pa||b.top>a.na)},b.mr=function(){this.wa();var a=this.Ea,b=this.b.ka;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},b.Fw=function(a,b,c){var g=this.Z(),
d=g.vc();if(!d.length)return!1;var e=d[0],f=e,h=Wa(e.x,e.y,b,c),l,p,r;l=1;for(p=d.length;l<p;l++)if(e=d[l],r=Wa(e.x,e.y,b,c),0===a&&r<h||1===a&&r>h)h=r,f=e;g.xf(f);return!0},h.Hn=function(a){this.x!==a&&(this.x=a,this.Ca())},h.Vw=function(a){this.y!==a&&(this.y=a,this.Ca())},h.Lr=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.Ca()},h.Mr=function(a,b){var c=a.Ut(this);if(c){var g;c.zl?(g=c.zl(b,!0),c=c.zl(b,!1)):(g=c.x,c=c.y);if(this.x!==g||this.y!==c)this.x=g,this.y=c,this.Ca()}},
h.zw=function(a){0!==a&&(this.x+=Math.cos(this.j)*a,this.y+=Math.sin(this.j)*a,this.Ca())},h.yw=function(a,b){0!==b&&(this.x+=Math.cos(X(a))*b,this.y+=Math.sin(X(a))*b,this.Ca())},g.In=function(a){a.H(this.x)},g.Jn=function(a){a.H(this.y)},g.Ye=function(a){a.H(this.b.ej(this))});r&&(b.qw=function(a,b){return dc(this.width,a,b)},b.mw=function(a,b){return dc(this.height,a,b)},h.Uw=function(a){this.width!==a&&(this.width=a,this.Ca())},h.Qw=function(a){this.height!==a&&(this.height=a,this.Ca())},h.Nr=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.Ca()},g.Yr=function(a){a.H(this.width)},g.hr=function(a){a.H(this.height)},g.jw=function(a){this.wa();a.H(this.Ea.left)},g.lw=function(a){this.wa();a.H(this.Ea.top)},g.kw=function(a){this.wa();a.H(this.Ea.right)},g.iw=function(a){this.wa();a.H(this.Ea.bottom)});e&&(b.Wq=function(a,b){return Na(this.j,X(b))<=X(a)},b.jr=function(a){return Pa(this.j,X(a))},b.ir=function(a,b){var c=La(a),g=La(b),d=Ia(this.j);return Pa(g,
c)?Pa(d,c)&&!Pa(d,g):!(!Pa(d,c)&&Pa(d,g))},h.Nw=function(a){a=X(Ha(a));isNaN(a)||this.j===a||(this.j=a,this.Ca())},h.Jw=function(a){0===a||isNaN(a)||(this.j+=X(a),this.j=Ia(this.j),this.Ca())},h.Kw=function(a){0===a||isNaN(a)||(this.j-=X(a),this.j=Ia(this.j),this.Ca())},h.Lw=function(a,b){var c=Oa(this.j,X(b),X(a));isNaN(c)||this.j===c||(this.j=c,this.Ca())},h.Mw=function(a,b,c){a=Oa(this.j,Math.atan2(c-this.y,b-this.x),X(a));isNaN(a)||this.j===a||(this.j=a,this.Ca())},h.Tw=function(a,b){var c=Math.atan2(b-
this.y,a-this.x);isNaN(c)||this.j===c||(this.j=c,this.Ca())},g.hw=function(a){a.H(Ja(this.j))});q||(b.ow=function(a,b,c){return dc(this.ab[a],b,c)},b.xn=function(a){return this.ab[a]},b.Gw=function(a,b){var c=this.Z(),g=c.vc();if(!g.length)return!1;var d=g[0],e=d,f=d.ab[b],h,l,p;h=1;for(l=g.length;h<l;h++)if(d=g[h],p=d.ab[b],0===a&&p<f||1===a&&p>f)f=p,e=d;c.xf(e);return!0},b.Dr=function(a){var b,c,g,d,e;if(this.b.wl().oj){e=this.Z();if(e.la)for(e.la=!1,V(e.c),V(e.M),g=this.c,b=0,c=g.length;b<c;b++)d=
g[b],d.uid===a?e.M.push(d):e.c.push(d);else{g=b=0;for(c=e.c.length;b<c;b++)d=e.c[b],e.c[g]=d,d.uid===a?e.M.push(d):g++;ya(e.c,g)}this.sd();return!!e.c.length}d=this.b.gj(a);if(!d)return!1;e=this.Z();if(!e.la&&-1===e.c.indexOf(d))return!1;if(this.B)for(a=d.type.Ba,b=0,c=a.length;b<c;b++){if(a[b]===this)return e.xf(d),this.sd(),!0}else if(d.type===this)return e.xf(d),this.sd(),!0;return!1},b.ni=function(){return!0},b.wr=function(){return!0},h.Rw=function(a,b){var c=this.ab;ha(c[a])?c[a]=ha(b)?b:parseFloat(b):
z(c[a])&&(c[a]=z(b)?b:b.toString())},h.gw=function(a,b){var c=this.ab;ha(c[a])?c[a]=ha(b)?c[a]+b:c[a]+parseFloat(b):z(c[a])&&(c[a]=z(b)?c[a]+b:c[a]+b.toString())},h.Ww=function(a,b){var c=this.ab;ha(c[a])&&(c[a]=ha(b)?c[a]-b:c[a]-parseFloat(b))},h.Fn=function(a,b){this.ab[a]=b?1:0},h.Xw=function(a){this.ab[a]=1-this.ab[a]},h.Ik=function(){this.b.je(this)},h.qr||(h.qr=function(a){var b,c;try{b=JSON.parse(a)}catch(g){return}this.b.Bj(this,b,!0);this.ne&&this.ne();if(this.C)for(a=0,b=this.C.length;a<
b;++a)c=this.C[a],c.ne&&c.ne()}),g.sw=function(a){var b=a.vf.c.length,c,g,d;c=0;for(g=this.b.Yc.length;c<g;c++)d=this.b.Yc[c],a.vf.B?0<=d.type.Ba.indexOf(a.vf)&&b++:d.type===a.vf&&b++;a.qa(b)},g.Iw=function(a){a.qa(a.vf.Z().vc().length)},g.Vr=function(a){a.qa(this.uid)},g.uw=function(a){a.qa(this.bh())},g.vn||(g.vn=function(a){a.Ub(JSON.stringify(this.b.Sm(this,!0)))}));a&&(b.or=function(){return this.visible},h.Gn=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.ja=!0)},b.pw=function(a,b){return dc(lb(100*
this.opacity),a,b)},h.Sw=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ja=!0)},g.Opacity=function(a){a.H(lb(100*this.opacity))});c&&(b.vw=function(a){return a?this.e===a:!1},b.Hw=function(a){var b=this.Z(),c=b.vc();if(!c.length)return!1;var g=c[0],d=g,e,f;e=1;for(f=c.length;e<f;e++)if(g=c[e],0===a){if(g.e.index>d.e.index||g.e.index===d.e.index&&g.Ic()>d.Ic())d=g}else if(g.e.index<d.e.index||g.e.index===d.e.index&&g.Ic()<d.Ic())d=g;b.xf(d);return!0},h.Cw=function(){var a=
this.e,b=a.c;b.length&&b[b.length-1]===this||(a.wg(this,!1),a.Pg(this,!1),this.b.ja=!0)},h.Aw=function(){var a=this.e,b=a.c;b.length&&b[0]===this||(a.wg(this,!1),a.ov(this),this.b.ja=!0)},h.Bw=function(a){a&&a!=this.e&&(this.e.wg(this,!0),this.e=a,a.Pg(this,!0),this.b.ja=!0)},h.Zw=function(a,b){var c=0===a;if(b){var g=b.Pt(this);g&&g.uid!==this.uid&&(this.e.index!==g.e.index&&(this.e.wg(this,!0),this.e=g.e,g.e.Pg(this,!0)),this.e.Nu(this,g,c),this.b.ja=!0)}},g.xw=function(a){a.qa(this.e.Cp)},g.ww=
function(a){a.Ub(this.e.name)},g.Yw=function(a){a.qa(this.Ic())});d&&(h.Ow=function(a,b){if(this.b.q){var c=this.type.yl(b);if(!(0>c)){var g=1===a;this.le[c]!==g&&(this.le[c]=g,this.md(),this.b.ja=!0)}}},h.Pw=function(a,b,c){if(this.b.q){var g=this.type.yl(a);0>g||(a=this.type.K[g],g=this.Ha[g],b=Math.floor(b),0>b||b>=g.length||(1===this.b.q.Yt(a.Sa,b)&&(c/=100),g[b]!==c&&(g[b]=c,a.Aa&&(this.b.ja=!0))))}})};Jb=function(){this.Vk=this.Bi=!0;this.type.ti=!0;this.b.ja=!0;var f,n,q=this.Sk;f=0;for(n=
q.length;f<n;++f)q[f](this);this.e.Cc&&this.wa()};Kb=function(f){f&&this.Sk.push(f)};Mb=function(){if(this.Bi){var f=this.Ea,n=this.ic;f.set(this.x,this.y,this.x+this.width,this.y+this.height);f.offset(-this.Yb*this.width,-this.Zb*this.height);this.j?(f.offset(-this.x,-this.y),n.sq(f,this.j),n.offset(this.x,this.y),n.Rn(f)):n.Ag(f);f.normalize();this.Bi=!1;this.Qq()}};var f=new ua(0,0,0,0);Nb=function(){if(this.e.Cc){var l=this.e.Cb,n=this.Ea;f.set(l.Vb(n.left),l.Wb(n.top),l.Vb(n.right),l.Wb(n.bottom));
this.ec.Wg(f)||(this.ec.right<this.ec.left?l.update(this,null,f):l.update(this,this.ec,f),this.ec.Kf(f),this.e.jd=!0)}};Ob=function(){if(this.Vk&&this.Ve){this.wa();var l=this.type.Ji,n=this.Ea;f.set(l.Vb(n.left),l.Wb(n.top),l.Vb(n.right),l.Wb(n.bottom));this.ve.Wg(f)||(this.ve.right<this.ve.left?l.update(this,null,f):l.update(this,this.ve,f),this.ve.Kf(f),this.Vk=!1)}};Lb=function(f,n){return this.Ea.Ib(f,n)&&this.ic.Ib(f,n)?this.Hg?this.nx(f,n):this.da&&!this.da.Wf()?(this.da.If(this.width,this.height,
this.j),this.da.Ib(f-this.x,n-this.y)):!0:!1};Fb=function(){this.type.zk();return this.kf};Pb=function(){this.e.mn();return this.pd};Qb=function(){V(this.ca);var f,n,q,p=!0;f=0;for(n=this.le.length;f<n;f++)this.le[f]&&(q=this.type.K[f],this.ca.push(q),q.fd||(p=!1));this.Rq=!!this.ca.length;this.ae=p};Gb=function(){return"Inst"+this.aq};sb=function(f){if(f&&f.$b&&f.type!=this){var n,q,p;n=0;for(q=f.siblings.length;n<q;n++)if(p=f.siblings[n],p.type==this)return p}f=this.Z().vc();return f.length?f[0]:
null};tb=function(f){var n=this.Z().vc();return n.length?n[f.bh()%n.length]:null};rb=function(){if(this.Dg&&!this.B){var f,n;f=0;for(n=this.c.length;f<n;f++)this.c[f].kf=f;var q=f,p=this.b.Yc;f=0;for(n=p.length;f<n;++f)p[f].type===this&&(p[f].kf=q++);this.Dg=!1}};Db=function(f){if(f<this.c.length)return this.c[f];f-=this.c.length;var n=this.b.Yc,q,p;q=0;for(p=n.length;q<p;++q)if(n[q].type===this){if(0===f)return n[q];--f}return null};ub=function(){return this.de[this.ud]};vb=function(){this.ud++;
this.ud===this.de.length?this.de.push(new qb(this)):(this.de[this.ud].la=!0,V(this.de[this.ud].M))};wb=function(){this.ud++;this.ud===this.de.length&&this.de.push(new qb(this));var f=this.de[this.ud],n=this.de[this.ud-1];n.la?(f.la=!0,V(f.M)):(f.la=!1,za(f.c,n.c),za(f.M,n.M))};yb=function(){this.ud--};zb=function(f){var n,q,p,r,e,a=0;if(!this.B)for(n=0,q=this.Ba.length;n<q;n++)for(e=this.Ba[n],p=0,r=e.Fa.length;p<r;p++){if(f===e.Fa[p].name)return this.ya.lastBehIndex=a,e.Fa[p];a++}n=0;for(q=this.Fa.length;n<
q;n++){if(f===this.Fa[n].name)return this.ya.lastBehIndex=a,this.Fa[n];a++}return null};Ab=function(f){return this.dj(f)?this.ya.lastBehIndex:-1};Bb=function(f){var n,q;n=0;for(q=this.K.length;n<q;n++)if(this.K[n].name===f)return n;return-1};Cb=function(){if(this.$b&&!this.B){var f,n,q,p,r,e,a;this.zk();e=this.Z();var c=e.la,d=(f=this.b.Oa())&&f.Ma&&f.Ma.zc;f=0;for(n=this.jc.length;f<n;f++)if(r=this.jc[f],r!==this&&(r.zk(),a=r.Z(),a.la=c,!c)){V(a.c);q=0;for(p=e.c.length;q<p;++q)a.c[q]=r.Al(e.c[q].kf);
if(d)for(V(a.M),q=0,p=e.M.length;q<p;++q)a.M[q]=r.Al(e.M[q].kf)}}};Eb=function(){return"Type"+this.T};dc=function(f,n,q){if("undefined"===typeof f||"undefined"===typeof q)return!1;switch(n){case 0:return f===q;case 1:return f!==q;case 2:return f<q;case 3:return f<=q;case 4:return f>q;case 5:return f>=q;default:return!1}}})();var lc={};function pc(f){this.b=f}
(function(){function f(){return a.length?a.pop():[]}function l(c){var d,b;d=0;for(b=c.length;d<b;d++)Array.isArray(c[d])&&l(c[d]);V(c);a.push(c)}function n(){}function q(){}function p(){}var r=pc.prototype;r.jb=function(a){this.ua=a;this.b=a.b};r.jb.prototype.ma=function(){};r.Da=function(a){this.type=a;this.b=a.b};var e=r.Da.prototype,a=[];Array.isArray||(Array.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)});e.ma=function(){this.Fc=this.G[0];this.Zc=this.G[1];this.vd=
this.G[2];this.Ac||(this.Hd=f());var a=this.Hd;a.length=this.Fc;var d,b,e;for(d=0;d<this.Fc;d++)for(a[d]||(a[d]=f()),a[d].length=this.Zc,b=0;b<this.Zc;b++)for(a[d][b]||(a[d][b]=f()),a[d][b].length=this.vd,e=0;e<this.vd;e++)a[d][b][e]=0;this.ro=[];this.so=[];this.uo=[];this.Od=-1};e.pg=function(){var a;for(a=0;a<this.Fc;a++)l(this.Hd[a]);V(this.Hd)};e.Vc=function(a,d,b){a=Math.floor(a);d=Math.floor(d);b=Math.floor(b);return isNaN(a)||0>a||a>this.Fc-1||isNaN(d)||0>d||d>this.Zc-1||isNaN(b)||0>b||b>this.vd-
1?0:this.Hd[a][d][b]};e.set=function(a,d,b,e){a=Math.floor(a);d=Math.floor(d);b=Math.floor(b);isNaN(a)||0>a||a>this.Fc-1||isNaN(d)||0>d||d>this.Zc-1||isNaN(b)||0>b||b>this.vd-1||(this.Hd[a][d][b]=e)};e.Lt=function(){return JSON.stringify({c2array:!0,size:[this.Fc,this.Zc,this.vd],data:this.Hd})};e.Tb=function(){return{size:[this.Fc,this.Zc,this.vd],data:this.Hd}};e.oc=function(a){var d=a.size;this.Fc=d[0];this.Zc=d[1];this.vd=d[2];this.Hd=a.data};e.Zd=function(a,d,b){0>a&&(a=0);0>d&&(d=0);0>b&&(b=
0);if(this.Fc!==a||this.Zc!==d||this.vd!==b){this.Fc=a;this.Zc=d;this.vd=b;var e,g,k=this.Hd;k.length=a;for(a=0;a<this.Fc;a++)for(ga(k[a])&&(k[a]=f()),k[a].length=d,e=0;e<this.Zc;e++)for(ga(k[a][e])&&(k[a][e]=f()),k[a][e].length=b,g=0;g<this.vd;g++)ga(k[a][e][g])&&(k[a][e][g]=0)}};e.ax=function(){return 0<=this.Od&&this.Od<this.ro.length?this.ro[this.Od]:0};e.bx=function(){return 0<=this.Od&&this.Od<this.so.length?this.so[this.Od]:0};e.ix=function(){return 0<=this.Od&&this.Od<this.uo.length?this.uo[this.Od]:
0};n.prototype.dr=function(a,d,b){return dc(this.Vc(a,0,0),d,b)};e.Rk=function(a){this.b.ug(a.W);a.Vh();this.b.Xd(a.W)};r.k=new n;q.prototype.Nr=function(a,d,b){this.Zd(a,d,b)};q.prototype.Hn=function(a,d){this.set(a,0,0,d)};r.N=new q;p.prototype.Xq=function(a,d,b,e){a.Wm(this.Vc(d,b||0,e||0))};p.prototype.Yr=function(a){a.qa(this.Fc)};p.prototype.hr=function(a){a.qa(this.Zc)};p.prototype.vn=function(a){a.Ub(this.Lt())};r.Ya=new p})();function qc(f){this.b=f}
(function(){function f(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function l(a){a=a.toLowerCase();return W.hasOwnProperty(a)&&W[a].length?W[a][0].uc():w.destination}function n(){return w.createGain?w.createGain():w.createGainNode()}function q(a){return w.createDelay?w.createDelay(a):w.createDelayNode(a)}function p(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function r(a,b,c,g){a.start?a.start(g||0,b):a.noteGrainOn(g||0,b,c-b)}function e(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}
function a(a,b,c,g,d,e){this.type="filter";this.Bb=[a,b,c,g,d,e];this.V=n();this.J=n();this.J.gain.value=e;this.I=n();this.I.gain.value=1-e;this.Na=w.createBiquadFilter();this.Na.type="number"===typeof this.Na.type?a:wc[a];this.Na.frequency.value=b;this.Na.detune&&(this.Na.detune.value=c);this.Na.Q.value=g;this.Na.gain.value=d;this.V.connect(this.Na);this.V.connect(this.I);this.Na.connect(this.J)}function c(a,b,c){this.type="delay";this.Bb=[a,b,c];this.V=n();this.J=n();this.J.gain.value=c;this.I=
n();this.I.gain.value=1-c;this.Lh=n();this.Hc=q(a);this.Hc.delayTime.value=a;this.Ri=n();this.Ri.gain.value=b;this.V.connect(this.Lh);this.V.connect(this.I);this.Lh.connect(this.J);this.Lh.connect(this.Hc);this.Hc.connect(this.Ri);this.Ri.connect(this.Lh)}function d(a,b,c,g){this.type="convolve";this.Bb=[b,c,g];this.V=n();this.J=n();this.J.gain.value=c;this.I=n();this.I.gain.value=1-c;this.We=w.createConvolver();a&&(this.We.normalize=b,this.We.buffer=a);this.V.connect(this.We);this.V.connect(this.I);
this.We.connect(this.J)}function b(a,b,c,g,d){this.type="flanger";this.Bb=[a,b,c,g,d];this.V=n();this.I=n();this.I.gain.value=1-d/2;this.J=n();this.J.gain.value=d/2;this.Xi=n();this.Xi.gain.value=g;this.Hc=q(a+b);this.Hc.delayTime.value=a;this.nb=w.createOscillator();this.nb.frequency.value=c;this.pc=n();this.pc.gain.value=b;this.V.connect(this.Hc);this.V.connect(this.I);this.Hc.connect(this.J);this.Hc.connect(this.Xi);this.Xi.connect(this.Hc);this.nb.connect(this.pc);this.pc.connect(this.Hc.delayTime);
p(this.nb)}function h(a,b,c,g,d,e){this.type="phaser";this.Bb=[a,b,c,g,d,e];this.V=n();this.I=n();this.I.gain.value=1-e/2;this.J=n();this.J.gain.value=e/2;this.Na=w.createBiquadFilter();this.Na.type="number"===typeof this.Na.type?7:"allpass";this.Na.frequency.value=a;this.Na.detune&&(this.Na.detune.value=b);this.Na.Q.value=c;this.nb=w.createOscillator();this.nb.frequency.value=d;this.pc=n();this.pc.gain.value=g;this.V.connect(this.Na);this.V.connect(this.I);this.Na.connect(this.J);this.nb.connect(this.pc);
this.pc.connect(this.Na.frequency);p(this.nb)}function g(a){this.type="gain";this.Bb=[a];this.aa=n();this.aa.gain.value=a}function k(a,b){this.type="tremolo";this.Bb=[a,b];this.aa=n();this.aa.gain.value=1-b/2;this.nb=w.createOscillator();this.nb.frequency.value=a;this.pc=n();this.pc.gain.value=b/2;this.nb.connect(this.pc);this.pc.connect(this.aa.gain);p(this.nb)}function t(a,b){this.type="ringmod";this.Bb=[a,b];this.V=n();this.J=n();this.J.gain.value=b;this.I=n();this.I.gain.value=1-b;this.Wh=n();
this.Wh.gain.value=0;this.nb=w.createOscillator();this.nb.frequency.value=a;this.nb.connect(this.Wh.gain);p(this.nb);this.V.connect(this.Wh);this.V.connect(this.I);this.Wh.connect(this.J)}function C(a,b,c,g,d){this.type="distortion";this.Bb=[a,b,c,g,d];this.V=n();this.Yj=n();this.Xj=n();this.Iv(c,Math.pow(10,g/20));this.J=n();this.J.gain.value=d;this.I=n();this.I.gain.value=1-d;this.Ek=w.createWaveShaper();this.Pi=new Float32Array(65536);this.Jt(a,b);this.Ek.Pi=this.Pi;this.V.connect(this.Yj);this.V.connect(this.I);
this.Yj.connect(this.Ek);this.Ek.connect(this.Xj);this.Xj.connect(this.J)}function U(a,b,c,g,d){this.type="compressor";this.Bb=[a,b,c,g,d];this.aa=w.createDynamicsCompressor();try{this.aa.threshold.value=a,this.aa.knee.value=b,this.aa.ratio.value=c,this.aa.attack.value=g,this.aa.release.value=d}catch(e){}}function m(a,b){this.type="analyser";this.Bb=[a,b];this.aa=w.createAnalyser();this.aa.fftSize=a;this.aa.smoothingTimeConstant=b;this.Ht=new Float32Array(this.aa.frequencyBinCount);this.vq=new Uint8Array(a);
this.Qh=0}function x(){this.ea=null;this.Cj=0}function Z(a,b){this.src=a;this.R=F;this.Lc=b;this.si=!1;var c=this;this.hg=this.rg=null;this.sg=[];this.gk=0;this.sn=this.Vi=this.zq=this.Tj=!1;1===F&&b&&!Ta&&(this.R=0,this.rg=n());this.Id=this.Y=null;var g;switch(this.R){case 0:this.Y=new Audio;this.Y.crossOrigin="anonymous";this.Y.addEventListener("canplaythrough",function(){c.sn=!0});1===F&&w.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.zq=!0,this.Y.addEventListener("canplay",
function(){!c.hg&&c.Y&&(c.hg=w.createMediaElementSource(c.Y),c.hg.connect(c.rg))}));this.Y.autoplay=!1;this.Y.jx="auto";this.Y.src=a;break;case 1:u.uj?u.oo(a,function(a){c.Id=a;c.bo()},function(){c.Vi=!0}):(g=new XMLHttpRequest,g.open("GET",a,!0),g.responseType="arraybuffer",g.onload=function(){c.Id=g.response;c.bo()},g.onerror=function(){c.Vi=!0},g.send());break;case 2:this.Y=!0;break;case 3:this.Y=!0}}function A(a,b){var c=this;this.tag=b;this.Ta=this.xd=!0;this.src=a.src;this.buffer=a;this.R=F;
this.Lc=a.Lc;this.playbackRate=1;this.Tf=!0;this.lc=this.Bc=!1;this.fc=0;this.rh=this.Yf=this.zd=!1;this.volume=1;this.Bm=function(a){if(!c.lc&&!c.Bc){var b=this;b||(b=a.target);b===c.ri&&(c.Tf=!0,c.Ta=!0,R=c.tag,u.trigger(qc.prototype.k.oi,I))}};this.ri=null;this.Vf=1===E&&!this.Lc||2===E;this.kg=1;this.startTime=this.Vf?u.yb.X:u.ge.X;this.Qa=this.Za=null;this.Ad=!1;this.zb=null;this.Qp=this.Pp=this.Op=this.Np=this.Sp=this.Rp=0;this.d=null;var g=!1;1!==this.R||0!==this.buffer.R||this.buffer.zq||
(this.R=0);switch(this.R){case 0:this.Lc?(this.d=a.Y,g=!a.si,a.si=!0):(this.d=new Audio,this.d.crossOrigin="anonymous",this.d.autoplay=!1,this.d.src=a.Y.src,g=!0);g&&this.d.addEventListener("ended",function(){R=c.tag;c.Ta=!0;u.trigger(qc.prototype.k.oi,I)});break;case 1:this.Za=n();this.Za.connect(l(b));1===this.buffer.R?a.Y&&(this.d=w.createBufferSource(),this.d.buffer=a.Y,this.d.connect(this.Za)):(this.d=this.buffer.Y,this.buffer.rg.connect(this.Za),this.buffer.si||(this.buffer.si=!0,this.buffer.Y.addEventListener("ended",
function(){R=c.tag;c.Ta=!0;u.trigger(qc.prototype.k.oi,I)})));break;case 2:this.d=new window.Media(L+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.Tf=!0,c.Ta=!0,R=c.tag,u.trigger(qc.prototype.k.oi,I))});break;case 3:this.d=!0}}function P(a,b){W.hasOwnProperty(a)?W[a].push(b):W[a]=[b];var c,g,d,e,k=w.destination;if(W.hasOwnProperty(a)&&(d=W[a],d.length))for(k=d[0].uc(),c=0,g=d.length;c<g;c++)e=d[c],c+1===g?e.Dc(w.destination):e.Dc(d[c+1].uc());V(Ka);if(a.length)for(c=0,g=H.length;c<
g;c++)d=H[c],mb(a,d.tag)&&Ka.push(d);else v&&!v.jf()&&(V(Ka),Ka[0]=v);c=0;for(g=Ka.length;c<g;c++)Ka[c].uv(k);Da&&xb===a&&(Da.disconnect(),Da.connect(k))}function Q(){}function G(){}var B=qc.prototype;B.jb=function(a){this.ua=a;this.b=a.b};B.jb.prototype.ma=function(){};var u=null,I=null,R="",L="",F=0,w=null,N=[],H=[],v=null,y=!1,E=0,M=!1,J=1,D=0,K=0,T=!1,qa=1,S=1,ta=10,ia=1E4,Ca=1,Da=null,xb="",Ra=!1,Sa=[],Ta=!1,W={},wc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");
a.prototype.Dc=function(a){this.J.disconnect();this.J.connect(a);this.I.disconnect();this.I.connect(a)};a.prototype.remove=function(){this.V.disconnect();this.Na.disconnect();this.J.disconnect();this.I.disconnect()};a.prototype.uc=function(){return this.V};c.prototype.Dc=function(a){this.J.disconnect();this.J.connect(a);this.I.disconnect();this.I.connect(a)};c.prototype.remove=function(){this.V.disconnect();this.Lh.disconnect();this.Hc.disconnect();this.Ri.disconnect();this.J.disconnect();this.I.disconnect()};
c.prototype.uc=function(){return this.V};d.prototype.Dc=function(a){this.J.disconnect();this.J.connect(a);this.I.disconnect();this.I.connect(a)};d.prototype.remove=function(){this.V.disconnect();this.We.disconnect();this.J.disconnect();this.I.disconnect()};d.prototype.uc=function(){return this.V};b.prototype.Dc=function(a){this.I.disconnect();this.I.connect(a);this.J.disconnect();this.J.connect(a)};b.prototype.remove=function(){this.V.disconnect();this.Hc.disconnect();this.nb.disconnect();this.pc.disconnect();
this.I.disconnect();this.J.disconnect();this.Xi.disconnect()};b.prototype.uc=function(){return this.V};h.prototype.Dc=function(a){this.I.disconnect();this.I.connect(a);this.J.disconnect();this.J.connect(a)};h.prototype.remove=function(){this.V.disconnect();this.Na.disconnect();this.nb.disconnect();this.pc.disconnect();this.I.disconnect();this.J.disconnect()};h.prototype.uc=function(){return this.V};g.prototype.Dc=function(a){this.aa.disconnect();this.aa.connect(a)};g.prototype.remove=function(){this.aa.disconnect()};
g.prototype.uc=function(){return this.aa};k.prototype.Dc=function(a){this.aa.disconnect();this.aa.connect(a)};k.prototype.remove=function(){this.nb.disconnect();this.pc.disconnect();this.aa.disconnect()};k.prototype.uc=function(){return this.aa};t.prototype.Dc=function(a){this.J.disconnect();this.J.connect(a);this.I.disconnect();this.I.connect(a)};t.prototype.remove=function(){this.nb.disconnect();this.Wh.disconnect();this.V.disconnect();this.J.disconnect();this.I.disconnect()};t.prototype.uc=function(){return this.V};
C.prototype.Iv=function(a,b){.01>a&&(a=.01);this.Yj.gain.value=a;this.Xj.gain.value=Math.pow(1/a,.6)*b};C.prototype.shape=function(a,b,c){var g=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+g*(1-Math.exp(-(1/g)*(a-b)));return b*c};C.prototype.Jt=function(a,b){for(var c=Math.pow(10,a/20),g=Math.pow(10,b/20),d=0,e=0;32768>e;++e)d=e/32768,d=this.shape(d,c,g),this.Pi[32768+e]=d,this.Pi[32768-e-1]=-d};C.prototype.Dc=function(a){this.J.disconnect();this.J.connect(a);this.I.disconnect();this.I.connect(a)};
C.prototype.remove=function(){this.V.disconnect();this.Yj.disconnect();this.Ek.disconnect();this.Xj.disconnect();this.J.disconnect();this.I.disconnect()};C.prototype.uc=function(){return this.V};U.prototype.Dc=function(a){this.aa.disconnect();this.aa.connect(a)};U.prototype.remove=function(){this.aa.disconnect()};U.prototype.uc=function(){return this.aa};m.prototype.ib=function(){this.aa.getFloatFrequencyData(this.Ht);this.aa.getByteTimeDomainData(this.vq);for(var a=this.aa.fftSize,b=0,c=this.Qh=
0,g=0;b<a;b++)g=(this.vq[b]-128)/128,0>g&&(g=-g),this.Qh<g&&(this.Qh=g),c+=g*g;this.Qh=f(this.Qh);f(Math.sqrt(c/a))};m.prototype.Dc=function(a){this.aa.disconnect();this.aa.connect(a)};m.prototype.remove=function(){this.aa.disconnect()};m.prototype.uc=function(){return this.aa};x.prototype.Yh=function(a){this.ea=a};x.prototype.lj=function(){return!!this.ea};x.prototype.ib=function(){};var hb=!1;Z.prototype.vv=function(){var a,b,c,g;c=a=0;for(b=H.length;a<b;++a)g=H[a],H[c]=g,g.buffer===this?g.stop():
++c;H.length=c;this.hg&&(this.hg.disconnect(),this.hg=null);this.rg&&(this.rg.disconnect(),this.rg=null);this.Id=this.Y=null};Z.prototype.bo=function(){if(!this.Y&&this.Id){var a=this;if(w.decodeAudioData)w.decodeAudioData(this.Id,function(b){a.Y=b;a.Id=null;var c,g,d;if(ga(a.Uj)||M)ga(a.Li)||(c=a.Li.We,c.normalize=a.Bp,c.buffer=b);else if(a.sg.length){c=0;for(g=a.sg.length;c<g;c++){b=a.sg[c];d=new A(a,b.Cq);d.Vm(!0);if("undefined"!==typeof b.Dp&&(b.ea=u.gj(b.Dp),!b.ea))continue;if(b.ea){var e=Qa(b.ea.x,
b.ea.y,-b.ea.e.wb(),D,K,!0),k=Qa(b.ea.x,b.ea.y,-b.ea.e.wb(),D,K,!1);d.Um(e,k,Ga(b.ea.j-b.ea.e.wb()),b.Ll,b.rm,b.um);d.Yh(b.ea)}else d.Um(b.x,b.y,b.as,b.Ll,b.rm,b.um);d.play(a.mm,a.qn,a.gk);a.Tj&&d.pause();H.push(d)}V(a.sg)}else d=new A(a,a.Uj||""),d.play(a.mm,a.qn,a.gk),a.Tj&&d.pause(),H.push(d)},function(){a.Vi=!0});else if(this.Y=w.createBuffer(this.Id,!1),this.Id=null,ga(this.Uj)||M)ga(this.Li)||(b=this.Li.We,b.normalize=this.Bp,b.buffer=this.Y);else{var b=new A(this,this.Uj);b.play(this.mm,this.qn,
this.gk);this.Tj&&b.pause();H.push(b)}}};Z.prototype.Po=function(){switch(this.R){case 0:var a=4<=this.Y.readyState;a&&(this.sn=!0);return a||this.sn;case 1:return!!this.Id||!!this.Y;case 2:return!0;case 3:return!0}return!1};Z.prototype.zu=function(){switch(this.R){case 0:return this.Po();case 1:return!!this.Y;case 2:return!0;case 3:return!0}return!1};Z.prototype.ou=function(){switch(this.R){case 0:return!!this.Y.error;case 1:return this.Vi}return!1};A.prototype.jf=function(){switch(this.R){case 0:return this.d.ended;
case 1:return 1===this.buffer.R?!this.xd&&!this.Ta&&this.d.loop||this.lc?!1:this.Tf:this.d.ended;case 2:return this.Tf;case 3:!0}return!0};A.prototype.ns=function(){return this.xd||this.Ta?!0:this.jf()};A.prototype.Vm=function(a){1===F&&(!this.Ad&&a?this.Za&&(this.Qa||(this.Qa=w.createPanner(),this.Qa.panningModel="number"===typeof this.Qa.panningModel?qa:["equalpower","HRTF","soundfield"][qa],this.Qa.distanceModel="number"===typeof this.Qa.distanceModel?S:["linear","inverse","exponential"][S],this.Qa.refDistance=
ta,this.Qa.maxDistance=ia,this.Qa.rolloffFactor=Ca),this.Za.disconnect(),this.Za.connect(this.Qa),this.Qa.connect(l(this.tag)),this.Ad=!0):this.Ad&&!a&&this.Za&&(this.Qa.disconnect(),this.Za.disconnect(),this.Za.connect(l(this.tag)),this.Ad=!1))};A.prototype.Um=function(a,b,c,g,d,e){this.Ad&&1===F&&(this.Qa.setPosition(a,b,0),this.Qa.setOrientation(Math.cos(X(c)),Math.sin(X(c)),0),this.Qa.coneInnerAngle=g,this.Qa.coneOuterAngle=d,this.Qa.coneOuterGain=e,this.Rp=a,this.Sp=b,this.Np=c,this.Op=g,this.Pp=
d,this.Qp=e)};A.prototype.Yh=function(a){this.Ad&&1===F&&(this.zb||(this.zb=new x),this.zb.Yh(a))};A.prototype.ib=function(a){if(this.Ad&&1===F&&this.zb&&this.zb.lj()&&this.oh()){this.zb.ib(a);a=this.zb.ea;var b=Qa(a.x,a.y,-a.e.wb(),D,K,!0),c=Qa(a.x,a.y,-a.e.wb(),D,K,!1);this.Qa.setPosition(b,c,0);b=0;"undefined"!==typeof this.zb.ea.j&&(b=a.j-a.e.wb(),this.Qa.setOrientation(Math.cos(b),Math.sin(b),0))}};A.prototype.play=function(a,b,c,g){var d=this.d;this.zd=a;this.volume=b;c=c||0;g=g||0;switch(this.R){case 0:1!==
d.playbackRate&&(d.playbackRate=1);d.volume!==b*J&&(d.volume=b*J);d.loop!==a&&(d.loop=a);d.muted&&(d.muted=!1);if(d.currentTime!==c)try{d.currentTime=c}catch(e){}if(this.Lc&&Ra&&!u.kc)Sa.push(this);else try{this.d.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.kg=1;if(1===this.buffer.R)this.Za.gain.value=b*J,this.xd||(this.d=w.createBufferSource(),this.d.buffer=this.buffer.Y,this.d.connect(this.Za)),
this.d.onended=this.Bm,this.ri=this.d,this.d.loop=a,this.Tf=!1,0===c?p(this.d,g):r(this.d,c,this.ff(),g);else{1!==d.playbackRate&&(d.playbackRate=1);d.loop!==a&&(d.loop=a);d.volume=b*J;if(d.currentTime!==c)try{d.currentTime=c}catch(f){}this.Lc&&Ra&&!u.kc?Sa.push(this):d.play()}break;case 2:(!this.xd&&this.Ta||0!==c)&&d.seekTo(c);d.play();this.Tf=!1;break;case 3:u.Qb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Vf?u.yb.X:u.ge.X)-
c;this.lc=this.Ta=this.xd=!1};A.prototype.stop=function(){switch(this.R){case 0:this.d.paused||this.d.pause();break;case 1:1===this.buffer.R?e(this.d):this.d.paused||this.d.pause();break;case 2:this.d.stop();break;case 3:u.Qb&&AppMobi.context.stopSound(this.src)}this.Ta=!0;this.lc=!1};A.prototype.pause=function(){if(!(this.xd||this.Ta||this.jf()||this.lc)){switch(this.R){case 0:this.d.paused||this.d.pause();break;case 1:1===this.buffer.R?(this.fc=this.Cl(!0),this.zd&&(this.fc=this.fc%this.ff()),this.lc=
!0,e(this.d)):this.d.paused||this.d.pause();break;case 2:this.d.pause();break;case 3:u.Qb&&AppMobi.context.stopSound(this.src)}this.lc=!0}};A.prototype.zv=function(){if(!(this.xd||this.Ta||this.jf())&&this.lc){switch(this.R){case 0:this.d.play();break;case 1:1===this.buffer.R?(this.d=w.createBufferSource(),this.d.buffer=this.buffer.Y,this.d.connect(this.Za),this.d.onended=this.Bm,this.ri=this.d,this.d.loop=this.zd,this.Za.gain.value=J*this.volume*this.kg,this.Ak(),this.startTime=(this.Vf?u.yb.X:u.ge.X)-
this.fc/(this.playbackRate||.001),r(this.d,this.fc,this.ff())):this.d.play();break;case 2:this.d.play();break;case 3:u.Qb&&AppMobi.context.resumeSound(this.src)}this.lc=!1}};A.prototype.seek=function(a){if(!(this.xd||this.Ta||this.jf()))switch(this.R){case 0:try{this.d.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.R)this.lc?this.fc=a:(this.pause(),this.fc=a,this.zv());else try{this.d.currentTime=a}catch(c){}break;case 3:u.Qb&&AppMobi.context.seekSound(this.src,a)}};A.prototype.uv=function(a){1===
this.R&&(this.Ad?(this.Qa.disconnect(),this.Qa.connect(a)):(this.Za.disconnect(),this.Za.connect(a)))};A.prototype.ff=function(){var a=0;switch(this.R){case 0:"undefined"!==typeof this.d.duration&&(a=this.d.duration);break;case 1:a=this.buffer.Y.duration;break;case 2:a=this.d.getDuration();break;case 3:u.Qb&&(a=AppMobi.context.getDurationSound(this.src))}return a};A.prototype.Cl=function(a){var b=this.ff(),c=0;switch(this.R){case 0:"undefined"!==typeof this.d.currentTime&&(c=this.d.currentTime);break;
case 1:if(1===this.buffer.R){if(this.lc)return this.fc;c=(this.Vf?u.yb.X:u.ge.X)-this.startTime}else"undefined"!==typeof this.d.currentTime&&(c=this.d.currentTime);break;case 3:u.Qb&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.zd&&c>b&&(c=b);return c};A.prototype.oh=function(){return!this.lc&&!this.xd&&!this.Ta&&!this.jf()};A.prototype.Nv=function(){return!this.xd&&!this.Ta&&!this.jf()};A.prototype.Yv=function(){var a=this.volume*J;isFinite(a)||(a=0);switch(this.R){case 0:"undefined"!==
typeof this.d.volume&&this.d.volume!==a&&(this.d.volume=a);break;case 1:1===this.buffer.R?this.Za.gain.value=a*this.kg:"undefined"!==typeof this.d.volume&&this.d.volume!==a&&(this.d.volume=a)}};A.prototype.Ti=function(a){switch(this.R){case 0:this.d.muted!==!!a&&(this.d.muted=!!a);break;case 1:1===this.buffer.R?(this.kg=a?0:1,this.Za.gain.value=J*this.volume*this.kg):this.d.muted!==!!a&&(this.d.muted=!!a)}};A.prototype.Jv=function(){this.Yf=!0;this.Ti(this.Yf||this.rh)};A.prototype.pq=function(a){this.rh=
!!a;this.Ti(this.Yf||this.rh)};A.prototype.Ak=function(){var a=this.playbackRate;this.Vf&&(a*=u.Ig);switch(this.R){case 0:this.d.playbackRate!==a&&(this.d.playbackRate=a);break;case 1:1===this.buffer.R?this.d.playbackRate.value!==a&&(this.d.playbackRate.value=a):this.d.playbackRate!==a&&(this.d.playbackRate=a)}};A.prototype.Lv=function(a){switch(this.R){case 0:a?this.oh()?(this.Bc=!0,this.d.pause()):this.Bc=!1:this.Bc&&(this.d.play(),this.Bc=!1);break;case 1:a?this.oh()?(this.Bc=!0,1===this.buffer.R?
(this.fc=this.Cl(!0),this.zd&&(this.fc=this.fc%this.ff()),e(this.d)):this.d.pause()):this.Bc=!1:this.Bc&&(1===this.buffer.R?(this.d=w.createBufferSource(),this.d.buffer=this.buffer.Y,this.d.connect(this.Za),this.d.onended=this.Bm,this.ri=this.d,this.d.loop=this.zd,this.Za.gain.value=J*this.volume*this.kg,this.Ak(),this.startTime=(this.Vf?u.yb.X:u.ge.X)-this.fc/(this.playbackRate||.001),r(this.d,this.fc,this.ff())):this.d.play(),this.Bc=!1);break;case 2:a?this.oh()?(this.d.pause(),this.Bc=!0):this.Bc=
!1:this.Bc&&(this.Bc=!1,this.d.play())}};B.Da=function(a){function b(){"suspended"===w.state&&w.resume&&w.resume();if(!T&&w.createBuffer){var a=w.createBuffer(1,220,22050),c=w.createBufferSource();c.buffer=a;c.connect(w.destination);p(c)}}this.type=a;u=this.b=a.b;I=this;this.nc=null;this.Ch=-600;this.b.uj&&(Ta=!0);!(this.b.uh||this.b.pj&&(this.b.Tl||this.b.qj))||this.b.sj||this.b.bb||this.b.No||Ta||(Ra=!0);w=null;"undefined"!==typeof AudioContext?(F=1,w=new AudioContext):"undefined"!==typeof webkitAudioContext&&
(F=1,w=new webkitAudioContext);this.b.uh&&w&&(w.close&&w.close(),"undefined"!==typeof AudioContext?w=new AudioContext:"undefined"!==typeof webkitAudioContext&&(w=new webkitAudioContext));Ra?document.addEventListener("touchend",function(){!hb&&w&&(b(),hb=!0);var a,c,g;if(Ra){if(!M)for(a=0,c=Sa.length;a<c;++a)g=Sa[a],g.Ta||g.lc||g.d.play();V(Sa)}},!0):Ta&&document.addEventListener("touchend",function(){!hb&&w&&(b(),hb=!0)},!0);1!==F&&(this.b.Qd&&"undefined"!==typeof window.Media?F=2:this.b.Oo&&(F=3));
2===F&&(L=location.href,a=L.lastIndexOf("/"),-1<a&&(L=L.substr(0,a+1)),L=L.replace("file://",""));if(this.b.Bu&&this.b.Du&&"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.je(this);else{if(this.b.Qb)y=this.b.pj;else try{y=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(c){y=!1}this.b.uk(this)}};var ma=B.Da.prototype;ma.ma=function(){this.b.Gf=this;E=this.G[0];this.Yd=this.G[1];
this.cv=0!==this.G[2];this.zp=0;qa=this.G[3];S=this.G[4];this.Ch=-this.G[5];ta=this.G[6];ia=this.G[7];Ca=this.G[8];this.nc=new x;var a=this.b.F||this.b.width,b=this.b.D||this.b.height;1===F&&(w.listener.setPosition(a/2,b/2,this.Ch),w.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Da&&Da.disconnect();xb=b.toLowerCase();Da=w.createMediaStreamSource(a);Da.connect(l(xb))});this.b.ds(function(a){I.Vu(a)});var c=this;this.b.bs(function(a){c.Tu(a)})};ma.Tu=function(a){var b,
c,g;b=0;for(c=H.length;b<c;b++)g=H[b],g.zb&&g.zb.ea===a&&(g.zb.ea=null,g.Ad&&g.oh()&&g.zd&&g.stop());this.nc.ea===a&&(this.nc.ea=null)};ma.Tb=function(){var a={silent:M,masterVolume:J,listenerZ:this.Ch,listenerUid:this.nc.lj()?this.nc.ea.uid:-1,playing:[],effects:{}},b=a.playing,c,g,d,e,k,f;c=0;for(g=H.length;c<g;c++)d=H[c],!d.Nv()||3===this.Yd||d.Lc&&1===this.Yd||!d.Lc&&2===this.Yd||(e=d.Cl(),d.zd&&(e=e%d.ff()),e={tag:d.tag,buffersrc:d.buffer.src,is_music:d.Lc,playbackTime:e,volume:d.volume,looping:d.zd,
muted:d.Yf,playbackRate:d.playbackRate,paused:d.lc,resume_position:d.fc},d.Ad&&(e.pan={},f=e.pan,d.zb&&d.zb.lj()?f.objUid=d.zb.ea.uid:(f.x=d.Rp,f.y=d.Sp,f.a=d.Np),f.ia=d.Op,f.oa=d.Pp,f.og=d.Qp),b.push(e));b=a.effects;for(k in W)if(W.hasOwnProperty(k)){d=[];c=0;for(g=W[k].length;c<g;c++)d.push({type:W[k][c].type,params:W[k][c].Bb});b[k]=d}return a};var Ua=[];ma.oc=function(e){var f=e.silent;J=e.masterVolume;this.Ch=e.listenerZ;this.nc.Yh(null);var l=e.listenerUid;-1!==l&&(this.nc.Cj=l,Ua.push(this.nc));
var l=e.playing,p,r,n,q,v,w,y,Z,A,u,B;if(3!==this.Yd)for(p=0,r=H.length;p<r;p++)A=H[p],A.Lc&&1===this.Yd||(A.Lc||2!==this.Yd)&&A.stop();for(v in W)if(W.hasOwnProperty(v))for(p=0,r=W[v].length;p<r;p++)W[v][p].remove();Za(W);for(v in e.effects)if(e.effects.hasOwnProperty(v))for(w=e.effects[v],p=0,r=w.length;p<r;p++)switch(n=w[p].type,u=w[p].params,n){case "filter":P(v,new a(u[0],u[1],u[2],u[3],u[4],u[5]));break;case "delay":P(v,new c(u[0],u[1],u[2]));break;case "convolve":n=u[2];A=this.cj(n,!1);A.Y?
n=new d(A.Y,u[0],u[1],n):(n=new d(null,u[0],u[1],n),A.Bp=u[0],A.Li=n);P(v,n);break;case "flanger":P(v,new b(u[0],u[1],u[2],u[3],u[4]));break;case "phaser":P(v,new h(u[0],u[1],u[2],u[3],u[4],u[5]));break;case "gain":P(v,new g(u[0]));break;case "tremolo":P(v,new k(u[0],u[1]));break;case "ringmod":P(v,new t(u[0],u[1]));break;case "distortion":P(v,new C(u[0],u[1],u[2],u[3],u[4]));break;case "compressor":P(v,new U(u[0],u[1],u[2],u[3],u[4]));break;case "analyser":P(v,new m(u[0],u[1]))}p=0;for(r=l.length;p<
r;p++)3===this.Yd||(e=l[p],n=e.buffersrc,q=e.is_music,v=e.tag,w=e.playbackTime,y=e.looping,Z=e.volume,B=(u=e.pan)&&u.hasOwnProperty("objUid")?u.objUid:-1,q&&1===this.Yd)||!q&&2===this.Yd||((A=this.yo(n,v,q,y,Z))?(A.fc=e.resume_position,A.Vm(!!u),A.play(y,Z,w),A.Ak(),A.Yv(),A.Ti(A.Yf||A.rh),e.paused&&A.pause(),e.muted&&A.Jv(),A.Ti(A.Yf||A.rh),u&&(-1!==B?(A.zb=A.zb||new x,A.zb.Cj=B,Ua.push(A.zb)):A.Um(u.x,u.y,u.a,u.ia,u.oa,u.og))):(A=this.cj(n,q),A.gk=w,A.Tj=e.paused,u&&(-1!==B?A.sg.push({Dp:B,Ll:u.ia,
rm:u.oa,um:u.og,Cq:v}):A.sg.push({x:u.x,y:u.y,as:u.a,Ll:u.ia,rm:u.oa,um:u.og,Cq:v}))));if(f&&!M){p=0;for(r=H.length;p<r;p++)H[p].pq(!0);M=!0}else if(!f&&M){p=0;for(r=H.length;p<r;p++)H[p].pq(!1);M=!1}};ma.ne=function(){var a,b,c,g;a=0;for(b=Ua.length;a<b;a++)c=Ua[a],g=this.b.gj(c.Cj),c.Yh(g),c.Cj=-1,g&&(D=g.x,K=g.y);V(Ua)};ma.Vu=function(a){if(!this.cv){!a&&w&&w.resume&&(w.resume(),T=!1);var b,c;b=0;for(c=H.length;b<c;b++)H[b].Lv(a);a&&w&&w.suspend&&(w.suspend(),T=!0)}};ma.ib=function(){var a=this.b.Ye,
b,c,g;b=0;for(c=H.length;b<c;b++)g=H[b],g.ib(a),0!==E&&g.Ak();var d,e;for(d in W)if(W.hasOwnProperty(d))for(g=W[d],b=0,c=g.length;b<c;b++)e=g[b],e.ib&&e.ib();1===F&&this.nc.lj()&&(this.nc.ib(a),D=this.nc.ea.x,K=this.nc.ea.y,w.listener.setPosition(this.nc.ea.x,this.nc.ea.y,this.Ch))};var Va=[];ma.Kv=function(a){var b,c,g,d,e,k=0;b=0;for(c=a.length;b<c;++b)if(g=a[b],d=g[0],g=2*g[1],(e=4<d.length&&".ogg"===d.substr(d.length-4))&&y||!e&&!y)Va.push({filename:d,size:g,ea:null}),k+=g;return k};ma.Pv=function(){var a,
b,c,g;a=0;for(b=Va.length;a<b;++a)c=Va[a],g=this.b.ol+c.filename,c.ea=this.cj(g,!1)};ma.Vt=function(){var a=0,b,c,g;b=0;for(c=Va.length;b<c;++b)g=Va[b],g.ea.zu()||g.ea.ou()||this.b.bb||this.b.qj?a+=g.size:g.ea.Po()&&(a+=Math.floor(g.size/2));return a};ma.wv=function(){var a,b,c,g;c=a=0;for(b=N.length;a<b;++a)g=N[a],N[c]=g,g.Lc?g.vv():++c;N.length=c};ma.cj=function(a,b){var c,g,d,e=null;c=0;for(g=N.length;c<g;c++)if(d=N[c],d.src===a){e=d;break}e||(Ta&&b&&this.wv(),e=new Z(a,b),N.push(e));return e};
ma.yo=function(a,b,c,g,d){var e,k,f;e=0;for(k=H.length;e<k;e++)if(f=H[e],f.src===a&&(f.ns()||c))return f.tag=b,f;a=this.cj(a,c);if(!a.Y)return"<preload>"!==b&&(a.Uj=b,a.mm=g,a.qn=d),null;f=new A(a,b);H.push(f);return f};var Ka=[];Q.prototype.oi=function(a){return mb(R,a)};B.k=new Q;G.prototype.Play=function(a,b,c,g){!M&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1<c&&(c=1),v=this.yo(this.b.ol+a[0]+(y?".ogg":".m4a"),g,a[1],0!==b,c))&&(v.Vm(!1),v.play(0!==b,c,0,this.zp),this.zp=0)};B.N=new G;
B.Ya=new function(){}})();function oc(f){this.b=f}
(function(){function f(){this.name="";this.Uh=0;this.Bb=[]}function l(){a++;a===e.length&&e.push(new f);return e[a]}function n(){}function q(){}function p(){}var r=oc.prototype;r.jb=function(a){this.ua=a;this.b=a.b};r.jb.prototype.ma=function(){};r.Da=function(a){this.type=a;this.b=a.b};var e=[],a=-1;r.Da.prototype.ma=function(){var c=this;window.c2_callFunction=function(d,b){var e,g,k,f=l();f.name=d.toLowerCase();f.Uh=0;if(b)for(f.Bb.length=b.length,e=0,g=b.length;e<g;++e)k=b[e],f.Bb[e]="number"===
typeof k||"string"===typeof k?k:"boolean"===typeof k?k?1:0:0;else V(f.Bb);c.b.trigger(oc.prototype.k.pi,c,f.name);a--;return f.Uh}};n.prototype.pi=function(c){var d=0>a?null:e[a];return d?mb(c,d.name):!1};r.k=new n;q.prototype.CallFunction=function(c,d){var b=l();b.name=c.toLowerCase();b.Uh=0;za(b.Bb,d);this.b.trigger(oc.prototype.k.pi,this,b.name);a--};r.N=new q;p.prototype.Yq=function(c,d){var b=l();b.name=d.toLowerCase();b.Uh=0;V(b.Bb);var e,g;e=2;for(g=arguments.length;e<g;e++)b.Bb.push(arguments[e]);
this.b.trigger(oc.prototype.k.pi,this,b.name);a--;c.Wm(b.Uh)};r.Ya=new p})();function rc(f){this.b=f}
(function(){function f(){}function l(){}var n=rc.prototype;n.jb=function(f){this.ua=f;this.b=f.b};n.jb.prototype.ma=function(){};n.Da=function(f){this.type=f;this.b=f.b;this.Hf=Array(4);this.Gq=this.wk=this.Bf=this.Ke=this.Je=0;this.Il=!1};var q=n.Da.prototype;q.ma=function(){var f=this;if(!this.b.bb){jQuery(document).mousemove(function(a){f.zm(a)});jQuery(document).mousedown(function(a){f.ym(a)});jQuery(document).mouseup(function(a){f.Am(a)});jQuery(document).dblclick(function(a){f.Ru(a)});var e=
function(a){f.Zu(a)};document.addEventListener("mousewheel",e,!1);document.addEventListener("DOMMouseScroll",e,!1)}};var p={left:0,top:0};q.zm=function(f){var e=this.b.bb?p:jQuery(this.b.canvas).offset();this.Je=f.pageX-e.left;this.Ke=f.pageY-e.top};q.wp=function(){return 0<this.b.Pb?!0:0<=this.Je&&0<=this.Ke&&this.Je<this.b.width&&this.Ke<this.b.height};q.ym=function(f){this.wp()&&(this.Hf[f.which]=!0,this.b.kc=!0,this.b.trigger(rc.prototype.k.tr,this),this.Bf=f.which-1,this.wk=0,this.b.trigger(rc.prototype.k.yn,
this),this.b.trigger(rc.prototype.k.Jk,this),this.b.kc=!1)};q.Am=function(f){this.Hf[f.which]&&(this.b.Eo&&!this.b.Uf&&f.preventDefault(),this.b.Eo=!0,this.Hf[f.which]=!1,this.b.kc=!0,this.Bf=f.which-1,this.b.trigger(rc.prototype.k.Dn,this),this.b.kc=!1)};q.Ru=function(f){this.wp()&&(f.preventDefault(),this.b.kc=!0,this.Bf=f.which-1,this.wk=1,this.b.trigger(rc.prototype.k.yn,this),this.b.trigger(rc.prototype.k.Jk,this),this.b.kc=!1)};q.Zu=function(f){this.Gq=0>(f.wheelDelta?f.wheelDelta:f.detail?
-f.detail:0)?0:1;this.Il=!1;this.b.kc=!0;this.b.trigger(rc.prototype.k.Cr,this);this.b.kc=!1;this.Il&&nb(f)&&f.preventDefault()};q.qg=function(){var f,e;f=0;for(e=this.Hf.length;f<e;++f)this.Hf[f]&&(this.Hf[f]=!1,this.Bf=f-1,this.b.trigger(rc.prototype.k.Dn,this))};f.prototype.yn=function(f,e){return f===this.Bf&&e===this.wk};f.prototype.tr=function(){return!0};f.prototype.Dn=function(f){return f===this.Bf};f.prototype.Jk=function(f,e,a){return f!==this.Bf||e!==this.wk?!1:this.b.Sv(a,this.Je,this.Ke)};
f.prototype.Cr=function(f){this.Il=!0;return f===this.Gq};n.k=new f;n.N=new function(){};l.prototype.In=function(f,e){var a,c,d,b,h;ga(e)?(a=this.b.$g(0),c=a.scale,d=a.qd,b=a.Nc,h=a.j,a.scale=1,a.qd=1,a.Nc=1,a.j=0,f.H(a.Wa(this.Je,this.Ke,!0)),a.scale=c,a.qd=d,a.Nc=b,a.j=h):(a=ha(e)?this.b.$g(e):this.b.Bl(e))?f.H(a.Wa(this.Je,this.Ke,!0)):f.H(0)};l.prototype.Jn=function(f,e){var a,c,d,b,h;ga(e)?(a=this.b.$g(0),c=a.scale,d=a.qd,b=a.Oc,h=a.j,a.scale=1,a.qd=1,a.Oc=1,a.j=0,f.H(a.Wa(this.Je,this.Ke,!1)),
a.scale=c,a.qd=d,a.Oc=b,a.j=h):(a=ha(e)?this.b.$g(e):this.b.Bl(e))?f.H(a.Wa(this.Je,this.Ke,!1)):f.H(0)};n.Ya=new l})();function sc(f){this.b=f}
(function(){function f(f){this.ta=f;this.Aa=!1;this.j=this.speed=this.y=this.x=0;this.opacity=1;this.oe=this.Sf=this.size=this.ij=0}var l=sc.prototype;l.jb=function(f){this.ua=f;this.b=f.b};var n=l.jb.prototype;n.ma=function(){this.B||(this.S=new Image,this.S.Yn=this.bn,this.ba=null,this.b.rn(this.S,this.sk))};n.Mj=function(){this.B||(this.ba=null)};n.Oj=function(){this.B||!this.c.length||this.ba||(this.ba=this.b.q.eg(this.S,!0,this.b.za,this.hi))};n.hm=function(){this.B||this.ba||!this.b.q||(this.ba=
this.b.q.eg(this.S,!0,this.b.za,this.hi))};n.yk=function(){this.B||this.c.length||!this.ba||(this.b.q.deleteTexture(this.ba),this.ba=null)};n.Zj=function(f){f.drawImage(this.S,0,0)};f.prototype.init=function(){var f=this.ta;this.x=f.x-f.Fk/2+Math.random()*f.Fk;this.y=f.y-f.Gk/2+Math.random()*f.Gk;this.speed=f.Ql-f.nk/2+Math.random()*f.nk;this.j=f.j-f.ok/2+Math.random()*f.ok;this.opacity=f.Ol;this.size=f.Pl-f.mk/2+Math.random()*f.mk;this.ij=f.Hl-f.jj/2+Math.random()*f.jj;this.oe=this.Sf=0};f.prototype.ib=
function(f){var l=this.ta;this.x+=Math.cos(this.j)*this.speed*f;this.y+=Math.sin(this.j)*this.speed*f;this.y+=this.Sf*f;this.speed+=l.Lk*f;this.size+=this.ij*f;this.Sf+=l.sl*f;this.oe+=f;1>this.size?this.Aa=!1:(0!==l.zh&&(this.j+=Math.random()*l.zh*f-l.zh*f/2),0!==l.Bh&&(this.speed+=Math.random()*l.Bh*f-l.Bh*f/2),0!==l.Ah&&(this.opacity+=Math.random()*l.Ah*f-l.Ah*f/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=l.Nf&&this.oe>=l.timeout&&(this.Aa=!1),2===l.Nf&&0>=this.speed&&
(this.Aa=!1))};f.prototype.$c=function(f){var l=this.ta.opacity*this.opacity;if(0!==l){0===this.ta.Nf&&(l*=1-this.oe/this.ta.timeout);f.globalAlpha=l;var l=this.x-this.size/2,e=this.y-this.size/2;this.ta.b.ed&&(l=l+.5|0,e=e+.5|0);f.drawImage(this.ta.type.S,l,e,this.size,this.size)}};f.prototype.Xb=function(f){var l=this.ta.opacity*this.opacity;0===this.ta.Nf&&(l*=1-this.oe/this.ta.timeout);var e=this.size,a=e*this.ta.Vp,c=this.x-e/2,d=this.y-e/2;this.ta.b.ed&&(c=c+.5|0,d=d+.5|0);1>a||0===l||(a<f.Mu||
a>f.om?(f.yf(l),f.vg(c,d,c+e,d,c+e,d+e,c,d+e)):f.dv(this.x,this.y,a,l))};f.prototype.left=function(){return this.x-this.size/2};f.prototype.right=function(){return this.x+this.size/2};f.prototype.top=function(){return this.y-this.size/2};f.prototype.bottom=function(){return this.y+this.size/2};l.Da=function(f){this.type=f;this.b=f.b};var n=l.Da.prototype,q=[];n.ma=function(){var f=this.G;this.ck=f[0];this.ok=X(f[1]);this.Bg=f[2];this.Zm=!0;this.Ql=f[3];this.Pl=f[4];this.Ol=f[5]/100;this.Hl=f[6];this.Fk=
f[7];this.Gk=f[8];this.nk=f[9];this.mk=f[10];this.jj=f[11];this.Lk=f[12];this.sl=f[13];this.zh=f[14];this.Bh=f[15];this.Ah=f[16];this.Nf=f[17];this.timeout=f[18];this.wf=0;this.Vp=1;this.Qj=this.x;this.Sj=this.y;this.Rj=this.x;this.Pj=this.y;this.es(function(f){f.Ea.set(f.Qj,f.Sj,f.Rj,f.Pj);f.ic.Ag(f.Ea);f.Bi=!1;f.nn();f.Qq()});this.Ac||(this.Sb=[]);this.b.uk(this);this.type.hm();if(1===this.Bg)for(f=0;f<this.ck;f++)this.Nk().opacity=0;this.$i=!0};n.Tb=function(){var f={r:this.ck,sc:this.ok,st:this.Bg,
s:this.Zm,isp:this.Ql,isz:this.Pl,io:this.Ol,gr:this.Hl,xr:this.Fk,yr:this.Gk,spr:this.nk,szr:this.mk,grnd:this.jj,acc:this.Lk,g:this.sl,lar:this.zh,lsr:this.Bh,lor:this.Ah,dm:this.Nf,to:this.timeout,pcc:this.wf,ft:this.$i,p:[]},l,e,a,c=f.p;l=0;for(e=this.Sb.length;l<e;l++)a=this.Sb[l],c.push([a.x,a.y,a.speed,a.j,a.opacity,a.ij,a.size,a.Sf,a.oe]);return f};n.oc=function(f){this.ck=f.r;this.ok=f.sc;this.Bg=f.st;this.Zm=f.s;this.Ql=f.isp;this.Pl=f.isz;this.Ol=f.io;this.Hl=f.gr;this.Fk=f.xr;this.Gk=
f.yr;this.nk=f.spr;this.mk=f.szr;this.jj=f.grnd;this.Lk=f.acc;this.sl=f.g;this.zh=f.lar;this.Bh=f.lsr;this.Ah=f.lor;this.Nf=f.dm;this.timeout=f.to;this.wf=f.pcc;this.$i=f.ft;q.push.apply(q,this.Sb);V(this.Sb);var l,e,a,c=f.p;f=0;for(l=c.length;f<l;f++)e=this.Nk(),a=c[f],e.x=a[0],e.y=a[1],e.speed=a[2],e.j=a[3],e.opacity=a[4],e.ij=a[5],e.size=a[6],e.Sf=a[7],e.oe=a[8]};n.pg=function(){q.push.apply(q,this.Sb);V(this.Sb)};n.Nk=function(){var l;q.length?(l=q.pop(),l.ta=this):l=new f(this);this.Sb.push(l);
l.Aa=!0;return l};n.ib=function(){var f=this.b.ej(this),l,e,a,c;if(0===this.Bg&&this.Zm)for(this.wf+=f*this.ck,e=O(this.wf),this.wf-=e,l=0;l<e;l++)a=this.Nk(),a.init();this.Qj=this.x;this.Sj=this.y;this.Rj=this.x;this.Pj=this.y;c=l=0;for(e=this.Sb.length;l<e;l++)a=this.Sb[l],this.Sb[c]=a,this.b.ja=!0,1===this.Bg&&this.$i&&a.init(),a.ib(f),a.Aa?(a.left()<this.Qj&&(this.Qj=a.left()),a.right()>this.Rj&&(this.Rj=a.right()),a.top()<this.Sj&&(this.Sj=a.top()),a.bottom()>this.Pj&&(this.Pj=a.bottom()),c++):
q.push(a);ya(this.Sb,c);this.Ca();this.$i=!1;1===this.Bg&&0===this.Sb.length&&this.b.je(this)};n.$c=function(f){var l,e,a,c=this.e;l=0;for(e=this.Sb.length;l<e;l++)a=this.Sb[l],a.right()>=c.fa&&a.bottom()>=c.ga&&a.left()<=c.pa&&a.top()<=c.na&&a.$c(f)};n.Xb=function(f){this.Vp=this.e.wc();f.qc(this.type.ba);var l,e,a,c=this.e;l=0;for(e=this.Sb.length;l<e;l++)a=this.Sb[l],a.right()>=c.fa&&a.bottom()>=c.ga&&a.left()<=c.pa&&a.top()<=c.na&&a.Xb(f)};l.k=new function(){};l.N=new function(){};l.Ya=new function(){}})();
function nc(f){this.b=f}
(function(){function f(){if(0===this.dl.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Cg?b.drawImage(this.S,this.mg,this.ng,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.S,0,0,this.width,this.height);this.dl=a.toDataURL("image/png")}return this.dl}function l(){}function n(){}var q=nc.prototype;q.jb=function(a){this.ua=a;this.b=a.b};var p=q.jb.prototype;p.ma=function(){if(!this.B){var a,b,c,d,e,h,l,n,p;this.Uc=
[];this.fh=!1;a=0;for(b=this.hc.length;a<b;a++){e=this.hc[a];l={};l.name=e[0];l.speed=e[1];l.loop=e[2];l.Nm=e[3];l.Om=e[4];l.Wp=e[5];l.T=e[6];l.frames=[];c=0;for(d=e[7].length;c<d;c++)h=e[7][c],n={},n.sk=h[0],n.bn=h[1],n.mg=h[2],n.ng=h[3],n.width=h[4],n.height=h[5],n.duration=h[6],n.Yb=h[7],n.Zb=h[8],n.Ml=h[9],n.Vj=h[10],n.Xp=h[11],n.Cg=0!==n.width,n.dl="",n.dx=f,p={left:0,top:0,right:1,bottom:1},n.Xm=p,n.ba=null,(p=this.b.Gt(h[0]))?n.S=p:(n.S=new Image,n.S.rs=h[0],n.S.Yn=h[1],n.S.ms=null,this.b.rn(n.S,
h[0])),l.frames.push(n),this.Uc.push(n);this.hc[a]=l}}};p.Pq=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c=this.c[a],c.Ni=c.sb.ba};p.Mj=function(){if(!this.B){var a,b,c;a=0;for(b=this.Uc.length;a<b;++a)c=this.Uc[a],c.S.ms=null,c.ba=null;this.fh=!1;this.Pq()}};p.Oj=function(){if(!this.B&&this.c.length){var a,b,c;a=0;for(b=this.Uc.length;a<b;++a)c=this.Uc[a],c.ba=this.b.q.eg(c.S,!1,this.b.za,c.Xp);this.Pq()}};p.hm=function(){if(!this.B&&!this.fh&&this.b.q){var a,b,c;a=0;for(b=this.Uc.length;a<
b;++a)c=this.Uc[a],c.ba=this.b.q.eg(c.S,!1,this.b.za,c.Xp);this.fh=!0}};p.yk=function(){if(!this.B&&!this.c.length&&this.fh){var a,b,c;a=0;for(b=this.Uc.length;a<b;++a)c=this.Uc[a],this.b.q.deleteTexture(c.ba),c.ba=null;this.fh=!1}};var r=[];p.Zj=function(a){var b,c,d;V(r);b=0;for(c=this.Uc.length;b<c;++b)d=this.Uc[b].S,-1===r.indexOf(d)&&(a.drawImage(d,0,0),r.push(d))};q.Da=function(a){this.type=a;this.b=a.b;a=this.type.hc[0].frames[0].Vj;this.Ac?this.da.$h(a):this.da=new fb(a)};var e=q.Da.prototype;
e.ma=function(){this.visible=0===this.G[0];this.Nl=this.Yl=!1;this.Ve=0!==this.G[3];this.xa=this.xo(this.G[1])||this.type.hc[0];this.A=this.G[2];0>this.A&&(this.A=0);this.A>=this.xa.frames.length&&(this.A=this.xa.frames.length-1);var a=this.xa.frames[this.A];this.da.$h(a.Vj);this.Yb=a.Yb;this.Zb=a.Zb;this.Lf=this.xa.speed;this.xe=this.xa.Om;1===this.type.hc.length&&1===this.type.hc[0].frames.length||0===this.Lf||(this.b.uk(this),this.Yl=!0);this.Ac?this.rd.reset():this.rd=new db;this.Pd=this.rd.X;
this.Re=!0;this.Gd=0;this.Qe=!0;this.Yk=this.Mn="";this.os=0;this.Fi=-1;this.type.hm();var b,c,d,e,f,h,l,a=0;for(b=this.type.hc.length;a<b;a++)for(e=this.type.hc[a],c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.S.width,f.height=f.S.height),f.Cg&&(l=f.S,h=f.Xm,h.left=f.mg/l.width,h.top=f.ng/l.height,h.right=(f.mg+f.width)/l.width,h.bottom=(f.ng+f.height)/l.height,0===f.mg&&0===f.ng&&f.width===l.width&&f.height===l.height&&(f.Cg=!1));this.sb=this.xa.frames[this.A];this.Ni=this.sb.ba};
e.Tb=function(){var a={a:this.xa.T,f:this.A,cas:this.Lf,fs:this.Pd,ar:this.Gd,at:this.rd.X,rt:this.xe};this.Re||(a.ap=this.Re);this.Qe||(a.af=this.Qe);return a};e.oc=function(a){var b=this.Kt(a.a);b&&(this.xa=b);this.A=a.f;0>this.A&&(this.A=0);this.A>=this.xa.frames.length&&(this.A=this.xa.frames.length-1);this.Lf=a.cas;this.Pd=a.fs;this.Gd=a.ar;this.rd.reset();this.rd.X=a.at;this.Re=a.hasOwnProperty("ap")?a.ap:!0;this.Qe=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.xe=a.rt:this.xe=
this.xa.Om;this.sb=this.xa.frames[this.A];this.Ni=this.sb.ba;this.da.$h(this.sb.Vj);this.Yb=this.sb.Yb;this.Zb=this.sb.Zb};e.Pk=function(a){this.A=a?0:this.xa.frames.length-1;this.Re=!1;this.Mn=this.xa.name;this.Nl=!0;this.b.trigger(nc.prototype.k.sr,this);this.b.trigger(nc.prototype.k.rr,this);this.Nl=!1;this.Gd=0};e.Rk=function(){return this.rd.X};e.ib=function(){this.rd.add(this.b.ej(this));this.Yk.length&&this.ws();0<=this.Fi&&this.co();var a=this.rd.X,b=this.xa,c=b.frames[this.A],d=c.duration/
this.Lf;this.Re&&a>=this.Pd+d&&(this.Qe?this.A++:this.A--,this.Pd+=d,this.A>=b.frames.length&&(b.Wp?(this.Qe=!1,this.A=b.frames.length-2):b.loop?this.A=this.xe:(this.Gd++,this.Gd>=b.Nm?this.Pk(!1):this.A=this.xe)),0>this.A&&(b.Wp?(this.A=1,this.Qe=!0,b.loop||(this.Gd++,this.Gd>=b.Nm&&this.Pk(!0))):b.loop?this.A=this.xe:(this.Gd++,this.Gd>=b.Nm?this.Pk(!0):this.A=this.xe)),0>this.A?this.A=0:this.A>=b.frames.length&&(this.A=b.frames.length-1),a>this.Pd+b.frames[this.A].duration/this.Lf&&(this.Pd=a),
a=b.frames[this.A],this.Ff(c,a),this.b.ja=!0)};e.xo=function(a){var b,c,d;b=0;for(c=this.type.hc.length;b<c;b++)if(d=this.type.hc[b],mb(d.name,a))return d;return null};e.Kt=function(a){var b,c,d;b=0;for(c=this.type.hc.length;b<c;b++)if(d=this.type.hc[b],d.T===a)return d;return null};e.ws=function(){var a=this.xa.frames[this.A],b=this.xo(this.Yk);this.Yk="";!b||mb(b.name,this.xa.name)&&this.Re||(this.xa=b,this.Lf=b.speed,this.xe=b.Om,0>this.A&&(this.A=0),this.A>=this.xa.frames.length&&(this.A=this.xa.frames.length-
1),1===this.os&&(this.A=0),this.Re=!0,this.Pd=this.rd.X,this.Qe=!0,this.Ff(a,this.xa.frames[this.A]),this.b.ja=!0)};e.co=function(){var a=this.xa.frames[this.A],b=this.A;this.A=O(this.Fi);0>this.A&&(this.A=0);this.A>=this.xa.frames.length&&(this.A=this.xa.frames.length-1);b!==this.A&&(this.Ff(a,this.xa.frames[this.A]),this.Pd=this.rd.X,this.b.ja=!0);this.Fi=-1};e.Ff=function(a,b){var c=a.width,d=a.height,e=b.width,f=b.height;c!=e&&(this.width*=e/c);d!=f&&(this.height*=f/d);this.Yb=b.Yb;this.Zb=b.Zb;
this.da.$h(b.Vj);this.Ca();this.sb=b;this.Ni=b.ba;c=0;for(d=this.C.length;c<d;c++)e=this.C[c],e.Kp&&e.Kp(a,b);this.b.trigger(nc.prototype.k.Ff,this)};e.$c=function(a){a.globalAlpha=this.opacity;var b=this.sb,c=b.Cg,d=b.S,e=this.x,f=this.y,h=this.width,l=this.height;if(0===this.j&&0<=h&&0<=l)e-=this.Yb*h,f-=this.Zb*l,this.b.ed&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.mg,b.ng,b.width,b.height,e,f,h,l):a.drawImage(d,e,f,h,l);else{this.b.ed&&(e=Math.round(e),f=Math.round(f));a.save();var n=
0<h?1:-1,p=0<l?1:-1;a.translate(e,f);1===n&&1===p||a.scale(n,p);a.rotate(this.j*n*p);e=0-this.Yb*la(h);f=0-this.Zb*la(l);c?a.drawImage(d,b.mg,b.ng,b.width,b.height,e,f,la(h),la(l)):a.drawImage(d,e,f,la(h),la(l));a.restore()}};e.Of=function(a){this.Xb(a)};e.Xb=function(a){a.qc(this.Ni);a.yf(this.opacity);var b=this.sb,c=this.ic;if(this.b.ed){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Cg?a.Me(c.Ua+d,c.Va+e,c.Db+d,c.Eb+e,c.qb+d,c.rb+e,c.ob+d,c.pb+e,b.Xm):a.vg(c.Ua+d,c.Va+e,c.Db+d,
c.Eb+e,c.qb+d,c.rb+e,c.ob+d,c.pb+e)}else b.Cg?a.Me(c.Ua,c.Va,c.Db,c.Eb,c.qb,c.rb,c.ob,c.pb,b.Xm):a.vg(c.Ua,c.Va,c.Db,c.Eb,c.qb,c.rb,c.ob,c.pb)};e.Rt=function(a){var b=this.sb,c,d;c=0;for(d=b.Ml.length;c<d;c++)if(mb(a,b.Ml[c][0]))return c;return-1};e.zl=function(a,b){var c=this.sb,d=c.Ml,e;z(a)?e=this.Rt(a):e=a-1;e=O(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.Yb)*this.width,d=d[e][2],d=(d-c.Zb)*this.height,c=Math.cos(this.j);e=Math.sin(this.j);var h=f*c-d*e,d=d*c+f*e,f=h+this.x,
d=d+this.y;return b?f:d};var a=null,c=new ca,d=!1,b=[],h=new ua(0,0,0,0);p.finish=function(b){if(d){if(b){var e=this.b.Oa().Ma.zc;b=a.Z();var f=c.od(),h,l;if(b.la){b.la=!1;V(b.c);h=0;for(l=f.length;h<l;++h)b.c[h]=f[h];if(e)for(V(b.M),h=0,l=a.c.length;h<l;++h)f=a.c[h],c.contains(f)||b.M.push(f)}else if(e)for(e=b.c.length,h=0,l=f.length;h<l;++h)b.c[e+h]=f[h],Ea(b.M,f[h]);else za(b.c,f);a.sd()}c.clear();d=!1}};l.prototype.nr=function(g){if(g){var e=!1,f,l,n,m=this.b.wl(),p=m.type,m=m.oj;f=g.Z();l=this.b.Oa().Ma.zc;
var q;f.la?(this.wa(),h.Kf(this.Ea),h.offset(0,0),this.b.Nt(this.e,g,h,b),q=b):q=l?this.b.wu()&&!f.M.length&&f.c.length?f.c:f.M:f.c;a=g;d=p!==g&&!m;f=0;for(l=q.length;f<l;f++)if(n=q[f],this.b.Tv(this,n)){e=!0;if(m)break;p!==g&&c.add(n)}V(b);g=e}else g=!1;return g};l.prototype.rr=function(a){return mb(this.Mn,a)};l.prototype.sr=function(){return!0};l.prototype.Ff=function(){return!0};q.k=new l;n.prototype.Jr=function(a){this.Fi=a;this.Yl||(this.b.uk(this),this.Yl=!0);this.Nl||this.co()};q.N=new n;
q.Ya=new function(){}})();function tc(f){this.b=f}
(function(){function f(a,b){return a.length?a.pop():new b}function l(a,b,c){if(c){var d;c=0;for(d=b.length;c<d;c++)a.length<e&&a.push(b[c]);V(b)}else for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(a.length<e&&a.push(b[d]),delete b[d])}function n(b,c,d){var e=b.rf;d=d.replace(/\s\s*$/,"");c>=e.length&&e.push(f(a,Object));c=e[c];c.text=d;c.width=b.qm(d);b.Fg=na(b.Fg,c.width)}function q(){}var p=tc.prototype;p.ma=function(){};p.jb=function(a){this.ua=a;this.b=a.b};var r=p.jb.prototype;r.ma=function(){this.B||
(this.S=new Image,this.b.rn(this.S,this.sk),this.ba=null)};r.Mj=function(){this.B||(this.ba=null)};r.Oj=function(){if(!this.B&&this.c.length){this.ba||(this.ba=this.b.q.eg(this.S,!1,this.b.za,this.hi));var a,b;a=0;for(b=this.c.length;a<b;a++)this.c[a].ba=this.ba}};r.yk=function(){this.B||this.c.length||!this.ba||(this.b.q.deleteTexture(this.ba),this.ba=null)};r.Zj=function(a){a.drawImage(this.S,0,0)};p.Da=function(a){this.type=a;this.b=a.b};r=p.Da.prototype;r.pg=function(){l(a,this.rf,!0);l(c,this.Hi,
!1);l(d,this.Ii,!1);Za(this.te)};r.ma=function(){this.S=this.type.S;this.Gi=this.G[0];this.re=this.G[1];this.characterSet=this.G[2];this.text=this.G[3];this.se=this.G[4];this.visible=0===this.G[5];this.kj=this.G[6]/2;this.Ck=this.G[7]/2;this.ew=0===this.G[9];this.Jf=this.G[10];this.lineHeight=this.G[11];this.Af=this.Fg=0;this.Ac?(V(this.rf),Za(this.Hi),Za(this.Ii),Za(this.te)):(this.rf=[],this.Hi={},this.Ii={},this.te={});this.gi=!0;this.em=this.width;this.b.q&&(this.type.ba||(this.type.ba=this.b.q.eg(this.type.S,
!1,this.b.za,this.type.hi)),this.ba=this.type.ba);this.Rr()};r.Tb=function(){var a={t:this.text,csc:this.se,csp:this.Jf,lh:this.lineHeight,tw:this.Fg,th:this.Af,lrt:this.Hu,ha:this.kj,va:this.Ck,cw:{}},b;for(b in this.te)a.cw[b]=this.te[b];return a};r.oc=function(a){this.text=a.t;this.se=a.csc;this.Jf=a.csp;this.lineHeight=a.lh;this.Fg=a.tw;this.Af=a.th;this.Hu=a.lrt;a.hasOwnProperty("ha")&&(this.kj=a.ha);a.hasOwnProperty("va")&&(this.Ck=a.va);for(var b in a.cw)this.te[b]=a.cw[b];this.gi=!0;this.em=
this.width};var e=1E3,a=[],c=[],d=[];r.Rr=function(){for(var a=this.S,b=a.width,e=a.height,a=this.Gi,h=this.re,l=a/b,m=h/e,n=this.characterSet,b=Math.floor(b/a),e=Math.floor(e/h),p=0;p<n.length&&!(p>=b*e);p++){var q=p%b,r=Math.floor(p/b),Q=n.charAt(p);if(this.b.q){var G=this.Ii,B=q*l,u=r*m,q=(q+1)*l,r=(r+1)*m;void 0===G[Q]&&(G[Q]=f(d,ua));G[Q].left=B;G[Q].top=u;G[Q].right=q;G[Q].bottom=r}else G=this.Hi,q=q*a,r=r*h,B=a,u=h,void 0===G[Q]&&(G[Q]=f(c,Object)),G[Q].x=q,G[Q].y=r,G[Q].Tq=B,G[Q].Do=u}};var b=
[];p.Tr=function(a){V(b);for(var c="",d,e=0;e<a.length;)if(d=a.charAt(e),"\n"===d)c.length&&(b.push(c),c=""),b.push("\n"),++e;else if(" "===d||"\t"===d||"-"===d){do c+=a.charAt(e),e++;while(e<a.length&&(" "===a.charAt(e)||"\t"===a.charAt(e)));b.push(c);c=""}else e<a.length&&(c+=d,e++);c.length&&b.push(c)};p.Zr=function(b){var c=b.text,d=b.rf;if(c&&c.length){var e=b.width;if(2>=e)l(a,d,!0);else{var h=b.se,m=b.Jf;if(c.length*(b.Gi*h+m)-m<=e&&-1===c.indexOf("\n")&&(m=b.qm(c),m<=e)){l(a,d,!0);d.push(f(a,
Object));d[0].text=c;d[0].width=m;b.Fg=m;b.Af=b.re*h+b.lineHeight;return}this.$r(b);b.Af=d.length*(b.re*h+b.lineHeight)}}else l(a,d,!0)};p.$r=function(c){var d=c.ew,f=c.text,h=c.rf,l=c.width;d&&(this.Tr(f),f=b);var m="",p,q,r,P=0,Q=!1;for(r=0;r<f.length;r++)"\n"===f[r]?(!0===Q?Q=!1:(n(c,P,m),P++),m=""):(Q=!1,p=m,m+=f[r],q=c.qm(m.replace(/\s\s*$/,"")),q>l&&(""===p?(n(c,P,m),m="",Q=!0):(n(c,P,p),m=f[r]),P++,d||" "!==m||(m="")));m.replace(/\s\s*$/,"").length&&(n(c,P,m),P++);for(r=P;r<h.length;r++)a.length<
e&&a.push(h[r]);h.length=P};r.qm=function(a){for(var b=this.Jf,c=a.length,d=0,e=0;e<c;e++)d+=this.ul(a.charAt(e))*this.se+b;return d-(0<d?b:0)};r.ul=function(a){var b=this.te;return void 0!==b[a]?b[a]:this.Gi};r.bq=function(){if(this.gi||this.width!==this.em)this.Af=this.Fg=0,this.type.ua.Zr(this),this.gi=!1,this.em=this.width};r.$c=function(a){var b=this.S;if(""!==this.text&&null!=b&&(this.bq(),!(this.height<this.re*this.se+this.lineHeight))){a.globalAlpha=this.opacity;var b=this.x,c=this.y;this.b.ed&&
(b=Math.round(b),c=Math.round(c));var d=this.e.fa,e=this.e.ga,f=this.e.pa,h=this.e.na;a.save();a.translate(b,c);a.rotate(this.j);for(var l=this.j,n=this.kj,p=this.se,q=this.re*p,r=this.lineHeight,B=this.Jf,u=this.rf,I,R=-(this.Yb*this.width),L=-(this.Zb*this.height),L=L+this.Ck*na(0,this.height-this.Af),F,w,N,H=0;H<u.length;H++){var v=u[H].text;I=n*na(0,this.width-u[H].width);F=R+I;L+=r;if(0===l&&c+L+q<e)L+=q;else{for(var y=0;y<v.length;y++){w=v.charAt(y);I=this.ul(w);var E=this.Hi[w];if(0===l&&b+
F+I*p+B<d)F+=I*p+B;else{if(F+I*p>this.width+1E-5)break;void 0!==E&&(w=F,N=L,0===l&&1===p&&(w=Math.round(w),N=Math.round(N)),a.drawImage(this.S,E.x,E.y,E.Tq,E.Do,w,N,E.Tq*p,E.Do*p));F+=I*p+B;if(0===l&&b+F>f)break}}L+=q;if(0===l&&(L+q+r>this.height||c+L>h))break}}a.restore()}};var h=new va;r.Xb=function(a){a.qc(this.ba);a.yf(this.opacity);if(this.text&&(this.bq(),!(this.height<this.re*this.se+this.lineHeight))){this.wa();var b=this.ic,c=0,d=0;this.b.ed&&(c=Math.round(this.x)-this.x,d=Math.round(this.y)-
this.y);var e=this.e.fa,f=this.e.ga,l=this.e.pa,n=this.e.na,p=this.j,q=this.kj,r=this.Ck,G=this.se,B=this.re*G,u=this.lineHeight,I=this.Jf,R=this.rf,L=this.Af,F,w,N;0!==p&&(w=Math.cos(p),N=Math.sin(p));for(var c=b.Ua+c,b=b.Va+d,H,r=r*na(0,this.height-L),v,y,L=0;L<R.length;L++)if(d=R[L].text,H=F=q*na(0,this.width-R[L].width),r+=u,0===p&&b+r+B<f)r+=B;else{for(var E=0;E<d.length;E++){var M=d.charAt(E);F=this.ul(M);M=this.Ii[M];if(0===p&&c+H+F*G+I<e)H+=F*G+I;else{if(H+F*G>this.width+1E-5)break;if(void 0!==
M){var J=this.Gi*G,D=this.re*G;v=H;y=r;0===p&&1===G&&(v=Math.round(v),y=Math.round(y));h.Ua=v;h.Va=y;h.Db=v+J;h.Eb=y;h.ob=v;h.pb=y+D;h.qb=v+J;h.rb=y+D;0!==p&&(v=h,y=w,J=N,D=void 0,D=v.Ua*y-v.Va*J,v.Va=v.Va*y+v.Ua*J,v.Ua=D,D=v.Db*y-v.Eb*J,v.Eb=v.Eb*y+v.Db*J,v.Db=D,D=v.ob*y-v.pb*J,v.pb=v.pb*y+v.ob*J,v.ob=D,D=v.qb*y-v.rb*J,v.rb=v.rb*y+v.qb*J,v.qb=D);h.offset(c,b);a.Me(h.Ua,h.Va,h.Db,h.Eb,h.qb,h.rb,h.ob,h.pb,M)}H+=F*G+I;if(0===p&&c+H>l)break}}r+=B;if(0===p&&(r+B+u>this.height||b+r>n))break}}};p.k=new function(){};
q.prototype.Or=function(a){ha(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.gi=!0,this.b.ja=!0)};r.Rk=function(a,b){var c=parseInt(b,10);this.te[a]!==c&&(this.te[a]=c,this.gi=!0,this.b.ja=!0)};p.N=new q;p.Ya=new function(){}})();
function uc(f){this.b=f;var l=this;this.b.bb||(jQuery(document).mousemove(function(f){l.zm(f)}),jQuery(document).mousedown(function(f){l.ym(f)}),jQuery(document).mouseup(function(f){l.Am(f)}));f=0<this.b.Pb?document:this.b.canvas;this.b.Qb?f=window.Canvas:this.b.Kc&&(f=window);"undefined"!==typeof PointerEvent?(f.addEventListener("pointerdown",function(f){l.Jp(f)},!1),f.addEventListener("pointermove",function(f){l.Ip(f)},!1),f.addEventListener("pointerup",function(f){l.Nj(f)},!1),f.addEventListener("pointercancel",
function(f){l.Nj(f)},!1)):window.navigator.msPointerEnabled?(f.addEventListener("MSPointerDown",function(f){l.Jp(f)},!1),f.addEventListener("MSPointerMove",function(f){l.Ip(f)},!1),f.addEventListener("MSPointerUp",function(f){l.Nj(f)},!1),f.addEventListener("MSPointerCancel",function(f){l.Nj(f)},!1)):(f.addEventListener("touchstart",function(f){l.Xu(f)},!1),f.addEventListener("touchmove",function(f){l.Wu(f)},!1),f.addEventListener("touchend",function(f){l.Lp(f)},!1),f.addEventListener("touchcancel",
function(f){l.Lp(f)},!1))}
(function(){function f(e){var a,c;a=0;for(c=e.C.length;a<c;a++)if(e.C[a]instanceof q.Da)return e.C[a];return null}function l(){}function n(){}var q=uc.prototype,p={left:0,top:0};q.ym=function(e){1===e.which&&this.vm("leftmouse",e.pageX,e.pageY)};q.zm=function(e){1===e.which&&this.wm("leftmouse",e.pageX,e.pageY)};q.Am=function(e){1===e.which&&this.xm("leftmouse")};q.Xu=function(e){e.preventDefault&&nb(e)&&e.preventDefault();var a,c,d,b;a=0;for(c=e.changedTouches.length;a<c;a++)d=e.changedTouches[a],
b=d.identifier,this.vm(b?b.toString():"<none>",d.pageX,d.pageY)};q.Wu=function(e){e.preventDefault&&e.preventDefault();var a,c,d,b;a=0;for(c=e.changedTouches.length;a<c;a++)d=e.changedTouches[a],b=d.identifier,this.wm(b?b.toString():"<none>",d.pageX,d.pageY)};q.Lp=function(e){e.preventDefault&&nb(e)&&e.preventDefault();var a,c,d;a=0;for(c=e.changedTouches.length;a<c;a++)d=e.changedTouches[a],d=d.identifier,this.xm(d?d.toString():"<none>")};q.Jp=function(e){e.pointerType!==e.MSPOINTER_TYPE_MOUSE&&
"mouse"!==e.pointerType&&(e.preventDefault&&nb(e)&&e.preventDefault(),this.vm(e.pointerId.toString(),e.pageX,e.pageY))};q.Ip=function(e){e.pointerType!==e.MSPOINTER_TYPE_MOUSE&&"mouse"!==e.pointerType&&(e.preventDefault&&e.preventDefault(),this.wm(e.pointerId.toString(),e.pageX,e.pageY))};q.Nj=function(e){e.pointerType!==e.MSPOINTER_TYPE_MOUSE&&"mouse"!==e.pointerType&&(e.preventDefault&&nb(e)&&e.preventDefault(),this.xm(e.pointerId.toString()))};q.vm=function(e,a,c){var d=this.b.bb?p:jQuery(this.b.canvas).offset();
a=a-d.left;c=c-d.top;var b,h,g,k,d=this.lg.od(),l,n,q,m=null;l=0;for(n=d.length;l<n;l++)if(q=d[l],b=f(q),b.enabled&&!b.ye&&(b=q.e.Wa(a,c,!0),h=q.e.Wa(a,c,!1),q.wa(),q.Ib(b,h)))m?q.e.index>m.e.index?(m=q,g=b,k=h):q.e.index===m.e.index&&q.Ic()>m.Ic()&&(m=q,g=b,k=h):(m=q,g=b,k=h);m&&f(m).Su(e,g,k)};q.wm=function(e,a,c){var d=this.b.bb?p:jQuery(this.b.canvas).offset();a=a-d.left;c=c-d.top;var b,h=this.lg.od(),g,k,l;g=0;for(k=h.length;g<k;g++)b=h[g],l=f(b),!l.enabled||!l.ye||l.ye&&l.hl!==e||(d=b.e.Wa(a,
c,!0),b=b.e.Wa(a,c,!1),l.Uu(d,b))};q.xm=function(e){var a=this.lg.od(),c,d,b;c=0;for(d=a.length;c<d;c++)b=a[c],b=f(b),b.ye&&b.hl===e&&b.Yu()};q.jb=function(e){this.behavior=e;this.b=e.b};q.jb.prototype.ma=function(){};q.Da=function(e,a){this.type=e;this.behavior=e.behavior;this.n=a;this.b=e.b};var r=q.Da.prototype;r.ma=function(){this.ye=!1;this.ho=this.fo=0;this.hl="<none>";this.Qk=this.G[0];this.enabled=0!==this.G[1]};r.Tb=function(){return{enabled:this.enabled}};r.oc=function(e){this.enabled=e.enabled;
this.ye=!1};r.Su=function(e,a,c){this.fo=a-this.n.x;this.ho=c-this.n.y;this.ye=!0;this.hl=e;this.b.kc=!0;this.b.trigger(uc.prototype.k.zn,this.n);this.b.kc=!1};r.Uu=function(e,a){var c=e-this.fo,d=a-this.ho;if(0===this.Qk){if(this.n.x!==c||this.n.y!==d)this.n.x=c,this.n.y=d,this.n.Ca()}else 1===this.Qk?this.n.x!==c&&(this.n.x=c,this.n.Ca()):2===this.Qk&&this.n.y!==d&&(this.n.y=d,this.n.Ca())};r.Yu=function(){this.ye=!1;this.b.kc=!0;this.b.trigger(uc.prototype.k.An,this.n);this.b.kc=!1};r.ib=function(){};
l.prototype.zn=function(){return!0};l.prototype.An=function(){return!0};q.k=new l;n.prototype.Kr=function(e){this.enabled=0!==e;this.enabled||(this.ye=!1)};q.N=new n;q.Ya=new function(){}})();function vc(f){this.b=f}
(function(){function f(){}var l=vc.prototype;l.jb=function(e){this.behavior=e;this.b=e.b};l.jb.prototype.ma=function(){};l.Da=function(e,a){this.type=e;this.behavior=e.behavior;this.n=a;this.b=e.b;this.$a=0};var n=l.Da.prototype,q=2*Math.PI,p=Math.PI/2,r=3*Math.PI/2;n.ma=function(){this.Aa=1===this.G[0];this.jg=this.G[1];this.tn=this.G[2];this.Wd=this.G[3];this.Wd+=Math.random()*this.G[4];0===this.Wd?this.$a=0:(this.$a=this.G[5]/this.Wd*q,this.$a+=Math.random()*this.G[6]/this.Wd*q);this.ac=this.G[7];
this.ac+=Math.random()*this.G[8];this.Th=this.lf=this.U=0;5===this.jg&&(this.ac=X(this.ac));this.init()};n.Tb=function(){return{i:this.$a,a:this.Aa,mv:this.jg,w:this.tn,p:this.Wd,mag:this.ac,iv:this.U,iv2:this.lf,r:this.Th,lkv:this.mc,lkv2:this.xh}};n.oc=function(e){this.$a=e.i;this.Aa=e.a;this.jg=e.mv;this.tn=e.w;this.Wd=e.p;this.ac=e.mag;this.U=e.iv;this.lf=e.iv2||0;this.Th=e.r;this.mc=e.lkv;this.xh=e.lkv2||0};n.init=function(){switch(this.jg){case 0:this.U=this.n.x;break;case 1:this.U=this.n.y;
break;case 2:this.U=this.n.width;this.Th=this.n.height/this.n.width;break;case 3:this.U=this.n.width;break;case 4:this.U=this.n.height;break;case 5:this.U=this.n.j;break;case 6:this.U=this.n.opacity;break;case 7:this.U=0;break;case 8:this.U=this.n.x,this.lf=this.n.y}this.mc=this.U;this.xh=this.lf};n.he=function(e){e=e%q;switch(this.tn){case 0:return Math.sin(e);case 1:return e<=p?e/p:e<=r?1-2*(e-p)/Math.PI:(e-r)/p-1;case 2:return 2*e/q-1;case 3:return-2*e/q+1;case 4:return e<Math.PI?-1:1}return 0};
n.ib=function(){var e=this.b.ej(this.n);this.Aa&&0!==e&&(0===this.Wd?this.$a=0:(this.$a+=e/this.Wd*q,this.$a=this.$a%q),this.Xv())};n.Xv=function(){switch(this.jg){case 0:this.n.x!==this.mc&&(this.U+=this.n.x-this.mc);this.n.x=this.U+this.he(this.$a)*this.ac;this.mc=this.n.x;break;case 1:this.n.y!==this.mc&&(this.U+=this.n.y-this.mc);this.n.y=this.U+this.he(this.$a)*this.ac;this.mc=this.n.y;break;case 2:this.n.width=this.U+this.he(this.$a)*this.ac;this.n.height=this.n.width*this.Th;break;case 3:this.n.width=
this.U+this.he(this.$a)*this.ac;break;case 4:this.n.height=this.U+this.he(this.$a)*this.ac;break;case 5:this.n.j!==this.mc&&(this.U=Ia(this.U+(this.n.j-this.mc)));this.n.j=Ia(this.U+this.he(this.$a)*this.ac);this.mc=this.n.j;break;case 6:this.n.opacity=this.U+this.he(this.$a)*this.ac/100;0>this.n.opacity?this.n.opacity=0:1<this.n.opacity&&(this.n.opacity=1);break;case 8:this.n.x!==this.mc&&(this.U+=this.n.x-this.mc),this.n.y!==this.xh&&(this.lf+=this.n.y-this.xh),this.n.x=this.U+Math.cos(this.n.j)*
this.he(this.$a)*this.ac,this.n.y=this.lf+Math.sin(this.n.j)*this.he(this.$a)*this.ac,this.mc=this.n.x,this.xh=this.n.y}this.n.Ca()};n.Kp=function(e,a){switch(this.jg){case 2:this.U*=a.width/e.width;this.Th=a.height/a.width;break;case 3:this.U*=a.width/e.width;break;case 4:this.U*=a.height/e.height}};l.k=new function(){};f.prototype.Ir=function(e){this.Aa=1===e};l.N=new f;l.Ya=new function(){}})();
function mc(){return[pc,qc,oc,rc,sc,nc,tc,uc,vc,Y.prototype.k.kr,Y.prototype.k.Bn,nc.prototype.N.Ik,tc.prototype.N.Ik,sc.prototype.N.Ik,oc.prototype.N.CallFunction,nc.prototype.N.Jr,oc.prototype.k.pi,Y.prototype.k.fr,Y.prototype.N.er,Y.prototype.N.Vq,pc.prototype.N.Hn,nc.prototype.k.xn,Y.prototype.k.Fr,Y.prototype.N.Pr,tc.prototype.N.Or,Y.prototype.Ya.$v,pc.prototype.Ya.Xq,uc.prototype.k.An,nc.prototype.k.nr,Y.prototype.k.br,nc.prototype.k.Dr,nc.prototype.Ya.Vr,nc.prototype.N.Fn,tc.prototype.N.Mr,
uc.prototype.N.Kr,tc.prototype.N.Fn,qc.prototype.N.Play,tc.prototype.Ya.In,tc.prototype.Ya.Jn,Y.prototype.N.Sr,Y.prototype.N.Wr,Y.prototype.k.wn,Y.prototype.k.cr,Y.prototype.k.Ur,nc.prototype.N.Gn,Y.prototype.N.Xr,Y.prototype.N.Gr,Y.prototype.N.Hr,rc.prototype.k.Jk,nc.prototype.k.or,Y.prototype.N.Qr,tc.prototype.N.Gn,uc.prototype.k.zn,vc.prototype.N.Ir,tc.prototype.k.xn,tc.prototype.N.Lr,Y.prototype.k.Er,tc.prototype.k.mr,tc.prototype.k.lr]};
