// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,ea,fa,ha,ia,C,ja,ka,la,ma,pa,qa,S,ra,sa,va,wa,xa,ya,za,V,Aa,Ba,Ca,Da,W,Ea,Fa,Ga,Ha,Ia,Ka,La,Ma,Na,Oa,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,rb,sb,tb,ub,vb,wb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac={},bc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});
(function(){function e(h,a,d,t){this.set(h,a,d,t)}function n(){this.Oa=this.Na=this.Qa=this.Pa=this.Xa=this.Wa=this.Aa=this.za=0}function c(h,a,d,t){h<a?d<t?(A=h<d?h:d,y=a>t?a:t):(A=h<t?h:t,y=a>d?a:d):d<t?(A=a<d?a:d,y=h>t?h:t):(A=a<t?a:t,y=h>d?h:d)}function p(){this.items=this.Dd=null;this.Fh=0;h&&(this.Dd=new Set);this.Lg=[];this.oe=!0}function k(h){t[x++]=h}function u(){this.X=this.yk=this.y=this.bl=0}function b(h){this.kb=[];this.Hi=this.Ji=this.Ki=this.Ii=0;this.ki(h)}function a(h,a){this.fl=
h;this.el=a;this.cells={}}function v(h,a){this.fl=h;this.el=a;this.cells={}}function q(h,a,d){var t;return B.length?(t=B.pop(),t.Rl=h,t.x=a,t.y=d,t):new aa(h,a,d)}function d(h,a,d){this.Rl=h;this.x=a;this.y=d;this.rb=new ba}function f(h,a,d){var t;return I.length?(t=I.pop(),t.Rl=h,t.x=a,t.y=d,t):new ca(h,a,d)}function m(h,a,d){this.Rl=h;this.x=a;this.y=d;this.rb=[];this.pg=!0;this.Bd=new ba;this.Tg=!1}function g(h,a){return h.rd-a.rd}ea=function(h){window.console&&window.console.log&&window.console.log(h)};
fa=function(h){window.console&&window.console.error&&window.console.error(h)};ha=function(h){return"undefined"===typeof h};ia=function(h){return"number"===typeof h};C=function(h){return"string"===typeof h};ja=function(h){return 0<h&&0===(h-1&h)};ka=function(h){--h;for(var a=1;32>a;a<<=1)h=h|h>>a;return h+1};la=function(h){return 0>h?-h:h};ma=function(h,a){return h>a?h:a};pa=function(h,a){return h<a?h:a};qa=Math.PI;S=function(h){return 0<=h?h|0:(h|0)-1};ra=function(h){var a=h|0;return a===h?a:a+1};
sa=function(h,a,d,t,f,l,x,g){var b,m,r,v;h<d?(m=h,b=d):(m=d,b=h);f<x?(v=f,r=x):(v=x,r=f);if(b<v||m>r)return!1;a<t?(m=a,b=t):(m=t,b=a);l<g?(v=l,r=g):(v=g,r=l);if(b<v||m>r)return!1;b=f-h+x-d;m=l-a+g-t;h=d-h;a=t-a;f=x-f;l=g-l;g=la(a*f-l*h);return la(f*m-l*b)>g?!1:la(h*m-a*b)<=g};e.prototype.set=function(h,a,d,t){this.left=h;this.top=a;this.right=d;this.bottom=t};e.prototype.Zg=function(h){this.left=h.left;this.top=h.top;this.right=h.right;this.bottom=h.bottom};e.prototype.width=function(){return this.right-
this.left};e.prototype.height=function(){return this.bottom-this.top};e.prototype.offset=function(h,a){this.left+=h;this.top+=a;this.right+=h;this.bottom+=a;return this};e.prototype.normalize=function(){var h=0;this.left>this.right&&(h=this.left,this.left=this.right,this.right=h);this.top>this.bottom&&(h=this.top,this.top=this.bottom,this.bottom=h)};e.prototype.uu=function(h){return!(h.right<this.left||h.bottom<this.top||h.left>this.right||h.top>this.bottom)};e.prototype.vu=function(h,a,d){return!(h.right+
a<this.left||h.bottom+d<this.top||h.left+a>this.right||h.top+d>this.bottom)};e.prototype.Ib=function(h,a){return h>=this.left&&h<=this.right&&a>=this.top&&a<=this.bottom};e.prototype.eh=function(h){return this.left===h.left&&this.top===h.top&&this.right===h.right&&this.bottom===h.bottom};va=e;n.prototype.ji=function(h){this.za=h.left;this.Aa=h.top;this.Wa=h.right;this.Xa=h.top;this.Pa=h.right;this.Qa=h.bottom;this.Na=h.left;this.Oa=h.bottom};n.prototype.oq=function(h,a){if(0===a)this.ji(h);else{var d=
Math.sin(a),t=Math.cos(a),f=h.left*d,l=h.top*d,x=h.right*d,d=h.bottom*d,g=h.left*t,b=h.top*t,m=h.right*t,t=h.bottom*t;this.za=g-l;this.Aa=b+f;this.Wa=m-l;this.Xa=b+x;this.Pa=m-d;this.Qa=t+x;this.Na=g-d;this.Oa=t+f}};n.prototype.offset=function(h,a){this.za+=h;this.Aa+=a;this.Wa+=h;this.Xa+=a;this.Pa+=h;this.Qa+=a;this.Na+=h;this.Oa+=a;return this};var A=0,y=0;n.prototype.Tn=function(h){c(this.za,this.Wa,this.Pa,this.Na);h.left=A;h.right=y;c(this.Aa,this.Xa,this.Qa,this.Oa);h.top=A;h.bottom=y};n.prototype.Ib=
function(h,a){var d=this.za,t=this.Aa,f=this.Wa-d,l=this.Xa-t,x=this.Pa-d,g=this.Qa-t,b=h-d,m=a-t,r=f*f+l*l,v=f*x+l*g,l=f*b+l*m,q=x*x+g*g,B=x*b+g*m,c=1/(r*q-v*v),f=(q*l-v*B)*c,r=(r*B-v*l)*c;if(0<=f&&0<r&&1>f+r)return!0;f=this.Na-d;l=this.Oa-t;r=f*f+l*l;v=f*x+l*g;l=f*b+l*m;c=1/(r*q-v*v);f=(q*l-v*B)*c;r=(r*B-v*l)*c;return 0<=f&&0<r&&1>f+r};n.prototype.me=function(h,a){if(a)switch(h){case 0:return this.za;case 1:return this.Wa;case 2:return this.Pa;case 3:return this.Na;case 4:return this.za;default:return this.za}else switch(h){case 0:return this.Aa;
case 1:return this.Xa;case 2:return this.Qa;case 3:return this.Oa;case 4:return this.Aa;default:return this.Aa}};n.prototype.yp=function(){return(this.za+this.Wa+this.Pa+this.Na)/4};n.prototype.zp=function(){return(this.Aa+this.Xa+this.Qa+this.Oa)/4};n.prototype.Jo=function(h){var a=h.yp(),d=h.zp();if(this.Ib(a,d))return!0;a=this.yp();d=this.zp();if(h.Ib(a,d))return!0;var t,f,l,x,g,b,m,r;for(m=0;4>m;m++)for(r=0;4>r;r++)if(a=this.me(m,!0),d=this.me(m,!1),t=this.me(m+1,!0),f=this.me(m+1,!1),l=h.me(r,
!0),x=h.me(r,!1),g=h.me(r+1,!0),b=h.me(r+1,!1),sa(a,d,t,f,l,x,g,b))return!0;return!1};wa=n;xa=function(h,a){for(var d in a)a.hasOwnProperty(d)&&(h[d]=a[d]);return h};ya=function(h,a){var d,t;a=S(a);if(!(0>a||a>=h.length)){d=a;for(t=h.length-1;d<t;d++)h[d]=h[d+1];za(h,t)}};za=function(h,a){h.length=a};V=function(h){za(h,0)};Aa=function(h,a){V(h);var d,t;d=0;for(t=a.length;d<t;++d)h[d]=a[d]};Ba=function(h,a){h.push.apply(h,a)};Ca=function(h,a){var d,t;d=0;for(t=h.length;d<t;++d)if(h[d]===a)return d;
return-1};Da=function(h,a){var d=Ca(h,a);-1!==d&&ya(h,d)};W=function(h){return h/(180/qa)};Ea=function(h){return 180/qa*h};Fa=function(h){h%=360;0>h&&(h+=360);return h};Ga=function(h){h%=2*qa;0>h&&(h+=2*qa);return h};Ha=function(h){return Fa(Ea(h))};Ia=function(h){return Ga(W(h))};Ka=function(h,a,d,t){return Math.atan2(t-a,d-h)};La=function(h,a){if(h===a)return 0;var d=Math.sin(h),t=Math.cos(h),f=Math.sin(a),l=Math.cos(a),d=d*f+t*l;return 1<=d?0:-1>=d?qa:Math.acos(d)};Ma=function(h,a,d){var t=Math.sin(h),
f=Math.cos(h),l=Math.sin(a),x=Math.cos(a);return Math.acos(t*l+f*x)>d?0<f*l-t*x?Ga(h+d):Ga(h-d):Ga(a)};Na=function(h,a){var d=Math.sin(h),t=Math.cos(h),f=Math.sin(a),l=Math.cos(a);return 0>=t*f-d*l};Oa=function(h,a,d,t,f,l){if(0===d)return l?h:a;var x=Math.sin(d);d=Math.cos(d);h-=t;a-=f;var g=h*x;h=h*d-a*x;a=a*d+g;return l?h+t:a+f};Ta=function(h,a,d,t){h=d-h;a=t-a;return Math.sqrt(h*h+a*a)};Ua=function(h,a){return!h!==!a};Va=function(h){for(var a in h)if(h.hasOwnProperty(a))return!0;return!1};Wa=
function(h){for(var a in h)h.hasOwnProperty(a)&&delete h[a]};var G=+new Date;Xa=function(){if("undefined"!==typeof window.performance){var h=window.performance;if("undefined"!==typeof h.now)return h.now();if("undefined"!==typeof h.webkitNow)return h.webkitNow();if("undefined"!==typeof h.mozNow)return h.mozNow();if("undefined"!==typeof h.msNow)return h.msNow()}return Date.now()-G};var l=!1,r=l=!1,z=!1;"undefined"!==typeof window&&(l=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
l=!l&&/safari/i.test(navigator.userAgent),r=/(iphone|ipod|ipad)/i.test(navigator.userAgent),z=window.c2ejecta);var h=!l&&!z&&!r&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;p.prototype.contains=function(a){return this.Td()?!1:h?this.Dd.has(a):this.items&&this.items.hasOwnProperty(a)};p.prototype.add=function(a){if(h)this.Dd.has(a)||(this.Dd.add(a),this.oe=!1);else{var d=a.toString(),t=this.items;t?t.hasOwnProperty(d)||(t[d]=a,this.Fh++,this.oe=!1):(this.items={},this.items[d]=
a,this.Fh=1,this.oe=!1)}};p.prototype.remove=function(a){if(!this.Td())if(h)this.Dd.has(a)&&(this.Dd["delete"](a),this.oe=!1);else if(this.items){a=a.toString();var d=this.items;d.hasOwnProperty(a)&&(delete d[a],this.Fh--,this.oe=!1)}};p.prototype.clear=function(){this.Td()||(h?this.Dd.clear():(this.items=null,this.Fh=0),V(this.Lg),this.oe=!0)};p.prototype.Td=function(){return 0===this.count()};p.prototype.count=function(){return h?this.Dd.size:this.Fh};var t=null,x=0;p.prototype.Kv=function(){if(!this.oe){if(h)V(this.Lg),
t=this.Lg,x=0,this.Dd.forEach(k),t=null,x=0;else{var a=this.Lg;V(a);var d,f=0,l=this.items;if(l)for(d in l)l.hasOwnProperty(d)&&(a[f++]=l[d])}this.oe=!0}};p.prototype.ge=function(){this.Kv();return this.Lg};ba=p;new ba;Ya=function(a,d){h?Za(a,d.Dd):$a(a,d.ge())};Za=function(h,a){var d,t,f,l;t=d=0;for(f=h.length;d<f;++d)l=h[d],a.has(l)||(h[t++]=l);za(h,t)};$a=function(h,a){var d,t,f,l;t=d=0;for(f=h.length;d<f;++d)l=h[d],-1===Ca(a,l)&&(h[t++]=l);za(h,t)};u.prototype.add=function(h){this.y=h-this.bl;
this.yk=this.X+this.y;this.bl=this.yk-this.X-this.y;this.X=this.yk};u.prototype.reset=function(){this.X=this.yk=this.y=this.bl=0};ab=u;bb=function(h){return h.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};b.prototype.ki=function(h){this.aq=h;this.jd=h.length/2;this.kb.length=h.length;this.Mi=this.Ni=-1;this.Wn=0};b.prototype.lg=function(){return!this.aq.length};b.prototype.qa=function(){for(var h=this.kb,a=h[0],d=a,t=h[1],f=t,l,x,g=1,b=this.jd;g<b;++g)x=2*g,l=h[x],x=h[x+1],l<a&&(a=l),l>d&&(d=l),x<t&&
(t=x),x>f&&(f=x);this.Ii=a;this.Ji=d;this.Ki=t;this.Hi=f};b.prototype.ji=function(h,a,d){this.kb.length=8;this.jd=4;var t=this.kb;t[0]=h.left-a;t[1]=h.top-d;t[2]=h.right-a;t[3]=h.top-d;t[4]=h.right-a;t[5]=h.bottom-d;t[6]=h.left-a;t[7]=h.bottom-d;this.Ni=h.right-h.left;this.Mi=h.bottom-h.top;this.qa()};b.prototype.Fg=function(h,a,d,t,f){this.kb.length=8;this.jd=4;var l=this.kb;l[0]=h.za-a;l[1]=h.Aa-d;l[2]=h.Wa-a;l[3]=h.Xa-d;l[4]=h.Pa-a;l[5]=h.Qa-d;l[6]=h.Na-a;l[7]=h.Oa-d;this.Ni=t;this.Mi=f;this.qa()};
b.prototype.nq=function(h){this.jd=h.jd;Aa(this.kb,h.kb);this.Ii=h.Ii;this.Ki-h.Ki;this.Ji=h.Ji;this.Hi=h.Hi};b.prototype.Uf=function(h,a,d){if(this.Ni!==h||this.Mi!==a||this.Wn!==d){this.Ni=h;this.Mi=a;this.Wn=d;var t,f,l,x,g,b=0,m=1,r=this.aq,v=this.kb;0!==d&&(b=Math.sin(d),m=Math.cos(d));d=0;for(l=this.jd;d<l;d++)t=2*d,f=t+1,x=r[t]*h,g=r[f]*a,v[t]=x*m-g*b,v[f]=g*m+x*b;this.qa()}};b.prototype.Ib=function(h,a){var d=this.kb;if(h===d[0]&&a===d[1])return!0;var t,f,l,x=this.jd,g=this.Ii-110,b=this.Ki-
101,m=this.Ji+131,r=this.Hi+120,v,q,B=0,c=0;for(t=0;t<x;t++)f=2*t,l=(t+1)%x*2,v=d[f],f=d[f+1],q=d[l],l=d[l+1],sa(g,b,h,a,v,f,q,l)&&B++,sa(m,r,h,a,v,f,q,l)&&c++;return 1===B%2||1===c%2};b.prototype.sh=function(h,a,d){var t=h.kb,f=this.kb;if(this.Ib(t[0]+a,t[1]+d)||h.Ib(f[0]-a,f[1]-d))return!0;var l,x,g,b,m,r,v,q,B,c,I,A;l=0;for(b=this.jd;l<b;l++)for(x=2*l,g=(l+1)%b*2,q=f[x],x=f[x+1],B=f[g],c=f[g+1],g=0,v=h.jd;g<v;g++)if(m=2*g,r=(g+1)%v*2,I=t[m]+a,m=t[m+1]+d,A=t[r]+a,r=t[r+1]+d,sa(q,x,B,c,I,m,A,r))return!0;
return!1};cb=b;a.prototype.ye=function(h,a,d){var t;t=this.cells[h];return t?(t=t[a])?t:d?(t=q(this,h,a),this.cells[h][a]=t):null:d?(t=q(this,h,a),this.cells[h]={},this.cells[h][a]=t):null};a.prototype.Rb=function(h){return S(h/this.fl)};a.prototype.Sb=function(h){return S(h/this.el)};a.prototype.update=function(h,a,d){var t,f,l,x,g;if(a)for(t=a.left,f=a.right;t<=f;++t)for(l=a.top,x=a.bottom;l<=x;++l)if(!d||!d.Ib(t,l))if(g=this.ye(t,l,!1))g.remove(h),g.Td()&&(g.rb.clear(),1E3>B.length&&B.push(g),
this.cells[t][l]=null);if(d)for(t=d.left,f=d.right;t<=f;++t)for(l=d.top,x=d.bottom;l<=x;++l)a&&a.Ib(t,l)||this.ye(t,l,!0).cm(h)};a.prototype.ik=function(h,a){var d,t,f,l,x,g;d=this.Rb(h.left);f=this.Sb(h.top);t=this.Rb(h.right);for(x=this.Sb(h.bottom);d<=t;++d)for(l=f;l<=x;++l)(g=this.ye(d,l,!1))&&g.dump(a)};db=a;v.prototype.ye=function(h,a,d){var t;t=this.cells[h];return t?(t=t[a])?t:d?(t=f(this,h,a),this.cells[h][a]=t):null:d?(t=f(this,h,a),this.cells[h]={},this.cells[h][a]=t):null};v.prototype.Rb=
function(h){return S(h/this.fl)};v.prototype.Sb=function(h){return S(h/this.el)};v.prototype.update=function(h,a,d){var t,f,l,x,g;if(a)for(t=a.left,f=a.right;t<=f;++t)for(l=a.top,x=a.bottom;l<=x;++l)if(!d||!d.Ib(t,l))if(g=this.ye(t,l,!1))g.remove(h),g.Td()&&(g.reset(),1E3>I.length&&I.push(g),this.cells[t][l]=null);if(d)for(t=d.left,f=d.right;t<=f;++t)for(l=d.top,x=d.bottom;l<=x;++l)a&&a.Ib(t,l)||this.ye(t,l,!0).cm(h)};v.prototype.ik=function(h,a,d,t,f){var l,x;h=this.Rb(h);a=this.Sb(a);d=this.Rb(d);
for(l=this.Sb(t);h<=d;++h)for(t=a;t<=l;++t)(x=this.ye(h,t,!1))&&x.dump(f)};v.prototype.Hu=function(h){var a,d,t,f,l;a=h.left;t=h.top;d=h.right;for(f=h.bottom;a<=d;++a)for(h=t;h<=f;++h)if(l=this.ye(a,h,!1))l.pg=!1};eb=v;var B=[];d.prototype.Td=function(){return this.rb.Td()};d.prototype.cm=function(h){this.rb.add(h)};d.prototype.remove=function(h){this.rb.remove(h)};d.prototype.dump=function(h){Ba(h,this.rb.ge())};aa=d;var I=[];m.prototype.Td=function(){if(!this.rb.length)return!0;if(this.rb.length>
this.Bd.count())return!1;this.zl();return!0};m.prototype.cm=function(h){this.Bd.contains(h)?(this.Bd.remove(h),this.Bd.Td()&&(this.Tg=!1)):this.rb.length?(this.rb[this.rb.length-1].wd()>h.wd()&&(this.pg=!1),this.rb.push(h)):(this.rb.push(h),this.pg=!0)};m.prototype.remove=function(h){this.Bd.add(h);this.Tg=!0;30<=this.Bd.count()&&this.zl()};m.prototype.zl=function(){this.Tg&&(this.Bd.count()===this.rb.length?this.reset():(Ya(this.rb,this.Bd),this.Bd.clear(),this.Tg=!1))};m.prototype.Zs=function(){this.pg||
(this.rb.sort(g),this.pg=!0)};m.prototype.reset=function(){V(this.rb);this.pg=!0;this.Bd.clear();this.Tg=!1};m.prototype.dump=function(h){this.zl();this.Zs();this.rb.length&&h.push(this.rb)};ca=m;var O="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");fb=function(h){return 0>=h||11<=h?"source-over":O[h-1]};gb=function(h,a,d){if(d)switch(h.Gb=d.ONE,h.Bb=d.ONE_MINUS_SRC_ALPHA,a){case 1:h.Gb=d.ONE;h.Bb=d.ONE;break;case 3:h.Gb=
d.ONE;h.Bb=d.ZERO;break;case 4:h.Gb=d.ONE_MINUS_DST_ALPHA;h.Bb=d.ONE;break;case 5:h.Gb=d.DST_ALPHA;h.Bb=d.ZERO;break;case 6:h.Gb=d.ZERO;h.Bb=d.SRC_ALPHA;break;case 7:h.Gb=d.ONE_MINUS_DST_ALPHA;h.Bb=d.ZERO;break;case 8:h.Gb=d.ZERO;h.Bb=d.ONE_MINUS_SRC_ALPHA;break;case 9:h.Gb=d.DST_ALPHA;h.Bb=d.ONE_MINUS_SRC_ALPHA;break;case 10:h.Gb=d.ONE_MINUS_DST_ALPHA,h.Bb=d.SRC_ALPHA}};hb=function(h){return Math.round(1E6*h)/1E6};ib=function(h,a){return"string"!==typeof h||"string"!==typeof a||h.length!==a.length?
!1:h===a?!0:h.toLowerCase()===a.toLowerCase()};jb=function(h){h=h.target;return!h||h===document||h===window||document&&document.body&&h===document.body||ib(h.tagName,"canvas")?!0:!1}})();var cc="undefined"!==typeof Float32Array?Float32Array:Array;function dc(e){var n=new cc(3);e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]);return n}
function ec(e){var n=new cc(16);e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n[6]=e[6],n[7]=e[7],n[8]=e[8],n[9]=e[9],n[10]=e[10],n[11]=e[11],n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15]);return n}function fc(e,n){n[0]=e[0];n[1]=e[1];n[2]=e[2];n[3]=e[3];n[4]=e[4];n[5]=e[5];n[6]=e[6];n[7]=e[7];n[8]=e[8];n[9]=e[9];n[10]=e[10];n[11]=e[11];n[12]=e[12];n[13]=e[13];n[14]=e[14];n[15]=e[15]}
function gc(e,n){var c=n[0],p=n[1];n=n[2];e[0]*=c;e[1]*=c;e[2]*=c;e[3]*=c;e[4]*=p;e[5]*=p;e[6]*=p;e[7]*=p;e[8]*=n;e[9]*=n;e[10]*=n;e[11]*=n}
function hc(e,n,c,p){p||(p=ec());var k,u,b,a,v,q,d,f,m=e[0],g=e[1];e=e[2];u=c[0];b=c[1];k=c[2];c=n[1];q=n[2];m===n[0]&&g===c&&e===q?(e=p,e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1):(c=m-n[0],q=g-n[1],d=e-n[2],f=1/Math.sqrt(c*c+q*q+d*d),c*=f,q*=f,d*=f,n=b*d-k*q,k=k*c-u*d,u=u*q-b*c,(f=Math.sqrt(n*n+k*k+u*u))?(f=1/f,n*=f,k*=f,u*=f):u=k=n=0,b=q*u-d*k,a=d*n-c*u,v=c*k-q*n,(f=Math.sqrt(b*b+a*a+v*v))?(f=1/f,b*=f,a*=f,v*=f):v=a=b=0,
p[0]=n,p[1]=b,p[2]=c,p[3]=0,p[4]=k,p[5]=a,p[6]=q,p[7]=0,p[8]=u,p[9]=v,p[10]=d,p[11]=0,p[12]=-(n*m+k*g+u*e),p[13]=-(b*m+a*g+v*e),p[14]=-(c*m+q*g+d*e),p[15]=1)}
(function(){function e(a,b,q){this.Ud=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ka=!!q;this.wj=this.xh=!1;this.ml=0;this.Lk=1;this.Fn=1E3;this.Pv=(this.Fn-this.Lk)/32768;this.cl=dc([0,0,100]);this.ip=dc([0,0,0]);this.Lq=dc([0,1,0]);this.Ai=dc([1,1,1]);this.fo=!0;this.Sj=ec();this.zc=ec();this.qm=ec();this.ll=ec();this.r=a;this.Fo()}function n(a,b,q){this.r=a;this.li=b;this.name=q;this.Lc=a.getAttribLocation(b,"aPos");this.Ge=a.getAttribLocation(b,
"aTex");this.gp=a.getUniformLocation(b,"matP");this.Pj=a.getUniformLocation(b,"matMV");this.ug=a.getUniformLocation(b,"opacity");this.xm=a.getUniformLocation(b,"colorFill");this.hp=a.getUniformLocation(b,"samplerFront");this.Ph=a.getUniformLocation(b,"samplerBack");this.Af=a.getUniformLocation(b,"destStart");this.zf=a.getUniformLocation(b,"destEnd");this.Rh=a.getUniformLocation(b,"seconds");this.zm=a.getUniformLocation(b,"pixelWidth");this.ym=a.getUniformLocation(b,"pixelHeight");this.Oh=a.getUniformLocation(b,
"layerScale");this.Nh=a.getUniformLocation(b,"layerAngle");this.Sh=a.getUniformLocation(b,"viewOrigin");this.Qh=a.getUniformLocation(b,"scrollPos");this.pu=!!(this.zm||this.ym||this.Rh||this.Ph||this.Af||this.zf||this.Oh||this.Nh||this.Sh||this.Qh);this.qp=this.rp=-999;this.Rj=1;this.mp=this.lp=0;this.op=this.kp=this.jp=1;this.up=this.tp=this.sp=this.wp=this.vp=this.np=0;this.pm=[];this.pp=ec();this.ug&&a.uniform1f(this.ug,1);this.xm&&a.uniform4f(this.xm,1,1,1,1);this.hp&&a.uniform1i(this.hp,0);this.Ph&&
a.uniform1i(this.Ph,1);this.Af&&a.uniform2f(this.Af,0,0);this.zf&&a.uniform2f(this.zf,1,1);this.Oh&&a.uniform1f(this.Oh,1);this.Nh&&a.uniform1f(this.Nh,0);this.Sh&&a.uniform2f(this.Sh,0,0);this.Qh&&a.uniform2f(this.Qh,0,0);this.Rh&&a.uniform1f(this.Rh,0);this.nf=!1}function c(a,b){return a[0]===b[0]&&a[1]===b[1]&&a[2]===b[2]&&a[3]===b[3]&&a[4]===b[4]&&a[5]===b[5]&&a[6]===b[6]&&a[7]===b[7]&&a[8]===b[8]&&a[9]===b[9]&&a[10]===b[10]&&a[11]===b[11]&&a[12]===b[12]&&a[13]===b[13]&&a[14]===b[14]&&a[15]===
b[15]}function p(a,b){this.type=a;this.n=b;this.r=b.r;this.xd=this.Qb=this.Mp=0;this.S=this.Tc=null;this.pq=[]}var k=ec();e.prototype.Fo=function(){var a=this.r,b;this.Xo=1;this.tf=this.Fe=null;this.Zi=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.Ka?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):a.disable(a.DEPTH_TEST);this.Zo=a.ONE;this.Vo=a.ONE_MINUS_SRC_ALPHA;
this.Jk=new Float32Array(8E3*(this.Ka?3:2));this.zk=new Float32Array(16E3);this.Xp=new Float32Array(32E3);this.Qm=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Qm);a.bufferData(a.ARRAY_BUFFER,this.Xp.byteLength,a.DYNAMIC_DRAW);this.yi=Array(4);this.ri=Array(4);for(b=0;4>b;b++)this.yi[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.yi[b]),a.bufferData(a.ARRAY_BUFFER,this.Jk.byteLength,a.DYNAMIC_DRAW),this.ri[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.ri[b]),a.bufferData(a.ARRAY_BUFFER,
this.zk.byteLength,a.DYNAMIC_DRAW);this.Kd=0;this.su=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.su);for(var q=new Uint16Array(12E3),d=b=0;12E3>b;)q[b++]=d,q[b++]=d+1,q[b++]=d+2,q[b++]=d,q[b++]=d+2,q[b++]=d+3,d+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,q,a.STATIC_DRAW);this.Rm=this.Ig=this.he=0;this.Ma=[];b=this.Ka?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";q=this.$g({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},b,"<default>");this.Ma.push(q);q=this.$g({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"},
"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","<point>");this.Ma.push(q);q=this.$g({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},b,"<earlyz>");this.Ma.push(q);q=this.$g({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
b,"<fill>");this.Ma.push(q);for(var f in ic)ic.hasOwnProperty(f)&&this.Ma.push(this.$g(ic[f],b,f));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.ne=[];this.Id=0;this.Db=!1;this.ao=this.Ih=-1;this.Xf=null;this.xl=a.createFramebuffer();this.cj=this.jk=null;this.Rn=!1;this.Ka&&(this.cj=a.createRenderbuffer());this.Re=dc([0,0,0]);this.xp=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.xp&&(this.xp=2048);this.ac(0)};n.prototype.zn=function(a){c(this.pp,a)||(fc(a,this.pp),this.r.uniformMatrix4fv(this.Pj,
!1,a))};e.prototype.$g=function(a,b,q){var d=this.r,f=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(f,a.src);d.compileShader(f);if(!d.getShaderParameter(f,d.COMPILE_STATUS))return d.deleteShader(f),null;var m=d.createShader(d.VERTEX_SHADER);d.shaderSource(m,b);d.compileShader(m);if(!d.getShaderParameter(m,d.COMPILE_STATUS))return d.deleteShader(f),d.deleteShader(m),null;b=d.createProgram();d.attachShader(b,f);d.attachShader(b,m);d.linkProgram(b);if(!d.getProgramParameter(b,d.LINK_STATUS))return d.deleteShader(f),
d.deleteShader(m),d.deleteProgram(b),null;d.useProgram(b);d.deleteShader(f);d.deleteShader(m);q=new n(d,b,q);q.tl=a.tl||0;q.ul=a.ul||0;q.$n=!!a.$n;q.hd=!!a.hd;q.Pn=!!a.Pn;q.T=a.T||[];a=0;for(f=q.T.length;a<f;a++)q.T[a][1]=d.getUniformLocation(b,q.T[a][0]),q.pm.push(0),d.uniform1f(q.T[a][1],0);return q};e.prototype.Nl=function(a){var b,q;b=0;for(q=this.Ma.length;b<q;b++)if(this.Ma[b].name===a)return b;return-1};e.prototype.$p=function(a,b,q){var d=this.zc,f=this.Sj,m=[0,0,0,0,0,0,0,0];m[0]=d[0]*a+
d[4]*b+d[12];m[1]=d[1]*a+d[5]*b+d[13];m[2]=d[2]*a+d[6]*b+d[14];m[3]=d[3]*a+d[7]*b+d[15];m[4]=f[0]*m[0]+f[4]*m[1]+f[8]*m[2]+f[12]*m[3];m[5]=f[1]*m[0]+f[5]*m[1]+f[9]*m[2]+f[13]*m[3];m[6]=f[2]*m[0]+f[6]*m[1]+f[10]*m[2]+f[14]*m[3];m[7]=-m[2];0!==m[7]&&(m[7]=1/m[7],m[4]*=m[7],m[5]*=m[7],m[6]*=m[7],q[0]=(.5*m[4]+.5)*this.width,q[1]=(.5*m[5]+.5)*this.height)};e.prototype.If=function(a,b,q){if(this.width!==a||this.height!==b||q){this.we();q=this.r;this.width=a;this.height=b;q.viewport(0,0,a,b);hc(this.cl,
this.ip,this.Lq,this.zc);if(this.Ka){var d=-a/2;a=a/2;var f=b/2;b=-b/2;var m=this.Lk,g=this.Fn,c=this.Sj;c||(c=ec());var e=a-d,n=b-f,l=g-m;c[0]=2/e;c[1]=0;c[2]=0;c[3]=0;c[4]=0;c[5]=2/n;c[6]=0;c[7]=0;c[8]=0;c[9]=0;c[10]=-2/l;c[11]=0;c[12]=-(d+a)/e;c[13]=-(b+f)/n;c[14]=-(g+m)/l;c[15]=1;this.Ai[0]=1;this.Ai[1]=1}else b=a/b,d=this.Lk,a=this.Fn,c=this.Sj,g=d*Math.tan(45*Math.PI/360),b*=g,f=-b,m=-g,c||(c=ec()),e=b-f,n=g-m,l=a-d,c[0]=2*d/e,c[1]=0,c[2]=0,c[3]=0,c[4]=0,c[5]=2*d/n,c[6]=0,c[7]=0,c[8]=(b+f)/
e,c[9]=(g+m)/n,c[10]=-(a+d)/l,c[11]=-1,c[12]=0,c[13]=0,c[14]=-(a*d*2)/l,c[15]=0,d=[0,0],a=[0,0],this.$p(0,0,d),this.$p(1,1,a),this.Ai[0]=1/(a[0]-d[0]),this.Ai[1]=-1/(a[1]-d[1]);d=0;for(a=this.Ma.length;d<a;d++)f=this.Ma[d],f.nf=!1,f.gp&&(q.useProgram(f.li),q.uniformMatrix4fv(f.gp,!1,this.Sj));q.useProgram(this.Ma[this.Ih].li);q.bindTexture(q.TEXTURE_2D,null);q.activeTexture(q.TEXTURE1);q.bindTexture(q.TEXTURE_2D,null);q.activeTexture(q.TEXTURE0);this.tf=this.Fe=null;this.cj&&(q.bindFramebuffer(q.FRAMEBUFFER,
this.xl),q.bindRenderbuffer(q.RENDERBUFFER,this.cj),q.renderbufferStorage(q.RENDERBUFFER,q.DEPTH_COMPONENT16,this.width,this.height),this.Rn||(q.framebufferRenderbuffer(q.FRAMEBUFFER,q.DEPTH_ATTACHMENT,q.RENDERBUFFER,this.cj),this.Rn=!0),q.bindRenderbuffer(q.RENDERBUFFER,null));q.bindFramebuffer(q.FRAMEBUFFER,null);this.jk=null}};e.prototype.Pc=function(){hc(this.cl,this.ip,this.Lq,this.zc);gc(this.zc,this.Ai)};e.prototype.translate=function(a,b){if(0!==a||0!==b){this.Re[0]=a;this.Re[1]=b;this.Re[2]=
0;var q=this.zc,d=this.Re,f=d[0],m=d[1],d=d[2];q[12]=q[0]*f+q[4]*m+q[8]*d+q[12];q[13]=q[1]*f+q[5]*m+q[9]*d+q[13];q[14]=q[2]*f+q[6]*m+q[10]*d+q[14];q[15]=q[3]*f+q[7]*m+q[11]*d+q[15]}};e.prototype.scale=function(a,b){if(1!==a||1!==b)this.Re[0]=a,this.Re[1]=b,this.Re[2]=1,gc(this.zc,this.Re)};e.prototype.nk=function(a){if(0!==a){var b=this.zc,q,d=Math.sin(a);a=Math.cos(a);var f=b[0],m=b[1],g=b[2],c=b[3],e=b[4],n=b[5],l=b[6],r=b[7];q?b!==q&&(q[8]=b[8],q[9]=b[9],q[10]=b[10],q[11]=b[11],q[12]=b[12],q[13]=
b[13],q[14]=b[14],q[15]=b[15]):q=b;q[0]=f*a+e*d;q[1]=m*a+n*d;q[2]=g*a+l*d;q[3]=c*a+r*d;q[4]=f*-d+e*a;q[5]=m*-d+n*a;q[6]=g*-d+l*a;q[7]=c*-d+r*a}};e.prototype.Cc=function(){if(!c(this.qm,this.zc)){var a=this.ic();a.type=5;a.S?fc(this.zc,a.S):a.S=ec(this.zc);fc(this.zc,this.qm);this.Db=!1}};e.prototype.qk=function(a){this.Ka&&(32760<a&&(a=32760),this.ml=this.cl[2]-this.Lk-a*this.Pv)};p.prototype.Ks=function(){var a=this.r,b=this.n;0!==this.Qb?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),
a.bindFramebuffer(a.FRAMEBUFFER,b.xl),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),b.wj=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),b.wj=!1)};p.prototype.Os=function(){this.r.bindTexture(this.r.TEXTURE_2D,this.Tc)};p.prototype.Ps=function(){var a=this.r;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Tc);a.activeTexture(a.TEXTURE0)};p.prototype.Ls=function(){var a=this.Mp,
b=this.n;b.Zi=a;b=b.Xf;b.ug&&b.Rj!==a&&(b.Rj=a,this.r.uniform1f(b.ug,a))};p.prototype.Fs=function(){this.r.drawElements(this.r.TRIANGLES,this.xd,this.r.UNSIGNED_SHORT,this.Qb)};p.prototype.Hs=function(){this.r.blendFunc(this.Qb,this.xd)};p.prototype.Qs=function(){var a,b,c,d=this.n.Ma,f=this.n.ao;a=0;for(b=d.length;a<b;a++)c=d[a],a===f&&c.Pj?(c.zn(this.S),c.nf=!0):c.nf=!1;fc(this.S,this.n.ll)};p.prototype.Gs=function(){var a=this.r,b=this.n;this.Tc?(b.tf===this.Tc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,
null),b.tf=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,b.xl),b.wj||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Tc,0)):a.bindFramebuffer(a.FRAMEBUFFER,null)};p.prototype.Ds=function(){var a=this.r,b=this.Qb;0===b?(a.clearColor(this.S[0],this.S[1],this.S[2],this.S[3]),a.clear(a.COLOR_BUFFER_BIT)):1===b?(a.enable(a.SCISSOR_TEST),a.scissor(this.S[0],this.S[1],this.S[2],this.S[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):
a.clear(a.DEPTH_BUFFER_BIT)};p.prototype.Js=function(){var a=this.r;0!==this.Qb?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};p.prototype.Es=function(){var a=this.r,b=this.n,c=b.Ma[1];a.useProgram(c.li);!c.nf&&c.Pj&&(c.zn(b.ll),c.nf=!0);a.enableVertexAttribArray(c.Lc);a.bindBuffer(a.ARRAY_BUFFER,b.Qm);a.vertexAttribPointer(c.Lc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Qb/4,this.xd);c=b.Xf;a.useProgram(c.li);0<=c.Lc&&(a.enableVertexAttribArray(c.Lc),a.bindBuffer(a.ARRAY_BUFFER,b.yi[b.Kd]),a.vertexAttribPointer(c.Lc,
b.Ka?3:2,a.FLOAT,!1,0,0));0<=c.Ge&&(a.enableVertexAttribArray(c.Ge),a.bindBuffer(a.ARRAY_BUFFER,b.ri[b.Kd]),a.vertexAttribPointer(c.Ge,2,a.FLOAT,!1,0,0))};p.prototype.Ms=function(){var a=this.r,b=this.n,c=b.Ma[this.Qb];b.ao=this.Qb;b.Xf=c;a.useProgram(c.li);!c.nf&&c.Pj&&(c.zn(b.ll),c.nf=!0);c.ug&&c.Rj!==b.Zi&&(c.Rj=b.Zi,a.uniform1f(c.ug,b.Zi));0<=c.Lc&&(a.enableVertexAttribArray(c.Lc),a.bindBuffer(a.ARRAY_BUFFER,b.yi[b.Kd]),a.vertexAttribPointer(c.Lc,b.Ka?3:2,a.FLOAT,!1,0,0));0<=c.Ge&&(a.enableVertexAttribArray(c.Ge),
a.bindBuffer(a.ARRAY_BUFFER,b.ri[b.Kd]),a.vertexAttribPointer(c.Ge,2,a.FLOAT,!1,0,0))};p.prototype.Is=function(){var a=this.S;this.r.uniform4f(this.n.Xf.xm,a[0],a[1],a[2],a[3])};p.prototype.Ns=function(){var a,b,c=this.n.Xf,d=this.r;a=this.S;c.Ph&&this.n.tf!==this.Tc&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,this.Tc),this.n.tf=this.Tc,d.activeTexture(d.TEXTURE0));var f=a[0];c.zm&&f!==c.rp&&(c.rp=f,d.uniform1f(c.zm,f));f=a[1];c.ym&&f!==c.qp&&(c.qp=f,d.uniform1f(c.ym,f));f=a[2];b=a[3];
!c.Af||f===c.lp&&b===c.mp||(c.lp=f,c.mp=b,d.uniform2f(c.Af,f,b));f=a[4];b=a[5];!c.zf||f===c.jp&&b===c.kp||(c.jp=f,c.kp=f,d.uniform2f(c.zf,f,b));f=a[6];c.Oh&&f!==c.op&&(c.op=f,d.uniform1f(c.Oh,f));f=a[7];c.Nh&&f!==c.np&&(c.np=f,d.uniform1f(c.Nh,f));f=a[8];b=a[9];!c.Sh||f===c.vp&&b===c.wp||(c.vp=f,c.wp=b,d.uniform2f(c.Sh,f,b));f=a[10];b=a[11];!c.Qh||f===c.sp&&b===c.tp||(c.sp=f,c.tp=b,d.uniform2f(c.Qh,f,b));f=a[12];c.Rh&&f!==c.up&&(c.up=f,d.uniform1f(c.Rh,f));if(c.T.length)for(a=0,b=c.T.length;a<b;a++)f=
this.pq[a],f!==c.pm[a]&&(c.pm[a]=f,d.uniform1f(c.T[a][1],f))};e.prototype.ic=function(){this.Id===this.ne.length&&this.ne.push(new p(0,this));return this.ne[this.Id++]};e.prototype.we=function(){if(0!==this.Id&&!this.r.isContextLost()){var a=this.r;0<this.Rm&&(a.bindBuffer(a.ARRAY_BUFFER,this.Qm),a.bufferSubData(a.ARRAY_BUFFER,0,this.Xp.subarray(0,this.Rm)),b&&0<=b.Lc&&"<point>"===b.name&&a.vertexAttribPointer(b.Lc,4,a.FLOAT,!1,0,0));if(0<this.he){var b=this.Xf;a.bindBuffer(a.ARRAY_BUFFER,this.yi[this.Kd]);
a.bufferSubData(a.ARRAY_BUFFER,0,this.Jk.subarray(0,this.he));b&&0<=b.Lc&&"<point>"!==b.name&&a.vertexAttribPointer(b.Lc,this.Ka?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.ri[this.Kd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.zk.subarray(0,this.Ig));b&&0<=b.Ge&&"<point>"!==b.name&&a.vertexAttribPointer(b.Ge,2,a.FLOAT,!1,0,0)}for(var c,a=0,b=this.Id;a<b;a++)switch(c=this.ne[a],c.type){case 1:c.Fs();break;case 2:c.Os();break;case 3:c.Ls();break;case 4:c.Hs();break;case 5:c.Qs();break;case 6:c.Gs();
break;case 7:c.Ds();break;case 8:c.Es();break;case 9:c.Ms();break;case 10:c.Ns();break;case 11:c.Ps();break;case 12:c.Is();break;case 13:c.Js();break;case 14:c.Ks()}this.Rm=this.Ig=this.he=this.Id=0;this.wj=this.Db=!1;this.Kd++;4<=this.Kd&&(this.Kd=0)}};e.prototype.Me=function(a){if(a!==this.Xo&&!this.xh){var b=this.ic();b.type=3;this.Xo=b.Mp=a;this.Db=!1}};e.prototype.$b=function(a){if(a!==this.Fe){var b=this.ic();b.type=2;this.Fe=b.Tc=a;this.Db=!1}};e.prototype.Le=function(a,b){if((a!==this.Zo||
b!==this.Vo)&&!this.xh){var c=this.ic();c.type=4;c.Qb=a;c.xd=b;this.Zo=a;this.Vo=b;this.Db=!1}};e.prototype.hq=function(){this.Le(this.r.ONE,this.r.ONE_MINUS_SRC_ALPHA)};e.prototype.ci=function(a,b,c,d,f,m,g,A){15992<=this.he&&this.we();var e=this.he,n=this.Ig,l=this.Jk,r=this.zk,z=this.ml;if(this.Db)this.ne[this.Id-1].xd+=6;else{var h=this.ic();h.type=1;h.Qb=this.Ka?e:e/2*3;h.xd=6;this.Db=!0}this.Ka?(l[e++]=a,l[e++]=b,l[e++]=z,l[e++]=c,l[e++]=d,l[e++]=z,l[e++]=f,l[e++]=m,l[e++]=z,l[e++]=g,l[e++]=
A,l[e++]=z):(l[e++]=a,l[e++]=b,l[e++]=c,l[e++]=d,l[e++]=f,l[e++]=m,l[e++]=g,l[e++]=A);r[n++]=0;r[n++]=0;r[n++]=1;r[n++]=0;r[n++]=1;r[n++]=1;r[n++]=0;r[n++]=1;this.he=e;this.Ig=n};e.prototype.ld=function(a,b,c,d,f,m,g,e,n){15992<=this.he&&this.we();var k=this.he,l=this.Ig,r=this.Jk,z=this.zk,h=this.ml;if(this.Db)this.ne[this.Id-1].xd+=6;else{var t=this.ic();t.type=1;t.Qb=this.Ka?k:k/2*3;t.xd=6;this.Db=!0}var t=n.left,x=n.top,B=n.right;n=n.bottom;this.Ka?(r[k++]=a,r[k++]=b,r[k++]=h,r[k++]=c,r[k++]=
d,r[k++]=h,r[k++]=f,r[k++]=m,r[k++]=h,r[k++]=g,r[k++]=e,r[k++]=h):(r[k++]=a,r[k++]=b,r[k++]=c,r[k++]=d,r[k++]=f,r[k++]=m,r[k++]=g,r[k++]=e);z[l++]=t;z[l++]=x;z[l++]=B;z[l++]=x;z[l++]=B;z[l++]=n;z[l++]=t;z[l++]=n;this.he=k;this.Ig=l};e.prototype.ac=function(a){if(this.Ih!==a){if(!this.Ma[a]){if(0===this.Ih)return;a=0}var b=this.ic();b.type=9;this.Ih=b.Qb=a;this.Db=!1}};e.prototype.$h=function(a){a=this.Ma[a];return!(!a.Af&&!a.zf)};e.prototype.Um=function(a){a=this.Ma[a];return!!(a.Af||a.zf||a.$n)};
e.prototype.Tm=function(a){return this.Ma[a].hd};e.prototype.bv=function(a){a=this.Ma[a];return 0!==a.tl||0!==a.ul};e.prototype.Xt=function(a){return this.Ma[a].tl};e.prototype.Yt=function(a){return this.Ma[a].ul};e.prototype.Zt=function(a,b){return this.Ma[a].T[b][2]};e.prototype.fk=function(a){return this.Ma[a].Pn};e.prototype.Eg=function(a,b,c,d,f,m,g,e,n,k,l,r,z,h,t){var x=this.Ma[this.Ih],B,I;if(x.pu||t.length){B=this.ic();B.type=10;B.S?fc(this.zc,B.S):B.S=ec();I=B.S;I[0]=b;I[1]=c;I[2]=d;I[3]=
f;I[4]=m;I[5]=g;I[6]=e;I[7]=n;I[8]=k;I[9]=l;I[10]=r;I[11]=z;I[12]=h;x.Ph?B.Tc=a:B.Tc=null;if(t.length)for(c=B.pq,c.length=t.length,a=0,b=t.length;a<b;a++)c[a]=t[a];this.Db=!1}};e.prototype.clear=function(a,b,c,d){var f=this.ic();f.type=7;f.Qb=0;f.S||(f.S=ec());f.S[0]=a;f.S[1]=b;f.S[2]=c;f.S[3]=d;this.Db=!1};e.prototype.clearRect=function(a,b,c,d){if(!(0>c||0>d)){var f=this.ic();f.type=7;f.Qb=1;f.S||(f.S=ec());f.S[0]=a;f.S[1]=b;f.S[2]=c;f.S[3]=d;this.Db=!1}};e.prototype.kq=function(a){if(this.Ka&&
(a=!!a,this.xh!==a)){var b=this.ic();b.type=14;b.Qb=a?1:0;this.Db=!1;this.xh=a;this.jk=null;this.xh?this.ac(2):this.ac(0)}};e.prototype.jq=function(a){if(this.Ka){var b=this.ic();b.type=13;b.Qb=a?1:0;this.Db=!1}};e.prototype.mo=function(){fc(this.qm,k);this.Pc();this.Cc();var a=this.width/2,b=this.height/2;this.ci(-a,b,a,b,a,-b,-a,-b);fc(k,this.zc);this.Cc()};e.prototype.iq=function(a,b,c){this.ac(3);var d=this.ic();d.type=12;d.S||(d.S=ec());d.S[0]=a;d.S[1]=b;d.S[2]=c;d.S[3]=1;this.Db=!1};e.prototype.zv=
function(){this.ac(0)};e.prototype.jv=function(){this.ac(2)};e.prototype.av=function(){this.we();this.r.flush()};var u=[],b={};e.prototype.us=function(){V(u);b={}};e.prototype.tg=function(a,c,e,d){c=!!c;e=!!e;var f=a.src+","+c+","+e+(c?",undefined":""),m=null;if("undefined"!==typeof a.src&&b.hasOwnProperty(f))return m=b[f],m.Li++,m;this.we();var g=this.r,A=ja(a.width)&&ja(a.height),m=g.createTexture();g.bindTexture(g.TEXTURE_2D,m);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var n=g.RGBA,k=
g.RGBA,l=g.UNSIGNED_BYTE;if(d&&!this.Ud)switch(d){case 1:k=n=g.RGB;break;case 2:l=g.UNSIGNED_SHORT_4_4_4_4;break;case 3:l=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:k=n=g.RGB,l=g.UNSIGNED_SHORT_5_6_5}if(!A&&c){d=document.createElement("canvas");d.width=ka(a.width);d.height=ka(a.height);var r=d.getContext("2d");r.webkitImageSmoothingEnabled=e;r.mozImageSmoothingEnabled=e;r.msImageSmoothingEnabled=e;r.imageSmoothingEnabled=e;r.drawImage(a,0,0,a.width,a.height,0,0,d.width,d.height);g.texImage2D(g.TEXTURE_2D,
0,n,k,l,d)}else g.texImage2D(g.TEXTURE_2D,0,n,k,l,a);c?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE));e?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),A&&this.fo?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_LINEAR),g.generateMipmap(g.TEXTURE_2D)):g.texParameteri(g.TEXTURE_2D,
g.TEXTURE_MIN_FILTER,g.LINEAR)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST));g.bindTexture(g.TEXTURE_2D,null);this.Fe=null;m.Ze=a.width;m.Ye=a.height;m.Li=1;m.Vn=f;u.push(m);return b[f]=m};e.prototype.sc=function(a,b,c,d){this.we();var f=this.r;this.Ud&&(d=!1);var m=f.createTexture();f.bindTexture(f.TEXTURE_2D,m);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,a,b,0,f.RGBA,d?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,null);f.texParameteri(f.TEXTURE_2D,
f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,c?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,c?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.Fe=null;m.Ze=a;m.Ye=b;u.push(m);return m};e.prototype.Ov=function(a,b,c){this.we();var d=this.r;this.Ud&&(c=!1);d.bindTexture(d.TEXTURE_2D,b);d.pixelStorei(d.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{d.texImage2D(d.TEXTURE_2D,
0,d.RGBA,d.RGBA,c?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,a)}catch(f){console&&console.error&&console.error("Error updating WebGL texture: ",f)}d.bindTexture(d.TEXTURE_2D,null);this.Fe=null};e.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Li&&1<a.Li?a.Li--:(this.we(),a===this.Fe&&(this.r.bindTexture(this.r.TEXTURE_2D,null),this.Fe=null),a===this.tf&&(this.r.activeTexture(this.r.TEXTURE1),this.r.bindTexture(this.r.TEXTURE_2D,null),this.r.activeTexture(this.r.TEXTURE0),this.tf=null),
Da(u,a),"undefined"!==typeof a.Vn&&delete b[a.Vn],this.r.deleteTexture(a)))};e.prototype.Qc=function(a){if(a!==this.jk){var b=this.ic();b.type=6;this.jk=b.Tc=a;this.Db=!1}};kb=e})();
(function(){function e(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function n(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function c(h){if(h&&(h.getContext||h.dc)&&!h.c2runtime){h.c2runtime=this;var a=this;this.Ae=(this.wh=/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.Wb=!!h.dc;this.Ko="undefined"!==typeof window.AppMobi||this.Wb;this.bd=!!window.c2cocoonjs;this.cd=!!window.c2ejecta;this.bd&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.cd&&(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.Ea=this.Wb||this.bd||this.cd;this.yh=/edge\//i.test(navigator.userAgent);this.Ud=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.yh;this.Oo=/tizen/i.test(navigator.userAgent);this.uj=/android/i.test(navigator.userAgent)&&!this.Oo&&!this.Ud&&!this.yh;this.nm=(/iphone/i.test(navigator.userAgent)||
/ipod/i.test(navigator.userAgent))&&!this.Ud&&!this.yh;this.So=/ipad/i.test(navigator.userAgent);this.Dh=this.nm||this.So||this.cd;this.Cu=this.nm&&/os\s6/i.test(navigator.userAgent);this.vh=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Ud&&!this.yh;this.fm=/amazonwebappplatform/i.test(navigator.userAgent);this.xu=/firefox/i.test(navigator.userAgent);this.No=/safari/i.test(navigator.userAgent)&&!this.vh&&!this.Ud&&!this.yh;this.Au=/windows/i.test(navigator.userAgent);
this.Ce="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Qo=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Bu=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.kg=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.lm=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Po=
this.Qo||this.Bu||this.lm;this.wu=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.vj=this.uj&&!this.vh&&!this.wh&&!this.xu&&!this.fm&&!this.Ea;this.devicePixelRatio=1;this.Be=this.Ae||this.wh||this.Ko||this.bd||this.uj||this.Dh||this.kg||this.lm||this.wu||this.Oo||this.cd;this.Be||(this.Be=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.Ce||"?nw"!==window.location.search&&
!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Ce=!0);this.canvas=h;this.Oi=document.getElementById("c2canvasdiv");this.n=this.r=null;this.Ql="(unavailable)";this.Ka=!1;this.ef=0;this.ja=null;this.Bl="";this.jj=!1;this.Kp=this.Lp=0;this.canvas.oncontextmenu=function(h){h.preventDefault&&h.preventDefault();return!1};this.canvas.onselectstart=function(h){h.preventDefault&&h.preventDefault();return!1};this.Wb&&(window.c2runtime=this);this.Ce&&(window.ondragover=function(h){h.preventDefault();
return!1},window.ondrop=function(h){h.preventDefault();return!1},require("nw.gui").App.clearCache());this.vj&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=h.width;this.height=h.height;this.D=this.width;this.C=this.height;this.Xi=this.width;this.Wi=this.height;this.Kh=window.innerWidth;this.Jh=window.innerHeight;this.It=!1;this.pa=!0;this.Ah=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.q=[];this.Ya=[];this.rm=
{};this.ed=[];this.sl={};this.Nd=[];this.Ng=[];this.Ek=[];this.ds=[];this.es=[];this.To=this.wq=null;this.bf={};this.hm=this.ze=!1;this.yc=0;this.gm=this.jm=!1;this.$c=[];this.xj=!1;this.Vd=this.Eb=this.Kj=this.dn="";this.pi=this.tq=!1;this.jl=this.Th=this.ve=this.df=0;this.Lf=1;this.qb=new ab;this.ie=new ab;this.Xj=this.oj=this.jf=this.Gd=this.vf=this.Al=this.Ej=0;this.Xg=null;this.ej=[];this.rl=[];this.gj=-1;this.Am=[[]];this.wn=this.Qj=0;this.hk(null);this.hh=this.Ep=this.Wh=0;this.qi=[];this.tn=
this.Xm=-1;this.Eh=!0;this.Oj=0;this.zh=!1;this.Cv=0;this.Tf=null;this.Mb=this.Ao=!1;this.Ip=new ba;this.Gm=new ba;this.Jp=new ba;this.ei=[];this.nd=new cb([]);this.qn=new cb([]);this.Sf=[];this.oh={};this.Wf={};this.Rf={};this.Mg={};this.Sn={};this.fp=this.Ij=this.$a=this.gb=this.ep=this.Hj=this.ua=null;this.Kg=this.mm=!1;this.Cl=[null,null];this.kf=0;this.yl="";this.Yd={};this.oi=this.yf=null;this.uq="";this.Wj=[];this.iv()}}function p(h){h.target.result.createObjectStore("saves",{keyPath:"slot"})}
function k(h,a,d,b){var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=p;f.onerror=b;f.onsuccess=function(f){f=f.target.result;f.onerror=b;f.transaction(["saves"],"readwrite").objectStore("saves").put({slot:h,data:a}).onsuccess=d}}function u(h,a,d){var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=p;b.onerror=d;b.onsuccess=function(b){b=b.target.result;b.onerror=d;var f=b.transaction(["saves"]).objectStore("saves").get(h);f.onsuccess=function(){f.result?a(f.result.data):a(null)}}}function b(){ea("Reloading for continuous preview");
window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function a(h){var a,d={};for(a in h)!h.hasOwnProperty(a)||h[a]instanceof ba||h[a]&&"undefined"!==typeof h[a].Pw||(d[a]=h[a]);return d}c.prototype.iv=function(){var h=this,a;this.kg?a=new ActiveXObject("Microsoft.XMLHTTP"):a=new XMLHttpRequest;var d="data.js";if(this.Qo||this.kg||this.lm)d="data.json";a.open("GET",d,!0);var b=!1;if(!this.Ea&&
"response"in a&&"responseType"in a)try{a.responseType="json",b="json"===a.responseType}catch(f){b=!1}if(!b&&"responseType"in a)try{a.responseType="text"}catch(l){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(g){}this.kg?a.onreadystatechange=function(){4===a.readyState&&h.Mj(JSON.parse(a.responseText))}:(a.onload=function(){if(b)h.Mj(a.response);else if(h.cd){var d=a.responseText,d=d.substr(d.indexOf("{"));h.Mj(JSON.parse(d))}else h.Mj(JSON.parse(a.responseText))},
a.onerror=function(h){fa("Error requesting "+d+":");fa(h)});a.send()};c.prototype.tu=function(){var h=this,a,d,b,f,l,g,c,m,r;this.De=(!this.Ea||this.cd)&&this.Mv&&!this.vj;0===this.Ub&&this.Dh&&(this.De=!1);this.devicePixelRatio=this.De?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.yb();d=!(!this.It&&(!this.Wk||this.Ce||this.Po||this.kg||this.wh||this.Ae||this.fm));0<this.Ub&&this.setSize(e(),n(),!0);try{this.Xs&&(this.bd||
this.cd||!this.Ea)&&(a={alpha:d,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.r=this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",a))}catch(z){}if(this.r){if(a=this.r.getExtension("WEBGL_debug_renderer_info"))this.Ql=this.r.getParameter(a.UNMASKED_RENDERER_WEBGL)+" ["+this.r.getParameter(a.UNMASKED_VENDOR_WEBGL)+"]";this.Ka&&(this.Ql+=" [front-to-back enabled]");this.Ea||(this.tb=document.createElement("canvas"),jQuery(this.tb).appendTo(this.canvas.parentNode),
this.tb.oncontextmenu=function(){return!1},this.tb.onselectstart=function(){return!1},this.tb.width=this.Xi,this.tb.height=this.Wi,jQuery(this.tb).css({width:this.Xi+"px",height:this.Wi+"px"}),this.Yp(),this.Pm=this.tb.getContext("2d"));this.n=new kb(this.r,this.Be,this.Ka);this.n.If(this.canvas.width,this.canvas.height);this.n.fo=0!==this.Rs;this.ja=null;this.canvas.addEventListener("webglcontextlost",function(a){a.preventDefault();h.Lu();ea("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},
!1);this.canvas.addEventListener("webglcontextrestored",function(){h.n.Fo();h.n.If(h.n.width,h.n.height,!0);h.gb=null;h.$a=null;h.Cl[0]=null;h.Cl[1]=null;h.Mu();h.pa=!0;ea("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);a=0;for(d=this.q.length;a<d;a++)for(l=this.q[a],b=0,f=l.L.length;b<f;b++)c=l.L[b],c.bb=this.n.Nl(c.id),c.hd=this.n.Tm(c.bb),this.Kg=this.Kg||this.n.$h(c.bb);a=0;for(d=this.ed.length;a<d;a++){m=this.ed[a];b=0;for(f=m.L.length;b<f;b++)c=m.L[b],c.bb=this.n.Nl(c.id),
c.hd=this.n.Tm(c.bb);m.qd();b=0;for(f=m.O.length;b<f;b++){r=m.O[b];l=0;for(g=r.L.length;l<g;l++)c=r.L[l],c.bb=this.n.Nl(c.id),c.hd=this.n.Tm(c.bb),this.Kg=this.Kg||this.n.$h(c.bb);r.qd()}}}else{if(0<this.Ub&&this.Wb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ja=AppMobi.canvas.getContext("2d");try{this.ja.samplingMode=this.R?"smooth":"sharp",this.ja.globalScale=1,this.ja.HTML5CompatibilityMode=!0,this.ja.imageSmoothingEnabled=this.R}catch(A){}0!==
this.width&&0!==this.height&&(this.ja.width=this.width,this.ja.height=this.height)}this.ja||(this.bd?(a={antialias:!!this.R,alpha:d},this.ja=this.canvas.getContext("2d",a)):(a={alpha:d},this.ja=this.canvas.getContext("2d",a)),this.ja.webkitImageSmoothingEnabled=this.R,this.ja.mozImageSmoothingEnabled=this.R,this.ja.msImageSmoothingEnabled=this.R,this.ja.imageSmoothingEnabled=this.R);this.Pm=this.tb=null}this.Cq=function(a){h.cb(!1,a)};window==window.top||this.Ea||this.Po||this.kg||(document.addEventListener("mousedown",
function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.bd&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ea("Reloading for continuous preview"),this.Kj="__c2_continuouspreview",this.pi=!0),this.Vu&&!this.Be&&(jQuery(window).focus(function(){h.setSuspended(!1)}),jQuery(window).blur(function(){h.setSuspended(!0)})));this.Ea||(a=function(h){if(jb(h)&&
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.Ub&&this.De&&1<this.devicePixelRatio&&this.setSize(this.jb,this.ib,!0);this.Hq();this.mu();
this.go();this.F={}};c.prototype.setSize=function(h,a,d){var b=0,f=0,l=0,g=0,g=0,c=this.Cu&&this.No&&!navigator.standalone&&!this.Ea&&!this.Ae;c&&(a+=60);if(this.Kh!==h||this.Jh!==a||d){this.Kh=h;this.Jh=a;var m=this.Ub,r=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.zh)&&!this.Ae;if(r||0!==this.Ub||d)r&&0<this.kf&&(m=this.kf),d=this.devicePixelRatio,4<=m?(l=this.jb/this.ib,h/a>l?(l*=a,5===m?(g=l*d/this.jb,1<g?g=Math.floor(g):1>g&&
(g=1/Math.ceil(1/g)),l=this.jb*g/d,g=this.ib*g/d,b=(h-l)/2,f=(a-g)/2,h=l,a=g):(b=(h-l)/2,h=l)):(g=h/l,5===m?(g=g*d/this.ib,1<g?g=Math.floor(g):1>g&&(g=1/Math.ceil(1/g)),l=this.jb*g/d,g=this.ib*g/d,b=(h-l)/2,f=(a-g)/2,h=l):f=(a-g)/2,a=g),r&&!this.Ce&&(f=b=0)):this.Ce&&this.zh&&0===this.no&&(b=Math.floor((h-this.jb)/2),f=Math.floor((a-this.ib)/2),h=this.jb,a=this.ib),2>m&&(this.Vg=d),this.De&&this.So&&1<d&&(1024<=h&&(h=1023),1024<=a&&(a=1023)),this.Xi=Math.round(h),this.Wi=Math.round(a),this.width=
Math.round(h*d),this.height=Math.round(a*d),this.pa=!0,this.Xq?(this.D=this.width,this.C=this.height,this.uc=!0):this.width<this.jb&&this.height<this.ib||1===m?(this.D=this.width,this.C=this.height,this.uc=!0):(this.D=this.jb,this.C=this.ib,this.uc=!1,2===m?(l=this.jb/this.ib,m=this.Kh/this.Jh,m<l?this.D=this.C*m:m>l&&(this.C=this.D/m)):3===m&&(l=this.jb/this.ib,m=this.Kh/this.Jh,m>l?this.D=this.C*m:m<l&&(this.C=this.D/m))),this.Oi&&!this.Ea&&(jQuery(this.Oi).css({width:Math.round(h)+"px",height:Math.round(a)+
"px","margin-left":Math.floor(b)+"px","margin-top":Math.floor(f)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(h)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(h*d),this.canvas.height=Math.round(a*d),this.cd?(this.canvas.style.left=Math.floor(b)+"px",this.canvas.style.top=Math.floor(f)+"px",this.canvas.style.width=Math.round(h)+"px",this.canvas.style.height=Math.round(a)+"px"):this.De&&!this.Ea&&(this.canvas.style.width=Math.round(h)+
"px",this.canvas.style.height=Math.round(a)+"px")),this.tb&&(this.tb.width=Math.round(h),this.tb.height=Math.round(a),this.tb.style.width=Math.round(h)+"px",this.tb.style.height=Math.round(a)+"px"),this.n&&this.n.If(Math.round(h*d),Math.round(a*d)),this.Wb&&this.ja&&(this.ja.width=Math.round(h),this.ja.height=Math.round(a)),this.ja&&(this.ja.webkitImageSmoothingEnabled=this.R,this.ja.mozImageSmoothingEnabled=this.R,this.ja.msImageSmoothingEnabled=this.R,this.ja.imageSmoothingEnabled=this.R),this.Hq(),
this.Ea||!c&&!this.nm||window.setTimeout(function(){window.scrollTo(0,1)},100)}};c.prototype.Hq=function(){if(this.ks&&0!==this.Nm){var h="portrait";2===this.Nm&&(h="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(h):screen.lockOrientation?screen.lockOrientation(h):screen.webkitLockOrientation?screen.webkitLockOrientation(h):screen.mozLockOrientation?screen.mozLockOrientation(h):screen.msLockOrientation&&screen.msLockOrientation(h)}};c.prototype.Lu=function(){this.n.us();
this.mm=!0;var h,a,d;h=0;for(a=this.q.length;h<a;h++)d=this.q[h],d.Xh&&d.Xh()};c.prototype.Mu=function(){this.mm=!1;var h,a,d;h=0;for(a=this.q.length;h<a;h++)d=this.q[h],d.Yj&&d.Yj()};c.prototype.Yp=function(){if(!this.Ea){var h=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.zh)&&!this.Ae?jQuery(this.canvas).offset():jQuery(this.canvas).position();h.position="absolute";jQuery(this.tb).css(h)}};var v=window.cancelAnimationFrame||window.mozCancelAnimationFrame||
window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;c.prototype.setSuspended=function(h){var a;if(h&&!this.Ah)for(ea("[Construct 2] Suspending"),this.Ah=!0,-1!==this.Xm&&v&&v(this.Xm),-1!==this.tn&&clearTimeout(this.tn),h=0,a=this.qi.length;h<a;h++)this.qi[h](!0);else if(!h&&this.Ah){ea("[Construct 2] Resuming");this.Ah=!1;this.Ej=Xa();this.vf=Xa();h=this.Th=this.oj=0;for(a=this.qi.length;h<a;h++)this.qi[h](!1);this.cb(!1)}};c.prototype.cs=function(h){this.qi.push(h)};
c.prototype.ke=function(h){return this.Wj[h]};c.prototype.Mj=function(h){h&&h.project||fa("Project model unavailable");h=h.project;this.name=h[0];this.lo=h[1];this.Ub=h[12];this.no=h[12];this.jb=h[10];this.ib=h[11];this.Tp=this.jb/2;this.Up=this.ib/2;this.Ea&&!this.cd&&(4<=h[12]||0===h[12])&&(ea("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.no=this.Ub=3);this.Bn=h[18];this.Mh=h[19];0===this.Mh&&(this.yf=new Image,this.yf.crossOrigin=
"anonymous",this.yf.src="loading-logo.png");this.Wh=h[21];this.Wj=jc();this.Ed=new Y(this);var a,d,b,f,l,g,c,m,r;a=0;for(d=h[2].length;a<d;a++)c=h[2][a],b=this.ke(c[0]),lb(c,b.prototype),r=new b(this),r.wk=c[1],r.Ee=c[2],r.Bp=c[9],r.V&&r.V(),this.plugins.push(r);this.Wj=jc();a=0;for(d=h[3].length;a<d;a++){c=h[3][a];l=this.ke(c[1]);r=null;b=0;for(f=this.plugins.length;b<f;b++)if(this.plugins[b]instanceof l){r=this.plugins[b];break}var e=new r.Da(r);e.name=c[0];e.B=c[2];e.dm=c[3].slice(0);e.Nv=c[3].length;
e.ls=c[4];e.Kt=c[5];e.W=c[11];e.B?(e.xg=[],e.Od=this.hh++,e.Ga=null):(e.xg=null,e.Od=-1,e.Ga=[]);e.hj=null;e.ag=null;e.ho=null;e.Nb=!1;e.cc=null;c[6]?(e.Ak=c[6][0],e.rn=c[6][1],e.si=c[6][2]):(e.Ak=null,e.rn=0,e.si=0);c[7]?e.Tb=c[7]:e.Tb=null;e.index=a;e.d=[];e.aj=[];e.Oe=[new mb(e)];e.Ld=0;e.Hc=null;e.As=0;e.Hg=!0;e.Gk=nb;e.Pt=ob;e.Vt=pb;e.Y=qb;e.bi=rb;e.gk=sb;e.Ef=tb;e.qj=ub;e.El=vb;e.Jl=wb;e.Xc=yb;e.to=zb;e.Ti=new db(this.jb,this.ib);e.Ei=!0;e.Fi=!1;e.F={};e.toString=Ab;e.Ya=[];b=0;for(f=c[8].length;b<
f;b++){m=c[8][b];var z=this.ke(m[1]),A=null;l=0;for(g=this.Ya.length;l<g;l++)if(this.Ya[l]instanceof z){A=this.Ya[l];break}A||(A=new z(this),A.Vj=[],A.Uj=new ba,A.V&&A.V(),this.Ya.push(A),kc&&A instanceof kc&&(this.wq=A),bc.Eu&&A instanceof bc.Eu&&(this.To=A));-1===A.Vj.indexOf(e)&&A.Vj.push(e);l=new A.Da(A,e);l.name=m[0];l.W=m[2];l.V();e.Ya.push(l)}e.global=c[9];e.im=c[10];e.L=[];b=0;for(f=c[12].length;b<f;b++)e.L.push({id:c[12][b][0],name:c[12][b][1],bb:-1,hd:!1,qc:!0,index:b});e.Yw=c[13];this.Bn&&
!e.B&&!e.im&&r.Ee||e.V();e.name&&(this.types[e.name]=e);this.q.push(e);r.wk&&(b=new r.ra(e),b.uid=this.Wh++,b.bq=this.Ep++,b.of=0,b.mh=Bb,b.toString=Cb,b.p=c[14],b.V(),e.d.push(b),this.Yd[b.uid.toString()]=b)}a=0;for(d=h[4].length;a<d;a++)for(l=h[4][a],g=this.q[l[0]],b=1,f=l.length;b<f;b++)c=this.q[l[b]],c.Ga.push(g),g.xg.push(c);a=0;for(d=h[28].length;a<d;a++){l=h[28][a];g=[];b=0;for(f=l.length;b<f;b++)g.push(this.q[l[b]]);b=0;for(f=g.length;b<f;b++)g[b].Nb=!0,g[b].cc=g}if(0<this.hh)for(a=0,d=this.q.length;a<
d;a++)if(c=this.q[a],!c.B&&c.Ga.length){c.hj=Array(this.hh);c.ag=Array(this.hh);c.ho=Array(this.hh);e=[];b=A=z=m=0;for(f=c.Ga.length;b<f;b++)for(r=c.Ga[b],c.hj[r.Od]=m,m+=r.Nv,c.ag[r.Od]=z,z+=r.ls,c.ho[r.Od]=A,A+=r.Kt,l=0,g=r.L.length;l<g;l++)e.push(xa({},r.L[l]));c.L=e.concat(c.L);b=0;for(f=c.L.length;b<f;b++)c.L[b].index=b}a=0;for(d=h[5].length;a<d;a++)c=h[5][a],b=new Db(this,c),this.rm[b.name]=b,this.ed.push(b);a=0;for(d=h[6].length;a<d;a++)c=h[6][a],b=new Eb(this,c),this.sl[b.name]=b,this.Nd.push(b);
a=0;for(d=this.Nd.length;a<d;a++)this.Nd[a].Va();a=0;for(d=this.Nd.length;a<d;a++)this.Nd[a].yn();a=0;for(d=this.Ek.length;a<d;a++)this.Ek[a].Va();V(this.Ek);this.gs=h[7];this.yl=h[8];this.Ac=h[9];this.Vg=1;this.Xs=h[13];this.R=h[14];this.Wk=h[15];this.Mv=h[17];this.Nm=h[20];this.ks=0<this.Nm;this.Vu=h[22];this.uc=this.Xq=h[23];this.Rs=h[24];this.Zu=h[25];this.Ka=h[27]&&!this.Ud;this.xk=Date.now();V(this.Wj);this.tu()};var q=!1;c.prototype.Dn=function(h,a){h.cocoonLazyLoad=!0;h.onerror=function(a){q=
h.Un=!0;console&&console.error&&console.error("Error loading image '"+h.src+"': ",a)};this.cd?h.src=a:h.src||("undefined"!==typeof XAPKReader?XAPKReader.get(a,function(a){h.src=a},function(d){q=h.Un=!0;console&&console.error&&console.error("Error extracting image '"+a+"' from expansion file: ",d)}):(h.crossOrigin="anonymous",h.src=a));this.Ng.push(h)};c.prototype.Ht=function(h){var a,d;a=0;for(d=this.Ng.length;a<d;a++)if(this.Ng[a].vs===h)return this.Ng[a];return null};var d=0,f=!1;c.prototype.mu=
function(){this.Tf&&(d=this.Tf.xv(this.gs))};c.prototype.Qn=function(){var h=d,a=0,b=0,l=!0,g,c,b=0;for(g=this.Ng.length;b<g;b++){c=this.Ng[b];var m=c.Zn;if(!m||0>=m)m=5E4;h+=m;c.src&&(c.complete||c.loaded)&&!c.Un?a+=m:l=!1}l&&this.Zu&&this.Tf&&(f||(this.Tf.Dv(),f=!0),b=this.Tf.Wt(),a+=b,b<d&&(l=!1));this.Ff=0==h?0:a/h;return l};c.prototype.go=function(){if(this.ja||this.n){var h=this.ja||this.Pm;this.tb&&this.Yp();this.Ff=0;this.dp=-1;if(this.Qn())this.nu();else{var a=Date.now()-this.xk;if(h){var d=
this.width,b=this.height,f=this.devicePixelRatio;this.tb&&(d=this.Xi,b=this.Wi,f=1);if(3!==this.Mh&&(this.bd||500<=a&&this.dp!=this.Ff)){h.clearRect(0,0,d,b);var a=d/2,b=b/2,d=0===this.Mh&&this.yf.complete,l=40*f,c=0,g=80*f,m;d&&(g=this.yf.width*f,m=this.yf.height*f,l=g/2,c=m/2,h.drawImage(this.yf,S(a-l),S(b-c),g,m));1>=this.Mh?(a=S(a-l)+.5,b=S(b+(c+(d?12*f:0)))+.5,h.fillStyle=q?"red":"DodgerBlue",h.fillRect(a,b,Math.floor(g*this.Ff),6*f),h.strokeStyle="black",h.strokeRect(a,b,g,6*f),h.strokeStyle=
"white",h.strokeRect(a-1*f,b-1*f,g+2*f,8*f)):2===this.Mh&&(h.font=this.cd?"12pt ArialMT":"12pt Arial",h.fillStyle=q?"#f00":"#999",h.Xw="middle",f=Math.round(100*this.Ff)+"%",d=h.measureText?h.measureText(f):null,h.fillText(f,a-(d?d.width:0)/2,b))}this.dp=this.Ff}setTimeout(function(h){return function(){h.go()}}(this),this.bd?10:100)}}};c.prototype.nu=function(){this.tb&&(this.canvas.parentNode.removeChild(this.tb),this.tb=this.Pm=null);this.xk=Date.now();this.vf=Xa();var h,a,d;if(this.Bn)for(h=0,
a=this.q.length;h<a;h++)d=this.q[h],d.B||d.im||!d.na.Ee||d.V();else this.Eh=!1;h=0;for(a=this.ed.length;h<a;h++)this.ed[h].ws();2<=this.Ub&&(h=this.jb/this.ib,a=this.width/this.height,this.Vg=2!==this.Ub&&a>h||2===this.Ub&&a<h?this.height/this.ib:this.width/this.jb);this.lo?this.rm[this.lo].pn():this.ed[0].pn();this.Bn||(this.Oj=1,this.trigger(Y.prototype.k.Kn,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();h=0;for(a=this.q.length;h<a;h++)d=this.q[h],d.Ku&&
d.Ku();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.cb(!1);this.Wb&&AppMobi.webview.execute("onGameReady();")};var m=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;c.prototype.cb=function(h,a,d){if(this.ua){var b=Xa();if(d||!this.Ah||h){h||(m?this.Xm=m(this.Cq):this.tn=setTimeout(this.Cq,this.Be?1:16));a=a||b;var f=this.Ub;
((d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Ae)||this.zh)&&0<this.kf&&(f=this.kf);0<f&&(!this.Dh||window.self!==window.top)&&(f=window.innerHeight,this.Kh===window.innerWidth&&this.Jh===f||this.setSize(e(),n()));this.Ea||(d?(this.jj||(this.Bl=jQuery(this.canvas).css("margin")||"0",this.jj=!0),this.vh||this.Ce||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.jj?(this.vh||this.Ce||jQuery(this.canvas).css("margin",this.Bl),this.Bl="",this.jj=!1,0===this.Ub&&this.setSize(Math.round(this.Lp/this.devicePixelRatio),Math.round(this.Kp/this.devicePixelRatio),!0)):(this.Lp=this.width,this.Kp=this.height));this.Eh&&(d=this.Qn(),this.Oj=this.Ff,d&&(this.Eh=!1,this.Ff=1,this.trigger(Y.prototype.k.Kn,null)));this.Gu(a);!this.pa&&!this.bd||this.mm||this.pi||h||(this.pa=!1,this.n?this.Jb():
this.Jc(),this.oi&&(this.canvas&&this.canvas.toDataURL&&(this.uq=this.canvas.toDataURL(this.oi[0],this.oi[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.uq),this.trigger(Y.prototype.k.Br,null)),this.oi=null));this.Sw||(this.Gd++,this.jf++,this.oj++);this.Th+=Xa()-b}}};c.prototype.Gu=function(h){var a,d,b,f,l,g,c,m;1E3<=h-this.vf&&(this.vf+=1E3,1E3<=h-this.vf&&(this.vf=h),this.Al=this.oj,this.oj=0,this.jl=this.Th,this.Th=0);0!==this.Ej&&(a=h-this.Ej,0>a&&(a=0),this.ve=a/1E3,.5<this.ve?this.ve=
0:.1<this.ve&&(this.ve=.1));this.Ej=h;this.df=this.ve*this.Lf;this.qb.add(this.df);this.ie.add(this.ve);h=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.zh)&&!this.Ae;2<=this.Ub||h&&0<this.kf?(a=this.jb/this.ib,d=this.width/this.height,b=this.Ub,h&&0<this.kf&&(b=this.kf),this.Vg=2!==b&&d>a||2===b&&d<a?this.height/this.ib:this.width/this.jb,this.ua&&(this.ua.gn(this.ua.scrollX),this.ua.hn(this.ua.scrollY))):this.Vg=this.De?this.devicePixelRatio:
1;this.yb();this.yc++;this.Ed.nv();this.yc--;this.yb();this.yc++;d=this.Ip.ge();h=0;for(a=d.length;h<a;h++)d[h].Uw();h=0;for(a=this.q.length;h<a;h++)if(g=this.q[h],!g.B&&(g.Ya.length||g.Ga.length))for(d=0,b=g.d.length;d<b;d++)for(c=g.d[d],f=0,l=c.N.length;f<l;f++)c.N[f].cb();h=0;for(a=this.q.length;h<a;h++)if(g=this.q[h],!g.B&&(g.Ya.length||g.Ga.length))for(d=0,b=g.d.length;d<b;d++)for(c=g.d[d],f=0,l=c.N.length;f<l;f++)m=c.N[f],m.Zp&&m.Zp();d=this.Gm.ge();h=0;for(a=d.length;h<a;h++)d[h].cb();this.yc--;
this.ou();for(h=0;this.Xg&&10>h++;)this.eo(this.Xg);h=0;for(a=this.Nd.length;h<a;h++)this.Nd[h].Ul=!1;this.ua.gf&&this.ua.gf.ab();V(this.ei);this.yc++;h=0;for(a=this.q.length;h<a;h++)if(g=this.q[h],!g.B&&(g.Ya.length||g.Ga.length))for(d=0,b=g.d.length;d<b;d++)for(c=g.d[d],f=0,l=c.N.length;f<l;f++)m=c.N[f],m.sn&&m.sn();d=this.Jp.ge();h=0;for(a=d.length;h<a;h++)d[h].sn();this.yc--};c.prototype.eo=function(a){var d=this.ua;this.ua.Ev();var b,f,l,g,c,m,r;if(this.n)for(b=0,f=this.q.length;b<f;b++)c=this.q[b],
c.B||!c.Fk||c.global&&0!==c.d.length||-1!==a.rh.indexOf(c)||c.Fk();d==a&&V(this.Ed.oc);V(this.ei);a.pn();b=0;for(f=this.q.length;b<f;b++)if(c=this.q[b],c.global||c.na.wk)for(a=0,d=c.d.length;a<d;a++)if(m=c.d[a],m.Lm&&m.Lm(),m.N)for(l=0,g=m.N.length;l<g;l++)r=m.N[l],r.Lm&&r.Lm();this.pa=!0;this.yb()};c.prototype.ti=function(a){this.Gm.add(a)};c.prototype.Hl=function(a){return a&&-1!==a.Vh?this.ve*a.Vh:this.df};c.prototype.Jc=function(){this.ua.Jc(this.ja);this.Wb&&this.ja.present()};c.prototype.Jb=
function(){this.Ka&&(this.ef=1,this.ua.cf(this.n));this.ua.Jb(this.n);this.n.av()};c.prototype.Vk=function(a){a&&this.ej.push(a)};c.prototype.hv=function(a){Da(this.ej,a)};c.prototype.eg=function(a){a=a.toString();return this.Yd.hasOwnProperty(a)?this.Yd[a]:null};var g=[];c.prototype.Te=function(a){var d,b;d=a.type.name;var f=null;if(this.bf.hasOwnProperty(d)){if(f=this.bf[d],f.contains(a))return}else f=g.length?g.pop():new ba,this.bf[d]=f;f.add(a);this.ze=!0;if(a.Nb)for(d=0,b=a.siblings.length;d<
b;d++)this.Te(a.siblings[d]);this.hm&&f.Lg.push(a);this.gm||(this.yc++,this.trigger(Object.getPrototypeOf(a.type.na).k.Dr,a),this.yc--)};c.prototype.yb=function(){if(this.ze){var a,d,b,f,l,g;this.hm=!0;b=0;for(l=this.$c.length;b<l;++b)for(a=this.$c[b],d=a.type,d.d.push(a),f=0,g=d.Ga.length;f<g;++f)d.Ga[f].d.push(a),d.Ga[f].Hg=!0;V(this.$c);this.qr();Wa(this.bf);this.ze=this.hm=!1}};c.prototype.qr=function(){for(var a in this.bf)this.bf.hasOwnProperty(a)&&this.br(this.bf[a])};c.prototype.br=function(a){var d=
a.ge(),b=d[0].type,f,l,c,m,r,e;Ya(b.d,a);b.Hg=!0;0===b.d.length&&(b.Fi=!1);f=0;for(l=b.Ga.length;f<l;++f)e=b.Ga[f],Ya(e.d,a),e.Hg=!0;f=0;for(l=this.Ed.oc.length;f<l;++f)if(r=this.Ed.oc[f],r.lc.hasOwnProperty(b.index)&&Ya(r.lc[b.index].qf,a),!b.B)for(c=0,m=b.Ga.length;c<m;++c)e=b.Ga[c],r.lc.hasOwnProperty(e.index)&&Ya(r.lc[e.index].qf,a);if(r=d[0].i){if(r.Dc)for(c=r.d,f=0,l=c.length;f<l;++f)m=c[f],a.contains(m)&&(m.qa(),r.xb.update(m,m.Yb,null),m.Yb.set(0,0,-1,-1));Ya(r.d,a);r.hi(0)}for(f=0;f<d.length;++f)this.$q(d[f],
b);a.clear();g.push(a);this.pa=!0};c.prototype.$q=function(a,d){var b,f,l;b=0;for(f=this.ej.length;b<f;++b)this.ej[b](a);a.te&&d.Ti.update(a,a.te,null);(b=a.i)&&b.Cg(a,!0);if(a.N)for(b=0,f=a.N.length;b<f;++b)l=a.N[b],l.Zd&&l.Zd(),l.behavior.Uj.remove(a);this.Ip.remove(a);this.Gm.remove(a);this.Jp.remove(a);a.Zd&&a.Zd();this.Yd.hasOwnProperty(a.uid.toString())&&delete this.Yd[a.uid.toString()];this.Xj--;100>d.aj.length&&d.aj.push(a)};c.prototype.kl=function(a,d,b,f){if(a.B){var l=S(Math.random()*a.xg.length);
return this.kl(a.xg[l],d,b,f)}return a.Hc?this.ue(a.Hc,d,!1,b,f,!1):null};var A=[];c.prototype.ue=function(a,d,b,f,l,c){var g,m,r,e;if(!a)return null;var z=this.q[a[1]],n=z.na.Ee;if(this.Eh&&n&&!z.im||n&&!this.n&&11===a[0][11])return null;var q=d;n||(d=null);var k;z.aj.length?(k=z.aj.pop(),k.jc=!0,z.na.ra.call(k,z)):(k=new z.na.ra(z),k.jc=!1);!b||c||this.Yd.hasOwnProperty(a[2].toString())?k.uid=this.Wh++:k.uid=a[2];this.Yd[k.uid.toString()]=k;k.bq=this.Ep++;k.of=z.d.length;g=0;for(m=this.$c.length;g<
m;++g)this.$c[g].type===z&&k.of++;k.mh=Bb;k.toString=Cb;r=a[3];if(k.jc)Wa(k.F);else{k.F={};if("undefined"!==typeof cr_is_preview)for(k.Io=[],k.Io.length=r.length,g=0,m=r.length;g<m;g++)k.Io[g]=r[g][1];k.fb=[];k.fb.length=r.length}g=0;for(m=r.length;g<m;g++)k.fb[g]=r[g][0];if(n){var y=a[0];k.x=ha(f)?y[0]:f;k.y=ha(l)?y[1]:l;k.z=y[2];k.width=y[3];k.height=y[4];k.depth=y[5];k.m=y[6];k.opacity=y[7];k.Kb=y[8];k.Lb=y[9];k.zb=y[10];g=y[11];!this.n&&z.L.length&&(k.zb=g);k.Yg=fb(k.zb);this.r&&gb(k,k.zb,this.r);
if(k.jc){g=0;for(m=y[12].length;g<m;g++)for(r=0,e=y[12][g].length;r<e;r++)k.Ja[g][r]=y[12][g][r];k.Fa.set(0,0,0,0);k.te.set(0,0,-1,-1);k.Yb.set(0,0,-1,-1);k.Ab.ji(k.Fa);V(k.$k)}else{k.Ja=y[12].slice(0);g=0;for(m=k.Ja.length;g<m;g++)k.Ja[g]=y[12][g].slice(0);k.ba=[];k.le=[];k.le.length=z.L.length;k.Fa=new va(0,0,0,0);k.te=new va(0,0,-1,-1);k.Yb=new va(0,0,-1,-1);k.Ab=new wa;k.$k=[];k.A=Fb;k.Ow=Gb;k.Ib=Hb;k.qa=Ib;k.Lv=Jb;k.Sq=Kb;k.wd=Lb}k.vi=!1;k.Iv=0;k.Hv=0;k.Gv=null;14===y.length&&(k.vi=!0,k.Iv=y[13][0],
k.Hv=y[13][1],k.Gv=y[13][2]);g=0;for(m=z.L.length;g<m;g++)k.le[g]=!0;k.ae=!0;k.qd=Mb;k.qd();k.Tq=!!k.ba.length;k.Zk=!0;k.dl=!0;z.Ei=!0;k.visible=!0;k.Vh=-1;k.i=d;k.rd=d.d.length;k.ef=0;"undefined"===typeof k.fa&&(k.fa=null);this.pa=k.Jd=!0}var v;V(A);g=0;for(m=z.Ga.length;g<m;g++)A.push.apply(A,z.Ga[g].Ya);A.push.apply(A,z.Ya);if(k.jc)for(g=0,m=A.length;g<m;g++){var u=A[g];v=k.N[g];v.jc=!0;u.behavior.ra.call(v,u,k);y=a[4][g];r=0;for(e=y.length;r<e;r++)v.p[r]=y[r];v.V();u.behavior.Uj.add(k)}else for(k.N=
[],g=0,m=A.length;g<m;g++)u=A[g],v=new u.behavior.ra(u,k),v.jc=!1,v.p=a[4][g].slice(0),v.V(),k.N.push(v),u.behavior.Uj.add(k);y=a[5];if(k.jc)for(g=0,m=y.length;g<m;g++)k.p[g]=y[g];else k.p=y.slice(0);this.$c.push(k);this.ze=!0;d&&(d.Ug(k,!0),1!==d.Nc||1!==d.Oc)&&(z.Fi=!0);this.Xj++;if(z.Nb){if(k.Nb=!0,k.jc?V(k.siblings):k.siblings=[],!b&&!c){g=0;for(m=z.cc.length;g<m;g++)if(z.cc[g]!==z){if(!z.cc[g].Hc)return null;k.siblings.push(this.ue(z.cc[g].Hc,q,!1,n?k.x:f,n?k.y:l,!0))}g=0;for(m=k.siblings.length;g<
m;g++)for(k.siblings[g].siblings.push(k),r=0;r<m;r++)g!==r&&k.siblings[g].siblings.push(k.siblings[r])}}else k.Nb=!1,k.siblings=null;k.V();g=0;for(m=k.N.length;g<m;g++)k.N[g].Yu&&k.N[g].Yu();return k};c.prototype.Kl=function(a){var d,b;d=0;for(b=this.ua.O.length;d<b;d++){var f=this.ua.O[d];if(ib(f.name,a))return f}return null};c.prototype.jh=function(a){a=S(a);0>a&&(a=0);a>=this.ua.O.length&&(a=this.ua.O.length-1);return this.ua.O[a]};c.prototype.hl=function(a){var d,b;d=0;for(b=a.length;d<b;d++)a[d].Y().ka=
!0};c.prototype.bi=function(a){var d,b;d=0;for(b=a.length;d<b;d++)a[d].bi()};c.prototype.gk=function(a){var d,b;d=0;for(b=a.length;d<b;d++)a[d].gk()};c.prototype.Ef=function(a){var d,b;d=0;for(b=a.length;d<b;d++)a[d].Ef()};c.prototype.Nq=function(a){if(a.Ei){var d,b,f=a.d;d=0;for(b=f.length;d<b;++d)f[d].Sq();f=this.$c;d=0;for(b=f.length;d<b;++d)f[d].type===a&&f[d].Sq();a.Ei=!1}};c.prototype.qo=function(a,d,b,f){var l,g,c=a?1!==a.Nc||1!==a.Oc:!1;if(d.B)for(a=0,l=d.xg.length;a<l;++a)g=d.xg[a],c||g.Fi?
Ba(f,g.d):(this.Nq(g),g.Ti.ik(b,f));else c||d.Fi?Ba(f,d.d):(this.Nq(d),d.Ti.ik(b,f))};c.prototype.xo=function(a,d,b,f){var l,g;l=0;for(g=d.length;l<g;++l)this.qo(a,d[l],b,f)};c.prototype.$t=function(a,d,b){var f=this.wq;f&&this.xo(a,f.Vj,d,b)};c.prototype.Tt=function(a,d,b){var f=this.To;f&&this.xo(a,f.Vj,d,b)};c.prototype.Fv=function(a,d,b){var f=a.Y(),l,g,c,m,r,e;if(f.ka)for(f.ka=!1,V(f.d),l=0,m=a.d.length;l<m;l++)c=a.d[l],c.qa(),r=c.i.Hb(d,b,!0),e=c.i.Hb(d,b,!1),c.Ib(r,e)&&f.d.push(c);else{l=g=
0;for(m=f.d.length;l<m;l++)c=f.d[l],c.qa(),r=c.i.Hb(d,b,!0),e=c.i.Hb(d,b,!1),c.Ib(r,e)&&(f.d[g]=f.d[l],g++);f.d.length=g}a.Xc();return f.Tl()};c.prototype.Sc=function(a,d){if(!(a&&d&&a!==d&&a.Jd&&d.Jd))return!1;a.qa();d.qa();var b=a.i,f=d.i,l,g,c,m,r,e,k,z;if(b===f||b.Nc===f.Nc&&f.Oc===f.Oc&&b.scale===f.scale&&b.m===f.m&&b.sd===f.sd){if(!a.Fa.uu(d.Fa)||!a.Ab.Jo(d.Ab)||a.vi&&d.vi)return!1;if(a.vi)return this.Aq(a,d);if(d.vi)return this.Aq(d,a);k=a.fa&&!a.fa.lg();l=d.fa&&!d.fa.lg();if(!k&&!l)return!0;
k?(a.fa.Uf(a.width,a.height,a.m),k=a.fa):(this.nd.Fg(a.Ab,a.x,a.y,a.width,a.height),k=this.nd);l?(d.fa.Uf(d.width,d.height,d.m),z=d.fa):(this.nd.Fg(d.Ab,d.x,d.y,d.width,d.height),z=this.nd);return k.sh(z,d.x-a.x,d.y-a.y)}k=a.fa&&!a.fa.lg();l=d.fa&&!d.fa.lg();k?(a.fa.Uf(a.width,a.height,a.m),this.nd.nq(a.fa)):this.nd.Fg(a.Ab,a.x,a.y,a.width,a.height);k=this.nd;l?(d.fa.Uf(d.width,d.height,d.m),this.qn.nq(d.fa)):this.qn.Fg(d.Ab,d.x,d.y,d.width,d.height);z=this.qn;l=0;for(g=k.jd;l<g;l++)c=2*l,m=c+1,r=
k.kb[c],e=k.kb[m],k.kb[c]=b.ta(r+a.x,e+a.y,!0),k.kb[m]=b.ta(r+a.x,e+a.y,!1);k.qa();l=0;for(g=z.jd;l<g;l++)c=2*l,m=c+1,r=z.kb[c],e=z.kb[m],z.kb[c]=f.ta(r+d.x,e+d.y,!0),z.kb[m]=f.ta(r+d.x,e+d.y,!1);z.qa();return k.sh(z,0,0)};var y=new wa;new va(0,0,0,0);var G=[];c.prototype.Aq=function(a,d){var b,f,l,g,c=d.Fa,m=a.x,r=a.y;a.Qw(c,G);var e=d.fa&&!d.fa.lg();b=0;for(f=G.length;b<f;++b)if(l=G[b],g=l.Vw,c.vu(g,m,r)&&(y.ji(g),y.offset(m,r),y.Jo(d.Ab)))if(e)if(d.fa.Uf(d.width,d.height,d.m),l.Sm){if(l.Sm.sh(d.fa,
d.x-(m+g.left),d.y-(r+g.top)))return V(G),!0}else{if(this.nd.Fg(y,0,0,g.right-g.left,g.bottom-g.top),this.nd.sh(d.fa,d.x,d.y))return V(G),!0}else if(l.Sm){if(this.nd.Fg(d.Ab,0,0,d.width,d.height),l.Sm.sh(this.nd,-(m+g.left),-(r+g.top)))return V(G),!0}else return V(G),!0;V(G);return!1};c.prototype.Iq=function(a,d){if(!d)return!1;var b,f,l,g,c;b=0;for(f=a.Ya.length;b<f;b++)if(a.Ya[b].behavior instanceof d)return!0;if(!a.B)for(b=0,f=a.Ga.length;b<f;b++)for(c=a.Ga[b],l=0,g=c.Ya.length;l<g;l++)if(c.Ya[l].behavior instanceof
d)return!0;return!1};c.prototype.Jq=function(a){return this.Iq(a,bc.nw)};c.prototype.xn=function(a){return this.Iq(a,lc)};var l=[];c.prototype.nc=function(a){var d,b,f;a.qa();this.$t(a.i,a.Fa,l);d=0;for(b=l.length;d<b;++d)if(f=l[d],f.F.solidEnabled&&this.Sc(a,f))return V(l),f;V(l);return null};var r=[];c.prototype.Qe=function(a,d){var b=null;d&&(b=r,V(b));a.qa();this.Tt(a.i,a.Fa,l);var f,g,c;f=0;for(g=l.length;f<g;++f)if(c=l[f],c.F.jumpthruEnabled&&this.Sc(a,c))if(d)b.push(c);else return V(l),c;V(l);
return b};c.prototype.kd=function(a,d,b,f,l,g){f=f||50;var c=a.x,m=a.y,r,e=null,k=null;for(r=0;r<f;r++)if(a.x=c+d*r,a.y=m+b*r,a.A(),!this.Sc(a,e)&&((e=this.nc(a))&&(k=e),!e&&(l&&(g?e=this.Sc(a,g)?g:null:e=this.Qe(a),e&&(k=e)),!e)))return k&&this.Vm(a,d,b,k),!0;a.x=c;a.y=m;a.A();return!1};c.prototype.Vm=function(a,d,b,f){var l=2,g,c=!1;g=!1;for(var m=a.x,r=a.y;16>=l;)g=1/l,l*=2,a.x+=d*g*(c?1:-1),a.y+=b*g*(c?1:-1),a.A(),this.Sc(a,f)?g=c=!0:(g=c=!1,m=a.x,r=a.y);g&&(a.x=m,a.y=r,a.A())};c.prototype.dv=
function(a,d){var b=ha(d)?100:d,f=0,l=a.x,g=a.y,c=0,m=0,r=0,e=this.nc(a);if(!e)return!0;for(;f<=b;){switch(c){case 0:m=0;r=-1;f++;break;case 1:m=1;r=-1;break;case 2:m=1;r=0;break;case 3:r=m=1;break;case 4:m=0;r=1;break;case 5:m=-1;r=1;break;case 6:m=-1;r=0;break;case 7:r=m=-1}c=(c+1)%8;a.x=S(l+m*f);a.y=S(g+r*f);a.A();if(!this.Sc(a,e)&&(e=this.nc(a),!e))return!0}a.x=l;a.y=g;a.A();return!1};c.prototype.di=function(a,d){a.Jd&&d.Jd&&this.ei.push([a,d])};c.prototype.ts=function(a,d){var b,f,l;b=0;for(f=
this.ei.length;b<f;b++)if(l=this.ei[b],l[0]==a&&l[1]==d||l[0]==d&&l[1]==a)return!0;return!1};var z=-1;c.prototype.trigger=function(a,d,b){if(!this.ua)return!1;var f=this.ua.gf;if(!f)return!1;var l=!1,g,c,m;z++;var r=f.ol;c=0;for(m=r.length;c<m;++c)g=this.Fq(a,d,r[c],b),l=l||g;g=this.Fq(a,d,f,b);z--;return l||g};c.prototype.Fq=function(a,d,b,f){var l=!1,g,c,m,r;if(d)for(m=this.vn(a,d,d.type.name,b,f),l=l||m,r=d.type.Ga,g=0,c=r.length;g<c;++g)m=this.vn(a,d,r[g].name,b,f),l=l||m;else m=this.vn(a,d,"system",
b,f),l=l||m;return l};c.prototype.vn=function(a,d,b,f,l){var g,c=!1,m=!1,m="undefined"!==typeof l,r=(m?f.jo:f.Gq)[b];if(!r)return c;var e=null;f=0;for(g=r.length;f<g;++f)if(r[f].method==a){e=r[f].gh;break}if(!e)return c;var k;m?k=e[l]:k=e;if(!k)return null;f=0;for(g=k.length;f<g;f++)a=k[f][0],l=k[f][1],m=this.Gt(d,b,a,l),c=c||m;return c};c.prototype.Gt=function(a,d,b,f){var l,g,c=!1;this.wn++;var m=this.Cb().tc;m&&this.bi(m.Ne);var r=1<this.wn;this.bi(b.Ne);r&&this.cv();var e=this.hk(b);e.tc=b;a&&
(l=this.types[d].Y(),l.ka=!1,V(l.d),l.d[0]=a,this.types[d].Xc());a=!0;if(b.parent){d=e.zq;for(l=b.parent;l;)d.push(l),l=l.parent;d.reverse();l=0;for(g=d.length;l<g;l++)if(!d[l].pv()){a=!1;break}}a&&(this.jf++,b.fd?b.ov(f):b.ab(),c=c||e.uf);this.bk();r&&this.Xu();this.Ef(b.Ne);m&&this.Ef(m.Ne);this.ze&&0===this.yc&&0===z&&!this.jm&&this.yb();this.wn--;return c};c.prototype.Gl=function(){var a=this.Cb();return a.tc.mb[a.lb]};c.prototype.Ot=function(){var a=this.Cb();return a.tc.Ec[a.pc]};c.prototype.cv=
function(){this.Qj++;this.Qj>=this.Am.length&&this.Am.push([])};c.prototype.Xu=function(){this.Qj--};c.prototype.ro=function(){return this.Am[this.Qj]};c.prototype.hk=function(a){this.gj++;this.gj>=this.rl.length&&this.rl.push(new Nb);var d=this.Cb();d.reset(a);return d};c.prototype.bk=function(){this.gj--};c.prototype.Cb=function(){return this.rl[this.gj]};c.prototype.so=function(a,d){for(var b,f,l,g,c,m;d;){b=0;for(f=d.Rc.length;b<f;b++)if(m=d.Rc[b],m instanceof Ob&&ib(a,m.name))return m;d=d.parent}b=
0;for(f=this.Nd.length;b<f;b++)for(c=this.Nd[b],l=0,g=c.xe.length;l<g;l++)if(m=c.xe[l],m instanceof Ob&&ib(a,m.name))return m;return null};c.prototype.uo=function(a){var d,b;d=0;for(b=this.ed.length;d<b;d++)if(this.ed[d].W===a)return this.ed[d];return null};c.prototype.sj=function(a){var d,b;d=0;for(b=this.q.length;d<b;d++)if(this.q[d].W===a)return this.q[d];return null};c.prototype.Qt=function(a){var d,b;d=0;for(b=this.Sf.length;d<b;d++)if(this.Sf[d].W===a)return this.Sf[d];return null};c.prototype.Bs=
function(a,d){this.oi=[a,d];this.pa=!0};c.prototype.ou=function(){var a=this,d=this.dn,f=this.Vd,l=this.Kj,g=!1;this.tq&&(g=!0,d="__c2_continuouspreview",this.tq=!1);if(d.length){this.yb();f=this.tv();if(window.indexedDB&&!this.bd)k(d,f,function(){ea("Saved state to IndexedDB storage ("+f.length+" bytes)");a.Vd=f;a.trigger(Y.prototype.k.Pk,null);a.Vd="";g&&b()},function(l){try{localStorage.setItem("__c2save_"+d,f),ea("Saved state to WebStorage ("+f.length+" bytes)"),a.Vd=f,a.trigger(Y.prototype.k.Pk,
null),a.Vd="",g&&b()}catch(c){ea("Failed to save game state: "+l+"; "+c)}});else try{localStorage.setItem("__c2save_"+d,f),ea("Saved state to WebStorage ("+f.length+" bytes)"),a.Vd=f,this.trigger(Y.prototype.k.Pk,null),a.Vd="",g&&b()}catch(c){ea("Error saving to WebStorage: "+c)}this.Eb=this.Kj=this.dn=""}if(l.length){if(window.indexedDB&&!this.bd)u(l,function(d){d?(a.Eb=d,ea("Loaded state from IndexedDB storage ("+a.Eb.length+" bytes)")):(a.Eb=localStorage.getItem("__c2save_"+l)||"",ea("Loaded state from WebStorage ("+
a.Eb.length+" bytes)"));a.pi=!1;a.Eb.length||a.trigger(Y.prototype.k.Nk,null)},function(){a.Eb=localStorage.getItem("__c2save_"+l)||"";ea("Loaded state from WebStorage ("+a.Eb.length+" bytes)");a.pi=!1;a.Eb.length||a.trigger(Y.prototype.k.Nk,null)});else{try{this.Eb=localStorage.getItem("__c2save_"+l)||"",ea("Loaded state from WebStorage ("+this.Eb.length+" bytes)")}catch(m){this.Eb=""}this.pi=!1;a.Eb.length||a.trigger(Y.prototype.k.Nk,null)}this.dn=this.Kj=""}this.Eb.length&&(this.yb(),this.Fu(this.Eb),
this.Vd=this.Eb,this.trigger(Y.prototype.k.Lr,null),this.Eb=this.Vd="")};c.prototype.tv=function(){var d,b,f,l,g,c,m,r={c2save:!0,version:1,rt:{time:this.qb.X,walltime:this.ie.X,timescale:this.Lf,tickcount:this.Gd,execcount:this.jf,next_uid:this.Wh,running_layout:this.ua.W,start_time_offset:Date.now()-this.xk},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};d=0;for(b=this.q.length;d<b;d++)if(g=this.q[d],!g.B&&!this.Jq(g)){c={instances:[]};Va(g.F)&&(c.ex=a(g.F));f=0;for(l=g.d.length;f<
l;f++)c.instances.push(this.cn(g.d[f]));r.types[g.W.toString()]=c}d=0;for(b=this.ed.length;d<b;d++)f=this.ed[d],r.layouts[f.W.toString()]=f.Fb();l=r.events.groups;d=0;for(b=this.Sf.length;d<b;d++)f=this.Sf[d],l[f.W.toString()]=this.oh[f.nh].fg;b=r.events.cnds;for(m in this.Wf)this.Wf.hasOwnProperty(m)&&(d=this.Wf[m],Va(d.F)&&(b[m]={ex:a(d.F)}));b=r.events.acts;for(m in this.Rf)this.Rf.hasOwnProperty(m)&&(d=this.Rf[m],Va(d.F)&&(b[m]={ex:d.F}));b=r.events.vars;for(m in this.Mg)this.Mg.hasOwnProperty(m)&&
(d=this.Mg[m],d.yj||d.parent&&!d.Ch||(b[m]=d.data));r.system=this.Ed.Fb();return JSON.stringify(r)};c.prototype.dq=function(){var a,d,b,f,l,g;this.Yd={};a=0;for(d=this.q.length;a<d;a++)if(b=this.q[a],!b.B)for(f=0,l=b.d.length;f<l;f++)g=b.d[f],this.Yd[g.uid.toString()]=g};c.prototype.Fu=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){this.xj=!0;var d=a.rt;this.qb.reset();this.qb.X=d.time;this.ie.reset();this.ie.X=d.walltime||0;this.Lf=d.timescale;this.Gd=d.tickcount;this.jf=d.execcount;this.xk=
Date.now()-d.start_time_offset;var b=d.running_layout;if(b!==this.ua.W)if(b=this.uo(b))this.eo(b);else return;var f,l,g,c,m,r,e;r=a.types;for(l in r)if(r.hasOwnProperty(l)&&(c=this.sj(parseInt(l,10)))&&!c.B&&!this.Jq(c)){r[l].ex?c.F=r[l].ex:Wa(c.F);m=c.d;g=r[l].instances;b=0;for(f=pa(m.length,g.length);b<f;b++)this.Lj(m[b],g[b]);b=g.length;for(f=m.length;b<f;b++)this.Te(m[b]);b=m.length;for(f=g.length;b<f;b++){m=null;if(c.na.Ee&&(m=this.ua.rj(g[b].w.l),!m))continue;m=this.ue(c.Hc,m,!1,0,0,!0);this.Lj(m,
g[b])}c.Hg=!0}this.yb();this.dq();f=a.layouts;for(l in f)f.hasOwnProperty(l)&&(b=this.uo(parseInt(l,10)))&&b.Xb(f[l]);f=a.events.groups;for(l in f)f.hasOwnProperty(l)&&(b=this.Qt(parseInt(l,10)))&&this.oh[b.nh]&&this.oh[b.nh].vv(f[l]);b=a.events.cnds;for(l in b)b.hasOwnProperty(l)&&this.Wf.hasOwnProperty(l)&&(this.Wf[l].F=b[l].ex);b=a.events.acts;for(l in b)b.hasOwnProperty(l)&&this.Rf.hasOwnProperty(l)&&(this.Rf[l].F=b[l].ex);b=a.events.vars;for(l in b)b.hasOwnProperty(l)&&this.Mg.hasOwnProperty(l)&&
(this.Mg[l].data=b[l]);this.Wh=d.next_uid;this.xj=!1;this.Ed.Xb(a.system);b=0;for(f=this.q.length;b<f;b++)if(c=this.q[b],!c.B)for(l=0,a=c.d.length;l<a;l++){m=c.d[l];if(c.Nb)for(r=m.mh(),V(m.siblings),d=0,g=c.cc.length;d<g;d++)e=c.cc[d],c!==e&&m.siblings.push(e.d[r]);m.td&&m.td();if(m.N)for(d=0,g=m.N.length;d<g;d++)r=m.N[d],r.td&&r.td()}this.pa=!0}};c.prototype.cn=function(d,b){var f,l,g,c,m;c=d.type;g=c.na;var r={};b?r.c2=!0:r.uid=d.uid;Va(d.F)&&(r.ex=a(d.F));if(d.fb&&d.fb.length)for(r.ivs={},f=0,
l=d.fb.length;f<l;f++)r.ivs[d.type.dm[f].toString()]=d.fb[f];if(g.Ee){g={x:d.x,y:d.y,w:d.width,h:d.height,l:d.i.W,zi:d.wd()};0!==d.m&&(g.a=d.m);1!==d.opacity&&(g.o=d.opacity);.5!==d.Kb&&(g.hX=d.Kb);.5!==d.Lb&&(g.hY=d.Lb);0!==d.zb&&(g.bm=d.zb);d.visible||(g.v=d.visible);d.Jd||(g.ce=d.Jd);-1!==d.Vh&&(g.mts=d.Vh);if(c.L.length)for(g.fx=[],f=0,l=c.L.length;f<l;f++)m=c.L[f],g.fx.push({name:m.name,active:d.le[m.index],params:d.Ja[m.index]});r.w=g}if(d.N&&d.N.length)for(r.behs={},f=0,l=d.N.length;f<l;f++)c=
d.N[f],c.Fb&&(r.behs[c.type.W.toString()]=c.Fb());d.Fb&&(r.data=d.Fb());return r};c.prototype.St=function(a,d){var b,f;b=0;for(f=a.dm.length;b<f;b++)if(a.dm[b]===d)return b;return-1};c.prototype.Nt=function(a,d){var b,f;b=0;for(f=a.N.length;b<f;b++)if(a.N[b].type.W===d)return b;return-1};c.prototype.Lj=function(a,d,b){var f,l,g,c,m;m=a.type;c=m.na;if(b){if(!d.c2)return}else a.uid=d.uid;d.ex?a.F=d.ex:Wa(a.F);if(l=d.ivs)for(f in l)l.hasOwnProperty(f)&&(g=this.St(m,parseInt(f,10)),0>g||g>=a.fb.length||
(a.fb[g]=l[f]));if(c.Ee){g=d.w;a.i.W!==g.l&&(l=a.i,a.i=this.ua.rj(g.l),a.i?(l.Cg(a,!0),a.i.Ug(a,!0),a.A(),a.i.hi(0)):(a.i=l,b||this.Te(a)));a.x=g.x;a.y=g.y;a.width=g.w;a.height=g.h;a.rd=g.zi;a.m=g.hasOwnProperty("a")?g.a:0;a.opacity=g.hasOwnProperty("o")?g.o:1;a.Kb=g.hasOwnProperty("hX")?g.hX:.5;a.Lb=g.hasOwnProperty("hY")?g.hY:.5;a.visible=g.hasOwnProperty("v")?g.v:!0;a.Jd=g.hasOwnProperty("ce")?g.ce:!0;a.Vh=g.hasOwnProperty("mts")?g.mts:-1;a.zb=g.hasOwnProperty("bm")?g.bm:0;a.Yg=fb(a.zb);this.r&&
gb(a,a.zb,this.r);a.A();if(g.hasOwnProperty("fx"))for(b=0,l=g.fx.length;b<l;b++)c=m.Jl(g.fx[b].name),0>c||(a.le[c]=g.fx[b].active,a.Ja[c]=g.fx[b].params);a.qd()}if(m=d.behs)for(f in m)m.hasOwnProperty(f)&&(b=this.Nt(a,parseInt(f,10)),0>b||a.N[b].Xb(m[f]));d.data&&a.Xb(d.data)};Pb=function(a){return new c(document.getElementById(a))};Qb=function(a,d){return new c({dc:!0,width:a,height:d})};window.cr_createRuntime=Pb;window.cr_createDCRuntime=Qb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=
!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Gi=!0;document.body.appendChild(a);a=new c(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new c(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);
return a}})();window.cr_getC2Runtime=function(){var e=document.getElementById("c2canvas");return e?e.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(e,n){var c=window.cr_getC2Runtime();c&&c.Bs(e,n)};window.cr_sizeCanvas=function(e,n){if(0!==e&&0!==n){var c=window.cr_getC2Runtime();c&&c.setSize(e,n)}};window.cr_setSuspended=function(e){var n=window.cr_getC2Runtime();n&&n.setSuspended(e)};
(function(){function e(a,b){this.b=a;this.gf=null;this.scrollX=this.b.jb/2;this.scrollY=this.b.ib/2;this.scale=1;this.m=0;this.bg=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.Kq=b[3];this.qq=b[4];this.W=b[5];var c=b[6],g,e;this.O=[];this.rh=[];g=0;for(e=c.length;g<e;g++){var k=new Rb(this,c[g]);k.Gp=g;this.O.push(k)}c=b[7];this.pf=[];g=0;for(e=c.length;g<e;g++){var k=c[g],n=this.b.q[k[1]];n.Hc||(n.Hc=k);this.pf.push(k);-1===this.rh.indexOf(n)&&this.rh.push(n)}this.L=[];this.ba=[];this.ae=
!0;this.Ja=[];g=0;for(e=b[8].length;g<e;g++)this.L.push({id:b[8][g][0],name:b[8][g][1],bb:-1,hd:!1,qc:!0,index:g}),this.Ja.push(b[8][g][2].slice(0));this.qd();this.Ke=new va(0,0,1,1);this.Ym=new va(0,0,1,1);this.Je={}}function n(a,b){return a.rd-b.rd}function c(a,b){this.hb=a;this.b=a.b;this.d=[];this.scale=1;this.m=0;this.Md=!1;this.ee=new va(0,0,0,0);this.Dq=new wa;this.Ba=this.xa=this.Ca=this.wa=0;this.Mf=!1;this.je=-1;this.il=0;this.name=b[0];this.index=b[1];this.W=b[2];this.visible=b[3];this.Yc=
b[4];this.pd=b[5];this.Nc=b[6];this.Oc=b[7];this.opacity=b[8];this.nj=b[9];this.Dc=b[10];this.sd=b[11];this.zb=b[12];this.Ws=b[13];this.Yg="source-over";this.Bb=this.Gb=0;this.xb=null;this.Wd=p();this.md=!0;this.sg=new va(0,0,-1,-1);this.ub=new va(0,0,-1,-1);this.Dc&&(this.xb=new eb(this.b.jb,this.b.ib));this.Cd=!1;var c=b[14],g,e;this.xq=[];this.xc=[];this.ah=[];g=0;for(e=c.length;g<e;g++){var k=c[g],n=this.b.q[k[1]];n.Hc||(n.Hc=k,n.As=this.index);this.xc.push(k);-1===this.hb.rh.indexOf(n)&&this.hb.rh.push(n)}Aa(this.xq,
this.xc);this.L=[];this.ba=[];this.ae=!0;this.Ja=[];g=0;for(e=b[15].length;g<e;g++)this.L.push({id:b[15][g][0],name:b[15][g][1],bb:-1,hd:!1,qc:!0,index:g}),this.Ja.push(b[15][g][2].slice(0));this.qd();this.Ke=new va(0,0,1,1);this.Ym=new va(0,0,1,1)}function p(){return a.length?a.pop():[]}function k(d){V(d);a.push(d)}e.prototype.sv=function(a){var b=a.type.W.toString();this.Je.hasOwnProperty(b)||(this.Je[b]=[]);this.Je[b].push(this.b.cn(a))};e.prototype.Bo=function(){var a=this.O[0];return!a.pd&&1===
a.opacity&&!a.nj&&a.visible};e.prototype.qd=function(){V(this.ba);this.ae=!0;var a,b,c;a=0;for(b=this.L.length;a<b;a++)c=this.L[a],c.qc&&(this.ba.push(c),c.hd||(this.ae=!1))};e.prototype.Il=function(a){var b,c,g;b=0;for(c=this.L.length;b<c;b++)if(g=this.L[b],g.name===a)return g;return null};var u=[],b=!0;e.prototype.pn=function(){this.qq&&(this.gf=this.b.sl[this.qq],this.gf.yn());this.b.ua=this;this.scrollX=this.b.jb/2;this.scrollY=this.b.ib/2;var a,f,c,g,e,k,q;a=0;for(c=this.b.q.length;a<c;a++)if(f=
this.b.q[a],!f.B)for(e=f.d,f=0,g=e.length;f<g;f++)if(k=e[f],k.i){var l=k.i.Gp;l>=this.O.length&&(l=this.O.length-1);k.i=this.O[l];-1===k.i.d.indexOf(k)&&k.i.d.push(k);k.i.Mf=!0}if(!b)for(a=0,c=this.O.length;a<c;++a)this.O[a].d.sort(n);V(u);this.ns();a=0;for(c=this.O.length;a<c;a++)k=this.O[a],k.xs(),k.Hk();e=!1;if(!this.bg){for(q in this.Je)if(this.Je.hasOwnProperty(q)&&(f=this.b.sj(parseInt(q,10)))&&!f.B&&this.b.xn(f)){g=this.Je[q];a=0;for(c=g.length;a<c;a++){k=null;if(f.na.Ee&&(k=this.rj(g[a].w.l),
!k))continue;k=this.b.ue(f.Hc,k,!1,0,0,!0);this.b.Lj(k,g[a]);e=!0;u.push(k)}V(g)}a=0;for(c=this.O.length;a<c;a++)this.O[a].d.sort(n),this.O[a].Mf=!0}e&&(this.b.yb(),this.b.dq());for(a=0;a<u.length;a++)if(k=u[a],k.type.Nb)for(c=k.mh(),f=0,g=k.type.cc.length;f<g;f++)q=k.type.cc[f],k.type!==q&&(q.d.length>c?k.siblings.push(q.d[c]):q.Hc&&(e=this.b.ue(q.Hc,k.i,!0,k.x,k.y,!0),this.b.yb(),q.Gk(),k.siblings.push(e),u.push(e)));a=0;for(c=this.pf.length;a<c;a++)this.b.ue(this.pf[a],null,!0);this.b.Xg=null;
this.b.yb();if(this.b.ja&&!this.b.Ea)for(a=0,c=this.b.q.length;a<c;a++)q=this.b.q[a],!q.B&&q.d.length&&q.ek&&q.ek(this.b.ja);a=0;for(c=u.length;a<c;a++)k=u[a],this.b.trigger(Object.getPrototypeOf(k.type.na).k.Qg,k);V(u);this.b.xj||this.b.trigger(Y.prototype.k.Jn,null);this.bg=!1};e.prototype.ws=function(){var a,b,c,g,e;b=a=0;for(c=this.pf.length;a<c;a++)g=this.pf[a],e=this.b.q[g[1]],e.global?e.Nb||this.b.ue(g,null,!0):(this.pf[b]=g,b++);za(this.pf,b)};e.prototype.Ev=function(){this.b.xj||this.b.trigger(Y.prototype.k.Kr,
null);this.b.gm=!0;V(this.b.Ed.oc);var a,f,c,g,e,k;if(!this.bg)for(a=0,f=this.O.length;a<f;a++)for(this.O[a].An(),e=this.O[a].d,c=0,g=e.length;c<g;c++)k=e[c],k.type.global||this.b.xn(k.type)&&this.sv(k);a=0;for(f=this.O.length;a<f;a++){e=this.O[a].d;c=0;for(g=e.length;c<g;c++)k=e[c],k.type.global||this.b.Te(k);this.b.yb();V(e);this.O[a].Mf=!0}a=0;for(f=this.b.q.length;a<f;a++)if(e=this.b.q[a],!(e.global||e.na.Ee||e.na.wk||e.B)){c=0;for(g=e.d.length;c<g;c++)this.b.Te(e.d[c]);this.b.yb()}b=!1;this.b.gm=
!1};new va(0,0,0,0);e.prototype.Jc=function(a){var b,c=a,g=!1,e=!this.b.uc;e&&(this.b.Ij||(this.b.Ij=document.createElement("canvas"),b=this.b.Ij,b.width=this.b.D,b.height=this.b.C,this.b.fp=b.getContext("2d"),g=!0),b=this.b.Ij,c=this.b.fp,b.width!==this.b.D&&(b.width=this.b.D,g=!0),b.height!==this.b.C&&(b.height=this.b.C,g=!0),g&&(c.webkitImageSmoothingEnabled=this.b.R,c.mozImageSmoothingEnabled=this.b.R,c.msImageSmoothingEnabled=this.b.R,c.imageSmoothingEnabled=this.b.R));c.globalAlpha=1;c.globalCompositeOperation=
"source-over";this.b.Wk&&!this.Bo()&&c.clearRect(0,0,this.b.D,this.b.C);var k,n,g=0;for(k=this.O.length;g<k;g++)n=this.O[g],n.visible&&0<n.opacity&&11!==n.zb&&(n.d.length||!n.pd)?n.Jc(c):n.Hk();e&&a.drawImage(b,0,0,this.b.width,this.b.height)};e.prototype.cf=function(a){a.kq(!0);this.b.$a||(this.b.$a=a.sc(this.b.D,this.b.C,this.b.R));if(this.b.$a.Ze!==this.b.D||this.b.$a.Ye!==this.b.C)a.deleteTexture(this.b.$a),this.b.$a=a.sc(this.b.D,this.b.C,this.b.R);a.Qc(this.b.$a);this.b.uc||a.If(this.b.D,this.b.C);
var b,c;for(b=this.O.length-1;0<=b;--b)c=this.O[b],c.visible&&1===c.opacity&&c.ae&&0===c.zb&&(c.d.length||!c.pd)?c.cf(a):c.Hk();a.kq(!1)};e.prototype.Jb=function(a){var b=0<this.ba.length||this.b.Kg||!this.b.uc||this.b.Ka;if(b){this.b.$a||(this.b.$a=a.sc(this.b.D,this.b.C,this.b.R));if(this.b.$a.Ze!==this.b.D||this.b.$a.Ye!==this.b.C)a.deleteTexture(this.b.$a),this.b.$a=a.sc(this.b.D,this.b.C,this.b.R);a.Qc(this.b.$a);this.b.uc||a.If(this.b.D,this.b.C)}else this.b.$a&&(a.Qc(null),a.deleteTexture(this.b.$a),
this.b.$a=null);this.b.Wk&&!this.Bo()&&a.clear(0,0,0,0);var c,g,e;c=0;for(g=this.O.length;c<g;c++)e=this.O[c],e.visible&&0<e.opacity&&(e.d.length||!e.pd)?e.Jb(a):e.Hk();b&&(0===this.ba.length||1===this.ba.length&&this.b.uc?(1===this.ba.length?(b=this.ba[0].index,a.ac(this.ba[0].bb),a.Eg(null,1/this.b.D,1/this.b.C,0,0,1,1,this.scale,this.m,0,0,this.b.D/2,this.b.C/2,this.b.qb.X,this.Ja[b]),a.fk(this.ba[0].bb)&&(this.b.pa=!0)):a.ac(0),this.b.uc||a.If(this.b.width,this.b.height),a.Qc(null),a.jq(!1),a.Me(1),
a.$b(this.b.$a),a.hq(),a.Pc(),a.Cc(),b=this.b.width/2,c=this.b.height/2,a.ci(-b,c,b,c,b,-c,-b,-c),a.$b(null),a.jq(!0)):this.Zm(a,null,null,null))};e.prototype.kh=function(){return 0<this.ba.length||this.b.Kg||!this.b.uc||this.b.Ka?this.b.$a:null};e.prototype.vo=function(){var a=this.O[0].Vb(),b,c,g;b=1;for(c=this.O.length;b<c;b++)g=this.O[b],(0!==g.Nc||0!==g.Oc)&&g.Vb()<a&&(a=g.Vb());return a};e.prototype.gn=function(a){if(!this.Kq){var b=1/this.vo()*this.b.D/2;a>this.width-b&&(a=this.width-b);a<
b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.pa=!0)};e.prototype.hn=function(a){if(!this.Kq){var b=1/this.vo()*this.b.C/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.pa=!0)};e.prototype.ns=function(){this.gn(this.scrollX);this.hn(this.scrollY)};e.prototype.Zm=function(a,b,c,g){var e=c?c.ba:b?b.ba:this.ba,k=1,n=0,l=0,r=0,z=this.b.D,h=this.b.C;c?(k=c.i.Vb(),n=c.i.Sa(),l=c.i.wa,r=c.i.xa,z=c.i.Ca,h=c.i.Ba):b&&(k=b.Vb(),n=b.Sa(),l=b.wa,r=b.xa,z=b.Ca,h=b.Ba);
var t=this.b.Cl,q,v,u,p,H=0,T=1,M,E=this.b.D,w=this.b.C,U=E/2,D=w/2,J=b?b.Ke:this.Ke,K=b?b.Ym:this.Ym,L=0,N=0,F=0,Q=0,P=E,na=E,R=w,ta=w,ga=u=0,ua=c?c.i.Sa():0;if(c){q=0;for(v=e.length;q<v;q++)u+=a.Xt(e[q].bb),ga+=a.Yt(e[q].bb);p=c.Fa;L=b.ta(p.left,p.top,!0,!0);F=b.ta(p.left,p.top,!1,!0);P=b.ta(p.right,p.bottom,!0,!0);R=b.ta(p.right,p.bottom,!1,!0);0!==ua&&(q=b.ta(p.right,p.top,!0,!0),v=b.ta(p.right,p.top,!1,!0),N=b.ta(p.left,p.bottom,!0,!0),Q=b.ta(p.left,p.bottom,!1,!0),p=Math.min(L,P,q,N),P=Math.max(L,
P,q,N),L=p,p=Math.min(F,R,v,Q),R=Math.max(F,R,v,Q),F=p);L-=u;F-=ga;P+=u;R+=ga;K.left=L/E;K.top=1-F/w;K.right=P/E;K.bottom=1-R/w;N=L=S(L);Q=F=S(F);na=P=ra(P);ta=R=ra(R);N-=u;Q-=ga;na+=u;ta+=ga;0>L&&(L=0);0>F&&(F=0);P>E&&(P=E);R>w&&(R=w);0>N&&(N=0);0>Q&&(Q=0);na>E&&(na=E);ta>w&&(ta=w);J.left=L/E;J.top=1-F/w;J.right=P/E;J.bottom=1-R/w}else J.left=K.left=0,J.top=K.top=0,J.right=K.right=1,J.bottom=K.bottom=1;ga=c&&((c.m||ua)&&a.$h(e[0].bb)||0!==u||0!==ga||1!==c.opacity||c.type.na.Bp)||b&&!c&&1!==b.opacity;
a.hq();if(ga){t[H]||(t[H]=a.sc(E,w,this.b.R));if(t[H].Ze!==E||t[H].Ye!==w)a.deleteTexture(t[H]),t[H]=a.sc(E,w,this.b.R);a.ac(0);a.Qc(t[H]);M=ta-Q;a.clearRect(N,w-Q-M,na-N,M);c?c.Jb(a):(a.$b(this.b.gb),a.Me(b.opacity),a.Pc(),a.translate(-U,-D),a.Cc(),a.ld(L,R,P,R,P,F,L,F,J));K.left=K.top=0;K.right=K.bottom=1;c&&(p=J.top,J.top=J.bottom,J.bottom=p);H=1;T=0}a.Me(1);u=e.length-1;var ua=a.Um(e[u].bb)||!b&&!c&&!this.b.uc,da=0;q=0;for(v=e.length;q<v;q++){t[H]||(t[H]=a.sc(E,w,this.b.R));if(t[H].Ze!==E||t[H].Ye!==
w)a.deleteTexture(t[H]),t[H]=a.sc(E,w,this.b.R);a.ac(e[q].bb);da=e[q].index;a.fk(e[q].bb)&&(this.b.pa=!0);0!=q||ga?(a.Eg(g,1/E,1/w,K.left,K.top,K.right,K.bottom,k,n,l,r,(l+z)/2,(r+h)/2,this.b.qb.X,c?c.Ja[da]:b?b.Ja[da]:this.Ja[da]),a.$b(null),q!==u||ua?(a.Qc(t[H]),M=ta-Q,p=w-Q-M,a.clearRect(N,p,na-N,M)):(c?a.Le(c.Gb,c.Bb):b&&a.Le(b.Gb,b.Bb),a.Qc(g)),a.$b(t[T]),a.Pc(),a.translate(-U,-D),a.Cc(),a.ld(L,R,P,R,P,F,L,F,J),q!==u||ua||a.$b(null)):(a.Qc(t[H]),M=ta-Q,p=w-Q-M,a.clearRect(N,p,na-N,M),c?(a.Eg(g,
1/c.width,1/c.height,K.left,K.top,K.right,K.bottom,k,n,l,r,(l+z)/2,(r+h)/2,this.b.qb.X,c.Ja[da]),c.Jb(a)):(a.Eg(g,1/E,1/w,0,0,1,1,k,n,l,r,(l+z)/2,(r+h)/2,this.b.qb.X,b?b.Ja[da]:this.Ja[da]),a.$b(b?this.b.gb:this.b.$a),a.Pc(),a.translate(-U,-D),a.Cc(),a.ld(L,R,P,R,P,F,L,F,J)),K.left=K.top=0,K.right=K.bottom=1,c&&!ua&&(p=R,R=F,F=p));H=0===H?1:0;T=0===H?1:0}ua&&(a.ac(0),c?a.Le(c.Gb,c.Bb):b?a.Le(b.Gb,b.Bb):this.b.uc||(a.If(this.b.width,this.b.height),U=this.b.width/2,D=this.b.height/2,F=L=0,P=this.b.width,
R=this.b.height),a.Qc(g),a.$b(t[T]),a.Pc(),a.translate(-U,-D),a.Cc(),c&&1===e.length&&!ga?a.ld(L,F,P,F,P,R,L,R,J):a.ld(L,R,P,R,P,F,L,F,J),a.$b(null))};e.prototype.rj=function(a){var b,c;b=0;for(c=this.O.length;b<c;b++)if(this.O[b].W===a)return this.O[b];return null};e.prototype.Fb=function(){var a,b,c,g={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.m,w:this.width,h:this.height,fv:this.bg,persist:this.Je,fx:[],layers:{}};a=0;for(b=this.L.length;a<b;a++)c=this.L[a],g.fx.push({name:c.name,active:c.qc,
params:this.Ja[c.index]});a=0;for(b=this.O.length;a<b;a++)c=this.O[a],g.layers[c.W.toString()]=c.Fb();return g};e.prototype.Xb=function(a){var b,c,g,e;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.m=a.a;this.width=a.w;this.height=a.h;this.Je=a.persist;"undefined"!==typeof a.fv&&(this.bg=a.fv);var k=a.fx;b=0;for(c=k.length;b<c;b++)if(g=this.Il(k[b].name))g.qc=k[b].active,this.Ja[g.index]=k[b].params;this.qd();b=a.layers;for(e in b)b.hasOwnProperty(e)&&(a=this.rj(parseInt(e,10)))&&a.Xb(b[e])};
Db=e;c.prototype.qd=function(){V(this.ba);this.ae=!0;var a,b,c;a=0;for(b=this.L.length;a<b;a++)c=this.L[a],c.qc&&(this.ba.push(c),c.hd||(this.ae=!1))};c.prototype.Il=function(a){var b,c,g;b=0;for(c=this.L.length;b<c;b++)if(g=this.L[b],g.name===a)return g;return null};c.prototype.xs=function(){var a,b,c,g,e,k;b=a=0;for(c=this.xc.length;a<c;a++){g=this.xc[a];e=this.b.q[g[1]];k=this.b.xn(e);e=!0;if(!k||this.hb.bg)g=this.b.ue(g,this,!0),u.push(g),g.type.global&&(e=!1,this.ah.push(g.uid));e&&(this.xc[b]=
this.xc[a],b++)}this.xc.length=b;this.b.yb();!this.b.n&&this.L.length&&(this.zb=this.Ws);this.Yg=fb(this.zb);this.b.r&&gb(this,this.zb,this.b.r);this.md=!0};c.prototype.Cg=function(a,b){var c=Ca(this.d,a);0>c||(b&&this.Dc&&a.Yb&&a.Yb.right>=a.Yb.left&&(a.qa(),this.xb.update(a,a.Yb,null),a.Yb.set(0,0,-1,-1)),c===this.d.length-1?this.d.pop():(ya(this.d,c),this.hi(c)),this.md=!0)};c.prototype.Ug=function(a,b){a.rd=this.d.length;this.d.push(a);b&&this.Dc&&a.Yb&&a.A();this.md=!0};c.prototype.$u=function(a){this.d.unshift(a);
this.hi(0)};c.prototype.Ju=function(a,b,c){var g=a.wd();b=b.wd();ya(this.d,g);g<b&&b--;c&&b++;b===this.d.length?this.d.push(a):this.d.splice(b,0,a);this.hi(g<b?g:b)};c.prototype.hi=function(a){-1===this.je?this.je=a:a<this.je&&(this.je=a);this.md=this.Mf=!0};c.prototype.An=function(){if(this.Mf){-1===this.je&&(this.je=0);var a,b,c;if(this.Dc)for(a=this.je,b=this.d.length;a<b;++a)c=this.d[a],c.rd=a,this.xb.Hu(c.Yb);else for(a=this.je,b=this.d.length;a<b;++a)this.d[a].rd=a;this.Mf=!1;this.je=-1}};c.prototype.Vb=
function(a){return this.Ut()*(this.b.uc||a?this.b.Vg:1)};c.prototype.Ut=function(){return(this.scale*this.hb.scale-1)*this.sd+1};c.prototype.Sa=function(){return this.Md?0:Ga(this.hb.m+this.m)};var a=[],v=[],q=[];c.prototype.Ml=function(){this.An();this.xb.ik(this.wa,this.xa,this.Ca,this.Ba,q);if(!q.length)return p();if(1===q.length){var a=p();Aa(a,q[0]);V(q);return a}for(var b=!0;1<q.length;){for(var a=q,c=void 0,g=void 0,e=void 0,n=void 0,u=void 0,c=0,g=a.length;c<g-1;c+=2){var e=a[c],n=a[c+1],
u=p(),l=e,r=n,z=u,h=0,t=0,x=0,B=l.length,I=r.length,O=void 0,H=void 0;for(z.length=B+I;h<B&&t<I;++x)O=l[h],H=r[t],O.rd<H.rd?(z[x]=O,++h):(z[x]=H,++t);for(;h<B;++h,++x)z[x]=l[h];for(;t<I;++t,++x)z[x]=r[t];b||(k(e),k(n));v.push(u)}1===g%2&&(b?(e=p(),Aa(e,a[g-1]),v.push(e)):v.push(a[g-1]));Aa(a,v);V(v);b=!1}a=q[0];V(q);return a};c.prototype.Jc=function(a){this.Cd=this.nj||1!==this.opacity||0!==this.zb;var b=this.b.canvas,c=a,g=!1;this.Cd&&(this.b.Hj||(this.b.Hj=document.createElement("canvas"),b=this.b.Hj,
b.width=this.b.D,b.height=this.b.C,this.b.ep=b.getContext("2d"),g=!0),b=this.b.Hj,c=this.b.ep,b.width!==this.b.D&&(b.width=this.b.D,g=!0),b.height!==this.b.C&&(b.height=this.b.C,g=!0),g&&(c.webkitImageSmoothingEnabled=this.b.R,c.mozImageSmoothingEnabled=this.b.R,c.msImageSmoothingEnabled=this.b.R,c.imageSmoothingEnabled=this.b.R),this.pd&&c.clearRect(0,0,this.b.D,this.b.C));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.pd||(c.fillStyle="rgb("+this.Yc[0]+","+this.Yc[1]+","+this.Yc[2]+
")",c.fillRect(0,0,this.b.D,this.b.C));c.save();this.Md=!0;var g=this.Hb(0,0,!0,!0),e=this.Hb(0,0,!1,!0);this.Md=!1;this.b.Ac&&(g=Math.round(g),e=Math.round(e));this.mk(g,e,c);var n=this.Vb();c.scale(n,n);c.translate(-g,-e);this.Dc?(this.ub.left=this.xb.Rb(this.wa),this.ub.top=this.xb.Sb(this.xa),this.ub.right=this.xb.Rb(this.Ca),this.ub.bottom=this.xb.Sb(this.Ba),this.md||!this.ub.eh(this.sg)?(k(this.Wd),g=this.Ml(),this.md=!1,this.sg.Zg(this.ub)):g=this.Wd):g=this.d;for(var q,l=null,e=0,n=g.length;e<
n;++e)q=g[e],q!==l&&(this.Ss(q,c),l=q);this.Dc&&(this.Wd=g);c.restore();this.Cd&&(a.globalCompositeOperation=this.Yg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};c.prototype.Ss=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.qa();var c=a.Fa;c.right<this.wa||c.bottom<this.xa||c.left>this.Ca||c.top>this.Ba||(b.globalCompositeOperation=a.Yg,a.Jc(b))}};c.prototype.Hk=function(){this.Md=!0;var a=this.Hb(0,0,!0,!0),b=this.Hb(0,0,!1,!0);this.Md=!1;this.b.Ac&&(a=Math.round(a),b=Math.round(b));
this.mk(a,b,null)};c.prototype.mk=function(a,b,c){var g=this.Vb();this.wa=a;this.xa=b;this.Ca=a+1/g*this.b.D;this.Ba=b+1/g*this.b.C;a=this.Sa();0!==a&&(c&&(c.translate(this.b.D/2,this.b.C/2),c.rotate(-a),c.translate(this.b.D/-2,this.b.C/-2)),this.ee.set(this.wa,this.xa,this.Ca,this.Ba),this.ee.offset((this.wa+this.Ca)/-2,(this.xa+this.Ba)/-2),this.Dq.oq(this.ee,a),this.Dq.Tn(this.ee),this.ee.offset((this.wa+this.Ca)/2,(this.xa+this.Ba)/2),this.wa=this.ee.left,this.xa=this.ee.top,this.Ca=this.ee.right,
this.Ba=this.ee.bottom)};c.prototype.cf=function(a){if(this.Cd=this.nj){this.b.gb||(this.b.gb=a.sc(this.b.D,this.b.C,this.b.R));if(this.b.gb.Ze!==this.b.D||this.b.gb.Ye!==this.b.C)a.deleteTexture(this.b.gb),this.b.gb=a.sc(this.b.D,this.b.C,this.b.R);a.Qc(this.b.gb)}this.Md=!0;var b=this.Hb(0,0,!0,!0),c=this.Hb(0,0,!1,!0);this.Md=!1;this.b.Ac&&(b=Math.round(b),c=Math.round(c));this.mk(b,c,null);b=this.Vb();a.Pc();a.scale(b,b);a.nk(-this.Sa());a.translate((this.wa+this.Ca)/-2,(this.xa+this.Ba)/-2);
a.Cc();this.Dc?(this.ub.left=this.xb.Rb(this.wa),this.ub.top=this.xb.Sb(this.xa),this.ub.right=this.xb.Rb(this.Ca),this.ub.bottom=this.xb.Sb(this.Ba),this.md||!this.ub.eh(this.sg)?(k(this.Wd),b=this.Ml(),this.md=!1,this.sg.Zg(this.ub)):b=this.Wd):b=this.d;for(var g,e=null,c=b.length-1;0<=c;--c)g=b[c],g!==e&&(this.Us(b[c],a),e=g);this.Dc&&(this.Wd=b);this.pd||(this.il=this.b.ef++,a.qk(this.il),a.iq(1,1,1),a.mo(),a.jv())};c.prototype.Jb=function(a){var b=0,c=0;if(this.Cd=this.nj||1!==this.opacity||
0<this.ba.length||0!==this.zb){this.b.gb||(this.b.gb=a.sc(this.b.D,this.b.C,this.b.R));if(this.b.gb.Ze!==this.b.D||this.b.gb.Ye!==this.b.C)a.deleteTexture(this.b.gb),this.b.gb=a.sc(this.b.D,this.b.C,this.b.R);a.Qc(this.b.gb);this.pd&&a.clear(0,0,0,0)}this.pd||(this.b.Ka?(a.qk(this.il),a.iq(this.Yc[0]/255,this.Yc[1]/255,this.Yc[2]/255),a.mo(),a.zv()):a.clear(this.Yc[0]/255,this.Yc[1]/255,this.Yc[2]/255,1));this.Md=!0;var g=this.Hb(0,0,!0,!0),b=this.Hb(0,0,!1,!0);this.Md=!1;this.b.Ac&&(g=Math.round(g),
b=Math.round(b));this.mk(g,b,null);g=this.Vb();a.Pc();a.scale(g,g);a.nk(-this.Sa());a.translate((this.wa+this.Ca)/-2,(this.xa+this.Ba)/-2);a.Cc();this.Dc?(this.ub.left=this.xb.Rb(this.wa),this.ub.top=this.xb.Sb(this.xa),this.ub.right=this.xb.Rb(this.Ca),this.ub.bottom=this.xb.Sb(this.Ba),this.md||!this.ub.eh(this.sg)?(k(this.Wd),b=this.Ml(),this.md=!1,this.sg.Zg(this.ub)):b=this.Wd):b=this.d;var e,n,q=null,c=0;for(e=b.length;c<e;++c)n=b[c],n!==q&&(this.Ts(b[c],a),q=n);this.Dc&&(this.Wd=b);this.Cd&&
(b=this.ba.length?this.ba[0].bb:0,c=this.ba.length?this.ba[0].index:0,0===this.ba.length||1===this.ba.length&&!a.Um(b)&&1===this.opacity?(1===this.ba.length?(a.ac(b),a.Eg(this.hb.kh(),1/this.b.D,1/this.b.C,0,0,1,1,g,this.Sa(),this.wa,this.xa,(this.wa+this.Ca)/2,(this.xa+this.Ba)/2,this.b.qb.X,this.Ja[c]),a.fk(b)&&(this.b.pa=!0)):a.ac(0),a.Qc(this.hb.kh()),a.Me(this.opacity),a.$b(this.b.gb),a.Le(this.Gb,this.Bb),a.Pc(),a.Cc(),g=this.b.D/2,b=this.b.C/2,a.ci(-g,b,g,b,g,-b,-g,-b),a.$b(null)):this.hb.Zm(a,
this,null,this.hb.kh()))};c.prototype.Ts=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.qa();var c=a.Fa;c.right<this.wa||c.bottom<this.xa||c.left>this.Ca||c.top>this.Ba||(b.qk(a.ef),a.Tq?this.Vs(a,b):(b.ac(0),b.Le(a.Gb,a.Bb),a.Jb(b)))}};c.prototype.Us=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.qa();var c=a.Fa;c.right<this.wa||c.bottom<this.xa||c.left>this.Ca||c.top>this.Ba||(a.ef=this.b.ef++,0===a.zb&&1===a.opacity&&a.ae&&a.cf&&(b.qk(a.ef),a.cf(b)))}};c.prototype.Vs=function(a,
b){var c=a.ba[0].bb,g=a.ba[0].index,e=this.Vb();if(1!==a.ba.length||b.Um(c)||b.bv(c)||(a.m||a.i.Sa())&&b.$h(c)||1!==a.opacity||a.type.na.Bp)this.hb.Zm(b,this,a,this.Cd?this.b.gb:this.hb.kh()),b.Pc(),b.scale(e,e),b.nk(-this.Sa()),b.translate((this.wa+this.Ca)/-2,(this.xa+this.Ba)/-2),b.Cc();else{b.ac(c);b.Le(a.Gb,a.Bb);b.fk(c)&&(this.b.pa=!0);var k=0,n=0,l=0,r=0;b.$h(c)&&(c=a.Fa,k=this.ta(c.left,c.top,!0,!0),n=this.ta(c.left,c.top,!1,!0),l=this.ta(c.right,c.bottom,!0,!0),c=this.ta(c.right,c.bottom,
!1,!0),k=k/windowWidth,n=1-n/windowHeight,l=l/windowWidth,r=1-c/windowHeight);b.Eg(this.Cd?this.b.gb:this.hb.kh(),1/a.width,1/a.height,k,n,l,r,e,this.Sa(),this.wa,this.xa,(this.wa+this.Ca)/2,(this.xa+this.Ba)/2,this.b.qb.X,a.Ja[g]);a.Jb(b)}};c.prototype.Hb=function(a,b,c,g){var e=this.b.devicePixelRatio;this.b.De&&(a*=e,b*=e);var e=this.b.Tp,k=this.b.Up,e=(this.hb.scrollX-e)*this.Nc+e,k=(this.hb.scrollY-k)*this.Oc+k,n=e,l=k,r=1/this.Vb(!g);g?(n-=this.b.D*r/2,l-=this.b.C*r/2):(n-=this.b.width*r/2,
l-=this.b.height*r/2);n+=a*r;l+=b*r;b=this.Sa();0!==b&&(n-=e,l-=k,a=Math.cos(b),b=Math.sin(b),g=n*a-l*b,l=l*a+n*b,n=g+e,l+=k);return c?n:l};c.prototype.ta=function(a,b,c,g){var e=this.b.Tp,k=this.b.Up,n=(this.hb.scrollX-e)*this.Nc+e,l=(this.hb.scrollY-k)*this.Oc+k,k=n,e=l,r=this.Sa();if(0!==r){a-=n;b-=l;var z=Math.cos(-r),r=Math.sin(-r),h=a*z-b*r;b=b*z+a*r;a=h+n;b+=l}n=1/this.Vb(!g);g?(k-=this.b.D*n/2,e-=this.b.C*n/2):(k-=this.b.width*n/2,e-=this.b.height*n/2);k=(a-k)/n;e=(b-e)/n;a=this.b.devicePixelRatio;
this.b.De&&!g&&(k/=a,e/=a);return c?k:e};c.prototype.Fb=function(){var a,b,c,g={s:this.scale,a:this.m,vl:this.wa,vt:this.xa,vr:this.Ca,vb:this.Ba,v:this.visible,bc:this.Yc,t:this.pd,px:this.Nc,py:this.Oc,o:this.opacity,zr:this.sd,fx:[],cg:this.ah,instances:[]};a=0;for(b=this.L.length;a<b;a++)c=this.L[a],g.fx.push({name:c.name,active:c.qc,params:this.Ja[c.index]});return g};c.prototype.Xb=function(a){var b,c,g;this.scale=a.s;this.m=a.a;this.wa=a.vl;this.xa=a.vt;this.Ca=a.vr;this.Ba=a.vb;this.visible=
a.v;this.Yc=a.bc;this.pd=a.t;this.Nc=a.px;this.Oc=a.py;this.opacity=a.o;this.sd=a.zr;this.ah=a.cg||[];Aa(this.xc,this.xq);var e=new ba;b=0;for(g=this.ah.length;b<g;++b)e.add(this.ah[b]);c=b=0;for(g=this.xc.length;b<g;++b)e.contains(this.xc[b][2])||(this.xc[c]=this.xc[b],++c);za(this.xc,c);c=a.fx;b=0;for(g=c.length;b<g;b++)if(a=this.Il(c[b].name))a.qc=c[b].active,this.Ja[a.index]=c[b].params;this.qd();this.d.sort(n);this.Mf=!0};Rb=c})();
(function(){function e(a,b){var c,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<d;c++)if(a[c]!==b[c])return!1;return!0}}function n(a,b){return a.index-b.index}function c(a){var b,c,d,g;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(n);a.length>=A.length&&(A.length=a.length+1);A[a.length]||(A[a.length]=[]);g=A[a.length];b=0;for(c=g.length;b<c;b++)if(d=g[b],e(a,d))return d;g.push(a);return a}
function p(a,b){this.b=a;this.Gq={};this.jo={};this.Ul=!1;this.Eo=new ba;this.ol=[];this.Xk=[];this.name=b[0];var c=b[1];this.xe=[];var d,g;d=0;for(g=c.length;d<g;d++)this.Go(c[d],null,this.xe)}function k(a){this.type=a;this.d=[];this.da=[];this.ka=!0}function u(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ha=[];this.Ne=[];this.Co=this.Ck=this.un=this.$l=this.group=this.vq=!1;this.mb=[];this.Ec=[];this.Rc=[];this.nh="";this.fg=this.$l=this.group=!1;this.Ui=null;c[1]&&(this.nh=c[1][1].toLowerCase(),
this.group=!0,this.$l=!!c[1][0],this.Ui=[],this.fg=this.$l,this.b.Sf.push(this),this.b.oh[this.nh]=this);this.fd=c[2];this.W=c[4];this.group||(this.b.Sn[this.W.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var g=new Sb(this,d[a]);g.index=a;this.mb.push(g);this.Nn(g.type)}d=c[6];a=0;for(b=d.length;a<b;a++)g=new Tb(this,d[a]),g.index=a,this.Ec.push(g);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Go(c[a],this,this.Rc);this.zj=!1;this.mb.length&&(this.zj=null==this.mb[0].type&&
this.mb[0].wb==Y.prototype.k.gr)}function b(a,b){var c,d,g;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Nb))for(c=0,d=a.cc.length;c<d;c++)g=a.cc[c],a!==g&&-1===b.indexOf(g)&&b.push(g)}function a(a,b){this.rc=a;this.sheet=a.sheet;this.b=a.b;this.T=[];this.La=[];this.F={};this.index=-1;this.Sg=!1;this.wb=this.b.ke(b[1]);this.trigger=0<b[3];this.io=2===b[3];this.yd=b[4];this.em=b[5];this.Du=b[6];this.W=b[7];this.b.Wf[this.W.toString()]=this;-1===b[0]?(this.type=null,this.ab=this.bn,this.Xe=null,this.Zc=-1):
(this.type=this.b.q[b[0]],this.ab=this.Du?this.qv:this.an,b[2]?(this.Xe=this.type.qj(b[2]),this.Zc=this.type.El(b[2])):(this.Xe=null,this.Zc=-1),this.rc.parent&&this.rc.parent.rk());this.io&&(this.ab=this.rv);if(10===b.length){var c,d,g=b[9];c=0;for(d=g.length;c<d;c++){var f=new Ub(this,g[c]);this.T.push(f)}this.La.length=g.length}}function v(a,b){this.rc=a;this.sheet=a.sheet;this.b=a.b;this.T=[];this.La=[];this.F={};this.index=-1;this.Sg=!1;this.wb=this.b.ke(b[1]);-1===b[0]?(this.type=null,this.ab=
this.bn,this.Xe=null,this.Zc=-1):(this.type=this.b.q[b[0]],this.ab=this.an,b[2]?(this.Xe=this.type.qj(b[2]),this.Zc=this.type.El(b[2])):(this.Xe=null,this.Zc=-1));this.W=b[3];this.b.Rf[this.W.toString()]=this;if(6===b.length){var c,d,g=b[5];c=0;for(d=g.length;c<d;c++){var f=new Ub(this,g[c]);this.T.push(f)}this.La.length=g.length}}function q(){G++;y.length===G&&y.push(new Vb);return y[G]}function d(a,b){this.Mc=a;this.rc=a.rc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.vd=null;this.be=0;this.get=
null;this.Yn=0;this.hb=null;this.key=0;this.object=null;this.index=0;this.wi=this.Jf=this.wi=this.Jf=this.ko=this.hf=this.xi=null;this.Uc=!1;var c,d,g;switch(b[0]){case 0:case 7:this.vd=new Wb(this,b[1]);this.be=0;this.get=this.du;break;case 1:this.vd=new Wb(this,b[1]);this.be=0;this.get=this.eu;break;case 5:this.vd=new Wb(this,b[1]);this.be=0;this.get=this.iu;break;case 3:case 8:this.Yn=b[1];this.get=this.bu;break;case 6:this.hb=this.b.rm[b[1]];this.get=this.ju;break;case 9:this.key=b[1];this.get=
this.hu;break;case 4:this.object=this.b.q[b[1]];this.get=this.ku;this.rc.Nn(this.object);this.Mc instanceof Tb?this.rc.rk():this.rc.parent&&this.rc.parent.rk();break;case 10:this.index=b[1];a.type.B?(this.get=this.fu,this.Uc=!0):this.get=this.gu;break;case 11:this.xi=b[1];this.hf=null;this.get=this.cu;break;case 2:case 12:this.ko=b[1];this.get=this.au;break;case 13:for(this.get=this.lu,this.Jf=[],this.wi=[],c=1,d=b.length;c<d;c++)g=new Ub(this.Mc,b[c]),this.Jf.push(g),this.wi.push(0)}}function f(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ha=[];this.name=c[1];this.Vq=c[2];this.Zl=c[3];this.Ch=!!c[4];this.yj=!!c[5];this.W=c[6];this.b.Mg[this.W.toString()]=this;this.data=this.Zl;this.parent?(this.Bf=this.Ch||this.yj?-1:this.b.Cv++,this.b.es.push(this)):(this.Bf=-1,this.b.ds.push(this))}function m(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ha=[];this.qh=null;this.ru=c[1];this.qc=!0}function g(){this.zq=[];this.reset(null)}var A=[];p.prototype.toString=function(){return this.name};
p.prototype.Go=function(a,b,c){switch(a[0]){case 0:a=new Xb(this,b,a);if(a.fd)for(c.push(a),c=0,b=a.mb.length;c<b;c++)a.mb[c].trigger&&this.Ho(a,c);else a.Ro()?this.Ho(a,0):c.push(a);break;case 1:a=new Ob(this,b,a);c.push(a);break;case 2:a=new Yb(this,b,a),c.push(a)}};p.prototype.Va=function(){var a,b;a=0;for(b=this.xe.length;a<b;a++)this.xe[a].Va(a<b-1&&this.xe[a+1].zj)};p.prototype.yn=function(){V(this.ol);V(this.Xk);this.Mn(this);V(this.Xk)};p.prototype.Mn=function(a){var b,c,d,g,f=a.ol,e=a.Xk,
k=this.Eo.ge();b=0;for(c=k.length;b<c;++b)d=k[b],g=d.qh,!d.qc||a===g||-1<e.indexOf(g)||(e.push(g),g.Mn(a),f.push(g))};p.prototype.ab=function(a){this.b.Ww||(this.Ul=!0,a||(this.b.jm=!0));var b,c;b=0;for(c=this.xe.length;b<c;b++){var d=this.xe[b];d.ab();this.b.hl(d.Ha);this.b.ze&&this.b.yb()}a||(this.b.jm=!1)};p.prototype.Ho=function(a,b){a.fd||this.b.Ek.push(a);var c,d,g=a.mb[b],f;g.type?f=g.type.name:f="system";var e=(c=g.io)?this.jo:this.Gq;e[f]||(e[f]=[]);f=e[f];e=g.wb;if(c){if(g.T.length&&(g=
g.T[0],1===g.type&&2===g.vd.type)){g=g.vd.value.toLowerCase();c=0;for(d=f.length;c<d;c++)if(f[c].method==e){c=f[c].gh;c[g]?c[g].push([a,b]):c[g]=[[a,b]];return}c={};c[g]=[[a,b]];f.push({method:e,gh:c})}}else{c=0;for(d=f.length;c<d;c++)if(f[c].method==e){f[c].gh.push([a,b]);return}Z&&e===Z.prototype.k.Pf?f.unshift({method:e,gh:[[a,b]]}):f.push({method:e,gh:[[a,b]]})}};Eb=p;k.prototype.Tl=function(){return this.ka?this.type.d.length:this.d.length};k.prototype.wc=function(){return this.ka?this.type.d:
this.d};k.prototype.Zh=function(a){a&&(a.b.Cb().tc.fd?(this.ka&&(V(this.d),Aa(this.da,a.type.d),this.ka=!1),a=this.da.indexOf(a),-1!==a&&(this.d.push(this.da[a]),this.da.splice(a,1))):(this.ka=!1,V(this.d),this.d[0]=a))};mb=k;window._c2hh_="ABFD025DF76265CCB4C4ECB9F7292CF9E69BBAA0";u.prototype.Va=function(a){var b,d=this.parent;if(this.group)for(this.Ck=!0;d;){if(!d.group){this.Ck=!1;break}d=d.parent}this.un=!this.Ro()&&(!this.parent||this.parent.group&&this.parent.Ck);this.Co=!!a;this.Ne=this.Ha.slice(0);
for(d=this.parent;d;){a=0;for(b=d.Ha.length;a<b;a++)this.bs(d.Ha[a]);d=d.parent}this.Ha=c(this.Ha);this.Ne=c(this.Ne);a=0;for(b=this.mb.length;a<b;a++)this.mb[a].Va();a=0;for(b=this.Ec.length;a<b;a++)this.Ec[a].Va();a=0;for(b=this.Rc.length;a<b;a++)this.Rc[a].Va(a<b-1&&this.Rc[a+1].zj)};u.prototype.vv=function(a){if(this.fg!==!!a){this.fg=!!a;var b;a=0;for(b=this.Ui.length;a<b;++a)this.Ui[a].Mq();0<b&&this.b.ua.gf&&this.b.ua.gf.yn()}};u.prototype.Nn=function(a){b(a,this.Ha)};u.prototype.bs=function(a){b(a,
this.Ne)};u.prototype.rk=function(){this.vq=!0;this.parent&&this.parent.rk()};u.prototype.Ro=function(){return this.mb.length?this.mb[0].trigger:!1};u.prototype.ab=function(){var a,b,c=!1,d=this.b,g=this.b.Cb();g.tc=this;var f=this.mb;this.zj||(g.pl=!1);if(this.fd){0===f.length&&(c=!0);g.lb=0;for(a=f.length;g.lb<a;g.lb++)b=f[g.lb],b.trigger||(b=b.ab())&&(c=!0);(g.uf=c)&&this.ok()}else{g.lb=0;for(a=f.length;g.lb<a;g.lb++)if(b=f[g.lb].ab(),!b){g.uf=!1;this.un&&d.ze&&d.yb();return}g.uf=!0;this.ok()}this.Ys(g)};
u.prototype.Ys=function(a){a.uf&&this.Co&&(a.pl=!0);this.un&&this.b.ze&&this.b.yb()};u.prototype.ov=function(a){this.b.Cb().tc=this;this.mb[a].ab()&&(this.ok(),this.b.Cb().uf=!0)};u.prototype.ok=function(){var a=this.b.Cb(),b;a.pc=0;for(b=this.Ec.length;a.pc<b;a.pc++)if(this.Ec[a.pc].ab())return;this.fq()};u.prototype.lv=function(){var a=this.b.Cb(),b;for(b=this.Ec.length;a.pc<b;a.pc++)if(this.Ec[a.pc].ab())return;this.fq()};u.prototype.fq=function(){if(this.Rc.length){var a,b,c,d,g=this.Rc.length-
1;this.b.hk(this);if(this.vq)for(a=0,b=this.Rc.length;a<b;a++)c=this.Rc[a],(d=!this.Ck||!this.group&&a<g)&&this.b.gk(c.Ha),c.ab(),d?this.b.Ef(c.Ha):this.b.hl(c.Ha);else for(a=0,b=this.Rc.length;a<b;a++)this.Rc[a].ab();this.b.bk()}};u.prototype.pv=function(){var a=this.b.Cb();a.tc=this;var b=!1,c;a.lb=0;for(c=this.mb.length;a.lb<c;a.lb++)if(this.mb[a.lb].ab())b=!0;else if(!this.fd)return!1;return this.fd?b:!0};u.prototype.mv=function(){this.b.jf++;var a=this.b.Cb().lb,b=this.b.hk(this);if(!this.fd)for(b.lb=
a+1,a=this.mb.length;b.lb<a;b.lb++)if(!this.mb[b.lb].ab()){this.b.bk();return}this.ok();this.b.bk()};u.prototype.yu=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.mb[b].type===a.type)return!1;return!0};Xb=u;a.prototype.Va=function(){var a,b,c;a=0;for(b=this.T.length;a<b;a++)c=this.T[a],c.Va(),c.Uc&&(this.Sg=!0)};a.prototype.rv=function(){return!0};a.prototype.bn=function(){var a,b;a=0;for(b=this.T.length;a<b;a++)this.La[a]=this.T[a].get();return Ua(this.wb.apply(this.b.Ed,this.La),
this.em)};a.prototype.qv=function(){var a,b;a=0;for(b=this.T.length;a<b;a++)this.La[a]=this.T[a].get();a=this.wb.apply(this.Xe?this.Xe:this.type,this.La);this.type.Xc();return a};a.prototype.an=function(){var a,b,c,d,g,f,e,k,m=this.type,n=m.Y(),q=this.rc.fd&&!this.trigger;b=0;var v=m.Nb,p=m.B,u=m.Od,A=this.Zc,y=-1<A,G=this.Sg,K=this.T,L=this.La,N=this.em,F=this.wb,Q;if(G)for(b=0,g=K.length;b<g;++b)f=K[b],f.Uc||(L[b]=f.get(0));else for(b=0,g=K.length;b<g;++b)L[b]=K[b].get(0);if(n.ka){V(n.d);V(n.da);
Q=m.d;a=0;for(d=Q.length;a<d;++a){k=Q[a];if(G)for(b=0,g=K.length;b<g;++b)f=K[b],f.Uc&&(L[b]=f.get(a));y?(b=0,p&&(b=k.type.ag[u]),b=F.apply(k.N[A+b],L)):b=F.apply(k,L);(e=Ua(b,N))?n.d.push(k):q&&n.da.push(k)}m.finish&&m.finish(!0);n.ka=!1;m.Xc();return n.Tl()}c=0;Q=(e=q&&!this.rc.yu(this))?n.da:n.d;var P=!1;a=0;for(d=Q.length;a<d;++a){k=Q[a];if(G)for(b=0,g=K.length;b<g;++b)f=K[b],f.Uc&&(L[b]=f.get(a));y?(b=0,p&&(b=k.type.ag[u]),b=F.apply(k.N[A+b],L)):b=F.apply(k,L);if(Ua(b,N))if(P=!0,e){if(n.d.push(k),
v)for(b=0,g=k.siblings.length;b<g;b++)f=k.siblings[b],f.type.Y().d.push(f)}else{Q[c]=k;if(v)for(b=0,g=k.siblings.length;b<g;b++)f=k.siblings[b],f.type.Y().d[c]=f;c++}else if(e){Q[c]=k;if(v)for(b=0,g=k.siblings.length;b<g;b++)f=k.siblings[b],f.type.Y().da[c]=f;c++}else if(q&&(n.da.push(k),v))for(b=0,g=k.siblings.length;b<g;b++)f=k.siblings[b],f.type.Y().da.push(f)}za(Q,c);if(v)for(p=m.cc,a=0,d=p.length;a<d;a++)k=p[a].Y(),e?za(k.da,c):za(k.d,c);c=P;if(e&&!P)for(a=0,d=n.d.length;a<d;a++){k=n.d[a];if(G)for(b=
0,g=K.length;b<g;b++)f=K[b],f.Uc&&(L[b]=f.get(a));b=y?F.apply(k.N[A],L):F.apply(k,L);if(Ua(b,N)){P=!0;break}}m.finish&&m.finish(c||q);return q?P:n.Tl()};Sb=a;v.prototype.Va=function(){var a,b,c;a=0;for(b=this.T.length;a<b;a++)c=this.T[a],c.Va(),c.Uc&&(this.Sg=!0)};v.prototype.bn=function(){var a=this.b,b,c,d=this.T,g=this.La;b=0;for(c=d.length;b<c;++b)g[b]=d[b].get();return this.wb.apply(a.Ed,g)};v.prototype.an=function(){var a=this.type,b=this.Zc,c=a.Od,d=this.Sg,g=this.T,f=this.La,e=this.wb,k=a.Y().wc(),
a=a.B,m=-1<b,n,q,v,p,A,u;if(d)for(q=0,p=g.length;q<p;++q)A=g[q],A.Uc||(f[q]=A.get(0));else for(q=0,p=g.length;q<p;++q)f[q]=g[q].get(0);n=0;for(v=k.length;n<v;++n){u=k[n];if(d)for(q=0,p=g.length;q<p;++q)A=g[q],A.Uc&&(f[q]=A.get(n));m?(q=0,a&&(q=u.type.ag[c]),e.apply(u.N[b+q],f)):e.apply(u,f)}return!1};Tb=v;var y=[],G=-1;d.prototype.Va=function(){var a,b;if(11===this.type)this.hf=this.b.so(this.xi,this.rc.parent);else if(13===this.type)for(a=0,b=this.Jf.length;a<b;a++)this.Jf[a].Va();this.vd&&this.vd.Va()};
d.prototype.Iu=function(a){this.Uc||!a||a.na.wk||(this.Uc=!0)};d.prototype.mq=function(){this.Uc=!0};d.prototype.du=function(a){this.be=a||0;a=q();this.vd.get(a);G--;return a.data};d.prototype.eu=function(a){this.be=a||0;a=q();this.vd.get(a);G--;return C(a.data)?a.data:""};d.prototype.ku=function(){return this.object};d.prototype.bu=function(){return this.Yn};d.prototype.iu=function(a){this.be=a||0;a=q();this.vd.get(a);G--;return a.pb()?this.b.jh(a.data):this.b.Kl(a.data)};d.prototype.ju=function(){return this.hb};
d.prototype.hu=function(){return this.key};d.prototype.gu=function(){return this.index};d.prototype.fu=function(a){a=a||0;var b=this.Mc.type,c=null,c=b.Y(),d=c.wc();if(d.length)c=d[a%d.length].type;else if(c.da.length)c=c.da[a%c.da.length].type;else if(b.d.length)c=b.d[a%b.d.length].type;else return 0;return this.index+c.hj[b.Od]};d.prototype.cu=function(){return this.hf};d.prototype.au=function(){return this.ko};d.prototype.lu=function(){var a,b;a=0;for(b=this.Jf.length;a<b;a++)this.wi[a]=this.Jf[a].get();
return this.wi};Ub=d;f.prototype.Va=function(){this.Ha=c(this.Ha)};f.prototype.sk=function(a){var b=this.b.ro();this.parent&&!this.Ch&&b?(this.Bf>=b.length&&(b.length=this.Bf+1),b[this.Bf]=a):this.data=a};f.prototype.yo=function(){var a=this.b.ro();return!this.parent||this.Ch||!a||this.yj?this.data:this.Bf>=a.length||"undefined"===typeof a[this.Bf]?this.Zl:a[this.Bf]};f.prototype.ab=function(){!this.parent||this.Ch||this.yj||this.sk(this.Zl)};Ob=f;m.prototype.toString=function(){return"include:"+
this.qh.toString()};m.prototype.Va=function(){this.qh=this.b.sl[this.ru];this.sheet.Eo.add(this);this.Ha=c(this.Ha);for(var a=this.parent;a;)a.group&&a.Ui.push(this),a=a.parent;this.Mq()};m.prototype.ab=function(){this.parent&&this.b.bi(this.b.q);this.qh.Ul||this.qh.ab(!0);this.parent&&this.b.Ef(this.b.q)};m.prototype.Mq=function(){for(var a=this.parent;a;){if(a.group&&!a.fg){this.qc=!1;return}a=a.parent}this.qc=!0};Yb=m;g.prototype.reset=function(a){this.tc=a;this.pc=this.lb=0;V(this.zq);this.pl=
this.uf=!1};Nb=g})();
(function(){function e(b,a){this.Mc=b;this.b=b.b;this.type=a[0];this.get=[this.qt,this.mt,this.Ct,this.Ft,this.$s,this.Dt,this.xt,this.jt,this.wt,this.Bt,this.bt,this.At,this.kt,this.yt,this.tt,this.ut,this.nt,this.ot,this.it,this.Et,this.zt,this.pt,this.ht,this.lt][this.type];var c=null;this.Xd=this.T=this.La=this.wb=this.Bk=this.second=this.first=this.value=null;this.Zc=-1;this.ad=null;this.Uq=-1;this.hf=this.xi=null;this.Dg=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new Wb(b,a[1]);break;case 18:this.first=new Wb(b,a[1]);this.second=new Wb(b,a[2]);this.Bk=new Wb(b,a[3]);break;case 19:this.wb=this.b.ke(a[1]);this.wb!==Y.prototype.Ra.random&&this.wb!==Y.prototype.Ra.Xn||this.Mc.mq();this.La=[];this.T=[];3===a.length?(c=a[2],this.La.length=c.length+1):this.La.length=1;break;case 20:this.Xd=this.b.q[a[1]];this.Zc=-1;this.wb=this.b.ke(a[2]);this.Dg=a[3];ac.Function&&this.wb===ac.Function.prototype.Ra.Wv&&this.Mc.mq();a[4]?this.ad=new Wb(b,a[4]):this.ad=null;this.La=
[];this.T=[];6===a.length?(c=a[5],this.La.length=c.length+1):this.La.length=1;break;case 21:this.Xd=this.b.q[a[1]];this.Dg=a[2];a[3]?this.ad=new Wb(b,a[3]):this.ad=null;this.Uq=a[4];break;case 22:this.Xd=this.b.q[a[1]];this.Xd.qj(a[2]);this.Zc=this.Xd.El(a[2]);this.wb=this.b.ke(a[3]);this.Dg=a[4];a[5]?this.ad=new Wb(b,a[5]):this.ad=null;this.La=[];this.T=[];7===a.length?(c=a[6],this.La.length=c.length+1):this.La.length=1;break;case 23:this.xi=a[1],this.hf=null}this.Mc.Iu(this.Xd);4<=this.type&&17>=
this.type&&(this.first=new Wb(b,a[1]),this.second=new Wb(b,a[2]));if(c){var e,d;e=0;for(d=c.length;e<d;e++)this.T.push(new Wb(b,c[e]))}}function n(){++u;k.length===u&&k.push(new Vb);return k[u]}function c(b,a,c){var e,d;e=0;for(d=b.length;e<d;++e)b[e].get(c),a[e+1]=c.data}function p(b,a){this.type=b||Zb.Of;this.data=a||0;this.Df=null;this.type==Zb.Of&&(this.data=Math.floor(this.data))}e.prototype.Va=function(){23===this.type&&(this.hf=this.Mc.b.so(this.xi,this.Mc.rc.parent));this.first&&this.first.Va();
this.second&&this.second.Va();this.Bk&&this.Bk.Va();this.ad&&this.ad.Va();if(this.T){var b,a;b=0;for(a=this.T.length;b<a;b++)this.T[b].Va()}};var k=[],u=-1;e.prototype.Et=function(b){var a=this.T,e=this.La;e[0]=b;b=n();c(a,e,b);--u;this.wb.apply(this.b.Ed,e)};e.prototype.zt=function(b){var a=this.Xd,e=this.La,k=this.T,d=this.ad,f=this.wb,m=this.Mc.be,g=a.Y(),p=g.wc();if(!p.length)if(g.da.length)p=g.da;else{this.Dg?b.kc(""):b.ya(0);return}e[0]=b;b.Df=a;b=n();c(k,e,b);d&&(d.get(b),b.pb()&&(m=b.data,
p=a.d));--u;a=p.length;if(m>=a||m<=-a)m%=a;0>m&&(m+=a);f.apply(p[m],e)};e.prototype.ht=function(b){var a=this.Xd,e=this.La,k=this.T,d=this.ad,f=this.Zc,m=this.wb,g=this.Mc.be,p=a.Y(),y=p.wc();if(!y.length)if(p.da.length)y=p.da;else{this.Dg?b.kc(""):b.ya(0);return}e[0]=b;b.Df=a;b=n();c(k,e,b);d&&(d.get(b),b.pb()&&(g=b.data,y=a.d));--u;k=y.length;if(g>=k||g<=-k)g%=k;0>g&&(g+=k);g=y[g];y=0;a.B&&(y=g.type.ag[a.Od]);m.apply(g.N[f+y],e)};e.prototype.pt=function(b){var a=this.ad,c=this.Xd,e=this.Uq,d=this.Mc.be,
f=c.Y(),k=f.wc();if(!k.length)if(f.da.length)k=f.da;else{this.Dg?b.kc(""):b.ya(0);return}if(a){f=n();a.get(f);if(f.pb()){d=f.data;c=c.d;d%=c.length;0>d&&(d+=c.length);e=c[d].fb[e];C(e)?b.kc(e):b.G(e);--u;return}--u}a=k.length;if(d>=a||d<=-a)d%=a;0>d&&(d+=a);d=k[d];k=0;c.B&&(k=d.type.hj[c.Od]);e=d.fb[e+k];C(e)?b.kc(e):b.G(e)};e.prototype.qt=function(b){b.type=Zb.Of;b.data=this.value};e.prototype.mt=function(b){b.type=Zb.Nf;b.data=this.value};e.prototype.Ct=function(b){b.type=Zb.String;b.data=this.value};
e.prototype.Ft=function(b){this.first.get(b);b.pb()&&(b.data=-b.data)};e.prototype.$s=function(b){this.first.get(b);var a=n();this.second.get(a);b.pb()&&a.pb()&&(b.data+=a.data,a.mg()&&b.vg());--u};e.prototype.Dt=function(b){this.first.get(b);var a=n();this.second.get(a);b.pb()&&a.pb()&&(b.data-=a.data,a.mg()&&b.vg());--u};e.prototype.xt=function(b){this.first.get(b);var a=n();this.second.get(a);b.pb()&&a.pb()&&(b.data*=a.data,a.mg()&&b.vg());--u};e.prototype.jt=function(b){this.first.get(b);var a=
n();this.second.get(a);b.pb()&&a.pb()&&(b.data/=a.data,b.vg());--u};e.prototype.wt=function(b){this.first.get(b);var a=n();this.second.get(a);b.pb()&&a.pb()&&(b.data%=a.data,a.mg()&&b.vg());--u};e.prototype.Bt=function(b){this.first.get(b);var a=n();this.second.get(a);b.pb()&&a.pb()&&(b.data=Math.pow(b.data,a.data),a.mg()&&b.vg());--u};e.prototype.bt=function(b){this.first.get(b);var a=n();this.second.get(a);a.qg()||b.qg()?this.dt(b,a):this.ct(b,a);--u};e.prototype.dt=function(b,a){b.qg()&&a.qg()?
this.gt(b,a):this.et(b,a)};e.prototype.gt=function(b,a){b.data+=a.data};e.prototype.et=function(b,a){b.qg()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.kc(b.data.toString()+a.data)};e.prototype.ct=function(b,a){b.ya(b.data&&a.data?1:0)};e.prototype.At=function(b){this.first.get(b);var a=n();this.second.get(a);b.pb()&&a.pb()&&(b.data||a.data?b.ya(1):b.ya(0));--u};e.prototype.it=function(b){this.first.get(b);b.data?this.second.get(b):this.Bk.get(b)};e.prototype.kt=function(b){this.first.get(b);
var a=n();this.second.get(a);b.ya(b.data===a.data?1:0);--u};e.prototype.yt=function(b){this.first.get(b);var a=n();this.second.get(a);b.ya(b.data!==a.data?1:0);--u};e.prototype.tt=function(b){this.first.get(b);var a=n();this.second.get(a);b.ya(b.data<a.data?1:0);--u};e.prototype.ut=function(b){this.first.get(b);var a=n();this.second.get(a);b.ya(b.data<=a.data?1:0);--u};e.prototype.nt=function(b){this.first.get(b);var a=n();this.second.get(a);b.ya(b.data>a.data?1:0);--u};e.prototype.ot=function(b){this.first.get(b);
var a=n();this.second.get(a);b.ya(b.data>=a.data?1:0);--u};e.prototype.lt=function(b){var a=this.hf.yo();ia(a)?b.G(a):b.kc(a)};Wb=e;p.prototype.mg=function(){return this.type===Zb.Nf};p.prototype.pb=function(){return this.type===Zb.Of||this.type===Zb.Nf};p.prototype.qg=function(){return this.type===Zb.String};p.prototype.vg=function(){this.mg()||(this.qg()&&(this.data=parseFloat(this.data)),this.type=Zb.Nf)};p.prototype.ya=function(b){this.type=Zb.Of;this.data=Math.floor(b)};p.prototype.G=function(b){this.type=
Zb.Nf;this.data=b};p.prototype.kc=function(b){this.type=Zb.String;this.data=b};p.prototype.Av=function(b){ia(b)?(this.type=Zb.Nf,this.data=b):C(b)?(this.type=Zb.String,this.data=b.toString()):(this.type=Zb.Of,this.data=0)};Vb=p;Zb={Of:0,Nf:1,String:2}})();function Y(e){this.b=e;this.oc=[]}
Y.prototype.Fb=function(){var e={},n,c,p,k,u,b,a,v;e.waits=[];var q=e.waits,d;n=0;for(c=this.oc.length;n<c;n++){b=this.oc[n];d={t:b.time,st:b.Bv,s:b.sq,ev:b.fh.W,sm:[],sols:{}};b.fh.Ec[b.pc]&&(d.act=b.fh.Ec[b.pc].W);p=0;for(k=b.Ha.length;p<k;p++)d.sm.push(b.Ha[p].W);for(u in b.lc)if(b.lc.hasOwnProperty(u)){a=this.b.q[parseInt(u,10)];v={sa:b.lc[u].gq,insts:[]};p=0;for(k=b.lc[u].qf.length;p<k;p++)v.insts.push(b.lc[u].qf[p].uid);d.sols[a.W.toString()]=v}q.push(d)}return e};
Y.prototype.Xb=function(e){e=e.waits;var n,c,p,k,u,b,a,v,q,d,f;V(this.oc);n=0;for(c=e.length;n<c;n++)if(b=e[n],v=this.b.Sn[b.ev.toString()]){q=-1;p=0;for(k=v.Ec.length;p<k;p++)if(v.Ec[p].W===b.act){q=p;break}if(-1!==q){a={lc:{},Ha:[],bo:!1};a.time=b.t;a.Bv=b.st||"";a.sq=!!b.s;a.fh=v;a.pc=q;p=0;for(k=b.sm.length;p<k;p++)(v=this.b.sj(b.sm[p]))&&a.Ha.push(v);for(u in b.sols)if(b.sols.hasOwnProperty(u)&&(v=this.b.sj(parseInt(u,10)))){q=b.sols[u];d={gq:q.sa,qf:[]};p=0;for(k=q.insts.length;p<k;p++)(f=this.b.eg(q.insts[p]))&&
d.qf.push(f);a.lc[v.index.toString()]=d}this.oc.push(a)}}};
(function(){function e(){}function n(){}function c(){}var p=Y.prototype;e.prototype.ir=function(){return!0};e.prototype.Jn=function(){return!0};e.prototype.Kr=function(){return!0};e.prototype.hr=function(b){var a=this.b.Gl(),c=a.F.Every_lastTime||0,e=this.b.qb.X;"undefined"===typeof a.F.Every_seconds&&(a.F.Every_seconds=b);var d=a.F.Every_seconds;if(e>=c+d)return a.F.Every_lastTime=c+d,e>=a.F.Every_lastTime+.04&&(a.F.Every_lastTime=e),a.F.Every_seconds=b,!0;e<c-.1&&(a.F.Every_lastTime=e);return!1};
e.prototype.cr=function(b,a,c){return $b(b.yo(),a,c)};e.prototype.mr=function(b){return(b=this.b.oh[b.toLowerCase()])&&b.fg};e.prototype.gr=function(){var b=this.b.Cb();return b.pl?!1:!b.uf};e.prototype.Kn=function(){return!0};e.prototype.Br=function(){return!0};e.prototype.Pk=function(){return!0};e.prototype.Lr=function(){return!0};e.prototype.Nk=function(){return!0};e.prototype.Yq=function(b,a,c){return La(W(b),W(c))<=W(a)};e.prototype.lr=function(b,a){return Na(W(b),W(a))};e.prototype.kr=function(b,
a,c){b=Ia(b);a=Ia(a);c=Ia(c);return Na(c,a)?Na(b,a)&&!Na(b,c):!(!Na(b,a)&&Na(b,c))};p.k=new e;n.prototype.jr=function(b){this.b.Eh||this.b.Xg||(this.b.Xg=b)};n.prototype.er=function(b,a,c,e){if(a&&b&&(a=this.b.kl(b,a,c,e))){this.b.yc++;var d;this.b.trigger(Object.getPrototypeOf(b.na).k.Qg,a);if(a.Nb)for(c=0,e=a.siblings.length;c<e;c++)d=a.siblings[c],this.b.trigger(Object.getPrototypeOf(d.type.na).k.Qg,d);this.b.yc--;b=b.Y();b.ka=!1;V(b.d);b.d[0]=a;if(a.Nb)for(c=0,e=a.siblings.length;c<e;c++)d=a.siblings[c],
b=d.type.Y(),b.ka=!1,V(b.d),b.d[0]=d}};n.prototype.Ur=function(b,a){0===b.Vq?ia(a)?b.sk(a):b.sk(parseFloat(a)):1===b.Vq&&b.sk(a.toString())};var k=[],u=[];p.ca=new n;c.prototype["int"]=function(b,a){C(a)?(b.ya(parseInt(a,10)),isNaN(b.data)&&(b.data=0)):b.ya(a)};c.prototype["float"]=function(b,a){C(a)?(b.G(parseFloat(a)),isNaN(b.data)&&(b.data=0)):b.G(a)};c.prototype.random=function(b,a,c){void 0===c?b.G(Math.random()*a):b.G(Math.random()*(c-a)+a)};c.prototype.sqrt=function(b,a){b.G(Math.sqrt(a))};
c.prototype.abs=function(b,a){b.G(Math.abs(a))};c.prototype.round=function(b,a){b.ya(Math.round(a))};c.prototype.floor=function(b,a){b.ya(Math.floor(a))};c.prototype.ceil=function(b,a){b.ya(Math.ceil(a))};c.prototype.sin=function(b,a){b.G(Math.sin(W(a)))};c.prototype.cos=function(b,a){b.G(Math.cos(W(a)))};c.prototype.tan=function(b,a){b.G(Math.tan(W(a)))};c.prototype.asin=function(b,a){b.G(Ea(Math.asin(a)))};c.prototype.acos=function(b,a){b.G(Ea(Math.acos(a)))};c.prototype.atan=function(b,a){b.G(Ea(Math.atan(a)))};
c.prototype.exp=function(b,a){b.G(Math.exp(a))};c.prototype.log10=function(b,a){b.G(Math.log(a)/Math.LN10)};c.prototype.max=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var c,e,d;c=2;for(e=arguments.length;c<e;c++)d=arguments[c],"number"===typeof d&&a<d&&(a=d);b.G(a)};c.prototype.min=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var c,e,d;c=2;for(e=arguments.length;c<e;c++)d=arguments[c],"number"===typeof d&&a>d&&(a=d);b.G(a)};c.prototype.df=function(b){b.G(this.b.df)};c.prototype.Lf=
function(b){b.G(this.b.Lf)};c.prototype.time=function(b){b.G(this.b.qb.X)};c.prototype.Gd=function(b){b.ya(this.b.Gd)};c.prototype.Xj=function(b){b.ya(this.b.Xj)};c.prototype.Al=function(b){b.ya(this.b.Al)};c.prototype.m=function(b,a,c,e,d){b.G(Ea(Ka(a,c,e,d)))};c.prototype.left=function(b,a,c){b.kc(C(a)?a.substr(0,c):"")};c.prototype.right=function(b,a,c){b.kc(C(a)?a.substr(a.length-c):"")};c.prototype.replace=function(b,a,c,e){C(a)&&C(c)&&C(e)?b.kc(a.replace(new RegExp(bb(c),"gi"),e)):b.kc(C(a)?
a:"")};c.prototype.trim=function(b,a){b.kc(C(a)?a.trim():"")};c.prototype.Xn=function(b){var a=S(Math.random()*(arguments.length-1));b.Av(arguments[a+1])};c.prototype.jl=function(b){b.G(this.b.jl/1E3)};c.prototype.Oj=function(b){b.G(this.b.Oj)};p.Ra=new c;p.nv=function(){var b,a,c,e,d,f,m=this.b.Cb();b=0;for(c=this.oc.length;b<c;b++){e=this.oc[b];if(-1===e.time){if(!e.sq)continue}else if(e.time>this.b.qb.X)continue;m.tc=e.fh;m.pc=e.pc;m.lb=0;for(a in e.lc)e.lc.hasOwnProperty(a)&&(d=this.b.q[parseInt(a,
10)].Y(),f=e.lc[a],d.ka=f.gq,Aa(d.d,f.qf),d=f,V(d.qf),u.push(d));e.fh.lv();this.b.hl(e.Ha);e.bo=!0}a=b=0;for(c=this.oc.length;b<c;b++)e=this.oc[b],this.oc[a]=e,e.bo?(Wa(e.lc),V(e.Ha),k.push(e)):a++;za(this.oc,a)}})();
(function(){lb=function(e,c){var p=e[1],k=e[3],u=e[4],b=e[5],a=e[6],v=e[7],q=e[8];c.k||(c.k={});c.ca||(c.ca={});c.Ra||(c.Ra={});var d=c.k,f=c.ca,m=c.Ra;k&&(d.dr=function(a,b){return $b(this.x,a,b)},d.aw=function(a,b){return $b(this.y,a,b)},d.hw=function(){var a=this.i;this.qa();var b=this.Fa;return!(b.right<a.wa||b.bottom<a.xa||b.left>a.Ca||b.top>a.Ba)},d.or=function(){this.qa();var a=this.Fa,b=this.b.ua;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},d.pw=function(a,b,c){var d=this.Y(),
f=d.wc();if(!f.length)return!1;var e=f[0],k=e,h=Ta(e.x,e.y,b,c),m,n,q;m=1;for(n=f.length;m<n;m++)if(e=f[m],q=Ta(e.x,e.y,b,c),0===a&&q<h||1===a&&q>h)h=q,k=e;d.Zh(k);return!0},f.Wr=function(a){this.x!==a&&(this.x=a,this.A())},f.Xr=function(a){this.y!==a&&(this.y=a,this.A())},f.Tr=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.A()},f.Fw=function(a,b){var c=a.Vt(this);if(c){var d;c.ih?(d=c.ih(b,!0),c=c.ih(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.A()}},f.lw=
function(a){0!==a&&(this.x+=Math.cos(this.m)*a,this.y+=Math.sin(this.m)*a,this.A())},f.kw=function(a,b){0!==b&&(this.x+=Math.cos(W(a))*b,this.y+=Math.sin(W(a))*b,this.A())},m.Tk=function(a){a.G(this.x)},m.Uk=function(a){a.G(this.y)},m.df=function(a){a.G(this.b.Hl(this))});u&&(d.$v=function(a,b){return $b(this.width,a,b)},d.Xv=function(a,b){return $b(this.height,a,b)},f.Vr=function(a){this.width!==a&&(this.width=a,this.A())},f.Cw=function(a){this.height!==a&&(this.height=a,this.A())},f.Gw=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.A()},m.Lw=function(a){a.G(this.width)},m.dw=function(a){a.G(this.height)},m.Tv=function(a){this.qa();a.G(this.Fa.left)},m.Vv=function(a){this.qa();a.G(this.Fa.top)},m.Uv=function(a){this.qa();a.G(this.Fa.right)},m.Sv=function(a){this.qa();a.G(this.Fa.bottom)});b&&(d.Yq=function(a,b){return La(this.m,W(b))<=W(a)},d.lr=function(a){return Na(this.m,W(a))},d.kr=function(a,b){var c=Ia(a),d=Ia(b),f=Ga(this.m);return Na(d,c)?Na(f,c)&&
!Na(f,d):!(!Na(f,c)&&Na(f,d))},f.yw=function(a){a=W(Fa(a));isNaN(a)||this.m===a||(this.m=a,this.A())},f.uw=function(a){0===a||isNaN(a)||(this.m+=W(a),this.m=Ga(this.m),this.A())},f.vw=function(a){0===a||isNaN(a)||(this.m-=W(a),this.m=Ga(this.m),this.A())},f.ww=function(a,b){var c=Ma(this.m,W(b),W(a));isNaN(c)||this.m===c||(this.m=c,this.A())},f.xw=function(a,b,c){a=Ma(this.m,Math.atan2(c-this.y,b-this.x),W(a));isNaN(a)||this.m===a||(this.m=a,this.A())},f.Hw=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.m===c||(this.m=c,this.A())},m.Rv=function(a){a.G(Ha(this.m))});p||(d.Yv=function(a,b,c){return $b(this.fb[a],b,c)},d.fw=function(a){return this.fb[a]},d.qw=function(a,b){var c=this.Y(),d=c.wc();if(!d.length)return!1;var f=d[0],e=f,k=f.fb[b],h,m,n;h=1;for(m=d.length;h<m;h++)if(f=d[h],n=f.fb[b],0===a&&n<k||1===a&&n>k)k=n,e=f;c.Zh(e);return!0},d.ow=function(a){var b,c,d,f,e;if(this.b.Gl().em){e=this.Y();if(e.ka)for(e.ka=!1,V(e.d),V(e.da),d=this.d,b=0,c=d.length;b<c;b++)f=d[b],
f.uid===a?e.da.push(f):e.d.push(f);else{d=b=0;for(c=e.d.length;b<c;b++)f=e.d[b],e.d[d]=f,f.uid===a?e.da.push(f):d++;za(e.d,d)}this.Xc();return!!e.d.length}f=this.b.eg(a);if(!f)return!1;e=this.Y();if(!e.ka&&-1===e.d.indexOf(f))return!1;if(this.B)for(a=f.type.Ga,b=0,c=a.length;b<c;b++){if(a[b]===this)return e.Zh(f),this.Xc(),!0}else if(f.type===this)return e.Zh(f),this.Xc(),!0;return!1},d.Qg=function(){return!0},d.Dr=function(){return!0},f.Dw=function(a,b){var c=this.fb;ia(c[a])?c[a]=ia(b)?b:parseFloat(b):
C(c[a])&&(c[a]=C(b)?b:b.toString())},f.Qv=function(a,b){var c=this.fb;ia(c[a])?c[a]=ia(b)?c[a]+b:c[a]+parseFloat(b):C(c[a])&&(c[a]=C(b)?c[a]+b:c[a]+b.toString())},f.Iw=function(a,b){var c=this.fb;ia(c[a])&&(c[a]=ia(b)?c[a]-b:c[a]-parseFloat(b))},f.zw=function(a,b){this.fb[a]=b?1:0},f.Jw=function(a){this.fb[a]=1-this.fb[a]},f.fr=function(){this.b.Te(this)},f.rr||(f.rr=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Lj(this,b,!0);this.td&&this.td();if(this.N)for(a=0,b=this.N.length;a<
b;++a)c=this.N[a],c.td&&c.td()}),m.bw=function(a){var b=a.Df.d.length,c,d,f;c=0;for(d=this.b.$c.length;c<d;c++)f=this.b.$c[c],a.Df.B?0<=f.type.Ga.indexOf(a.Df)&&b++:f.type===a.Df&&b++;a.ya(b)},m.sw=function(a){a.ya(a.Df.Y().wc().length)},m.Kw=function(a){a.ya(this.uid)},m.ew=function(a){a.ya(this.mh())},m.Zq||(m.Zq=function(a){a.kc(JSON.stringify(this.b.cn(this,!0)))}));a&&(d.pr=function(){return this.visible},f.Ln=function(a){!a!==!this.visible&&(this.visible=a,this.b.pa=!0)},d.Zv=function(a,b){return $b(hb(100*
this.opacity),a,b)},f.Ew=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.pa=!0)},m.Opacity=function(a){a.G(hb(100*this.opacity))});v&&(d.gw=function(a){return a?this.i===a:!1},d.rw=function(a){var b=this.Y(),c=b.wc();if(!c.length)return!1;var d=c[0],f=d,e,k;e=1;for(k=c.length;e<k;e++)if(d=c[e],0===a){if(d.i.index>f.i.index||d.i.index===f.i.index&&d.wd()>f.wd())f=d}else if(d.i.index<f.i.index||d.i.index===f.i.index&&d.wd()<f.wd())f=d;b.Zh(f);return!0},f.Gn=function(){var a=
this.i,b=a.d;b.length&&b[b.length-1]===this||(a.Cg(this,!1),a.Ug(this,!1),this.b.pa=!0)},f.sr=function(){var a=this.i,b=a.d;b.length&&b[0]===this||(a.Cg(this,!1),a.$u(this),this.b.pa=!0)},f.mw=function(a){a&&a!=this.i&&(this.i.Cg(this,!0),this.i=a,a.Ug(this,!0),this.b.pa=!0)},f.Nw=function(a,b){var c=0===a;if(b){var d=b.Pt(this);d&&d.uid!==this.uid&&(this.i.index!==d.i.index&&(this.i.Cg(this,!0),this.i=d.i,d.i.Ug(this,!0)),this.i.Ju(this,d,c),this.b.pa=!0)}},m.jw=function(a){a.ya(this.i.Gp)},m.iw=
function(a){a.kc(this.i.name)},m.Mw=function(a){a.ya(this.wd())});q&&(f.Aw=function(a,b){if(this.b.n){var c=this.type.Jl(b);if(!(0>c)){var d=1===a;this.le[c]!==d&&(this.le[c]=d,this.qd(),this.b.pa=!0)}}},f.Bw=function(a,b,c){if(this.b.n){var d=this.type.Jl(a);0>d||(a=this.type.L[d],d=this.Ja[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.n.Zt(a.bb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.qc&&(this.b.pa=!0))))}})};Fb=function(){this.dl=this.Zk=!0;this.type.Ei=!0;this.b.pa=!0;var e,c,p=this.$k;e=0;for(c=
p.length;e<c;++e)p[e](this);this.i.Dc&&this.qa()};Gb=function(e){e&&this.$k.push(e)};Ib=function(){if(this.Zk){var e=this.Fa,c=this.Ab;e.set(this.x,this.y,this.x+this.width,this.y+this.height);e.offset(-this.Kb*this.width,-this.Lb*this.height);this.m?(e.offset(-this.x,-this.y),c.oq(e,this.m),c.offset(this.x,this.y),c.Tn(e)):c.ji(e);e.normalize();this.Zk=!1;this.Lv()}};var e=new va(0,0,0,0);Jb=function(){if(this.i.Dc){var n=this.i.xb,c=this.Fa;e.set(n.Rb(c.left),n.Sb(c.top),n.Rb(c.right),n.Sb(c.bottom));
this.Yb.eh(e)||(this.Yb.right<this.Yb.left?n.update(this,null,e):n.update(this,this.Yb,e),this.Yb.Zg(e),this.i.md=!0)}};Kb=function(){if(this.dl&&this.Jd){this.qa();var n=this.type.Ti,c=this.Fa;e.set(n.Rb(c.left),n.Sb(c.top),n.Rb(c.right),n.Sb(c.bottom));this.te.eh(e)||(this.te.right<this.te.left?n.update(this,null,e):n.update(this,this.te,e),this.te.Zg(e),this.dl=!1)}};Hb=function(e,c){return this.Fa.Ib(e,c)&&this.Ab.Ib(e,c)?this.fa&&!this.fa.lg()?(this.fa.Uf(this.width,this.height,this.m),this.fa.Ib(e-
this.x,c-this.y)):!0:!1};Bb=function(){this.type.Gk();return this.of};Lb=function(){this.i.An();return this.rd};Mb=function(){V(this.ba);var e,c,p,k=!0;e=0;for(c=this.le.length;e<c;e++)this.le[e]&&(p=this.type.L[e],this.ba.push(p),p.hd||(k=!1));this.Tq=!!this.ba.length;this.ae=k};Cb=function(){return"Inst"+this.bq};ob=function(e){if(e&&e.Nb&&e.type!=this){var c,p,k;c=0;for(p=e.siblings.length;c<p;c++)if(k=e.siblings[c],k.type==this)return k}e=this.Y().wc();return e.length?e[0]:null};pb=function(e){var c=
this.Y().wc();return c.length?c[e.mh()%c.length]:null};nb=function(){if(this.Hg&&!this.B){var e,c;e=0;for(c=this.d.length;e<c;e++)this.d[e].of=e;var p=e,k=this.b.$c;e=0;for(c=k.length;e<c;++e)k[e].type===this&&(k[e].of=p++);this.Hg=!1}};zb=function(e){if(e<this.d.length)return this.d[e];e-=this.d.length;var c=this.b.$c,p,k;p=0;for(k=c.length;p<k;++p)if(c[p].type===this){if(0===e)return c[p];--e}return null};qb=function(){return this.Oe[this.Ld]};rb=function(){this.Ld++;this.Ld===this.Oe.length?this.Oe.push(new mb(this)):
this.Oe[this.Ld].ka=!0};sb=function(){this.Ld++;this.Ld===this.Oe.length&&this.Oe.push(new mb(this));var e=this.Oe[this.Ld],c=this.Oe[this.Ld-1];c.ka?e.ka=!0:(e.ka=!1,Aa(e.d,c.d),Aa(e.da,c.da))};tb=function(){this.Ld--};ub=function(e){var c,p,k,u,b,a=0;if(!this.B)for(c=0,p=this.Ga.length;c<p;c++)for(b=this.Ga[c],k=0,u=b.Ya.length;k<u;k++){if(e===b.Ya[k].name)return this.F.lastBehIndex=a,b.Ya[k];a++}c=0;for(p=this.Ya.length;c<p;c++){if(e===this.Ya[c].name)return this.F.lastBehIndex=a,this.Ya[c];a++}return null};
vb=function(e){return this.qj(e)?this.F.lastBehIndex:-1};wb=function(e){var c,p;c=0;for(p=this.L.length;c<p;c++)if(this.L[c].name===e)return c;return-1};yb=function(){if(this.Nb&&!this.B){var e,c,p,k,u,b,a;this.Gk();b=this.Y();var v=b.ka,q=(e=this.b.Cb())&&e.tc&&e.tc.fd;e=0;for(c=this.cc.length;e<c;e++)if(u=this.cc[e],u!==this&&(u.Gk(),a=u.Y(),a.ka=v,!v)){V(a.d);p=0;for(k=b.d.length;p<k;++p)a.d[p]=u.to(b.d[p].of);if(q)for(V(a.da),p=0,k=b.da.length;p<k;++p)a.da[p]=u.to(b.da[p].of)}}};Ab=function(){return"Type"+
this.W};$b=function(e,c,p){if("undefined"===typeof e||"undefined"===typeof p)return!1;switch(c){case 0:return e===p;case 1:return e!==p;case 2:return e<p;case 3:return e<=p;case 4:return e>p;case 5:return e>=p;default:return!1}}})();var ic={};function mc(e){this.b=e}
(function(){function e(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function n(a){a=a.toLowerCase();return X.hasOwnProperty(a)&&X[a].length?X[a][0].vc():w.destination}function c(){return w.createGain?w.createGain():w.createGainNode()}function p(a){return w.createDelay?w.createDelay(a):w.createDelayNode(a)}function k(a){a.start?a.start(0):a.noteOn(0)}function u(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function b(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function a(a,
b,d,f,e,h){this.type="filter";this.gd=[a,b,d,f,e,h];this.Z=c();this.K=c();this.K.gain.value=h;this.I=c();this.I.gain.value=1-h;this.Za=w.createBiquadFilter();this.Za.type="number"===typeof this.Za.type?a:wc[a];this.Za.frequency.value=b;this.Za.detune&&(this.Za.detune.value=d);this.Za.Q.value=f;this.Za.gain.value=e;this.Z.connect(this.Za);this.Z.connect(this.I);this.Za.connect(this.K)}function v(a,b,d){this.type="delay";this.gd=[a,b,d];this.Z=c();this.K=c();this.K.gain.value=d;this.I=c();this.I.gain.value=
1-d;this.Uh=c();this.Ic=p(a);this.Ic.delayTime.value=a;this.bj=c();this.bj.gain.value=b;this.Z.connect(this.Uh);this.Z.connect(this.I);this.Uh.connect(this.K);this.Uh.connect(this.Ic);this.Ic.connect(this.bj);this.bj.connect(this.Uh)}function q(a,b,d,f){this.type="convolve";this.gd=[b,d,f];this.Z=c();this.K=c();this.K.gain.value=d;this.I=c();this.I.gain.value=1-d;this.$e=w.createConvolver();a&&(this.$e.normalize=b,this.$e.buffer=a);this.Z.connect(this.$e);this.Z.connect(this.I);this.$e.connect(this.K)}
function d(a,b,d,f,e){this.type="flanger";this.gd=[a,b,d,f,e];this.Z=c();this.I=c();this.I.gain.value=1-e/2;this.K=c();this.K.gain.value=e/2;this.ij=c();this.ij.gain.value=f;this.Ic=p(a+b);this.Ic.delayTime.value=a;this.sb=w.createOscillator();this.sb.frequency.value=d;this.hc=c();this.hc.gain.value=b;this.Z.connect(this.Ic);this.Z.connect(this.I);this.Ic.connect(this.K);this.Ic.connect(this.ij);this.ij.connect(this.Ic);this.sb.connect(this.hc);this.hc.connect(this.Ic.delayTime);k(this.sb)}function f(a,
b,d,f,e,h){this.type="phaser";this.gd=[a,b,d,f,e,h];this.Z=c();this.I=c();this.I.gain.value=1-h/2;this.K=c();this.K.gain.value=h/2;this.Za=w.createBiquadFilter();this.Za.type="number"===typeof this.Za.type?7:"allpass";this.Za.frequency.value=a;this.Za.detune&&(this.Za.detune.value=b);this.Za.Q.value=d;this.sb=w.createOscillator();this.sb.frequency.value=e;this.hc=c();this.hc.gain.value=f;this.Z.connect(this.Za);this.Z.connect(this.I);this.Za.connect(this.K);this.sb.connect(this.hc);this.hc.connect(this.Za.frequency);
k(this.sb)}function m(a){this.type="gain";this.gd=[a];this.aa=c();this.aa.gain.value=a}function g(a,b){this.type="tremolo";this.gd=[a,b];this.aa=c();this.aa.gain.value=1-b/2;this.sb=w.createOscillator();this.sb.frequency.value=a;this.hc=c();this.hc.gain.value=b/2;this.sb.connect(this.hc);this.hc.connect(this.aa.gain);k(this.sb)}function A(a,b){this.type="ringmod";this.gd=[a,b];this.Z=c();this.K=c();this.K.gain.value=b;this.I=c();this.I.gain.value=1-b;this.fi=c();this.fi.gain.value=0;this.sb=w.createOscillator();
this.sb.frequency.value=a;this.sb.connect(this.fi.gain);k(this.sb);this.Z.connect(this.fi);this.Z.connect(this.I);this.fi.connect(this.K)}function y(a,b,d,f,e){this.type="distortion";this.gd=[a,b,d,f,e];this.Z=c();this.dk=c();this.ck=c();this.uv(d,Math.pow(10,f/20));this.K=c();this.K.gain.value=e;this.I=c();this.I.gain.value=1-e;this.Kk=w.createWaveShaper();this.$i=new Float32Array(65536);this.Lt(a,b);this.Kk.$i=this.$i;this.Z.connect(this.dk);this.Z.connect(this.I);this.dk.connect(this.Kk);this.Kk.connect(this.ck);
this.ck.connect(this.K)}function G(a,b,c,d,f){this.type="compressor";this.gd=[a,b,c,d,f];this.aa=w.createDynamicsCompressor();try{this.aa.threshold.value=a,this.aa.knee.value=b,this.aa.ratio.value=c,this.aa.attack.value=d,this.aa.release.value=f}catch(e){}}function l(a,b){this.type="analyser";this.gd=[a,b];this.aa=w.createAnalyser();this.aa.fftSize=a;this.aa.smoothingTimeConstant=b;this.Jt=new Float32Array(this.aa.frequencyBinCount);this.rq=new Uint8Array(a);this.Yh=0}function r(){this.J=null;this.Nj=
0;this.Pe=[];this.Em=this.Dj=this.Cj=0}function z(a,b){this.src=a;this.U=E;this.dd=b;this.Di=!1;var d=this;this.Dm=this.Om=null;this.Bg=[];this.pk=0;this.En=this.wl=this.yq=this.Zj=!1;1===E&&b&&(this.U=0,this.Om=c());this.We=this.ea=null;var f;switch(this.U){case 0:this.ea=new Audio;this.ea.crossOrigin="anonymous";this.ea.addEventListener("canplaythrough",function(){d.En=!0});1===E&&w.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.yq=!0,this.ea.addEventListener("canplay",function(){d.Dm||
(d.Dm=w.createMediaElementSource(d.ea),d.Dm.connect(d.Om))}));this.ea.autoplay=!1;this.ea.Tw="auto";this.ea.src=a;break;case 1:f=new XMLHttpRequest;f.open("GET",a,!0);f.responseType="arraybuffer";f.onload=function(){d.We=f.response;d.ys()};f.onerror=function(){d.wl=!0};f.send();break;case 2:this.ea=!0;break;case 3:this.ea=!0}}function h(a,b){var d=this;this.tag=b;this.mc=this.Qd=!0;this.src=a.src;this.buffer=a;this.U=E;this.dd=a.dd;this.playbackRate=1;this.hg=!0;this.ec=this.Bc=!1;this.Zb=0;this.Bh=
this.ng=this.yd=!1;this.volume=1;this.Mm=function(){d.ec||d.Bc||this!==d.Ci||(d.hg=!0,d.mc=!0,T=d.tag,O.trigger(mc.prototype.k.Rg,H))};this.Ci=null;this.jg=1===L&&!this.dd||2===L;this.yg=1;this.startTime=this.jg?O.qb.X:O.ie.X;this.Ua=this.eb=null;this.Ad=!1;this.Ta=null;this.Qp=this.Pp=this.Op=this.Np=this.Sp=this.Rp=0;this.j=null;var f=!1;1!==this.U||0!==this.buffer.U||this.buffer.yq||(this.U=0);switch(this.U){case 0:this.dd?(this.j=a.ea,f=!a.Di,a.Di=!0):(this.j=new Audio,this.j.crossOrigin="anonymous",
this.j.autoplay=!1,this.j.src=a.ea.src,f=!0);f&&this.j.addEventListener("ended",function(){T=d.tag;d.mc=!0;O.trigger(mc.prototype.k.Rg,H)});break;case 1:this.eb=c();this.eb.connect(n(b));1===this.buffer.U?a.ea&&(this.j=w.createBufferSource(),this.j.buffer=a.ea,this.j.connect(this.eb)):(this.j=this.buffer.ea,this.buffer.Om.connect(this.eb),this.buffer.Di||(this.buffer.Di=!0,this.buffer.ea.addEventListener("ended",function(){T=d.tag;d.mc=!0;O.trigger(mc.prototype.k.Rg,H)})));break;case 2:this.j=new window.Media(M+
this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.hg=!0,d.mc=!0,T=d.tag,O.trigger(mc.prototype.k.Rg,H))});break;case 3:this.j=!0}}function t(a,b){X.hasOwnProperty(a)?X[a].push(b):X[a]=[b];var c,d,f,e,h=w.destination;if(X.hasOwnProperty(a)&&(f=X[a],f.length))for(h=f[0].vc(),c=0,d=f.length;c<d;c++)e=f[c],c+1===d?e.Fc(w.destination):e.Fc(f[c+1].vc());V(Ja);if(a.length)for(c=0,d=D.length;c<d;c++)f=D[c],ib(a,f.tag)&&Ja.push(f);else J&&!J.gg()&&(V(Ja),Ja[0]=J);c=0;for(d=Ja.length;c<d;c++)Ja[c].gv(h);
da&&xb===a&&(da.disconnect(),da.connect(h))}function x(){}function B(){}var I=mc.prototype;I.Da=function(a){this.na=a;this.b=a.b};I.Da.prototype.V=function(){};var O=null,H=null,T="",M="",E=0,w=null,U=[],D=[],J=null,K=!1,L=0,N=!1,F=1,Q=0,P=0,na=1,R=1,ta=10,ga=1E4,ua=1,da=null,xb="",Pa=!1,Qa=[],X={},wc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");a.prototype.Fc=function(a){this.K.disconnect();this.K.connect(a);this.I.disconnect();this.I.connect(a)};a.prototype.remove=
function(){this.Z.disconnect();this.Za.disconnect();this.K.disconnect();this.I.disconnect()};a.prototype.vc=function(){return this.Z};v.prototype.Fc=function(a){this.K.disconnect();this.K.connect(a);this.I.disconnect();this.I.connect(a)};v.prototype.remove=function(){this.Z.disconnect();this.Uh.disconnect();this.Ic.disconnect();this.bj.disconnect();this.K.disconnect();this.I.disconnect()};v.prototype.vc=function(){return this.Z};q.prototype.Fc=function(a){this.K.disconnect();this.K.connect(a);this.I.disconnect();
this.I.connect(a)};q.prototype.remove=function(){this.Z.disconnect();this.$e.disconnect();this.K.disconnect();this.I.disconnect()};q.prototype.vc=function(){return this.Z};d.prototype.Fc=function(a){this.I.disconnect();this.I.connect(a);this.K.disconnect();this.K.connect(a)};d.prototype.remove=function(){this.Z.disconnect();this.Ic.disconnect();this.sb.disconnect();this.hc.disconnect();this.I.disconnect();this.K.disconnect();this.ij.disconnect()};d.prototype.vc=function(){return this.Z};f.prototype.Fc=
function(a){this.I.disconnect();this.I.connect(a);this.K.disconnect();this.K.connect(a)};f.prototype.remove=function(){this.Z.disconnect();this.Za.disconnect();this.sb.disconnect();this.hc.disconnect();this.I.disconnect();this.K.disconnect()};f.prototype.vc=function(){return this.Z};m.prototype.Fc=function(a){this.aa.disconnect();this.aa.connect(a)};m.prototype.remove=function(){this.aa.disconnect()};m.prototype.vc=function(){return this.aa};g.prototype.Fc=function(a){this.aa.disconnect();this.aa.connect(a)};
g.prototype.remove=function(){this.sb.disconnect();this.hc.disconnect();this.aa.disconnect()};g.prototype.vc=function(){return this.aa};A.prototype.Fc=function(a){this.K.disconnect();this.K.connect(a);this.I.disconnect();this.I.connect(a)};A.prototype.remove=function(){this.sb.disconnect();this.fi.disconnect();this.Z.disconnect();this.K.disconnect();this.I.disconnect()};A.prototype.vc=function(){return this.Z};y.prototype.uv=function(a,b){.01>a&&(a=.01);this.dk.gain.value=a;this.ck.gain.value=Math.pow(1/
a,.6)*b};y.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};y.prototype.Lt=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),f=0,e=0;32768>e;++e)f=e/32768,f=this.shape(f,c,d),this.$i[32768+e]=f,this.$i[32768-e-1]=-f};y.prototype.Fc=function(a){this.K.disconnect();this.K.connect(a);this.I.disconnect();this.I.connect(a)};y.prototype.remove=function(){this.Z.disconnect();this.dk.disconnect();this.Kk.disconnect();this.ck.disconnect();
this.K.disconnect();this.I.disconnect()};y.prototype.vc=function(){return this.Z};G.prototype.Fc=function(a){this.aa.disconnect();this.aa.connect(a)};G.prototype.remove=function(){this.aa.disconnect()};G.prototype.vc=function(){return this.aa};l.prototype.cb=function(){this.aa.getFloatFrequencyData(this.Jt);this.aa.getByteTimeDomainData(this.rq);for(var a=this.aa.fftSize,b=0,c=this.Yh=0,d=0;b<a;b++)d=(this.rq[b]-128)/128,0>d&&(d=-d),this.Yh<d&&(this.Yh=d),c+=d*d;this.Yh=e(this.Yh);e(Math.sqrt(c/a))};
l.prototype.Fc=function(a){this.aa.disconnect();this.aa.connect(a)};l.prototype.remove=function(){this.aa.disconnect()};l.prototype.vc=function(){return this.aa};r.prototype.gi=function(a){if(this.J=a)this.Cj=this.J.x,this.Dj=this.J.y;V(this.Pe)};r.prototype.tj=function(){return!!this.J};r.prototype.cb=function(a){this.J&&0!==a&&(this.Em=Ka(this.Cj,this.Dj,this.J.x,this.J.y),a=Ta(this.Cj,this.Dj,this.J.x,this.J.y)/a,4>this.Pe.length||this.Pe.shift(),this.Pe.push(a),this.Cj=this.J.x,this.Dj=this.J.y)};
r.prototype.wo=function(){if(!this.Pe.length)return 0;var a,b,c=0;a=0;for(b=this.Pe.length;a<b;a++)c+=this.Pe[a];return c/this.Pe.length};r.prototype.Ol=function(){return Math.cos(this.Em)*this.wo()};r.prototype.Pl=function(){return Math.sin(this.Em)*this.wo()};var tc=!1;z.prototype.ys=function(){if(!this.ea&&this.We){var a=this;if(w.decodeAudioData)w.decodeAudioData(this.We,function(b){a.ea=b;a.We=null;var c,d,f;if(ha(a.$j)||N)ha(a.Vi)||(c=a.Vi.$e,c.normalize=a.Fp,c.buffer=b);else if(a.Bg.length){c=
0;for(d=a.Bg.length;c<d;c++){b=a.Bg[c];f=new h(a,b.Bq);f.kn(!0);if("undefined"!==typeof b.Hp&&(b.J=O.eg(b.Hp),!b.J))continue;if(b.J){var e=Oa(b.J.x,b.J.y,-b.J.i.Sa(),Q,P,!0),g=Oa(b.J.x,b.J.y,-b.J.i.Sa(),Q,P,!1);f.jn(e,g,Ea(b.J.m-b.J.i.Sa()),b.Vl,b.Fm,b.Hm);f.gi(b.J)}else f.jn(b.x,b.y,b.as,b.Vl,b.Fm,b.Hm);f.play(a.Bm,a.Cn,a.pk);a.Zj&&f.pause();D.push(f)}V(a.Bg)}else f=new h(a,a.$j||""),f.play(a.Bm,a.Cn,a.pk),a.Zj&&f.pause(),D.push(f)},function(){a.wl=!0});else if(this.ea=w.createBuffer(this.We,!1),
this.We=null,ha(this.$j)||N)ha(this.Vi)||(b=this.Vi.$e,b.normalize=this.Fp,b.buffer=this.ea);else{var b=new h(this,this.$j);b.play(this.Bm,this.Cn,this.pk);this.Zj&&b.pause();D.push(b)}}};z.prototype.Lo=function(){switch(this.U){case 0:var a=4<=this.ea.readyState;a&&(this.En=!0);return a||this.En;case 1:return!!this.We||!!this.ea;case 2:return!0;case 3:return!0}return!1};z.prototype.zu=function(){switch(this.U){case 0:return this.Lo();case 1:return!!this.ea;case 2:return!0;case 3:return!0}return!1};
z.prototype.qu=function(){switch(this.U){case 0:return!!this.ea.error;case 1:return this.wl}return!1};h.prototype.gg=function(){switch(this.U){case 0:return this.j.ended;case 1:return 1===this.buffer.U?!this.Qd&&!this.mc&&this.j.loop||this.ec?!1:this.hg:this.j.ended;case 2:return this.hg;case 3:!0}return!0};h.prototype.qs=function(){return this.Qd||this.mc?!0:this.gg()};h.prototype.kn=function(a){1===E&&(!this.Ad&&a?this.eb&&(this.Ua||(this.Ua=w.createPanner(),this.Ua.panningModel="number"===typeof this.Ua.panningModel?
na:["equalpower","HRTF","soundfield"][na],this.Ua.distanceModel="number"===typeof this.Ua.distanceModel?R:["linear","inverse","exponential"][R],this.Ua.refDistance=ta,this.Ua.maxDistance=ga,this.Ua.rolloffFactor=ua),this.eb.disconnect(),this.eb.connect(this.Ua),this.Ua.connect(n(this.tag)),this.Ad=!0):this.Ad&&!a&&this.eb&&(this.Ua.disconnect(),this.eb.disconnect(),this.eb.connect(n(this.tag)),this.Ad=!1))};h.prototype.jn=function(a,b,c,d,f,e){this.Ad&&1===E&&(this.Ua.setPosition(a,b,0),this.Ua.setOrientation(Math.cos(W(c)),
Math.sin(W(c)),0),this.Ua.coneInnerAngle=d,this.Ua.coneOuterAngle=f,this.Ua.coneOuterGain=e,this.Rp=a,this.Sp=b,this.Np=c,this.Op=d,this.Pp=f,this.Qp=e)};h.prototype.gi=function(a){this.Ad&&1===E&&(this.Ta||(this.Ta=new r),this.Ta.gi(a))};h.prototype.cb=function(a){if(this.Ad&&1===E&&this.Ta&&this.Ta.tj()&&this.ig()){this.Ta.cb(a);a=this.Ta.J;var b=Oa(a.x,a.y,-a.i.Sa(),Q,P,!0),c=Oa(a.x,a.y,-a.i.Sa(),Q,P,!1);this.Ua.setPosition(b,c,0);b=0;"undefined"!==typeof this.Ta.J.m&&(b=a.m-a.i.Sa(),this.Ua.setOrientation(Math.cos(b),
Math.sin(b),0));b=Oa(this.Ta.Ol(),this.Ta.Pl(),-a.i.Sa(),0,0,!0);c=Oa(this.Ta.Ol(),this.Ta.Pl(),-a.i.Sa(),0,0,!1);this.Ua.setVelocity(b,c,0)}};h.prototype.play=function(a,b,c){var d=this.j;this.yd=a;this.volume=b;c=c||0;switch(this.U){case 0:1!==d.playbackRate&&(d.playbackRate=1);d.volume!==b*F&&(d.volume=b*F);d.loop!==a&&(d.loop=a);d.muted&&(d.muted=!1);if(d.currentTime!==c)try{d.currentTime=c}catch(f){}if(this.dd&&Pa&&!O.Mb)Qa.push(this);else try{this.j.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.yg=1;if(1===this.buffer.U)this.eb.gain.value=b*F,this.Qd||(this.j=w.createBufferSource(),this.j.buffer=this.buffer.ea,this.j.connect(this.eb)),this.j.onended=this.Mm,this.Ci=this.j,this.j.loop=a,this.hg=!1,0===c?k(this.j):u(this.j,c,this.lf());else{1!==d.playbackRate&&(d.playbackRate=1);d.loop!==a&&(d.loop=a);d.volume=b*F;if(d.currentTime!==c)try{d.currentTime=c}catch(h){}this.dd&&Pa&&!O.Mb?Qa.push(this):d.play()}break;case 2:(!this.Qd&&this.mc||
0!==c)&&d.seekTo(c);d.play();this.hg=!1;break;case 3:O.Wb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.jg?O.qb.X:O.ie.X)-c;this.ec=this.mc=this.Qd=!1};h.prototype.stop=function(){switch(this.U){case 0:this.j.paused||this.j.pause();break;case 1:1===this.buffer.U?b(this.j):this.j.paused||this.j.pause();break;case 2:this.j.stop();break;case 3:O.Wb&&AppMobi.context.stopSound(this.src)}this.mc=!0;this.ec=!1};h.prototype.pause=function(){if(!(this.Qd||
this.mc||this.gg()||this.ec)){switch(this.U){case 0:this.j.paused||this.j.pause();break;case 1:1===this.buffer.U?(this.Zb=this.Ll(),this.yd&&(this.Zb=this.Zb%this.lf()),this.ec=!0,b(this.j)):this.j.paused||this.j.pause();break;case 2:this.j.pause();break;case 3:O.Wb&&AppMobi.context.stopSound(this.src)}this.ec=!0}};h.prototype.kv=function(){if(!(this.Qd||this.mc||this.gg())&&this.ec){switch(this.U){case 0:this.j.play();break;case 1:1===this.buffer.U?(this.j=w.createBufferSource(),this.j.buffer=this.buffer.ea,
this.j.connect(this.eb),this.j.onended=this.Mm,this.Ci=this.j,this.j.loop=this.yd,this.eb.gain.value=F*this.volume*this.yg,this.startTime=(this.jg?O.qb.X:O.ie.X)-this.Zb,u(this.j,this.Zb,this.lf())):this.j.play();break;case 2:this.j.play();break;case 3:O.Wb&&AppMobi.context.resumeSound(this.src)}this.ec=!1}};h.prototype.seek=function(a){if(!(this.Qd||this.mc||this.gg()))switch(this.U){case 0:try{this.j.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.U)this.ec?this.Zb=a:(this.pause(),this.Zb=
a,this.kv());else try{this.j.currentTime=a}catch(c){}break;case 3:O.Wb&&AppMobi.context.seekSound(this.src,a)}};h.prototype.gv=function(a){1===this.U&&(this.Ad?(this.Ua.disconnect(),this.Ua.connect(a)):(this.eb.disconnect(),this.eb.connect(a)))};h.prototype.lf=function(){switch(this.U){case 0:if("undefined"!==typeof this.j.duration)return this.j.duration;break;case 1:return this.buffer.ea.duration;case 2:return this.j.getDuration();case 3:if(O.Wb)return AppMobi.context.getDurationSound(this.src)}return 0};
h.prototype.Ll=function(){var a=this.lf(),b=0;switch(this.U){case 0:"undefined"!==typeof this.j.currentTime&&(b=this.j.currentTime);break;case 1:if(1===this.buffer.U){if(this.ec)return this.Zb;b=(this.jg?O.qb.X:O.ie.X)-this.startTime}else"undefined"!==typeof this.j.currentTime&&(b=this.j.currentTime);break;case 3:O.Wb&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.yd&&b>a&&(b=a);return b};h.prototype.ig=function(){return!this.ec&&!this.Qd&&!this.mc&&!this.gg()};h.prototype.Jv=function(){var a=
this.volume*F;isFinite(a)||(a=0);switch(this.U){case 0:"undefined"!==typeof this.j.volume&&this.j.volume!==a&&(this.j.volume=a);break;case 1:1===this.buffer.U?this.eb.gain.value=a*this.yg:"undefined"!==typeof this.j.volume&&this.j.volume!==a&&(this.j.volume=a)}};h.prototype.fj=function(a){switch(this.U){case 0:this.j.muted!==!!a&&(this.j.muted=!!a);break;case 1:1===this.buffer.U?(this.yg=a?0:1,this.eb.gain.value=F*this.volume*this.yg):this.j.muted!==!!a&&(this.j.muted=!!a)}};h.prototype.wv=function(){this.ng=
!0;this.fj(this.ng||this.Bh)};h.prototype.lq=function(a){this.Bh=!!a;this.fj(this.ng||this.Bh)};h.prototype.Qq=function(){var a=this.playbackRate;this.jg&&(a*=O.Lf);switch(this.U){case 0:this.j.playbackRate!==a&&(this.j.playbackRate=a);break;case 1:1===this.buffer.U?this.j.playbackRate.value!==a&&(this.j.playbackRate.value=a):this.j.playbackRate!==a&&(this.j.playbackRate=a)}};h.prototype.yv=function(a){switch(this.U){case 0:a?this.ig()?(this.Bc=!0,this.j.pause()):this.Bc=!1:this.Bc&&(this.j.play(),
this.Bc=!1);break;case 1:a?this.ig()?(this.Bc=!0,1===this.buffer.U?(this.Zb=this.Ll(),this.yd&&(this.Zb=this.Zb%this.lf()),b(this.j)):this.j.pause()):this.Bc=!1:this.Bc&&(1===this.buffer.U?(this.j=w.createBufferSource(),this.j.buffer=this.buffer.ea,this.j.connect(this.eb),this.j.onended=this.Mm,this.Ci=this.j,this.j.loop=this.yd,this.eb.gain.value=F*this.volume*this.yg,this.startTime=(this.jg?O.qb.X:O.ie.X)-this.Zb,u(this.j,this.Zb,this.lf())):this.j.play(),this.Bc=!1);break;case 2:a?this.ig()?(this.j.pause(),
this.Bc=!0):this.Bc=!1:this.Bc&&(this.Bc=!1,this.j.play())}};I.ra=function(a){this.type=a;O=this.b=a.b;H=this;this.Pb=null;this.Lh=-600;!(this.b.Dh||this.b.uj&&(this.b.vh||this.b.vj))||this.b.wh||this.b.Ea||this.b.fm||(Pa=!0);w=null;"undefined"!==typeof AudioContext?(E=1,w=new AudioContext):"undefined"!==typeof webkitAudioContext&&(E=1,w=new webkitAudioContext);(this.b.Dh&&1===E||Pa)&&document.addEventListener("touchstart",function(){var a,b,c;!tc&&w&&(a=w.createBuffer(1,1,22050),b=w.createBufferSource(),
b.buffer=a,b.connect(w.destination),k(b),tc=!0);if(Pa){if(!N)for(a=0,b=Qa.length;a<b;++a)c=Qa[a],c.mc||c.ec||c.j.play();V(Qa)}},!0);1!==E&&(this.b.Ae&&"undefined"!==typeof window.Media?E=2:this.b.Ko&&(E=3));2===E&&(M=location.href,a=M.lastIndexOf("/"),-1<a&&(M=M.substr(0,a+1)),M=M.replace("file://",""));if(this.b.No&&this.b.Au&&"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.Te(this);
else{if(this.b.Wb)K=this.b.uj;else try{K=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){K=!1}this.b.ti(this)}};var oa=I.ra.prototype;oa.V=function(){this.b.Tf=this;L=this.p[0];this.$d=this.p[1];this.Wu=0!==this.p[2];na=this.p[3];R=this.p[4];this.Lh=-this.p[5];ta=this.p[6];ga=this.p[7];ua=this.p[8];this.Pb=new r;var a=this.b.D||this.b.width,b=this.b.C||this.b.height;1===E&&("undefined"!==typeof w.listener.dopplerFactor&&(w.listener.dopplerFactor=0),w.listener.setPosition(a/2,b/2,
this.Lh),w.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){da&&da.disconnect();xb=b.toLowerCase();da=w.createMediaStreamSource(a);da.connect(n(xb))});this.b.cs(function(a){H.Su(a)});var c=this;this.b.Vk(function(a){c.Im(a)})};oa.Im=function(a){var b,c,d;b=0;for(c=D.length;b<c;b++)d=D[b],d.Ta&&d.Ta.J===a&&(d.Ta.J=null,d.Ad&&d.ig()&&d.yd&&d.stop());this.Pb.J===a&&(this.Pb.J=null)};oa.Fb=function(){var a={silent:N,masterVolume:F,listenerZ:this.Lh,listenerUid:this.Pb.tj()?
this.Pb.J.uid:-1,playing:[],effects:{}},b=a.playing,c,d,f,e,h,g;c=0;for(d=D.length;c<d;c++)f=D[c],!f.ig()||3===this.$d||f.dd&&1===this.$d||!f.dd&&2===this.$d||(e=f.Ll(),f.yd&&(e=e%f.lf()),e={tag:f.tag,buffersrc:f.buffer.src,is_music:f.dd,playbackTime:e,volume:f.volume,looping:f.yd,muted:f.ng,playbackRate:f.playbackRate,paused:f.ec,resume_position:f.Zb},f.Ad&&(e.pan={},g=e.pan,f.Ta&&f.Ta.tj()?g.objUid=f.Ta.J.uid:(g.x=f.Rp,g.y=f.Sp,g.a=f.Np),g.ia=f.Op,g.oa=f.Pp,g.og=f.Qp),b.push(e));b=a.effects;for(h in X)if(X.hasOwnProperty(h)){f=
[];c=0;for(d=X[h].length;c<d;c++)f.push({type:X[h][c].type,params:X[h][c].gd});b[h]=f}return a};var Ra=[];oa.Xb=function(b){var c=b.silent;F=b.masterVolume;this.Lh=b.listenerZ;this.Pb.gi(null);var e=b.listenerUid;-1!==e&&(this.Pb.Nj=e,Ra.push(this.Pb));var e=b.playing,h,k,n,p,u,z,x,I,B,w,H;if(3!==this.$d)for(h=0,k=D.length;h<k;h++)B=D[h],B.dd&&1===this.$d||(B.dd||2!==this.$d)&&B.stop();for(u in X)if(X.hasOwnProperty(u))for(h=0,k=X[u].length;h<k;h++)X[u][h].remove();Wa(X);for(u in b.effects)if(b.effects.hasOwnProperty(u))for(z=
b.effects[u],h=0,k=z.length;h<k;h++)switch(n=z[h].type,w=z[h].params,n){case "filter":t(u,new a(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "delay":t(u,new v(w[0],w[1],w[2]));break;case "convolve":n=w[2];B=this.pj(n,!1);B.ea?n=new q(B.ea,w[0],w[1],n):(n=new q(null,w[0],w[1],n),B.Fp=w[0],B.Vi=n);t(u,n);break;case "flanger":t(u,new d(w[0],w[1],w[2],w[3],w[4]));break;case "phaser":t(u,new f(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "gain":t(u,new m(w[0]));break;case "tremolo":t(u,new g(w[0],w[1]));break;
case "ringmod":t(u,new A(w[0],w[1]));break;case "distortion":t(u,new y(w[0],w[1],w[2],w[3],w[4]));break;case "compressor":t(u,new G(w[0],w[1],w[2],w[3],w[4]));break;case "analyser":t(u,new l(w[0],w[1]))}h=0;for(k=e.length;h<k;h++)3===this.$d||(b=e[h],n=b.buffersrc,p=b.is_music,u=b.tag,z=b.playbackTime,x=b.looping,I=b.volume,H=(w=b.pan)&&w.hasOwnProperty("objUid")?w.objUid:-1,p&&1===this.$d)||!p&&2===this.$d||((B=this.po(n,u,p,x,I))?(B.Zb=b.resume_position,B.kn(!!w),B.play(x,I,z),B.Qq(),B.Jv(),B.fj(B.ng||
B.Bh),b.paused&&B.pause(),b.muted&&B.wv(),B.fj(B.ng||B.Bh),w&&(-1!==H?(B.Ta=B.Ta||new r,B.Ta.Nj=H,Ra.push(B.Ta)):B.jn(w.x,w.y,w.a,w.ia,w.oa,w.og))):(B=this.pj(n,p),B.pk=z,B.Zj=b.paused,w&&(-1!==H?B.Bg.push({Hp:H,Vl:w.ia,Fm:w.oa,Hm:w.og,Bq:u}):B.Bg.push({x:w.x,y:w.y,as:w.a,Vl:w.ia,Fm:w.oa,Hm:w.og,Bq:u}))));if(c&&!N){h=0;for(k=D.length;h<k;h++)D[h].lq(!0);N=!0}else if(!c&&N){h=0;for(k=D.length;h<k;h++)D[h].lq(!1);N=!1}};oa.td=function(){var a,b,c,d;a=0;for(b=Ra.length;a<b;a++)c=Ra[a],d=this.b.eg(c.Nj),
c.gi(d),c.Nj=-1,d&&(Q=d.x,P=d.y);V(Ra)};oa.Su=function(a){if(!this.Wu){!a&&w&&w.resume&&w.resume();var b,c;b=0;for(c=D.length;b<c;b++)D[b].yv(a);a&&w&&w.suspend&&w.suspend()}};oa.cb=function(){var a=this.b.df,b,c,d;b=0;for(c=D.length;b<c;b++)d=D[b],d.cb(a),0!==L&&d.Qq();var f,e;for(f in X)if(X.hasOwnProperty(f))for(d=X[f],b=0,c=d.length;b<c;b++)e=d[b],e.cb&&e.cb();1===E&&this.Pb.tj()&&(this.Pb.cb(a),Q=this.Pb.J.x,P=this.Pb.J.y,w.listener.setPosition(this.Pb.J.x,this.Pb.J.y,this.Lh),w.listener.setVelocity(this.Pb.Ol(),
this.Pb.Pl(),0))};var Sa=[];oa.xv=function(a){var b,c,d,f,e,h=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],f=d[0],d=2*d[1],(e=4<f.length&&".ogg"===f.substr(f.length-4))&&K||!e&&!K)Sa.push({filename:f,size:d,J:null}),h+=d;return h};oa.Dv=function(){var a,b,c,d;a=0;for(b=Sa.length;a<b;++a)c=Sa[a],d=this.b.yl+c.filename,c.J=this.pj(d,!1)};oa.Wt=function(){var a=0,b,c,d;b=0;for(c=Sa.length;b<c;++b)d=Sa[b],d.J.zu()||d.J.qu()||this.b.Ea||this.b.vj?a+=d.size:d.J.Lo()&&(a+=Math.floor(d.size/2));return a};oa.pj=
function(a,b){var c,d,f,e=null;c=0;for(d=U.length;c<d;c++)if(f=U[c],f.src===a){e=f;break}e||(e=new z(a,b),U.push(e));return e};oa.po=function(a,b,c,d,f){var e,g,l;e=0;for(g=D.length;e<g;e++)if(l=D[e],l.src===a&&(l.qs()||c))return l.tag=b,l;a=this.pj(a,c);if(!a.ea)return"<preload>"!==b&&(a.$j=b,a.Bm=d,a.Cn=f),null;l=new h(a,b);D.push(l);return l};var Ja=[];x.prototype.Rg=function(a){return ib(T,a)};I.k=new x;B.prototype.Qr=function(a,b,c,d,f){!N&&(d=Math.pow(10,d/20),isFinite(d)||(d=0),0>d&&(d=0),
1<d&&(d=1),J=this.po(this.b.yl+b.toLowerCase()+(K?".ogg":".m4a"),f,1===a,0!==c,d))&&(J.kn(!1),J.play(0!==c,d))};I.ca=new B;I.Ra=new function(){}})();function nc(e){this.b=e}
(function(){function e(){}function n(){}var c=nc.prototype;c.Da=function(c){this.na=c;this.b=c.b};c.Da.prototype.V=function(){};c.ra=function(c){this.type=c;this.b=c.b};var p=c.ra.prototype;p.V=function(){this.b.Ea?ea("[Construct 2] Button plugin not supported on this platform - the object will not be created"):(this.uh=1===this.p[0],this.Kc=document.createElement("input"),this.ma=this.uh?document.createElement("label"):this.Kc,this.Bj=null,this.Kc.type=this.uh?"checkbox":"button",this.Kc.id=this.p[6],
jQuery(this.ma).appendTo(this.b.Oi?this.b.Oi:"body"),this.uh?(jQuery(this.Kc).appendTo(this.ma),this.Bj=document.createTextNode(this.p[1]),jQuery(this.ma).append(this.Bj),this.Kc.checked=0!==this.p[7],jQuery(this.ma).css("font-family","sans-serif"),jQuery(this.ma).css("display","inline-block"),jQuery(this.ma).css("color","black")):this.Kc.value=this.p[1],this.ma.title=this.p[2],this.Kc.disabled=0===this.p[4],this.hs=0!==this.p[5],this.ff=!1,0===this.p[3]&&(jQuery(this.ma).hide(),this.visible=!1,this.ff=
!0),this.Kc.onclick=function(c){return function(e){e.stopPropagation();c.b.Mb=!0;c.b.trigger(nc.prototype.k.Hn,c);c.b.Mb=!1}}(this),this.ma.addEventListener("touchstart",function(c){c.stopPropagation()},!1),this.ma.addEventListener("touchmove",function(c){c.stopPropagation()},!1),this.ma.addEventListener("touchend",function(c){c.stopPropagation()},!1),jQuery(this.ma).mousedown(function(c){c.stopPropagation()}),jQuery(this.ma).mouseup(function(c){c.stopPropagation()}),jQuery(this.ma).keydown(function(c){c.stopPropagation()}),
jQuery(this.ma).keyup(function(c){c.stopPropagation()}),this.bp=this.cp=this.Uo=this.Yo=this.$o=this.Wo=0,this.Rq(!0),this.b.ti(this))};p.Fb=function(){var c={tooltip:this.ma.title,disabled:!!this.Kc.disabled};this.uh?(c.checked=!!this.Kc.checked,c.text=this.Bj.nodeValue):c.text=this.ma.value;return c};p.Xb=function(c){this.ma.title=c.tooltip;this.Kc.disabled=c.disabled;this.uh?(this.Kc.checked=c.checked,this.Bj.nodeValue=c.text):this.ma.value=c.text};p.Zd=function(){this.b.Ea||(jQuery(this.ma).remove(),
this.ma=null)};p.cb=function(){this.Rq()};p.Rq=function(c){if(!this.b.Ea){var e=this.i.ta(this.x,this.y,!0),b=this.i.ta(this.x,this.y,!1),a=this.i.ta(this.x+this.width,this.y+this.height,!0),n=this.i.ta(this.x+this.width,this.y+this.height,!1),q=this.b.width/this.b.devicePixelRatio,d=this.b.height/this.b.devicePixelRatio;!this.visible||!this.i.visible||0>=a||0>=n||e>=q||b>=d?(this.ff||jQuery(this.ma).hide(),this.ff=!0):(1>e&&(e=1),1>b&&(b=1),a>=q&&(a=q-1),n>=d&&(n=d-1),q=window.innerWidth,d=window.innerHeight,
c||this.Wo!==e||this.$o!==b||this.Yo!==a||this.Uo!==n||this.cp!==q||this.bp!==d?(this.Wo=e,this.$o=b,this.Yo=a,this.Uo=n,this.cp=q,this.bp=d,this.ff&&(jQuery(this.ma).show(),this.ff=!1),c=Math.round(e)+jQuery(this.b.canvas).offset().left,q=Math.round(b)+jQuery(this.b.canvas).offset().top,jQuery(this.ma).css("position","absolute"),jQuery(this.ma).offset({left:c,top:q}),jQuery(this.ma).width(Math.round(a-e)),jQuery(this.ma).height(Math.round(n-b)),this.hs&&jQuery(this.ma).css("font-size",this.i.Vb(!0)/
this.b.devicePixelRatio-.2+"em")):this.ff&&(jQuery(this.ma).show(),this.ff=!1))}};p.Jc=function(){};p.Jb=function(){};e.prototype.Hn=function(){return!0};c.k=new e;n.prototype.Ln=function(c){this.b.Ea||(this.visible=0!==c)};c.ca=new n;c.Ra=new function(){}})();function oc(e){this.b=e}
(function(){function e(){}var n=oc.prototype;n.Da=function(c){this.na=c;this.b=c.b};n.Da.prototype.V=function(){};n.ra=function(c){this.type=c;this.b=c.b;this.Aj=Array(256);this.Ik=Array(256);this.Se=0};var c=n.ra.prototype;c.V=function(){var c=this;this.b.Ea||(jQuery(document).keydown(function(e){c.Jm(e)}),jQuery(document).keyup(function(e){c.Km(e)}))};var p=[32,33,34,35,36,37,38,39,40,44];c.Jm=function(c){var e=!1;window!=window.top&&-1<p.indexOf(c.which)&&(c.preventDefault(),e=!0,c.stopPropagation());
if(this.Aj[c.which])this.Ik[c.which]&&!e&&c.preventDefault();else{this.Aj[c.which]=!0;this.Se=c.which;this.b.Mb=!0;this.b.trigger(oc.prototype.k.yr,this);var b=this.b.trigger(oc.prototype.k.In,this),a=this.b.trigger(oc.prototype.k.Gr,this);this.b.Mb=!1;if(b||a)this.Ik[c.which]=!0,e||c.preventDefault()}};c.Km=function(c){this.Aj[c.which]=!1;this.Se=c.which;this.b.Mb=!0;this.b.trigger(oc.prototype.k.Ar,this);var e=this.b.trigger(oc.prototype.k.Ir,this),b=this.b.trigger(oc.prototype.k.Hr,this);this.b.Mb=
!1;if(e||b||this.Ik[c.which])this.Ik[c.which]=!0,c.preventDefault()};c.Fb=function(){return{triggerKey:this.Se}};c.Xb=function(c){this.Se=c.triggerKey};e.prototype.nr=function(c){return this.Aj[c]};e.prototype.In=function(c){return c===this.Se};e.prototype.yr=function(){return!0};e.prototype.Ar=function(){return!0};e.prototype.Ir=function(c){return c===this.Se};e.prototype.Gr=function(c){return c===this.Se};e.prototype.Hr=function(c){return c===this.Se};n.k=new e;n.ca=new function(){};n.Ra=new function(){}})();
function pc(e){this.b=e}
(function(){function e(){}function n(){}var c=pc.prototype;c.Da=function(c){this.na=c;this.b=c.b};c.Da.prototype.V=function(){};c.ra=function(c){this.type=c;this.b=c.b;this.al=Array(4);this.Eq=this.Dk=this.Jg=this.Ie=this.He=0;this.Sl=!1};var p=c.ra.prototype;p.V=function(){var c=this;if(!this.b.Ea){jQuery(document).mousemove(function(a){c.Pu(a)});jQuery(document).mousedown(function(a){c.Ou(a)});jQuery(document).mouseup(function(a){c.Qu(a)});jQuery(document).dblclick(function(a){c.Nu(a)});var b=function(a){c.Tu(a)};
document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var k={left:0,top:0};p.Pu=function(c){var b=this.b.Ea?k:jQuery(this.b.canvas).offset();this.He=c.pageX-b.left;this.Ie=c.pageY-b.top};p.Ap=function(){return 0<this.b.Ub?!0:0<=this.He&&0<=this.Ie&&this.He<this.b.width&&this.Ie<this.b.height};p.Ou=function(c){this.Ap()&&(this.al[c.which]=!0,this.b.Mb=!0,this.b.trigger(pc.prototype.k.xr,this),this.Jg=c.which-1,this.Dk=0,this.b.trigger(pc.prototype.k.Mk,this),
this.b.trigger(pc.prototype.k.Ok,this),this.b.Mb=!1)};p.Qu=function(c){this.al[c.which]&&(this.b.Ao&&!this.b.Be&&c.preventDefault(),this.b.Ao=!0,this.al[c.which]=!1,this.b.Mb=!0,this.Jg=c.which-1,this.b.trigger(pc.prototype.k.Nr,this),this.b.Mb=!1)};p.Nu=function(c){this.Ap()&&(c.preventDefault(),this.b.Mb=!0,this.Jg=c.which-1,this.Dk=1,this.b.trigger(pc.prototype.k.Mk,this),this.b.trigger(pc.prototype.k.Ok,this),this.b.Mb=!1)};p.Tu=function(c){this.Eq=0>(c.wheelDelta?c.wheelDelta:c.detail?-c.detail:
0)?0:1;this.Sl=!1;this.b.Mb=!0;this.b.trigger(pc.prototype.k.Pr,this);this.b.Mb=!1;this.Sl&&jb(c)&&c.preventDefault()};e.prototype.Mk=function(c,b){return c===this.Jg&&b===this.Dk};e.prototype.xr=function(){return!0};e.prototype.Nr=function(c){return c===this.Jg};e.prototype.Ok=function(c,b,a){return c!==this.Jg||b!==this.Dk?!1:this.b.Fv(a,this.He,this.Ie)};e.prototype.Pr=function(c){this.Sl=!0;return c===this.Eq};c.k=new e;c.ca=new function(){};n.prototype.Tk=function(c,b){var a,e,k,d,f;ha(b)?(a=
this.b.jh(0),e=a.scale,k=a.sd,d=a.Nc,f=a.m,a.scale=1,a.sd=1,a.Nc=1,a.m=0,c.G(a.Hb(this.He,this.Ie,!0)),a.scale=e,a.sd=k,a.Nc=d,a.m=f):(a=ia(b)?this.b.jh(b):this.b.Kl(b))?c.G(a.Hb(this.He,this.Ie,!0)):c.G(0)};n.prototype.Uk=function(c,b){var a,e,k,d,f;ha(b)?(a=this.b.jh(0),e=a.scale,k=a.sd,d=a.Oc,f=a.m,a.scale=1,a.sd=1,a.Oc=1,a.m=0,c.G(a.Hb(this.He,this.Ie,!1)),a.scale=e,a.sd=k,a.Oc=d,a.m=f):(a=ia(b)?this.b.jh(b):this.b.Kl(b))?c.G(a.Hb(this.He,this.Ie,!1)):c.G(0)};c.Ra=new n})();
function Z(e){this.b=e}
(function(){function e(){if(0===this.nl.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Gg?b.drawImage(this.H,this.zg,this.Ag,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.H,0,0,this.width,this.height);this.nl=a.toDataURL("image/png")}return this.nl}function n(){}function c(a){a[0]=0;a[1]=0;a[2]=0;m.push(a)}function p(a,b){return a<b?""+a+","+b:""+b+","+a}function k(a,b,c,d){b=b.uid;c=c.uid;var f=p(b,c);if(a.hasOwnProperty(f))a[f][2]=
d;else{var e=m.length?m.pop():[0,0,0];e[0]=b;e[1]=c;e[2]=d;a[f]=e}}function u(a,b,d){b=p(b.uid,d.uid);a.hasOwnProperty(b)&&(c(a[b]),delete a[b])}function b(a,b,c){b=p(b.uid,c.uid);if(a.hasOwnProperty(b))return g=a[b][2],!0;g=-2;return!1}function a(){}var v=Z.prototype;v.Da=function(a){this.na=a;this.b=a.b};var q=v.Da.prototype;q.V=function(){if(!this.B){var a,b,c,d,f,g,k,m,n;this.Vc=[];this.ph=!1;a=0;for(b=this.Tb.length;a<b;a++){f=this.Tb[a];k={};k.name=f[0];k.speed=f[1];k.loop=f[2];k.$m=f[3];k.kk=
f[4];k.Vp=f[5];k.W=f[6];k.frames=[];c=0;for(d=f[7].length;c<d;c++)g=f[7][c],m={},m.Ak=g[0],m.rn=g[1],m.zg=g[2],m.Ag=g[3],m.width=g[4],m.height=g[5],m.duration=g[6],m.Kb=g[7],m.Lb=g[8],m.Xl=g[9],m.ak=g[10],m.Wp=g[11],m.Gg=0!==m.width,m.nl="",m.Rw=e,n={left:0,top:0,right:1,bottom:1},m.nn=n,m.M=null,(n=this.b.Ht(g[0]))?m.H=n:(m.H=new Image,m.H.vs=g[0],m.H.Zn=g[1],m.H.os=null,this.b.Dn(m.H,g[0])),k.frames.push(m),this.Vc.push(m);this.Tb[a]=k}}};q.Oq=function(){var a,b,c;a=0;for(b=this.d.length;a<b;a++)c=
this.d[a],c.Yi=c.Gc.M};q.Xh=function(){if(!this.B){var a,b,c;a=0;for(b=this.Vc.length;a<b;++a)c=this.Vc[a],c.H.os=null,c.M=null;this.ph=!1;this.Oq()}};q.Yj=function(){if(!this.B&&this.d.length){var a,b,c;a=0;for(b=this.Vc.length;a<b;++a)c=this.Vc[a],c.M=this.b.n.tg(c.H,!1,this.b.R,c.Wp);this.Oq()}};q.wm=function(){if(!this.B&&!this.ph&&this.b.n){var a,b,c;a=0;for(b=this.Vc.length;a<b;++a)c=this.Vc[a],c.M=this.b.n.tg(c.H,!1,this.b.R,c.Wp);this.ph=!0}};q.Fk=function(){if(!this.B&&!this.d.length&&this.ph){var a,
b,c;a=0;for(b=this.Vc.length;a<b;++a)c=this.Vc[a],this.b.n.deleteTexture(c.M),c.M=null;this.ph=!1}};var d=[];q.ek=function(a){var b,c,f;V(d);b=0;for(c=this.Vc.length;b<c;++b)f=this.Vc[b].H,-1===d.indexOf(f)&&(a.drawImage(f,0,0),d.push(f))};v.ra=function(a){this.type=a;this.b=a.b;a=this.type.Tb[0].frames[0].ak;this.jc?this.fa.ki(a):this.fa=new cb(a)};var f=v.ra.prototype;f.V=function(){this.visible=0===this.p[0];this.Yl=this.km=!1;this.Jd=0!==this.p[3];1===this.type.Tb.length&&1===this.type.Tb[0].frames.length||
0===this.type.Tb[0].speed||(this.b.ti(this),this.km=!0);this.Ia=this.oo(this.p[1])||this.type.Tb[0];this.u=this.p[2];0>this.u&&(this.u=0);this.u>=this.Ia.frames.length&&(this.u=this.Ia.frames.length-1);var a=this.Ia.frames[this.u];this.fa.ki(a.ak);this.Kb=a.Kb;this.Lb=a.Lb;this.bh=this.Ia.speed;this.jc?this.ud.reset():this.ud=new ab;this.Pd=this.ud.X;this.Ve=!0;this.Hd=0;this.Ue=!0;this.gl=this.On="";this.rs=0;this.Pi=-1;this.type.wm();var b,c,d,f,e,g,k,a=0;for(b=this.type.Tb.length;a<b;a++)for(f=
this.type.Tb[a],c=0,d=f.frames.length;c<d;c++)e=f.frames[c],0===e.width&&(e.width=e.H.width,e.height=e.H.height),e.Gg&&(k=e.H,g=e.nn,g.left=e.zg/k.width,g.top=e.Ag/k.height,g.right=(e.zg+e.width)/k.width,g.bottom=(e.Ag+e.height)/k.height,0===e.zg&&0===e.Ag&&e.width===k.width&&e.height===k.height&&(e.Gg=!1));this.Gc=this.Ia.frames[this.u];this.Yi=this.Gc.M};f.Fb=function(){var a={a:this.Ia.W,f:this.u,cas:this.bh,fs:this.Pd,ar:this.Hd,at:this.ud.X};this.Ve||(a.ap=this.Ve);this.Ue||(a.af=this.Ue);return a};
f.Xb=function(a){var b=this.Mt(a.a);b&&(this.Ia=b);this.u=a.f;0>this.u&&(this.u=0);this.u>=this.Ia.frames.length&&(this.u=this.Ia.frames.length-1);this.bh=a.cas;this.Pd=a.fs;this.Hd=a.ar;this.ud.reset();this.ud.X=a.at;this.Ve=a.hasOwnProperty("ap")?a.ap:!0;this.Ue=a.hasOwnProperty("af")?a.af:!0;this.Gc=this.Ia.frames[this.u];this.Yi=this.Gc.M;this.fa.ki(this.Gc.ak);this.Kb=this.Gc.Kb;this.Lb=this.Gc.Lb};f.Yk=function(a){this.u=a?0:this.Ia.frames.length-1;this.Ve=!1;this.On=this.Ia.name;this.Yl=!0;
this.b.trigger(Z.prototype.k.ur,this);this.b.trigger(Z.prototype.k.tr,this);this.Yl=!1;this.Hd=0};f.Gi=function(){return this.ud.X};f.cb=function(){this.ud.add(this.b.Hl(this));this.gl.length&&this.Cs();0<=this.Pi&&this.co();var a=this.ud.X,b=this.Ia,c=b.frames[this.u],d=c.duration/this.bh;this.Ve&&a>=this.Pd+d&&(this.Ue?this.u++:this.u--,this.Pd+=d,this.u>=b.frames.length&&(b.Vp?(this.Ue=!1,this.u=b.frames.length-2):b.loop?this.u=b.kk:(this.Hd++,this.Hd>=b.$m?this.Yk(!1):this.u=b.kk)),0>this.u&&
(b.Vp?(this.u=1,this.Ue=!0,b.loop||(this.Hd++,this.Hd>=b.$m&&this.Yk(!0))):b.loop?this.u=b.kk:(this.Hd++,this.Hd>=b.$m?this.Yk(!0):this.u=b.kk)),0>this.u?this.u=0:this.u>=b.frames.length&&(this.u=b.frames.length-1),a>this.Pd+b.frames[this.u].duration/this.bh&&(this.Pd=a),a=b.frames[this.u],this.Pf(c,a),this.b.pa=!0)};f.oo=function(a){var b,c,d;b=0;for(c=this.type.Tb.length;b<c;b++)if(d=this.type.Tb[b],ib(d.name,a))return d;return null};f.Mt=function(a){var b,c,d;b=0;for(c=this.type.Tb.length;b<c;b++)if(d=
this.type.Tb[b],d.W===a)return d;return null};f.Cs=function(){var a=this.Ia.frames[this.u],b=this.oo(this.gl);this.gl="";!b||ib(b.name,this.Ia.name)&&this.Ve||(this.Ia=b,this.bh=b.speed,0>this.u&&(this.u=0),this.u>=this.Ia.frames.length&&(this.u=this.Ia.frames.length-1),1===this.rs&&(this.u=0),this.Ve=!0,this.Pd=this.ud.X,this.Ue=!0,this.Pf(a,this.Ia.frames[this.u]),this.b.pa=!0)};f.co=function(){var a=this.Ia.frames[this.u],b=this.u;this.u=S(this.Pi);0>this.u&&(this.u=0);this.u>=this.Ia.frames.length&&
(this.u=this.Ia.frames.length-1);b!==this.u&&(this.Pf(a,this.Ia.frames[this.u]),this.Pd=this.ud.X,this.b.pa=!0);this.Pi=-1};f.Pf=function(a,b){var c=a.width,d=a.height,f=b.width,e=b.height;c!=f&&(this.width*=f/c);d!=e&&(this.height*=e/d);this.Kb=b.Kb;this.Lb=b.Lb;this.fa.ki(b.ak);this.A();this.Gc=b;this.Yi=b.M;c=0;for(d=this.N.length;c<d;c++)f=this.N[c],f.Ru&&f.Ru(a,b);this.b.trigger(Z.prototype.k.Pf,this)};f.Jc=function(a){a.globalAlpha=this.opacity;var b=this.Gc,c=b.Gg,d=b.H,f=this.x,e=this.y,g=
this.width,k=this.height;if(0===this.m&&0<=g&&0<=k)f-=this.Kb*g,e-=this.Lb*k,this.b.Ac&&(f=Math.round(f),e=Math.round(e)),c?a.drawImage(d,b.zg,b.Ag,b.width,b.height,f,e,g,k):a.drawImage(d,f,e,g,k);else{this.b.Ac&&(f=Math.round(f),e=Math.round(e));a.save();var m=0<g?1:-1,n=0<k?1:-1;a.translate(f,e);1===m&&1===n||a.scale(m,n);a.rotate(this.m*m*n);f=0-this.Kb*la(g);e=0-this.Lb*la(k);c?a.drawImage(d,b.zg,b.Ag,b.width,b.height,f,e,la(g),la(k)):a.drawImage(d,f,e,la(g),la(k));a.restore()}};f.cf=function(a){this.Jb(a)};
f.Jb=function(a){a.$b(this.Yi);a.Me(this.opacity);var b=this.Gc,c=this.Ab;if(this.b.Ac){var d=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.Gg?a.ld(c.za+d,c.Aa+f,c.Wa+d,c.Xa+f,c.Pa+d,c.Qa+f,c.Na+d,c.Oa+f,b.nn):a.ci(c.za+d,c.Aa+f,c.Wa+d,c.Xa+f,c.Pa+d,c.Qa+f,c.Na+d,c.Oa+f)}else b.Gg?a.ld(c.za,c.Aa,c.Wa,c.Xa,c.Pa,c.Qa,c.Na,c.Oa,b.nn):a.ci(c.za,c.Aa,c.Wa,c.Xa,c.Pa,c.Qa,c.Na,c.Oa)};f.Rt=function(a){var b=this.Gc,c,d;c=0;for(d=b.Xl.length;c<d;c++)if(ib(a,b.Xl[c][0]))return c;return-1};f.ih=function(a,
b){var c=this.Gc,d=c.Xl,f;C(a)?f=this.Rt(a):f=a-1;f=S(f);if(0>f||f>=d.length)return b?this.x:this.y;var e=(d[f][1]-c.Kb)*this.width,d=d[f][2],d=(d-c.Lb)*this.height,c=Math.cos(this.m);f=Math.sin(this.m);var g=e*c-d*f,d=d*c+e*f,e=g+this.x,d=d+this.y;return b?e:d};var m=[],g=-2,A=[];n.prototype.Cr=function(a){if(!a)return!1;var d=this.b,f=d.Gl(),e=f.type,m=null;f.F.collmemory?m=f.F.collmemory:(m={},f.F.collmemory=m,d.Vk(function(a){var b=f.F.collmemory;a=a.uid;var d,e;for(d in b)b.hasOwnProperty(d)&&
(e=b[d],e[0]===a||e[1]===a)&&(c(b[d]),delete b[d])}));var n=e.Y(),q=a.Y(),n=n.wc(),p,v,y,G,M,E,w,U=this.b.Gd,D=U-1,J=d.Cb().tc;for(v=0;v<n.length;v++){y=n[v];q.ka?(y.qa(),this.b.qo(y.i,a,y.Fa,A),p=A):p=q.wc();for(G=0;G<p.length;G++)M=p[G],d.Sc(y,M)||d.ts(y,M)?(E=b(m,y,M),E=!E||g<D,k(m,y,M,U),E&&(d.gk(J.Ha),E=e.Y(),w=a.Y(),E.ka=!1,w.ka=!1,e===a?(E.d.length=2,E.d[0]=y,E.d[1]=M,e.Xc()):(E.d.length=1,w.d.length=1,E.d[0]=y,w.d[0]=M,e.Xc(),a.Xc()),J.mv(),d.Ef(J.Ha))):u(m,y,M);V(A)}return!1};var y=new ba,
G=!1;new va(0,0,0,0);q.finish=function(a){if(G){if(a){var b=this.b.Cb().tc.fd;a=null.Y();var c=y.ge(),d,f;if(a.ka){a.ka=!1;V(a.d);d=0;for(f=c.length;d<f;++d)a.d[d]=c[d];if(b)for(V(a.da),d=0,f=null.d.length;d<f;++d)c=null.d[d],y.contains(c)||a.da.push(c)}else if(b)for(b=a.d.length,d=0,f=c.length;d<f;++d)a.d[b+d]=c[d],Da(a.da,c[d]);else Aa(a.d,c);null.Xc()}y.clear();G=!1}};n.prototype.tr=function(a){return ib(this.On,a)};n.prototype.ur=function(){return!0};n.prototype.Pf=function(){return!0};v.k=new n;
a.prototype.Zr=function(a,b,c){if(a&&b&&(b=this.b.kl(a,b,this.ih(c,!0),this.ih(c,!1)))){"undefined"!==typeof b.m&&(b.m=this.m,b.A());this.b.yc++;var d,f,e;this.b.trigger(Object.getPrototypeOf(a.na).k.Qg,b);if(b.Nb)for(d=0,f=b.siblings.length;d<f;d++)e=b.siblings[d],this.b.trigger(Object.getPrototypeOf(e.type.na).k.Qg,e);this.b.yc--;d=this.b.Ot();c=!1;if(ha(d.F.Spawn_LastExec)||d.F.Spawn_LastExec<this.b.jf)c=!0,d.F.Spawn_LastExec=this.b.jf;if(a!=this.type&&(a=a.Y(),a.ka=!1,c?(V(a.d),a.d[0]=b):a.d.push(b),
b.Nb))for(d=0,f=b.siblings.length;d<f;d++)e=b.siblings[d],a=e.type.Y(),a.ka=!1,c?(V(a.d),a.d[0]=e):a.d.push(e)}};a.prototype.Rr=function(a){this.Pi=a;this.km||(this.b.ti(this),this.km=!0);this.Yl||this.co()};a.prototype.Sr=function(a){a=la(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.A())};v.ca=new a;v.Ra=new function(){}})();function qc(e){this.b=e}
(function(){function e(a,b){return a.length?a.pop():new b}function n(a,b,c){if(c){var d;c=0;for(d=b.length;c<d;c++)a.length<u&&a.push(b[c]);V(b)}else for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(a.length<u&&a.push(b[d]),delete b[d])}function c(a,c,d){var k=a.Ob;d=d.replace(/\s\s*$/,"");c>=k.length&&k.push(e(b,Object));c=k[c];c.text=d;c.width=a.Cm(d);a.de=ma(a.de,c.width)}var p=qc.prototype;p.V=function(){};p.Da=function(a){this.na=a;this.b=a.b};var k=p.Da.prototype;k.V=function(){this.B||
(this.H=new Image,this.b.Dn(this.H,this.Ak),this.M=null)};k.Xh=function(){this.B||(this.M=null)};k.Yj=function(){if(!this.B&&this.d.length){this.M||(this.M=this.b.n.tg(this.H,!1,this.b.R,this.si));var a,b;a=0;for(b=this.d.length;a<b;a++)this.d[a].M=this.M}};k.Fk=function(){this.B||this.d.length||!this.M||(this.b.n.deleteTexture(this.M),this.M=null)};k.ek=function(a){a.drawImage(this.H,0,0)};p.ra=function(a){this.type=a;this.b=a.b};k=p.ra.prototype;k.Zd=function(){n(b,this.Ob,!0);n(a,this.Ri,!1);n(v,
this.Si,!1);Wa(this.re)};k.V=function(){this.H=this.type.H;this.Qi=this.p[0];this.pe=this.p[1];this.characterSet=this.p[2];this.text=this.p[3];this.qe=this.p[4];this.visible=0===this.p[5];this.Sd=this.p[6]/2;this.fe=this.p[7]/2;this.Bi=0===this.p[9];this.Vf=this.p[10];this.lineHeight=this.p[11];this.Fd=this.de=0;this.jc?(V(this.Ob),Wa(this.Ri),Wa(this.Si),Wa(this.re)):(this.Ob=[],this.Ri={},this.Si={},this.re={});this.od=!0;this.xf=this.width;this.b.n&&(this.type.M||(this.type.M=this.b.n.tg(this.type.H,
!1,this.b.R,this.type.si)),this.M=this.type.M);this.$r()};k.Fb=function(){var a={t:this.text,csc:this.qe,csp:this.Vf,lh:this.lineHeight,tw:this.de,th:this.Fd,lrt:this.wf,ha:this.Sd,va:this.fe,cw:{}},b;for(b in this.re)a.cw[b]=this.re[b];return a};k.Xb=function(a){this.text=a.t;this.qe=a.csc;this.Vf=a.csp;this.lineHeight=a.lh;this.de=a.tw;this.Fd=a.th;this.wf=a.lrt;a.hasOwnProperty("ha")&&(this.Sd=a.ha);a.hasOwnProperty("va")&&(this.fe=a.va);for(var b in a.cw)this.re[b]=a.cw[b];this.od=!0;this.xf=
this.width};var u=1E3,b=[],a=[],v=[];k.$r=function(){for(var b=this.H,c=b.width,d=b.height,b=this.Qi,k=this.pe,n=b/c,q=k/d,l=this.characterSet,c=Math.floor(c/b),d=Math.floor(d/k),p=0;p<l.length&&!(p>=c*d);p++){var u=p%c,h=Math.floor(p/c),t=l.charAt(p);if(this.b.n){var x=this.Si,B=u*n,I=h*q,u=(u+1)*n,h=(h+1)*q;void 0===x[t]&&(x[t]=e(v,va));x[t].left=B;x[t].top=I;x[t].right=u;x[t].bottom=h}else x=this.Ri,u=u*b,h=h*k,B=b,I=k,void 0===x[t]&&(x[t]=e(a,Object)),x[t].x=u,x[t].y=h,x[t].Wq=B,x[t].zo=I}};var q=
[];p.Qk=function(a){V(q);for(var b="",c,d=0;d<a.length;)if(c=a.charAt(d),"\n"===c)b.length&&(q.push(b),b=""),q.push("\n"),++d;else if(" "===c||"\t"===c||"-"===c){do b+=a.charAt(d),d++;while(d<a.length&&(" "===a.charAt(d)||"\t"===a.charAt(d)));q.push(b);b=""}else d<a.length&&(b+=c,d++);b.length&&q.push(b)};p.Rk=function(a){var c=a.text,d=a.Ob;if(c&&c.length){var k=a.width;if(2>=k)n(b,d,!0);else{var q=a.qe,p=a.Vf;if(c.length*(a.Qi*q+p)-p<=k&&-1===c.indexOf("\n")&&(p=a.Cm(c),p<=k)){n(b,d,!0);d.push(e(b,
Object));d[0].text=c;d[0].width=p;a.de=p;a.Fd=a.pe*q+a.lineHeight;return}this.Sk(a);a.Fd=d.length*(a.pe*q+a.lineHeight)}}else n(b,d,!0)};p.Sk=function(a){var d=a.Bi,e=a.text,k=a.Ob,n=a.width;d&&(this.Qk(e),e=q);var p="",l,r,v,h=0,t=!1;for(v=0;v<e.length;v++)"\n"===e[v]?(!0===t?t=!1:(c(a,h,p),h++),p=""):(t=!1,l=p,p+=e[v],r=a.Cm(p.replace(/\s\s*$/,"")),r>n&&(""===l?(c(a,h,p),p="",t=!0):(c(a,h,l),p=e[v]),h++,d||" "!==p||(p="")));p.replace(/\s\s*$/,"").length&&(c(a,h,p),h++);for(v=h;v<k.length;v++)b.length<
u&&b.push(k[v]);k.length=h};k.Cm=function(a){for(var b=this.Vf,c=a.length,d=0,e=0;e<c;e++)d+=this.Fl(a.charAt(e))*this.qe+b;return d-(0<d?b:0)};k.Fl=function(a){var b=this.re;return void 0!==b[a]?b[a]:this.Qi};k.cq=function(){if(this.od||this.width!==this.xf)this.Fd=this.de=0,this.type.na.Rk(this),this.od=!1,this.xf=this.width};k.Jc=function(a){var b=this.H;if(""!==this.text&&null!=b&&(this.cq(),!(this.height<this.pe*this.qe+this.lineHeight))){a.globalAlpha=this.opacity;var b=this.x,c=this.y;this.b.Ac&&
(b=Math.round(b),c=Math.round(c));var d=this.i.wa,e=this.i.xa,k=this.i.Ca,l=this.i.Ba;a.save();a.translate(b,c);a.rotate(this.m);for(var n=this.Sd,q=this.qe,h=this.pe*q,p=this.lineHeight,u=this.Vf,v=this.Ob,I,O=-(this.Kb*this.width),H=-(this.Lb*this.height),H=H+this.fe*ma(0,this.height-this.Fd),T,M,E,w=0;w<v.length;w++){var U=v[w].text;I=n*ma(0,this.width-v[w].width);T=O+I;H+=p;if(c+H+h<e)H+=h;else{for(var D=0;D<U.length;D++){M=U.charAt(D);I=this.Fl(M);var J=this.Ri[M];if(b+T+I*q+u<d)T+=I*q+u;else{if(T+
I*q>this.width+1E-5)break;void 0!==J&&(M=T,E=H,0===this.m&&(M=Math.round(M),E=Math.round(E)),a.drawImage(this.H,J.x,J.y,J.Wq,J.zo,M,E,J.Wq*q,J.zo*q));T+=I*q+u;if(b+T>k)break}}H+=h;if(H+h+p>this.height||c+H>l)break}}a.restore()}};var d=new wa;k.Jb=function(a){a.$b(this.M);a.Me(this.opacity);if(this.text&&(this.cq(),!(this.height<this.pe*this.qe+this.lineHeight))){this.qa();var b=this.Ab,c=0,e=0;this.b.Ac&&(c=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y);var k=this.i.wa,n=this.i.xa,l=this.i.Ca,
q=this.i.Ba,p=this.m,h=this.Sd,t=this.fe,u=this.qe,v=this.pe*u,I=this.lineHeight,O=this.Vf,H=this.Ob,T=this.Fd,M,E,w;0!==p&&(E=Math.cos(p),w=Math.sin(p));for(var c=b.za+c,b=b.Aa+e,U,t=t*ma(0,this.height-T),D,J,T=0;T<H.length;T++)if(e=H[T].text,U=M=h*ma(0,this.width-H[T].width),t+=I,0===p&&b+t+v<n)t+=v;else{for(var K=0;K<e.length;K++){var L=e.charAt(K);M=this.Fl(L);L=this.Si[L];if(c+U+M*u+O<k)U+=M*u+O;else{if(U+M*u>this.width+1E-5)break;if(void 0!==L){var N=this.Qi*u,F=this.pe*u;D=U;J=t;0===p&&(D=
Math.round(D),J=Math.round(J));d.za=D;d.Aa=J;d.Wa=D+N;d.Xa=J;d.Na=D;d.Oa=J+F;d.Pa=D+N;d.Qa=J+F;0!==p&&(D=d,J=E,N=w,F=void 0,F=D.za*J-D.Aa*N,D.Aa=D.Aa*J+D.za*N,D.za=F,F=D.Wa*J-D.Xa*N,D.Xa=D.Xa*J+D.Wa*N,D.Wa=F,F=D.Na*J-D.Oa*N,D.Oa=D.Oa*J+D.Na*N,D.Na=F,F=D.Pa*J-D.Qa*N,D.Qa=D.Qa*J+D.Pa*N,D.Pa=F);d.offset(c,b);a.ld(d.za,d.Aa,d.Wa,d.Xa,d.Pa,d.Qa,d.Na,d.Oa,L)}U+=M*u+O;if(0===p&&c+U>l)break}}t+=v;if(t+v+I>this.height||b+t>q)break}}};p.k=new function(){};k.Gi=function(a,b){var c=parseInt(b,10);this.re[a]!==
c&&(this.re[a]=c,this.od=!0,this.b.pa=!0)};p.ca=new function(){};p.Ra=new function(){}})();function rc(e){this.b=e}
(function(){function e(){return u.length?u.pop():{}}function n(b){var a,c;a=0;for(c=b.length;a<c;a++)u.push(b[a]);V(b)}var c=rc.prototype;c.V=function(){c.ca.Vr=function(b){this.width!==b&&(this.width=b,this.od=!0,this.A())}};c.Da=function(b){this.na=b;this.b=b.b};var p=c.Da.prototype;p.V=function(){};p.Xh=function(){if(!this.B){var b,a,c;b=0;for(a=this.d.length;b<a;b++)c=this.d[b],c.zd=null,c.Cf=null,c.gc=null}};c.ra=function(b){this.type=b;this.b=b.b;this.jc?V(this.Ob):this.Ob=[];this.od=!0};p=
c.ra.prototype;p.V=function(){this.text=this.p[0];this.visible=0===this.p[1];this.font=this.p[2];this.color=this.p[3];this.Sd=this.p[4];this.fe=this.p[5];this.Bi=0===this.p[7];this.xf=this.Gj=this.width;this.Fj=this.height;this.tm=this.p[8];this.mj=this.Zf="";this.Fd=this.de=this.ai=0;this.Uu();this.gc=this.Cf=this.zd=null;this.Dp=!1;this.wf=this.b.Gd;this.jc?this.Ke.set(0,0,1,1):this.Ke=new va(0,0,1,1);this.b.n&&this.b.ti(this)};p.Uu=function(){var b=this.font.split(" "),a;for(a=0;a<b.length;a++)if("pt"===
b[a].substr(b[a].length-2,2)){this.ai=parseInt(b[a].substr(0,b[a].length-2));this.Wm=Math.ceil(this.ai/72*96)+4;0<a&&(this.mj=b[a-1]);this.Zf=b[a+1];for(a+=2;a<b.length;a++)this.Zf+=" "+b[a];break}};p.Fb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Sd,va:this.fe,wr:this.Bi,lho:this.tm,fn:this.Zf,fs:this.mj,ps:this.ai,pxh:this.Wm,tw:this.de,th:this.Fd,lrt:this.wf}};p.Xb=function(b){this.text=b.t;this.font=b.f;this.color=b.c;this.Sd=b.ha;this.fe=b.va;this.Bi=b.wr;this.tm=b.lho;this.Zf=
b.fn;this.mj=b.fs;this.ai=b.ps;this.Wm=b.pxh;this.de=b.tw;this.Fd=b.th;this.wf=b.lrt;this.od=!0;this.xf=this.Gj=this.width;this.Fj=this.height};p.cb=function(){if(this.b.n&&this.gc&&300<=this.b.Gd-this.wf){var b=this.i;this.qa();var a=this.Fa;if(a.right<b.wa||a.bottom<b.xa||a.left>b.Ca||a.top>b.Ba)this.b.n.deleteTexture(this.gc),this.zd=this.Cf=this.gc=null}};p.Zd=function(){this.zd=this.Cf=null;this.b.n&&this.gc&&this.b.n.deleteTexture(this.gc);this.gc=null};p.Gi=function(){this.font=this.mj+" "+
this.ai.toString()+"pt "+this.Zf;this.od=!0;this.b.pa=!0};p.Jc=function(b,a){b.font=this.font;b.textBaseline="top";b.fillStyle=this.color;b.globalAlpha=a?1:this.opacity;var c=1;a&&(c=this.i.Vb(),b.save(),b.scale(c,c));if(this.od||this.width!==this.xf)this.type.na.Rk(this.text,this.Ob,b,this.width,this.Bi),this.od=!1,this.xf=this.width;this.qa();var c=a?0:this.Ab.za,e=a?0:this.Ab.Aa;this.b.Ac&&(c=c+.5|0,e=e+.5|0);0===this.m||a||(b.save(),b.translate(c,e),b.rotate(this.m),e=c=0);var d=e+this.height,
f=this.Wm,f=f+this.tm,k,g;1===this.fe?e+=Math.max(this.height/2-this.Ob.length*f/2,0):2===this.fe&&(e+=Math.max(this.height-this.Ob.length*f-2,0));for(g=0;g<this.Ob.length&&!(k=c,1===this.Sd?k=c+(this.width-this.Ob[g].width)/2:2===this.Sd&&(k=c+(this.width-this.Ob[g].width)),b.fillText(this.Ob[g].text,k,e),e+=f,e>=d-f);g++);(0!==this.m||a)&&b.restore();this.wf=this.b.Gd};p.Jb=function(b){if(!(1>this.width||1>this.height)){var a=this.od||this.Dp;this.Dp=!1;var c=this.i.Vb(),e=this.i.Sa(),d=this.Ke,
f=c*this.width,k=c*this.height,g=Math.ceil(f),n=Math.ceil(k),p=this.b.D/2,u=this.b.C/2;this.Cf||(this.zd=document.createElement("canvas"),this.zd.width=g,this.zd.height=n,this.Gj=g,this.Fj=n,a=!0,this.Cf=this.zd.getContext("2d"));if(g!==this.Gj||n!==this.Fj)this.zd.width=g,this.zd.height=n,this.gc&&(b.deleteTexture(this.gc),this.gc=null),a=!0;a&&(this.Cf.clearRect(0,0,g,n),this.Jc(this.Cf,!0),this.gc||(this.gc=b.sc(g,n,this.b.R,this.b.Be)),b.Ov(this.zd,this.gc,this.b.Be));this.Gj=g;this.Fj=n;b.$b(this.gc);
b.Me(this.opacity);b.Pc();b.translate(-p,-u);b.Cc();var l=this.Ab,a=this.i.ta(l.za,l.Aa,!0,!0),p=this.i.ta(l.za,l.Aa,!1,!0),u=this.i.ta(l.Wa,l.Xa,!0,!0),r=this.i.ta(l.Wa,l.Xa,!1,!0),z=this.i.ta(l.Pa,l.Qa,!0,!0),h=this.i.ta(l.Pa,l.Qa,!1,!0),t=this.i.ta(l.Na,l.Oa,!0,!0),l=this.i.ta(l.Na,l.Oa,!1,!0);if(this.b.Ac||0===this.m&&0===e)var x=(a+.5|0)-a,B=(p+.5|0)-p,a=a+x,p=p+B,u=u+x,r=r+B,z=z+x,h=h+B,t=t+x,l=l+B;0===this.m&&0===e?(u=a+g,r=p,z=u,h=p+n,t=a,l=h,d.right=1,d.bottom=1):(d.right=f/g,d.bottom=k/
n);b.ld(a,p,u,r,z,h,t,l,d);b.Pc();b.scale(c,c);b.nk(-this.i.Sa());b.translate((this.i.wa+this.i.Ca)/-2,(this.i.xa+this.i.Ba)/-2);b.Cc();this.wf=this.b.Gd}};var k=[];c.Qk=function(b){V(k);for(var a="",c,e=0;e<b.length;)if(c=b.charAt(e),"\n"===c)a.length&&(k.push(a),a=""),k.push("\n"),++e;else if(" "===c||"\t"===c||"-"===c){do a+=b.charAt(e),e++;while(e<b.length&&(" "===b.charAt(e)||"\t"===b.charAt(e)));k.push(a);a=""}else e<b.length&&(a+=c,e++);a.length&&k.push(a)};var u=[];c.Rk=function(b,a,c,k,d){if(b&&
b.length)if(2>=k)n(a);else{if(100>=b.length&&-1===b.indexOf("\n")){var f=c.measureText(b).width;if(f<=k){n(a);a.push(e());a[0].text=b;a[0].width=f;return}}this.Sk(b,a,c,k,d)}else n(a)};c.Sk=function(b,a,c,n,d){d&&(this.Qk(b),b=k);var f="",m,g,p,y=0;for(p=0;p<b.length;p++)"\n"===b[p]?(y>=a.length&&a.push(e()),g=a[y],g.text=f,g.width=c.measureText(f).width,y++,f=""):(m=f,f+=b[p],g=c.measureText(f).width,g>=n&&(y>=a.length&&a.push(e()),g=a[y],g.text=m,g.width=c.measureText(m).width,y++,f=b[p],d||" "!==
f||(f="")));f.length&&(y>=a.length&&a.push(e()),g=a[y],g.text=f,g.width=c.measureText(f).width,y++);for(p=y;p<a.length;p++)u.push(a[p]);a.length=y};c.k=new function(){};c.ca=new function(){};c.Ra=new function(){}})();function sc(e){this.b=e}
(function(){var e=sc.prototype;e.Da=function(c){this.na=c;this.b=c.b};var n=e.Da.prototype;n.V=function(){this.B||(this.H=new Image,this.H.Zn=this.rn,this.b.Dn(this.H,this.Ak),this.M=this.pattern=null)};n.Xh=function(){this.B||(this.M=null)};n.Yj=function(){if(!this.B&&this.d.length){this.M||(this.M=this.b.n.tg(this.H,!0,this.b.R,this.si));var c,e;c=0;for(e=this.d.length;c<e;c++)this.d[c].M=this.M}};n.wm=function(){this.B||this.M||!this.b.n||(this.M=this.b.n.tg(this.H,!0,this.b.R,this.si))};n.Fk=
function(){this.B||this.d.length||!this.M||(this.b.n.deleteTexture(this.M),this.M=null)};n.ek=function(c){c.drawImage(this.H,0,0)};e.ra=function(c){this.type=c;this.b=c.b};n=e.ra.prototype;n.V=function(){this.visible=0===this.p[0];this.Ke=new va(0,0,0,0);this.Do=!1;this.H=this.type.H;this.b.n?(this.type.wm(),this.M=this.type.M):(this.type.pattern||(this.type.pattern=this.b.ja.createPattern(this.type.H,"repeat")),this.pattern=this.type.pattern)};n.td=function(){this.Do=!1;this.H=this.type.H};n.Zd=
function(){this.b.n&&this.Do&&this.M&&(this.b.n.deleteTexture(this.M),this.M=null)};n.Jc=function(c){c.globalAlpha=this.opacity;c.save();c.fillStyle=this.pattern;var e=this.x,k=this.y;this.b.Ac&&(e=Math.round(e),k=Math.round(k));var n=-(this.Kb*this.width),b=-(this.Lb*this.height),a=n%this.H.width,v=b%this.H.height;0>a&&(a+=this.H.width);0>v&&(v+=this.H.height);c.translate(e,k);c.rotate(this.m);c.translate(a,v);c.fillRect(n-a,b-v,this.width,this.height);c.restore()};n.cf=function(c){this.Jb(c)};n.Jb=
function(c){c.$b(this.M);c.Me(this.opacity);var e=this.Ke;e.right=this.width/this.H.width;e.bottom=this.height/this.H.height;var k=this.Ab;if(this.b.Ac){var n=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;c.ld(k.za+n,k.Aa+b,k.Wa+n,k.Xa+b,k.Pa+n,k.Qa+b,k.Na+n,k.Oa+b,e)}else c.ld(k.za,k.Aa,k.Wa,k.Xa,k.Pa,k.Qa,k.Na,k.Oa,e)};e.k=new function(){};e.ca=new function(){};e.Ra=new function(){}})();function lc(e){this.b=e}
(function(){var e=lc.prototype;e.Da=function(c){this.behavior=c;this.b=c.b};e.Da.prototype.V=function(){};e.ra=function(c,e){this.type=c;this.behavior=c.behavior;this.e=e;this.b=c.b};var n=e.ra.prototype;n.V=function(){};n.Zd=function(){};n.cb=function(){};e.k=new function(){};e.ca=new function(){};e.Ra=new function(){}})();function uc(e){this.b=e}
(function(){function e(){}function n(){}var c=uc.prototype;c.Da=function(c){this.behavior=c;this.b=c.b};c.Da.prototype.V=function(){};c.ra=function(c,e){this.type=c;this.behavior=c.behavior;this.e=e;this.b=c.b;this.ni=this.vk=this.uk=this.Wl=this.Wg=this.dh=this.rg=this.Hh=this.lk=this.Jj=!1;this.fc=null;this.um=-1;this.sf=this.rf=0;this.lj=!1;this.$f=this.Wc=0;this.kj=!0;this.la=this.P=0};var p=c.ra.prototype;p.Pq=function(){this.nb=Math.cos(this.dg);this.ob=Math.sin(this.dg);this.Gf=Math.cos(this.dg-
Math.PI/2);this.Hf=Math.sin(this.dg-Math.PI/2);this.nb=hb(this.nb);this.ob=hb(this.ob);this.Gf=hb(this.Gf);this.Hf=hb(this.Hf);this.Dl=this.Rd;0>this.Rd&&(this.nb*=-1,this.ob*=-1,this.Rd=Math.abs(this.Rd))};p.V=function(){this.wg=this.p[0];this.Qf=this.p[1];this.Yf=this.p[2];this.Gh=this.p[3];this.Dl=this.Rd=this.p[4];this.Tj=this.p[5];this.ql=0!==this.p[6];this.om=this.p[7]/1E3;this.zs=1===this.p[8];this.enabled=0!==this.p[9];this.Og=!1;this.Pg=this.b.Qe(this.e);this.vm=-1;this.Kf=0;this.dg=W(90);
this.Pq();var c=this;this.zs&&!this.b.Ea&&(jQuery(document).keydown(function(e){c.Jm(e)}),jQuery(document).keyup(function(e){c.Km(e)}));this.jc||(this.Cp=function(e){c.Im(e)});this.b.Vk(this.Cp);this.e.F.isPlatformBehavior=!0};p.Fb=function(){return{ii:this.Wl,lfx:this.rf,lfy:this.sf,lfo:this.fc?this.fc.uid:-1,am:this.Wc,en:this.enabled,fall:this.$f,ft:this.kj,dx:this.P,dy:this.la,ms:this.wg,acc:this.Qf,dec:this.Yf,js:this.Gh,g:this.Rd,g1:this.Dl,mf:this.Tj,wof:this.Og,woj:this.Pg?this.Pg.uid:-1,
ga:this.dg,edj:this.ql,cdj:this.Wg,dj:this.dh,sus:this.om}};p.Xb=function(c){this.Wl=c.ii;this.rf=c.lfx;this.sf=c.lfy;this.um=c.lfo;this.Wc=c.am;this.enabled=c.en;this.$f=c.fall;this.kj=c.ft;this.P=c.dx;this.la=c.dy;this.wg=c.ms;this.Qf=c.acc;this.Yf=c.dec;this.Gh=c.js;this.Rd=c.g;this.Dl=c.g1;this.Tj=c.mf;this.Og=c.wof;this.vm=c.woj;this.dg=c.ga;this.ql=c.edj;this.Wg=c.cdj;this.dh=c.dj;this.om=c.sus;this.ni=this.vk=this.uk=this.rg=this.Hh=this.lk=this.Jj=!1;this.Kf=0;this.Pq()};p.td=function(){-1===
this.um?this.fc=null:this.fc=this.b.eg(this.um);-1===this.vm?this.Pg=null:this.Pg=this.b.eg(this.vm)};p.Im=function(c){this.fc==c&&(this.fc=null)};p.Zd=function(){this.fc=null;this.b.hv(this.Cp)};p.Jm=function(c){switch(c.which){case 38:c.preventDefault();this.Hh=!0;break;case 37:c.preventDefault();this.Jj=!0;break;case 39:c.preventDefault(),this.lk=!0}};p.Km=function(c){switch(c.which){case 38:c.preventDefault();this.rg=this.Hh=!1;break;case 37:c.preventDefault();this.Jj=!1;break;case 39:c.preventDefault(),
this.lk=!1}};p.Gi=function(){return 0>this.Rd?-1:1};p.Mo=function(){var c=null,e=null,b,a;b=this.e.x;a=this.e.y;this.e.x+=this.nb;this.e.y+=this.ob;this.e.A();if(this.fc&&this.b.Sc(this.e,this.fc))return this.e.x=b,this.e.y=a,this.e.A(),this.fc;(c=this.b.nc(this.e))||0!==this.$f||(e=this.b.Qe(this.e,!0));this.e.x=b;this.e.y=a;this.e.A();if(c){if(this.b.Sc(this.e,c))return null;this.lj=!1;return c}if(e&&e.length){a=c=0;for(b=e.length;c<b;c++)e[a]=e[c],this.b.Sc(this.e,e[c])||a++;if(1<=a)return this.lj=
!0,e[0]}return null};p.cb=function(){};p.Zp=function(){var c=this.b.Hl(this.e),e,b,a,n,p,d,f,m,g;this.Hh||this.ni||(this.rg=!1);var A=this.Jj||this.uk;a=this.lk||this.vk;var y=(n=this.Hh||this.ni)&&!this.rg;this.ni=this.vk=this.uk=!1;if(this.enabled){this.Wl&&(y=n=a=A=!1);n||(this.Kf=0);m=this.fc;g=!1;this.kj&&((this.b.nc(this.e)||this.b.Qe(this.e))&&this.b.kd(this.e,-this.nb,-this.ob,4,!0),this.kj=!1);!m||0!==this.la||m.y===this.sf&&m.x===this.rf||(e=m.x-this.rf,b=m.y-this.sf,this.e.x+=e,this.e.y+=
b,this.e.A(),this.rf=m.x,this.sf=m.y,g=!0,this.b.nc(this.e)&&this.b.kd(this.e,-e,-b,2.5*Math.sqrt(e*e+b*b)));var G=this.Mo();if(b=this.b.nc(this.e))if(this.e.F.inputPredicted)this.b.kd(this.e,-this.nb,-this.ob,10,!1);else if(this.b.dv(this.e,Math.max(this.e.width,this.e.height)/2))this.b.di(this.e,b);else return;G?(this.Wg=this.dh=!1,0<this.la&&(this.Og||(this.b.Vm(this.e,-this.nb,-this.ob,G),this.Og=!0),this.la=0),m!=G)?(this.fc=G,this.rf=G.x,this.sf=G.y,this.b.di(this.e,G)):g&&(b=this.b.nc(this.e))&&
(this.b.di(this.e,b),0!==e&&(0<e?this.b.kd(this.e,-this.Gf,-this.Hf):this.b.kd(this.e,this.Gf,this.Hf)),this.b.kd(this.e,-this.nb,-this.ob)):n||(this.Wg=!0);if(G&&y||!G&&this.ql&&n&&this.Wg&&!this.dh)m=this.e.x,g=this.e.y,this.e.x-=this.nb,this.e.y-=this.ob,this.e.A(),this.b.nc(this.e)?y=!1:(this.Kf=this.om,this.b.trigger(uc.prototype.k.Fr,this.e),this.Wc=2,this.la=-this.Gh,y=!0,G?this.rg=!0:this.dh=!0),this.e.x=m,this.e.y=g,this.e.A();G||(n&&0<this.Kf?(this.la=-this.Gh,this.Kf-=c):(this.fc=null,
this.la+=this.Rd*c,this.la>this.Tj&&(this.la=this.Tj)),y&&(this.rg=!0));this.Og=!!G;A==a&&(0>this.P?(this.P+=this.Yf*c,0<this.P&&(this.P=0)):0<this.P&&(this.P-=this.Yf*c,0>this.P&&(this.P=0)));A&&!a&&(this.P=0<this.P?this.P-(this.Qf+this.Yf)*c:this.P-this.Qf*c);a&&!A&&(this.P=0>this.P?this.P+(this.Qf+this.Yf)*c:this.P+this.Qf*c);this.P>this.wg?this.P=this.wg:this.P<-this.wg&&(this.P=-this.wg);A=!1;0!==this.P&&(m=this.e.x,g=this.e.y,e=this.P*c*this.Gf,b=this.P*c*this.Hf,this.e.x+=this.Gf*(1<this.P?
1:-1)-this.nb,this.e.y+=this.Hf*(1<this.P?1:-1)-this.ob,this.e.A(),n=!1,p=this.b.nc(this.e),this.e.x=m+e,this.e.y=g+b,this.e.A(),a=this.b.nc(this.e),!a&&G&&(a=this.b.Qe(this.e))&&(this.e.x=m,this.e.y=g,this.e.A(),this.b.Sc(this.e,a)?(a=null,n=!1):n=!0,this.e.x=m+e,this.e.y=g+b,this.e.A()),a?(e=Math.abs(this.P*c)+2,p||!this.b.kd(this.e,-this.nb,-this.ob,e,n,a))?(this.b.di(this.e,a),e=Math.max(Math.abs(this.P*c*2.5),30),this.b.kd(this.e,this.Gf*(0>this.P?1:-1),this.Hf*(0>this.P?1:-1),e,!1)?!G||n||this.lj||
(m=this.e.x,g=this.e.y,this.e.x+=this.nb,this.e.y+=this.ob,this.b.nc(this.e)?this.b.kd(this.e,-this.nb,-this.ob,3,!1)||(this.e.x=m,this.e.y=g,this.e.A()):(this.e.x=m,this.e.y=g,this.e.A())):(this.e.x=m,this.e.y=g,this.e.A()),n||(this.P=0)):!p&&!y&&Math.abs(this.la)<Math.abs(this.Gh/4)&&(this.la=0,G||(A=!0)):(m=this.Mo(),G&&!m?(b=Math.ceil(Math.abs(this.P*c))+2,m=this.e.x,g=this.e.y,this.e.x+=this.nb*b,this.e.y+=this.ob*b,this.e.A(),this.b.nc(this.e)||this.b.Qe(this.e)?this.b.kd(this.e,-this.nb,-this.ob,
b+2,!0):(this.e.x=m,this.e.y=g,this.e.A())):m&&0===this.la&&this.b.Vm(this.e,-this.nb,-this.ob,m)));if(0!==this.la){m=this.e.x;g=this.e.y;this.e.x+=this.la*c*this.nb;this.e.y+=this.la*c*this.ob;e=this.e.x;a=this.e.y;this.e.A();b=this.b.nc(this.e);n=!1;if(!b&&0<this.la&&!G){if((n=0<this.$f?null:this.b.Qe(this.e,!0))&&n.length){if(this.Pg){this.e.x=m;this.e.y=g;this.e.A();f=p=0;for(d=n.length;p<d;p++)n[f]=n[p],this.b.Sc(this.e,n[p])||f++;n.length=f;this.e.x=e;this.e.y=a;this.e.A()}1<=n.length&&(b=n[0])}n=
!!b}b&&(this.b.di(this.e,b),this.Kf=0,e=n?Math.abs(this.la*c*2.5+10):Math.max(Math.abs(this.la*c*2.5+10),30),this.b.kd(this.e,this.nb*(0>this.la?1:-1),this.ob*(0>this.la?1:-1),e,n,b)?(this.fc=b,this.rf=b.x,this.sf=b.y,(this.lj=n)&&(A=!0),this.la=0):(this.e.x=m,this.e.y=g,this.e.A(),this.Og=!0,n||(this.la=0)))}3!==this.Wc&&0<this.la&&!G&&(this.b.trigger(uc.prototype.k.Er,this.e),this.Wc=3);if(G||A)3===this.Wc||A||y&&0===this.la?(this.b.trigger(uc.prototype.k.Jr,this.e),this.Wc=0===this.P&&0===this.la?
0:1):(0!==this.Wc&&0===this.P&&0===this.la&&(this.b.trigger(uc.prototype.k.Or,this.e),this.Wc=0),1===this.Wc||0===this.P&&0===this.la||y||(this.b.trigger(uc.prototype.k.Mr,this.e),this.Wc=1));0<this.$f&&this.$f--;this.Pg=this.b.Qe(this.e)}};e.prototype.Fr=function(){return!0};e.prototype.Er=function(){return!0};e.prototype.Or=function(){return!0};e.prototype.Mr=function(){return!0};e.prototype.Jr=function(){return!0};c.k=new e;n.prototype.Yr=function(c){switch(c){case 0:this.uk=!0;break;case 1:this.vk=
!0;break;case 2:this.ni=!0}};c.ca=new n;c.Ra=new function(){}})();function vc(e){this.b=e;this.mn=this.tk=this.mi=this.ln=0}
(function(){var e=vc.prototype;e.Da=function(c){this.behavior=c;this.b=c.b};e.Da.prototype.V=function(){};e.ra=function(c,e){this.type=c;this.behavior=c.behavior;this.e=e;this.b=c.b};var n=e.ra.prototype;n.V=function(){this.enabled=0!==this.p[0]};n.Fb=function(){return{smg:this.behavior.ln,ss:this.behavior.mi,se:this.behavior.tk,smd:this.behavior.mn}};n.Xb=function(c){this.behavior.ln=c.smg;this.behavior.mi=c.ss;this.behavior.tk=c.se;this.behavior.mn=c.smd};n.cb=function(){};n.sn=function(){if(this.enabled){var c=
this.behavior.Uj.ge(),e=0,k=0,n,b,a,v=0;n=0;for(b=c.length;n<b;n++){a:{a=c[n];for(var q=void 0,d=void 0,f=void 0,q=0,d=a.N.length;q<d;++q)if(f=a.N[q],f.behavior instanceof vc){a=f;break a}a=null}a&&a.enabled&&(e+=c[n].x,k+=c[n].y,++v)}c=this.e.i.hb;b=this.b.qb.X;a=n=0;b>=this.behavior.mi&&b<this.behavior.tk&&(n=this.behavior.ln*Math.min(this.b.Lf,1),0===this.behavior.mn&&(n*=1-(b-this.behavior.mi)/(this.behavior.tk-this.behavior.mi)),b=Math.random()*Math.PI*2,a=Math.random()*n,n=Math.cos(b)*a,a*=
Math.sin(b));c.gn(e/v+n);c.hn(k/v+a)}};e.ca=new function(){}})();function kc(e){this.b=e}(function(){var e=kc.prototype;e.Da=function(c){this.behavior=c;this.b=c.b};e.Da.prototype.V=function(){};e.ra=function(c,e){this.type=c;this.behavior=c.behavior;this.e=e;this.b=c.b};var n=e.ra.prototype;n.V=function(){this.e.F.solidEnabled=0!==this.p[0]};n.cb=function(){};e.k=new function(){};e.ca=new function(){}})();
function jc(){return[nc,mc,oc,pc,Z,qc,rc,sc,uc,vc,lc,kc,Y.prototype.k.mr,Y.prototype.k.Jn,Z.prototype.ca.Rr,Y.prototype.k.ir,Z.prototype.ca.sr,oc.prototype.k.nr,Z.prototype.ca.Sr,uc.prototype.ca.Yr,Z.prototype.k.or,Z.prototype.ca.Tr,pc.prototype.k.Mk,Y.prototype.k.cr,Y.prototype.ca.er,Y.prototype.Ra.round,pc.prototype.Ra.Tk,pc.prototype.Ra.Uk,Z.prototype.ca.Wr,Z.prototype.Ra.Tk,Z.prototype.ca.Xr,Z.prototype.Ra.Uk,pc.prototype.k.Ok,Z.prototype.ca.fr,sc.prototype.k.pr,sc.prototype.ca.Gn,oc.prototype.k.In,
sc.prototype.ca.Ln,Z.prototype.ca.Gn,Z.prototype.k.Cr,Y.prototype.ca.jr,mc.prototype.k.Rg,mc.prototype.ca.Qr,Y.prototype.Ra.Xn,Y.prototype.k.hr,Z.prototype.ca.Zr,Z.prototype.k.dr,nc.prototype.k.Hn,Y.prototype.ca.Ur]};
