// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa={},ca,da,fa,ga,B,ia,ja,ka,M,ma,na,oa,ra,Q,sa,ua,T,va,xa,ya,za,V,Aa,Ba,Ca,Da,Ea,W,Fa,Ha,Ja,Ka,La,Ma,Na,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc={},cc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(p){return p.__proto__}:function(p){return p.constructor.prototype});
(function(){function p(b,a,g,d){this.set(b,a,g,d)}function l(){this.Bb=this.Ab=this.Db=this.Cb=this.Kb=this.Jb=this.hb=this.gb=0}function c(b,a,g,d){b<a?g<d?(C=b<g?b:g,D=a>d?a:d):(C=b<d?b:d,D=a>g?a:g):g<d?(C=a<g?a:g,D=b>d?b:d):(C=a<d?a:d,D=b>g?b:g)}function q(){this.items=this.wd=null;this.eh=0;r&&(this.wd=new Set);this.jg=[];this.ee=!0}function m(b){ba[F++]=b}function x(){this.C=this.wj=this.y=this.Wj=0}function t(b){this.eb=[];this.Sh=this.Uh=this.Vh=this.Th=0;this.zh(b)}function y(b,a){this.Zj=
b;this.Yj=a;this.cells={}}function k(b,a){this.Zj=b;this.Yj=a;this.cells={}}function h(b,a,g){var d;return ea.length?(d=ea.pop(),d.Bk=b,d.x=a,d.y=g,d):new da(b,a,g)}function a(b,a,g){this.Bk=b;this.x=a;this.y=g;this.mb=new fa}function d(b,a,g){var d;return R.length?(d=R.pop(),d.Bk=b,d.x=a,d.y=g,d):new ga(b,a,g)}function e(b,a,g){this.Bk=b;this.x=a;this.y=g;this.mb=[];this.Mf=!0;this.td=new fa;this.qg=!1}function f(b,a){return b.fd-a.fd}B=function(b){window.console&&window.console.log&&window.console.log(b)};
ia=function(b){window.console&&window.console.error&&window.console.error(b)};ca=function(b){return b};ja=function(b){return"undefined"===typeof b};ka=function(b){return"number"===typeof b};M=function(b){return"string"===typeof b};ma=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};ra=Math.PI;Q=function(b){return 0<=b?b|0:(b|0)-1};sa=function(b){var a=b|0;return a===b?a:a+1};ua=function(b,a,g,d,f,w,z,v){var c,n,e,k;b<g?(n=b,c=g):(n=g,c=b);f<z?(k=f,e=z):
(k=z,e=f);if(c<k||n>e)return!1;a<d?(n=a,c=d):(n=d,c=a);w<v?(k=w,e=v):(k=v,e=w);if(c<k||n>e)return!1;c=f-b+z-g;n=w-a+v-d;b=g-b;a=d-a;f=z-f;w=v-w;v=ma(a*f-w*b);return ma(f*n-w*c)>v?!1:ma(b*n-a*c)<=v};p.prototype.set=function(b,a,g,d){this.left=b;this.top=a;this.right=g;this.bottom=d};p.prototype.xg=function(b){this.left=b.left;this.top=b.top;this.right=b.right;this.bottom=b.bottom};p.prototype.width=function(){return this.right-this.left};p.prototype.height=function(){return this.bottom-this.top};p.prototype.offset=
function(b,a){this.left+=b;this.top+=a;this.right+=b;this.bottom+=a;return this};p.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)};p.prototype.ms=function(b){return!(b.right<this.left||b.bottom<this.top||b.left>this.right||b.top>this.bottom)};p.prototype.ns=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)};p.prototype.Eb=
function(b,a){return b>=this.left&&b<=this.right&&a>=this.top&&a<=this.bottom};p.prototype.Bg=function(b){return this.left===b.left&&this.top===b.top&&this.right===b.right&&this.bottom===b.bottom};T=p;l.prototype.yh=function(b){this.gb=b.left;this.hb=b.top;this.Jb=b.right;this.Kb=b.top;this.Cb=b.right;this.Db=b.bottom;this.Ab=b.left;this.Bb=b.bottom};l.prototype.to=function(b,a){if(0===a)this.yh(b);else{var g=Math.sin(a),d=Math.cos(a),f=b.left*g,w=b.top*g,z=b.right*g,g=b.bottom*g,v=b.left*d,c=b.top*
d,n=b.right*d,d=b.bottom*d;this.gb=v-w;this.hb=c+f;this.Jb=n-w;this.Kb=c+z;this.Cb=n-g;this.Db=d+z;this.Ab=v-g;this.Bb=d+f}};l.prototype.offset=function(b,a){this.gb+=b;this.hb+=a;this.Jb+=b;this.Kb+=a;this.Cb+=b;this.Db+=a;this.Ab+=b;this.Bb+=a;return this};var C=0,D=0;l.prototype.Im=function(b){c(this.gb,this.Jb,this.Cb,this.Ab);b.left=C;b.right=D;c(this.hb,this.Kb,this.Db,this.Bb);b.top=C;b.bottom=D};l.prototype.Eb=function(b,a){var g=this.gb,d=this.hb,f=this.Jb-g,w=this.Kb-d,z=this.Cb-g,v=this.Db-
d,c=b-g,n=a-d,e=f*f+w*w,k=f*z+w*v,w=f*c+w*n,h=z*z+v*v,u=z*c+v*n,C=1/(e*h-k*k),f=(h*w-k*u)*C,e=(e*u-k*w)*C;if(0<=f&&0<e&&1>f+e)return!0;f=this.Ab-g;w=this.Bb-d;e=f*f+w*w;k=f*z+w*v;w=f*c+w*n;C=1/(e*h-k*k);f=(h*w-k*u)*C;e=(e*u-k*w)*C;return 0<=f&&0<e&&1>f+e};l.prototype.de=function(b,a){if(a)switch(b){case 0:return this.gb;case 1:return this.Jb;case 2:return this.Cb;case 3:return this.Ab;case 4:return this.gb;default:return this.gb}else switch(b){case 0:return this.hb;case 1:return this.Kb;case 2:return this.Db;
case 3:return this.Bb;case 4:return this.hb;default:return this.hb}};l.prototype.Cn=function(){return(this.gb+this.Jb+this.Cb+this.Ab)/4};l.prototype.Dn=function(){return(this.hb+this.Kb+this.Db+this.Bb)/4};l.prototype.nn=function(b){var a=b.Cn(),g=b.Dn();if(this.Eb(a,g))return!0;a=this.Cn();g=this.Dn();if(b.Eb(a,g))return!0;var d,f,w,z,v,c,n,e;for(n=0;4>n;n++)for(e=0;4>e;e++)if(a=this.de(n,!0),g=this.de(n,!1),d=this.de(n+1,!0),f=this.de(n+1,!1),w=b.de(e,!0),z=b.de(e,!1),v=b.de(e+1,!0),c=b.de(e+1,
!1),ua(a,g,d,f,w,z,v,c))return!0;return!1};va=l;xa=function(b,a){for(var g in a)a.hasOwnProperty(g)&&(b[g]=a[g]);return b};ya=function(b,a){var g,d;a=Q(a);if(!(0>a||a>=b.length)){g=a;for(d=b.length-1;g<d;g++)b[g]=b[g+1];za(b,d)}};za=function(b,a){b.length=a};V=function(b){za(b,0)};Aa=function(b,a){V(b);var g,d;g=0;for(d=a.length;g<d;++g)b[g]=a[g]};Ba=function(b,a){b.push.apply(b,a)};Ca=function(b,a){var g,d;g=0;for(d=b.length;g<d;++g)if(b[g]===a)return g;return-1};Da=function(b,a){var g=Ca(b,a);-1!==
g&&ya(b,g)};Ea=function(b,a,g){return b<a?a:b>g?g:b};W=function(b){return b/(180/ra)};Fa=function(b){return 180/ra*b};Ha=function(b){b%=360;0>b&&(b+=360);return b};Ja=function(b){b%=2*ra;0>b&&(b+=2*ra);return b};Ka=function(b){return Ha(Fa(b))};La=function(b){return Ja(W(b))};Ma=function(b,a,g,d){return Math.atan2(d-a,g-b)};Na=function(b,a){if(b===a)return 0;var g=Math.sin(b),d=Math.cos(b),f=Math.sin(a),w=Math.cos(a),g=g*f+d*w;return 1<=g?0:-1>=g?ra:Math.acos(g)};Sa=function(b,a,g){var d=Math.sin(b),
f=Math.cos(b),w=Math.sin(a),z=Math.cos(a);return Math.acos(d*w+f*z)>g?0<f*w-d*z?Ja(b+g):Ja(b-g):Ja(a)};Ta=function(b,a){var g=Math.sin(b),d=Math.cos(b),f=Math.sin(a),w=Math.cos(a);return 0>=d*f-g*w};Ua=function(b,a,g,d,f,w){if(0===g)return w?b:a;var z=Math.sin(g);g=Math.cos(g);b-=d;a-=f;var v=b*z;b=b*g-a*z;a=a*g+v;return w?b+d:a+f};Va=function(b,a,g,d){b=g-b;a=d-a;return Math.sqrt(b*b+a*a)};Wa=function(b,a){return!b!==!a};Xa=function(b){for(var a in b)if(b.hasOwnProperty(a))return!0;return!1};Ya=
function(b){for(var a in b)b.hasOwnProperty(a)&&delete b[a]};var u=+new Date;Za=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 b=!1,g=b=!1,n=!1;"undefined"!==typeof window&&(b=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
b=!b&&/safari/i.test(navigator.userAgent),g=/(iphone|ipod|ipad)/i.test(navigator.userAgent),n=window.c2ejecta);var r=!b&&!n&&!g&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;q.prototype.contains=function(b){return this.Od()?!1:r?this.wd.has(b):this.items&&this.items.hasOwnProperty(b)};q.prototype.add=function(b){if(r)this.wd.has(b)||(this.wd.add(b),this.ee=!1);else{var a=b.toString(),g=this.items;g?g.hasOwnProperty(a)||(g[a]=b,this.eh++,this.ee=!1):(this.items={},this.items[a]=
b,this.eh=1,this.ee=!1)}};q.prototype.remove=function(b){if(!this.Od())if(r)this.wd.has(b)&&(this.wd["delete"](b),this.ee=!1);else if(this.items){b=b.toString();var a=this.items;a.hasOwnProperty(b)&&(delete a[b],this.eh--,this.ee=!1)}};q.prototype.clear=function(){this.Od()||(r?this.wd.clear():(this.items=null,this.eh=0),V(this.jg),this.ee=!0)};q.prototype.Od=function(){return 0===this.count()};q.prototype.count=function(){return r?this.wd.size:this.eh};var ba=null,F=0;q.prototype.Nt=function(){if(!this.ee){if(r)V(this.jg),
ba=this.jg,F=0,this.wd.forEach(m),ba=null,F=0;else{var b=this.jg;V(b);var a,g=0,d=this.items;if(d)for(a in d)d.hasOwnProperty(a)&&(b[g++]=d[a])}this.ee=!0}};q.prototype.Fe=function(){this.Nt();return this.jg};fa=q;new fa;$a=function(b,a){r?ab(b,a.wd):bb(b,a.Fe())};ab=function(b,a){var g,d,f,w;d=g=0;for(f=b.length;g<f;++g)w=b[g],a.has(w)||(b[d++]=w);za(b,d)};bb=function(b,a){var g,d,f,w;d=g=0;for(f=b.length;g<f;++g)w=b[g],-1===Ca(a,w)&&(b[d++]=w);za(b,d)};x.prototype.add=function(b){this.y=b-this.Wj;
this.wj=this.C+this.y;this.Wj=this.wj-this.C-this.y;this.C=this.wj};x.prototype.reset=function(){this.C=this.wj=this.y=this.Wj=0};cb=x;db=function(b){return b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};t.prototype.zh=function(b){this.io=b;this.Zc=b.length/2;this.eb.length=b.length;this.Wh=this.Xh=-1;this.Km=0};t.prototype.Jf=function(){return!this.io.length};t.prototype.qa=function(){for(var b=this.eb,a=b[0],g=a,d=b[1],f=d,w,z,v=1,n=this.Zc;v<n;++v)z=2*v,w=b[z],z=b[z+1],w<a&&(a=w),w>g&&(g=w),z<d&&
(d=z),z>f&&(f=z);this.Th=a;this.Uh=g;this.Vh=d;this.Sh=f};t.prototype.yh=function(b,a,g){this.eb.length=8;this.Zc=4;var d=this.eb;d[0]=b.left-a;d[1]=b.top-g;d[2]=b.right-a;d[3]=b.top-g;d[4]=b.right-a;d[5]=b.bottom-g;d[6]=b.left-a;d[7]=b.bottom-g;this.Xh=b.right-b.left;this.Wh=b.bottom-b.top;this.qa()};t.prototype.ag=function(b,a,g,d,f){this.eb.length=8;this.Zc=4;var w=this.eb;w[0]=b.gb-a;w[1]=b.hb-g;w[2]=b.Jb-a;w[3]=b.Kb-g;w[4]=b.Cb-a;w[5]=b.Db-g;w[6]=b.Ab-a;w[7]=b.Bb-g;this.Xh=d;this.Wh=f;this.qa()};
t.prototype.so=function(b){this.Zc=b.Zc;Aa(this.eb,b.eb);this.Th=b.Th;this.Vh-b.Vh;this.Uh=b.Uh;this.Sh=b.Sh};t.prototype.wf=function(b,a,g){if(this.Xh!==b||this.Wh!==a||this.Km!==g){this.Xh=b;this.Wh=a;this.Km=g;var d,f,w,z,v,n=0,c=1,e=this.io,k=this.eb;0!==g&&(n=Math.sin(g),c=Math.cos(g));g=0;for(w=this.Zc;g<w;g++)d=2*g,f=d+1,z=e[d]*b,v=e[f]*a,k[d]=z*c-v*n,k[f]=v*c+z*n;this.qa()}};t.prototype.Eb=function(b,a){var g=this.eb;if(b===g[0]&&a===g[1])return!0;var d,f,w,z=this.Zc,v=this.Th-110,n=this.Vh-
101,c=this.Uh+131,e=this.Sh+120,k,h,u=0,C=0;for(d=0;d<z;d++)f=2*d,w=(d+1)%z*2,k=g[f],f=g[f+1],h=g[w],w=g[w+1],ua(v,n,b,a,k,f,h,w)&&u++,ua(c,e,b,a,k,f,h,w)&&C++;return 1===u%2||1===C%2};t.prototype.Rg=function(b,a,g){var d=b.eb,f=this.eb;if(this.Eb(d[0]+a,d[1]+g)||b.Eb(f[0]-a,f[1]-g))return!0;var w,z,v,n,c,e,k,h,u,C,t,r;w=0;for(n=this.Zc;w<n;w++)for(z=2*w,v=(w+1)%n*2,h=f[z],z=f[z+1],u=f[v],C=f[v+1],v=0,k=b.Zc;v<k;v++)if(c=2*v,e=(v+1)%k*2,t=d[c]+a,c=d[c+1]+g,r=d[e]+a,e=d[e+1]+g,ua(h,z,u,C,t,c,r,e))return!0;
return!1};eb=t;y.prototype.le=function(b,a,g){var d;d=this.cells[b];return d?(d=d[a])?d:g?(d=h(this,b,a),this.cells[b][a]=d):null:g?(d=h(this,b,a),this.cells[b]={},this.cells[b][a]=d):null};y.prototype.Vb=function(b){return Q(b/this.Zj)};y.prototype.Wb=function(b){return Q(b/this.Yj)};y.prototype.update=function(b,a,g){var d,f,w,z,v;if(a)for(d=a.left,f=a.right;d<=f;++d)for(w=a.top,z=a.bottom;w<=z;++w)if(!g||!g.Eb(d,w))if(v=this.le(d,w,!1))v.remove(b),v.Od()&&(v.mb.clear(),1E3>ea.length&&ea.push(v),
this.cells[d][w]=null);if(g)for(d=g.left,f=g.right;d<=f;++d)for(w=g.top,z=g.bottom;w<=z;++w)a&&a.Eb(d,w)||this.le(d,w,!0).Jk(b)};y.prototype.lj=function(b,a){var g,d,f,w,z,v;g=this.Vb(b.left);f=this.Wb(b.top);d=this.Vb(b.right);for(z=this.Wb(b.bottom);g<=d;++g)for(w=f;w<=z;++w)(v=this.le(g,w,!1))&&v.dump(a)};fb=y;k.prototype.le=function(b,a,g){var f;f=this.cells[b];return f?(f=f[a])?f:g?(f=d(this,b,a),this.cells[b][a]=f):null:g?(f=d(this,b,a),this.cells[b]={},this.cells[b][a]=f):null};k.prototype.Vb=
function(b){return Q(b/this.Zj)};k.prototype.Wb=function(b){return Q(b/this.Yj)};k.prototype.update=function(b,a,g){var d,f,w,z,v;if(a)for(d=a.left,f=a.right;d<=f;++d)for(w=a.top,z=a.bottom;w<=z;++w)if(!g||!g.Eb(d,w))if(v=this.le(d,w,!1))v.remove(b),v.Od()&&(v.reset(),1E3>R.length&&R.push(v),this.cells[d][w]=null);if(g)for(d=g.left,f=g.right;d<=f;++d)for(w=g.top,z=g.bottom;w<=z;++w)a&&a.Eb(d,w)||this.le(d,w,!0).Jk(b)};k.prototype.lj=function(b,a,g,d,f){var w,z;b=this.Vb(b);a=this.Wb(a);g=this.Vb(g);
for(w=this.Wb(d);b<=g;++b)for(d=a;d<=w;++d)(z=this.le(b,d,!1))&&z.dump(f)};k.prototype.Cs=function(b){var a,g,d,f,w;a=b.left;d=b.top;g=b.right;for(f=b.bottom;a<=g;++a)for(b=d;b<=f;++b)if(w=this.le(a,b,!1))w.Mf=!1};gb=k;var ea=[];a.prototype.Od=function(){return this.mb.Od()};a.prototype.Jk=function(b){this.mb.add(b)};a.prototype.remove=function(b){this.mb.remove(b)};a.prototype.dump=function(b){Ba(b,this.mb.Fe())};da=a;var R=[];e.prototype.Od=function(){if(!this.mb.length)return!0;if(this.mb.length>
this.td.count())return!1;this.nk();return!0};e.prototype.Jk=function(b){this.td.contains(b)?(this.td.remove(b),this.td.Od()&&(this.qg=!1)):this.mb.length?(this.mb[this.mb.length-1].md()>b.md()&&(this.Mf=!1),this.mb.push(b)):(this.mb.push(b),this.Mf=!0)};e.prototype.remove=function(b){this.td.add(b);this.qg=!0;30<=this.td.count()&&this.nk()};e.prototype.nk=function(){this.qg&&(this.td.count()===this.mb.length?this.reset():($a(this.mb,this.td),this.td.clear(),this.qg=!1))};e.prototype.Tq=function(){this.Mf||
(this.mb.sort(f),this.Mf=!0)};e.prototype.reset=function(){V(this.mb);this.Mf=!0;this.td.clear();this.qg=!1};e.prototype.dump=function(b){this.nk();this.Tq();this.mb.length&&b.push(this.mb)};ga=e;var I="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");hb=function(b){return 0>=b||11<=b?"source-over":I[b-1]};ib=function(b,a,g){if(g)switch(b.Ib=g.ONE,b.Fb=g.ONE_MINUS_SRC_ALPHA,a){case 1:b.Ib=g.ONE;b.Fb=g.ONE;break;case 3:b.Ib=
g.ONE;b.Fb=g.ZERO;break;case 4:b.Ib=g.ONE_MINUS_DST_ALPHA;b.Fb=g.ONE;break;case 5:b.Ib=g.DST_ALPHA;b.Fb=g.ZERO;break;case 6:b.Ib=g.ZERO;b.Fb=g.SRC_ALPHA;break;case 7:b.Ib=g.ONE_MINUS_DST_ALPHA;b.Fb=g.ZERO;break;case 8:b.Ib=g.ZERO;b.Fb=g.ONE_MINUS_SRC_ALPHA;break;case 9:b.Ib=g.DST_ALPHA;b.Fb=g.ONE_MINUS_SRC_ALPHA;break;case 10:b.Ib=g.ONE_MINUS_DST_ALPHA,b.Fb=g.SRC_ALPHA}};jb=function(b){return Math.round(1E6*b)/1E6};kb=function(b,a){return"string"!==typeof b||"string"!==typeof a||b.length!==a.length?
!1:b===a?!0:b.toLowerCase()===a.toLowerCase()};lb=function(b){b=b.target;return!b||b===document||b===window||document&&document.body&&b===document.body||kb(b.tagName,"canvas")?!0:!1}})();
(function(){function p(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function l(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function c(b){if(b&&(b.getContext||b.dc)&&!b.c2runtime){b.c2runtime=this;var a=this;this.uc=(this.Tg=/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.Rb=!!b.dc;this.pn="undefined"!==typeof window.AppMobi||this.Rb;this.Ic=!!window.c2cocoonjs;this.Sc=!!window.c2ejecta;this.Ic&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.Sc&&(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.Aa=this.Rb||this.Ic||this.Sc;this.Vg=/edge\//i.test(navigator.userAgent);this.Ug=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Vg;this.sn=/tizen/i.test(navigator.userAgent);this.yi=/android/i.test(navigator.userAgent)&&!this.sn&&!this.Ug&&!this.Vg;this.Uk=(/iphone/i.test(navigator.userAgent)||
/ipod/i.test(navigator.userAgent))&&!this.Ug&&!this.Vg;this.xn=/ipad/i.test(navigator.userAgent);this.bh=this.Uk||this.xn||this.Sc;this.ys=this.Uk&&/os\s6/i.test(navigator.userAgent);this.Sg=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Ug&&!this.Vg;this.Mk=/amazonwebappplatform/i.test(navigator.userAgent);this.qs=/firefox/i.test(navigator.userAgent);this.rn=/safari/i.test(navigator.userAgent)&&!this.Sg&&!this.Ug&&!this.Vg;this.us=/windows/i.test(navigator.userAgent);
this.ne="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.vn=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.ws=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.If=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Rk=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.un=
!!window.cr_windows10;this.tn=this.vn||this.ws||this.Rk||this.un;this.os=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Ai=this.yi&&!this.Sg&&!this.Tg&&!this.qs&&!this.Mk&&!this.Aa;this.devicePixelRatio=1;this.nd=this.uc||this.Tg||this.pn||this.Ic||this.yi||this.bh||this.If||this.Rk||this.os||this.sn||this.Sc;this.nd||(this.nd=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||
this.ne||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.ne=!0);this.canvas=b;this.Lm=document.getElementById("c2canvasdiv");this.D=this.Hc=null;this.Ak="(unavailable)";this.Pe=!1;this.Oe=0;this.ka=null;this.pk="";this.ki=!1;this.On=this.Pn=0;this.canvas.oncontextmenu=function(b){b.preventDefault&&b.preventDefault();return!1};this.canvas.onselectstart=function(b){b.preventDefault&&b.preventDefault();return!1};this.Rb&&(window.c2runtime=
this);this.ne&&(window.ondragover=function(b){b.preventDefault();return!1},window.ondrop=function(b){b.preventDefault();return!1},require("nw.gui").App.clearCache());this.Ai&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=b.width;this.height=b.height;this.G=this.width;this.F=this.height;this.ai=this.width;this.zg=this.height;this.gh=window.innerWidth;this.fh=window.innerHeight;this.Br=!1;this.Y=!0;this.Xg=!1;Date.now||(Date.now=function(){return+new Date});
this.plugins=[];this.types={};this.u=[];this.Qa=[];this.Xk={};this.Uc=[];this.kk={};this.Id=[];this.lg=[];this.Dj=[];this.oq=[];this.pq=[];this.zo=null;this.Le={};this.Ok=this.me=!1;this.vc=0;this.Nk=this.Qk=!1;this.Qc=[];this.Bi=!1;this.Pd=this.Hb=this.Li=this.Ll="";this.Ch=this.wo=!1;this.ie=this.Ne=0;this.En=30;this.dk=this.jh=0;this.fg=1;this.lb=new cb;this.Zd=new cb;this.Ui=this.mi=this.Se=this.cd=this.Ze=this.ok=this.Gi=0;this.vg=null;this.fi=[];this.jk=[];this.hi=-1;this.al=[[]];this.dm=this.Qi=
0;this.jj(null);this.cl=[];this.Si=-1;this.Fg=this.Jn=this.mh=0;this.Dh=[];this.$l=this.Cl=-1;this.dh=!0;this.Pi=0;this.Wg=!1;this.Ft=0;this.vf=null;this.rb=this.vi=!1;this.Nn=new fa;this.jl=new fa;this.kl=new fa;this.sh=[];this.bd=new eb([]);this.Vl=new eb([]);this.uf=[];this.Ng={};this.xf={};this.tf={};this.kg={};this.Hm={};this.An=this.Ki=this.Sa=this.Za=this.zn=this.Ji=this.ra=null;this.ig=this.Sk=!1;this.qk=[null,null];this.Te=0;this.mk="";this.Sd={};this.Ah=this.re=null;this.yo="";this.Ti=[];
this.gt()}}function q(b,a){return 128>=a?b[3]:256>=a?b[2]:512>=a?b[1]:b[0]}function m(b){b.target.result.createObjectStore("saves",{keyPath:"slot"})}function x(b,a,g,d){var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=m;f.onerror=d;f.onsuccess=function(f){f=f.target.result;f.onerror=d;f.transaction(["saves"],"readwrite").objectStore("saves").put({slot:b,data:a}).onsuccess=g}}function t(b,a,g){var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=m;d.onerror=g;d.onsuccess=function(d){d=d.target.result;
d.onerror=g;var f=d.transaction(["saves"]).objectStore("saves").get(b);f.onsuccess=function(){f.result?a(f.result.data):a(null)}}}function y(){B("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 k(b){var a,g={};for(a in b)!b.hasOwnProperty(a)||b[a]instanceof fa||b[a]&&"undefined"!==typeof b[a].Vu||"spriteCreatedDestroyCallback"!==a&&(g[a]=b[a]);
return g}var h=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;c.prototype.gt=function(){var b=this,a;this.If?a=new ActiveXObject("Microsoft.XMLHTTP"):a=new XMLHttpRequest;var g="data.js";if(this.vn||this.If||this.Rk||this.un)g="data.json";a.open("GET",g,!0);var d=!1;if(!this.Aa&&"response"in a&&"responseType"in a)try{a.responseType="json",d="json"===a.responseType}catch(f){d=!1}if(!d&&
"responseType"in a)try{a.responseType="text"}catch(n){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(c){}this.If?a.onreadystatechange=function(){4===a.readyState&&b.Ni(JSON.parse(a.responseText))}:(a.onload=function(){if(d)b.Ni(a.response);else if(b.Sc){var g=a.responseText,g=g.substr(g.indexOf("{"));b.Ni(JSON.parse(g))}else b.Ni(JSON.parse(a.responseText))},a.onerror=function(b){ia("Error requesting "+g+":");ia(b)});a.send()};c.prototype.ls=function(){var b=
this,a,g,d,f,n,c,e,k,h;this.oe=(!this.Aa||this.Sc||this.uc)&&this.Pt&&!this.Ai;0===this.Ob&&this.bh&&(this.oe=!1);this.devicePixelRatio=this.oe?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.yb();g=!(!this.Br&&(!this.Pj||this.ne||this.tn||this.If||this.Tg||this.uc||this.Mk));0<this.Ob&&this.setSize(p(),l(),!0);try{this.Rq&&(this.Ic||this.Sc||!this.Aa)&&(a={alpha:g,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.Hc=
this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",a))}catch(u){}if(this.Hc){if(a=this.Hc.getExtension("WEBGL_debug_renderer_info"))this.Ak=this.Hc.getParameter(a.UNMASKED_RENDERER_WEBGL)+" ["+this.Hc.getParameter(a.UNMASKED_VENDOR_WEBGL)+"]";this.Pe&&(this.Ak+=" [front-to-back enabled]");this.Aa||(this.sb=document.createElement("canvas"),jQuery(this.sb).appendTo(this.canvas.parentNode),this.sb.oncontextmenu=function(){return!1},this.sb.onselectstart=function(){return!1},
this.sb.width=Math.round(this.ai*this.devicePixelRatio),this.sb.height=Math.round(this.zg*this.devicePixelRatio),jQuery(this.sb).css({width:this.ai+"px",height:this.zg+"px"}),this.eo(),this.xl=this.sb.getContext("2d"));this.D=new aa.gu(this.Hc,this.nd,this.Pe);this.D.$f(this.canvas.width,this.canvas.height);this.D.Xu=0!==this.Kq;this.ka=null;this.canvas.addEventListener("webglcontextlost",function(a){a.preventDefault();b.Is();B("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",
function(){b.D.dv();b.D.$f(b.D.width,b.D.height,!0);b.Za=null;b.Sa=null;b.qk[0]=null;b.qk[1]=null;b.Js();b.Y=!0;B("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);a=0;for(g=this.u.length;a<g;a++)for(n=this.u[a],d=0,f=n.N.length;d<f;d++)e=n.N[d],e.Ua=this.D.bn(e.id),e.xe=this.D.fo(e.Ua),this.ig=this.ig||this.D.ij(e.Ua);a=0;for(g=this.Uc.length;a<g;a++){k=this.Uc[a];d=0;for(f=k.N.length;d<f;d++)e=k.N[d],e.Ua=this.D.bn(e.id),e.xe=this.D.fo(e.Ua);k.ed();d=0;for(f=k.R.length;d<f;d++){h=
k.R[d];n=0;for(c=h.N.length;n<c;n++)e=h.N[n],e.Ua=this.D.bn(e.id),e.xe=this.D.fo(e.Ua),this.ig=this.ig||this.D.ij(e.Ua);h.ed()}}}else{if(0<this.Ob&&this.Rb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ka=AppMobi.canvas.getContext("2d");try{this.ka.samplingMode=this.W?"smooth":"sharp",this.ka.globalScale=1,this.ka.HTML5CompatibilityMode=!0,this.ka.imageSmoothingEnabled=this.W}catch(C){}0!==this.width&&0!==this.height&&(this.ka.width=
this.width,this.ka.height=this.height)}this.ka||(this.Ic?(a={antialias:!!this.W,alpha:g},this.ka=this.canvas.getContext("2d",a)):(a={alpha:g},this.ka=this.canvas.getContext("2d",a)),this.ka.webkitImageSmoothingEnabled=this.W,this.ka.mozImageSmoothingEnabled=this.W,this.ka.msImageSmoothingEnabled=this.W,this.ka.imageSmoothingEnabled=this.W);this.xl=this.sb=null}this.Ho=function(a){b.Fa(!1,a)};window==window.top||this.Aa||this.tn||this.If||(document.addEventListener("mousedown",function(){window.focus()},
!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Ic&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(B("Reloading for continuous preview"),this.Li="__c2_continuouspreview",this.Ch=!0),this.Ps&&!this.nd&&(jQuery(window).focus(function(){b.setSuspended(!1)}),jQuery(window).blur(function(){b.setSuspended(!0)})));window.addEventListener("blur",function(){});this.Aa||
(a=function(b){if(lb(b)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(a){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",a):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",a):document.addEventListener("touchstart",a),document.addEventListener("mousedown",a));0===this.Ob&&this.oe&&1<this.devicePixelRatio&&this.setSize(this.bb,this.ab,
!0);this.Mo();this.es();this.go();this.I={}};c.prototype.setSize=function(b,a,g){var d=0,f=0,n=0,c=0,c=0,e=this.ys&&this.rn&&!navigator.standalone&&!this.Aa&&!this.uc;e&&(a+=60);if(this.gh!==b||this.fh!==a||g){this.gh=b;this.fh=a;var k=this.Ob,h=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Wg)&&!this.uc;if(h||0!==this.Ob||g)h&&0<this.Te&&(k=this.Te),g=this.devicePixelRatio,4<=k?(n=this.bb/this.ab,b/a>n?(n*=a,5===k?(c=n*g/this.bb,1<
c?c=Math.floor(c):1>c&&(c=1/Math.ceil(1/c)),n=this.bb*c/g,c=this.ab*c/g,d=(b-n)/2,f=(a-c)/2,b=n,a=c):(d=(b-n)/2,b=n)):(c=b/n,5===k?(c=c*g/this.ab,1<c?c=Math.floor(c):1>c&&(c=1/Math.ceil(1/c)),n=this.bb*c/g,c=this.ab*c/g,d=(b-n)/2,f=(a-c)/2,b=n):f=(a-c)/2,a=c),h&&!this.ne&&(f=d=0)):this.ne&&this.Wg&&0===this.Um&&(d=Math.floor((b-this.bb)/2),f=Math.floor((a-this.ab)/2),b=this.bb,a=this.ab),2>k&&(this.sg=g),this.oe&&this.xn&&1<g&&(1024<=b&&(b=1023),1024<=a&&(a=1023)),this.ai=Math.round(b),this.zg=Math.round(a),
this.width=Math.round(b*g),this.height=Math.round(a*g),this.Y=!0,this.Xo?(this.G=this.width,this.F=this.height,this.rc=!0):this.width<this.bb&&this.height<this.ab||1===k?(this.G=this.width,this.F=this.height,this.rc=!0):(this.G=this.bb,this.F=this.ab,this.rc=!1,2===k?(n=this.bb/this.ab,k=this.gh/this.fh,k<n?this.G=this.F*k:k>n&&(this.F=this.G/k)):3===k&&(n=this.bb/this.ab,k=this.gh/this.fh,k>n?this.G=this.F*k:k<n&&(this.F=this.G/k))),this.Lm&&!this.Aa&&(jQuery(this.Lm).css({width:Math.round(b)+"px",
height:Math.round(a)+"px","margin-left":Math.floor(d)+"px","margin-top":Math.floor(f)+"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.Sc?(this.canvas.style.left=Math.floor(d)+"px",this.canvas.style.top=Math.floor(f)+"px",this.canvas.style.width=Math.round(b)+"px",this.canvas.style.height=Math.round(a)+"px"):this.oe&&!this.Aa&&(this.canvas.style.width=
Math.round(b)+"px",this.canvas.style.height=Math.round(a)+"px")),this.sb&&(this.sb.width=Math.round(b*g),this.sb.height=Math.round(a*g),this.sb.style.width=this.ai+"px",this.sb.style.height=this.zg+"px"),this.D&&this.D.$f(Math.round(b*g),Math.round(a*g)),this.Rb&&this.ka&&(this.ka.width=Math.round(b),this.ka.height=Math.round(a)),this.ka&&(this.ka.webkitImageSmoothingEnabled=this.W,this.ka.mozImageSmoothingEnabled=this.W,this.ka.msImageSmoothingEnabled=this.W,this.ka.imageSmoothingEnabled=this.W),
this.Mo(),this.Aa||!e&&!this.Uk||window.setTimeout(function(){window.scrollTo(0,1)},100)}};c.prototype.Mo=function(){if(this.rq&&0!==this.ul){var b="portrait";2===this.ul&&(b="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(b):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)}}};c.prototype.Is=function(){this.D.Wu();this.Sk=!0;var b,a,g;b=0;for(a=this.u.length;b<a;b++)g=this.u[b],g.Wi&&g.Wi()};c.prototype.Js=function(){this.Sk=!1;var b,a,g;b=0;for(a=this.u.length;b<a;b++)g=this.u[b],g.rl&&g.rl()};c.prototype.eo=function(){if(!this.Aa){var b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Wg)&&!this.uc?jQuery(this.canvas).offset():jQuery(this.canvas).position();
b.position="absolute";jQuery(this.sb).css(b)}};var a=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;c.prototype.setSuspended=function(b){var g;if(b&&!this.Xg)for(B("[Construct 2] Suspending"),this.Xg=!0,-1!==this.Cl&&a&&a(this.Cl),-1!==this.$l&&clearTimeout(this.$l),b=0,g=this.Dh.length;b<g;b++)this.Dh[b](!0);else if(!b&&this.Xg){B("[Construct 2] Resuming");this.Xg=!1;this.Gi=Za();this.Ze=
Za();b=this.jh=this.mi=0;for(g=this.Dh.length;b<g;b++)this.Dh[b](!1);this.Fa(!1)}};c.prototype.nq=function(b){this.Dh.push(b)};c.prototype.ae=function(b){return this.Ti[b]};c.prototype.Ni=function(b){b&&b.project||ia("Project model unavailable");b=b.project;this.name=b[0];this.Tm=b[1];this.Ob=b[12];this.Um=b[12];this.bb=b[10];this.ab=b[11];this.$n=this.bb/2;this.ao=this.ab/2;this.Aa&&!this.Sc&&(4<=b[12]||0===b[12])&&(B("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),
this.Um=this.Ob=3);this.jm=b[18];this.se=b[19];if(0===this.se){var a=new Image;a.crossOrigin="anonymous";a.src="loading-logo.png";this.re={Ri:a}}else if(4===this.se){a=new Image;a.src="";var g=new Image;g.src="";var d=new Image;d.src="";var f=new Image;f.src="";var n=new Image;n.src="";var c=new Image;c.src="";var e=new Image;e.src="";var k=new Image;k.src="";var h=new Image;h.src="";var u=new Image;u.src="";var C=new Image;C.src="";var t=new Image;t.src="";this.re={Ri:[a,g,d,f],Vs:[n,c,e,k],St:[h,
u,C,t]}}this.mh=b[21];this.Ti=dc();this.yd=new X(this);a=0;for(g=b[2].length;a<g;a++)e=b[2][a],d=this.ae(e[0]),mb(e,d.prototype),k=new d(this),k.sj=e[1],k.pe=e[2],k.Gn=e[9],k.S&&k.S(),this.plugins.push(k);this.Ti=dc();a=0;for(g=b[3].length;a<g;a++){e=b[3][a];n=this.ae(e[1]);k=null;d=0;for(f=this.plugins.length;d<f;d++)if(this.plugins[d]instanceof n){k=this.plugins[d];break}h=new k.na(k);h.name=e[0];h.K=e[2];h.Kk=e[3].slice(0);h.Rt=e[3].length;h.sq=e[4];h.Er=e[5];h.Z=e[11];h.K?(h.Qf=[],h.Jd=this.Fg++,
h.Da=null):(h.Qf=null,h.Jd=-1,h.Da=[]);h.ii=null;h.zf=null;h.Pm=null;h.Gb=!1;h.hc=null;e[6]?(h.Wl=e[6][0],h.Xl=e[6][1],h.Yl=e[6][2]):(h.Wl=null,h.Xl=0,h.Yl=0);e[7]?h.Yb=e[7]:h.Yb=null;h.index=a;h.i=[];h.di=[];h.Be=[new nb(h)];h.Gd=0;h.Fc=null;h.Fq=0;h.dg=!0;h.Ej=ob;h.qi=pb;h.Pr=qb;h.O=sb;h.qh=tb;h.rh=ub;h.we=vb;h.pi=wb;h.rk=xb;h.uk=yb;h.Cc=zb;h.vk=Ab;h.Yh=new fb(this.bb,this.ab);h.Qh=!0;h.Rh=!1;h.I={};h.toString=Bb;h.Qa=[];d=0;for(f=e[8].length;d<f;d++){u=e[8][d];C=this.ae(u[1]);t=null;n=0;for(c=
this.Qa.length;n<c;n++)if(this.Qa[n]instanceof C){t=this.Qa[n];break}t||(t=new C(this),t.hl=[],t.gl=new fa,t.S&&t.S(),this.Qa.push(t),ec&&t instanceof ec&&(this.zo=t));-1===t.hl.indexOf(h)&&t.hl.push(h);n=new t.na(t,h);n.name=u[0];n.Z=u[2];n.S();h.Qa.push(n)}h.global=e[9];h.Pk=e[10];h.N=[];d=0;for(f=e[12].length;d<f;d++)h.N.push({id:e[12][d][0],name:e[12][d][1],Ua:-1,xe:!1,pc:!0,index:d});h.qv=e[13];this.jm&&!h.K&&!h.Pk&&k.pe||h.S();h.name&&(this.types[h.name]=h);this.u.push(h);k.sj&&(d=new k.ca(h),
d.uid=this.mh++,d.jo=this.Jn++,d.We=0,d.Lg=Cb,d.toString=Db,d.H=e[14],d.S(),h.i.push(d),this.Sd[d.uid.toString()]=d)}a=0;for(g=b[4].length;a<g;a++)for(n=b[4][a],c=this.u[n[0]],d=1,f=n.length;d<f;d++)e=this.u[n[d]],e.Da.push(c),c.Qf.push(e);a=0;for(g=b[28].length;a<g;a++){n=b[28][a];c=[];d=0;for(f=n.length;d<f;d++)c.push(this.u[n[d]]);d=0;for(f=c.length;d<f;d++)c[d].Gb=!0,c[d].hc=c}if(0<this.Fg)for(a=0,g=this.u.length;a<g;a++)if(e=this.u[a],!e.K&&e.Da.length){e.ii=Array(this.Fg);e.zf=Array(this.Fg);
e.Pm=Array(this.Fg);h=[];d=t=C=u=0;for(f=e.Da.length;d<f;d++)for(k=e.Da[d],e.ii[k.Jd]=u,u+=k.Rt,e.zf[k.Jd]=C,C+=k.sq,e.Pm[k.Jd]=t,t+=k.Er,n=0,c=k.N.length;n<c;n++)h.push(xa({},k.N[n]));e.N=h.concat(e.N);d=0;for(f=e.N.length;d<f;d++)e.N[d].index=d}a=0;for(g=b[5].length;a<g;a++)e=b[5][a],d=new Eb(this,e),this.Xk[d.name]=d,this.Uc.push(d);a=0;for(g=b[6].length;a<g;a++)e=b[6][a],d=new Fb(this,e),this.kk[d.name]=d,this.Id.push(d);a=0;for(g=this.Id.length;a<g;a++)this.Id[a].Pa();a=0;for(g=this.Id.length;a<
g;a++)this.Id[a].hm();a=0;for(g=this.Dj.length;a<g;a++)this.Dj[a].Pa();V(this.Dj);this.qq=b[7];this.mk=b[8];this.Xc=b[9];this.sg=1;this.Rq=b[13];this.W=b[14];this.Pj=b[15];this.Pt=b[17];this.ul=b[20];this.rq=0<this.ul;this.Ps=b[22];this.rc=this.Xo=b[23];this.Kq=b[24];this.Ws=b[25];this.Pe=b[27]&&!this.Ug;this.tj=Date.now();V(this.Ti);this.ls()};var d=!1;c.prototype.Wo=function(b,a){b.cocoonLazyLoad=!0;b.onerror=function(a){d=b.Jm=!0;console&&console.error&&console.error("Error loading image '"+b.src+
"': ",a)};this.Sc?b.src=a:b.src||("undefined"!==typeof XAPKReader?XAPKReader.get(a,function(a){b.src=a},function(g){d=b.Jm=!0;console&&console.error&&console.error("Error extracting image '"+a+"' from expansion file: ",g)}):(b.crossOrigin="anonymous",b.src=a));this.lg.push(b)};c.prototype.Ar=function(b){var a,g;a=0;for(g=this.lg.length;a<g;a++)if(this.lg[a].Bq===b)return this.lg[a];return null};var e=0,f=!1;c.prototype.es=function(){this.vf&&(e=this.vf.Ct(this.qq))};c.prototype.Gm=function(){var b=
e,a=0,g=0,d=!0,n,c,g=0;for(n=this.lg.length;g<n;g++){c=this.lg[g];var k=c.Nm;if(!k||0>=k)k=5E4;b+=k;c.src&&(c.complete||c.loaded)&&!c.Jm?a+=k:d=!1}d&&this.Ws&&this.vf&&(f||(this.vf.Gt(),f=!0),g=this.vf.Qr(),a+=g,g<e&&(d=!1));this.Yc=0==b?1:a/b;return d};var C=!1;c.prototype.go=function(){if(this.ka||this.D){var b=this.ka||this.xl;this.sb&&this.eo();this.Yc=0;this.yn=-1;var a=this;if(this.Gm()&&(4!==this.se||C))this.gs();else{var g=Date.now()-this.tj;if(b){var f=this.width,n=this.height,e=this.devicePixelRatio;
if(3>this.se&&(this.Ic||500<=g&&this.yn!=this.Yc)){b.clearRect(0,0,f,n);var g=f/2,n=n/2,f=0===this.se&&this.re.Ri.complete,c=40*e,k=0,u=80*e,t;if(f){var r=this.re.Ri,u=r.width*e;t=r.height*e;c=u/2;k=t/2;b.drawImage(r,Q(g-c),Q(n-k),u,t)}1>=this.se?(g=Q(g-c)+.5,n=Q(n+(k+(f?12*e:0)))+.5,b.fillStyle=d?"red":"DodgerBlue",b.fillRect(g,n,Math.floor(u*this.Yc),6*e),b.strokeStyle="black",b.strokeRect(g,n,u,6*e),b.strokeStyle="white",b.strokeRect(g-1*e,n-1*e,u+2*e,8*e)):2===this.se&&(b.font=this.Sc?"12pt ArialMT":
"12pt Arial",b.fillStyle=d?"#f00":"#999",b.pv="middle",e=Math.round(100*this.Yc)+"%",f=b.measureText?b.measureText(e):null,b.fillText(e,g-(f?f.width:0)/2,n));this.yn=this.Yc}else if(4===this.se){this.Pq(b);h?h(function(){a.go()}):setTimeout(function(){a.go()},16);return}}setTimeout(function(){a.go()},this.Ic?10:100)}}};var D=-1,u="undefined"===typeof cr_is_preview?200:0,b=!0,g=!1,n=0,r=0,ba="undefined"===typeof cr_is_preview?3E3:0,F=null,ea=null,R=0;c.prototype.Pq=function(a){if(!C){for(var f=Math.ceil(this.width),
e=Math.ceil(this.height),c=this.re.Ri,k=this.re.Vs,h=this.re.St,t=0;4>t;++t)if(!c[t].complete||!k[t].complete||!h[t].complete)return;0===R&&(D=Date.now());var t=Date.now(),y=!1,l=a,m,p;b||g?(a.clearRect(0,0,f,e),F&&F.width===f&&F.height===e||(F=document.createElement("canvas"),F.width=f,F.height=e,ea=F.getContext("2d")),l=ea,y=!0,b&&1===R&&(D=Date.now())):a.globalAlpha=1;l.fillStyle="#333333";l.fillRect(0,0,f,e);256<this.zg?(m=Ea(.22*e,105,.6*f),p=.25*m,l.drawImage(q(k,m),.5*f-m/2,.2*e-p/2,m,p),p=
m=Math.min(.395*e,.95*f),l.drawImage(q(c,m),.5*f-m/2,.485*e-p/2,m,p),m=Ea(.22*e,105,.6*f),p=.25*m,l.drawImage(q(h,m),.5*f-m/2,.868*e-p/2,m,p),l.fillStyle="#3C3C3C",m=f,p=Math.max(.005*e,2),l.fillRect(0,.8*e-p/2,m,p),l.fillStyle=d?"red":"#E0FF65",m=f*this.Yc,l.fillRect(.5*f-m/2,.8*e-p/2,m,p)):(p=m=.55*e,l.drawImage(q(c,m),.5*f-m/2,.45*e-p/2,m,p),l.fillStyle="#3C3C3C",m=f,p=Math.max(.005*e,2),l.fillRect(0,.85*e-p/2,m,p),l.fillStyle=d?"red":"#E0FF65",m=f*this.Yc,l.fillRect(.5*f-m/2,.85*e-p/2,m,p));y&&
(b?a.globalAlpha=0===R?0:Math.min((t-D)/300,1):g&&(a.globalAlpha=Math.max(1-(t-r)/300,0)),a.drawImage(F,0,0,f,e));b&&300<=t-D&&2<=R&&(b=!1,n=t);!b&&t-n>=ba&&!g&&1<=this.Yc&&(g=!0,r=t);if(g&&t-r>=300+u||"undefined"!==typeof cr_is_preview&&1<=this.Yc&&500>Date.now()-D)C=!0,g=b=!1,this.re=ea=F=null;++R}};c.prototype.gs=function(){this.sb&&(this.canvas.parentNode.removeChild(this.sb),this.sb=this.xl=null);this.tj=Date.now();this.Ze=Za();var b,a,g;if(this.jm)for(b=0,a=this.u.length;b<a;b++)g=this.u[b],
g.K||g.Pk||!g.wa.pe||g.S();else this.dh=!1;b=0;for(a=this.Uc.length;b<a;b++)this.Uc[b].Cq();2<=this.Ob&&(b=this.bb/this.ab,a=this.width/this.height,this.sg=2!==this.Ob&&a>b||2===this.Ob&&a<b?this.height/this.ab:this.width/this.bb);this.Tm?this.Xk[this.Tm].Tl():this.Uc[0].Tl();this.jm||(this.Pi=1,this.trigger(X.prototype.q.pm,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();b=0;for(a=this.u.length;b<a;b++)g=this.u[b],g.Hs&&g.Hs();document.hidden||document.webkitHidden||
document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Fa(!1);this.Rb&&AppMobi.webview.execute("onGameReady();")};c.prototype.Fa=function(b,a,g){if(this.ra){var d=Za();if(g||!this.Xg||b){b||(h?this.Cl=h(this.Ho):this.$l=setTimeout(this.Ho,this.nd?1:16));a=a||d;var f=this.Ob;((g=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.uc)||this.Wg)&&0<this.Te&&(f=this.Te);0<f&&(!this.bh||window.self!==window.top)&&(f=window.innerHeight,
this.gh===window.innerWidth&&this.fh===f||this.setSize(p(),l()));this.Aa||(g?(this.ki||(this.pk=jQuery(this.canvas).css("margin")||"0",this.ki=!0),this.Sg||this.ne||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.ki?(this.Sg||this.ne||jQuery(this.canvas).css("margin",this.pk),this.pk="",this.ki=!1,0===this.Ob&&this.setSize(Math.round(this.Pn/this.devicePixelRatio),
Math.round(this.On/this.devicePixelRatio),!0)):(this.Pn=this.width,this.On=this.height));this.dh&&(g=this.Gm(),this.Pi=this.Yc,g&&(this.dh=!1,this.Yc=1,this.trigger(X.prototype.q.pm,null)));this.Bs(a);!this.Y&&!this.Ic||this.Sk||this.Ch||b||(this.Y=!1,this.D?this.jc():this.kd(),this.Ah&&(this.canvas&&this.canvas.toDataURL&&(this.yo=this.canvas.toDataURL(this.Ah[0],this.Ah[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.yo),this.trigger(X.prototype.q.yp,null)),this.Ah=null));this.bv||(this.cd++,
this.Se++,this.mi++);this.jh+=Za()-d}}};c.prototype.Bs=function(b){var a,g,d,f,e,n,c,k;1E3<=b-this.Ze&&(this.Ze+=1E3,1E3<=b-this.Ze&&(this.Ze=b),this.ok=this.mi,this.mi=0,this.dk=this.jh,this.jh=0);0!==this.Gi&&(a=b-this.Gi,0>a&&(a=0),this.ie=a/1E3,.5<this.ie?this.ie=0:this.ie>1/this.En&&(this.ie=1/this.En));this.Gi=b;this.Ne=this.ie*this.fg;this.lb.add(this.Ne);this.Zd.add(this.ie);b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Wg)&&
!this.uc;2<=this.Ob||b&&0<this.Te?(a=this.bb/this.ab,g=this.width/this.height,d=this.Ob,b&&0<this.Te&&(d=this.Te),this.sg=2!==d&&g>a||2===d&&g<a?this.height/this.ab:this.width/this.bb,this.ra&&(this.ra.oo(this.ra.scrollX),this.ra.po(this.ra.scrollY))):this.sg=this.oe?this.devicePixelRatio:1;this.yb();this.vc++;this.yd.jt();this.vc--;this.yb();this.vc++;g=this.Nn.Fe();b=0;for(a=g.length;b<a;b++)g[b].jv();b=0;for(a=this.u.length;b<a;b++)if(n=this.u[b],!n.K&&(n.Qa.length||n.Da.length))for(g=0,d=n.i.length;g<
d;g++)for(c=n.i[g],f=0,e=c.T.length;f<e;f++)c.T[f].Fa();b=0;for(a=this.u.length;b<a;b++)if(n=this.u[b],!n.K&&(n.Qa.length||n.Da.length))for(g=0,d=n.i.length;g<d;g++)for(c=n.i[g],f=0,e=c.T.length;f<e;f++)k=c.T[f],k.Us&&k.Us();g=this.jl.Fe();b=0;for(a=g.length;b<a;b++)g[b].Fa();this.vc--;this.hs();for(b=0;this.vg&&10>b++;)this.Om(this.vg);b=0;for(a=this.Id.length;b<a;b++)this.Id[b].Ek=!1;this.ra.Qe&&this.ra.Qe.Ta();V(this.sh);this.vc++;b=0;for(a=this.u.length;b<a;b++)if(n=this.u[b],!n.K&&(n.Qa.length||
n.Da.length))for(g=0,d=n.i.length;g<d;g++)for(c=n.i[g],f=0,e=c.T.length;f<e;f++)k=c.T[f],k.eg&&k.eg();g=this.kl.Fe();b=0;for(a=g.length;b<a;b++)g[b].eg();this.vc--};c.prototype.Om=function(b){var a=this.ra;this.ra.Ht();var g,d,f,e,n,c,k;if(this.D)for(g=0,d=this.u.length;g<d;g++)n=this.u[g],n.K||!n.gm||n.global&&0!==n.i.length||-1!==b.Qg.indexOf(n)||n.gm();a==b&&V(this.yd.gc);V(this.sh);b.Tl();g=0;for(d=this.u.length;g<d;g++)if(n=this.u[g],n.global||n.wa.sj)for(b=0,a=n.i.length;b<a;b++)if(c=n.i[b],
c.nl&&c.nl(),c.T)for(f=0,e=c.T.length;f<e;f++)k=c.T[f],k.nl&&k.nl();this.Y=!0;this.yb()};c.prototype.Zl=function(b){this.jl.add(b)};c.prototype.It=function(b){this.kl.add(b)};c.prototype.Ue=function(b){return b&&-1!==b.lh?this.ie*b.lh:this.Ne};c.prototype.kd=function(){this.ra.kd(this.ka);this.Rb&&this.ka.present()};c.prototype.jc=function(){this.Pe&&(this.Oe=1,this.ra.Me(this.D));this.ra.jc(this.D);this.D.iv()};c.prototype.Oj=function(b){b&&this.fi.push(b)};c.prototype.ft=function(b){Da(this.fi,
b)};c.prototype.Jg=function(b){b=b.toString();return this.Sd.hasOwnProperty(b)?this.Sd[b]:null};var I=[];c.prototype.Bd=function(b){var a,g;a=b.type.name;var d=null;if(this.Le.hasOwnProperty(a)){if(d=this.Le[a],d.contains(b))return}else d=I.length?I.pop():new fa,this.Le[a]=d;d.add(b);this.me=!0;if(b.Gb)for(a=0,g=b.siblings.length;a<g;a++)this.Bd(b.siblings[a]);this.Ok&&d.jg.push(b);this.Nk||(this.vc++,this.trigger(Object.getPrototypeOf(b.type.wa).q.Ap,b),this.vc--)};c.prototype.yb=function(){if(this.me){var b,
a,g,d,f,n;this.Ok=!0;g=0;for(f=this.Qc.length;g<f;++g)for(b=this.Qc[g],a=b.type,a.i.push(b),d=0,n=a.Da.length;d<n;++d)a.Da[d].i.push(b),a.Da[d].dg=!0;V(this.Qc);this.sp();Ya(this.Le);this.me=this.Ok=!1}};c.prototype.sp=function(){for(var b in this.Le)this.Le.hasOwnProperty(b)&&this.cp(this.Le[b])};c.prototype.cp=function(b){var a=b.Fe(),g=a[0].type,d,f,n,e,c,k;$a(g.i,b);g.dg=!0;0===g.i.length&&(g.Rh=!1);d=0;for(f=g.Da.length;d<f;++d)k=g.Da[d],$a(k.i,b),k.dg=!0;d=0;for(f=this.yd.gc.length;d<f;++d)if(c=
this.yd.gc[d],c.Ub.hasOwnProperty(g.index)&&$a(c.Ub[g.index].Nd,b),!g.K)for(n=0,e=g.Da.length;n<e;++n)k=g.Da[n],c.Ub.hasOwnProperty(k.index)&&$a(c.Ub[k.index].Nd,b);if(c=a[0].n){if(c.zc)for(n=c.i,d=0,f=n.length;d<f;++d)e=n[d],b.contains(e)&&(e.qa(),c.ub.update(e,e.cc,null),e.cc.set(0,0,-1,-1));$a(c.i,b);c.xh(0)}for(d=0;d<a.length;++d)this.bp(a[d],g);b.clear();I.push(b);this.Y=!0};c.prototype.bp=function(b,a){var g,d,f;g=0;for(d=this.fi.length;g<d;++g)this.fi[g](b);b.fe&&a.Yh.update(b,b.fe,null);(g=
b.n)&&g.Wf(b,!0);if(b.T)for(g=0,d=b.T.length;g<d;++g)f=b.T[g],f.gf&&f.gf(),f.behavior.gl.remove(b);this.Nn.remove(b);this.jl.remove(b);this.kl.remove(b);b.gf&&b.gf();this.Sd.hasOwnProperty(b.uid.toString())&&delete this.Sd[b.uid.toString()];this.Ui--;100>a.di.length&&a.di.push(b)};c.prototype.ek=function(b,a,g,d){if(b.K){var f=Q(Math.random()*b.Qf.length);return this.ek(b.Qf[f],a,g,d)}return b.Fc?this.ge(b.Fc,a,!1,g,d,!1):null};var U=[];c.prototype.ge=function(b,a,g,d,f,n){var e,c,k,h;if(!b)return null;
var u=this.u[b[1]],C=u.wa.pe;if(this.dh&&C&&!u.Pk||C&&!this.D&&11===b[0][11])return null;var t=a;C||(a=null);var r;u.di.length?(r=u.di.pop(),r.tb=!0,u.wa.ca.call(r,u)):(r=new u.wa.ca(u),r.tb=!1);!g||n||this.Sd.hasOwnProperty(b[2].toString())?r.uid=this.mh++:r.uid=b[2];this.Sd[r.uid.toString()]=r;r.jo=this.Jn++;r.We=u.i.length;e=0;for(c=this.Qc.length;e<c;++e)this.Qc[e].type===u&&r.We++;r.Lg=Cb;r.toString=Db;k=b[3];if(r.tb)Ya(r.I);else{r.I={};if("undefined"!==typeof cr_is_preview)for(r.mn=[],r.mn.length=
k.length,e=0,c=k.length;e<c;e++)r.mn[e]=k[e][1];r.Ya=[];r.Ya.length=k.length}e=0;for(c=k.length;e<c;e++)r.Ya[e]=k[e][0];if(C){var m=b[0];r.x=ja(d)?m[0]:d;r.y=ja(f)?m[1]:f;r.z=m[2];r.width=m[3];r.height=m[4];r.depth=m[5];r.k=m[6];r.opacity=m[7];r.Pb=m[8];r.Qb=m[9];r.zb=m[10];e=m[11];!this.D&&u.N.length&&(r.zb=e);r.wg=hb(r.zb);this.Hc&&ib(r,r.zb,this.Hc);if(r.tb){e=0;for(c=m[12].length;e<c;e++)for(k=0,h=m[12][e].length;k<h;k++)r.Ja[e][k]=m[12][e][k];r.Ba.set(0,0,0,0);r.fe.set(0,0,-1,-1);r.cc.set(0,
0,-1,-1);r.Mb.yh(r.Ba);V(r.Uj)}else{r.Ja=m[12].slice(0);e=0;for(c=r.Ja.length;e<c;e++)r.Ja[e]=m[12][e].slice(0);r.da=[];r.be=[];r.be.length=u.N.length;r.Ba=new T(0,0,0,0);r.fe=new T(0,0,-1,-1);r.cc=new T(0,0,-1,-1);r.Mb=new va;r.Uj=[];r.V=Gb;r.Uu=Hb;r.Eb=Ib;r.qa=Jb;r.Ot=Kb;r.To=Lb;r.md=Mb}r.Fh=!1;r.Lt=0;r.Kt=0;r.Jt=null;14===m.length&&(r.Fh=!0,r.Lt=m[13][0],r.Kt=m[13][1],r.Jt=m[13][2]);e=0;for(c=u.N.length;e<c;e++)r.be[e]=!0;r.Wd=!0;r.ed=Nb;r.ed();r.Uo=!!r.da.length;r.Tj=!0;r.Xj=!0;u.Qh=!0;r.visible=
!0;r.lh=-1;r.n=a;r.fd=a.i.length;r.Oe=0;"undefined"===typeof r.ja&&(r.ja=null);this.Y=r.Dd=!0}var y;V(U);e=0;for(c=u.Da.length;e<c;e++)U.push.apply(U,u.Da[e].Qa);U.push.apply(U,u.Qa);if(r.tb)for(e=0,c=U.length;e<c;e++){var D=U[e];y=r.T[e];y.tb=!0;D.behavior.ca.call(y,D,r);m=b[4][e];k=0;for(h=m.length;k<h;k++)y.H[k]=m[k];y.S();D.behavior.gl.add(r)}else for(r.T=[],e=0,c=U.length;e<c;e++)D=U[e],y=new D.behavior.ca(D,r),y.tb=!1,y.H=b[4][e].slice(0),y.S(),r.T.push(y),D.behavior.gl.add(r);m=b[5];if(r.tb)for(e=
0,c=m.length;e<c;e++)r.H[e]=m[e];else r.H=m.slice(0);this.Qc.push(r);this.me=!0;a&&(a.rg(r,!0),1!==a.$b||1!==a.ac)&&(u.Rh=!0);this.Ui++;if(u.Gb){if(r.Gb=!0,r.tb?V(r.siblings):r.siblings=[],!g&&!n){e=0;for(c=u.hc.length;e<c;e++)if(u.hc[e]!==u){if(!u.hc[e].Fc)return null;r.siblings.push(this.ge(u.hc[e].Fc,t,!1,C?r.x:d,C?r.y:f,!0))}e=0;for(c=r.siblings.length;e<c;e++)for(r.siblings[e].siblings.push(r),k=0;k<c;k++)e!==k&&r.siblings[e].siblings.push(r.siblings[k])}}else r.Gb=!1,r.siblings=null;r.S();e=
0;for(c=r.T.length;e<c;e++)r.T[e].Ts&&r.T[e].Ts();return r};c.prototype.Ig=function(b){var a,g;a=0;for(g=this.ra.R.length;a<g;a++){var d=this.ra.R[a];if(kb(d.name,b))return d}return null};c.prototype.Md=function(b){b=Q(b);0>b&&(b=0);b>=this.ra.R.length&&(b=this.ra.R.length-1);return this.ra.R[b]};c.prototype.bk=function(b){var a,g;a=0;for(g=b.length;a<g;a++)b[a].O().U=!0};c.prototype.qh=function(b){var a,g;a=0;for(g=b.length;a<g;a++)b[a].qh()};c.prototype.rh=function(b){var a,g;a=0;for(g=b.length;a<
g;a++)b[a].rh()};c.prototype.we=function(b){var a,g;a=0;for(g=b.length;a<g;a++)b[a].we()};c.prototype.Qo=function(b){if(b.Qh){var a,g,d=b.i;a=0;for(g=d.length;a<g;++a)d[a].To();d=this.Qc;a=0;for(g=d.length;a<g;++a)d[a].type===b&&d[a].To();b.Qh=!1}};c.prototype.Xm=function(b,a,g,d){var f,e,c=b?1!==b.$b||1!==b.ac:!1;if(a.K)for(b=0,f=a.Qf.length;b<f;++b)e=a.Qf[b],c||e.Rh?Ba(d,e.i):(this.Qo(e),e.Yh.lj(g,d));else c||a.Rh?Ba(d,a.i):(this.Qo(a),a.Yh.lj(g,d))};c.prototype.Sr=function(b,a,g,d){var f,e;f=0;
for(e=a.length;f<e;++f)this.Xm(b,a[f],g,d)};c.prototype.Rr=function(b,a,g){var d=this.zo;d&&this.Sr(b,d.hl,a,g)};c.prototype.Eh=function(b,a,g){var d=b.O(),f,e,c,n,k,h;if(d.U)for(d.U=!1,V(d.i),f=0,n=b.i.length;f<n;f++)c=b.i[f],c.qa(),k=c.n.La(a,g,!0),h=c.n.La(a,g,!1),c.Eb(k,h)&&d.i.push(c);else{f=e=0;for(n=d.i.length;f<n;f++)c=d.i[f],c.qa(),k=c.n.La(a,g,!0),h=c.n.La(a,g,!1),c.Eb(k,h)&&(d.i[e]=d.i[f],e++);d.i.length=e}b.Cc();return d.Dk()};c.prototype.lf=function(b,a){if(!(b&&a&&b!==a&&b.Dd&&a.Dd))return!1;
b.qa();a.qa();var g=b.n,d=a.n,f,e,c,n,k,h,r,u;if(g===d||g.$b===d.$b&&d.ac===d.ac&&g.scale===d.scale&&g.k===d.k&&g.Lb===d.Lb){if(!b.Ba.ms(a.Ba)||!b.Mb.nn(a.Mb)||b.Fh&&a.Fh)return!1;if(b.Fh)return this.Do(b,a);if(a.Fh)return this.Do(a,b);r=b.ja&&!b.ja.Jf();f=a.ja&&!a.ja.Jf();if(!r&&!f)return!0;r?(b.ja.wf(b.width,b.height,b.k),r=b.ja):(this.bd.ag(b.Mb,b.x,b.y,b.width,b.height),r=this.bd);f?(a.ja.wf(a.width,a.height,a.k),u=a.ja):(this.bd.ag(a.Mb,a.x,a.y,a.width,a.height),u=this.bd);return r.Rg(u,a.x-
b.x,a.y-b.y)}r=b.ja&&!b.ja.Jf();f=a.ja&&!a.ja.Jf();r?(b.ja.wf(b.width,b.height,b.k),this.bd.so(b.ja)):this.bd.ag(b.Mb,b.x,b.y,b.width,b.height);r=this.bd;f?(a.ja.wf(a.width,a.height,a.k),this.Vl.so(a.ja)):this.Vl.ag(a.Mb,a.x,a.y,a.width,a.height);u=this.Vl;f=0;for(e=r.Zc;f<e;f++)c=2*f,n=c+1,k=r.eb[c],h=r.eb[n],r.eb[c]=g.Ea(k+b.x,h+b.y,!0),r.eb[n]=g.Ea(k+b.x,h+b.y,!1);r.qa();f=0;for(e=u.Zc;f<e;f++)c=2*f,n=c+1,k=u.eb[c],h=u.eb[n],u.eb[c]=d.Ea(k+a.x,h+a.y,!0),u.eb[n]=d.Ea(k+a.x,h+a.y,!1);u.qa();return r.Rg(u,
0,0)};var wa=new va;new T(0,0,0,0);var P=[];c.prototype.Do=function(b,a){var g,d,f,e,c=a.Ba,n=b.x,k=b.y;b.Yu(c,P);var h=a.ja&&!a.ja.Jf();g=0;for(d=P.length;g<d;++g)if(f=P[g],e=f.lv,c.ns(e,n,k)&&(wa.yh(e),wa.offset(n,k),wa.nn(a.Mb)))if(h)if(a.ja.wf(a.width,a.height,a.k),f.yl){if(f.yl.Rg(a.ja,a.x-(n+e.left),a.y-(k+e.top)))return V(P),!0}else{if(this.bd.ag(wa,0,0,e.right-e.left,e.bottom-e.top),this.bd.Rg(a.ja,a.x,a.y))return V(P),!0}else if(f.yl){if(this.bd.ag(a.Mb,0,0,a.width,a.height),f.yl.Rg(this.bd,
-(n+e.left),-(k+e.top)))return V(P),!0}else return V(P),!0;V(P);return!1};c.prototype.No=function(b,a){if(!a)return!1;var g,d,f,e,c;g=0;for(d=b.Qa.length;g<d;g++)if(b.Qa[g].behavior instanceof a)return!0;if(!b.K)for(g=0,d=b.Da.length;g<d;g++)for(c=b.Da[g],f=0,e=c.Qa.length;f<e;f++)if(c.Qa[f].behavior instanceof a)return!0;return!1};c.prototype.em=function(b){return this.No(b,cc.tu)};c.prototype.fm=function(b){return this.No(b,cc.uu)};var E=[];c.prototype.mf=function(b){var a,g,d;b.qa();this.Rr(b.n,
b.Ba,E);a=0;for(g=E.length;a<g;++a)if(d=E[a],d.I.solidEnabled&&this.lf(b,d))return V(E),d;V(E);return null};c.prototype.bt=function(b,a,g,d){d=d||50;var f=b.x,e=b.y,c,n=null,k=null;for(c=0;c<d;c++)if(b.x=f+a*c,b.y=e+g*c,b.V(),!this.lf(b,n)&&((n=this.mf(b))&&(k=n),!n&&!n))return k&&this.Ys(b,a,g,k),!0;b.x=f;b.y=e;b.V();return!1};c.prototype.Ys=function(b,a,g,d){var f=2,e,c=!1;e=!1;for(var n=b.x,k=b.y;16>=f;)e=1/f,f*=2,b.x+=a*e*(c?1:-1),b.y+=g*e*(c?1:-1),b.V(),this.lf(b,d)?e=c=!0:(e=c=!1,n=b.x,k=b.y);
e&&(b.x=n,b.y=k,b.V())};c.prototype.ct=function(b){var a=0,g=b.x,d=b.y,f=0,e=0,c=0,n=this.mf(b);if(n){for(;100>=a;){switch(f){case 0:e=0;c=-1;a++;break;case 1:e=1;c=-1;break;case 2:e=1;c=0;break;case 3:c=e=1;break;case 4:e=0;c=1;break;case 5:e=-1;c=1;break;case 6:e=-1;c=0;break;case 7:c=e=-1}f=(f+1)%8;b.x=Q(g+e*a);b.y=Q(d+c*a);b.V();if(!this.lf(b,n)&&(n=this.mf(b),!n))return}b.x=g;b.y=d;b.V()}};c.prototype.et=function(b,a){b.Dd&&a.Dd&&this.sh.push([b,a])};c.prototype.zq=function(b,a){var g,d,f;g=
0;for(d=this.sh.length;g<d;g++)if(f=this.sh[g],f[0]==b&&f[1]==a||f[0]==a&&f[1]==b)return!0;return!1};c.prototype.wq=function(b,a,g){var d=b.x,f=b.y,e=na(10,Va(a,g,d,f)),c=Ma(a,g,d,f),n=this.mf(b);if(!n)return Ja(c+ra);var k=n,h,r,u,C,t=W(5);for(h=1;36>h;h++)if(r=c-h*t,b.x=a+Math.cos(r)*e,b.y=g+Math.sin(r)*e,b.V(),!this.lf(b,k)&&(k=this.mf(b),!k)){u=r;break}36===h&&(u=Ja(c+ra));k=n;for(h=1;36>h;h++)if(r=c+h*t,b.x=a+Math.cos(r)*e,b.y=g+Math.sin(r)*e,b.V(),!this.lf(b,k)&&(k=this.mf(b),!k)){C=r;break}36===
h&&(C=Ja(c+ra));b.x=d;b.y=f;b.V();if(C===u)return C;b=Na(C,u)/2;b=Ta(C,u)?Ja(u+b+ra):Ja(C+b);u=Math.cos(c);c=Math.sin(c);C=Math.cos(b);b=Math.sin(b);a=u*C+c*b;return Ma(0,0,u-2*a*C,c-2*a*b)};var A=-1;c.prototype.trigger=function(b,a,g){if(!this.ra)return!1;var d=this.ra.Qe;if(!d)return!1;var f=!1,e,c,n;A++;var k=d.gk;c=0;for(n=k.length;c<n;++c)e=this.Ko(b,a,k[c],g),f=f||e;e=this.Ko(b,a,d,g);A--;return f||e};c.prototype.Ko=function(b,a,g,d){var f=!1,e,c,n,k;if(a)for(n=this.cm(b,a,a.type.name,g,d),
f=f||n,k=a.type.Da,e=0,c=k.length;e<c;++e)n=this.cm(b,a,k[e].name,g,d),f=f||n;else n=this.cm(b,a,"system",g,d),f=f||n;return f};c.prototype.cm=function(b,a,g,d,f){var e,c=!1,n=!1,n="undefined"!==typeof f,k=(n?d.Rm:d.Lo)[g];if(!k)return c;var h=null;d=0;for(e=k.length;d<e;++d)if(k[d].method==b){h=k[d].Cg;break}if(!h)return c;var r;n?r=h[f]:r=h;if(!r)return null;d=0;for(e=r.length;d<e;d++)b=r[d][0],f=r[d][1],n=this.yr(a,g,b,f),c=c||n;return c};c.prototype.yr=function(b,a,g,d){var f,e,c=!1;this.dm++;
var n=this.jb().ib;n&&this.qh(n.Ae);var k=1<this.dm;this.qh(g.Ae);k&&this.Zs();var h=this.jj(g);h.ib=g;b&&(f=this.types[a].O(),f.U=!1,V(f.i),f.i[0]=b,this.types[a].Cc());b=!0;if(g.parent){a=h.Co;for(f=g.parent;f;)a.push(f),f=f.parent;a.reverse();f=0;for(e=a.length;f<e;f++)if(!a[f].mt()){b=!1;break}}b&&(this.Se++,g.Vc?g.kt(d):g.Ta(),c=c||h.Ye);this.fj();k&&this.Rs();this.we(g.Ae);n&&this.we(n.Ae);this.me&&0===this.vc&&0===A&&!this.Qk&&this.yb();this.dm--;return c};c.prototype.sk=function(){var b=this.jb();
return b.ib.Wa[b.Va]};c.prototype.Ir=function(){var b=this.jb();return b.ib.Bc[b.Xb]};c.prototype.Zs=function(){this.Qi++;this.Qi>=this.al.length&&this.al.push([])};c.prototype.Rs=function(){this.Qi--};c.prototype.Ym=function(){return this.al[this.Qi]};c.prototype.jj=function(b){this.hi++;this.hi>=this.jk.length&&this.jk.push(new Ob);var a=this.jb();a.reset(b);return a};c.prototype.fj=function(){this.hi--};c.prototype.jb=function(){return this.jk[this.hi]};c.prototype.$s=function(){this.Si++;this.Si>=
this.cl.length&&this.cl.push(ca({name:void 0,index:0,xb:!1}));var b=this.Jr();b.name=void 0;b.index=0;b.xb=!1;return b};c.prototype.Ss=function(){this.Si--};c.prototype.Jr=function(){return this.cl[this.Si]};c.prototype.Zm=function(b,a){for(var g,d,f,e,c,n;a;){g=0;for(d=a.Lc.length;g<d;g++)if(n=a.Lc[g],n instanceof Pb&&kb(b,n.name))return n;a=a.parent}g=0;for(d=this.Id.length;g<d;g++)for(c=this.Id[g],f=0,e=c.je.length;f<e;f++)if(n=c.je[f],n instanceof Pb&&kb(b,n.name))return n;return null};c.prototype.$m=
function(b){var a,g;a=0;for(g=this.Uc.length;a<g;a++)if(this.Uc[a].Z===b)return this.Uc[a];return null};c.prototype.si=function(b){var a,g;a=0;for(g=this.u.length;a<g;a++)if(this.u[a].Z===b)return this.u[a];return null};c.prototype.Lr=function(b){var a,g;a=0;for(g=this.uf.length;a<g;a++)if(this.uf[a].Z===b)return this.uf[a];return null};c.prototype.Hq=function(b,a){this.Ah=[b,a];this.Y=!0};c.prototype.hs=function(){var b=this,a=this.Ll,g=this.Pd,d=this.Li,f=!1;this.wo&&(f=!0,a="__c2_continuouspreview",
this.wo=!1);if(a.length){this.yb();g=this.qt();if(window.indexedDB&&!this.Ic)x(a,g,function(){B("Saved state to IndexedDB storage ("+g.length+" bytes)");b.Pd=g;b.trigger(X.prototype.q.Lj,null);b.Pd="";f&&y()},function(d){try{localStorage.setItem("__c2save_"+a,g),B("Saved state to WebStorage ("+g.length+" bytes)"),b.Pd=g,b.trigger(X.prototype.q.Lj,null),b.Pd="",f&&y()}catch(e){B("Failed to save game state: "+d+"; "+e)}});else try{localStorage.setItem("__c2save_"+a,g),B("Saved state to WebStorage ("+
g.length+" bytes)"),b.Pd=g,this.trigger(X.prototype.q.Lj,null),b.Pd="",f&&y()}catch(e){B("Error saving to WebStorage: "+e)}this.Hb=this.Li=this.Ll=""}if(d.length){if(window.indexedDB&&!this.Ic)t(d,function(a){a?(b.Hb=a,B("Loaded state from IndexedDB storage ("+b.Hb.length+" bytes)")):(b.Hb=localStorage.getItem("__c2save_"+d)||"",B("Loaded state from WebStorage ("+b.Hb.length+" bytes)"));b.Ch=!1;b.Hb.length||b.trigger(X.prototype.q.Kj,null)},function(){b.Hb=localStorage.getItem("__c2save_"+d)||"";
B("Loaded state from WebStorage ("+b.Hb.length+" bytes)");b.Ch=!1;b.Hb.length||b.trigger(X.prototype.q.Kj,null)});else{try{this.Hb=localStorage.getItem("__c2save_"+d)||"",B("Loaded state from WebStorage ("+this.Hb.length+" bytes)")}catch(c){this.Hb=""}this.Ch=!1;b.Hb.length||b.trigger(X.prototype.q.Kj,null)}this.Ll=this.Li=""}this.Hb.length&&(this.yb(),this.As(this.Hb),this.Pd=this.Hb,this.trigger(X.prototype.q.Kp,null),this.Hb=this.Pd="")};c.prototype.qt=function(){var b,a,g,d,f,e,c,n={c2save:!0,
version:1,rt:{time:this.lb.C,walltime:this.Zd.C,timescale:this.fg,tickcount:this.cd,execcount:this.Se,next_uid:this.mh,running_layout:this.ra.Z,start_time_offset:Date.now()-this.tj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};b=0;for(a=this.u.length;b<a;b++)if(f=this.u[b],!f.K&&!this.em(f)){e={instances:[]};Xa(f.I)&&(e.ex=k(f.I));g=0;for(d=f.i.length;g<d;g++)e.instances.push(this.Kl(f.i[g]));n.types[f.Z.toString()]=e}b=0;for(a=this.Uc.length;b<a;b++)g=this.Uc[b],n.layouts[g.Z.toString()]=
g.wb();d=n.events.groups;b=0;for(a=this.uf.length;b<a;b++)g=this.uf[b],d[g.Z.toString()]=this.Ng[g.Mg].Df;a=n.events.cnds;for(c in this.xf)this.xf.hasOwnProperty(c)&&(b=this.xf[c],Xa(b.I)&&(a[c]={ex:k(b.I)}));a=n.events.acts;for(c in this.tf)this.tf.hasOwnProperty(c)&&(b=this.tf[c],Xa(b.I)&&(a[c]={ex:b.I}));a=n.events.vars;for(c in this.kg)this.kg.hasOwnProperty(c)&&(b=this.kg[c],b.Ci||b.parent&&!b.ah||(a[c]=b.data));n.system=this.yd.wb();return JSON.stringify(n)};c.prototype.ko=function(){var b,
a,g,d,f,e;this.Sd={};b=0;for(a=this.u.length;b<a;b++)if(g=this.u[b],!g.K)for(d=0,f=g.i.length;d<f;d++)e=g.i[d],this.Sd[e.uid.toString()]=e};c.prototype.As=function(b){b=JSON.parse(b);if(b.c2save&&!(1<b.version)){this.Bi=!0;var a=b.rt;this.lb.reset();this.lb.C=a.time;this.Zd.reset();this.Zd.C=a.walltime||0;this.fg=a.timescale;this.cd=a.tickcount;this.Se=a.execcount;this.tj=Date.now()-a.start_time_offset;var g=a.running_layout;if(g!==this.ra.Z)if(g=this.$m(g))this.Om(g);else return;var d,f,e,c,n,k,
h;k=b.types;for(f in k)if(k.hasOwnProperty(f)&&(c=this.si(parseInt(f,10)))&&!c.K&&!this.em(c)){k[f].ex?c.I=k[f].ex:Ya(c.I);n=c.i;e=k[f].instances;g=0;for(d=oa(n.length,e.length);g<d;g++)this.Mi(n[g],e[g]);g=e.length;for(d=n.length;g<d;g++)this.Bd(n[g]);g=n.length;for(d=e.length;g<d;g++){n=null;if(c.wa.pe&&(n=this.ra.ri(e[g].w.l),!n))continue;n=this.ge(c.Fc,n,!1,0,0,!0);this.Mi(n,e[g])}c.dg=!0}this.yb();this.ko();d=b.layouts;for(f in d)d.hasOwnProperty(f)&&(g=this.$m(parseInt(f,10)))&&g.Tb(d[f]);d=
b.events.groups;for(f in d)d.hasOwnProperty(f)&&(g=this.Lr(parseInt(f,10)))&&this.Ng[g.Mg]&&this.Ng[g.Mg].At(d[f]);g=b.events.cnds;for(f in g)g.hasOwnProperty(f)&&this.xf.hasOwnProperty(f)&&(this.xf[f].I=g[f].ex);g=b.events.acts;for(f in g)g.hasOwnProperty(f)&&this.tf.hasOwnProperty(f)&&(this.tf[f].I=g[f].ex);g=b.events.vars;for(f in g)g.hasOwnProperty(f)&&this.kg.hasOwnProperty(f)&&(this.kg[f].data=g[f]);this.mh=a.next_uid;this.Bi=!1;this.yd.Tb(b.system);g=0;for(d=this.u.length;g<d;g++)if(c=this.u[g],
!c.K&&!this.em(c))for(f=0,b=c.i.length;f<b;f++){n=c.i[f];if(c.Gb)for(k=n.Lg(),V(n.siblings),a=0,e=c.hc.length;a<e;a++)h=c.hc[a],c!==h&&n.siblings.push(h.i[k]);n.hd&&n.hd();if(n.T)for(a=0,e=n.T.length;a<e;a++)k=n.T[a],k.hd&&k.hd()}this.Y=!0}};c.prototype.Kl=function(b,a){var g,d,f,e,c;e=b.type;f=e.wa;var n={};a?n.c2=!0:n.uid=b.uid;Xa(b.I)&&(n.ex=k(b.I));if(b.Ya&&b.Ya.length)for(n.ivs={},g=0,d=b.Ya.length;g<d;g++)n.ivs[b.type.Kk[g].toString()]=b.Ya[g];if(f.pe){f={x:b.x,y:b.y,w:b.width,h:b.height,l:b.n.Z,
zi:b.md()};0!==b.k&&(f.a=b.k);1!==b.opacity&&(f.o=b.opacity);.5!==b.Pb&&(f.hX=b.Pb);.5!==b.Qb&&(f.hY=b.Qb);0!==b.zb&&(f.bm=b.zb);b.visible||(f.v=b.visible);b.Dd||(f.ce=b.Dd);-1!==b.lh&&(f.mts=b.lh);if(e.N.length)for(f.fx=[],g=0,d=e.N.length;g<d;g++)c=e.N[g],f.fx.push({name:c.name,active:b.be[c.index],params:b.Ja[c.index]});n.w=f}if(b.T&&b.T.length)for(n.behs={},g=0,d=b.T.length;g<d;g++)e=b.T[g],e.wb&&(n.behs[e.type.Z.toString()]=e.wb());b.wb&&(n.data=b.wb());return n};c.prototype.Nr=function(b,a){var g,
d;g=0;for(d=b.Kk.length;g<d;g++)if(b.Kk[g]===a)return g;return-1};c.prototype.Hr=function(b,a){var g,d;g=0;for(d=b.T.length;g<d;g++)if(b.T[g].type.Z===a)return g;return-1};c.prototype.Mi=function(b,a,g){var d,f,e,c,n;n=b.type;c=n.wa;if(g){if(!a.c2)return}else b.uid=a.uid;a.ex?b.I=a.ex:Ya(b.I);if(f=a.ivs)for(d in f)f.hasOwnProperty(d)&&(e=this.Nr(n,parseInt(d,10)),0>e||e>=b.Ya.length||(b.Ya[e]=f[d]));if(c.pe){e=a.w;b.n.Z!==e.l&&(f=b.n,b.n=this.ra.ri(e.l),b.n?(f.Wf(b,!0),b.n.rg(b,!0),b.V(),b.n.xh(0)):
(b.n=f,g||this.Bd(b)));b.x=e.x;b.y=e.y;b.width=e.w;b.height=e.h;b.fd=e.zi;b.k=e.hasOwnProperty("a")?e.a:0;b.opacity=e.hasOwnProperty("o")?e.o:1;b.Pb=e.hasOwnProperty("hX")?e.hX:.5;b.Qb=e.hasOwnProperty("hY")?e.hY:.5;b.visible=e.hasOwnProperty("v")?e.v:!0;b.Dd=e.hasOwnProperty("ce")?e.ce:!0;b.lh=e.hasOwnProperty("mts")?e.mts:-1;b.zb=e.hasOwnProperty("bm")?e.bm:0;b.wg=hb(b.zb);this.Hc&&ib(b,b.zb,this.Hc);b.V();if(e.hasOwnProperty("fx"))for(g=0,f=e.fx.length;g<f;g++)c=n.uk(e.fx[g].name),0>c||(b.be[c]=
e.fx[g].active,b.Ja[c]=e.fx[g].params);b.ed()}if(n=a.behs)for(d in n)n.hasOwnProperty(d)&&(g=this.Hr(b,parseInt(d,10)),0>g||b.T[g].Tb(n[d]));a.data&&b.Tb(a.data)};Qb=function(b){return new c(document.getElementById(b))};Rb=function(b,a){return new c({dc:!0,width:b,height:a})};window.cr_createRuntime=Qb;window.cr_createDCRuntime=Rb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var b=document.createElement("screencanvas")||document.createElement("canvas");b.Sj=!0;document.body.appendChild(b);
b=new c(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 c(document.getElementById("canvas"));window.c2runtime=b;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return b}})();
window.cr_getC2Runtime=function(){var p=document.getElementById("c2canvas");return p?p.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(p,l){var c=window.cr_getC2Runtime();c&&c.Hq(p,l)};window.cr_sizeCanvas=function(p,l){if(0!==p&&0!==l){var c=window.cr_getC2Runtime();c&&c.setSize(p,l)}};window.cr_setSuspended=function(p){var l=window.cr_getC2Runtime();l&&l.setSuspended(p)};
(function(){function p(a,d){this.b=a;this.Qe=null;this.scrollX=this.b.bb/2;this.scrollY=this.b.ab/2;this.scale=1;this.k=0;this.Af=!0;this.name=d[0];this.width=d[1];this.height=d[2];this.Oo=d[3];this.uo=d[4];this.Z=d[5];var e=d[6],f,c;this.R=[];this.Qg=[];f=0;for(c=e.length;f<c;f++){var k=new Sb(this,e[f]);k.Ln=f;this.R.push(k)}e=d[7];this.Xe=[];f=0;for(c=e.length;f<c;f++){var k=e[f],h=this.b.u[k[1]];h.Fc||(h.Fc=k);this.Xe.push(k);-1===this.Qg.indexOf(h)&&this.Qg.push(h)}this.N=[];this.da=[];this.Wd=
!0;this.Ja=[];f=0;for(c=d[8].length;f<c;f++)this.N.push({id:d[8][f][0],name:d[8][f][1],Ua:-1,xe:!1,pc:!0,index:f}),this.Ja.push(d[8][f][2].slice(0));this.ed();this.ze=new T(0,0,1,1);this.Dl=new T(0,0,1,1);this.ve={}}function l(a,d){return a.fd-d.fd}function c(a,d){this.$a=a;this.b=a.b;this.i=[];this.scale=1;this.k=0;this.Hd=!1;this.Yd=new T(0,0,0,0);this.Io=new va;this.Ga=this.ya=this.Ha=this.xa=0;this.of=!1;this.$d=-1;this.ck=0;this.name=d[0];this.index=d[1];this.Z=d[2];this.visible=d[3];this.Oc=
d[4];this.dd=d[5];this.$b=d[6];this.ac=d[7];this.opacity=d[8];this.li=d[9];this.zc=d[10];this.Lb=d[11];this.zb=d[12];this.Qq=d[13];this.wg="source-over";this.Fb=this.Ib=0;this.ub=null;this.Qd=q();this.$c=!0;this.Of=new T(0,0,-1,-1);this.ob=new T(0,0,-1,-1);this.zc&&(this.ub=new gb(this.b.bb,this.b.ab));this.ud=!1;var e=d[14],f,c;this.Ao=[];this.tc=[];this.yg=[];f=0;for(c=e.length;f<c;f++){var k=e[f],h=this.b.u[k[1]];h.Fc||(h.Fc=k,h.Fq=this.index);this.tc.push(k);-1===this.$a.Qg.indexOf(h)&&this.$a.Qg.push(h)}Aa(this.Ao,
this.tc);this.N=[];this.da=[];this.Wd=!0;this.Ja=[];f=0;for(c=d[15].length;f<c;f++)this.N.push({id:d[15][f][0],name:d[15][f][1],Ua:-1,xe:!1,pc:!0,index:f}),this.Ja.push(d[15][f][2].slice(0));this.ed();this.ze=new T(0,0,1,1);this.Dl=new T(0,0,1,1)}function q(){return y.length?y.pop():[]}function m(a){V(a);y.push(a)}p.prototype.pt=function(a){var d=a.type.Z.toString();this.ve.hasOwnProperty(d)||(this.ve[d]=[]);this.ve[d].push(this.b.Kl(a))};p.prototype.dn=function(){var a=this.R[0];return!a.dd&&1===
a.opacity&&!a.li&&a.visible};p.prototype.ed=function(){V(this.da);this.Wd=!0;var a,d,e;a=0;for(d=this.N.length;a<d;a++)e=this.N[a],e.pc&&(this.da.push(e),e.xe||(this.Wd=!1))};p.prototype.tk=function(a){var d,e,f;d=0;for(e=this.N.length;d<e;d++)if(f=this.N[d],f.name===a)return f;return null};var x=[],t=!0;p.prototype.Tl=function(){this.uo&&(this.Qe=this.b.kk[this.uo],this.Qe.hm());this.b.ra=this;this.scrollX=this.b.bb/2;this.scrollY=this.b.ab/2;var a,d,e,f,c,k,h;a=0;for(e=this.b.u.length;a<e;a++)if(d=
this.b.u[a],!d.K)for(c=d.i,d=0,f=c.length;d<f;d++)if(k=c[d],k.n){var b=k.n.Ln;b>=this.R.length&&(b=this.R.length-1);k.n=this.R[b];-1===k.n.i.indexOf(k)&&k.n.i.push(k);k.n.of=!0}if(!t)for(a=0,e=this.R.length;a<e;++a)this.R[a].i.sort(l);V(x);this.uq();a=0;for(e=this.R.length;a<e;a++)k=this.R[a],k.Dq(),k.Gj();c=!1;if(!this.Af){for(h in this.ve)if(this.ve.hasOwnProperty(h)&&(d=this.b.si(parseInt(h,10)))&&!d.K&&this.b.fm(d)){f=this.ve[h];a=0;for(e=f.length;a<e;a++){k=null;if(d.wa.pe&&(k=this.ri(f[a].w.l),
!k))continue;k=this.b.ge(d.Fc,k,!1,0,0,!0);this.b.Mi(k,f[a]);c=!0;x.push(k)}V(f)}a=0;for(e=this.R.length;a<e;a++)this.R[a].i.sort(l),this.R[a].of=!0}c&&(this.b.yb(),this.b.ko());for(a=0;a<x.length;a++)if(k=x[a],k.type.Gb)for(e=k.Lg(),d=0,f=k.type.hc.length;d<f;d++)h=k.type.hc[d],k.type!==h&&(h.i.length>e?k.siblings.push(h.i[e]):h.Fc&&(c=this.b.ge(h.Fc,k.n,!0,k.x,k.y,!0),this.b.yb(),h.Ej(),k.siblings.push(c),x.push(c)));a=0;for(e=this.Xe.length;a<e;a++)this.b.ge(this.Xe[a],null,!0);this.b.vg=null;
this.b.yb();if(this.b.ka&&!this.b.Aa)for(a=0,e=this.b.u.length;a<e;a++)h=this.b.u[a],!h.K&&h.i.length&&h.zl&&h.zl(this.b.ka);a=0;for(e=x.length;a<e;a++)k=x[a],this.b.trigger(Object.getPrototypeOf(k.type.wa).q.mg,k);V(x);this.b.Bi||this.b.trigger(X.prototype.q.om,null);this.Af=!1};p.prototype.Cq=function(){var a,d,e,f,c;d=a=0;for(e=this.Xe.length;a<e;a++)f=this.Xe[a],c=this.b.u[f[1]],c.global?c.Gb||this.b.ge(f,null,!0):(this.Xe[d]=f,d++);za(this.Xe,d)};p.prototype.Ht=function(){this.b.Bi||this.b.trigger(X.prototype.q.Jp,
null);this.b.Nk=!0;V(this.b.yd.gc);var a,d,e,f,c,k;if(!this.Af)for(a=0,d=this.R.length;a<d;a++)for(this.R[a].im(),c=this.R[a].i,e=0,f=c.length;e<f;e++)k=c[e],k.type.global||this.b.fm(k.type)&&this.pt(k);a=0;for(d=this.R.length;a<d;a++){c=this.R[a].i;e=0;for(f=c.length;e<f;e++)k=c[e],k.type.global||this.b.Bd(k);this.b.yb();V(c);this.R[a].of=!0}a=0;for(d=this.b.u.length;a<d;a++)if(c=this.b.u[a],!(c.global||c.wa.pe||c.wa.sj||c.K)){e=0;for(f=c.i.length;e<f;e++)this.b.Bd(c.i[e]);this.b.yb()}t=!1;this.b.Nk=
!1};new T(0,0,0,0);p.prototype.kd=function(a){var d,e=a,f=!1,c=!this.b.rc;c&&(this.b.Ki||(this.b.Ki=document.createElement("canvas"),d=this.b.Ki,d.width=this.b.G,d.height=this.b.F,this.b.An=d.getContext("2d"),f=!0),d=this.b.Ki,e=this.b.An,d.width!==this.b.G&&(d.width=this.b.G,f=!0),d.height!==this.b.F&&(d.height=this.b.F,f=!0),f&&(e.webkitImageSmoothingEnabled=this.b.W,e.mozImageSmoothingEnabled=this.b.W,e.msImageSmoothingEnabled=this.b.W,e.imageSmoothingEnabled=this.b.W));e.globalAlpha=1;e.globalCompositeOperation=
"source-over";this.b.Pj&&!this.dn()&&e.clearRect(0,0,this.b.G,this.b.F);var k,h,f=0;for(k=this.R.length;f<k;f++)h=this.R[f],h.visible&&0<h.opacity&&11!==h.zb&&(h.i.length||!h.dd)?h.kd(e):h.Gj();c&&a.drawImage(d,0,0,this.b.width,this.b.height)};p.prototype.Me=function(a){a.zt(!0);this.b.Sa||(this.b.Sa=a.Ec(this.b.G,this.b.F,this.b.W));if(this.b.Sa.ug!==this.b.G||this.b.Sa.tg!==this.b.F)a.deleteTexture(this.b.Sa),this.b.Sa=a.Ec(this.b.G,this.b.F,this.b.W);a.ad(this.b.Sa);this.b.rc||a.$f(this.b.G,this.b.F);
var d,e;for(d=this.R.length-1;0<=d;--d)e=this.R[d],e.visible&&1===e.opacity&&e.Wd&&0===e.zb&&(e.i.length||!e.dd)?e.Me(a):e.Gj();a.zt(!1)};p.prototype.jc=function(a){var d=0<this.da.length||this.b.ig||!this.b.rc||this.b.Pe;if(d){this.b.Sa||(this.b.Sa=a.Ec(this.b.G,this.b.F,this.b.W));if(this.b.Sa.ug!==this.b.G||this.b.Sa.tg!==this.b.F)a.deleteTexture(this.b.Sa),this.b.Sa=a.Ec(this.b.G,this.b.F,this.b.W);a.ad(this.b.Sa);this.b.rc||a.$f(this.b.G,this.b.F)}else this.b.Sa&&(a.ad(null),a.deleteTexture(this.b.Sa),
this.b.Sa=null);this.b.Pj&&!this.dn()&&a.clear(0,0,0,0);var e,f,c;e=0;for(f=this.R.length;e<f;e++)c=this.R[e],c.visible&&0<c.opacity&&(c.i.length||!c.dd)?c.jc(a):c.Gj();d&&(0===this.da.length||1===this.da.length&&this.b.rc?(1===this.da.length?(d=this.da[0].index,a.De(this.da[0].Ua),a.wh(null,1/this.b.G,1/this.b.F,0,0,1,1,this.scale,this.k,0,0,this.b.G/2,this.b.F/2,this.b.lb.C,this.Ja[d]),a.Al(this.da[0].Ua)&&(this.b.Y=!0)):a.De(0),this.b.rc||a.$f(this.b.width,this.b.height),a.ad(null),a.xt(!1),a.Zf(1),
a.yc(this.b.Sa),a.tt(),a.vd(),a.Ad(),d=this.b.width/2,e=this.b.height/2,a.Bl(-d,e,d,e,d,-e,-d,-e),a.yc(null),a.xt(!0)):this.El(a,null,null,null))};p.prototype.Kg=function(){return 0<this.da.length||this.b.ig||!this.b.rc||this.b.Pe?this.b.Sa:null};p.prototype.an=function(){var a=this.R[0].kc(),d,e,f;d=1;for(e=this.R.length;d<e;d++)f=this.R[d],(0!==f.$b||0!==f.ac)&&f.kc()<a&&(a=f.kc());return a};p.prototype.oo=function(a){if(!this.Oo){var d=1/this.an()*this.b.G/2;a>this.width-d&&(a=this.width-d);a<
d&&(a=d)}this.scrollX!==a&&(this.scrollX=a,this.b.Y=!0)};p.prototype.po=function(a){if(!this.Oo){var d=1/this.an()*this.b.F/2;a>this.height-d&&(a=this.height-d);a<d&&(a=d)}this.scrollY!==a&&(this.scrollY=a,this.b.Y=!0)};p.prototype.uq=function(){this.oo(this.scrollX);this.po(this.scrollY)};p.prototype.El=function(a,d,e,f){var c=e?e.da:d?d.da:this.da,k=1,h=0,b=0,g=0,n=this.b.G,r=this.b.F;e?(k=e.n.kc(),h=e.n.Ma(),b=e.n.xa,g=e.n.ya,n=e.n.Ha,r=e.n.Ga):d&&(k=d.kc(),h=d.Ma(),b=d.xa,g=d.ya,n=d.Ha,r=d.Ga);
var t=this.b.qk,m,y,q,l,p=0,x=1,P,E=this.b.G,A=this.b.F,w=E/2,z=A/2,v=d?d.ze:this.ze,L=d?d.Dl:this.Dl,J=0,O=0,H=0,G=0,K=E,pa=E,N=A,ta=A,la=q=0;l=e?e.n.Ma():0;if(e){m=0;for(y=c.length;m<y;m++)q+=a.Zu(c[m].Ua),la+=a.$u(c[m].Ua);G=e.Ba;J=d.Ea(G.left,G.top,!0,!0);H=d.Ea(G.left,G.top,!1,!0);K=d.Ea(G.right,G.bottom,!0,!0);N=d.Ea(G.right,G.bottom,!1,!0);0!==l&&(m=d.Ea(G.right,G.top,!0,!0),y=d.Ea(G.right,G.top,!1,!0),O=d.Ea(G.left,G.bottom,!0,!0),G=d.Ea(G.left,G.bottom,!1,!0),l=Math.min(J,K,m,O),K=Math.max(J,
K,m,O),J=l,l=Math.min(H,N,y,G),N=Math.max(H,N,y,G),H=l);J-=q;H-=la;K+=q;N+=la;L.left=J/E;L.top=1-H/A;L.right=K/E;L.bottom=1-N/A;O=J=Q(J);G=H=Q(H);pa=K=sa(K);ta=N=sa(N);O-=q;G-=la;pa+=q;ta+=la;0>J&&(J=0);0>H&&(H=0);K>E&&(K=E);N>A&&(N=A);0>O&&(O=0);0>G&&(G=0);pa>E&&(pa=E);ta>A&&(ta=A);v.left=J/E;v.top=1-H/A;v.right=K/E;v.bottom=1-N/A}else v.left=L.left=0,v.top=L.top=0,v.right=L.right=1,v.bottom=L.bottom=1;la=e&&(a.ij(c[0].Ua)||0!==q||0!==la||1!==e.opacity||e.type.wa.Gn)||d&&!e&&1!==d.opacity;a.tt();
if(la){t[p]||(t[p]=a.Ec(E,A,this.b.W));if(t[p].ug!==E||t[p].tg!==A)a.deleteTexture(t[p]),t[p]=a.Ec(E,A,this.b.W);a.De(0);a.ad(t[p]);P=ta-G;a.clearRect(O,A-G-P,pa-O,P);e?e.jc(a):(a.yc(this.b.Za),a.Zf(d.opacity),a.vd(),a.translate(-w,-z),a.Ad(),a.Ud(J,N,K,N,K,H,J,H,v));L.left=L.top=0;L.right=L.bottom=1;e&&(l=v.top,v.top=v.bottom,v.bottom=l);p=1;x=0}a.Zf(1);q=c.length-1;var Ga=a.ho(c[q].Ua)||!d&&!e&&!this.b.rc,ha=0;m=0;for(y=c.length;m<y;m++){t[p]||(t[p]=a.Ec(E,A,this.b.W));if(t[p].ug!==E||t[p].tg!==
A)a.deleteTexture(t[p]),t[p]=a.Ec(E,A,this.b.W);a.De(c[m].Ua);ha=c[m].index;a.Al(c[m].Ua)&&(this.b.Y=!0);0!=m||la?(a.wh(f,1/E,1/A,L.left,L.top,L.right,L.bottom,k,h,b,g,(b+n)/2,(g+r)/2,this.b.lb.C,e?e.Ja[ha]:d?d.Ja[ha]:this.Ja[ha]),a.yc(null),m!==q||Ga?(a.ad(t[p]),P=ta-G,l=A-G-P,a.clearRect(O,l,pa-O,P)):(e?a.Yf(e.Ib,e.Fb):d&&a.Yf(d.Ib,d.Fb),a.ad(f)),a.yc(t[x]),a.vd(),a.translate(-w,-z),a.Ad(),a.Ud(J,N,K,N,K,H,J,H,v),m!==q||Ga||a.yc(null)):(a.ad(t[p]),P=ta-G,l=A-G-P,a.clearRect(O,l,pa-O,P),e?(a.wh(f,
1/e.width,1/e.height,L.left,L.top,L.right,L.bottom,k,h,b,g,(b+n)/2,(g+r)/2,this.b.lb.C,e.Ja[ha]),e.jc(a)):(a.wh(f,1/E,1/A,0,0,1,1,k,h,b,g,(b+n)/2,(g+r)/2,this.b.lb.C,d?d.Ja[ha]:this.Ja[ha]),a.yc(d?this.b.Za:this.b.Sa),a.vd(),a.translate(-w,-z),a.Ad(),a.Ud(J,N,K,N,K,H,J,H,v)),L.left=L.top=0,L.right=L.bottom=1,e&&!Ga&&(l=N,N=H,H=l));p=0===p?1:0;x=0===p?1:0}Ga&&(a.De(0),e?a.Yf(e.Ib,e.Fb):d?a.Yf(d.Ib,d.Fb):this.b.rc||(a.$f(this.b.width,this.b.height),w=this.b.width/2,z=this.b.height/2,H=J=0,K=this.b.width,
N=this.b.height),a.ad(f),a.yc(t[x]),a.vd(),a.translate(-w,-z),a.Ad(),e&&1===c.length&&!la?a.Ud(J,H,K,H,K,N,J,N,v):a.Ud(J,N,K,N,K,H,J,H,v),a.yc(null))};p.prototype.ri=function(a){var d,e;d=0;for(e=this.R.length;d<e;d++)if(this.R[d].Z===a)return this.R[d];return null};p.prototype.wb=function(){var a,d,e,f={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.k,w:this.width,h:this.height,fv:this.Af,persist:this.ve,fx:[],layers:{}};a=0;for(d=this.N.length;a<d;a++)e=this.N[a],f.fx.push({name:e.name,active:e.pc,
params:this.Ja[e.index]});a=0;for(d=this.R.length;a<d;a++)e=this.R[a],f.layers[e.Z.toString()]=e.wb();return f};p.prototype.Tb=function(a){var d,e,f,c;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.k=a.a;this.width=a.w;this.height=a.h;this.ve=a.persist;"undefined"!==typeof a.fv&&(this.Af=a.fv);var k=a.fx;d=0;for(e=k.length;d<e;d++)if(f=this.tk(k[d].name))f.pc=k[d].active,this.Ja[f.index]=k[d].params;this.ed();d=a.layers;for(c in d)d.hasOwnProperty(c)&&(a=this.ri(parseInt(c,10)))&&a.Tb(d[c])};
Eb=p;c.prototype.ed=function(){V(this.da);this.Wd=!0;var a,d,e;a=0;for(d=this.N.length;a<d;a++)e=this.N[a],e.pc&&(this.da.push(e),e.xe||(this.Wd=!1))};c.prototype.tk=function(a){var d,e,f;d=0;for(e=this.N.length;d<e;d++)if(f=this.N[d],f.name===a)return f;return null};c.prototype.Dq=function(){var a,d,e,f,c,k;d=a=0;for(e=this.tc.length;a<e;a++){f=this.tc[a];c=this.b.u[f[1]];k=this.b.fm(c);c=!0;if(!k||this.$a.Af)f=this.b.ge(f,this,!0),x.push(f),f.type.global&&(c=!1,this.yg.push(f.uid));c&&(this.tc[d]=
this.tc[a],d++)}this.tc.length=d;this.b.yb();!this.b.D&&this.N.length&&(this.zb=this.Qq);this.wg=hb(this.zb);this.b.Hc&&ib(this,this.zb,this.b.Hc);this.$c=!0};c.prototype.Wf=function(a,d){var e=Ca(this.i,a);0>e||(d&&this.zc&&a.cc&&a.cc.right>=a.cc.left&&(a.qa(),this.ub.update(a,a.cc,null),a.cc.set(0,0,-1,-1)),e===this.i.length-1?this.i.pop():(ya(this.i,e),this.xh(e)),this.$c=!0)};c.prototype.rg=function(a,d){a.fd=this.i.length;this.i.push(a);d&&this.zc&&a.cc&&a.V();this.$c=!0};c.prototype.Xs=function(a){this.i.unshift(a);
this.xh(0)};c.prototype.Fs=function(a,d,e){var f=a.md();d=d.md();ya(this.i,f);f<d&&d--;e&&d++;d===this.i.length?this.i.push(a):this.i.splice(d,0,a);this.xh(f<d?f:d)};c.prototype.xh=function(a){-1===this.$d?this.$d=a:a<this.$d&&(this.$d=a);this.$c=this.of=!0};c.prototype.im=function(){if(this.of){-1===this.$d&&(this.$d=0);var a,d,e;if(this.zc)for(a=this.$d,d=this.i.length;a<d;++a)e=this.i[a],e.fd=a,this.ub.Cs(e.cc);else for(a=this.$d,d=this.i.length;a<d;++a)this.i[a].fd=a;this.of=!1;this.$d=-1}};c.prototype.kc=
function(a){return this.Or()*(this.b.rc||a?this.b.sg:1)};c.prototype.Or=function(){return(this.scale*this.$a.scale-1)*this.Lb+1};c.prototype.Ma=function(){return this.Hd?0:Ja(this.$a.k+this.k)};var y=[],k=[],h=[];c.prototype.xk=function(){this.im();this.ub.lj(this.xa,this.ya,this.Ha,this.Ga,h);if(!h.length)return q();if(1===h.length){var a=q();Aa(a,h[0]);V(h);return a}for(var d=!0;1<h.length;){for(var a=h,e=void 0,f=void 0,c=void 0,t=void 0,u=void 0,e=0,f=a.length;e<f-1;e+=2){var c=a[e],t=a[e+1],
u=q(),b=c,g=t,n=u,r=0,y=0,l=0,p=b.length,x=g.length,I=void 0,U=void 0;for(n.length=p+x;r<p&&y<x;++l)I=b[r],U=g[y],I.fd<U.fd?(n[l]=I,++r):(n[l]=U,++y);for(;r<p;++r,++l)n[l]=b[r];for(;y<x;++y,++l)n[l]=g[y];d||(m(c),m(t));k.push(u)}1===f%2&&(d?(c=q(),Aa(c,a[f-1]),k.push(c)):k.push(a[f-1]));Aa(a,k);V(k);d=!1}a=h[0];V(h);return a};c.prototype.kd=function(a){this.ud=this.li||1!==this.opacity||0!==this.zb;var d=this.b.canvas,c=a,f=!1;this.ud&&(this.b.Ji||(this.b.Ji=document.createElement("canvas"),d=this.b.Ji,
d.width=this.b.G,d.height=this.b.F,this.b.zn=d.getContext("2d"),f=!0),d=this.b.Ji,c=this.b.zn,d.width!==this.b.G&&(d.width=this.b.G,f=!0),d.height!==this.b.F&&(d.height=this.b.F,f=!0),f&&(c.webkitImageSmoothingEnabled=this.b.W,c.mozImageSmoothingEnabled=this.b.W,c.msImageSmoothingEnabled=this.b.W,c.imageSmoothingEnabled=this.b.W),this.dd&&c.clearRect(0,0,this.b.G,this.b.F));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.dd||(c.fillStyle="rgb("+this.Oc[0]+","+this.Oc[1]+","+this.Oc[2]+
")",c.fillRect(0,0,this.b.G,this.b.F));c.save();this.Hd=!0;var f=this.La(0,0,!0,!0),k=this.La(0,0,!1,!0);this.Hd=!1;this.b.Xc&&(f=Math.round(f),k=Math.round(k));this.nj(f,k,c);var h=this.kc();c.scale(h,h);c.translate(-f,-k);this.zc?(this.ob.left=this.ub.Vb(this.xa),this.ob.top=this.ub.Wb(this.ya),this.ob.right=this.ub.Vb(this.Ha),this.ob.bottom=this.ub.Wb(this.Ga),this.$c||!this.ob.Bg(this.Of)?(m(this.Qd),f=this.xk(),this.$c=!1,this.Of.xg(this.ob)):f=this.Qd):f=this.i;for(var u,b=null,k=0,h=f.length;k<
h;++k)u=f[k],u!==b&&(this.Lq(u,c),b=u);this.zc&&(this.Qd=f);c.restore();this.ud&&(a.globalCompositeOperation=this.wg,a.globalAlpha=this.opacity,a.drawImage(d,0,0))};c.prototype.Lq=function(a,d){if(a.visible&&0!==a.width&&0!==a.height){a.qa();var c=a.Ba;c.right<this.xa||c.bottom<this.ya||c.left>this.Ha||c.top>this.Ga||(d.globalCompositeOperation=a.wg,a.kd(d))}};c.prototype.Gj=function(){this.Hd=!0;var a=this.La(0,0,!0,!0),d=this.La(0,0,!1,!0);this.Hd=!1;this.b.Xc&&(a=Math.round(a),d=Math.round(d));
this.nj(a,d,null)};c.prototype.nj=function(a,d,c){var f=this.kc();this.xa=a;this.ya=d;this.Ha=a+1/f*this.b.G;this.Ga=d+1/f*this.b.F;a=this.Ma();0!==a&&(c&&(c.translate(this.b.G/2,this.b.F/2),c.rotate(-a),c.translate(this.b.G/-2,this.b.F/-2)),this.Yd.set(this.xa,this.ya,this.Ha,this.Ga),this.Yd.offset((this.xa+this.Ha)/-2,(this.ya+this.Ga)/-2),this.Io.to(this.Yd,a),this.Io.Im(this.Yd),this.Yd.offset((this.xa+this.Ha)/2,(this.ya+this.Ga)/2),this.xa=this.Yd.left,this.ya=this.Yd.top,this.Ha=this.Yd.right,
this.Ga=this.Yd.bottom)};c.prototype.Me=function(a){if(this.ud=this.li){this.b.Za||(this.b.Za=a.Ec(this.b.G,this.b.F,this.b.W));if(this.b.Za.ug!==this.b.G||this.b.Za.tg!==this.b.F)a.deleteTexture(this.b.Za),this.b.Za=a.Ec(this.b.G,this.b.F,this.b.W);a.ad(this.b.Za)}this.Hd=!0;var d=this.La(0,0,!0,!0),c=this.La(0,0,!1,!0);this.Hd=!1;this.b.Xc&&(d=Math.round(d),c=Math.round(c));this.nj(d,c,null);d=this.kc();a.vd();a.scale(d,d);a.Hl(-this.Ma());a.translate((this.xa+this.Ha)/-2,(this.ya+this.Ga)/-2);
a.Ad();this.zc?(this.ob.left=this.ub.Vb(this.xa),this.ob.top=this.ub.Wb(this.ya),this.ob.right=this.ub.Vb(this.Ha),this.ob.bottom=this.ub.Wb(this.Ga),this.$c||!this.ob.Bg(this.Of)?(m(this.Qd),d=this.xk(),this.$c=!1,this.Of.xg(this.ob)):d=this.Qd):d=this.i;for(var f,k=null,c=d.length-1;0<=c;--c)f=d[c],f!==k&&(this.Nq(d[c],a),k=f);this.zc&&(this.Qd=d);this.dd||(this.ck=this.b.Oe++,a.Nl(this.ck),a.ut(1,1,1,1),a.Dr(),a.mv())};c.prototype.jc=function(a){var d=0,c=0;if(this.ud=this.li||1!==this.opacity||
0<this.da.length||0!==this.zb){this.b.Za||(this.b.Za=a.Ec(this.b.G,this.b.F,this.b.W));if(this.b.Za.ug!==this.b.G||this.b.Za.tg!==this.b.F)a.deleteTexture(this.b.Za),this.b.Za=a.Ec(this.b.G,this.b.F,this.b.W);a.ad(this.b.Za);this.dd&&a.clear(0,0,0,0)}this.dd||(this.b.Pe?(a.Nl(this.ck),a.ut(this.Oc[0]/255,this.Oc[1]/255,this.Oc[2]/255,1),a.Dr(),a.ov()):a.clear(this.Oc[0]/255,this.Oc[1]/255,this.Oc[2]/255,1));this.Hd=!0;var f=this.La(0,0,!0,!0),d=this.La(0,0,!1,!0);this.Hd=!1;this.b.Xc&&(f=Math.round(f),
d=Math.round(d));this.nj(f,d,null);f=this.kc();a.vd();a.scale(f,f);a.Hl(-this.Ma());a.translate((this.xa+this.Ha)/-2,(this.ya+this.Ga)/-2);a.Ad();this.zc?(this.ob.left=this.ub.Vb(this.xa),this.ob.top=this.ub.Wb(this.ya),this.ob.right=this.ub.Vb(this.Ha),this.ob.bottom=this.ub.Wb(this.Ga),this.$c||!this.ob.Bg(this.Of)?(m(this.Qd),d=this.xk(),this.$c=!1,this.Of.xg(this.ob)):d=this.Qd):d=this.i;var k,h,u=null,c=0;for(k=d.length;c<k;++c)h=d[c],h!==u&&(this.Mq(d[c],a),u=h);this.zc&&(this.Qd=d);this.ud&&
(d=this.da.length?this.da[0].Ua:0,c=this.da.length?this.da[0].index:0,0===this.da.length||1===this.da.length&&!a.ho(d)&&1===this.opacity?(1===this.da.length?(a.De(d),a.wh(this.$a.Kg(),1/this.b.G,1/this.b.F,0,0,1,1,f,this.Ma(),this.xa,this.ya,(this.xa+this.Ha)/2,(this.ya+this.Ga)/2,this.b.lb.C,this.Ja[c]),a.Al(d)&&(this.b.Y=!0)):a.De(0),a.ad(this.$a.Kg()),a.Zf(this.opacity),a.yc(this.b.Za),a.Yf(this.Ib,this.Fb),a.vd(),a.Ad(),f=this.b.G/2,d=this.b.F/2,a.Bl(-f,d,f,d,f,-d,-f,-d),a.yc(null)):this.$a.El(a,
this,null,this.$a.Kg()))};c.prototype.Mq=function(a,d){if(a.visible&&0!==a.width&&0!==a.height){a.qa();var c=a.Ba;c.right<this.xa||c.bottom<this.ya||c.left>this.Ha||c.top>this.Ga||(d.Nl(a.Oe),a.Uo?this.Oq(a,d):(d.De(0),d.Yf(a.Ib,a.Fb),a.jc(d)))}};c.prototype.Nq=function(a,d){if(a.visible&&0!==a.width&&0!==a.height){a.qa();var c=a.Ba;c.right<this.xa||c.bottom<this.ya||c.left>this.Ha||c.top>this.Ga||(a.Oe=this.b.Oe++,0===a.zb&&1===a.opacity&&a.Wd&&a.Me&&(d.Nl(a.Oe),a.Me(d)))}};c.prototype.Oq=function(a,
d){var c=a.da[0].Ua,f=a.da[0].index,k=this.kc();if(1!==a.da.length||d.ho(c)||d.kv(c)||(a.k||a.n.Ma())&&d.ij(c)||1!==a.opacity||a.type.wa.Gn)this.$a.El(d,this,a,this.ud?this.b.Za:this.$a.Kg()),d.vd(),d.scale(k,k),d.Hl(-this.Ma()),d.translate((this.xa+this.Ha)/-2,(this.ya+this.Ga)/-2),d.Ad();else{d.De(c);d.Yf(a.Ib,a.Fb);d.Al(c)&&(this.b.Y=!0);var h=0,u=0,b=0,g=0;d.ij(c)&&(c=a.Ba,h=this.Ea(c.left,c.top,!0,!0),u=this.Ea(c.left,c.top,!1,!0),b=this.Ea(c.right,c.bottom,!0,!0),c=this.Ea(c.right,c.bottom,
!1,!0),h=h/windowWidth,u=1-u/windowHeight,b=b/windowWidth,g=1-c/windowHeight);d.wh(this.ud?this.b.Za:this.$a.Kg(),1/a.width,1/a.height,h,u,b,g,k,this.Ma(),this.xa,this.ya,(this.xa+this.Ha)/2,(this.ya+this.Ga)/2,this.b.lb.C,a.Ja[f]);a.jc(d)}};c.prototype.La=function(a,d,c,f){var k=this.b.devicePixelRatio;this.b.oe&&(a*=k,d*=k);var k=this.b.$n,h=this.b.ao,k=(this.$a.scrollX-k)*this.$b+k,h=(this.$a.scrollY-h)*this.ac+h,u=k,b=h,g=1/this.kc(!f);f?(u-=this.b.G*g/2,b-=this.b.F*g/2):(u-=this.b.width*g/2,
b-=this.b.height*g/2);u+=a*g;b+=d*g;d=this.Ma();0!==d&&(u-=k,b-=h,a=Math.cos(d),d=Math.sin(d),f=u*a-b*d,b=b*a+u*d,u=f+k,b+=h);return c?u:b};c.prototype.Ea=function(a,d,c,f){var k=this.b.$n,h=this.b.ao,u=(this.$a.scrollX-k)*this.$b+k,b=(this.$a.scrollY-h)*this.ac+h,h=u,k=b,g=this.Ma();if(0!==g){a-=u;d-=b;var n=Math.cos(-g),g=Math.sin(-g),r=a*n-d*g;d=d*n+a*g;a=r+u;d+=b}u=1/this.kc(!f);f?(h-=this.b.G*u/2,k-=this.b.F*u/2):(h-=this.b.width*u/2,k-=this.b.height*u/2);h=(a-h)/u;k=(d-k)/u;a=this.b.devicePixelRatio;
this.b.oe&&!f&&(h/=a,k/=a);return c?h:k};c.prototype.wb=function(){var a,d,c,f={s:this.scale,a:this.k,vl:this.xa,vt:this.ya,vr:this.Ha,vb:this.Ga,v:this.visible,bc:this.Oc,t:this.dd,px:this.$b,py:this.ac,o:this.opacity,zr:this.Lb,fx:[],cg:this.yg,instances:[]};a=0;for(d=this.N.length;a<d;a++)c=this.N[a],f.fx.push({name:c.name,active:c.pc,params:this.Ja[c.index]});return f};c.prototype.Tb=function(a){var d,c,f;this.scale=a.s;this.k=a.a;this.xa=a.vl;this.ya=a.vt;this.Ha=a.vr;this.Ga=a.vb;this.visible=
a.v;this.Oc=a.bc;this.dd=a.t;this.$b=a.px;this.ac=a.py;this.opacity=a.o;this.Lb=a.zr;this.yg=a.cg||[];Aa(this.tc,this.Ao);var k=new fa;d=0;for(f=this.yg.length;d<f;++d)k.add(this.yg[d]);c=d=0;for(f=this.tc.length;d<f;++d)k.contains(this.tc[d][2])||(this.tc[c]=this.tc[d],++c);za(this.tc,c);c=a.fx;d=0;for(f=c.length;d<f;d++)if(a=this.tk(c[d].name))a.pc=c[d].active,this.Ja[a.index]=c[d].params;this.ed();this.i.sort(l);this.of=!0};Sb=c})();
(function(){function p(b,a){var d,f=b.length;switch(f){case 0:return!0;case 1:return b[0]===a[0];case 2:return b[0]===a[0]&&b[1]===a[1];default:for(d=0;d<f;d++)if(b[d]!==a[d])return!1;return!0}}function l(b,a){return b.index-a.index}function c(b){var a,d,f,c;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>=C.length&&(C.length=b.length+1);C[b.length]||(C[b.length]=[]);c=C[b.length];a=0;for(d=c.length;a<d;a++)if(f=c[a],p(b,f))return f;c.push(b);return b}
function q(b,a){this.b=b;this.Lo={};this.Rm={};this.Ek=!1;this.jn=new fa;this.gk=[];this.Qj=[];this.name=a[0];var d=a[1];this.je=[];var f,c;f=0;for(c=d.length;f<c;f++)this.kn(d[f],null,this.je)}function m(b){this.type=b;this.i=[];this.ea=[];this.U=!0}function x(b,a,d){this.sheet=b;this.parent=a;this.b=b.b;this.la=[];this.Ae=[];this.gn=this.zj=this.am=this.Ik=this.group=this.Sl=!1;this.Wa=[];this.Bc=[];this.Lc=[];this.Mg="";this.Df=this.Ik=this.group=!1;this.Zh=null;d[1]&&(this.Mg=d[1][1].toLowerCase(),
this.group=!0,this.Ik=!!d[1][0],this.Zh=[],this.Df=this.Ik,this.b.uf.push(this),this.b.Ng[this.Mg]=this);this.Vc=d[2];this.Z=d[4];this.group||(this.b.Hm[this.Z.toString()]=this);var f=d[5];b=0;for(a=f.length;b<a;b++){var c=new Tb(this,f[b]);c.index=b;this.Wa.push(c);this.Em(c.type)}f=d[6];b=0;for(a=f.length;b<a;b++)c=new Ub(this,f[b]),c.index=b,this.Bc.push(c);if(8===d.length)for(d=d[7],b=0,a=d.length;b<a;b++)this.sheet.kn(d[b],this,this.Lc);this.Di=!1;this.Wa.length&&(this.Di=null==this.Wa[0].type&&
this.Wa[0].qb==X.prototype.q.gp)}function t(b,a){var d,f,c;if(b&&(-1===a.indexOf(b)&&a.push(b),b.Gb))for(d=0,f=b.hc.length;d<f;d++)c=b.hc[d],b!==c&&-1===a.indexOf(c)&&a.push(c)}function y(b,a){this.qc=b;this.sheet=b.sheet;this.b=b.b;this.ta=[];this.Ka=[];this.I={};this.index=-1;this.pg=!1;this.qb=this.b.ae(a[1]);this.trigger=0<a[3];this.Qm=2===a[3];this.od=a[4];this.Lk=a[5];this.zs=a[6];this.Z=a[7];this.b.xf[this.Z.toString()]=this;-1===a[0]?(this.type=null,this.Ta=this.Jl,this.Je=null,this.Pc=-1):
(this.type=this.b.u[a[0]],this.Ta=this.zs?this.nt:this.Il,a[2]?(this.Je=this.type.pi(a[2]),this.Pc=this.type.rk(a[2])):(this.Je=null,this.Pc=-1),this.qc.parent&&this.qc.parent.rj());this.Qm&&(this.Ta=this.ot);if(10===a.length){var d,f,c=a[9];d=0;for(f=c.length;d<f;d++){var k=new Vb(this,c[d]);this.ta.push(k)}this.Ka.length=c.length}}function k(b,a){this.qc=b;this.sheet=b.sheet;this.b=b.b;this.ta=[];this.Ka=[];this.I={};this.index=-1;this.pg=!1;this.qb=this.b.ae(a[1]);-1===a[0]?(this.type=null,this.Ta=
this.Jl,this.Je=null,this.Pc=-1):(this.type=this.b.u[a[0]],this.Ta=this.Il,a[2]?(this.Je=this.type.pi(a[2]),this.Pc=this.type.rk(a[2])):(this.Je=null,this.Pc=-1));this.Z=a[3];this.b.tf[this.Z.toString()]=this;if(6===a.length){var d,f,c=a[5];d=0;for(f=c.length;d<f;d++){var k=new Vb(this,c[d]);this.ta.push(k)}this.Ka.length=c.length}}function h(){u++;D.length===u&&D.push(new Wb);return D[u]}function a(b,a){this.Jc=b;this.qc=b.qc;this.sheet=b.sheet;this.b=b.b;this.type=a[0];this.ld=null;this.Xd=0;this.get=
null;this.Mm=0;this.$a=null;this.key=0;this.object=null;this.index=0;this.Hh=this.kf=this.Hh=this.kf=this.Sm=this.Re=this.Ih=null;this.Mc=!1;var d,f,c;switch(a[0]){case 0:case 7:this.ld=new Xb(this,a[1]);this.Xd=0;this.get=this.Wr;break;case 1:this.ld=new Xb(this,a[1]);this.Xd=0;this.get=this.Xr;break;case 5:this.ld=new Xb(this,a[1]);this.Xd=0;this.get=this.as;break;case 3:case 8:this.Mm=a[1];this.get=this.Ur;break;case 6:this.$a=this.b.Xk[a[1]];this.get=this.bs;break;case 9:this.key=a[1];this.get=
this.$r;break;case 4:this.object=this.b.u[a[1]];this.get=this.cs;this.qc.Em(this.object);this.Jc instanceof Ub?this.qc.rj():this.qc.parent&&this.qc.parent.rj();break;case 10:this.index=a[1];b.type.K?(this.get=this.Yr,this.Mc=!0):this.get=this.Zr;break;case 11:this.Ih=a[1];this.Re=null;this.get=this.Vr;break;case 2:case 12:this.Sm=a[1];this.get=this.Tr;break;case 13:for(this.get=this.ds,this.kf=[],this.Hh=[],d=1,f=a.length;d<f;d++)c=new Vb(this.Jc,a[d]),this.kf.push(c),this.Hh.push(0)}}function d(b,
a,d){this.sheet=b;this.parent=a;this.b=b.b;this.la=[];this.name=d[1];this.Ij=d[2];this.Hk=d[3];this.ah=!!d[4];this.Ci=!!d[5];this.Z=d[6];this.b.kg[this.Z.toString()]=this;this.data=this.Hk;this.parent?(this.cf=this.ah||this.Ci?-1:this.b.Ft++,this.b.pq.push(this)):(this.cf=-1,this.b.oq.push(this))}function e(b,a,d){this.sheet=b;this.parent=a;this.b=b.b;this.la=[];this.Pg=null;this.ks=d[1];this.pc=!0}function f(){this.Co=[];this.reset(null)}var C=[];q.prototype.toString=function(){return this.name};
q.prototype.kn=function(b,a,d){switch(b[0]){case 0:b=new Yb(this,a,b);if(b.Vc)for(d.push(b),d=0,a=b.Wa.length;d<a;d++)b.Wa[d].trigger&&this.ln(b,d);else b.wn()?this.ln(b,0):d.push(b);break;case 1:b=new Pb(this,a,b);d.push(b);break;case 2:b=new Zb(this,a,b),d.push(b)}};q.prototype.Pa=function(){var b,a;b=0;for(a=this.je.length;b<a;b++)this.je[b].Pa(b<a-1&&this.je[b+1].Di)};q.prototype.hm=function(){V(this.gk);V(this.Qj);this.Dm(this);V(this.Qj)};q.prototype.Dm=function(b){var a,d,f,c,k=b.gk,e=b.Qj,
h=this.jn.Fe();a=0;for(d=h.length;a<d;++a)f=h[a],c=f.Pg,!f.pc||b===c||-1<e.indexOf(c)||(e.push(c),c.Dm(b),k.push(c))};q.prototype.Ta=function(b){this.b.nv||(this.Ek=!0,b||(this.b.Qk=!0));var a,d;a=0;for(d=this.je.length;a<d;a++){var f=this.je[a];f.Ta();this.b.bk(f.la);this.b.me&&this.b.yb()}b||(this.b.Qk=!1)};q.prototype.ln=function(b,a){b.Vc||this.b.Dj.push(b);var d,f,c=b.Wa[a],k;c.type?k=c.type.name:k="system";var e=(d=c.Qm)?this.Rm:this.Lo;e[k]||(e[k]=[]);k=e[k];e=c.qb;if(d){if(c.ta.length&&(c=
c.ta[0],1===c.type&&2===c.ld.type)){c=c.ld.value.toLowerCase();d=0;for(f=k.length;d<f;d++)if(k[d].method==e){d=k[d].Cg;d[c]?d[c].push([b,a]):d[c]=[[b,a]];return}d={};d[c]=[[b,a]];k.push({method:e,Cg:d})}}else{d=0;for(f=k.length;d<f;d++)if(k[d].method==e){k[d].Cg.push([b,a]);return}Y&&e===Y.prototype.q.rf?k.unshift({method:e,Cg:[[b,a]]}):k.push({method:e,Cg:[[b,a]]})}};Fb=q;m.prototype.Dk=function(){return this.U?this.type.i.length:this.i.length};m.prototype.Zb=function(){return this.U?this.type.i:
this.i};m.prototype.oh=function(b){b&&(b.b.jb().ib.Vc?(this.U&&(V(this.i),Aa(this.ea,b.type.i),this.U=!1),b=this.ea.indexOf(b),-1!==b&&(this.i.push(this.ea[b]),this.ea.splice(b,1))):(this.U=!1,V(this.i),this.i[0]=b))};nb=m;window._c2hh_="98A61151D0BDC6368FF202EBF98F4189F41AE9C6";x.prototype.Pa=function(b){var a,d=this.parent;if(this.group)for(this.zj=!0;d;){if(!d.group){this.zj=!1;break}d=d.parent}this.am=!this.wn()&&(!this.parent||this.parent.group&&this.parent.zj);this.gn=!!b;this.Ae=this.la.slice(0);
for(d=this.parent;d;){b=0;for(a=d.la.length;b<a;b++)this.mq(d.la[b]);d=d.parent}this.la=c(this.la);this.Ae=c(this.Ae);b=0;for(a=this.Wa.length;b<a;b++)this.Wa[b].Pa();b=0;for(a=this.Bc.length;b<a;b++)this.Bc[b].Pa();b=0;for(a=this.Lc.length;b<a;b++)this.Lc[b].Pa(b<a-1&&this.Lc[b+1].Di)};x.prototype.At=function(b){if(this.Df!==!!b){this.Df=!!b;var a;b=0;for(a=this.Zh.length;b<a;++b)this.Zh[b].Po();0<a&&this.b.ra.Qe&&this.b.ra.Qe.hm()}};x.prototype.Em=function(b){t(b,this.la)};x.prototype.mq=function(b){t(b,
this.Ae)};x.prototype.rj=function(){this.Sl=!0;this.parent&&this.parent.rj()};x.prototype.wn=function(){return this.Wa.length?this.Wa[0].trigger:!1};x.prototype.Ta=function(){var b,a,d=!1,c=this.b,f=this.b.jb();f.ib=this;var k=this.Wa;this.Di||(f.ik=!1);if(this.Vc){0===k.length&&(d=!0);f.Va=0;for(b=k.length;f.Va<b;f.Va++)a=k[f.Va],a.trigger||(a=a.Ta())&&(d=!0);(f.Ye=d)&&this.oj()}else{f.Va=0;for(b=k.length;f.Va<b;f.Va++)if(a=k[f.Va].Ta(),!a){f.Ye=!1;this.am&&c.me&&c.yb();return}f.Ye=!0;this.oj()}this.Sq(f)};
x.prototype.Sq=function(b){b.Ye&&this.gn&&(b.ik=!0);this.am&&this.b.me&&this.b.yb()};x.prototype.kt=function(b){this.b.jb().ib=this;this.Wa[b].Ta()&&(this.oj(),this.b.jb().Ye=!0)};x.prototype.oj=function(){var b=this.b.jb(),a;b.Xb=0;for(a=this.Bc.length;b.Xb<a;b.Xb++)if(this.Bc[b.Xb].Ta())return;this.no()};x.prototype.it=function(){var b=this.b.jb(),a;for(a=this.Bc.length;b.Xb<a;b.Xb++)if(this.Bc[b.Xb].Ta())return;this.no()};x.prototype.no=function(){if(this.Lc.length){var b,a,d,f,c=this.Lc.length-
1;this.b.jj(this);if(this.Sl)for(b=0,a=this.Lc.length;b<a;b++)d=this.Lc[b],(f=!this.zj||!this.group&&b<c)&&this.b.rh(d.la),d.Ta(),f?this.b.we(d.la):this.b.bk(d.la);else for(b=0,a=this.Lc.length;b<a;b++)this.Lc[b].Ta();this.b.fj()}};x.prototype.mt=function(){var b=this.b.jb();b.ib=this;var a=!1,d;b.Va=0;for(d=this.Wa.length;b.Va<d;b.Va++)if(this.Wa[b.Va].Ta())a=!0;else if(!this.Vc)return!1;return this.Vc?a:!0};x.prototype.Gl=function(){this.b.Se++;var b=this.b.jb().Va,a=this.b.jj(this);if(!this.Vc)for(a.Va=
b+1,b=this.Wa.length;a.Va<b;a.Va++)if(!this.Wa[a.Va].Ta()){this.b.fj();return}this.oj();this.b.fj()};x.prototype.rs=function(b){var a=b.index;if(0===a)return!0;for(--a;0<=a;--a)if(this.Wa[a].type===b.type)return!1;return!0};Yb=x;y.prototype.Pa=function(){var b,a,d;b=0;for(a=this.ta.length;b<a;b++)d=this.ta[b],d.Pa(),d.Mc&&(this.pg=!0)};y.prototype.ot=function(){return!0};y.prototype.Jl=function(){var b,a;b=0;for(a=this.ta.length;b<a;b++)this.Ka[b]=this.ta[b].get();return Wa(this.qb.apply(this.b.yd,
this.Ka),this.Lk)};y.prototype.nt=function(){var b,a;b=0;for(a=this.ta.length;b<a;b++)this.Ka[b]=this.ta[b].get();b=this.qb.apply(this.Je?this.Je:this.type,this.Ka);this.type.Cc();return b};y.prototype.Il=function(){var b,a,d,f,c,k,e,h,u=this.type,t=u.O(),m=this.qc.Vc&&!this.trigger;a=0;var y=u.Gb,l=u.K,q=u.Jd,p=this.Pc,C=-1<p,x=this.pg,D=this.ta,J=this.Ka,O=this.Lk,H=this.qb,G;if(x)for(a=0,c=D.length;a<c;++a)k=D[a],k.Mc||(J[a]=k.get(0));else for(a=0,c=D.length;a<c;++a)J[a]=D[a].get(0);if(t.U){V(t.i);
V(t.ea);G=u.i;b=0;for(f=G.length;b<f;++b){h=G[b];if(x)for(a=0,c=D.length;a<c;++a)k=D[a],k.Mc&&(J[a]=k.get(b));C?(a=0,l&&(a=h.type.zf[q]),a=H.apply(h.T[p+a],J)):a=H.apply(h,J);(e=Wa(a,O))?t.i.push(h):m&&t.ea.push(h)}u.finish&&u.finish(!0);t.U=!1;u.Cc();return t.Dk()}d=0;G=(e=m&&!this.qc.rs(this))?t.ea:t.i;var K=!1;b=0;for(f=G.length;b<f;++b){h=G[b];if(x)for(a=0,c=D.length;a<c;++a)k=D[a],k.Mc&&(J[a]=k.get(b));C?(a=0,l&&(a=h.type.zf[q]),a=H.apply(h.T[p+a],J)):a=H.apply(h,J);if(Wa(a,O))if(K=!0,e){if(t.i.push(h),
y)for(a=0,c=h.siblings.length;a<c;a++)k=h.siblings[a],k.type.O().i.push(k)}else{G[d]=h;if(y)for(a=0,c=h.siblings.length;a<c;a++)k=h.siblings[a],k.type.O().i[d]=k;d++}else if(e){G[d]=h;if(y)for(a=0,c=h.siblings.length;a<c;a++)k=h.siblings[a],k.type.O().ea[d]=k;d++}else if(m&&(t.ea.push(h),y))for(a=0,c=h.siblings.length;a<c;a++)k=h.siblings[a],k.type.O().ea.push(k)}za(G,d);if(y)for(l=u.hc,b=0,f=l.length;b<f;b++)h=l[b].O(),e?za(h.ea,d):za(h.i,d);d=K;if(e&&!K)for(b=0,f=t.i.length;b<f;b++){h=t.i[b];if(x)for(a=
0,c=D.length;a<c;a++)k=D[a],k.Mc&&(J[a]=k.get(b));a=C?H.apply(h.T[p],J):H.apply(h,J);if(Wa(a,O)){K=!0;break}}u.finish&&u.finish(d||m);return m?K:t.Dk()};Tb=y;k.prototype.Pa=function(){var b,a,d;b=0;for(a=this.ta.length;b<a;b++)d=this.ta[b],d.Pa(),d.Mc&&(this.pg=!0)};k.prototype.Jl=function(){var b=this.b,a,d,c=this.ta,f=this.Ka;a=0;for(d=c.length;a<d;++a)f[a]=c[a].get();return this.qb.apply(b.yd,f)};k.prototype.Il=function(){var b=this.type,a=this.Pc,d=b.Jd,c=this.pg,f=this.ta,k=this.Ka,e=this.qb,
h=b.O().Zb(),b=b.K,u=-1<a,t,m,y,l,q,p;if(c)for(m=0,l=f.length;m<l;++m)q=f[m],q.Mc||(k[m]=q.get(0));else for(m=0,l=f.length;m<l;++m)k[m]=f[m].get(0);t=0;for(y=h.length;t<y;++t){p=h[t];if(c)for(m=0,l=f.length;m<l;++m)q=f[m],q.Mc&&(k[m]=q.get(t));u?(m=0,b&&(m=p.type.zf[d]),e.apply(p.T[a+m],k)):e.apply(p,k)}return!1};Ub=k;var D=[],u=-1;a.prototype.Pa=function(){var b,a;if(11===this.type)this.Re=this.b.Zm(this.Ih,this.qc.parent);else if(13===this.type)for(b=0,a=this.kf.length;b<a;b++)this.kf[b].Pa();this.ld&&
this.ld.Pa()};a.prototype.Es=function(b){this.Mc||!b||b.wa.sj||(this.Mc=!0)};a.prototype.ro=function(){this.Mc=!0};a.prototype.Wr=function(b){this.Xd=b||0;b=h();this.ld.get(b);u--;return b.data};a.prototype.Xr=function(b){this.Xd=b||0;b=h();this.ld.get(b);u--;return M(b.data)?b.data:""};a.prototype.cs=function(){return this.object};a.prototype.Ur=function(){return this.Mm};a.prototype.as=function(b){this.Xd=b||0;b=h();this.ld.get(b);u--;return b.kb()?this.b.Md(b.data):this.b.Ig(b.data)};a.prototype.bs=
function(){return this.$a};a.prototype.$r=function(){return this.key};a.prototype.Zr=function(){return this.index};a.prototype.Yr=function(b){b=b||0;var a=this.Jc.type,d=null,d=a.O(),f=d.Zb();if(f.length)d=f[b%f.length].type;else if(d.ea.length)d=d.ea[b%d.ea.length].type;else if(a.i.length)d=a.i[b%a.i.length].type;else return 0;return this.index+d.ii[a.Jd]};a.prototype.Vr=function(){return this.Re};a.prototype.Tr=function(){return this.Sm};a.prototype.ds=function(){var b,a;b=0;for(a=this.kf.length;b<
a;b++)this.Hh[b]=this.kf[b].get();return this.Hh};Vb=a;d.prototype.Pa=function(){this.la=c(this.la)};d.prototype.jf=function(b){var a=this.b.Ym();this.parent&&!this.ah&&a?(this.cf>=a.length&&(a.length=this.cf+1),a[this.cf]=b):this.data=b};d.prototype.ti=function(){var b=this.b.Ym();return!this.parent||this.ah||!b||this.Ci?this.data:this.cf>=b.length||"undefined"===typeof b[this.cf]?this.Hk:b[this.cf]};d.prototype.Ta=function(){!this.parent||this.ah||this.Ci||this.jf(this.Hk)};Pb=d;e.prototype.toString=
function(){return"include:"+this.Pg.toString()};e.prototype.Pa=function(){this.Pg=this.b.kk[this.ks];this.sheet.jn.add(this);this.la=c(this.la);for(var b=this.parent;b;)b.group&&b.Zh.push(this),b=b.parent;this.Po()};e.prototype.Ta=function(){this.parent&&this.b.qh(this.b.u);this.Pg.Ek||this.Pg.Ta(!0);this.parent&&this.b.we(this.b.u)};e.prototype.Po=function(){for(var b=this.parent;b;){if(b.group&&!b.Df){this.pc=!1;return}b=b.parent}this.pc=!0};Zb=e;f.prototype.reset=function(b){this.ib=b;this.Xb=
this.Va=0;V(this.Co);this.ik=this.Ye=!1};f.prototype.ts=function(){return this.ib.Sl?!0:this.Va<this.ib.Wa.length-1?!!this.ib.la.length:!1};Ob=f})();
(function(){function p(c,m){this.Jc=c;this.b=c.b;this.type=m[0];this.get=[this.jr,this.fr,this.sr,this.xr,this.Uq,this.tr,this.nr,this.cr,this.mr,this.rr,this.Vq,this.qr,this.dr,this.or,this.kr,this.lr,this.gr,this.hr,this.br,this.ur,this.pr,this.ir,this.$q,this.er][this.type];var k=null;this.Rd=this.ta=this.Ka=this.qb=this.yj=this.second=this.first=this.value=null;this.Pc=-1;this.Rc=null;this.Vo=-1;this.Re=this.Ih=null;this.Xf=!1;switch(this.type){case 0:case 1:case 2:this.value=m[1];break;case 3:this.first=
new Xb(c,m[1]);break;case 18:this.first=new Xb(c,m[1]);this.second=new Xb(c,m[2]);this.yj=new Xb(c,m[3]);break;case 19:this.qb=this.b.ae(m[1]);this.qb!==X.prototype.Ca.random&&this.qb!==X.prototype.Ca.Aq||this.Jc.ro();this.Ka=[];this.ta=[];3===m.length?(k=m[2],this.Ka.length=k.length+1):this.Ka.length=1;break;case 20:this.Rd=this.b.u[m[1]];this.Pc=-1;this.qb=this.b.ae(m[2]);this.Xf=m[3];bc.Function&&this.qb===bc.Function.prototype.Ca.$t&&this.Jc.ro();m[4]?this.Rc=new Xb(c,m[4]):this.Rc=null;this.Ka=
[];this.ta=[];6===m.length?(k=m[5],this.Ka.length=k.length+1):this.Ka.length=1;break;case 21:this.Rd=this.b.u[m[1]];this.Xf=m[2];m[3]?this.Rc=new Xb(c,m[3]):this.Rc=null;this.Vo=m[4];break;case 22:this.Rd=this.b.u[m[1]];this.Rd.pi(m[2]);this.Pc=this.Rd.rk(m[2]);this.qb=this.b.ae(m[3]);this.Xf=m[4];m[5]?this.Rc=new Xb(c,m[5]):this.Rc=null;this.Ka=[];this.ta=[];7===m.length?(k=m[6],this.Ka.length=k.length+1):this.Ka.length=1;break;case 23:this.Ih=m[1],this.Re=null}this.Jc.Es(this.Rd);4<=this.type&&
17>=this.type&&(this.first=new Xb(c,m[1]),this.second=new Xb(c,m[2]));if(k){var h,a;h=0;for(a=k.length;h<a;h++)this.ta.push(new Xb(c,k[h]))}}function l(){++x;m.length===x&&m.push(new Wb);return m[x]}function c(c,m,k){var h,a;h=0;for(a=c.length;h<a;++h)c[h].get(k),m[h+1]=k.data}function q(c,m){this.type=c||$b.qf;this.data=m||0;this.ff=null;this.type==$b.qf&&(this.data=Math.floor(this.data))}p.prototype.Pa=function(){23===this.type&&(this.Re=this.Jc.b.Zm(this.Ih,this.Jc.qc.parent));this.first&&this.first.Pa();
this.second&&this.second.Pa();this.yj&&this.yj.Pa();this.Rc&&this.Rc.Pa();if(this.ta){var c,m;c=0;for(m=this.ta.length;c<m;c++)this.ta[c].Pa()}};var m=[],x=-1;p.prototype.ur=function(m){var q=this.ta,k=this.Ka;k[0]=m;m=l();c(q,k,m);--x;this.qb.apply(this.b.yd,k)};p.prototype.pr=function(m){var q=this.Rd,k=this.Ka,h=this.ta,a=this.Rc,d=this.qb,e=this.Jc.Xd,f=q.O(),p=f.Zb();if(!p.length)if(f.ea.length)p=f.ea;else{this.Xf?m.oc(""):m.ua(0);return}k[0]=m;m.ff=q;m=l();c(h,k,m);a&&(a.get(m),m.kb()&&(e=m.data,
p=q.i));--x;q=p.length;if(e>=q||e<=-q)e%=q;0>e&&(e+=q);d.apply(p[e],k)};p.prototype.$q=function(m){var q=this.Rd,k=this.Ka,h=this.ta,a=this.Rc,d=this.Pc,e=this.qb,f=this.Jc.Xd,p=q.O(),D=p.Zb();if(!D.length)if(p.ea.length)D=p.ea;else{this.Xf?m.oc(""):m.ua(0);return}k[0]=m;m.ff=q;m=l();c(h,k,m);a&&(a.get(m),m.kb()&&(f=m.data,D=q.i));--x;h=D.length;if(f>=h||f<=-h)f%=h;0>f&&(f+=h);f=D[f];D=0;q.K&&(D=f.type.zf[q.Jd]);e.apply(f.T[d+D],k)};p.prototype.ir=function(c){var m=this.Rc,k=this.Rd,h=this.Vo,a=this.Jc.Xd,
d=k.O(),e=d.Zb();if(!e.length)if(d.ea.length)e=d.ea;else{this.Xf?c.oc(""):c.ua(0);return}if(m){d=l();m.get(d);if(d.kb()){a=d.data;e=k.i;0!==e.length&&(a%=e.length,0>a&&(a+=e.length));a=k.vk(a);k=a.Ya[h];M(k)?c.oc(k):c.A(k);--x;return}--x}m=e.length;if(a>=m||a<=-m)a%=m;0>a&&(a+=m);a=e[a];e=0;k.K&&(e=a.type.ii[k.Jd]);k=a.Ya[h+e];M(k)?c.oc(k):c.A(k)};p.prototype.jr=function(c){c.type=$b.qf;c.data=this.value};p.prototype.fr=function(c){c.type=$b.pf;c.data=this.value};p.prototype.sr=function(c){c.type=
$b.String;c.data=this.value};p.prototype.xr=function(c){this.first.get(c);c.kb()&&(c.data=-c.data)};p.prototype.Uq=function(c){this.first.get(c);var m=l();this.second.get(m);c.kb()&&m.kb()&&(c.data+=m.data,m.Kf()&&c.Pf());--x};p.prototype.tr=function(c){this.first.get(c);var m=l();this.second.get(m);c.kb()&&m.kb()&&(c.data-=m.data,m.Kf()&&c.Pf());--x};p.prototype.nr=function(c){this.first.get(c);var m=l();this.second.get(m);c.kb()&&m.kb()&&(c.data*=m.data,m.Kf()&&c.Pf());--x};p.prototype.cr=function(c){this.first.get(c);
var m=l();this.second.get(m);c.kb()&&m.kb()&&(c.data/=m.data,c.Pf());--x};p.prototype.mr=function(c){this.first.get(c);var m=l();this.second.get(m);c.kb()&&m.kb()&&(c.data%=m.data,m.Kf()&&c.Pf());--x};p.prototype.rr=function(c){this.first.get(c);var m=l();this.second.get(m);c.kb()&&m.kb()&&(c.data=Math.pow(c.data,m.data),m.Kf()&&c.Pf());--x};p.prototype.Vq=function(c){this.first.get(c);var m=l();this.second.get(m);m.Nf()||c.Nf()?this.Xq(c,m):this.Wq(c,m);--x};p.prototype.Xq=function(c,m){c.Nf()&&
m.Nf()?this.Zq(c,m):this.Yq(c,m)};p.prototype.Zq=function(c,m){c.data+=m.data};p.prototype.Yq=function(c,m){c.Nf()?c.data+=(Math.round(1E10*m.data)/1E10).toString():c.oc(c.data.toString()+m.data)};p.prototype.Wq=function(c,m){c.ua(c.data&&m.data?1:0)};p.prototype.qr=function(c){this.first.get(c);var m=l();this.second.get(m);c.kb()&&m.kb()&&(c.data||m.data?c.ua(1):c.ua(0));--x};p.prototype.br=function(c){this.first.get(c);c.data?this.second.get(c):this.yj.get(c)};p.prototype.dr=function(c){this.first.get(c);
var m=l();this.second.get(m);c.ua(c.data===m.data?1:0);--x};p.prototype.or=function(c){this.first.get(c);var m=l();this.second.get(m);c.ua(c.data!==m.data?1:0);--x};p.prototype.kr=function(c){this.first.get(c);var m=l();this.second.get(m);c.ua(c.data<m.data?1:0);--x};p.prototype.lr=function(c){this.first.get(c);var m=l();this.second.get(m);c.ua(c.data<=m.data?1:0);--x};p.prototype.gr=function(c){this.first.get(c);var m=l();this.second.get(m);c.ua(c.data>m.data?1:0);--x};p.prototype.hr=function(c){this.first.get(c);
var m=l();this.second.get(m);c.ua(c.data>=m.data?1:0);--x};p.prototype.er=function(c){var m=this.Re.ti();ka(m)?c.A(m):c.oc(m)};Xb=p;q.prototype.Kf=function(){return this.type===$b.pf};q.prototype.kb=function(){return this.type===$b.qf||this.type===$b.pf};q.prototype.Nf=function(){return this.type===$b.String};q.prototype.Pf=function(){this.Kf()||(this.Nf()&&(this.data=parseFloat(this.data)),this.type=$b.pf)};q.prototype.ua=function(c){this.type=$b.qf;this.data=Math.floor(c)};q.prototype.A=function(c){this.type=
$b.pf;this.data=c};q.prototype.oc=function(c){this.type=$b.String;this.data=c};q.prototype.Et=function(c){ka(c)?(this.type=$b.pf,this.data=c):M(c)?(this.type=$b.String,this.data=c.toString()):(this.type=$b.qf,this.data=0)};Wb=q;$b={qf:0,pf:1,String:2}})();function X(p){this.b=p;this.gc=[]}
X.prototype.wb=function(){var p={},l,c,q,m,x,t,y,k;p.waits=[];var h=p.waits,a;l=0;for(c=this.gc.length;l<c;l++){t=this.gc[l];a={t:t.time,st:t.xo,s:t.Rl,ev:t.yf.Z,sm:[],sols:{}};t.yf.Bc[t.Xb]&&(a.act=t.yf.Bc[t.Xb].Z);q=0;for(m=t.la.length;q<m;q++)a.sm.push(t.la[q].Z);for(x in t.Ub)if(t.Ub.hasOwnProperty(x)){y=this.b.u[parseInt(x,10)];k={sa:t.Ub[x].pj,insts:[]};q=0;for(m=t.Ub[x].Nd.length;q<m;q++)k.insts.push(t.Ub[x].Nd[q].uid);a.sols[y.Z.toString()]=k}h.push(a)}return p};
X.prototype.Tb=function(p){p=p.waits;var l,c,q,m,x,t,y,k,h,a,d;V(this.gc);l=0;for(c=p.length;l<c;l++)if(t=p[l],k=this.b.Hm[t.ev.toString()]){h=-1;q=0;for(m=k.Bc.length;q<m;q++)if(k.Bc[q].Z===t.act){h=q;break}if(-1!==h){y={Ub:{},la:[],hk:!1};y.time=t.t;y.xo=t.st||"";y.Rl=!!t.s;y.yf=k;y.Xb=h;q=0;for(m=t.sm.length;q<m;q++)(k=this.b.si(t.sm[q]))&&y.la.push(k);for(x in t.sols)if(t.sols.hasOwnProperty(x)&&(k=this.b.si(parseInt(x,10)))){h=t.sols[x];a={pj:h.sa,Nd:[]};q=0;for(m=h.insts.length;q<m;q++)(d=this.b.Jg(h.insts[q]))&&
a.Nd.push(d);y.Ub[k.index.toString()]=a}this.gc.push(y)}}};
(function(){function p(){}function l(){}function c(){}var q=X.prototype;p.prototype.ip=function(){return!0};p.prototype.om=function(){return!0};p.prototype.Jp=function(){return!0};var m=[],x=-1;p.prototype.kp=function(c){var h=c.O();x++;m.length===x&&m.push([]);var a=m[x];Aa(a,h.Zb());var d=this.b.jb(),e=d.ib,f=d.ts(),d=this.b.$s(),q,l,u,b,g,n,r=c.Gb;if(f)for(f=0,q=a.length;f<q&&!d.xb;f++){this.b.rh(e.la);b=a[f];h=c.O();h.U=!1;V(h.i);h.i[0]=b;if(r)for(l=0,u=b.siblings.length;l<u;l++)g=b.siblings[l],
n=g.type.O(),n.U=!1,V(n.i),n.i[0]=g;d.index=f;e.Gl();this.b.we(e.la)}else for(h.U=!1,V(h.i),f=0,q=a.length;f<q&&!d.xb;f++){b=a[f];h.i[0]=b;if(r)for(l=0,u=b.siblings.length;l<u;l++)g=b.siblings[l],n=g.type.O(),n.U=!1,V(n.i),n.i[0]=g;d.index=f;e.Gl()}V(a);this.b.Ss();x--;return!1};p.prototype.hp=function(c){var h=this.b.sk(),a=h.I.Every_lastTime||0,d=this.b.lb.C;"undefined"===typeof h.I.Every_seconds&&(h.I.Every_seconds=c);var e=h.I.Every_seconds;if(d>=a+e)return h.I.Every_lastTime=a+e,d>=h.I.Every_lastTime+
.04&&(h.I.Every_lastTime=d),h.I.Every_seconds=c,!0;d<a-.1&&(h.I.Every_lastTime=d);return!1};p.prototype.op=function(c){return(c=this.b.Ng[c.toLowerCase()])&&c.Df};p.prototype.gp=function(){var c=this.b.jb();return c.ik?!1:!c.Ye};p.prototype.pm=function(){return!0};p.prototype.yp=function(){return!0};p.prototype.Lj=function(){return!0};p.prototype.Kp=function(){return!0};p.prototype.Kj=function(){return!0};p.prototype.Zo=function(c,h,a){return Na(W(c),W(a))<=W(h)};p.prototype.np=function(c,h){return Ta(W(c),
W(h))};p.prototype.mp=function(c,h,a){c=La(c);h=La(h);a=La(a);return Ta(a,h)?Ta(c,h)&&!Ta(c,a):!(!Ta(c,h)&&Ta(c,a))};q.q=new p;l.prototype.lp=function(c){this.b.dh||this.b.vg||(this.b.vg=c)};l.prototype.ep=function(c,h,a,d){if(h&&c&&(h=this.b.ek(c,h,a,d))){this.b.vc++;var e;this.b.trigger(Object.getPrototypeOf(c.wa).q.mg,h);if(h.Gb)for(a=0,d=h.siblings.length;a<d;a++)e=h.siblings[a],this.b.trigger(Object.getPrototypeOf(e.type.wa).q.mg,e);this.b.vc--;c=c.O();c.U=!1;V(c.i);c.i[0]=h;if(h.Gb)for(a=0,
d=h.siblings.length;a<d;a++)e=h.siblings[a],c=e.type.O(),c.U=!1,V(c.i),c.i[0]=e}};l.prototype.Zp=function(c,h){0===c.Ij?ka(h)?c.jf(h):c.jf(parseFloat(h)):1===c.Ij&&c.jf(h.toString())};l.prototype.Yo=function(c,h){0===c.Ij?ka(h)?c.jf(c.ti()+h):c.jf(c.ti()+parseFloat(h)):1===c.Ij&&c.jf(c.ti()+h.toString())};var t=[],y=[];l.prototype.fq=function(c){if(!(0>c)){var h,a,d,e=this.b.jb(),f;t.length?f=t.pop():f={Ub:{},la:[]};f.hk=!1;f.time=this.b.lb.C+c;f.xo="";f.Rl=!1;f.yf=e.ib;f.Xb=e.Xb+1;c=0;for(h=this.b.u.length;c<
h;c++)d=this.b.u[c],a=d.O(),a.U&&-1===e.ib.la.indexOf(d)||(f.la.push(d),d=void 0,y.length?d=y.pop():d={Nd:[]},d.pj=!1,d.pj=a.U,Aa(d.Nd,a.i),f.Ub[c.toString()]=d);this.gc.push(f);return!0}};q.P=new l;c.prototype["int"]=function(c,h){M(h)?(c.ua(parseInt(h,10)),isNaN(c.data)&&(c.data=0)):c.ua(h)};c.prototype["float"]=function(c,h){M(h)?(c.A(parseFloat(h)),isNaN(c.data)&&(c.data=0)):c.A(h)};c.prototype.random=function(c,h,a){void 0===a?c.A(Math.random()*h):c.A(Math.random()*(a-h)+h)};c.prototype.sqrt=
function(c,h){c.A(Math.sqrt(h))};c.prototype.abs=function(c,h){c.A(Math.abs(h))};c.prototype.round=function(c,h){c.ua(Math.round(h))};c.prototype.floor=function(c,h){c.ua(Math.floor(h))};c.prototype.ceil=function(c,h){c.ua(Math.ceil(h))};c.prototype.sin=function(c,h){c.A(Math.sin(W(h)))};c.prototype.cos=function(c,h){c.A(Math.cos(W(h)))};c.prototype.tan=function(c,h){c.A(Math.tan(W(h)))};c.prototype.asin=function(c,h){c.A(Fa(Math.asin(h)))};c.prototype.acos=function(c,h){c.A(Fa(Math.acos(h)))};c.prototype.atan=
function(c,h){c.A(Fa(Math.atan(h)))};c.prototype.exp=function(c,h){c.A(Math.exp(h))};c.prototype.log10=function(c,h){c.A(Math.log(h)/Math.LN10)};c.prototype.max=function(c){var h=arguments[1];"number"!==typeof h&&(h=0);var a,d,e;a=2;for(d=arguments.length;a<d;a++)e=arguments[a],"number"===typeof e&&h<e&&(h=e);c.A(h)};c.prototype.min=function(c){var h=arguments[1];"number"!==typeof h&&(h=0);var a,d,e;a=2;for(d=arguments.length;a<d;a++)e=arguments[a],"number"===typeof e&&h>e&&(h=e);c.A(h)};c.prototype.Ne=
function(c){c.A(this.b.Ne)};c.prototype.fg=function(c){c.A(this.b.fg)};c.prototype.time=function(c){c.A(this.b.lb.C)};c.prototype.cd=function(c){c.ua(this.b.cd)};c.prototype.Ui=function(c){c.ua(this.b.Ui)};c.prototype.ok=function(c){c.ua(this.b.ok)};c.prototype.k=function(c,h,a,d,e){c.A(Fa(Ma(h,a,d,e)))};c.prototype.Tt=function(c){c.ua(this.b.width)};c.prototype.left=function(c,h,a){c.oc(M(h)?h.substr(0,a):"")};c.prototype.right=function(c,h,a){c.oc(M(h)?h.substr(h.length-a):"")};c.prototype.replace=
function(c,h,a,d){M(h)&&M(a)&&M(d)?c.oc(h.replace(new RegExp(db(a),"gi"),d)):c.oc(M(h)?h:"")};c.prototype.trim=function(c,h){c.oc(M(h)?h.trim():"")};c.prototype.Aq=function(c){var h=Q(Math.random()*(arguments.length-1));c.Et(arguments[h+1])};c.prototype.dk=function(c){c.A(this.b.dk/1E3)};c.prototype.Pi=function(c){c.A(this.b.Pi)};q.Ca=new c;q.jt=function(){var c,h,a,d,e,f,m=this.b.jb();c=0;for(a=this.gc.length;c<a;c++){d=this.gc[c];if(-1===d.time){if(!d.Rl)continue}else if(d.time>this.b.lb.C)continue;
m.ib=d.yf;m.Xb=d.Xb;m.Va=0;for(h in d.Ub)d.Ub.hasOwnProperty(h)&&(e=this.b.u[parseInt(h,10)].O(),f=d.Ub[h],e.U=f.pj,Aa(e.i,f.Nd),e=f,V(e.Nd),y.push(e));d.yf.it();this.b.bk(d.la);d.hk=!0}h=c=0;for(a=this.gc.length;c<a;c++)d=this.gc[c],this.gc[h]=d,d.hk?(Ya(d.Ub),V(d.la),t.push(d)):h++;za(this.gc,h)}})();
(function(){mb=function(l,c){var q=l[1],m=l[3],p=l[4],t=l[5],y=l[6],k=l[7],h=l[8];c.q||(c.q={});c.P||(c.P={});c.Ca||(c.Ca={});var a=c.q,d=c.P,e=c.Ca;m&&(a.du=function(a,c){return ac(this.x,a,c)},a.eu=function(a,c){return ac(this.y,a,c)},a.qp=function(){var a=this.n;this.qa();var c=this.Ba;return!(c.right<a.xa||c.bottom<a.ya||c.left>a.Ha||c.top>a.Ga)},a.lu=function(){this.qa();var a=this.Ba,c=this.b.ra;return 0>a.right||0>a.bottom||a.left>c.width||a.top>c.height},a.wu=function(a,c,d){var e=this.O(),
b=e.Zb();if(!b.length)return!1;var g=b[0],k=g,h=Va(g.x,g.y,c,d),m,q,l;m=1;for(q=b.length;m<q;m++)if(g=b[m],l=Va(g.x,g.y,c,d),0===a&&l<h||1===a&&l>h)h=l,k=g;e.oh(k);return!0},d.Nu=function(a){this.x!==a&&(this.x=a,this.V())},d.Ou=function(a){this.y!==a&&(this.y=a,this.V())},d.Vp=function(a,c){if(this.x!==a||this.y!==c)this.x=a,this.y=c,this.V()},d.Ku=function(a,c){var d=a.Pr(this);if(d){var e;d.Hg?(e=d.Hg(c,!0),d=d.Hg(c,!1)):(e=d.x,d=d.y);if(this.x!==e||this.y!==d)this.x=e,this.y=d,this.V()}},d.qu=
function(a){0!==a&&(this.x+=Math.cos(this.k)*a,this.y+=Math.sin(this.k)*a,this.V())},d.pu=function(a,c){0!==c&&(this.x+=Math.cos(W(a))*c,this.y+=Math.sin(W(a))*c,this.V())},e.Lh=function(a){a.A(this.x)},e.Mh=function(a){a.A(this.y)},e.Ne=function(a){a.A(this.b.Ue(this))});p&&(a.cu=function(a,c){return ac(this.width,a,c)},a.au=function(a,c){return ac(this.height,a,c)},d.$p=function(a){this.width!==a&&(this.width=a,this.V())},d.Hu=function(a){this.height!==a&&(this.height=a,this.V())},d.Lu=function(a,
c){if(this.width!==a||this.height!==c)this.width=a,this.height=c,this.V()},e.Ru=function(a){a.A(this.width)},e.hu=function(a){a.A(this.height)},e.Xt=function(a){this.qa();a.A(this.Ba.left)},e.Zt=function(a){this.qa();a.A(this.Ba.top)},e.Yt=function(a){this.qa();a.A(this.Ba.right)},e.Wt=function(a){this.qa();a.A(this.Ba.bottom)});t&&(a.Zo=function(a,c){return Na(this.k,W(c))<=W(a)},a.np=function(a){return Ta(this.k,W(a))},a.mp=function(a,c){var d=La(a),e=La(c),b=Ja(this.k);return Ta(e,d)?Ta(b,d)&&
!Ta(b,e):!(!Ta(b,d)&&Ta(b,e))},d.Qp=function(a){a=W(Ha(a));isNaN(a)||this.k===a||(this.k=a,this.V())},d.Au=function(a){0===a||isNaN(a)||(this.k+=W(a),this.k=Ja(this.k),this.V())},d.Bu=function(a){0===a||isNaN(a)||(this.k-=W(a),this.k=Ja(this.k),this.V())},d.Cu=function(a,c){var d=Sa(this.k,W(c),W(a));isNaN(d)||this.k===d||(this.k=d,this.V())},d.Du=function(a,c,d){a=Sa(this.k,Math.atan2(d-this.y,c-this.x),W(a));isNaN(a)||this.k===a||(this.k=a,this.V())},d.Yp=function(a,c){var d=Math.atan2(c-this.y,
a-this.x);isNaN(d)||this.k===d||(this.k=d,this.V())},e.Vt=function(a){a.A(Ka(this.k))});q||(a.dp=function(a,c,d){return ac(this.Ya[a],c,d)},a.ju=function(a){return this.Ya[a]},a.xu=function(a,c){var d=this.O(),e=d.Zb();if(!e.length)return!1;var b=e[0],g=b,k=b.Ya[c],h,m,l;h=1;for(m=e.length;h<m;h++)if(b=e[h],l=b.Ya[c],0===a&&l<k||1===a&&l>k)k=l,g=b;d.oh(g);return!0},a.vu=function(a){var c,d,e,b,g;if(this.b.sk().Lk){g=this.O();if(g.U)for(g.U=!1,V(g.i),V(g.ea),e=this.i,c=0,d=e.length;c<d;c++)b=e[c],
b.uid===a?g.ea.push(b):g.i.push(b);else{e=c=0;for(d=g.i.length;c<d;c++)b=g.i[c],g.i[e]=b,b.uid===a?g.ea.push(b):e++;za(g.i,e)}this.Cc();return!!g.i.length}b=this.b.Jg(a);if(!b)return!1;g=this.O();if(!g.U&&-1===g.i.indexOf(b))return!1;if(this.K)for(a=b.type.Da,c=0,d=a.length;c<d;c++){if(a[c]===this)return g.oh(b),this.Cc(),!0}else if(b.type===this)return g.oh(b),this.Cc(),!0;return!1},a.mg=function(){return!0},a.Ap=function(){return!0},d.Iu=function(a,c){var d=this.Ya;ka(d[a])?d[a]=ka(c)?c:parseFloat(c):
M(d[a])&&(d[a]=M(c)?c:c.toString())},d.Ut=function(a,c){var d=this.Ya;ka(d[a])?d[a]=ka(c)?d[a]+c:d[a]+parseFloat(c):M(d[a])&&(d[a]=M(c)?d[a]+c:d[a]+c.toString())},d.cq=function(a,c){var d=this.Ya;ka(d[a])&&(d[a]=ka(c)?d[a]-c:d[a]-parseFloat(c))},d.Eu=function(a,c){this.Ya[a]=c?1:0},d.Pu=function(a){this.Ya[a]=1-this.Ya[a]},d.fp=function(){this.b.Bd(this)},d.tp||(d.tp=function(a){var c,d;try{c=JSON.parse(a)}catch(e){return}this.b.Mi(this,c,!0);this.hd&&this.hd();if(this.T)for(a=0,c=this.T.length;a<
c;++a)d=this.T[a],d.hd&&d.hd()}),e.fu=function(a){var c=a.ff.i.length,d,e,b;d=0;for(e=this.b.Qc.length;d<e;d++)b=this.b.Qc[d],a.ff.K?0<=b.type.Da.indexOf(a.ff)&&c++:b.type===a.ff&&c++;a.ua(c)},e.zu=function(a){a.ua(a.ff.O().Zb().length)},e.Qu=function(a){a.ua(this.uid)},e.iu=function(a){a.ua(this.Lg())},e.$o||(e.$o=function(a){a.oc(JSON.stringify(this.b.Kl(this,!0)))}));y&&(a.mu=function(){return this.visible},d.Mu=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.Y=!0)},a.bu=function(a,c){return ac(jb(100*
this.opacity),a,c)},d.Ju=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.Y=!0)},e.Opacity=function(a){a.A(jb(100*this.opacity))});k&&(a.ku=function(a){return a?this.n===a:!1},a.yu=function(a){var c=this.O(),d=c.Zb();if(!d.length)return!1;var e=d[0],b=e,g,k;g=1;for(k=d.length;g<k;g++)if(e=d[g],0===a){if(e.n.index>b.n.index||e.n.index===b.n.index&&e.md()>b.md())b=e}else if(e.n.index<b.n.index||e.n.index===b.n.index&&e.md()<b.md())b=e;c.oh(b);return!0},d.up=function(){var a=
this.n,c=a.i;c.length&&c[c.length-1]===this||(a.Wf(this,!1),a.rg(this,!1),this.b.Y=!0)},d.ru=function(){var a=this.n,c=a.i;c.length&&c[0]===this||(a.Wf(this,!1),a.Xs(this),this.b.Y=!0)},d.su=function(a){a&&a!=this.n&&(this.n.Wf(this,!0),this.n=a,a.rg(this,!0),this.b.Y=!0)},d.Tu=function(a,c){var d=0===a;if(c){var e=c.qi(this);e&&e.uid!==this.uid&&(this.n.index!==e.n.index&&(this.n.Wf(this,!0),this.n=e.n,e.n.rg(this,!0)),this.n.Fs(this,e,d),this.b.Y=!0)}},e.ou=function(a){a.ua(this.n.Ln)},e.nu=function(a){a.oc(this.n.name)},
e.Su=function(a){a.ua(this.md())});h&&(d.Fu=function(a,c){if(this.b.D){var d=this.type.uk(c);if(!(0>d)){var e=1===a;this.be[d]!==e&&(this.be[d]=e,this.ed(),this.b.Y=!0)}}},d.Gu=function(a,c,d){if(this.b.D){var e=this.type.uk(a);0>e||(a=this.type.N[e],e=this.Ja[e],c=Math.floor(c),0>c||c>=e.length||(1===this.b.D.av(a.Ua,c)&&(d/=100),e[c]!==d&&(e[c]=d,a.pc&&(this.b.Y=!0))))}})};Gb=function(){this.Xj=this.Tj=!0;this.type.Qh=!0;this.b.Y=!0;var l,c,q=this.Uj;l=0;for(c=q.length;l<c;++l)q[l](this);this.n.zc&&
this.qa()};Hb=function(l){l&&this.Uj.push(l)};Jb=function(){if(this.Tj){var l=this.Ba,c=this.Mb;l.set(this.x,this.y,this.x+this.width,this.y+this.height);l.offset(-this.Pb*this.width,-this.Qb*this.height);this.k?(l.offset(-this.x,-this.y),c.to(l,this.k),c.offset(this.x,this.y),c.Im(l)):c.yh(l);l.normalize();this.Tj=!1;this.Ot()}};var p=new T(0,0,0,0);Kb=function(){if(this.n.zc){var l=this.n.ub,c=this.Ba;p.set(l.Vb(c.left),l.Wb(c.top),l.Vb(c.right),l.Wb(c.bottom));this.cc.Bg(p)||(this.cc.right<this.cc.left?
l.update(this,null,p):l.update(this,this.cc,p),this.cc.xg(p),this.n.$c=!0)}};Lb=function(){if(this.Xj&&this.Dd){this.qa();var l=this.type.Yh,c=this.Ba;p.set(l.Vb(c.left),l.Wb(c.top),l.Vb(c.right),l.Wb(c.bottom));this.fe.Bg(p)||(this.fe.right<this.fe.left?l.update(this,null,p):l.update(this,this.fe,p),this.fe.xg(p),this.Xj=!1)}};Ib=function(l,c){return this.Ba.Eb(l,c)&&this.Mb.Eb(l,c)?this.ja&&!this.ja.Jf()?(this.ja.wf(this.width,this.height,this.k),this.ja.Eb(l-this.x,c-this.y)):!0:!1};Cb=function(){this.type.Ej();
return this.We};Mb=function(){this.n.im();return this.fd};Nb=function(){V(this.da);var l,c,q,m=!0;l=0;for(c=this.be.length;l<c;l++)this.be[l]&&(q=this.type.N[l],this.da.push(q),q.xe||(m=!1));this.Uo=!!this.da.length;this.Wd=m};Db=function(){return"Inst"+this.jo};pb=function(l){if(l&&l.Gb&&l.type!=this){var c,q,m;c=0;for(q=l.siblings.length;c<q;c++)if(m=l.siblings[c],m.type==this)return m}l=this.O().Zb();return l.length?l[0]:null};qb=function(l){var c=this.O().Zb();return c.length?c[l.Lg()%c.length]:
null};ob=function(){if(this.dg&&!this.K){var l,c;l=0;for(c=this.i.length;l<c;l++)this.i[l].We=l;var q=l,m=this.b.Qc;l=0;for(c=m.length;l<c;++l)m[l].type===this&&(m[l].We=q++);this.dg=!1}};Ab=function(l){if(l<this.i.length)return this.i[l];l-=this.i.length;var c=this.b.Qc,q,m;q=0;for(m=c.length;q<m;++q)if(c[q].type===this){if(0===l)return c[q];--l}return null};sb=function(){return this.Be[this.Gd]};tb=function(){this.Gd++;this.Gd===this.Be.length?this.Be.push(new nb(this)):this.Be[this.Gd].U=!0};ub=
function(){this.Gd++;this.Gd===this.Be.length&&this.Be.push(new nb(this));var l=this.Be[this.Gd],c=this.Be[this.Gd-1];c.U?l.U=!0:(l.U=!1,Aa(l.i,c.i),Aa(l.ea,c.ea))};vb=function(){this.Gd--};wb=function(l){var c,q,m,p,t,y=0;if(!this.K)for(c=0,q=this.Da.length;c<q;c++)for(t=this.Da[c],m=0,p=t.Qa.length;m<p;m++){if(l===t.Qa[m].name)return this.I.lastBehIndex=y,t.Qa[m];y++}c=0;for(q=this.Qa.length;c<q;c++){if(l===this.Qa[c].name)return this.I.lastBehIndex=y,this.Qa[c];y++}return null};xb=function(l){return this.pi(l)?
this.I.lastBehIndex:-1};yb=function(l){var c,q;c=0;for(q=this.N.length;c<q;c++)if(this.N[c].name===l)return c;return-1};zb=function(){if(this.Gb&&!this.K){var l,c,q,m,p,t,y;this.Ej();t=this.O();var k=t.U,h=(l=this.b.jb())&&l.ib&&l.ib.Vc;l=0;for(c=this.hc.length;l<c;l++)if(p=this.hc[l],p!==this&&(p.Ej(),y=p.O(),y.U=k,!k)){V(y.i);q=0;for(m=t.i.length;q<m;++q)y.i[q]=p.vk(t.i[q].We);if(h)for(V(y.ea),q=0,m=t.ea.length;q<m;++q)y.ea[q]=p.vk(t.ea[q].We)}}};Bb=function(){return"Type"+this.Z};ac=function(l,
c,q){if("undefined"===typeof l||"undefined"===typeof q)return!1;switch(c){case 0:return l===q;case 1:return l!==q;case 2:return l<q;case 3:return l<=q;case 4:return l>q;case 5:return l>=q;default:return!1}}})();function fc(p){this.b=p}
(function(){function p(b){0>b&&(b=0);1<b&&(b=1);return Math.log(b)/Math.log(10)*20}function l(b){b=b.toLowerCase();return S.hasOwnProperty(b)&&S[b].length?S[b][0].sc():A.destination}function c(){return A.createGain?A.createGain():A.createGainNode()}function q(b){return A.createDelay?A.createDelay(b):A.createDelayNode(b)}function m(b){b.start?b.start(0):b.noteOn(0)}function x(b,a,c){b.start?b.start(0,a):b.noteGrainOn(0,a,c-a)}function t(b){try{b.stop?b.stop(0):b.noteOff(0)}catch(a){}}function y(b,
a,d,g,e,f){this.type="filter";this.Wc=[b,a,d,g,e,f];this.aa=c();this.M=c();this.M.gain.value=f;this.J=c();this.J.gain.value=1-f;this.Ra=A.createBiquadFilter();this.Ra.type="number"===typeof this.Ra.type?b:rc[b];this.Ra.frequency.value=a;this.Ra.detune&&(this.Ra.detune.value=d);this.Ra.Q.value=g;this.Ra.gain.value=e;this.aa.connect(this.Ra);this.aa.connect(this.J);this.Ra.connect(this.M)}function k(b,a,d){this.type="delay";this.Wc=[b,a,d];this.aa=c();this.M=c();this.M.gain.value=d;this.J=c();this.J.gain.value=
1-d;this.kh=c();this.Gc=q(b);this.Gc.delayTime.value=b;this.ei=c();this.ei.gain.value=a;this.aa.connect(this.kh);this.aa.connect(this.J);this.kh.connect(this.M);this.kh.connect(this.Gc);this.Gc.connect(this.ei);this.ei.connect(this.kh)}function h(b,a,d,g){this.type="convolve";this.Wc=[a,d,g];this.aa=c();this.M=c();this.M.gain.value=d;this.J=c();this.J.gain.value=1-d;this.Ke=A.createConvolver();b&&(this.Ke.normalize=a,this.Ke.buffer=b);this.aa.connect(this.Ke);this.aa.connect(this.J);this.Ke.connect(this.M)}
function a(b,a,d,g,e){this.type="flanger";this.Wc=[b,a,d,g,e];this.aa=c();this.J=c();this.J.gain.value=1-e/2;this.M=c();this.M.gain.value=e/2;this.ji=c();this.ji.gain.value=g;this.Gc=q(b+a);this.Gc.delayTime.value=b;this.nb=A.createOscillator();this.nb.frequency.value=d;this.nc=c();this.nc.gain.value=a;this.aa.connect(this.Gc);this.aa.connect(this.J);this.Gc.connect(this.M);this.Gc.connect(this.ji);this.ji.connect(this.Gc);this.nb.connect(this.nc);this.nc.connect(this.Gc.delayTime);m(this.nb)}function d(b,
a,d,g,e,f){this.type="phaser";this.Wc=[b,a,d,g,e,f];this.aa=c();this.J=c();this.J.gain.value=1-f/2;this.M=c();this.M.gain.value=f/2;this.Ra=A.createBiquadFilter();this.Ra.type="number"===typeof this.Ra.type?7:"allpass";this.Ra.frequency.value=b;this.Ra.detune&&(this.Ra.detune.value=a);this.Ra.Q.value=d;this.nb=A.createOscillator();this.nb.frequency.value=e;this.nc=c();this.nc.gain.value=g;this.aa.connect(this.Ra);this.aa.connect(this.J);this.Ra.connect(this.M);this.nb.connect(this.nc);this.nc.connect(this.Ra.frequency);
m(this.nb)}function e(b){this.type="gain";this.Wc=[b];this.ba=c();this.ba.gain.value=b}function f(b,a){this.type="tremolo";this.Wc=[b,a];this.ba=c();this.ba.gain.value=1-a/2;this.nb=A.createOscillator();this.nb.frequency.value=b;this.nc=c();this.nc.gain.value=a/2;this.nb.connect(this.nc);this.nc.connect(this.ba.gain);m(this.nb)}function C(b,a){this.type="ringmod";this.Wc=[b,a];this.aa=c();this.M=c();this.M.gain.value=a;this.J=c();this.J.gain.value=1-a;this.uh=c();this.uh.gain.value=0;this.nb=A.createOscillator();
this.nb.frequency.value=b;this.nb.connect(this.uh.gain);m(this.nb);this.aa.connect(this.uh);this.aa.connect(this.J);this.uh.connect(this.M)}function D(b,a,d,g,e){this.type="distortion";this.Wc=[b,a,d,g,e];this.aa=c();this.hj=c();this.gj=c();this.yt(d,Math.pow(10,g/20));this.M=c();this.M.gain.value=e;this.J=c();this.J.gain.value=1-e;this.Jj=A.createWaveShaper();this.ci=new Float32Array(65536);this.Fr(b,a);this.Jj.ci=this.ci;this.aa.connect(this.hj);this.aa.connect(this.J);this.hj.connect(this.Jj);
this.Jj.connect(this.gj);this.gj.connect(this.M)}function u(b,a,c,d,g){this.type="compressor";this.Wc=[b,a,c,d,g];this.ba=A.createDynamicsCompressor();try{this.ba.threshold.value=b,this.ba.knee.value=a,this.ba.ratio.value=c,this.ba.attack.value=d,this.ba.release.value=g}catch(e){}}function b(b,a){this.type="analyser";this.Wc=[b,a];this.ba=A.createAnalyser();this.ba.fftSize=b;this.ba.smoothingTimeConstant=a;this.Cr=new Float32Array(this.ba.frequencyBinCount);this.vo=new Uint8Array(b);this.nh=0}function g(){this.L=
null;this.Oi=0;this.Ce=[];this.fl=this.Fi=this.Ei=0}function n(b,a){this.src=b;this.X=E;this.Tc=a;this.Ph=!1;var d=this;this.dl=this.wl=null;this.Vf=[];this.qj=0;this.lm=this.lk=this.Bo=this.bj=!1;1===E&&a&&(this.X=0,this.wl=c());this.Ie=this.ga=null;var g;switch(this.X){case 0:this.ga=new Audio;this.ga.crossOrigin="anonymous";this.ga.addEventListener("canplaythrough",function(){d.lm=!0});1===E&&A.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Bo=!0,this.ga.addEventListener("canplay",
function(){d.dl||(d.dl=A.createMediaElementSource(d.ga),d.dl.connect(d.wl))}));this.ga.autoplay=!1;this.ga.hv="auto";this.ga.src=b;break;case 1:g=new XMLHttpRequest;g.open("GET",b,!0);g.responseType="arraybuffer";g.onload=function(){d.Ie=g.response;d.Eq()};g.onerror=function(){d.lk=!0};g.send();break;case 2:this.ga=!0;break;case 3:this.ga=!0}}function r(b,a){var d=this;this.tag=a;this.xb=this.Ld=!0;this.src=b.src;this.buffer=b;this.X=E;this.Tc=b.Tc;this.playbackRate=1;this.Ff=!0;this.lc=this.xc=!1;
this.ec=0;this.$g=this.Lf=this.od=!1;this.volume=1;this.tl=function(b){if(!d.lc&&!d.xc){var a=this;a||(a=b.target);a===d.Oh&&(d.Ff=!0,d.xb=!0,wa=d.tag,I.trigger(fc.prototype.q.Kh,U))}};this.Oh=null;this.Hf=1===J&&!this.Tc||2===J;this.Rf=1;this.startTime=this.Hf?I.lb.C:I.Zd.C;this.Oa=this.Xa=null;this.sd=!1;this.Na=null;this.Xn=this.Wn=this.Vn=this.Un=this.Zn=this.Yn=0;this.p=null;var g=!1;1!==this.X||0!==this.buffer.X||this.buffer.Bo||(this.X=0);switch(this.X){case 0:this.Tc?(this.p=b.ga,g=!b.Ph,
b.Ph=!0):(this.p=new Audio,this.p.crossOrigin="anonymous",this.p.autoplay=!1,this.p.src=b.ga.src,g=!0);g&&this.p.addEventListener("ended",function(){wa=d.tag;d.xb=!0;I.trigger(fc.prototype.q.Kh,U)});break;case 1:this.Xa=c();this.Xa.connect(l(a));1===this.buffer.X?b.ga&&(this.p=A.createBufferSource(),this.p.buffer=b.ga,this.p.connect(this.Xa)):(this.p=this.buffer.ga,this.buffer.wl.connect(this.Xa),this.buffer.Ph||(this.buffer.Ph=!0,this.buffer.ga.addEventListener("ended",function(){wa=d.tag;d.xb=!0;
I.trigger(fc.prototype.q.Kh,U)})));break;case 2:this.p=new window.Media(P+this.src,null,null,function(b){b===window.Media.MEDIA_STOPPED&&(d.Ff=!0,d.xb=!0,wa=d.tag,I.trigger(fc.prototype.q.Kh,U))});break;case 3:this.p=!0}}function ba(b,a){S.hasOwnProperty(b)?S[b].push(a):S[b]=[a];var c,d,g,e,f=A.destination;if(S.hasOwnProperty(b)&&(g=S[b],g.length))for(f=g[0].sc(),c=0,d=g.length;c<d;c++)e=g[c],c+1===d?e.Dc(A.destination):e.Dc(g[c+1].sc());V(Ia);if(b.length)for(c=0,d=z.length;c<d;c++)g=z[c],kb(b,g.tag)&&
Ia.push(g);else v&&!v.Ef()&&(V(Ia),Ia[0]=v);c=0;for(d=Ia.length;c<d;c++)Ia[c].dt(f);ha&&rb===b&&(ha.disconnect(),ha.connect(f))}function F(){}function ea(){}var R=fc.prototype;R.na=function(b){this.wa=b;this.b=b.b};R.na.prototype.S=function(){};var I=null,U=null,wa="",P="",E=0,A=null,w=[],z=[],v=null,L=!1,J=0,O=!1,H=1,G=0,K=0,pa=1,N=1,ta=10,la=1E4,Ga=1,ha=null,rb="",Oa=!1,Pa=[],S={},rc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");y.prototype.Dc=function(b){this.M.disconnect();
this.M.connect(b);this.J.disconnect();this.J.connect(b)};y.prototype.remove=function(){this.aa.disconnect();this.Ra.disconnect();this.M.disconnect();this.J.disconnect()};y.prototype.sc=function(){return this.aa};k.prototype.Dc=function(b){this.M.disconnect();this.M.connect(b);this.J.disconnect();this.J.connect(b)};k.prototype.remove=function(){this.aa.disconnect();this.kh.disconnect();this.Gc.disconnect();this.ei.disconnect();this.M.disconnect();this.J.disconnect()};k.prototype.sc=function(){return this.aa};
h.prototype.Dc=function(b){this.M.disconnect();this.M.connect(b);this.J.disconnect();this.J.connect(b)};h.prototype.remove=function(){this.aa.disconnect();this.Ke.disconnect();this.M.disconnect();this.J.disconnect()};h.prototype.sc=function(){return this.aa};a.prototype.Dc=function(b){this.J.disconnect();this.J.connect(b);this.M.disconnect();this.M.connect(b)};a.prototype.remove=function(){this.aa.disconnect();this.Gc.disconnect();this.nb.disconnect();this.nc.disconnect();this.J.disconnect();this.M.disconnect();
this.ji.disconnect()};a.prototype.sc=function(){return this.aa};d.prototype.Dc=function(b){this.J.disconnect();this.J.connect(b);this.M.disconnect();this.M.connect(b)};d.prototype.remove=function(){this.aa.disconnect();this.Ra.disconnect();this.nb.disconnect();this.nc.disconnect();this.J.disconnect();this.M.disconnect()};d.prototype.sc=function(){return this.aa};e.prototype.Dc=function(b){this.ba.disconnect();this.ba.connect(b)};e.prototype.remove=function(){this.ba.disconnect()};e.prototype.sc=function(){return this.ba};
f.prototype.Dc=function(b){this.ba.disconnect();this.ba.connect(b)};f.prototype.remove=function(){this.nb.disconnect();this.nc.disconnect();this.ba.disconnect()};f.prototype.sc=function(){return this.ba};C.prototype.Dc=function(b){this.M.disconnect();this.M.connect(b);this.J.disconnect();this.J.connect(b)};C.prototype.remove=function(){this.nb.disconnect();this.uh.disconnect();this.aa.disconnect();this.M.disconnect();this.J.disconnect()};C.prototype.sc=function(){return this.aa};D.prototype.yt=function(b,
a){.01>b&&(b=.01);this.hj.gain.value=b;this.gj.gain.value=Math.pow(1/b,.6)*a};D.prototype.shape=function(b,a,c){var d=1.05*c*a-a;c=0>b?-1:1;b=0>b?-b:b;a=b<a?b:a+d*(1-Math.exp(-(1/d)*(b-a)));return a*c};D.prototype.Fr=function(b,a){for(var c=Math.pow(10,b/20),d=Math.pow(10,a/20),g=0,e=0;32768>e;++e)g=e/32768,g=this.shape(g,c,d),this.ci[32768+e]=g,this.ci[32768-e-1]=-g};D.prototype.Dc=function(b){this.M.disconnect();this.M.connect(b);this.J.disconnect();this.J.connect(b)};D.prototype.remove=function(){this.aa.disconnect();
this.hj.disconnect();this.Jj.disconnect();this.gj.disconnect();this.M.disconnect();this.J.disconnect()};D.prototype.sc=function(){return this.aa};u.prototype.Dc=function(b){this.ba.disconnect();this.ba.connect(b)};u.prototype.remove=function(){this.ba.disconnect()};u.prototype.sc=function(){return this.ba};b.prototype.Fa=function(){this.ba.getFloatFrequencyData(this.Cr);this.ba.getByteTimeDomainData(this.vo);for(var b=this.ba.fftSize,a=0,c=this.nh=0,d=0;a<b;a++)d=(this.vo[a]-128)/128,0>d&&(d=-d),
this.nh<d&&(this.nh=d),c+=d*d;this.nh=p(this.nh);p(Math.sqrt(c/b))};b.prototype.Dc=function(b){this.ba.disconnect();this.ba.connect(b)};b.prototype.remove=function(){this.ba.disconnect()};b.prototype.sc=function(){return this.ba};g.prototype.vh=function(b){if(this.L=b)this.Ei=this.L.x,this.Fi=this.L.y;V(this.Ce)};g.prototype.xi=function(){return!!this.L};g.prototype.Fa=function(b){this.L&&0!==b&&(this.fl=Ma(this.Ei,this.Fi,this.L.x,this.L.y),b=Va(this.Ei,this.Fi,this.L.x,this.L.y)/b,4>this.Ce.length||
this.Ce.shift(),this.Ce.push(b),this.Ei=this.L.x,this.Fi=this.L.y)};g.prototype.cn=function(){if(!this.Ce.length)return 0;var b,a,c=0;b=0;for(a=this.Ce.length;b<a;b++)c+=this.Ce[b];return c/this.Ce.length};g.prototype.yk=function(){return Math.cos(this.fl)*this.cn()};g.prototype.zk=function(){return Math.sin(this.fl)*this.cn()};var lc=!1;n.prototype.Eq=function(){if(!this.ga&&this.Ie){var b=this;if(A.decodeAudioData)A.decodeAudioData(this.Ie,function(a){b.ga=a;b.Ie=null;var c,d,g;if(ja(b.dj)||O)ja(b.$h)||
(c=b.$h.Ke,c.normalize=b.Kn,c.buffer=a);else if(b.Vf.length){c=0;for(d=b.Vf.length;c<d;c++){a=b.Vf[c];g=new r(b,a.Go);g.Pl(!0);if("undefined"!==typeof a.Mn&&(a.L=I.Jg(a.Mn),!a.L))continue;if(a.L){var e=Ua(a.L.x,a.L.y,-a.L.n.Ma(),G,K,!0),f=Ua(a.L.x,a.L.y,-a.L.n.Ma(),G,K,!1);g.Ol(e,f,Fa(a.L.k-a.L.n.Ma()),a.Fk,a.il,a.ll);g.vh(a.L)}else g.Ol(a.x,a.y,a.iq,a.Fk,a.il,a.ll);g.play(b.bl,b.km,b.qj);b.bj&&g.pause();z.push(g)}V(b.Vf)}else g=new r(b,b.dj||""),g.play(b.bl,b.km,b.qj),b.bj&&g.pause(),z.push(g)},
function(){b.lk=!0});else if(this.ga=A.createBuffer(this.Ie,!1),this.Ie=null,ja(this.dj)||O)ja(this.$h)||(a=this.$h.Ke,a.normalize=this.Kn,a.buffer=this.ga);else{var a=new r(this,this.dj);a.play(this.bl,this.km,this.qj);this.bj&&a.pause();z.push(a)}}};n.prototype.qn=function(){switch(this.X){case 0:var b=4<=this.ga.readyState;b&&(this.lm=!0);return b||this.lm;case 1:return!!this.Ie||!!this.ga;case 2:return!0;case 3:return!0}return!1};n.prototype.ss=function(){switch(this.X){case 0:return this.qn();
case 1:return!!this.ga;case 2:return!0;case 3:return!0}return!1};n.prototype.js=function(){switch(this.X){case 0:return!!this.ga.error;case 1:return this.lk}return!1};r.prototype.Ef=function(){switch(this.X){case 0:return this.p.ended;case 1:return 1===this.buffer.X?!this.Ld&&!this.xb&&this.p.loop||this.lc?!1:this.Ff:this.p.ended;case 2:return this.Ff;case 3:!0}return!0};r.prototype.xq=function(){return this.Ld||this.xb?!0:this.Ef()};r.prototype.Pl=function(b){1===E&&(!this.sd&&b?this.Xa&&(this.Oa||
(this.Oa=A.createPanner(),this.Oa.panningModel="number"===typeof this.Oa.panningModel?pa:["equalpower","HRTF","soundfield"][pa],this.Oa.distanceModel="number"===typeof this.Oa.distanceModel?N:["linear","inverse","exponential"][N],this.Oa.refDistance=ta,this.Oa.maxDistance=la,this.Oa.rolloffFactor=Ga),this.Xa.disconnect(),this.Xa.connect(this.Oa),this.Oa.connect(l(this.tag)),this.sd=!0):this.sd&&!b&&this.Xa&&(this.Oa.disconnect(),this.Xa.disconnect(),this.Xa.connect(l(this.tag)),this.sd=!1))};r.prototype.Ol=
function(b,a,c,d,g,e){this.sd&&1===E&&(this.Oa.setPosition(b,a,0),this.Oa.setOrientation(Math.cos(W(c)),Math.sin(W(c)),0),this.Oa.coneInnerAngle=d,this.Oa.coneOuterAngle=g,this.Oa.coneOuterGain=e,this.Yn=b,this.Zn=a,this.Un=c,this.Vn=d,this.Wn=g,this.Xn=e)};r.prototype.vh=function(b){this.sd&&1===E&&(this.Na||(this.Na=new g),this.Na.vh(b))};r.prototype.Fa=function(b){if(this.sd&&1===E&&this.Na&&this.Na.xi()&&this.Gf()){this.Na.Fa(b);b=this.Na.L;var a=Ua(b.x,b.y,-b.n.Ma(),G,K,!0),c=Ua(b.x,b.y,-b.n.Ma(),
G,K,!1);this.Oa.setPosition(a,c,0);a=0;"undefined"!==typeof this.Na.L.k&&(a=b.k-b.n.Ma(),this.Oa.setOrientation(Math.cos(a),Math.sin(a),0));a=Ua(this.Na.yk(),this.Na.zk(),-b.n.Ma(),0,0,!0);c=Ua(this.Na.yk(),this.Na.zk(),-b.n.Ma(),0,0,!1);this.Oa.setVelocity(a,c,0)}};r.prototype.play=function(b,a,c){var d=this.p;this.od=b;this.volume=a;c=c||0;switch(this.X){case 0:1!==d.playbackRate&&(d.playbackRate=1);d.volume!==a*H&&(d.volume=a*H);d.loop!==b&&(d.loop=b);d.muted&&(d.muted=!1);if(d.currentTime!==c)try{d.currentTime=
c}catch(g){}if(this.Tc&&Oa&&!I.rb)Pa.push(this);else try{this.p.play()}catch(e){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",e)}break;case 1:this.muted=!1;this.Rf=1;if(1===this.buffer.X)this.Xa.gain.value=a*H,this.Ld||(this.p=A.createBufferSource(),this.p.buffer=this.buffer.ga,this.p.connect(this.Xa)),this.p.onended=this.tl,this.Oh=this.p,this.p.loop=b,this.Ff=!1,0===c?m(this.p):x(this.p,c,this.Ve());else{1!==d.playbackRate&&(d.playbackRate=
1);d.loop!==b&&(d.loop=b);d.volume=a*H;if(d.currentTime!==c)try{d.currentTime=c}catch(f){}this.Tc&&Oa&&!I.rb?Pa.push(this):d.play()}break;case 2:(!this.Ld&&this.xb||0!==c)&&d.seekTo(c);d.play();this.Ff=!1;break;case 3:I.Rb?AppMobi.context.playSound(this.src,b):AppMobi.player.playSound(this.src,b)}this.playbackRate=1;this.startTime=(this.Hf?I.lb.C:I.Zd.C)-c;this.lc=this.xb=this.Ld=!1};r.prototype.stop=function(){switch(this.X){case 0:this.p.paused||this.p.pause();break;case 1:1===this.buffer.X?t(this.p):
this.p.paused||this.p.pause();break;case 2:this.p.stop();break;case 3:I.Rb&&AppMobi.context.stopSound(this.src)}this.xb=!0;this.lc=!1};r.prototype.pause=function(){if(!(this.Ld||this.xb||this.Ef()||this.lc)){switch(this.X){case 0:this.p.paused||this.p.pause();break;case 1:1===this.buffer.X?(this.ec=this.wk(!0),this.od&&(this.ec=this.ec%this.Ve()),this.lc=!0,t(this.p)):this.p.paused||this.p.pause();break;case 2:this.p.pause();break;case 3:I.Rb&&AppMobi.context.stopSound(this.src)}this.lc=!0}};r.prototype.ht=
function(){if(!(this.Ld||this.xb||this.Ef())&&this.lc){switch(this.X){case 0:this.p.play();break;case 1:1===this.buffer.X?(this.p=A.createBufferSource(),this.p.buffer=this.buffer.ga,this.p.connect(this.Xa),this.p.onended=this.tl,this.Oh=this.p,this.p.loop=this.od,this.Xa.gain.value=H*this.volume*this.Rf,this.Fj(),this.startTime=(this.Hf?I.lb.C:I.Zd.C)-this.ec/(this.playbackRate||.001),x(this.p,this.ec,this.Ve())):this.p.play();break;case 2:this.p.play();break;case 3:I.Rb&&AppMobi.context.resumeSound(this.src)}this.lc=
!1}};r.prototype.seek=function(b){if(!(this.Ld||this.xb||this.Ef()))switch(this.X){case 0:try{this.p.currentTime=b}catch(a){}break;case 1:if(1===this.buffer.X)this.lc?this.ec=b:(this.pause(),this.ec=b,this.ht());else try{this.p.currentTime=b}catch(c){}break;case 3:I.Rb&&AppMobi.context.seekSound(this.src,b)}};r.prototype.dt=function(b){1===this.X&&(this.sd?(this.Oa.disconnect(),this.Oa.connect(b)):(this.Xa.disconnect(),this.Xa.connect(b)))};r.prototype.Ve=function(){var b=0;switch(this.X){case 0:"undefined"!==
typeof this.p.duration&&(b=this.p.duration);break;case 1:b=this.buffer.ga.duration;break;case 2:b=this.p.getDuration();break;case 3:I.Rb&&(b=AppMobi.context.getDurationSound(this.src))}return b};r.prototype.wk=function(b){var a=this.Ve(),c=0;switch(this.X){case 0:"undefined"!==typeof this.p.currentTime&&(c=this.p.currentTime);break;case 1:if(1===this.buffer.X){if(this.lc)return this.ec;c=(this.Hf?I.lb.C:I.Zd.C)-this.startTime}else"undefined"!==typeof this.p.currentTime&&(c=this.p.currentTime);break;
case 3:I.Rb&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}b&&(c*=this.playbackRate);!this.od&&c>a&&(c=a);return c};r.prototype.Gf=function(){return!this.lc&&!this.Ld&&!this.xb&&!this.Ef()};r.prototype.Mt=function(){var b=this.volume*H;isFinite(b)||(b=0);switch(this.X){case 0:"undefined"!==typeof this.p.volume&&this.p.volume!==b&&(this.p.volume=b);break;case 1:1===this.buffer.X?this.Xa.gain.value=b*this.Rf:"undefined"!==typeof this.p.volume&&this.p.volume!==b&&(this.p.volume=b)}};r.prototype.gi=
function(b){switch(this.X){case 0:this.p.muted!==!!b&&(this.p.muted=!!b);break;case 1:1===this.buffer.X?(this.Rf=b?0:1,this.Xa.gain.value=H*this.volume*this.Rf):this.p.muted!==!!b&&(this.p.muted=!!b)}};r.prototype.Bt=function(){this.Lf=!0;this.gi(this.Lf||this.$g)};r.prototype.qo=function(b){this.$g=!!b;this.gi(this.Lf||this.$g)};r.prototype.Fj=function(){var b=this.playbackRate;this.Hf&&(b*=I.fg);switch(this.X){case 0:this.p.playbackRate!==b&&(this.p.playbackRate=b);break;case 1:1===this.buffer.X?
this.p.playbackRate.value!==b&&(this.p.playbackRate.value=b):this.p.playbackRate!==b&&(this.p.playbackRate=b)}};r.prototype.Dt=function(b){switch(this.X){case 0:b?this.Gf()?(this.xc=!0,this.p.pause()):this.xc=!1:this.xc&&(this.p.play(),this.xc=!1);break;case 1:b?this.Gf()?(this.xc=!0,1===this.buffer.X?(this.ec=this.wk(!0),this.od&&(this.ec=this.ec%this.Ve()),t(this.p)):this.p.pause()):this.xc=!1:this.xc&&(1===this.buffer.X?(this.p=A.createBufferSource(),this.p.buffer=this.buffer.ga,this.p.connect(this.Xa),
this.p.onended=this.tl,this.Oh=this.p,this.p.loop=this.od,this.Xa.gain.value=H*this.volume*this.Rf,this.Fj(),this.startTime=(this.Hf?I.lb.C:I.Zd.C)-this.ec/(this.playbackRate||.001),x(this.p,this.ec,this.Ve())):this.p.play(),this.xc=!1);break;case 2:b?this.Gf()?(this.p.pause(),this.xc=!0):this.xc=!1:this.xc&&(this.xc=!1,this.p.play())}};R.ca=function(b){this.type=b;I=this.b=b.b;U=this;this.Sb=null;this.ih=-600;!(this.b.bh||this.b.yi&&(this.b.Sg||this.b.Ai))||this.b.Tg||this.b.Aa||this.b.Mk||(Oa=!0);
A=null;"undefined"!==typeof AudioContext?(E=1,A=new AudioContext):"undefined"!==typeof webkitAudioContext&&(E=1,A=new webkitAudioContext);Oa&&document.addEventListener("touchend",function(){if(!lc&&A){var b=A.createBuffer(1,1,22050),a=A.createBufferSource();a.buffer=b;a.connect(A.destination);m(a);lc=!0}var c;if(Oa){if(!O)for(b=0,a=Pa.length;b<a;++b)c=Pa[b],c.xb||c.lc||c.p.play();V(Pa)}},!0);1!==E&&(this.b.uc&&"undefined"!==typeof window.Media?E=2:this.b.pn&&(E=3));2===E&&(P=location.href,b=P.lastIndexOf("/"),
-1<b&&(P=P.substr(0,b+1)),P=P.replace("file://",""));if(this.b.rn&&this.b.us&&"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.Bd(this);else{if(this.b.Rb)L=this.b.yi;else try{L=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(a){L=!1}this.b.Zl(this)}};var qa=R.ca.prototype;qa.S=function(){this.b.vf=this;J=this.H[0];this.Vd=this.H[1];this.Qs=0!==this.H[2];pa=this.H[3];N=this.H[4];
this.ih=-this.H[5];ta=this.H[6];la=this.H[7];Ga=this.H[8];this.Sb=new g;var b=this.b.G||this.b.width,a=this.b.F||this.b.height;1===E&&("undefined"!==typeof A.listener.dopplerFactor&&(A.listener.dopplerFactor=0),A.listener.setPosition(b/2,a/2,this.ih),A.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(b,a){ha&&ha.disconnect();rb=a.toLowerCase();ha=A.createMediaStreamSource(b);ha.connect(l(rb))});this.b.nq(function(b){U.Ms(b)});var c=this;this.b.Oj(function(b){c.ml(b)})};qa.ml=
function(b){var a,c,d;a=0;for(c=z.length;a<c;a++)d=z[a],d.Na&&d.Na.L===b&&(d.Na.L=null,d.sd&&d.Gf()&&d.od&&d.stop());this.Sb.L===b&&(this.Sb.L=null)};qa.wb=function(){var b={silent:O,masterVolume:H,listenerZ:this.ih,listenerUid:this.Sb.xi()?this.Sb.L.uid:-1,playing:[],effects:{}},a=b.playing,c,d,g,e,f,k;c=0;for(d=z.length;c<d;c++)g=z[c],!g.Gf()||3===this.Vd||g.Tc&&1===this.Vd||!g.Tc&&2===this.Vd||(e=g.wk(),g.od&&(e=e%g.Ve()),e={tag:g.tag,buffersrc:g.buffer.src,is_music:g.Tc,playbackTime:e,volume:g.volume,
looping:g.od,muted:g.Lf,playbackRate:g.playbackRate,paused:g.lc,resume_position:g.ec},g.sd&&(e.pan={},k=e.pan,g.Na&&g.Na.xi()?k.objUid=g.Na.L.uid:(k.x=g.Yn,k.y=g.Zn,k.a=g.Un),k.ia=g.Vn,k.oa=g.Wn,k.og=g.Xn),a.push(e));a=b.effects;for(f in S)if(S.hasOwnProperty(f)){g=[];c=0;for(d=S[f].length;c<d;c++)g.push({type:S[f][c].type,params:S[f][c].Wc});a[f]=g}return b};var Qa=[];qa.Tb=function(c){var n=c.silent;H=c.masterVolume;this.ih=c.listenerZ;this.Sb.vh(null);var m=c.listenerUid;-1!==m&&(this.Sb.Oi=m,
Qa.push(this.Sb));var m=c.playing,r,l,q,p,t,x,ea,w,F,v,A;if(3!==this.Vd)for(r=0,l=z.length;r<l;r++)F=z[r],F.Tc&&1===this.Vd||(F.Tc||2!==this.Vd)&&F.stop();for(t in S)if(S.hasOwnProperty(t))for(r=0,l=S[t].length;r<l;r++)S[t][r].remove();Ya(S);for(t in c.effects)if(c.effects.hasOwnProperty(t))for(x=c.effects[t],r=0,l=x.length;r<l;r++)switch(q=x[r].type,v=x[r].params,q){case "filter":ba(t,new y(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "delay":ba(t,new k(v[0],v[1],v[2]));break;case "convolve":q=v[2];
F=this.oi(q,!1);F.ga?q=new h(F.ga,v[0],v[1],q):(q=new h(null,v[0],v[1],q),F.Kn=v[0],F.$h=q);ba(t,q);break;case "flanger":ba(t,new a(v[0],v[1],v[2],v[3],v[4]));break;case "phaser":ba(t,new d(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "gain":ba(t,new e(v[0]));break;case "tremolo":ba(t,new f(v[0],v[1]));break;case "ringmod":ba(t,new C(v[0],v[1]));break;case "distortion":ba(t,new D(v[0],v[1],v[2],v[3],v[4]));break;case "compressor":ba(t,new u(v[0],v[1],v[2],v[3],v[4]));break;case "analyser":ba(t,new b(v[0],
v[1]))}r=0;for(l=m.length;r<l;r++)3===this.Vd||(c=m[r],q=c.buffersrc,p=c.is_music,t=c.tag,x=c.playbackTime,ea=c.looping,w=c.volume,A=(v=c.pan)&&v.hasOwnProperty("objUid")?v.objUid:-1,p&&1===this.Vd)||!p&&2===this.Vd||((F=this.Wm(q,t,p,ea,w))?(F.ec=c.resume_position,F.Pl(!!v),F.play(ea,w,x),F.Fj(),F.Mt(),F.gi(F.Lf||F.$g),c.paused&&F.pause(),c.muted&&F.Bt(),F.gi(F.Lf||F.$g),v&&(-1!==A?(F.Na=F.Na||new g,F.Na.Oi=A,Qa.push(F.Na)):F.Ol(v.x,v.y,v.a,v.ia,v.oa,v.og))):(F=this.oi(q,p),F.qj=x,F.bj=c.paused,
v&&(-1!==A?F.Vf.push({Mn:A,Fk:v.ia,il:v.oa,ll:v.og,Go:t}):F.Vf.push({x:v.x,y:v.y,iq:v.a,Fk:v.ia,il:v.oa,ll:v.og,Go:t}))));if(n&&!O){r=0;for(l=z.length;r<l;r++)z[r].qo(!0);O=!0}else if(!n&&O){r=0;for(l=z.length;r<l;r++)z[r].qo(!1);O=!1}};qa.hd=function(){var b,a,c,d;b=0;for(a=Qa.length;b<a;b++)c=Qa[b],d=this.b.Jg(c.Oi),c.vh(d),c.Oi=-1,d&&(G=d.x,K=d.y);V(Qa)};qa.Ms=function(b){if(!this.Qs){!b&&A&&A.resume&&A.resume();var a,c;a=0;for(c=z.length;a<c;a++)z[a].Dt(b);b&&A&&A.suspend&&A.suspend()}};qa.Fa=
function(){var b=this.b.Ne,a,c,d;a=0;for(c=z.length;a<c;a++)d=z[a],d.Fa(b),0!==J&&d.Fj();var g,e;for(g in S)if(S.hasOwnProperty(g))for(d=S[g],a=0,c=d.length;a<c;a++)e=d[a],e.Fa&&e.Fa();1===E&&this.Sb.xi()&&(this.Sb.Fa(b),G=this.Sb.L.x,K=this.Sb.L.y,A.listener.setPosition(this.Sb.L.x,this.Sb.L.y,this.ih),A.listener.setVelocity(this.Sb.yk(),this.Sb.zk(),0))};var Ra=[];qa.Ct=function(b){var a,c,d,g,e,f=0;a=0;for(c=b.length;a<c;++a)if(d=b[a],g=d[0],d=2*d[1],(e=4<g.length&&".ogg"===g.substr(g.length-4))&&
L||!e&&!L)Ra.push({filename:g,size:d,L:null}),f+=d;return f};qa.Gt=function(){var b,a,c,d;b=0;for(a=Ra.length;b<a;++b)c=Ra[b],d=this.b.mk+c.filename,c.L=this.oi(d,!1)};qa.Qr=function(){var b=0,a,c,d;a=0;for(c=Ra.length;a<c;++a)d=Ra[a],d.L.ss()||d.L.js()||this.b.Aa||this.b.Ai?b+=d.size:d.L.qn()&&(b+=Math.floor(d.size/2));return b};qa.oi=function(b,a){var c,d,g,e=null;c=0;for(d=w.length;c<d;c++)if(g=w[c],g.src===b){e=g;break}e||(e=new n(b,a),w.push(e));return e};qa.Wm=function(b,a,c,d,g){var e,f,k;
e=0;for(f=z.length;e<f;e++)if(k=z[e],k.src===b&&(k.xq()||c))return k.tag=a,k;b=this.oi(b,c);if(!b.ga)return"<preload>"!==a&&(b.dj=a,b.bl=d,b.km=g),null;k=new r(b,a);z.push(k);return k};var Ia=[];F.prototype.Kh=function(b){return kb(wa,b)};R.q=new F;ea.prototype.Play=function(b,a,c,d){!O&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1<c&&(c=1),v=this.Wm(this.b.mk+b[0]+(L?".ogg":".m4a"),d,b[1],0!==a,c))&&(v.Pl(!1),v.play(0!==a,c))};ea.prototype.bq=function(){var b,a;b=0;for(a=z.length;b<a;b++)z[b].stop()};
R.P=new ea;R.Ca=new function(){}})();function gc(p){this.b=p}
(function(){function p(){}function l(){}function c(){}var q=gc.prototype;q.na=function(c){this.wa=c;this.b=c.b};q.na.prototype.S=function(){};q.ca=function(c){this.type=c;this.b=c.b;this.Vj=Array(4);this.Jo=this.Bj=this.gg=this.ue=this.te=0;this.Ck=!1};var m=q.ca.prototype;m.S=function(){var c=this;if(!this.b.Aa){jQuery(document).mousemove(function(k){c.pl(k)});jQuery(document).mousedown(function(k){c.ol(k)});jQuery(document).mouseup(function(k){c.ql(k)});jQuery(document).dblclick(function(k){c.Ks(k)});
var k=function(k){c.Ns(k)};document.addEventListener("mousewheel",k,!1);document.addEventListener("DOMMouseScroll",k,!1)}};var x={left:0,top:0};m.pl=function(c){var k=this.b.Aa?x:jQuery(this.b.canvas).offset();this.te=c.pageX-k.left;this.ue=c.pageY-k.top};m.Fn=function(){return 0<this.b.Ob?!0:0<=this.te&&0<=this.ue&&this.te<this.b.width&&this.ue<this.b.height};m.ol=function(c){this.Fn()&&(this.Vj[c.which]=!0,this.b.rb=!0,this.b.trigger(gc.prototype.q.xp,this),this.gg=c.which-1,this.Bj=0,this.b.trigger(gc.prototype.q.nm,
this),this.b.trigger(gc.prototype.q.tm,this),this.b.rb=!1)};m.ql=function(c){this.Vj[c.which]&&(this.b.vi&&!this.b.nd&&c.preventDefault(),this.b.vi=!0,this.Vj[c.which]=!1,this.b.rb=!0,this.gg=c.which-1,this.b.trigger(gc.prototype.q.Lp,this),this.b.rb=!1)};m.Ks=function(c){this.Fn()&&(c.preventDefault(),this.b.rb=!0,this.gg=c.which-1,this.Bj=1,this.b.trigger(gc.prototype.q.nm,this),this.b.trigger(gc.prototype.q.tm,this),this.b.rb=!1)};m.Ns=function(c){this.Jo=0>(c.wheelDelta?c.wheelDelta:c.detail?
-c.detail:0)?0:1;this.Ck=!1;this.b.rb=!0;this.b.trigger(gc.prototype.q.Op,this);this.b.rb=!1;this.Ck&&lb(c)&&c.preventDefault()};p.prototype.nm=function(c,k){return c===this.gg&&k===this.Bj};p.prototype.xp=function(){return!0};p.prototype.Lp=function(c){return c===this.gg};p.prototype.tm=function(c,k,h){return c!==this.gg||k!==this.Bj?!1:this.b.Eh(h,this.te,this.ue)};p.prototype.Op=function(c){this.Ck=!0;return c===this.Jo};q.q=new p;var t=null;l.prototype.Rp=function(c){this.b.Aa||this.b.nd||!c||
(c=c.qi())&&c.ic&&(c=c.ic,t!==c&&(t=c,c="url("+c.Kr()+") "+Math.round(c.Pb*c.width)+" "+Math.round(c.Qb*c.height)+", auto",document.body.style.cursor="",document.body.style.cursor=c))};q.P=new l;c.prototype.Lh=function(c,k){var h,a,d,e,f;ja(k)?(h=this.b.Md(0),a=h.scale,d=h.Lb,e=h.$b,f=h.k,h.scale=1,h.Lb=1,h.$b=1,h.k=0,c.A(h.La(this.te,this.ue,!0)),h.scale=a,h.Lb=d,h.$b=e,h.k=f):(h=ka(k)?this.b.Md(k):this.b.Ig(k))?c.A(h.La(this.te,this.ue,!0)):c.A(0)};c.prototype.Mh=function(c,k){var h,a,d,e,f;ja(k)?
(h=this.b.Md(0),a=h.scale,d=h.Lb,e=h.ac,f=h.k,h.scale=1,h.Lb=1,h.ac=1,h.k=0,c.A(h.La(this.te,this.ue,!1)),h.scale=a,h.Lb=d,h.ac=e,h.k=f):(h=ka(k)?this.b.Md(k):this.b.Ig(k))?c.A(h.La(this.te,this.ue,!1)):c.A(0)};q.Ca=new c})();function Y(p){this.b=p}
(function(){function p(){if(0===this.fk.length){var b=document.createElement("canvas");b.width=this.width;b.height=this.height;var a=b.getContext("2d");this.bg?a.drawImage(this.fa,this.Tf,this.Uf,this.width,this.height,0,0,this.width,this.height):a.drawImage(this.fa,0,0,this.width,this.height);this.fk=b.toDataURL("image/png")}return this.fk}function l(){}function c(b){b[0]=0;b[1]=0;b[2]=0;e.push(b)}function q(b,a){return b<a?""+b+","+a:""+a+","+b}function m(b,a,c,d){a=a.uid;c=c.uid;var f=q(a,c);if(b.hasOwnProperty(f))b[f][2]=
d;else{var k=e.length?e.pop():[0,0,0];k[0]=a;k[1]=c;k[2]=d;b[f]=k}}function x(b,a,d){a=q(a.uid,d.uid);b.hasOwnProperty(a)&&(c(b[a]),delete b[a])}function t(b,a,c){a=q(a.uid,c.uid);if(b.hasOwnProperty(a))return f=b[a][2],!0;f=-2;return!1}function y(){}var k=Y.prototype;k.na=function(b){this.wa=b;this.b=b.b};var h=k.na.prototype;h.S=function(){if(!this.K){var b,a,c,d,e,f,k,h,m;this.Nc=[];this.Og=!1;b=0;for(a=this.Yb.length;b<a;b++){e=this.Yb[b];k={};k.name=e[0];k.speed=e[1];k.loop=e[2];k.Fl=e[3];k.mj=
e[4];k.bo=e[5];k.Z=e[6];k.frames=[];c=0;for(d=e[7].length;c<d;c++)f=e[7][c],h={},h.Wl=f[0],h.Xl=f[1],h.Tf=f[2],h.Uf=f[3],h.width=f[4],h.height=f[5],h.duration=f[6],h.Pb=f[7],h.Qb=f[8],h.Gk=f[9],h.ej=f[10],h.co=f[11],h.bg=0!==h.width,h.fk="",h.Kr=p,m={left:0,top:0,right:1,bottom:1},h.Ql=m,h.za=null,(m=this.b.Ar(f[0]))?h.fa=m:(h.fa=new Image,h.fa.Bq=f[0],h.fa.Nm=f[1],h.fa.vq=null,this.b.Wo(h.fa,f[0])),k.frames.push(h),this.Nc.push(h);this.Yb[b]=k}}};h.Ro=function(){var b,a,c;b=0;for(a=this.i.length;b<
a;b++)c=this.i[b],c.bi=c.ic.za};h.Wi=function(){if(!this.K){var b,a,c;b=0;for(a=this.Nc.length;b<a;++b)c=this.Nc[b],c.fa.vq=null,c.za=null;this.Og=!1;this.Ro()}};h.rl=function(){if(!this.K&&this.i.length){var b,a,c;b=0;for(a=this.Nc.length;b<a;++b)c=this.Nc[b],c.za=this.b.D.Zk(c.fa,!1,this.b.W,c.co);this.Ro()}};h.$k=function(){if(!this.K&&!this.Og&&this.b.D){var b,a,c;b=0;for(a=this.Nc.length;b<a;++b)c=this.Nc[b],c.za=this.b.D.Zk(c.fa,!1,this.b.W,c.co);this.Og=!0}};h.gm=function(){if(!this.K&&!this.i.length&&
this.Og){var b,a,c;b=0;for(a=this.Nc.length;b<a;++b)c=this.Nc[b],this.b.D.deleteTexture(c.za),c.za=null;this.Og=!1}};var a=[];h.zl=function(b){var c,d,e;V(a);c=0;for(d=this.Nc.length;c<d;++c)e=this.Nc[c].fa,-1===a.indexOf(e)&&(b.drawImage(e,0,0),a.push(e))};k.ca=function(b){this.type=b;this.b=b.b;b=this.type.Yb[0].frames[0].ej;this.tb?this.ja.zh(b):this.ja=new eb(b)};var d=k.ca.prototype;d.S=function(){this.visible=0===this.H[0];this.Dd=0!==this.H[3];1===this.type.Yb.length&&1===this.type.Yb[0].frames.length||
0===this.type.Yb[0].speed||this.b.Zl(this);this.Ia=this.Vm(this.H[1])||this.type.Yb[0];this.B=this.H[2];0>this.B&&(this.B=0);this.B>=this.Ia.frames.length&&(this.B=this.Ia.frames.length-1);var b=this.Ia.frames[this.B];this.ja.zh(b.ej);this.Pb=b.Pb;this.Qb=b.Qb;this.Ag=this.Ia.speed;this.tb?this.jd.reset():this.jd=new cb;this.Kd=this.jd.C;this.He=!0;this.Cd=0;this.Ge=!0;this.ak=this.Fm="";this.yq=0;this.$j=-1;this.type.$k();var a,c,d,e,f,k,h,b=0;for(a=this.type.Yb.length;b<a;b++)for(e=this.type.Yb[b],
c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.fa.width,f.height=f.fa.height),f.bg&&(h=f.fa,k=f.Ql,k.left=f.Tf/h.width,k.top=f.Uf/h.height,k.right=(f.Tf+f.width)/h.width,k.bottom=(f.Uf+f.height)/h.height,0===f.Tf&&0===f.Uf&&f.width===h.width&&f.height===h.height&&(f.bg=!1));this.ic=this.Ia.frames[this.B];this.bi=this.ic.za};d.wb=function(){var b={a:this.Ia.Z,f:this.B,cas:this.Ag,fs:this.Kd,ar:this.Cd,at:this.jd.C};this.He||(b.ap=this.He);this.Ge||(b.af=this.Ge);return b};d.Tb=
function(b){var a=this.Gr(b.a);a&&(this.Ia=a);this.B=b.f;0>this.B&&(this.B=0);this.B>=this.Ia.frames.length&&(this.B=this.Ia.frames.length-1);this.Ag=b.cas;this.Kd=b.fs;this.Cd=b.ar;this.jd.reset();this.jd.C=b.at;this.He=b.hasOwnProperty("ap")?b.ap:!0;this.Ge=b.hasOwnProperty("af")?b.af:!0;this.ic=this.Ia.frames[this.B];this.bi=this.ic.za;this.ja.zh(this.ic.ej);this.Pb=this.ic.Pb;this.Qb=this.ic.Qb};d.Rj=function(b){this.B=b?0:this.Ia.frames.length-1;this.He=!1;this.Fm=this.Ia.name;this.b.trigger(Y.prototype.q.wp,
this);this.b.trigger(Y.prototype.q.vp,this);this.Cd=0};d.Sj=function(){return this.jd.C};d.Fa=function(){this.jd.add(this.b.Ue(this));this.ak.length&&this.Iq();0<=this.$j&&this.Jq();var b=this.jd.C,a=this.Ia,c=a.frames[this.B],d=c.duration/this.Ag;this.He&&b>=this.Kd+d&&(this.Ge?this.B++:this.B--,this.Kd+=d,this.B>=a.frames.length&&(a.bo?(this.Ge=!1,this.B=a.frames.length-2):a.loop?this.B=a.mj:(this.Cd++,this.Cd>=a.Fl?this.Rj(!1):this.B=a.mj)),0>this.B&&(a.bo?(this.B=1,this.Ge=!0,a.loop||(this.Cd++,
this.Cd>=a.Fl&&this.Rj(!0))):a.loop?this.B=a.mj:(this.Cd++,this.Cd>=a.Fl?this.Rj(!0):this.B=a.mj)),0>this.B?this.B=0:this.B>=a.frames.length&&(this.B=a.frames.length-1),b>this.Kd+a.frames[this.B].duration/this.Ag&&(this.Kd=b),b=a.frames[this.B],this.rf(c,b),this.b.Y=!0)};d.Vm=function(b){var a,c,d;a=0;for(c=this.type.Yb.length;a<c;a++)if(d=this.type.Yb[a],kb(d.name,b))return d;return null};d.Gr=function(b){var a,c,d;a=0;for(c=this.type.Yb.length;a<c;a++)if(d=this.type.Yb[a],d.Z===b)return d;return null};
d.Iq=function(){var b=this.Ia.frames[this.B],a=this.Vm(this.ak);this.ak="";!a||kb(a.name,this.Ia.name)&&this.He||(this.Ia=a,this.Ag=a.speed,0>this.B&&(this.B=0),this.B>=this.Ia.frames.length&&(this.B=this.Ia.frames.length-1),1===this.yq&&(this.B=0),this.He=!0,this.Kd=this.jd.C,this.Ge=!0,this.rf(b,this.Ia.frames[this.B]),this.b.Y=!0)};d.Jq=function(){var b=this.Ia.frames[this.B],a=this.B;this.B=Q(this.$j);0>this.B&&(this.B=0);this.B>=this.Ia.frames.length&&(this.B=this.Ia.frames.length-1);a!==this.B&&
(this.rf(b,this.Ia.frames[this.B]),this.Kd=this.jd.C,this.b.Y=!0);this.$j=-1};d.rf=function(b,a){var c=b.width,d=b.height,e=a.width,f=a.height;c!=e&&(this.width*=e/c);d!=f&&(this.height*=f/d);this.Pb=a.Pb;this.Qb=a.Qb;this.ja.zh(a.ej);this.V();this.ic=a;this.bi=a.za;c=0;for(d=this.T.length;c<d;c++)e=this.T[c],e.Ls&&e.Ls(b,a);this.b.trigger(Y.prototype.q.rf,this)};d.kd=function(b){b.globalAlpha=this.opacity;var a=this.ic,c=a.bg,d=a.fa,e=this.x,f=this.y,k=this.width,h=this.height;if(0===this.k&&0<=
k&&0<=h)e-=this.Pb*k,f-=this.Qb*h,this.b.Xc&&(e=Math.round(e),f=Math.round(f)),c?b.drawImage(d,a.Tf,a.Uf,a.width,a.height,e,f,k,h):b.drawImage(d,e,f,k,h);else{this.b.Xc&&(e=Math.round(e),f=Math.round(f));b.save();var m=0<k?1:-1,l=0<h?1:-1;b.translate(e,f);1===m&&1===l||b.scale(m,l);b.rotate(this.k*m*l);e=0-this.Pb*ma(k);f=0-this.Qb*ma(h);c?b.drawImage(d,a.Tf,a.Uf,a.width,a.height,e,f,ma(k),ma(h)):b.drawImage(d,e,f,ma(k),ma(h));b.restore()}};d.Me=function(b){this.jc(b)};d.jc=function(b){b.yc(this.bi);
b.Zf(this.opacity);var a=this.ic,c=this.Mb;if(this.b.Xc){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;a.bg?b.Ud(c.gb+d,c.hb+e,c.Jb+d,c.Kb+e,c.Cb+d,c.Db+e,c.Ab+d,c.Bb+e,a.Ql):b.Bl(c.gb+d,c.hb+e,c.Jb+d,c.Kb+e,c.Cb+d,c.Db+e,c.Ab+d,c.Bb+e)}else a.bg?b.Ud(c.gb,c.hb,c.Jb,c.Kb,c.Cb,c.Db,c.Ab,c.Bb,a.Ql):b.Bl(c.gb,c.hb,c.Jb,c.Kb,c.Cb,c.Db,c.Ab,c.Bb)};d.Mr=function(b){var a=this.ic,c,d;c=0;for(d=a.Gk.length;c<d;c++)if(kb(b,a.Gk[c][0]))return c;return-1};d.Hg=function(b,a){var c=this.ic,d=c.Gk,
e;M(b)?e=this.Mr(b):e=b-1;e=Q(e);if(0>e||e>=d.length)return a?this.x:this.y;var f=(d[e][1]-c.Pb)*this.width,d=d[e][2],d=(d-c.Qb)*this.height,c=Math.cos(this.k);e=Math.sin(this.k);var k=f*c-d*e,d=d*c+f*e,f=k+this.x,d=d+this.y;return a?f:d};var e=[],f=-2,C=[];l.prototype.zp=function(b){if(!b)return!1;var a=this.b,d=a.sk(),e=d.type,k=null;d.I.collmemory?k=d.I.collmemory:(k={},d.I.collmemory=k);d.I.spriteCreatedDestroyCallback||(d.I.spriteCreatedDestroyCallback=!0,a.Oj(function(b){var a=d.I.collmemory;
b=b.uid;var g,e;for(g in a)a.hasOwnProperty(g)&&(e=a[g],e[0]===b||e[1]===b)&&(c(a[g]),delete a[g])}));var h=e.O(),l=b.O(),h=h.Zb(),q,u,p,y,D,E,A,w=this.b.cd,z=w-1,v=a.jb().ib;for(u=0;u<h.length;u++){p=h[u];l.U?(p.qa(),this.b.Xm(p.n,b,p.Ba,C),q=C):q=l.Zb();for(y=0;y<q.length;y++)D=q[y],a.lf(p,D)||a.zq(p,D)?(E=t(k,p,D),E=!E||f<z,m(k,p,D,w),E&&(a.rh(v.la),E=e.O(),A=b.O(),E.U=!1,A.U=!1,e===b?(E.i.length=2,E.i[0]=p,E.i[1]=D,e.Cc()):(E.i.length=1,A.i.length=1,E.i[0]=p,A.i[0]=D,e.Cc(),b.Cc()),v.Gl(),a.we(v.la))):
x(k,p,D);V(C)}return!1};var D=new fa,u=!1;new T(0,0,0,0);h.finish=function(b){if(u){if(b){var a=this.b.jb().ib.Vc;b=null.O();var c=D.Fe(),d,e;if(b.U){b.U=!1;V(b.i);d=0;for(e=c.length;d<e;++d)b.i[d]=c[d];if(a)for(V(b.ea),d=0,e=null.i.length;d<e;++d)c=null.i[d],D.contains(c)||b.ea.push(c)}else if(a)for(a=b.i.length,d=0,e=c.length;d<e;++d)b.i[a+d]=c[d],Da(b.ea,c[d]);else Aa(b.i,c);null.Cc()}D.clear();u=!1}};l.prototype.vp=function(b){return kb(this.Fm,b)};l.prototype.wp=function(){return!0};l.prototype.rf=
function(){return!0};k.q=new l;y.prototype.aq=function(b,a,c){if(b&&a&&(a=this.b.ek(b,a,this.Hg(c,!0),this.Hg(c,!1)))){"undefined"!==typeof a.k&&(a.k=this.k,a.V());this.b.vc++;var d,e,f;this.b.trigger(Object.getPrototypeOf(b.wa).q.mg,a);if(a.Gb)for(d=0,e=a.siblings.length;d<e;d++)f=a.siblings[d],this.b.trigger(Object.getPrototypeOf(f.type.wa).q.mg,f);this.b.vc--;d=this.b.Ir();c=!1;if(ja(d.I.Spawn_LastExec)||d.I.Spawn_LastExec<this.b.Se)c=!0,d.I.Spawn_LastExec=this.b.Se;if(b!=this.type&&(b=b.O(),b.U=
!1,c?(V(b.i),b.i[0]=a):b.i.push(a),a.Gb))for(d=0,e=a.siblings.length;d<e;d++)f=a.siblings[d],b=f.type.O(),b.U=!1,c?(V(b.i),b.i[0]=f):b.i.push(f)}};k.P=new y;k.Ca=new function(){}})();function hc(p){this.b=p}
(function(){function p(){return y.length?y.pop():{}}function l(c){var h,a;h=0;for(a=c.length;h<a;h++)y.push(c[h]);V(c)}function c(c){return c.length&&" "===c.charAt(c.length-1)?c.substring(0,c.length-1):c}function q(){}var m=hc.prototype;m.S=function(){m.P.$p=function(c){this.width!==c&&(this.width=c,this.nf=!0,this.V())}};m.na=function(c){this.wa=c;this.b=c.b};var x=m.na.prototype;x.S=function(){};x.Wi=function(){if(!this.K){var c,h,a;c=0;for(h=this.i.length;c<h;c++)a=this.i[c],a.qd=null,a.ef=null,
a.mc=null}};m.ca=function(c){this.type=c;this.b=c.b;this.tb?V(this.qe):this.qe=[];this.nf=!0};x=m.ca.prototype;x.S=function(){this.text=this.H[0];this.visible=0===this.H[1];this.font=this.H[2];this.color=this.H[3];this.wi=this.H[4];this.Hj=this.H[5];this.mm=0===this.H[7];this.Wk=this.Ii=this.width;this.Hi=this.height;this.Yk=this.H[8];this.Bf=this.ke="";this.Eo=this.Fo=this.ye=0;this.Os();this.mc=this.ef=this.qd=null;this.In=!1;this.hh=this.b.cd;this.tb?this.ze.set(0,0,1,1):this.ze=new T(0,0,1,1);
this.b.D&&this.b.Zl(this)};x.Os=function(){var c=this.font.split(" "),h;for(h=0;h<c.length;h++)if("pt"===c[h].substr(c[h].length-2,2)){this.ye=parseInt(c[h].substr(0,c[h].length-2));this.kj=Math.ceil(this.ye/72*96)+4;0<h&&(this.Bf=c[h-1]);this.ke=c[h+1];for(h+=2;h<c.length;h++)this.ke+=" "+c[h];break}};x.wb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.wi,va:this.Hj,wr:this.mm,lho:this.Yk,fn:this.ke,fs:this.Bf,ps:this.ye,pxh:this.kj,tw:this.Fo,th:this.Eo,lrt:this.hh}};x.Tb=function(c){this.text=
c.t;this.font=c.f;this.color=c.c;this.wi=c.ha;this.Hj=c.va;this.mm=c.wr;this.Yk=c.lho;this.ke=c.fn;this.Bf=c.fs;this.ye=c.ps;this.kj=c.pxh;this.Fo=c.tw;this.Eo=c.th;this.hh=c.lrt;this.nf=!0;this.Wk=this.Ii=this.width;this.Hi=this.height};x.Fa=function(){if(this.b.D&&this.mc&&300<=this.b.cd-this.hh){var c=this.n;this.qa();var h=this.Ba;if(h.right<c.xa||h.bottom<c.ya||h.left>c.Ha||h.top>c.Ga)this.b.D.deleteTexture(this.mc),this.qd=this.ef=this.mc=null}};x.gf=function(){this.qd=this.ef=null;this.b.D&&
this.mc&&this.b.D.deleteTexture(this.mc);this.mc=null};x.So=function(){this.font=this.Bf+" "+this.ye.toString()+"pt "+this.ke;this.nf=!0;this.b.Y=!0};x.kd=function(c,h){c.font=this.font;c.textBaseline="top";c.fillStyle=this.color;c.globalAlpha=h?1:this.opacity;var a=1;h&&(a=this.n.kc(),c.save(),c.scale(a,a));if(this.nf||this.width!==this.Wk)this.type.wa.gq(this.text,this.qe,c,this.width,this.mm),this.nf=!1,this.Wk=this.width;this.qa();var a=h?0:this.Mb.gb,d=h?0:this.Mb.hb;this.b.Xc&&(a=a+.5|0,d=d+
.5|0);0===this.k||h||(c.save(),c.translate(a,d),c.rotate(this.k),d=a=0);var e=d+this.height,f=this.kj,f=f+this.Yk,m,l;1===this.Hj?d+=Math.max(this.height/2-this.qe.length*f/2,0):2===this.Hj&&(d+=Math.max(this.height-this.qe.length*f-2,0));for(l=0;l<this.qe.length&&!(m=a,1===this.wi?m=a+(this.width-this.qe[l].width)/2:2===this.wi&&(m=a+(this.width-this.qe[l].width)),c.fillText(this.qe[l].text,m,d),d+=f,d>=e-f);l++);(0!==this.k||h)&&c.restore();this.hh=this.b.cd};x.jc=function(c){if(!(1>this.width||
1>this.height)){var h=this.nf||this.In;this.In=!1;var a=this.n.kc(),d=this.n.Ma(),e=this.ze,f=a*this.width,m=a*this.height,l=Math.ceil(f),q=Math.ceil(m),b=this.b.G/2,g=this.b.F/2;this.ef||(this.qd=document.createElement("canvas"),this.qd.width=l,this.qd.height=q,this.Ii=l,this.Hi=q,h=!0,this.ef=this.qd.getContext("2d"));if(l!==this.Ii||q!==this.Hi)this.qd.width=l,this.qd.height=q,this.mc&&(c.deleteTexture(this.mc),this.mc=null),h=!0;h&&(this.ef.clearRect(0,0,l,q),this.kd(this.ef,!0),this.mc||(this.mc=
c.Ec(l,q,this.b.W,this.b.nd)),c.rv(this.qd,this.mc,this.b.nd));this.Ii=l;this.Hi=q;c.yc(this.mc);c.Zf(this.opacity);c.vd();c.translate(-b,-g);c.Ad();var n=this.Mb,h=this.n.Ea(n.gb,n.hb,!0,!0),b=this.n.Ea(n.gb,n.hb,!1,!0),g=this.n.Ea(n.Jb,n.Kb,!0,!0),p=this.n.Ea(n.Jb,n.Kb,!1,!0),t=this.n.Ea(n.Cb,n.Db,!0,!0),x=this.n.Ea(n.Cb,n.Db,!1,!0),y=this.n.Ea(n.Ab,n.Bb,!0,!0),n=this.n.Ea(n.Ab,n.Bb,!1,!0);if(this.b.Xc||0===this.k&&0===d)var R=(h+.5|0)-h,I=(b+.5|0)-b,h=h+R,b=b+I,g=g+R,p=p+I,t=t+R,x=x+I,y=y+R,n=
n+I;0===this.k&&0===d?(g=h+l,p=b,t=g,x=b+q,y=h,n=x,e.right=1,e.bottom=1):(e.right=f/l,e.bottom=m/q);c.Ud(h,b,g,p,t,x,y,n,e);c.vd();c.scale(a,a);c.Hl(-this.n.Ma());c.translate((this.n.xa+this.n.Ha)/-2,(this.n.ya+this.n.Ga)/-2);c.Ad();this.hh=this.b.cd}};var t=[];m.dq=function(c){V(t);for(var h="",a,d=0;d<c.length;)if(a=c.charAt(d),"\n"===a)h.length&&(t.push(h),h=""),t.push("\n"),++d;else if(" "===a||"\t"===a||"-"===a){do h+=c.charAt(d),d++;while(d<c.length&&(" "===c.charAt(d)||"\t"===c.charAt(d)));
t.push(h);h=""}else d<c.length&&(h+=a,d++);h.length&&t.push(h)};var y=[];m.gq=function(c,h,a,d,e){if(c&&c.length)if(2>=d)l(h);else{if(100>=c.length&&-1===c.indexOf("\n")){var f=a.measureText(c).width;if(f<=d){l(h);h.push(p());h[0].text=c;h[0].width=f;return}}this.hq(c,h,a,d,e)}else l(h)};m.hq=function(k,h,a,d,e){e&&(this.dq(k),k=t);var f="",m,l,q,b=0;for(q=0;q<k.length;q++)"\n"===k[q]?(b>=h.length&&h.push(p()),f=c(f),l=h[b],l.text=f,l.width=a.measureText(f).width,b++,f=""):(m=f,f+=k[q],l=a.measureText(f).width,
l>=d&&(b>=h.length&&h.push(p()),m=c(m),l=h[b],l.text=m,l.width=a.measureText(m).width,b++,f=k[q],e||" "!==f||(f="")));f.length&&(b>=h.length&&h.push(p()),f=c(f),l=h[b],l.text=f,l.width=a.measureText(f).width,b++);for(q=b;q<h.length;q++)y.push(h[q]);h.length=b};m.q=new function(){};q.prototype.Xp=function(c){ka(c)&&1E9>c&&(c=Math.round(1E10*c)/1E10);c=c.toString();this.text!==c&&(this.text=c,this.nf=!0,this.b.Y=!0)};q.prototype.Tp=function(c,h){var a="";switch(h){case 1:a="bold";break;case 2:a="italic";
break;case 3:a="bold italic"}if(c!==this.ke||a!==this.Bf)this.ke=c,this.Bf=a,this.So()};q.prototype.Up=function(c){this.ye!==c&&(this.ye=c,this.kj=Math.ceil(this.ye/72*96)+4,this.So())};m.P=new q;m.Ca=new function(){}})();function ic(p){this.b=p}
(function(){var p=ic.prototype;p.na=function(c){this.wa=c;this.b=c.b};var l=p.na.prototype;l.S=function(){this.K||(this.fa=new Image,this.fa.Nm=this.Xl,this.b.Wo(this.fa,this.Wl),this.za=this.pattern=null)};l.Wi=function(){this.K||(this.za=null)};l.rl=function(){if(!this.K&&this.i.length){this.za||(this.za=this.b.D.Zk(this.fa,!0,this.b.W,this.Yl));var c,l;c=0;for(l=this.i.length;c<l;c++)this.i[c].za=this.za}};l.$k=function(){this.K||this.za||!this.b.D||(this.za=this.b.D.Zk(this.fa,!0,this.b.W,this.Yl))};
l.gm=function(){this.K||this.i.length||!this.za||(this.b.D.deleteTexture(this.za),this.za=null)};l.zl=function(c){c.drawImage(this.fa,0,0)};p.ca=function(c){this.type=c;this.b=c.b};l=p.ca.prototype;l.S=function(){this.visible=0===this.H[0];this.ze=new T(0,0,0,0);this.hn=!1;this.fa=this.type.fa;this.b.D?(this.type.$k(),this.za=this.type.za):(this.type.pattern||(this.type.pattern=this.b.ka.createPattern(this.type.fa,"repeat")),this.pattern=this.type.pattern)};l.hd=function(){this.hn=!1;this.fa=this.type.fa};
l.gf=function(){this.b.D&&this.hn&&this.za&&(this.b.D.deleteTexture(this.za),this.za=null)};l.kd=function(c){c.globalAlpha=this.opacity;c.save();c.fillStyle=this.pattern;var l=this.x,m=this.y;this.b.Xc&&(l=Math.round(l),m=Math.round(m));var p=-(this.Pb*this.width),t=-(this.Qb*this.height),y=p%this.fa.width,k=t%this.fa.height;0>y&&(y+=this.fa.width);0>k&&(k+=this.fa.height);c.translate(l,m);c.rotate(this.k);c.translate(y,k);c.fillRect(p-y,t-k,this.width,this.height);c.restore()};l.Me=function(c){this.jc(c)};
l.jc=function(c){c.yc(this.za);c.Zf(this.opacity);var l=this.ze;l.right=this.width/this.fa.width;l.bottom=this.height/this.fa.height;var m=this.Mb;if(this.b.Xc){var p=Math.round(this.x)-this.x,t=Math.round(this.y)-this.y;c.Ud(m.gb+p,m.hb+t,m.Jb+p,m.Kb+t,m.Cb+p,m.Db+t,m.Ab+p,m.Bb+t,l)}else c.Ud(m.gb,m.hb,m.Jb,m.Kb,m.Cb,m.Db,m.Ab,m.Bb,l)};p.q=new function(){};p.P=new function(){};p.Ca=new function(){}})();function Z(p){this.b=p}
(function(){function p(c){k=c.x;h=c.y;a=c.z}function l(a,b,g,e){var f;f=d.length?d.pop():new c;f.init(a,b,g,e);return f}function c(){this.Bh=this.id=this.bf=this.$e=this.y=this.x=this.vj=this.uj=this.Vk=this.time=this.Ul=0;this.Gh=this.Cj=!1}function q(){}function m(){}var x=Z.prototype;x.na=function(a){this.wa=a;this.b=a.b};x.na.prototype.S=function(){};x.ca=function(a){this.type=a;this.b=a.b;this.touches=[];this.el=!1};var t=x.ca.prototype,y={left:0,top:0};t.Gg=function(a){var b,c;b=0;for(c=this.touches.length;b<
c;b++)if(this.touches[b].id===a)return b;return-1};var k=0,h=0,a=0,d=[];c.prototype.init=function(a,b,c,d){var e=Za();this.Ul=this.Vk=this.time=e;this.uj=a;this.vj=b;this.x=a;this.y=b;this.$e=a;this.bf=b;this.id=c;this.Bh=d;this.Gh=this.Cj=!1};c.prototype.update=function(a,b,c){this.Vk=this.time;this.time=a;this.$e=this.x;this.bf=this.y;this.x=b;this.y=c;!this.Gh&&15<=Va(this.uj,this.vj,this.x,this.y)&&(this.Gh=!0)};c.prototype.Ds=function(a,b){!this.Cj&&500<=Za()-this.Ul&&!this.Gh&&15>Va(this.uj,
this.vj,this.x,this.y)&&(this.Cj=!0,a.zd=this.Bh,a.hg=this.id,a.Cf=b,a.b.trigger(Z.prototype.q.Hp,a),a.Ed=this.x,a.Fd=this.y,a.b.trigger(Z.prototype.q.Ip,a),a.Cf=0)};var e=-1E3,f=-1E3,C=-1E4;c.prototype.Bn=function(a,b){if(!this.Cj){var c=Za();333>=c-this.Ul&&!this.Gh&&15>Va(this.uj,this.vj,this.x,this.y)&&(a.zd=this.Bh,a.hg=this.id,a.Cf=b,666>=c-C&&25>Va(e,f,this.x,this.y)?(a.b.trigger(Z.prototype.q.Bp,a),a.Ed=this.x,a.Fd=this.y,a.b.trigger(Z.prototype.q.Cp,a),f=e=-1E3,C=-1E4):(a.b.trigger(Z.prototype.q.Mp,
a),a.Ed=this.x,a.Fd=this.y,a.b.trigger(Z.prototype.q.um,a),e=this.x,f=this.y,C=c),a.Cf=0)}};t.S=function(){this.vs=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Cf=this.hg=this.zd=this.Fd=this.Ed=this.Bm=this.Am=this.zm=this.lq=this.kq=this.jq=this.aj=this.$i=this.Zi=0;this.Qt=0!==this.H[0];var a=0<this.b.Ob?document:this.b.canvas,b=document;this.b.Rb?b=a=window.Canvas:this.b.Ic&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.Rn(a)},
!1),a.addEventListener("pointermove",function(a){c.Qn(a)},!1),b.addEventListener("pointerup",function(a){c.Xi(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Xi(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},
!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.Rn(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Qn(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Xi(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Xi(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.Tn(a)},
!1),a.addEventListener("touchmove",function(a){c.Sn(a)},!1),b.addEventListener("touchend",function(a){c.sl(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.sl(a,!0)},!1));if(this.vs){var d=function(a){a=a.reading;c.zm=a.accelerationX;c.Am=a.accelerationY;c.Bm=a.accelerationZ},e=function(a){a=a.reading;c.Zi=a.yawDegrees;c.$i=a.pitchDegrees;c.aj=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged",
d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(f&&f.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",e)):(f&&f.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.Zi=a.alpha||
0;c.$i=a.beta||0;c.aj=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.jq=a.accelerationIncludingGravity.x||0,c.kq=a.accelerationIncludingGravity.y||0,c.lq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.zm=a.acceleration.x||0,c.Am=a.acceleration.y||0,c.Bm=a.acceleration.z||0)},!1);this.Qt&&!this.b.Aa&&(jQuery(document).mousemove(function(a){c.pl(a)}),jQuery(document).mousedown(function(a){c.ol(a)}),jQuery(document).mouseup(function(a){c.ql(a)}));
!this.b.bh&&this.b.uc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(p,null,{frequency:40});this.b.It(this)};t.Qn=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.Gg(a.pointerId),c=Za();if(0<=b){var d=this.b.Aa?y:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||b.update(c,a.pageX-d.left,a.pageY-d.top)}}};t.Rn=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&
"mouse"!==a.pointerType){a.preventDefault&&lb(a)&&a.preventDefault();var b=this.b.Aa?y:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Za();this.zd=this.touches.length;this.hg=a.pointerId;this.touches.push(l(c,b,a.pointerId,this.zd));this.b.rb=!0;this.b.trigger(Z.prototype.q.rm,this);this.b.trigger(Z.prototype.q.wm,this);this.Ed=c;this.Fd=b;this.b.trigger(Z.prototype.q.Mj,this);this.b.rb=!1}};t.Xi=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&
lb(a)&&a.preventDefault();var c=this.Gg(a.pointerId);this.zd=0<=c?this.touches[c].Bh:-1;this.hg=0<=c?this.touches[c].id:-1;this.b.rb=!0;this.b.trigger(Z.prototype.q.qm,this);this.b.trigger(Z.prototype.q.vm,this);0<=c&&(b||this.touches[c].Bn(this,c),100>d.length&&d.push(this.touches[c]),this.touches.splice(c,1));this.b.rb=!1}};t.Sn=function(a){a.preventDefault&&a.preventDefault();var b=Za(),c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.Gg(e.identifier),0<=f){var h=
this.b.Aa?y:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,e.pageX-h.left,e.pageY-h.top)}};t.Tn=function(a){a.preventDefault&&lb(a)&&a.preventDefault();var b=this.b.Aa?y:jQuery(this.b.canvas).offset();Za();this.b.rb=!0;var c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.Gg(e.identifier),-1===f){f=e.pageX-b.left;var h=e.pageY-b.top;this.zd=this.touches.length;this.hg=e.identifier;this.touches.push(l(f,h,e.identifier,this.zd));this.b.trigger(Z.prototype.q.rm,
this);this.b.trigger(Z.prototype.q.wm,this);this.Ed=f;this.Fd=h;this.b.trigger(Z.prototype.q.Mj,this)}this.b.rb=!1};t.sl=function(a,b){a.preventDefault&&lb(a)&&a.preventDefault();this.b.rb=!0;var c,e,f;c=0;for(e=a.changedTouches.length;c<e;c++)f=a.changedTouches[c],f=this.Gg(f.identifier),0<=f&&(this.zd=this.touches[f].Bh,this.hg=this.touches[f].id,this.b.trigger(Z.prototype.q.qm,this),this.b.trigger(Z.prototype.q.vm,this),b||this.touches[f].Bn(this,f),100>d.length&&d.push(this.touches[f]),this.touches.splice(f,
1));this.b.rb=!1};t.Sj=function(){return this.b.uc&&0===this.Zi&&0!==a?90*a:this.Zi};t.cv=function(){return this.b.uc&&0===this.$i&&0!==h?90*h:this.$i};t.gv=function(){return this.b.uc&&0===this.aj&&0!==k?90*k:this.aj};t.ol=function(a){this.Tn({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.el=!0};t.pl=function(a){this.el&&this.Sn({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};t.ql=function(a){a.preventDefault&&this.b.vi&&!this.b.nd&&a.preventDefault();this.b.vi=
!0;this.sl({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.el=!1};t.eg=function(){var a,b,c,d=Za();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Vk=d),c.Ds(this,a)};q.prototype.wm=function(){return!0};q.prototype.vm=function(){return!0};q.prototype.Mj=function(a){return a?this.b.Eh(a,this.Ed,this.Fd):!1};var D=[];q.prototype.rp=function(a){if(!a)return!1;var b=a.O(),c=b.Zb(),d,e,f,h,k,m;f=0;for(h=c.length;f<h;f++){var l=c[f];l.qa();k=0;for(m=this.touches.length;k<
m;k++)if(e=this.touches[k],d=l.n.La(e.x,e.y,!0),e=l.n.La(e.x,e.y,!1),l.Eb(d,e)){D.push(l);break}}return D.length?(b.U=!1,Aa(b.i,D),a.Cc(),V(D),!0):!1};q.prototype.rm=function(a){a=Math.floor(a);return a===this.zd};q.prototype.qm=function(a){a=Math.floor(a);return a===this.zd};q.prototype.Hp=function(){return!0};q.prototype.Mp=function(){return!0};q.prototype.Bp=function(){return!0};q.prototype.Ip=function(a){return a?this.b.Eh(a,this.Ed,this.Fd):!1};q.prototype.um=function(a){return a?this.b.Eh(a,
this.Ed,this.Fd):!1};q.prototype.Cp=function(a){return a?this.b.Eh(a,this.Ed,this.Fd):!1};x.q=new q;m.prototype.Lh=function(a,b){var c=this.Cf;if(0>c||c>=this.touches.length)a.A(0);else{var d,e,f,h,k;ja(b)?(d=this.b.Md(0),e=d.scale,f=d.Lb,h=d.$b,k=d.k,d.scale=1,d.Lb=1,d.$b=1,d.k=0,a.A(d.La(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Lb=f,d.$b=h,d.k=k):(d=ka(b)?this.b.Md(b):this.b.Ig(b))?a.A(d.La(this.touches[c].x,this.touches[c].y,!0)):a.A(0)}};m.prototype.Mh=function(a,b){var c=this.Cf;
if(0>c||c>=this.touches.length)a.A(0);else{var d,e,f,h,k;ja(b)?(d=this.b.Md(0),e=d.scale,f=d.Lb,h=d.ac,k=d.k,d.scale=1,d.Lb=1,d.ac=1,d.k=0,a.A(d.La(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.Lb=f,d.ac=h,d.k=k):(d=ka(b)?this.b.Md(b):this.b.Ig(b))?a.A(d.La(this.touches[c].x,this.touches[c].y,!1)):a.A(0)}};x.Ca=new m})();function jc(p){this.b=p}
(function(){function p(){}var l=jc.prototype;l.na=function(c){this.behavior=c;this.b=c.b};l.na.prototype.S=function(){};l.ca=function(c,m){this.type=c;this.behavior=c.behavior;this.j=m;this.b=c.b};var c=l.ca.prototype;c.S=function(){var c=this.H[0];this.ng=this.H[1];this.ni=this.H[2];this.tq=0!==this.H[3];this.Ml=0!==this.H[4];this.Nb=Math.cos(this.j.k)*c;this.pb=Math.sin(this.j.k)*c;this.$e=this.j.x;this.bf=this.j.y;this.wc=this.j.k;this.Aj=0;this.enabled=0!==this.H[5]};c.wb=function(){return{acc:this.ng,
g:this.ni,dx:this.Nb,dy:this.pb,lx:this.$e,ly:this.bf,lka:this.wc,t:this.Aj,e:this.enabled}};c.Tb=function(c){this.ng=c.acc;this.ni=c.g;this.Nb=c.dx;this.pb=c.dy;this.$e=c.lx;this.bf=c.ly;this.wc=c.lka;this.Aj=c.t;this.enabled=c.e};c.Fa=function(){if(this.enabled){var c=this.b.Ue(this.j),m,l;this.j.k!==this.wc&&(this.Ml&&(m=Va(0,0,this.Nb,this.pb),this.Nb=Math.cos(this.j.k)*m,this.pb=Math.sin(this.j.k)*m),this.wc=this.j.k);0!==this.ng&&(m=Va(0,0,this.Nb,this.pb),l=0===this.Nb&&0===this.pb?this.j.k:
Ma(0,0,this.Nb,this.pb),m+=this.ng*c,0>m&&(m=0),this.Nb=Math.cos(l)*m,this.pb=Math.sin(l)*m);0!==this.ni&&(this.pb+=this.ni*c);this.$e=this.j.x;this.bf=this.j.y;if(0!==this.Nb||0!==this.pb)if(this.j.x+=this.Nb*c,this.j.y+=this.pb*c,this.Aj+=Va(0,0,this.Nb*c,this.pb*c),this.Ml&&(this.j.k=Ma(0,0,this.Nb,this.pb),this.j.V(),this.wc=this.j.k),this.j.V(),this.tq&&(m=this.b.mf(this.j)))this.b.et(this.j,m),m=Va(0,0,this.Nb,this.pb),l=this.b.wq(this.j,this.$e,this.bf),this.Nb=Math.cos(l)*m,this.pb=Math.sin(l)*
m,this.j.x+=this.Nb*c,this.j.y+=this.pb*c,this.j.V(),this.Ml&&(this.wc=this.j.k=l,this.j.V()),this.b.bt(this.j,this.Nb/m,this.pb/m,Math.max(2.5*m*c,30))||this.b.ct(this.j)}};l.q=new function(){};p.prototype.xm=function(c){this.ng=c};l.P=new p;l.Ca=new function(){}})();function kc(p){this.b=p}
(function(){function p(){}function l(){}var c=kc.prototype;c.na=function(c){this.behavior=c;this.b=c.b};c.na.prototype.S=function(){};c.ca=function(c,l){this.type=c;this.behavior=c.behavior;this.j=l;this.b=c.b};var q=c.ca.prototype;q.S=function(){this.Cm=1===this.H[0];this.Dg=this.H[1];this.Jh=this.H[2];this.Eg=this.H[3];this.Gq=this.H[4];this.fb=this.Cm?0:3;this.tb?this.Kc.reset():this.Kc=new cb;this.df=this.j.opacity?this.j.opacity:1;this.Cm&&(0===this.Dg?(this.fb=1,0===this.Jh&&(this.fb=2)):(this.j.opacity=
0,this.b.Y=!0))};q.wb=function(){return{fit:this.Dg,wt:this.Jh,fot:this.Eg,s:this.fb,st:this.Kc.C,mo:this.df}};q.Tb=function(c){this.Dg=c.fit;this.Jh=c.wt;this.Eg=c.fot;this.fb=c.s;this.Kc.reset();this.Kc.C=c.st;this.df=c.mo};q.Fa=function(){this.Kc.add(this.b.Ue(this.j));0===this.fb&&(this.j.opacity=this.Kc.C/this.Dg*this.df,this.b.Y=!0,this.j.opacity>=this.df&&(this.j.opacity=this.df,this.fb=1,this.Kc.reset(),this.b.trigger(kc.prototype.q.Dp,this.j)));1===this.fb&&this.Kc.C>=this.Jh&&(this.fb=2,
this.Kc.reset(),this.b.trigger(kc.prototype.q.Np,this.j));2===this.fb&&0!==this.Eg&&(this.j.opacity=this.df-this.Kc.C/this.Eg*this.df,this.b.Y=!0,0>this.j.opacity&&(this.j.opacity=0,this.fb=3,this.Kc.reset(),this.b.trigger(kc.prototype.q.Ep,this.j),1===this.Gq&&this.b.Bd(this.j)))};q.Sj=function(){this.fb=0;this.Kc.reset();0===this.Dg?(this.fb=1,0===this.Jh&&(this.fb=2)):(this.j.opacity=0,this.b.Y=!0)};p.prototype.Ep=function(){return!0};p.prototype.Dp=function(){return!0};p.prototype.Np=function(){return!0};
c.q=new p;l.prototype.Sp=function(c){0>c&&(c=0);this.Eg=c};c.P=new l;c.Ca=new function(){}})();function mc(p){this.b=p}
(function(){function p(){}function l(){}var c=mc.prototype;c.na=function(c){this.behavior=c;this.b=c.b};c.na.prototype.S=function(){};c.ca=function(c,l){this.type=c;this.behavior=c.behavior;this.j=l;this.b=c.b};var q=c.ca.prototype;q.S=function(){this.Ee=this.xd=this.fb=this.Vi=this.Yi=0};q.wb=function(){return{ontime:this.Yi,offtime:this.Vi,stage:this.fb,stagetimeleft:this.xd,timeleft:this.Ee}};q.Tb=function(c){this.Yi=c.ontime;this.Vi=c.offtime;this.fb=c.stage;this.xd=c.stagetimeleft;this.Ee=c.timeleft};
q.Fa=function(){if(!(0>=this.Ee)){var c=this.b.Ue(this.j);this.Ee-=c;0>=this.Ee?(this.Ee=0,this.j.visible=!0,this.b.Y=!0,this.b.trigger(mc.prototype.q.Fp,this.j)):(this.xd-=c,0>=this.xd&&(0===this.fb?(this.j.visible=!1,this.fb=1,this.xd+=this.Vi):(this.j.visible=!0,this.fb=0,this.xd+=this.Yi),this.b.Y=!0))}};p.prototype.Fp=function(){return!0};c.q=new p;l.prototype.jp=function(c,l,p){this.Yi=c;this.Vi=l;this.fb=1;this.xd=l;this.Ee=p;this.j.visible=!1;this.b.Y=!0};c.P=new l;c.Ca=new function(){}})();
function nc(p){this.b=p}
(function(){function p(){}var l=nc.prototype;l.na=function(c){this.behavior=c;this.b=c.b};l.na.prototype.S=function(){};l.ca=function(c,m){this.type=c;this.behavior=c.behavior;this.j=m;this.b=c.b};var c=l.ca.prototype;c.S=function(){this.cb=null;this.cj=-1;this.mode=this.wc=this.xj=this.Sf=this.Td=this.ph=0;var c=this;this.tb||(this.Hn=function(m){c.ml(m)});this.b.Oj(this.Hn)};c.wb=function(){return{uid:this.cb?this.cb.uid:-1,pa:this.ph,pd:this.Td,msa:this.Sf,tsa:this.xj,lka:this.wc,m:this.mode}};
c.Tb=function(c){this.cj=c.uid;this.ph=c.pa;this.Td=c.pd;this.Sf=c.msa;this.xj=c.tsa;this.wc=c.lka;this.mode=c.m};c.hd=function(){-1===this.cj?this.cb=null:this.cb=this.b.Jg(this.cj);this.cj=-1};c.ml=function(c){this.cb==c&&(this.cb=null)};c.gf=function(){this.cb=null;this.b.ft(this.Hn)};c.Fa=function(){};c.eg=function(){if(this.cb){this.wc!==this.j.k&&(this.Sf=Ja(this.Sf+(this.j.k-this.wc)));var c=this.j.x,m=this.j.y;if(3===this.mode||4===this.mode){var l=Va(this.j.x,this.j.y,this.cb.x,this.cb.y);
if(l>this.Td||4===this.mode&&l<this.Td)m=Ma(this.cb.x,this.cb.y,this.j.x,this.j.y),c=this.cb.x+Math.cos(m)*this.Td,m=this.cb.y+Math.sin(m)*this.Td}else c=this.cb.x+Math.cos(this.cb.k+this.ph)*this.Td,m=this.cb.y+Math.sin(this.cb.k+this.ph)*this.Td;this.wc=l=Ja(this.Sf+(this.cb.k-this.xj));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.j.x===c&&this.j.y===m||(this.j.x=c,this.j.y=m,this.j.V());0!==this.mode&&2!==this.mode||this.j.k===l||(this.j.k=l,this.j.V())}};l.q=new function(){};
p.prototype.Pp=function(c,m){if(c){var l=c.qi(this.j);l&&(this.cb=l,this.ph=Ma(l.x,l.y,this.j.x,this.j.y)-l.k,this.Td=Va(l.x,l.y,this.j.x,this.j.y),this.wc=this.Sf=this.j.k,this.xj=l.k,this.mode=m)}};l.P=new p;l.Ca=new function(){}})();function oc(p){this.b=p}
(function(){function p(){}function l(){}var c=oc.prototype;c.na=function(c){this.behavior=c;this.b=c.b};c.na.prototype.S=function(){};c.ca=function(c,l){this.type=c;this.behavior=c.behavior;this.j=l;this.b=c.b};var q=c.ca.prototype;q.S=function(){this.enabled=1==this.H[0];this.tb||(this.move={max:0,acc:0,dec:0});this.move.max=this.H[1];this.move.acc=this.H[2];this.move.dec=this.H[3];this.tb||(this.target={x:0,y:0,a:0});this.Zg=!1;this.hf=this.he=0;this.Yg=!1;this.tb||(this.gd={x:0,y:0});this.gd.x=
0;this.gd.y=0;this.tb||(this.Ac={x:0,y:0,a:-1});this.Ac.x=0;this.Ac.y=0;this.Ac.a=-1;this.Nh=null;this.Tk=!1};q.Fa=function(){this.Yg&&(this.j.x==this.target.x&&this.j.y==this.target.y&&(this.Tk=!0,this.b.trigger(oc.prototype.q.Gp,this.j),this.Tk=!1),this.Yg=!1);if(this.enabled&&this.Zg){var c=this.b.Ue(this.j);if(0!=c){this.gd.x==this.j.x&&this.gd.y==this.j.y||this.ym();var l=!1;0!=this.move.dec&&(l=this.he,l=l*l/(2*this.move.dec)>=this.hf);l=l?-this.move.dec:this.move.acc;0!=l&&this.sf(this.he+
l*c);c=this.he*c;this.hf-=c;0>=this.hf||0>=this.he?(this.Zg=!1,this.j.x=this.target.x,this.j.y=this.target.y,this.sf(0),this.Gs(),this.Yg=!0):(l=this.target.a,this.j.x+=c*Math.cos(l),this.j.y+=c*Math.sin(l));this.j.V();this.gd.x=this.j.x;this.gd.y=this.j.y}}};q.eg=function(){this.Ac.x=this.j.x;this.Ac.y=this.j.y};q.sf=function(c){null!=c?this.he=c>this.move.max?this.move.max:c:0==this.move.acc&&(this.he=this.move.max)};q.ym=function(){var c=this.target.x-this.j.x,l=this.target.y-this.j.y;this.target.a=
Math.atan2(l,c);this.hf=Math.sqrt(c*c+l*l);this.gd.x=this.j.x;this.gd.y=this.j.y};q.Nj=function(c,l){this.Zg=!0;this.target.x=c;this.target.y=l;this.ym();this.sf(null);this.Ac.x=this.j.x;this.Ac.y=this.j.y};q.xs=function(){var c=this.b.cd,l=this.Nh!=c;this.Nh=c;return l};q.Gs=function(){if(this.xs()){var c=this.j.x-this.Ac.x,l=this.j.y-this.Ac.y;if(0!=c||0!=l)this.Ac.a=Ka(Math.atan2(l,c))}};q.wb=function(){return{en:this.enabled,v:this.move,t:this.target,is_m:this.Zg,c_spd:this.he,rd:this.hf,is_ht:this.Yg,
pp:this.gd,ma:this.Ac,lt:this.Nh}};q.Tb=function(c){this.enabled=c.en;this.move=c.v;this.target=c.t;this.Zg=c.is_m;this.he=c.c_spd;this.hf=c.rd;this.Yg=c.is_ht;this.gd=c.pp;this.Ac=c.ma;this.Nh=c.lt};c.q=new p;p.prototype.Gp=function(){return this.Tk};c.P=new l;l.prototype.xm=function(c){this.move.acc=c;this.sf(null)};l.prototype.Nj=function(c,l){this.Nj(c,l)};l.prototype.sf=function(c){this.sf(c)};l.prototype.Wp=function(c){c&&(c=c.qi(),null!=c&&this.Nj(c.x,c.y))};c.Ca=new function(){}})();
function pc(p){this.b=p}
(function(){var p=pc.prototype;p.na=function(c){this.behavior=c;this.b=c.b};p.na.prototype.S=function(){};p.ca=function(c,l){this.type=c;this.behavior=c.behavior;this.j=l;this.b=c.b};var l=p.ca.prototype;l.S=function(){this.fc={}};l.gf=function(){Ya(this.fc)};l.wb=function(){var c={},l,m;for(l in this.fc)this.fc.hasOwnProperty(l)&&(m=this.fc[l],c[l]={c:m.current.C,t:m.total.C,d:m.duration,r:m.lo});return c};l.Tb=function(c){this.fc={};for(var l in c)c.hasOwnProperty(l)&&(this.fc[l]={current:new cb,
total:new cb,duration:c[l].d,lo:c[l].r},this.fc[l].current.C=c[l].c,this.fc[l].total.C=c[l].t)};l.Fa=function(){var c=this.b.Ue(this.j),l,m;for(l in this.fc)this.fc.hasOwnProperty(l)&&(m=this.fc[l],m.current.add(c),m.total.add(c))};l.eg=function(){var c,l;for(c in this.fc)this.fc.hasOwnProperty(c)&&(l=this.fc[c],l.current.C>=l.duration&&(l.lo?l.current.C-=l.duration:delete this.fc[c]))};p.q=new function(){};p.P=new function(){};p.Ca=new function(){}})();function qc(p){this.b=p}
(function(){var p=qc.prototype;p.na=function(l){this.behavior=l;this.b=l.b};p.na.prototype.S=function(){};p.ca=function(l,c){this.type=l;this.behavior=l.behavior;this.j=c;this.b=l.b};p=p.ca.prototype;p.S=function(){};p.Fa=function(){this.j.qa();var l=this.j.Ba,c=this.j.n.$a;(0>l.right||0>l.bottom||l.left>c.width||l.top>c.height)&&this.b.Bd(this.j)}})();function ec(p){this.b=p}
(function(){var p=ec.prototype;p.na=function(c){this.behavior=c;this.b=c.b};p.na.prototype.S=function(){};p.ca=function(c,l){this.type=c;this.behavior=c.behavior;this.j=l;this.b=c.b};var l=p.ca.prototype;l.S=function(){this.j.I.solidEnabled=0!==this.H[0]};l.Fa=function(){};p.q=new function(){};p.P=new function(){}})();
function dc(){return[hc,ic,Y,Z,fc,gc,nc,mc,qc,oc,kc,jc,ec,pc,X.prototype.q.om,X.prototype.P.ep,Y.prototype.Ca.Lh,Y.prototype.Ca.Mh,gc.prototype.P.Rp,fc.prototype.P.Play,nc.prototype.P.Pp,X.prototype.P.Zp,X.prototype.q.op,Y.prototype.q.zp,Y.prototype.P.aq,Y.prototype.P.fp,kc.prototype.P.Sp,mc.prototype.P.jp,Y.prototype.P.cq,Y.prototype.q.dp,X.prototype.P.Yo,Y.prototype.q.qp,X.prototype.q.hp,X.prototype.Ca.random,X.prototype.Ca.Tt,fc.prototype.P.bq,Z.prototype.q.rp,Y.prototype.P.Vp,Z.prototype.q.um,
Y.prototype.P.Yp,gc.prototype.Ca.Lh,gc.prototype.Ca.Mh,Y.prototype.P.Qp,X.prototype.q.ip,hc.prototype.P.Xp,hc.prototype.P.Tp,hc.prototype.P.Up,hc.prototype.P.up,Z.prototype.q.Mj,X.prototype.P.lp,X.prototype.q.kp,oc.prototype.P.Wp,oc.prototype.P.xm,X.prototype.P.fq]};
