// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var ba,ca,I,ea,fa,K,M,ga,ha,ia,ka,ma,O,na,oa,pa,qa,ra,sa,ta,ua,va,wa,R,ya,za,Aa,Ba,Ca,Ea,Fa,Ga,Ha,Ia,Na,Oa,Pa,Qa,S,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,U,Nb,Ob,Pb,V,Qb,Rb={},Sb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(f){return f.__proto__}:function(f){return f.constructor.prototype});
(function(){function f(a,q,c,d){this.set(a,q,c,d)}function n(){this.wb=this.ub=this.yb=this.xb=this.Jb=this.Ib=this.Oa=this.Na=0}function b(a,q,c,d){a<q?c<d?(g=a<c?a:c,h=q>d?q:d):(g=a<d?a:d,h=q>c?q:c):c<d?(g=q<c?q:c,h=a>d?a:d):(g=q<d?q:d,h=a>c?a:c)}function p(){this.items=this.Lc=null;this.mf=0;l&&(this.Lc=new Set);this.Mf=[];this.Ld=!0}function m(a){u[q++]=a}function a(){this.aa=this.ej=this.y=this.Ij=0}function c(a){this.Ja=[];this.th=this.vh=this.wh=this.uh=0;this.bh(a)}function d(a,q){this.tq=
a;this.sq=q;this.cells={}}function r(a,q,c){var d;return v.length?(d=v.pop(),d.ds=a,d.x=q,d.y=c,d):new ba(a,q,c)}function e(a,q,c){this.ds=a;this.x=q;this.y=c;this.Jg=new ca}I=function(a){window.console&&window.console.log&&window.console.log(a)};ea=function(a){window.console&&window.console.error&&window.console.error(a)};fa=function(a){return"undefined"===typeof a};K=function(a){return"number"===typeof a};M=function(a){return"string"===typeof a};ga=function(a){return 0<a&&0===(a-1&a)};ha=function(a){--a;
for(var q=1;32>q;q<<=1)a|=a>>q;return a+1};ia=function(a){return 0>a?-a:a};ka=function(a,q){return a<q?a:q};ma=Math.PI;O=function(a){return 0<=a?a|0:(a|0)-1};na=function(a){var q=a|0;return q===a?q:q+1};oa=function(a,q,c,d,s,b,v,l){var r,g,e,k;a<c?(g=a,r=c):(g=c,r=a);s<v?(k=s,e=v):(k=v,e=s);if(r<k||g>e)return!1;q<d?(g=q,r=d):(g=d,r=q);b<l?(k=b,e=l):(k=l,e=b);if(r<k||g>e)return!1;r=s-a+v-c;g=b-q+l-d;a=c-a;q=d-q;s=v-s;b=l-b;l=ia(q*s-b*a);return ia(s*g-b*r)>l?!1:ia(a*g-q*r)<=l};f.prototype.set=function(a,
q,c,d){this.left=a;this.top=q;this.right=c;this.bottom=d};f.prototype.xq=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};f.prototype.width=function(){return this.right-this.left};f.prototype.height=function(){return this.bottom-this.top};f.prototype.offset=function(a,q){this.left+=a;this.top+=q;this.right+=a;this.bottom+=q;return this};f.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&
(a=this.top,this.top=this.bottom,this.bottom=a)};f.prototype.os=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};f.prototype.ps=function(a,q,c){return!(a.right+q<this.left||a.bottom+c<this.top||a.left+q>this.right||a.top+c>this.bottom)};f.prototype.lb=function(a,q){return a>=this.left&&a<=this.right&&q>=this.top&&q<=this.bottom};f.prototype.Uq=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};pa=f;
n.prototype.Df=function(a){this.Na=a.left;this.Oa=a.top;this.Ib=a.right;this.Jb=a.top;this.xb=a.right;this.yb=a.bottom;this.ub=a.left;this.wb=a.bottom};n.prototype.Eo=function(a,q){if(0===q)this.Df(a);else{var c=Math.sin(q),d=Math.cos(q),s=a.left*c,b=a.top*c,v=a.right*c,c=a.bottom*c,l=a.left*d,r=a.top*d,g=a.right*d,d=a.bottom*d;this.Na=l-b;this.Oa=r+s;this.Ib=g-b;this.Jb=r+v;this.xb=g-c;this.yb=d+v;this.ub=l-c;this.wb=d+s}};n.prototype.offset=function(a,q){this.Na+=a;this.Oa+=q;this.Ib+=a;this.Jb+=
q;this.xb+=a;this.yb+=q;this.ub+=a;this.wb+=q;return this};var g=0,h=0;n.prototype.tm=function(a){b(this.Na,this.Ib,this.xb,this.ub);a.left=g;a.right=h;b(this.Oa,this.Jb,this.yb,this.wb);a.top=g;a.bottom=h};n.prototype.lb=function(a,q){var c=this.Ib-this.Na,d=this.Jb-this.Oa,s=this.xb-this.Na,b=this.yb-this.Oa,v=a-this.Na,l=q-this.Oa,r=c*c+d*d,g=c*s+d*b,d=c*v+d*l,e=s*s+b*b,k=s*v+b*l,u=1/(r*e-g*g),c=(e*d-g*k)*u,r=(r*k-g*d)*u;if(0<=c&&0<r&&1>c+r)return!0;c=this.ub-this.Na;d=this.wb-this.Oa;r=c*c+d*
d;g=c*s+d*b;d=c*v+d*l;u=1/(r*e-g*g);c=(e*d-g*k)*u;r=(r*k-g*d)*u;return 0<=c&&0<r&&1>c+r};n.prototype.Jd=function(a,q){if(q)switch(a){case 0:return this.Na;case 1:return this.Ib;case 2:return this.xb;case 3:return this.ub;case 4:return this.Na;default:return this.Na}else switch(a){case 0:return this.Oa;case 1:return this.Jb;case 2:return this.yb;case 3:return this.wb;case 4:return this.Oa;default:return this.Oa}};n.prototype.Mn=function(){return(this.Na+this.Ib+this.xb+this.ub)/4};n.prototype.Nn=function(){return(this.Oa+
this.Jb+this.yb+this.wb)/4};n.prototype.cn=function(a){var q=a.Mn(),c=a.Nn();if(this.lb(q,c))return!0;q=this.Mn();c=this.Nn();if(a.lb(q,c))return!0;var d,s,b,v,l,r,g,e;for(g=0;4>g;g++)for(e=0;4>e;e++)if(q=this.Jd(g,!0),c=this.Jd(g,!1),d=this.Jd(g+1,!0),s=this.Jd(g+1,!1),b=a.Jd(e,!0),v=a.Jd(e,!1),l=a.Jd(e+1,!0),r=a.Jd(e+1,!1),oa(q,c,d,s,b,v,l,r))return!0;return!1};qa=n;ra=function(a,q){for(var c in q)q.hasOwnProperty(c)&&(a[c]=q[c]);return a};sa=function(a,q){var c,d;q=O(q);if(!(0>q||q>=a.length)){c=
q;for(d=a.length-1;c<d;c++)a[c]=a[c+1];a.length=d}};ta=function(a,q){a.length=q.length;var c,d;c=0;for(d=q.length;c<d;c++)a[c]=q[c]};ua=function(a,q){a.push.apply(a,q)};va=function(a,q){var c,d;c=0;for(d=a.length;c<d;++c)if(a[c]===q)return c;return-1};wa=function(a,q){var c=va(a,q);-1!==c&&sa(a,c)};R=function(a){return a/(180/ma)};ya=function(a){return 180/ma*a};za=function(a){a%=360;0>a&&(a+=360);return a};Aa=function(a){a%=2*ma;0>a&&(a+=2*ma);return a};Ba=function(a){return za(ya(a))};Ca=function(a){return Aa(R(a))};
Ea=function(a,q,c,d){return Math.atan2(d-q,c-a)};Fa=function(a,q){if(a===q)return 0;var c=Math.sin(a),d=Math.cos(a),s=Math.sin(q),b=Math.cos(q),c=c*s+d*b;return 1<=c?0:-1>=c?ma:Math.acos(c)};Ga=function(a,q,c){var d=Math.sin(a),s=Math.cos(a),b=Math.sin(q),v=Math.cos(q);return Math.acos(d*b+s*v)>c?0<s*b-d*v?Aa(a+c):Aa(a-c):Aa(q)};Ha=function(a,q){var c=Math.sin(a),d=Math.cos(a),s=Math.sin(q),b=Math.cos(q);return 0>=d*s-c*b};Ia=function(a,q,c,d,s,b){if(0===c)return b?a:q;var v=Math.sin(c);c=Math.cos(c);
a-=d;q-=s;var l=a*v;a=a*c-q*v;q=q*c+l;return b?a+d:q+s};Na=function(a,q,c,d){a=c-a;q=d-q;return Math.sqrt(a*a+q*q)};Oa=function(a,q){return!a!==!q};Pa=function(a){for(var q in a)if(a.hasOwnProperty(q))return!0;return!1};Qa=function(a){for(var q in a)a.hasOwnProperty(q)&&delete a[q]};var y=+new Date;S=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==
typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-y};var k=!1,F=k=!1,w=!1;"undefined"!==typeof window&&(k=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),k=!k&&/safari/i.test(navigator.userAgent),F=/(iphone|ipod|ipad)/i.test(navigator.userAgent),w=window.c2ejecta);var l=!k&&!w&&!F&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;p.prototype.contains=function(a){return this.ef()?!1:l?this.Lc.has(a):this.items&&
this.items.hasOwnProperty(a)};p.prototype.add=function(a){if(l)this.Lc.has(a)||(this.Lc.add(a),this.Ld=!1);else{var q=a.toString(),c=this.items;c?c.hasOwnProperty(q)||(c[q]=a,this.mf++,this.Ld=!1):(this.items={},this.items[q]=a,this.mf=1,this.Ld=!1)}};p.prototype.remove=function(a){if(!this.ef())if(l)this.Lc.has(a)&&(this.Lc["delete"](a),this.Ld=!1);else if(this.items){a=a.toString();var q=this.items;q.hasOwnProperty(a)&&(delete q[a],this.mf--,this.Ld=!1)}};p.prototype.clear=function(){this.ef()||
(l?this.Lc.clear():(this.items=null,this.mf=0),this.Mf.length=0,this.Ld=!0)};p.prototype.ef=function(){return 0===this.count()};p.prototype.count=function(){return l?this.Lc.size:this.mf};var u=null,q=0;p.prototype.It=function(){if(!this.Ld){if(l)this.Mf.length=this.Lc.size,u=this.Mf,q=0,this.Lc.forEach(m),u=null,q=0;else{var a=this.Mf;a.length=this.mf;var c,d=0,s=this.items;if(s)for(c in s)s.hasOwnProperty(c)&&(a[d++]=s[c])}this.Ld=!0}};p.prototype.Oc=function(){this.It();return this.Mf};ca=p;new ca;
Ta=function(a,q){l?Ra(a,q.Lc):Sa(a,q.Oc())};Ra=function(a,q){var c,d,s,b;d=c=0;for(s=a.length;c<s;++c)b=a[c],q.has(b)||(a[d++]=b);a.length=d};Sa=function(a,q){var c,d,s,b;d=c=0;for(s=a.length;c<s;++c)b=a[c],-1===va(q,b)&&(a[d++]=b);a.length=d};a.prototype.add=function(a){this.y=a-this.Ij;this.ej=this.aa+this.y;this.Ij=this.ej-this.aa-this.y;this.aa=this.ej};a.prototype.reset=function(){this.aa=this.ej=this.y=this.Ij=0};Ua=a;Va=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};c.prototype.bh=
function(a){this.qo=a;this.Jc=a.length/2;this.Ja.length=a.length;this.Ah=this.Bh=-1;this.wm=0};c.prototype.hf=function(){return!this.qo.length};c.prototype.Aa=function(){for(var a=this.Ja,q=a[0],c=q,d=a[1],s=d,b,v,l=1,r=this.Jc;l<r;++l)v=2*l,b=a[v],v=a[v+1],b<q&&(q=b),b>c&&(c=b),v<d&&(d=v),v>s&&(s=v);this.uh=q;this.vh=c;this.wh=d;this.th=s};c.prototype.Df=function(a,q,c){this.Ja.length=8;this.Jc=4;var d=this.Ja;d[0]=a.left-q;d[1]=a.top-c;d[2]=a.right-q;d[3]=a.top-c;d[4]=a.right-q;d[5]=a.bottom-c;
d[6]=a.left-q;d[7]=a.bottom-c;this.Bh=a.right-a.left;this.Ah=a.bottom-a.top;this.Aa()};c.prototype.Cf=function(a,q,c,d,s){this.Ja.length=8;this.Jc=4;var b=this.Ja;b[0]=a.Na-q;b[1]=a.Oa-c;b[2]=a.Ib-q;b[3]=a.Jb-c;b[4]=a.xb-q;b[5]=a.yb-c;b[6]=a.ub-q;b[7]=a.wb-c;this.Bh=d;this.Ah=s;this.Aa()};c.prototype.Do=function(a){this.Jc=a.Jc;ta(this.Ja,a.Ja);this.uh=a.uh;this.wh-a.wh;this.vh=a.vh;this.th=a.th};c.prototype.Se=function(a,q,c){if(this.Bh!==a||this.Ah!==q||this.wm!==c){this.Bh=a;this.Ah=q;this.wm=
c;var d,s,b,v,l,r=0,g=1,e=this.qo,k=this.Ja;0!==c&&(r=Math.sin(c),g=Math.cos(c));c=0;for(b=this.Jc;c<b;c++)d=2*c,s=d+1,v=e[d]*a,l=e[s]*q,k[d]=v*g-l*r,k[s]=l*g+v*r;this.Aa()}};c.prototype.lb=function(a,q){var c=this.Ja;if(a===c[0]&&q===c[1])return!0;var d,s,b,v=this.Jc,l=this.uh-110,r=this.wh-101,g=this.vh+131,e=this.th+120,k,u,h=0,p=0;for(d=0;d<v;d++)s=2*d,b=(d+1)%v*2,k=c[s],s=c[s+1],u=c[b],b=c[b+1],oa(l,r,a,q,k,s,u,b)&&h++,oa(g,e,a,q,k,s,u,b)&&p++;return 1===h%2||1===p%2};c.prototype.hg=function(a,
q,c){var d=a.Ja,s=this.Ja;if(this.lb(d[0]+q,d[1]+c)||a.lb(s[0]-q,s[1]-c))return!0;var b,v,l,r,g,e,k,u,h,p,m,f;b=0;for(r=this.Jc;b<r;b++)for(v=2*b,l=(b+1)%r*2,u=s[v],v=s[v+1],h=s[l],p=s[l+1],l=0,k=a.Jc;l<k;l++)if(g=2*l,e=(l+1)%k*2,m=d[g]+q,g=d[g+1]+c,f=d[e]+q,e=d[e+1]+c,oa(u,v,h,p,m,g,f,e))return!0;return!1};Wa=c;d.prototype.jk=function(a,q,c){var d;d=this.cells[a];return d?(d=d[q])?d:c?(d=r(this,a,q),this.cells[a][q]=d):null:c?(d=r(this,a,q),this.cells[a]={},this.cells[a][q]=d):null};d.prototype.ph=
function(a){return O(a/this.tq)};d.prototype.qh=function(a){return O(a/this.sq)};d.prototype.update=function(a,q,c){var d,s,b,l,r;if(q)for(d=q.left,s=q.right;d<=s;++d)for(b=q.top,l=q.bottom;b<=l;++b)if(!c||!c.lb(d,b))if(r=this.jk(d,b,!1))r.remove(a),r.ef()&&(r.Jg.clear(),1E3>v.length&&v.push(r),this.cells[d][b]=null);if(c)for(d=c.left,s=c.right;d<=s;++d)for(b=c.top,l=c.bottom;b<=l;++b)q&&q.lb(d,b)||this.jk(d,b,!0).ns(a)};d.prototype.so=function(a,q){var c,d,s,b,v,l;c=this.ph(a.left);s=this.qh(a.top);
d=this.ph(a.right);for(v=this.qh(a.bottom);c<=d;++c)for(b=s;b<=v;++b)(l=this.jk(c,b,!1))&&l.dump(q)};Xa=d;var v=[];e.prototype.ef=function(){return this.Jg.ef()};e.prototype.ns=function(a){this.Jg.add(a)};e.prototype.remove=function(a){this.Jg.remove(a)};e.prototype.dump=function(a){ua(a,this.Jg.Oc())};ba=e;var s="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");Ya=function(a){return 0>=a||11<=a?"source-over":s[a-1]};Za=
function(a,q,c){if(c)switch(a.jb=c.ONE,a.ib=c.ONE_MINUS_SRC_ALPHA,q){case 1:a.jb=c.ONE;a.ib=c.ONE;break;case 3:a.jb=c.ONE;a.ib=c.ZERO;break;case 4:a.jb=c.ONE_MINUS_DST_ALPHA;a.ib=c.ONE;break;case 5:a.jb=c.DST_ALPHA;a.ib=c.ZERO;break;case 6:a.jb=c.ZERO;a.ib=c.SRC_ALPHA;break;case 7:a.jb=c.ONE_MINUS_DST_ALPHA;a.ib=c.ZERO;break;case 8:a.jb=c.ZERO;a.ib=c.ONE_MINUS_SRC_ALPHA;break;case 9:a.jb=c.DST_ALPHA;a.ib=c.ONE_MINUS_SRC_ALPHA;break;case 10:a.jb=c.ONE_MINUS_DST_ALPHA,a.ib=c.SRC_ALPHA}};$a=function(a){return Math.round(1E6*
a)/1E6};ab=function(a,c){return"string"!==typeof a||"string"!==typeof c||a.length!==c.length?!1:a===c?!0:a.toLowerCase()===c.toLowerCase()};bb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||ab(a.tagName,"canvas")?!0:!1}})();var Tb="undefined"!==typeof Float32Array?Float32Array:Array;function Ub(f){var n=new Tb(3);f&&(n[0]=f[0],n[1]=f[1],n[2]=f[2]);return n}
function Vb(f){var n=new Tb(16);f&&(n[0]=f[0],n[1]=f[1],n[2]=f[2],n[3]=f[3],n[4]=f[4],n[5]=f[5],n[6]=f[6],n[7]=f[7],n[8]=f[8],n[9]=f[9],n[10]=f[10],n[11]=f[11],n[12]=f[12],n[13]=f[13],n[14]=f[14],n[15]=f[15]);return n}function Wb(f,n){n[0]=f[0];n[1]=f[1];n[2]=f[2];n[3]=f[3];n[4]=f[4];n[5]=f[5];n[6]=f[6];n[7]=f[7];n[8]=f[8];n[9]=f[9];n[10]=f[10];n[11]=f[11];n[12]=f[12];n[13]=f[13];n[14]=f[14];n[15]=f[15]}
function Xb(f,n){var b=n[0],p=n[1];n=n[2];f[0]*=b;f[1]*=b;f[2]*=b;f[3]*=b;f[4]*=p;f[5]*=p;f[6]*=p;f[7]*=p;f[8]*=n;f[9]*=n;f[10]*=n;f[11]*=n}
function Yb(f,n,b,p){p||(p=Vb());var m,a,c,d,r,e,g,h,y=f[0],k=f[1];f=f[2];a=b[0];c=b[1];m=b[2];b=n[1];e=n[2];y===n[0]&&k===b&&f===e?(f=p,f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1):(b=y-n[0],e=k-n[1],g=f-n[2],h=1/Math.sqrt(b*b+e*e+g*g),b*=h,e*=h,g*=h,n=c*g-m*e,m=m*b-a*g,a=a*e-c*b,(h=Math.sqrt(n*n+m*m+a*a))?(h=1/h,n*=h,m*=h,a*=h):a=m=n=0,c=e*a-g*m,d=g*n-b*a,r=b*m-e*n,(h=Math.sqrt(c*c+d*d+r*r))?(h=1/h,c*=h,d*=h,r*=h):r=d=c=0,
p[0]=n,p[1]=c,p[2]=b,p[3]=0,p[4]=m,p[5]=d,p[6]=e,p[7]=0,p[8]=a,p[9]=r,p[10]=g,p[11]=0,p[12]=-(n*y+m*k+a*f),p[13]=-(c*y+d*k+r*f),p[14]=-(b*y+e*k+g*f),p[15]=1)}
(function(){function f(a){this.ff=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.xm=Ub([0,0,100]);this.wn=Ub([0,0,0]);this.Xo=Ub([0,1,0]);this.Xl=Ub([1,1,1]);this.Fm=!0;this.Tk=Vb();this.vc=Vb();this.on=Vb();this.Qj=Vb();this.m=a;this.Zm()}function n(a,c,d){this.m=a;this.dh=c;this.name=d;this.uc=a.getAttribLocation(c,"aPos");this.Sd=a.getAttribLocation(c,"aTex");this.un=a.getUniformLocation(c,"matP");this.ti=a.getUniformLocation(c,"matMV");this.pf=
a.getUniformLocation(c,"opacity");this.vn=a.getUniformLocation(c,"samplerFront");this.Cg=a.getUniformLocation(c,"samplerBack");this.Fe=a.getUniformLocation(c,"destStart");this.Ee=a.getUniformLocation(c,"destEnd");this.Qk=a.getUniformLocation(c,"seconds");this.Pk=a.getUniformLocation(c,"pixelWidth");this.Ok=a.getUniformLocation(c,"pixelHeight");this.Bg=a.getUniformLocation(c,"layerScale");this.Ag=a.getUniformLocation(c,"layerAngle");this.Eg=a.getUniformLocation(c,"viewOrigin");this.Dg=a.getUniformLocation(c,
"scrollPos");this.hs=!!(this.Pk||this.Ok||this.Qk||this.Cg||this.Fe||this.Ee||this.Bg||this.Ag||this.Eg||this.Dg);this.En=this.Fn=-999;this.wi=1;this.An=this.zn=0;this.Cn=this.yn=this.xn=1;this.Hn=this.Gn=this.Jn=this.In=this.Bn=0;this.Jk=[];this.Dn=Vb();this.pf&&a.uniform1f(this.pf,1);this.vn&&a.uniform1i(this.vn,0);this.Cg&&a.uniform1i(this.Cg,1);this.Fe&&a.uniform2f(this.Fe,0,0);this.Ee&&a.uniform2f(this.Ee,1,1);this.Bg&&a.uniform1f(this.Bg,1);this.Ag&&a.uniform1f(this.Ag,0);this.Eg&&a.uniform2f(this.Eg,
0,0);this.Dg&&a.uniform2f(this.Dg,0,0);this.ve=!1}function b(a,c){this.type=a;this.q=c;this.m=c.m;this.pc=this.jc=this.Yn=0;this.Y=this.Nc=null;this.Fo=[]}f.prototype.Zm=function(){var a=this.m,c;this.pn=1;this.Ce=this.Be=null;this.Jh=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.DEPTH_TEST);this.qn=a.ONE;this.nn=a.ONE_MINUS_SRC_ALPHA;this.jl=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.jl);this.oh=
Array(4);this.hh=Array(4);for(c=0;4>c;c++)this.oh[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.oh[c]),this.hh[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.hh[c]);this.hd=0;this.ls=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.ls);this.Tl=new Float32Array(16E3);this.Gl=new Float32Array(16E3);this.mo=new Float32Array(32E3);for(var d=new Uint16Array(12E3),b=c=0;12E3>c;)d[c++]=b,d[c++]=b+1,d[c++]=b+2,d[c++]=b,d[c++]=b+2,d[c++]=b+3,b+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,d,
a.STATIC_DRAW);this.yf=this.bd=0;this.Ma=[];c=this.Pj({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}","<default>");
this.Ma.push(c);c=this.Pj({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(c);for(var e in Zb)Zb.hasOwnProperty(e)&&this.Ma.push(this.Pj(Zb[e],
"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}",e));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.gd=[];this.Qc=0;this.Tb=this.Ab=!1;this.Bm=this.pg=-1;this.Vf=null;this.tr=a.createFramebuffer();this.vo=null;this.be=Ub([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.Fs=a[0];this.Uk=
a[1];2048<this.Uk&&(this.Uk=2048);this.Zc(0)};n.prototype.Ol=function(a){var c=this.Dn;if(c[0]!==a[0]||c[1]!==a[1]||c[2]!==a[2]||c[3]!==a[3]||c[4]!==a[4]||c[5]!==a[5]||c[6]!==a[6]||c[7]!==a[7]||c[8]!==a[8]||c[9]!==a[9]||c[10]!==a[10]||c[11]!==a[11]||c[12]!==a[12]||c[13]!==a[13]||c[14]!==a[14]||c[15]!==a[15])Wb(a,this.Dn),this.m.uniformMatrix4fv(this.ti,!1,a)};f.prototype.Pj=function(a,c,d){var b=this.m,e=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(e,a.src);b.compileShader(e);if(!b.getShaderParameter(e,
b.COMPILE_STATUS))return b.deleteShader(e),null;var g=b.createShader(b.VERTEX_SHADER);b.shaderSource(g,c);b.compileShader(g);if(!b.getShaderParameter(g,b.COMPILE_STATUS))return b.deleteShader(e),b.deleteShader(g),null;c=b.createProgram();b.attachShader(c,e);b.attachShader(c,g);b.linkProgram(c);if(!b.getProgramParameter(c,b.LINK_STATUS))return b.deleteShader(e),b.deleteShader(g),b.deleteProgram(c),null;b.useProgram(c);b.deleteShader(e);b.deleteShader(g);d=new n(b,c,d);d.$j=a.$j||0;d.ak=a.ak||0;d.Am=
!!a.Am;d.pm=!!a.pm;d.I=a.I||[];a=0;for(e=d.I.length;a<e;a++)d.I[a][1]=b.getUniformLocation(c,d.I[a][0]),d.Jk.push(0),b.uniform1f(d.I[a][1],0);return d};f.prototype.qk=function(a){var c,d;c=0;for(d=this.Ma.length;c<d;c++)if(this.Ma[c].name===a)return c;return-1};f.prototype.po=function(a,c,d){var b=this.vc,e=this.Tk,g=[0,0,0,0,0,0,0,0];g[0]=b[0]*a+b[4]*c+b[12];g[1]=b[1]*a+b[5]*c+b[13];g[2]=b[2]*a+b[6]*c+b[14];g[3]=b[3]*a+b[7]*c+b[15];g[4]=e[0]*g[0]+e[4]*g[1]+e[8]*g[2]+e[12]*g[3];g[5]=e[1]*g[0]+e[5]*
g[1]+e[9]*g[2]+e[13]*g[3];g[6]=e[2]*g[0]+e[6]*g[1]+e[10]*g[2]+e[14]*g[3];g[7]=-g[2];0!==g[7]&&(g[7]=1/g[7],g[4]*=g[7],g[5]*=g[7],g[6]*=g[7],d[0]=(.5*g[4]+.5)*this.width,d[1]=(.5*g[5]+.5)*this.height)};f.prototype.Bf=function(a,c,d){if(this.width!==a||this.height!==c||d){this.Nd();this.width=a;this.height=c;this.m.viewport(0,0,a,c);c=a/c;var b=this.Tk,e;e=1*Math.tan(45*Math.PI/360);c*=e;a=-c;d=-e;b||(b=Vb());var g=c-a,h=e-d;b[0]=2/g;b[1]=0;b[2]=0;b[3]=0;b[4]=0;b[5]=2/h;b[6]=0;b[7]=0;b[8]=(c+a)/g;b[9]=
(e+d)/h;b[10]=-1001/999;b[11]=-1;b[12]=0;b[13]=0;b[14]=-2E3/999;b[15]=0;Yb(this.xm,this.wn,this.Xo,this.vc);a=[0,0];c=[0,0];this.po(0,0,a);this.po(1,1,c);this.Xl[0]=1/(c[0]-a[0]);this.Xl[1]=-1/(c[1]-a[1]);a=0;for(c=this.Ma.length;a<c;a++)d=this.Ma[a],d.ve=!1,d.un&&(this.m.useProgram(d.dh),this.m.uniformMatrix4fv(d.un,!1,this.Tk));this.m.useProgram(this.Ma[this.pg].dh);this.m.bindTexture(this.m.TEXTURE_2D,null);this.m.activeTexture(this.m.TEXTURE1);this.m.bindTexture(this.m.TEXTURE_2D,null);this.m.activeTexture(this.m.TEXTURE0);
this.Ce=this.Be=null}};f.prototype.Wd=function(){Yb(this.xm,this.wn,this.Xo,this.vc);Xb(this.vc,this.Xl)};f.prototype.translate=function(a,c){if(0!==a||0!==c){this.be[0]=a;this.be[1]=c;this.be[2]=0;var d=this.vc,b=this.be,e=b[0],g=b[1],b=b[2];d[12]=d[0]*e+d[4]*g+d[8]*b+d[12];d[13]=d[1]*e+d[5]*g+d[9]*b+d[13];d[14]=d[2]*e+d[6]*g+d[10]*b+d[14];d[15]=d[3]*e+d[7]*g+d[11]*b+d[15]}};f.prototype.scale=function(a,c){if(1!==a||1!==c)this.be[0]=a,this.be[1]=c,this.be[2]=1,Xb(this.vc,this.be)};f.prototype.wo=
function(a){if(0!==a){var c=this.vc,d,b=Math.sin(a);a=Math.cos(a);var e=c[0],g=c[1],h=c[2],p=c[3],k=c[4],m=c[5],f=c[6],l=c[7];d?c!==d&&(d[8]=c[8],d[9]=c[9],d[10]=c[10],d[11]=c[11],d[12]=c[12],d[13]=c[13],d[14]=c[14],d[15]=c[15]):d=c;d[0]=e*a+k*b;d[1]=g*a+m*b;d[2]=h*a+f*b;d[3]=p*a+l*b;d[4]=e*-b+k*a;d[5]=g*-b+m*a;d[6]=h*-b+f*a;d[7]=p*-b+l*a}};f.prototype.ee=function(){for(var a=!1,c=0;16>c;c++)if(this.on[c]!==this.vc[c]){a=!0;break}a&&(a=this.wc(),a.type=5,a.Y?Wb(this.vc,a.Y):a.Y=Vb(this.vc),Wb(this.vc,
this.on),this.Tb=this.Ab=!1)};b.prototype.Nq=function(){this.m.bindTexture(this.m.TEXTURE_2D,this.Nc)};b.prototype.Oq=function(){var a=this.m;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Nc);a.activeTexture(a.TEXTURE0)};b.prototype.Kq=function(){var a=this.Yn,c=this.q;c.Jh=a;c=c.Vf;c.pf&&c.wi!==a&&(c.wi=a,this.m.uniform1f(c.pf,a))};b.prototype.Hq=function(){this.m.drawElements(this.m.TRIANGLES,this.pc,this.m.UNSIGNED_SHORT,2*this.jc)};b.prototype.Jq=function(){this.m.blendFunc(this.jc,
this.pc)};b.prototype.Pq=function(){var a,c,d,b=this.q.Ma,e=this.q.Bm;a=0;for(c=b.length;a<c;a++)d=b[a],a===e&&d.ti?(d.Ol(this.Y),d.ve=!0):d.ve=!1;Wb(this.Y,this.q.Qj)};b.prototype.Iq=function(){var a=this.m,c=this.q;this.Nc?(c.Ce===this.Nc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),c.Ce=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,c.tr),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Nc,0)):(a.framebufferTexture2D(a.FRAMEBUFFER,
a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};b.prototype.Fq=function(){var a=this.m;0===this.jc?(a.clearColor(this.Y[0],this.Y[1],this.Y[2],this.Y[3]),a.clear(a.COLOR_BUFFER_BIT)):(a.enable(a.SCISSOR_TEST),a.scissor(this.Y[0],this.Y[1],this.Y[2],this.Y[3]),a.clearColor(0,0,0,0),a.clear(this.m.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST))};b.prototype.Gq=function(){var a=this.m,c=this.q,d=c.Ma[1];a.useProgram(d.dh);!d.ve&&d.ti&&(d.Ol(c.Qj),d.ve=!0);a.enableVertexAttribArray(d.uc);
a.bindBuffer(a.ARRAY_BUFFER,c.jl);a.vertexAttribPointer(d.uc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.jc/4,this.pc);d=c.Vf;a.useProgram(d.dh);0<=d.uc&&(a.enableVertexAttribArray(d.uc),a.bindBuffer(a.ARRAY_BUFFER,c.oh[c.hd]),a.vertexAttribPointer(d.uc,2,a.FLOAT,!1,0,0));0<=d.Sd&&(a.enableVertexAttribArray(d.Sd),a.bindBuffer(a.ARRAY_BUFFER,c.hh[c.hd]),a.vertexAttribPointer(d.Sd,2,a.FLOAT,!1,0,0))};b.prototype.Lq=function(){var a=this.m,c=this.q,d=c.Ma[this.jc];c.Bm=this.jc;c.Vf=d;a.useProgram(d.dh);
!d.ve&&d.ti&&(d.Ol(c.Qj),d.ve=!0);d.pf&&d.wi!==c.Jh&&(d.wi=c.Jh,a.uniform1f(d.pf,c.Jh));0<=d.uc&&(a.enableVertexAttribArray(d.uc),a.bindBuffer(a.ARRAY_BUFFER,c.oh[c.hd]),a.vertexAttribPointer(d.uc,2,a.FLOAT,!1,0,0));0<=d.Sd&&(a.enableVertexAttribArray(d.Sd),a.bindBuffer(a.ARRAY_BUFFER,c.hh[c.hd]),a.vertexAttribPointer(d.Sd,2,a.FLOAT,!1,0,0))};b.prototype.Mq=function(){var a,c,d=this.q.Vf,b=this.m;a=this.Y;d.Cg&&this.q.Ce!==this.Nc&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,this.Nc),
this.q.Ce=this.Nc,b.activeTexture(b.TEXTURE0));var e=a[0];d.Pk&&e!==d.Fn&&(d.Fn=e,b.uniform1f(d.Pk,e));e=a[1];d.Ok&&e!==d.En&&(d.En=e,b.uniform1f(d.Ok,e));e=a[2];c=a[3];!d.Fe||e===d.zn&&c===d.An||(d.zn=e,d.An=c,b.uniform2f(d.Fe,e,c));e=a[4];c=a[5];!d.Ee||e===d.xn&&c===d.yn||(d.xn=e,d.yn=e,b.uniform2f(d.Ee,e,c));e=a[6];d.Bg&&e!==d.Cn&&(d.Cn=e,b.uniform1f(d.Bg,e));e=a[7];d.Ag&&e!==d.Bn&&(d.Bn=e,b.uniform1f(d.Ag,e));e=a[8];c=a[9];!d.Eg||e===d.In&&c===d.Jn||(d.In=e,d.Jn=c,b.uniform2f(d.Eg,e,c));e=a[10];
c=a[11];!d.Dg||e===d.Gn&&c===d.Hn||(d.Gn=e,d.Hn=c,b.uniform2f(d.Dg,e,c));d.Qk&&b.uniform1f(d.Qk,S()/1E3);if(d.I.length)for(a=0,c=d.I.length;a<c;a++)e=this.Fo[a],e!==d.Jk[a]&&(d.Jk[a]=e,b.uniform1f(d.I[a][1],e))};f.prototype.wc=function(){this.Qc===this.gd.length&&this.gd.push(new b(0,this));return this.gd[this.Qc++]};f.prototype.Nd=function(){if(0!==this.Qc&&!this.m.isContextLost()){var a=this.m;0<this.yf&&(a.bindBuffer(a.ARRAY_BUFFER,this.jl),a.bufferData(a.ARRAY_BUFFER,this.mo.subarray(0,this.yf),
a.STREAM_DRAW),c&&0<=c.uc&&"<point>"===c.name&&a.vertexAttribPointer(c.uc,4,a.FLOAT,!1,0,0));if(0<this.bd){var c=this.Vf;a.bindBuffer(a.ARRAY_BUFFER,this.oh[this.hd]);a.bufferData(a.ARRAY_BUFFER,this.Tl.subarray(0,this.bd),a.STREAM_DRAW);c&&0<=c.uc&&"<point>"!==c.name&&a.vertexAttribPointer(c.uc,2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.hh[this.hd]);a.bufferData(a.ARRAY_BUFFER,this.Gl.subarray(0,this.bd),a.STREAM_DRAW);c&&0<=c.Sd&&"<point>"!==c.name&&a.vertexAttribPointer(c.Sd,2,a.FLOAT,
!1,0,0)}for(var d,a=0,c=this.Qc;a<c;a++)switch(d=this.gd[a],d.type){case 1:d.Hq();break;case 2:d.Nq();break;case 3:d.Kq();break;case 4:d.Jq();break;case 5:d.Pq();break;case 6:d.Iq();break;case 7:d.Fq();break;case 8:d.Gq();break;case 9:d.Lq();break;case 10:d.Mq();break;case 11:d.Oq()}this.yf=this.bd=this.Qc=0;this.Tb=this.Ab=!1;this.hd++;4<=this.hd&&(this.hd=0)}};f.prototype.Je=function(a){if(a!==this.pn){var c=this.wc();c.type=3;this.pn=c.Yn=a;this.Tb=this.Ab=!1}};f.prototype.Yb=function(a){if(a!==
this.Be){var c=this.wc();c.type=2;this.Be=c.Nc=a;this.Tb=this.Ab=!1}};f.prototype.Xd=function(a,c){if(a!==this.qn||c!==this.nn){var d=this.wc();d.type=4;d.jc=a;d.pc=c;this.qn=a;this.nn=c;this.Tb=this.Ab=!1}};f.prototype.Ao=function(){this.Xd(this.m.ONE,this.m.ONE_MINUS_SRC_ALPHA)};f.prototype.Xg=function(a,c,d,b,e,g,h,p){15992<=this.bd&&this.Nd();var k=this.bd,m=this.Tl,f=this.Gl;if(this.Ab)this.gd[this.Qc-1].pc+=6;else{var l=this.wc();l.type=1;l.jc=k/4*3;l.pc=6;this.Ab=!0;this.Tb=!1}m[k]=a;f[k++]=
0;m[k]=c;f[k++]=0;m[k]=d;f[k++]=1;m[k]=b;f[k++]=0;m[k]=e;f[k++]=1;m[k]=g;f[k++]=1;m[k]=h;f[k++]=0;m[k]=p;f[k++]=1;this.bd=k};f.prototype.yd=function(a,c,d,b,e,g,h,p,k){15992<=this.bd&&this.Nd();var m=this.bd,f=this.Tl,l=this.Gl;if(this.Ab)this.gd[this.Qc-1].pc+=6;else{var u=this.wc();u.type=1;u.jc=m/4*3;u.pc=6;this.Ab=!0;this.Tb=!1}var u=k.left,q=k.top,v=k.right;k=k.bottom;f[m]=a;l[m++]=u;f[m]=c;l[m++]=q;f[m]=d;l[m++]=v;f[m]=b;l[m++]=q;f[m]=e;l[m++]=v;f[m]=g;l[m++]=k;f[m]=h;l[m++]=u;f[m]=p;l[m++]=
k;this.bd=m};f.prototype.Vs=function(a,c,d,b){7996<=this.yf&&this.Nd();var e=this.yf,g=this.mo;if(this.Tb)this.gd[this.Qc-1].pc++;else{var h=this.wc();h.type=8;h.jc=e;h.pc=1;this.Tb=!0;this.Ab=!1}g[e++]=a;g[e++]=c;g[e++]=d;g[e++]=b;this.yf=e};f.prototype.Zc=function(a){if(this.pg!==a){if(!this.Ma[a]){if(0===this.pg)return;a=0}var c=this.wc();c.type=9;this.pg=c.jc=a;this.Tb=this.Ab=!1}};f.prototype.Vg=function(a){a=this.Ma[a];return!(!a.Fe&&!a.Ee)};f.prototype.ll=function(a){a=this.Ma[a];return!!(a.Fe||
a.Ee||a.Am)};f.prototype.bt=function(a){a=this.Ma[a];return 0!==a.$j||0!==a.ak};f.prototype.Nr=function(a){return this.Ma[a].$j};f.prototype.Or=function(a){return this.Ma[a].ak};f.prototype.Pr=function(a,c){return this.Ma[a].I[c][2]};f.prototype.Pi=function(a){return this.Ma[a].pm};f.prototype.Af=function(a,c,d,b,e,g,h,m,k,p,f,l,u,q){var v=this.Ma[this.pg],s,B;if(v.hs||q.length){s=this.wc();s.type=10;s.Y?Wb(this.vc,s.Y):s.Y=Vb();B=s.Y;B[0]=c;B[1]=d;B[2]=b;B[3]=e;B[4]=g;B[5]=h;B[6]=m;B[7]=k;B[8]=p;
B[9]=f;B[10]=l;B[11]=u;s.Nc=v.Cg?a:null;if(q.length)for(d=s.Fo,d.length=q.length,a=0,c=q.length;a<c;a++)d[a]=q[a];this.Tb=this.Ab=!1}};f.prototype.clear=function(a,c,d,b){var e=this.wc();e.type=7;e.jc=0;e.Y||(e.Y=Vb());e.Y[0]=a;e.Y[1]=c;e.Y[2]=d;e.Y[3]=b;this.Tb=this.Ab=!1};f.prototype.clearRect=function(a,c,d,b){if(!(0>d||0>b)){var e=this.wc();e.type=7;e.jc=1;e.Y||(e.Y=Vb());e.Y[0]=a;e.Y[1]=c;e.Y[2]=d;e.Y[3]=b;this.Tb=this.Ab=!1}};f.prototype.$s=function(){this.Nd();this.m.flush()};var p=[],m={};
f.prototype.wq=function(){p.length=0;m={}};f.prototype.nf=function(a,c,d,b){c=!!c;d=!!d;var e=a.src+","+c+","+d+(c?",undefined":""),g=null;if("undefined"!==typeof a.src&&m.hasOwnProperty(e))return g=m[e],g.zh++,g;this.Nd();var h=this.m,f=ga(a.width)&&ga(a.height),g=h.createTexture();h.bindTexture(h.TEXTURE_2D,g);h.pixelStorei(h.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var k=h.RGBA,n=h.RGBA,w=h.UNSIGNED_BYTE;if(b&&!this.ff)switch(b){case 1:n=k=h.RGB;break;case 2:w=h.UNSIGNED_SHORT_4_4_4_4;break;case 3:w=
h.UNSIGNED_SHORT_5_5_5_1;break;case 4:n=k=h.RGB,w=h.UNSIGNED_SHORT_5_6_5}if(!f&&c){b=document.createElement("canvas");b.width=ha(a.width);b.height=ha(a.height);var l=b.getContext("2d");l.webkitImageSmoothingEnabled=d;l.mozImageSmoothingEnabled=d;l.msImageSmoothingEnabled=d;l.imageSmoothingEnabled=d;l.drawImage(a,0,0,a.width,a.height,0,0,b.width,b.height);h.texImage2D(h.TEXTURE_2D,0,k,n,w,b)}else h.texImage2D(h.TEXTURE_2D,0,k,n,w,a);c?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.REPEAT),h.texParameteri(h.TEXTURE_2D,
h.TEXTURE_WRAP_T,h.REPEAT)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE));d?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.LINEAR),f&&this.Fm?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR_MIPMAP_LINEAR),h.generateMipmap(h.TEXTURE_2D)):h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.NEAREST),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,
h.NEAREST));h.bindTexture(h.TEXTURE_2D,null);this.Be=null;g.Sf=a.width;g.Rf=a.height;g.zh=1;g.vm=e;p.push(g);return m[e]=g};f.prototype.Md=function(a,c,d){var b;this.Nd();var e=this.m;this.ff&&(b=!1);var g=e.createTexture();e.bindTexture(e.TEXTURE_2D,g);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,a,c,0,e.RGBA,b?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,null);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,
e.TEXTURE_MAG_FILTER,d?e.LINEAR:e.NEAREST);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,d?e.LINEAR:e.NEAREST);e.bindTexture(e.TEXTURE_2D,null);this.Be=null;g.Sf=a;g.Rf=c;p.push(g);return g};f.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.zh&&1<a.zh?a.zh--:(this.Nd(),a===this.Be&&(this.m.bindTexture(this.m.TEXTURE_2D,null),this.Be=null),a===this.Ce&&(this.m.activeTexture(this.m.TEXTURE1),this.m.bindTexture(this.m.TEXTURE_2D,null),this.m.activeTexture(this.m.TEXTURE0),this.Ce=
null),wa(p,a),"undefined"!==typeof a.vm&&delete m[a.vm],this.m.deleteTexture(a)))};f.prototype.Yc=function(a){if(a!==this.vo){var c=this.wc();c.type=6;this.vo=c.Nc=a;this.Tb=this.Ab=!1}};cb=f})();
(function(){function f(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function n(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function b(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var c=this;this.qc=(this.jg=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||
"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2isphonegap&&window.c2isphonegap;this.$a=!!a.dc;this.df="undefined"!==typeof window.AppMobi||this.$a;this.fc=!!window.c2cocoonjs;this.Ec=!!window.c2ejecta;this.fc&&(CocoonJS.App.onSuspended.addEventListener(function(){c.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){c.setSuspended(!1)}));this.Ec&&(document.addEventListener("pagehide",function(){c.setSuspended(!0)}),document.addEventListener("pageshow",
function(){c.setSuspended(!1)}),document.addEventListener("resize",function(){c.setSize(window.innerWidth,window.innerHeight)}));this.da=this.$a||this.fc||this.Ec;this.ff=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent);this.hn=/tizen/i.test(navigator.userAgent);this.ei=/android/i.test(navigator.userAgent)&&!this.hn&&!this.ff;this.Hk=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.ff;this.mn=/ipad/i.test(navigator.userAgent);
this.ki=this.Hk||this.mn||this.Ec;this.zs=this.Hk&&/os\s6/i.test(navigator.userAgent);this.ig=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent);this.dn=/amazonwebappplatform/i.test(navigator.userAgent);this.ss=/firefox/i.test(navigator.userAgent);this.gn=/safari/i.test(navigator.userAgent)&&!this.ig&&!this.ff;this.vs=/windows/i.test(navigator.userAgent);this.Qd="undefined"!==typeof window.c2nodewebkit||/nodewebkit/i.test(navigator.userAgent);this.xs=!("undefined"===typeof window.c2isWindows8||
!window.c2isWindows8);this.ys=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.gi=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.kn=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.jn=this.xs||this.ys||this.kn;this.qs=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.fi=this.ei&&!this.ig&&!this.jg&&!this.ss&&!this.dn&&!this.da;this.devicePixelRatio=1;this.Uc=this.qc||
this.jg||this.df||this.fc||this.ei||this.ki||this.gi||this.kn||this.qs||this.hn||this.Ec;this.Uc||(this.Uc=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.Qd||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)||(this.Qd=!0);this.rs="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=a;this.ym=document.getElementById("c2canvasdiv");
this.ba=this.q=this.m=null;this.fk="";this.Rh=!1;this.Wn=this.Xn=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.$a&&(window.c2runtime=this);this.Qd&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},require("nw.gui").App.clearCache());this.fi&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow",
"visible");this.width=a.width;this.height=a.height;this.L=this.width;this.K=this.height;this.Hh=this.width;this.Gh=this.height;this.rg=window.innerWidth;this.qg=window.innerHeight;this.wr=!1;this.ha=!0;this.lg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.n=[];this.Da=[];this.Mk={};this.Vb=[];this.Yj={};this.nd=[];this.Of=[];this.nj=[];this.Bj=[];this.lq=[];this.ne={};this.Dk=this.Pd=!1;this.td=0;this.Fk=!1;this.Bc=[];this.ud=this.qb=this.xg=this.Ui="";this.fh=
this.Io=!1;this.Nj=this.Fg=this.md=this.qe=0;this.If=1;this.gc=new Ua;this.cd=new Ua;this.ni=0;this.Ln=!0;this.Ai=this.Th=this.Zj=this.jh=this.sg=this.ek=0;this.je=null;this.Uj=[];this.Xj=[];this.Oh=-1;this.Rk=[[]];this.Ll=this.vi=0;this.nl(null);this.Xf=this.Rn=this.Ig=0;this.gh=[];this.jj=this.Qi=-1;this.lf=!0;this.si=0;this.kg=!1;this.zt=0;this.Re=null;this.es=!1;this.Kk=0;this.ka=this.$e=this.ol=!1;this.Vn=new ca;this.Zk=new ca;this.$k=new ca;this.et=[];this.Mc=new Wa([]);this.Fl=new Wa([]);this.Id=
[];this.Zh={};this.Te={};this.Qe={};this.Nf={};this.rm={};this.tn=this.pi=this.Ub=this.hc=this.sn=this.oi=this.Z=null;this.Lf=this.Gk=!1;this.gk=[null,null];this.te=0;this.ck="";this.Td={};this.Zi=this.of=null;this.yi=[];this.gt()}}function p(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function m(a,c,d,b){var l=indexedDB.open("_C2SaveStates");l.onupgradeneeded=p;l.onerror=b;l.onsuccess=function(l){l=l.target.result;l.onerror=b;l.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,
data:c}).onsuccess=d}}function a(a,c,d){var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=p;b.onerror=d;b.onsuccess=function(b){b=b.target.result;b.onerror=d;var l=b.transaction(["saves"]).objectStore("saves").get(a);l.onsuccess=function(){l.result?c(l.result.data):c(null)}}}function c(){I("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location+="?continuous"}function d(a){var c,d=
{};for(c in a)!a.hasOwnProperty(c)||a[c]instanceof ca||a[c]&&"undefined"!==typeof a[c].Qu||(d[c]=a[c]);return d}b.prototype.gt=function(){var a=this,c;c=this.gi?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;c.open("GET","data.js",!0);var d=!1;if(!this.da&&"response"in c&&"responseType"in c)try{c.responseType="json",d="json"===c.responseType}catch(b){d=!1}if(!d&&"responseType"in c)try{c.responseType="text"}catch(l){}if("overrideMimeType"in c)try{c.overrideMimeType("application/json; charset=utf-8")}catch(g){}c.onload=
function(){if(d)a.Nk(c.response);else if(a.Ec){var b=c.responseText,b=b.substr(b.indexOf("{"));a.Nk(JSON.parse(b))}else a.Nk(JSON.parse(c.responseText))};c.onerror=function(a){ea("Error requesting data.js:");ea(a)};c.send()};b.prototype.ms=function(){var a=this,c,d,b,l,g,e,k,u,r;this.devicePixelRatio=(this.ze=(!this.da||this.Ec)&&this.Jt&&!this.fi)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.fb();d=!(!this.wr&&(!this.Dj||
this.Qd||this.jn||this.gi||this.jg||this.qc||this.dn));0<this.mb&&this.setSize(f(),n(),!0);try{this.Sq&&(this.fc||this.Ec||!this.da)&&(c={alpha:d,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.m=this.canvas.getContext("webgl",c)||this.canvas.getContext("experimental-webgl",c))}catch(h){}if(this.m){this.da||(this.ab=document.createElement("canvas"),jQuery(this.ab).appendTo(this.canvas.parentNode),this.ab.oncontextmenu=function(){return!1},this.ab.onselectstart=function(){return!1},this.ab.width=
this.Hh,this.ab.height=this.Gh,jQuery(this.ab).css({width:this.Hh+"px",height:this.Gh+"px"}),this.oo(),this.hl=this.ab.getContext("2d"));this.q=new cb(this.m,this.Uc);this.q.Bf(this.canvas.width,this.canvas.height);this.q.Fm=0!==this.Qq;this.ba=null;this.canvas.addEventListener("webglcontextlost",function(c){c.preventDefault();a.Hs();I("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.q.Zm();a.q.Bf(a.q.width,a.q.height,
!0);a.hc=null;a.Ub=null;a.gk[0]=null;a.gk[1]=null;a.Is();a.ha=!0;I("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);c=0;for(d=this.n.length;c<d;c++)for(g=this.n[c],b=0,l=g.H.length;b<l;b++)k=g.H[b],k.bb=this.q.qk(k.id),this.Lf=this.Lf||this.q.Vg(k.bb);c=0;for(d=this.Vb.length;c<d;c++){u=this.Vb[c];b=0;for(l=u.H.length;b<l;b++)k=u.H[b],k.bb=this.q.qk(k.id);b=0;for(l=u.M.length;b<l;b++)for(r=u.M[b],g=0,e=r.H.length;g<e;g++)k=r.H[g],k.bb=this.q.qk(k.id),this.Lf=this.Lf||this.q.Vg(k.bb)}}else{if(0<
this.mb&&this.$a){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ba=AppMobi.canvas.getContext("2d");try{this.ba.samplingMode=this.S?"smooth":"sharp",this.ba.globalScale=1,this.ba.HTML5CompatibilityMode=!0,this.ba.imageSmoothingEnabled=this.S}catch(m){}0!==this.width&&0!==this.height&&(this.ba.width=this.width,this.ba.height=this.height)}this.ba||(c=this.fc?{antialias:!!this.S,alpha:d}:{alpha:d},this.ba=this.canvas.getContext("2d",c),this.ba.webkitImageSmoothingEnabled=
this.S,this.ba.mozImageSmoothingEnabled=this.S,this.ba.msImageSmoothingEnabled=this.S,this.ba.imageSmoothingEnabled=this.S);this.hl=this.ab=null}this.ij=function(){a.Ya(!1)};window==window.top||this.da||this.jn||this.gi||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.fc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&
(I("Reloading for continuous preview"),this.xg="__c2_continuouspreview",this.fh=!0),this.Ts&&!this.Uc&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){a.setSuspended(!0)})));this.da||(c=function(a){bb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur&&document.activeElement.blur()},window.navigator.pointerEnabled?document.addEventListener("pointerdown",c):window.navigator.msPointerEnabled?
document.addEventListener("MSPointerDown",c):document.addEventListener("touchstart",c),document.addEventListener("mousedown",c));0===this.mb&&this.ze&&1<this.devicePixelRatio&&this.setSize(this.Va,this.Ua,!0);this.To();this.bs();this.go();this.va={}};b.prototype.setSize=function(a,c,d){var b=0,l=0,g=0,e=0,e=0,k=this.zs&&this.gn&&!navigator.standalone&&!this.da&&!this.qc;k&&(c+=60);if(this.rg!==a||this.qg!==c||d){this.rg=a;this.qg=c;var u=this.mb,r=(document.mozFullScreen||document.webkitIsFullScreen||
!!document.msFullscreenElement||document.fullScreen||this.kg)&&!this.qc;if(r||0!==this.mb||d)r&&0<this.te&&(u=this.te),d=this.devicePixelRatio,4<=u?(g=this.Va/this.Ua,a/c>g?(g*=c,5===u?(e=g*d/this.Va,1<e?e=Math.floor(e):1>e&&(e=1/Math.ceil(1/e)),g=this.Va*e/d,e=this.Ua*e/d,b=(a-g)/2,l=(c-e)/2,a=g,c=e):(b=(a-g)/2,a=g)):(e=a/g,5===u?(e=e*d/this.Ua,1<e?e=Math.floor(e):1>e&&(e=1/Math.ceil(1/e)),g=this.Va*e/d,e=this.Ua*e/d,b=(a-g)/2,l=(c-e)/2,a=g):l=(c-e)/2,c=e),r&&!this.Qd&&(l=b=0)):this.Qd&&this.kg&&
0===this.Mm&&(b=Math.floor((a-this.Va)/2),l=Math.floor((c-this.Ua)/2),a=this.Va,c=this.Ua),2>u&&(this.Qf=d),this.ze&&this.mn&&1<d&&(1024<=a&&(a=1023),1024<=c&&(c=1023)),this.Hh=Math.round(a),this.Gh=Math.round(c),this.width=Math.round(a*d),this.height=Math.round(c*d),this.ha=!0,this.ep?(this.L=this.width,this.K=this.height,this.oc=!0):this.width<this.Va&&this.height<this.Ua||1===u?(this.L=this.width,this.K=this.height,this.oc=!0):(this.L=this.Va,this.K=this.Ua,this.oc=!1,2===u?(g=this.Va/this.Ua,
u=this.rg/this.qg,u<g?this.L=this.K*u:u>g&&(this.K=this.L/u)):3===u&&(g=this.Va/this.Ua,u=this.rg/this.qg,u>g?this.L=this.K*u:u<g&&(this.K=this.L/u))),this.ym&&!this.da&&(jQuery(this.ym).css({width:Math.round(a)+"px",height:Math.round(c)+"px","margin-left":Math.floor(b)+"px","margin-top":Math.floor(l)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(c)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*d),this.canvas.height=Math.round(c*
d),this.Ec?(this.canvas.style.left=Math.floor(b)+"px",this.canvas.style.top=Math.floor(l)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(c)+"px"):this.ze&&!this.da&&jQuery(this.canvas).css({width:Math.round(a)+"px",height:Math.round(c)+"px"})),this.ab&&(this.ab.width=Math.round(a),this.ab.height=Math.round(c),jQuery(this.ab).css({width:Math.round(a)+"px",height:Math.round(c)+"px"})),this.q&&this.q.Bf(Math.round(a*d),Math.round(c*d)),this.$a&&this.ba&&(this.ba.width=
Math.round(a),this.ba.height=Math.round(c)),this.ba&&(this.ba.webkitImageSmoothingEnabled=this.S,this.ba.mozImageSmoothingEnabled=this.S,this.ba.msImageSmoothingEnabled=this.S,this.ba.imageSmoothingEnabled=this.S),this.To(),this.da||!k&&!this.Hk||window.setTimeout(function(){window.scrollTo(0,1)},100)}};b.prototype.To=function(){if(this.nq&&0!==this.fl){var a="portrait";2===this.fl&&(a="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(a):screen.lockOrientation?screen.lockOrientation(a):
screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}};b.prototype.Hs=function(){this.q.wq();this.Gk=!0;var a,c,d;a=0;for(c=this.n.length;a<c;a++)d=this.n[a],d.Bi&&d.Bi()};b.prototype.Is=function(){this.Gk=!1;var a,c,d;a=0;for(c=this.n.length;a<c;a++)d=this.n[a],d.Ci&&d.Ci()};b.prototype.oo=function(){if(!this.da){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||
document.msFullscreenElement||this.kg)&&!this.qc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.ab).css(a)}};var r=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;b.prototype.setSuspended=function(a){var c;if(a&&!this.lg)for(I("[Construct 2] Suspending"),this.lg=!0,-1!==this.Qi&&r&&r(this.Qi),-1!==this.jj&&clearTimeout(this.jj),a=0,c=this.gh.length;a<
c;a++)this.gh[a](!0);else if(!a&&this.lg){I("[Construct 2] Resuming");this.lg=!1;this.ni=S();this.sg=S();a=this.Fg=this.Th=0;for(c=this.gh.length;a<c;a++)this.gh[a](!1);this.Ya(!1)}};b.prototype.jq=function(a){this.gh.push(a)};b.prototype.Fd=function(a){return this.yi[a]};b.prototype.Nk=function(a){a&&a.project||ea("Project model unavailable");a=a.project;this.name=a[0];this.Lm=a[1];this.mb=a[12];this.Mm=a[12];this.Va=a[10];this.Ua=a[11];this.fo=this.Va/2;this.ho=this.Ua/2;this.da&&!this.Ec&&(4<=
a[12]||0===a[12])&&(I("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Mm=this.mb=3);this.Rl=a[18];this.zg=a[19];0===this.zg&&(this.of=new Image,this.of.src="loading-logo.png");this.Ig=a[21];this.yi=$b();this.$c=new W(this);var c,d,b,l,g,e,k,u,r;c=0;for(d=a[2].length;c<d;c++)k=a[2][c],b=this.Fd(k[0]),db(k,b.prototype),r=new b(this),r.Xi=k[1],r.Rd=k[2],r.Pn=k[9],r.la&&r.la(),this.plugins.push(r);this.yi=$b();c=0;for(d=a[3].length;c<
d;c++){k=a[3][c];g=this.Fd(k[1]);r=null;b=0;for(l=this.plugins.length;b<l;b++)if(this.plugins[b]instanceof g){r=this.plugins[b];break}var h=new r.gb(r);h.name=k[0];h.B=k[2];h.Ck=k[3].slice(0);h.Lt=k[3].length;h.oq=k[4];h.Br=k[5];h.P=k[11];h.B?(h.xi=[],h.od=this.Xf++,h.pa=null):(h.xi=null,h.od=-1,h.pa=[]);h.Ph=null;h.We=null;h.Hm=null;h.Fc=!1;h.Ob=null;k[6]?(h.fj=k[6][0],h.gj=k[6][1],h.ih=k[6][2]):(h.fj=null,h.gj=0,h.ih=0);h.Mb=k[7]?k[7]:null;h.index=c;h.c=[];h.Lh=[];h.$d=[new eb(h)];h.ld=0;h.Rc=null;
h.Cq=0;h.Gf=!0;h.pj=fb;h.Gr=gb;h.Lr=hb;h.ca=ib;h.Wg=jb;h.ml=kb;h.zf=nb;h.Vh=ob;h.ik=pb;h.nk=qb;h.fd=rb;h.Rm=sb;h.Dh=new Xa(this.Va,this.Ua);h.rh=!0;h.sh=!1;h.va={};h.toString=tb;h.Da=[];b=0;for(l=k[8].length;b<l;b++){u=k[8][b];var m=this.Fd(u[1]),p=null;g=0;for(e=this.Da.length;g<e;g++)if(this.Da[g]instanceof m){p=this.Da[g];break}p||(p=new m(this),p.Qn=[],p.sf=new ca,p.la&&p.la(),this.Da.push(p));-1===p.Qn.indexOf(h)&&p.Qn.push(h);g=new p.gb(p,h);g.name=u[0];g.P=u[2];g.la();h.Da.push(g)}h.global=
k[9];h.Ek=k[10];h.H=[];b=0;for(l=k[12].length;b<l;b++)h.H.push({id:k[12][b][0],name:k[12][b][1],bb:-1,Ra:!0,index:b});h.dv=k[13];this.Rl&&!h.B&&!h.Ek&&r.Rd||h.la();h.name&&(this.types[h.name]=h);this.n.push(h);r.Xi&&(b=new r.Ba(h),b.uid=this.Ig++,b.ro=this.Rn++,b.xe=0,b.cg=ub,b.toString=vb,b.qa=k[14],b.la(),h.c.push(b),this.Td[b.uid.toString()]=b)}c=0;for(d=a[4].length;c<d;c++)for(g=a[4][c],e=this.n[g[0]],b=1,l=g.length;b<l;b++)k=this.n[g[b]],k.pa.push(e),e.xi.push(k);c=0;for(d=a[27].length;c<d;c++){g=
a[27][c];e=[];b=0;for(l=g.length;b<l;b++)e.push(this.n[g[b]]);b=0;for(l=e.length;b<l;b++)e[b].Fc=!0,e[b].Ob=e}if(0<this.Xf)for(c=0,d=this.n.length;c<d;c++)if(k=this.n[c],!k.B&&k.pa.length){k.Ph=Array(this.Xf);k.We=Array(this.Xf);k.Hm=Array(this.Xf);h=[];b=p=m=u=0;for(l=k.pa.length;b<l;b++)for(r=k.pa[b],k.Ph[r.od]=u,u+=r.Lt,k.We[r.od]=m,m+=r.oq,k.Hm[r.od]=p,p+=r.Br,g=0,e=r.H.length;g<e;g++)h.push(ra({},r.H[g]));k.H=h.concat(k.H);b=0;for(l=k.H.length;b<l;b++)k.H[b].index=b}c=0;for(d=a[5].length;c<d;c++)k=
a[5][c],b=new wb(this,k),this.Mk[b.name]=b,this.Vb.push(b);c=0;for(d=a[6].length;c<d;c++)k=a[6][c],b=new xb(this,k),this.Yj[b.name]=b,this.nd.push(b);c=0;for(d=this.nd.length;c<d;c++)this.nd[c].za();c=0;for(d=this.nd.length;c<d;c++)this.nd[c].Nl();c=0;for(d=this.nj.length;c<d;c++)this.nj[c].za();this.nj.length=0;this.mq=a[7];this.ck=a[8];this.Xc=a[9];this.Qf=1;this.Sq=a[13];this.S=a[14];this.Dj=a[15];this.Jt=a[17];this.fl=a[20];this.nq=0<this.fl;this.Ts=a[22];this.oc=this.ep=a[23];this.Qq=a[24];this.Zs=
a[25];this.bj=Date.now();this.yi.length=0;this.ms()};var e=!1;b.prototype.Vl=function(a,c){a.cocoonLazyLoad=!0;a.onerror=function(c){e=a.um=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",c)};this.Ec?a.src=c:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(c,function(c){a.src=c},function(d){e=a.um=!0;console&&console.error&&console.error("Error extracting image '"+c+"' from expansion file: ",d)}):a.src=c);this.Of.push(a)};b.prototype.ur=function(a){var c,d;c=0;for(d=
this.Of.length;c<d;c++)if(this.Of[c].yq===a)return this.Of[c];return null};var g=0,h=!1;b.prototype.bs=function(){this.Re&&(g=this.Re.wt(this.mq))};b.prototype.qm=function(){var a=g,c=0,d=0,b=!0,l,e,d=0;for(l=this.Of.length;d<l;d++){e=this.Of[d];var k=e.Oj;if(!k||0>=k)k=5E4;a+=k;e.src&&(e.complete||e.loaded)&&!e.um?c+=k:b=!1}b&&this.Zs&&this.Re&&(h||(this.Re.At(),h=!0),d=this.Re.Mr(),c+=d,d<g&&(b=!1));this.Ie=0==a?0:c/a;return b};b.prototype.go=function(){if(this.ba||this.q){var a=this.ba||this.hl;
this.ab&&this.oo();this.Ie=0;this.rn=-1;if(this.qm())this.cs();else{var c=Date.now()-this.bj;if(a){var d=this.width,b=this.height,l=this.devicePixelRatio;this.ab&&(d=this.Hh,b=this.Gh,l=1);if(3!==this.zg&&(this.fc||500<=c&&this.rn!=this.Ie)){a.clearRect(0,0,d,b);var c=d/2,b=b/2,d=0===this.zg&&this.of.complete,g=40*l,k=0,h=80*l,u;d&&(h=this.of.width*l,u=this.of.height*l,g=h/2,k=u/2,a.drawImage(this.of,O(c-g),O(b-k),h,u));1>=this.zg?(c=O(c-g)+.5,b=O(b+(k+(d?12*l:0)))+.5,a.fillStyle=e?"red":"DodgerBlue",
a.fillRect(c,b,Math.floor(h*this.Ie),6*l),a.strokeStyle="black",a.strokeRect(c,b,h,6*l),a.strokeStyle="white",a.strokeRect(c-1*l,b-1*l,h+2*l,8*l)):2===this.zg&&(a.font=this.Ec?"12pt ArialMT":"12pt Arial",a.fillStyle=e?"#f00":"#999",a.cv="middle",l=Math.round(100*this.Ie)+"%",d=a.measureText?a.measureText(l):null,a.fillText(l,c-(d?d.width:0)/2,b))}this.rn=this.Ie}setTimeout(function(a){return function(){a.go()}}(this),this.fc?10:100)}}};b.prototype.cs=function(){this.ab&&(this.canvas.parentNode.removeChild(this.ab),
this.ab=this.hl=null);this.bj=Date.now();this.sg=S();var a,c,d;if(this.Rl)for(a=0,c=this.n.length;a<c;a++)d=this.n[a],d.B||d.Ek||!d.ya.Rd||d.la();else this.lf=!1;a=0;for(c=this.Vb.length;a<c;a++)this.Vb[a].zq();2<=this.mb&&(a=this.Va/this.Ua,c=this.width/this.height,this.Qf=2!==this.mb&&c>a||2===this.mb&&c<a?this.height/this.Ua:this.width/this.Va);this.Lm?this.Mk[this.Lm].Dl():this.Vb[0].Dl();this.Rl||(this.si=1,this.trigger(W.prototype.j.$l,null));navigator.splashscreen&&navigator.splashscreen.hide&&
navigator.splashscreen.hide();a=0;for(c=this.n.length;a<c;a++)d=this.n[a],d.Gs&&d.Gs();this.Ya(!1);this.$a&&AppMobi.webview.execute("onGameReady();")};var y=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;b.prototype.Ya=function(a){if(this.Z){var c=S();if(this.es&&this.ol&&29>c-this.Kk)this.ol=!1,this.Kk=c,y?this.Qi=y(this.ij,this.canvas):this.jj=setTimeout(this.ij,this.Uc?1:16);else{this.ol=
!0;this.Kk=c;var d=this.mb,b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.qc;(b||this.kg)&&0<this.te&&(d=this.te);0<d&&(!this.ki||window.self!==window.top)&&(d=window.innerHeight,this.rg===window.innerWidth&&this.qg===d||this.setSize(f(),n()));this.da||(b?(this.Rh||(this.fk=jQuery(this.canvas).css("margin")||"0",this.Rh=!0),this.ig||this.Qd||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.Rh?(this.ig||this.Qd||jQuery(this.canvas).css("margin",this.fk),this.fk="",this.Rh=!1,0===this.mb&&this.setSize(Math.round(this.Xn/this.devicePixelRatio),Math.round(this.Wn/this.devicePixelRatio),!0)):(this.Xn=this.width,this.Wn=this.height));this.lf&&(b=this.qm(),this.si=this.Ie,b&&(this.lf=!1,this.Ie=1,this.trigger(W.prototype.j.$l,null)));this.Cs();!this.ha&&!this.fc||this.Gk||this.fh||a||(this.ha=
!1,this.q?this.Qb():this.Cc(),this.Zi&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.Zi[0],this.Zi[1]),this.trigger(W.prototype.j.Cp,null)),this.Zi=null));this.Xu||(this.jh++,this.Zj++,this.Th++);this.Fg+=S()-c;this.lg||a||(y?this.Qi=y(this.ij,this.canvas):this.jj=setTimeout(this.ij,this.Uc?1:16))}}};b.prototype.Cs=function(){var a,c,d,b,l,g,e,k,h;a=S();1E3<=a-this.sg&&(this.sg+=1E3,this.ek=this.Th,this.Th=0,this.Nj=this.Fg,this.Fg=0);this.Ln&&(0!==this.ni&&(c=a-this.ni,0!==c||
this.rs?(this.md=c/1E3,.5<this.md?this.md=0:.1<this.md&&(this.md=.1)):(10<=this.gv&&(this.Ln=!1),this.md=1/60)),this.ni=a);this.qe=this.md*this.If;this.gc.add(this.qe);this.cd.add(this.md);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.kg)&&!this.qc;2<=this.mb||a&&0<this.te?(c=this.Va/this.Ua,d=this.width/this.height,b=this.mb,a&&0<this.te&&(b=this.te),this.Qf=2!==b&&d>c||2===b&&d<c?this.height/this.Ua:this.width/this.Va,this.Z&&(this.Z.yo(this.Z.scrollX),
this.Z.zo(this.Z.scrollY))):this.Qf=this.ze?this.devicePixelRatio:1;this.fb();this.td++;this.$c.jt();this.td--;this.fb();this.td++;d=this.Vn.Oc();a=0;for(c=d.length;a<c;a++)d[a].Zu();a=0;for(c=this.n.length;a<c;a++)if(e=this.n[a],!e.B&&(e.Da.length||e.pa.length))for(d=0,b=e.c.length;d<b;d++)for(k=e.c[d],l=0,g=k.G.length;l<g;l++)k.G[l].Ya();a=0;for(c=this.n.length;a<c;a++)if(e=this.n[a],!e.B&&(e.Da.length||e.pa.length))for(d=0,b=e.c.length;d<b;d++)for(k=e.c[d],l=0,g=k.G.length;l<g;l++)h=k.G[l],h.Ys&&
h.Ys();d=this.Zk.Oc();a=0;for(c=d.length;a<c;a++)d[a].Ya();this.td--;this.gs();for(a=0;this.je&&10>a++;)this.Cm(this.je);a=0;for(c=this.nd.length;a<c;a++)this.nd[a].wk=!1;this.Z.re&&this.Z.re.La();this.et.length=0;this.td++;a=0;for(c=this.n.length;a<c;a++)if(e=this.n[a],!e.B&&(e.Da.length||e.pa.length))for(d=0,b=e.c.length;d<b;d++)for(k=e.c[d],l=0,g=k.G.length;l<g;l++)h=k.G[l],h.Hl&&h.Hl();d=this.$k.Oc();a=0;for(c=d.length;a<c;a++)d[a].Hl();this.td--};b.prototype.Cm=function(a){var c=this.Z;this.Z.Bt();
var d,b,l,g,e,k,h;if(this.q)for(d=0,b=this.n.length;d<b;d++)e=this.n[d],e.B||!e.oj||e.global&&0!==e.c.length||-1!==a.gg.indexOf(e)||e.oj();c==a&&(this.$c.Kb.length=0);a.Dl();d=0;for(b=this.n.length;d<b;d++)if(e=this.n[d],e.global||e.ya.Xi)for(a=0,c=e.c.length;a<c;a++)if(k=e.c[a],k.el&&k.el(),k.G)for(l=0,g=k.G.length;l<g;l++)h=k.G[l],h.el&&h.el();this.ha=!0;this.fb()};b.prototype.Il=function(a){this.Zk.add(a)};b.prototype.Dt=function(a){this.$k.add(a)};b.prototype.lk=function(a){return a&&-1!==a.Hg?
this.md*a.Hg:this.qe};b.prototype.Cc=function(){this.Z.Cc(this.ba);this.$a&&this.ba.present()};b.prototype.Qb=function(){this.Z.Qb(this.q);this.q.$s()};b.prototype.hq=function(a){a&&this.Uj.push(a)};b.prototype.Xh=function(a){a=a.toString();return this.Td.hasOwnProperty(a)?this.Td[a]:null};var k=[];b.prototype.Ed=function(a){var c,d;c=a.type.name;var b=null;if(this.ne.hasOwnProperty(c)){if(b=this.ne[c],b.contains(a))return}else b=k.length?k.pop():new ca,this.ne[c]=b;b.add(a);this.Pd=!0;if(a.Fc)for(c=
0,d=a.siblings.length;c<d;c++)this.Ed(a.siblings[c]);this.Dk&&b.Mf.push(a);this.td++;this.trigger(Object.getPrototypeOf(a.type.ya).j.Ep,a);this.td--};b.prototype.fb=function(){if(this.Pd){var a,c,d,b,l,g;this.Dk=!0;d=0;for(l=this.Bc.length;d<l;++d)for(a=this.Bc[d],c=a.type,c.c.push(a),b=0,g=c.pa.length;b<g;++b)c.pa[b].c.push(a),c.pa[b].Gf=!0;this.Bc.length=0;this.tp();Qa(this.ne);this.Pd=this.Dk=!1}};b.prototype.tp=function(){for(var a in this.ne)this.ne.hasOwnProperty(a)&&this.jp(this.ne[a])};b.prototype.jp=
function(a){var c=a.Oc(),d=c[0].type,b,l,g,e,h,u;Ta(d.c,a);d.Gf=!0;0===d.c.length&&(d.sh=!1);b=0;for(l=d.pa.length;b<l;++b)u=d.pa[b],Ta(u.c,a),u.Gf=!0;b=0;for(l=this.$c.Kb.length;b<l;++b)if(h=this.$c.Kb[b],h.sb.hasOwnProperty(d.index)&&Ta(h.sb[d.index].sd,a),!d.B)for(g=0,e=d.pa.length;g<e;++g)u=d.pa[g],h.sb.hasOwnProperty(u.index)&&Ta(h.sb[u.index].sd,a);(b=c[0].d)&&Ta(b.c,a);for(b=0;b<c.length;++b)this.ip(c[b],d);a.clear();k.push(a);this.ha=!0};b.prototype.ip=function(a,c){var d,b,l;d=0;for(b=this.Uj.length;d<
b;++d)this.Uj[d](a);a.Ch&&c.Dh.update(a,a.Ch,null);if(d=a.d)wa(d.c,a),d.$b=!0;if(a.G)for(d=0,b=a.G.length;d<b;++d)l=a.G[d],l.Kg&&l.Kg(),l.behavior.sf.remove(a);this.Vn.remove(a);this.Zk.remove(a);this.$k.remove(a);a.Kg&&a.Kg();this.Td.hasOwnProperty(a.uid.toString())&&delete this.Td[a.uid.toString()];this.Ai--;100>c.Lh.length&&c.Lh.push(a)};var F=[];b.prototype.me=function(a,c,d,b,l,g){var e,k,h,u;if(!a)return null;var r=this.n[a[1]],m=r.ya.Rd;if(this.lf&&m&&!r.Ek||m&&!this.q&&11===a[0][11])return null;
var p=c;m||(c=null);var f;r.Lh.length?(f=r.Lh.pop(),f.Kc=!0,r.ya.Ba.call(f,r)):(f=new r.ya.Ba(r),f.Kc=!1);f.uid=d&&!g?a[2]:this.Ig++;this.Td[f.uid.toString()]=f;f.ro=this.Rn++;f.xe=r.c.length;e=0;for(k=this.Bc.length;e<k;++e)this.Bc[e].type===r&&f.xe++;f.cg=ub;h=a[3];if(f.Kc)Qa(f.va);else{f.va={};if("undefined"!==typeof cr_is_preview)for(f.bn=[],f.bn.length=h.length,e=0,k=h.length;e<k;e++)f.bn[e]=h[e][1];f.Ia=[];f.Ia.length=h.length}e=0;for(k=h.length;e<k;e++)f.Ia[e]=h[e][0];if(m){var n=a[0];f.x=
fa(b)?n[0]:b;f.y=fa(l)?n[1]:l;f.z=n[2];f.width=n[3];f.height=n[4];f.depth=n[5];f.e=n[6];f.opacity=n[7];f.Bb=n[8];f.Cb=n[9];f.tb=n[10];e=n[11];!this.q&&r.H.length&&(f.tb=e);f.Tf=Ya(f.tb);this.m&&Za(f,f.tb,this.m);if(f.Kc){e=0;for(k=n[12].length;e<k;e++)for(h=0,u=n[12][e].length;h<u;h++)f.ua[e][h]=n[12][e][h];f.Ca.set(0,0,0,0);f.Ch.set(0,0,-1,-1);f.Nb.Df(f.Ca);f.Hj.length=0}else{f.ua=n[12].slice(0);e=0;for(k=f.ua.length;e<k;e++)f.ua[e]=n[12][e].slice(0);f.U=[];f.Gd=[];f.Gd.length=r.H.length;f.Ca=new pa(0,
0,0,0);f.Ch=new pa(0,0,-1,-1);f.Nb=new qa;f.Hj=[];f.Ha=yb;f.kq=zb;f.lb=Ab;f.Aa=Bb;f.Ql=Cb;f.Sb=Db}f.kh=!1;f.Gt=0;f.Ft=0;f.Et=null;14===n.length&&(f.kh=!0,f.Gt=n[13][0],f.Ft=n[13][1],f.Et=n[13][2]);e=0;for(k=r.H.length;e<k;e++)f.Gd[e]=!0;f.Dd=Eb;f.Dd();f.dp=!!f.U.length;f.xh=!0;f.Jj=!0;r.rh=!0;f.visible=!0;f.Hg=-1;f.d=c;f.Me=c.c.length;"undefined"===typeof f.W&&(f.W=null);this.ha=f.ke=!0}f.toString=vb;var w;e=F.length=0;for(k=r.pa.length;e<k;e++)F.push.apply(F,r.pa[e].Da);F.push.apply(F,r.Da);if(f.Kc)for(e=
0,k=F.length;e<k;e++){var y=F[e];w=f.G[e];w.Kc=!0;y.behavior.Ba.call(w,y,f);n=a[4][e];h=0;for(u=n.length;h<u;h++)w.qa[h]=n[h];w.la();y.behavior.sf.add(f)}else for(f.G=[],e=0,k=F.length;e<k;e++)y=F[e],w=new y.behavior.Ba(y,f),w.Kc=!1,w.qa=a[4][e].slice(0),w.la(),f.G.push(w),y.behavior.sf.add(f);n=a[5];if(f.Kc)for(e=0,k=n.length;e<k;e++)f.qa[e]=n[e];else f.qa=n.slice(0);this.Bc.push(f);this.Pd=!0;c&&(c.c.push(f),1!==c.Fb||1!==c.Gb)&&(r.sh=!0);this.Ai++;if(r.Fc){if(f.Fc=!0,f.Kc?f.siblings.length=0:f.siblings=
[],!d&&!g){e=0;for(k=r.Ob.length;e<k;e++)if(r.Ob[e]!==r){if(!r.Ob[e].Rc)return null;f.siblings.push(this.me(r.Ob[e].Rc,p,!1,m?f.x:b,m?f.y:l,!0))}e=0;for(k=f.siblings.length;e<k;e++)for(f.siblings[e].siblings.push(f),h=0;h<k;h++)e!==h&&f.siblings[e].siblings.push(f.siblings[h])}}else f.Fc=!1,f.siblings=null;f.la();e=0;for(k=f.G.length;e<k;e++)f.G[e].Xs&&f.G[e].Xs();return f};b.prototype.$f=function(a){var c,d;c=0;for(d=this.Z.M.length;c<d;c++){var b=this.Z.M[c];if(ab(b.name,a))return b}return null};
b.prototype.qd=function(a){a=O(a);0>a&&(a=0);a>=this.Z.M.length&&(a=this.Z.M.length-1);return this.Z.M[a]};b.prototype.Mj=function(a){var c,d;c=0;for(d=a.length;c<d;c++)a[c].ca().ja=!0};b.prototype.Wg=function(a){var c,d;c=0;for(d=a.length;c<d;c++)a[c].Wg()};b.prototype.ml=function(a){var c,d;c=0;for(d=a.length;c<d;c++)a[c].ml()};b.prototype.zf=function(a){var c,d;c=0;for(d=a.length;c<d;c++)a[c].zf()};b.prototype.Zo=function(a){if(a.rh){var c,d,b=a.c;c=0;for(d=b.length;c<d;++c)b[c].Ql();b=this.Bc;
c=0;for(d=b.length;c<d;++c)b[c].type===a&&b[c].Ql();a.rh=!1}};b.prototype.Fr=function(a,c,d,b){var l,e,g=a?1!==a.Fb||1!==a.Gb:!1;if(c.B)for(a=0,l=c.xi.length;a<l;++a)e=c.xi[a],g||e.sh?ua(b,e.c):(this.Zo(e),e.Dh.so(d,b));else g||c.sh?ua(b,c.c):(this.Zo(c),c.Dh.so(d,b))};b.prototype.Hf=function(a,c,d,b){var l=a.ca(),e,g,k,h,f,r;if(l.ja)for(b||(l.ja=!1,l.c.length=0),e=0,h=a.c.length;e<h;e++){if(k=a.c[e],k.Aa(),f=k.d.na(c,d,!0),r=k.d.na(c,d,!1),k.lb(f,r)){if(b)return!1;l.c.push(k)}}else{e=g=0;for(h=l.c.length;e<
h;e++)if(k=l.c[e],k.Aa(),f=k.d.na(c,d,!0),r=k.d.na(c,d,!1),k.lb(f,r)){if(b)return!1;l.c[g]=l.c[e];g++}b||(l.c.length=g)}a.fd();return b?!0:l.vk()};b.prototype.Ct=function(a,c){if(!(a&&c&&a!==c&&a.ke&&c.ke))return!1;a.Aa();c.Aa();var d=a.d,b=c.d,l,e,g,k,h,f,r,u;if(d===b||d.Fb===b.Fb&&b.Gb===b.Gb&&d.scale===b.scale&&d.e===b.e&&d.kb===b.kb){if(!a.Ca.os(c.Ca)||!a.Nb.cn(c.Nb)||a.kh&&c.kh)return!1;if(a.kh)return this.No(a,c);if(c.kh)return this.No(c,a);r=a.W&&!a.W.hf();l=c.W&&!c.W.hf();if(!r&&!l)return!0;
r?(a.W.Se(a.width,a.height,a.e),r=a.W):(this.Mc.Cf(a.Nb,a.x,a.y,a.width,a.height),r=this.Mc);l?(c.W.Se(c.width,c.height,c.e),u=c.W):(this.Mc.Cf(c.Nb,c.x,c.y,c.width,c.height),u=this.Mc);return r.hg(u,c.x-a.x,c.y-a.y)}r=a.W&&!a.W.hf();l=c.W&&!c.W.hf();r?(a.W.Se(a.width,a.height,a.e),this.Mc.Do(a.W)):this.Mc.Cf(a.Nb,a.x,a.y,a.width,a.height);r=this.Mc;l?(c.W.Se(c.width,c.height,c.e),this.Fl.Do(c.W)):this.Fl.Cf(c.Nb,c.x,c.y,c.width,c.height);u=this.Fl;l=0;for(e=r.Jc;l<e;l++)g=2*l,k=g+1,h=r.Ja[g],f=r.Ja[k],
r.Ja[g]=d.ob(h+a.x,f+a.y,!0),r.Ja[k]=d.ob(h+a.x,f+a.y,!1);r.Aa();l=0;for(e=u.Jc;l<e;l++)g=2*l,k=g+1,h=u.Ja[g],f=u.Ja[k],u.Ja[g]=b.ob(h+c.x,f+c.y,!0),u.Ja[k]=b.ob(h+c.x,f+c.y,!1);u.Aa();return r.hg(u,0,0)};var w=new qa;new pa(0,0,0,0);var l=[];b.prototype.No=function(a,c){var d,b,e,g,k=c.Ca,h=a.x,f=a.y;a.Tu(k,l);var r=c.W&&!c.W.hf();d=0;for(b=l.length;d<b;++d)if(e=l[d],g=e.$u,k.ps(g,h,f)&&(w.Df(g),w.offset(h,f),w.cn(c.Nb)))if(r)if(c.W.Se(c.width,c.height,c.e),e.kl){if(e.kl.hg(c.W,c.x-(h+g.left),c.y-
(f+g.top)))return l.length=0,!0}else{if(this.Mc.Cf(w,0,0,g.right-g.left,g.bottom-g.top),this.Mc.hg(c.W,c.x,c.y))return l.length=0,!0}else if(e.kl){if(this.Mc.Cf(c.Nb,0,0,c.width,c.height),e.kl.hg(this.Mc,-(h+g.left),-(f+g.top)))return l.length=0,!0}else return l.length=0,!0;l.length=0;return!1};b.prototype.Uo=function(a,c){if(!c)return!1;var d,b,l,e,g;d=0;for(b=a.Da.length;d<b;d++)if(a.Da[d].behavior instanceof c)return!0;if(!a.B)for(d=0,b=a.pa.length;d<b;d++)for(g=a.pa[d],l=0,e=g.Da.length;l<e;l++)if(g.Da[l].behavior instanceof
c)return!0;return!1};b.prototype.Vo=function(a){return this.Uo(a,Sb.nu)};b.prototype.Ml=function(a){return this.Uo(a,Sb.ou)};var u=-1;b.prototype.trigger=function(a,c,d){if(!this.Z)return!1;var b=this.Z.re;if(!b)return!1;var l=!1,e,g,k;u++;var h=b.Sj;g=0;for(k=h.length;g<k;++g)e=this.Ro(a,c,h[g],d),l=l||e;e=this.Ro(a,c,b,d);u--;return l||e};b.prototype.Ro=function(a,c,d,b){var l=!1,e,g,k,h;if(c)for(k=this.Kl(a,c,c.type.name,d,b),l=l||k,h=c.type.pa,e=0,g=h.length;e<g;++e)k=this.Kl(a,c,h[e].name,d,
b),l=l||k;else k=this.Kl(a,c,"system",d,b),l=l||k;return l};b.prototype.Kl=function(a,c,d,b,l){var e,g=!1,k=!1,k="undefined"!==typeof l,h=(k?b.Jm:b.So)[d];if(!h)return g;var f=null;b=0;for(e=h.length;b<e;++b)if(h[b].method==a){f=h[b].Wf;break}if(!f)return g;a=k?f[l]:f;if(!a)return null;b=0;for(e=a.length;b<e;b++)l=a[b][0],k=a[b][1],k=this.sr(c,d,l,k),g=g||k;return g};b.prototype.sr=function(a,c,d,b){var l,e,g=!1;this.Ll++;var k=this.nb().Pb;k&&this.Wg(k.Yd);var h=1<this.Ll;this.Wg(d.Yd);h&&this.ct();
var f=this.nl(d);f.Pb=d;a&&(l=this.types[c].ca(),l.ja=!1,l.c.length=1,l.c[0]=a,this.types[c].fd());a=!0;if(d.parent){c=f.Mo;for(l=d.parent;l;)c.push(l),l=l.parent;c.reverse();l=0;for(e=c.length;l<e;l++)if(!c[l].lt()){a=!1;break}}a&&(this.Zj++,d.Hc?d.kt(b):d.La(),g=g||f.De);this.no();h&&this.Ws();this.zf(d.Yd);k&&this.zf(k.Yd);this.Pd&&0===this.td&&0===u&&!this.Fk&&this.fb();this.Ll--;return g};b.prototype.kk=function(){var a=this.nb();return a.Pb.hb[a.zb]};b.prototype.ct=function(){this.vi++;this.vi>=
this.Rk.length&&this.Rk.push([])};b.prototype.Ws=function(){this.vi--};b.prototype.Pm=function(){return this.Rk[this.vi]};b.prototype.nl=function(a){this.Oh++;this.Oh>=this.Xj.length&&this.Xj.push(new Fb);var c=this.nb();c.reset(a);return c};b.prototype.no=function(){this.Oh--};b.prototype.nb=function(){return this.Xj[this.Oh]};b.prototype.Qm=function(a,c){for(var d,b,l,e,g,k;c;){d=0;for(b=c.xc.length;d<b;d++)if(k=c.xc[d],k instanceof Gb&&ab(a,k.name))return k;c=c.parent}d=0;for(b=this.nd.length;d<
b;d++)for(g=this.nd[d],l=0,e=g.Od.length;l<e;l++)if(k=g.Od[l],k instanceof Gb&&ab(a,k.name))return k;return null};b.prototype.Sm=function(a){var c,d;c=0;for(d=this.Vb.length;c<d;c++)if(this.Vb[c].P===a)return this.Vb[c];return null};b.prototype.Yh=function(a){var c,d;c=0;for(d=this.n.length;c<d;c++)if(this.n[c].P===a)return this.n[c];return null};b.prototype.Hr=function(a){var c,d;c=0;for(d=this.Id.length;c<d;c++)if(this.Id[c].P===a)return this.Id[c];return null};b.prototype.gs=function(){var d=this,
b=this.Ui,l=this.ud,e=this.xg,g=!1;this.Io&&(g=!0,b="__c2_continuouspreview",this.Io=!1);if(b.length){this.fb();l=this.pt();if(window.indexedDB&&!this.fc)m(b,l,function(){I("Saved state to IndexedDB storage ("+l.length+" bytes)");d.ud=l;d.trigger(W.prototype.j.yj,null);d.ud="";g&&c()},function(a){try{localStorage.setItem("__c2save_"+b,l),I("Saved state to WebStorage ("+l.length+" bytes)"),d.ud=l,d.trigger(W.prototype.j.yj,null),d.ud="",g&&c()}catch(e){I("Failed to save game state: "+a+"; "+e)}});
else try{localStorage.setItem("__c2save_"+b,l),I("Saved state to WebStorage ("+l.length+" bytes)"),d.ud=l,this.trigger(W.prototype.j.yj,null),d.ud="",g&&c()}catch(k){I("Error saving to WebStorage: "+k)}this.qb=this.xg=this.Ui=""}e.length&&(window.indexedDB&&!this.fc?a(e,function(a){a?(d.qb=a,I("Loaded state from IndexedDB storage ("+d.qb.length+" bytes)")):(d.qb=localStorage.getItem("__c2save_"+e)||"",I("Loaded state from WebStorage ("+d.qb.length+" bytes)"));d.fh=!1;d.qb.length||d.trigger(W.prototype.j.wj,
null)},function(){d.qb=localStorage.getItem("__c2save_"+e)||"";I("Loaded state from WebStorage ("+d.qb.length+" bytes)");d.fh=!1;d.qb.length||d.trigger(W.prototype.j.wj,null)}):(this.qb=localStorage.getItem("__c2save_"+e)||"",I("Loaded state from WebStorage ("+this.qb.length+" bytes)"),this.fh=!1,d.qb.length||d.trigger(W.prototype.j.wj,null)),this.Ui=this.xg="");this.qb.length&&(this.fb(),this.Bs(this.qb),this.ud=this.qb,this.trigger(W.prototype.j.Qp,null),this.qb=this.ud="")};b.prototype.pt=function(){var a,
c,b,l,e,g,k,h={c2save:!0,version:1,rt:{time:this.gc.aa,walltime:this.cd.aa,timescale:this.If,tickcount:this.jh,execcount:this.Zj,next_uid:this.Ig,running_layout:this.Z.P,start_time_offset:Date.now()-this.bj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(c=this.n.length;a<c;a++)if(e=this.n[a],!e.B&&!this.Vo(e)){g={instances:[]};Pa(e.va)&&(g.ex=d(e.va));b=0;for(l=e.c.length;b<l;b++)g.instances.push(this.xl(e.c[b]));h.types[e.P.toString()]=g}a=0;for(c=this.Vb.length;a<c;a++)b=
this.Vb[a],h.layouts[b.P.toString()]=b.Xb();l=h.events.groups;a=0;for(c=this.Id.length;a<c;a++)b=this.Id[a],l[b.P.toString()]=this.Zh[b.dg].Ye;c=h.events.cnds;for(k in this.Te)this.Te.hasOwnProperty(k)&&(a=this.Te[k],Pa(a.va)&&(c[k]={ex:d(a.va)}));c=h.events.acts;for(k in this.Qe)this.Qe.hasOwnProperty(k)&&(a=this.Qe[k],Pa(a.va)&&(c[k]={ex:a.va}));c=h.events.vars;for(k in this.Nf)this.Nf.hasOwnProperty(k)&&(a=this.Nf[k],a.hi||a.parent&&!a.ng||(c[k]=a.data));h.system=this.$c.Xb();return JSON.stringify(h)};
b.prototype.uo=function(){var a,c,d,b,l,e;this.Td={};a=0;for(c=this.n.length;a<c;a++)if(d=this.n[a],!d.B)for(b=0,l=d.c.length;b<l;b++)e=d.c[b],this.Td[e.uid.toString()]=e};b.prototype.Bs=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){var c=a.rt;this.gc.reset();this.gc.aa=c.time;this.cd.reset();this.cd.aa=c.walltime||0;this.If=c.timescale;this.jh=c.tickcount;this.bj=Date.now()-c.start_time_offset;var d=c.running_layout;if(d!==this.Z.P)if(d=this.Sm(d))this.Cm(d);else return;var b,l,e,g,k,
h,f;h=a.types;for(l in h)if(h.hasOwnProperty(l)&&(g=this.Yh(parseInt(l,10)))&&!g.B&&!this.Vo(g)){h[l].ex?g.va=h[l].ex:Qa(g.va);k=g.c;e=h[l].instances;d=0;for(b=ka(k.length,e.length);d<b;d++)this.qi(k[d],e[d]);d=e.length;for(b=k.length;d<b;d++)this.Ed(k[d]);d=k.length;for(b=e.length;d<b;d++){k=null;if(g.ya.Rd&&(k=this.Z.Wh(e[d].w.l),!k))continue;k=this.me(g.Rc,k,!1,0,0,!0);this.qi(k,e[d])}g.Gf=!0}this.fb();this.uo();b=a.layouts;for(l in b)b.hasOwnProperty(l)&&(d=this.Sm(parseInt(l,10)))&&d.tc(b[l]);
b=a.events.groups;for(l in b)b.hasOwnProperty(l)&&(d=this.Hr(parseInt(l,10)))&&this.Zh[d.dg]&&(this.Zh[d.dg].Ye=b[l]);d=a.events.cnds;for(l in d)d.hasOwnProperty(l)&&this.Te.hasOwnProperty(l)&&(this.Te[l].va=d[l].ex);d=a.events.acts;for(l in d)d.hasOwnProperty(l)&&this.Qe.hasOwnProperty(l)&&(this.Qe[l].va=d[l].ex);d=a.events.vars;for(l in d)d.hasOwnProperty(l)&&this.Nf.hasOwnProperty(l)&&(this.Nf[l].data=d[l]);this.Ig=c.next_uid;this.$c.tc(a.system);d=0;for(b=this.n.length;d<b;d++)if(g=this.n[d],
!g.B)for(l=0,a=g.c.length;l<a;l++){k=g.c[l];if(g.Fc)for(h=k.cg(),c=k.siblings.length=0,e=g.Ob.length;c<e;c++)f=g.Ob[c],g!==f&&k.siblings.push(f.c[h]);k.dd&&k.dd();if(k.G)for(c=0,e=k.G.length;c<e;c++)h=k.G[c],h.dd&&h.dd()}this.ha=!0}};b.prototype.xl=function(a,c){var b,l,e,g,k;g=a.type;e=g.ya;var h={};c?h.c2=!0:h.uid=a.uid;Pa(a.va)&&(h.ex=d(a.va));if(a.Ia&&a.Ia.length)for(h.ivs={},b=0,l=a.Ia.length;b<l;b++)h.ivs[a.type.Ck[b].toString()]=a.Ia[b];if(e.Rd){e={x:a.x,y:a.y,w:a.width,h:a.height,l:a.d.P,
zi:a.Sb()};0!==a.e&&(e.a=a.e);1!==a.opacity&&(e.o=a.opacity);.5!==a.Bb&&(e.hX=a.Bb);.5!==a.Cb&&(e.hY=a.Cb);0!==a.tb&&(e.bm=a.tb);a.visible||(e.v=a.visible);a.ke||(e.ce=a.ke);-1!==a.Hg&&(e.mts=a.Hg);if(g.H.length)for(e.fx=[],b=0,l=g.H.length;b<l;b++)k=g.H[b],e.fx.push({name:k.name,active:a.Gd[k.index],params:a.ua[k.index]});h.w=e}if(a.G&&a.G.length)for(h.behs={},b=0,l=a.G.length;b<l;b++)g=a.G[b],g.Xb&&(h.behs[g.type.P.toString()]=g.Xb());a.Xb&&(h.data=a.Xb());return h};b.prototype.Jr=function(a,c){var d,
b;d=0;for(b=a.Ck.length;d<b;d++)if(a.Ck[d]===c)return d;return-1};b.prototype.Er=function(a,c){var d,b;d=0;for(b=a.G.length;d<b;d++)if(a.G[d].type.P===c)return d;return-1};b.prototype.qi=function(a,c,d){var b,l,e,g,k;k=a.type;e=k.ya;if(d){if(!c.c2)return}else a.uid=c.uid;c.ex?a.va=c.ex:Qa(a.va);if(l=c.ivs)for(b in l)l.hasOwnProperty(b)&&(d=this.Jr(k,parseInt(b,10)),0>d||d>=a.Ia.length||(a.Ia[d]=l[b]));if(e.Rd){e=c.w;a.d.P!==e.l&&(d=a.d,a.d=this.Z.Wh(e.l),a.d?(a.d.c.push(a),a.d.$b=!0,wa(d.c,a),d.$b=
!0):(a.d=d,this.Ed(a)));a.x=e.x;a.y=e.y;a.width=e.w;a.height=e.h;a.Me=e.zi;a.e=e.hasOwnProperty("a")?e.a:0;a.opacity=e.hasOwnProperty("o")?e.o:1;a.Bb=e.hasOwnProperty("hX")?e.hX:.5;a.Cb=e.hasOwnProperty("hY")?e.hY:.5;a.visible=e.hasOwnProperty("v")?e.v:!0;a.ke=e.hasOwnProperty("ce")?e.ce:!0;a.Hg=e.hasOwnProperty("mts")?e.mts:-1;a.tb=e.hasOwnProperty("bm")?e.bm:0;a.Tf=Ya(a.tb);this.m&&Za(a,a.tb,this.m);a.Ha();if(e.hasOwnProperty("fx"))for(d=0,l=e.fx.length;d<l;d++)g=k.nk(e.fx[d].name),0>g||(a.Gd[g]=
e.fx[d].active,a.ua[g]=e.fx[d].params);a.Dd()}if(k=c.behs)for(b in k)k.hasOwnProperty(b)&&(e=this.Er(a,parseInt(b,10)),0>e||a.G[e].tc(k[b]));c.data&&a.tc(c.data)};Hb=function(a){return new b(document.getElementById(a))};Ib=function(a,c){return new b({dc:!0,width:a,height:c})};window.cr_createRuntime=Hb;window.cr_createDCRuntime=Ib;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.bv=!0;document.body.appendChild(a);
a=new b(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new b(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();
window.cr_getC2Runtime=function(){var f=document.getElementById("c2canvas");return f?f.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(f,n){if(0!==f&&0!==n){var b=window.cr_getC2Runtime();b&&b.setSize(f,n)}};window.cr_setSuspended=function(f){var n=window.cr_getC2Runtime();n&&n.setSuspended(f)};
(function(){function f(a,c){this.b=a;this.re=null;this.scrollX=this.b.Va/2;this.scrollY=this.b.Ua/2;this.scale=1;this.e=0;this.Zf=!0;this.name=c[0];this.width=c[1];this.height=c[2];this.Wo=c[3];this.Go=c[4];this.P=c[5];var d=c[6],b,e;this.M=[];this.gg=[];b=0;for(e=d.length;b<e;b++){var g=new Jb(this,d[b]);g.Tn=b;this.M.push(g)}d=c[7];this.ye=[];b=0;for(e=d.length;b<e;b++){var g=d[b],h=this.b.n[g[1]];h.Rc||(h.Rc=g);this.ye.push(g);-1===this.gg.indexOf(h)&&this.gg.push(h)}this.H=[];this.U=[];this.ua=
[];b=0;for(e=c[8].length;b<e;b++)this.H.push({id:c[8][b][0],name:c[8][b][1],bb:-1,Ra:!0,index:b}),this.ua.push(c[8][b][2].slice(0));this.Dd();this.Yg=new pa(0,0,1,1);this.pl=new pa(0,0,1,1);this.Ud={}}function n(a,c){return a.Me-c.Me}function b(a,c){this.ga=a;this.b=a.b;this.c=[];this.scale=1;this.e=0;this.oe=!1;this.Bd=new pa(0,0,0,0);this.Po=new qa;this.cb=this.Qa=this.eb=this.Pa=0;this.$b=!1;this.name=c[0];this.index=c[1];this.P=c[2];this.visible=c[3];this.Kd=c[4];this.Cd=c[5];this.Fb=c[6];this.Gb=
c[7];this.opacity=c[8];this.dk=c[9];this.kb=c[10];this.tb=c[11];this.Rq=c[12];this.Tf="source-over";this.ib=this.jb=0;this.Vd=!1;var d=c[13],b,e;this.bf=[];b=0;for(e=d.length;b<e;b++){var g=d[b],h=this.b.n[g[1]];h.Rc||(h.Rc=g,h.Cq=this.index);this.bf.push(g);-1===this.ga.gg.indexOf(h)&&this.ga.gg.push(h)}this.H=[];this.U=[];this.ua=[];b=0;for(e=c[14].length;b<e;b++)this.H.push({id:c[14][b][0],name:c[14][b][1],bb:-1,Ra:!0,index:b}),this.ua.push(c[14][b][2].slice(0));this.Dd();this.Yg=new pa(0,0,1,
1);this.pl=new pa(0,0,1,1)}f.prototype.ot=function(a){var c=a.type.P.toString();this.Ud.hasOwnProperty(c)||(this.Ud[c]=[]);this.Ud[c].push(this.b.xl(a))};f.prototype.Vm=function(){var a=this.M[0];return!a.Cd&&1===a.opacity&&!a.dk&&a.visible};f.prototype.Dd=function(){this.U.length=0;var a,c,d;a=0;for(c=this.H.length;a<c;a++)d=this.H[a],d.Ra&&this.U.push(d)};f.prototype.mk=function(a){var c,d,b;c=0;for(d=this.H.length;c<d;c++)if(b=this.H[c],b.name===a)return b;return null};var p=[],m=!0;f.prototype.Dl=
function(){this.Go&&(this.re=this.b.Yj[this.Go],this.re.Nl());this.b.Z=this;this.scrollX=this.b.Va/2;this.scrollY=this.b.Ua/2;var a,c,d,b,e,g,h;a=0;for(d=this.b.n.length;a<d;a++)if(c=this.b.n[a],!c.B)for(e=c.c,c=0,b=e.length;c<b;c++)if(g=e[c],g.d){var f=g.d.Tn;f>=this.M.length&&(f=this.M.length-1);g.d=this.M[f];-1===g.d.c.indexOf(g)&&g.d.c.push(g);g.d.$b=!0}if(!m)for(a=0,d=this.M.length;a<d;++a)this.M[a].c.sort(n);p.length=0;this.pq();a=0;for(d=this.M.length;a<d;a++)g=this.M[a],g.Aq(),g.Pl();e=!1;
if(!this.Zf){for(h in this.Ud)if(this.Ud.hasOwnProperty(h)&&(c=this.b.Yh(parseInt(h,10)))&&!c.B&&this.b.Ml(c)){b=this.Ud[h];a=0;for(d=b.length;a<d;a++){g=null;if(c.ya.Rd&&(g=this.Wh(b[a].w.l),!g))continue;g=this.b.me(c.Rc,g,!1,0,0,!0);this.b.qi(g,b[a]);e=!0;p.push(g)}b.length=0}a=0;for(d=this.M.length;a<d;a++)this.M[a].c.sort(n),this.M[a].$b=!0}e&&(this.b.fb(),this.b.uo());for(a=0;a<p.length;a++)if(g=p[a],g.type.Fc)for(d=g.cg(),c=0,b=g.type.Ob.length;c<b;c++)h=g.type.Ob[c],g.type!==h&&(h.c.length>
d?g.siblings.push(h.c[d]):h.Rc&&(e=this.b.me(h.Rc,g.d,!0,g.x,g.y,!0),this.b.fb(),h.pj(),g.siblings.push(e),p.push(e)));a=0;for(d=this.ye.length;a<d;a++)this.b.me(this.ye[a],null,!0);this.b.je=null;this.b.fb();if(this.b.ba&&!this.b.da)for(a=0,d=this.b.n.length;a<d;a++)h=this.b.n[a],!h.B&&h.c.length&&h.Oi&&h.Oi(this.b.ba);a=0;for(d=p.length;a<d;a++)g=p[a],this.b.trigger(Object.getPrototypeOf(g.type.ya).j.Dp,g);p.length=0;this.b.trigger(W.prototype.j.Zl,null);this.Zf=!1};f.prototype.zq=function(){var a,
c,d,b,e;c=a=0;for(d=this.ye.length;a<d;a++)b=this.ye[a],e=this.b.n[b[1]],e.global?this.b.me(b,null,!0):(this.ye[c]=b,c++);this.ye.length=c};f.prototype.Bt=function(){this.b.trigger(W.prototype.j.Pp,null);this.b.$c.Kb.length=0;var a,c,d,b,e,g;a=0;for(c=this.M.length;a<c;a++)for(this.M[a].cp(),e=this.M[a].c,d=0,b=e.length;d<b;d++)g=e[d],g.type.global||this.b.Ml(g.type)&&this.ot(g);a=0;for(c=this.M.length;a<c;a++){e=this.M[a].c;d=0;for(b=e.length;d<b;d++)g=e[d],g.type.global||this.b.Ed(g);this.b.fb();
e.length=0;this.M[a].$b=!0}a=0;for(c=this.b.n.length;a<c;a++)if(e=this.b.n[a],!(e.global||e.ya.Rd||e.ya.Xi||e.B)){d=0;for(b=e.c.length;d<b;d++)this.b.Ed(e.c[d]);this.b.fb()}m=!1};f.prototype.Cc=function(a){var c,d=a,b=!1,e=!this.b.oc;e&&(this.b.pi||(this.b.pi=document.createElement("canvas"),c=this.b.pi,c.width=this.b.L,c.height=this.b.K,this.b.tn=c.getContext("2d"),b=!0),c=this.b.pi,d=this.b.tn,c.width!==this.b.L&&(c.width=this.b.L,b=!0),c.height!==this.b.K&&(c.height=this.b.K,b=!0),b&&(d.webkitImageSmoothingEnabled=
this.b.S,d.mozImageSmoothingEnabled=this.b.S,d.msImageSmoothingEnabled=this.b.S,d.imageSmoothingEnabled=this.b.S));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.b.Dj&&!this.Vm()&&d.clearRect(0,0,this.b.L,this.b.K);var g,h,b=0;for(g=this.M.length;b<g;b++)h=this.M[b],h.visible&&0<h.opacity&&11!==h.tb&&(h.c.length||!h.Cd)?h.Cc(d):h.Pl();e&&a.drawImage(c,0,0,this.b.width,this.b.height)};f.prototype.Qb=function(a){var c=0<this.U.length||this.b.Lf||!this.b.oc;if(c){this.b.Ub||(this.b.Ub=
a.Md(this.b.L,this.b.K,this.b.S));if(this.b.Ub.Sf!==this.b.L||this.b.Ub.Rf!==this.b.K)a.deleteTexture(this.b.Ub),this.b.Ub=a.Md(this.b.L,this.b.K,this.b.S);a.Yc(this.b.Ub);this.b.oc||a.Bf(this.b.L,this.b.K)}else this.b.Ub&&(a.Yc(null),a.deleteTexture(this.b.Ub),this.b.Ub=null);this.b.Dj&&!this.Vm()&&a.clear(0,0,0,0);var d,b,e;d=0;for(b=this.M.length;d<b;d++)e=this.M[d],e.visible&&0<e.opacity&&(e.c.length||!e.Cd)?e.Qb(a):e.Pl();c&&(0===this.U.length||1===this.U.length&&this.b.oc?(1===this.U.length?
(c=this.U[0].index,a.Zc(this.U[0].bb),a.Af(null,1/this.b.L,1/this.b.K,0,0,1,1,this.scale,this.e,0,0,this.b.L/2,this.b.K/2,this.ua[c]),a.Pi(this.U[0].bb)&&(this.b.ha=!0)):a.Zc(0),this.b.oc||a.Bf(this.b.width,this.b.height),a.Yc(null),a.Je(1),a.Yb(this.b.Ub),a.Ao(),a.Wd(),a.ee(),c=this.b.width/2,d=this.b.height/2,a.Xg(-c,d,c,d,c,-d,-c,-d),a.Yb(null)):this.ql(a,null,null,null))};f.prototype.ag=function(){return 0<this.U.length||this.b.Lf||!this.b.oc?this.b.Ub:null};f.prototype.Tm=function(){var a=this.M[0].ec(),
c,d,b;c=1;for(d=this.M.length;c<d;c++)b=this.M[c],(0!==b.Fb||0!==b.Gb)&&b.ec()<a&&(a=b.ec());return a};f.prototype.yo=function(a){if(!this.Wo){var c=1/this.Tm()*this.b.L/2;a>this.width-c&&(a=this.width-c);a<c&&(a=c)}this.scrollX!==a&&(this.scrollX=a,this.b.ha=!0)};f.prototype.zo=function(a){if(!this.Wo){var c=1/this.Tm()*this.b.K/2;a>this.height-c&&(a=this.height-c);a<c&&(a=c)}this.scrollY!==a&&(this.scrollY=a,this.b.ha=!0)};f.prototype.pq=function(){this.yo(this.scrollX);this.zo(this.scrollY)};f.prototype.ql=
function(a,c,d,b){var e=d?d.U:c?c.U:this.U,g=1,h=0,f=0,k=0,m=this.b.L,p=this.b.K;d?(g=d.d.ec(),h=d.d.Sa(),f=d.d.Pa,k=d.d.Qa,m=d.d.eb,p=d.d.cb):c&&(g=c.ec(),h=c.Sa(),f=c.Pa,k=c.Qa,m=c.eb,p=c.cb);var l=this.b.gk,u,q,n,s,B=0,X=1,P,x=this.b.L,z=this.b.K,ja=x/2,Z=z/2,J=c?c.Yg:this.Yg,C=c?c.pl:this.pl,t=0,Q=0,A=0,G=0,D=x,T=x,E=z,H=z,L=n=0,aa=d?d.d.Sa():0;if(d){u=0;for(q=e.length;u<q;u++)n+=a.Nr(e[u].bb),L+=a.Or(e[u].bb);s=d.Ca;t=c.ob(s.left,s.top,!0,!0);A=c.ob(s.left,s.top,!1,!0);D=c.ob(s.right,s.bottom,
!0,!0);E=c.ob(s.right,s.bottom,!1,!0);0!==aa&&(u=c.ob(s.right,s.top,!0,!0),q=c.ob(s.right,s.top,!1,!0),Q=c.ob(s.left,s.bottom,!0,!0),G=c.ob(s.left,s.bottom,!1,!0),s=Math.min(t,D,u,Q),D=Math.max(t,D,u,Q),t=s,s=Math.min(A,E,q,G),E=Math.max(A,E,q,G),A=s);t-=n;A-=L;D+=n;E+=L;C.left=t/x;C.top=1-A/z;C.right=D/x;C.bottom=1-E/z;Q=t=O(t);G=A=O(A);T=D=na(D);H=E=na(E);Q-=n;G-=L;T+=n;H+=L;0>t&&(t=0);0>A&&(A=0);D>x&&(D=x);E>z&&(E=z);0>Q&&(Q=0);0>G&&(G=0);T>x&&(T=x);H>z&&(H=z);J.left=t/x;J.top=1-A/z;J.right=D/
x;J.bottom=1-E/z}else J.left=C.left=0,J.top=C.top=0,J.right=C.right=1,J.bottom=C.bottom=1;L=d&&((d.e||aa)&&a.Vg(e[0].bb)||0!==n||0!==L||1!==d.opacity||d.type.ya.Pn)||c&&!d&&1!==c.opacity;a.Ao();if(L){l[B]||(l[B]=a.Md(x,z,this.b.S));if(l[B].Sf!==x||l[B].Rf!==z)a.deleteTexture(l[B]),l[B]=a.Md(x,z,this.b.S);a.Zc(0);a.Yc(l[B]);P=H-G;a.clearRect(Q,z-G-P,T-Q,P);d?d.Qb(a):(a.Yb(this.b.hc),a.Je(c.opacity),a.Wd(),a.translate(-ja,-Z),a.ee(),a.yd(t,E,D,E,D,A,t,A,J));C.left=C.top=0;C.right=C.bottom=1;d&&(s=J.top,
J.top=J.bottom,J.bottom=s);B=1;X=0}a.Je(1);n=e.length-1;var aa=a.ll(e[n].bb)||!c&&!d&&!this.b.oc,la=0;u=0;for(q=e.length;u<q;u++){l[B]||(l[B]=a.Md(x,z,this.b.S));if(l[B].Sf!==x||l[B].Rf!==z)a.deleteTexture(l[B]),l[B]=a.Md(x,z,this.b.S);a.Zc(e[u].bb);la=e[u].index;a.Pi(e[u].bb)&&(this.b.ha=!0);0!=u||L?(a.Af(b,1/x,1/z,C.left,C.top,C.right,C.bottom,g,h,f,k,(f+m)/2,(k+p)/2,d?d.ua[la]:c?c.ua[la]:this.ua[la]),a.Yb(null),u!==n||aa?(a.Yc(l[B]),P=H-G,s=z-G-P,a.clearRect(Q,s,T-Q,P)):(d?a.Xd(d.jb,d.ib):c&&a.Xd(c.jb,
c.ib),a.Yc(b)),a.Yb(l[X]),a.Wd(),a.translate(-ja,-Z),a.ee(),a.yd(t,E,D,E,D,A,t,A,J),u!==n||aa||a.Yb(null)):(a.Yc(l[B]),P=H-G,s=z-G-P,a.clearRect(Q,s,T-Q,P),d?(a.Af(b,1/d.width,1/d.height,C.left,C.top,C.right,C.bottom,g,h,f,k,(f+m)/2,(k+p)/2,d.ua[la]),d.Qb(a)):(a.Af(b,1/x,1/z,0,0,1,1,g,h,f,k,(f+m)/2,(k+p)/2,c?c.ua[la]:this.ua[la]),a.Yb(c?this.b.hc:this.b.Ub),a.Wd(),a.translate(-ja,-Z),a.ee(),a.yd(t,E,D,E,D,A,t,A,J)),C.left=C.top=0,C.right=C.bottom=1,d&&!aa&&(s=E,E=A,A=s));B=0===B?1:0;X=0===B?1:0}aa&&
(a.Zc(0),d?a.Xd(d.jb,d.ib):c?a.Xd(c.jb,c.ib):this.b.oc||(a.Bf(this.b.width,this.b.height),ja=this.b.width/2,Z=this.b.height/2,A=t=0,D=this.b.width,E=this.b.height),a.Yc(b),a.Yb(l[X]),a.Wd(),a.translate(-ja,-Z),a.ee(),d&&1===e.length&&!L?a.yd(t,A,D,A,D,E,t,E,J):a.yd(t,E,D,E,D,A,t,A,J),a.Yb(null))};f.prototype.Wh=function(a){var c,d;c=0;for(d=this.M.length;c<d;c++)if(this.M[c].P===a)return this.M[c];return null};f.prototype.Xb=function(){var a,c,d,b={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.e,
w:this.width,h:this.height,fv:this.Zf,persist:this.Ud,fx:[],layers:{}};a=0;for(c=this.H.length;a<c;a++)d=this.H[a],b.fx.push({name:d.name,active:d.Ra,params:this.ua[d.index]});a=0;for(c=this.M.length;a<c;a++)d=this.M[a],b.layers[d.P.toString()]=d.Xb();return b};f.prototype.tc=function(a){var c,d,b,e;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.e=a.a;this.width=a.w;this.height=a.h;this.Ud=a.persist;"undefined"!==typeof a.fv&&(this.Zf=a.fv);var g=a.fx;c=0;for(d=g.length;c<d;c++)if(b=this.mk(g[c].name))b.Ra=
g[c].active,this.ua[b.index]=g[c].params;this.Dd();c=a.layers;for(e in c)c.hasOwnProperty(e)&&(a=this.Wh(parseInt(e,10)))&&a.tc(c[e])};wb=f;b.prototype.Dd=function(){this.U.length=0;var a,c,d;a=0;for(c=this.H.length;a<c;a++)d=this.H[a],d.Ra&&this.U.push(d)};b.prototype.mk=function(a){var c,d,b;c=0;for(d=this.H.length;c<d;c++)if(b=this.H[c],b.name===a)return b;return null};b.prototype.Aq=function(){var a,c,d,b,e,g;c=a=0;for(d=this.bf.length;a<d;a++){b=this.bf[a];e=this.b.n[b[1]];g=this.b.Ml(e);e=!0;
if(!g||this.ga.Zf)b=this.b.me(b,this,!0),p.push(b),b.type.global&&(e=!1);e&&(this.bf[c]=this.bf[a],c++)}this.bf.length=c;this.b.fb();!this.b.q&&this.H.length&&(this.tb=this.Rq);this.Tf=Ya(this.tb);this.b.m&&Za(this,this.tb,this.b.m)};b.prototype.cp=function(){if(this.$b){var a,c;a=0;for(c=this.c.length;a<c;a++)this.c[a].Me=a;this.$b=!1}};b.prototype.ec=function(a){return this.Kr()*(this.b.oc||a?this.b.Qf:1)};b.prototype.Kr=function(){return(this.scale*this.ga.scale-1)*this.kb+1};b.prototype.Sa=function(){return this.oe?
0:Aa(this.ga.e+this.e)};b.prototype.Cc=function(a){this.Vd=this.dk||1!==this.opacity||0!==this.tb;var c=this.b.canvas,d=a,b=!1;this.Vd&&(this.b.oi||(this.b.oi=document.createElement("canvas"),c=this.b.oi,c.width=this.b.L,c.height=this.b.K,this.b.sn=c.getContext("2d"),b=!0),c=this.b.oi,d=this.b.sn,c.width!==this.b.L&&(c.width=this.b.L,b=!0),c.height!==this.b.K&&(c.height=this.b.K,b=!0),b&&(d.webkitImageSmoothingEnabled=this.b.S,d.mozImageSmoothingEnabled=this.b.S,d.msImageSmoothingEnabled=this.b.S,
d.imageSmoothingEnabled=this.b.S),this.Cd&&d.clearRect(0,0,this.b.L,this.b.K));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.Cd||(d.fillStyle="rgb("+this.Kd[0]+","+this.Kd[1]+","+this.Kd[2]+")",d.fillRect(0,0,this.b.L,this.b.K));d.save();this.oe=!0;var b=this.na(0,0,!0,!0),e=this.na(0,0,!1,!0);this.oe=!1;this.b.Xc&&(b=Math.round(b),e=Math.round(e));this.sl(b,e,d);var g=this.ec();d.scale(g,g);d.translate(-b,-e);for(var h,b=0,e=this.c.length;b<e;b++)g=this.c[b],g.visible&&0!==g.width&&
0!==g.height&&(g.Aa(),h=g.Ca,h.right<this.Pa||h.bottom<this.Qa||h.left>this.eb||h.top>this.cb||(d.globalCompositeOperation=g.Tf,g.Cc(d)));d.restore();this.Vd&&(a.globalCompositeOperation=this.Tf,a.globalAlpha=this.opacity,a.drawImage(c,0,0))};b.prototype.Pl=function(){this.oe=!0;var a=this.na(0,0,!0,!0),c=this.na(0,0,!1,!0);this.oe=!1;this.b.Xc&&(a=Math.round(a),c=Math.round(c));this.sl(a,c,null)};b.prototype.sl=function(a,c,d){var b=this.ec();this.Pa=a;this.Qa=c;this.eb=a+1/b*this.b.L;this.cb=c+
1/b*this.b.K;a=this.Sa();0!==a&&(d&&(d.translate(this.b.L/2,this.b.K/2),d.rotate(-a),d.translate(this.b.L/-2,this.b.K/-2)),this.Bd.set(this.Pa,this.Qa,this.eb,this.cb),this.Bd.offset((this.Pa+this.eb)/-2,(this.Qa+this.cb)/-2),this.Po.Eo(this.Bd,a),this.Po.tm(this.Bd),this.Bd.offset((this.Pa+this.eb)/2,(this.Qa+this.cb)/2),this.Pa=this.Bd.left,this.Qa=this.Bd.top,this.eb=this.Bd.right,this.cb=this.Bd.bottom)};b.prototype.Qb=function(a){var c=this.b.L,d=this.b.K,b=0,e=0;if(this.Vd=this.dk||1!==this.opacity||
0<this.U.length||0!==this.tb){this.b.hc||(this.b.hc=a.Md(this.b.L,this.b.K,this.b.S));if(this.b.hc.Sf!==this.b.L||this.b.hc.Rf!==this.b.K)a.deleteTexture(this.b.hc),this.b.hc=a.Md(this.b.L,this.b.K,this.b.S);a.Yc(this.b.hc);this.Cd&&a.clear(0,0,0,0)}this.Cd||a.clear(this.Kd[0]/255,this.Kd[1]/255,this.Kd[2]/255,1);this.oe=!0;var e=this.na(0,0,!0,!0),g=this.na(0,0,!1,!0);this.oe=!1;this.b.Xc&&(e=Math.round(e),g=Math.round(g));this.sl(e,g,null);g=this.ec();a.Wd();a.scale(g,g);a.wo(-this.Sa());a.translate((this.Pa+
this.eb)/-2,(this.Qa+this.cb)/-2);a.ee();var h,f,k;h=0;for(f=this.c.length;h<f;h++)if(k=this.c[h],k.visible&&0!==k.width&&0!==k.height&&(k.Aa(),b=k.Ca,!(b.right<this.Pa||b.bottom<this.Qa||b.left>this.eb||b.top>this.cb)))if(k.dp)if(b=k.U[0].bb,e=k.U[0].index,1!==k.U.length||a.ll(b)||a.bt(b)||(k.e||k.d.Sa())&&a.Vg(b)||1!==k.opacity||k.type.ya.Pn)this.ga.ql(a,this,k,this.Vd?this.b.hc:this.ga.ag()),a.Wd(),a.scale(g,g),a.wo(-this.Sa()),a.translate((this.Pa+this.eb)/-2,(this.Qa+this.cb)/-2),a.ee();else{a.Zc(b);
a.Xd(k.jb,k.ib);a.Pi(b)&&(this.b.ha=!0);var m=0,p=0,l=0,u=0;a.Vg(b)&&(b=k.Ca,m=this.ob(b.left,b.top,!0,!0),p=this.ob(b.left,b.top,!1,!0),l=this.ob(b.right,b.bottom,!0,!0),b=this.ob(b.right,b.bottom,!1,!0),m/=c,p=1-p/d,l/=c,u=1-b/d);a.Af(this.Vd?this.b.hc:this.ga.ag(),1/k.width,1/k.height,m,p,l,u,this.ec(),this.Sa(),this.Pa,this.Qa,(this.Pa+this.eb)/2,(this.Qa+this.cb)/2,k.ua[e]);k.Qb(a)}else a.Zc(0),a.Xd(k.jb,k.ib),k.Qb(a);this.Vd&&(b=this.U.length?this.U[0].bb:0,e=this.U.length?this.U[0].index:0,
0===this.U.length||1===this.U.length&&!a.ll(b)&&1===this.opacity?(1===this.U.length?(a.Zc(b),a.Af(this.ga.ag(),1/this.b.L,1/this.b.K,0,0,1,1,this.ec(),this.Sa(),this.Pa,this.Qa,(this.Pa+this.eb)/2,(this.Qa+this.cb)/2,this.ua[e]),a.Pi(b)&&(this.b.ha=!0)):a.Zc(0),a.Yc(this.ga.ag()),a.Je(this.opacity),a.Yb(this.b.hc),a.Xd(this.jb,this.ib),a.Wd(),a.ee(),c=this.b.L/2,d=this.b.K/2,a.Xg(-c,d,c,d,c,-d,-c,-d),a.Yb(null)):this.ga.ql(a,this,null,this.ga.ag()))};b.prototype.na=function(a,c,d,b){var e=this.b.devicePixelRatio;
this.b.ze&&(a*=e,c*=e);var e=this.b.fo,g=this.b.ho,e=(this.ga.scrollX-e)*this.Fb+e,g=(this.ga.scrollY-g)*this.Gb+g,h=1/this.ec(!b);b?(e-=this.b.L*h/2,g-=this.b.K*h/2):(e-=this.b.width*h/2,g-=this.b.height*h/2);e+=a*h;g+=c*h;c=this.Sa();0!==c&&(e-=this.ga.scrollX,g-=this.ga.scrollY,a=Math.cos(c),c=Math.sin(c),b=e*a-g*c,g=g*a+e*c,e=b+this.ga.scrollX,g+=this.ga.scrollY);return d?e:g};b.prototype.ob=function(a,c,d,b){var e=this.Sa();if(0!==e){a-=this.ga.scrollX;c-=this.ga.scrollY;var g=Math.cos(-e),e=
Math.sin(-e),h=a*g-c*e;c=c*g+a*e;a=h+this.ga.scrollX;c+=this.ga.scrollY}g=this.b.fo;e=this.b.ho;g=(this.ga.scrollX-g)*this.Fb+g;e=(this.ga.scrollY-e)*this.Gb+e;h=1/this.ec(!b);b?(g-=this.b.L*h/2,e-=this.b.K*h/2):(g-=this.b.width*h/2,e-=this.b.height*h/2);g=(a-g)/h;e=(c-e)/h;a=this.b.devicePixelRatio;this.b.ze&&!b&&(g/=a,e/=a);return d?g:e};b.prototype.Xb=function(){var a,c,b,f={s:this.scale,a:this.e,vl:this.Pa,vt:this.Qa,vr:this.eb,vb:this.cb,v:this.visible,bc:this.Kd,t:this.Cd,px:this.Fb,py:this.Gb,
o:this.opacity,zr:this.kb,fx:[],instances:[]};a=0;for(c=this.H.length;a<c;a++)b=this.H[a],f.fx.push({name:b.name,active:b.Ra,params:this.ua[b.index]});return f};b.prototype.tc=function(a){var c,b;this.scale=a.s;this.e=a.a;this.Pa=a.vl;this.Qa=a.vt;this.eb=a.vr;this.cb=a.vb;this.visible=a.v;this.Kd=a.bc;this.Cd=a.t;this.Fb=a.px;this.Gb=a.py;this.opacity=a.o;this.kb=a.zr;var f=a.fx;a=0;for(c=f.length;a<c;a++)if(b=this.mk(f[a].name))b.Ra=f[a].active,this.ua[b.index]=f[a].params;this.Dd();this.c.sort(n);
this.$b=!0};Jb=b})();
(function(){function f(a,c){var b,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===c[0];case 2:return a[0]===c[0]&&a[1]===c[1];default:for(b=0;b<d;b++)if(a[b]!==c[b])return!1;return!0}}function n(a,c){return a.index-c.index}function b(a){var c,b,d,e;2===a.length?a[0].index>a[1].index&&(c=a[0],a[0]=a[1],a[1]=c):2<a.length&&a.sort(n);a.length>=k.length&&(k.length=a.length+1);k[a.length]||(k[a.length]=[]);e=k[a.length];c=0;for(b=e.length;c<b;c++)if(d=e[c],f(a,d))return d;e.push(a);return a}
function p(a,c){this.b=a;this.So={};this.Jm={};this.wk=!1;this.Ym=new ca;this.Sj=[];this.Ej=[];this.name=c[0];var b=c[1];this.Od=[];var d,e;d=0;for(e=b.length;d<e;d++)this.$m(b[d],null,this.Od)}function m(a){this.type=a;this.c=[];this.V=[];this.ja=!0}function a(a,c,b){this.sheet=a;this.parent=c;this.b=a.b;this.ma=[];this.Yd=[];this.Wm=this.kj=this.Jl=this.di=this.group=this.Ko=!1;this.hb=[];this.zc=[];this.xc=[];this.dg="";this.Ye=this.di=this.group=!1;this.Eh=null;b[1]&&(this.dg=b[1][1].toLowerCase(),
this.group=!0,this.di=!!b[1][0],this.Eh=[],this.Ye=this.di,this.b.Id.push(this),this.b.Zh[this.dg]=this);this.Hc=b[2];this.P=b[4];this.group||(this.b.rm[this.P.toString()]=this);var d=b[5];a=0;for(c=d.length;a<c;a++){var e=new Kb(this,d[a]);e.index=a;this.hb.push(e);this.mm(e.type)}d=b[6];a=0;for(c=d.length;a<c;a++)e=new Lb(this,d[a]),e.index=a,this.zc.push(e);if(8===b.length)for(b=b[7],a=0,c=b.length;a<c;a++)this.sheet.$m(b[a],this,this.xc);this.ii=!1;this.hb.length&&(this.ii=null==this.hb[0].type&&
this.hb[0].Za==W.prototype.j.mp)}function c(a,c){var b,d,e;if(a&&(-1===c.indexOf(a)&&c.push(a),a.Fc))for(b=0,d=a.Ob.length;b<d;b++)e=a.Ob[b],a!==e&&-1===c.indexOf(e)&&c.push(e)}function d(a,c){this.ac=a;this.sheet=a.sheet;this.b=a.b;this.I=[];this.ea=[];this.va={};this.index=-1;this.Pf=!1;this.Za=this.b.Fd(c[1]);this.trigger=0<c[3];this.Im=2===c[3];this.Vc=c[4];this.cf=c[5];this.As=c[6];this.P=c[7];this.b.Te[this.P.toString()]=this;-1===c[0]?(this.type=null,this.La=this.wl,this.ie=null,this.kc=-1):
(this.type=this.b.n[c[0]],this.La=this.As?this.mt:this.ul,c[2]?(this.ie=this.type.Vh(c[2]),this.kc=this.type.ik(c[2])):(this.ie=null,this.kc=-1),this.ac.parent&&this.ac.parent.Wi());this.Im&&(this.La=this.nt);if(10===c.length){var b,d,e=c[9];b=0;for(d=e.length;b<d;b++){var g=new Mb(this,e[b]);this.I.push(g)}this.ea.length=e.length}}function r(a,c){this.ac=a;this.sheet=a.sheet;this.b=a.b;this.I=[];this.ea=[];this.va={};this.index=-1;this.Pf=!1;this.Za=this.b.Fd(c[1]);-1===c[0]?(this.type=null,this.La=
this.wl,this.ie=null,this.kc=-1):(this.type=this.b.n[c[0]],this.La=this.ul,c[2]?(this.ie=this.type.Vh(c[2]),this.kc=this.type.ik(c[2])):(this.ie=null,this.kc=-1));this.P=c[3];this.b.Qe[this.P.toString()]=this;if(6===c.length){var b,d,e=c[5];b=0;for(d=e.length;b<d;b++){var g=new Mb(this,e[b]);this.I.push(g)}this.ea.length=e.length}}function e(a,c){this.k=a;this.ac=a.ac;this.sheet=a.sheet;this.b=a.b;this.type=c[0];this.Sc=null;this.Zd=0;this.get=null;this.zm=0;this.ga=null;this.key=0;this.object=null;
this.index=0;this.mh=this.Le=this.mh=this.Le=this.Km=this.se=this.nh=null;this.yc=!1;var b,d,e;switch(c[0]){case 0:case 7:this.Sc=new U(this,c[1]);this.Zd=0;this.get=this.Tr;break;case 1:this.Sc=new U(this,c[1]);this.Zd=0;this.get=this.Ur;break;case 5:this.Sc=new U(this,c[1]);this.Zd=0;this.get=this.Yr;break;case 3:case 8:this.zm=c[1];this.get=this.Rr;break;case 6:this.ga=this.b.Mk[c[1]];this.get=this.Zr;break;case 9:this.key=c[1];this.get=this.Xr;break;case 4:this.object=this.b.n[c[1]];this.get=
this.$r;this.ac.mm(this.object);this.k instanceof Lb?this.ac.Wi():this.ac.parent&&this.ac.parent.Wi();break;case 10:this.index=c[1];a.type.B?(this.get=this.Vr,this.yc=!0):this.get=this.Wr;break;case 11:this.nh=c[1];this.se=null;this.get=this.Sr;break;case 2:case 12:this.Km=c[1];this.get=this.Qr;break;case 13:for(this.get=this.as,this.Le=[],this.mh=[],b=1,d=c.length;b<d;b++)e=new Mb(this.k,c[b]),this.Le.push(e),this.mh.push(0)}}function g(a,c,b){this.sheet=a;this.parent=c;this.b=a.b;this.ma=[];this.name=
b[1];this.rj=b[2];this.ci=b[3];this.ng=!!b[4];this.hi=!!b[5];this.P=b[6];this.b.Nf[this.P.toString()]=this;this.data=this.ci;this.parent?(this.Ge=this.ng||this.hi?-1:this.b.zt++,this.b.lq.push(this)):(this.Ge=-1,this.b.Bj.push(this))}function h(a,c,b){this.sheet=a;this.parent=c;this.b=a.b;this.ma=[];this.fg=null;this.ks=b[1];this.Ra=!0}function y(){this.Mo=[];this.reset(null)}var k=[];p.prototype.toString=function(){return this.name};p.prototype.$m=function(a,c,b){switch(a[0]){case 0:a=new Nb(this,
c,a);if(a.Hc)for(b.push(a),b=0,c=a.hb.length;b<c;b++)a.hb[b].trigger&&this.an(a,b);else a.ln()?this.an(a,0):b.push(a);break;case 1:a=new Gb(this,c,a);b.push(a);break;case 2:a=new Ob(this,c,a),b.push(a)}};p.prototype.za=function(){var a,c;a=0;for(c=this.Od.length;a<c;a++)this.Od[a].za(a<c-1&&this.Od[a+1].ii)};p.prototype.Nl=function(){this.Sj.length=0;this.Ej.length=0;this.lm(this);this.Ej.length=0};p.prototype.lm=function(a){var c,b,d,e,g=a.Sj,k=a.Ej,h=this.Ym.Oc();c=0;for(b=h.length;c<b;++c)d=h[c],
e=d.fg,!d.Ra||a===e||-1<k.indexOf(e)||(k.push(e),e.lm(a),g.push(e))};p.prototype.La=function(a){this.b.av||(this.wk=!0,a||(this.b.Fk=!0));var c,b;c=0;for(b=this.Od.length;c<b;c++){var d=this.Od[c];d.La();this.b.Mj(d.ma);this.b.Pd&&this.b.fb()}a||(this.b.Fk=!1)};p.prototype.an=function(a,c){a.Hc||this.b.nj.push(a);var b,d,e=a.hb[c],g;g=e.type?e.type.name:"system";var k=(b=e.Im)?this.Jm:this.So;k[g]||(k[g]=[]);g=k[g];k=e.Za;if(b){if(e.I.length&&(e=e.I[0],1===e.type&&2===e.Sc.type)){e=e.Sc.value.toLowerCase();
b=0;for(d=g.length;b<d;b++)if(g[b].method==k){b=g[b].Wf;b[e]?b[e].push([a,c]):b[e]=[[a,c]];return}b={};b[e]=[[a,c]];g.push({method:k,Wf:b})}}else{b=0;for(d=g.length;b<d;b++)if(g[b].method==k){g[b].Wf.push([a,c]);return}ac&&k===ac.prototype.j.Pe?g.unshift({method:k,Wf:[[a,c]]}):g.push({method:k,Wf:[[a,c]]})}};xb=p;m.prototype.vk=function(){return this.ja?this.type.c.length:this.c.length};m.prototype.Dc=function(){return this.ja?this.type.c:this.c};m.prototype.Ug=function(a){a&&(a.b.nb().Pb.Hc?(this.ja&&
(this.c.length=0,ta(this.V,a.type.c),this.ja=!1),a=this.V.indexOf(a),-1!==a&&(this.c.push(this.V[a]),this.V.splice(a,1))):(this.ja=!1,this.c.length=1,this.c[0]=a))};eb=m;window._c2hh_="028182FC3C1790C453899C06084DBCA3F631EAD1";a.prototype.za=function(a){var c,d=this.parent;if(this.group)for(this.kj=!0;d;){if(!d.group){this.kj=!1;break}d=d.parent}this.Jl=!this.ln()&&(!this.parent||this.parent.group&&this.parent.kj);this.Wm=!!a;this.Yd=this.ma.slice(0);for(d=this.parent;d;){a=0;for(c=d.ma.length;a<
c;a++)this.iq(d.ma[a]);d=d.parent}this.ma=b(this.ma);this.Yd=b(this.Yd);a=0;for(c=this.hb.length;a<c;a++)this.hb[a].za();a=0;for(c=this.zc.length;a<c;a++)this.zc[a].za();a=0;for(c=this.xc.length;a<c;a++)this.xc[a].za(a<c-1&&this.xc[a+1].ii)};a.prototype.tt=function(a){if(this.Ye!==!!a){this.Ye=!!a;var c;a=0;for(c=this.Eh.length;a<c;++a)this.Eh[a].Yo();0<c&&this.b.Z.re&&this.b.Z.re.Nl()}};a.prototype.mm=function(a){c(a,this.ma)};a.prototype.iq=function(a){c(a,this.Yd)};a.prototype.Wi=function(){this.Ko=
!0;this.parent&&this.parent.Wi()};a.prototype.ln=function(){return this.hb.length?this.hb[0].trigger:!1};a.prototype.La=function(){var a,c=!1,b,d=this.b,e=this.b.nb();e.Pb=this;var g=this.hb;this.ii||(e.Wj=!1);if(this.Hc){0===g.length&&(c=!0);e.zb=0;for(a=g.length;e.zb<a;e.zb++)g[e.zb].trigger||(b=g[e.zb].La())&&(c=!0);(e.De=c)&&this.tl()}else{e.zb=0;for(a=g.length;e.zb<a;e.zb++)if(b=g[e.zb].La(),!b){e.De=!1;this.Jl&&d.Pd&&d.fb();return}e.De=!0;this.tl()}this.Tq(e)};a.prototype.Tq=function(a){a.De&&
this.Wm&&(a.Wj=!0);this.Jl&&this.b.Pd&&this.b.fb()};a.prototype.kt=function(a){this.b.nb().Pb=this;this.hb[a].La()&&(this.tl(),this.b.nb().De=!0)};a.prototype.tl=function(){var a=this.b.nb(),c;a.Lb=0;for(c=this.zc.length;a.Lb<c;a.Lb++)if(this.zc[a.Lb].La())return;this.xo()};a.prototype.it=function(){var a=this.b.nb(),c;for(c=this.zc.length;a.Lb<c;a.Lb++)if(this.zc[a.Lb].La())return;this.xo()};a.prototype.xo=function(){if(this.xc.length){var a,c,b,d,e=this.xc.length-1;this.b.nl(this);if(this.Ko)for(a=
0,c=this.xc.length;a<c;a++)b=this.xc[a],(d=!this.kj||!this.group&&a<e)&&this.b.ml(b.ma),b.La(),d?this.b.zf(b.ma):this.b.Mj(b.ma);else for(a=0,c=this.xc.length;a<c;a++)this.xc[a].La();this.b.no()}};a.prototype.lt=function(){var a=this.b.nb();a.Pb=this;var c=!1,b;a.zb=0;for(b=this.hb.length;a.zb<b;a.zb++)if(this.hb[a.zb].La())c=!0;else if(!this.Hc)return!1;return this.Hc?c:!0};a.prototype.ts=function(a){var c=a.index;if(0===c)return!0;for(--c;0<=c;--c)if(this.hb[c].type===a.type)return!1;return!0};
Nb=a;d.prototype.za=function(){var a,c,b;a=0;for(c=this.I.length;a<c;a++)b=this.I[a],b.za(),b.yc&&(this.Pf=!0)};d.prototype.nt=function(){return!0};d.prototype.wl=function(){var a,c;a=0;for(c=this.I.length;a<c;a++)this.ea[a]=this.I[a].get();return Oa(this.Za.apply(this.b.$c,this.ea),this.cf)};d.prototype.mt=function(){var a,c;a=0;for(c=this.I.length;a<c;a++)this.ea[a]=this.I[a].get();a=this.Za.apply(this.ie?this.ie:this.type,this.ea);this.type.fd();return a};d.prototype.ul=function(){var a,c,b,d,
e,g,k,h,f=this.type,m=f.ca(),p=this.ac.Hc&&!this.trigger;c=0;var n=f.Fc,r=f.B,w=f.od,F=this.kc,y=-1<F,A=this.Pf,G=this.I,D=this.ea,T=this.cf,E=this.Za,H;if(A)for(c=0,e=G.length;c<e;++c)g=G[c],g.yc||(D[c]=g.get(0));else for(c=0,e=G.length;c<e;++c)D[c]=G[c].get(0);if(m.ja){m.c.length=0;m.V.length=0;H=f.c;a=0;for(d=H.length;a<d;++a){h=H[a];if(A)for(c=0,e=G.length;c<e;++c)g=G[c],g.yc&&(D[c]=g.get(a));y?(c=0,r&&(c=h.type.We[w]),c=E.apply(h.G[F+c],D)):c=E.apply(h,D);(k=Oa(c,T))?m.c.push(h):p&&m.V.push(h)}f.finish&&
f.finish(!0);m.ja=!1;f.fd();return m.vk()}b=0;H=(k=p&&!this.ac.ts(this))?m.V:m.c;var L=!1;a=0;for(d=H.length;a<d;++a){h=H[a];if(A)for(c=0,e=G.length;c<e;++c)g=G[c],g.yc&&(D[c]=g.get(a));y?(c=0,r&&(c=h.type.We[w]),c=E.apply(h.G[F+c],D)):c=E.apply(h,D);if(Oa(c,T))if(L=!0,k){if(m.c.push(h),n)for(c=0,e=h.siblings.length;c<e;c++)g=h.siblings[c],g.type.ca().c.push(g)}else{H[b]=h;if(n)for(c=0,e=h.siblings.length;c<e;c++)g=h.siblings[c],g.type.ca().c[b]=g;b++}else if(k){H[b]=h;if(n)for(c=0,e=h.siblings.length;c<
e;c++)g=h.siblings[c],g.type.ca().V[b]=g;b++}else if(p&&(m.V.push(h),n))for(c=0,e=h.siblings.length;c<e;c++)g=h.siblings[c],g.type.ca().V.push(g)}H.length=b;if(n)for(r=f.Ob,a=0,d=r.length;a<d;a++)h=r[a].ca(),k?h.V.length=b:h.c.length=b;b=L;if(k&&!L)for(a=0,d=m.c.length;a<d;a++){h=m.c[a];if(A)for(c=0,e=G.length;c<e;c++)g=G[c],g.yc&&(D[c]=g.get(a));c=y?E.apply(h.G[F],D):E.apply(h,D);if(Oa(c,T)){L=!0;break}}f.finish&&f.finish(b||p);return p?L:m.vk()};Kb=d;r.prototype.za=function(){var a,c,b;a=0;for(c=
this.I.length;a<c;a++)b=this.I[a],b.za(),b.yc&&(this.Pf=!0)};r.prototype.wl=function(){var a,c;a=0;for(c=this.I.length;a<c;a++)this.ea[a]=this.I[a].get();return this.Za.apply(this.b.$c,this.ea)};r.prototype.ul=function(){var a=this.type.ca().Dc(),c=this.type.B,b=this.type.od,d=this.kc,e=-1<d,g=this.Pf,k=this.I,h=this.ea,f=this.Za,m,p,n,r,w,F;if(g)for(p=0,r=k.length;p<r;++p)w=k[p],w.yc||(h[p]=w.get(0));else for(p=0,r=k.length;p<r;++p)h[p]=k[p].get(0);m=0;for(n=a.length;m<n;++m){F=a[m];if(g)for(p=0,
r=k.length;p<r;++p)w=k[p],w.yc&&(h[p]=w.get(m));e?(p=0,c&&(p=F.type.We[b]),f.apply(F.G[d+p],h)):f.apply(F,h)}return!1};Lb=r;var F=[],w=-1;e.prototype.za=function(){var a,c;if(11===this.type)this.se=this.b.Qm(this.nh,this.ac.parent);else if(13===this.type)for(a=0,c=this.Le.length;a<c;a++)this.Le[a].za();this.Sc&&this.Sc.za()};e.prototype.Es=function(a){this.yc||!a||a.ya.Xi||(this.yc=!0)};e.prototype.Co=function(){this.yc=!0};e.prototype.Ka=function(){w++;F.length===w&&F.push(new Pb);return F[w]};e.prototype.Ga=
function(){w--};e.prototype.Tr=function(a){this.Zd=a||0;a=this.Ka();this.Sc.get(a);this.Ga();return a.data};e.prototype.Ur=function(a){this.Zd=a||0;a=this.Ka();this.Sc.get(a);this.Ga();return M(a.data)?a.data:""};e.prototype.$r=function(){return this.object};e.prototype.Rr=function(){return this.zm};e.prototype.Yr=function(a){this.Zd=a||0;a=this.Ka();this.Sc.get(a);this.Ga();return a.Ta()?this.b.qd(a.data):this.b.$f(a.data)};e.prototype.Zr=function(){return this.ga};e.prototype.Xr=function(){return this.key};
e.prototype.Wr=function(){return this.index};e.prototype.Vr=function(a){a=a||0;var c=this.k.type,b=null,b=c.ca(),d=b.Dc();if(d.length)b=d[a%d.length].type;else if(b.V.length)b=b.V[a%b.V.length].type;else if(c.c.length)b=c.c[a%c.c.length].type;else return 0;return this.index+b.Ph[c.od]};e.prototype.Sr=function(){return this.se};e.prototype.Qr=function(){return this.Km};e.prototype.as=function(){var a,c;a=0;for(c=this.Le.length;a<c;a++)this.mh[a]=this.Le[a].get();return this.mh};Mb=e;g.prototype.za=
function(){this.ma=b(this.ma)};g.prototype.Ke=function(a){var c=this.b.Pm();this.parent&&!this.ng&&c?(this.Ge>=c.length&&(c.length=this.Ge+1),c[this.Ge]=a):this.data=a};g.prototype.bg=function(){var a=this.b.Pm();return!this.parent||this.ng||!a||this.hi?this.data:this.Ge>=a.length||"undefined"===typeof a[this.Ge]?this.ci:a[this.Ge]};g.prototype.La=function(){!this.parent||this.ng||this.hi||this.Ke(this.ci)};Gb=g;h.prototype.toString=function(){return"include:"+this.fg.toString()};h.prototype.za=function(){this.fg=
this.b.Yj[this.ks];this.sheet.Ym.add(this);this.ma=b(this.ma);for(var a=this.parent;a;)a.group&&a.Eh.push(this),a=a.parent;this.Yo()};h.prototype.La=function(){this.parent&&this.b.Wg(this.b.n);this.fg.wk||this.fg.La(!0);this.parent&&this.b.zf(this.b.n)};h.prototype.Yo=function(){for(var a=this.parent;a;){if(a.group&&!a.Ye){this.Ra=!1;return}a=a.parent}this.Ra=!0};Ob=h;y.prototype.reset=function(a){this.Pb=a;this.Lb=this.zb=0;this.Mo.length=0;this.Wj=this.De=!1};Fb=y})();
(function(){function f(b,f){this.k=b;this.b=b.b;this.type=f[0];this.get=[this.fr,this.br,this.or,this.rr,this.Vq,this.pr,this.kr,this.Yq,this.jr,this.nr,this.Wq,this.mr,this.Zq,this.lr,this.hr,this.ir,this.cr,this.dr,this.Xq,this.qr,this.Gm,this.er,this.Gm,this.$q][this.type];var m=null;this.Eb=this.I=this.ea=this.Za=this.hj=this.Xa=this.first=this.value=null;this.kc=-1;this.rd=null;this.Sl=-1;this.se=this.nh=null;this.Zg=!1;switch(this.type){case 0:case 1:case 2:this.value=f[1];break;case 3:this.first=
new U(b,f[1]);break;case 18:this.first=new U(b,f[1]);this.Xa=new U(b,f[2]);this.hj=new U(b,f[3]);break;case 19:this.Za=this.b.Fd(f[1]);this.Za!==W.prototype.Rb.random&&this.Za!==W.prototype.Rb.vq||this.k.Co();this.ea=[];this.I=[];3===f.length?(m=f[2],this.ea.length=m.length+1):this.ea.length=1;break;case 20:this.Eb=this.b.n[f[1]];this.kc=-1;this.Za=this.b.Fd(f[2]);this.Zg=f[3];Rb.Function&&this.Za===Rb.Function.prototype.Rb.St&&this.k.Co();this.rd=f[4]?new U(b,f[4]):null;this.ea=[];this.I=[];6===
f.length?(m=f[5],this.ea.length=m.length+1):this.ea.length=1;break;case 21:this.Eb=this.b.n[f[1]];this.Zg=f[2];this.rd=f[3]?new U(b,f[3]):null;this.Sl=f[4];break;case 22:this.Eb=this.b.n[f[1]];this.Eb.Vh(f[2]);this.kc=this.Eb.ik(f[2]);this.Za=this.b.Fd(f[3]);this.Zg=f[4];this.rd=f[5]?new U(b,f[5]):null;this.ea=[];this.I=[];7===f.length?(m=f[6],this.ea.length=m.length+1):this.ea.length=1;break;case 23:this.nh=f[1],this.se=null}this.k.Es(this.Eb);4<=this.type&&17>=this.type&&(this.first=new U(b,f[1]),
this.Xa=new U(b,f[2]));if(m){var a,c;a=0;for(c=m.length;a<c;a++)this.I.push(new U(b,m[a]))}}function n(b,f){this.type=b||V.Oe;this.data=f||0;this.tf=null;this.type==V.Oe&&(this.data=Math.floor(this.data))}f.prototype.za=function(){23===this.type&&(this.se=this.k.b.Qm(this.nh,this.k.ac.parent));this.first&&this.first.za();this.Xa&&this.Xa.za();this.hj&&this.hj.za();this.rd&&this.rd.za();if(this.I){var b,f;b=0;for(f=this.I.length;b<f;b++)this.I[b].za()}};f.prototype.qr=function(b){this.ea[0]=b;b=this.k.Ka();
var f,m;f=0;for(m=this.I.length;f<m;f++)this.I[f].get(b),this.ea[f+1]=b.data;this.k.Ga();this.Za.apply(this.b.$c,this.ea)};f.prototype.Gm=function(b){var f=this.Eb.ca(),m=f.Dc();if(!m.length)if(f.V.length)m=f.V;else{this.Zg?b.ic(""):b.fa(0);return}this.ea[0]=b;b.tf=this.Eb;b=this.k.Ka();var a,f=0;for(a=this.I.length;f<a;f++)this.I[f].get(b),this.ea[f+1]=b.data;f=this.k.Zd;this.rd&&(this.rd.get(b),b.Ta()&&(f=b.data,m=this.Eb.c));this.k.Ga();f%=m.length;0>f&&(f+=m.length);m=m[f];-1<this.kc?(b=0,this.Eb.B&&
(b=m.type.We[this.Eb.od]),this.Za.apply(m.G[this.kc+b],this.ea)):this.Za.apply(m,this.ea)};f.prototype.er=function(b){var f=this.Eb.ca(),m=f.Dc();if(!m.length)if(f.V.length)m=f.V;else{this.Zg?b.ic(""):b.fa(0);return}f=this.k.Zd;if(this.rd){var a=this.k.Ka();this.rd.get(a);if(a.Ta()){f=a.data;m=this.Eb.c;f%=m.length;0>f&&(f+=m.length);m=m[f].Ia[this.Sl];M(m)?b.ic(m):b.u(m);this.k.Ga();return}this.k.Ga()}f%=m.length;0>f&&(f+=m.length);m=m[f];f=0;this.Eb.B&&(f=m.type.Ph[this.Eb.od]);m=m.Ia[this.Sl+f];
M(m)?b.ic(m):b.u(m)};f.prototype.fr=function(b){b.type=V.Oe;b.data=this.value};f.prototype.br=function(b){b.type=V.Ne;b.data=this.value};f.prototype.or=function(b){b.type=V.String;b.data=this.value};f.prototype.rr=function(b){this.first.get(b);b.Ta()&&(b.data=-b.data)};f.prototype.Vq=function(b){this.first.get(b);var f=this.k.Ka();this.Xa.get(f);b.Ta()&&f.Ta()&&(b.data+=f.data,f.jf()&&b.qf());this.k.Ga()};f.prototype.pr=function(b){this.first.get(b);var f=this.k.Ka();this.Xa.get(f);b.Ta()&&f.Ta()&&
(b.data-=f.data,f.jf()&&b.qf());this.k.Ga()};f.prototype.kr=function(b){this.first.get(b);var f=this.k.Ka();this.Xa.get(f);b.Ta()&&f.Ta()&&(b.data*=f.data,f.jf()&&b.qf());this.k.Ga()};f.prototype.Yq=function(b){this.first.get(b);var f=this.k.Ka();this.Xa.get(f);b.Ta()&&f.Ta()&&(b.data/=f.data,b.qf());this.k.Ga()};f.prototype.jr=function(b){this.first.get(b);var f=this.k.Ka();this.Xa.get(f);b.Ta()&&f.Ta()&&(b.data%=f.data,f.jf()&&b.qf());this.k.Ga()};f.prototype.nr=function(b){this.first.get(b);var f=
this.k.Ka();this.Xa.get(f);b.Ta()&&f.Ta()&&(b.data=Math.pow(b.data,f.data),f.jf()&&b.qf());this.k.Ga()};f.prototype.Wq=function(b){this.first.get(b);var f=this.k.Ka();this.Xa.get(f);b.Ta()?f.ji()?b.ic(b.data.toString()+f.data):b.data&&f.data?b.fa(1):b.fa(0):b.ji()&&(b.data=f.ji()?b.data+f.data:b.data+(Math.round(1E10*f.data)/1E10).toString());this.k.Ga()};f.prototype.mr=function(b){this.first.get(b);var f=this.k.Ka();this.Xa.get(f);b.Ta()&&f.Ta()&&(b.data||f.data?b.fa(1):b.fa(0));this.k.Ga()};f.prototype.Xq=
function(b){this.first.get(b);b.data?this.Xa.get(b):this.hj.get(b)};f.prototype.Zq=function(b){this.first.get(b);var f=this.k.Ka();this.Xa.get(f);b.fa(b.data===f.data?1:0);this.k.Ga()};f.prototype.lr=function(b){this.first.get(b);var f=this.k.Ka();this.Xa.get(f);b.fa(b.data!==f.data?1:0);this.k.Ga()};f.prototype.hr=function(b){this.first.get(b);var f=this.k.Ka();this.Xa.get(f);b.fa(b.data<f.data?1:0);this.k.Ga()};f.prototype.ir=function(b){this.first.get(b);var f=this.k.Ka();this.Xa.get(f);b.fa(b.data<=
f.data?1:0);this.k.Ga()};f.prototype.cr=function(b){this.first.get(b);var f=this.k.Ka();this.Xa.get(f);b.fa(b.data>f.data?1:0);this.k.Ga()};f.prototype.dr=function(b){this.first.get(b);var f=this.k.Ka();this.Xa.get(f);b.fa(b.data>=f.data?1:0);this.k.Ga()};f.prototype.$q=function(b){var f=this.se.bg();K(f)?b.u(f):b.ic(f)};U=f;n.prototype.jf=function(){return this.type===V.Ne};n.prototype.Ta=function(){return this.type===V.Oe||this.type===V.Ne};n.prototype.ji=function(){return this.type===V.String};
n.prototype.qf=function(){this.jf()||(this.ji()&&(this.data=parseFloat(this.data)),this.type=V.Ne)};n.prototype.fa=function(b){this.type=V.Oe;this.data=Math.floor(b)};n.prototype.u=function(b){this.type=V.Ne;this.data=b};n.prototype.ic=function(b){this.type=V.String;this.data=b};n.prototype.yt=function(b){K(b)?(this.type=V.Ne,this.data=b):M(b)?(this.type=V.String,this.data=b.toString()):(this.type=V.Oe,this.data=0)};Pb=n;V={Oe:0,Ne:1,String:2}})();function W(f){this.b=f;this.Kb=[]}
W.prototype.Xb=function(){var f={},n,b,p,m,a,c,d,r;f.waits=[];var e=f.waits,g;n=0;for(b=this.Kb.length;n<b;n++){c=this.Kb[n];g={t:c.time,st:c.Jo,s:c.Bl,ev:c.Ve.P,sm:[],sols:{}};c.Ve.zc[c.Lb]&&(g.act=c.Ve.zc[c.Lb].P);p=0;for(m=c.ma.length;p<m;p++)g.sm.push(c.ma[p].P);for(a in c.sb)if(c.sb.hasOwnProperty(a)){d=this.b.n[parseInt(a,10)];r={sa:c.sb[a].Ti,insts:[]};p=0;for(m=c.sb[a].sd.length;p<m;p++)r.insts.push(c.sb[a].sd[p].uid);g.sols[d.P.toString()]=r}e.push(g)}return f};
W.prototype.tc=function(f){f=f.waits;var n,b,p,m,a,c,d,r,e,g,h;n=this.Kb.length=0;for(b=f.length;n<b;n++)if(c=f[n],r=this.b.rm[c.ev.toString()]){e=-1;p=0;for(m=r.zc.length;p<m;p++)if(r.zc[p].P===c.act){e=p;break}if(-1!==e){d={sb:{},ma:[],Tj:!1};d.time=c.t;d.Jo=c.st||"";d.Bl=!!c.s;d.Ve=r;d.Lb=e;p=0;for(m=c.sm.length;p<m;p++)(r=this.b.Yh(c.sm[p]))&&d.ma.push(r);for(a in c.sols)if(c.sols.hasOwnProperty(a)&&(r=this.b.Yh(parseInt(a,10)))){e=c.sols[a];g={Ti:e.sa,sd:[]};p=0;for(m=e.insts.length;p<m;p++)(h=
this.b.Xh(e.insts[p]))&&g.sd.push(h);d.sb[r.index.toString()]=g}this.Kb.push(d)}}};
(function(){function f(){}function n(){}function b(){}var p=W.prototype;f.prototype.Zl=function(){return!0};f.prototype.Pp=function(){return!0};f.prototype.kp=function(a,b,f){return Qb(a.bg(),b,f)};f.prototype.mp=function(){var a=this.b.nb();return a.Wj?!1:!a.De};f.prototype.$l=function(){return!0};f.prototype.Cp=function(){return!0};f.prototype.yj=function(){return!0};f.prototype.Qp=function(){return!0};f.prototype.wj=function(){return!0};f.prototype.gp=function(a,b,f){return Fa(R(a),R(f))<=R(b)};
f.prototype.pp=function(a,b){return Ha(R(a),R(b))};f.prototype.np=function(a,b,f){a=Ca(a);b=Ca(b);f=Ca(f);return Ha(f,b)?Ha(a,b)&&!Ha(a,f):!(!Ha(a,b)&&Ha(a,f))};p.j=new f;n.prototype.wp=function(a){if(!this.b.lf&&!this.b.je){var b=this.b.Vb.indexOf(this.b.Z);if(!a||0!==b)if(a||b!==this.b.Vb.length-1)this.b.je=this.b.Vb[b+(a?-1:1)]}};n.prototype.$p=function(a,b){0===a.rj?K(b)?a.Ke(b):a.Ke(parseFloat(b)):1===a.rj&&a.Ke(b.toString())};n.prototype.fp=function(a,b){0===a.rj?K(b)?a.Ke(a.bg()+b):a.Ke(a.bg()+
parseFloat(b)):1===a.rj&&a.Ke(a.bg()+b.toString())};var m=[],a=[];n.prototype.bq=function(c){if(!(0>c)){var b,f,e,g=this.b.nb(),h;h=m.length?m.pop():{sb:{},ma:[]};h.Tj=!1;h.time=this.b.gc.aa+c;h.Jo="";h.Bl=!1;h.Ve=g.Pb;h.Lb=g.Lb+1;c=0;for(b=this.b.n.length;c<b;c++)e=this.b.n[c],f=e.ca(),f.ja&&-1===g.Pb.ma.indexOf(e)||(h.ma.push(e),e=void 0,e=a.length?a.pop():{sd:[]},e.Ti=!1,e.Ti=f.ja,ta(e.sd,f.c),h.sb[c.toString()]=e);this.Kb.push(h);return!0}};n.prototype.Vp=function(){var a,b,f;a=0;for(b=this.b.Bj.length;a<
b;a++)f=this.b.Bj[a],f.data=f.ci};n.prototype.Wp=function(){if(!this.b.lf&&!this.b.je&&this.b.Z){this.b.je=this.b.Z;var a,b,f;a=0;for(b=this.b.Id.length;a<b;a++)f=this.b.Id[a],f.tt(f.di)}};n.prototype.Xp=function(a){this.b.Ui=a};n.prototype.vp=function(a){this.b.xg=a};p.ra=new n;b.prototype["int"]=function(a,b){M(b)?(a.fa(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.fa(b)};b.prototype["float"]=function(a,b){M(b)?(a.u(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.u(b)};b.prototype.random=function(a,
b,f){void 0===f?a.u(Math.random()*b):a.u(Math.random()*(f-b)+b)};b.prototype.sqrt=function(a,b){a.u(Math.sqrt(b))};b.prototype.abs=function(a,b){a.u(Math.abs(b))};b.prototype.round=function(a,b){a.fa(Math.round(b))};b.prototype.floor=function(a,b){a.fa(Math.floor(b))};b.prototype.ceil=function(a,b){a.fa(Math.ceil(b))};b.prototype.sin=function(a,b){a.u(Math.sin(R(b)))};b.prototype.cos=function(a,b){a.u(Math.cos(R(b)))};b.prototype.tan=function(a,b){a.u(Math.tan(R(b)))};b.prototype.asin=function(a,
b){a.u(ya(Math.asin(b)))};b.prototype.acos=function(a,b){a.u(ya(Math.acos(b)))};b.prototype.atan=function(a,b){a.u(ya(Math.atan(b)))};b.prototype.exp=function(a,b){a.u(Math.exp(b))};b.prototype.log10=function(a,b){a.u(Math.log(b)/Math.LN10)};b.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var f,e,g;f=2;for(e=arguments.length;f<e;f++)g=arguments[f],"number"===typeof g&&b<g&&(b=g);a.u(b)};b.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var f,e,g;f=
2;for(e=arguments.length;f<e;f++)g=arguments[f],"number"===typeof g&&b>g&&(b=g);a.u(b)};b.prototype.qe=function(a){a.u(this.b.qe)};b.prototype.If=function(a){a.u(this.b.If)};b.prototype.time=function(a){a.u(this.b.gc.aa)};b.prototype.jh=function(a){a.fa(this.b.jh)};b.prototype.Ai=function(a){a.fa(this.b.Ai)};b.prototype.ek=function(a){a.fa(this.b.ek)};b.prototype.e=function(a,b,f,e,g){a.u(ya(Ea(b,f,e,g)))};b.prototype.find=function(a,b,f){M(b)&&M(f)?a.fa(b.search(new RegExp(Va(f),"i"))):a.fa(-1)};
b.prototype.left=function(a,b,f){a.ic(M(b)?b.substr(0,f):"")};b.prototype.right=function(a,b,f){a.ic(M(b)?b.substr(b.length-f):"")};b.prototype.replace=function(a,b,f,e){M(b)&&M(f)&&M(e)?a.ic(b.replace(new RegExp(Va(f),"gi"),e)):a.ic(M(b)?b:"")};b.prototype.trim=function(a,b){a.ic(M(b)?b.trim():"")};b.prototype.vq=function(a){var b=O(Math.random()*(arguments.length-1));a.yt(arguments[b+1])};b.prototype.Nj=function(a){a.u(this.b.Nj/1E3)};b.prototype.si=function(a){a.u(this.b.si)};p.Rb=new b;p.jt=function(){var c,
b,f,e,g,h,n=this.b.nb();c=0;for(f=this.Kb.length;c<f;c++){e=this.Kb[c];if(-1===e.time){if(!e.Bl)continue}else if(e.time>this.b.gc.aa)continue;n.Pb=e.Ve;n.Lb=e.Lb;n.zb=0;for(b in e.sb)e.sb.hasOwnProperty(b)&&(g=this.b.n[parseInt(b,10)].ca(),h=e.sb[b],g.ja=h.Ti,ta(g.c,h.sd),g=h,g.sd.length=0,a.push(g));e.Ve.it();this.b.Mj(e.ma);e.Tj=!0}b=c=0;for(f=this.Kb.length;c<f;c++)e=this.Kb[c],this.Kb[b]=e,e.Tj?(Qa(e.sb),e.ma.length=0,m.push(e)):b++;this.Kb.length=b}})();
(function(){db=function(f,b){var p=f[1],m=f[3],a=f[4],c=f[5],d=f[6],r=f[7],e=f[8];b.j||(b.j={});b.ra||(b.ra={});b.Rb||(b.Rb={});var g=b.j,h=b.ra,y=b.Rb;m&&(g.Xt=function(a,c){return Qb(this.x,a,c)},g.Yt=function(a,c){return Qb(this.y,a,c)},g.du=function(){var a=this.d;this.Aa();var c=this.Ca;return!(c.right<a.Pa||c.bottom<a.Qa||c.left>a.eb||c.top>a.cb)},g.eu=function(){this.Aa();var a=this.Ca,c=this.b.Z;return 0>a.right||0>a.bottom||a.left>c.width||a.top>c.height},g.qu=function(a,c,b){var d=this.ca(),
e=d.Dc();if(!e.length)return!1;var f=e[0],g=f,h=Na(f.x,f.y,c,b),m,n,r;m=1;for(n=e.length;m<n;m++)if(f=e[m],r=Na(f.x,f.y,c,b),0===a&&r<h||1===a&&r>h)h=r,g=f;d.Ug(g);return!0},h.Iu=function(a){this.x!==a&&(this.x=a,this.Ha())},h.Ju=function(a){this.y!==a&&(this.y=a,this.Ha())},h.Zp=function(a,c){if(this.x!==a||this.y!==c)this.x=a,this.y=c,this.Ha()},h.Eu=function(a,c){var b=a.Lr(this);if(b){var d;b.ok?(d=b.ok(c,!0),b=b.ok(c,!1)):(d=b.x,b=b.y);if(this.x!==d||this.y!==b)this.x=d,this.y=b,this.Ha()}},
h.ju=function(a){0!==a&&(this.x+=Math.cos(this.e)*a,this.y+=Math.sin(this.e)*a,this.Ha())},h.iu=function(a,c){0!==c&&(this.x+=Math.cos(R(a))*c,this.y+=Math.sin(R(a))*c,this.Ha())},y.gm=function(a){a.u(this.x)},y.hm=function(a){a.u(this.y)},y.qe=function(a){a.u(this.b.lk(this))});a&&(g.Wt=function(a,c){return Qb(this.width,a,c)},g.Tt=function(a,c){return Qb(this.height,a,c)},h.Hu=function(a){this.width!==a&&(this.width=a,this.Ha())},h.Cu=function(a){this.height!==a&&(this.height=a,this.Ha())},h.Fu=
function(a,c){if(this.width!==a||this.height!==c)this.width=a,this.height=c,this.Ha()},y.Nu=function(a){a.u(this.width)},y.$t=function(a){a.u(this.height)},y.Pt=function(a){this.Aa();a.u(this.Ca.left)},y.Rt=function(a){this.Aa();a.u(this.Ca.top)},y.Qt=function(a){this.Aa();a.u(this.Ca.right)},y.Ot=function(a){this.Aa();a.u(this.Ca.bottom)});c&&(g.gp=function(a,c){return Fa(this.e,R(c))<=R(a)},g.pp=function(a){return Ha(this.e,R(a))},g.np=function(a,c){var b=Ca(a),d=Ca(c),e=Aa(this.e);return Ha(d,
b)?Ha(e,b)&&!Ha(e,d):!(!Ha(e,b)&&Ha(e,d))},h.yu=function(a){a=R(za(a));isNaN(a)||this.e===a||(this.e=a,this.Ha())},h.uu=function(a){0===a||isNaN(a)||(this.e+=R(a),this.e=Aa(this.e),this.Ha())},h.vu=function(a){0===a||isNaN(a)||(this.e-=R(a),this.e=Aa(this.e),this.Ha())},h.wu=function(a,c){var b=Ga(this.e,R(c),R(a));isNaN(b)||this.e===b||(this.e=b,this.Ha())},h.xu=function(a,c,b){a=Ga(this.e,Math.atan2(b-this.y,c-this.x),R(a));isNaN(a)||this.e===a||(this.e=a,this.Ha())},h.Gu=function(a,c){var b=Math.atan2(c-
this.y,a-this.x);isNaN(b)||this.e===b||(this.e=b,this.Ha())},y.Nt=function(a){a.u(Ba(this.e))});p||(g.Ut=function(a,c,b){return Qb(this.Ia[a],c,b)},g.bu=function(a){return this.Ia[a]},g.ru=function(a,c){var b=this.ca(),d=b.Dc();if(!d.length)return!1;var e=d[0],f=e,g=e.Ia[c],h,m,n;h=1;for(m=d.length;h<m;h++)if(e=d[h],n=e.Ia[c],0===a&&n<g||1===a&&n>g)g=n,f=e;b.Ug(f);return!0},g.pu=function(a){var c,b,d,e,f;if(this.b.kk().cf){f=this.ca();if(f.ja)for(f.ja=!1,f.c.length=0,f.V.length=0,d=this.c,c=0,b=d.length;c<
b;c++)e=d[c],e.uid===a?f.V.push(e):f.c.push(e);else{d=c=0;for(b=f.c.length;c<b;c++)e=f.c[c],f.c[d]=e,e.uid===a?f.V.push(e):d++;f.c.length=d}this.fd();return!!f.c.length}e=this.b.Xh(a);if(!e)return!1;f=this.ca();if(!f.ja&&-1===f.c.indexOf(e))return!1;if(this.B)for(a=e.type.pa,c=0,b=a.length;c<b;c++){if(a[c]===this)return f.Ug(e),this.fd(),!0}else if(e.type===this)return f.Ug(e),this.fd(),!0;return!1},g.Dp=function(){return!0},g.Ep=function(){return!0},h.Du=function(a,c){var b=this.Ia;K(b[a])?b[a]=
K(c)?c:parseFloat(c):M(b[a])&&(b[a]=M(c)?c:c.toString())},h.Mt=function(a,c){var b=this.Ia;K(b[a])?b[a]=K(c)?b[a]+c:b[a]+parseFloat(c):M(b[a])&&(b[a]=M(c)?b[a]+c:b[a]+c.toString())},h.Ku=function(a,c){var b=this.Ia;K(b[a])&&(b[a]=K(c)?b[a]-c:b[a]-parseFloat(c))},h.zu=function(a,c){this.Ia[a]=c?1:0},h.Lu=function(a){this.Ia[a]=1-this.Ia[a]},h.lp=function(){this.b.Ed(this)},h.up||(h.up=function(a){var c,b;try{c=JSON.parse(a)}catch(d){return}this.b.qi(this,c,!0);this.dd&&this.dd();if(this.G)for(a=0,
c=this.G.length;a<c;++a)b=this.G[a],b.dd&&b.dd()}),y.Zt=function(a){var c=a.tf.c.length,b,d,e;b=0;for(d=this.b.Bc.length;b<d;b++)e=this.b.Bc[b],a.tf.B?0<=e.type.pa.indexOf(a.tf)&&c++:e.type===a.tf&&c++;a.fa(c)},y.tu=function(a){a.fa(a.tf.ca().Dc().length)},y.Mu=function(a){a.fa(this.uid)},y.au=function(a){a.fa(this.cg())},y.hp||(y.hp=function(a){a.ic(JSON.stringify(this.b.xl(this,!0)))}));d&&(g.fu=function(){return this.visible},h.aq=function(a){!a!==!this.visible&&(this.visible=a,this.b.ha=!0)},
g.Vt=function(a,c){return Qb($a(100*this.opacity),a,c)},h.Yp=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ha=!0)},y.Opacity=function(a){a.u($a(100*this.opacity))});r&&(g.cu=function(a){return a?this.d===a:!1},g.su=function(a){var c=this.ca(),b=c.Dc();if(!b.length)return!1;var d=b[0],e=d,f,g;f=1;for(g=b.length;f<g;f++)if(d=b[f],0===a){if(d.d.index>e.d.index||d.d.index===e.d.index&&d.Sb()>e.Sb())e=d}else if(d.d.index<e.d.index||d.d.index===e.d.index&&d.Sb()<e.Sb())e=
d;c.Ug(e);return!0},h.mu=function(){var a=this.Sb();a!==this.d.c.length-1&&(sa(this.d.c,a),this.d.c.push(this),this.b.ha=!0,this.d.$b=!0)},h.ku=function(){var a=this.Sb();0!==a&&(sa(this.d.c,a),this.d.c.unshift(this),this.b.ha=!0,this.d.$b=!0)},h.lu=function(a){a&&a!=this.d&&(sa(this.d.c,this.Sb()),this.d.$b=!0,this.d=a,this.Me=a.c.length,a.c.push(this),this.b.ha=!0)},h.Pu=function(a,c){var b=0===a;if(c){var d=c.Gr(this);if(d&&d.uid!==this.uid){this.d.index!==d.d.index&&(sa(this.d.c,this.Sb()),this.d.$b=
!0,this.d=d.d,this.Me=d.d.c.length,d.d.c.push(this));var e=this.Sb(),d=d.Sb();sa(this.d.c,e);e<d&&d--;b&&d++;d===this.d.c.length?this.d.c.push(this):this.d.c.splice(d,0,this);this.d.$b=!0;this.b.ha=!0}}},y.hu=function(a){a.fa(this.d.Tn)},y.gu=function(a){a.ic(this.d.name)},y.Ou=function(a){a.fa(this.Sb())});e&&(h.Au=function(a,c){if(this.b.q){var b=this.type.nk(c);if(!(0>b)){var d=1===a;this.Gd[b]!==d&&(this.Gd[b]=d,this.Dd(),this.b.ha=!0)}}},h.Bu=function(a,c,b){if(this.b.q){var d=this.type.nk(a);
0>d||(a=this.type.H[d],d=this.ua[d],c=Math.floor(c),0>c||c>=d.length||(1===this.b.q.Pr(a.bb,c)&&(b/=100),d[c]!==b&&(d[c]=b,a.Ra&&(this.b.ha=!0))))}})};yb=function(){this.Jj=this.xh=!0;this.type.rh=!0;this.b.ha=!0;var f,b,p=this.Hj;f=0;for(b=p.length;f<b;++f)p[f](this)};zb=function(f){f&&this.Hj.push(f)};Bb=function(){if(this.xh){var f=this.Ca,b=this.Nb;f.set(this.x,this.y,this.x+this.width,this.y+this.height);f.offset(-this.Bb*this.width,-this.Cb*this.height);this.e?(f.offset(-this.x,-this.y),b.Eo(f,
this.e),b.offset(this.x,this.y),b.tm(f)):b.Df(f);f.normalize();this.xh=!1}};var f=new pa(0,0,0,0);Cb=function(){if(this.Jj&&this.ke){this.Aa();var n=this.type.Dh,b=this.Ch,p=this.Ca;f.set(n.ph(p.left),n.qh(p.top),n.ph(p.right),n.qh(p.bottom));b.Uq(f)||(b.right<b.left?n.update(this,null,f):n.update(this,b,f),b.xq(f),this.Jj=!1)}};Ab=function(f,b){return this.Ca.lb(f,b)&&this.Nb.lb(f,b)?this.W&&!this.W.hf()?(this.W.Se(this.width,this.height,this.e),this.W.lb(f-this.x,b-this.y)):!0:!1};ub=function(){this.type.pj();
return this.xe};Db=function(){this.d.cp();return this.Me};Eb=function(){this.U.length=0;var f,b;f=0;for(b=this.Gd.length;f<b;f++)this.Gd[f]&&this.U.push(this.type.H[f]);this.dp=!!this.U.length};vb=function(){return"Inst"+this.ro};gb=function(f){if(f&&f.Fc&&f.type!=this){var b,p,m;b=0;for(p=f.siblings.length;b<p;b++)if(m=f.siblings[b],m.type==this)return m}f=this.ca().Dc();return f.length?f[0]:null};hb=function(f){var b=this.ca().Dc();return b.length?b[f.cg()%b.length]:null};fb=function(){if(this.Gf&&
!this.B){var f,b;f=0;for(b=this.c.length;f<b;f++)this.c[f].xe=f;var p=f,m=this.b.Bc;f=0;for(b=m.length;f<b;++f)m[f].type===this&&(m[f].xe=p++);this.Gf=!1}};sb=function(f){if(f<this.c.length)return this.c[f];f-=this.c.length;var b=this.b.Bc,p,m;p=0;for(m=b.length;p<m;++p)if(b[p].type===this){if(0===f)return b[p];--f}return null};ib=function(){return this.$d[this.ld]};jb=function(){this.ld++;this.ld===this.$d.length?this.$d.push(new eb(this)):this.$d[this.ld].ja=!0};kb=function(){this.ld++;this.ld===
this.$d.length&&this.$d.push(new eb(this));var f=this.$d[this.ld],b=this.$d[this.ld-1];b.ja?f.ja=!0:(f.ja=!1,ta(f.c,b.c),ta(f.V,b.V))};nb=function(){this.ld--};ob=function(f){var b,p,m,a,c,d=0;if(!this.B)for(b=0,p=this.pa.length;b<p;b++)for(c=this.pa[b],m=0,a=c.Da.length;m<a;m++){if(f===c.Da[m].name)return this.va.lastBehIndex=d,c.Da[m];d++}b=0;for(p=this.Da.length;b<p;b++){if(f===this.Da[b].name)return this.va.lastBehIndex=d,this.Da[b];d++}return null};pb=function(f){return this.Vh(f)?this.va.lastBehIndex:
-1};qb=function(f){var b,p;b=0;for(p=this.H.length;b<p;b++)if(this.H[b].name===f)return b;return-1};rb=function(){if(this.Fc&&!this.B){var f,b,p,m,a,c,d;this.pj();c=this.ca();var r=c.ja,e=(f=this.b.nb())&&f.Pb&&f.Pb.Hc;f=0;for(b=this.Ob.length;f<b;f++)if(a=this.Ob[f],a!==this&&(a.pj(),d=a.ca(),d.ja=r,!r)){d.c.length=c.c.length;p=0;for(m=c.c.length;p<m;p++)d.c[p]=a.Rm(c.c[p].xe);if(e)for(d.V.length=c.V.length,p=0,m=c.V.length;p<m;p++)d.V[p]=a.Rm(c.V[p].xe)}}};tb=function(){return"Type"+this.P};Qb=
function(f,b,p){if("undefined"===typeof f||"undefined"===typeof p)return!1;switch(b){case 0:return f===p;case 1:return f!==p;case 2:return f<p;case 3:return f<=p;case 4:return f>p;case 5:return f>=p;default:return!1}}})();var Zb={};function bc(f){this.b=f}
(function(){function f(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function n(a){a=a.toLowerCase();return N.hasOwnProperty(a)&&N[a].length?N[a][0].cc():t.destination}function b(){return t.createGain?t.createGain():t.createGainNode()}function p(a){return t.createDelay?t.createDelay(a):t.createDelayNode(a)}function m(a){a.start?a.start(0):a.noteOn(0)}function a(a,c,b){a.start?a.start(0,c):a.noteGrainOn(0,c,b-c)}function c(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(c){}}function d(a,
c,d,e,f,g){this.type="filter";this.Ic=[a,c,d,e,f,g];this.R=b();this.F=b();this.F.gain.value=g;this.C=b();this.C.gain.value=1-g;this.Ea=t.createBiquadFilter();this.Ea.type="number"===typeof this.Ea.type?a:lc[a];this.Ea.frequency.value=c;this.Ea.detune&&(this.Ea.detune.value=d);this.Ea.Q.value=e;this.Ea.gain.value=f;this.R.connect(this.Ea);this.R.connect(this.C);this.Ea.connect(this.F)}function r(a,c,d){this.type="delay";this.Ic=[a,c,d];this.R=b();this.F=b();this.F.gain.value=d;this.C=b();this.C.gain.value=
1-d;this.Gg=b();this.nc=p(a);this.nc.delayTime.value=a;this.Mh=b();this.Mh.gain.value=c;this.R.connect(this.Gg);this.R.connect(this.C);this.Gg.connect(this.F);this.Gg.connect(this.nc);this.nc.connect(this.Mh);this.Mh.connect(this.Gg)}function e(a,c,d,e){this.type="convolve";this.Ic=[c,d,e];this.R=b();this.F=b();this.F.gain.value=d;this.C=b();this.C.gain.value=1-d;this.le=t.createConvolver();a&&(this.le.normalize=c,this.le.buffer=a);this.R.connect(this.le);this.R.connect(this.C);this.le.connect(this.F)}
function g(a,c,d,e,f){this.type="flanger";this.Ic=[a,c,d,e,f];this.R=b();this.C=b();this.C.gain.value=1-f/2;this.F=b();this.F.gain.value=f/2;this.Qh=b();this.Qh.gain.value=e;this.nc=p(a+c);this.nc.delayTime.value=a;this.Wa=t.createOscillator();this.Wa.frequency.value=d;this.Wb=b();this.Wb.gain.value=c;this.R.connect(this.nc);this.R.connect(this.C);this.nc.connect(this.F);this.nc.connect(this.Qh);this.Qh.connect(this.nc);this.Wa.connect(this.Wb);this.Wb.connect(this.nc.delayTime);m(this.Wa)}function h(a,
c,d,e,f,g){this.type="phaser";this.Ic=[a,c,d,e,f,g];this.R=b();this.C=b();this.C.gain.value=1-g/2;this.F=b();this.F.gain.value=g/2;this.Ea=t.createBiquadFilter();this.Ea.type="number"===typeof this.Ea.type?7:"allpass";this.Ea.frequency.value=a;this.Ea.detune&&(this.Ea.detune.value=c);this.Ea.Q.value=d;this.Wa=t.createOscillator();this.Wa.frequency.value=f;this.Wb=b();this.Wb.gain.value=e;this.R.connect(this.Ea);this.R.connect(this.C);this.Ea.connect(this.F);this.Wa.connect(this.Wb);this.Wb.connect(this.Ea.frequency);
m(this.Wa)}function y(a){this.type="gain";this.Ic=[a];this.T=b();this.T.gain.value=a}function k(a,c){this.type="tremolo";this.Ic=[a,c];this.T=b();this.T.gain.value=1-c/2;this.Wa=t.createOscillator();this.Wa.frequency.value=a;this.Wb=b();this.Wb.gain.value=c/2;this.Wa.connect(this.Wb);this.Wb.connect(this.T.gain);m(this.Wa)}function F(a,c){this.type="ringmod";this.Ic=[a,c];this.R=b();this.F=b();this.F.gain.value=c;this.C=b();this.C.gain.value=1-c;this.$g=b();this.$g.gain.value=0;this.Wa=t.createOscillator();
this.Wa.frequency.value=a;this.Wa.connect(this.$g.gain);m(this.Wa);this.R.connect(this.$g);this.R.connect(this.C);this.$g.connect(this.F)}function w(a,c,d,e,f){this.type="distortion";this.Ic=[a,c,d,e,f];this.R=b();this.Ni=b();this.Mi=b();this.qt(d,Math.pow(10,e/20));this.F=b();this.F.gain.value=f;this.C=b();this.C.gain.value=1-f;this.sj=t.createWaveShaper();this.Kh=new Float32Array(65536);this.Cr(a,c);this.sj.Kh=this.Kh;this.R.connect(this.Ni);this.R.connect(this.C);this.Ni.connect(this.sj);this.sj.connect(this.Mi);
this.Mi.connect(this.F)}function l(a,c,b,d,e){this.type="compressor";this.Ic=[a,c,b,d,e];this.T=t.createDynamicsCompressor();try{this.T.threshold.value=a,this.T.knee.value=c,this.T.ratio.value=b,this.T.attack.value=d,this.T.release.value=e}catch(f){}}function u(a,c){this.type="analyser";this.Ic=[a,c];this.T=t.createAnalyser();this.T.fftSize=a;this.T.smoothingTimeConstant=c;this.Ar=new Float32Array(this.T.frequencyBinCount);this.Ho=new Uint8Array(a);this.Tg=0}function q(){this.D=null;this.ri=0;this.ae=
[];this.Xk=this.mi=this.li=0}function v(a,c){this.src=a;this.N=C;this.Gc=c;this.nm=!1;var d=this;this.Vk=this.gl=null;this.xf=[];this.Vi=0;this.Wl=this.bk=this.Lo=this.Ji=!1;1===C&&c&&(this.N=0,this.gl=b());this.he=this.X=null;var e;switch(this.N){case 0:this.X=new Audio;this.X.addEventListener("canplaythrough",function(){d.Wl=!0});1===C&&t.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Lo=!0,this.X.addEventListener("canplay",function(){d.Vk||(d.Vk=t.createMediaElementSource(d.X),
d.Vk.connect(d.gl))}));this.X.autoplay=!1;this.X.Yu="auto";this.X.src=a;break;case 1:e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=function(){d.he=e.response;d.Bq()};e.onerror=function(){d.bk=!0};e.send();break;case 2:this.X=!0;break;case 3:this.X=!0}}function s(a,c){var d=this;this.tag=c;this.Zb=this.Tc=!0;this.src=a.src;this.buffer=a;this.N=C;this.Gc=a.Gc;this.playbackRate=1;this.il=!0;this.rc=this.zd=!1;this.Hb=0;this.mg=this.kf=this.Vc=!1;this.volume=1;this.Ae=
1===T&&!this.Gc||2===T;this.rf=1;this.startTime=this.Ae?z.gc.aa:z.cd.aa;this.xa=this.Fa=null;this.Wc=!1;this.wa=null;this.bo=this.ao=this.$n=this.Zn=this.eo=this.co=0;this.i=null;var e=!1;1!==this.N||0!==this.buffer.N||this.buffer.Lo||(this.N=0);switch(this.N){case 0:this.Gc?(this.i=a.X,e=!a.nm,a.nm=!0):(this.i=new Audio,this.i.autoplay=!1,this.i.src=a.X.src,e=!0);e&&this.i.addEventListener("ended",function(){Z=d.tag;d.Zb=!0;z.trigger(bc.prototype.j.vj,ja)});break;case 1:this.Fa=b();this.Fa.connect(n(c));
1===this.buffer.N?a.X&&(this.i=t.createBufferSource(),this.i.buffer=a.X,this.i.connect(this.Fa)):(this.i=this.buffer.X,this.buffer.gl.connect(this.Fa));break;case 2:this.i=new window.Media(J+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.il=!0,d.Zb=!0,Z=d.tag,z.trigger(bc.prototype.j.vj,ja))});break;case 3:this.i=!0}}function B(a,c){N.hasOwnProperty(a)?N[a].push(c):N[a]=[c];var b,d,e,f,g=t.destination;if(N.hasOwnProperty(a)&&(e=N[a],e.length))for(g=e[0].cc(),b=0,d=e.length;b<d;b++)f=
e[b],b+1===d?f.lc(t.destination):f.lc(e[b+1].cc());Da.length=0;if(a.length)for(b=0,d=A.length;b<d;b++)e=A[b],ab(a,e.tag)&&Da.push(e);else G&&!G.we()&&(Da.length=1,Da[0]=G);b=0;for(d=Da.length;b<d;b++)Da[b].dt(g);xa&&lb===a&&(xa.disconnect(),xa.connect(g))}function X(){}function P(){}var x=bc.prototype;x.gb=function(a){this.ya=a;this.b=a.b};x.gb.prototype.la=function(){};var z=null,ja=null,Z="",J="",C=0,t=null,Q=[],A=[],G=null,D=!1,T=0,E=!1,H=1,L=0,aa=0,la=1,mb=1,fc=10,gc=1E4,hc=1,xa=null,lb="",Ja=
!1,Ka=[],N={},lc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");d.prototype.lc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};d.prototype.remove=function(){this.R.disconnect();this.Ea.disconnect();this.F.disconnect();this.C.disconnect()};d.prototype.cc=function(){return this.R};r.prototype.lc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};r.prototype.remove=function(){this.R.disconnect();
this.Gg.disconnect();this.nc.disconnect();this.Mh.disconnect();this.F.disconnect();this.C.disconnect()};r.prototype.cc=function(){return this.R};e.prototype.lc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};e.prototype.remove=function(){this.R.disconnect();this.le.disconnect();this.F.disconnect();this.C.disconnect()};e.prototype.cc=function(){return this.R};g.prototype.lc=function(a){this.C.disconnect();this.C.connect(a);this.F.disconnect();this.F.connect(a)};
g.prototype.remove=function(){this.R.disconnect();this.nc.disconnect();this.Wa.disconnect();this.Wb.disconnect();this.C.disconnect();this.F.disconnect();this.Qh.disconnect()};g.prototype.cc=function(){return this.R};h.prototype.lc=function(a){this.C.disconnect();this.C.connect(a);this.F.disconnect();this.F.connect(a)};h.prototype.remove=function(){this.R.disconnect();this.Ea.disconnect();this.Wa.disconnect();this.Wb.disconnect();this.C.disconnect();this.F.disconnect()};h.prototype.cc=function(){return this.R};
y.prototype.lc=function(a){this.T.disconnect();this.T.connect(a)};y.prototype.remove=function(){this.T.disconnect()};y.prototype.cc=function(){return this.T};k.prototype.lc=function(a){this.T.disconnect();this.T.connect(a)};k.prototype.remove=function(){this.Wa.disconnect();this.Wb.disconnect();this.T.disconnect()};k.prototype.cc=function(){return this.T};F.prototype.lc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};F.prototype.remove=function(){this.Wa.disconnect();
this.$g.disconnect();this.R.disconnect();this.F.disconnect();this.C.disconnect()};F.prototype.cc=function(){return this.R};w.prototype.qt=function(a,c){.01>a&&(a=.01);this.Ni.gain.value=a;this.Mi.gain.value=Math.pow(1/a,.6)*c};w.prototype.shape=function(a,c,b){var d=1.05*b*c-c;b=0>a?-1:1;a=0>a?-a:a;c=a<c?a:c+d*(1-Math.exp(-(1/d)*(a-c)));return c*b};w.prototype.Cr=function(a,c){for(var b=Math.pow(10,a/20),d=Math.pow(10,c/20),e=0,f=0;32768>f;++f)e=f/32768,e=this.shape(e,b,d),this.Kh[32768+f]=e,this.Kh[32768-
f-1]=-e};w.prototype.lc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};w.prototype.remove=function(){this.R.disconnect();this.Ni.disconnect();this.sj.disconnect();this.Mi.disconnect();this.F.disconnect();this.C.disconnect()};w.prototype.cc=function(){return this.R};l.prototype.lc=function(a){this.T.disconnect();this.T.connect(a)};l.prototype.remove=function(){this.T.disconnect()};l.prototype.cc=function(){return this.T};u.prototype.Ya=function(){this.T.getFloatFrequencyData(this.Ar);
this.T.getByteTimeDomainData(this.Ho);for(var a=this.T.fftSize,c=0,b=this.Tg=0,d=0;c<a;c++)d=(this.Ho[c]-128)/128,0>d&&(d=-d),this.Tg<d&&(this.Tg=d),b+=d*d;this.Tg=f(this.Tg);f(Math.sqrt(b/a))};u.prototype.lc=function(a){this.T.disconnect();this.T.connect(a)};u.prototype.remove=function(){this.T.disconnect()};u.prototype.cc=function(){return this.T};q.prototype.ah=function(a){if(this.D=a)this.li=this.D.x,this.mi=this.D.y;this.ae.length=0};q.prototype.bi=function(){return!!this.D};q.prototype.Ya=function(a){this.D&&
0!==a&&(this.Xk=Ea(this.li,this.mi,this.D.x,this.D.y),a=Na(this.li,this.mi,this.D.x,this.D.y)/a,4>this.ae.length||this.ae.shift(),this.ae.push(a),this.li=this.D.x,this.mi=this.D.y)};q.prototype.Um=function(){if(!this.ae.length)return 0;var a,c,b=0;a=0;for(c=this.ae.length;a<c;a++)b+=this.ae[a];return b/this.ae.length};q.prototype.rk=function(){return Math.cos(this.Xk)*this.Um()};q.prototype.sk=function(){return Math.sin(this.Xk)*this.Um()};var ic=!1;v.prototype.Bq=function(){if(!this.X&&this.he){var a=
this;if(t.decodeAudioData)t.decodeAudioData(this.he,function(c){a.X=c;a.he=null;var b,d,e;if(fa(a.Ki)||E)fa(a.Fh)||(b=a.Fh.le,b.normalize=a.Sn,b.buffer=c);else if(a.xf.length){b=0;for(d=a.xf.length;b<d;b++){c=a.xf[b];e=new s(a,c.Oo);e.zl(!0);if("undefined"!==typeof c.Un&&(c.D=z.Xh(c.Un),!c.D))continue;if(c.D){var f=Ia(c.D.x,c.D.y,-c.D.d.Sa(),L,aa,!0),g=Ia(c.D.x,c.D.y,-c.D.d.Sa(),L,aa,!1);e.yl(f,g,ya(c.D.e-c.D.d.Sa()),c.xk,c.Yk,c.al);e.ah(c.D)}else e.yl(c.x,c.y,c.cq,c.xk,c.Yk,c.al);e.play(a.Sk,a.Ul,
a.Vi);a.Ji&&e.pause();A.push(e)}a.xf.length=0}else e=new s(a,a.Ki),e.play(a.Sk,a.Ul,a.Vi),a.Ji&&e.pause(),A.push(e)},function(){a.bk=!0});else if(this.X=t.createBuffer(this.he,!1),this.he=null,fa(this.Ki)||E)fa(this.Fh)||(c=this.Fh.le,c.normalize=this.Sn,c.buffer=this.X);else{var c=new s(this,this.Ki);c.play(this.Sk,this.Ul,this.Vi);this.Ji&&c.pause();A.push(c)}}};v.prototype.en=function(){switch(this.N){case 0:var a=4<=this.X.readyState;a&&(this.Wl=!0);return a||this.Wl;case 1:return!!this.he||!!this.X;
case 2:return!0;case 3:return!0}return!1};v.prototype.us=function(){switch(this.N){case 0:return this.en();case 1:return!!this.X;case 2:return!0;case 3:return!0}return!1};v.prototype.js=function(){switch(this.N){case 0:return!!this.X.error;case 1:return this.bk}return!1};s.prototype.we=function(){var a;switch(this.N){case 0:return this.i.ended;case 1:if(1===this.buffer.N){if(!this.Tc&&!this.Zb&&this.i.loop||this.rc)return!1;a=this.Ae?z.gc.aa:z.cd.aa;return a-this.startTime>this.buffer.X.duration}return this.i.ended;
case 2:return this.il;case 3:!0}return!0};s.prototype.rq=function(){return this.Tc||this.Zb?!0:this.we()};s.prototype.zl=function(a){1===C&&(!this.Wc&&a?this.Fa&&(this.xa||(this.xa=t.createPanner(),this.xa.panningModel="number"===typeof this.xa.panningModel?la:["equalpower","HRTF","soundfield"][la],this.xa.distanceModel="number"===typeof this.xa.distanceModel?mb:["linear","inverse","exponential"][mb],this.xa.refDistance=fc,this.xa.maxDistance=gc,this.xa.rolloffFactor=hc),this.Fa.disconnect(),this.Fa.connect(this.xa),
this.xa.connect(n(this.tag)),this.Wc=!0):this.Wc&&!a&&this.Fa&&(this.xa.disconnect(),this.Fa.disconnect(),this.Fa.connect(n(this.tag)),this.Wc=!1))};s.prototype.yl=function(a,c,b,d,e,f){this.Wc&&1===C&&(this.xa.setPosition(a,c,0),this.xa.setOrientation(Math.cos(R(b)),Math.sin(R(b)),0),this.xa.coneInnerAngle=d,this.xa.coneOuterAngle=e,this.xa.coneOuterGain=f,this.co=a,this.eo=c,this.Zn=b,this.$n=d,this.ao=e,this.bo=f)};s.prototype.ah=function(a){this.Wc&&1===C&&(this.wa||(this.wa=new q),this.wa.ah(a))};
s.prototype.Ya=function(a){if(this.Wc&&1===C&&this.wa&&this.wa.bi()&&this.gf()){this.wa.Ya(a);a=this.wa.D;var c=Ia(a.x,a.y,-a.d.Sa(),L,aa,!0),b=Ia(a.x,a.y,-a.d.Sa(),L,aa,!1);this.xa.setPosition(c,b,0);c=0;"undefined"!==typeof this.wa.D.e&&(c=a.e-a.d.Sa(),this.xa.setOrientation(Math.cos(c),Math.sin(c),0));c=Ia(this.wa.rk(),this.wa.sk(),-a.d.Sa(),0,0,!0);b=Ia(this.wa.rk(),this.wa.sk(),-a.d.Sa(),0,0,!1);this.xa.setVelocity(c,b,0)}};s.prototype.play=function(c,b,d){var e=this.i;this.Vc=c;this.volume=
b;d=d||0;switch(this.N){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==b*H&&(e.volume=b*H);e.loop!==c&&(e.loop=c);e.muted&&(e.muted=!1);if(e.currentTime!==d)try{e.currentTime=d}catch(f){}if(this.Gc&&Ja&&!z.ka)Ka.push(this);else try{this.i.play()}catch(g){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",g)}break;case 1:this.muted=!1;this.rf=1;if(1===this.buffer.N)this.Tc||(this.i=t.createBufferSource(),this.i.buffer=this.buffer.X,this.i.connect(this.Fa)),
this.i.loop=c,this.Fa.gain.value=b*H,0===d?m(this.i):a(this.i,d,this.ue());else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==c&&(e.loop=c);this.Fa.gain.value=b*H;if(e.currentTime!==d)try{e.currentTime=d}catch(h){}this.Gc&&Ja&&!z.ka?Ka.push(this):e.play()}break;case 2:(!this.Tc&&this.Zb||0!==d)&&e.seekTo(d);e.play();this.il=!1;break;case 3:z.$a?AppMobi.context.playSound(this.src,c):AppMobi.player.playSound(this.src,c)}this.playbackRate=1;this.startTime=(this.Ae?z.gc.aa:z.cd.aa)-d;this.rc=this.Zb=
this.Tc=!1};s.prototype.stop=function(){switch(this.N){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.N?c(this.i):this.i.paused||this.i.pause();break;case 2:this.i.stop();break;case 3:z.$a&&AppMobi.context.stopSound(this.src)}this.Zb=!0;this.rc=!1};s.prototype.pause=function(){if(!(this.Tc||this.Zb||this.we()||this.rc)){switch(this.N){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.N?(this.Hb=this.pk(),this.Vc&&(this.Hb%=this.ue()),c(this.i)):this.i.paused||this.i.pause();
break;case 2:this.i.pause();break;case 3:z.$a&&AppMobi.context.stopSound(this.src)}this.rc=!0}};s.prototype.ht=function(){if(!(this.Tc||this.Zb||this.we())&&this.rc){switch(this.N){case 0:this.i.play();break;case 1:1===this.buffer.N?(this.i=t.createBufferSource(),this.i.buffer=this.buffer.X,this.i.connect(this.Fa),this.i.loop=this.Vc,this.Fa.gain.value=H*this.volume*this.rf,this.startTime=(this.Ae?z.gc.aa:z.cd.aa)-this.Hb,a(this.i,this.Hb,this.ue())):this.i.play();break;case 2:this.i.play();break;
case 3:z.$a&&AppMobi.context.resumeSound(this.src)}this.rc=!1}};s.prototype.seek=function(a){if(!(this.Tc||this.Zb||this.we()))switch(this.N){case 0:try{this.i.currentTime=a}catch(c){}break;case 1:if(1===this.buffer.N)this.rc?this.Hb=a:(this.pause(),this.Hb=a,this.ht());else try{this.i.currentTime=a}catch(b){}break;case 3:z.$a&&AppMobi.context.seekSound(this.src,a)}};s.prototype.dt=function(a){1===this.N&&(this.Wc?(this.xa.disconnect(),this.xa.connect(a)):(this.Fa.disconnect(),this.Fa.connect(a)))};
s.prototype.ue=function(){switch(this.N){case 0:if("undefined"!==typeof this.i.duration)return this.i.duration;break;case 1:return this.buffer.X.duration;case 2:return this.i.getDuration();case 3:if(z.$a)return AppMobi.context.getDurationSound(this.src)}return 0};s.prototype.pk=function(){var a=this.ue(),c=0;switch(this.N){case 0:"undefined"!==typeof this.i.currentTime&&(c=this.i.currentTime);break;case 1:if(1===this.buffer.N){if(this.rc)return this.Hb;c=(this.Ae?z.gc.aa:z.cd.aa)-this.startTime}else"undefined"!==
typeof this.i.currentTime&&(c=this.i.currentTime);break;case 3:z.$a&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}!this.Vc&&c>a&&(c=a);return c};s.prototype.gf=function(){return!this.rc&&!this.Tc&&!this.Zb&&!this.we()};s.prototype.Ht=function(){var a=this.volume*H;switch(this.N){case 0:this.i.volume&&this.i.volume!==a&&(this.i.volume=a);break;case 1:this.Fa.gain.value=a*this.rf}};s.prototype.Nh=function(a){switch(this.N){case 0:this.i.muted!==!!a&&(this.i.muted=!!a);break;case 1:this.rf=a?0:
1,this.Fa.gain.value=H*this.volume*this.rf}};s.prototype.ut=function(){this.kf=!0;this.Nh(this.kf||this.mg)};s.prototype.Bo=function(a){this.mg=!!a;this.Nh(this.kf||this.mg)};s.prototype.bp=function(){var a=this.playbackRate;this.Ae&&(a*=z.If);switch(this.N){case 0:this.i.playbackRate!==a&&(this.i.playbackRate=a);break;case 1:1===this.buffer.N?this.i.playbackRate.value!==a&&(this.i.playbackRate.value=a):this.i.playbackRate!==a&&(this.i.playbackRate=a)}};s.prototype.xt=function(b){switch(this.N){case 0:b?
this.gf()?(this.i.pause(),this.zd=!0):this.zd=!1:this.zd&&this.i.play();break;case 1:b?this.gf()?(1===this.buffer.N?(this.Hb=this.pk(),this.Vc&&(this.Hb%=this.ue()),c(this.i)):this.i.pause(),this.zd=!0):this.zd=!1:this.zd&&(1===this.buffer.N?(this.i=t.createBufferSource(),this.i.buffer=this.buffer.X,this.i.connect(this.Fa),this.i.loop=this.Vc,this.Fa.gain.value=H*this.volume*this.rf,this.startTime=(this.Ae?z.gc.aa:z.cd.aa)-this.Hb,a(this.i,this.Hb,this.ue())):this.i.play());break;case 2:b?this.gf()?
(this.i.pause(),this.zd=!0):this.zd=!1:this.zd&&this.i.play()}};x.Ba=function(a){this.type=a;z=this.b=a.b;ja=this;this.pb=null;this.wg=-600;!(this.b.ki||this.b.ei&&(this.b.ig||this.b.fi))||this.b.jg||this.b.da||(Ja=!0);t=null;"undefined"!==typeof AudioContext?(C=1,t=new AudioContext):"undefined"!==typeof webkitAudioContext&&(C=1,t=new webkitAudioContext);(this.b.ki&&1===C||Ja)&&document.addEventListener("touchstart",function(){var a,c,b;!ic&&t&&(a=t.createBuffer(1,1,22050),c=t.createBufferSource(),
c.buffer=a,c.connect(t.destination),m(c),ic=!0);if(Ja){if(!E)for(a=0,c=Ka.length;a<c;++a)b=Ka[a],b.Zb||b.rc||b.i.play();Ka.length=0}},!0);1!==C&&(this.b.qc&&"undefined"!==typeof window.Media?C=2:this.b.df&&(C=3));2===C&&(J=location.href,a=J.lastIndexOf("/"),-1<a&&(J=J.substr(0,a+1)),J=J.replace("file://",""));if(this.b.gn&&this.b.vs&&"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.Ed(this);
else{if(this.b.$a)D=this.b.ei;else try{D=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(c){D=!1}this.b.Il(this)}};var da=x.Ba.prototype;da.la=function(){this.b.Re=this;T=this.qa[0];this.Ad=this.qa[1];this.Us=0!==this.qa[2];la=this.qa[3];mb=this.qa[4];this.wg=-this.qa[5];fc=this.qa[6];gc=this.qa[7];hc=this.qa[8];this.pb=new q;var a=this.b.L||this.b.width,c=this.b.K||this.b.height;1===C&&(t.listener.speedOfSound=this.qa[9],t.listener.dopplerFactor=this.qa[10],t.listener.setPosition(a/
2,c/2,this.wg),t.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,c){xa&&xa.disconnect();lb=c.toLowerCase();xa=t.createMediaStreamSource(a);xa.connect(n(lb))});this.b.jq(function(a){ja.Qs(a)});var b=this;this.b.hq(function(a){b.Ls(a)})};da.Ls=function(a){var c,b,d;c=0;for(b=A.length;c<b;c++)d=A[c],d.wa&&d.wa.D===a&&(d.wa.D=null,d.Wc&&d.gf()&&d.Vc&&d.stop());this.pb.D===a&&(this.pb.D=null)};da.Xb=function(){var a={silent:E,masterVolume:H,listenerZ:this.wg,listenerUid:this.pb.bi()?
this.pb.D.uid:-1,playing:[],effects:{}},c=a.playing,b,d,e,f,g,h;b=0;for(d=A.length;b<d;b++)e=A[b],!e.gf()||3===this.Ad||e.Gc&&1===this.Ad||!e.Gc&&2===this.Ad||(f=e.pk(),e.Vc&&(f%=e.ue()),f={tag:e.tag,buffersrc:e.buffer.src,is_music:e.Gc,playbackTime:f,volume:e.volume,looping:e.Vc,muted:e.kf,playbackRate:e.playbackRate,paused:e.rc,resume_position:e.Hb},e.Wc&&(f.pan={},h=f.pan,e.wa&&e.wa.bi()?h.objUid=e.wa.D.uid:(h.x=e.co,h.y=e.eo,h.a=e.Zn),h.ia=e.$n,h.oa=e.ao,h.og=e.bo),c.push(f));c=a.effects;for(g in N)if(N.hasOwnProperty(g)){e=
[];b=0;for(d=N[g].length;b<d;b++)e.push({type:N[g][b].type,params:N[g][b].Ic});c[g]=e}return a};var La=[];da.tc=function(a){var c=a.silent;H=a.masterVolume;this.wg=a.listenerZ;this.pb.ah(null);var b=a.listenerUid;-1!==b&&(this.pb.ri=b,La.push(this.pb));var b=a.playing,f,m,s,n,p,X,Z,z,x,t,P;if(3!==this.Ad)for(f=0,m=A.length;f<m;f++)x=A[f],x.Gc&&1===this.Ad||(x.Gc||2!==this.Ad)&&x.stop();for(p in N)if(N.hasOwnProperty(p))for(f=0,m=N[p].length;f<m;f++)N[p][f].remove();Qa(N);for(p in a.effects)if(a.effects.hasOwnProperty(p))for(X=
a.effects[p],f=0,m=X.length;f<m;f++)switch(s=X[f].type,t=X[f].params,s){case "filter":B(p,new d(t[0],t[1],t[2],t[3],t[4],t[5]));break;case "delay":B(p,new r(t[0],t[1],t[2]));break;case "convolve":s=t[2];x=this.Uh(s,!1);x.X?s=new e(x.X,t[0],t[1],s):(s=new e(null,t[0],t[1],s),x.Sn=t[0],x.Fh=s);B(p,s);break;case "flanger":B(p,new g(t[0],t[1],t[2],t[3],t[4]));break;case "phaser":B(p,new h(t[0],t[1],t[2],t[3],t[4],t[5]));break;case "gain":B(p,new y(t[0]));break;case "tremolo":B(p,new k(t[0],t[1]));break;
case "ringmod":B(p,new F(t[0],t[1]));break;case "distortion":B(p,new w(t[0],t[1],t[2],t[3],t[4]));break;case "compressor":B(p,new l(t[0],t[1],t[2],t[3],t[4]));break;case "analyser":B(p,new u(t[0],t[1]))}f=0;for(m=b.length;f<m;f++)3===this.Ad||(a=b[f],s=a.buffersrc,n=a.is_music,p=a.tag,X=a.playbackTime,Z=a.looping,z=a.volume,P=(t=a.pan)&&t.hasOwnProperty("objUid")?t.objUid:-1,n&&1===this.Ad)||!n&&2===this.Ad||((x=this.Om(s,p,n,Z,z))?(x.Hb=a.resume_position,x.zl(!!t),x.play(Z,z,X),x.bp(),x.Ht(),x.Nh(x.kf||
x.mg),a.paused&&x.pause(),a.muted&&x.ut(),x.Nh(x.kf||x.mg),t&&(-1!==P?(x.wa=x.wa||new q,x.wa.ri=P,La.push(x.wa)):x.yl(t.x,t.y,t.a,t.ia,t.oa,t.og))):(x=this.Uh(s,n),x.Vi=X,x.Ji=a.paused,t&&(-1!==P?x.xf.push({Un:P,xk:t.ia,Yk:t.oa,al:t.og,Oo:p}):x.xf.push({x:t.x,y:t.y,cq:t.a,xk:t.ia,Yk:t.oa,al:t.og,Oo:p}))));if(c&&!E){f=0;for(m=A.length;f<m;f++)A[f].Bo(!0);E=!0}else if(!c&&E){f=0;for(m=A.length;f<m;f++)A[f].Bo(!1);E=!1}};da.dd=function(){var a,c,b,d;a=0;for(c=La.length;a<c;a++)b=La[a],d=this.b.Xh(b.ri),
b.ah(d),b.ri=-1,d&&(L=d.x,aa=d.y);La.length=0};da.Qs=function(a){if(!this.Us){!a&&t&&t.resume&&t.resume();var c,b;c=0;for(b=A.length;c<b;c++)A[c].xt(a);a&&t&&t.suspend&&t.suspend()}};da.Ya=function(){var a=this.b.qe,c,b,d;c=0;for(b=A.length;c<b;c++)d=A[c],d.Ya(a),0===d.N||3===d.N||d.Tc||d.Zb||!d.we()||(d.Zb=!0,Z=d.tag,z.trigger(bc.prototype.j.vj,ja)),0!==T&&d.bp();var e,f;for(e in N)if(N.hasOwnProperty(e))for(d=N[e],c=0,b=d.length;c<b;c++)f=d[c],f.Ya&&f.Ya();1===C&&this.pb.bi()&&(this.pb.Ya(a),L=
this.pb.D.x,aa=this.pb.D.y,t.listener.setPosition(this.pb.D.x,this.pb.D.y,this.wg),t.listener.setVelocity(this.pb.rk(),this.pb.sk(),0))};var Ma=[];da.wt=function(a){var c,b,d,e,f,g=0;c=0;for(b=a.length;c<b;++c)if(d=a[c],e=d[0],d=2*d[1],(f=4<e.length&&".ogg"===e.substr(e.length-4))&&D||!f&&!D)Ma.push({filename:e,size:d,D:null}),g+=d;return g};da.At=function(){var a,c,b,d;a=0;for(c=Ma.length;a<c;++a)b=Ma[a],d=this.b.ck+b.filename,b.D=this.Uh(d,!1)};da.Mr=function(){var a=0,c,b,d;c=0;for(b=Ma.length;c<
b;++c)d=Ma[c],d.D.us()||d.D.js()||this.b.da||this.b.fi?a+=d.size:d.D.en()&&(a+=Math.floor(d.size/2));return a};da.Uh=function(a,c){var b,d,e,f=null;b=0;for(d=Q.length;b<d;b++)if(e=Q[b],e.src===a){f=e;break}f||(f=new v(a,c),Q.push(f));return f};da.Om=function(a,c,b,d,e){var f,g,h;f=0;for(g=A.length;f<g;f++)if(h=A[f],h.src===a&&(h.rq()||b))return h.tag=c,h;a=this.Uh(a,b);if(!a.X)return"<preload>"!==c&&(a.Ki=c,a.Sk=d,a.Ul=e),null;h=new s(a,c);A.push(h);return h};var Da=[];X.prototype.vj=function(a){return ab(Z,
a)};x.j=new X;P.prototype.Play=function(a,c,b,d){!E&&(b=Math.pow(10,b/20),0>b&&(b=0),1<b&&(b=1),G=this.Om(this.b.ck+a[0]+(D?".ogg":".m4a"),d,a[1],0!==c,b))&&(G.zl(!1),G.play(0!==c,b))};x.ra=new P;x.Rb=new function(){}})();function cc(f){this.b=f}
(function(){function f(){}var n=cc.prototype;n.gb=function(b){this.ya=b;this.b=b.b};n.gb.prototype.la=function(){};n.Ba=function(b){this.type=b;this.b=b.b;this.Ik=Array(256);this.qj=Array(256);this.de=0};var b=n.Ba.prototype;b.la=function(){var b=this;this.b.da||(jQuery(document).keydown(function(a){b.Ms(a)}),jQuery(document).keyup(function(a){b.Ns(a)}))};var p=[32,33,34,35,36,37,38,39,40,44];b.Ms=function(b){var a=!1;window!=window.top&&-1<p.indexOf(b.which)&&(b.preventDefault(),a=!0,b.stopPropagation());
if(this.Ik[b.which])this.qj[b.which]&&!a&&b.preventDefault();else{this.Ik[b.which]=!0;this.de=b.which;this.b.ka=!0;this.b.trigger(cc.prototype.j.Ap,this);var c=this.b.trigger(cc.prototype.j.Lp,this),d=this.b.trigger(cc.prototype.j.Mp,this);this.b.ka=!1;if(c||d)this.qj[b.which]=!0,a||b.preventDefault()}};b.Ns=function(b){this.Ik[b.which]=!1;this.de=b.which;this.b.ka=!0;this.b.trigger(cc.prototype.j.Bp,this);var a=this.b.trigger(cc.prototype.j.Op,this),c=this.b.trigger(cc.prototype.j.Np,this);this.b.ka=
!1;if(a||c||this.qj[b.which])this.qj[b.which]=!0,b.preventDefault()};b.Xb=function(){return{triggerKey:this.de}};b.tc=function(b){this.de=b.triggerKey};f.prototype.Lp=function(b){return b===this.de};f.prototype.Ap=function(){return!0};f.prototype.Bp=function(){return!0};f.prototype.Op=function(b){return b===this.de};f.prototype.Mp=function(b){return b===this.de};f.prototype.Np=function(b){return b===this.de};n.j=new f;n.ra=new function(){};n.Rb=new function(){}})();function dc(f){this.b=f}
(function(){function f(){}function n(){}var b=dc.prototype;b.gb=function(a){this.ya=a;this.b=a.b};b.gb.prototype.la=function(){};b.Ba=function(a){this.type=a;this.b=a.b;this.yh=Array(4);this.Qo=this.lj=this.Jf=this.wd=this.vd=0;this.uk=!1};var p=b.Ba.prototype;p.la=function(){var a=this;if(!this.b.da){jQuery(document).mousemove(function(c){a.Mg(c)});jQuery(document).mousedown(function(c){a.Lg(c)});jQuery(document).mouseup(function(c){a.Ng(c)});jQuery(document).dblclick(function(c){a.Js(c)});var c=
function(c){a.Ss(c)};document.addEventListener("mousewheel",c,!1);document.addEventListener("DOMMouseScroll",c,!1)}};var m={left:0,top:0};p.Mg=function(a){var c=this.b.da?m:jQuery(this.b.canvas).offset();this.vd=a.pageX-c.left;this.wd=a.pageY-c.top};p.On=function(){return 0<this.b.mb?!0:0<=this.vd&&0<=this.wd&&this.vd<this.b.width&&this.wd<this.b.height};p.Lg=function(a){this.On()&&(this.b.$e&&!this.b.Uc&&a.preventDefault(),this.yh[a.which]=!0,this.b.ka=!0,this.b.trigger(dc.prototype.j.zp,this),this.Jf=
a.which-1,this.lj=0,this.b.trigger(dc.prototype.j.Yl,this),this.b.trigger(dc.prototype.j.xj,this),this.b.ka=!1)};p.Ng=function(a){this.yh[a.which]&&(this.b.$e&&!this.b.Uc&&a.preventDefault(),this.b.$e=!0,this.yh[a.which]=!1,this.b.ka=!0,this.Jf=a.which-1,this.b.trigger(dc.prototype.j.Rp,this),this.b.ka=!1)};p.Js=function(a){this.On()&&(a.preventDefault(),this.b.ka=!0,this.Jf=a.which-1,this.lj=1,this.b.trigger(dc.prototype.j.Yl,this),this.b.trigger(dc.prototype.j.xj,this),this.b.ka=!1)};p.Ss=function(a){this.Qo=
0>(a.wheelDelta?a.wheelDelta:a.detail?-a.detail:0)?0:1;this.uk=!1;this.b.ka=!0;this.b.trigger(dc.prototype.j.Up,this);this.b.ka=!1;this.uk&&a.preventDefault()};f.prototype.Yl=function(a,c){return a===this.Jf&&c===this.lj};f.prototype.zp=function(){return!0};f.prototype.op=function(a){return this.yh[a+1]};f.prototype.Rp=function(a){return a===this.Jf};f.prototype.qp=function(a){var c=this.b.kk();return Oa(this.b.Hf(a,this.vd,this.wd,c.cf),c.cf)};f.prototype.xj=function(a,c,b){return a!==this.Jf||c!==
this.lj?!1:this.b.Hf(b,this.vd,this.wd,!1)};f.prototype.Up=function(a){this.uk=!0;return a===this.Qo};b.j=new f;b.ra=new function(){};n.prototype.gm=function(a,c){var b,f,e,g,h;fa(c)?(b=this.b.qd(0),f=b.scale,e=b.kb,g=b.Fb,h=b.e,b.scale=1,b.kb=1,b.Fb=1,b.e=0,a.u(b.na(this.vd,this.wd,!0)),b.scale=f,b.kb=e,b.Fb=g,b.e=h):(b=K(c)?this.b.qd(c):this.b.$f(c))?a.u(b.na(this.vd,this.wd,!0)):a.u(0)};n.prototype.hm=function(a,c){var b,f,e,g,h;fa(c)?(b=this.b.qd(0),f=b.scale,e=b.kb,g=b.Gb,h=b.e,b.scale=1,b.kb=
1,b.Gb=1,b.e=0,a.u(b.na(this.vd,this.wd,!1)),b.scale=f,b.kb=e,b.Gb=g,b.e=h):(b=K(c)?this.b.qd(c):this.b.$f(c))?a.u(b.na(this.vd,this.wd,!1)):a.u(0)};b.Rb=new n})();function ec(f){this.b=f}
(function(){function f(b){this.k=b;this.Ra=!1;this.e=this.speed=this.y=this.x=0;this.opacity=1;this.Hd=this.Ze=this.size=this.$h=0}var n=ec.prototype;n.gb=function(b){this.ya=b;this.b=b.b};var b=n.gb.prototype;b.la=function(){this.B||(this.J=new Image,this.J.Oj=this.gj,this.O=null,this.b.Vl(this.J,this.fj))};b.Bi=function(){this.B||(this.O=null)};b.Ci=function(){this.B||!this.c.length||this.O||(this.O=this.b.q.nf(this.J,!0,this.b.S,this.ih))};b.yg=function(){this.B||this.O||!this.b.q||(this.O=this.b.q.nf(this.J,
!0,this.b.S,this.ih))};b.oj=function(){this.B||this.c.length||!this.O||(this.b.q.deleteTexture(this.O),this.O=null)};b.Oi=function(b){b.drawImage(this.J,0,0)};f.prototype.init=function(){var b=this.k;this.x=b.x-b.tj/2+Math.random()*b.tj;this.y=b.y-b.uj/2+Math.random()*b.uj;this.speed=b.Bk-b.$i/2+Math.random()*b.$i;this.e=b.e-b.aj/2+Math.random()*b.aj;this.opacity=b.zk;this.size=b.Ak-b.Yi/2+Math.random()*b.Yi;this.$h=b.tk-b.ai/2+Math.random()*b.ai;this.Hd=this.Ze=0};f.prototype.Ya=function(b){var a=
this.k;this.x+=Math.cos(this.e)*this.speed*b;this.y+=Math.sin(this.e)*this.speed*b;this.y+=this.Ze*b;this.speed+=a.Aj*b;this.size+=this.$h*b;this.Ze+=a.hk*b;this.Hd+=b;1>this.size?this.Ra=!1:(0!==a.tg&&(this.e+=Math.random()*a.tg*b-a.tg*b/2),0!==a.vg&&(this.speed+=Math.random()*a.vg*b-a.vg*b/2),0!==a.ug&&(this.opacity+=Math.random()*a.ug*b-a.ug*b/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=a.Ue&&this.Hd>=a.timeout&&(this.Ra=!1),2===a.Ue&&0>=this.speed&&(this.Ra=!1))};f.prototype.Cc=
function(b){var a=this.k.opacity*this.opacity;if(0!==a){0===this.k.Ue&&(a*=1-this.Hd/this.k.timeout);b.globalAlpha=a;var a=this.x-this.size/2,c=this.y-this.size/2;this.k.b.Xc&&(a=a+.5|0,c=c+.5|0);b.drawImage(this.k.type.J,a,c,this.size,this.size)}};f.prototype.Qb=function(b){var a=this.k.opacity*this.opacity;0===this.k.Ue&&(a*=1-this.Hd/this.k.timeout);var c=this.size,d=c*this.k.jo,f=this.x-c/2,e=this.y-c/2;this.k.b.Xc&&(f=f+.5|0,e=e+.5|0);1>d||0===a||(d<b.Fs||d>b.Uk?(b.Je(a),b.Xg(f,e,f+c,e,f+c,e+
c,f,e+c)):b.Vs(this.x,this.y,d,a))};f.prototype.left=function(){return this.x-this.size/2};f.prototype.right=function(){return this.x+this.size/2};f.prototype.top=function(){return this.y-this.size/2};f.prototype.bottom=function(){return this.y+this.size/2};n.Ba=function(b){this.type=b;this.b=b.b};var b=n.Ba.prototype,p=[];b.la=function(){var b=this.qa;this.Ri=b[0];this.aj=R(b[1]);this.Ef=b[2];this.Cl=!0;this.Bk=b[3];this.Ak=b[4];this.zk=b[5]/100;this.tk=b[6];this.tj=b[7];this.uj=b[8];this.$i=b[9];
this.Yi=b[10];this.ai=b[11];this.Aj=b[12];this.hk=b[13];this.tg=b[14];this.vg=b[15];this.ug=b[16];this.Ue=b[17];this.timeout=b[18];this.He=0;this.jo=1;this.Gi=this.x;this.Ii=this.y;this.Hi=this.x;this.Fi=this.y;this.kq(function(a){a.Ca.set(a.Gi,a.Ii,a.Hi,a.Fi);a.Nb.Df(a.Ca);a.xh=!1;a.Ql()});this.Kc||(this.rb=[]);this.b.Il(this);this.type.yg();if(1===this.Ef)for(b=0;b<this.Ri;b++)this.Cj().opacity=0;this.Sh=!0};b.Xb=function(){var b={r:this.Ri,sc:this.aj,st:this.Ef,s:this.Cl,isp:this.Bk,isz:this.Ak,
io:this.zk,gr:this.tk,xr:this.tj,yr:this.uj,spr:this.$i,szr:this.Yi,grnd:this.ai,acc:this.Aj,g:this.hk,lar:this.tg,lsr:this.vg,lor:this.ug,dm:this.Ue,to:this.timeout,pcc:this.He,ft:this.Sh,p:[]},a,c,d,f=b.p;a=0;for(c=this.rb.length;a<c;a++)d=this.rb[a],f.push([d.x,d.y,d.speed,d.e,d.opacity,d.$h,d.size,d.Ze,d.Hd]);return b};b.tc=function(b){this.Ri=b.r;this.aj=b.sc;this.Ef=b.st;this.Cl=b.s;this.Bk=b.isp;this.Ak=b.isz;this.zk=b.io;this.tk=b.gr;this.tj=b.xr;this.uj=b.yr;this.$i=b.spr;this.Yi=b.szr;this.ai=
b.grnd;this.Aj=b.acc;this.hk=b.g;this.tg=b.lar;this.vg=b.lsr;this.ug=b.lor;this.Ue=b.dm;this.timeout=b.to;this.He=b.pcc;this.Sh=b.ft;p.push.apply(p,this.rb);this.rb.length=0;var a,c,d,f=b.p;b=0;for(a=f.length;b<a;b++)c=this.Cj(),d=f[b],c.x=d[0],c.y=d[1],c.speed=d[2],c.e=d[3],c.opacity=d[4],c.$h=d[5],c.size=d[6],c.Ze=d[7],c.Hd=d[8]};b.Kg=function(){p.push.apply(p,this.rb);this.rb.length=0};b.Cj=function(){var b;p.length?(b=p.pop(),b.k=this):b=new f(this);this.rb.push(b);b.Ra=!0;return b};b.Ya=function(){var b=
this.b.lk(this),a,c,d,f;if(0===this.Ef&&this.Cl)for(this.He+=b*this.Ri,c=O(this.He),this.He-=c,a=0;a<c;a++)d=this.Cj(),d.init();this.Gi=this.x;this.Ii=this.y;this.Hi=this.x;this.Fi=this.y;f=a=0;for(c=this.rb.length;a<c;a++)d=this.rb[a],this.rb[f]=d,this.b.ha=!0,1===this.Ef&&this.Sh&&d.init(),d.Ya(b),d.Ra?(d.left()<this.Gi&&(this.Gi=d.left()),d.right()>this.Hi&&(this.Hi=d.right()),d.top()<this.Ii&&(this.Ii=d.top()),d.bottom()>this.Fi&&(this.Fi=d.bottom()),f++):p.push(d);this.rb.length=f;this.Ha();
this.Sh=!1;1===this.Ef&&0===this.rb.length&&this.b.Ed(this)};b.Cc=function(b){var a,c,d,f=this.d;a=0;for(c=this.rb.length;a<c;a++)d=this.rb[a],d.right()>=f.Pa&&d.bottom()>=f.Qa&&d.left()<=f.eb&&d.top()<=f.cb&&d.Cc(b)};b.Qb=function(b){this.jo=this.d.ec();b.Yb(this.type.O);var a,c,d,f=this.d;a=0;for(c=this.rb.length;a<c;a++)d=this.rb[a],d.right()>=f.Pa&&d.bottom()>=f.Qa&&d.left()<=f.eb&&d.top()<=f.cb&&d.Qb(b)};n.j=new function(){};n.ra=new function(){};n.Rb=new function(){}})();
function ac(f){this.b=f}
(function(){function f(){if(0===this.Rj.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Ff?b.drawImage(this.J,this.uf,this.vf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.J,0,0,this.width,this.height);this.Rj=a.toDataURL("image/png")}return this.Rj}function n(){}var b=ac.prototype;b.gb=function(a){this.ya=a;this.b=a.b};var p=b.gb.prototype;p.la=function(){if(!this.B){var a,b,c,d,e,p,l,m,n;this.Ac=[];this.eg=
!1;a=0;for(b=this.Mb.length;a<b;a++){e=this.Mb[a];l={};l.name=e[0];l.speed=e[1];l.loop=e[2];l.rl=e[3];l.Si=e[4];l.ko=e[5];l.P=e[6];l.frames=[];c=0;for(d=e[7].length;c<d;c++)p=e[7][c],m={},m.fj=p[0],m.gj=p[1],m.uf=p[2],m.vf=p[3],m.width=p[4],m.height=p[5],m.duration=p[6],m.Bb=p[7],m.Cb=p[8],m.yk=p[9],m.Li=p[10],m.lo=p[11],m.Ff=0!==m.width,m.Rj="",m.Uu=f,n={left:0,top:0,right:1,bottom:1},m.Al=n,m.O=null,(n=this.b.ur(p[0]))?m.J=n:(m.J=new Image,m.J.yq=p[0],m.J.Oj=p[1],m.J.qq=null,this.b.Vl(m.J,p[0])),
l.frames.push(m),this.Ac.push(m);this.Mb[a]=l}}};p.$o=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c=this.c[a],c.Ih=c.mc.O};p.Bi=function(){if(!this.B){var a,b,c;a=0;for(b=this.Ac.length;a<b;++a)c=this.Ac[a],c.J.qq=null,c.O=null;this.eg=!1;this.$o()}};p.Ci=function(){if(!this.B&&this.c.length){var a,b,c;a=0;for(b=this.Ac.length;a<b;++a)c=this.Ac[a],c.O=this.b.q.nf(c.J,!1,this.b.S,c.lo);this.$o()}};p.yg=function(){if(!this.B&&!this.eg&&this.b.q){var a,b,c;a=0;for(b=this.Ac.length;a<b;++a)c=
this.Ac[a],c.O=this.b.q.nf(c.J,!1,this.b.S,c.lo);this.eg=!0}};p.oj=function(){if(!this.B&&!this.c.length&&this.eg){var a,b,c;a=0;for(b=this.Ac.length;a<b;++a)c=this.Ac[a],this.b.q.deleteTexture(c.O),c.O=null;this.eg=!1}};var m=[];p.Oi=function(a){var b,c,d;b=m.length=0;for(c=this.Ac.length;b<c;++b)d=this.Ac[b].J,-1===m.indexOf(d)&&(a.drawImage(d,0,0),m.push(d))};b.Ba=function(a){this.type=a;this.b=a.b;a=this.type.Mb[0].frames[0].Li;this.Kc?this.W.bh(a):this.W=new Wa(a)};var a=b.Ba.prototype;a.la=
function(){this.visible=0===this.qa[0];this.ke=0!==this.qa[3];1===this.type.Mb.length&&1===this.type.Mb[0].frames.length||0===this.type.Mb[0].speed||this.b.Il(this);this.ta=this.Nm(this.qa[1])||this.type.Mb[0];this.A=this.qa[2];0>this.A&&(this.A=0);this.A>=this.ta.frames.length&&(this.A=this.ta.frames.length-1);var a=this.ta.frames[this.A];this.W.bh(a.Li);this.Bb=a.Bb;this.Cb=a.Cb;this.Uf=this.ta.speed;this.Kc?this.Pc.reset():this.Pc=new Ua;this.pd=this.Pc.aa;this.ge=!0;this.ed=0;this.fe=!0;this.Lj=
this.om="";this.uq=0;this.Kj=-1;this.type.yg();var b,c,d,e,f,l,m,a=0;for(b=this.type.Mb.length;a<b;a++)for(e=this.type.Mb[a],c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.J.width,f.height=f.J.height),f.Ff&&(m=f.J,l=f.Al,l.left=f.uf/m.width,l.top=f.vf/m.height,l.right=(f.uf+f.width)/m.width,l.bottom=(f.vf+f.height)/m.height,0===f.uf&&0===f.vf&&f.width===m.width&&f.height===m.height&&(f.Ff=!1));this.mc=this.ta.frames[this.A];this.Ih=this.mc.O};a.Xb=function(){var a={a:this.ta.P,
f:this.A,cas:this.Uf,fs:this.pd,ar:this.ed,at:this.Pc.aa};this.ge||(a.ap=this.ge);this.fe||(a.af=this.fe);return a};a.tc=function(a){var b=this.Dr(a.a);b&&(this.ta=b);this.A=a.f;0>this.A&&(this.A=0);this.A>=this.ta.frames.length&&(this.A=this.ta.frames.length-1);this.Uf=a.cas;this.pd=a.fs;this.ed=a.ar;this.Pc.reset();this.Pc.aa=a.at;this.ge=a.hasOwnProperty("ap")?a.ap:!0;this.fe=a.hasOwnProperty("af")?a.af:!0;this.mc=this.ta.frames[this.A];this.Ih=this.mc.O;this.W.bh(this.mc.Li);this.Bb=this.mc.Bb;
this.Cb=this.mc.Cb};a.Fj=function(a){this.A=a?0:this.ta.frames.length-1;this.ge=!1;this.om=this.ta.name;this.b.trigger(ac.prototype.j.yp,this);this.b.trigger(ac.prototype.j.xp,this);this.ed=0};a.Wu=function(){return this.Pc.aa};a.Ya=function(){this.Pc.add(this.b.lk(this));this.Lj.length&&this.Dq();0<=this.Kj&&this.Eq();var a=this.Pc.aa,b=this.ta,c=b.frames[this.A],d=c.duration/this.Uf;this.ge&&a>=this.pd+d&&(this.fe?this.A++:this.A--,this.pd+=d,this.A>=b.frames.length&&(b.ko?(this.fe=!1,this.A=b.frames.length-
2):b.loop?this.A=b.Si:(this.ed++,this.ed>=b.rl?this.Fj(!1):this.A=b.Si)),0>this.A&&(b.ko?(this.A=1,this.fe=!0,b.loop||(this.ed++,this.ed>=b.rl&&this.Fj(!0))):b.loop?this.A=b.Si:(this.ed++,this.ed>=b.rl?this.Fj(!0):this.A=b.Si)),0>this.A?this.A=0:this.A>=b.frames.length&&(this.A=b.frames.length-1),a>this.pd+b.frames[this.A].duration/this.Uf&&(this.pd=a),a=b.frames[this.A],this.Pe(c,a),this.b.ha=!0)};a.Nm=function(a){var b,c,d;b=0;for(c=this.type.Mb.length;b<c;b++)if(d=this.type.Mb[b],ab(d.name,a))return d;
return null};a.Dr=function(a){var b,c,d;b=0;for(c=this.type.Mb.length;b<c;b++)if(d=this.type.Mb[b],d.P===a)return d;return null};a.Dq=function(){var a=this.ta.frames[this.A],b=this.Nm(this.Lj);this.Lj="";!b||ab(b.name,this.ta.name)&&this.ge||(this.ta=b,this.Uf=b.speed,0>this.A&&(this.A=0),this.A>=this.ta.frames.length&&(this.A=this.ta.frames.length-1),1===this.uq&&(this.A=0),this.ge=!0,this.pd=this.Pc.aa,this.fe=!0,this.Pe(a,this.ta.frames[this.A]),this.b.ha=!0)};a.Eq=function(){var a=this.ta.frames[this.A],
b=this.A;this.A=O(this.Kj);0>this.A&&(this.A=0);this.A>=this.ta.frames.length&&(this.A=this.ta.frames.length-1);b!==this.A&&(this.Pe(a,this.ta.frames[this.A]),this.pd=this.Pc.aa,this.b.ha=!0);this.Kj=-1};a.Pe=function(a,b){var c=a.width,d=a.height,e=b.width,f=b.height;c!=e&&(this.width*=e/c);d!=f&&(this.height*=f/d);this.Bb=b.Bb;this.Cb=b.Cb;this.W.bh(b.Li);this.Ha();this.mc=b;this.Ih=b.O;c=0;for(d=this.G.length;c<d;c++)e=this.G[c],e.Ps&&e.Ps(a,b);this.b.trigger(ac.prototype.j.Pe,this)};a.Cc=function(a){a.globalAlpha=
this.opacity;var b=this.mc,c=b.Ff,d=b.J,e=this.x,f=this.y,l=this.width,m=this.height;if(0===this.e&&0<=l&&0<=m)e-=this.Bb*l,f-=this.Cb*m,this.b.Xc&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.uf,b.vf,b.width,b.height,e,f,l,m):a.drawImage(d,e,f,l,m);else{this.b.Xc&&(e=Math.round(e),f=Math.round(f));a.save();var p=0<l?1:-1,n=0<m?1:-1;a.translate(e,f);1===p&&1===n||a.scale(p,n);a.rotate(this.e*p*n);e=0-this.Bb*ia(l);f=0-this.Cb*ia(m);c?a.drawImage(d,b.uf,b.vf,b.width,b.height,e,f,ia(l),ia(m)):
a.drawImage(d,e,f,ia(l),ia(m));a.restore()}};a.Qb=function(a){a.Yb(this.Ih);a.Je(this.opacity);var b=this.mc,c=this.Nb;if(this.b.Xc){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Ff?a.yd(c.Na+d,c.Oa+e,c.Ib+d,c.Jb+e,c.xb+d,c.yb+e,c.ub+d,c.wb+e,b.Al):a.Xg(c.Na+d,c.Oa+e,c.Ib+d,c.Jb+e,c.xb+d,c.yb+e,c.ub+d,c.wb+e)}else b.Ff?a.yd(c.Na,c.Oa,c.Ib,c.Jb,c.xb,c.yb,c.ub,c.wb,b.Al):a.Xg(c.Na,c.Oa,c.Ib,c.Jb,c.xb,c.yb,c.ub,c.wb)};a.Ir=function(a){var b=this.mc,c,d;c=0;for(d=b.yk.length;c<d;c++)if(ab(a,
b.yk[c][0]))return c;return-1};a.ok=function(a,b){var c=this.mc,d=c.yk,e;e=M(a)?this.Ir(a):a-1;e=O(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.Bb)*this.width,d=d[e][2],d=(d-c.Cb)*this.height,c=Math.cos(this.e);e=Math.sin(this.e);var l=f*c-d*e,d=d*c+f*e,f=l+this.x,d=d+this.y;return b?f:d};var c=null,d=new ca,r=!1,e=[];p.finish=function(a){if(r){if(a){var b=this.b.nb().Pb.Hc;a=c.ca();var e=d.Oc(),f,m;if(a.ja){a.ja=!1;a.c.length=e.length;f=0;for(m=e.length;f<m;f++)a.c[f]=e[f];if(b)for(f=
a.V.length=0,m=c.c.length;f<m;f++)e=c.c[f],d.contains(e)||a.V.push(e)}else if(b)for(b=a.c.length,a.c.length=b+e.length,f=0,m=e.length;f<m;f++)a.c[b+f]=e[f],wa(a.V,e[f]);else ta(a.c,e);c.fd()}d.clear();r=!1}};n.prototype.rp=function(a){if(a){var b=!1,f,k,m,p=this.b.kk(),l=p.type,p=p.cf;f=a.ca();k=this.b.nb().Pb.Hc;var n;f.ja?(this.Aa(),this.b.Fr(this.d,a,this.Ca,e),n=e):n=k?f.V:f.c;c=a;r=l!==a&&!p;f=0;for(k=n.length;f<k;f++)if(m=n[f],this.b.Ct(this,m)){b=!0;if(p)break;l!==a&&d.add(m)}e.length=0;a=
b}else a=!1;return a};n.prototype.xp=function(a){return ab(this.om,a)};n.prototype.yp=function(){return!0};n.prototype.Pe=function(){return!0};b.j=new n;b.ra=new function(){};b.Rb=new function(){}})();function jc(f){this.b=f}
(function(){var f=jc.prototype;f.gb=function(b){this.ya=b;this.b=b.b};var n=f.gb.prototype;n.la=function(){this.B||(this.J=new Image,this.J.Oj=this.gj,this.b.Vl(this.J,this.fj),this.O=this.pattern=null)};n.Bi=function(){this.B||(this.O=null)};n.Ci=function(){if(!this.B&&this.c.length){this.O||(this.O=this.b.q.nf(this.J,!0,this.b.S,this.ih));var b,f;b=0;for(f=this.c.length;b<f;b++)this.c[b].O=this.O}};n.yg=function(){this.B||this.O||!this.b.q||(this.O=this.b.q.nf(this.J,!0,this.b.S,this.ih))};n.oj=
function(){this.B||this.c.length||!this.O||(this.b.q.deleteTexture(this.O),this.O=null)};n.Oi=function(b){b.drawImage(this.J,0,0)};f.Ba=function(b){this.type=b;this.b=b.b};n=f.Ba.prototype;n.la=function(){this.visible=0===this.qa[0];this.Yg=new pa(0,0,0,0);this.Xm=!1;this.J=this.type.J;this.b.q?(this.type.yg(),this.O=this.type.O):(this.type.pattern||(this.type.pattern=this.b.ba.createPattern(this.type.J,"repeat")),this.pattern=this.type.pattern)};n.dd=function(){this.Xm=!1;this.J=this.type.J};n.Kg=
function(){this.b.q&&this.Xm&&this.O&&(this.b.q.deleteTexture(this.O),this.O=null)};n.Cc=function(b){b.globalAlpha=this.opacity;b.save();b.fillStyle=this.pattern;var f=this.x,m=this.y;this.b.Xc&&(f=Math.round(f),m=Math.round(m));var a=-(this.Bb*this.width),c=-(this.Cb*this.height),d=a%this.J.width,n=c%this.J.height;0>d&&(d+=this.J.width);0>n&&(n+=this.J.height);b.translate(f,m);b.rotate(this.e);b.translate(d,n);b.fillRect(a-d,c-n,this.width,this.height);b.restore()};n.Qb=function(b){b.Yb(this.O);
b.Je(this.opacity);var f=this.Yg;f.right=this.width/this.J.width;f.bottom=this.height/this.J.height;var m=this.Nb;if(this.b.Xc){var a=Math.round(this.x)-this.x,c=Math.round(this.y)-this.y;b.yd(m.Na+a,m.Oa+c,m.Ib+a,m.Jb+c,m.xb+a,m.yb+c,m.ub+a,m.wb+c,f)}else b.yd(m.Na,m.Oa,m.Ib,m.Jb,m.xb,m.yb,m.ub,m.wb,f)};f.j=new function(){};f.ra=new function(){};f.Rb=new function(){}})();function Y(f){this.b=f}
(function(){function f(a){e=a.x;g=a.y;h=a.z}function n(a){y=a.x;k=a.y;F=a.z}function b(a,b,c,d){var e;e=w.length?w.pop():new p;e.init(a,b,c,d);return e}function p(){this.eh=this.id=this.y=this.x=this.dj=this.cj=this.Lk=this.time=this.El=0;this.lh=this.mj=!1}function m(){}function a(){}var c=Y.prototype;c.gb=function(a){this.ya=a;this.b=a.b};c.gb.prototype.la=function(){};c.Ba=function(a){this.type=a;this.b=a.b;this.touches=[];this.Wk=!1};var d=c.Ba.prototype,r={left:0,top:0};d.Yf=function(a){var b,
c;b=0;for(c=this.touches.length;b<c;b++)if(this.touches[b].id===a)return b;return-1};var e=0,g=0,h=0,y=0,k=0,F=0,w=[];p.prototype.init=function(a,b,c,d){var e=S();this.El=this.Lk=this.time=e;this.cj=a;this.dj=b;this.x=a;this.y=b;this.id=c;this.eh=d;this.lh=this.mj=!1};p.prototype.update=function(a,b,c){this.Lk=this.time;this.time=a;this.x=b;this.y=c;!this.lh&&15<=Na(this.cj,this.dj,this.x,this.y)&&(this.lh=!0)};p.prototype.Ds=function(a,b){!this.mj&&500<=S()-this.El&&!this.lh&&15>Na(this.cj,this.dj,
this.x,this.y)&&(this.mj=!0,a.ad=this.eh,a.Kf=this.id,a.Xe=b,a.b.trigger(Y.prototype.j.Jp,a),a.jd=this.x,a.kd=this.y,a.b.trigger(Y.prototype.j.Kp,a),a.Xe=0)};var l=-1E3,u=-1E3,q=-1E4;p.prototype.Kn=function(a,b){if(!this.mj){var c=S();333>=c-this.El&&!this.lh&&15>Na(this.cj,this.dj,this.x,this.y)&&(a.ad=this.eh,a.Kf=this.id,a.Xe=b,666>=c-q&&25>Na(l,u,this.x,this.y)?(a.b.trigger(Y.prototype.j.Fp,a),a.jd=this.x,a.kd=this.y,a.b.trigger(Y.prototype.j.Gp,a),u=l=-1E3,q=-1E4):(a.b.trigger(Y.prototype.j.Sp,
a),a.jd=this.x,a.kd=this.y,a.b.trigger(Y.prototype.j.Tp,a),l=this.x,u=this.y,q=c),a.Xe=0)}};d.la=function(){this.ws=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Xe=this.Kf=this.ad=this.kd=this.jd=this.km=this.jm=this.im=this.gq=this.fq=this.dq=this.Sg=this.Rg=this.Qg=0;this.Kt=0!==this.qa[0];var a=0<this.b.mb?document:this.b.canvas,b=document;this.b.$a?b=a=window.Canvas:this.b.fc&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.Pg(a)},
!1),a.addEventListener("pointermove",function(a){c.Og(a)},!1),b.addEventListener("pointerup",function(a){c.xd(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.xd(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},
!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.Pg(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Og(a)},!1),b.addEventListener("MSPointerUp",function(a){c.xd(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.xd(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.Ei(a)},
!1),a.addEventListener("touchmove",function(a){c.Di(a)},!1),b.addEventListener("touchend",function(a){c.wf(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.wf(a,!0)},!1));if(this.ws){var d=function(a){a=a.reading;c.im=a.accelerationX;c.jm=a.accelerationY;c.km=a.accelerationZ},e=function(a){a=a.reading;c.Qg=a.yawDegrees;c.Rg=a.pitchDegrees;c.Sg=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",
d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",e)):(g&&g.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.Qg=a.alpha||
0;c.Rg=a.beta||0;c.Sg=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.dq=a.accelerationIncludingGravity.x||0,c.fq=a.accelerationIncludingGravity.y||0,c.gq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.im=a.acceleration.x||0,c.jm=a.acceleration.y||0,c.km=a.acceleration.z||0)},!1);this.Kt&&!this.b.da&&(jQuery(document).mousemove(function(a){c.Mg(a)}),jQuery(document).mousedown(function(a){c.Lg(a)}),jQuery(document).mouseup(function(a){c.Ng(a)}));
this.b.df&&!this.b.$a&&AppMobi.accelerometer.watchAcceleration(f,{frequency:40,adjustForRotation:!0});this.b.qc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(n,null,{frequency:40});this.b.Dt(this)};d.Og=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.Yf(a.pointerId),c=S();if(0<=b){var d=this.b.da?r:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};d.Pg=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&bb(a)&&a.preventDefault();var c=this.b.da?r:jQuery(this.b.canvas).offset(),d=a.pageX-c.left,c=a.pageY-c.top;S();this.ad=this.touches.length;this.Kf=a.pointerId;this.touches.push(b(d,c,a.pointerId,this.ad));this.b.ka=!0;this.b.trigger(Y.prototype.j.cm,this);this.b.trigger(Y.prototype.j.fm,this);this.jd=d;this.kd=c;this.b.trigger(Y.prototype.j.em,this);this.b.ka=
!1}};d.xd=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&bb(a)&&a.preventDefault();var c=this.Yf(a.pointerId);this.ad=0<=c?this.touches[c].eh:-1;this.Kf=0<=c?this.touches[c].id:-1;this.b.ka=!0;this.b.trigger(Y.prototype.j.am,this);this.b.trigger(Y.prototype.j.zj,this);0<=c&&(b||this.touches[c].Kn(this,c),100>w.length&&w.push(this.touches[c]),this.touches.splice(c,1));this.b.ka=!1}};d.Di=function(a){a.preventDefault&&a.preventDefault();var c=S(),
b,d,e,f;b=0;for(d=a.changedTouches.length;b<d;b++)if(e=a.changedTouches[b],f=this.Yf(e.identifier),0<=f){var g=this.b.da?r:jQuery(this.b.canvas).offset();f=this.touches[f];2>c-f.time||f.update(c,e.pageX-g.left,e.pageY-g.top)}};d.Ei=function(a){a.preventDefault&&bb(a)&&a.preventDefault();var c=this.b.da?r:jQuery(this.b.canvas).offset();S();this.b.ka=!0;var d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],g=this.Yf(f.identifier),-1===g){g=f.pageX-c.left;var h=f.pageY-c.top;
this.ad=this.touches.length;this.Kf=f.identifier;this.touches.push(b(g,h,f.identifier,this.ad));this.b.trigger(Y.prototype.j.cm,this);this.b.trigger(Y.prototype.j.fm,this);this.jd=g;this.kd=h;this.b.trigger(Y.prototype.j.em,this)}this.b.ka=!1};d.wf=function(a,c){a.preventDefault&&bb(a)&&a.preventDefault();this.b.ka=!0;var b,d,e;b=0;for(d=a.changedTouches.length;b<d;b++)e=a.changedTouches[b],e=this.Yf(e.identifier),0<=e&&(this.ad=this.touches[e].eh,this.Kf=this.touches[e].id,this.b.trigger(Y.prototype.j.am,
this),this.b.trigger(Y.prototype.j.zj,this),c||this.touches[e].Kn(this,e),100>w.length&&w.push(this.touches[e]),this.touches.splice(e,1));this.b.ka=!1};d.Ru=function(){return this.b.df&&0===this.Qg&&0!==h?90*h:this.b.qc&&0===this.Qg&&0!==F?90*F:this.Qg};d.Su=function(){return this.b.df&&0===this.Rg&&0!==g?-90*g:this.b.qc&&0===this.Rg&&0!==k?-90*k:this.Rg};d.Vu=function(){return this.b.df&&0===this.Sg&&0!==e?90*e:this.b.qc&&0===this.Sg&&0!==y?90*y:this.Sg};d.Lg=function(a){a.preventDefault&&this.b.$e&&
!this.b.Uc&&a.preventDefault();this.Ei({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Wk=!0};d.Mg=function(a){this.Wk&&this.Di({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};d.Ng=function(a){a.preventDefault&&this.b.$e&&!this.b.Uc&&a.preventDefault();this.b.$e=!0;this.wf({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Wk=!1};d.Hl=function(){var a,c,b,d=S();a=0;for(c=this.touches.length;a<c;++a)b=this.touches[a],b.time<=d-50&&(b.Lk=d),b.Ds(this,
a)};m.prototype.fm=function(){return!0};m.prototype.zj=function(){return!0};m.prototype.em=function(a){return a?this.b.Hf(a,this.jd,this.kd,!1):!1};var v=[];m.prototype.sp=function(a){if(!a)return!1;var b=a.ca(),c=b.Dc(),d,e,f,g,h,l;f=0;for(g=c.length;f<g;f++){var k=c[f];k.Aa();h=0;for(l=this.touches.length;h<l;h++)if(e=this.touches[h],d=k.d.na(e.x,e.y,!0),e=k.d.na(e.x,e.y,!1),k.lb(d,e)){v.push(k);break}}return v.length?(b.ja=!1,ta(b.c,v),a.fd(),v.length=0,!0):!1};m.prototype.cm=function(a){a=Math.floor(a);
return a===this.ad};m.prototype.am=function(a){a=Math.floor(a);return a===this.ad};m.prototype.Jp=function(){return!0};m.prototype.Sp=function(){return!0};m.prototype.Fp=function(){return!0};m.prototype.Kp=function(a){return a?this.b.Hf(a,this.jd,this.kd,!1):!1};m.prototype.Tp=function(a){return a?this.b.Hf(a,this.jd,this.kd,!1):!1};m.prototype.Gp=function(a){return a?this.b.Hf(a,this.jd,this.kd,!1):!1};c.j=new m;a.prototype.gm=function(a,b){var c=this.Xe;if(0>c||c>=this.touches.length)a.u(0);else{var d,
e,f,g,h;fa(b)?(d=this.b.qd(0),e=d.scale,f=d.kb,g=d.Fb,h=d.e,d.scale=1,d.kb=1,d.Fb=1,d.e=0,a.u(d.na(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.kb=f,d.Fb=g,d.e=h):(d=K(b)?this.b.qd(b):this.b.$f(b))?a.u(d.na(this.touches[c].x,this.touches[c].y,!0)):a.u(0)}};a.prototype.hm=function(a,b){var c=this.Xe;if(0>c||c>=this.touches.length)a.u(0);else{var d,e,f,g,h;fa(b)?(d=this.b.qd(0),e=d.scale,f=d.kb,g=d.Gb,h=d.e,d.scale=1,d.kb=1,d.Gb=1,d.e=0,a.u(d.na(this.touches[c].x,this.touches[c].y,!1)),d.scale=
e,d.kb=f,d.Gb=g,d.e=h):(d=K(b)?this.b.qd(b):this.b.$f(b))?a.u(d.na(this.touches[c].x,this.touches[c].y,!1)):a.u(0)}};c.Rb=new a})();
function kc(f){this.b=f;var n=this;this.b.da||(jQuery(document).mousemove(function(b){n.Mg(b)}),jQuery(document).mousedown(function(b){n.Lg(b)}),jQuery(document).mouseup(function(b){n.Ng(b)}));f=0<this.b.mb?document:this.b.canvas;this.b.$a?f=window.Canvas:this.b.fc&&(f=window);window.navigator.pointerEnabled?(f.addEventListener("pointerdown",function(b){n.Pg(b)},!1),f.addEventListener("pointermove",function(b){n.Og(b)},!1),f.addEventListener("pointerup",function(b){n.xd(b)},!1),f.addEventListener("pointercancel",
function(b){n.xd(b)},!1)):window.navigator.msPointerEnabled?(f.addEventListener("MSPointerDown",function(b){n.Pg(b)},!1),f.addEventListener("MSPointerMove",function(b){n.Og(b)},!1),f.addEventListener("MSPointerUp",function(b){n.xd(b)},!1),f.addEventListener("MSPointerCancel",function(b){n.xd(b)},!1)):(f.addEventListener("touchstart",function(b){n.Ei(b)},!1),f.addEventListener("touchmove",function(b){n.Di(b)},!1),f.addEventListener("touchend",function(b){n.wf(b)},!1),f.addEventListener("touchcancel",
function(b){n.wf(b)},!1))}
(function(){function f(a){var c,d;c=0;for(d=a.G.length;c<d;c++)if(a.G[c]instanceof b.Ba)return a.G[c];return null}function n(){}var b=kc.prototype,p={left:0,top:0};b.Lg=function(a){1===a.which&&this.bl("leftmouse",a.pageX,a.pageY)};b.Mg=function(a){1===a.which&&this.cl("leftmouse",a.pageX,a.pageY)};b.Ng=function(a){1===a.which&&this.dl("leftmouse")};b.Ei=function(a){a.preventDefault&&bb(a)&&a.preventDefault();var c,b,f,e;c=0;for(b=a.changedTouches.length;c<b;c++)f=a.changedTouches[c],e=f.identifier,
this.bl(e?e.toString():"<none>",f.pageX,f.pageY)};b.Di=function(a){a.preventDefault&&a.preventDefault();var b,d,f,e;b=0;for(d=a.changedTouches.length;b<d;b++)f=a.changedTouches[b],e=f.identifier,this.cl(e?e.toString():"<none>",f.pageX,f.pageY)};b.wf=function(a){a.preventDefault&&bb(a)&&a.preventDefault();var b,d,f;b=0;for(d=a.changedTouches.length;b<d;b++)f=a.changedTouches[b],f=f.identifier,this.dl(f?f.toString():"<none>")};b.Pg=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&
(a.preventDefault&&bb(a)&&a.preventDefault(),this.bl(a.pointerId.toString(),a.pageX,a.pageY))};b.Og=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&a.preventDefault(),this.cl(a.pointerId.toString(),a.pageX,a.pageY))};b.xd=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&bb(a)&&a.preventDefault(),this.dl(a.pointerId.toString()))};b.bl=function(a,b,d){var m=this.b.da?p:jQuery(this.b.canvas).offset();b-=m.left;
d-=m.top;var e,g,h,n,m=this.sf.Oc(),k,F,w,l=null;k=0;for(F=m.length;k<F;k++)if(w=m[k],e=f(w),e.enabled&&!e.pe&&(e=w.d.na(b,d,!0),g=w.d.na(b,d,!1),w.Aa(),w.lb(e,g)))l?w.d.index>l.d.index?(l=w,h=e,n=g):w.d.index===l.d.index&&w.Sb()>l.Sb()&&(l=w,h=e,n=g):(l=w,h=e,n=g);l&&f(l).Ks(a,h,n)};b.cl=function(a,b,d){var m=this.b.da?p:jQuery(this.b.canvas).offset();b-=m.left;d-=m.top;var e,g=this.sf.Oc(),h,n,k;h=0;for(n=g.length;h<n;h++)e=g[h],k=f(e),!k.enabled||!k.pe||k.pe&&k.Vj!==a||(m=e.d.na(b,d,!0),e=e.d.na(b,
d,!1),k.Os(m,e))};b.dl=function(a){var b=this.sf.Oc(),d,m,e;d=0;for(m=b.length;d<m;d++)e=b[d],e=f(e),e.pe&&e.Vj===a&&e.Rs()};b.gb=function(a){this.behavior=a;this.b=a.b};b.gb.prototype.la=function(){};b.Ba=function(a,b){this.type=a;this.behavior=a.behavior;this.Db=b;this.b=a.b};var m=b.Ba.prototype;m.la=function(){this.pe=!1;this.Em=this.Dm=0;this.Vj="<none>";this.Gj=this.qa[0];this.enabled=0!==this.qa[1]};m.Xb=function(){return{enabled:this.enabled}};m.tc=function(a){this.enabled=a.enabled;this.pe=
!1};m.Ks=function(a,b,d){this.Dm=b-this.Db.x;this.Em=d-this.Db.y;this.pe=!0;this.Vj=a;this.b.ka=!0;this.b.trigger(kc.prototype.j.Hp,this.Db);this.b.ka=!1};m.Os=function(a,b){var d=a-this.Dm,f=b-this.Em;if(0===this.Gj){if(this.Db.x!==d||this.Db.y!==f)this.Db.x=d,this.Db.y=f,this.Db.Ha()}else 1===this.Gj?this.Db.x!==d&&(this.Db.x=d,this.Db.Ha()):2===this.Gj&&this.Db.y!==f&&(this.Db.y=f,this.Db.Ha())};m.Rs=function(){this.pe=!1;this.b.ka=!0;this.b.trigger(kc.prototype.j.Ip,this.Db);this.b.ka=!1};m.Ya=
function(){};n.prototype.Hp=function(){return!0};n.prototype.Ip=function(){return!0};b.j=new n;b.ra=new function(){};b.Rb=new function(){}})();
function $b(){return[bc,cc,dc,ec,ac,jc,Y,kc,dc.prototype.j.qp,ac.prototype.ra.Yp,dc.prototype.j.xj,Y.prototype.j.sp,W.prototype.ra.$p,dc.prototype.j.op,W.prototype.j.kp,W.prototype.ra.Xp,W.prototype.ra.wp,ac.prototype.ra.aq,bc.prototype.ra.Play,W.prototype.ra.bq,Y.prototype.j.zj,W.prototype.j.Zl,ac.prototype.j.rp,ac.prototype.ra.lp,W.prototype.ra.fp,ac.prototype.ra.Zp,W.prototype.ra.Vp,W.prototype.ra.Wp,W.prototype.ra.vp]};
