// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,da,ea,fa,ia,A,ja,ka,la,ma,na,sa,ta,va,wa,xa,ya,za,Aa,L,Ba,Ca,Da,Ea,Fa,Q,Ga,Ia,Ja,Ma,Na,Oa,Pa,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc,hc={},ic={};"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,b,e,c){this.set(a,b,e,c)}function p(){this.Wb=this.Vb=this.Yb=this.Xb=this.mc=this.lc=this.wb=this.ub=0}function m(a,b,e,c){a<b?e<c?(x=a<e?a:e,w=b>c?b:c):(x=a<c?a:c,w=b>e?b:e):e<c?(x=b<e?b:e,w=a>c?a:c):(x=b<c?b:c,w=a>e?a:e)}function q(){this.items=this.kd=null;this.Og=0;W&&(this.kd=new Set);this.bg=[];this.be=!0}function t(a){ua[X++]=a}function r(){this.L=this.qj=this.y=this.Nj=0}function h(a){this.Qf=[];this.Em=this.Gm=this.Hm=this.Fm=0;this.ph(a)}function b(a,b){this.Tj=
a;this.Sj=b;this.cells={}}function c(a,b){this.Tj=a;this.Sj=b;this.cells={}}function d(a,b,e){var c;return C.length?(c=C.pop(),c.wk=a,c.x=b,c.y=e,c):new aa(a,b,e)}function a(a,b,e){this.wk=a;this.x=b;this.y=e;this.Ua=new ba}function e(a,b,e){var c;return P.length?(c=P.pop(),c.wk=a,c.x=b,c.y=e,c):new ca(a,b,e)}function k(a,b,e){this.wk=a;this.x=b;this.y=e;this.Ua=[];this.Bf=!0;this.hd=new ba;this.gg=!1}function g(a,b){return a.Tc-b.Tc}da=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};ia=function(a){return"number"===typeof a};A=function(a){return"string"===typeof a};ja=function(a){return 0<a&&0===(a-1&a)};ka=function(a){--a;for(var b=1;32>b;b<<=1)a=a|a>>b;return a+1};la=function(a){return 0>a?-a:a};ma=function(a,b){return a<b?a:b};na=Math.PI;sa=function(a){return 0<=a?a|0:(a|0)-1};ta=function(a){var b=a|0;return b===a?b:b+1};va=function(a,b,e,c,g,v,l,k){var d,
n,h,x;a<e?(n=a,d=e):(n=e,d=a);g<l?(x=g,h=l):(x=l,h=g);if(d<x||n>h)return!1;b<c?(n=b,d=c):(n=c,d=b);v<k?(x=v,h=k):(x=k,h=v);if(d<x||n>h)return!1;d=g-a+l-e;n=v-b+k-c;a=e-a;b=c-b;g=l-g;v=k-v;k=la(b*g-v*a);return la(g*n-v*d)>k?!1:la(a*n-b*d)<=k};f.prototype.set=function(a,b,e,c){this.left=a;this.top=b;this.right=e;this.bottom=c};f.prototype.mg=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,b){this.left+=a;this.top+=b;this.right+=a;this.bottom+=b;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.qc=function(a,b){return a>=this.left&&a<=this.right&&b>=this.top&&b<=this.bottom};f.prototype.rg=function(a){return this.left===a.left&&this.top===a.top&&this.right===
a.right&&this.bottom===a.bottom};wa=f;p.prototype.lj=function(a){this.ub=a.left;this.wb=a.top;this.lc=a.right;this.mc=a.top;this.Xb=a.right;this.Yb=a.bottom;this.Vb=a.left;this.Wb=a.bottom};p.prototype.hp=function(a,b){if(0===b)this.lj(a);else{var e=Math.sin(b),c=Math.cos(b),g=a.left*e,v=a.top*e,l=a.right*e,e=a.bottom*e,k=a.left*c,d=a.top*c,n=a.right*c,c=a.bottom*c;this.ub=k-v;this.wb=d+g;this.lc=n-v;this.mc=d+l;this.Xb=n-e;this.Yb=c+l;this.Vb=k-e;this.Wb=c+g}};p.prototype.offset=function(a,b){this.ub+=
a;this.wb+=b;this.lc+=a;this.mc+=b;this.Xb+=a;this.Yb+=b;this.Vb+=a;this.Wb+=b;return this};var x=0,w=0;p.prototype.Jm=function(a){m(this.ub,this.lc,this.Xb,this.Vb);a.left=x;a.right=w;m(this.wb,this.mc,this.Yb,this.Wb);a.top=x;a.bottom=w};p.prototype.qc=function(a,b){var e=this.ub,c=this.wb,g=this.lc-e,v=this.mc-c,l=this.Xb-e,k=this.Yb-c,d=a-e,n=b-c,h=g*g+v*v,x=g*l+v*k,v=g*d+v*n,u=l*l+k*k,f=l*d+k*n,w=1/(h*u-x*x),g=(u*v-x*f)*w,h=(h*f-x*v)*w;if(0<=g&&0<h&&1>g+h)return!0;g=this.Vb-e;v=this.Wb-c;h=g*
g+v*v;x=g*l+v*k;v=g*d+v*n;w=1/(h*u-x*x);g=(u*v-x*f)*w;h=(h*f-x*v)*w;return 0<=g&&0<h&&1>g+h};p.prototype.Kj=function(a,b){if(b)switch(a){case 0:return this.ub;case 1:return this.lc;case 2:return this.Xb;case 3:return this.Vb;case 4:return this.ub;default:return this.ub}else switch(a){case 0:return this.wb;case 1:return this.mc;case 2:return this.Yb;case 3:return this.Wb;case 4:return this.wb;default:return this.wb}};xa=p;ya=function(a,b){for(var e in b)b.hasOwnProperty(e)&&(a[e]=b[e]);return a};za=
function(a,b){var e,c;b=sa(b);if(!(0>b||b>=a.length)){e=b;for(c=a.length-1;e<c;e++)a[e]=a[e+1];Aa(a,c)}};Aa=function(a,b){a.length=b};L=function(a){Aa(a,0)};Ba=function(a,b){L(a);var e,c;e=0;for(c=b.length;e<c;++e)a[e]=b[e]};Ca=function(a,b){a.push.apply(a,b)};Da=function(a,b){var e,c;e=0;for(c=a.length;e<c;++e)if(a[e]===b)return e;return-1};Ea=function(a,b){var e=Da(a,b);-1!==e&&za(a,e)};Fa=function(a,b,e){return a<b?b:a>e?e:a};Q=function(a){return a/(180/na)};Ga=function(a){return 180/na*a};Ia=
function(a){a%=360;0>a&&(a+=360);return a};Ja=function(a){a%=2*na;0>a&&(a+=2*na);return a};Ma=function(a){return Ia(Ga(a))};Na=function(a){return Ja(Q(a))};Oa=function(a,b,e,c){return Math.atan2(c-b,e-a)};Pa=function(a,b){if(a===b)return 0;var e=Math.sin(a),c=Math.cos(a),g=Math.sin(b),v=Math.cos(b),e=e*g+c*v;return 1<=e?0:-1>=e?na:Math.acos(e)};Sa=function(a,b,e){var c=Math.sin(a),g=Math.cos(a),v=Math.sin(b),l=Math.cos(b);return Math.acos(c*v+g*l)>e?0<g*v-c*l?Ja(a+e):Ja(a-e):Ja(b)};Ta=function(a,
b){var e=Math.sin(a),c=Math.cos(a),g=Math.sin(b),v=Math.cos(b);return 0>=c*g-e*v};Ua=function(a,b,e,c,g,v){if(0===e)return v?a:b;var l=Math.sin(e);e=Math.cos(e);a-=c;b-=g;var k=a*l;a=a*e-b*l;b=b*e+k;return v?a+c:b+g};Va=function(a,b,e,c){a=e-a;b=c-b;return Math.sqrt(a*a+b*b)};Wa=function(a,b){return!a!==!b};Xa=function(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1};Ya=function(a){for(var b in a)a.hasOwnProperty(b)&&delete a[b]};var u=+new Date;Za=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()-u};var l=!1,n=l=!1,F=!1;"undefined"!==typeof window&&(l=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),l=!l&&/safari/i.test(navigator.userAgent),n=/(iphone|ipod|ipad)/i.test(navigator.userAgent),F=window.c2ejecta);var W=!l&&!F&&!n&&"undefined"!==
typeof Set&&"undefined"!==typeof Set.prototype.forEach;q.prototype.contains=function(a){return this.Bd()?!1:W?this.kd.has(a):this.items&&this.items.hasOwnProperty(a)};q.prototype.add=function(a){if(W)this.kd.has(a)||(this.kd.add(a),this.be=!1);else{var b=a.toString(),e=this.items;e?e.hasOwnProperty(b)||(e[b]=a,this.Og++,this.be=!1):(this.items={},this.items[b]=a,this.Og=1,this.be=!1)}};q.prototype.remove=function(a){if(!this.Bd())if(W)this.kd.has(a)&&(this.kd["delete"](a),this.be=!1);else if(this.items){a=
a.toString();var b=this.items;b.hasOwnProperty(a)&&(delete b[a],this.Og--,this.be=!1)}};q.prototype.clear=function(){this.Bd()||(W?this.kd.clear():(this.items=null,this.Og=0),L(this.bg),this.be=!0)};q.prototype.Bd=function(){return 0===this.count()};q.prototype.count=function(){return W?this.kd.size:this.Og};var ua=null,X=0;q.prototype.Su=function(){if(!this.be){if(W)L(this.bg),ua=this.bg,X=0,this.kd.forEach(t),ua=null,X=0;else{var a=this.bg;L(a);var b,e=0,c=this.items;if(c)for(b in c)c.hasOwnProperty(b)&&
(a[e++]=c[b])}this.be=!0}};q.prototype.ye=function(){this.Su();return this.bg};ba=q;new ba;$a=function(a,b){W?ab(a,b.kd):bb(a,b.ye())};ab=function(a,b){var e,c,g,v;c=e=0;for(g=a.length;e<g;++e)v=a[e],b.has(v)||(a[c++]=v);Aa(a,c)};bb=function(a,b){var e,c,g,v;c=e=0;for(g=a.length;e<g;++e)v=a[e],-1===Da(b,v)&&(a[c++]=v);Aa(a,c)};r.prototype.add=function(a){this.y=a-this.Nj;this.qj=this.L+this.y;this.Nj=this.qj-this.L-this.y;this.L=this.qj};r.prototype.reset=function(){this.L=this.qj=this.y=this.Nj=
0};cb=r;fb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};h.prototype.ph=function(a){this.Qo=a;this.Zi=a.length/2;this.Qf.length=a.length;this.Oj=this.Pj=-1;this.Mm=0};h.prototype.Gt=function(){return!this.Qo.length};h.prototype.Na=function(){for(var a=this.Qf,b=a[0],e=b,c=a[1],g=c,v,l,k=1,d=this.Zi;k<d;++k)l=2*k,v=a[l],l=a[l+1],v<b&&(b=v),v>e&&(e=v),l<c&&(c=l),l>g&&(g=l);this.Fm=b;this.Gm=e;this.Hm=c;this.Em=g};h.prototype.lj=function(a,b,e){this.Qf.length=8;this.Zi=4;var c=this.Qf;
c[0]=a.left-b;c[1]=a.top-e;c[2]=a.right-b;c[3]=a.top-e;c[4]=a.right-b;c[5]=a.bottom-e;c[6]=a.left-b;c[7]=a.bottom-e;this.Pj=a.right-a.left;this.Oj=a.bottom-a.top;this.Na()};h.prototype.lr=function(a,b,e){if(this.Pj!==a||this.Oj!==b||this.Mm!==e){this.Pj=a;this.Oj=b;this.Mm=e;var c,g,v,l,k,d=0,n=1,h=this.Qo,x=this.Qf;0!==e&&(d=Math.sin(e),n=Math.cos(e));e=0;for(v=this.Zi;e<v;e++)c=2*e,g=c+1,l=h[c]*a,k=h[g]*b,x[c]=l*n-k*d,x[g]=k*n+l*d;this.Na()}};h.prototype.qc=function(a,b){var e=this.Qf;if(a===e[0]&&
b===e[1])return!0;var c,g,v,l=this.Zi,k=this.Fm-110,d=this.Hm-101,n=this.Gm+131,h=this.Em+120,x,u,f=0,w=0;for(c=0;c<l;c++)g=2*c,v=(c+1)%l*2,x=e[g],g=e[g+1],u=e[v],v=e[v+1],va(k,d,a,b,x,g,u,v)&&f++,va(n,h,a,b,x,g,u,v)&&w++;return 1===f%2||1===w%2};gb=h;b.prototype.ie=function(a,b,e){var c;c=this.cells[a];return c?(c=c[b])?c:e?(c=d(this,a,b),this.cells[a][b]=c):null:e?(c=d(this,a,b),this.cells[a]={},this.cells[a][b]=c):null};b.prototype.yb=function(a){return sa(a/this.Tj)};b.prototype.zb=function(a){return sa(a/
this.Sj)};b.prototype.update=function(a,b,e){var c,g,v,l,k;if(b)for(c=b.left,g=b.right;c<=g;++c)for(v=b.top,l=b.bottom;v<=l;++v)if(!e||!e.qc(c,v))if(k=this.ie(c,v,!1))k.remove(a),k.Bd()&&(k.Ua.clear(),1E3>C.length&&C.push(k),this.cells[c][v]=null);if(e)for(c=e.left,g=e.right;c<=g;++c)for(v=e.top,l=e.bottom;v<=l;++v)b&&b.qc(c,v)||this.ie(c,v,!0).Fk(a)};b.prototype.So=function(a,b){var e,c,g,v,l,k;e=this.yb(a.left);g=this.zb(a.top);c=this.yb(a.right);for(l=this.zb(a.bottom);e<=c;++e)for(v=g;v<=l;++v)(k=
this.ie(e,v,!1))&&k.dump(b)};hb=b;c.prototype.ie=function(a,b,c){var g;g=this.cells[a];return g?(g=g[b])?g:c?(g=e(this,a,b),this.cells[a][b]=g):null:c?(g=e(this,a,b),this.cells[a]={},this.cells[a][b]=g):null};c.prototype.yb=function(a){return sa(a/this.Tj)};c.prototype.zb=function(a){return sa(a/this.Sj)};c.prototype.update=function(a,b,e){var c,g,v,l,k;if(b)for(c=b.left,g=b.right;c<=g;++c)for(v=b.top,l=b.bottom;v<=l;++v)if(!e||!e.qc(c,v))if(k=this.ie(c,v,!1))k.remove(a),k.Bd()&&(k.reset(),1E3>P.length&&
P.push(k),this.cells[c][v]=null);if(e)for(c=e.left,g=e.right;c<=g;++c)for(v=e.top,l=e.bottom;v<=l;++v)b&&b.qc(c,v)||this.ie(c,v,!0).Fk(a)};c.prototype.So=function(a,b,e,c,g){var v,l;a=this.yb(a);b=this.zb(b);e=this.yb(e);for(v=this.zb(c);a<=e;++a)for(c=b;c<=v;++c)(l=this.ie(a,c,!1))&&l.dump(g)};c.prototype.Mt=function(a){var b,e,c,g,v;b=a.left;c=a.top;e=a.right;for(g=a.bottom;b<=e;++b)for(a=c;a<=g;++a)if(v=this.ie(b,a,!1))v.Bf=!1};ib=c;var C=[];a.prototype.Bd=function(){return this.Ua.Bd()};a.prototype.Fk=
function(a){this.Ua.add(a)};a.prototype.remove=function(a){this.Ua.remove(a)};a.prototype.dump=function(a){Ca(a,this.Ua.ye())};aa=a;var P=[];k.prototype.Bd=function(){if(!this.Ua.length)return!0;if(this.Ua.length>this.hd.count())return!1;this.jk();return!0};k.prototype.Fk=function(a){this.hd.contains(a)?(this.hd.remove(a),this.hd.Bd()&&(this.gg=!1)):this.Ua.length?(this.Ua[this.Ua.length-1].bd()>a.bd()&&(this.Bf=!1),this.Ua.push(a)):(this.Ua.push(a),this.Bf=!0)};k.prototype.remove=function(a){this.hd.add(a);
this.gg=!0;30<=this.hd.count()&&this.jk()};k.prototype.jk=function(){this.gg&&(this.hd.count()===this.Ua.length?this.reset():($a(this.Ua,this.hd),this.hd.clear(),this.gg=!1))};k.prototype.$r=function(){this.Bf||(this.Ua.sort(g),this.Bf=!0)};k.prototype.reset=function(){L(this.Ua);this.Bf=!0;this.hd.clear();this.gg=!1};k.prototype.dump=function(a){this.jk();this.$r();this.Ua.length&&a.push(this.Ua)};ca=k;var z="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");
jb=function(a){return 0>=a||11<=a?"source-over":z[a-1]};kb=function(a,b,e){if(e)switch(a.mb=e.ONE,a.hb=e.ONE_MINUS_SRC_ALPHA,b){case 1:a.mb=e.ONE;a.hb=e.ONE;break;case 3:a.mb=e.ONE;a.hb=e.ZERO;break;case 4:a.mb=e.ONE_MINUS_DST_ALPHA;a.hb=e.ONE;break;case 5:a.mb=e.DST_ALPHA;a.hb=e.ZERO;break;case 6:a.mb=e.ZERO;a.hb=e.SRC_ALPHA;break;case 7:a.mb=e.ONE_MINUS_DST_ALPHA;a.hb=e.ZERO;break;case 8:a.mb=e.ZERO;a.hb=e.ONE_MINUS_SRC_ALPHA;break;case 9:a.mb=e.DST_ALPHA;a.hb=e.ONE_MINUS_SRC_ALPHA;break;case 10:a.mb=
e.ONE_MINUS_DST_ALPHA,a.hb=e.SRC_ALPHA}};lb=function(a){return Math.round(1E6*a)/1E6};mb=function(a,b){return"string"!==typeof a||"string"!==typeof b||a.length!==b.length?!1:a===b?!0:a.toLowerCase()===b.toLowerCase()};nb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||mb(a.tagName,"canvas")?!0:!1}})();var jc="undefined"!==typeof Float32Array?Float32Array:Array;function kc(f){var p=new jc(3);f&&(p[0]=f[0],p[1]=f[1],p[2]=f[2]);return p}
function lc(f){var p=new jc(16);f&&(p[0]=f[0],p[1]=f[1],p[2]=f[2],p[3]=f[3],p[4]=f[4],p[5]=f[5],p[6]=f[6],p[7]=f[7],p[8]=f[8],p[9]=f[9],p[10]=f[10],p[11]=f[11],p[12]=f[12],p[13]=f[13],p[14]=f[14],p[15]=f[15]);return p}function mc(f,p){p[0]=f[0];p[1]=f[1];p[2]=f[2];p[3]=f[3];p[4]=f[4];p[5]=f[5];p[6]=f[6];p[7]=f[7];p[8]=f[8];p[9]=f[9];p[10]=f[10];p[11]=f[11];p[12]=f[12];p[13]=f[13];p[14]=f[14];p[15]=f[15]}
function nc(f,p){var m=p[0],q=p[1];p=p[2];f[0]*=m;f[1]*=m;f[2]*=m;f[3]*=m;f[4]*=q;f[5]*=q;f[6]*=q;f[7]*=q;f[8]*=p;f[9]*=p;f[10]*=p;f[11]*=p}
function oc(f,p,m,q){q||(q=lc());var t,r,h,b,c,d,a,e,k=f[0],g=f[1];f=f[2];r=m[0];h=m[1];t=m[2];m=p[1];d=p[2];k===p[0]&&g===m&&f===d?(f=q,f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1):(m=k-p[0],d=g-p[1],a=f-p[2],e=1/Math.sqrt(m*m+d*d+a*a),m*=e,d*=e,a*=e,p=h*a-t*d,t=t*m-r*a,r=r*d-h*m,(e=Math.sqrt(p*p+t*t+r*r))?(e=1/e,p*=e,t*=e,r*=e):r=t=p=0,h=d*r-a*t,b=a*p-m*r,c=m*t-d*p,(e=Math.sqrt(h*h+b*b+c*c))?(e=1/e,h*=e,b*=e,c*=e):c=b=h=0,
q[0]=p,q[1]=h,q[2]=m,q[3]=0,q[4]=t,q[5]=b,q[6]=d,q[7]=0,q[8]=r,q[9]=c,q[10]=a,q[11]=0,q[12]=-(p*k+t*g+r*f),q[13]=-(h*k+b*g+c*f),q[14]=-(m*k+d*g+a*f),q[15]=1)}
(function(){function f(b,c,d){this.Cd=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.fa=!!d;this.oi=this.Gg=!1;this.Zj=0;this.Fj=1;this.Yl=1E3;this.$u=(this.Yl-this.Fj)/32768;this.Qj=kc([0,0,100]);this.Pn=kc([0,0,0]);this.Hp=kc([0,1,0]);this.Ch=kc([1,1,1]);this.Wm=!0;this.Ki=lc();this.gc=lc();this.Sk=lc();this.Yj=lc();this.m=b;this.version=0===this.m.getParameter(this.m.VERSION).indexOf("WebGL 2")?2:1;this.un()}function p(b,c,d){this.m=b;this.qh=
c;this.name=d;this.uc=b.getAttribLocation(c,"aPos");this.qe=b.getAttribLocation(c,"aTex");this.Nn=b.getUniformLocation(c,"matP");this.Gi=b.getUniformLocation(c,"matMV");this.Hf=b.getUniformLocation(c,"opacity");this.Xk=b.getUniformLocation(c,"colorFill");this.On=b.getUniformLocation(c,"samplerFront");this.Vg=b.getUniformLocation(c,"samplerBack");this.We=b.getUniformLocation(c,"destStart");this.Ve=b.getUniformLocation(c,"destEnd");this.Xg=b.getUniformLocation(c,"seconds");this.Zk=b.getUniformLocation(c,
"pixelWidth");this.Yk=b.getUniformLocation(c,"pixelHeight");this.Ug=b.getUniformLocation(c,"layerScale");this.Tg=b.getUniformLocation(c,"layerAngle");this.Yg=b.getUniformLocation(c,"viewOrigin");this.Wg=b.getUniformLocation(c,"scrollPos");this.pt=!!(this.Zk||this.Yk||this.Xg||this.Vg||this.We||this.Ve||this.Ug||this.Tg||this.Yg||this.Wg);this.Xn=this.Yn=-999;this.Ji=1;this.Tn=this.Sn=0;this.Vn=this.Rn=this.Qn=1;this.ao=this.$n=this.Zn=this.co=this.bo=this.Un=0;this.Rk=[];this.Wn=lc();this.Hf&&b.uniform1f(this.Hf,
1);this.Xk&&b.uniform4f(this.Xk,1,1,1,1);this.On&&b.uniform1i(this.On,0);this.Vg&&b.uniform1i(this.Vg,1);this.We&&b.uniform2f(this.We,0,0);this.Ve&&b.uniform2f(this.Ve,1,1);this.Ug&&b.uniform1f(this.Ug,1);this.Tg&&b.uniform1f(this.Tg,0);this.Yg&&b.uniform2f(this.Yg,0,0);this.Wg&&b.uniform2f(this.Wg,0,0);this.Xg&&b.uniform1f(this.Xg,0);this.Oe=!1}function m(b,c){return b[0]===c[0]&&b[1]===c[1]&&b[2]===c[2]&&b[3]===c[3]&&b[4]===c[4]&&b[5]===c[5]&&b[6]===c[6]&&b[7]===c[7]&&b[8]===c[8]&&b[9]===c[9]&&
b[10]===c[10]&&b[11]===c[11]&&b[12]===c[12]&&b[13]===c[13]&&b[14]===c[14]&&b[15]===c[15]}function q(b,c){this.type=b;this.n=c;this.m=c.m;this.cd=this.sb=this.Bo=0;this.G=this.Cc=null;this.ip=[]}var t=lc();f.prototype.un=function(){var b=this.m,c;this.Hn=1;this.Se=this.me=null;this.Ph=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.STENCIL_TEST);b.disable(b.DITHER);this.fa?(b.enable(b.DEPTH_TEST),b.depthFunc(b.LEQUAL)):
b.disable(b.DEPTH_TEST);this.In=b.ONE;this.Gn=b.ONE_MINUS_SRC_ALPHA;this.Dj=new Float32Array(8E3*(this.fa?3:2));this.rj=new Float32Array(16E3);this.Mo=new Float32Array(32E3);this.ql=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.ql);b.bufferData(b.ARRAY_BUFFER,this.Mo.byteLength,b.DYNAMIC_DRAW);this.Bh=Array(4);this.xh=Array(4);for(c=0;4>c;c++)this.Bh[c]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Bh[c]),b.bufferData(b.ARRAY_BUFFER,this.Dj.byteLength,b.DYNAMIC_DRAW),this.xh[c]=b.createBuffer(),
b.bindBuffer(b.ARRAY_BUFFER,this.xh[c]),b.bufferData(b.ARRAY_BUFFER,this.rj.byteLength,b.DYNAMIC_DRAW);this.qd=0;this.ut=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.ut);for(var d=new Uint16Array(12E3),a=c=0;12E3>c;)d[c++]=a,d[c++]=a+1,d[c++]=a+2,d[c++]=a,d[c++]=a+2,d[c++]=a+3,a+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,d,b.STATIC_DRAW);this.rl=this.Yf=this.Rd=0;this.ta=[];c=this.fa?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";d=this.ng({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},c,"<default>");this.ta.push(d);d=this.ng({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.ta.push(d);d=this.ng({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},c,"<earlyz>");this.ta.push(d);d=this.ng({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
c,"<fill>");this.ta.push(d);for(var e in pc)pc.hasOwnProperty(e)&&this.ta.push(this.ng(pc[e],c,e));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.ae=[];this.pd=0;this.jb=!1;this.Sm=this.Pg=-1;this.of=null;this.ik=b.createFramebuffer();this.Th=this.bj=null;this.Dm=!1;this.fa&&(this.Th=b.createRenderbuffer());this.xe=kc([0,0,0]);this.eo=b.getParameter(b.ALIASED_POINT_SIZE_RANGE)[1];2048<this.eo&&(this.eo=2048);this.Eb(0)};p.prototype.Sl=function(b){m(this.Wn,b)||(mc(b,this.Wn),this.m.uniformMatrix4fv(this.Gi,
!1,b))};f.prototype.ng=function(b,c,d){var a=this.m,e=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(e,b.src);a.compileShader(e);if(!a.getShaderParameter(e,a.COMPILE_STATUS))throw b=a.getShaderInfoLog(e),a.deleteShader(e),Error("error compiling fragment shader: "+b);var k=a.createShader(a.VERTEX_SHADER);a.shaderSource(k,c);a.compileShader(k);if(!a.getShaderParameter(k,a.COMPILE_STATUS))throw b=a.getShaderInfoLog(k),a.deleteShader(e),a.deleteShader(k),Error("error compiling vertex shader: "+b);c=
a.createProgram();a.attachShader(c,e);a.attachShader(c,k);a.linkProgram(c);if(!a.getProgramParameter(c,a.LINK_STATUS))throw b=a.getProgramInfoLog(c),a.deleteShader(e),a.deleteShader(k),a.deleteProgram(c),Error("error linking shader program: "+b);a.useProgram(c);a.deleteShader(e);a.deleteShader(k);e=new p(a,c,d);e.gk=b.gk||0;e.hk=b.hk||0;e.Rm=!!b.Rm;e.Oc=!!b.Oc;e.zm=!!b.zm;e.H=b.H||[];b=0;for(k=e.H.length;b<k;b++)e.H[b][1]=a.getUniformLocation(c,e.H[b][0]),e.Rk.push(0),a.uniform1f(e.H[b][1],0);return e};
f.prototype.uk=function(b){var c,d;c=0;for(d=this.ta.length;c<d;c++)if(this.ta[c].name===b)return c;return-1};f.prototype.Po=function(b,c,d){var a=this.gc,e=this.Ki,k=[0,0,0,0,0,0,0,0];k[0]=a[0]*b+a[4]*c+a[12];k[1]=a[1]*b+a[5]*c+a[13];k[2]=a[2]*b+a[6]*c+a[14];k[3]=a[3]*b+a[7]*c+a[15];k[4]=e[0]*k[0]+e[4]*k[1]+e[8]*k[2]+e[12]*k[3];k[5]=e[1]*k[0]+e[5]*k[1]+e[9]*k[2]+e[13]*k[3];k[6]=e[2]*k[0]+e[6]*k[1]+e[10]*k[2]+e[14]*k[3];k[7]=-k[2];0!==k[7]&&(k[7]=1/k[7],k[4]*=k[7],k[5]*=k[7],k[6]*=k[7],d[0]=(.5*k[4]+
.5)*this.width,d[1]=(.5*k[5]+.5)*this.height)};f.prototype.Ld=function(b,c,d){if(this.width!==b||this.height!==c||d){this.ge();d=this.m;this.width=b;this.height=c;d.viewport(0,0,b,c);oc(this.Qj,this.Pn,this.Hp,this.gc);if(this.fa){var a=-b/2;b=b/2;var e=c/2;c=-c/2;var k=this.Fj,g=this.Yl,h=this.Ki;h||(h=lc());var f=b-a,u=c-e,l=g-k;h[0]=2/f;h[1]=0;h[2]=0;h[3]=0;h[4]=0;h[5]=2/u;h[6]=0;h[7]=0;h[8]=0;h[9]=0;h[10]=-2/l;h[11]=0;h[12]=-(a+b)/f;h[13]=-(c+e)/u;h[14]=-(g+k)/l;h[15]=1;this.Ch[0]=1;this.Ch[1]=
1}else c=b/c,a=this.Fj,b=this.Yl,h=this.Ki,g=a*Math.tan(45*Math.PI/360),c*=g,e=-c,k=-g,h||(h=lc()),f=c-e,u=g-k,l=b-a,h[0]=2*a/f,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=2*a/u,h[6]=0,h[7]=0,h[8]=(c+e)/f,h[9]=(g+k)/u,h[10]=-(b+a)/l,h[11]=-1,h[12]=0,h[13]=0,h[14]=-(b*a*2)/l,h[15]=0,a=[0,0],b=[0,0],this.Po(0,0,a),this.Po(1,1,b),this.Ch[0]=1/(b[0]-a[0]),this.Ch[1]=-1/(b[1]-a[1]);a=0;for(b=this.ta.length;a<b;a++)e=this.ta[a],e.Oe=!1,e.Nn&&(d.useProgram(e.qh),d.uniformMatrix4fv(e.Nn,!1,this.Ki));d.useProgram(this.ta[this.Pg].qh);
d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE1);d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE0);this.Se=this.me=null;this.Th&&(d.bindFramebuffer(d.FRAMEBUFFER,this.ik),d.bindRenderbuffer(d.RENDERBUFFER,this.Th),d.renderbufferStorage(d.RENDERBUFFER,d.DEPTH_COMPONENT16,this.width,this.height),this.Dm||(d.framebufferRenderbuffer(d.FRAMEBUFFER,d.DEPTH_ATTACHMENT,d.RENDERBUFFER,this.Th),this.Dm=!0),d.bindRenderbuffer(d.RENDERBUFFER,null),d.bindFramebuffer(d.FRAMEBUFFER,null),
this.bj=null)}};f.prototype.zc=function(){oc(this.Qj,this.Pn,this.Hp,this.gc);nc(this.gc,this.Ch)};f.prototype.translate=function(b,c){if(0!==b||0!==c){this.xe[0]=b;this.xe[1]=c;this.xe[2]=0;var d=this.gc,a=this.xe,e=a[0],k=a[1],a=a[2];d[12]=d[0]*e+d[4]*k+d[8]*a+d[12];d[13]=d[1]*e+d[5]*k+d[9]*a+d[13];d[14]=d[2]*e+d[6]*k+d[10]*a+d[14];d[15]=d[3]*e+d[7]*k+d[11]*a+d[15]}};f.prototype.scale=function(b,c){if(1!==b||1!==c)this.xe[0]=b,this.xe[1]=c,this.xe[2]=1,nc(this.gc,this.xe)};f.prototype.dj=function(b){if(0!==
b){var c=this.gc,d,a=Math.sin(b);b=Math.cos(b);var e=c[0],k=c[1],g=c[2],h=c[3],f=c[4],u=c[5],l=c[6],n=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*b+f*a;d[1]=k*b+u*a;d[2]=g*b+l*a;d[3]=h*b+n*a;d[4]=e*-a+f*b;d[5]=k*-a+u*b;d[6]=g*-a+l*b;d[7]=h*-a+n*b}};f.prototype.nc=function(){if(!m(this.Sk,this.gc)){var b=this.Sb();b.type=5;b.G?mc(this.gc,b.G):b.G=lc(this.gc);mc(this.gc,this.Sk);this.jb=!1}};f.prototype.ij=function(b){this.fa&&
(32760<b&&(b=32760),this.Zj=this.Qj[2]-this.Fj-b*this.$u)};q.prototype.Jr=function(){var b=this.m,c=this.n;0!==this.sb?(b.depthMask(!0),b.colorMask(!1,!1,!1,!1),b.disable(b.BLEND),b.bindFramebuffer(b.FRAMEBUFFER,c.ik),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.clear(b.DEPTH_BUFFER_BIT),b.bindFramebuffer(b.FRAMEBUFFER,null),c.oi=!0):(b.depthMask(!1),b.colorMask(!0,!0,!0,!0),b.enable(b.BLEND),c.oi=!1)};q.prototype.Nr=function(){this.m.bindTexture(this.m.TEXTURE_2D,
this.Cc)};q.prototype.Or=function(){var b=this.m;b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,this.Cc);b.activeTexture(b.TEXTURE0)};q.prototype.Kr=function(){var b=this.Bo,c=this.n;c.Ph=b;c=c.of;c.Hf&&c.Ji!==b&&(c.Ji=b,this.m.uniform1f(c.Hf,b))};q.prototype.Er=function(){this.m.drawElements(this.m.TRIANGLES,this.cd,this.m.UNSIGNED_SHORT,this.sb)};q.prototype.Gr=function(){this.m.blendFunc(this.sb,this.cd)};q.prototype.Pr=function(){var b,c,d,a=this.n.ta,e=this.n.Sm;b=0;for(c=a.length;b<
c;b++)d=a[b],b===e&&d.Gi?(d.Sl(this.G),d.Oe=!0):d.Oe=!1;mc(this.G,this.n.Yj)};q.prototype.Fr=function(){var b=this.m,c=this.n;this.Cc?(c.Se===this.Cc&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,null),c.Se=null,b.activeTexture(b.TEXTURE0)),b.bindFramebuffer(b.FRAMEBUFFER,c.ik),c.oi||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.Cc,0)):(c.fa||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.bindFramebuffer(b.FRAMEBUFFER,null))};
q.prototype.Br=function(){var b=this.m,c=this.sb;0===c?(b.clearColor(this.G[0],this.G[1],this.G[2],this.G[3]),b.clear(b.COLOR_BUFFER_BIT)):1===c?(b.enable(b.SCISSOR_TEST),b.scissor(this.G[0],this.G[1],this.G[2],this.G[3]),b.clearColor(0,0,0,0),b.clear(b.COLOR_BUFFER_BIT),b.disable(b.SCISSOR_TEST)):b.clear(b.DEPTH_BUFFER_BIT)};q.prototype.Ir=function(){var b=this.m;0!==this.sb?b.enable(b.DEPTH_TEST):b.disable(b.DEPTH_TEST)};q.prototype.Dr=function(){var b=this.m,c=this.n;c.fa&&b.disable(b.DEPTH_TEST);
var d=c.ta[1];b.useProgram(d.qh);!d.Oe&&d.Gi&&(d.Sl(c.Yj),d.Oe=!0);b.enableVertexAttribArray(d.uc);b.bindBuffer(b.ARRAY_BUFFER,c.ql);b.vertexAttribPointer(d.uc,4,b.FLOAT,!1,0,0);b.drawArrays(b.POINTS,this.sb/4,this.cd);d=c.of;b.useProgram(d.qh);0<=d.uc&&(b.enableVertexAttribArray(d.uc),b.bindBuffer(b.ARRAY_BUFFER,c.Bh[c.qd]),b.vertexAttribPointer(d.uc,c.fa?3:2,b.FLOAT,!1,0,0));0<=d.qe&&(b.enableVertexAttribArray(d.qe),b.bindBuffer(b.ARRAY_BUFFER,c.xh[c.qd]),b.vertexAttribPointer(d.qe,2,b.FLOAT,!1,
0,0));c.fa&&b.enable(b.DEPTH_TEST)};q.prototype.Lr=function(){var b=this.m,c=this.n,d=c.ta[this.sb];c.Sm=this.sb;c.of=d;b.useProgram(d.qh);!d.Oe&&d.Gi&&(d.Sl(c.Yj),d.Oe=!0);d.Hf&&d.Ji!==c.Ph&&(d.Ji=c.Ph,b.uniform1f(d.Hf,c.Ph));0<=d.uc&&(b.enableVertexAttribArray(d.uc),b.bindBuffer(b.ARRAY_BUFFER,c.Bh[c.qd]),b.vertexAttribPointer(d.uc,c.fa?3:2,b.FLOAT,!1,0,0));0<=d.qe&&(b.enableVertexAttribArray(d.qe),b.bindBuffer(b.ARRAY_BUFFER,c.xh[c.qd]),b.vertexAttribPointer(d.qe,2,b.FLOAT,!1,0,0))};q.prototype.Hr=
function(){var b=this.G;this.m.uniform4f(this.n.of.Xk,b[0],b[1],b[2],b[3])};q.prototype.Mr=function(){var b,c,d=this.n.of,a=this.m;b=this.G;d.Vg&&this.n.Se!==this.Cc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,this.Cc),this.n.Se=this.Cc,a.activeTexture(a.TEXTURE0));var e=b[0];d.Zk&&e!==d.Yn&&(d.Yn=e,a.uniform1f(d.Zk,e));e=b[1];d.Yk&&e!==d.Xn&&(d.Xn=e,a.uniform1f(d.Yk,e));e=b[2];c=b[3];!d.We||e===d.Sn&&c===d.Tn||(d.Sn=e,d.Tn=c,a.uniform2f(d.We,e,c));e=b[4];c=b[5];!d.Ve||e===d.Qn&&c===
d.Rn||(d.Qn=e,d.Rn=c,a.uniform2f(d.Ve,e,c));e=b[6];d.Ug&&e!==d.Vn&&(d.Vn=e,a.uniform1f(d.Ug,e));e=b[7];d.Tg&&e!==d.Un&&(d.Un=e,a.uniform1f(d.Tg,e));e=b[8];c=b[9];!d.Yg||e===d.bo&&c===d.co||(d.bo=e,d.co=c,a.uniform2f(d.Yg,e,c));e=b[10];c=b[11];!d.Wg||e===d.Zn&&c===d.$n||(d.Zn=e,d.$n=c,a.uniform2f(d.Wg,e,c));e=b[12];d.Xg&&e!==d.ao&&(d.ao=e,a.uniform1f(d.Xg,e));if(d.H.length)for(b=0,c=d.H.length;b<c;b++)e=this.ip[b],e!==d.Rk[b]&&(d.Rk[b]=e,a.uniform1f(d.H[b][1],e))};f.prototype.Sb=function(){this.pd===
this.ae.length&&this.ae.push(new q(0,this));return this.ae[this.pd++]};f.prototype.ge=function(){if(0!==this.pd&&!this.m.isContextLost()){var b=this.m;0<this.rl&&(b.bindBuffer(b.ARRAY_BUFFER,this.ql),b.bufferSubData(b.ARRAY_BUFFER,0,this.Mo.subarray(0,this.rl)),c&&0<=c.uc&&"<point>"===c.name&&b.vertexAttribPointer(c.uc,4,b.FLOAT,!1,0,0));if(0<this.Rd){var c=this.of;b.bindBuffer(b.ARRAY_BUFFER,this.Bh[this.qd]);b.bufferSubData(b.ARRAY_BUFFER,0,this.Dj.subarray(0,this.Rd));c&&0<=c.uc&&"<point>"!==c.name&&
b.vertexAttribPointer(c.uc,this.fa?3:2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.xh[this.qd]);b.bufferSubData(b.ARRAY_BUFFER,0,this.rj.subarray(0,this.Yf));c&&0<=c.qe&&"<point>"!==c.name&&b.vertexAttribPointer(c.qe,2,b.FLOAT,!1,0,0)}for(var d,b=0,c=this.pd;b<c;b++)switch(d=this.ae[b],d.type){case 1:d.Er();break;case 2:d.Nr();break;case 3:d.Kr();break;case 4:d.Gr();break;case 5:d.Pr();break;case 6:d.Fr();break;case 7:d.Br();break;case 8:d.Dr();break;case 9:d.Lr();break;case 10:d.Mr();break;
case 11:d.Or();break;case 12:d.Hr();break;case 13:d.Ir();break;case 14:d.Jr()}this.rl=this.Yf=this.Rd=this.pd=0;this.oi=this.jb=!1;this.qd++;4<=this.qd&&(this.qd=0)}};f.prototype.Uf=function(b){if(b!==this.Hn&&!this.Gg){var c=this.Sb();c.type=3;this.Hn=c.Bo=b;this.jb=!1}};f.prototype.kc=function(b){if(b!==this.me){var c=this.Sb();c.type=2;this.me=c.Cc=b;this.jb=!1}};f.prototype.ve=function(b,c){if((b!==this.In||c!==this.Gn)&&!this.Gg){var d=this.Sb();d.type=4;d.sb=b;d.cd=c;this.In=b;this.Gn=c;this.jb=
!1}};f.prototype.Zo=function(){this.ve(this.m.ONE,this.m.ONE_MINUS_SRC_ALPHA)};f.prototype.lh=function(b,c,d,a,e,k,g,h){15992<=this.Rd&&this.ge();var f=this.Rd,u=this.Yf,l=this.Dj,n=this.rj,F=this.Zj;if(this.jb)this.ae[this.pd-1].cd+=6;else{var p=this.Sb();p.type=1;p.sb=this.fa?f:f/2*3;p.cd=6;this.jb=!0}this.fa?(l[f++]=b,l[f++]=c,l[f++]=F,l[f++]=d,l[f++]=a,l[f++]=F,l[f++]=e,l[f++]=k,l[f++]=F,l[f++]=g,l[f++]=h,l[f++]=F):(l[f++]=b,l[f++]=c,l[f++]=d,l[f++]=a,l[f++]=e,l[f++]=k,l[f++]=g,l[f++]=h);n[u++]=
0;n[u++]=0;n[u++]=1;n[u++]=0;n[u++]=1;n[u++]=1;n[u++]=0;n[u++]=1;this.Rd=f;this.Yf=u};f.prototype.ue=function(b,c,d,a,e,k,g,h,f){15992<=this.Rd&&this.ge();var u=this.Rd,l=this.Yf,n=this.Dj,F=this.rj,p=this.Zj;if(this.jb)this.ae[this.pd-1].cd+=6;else{var m=this.Sb();m.type=1;m.sb=this.fa?u:u/2*3;m.cd=6;this.jb=!0}var m=f.left,r=f.top,q=f.right;f=f.bottom;this.fa?(n[u++]=b,n[u++]=c,n[u++]=p,n[u++]=d,n[u++]=a,n[u++]=p,n[u++]=e,n[u++]=k,n[u++]=p,n[u++]=g,n[u++]=h,n[u++]=p):(n[u++]=b,n[u++]=c,n[u++]=d,
n[u++]=a,n[u++]=e,n[u++]=k,n[u++]=g,n[u++]=h);F[l++]=m;F[l++]=r;F[l++]=q;F[l++]=r;F[l++]=q;F[l++]=f;F[l++]=m;F[l++]=f;this.Rd=u;this.Yf=l};f.prototype.Eb=function(b){if(this.Pg!==b){if(!this.ta[b]){if(0===this.Pg)return;b=0}var c=this.Sb();c.type=9;this.Pg=c.sb=b;this.jb=!1}};f.prototype.ih=function(b){b=this.ta[b];return!(!b.We&&!b.Ve)};f.prototype.tl=function(b){b=this.ta[b];return!!(b.We||b.Ve||b.Rm)};f.prototype.sl=function(b){return this.ta[b].Oc};f.prototype.ju=function(b){b=this.ta[b];return 0!==
b.gk||0!==b.hk};f.prototype.Xs=function(b){return this.ta[b].gk};f.prototype.Ys=function(b){return this.ta[b].hk};f.prototype.Zs=function(b,c){return this.ta[b].H[c][2]};f.prototype.Yi=function(b){return this.ta[b].zm};f.prototype.Vf=function(b,c,d,a,e,k,g,h,f,u,l,n,p,m,r){var q=this.ta[this.Pg],C,t;if(q.pt||r.length){C=this.Sb();C.type=10;C.G?mc(this.gc,C.G):C.G=lc();t=C.G;t[0]=c;t[1]=d;t[2]=a;t[3]=e;t[4]=k;t[5]=g;t[6]=h;t[7]=f;t[8]=u;t[9]=l;t[10]=n;t[11]=p;t[12]=m;q.Vg?C.Cc=b:C.Cc=null;if(r.length)for(d=
C.ip,d.length=r.length,b=0,c=r.length;b<c;b++)d[b]=r[b];this.jb=!1}};f.prototype.clear=function(b,c,d,a){var e=this.Sb();e.type=7;e.sb=0;e.G||(e.G=lc());e.G[0]=b;e.G[1]=c;e.G[2]=d;e.G[3]=a;this.jb=!1};f.prototype.clearRect=function(b,c,d,a){if(!(0>d||0>a)){var e=this.Sb();e.type=7;e.sb=1;e.G||(e.G=lc());e.G[0]=b;e.G[1]=c;e.G[2]=d;e.G[3]=a;this.jb=!1}};f.prototype.cp=function(b){if(this.fa&&(b=!!b,this.Gg!==b)){var c=this.Sb();c.type=14;c.sb=b?1:0;this.jb=!1;this.Gg=b;this.bj=null;this.Gg?this.Eb(2):
this.Eb(0)}};f.prototype.bp=function(b){if(this.fa){var c=this.Sb();c.type=13;c.sb=b?1:0;this.jb=!1}};f.prototype.hn=function(){mc(this.Sk,t);this.zc();this.nc();var b=this.width/2,c=this.height/2;this.lh(-b,c,b,c,b,-c,-b,-c);mc(t,this.gc);this.nc()};f.prototype.$o=function(b,c,d){this.Eb(3);var a=this.Sb();a.type=12;a.G||(a.G=lc());a.G[0]=b;a.G[1]=c;a.G[2]=d;a.G[3]=1;this.jb=!1};f.prototype.Gu=function(){this.Eb(0)};f.prototype.qu=function(){this.Eb(2)};f.prototype.iu=function(){this.ge();this.m.flush()};
var r=[],h={};f.prototype.pr=function(){L(r);h={}};f.prototype.Mn=function(b,c,d){var a;a=!1;c=!!c;var e=b.src+","+a+","+c+(a?",undefined":""),k=null;if("undefined"!==typeof b.src&&h.hasOwnProperty(e))return k=h[e],k.Jh++,k;this.ge();var g=this.m,f=ja(b.width)&&ja(b.height),k=g.createTexture();g.bindTexture(g.TEXTURE_2D,k);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var w=g.RGBA,u=g.RGBA,l=g.UNSIGNED_BYTE;if(d&&!this.Cd)switch(d){case 1:u=w=g.RGB;break;case 2:l=g.UNSIGNED_SHORT_4_4_4_4;break;
case 3:l=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:u=w=g.RGB,l=g.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!f&&a){d=document.createElement("canvas");d.width=ka(b.width);d.height=ka(b.height);var n=d.getContext("2d");"undefined"!==typeof n.imageSmoothingEnabled?n.imageSmoothingEnabled=c:(n.webkitImageSmoothingEnabled=c,n.mozImageSmoothingEnabled=c,n.msImageSmoothingEnabled=c);n.drawImage(b,0,0,b.width,b.height,0,0,d.width,d.height);g.texImage2D(g.TEXTURE_2D,0,w,u,l,d)}else g.texImage2D(g.TEXTURE_2D,0,
w,u,l,b);a?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE));c?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),(f||2<=this.version)&&this.Wm?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_LINEAR),g.generateMipmap(g.TEXTURE_2D)):g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,
g.LINEAR)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST));g.bindTexture(g.TEXTURE_2D,null);this.me=null;k.Ee=b.width;k.De=b.height;k.Jh=1;k.Lm=e;r.push(k);return h[e]=k};f.prototype.Zb=function(b,c,d,a){this.ge();var e=this.m;this.Cd&&(a=!1);var k=e.createTexture();e.bindTexture(e.TEXTURE_2D,k);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,b,c,0,e.RGBA,a?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.me=null;k.Ee=b;k.De=c;r.push(k);return k};f.prototype.Xu=function(b,c,d){this.ge();var a=this.m;this.Cd&&(d=!1);a.bindTexture(a.TEXTURE_2D,c);a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,
d?a.UNSIGNED_SHORT_4_4_4_4:a.UNSIGNED_BYTE,b)}catch(e){console&&console.error&&console.error("Error updating WebGL texture: ",e)}a.bindTexture(a.TEXTURE_2D,null);this.me=null};f.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.Jh&&1<b.Jh?b.Jh--:(this.ge(),b===this.me&&(this.m.bindTexture(this.m.TEXTURE_2D,null),this.me=null),b===this.Se&&(this.m.activeTexture(this.m.TEXTURE1),this.m.bindTexture(this.m.TEXTURE_2D,null),this.m.activeTexture(this.m.TEXTURE0),this.Se=null),Ea(r,b),"undefined"!==
typeof b.Lm&&delete h[b.Lm],this.m.deleteTexture(b)))};f.prototype.Ac=function(b){if(b!==this.bj){var c=this.Sb();c.type=6;this.bj=c.Cc=b;this.jb=!1}};ob=f})();
(function(){function f(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var b=this;this.ec=(this.pi=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2iscordova&&window.c2iscordova;this.kb=!!a.dc;this.zn="undefined"!==typeof window.AppMobi||
this.kb;this.tc=!!window.c2cocoonjs;this.Kc=!!window.c2ejecta;this.tc&&(CocoonJS.App.onSuspended.addEventListener(function(){b.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){b.setSuspended(!1)}));this.Kc&&(document.addEventListener("pagehide",function(){b.setSuspended(!0)}),document.addEventListener("pageshow",function(){b.setSuspended(!1)}),document.addEventListener("resize",function(){b.setSize(window.innerWidth,window.innerHeight)}));this.ua=this.kb||this.tc||this.Kc;this.Ig=
/edge\//i.test(navigator.userAgent);this.Cd=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Ig;this.Bn=/tizen/i.test(navigator.userAgent);this.Fg=/android/i.test(navigator.userAgent)&&!this.Bn&&!this.Cd&&!this.Ig;this.Fn=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Cd&&!this.Ig;this.Ht=/ipad/i.test(navigator.userAgent);this.Df=this.Fn||this.Ht||this.Kc;this.Ik=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.Cd&&!this.Ig;this.yn=/amazonwebappplatform/i.test(navigator.userAgent);this.zt=/firefox/i.test(navigator.userAgent);this.Ct=/safari/i.test(navigator.userAgent)&&!this.Ik&&!this.Cd&&!this.Ig;this.Dt=/windows/i.test(navigator.userAgent);this.Lk="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Dn=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.Ft=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Kg=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Pk=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.si=!!window.cr_windows10;this.Cn=this.Dn||this.Ft||this.Pk||this.si;this.yt=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.ni=this.Fg&&!this.Ik&&!this.pi&&!this.zt&&!this.yn&&!this.ua;this.devicePixelRatio=
1;this.Ed=this.ec||this.pi||this.zn||this.tc||this.Fg||this.Df||this.Kg||this.Pk||this.yt||this.Bn||this.Kc;this.Ed||(this.Ed=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.ri=!!(this.Df&&this.ec&&window.webkit);"undefined"===typeof cr_is_preview||this.Lk||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Lk=!0);this.canvas=a;this.Nm=document.getElementById("c2canvasdiv");
this.n=this.m=null;this.vk="(unavailable)";this.fa=!1;this.Ke=0;this.pa=null;this.ai=!1;this.to=this.uo=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.ontouchstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.kb&&(window.c2runtime=this);this.Lk&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();
return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.ni&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.u=this.width;this.r=this.height;this.Nh=this.width;this.qg=this.height;this.Ff=window.innerWidth;this.Ef=window.innerHeight;this.V=!0;this.Jg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.k=[];this.na=[];this.Vk={};this.Lc=[];this.fk={};
this.vd=[];this.eg=[];this.xj=[];this.er=[];this.fr=[];this.He={};this.Kk=this.je=!1;this.Dd=0;this.Jk=this.Nk=!1;this.Xc=[];this.Hg=!1;this.Ci=this.El="";this.Ja=null;this.Fd="";this.uh=this.lp=!1;this.$h=[];this.Je=this.Ie=0;this.jo=30;this.Xj=this.Zg=0;this.Zf=1;this.Sa=new cb;this.Sd=new cb;this.Ni=this.di=this.tg=this.Pd=this.Ue=this.kk=this.wi=0;this.jg=null;this.ck=[];this.ek=[];this.Vh=-1;this.$k=[[]];this.Ol=this.Hi=0;this.aj(null);this.ug=this.oo=this.bh=0;this.vh=[];this.Ll=this.wl=-1;
this.Ng=!0;this.Fi=0;this.qi=!1;this.Ju=0;this.lf=null;this.lb=this.ki=!1;this.so=new ba;this.fl=new ba;this.gl=new ba;this.Uo=[];new gb([]);new gb([]);this.kf=[];this.ji={};this.de={};this.Xd={};this.dg={};this.Im={};this.Ln=this.Bi=this.za=this.Ia=this.Kn=this.Ai=this.Z=null;this.ag=this.Qk=!1;this.lk=[null,null];this.uf=0;this.Zh="";this.Id={};this.rh=this.oe=null;this.np="";this.Mi=[];this.pu()}}function p(a,b){return 128>=b?a[3]:256>=b?a[2]:512>=b?a[1]:a[0]}function m(){try{return!!window.indexedDB}catch(a){return!1}}
function q(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function t(a,b,e,c){try{var g=indexedDB.open("_C2SaveStates");g.onupgradeneeded=q;g.onerror=c;g.onsuccess=function(g){g=g.target.result;g.onerror=c;g.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:b}).onsuccess=e}}catch(l){c(l)}}function r(a,b,e){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=q;c.onerror=e;c.onsuccess=function(c){c=c.target.result;c.onerror=e;var g=c.transaction(["saves"]).objectStore("saves").get(a);
g.onsuccess=function(){g.result?b(g.result.data):b(null)}}}catch(g){e(g)}}function h(){da("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function b(a){var b,e={};for(b in a)!a.hasOwnProperty(b)||a[b]instanceof ba||a[b]&&"undefined"!==typeof a[b].aw||"spriteCreatedDestroyCallback"!==b&&(e[b]=a[b]);return e}var c=window.requestAnimationFrame||window.mozRequestAnimationFrame||
window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;f.prototype.pu=function(){var a=this;if(this.ri)this.Hs(function(b){a.Sg(JSON.parse(b))},function(){alert("Error fetching data.js")});else{var b;this.Kg?b=new ActiveXObject("Microsoft.XMLHTTP"):b=new XMLHttpRequest;var e="data.js";if(this.Dn||this.Kg||this.Pk||this.si)e="data.json";b.open("GET",e,!0);var c=!1;if(!this.ua&&"response"in b&&"responseType"in b)try{b.responseType="json",c="json"===b.responseType}catch(g){c=
!1}if(!c&&"responseType"in b)try{b.responseType="text"}catch(l){}if("overrideMimeType"in b)try{b.overrideMimeType("application/json; charset=utf-8")}catch(k){}this.Kg?b.onreadystatechange=function(){4===b.readyState&&a.Sg(JSON.parse(b.responseText))}:(b.onload=function(){if(c)a.Sg(b.response);else if(a.Kc){var e=b.responseText,e=e.substr(e.indexOf("{"));a.Sg(JSON.parse(e))}else a.Sg(JSON.parse(b.responseText))},b.onerror=function(a){ea("Error requesting "+e+":");ea(a)});b.send()}};f.prototype.wt=
function(){var a=this,b,e,c,g,l,k,d,h,n;this.xf=(!this.ua||this.Kc||this.ec)&&this.Uu&&!this.ni;0===this.qb&&this.Df&&(this.xf=!1);this.devicePixelRatio=this.xf?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.fb();0<this.qb&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(b){b.preventDefault();a.Qt();da("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},
!1);this.canvas.addEventListener("webglcontextrestored",function(){a.n.un();a.n.Ld(a.n.width,a.n.height,!0);a.Ia=null;a.za=null;a.lk[0]=null;a.lk[1]=null;a.Rt();a.V=!0;da("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.Yr&&(this.tc||this.Kc||!this.ua)&&(b={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.Fg||(this.m=this.canvas.getContext("webgl2",b)),this.m||(this.m=this.canvas.getContext("webgl",b)||this.canvas.getContext("experimental-webgl",
b)))}catch(f){}if(this.m){if(b=this.m.getExtension("WEBGL_debug_renderer_info"))this.vk=this.m.getParameter(b.UNMASKED_RENDERER_WEBGL)+" ["+this.m.getParameter(b.UNMASKED_VENDOR_WEBGL)+"]";this.fa&&(this.vk+=" [front-to-back enabled]");this.ua||(this.cb=document.createElement("canvas"),jQuery(this.cb).appendTo(this.canvas.parentNode),this.cb.oncontextmenu=function(){return!1},this.cb.onselectstart=function(){return!1},this.cb.width=Math.round(this.Nh*this.devicePixelRatio),this.cb.height=Math.round(this.qg*
this.devicePixelRatio),jQuery(this.cb).css({width:this.Nh+"px",height:this.qg+"px"}),this.No(),this.pl=this.cb.getContext("2d"));this.n=new ob(this.m,this.Ed,this.fa);this.n.Ld(this.canvas.width,this.canvas.height);this.n.Wm=0!==this.Qr;this.pa=null;b=0;for(e=this.k.length;b<e;b++)for(l=this.k[b],c=0,g=l.D.length;c<g;c++)d=l.D[c],d.Ca=this.n.uk(d.id),d.Oc=this.n.sl(d.Ca),this.ag=this.ag||this.n.ih(d.Ca);b=0;for(e=this.Lc.length;b<e;b++){h=this.Lc[b];c=0;for(g=h.D.length;c<g;c++)d=h.D[c],d.Ca=this.n.uk(d.id),
d.Oc=this.n.sl(d.Ca);h.Sc();c=0;for(g=h.F.length;c<g;c++){n=h.F[c];l=0;for(k=n.D.length;l<k;l++)d=n.D[l],d.Ca=this.n.uk(d.id),d.Oc=this.n.sl(d.Ca),this.ag=this.ag||this.n.ih(d.Ca);n.Sc()}}}else{if(0<this.qb&&this.kb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.pa=AppMobi.canvas.getContext("2d");try{this.pa.samplingMode=this.wa?"smooth":"sharp",this.pa.globalScale=1,this.pa.HTML5CompatibilityMode=!0,this.pa.imageSmoothingEnabled=this.wa}catch(u){}0!==
this.width&&0!==this.height&&(this.pa.width=this.width,this.pa.height=this.height)}this.pa||(this.tc?(b={antialias:!!this.wa,alpha:!0},this.pa=this.canvas.getContext("2d",b)):(b={alpha:!0},this.pa=this.canvas.getContext("2d",b)),this.hj(this.pa,this.wa));this.pl=this.cb=null}this.xp=function(b){a.tb(!1,b)};window==window.top||this.ua||this.Cn||this.Kg||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==
typeof cr_is_preview&&(this.tc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(da("Reloading for continuous preview"),this.Ci="__c2_continuouspreview",this.uh=!0),this.au&&!this.Ed&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var b=window.parent;b&&b.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.Nf()});this.ua||(b=function(a){if(nb(a)&&document.activeElement&&
document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(b){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",b):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",b):document.addEventListener("touchstart",b),document.addEventListener("mousedown",b));0===this.qb&&this.xf&&1<this.devicePixelRatio&&this.setSize(this.La,this.Ka,!0);this.Dp();this.mt();this.go();this.P={}};
f.prototype.setSize=function(a,b,e){var c=0,g=0,l=0,k=0,k=0;if(this.Ff!==a||this.Ef!==b||e){this.Ff=a;this.Ef=b;var d=this.qb;if((l=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.qi)&&!this.ec)||0!==this.qb||e)l&&(d=this.uf),e=this.devicePixelRatio,4<=d?(l=this.La/this.Ka,a/b>l?(l*=b,5===d?(k=l*e/this.La,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),l=this.La*k/e,k=this.Ka*k/e,c=(a-l)/2,g=(b-k)/2,a=l,b=k):(c=(a-l)/2,a=l)):(k=a/l,5===
d?(k=k*e/this.Ka,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),l=this.La*k/e,k=this.Ka*k/e,c=(a-l)/2,g=(b-k)/2,a=l):g=(b-k)/2,b=k)):l&&0===d&&(c=Math.floor((a-this.La)/2),g=Math.floor((b-this.Ka)/2),a=this.La,b=this.Ka),2>d&&(this.ig=e),this.Nh=Math.round(a),this.qg=Math.round(b),this.width=Math.round(a*e),this.height=Math.round(b*e),this.V=!0,this.Np?(this.u=this.width,this.r=this.height,this.$b=!0):this.width<this.La&&this.height<this.Ka||1===d?(this.u=this.width,this.r=this.height,this.$b=!0):
(this.u=this.La,this.r=this.Ka,this.$b=!1,2===d?(l=this.La/this.Ka,d=this.Ff/this.Ef,d<l?this.u=this.r*d:d>l&&(this.r=this.u/d)):3===d&&(l=this.La/this.Ka,d=this.Ff/this.Ef,d>l?this.u=this.r*d:d<l&&(this.r=this.u/d))),this.Nm&&!this.ua&&(jQuery(this.Nm).css({width:Math.round(a)+"px",height:Math.round(b)+"px","margin-left":Math.floor(c)+"px","margin-top":Math.floor(g)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(b)+"px"})),this.canvas&&
(this.canvas.width=Math.round(a*e),this.canvas.height=Math.round(b*e),this.Kc?(this.canvas.style.left=Math.floor(c)+"px",this.canvas.style.top=Math.floor(g)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px"):this.xf&&!this.ua&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px")),this.cb&&(this.cb.width=Math.round(a*e),this.cb.height=Math.round(b*e),this.cb.style.width=this.Nh+"px",this.cb.style.height=this.qg+"px"),this.n&&
this.n.Ld(Math.round(a*e),Math.round(b*e)),this.kb&&this.pa&&(this.pa.width=Math.round(a),this.pa.height=Math.round(b)),this.pa&&this.hj(this.pa,this.wa),this.Dp(),this.Fn&&!this.ec&&window.scrollTo(0,0)}};f.prototype.Dp=function(){if(this.hr&&0!==this.ol){var a="portrait";2===this.ol&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):
screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(b){console&&console.warn&&console.warn("Failed to lock orientation: ",b)}}};f.prototype.Qt=function(){this.n.pr();this.Qk=!0;var a,b,e;a=0;for(b=this.k.length;a<b;a++)e=this.k[a],e.il&&e.il()};f.prototype.Rt=function(){this.Qk=!1;var a,b,e;a=0;for(b=this.k.length;a<b;a++)e=this.k[a],e.yo&&e.yo()};f.prototype.No=function(){if(!this.ua){var a=(document.mozFullScreen||document.webkitIsFullScreen||
document.fullScreen||document.msFullscreenElement||this.qi)&&!this.ec?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.cb).css(a)}};var d=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;f.prototype.setSuspended=function(a){var b;if(a&&!this.Jg)for(da("[Construct 2] Suspending"),this.Jg=!0,-1!==this.wl&&d&&d(this.wl),-1!==this.Ll&&clearTimeout(this.Ll),
a=0,b=this.vh.length;a<b;a++)this.vh[a](!0);else if(!a&&this.Jg){da("[Construct 2] Resuming");this.Jg=!1;this.wi=Za();this.Ue=Za();a=this.Zg=this.di=0;for(b=this.vh.length;a<b;a++)this.vh[a](!1);this.tb(!1)}};f.prototype.xm=function(a){this.vh.push(a)};f.prototype.Vd=function(a){return this.Mi[a]};f.prototype.Sg=function(a){a&&a.project||ea("Project model unavailable");a=a.project;this.name=a[0];this.cn=a[1];this.qb=a[12];this.La=a[10];this.Ka=a[11];this.Io=this.La/2;this.Jo=this.Ka/2;this.ua&&!this.Kc&&
(4<=a[12]||0===a[12])&&(da("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.qb=3);this.Ul=a[18];this.pe=a[19];if(0===this.pe){var b=new Image;b.crossOrigin="anonymous";this.dp(b,"loading-logo.png");this.oe={Ii:b}}else if(4===this.pe){b=new Image;b.src="";var e=new Image;e.src="";var c=new Image;c.src="";var g=new Image;g.src="";var l=new Image;l.src="";var k=new Image;k.src="";var d=new Image;d.src="";var h=new Image;h.src="";
var n=new Image;n.src="";var f=new Image;f.src="";var u=new Image;u.src="";var x=new Image;x.src="";this.oe={Ii:[b,e,c,g],fu:[l,k,d,h],Zu:[n,f,u,x]}}this.bh=a[21];this.Mi=qc();this.ld=new U(this);b=0;for(e=a[2].length;b<e;b++)d=a[2][b],c=this.Vd(d[0]),pb(d,c.prototype),h=new c(this),h.mj=d[1],h.le=d[2],h.fw=d[5],h.lo=d[9],h.ja&&h.ja(),this.plugins.push(h);this.Mi=qc();b=0;for(e=a[3].length;b<e;b++){d=a[3][b];l=this.Vd(d[1]);h=null;c=0;for(g=this.plugins.length;c<g;c++)if(this.plugins[c]instanceof
l){h=this.plugins[c];break}n=new h.xb(h);n.name=d[0];n.J=d[2];n.Gk=d[3].slice(0);n.Wu=d[3].length;n.ir=d[4];n.Ls=d[5];n.K=d[11];n.J?(n.io=[],n.wd=this.ug++,n.la=null):(n.io=null,n.wd=-1,n.la=[]);n.Xh=null;n.sf=null;n.Xm=null;n.fc=!1;n.Jb=null;d[6]?(n.up=d[6][0],n.vp=d[6][1],n.Nu=d[6][2]):(n.up=null,n.vp=0,n.Nu=0);d[7]?n.Ib=d[7]:n.Ib=null;n.index=b;n.d=[];n.Rh=[];n.Od=[new qb(n)];n.Yc=0;n.Zc=null;n.xr=0;n.Xf=!0;n.yj=rb;n.Qs=sb;n.Vs=tb;n.ba=ub;n.kh=zb;n.$i=Ab;n.$e=Bb;n.fi=Cb;n.nk=Db;n.pk=Eb;n.$d=Fb;
n.rk=Gb;n.Pm=new hb(this.La,this.Ka);n.Am=!0;n.Bm=!1;n.P={};n.toString=Hb;n.na=[];c=0;for(g=d[8].length;c<g;c++){f=d[8][c];u=this.Vd(f[1]);x=null;l=0;for(k=this.na.length;l<k;l++)if(this.na[l]instanceof u){x=this.na[l];break}x||(x=new u(this),x.mo=[],x.dl=new ba,x.ja&&x.ja(),this.na.push(x));-1===x.mo.indexOf(n)&&x.mo.push(n);l=new x.xb(x,n);l.name=f[0];l.K=f[2];l.ja();n.na.push(l)}n.global=d[9];n.Mk=d[10];n.D=[];c=0;for(g=d[12].length;c<g;c++)n.D.push({id:d[12][c][0],name:d[12][c][1],Ca:-1,Oc:!1,
Tb:!0,index:c});n.vw=d[13];this.Ul&&!n.J&&!n.Mk&&h.le||n.ja();n.name&&(this.types[n.name]=n);this.k.push(n);h.mj&&(c=new h.Xa(n),c.uid=this.bh++,c.Ro=this.oo++,c.Qe=0,c.zg=Ib,c.toString=Jb,c.U=d[14],c.ja(),n.d.push(c),this.Id[c.uid.toString()]=c)}b=0;for(e=a[4].length;b<e;b++)for(l=a[4][b],k=this.k[l[0]],c=1,g=l.length;c<g;c++)d=this.k[l[c]],d.la.push(k),k.io.push(d);b=0;for(e=a[28].length;b<e;b++){l=a[28][b];k=[];c=0;for(g=l.length;c<g;c++)k.push(this.k[l[c]]);c=0;for(g=k.length;c<g;c++)k[c].fc=
!0,k[c].Jb=k}if(0<this.ug)for(b=0,e=this.k.length;b<e;b++)if(d=this.k[b],!d.J&&d.la.length){d.Xh=Array(this.ug);d.sf=Array(this.ug);d.Xm=Array(this.ug);n=[];c=x=u=f=0;for(g=d.la.length;c<g;c++)for(h=d.la[c],d.Xh[h.wd]=f,f+=h.Wu,d.sf[h.wd]=u,u+=h.ir,d.Xm[h.wd]=x,x+=h.Ls,l=0,k=h.D.length;l<k;l++)n.push(ya({},h.D[l]));d.D=n.concat(d.D);c=0;for(g=d.D.length;c<g;c++)d.D[c].index=c}b=0;for(e=a[5].length;b<e;b++)d=a[5][b],c=new Kb(this,d),this.Vk[c.name]=c,this.Lc.push(c);b=0;for(e=a[6].length;b<e;b++)d=
a[6][b],c=new Lb(this,d),this.fk[c.name]=c,this.vd.push(c);b=0;for(e=this.vd.length;b<e;b++)this.vd[b].xa();b=0;for(e=this.vd.length;b<e;b++)this.vd[b].Rl();b=0;for(e=this.xj.length;b<e;b++)this.xj[b].xa();L(this.xj);this.gr=a[7];this.Zh=a[8];this.Jd=a[9];this.ig=1;this.Yr=a[13];this.wa=a[14];this.Om=a[15];this.Uu=a[17];this.ol=a[20];this.hr=0<this.ol;this.au=a[22];this.$b=this.Np=a[23];this.Qr=a[24];this.gu=a[25];this.fa=a[27]&&!this.Cd;this.nj=Date.now();L(this.Mi);this.wt()};var a=!1,e=0,k=[];
f.prototype.lu=function(a,b){function c(){e--;g.fo()}var g=this;a.addEventListener("load",c);a.addEventListener("error",c);k.push([a,b]);this.fo()};f.prototype.fo=function(){for(var a;k.length&&100>e;)e++,a=k.shift(),this.dp(a[0],a[1])};f.prototype.Yu=function(b,e){b.cocoonLazyLoad=!0;b.onerror=function(e){a=b.Km=!0;console&&console.error&&console.error("Error loading image '"+b.src+"': ",e)};this.Kc?b.src=e:b.src||("undefined"!==typeof XAPKReader?XAPKReader.get(e,function(a){b.src=a},function(c){a=
b.Km=!0;console&&console.error&&console.error("Error extracting image '"+e+"' from expansion file: ",c)}):(b.crossOrigin="anonymous",this.lu(b,e)));this.eg.push(b)};f.prototype.Js=function(a){var b,e;b=0;for(e=this.eg.length;b<e;b++)if(this.eg[b].rr===a)return this.eg[b];return null};var g=0,x=!1;f.prototype.mt=function(){this.lf&&(g=this.lf.Eu(this.gr))};f.prototype.Cm=function(){var a=g,b=0,e=0,c=!0,l,k,e=0;for(l=this.eg.length;e<l;e++){k=this.eg[e];var d=k.qr;if(!d||0>=d)d=5E4;a+=d;k.src&&(k.complete||
k.loaded)&&!k.Km?b+=d:c=!1}c&&this.gu&&this.lf&&(x||(this.lf.Ku(),x=!0),e=this.lf.Ws(),b+=e,e<g&&(c=!1));this.Pc=0==a?1:b/a;return c};var w=!1;f.prototype.go=function(){if(this.pa||this.n){var b=this.pa||this.pl;this.cb&&this.No();var e=window.innerWidth,g=window.innerHeight;this.Ff===e&&this.Ef===g||this.setSize(e,g);this.Pc=0;this.Jn=-1;var l=this;if(this.Cm()&&(4!==this.pe||w))this.nt();else{g=Date.now()-this.nj;if(b){var k=this.width,d=this.height,e=this.devicePixelRatio;if(3>this.pe&&(this.tc||
500<=g&&this.Jn!=this.Pc)){b.clearRect(0,0,k,d);var g=k/2,d=d/2,k=0===this.pe&&this.oe.Ii.complete,n=40*e,h=0,f=80*e,u;if(k){var x=this.oe.Ii,f=x.width*e;u=x.height*e;n=f/2;h=u/2;b.drawImage(x,sa(g-n),sa(d-h),f,u)}1>=this.pe?(g=sa(g-n)+.5,d=sa(d+(h+(k?12*e:0)))+.5,b.fillStyle=a?"red":"DodgerBlue",b.fillRect(g,d,Math.floor(f*this.Pc),6*e),b.strokeStyle="black",b.strokeRect(g,d,f,6*e),b.strokeStyle="white",b.strokeRect(g-1*e,d-1*e,f+2*e,8*e)):2===this.pe&&(b.font=this.Kc?"12pt ArialMT":"12pt Arial",
b.fillStyle=a?"#f00":"#999",b.uw="middle",e=Math.round(100*this.Pc)+"%",k=b.measureText?b.measureText(e):null,b.fillText(e,g-(k?k.width:0)/2,d));this.Jn=this.Pc}else if(4===this.pe){this.Vr(b);c?c(function(){l.go()}):setTimeout(function(){l.go()},16);return}}setTimeout(function(){l.go()},this.tc?10:100)}}};var u=-1,l="undefined"===typeof cr_is_preview?200:0,n=!0,F=!1,W=0,ua=0,X="undefined"===typeof cr_is_preview?3E3:0,C=null,P=null,z=0;f.prototype.Vr=function(b){if(!w){for(var e=Math.ceil(this.width),
c=Math.ceil(this.height),g=this.oe.Ii,k=this.oe.fu,d=this.oe.Zu,h=0;4>h;++h)if(!g[h].complete||!k[h].complete||!d[h].complete)return;0===z&&(u=Date.now());var h=Date.now(),f=!1,x=b,m,r;n||F?(b.clearRect(0,0,e,c),C&&C.width===e&&C.height===c||(C=document.createElement("canvas"),C.width=e,C.height=c,P=C.getContext("2d")),x=P,f=!0,n&&1===z&&(u=Date.now())):b.globalAlpha=1;x.fillStyle="#333333";x.fillRect(0,0,e,c);256<this.qg?(m=Fa(.22*c,105,.6*e),r=.25*m,x.drawImage(p(k,m),.5*e-m/2,.2*c-r/2,m,r),r=m=
Math.min(.395*c,.95*e),x.drawImage(p(g,m),.5*e-m/2,.485*c-r/2,m,r),m=Fa(.22*c,105,.6*e),r=.25*m,x.drawImage(p(d,m),.5*e-m/2,.868*c-r/2,m,r),x.fillStyle="#3C3C3C",m=e,r=Math.max(.005*c,2),x.fillRect(0,.8*c-r/2,m,r),x.fillStyle=a?"red":"#E0FF65",m=e*this.Pc,x.fillRect(.5*e-m/2,.8*c-r/2,m,r)):(r=m=.55*c,x.drawImage(p(g,m),.5*e-m/2,.45*c-r/2,m,r),x.fillStyle="#3C3C3C",m=e,r=Math.max(.005*c,2),x.fillRect(0,.85*c-r/2,m,r),x.fillStyle=a?"red":"#E0FF65",m=e*this.Pc,x.fillRect(.5*e-m/2,.85*c-r/2,m,r));f&&
(n?b.globalAlpha=0===z?0:Math.min((h-u)/300,1):F&&(b.globalAlpha=Math.max(1-(h-ua)/300,0)),b.drawImage(C,0,0,e,c));n&&300<=h-u&&2<=z&&(n=!1,W=h);!n&&h-W>=X&&!F&&1<=this.Pc&&(F=!0,ua=h);if(F&&h-ua>=300+l||"undefined"!==typeof cr_is_preview&&1<=this.Pc&&500>Date.now()-u)w=!0,F=n=!1,this.oe=P=C=null;++z}};f.prototype.nt=function(){this.cb&&(this.canvas.parentNode.removeChild(this.cb),this.cb=this.pl=null);this.nj=Date.now();this.Ue=Za();var a,b,e;if(this.Ul)for(a=0,b=this.k.length;a<b;a++)e=this.k[a],
e.J||e.Mk||!e.ma.le||e.ja();else this.Ng=!1;a=0;for(b=this.Lc.length;a<b;a++)this.Lc[a].sr();2<=this.qb&&(a=this.La/this.Ka,b=this.width/this.height,this.ig=2!==this.qb&&b>a||2===this.qb&&b<a?this.height/this.Ka:this.width/this.La);this.cn?this.Vk[this.cn].Il():this.Lc[0].Il();this.Ul||(this.Fi=1,this.trigger(U.prototype.e.dm,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(b=this.k.length;a<b;a++)e=this.k[a],
e.vo&&e.vo();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.tb(!1);this.kb&&AppMobi.webview.execute("onGameReady();")};f.prototype.tb=function(a,b,e){if(this.Z){var g=Za();if(e||!this.Jg||a){a||(c?this.wl=c(this.xp):this.Ll=setTimeout(this.xp,this.Ed?1:16));b=b||g;var l=this.qb;((e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.ec)||this.qi)&&0<this.uf&&(l=this.uf);if(0<
l){var l=window.innerWidth,k=window.innerHeight;this.Ff===l&&this.Ef===k||this.setSize(l,k)}this.ua||(e?this.ai||(this.ai=!0):this.ai?(this.ai=!1,0===this.qb&&this.setSize(Math.round(this.uo/this.devicePixelRatio),Math.round(this.to/this.devicePixelRatio),!0)):(this.uo=this.width,this.to=this.height));this.Ng&&(e=this.Cm(),this.Fi=this.Pc,e&&(this.Ng=!1,this.Pc=1,this.trigger(U.prototype.e.dm,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.Lt(b);!this.V&&!this.tc||this.Qk||this.uh||a||(this.V=
!1,this.n?this.sc():this.ud(),this.rh&&(this.canvas&&this.canvas.toDataURL&&(this.np=this.canvas.toDataURL(this.rh[0],this.rh[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.np),this.trigger(U.prototype.e.oq,null)),this.rh=null));this.ew||(this.Pd++,this.tg++,this.di++);this.Zg+=Za()-g}}};f.prototype.Lt=function(a){var b,e,c,g,l,k,d,n;1E3<=a-this.Ue&&(this.Ue+=1E3,1E3<=a-this.Ue&&(this.Ue=a),this.kk=this.di,this.di=0,this.Xj=this.Zg,this.Zg=0);b=0;0!==this.wi&&(b=a-this.wi,0>b&&(b=0),this.Je=
b/=1E3,.5<this.Je?this.Je=0:this.Je>1/this.jo&&(this.Je=1/this.jo));this.wi=a;this.Ie=this.Je*this.Zf;this.Sa.add(this.Ie);this.Sd.add(b);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.qi)&&!this.ec;2<=this.qb||a&&0<this.uf?(b=this.La/this.Ka,e=this.width/this.height,c=this.qb,a&&0<this.uf&&(c=this.uf),this.ig=2!==c&&e>b||2===c&&e<b?this.height/this.Ka:this.width/this.La,this.Z&&(this.Z.Xo(this.Z.scrollX),this.Z.Yo(this.Z.scrollY))):
this.ig=this.xf?this.devicePixelRatio:1;this.fb();this.Dd++;this.ld.uu();this.Dd--;this.fb();this.Dd++;e=this.so.ye();a=0;for(b=e.length;a<b;a++)e[a].ow();a=0;for(b=this.k.length;a<b;a++)if(k=this.k[a],!k.J&&(k.na.length||k.la.length))for(e=0,c=k.d.length;e<c;e++)for(d=k.d[e],g=0,l=d.C.length;g<l;g++)d.C[g].tb();a=0;for(b=this.k.length;a<b;a++)if(k=this.k[a],!k.J&&(k.na.length||k.la.length))for(e=0,c=k.d.length;e<c;e++)for(d=k.d[e],g=0,l=d.C.length;g<l;g++)n=d.C[g],n.eu&&n.eu();e=this.fl.ye();a=0;
for(b=e.length;a<b;a++)e[a].tb();this.Dd--;this.ot();for(a=0;this.jg&&10>a++;)this.Vm(this.jg);a=0;for(b=this.vd.length;a<b;a++)this.vd[a].zk=!1;this.Z.Le&&this.Z.Le.Ba();L(this.Uo);this.Dd++;a=0;for(b=this.k.length;a<b;a++)if(k=this.k[a],!k.J&&(k.na.length||k.la.length))for(e=0,c=k.d.length;e<c;e++)for(d=k.d[e],g=0,l=d.C.length;g<l;g++)n=d.C[g],n.Kl&&n.Kl();e=this.gl.ye();a=0;for(b=e.length;a<b;a++)e[a].Kl();this.Dd--};f.prototype.Nf=function(){var a,b,e,c,g,l,k,d,n;a=0;for(b=this.k.length;a<b;a++)if(k=
this.k[a],!k.J)for(e=0,c=k.d.length;e<c;e++)if(d=k.d[e],d.Nf&&d.Nf(),d.C)for(g=0,l=d.C.length;g<l;g++)n=d.C[g],n.Nf&&n.Nf()};f.prototype.Vm=function(a){var b=this.Z;this.Z.Lu();var e,c,g;if(this.n)for(e=0,c=this.k.length;e<c;e++)g=this.k[e],g.J||!g.Gp||g.global&&0!==g.d.length||-1!==a.Eg.indexOf(g)||g.Gp();b==a&&L(this.ld.Fb);L(this.Uo);this.Vo(!0);a.Il();this.Vo(!1);this.V=!0;this.fb()};f.prototype.Vo=function(a){var b,e,c,g,l,k,d,n,h;b=0;for(e=this.na.length;b<e;b++)c=this.na[b],a?c.dh&&c.dh():
c.fh&&c.fh();b=0;for(e=this.k.length;b<e;b++)if(c=this.k[b],c.global||c.ma.mj)for(g=0,l=c.d.length;g<l;g++)if(k=c.d[g],a?k.dh&&k.dh():k.fh&&k.fh(),k.C)for(d=0,n=k.C.length;d<n;d++)h=k.C[d],a?h.dh&&h.dh():h.fh&&h.fh()};f.prototype.tj=function(a){this.fl.add(a)};f.prototype.Ou=function(a){this.gl.add(a)};f.prototype.mn=function(a){return a&&-1!==a.ah?this.Je*a.ah:this.Ie};f.prototype.ud=function(){this.Z.ud(this.pa);this.kb&&this.pa.present()};f.prototype.sc=function(){this.fa&&(this.Ke=1,this.Z.pf(this.n));
this.Z.sc(this.n);this.n.iu()};f.prototype.cr=function(a){a&&this.ck.push(a)};f.prototype.hi=function(a){a=a.toString();return this.Id.hasOwnProperty(a)?this.Id[a]:null};var N=[];f.prototype.ze=function(a){var b,e;b=a.type.name;var c=null;if(this.He.hasOwnProperty(b)){if(c=this.He[b],c.contains(a))return}else c=N.length?N.pop():new ba,this.He[b]=c;c.add(a);this.je=!0;if(a.fc)for(b=0,e=a.siblings.length;b<e;b++)this.ze(a.siblings[b]);this.Kk&&c.bg.push(a);this.Jk||(this.Dd++,this.trigger(Object.getPrototypeOf(a.type.ma).e.pq,
a),this.Dd--)};f.prototype.fb=function(){if(this.je){var a,b,e,c,g,l;this.Kk=!0;e=0;for(g=this.Xc.length;e<g;++e)for(a=this.Xc[e],b=a.type,b.d.push(a),c=0,l=b.la.length;c<l;++c)b.la[c].d.push(a),b.la[c].Xf=!0;L(this.Xc);this.jq();Ya(this.He);this.je=this.Kk=!1}};f.prototype.jq=function(){for(var a in this.He)this.He.hasOwnProperty(a)&&this.Tp(this.He[a])};f.prototype.Tp=function(a){var b=a.ye(),e=b[0].type,c,g,l,k,d,n;$a(e.d,a);e.Xf=!0;0===e.d.length&&(e.Bm=!1);c=0;for(g=e.la.length;c<g;++c)n=e.la[c],
$a(n.d,a),n.Xf=!0;c=0;for(g=this.ld.Fb.length;c<g;++c)if(d=this.ld.Fb[c],d.rb.hasOwnProperty(e.index)&&$a(d.rb[e.index].Ad,a),!e.J)for(l=0,k=e.la.length;l<k;++l)n=e.la[l],d.rb.hasOwnProperty(n.index)&&$a(d.rb[n.index].Ad,a);if(d=b[0].i){if(d.oc)for(l=d.d,c=0,g=l.length;c<g;++c)k=l[c],a.contains(k)&&(k.Na(),d.eb.update(k,k.Ab,null),k.Ab.set(0,0,-1,-1));$a(d.d,a);d.oh(0)}for(c=0;c<b.length;++c)this.Sp(b[c],e);a.clear();N.push(a);this.V=!0};f.prototype.Sp=function(a,b){var e,c,g;e=0;for(c=this.ck.length;e<
c;++e)this.ck[e](a);a.ee&&b.Pm.update(a,a.ee,null);(e=a.i)&&e.Sf(a,!0);if(a.C)for(e=0,c=a.C.length;e<c;++e)g=a.C[e],g.eh&&g.eh(),g.behavior.dl.remove(a);this.so.remove(a);this.fl.remove(a);this.gl.remove(a);a.eh&&a.eh();this.Id.hasOwnProperty(a.uid.toString())&&delete this.Id[a.uid.toString()];this.Ni--;100>b.Rh.length&&b.Rh.push(a)};var R=[];f.prototype.Ge=function(a,b,e,c,g,l){var k,d,n,h;if(!a)return null;var f=this.k[a[1]],u=f.ma.le;if(this.Ng&&u&&!f.Mk||u&&!this.n&&11===a[0][11])return null;
var x=b;u||(b=null);var w;f.Rh.length?(w=f.Rh.pop(),w.hc=!0,f.ma.Xa.call(w,f)):(w=new f.ma.Xa(f),w.hc=!1);!e||l||this.Id.hasOwnProperty(a[2].toString())?w.uid=this.bh++:w.uid=a[2];this.Id[w.uid.toString()]=w;w.Ro=this.oo++;w.Qe=f.d.length;k=0;for(d=this.Xc.length;k<d;++k)this.Xc[k].type===f&&w.Qe++;w.zg=Ib;w.toString=Jb;n=a[3];if(w.hc)Ya(w.P);else{w.P={};if("undefined"!==typeof cr_is_preview)for(w.xn=[],w.xn.length=n.length,k=0,d=n.length;k<d;k++)w.xn[k]=n[k][1];w.Ga=[];w.Ga.length=n.length}k=0;for(d=
n.length;k<d;k++)w.Ga[k]=n[k][0];if(u){var p=a[0];w.x=fa(c)?p[0]:c;w.y=fa(g)?p[1]:g;w.z=p[2];w.width=p[3];w.height=p[4];w.depth=p[5];w.j=p[6];w.opacity=p[7];w.Mb=p[8];w.Nb=p[9];w.gb=p[10];k=p[11];!this.n&&f.D.length&&(w.gb=k);w.lg=jb(w.gb);this.m&&kb(w,w.gb,this.m);if(w.hc){k=0;for(d=p[12].length;k<d;k++)for(n=0,h=p[12][k].length;n<h;n++)w.qa[k][n]=p[12][k][n];w.Ya.set(0,0,0,0);w.ee.set(0,0,-1,-1);w.Ab.set(0,0,-1,-1);w.Ce.lj(w.Ya);L(w.Mj)}else{w.qa=p[12].slice(0);k=0;for(d=w.qa.length;k<d;k++)w.qa[k]=
p[12][k].slice(0);w.S=[];w.Wd=[];w.Wd.length=f.D.length;w.Ya=new wa(0,0,0,0);w.ee=new wa(0,0,-1,-1);w.Ab=new wa(0,0,-1,-1);w.Ce=new xa;w.Mj=[];w.Ma=Mb;w.$v=Nb;w.qc=Ob;w.Na=Pb;w.Tu=Qb;w.ww=Rb;w.bd=Sb}w.yp=!1;w.Ru=0;w.Qu=0;w.Pu=null;14===p.length&&(w.yp=!0,w.Ru=p[13][0],w.Qu=p[13][1],w.Pu=p[13][2]);k=0;for(d=f.D.length;k<d;k++)w.Wd[k]=!0;w.Md=!0;w.Sc=Tb;w.Sc();w.Lp=!!w.S.length;w.Lj=!0;w.Rj=!0;f.Am=!0;w.visible=!0;w.ah=-1;w.i=b;w.Tc=b.d.length;w.Ke=0;"undefined"===typeof w.Wc&&(w.Wc=null);this.V=w.kg=
!0}var F;L(R);k=0;for(d=f.la.length;k<d;k++)R.push.apply(R,f.la[k].na);R.push.apply(R,f.na);if(w.hc)for(k=0,d=R.length;k<d;k++){var m=R[k];F=w.C[k];F.hc=!0;m.behavior.Xa.call(F,m,w);p=a[4][k];n=0;for(h=p.length;n<h;n++)F.U[n]=p[n];F.ja();m.behavior.dl.add(w)}else for(w.C=[],k=0,d=R.length;k<d;k++)m=R[k],F=new m.behavior.Xa(m,w),F.hc=!1,F.U=a[4][k].slice(0),F.ja(),w.C.push(F),m.behavior.dl.add(w);p=a[5];if(w.hc)for(k=0,d=p.length;k<d;k++)w.U[k]=p[k];else w.U=p.slice(0);this.Xc.push(w);this.je=!0;b&&
(b.hg(w,!0),1!==b.xc||1!==b.yc)&&(f.Bm=!0);this.Ni++;if(f.fc){if(w.fc=!0,w.hc?L(w.siblings):w.siblings=[],!e&&!l){k=0;for(d=f.Jb.length;k<d;k++)if(f.Jb[k]!==f){if(!f.Jb[k].Zc)return null;w.siblings.push(this.Ge(f.Jb[k].Zc,x,!1,u?w.x:c,u?w.y:g,!0))}k=0;for(d=w.siblings.length;k<d;k++)for(w.siblings[k].siblings.push(w),n=0;n<d;n++)k!==n&&w.siblings[k].siblings.push(w.siblings[n])}}else w.fc=!1,w.siblings=null;w.ja();k=0;for(d=w.C.length;k<d;k++)w.C[k].du&&w.C[k].du();return w};f.prototype.wg=function(a){var b,
e;b=0;for(e=this.Z.F.length;b<e;b++){var c=this.Z.F[b];if(mb(c.name,a))return c}return null};f.prototype.zd=function(a){a=sa(a);0>a&&(a=0);a>=this.Z.F.length&&(a=this.Z.F.length-1);return this.Z.F[a]};f.prototype.Vj=function(a){var b,e;b=0;for(e=a.length;b<e;b++)a[b].ba().ka=!0};f.prototype.kh=function(a){var b,e;b=0;for(e=a.length;b<e;b++)a[b].kh()};f.prototype.$i=function(a){var b,e;b=0;for(e=a.length;b<e;b++)a[b].$i()};f.prototype.$e=function(a){var b,e;b=0;for(e=a.length;b<e;b++)a[b].$e()};f.prototype.wh=
function(a,b,e){var c=a.ba(),g,k,l,d,n=this.ib().Kb.vc,h,f,u;if(c.ka)for(c.ka=!1,L(c.d),g=0,d=a.d.length;g<d;g++)l=a.d[g],l.Na(),h=l.i.Da(b,e,!0),f=l.i.Da(b,e,!1),l.qc(h,f)?c.d.push(l):n&&c.M.push(l);else{k=0;u=n?c.M:c.d;g=0;for(d=u.length;g<d;g++)l=u[g],l.Na(),h=l.i.Da(b,e,!0),f=l.i.Da(b,e,!1),l.qc(h,f)&&(n?c.d.push(l):(c.d[k]=c.d[g],k++));u.length=k}a.$d();return c.yk()};new xa;new wa(0,0,0,0);f.prototype.Ep=function(a,b){if(!b)return!1;var e,c,g,k,l;e=0;for(c=a.na.length;e<c;e++)if(a.na[e].behavior instanceof
b)return!0;if(!a.J)for(e=0,c=a.la.length;e<c;e++)for(l=a.la[e],g=0,k=l.na.length;g<k;g++)if(l.na[g].behavior instanceof b)return!0;return!1};f.prototype.Pl=function(a){return this.Ep(a,ic.Bv)};f.prototype.Ql=function(a){return this.Ep(a,ic.Cv)};var O=-1;f.prototype.trigger=function(a,b,e){if(!this.Z)return!1;var c=this.Z.Le;if(!c)return!1;var g=!1,k,l,d;O++;var n=c.ak;l=0;for(d=n.length;l<d;++l)k=this.Bp(a,b,n[l],e),g=g||k;k=this.Bp(a,b,c,e);O--;return g||k};f.prototype.Bp=function(a,b,e,c){var g=
!1,k,l,d,n;if(b)for(d=this.Nl(a,b,b.type.name,e,c),g=g||d,n=b.type.la,k=0,l=n.length;k<l;++k)d=this.Nl(a,b,n[k].name,e,c),g=g||d;else d=this.Nl(a,b,"system",e,c),g=g||d;return g};f.prototype.Nl=function(a,b,e,c,g){var k,l=!1,d=!1,d="undefined"!==typeof g,n=(d?c.Zm:c.Cp)[e];if(!n)return l;var h=null;c=0;for(k=n.length;c<k;++c)if(n[c].method==a){h=n[c].sg;break}if(!h)return l;var f;d?f=h[g]:f=h;if(!f)return null;c=0;for(k=f.length;c<k;c++)a=f[c][0],g=f[c][1],d=this.Gs(b,e,a,g),l=l||d;return l};f.prototype.Gs=
function(a,b,e,c){var g,k,l=!1;this.Ol++;var d=this.ib().Kb;d&&this.kh(d.we);var n=1<this.Ol;this.kh(e.we);n&&this.ku();var h=this.aj(e);h.Kb=e;a&&(g=this.types[b].ba(),g.ka=!1,L(g.d),g.d[0]=a,this.types[b].$d());a=!0;if(e.parent){b=h.rp;for(g=e.parent;g;)b.push(g),g=g.parent;b.reverse();g=0;for(k=b.length;g<k;g++)if(!b[g].wu()){a=!1;break}}a&&(this.tg++,e.vc?e.vu(c):e.Ba(),l=l||h.Te);this.Vi();n&&this.cu();this.$e(e.we);d&&this.$e(d.we);this.je&&0===this.Dd&&0===O&&!this.Nk&&this.fb();this.Ol--;
return l};f.prototype.kn=function(){var a=this.ib();return a.Kb.Pa[a.Oa]};f.prototype.ku=function(){this.Hi++;this.Hi>=this.$k.length&&this.$k.push([])};f.prototype.cu=function(){this.Hi--};f.prototype.ln=function(){return this.$k[this.Hi]};f.prototype.aj=function(a){this.Vh++;this.Vh>=this.ek.length&&this.ek.push(new Ub);var b=this.ib();b.reset(a);return b};f.prototype.Vi=function(){this.Vh--};f.prototype.ib=function(){return this.ek[this.Vh]};f.prototype.nn=function(a,b){for(var e,c,g,k,l,d;b;){e=
0;for(c=b.Bc.length;e<c;e++)if(d=b.Bc[e],d instanceof Vb&&mb(a,d.name))return d;b=b.parent}e=0;for(c=this.vd.length;e<c;e++)for(l=this.vd[e],g=0,k=l.he.length;g<k;g++)if(d=l.he[g],d instanceof Vb&&mb(a,d.name))return d;return null};f.prototype.pn=function(a){var b,e;b=0;for(e=this.Lc.length;b<e;b++)if(this.Lc[b].K===a)return this.Lc[b];return null};f.prototype.ii=function(a){var b,e;b=0;for(e=this.k.length;b<e;b++)if(this.k[b].K===a)return this.k[b];return null};f.prototype.Rs=function(a){var b,e;
b=0;for(e=this.kf.length;b<e;b++)if(this.kf[b].K===a)return this.kf[b];return null};f.prototype.yr=function(a,b){this.rh=[a,b];this.V=!0};f.prototype.ot=function(){var a=this,b=this.El,e=this.Fd,c=this.Ci,g=!1;this.lp&&(g=!0,b="__c2_continuouspreview",this.lp=!1);if(b.length){this.fb();e=this.Au();if(m()&&!this.tc)t(b,e,function(){da("Saved state to IndexedDB storage ("+e.length+" bytes)");a.Fd=e;a.trigger(U.prototype.e.Gj,null);a.Fd="";g&&h()},function(c){try{localStorage.setItem("__c2save_"+b,e),
da("Saved state to WebStorage ("+e.length+" bytes)"),a.Fd=e,a.trigger(U.prototype.e.Gj,null),a.Fd="",g&&h()}catch(k){da("Failed to save game state: "+c+"; "+k),a.trigger(U.prototype.e.jm,null)}});else try{localStorage.setItem("__c2save_"+b,e),da("Saved state to WebStorage ("+e.length+" bytes)"),a.Fd=e,this.trigger(U.prototype.e.Gj,null),a.Fd="",g&&h()}catch(k){da("Error saving to WebStorage: "+k),a.trigger(U.prototype.e.jm,null)}this.Ci=this.El="";this.Ja=null}if(c.length){if(m()&&!this.tc)r(c,function(b){b?
(a.Ja=b,da("Loaded state from IndexedDB storage ("+a.Ja.length+" bytes)")):(a.Ja=localStorage.getItem("__c2save_"+c)||"",da("Loaded state from WebStorage ("+a.Ja.length+" bytes)"));a.uh=!1;a.Ja||(a.Ja=null,a.trigger(U.prototype.e.Fh,null))},function(){a.Ja=localStorage.getItem("__c2save_"+c)||"";da("Loaded state from WebStorage ("+a.Ja.length+" bytes)");a.uh=!1;a.Ja||(a.Ja=null,a.trigger(U.prototype.e.Fh,null))});else{try{this.Ja=localStorage.getItem("__c2save_"+c)||"",da("Loaded state from WebStorage ("+
this.Ja.length+" bytes)")}catch(l){this.Ja=null}this.uh=!1;a.Ja||(a.Ja=null,a.trigger(U.prototype.e.Fh,null))}this.El=this.Ci=""}null!==this.Ja&&(this.fb(),this.Jt(this.Ja)?(this.Fd=this.Ja,this.trigger(U.prototype.e.vq,null),this.Fd=""):a.trigger(U.prototype.e.Fh,null),this.Ja=null)};f.prototype.Au=function(){var a,e,c,g,k,l,d,n={c2save:!0,version:1,rt:{time:this.Sa.L,walltime:this.Sd.L,timescale:this.Zf,tickcount:this.Pd,execcount:this.tg,next_uid:this.bh,running_layout:this.Z.K,start_time_offset:Date.now()-
this.nj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(e=this.k.length;a<e;a++)if(k=this.k[a],!k.J&&!this.Pl(k)){l={instances:[]};Xa(k.P)&&(l.ex=b(k.P));c=0;for(g=k.d.length;c<g;c++)l.instances.push(this.Dl(k.d[c]));n.types[k.K.toString()]=l}a=0;for(e=this.Lc.length;a<e;a++)c=this.Lc[a],n.layouts[c.K.toString()]=c.jc();g=n.events.groups;a=0;for(e=this.kf.length;a<e;a++)c=this.kf[a],g[c.K.toString()]=this.ji[c.Bg].Ag;e=n.events.cnds;for(d in this.de)this.de.hasOwnProperty(d)&&
(a=this.de[d],Xa(a.P)&&(e[d]={ex:b(a.P)}));e=n.events.acts;for(d in this.Xd)this.Xd.hasOwnProperty(d)&&(a=this.Xd[d],Xa(a.P)&&(e[d]={ex:b(a.P)}));e=n.events.vars;for(d in this.dg)this.dg.hasOwnProperty(d)&&(a=this.dg[d],a.ti||a.parent&&!a.Mg||(e[d]=a.data));n.system=this.ld.jc();return JSON.stringify(n)};f.prototype.To=function(){var a,b,e,c,g,k;this.Id={};a=0;for(b=this.k.length;a<b;a++)if(e=this.k[a],!e.J)for(c=0,g=e.d.length;c<g;c++)k=e.d[c],this.Id[k.uid.toString()]=k};f.prototype.Jt=function(a){var b;
try{b=JSON.parse(a)}catch(e){return!1}if(!b.c2save||1<b.version)return!1;this.Hg=!0;a=b.rt;this.Sa.reset();this.Sa.L=a.time;this.Sd.reset();this.Sd.L=a.walltime||0;this.Zf=a.timescale;this.Pd=a.tickcount;this.tg=a.execcount;this.nj=Date.now()-a.start_time_offset;var c=a.running_layout;if(c!==this.Z.K)if(c=this.pn(c))this.Vm(c);else return;var g,k,l,d,n,h,f;h=b.types;for(k in h)if(h.hasOwnProperty(k)&&(d=this.ii(parseInt(k,10)))&&!d.J&&!this.Pl(d)){h[k].ex?d.P=h[k].ex:Ya(d.P);n=d.d;l=h[k].instances;
c=0;for(g=ma(n.length,l.length);c<g;c++)this.Di(n[c],l[c]);c=l.length;for(g=n.length;c<g;c++)this.ze(n[c]);c=n.length;for(g=l.length;c<g;c++){n=null;if(d.ma.le&&(n=this.Z.gi(l[c].w.l),!n))continue;n=this.Ge(d.Zc,n,!1,0,0,!0);this.Di(n,l[c])}d.Xf=!0}this.fb();this.To();g=b.layouts;for(k in g)g.hasOwnProperty(k)&&(c=this.pn(parseInt(k,10)))&&c.Mc(g[k]);g=b.events.groups;for(k in g)g.hasOwnProperty(k)&&(c=this.Rs(parseInt(k,10)))&&this.ji[c.Bg]&&this.ji[c.Bg].Cu(g[k]);c=b.events.cnds;for(k in this.de)this.de.hasOwnProperty(k)&&
(c.hasOwnProperty(k)?this.de[k].P=c[k].ex:this.de[k].P={});c=b.events.acts;for(k in this.Xd)this.Xd.hasOwnProperty(k)&&(c.hasOwnProperty(k)?this.Xd[k].P=c[k].ex:this.Xd[k].P={});c=b.events.vars;for(k in c)c.hasOwnProperty(k)&&this.dg.hasOwnProperty(k)&&(this.dg[k].data=c[k]);this.bh=a.next_uid;this.Hg=!1;c=0;for(g=this.$h.length;c<g;++c)n=this.$h[c],this.trigger(Object.getPrototypeOf(n.type.ma).e.am,n);L(this.$h);this.ld.Mc(b.system);c=0;for(g=this.k.length;c<g;c++)if(d=this.k[c],!d.J&&!this.Pl(d))for(b=
0,k=d.d.length;b<k;b++){n=d.d[b];if(d.fc)for(h=n.zg(),L(n.siblings),a=0,l=d.Jb.length;a<l;a++)f=d.Jb[a],d!==f&&n.siblings.push(f.d[h]);n.Yd&&n.Yd();if(n.C)for(a=0,l=n.C.length;a<l;a++)h=n.C[a],h.Yd&&h.Yd()}return this.V=!0};f.prototype.Dl=function(a,e){var c,g,k,l,d;l=a.type;k=l.ma;var n={};e?n.c2=!0:n.uid=a.uid;Xa(a.P)&&(n.ex=b(a.P));if(a.Ga&&a.Ga.length)for(n.ivs={},c=0,g=a.Ga.length;c<g;c++)n.ivs[a.type.Gk[c].toString()]=a.Ga[c];if(k.le){k={x:a.x,y:a.y,w:a.width,h:a.height,l:a.i.K,zi:a.bd()};0!==
a.j&&(k.a=a.j);1!==a.opacity&&(k.o=a.opacity);.5!==a.Mb&&(k.hX=a.Mb);.5!==a.Nb&&(k.hY=a.Nb);0!==a.gb&&(k.bm=a.gb);a.visible||(k.v=a.visible);a.kg||(k.ce=a.kg);-1!==a.ah&&(k.mts=a.ah);if(l.D.length)for(k.fx=[],c=0,g=l.D.length;c<g;c++)d=l.D[c],k.fx.push({name:d.name,active:a.Wd[d.index],params:a.qa[d.index]});n.w=k}if(a.C&&a.C.length)for(n.behs={},c=0,g=a.C.length;c<g;c++)l=a.C[c],l.jc&&(n.behs[l.type.K.toString()]=l.jc());a.jc&&(n.data=a.jc());return n};f.prototype.Ts=function(a,b){var e,c;e=0;for(c=
a.Gk.length;e<c;e++)if(a.Gk[e]===b)return e;return-1};f.prototype.Ps=function(a,b){var e,c;e=0;for(c=a.C.length;e<c;e++)if(a.C[e].type.K===b)return e;return-1};f.prototype.Di=function(a,b,e){var c,g,k,l,d;d=a.type;var n=d.ma;if(e){if(!b.c2)return}else a.uid=b.uid;b.ex?a.P=b.ex:Ya(a.P);if(g=b.ivs)for(c in g)g.hasOwnProperty(c)&&(k=this.Ts(d,parseInt(c,10)),0>k||k>=a.Ga.length||(l=g[c],null===l&&(l=NaN),a.Ga[k]=l));if(n.le){k=b.w;a.i.K!==k.l&&(g=a.i,a.i=this.Z.gi(k.l),a.i?(g.Sf(a,!0),a.i.hg(a,!0),a.Ma(),
a.i.oh(0)):(a.i=g,e||this.ze(a)));a.x=k.x;a.y=k.y;a.width=k.w;a.height=k.h;a.Tc=k.zi;a.j=k.hasOwnProperty("a")?k.a:0;a.opacity=k.hasOwnProperty("o")?k.o:1;a.Mb=k.hasOwnProperty("hX")?k.hX:.5;a.Nb=k.hasOwnProperty("hY")?k.hY:.5;a.visible=k.hasOwnProperty("v")?k.v:!0;a.kg=k.hasOwnProperty("ce")?k.ce:!0;a.ah=k.hasOwnProperty("mts")?k.mts:-1;a.gb=k.hasOwnProperty("bm")?k.bm:0;a.lg=jb(a.gb);this.m&&kb(a,a.gb,this.m);a.Ma();if(k.hasOwnProperty("fx"))for(e=0,g=k.fx.length;e<g;e++)l=d.pk(k.fx[e].name),0>
l||(a.Wd[l]=k.fx[e].active,a.qa[l]=k.fx[e].params);a.Sc()}if(d=b.behs)for(c in d)d.hasOwnProperty(c)&&(e=this.Ps(a,parseInt(c,10)),0>e||a.C[e].Mc(d[c]));b.data&&a.Mc(b.data)};f.prototype.$m=function(a,b,e){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(b,e)},e)};f.prototype.Hs=function(a,b){this.$m("data.js",function(e){var c=new FileReader;c.onload=function(b){a(b.target.result)};c.onerror=b;c.readAsText(e)},b)};var ga=[],M=0;f.prototype.bl=function(){if(ga.length&&
!(8<=M)){M++;var a=ga.shift();this.Cr(a.filename,a.Mu,a.as)}};f.prototype.an=function(a,b,e){var c=this;ga.push({filename:a,Mu:function(a){M--;c.bl();b(a)},as:function(a){M--;c.bl();e(a)}});this.bl()};f.prototype.Cr=function(a,b,e){this.$m(a,function(a){var e=new FileReader;e.onload=function(a){b(a.target.result)};e.readAsArrayBuffer(a)},e)};f.prototype.Is=function(a,b,e){var c="",g=a.toLowerCase(),k=g.substr(g.length-4),g=g.substr(g.length-5);".mp4"===k?c="video/mp4":".webm"===g?c="video/webm":".m4a"===
k?c="audio/mp4":".mp3"===k&&(c="audio/mpeg");this.an(a,function(a){a=URL.createObjectURL(new Blob([a],{type:c}));b(a)},e)};f.prototype.xt=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};f.prototype.dp=function(a,b){this.ri&&!this.xt(b)?this.Is(b,function(b){a.src=b},function(a){alert("Failed to load image: "+a)}):a.src=b};f.prototype.hj=function(a,b){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=b:(a.webkitImageSmoothingEnabled=
b,a.mozImageSmoothingEnabled=b,a.msImageSmoothingEnabled=b)};Wb=function(a){return new f(document.getElementById(a))};Xb=function(a,b){return new f({dc:!0,width:a,height:b})};window.cr_createRuntime=Wb;window.cr_createDCRuntime=Xb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Ih=!0;document.body.appendChild(a);a=new f(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 f(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_getSnapshot=function(f,p){var m=window.cr_getC2Runtime();m&&m.yr(f,p)};
window.cr_sizeCanvas=function(f,p){if(0!==f&&0!==p){var m=window.cr_getC2Runtime();m&&m.setSize(f,p)}};window.cr_setSuspended=function(f){var p=window.cr_getC2Runtime();p&&p.setSuspended(f)};
(function(){function f(a,b){this.b=a;this.Le=null;this.scrollX=this.b.La/2;this.scrollY=this.b.Ka/2;this.scale=1;this.j=0;this.tf=!0;this.name=b[0];this.Zt=b[1];this.Yt=b[2];this.width=b[1];this.height=b[2];this.Fp=b[3];this.jp=b[4];this.K=b[5];var c=b[6],g,d;this.F=[];this.Eg=[];g=0;for(d=c.length;g<d;g++){var h=new Yb(this,c[g]);h.qo=g;this.F.push(h)}c=b[7];this.ke=[];g=0;for(d=c.length;g<d;g++){var h=c[g],f=this.b.k[h[1]];f.Zc||(f.Zc=h);this.ke.push(h);-1===this.Eg.indexOf(f)&&this.Eg.push(f)}this.D=
[];this.S=[];this.Md=!0;this.qa=[];g=0;for(d=b[8].length;g<d;g++)this.D.push({id:b[8][g][0],name:b[8][g][1],Ca:-1,Oc:!1,Tb:!0,index:g}),this.qa.push(b[8][g][2].slice(0));this.Sc();this.Rf=new wa(0,0,1,1);this.xl=new wa(0,0,1,1);this.te={}}function p(a,b){return a.Tc-b.Tc}function m(a,b){this.Ta=a;this.b=a.b;this.d=[];this.scale=1;this.j=0;this.td=!1;this.Qd=new wa(0,0,0,0);this.zp=new xa;this.da=this.Y=this.ea=this.X=0;this.ff=!1;this.Ud=-1;this.Wj=0;this.name=b[0];this.index=b[1];this.K=b[2];this.visible=
b[3];this.Gc=b[4];this.Rc=b[5];this.xc=b[6];this.yc=b[7];this.opacity=b[8];this.ci=b[9];this.oc=b[10];this.Gb=b[11];this.gb=b[12];this.Xr=b[13];this.lg="source-over";this.hb=this.mb=0;this.eb=null;this.Gd=q();this.Qc=!0;this.Gf=new wa(0,0,-1,-1);this.$a=new wa(0,0,-1,-1);this.oc&&(this.eb=new ib(this.b.La,this.b.Ka));this.jd=!1;var c=b[14],g,d;this.pp=[];this.cc=[];this.pg=[];g=0;for(d=c.length;g<d;g++){var h=c[g],f=this.b.k[h[1]];f.Zc||(f.Zc=h,f.xr=this.index);this.cc.push(h);-1===this.Ta.Eg.indexOf(f)&&
this.Ta.Eg.push(f)}Ba(this.pp,this.cc);this.D=[];this.S=[];this.Md=!0;this.qa=[];g=0;for(d=b[15].length;g<d;g++)this.D.push({id:b[15][g][0],name:b[15][g][1],Ca:-1,Oc:!1,Tb:!0,index:g}),this.qa.push(b[15][g][2].slice(0));this.Sc();this.Rf=new wa(0,0,1,1);this.xl=new wa(0,0,1,1)}function q(){return b.length?b.pop():[]}function t(a){L(a);b.push(a)}f.prototype.zu=function(a){var b=a.type.K.toString();this.te.hasOwnProperty(b)||(this.te[b]=[]);this.te[b].push(this.b.Dl(a))};f.prototype.rn=function(){var a=
this.F[0];return!a.Rc&&1===a.opacity&&!a.ci&&a.visible};f.prototype.Sc=function(){L(this.S);this.Md=!0;var a,b,c;a=0;for(b=this.D.length;a<b;a++)c=this.D[a],c.Tb&&(this.S.push(c),c.Oc||(this.Md=!1))};f.prototype.ok=function(a){var b,c,g;b=0;for(c=this.D.length;b<c;b++)if(g=this.D[b],g.name===a)return g;return null};var r=[],h=!0;f.prototype.Il=function(){this.jp&&(this.Le=this.b.fk[this.jp],this.Le.Rl());this.b.Z=this;this.width=this.Zt;this.height=this.Yt;this.scrollX=this.b.La/2;this.scrollY=this.b.Ka/
2;var a,b,c,g,d,f,u;a=0;for(c=this.b.k.length;a<c;a++)if(b=this.b.k[a],!b.J)for(d=b.d,b=0,g=d.length;b<g;b++)if(f=d[b],f.i){var l=f.i.qo;l>=this.F.length&&(l=this.F.length-1);f.i=this.F[l];-1===f.i.d.indexOf(f)&&f.i.d.push(f);f.i.ff=!0}if(!h)for(a=0,c=this.F.length;a<c;++a)this.F[a].d.sort(p);L(r);this.jr();a=0;for(c=this.F.length;a<c;a++)f=this.F[a],f.tr(),f.Aj();d=!1;if(!this.tf){for(u in this.te)if(this.te.hasOwnProperty(u)&&(b=this.b.ii(parseInt(u,10)))&&!b.J&&this.b.Ql(b)){g=this.te[u];a=0;for(c=
g.length;a<c;a++){f=null;if(b.ma.le&&(f=this.gi(g[a].w.l),!f))continue;f=this.b.Ge(b.Zc,f,!1,0,0,!0);this.b.Di(f,g[a]);d=!0;r.push(f)}L(g)}a=0;for(c=this.F.length;a<c;a++)this.F[a].d.sort(p),this.F[a].ff=!0}d&&(this.b.fb(),this.b.To());for(a=0;a<r.length;a++)if(f=r[a],f.type.fc)for(c=f.zg(),b=0,g=f.type.Jb.length;b<g;b++)u=f.type.Jb[b],f.type!==u&&(u.d.length>c?f.siblings.push(u.d[c]):u.Zc&&(d=this.b.Ge(u.Zc,f.i,!0,f.x,f.y,!0),this.b.fb(),u.yj(),f.siblings.push(d),r.push(d)));a=0;for(c=this.ke.length;a<
c;a++)f=this.ke[a],b=this.b.k[f[1]],b.fc||this.b.Ge(this.ke[a],null,!0);this.b.jg=null;this.b.fb();if(this.b.pa&&!this.b.ua)for(a=0,c=this.b.k.length;a<c;a++)u=this.b.k[a],!u.J&&u.d.length&&u.Oo&&u.Oo(this.b.pa);if(this.b.Hg)Ba(this.b.$h,r);else for(a=0,c=r.length;a<c;a++)f=r[a],this.b.trigger(Object.getPrototypeOf(f.type.ma).e.am,f);L(r);this.b.Hg||this.b.trigger(U.prototype.e.cm,null);this.tf=!1};f.prototype.sr=function(){var a,b,c,g,d;b=a=0;for(c=this.ke.length;a<c;a++)g=this.ke[a],d=this.b.k[g[1]],
d.global?d.fc||this.b.Ge(g,null,!0):(this.ke[b]=g,b++);Aa(this.ke,b)};f.prototype.Lu=function(){this.b.Hg||this.b.trigger(U.prototype.e.uq,null);this.b.Jk=!0;L(this.b.ld.Fb);var a,b,c,g,d,f;if(!this.tf)for(a=0,b=this.F.length;a<b;a++)for(this.F[a].Tl(),d=this.F[a].d,c=0,g=d.length;c<g;c++)f=d[c],f.type.global||this.b.Ql(f.type)&&this.zu(f);a=0;for(b=this.F.length;a<b;a++){d=this.F[a].d;c=0;for(g=d.length;c<g;c++)f=d[c],f.type.global||this.b.ze(f);this.b.fb();L(d);this.F[a].ff=!0}a=0;for(b=this.b.k.length;a<
b;a++)if(d=this.b.k[a],!(d.global||d.ma.le||d.ma.mj||d.J)){c=0;for(g=d.d.length;c<g;c++)this.b.ze(d.d[c]);this.b.fb()}h=!1;this.b.Jk=!1};new wa(0,0,0,0);f.prototype.ud=function(a){var b,c=a,g=!1,d=!this.b.$b;d&&(this.b.Bi||(this.b.Bi=document.createElement("canvas"),b=this.b.Bi,b.width=this.b.u,b.height=this.b.r,this.b.Ln=b.getContext("2d"),g=!0),b=this.b.Bi,c=this.b.Ln,b.width!==this.b.u&&(b.width=this.b.u,g=!0),b.height!==this.b.r&&(b.height=this.b.r,g=!0),g&&this.b.hj(c,this.b.wa));c.globalAlpha=
1;c.globalCompositeOperation="source-over";this.b.Om&&!this.rn()&&c.clearRect(0,0,this.b.u,this.b.r);var h,f,g=0;for(h=this.F.length;g<h;g++)f=this.F[g],f.visible&&0<f.opacity&&11!==f.gb&&(f.d.length||!f.Rc)?f.ud(c):f.Aj();d&&a.drawImage(b,0,0,this.b.width,this.b.height)};f.prototype.pf=function(a){a.cp(!0);this.b.za||(this.b.za=a.Zb(this.b.u,this.b.r,this.b.wa));if(this.b.za.Ee!==this.b.u||this.b.za.De!==this.b.r)a.deleteTexture(this.b.za),this.b.za=a.Zb(this.b.u,this.b.r,this.b.wa);a.Ac(this.b.za);
this.b.$b||a.Ld(this.b.u,this.b.r);var b,c;for(b=this.F.length-1;0<=b;--b)c=this.F[b],c.visible&&1===c.opacity&&c.Md&&0===c.gb&&(c.d.length||!c.Rc)?c.pf(a):c.Aj();a.cp(!1)};f.prototype.sc=function(a){var b=0<this.S.length||this.b.ag||!this.b.$b||this.b.fa;if(b){this.b.za||(this.b.za=a.Zb(this.b.u,this.b.r,this.b.wa));if(this.b.za.Ee!==this.b.u||this.b.za.De!==this.b.r)a.deleteTexture(this.b.za),this.b.za=a.Zb(this.b.u,this.b.r,this.b.wa);a.Ac(this.b.za);this.b.$b||a.Ld(this.b.u,this.b.r)}else this.b.za&&
(a.Ac(null),a.deleteTexture(this.b.za),this.b.za=null);this.b.Om&&!this.rn()&&a.clear(0,0,0,0);var c,g,d;c=0;for(g=this.F.length;c<g;c++)d=this.F[c],d.visible&&0<d.opacity&&(d.d.length||!d.Rc)?d.sc(a):d.Aj();b&&(0===this.S.length||1===this.S.length&&this.b.$b?(1===this.S.length?(b=this.S[0].index,a.Eb(this.S[0].Ca),a.Vf(null,1/this.b.u,1/this.b.r,0,0,1,1,this.scale,this.j,0,0,this.b.u/2,this.b.r/2,this.b.Sa.L,this.qa[b]),a.Yi(this.S[0].Ca)&&(this.b.V=!0)):a.Eb(0),this.b.$b||a.Ld(this.b.width,this.b.height),
a.Ac(null),a.bp(!1),a.Uf(1),a.kc(this.b.za),a.Zo(),a.zc(),a.nc(),b=this.b.width/2,c=this.b.height/2,a.lh(-b,c,b,c,b,-c,-b,-c),a.kc(null),a.bp(!0)):this.yl(a,null,null,null))};f.prototype.xg=function(){return 0<this.S.length||this.b.ag||!this.b.$b||this.b.fa?this.b.za:null};f.prototype.qn=function(){var a=this.F[0].Lb(),b,c,g;b=1;for(c=this.F.length;b<c;b++)g=this.F[b],(0!==g.xc||0!==g.yc)&&g.Lb()<a&&(a=g.Lb());return a};f.prototype.Xo=function(a){if(!this.Fp){var b=1/this.qn()*this.b.u/2;a>this.width-
b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.V=!0)};f.prototype.Yo=function(a){if(!this.Fp){var b=1/this.qn()*this.b.r/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.V=!0)};f.prototype.jr=function(){this.Xo(this.scrollX);this.Yo(this.scrollY)};f.prototype.yl=function(a,b,c,g){var d=c?c.S:b?b.S:this.S,h=1,f=0,l=0,n=0,p=this.b.u,m=this.b.r;c?(h=c.i.Lb(),f=c.i.Fa(),l=c.i.X,n=c.i.Y,p=c.i.ea,m=c.i.da):b&&(h=b.Lb(),f=b.Fa(),l=b.X,n=b.Y,
p=b.ea,m=b.da);var r=this.b.lk,q,C,t,z,N=0,R=1,O,ga,M=this.b.u,v=this.b.r,oa=M/2,J=v/2,H=b?b.Rf:this.Rf,E=b?b.xl:this.xl,I=0,G=0,y=0,D=0,B=M,Z=M,K=v,pa=v,S=t=0;z=c?c.i.Fa():0;if(c){q=0;for(C=d.length;q<C;q++)t+=a.Xs(d[q].Ca),S+=a.Ys(d[q].Ca);D=c.Ya;I=b.Ha(D.left,D.top,!0);y=b.Ha(D.left,D.top,!1);B=b.Ha(D.right,D.bottom,!0);K=b.Ha(D.right,D.bottom,!1);0!==z&&(q=b.Ha(D.right,D.top,!0),C=b.Ha(D.right,D.top,!1),G=b.Ha(D.left,D.bottom,!0),D=b.Ha(D.left,D.bottom,!1),z=Math.min(I,B,q,G),B=Math.max(I,B,q,
G),I=z,z=Math.min(y,K,C,D),K=Math.max(y,K,C,D),y=z);I-=t;y-=S;B+=t;K+=S;E.left=I/M;E.top=1-y/v;E.right=B/M;E.bottom=1-K/v;G=I=sa(I);D=y=sa(y);Z=B=ta(B);pa=K=ta(K);G-=t;D-=S;Z+=t;pa+=S;0>I&&(I=0);0>y&&(y=0);B>M&&(B=M);K>v&&(K=v);0>G&&(G=0);0>D&&(D=0);Z>M&&(Z=M);pa>v&&(pa=v);H.left=I/M;H.top=1-y/v;H.right=B/M;H.bottom=1-K/v}else H.left=E.left=0,H.top=E.top=0,H.right=E.right=1,H.bottom=E.bottom=1;S=c&&(a.ih(d[0].Ca)||0!==t||0!==S||1!==c.opacity||c.type.ma.lo)||b&&!c&&1!==b.opacity;a.Zo();if(S){r[N]||
(r[N]=a.Zb(M,v,this.b.wa));if(r[N].Ee!==M||r[N].De!==v)a.deleteTexture(r[N]),r[N]=a.Zb(M,v,this.b.wa);a.Eb(0);a.Ac(r[N]);ga=pa-D;a.clearRect(G,v-D-ga,Z-G,ga);c?c.sc(a):(a.kc(this.b.Ia),a.Uf(b.opacity),a.zc(),a.translate(-oa,-J),a.nc(),a.ue(I,K,B,K,B,y,I,y,H));E.left=E.top=0;E.right=E.bottom=1;c&&(z=H.top,H.top=H.bottom,H.bottom=z);N=1;R=0}a.Uf(1);t=d.length-1;var ha=a.tl(d[t].Ca)||!b&&!c&&!this.b.$b;q=z=0;for(C=d.length;q<C;q++){r[N]||(r[N]=a.Zb(M,v,this.b.wa));if(r[N].Ee!==M||r[N].De!==v)a.deleteTexture(r[N]),
r[N]=a.Zb(M,v,this.b.wa);a.Eb(d[q].Ca);z=d[q].index;a.Yi(d[q].Ca)&&(this.b.V=!0);0!=q||S?(a.Vf(g,1/M,1/v,E.left,E.top,E.right,E.bottom,h,f,l,n,(l+p)/2,(n+m)/2,this.b.Sa.L,c?c.qa[z]:b?b.qa[z]:this.qa[z]),a.kc(null),q!==t||ha?(a.Ac(r[N]),ga=pa-D,O=v-D-ga,a.clearRect(G,O,Z-G,ga)):(c?a.ve(c.mb,c.hb):b&&a.ve(b.mb,b.hb),a.Ac(g)),a.kc(r[R]),a.zc(),a.translate(-oa,-J),a.nc(),a.ue(I,K,B,K,B,y,I,y,H),q!==t||ha||a.kc(null)):(a.Ac(r[N]),ga=pa-D,O=v-D-ga,a.clearRect(G,O,Z-G,ga),c?(c.Za&&c.Za.Wa?(O=c.Za.Wa,R=1/
O.width,O=1/O.height):(R=1/c.width,O=1/c.height),a.Vf(g,R,O,E.left,E.top,E.right,E.bottom,h,f,l,n,(l+p)/2,(n+m)/2,this.b.Sa.L,c.qa[z]),c.sc(a)):(a.Vf(g,1/M,1/v,0,0,1,1,h,f,l,n,(l+p)/2,(n+m)/2,this.b.Sa.L,b?b.qa[z]:this.qa[z]),a.kc(b?this.b.Ia:this.b.za),a.zc(),a.translate(-oa,-J),a.nc(),a.ue(I,K,B,K,B,y,I,y,H)),E.left=E.top=0,E.right=E.bottom=1,c&&!ha&&(z=K,K=y,y=z));N=0===N?1:0;R=0===N?1:0}ha&&(a.Eb(0),c?a.ve(c.mb,c.hb):b?a.ve(b.mb,b.hb):this.b.$b||(a.Ld(this.b.width,this.b.height),oa=this.b.width/
2,J=this.b.height/2,y=I=0,B=this.b.width,K=this.b.height),a.Ac(g),a.kc(r[R]),a.zc(),a.translate(-oa,-J),a.nc(),c&&1===d.length&&!S?a.ue(I,y,B,y,B,K,I,K,H):a.ue(I,K,B,K,B,y,I,y,H),a.kc(null))};f.prototype.gi=function(a){var b,c;b=0;for(c=this.F.length;b<c;b++)if(this.F[b].K===a)return this.F[b];return null};f.prototype.jc=function(){var a,b,c,g={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.j,w:this.width,h:this.height,fv:this.tf,persist:this.te,fx:[],layers:{}};a=0;for(b=this.D.length;a<b;a++)c=
this.D[a],g.fx.push({name:c.name,active:c.Tb,params:this.qa[c.index]});a=0;for(b=this.F.length;a<b;a++)c=this.F[a],g.layers[c.K.toString()]=c.jc();return g};f.prototype.Mc=function(a){var b,c,g,d;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.j=a.a;this.width=a.w;this.height=a.h;this.te=a.persist;"undefined"!==typeof a.fv&&(this.tf=a.fv);var h=a.fx;b=0;for(c=h.length;b<c;b++)if(g=this.ok(h[b].name))g.Tb=h[b].active,this.qa[g.index]=h[b].params;this.Sc();b=a.layers;for(d in b)b.hasOwnProperty(d)&&
(a=this.gi(parseInt(d,10)))&&a.Mc(b[d])};Kb=f;m.prototype.Sc=function(){L(this.S);this.Md=!0;var a,b,c;a=0;for(b=this.D.length;a<b;a++)c=this.D[a],c.Tb&&(this.S.push(c),c.Oc||(this.Md=!1))};m.prototype.ok=function(a){var b,c,g;b=0;for(c=this.D.length;b<c;b++)if(g=this.D[b],g.name===a)return g;return null};m.prototype.tr=function(){var a,b,c,g,d,h;b=a=0;for(c=this.cc.length;a<c;a++){g=this.cc[a];d=this.b.k[g[1]];h=this.b.Ql(d);d=!0;if(!h||this.Ta.tf){g=this.b.Ge(g,this,!0);if(!g)continue;r.push(g);
g.type.global&&(d=!1,this.pg.push(g.uid))}d&&(this.cc[b]=this.cc[a],b++)}this.cc.length=b;this.b.fb();!this.b.n&&this.D.length&&(this.gb=this.Xr);this.lg=jb(this.gb);this.b.m&&kb(this,this.gb,this.b.m);this.Qc=!0};m.prototype.Sf=function(a,b){var c=Da(this.d,a);0>c||(b&&this.oc&&a.Ab&&a.Ab.right>=a.Ab.left&&(a.Na(),this.eb.update(a,a.Ab,null),a.Ab.set(0,0,-1,-1)),c===this.d.length-1?this.d.pop():(za(this.d,c),this.oh(c)),this.Qc=!0)};m.prototype.hg=function(a,b){a.Tc=this.d.length;this.d.push(a);
b&&this.oc&&a.Ab&&a.Ma();this.Qc=!0};m.prototype.hu=function(a){this.d.unshift(a);this.oh(0)};m.prototype.Pt=function(a,b,c){var g=a.bd();b=b.bd();za(this.d,g);g<b&&b--;c&&b++;b===this.d.length?this.d.push(a):this.d.splice(b,0,a);this.oh(g<b?g:b)};m.prototype.oh=function(a){-1===this.Ud?this.Ud=a:a<this.Ud&&(this.Ud=a);this.Qc=this.ff=!0};m.prototype.Tl=function(){if(this.ff){-1===this.Ud&&(this.Ud=0);var a,b,c;if(this.oc)for(a=this.Ud,b=this.d.length;a<b;++a)c=this.d[a],c.Tc=a,this.eb.Mt(c.Ab);else for(a=
this.Ud,b=this.d.length;a<b;++a)this.d[a].Tc=a;this.ff=!1;this.Ud=-1}};m.prototype.Lb=function(a){return this.Us()*(this.b.$b||a?this.b.ig:1)};m.prototype.Us=function(){return(this.scale*this.Ta.scale-1)*this.Gb+1};m.prototype.Fa=function(){return this.td?0:Ja(this.Ta.j+this.j)};var b=[],c=[],d=[];m.prototype.tk=function(){this.Tl();this.eb.So(this.X,this.Y,this.ea,this.da,d);if(!d.length)return q();if(1===d.length){var a=q();Ba(a,d[0]);L(d);return a}for(var b=!0;1<d.length;){for(var a=d,k=void 0,
g=void 0,h=void 0,f=void 0,u=void 0,k=0,g=a.length;k<g-1;k+=2){var h=a[k],f=a[k+1],u=q(),l=h,n=f,p=u,m=0,r=0,X=0,C=l.length,P=n.length,z=void 0,N=void 0;for(p.length=C+P;m<C&&r<P;++X)z=l[m],N=n[r],z.Tc<N.Tc?(p[X]=z,++m):(p[X]=N,++r);for(;m<C;++m,++X)p[X]=l[m];for(;r<P;++r,++X)p[X]=n[r];b||(t(h),t(f));c.push(u)}1===g%2&&(b?(h=q(),Ba(h,a[g-1]),c.push(h)):c.push(a[g-1]));Ba(a,c);L(c);b=!1}a=d[0];L(d);return a};m.prototype.ud=function(a){this.jd=this.ci||1!==this.opacity||0!==this.gb;var b=this.b.canvas,
c=a,g=!1;this.jd&&(this.b.Ai||(this.b.Ai=document.createElement("canvas"),b=this.b.Ai,b.width=this.b.u,b.height=this.b.r,this.b.Kn=b.getContext("2d"),g=!0),b=this.b.Ai,c=this.b.Kn,b.width!==this.b.u&&(b.width=this.b.u,g=!0),b.height!==this.b.r&&(b.height=this.b.r,g=!0),g&&this.b.hj(c,this.b.wa),this.Rc&&c.clearRect(0,0,this.b.u,this.b.r));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Rc||(c.fillStyle="rgb("+this.Gc[0]+","+this.Gc[1]+","+this.Gc[2]+")",c.fillRect(0,0,this.b.u,this.b.r));
c.save();this.td=!0;var g=this.Da(0,0,!0,!0),d=this.Da(0,0,!1,!0);this.td=!1;this.b.Jd&&(g=Math.round(g),d=Math.round(d));this.cj(g,d,c);var h=this.Lb();c.scale(h,h);c.translate(-g,-d);this.oc?(this.$a.left=this.eb.yb(this.X),this.$a.top=this.eb.zb(this.Y),this.$a.right=this.eb.yb(this.ea),this.$a.bottom=this.eb.zb(this.da),this.Qc||!this.$a.rg(this.Gf)?(t(this.Gd),g=this.tk(),this.Qc=!1,this.Gf.mg(this.$a)):g=this.Gd):g=this.d;for(var f,l=null,d=0,h=g.length;d<h;++d)f=g[d],f!==l&&(this.Rr(f,c),l=
f);this.oc&&(this.Gd=g);c.restore();this.jd&&(a.globalCompositeOperation=this.lg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};m.prototype.Rr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Na();var c=a.Ya;c.right<this.X||c.bottom<this.Y||c.left>this.ea||c.top>this.da||(b.globalCompositeOperation=a.lg,a.ud(b))}};m.prototype.Aj=function(){this.td=!0;var a=this.Da(0,0,!0,!0),b=this.Da(0,0,!1,!0);this.td=!1;this.b.Jd&&(a=Math.round(a),b=Math.round(b));this.cj(a,b,null)};m.prototype.cj=function(a,
b,c){var g=this.Lb();this.X=a;this.Y=b;this.ea=a+1/g*this.b.u;this.da=b+1/g*this.b.r;this.X>this.ea&&(a=this.X,this.X=this.ea,this.ea=a);this.Y>this.da&&(a=this.Y,this.Y=this.da,this.da=a);a=this.Fa();0!==a&&(c&&(c.translate(this.b.u/2,this.b.r/2),c.rotate(-a),c.translate(this.b.u/-2,this.b.r/-2)),this.Qd.set(this.X,this.Y,this.ea,this.da),this.Qd.offset((this.X+this.ea)/-2,(this.Y+this.da)/-2),this.zp.hp(this.Qd,a),this.zp.Jm(this.Qd),this.Qd.offset((this.X+this.ea)/2,(this.Y+this.da)/2),this.X=
this.Qd.left,this.Y=this.Qd.top,this.ea=this.Qd.right,this.da=this.Qd.bottom)};m.prototype.pf=function(a){if(this.jd=this.ci){this.b.Ia||(this.b.Ia=a.Zb(this.b.u,this.b.r,this.b.wa));if(this.b.Ia.Ee!==this.b.u||this.b.Ia.De!==this.b.r)a.deleteTexture(this.b.Ia),this.b.Ia=a.Zb(this.b.u,this.b.r,this.b.wa);a.Ac(this.b.Ia)}this.td=!0;var b=this.Da(0,0,!0,!0),c=this.Da(0,0,!1,!0);this.td=!1;this.b.Jd&&(b=Math.round(b),c=Math.round(c));this.cj(b,c,null);b=this.Lb();a.zc();a.scale(b,b);a.dj(-this.Fa());
a.translate((this.X+this.ea)/-2,(this.Y+this.da)/-2);a.nc();this.oc?(this.$a.left=this.eb.yb(this.X),this.$a.top=this.eb.zb(this.Y),this.$a.right=this.eb.yb(this.ea),this.$a.bottom=this.eb.zb(this.da),this.Qc||!this.$a.rg(this.Gf)?(t(this.Gd),b=this.tk(),this.Qc=!1,this.Gf.mg(this.$a)):b=this.Gd):b=this.d;for(var g,d=null,c=b.length-1;0<=c;--c)g=b[c],g!==d&&(this.Tr(b[c],a),d=g);this.oc&&(this.Gd=b);this.Rc||(this.Wj=this.b.Ke++,a.ij(this.Wj),a.$o(1,1,1),a.hn(),a.qu())};m.prototype.sc=function(a){var b=
0,c=0;if(this.jd=this.ci||1!==this.opacity||0<this.S.length||0!==this.gb){this.b.Ia||(this.b.Ia=a.Zb(this.b.u,this.b.r,this.b.wa));if(this.b.Ia.Ee!==this.b.u||this.b.Ia.De!==this.b.r)a.deleteTexture(this.b.Ia),this.b.Ia=a.Zb(this.b.u,this.b.r,this.b.wa);a.Ac(this.b.Ia);this.Rc&&a.clear(0,0,0,0)}this.Rc||(this.b.fa?(a.ij(this.Wj),a.$o(this.Gc[0]/255,this.Gc[1]/255,this.Gc[2]/255),a.hn(),a.Gu()):a.clear(this.Gc[0]/255,this.Gc[1]/255,this.Gc[2]/255,1));this.td=!0;var g=this.Da(0,0,!0,!0),b=this.Da(0,
0,!1,!0);this.td=!1;this.b.Jd&&(g=Math.round(g),b=Math.round(b));this.cj(g,b,null);g=this.Lb();a.zc();a.scale(g,g);a.dj(-this.Fa());a.translate((this.X+this.ea)/-2,(this.Y+this.da)/-2);a.nc();this.oc?(this.$a.left=this.eb.yb(this.X),this.$a.top=this.eb.zb(this.Y),this.$a.right=this.eb.yb(this.ea),this.$a.bottom=this.eb.zb(this.da),this.Qc||!this.$a.rg(this.Gf)?(t(this.Gd),b=this.tk(),this.Qc=!1,this.Gf.mg(this.$a)):b=this.Gd):b=this.d;var d,h,f=null,c=0;for(d=b.length;c<d;++c)h=b[c],h!==f&&(this.Sr(b[c],
a),f=h);this.oc&&(this.Gd=b);this.jd&&(b=this.S.length?this.S[0].Ca:0,c=this.S.length?this.S[0].index:0,0===this.S.length||1===this.S.length&&!a.tl(b)&&1===this.opacity?(1===this.S.length?(a.Eb(b),a.Vf(this.Ta.xg(),1/this.b.u,1/this.b.r,0,0,1,1,g,this.Fa(),this.X,this.Y,(this.X+this.ea)/2,(this.Y+this.da)/2,this.b.Sa.L,this.qa[c]),a.Yi(b)&&(this.b.V=!0)):a.Eb(0),a.Ac(this.Ta.xg()),a.Uf(this.opacity),a.kc(this.b.Ia),a.ve(this.mb,this.hb),a.zc(),a.nc(),g=this.b.u/2,b=this.b.r/2,a.lh(-g,b,g,b,g,-b,-g,
-b),a.kc(null)):this.Ta.yl(a,this,null,this.Ta.xg()))};m.prototype.Sr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Na();var c=a.Ya;c.right<this.X||c.bottom<this.Y||c.left>this.ea||c.top>this.da||(b.ij(a.Ke),a.Lp?this.Ur(a,b):(b.Eb(0),b.ve(a.mb,a.hb),a.sc(b)))}};m.prototype.Tr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Na();var c=a.Ya;c.right<this.X||c.bottom<this.Y||c.left>this.ea||c.top>this.da||(a.Ke=this.b.Ke++,0===a.gb&&1===a.opacity&&a.Md&&a.pf&&(b.ij(a.Ke),a.pf(b)))}};
m.prototype.Ur=function(a,b){var c=a.S[0].Ca,g=a.S[0].index,d=this.Lb();if(1!==a.S.length||b.tl(c)||b.ju(c)||(a.j||a.i.Fa())&&b.ih(c)||1!==a.opacity||a.type.ma.lo)this.Ta.yl(b,this,a,this.jd?this.b.Ia:this.Ta.xg()),b.zc(),b.scale(d,d),b.dj(-this.Fa()),b.translate((this.X+this.ea)/-2,(this.Y+this.da)/-2),b.nc();else{b.Eb(c);b.ve(a.mb,a.hb);b.Yi(c)&&(this.b.V=!0);var h=0,f=0,l=0,n=0;b.ih(c)&&(n=a.Ya,h=this.Ha(n.left,n.top,!0),f=this.Ha(n.left,n.top,!1),l=this.Ha(n.right,n.bottom,!0),n=this.Ha(n.right,
n.bottom,!1),h=h/windowWidth,f=1-f/windowHeight,l=l/windowWidth,n=1-n/windowHeight);var p;a.Za&&a.Za.Wa?(p=a.Za.Wa,c=1/p.width,p=1/p.height):(c=1/a.width,p=1/a.height);b.Vf(this.jd?this.b.Ia:this.Ta.xg(),c,p,h,f,l,n,d,this.Fa(),this.X,this.Y,(this.X+this.ea)/2,(this.Y+this.da)/2,this.b.Sa.L,a.qa[g]);a.sc(b)}};m.prototype.Da=function(a,b,c,g){var d=this.b.devicePixelRatio;this.b.xf&&(a*=d,b*=d);var d=this.b.Io,h=this.b.Jo,d=(this.Ta.scrollX-d)*this.xc+d,h=(this.Ta.scrollY-h)*this.yc+h,f=d,l=h,n=1/
this.Lb(!g);g?(f-=this.b.u*n/2,l-=this.b.r*n/2):(f-=this.b.width*n/2,l-=this.b.height*n/2);f+=a*n;l+=b*n;b=this.Fa();0!==b&&(f-=d,l-=h,a=Math.cos(b),b=Math.sin(b),g=f*a-l*b,l=l*a+f*b,f=g+d,l+=h);return c?f:l};m.prototype.Ha=function(a,b,c){var g=this.b.Io,d=this.b.Jo,g=(this.Ta.scrollX-g)*this.xc+g,h=(this.Ta.scrollY-d)*this.yc+d,d=g,f=h,l=this.Fa();if(0!==l){a-=g;b-=h;var n=Math.cos(-l),l=Math.sin(-l),p=a*n-b*l;b=b*n+a*l;a=p+g;b+=h}g=1/this.Lb(!1);d-=this.b.u*g/2;f-=this.b.r*g/2;d=(a-d)/g;return c?
d:(b-f)/g};m.prototype.jc=function(){var a,b,c,g={s:this.scale,a:this.j,vl:this.X,vt:this.Y,vr:this.ea,vb:this.da,v:this.visible,bc:this.Gc,t:this.Rc,px:this.xc,py:this.yc,o:this.opacity,zr:this.Gb,fx:[],cg:this.pg,instances:[]};a=0;for(b=this.D.length;a<b;a++)c=this.D[a],g.fx.push({name:c.name,active:c.Tb,params:this.qa[c.index]});return g};m.prototype.Mc=function(a){var b,c,g;this.scale=a.s;this.j=a.a;this.X=a.vl;this.Y=a.vt;this.ea=a.vr;this.da=a.vb;this.visible=a.v;this.Gc=a.bc;this.Rc=a.t;this.xc=
a.px;this.yc=a.py;this.opacity=a.o;this.Gb=a.zr;this.pg=a.cg||[];Ba(this.cc,this.pp);var d=new ba;b=0;for(g=this.pg.length;b<g;++b)d.add(this.pg[b]);c=b=0;for(g=this.cc.length;b<g;++b)d.contains(this.cc[b][2])||(this.cc[c]=this.cc[b],++c);Aa(this.cc,c);c=a.fx;b=0;for(g=c.length;b<g;b++)if(a=this.ok(c[b].name))a.Tb=c[b].active,this.qa[a.index]=c[b].params;this.Sc();this.d.sort(p);this.ff=!0};Yb=m})();
(function(){function f(a,b){var c,e=a.length;switch(e){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<e;c++)if(a[c]!==b[c])return!1;return!0}}function p(a,b){return a.index-b.index}function m(a){var b,c,e,g;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(p);a.length>=x.length&&(x.length=a.length+1);x[a.length]||(x[a.length]=[]);g=x[a.length];b=0;for(c=g.length;b<c;b++)if(e=g[b],f(a,e))return e;g.push(a);return a}
function q(a,b){this.b=a;this.Cp={};this.Zm={};this.zk=!1;this.tn=new ba;this.ak=[];this.Ij=[];this.name=b[0];var c=b[1];this.he=[];var e,g;e=0;for(g=c.length;e<g;e++)this.vn(c[e],null,this.he)}function t(a){this.type=a;this.d=[];this.M=[];this.ka=!0}function r(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ca=[];this.we=[];this.sn=this.uj=this.Ml=this.Ek=this.group=this.op=!1;this.Pa=[];this.Ec=[];this.Bc=[];this.Bg="";this.Ag=this.Ek=this.group=!1;this.Lh=null;c[1]&&(this.Bg=c[1][1].toLowerCase(),
this.group=!0,this.Ek=!!c[1][0],this.Lh=[],this.Ag=this.Ek,this.b.kf.push(this),this.b.ji[this.Bg]=this);this.vc=c[2];this.K=c[4];this.group||(this.b.Im[this.K.toString()]=this);var e=c[5];a=0;for(b=e.length;a<b;a++){var g=new Zb(this,e[a]);g.index=a;this.Pa.push(g);this.wm(g.type)}e=c[6];a=0;for(b=e.length;a<b;a++)g=new $b(this,e[a]),g.index=a,this.Ec.push(g);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.vn(c[a],this,this.Bc);this.vi=!1;this.Pa.length&&(this.vi=null==this.Pa[0].type&&
this.Pa[0].ab==U.prototype.e.Yp)}function h(a,b){var c,e,g;if(a&&(-1===b.indexOf(a)&&b.push(a),a.fc))for(c=0,e=a.Jb.length;c<e;c++)g=a.Jb[c],a!==g&&-1===b.indexOf(g)&&b.push(g)}function b(a,b){this.Ub=a;this.sheet=a.sheet;this.b=a.b;this.H=[];this.ra=[];this.P={};this.index=-1;this.fg=!1;this.ab=this.b.Vd(b[1]);this.trigger=0<b[3];this.Ym=2===b[3];this.ed=b[4];this.Hk=b[5];this.It=b[6];this.K=b[7];this.b.de[this.K.toString()]=this;-1===b[0]?(this.type=null,this.Ba=this.Cl,this.Be=null,this.Hc=-1):
(this.type=this.b.k[b[0]],this.Ba=this.It?this.xu:this.Bl,b[2]?(this.Be=this.type.fi(b[2]),this.Hc=this.type.nk(b[2])):(this.Be=null,this.Hc=-1),this.Ub.parent&&this.Ub.parent.kj());this.Ym&&(this.Ba=this.yu);if(10===b.length){var c,e,g=b[9];c=0;for(e=g.length;c<e;c++){var d=new ac(this,g[c]);this.H.push(d)}this.ra.length=g.length}}function c(a,b){this.Ub=a;this.sheet=a.sheet;this.b=a.b;this.H=[];this.ra=[];this.P={};this.index=-1;this.fg=!1;this.ab=this.b.Vd(b[1]);-1===b[0]?(this.type=null,this.Ba=
this.Cl,this.Be=null,this.Hc=-1):(this.type=this.b.k[b[0]],this.Ba=this.Bl,b[2]?(this.Be=this.type.fi(b[2]),this.Hc=this.type.nk(b[2])):(this.Be=null,this.Hc=-1));this.K=b[3];this.b.Xd[this.K.toString()]=this;if(6===b.length){var c,e,g=b[5];c=0;for(e=g.length;c<e;c++){var d=new ac(this,g[c]);this.H.push(d)}this.ra.length=g.length}}function d(){u++;w.length===u&&w.push(new bc);return w[u]}function a(a,b){this.wc=a;this.Ub=a.Ub;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.$c=null;this.Nd=0;this.get=
null;this.Qm=0;this.Ta=null;this.key=0;this.object=null;this.index=0;this.zh=this.cf=this.zh=this.cf=this.bn=this.Me=this.Ah=null;this.Dc=!1;var c,e,g;switch(b[0]){case 0:case 7:this.$c=new cc(this,b[1]);this.Nd=0;this.get=this.dt;break;case 1:this.$c=new cc(this,b[1]);this.Nd=0;this.get=this.et;break;case 5:this.$c=new cc(this,b[1]);this.Nd=0;this.get=this.it;break;case 3:case 8:this.Qm=b[1];this.get=this.bt;break;case 6:this.Ta=this.b.Vk[b[1]];this.get=this.jt;break;case 9:this.key=b[1];this.get=
this.ht;break;case 4:this.object=this.b.k[b[1]];this.get=this.kt;this.Ub.wm(this.object);this.wc instanceof $b?this.Ub.kj():this.Ub.parent&&this.Ub.parent.kj();break;case 10:this.index=b[1];a.type&&a.type.J?(this.get=this.ft,this.Dc=!0):this.get=this.gt;break;case 11:this.Ah=b[1];this.Me=null;this.get=this.ct;break;case 2:case 12:this.bn=b[1];this.get=this.$s;break;case 13:for(this.get=this.lt,this.cf=[],this.zh=[],c=1,e=b.length;c<e;c++)g=new ac(this.wc,b[c]),this.cf.push(g),this.zh.push(0)}}function e(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ca=[];this.name=c[1];this.Cj=c[2];this.Dk=c[3];this.Mg=!!c[4];this.ti=!!c[5];this.K=c[6];this.b.dg[this.K.toString()]=this;this.data=this.Dk;this.parent?(this.Xe=this.Mg||this.ti?-1:this.b.Ju++,this.b.fr.push(this)):(this.Xe=-1,this.b.er.push(this))}function k(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ca=[];this.Dg=null;this.tt=c[1];this.Tb=!0}function g(){this.rp=[];this.reset(null)}var x=[];q.prototype.toString=function(){return this.name};
q.prototype.vn=function(a,b,c){switch(a[0]){case 0:a=new dc(this,b,a);if(a.vc)for(c.push(a),c=0,b=a.Pa.length;c<b;c++)a.Pa[c].trigger&&this.wn(a,c);else a.En()?this.wn(a,0):c.push(a);break;case 1:a=new Vb(this,b,a);c.push(a);break;case 2:a=new ec(this,b,a),c.push(a)}};q.prototype.xa=function(){var a,b;a=0;for(b=this.he.length;a<b;a++)this.he[a].xa(a<b-1&&this.he[a+1].vi)};q.prototype.Rl=function(){L(this.ak);L(this.Ij);this.vm(this);L(this.Ij)};q.prototype.vm=function(a){var b,c,e,g,d=a.ak,k=a.Ij,
h=this.tn.ye();b=0;for(c=h.length;b<c;++b)e=h[b],g=e.Dg,!e.Tb||a===g||-1<k.indexOf(g)||(k.push(g),g.vm(a),d.push(g))};q.prototype.Ba=function(a){this.b.rw||(this.zk=!0,a||(this.b.Nk=!0));var b,c;b=0;for(c=this.he.length;b<c;b++){var e=this.he[b];e.Ba();this.b.Vj(e.ca);this.b.je&&this.b.fb()}a||(this.b.Nk=!1)};q.prototype.wn=function(a,b){a.vc||this.b.xj.push(a);var c,e,g=a.Pa[b],d;g.type?d=g.type.name:d="system";var k=(c=g.Ym)?this.Zm:this.Cp;k[d]||(k[d]=[]);d=k[d];k=g.ab;if(c){if(g.H.length&&(g=
g.H[0],1===g.type&&2===g.$c.type)){g=g.$c.value.toLowerCase();c=0;for(e=d.length;c<e;c++)if(d[c].method==k){c=d[c].sg;c[g]?c[g].push([a,b]):c[g]=[[a,b]];return}c={};c[g]=[[a,b]];d.push({method:k,sg:c})}}else{c=0;for(e=d.length;c<e;c++)if(d[c].method==k){d[c].sg.push([a,b]);return}rc&&k===rc.prototype.e.jf?d.unshift({method:k,sg:[[a,b]]}):d.push({method:k,sg:[[a,b]]})}};Lb=q;t.prototype.yk=function(){return this.ka?this.type.d.length:this.d.length};t.prototype.Ic=function(){return this.ka?this.type.d:
this.d};t.prototype.hh=function(a){a&&(a.b.ib().Kb.vc?(this.ka&&(L(this.d),Ba(this.M,a.type.d),this.ka=!1),a=this.M.indexOf(a),-1!==a&&(this.d.push(this.M[a]),this.M.splice(a,1))):(this.ka=!1,L(this.d),this.d[0]=a))};qb=t;window._c2hh_="189BF63191E29A43747095FF656474172E7DF1B8";r.prototype.xa=function(a){var b,c=this.parent;if(this.group)for(this.uj=!0;c;){if(!c.group){this.uj=!1;break}c=c.parent}this.Ml=!this.En()&&(!this.parent||this.parent.group&&this.parent.uj);this.sn=!!a;this.we=this.ca.slice(0);
for(c=this.parent;c;){a=0;for(b=c.ca.length;a<b;a++)this.dr(c.ca[a]);c=c.parent}this.ca=m(this.ca);this.we=m(this.we);a=0;for(b=this.Pa.length;a<b;a++)this.Pa[a].xa();a=0;for(b=this.Ec.length;a<b;a++)this.Ec[a].xa();a=0;for(b=this.Bc.length;a<b;a++)this.Bc[a].xa(a<b-1&&this.Bc[a+1].vi)};r.prototype.Cu=function(a){if(this.Ag!==!!a){this.Ag=!!a;var b;a=0;for(b=this.Lh.length;a<b;++a)this.Lh[a].Ip();0<b&&this.b.Z.Le&&this.b.Z.Le.Rl()}};r.prototype.wm=function(a){h(a,this.ca)};r.prototype.dr=function(a){h(a,
this.we)};r.prototype.kj=function(){this.op=!0;this.parent&&this.parent.kj()};r.prototype.En=function(){return this.Pa.length?this.Pa[0].trigger:!1};r.prototype.Ba=function(){var a,b,c=!1,e=this.b,g=this.b.ib();g.Kb=this;var d=this.Pa;this.vi||(g.dk=!1);if(this.vc){0===d.length&&(c=!0);g.Oa=0;for(a=d.length;g.Oa<a;g.Oa++)b=d[g.Oa],b.trigger||(b=b.Ba())&&(c=!0);(g.Te=c)&&this.ej()}else{g.Oa=0;for(a=d.length;g.Oa<a;g.Oa++)if(b=d[g.Oa].Ba(),!b){g.Te=!1;this.Ml&&e.je&&e.fb();return}g.Te=!0;this.ej()}this.Zr(g)};
r.prototype.Zr=function(a){a.Te&&this.sn&&(a.dk=!0);this.Ml&&this.b.je&&this.b.fb()};r.prototype.vu=function(a){this.b.ib().Kb=this;this.Pa[a].Ba()&&(this.ej(),this.b.ib().Te=!0)};r.prototype.ej=function(){var a=this.b.ib(),b;a.Hb=0;for(b=this.Ec.length;a.Hb<b;a.Hb++)if(this.Ec[a.Hb].Ba())return;this.Wo()};r.prototype.su=function(){var a=this.b.ib(),b;for(b=this.Ec.length;a.Hb<b;a.Hb++)if(this.Ec[a.Hb].Ba())return;this.Wo()};r.prototype.Wo=function(){if(this.Bc.length){var a,b,c,e,g=this.Bc.length-
1;this.b.aj(this);if(this.op)for(a=0,b=this.Bc.length;a<b;a++)c=this.Bc[a],(e=!this.uj||!this.group&&a<g)&&this.b.$i(c.ca),c.Ba(),e?this.b.$e(c.ca):this.b.Vj(c.ca);else for(a=0,b=this.Bc.length;a<b;a++)this.Bc[a].Ba();this.b.Vi()}};r.prototype.wu=function(){var a=this.b.ib();a.Kb=this;var b=!1,c;a.Oa=0;for(c=this.Pa.length;a.Oa<c;a.Oa++)if(this.Pa[a.Oa].Ba())b=!0;else if(!this.vc)return!1;return this.vc?b:!0};r.prototype.tu=function(){this.b.tg++;var a=this.b.ib().Oa,b=this.b.aj(this);if(!this.vc)for(b.Oa=
a+1,a=this.Pa.length;b.Oa<a;b.Oa++)if(!this.Pa[b.Oa].Ba()){this.b.Vi();return}this.ej();this.b.Vi()};r.prototype.At=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.Pa[b].type===a.type)return!1;return!0};dc=r;b.prototype.xa=function(){var a,b,c;a=0;for(b=this.H.length;a<b;a++)c=this.H[a],c.xa(),c.Dc&&(this.fg=!0)};b.prototype.yu=function(){return!0};b.prototype.Cl=function(){var a,b;a=0;for(b=this.H.length;a<b;a++)this.ra[a]=this.H[a].get();return Wa(this.ab.apply(this.b.ld,this.ra),
this.Hk)};b.prototype.xu=function(){var a,b;a=0;for(b=this.H.length;a<b;a++)this.ra[a]=this.H[a].get();a=this.ab.apply(this.Be?this.Be:this.type,this.ra);this.type.$d();return a};b.prototype.Bl=function(){var a,b,c,e,g,d,k,h,f=this.type,u=f.ba(),p=this.Ub.vc&&!this.trigger;b=0;var w=f.fc,x=f.J,m=f.wd,r=this.Hc,q=-1<r,t=this.fg,H=this.H,E=this.ra,I=this.Hk,G=this.ab,y;if(t)for(b=0,g=H.length;b<g;++b)d=H[b],d.Dc||(E[b]=d.get(0));else for(b=0,g=H.length;b<g;++b)E[b]=H[b].get(0);if(u.ka){L(u.d);L(u.M);
y=f.d;a=0;for(e=y.length;a<e;++a){h=y[a];if(t)for(b=0,g=H.length;b<g;++b)d=H[b],d.Dc&&(E[b]=d.get(a));q?(b=0,x&&(b=h.type.sf[m]),b=G.apply(h.C[r+b],E)):b=G.apply(h,E);(k=Wa(b,I))?u.d.push(h):p&&u.M.push(h)}f.finish&&f.finish(!0);u.ka=!1;f.$d();return u.yk()}c=0;y=(k=p&&!this.Ub.At(this))?u.M:u.d;var D=!1;a=0;for(e=y.length;a<e;++a){h=y[a];if(t)for(b=0,g=H.length;b<g;++b)d=H[b],d.Dc&&(E[b]=d.get(a));q?(b=0,x&&(b=h.type.sf[m]),b=G.apply(h.C[r+b],E)):b=G.apply(h,E);if(Wa(b,I))if(D=!0,k){if(u.d.push(h),
w)for(b=0,g=h.siblings.length;b<g;b++)d=h.siblings[b],d.type.ba().d.push(d)}else{y[c]=h;if(w)for(b=0,g=h.siblings.length;b<g;b++)d=h.siblings[b],d.type.ba().d[c]=d;c++}else if(k){y[c]=h;if(w)for(b=0,g=h.siblings.length;b<g;b++)d=h.siblings[b],d.type.ba().M[c]=d;c++}else if(p&&(u.M.push(h),w))for(b=0,g=h.siblings.length;b<g;b++)d=h.siblings[b],d.type.ba().M.push(d)}Aa(y,c);if(w)for(x=f.Jb,a=0,e=x.length;a<e;a++)h=x[a].ba(),k?Aa(h.M,c):Aa(h.d,c);c=D;if(k&&!D)for(a=0,e=u.d.length;a<e;a++){h=u.d[a];if(t)for(b=
0,g=H.length;b<g;b++)d=H[b],d.Dc&&(E[b]=d.get(a));b=q?G.apply(h.C[r],E):G.apply(h,E);if(Wa(b,I)){D=!0;break}}f.finish&&f.finish(c||p);return p?D:u.yk()};Zb=b;c.prototype.xa=function(){var a,b,c;a=0;for(b=this.H.length;a<b;a++)c=this.H[a],c.xa(),c.Dc&&(this.fg=!0)};c.prototype.Cl=function(){var a=this.b,b,c,e=this.H,g=this.ra;b=0;for(c=e.length;b<c;++b)g[b]=e[b].get();return this.ab.apply(a.ld,g)};c.prototype.Bl=function(){var a=this.type,b=this.Hc,c=a.wd,e=this.fg,g=this.H,d=this.ra,k=this.ab,h=a.ba().Ic(),
a=a.J,f=-1<b,u,p,w,x,m,r;if(e)for(p=0,x=g.length;p<x;++p)m=g[p],m.Dc||(d[p]=m.get(0));else for(p=0,x=g.length;p<x;++p)d[p]=g[p].get(0);u=0;for(w=h.length;u<w;++u){r=h[u];if(e)for(p=0,x=g.length;p<x;++p)m=g[p],m.Dc&&(d[p]=m.get(u));f?(p=0,a&&(p=r.type.sf[c]),k.apply(r.C[b+p],d)):k.apply(r,d)}return!1};$b=c;var w=[],u=-1;a.prototype.xa=function(){var a,b;if(11===this.type)this.Me=this.b.nn(this.Ah,this.Ub.parent);else if(13===this.type)for(a=0,b=this.cf.length;a<b;a++)this.cf[a].xa();this.$c&&this.$c.xa()};
a.prototype.Ot=function(a){this.Dc||!a||a.ma.mj||(this.Dc=!0)};a.prototype.fp=function(){this.Dc=!0};a.prototype.dt=function(a){this.Nd=a||0;a=d();this.$c.get(a);u--;return a.data};a.prototype.et=function(a){this.Nd=a||0;a=d();this.$c.get(a);u--;return A(a.data)?a.data:""};a.prototype.kt=function(){return this.object};a.prototype.bt=function(){return this.Qm};a.prototype.it=function(a){this.Nd=a||0;a=d();this.$c.get(a);u--;return a.Ra()?this.b.zd(a.data):this.b.wg(a.data)};a.prototype.jt=function(){return this.Ta};
a.prototype.ht=function(){return this.key};a.prototype.gt=function(){return this.index};a.prototype.ft=function(a){a=a||0;var b=this.wc.type,c=null,c=b.ba(),e=c.Ic();if(e.length)c=e[a%e.length].type;else if(c.M.length)c=c.M[a%c.M.length].type;else if(b.d.length)c=b.d[a%b.d.length].type;else return 0;return this.index+c.Xh[b.wd]};a.prototype.ct=function(){return this.Me};a.prototype.$s=function(){return this.bn};a.prototype.lt=function(){var a,b;a=0;for(b=this.cf.length;a<b;a++)this.zh[a]=this.cf[a].get();
return this.zh};ac=a;e.prototype.xa=function(){this.ca=m(this.ca)};e.prototype.bf=function(a){var b=this.b.ln();this.parent&&!this.Mg&&b?(this.Xe>=b.length&&(b.length=this.Xe+1),b[this.Xe]=a):this.data=a};e.prototype.yg=function(){var a=this.b.ln();return!this.parent||this.Mg||!a||this.ti?this.data:this.Xe>=a.length||"undefined"===typeof a[this.Xe]?this.Dk:a[this.Xe]};e.prototype.Ba=function(){!this.parent||this.Mg||this.ti||this.bf(this.Dk)};Vb=e;k.prototype.toString=function(){return"include:"+
this.Dg.toString()};k.prototype.xa=function(){this.Dg=this.b.fk[this.tt];this.sheet.tn.add(this);this.ca=m(this.ca);for(var a=this.parent;a;)a.group&&a.Lh.push(this),a=a.parent;this.Ip()};k.prototype.Ba=function(){this.parent&&this.b.kh(this.b.k);this.Dg.zk||this.Dg.Ba(!0);this.parent&&this.b.$e(this.b.k)};k.prototype.Ip=function(){for(var a=this.parent;a;){if(a.group&&!a.Ag){this.Tb=!1;return}a=a.parent}this.Tb=!0};ec=k;g.prototype.reset=function(a){this.Kb=a;this.Hb=this.Oa=0;L(this.rp);this.dk=
this.Te=!1};Ub=g})();
(function(){function f(h,b){this.wc=h;this.b=h.b;this.type=b[0];this.get=[this.ts,this.os,this.Cs,this.Fs,this.bs,this.Ds,this.xs,this.ls,this.ws,this.Bs,this.cs,this.As,this.ms,this.ys,this.us,this.vs,this.qs,this.rs,this.ks,this.Es,this.zs,this.ss,this.js,this.ns][this.type];var c=null;this.Hd=this.H=this.ra=this.ab=this.sj=this.second=this.first=this.value=null;this.Hc=-1;this.Jc=null;this.Mp=-1;this.Me=this.Ah=null;this.Tf=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new cc(h,b[1]);break;case 18:this.first=new cc(h,b[1]);this.second=new cc(h,b[2]);this.sj=new cc(h,b[3]);break;case 19:this.ab=this.b.Vd(b[1]);this.ab!==U.prototype.Qa.random&&this.ab!==U.prototype.Qa.or||this.wc.fp();this.ra=[];this.H=[];3===b.length?(c=b[2],this.ra.length=c.length+1):this.ra.length=1;break;case 20:this.Hd=this.b.k[b[1]];this.Hc=-1;this.ab=this.b.Vd(b[2]);this.Tf=b[3];hc.Function&&this.ab===hc.Function.prototype.Qa.iv&&this.wc.fp();b[4]?this.Jc=new cc(h,b[4]):this.Jc=null;this.ra=
[];this.H=[];6===b.length?(c=b[5],this.ra.length=c.length+1):this.ra.length=1;break;case 21:this.Hd=this.b.k[b[1]];this.Tf=b[2];b[3]?this.Jc=new cc(h,b[3]):this.Jc=null;this.Mp=b[4];break;case 22:this.Hd=this.b.k[b[1]];this.Hd.fi(b[2]);this.Hc=this.Hd.nk(b[2]);this.ab=this.b.Vd(b[3]);this.Tf=b[4];b[5]?this.Jc=new cc(h,b[5]):this.Jc=null;this.ra=[];this.H=[];7===b.length?(c=b[6],this.ra.length=c.length+1):this.ra.length=1;break;case 23:this.Ah=b[1],this.Me=null}this.wc.Ot(this.Hd);4<=this.type&&17>=
this.type&&(this.first=new cc(h,b[1]),this.second=new cc(h,b[2]));if(c){var d,a;d=0;for(a=c.length;d<a;d++)this.H.push(new cc(h,c[d]))}}function p(){++r;t.length===r&&t.push(new bc);return t[r]}function m(h,b,c){var d,a;d=0;for(a=h.length;d<a;++d)h[d].get(c),b[d+1]=c.data}function q(h,b){this.type=h||fc.hf;this.data=b||0;this.Ze=null;this.type==fc.hf&&(this.data=Math.floor(this.data))}f.prototype.xa=function(){23===this.type&&(this.Me=this.wc.b.nn(this.Ah,this.wc.Ub.parent));this.first&&this.first.xa();
this.second&&this.second.xa();this.sj&&this.sj.xa();this.Jc&&this.Jc.xa();if(this.H){var h,b;h=0;for(b=this.H.length;h<b;h++)this.H[h].xa()}};var t=[],r=-1;f.prototype.Es=function(h){var b=this.H,c=this.ra;c[0]=h;h=p();m(b,c,h);--r;this.ab.apply(this.b.ld,c)};f.prototype.zs=function(h){var b=this.Hd,c=this.ra,d=this.H,a=this.Jc,e=this.ab,k=this.wc.Nd,g=b.ba(),f=g.Ic();if(!f.length)if(g.M.length)f=g.M;else{this.Tf?h.Cb(""):h.W(0);return}c[0]=h;h.Ze=b;h=p();m(d,c,h);a&&(a.get(h),h.Ra()&&(k=h.data,f=
b.d));--r;b=f.length;if(k>=b||k<=-b)k%=b;0>k&&(k+=b);e.apply(f[k],c)};f.prototype.js=function(h){var b=this.Hd,c=this.ra,d=this.H,a=this.Jc,e=this.Hc,k=this.ab,g=this.wc.Nd,f=b.ba(),w=f.Ic();if(!w.length)if(f.M.length)w=f.M;else{this.Tf?h.Cb(""):h.W(0);return}c[0]=h;h.Ze=b;h=p();m(d,c,h);a&&(a.get(h),h.Ra()&&(g=h.data,w=b.d));--r;d=w.length;if(g>=d||g<=-d)g%=d;0>g&&(g+=d);g=w[g];w=0;b.J&&(w=g.type.sf[b.wd]);k.apply(g.C[e+w],c)};f.prototype.ss=function(h){var b=this.Jc,c=this.Hd,d=this.Mp,a=this.wc.Nd,
e=c.ba(),k=e.Ic();if(!k.length)if(e.M.length)k=e.M;else{this.Tf?h.Cb(""):h.W(0);return}if(b){e=p();b.get(e);if(e.Ra()){a=e.data;k=c.d;0!==k.length&&(a%=k.length,0>a&&(a+=k.length));a=c.rk(a);c=a.Ga[d];A(c)?h.Cb(c):h.p(c);--r;return}--r}b=k.length;if(a>=b||a<=-b)a%=b;0>a&&(a+=b);a=k[a];k=0;c.J&&(k=a.type.Xh[c.wd]);c=a.Ga[d+k];A(c)?h.Cb(c):h.p(c)};f.prototype.ts=function(h){h.type=fc.hf;h.data=this.value};f.prototype.os=function(h){h.type=fc.gf;h.data=this.value};f.prototype.Cs=function(h){h.type=fc.String;
h.data=this.value};f.prototype.Fs=function(h){this.first.get(h);h.Ra()&&(h.data=-h.data)};f.prototype.bs=function(h){this.first.get(h);var b=p();this.second.get(b);h.Ra()&&b.Ra()&&(h.data+=b.data,b.zf()&&h.If());--r};f.prototype.Ds=function(h){this.first.get(h);var b=p();this.second.get(b);h.Ra()&&b.Ra()&&(h.data-=b.data,b.zf()&&h.If());--r};f.prototype.xs=function(h){this.first.get(h);var b=p();this.second.get(b);h.Ra()&&b.Ra()&&(h.data*=b.data,b.zf()&&h.If());--r};f.prototype.ls=function(h){this.first.get(h);
var b=p();this.second.get(b);h.Ra()&&b.Ra()&&(h.data/=b.data,h.If());--r};f.prototype.ws=function(h){this.first.get(h);var b=p();this.second.get(b);h.Ra()&&b.Ra()&&(h.data%=b.data,b.zf()&&h.If());--r};f.prototype.Bs=function(h){this.first.get(h);var b=p();this.second.get(b);h.Ra()&&b.Ra()&&(h.data=Math.pow(h.data,b.data),b.zf()&&h.If());--r};f.prototype.cs=function(h){this.first.get(h);var b=p();this.second.get(b);b.Cf()||h.Cf()?this.es(h,b):this.ds(h,b);--r};f.prototype.es=function(h,b){h.Cf()&&
b.Cf()?this.hs(h,b):this.gs(h,b)};f.prototype.hs=function(h,b){h.data+=b.data};f.prototype.gs=function(h,b){h.Cf()?h.data+=(Math.round(1E10*b.data)/1E10).toString():h.Cb(h.data.toString()+b.data)};f.prototype.ds=function(h,b){h.W(h.data&&b.data?1:0)};f.prototype.As=function(h){this.first.get(h);var b=p();this.second.get(b);h.Ra()&&b.Ra()&&(h.data||b.data?h.W(1):h.W(0));--r};f.prototype.ks=function(h){this.first.get(h);h.data?this.second.get(h):this.sj.get(h)};f.prototype.ms=function(h){this.first.get(h);
var b=p();this.second.get(b);h.W(h.data===b.data?1:0);--r};f.prototype.ys=function(h){this.first.get(h);var b=p();this.second.get(b);h.W(h.data!==b.data?1:0);--r};f.prototype.us=function(h){this.first.get(h);var b=p();this.second.get(b);h.W(h.data<b.data?1:0);--r};f.prototype.vs=function(h){this.first.get(h);var b=p();this.second.get(b);h.W(h.data<=b.data?1:0);--r};f.prototype.qs=function(h){this.first.get(h);var b=p();this.second.get(b);h.W(h.data>b.data?1:0);--r};f.prototype.rs=function(h){this.first.get(h);
var b=p();this.second.get(b);h.W(h.data>=b.data?1:0);--r};f.prototype.ns=function(h){var b=this.Me.yg();ia(b)?h.p(b):h.Cb(b)};cc=f;q.prototype.zf=function(){return this.type===fc.gf};q.prototype.Ra=function(){return this.type===fc.hf||this.type===fc.gf};q.prototype.Cf=function(){return this.type===fc.String};q.prototype.If=function(){this.zf()||(this.Cf()&&(this.data=parseFloat(this.data)),this.type=fc.gf)};q.prototype.W=function(h){this.type=fc.hf;this.data=Math.floor(h)};q.prototype.p=function(h){this.type=
fc.gf;this.data=h};q.prototype.Cb=function(h){this.type=fc.String;this.data=h};q.prototype.gp=function(h){ia(h)?(this.type=fc.gf,this.data=h):A(h)?(this.type=fc.String,this.data=h.toString()):(this.type=fc.hf,this.data=0)};bc=q;fc={hf:0,gf:1,String:2}})();function U(f){this.b=f;this.Fb=[]}
U.prototype.jc=function(){var f={},p,m,q,t,r,h,b,c;f.waits=[];var d=f.waits,a;p=0;for(m=this.Fb.length;p<m;p++){h=this.Fb[p];a={t:h.time,st:h.mp,s:h.Hl,ev:h.qf.K,sm:[],sols:{}};h.qf.Ec[h.Hb]&&(a.act=h.qf.Ec[h.Hb].K);q=0;for(t=h.ca.length;q<t;q++)a.sm.push(h.ca[q].K);for(r in h.rb)if(h.rb.hasOwnProperty(r)){b=this.b.k[parseInt(r,10)];c={sa:h.rb[r].fj,insts:[]};q=0;for(t=h.rb[r].Ad.length;q<t;q++)c.insts.push(h.rb[r].Ad[q].uid);a.sols[b.K.toString()]=c}d.push(a)}return f};
U.prototype.Mc=function(f){f=f.waits;var p,m,q,t,r,h,b,c,d,a,e;L(this.Fb);p=0;for(m=f.length;p<m;p++)if(h=f[p],c=this.b.Im[h.ev.toString()]){d=-1;q=0;for(t=c.Ec.length;q<t;q++)if(c.Ec[q].K===h.act){d=q;break}if(-1!==d){b={rb:{},ca:[],bk:!1};b.time=h.t;b.mp=h.st||"";b.Hl=!!h.s;b.qf=c;b.Hb=d;q=0;for(t=h.sm.length;q<t;q++)(c=this.b.ii(h.sm[q]))&&b.ca.push(c);for(r in h.sols)if(h.sols.hasOwnProperty(r)&&(c=this.b.ii(parseInt(r,10)))){d=h.sols[r];a={fj:d.sa,Ad:[]};q=0;for(t=d.insts.length;q<t;q++)(e=this.b.hi(d.insts[q]))&&
a.Ad.push(e);b.rb[c.index.toString()]=a}this.Fb.push(b)}}};
(function(){function f(){}function p(){}function m(){}var q=U.prototype;f.prototype.$p=function(){return!0};f.prototype.cm=function(){return!0};f.prototype.uq=function(){return!0};f.prototype.Zp=function(h){var b=this.b.kn(),c=b.P.Every_lastTime||0,d=this.b.Sa.L;"undefined"===typeof b.P.Every_seconds&&(b.P.Every_seconds=h);var a=b.P.Every_seconds;if(d>=c+a)return b.P.Every_lastTime=c+a,d>=b.P.Every_lastTime+.04&&(b.P.Every_lastTime=d),b.P.Every_seconds=h,!0;d<c-.1&&(b.P.Every_lastTime=d);return!1};
f.prototype.Wp=function(h,b,c){return gc(h.yg(),b,c)};f.prototype.Yp=function(){var h=this.b.ib();return h.dk?!1:!h.Te};f.prototype.dm=function(){return!0};f.prototype.oq=function(){return!0};f.prototype.Gj=function(){return!0};f.prototype.jm=function(){return!0};f.prototype.vq=function(){return!0};f.prototype.Fh=function(){return!0};f.prototype.Pp=function(h,b,c){return Pa(Q(h),Q(c))<=Q(b)};f.prototype.gq=function(h,b){return Ta(Q(h),Q(b))};f.prototype.fq=function(h,b,c){h=Na(h);b=Na(b);c=Na(c);
return Ta(c,b)?Ta(h,b)&&!Ta(h,c):!(!Ta(h,b)&&Ta(h,c))};q.e=new f;p.prototype.bq=function(h){this.b.Ng||this.b.jg||(this.b.jg=h)};p.prototype.Mq=function(h,b){0===h.Cj?ia(b)?h.bf(b):h.bf(parseFloat(b)):1===h.Cj&&h.bf(b.toString())};p.prototype.Op=function(h,b){0===h.Cj?ia(b)?h.bf(h.yg()+b):h.bf(h.yg()+parseFloat(b)):1===h.Cj&&h.bf(h.yg()+b.toString())};var t=[],r=[];p.prototype.Uq=function(h){if(!(0>h)){var b,c,d,a=this.b.ib(),e;t.length?e=t.pop():e={rb:{},ca:[]};e.bk=!1;e.time=this.b.Sa.L+h;e.mp=
"";e.Hl=!1;e.qf=a.Kb;e.Hb=a.Hb+1;h=0;for(b=this.b.k.length;h<b;h++)d=this.b.k[h],c=d.ba(),c.ka&&-1===a.Kb.ca.indexOf(d)||(e.ca.push(d),d=void 0,r.length?d=r.pop():d={Ad:[]},d.fj=!1,d.fj=c.ka,Ba(d.Ad,c.d),e.rb[h.toString()]=d);this.Fb.push(e);return!0}};q.aa=new p;m.prototype["int"]=function(h,b){A(b)?(h.W(parseInt(b,10)),isNaN(h.data)&&(h.data=0)):h.W(b)};m.prototype["float"]=function(h,b){A(b)?(h.p(parseFloat(b)),isNaN(h.data)&&(h.data=0)):h.p(b)};m.prototype.random=function(h,b,c){void 0===c?h.p(Math.random()*
b):h.p(Math.random()*(c-b)+b)};m.prototype.sqrt=function(h,b){h.p(Math.sqrt(b))};m.prototype.abs=function(h,b){h.p(Math.abs(b))};m.prototype.round=function(h,b){h.W(Math.round(b))};m.prototype.floor=function(h,b){h.W(Math.floor(b))};m.prototype.ceil=function(h,b){h.W(Math.ceil(b))};m.prototype.sin=function(h,b){h.p(Math.sin(Q(b)))};m.prototype.cos=function(h,b){h.p(Math.cos(Q(b)))};m.prototype.tan=function(h,b){h.p(Math.tan(Q(b)))};m.prototype.asin=function(h,b){h.p(Ga(Math.asin(b)))};m.prototype.acos=
function(h,b){h.p(Ga(Math.acos(b)))};m.prototype.atan=function(h,b){h.p(Ga(Math.atan(b)))};m.prototype.exp=function(h,b){h.p(Math.exp(b))};m.prototype.log10=function(h,b){h.p(Math.log(b)/Math.LN10)};m.prototype.max=function(h){var b=arguments[1];"number"!==typeof b&&(b=0);var c,d,a;c=2;for(d=arguments.length;c<d;c++)a=arguments[c],"number"===typeof a&&b<a&&(b=a);h.p(b)};m.prototype.min=function(h){var b=arguments[1];"number"!==typeof b&&(b=0);var c,d,a;c=2;for(d=arguments.length;c<d;c++)a=arguments[c],
"number"===typeof a&&b>a&&(b=a);h.p(b)};m.prototype.Ie=function(h){h.p(this.b.Ie)};m.prototype.Zf=function(h){h.p(this.b.Zf)};m.prototype.time=function(h){h.p(this.b.Sa.L)};m.prototype.Pd=function(h){h.W(this.b.Pd)};m.prototype.Ni=function(h){h.W(this.b.Ni)};m.prototype.kk=function(h){h.W(this.b.kk)};m.prototype.j=function(h,b,c,d,a){h.p(Ga(Oa(b,c,d,a)))};m.prototype.left=function(h,b,c){h.Cb(A(b)?b.substr(0,c):"")};m.prototype.right=function(h,b,c){h.Cb(A(b)?b.substr(b.length-c):"")};m.prototype.replace=
function(h,b,c,d){A(b)&&A(c)&&A(d)?h.Cb(b.replace(new RegExp(fb(c),"gi"),d)):h.Cb(A(b)?b:"")};m.prototype.trim=function(h,b){h.Cb(A(b)?b.trim():"")};m.prototype.or=function(h){var b=sa(Math.random()*(arguments.length-1));h.gp(arguments[b+1])};m.prototype.Xj=function(h){h.p(this.b.Xj/1E3)};m.prototype.Fi=function(h){h.p(this.b.Fi)};q.Qa=new m;q.uu=function(){var h,b,c,d,a,e,k=this.b.ib();h=0;for(c=this.Fb.length;h<c;h++){d=this.Fb[h];if(-1===d.time){if(!d.Hl)continue}else if(d.time>this.b.Sa.L)continue;
k.Kb=d.qf;k.Hb=d.Hb;k.Oa=0;for(b in d.rb)d.rb.hasOwnProperty(b)&&(a=this.b.k[parseInt(b,10)].ba(),e=d.rb[b],a.ka=e.fj,Ba(a.d,e.Ad),a=e,L(a.Ad),r.push(a));d.qf.su();this.b.Vj(d.ca);d.bk=!0}b=h=0;for(c=this.Fb.length;h<c;h++)d=this.Fb[h],this.Fb[b]=d,d.bk?(Ya(d.rb),L(d.ca),t.push(d)):b++;Aa(this.Fb,b)}})();
(function(){pb=function(f,m){var q=f[1],t=f[3],r=f[4],h=f[5],b=f[6],c=f[7],d=f[8];m.e||(m.e={});m.aa||(m.aa={});m.Qa||(m.Qa={});var a=m.e,e=m.aa,k=m.Qa;t&&(a.Xp=function(a,b){return gc(this.x,a,b)},a.mv=function(a,b){return gc(this.y,a,b)},a.sv=function(){var a=this.i;this.Na();var b=this.Ya;return!(b.right<a.X||b.bottom<a.Y||b.left>a.ea||b.top>a.da)},a.tv=function(){this.Na();var a=this.Ya,b=this.b.Z;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.Ev=function(a,b,c){var e=this.ba(),
d=e.Ic();if(!d.length)return!1;var k=d[0],h=k,f=Va(k.x,k.y,b,c),p,m,r;p=1;for(m=d.length;p<m;p++)if(k=d[p],r=Va(k.x,k.y,b,c),0===a&&r<f||1===a&&r>f)f=r,h=k;e.hh(h);return!0},e.Pq=function(a){this.x!==a&&(this.x=a,this.Ma())},e.Uv=function(a){this.y!==a&&(this.y=a,this.Ma())},e.Jq=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.Ma()},e.Sv=function(a,b){var c=a.Vs(this);if(c){var e;c.qk?(e=c.qk(b,!0),c=c.qk(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.Ma()}},
e.xv=function(a){0!==a&&(this.x+=Math.cos(this.j)*a,this.y+=Math.sin(this.j)*a,this.Ma())},e.wv=function(a,b){0!==b&&(this.x+=Math.cos(Q(a))*b,this.y+=Math.sin(Q(a))*b,this.Ma())},k.pm=function(a){a.p(this.x)},k.qm=function(a){a.p(this.y)},k.Ie=function(a){a.p(this.b.mn(this))});r&&(a.lv=function(a,b){return gc(this.width,a,b)},a.jv=function(a,b){return gc(this.height,a,b)},e.Oq=function(a){this.width!==a&&(this.width=a,this.Ma())},e.Qv=function(a){this.height!==a&&(this.height=a,this.Ma())},e.Kq=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.Ma()},k.Vq=function(a){a.p(this.width)},k.cq=function(a){a.p(this.height)},k.dv=function(a){this.Na();a.p(this.Ya.left)},k.hv=function(a){this.Na();a.p(this.Ya.top)},k.gv=function(a){this.Na();a.p(this.Ya.right)},k.cv=function(a){this.Na();a.p(this.Ya.bottom)});h&&(a.Pp=function(a,b){return Pa(this.j,Q(b))<=Q(a)},a.gq=function(a){return Ta(this.j,Q(a))},a.fq=function(a,b){var c=Na(a),e=Na(b),d=Ja(this.j);return Ta(e,
c)?Ta(d,c)&&!Ta(d,e):!(!Ta(d,c)&&Ta(d,e))},e.Mv=function(a){a=Q(Ia(a));isNaN(a)||this.j===a||(this.j=a,this.Ma())},e.Iv=function(a){0===a||isNaN(a)||(this.j+=Q(a),this.j=Ja(this.j),this.Ma())},e.Jv=function(a){0===a||isNaN(a)||(this.j-=Q(a),this.j=Ja(this.j),this.Ma())},e.Kv=function(a,b){var c=Sa(this.j,Q(b),Q(a));isNaN(c)||this.j===c||(this.j=c,this.Ma())},e.Lv=function(a,b,c){a=Sa(this.j,Math.atan2(c-this.y,b-this.x),Q(a));isNaN(a)||this.j===a||(this.j=a,this.Ma())},e.Tv=function(a,b){var c=Math.atan2(b-
this.y,a-this.x);isNaN(c)||this.j===c||(this.j=c,this.Ma())},k.bv=function(a){a.p(Ma(this.j))});q||(a.kv=function(a,b,c){return gc(this.Ga[a],b,c)},a.qv=function(a){return this.Ga[a]},a.Fv=function(a,b){var c=this.ba(),e=c.Ic();if(!e.length)return!1;var d=e[0],k=d,h=d.Ga[b],f,p,m;f=1;for(p=e.length;f<p;f++)if(d=e[f],m=d.Ga[b],0===a&&m<h||1===a&&m>h)h=m,k=d;c.hh(k);return!0},a.Dv=function(a){var b,c,e,d,k;if(this.b.kn().Hk){k=this.ba();if(k.ka)for(k.ka=!1,L(k.d),L(k.M),e=this.d,b=0,c=e.length;b<c;b++)d=
e[b],d.uid===a?k.M.push(d):k.d.push(d);else{e=b=0;for(c=k.d.length;b<c;b++)d=k.d[b],k.d[e]=d,d.uid===a?k.M.push(d):e++;Aa(k.d,e)}this.$d();return!!k.d.length}d=this.b.hi(a);if(!d)return!1;k=this.ba();if(!k.ka&&-1===k.d.indexOf(d))return!1;if(this.J)for(a=d.type.la,b=0,c=a.length;b<c;b++){if(a[b]===this)return k.hh(d),this.$d(),!0}else if(d.type===this)return k.hh(d),this.$d(),!0;return!1},a.am=function(){return!0},a.pq=function(){return!0},e.Rv=function(a,b){var c=this.Ga;ia(c[a])?c[a]=ia(b)?b:parseFloat(b):
A(c[a])&&(c[a]=A(b)?b:b.toString())},e.av=function(a,b){var c=this.Ga;ia(c[a])?c[a]=ia(b)?c[a]+b:c[a]+parseFloat(b):A(c[a])&&(c[a]=A(b)?c[a]+b:c[a]+b.toString())},e.Vv=function(a,b){var c=this.Ga;ia(c[a])&&(c[a]=ia(b)?c[a]-b:c[a]-parseFloat(b))},e.Nv=function(a,b){this.Ga[a]=b?1:0},e.Wv=function(a){this.Ga[a]=1-this.Ga[a]},e.ov=function(){this.b.ze(this)},e.kq||(e.kq=function(a){var b,c;try{b=JSON.parse(a)}catch(e){return}this.b.Di(this,b,!0);this.Yd&&this.Yd();if(this.C)for(a=0,b=this.C.length;a<
b;++a)c=this.C[a],c.Yd&&c.Yd()}),k.nv=function(a){var b=a.Ze.d.length,c,e,d;c=0;for(e=this.b.Xc.length;c<e;c++)d=this.b.Xc[c],a.Ze.J?0<=d.type.la.indexOf(a.Ze)&&b++:d.type===a.Ze&&b++;a.W(b)},k.Hv=function(a){a.W(a.Ze.ba().Ic().length)},k.Xv=function(a){a.W(this.uid)},k.pv=function(a){a.W(this.zg())},k.Zl||(k.Zl=function(a){a.Cb(JSON.stringify(this.b.Dl(this,!0)))}));b&&(a.iq=function(){return this.visible},e.om=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.V=!0)},a.Vp=function(a,b){return gc(lb(100*
this.opacity),a,b)},e.Iq=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.V=!0)},k.Opacity=function(a){a.p(lb(100*this.opacity))});c&&(a.rv=function(a){return a?this.i===a:!1},a.Gv=function(a){var b=this.ba(),c=b.Ic();if(!c.length)return!1;var e=c[0],d=e,k,h;k=1;for(h=c.length;k<h;k++)if(e=c[k],0===a){if(e.i.index>d.i.index||e.i.index===d.i.index&&e.bd()>d.bd())d=e}else if(e.i.index<d.i.index||e.i.index===d.i.index&&e.bd()<d.bd())d=e;b.hh(d);return!0},e.Av=function(){var a=
this.i,b=a.d;b.length&&b[b.length-1]===this||(a.Sf(this,!1),a.hg(this,!1),this.b.V=!0)},e.yv=function(){var a=this.i,b=a.d;b.length&&b[0]===this||(a.Sf(this,!1),a.hu(this),this.b.V=!0)},e.zv=function(a){a&&a!=this.i&&(this.i.Sf(this,!0),this.i=a,a.hg(this,!0),this.b.V=!0)},e.Zv=function(a,b){var c=0===a;if(b){var e=b.Qs(this);e&&e.uid!==this.uid&&(this.i.index!==e.i.index&&(this.i.Sf(this,!0),this.i=e.i,e.i.hg(this,!0)),this.i.Pt(this,e,c),this.b.V=!0)}},k.vv=function(a){a.W(this.i.qo)},k.uv=function(a){a.Cb(this.i.name)},
k.Yv=function(a){a.W(this.bd())});d&&(e.Ov=function(a,b){if(this.b.n){var c=this.type.pk(b);if(!(0>c)){var e=1===a;this.Wd[c]!==e&&(this.Wd[c]=e,this.Sc(),this.b.V=!0)}}},e.Pv=function(a,b,c){if(this.b.n){var e=this.type.pk(a);0>e||(a=this.type.D[e],e=this.qa[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.n.Zs(a.Ca,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.Tb&&(this.b.V=!0))))}})};Mb=function(){this.Rj=this.Lj=!0;this.type.Am=!0;this.b.V=!0;var f,m,q=this.Mj;f=0;for(m=q.length;f<m;++f)q[f](this);this.i.oc&&
this.Na()};Nb=function(f){f&&this.Mj.push(f)};Pb=function(){if(this.Lj){var f=this.Ya,m=this.Ce;f.set(this.x,this.y,this.x+this.width,this.y+this.height);f.offset(-this.Mb*this.width,-this.Nb*this.height);this.j?(f.offset(-this.x,-this.y),m.hp(f,this.j),m.offset(this.x,this.y),m.Jm(f)):m.lj(f);f.normalize();this.Lj=!1;this.Tu()}};var f=new wa(0,0,0,0);Qb=function(){if(this.i.oc){var p=this.i.eb,m=this.Ya;f.set(p.yb(m.left),p.zb(m.top),p.yb(m.right),p.zb(m.bottom));this.Ab.rg(f)||(this.Ab.right<this.Ab.left?
p.update(this,null,f):p.update(this,this.Ab,f),this.Ab.mg(f),this.i.Qc=!0)}};Rb=function(){if(this.Rj&&this.kg){this.Na();var p=this.type.Pm,m=this.Ya;f.set(p.yb(m.left),p.zb(m.top),p.yb(m.right),p.zb(m.bottom));this.ee.rg(f)||(this.ee.right<this.ee.left?p.update(this,null,f):p.update(this,this.ee,f),this.ee.mg(f),this.Rj=!1)}};Ob=function(f,m){return this.Ya.qc(f,m)&&this.Ce.qc(f,m)?this.yp?this.sw(f,m):this.Wc&&!this.Wc.Gt()?(this.Wc.lr(this.width,this.height,this.j),this.Wc.qc(f-this.x,m-this.y)):
!0:!1};Ib=function(){this.type.yj();return this.Qe};Sb=function(){this.i.Tl();return this.Tc};Tb=function(){L(this.S);var f,m,q,t=!0;f=0;for(m=this.Wd.length;f<m;f++)this.Wd[f]&&(q=this.type.D[f],this.S.push(q),q.Oc||(t=!1));this.Lp=!!this.S.length;this.Md=t};Jb=function(){return"Inst"+this.Ro};sb=function(f){if(f&&f.fc&&f.type!=this){var m,q,t;m=0;for(q=f.siblings.length;m<q;m++)if(t=f.siblings[m],t.type==this)return t}f=this.ba().Ic();return f.length?f[0]:null};tb=function(f){var m=this.ba().Ic();
return m.length?m[f.zg()%m.length]:null};rb=function(){if(this.Xf&&!this.J){var f,m;f=0;for(m=this.d.length;f<m;f++)this.d[f].Qe=f;var q=f,t=this.b.Xc;f=0;for(m=t.length;f<m;++f)t[f].type===this&&(t[f].Qe=q++);this.Xf=!1}};Gb=function(f){if(f<this.d.length)return this.d[f];f-=this.d.length;var m=this.b.Xc,q,t;q=0;for(t=m.length;q<t;++q)if(m[q].type===this){if(0===f)return m[q];--f}return null};ub=function(){return this.Od[this.Yc]};zb=function(){this.Yc++;this.Yc===this.Od.length?this.Od.push(new qb(this)):
(this.Od[this.Yc].ka=!0,L(this.Od[this.Yc].M))};Ab=function(){this.Yc++;this.Yc===this.Od.length&&this.Od.push(new qb(this));var f=this.Od[this.Yc],m=this.Od[this.Yc-1];m.ka?f.ka=!0:(f.ka=!1,Ba(f.d,m.d));L(f.M)};Bb=function(){this.Yc--};Cb=function(f){var m,q,t,r,h,b=0;if(!this.J)for(m=0,q=this.la.length;m<q;m++)for(h=this.la[m],t=0,r=h.na.length;t<r;t++){if(f===h.na[t].name)return this.P.lastBehIndex=b,h.na[t];b++}m=0;for(q=this.na.length;m<q;m++){if(f===this.na[m].name)return this.P.lastBehIndex=
b,this.na[m];b++}return null};Db=function(f){return this.fi(f)?this.P.lastBehIndex:-1};Eb=function(f){var m,q;m=0;for(q=this.D.length;m<q;m++)if(this.D[m].name===f)return m;return-1};Fb=function(){if(this.fc&&!this.J){var f,m,q,t,r,h,b;this.yj();h=this.ba();var c=h.ka,d=(f=this.b.ib())&&f.Kb&&f.Kb.vc;f=0;for(m=this.Jb.length;f<m;f++)if(r=this.Jb[f],r!==this&&(r.yj(),b=r.ba(),b.ka=c,!c)){L(b.d);q=0;for(t=h.d.length;q<t;++q)b.d[q]=r.rk(h.d[q].Qe);if(d)for(L(b.M),q=0,t=h.M.length;q<t;++q)b.M[q]=r.rk(h.M[q].Qe)}}};
Hb=function(){return"Type"+this.K};gc=function(f,m,q){if("undefined"===typeof f||"undefined"===typeof q)return!1;switch(m){case 0:return f===q;case 1:return f!==q;case 2:return f<q;case 3:return f<=q;case 4:return f>q;case 5:return f>=q;default:return!1}}})();var pc={};function sc(f){this.b=f}
(function(){function f(){return b.length?b.pop():[]}function p(c){var d,a;d=0;for(a=c.length;d<a;d++)Array.isArray(c[d])&&p(c[d]);L(c);b.push(c)}function m(){}function q(){}function t(){}var r=sc.prototype;r.xb=function(b){this.ma=b;this.b=b.b};r.xb.prototype.ja=function(){};r.Xa=function(b){this.type=b;this.b=b.b};var h=r.Xa.prototype,b=[];Array.isArray||(Array.isArray=function(b){return"[object Array]"===Object.prototype.toString.call(b)});h.ja=function(){this.nb=this.U[0];this.ob=this.U[1];this.pb=
this.U[2];this.hc||(this.Vc=f());var b=this.Vc;b.length=this.nb;var d,a,e;for(d=0;d<this.nb;d++)for(b[d]||(b[d]=f()),b[d].length=this.ob,a=0;a<this.ob;a++)for(b[d][a]||(b[d][a]=f()),b[d][a].length=this.pb,e=0;e<this.pb;e++)b[d][a][e]=0;this.dn=[];this.en=[];this.gn=[];this.xd=-1};h.eh=function(){var b;for(b=0;b<this.nb;b++)p(this.Vc[b]);L(this.Vc)};h.Kj=function(b,d,a){b=Math.floor(b);d=Math.floor(d);a=Math.floor(a);return isNaN(b)||0>b||b>this.nb-1||isNaN(d)||0>d||d>this.ob-1||isNaN(a)||0>a||a>this.pb-
1?0:this.Vc[b][d][a]};h.set=function(b,d,a,e){b=Math.floor(b);d=Math.floor(d);a=Math.floor(a);isNaN(b)||0>b||b>this.nb-1||isNaN(d)||0>d||d>this.ob-1||isNaN(a)||0>a||a>this.pb-1||(this.Vc[b][d][a]=e)};h.Os=function(){return JSON.stringify({c2array:!0,size:[this.nb,this.ob,this.pb],data:this.Vc})};h.jc=function(){return{size:[this.nb,this.ob,this.pb],data:this.Vc}};h.Mc=function(b){var d=b.size;this.nb=d[0];this.ob=d[1];this.pb=d[2];this.Vc=b.data};h.Ld=function(b,d,a){0>b&&(b=0);0>d&&(d=0);0>a&&(a=
0);if(this.nb!==b||this.ob!==d||this.pb!==a){this.nb=b;this.ob=d;this.pb=a;var e,k,g=this.Vc;g.length=b;for(b=0;b<this.nb;b++)for(fa(g[b])&&(g[b]=f()),g[b].length=d,e=0;e<this.ob;e++)for(fa(g[b][e])&&(g[b][e]=f()),g[b][e].length=a,k=0;k<this.pb;k++)fa(g[b][e][k])&&(g[b][e][k]=0)}};h.ur=function(){return 0<=this.xd&&this.xd<this.dn.length?this.dn[this.xd]:0};h.Wr=function(){return 0<=this.xd&&this.xd<this.en.length?this.en[this.xd]:0};h.cw=function(){return 0<=this.xd&&this.xd<this.gn.length?this.gn[this.xd]:
0};m.prototype.Xp=function(b,d,a){return gc(this.Kj(b,0,0),d,a)};h.Ih=function(b){this.b.$i(b.ca);b.tu();this.b.$e(b.ca)};r.e=new m;q.prototype.Kq=function(b,d,a){this.Ld(b,d,a)};q.prototype.Pq=function(b,d){this.set(b,0,0,d)};q.prototype.dq=function(b,d,a){var e=0,k=0,g=0;d=Math.floor(d);var h=this.Vc;if(!(0>d))switch(a){case 0:if(d>this.nb)break;e=d;h.splice(e,0,f());for(h[e].length=this.ob;k<this.ob;k++)for(h[e][k]=f(),h[e][k].length=this.pb,g=0;g<this.pb;g++)h[e][k][g]=b;this.nb++;break;case 1:if(d>
this.ob)break;for(;e<this.nb;e++)for(k=d,h[e].splice(k,0,f()),h[e][k].length=this.pb,g=0;g<this.pb;g++)h[e][k][g]=b;this.ob++;break;case 2:if(d>this.pb)break;for(;e<this.nb;e++)for(k=0;k<this.ob;k++)h[e][k].splice(d,0,b);this.pb++}};r.aa=new q;t.prototype.Rp=function(b,d,a,e){b.gp(this.Kj(d,a||0,e||0))};t.prototype.Vq=function(b){b.W(this.nb)};t.prototype.cq=function(b){b.W(this.ob)};t.prototype.Zl=function(b){b.Cb(this.Os())};r.Qa=new t})();function tc(f){this.b=f}
(function(){function f(a){-1===db.indexOf(a)&&db.push(a)}function p(a){var b=a.g,c;try{c=b.play()}catch(e){f(a);return}c?c.catch(function(){f(a)}):wc&&!J.lb&&f(a)}function m(){var a,b,c,e;xc||vb||!y||(q(),"running"===y.state&&(xc=!0));var d=db.slice(0);L(db);if(!S)for(a=0,b=d.length;a<b;++a)c=d[a],c.Db||c.Ob||(e=c.g.play())&&e.catch(function(){f(c)})}function q(){"suspended"===y.state&&y.resume&&y.resume();if(y.createBuffer){var a=y.createBuffer(1,220,22050),b=y.createBufferSource();b.buffer=a;b.connect(y.destination);
d(b)}}function t(a){a=Math.pow(10,a/20);isFinite(a)||(a=0);0>a&&(a=0);1<a&&(a=1);return a}function r(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function h(a){a=a.toLowerCase();return T.hasOwnProperty(a)&&T[a].length?T[a][0].ac():y.destination}function b(){return y.createGain?y.createGain():y.createGainNode()}function c(a){return y.createDelay?y.createDelay(a):y.createDelayNode(a)}function d(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function a(a,b,c,e){a.start?a.start(e||0,b):a.noteGrainOn(e||
0,b,c-b)}function e(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function k(a,c,e,d,g,k){this.type="filter";this.Nc=[a,c,e,d,g,k];this.N=b();this.B=b();this.B.gain.value=k;this.A=b();this.A.gain.value=1-k;this.ya=y.createBiquadFilter();this.ya.type="number"===typeof this.ya.type?a:Bc[a];this.ya.frequency.value=c;this.ya.detune&&(this.ya.detune.value=e);this.ya.Q.value=d;this.ya.gain.value=g;this.N.connect(this.ya);this.N.connect(this.A);this.ya.connect(this.B)}function g(a,e,d){this.type="delay";
this.Nc=[a,e,d];this.N=b();this.B=b();this.B.gain.value=d;this.A=b();this.A.gain.value=1-d;this.$g=b();this.rc=c(a);this.rc.delayTime.value=a;this.Sh=b();this.Sh.gain.value=e;this.N.connect(this.$g);this.N.connect(this.A);this.$g.connect(this.B);this.$g.connect(this.rc);this.rc.connect(this.Sh);this.Sh.connect(this.$g)}function x(a,c,e,d){this.type="convolve";this.Nc=[c,e,d];this.N=b();this.B=b();this.B.gain.value=e;this.A=b();this.A.gain.value=1-e;this.Fe=y.createConvolver();a&&(this.Fe.normalize=
c,this.Fe.buffer=a);this.N.connect(this.Fe);this.N.connect(this.A);this.Fe.connect(this.B)}function w(a,e,g,k,f){this.type="flanger";this.Nc=[a,e,g,k,f];this.N=b();this.A=b();this.A.gain.value=1-f/2;this.B=b();this.B.gain.value=f/2;this.Yh=b();this.Yh.gain.value=k;this.rc=c(a+e);this.rc.delayTime.value=a;this.Va=y.createOscillator();this.Va.frequency.value=g;this.Rb=b();this.Rb.gain.value=e;this.N.connect(this.rc);this.N.connect(this.A);this.rc.connect(this.B);this.rc.connect(this.Yh);this.Yh.connect(this.rc);
this.Va.connect(this.Rb);this.Rb.connect(this.rc.delayTime);d(this.Va)}function u(a,c,e,g,k,f){this.type="phaser";this.Nc=[a,c,e,g,k,f];this.N=b();this.A=b();this.A.gain.value=1-f/2;this.B=b();this.B.gain.value=f/2;this.ya=y.createBiquadFilter();this.ya.type="number"===typeof this.ya.type?7:"allpass";this.ya.frequency.value=a;this.ya.detune&&(this.ya.detune.value=c);this.ya.Q.value=e;this.Va=y.createOscillator();this.Va.frequency.value=k;this.Rb=b();this.Rb.gain.value=g;this.N.connect(this.ya);this.N.connect(this.A);
this.ya.connect(this.B);this.Va.connect(this.Rb);this.Rb.connect(this.ya.frequency);d(this.Va)}function l(a){this.type="gain";this.Nc=[a];this.R=b();this.R.gain.value=a}function n(a,c){this.type="tremolo";this.Nc=[a,c];this.R=b();this.R.gain.value=1-c/2;this.Va=y.createOscillator();this.Va.frequency.value=a;this.Rb=b();this.Rb.gain.value=c/2;this.Va.connect(this.Rb);this.Rb.connect(this.R.gain);d(this.Va)}function F(a,c){this.type="ringmod";this.Nc=[a,c];this.N=b();this.B=b();this.B.gain.value=c;
this.A=b();this.A.gain.value=1-c;this.mh=b();this.mh.gain.value=0;this.Va=y.createOscillator();this.Va.frequency.value=a;this.Va.connect(this.mh.gain);d(this.Va);this.N.connect(this.mh);this.N.connect(this.A);this.mh.connect(this.B)}function W(a,c,e,d,g){this.type="distortion";this.Nc=[a,c,e,d,g];this.N=b();this.Xi=b();this.Wi=b();this.Bu(e,Math.pow(10,d/20));this.B=b();this.B.gain.value=g;this.A=b();this.A.gain.value=1-g;this.Ej=y.createWaveShaper();this.Qh=new Float32Array(65536);this.Ms(a,c);this.Ej.Qh=
this.Qh;this.N.connect(this.Xi);this.N.connect(this.A);this.Xi.connect(this.Ej);this.Ej.connect(this.Wi);this.Wi.connect(this.B)}function ua(a,b,c,e,d){this.type="compressor";this.Nc=[a,b,c,e,d];this.R=y.createDynamicsCompressor();try{this.R.threshold.value=a,this.R.knee.value=b,this.R.ratio.value=c,this.R.attack.value=e,this.R.release.value=d}catch(g){}}function X(a,b){this.type="analyser";this.Nc=[a,b];this.R=y.createAnalyser();this.R.fftSize=a;this.R.smoothingTimeConstant=b;this.Ks=new Float32Array(this.R.frequencyBinCount);
this.kp=new Uint8Array(a);this.gh=0}function C(){this.T=null;this.Ei=0}function P(a,c){this.src=a;this.I=G;this.dd=c;this.Hh=!1;var e=this;this.Jf=this.Of=null;this.Pf=[];this.gj=0;this.Wl=this.Wh=this.qp=this.Si=!1;1===G&&c&&!eb&&(this.I=0,this.Of=b());this.od=this.O=null;var d;switch(this.I){case 0:this.O=new Audio;this.O.crossOrigin="anonymous";this.O.addEventListener("canplaythrough",function(){e.Wl=!0});1===G&&y.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.qp=!0,this.O.addEventListener("canplay",
function(){!e.Jf&&e.O&&(e.Jf=y.createMediaElementSource(e.O),e.Jf.connect(e.Of))}));this.O.autoplay=!1;this.O.mw="auto";this.O.src=a;break;case 1:J.ri?J.an(a,function(a){e.od=a;e.Tm()},function(){e.Wh=!0}):(d=new XMLHttpRequest,d.open("GET",a,!0),d.responseType="arraybuffer",d.onload=function(){e.od=d.response;e.Tm()},d.onerror=function(){e.Wh=!0},d.send());break;case 2:this.O=!0;break;case 3:this.O=!0}}function z(a,c){var e=this;this.tag=c;this.Db=this.ad=!0;this.src=a.src;this.buffer=a;this.I=G;
this.dd=a.dd;this.playbackRate=1;this.wf=!0;this.Ob=this.ic=!1;this.Bb=0;this.Lg=this.Af=this.ed=!1;this.volume=1;this.nl=function(a){if(!e.Ob&&!e.ic){var b=this;b||(b=a.target);b===e.Gh&&(e.wf=!0,e.Db=!0,E=e.tag,J.trigger(tc.prototype.e.Eh,H))}};this.Gh=null;this.yf=1===pa&&!this.dd||2===pa;this.Kf=1;this.startTime=this.yf?J.Sa.L:J.Sd.L;this.Aa=this.Ea=null;this.gd=!1;this.bb=null;this.Fo=this.Eo=this.Do=this.Co=this.Ho=this.Go=0;this.g=null;var d=!1;1!==this.I||0!==this.buffer.I||this.buffer.qp||
(this.I=0);switch(this.I){case 0:this.dd?(this.g=a.O,d=!a.Hh,a.Hh=!0):(this.g=new Audio,this.g.crossOrigin="anonymous",this.g.autoplay=!1,this.g.src=a.O.src,d=!0);d&&this.g.addEventListener("ended",function(){E=e.tag;e.Db=!0;J.trigger(tc.prototype.e.Eh,H)});break;case 1:this.Ea=b();this.Ea.connect(h(c));1===this.buffer.I?a.O&&(this.g=y.createBufferSource(),this.g.buffer=a.O,this.g.connect(this.Ea)):(this.g=this.buffer.O,this.buffer.Of.connect(this.Ea),this.buffer.Hh||(this.buffer.Hh=!0,this.buffer.O.addEventListener("ended",
function(){E=e.tag;e.Db=!0;J.trigger(tc.prototype.e.Eh,H)})));break;case 2:this.g=new window.Media(I+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(e.wf=!0,e.Db=!0,E=e.tag,J.trigger(tc.prototype.e.Eh,H))});break;case 3:this.g=!0}}function N(a,b){var c=a.Re()?1:0,e=b.Re()?1:0;return c===e?0:c<e?1:-1}function R(a,b){L(qa);if(a.length){var c,e,d;c=0;for(e=B.length;c<e;c++)d=B[c],mb(a,d.tag)&&qa.push(d);b&&qa.sort(N)}else Z&&!Z.Pe()&&(L(qa),qa[0]=Z)}function O(a,b){T.hasOwnProperty(a)?
T[a].push(b):T[a]=[b];var c,e,d,g,k=y.destination;if(T.hasOwnProperty(a)&&(d=T[a],d.length))for(k=d[0].ac(),c=0,e=d.length;c<e;c++)g=d[c],c+1===e?g.pc(y.destination):g.pc(d[c+1].ac());R(a);c=0;for(e=qa.length;c<e;c++)qa[c].mu(k);Ha&&wb===a&&(Ha.disconnect(),Ha.connect(k))}function ga(){}function M(){}function v(){}var oa=tc.prototype;oa.xb=function(a){this.ma=a;this.b=a.b};oa.xb.prototype.ja=function(){};var J=null,H=null,E="",I="",G=0,y=null,D=[],B=[],Z=null,K=!1,pa=0,S=!1,ha=1,Ka=0,La=0,vb=!1,xb=
1,yb=1,yc=10,zc=1E4,Ac=1,Ha=null,wb="",wc=!1,db=[],eb=!1,xc=!1;document.addEventListener("pointerup",m,!0);document.addEventListener("touchend",m,!0);document.addEventListener("click",m,!0);document.addEventListener("keydown",m,!0);document.addEventListener("gamepadconnected",m,!0);var T={},Bc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");k.prototype.pc=function(a){this.B.disconnect();this.B.connect(a);this.A.disconnect();this.A.connect(a)};k.prototype.remove=function(){this.N.disconnect();
this.ya.disconnect();this.B.disconnect();this.A.disconnect()};k.prototype.ac=function(){return this.N};g.prototype.pc=function(a){this.B.disconnect();this.B.connect(a);this.A.disconnect();this.A.connect(a)};g.prototype.remove=function(){this.N.disconnect();this.$g.disconnect();this.rc.disconnect();this.Sh.disconnect();this.B.disconnect();this.A.disconnect()};g.prototype.ac=function(){return this.N};x.prototype.pc=function(a){this.B.disconnect();this.B.connect(a);this.A.disconnect();this.A.connect(a)};
x.prototype.remove=function(){this.N.disconnect();this.Fe.disconnect();this.B.disconnect();this.A.disconnect()};x.prototype.ac=function(){return this.N};w.prototype.pc=function(a){this.A.disconnect();this.A.connect(a);this.B.disconnect();this.B.connect(a)};w.prototype.remove=function(){this.N.disconnect();this.rc.disconnect();this.Va.disconnect();this.Rb.disconnect();this.A.disconnect();this.B.disconnect();this.Yh.disconnect()};w.prototype.ac=function(){return this.N};u.prototype.pc=function(a){this.A.disconnect();
this.A.connect(a);this.B.disconnect();this.B.connect(a)};u.prototype.remove=function(){this.N.disconnect();this.ya.disconnect();this.Va.disconnect();this.Rb.disconnect();this.A.disconnect();this.B.disconnect()};u.prototype.ac=function(){return this.N};l.prototype.pc=function(a){this.R.disconnect();this.R.connect(a)};l.prototype.remove=function(){this.R.disconnect()};l.prototype.ac=function(){return this.R};n.prototype.pc=function(a){this.R.disconnect();this.R.connect(a)};n.prototype.remove=function(){this.Va.disconnect();
this.Rb.disconnect();this.R.disconnect()};n.prototype.ac=function(){return this.R};F.prototype.pc=function(a){this.B.disconnect();this.B.connect(a);this.A.disconnect();this.A.connect(a)};F.prototype.remove=function(){this.Va.disconnect();this.mh.disconnect();this.N.disconnect();this.B.disconnect();this.A.disconnect()};F.prototype.ac=function(){return this.N};W.prototype.Bu=function(a,b){.01>a&&(a=.01);this.Xi.gain.value=a;this.Wi.gain.value=Math.pow(1/a,.6)*b};W.prototype.shape=function(a,b,c){var e=
1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+e*(1-Math.exp(-(1/e)*(a-b)));return b*c};W.prototype.Ms=function(a,b){for(var c=Math.pow(10,a/20),e=Math.pow(10,b/20),d=0,g=0;32768>g;++g)d=g/32768,d=this.shape(d,c,e),this.Qh[32768+g]=d,this.Qh[32768-g-1]=-d};W.prototype.pc=function(a){this.B.disconnect();this.B.connect(a);this.A.disconnect();this.A.connect(a)};W.prototype.remove=function(){this.N.disconnect();this.Xi.disconnect();this.Ej.disconnect();this.Wi.disconnect();this.B.disconnect();this.A.disconnect()};
W.prototype.ac=function(){return this.N};ua.prototype.pc=function(a){this.R.disconnect();this.R.connect(a)};ua.prototype.remove=function(){this.R.disconnect()};ua.prototype.ac=function(){return this.R};X.prototype.tb=function(){this.R.getFloatFrequencyData(this.Ks);this.R.getByteTimeDomainData(this.kp);for(var a=this.R.fftSize,b=0,c=this.gh=0,e=0;b<a;b++)e=(this.kp[b]-128)/128,0>e&&(e=-e),this.gh<e&&(this.gh=e),c+=e*e;this.gh=r(this.gh);r(Math.sqrt(c/a))};X.prototype.pc=function(a){this.R.disconnect();
this.R.connect(a)};X.prototype.remove=function(){this.R.disconnect()};X.prototype.ac=function(){return this.R};C.prototype.nh=function(a){this.T=a};C.prototype.mi=function(){return!!this.T};C.prototype.tb=function(){};P.prototype.nu=function(){var a,b,c,e;c=a=0;for(b=B.length;a<b;++a)e=B[a],B[c]=e,e.buffer===this?e.stop():++c;B.length=c;this.Jf&&(this.Jf.disconnect(),this.Jf=null);this.Of&&(this.Of.disconnect(),this.Of=null);this.od=this.O=null};P.prototype.Tm=function(){if(!this.O&&this.od){var a=
this;if(y.decodeAudioData)y.decodeAudioData(this.od,function(b){a.O=b;a.od=null;var c,e,d;if(fa(a.Ti)||S)fa(a.Mh)||(c=a.Mh.Fe,c.normalize=a.po,c.buffer=b);else if(a.Pf.length){c=0;for(e=a.Pf.length;c<e;c++){b=a.Pf[c];d=new z(a,b.wp);d.jj(!0);if("undefined"!==typeof b.ro&&(b.T=J.hi(b.ro),!b.T))continue;if(b.T){var g=Ua(b.T.x,b.T.y,-b.T.i.Fa(),Ka,La,!0),k=Ua(b.T.x,b.T.y,-b.T.i.Fa(),Ka,La,!1);d.Fl(g,k,Ga(b.T.j-b.T.i.Fa()),b.Ak,b.el,b.hl);d.nh(b.T)}else d.Fl(b.x,b.y,b.Yq,b.Ak,b.el,b.hl);d.play(a.al,a.Vl,
a.gj);a.Si&&d.pause();B.push(d)}L(a.Pf)}else d=new z(a,a.Ti||""),d.play(a.al,a.Vl,a.gj),a.Si&&d.pause(),B.push(d)},function(){a.Wh=!0});else if(this.O=y.createBuffer(this.od,!1),this.od=null,fa(this.Ti)||S)fa(this.Mh)||(b=this.Mh.Fe,b.normalize=this.po,b.buffer=this.O);else{var b=new z(this,this.Ti);b.play(this.al,this.Vl,this.gj);this.Si&&b.pause();B.push(b)}}};P.prototype.An=function(){switch(this.I){case 0:var a=4<=this.O.readyState;a&&(this.Wl=!0);return a||this.Wl;case 1:return!!this.od||!!this.O;
case 2:return!0;case 3:return!0}return!1};P.prototype.Bt=function(){switch(this.I){case 0:return this.An();case 1:return!!this.O;case 2:return!0;case 3:return!0}return!1};P.prototype.qt=function(){switch(this.I){case 0:return!!this.O.error;case 1:return this.Wh}return!1};z.prototype.Pe=function(){switch(this.I){case 0:return this.g.ended;case 1:return 1===this.buffer.I?!this.ad&&!this.Db&&this.g.loop||this.Ob?!1:this.wf:this.g.ended;case 2:return this.wf;case 3:!0}return!0};z.prototype.mr=function(){return this.ad||
this.Db?!0:this.Pe()};z.prototype.jj=function(a){1===G&&(!this.gd&&a?this.Ea&&(this.Aa||(this.Aa=y.createPanner(),this.Aa.panningModel="number"===typeof this.Aa.panningModel?xb:["equalpower","HRTF","soundfield"][xb],this.Aa.distanceModel="number"===typeof this.Aa.distanceModel?yb:["linear","inverse","exponential"][yb],this.Aa.refDistance=yc,this.Aa.maxDistance=zc,this.Aa.rolloffFactor=Ac),this.Ea.disconnect(),this.Ea.connect(this.Aa),this.Aa.connect(h(this.tag)),this.gd=!0):this.gd&&!a&&this.Ea&&
(this.Aa.disconnect(),this.Ea.disconnect(),this.Ea.connect(h(this.tag)),this.gd=!1))};z.prototype.Fl=function(a,b,c,e,d,g){this.gd&&1===G&&(this.Aa.setPosition(a,b,0),this.Aa.setOrientation(Math.cos(Q(c)),Math.sin(Q(c)),0),this.Aa.coneInnerAngle=e,this.Aa.coneOuterAngle=d,this.Aa.coneOuterGain=g,this.Go=a,this.Ho=b,this.Co=c,this.Do=e,this.Eo=d,this.Fo=g)};z.prototype.nh=function(a){this.gd&&1===G&&(this.bb||(this.bb=new C),this.bb.nh(a))};z.prototype.tb=function(a){if(this.gd&&1===G&&this.bb&&this.bb.mi()&&
this.Re()){this.bb.tb(a);a=this.bb.T;var b=Ua(a.x,a.y,-a.i.Fa(),Ka,La,!0),c=Ua(a.x,a.y,-a.i.Fa(),Ka,La,!1);this.Aa.setPosition(b,c,0);b=0;"undefined"!==typeof this.bb.T.j&&(b=a.j-a.i.Fa(),this.Aa.setOrientation(Math.cos(b),Math.sin(b),0))}};z.prototype.play=function(b,c,e,g){var k=this.g;this.ed=b;this.volume=c;e=e||0;g=g||0;switch(this.I){case 0:1!==k.playbackRate&&(k.playbackRate=1);k.volume!==c*ha&&(k.volume=c*ha);k.loop!==b&&(k.loop=b);k.muted&&(k.muted=!1);if(k.currentTime!==e)try{k.currentTime=
e}catch(f){}p(this);break;case 1:this.muted=!1;this.Kf=1;if(1===this.buffer.I)this.Ea.gain.value=c*ha,this.ad||(this.g=y.createBufferSource(),this.g.buffer=this.buffer.O,this.g.connect(this.Ea)),this.g.onended=this.nl,this.Gh=this.g,this.g.loop=b,this.wf=!1,0===e?d(this.g,g):a(this.g,e,this.Ne(),g);else{1!==k.playbackRate&&(k.playbackRate=1);k.loop!==b&&(k.loop=b);k.volume=c*ha;if(k.currentTime!==e)try{k.currentTime=e}catch(h){}p(this)}break;case 2:(!this.ad&&this.Db||0!==e)&&k.seekTo(e);k.play();
this.wf=!1;break;case 3:J.kb?AppMobi.context.playSound(this.src,b):AppMobi.player.playSound(this.src,b)}this.playbackRate=1;this.startTime=(this.yf?J.Sa.L:J.Sd.L)-e;this.Ob=this.Db=this.ad=!1};z.prototype.stop=function(){switch(this.I){case 0:this.g.paused||this.g.pause();break;case 1:1===this.buffer.I?e(this.g):this.g.paused||this.g.pause();break;case 2:this.g.stop();break;case 3:J.kb&&AppMobi.context.stopSound(this.src)}this.Db=!0;this.Ob=!1};z.prototype.pause=function(){if(!(this.ad||this.Db||
this.Pe()||this.Ob)){switch(this.I){case 0:this.g.paused||this.g.pause();break;case 1:1===this.buffer.I?(this.Bb=this.sk(!0),this.ed&&(this.Bb=this.Bb%this.Ne()),this.Ob=!0,e(this.g)):this.g.paused||this.g.pause();break;case 2:this.g.pause();break;case 3:J.kb&&AppMobi.context.stopSound(this.src)}this.Ob=!0}};z.prototype.ru=function(){if(!(this.ad||this.Db||this.Pe())&&this.Ob){switch(this.I){case 0:p(this);break;case 1:1===this.buffer.I?(this.g=y.createBufferSource(),this.g.buffer=this.buffer.O,this.g.connect(this.Ea),
this.g.onended=this.nl,this.Gh=this.g,this.g.loop=this.ed,this.Ea.gain.value=ha*this.volume*this.Kf,this.zj(),this.startTime=(this.yf?J.Sa.L:J.Sd.L)-this.Bb/(this.playbackRate||.001),a(this.g,this.Bb,this.Ne())):p(this);break;case 2:this.g.play();break;case 3:J.kb&&AppMobi.context.resumeSound(this.src)}this.Ob=!1}};z.prototype.seek=function(a){if(!(this.ad||this.Db||this.Pe()))switch(this.I){case 0:try{this.g.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.I)this.Ob?this.Bb=a:(this.pause(),
this.Bb=a,this.ru());else try{this.g.currentTime=a}catch(c){}break;case 3:J.kb&&AppMobi.context.seekSound(this.src,a)}};z.prototype.mu=function(a){1===this.I&&(this.gd?(this.Aa.disconnect(),this.Aa.connect(a)):(this.Ea.disconnect(),this.Ea.connect(a)))};z.prototype.Ne=function(){var a=0;switch(this.I){case 0:"undefined"!==typeof this.g.duration&&(a=this.g.duration);break;case 1:a=this.buffer.O.duration;break;case 2:a=this.g.getDuration();break;case 3:J.kb&&(a=AppMobi.context.getDurationSound(this.src))}return a};
z.prototype.sk=function(a){var b=this.Ne(),c=0;switch(this.I){case 0:"undefined"!==typeof this.g.currentTime&&(c=this.g.currentTime);break;case 1:if(1===this.buffer.I){if(this.Ob)return this.Bb;c=(this.yf?J.Sa.L:J.Sd.L)-this.startTime}else"undefined"!==typeof this.g.currentTime&&(c=this.g.currentTime);break;case 3:J.kb&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.ed&&c>b&&(c=b);return c};z.prototype.Re=function(){return!this.Ob&&!this.ad&&!this.Db&&!this.Pe()};
z.prototype.Iu=function(){return!this.ad&&!this.Db&&!this.Pe()};z.prototype.Hu=function(a){this.volume=a;this.Kp()};z.prototype.Kp=function(){var a=this.volume*ha;isFinite(a)||(a=0);switch(this.I){case 0:"undefined"!==typeof this.g.volume&&this.g.volume!==a&&(this.g.volume=a);break;case 1:1===this.buffer.I?this.Ea.gain.value=a*this.Kf:"undefined"!==typeof this.g.volume&&this.g.volume!==a&&(this.g.volume=a)}};z.prototype.Uh=function(a){switch(this.I){case 0:this.g.muted!==!!a&&(this.g.muted=!!a);break;
case 1:1===this.buffer.I?(this.Kf=a?0:1,this.Ea.gain.value=ha*this.volume*this.Kf):this.g.muted!==!!a&&(this.g.muted=!!a)}};z.prototype.Du=function(){this.Af=!0;this.Uh(this.Af||this.Lg)};z.prototype.ep=function(a){this.Lg=!!a;this.Uh(this.Af||this.Lg)};z.prototype.zj=function(){var a=this.playbackRate;this.yf&&(a*=J.Zf);switch(this.I){case 0:this.g.playbackRate!==a&&(this.g.playbackRate=a);break;case 1:1===this.buffer.I?this.g.playbackRate.value!==a&&(this.g.playbackRate.value=a):this.g.playbackRate!==
a&&(this.g.playbackRate=a)}};z.prototype.Fu=function(b){switch(this.I){case 0:b?this.Re()?(this.ic=!0,this.g.pause()):this.ic=!1:this.ic&&(this.g.play(),this.ic=!1);break;case 1:b?this.Re()?(this.ic=!0,1===this.buffer.I?(this.Bb=this.sk(!0),this.ed&&(this.Bb=this.Bb%this.Ne()),e(this.g)):this.g.pause()):this.ic=!1:this.ic&&(1===this.buffer.I?(this.g=y.createBufferSource(),this.g.buffer=this.buffer.O,this.g.connect(this.Ea),this.g.onended=this.nl,this.Gh=this.g,this.g.loop=this.ed,this.Ea.gain.value=
ha*this.volume*this.Kf,this.zj(),this.startTime=(this.yf?J.Sa.L:J.Sd.L)-this.Bb/(this.playbackRate||.001),a(this.g,this.Bb,this.Ne())):this.g.play(),this.ic=!1);break;case 2:b?this.Re()?(this.g.pause(),this.ic=!0):this.ic=!1:this.ic&&(this.ic=!1,this.g.play())}};oa.Xa=function(a){this.type=a;J=this.b=a.b;H=this;this.Pb=null;this.Rg=-600;this.b.ri&&(eb=!0);!(this.b.Df||this.b.Fg&&(this.b.Ik||this.b.ni))||this.b.pi||this.b.ua||this.b.yn||eb||(wc=!0);y=null;"undefined"!==typeof AudioContext?(G=1,y=new AudioContext):
"undefined"!==typeof webkitAudioContext&&(G=1,y=new webkitAudioContext);this.b.Df&&y&&(y.close&&y.close(),"undefined"!==typeof AudioContext?y=new AudioContext:"undefined"!==typeof webkitAudioContext&&(y=new webkitAudioContext));1!==G&&(this.b.ec&&"undefined"!==typeof window.Media?G=2:this.b.zn&&(G=3));2===G&&(I=location.href,a=I.lastIndexOf("/"),-1<a&&(I=I.substr(0,a+1)),I=I.replace("file://",""));if(this.b.Ct&&this.b.Dt&&"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.ze(this);else{if(this.b.kb)K=this.b.Fg;else try{K=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')&&!this.b.si}catch(b){K=!1}this.b.tj(this)}};var ra=oa.Xa.prototype;ra.ja=function(){this.b.lf=this;pa=this.U[0];this.Kd=this.U[1];this.bu=0!==this.U[2];this.Li=0;xb=this.U[3];yb=this.U[4];this.Rg=-this.U[5];yc=this.U[6];zc=this.U[7];Ac=this.U[8];this.Pb=new C;var a=this.b.u||this.b.width,b=this.b.r||this.b.height;1===G&&(y.listener.setPosition(a/2,b/2,this.Rg),y.listener.setOrientation(0,
0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Ha&&Ha.disconnect();wb=b.toLowerCase();Ha=y.createMediaStreamSource(a);Ha.connect(h(wb))});this.b.xm(function(a){H.Wt(a)});var c=this;this.b.cr(function(a){c.Tt(a)})};ra.Tt=function(a){var b,c,e;b=0;for(c=B.length;b<c;b++)e=B[b],e.bb&&e.bb.T===a&&(e.bb.T=null,e.gd&&e.Re()&&e.ed&&e.stop());this.Pb.T===a&&(this.Pb.T=null)};ra.jc=function(){var a={silent:S,masterVolume:ha,listenerZ:this.Rg,listenerUid:this.Pb.mi()?this.Pb.T.uid:-1,playing:[],effects:{}},
b=a.playing,c,e,d,g,k,f;c=0;for(e=B.length;c<e;c++)d=B[c],!d.Iu()||3===this.Kd||d.dd&&1===this.Kd||!d.dd&&2===this.Kd||(g=d.sk(),d.ed&&(g=g%d.Ne()),g={tag:d.tag,buffersrc:d.buffer.src,is_music:d.dd,playbackTime:g,volume:d.volume,looping:d.ed,muted:d.Af,playbackRate:d.playbackRate,paused:d.Ob,resume_position:d.Bb},d.gd&&(g.pan={},f=g.pan,d.bb&&d.bb.mi()?f.objUid=d.bb.T.uid:(f.x=d.Go,f.y=d.Ho,f.a=d.Co),f.ia=d.Do,f.oa=d.Eo,f.og=d.Fo),b.push(g));b=a.effects;for(k in T)if(T.hasOwnProperty(k)){d=[];c=0;
for(e=T[k].length;c<e;c++)d.push({type:T[k][c].type,params:T[k][c].Nc});b[k]=d}return a};var Qa=[];ra.Mc=function(a){var b=a.silent;ha=a.masterVolume;this.Rg=a.listenerZ;this.Pb.nh(null);var c=a.listenerUid;-1!==c&&(this.Pb.Ei=c,Qa.push(this.Pb));var c=a.playing,e,d,f,h,m,p,r,q,t,v,y;if(3!==this.Kd)for(e=0,d=B.length;e<d;e++)t=B[e],t.dd&&1===this.Kd||(t.dd||2!==this.Kd)&&t.stop();for(m in T)if(T.hasOwnProperty(m))for(e=0,d=T[m].length;e<d;e++)T[m][e].remove();Ya(T);for(m in a.effects)if(a.effects.hasOwnProperty(m))for(p=
a.effects[m],e=0,d=p.length;e<d;e++)switch(f=p[e].type,v=p[e].params,f){case "filter":O(m,new k(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "delay":O(m,new g(v[0],v[1],v[2]));break;case "convolve":f=v[2];t=this.ei(f,!1);t.O?f=new x(t.O,v[0],v[1],f):(f=new x(null,v[0],v[1],f),t.po=v[0],t.Mh=f);O(m,f);break;case "flanger":O(m,new w(v[0],v[1],v[2],v[3],v[4]));break;case "phaser":O(m,new u(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "gain":O(m,new l(v[0]));break;case "tremolo":O(m,new n(v[0],v[1]));break;
case "ringmod":O(m,new F(v[0],v[1]));break;case "distortion":O(m,new W(v[0],v[1],v[2],v[3],v[4]));break;case "compressor":O(m,new ua(v[0],v[1],v[2],v[3],v[4]));break;case "analyser":O(m,new X(v[0],v[1]))}e=0;for(d=c.length;e<d;e++)3===this.Kd||(a=c[e],f=a.buffersrc,h=a.is_music,m=a.tag,p=a.playbackTime,r=a.looping,q=a.volume,y=(v=a.pan)&&v.hasOwnProperty("objUid")?v.objUid:-1,h&&1===this.Kd)||!h&&2===this.Kd||((t=this.mk(f,m,h,r,q))?(t.Bb=a.resume_position,t.jj(!!v),t.play(r,q,p),t.zj(),t.Kp(),t.Uh(t.Af||
t.Lg),a.paused&&t.pause(),a.muted&&t.Du(),t.Uh(t.Af||t.Lg),v&&(-1!==y?(t.bb=t.bb||new C,t.bb.Ei=y,Qa.push(t.bb)):t.Fl(v.x,v.y,v.a,v.ia,v.oa,v.og))):(t=this.ei(f,h),t.gj=p,t.Si=a.paused,v&&(-1!==y?t.Pf.push({ro:y,Ak:v.ia,el:v.oa,hl:v.og,wp:m}):t.Pf.push({x:v.x,y:v.y,Yq:v.a,Ak:v.ia,el:v.oa,hl:v.og,wp:m}))));if(b&&!S){e=0;for(d=B.length;e<d;e++)B[e].ep(!0);S=!0}else if(!b&&S){e=0;for(d=B.length;e<d;e++)B[e].ep(!1);S=!1}};ra.Yd=function(){var a,b,c,e;a=0;for(b=Qa.length;a<b;a++)c=Qa[a],e=this.b.hi(c.Ei),
c.nh(e),c.Ei=-1,e&&(Ka=e.x,La=e.y);L(Qa)};ra.Wt=function(a){if(!this.bu){!a&&y&&y.resume&&(y.resume(),vb=!1);var b,c;b=0;for(c=B.length;b<c;b++)B[b].Fu(a);a&&y&&y.suspend&&(y.suspend(),vb=!0)}};ra.tb=function(){var a=this.b.Ie,b,c,e;b=0;for(c=B.length;b<c;b++)e=B[b],e.tb(a),0!==pa&&e.zj();var d,g;for(d in T)if(T.hasOwnProperty(d))for(e=T[d],b=0,c=e.length;b<c;b++)g=e[b],g.tb&&g.tb();1===G&&this.Pb.mi()&&(this.Pb.tb(a),Ka=this.Pb.T.x,La=this.Pb.T.y,y.listener.setPosition(this.Pb.T.x,this.Pb.T.y,this.Rg))};
var Ra=[];ra.Eu=function(a){var b,c,e,d,g,k=0;b=0;for(c=a.length;b<c;++b)if(e=a[b],d=e[0],e=2*e[1],(g=4<d.length&&".ogg"===d.substr(d.length-4))&&K||!g&&!K)Ra.push({filename:d,size:e,T:null}),k+=e;return k};ra.Ku=function(){var a,b,c,e;a=0;for(b=Ra.length;a<b;++a)c=Ra[a],e=this.b.Zh+c.filename,c.T=this.ei(e,!1)};ra.Ws=function(){var a=0,b,c,e;b=0;for(c=Ra.length;b<c;++b)e=Ra[b],e.T.Bt()||e.T.qt()||this.b.ua||this.b.ni?a+=e.size:e.T.An()&&(a+=Math.floor(e.size/2));return a};ra.ou=function(){var a,
b,c,e;c=a=0;for(b=D.length;a<b;++a)e=D[a],D[c]=e,e.dd?e.nu():++c;D.length=c};ra.ei=function(a,b){var c,e,d,g=null;c=0;for(e=D.length;c<e;c++)if(d=D[c],d.src===a){g=d;break}g||(eb&&b&&this.ou(),g=new P(a,b),D.push(g));return g};ra.mk=function(a,b,c,e,d){var g,k,f;g=0;for(k=B.length;g<k;g++)if(f=B[g],f.src===a&&(f.mr()||c))return f.tag=b,f;a=this.ei(a,c);if(!a.O)return"<preload>"!==b&&(a.Ti=b,a.al=e,a.Vl=d),null;f=new z(a,b);B.push(f);return f};var qa=[];ga.prototype.Eh=function(a){return mb(E,a)};
oa.e=new ga;M.prototype.Play=function(a,b,c,e){!S&&(c=t(c),Z=this.mk(this.b.Zh+a[0]+(K?".ogg":".m4a"),e,a[1],0!==b,c))&&(Z.jj(!1),Z.play(0!==b,c,0,this.Li),this.Li=0)};M.prototype.Gq=function(a,b,c,e,d){!S&&(e=t(e),Z=this.mk(this.b.Zh+b.toLowerCase()+(K?".ogg":".m4a"),d,1===a,0!==c,e))&&(Z.jj(!1),Z.play(0!==c,e,0,this.Li),this.Li=0)};M.prototype.Nq=function(a,b){R(a);var c=t(b),e,d;e=0;for(d=qa.length;e<d;e++)qa[e].Hu(c)};M.prototype.Qq=function(a){R(a);var b;a=0;for(b=qa.length;a<b;a++)qa[a].stop()};
oa.aa=new M;v.prototype.Tq=function(a,b){R(b,!0);qa.length?a.p(r(qa[0].volume)):a.p(0)};oa.Qa=new v})();function V(f){this.b=f}
(function(){function f(){r&&h&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(c){b.Ut(c)})}function p(){}function m(){}var q=V.prototype;q.xb=function(b){this.ma=b;this.b=b.b};var t=q.xb.prototype;t.ja=function(){};var r=!1,h=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.serviceWorker){var b=document.createElement("script");b.onload=function(){r=!0;f()};b.src="offlineClient.js";document.head.appendChild(b)}});var b=null;
t.vo=function(){h=!0;f()};q.Xa=function(b){this.type=b;this.b=b.b};t=q.Xa.prototype;t.ja=function(){var c=this;window.addEventListener("resize",function(){c.b.trigger(V.prototype.e.Bq,c)});b=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){c.b.trigger(V.prototype.e.yq,c)}),window.addEventListener("offline",function(){c.b.trigger(V.prototype.e.wq,c)}));this.b.kb||(document.addEventListener("appMobi.device.update.available",function(){c.b.trigger(V.prototype.e.Hj,
c)}),document.addEventListener("backbutton",function(){c.b.trigger(V.prototype.e.Dh,c)}),document.addEventListener("menubutton",function(){c.b.trigger(V.prototype.e.em,c)}),document.addEventListener("searchbutton",function(){c.b.trigger(V.prototype.e.Cq,c)}),document.addEventListener("tizenhwkey",function(b){var a;switch(b.keyName){case "back":a=c.b.trigger(V.prototype.e.Dh,c);!a&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(a=c.b.trigger(V.prototype.e.em,
c))||b.preventDefault()}}));this.b.si&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(b){c.b.trigger(V.prototype.e.Dh,c)&&(b.handled=!0)}):this.b.Cn&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!c.b.trigger(V.prototype.e.Dh,c)});this.b.xm(function(b){b?c.b.trigger(V.prototype.e.zq,c):c.b.trigger(V.prototype.e.Aq,c)})};t.Ut=function(b){b=b.data.type;"downloading-update"===b?this.b.trigger(V.prototype.e.Eq,
this):"update-ready"===b||"update-pending"===b?this.b.trigger(V.prototype.e.Hj,this):"offline-ready"===b&&this.b.trigger(V.prototype.e.xq,this)};p.prototype.yq=function(){return!0};p.prototype.wq=function(){return!0};p.prototype.Hj=function(){return!0};p.prototype.Aq=function(){return!0};p.prototype.zq=function(){return!0};p.prototype.Bq=function(){return!0};p.prototype.Dh=function(){return!0};p.prototype.em=function(){return!0};p.prototype.Cq=function(){return!0};p.prototype.Eq=function(){return!0};
p.prototype.Hj=function(){return!0};p.prototype.xq=function(){return!0};q.e=new p;m.prototype.aq=function(b){try{eval&&eval(b)}catch(d){console&&console.error&&console.error("Error executing Javascript: ",d)}};q.aa=new m;q.Qa=new function(){}})();function uc(f){this.b=f}
(function(){function f(){}function p(){}var m=uc.prototype;m.xb=function(f){this.ma=f;this.b=f.b};m.xb.prototype.ja=function(){};m.Xa=function(f){this.type=f;this.b=f.b;this.mf=Array(4);this.Ap=this.vj=this.ef=this.se=this.re=0;this.xk=!1};var q=m.Xa.prototype;q.ja=function(){var f=this;if(!this.b.ua){jQuery(document).mousemove(function(b){f.kl(b)});jQuery(document).mousedown(function(b){f.jl(b)});jQuery(document).mouseup(function(b){f.ll(b)});jQuery(document).dblclick(function(b){f.St(b)});var h=
function(b){f.Xt(b)};document.addEventListener("mousewheel",h,!1);document.addEventListener("DOMMouseScroll",h,!1)}};var t={left:0,top:0};q.kl=function(f){var h=this.b.ua?t:jQuery(this.b.canvas).offset();this.re=f.pageX-h.left;this.se=f.pageY-h.top};q.ko=function(){return 0<this.b.qb?!0:0<=this.re&&0<=this.se&&this.re<this.b.width&&this.se<this.b.height};q.jl=function(f){this.ko()&&(this.mf[f.which]=!0,this.b.lb=!0,this.b.trigger(uc.prototype.e.nq,this),this.ef=f.which-1,this.vj=0,this.b.trigger(uc.prototype.e.$l,
this),this.b.trigger(uc.prototype.e.hm,this),this.b.lb=!1)};q.ll=function(f){this.mf[f.which]&&(this.b.ki&&!this.b.Ed&&f.preventDefault(),this.b.ki=!0,this.mf[f.which]=!1,this.b.lb=!0,this.ef=f.which-1,this.b.trigger(uc.prototype.e.im,this),this.b.lb=!1)};q.St=function(f){this.ko()&&(f.preventDefault(),this.b.lb=!0,this.ef=f.which-1,this.vj=1,this.b.trigger(uc.prototype.e.$l,this),this.b.trigger(uc.prototype.e.hm,this),this.b.lb=!1)};q.Xt=function(f){this.Ap=0>(f.wheelDelta?f.wheelDelta:f.detail?
-f.detail:0)?0:1;this.xk=!1;this.b.lb=!0;this.b.trigger(uc.prototype.e.Fq,this);this.b.lb=!1;this.xk&&nb(f)&&f.preventDefault()};q.Nf=function(){var f,h;f=0;for(h=this.mf.length;f<h;++f)this.mf[f]&&(this.mf[f]=!1,this.ef=f-1,this.b.trigger(uc.prototype.e.im,this))};f.prototype.$l=function(f,h){return f===this.ef&&h===this.vj};f.prototype.nq=function(){return!0};f.prototype.im=function(f){return f===this.ef};f.prototype.hm=function(f,h,b){return f!==this.ef||h!==this.vj?!1:this.b.wh(b,this.re,this.se)};
f.prototype.Fq=function(f){this.xk=!0;return f===this.Ap};m.e=new f;m.aa=new function(){};p.prototype.pm=function(f,h){var b,c,d,a,e;fa(h)?(b=this.b.zd(0),c=b.scale,d=b.Gb,a=b.xc,e=b.j,b.scale=1,b.Gb=1,b.xc=1,b.j=0,f.p(b.Da(this.re,this.se,!0)),b.scale=c,b.Gb=d,b.xc=a,b.j=e):(b=ia(h)?this.b.zd(h):this.b.wg(h))?f.p(b.Da(this.re,this.se,!0)):f.p(0)};p.prototype.qm=function(f,h){var b,c,d,a,e;fa(h)?(b=this.b.zd(0),c=b.scale,d=b.Gb,a=b.yc,e=b.j,b.scale=1,b.Gb=1,b.yc=1,b.j=0,f.p(b.Da(this.re,this.se,!1)),
b.scale=c,b.Gb=d,b.yc=a,b.j=e):(b=ia(h)?this.b.zd(h):this.b.wg(h))?f.p(b.Da(this.re,this.se,!1)):f.p(0)};m.Qa=new p})();function rc(f){this.b=f}
(function(){function f(){if(0===this.$j.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Wf?b.drawImage(this.Wa,this.Lf,this.Mf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.Wa,0,0,this.width,this.height);this.$j=a.toDataURL("image/png")}return this.$j}function p(){}function m(){}function q(){}var t=rc.prototype;t.xb=function(a){this.ma=a;this.b=a.b};var r=t.xb.prototype;r.ja=function(){if(!this.J){var a,b,c,
d,h,m,u,l,n;this.Fc=[];this.Cg=!1;a=0;for(b=this.Ib.length;a<b;a++){h=this.Ib[a];u={};u.name=h[0];u.speed=h[1];u.loop=h[2];u.zl=h[3];u.Al=h[4];u.Ko=h[5];u.K=h[6];u.frames=[];c=0;for(d=h[7].length;c<d;c++)m=h[7][c],l={},l.up=m[0],l.vp=m[1],l.Lf=m[2],l.Mf=m[3],l.width=m[4],l.height=m[5],l.duration=m[6],l.Mb=m[7],l.Nb=m[8],l.Bk=m[9],l.Ui=m[10],l.Lo=m[11],l.Wf=0!==l.width,l.$j="",l.dw=f,n={left:0,top:0,right:1,bottom:1},l.Gl=n,l.Td=null,(n=this.b.Js(m[0]))?l.Wa=n:(l.Wa=new Image,l.Wa.rr=m[0],l.Wa.qr=
m[1],l.Wa.kr=null,this.b.Yu(l.Wa,m[0])),u.frames.push(l),this.Fc.push(l);this.Ib[a]=u}}};r.Jp=function(){var a,b,c;a=0;for(b=this.d.length;a<b;a++)c=this.d[a],c.Oh=c.Za.Td};r.il=function(){if(!this.J){var a,b,c;a=0;for(b=this.Fc.length;a<b;++a)c=this.Fc[a],c.Wa.kr=null,c.Td=null;this.Cg=!1;this.Jp()}};r.yo=function(){if(!this.J&&this.d.length){var a,b,c;a=0;for(b=this.Fc.length;a<b;++a)c=this.Fc[a],c.Td=this.b.n.Mn(c.Wa,this.b.wa,c.Lo);this.Jp()}};r.Kt=function(){if(!this.J&&!this.Cg&&this.b.n){var a,
b,c;a=0;for(b=this.Fc.length;a<b;++a)c=this.Fc[a],c.Td=this.b.n.Mn(c.Wa,this.b.wa,c.Lo);this.Cg=!0}};r.Gp=function(){if(!this.J&&!this.d.length&&this.Cg){var a,b,c;a=0;for(b=this.Fc.length;a<b;++a)c=this.Fc[a],this.b.n.deleteTexture(c.Td),c.Td=null;this.Cg=!1}};var h=[];r.Oo=function(a){var b,c,d;L(h);b=0;for(c=this.Fc.length;b<c;++b)d=this.Fc[b].Wa,-1===h.indexOf(d)&&(a.drawImage(d,0,0),h.push(d))};t.Xa=function(a){this.type=a;this.b=a.b;a=this.type.Ib[0].frames[0].Ui;this.hc?this.Wc.ph(a):this.Wc=
new gb(a)};var b=t.Xa.prototype;b.ja=function(){this.visible=0===this.U[0];this.Ck=this.Ok=!1;this.kg=0!==this.U[3];this.ga=this.jn(this.U[1])||this.type.Ib[0];this.q=this.U[2];0>this.q&&(this.q=0);this.q>=this.ga.frames.length&&(this.q=this.ga.frames.length-1);var a=this.ga.frames[this.q];this.Wc.ph(a.Ui);this.Mb=a.Mb;this.Nb=a.Nb;this.nf=this.ga.speed;this.fe=this.ga.Al;1===this.type.Ib.length&&1===this.type.Ib[0].frames.length||0===this.nf||(this.b.tj(this),this.Ok=!0);this.hc?this.Uc.reset():
this.Uc=new cb;this.yd=this.Uc.L;this.Zd=!0;this.nd=0;this.Ae=!0;this.Uj=this.ym="";this.nr=0;this.Kh=-1;this.type.Kt();var b,c,d,f,h,u,l,a=0;for(b=this.type.Ib.length;a<b;a++)for(f=this.type.Ib[a],c=0,d=f.frames.length;c<d;c++)h=f.frames[c],0===h.width&&(h.width=h.Wa.width,h.height=h.Wa.height),h.Wf&&(l=h.Wa,u=h.Gl,u.left=h.Lf/l.width,u.top=h.Mf/l.height,u.right=(h.Lf+h.width)/l.width,u.bottom=(h.Mf+h.height)/l.height,0===h.Lf&&0===h.Mf&&h.width===l.width&&h.height===l.height&&(h.Wf=!1));this.Za=
this.ga.frames[this.q];this.Oh=this.Za.Td};b.jc=function(){var a={a:this.ga.K,f:this.q,cas:this.nf,fs:this.yd,ar:this.nd,at:this.Uc.L,rt:this.fe};this.Zd||(a.ap=this.Zd);this.Ae||(a.af=this.Ae);return a};b.Mc=function(a){var b=this.Ns(a.a);b&&(this.ga=b);this.q=a.f;0>this.q&&(this.q=0);this.q>=this.ga.frames.length&&(this.q=this.ga.frames.length-1);this.nf=a.cas;this.yd=a.fs;this.nd=a.ar;this.Uc.reset();this.Uc.L=a.at;this.Zd=a.hasOwnProperty("ap")?a.ap:!0;this.Ae=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?
this.fe=a.rt:this.fe=this.ga.Al;this.Za=this.ga.frames[this.q];this.Oh=this.Za.Td;this.Wc.ph(this.Za.Ui);this.Mb=this.Za.Mb;this.Nb=this.Za.Nb};b.Jj=function(a){this.q=a?0:this.ga.frames.length-1;this.Zd=!1;this.ym=this.ga.name;this.Ck=!0;this.b.trigger(rc.prototype.e.mq,this);this.b.trigger(rc.prototype.e.lq,this);this.Ck=!1;this.nd=0};b.Ih=function(){return this.Uc.L};b.tb=function(){this.Uc.add(this.b.mn(this));this.Uj.length&&this.Ar();0<=this.Kh&&this.Um();var a=this.Uc.L,b=this.ga,c=b.frames[this.q],
d=c.duration/this.nf;this.Zd&&a>=this.yd+d&&(this.Ae?this.q++:this.q--,this.yd+=d,this.q>=b.frames.length&&(b.Ko?(this.Ae=!1,this.q=b.frames.length-2):b.loop?this.q=this.fe:(this.nd++,this.nd>=b.zl?this.Jj(!1):this.q=this.fe)),0>this.q&&(b.Ko?(this.q=1,this.Ae=!0,b.loop||(this.nd++,this.nd>=b.zl&&this.Jj(!0))):b.loop?this.q=this.fe:(this.nd++,this.nd>=b.zl?this.Jj(!0):this.q=this.fe)),0>this.q?this.q=0:this.q>=b.frames.length&&(this.q=b.frames.length-1),a>this.yd+b.frames[this.q].duration/this.nf&&
(this.yd=a),a=b.frames[this.q],this.jf(c,a),this.b.V=!0)};b.jn=function(a){var b,c,d;b=0;for(c=this.type.Ib.length;b<c;b++)if(d=this.type.Ib[b],mb(d.name,a))return d;return null};b.Ns=function(a){var b,c,d;b=0;for(c=this.type.Ib.length;b<c;b++)if(d=this.type.Ib[b],d.K===a)return d;return null};b.Ar=function(){var a=this.ga.frames[this.q],b=this.jn(this.Uj);this.Uj="";!b||mb(b.name,this.ga.name)&&this.Zd||(this.ga=b,this.nf=b.speed,this.fe=b.Al,0>this.q&&(this.q=0),this.q>=this.ga.frames.length&&(this.q=
this.ga.frames.length-1),1===this.nr&&(this.q=0),this.Zd=!0,this.yd=this.Uc.L,this.Ae=!0,this.jf(a,this.ga.frames[this.q]),this.b.V=!0)};b.Um=function(){var a=this.ga.frames[this.q],b=this.q;this.q=sa(this.Kh);0>this.q&&(this.q=0);this.q>=this.ga.frames.length&&(this.q=this.ga.frames.length-1);b!==this.q&&(this.jf(a,this.ga.frames[this.q]),this.yd=this.Uc.L,this.b.V=!0);this.Kh=-1};b.jf=function(a,b){var c=a.width,d=a.height,f=b.width,h=b.height;c!=f&&(this.width*=f/c);d!=h&&(this.height*=h/d);this.Mb=
b.Mb;this.Nb=b.Nb;this.Wc.ph(b.Ui);this.Ma();this.Za=b;this.Oh=b.Td;c=0;for(d=this.C.length;c<d;c++)f=this.C[c],f.Vt&&f.Vt(a,b);this.b.trigger(rc.prototype.e.jf,this)};b.ud=function(a){a.globalAlpha=this.opacity;var b=this.Za,c=b.Wf,d=b.Wa,f=this.x,h=this.y,u=this.width,l=this.height;if(0===this.j&&0<=u&&0<=l)f-=this.Mb*u,h-=this.Nb*l,this.b.Jd&&(f=Math.round(f),h=Math.round(h)),c?a.drawImage(d,b.Lf,b.Mf,b.width,b.height,f,h,u,l):a.drawImage(d,f,h,u,l);else{this.b.Jd&&(f=Math.round(f),h=Math.round(h));
a.save();var n=0<u?1:-1,m=0<l?1:-1;a.translate(f,h);1===n&&1===m||a.scale(n,m);a.rotate(this.j*n*m);f=0-this.Mb*la(u);h=0-this.Nb*la(l);c?a.drawImage(d,b.Lf,b.Mf,b.width,b.height,f,h,la(u),la(l)):a.drawImage(d,f,h,la(u),la(l));a.restore()}};b.pf=function(a){this.sc(a)};b.sc=function(a){a.kc(this.Oh);a.Uf(this.opacity);var b=this.Za,c=this.Ce;if(this.b.Jd){var d=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.Wf?a.ue(c.ub+d,c.wb+f,c.lc+d,c.mc+f,c.Xb+d,c.Yb+f,c.Vb+d,c.Wb+f,b.Gl):a.lh(c.ub+d,
c.wb+f,c.lc+d,c.mc+f,c.Xb+d,c.Yb+f,c.Vb+d,c.Wb+f)}else b.Wf?a.ue(c.ub,c.wb,c.lc,c.mc,c.Xb,c.Yb,c.Vb,c.Wb,b.Gl):a.lh(c.ub,c.wb,c.lc,c.mc,c.Xb,c.Yb,c.Vb,c.Wb)};b.Ss=function(a){var b=this.Za,c,d;c=0;for(d=b.Bk.length;c<d;c++)if(mb(a,b.Bk[c][0]))return c;return-1};b.qk=function(a,b){var c=this.Za,d=c.Bk,f;A(a)?f=this.Ss(a):f=a-1;f=sa(f);if(0>f||f>=d.length)return b?this.x:this.y;var h=(d[f][1]-c.Mb)*this.width,d=d[f][2],d=(d-c.Nb)*this.height,c=Math.cos(this.j);f=Math.sin(this.j);var u=h*c-d*f,d=d*c+
h*f,h=u+this.x,d=d+this.y;return b?h:d};var c=new ba,d=!1;new wa(0,0,0,0);r.finish=function(a){if(d){if(a){var b=this.b.ib().Kb.vc;a=null.ba();var f=c.ye(),g,h;if(a.ka){a.ka=!1;L(a.d);g=0;for(h=f.length;g<h;++g)a.d[g]=f[g];if(b)for(L(a.M),g=0,h=null.d.length;g<h;++g)f=null.d[g],c.contains(f)||a.M.push(f)}else if(b)for(b=a.d.length,g=0,h=f.length;g<h;++g)a.d[b+g]=f[g],Ea(a.M,f[g]);else Ba(a.d,f);null.$d()}c.clear();d=!1}};p.prototype.Up=function(a,b){return gc(this.q,a,b)};p.prototype.lq=function(a){return mb(this.ym,
a)};p.prototype.mq=function(){return!0};p.prototype.jf=function(){return!0};t.e=new p;m.prototype.Rq=function(){this.Zd=!1};m.prototype.Hq=function(a){this.Kh=a;this.Ok||(this.b.tj(this),this.Ok=!0);this.Ck||this.Um()};t.aa=new m;q.prototype.Qp=function(a){a.W(this.q)};t.Qa=new q})();function vc(f){this.b=f}
(function(){function f(){return b.length?b.pop():{}}function p(c){var d,a;d=0;for(a=c.length;d<a;d++)b.push(c[d]);L(c)}function m(b){return b.length&&" "===b.charAt(b.length-1)?b.substring(0,b.length-1):b}function q(){}var t=vc.prototype;t.ja=function(){t.aa.Oq=function(b){this.width!==b&&(this.width=b,this.df=!0,this.Ma())}};t.xb=function(b){this.ma=b;this.b=b.b};var r=t.xb.prototype;r.ja=function(){};r.il=function(){if(!this.J){var b,d,a;b=0;for(d=this.d.length;b<d;b++)a=this.d[b],a.fd=null,a.Ye=
null,a.Qb=null}};t.Xa=function(b){this.type=b;this.b=b.b;this.hc?L(this.ne):this.ne=[];this.df=!0};r=t.Xa.prototype;r.ja=function(){this.text=this.U[0];this.visible=0===this.U[1];this.font=this.U[2];this.color=this.U[3];this.li=this.U[4];this.Bj=this.U[5];this.Xl=0===this.U[7];this.Uk=this.yi=this.width;this.xi=this.height;this.Wk=this.U[8];this.bi=this.rf="";this.sp=this.tp=this.jh=0;this.$t();this.Qb=this.Ye=this.fd=null;this.no=!1;this.Qg=this.b.Pd;this.hc?this.Rf.set(0,0,1,1):this.Rf=new wa(0,
0,1,1);this.b.n&&this.b.tj(this)};r.$t=function(){var b=this.font.split(" "),d;for(d=0;d<b.length;d++)if("pt"===b[d].substr(b[d].length-2,2)){this.jh=parseInt(b[d].substr(0,b[d].length-2));this.ul=Math.ceil(this.jh/72*96)+4;0<d&&(this.bi=b[d-1]);this.rf=b[d+1];for(d+=2;d<b.length;d++)this.rf+=" "+b[d];break}};r.jc=function(){return{t:this.text,f:this.font,c:this.color,ha:this.li,va:this.Bj,wr:this.Xl,lho:this.Wk,fn:this.rf,fs:this.bi,ps:this.jh,pxh:this.ul,tw:this.tp,th:this.sp,lrt:this.Qg}};r.Mc=
function(b){this.text=b.t;this.font=b.f;this.color=b.c;this.li=b.ha;this.Bj=b.va;this.Xl=b.wr;this.Wk=b.lho;this.rf=b.fn;this.bi=b.fs;this.jh=b.ps;this.ul=b.pxh;this.tp=b.tw;this.sp=b.th;this.Qg=b.lrt;this.df=!0;this.Uk=this.yi=this.width;this.xi=this.height};r.tb=function(){if(this.b.n&&this.Qb&&300<=this.b.Pd-this.Qg){var b=this.i;this.Na();var d=this.Ya;if(d.right<b.X||d.bottom<b.Y||d.left>b.ea||d.top>b.da)this.b.n.deleteTexture(this.Qb),this.fd=this.Ye=this.Qb=null}};r.eh=function(){this.fd=this.Ye=
null;this.b.n&&this.Qb&&this.b.n.deleteTexture(this.Qb);this.Qb=null};r.Ih=function(){this.font=this.bi+" "+this.jh.toString()+"pt "+this.rf;this.df=!0;this.b.V=!0};r.ud=function(b,d){b.font=this.font;b.textBaseline="top";b.fillStyle=this.color;b.globalAlpha=d?1:this.opacity;var a=1;d&&(a=Math.abs(this.i.Lb()),b.save(),b.scale(a,a));if(this.df||this.width!==this.Uk)this.type.ma.Wq(this.text,this.ne,b,this.width,this.Xl),this.df=!1,this.Uk=this.width;this.Na();var a=d?0:this.Ce.ub,e=d?0:this.Ce.wb;
this.b.Jd&&(a=a+.5|0,e=e+.5|0);0===this.j||d||(b.save(),b.translate(a,e),b.rotate(this.j),e=a=0);var f=e+this.height,g=this.ul,g=g+this.Wk,h,m;1===this.Bj?e+=Math.max(this.height/2-this.ne.length*g/2,0):2===this.Bj&&(e+=Math.max(this.height-this.ne.length*g-2,0));for(m=0;m<this.ne.length&&!(h=a,1===this.li?h=a+(this.width-this.ne[m].width)/2:2===this.li&&(h=a+(this.width-this.ne[m].width)),b.fillText(this.ne[m].text,h,e),e+=g,e>=f-g);m++);(0!==this.j||d)&&b.restore();this.Qg=this.b.Pd};r.sc=function(b){if(!(1>
this.width||1>this.height)){var d=this.df||this.no;this.no=!1;var a=this.i.Lb(),e=this.i.Fa(),f=this.Rf,g=a*this.width,h=a*this.height,m=Math.ceil(g),u=Math.ceil(h),l=Math.abs(m),n=Math.abs(u),p=this.b.u/2,r=this.b.r/2;this.Ye||(this.fd=document.createElement("canvas"),this.fd.width=l,this.fd.height=n,this.yi=l,this.xi=n,d=!0,this.Ye=this.fd.getContext("2d"));if(l!==this.yi||n!==this.xi)this.fd.width=l,this.fd.height=n,this.Qb&&(b.deleteTexture(this.Qb),this.Qb=null),d=!0;d&&(this.Ye.clearRect(0,
0,l,n),this.ud(this.Ye,!0),this.Qb||(this.Qb=b.Zb(l,n,this.b.wa,this.b.Ed)),b.Xu(this.fd,this.Qb,this.b.Ed));this.yi=l;this.xi=n;b.kc(this.Qb);b.Uf(this.opacity);b.zc();b.translate(-p,-r);b.nc();var q=this.Ce,d=this.i.Ha(q.ub,q.wb,!0),l=this.i.Ha(q.ub,q.wb,!1),n=this.i.Ha(q.lc,q.mc,!0),p=this.i.Ha(q.lc,q.mc,!1),r=this.i.Ha(q.Xb,q.Yb,!0),t=this.i.Ha(q.Xb,q.Yb,!1),C=this.i.Ha(q.Vb,q.Wb,!0),q=this.i.Ha(q.Vb,q.Wb,!1);if(this.b.Jd||0===this.j&&0===e)var P=(d+.5|0)-d,z=(l+.5|0)-l,d=d+P,l=l+z,n=n+P,p=p+
z,r=r+P,t=t+z,C=C+P,q=q+z;0===this.j&&0===e?(n=d+m,p=l,r=n,t=l+u,C=d,q=t,f.right=1,f.bottom=1):(f.right=g/m,f.bottom=h/u);b.ue(d,l,n,p,r,t,C,q,f);b.zc();b.scale(a,a);b.dj(-this.i.Fa());b.translate((this.i.X+this.i.ea)/-2,(this.i.Y+this.i.da)/-2);b.nc();this.Qg=this.b.Pd}};var h=[];t.Sq=function(b){L(h);for(var d="",a,e=0;e<b.length;)if(a=b.charAt(e),"\n"===a)d.length&&(h.push(d),d=""),h.push("\n"),++e;else if(" "===a||"\t"===a||"-"===a){do d+=b.charAt(e),e++;while(e<b.length&&(" "===b.charAt(e)||
"\t"===b.charAt(e)));h.push(d);d=""}else e<b.length&&(d+=a,e++);d.length&&h.push(d)};var b=[];t.Wq=function(b,d,a,e,h){if(b&&b.length)if(2>=e)p(d);else{if(100>=b.length&&-1===b.indexOf("\n")){var g=a.measureText(b).width;if(g<=e){p(d);d.push(f());d[0].text=b;d[0].width=g;return}}this.Xq(b,d,a,e,h)}else p(d)};t.Xq=function(c,d,a,e,k){k&&(this.Sq(c),c=h);var g="",p,q,u,l=0;for(u=0;u<c.length;u++)"\n"===c[u]?(l>=d.length&&d.push(f()),g=m(g),q=d[l],q.text=g,q.width=a.measureText(g).width,l++,g=""):(p=
g,g+=c[u],q=a.measureText(g).width,q>=e&&(l>=d.length&&d.push(f()),p=m(p),q=d[l],q.text=p,q.width=a.measureText(p).width,l++,g=c[u],k||" "!==g||(g="")));g.length&&(l>=d.length&&d.push(f()),g=m(g),q=d[l],q.text=g,q.width=a.measureText(g).width,l++);for(u=l;u<d.length;u++)b.push(d[u]);d.length=l};t.e=new function(){};q.prototype.Lq=function(b){ia(b)&&1E9>b&&(b=Math.round(1E10*b)/1E10);b=b.toString();this.text!==b&&(this.text=b,this.df=!0,this.b.V=!0)};t.aa=new q;t.Qa=new function(){}})();
function Y(f){this.b=f}
(function(){function f(b){d=b.x;a=b.y;e=b.z}function p(a,b,c,d){var e;e=k.length?k.pop():new m;e.init(a,b,c,d);return e}function m(){this.sh=this.id=this.y=this.x=this.pj=this.oj=this.Tk=this.time=this.Jl=0;this.yh=this.wj=!1}function q(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function t(){}function r(){}var h=Y.prototype;h.xb=function(a){this.ma=a;this.b=a.b};h.xb.prototype.ja=
function(){};h.Xa=function(a){this.type=a;this.b=a.b;this.touches=[];this.cl=!1};var b=h.Xa.prototype,c={left:0,top:0};b.vg=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 d=0,a=0,e=0,k=[];m.prototype.init=function(a,b,c,d){var e=Za();this.Jl=this.Tk=this.time=e;this.oj=a;this.pj=b;this.x=a;this.y=b;this.pressure=this.height=this.width=0;this.id=c;this.sh=d;this.yh=this.wj=!1};m.prototype.update=function(a,b,c,d,e,f){this.Tk=this.time;this.time=
a;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=f;!this.yh&&15<=Va(this.oj,this.pj,this.x,this.y)&&(this.yh=!0)};m.prototype.Nt=function(a,b){!this.wj&&500<=Za()-this.Jl&&!this.yh&&15>Va(this.oj,this.pj,this.x,this.y)&&(this.wj=!0,a.md=this.sh,a.$f=this.id,a.vf=b,a.b.trigger(Y.prototype.e.sq,a),a.rd=this.x,a.sd=this.y,a.b.trigger(Y.prototype.e.tq,a),a.vf=0)};var g=-1E3,x=-1E3,w=-1E4;m.prototype.ho=function(a,b){if(!this.wj){var c=Za();333>=c-this.Jl&&!this.yh&&15>Va(this.oj,this.pj,this.x,
this.y)&&(a.md=this.sh,a.$f=this.id,a.vf=b,666>=c-w&&25>Va(g,x,this.x,this.y)?(a.b.trigger(Y.prototype.e.qq,a),a.rd=this.x,a.sd=this.y,a.b.trigger(Y.prototype.e.rq,a),x=g=-1E3,w=-1E4):(a.b.trigger(Y.prototype.e.Dq,a),a.rd=this.x,a.sd=this.y,a.b.trigger(Y.prototype.e.km,a),g=this.x,x=this.y,w=c),a.vf=0)}};b.ja=function(){this.Et=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.vf=this.$f=this.md=this.sd=this.rd=this.um=this.tm=this.rm=this.br=this.$q=this.Zq=this.Ri=this.Qi=this.Pi=
0;this.Vu=0!==this.U[0];var a=0<this.b.qb?document:this.b.canvas,b=document;this.b.kb?b=a=window.Canvas:this.b.tc&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.xo(a)},!1),a.addEventListener("pointermove",function(a){c.wo(a)},!1),b.addEventListener("pointerup",function(a){c.Oi(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Oi(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.xo(a)},!1),a.addEventListener("MSPointerMove",function(a){c.wo(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Oi(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Oi(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.Ao(a)},!1),a.addEventListener("touchmove",function(a){c.zo(a)},!1),b.addEventListener("touchend",function(a){c.ml(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.ml(a,!0)},!1));if(this.Et){var d=function(a){a=a.reading;c.rm=a.accelerationX;c.tm=a.accelerationY;
c.um=a.accelerationZ},e=function(a){a=a.reading;c.Pi=a.yawDegrees;c.Qi=a.pitchDegrees;c.Ri=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.Pi=a.alpha||0;c.Qi=a.beta||0;c.Ri=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Zq=a.accelerationIncludingGravity.x||0,c.$q=a.accelerationIncludingGravity.y||0,c.br=a.accelerationIncludingGravity.z||
0);a.acceleration&&(c.rm=a.acceleration.x||0,c.tm=a.acceleration.y||0,c.um=a.acceleration.z||0)},!1);this.Vu&&!this.b.ua&&(jQuery(document).mousemove(function(a){c.kl(a)}),jQuery(document).mousedown(function(a){c.jl(a)}),jQuery(document).mouseup(function(a){c.ll(a)}));!this.b.Df&&this.b.ec&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(f,null,{frequency:40});this.b.Ou(this)};b.wo=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&
"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.vg(a.pointerId),d=Za();if(0<=b){var e=this.b.ua?c:jQuery(this.b.canvas).offset(),b=this.touches[b];2>d-b.time||b.update(d,a.pageX-e.left,a.pageY-e.top,a.width||0,a.height||0,a.pressure||0)}}};b.xo=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var b=this.b.ua?c:jQuery(this.b.canvas).offset(),d=a.pageX-b.left,b=a.pageY-b.top;Za();this.md=this.touches.length;
this.$f=a.pointerId;this.touches.push(p(d,b,a.pointerId,this.md));this.b.lb=!0;this.b.trigger(Y.prototype.e.gm,this);this.b.trigger(Y.prototype.e.nm,this);this.rd=d;this.sd=b;this.b.trigger(Y.prototype.e.mm,this);this.b.lb=!1}};b.Oi=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.vg(a.pointerId);this.md=0<=c?this.touches[c].sh:-1;this.$f=0<=c?this.touches[c].id:-1;this.b.lb=!0;this.b.trigger(Y.prototype.e.fm,
this);this.b.trigger(Y.prototype.e.lm,this);0<=c&&(b||this.touches[c].ho(this,c),100>k.length&&k.push(this.touches[c]),this.touches.splice(c,1));this.b.lb=!1}};b.zo=function(a){a.preventDefault&&a.preventDefault();var b=Za(),d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],g=this.vg(f.identifier),0<=g){var h=this.b.ua?c:jQuery(this.b.canvas).offset();g=this.touches[g];2>b-g.time||g.update(b,f.pageX-h.left,f.pageY-h.top,2*(f.pw||f.yw||f.hw||f.kw||0),2*(f.qw||f.zw||f.iw||f.lw||
0),f.bw||f.xw||f.gw||f.jw||0)}};b.Ao=function(a){a.preventDefault&&nb(a)&&a.preventDefault();var b=this.b.ua?c:jQuery(this.b.canvas).offset();Za();this.b.lb=!0;var d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],g=this.vg(f.identifier),-1===g){g=f.pageX-b.left;var h=f.pageY-b.top;this.md=this.touches.length;this.$f=f.identifier;this.touches.push(p(g,h,f.identifier,this.md));this.b.trigger(Y.prototype.e.gm,this);this.b.trigger(Y.prototype.e.nm,this);this.rd=g;this.sd=h;this.b.trigger(Y.prototype.e.mm,
this)}this.b.lb=!1};b.ml=function(a,b){a.preventDefault&&nb(a)&&a.preventDefault();this.b.lb=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.vg(e.identifier),0<=e&&(this.md=this.touches[e].sh,this.$f=this.touches[e].id,this.b.trigger(Y.prototype.e.fm,this),this.b.trigger(Y.prototype.e.lm,this),b||this.touches[e].ho(this,e),100>k.length&&k.push(this.touches[e]),this.touches.splice(e,1));this.b.lb=!1};b.Ih=function(){return this.b.ec&&0===this.Pi&&0!==e?90*e:this.Pi};
b.ur=function(){return this.b.ec&&0===this.Qi&&0!==a?90*a:this.Qi};b.Wr=function(){return this.b.ec&&0===this.Ri&&0!==d?90*d:this.Ri};b.jl=function(a){q(a)||(this.Ao({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.cl=!0)};b.kl=function(a){this.cl&&!q(a)&&this.zo({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};b.ll=function(a){a.preventDefault&&this.b.ki&&!this.b.Ed&&a.preventDefault();this.b.ki=!0;q(a)||(this.ml({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),
this.cl=!1)};b.Kl=function(){var a,b,c,d=Za();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Tk=d),c.Nt(this,a)};t.prototype.nm=function(){return!0};t.prototype.lm=function(){return!0};t.prototype.hq=function(){return this.touches.length};t.prototype.mm=function(a){return a?this.b.wh(a,this.rd,this.sd):!1};t.prototype.gm=function(a){a=Math.floor(a);return a===this.md};t.prototype.fm=function(a){a=Math.floor(a);return a===this.md};t.prototype.sq=function(){return!0};t.prototype.Dq=
function(){return!0};t.prototype.qq=function(){return!0};t.prototype.tq=function(a){return a?this.b.wh(a,this.rd,this.sd):!1};t.prototype.km=function(a){return a?this.b.wh(a,this.rd,this.sd):!1};t.prototype.rq=function(a){return a?this.b.wh(a,this.rd,this.sd):!1};h.e=new t;r.prototype.pm=function(a,b){var c=this.vf;if(0>c||c>=this.touches.length)a.p(0);else{var d,e,f,g,h;fa(b)?(d=this.b.zd(0),e=d.scale,f=d.Gb,g=d.xc,h=d.j,d.scale=1,d.Gb=1,d.xc=1,d.j=0,a.p(d.Da(this.touches[c].x,this.touches[c].y,
!0)),d.scale=e,d.Gb=f,d.xc=g,d.j=h):(d=ia(b)?this.b.zd(b):this.b.wg(b))?a.p(d.Da(this.touches[c].x,this.touches[c].y,!0)):a.p(0)}};r.prototype.qm=function(a,b){var c=this.vf;if(0>c||c>=this.touches.length)a.p(0);else{var d,e,f,g,h;fa(b)?(d=this.b.zd(0),e=d.scale,f=d.Gb,g=d.yc,h=d.j,d.scale=1,d.Gb=1,d.yc=1,d.j=0,a.p(d.Da(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.Gb=f,d.yc=g,d.j=h):(d=ia(b)?this.b.zd(b):this.b.wg(b))?a.p(d.Da(this.touches[c].x,this.touches[c].y,!1)):a.p(0)}};h.Qa=new r})();
function qc(){return[sc,tc,V,uc,rc,vc,Y,U.prototype.e.cm,tc.prototype.aa.Qq,rc.prototype.aa.Rq,U.prototype.aa.Mq,U.prototype.e.Wp,U.prototype.Qa.floor,U.prototype.Qa.random,sc.prototype.aa.dq,U.prototype.aa.Op,Y.prototype.e.km,rc.prototype.e.Up,sc.prototype.Qa.Rp,rc.prototype.aa.om,tc.prototype.aa.Gq,rc.prototype.Qa.Qp,U.prototype.aa.Uq,rc.prototype.aa.Hq,rc.prototype.e.iq,rc.prototype.e.Vp,tc.prototype.aa.Play,rc.prototype.aa.Jq,rc.prototype.aa.Iq,U.prototype.e.$p,rc.prototype.Qa.Opacity,U.prototype.aa.bq,
U.prototype.e.Zp,Y.prototype.e.hq,tc.prototype.aa.Nq,tc.prototype.Qa.Tq,V.prototype.aa.aq,vc.prototype.aa.Lq,vc.prototype.aa.om]};
