// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ca,ea,K,fa,ga,P,R,ia,ja,ma,na,oa,T,qa,ra,U,ta,ua,va,xa,ya,za,Aa,V,Ba,Ca,Da,Ea,Fa,Ga,Ia,Ja,Ka,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,W,Wb,Xb={},Yb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(k){return k.__proto__}:function(k){return k.constructor.prototype});
(function(){function k(g,a,r,d){this.set(g,a,r,d)}function p(){this.cc=this.ac=this.fc=this.ec=this.zc=this.yc=this.Bb=this.Ab=0}function f(g,a,r,d){g<a?r<d?(t=g<r?g:r,y=a>d?a:d):(t=g<d?g:d,y=a>r?a:r):r<d?(t=a<r?a:r,y=g>d?g:d):(t=a<d?a:d,y=g>r?g:r)}function q(){this.items=this.Jc=null;this.uf=0;u&&(this.Jc=new Set);this.Xf=[];this.Rd=!0}function l(g){E[J++]=g}function c(){this.da=this.jj=this.y=this.Nj=0}function a(g){this.Jf=[];this.Dm=this.Fm=this.Gm=this.Em=0;this.qh(g)}function b(g,a){this.Sj=
g;this.Rj=a;this.cells={}}function e(g,a){this.Sj=g;this.Rj=a;this.cells={}}function h(g,a,r){var d;return A.length?(d=A.pop(),d.Ck=g,d.x=a,d.y=r,d):new aa(g,a,r)}function d(g,a,r){this.Ck=g;this.x=a;this.y=r;this.Ta=new ca}function m(g,a,r){var d;return v.length?(d=v.pop(),d.Ck=g,d.x=a,d.y=r,d):new ea(g,a,r)}function s(g,a,r){this.Ck=g;this.x=a;this.y=r;this.Ta=[];this.sf=!0;this.Yc=new ca;this.ag=!1}function n(g,a){return g.Nc-a.Nc}K=function(g){window.console&&window.console.log&&window.console.log(g)};
fa=function(g){window.console&&window.console.error&&window.console.error(g)};ga=function(g){return"undefined"===typeof g};P=function(g){return"number"===typeof g};R=function(g){return"string"===typeof g};ia=function(g){return 0<g&&0===(g-1&g)};ja=function(g){--g;for(var a=1;32>a;a<<=1)g|=g>>a;return g+1};ma=function(g){return 0>g?-g:g};na=function(g,a){return g<a?g:a};oa=Math.PI;T=function(g){return 0<=g?g|0:(g|0)-1};qa=function(g){var a=g|0;return a===g?a:a+1};ra=function(g,a,r,d,b,c,w,m){var u,
n,e,F;g<r?(n=g,u=r):(n=r,u=g);b<w?(F=b,e=w):(F=w,e=b);if(u<F||n>e)return!1;a<d?(n=a,u=d):(n=d,u=a);c<m?(F=c,e=m):(F=m,e=c);if(u<F||n>e)return!1;u=b-g+w-r;n=c-a+m-d;g=r-g;a=d-a;b=w-b;c=m-c;m=ma(a*b-c*g);return ma(b*n-c*u)>m?!1:ma(g*n-a*u)<=m};k.prototype.set=function(g,a,r,d){this.left=g;this.top=a;this.right=r;this.bottom=d};k.prototype.Hh=function(g){this.left=g.left;this.top=g.top;this.right=g.right;this.bottom=g.bottom};k.prototype.width=function(){return this.right-this.left};k.prototype.height=
function(){return this.bottom-this.top};k.prototype.offset=function(g,a){this.left+=g;this.top+=a;this.right+=g;this.bottom+=a;return this};k.prototype.normalize=function(){var g=0;this.left>this.right&&(g=this.left,this.left=this.right,this.right=g);this.top>this.bottom&&(g=this.top,this.top=this.bottom,this.bottom=g)};k.prototype.Hb=function(g,a){return g>=this.left&&g<=this.right&&a>=this.top&&a<=this.bottom};k.prototype.Qh=function(g){return this.left===g.left&&this.top===g.top&&this.right===
g.right&&this.bottom===g.bottom};U=k;p.prototype.ph=function(g){this.Ab=g.left;this.Bb=g.top;this.yc=g.right;this.zc=g.top;this.ec=g.right;this.fc=g.bottom;this.ac=g.left;this.cc=g.bottom};p.prototype.Wo=function(g,a){if(0===a)this.ph(g);else{var r=Math.sin(a),d=Math.cos(a),b=g.left*r,c=g.top*r,w=g.right*r,r=g.bottom*r,m=g.left*d,u=g.top*d,n=g.right*d,d=g.bottom*d;this.Ab=m-c;this.Bb=u+b;this.yc=n-c;this.zc=u+w;this.ec=n-r;this.fc=d+w;this.ac=m-r;this.cc=d+b}};p.prototype.offset=function(g,a){this.Ab+=
g;this.Bb+=a;this.yc+=g;this.zc+=a;this.ec+=g;this.fc+=a;this.ac+=g;this.cc+=a;return this};var t=0,y=0;p.prototype.Im=function(g){f(this.Ab,this.yc,this.ec,this.ac);g.left=t;g.right=y;f(this.Bb,this.zc,this.fc,this.cc);g.top=t;g.bottom=y};p.prototype.Hb=function(g,a){var r=this.yc-this.Ab,d=this.zc-this.Bb,b=this.ec-this.Ab,c=this.fc-this.Bb,w=g-this.Ab,m=a-this.Bb,u=r*r+d*d,n=r*b+d*c,d=r*w+d*m,e=b*b+c*c,F=b*w+c*m,J=1/(u*e-n*n),r=(e*d-n*F)*J,u=(u*F-n*d)*J;if(0<=r&&0<u&&1>r+u)return!0;r=this.ac-this.Ab;
d=this.cc-this.Bb;u=r*r+d*d;n=r*b+d*c;d=r*w+d*m;J=1/(u*e-n*n);r=(e*d-n*F)*J;u=(u*F-n*d)*J;return 0<=r&&0<u&&1>r+u};ta=p;ua=function(g,a){for(var r in a)a.hasOwnProperty(r)&&(g[r]=a[r]);return g};va=function(g,a){var r,d;a=T(a);if(!(0>a||a>=g.length)){r=a;for(d=g.length-1;r<d;r++)g[r]=g[r+1];g.length=d}};xa=function(g,a){g.length=a.length;var r,d;r=0;for(d=a.length;r<d;r++)g[r]=a[r]};ya=function(g,a){g.push.apply(g,a)};za=function(g,a){var r,d;r=0;for(d=g.length;r<d;++r)if(g[r]===a)return r;return-1};
Aa=function(g,a){var r=za(g,a);-1!==r&&va(g,r)};V=function(g){return g/(180/oa)};Ba=function(g){return 180/oa*g};Ca=function(g){g%=360;0>g&&(g+=360);return g};Da=function(g){g%=2*oa;0>g&&(g+=2*oa);return g};Ea=function(g){return Ca(Ba(g))};Fa=function(g){return Da(V(g))};Ga=function(g,a,r,d){return Math.atan2(d-a,r-g)};Ia=function(g,a){if(g===a)return 0;var r=Math.sin(g),d=Math.cos(g),b=Math.sin(a),c=Math.cos(a),r=r*b+d*c;return 1<=r?0:-1>=r?oa:Math.acos(r)};Ja=function(g,a,r){var d=Math.sin(g),b=
Math.cos(g),c=Math.sin(a),w=Math.cos(a);return Math.acos(d*c+b*w)>r?0<b*c-d*w?Da(g+r):Da(g-r):Da(a)};Ka=function(g,a){var r=Math.sin(g),d=Math.cos(g),b=Math.sin(a),c=Math.cos(a);return 0>=d*b-r*c};Pa=function(g,a,r,d,b,c){if(0===r)return c?g:a;var w=Math.sin(r);r=Math.cos(r);g-=d;a-=b;var m=g*w;g=g*r-a*w;a=a*r+m;return c?g+d:a+b};Qa=function(g,a,r,d){g=r-g;a=d-a;return Math.sqrt(g*g+a*a)};Ra=function(g,a){return!g!==!a};Sa=function(g){for(var a in g)if(g.hasOwnProperty(a))return!0;return!1};Ta=function(g){for(var a in g)g.hasOwnProperty(a)&&
delete g[a]};var r=+new Date;Ua=function(){if("undefined"!==typeof window.performance){var g=window.performance;if("undefined"!==typeof g.now)return g.now();if("undefined"!==typeof g.webkitNow)return g.webkitNow();if("undefined"!==typeof g.mozNow)return g.mozNow();if("undefined"!==typeof g.msNow)return g.msNow()}return Date.now()-r};var g=!1,w=g=!1,F=!1;"undefined"!==typeof window&&(g=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),g=!g&&/safari/i.test(navigator.userAgent),
w=/(iphone|ipod|ipad)/i.test(navigator.userAgent),F=window.c2ejecta);var u=!g&&!F&&!w&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;q.prototype.contains=function(g){return this.td()?!1:u?this.Jc.has(g):this.items&&this.items.hasOwnProperty(g)};q.prototype.add=function(g){if(u)this.Jc.has(g)||(this.Jc.add(g),this.Rd=!1);else{var a=g.toString(),r=this.items;r?r.hasOwnProperty(a)||(r[a]=g,this.uf++,this.Rd=!1):(this.items={},this.items[a]=g,this.uf=1,this.Rd=!1)}};q.prototype.remove=
function(g){if(!this.td())if(u)this.Jc.has(g)&&(this.Jc["delete"](g),this.Rd=!1);else if(this.items){g=g.toString();var a=this.items;a.hasOwnProperty(g)&&(delete a[g],this.uf--,this.Rd=!1)}};q.prototype.clear=function(){this.td()||(u?this.Jc.clear():(this.items=null,this.uf=0),this.Xf.length=0,this.Rd=!0)};q.prototype.td=function(){return 0===this.count()};q.prototype.count=function(){return u?this.Jc.size:this.uf};var E=null,J=0;q.prototype.eu=function(){if(!this.Rd){if(u)this.Xf.length=this.Jc.size,
E=this.Xf,J=0,this.Jc.forEach(l),E=null,J=0;else{var g=this.Xf;g.length=this.uf;var a,r=0,d=this.items;if(d)for(a in d)d.hasOwnProperty(a)&&(g[r++]=d[a])}this.Rd=!0}};q.prototype.Mc=function(){this.eu();return this.Xf};ca=q;new ca;Va=function(g,a){u?Wa(g,a.Jc):Xa(g,a.Mc())};Wa=function(g,a){var r,d,b,c;d=r=0;for(b=g.length;r<b;++r)c=g[r],a.has(c)||(g[d++]=c);g.length=d};Xa=function(g,a){var r,d,b,c;d=r=0;for(b=g.length;r<b;++r)c=g[r],-1===za(a,c)&&(g[d++]=c);g.length=d};c.prototype.add=function(g){this.y=
g-this.Nj;this.jj=this.da+this.y;this.Nj=this.jj-this.da-this.y;this.da=this.jj};c.prototype.reset=function(){this.da=this.jj=this.y=this.Nj=0};Ya=c;Za=function(g){return g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};a.prototype.qh=function(g){this.Jo=g;this.Vi=g.length/2;this.Jf.length=g.length;this.Oj=this.Pj=-1;this.Lm=0};a.prototype.Ss=function(){return!this.Jo.length};a.prototype.Wa=function(){for(var g=this.Jf,a=g[0],r=a,d=g[1],b=d,c,w,m=1,u=this.Vi;m<u;++m)w=2*m,c=g[w],w=g[w+1],c<a&&(a=c),
c>r&&(r=c),w<d&&(d=w),w>b&&(b=w);this.Em=a;this.Fm=r;this.Gm=d;this.Dm=b};a.prototype.ph=function(g,a,r){this.Jf.length=8;this.Vi=4;var d=this.Jf;d[0]=g.left-a;d[1]=g.top-r;d[2]=g.right-a;d[3]=g.top-r;d[4]=g.right-a;d[5]=g.bottom-r;d[6]=g.left-a;d[7]=g.bottom-r;this.Pj=g.right-g.left;this.Oj=g.bottom-g.top;this.Wa()};a.prototype.Pq=function(g,a,r){if(this.Pj!==g||this.Oj!==a||this.Lm!==r){this.Pj=g;this.Oj=a;this.Lm=r;var d,b,c,w,m,u=0,n=1,e=this.Jo,F=this.Jf;0!==r&&(u=Math.sin(r),n=Math.cos(r));
r=0;for(c=this.Vi;r<c;r++)d=2*r,b=d+1,w=e[d]*g,m=e[b]*a,F[d]=w*n-m*u,F[b]=m*n+w*u;this.Wa()}};a.prototype.Hb=function(g,a){var r=this.Jf;if(g===r[0]&&a===r[1])return!0;var d,b,c,w=this.Vi,m=this.Em-110,u=this.Gm-101,n=this.Fm+131,e=this.Dm+120,F,J,h=0,E=0;for(d=0;d<w;d++)b=2*d,c=(d+1)%w*2,F=r[b],b=r[b+1],J=r[c],c=r[c+1],ra(m,u,g,a,F,b,J,c)&&h++,ra(n,e,g,a,F,b,J,c)&&E++;return 1===h%2||1===E%2};$a=a;b.prototype.Xd=function(g,a,r){var d;d=this.cells[g];return d?(d=d[a])?d:r?(d=h(this,g,a),this.cells[g][a]=
d):null:r?(d=h(this,g,a),this.cells[g]={},this.cells[g][a]=d):null};b.prototype.Pb=function(g){return T(g/this.Sj)};b.prototype.Qb=function(g){return T(g/this.Rj)};b.prototype.update=function(g,a,r){var d,b,c,w,m;if(a)for(d=a.left,b=a.right;d<=b;++d)for(c=a.top,w=a.bottom;c<=w;++c)if(!r||!r.Hb(d,c))if(m=this.Xd(d,c,!1))m.remove(g),m.td()&&(m.Ta.clear(),1E3>A.length&&A.push(m),this.cells[d][c]=null);if(r)for(d=r.left,b=r.right;d<=b;++d)for(c=r.top,w=r.bottom;c<=w;++c)a&&a.Hb(d,c)||this.Xd(d,c,!0).Mk(g)};
b.prototype.Lo=function(g,a){var r,d,b,c,w,m;r=this.Pb(g.left);b=this.Qb(g.top);d=this.Pb(g.right);for(w=this.Qb(g.bottom);r<=d;++r)for(c=b;c<=w;++c)(m=this.Xd(r,c,!1))&&m.dump(a)};ab=b;e.prototype.Xd=function(g,a,r){var d;d=this.cells[g];return d?(d=d[a])?d:r?(d=m(this,g,a),this.cells[g][a]=d):null:r?(d=m(this,g,a),this.cells[g]={},this.cells[g][a]=d):null};e.prototype.Pb=function(g){return T(g/this.Sj)};e.prototype.Qb=function(g){return T(g/this.Rj)};e.prototype.update=function(g,a,r){var d,b,c,
w,m;if(a)for(d=a.left,b=a.right;d<=b;++d)for(c=a.top,w=a.bottom;c<=w;++c)if(!r||!r.Hb(d,c))if(m=this.Xd(d,c,!1))m.remove(g),m.td()&&(m.reset(),1E3>v.length&&v.push(m),this.cells[d][c]=null);if(r)for(d=r.left,b=r.right;d<=b;++d)for(c=r.top,w=r.bottom;c<=w;++c)a&&a.Hb(d,c)||this.Xd(d,c,!0).Mk(g)};e.prototype.Lo=function(g,a,r,d,b){var c,w;g=this.Pb(g);a=this.Qb(a);r=this.Pb(r);for(c=this.Qb(d);g<=r;++g)for(d=a;d<=c;++d)(w=this.Xd(g,d,!1))&&w.dump(b)};e.prototype.Ys=function(g){var a,r,d,b,c;a=g.left;
d=g.top;r=g.right;for(b=g.bottom;a<=r;++a)for(g=d;g<=b;++g)if(c=this.Xd(a,g,!1))c.sf=!1};bb=e;var A=[];d.prototype.td=function(){return this.Ta.td()};d.prototype.Mk=function(g){this.Ta.add(g)};d.prototype.remove=function(g){this.Ta.remove(g)};d.prototype.dump=function(g){ya(g,this.Ta.Mc())};aa=d;var v=[];s.prototype.td=function(){if(!this.Ta.length)return!0;if(this.Ta.length>this.Yc.count())return!1;this.mk();return!0};s.prototype.Mk=function(g){this.Yc.contains(g)?(this.Yc.remove(g),this.Yc.td()&&
(this.ag=!1)):this.Ta.length?(this.Ta[this.Ta.length-1].nc()>g.nc()&&(this.sf=!1),this.Ta.push(g)):(this.Ta.push(g),this.sf=!0)};s.prototype.remove=function(g){this.Yc.add(g);this.ag=!0;30<=this.Yc.count()&&this.mk()};s.prototype.mk=function(){this.ag&&(this.Yc.count()===this.Ta.length?this.reset():(Va(this.Ta,this.Yc),this.Yc.clear(),this.ag=!1))};s.prototype.ur=function(){this.sf||(this.Ta.sort(n),this.sf=!0)};s.prototype.reset=function(){this.Ta.length=0;this.sf=!0;this.Yc.clear();this.ag=!1};
s.prototype.dump=function(g){this.mk();this.ur();this.Ta.length&&g.push(this.Ta)};ea=s;var z="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");cb=function(g){return 0>=g||11<=g?"source-over":z[g-1]};db=function(g,a,r){if(r)switch(g.gb=r.ONE,g.eb=r.ONE_MINUS_SRC_ALPHA,a){case 1:g.gb=r.ONE;g.eb=r.ONE;break;case 3:g.gb=r.ONE;g.eb=r.ZERO;break;case 4:g.gb=r.ONE_MINUS_DST_ALPHA;g.eb=r.ONE;break;case 5:g.gb=r.DST_ALPHA;g.eb=r.ZERO;
break;case 6:g.gb=r.ZERO;g.eb=r.SRC_ALPHA;break;case 7:g.gb=r.ONE_MINUS_DST_ALPHA;g.eb=r.ZERO;break;case 8:g.gb=r.ZERO;g.eb=r.ONE_MINUS_SRC_ALPHA;break;case 9:g.gb=r.DST_ALPHA;g.eb=r.ONE_MINUS_SRC_ALPHA;break;case 10:g.gb=r.ONE_MINUS_DST_ALPHA,g.eb=r.SRC_ALPHA}};eb=function(g){return Math.round(1E6*g)/1E6};fb=function(g,a){return"string"!==typeof g||"string"!==typeof a||g.length!==a.length?!1:g===a?!0:g.toLowerCase()===a.toLowerCase()};gb=function(g){g=g.target;return!g||g===document||g===window||
document&&document.body&&g===document.body||fb(g.tagName,"canvas")?!0:!1}})();var Zb="undefined"!==typeof Float32Array?Float32Array:Array;function $b(k){var p=new Zb(3);k&&(p[0]=k[0],p[1]=k[1],p[2]=k[2]);return p}function ac(k){var p=new Zb(16);k&&(p[0]=k[0],p[1]=k[1],p[2]=k[2],p[3]=k[3],p[4]=k[4],p[5]=k[5],p[6]=k[6],p[7]=k[7],p[8]=k[8],p[9]=k[9],p[10]=k[10],p[11]=k[11],p[12]=k[12],p[13]=k[13],p[14]=k[14],p[15]=k[15]);return p}
function bc(k,p){p[0]=k[0];p[1]=k[1];p[2]=k[2];p[3]=k[3];p[4]=k[4];p[5]=k[5];p[6]=k[6];p[7]=k[7];p[8]=k[8];p[9]=k[9];p[10]=k[10];p[11]=k[11];p[12]=k[12];p[13]=k[13];p[14]=k[14];p[15]=k[15]}function cc(k,p){var f=p[0],q=p[1];p=p[2];k[0]*=f;k[1]*=f;k[2]*=f;k[3]*=f;k[4]*=q;k[5]*=q;k[6]*=q;k[7]*=q;k[8]*=p;k[9]*=p;k[10]*=p;k[11]*=p}
function dc(k,p,f,q){q||(q=ac());var l,c,a,b,e,h,d,m,s=k[0],n=k[1];k=k[2];c=f[0];a=f[1];l=f[2];f=p[1];h=p[2];s===p[0]&&n===f&&k===h?(k=q,k[0]=1,k[1]=0,k[2]=0,k[3]=0,k[4]=0,k[5]=1,k[6]=0,k[7]=0,k[8]=0,k[9]=0,k[10]=1,k[11]=0,k[12]=0,k[13]=0,k[14]=0,k[15]=1):(f=s-p[0],h=n-p[1],d=k-p[2],m=1/Math.sqrt(f*f+h*h+d*d),f*=m,h*=m,d*=m,p=a*d-l*h,l=l*f-c*d,c=c*h-a*f,(m=Math.sqrt(p*p+l*l+c*c))?(m=1/m,p*=m,l*=m,c*=m):c=l=p=0,a=h*c-d*l,b=d*p-f*c,e=f*l-h*p,(m=Math.sqrt(a*a+b*b+e*e))?(m=1/m,a*=m,b*=m,e*=m):e=b=a=0,
q[0]=p,q[1]=a,q[2]=f,q[3]=0,q[4]=l,q[5]=b,q[6]=h,q[7]=0,q[8]=c,q[9]=e,q[10]=d,q[11]=0,q[12]=-(p*s+l*n+c*k),q[13]=-(a*s+b*n+e*k),q[14]=-(f*s+h*n+d*k),q[15]=1)}
(function(){function k(c){this.He=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Mm=$b([0,0,100]);this.Qn=$b([0,0,0]);this.qp=$b([0,1,0]);this.fm=$b([1,1,1]);this.Um=!0;this.dl=ac();this.tc=ac();this.En=ac();this.$j=ac();this.k=c;this.qn()}function p(c,a,b){this.k=c;this.rh=a;this.name=b;this.rc=c.getAttribLocation(a,"aPos");this.be=c.getAttribLocation(a,"aTex");this.On=c.getUniformLocation(a,"matP");this.Bi=c.getUniformLocation(a,"matMV");this.yf=
c.getUniformLocation(a,"opacity");this.Pn=c.getUniformLocation(a,"samplerFront");this.Rg=c.getUniformLocation(a,"samplerBack");this.Pe=c.getUniformLocation(a,"destStart");this.Oe=c.getUniformLocation(a,"destEnd");this.al=c.getUniformLocation(a,"seconds");this.$k=c.getUniformLocation(a,"pixelWidth");this.Zk=c.getUniformLocation(a,"pixelHeight");this.Qg=c.getUniformLocation(a,"layerScale");this.Pg=c.getUniformLocation(a,"layerAngle");this.Tg=c.getUniformLocation(a,"viewOrigin");this.Sg=c.getUniformLocation(a,
"scrollPos");this.Gs=!!(this.$k||this.Zk||this.al||this.Rg||this.Pe||this.Oe||this.Qg||this.Pg||this.Tg||this.Sg);this.Yn=this.Zn=-999;this.Di=1;this.Un=this.Tn=0;this.Wn=this.Sn=this.Rn=1;this.ao=this.$n=this.co=this.bo=this.Vn=0;this.Vk=[];this.Xn=ac();this.yf&&c.uniform1f(this.yf,1);this.Pn&&c.uniform1i(this.Pn,0);this.Rg&&c.uniform1i(this.Rg,1);this.Pe&&c.uniform2f(this.Pe,0,0);this.Oe&&c.uniform2f(this.Oe,1,1);this.Qg&&c.uniform1f(this.Qg,1);this.Pg&&c.uniform1f(this.Pg,0);this.Tg&&c.uniform2f(this.Tg,
0,0);this.Sg&&c.uniform2f(this.Sg,0,0);this.De=!1}function f(c,a){this.type=c;this.n=a;this.k=a.k;this.oc=this.$b=this.so=0;this.aa=this.Kc=null;this.Xo=[]}k.prototype.qn=function(){var c=this.k,a;this.Fn=1;this.Le=this.Ke=null;this.Lh=1;c.clearColor(0,0,0,0);c.clear(c.COLOR_BUFFER_BIT);c.enable(c.BLEND);c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA);c.disable(c.CULL_FACE);c.disable(c.DEPTH_TEST);this.Hn=c.ONE;this.Cn=c.ONE_MINUS_SRC_ALPHA;this.tl=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,this.tl);this.Ah=
Array(4);this.vh=Array(4);for(a=0;4>a;a++)this.Ah[a]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Ah[a]),this.vh[a]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.vh[a]);this.kd=0;this.Js=c.createBuffer();c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.Js);this.$l=new Float32Array(16E3);this.Ol=new Float32Array(16E3);this.Fo=new Float32Array(32E3);for(var b=new Uint16Array(12E3),e=a=0;12E3>a;)b[a++]=e,b[a++]=e+1,b[a++]=e+2,b[a++]=e,b[a++]=e+2,b[a++]=e+3,e+=4;c.bufferData(c.ELEMENT_ARRAY_BUFFER,b,
c.STATIC_DRAW);this.Hf=this.dd=0;this.Na=[];a=this.Zj({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}","<default>");
this.Na.push(a);a=this.Zj({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.Na.push(a);for(var h in ec)ec.hasOwnProperty(h)&&this.Na.push(this.Zj(ec[h],
"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}",h));c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,null);this.jd=[];this.Pc=0;this.Ib=this.sb=!1;this.Qm=this.Fg=-1;this.kg=null;this.Yr=c.createFramebuffer();this.No=null;this.ke=$b([0,0,0]);c=c.getParameter(c.ALIASED_POINT_SIZE_RANGE);this.bt=c[0];this.el=
c[1];2048<this.el&&(this.el=2048);this.ad(0)};p.prototype.Wl=function(c){var a=this.Xn;if(a[0]!==c[0]||a[1]!==c[1]||a[2]!==c[2]||a[3]!==c[3]||a[4]!==c[4]||a[5]!==c[5]||a[6]!==c[6]||a[7]!==c[7]||a[8]!==c[8]||a[9]!==c[9]||a[10]!==c[10]||a[11]!==c[11]||a[12]!==c[12]||a[13]!==c[13]||a[14]!==c[14]||a[15]!==c[15])bc(c,this.Xn),this.k.uniformMatrix4fv(this.Bi,!1,c)};k.prototype.Zj=function(c,a,b){var e=this.k,h=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(h,c.src);e.compileShader(h);if(!e.getShaderParameter(h,
e.COMPILE_STATUS))return e.deleteShader(h),null;var d=e.createShader(e.VERTEX_SHADER);e.shaderSource(d,a);e.compileShader(d);if(!e.getShaderParameter(d,e.COMPILE_STATUS))return e.deleteShader(h),e.deleteShader(d),null;a=e.createProgram();e.attachShader(a,h);e.attachShader(a,d);e.linkProgram(a);if(!e.getProgramParameter(a,e.LINK_STATUS))return e.deleteShader(h),e.deleteShader(d),e.deleteProgram(a),null;e.useProgram(a);e.deleteShader(h);e.deleteShader(d);b=new p(e,a,b);b.ik=c.ik||0;b.jk=c.jk||0;b.Pm=
!!c.Pm;b.zm=!!c.zm;b.L=c.L||[];c=0;for(h=b.L.length;c<h;c++)b.L[c][1]=e.getUniformLocation(a,b.L[c][0]),b.Vk.push(0),e.uniform1f(b.L[c][1],0);return b};k.prototype.zk=function(c){var a,b;a=0;for(b=this.Na.length;a<b;a++)if(this.Na[a].name===c)return a;return-1};k.prototype.Io=function(c,a,b){var e=this.tc,h=this.dl,d=[0,0,0,0,0,0,0,0];d[0]=e[0]*c+e[4]*a+e[12];d[1]=e[1]*c+e[5]*a+e[13];d[2]=e[2]*c+e[6]*a+e[14];d[3]=e[3]*c+e[7]*a+e[15];d[4]=h[0]*d[0]+h[4]*d[1]+h[8]*d[2]+h[12]*d[3];d[5]=h[1]*d[0]+h[5]*
d[1]+h[9]*d[2]+h[13]*d[3];d[6]=h[2]*d[0]+h[6]*d[1]+h[10]*d[2]+h[14]*d[3];d[7]=-d[2];0!==d[7]&&(d[7]=1/d[7],d[4]*=d[7],d[5]*=d[7],d[6]*=d[7],b[0]=(.5*d[4]+.5)*this.width,b[1]=(.5*d[5]+.5)*this.height)};k.prototype.Nf=function(c,a,b){if(this.width!==c||this.height!==a||b){this.Vd();this.width=c;this.height=a;this.k.viewport(0,0,c,a);a=c/a;var e=this.dl,h;h=1*Math.tan(45*Math.PI/360);a*=h;c=-a;b=-h;e||(e=ac());var d=a-c,m=h-b;e[0]=2/d;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=2/m;e[6]=0;e[7]=0;e[8]=(a+c)/d;e[9]=
(h+b)/m;e[10]=-1001/999;e[11]=-1;e[12]=0;e[13]=0;e[14]=-2E3/999;e[15]=0;dc(this.Mm,this.Qn,this.qp,this.tc);c=[0,0];a=[0,0];this.Io(0,0,c);this.Io(1,1,a);this.fm[0]=1/(a[0]-c[0]);this.fm[1]=-1/(a[1]-c[1]);c=0;for(a=this.Na.length;c<a;c++)b=this.Na[c],b.De=!1,b.On&&(this.k.useProgram(b.rh),this.k.uniformMatrix4fv(b.On,!1,this.dl));this.k.useProgram(this.Na[this.Fg].rh);this.k.bindTexture(this.k.TEXTURE_2D,null);this.k.activeTexture(this.k.TEXTURE1);this.k.bindTexture(this.k.TEXTURE_2D,null);this.k.activeTexture(this.k.TEXTURE0);
this.Le=this.Ke=null}};k.prototype.fe=function(){dc(this.Mm,this.Qn,this.qp,this.tc);cc(this.tc,this.fm)};k.prototype.translate=function(c,a){if(0!==c||0!==a){this.ke[0]=c;this.ke[1]=a;this.ke[2]=0;var b=this.tc,e=this.ke,h=e[0],d=e[1],e=e[2];b[12]=b[0]*h+b[4]*d+b[8]*e+b[12];b[13]=b[1]*h+b[5]*d+b[9]*e+b[13];b[14]=b[2]*h+b[6]*d+b[10]*e+b[14];b[15]=b[3]*h+b[7]*d+b[11]*e+b[15]}};k.prototype.scale=function(c,a){if(1!==c||1!==a)this.ke[0]=c,this.ke[1]=a,this.ke[2]=1,cc(this.tc,this.ke)};k.prototype.Oo=
function(c){if(0!==c){var a=this.tc,b,e=Math.sin(c);c=Math.cos(c);var h=a[0],d=a[1],m=a[2],f=a[3],n=a[4],t=a[5],k=a[6],r=a[7];b?a!==b&&(b[8]=a[8],b[9]=a[9],b[10]=a[10],b[11]=a[11],b[12]=a[12],b[13]=a[13],b[14]=a[14],b[15]=a[15]):b=a;b[0]=h*c+n*e;b[1]=d*c+t*e;b[2]=m*c+k*e;b[3]=f*c+r*e;b[4]=h*-e+n*c;b[5]=d*-e+t*c;b[6]=m*-e+k*c;b[7]=f*-e+r*c}};k.prototype.me=function(){for(var c=!1,a=0;16>a;a++)if(this.En[a]!==this.tc[a]){c=!0;break}c&&(c=this.wc(),c.type=5,c.aa?bc(this.tc,c.aa):c.aa=ac(this.tc),bc(this.tc,
this.En),this.Ib=this.sb=!1)};f.prototype.kr=function(){this.k.bindTexture(this.k.TEXTURE_2D,this.Kc)};f.prototype.lr=function(){var c=this.k;c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,this.Kc);c.activeTexture(c.TEXTURE0)};f.prototype.hr=function(){var c=this.so,a=this.n;a.Lh=c;a=a.kg;a.yf&&a.Di!==c&&(a.Di=c,this.k.uniform1f(a.yf,c))};f.prototype.dr=function(){this.k.drawElements(this.k.TRIANGLES,this.oc,this.k.UNSIGNED_SHORT,2*this.$b)};f.prototype.fr=function(){this.k.blendFunc(this.$b,
this.oc)};f.prototype.mr=function(){var c,a,b,e=this.n.Na,h=this.n.Qm;c=0;for(a=e.length;c<a;c++)b=e[c],c===h&&b.Bi?(b.Wl(this.aa),b.De=!0):b.De=!1;bc(this.aa,this.n.$j)};f.prototype.er=function(){var c=this.k,a=this.n;this.Kc?(a.Le===this.Kc&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,null),a.Le=null,c.activeTexture(c.TEXTURE0)),c.bindFramebuffer(c.FRAMEBUFFER,a.Yr),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,this.Kc,0)):(c.framebufferTexture2D(c.FRAMEBUFFER,
c.COLOR_ATTACHMENT0,c.TEXTURE_2D,null,0),c.bindFramebuffer(c.FRAMEBUFFER,null))};f.prototype.br=function(){var c=this.k;0===this.$b?(c.clearColor(this.aa[0],this.aa[1],this.aa[2],this.aa[3]),c.clear(c.COLOR_BUFFER_BIT)):(c.enable(c.SCISSOR_TEST),c.scissor(this.aa[0],this.aa[1],this.aa[2],this.aa[3]),c.clearColor(0,0,0,0),c.clear(this.k.COLOR_BUFFER_BIT),c.disable(c.SCISSOR_TEST))};f.prototype.cr=function(){var c=this.k,a=this.n,b=a.Na[1];c.useProgram(b.rh);!b.De&&b.Bi&&(b.Wl(a.$j),b.De=!0);c.enableVertexAttribArray(b.rc);
c.bindBuffer(c.ARRAY_BUFFER,a.tl);c.vertexAttribPointer(b.rc,4,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,this.$b/4,this.oc);b=a.kg;c.useProgram(b.rh);0<=b.rc&&(c.enableVertexAttribArray(b.rc),c.bindBuffer(c.ARRAY_BUFFER,a.Ah[a.kd]),c.vertexAttribPointer(b.rc,2,c.FLOAT,!1,0,0));0<=b.be&&(c.enableVertexAttribArray(b.be),c.bindBuffer(c.ARRAY_BUFFER,a.vh[a.kd]),c.vertexAttribPointer(b.be,2,c.FLOAT,!1,0,0))};f.prototype.ir=function(){var c=this.k,a=this.n,b=a.Na[this.$b];a.Qm=this.$b;a.kg=b;c.useProgram(b.rh);
!b.De&&b.Bi&&(b.Wl(a.$j),b.De=!0);b.yf&&b.Di!==a.Lh&&(b.Di=a.Lh,c.uniform1f(b.yf,a.Lh));0<=b.rc&&(c.enableVertexAttribArray(b.rc),c.bindBuffer(c.ARRAY_BUFFER,a.Ah[a.kd]),c.vertexAttribPointer(b.rc,2,c.FLOAT,!1,0,0));0<=b.be&&(c.enableVertexAttribArray(b.be),c.bindBuffer(c.ARRAY_BUFFER,a.vh[a.kd]),c.vertexAttribPointer(b.be,2,c.FLOAT,!1,0,0))};f.prototype.jr=function(){var c,a,b=this.n.kg,e=this.k;c=this.aa;b.Rg&&this.n.Le!==this.Kc&&(e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,this.Kc),
this.n.Le=this.Kc,e.activeTexture(e.TEXTURE0));var h=c[0];b.$k&&h!==b.Zn&&(b.Zn=h,e.uniform1f(b.$k,h));h=c[1];b.Zk&&h!==b.Yn&&(b.Yn=h,e.uniform1f(b.Zk,h));h=c[2];a=c[3];!b.Pe||h===b.Tn&&a===b.Un||(b.Tn=h,b.Un=a,e.uniform2f(b.Pe,h,a));h=c[4];a=c[5];!b.Oe||h===b.Rn&&a===b.Sn||(b.Rn=h,b.Sn=h,e.uniform2f(b.Oe,h,a));h=c[6];b.Qg&&h!==b.Wn&&(b.Wn=h,e.uniform1f(b.Qg,h));h=c[7];b.Pg&&h!==b.Vn&&(b.Vn=h,e.uniform1f(b.Pg,h));h=c[8];a=c[9];!b.Tg||h===b.bo&&a===b.co||(b.bo=h,b.co=a,e.uniform2f(b.Tg,h,a));h=c[10];
a=c[11];!b.Sg||h===b.$n&&a===b.ao||(b.$n=h,b.ao=a,e.uniform2f(b.Sg,h,a));b.al&&e.uniform1f(b.al,Ua()/1E3);if(b.L.length)for(c=0,a=b.L.length;c<a;c++)h=this.Xo[c],h!==b.Vk[c]&&(b.Vk[c]=h,e.uniform1f(b.L[c][1],h))};k.prototype.wc=function(){this.Pc===this.jd.length&&this.jd.push(new f(0,this));return this.jd[this.Pc++]};k.prototype.Vd=function(){if(0!==this.Pc&&!this.k.isContextLost()){var c=this.k;0<this.Hf&&(c.bindBuffer(c.ARRAY_BUFFER,this.tl),c.bufferData(c.ARRAY_BUFFER,this.Fo.subarray(0,this.Hf),
c.STREAM_DRAW),a&&0<=a.rc&&"<point>"===a.name&&c.vertexAttribPointer(a.rc,4,c.FLOAT,!1,0,0));if(0<this.dd){var a=this.kg;c.bindBuffer(c.ARRAY_BUFFER,this.Ah[this.kd]);c.bufferData(c.ARRAY_BUFFER,this.$l.subarray(0,this.dd),c.STREAM_DRAW);a&&0<=a.rc&&"<point>"!==a.name&&c.vertexAttribPointer(a.rc,2,c.FLOAT,!1,0,0);c.bindBuffer(c.ARRAY_BUFFER,this.vh[this.kd]);c.bufferData(c.ARRAY_BUFFER,this.Ol.subarray(0,this.dd),c.STREAM_DRAW);a&&0<=a.be&&"<point>"!==a.name&&c.vertexAttribPointer(a.be,2,c.FLOAT,
!1,0,0)}for(var b,c=0,a=this.Pc;c<a;c++)switch(b=this.jd[c],b.type){case 1:b.dr();break;case 2:b.kr();break;case 3:b.hr();break;case 4:b.fr();break;case 5:b.mr();break;case 6:b.er();break;case 7:b.br();break;case 8:b.cr();break;case 9:b.ir();break;case 10:b.jr();break;case 11:b.lr()}this.Hf=this.dd=this.Pc=0;this.Ib=this.sb=!1;this.kd++;4<=this.kd&&(this.kd=0)}};k.prototype.Ue=function(c){if(c!==this.Fn){var a=this.wc();a.type=3;this.Fn=a.so=c;this.Ib=this.sb=!1}};k.prototype.Nb=function(c){if(c!==
this.Ke){var a=this.wc();a.type=2;this.Ke=a.Kc=c;this.Ib=this.sb=!1}};k.prototype.ge=function(c,a){if(c!==this.Hn||a!==this.Cn){var b=this.wc();b.type=4;b.$b=c;b.oc=a;this.Hn=c;this.Cn=a;this.Ib=this.sb=!1}};k.prototype.So=function(){this.ge(this.k.ONE,this.k.ONE_MINUS_SRC_ALPHA)};k.prototype.kh=function(c,a,b,e,h,d,m,f){15992<=this.dd&&this.Vd();var n=this.dd,t=this.$l,k=this.Ol;if(this.sb)this.jd[this.Pc-1].oc+=6;else{var r=this.wc();r.type=1;r.$b=n/4*3;r.oc=6;this.sb=!0;this.Ib=!1}t[n]=c;k[n++]=
0;t[n]=a;k[n++]=0;t[n]=b;k[n++]=1;t[n]=e;k[n++]=0;t[n]=h;k[n++]=1;t[n]=d;k[n++]=1;t[n]=m;k[n++]=0;t[n]=f;k[n++]=1;this.dd=n};k.prototype.Cd=function(c,a,b,e,h,d,m,f,n){15992<=this.dd&&this.Vd();var t=this.dd,k=this.$l,r=this.Ol;if(this.sb)this.jd[this.Pc-1].oc+=6;else{var g=this.wc();g.type=1;g.$b=t/4*3;g.oc=6;this.sb=!0;this.Ib=!1}var g=n.left,w=n.top,F=n.right;n=n.bottom;k[t]=c;r[t++]=g;k[t]=a;r[t++]=w;k[t]=b;r[t++]=F;k[t]=e;r[t++]=w;k[t]=h;r[t++]=F;k[t]=d;r[t++]=n;k[t]=m;r[t++]=g;k[t]=f;r[t++]=
n;this.dd=t};k.prototype.wt=function(c,a,b,e){7996<=this.Hf&&this.Vd();var h=this.Hf,d=this.Fo;if(this.Ib)this.jd[this.Pc-1].oc++;else{var m=this.wc();m.type=8;m.$b=h;m.oc=1;this.Ib=!0;this.sb=!1}d[h++]=c;d[h++]=a;d[h++]=b;d[h++]=e;this.Hf=h};k.prototype.ad=function(c){if(this.Fg!==c){if(!this.Na[c]){if(0===this.Fg)return;c=0}var a=this.wc();a.type=9;this.Fg=a.$b=c;this.Ib=this.sb=!1}};k.prototype.ih=function(c){c=this.Na[c];return!(!c.Pe&&!c.Oe)};k.prototype.ul=function(c){c=this.Na[c];return!!(c.Pe||
c.Oe||c.Pm)};k.prototype.Dt=function(c){c=this.Na[c];return 0!==c.ik||0!==c.jk};k.prototype.os=function(c){return this.Na[c].ik};k.prototype.ps=function(c){return this.Na[c].jk};k.prototype.qs=function(c,a){return this.Na[c].L[a][2]};k.prototype.Ui=function(c){return this.Na[c].zm};k.prototype.Mf=function(c,a,b,e,h,d,m,f,n,k,p,r,g,w){var F=this.Na[this.Fg],u,E;if(F.Gs||w.length){u=this.wc();u.type=10;u.aa?bc(this.tc,u.aa):u.aa=ac();E=u.aa;E[0]=a;E[1]=b;E[2]=e;E[3]=h;E[4]=d;E[5]=m;E[6]=f;E[7]=n;E[8]=
k;E[9]=p;E[10]=r;E[11]=g;u.Kc=F.Rg?c:null;if(w.length)for(b=u.Xo,b.length=w.length,c=0,a=w.length;c<a;c++)b[c]=w[c];this.Ib=this.sb=!1}};k.prototype.clear=function(c,a,b,e){var h=this.wc();h.type=7;h.$b=0;h.aa||(h.aa=ac());h.aa[0]=c;h.aa[1]=a;h.aa[2]=b;h.aa[3]=e;this.Ib=this.sb=!1};k.prototype.clearRect=function(c,a,b,e){if(!(0>b||0>e)){var h=this.wc();h.type=7;h.$b=1;h.aa||(h.aa=ac());h.aa[0]=c;h.aa[1]=a;h.aa[2]=b;h.aa[3]=e;this.Ib=this.sb=!1}};k.prototype.Ct=function(){this.Vd();this.k.flush()};
var q=[],l={};k.prototype.Tq=function(){q.length=0;l={}};k.prototype.wf=function(c,a,b,e){a=!!a;b=!!b;var h=c.src+","+a+","+b+(a?",undefined":""),d=null;if("undefined"!==typeof c.src&&l.hasOwnProperty(h))return d=l[h],d.Dh++,d;this.Vd();var m=this.k,f=ia(c.width)&&ia(c.height),d=m.createTexture();m.bindTexture(m.TEXTURE_2D,d);m.pixelStorei(m.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var n=m.RGBA,k=m.RGBA,p=m.UNSIGNED_BYTE;if(e&&!this.He)switch(e){case 1:k=n=m.RGB;break;case 2:p=m.UNSIGNED_SHORT_4_4_4_4;
break;case 3:p=m.UNSIGNED_SHORT_5_5_5_1;break;case 4:k=n=m.RGB,p=m.UNSIGNED_SHORT_5_6_5}if(!f&&a){e=document.createElement("canvas");e.width=ja(c.width);e.height=ja(c.height);var r=e.getContext("2d");r.webkitImageSmoothingEnabled=b;r.mozImageSmoothingEnabled=b;r.msImageSmoothingEnabled=b;r.imageSmoothingEnabled=b;r.drawImage(c,0,0,c.width,c.height,0,0,e.width,e.height);m.texImage2D(m.TEXTURE_2D,0,n,k,p,e)}else m.texImage2D(m.TEXTURE_2D,0,n,k,p,c);a?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_S,m.REPEAT),
m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_T,m.REPEAT)):(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_S,m.CLAMP_TO_EDGE),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_T,m.CLAMP_TO_EDGE));b?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MAG_FILTER,m.LINEAR),f&&this.Um?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,m.LINEAR_MIPMAP_LINEAR),m.generateMipmap(m.TEXTURE_2D)):m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,m.LINEAR)):(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MAG_FILTER,m.NEAREST),m.texParameteri(m.TEXTURE_2D,
m.TEXTURE_MIN_FILTER,m.NEAREST));m.bindTexture(m.TEXTURE_2D,null);this.Ke=null;d.fg=c.width;d.eg=c.height;d.Dh=1;d.Km=h;q.push(d);return l[h]=d};k.prototype.Td=function(c,a,b){var e;this.Vd();var h=this.k;this.He&&(e=!1);var d=h.createTexture();h.bindTexture(h.TEXTURE_2D,d);h.texImage2D(h.TEXTURE_2D,0,h.RGBA,c,a,0,h.RGBA,e?h.UNSIGNED_SHORT_4_4_4_4:h.UNSIGNED_BYTE,null);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,
h.TEXTURE_MAG_FILTER,b?h.LINEAR:h.NEAREST);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,b?h.LINEAR:h.NEAREST);h.bindTexture(h.TEXTURE_2D,null);this.Ke=null;d.fg=c;d.eg=a;q.push(d);return d};k.prototype.deleteTexture=function(c){c&&("undefined"!==typeof c.Dh&&1<c.Dh?c.Dh--:(this.Vd(),c===this.Ke&&(this.k.bindTexture(this.k.TEXTURE_2D,null),this.Ke=null),c===this.Le&&(this.k.activeTexture(this.k.TEXTURE1),this.k.bindTexture(this.k.TEXTURE_2D,null),this.k.activeTexture(this.k.TEXTURE0),this.Le=
null),Aa(q,c),"undefined"!==typeof c.Km&&delete l[c.Km],this.k.deleteTexture(c)))};k.prototype.$c=function(c){if(c!==this.No){var a=this.wc();a.type=6;this.No=a.Kc=c;this.Ib=this.sb=!1}};hb=k})();
(function(){function k(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function p(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function f(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var g=this;this.pc=(this.Ag=/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.Za=!!a.dc;this.nf="undefined"!==typeof window.AppMobi||this.Za;this.Wb=!!window.c2cocoonjs;this.Ec=!!window.c2ejecta;this.Wb&&(CocoonJS.App.onSuspended.addEventListener(function(){g.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){g.setSuspended(!1)}));this.Ec&&(document.addEventListener("pagehide",function(){g.setSuspended(!0)}),document.addEventListener("pageshow",
function(){g.setSuspended(!1)}),document.addEventListener("resize",function(){g.setSize(window.innerWidth,window.innerHeight)}));this.P=this.Za||this.Wb||this.Ec;this.He=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.wn=/tizen/i.test(navigator.userAgent);this.ii=/android/i.test(navigator.userAgent)&&!this.wn&&!this.He;this.Uk=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.He;this.An=/ipad/i.test(navigator.userAgent);this.ni=this.Uk||this.An||this.Ec;this.Ts=this.Uk&&/os\s6/i.test(navigator.userAgent);this.zg=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.He;this.Ok=/amazonwebappplatform/i.test(navigator.userAgent);this.Ms=/firefox/i.test(navigator.userAgent);this.vn=/safari/i.test(navigator.userAgent)&&!this.zg&&!this.He;this.Ps=/windows/i.test(navigator.userAgent);this.$d="undefined"!==typeof window.c2nodewebkit||"undefined"!==
typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.yn=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Rs=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.pf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Sk=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.xn=this.yn||this.Rs||this.Sk;this.Ls=!("undefined"===typeof window.c2isBlackberry10||
!window.c2isBlackberry10);this.ji=this.ii&&!this.zg&&!this.Ag&&!this.Ms&&!this.Ok&&!this.P;this.devicePixelRatio=1;this.vd=this.pc||this.Ag||this.nf||this.Wb||this.ii||this.ni||this.pf||this.Sk||this.Ls||this.wn||this.Ec;this.vd||(this.vd=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.$d||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||
(this.$d=!0);this.canvas=a;this.Eh=document.getElementById("c2canvasdiv");this.ea=this.n=this.k=null;this.pk="";this.Vh=!1;this.qo=this.ro=0;this.canvas.oncontextmenu=function(g){g.preventDefault&&g.preventDefault();return!1};this.canvas.onselectstart=function(g){g.preventDefault&&g.preventDefault();return!1};this.Za&&(window.c2runtime=this);this.$d&&(window.ondragover=function(g){g.preventDefault();return!1},window.ondrop=function(g){g.preventDefault();return!1},require("nw.gui").App.clearCache());
this.ji&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.N=this.width;this.M=this.height;this.Jh=this.width;this.Ih=this.height;this.Hg=window.innerWidth;this.Gg=window.innerHeight;this.$r=!1;this.ha=!0;this.Cg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.m=[];this.Da=[];this.Yk={};this.Kb=[];this.hk={};this.od=[];this.Zf=[];this.rj=[];this.Gj=[];this.Iq=[];this.ue={};this.Pk=
this.Yd=!1;this.ud=0;this.Rk=!1;this.Rc=[];this.wd=this.kb=this.Mg=this.Zi="";this.th=this.$o=!1;this.Xj=this.Ug=this.Ud=this.xe=0;this.Tf=1;this.Xb=new Ya;this.ed=new Ya;this.Fi=this.Xh=this.Sh=this.Sf=this.Ne=this.ok=this.si=0;this.re=null;this.dk=[];this.gk=[];this.Rh=-1;this.bl=[[]];this.Tl=this.Ci=0;this.xl(null);this.lo=this.Xg=0;this.Xk=!0;this.mg=0;this.uh=[];this.Ql=this.yl=-1;this.tf=!0;this.Ai=0;this.Bg=!1;this.Wt=0;this.cf=null;this.Z=this.mf=!1;this.po=new ca;this.jl=new ca;this.kl=new ca;
this.Gt=[];new $a([]);new $a([]);this.Pd=[];this.ci={};this.ef={};this.bf={};this.Yf={};this.Hm={};this.Nn=this.vi=this.Jb=this.Yb=this.Mn=this.ti=this.ba=null;this.Wf=this.Tk=!1;this.qk=[null,null];this.Be=0;this.lk="";this.Ad={};this.dj=this.xf=null;this.Ei=[];this.Ht()}}function q(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function l(a,g,d,b){var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=q;c.onerror=b;c.onsuccess=function(c){c=c.target.result;c.onerror=b;c.transaction(["saves"],
"readwrite").objectStore("saves").put({slot:a,data:g}).onsuccess=d}}function c(a,g,d){var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=q;b.onerror=d;b.onsuccess=function(b){b=b.target.result;b.onerror=d;var c=b.transaction(["saves"]).objectStore("saves").get(a);c.onsuccess=function(){c.result?g(c.result.data):g(null)}}}function a(){K("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location+=
"?continuous"}function b(a){var g,d={};for(g in a)!a.hasOwnProperty(g)||a[g]instanceof ca||a[g]&&"undefined"!==typeof a[g].qv||(d[g]=a[g]);return d}f.prototype.Ht=function(){var a=this,g;g=this.pf?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var d="data.js";if(this.yn||this.pf||this.Sk)d="data.json";g.open("GET",d,!0);var b=!1;if(!this.P&&"response"in g&&"responseType"in g)try{g.responseType="json",b="json"===g.responseType}catch(c){b=!1}if(!b&&"responseType"in g)try{g.responseType="text"}catch(m){}if("overrideMimeType"in
g)try{g.overrideMimeType("application/json; charset=utf-8")}catch(n){}this.pf?g.onreadystatechange=function(){4===g.readyState&&a.xi(JSON.parse(g.responseText))}:(g.onload=function(){if(b)a.xi(g.response);else if(a.Ec){var d=g.responseText,d=d.substr(d.indexOf("{"));a.xi(JSON.parse(d))}else a.xi(JSON.parse(g.responseText))},g.onerror=function(g){fa("Error requesting "+d+":");fa(g)});g.send()};f.prototype.Ks=function(){var a=this,g,d,b,c,m,n,e,h,f;this.devicePixelRatio=(this.Ie=(!this.P||this.Ec)&&
this.hu&&!this.ji)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.bb();d=!(!this.$r&&(!this.Ij||this.$d||this.xn||this.pf||this.Ag||this.pc||this.Ok));0<this.hb&&this.setSize(k(),p(),!0);try{this.sr&&(this.Wb||this.Ec||!this.P)&&(g={alpha:d,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.k=this.canvas.getContext("webgl",g)||this.canvas.getContext("experimental-webgl",g))}catch(s){}if(this.k){this.P||(this.$a=document.createElement("canvas"),
jQuery(this.$a).appendTo(this.canvas.parentNode),this.$a.oncontextmenu=function(){return!1},this.$a.onselectstart=function(){return!1},this.$a.width=this.Jh,this.$a.height=this.Ih,jQuery(this.$a).css({width:this.Jh+"px",height:this.Ih+"px"}),this.Ho(),this.sl=this.$a.getContext("2d"));this.n=new hb(this.k,this.vd);this.n.Nf(this.canvas.width,this.canvas.height);this.n.Um=0!==this.nr;this.ea=null;this.canvas.addEventListener("webglcontextlost",function(g){g.preventDefault();a.et();K("[Construct 2] WebGL context lost");
window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.n.qn();a.n.Nf(a.n.width,a.n.height,!0);a.Yb=null;a.Jb=null;a.qk[0]=null;a.qk[1]=null;a.gt();a.ha=!0;K("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);g=0;for(d=this.m.length;g<d;g++)for(m=this.m[g],b=0,c=m.H.length;b<c;b++)e=m.H[b],e.ab=this.n.zk(e.id),this.Wf=this.Wf||this.n.ih(e.ab);g=0;for(d=this.Kb.length;g<d;g++){h=this.Kb[g];b=0;for(c=h.H.length;b<c;b++)e=h.H[b],e.ab=this.n.zk(e.id);
b=0;for(c=h.K.length;b<c;b++)for(f=h.K[b],m=0,n=f.H.length;m<n;m++)e=f.H[m],e.ab=this.n.zk(e.id),this.Wf=this.Wf||this.n.ih(e.ab)}}else{if(0<this.hb&&this.Za){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ea=AppMobi.canvas.getContext("2d");try{this.ea.samplingMode=this.U?"smooth":"sharp",this.ea.globalScale=1,this.ea.HTML5CompatibilityMode=!0,this.ea.imageSmoothingEnabled=this.U}catch(t){}0!==this.width&&0!==this.height&&(this.ea.width=
this.width,this.ea.height=this.height)}this.ea||(g=this.Wb?{antialias:!!this.U,alpha:d}:{alpha:d},this.ea=this.canvas.getContext("2d",g),this.ea.webkitImageSmoothingEnabled=this.U,this.ea.mozImageSmoothingEnabled=this.U,this.ea.msImageSmoothingEnabled=this.U,this.ea.imageSmoothingEnabled=this.U);this.sl=this.$a=null}this.hp=function(g){a.Oa(!1,g)};window==window.top||this.P||this.xn||this.pf||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",
function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Wb&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(K("Reloading for continuous preview"),this.Mg="__c2_continuouspreview",this.th=!0),this.tt&&!this.vd&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){a.setSuspended(!0)})));this.P||(g=function(g){if(gb(g)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&
document.activeElement.blur)try{document.activeElement.blur()}catch(a){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",g):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",g):document.addEventListener("touchstart",g),document.addEventListener("mousedown",g));0===this.hb&&this.Ie&&1<this.devicePixelRatio&&this.setSize(this.La,this.Ka,!0);this.mp();this.Ds();this.go();this.ua={}};f.prototype.setSize=function(a,g,d){var b=0,c=0,m=0,n=0,n=0,e=this.Ts&&
this.vn&&!navigator.standalone&&!this.P&&!this.pc;e&&(g+=60);if(this.Hg!==a||this.Gg!==g||d){this.Hg=a;this.Gg=g;var h=this.hb,f=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Bg)&&!this.pc;if(f||0!==this.hb||d)f&&0<this.Be&&(h=this.Be),d=this.devicePixelRatio,4<=h?(m=this.La/this.Ka,a/g>m?(m*=g,5===h?(n=m*d/this.La,1<n?n=Math.floor(n):1>n&&(n=1/Math.ceil(1/n)),m=this.La*n/d,n=this.Ka*n/d,b=(a-m)/2,c=(g-n)/2,a=m,g=n):(b=(a-m)/2,a=m)):
(n=a/m,5===h?(n=n*d/this.Ka,1<n?n=Math.floor(n):1>n&&(n=1/Math.ceil(1/n)),m=this.La*n/d,n=this.Ka*n/d,b=(a-m)/2,c=(g-n)/2,a=m):c=(g-n)/2,g=n),f&&!this.$d&&(c=b=0)):this.$d&&this.Bg&&0===this.$m&&(b=Math.floor((a-this.La)/2),c=Math.floor((g-this.Ka)/2),a=this.La,g=this.Ka),2>h&&(this.dg=d),this.Ie&&this.An&&1<d&&(1024<=a&&(a=1023),1024<=g&&(g=1023)),this.Jh=Math.round(a),this.Ih=Math.round(g),this.width=Math.round(a*d),this.height=Math.round(g*d),this.ha=!0,this.xp?(this.N=this.width,this.M=this.height,
this.lc=!0):this.width<this.La&&this.height<this.Ka||1===h?(this.N=this.width,this.M=this.height,this.lc=!0):(this.N=this.La,this.M=this.Ka,this.lc=!1,2===h?(m=this.La/this.Ka,h=this.Hg/this.Gg,h<m?this.N=this.M*h:h>m&&(this.M=this.N/h)):3===h&&(m=this.La/this.Ka,h=this.Hg/this.Gg,h>m?this.N=this.M*h:h<m&&(this.M=this.N/h))),this.Eh&&!this.P&&(jQuery(this.Eh).css({width:Math.round(a)+"px",height:Math.round(g)+"px","margin-left":Math.floor(b)+"px","margin-top":Math.floor(c)+"px"}),"undefined"!==typeof cr_is_preview&&
jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(g)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*d),this.canvas.height=Math.round(g*d),this.Ec?(this.canvas.style.left=Math.floor(b)+"px",this.canvas.style.top=Math.floor(c)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(g)+"px"):this.Ie&&!this.P&&jQuery(this.canvas).css({width:Math.round(a)+"px",height:Math.round(g)+"px"})),this.$a&&(this.$a.width=Math.round(a),this.$a.height=Math.round(g),
jQuery(this.$a).css({width:Math.round(a)+"px",height:Math.round(g)+"px"})),this.n&&this.n.Nf(Math.round(a*d),Math.round(g*d)),this.Za&&this.ea&&(this.ea.width=Math.round(a),this.ea.height=Math.round(g)),this.ea&&(this.ea.webkitImageSmoothingEnabled=this.U,this.ea.mozImageSmoothingEnabled=this.U,this.ea.msImageSmoothingEnabled=this.U,this.ea.imageSmoothingEnabled=this.U),this.mp(),this.P||!e&&!this.Uk||window.setTimeout(function(){window.scrollTo(0,1)},100)}};f.prototype.mp=function(){if(this.Lq&&
0!==this.ql){var a="portrait";2===this.ql&&(a="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(a):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}};f.prototype.et=function(){this.n.Tq();this.Tk=!0;var a,g,d;a=0;for(g=this.m.length;a<g;a++)d=this.m[a],d.Gi&&d.Gi()};f.prototype.gt=function(){this.Tk=
!1;var a,g,d;a=0;for(g=this.m.length;a<g;a++)d=this.m[a],d.Hi&&d.Hi()};f.prototype.Ho=function(){if(!this.P){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Bg)&&!this.pc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.$a).css(a)}};var e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;
f.prototype.setSuspended=function(a){var g;if(a&&!this.Cg)for(K("[Construct 2] Suspending"),this.Cg=!0,-1!==this.yl&&e&&e(this.yl),-1!==this.Ql&&clearTimeout(this.Ql),a=0,g=this.uh.length;a<g;a++)this.uh[a](!0);else if(!a&&this.Cg){K("[Construct 2] Resuming");this.Cg=!1;this.si=Ua();this.Ne=Ua();a=this.Ug=this.Xh=0;for(g=this.uh.length;a<g;a++)this.uh[a](!1);this.Oa(!1)}};f.prototype.Gq=function(a){this.uh.push(a)};f.prototype.Md=function(a){return this.Ei[a]};f.prototype.xi=function(a){a&&a.project||
fa("Project model unavailable");a=a.project;this.name=a[0];this.Zm=a[1];this.hb=a[12];this.$m=a[12];this.La=a[10];this.Ka=a[11];this.Ao=this.La/2;this.Bo=this.Ka/2;this.P&&!this.Ec&&(4<=a[12]||0===a[12])&&(K("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.$m=this.hb=3);this.Zl=a[18];this.Og=a[19];0===this.Og&&(this.xf=new Image,this.xf.src="loading-logo.png");this.Xg=a[21];this.Ei=fc();this.bd=new Y(this);var g,d,b,c,m,n,e,
h,f;g=0;for(d=a[2].length;g<d;g++)e=a[2][g],b=this.Md(e[0]),ib(e,b.prototype),f=new b(this),f.bj=e[1],f.ae=e[2],f.jo=e[9],f.ga&&f.ga(),this.plugins.push(f);this.Ei=fc();g=0;for(d=a[3].length;g<d;g++){e=a[3][g];m=this.Md(e[1]);f=null;b=0;for(c=this.plugins.length;b<c;b++)if(this.plugins[b]instanceof m){f=this.plugins[b];break}var s=new f.Pa(f);s.name=e[0];s.B=e[2];s.Nk=e[3].slice(0);s.ju=e[3].length;s.Mq=e[4];s.bs=e[5];s.R=e[11];s.B?(s.fo=[],s.pd=this.mg++,s.pa=null):(s.fo=null,s.pd=-1,s.pa=[]);s.Th=
null;s.hf=null;s.Vm=null;s.Fc=!1;s.Gb=null;e[6]?(s.kj=e[6][0],s.lj=e[6][1],s.wh=e[6][2]):(s.kj=null,s.lj=0,s.wh=0);s.Fb=e[7]?e[7]:null;s.index=g;s.c=[];s.Nh=[];s.ie=[new jb(s)];s.nd=0;s.Sc=null;s.Yq=0;s.Qf=!0;s.tj=kb;s.gs=lb;s.ms=mb;s.fa=nb;s.jh=ob;s.wl=pb;s.If=rb;s.Zh=sb;s.sk=tb;s.wk=ub;s.hd=vb;s.en=wb;s.Nm=new ab(this.La,this.Ka);s.Am=!0;s.Bm=!1;s.ua={};s.toString=xb;s.Da=[];b=0;for(c=e[8].length;b<c;b++){h=e[8][b];var k=this.Md(h[1]),t=null;m=0;for(n=this.Da.length;m<n;m++)if(this.Da[m]instanceof
k){t=this.Da[m];break}t||(t=new k(this),t.ko=[],t.Bf=new ca,t.ga&&t.ga(),this.Da.push(t));-1===t.ko.indexOf(s)&&t.ko.push(s);m=new t.Pa(t,s);m.name=h[0];m.R=h[2];m.ga();s.Da.push(m)}s.global=e[9];s.Qk=e[10];s.H=[];b=0;for(c=e[12].length;b<c;b++)s.H.push({id:e[12][b][0],name:e[12][b][1],ab:-1,Qa:!0,index:b});s.Cv=e[13];this.Zl&&!s.B&&!s.Qk&&f.ae||s.ga();s.name&&(this.types[s.name]=s);this.m.push(s);f.bj&&(b=new f.qa(s),b.uid=this.Xg++,b.Ko=this.lo++,b.Fe=0,b.sg=yb,b.toString=zb,b.W=e[14],b.ga(),s.c.push(b),
this.Ad[b.uid.toString()]=b)}g=0;for(d=a[4].length;g<d;g++)for(m=a[4][g],n=this.m[m[0]],b=1,c=m.length;b<c;b++)e=this.m[m[b]],e.pa.push(n),n.fo.push(e);g=0;for(d=a[27].length;g<d;g++){m=a[27][g];n=[];b=0;for(c=m.length;b<c;b++)n.push(this.m[m[b]]);b=0;for(c=n.length;b<c;b++)n[b].Fc=!0,n[b].Gb=n}if(0<this.mg)for(g=0,d=this.m.length;g<d;g++)if(e=this.m[g],!e.B&&e.pa.length){e.Th=Array(this.mg);e.hf=Array(this.mg);e.Vm=Array(this.mg);s=[];b=t=k=h=0;for(c=e.pa.length;b<c;b++)for(f=e.pa[b],e.Th[f.pd]=
h,h+=f.ju,e.hf[f.pd]=k,k+=f.Mq,e.Vm[f.pd]=t,t+=f.bs,m=0,n=f.H.length;m<n;m++)s.push(ua({},f.H[m]));e.H=s.concat(e.H);b=0;for(c=e.H.length;b<c;b++)e.H[b].index=b}g=0;for(d=a[5].length;g<d;g++)e=a[5][g],b=new Ab(this,e),this.Yk[b.name]=b,this.Kb.push(b);g=0;for(d=a[6].length;g<d;g++)e=a[6][g],b=new Bb(this,e),this.hk[b.name]=b,this.od.push(b);g=0;for(d=this.od.length;g<d;g++)this.od[g].Ca();g=0;for(d=this.od.length;g<d;g++)this.od[g].Vl();g=0;for(d=this.rj.length;g<d;g++)this.rj[g].Ca();this.rj.length=
0;this.Jq=a[7];this.lk=a[8];this.Zc=a[9];this.dg=1;this.sr=a[13];this.U=a[14];this.Ij=a[15];this.hu=a[17];this.ql=a[20];this.Lq=0<this.ql;this.tt=a[22];this.lc=this.xp=a[23];this.nr=a[24];this.At=a[25];this.gj=Date.now();this.Ei.length=0;this.Ks()};var h=!1;f.prototype.cm=function(a,g){a.cocoonLazyLoad=!0;a.onerror=function(g){h=a.Jm=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",g)};this.Ec?a.src=g:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(g,function(g){a.src=
g},function(d){h=a.Jm=!0;console&&console.error&&console.error("Error extracting image '"+g+"' from expansion file: ",d)}):a.src=g);this.Zf.push(a)};f.prototype.Zr=function(a){var g,d;g=0;for(d=this.Zf.length;g<d;g++)if(this.Zf[g].Uq===a)return this.Zf[g];return null};var d=0,m=!1;f.prototype.Ds=function(){this.cf&&(d=this.cf.Tt(this.Jq))};f.prototype.Cm=function(){var a=d,g=0,b=0,c=!0,n,e,b=0;for(n=this.Zf.length;b<n;b++){e=this.Zf[b];var h=e.Yj;if(!h||0>=h)h=5E4;a+=h;e.src&&(e.complete||e.loaded)&&
!e.Jm?g+=h:c=!1}c&&this.At&&this.cf&&(m||(this.cf.Xt(),m=!0),b=this.cf.ns(),g+=b,b<d&&(c=!1));this.Te=0==a?0:g/a;return c};f.prototype.go=function(){if(this.ea||this.n){var a=this.ea||this.sl;this.$a&&this.Ho();this.Te=0;this.Ln=-1;if(this.Cm())this.Es();else{var g=Date.now()-this.gj;if(a){var d=this.width,b=this.height,c=this.devicePixelRatio;this.$a&&(d=this.Jh,b=this.Ih,c=1);if(3!==this.Og&&(this.Wb||500<=g&&this.Ln!=this.Te)){a.clearRect(0,0,d,b);var g=d/2,b=b/2,d=0===this.Og&&this.xf.complete,
m=40*c,n=0,e=80*c,f;d&&(e=this.xf.width*c,f=this.xf.height*c,m=e/2,n=f/2,a.drawImage(this.xf,T(g-m),T(b-n),e,f));1>=this.Og?(g=T(g-m)+.5,b=T(b+(n+(d?12*c:0)))+.5,a.fillStyle=h?"red":"DodgerBlue",a.fillRect(g,b,Math.floor(e*this.Te),6*c),a.strokeStyle="black",a.strokeRect(g,b,e,6*c),a.strokeStyle="white",a.strokeRect(g-1*c,b-1*c,e+2*c,8*c)):2===this.Og&&(a.font=this.Ec?"12pt ArialMT":"12pt Arial",a.fillStyle=h?"#f00":"#999",a.Bv="middle",c=Math.round(100*this.Te)+"%",d=a.measureText?a.measureText(c):
null,a.fillText(c,g-(d?d.width:0)/2,b))}this.Ln=this.Te}setTimeout(function(g){return function(){g.go()}}(this),this.Wb?10:100)}}};f.prototype.Es=function(){this.$a&&(this.canvas.parentNode.removeChild(this.$a),this.$a=this.sl=null);this.gj=Date.now();this.Ne=Ua();var a,g,d;if(this.Zl)for(a=0,g=this.m.length;a<g;a++)d=this.m[a],d.B||d.Qk||!d.va.ae||d.ga();else this.tf=!1;a=0;for(g=this.Kb.length;a<g;a++)this.Kb[a].Vq();2<=this.hb&&(a=this.La/this.Ka,g=this.width/this.height,this.dg=2!==this.hb&&g>
a||2===this.hb&&g<a?this.height/this.Ka:this.width/this.La);this.Zm?this.Yk[this.Zm].Ml():this.Kb[0].Ml();this.Zl||(this.Ai=1,this.trigger(Y.prototype.e.jm,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(g=this.m.length;a<g;a++)d=this.m[a],d.dt&&d.dt();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Oa(!1);this.Za&&AppMobi.webview.execute("onGameReady();")};var s=window.requestAnimationFrame||
window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;f.prototype.Oa=function(a,g,d){if(this.ba){var b=Ua();if(d||!this.Cg||a){a||(s?this.yl=s(this.hp):this.Ql=setTimeout(this.hp,this.vd?1:16));g=g||b;var c=this.hb;((d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.pc)||this.Bg)&&0<this.Be&&(c=this.Be);0<c&&(!this.ni||window.self!==window.top)&&(c=window.innerHeight,
this.Hg===window.innerWidth&&this.Gg===c||this.setSize(k(),p()));this.P||(d?(this.Vh||(this.pk=jQuery(this.canvas).css("margin")||"0",this.Vh=!0),this.zg||this.$d||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.Vh?(this.zg||this.$d||jQuery(this.canvas).css("margin",this.pk),this.pk="",this.Vh=!1,0===this.hb&&this.setSize(Math.round(this.ro/this.devicePixelRatio),
Math.round(this.qo/this.devicePixelRatio),!0)):(this.ro=this.width,this.qo=this.height));this.tf&&(d=this.Cm(),this.Ai=this.Te,d&&(this.tf=!1,this.Te=1,this.trigger(Y.prototype.e.jm,null)));this.Xs(g);!this.ha&&!this.Wb||this.Tk||this.th||a||(this.ha=!1,this.n?this.qb():this.kc(),this.dj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.dj[0],this.dj[1]),this.trigger(Y.prototype.e.Xp,null)),this.dj=null));this.wv||(this.Sf++,this.Sh++,this.Xh++);this.Ug+=Ua()-b}}};f.prototype.Xs=function(a){var g,
d,b,c,m,e,n,h;1E3<=a-this.Ne&&(this.Ne+=1E3,1E3<=a-this.Ne&&(this.Ne=a),this.ok=this.Xh,this.Xh=0,this.Xj=this.Ug,this.Ug=0);0!==this.si&&(g=a-this.si,0>g&&(g=0),this.Ud=g/1E3,.5<this.Ud?this.Ud=0:.1<this.Ud&&(this.Ud=.1));this.si=a;this.xe=this.Ud*this.Tf;this.Xb.add(this.xe);this.ed.add(this.Ud);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Bg)&&!this.pc;2<=this.hb||a&&0<this.Be?(g=this.La/this.Ka,d=this.width/this.height,b=this.hb,
a&&0<this.Be&&(b=this.Be),this.dg=2!==b&&d>g||2===b&&d<g?this.height/this.Ka:this.width/this.La,this.ba&&(this.ba.Qo(this.ba.scrollX),this.ba.Ro(this.ba.scrollY))):this.dg=this.Ie?this.devicePixelRatio:1;this.bb();this.ud++;this.bd.Kt();this.ud--;this.bb();this.ud++;d=this.po.Mc();a=0;for(g=d.length;a<g;a++)d[a].yv();a=0;for(g=this.m.length;a<g;a++)if(e=this.m[a],!e.B&&(e.Da.length||e.pa.length))for(d=0,b=e.c.length;d<b;d++)for(n=e.c[d],c=0,m=n.G.length;c<m;c++)n.G[c].Oa();a=0;for(g=this.m.length;a<
g;a++)if(e=this.m[a],!e.B&&(e.Da.length||e.pa.length))for(d=0,b=e.c.length;d<b;d++)for(n=e.c[d],c=0,m=n.G.length;c<m;c++)h=n.G[c],h.zt&&h.zt();d=this.jl.Mc();a=0;for(g=d.length;a<g;a++)d[a].Oa();this.ud--;this.Fs();for(a=0;this.re&&10>a++;)this.Rm(this.re);a=0;for(g=this.od.length;a<g;a++)this.od[a].Gk=!1;this.ba.ze&&this.ba.ze.Ma();this.Gt.length=0;this.Xk=!1;this.ud++;a=0;for(g=this.m.length;a<g;a++)if(e=this.m[a],!e.B&&(e.Da.length||e.pa.length))for(d=0,b=e.c.length;d<b;d++)for(n=e.c[d],c=0,m=
n.G.length;c<m;c++)h=n.G[c],h.Pl&&h.Pl();d=this.kl.Mc();a=0;for(g=d.length;a<g;a++)d[a].Pl();this.ud--};f.prototype.Rm=function(a){var g=this.ba;this.ba.Yt();var d,b,c,m,e,n,h;if(this.n)for(d=0,b=this.m.length;d<b;d++)e=this.m[d],e.B||!e.sj||e.global&&0!==e.c.length||-1!==a.xg.indexOf(e)||e.sj();g==a&&(this.bd.Cb.length=0);a.Ml();d=0;for(b=this.m.length;d<b;d++)if(e=this.m[d],e.global||e.va.bj)for(a=0,g=e.c.length;a<g;a++)if(n=e.c[a],n.pl&&n.pl(),n.G)for(c=0,m=n.G.length;c<m;c++)h=n.G[c],h.pl&&h.pl();
this.Xk=this.ha=!0;this.bb()};f.prototype.nj=function(a){this.jl.add(a)};f.prototype.Zt=function(a){this.kl.add(a)};f.prototype.uk=function(a){return a&&-1!==a.Wg?this.Ud*a.Wg:this.xe};f.prototype.kc=function(){this.ba.kc(this.ea);this.Za&&this.ea.present()};f.prototype.qb=function(){this.ba.qb(this.n);this.n.Ct()};f.prototype.Eq=function(a){a&&this.dk.push(a)};f.prototype.ai=function(a){a=a.toString();return this.Ad.hasOwnProperty(a)?this.Ad[a]:null};var n=[];f.prototype.Ld=function(a){var g,d;g=
a.type.name;var b=null;if(this.ue.hasOwnProperty(g)){if(b=this.ue[g],b.contains(a))return}else b=n.length?n.pop():new ca,this.ue[g]=b;b.add(a);this.Yd=!0;if(a.Fc)for(g=0,d=a.siblings.length;g<d;g++)this.Ld(a.siblings[g]);this.Pk&&b.Xf.push(a);this.ud++;this.trigger(Object.getPrototypeOf(a.type.va).e.$p,a);this.ud--};f.prototype.bb=function(){if(this.Yd){var a,g,d,b,c,m;this.Pk=!0;d=0;for(c=this.Rc.length;d<c;++d)for(a=this.Rc[d],g=a.type,g.c.push(a),b=0,m=g.pa.length;b<m;++b)g.pa[b].c.push(a),g.pa[b].Qf=
!0;this.Rc.length=0;this.Pp();Ta(this.ue);this.Yd=this.Pk=!1}};f.prototype.Pp=function(){for(var a in this.ue)this.ue.hasOwnProperty(a)&&this.Cp(this.ue[a])};f.prototype.Cp=function(a){var g=a.Mc(),d=g[0].type,b,c,m,e,h,f;Va(d.c,a);d.Qf=!0;0===d.c.length&&(d.Bm=!1);b=0;for(c=d.pa.length;b<c;++b)f=d.pa[b],Va(f.c,a),f.Qf=!0;b=0;for(c=this.bd.Cb.length;b<c;++b)if(h=this.bd.Cb[b],h.nb.hasOwnProperty(d.index)&&Va(h.nb[d.index].sd,a),!d.B)for(m=0,e=d.pa.length;m<e;++m)f=d.pa[m],h.nb.hasOwnProperty(f.index)&&
Va(h.nb[f.index].sd,a);if(h=g[0].d){if(h.Lc)for(m=h.c,b=0,c=m.length;b<c;++b)e=m[b],a.contains(e)&&(e.Wa(),h.Mb.update(e,e.xb,null),e.xb.set(0,0,-1,-1));Va(h.c,a);h.oh(0)}for(b=0;b<g.length;++b)this.Bp(g[b],d);a.clear();n.push(a);this.ha=!0};f.prototype.Bp=function(a,g){var d,b,c;d=0;for(b=this.dk.length;d<b;++d)this.dk[d](a);a.Sd&&g.Nm.update(a,a.Sd,null);(d=a.d)&&d.Kf(a,!0);if(a.G)for(d=0,b=a.G.length;d<b;++d)c=a.G[d],c.Ef&&c.Ef(),c.behavior.Bf.remove(a);this.po.remove(a);this.jl.remove(a);this.kl.remove(a);
a.Ef&&a.Ef();this.Ad.hasOwnProperty(a.uid.toString())&&delete this.Ad[a.uid.toString()];this.Fi--;100>g.Nh.length&&g.Nh.push(a)};var t=[];f.prototype.te=function(a,g,d,b,c,m){var e,n,h,f;if(!a)return null;var s=this.m[a[1]],k=s.va.ae;if(this.tf&&k&&!s.Qk||k&&!this.n&&11===a[0][11])return null;var p=g;k||(g=null);var l;s.Nh.length?(l=s.Nh.pop(),l.Ic=!0,s.va.qa.call(l,s)):(l=new s.va.qa(s),l.Ic=!1);l.uid=!d||m||this.Ad.hasOwnProperty(a[2].toString())?this.Xg++:a[2];this.Ad[l.uid.toString()]=l;l.Ko=
this.lo++;l.Fe=s.c.length;e=0;for(n=this.Rc.length;e<n;++e)this.Rc[e].type===s&&l.Fe++;l.sg=yb;l.toString=zb;h=a[3];if(l.Ic)Ta(l.ua);else{l.ua={};if("undefined"!==typeof cr_is_preview)for(l.tn=[],l.tn.length=h.length,e=0,n=h.length;e<n;e++)l.tn[e]=h[e][1];l.Ia=[];l.Ia.length=h.length}e=0;for(n=h.length;e<n;e++)l.Ia[e]=h[e][0];if(k){var y=a[0];l.x=ga(b)?y[0]:b;l.y=ga(c)?y[1]:c;l.z=y[2];l.width=y[3];l.height=y[4];l.depth=y[5];l.j=y[6];l.opacity=y[7];l.tb=y[8];l.ub=y[9];l.ob=y[10];e=y[11];!this.n&&s.H.length&&
(l.ob=e);l.hg=cb(l.ob);this.k&&db(l,l.ob,this.k);if(l.Ic){e=0;for(n=y[12].length;e<n;e++)for(h=0,f=y[12][e].length;h<f;h++)l.ta[e][h]=y[12][e][h];l.Xa.set(0,0,0,0);l.Sd.set(0,0,-1,-1);l.xb.set(0,0,-1,-1);l.df.ph(l.Xa);l.Mj.length=0}else{l.ta=y[12].slice(0);e=0;for(n=l.ta.length;e<n;e++)l.ta[e]=y[12][e].slice(0);l.X=[];l.Nd=[];l.Nd.length=s.H.length;l.Xa=new U(0,0,0,0);l.Sd=new U(0,0,-1,-1);l.xb=new U(0,0,-1,-1);l.df=new ta;l.Mj=[];l.xa=Cb;l.Hq=Db;l.Hb=Eb;l.Wa=Fb;l.gu=Gb;l.fu=Hb;l.nc=Ib}l.au=!1;l.cu=
0;l.bu=0;l.$t=null;14===y.length&&(l.au=!0,l.cu=y[13][0],l.bu=y[13][1],l.$t=y[13][2]);e=0;for(n=s.H.length;e<n;e++)l.Nd[e]=!0;l.Jd=Jb;l.Jd();l.vp=!!l.X.length;l.Bh=!0;l.Qj=!0;s.Am=!0;l.visible=!0;l.Wg=-1;l.d=g;l.Nc=g.c.length;"undefined"===typeof l.Qc&&(l.Qc=null);this.ha=l.gg=!0}var q;e=t.length=0;for(n=s.pa.length;e<n;e++)t.push.apply(t,s.pa[e].Da);t.push.apply(t,s.Da);if(l.Ic)for(e=0,n=t.length;e<n;e++){var H=t[e];q=l.G[e];q.Ic=!0;H.behavior.qa.call(q,H,l);y=a[4][e];h=0;for(f=y.length;h<f;h++)q.W[h]=
y[h];q.ga();H.behavior.Bf.add(l)}else for(l.G=[],e=0,n=t.length;e<n;e++)H=t[e],q=new H.behavior.qa(H,l),q.Ic=!1,q.W=a[4][e].slice(0),q.ga(),l.G.push(q),H.behavior.Bf.add(l);y=a[5];if(l.Ic)for(e=0,n=y.length;e<n;e++)l.W[e]=y[e];else l.W=y.slice(0);this.Rc.push(l);this.Yd=!0;g&&(g.bg(l,!0),1!==g.uc||1!==g.vc)&&(s.Bm=!0);this.Fi++;if(s.Fc){if(l.Fc=!0,l.Ic?l.siblings.length=0:l.siblings=[],!d&&!m){e=0;for(n=s.Gb.length;e<n;e++)if(s.Gb[e]!==s){if(!s.Gb[e].Sc)return null;l.siblings.push(this.te(s.Gb[e].Sc,
p,!1,k?l.x:b,k?l.y:c,!0))}e=0;for(n=l.siblings.length;e<n;e++)for(l.siblings[e].siblings.push(l),h=0;h<n;h++)e!==h&&l.siblings[e].siblings.push(l.siblings[h])}}else l.Fc=!1,l.siblings=null;l.ga();e=0;for(n=l.G.length;e<n;e++)l.G[e].yt&&l.G[e].yt();return l};f.prototype.pg=function(a){var g,d;g=0;for(d=this.ba.K.length;g<d;g++){var b=this.ba.K[g];if(fb(b.name,a))return b}return null};f.prototype.rd=function(a){a=T(a);0>a&&(a=0);a>=this.ba.K.length&&(a=this.ba.K.length-1);return this.ba.K[a]};f.prototype.Vj=
function(a){var g,d;g=0;for(d=a.length;g<d;g++)a[g].fa().ka=!0};f.prototype.jh=function(a){var g,d;g=0;for(d=a.length;g<d;g++)a[g].jh()};f.prototype.wl=function(a){var g,d;g=0;for(d=a.length;g<d;g++)a[g].wl()};f.prototype.If=function(a){var g,d;g=0;for(d=a.length;g<d;g++)a[g].If()};f.prototype.Rf=function(a,g,d,b){var c=a.fa(),e,m,n,h,s,f;if(c.ka)for(b||(c.ka=!1,c.c.length=0),e=0,h=a.c.length;e<h;e++){if(n=a.c[e],n.Wa(),s=n.d.na(g,d,!0),f=n.d.na(g,d,!1),n.Hb(s,f)){if(b)return!1;c.c.push(n)}}else{e=
m=0;for(h=c.c.length;e<h;e++)if(n=c.c[e],n.Wa(),s=n.d.na(g,d,!0),f=n.d.na(g,d,!1),n.Hb(s,f)){if(b)return!1;c.c[m]=c.c[e];m++}b||(c.c.length=m)}a.hd();return b?!0:c.Fk()};new ta;new U(0,0,0,0);f.prototype.np=function(a,g){if(!g)return!1;var d,b,c,e,m;d=0;for(b=a.Da.length;d<b;d++)if(a.Da[d].behavior instanceof g)return!0;if(!a.B)for(d=0,b=a.pa.length;d<b;d++)for(m=a.pa[d],c=0,e=m.Da.length;c<e;c++)if(m.Da[c].behavior instanceof g)return!0;return!1};f.prototype.op=function(a){return this.np(a,Yb.Lu)};
f.prototype.Ul=function(a){return this.np(a,Yb.Mu)};var y=-1;f.prototype.trigger=function(a,g,d){if(!this.ba)return!1;var b=this.ba.ze;if(!b)return!1;var c=!1,e,m,n;y++;var h=b.bk;m=0;for(n=h.length;m<n;++m)e=this.kp(a,g,h[m],d),c=c||e;e=this.kp(a,g,b,d);y--;return c||e};f.prototype.kp=function(a,g,d,b){var c=!1,e,m,n,h;if(g)for(n=this.Sl(a,g,g.type.name,d,b),c=c||n,h=g.type.pa,e=0,m=h.length;e<m;++e)n=this.Sl(a,g,h[e].name,d,b),c=c||n;else n=this.Sl(a,g,"system",d,b),c=c||n;return c};f.prototype.Sl=
function(a,g,d,b,c){var e,m=!1,n=!1,n="undefined"!==typeof c,h=(n?b.Xm:b.lp)[d];if(!h)return m;var s=null;b=0;for(e=h.length;b<e;++b)if(h[b].method==a){s=h[b].lg;break}if(!s)return m;a=n?s[c]:s;if(!a)return null;b=0;for(e=a.length;b<e;b++)c=a[b][0],n=a[b][1],n=this.Xr(g,d,c,n),m=m||n;return m};f.prototype.Xr=function(a,g,d,b){var c,e,m=!1;this.Tl++;var n=this.rb().Sb;n&&this.jh(n.he);var h=1<this.Tl;this.jh(d.he);h&&this.Et();var s=this.xl(d);s.Sb=d;a&&(c=this.types[g].fa(),c.ka=!1,c.c.length=1,c.c[0]=
a,this.types[g].hd());a=!0;if(d.parent){g=s.fp;for(c=d.parent;c;)g.push(c),c=c.parent;g.reverse();c=0;for(e=g.length;c<e;c++)if(!g[c].Mt()){a=!1;break}}a&&(this.Sh++,d.Wc?d.Lt(b):d.Ma(),m=m||s.Me);this.Go();h&&this.xt();this.If(d.he);n&&this.If(n.he);this.Yd&&0===this.ud&&0===y&&!this.Rk&&this.bb();this.Tl--;return m};f.prototype.tk=function(){var a=this.rb();return a.Sb.cb[a.pb]};f.prototype.Et=function(){this.Ci++;this.Ci>=this.bl.length&&this.bl.push([])};f.prototype.xt=function(){this.Ci--};f.prototype.cn=
function(){return this.bl[this.Ci]};f.prototype.xl=function(a){this.Rh++;this.Rh>=this.gk.length&&this.gk.push(new Kb);var g=this.rb();g.reset(a);return g};f.prototype.Go=function(){this.Rh--};f.prototype.rb=function(){return this.gk[this.Rh]};f.prototype.dn=function(a,g){for(var d,b,c,e,m,n;g;){d=0;for(b=g.xc.length;d<b;d++)if(n=g.xc[d],n instanceof Lb&&fb(a,n.name))return n;g=g.parent}d=0;for(b=this.od.length;d<b;d++)for(m=this.od[d],c=0,e=m.Wd.length;c<e;c++)if(n=m.Wd[c],n instanceof Lb&&fb(a,
n.name))return n;return null};f.prototype.gn=function(a){var g,d;g=0;for(d=this.Kb.length;g<d;g++)if(this.Kb[g].R===a)return this.Kb[g];return null};f.prototype.bi=function(a){var g,d;g=0;for(d=this.m.length;g<d;g++)if(this.m[g].R===a)return this.m[g];return null};f.prototype.hs=function(a){var g,d;g=0;for(d=this.Pd.length;g<d;g++)if(this.Pd[g].R===a)return this.Pd[g];return null};f.prototype.Fs=function(){var d=this,g=this.Zi,b=this.wd,e=this.Mg,m=!1;this.$o&&(m=!0,g="__c2_continuouspreview",this.$o=
!1);if(g.length){this.bb();b=this.Qt();if(window.indexedDB&&!this.Wb)l(g,b,function(){K("Saved state to IndexedDB storage ("+b.length+" bytes)");d.wd=b;d.trigger(Y.prototype.e.Cj,null);d.wd="";m&&a()},function(c){try{localStorage.setItem("__c2save_"+g,b),K("Saved state to WebStorage ("+b.length+" bytes)"),d.wd=b,d.trigger(Y.prototype.e.Cj,null),d.wd="",m&&a()}catch(e){K("Failed to save game state: "+c+"; "+e)}});else try{localStorage.setItem("__c2save_"+g,b),K("Saved state to WebStorage ("+b.length+
" bytes)"),d.wd=b,this.trigger(Y.prototype.e.Cj,null),d.wd="",m&&a()}catch(n){K("Error saving to WebStorage: "+n)}this.kb=this.Mg=this.Zi=""}e.length&&(window.indexedDB&&!this.Wb?c(e,function(a){a?(d.kb=a,K("Loaded state from IndexedDB storage ("+d.kb.length+" bytes)")):(d.kb=localStorage.getItem("__c2save_"+e)||"",K("Loaded state from WebStorage ("+d.kb.length+" bytes)"));d.th=!1;d.kb.length||d.trigger(Y.prototype.e.Aj,null)},function(){d.kb=localStorage.getItem("__c2save_"+e)||"";K("Loaded state from WebStorage ("+
d.kb.length+" bytes)");d.th=!1;d.kb.length||d.trigger(Y.prototype.e.Aj,null)}):(this.kb=localStorage.getItem("__c2save_"+e)||"",K("Loaded state from WebStorage ("+this.kb.length+" bytes)"),this.th=!1,d.kb.length||d.trigger(Y.prototype.e.Aj,null)),this.Zi=this.Mg="");this.kb.length&&(this.bb(),this.Ws(this.kb),this.wd=this.kb,this.trigger(Y.prototype.e.nq,null),this.kb=this.wd="")};f.prototype.Qt=function(){var a,g,d,c,e,m,n,h={c2save:!0,version:1,rt:{time:this.Xb.da,walltime:this.ed.da,timescale:this.Tf,
tickcount:this.Sf,execcount:this.Sh,next_uid:this.Xg,running_layout:this.ba.R,start_time_offset:Date.now()-this.gj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(g=this.m.length;a<g;a++)if(e=this.m[a],!e.B&&!this.op(e)){m={instances:[]};Sa(e.ua)&&(m.ex=b(e.ua));d=0;for(c=e.c.length;d<c;d++)m.instances.push(this.Gl(e.c[d]));h.types[e.R.toString()]=m}a=0;for(g=this.Kb.length;a<g;a++)d=this.Kb[a],h.layouts[d.R.toString()]=d.zb();c=h.events.groups;a=0;for(g=this.Pd.length;a<
g;a++)d=this.Pd[a],c[d.R.toString()]=this.ci[d.ug].tg;g=h.events.cnds;for(n in this.ef)this.ef.hasOwnProperty(n)&&(a=this.ef[n],Sa(a.ua)&&(g[n]={ex:b(a.ua)}));g=h.events.acts;for(n in this.bf)this.bf.hasOwnProperty(n)&&(a=this.bf[n],Sa(a.ua)&&(g[n]={ex:a.ua}));g=h.events.vars;for(n in this.Yf)this.Yf.hasOwnProperty(n)&&(a=this.Yf[n],a.ki||a.parent&&!a.Eg||(g[n]=a.data));h.system=this.bd.zb();return JSON.stringify(h)};f.prototype.Mo=function(){var a,g,d,b,c,e;this.Ad={};a=0;for(g=this.m.length;a<g;a++)if(d=
this.m[a],!d.B)for(b=0,c=d.c.length;b<c;b++)e=d.c[b],this.Ad[e.uid.toString()]=e};f.prototype.Ws=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){var g=a.rt;this.Xb.reset();this.Xb.da=g.time;this.ed.reset();this.ed.da=g.walltime||0;this.Tf=g.timescale;this.Sf=g.tickcount;this.Sh=g.execcount;this.gj=Date.now()-g.start_time_offset;var d=g.running_layout;if(d!==this.ba.R)if(d=this.gn(d))this.Rm(d);else return;var b,c,e,m,n,h,s;h=a.types;for(c in h)if(h.hasOwnProperty(c)&&(m=this.bi(parseInt(c,
10)))&&!m.B&&!this.op(m)){h[c].ex?m.ua=h[c].ex:Ta(m.ua);n=m.c;e=h[c].instances;d=0;for(b=na(n.length,e.length);d<b;d++)this.wi(n[d],e[d]);d=e.length;for(b=n.length;d<b;d++)this.Ld(n[d]);d=n.length;for(b=e.length;d<b;d++){n=null;if(m.va.ae&&(n=this.ba.$h(e[d].w.l),!n))continue;n=this.te(m.Sc,n,!1,0,0,!0);this.wi(n,e[d])}m.Qf=!0}this.bb();this.Mo();b=a.layouts;for(c in b)b.hasOwnProperty(c)&&(d=this.gn(parseInt(c,10)))&&d.Zb(b[c]);b=a.events.groups;for(c in b)b.hasOwnProperty(c)&&(d=this.hs(parseInt(c,
10)))&&this.ci[d.ug]&&this.ci[d.ug].To(b[c]);d=a.events.cnds;for(c in d)d.hasOwnProperty(c)&&this.ef.hasOwnProperty(c)&&(this.ef[c].ua=d[c].ex);d=a.events.acts;for(c in d)d.hasOwnProperty(c)&&this.bf.hasOwnProperty(c)&&(this.bf[c].ua=d[c].ex);d=a.events.vars;for(c in d)d.hasOwnProperty(c)&&this.Yf.hasOwnProperty(c)&&(this.Yf[c].data=d[c]);this.Xg=g.next_uid;this.bd.Zb(a.system);d=0;for(b=this.m.length;d<b;d++)if(m=this.m[d],!m.B)for(c=0,a=m.c.length;c<a;c++){n=m.c[c];if(m.Fc)for(h=n.sg(),g=n.siblings.length=
0,e=m.Gb.length;g<e;g++)s=m.Gb[g],m!==s&&n.siblings.push(s.c[h]);n.fd&&n.fd();if(n.G)for(g=0,e=n.G.length;g<e;g++)h=n.G[g],h.fd&&h.fd()}this.ha=!0}};f.prototype.Gl=function(a,d){var c,e,m,n,h;n=a.type;m=n.va;var s={};d?s.c2=!0:s.uid=a.uid;Sa(a.ua)&&(s.ex=b(a.ua));if(a.Ia&&a.Ia.length)for(s.ivs={},c=0,e=a.Ia.length;c<e;c++)s.ivs[a.type.Nk[c].toString()]=a.Ia[c];if(m.ae){m={x:a.x,y:a.y,w:a.width,h:a.height,l:a.d.R,zi:a.nc()};0!==a.j&&(m.a=a.j);1!==a.opacity&&(m.o=a.opacity);.5!==a.tb&&(m.hX=a.tb);.5!==
a.ub&&(m.hY=a.ub);0!==a.ob&&(m.bm=a.ob);a.visible||(m.v=a.visible);a.gg||(m.ce=a.gg);-1!==a.Wg&&(m.mts=a.Wg);if(n.H.length)for(m.fx=[],c=0,e=n.H.length;c<e;c++)h=n.H[c],m.fx.push({name:h.name,active:a.Nd[h.index],params:a.ta[h.index]});s.w=m}if(a.G&&a.G.length)for(s.behs={},c=0,e=a.G.length;c<e;c++)n=a.G[c],n.zb&&(s.behs[n.type.R.toString()]=n.zb());a.zb&&(s.data=a.zb());return s};f.prototype.ks=function(a,d){var b,c;b=0;for(c=a.Nk.length;b<c;b++)if(a.Nk[b]===d)return b;return-1};f.prototype.es=function(a,
d){var b,c;b=0;for(c=a.G.length;b<c;b++)if(a.G[b].type.R===d)return b;return-1};f.prototype.wi=function(a,d,b){var c,e,m,n,h;h=a.type;m=h.va;if(b){if(!d.c2)return}else a.uid=d.uid;d.ex?a.ua=d.ex:Ta(a.ua);if(e=d.ivs)for(c in e)e.hasOwnProperty(c)&&(b=this.ks(h,parseInt(c,10)),0>b||b>=a.Ia.length||(a.Ia[b]=e[c]));if(m.ae){m=d.w;a.d.R!==m.l&&(b=a.d,a.d=this.ba.$h(m.l),a.d?(b.Kf(a,!0),a.d.bg(a,!0),a.xa(),a.d.oh(0)):(a.d=b,this.Ld(a)));a.x=m.x;a.y=m.y;a.width=m.w;a.height=m.h;a.Nc=m.zi;a.j=m.hasOwnProperty("a")?
m.a:0;a.opacity=m.hasOwnProperty("o")?m.o:1;a.tb=m.hasOwnProperty("hX")?m.hX:.5;a.ub=m.hasOwnProperty("hY")?m.hY:.5;a.visible=m.hasOwnProperty("v")?m.v:!0;a.gg=m.hasOwnProperty("ce")?m.ce:!0;a.Wg=m.hasOwnProperty("mts")?m.mts:-1;a.ob=m.hasOwnProperty("bm")?m.bm:0;a.hg=cb(a.ob);this.k&&db(a,a.ob,this.k);a.xa();if(m.hasOwnProperty("fx"))for(b=0,e=m.fx.length;b<e;b++)n=h.wk(m.fx[b].name),0>n||(a.Nd[n]=m.fx[b].active,a.ta[n]=m.fx[b].params);a.Jd()}if(h=d.behs)for(c in h)h.hasOwnProperty(c)&&(m=this.es(a,
parseInt(c,10)),0>m||a.G[m].Zb(h[c]));d.data&&a.Zb(d.data)};Mb=function(a){return new f(document.getElementById(a))};Nb=function(a,d){return new f({dc:!0,width:a,height:d})};window.cr_createRuntime=Mb;window.cr_createDCRuntime=Nb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Av=!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 k=document.getElementById("c2canvas");return k?k.c2runtime:window.c2runtime?window.c2runtime:null};
window.cr_sizeCanvas=function(k,p){if(0!==k&&0!==p){var f=window.cr_getC2Runtime();f&&f.setSize(k,p)}};window.cr_setSuspended=function(k){var p=window.cr_getC2Runtime();p&&p.setSuspended(k)};
(function(){function k(a,b){this.b=a;this.ze=null;this.scrollX=this.b.La/2;this.scrollY=this.b.Ka/2;this.scale=1;this.j=0;this.jf=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.pp=b[3];this.Yo=b[4];this.R=b[5];var c=b[6],e,h;this.K=[];this.xg=[];e=0;for(h=c.length;e<h;e++){var f=new Ob(this,c[e]);f.no=e;this.K.push(f)}c=b[7];this.Ge=[];e=0;for(h=c.length;e<h;e++){var f=c[e],l=this.b.m[f[1]];l.Sc||(l.Sc=f);this.Ge.push(f);-1===this.xg.indexOf(l)&&this.xg.push(l)}this.H=[];this.X=[];this.ta=
[];e=0;for(h=b[8].length;e<h;e++)this.H.push({id:b[8][e][0],name:b[8][e][1],ab:-1,Qa:!0,index:e}),this.ta.push(b[8][e][2].slice(0));this.Jd();this.lh=new U(0,0,1,1);this.zl=new U(0,0,1,1);this.de={}}function p(a,b){return a.Nc-b.Nc}function f(a,b){this.Sa=a;this.b=a.b;this.c=[];this.scale=1;this.j=0;this.ve=!1;this.Hd=new U(0,0,0,0);this.ip=new ta;this.Fa=this.za=this.Ga=this.ya=0;this.Xe=!1;this.Kd=-1;this.name=b[0];this.index=b[1];this.R=b[2];this.visible=b[3];this.Qd=b[4];this.Id=b[5];this.uc=
b[6];this.vc=b[7];this.opacity=b[8];this.nk=b[9];this.Lc=b[10];this.Db=b[11];this.ob=b[12];this.rr=b[13];this.hg="source-over";this.eb=this.gb=0;this.Mb=null;this.vf=q();this.Dd=!0;this.ri=new U(0,0,-1,-1);this.ic=new U(0,0,-1,-1);this.Lc&&(this.Mb=new bb(this.b.La,this.b.Ka));this.ee=!1;var c=b[14],e,h;this.dp=[];this.Vb=[];this.ig=[];e=0;for(h=c.length;e<h;e++){var f=c[e],l=this.b.m[f[1]];l.Sc||(l.Sc=f,l.Yq=this.index);this.Vb.push(f);-1===this.Sa.xg.indexOf(l)&&this.Sa.xg.push(l)}xa(this.dp,this.Vb);
this.H=[];this.X=[];this.ta=[];e=0;for(h=b[15].length;e<h;e++)this.H.push({id:b[15][e][0],name:b[15][e][1],ab:-1,Qa:!0,index:e}),this.ta.push(b[15][e][2].slice(0));this.Jd();this.lh=new U(0,0,1,1);this.zl=new U(0,0,1,1)}function q(){return b.length?b.pop():[]}function l(a){a.length=0;b.push(a)}k.prototype.Pt=function(a){var b=a.type.R.toString();this.de.hasOwnProperty(b)||(this.de[b]=[]);this.de[b].push(this.b.Gl(a))};k.prototype.ln=function(){var a=this.K[0];return!a.Id&&1===a.opacity&&!a.nk&&a.visible};
k.prototype.Jd=function(){this.X.length=0;var a,b,c;a=0;for(b=this.H.length;a<b;a++)c=this.H[a],c.Qa&&this.X.push(c)};k.prototype.vk=function(a){var b,c,e;b=0;for(c=this.H.length;b<c;b++)if(e=this.H[b],e.name===a)return e;return null};var c=[],a=!0;k.prototype.Ml=function(){this.Yo&&(this.ze=this.b.hk[this.Yo],this.ze.Vl());this.b.ba=this;this.scrollX=this.b.La/2;this.scrollY=this.b.Ka/2;var d,b,e,n,h,f,l;d=0;for(e=this.b.m.length;d<e;d++)if(b=this.b.m[d],!b.B)for(h=b.c,b=0,n=h.length;b<n;b++)if(f=
h[b],f.d){var g=f.d.no;g>=this.K.length&&(g=this.K.length-1);f.d=this.K[g];-1===f.d.c.indexOf(f)&&f.d.c.push(f);f.d.Xe=!0}if(!a)for(d=0,e=this.K.length;d<e;++d)this.K[d].c.sort(p);c.length=0;this.Nq();d=0;for(e=this.K.length;d<e;d++)f=this.K[d],f.Wq(),f.Xl();h=!1;if(!this.jf){for(l in this.de)if(this.de.hasOwnProperty(l)&&(b=this.b.bi(parseInt(l,10)))&&!b.B&&this.b.Ul(b)){n=this.de[l];d=0;for(e=n.length;d<e;d++){f=null;if(b.va.ae&&(f=this.$h(n[d].w.l),!f))continue;f=this.b.te(b.Sc,f,!1,0,0,!0);this.b.wi(f,
n[d]);h=!0;c.push(f)}n.length=0}d=0;for(e=this.K.length;d<e;d++)this.K[d].c.sort(p),this.K[d].Xe=!0}h&&(this.b.bb(),this.b.Mo());for(d=0;d<c.length;d++)if(f=c[d],f.type.Fc)for(e=f.sg(),b=0,n=f.type.Gb.length;b<n;b++)l=f.type.Gb[b],f.type!==l&&(l.c.length>e?f.siblings.push(l.c[e]):l.Sc&&(h=this.b.te(l.Sc,f.d,!0,f.x,f.y,!0),this.b.bb(),l.tj(),f.siblings.push(h),c.push(h)));d=0;for(e=this.Ge.length;d<e;d++)this.b.te(this.Ge[d],null,!0);this.b.re=null;this.b.bb();if(this.b.ea&&!this.b.P)for(d=0,e=this.b.m.length;d<
e;d++)l=this.b.m[d],!l.B&&l.c.length&&l.Ti&&l.Ti(this.b.ea);d=0;for(e=c.length;d<e;d++)f=c[d],this.b.trigger(Object.getPrototypeOf(f.type.va).e.Zp,f);c.length=0;this.b.trigger(Y.prototype.e.im,null);this.jf=!1};k.prototype.Vq=function(){var a,b,c,e,h;b=a=0;for(c=this.Ge.length;a<c;a++)e=this.Ge[a],h=this.b.m[e[1]],h.global?this.b.te(e,null,!0):(this.Ge[b]=e,b++);this.Ge.length=b};k.prototype.Yt=function(){this.b.trigger(Y.prototype.e.mq,null);this.b.bd.Cb.length=0;var d,b,c,e,h,f;if(!this.jf)for(d=
0,b=this.K.length;d<b;d++)for(this.K[d].Yl(),h=this.K[d].c,c=0,e=h.length;c<e;c++)f=h[c],f.type.global||this.b.Ul(f.type)&&this.Pt(f);d=0;for(b=this.K.length;d<b;d++){h=this.K[d].c;c=0;for(e=h.length;c<e;c++)f=h[c],f.type.global||this.b.Ld(f);this.b.bb();h.length=0;this.K[d].Xe=!0}d=0;for(b=this.b.m.length;d<b;d++)if(h=this.b.m[d],!(h.global||h.va.ae||h.va.bj||h.B)){c=0;for(e=h.c.length;c<e;c++)this.b.Ld(h.c[c]);this.b.bb()}a=!1};new U(0,0,0,0);k.prototype.kc=function(a){var b,c=a,e=!1,h=!this.b.lc;
h&&(this.b.vi||(this.b.vi=document.createElement("canvas"),b=this.b.vi,b.width=this.b.N,b.height=this.b.M,this.b.Nn=b.getContext("2d"),e=!0),b=this.b.vi,c=this.b.Nn,b.width!==this.b.N&&(b.width=this.b.N,e=!0),b.height!==this.b.M&&(b.height=this.b.M,e=!0),e&&(c.webkitImageSmoothingEnabled=this.b.U,c.mozImageSmoothingEnabled=this.b.U,c.msImageSmoothingEnabled=this.b.U,c.imageSmoothingEnabled=this.b.U));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.Ij&&!this.ln()&&c.clearRect(0,0,this.b.N,
this.b.M);var f,l,e=0;for(f=this.K.length;e<f;e++)l=this.K[e],l.visible&&0<l.opacity&&11!==l.ob&&(l.c.length||!l.Id)?l.kc(c):l.Xl();h&&a.drawImage(b,0,0,this.b.width,this.b.height)};k.prototype.qb=function(a){var b=0<this.X.length||this.b.Wf||!this.b.lc;if(b){this.b.Jb||(this.b.Jb=a.Td(this.b.N,this.b.M,this.b.U));if(this.b.Jb.fg!==this.b.N||this.b.Jb.eg!==this.b.M)a.deleteTexture(this.b.Jb),this.b.Jb=a.Td(this.b.N,this.b.M,this.b.U);a.$c(this.b.Jb);this.b.lc||a.Nf(this.b.N,this.b.M)}else this.b.Jb&&
(a.$c(null),a.deleteTexture(this.b.Jb),this.b.Jb=null);this.b.Ij&&!this.ln()&&a.clear(0,0,0,0);var c,e,h;c=0;for(e=this.K.length;c<e;c++)h=this.K[c],h.visible&&0<h.opacity&&(h.c.length||!h.Id)?h.qb(a):h.Xl();b&&(0===this.X.length||1===this.X.length&&this.b.lc?(1===this.X.length?(b=this.X[0].index,a.ad(this.X[0].ab),a.Mf(null,1/this.b.N,1/this.b.M,0,0,1,1,this.scale,this.j,0,0,this.b.N/2,this.b.M/2,this.ta[b]),a.Ui(this.X[0].ab)&&(this.b.ha=!0)):a.ad(0),this.b.lc||a.Nf(this.b.width,this.b.height),
a.$c(null),a.Ue(1),a.Nb(this.b.Jb),a.So(),a.fe(),a.me(),b=this.b.width/2,c=this.b.height/2,a.kh(-b,c,b,c,b,-c,-b,-c),a.Nb(null)):this.Al(a,null,null,null))};k.prototype.qg=function(){return 0<this.X.length||this.b.Wf||!this.b.lc?this.b.Jb:null};k.prototype.hn=function(){var a=this.K[0].Ub(),b,c,e;b=1;for(c=this.K.length;b<c;b++)e=this.K[b],(0!==e.uc||0!==e.vc)&&e.Ub()<a&&(a=e.Ub());return a};k.prototype.Qo=function(a){if(!this.pp){var b=1/this.hn()*this.b.N/2;a>this.width-b&&(a=this.width-b);a<b&&
(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ha=!0)};k.prototype.Ro=function(a){if(!this.pp){var b=1/this.hn()*this.b.M/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ha=!0)};k.prototype.Nq=function(){this.Qo(this.scrollX);this.Ro(this.scrollY)};k.prototype.Al=function(a,b,c,e){var h=c?c.X:b?b.X:this.X,f=1,l=0,g=0,w=0,k=this.b.N,u=this.b.M;c?(f=c.d.Ub(),l=c.d.Ra(),g=c.d.ya,w=c.d.za,k=c.d.Ga,u=c.d.Fa):b&&(f=b.Ub(),l=b.Ra(),g=b.ya,w=b.za,k=b.Ga,u=b.Fa);var p=
this.b.qk,q,A,v,z,M=0,ha=1,X,G=this.b.N,x=this.b.M,wa=G/2,H=x/2,Q=b?b.lh:this.lh,C=b?b.zl:this.zl,D=0,O=0,B=0,L=0,I=G,ka=G,N=x,pa=x,da=v=0,sa=c?c.d.Ra():0;if(c){q=0;for(A=h.length;q<A;q++)v+=a.os(h[q].ab),da+=a.ps(h[q].ab);z=c.Xa;D=b.ib(z.left,z.top,!0,!0);B=b.ib(z.left,z.top,!1,!0);I=b.ib(z.right,z.bottom,!0,!0);N=b.ib(z.right,z.bottom,!1,!0);0!==sa&&(q=b.ib(z.right,z.top,!0,!0),A=b.ib(z.right,z.top,!1,!0),O=b.ib(z.left,z.bottom,!0,!0),L=b.ib(z.left,z.bottom,!1,!0),z=Math.min(D,I,q,O),I=Math.max(D,
I,q,O),D=z,z=Math.min(B,N,A,L),N=Math.max(B,N,A,L),B=z);D-=v;B-=da;I+=v;N+=da;C.left=D/G;C.top=1-B/x;C.right=I/G;C.bottom=1-N/x;O=D=T(D);L=B=T(B);ka=I=qa(I);pa=N=qa(N);O-=v;L-=da;ka+=v;pa+=da;0>D&&(D=0);0>B&&(B=0);I>G&&(I=G);N>x&&(N=x);0>O&&(O=0);0>L&&(L=0);ka>G&&(ka=G);pa>x&&(pa=x);Q.left=D/G;Q.top=1-B/x;Q.right=I/G;Q.bottom=1-N/x}else Q.left=C.left=0,Q.top=C.top=0,Q.right=C.right=1,Q.bottom=C.bottom=1;da=c&&((c.j||sa)&&a.ih(h[0].ab)||0!==v||0!==da||1!==c.opacity||c.type.va.jo)||b&&!c&&1!==b.opacity;
a.So();if(da){p[M]||(p[M]=a.Td(G,x,this.b.U));if(p[M].fg!==G||p[M].eg!==x)a.deleteTexture(p[M]),p[M]=a.Td(G,x,this.b.U);a.ad(0);a.$c(p[M]);X=pa-L;a.clearRect(O,x-L-X,ka-O,X);c?c.qb(a):(a.Nb(this.b.Yb),a.Ue(b.opacity),a.fe(),a.translate(-wa,-H),a.me(),a.Cd(D,N,I,N,I,B,D,B,Q));C.left=C.top=0;C.right=C.bottom=1;c&&(z=Q.top,Q.top=Q.bottom,Q.bottom=z);M=1;ha=0}a.Ue(1);v=h.length-1;var sa=a.ul(h[v].ab)||!b&&!c&&!this.b.lc,ba=0;q=0;for(A=h.length;q<A;q++){p[M]||(p[M]=a.Td(G,x,this.b.U));if(p[M].fg!==G||
p[M].eg!==x)a.deleteTexture(p[M]),p[M]=a.Td(G,x,this.b.U);a.ad(h[q].ab);ba=h[q].index;a.Ui(h[q].ab)&&(this.b.ha=!0);0!=q||da?(a.Mf(e,1/G,1/x,C.left,C.top,C.right,C.bottom,f,l,g,w,(g+k)/2,(w+u)/2,c?c.ta[ba]:b?b.ta[ba]:this.ta[ba]),a.Nb(null),q!==v||sa?(a.$c(p[M]),X=pa-L,z=x-L-X,a.clearRect(O,z,ka-O,X)):(c?a.ge(c.gb,c.eb):b&&a.ge(b.gb,b.eb),a.$c(e)),a.Nb(p[ha]),a.fe(),a.translate(-wa,-H),a.me(),a.Cd(D,N,I,N,I,B,D,B,Q),q!==v||sa||a.Nb(null)):(a.$c(p[M]),X=pa-L,z=x-L-X,a.clearRect(O,z,ka-O,X),c?(a.Mf(e,
1/c.width,1/c.height,C.left,C.top,C.right,C.bottom,f,l,g,w,(g+k)/2,(w+u)/2,c.ta[ba]),c.qb(a)):(a.Mf(e,1/G,1/x,0,0,1,1,f,l,g,w,(g+k)/2,(w+u)/2,b?b.ta[ba]:this.ta[ba]),a.Nb(b?this.b.Yb:this.b.Jb),a.fe(),a.translate(-wa,-H),a.me(),a.Cd(D,N,I,N,I,B,D,B,Q)),C.left=C.top=0,C.right=C.bottom=1,c&&!sa&&(z=N,N=B,B=z));M=0===M?1:0;ha=0===M?1:0}sa&&(a.ad(0),c?a.ge(c.gb,c.eb):b?a.ge(b.gb,b.eb):this.b.lc||(a.Nf(this.b.width,this.b.height),wa=this.b.width/2,H=this.b.height/2,B=D=0,I=this.b.width,N=this.b.height),
a.$c(e),a.Nb(p[ha]),a.fe(),a.translate(-wa,-H),a.me(),c&&1===h.length&&!da?a.Cd(D,B,I,B,I,N,D,N,Q):a.Cd(D,N,I,N,I,B,D,B,Q),a.Nb(null))};k.prototype.$h=function(a){var b,c;b=0;for(c=this.K.length;b<c;b++)if(this.K[b].R===a)return this.K[b];return null};k.prototype.zb=function(){var a,b,c,e={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.j,w:this.width,h:this.height,fv:this.jf,persist:this.de,fx:[],layers:{}};a=0;for(b=this.H.length;a<b;a++)c=this.H[a],e.fx.push({name:c.name,active:c.Qa,params:this.ta[c.index]});
a=0;for(b=this.K.length;a<b;a++)c=this.K[a],e.layers[c.R.toString()]=c.zb();return e};k.prototype.Zb=function(a){var b,c,e,h;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.de=a.persist;"undefined"!==typeof a.fv&&(this.jf=a.fv);var f=a.fx;b=0;for(c=f.length;b<c;b++)if(e=this.vk(f[b].name))e.Qa=f[b].active,this.ta[e.index]=f[b].params;this.Jd();b=a.layers;for(h in b)b.hasOwnProperty(h)&&(a=this.$h(parseInt(h,10)))&&a.Zb(b[h])};Ab=k;f.prototype.Jd=function(){this.X.length=
0;var a,b,c;a=0;for(b=this.H.length;a<b;a++)c=this.H[a],c.Qa&&this.X.push(c)};f.prototype.vk=function(a){var b,c,e;b=0;for(c=this.H.length;b<c;b++)if(e=this.H[b],e.name===a)return e;return null};f.prototype.Wq=function(){var a,b,e,n,h,f;b=a=0;for(e=this.Vb.length;a<e;a++){n=this.Vb[a];h=this.b.m[n[1]];f=this.b.Ul(h);h=!0;if(!f||this.Sa.jf)n=this.b.te(n,this,!0),c.push(n),n.type.global&&(h=!1,this.ig.push(n.uid));h&&(this.Vb[b]=this.Vb[a],b++)}this.Vb.length=b;this.b.bb();!this.b.n&&this.H.length&&
(this.ob=this.rr);this.hg=cb(this.ob);this.b.k&&db(this,this.ob,this.b.k);this.Dd=!0};f.prototype.Kf=function(a,b){var c=za(this.c,a);0>c||(b&&this.Lc&&a.xb&&a.xb.right>=a.xb.left&&(a.Wa(),this.Mb.update(a,a.xb,null),a.xb.set(0,0,-1,-1)),c===this.c.length-1?this.c.pop():(va(this.c,c),this.oh(c)),this.Dd=!0)};f.prototype.bg=function(a,b){a.Nc=this.c.length;this.c.push(a);b&&this.Lc&&a.xb&&a.xa();this.Dd=!0};f.prototype.Bt=function(a){this.c.unshift(a);this.oh(0)};f.prototype.ct=function(a,b,c){var e=
a.nc();b=b.nc();va(this.c,e);e<b&&b--;c&&b++;b===this.c.length?this.c.push(a):this.c.splice(b,0,a);this.oh(e<b?e:b)};f.prototype.oh=function(a){-1===this.Kd?this.Kd=a:a<this.Kd&&(this.Kd=a);this.Dd=this.Xe=!0};f.prototype.Yl=function(){if(this.Xe){-1===this.Kd&&(this.Kd=0);var a,b,c;if(this.Lc)for(a=this.Kd,b=this.c.length;a<b;++a)c=this.c[a],c.Nc=a,this.Mb.Ys(c.xb);else for(a=this.Kd,b=this.c.length;a<b;++a)this.c[a].Nc=a;this.Xe=!1;this.Kd=-1}};f.prototype.Ub=function(a){return this.ls()*(this.b.lc||
a?this.b.dg:1)};f.prototype.ls=function(){return(this.scale*this.Sa.scale-1)*this.Db+1};f.prototype.Ra=function(){return this.ve?0:Da(this.Sa.j+this.j)};var b=[],e=[],h=[];f.prototype.jn=function(){this.Yl();this.Mb.Lo(this.ya,this.za,this.Ga,this.Fa,h);if(!h.length)return q();if(1===h.length){var a=q();xa(a,h[0]);h.length=0;return a}for(var b=!0;1<h.length;){for(var a=h,c=void 0,n=void 0,f=void 0,k=void 0,r=void 0,c=0,n=a.length;c<n-1;c+=2){var f=a[c],k=a[c+1],r=q(),g=f,w=k,p=r,u=0,E=0,J=0,A=g.length,
v=w.length,z=void 0,M=void 0;for(p.length=A+v;u<A&&E<v;++J)z=g[u],M=w[E],z.Nc<M.Nc?(p[J]=z,++u):(p[J]=M,++E);for(;u<A;++u,++J)p[J]=g[u];for(;E<v;++E,++J)p[J]=w[E];b||(l(f),l(k));e.push(r)}1===n%2&&(b?(f=q(),xa(f,a[n-1]),e.push(f)):e.push(a[n-1]));xa(a,e);e.length=0;b=!1}a=h[0];h.length=0;return a};f.prototype.kc=function(a){this.ee=this.nk||1!==this.opacity||0!==this.ob;var b=this.b.canvas,c=a,e=!1;this.ee&&(this.b.ti||(this.b.ti=document.createElement("canvas"),b=this.b.ti,b.width=this.b.N,b.height=
this.b.M,this.b.Mn=b.getContext("2d"),e=!0),b=this.b.ti,c=this.b.Mn,b.width!==this.b.N&&(b.width=this.b.N,e=!0),b.height!==this.b.M&&(b.height=this.b.M,e=!0),e&&(c.webkitImageSmoothingEnabled=this.b.U,c.mozImageSmoothingEnabled=this.b.U,c.msImageSmoothingEnabled=this.b.U,c.imageSmoothingEnabled=this.b.U),this.Id&&c.clearRect(0,0,this.b.N,this.b.M));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Id||(c.fillStyle="rgb("+this.Qd[0]+","+this.Qd[1]+","+this.Qd[2]+")",c.fillRect(0,0,this.b.N,
this.b.M));c.save();this.ve=!0;var e=this.na(0,0,!0,!0),h=this.na(0,0,!1,!0);this.ve=!1;this.b.Zc&&(e=Math.round(e),h=Math.round(h));this.Cl(e,h,c);var f=this.Ub();c.scale(f,f);c.translate(-e,-h);this.Lc?(this.ic.left=this.Mb.Pb(this.ya),this.ic.top=this.Mb.Qb(this.za),this.ic.right=this.Mb.Pb(this.Ga),this.ic.bottom=this.Mb.Qb(this.Fa),this.Dd||!this.ic.Qh(this.ri)?(l(this.vf),e=this.jn(),this.Dd=!1,this.ri.Hh(this.ic)):e=this.vf):e=this.c;for(var k,g=null,h=0,f=e.length;h<f;++h)k=e[h],k!==g&&(this.or(k,
c),g=k);this.Lc&&(this.vf=e);c.restore();this.ee&&(a.globalCompositeOperation=this.hg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};f.prototype.or=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Wa();var c=a.Xa;c.right<this.ya||c.bottom<this.za||c.left>this.Ga||c.top>this.Fa||(b.globalCompositeOperation=a.hg,a.kc(b))}};f.prototype.Xl=function(){this.ve=!0;var a=this.na(0,0,!0,!0),b=this.na(0,0,!1,!0);this.ve=!1;this.b.Zc&&(a=Math.round(a),b=Math.round(b));this.Cl(a,b,null)};f.prototype.Cl=
function(a,b,c){var e=this.Ub();this.ya=a;this.za=b;this.Ga=a+1/e*this.b.N;this.Fa=b+1/e*this.b.M;a=this.Ra();0!==a&&(c&&(c.translate(this.b.N/2,this.b.M/2),c.rotate(-a),c.translate(this.b.N/-2,this.b.M/-2)),this.Hd.set(this.ya,this.za,this.Ga,this.Fa),this.Hd.offset((this.ya+this.Ga)/-2,(this.za+this.Fa)/-2),this.ip.Wo(this.Hd,a),this.ip.Im(this.Hd),this.Hd.offset((this.ya+this.Ga)/2,(this.za+this.Fa)/2),this.ya=this.Hd.left,this.za=this.Hd.top,this.Ga=this.Hd.right,this.Fa=this.Hd.bottom)};f.prototype.qb=
function(a){var b=0,c=0;if(this.ee=this.nk||1!==this.opacity||0<this.X.length||0!==this.ob){this.b.Yb||(this.b.Yb=a.Td(this.b.N,this.b.M,this.b.U));if(this.b.Yb.fg!==this.b.N||this.b.Yb.eg!==this.b.M)a.deleteTexture(this.b.Yb),this.b.Yb=a.Td(this.b.N,this.b.M,this.b.U);a.$c(this.b.Yb);this.Id&&a.clear(0,0,0,0)}this.Id||a.clear(this.Qd[0]/255,this.Qd[1]/255,this.Qd[2]/255,1);this.ve=!0;var e=this.na(0,0,!0,!0),b=this.na(0,0,!1,!0);this.ve=!1;this.b.Zc&&(e=Math.round(e),b=Math.round(b));this.Cl(e,b,
null);e=this.Ub();a.fe();a.scale(e,e);a.Oo(-this.Ra());a.translate((this.ya+this.Ga)/-2,(this.za+this.Fa)/-2);a.me();this.Lc?(this.ic.left=this.Mb.Pb(this.ya),this.ic.top=this.Mb.Qb(this.za),this.ic.right=this.Mb.Pb(this.Ga),this.ic.bottom=this.Mb.Qb(this.Fa),this.Dd||!this.ic.Qh(this.ri)?(l(this.vf),b=this.jn(),this.Dd=!1,this.ri.Hh(this.ic)):b=this.vf):b=this.c;var h,f,k=null,c=0;for(h=b.length;c<h;++c)f=b[c],f!==k&&(this.pr(b[c],a),k=f);this.Lc&&(this.vf=b);this.ee&&(b=this.X.length?this.X[0].ab:
0,c=this.X.length?this.X[0].index:0,0===this.X.length||1===this.X.length&&!a.ul(b)&&1===this.opacity?(1===this.X.length?(a.ad(b),a.Mf(this.Sa.qg(),1/this.b.N,1/this.b.M,0,0,1,1,e,this.Ra(),this.ya,this.za,(this.ya+this.Ga)/2,(this.za+this.Fa)/2,this.ta[c]),a.Ui(b)&&(this.b.ha=!0)):a.ad(0),a.$c(this.Sa.qg()),a.Ue(this.opacity),a.Nb(this.b.Yb),a.ge(this.gb,this.eb),a.fe(),a.me(),e=this.b.N/2,b=this.b.M/2,a.kh(-e,b,e,b,e,-b,-e,-b),a.Nb(null)):this.Sa.Al(a,this,null,this.Sa.qg()))};f.prototype.pr=function(a,
b){if(a.visible&&0!==a.width&&0!==a.height){a.Wa();var c=a.Xa;c.right<this.ya||c.bottom<this.za||c.left>this.Ga||c.top>this.Fa||(a.vp?this.qr(a,b):(b.ad(0),b.ge(a.gb,a.eb),a.qb(b)))}};f.prototype.qr=function(a,b){var c=a.X[0].ab,e=a.X[0].index,h=this.Ub();if(1!==a.X.length||b.ul(c)||b.Dt(c)||(a.j||a.d.Ra())&&b.ih(c)||1!==a.opacity||a.type.va.jo)this.Sa.Al(b,this,a,this.ee?this.b.Yb:this.Sa.qg()),b.fe(),b.scale(h,h),b.Oo(-this.Ra()),b.translate((this.ya+this.Ga)/-2,(this.za+this.Fa)/-2),b.me();else{b.ad(c);
b.ge(a.gb,a.eb);b.Ui(c)&&(this.b.ha=!0);var f=0,l=0,g=0,k=0;b.ih(c)&&(c=a.Xa,f=this.ib(c.left,c.top,!0,!0),l=this.ib(c.left,c.top,!1,!0),g=this.ib(c.right,c.bottom,!0,!0),c=this.ib(c.right,c.bottom,!1,!0),f/=windowWidth,l=1-l/windowHeight,g/=windowWidth,k=1-c/windowHeight);b.Mf(this.ee?this.b.Yb:this.Sa.qg(),1/a.width,1/a.height,f,l,g,k,h,this.Ra(),this.ya,this.za,(this.ya+this.Ga)/2,(this.za+this.Fa)/2,a.ta[e]);a.qb(b)}};f.prototype.na=function(a,b,c,e){var h=this.b.devicePixelRatio;this.b.Ie&&(a*=
h,b*=h);var h=this.b.Ao,f=this.b.Bo,h=(this.Sa.scrollX-h)*this.uc+h,f=(this.Sa.scrollY-f)*this.vc+f,l=h,g=f,k=1/this.Ub(!e);e?(l-=this.b.N*k/2,g-=this.b.M*k/2):(l-=this.b.width*k/2,g-=this.b.height*k/2);l+=a*k;g+=b*k;b=this.Ra();0!==b&&(l-=h,g-=f,a=Math.cos(b),b=Math.sin(b),e=l*a-g*b,g=g*a+l*b,l=e+h,g+=f);return c?l:g};f.prototype.ib=function(a,b,c,e){var h=this.b.Ao,f=this.b.Bo,l=(this.Sa.scrollX-h)*this.uc+h,g=(this.Sa.scrollY-f)*this.vc+f,f=l,h=g,k=this.Ra();if(0!==k){a-=l;b-=g;var p=Math.cos(-k),
k=Math.sin(-k),u=a*p-b*k;b=b*p+a*k;a=u+l;b+=g}l=1/this.Ub(!e);e?(f-=this.b.N*l/2,h-=this.b.M*l/2):(f-=this.b.width*l/2,h-=this.b.height*l/2);f=(a-f)/l;h=(b-h)/l;a=this.b.devicePixelRatio;this.b.Ie&&!e&&(f/=a,h/=a);return c?f:h};f.prototype.zb=function(){var a,b,c,e={s:this.scale,a:this.j,vl:this.ya,vt:this.za,vr:this.Ga,vb:this.Fa,v:this.visible,bc:this.Qd,t:this.Id,px:this.uc,py:this.vc,o:this.opacity,zr:this.Db,fx:[],cg:this.ig,instances:[]};a=0;for(b=this.H.length;a<b;a++)c=this.H[a],e.fx.push({name:c.name,
active:c.Qa,params:this.ta[c.index]});return e};f.prototype.Zb=function(a){var b,c,e;this.scale=a.s;this.j=a.a;this.ya=a.vl;this.za=a.vt;this.Ga=a.vr;this.Fa=a.vb;this.visible=a.v;this.Qd=a.bc;this.Id=a.t;this.uc=a.px;this.vc=a.py;this.opacity=a.o;this.Db=a.zr;this.ig=a.cg||[];xa(this.Vb,this.dp);var h=new ca;b=0;for(e=this.ig.length;b<e;++b)h.add(this.ig[b]);c=b=0;for(e=this.Vb.length;b<e;++b)h.contains(this.Vb[b][2])||(this.Vb[c]=this.Vb[b],++c);this.Vb.length=c;c=a.fx;b=0;for(e=c.length;b<e;b++)if(a=
this.vk(c[b].name))a.Qa=c[b].active,this.ta[a.index]=c[b].params;this.Jd();this.c.sort(p);this.Xe=!0};Ob=f})();
(function(){function k(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 f(a){var b,c,e,d;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>=t.length&&(t.length=a.length+1);t[a.length]||(t[a.length]=[]);d=t[a.length];b=0;for(c=d.length;b<c;b++)if(e=d[b],k(a,e))return e;d.push(a);return a}
function q(a,b){this.b=a;this.lp={};this.Xm={};this.Gk=!1;this.pn=new ca;this.bk=[];this.Jj=[];this.name=b[0];var c=b[1];this.Wd=[];var e,d;e=0;for(d=c.length;e<d;e++)this.rn(c[e],null,this.Wd)}function l(a){this.type=a;this.c=[];this.T=[];this.ka=!0}function c(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ma=[];this.he=[];this.mn=this.oj=this.Rl=this.hi=this.group=this.cp=!1;this.cb=[];this.Bc=[];this.xc=[];this.ug="";this.tg=this.hi=this.group=!1;this.Fh=null;c[1]&&(this.ug=c[1][1].toLowerCase(),
this.group=!0,this.hi=!!c[1][0],this.Fh=[],this.tg=this.hi,this.b.Pd.push(this),this.b.ci[this.ug]=this);this.Wc=c[2];this.R=c[4];this.group||(this.b.Hm[this.R.toString()]=this);var e=c[5];a=0;for(b=e.length;a<b;a++){var d=new Pb(this,e[a]);d.index=a;this.cb.push(d);this.wm(d.type)}e=c[6];a=0;for(b=e.length;a<b;a++)d=new Qb(this,e[a]),d.index=a,this.Bc.push(d);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.rn(c[a],this,this.xc);this.li=!1;this.cb.length&&(this.li=null==this.cb[0].type&&
this.cb[0].Ya==Y.prototype.e.Hp)}function a(a,b){var c,e,d;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Fc))for(c=0,e=a.Gb.length;c<e;c++)d=a.Gb[c],a!==d&&-1===b.indexOf(d)&&b.push(d)}function b(a,b){this.Rb=a;this.sheet=a.sheet;this.b=a.b;this.L=[];this.wa=[];this.ua={};this.index=-1;this.$f=!1;this.Ya=this.b.Md(b[1]);this.trigger=0<b[3];this.Wm=2===b[3];this.Vc=b[4];this.yg=b[5];this.Us=b[6];this.R=b[7];this.b.ef[this.R.toString()]=this;-1===b[0]?(this.type=null,this.Ma=this.Fl,this.qe=null,this.Dc=-1):
(this.type=this.b.m[b[0]],this.Ma=this.Us?this.Nt:this.El,b[2]?(this.qe=this.type.Zh(b[2]),this.Dc=this.type.sk(b[2])):(this.qe=null,this.Dc=-1),this.Rb.parent&&this.Rb.parent.aj());this.Wm&&(this.Ma=this.Ot);if(10===b.length){var c,e,d=b[9];c=0;for(e=d.length;c<e;c++){var h=new Rb(this,d[c]);this.L.push(h)}this.wa.length=d.length}}function e(a,b){this.Rb=a;this.sheet=a.sheet;this.b=a.b;this.L=[];this.wa=[];this.ua={};this.index=-1;this.$f=!1;this.Ya=this.b.Md(b[1]);-1===b[0]?(this.type=null,this.Ma=
this.Fl,this.qe=null,this.Dc=-1):(this.type=this.b.m[b[0]],this.Ma=this.El,b[2]?(this.qe=this.type.Zh(b[2]),this.Dc=this.type.sk(b[2])):(this.qe=null,this.Dc=-1));this.R=b[3];this.b.bf[this.R.toString()]=this;if(6===b.length){var c,e,d=b[5];c=0;for(e=d.length;c<e;c++){var h=new Rb(this,d[c]);this.L.push(h)}this.wa.length=d.length}}function h(){r++;y.length===r&&y.push(new Sb);return y[r]}function d(a,b){this.ja=a;this.Rb=a.Rb;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Tc=null;this.Gd=0;this.get=
null;this.Om=0;this.Sa=null;this.key=0;this.object=null;this.index=0;this.yh=this.We=this.yh=this.We=this.Ym=this.Ae=this.zh=null;this.Ac=!1;var c,e,d;switch(b[0]){case 0:case 7:this.Tc=new Tb(this,b[1]);this.Gd=0;this.get=this.us;break;case 1:this.Tc=new Tb(this,b[1]);this.Gd=0;this.get=this.vs;break;case 5:this.Tc=new Tb(this,b[1]);this.Gd=0;this.get=this.zs;break;case 3:case 8:this.Om=b[1];this.get=this.ss;break;case 6:this.Sa=this.b.Yk[b[1]];this.get=this.As;break;case 9:this.key=b[1];this.get=
this.ys;break;case 4:this.object=this.b.m[b[1]];this.get=this.Bs;this.Rb.wm(this.object);this.ja instanceof Qb?this.Rb.aj():this.Rb.parent&&this.Rb.parent.aj();break;case 10:this.index=b[1];a.type.B?(this.get=this.ws,this.Ac=!0):this.get=this.xs;break;case 11:this.zh=b[1];this.Ae=null;this.get=this.ts;break;case 2:case 12:this.Ym=b[1];this.get=this.rs;break;case 13:for(this.get=this.Cs,this.We=[],this.yh=[],c=1,e=b.length;c<e;c++)d=new Rb(this.ja,b[c]),this.We.push(d),this.yh.push(0)}}function m(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ma=[];this.name=c[1];this.vj=c[2];this.gi=c[3];this.Eg=!!c[4];this.ki=!!c[5];this.R=c[6];this.b.Yf[this.R.toString()]=this;this.data=this.gi;this.parent?(this.Qe=this.Eg||this.ki?-1:this.b.Wt++,this.b.Iq.push(this)):(this.Qe=-1,this.b.Gj.push(this))}function s(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ma=[];this.wg=null;this.Is=c[1];this.Qa=!0}function n(){this.fp=[];this.reset(null)}var t=[];q.prototype.toString=function(){return this.name};
q.prototype.rn=function(a,b,c){switch(a[0]){case 0:a=new Ub(this,b,a);if(a.Wc)for(c.push(a),c=0,b=a.cb.length;c<b;c++)a.cb[c].trigger&&this.sn(a,c);else a.zn()?this.sn(a,0):c.push(a);break;case 1:a=new Lb(this,b,a);c.push(a);break;case 2:a=new Vb(this,b,a),c.push(a)}};q.prototype.Ca=function(){var a,b;a=0;for(b=this.Wd.length;a<b;a++)this.Wd[a].Ca(a<b-1&&this.Wd[a+1].li)};q.prototype.Vl=function(){this.bk.length=0;this.Jj.length=0;this.vm(this);this.Jj.length=0};q.prototype.vm=function(a){var b,c,
e,d,h=a.bk,n=a.Jj,f=this.pn.Mc();b=0;for(c=f.length;b<c;++b)e=f[b],d=e.wg,!e.Qa||a===d||-1<n.indexOf(d)||(n.push(d),d.vm(a),h.push(d))};q.prototype.Ma=function(a){this.b.zv||(this.Gk=!0,a||(this.b.Rk=!0));var b,c;b=0;for(c=this.Wd.length;b<c;b++){var e=this.Wd[b];e.Ma();this.b.Vj(e.ma);this.b.Yd&&this.b.bb()}a||(this.b.Rk=!1)};q.prototype.sn=function(a,b){a.Wc||this.b.rj.push(a);var c,e,d=a.cb[b],h;h=d.type?d.type.name:"system";var n=(c=d.Wm)?this.Xm:this.lp;n[h]||(n[h]=[]);h=n[h];n=d.Ya;if(c){if(d.L.length&&
(d=d.L[0],1===d.type&&2===d.Tc.type)){d=d.Tc.value.toLowerCase();c=0;for(e=h.length;c<e;c++)if(h[c].method==n){c=h[c].lg;c[d]?c[d].push([a,b]):c[d]=[[a,b]];return}c={};c[d]=[[a,b]];h.push({method:n,lg:c})}}else{c=0;for(e=h.length;c<e;c++)if(h[c].method==n){h[c].lg.push([a,b]);return}gc&&n===gc.prototype.e.$e?h.unshift({method:n,lg:[[a,b]]}):h.push({method:n,lg:[[a,b]]})}};Bb=q;l.prototype.Fk=function(){return this.ka?this.type.c.length:this.c.length};l.prototype.mc=function(){return this.ka?this.type.c:
this.c};l.prototype.hh=function(a){a&&(a.b.rb().Sb.Wc?(this.ka&&(this.c.length=0,xa(this.T,a.type.c),this.ka=!1),a=this.T.indexOf(a),-1!==a&&(this.c.push(this.T[a]),this.T.splice(a,1))):(this.ka=!1,this.c.length=1,this.c[0]=a))};jb=l;window._c2hh_="028182FC3C1790C453899C06084DBCA3F631EAD1";c.prototype.Ca=function(a){var b,c=this.parent;if(this.group)for(this.oj=!0;c;){if(!c.group){this.oj=!1;break}c=c.parent}this.Rl=!this.zn()&&(!this.parent||this.parent.group&&this.parent.oj);this.mn=!!a;this.he=
this.ma.slice(0);for(c=this.parent;c;){a=0;for(b=c.ma.length;a<b;a++)this.Fq(c.ma[a]);c=c.parent}this.ma=f(this.ma);this.he=f(this.he);a=0;for(b=this.cb.length;a<b;a++)this.cb[a].Ca();a=0;for(b=this.Bc.length;a<b;a++)this.Bc[a].Ca();a=0;for(b=this.xc.length;a<b;a++)this.xc[a].Ca(a<b-1&&this.xc[a+1].li)};c.prototype.To=function(a){if(this.tg!==!!a){this.tg=!!a;var b;a=0;for(b=this.Fh.length;a<b;++a)this.Fh[a].rp();0<b&&this.b.ba.ze&&this.b.ba.ze.Vl()}};c.prototype.wm=function(b){a(b,this.ma)};c.prototype.Fq=
function(b){a(b,this.he)};c.prototype.aj=function(){this.cp=!0;this.parent&&this.parent.aj()};c.prototype.zn=function(){return this.cb.length?this.cb[0].trigger:!1};c.prototype.Ma=function(){var a,b=!1,c,e=this.b,d=this.b.rb();d.Sb=this;var h=this.cb;this.li||(d.fk=!1);if(this.Wc){0===h.length&&(b=!0);d.pb=0;for(a=h.length;d.pb<a;d.pb++)h[d.pb].trigger||(c=h[d.pb].Ma())&&(b=!0);(d.Me=b)&&this.Dl()}else{d.pb=0;for(a=h.length;d.pb<a;d.pb++)if(c=h[d.pb].Ma(),!c){d.Me=!1;this.Rl&&e.Yd&&e.bb();return}d.Me=
!0;this.Dl()}this.tr(d)};c.prototype.tr=function(a){a.Me&&this.mn&&(a.fk=!0);this.Rl&&this.b.Yd&&this.b.bb()};c.prototype.Lt=function(a){this.b.rb().Sb=this;this.cb[a].Ma()&&(this.Dl(),this.b.rb().Me=!0)};c.prototype.Dl=function(){var a=this.b.rb(),b;a.Eb=0;for(b=this.Bc.length;a.Eb<b;a.Eb++)if(this.Bc[a.Eb].Ma())return;this.Po()};c.prototype.Jt=function(){var a=this.b.rb(),b;for(b=this.Bc.length;a.Eb<b;a.Eb++)if(this.Bc[a.Eb].Ma())return;this.Po()};c.prototype.Po=function(){if(this.xc.length){var a,
b,c,e,d=this.xc.length-1;this.b.xl(this);if(this.cp)for(a=0,b=this.xc.length;a<b;a++)c=this.xc[a],(e=!this.oj||!this.group&&a<d)&&this.b.wl(c.ma),c.Ma(),e?this.b.If(c.ma):this.b.Vj(c.ma);else for(a=0,b=this.xc.length;a<b;a++)this.xc[a].Ma();this.b.Go()}};c.prototype.Mt=function(){var a=this.b.rb();a.Sb=this;var b=!1,c;a.pb=0;for(c=this.cb.length;a.pb<c;a.pb++)if(this.cb[a.pb].Ma())b=!0;else if(!this.Wc)return!1;return this.Wc?b:!0};c.prototype.Ns=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=
b;--b)if(this.cb[b].type===a.type)return!1;return!0};Ub=c;b.prototype.Ca=function(){var a,b,c;a=0;for(b=this.L.length;a<b;a++)c=this.L[a],c.Ca(),c.Ac&&(this.$f=!0)};b.prototype.Ot=function(){return!0};b.prototype.Fl=function(){var a,b;a=0;for(b=this.L.length;a<b;a++)this.wa[a]=this.L[a].get();return Ra(this.Ya.apply(this.b.bd,this.wa),this.yg)};b.prototype.Nt=function(){var a,b;a=0;for(b=this.L.length;a<b;a++)this.wa[a]=this.L[a].get();a=this.Ya.apply(this.qe?this.qe:this.type,this.wa);this.type.hd();
return a};b.prototype.El=function(){var a,b,c,e,d,h,n,f,m=this.type,l=m.fa(),k=this.Rb.Wc&&!this.trigger;b=0;var p=m.Fc,r=m.B,s=m.pd,t=this.Dc,q=-1<t,y=this.$f,C=this.L,D=this.wa,O=this.yg,B=this.Ya,L;if(y)for(b=0,d=C.length;b<d;++b)h=C[b],h.Ac||(D[b]=h.get(0));else for(b=0,d=C.length;b<d;++b)D[b]=C[b].get(0);if(l.ka){l.c.length=0;l.T.length=0;L=m.c;a=0;for(e=L.length;a<e;++a){f=L[a];if(y)for(b=0,d=C.length;b<d;++b)h=C[b],h.Ac&&(D[b]=h.get(a));q?(b=0,r&&(b=f.type.hf[s]),b=B.apply(f.G[t+b],D)):b=B.apply(f,
D);(n=Ra(b,O))?l.c.push(f):k&&l.T.push(f)}m.finish&&m.finish(!0);l.ka=!1;m.hd();return l.Fk()}c=0;L=(n=k&&!this.Rb.Ns(this))?l.T:l.c;var I=!1;a=0;for(e=L.length;a<e;++a){f=L[a];if(y)for(b=0,d=C.length;b<d;++b)h=C[b],h.Ac&&(D[b]=h.get(a));q?(b=0,r&&(b=f.type.hf[s]),b=B.apply(f.G[t+b],D)):b=B.apply(f,D);if(Ra(b,O))if(I=!0,n){if(l.c.push(f),p)for(b=0,d=f.siblings.length;b<d;b++)h=f.siblings[b],h.type.fa().c.push(h)}else{L[c]=f;if(p)for(b=0,d=f.siblings.length;b<d;b++)h=f.siblings[b],h.type.fa().c[c]=
h;c++}else if(n){L[c]=f;if(p)for(b=0,d=f.siblings.length;b<d;b++)h=f.siblings[b],h.type.fa().T[c]=h;c++}else if(k&&(l.T.push(f),p))for(b=0,d=f.siblings.length;b<d;b++)h=f.siblings[b],h.type.fa().T.push(h)}L.length=c;if(p)for(r=m.Gb,a=0,e=r.length;a<e;a++)f=r[a].fa(),n?f.T.length=c:f.c.length=c;c=I;if(n&&!I)for(a=0,e=l.c.length;a<e;a++){f=l.c[a];if(y)for(b=0,d=C.length;b<d;b++)h=C[b],h.Ac&&(D[b]=h.get(a));b=q?B.apply(f.G[t],D):B.apply(f,D);if(Ra(b,O)){I=!0;break}}m.finish&&m.finish(c||k);return k?
I:l.Fk()};Pb=b;e.prototype.Ca=function(){var a,b,c;a=0;for(b=this.L.length;a<b;a++)c=this.L[a],c.Ca(),c.Ac&&(this.$f=!0)};e.prototype.Fl=function(){var a=this.b,b,c,e=this.L,d=this.wa;b=0;for(c=e.length;b<c;++b)d[b]=e[b].get();return this.Ya.apply(a.bd,d)};e.prototype.El=function(){var a=this.type,b=this.Dc,c=a.pd,e=this.$f,d=this.L,h=this.wa,f=this.Ya,n=a.fa().mc(),a=a.B,m=-1<b,l,k,p,r,s,t;if(e)for(k=0,r=d.length;k<r;++k)s=d[k],s.Ac||(h[k]=s.get(0));else for(k=0,r=d.length;k<r;++k)h[k]=d[k].get(0);
l=0;for(p=n.length;l<p;++l){t=n[l];if(e)for(k=0,r=d.length;k<r;++k)s=d[k],s.Ac&&(h[k]=s.get(l));m?(k=0,a&&(k=t.type.hf[c]),f.apply(t.G[b+k],h)):f.apply(t,h)}return!1};Qb=e;var y=[],r=-1;d.prototype.Ca=function(){var a,b;if(11===this.type)this.Ae=this.b.dn(this.zh,this.Rb.parent);else if(13===this.type)for(a=0,b=this.We.length;a<b;a++)this.We[a].Ca();this.Tc&&this.Tc.Ca()};d.prototype.$s=function(a){this.Ac||!a||a.va.bj||(this.Ac=!0)};d.prototype.Vo=function(){this.Ac=!0};d.prototype.us=function(a){this.Gd=
a||0;a=h();this.Tc.get(a);r--;return a.data};d.prototype.vs=function(a){this.Gd=a||0;a=h();this.Tc.get(a);r--;return R(a.data)?a.data:""};d.prototype.Bs=function(){return this.object};d.prototype.ss=function(){return this.Om};d.prototype.zs=function(a){this.Gd=a||0;a=h();this.Tc.get(a);r--;return a.Ja()?this.b.rd(a.data):this.b.pg(a.data)};d.prototype.As=function(){return this.Sa};d.prototype.ys=function(){return this.key};d.prototype.xs=function(){return this.index};d.prototype.ws=function(a){a=
a||0;var b=this.ja.type,c=null,c=b.fa(),e=c.mc();if(e.length)c=e[a%e.length].type;else if(c.T.length)c=c.T[a%c.T.length].type;else if(b.c.length)c=b.c[a%b.c.length].type;else return 0;return this.index+c.Th[b.pd]};d.prototype.ts=function(){return this.Ae};d.prototype.rs=function(){return this.Ym};d.prototype.Cs=function(){var a,b;a=0;for(b=this.We.length;a<b;a++)this.yh[a]=this.We[a].get();return this.yh};Rb=d;m.prototype.Ca=function(){this.ma=f(this.ma)};m.prototype.Ve=function(a){var b=this.b.cn();
this.parent&&!this.Eg&&b?(this.Qe>=b.length&&(b.length=this.Qe+1),b[this.Qe]=a):this.data=a};m.prototype.rg=function(){var a=this.b.cn();return!this.parent||this.Eg||!a||this.ki?this.data:this.Qe>=a.length||"undefined"===typeof a[this.Qe]?this.gi:a[this.Qe]};m.prototype.Ma=function(){!this.parent||this.Eg||this.ki||this.Ve(this.gi)};Lb=m;s.prototype.toString=function(){return"include:"+this.wg.toString()};s.prototype.Ca=function(){this.wg=this.b.hk[this.Is];this.sheet.pn.add(this);this.ma=f(this.ma);
for(var a=this.parent;a;)a.group&&a.Fh.push(this),a=a.parent;this.rp()};s.prototype.Ma=function(){this.parent&&this.b.jh(this.b.m);this.wg.Gk||this.wg.Ma(!0);this.parent&&this.b.If(this.b.m)};s.prototype.rp=function(){for(var a=this.parent;a;){if(a.group&&!a.tg){this.Qa=!1;return}a=a.parent}this.Qa=!0};Vb=s;n.prototype.reset=function(a){this.Sb=a;this.Eb=this.pb=0;this.fp.length=0;this.fk=this.Me=!1};Kb=n})();
(function(){function k(a,b){this.ja=a;this.b=a.b;this.type=b[0];this.get=[this.Kr,this.Gr,this.Tr,this.Wr,this.wr,this.Ur,this.Or,this.Dr,this.Nr,this.Sr,this.Ar,this.Rr,this.Er,this.Pr,this.Lr,this.Mr,this.Hr,this.Ir,this.Cr,this.Vr,this.Qr,this.Jr,this.Br,this.Fr][this.type];var c=null;this.zd=this.L=this.wa=this.Ya=this.mj=this.Va=this.first=this.value=null;this.Dc=-1;this.Zd=null;this.wp=-1;this.Ae=this.zh=null;this.Lf=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new Tb(a,b[1]);break;case 18:this.first=new Tb(a,b[1]);this.Va=new Tb(a,b[2]);this.mj=new Tb(a,b[3]);break;case 19:this.Ya=this.b.Md(b[1]);this.Ya!==Y.prototype.fb.random&&this.Ya!==Y.prototype.fb.Sq||this.ja.Vo();this.wa=[];this.L=[];3===b.length?(c=b[2],this.wa.length=c.length+1):this.wa.length=1;break;case 20:this.zd=this.b.m[b[1]];this.Dc=-1;this.Ya=this.b.Md(b[2]);this.Lf=b[3];Xb.Function&&this.Ya===Xb.Function.prototype.fb.qu&&this.ja.Vo();this.Zd=b[4]?new Tb(a,b[4]):null;this.wa=[];this.L=
[];6===b.length?(c=b[5],this.wa.length=c.length+1):this.wa.length=1;break;case 21:this.zd=this.b.m[b[1]];this.Lf=b[2];this.Zd=b[3]?new Tb(a,b[3]):null;this.wp=b[4];break;case 22:this.zd=this.b.m[b[1]];this.zd.Zh(b[2]);this.Dc=this.zd.sk(b[2]);this.Ya=this.b.Md(b[3]);this.Lf=b[4];this.Zd=b[5]?new Tb(a,b[5]):null;this.wa=[];this.L=[];7===b.length?(c=b[6],this.wa.length=c.length+1):this.wa.length=1;break;case 23:this.zh=b[1],this.Ae=null}this.ja.$s(this.zd);4<=this.type&&17>=this.type&&(this.first=new Tb(a,
b[1]),this.Va=new Tb(a,b[2]));if(c){var h,d;h=0;for(d=c.length;h<d;h++)this.L.push(new Tb(a,c[h]))}}function p(){++c;l.length===c&&l.push(new Sb);return l[c]}function f(a,b,c){var h,d;h=0;for(d=a.length;h<d;++h)a[h].get(c),b[h+1]=c.data}function q(a,b){this.type=a||W.Ze;this.data=b||0;this.Re=null;this.type==W.Ze&&(this.data=Math.floor(this.data))}k.prototype.Ca=function(){23===this.type&&(this.Ae=this.ja.b.dn(this.zh,this.ja.Rb.parent));this.first&&this.first.Ca();this.Va&&this.Va.Ca();this.mj&&
this.mj.Ca();this.Zd&&this.Zd.Ca();if(this.L){var a,b;a=0;for(b=this.L.length;a<b;a++)this.L[a].Ca()}};var l=[],c=-1;k.prototype.Vr=function(a){var b=this.L,e=this.wa;e[0]=a;a=p();f(b,e,a);--c;this.Ya.apply(this.b.bd,e)};k.prototype.Qr=function(a){var b=this.zd,e=this.wa,h=this.L,d=this.Zd,m=this.Ya,l=this.ja.Gd,n=b.fa(),k=n.mc();if(!k.length)if(n.T.length)k=n.T;else{this.Lf?a.mb(""):a.ca(0);return}e[0]=a;a.Re=b;a=p();f(h,e,a);d&&(d.get(a),a.Ja()&&(l=a.data,k=b.c));--c;b=k.length;if(l>=b||l<=-b)l%=
b;0>l&&(l+=b);m.apply(k[l],e)};k.prototype.Br=function(a){var b=this.zd,e=this.wa,h=this.L,d=this.Zd,l=this.Dc,k=this.Ya,n=this.ja.Gd,t=b.fa(),q=t.mc();if(!q.length)if(t.T.length)q=t.T;else{this.Lf?a.mb(""):a.ca(0);return}e[0]=a;a.Re=b;a=p();f(h,e,a);d&&(d.get(a),a.Ja()&&(n=a.data,q=b.c));--c;h=q.length;if(n>=h||n<=-h)n%=h;0>n&&(n+=h);n=q[n];q=0;b.B&&(q=n.type.hf[b.pd]);k.apply(n.G[l+q],e)};k.prototype.Jr=function(a){var b=this.Zd,e=this.zd,h=this.wp,d=this.ja.Gd,f=e.fa(),l=f.mc();if(!l.length)if(f.T.length)l=
f.T;else{this.Lf?a.mb(""):a.ca(0);return}if(b){f=p();b.get(f);if(f.Ja()){d=f.data;e=e.c;d%=e.length;0>d&&(d+=e.length);h=e[d].Ia[h];R(h)?a.mb(h):a.u(h);--c;return}--c}b=l.length;if(d>=b||d<=-b)d%=b;0>d&&(d+=b);d=l[d];l=0;e.B&&(l=d.type.Th[e.pd]);h=d.Ia[h+l];R(h)?a.mb(h):a.u(h)};k.prototype.Kr=function(a){a.type=W.Ze;a.data=this.value};k.prototype.Gr=function(a){a.type=W.Ye;a.data=this.value};k.prototype.Tr=function(a){a.type=W.String;a.data=this.value};k.prototype.Wr=function(a){this.first.get(a);
a.Ja()&&(a.data=-a.data)};k.prototype.wr=function(a){this.first.get(a);var b=p();this.Va.get(b);a.Ja()&&b.Ja()&&(a.data+=b.data,b.qf()&&a.zf());--c};k.prototype.Ur=function(a){this.first.get(a);var b=p();this.Va.get(b);a.Ja()&&b.Ja()&&(a.data-=b.data,b.qf()&&a.zf());--c};k.prototype.Or=function(a){this.first.get(a);var b=p();this.Va.get(b);a.Ja()&&b.Ja()&&(a.data*=b.data,b.qf()&&a.zf());--c};k.prototype.Dr=function(a){this.first.get(a);var b=p();this.Va.get(b);a.Ja()&&b.Ja()&&(a.data/=b.data,a.zf());
--c};k.prototype.Nr=function(a){this.first.get(a);var b=p();this.Va.get(b);a.Ja()&&b.Ja()&&(a.data%=b.data,b.qf()&&a.zf());--c};k.prototype.Sr=function(a){this.first.get(a);var b=p();this.Va.get(b);a.Ja()&&b.Ja()&&(a.data=Math.pow(a.data,b.data),b.qf()&&a.zf());--c};k.prototype.Ar=function(a){this.first.get(a);var b=p();this.Va.get(b);a.Ja()?b.mi()?a.mb(a.data.toString()+b.data):a.data&&b.data?a.ca(1):a.ca(0):a.mi()&&(a.data=b.mi()?a.data+b.data:a.data+(Math.round(1E10*b.data)/1E10).toString());--c};
k.prototype.Rr=function(a){this.first.get(a);var b=p();this.Va.get(b);a.Ja()&&b.Ja()&&(a.data||b.data?a.ca(1):a.ca(0));--c};k.prototype.Cr=function(a){this.first.get(a);a.data?this.Va.get(a):this.mj.get(a)};k.prototype.Er=function(a){this.first.get(a);var b=p();this.Va.get(b);a.ca(a.data===b.data?1:0);--c};k.prototype.Pr=function(a){this.first.get(a);var b=p();this.Va.get(b);a.ca(a.data!==b.data?1:0);--c};k.prototype.Lr=function(a){this.first.get(a);var b=p();this.Va.get(b);a.ca(a.data<b.data?1:0);
--c};k.prototype.Mr=function(a){this.first.get(a);var b=p();this.Va.get(b);a.ca(a.data<=b.data?1:0);--c};k.prototype.Hr=function(a){this.first.get(a);var b=p();this.Va.get(b);a.ca(a.data>b.data?1:0);--c};k.prototype.Ir=function(a){this.first.get(a);var b=p();this.Va.get(b);a.ca(a.data>=b.data?1:0);--c};k.prototype.Fr=function(a){var b=this.Ae.rg();P(b)?a.u(b):a.mb(b)};Tb=k;q.prototype.qf=function(){return this.type===W.Ye};q.prototype.Ja=function(){return this.type===W.Ze||this.type===W.Ye};q.prototype.mi=
function(){return this.type===W.String};q.prototype.zf=function(){this.qf()||(this.mi()&&(this.data=parseFloat(this.data)),this.type=W.Ye)};q.prototype.ca=function(a){this.type=W.Ze;this.data=Math.floor(a)};q.prototype.u=function(a){this.type=W.Ye;this.data=a};q.prototype.mb=function(a){this.type=W.String;this.data=a};q.prototype.Vt=function(a){P(a)?(this.type=W.Ye,this.data=a):R(a)?(this.type=W.String,this.data=a.toString()):(this.type=W.Ze,this.data=0)};Sb=q;W={Ze:0,Ye:1,String:2}})();
function Y(k){this.b=k;this.Cb=[]}Y.prototype.zb=function(){var k={},p,f,q,l,c,a,b,e;k.waits=[];var h=k.waits,d;p=0;for(f=this.Cb.length;p<f;p++){a=this.Cb[p];d={t:a.time,st:a.bp,s:a.Kl,ev:a.gf.R,sm:[],sols:{}};a.gf.Bc[a.Eb]&&(d.act=a.gf.Bc[a.Eb].R);q=0;for(l=a.ma.length;q<l;q++)d.sm.push(a.ma[q].R);for(c in a.nb)if(a.nb.hasOwnProperty(c)){b=this.b.m[parseInt(c,10)];e={sa:a.nb[c].Yi,insts:[]};q=0;for(l=a.nb[c].sd.length;q<l;q++)e.insts.push(a.nb[c].sd[q].uid);d.sols[b.R.toString()]=e}h.push(d)}return k};
Y.prototype.Zb=function(k){k=k.waits;var p,f,q,l,c,a,b,e,h,d,m;p=this.Cb.length=0;for(f=k.length;p<f;p++)if(a=k[p],e=this.b.Hm[a.ev.toString()]){h=-1;q=0;for(l=e.Bc.length;q<l;q++)if(e.Bc[q].R===a.act){h=q;break}if(-1!==h){b={nb:{},ma:[],ck:!1};b.time=a.t;b.bp=a.st||"";b.Kl=!!a.s;b.gf=e;b.Eb=h;q=0;for(l=a.sm.length;q<l;q++)(e=this.b.bi(a.sm[q]))&&b.ma.push(e);for(c in a.sols)if(a.sols.hasOwnProperty(c)&&(e=this.b.bi(parseInt(c,10)))){h=a.sols[c];d={Yi:h.sa,sd:[]};q=0;for(l=h.insts.length;q<l;q++)(m=
this.b.ai(h.insts[q]))&&d.sd.push(m);b.nb[e.index.toString()]=d}this.Cb.push(b)}}};
(function(){function k(){}function p(){}function f(){}var q=Y.prototype;k.prototype.im=function(){return!0};k.prototype.mq=function(){return!0};k.prototype.Dp=function(a,b,c){return Wb(a,b,c)};k.prototype.yq=function(){var a=this.b.tk().ua;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var b=a.TriggerOnce_lastTick,c=this.b.Sf;a.TriggerOnce_lastTick=c;return this.b.Xk||b!==c-1};k.prototype.Fp=function(a,b,c){return Wb(a.rg(),b,c)};k.prototype.Hp=function(){var a=this.b.rb();
return a.fk?!1:!a.Me};k.prototype.jm=function(){return!0};k.prototype.Xp=function(){return!0};k.prototype.Cj=function(){return!0};k.prototype.nq=function(){return!0};k.prototype.Aj=function(){return!0};k.prototype.zp=function(a,b,c){return Ia(V(a),V(c))<=V(b)};k.prototype.Kp=function(a,b){return Ka(V(a),V(b))};k.prototype.Ip=function(a,b,c){a=Fa(a);b=Fa(b);c=Fa(c);return Ka(c,b)?Ka(a,b)&&!Ka(a,c):!(!Ka(a,b)&&Ka(a,c))};q.e=new k;p.prototype.Sp=function(a){if(!this.b.tf&&!this.b.re){var b=this.b.Kb.indexOf(this.b.ba);
if(!a||0!==b)if(a||b!==this.b.Kb.length-1)this.b.re=this.b.Kb[b+(a?-1:1)]}};p.prototype.xq=function(a,b){0===a.vj?P(b)?a.Ve(b):a.Ve(parseFloat(b)):1===a.vj&&a.Ve(b.toString())};p.prototype.yp=function(a,b){0===a.vj?P(b)?a.Ve(a.rg()+b):a.Ve(a.rg()+parseFloat(b)):1===a.vj&&a.Ve(a.rg()+b.toString())};var l=[],c=[];p.prototype.zq=function(a){if(!(0>a)){var b,e,h,d=this.b.rb(),f;f=l.length?l.pop():{nb:{},ma:[]};f.ck=!1;f.time=this.b.Xb.da+a;f.bp="";f.Kl=!1;f.gf=d.Sb;f.Eb=d.Eb+1;a=0;for(b=this.b.m.length;a<
b;a++)h=this.b.m[a],e=h.fa(),e.ka&&-1===d.Sb.ma.indexOf(h)||(f.ma.push(h),h=void 0,h=c.length?c.pop():{sd:[]},h.Yi=!1,h.Yi=e.ka,xa(h.sd,e.c),f.nb[a.toString()]=h);this.Cb.push(f);return!0}};p.prototype.sq=function(){var a,b,c;a=0;for(b=this.b.Gj.length;a<b;a++)c=this.b.Gj[a],c.data=c.gi};p.prototype.tq=function(){if(!this.b.tf&&!this.b.re&&this.b.ba){this.b.re=this.b.ba;var a,b,c;a=0;for(b=this.b.Pd.length;a<b;a++)c=this.b.Pd[a],c.To(c.hi)}};p.prototype.uq=function(a){this.b.Zi=a};p.prototype.Rp=
function(a){this.b.Mg=a};q.la=new p;f.prototype["int"]=function(a,b){R(b)?(a.ca(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.ca(b)};f.prototype["float"]=function(a,b){R(b)?(a.u(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.u(b)};f.prototype.Vs=function(a,b){a.ca(b.length||0)};f.prototype.random=function(a,b,c){void 0===c?a.u(Math.random()*b):a.u(Math.random()*(c-b)+b)};f.prototype.sqrt=function(a,b){a.u(Math.sqrt(b))};f.prototype.abs=function(a,b){a.u(Math.abs(b))};f.prototype.round=function(a,b){a.ca(Math.round(b))};
f.prototype.floor=function(a,b){a.ca(Math.floor(b))};f.prototype.ceil=function(a,b){a.ca(Math.ceil(b))};f.prototype.sin=function(a,b){a.u(Math.sin(V(b)))};f.prototype.cos=function(a,b){a.u(Math.cos(V(b)))};f.prototype.tan=function(a,b){a.u(Math.tan(V(b)))};f.prototype.asin=function(a,b){a.u(Ba(Math.asin(b)))};f.prototype.acos=function(a,b){a.u(Ba(Math.acos(b)))};f.prototype.atan=function(a,b){a.u(Ba(Math.atan(b)))};f.prototype.exp=function(a,b){a.u(Math.exp(b))};f.prototype.log10=function(a,b){a.u(Math.log(b)/
Math.LN10)};f.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,h,d;c=2;for(h=arguments.length;c<h;c++)d=arguments[c],"number"===typeof d&&b<d&&(b=d);a.u(b)};f.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,h,d;c=2;for(h=arguments.length;c<h;c++)d=arguments[c],"number"===typeof d&&b>d&&(b=d);a.u(b)};f.prototype.xe=function(a){a.u(this.b.xe)};f.prototype.Tf=function(a){a.u(this.b.Tf)};f.prototype.time=function(a){a.u(this.b.Xb.da)};f.prototype.Sf=
function(a){a.ca(this.b.Sf)};f.prototype.Fi=function(a){a.ca(this.b.Fi)};f.prototype.ok=function(a){a.ca(this.b.ok)};f.prototype.j=function(a,b,c,h,d){a.u(Ba(Ga(b,c,h,d)))};f.prototype.find=function(a,b,c){R(b)&&R(c)?a.ca(b.search(new RegExp(Za(c),"i"))):a.ca(-1)};f.prototype.left=function(a,b,c){a.mb(R(b)?b.substr(0,c):"")};f.prototype.right=function(a,b,c){a.mb(R(b)?b.substr(b.length-c):"")};f.prototype.replace=function(a,b,c,h){R(b)&&R(c)&&R(h)?a.mb(b.replace(new RegExp(Za(c),"gi"),h)):a.mb(R(b)?
b:"")};f.prototype.trim=function(a,b){a.mb(R(b)?b.trim():"")};f.prototype.Sq=function(a){var b=T(Math.random()*(arguments.length-1));a.Vt(arguments[b+1])};f.prototype.Xj=function(a){a.u(this.b.Xj/1E3)};f.prototype.Ai=function(a){a.u(this.b.Ai)};q.fb=new f;q.Kt=function(){var a,b,e,h,d,f,k=this.b.rb();a=0;for(e=this.Cb.length;a<e;a++){h=this.Cb[a];if(-1===h.time){if(!h.Kl)continue}else if(h.time>this.b.Xb.da)continue;k.Sb=h.gf;k.Eb=h.Eb;k.pb=0;for(b in h.nb)h.nb.hasOwnProperty(b)&&(d=this.b.m[parseInt(b,
10)].fa(),f=h.nb[b],d.ka=f.Yi,xa(d.c,f.sd),d=f,d.sd.length=0,c.push(d));h.gf.Jt();this.b.Vj(h.ma);h.ck=!0}b=a=0;for(e=this.Cb.length;a<e;a++)h=this.Cb[a],this.Cb[b]=h,h.ck?(Ta(h.nb),h.ma.length=0,l.push(h)):b++;this.Cb.length=b}})();
(function(){ib=function(k,f){var q=k[1],l=k[3],c=k[4],a=k[5],b=k[6],e=k[7],h=k[8];f.e||(f.e={});f.la||(f.la={});f.fb||(f.fb={});var d=f.e,m=f.la,s=f.fb;l&&(d.vu=function(a,b){return Wb(this.x,a,b)},d.wu=function(a,b){return Wb(this.y,a,b)},d.Cu=function(){var a=this.d;this.Wa();var b=this.Xa;return!(b.right<a.ya||b.bottom<a.za||b.left>a.Ga||b.top>a.Fa)},d.Du=function(){this.Wa();var a=this.Xa,b=this.b.ba;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},d.Ou=function(a,b,c){var d=this.fa(),
e=d.mc();if(!e.length)return!1;var h=e[0],f=h,l=Qa(h.x,h.y,b,c),m,k,p;m=1;for(k=e.length;m<k;m++)if(h=e[m],p=Qa(h.x,h.y,b,c),0===a&&p<l||1===a&&p>l)l=p,f=h;d.hh(f);return!0},m.iv=function(a){this.x!==a&&(this.x=a,this.xa())},m.jv=function(a){this.y!==a&&(this.y=a,this.xa())},m.bv=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.xa()},m.cv=function(a,b){var c=a.ms(this);if(c){var d;c.xk?(d=c.xk(b,!0),c=c.xk(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.xa()}},
m.Hu=function(a){0!==a&&(this.x+=Math.cos(this.j)*a,this.y+=Math.sin(this.j)*a,this.xa())},m.Gu=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.xa())},s.pm=function(a){a.u(this.x)},s.qm=function(a){a.u(this.y)},s.xe=function(a){a.u(this.b.uk(this))});c&&(d.uu=function(a,b){return Wb(this.width,a,b)},d.ru=function(a,b){return Wb(this.height,a,b)},m.hv=function(a){this.width!==a&&(this.width=a,this.xa())},m.$u=function(a){this.height!==a&&(this.height=a,this.xa())},m.dv=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.xa()},s.nv=function(a){a.u(this.width)},s.yu=function(a){a.u(this.height)},s.nu=function(a){this.Wa();a.u(this.Xa.left)},s.pu=function(a){this.Wa();a.u(this.Xa.top)},s.ou=function(a){this.Wa();a.u(this.Xa.right)},s.mu=function(a){this.Wa();a.u(this.Xa.bottom)});a&&(d.zp=function(a,b){return Ia(this.j,V(b))<=V(a)},d.Kp=function(a){return Ka(this.j,V(a))},d.Ip=function(a,b){var c=Fa(a),d=Fa(b),e=Da(this.j);return Ka(d,
c)?Ka(e,c)&&!Ka(e,d):!(!Ka(e,c)&&Ka(e,d))},m.Wu=function(a){a=V(Ca(a));isNaN(a)||this.j===a||(this.j=a,this.xa())},m.Su=function(a){0===a||isNaN(a)||(this.j+=V(a),this.j=Da(this.j),this.xa())},m.Tu=function(a){0===a||isNaN(a)||(this.j-=V(a),this.j=Da(this.j),this.xa())},m.Uu=function(a,b){var c=Ja(this.j,V(b),V(a));isNaN(c)||this.j===c||(this.j=c,this.xa())},m.Vu=function(a,b,c){a=Ja(this.j,Math.atan2(c-this.y,b-this.x),V(a));isNaN(a)||this.j===a||(this.j=a,this.xa())},m.gv=function(a,b){var c=Math.atan2(b-
this.y,a-this.x);isNaN(c)||this.j===c||(this.j=c,this.xa())},s.lu=function(a){a.u(Ea(this.j))});q||(d.su=function(a,b,c){return Wb(this.Ia[a],b,c)},d.Au=function(a){return this.Ia[a]},d.Pu=function(a,b){var c=this.fa(),d=c.mc();if(!d.length)return!1;var e=d[0],h=e,f=e.Ia[b],l,m,k;l=1;for(m=d.length;l<m;l++)if(e=d[l],k=e.Ia[b],0===a&&k<f||1===a&&k>f)f=k,h=e;c.hh(h);return!0},d.Nu=function(a){var b,c,d,e,h;if(this.b.tk().yg){h=this.fa();if(h.ka)for(h.ka=!1,h.c.length=0,h.T.length=0,d=this.c,b=0,c=d.length;b<
c;b++)e=d[b],e.uid===a?h.T.push(e):h.c.push(e);else{d=b=0;for(c=h.c.length;b<c;b++)e=h.c[b],h.c[d]=e,e.uid===a?h.T.push(e):d++;h.c.length=d}this.hd();return!!h.c.length}e=this.b.ai(a);if(!e)return!1;h=this.fa();if(!h.ka&&-1===h.c.indexOf(e))return!1;if(this.B)for(a=e.type.pa,b=0,c=a.length;b<c;b++){if(a[b]===this)return h.hh(e),this.hd(),!0}else if(e.type===this)return h.hh(e),this.hd(),!0;return!1},d.Zp=function(){return!0},d.$p=function(){return!0},m.av=function(a,b){var c=this.Ia;P(c[a])?c[a]=
P(b)?b:parseFloat(b):R(c[a])&&(c[a]=R(b)?b:b.toString())},m.ku=function(a,b){var c=this.Ia;P(c[a])?c[a]=P(b)?c[a]+b:c[a]+parseFloat(b):R(c[a])&&(c[a]=R(b)?c[a]+b:c[a]+b.toString())},m.kv=function(a,b){var c=this.Ia;P(c[a])&&(c[a]=P(b)?c[a]-b:c[a]-parseFloat(b))},m.Xu=function(a,b){this.Ia[a]=b?1:0},m.lv=function(a){this.Ia[a]=1-this.Ia[a]},m.Gp=function(){this.b.Ld(this)},m.Qp||(m.Qp=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.wi(this,b,!0);this.fd&&this.fd();if(this.G)for(a=0,
b=this.G.length;a<b;++a)c=this.G[a],c.fd&&c.fd()}),s.xu=function(a){var b=a.Re.c.length,c,d,e;c=0;for(d=this.b.Rc.length;c<d;c++)e=this.b.Rc[c],a.Re.B?0<=e.type.pa.indexOf(a.Re)&&b++:e.type===a.Re&&b++;a.ca(b)},s.Ru=function(a){a.ca(a.Re.fa().mc().length)},s.mv=function(a){a.ca(this.uid)},s.zu=function(a){a.ca(this.sg())},s.Ap||(s.Ap=function(a){a.mb(JSON.stringify(this.b.Gl(this,!0)))}));b&&(d.Op=function(){return this.visible},m.Ej=function(a){!a!==!this.visible&&(this.visible=a,this.b.ha=!0)},
d.tu=function(a,b){return Wb(eb(100*this.opacity),a,b)},m.wq=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ha=!0)},s.Opacity=function(a){a.u(eb(100*this.opacity))});e&&(d.Bu=function(a){return a?this.d===a:!1},d.Qu=function(a){var b=this.fa(),c=b.mc();if(!c.length)return!1;var d=c[0],e=d,h,f;h=1;for(f=c.length;h<f;h++)if(d=c[h],0===a){if(d.d.index>e.d.index||d.d.index===e.d.index&&d.nc()>e.nc())e=d}else if(d.d.index<e.d.index||d.d.index===e.d.index&&d.nc()<e.nc())e=
d;b.hh(e);return!0},m.Ku=function(){var a=this.d,b=a.c;b.length&&b[b.length-1]===this||(a.Kf(this,!1),a.bg(this,!1),this.b.ha=!0)},m.Iu=function(){var a=this.d,b=a.c;b.length&&b[0]===this||(a.Kf(this,!1),a.Bt(this),this.b.ha=!0)},m.Ju=function(a){a&&a!=this.d&&(this.d.Kf(this,!0),this.d=a,a.bg(this,!0),this.b.ha=!0)},m.pv=function(a,b){var c=0===a;if(b){var d=b.gs(this);d&&d.uid!==this.uid&&(this.d.index!==d.d.index&&(this.d.Kf(this,!0),this.d=d.d,d.d.bg(this,!0)),this.d.ct(this,d,c),this.b.ha=!0)}},
s.Fu=function(a){a.ca(this.d.no)},s.Eu=function(a){a.mb(this.d.name)},s.ov=function(a){a.ca(this.nc())});h&&(m.Yu=function(a,b){if(this.b.n){var c=this.type.wk(b);if(!(0>c)){var d=1===a;this.Nd[c]!==d&&(this.Nd[c]=d,this.Jd(),this.b.ha=!0)}}},m.Zu=function(a,b,c){if(this.b.n){var d=this.type.wk(a);0>d||(a=this.type.H[d],d=this.ta[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.n.qs(a.ab,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Qa&&(this.b.ha=!0))))}})};Cb=function(){this.Qj=this.Bh=!0;this.type.Am=!0;this.b.ha=
!0;var k,f,q=this.Mj;k=0;for(f=q.length;k<f;++k)q[k](this);this.d.Lc&&this.Wa()};Db=function(k){k&&this.Mj.push(k)};Fb=function(){if(this.Bh){var k=this.Xa,f=this.df;k.set(this.x,this.y,this.x+this.width,this.y+this.height);k.offset(-this.tb*this.width,-this.ub*this.height);this.j?(k.offset(-this.x,-this.y),f.Wo(k,this.j),f.offset(this.x,this.y),f.Im(k)):f.ph(k);k.normalize();this.Bh=!1;this.gu()}};var k=new U(0,0,0,0);Gb=function(){if(this.d.Lc){var p=this.d.Mb,f=this.Xa;k.set(p.Pb(f.left),p.Qb(f.top),
p.Pb(f.right),p.Qb(f.bottom));this.xb.Qh(k)||(this.xb.right<this.xb.left?p.update(this,null,k):p.update(this,this.xb,k),this.xb.Hh(k),this.d.Dd=!0)}};Hb=function(){if(this.Qj&&this.gg){this.Wa();var p=this.type.Nm,f=this.Xa;k.set(p.Pb(f.left),p.Qb(f.top),p.Pb(f.right),p.Qb(f.bottom));this.Sd.Qh(k)||(this.Sd.right<this.Sd.left?p.update(this,null,k):p.update(this,this.Sd,k),this.Sd.Hh(k),this.Qj=!1)}};Eb=function(k,f){return this.Xa.Hb(k,f)&&this.df.Hb(k,f)?this.Qc&&!this.Qc.Ss()?(this.Qc.Pq(this.width,
this.height,this.j),this.Qc.Hb(k-this.x,f-this.y)):!0:!1};yb=function(){this.type.tj();return this.Fe};Ib=function(){this.d.Yl();return this.Nc};Jb=function(){this.X.length=0;var k,f;k=0;for(f=this.Nd.length;k<f;k++)this.Nd[k]&&this.X.push(this.type.H[k]);this.vp=!!this.X.length};zb=function(){return"Inst"+this.Ko};lb=function(k){if(k&&k.Fc&&k.type!=this){var f,q,l;f=0;for(q=k.siblings.length;f<q;f++)if(l=k.siblings[f],l.type==this)return l}k=this.fa().mc();return k.length?k[0]:null};mb=function(k){var f=
this.fa().mc();return f.length?f[k.sg()%f.length]:null};kb=function(){if(this.Qf&&!this.B){var k,f;k=0;for(f=this.c.length;k<f;k++)this.c[k].Fe=k;var q=k,l=this.b.Rc;k=0;for(f=l.length;k<f;++k)l[k].type===this&&(l[k].Fe=q++);this.Qf=!1}};wb=function(k){if(k<this.c.length)return this.c[k];k-=this.c.length;var f=this.b.Rc,q,l;q=0;for(l=f.length;q<l;++q)if(f[q].type===this){if(0===k)return f[q];--k}return null};nb=function(){return this.ie[this.nd]};ob=function(){this.nd++;this.nd===this.ie.length?this.ie.push(new jb(this)):
this.ie[this.nd].ka=!0};pb=function(){this.nd++;this.nd===this.ie.length&&this.ie.push(new jb(this));var k=this.ie[this.nd],f=this.ie[this.nd-1];f.ka?k.ka=!0:(k.ka=!1,xa(k.c,f.c),xa(k.T,f.T))};rb=function(){this.nd--};sb=function(k){var f,q,l,c,a,b=0;if(!this.B)for(f=0,q=this.pa.length;f<q;f++)for(a=this.pa[f],l=0,c=a.Da.length;l<c;l++){if(k===a.Da[l].name)return this.ua.lastBehIndex=b,a.Da[l];b++}f=0;for(q=this.Da.length;f<q;f++){if(k===this.Da[f].name)return this.ua.lastBehIndex=b,this.Da[f];b++}return null};
tb=function(k){return this.Zh(k)?this.ua.lastBehIndex:-1};ub=function(k){var f,q;f=0;for(q=this.H.length;f<q;f++)if(this.H[f].name===k)return f;return-1};vb=function(){if(this.Fc&&!this.B){var k,f,q,l,c,a,b;this.tj();a=this.fa();var e=a.ka,h=(k=this.b.rb())&&k.Sb&&k.Sb.Wc;k=0;for(f=this.Gb.length;k<f;k++)if(c=this.Gb[k],c!==this&&(c.tj(),b=c.fa(),b.ka=e,!e)){b.c.length=a.c.length;q=0;for(l=a.c.length;q<l;q++)b.c[q]=c.en(a.c[q].Fe);if(h)for(b.T.length=a.T.length,q=0,l=a.T.length;q<l;q++)b.T[q]=c.en(a.T[q].Fe)}}};
xb=function(){return"Type"+this.R};Wb=function(k,f,q){if("undefined"===typeof k||"undefined"===typeof q)return!1;switch(f){case 0:return k===q;case 1:return k!==q;case 2:return k<q;case 3:return k<=q;case 4:return k>q;case 5:return k>=q;default:return!1}}})();var ec={};function hc(k){this.b=k}
(function(){function k(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function p(a){a=a.toLowerCase();return S.hasOwnProperty(a)&&S[a].length?S[a][0].Tb():x.destination}function f(){return x.createGain?x.createGain():x.createGainNode()}function q(a){return x.createDelay?x.createDelay(a):x.createDelayNode(a)}function l(a){a.start?a.start(0):a.noteOn(0)}function c(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function a(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function b(a,
b,c,d,e,g){this.type="filter";this.Hc=[a,b,c,d,e,g];this.S=f();this.F=f();this.F.gain.value=g;this.C=f();this.C.gain.value=1-g;this.Ea=x.createBiquadFilter();this.Ea.type="number"===typeof this.Ea.type?a:pc[a];this.Ea.frequency.value=b;this.Ea.detune&&(this.Ea.detune.value=c);this.Ea.Q.value=d;this.Ea.gain.value=e;this.S.connect(this.Ea);this.S.connect(this.C);this.Ea.connect(this.F)}function e(a,b,c){this.type="delay";this.Hc=[a,b,c];this.S=f();this.F=f();this.F.gain.value=c;this.C=f();this.C.gain.value=
1-c;this.Vg=f();this.jc=q(a);this.jc.delayTime.value=a;this.Oh=f();this.Oh.gain.value=b;this.S.connect(this.Vg);this.S.connect(this.C);this.Vg.connect(this.F);this.Vg.connect(this.jc);this.jc.connect(this.Oh);this.Oh.connect(this.Vg)}function h(a,b,c,d){this.type="convolve";this.Hc=[b,c,d];this.S=f();this.F=f();this.F.gain.value=c;this.C=f();this.C.gain.value=1-c;this.se=x.createConvolver();a&&(this.se.normalize=b,this.se.buffer=a);this.S.connect(this.se);this.S.connect(this.C);this.se.connect(this.F)}
function d(a,b,c,d,e){this.type="flanger";this.Hc=[a,b,c,d,e];this.S=f();this.C=f();this.C.gain.value=1-e/2;this.F=f();this.F.gain.value=e/2;this.Uh=f();this.Uh.gain.value=d;this.jc=q(a+b);this.jc.delayTime.value=a;this.Ua=x.createOscillator();this.Ua.frequency.value=c;this.Lb=f();this.Lb.gain.value=b;this.S.connect(this.jc);this.S.connect(this.C);this.jc.connect(this.F);this.jc.connect(this.Uh);this.Uh.connect(this.jc);this.Ua.connect(this.Lb);this.Lb.connect(this.jc.delayTime);l(this.Ua)}function m(a,
b,c,d,e,g){this.type="phaser";this.Hc=[a,b,c,d,e,g];this.S=f();this.C=f();this.C.gain.value=1-g/2;this.F=f();this.F.gain.value=g/2;this.Ea=x.createBiquadFilter();this.Ea.type="number"===typeof this.Ea.type?7:"allpass";this.Ea.frequency.value=a;this.Ea.detune&&(this.Ea.detune.value=b);this.Ea.Q.value=c;this.Ua=x.createOscillator();this.Ua.frequency.value=e;this.Lb=f();this.Lb.gain.value=d;this.S.connect(this.Ea);this.S.connect(this.C);this.Ea.connect(this.F);this.Ua.connect(this.Lb);this.Lb.connect(this.Ea.frequency);
l(this.Ua)}function s(a){this.type="gain";this.Hc=[a];this.V=f();this.V.gain.value=a}function n(a,b){this.type="tremolo";this.Hc=[a,b];this.V=f();this.V.gain.value=1-b/2;this.Ua=x.createOscillator();this.Ua.frequency.value=a;this.Lb=f();this.Lb.gain.value=b/2;this.Ua.connect(this.Lb);this.Lb.connect(this.V.gain);l(this.Ua)}function t(a,b){this.type="ringmod";this.Hc=[a,b];this.S=f();this.F=f();this.F.gain.value=b;this.C=f();this.C.gain.value=1-b;this.mh=f();this.mh.gain.value=0;this.Ua=x.createOscillator();
this.Ua.frequency.value=a;this.Ua.connect(this.mh.gain);l(this.Ua);this.S.connect(this.mh);this.S.connect(this.C);this.mh.connect(this.F)}function y(a,b,c,d,e){this.type="distortion";this.Hc=[a,b,c,d,e];this.S=f();this.Si=f();this.Ri=f();this.Rt(c,Math.pow(10,d/20));this.F=f();this.F.gain.value=e;this.C=f();this.C.gain.value=1-e;this.wj=x.createWaveShaper();this.Mh=new Float32Array(65536);this.cs(a,b);this.wj.Mh=this.Mh;this.S.connect(this.Si);this.S.connect(this.C);this.Si.connect(this.wj);this.wj.connect(this.Ri);
this.Ri.connect(this.F)}function r(a,b,c,d,e){this.type="compressor";this.Hc=[a,b,c,d,e];this.V=x.createDynamicsCompressor();try{this.V.threshold.value=a,this.V.knee.value=b,this.V.ratio.value=c,this.V.attack.value=d,this.V.release.value=e}catch(g){}}function g(a,b){this.type="analyser";this.Hc=[a,b];this.V=x.createAnalyser();this.V.fftSize=a;this.V.smoothingTimeConstant=b;this.as=new Float32Array(this.V.frequencyBinCount);this.Zo=new Uint8Array(a);this.gh=0}function w(){this.D=null;this.yi=0;this.je=
[];this.hl=this.qi=this.pi=0}function F(a,b){this.src=a;this.J=G;this.Gc=b;this.xm=!1;var c=this;this.fl=this.rl=null;this.Gf=[];this.$i=0;this.em=this.kk=this.ep=this.Oi=!1;1===G&&b&&(this.J=0,this.rl=f());this.pe=this.Y=null;var d;switch(this.J){case 0:this.Y=new Audio;this.Y.addEventListener("canplaythrough",function(){c.em=!0});1===G&&x.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.ep=!0,this.Y.addEventListener("canplay",function(){c.fl||(c.fl=x.createMediaElementSource(c.Y),
c.fl.connect(c.rl))}));this.Y.autoplay=!1;this.Y.xv="auto";this.Y.src=a;break;case 1:d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType="arraybuffer";d.onload=function(){c.pe=d.response;c.Xq()};d.onerror=function(){c.kk=!0};d.send();break;case 2:this.Y=!0;break;case 3:this.Y=!0}}function u(a,b){var c=this;this.tag=b;this.Ob=this.Uc=!0;this.src=a.src;this.buffer=a;this.J=G;this.Gc=a.Gc;this.playbackRate=1;this.Wj=!0;this.qc=this.Ed=!1;this.yb=0;this.Dg=this.rf=this.Vc=!1;this.volume=1;this.Je=
1===D&&!this.Gc||2===D;this.Af=1;this.startTime=this.Je?z.Xb.da:z.ed.da;this.Ba=this.Ha=null;this.Xc=!1;this.Aa=null;this.xo=this.wo=this.vo=this.uo=this.zo=this.yo=0;this.i=null;var d=!1;1!==this.J||0!==this.buffer.J||this.buffer.ep||(this.J=0);switch(this.J){case 0:this.Gc?(this.i=a.Y,d=!a.xm,a.xm=!0):(this.i=new Audio,this.i.autoplay=!1,this.i.src=a.Y.src,d=!0);d&&this.i.addEventListener("ended",function(){ha=c.tag;c.Ob=!0;z.trigger(hc.prototype.e.zj,M)});break;case 1:this.Ha=f();this.Ha.connect(p(b));
1===this.buffer.J?a.Y&&(this.i=x.createBufferSource(),this.i.buffer=a.Y,this.i.connect(this.Ha)):(this.i=this.buffer.Y,this.buffer.rl.connect(this.Ha));break;case 2:this.i=new window.Media(X+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.Wj=!0,c.Ob=!0,ha=c.tag,z.trigger(hc.prototype.e.zj,M))});break;case 3:this.i=!0}}function E(a,b){S.hasOwnProperty(a)?S[a].push(b):S[a]=[b];var c,d,e,g,h=x.destination;if(S.hasOwnProperty(a)&&(e=S[a],e.length))for(h=e[0].Tb(),c=0,d=e.length;c<d;c++)g=
e[c],c+1===d?g.gc(x.destination):g.gc(e[c+1].Tb());Ha.length=0;if(a.length)for(c=0,d=H.length;c<d;c++)e=H[c],fb(a,e.tag)&&Ha.push(e);else Q&&!Q.Ee()&&(Ha.length=1,Ha[0]=Q);c=0;for(d=Ha.length;c<d;c++)Ha[c].Ft(h);ba&&qb===a&&(ba.disconnect(),ba.connect(h))}function J(){}function A(){}var v=hc.prototype;v.Pa=function(a){this.va=a;this.b=a.b};v.Pa.prototype.ga=function(){};var z=null,M=null,ha="",X="",G=0,x=null,wa=[],H=[],Q=null,C=!1,D=0,O=!1,B=1,L=0,I=0,ka=1,N=1,pa=10,da=1E4,sa=1,ba=null,qb="",La=
!1,Ma=[],S={},pc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");b.prototype.gc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};b.prototype.remove=function(){this.S.disconnect();this.Ea.disconnect();this.F.disconnect();this.C.disconnect()};b.prototype.Tb=function(){return this.S};e.prototype.gc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};e.prototype.remove=function(){this.S.disconnect();
this.Vg.disconnect();this.jc.disconnect();this.Oh.disconnect();this.F.disconnect();this.C.disconnect()};e.prototype.Tb=function(){return this.S};h.prototype.gc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};h.prototype.remove=function(){this.S.disconnect();this.se.disconnect();this.F.disconnect();this.C.disconnect()};h.prototype.Tb=function(){return this.S};d.prototype.gc=function(a){this.C.disconnect();this.C.connect(a);this.F.disconnect();this.F.connect(a)};
d.prototype.remove=function(){this.S.disconnect();this.jc.disconnect();this.Ua.disconnect();this.Lb.disconnect();this.C.disconnect();this.F.disconnect();this.Uh.disconnect()};d.prototype.Tb=function(){return this.S};m.prototype.gc=function(a){this.C.disconnect();this.C.connect(a);this.F.disconnect();this.F.connect(a)};m.prototype.remove=function(){this.S.disconnect();this.Ea.disconnect();this.Ua.disconnect();this.Lb.disconnect();this.C.disconnect();this.F.disconnect()};m.prototype.Tb=function(){return this.S};
s.prototype.gc=function(a){this.V.disconnect();this.V.connect(a)};s.prototype.remove=function(){this.V.disconnect()};s.prototype.Tb=function(){return this.V};n.prototype.gc=function(a){this.V.disconnect();this.V.connect(a)};n.prototype.remove=function(){this.Ua.disconnect();this.Lb.disconnect();this.V.disconnect()};n.prototype.Tb=function(){return this.V};t.prototype.gc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};t.prototype.remove=function(){this.Ua.disconnect();
this.mh.disconnect();this.S.disconnect();this.F.disconnect();this.C.disconnect()};t.prototype.Tb=function(){return this.S};y.prototype.Rt=function(a,b){.01>a&&(a=.01);this.Si.gain.value=a;this.Ri.gain.value=Math.pow(1/a,.6)*b};y.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};y.prototype.cs=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),e=0,g=0;32768>g;++g)e=g/32768,e=this.shape(e,c,d),this.Mh[32768+g]=e,this.Mh[32768-
g-1]=-e};y.prototype.gc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};y.prototype.remove=function(){this.S.disconnect();this.Si.disconnect();this.wj.disconnect();this.Ri.disconnect();this.F.disconnect();this.C.disconnect()};y.prototype.Tb=function(){return this.S};r.prototype.gc=function(a){this.V.disconnect();this.V.connect(a)};r.prototype.remove=function(){this.V.disconnect()};r.prototype.Tb=function(){return this.V};g.prototype.Oa=function(){this.V.getFloatFrequencyData(this.as);
this.V.getByteTimeDomainData(this.Zo);for(var a=this.V.fftSize,b=0,c=this.gh=0,d=0;b<a;b++)d=(this.Zo[b]-128)/128,0>d&&(d=-d),this.gh<d&&(this.gh=d),c+=d*d;this.gh=k(this.gh);k(Math.sqrt(c/a))};g.prototype.gc=function(a){this.V.disconnect();this.V.connect(a)};g.prototype.remove=function(){this.V.disconnect()};g.prototype.Tb=function(){return this.V};w.prototype.nh=function(a){if(this.D=a)this.pi=this.D.x,this.qi=this.D.y;this.je.length=0};w.prototype.fi=function(){return!!this.D};w.prototype.Oa=function(a){this.D&&
0!==a&&(this.hl=Ga(this.pi,this.qi,this.D.x,this.D.y),a=Qa(this.pi,this.qi,this.D.x,this.D.y)/a,4>this.je.length||this.je.shift(),this.je.push(a),this.pi=this.D.x,this.qi=this.D.y)};w.prototype.kn=function(){if(!this.je.length)return 0;var a,b,c=0;a=0;for(b=this.je.length;a<b;a++)c+=this.je[a];return c/this.je.length};w.prototype.Ak=function(){return Math.cos(this.hl)*this.kn()};w.prototype.Bk=function(){return Math.sin(this.hl)*this.kn()};var mc=!1;F.prototype.Xq=function(){if(!this.Y&&this.pe){var a=
this;if(x.decodeAudioData)x.decodeAudioData(this.pe,function(b){a.Y=b;a.pe=null;var c,d,e;if(ga(a.Pi)||O)ga(a.Gh)||(c=a.Gh.se,c.normalize=a.mo,c.buffer=b);else if(a.Gf.length){c=0;for(d=a.Gf.length;c<d;c++){b=a.Gf[c];e=new u(a,b.gp);e.Il(!0);if("undefined"!==typeof b.oo&&(b.D=z.ai(b.oo),!b.D))continue;if(b.D){var g=Pa(b.D.x,b.D.y,-b.D.d.Ra(),L,I,!0),h=Pa(b.D.x,b.D.y,-b.D.d.Ra(),L,I,!1);e.Hl(g,h,Ba(b.D.j-b.D.d.Ra()),b.Hk,b.il,b.ll);e.nh(b.D)}else e.Hl(b.x,b.y,b.Aq,b.Hk,b.il,b.ll);e.play(a.cl,a.am,
a.$i);a.Oi&&e.pause();H.push(e)}a.Gf.length=0}else e=new u(a,a.Pi),e.play(a.cl,a.am,a.$i),a.Oi&&e.pause(),H.push(e)},function(){a.kk=!0});else if(this.Y=x.createBuffer(this.pe,!1),this.pe=null,ga(this.Pi)||O)ga(this.Gh)||(b=this.Gh.se,b.normalize=this.mo,b.buffer=this.Y);else{var b=new u(this,this.Pi);b.play(this.cl,this.am,this.$i);this.Oi&&b.pause();H.push(b)}}};F.prototype.un=function(){switch(this.J){case 0:var a=4<=this.Y.readyState;a&&(this.em=!0);return a||this.em;case 1:return!!this.pe||!!this.Y;
case 2:return!0;case 3:return!0}return!1};F.prototype.Os=function(){switch(this.J){case 0:return this.un();case 1:return!!this.Y;case 2:return!0;case 3:return!0}return!1};F.prototype.Hs=function(){switch(this.J){case 0:return!!this.Y.error;case 1:return this.kk}return!1};u.prototype.Ee=function(){var a;switch(this.J){case 0:return this.i.ended;case 1:if(1===this.buffer.J){if(!this.Uc&&!this.Ob&&this.i.loop||this.qc)return!1;a=this.Je?z.Xb.da:z.ed.da;var b=this.playbackRate;0===b&&(b=1E-6);return a-
this.startTime>this.buffer.Y.duration/b}return this.i.ended;case 2:return this.Wj;case 3:!0}return!0};u.prototype.Qq=function(){return this.Uc||this.Ob?!0:this.Ee()};u.prototype.Il=function(a){1===G&&(!this.Xc&&a?this.Ha&&(this.Ba||(this.Ba=x.createPanner(),this.Ba.panningModel="number"===typeof this.Ba.panningModel?ka:["equalpower","HRTF","soundfield"][ka],this.Ba.distanceModel="number"===typeof this.Ba.distanceModel?N:["linear","inverse","exponential"][N],this.Ba.refDistance=pa,this.Ba.maxDistance=
da,this.Ba.rolloffFactor=sa),this.Ha.disconnect(),this.Ha.connect(this.Ba),this.Ba.connect(p(this.tag)),this.Xc=!0):this.Xc&&!a&&this.Ha&&(this.Ba.disconnect(),this.Ha.disconnect(),this.Ha.connect(p(this.tag)),this.Xc=!1))};u.prototype.Hl=function(a,b,c,d,e,g){this.Xc&&1===G&&(this.Ba.setPosition(a,b,0),this.Ba.setOrientation(Math.cos(V(c)),Math.sin(V(c)),0),this.Ba.coneInnerAngle=d,this.Ba.coneOuterAngle=e,this.Ba.coneOuterGain=g,this.yo=a,this.zo=b,this.uo=c,this.vo=d,this.wo=e,this.xo=g)};u.prototype.nh=
function(a){this.Xc&&1===G&&(this.Aa||(this.Aa=new w),this.Aa.nh(a))};u.prototype.Oa=function(a){if(this.Xc&&1===G&&this.Aa&&this.Aa.fi()&&this.of()){this.Aa.Oa(a);a=this.Aa.D;var b=Pa(a.x,a.y,-a.d.Ra(),L,I,!0),c=Pa(a.x,a.y,-a.d.Ra(),L,I,!1);this.Ba.setPosition(b,c,0);b=0;"undefined"!==typeof this.Aa.D.j&&(b=a.j-a.d.Ra(),this.Ba.setOrientation(Math.cos(b),Math.sin(b),0));b=Pa(this.Aa.Ak(),this.Aa.Bk(),-a.d.Ra(),0,0,!0);c=Pa(this.Aa.Ak(),this.Aa.Bk(),-a.d.Ra(),0,0,!1);this.Ba.setVelocity(b,c,0)}};
u.prototype.play=function(a,b,d){var e=this.i;this.Vc=a;this.volume=b;d=d||0;switch(this.J){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==b*B&&(e.volume=b*B);e.loop!==a&&(e.loop=a);e.muted&&(e.muted=!1);if(e.currentTime!==d)try{e.currentTime=d}catch(g){}if(this.Gc&&La&&!z.Z)Ma.push(this);else try{this.i.play()}catch(h){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",h)}break;case 1:this.muted=!1;this.Af=1;if(1===this.buffer.J)this.Ha.gain.value=
b*B,this.Uc||(this.i=x.createBufferSource(),this.i.buffer=this.buffer.Y,this.i.connect(this.Ha)),this.i.loop=a,0===d?l(this.i):c(this.i,d,this.Ce());else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==a&&(e.loop=a);e.volume=b*B;if(e.currentTime!==d)try{e.currentTime=d}catch(f){}this.Gc&&La&&!z.Z?Ma.push(this):e.play()}break;case 2:(!this.Uc&&this.Ob||0!==d)&&e.seekTo(d);e.play();this.Wj=!1;break;case 3:z.Za?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=
1;this.startTime=(this.Je?z.Xb.da:z.ed.da)-d;this.qc=this.Ob=this.Uc=!1};u.prototype.stop=function(){switch(this.J){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.J?a(this.i):this.i.paused||this.i.pause();break;case 2:this.i.stop();break;case 3:z.Za&&AppMobi.context.stopSound(this.src)}this.Ob=!0;this.qc=!1};u.prototype.pause=function(){if(!(this.Uc||this.Ob||this.Ee()||this.qc)){switch(this.J){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.J?(this.yb=this.yk(),
this.Vc&&(this.yb%=this.Ce()),a(this.i)):this.i.paused||this.i.pause();break;case 2:this.i.pause();break;case 3:z.Za&&AppMobi.context.stopSound(this.src)}this.qc=!0}};u.prototype.It=function(){if(!(this.Uc||this.Ob||this.Ee())&&this.qc){switch(this.J){case 0:this.i.play();break;case 1:1===this.buffer.J?(this.i=x.createBufferSource(),this.i.buffer=this.buffer.Y,this.i.connect(this.Ha),this.i.loop=this.Vc,this.Ha.gain.value=B*this.volume*this.Af,this.startTime=(this.Je?z.Xb.da:z.ed.da)-this.yb,c(this.i,
this.yb,this.Ce())):this.i.play();break;case 2:this.i.play();break;case 3:z.Za&&AppMobi.context.resumeSound(this.src)}this.qc=!1}};u.prototype.seek=function(a){if(!(this.Uc||this.Ob||this.Ee()))switch(this.J){case 0:try{this.i.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.J)this.qc?this.yb=a:(this.pause(),this.yb=a,this.It());else try{this.i.currentTime=a}catch(c){}break;case 3:z.Za&&AppMobi.context.seekSound(this.src,a)}};u.prototype.Ft=function(a){1===this.J&&(this.Xc?(this.Ba.disconnect(),
this.Ba.connect(a)):(this.Ha.disconnect(),this.Ha.connect(a)))};u.prototype.Ce=function(){switch(this.J){case 0:if("undefined"!==typeof this.i.duration)return this.i.duration;break;case 1:return this.buffer.Y.duration;case 2:return this.i.getDuration();case 3:if(z.Za)return AppMobi.context.getDurationSound(this.src)}return 0};u.prototype.yk=function(){var a=this.Ce(),b=0;switch(this.J){case 0:"undefined"!==typeof this.i.currentTime&&(b=this.i.currentTime);break;case 1:if(1===this.buffer.J){if(this.qc)return this.yb;
b=(this.Je?z.Xb.da:z.ed.da)-this.startTime}else"undefined"!==typeof this.i.currentTime&&(b=this.i.currentTime);break;case 3:z.Za&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.Vc&&b>a&&(b=a);return b};u.prototype.of=function(){return!this.qc&&!this.Uc&&!this.Ob&&!this.Ee()};u.prototype.du=function(){var a=this.volume*B;switch(this.J){case 0:"undefined"!==typeof this.i.volume&&this.i.volume!==a&&(this.i.volume=a);break;case 1:1===this.buffer.J?this.Ha.gain.value=a*this.Af:"undefined"!==
typeof this.i.volume&&this.i.volume!==a&&(this.i.volume=a)}};u.prototype.Ph=function(a){switch(this.J){case 0:this.i.muted!==!!a&&(this.i.muted=!!a);break;case 1:1===this.buffer.J?(this.Af=a?0:1,this.Ha.gain.value=B*this.volume*this.Af):this.i.muted!==!!a&&(this.i.muted=!!a)}};u.prototype.St=function(){this.rf=!0;this.Ph(this.rf||this.Dg)};u.prototype.Uo=function(a){this.Dg=!!a;this.Ph(this.rf||this.Dg)};u.prototype.tp=function(){var a=this.playbackRate;this.Je&&(a*=z.Tf);switch(this.J){case 0:this.i.playbackRate!==
a&&(this.i.playbackRate=a);break;case 1:1===this.buffer.J?this.i.playbackRate.value!==a&&(this.i.playbackRate.value=a):this.i.playbackRate!==a&&(this.i.playbackRate=a)}};u.prototype.Ut=function(b){switch(this.J){case 0:b?this.of()?(this.i.pause(),this.Ed=!0):this.Ed=!1:this.Ed&&this.i.play();break;case 1:b?this.of()?(1===this.buffer.J?(this.yb=this.yk(),this.Vc&&(this.yb%=this.Ce()),a(this.i)):this.i.pause(),this.Ed=!0):this.Ed=!1:this.Ed&&(1===this.buffer.J?(this.i=x.createBufferSource(),this.i.buffer=
this.buffer.Y,this.i.connect(this.Ha),this.i.loop=this.Vc,this.Ha.gain.value=B*this.volume*this.Af,this.startTime=(this.Je?z.Xb.da:z.ed.da)-this.yb,c(this.i,this.yb,this.Ce())):this.i.play());break;case 2:b?this.of()?(this.i.pause(),this.Ed=!0):this.Ed=!1:this.Ed&&this.i.play()}};v.qa=function(a){this.type=a;z=this.b=a.b;M=this;this.jb=null;this.Lg=-600;!(this.b.ni||this.b.ii&&(this.b.zg||this.b.ji))||this.b.Ag||this.b.P||this.b.Ok||(La=!0);x=null;"undefined"!==typeof AudioContext?(G=1,x=new AudioContext):
"undefined"!==typeof webkitAudioContext&&(G=1,x=new webkitAudioContext);(this.b.ni&&1===G||La)&&document.addEventListener("touchstart",function(){var a,b,c;!mc&&x&&(a=x.createBuffer(1,1,22050),b=x.createBufferSource(),b.buffer=a,b.connect(x.destination),l(b),mc=!0);if(La){if(!O)for(a=0,b=Ma.length;a<b;++a)c=Ma[a],c.Ob||c.qc||c.i.play();Ma.length=0}},!0);1!==G&&(this.b.pc&&"undefined"!==typeof window.Media?G=2:this.b.nf&&(G=3));2===G&&(X=location.href,a=X.lastIndexOf("/"),-1<a&&(X=X.substr(0,a+1)),
X=X.replace("file://",""));if(this.b.vn&&this.b.Ps&&"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.Ld(this);else{if(this.b.Za)C=this.b.ii;else try{C=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){C=!1}this.b.nj(this)}};var la=v.qa.prototype;la.ga=function(){this.b.cf=this;D=this.W[0];this.Fd=this.W[1];this.ut=0!==this.W[2];ka=this.W[3];N=this.W[4];this.Lg=-this.W[5];
pa=this.W[6];da=this.W[7];sa=this.W[8];this.jb=new w;var a=this.b.N||this.b.width,b=this.b.M||this.b.height;1===G&&("undefined"!==typeof x.listener.dopplerFactor&&(x.listener.dopplerFactor=0),x.listener.setPosition(a/2,b/2,this.Lg),x.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){ba&&ba.disconnect();qb=b.toLowerCase();ba=x.createMediaStreamSource(a);ba.connect(p(qb))});this.b.Gq(function(a){M.ot(a)});var c=this;this.b.Eq(function(a){c.jt(a)})};la.jt=function(a){var b,
c,d;b=0;for(c=H.length;b<c;b++)d=H[b],d.Aa&&d.Aa.D===a&&(d.Aa.D=null,d.Xc&&d.of()&&d.Vc&&d.stop());this.jb.D===a&&(this.jb.D=null)};la.zb=function(){var a={silent:O,masterVolume:B,listenerZ:this.Lg,listenerUid:this.jb.fi()?this.jb.D.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,g,h,f;c=0;for(d=H.length;c<d;c++)e=H[c],!e.of()||3===this.Fd||e.Gc&&1===this.Fd||!e.Gc&&2===this.Fd||(g=e.yk(),e.Vc&&(g%=e.Ce()),g={tag:e.tag,buffersrc:e.buffer.src,is_music:e.Gc,playbackTime:g,volume:e.volume,looping:e.Vc,
muted:e.rf,playbackRate:e.playbackRate,paused:e.qc,resume_position:e.yb},e.Xc&&(g.pan={},f=g.pan,e.Aa&&e.Aa.fi()?f.objUid=e.Aa.D.uid:(f.x=e.yo,f.y=e.zo,f.a=e.uo),f.ia=e.vo,f.oa=e.wo,f.og=e.xo),b.push(g));b=a.effects;for(h in S)if(S.hasOwnProperty(h)){e=[];c=0;for(d=S[h].length;c<d;c++)e.push({type:S[h][c].type,params:S[h][c].Hc});b[h]=e}return a};var Na=[];la.Zb=function(a){var c=a.silent;B=a.masterVolume;this.Lg=a.listenerZ;this.jb.nh(null);var f=a.listenerUid;-1!==f&&(this.jb.yi=f,Na.push(this.jb));
var f=a.playing,l,k,p,u,q,J,z,ha,A,v,x;if(3!==this.Fd)for(l=0,k=H.length;l<k;l++)A=H[l],A.Gc&&1===this.Fd||(A.Gc||2!==this.Fd)&&A.stop();for(q in S)if(S.hasOwnProperty(q))for(l=0,k=S[q].length;l<k;l++)S[q][l].remove();Ta(S);for(q in a.effects)if(a.effects.hasOwnProperty(q))for(J=a.effects[q],l=0,k=J.length;l<k;l++)switch(p=J[l].type,v=J[l].params,p){case "filter":E(q,new b(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "delay":E(q,new e(v[0],v[1],v[2]));break;case "convolve":p=v[2];A=this.Yh(p,!1);A.Y?
p=new h(A.Y,v[0],v[1],p):(p=new h(null,v[0],v[1],p),A.mo=v[0],A.Gh=p);E(q,p);break;case "flanger":E(q,new d(v[0],v[1],v[2],v[3],v[4]));break;case "phaser":E(q,new m(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "gain":E(q,new s(v[0]));break;case "tremolo":E(q,new n(v[0],v[1]));break;case "ringmod":E(q,new t(v[0],v[1]));break;case "distortion":E(q,new y(v[0],v[1],v[2],v[3],v[4]));break;case "compressor":E(q,new r(v[0],v[1],v[2],v[3],v[4]));break;case "analyser":E(q,new g(v[0],v[1]))}l=0;for(k=f.length;l<
k;l++)3===this.Fd||(a=f[l],p=a.buffersrc,u=a.is_music,q=a.tag,J=a.playbackTime,z=a.looping,ha=a.volume,x=(v=a.pan)&&v.hasOwnProperty("objUid")?v.objUid:-1,u&&1===this.Fd)||!u&&2===this.Fd||((A=this.bn(p,q,u,z,ha))?(A.yb=a.resume_position,A.Il(!!v),A.play(z,ha,J),A.tp(),A.du(),A.Ph(A.rf||A.Dg),a.paused&&A.pause(),a.muted&&A.St(),A.Ph(A.rf||A.Dg),v&&(-1!==x?(A.Aa=A.Aa||new w,A.Aa.yi=x,Na.push(A.Aa)):A.Hl(v.x,v.y,v.a,v.ia,v.oa,v.og))):(A=this.Yh(p,u),A.$i=J,A.Oi=a.paused,v&&(-1!==x?A.Gf.push({oo:x,Hk:v.ia,
il:v.oa,ll:v.og,gp:q}):A.Gf.push({x:v.x,y:v.y,Aq:v.a,Hk:v.ia,il:v.oa,ll:v.og,gp:q}))));if(c&&!O){l=0;for(k=H.length;l<k;l++)H[l].Uo(!0);O=!0}else if(!c&&O){l=0;for(k=H.length;l<k;l++)H[l].Uo(!1);O=!1}};la.fd=function(){var a,b,c,d;a=0;for(b=Na.length;a<b;a++)c=Na[a],d=this.b.ai(c.yi),c.nh(d),c.yi=-1,d&&(L=d.x,I=d.y);Na.length=0};la.ot=function(a){if(!this.ut){!a&&x&&x.resume&&x.resume();var b,c;b=0;for(c=H.length;b<c;b++)H[b].Ut(a);a&&x&&x.suspend&&x.suspend()}};la.Oa=function(){var a=this.b.xe,b,
c,d;b=0;for(c=H.length;b<c;b++)d=H[b],d.Oa(a),0===d.J||3===d.J||d.Uc||d.Ob||!d.Ee()||(d.Ob=!0,ha=d.tag,z.trigger(hc.prototype.e.zj,M)),0!==D&&d.tp();var e,g;for(e in S)if(S.hasOwnProperty(e))for(d=S[e],b=0,c=d.length;b<c;b++)g=d[b],g.Oa&&g.Oa();1===G&&this.jb.fi()&&(this.jb.Oa(a),L=this.jb.D.x,I=this.jb.D.y,x.listener.setPosition(this.jb.D.x,this.jb.D.y,this.Lg),x.listener.setVelocity(this.jb.Ak(),this.jb.Bk(),0))};var Oa=[];la.Tt=function(a){var b,c,d,e,g,h=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],
e=d[0],d=2*d[1],(g=4<e.length&&".ogg"===e.substr(e.length-4))&&C||!g&&!C)Oa.push({filename:e,size:d,D:null}),h+=d;return h};la.Xt=function(){var a,b,c,d;a=0;for(b=Oa.length;a<b;++a)c=Oa[a],d=this.b.lk+c.filename,c.D=this.Yh(d,!1)};la.ns=function(){var a=0,b,c,d;b=0;for(c=Oa.length;b<c;++b)d=Oa[b],d.D.Os()||d.D.Hs()||this.b.P||this.b.ji?a+=d.size:d.D.un()&&(a+=Math.floor(d.size/2));return a};la.Yh=function(a,b){var c,d,e,g=null;c=0;for(d=wa.length;c<d;c++)if(e=wa[c],e.src===a){g=e;break}g||(g=new F(a,
b),wa.push(g));return g};la.bn=function(a,b,c,d,e){var g,h,f;g=0;for(h=H.length;g<h;g++)if(f=H[g],f.src===a&&(f.Qq()||c))return f.tag=b,f;a=this.Yh(a,c);if(!a.Y)return"<preload>"!==b&&(a.Pi=b,a.cl=d,a.am=e),null;f=new u(a,b);H.push(f);return f};var Ha=[];J.prototype.zj=function(a){return fb(ha,a)};v.e=new J;A.prototype.Play=function(a,b,c,d){!O&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),Q=this.bn(this.b.lk+a[0]+(C?".ogg":".m4a"),d,a[1],0!==b,c))&&(Q.Il(!1),Q.play(0!==b,c))};v.la=new A;v.fb=new function(){}})();
function ic(k){this.b=k}
(function(){function k(){}var p=ic.prototype;p.Pa=function(f){this.va=f;this.b=f.b};p.Pa.prototype.ga=function(){};p.qa=function(f){this.type=f;this.b=f.b;this.oi=Array(256);this.uj=Array(256);this.le=0};var f=p.qa.prototype;f.ga=function(){var f=this;this.b.P||(jQuery(document).keydown(function(c){f.kt(c)}),jQuery(document).keyup(function(c){f.lt(c)}))};var q=[32,33,34,35,36,37,38,39,40,44];f.kt=function(f){var c=!1;window!=window.top&&-1<q.indexOf(f.which)&&(f.preventDefault(),c=!0,f.stopPropagation());
if(this.oi[f.which])this.uj[f.which]&&!c&&f.preventDefault();else{this.oi[f.which]=!0;this.le=f.which;this.b.Z=!0;this.b.trigger(ic.prototype.e.Vp,this);var a=this.b.trigger(ic.prototype.e.iq,this),b=this.b.trigger(ic.prototype.e.jq,this);this.b.Z=!1;if(a||b)this.uj[f.which]=!0,c||f.preventDefault()}};f.lt=function(f){this.oi[f.which]=!1;this.le=f.which;this.b.Z=!0;this.b.trigger(ic.prototype.e.Wp,this);var c=this.b.trigger(ic.prototype.e.lq,this),a=this.b.trigger(ic.prototype.e.kq,this);this.b.Z=
!1;if(c||a||this.uj[f.which])this.uj[f.which]=!0,f.preventDefault()};f.zb=function(){return{triggerKey:this.le}};f.Zb=function(f){this.le=f.triggerKey};k.prototype.Lp=function(f){return this.oi[f]};k.prototype.iq=function(f){return f===this.le};k.prototype.Vp=function(){return!0};k.prototype.Wp=function(){return!0};k.prototype.lq=function(f){return f===this.le};k.prototype.jq=function(f){return f===this.le};k.prototype.kq=function(f){return f===this.le};p.e=new k;p.la=new function(){};p.fb=new function(){}})();
function jc(k){this.b=k}
(function(){function k(){}function p(){}var f=jc.prototype;f.Pa=function(c){this.va=c;this.b=c.b};f.Pa.prototype.ga=function(){};f.qa=function(c){this.type=c;this.b=c.b;this.Ch=Array(4);this.jp=this.pj=this.Uf=this.yd=this.xd=0;this.Ek=!1};var q=f.qa.prototype;q.ga=function(){var c=this;if(!this.b.P){jQuery(document).mousemove(function(a){c.Zg(a)});jQuery(document).mousedown(function(a){c.Yg(a)});jQuery(document).mouseup(function(a){c.$g(a)});jQuery(document).dblclick(function(a){c.ht(a)});var a=
function(a){c.qt(a)};document.addEventListener("mousewheel",a,!1);document.addEventListener("DOMMouseScroll",a,!1)}};var l={left:0,top:0};q.Zg=function(c){var a=this.b.P?l:jQuery(this.b.canvas).offset();this.xd=c.pageX-a.left;this.yd=c.pageY-a.top};q.ho=function(){return 0<this.b.hb?!0:0<=this.xd&&0<=this.yd&&this.xd<this.b.width&&this.yd<this.b.height};q.Yg=function(c){this.ho()&&(this.b.mf&&!this.b.vd&&c.preventDefault(),this.Ch[c.which]=!0,this.b.Z=!0,this.b.trigger(jc.prototype.e.gm,this),this.Uf=
c.which-1,this.pj=0,this.b.trigger(jc.prototype.e.hm,this),this.b.trigger(jc.prototype.e.Bj,this),this.b.Z=!1)};q.$g=function(c){this.Ch[c.which]&&(this.b.mf&&!this.b.vd&&c.preventDefault(),this.b.mf=!0,this.Ch[c.which]=!1,this.b.Z=!0,this.Uf=c.which-1,this.b.trigger(jc.prototype.e.oq,this),this.b.Z=!1)};q.ht=function(c){this.ho()&&(c.preventDefault(),this.b.Z=!0,this.Uf=c.which-1,this.pj=1,this.b.trigger(jc.prototype.e.hm,this),this.b.trigger(jc.prototype.e.Bj,this),this.b.Z=!1)};q.qt=function(c){this.jp=
0>(c.wheelDelta?c.wheelDelta:c.detail?-c.detail:0)?0:1;this.Ek=!1;this.b.Z=!0;this.b.trigger(jc.prototype.e.rq,this);this.b.Z=!1;this.Ek&&gb(c)&&c.preventDefault()};k.prototype.hm=function(c,a){return c===this.Uf&&a===this.pj};k.prototype.gm=function(){return!0};k.prototype.Jp=function(c){return this.Ch[c+1]};k.prototype.oq=function(c){return c===this.Uf};k.prototype.Mp=function(c){var a=this.b.tk();return Ra(this.b.Rf(c,this.xd,this.yd,a.yg),a.yg)};k.prototype.Bj=function(c,a,b){return c!==this.Uf||
a!==this.pj?!1:this.b.Rf(b,this.xd,this.yd,!1)};k.prototype.rq=function(c){this.Ek=!0;return c===this.jp};f.e=new k;f.la=new function(){};p.prototype.pm=function(c,a){var b,e,h,d,f;ga(a)?(b=this.b.rd(0),e=b.scale,h=b.Db,d=b.uc,f=b.j,b.scale=1,b.Db=1,b.uc=1,b.j=0,c.u(b.na(this.xd,this.yd,!0)),b.scale=e,b.Db=h,b.uc=d,b.j=f):(b=P(a)?this.b.rd(a):this.b.pg(a))?c.u(b.na(this.xd,this.yd,!0)):c.u(0)};p.prototype.qm=function(c,a){var b,e,h,d,f;ga(a)?(b=this.b.rd(0),e=b.scale,h=b.Db,d=b.vc,f=b.j,b.scale=1,
b.Db=1,b.vc=1,b.j=0,c.u(b.na(this.xd,this.yd,!1)),b.scale=e,b.Db=h,b.vc=d,b.j=f):(b=P(a)?this.b.rd(a):this.b.pg(a))?c.u(b.na(this.xd,this.yd,!1)):c.u(0)};f.fb=new p})();function kc(k){this.b=k}
(function(){function k(f){this.ja=f;this.Qa=!1;this.j=this.speed=this.y=this.x=0;this.opacity=1;this.Od=this.lf=this.size=this.di=0}var p=kc.prototype;p.Pa=function(f){this.va=f;this.b=f.b};var f=p.Pa.prototype;f.ga=function(){this.B||(this.I=new Image,this.I.Yj=this.lj,this.O=null,this.b.cm(this.I,this.kj))};f.Gi=function(){this.B||(this.O=null)};f.Hi=function(){this.B||!this.c.length||this.O||(this.O=this.b.n.wf(this.I,!0,this.b.U,this.wh))};f.Ng=function(){this.B||this.O||!this.b.n||(this.O=this.b.n.wf(this.I,
!0,this.b.U,this.wh))};f.sj=function(){this.B||this.c.length||!this.O||(this.b.n.deleteTexture(this.O),this.O=null)};f.Ti=function(f){f.drawImage(this.I,0,0)};k.prototype.init=function(){var f=this.ja;this.x=f.x-f.xj/2+Math.random()*f.xj;this.y=f.y-f.yj/2+Math.random()*f.yj;this.speed=f.Lk-f.ej/2+Math.random()*f.ej;this.j=f.j-f.fj/2+Math.random()*f.fj;this.opacity=f.Jk;this.size=f.Kk-f.cj/2+Math.random()*f.cj;this.di=f.Dk-f.ei/2+Math.random()*f.ei;this.Od=this.lf=0};k.prototype.Oa=function(f){var c=
this.ja;this.x+=Math.cos(this.j)*this.speed*f;this.y+=Math.sin(this.j)*this.speed*f;this.y+=this.lf*f;this.speed+=c.Fj*f;this.size+=this.di*f;this.lf+=c.rk*f;this.Od+=f;1>this.size?this.Qa=!1:(0!==c.Ig&&(this.j+=Math.random()*c.Ig*f-c.Ig*f/2),0!==c.Kg&&(this.speed+=Math.random()*c.Kg*f-c.Kg*f/2),0!==c.Jg&&(this.opacity+=Math.random()*c.Jg*f-c.Jg*f/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=c.ff&&this.Od>=c.timeout&&(this.Qa=!1),2===c.ff&&0>=this.speed&&(this.Qa=!1))};k.prototype.kc=
function(f){var c=this.ja.opacity*this.opacity;if(0!==c){0===this.ja.ff&&(c*=1-this.Od/this.ja.timeout);f.globalAlpha=c;var c=this.x-this.size/2,a=this.y-this.size/2;this.ja.b.Zc&&(c=c+.5|0,a=a+.5|0);f.drawImage(this.ja.type.I,c,a,this.size,this.size)}};k.prototype.qb=function(f){var c=this.ja.opacity*this.opacity;0===this.ja.ff&&(c*=1-this.Od/this.ja.timeout);var a=this.size,b=a*this.ja.Co,e=this.x-a/2,h=this.y-a/2;this.ja.b.Zc&&(e=e+.5|0,h=h+.5|0);1>b||0===c||(b<f.bt||b>f.el?(f.Ue(c),f.kh(e,h,e+
a,h,e+a,h+a,e,h+a)):f.wt(this.x,this.y,b,c))};k.prototype.left=function(){return this.x-this.size/2};k.prototype.right=function(){return this.x+this.size/2};k.prototype.top=function(){return this.y-this.size/2};k.prototype.bottom=function(){return this.y+this.size/2};p.qa=function(f){this.type=f;this.b=f.b};var f=p.qa.prototype,q=[];f.ga=function(){var f=this.W;this.Wi=f[0];this.fj=V(f[1]);this.Of=f[2];this.Ll=!0;this.Lk=f[3];this.Kk=f[4];this.Jk=f[5]/100;this.Dk=f[6];this.xj=f[7];this.yj=f[8];this.ej=
f[9];this.cj=f[10];this.ei=f[11];this.Fj=f[12];this.rk=f[13];this.Ig=f[14];this.Kg=f[15];this.Jg=f[16];this.ff=f[17];this.timeout=f[18];this.Se=0;this.Co=1;this.Li=this.x;this.Ni=this.y;this.Mi=this.x;this.Ki=this.y;this.Hq(function(c){c.Xa.set(c.Li,c.Ni,c.Mi,c.Ki);c.df.ph(c.Xa);c.Bh=!1;c.fu()});this.Ic||(this.lb=[]);this.b.nj(this);this.type.Ng();if(1===this.Of)for(f=0;f<this.Wi;f++)this.Hj().opacity=0;this.Wh=!0};f.zb=function(){var f={r:this.Wi,sc:this.fj,st:this.Of,s:this.Ll,isp:this.Lk,isz:this.Kk,
io:this.Jk,gr:this.Dk,xr:this.xj,yr:this.yj,spr:this.ej,szr:this.cj,grnd:this.ei,acc:this.Fj,g:this.rk,lar:this.Ig,lsr:this.Kg,lor:this.Jg,dm:this.ff,to:this.timeout,pcc:this.Se,ft:this.Wh,p:[]},c,a,b,e=f.p;c=0;for(a=this.lb.length;c<a;c++)b=this.lb[c],e.push([b.x,b.y,b.speed,b.j,b.opacity,b.di,b.size,b.lf,b.Od]);return f};f.Zb=function(f){this.Wi=f.r;this.fj=f.sc;this.Of=f.st;this.Ll=f.s;this.Lk=f.isp;this.Kk=f.isz;this.Jk=f.io;this.Dk=f.gr;this.xj=f.xr;this.yj=f.yr;this.ej=f.spr;this.cj=f.szr;this.ei=
f.grnd;this.Fj=f.acc;this.rk=f.g;this.Ig=f.lar;this.Kg=f.lsr;this.Jg=f.lor;this.ff=f.dm;this.timeout=f.to;this.Se=f.pcc;this.Wh=f.ft;q.push.apply(q,this.lb);this.lb.length=0;var c,a,b,e=f.p;f=0;for(c=e.length;f<c;f++)a=this.Hj(),b=e[f],a.x=b[0],a.y=b[1],a.speed=b[2],a.j=b[3],a.opacity=b[4],a.di=b[5],a.size=b[6],a.lf=b[7],a.Od=b[8]};f.Ef=function(){q.push.apply(q,this.lb);this.lb.length=0};f.Hj=function(){var f;q.length?(f=q.pop(),f.ja=this):f=new k(this);this.lb.push(f);f.Qa=!0;return f};f.Oa=function(){var f=
this.b.uk(this),c,a,b,e;if(0===this.Of&&this.Ll)for(this.Se+=f*this.Wi,a=T(this.Se),this.Se-=a,c=0;c<a;c++)b=this.Hj(),b.init();this.Li=this.x;this.Ni=this.y;this.Mi=this.x;this.Ki=this.y;e=c=0;for(a=this.lb.length;c<a;c++)b=this.lb[c],this.lb[e]=b,this.b.ha=!0,1===this.Of&&this.Wh&&b.init(),b.Oa(f),b.Qa?(b.left()<this.Li&&(this.Li=b.left()),b.right()>this.Mi&&(this.Mi=b.right()),b.top()<this.Ni&&(this.Ni=b.top()),b.bottom()>this.Ki&&(this.Ki=b.bottom()),e++):q.push(b);this.lb.length=e;this.xa();
this.Wh=!1;1===this.Of&&0===this.lb.length&&this.b.Ld(this)};f.kc=function(f){var c,a,b,e=this.d;c=0;for(a=this.lb.length;c<a;c++)b=this.lb[c],b.right()>=e.ya&&b.bottom()>=e.za&&b.left()<=e.Ga&&b.top()<=e.Fa&&b.kc(f)};f.qb=function(f){this.Co=this.d.Ub();f.Nb(this.type.O);var c,a,b,e=this.d;c=0;for(a=this.lb.length;c<a;c++)b=this.lb[c],b.right()>=e.ya&&b.bottom()>=e.za&&b.left()<=e.Ga&&b.top()<=e.Fa&&b.qb(f)};p.e=new function(){};p.la=new function(){};p.fb=new function(){}})();
function gc(k){this.b=k}
(function(){function k(){if(0===this.ak.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Pf?b.drawImage(this.I,this.Cf,this.Df,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.I,0,0,this.width,this.height);this.ak=a.toDataURL("image/png")}return this.ak}function p(){}var f=gc.prototype;f.Pa=function(a){this.va=a;this.b=a.b};var q=f.Pa.prototype;q.ga=function(){if(!this.B){var a,b,c,f,l,n,p,q,r;this.Cc=[];this.vg=
!1;a=0;for(b=this.Fb.length;a<b;a++){l=this.Fb[a];p={};p.name=l[0];p.speed=l[1];p.loop=l[2];p.Bl=l[3];p.Xi=l[4];p.Do=l[5];p.R=l[6];p.frames=[];c=0;for(f=l[7].length;c<f;c++)n=l[7][c],q={},q.kj=n[0],q.lj=n[1],q.Cf=n[2],q.Df=n[3],q.width=n[4],q.height=n[5],q.duration=n[6],q.tb=n[7],q.ub=n[8],q.Ik=n[9],q.Qi=n[10],q.Eo=n[11],q.Pf=0!==q.width,q.ak="",q.tv=k,r={left:0,top:0,right:1,bottom:1},q.Jl=r,q.O=null,(r=this.b.Zr(n[0]))?q.I=r:(q.I=new Image,q.I.Uq=n[0],q.I.Yj=n[1],q.I.Oq=null,this.b.cm(q.I,n[0])),
p.frames.push(q),this.Cc.push(q);this.Fb[a]=p}}};q.sp=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c=this.c[a],c.Kh=c.hc.O};q.Gi=function(){if(!this.B){var a,b,c;a=0;for(b=this.Cc.length;a<b;++a)c=this.Cc[a],c.I.Oq=null,c.O=null;this.vg=!1;this.sp()}};q.Hi=function(){if(!this.B&&this.c.length){var a,b,c;a=0;for(b=this.Cc.length;a<b;++a)c=this.Cc[a],c.O=this.b.n.wf(c.I,!1,this.b.U,c.Eo);this.sp()}};q.Ng=function(){if(!this.B&&!this.vg&&this.b.n){var a,b,c;a=0;for(b=this.Cc.length;a<b;++a)c=
this.Cc[a],c.O=this.b.n.wf(c.I,!1,this.b.U,c.Eo);this.vg=!0}};q.sj=function(){if(!this.B&&!this.c.length&&this.vg){var a,b,c;a=0;for(b=this.Cc.length;a<b;++a)c=this.Cc[a],this.b.n.deleteTexture(c.O),c.O=null;this.vg=!1}};var l=[];q.Ti=function(a){var b,c,f;b=l.length=0;for(c=this.Cc.length;b<c;++b)f=this.Cc[b].I,-1===l.indexOf(f)&&(a.drawImage(f,0,0),l.push(f))};f.qa=function(a){this.type=a;this.b=a.b;a=this.type.Fb[0].frames[0].Qi;this.Ic?this.Qc.qh(a):this.Qc=new $a(a)};var c=f.qa.prototype;c.ga=
function(){this.visible=0===this.W[0];this.gg=0!==this.W[3];1===this.type.Fb.length&&1===this.type.Fb[0].frames.length||0===this.type.Fb[0].speed||this.b.nj(this);this.ra=this.an(this.W[1])||this.type.Fb[0];this.A=this.W[2];0>this.A&&(this.A=0);this.A>=this.ra.frames.length&&(this.A=this.ra.frames.length-1);var a=this.ra.frames[this.A];this.Qc.qh(a.Qi);this.tb=a.tb;this.ub=a.ub;this.jg=this.ra.speed;this.Ic?this.Oc.reset():this.Oc=new Ya;this.qd=this.Oc.da;this.oe=!0;this.gd=0;this.ne=!0;this.Uj=
this.ym="";this.Rq=0;this.Tj=-1;this.type.Ng();var b,c,f,k,n,l,q,a=0;for(b=this.type.Fb.length;a<b;a++)for(k=this.type.Fb[a],c=0,f=k.frames.length;c<f;c++)n=k.frames[c],0===n.width&&(n.width=n.I.width,n.height=n.I.height),n.Pf&&(q=n.I,l=n.Jl,l.left=n.Cf/q.width,l.top=n.Df/q.height,l.right=(n.Cf+n.width)/q.width,l.bottom=(n.Df+n.height)/q.height,0===n.Cf&&0===n.Df&&n.width===q.width&&n.height===q.height&&(n.Pf=!1));this.hc=this.ra.frames[this.A];this.Kh=this.hc.O};c.zb=function(){var a={a:this.ra.R,
f:this.A,cas:this.jg,fs:this.qd,ar:this.gd,at:this.Oc.da};this.oe||(a.ap=this.oe);this.ne||(a.af=this.ne);return a};c.Zb=function(a){var b=this.ds(a.a);b&&(this.ra=b);this.A=a.f;0>this.A&&(this.A=0);this.A>=this.ra.frames.length&&(this.A=this.ra.frames.length-1);this.jg=a.cas;this.qd=a.fs;this.gd=a.ar;this.Oc.reset();this.Oc.da=a.at;this.oe=a.hasOwnProperty("ap")?a.ap:!0;this.ne=a.hasOwnProperty("af")?a.af:!0;this.hc=this.ra.frames[this.A];this.Kh=this.hc.O;this.Qc.qh(this.hc.Qi);this.tb=this.hc.tb;
this.ub=this.hc.ub};c.Kj=function(a){this.A=a?0:this.ra.frames.length-1;this.oe=!1;this.ym=this.ra.name;this.b.trigger(gc.prototype.e.Up,this);this.b.trigger(gc.prototype.e.Tp,this);this.gd=0};c.vv=function(){return this.Oc.da};c.Oa=function(){this.Oc.add(this.b.uk(this));this.Uj.length&&this.Zq();0<=this.Tj&&this.$q();var a=this.Oc.da,b=this.ra,c=b.frames[this.A],f=c.duration/this.jg;this.oe&&a>=this.qd+f&&(this.ne?this.A++:this.A--,this.qd+=f,this.A>=b.frames.length&&(b.Do?(this.ne=!1,this.A=b.frames.length-
2):b.loop?this.A=b.Xi:(this.gd++,this.gd>=b.Bl?this.Kj(!1):this.A=b.Xi)),0>this.A&&(b.Do?(this.A=1,this.ne=!0,b.loop||(this.gd++,this.gd>=b.Bl&&this.Kj(!0))):b.loop?this.A=b.Xi:(this.gd++,this.gd>=b.Bl?this.Kj(!0):this.A=b.Xi)),0>this.A?this.A=0:this.A>=b.frames.length&&(this.A=b.frames.length-1),a>this.qd+b.frames[this.A].duration/this.jg&&(this.qd=a),a=b.frames[this.A],this.$e(c,a),this.b.ha=!0)};c.an=function(a){var b,c,f;b=0;for(c=this.type.Fb.length;b<c;b++)if(f=this.type.Fb[b],fb(f.name,a))return f;
return null};c.ds=function(a){var b,c,f;b=0;for(c=this.type.Fb.length;b<c;b++)if(f=this.type.Fb[b],f.R===a)return f;return null};c.Zq=function(){var a=this.ra.frames[this.A],b=this.an(this.Uj);this.Uj="";!b||fb(b.name,this.ra.name)&&this.oe||(this.ra=b,this.jg=b.speed,0>this.A&&(this.A=0),this.A>=this.ra.frames.length&&(this.A=this.ra.frames.length-1),1===this.Rq&&(this.A=0),this.oe=!0,this.qd=this.Oc.da,this.ne=!0,this.$e(a,this.ra.frames[this.A]),this.b.ha=!0)};c.$q=function(){var a=this.ra.frames[this.A],
b=this.A;this.A=T(this.Tj);0>this.A&&(this.A=0);this.A>=this.ra.frames.length&&(this.A=this.ra.frames.length-1);b!==this.A&&(this.$e(a,this.ra.frames[this.A]),this.qd=this.Oc.da,this.b.ha=!0);this.Tj=-1};c.$e=function(a,b){var c=a.width,f=a.height,k=b.width,l=b.height;c!=k&&(this.width*=k/c);f!=l&&(this.height*=l/f);this.tb=b.tb;this.ub=b.ub;this.Qc.qh(b.Qi);this.xa();this.hc=b;this.Kh=b.O;c=0;for(f=this.G.length;c<f;c++)k=this.G[c],k.nt&&k.nt(a,b);this.b.trigger(gc.prototype.e.$e,this)};c.kc=function(a){a.globalAlpha=
this.opacity;var b=this.hc,c=b.Pf,f=b.I,k=this.x,l=this.y,q=this.width,p=this.height;if(0===this.j&&0<=q&&0<=p)k-=this.tb*q,l-=this.ub*p,this.b.Zc&&(k=Math.round(k),l=Math.round(l)),c?a.drawImage(f,b.Cf,b.Df,b.width,b.height,k,l,q,p):a.drawImage(f,k,l,q,p);else{this.b.Zc&&(k=Math.round(k),l=Math.round(l));a.save();var r=0<q?1:-1,g=0<p?1:-1;a.translate(k,l);1===r&&1===g||a.scale(r,g);a.rotate(this.j*r*g);k=0-this.tb*ma(q);l=0-this.ub*ma(p);c?a.drawImage(f,b.Cf,b.Df,b.width,b.height,k,l,ma(q),ma(p)):
a.drawImage(f,k,l,ma(q),ma(p));a.restore()}};c.qb=function(a){a.Nb(this.Kh);a.Ue(this.opacity);var b=this.hc,c=this.df;if(this.b.Zc){var f=Math.round(this.x)-this.x,k=Math.round(this.y)-this.y;b.Pf?a.Cd(c.Ab+f,c.Bb+k,c.yc+f,c.zc+k,c.ec+f,c.fc+k,c.ac+f,c.cc+k,b.Jl):a.kh(c.Ab+f,c.Bb+k,c.yc+f,c.zc+k,c.ec+f,c.fc+k,c.ac+f,c.cc+k)}else b.Pf?a.Cd(c.Ab,c.Bb,c.yc,c.zc,c.ec,c.fc,c.ac,c.cc,b.Jl):a.kh(c.Ab,c.Bb,c.yc,c.zc,c.ec,c.fc,c.ac,c.cc)};c.js=function(a){var b=this.hc,c,f;c=0;for(f=b.Ik.length;c<f;c++)if(fb(a,
b.Ik[c][0]))return c;return-1};c.xk=function(a,b){var c=this.hc,f=c.Ik,k;k=R(a)?this.js(a):a-1;k=T(k);if(0>k||k>=f.length)return b?this.x:this.y;var l=(f[k][1]-c.tb)*this.width,f=f[k][2],f=(f-c.ub)*this.height,c=Math.cos(this.j);k=Math.sin(this.j);var q=l*c-f*k,f=f*c+l*k,l=q+this.x,f=f+this.y;return b?l:f};var a=new ca,b=!1;new U(0,0,0,0);q.finish=function(c){if(b){if(c){var f=this.b.rb().Sb.Wc;c=null.fa();var d=a.Mc(),k,l;if(c.ka){c.ka=!1;c.c.length=d.length;k=0;for(l=d.length;k<l;k++)c.c[k]=d[k];
if(f)for(k=c.T.length=0,l=null.c.length;k<l;k++)d=null.c[k],a.contains(d)||c.T.push(d)}else if(f)for(f=c.c.length,c.c.length=f+d.length,k=0,l=d.length;k<l;k++)c.c[f+k]=d[k],Aa(c.T,d[k]);else xa(c.c,d);null.hd()}a.clear();b=!1}};p.prototype.Tp=function(a){return fb(this.ym,a)};p.prototype.Up=function(){return!0};p.prototype.$e=function(){return!0};f.e=new p;f.la=new function(){};f.fb=new function(){}})();function lc(k){this.b=k}
(function(){function k(){}function p(){}function f(){}var q=lc.prototype;q.Pa=function(a){this.va=a;this.b=a.b};q.Pa.prototype.ga=function(){};q.qa=function(a){this.type=a;this.b=a.b};var l=q.qa.prototype,c="text password email number tel url".split(" ");-1<navigator.userAgent.indexOf("MSIE 9")&&(c[2]="text",c[3]="text",c[4]="text",c[5]="text");l.ga=function(){if(this.b.P)K("[Construct 2] Textbox plugin not supported on this platform - the object will not be created");else{6===this.W[7]?(this.q=document.createElement("textarea"),
jQuery(this.q).css("resize","none")):(this.q=document.createElement("input"),this.q.type=c[this.W[7]]);this.q.id=this.W[9];jQuery(this.q).appendTo(this.b.Eh?this.b.Eh:"body");this.q.autocomplete="off";this.q.value=this.W[0];this.q.placeholder=this.W[1];this.q.title=this.W[2];this.q.disabled=0===this.W[4];this.q.readOnly=1===this.W[5];this.q.spellcheck=1===this.W[6];this.Kq=0!==this.W[8];this.ye=!1;0===this.W[3]&&(jQuery(this.q).hide(),this.visible=!1,this.ye=!0);var a=function(a){return function(){a.b.trigger(lc.prototype.e.mm,
a)}}(this);this.q.oninput=a;-1!==navigator.userAgent.indexOf("MSIE")&&(this.q.oncut=a);this.q.onclick=function(a){return function(c){c.stopPropagation();a.b.Z=!0;a.b.trigger(lc.prototype.e.Yp,a);a.b.Z=!1}}(this);this.q.ondblclick=function(a){return function(c){c.stopPropagation();a.b.Z=!0;a.b.trigger(lc.prototype.e.aq,a);a.b.Z=!1}}(this);this.q.addEventListener("touchstart",function(a){a.stopPropagation()},!1);this.q.addEventListener("touchmove",function(a){a.stopPropagation()},!1);this.q.addEventListener("touchend",
function(a){a.stopPropagation()},!1);jQuery(this.q).mousedown(function(a){a.stopPropagation()});jQuery(this.q).mouseup(function(a){a.stopPropagation()});jQuery(this.q).keydown(function(a){13!==a.which&&27!=a.which&&a.stopPropagation()});jQuery(this.q).keyup(function(a){13!==a.which&&27!=a.which&&a.stopPropagation()});this.Jn=this.Kn=this.Bn=this.Gn=this.In=this.Dn=0;this.up(!0);this.b.nj(this)}};l.zb=function(){return{text:this.q.value,placeholder:this.q.placeholder,tooltip:this.q.title,disabled:!!this.q.disabled,
readonly:!!this.q.readOnly,spellcheck:!!this.q.spellcheck}};l.Zb=function(a){this.q.value=a.text;this.q.placeholder=a.placeholder;this.q.title=a.tooltip;this.q.disabled=a.disabled;this.q.readOnly=a.readonly;this.q.spellcheck=a.spellcheck};l.Ef=function(){this.b.P||(jQuery(this.q).remove(),this.q=null)};l.Oa=function(){this.up()};l.up=function(a){if(!this.b.P){var b=this.d.ib(this.x,this.y,!0),c=this.d.ib(this.x,this.y,!1),f=this.d.ib(this.x+this.width,this.y+this.height,!0),d=this.d.ib(this.x+this.width,
this.y+this.height,!1),k=this.b.width/this.b.devicePixelRatio,l=this.b.height/this.b.devicePixelRatio;!this.visible||!this.d.visible||0>=f||0>=d||b>=k||c>=l?(this.ye||jQuery(this.q).hide(),this.ye=!0):(1>b&&(b=1),1>c&&(c=1),f>=k&&(f=k-1),d>=l&&(d=l-1),k=window.innerWidth,l=window.innerHeight,a||this.Dn!==b||this.In!==c||this.Gn!==f||this.Bn!==d||this.Kn!==k||this.Jn!==l?(this.Dn=b,this.In=c,this.Gn=f,this.Bn=d,this.Kn=k,this.Jn=l,this.ye&&(jQuery(this.q).show(),this.ye=!1),a=Math.round(b)+jQuery(this.b.canvas).offset().left,
k=Math.round(c)+jQuery(this.b.canvas).offset().top,jQuery(this.q).css("position","absolute"),jQuery(this.q).offset({left:a,top:k}),jQuery(this.q).width(Math.round(f-b)),jQuery(this.q).height(Math.round(d-c)),this.Kq&&jQuery(this.q).css("font-size",this.d.Ub(!0)/this.b.devicePixelRatio-.2+"em")):this.ye&&(jQuery(this.q).show(),this.ye=!1))}};l.kc=function(){};l.qb=function(){};k.prototype.Ep=function(a,b){return this.b.P?!1:0===b?fb(this.q.value,a):this.q.value===a};k.prototype.mm=function(){return!0};
k.prototype.Yp=function(){return!0};k.prototype.aq=function(){return!0};q.e=new k;p.prototype.Ej=function(a){this.b.P||(this.visible=0!==a)};p.prototype.vq=function(a,b){this.b.P||jQuery(this.q).css(a,b)};q.la=new p;f.prototype.Text=function(a){this.b.P?a.mb(""):a.mb(this.q.value)};q.fb=new f})();function nc(k){this.b=k}
(function(){var k=nc.prototype;k.Pa=function(f){this.va=f;this.b=f.b};var p=k.Pa.prototype;p.ga=function(){this.B||(this.I=new Image,this.I.Yj=this.lj,this.b.cm(this.I,this.kj),this.O=this.pattern=null)};p.Gi=function(){this.B||(this.O=null)};p.Hi=function(){if(!this.B&&this.c.length){this.O||(this.O=this.b.n.wf(this.I,!0,this.b.U,this.wh));var f,k;f=0;for(k=this.c.length;f<k;f++)this.c[f].O=this.O}};p.Ng=function(){this.B||this.O||!this.b.n||(this.O=this.b.n.wf(this.I,!0,this.b.U,this.wh))};p.sj=
function(){this.B||this.c.length||!this.O||(this.b.n.deleteTexture(this.O),this.O=null)};p.Ti=function(f){f.drawImage(this.I,0,0)};k.qa=function(f){this.type=f;this.b=f.b};p=k.qa.prototype;p.ga=function(){this.visible=0===this.W[0];this.lh=new U(0,0,0,0);this.nn=!1;this.I=this.type.I;this.b.n?(this.type.Ng(),this.O=this.type.O):(this.type.pattern||(this.type.pattern=this.b.ea.createPattern(this.type.I,"repeat")),this.pattern=this.type.pattern)};p.fd=function(){this.nn=!1;this.I=this.type.I};p.Ef=
function(){this.b.n&&this.nn&&this.O&&(this.b.n.deleteTexture(this.O),this.O=null)};p.kc=function(f){f.globalAlpha=this.opacity;f.save();f.fillStyle=this.pattern;var k=this.x,l=this.y;this.b.Zc&&(k=Math.round(k),l=Math.round(l));var c=-(this.tb*this.width),a=-(this.ub*this.height),b=c%this.I.width,e=a%this.I.height;0>b&&(b+=this.I.width);0>e&&(e+=this.I.height);f.translate(k,l);f.rotate(this.j);f.translate(b,e);f.fillRect(c-b,a-e,this.width,this.height);f.restore()};p.qb=function(f){f.Nb(this.O);
f.Ue(this.opacity);var k=this.lh;k.right=this.width/this.I.width;k.bottom=this.height/this.I.height;var l=this.df;if(this.b.Zc){var c=Math.round(this.x)-this.x,a=Math.round(this.y)-this.y;f.Cd(l.Ab+c,l.Bb+a,l.yc+c,l.zc+a,l.ec+c,l.fc+a,l.ac+c,l.cc+a,k)}else f.Cd(l.Ab,l.Bb,l.yc,l.zc,l.ec,l.fc,l.ac,l.cc,k)};k.e=new function(){};k.la=new function(){};k.fb=new function(){}})();function Z(k){this.b=k}
(function(){function k(a){h=a.x;d=a.y;m=a.z}function p(a){s=a.x;n=a.y;t=a.z}function f(a,b,c,d){var e;e=y.length?y.pop():new q;e.init(a,b,c,d);return e}function q(){this.sh=this.id=this.y=this.x=this.ij=this.hj=this.Wk=this.time=this.Nl=0;this.xh=this.qj=!1}function l(){}function c(){}var a=Z.prototype;a.Pa=function(a){this.va=a;this.b=a.b};a.Pa.prototype.ga=function(){};a.qa=function(a){this.type=a;this.b=a.b;this.touches=[];this.gl=!1};var b=a.qa.prototype,e={left:0,top:0};b.ng=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 h=0,d=0,m=0,s=0,n=0,t=0,y=[];q.prototype.init=function(a,b,c,d){var e=Ua();this.Nl=this.Wk=this.time=e;this.hj=a;this.ij=b;this.x=a;this.y=b;this.id=c;this.sh=d;this.xh=this.qj=!1};q.prototype.update=function(a,b,c){this.Wk=this.time;this.time=a;this.x=b;this.y=c;!this.xh&&15<=Qa(this.hj,this.ij,this.x,this.y)&&(this.xh=!0)};q.prototype.Zs=function(a,b){!this.qj&&500<=Ua()-this.Nl&&!this.xh&&15>Qa(this.hj,this.ij,
this.x,this.y)&&(this.qj=!0,a.cd=this.sh,a.Vf=this.id,a.kf=b,a.b.trigger(Z.prototype.e.gq,a),a.ld=this.x,a.md=this.y,a.b.trigger(Z.prototype.e.hq,a),a.kf=0)};var r=-1E3,g=-1E3,w=-1E4;q.prototype.eo=function(a,b){if(!this.qj){var c=Ua();333>=c-this.Nl&&!this.xh&&15>Qa(this.hj,this.ij,this.x,this.y)&&(a.cd=this.sh,a.Vf=this.id,a.kf=b,666>=c-w&&25>Qa(r,g,this.x,this.y)?(a.b.trigger(Z.prototype.e.bq,a),a.ld=this.x,a.md=this.y,a.b.trigger(Z.prototype.e.cq,a),g=r=-1E3,w=-1E4):(a.b.trigger(Z.prototype.e.pq,
a),a.ld=this.x,a.md=this.y,a.b.trigger(Z.prototype.e.qq,a),r=this.x,g=this.y,w=c),a.kf=0)}};b.ga=function(){this.Qs=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.kf=this.Vf=this.cd=this.md=this.ld=this.um=this.tm=this.rm=this.Dq=this.Cq=this.Bq=this.fh=this.eh=this.dh=0;this.iu=0!==this.W[0];var a=0<this.b.hb?document:this.b.canvas,b=document;this.b.Za?b=a=window.Canvas:this.b.Wb&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.bh(a)},
!1),a.addEventListener("pointermove",function(a){c.ah(a)},!1),b.addEventListener("pointerup",function(a){c.Bd(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Bd(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.bh(a)},!1),a.addEventListener("MSPointerMove",function(a){c.ah(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Bd(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Bd(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.Ji(a)},
!1),a.addEventListener("touchmove",function(a){c.Ii(a)},!1),b.addEventListener("touchend",function(a){c.Ff(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Ff(a,!0)},!1));if(this.Qs){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.dh=a.yawDegrees;c.eh=a.pitchDegrees;c.fh=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged",
d));var g=Windows.Devices.Sensors.Inclinometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(f&&f.removeEventListener("readingchanged",d),g&&g.removeEventListener("readingchanged",e)):(f&&f.addEventListener("readingchanged",d),g&&g.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.dh=a.alpha||
0;c.eh=a.beta||0;c.fh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Bq=a.accelerationIncludingGravity.x||0,c.Cq=a.accelerationIncludingGravity.y||0,c.Dq=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.iu&&!this.b.P&&(jQuery(document).mousemove(function(a){c.Zg(a)}),jQuery(document).mousedown(function(a){c.Yg(a)}),jQuery(document).mouseup(function(a){c.$g(a)}));
this.b.nf&&!this.b.Za&&AppMobi.accelerometer.watchAcceleration(k,{frequency:40,adjustForRotation:!0});this.b.pc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(p,null,{frequency:40});this.b.Zt(this)};b.ah=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.ng(a.pointerId),c=Ua();if(0<=b){var d=this.b.P?e:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};b.bh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var b=this.b.P?e:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Ua();this.cd=this.touches.length;this.Vf=a.pointerId;this.touches.push(f(c,b,a.pointerId,this.cd));this.b.Z=!0;this.b.trigger(Z.prototype.e.lm,this);this.b.trigger(Z.prototype.e.om,this);this.ld=c;this.md=b;this.b.trigger(Z.prototype.e.nm,this);this.b.Z=
!1}};b.Bd=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var c=this.ng(a.pointerId);this.cd=0<=c?this.touches[c].sh:-1;this.Vf=0<=c?this.touches[c].id:-1;this.b.Z=!0;this.b.trigger(Z.prototype.e.km,this);this.b.trigger(Z.prototype.e.Dj,this);0<=c&&(b||this.touches[c].eo(this,c),100>y.length&&y.push(this.touches[c]),this.touches.splice(c,1));this.b.Z=!1}};b.Ii=function(a){a.preventDefault&&a.preventDefault();var b=Ua(),
c,d,f,g;c=0;for(d=a.changedTouches.length;c<d;c++)if(f=a.changedTouches[c],g=this.ng(f.identifier),0<=g){var h=this.b.P?e:jQuery(this.b.canvas).offset();g=this.touches[g];2>b-g.time||g.update(b,f.pageX-h.left,f.pageY-h.top)}};b.Ji=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var b=this.b.P?e:jQuery(this.b.canvas).offset();Ua();this.b.Z=!0;var c,d,g,h;c=0;for(d=a.changedTouches.length;c<d;c++)if(g=a.changedTouches[c],h=this.ng(g.identifier),-1===h){h=g.pageX-b.left;var k=g.pageY-b.top;this.cd=
this.touches.length;this.Vf=g.identifier;this.touches.push(f(h,k,g.identifier,this.cd));this.b.trigger(Z.prototype.e.lm,this);this.b.trigger(Z.prototype.e.om,this);this.ld=h;this.md=k;this.b.trigger(Z.prototype.e.nm,this)}this.b.Z=!1};b.Ff=function(a,b){a.preventDefault&&gb(a)&&a.preventDefault();this.b.Z=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.ng(e.identifier),0<=e&&(this.cd=this.touches[e].sh,this.Vf=this.touches[e].id,this.b.trigger(Z.prototype.e.km,
this),this.b.trigger(Z.prototype.e.Dj,this),b||this.touches[e].eo(this,e),100>y.length&&y.push(this.touches[e]),this.touches.splice(e,1));this.b.Z=!1};b.rv=function(){return this.b.nf&&0===this.dh&&0!==m?90*m:this.b.pc&&0===this.dh&&0!==t?90*t:this.dh};b.sv=function(){return this.b.nf&&0===this.eh&&0!==d?-90*d:this.b.pc&&0===this.eh&&0!==n?90*n:this.eh};b.uv=function(){return this.b.nf&&0===this.fh&&0!==h?90*h:this.b.pc&&0===this.fh&&0!==s?90*s:this.fh};b.Yg=function(a){a.preventDefault&&this.b.mf&&
!this.b.vd&&a.preventDefault();this.Ji({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.gl=!0};b.Zg=function(a){this.gl&&this.Ii({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};b.$g=function(a){a.preventDefault&&this.b.mf&&!this.b.vd&&a.preventDefault();this.b.mf=!0;this.Ff({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.gl=!1};b.Pl=function(){var a,b,c,d=Ua();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Wk=d),c.Zs(this,
a)};l.prototype.om=function(){return!0};l.prototype.Dj=function(){return!0};l.prototype.nm=function(a){return a?this.b.Rf(a,this.ld,this.md,!1):!1};var F=[];l.prototype.Np=function(a){if(!a)return!1;var b=a.fa(),c=b.mc(),d,e,f,g,h,k;f=0;for(g=c.length;f<g;f++){var l=c[f];l.Wa();h=0;for(k=this.touches.length;h<k;h++)if(e=this.touches[h],d=l.d.na(e.x,e.y,!0),e=l.d.na(e.x,e.y,!1),l.Hb(d,e)){F.push(l);break}}return F.length?(b.ka=!1,xa(b.c,F),a.hd(),F.length=0,!0):!1};l.prototype.lm=function(a){a=Math.floor(a);
return a===this.cd};l.prototype.km=function(a){a=Math.floor(a);return a===this.cd};l.prototype.gq=function(){return!0};l.prototype.pq=function(){return!0};l.prototype.bq=function(){return!0};l.prototype.hq=function(a){return a?this.b.Rf(a,this.ld,this.md,!1):!1};l.prototype.qq=function(a){return a?this.b.Rf(a,this.ld,this.md,!1):!1};l.prototype.cq=function(a){return a?this.b.Rf(a,this.ld,this.md,!1):!1};a.e=new l;c.prototype.pm=function(a,b){var c=this.kf;if(0>c||c>=this.touches.length)a.u(0);else{var d,
e,f,g,h;ga(b)?(d=this.b.rd(0),e=d.scale,f=d.Db,g=d.uc,h=d.j,d.scale=1,d.Db=1,d.uc=1,d.j=0,a.u(d.na(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Db=f,d.uc=g,d.j=h):(d=P(b)?this.b.rd(b):this.b.pg(b))?a.u(d.na(this.touches[c].x,this.touches[c].y,!0)):a.u(0)}};c.prototype.qm=function(a,b){var c=this.kf;if(0>c||c>=this.touches.length)a.u(0);else{var d,e,f,g,h;ga(b)?(d=this.b.rd(0),e=d.scale,f=d.Db,g=d.vc,h=d.j,d.scale=1,d.Db=1,d.vc=1,d.j=0,a.u(d.na(this.touches[c].x,this.touches[c].y,!1)),d.scale=
e,d.Db=f,d.vc=g,d.j=h):(d=P(b)?this.b.rd(b):this.b.pg(b))?a.u(d.na(this.touches[c].x,this.touches[c].y,!1)):a.u(0)}};a.fb=new c})();
function oc(k){this.b=k;var p=this;this.b.P||(jQuery(document).mousemove(function(f){p.Zg(f)}),jQuery(document).mousedown(function(f){p.Yg(f)}),jQuery(document).mouseup(function(f){p.$g(f)}));k=0<this.b.hb?document:this.b.canvas;this.b.Za?k=window.Canvas:this.b.Wb&&(k=window);window.navigator.pointerEnabled?(k.addEventListener("pointerdown",function(f){p.bh(f)},!1),k.addEventListener("pointermove",function(f){p.ah(f)},!1),k.addEventListener("pointerup",function(f){p.Bd(f)},!1),k.addEventListener("pointercancel",
function(f){p.Bd(f)},!1)):window.navigator.msPointerEnabled?(k.addEventListener("MSPointerDown",function(f){p.bh(f)},!1),k.addEventListener("MSPointerMove",function(f){p.ah(f)},!1),k.addEventListener("MSPointerUp",function(f){p.Bd(f)},!1),k.addEventListener("MSPointerCancel",function(f){p.Bd(f)},!1)):(k.addEventListener("touchstart",function(f){p.Ji(f)},!1),k.addEventListener("touchmove",function(f){p.Ii(f)},!1),k.addEventListener("touchend",function(f){p.Ff(f)},!1),k.addEventListener("touchcancel",
function(f){p.Ff(f)},!1))}
(function(){function k(c){var a,b;a=0;for(b=c.G.length;a<b;a++)if(c.G[a]instanceof f.qa)return c.G[a];return null}function p(){}var f=oc.prototype,q={left:0,top:0};f.Yg=function(c){1===c.which&&this.ml("leftmouse",c.pageX,c.pageY)};f.Zg=function(c){1===c.which&&this.nl("leftmouse",c.pageX,c.pageY)};f.$g=function(c){1===c.which&&this.ol("leftmouse")};f.Ji=function(c){c.preventDefault&&gb(c)&&c.preventDefault();var a,b,e,f;a=0;for(b=c.changedTouches.length;a<b;a++)e=c.changedTouches[a],f=e.identifier,
this.ml(f?f.toString():"<none>",e.pageX,e.pageY)};f.Ii=function(c){c.preventDefault&&c.preventDefault();var a,b,e,f;a=0;for(b=c.changedTouches.length;a<b;a++)e=c.changedTouches[a],f=e.identifier,this.nl(f?f.toString():"<none>",e.pageX,e.pageY)};f.Ff=function(c){c.preventDefault&&gb(c)&&c.preventDefault();var a,b,e;a=0;for(b=c.changedTouches.length;a<b;a++)e=c.changedTouches[a],e=e.identifier,this.ol(e?e.toString():"<none>")};f.bh=function(c){c.pointerType!==c.MSPOINTER_TYPE_MOUSE&&"mouse"!==c.pointerType&&
(c.preventDefault&&gb(c)&&c.preventDefault(),this.ml(c.pointerId.toString(),c.pageX,c.pageY))};f.ah=function(c){c.pointerType!==c.MSPOINTER_TYPE_MOUSE&&"mouse"!==c.pointerType&&(c.preventDefault&&c.preventDefault(),this.nl(c.pointerId.toString(),c.pageX,c.pageY))};f.Bd=function(c){c.pointerType!==c.MSPOINTER_TYPE_MOUSE&&"mouse"!==c.pointerType&&(c.preventDefault&&gb(c)&&c.preventDefault(),this.ol(c.pointerId.toString()))};f.ml=function(c,a,b){var e=this.b.P?q:jQuery(this.b.canvas).offset();a-=e.left;
b-=e.top;var f,d,l,p,e=this.Bf.Mc(),n,t,y,r=null;n=0;for(t=e.length;n<t;n++)if(y=e[n],f=k(y),f.enabled&&!f.we&&(f=y.d.na(a,b,!0),d=y.d.na(a,b,!1),y.Wa(),y.Hb(f,d)))r?y.d.index>r.d.index?(r=y,l=f,p=d):y.d.index===r.d.index&&y.nc()>r.nc()&&(r=y,l=f,p=d):(r=y,l=f,p=d);r&&k(r).it(c,l,p)};f.nl=function(c,a,b){var e=this.b.P?q:jQuery(this.b.canvas).offset();a-=e.left;b-=e.top;var f,d=this.Bf.Mc(),l,p,n;l=0;for(p=d.length;l<p;l++)f=d[l],n=k(f),!n.enabled||!n.we||n.we&&n.ek!==c||(e=f.d.na(a,b,!0),f=f.d.na(a,
b,!1),n.mt(e,f))};f.ol=function(c){var a=this.Bf.Mc(),b,e,f;b=0;for(e=a.length;b<e;b++)f=a[b],f=k(f),f.we&&f.ek===c&&f.pt()};f.Pa=function(c){this.behavior=c;this.b=c.b};f.Pa.prototype.ga=function(){};f.qa=function(c,a){this.type=c;this.behavior=c.behavior;this.wb=a;this.b=c.b};var l=f.qa.prototype;l.ga=function(){this.we=!1;this.Tm=this.Sm=0;this.ek="<none>";this.Lj=this.W[0];this.enabled=0!==this.W[1]};l.zb=function(){return{enabled:this.enabled}};l.Zb=function(c){this.enabled=c.enabled;this.we=
!1};l.it=function(c,a,b){this.Sm=a-this.wb.x;this.Tm=b-this.wb.y;this.we=!0;this.ek=c;this.b.Z=!0;this.b.trigger(oc.prototype.e.dq,this.wb);this.b.Z=!1};l.mt=function(c,a){var b=c-this.Sm,e=a-this.Tm;if(0===this.Lj){if(this.wb.x!==b||this.wb.y!==e)this.wb.x=b,this.wb.y=e,this.wb.xa()}else 1===this.Lj?this.wb.x!==b&&(this.wb.x=b,this.wb.xa()):2===this.Lj&&this.wb.y!==e&&(this.wb.y=e,this.wb.xa())};l.pt=function(){this.we=!1;this.b.Z=!0;this.b.trigger(oc.prototype.e.fq,this.wb);this.b.Z=!1};l.Oa=function(){};
p.prototype.dq=function(){return!0};p.prototype.fq=function(){return!0};f.e=new p;f.la=new function(){};f.fb=new function(){}})();
function fc(){return[hc,ic,jc,kc,gc,lc,nc,Z,oc,jc.prototype.e.Mp,gc.prototype.la.wq,jc.prototype.e.Bj,Z.prototype.e.Np,Y.prototype.la.xq,jc.prototype.e.Jp,Y.prototype.e.Fp,Y.prototype.la.uq,Y.prototype.la.Sp,gc.prototype.la.Ej,hc.prototype.la.Play,Y.prototype.la.zq,Z.prototype.e.Dj,Y.prototype.e.im,lc.prototype.la.vq,jc.prototype.e.gm,gc.prototype.e.Op,lc.prototype.la.Ej,Y.prototype.e.yq,lc.prototype.e.mm,lc.prototype.e.Ep,Y.prototype.la.yp,lc.prototype.la.Gp,Y.prototype.e.Dp,Y.prototype.fb.Vs,lc.prototype.fb.Text,
ic.prototype.e.Lp,Y.prototype.la.sq,Y.prototype.la.tq,Y.prototype.la.Rp]};
