// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,da,ea,A,fa,ga,ia,F,ja,ka,ma,na,oa,S,ra,ta,ua,va,wa,xa,ya,X,za,Aa,Da,Ea,Fa,Y,Ga,Ha,Ia,Ja,La,Ma,Na,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(f){return f.__proto__}:function(f){return f.constructor.prototype});
(function(){function f(a,d,b,c){this.set(a,d,b,c)}function p(){this.Tb=this.Sb=this.Vb=this.Ub=this.ic=this.hc=this.ub=this.tb=0}function m(a,d,b,c){a<d?b<c?(l=a<b?a:b,u=d>c?d:c):(l=a<c?a:c,u=d>b?d:b):b<c?(l=d<b?d:b,u=a>c?a:c):(l=d<c?d:c,u=a>b?a:b)}function q(){this.items=this.jd=null;this.Mg=0;D&&(this.jd=new Set);this.$f=[];this.be=!0}function r(a){H[V++]=a}function t(){this.O=this.hj=this.y=this.Ej=0}function n(a){this.Pf=[];this.$l=this.cm=this.dm=this.am=0;this.ph(a)}function e(a,d){this.Kj=
a;this.Jj=d;this.cells={}}function b(a,d){this.Kj=a;this.Jj=d;this.cells={}}function c(a,d,b){var c;return R.length?(c=R.pop(),c.pk=a,c.x=d,c.y=b,c):new ba(a,d,b)}function a(a,d,b){this.pk=a;this.x=d;this.y=b;this.Va=new da}function d(a,d,b){var c;return C.length?(c=C.pop(),c.pk=a,c.x=d,c.y=b,c):new ea(a,d,b)}function h(a,d,b){this.pk=a;this.x=d;this.y=b;this.Va=[];this.Bf=!0;this.fd=new da;this.eg=!1}function g(a,d){return a.Qc-d.Qc}A=function(a){window.console&&window.console.log&&window.console.log(a)};
fa=function(a){window.console&&window.console.error&&window.console.error(a)};aa=function(a){return a};ga=function(a){return"undefined"===typeof a};ia=function(a){return"number"===typeof a};F=function(a){return"string"===typeof a};ja=function(a){return 0<a&&0===(a-1&a)};ka=function(a){--a;for(var d=1;32>d;d<<=1)a=a|a>>d;return a+1};ma=function(a){return 0>a?-a:a};na=function(a,d){return a<d?a:d};oa=Math.PI;S=function(a){return 0<=a?a|0:(a|0)-1};ra=function(a){var d=a|0;return d===a?d:d+1};ta=function(a,
d,b,c,e,w,g,h){var k,l,v,f;a<b?(l=a,k=b):(l=b,k=a);e<g?(f=e,v=g):(f=g,v=e);if(k<f||l>v)return!1;d<c?(l=d,k=c):(l=c,k=d);w<h?(f=w,v=h):(f=h,v=w);if(k<f||l>v)return!1;k=e-a+g-b;l=w-d+h-c;a=b-a;d=c-d;e=g-e;w=h-w;h=ma(d*e-w*a);return ma(e*l-w*k)>h?!1:ma(a*l-d*k)<=h};f.prototype.set=function(a,d,b,c){this.left=a;this.top=d;this.right=b;this.bottom=c};f.prototype.kg=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};f.prototype.width=function(){return this.right-this.left};
f.prototype.height=function(){return this.bottom-this.top};f.prototype.offset=function(a,d){this.left+=a;this.top+=d;this.right+=a;this.bottom+=d;return this};f.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};f.prototype.mc=function(a,d){return a>=this.left&&a<=this.right&&d>=this.top&&d<=this.bottom};f.prototype.pg=function(a){return this.left===a.left&&this.top===a.top&&
this.right===a.right&&this.bottom===a.bottom};ua=f;p.prototype.dj=function(a){this.tb=a.left;this.ub=a.top;this.hc=a.right;this.ic=a.top;this.Ub=a.right;this.Vb=a.bottom;this.Sb=a.left;this.Tb=a.bottom};p.prototype.Fo=function(a,d){if(0===d)this.dj(a);else{var b=Math.sin(d),c=Math.cos(d),e=a.left*b,w=a.top*b,g=a.right*b,b=a.bottom*b,h=a.left*c,k=a.top*c,l=a.right*c,c=a.bottom*c;this.tb=h-w;this.ub=k+e;this.hc=l-w;this.ic=k+g;this.Ub=l-b;this.Vb=c+g;this.Sb=h-b;this.Tb=c+e}};p.prototype.offset=function(a,
d){this.tb+=a;this.ub+=d;this.hc+=a;this.ic+=d;this.Ub+=a;this.Vb+=d;this.Sb+=a;this.Tb+=d;return this};var l=0,u=0;p.prototype.fm=function(a){m(this.tb,this.hc,this.Ub,this.Sb);a.left=l;a.right=u;m(this.ub,this.ic,this.Vb,this.Tb);a.top=l;a.bottom=u};p.prototype.mc=function(a,d){var b=this.tb,c=this.ub,e=this.hc-b,w=this.ic-c,g=this.Ub-b,h=this.Vb-c,k=a-b,l=d-c,v=e*e+w*w,f=e*g+w*h,w=e*k+w*l,y=g*g+h*h,u=g*k+h*l,n=1/(v*y-f*f),e=(y*w-f*u)*n,v=(v*u-f*w)*n;if(0<=e&&0<v&&1>e+v)return!0;e=this.Sb-b;w=this.Tb-
c;v=e*e+w*w;f=e*g+w*h;w=e*k+w*l;n=1/(v*y-f*f);e=(y*w-f*u)*n;v=(v*u-f*w)*n;return 0<=e&&0<v&&1>e+v};p.prototype.Aj=function(a,d){if(d)switch(a){case 0:return this.tb;case 1:return this.hc;case 2:return this.Ub;case 3:return this.Sb;case 4:return this.tb;default:return this.tb}else switch(a){case 0:return this.ub;case 1:return this.ic;case 2:return this.Vb;case 3:return this.Tb;case 4:return this.ub;default:return this.ub}};va=p;wa=function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b]);return a};
xa=function(a,d){var b,c;d=S(d);if(!(0>d||d>=a.length)){b=d;for(c=a.length-1;b<c;b++)a[b]=a[b+1];ya(a,c)}};ya=function(a,d){a.length=d};X=function(a){ya(a,0)};za=function(a,d){X(a);var b,c;b=0;for(c=d.length;b<c;++b)a[b]=d[b]};Aa=function(a,d){a.push.apply(a,d)};Da=function(a,d){var b,c;b=0;for(c=a.length;b<c;++b)if(a[b]===d)return b;return-1};Ea=function(a,d){var b=Da(a,d);-1!==b&&xa(a,b)};Fa=function(a,d,b){return a<d?d:a>b?b:a};Y=function(a){return a/(180/oa)};Ga=function(a){return 180/oa*a};Ha=
function(a){a%=360;0>a&&(a+=360);return a};Ia=function(a){a%=2*oa;0>a&&(a+=2*oa);return a};Ja=function(a){return Ha(Ga(a))};La=function(a){return Ia(Y(a))};Ma=function(a,d,b,c){return Math.atan2(c-d,b-a)};Na=function(a,d){if(a===d)return 0;var b=Math.sin(a),c=Math.cos(a),e=Math.sin(d),w=Math.cos(d),b=b*e+c*w;return 1<=b?0:-1>=b?oa:Math.acos(b)};Ta=function(a,d,b){var c=Math.sin(a),e=Math.cos(a),w=Math.sin(d),g=Math.cos(d);return Math.acos(c*w+e*g)>b?0<e*w-c*g?Ia(a+b):Ia(a-b):Ia(d)};Ua=function(a,
d){var b=Math.sin(a),c=Math.cos(a),e=Math.sin(d),w=Math.cos(d);return 0>=c*e-b*w};Va=function(a,d,b,c,e,w){if(0===b)return w?a:d;var g=Math.sin(b);b=Math.cos(b);a-=c;d-=e;var h=a*g;a=a*b-d*g;d=d*b+h;return w?a+c:d+e};Wa=function(a,d,b,c){a=b-a;d=c-d;return Math.sqrt(a*a+d*d)};Xa=function(a,d){return!a!==!d};Ya=function(a){for(var d in a)if(a.hasOwnProperty(d))return!0;return!1};Za=function(a){for(var d in a)a.hasOwnProperty(d)&&delete a[d]};var K=+new Date;$a=function(){if("undefined"!==typeof window.performance){var a=
window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-K};var k=!1,v=k=!1,ca=!1;"undefined"!==typeof window&&(k=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),k=!k&&/safari/i.test(navigator.userAgent),v=/(iphone|ipod|ipad)/i.test(navigator.userAgent),ca=window.c2ejecta);var D=!k&&!ca&&!v&&
"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;q.prototype.contains=function(a){return this.yd()?!1:D?this.jd.has(a):this.items&&this.items.hasOwnProperty(a)};q.prototype.add=function(a){if(D)this.jd.has(a)||(this.jd.add(a),this.be=!1);else{var d=a.toString(),b=this.items;b?b.hasOwnProperty(d)||(b[d]=a,this.Mg++,this.be=!1):(this.items={},this.items[d]=a,this.Mg=1,this.be=!1)}};q.prototype.remove=function(a){if(!this.yd())if(D)this.jd.has(a)&&(this.jd["delete"](a),this.be=!1);
else if(this.items){a=a.toString();var d=this.items;d.hasOwnProperty(a)&&(delete d[a],this.Mg--,this.be=!1)}};q.prototype.clear=function(){this.yd()||(D?this.jd.clear():(this.items=null,this.Mg=0),X(this.$f),this.be=!0)};q.prototype.yd=function(){return 0===this.count()};q.prototype.count=function(){return D?this.jd.size:this.Mg};var H=null,V=0;q.prototype.gu=function(){if(!this.be){if(D)X(this.$f),H=this.$f,V=0,this.jd.forEach(r),H=null,V=0;else{var a=this.$f;X(a);var d,b=0,c=this.items;if(c)for(d in c)c.hasOwnProperty(d)&&
(a[b++]=c[d])}this.be=!0}};q.prototype.xe=function(){this.gu();return this.$f};da=q;new da;ab=function(a,d){D?bb(a,d.jd):cb(a,d.xe())};bb=function(a,d){var b,c,e,w;c=b=0;for(e=a.length;b<e;++b)w=a[b],d.has(w)||(a[c++]=w);ya(a,c)};cb=function(a,d){var b,c,e,w;c=b=0;for(e=a.length;b<e;++b)w=a[b],-1===Da(d,w)&&(a[c++]=w);ya(a,c)};t.prototype.add=function(a){this.y=a-this.Ej;this.hj=this.O+this.y;this.Ej=this.hj-this.O-this.y;this.O=this.hj};t.prototype.reset=function(){this.O=this.hj=this.y=this.Ej=
0};eb=t;fb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};n.prototype.ph=function(a){this.oo=a;this.Ui=a.length/2;this.Pf.length=a.length;this.Fj=this.Gj=-1;this.im=0};n.prototype.Ss=function(){return!this.oo.length};n.prototype.Ra=function(){for(var a=this.Pf,d=a[0],b=d,c=a[1],e=c,w,g,h=1,k=this.Ui;h<k;++h)g=2*h,w=a[g],g=a[g+1],w<d&&(d=w),w>b&&(b=w),g<c&&(c=g),g>e&&(e=g);this.am=d;this.cm=b;this.dm=c;this.$l=e};n.prototype.dj=function(a,d,b){this.Pf.length=8;this.Ui=4;var c=this.Pf;
c[0]=a.left-d;c[1]=a.top-b;c[2]=a.right-d;c[3]=a.top-b;c[4]=a.right-d;c[5]=a.bottom-b;c[6]=a.left-d;c[7]=a.bottom-b;this.Gj=a.right-a.left;this.Fj=a.bottom-a.top;this.Ra()};n.prototype.Bq=function(a,d,b){if(this.Gj!==a||this.Fj!==d||this.im!==b){this.Gj=a;this.Fj=d;this.im=b;var c,e,w,g,h,k=0,l=1,v=this.oo,f=this.Pf;0!==b&&(k=Math.sin(b),l=Math.cos(b));b=0;for(w=this.Ui;b<w;b++)c=2*b,e=c+1,g=v[c]*a,h=v[e]*d,f[c]=g*l-h*k,f[e]=h*l+g*k;this.Ra()}};n.prototype.mc=function(a,d){var b=this.Pf;if(a===b[0]&&
d===b[1])return!0;var c,e,w,g=this.Ui,h=this.am-110,k=this.dm-101,l=this.cm+131,v=this.$l+120,f,u,n=0,p=0;for(c=0;c<g;c++)e=2*c,w=(c+1)%g*2,f=b[e],e=b[e+1],u=b[w],w=b[w+1],ta(h,k,a,d,f,e,u,w)&&n++,ta(l,v,a,d,f,e,u,w)&&p++;return 1===n%2||1===p%2};gb=n;e.prototype.je=function(a,d,b){var e;e=this.cells[a];return e?(e=e[d])?e:b?(e=c(this,a,d),this.cells[a][d]=e):null:b?(e=c(this,a,d),this.cells[a]={},this.cells[a][d]=e):null};e.prototype.wb=function(a){return S(a/this.Kj)};e.prototype.xb=function(a){return S(a/
this.Jj)};e.prototype.update=function(a,d,b){var c,e,w,g,h;if(d)for(c=d.left,e=d.right;c<=e;++c)for(w=d.top,g=d.bottom;w<=g;++w)if(!b||!b.mc(c,w))if(h=this.je(c,w,!1))h.remove(a),h.yd()&&(h.Va.clear(),1E3>R.length&&R.push(h),this.cells[c][w]=null);if(b)for(c=b.left,e=b.right;c<=e;++c)for(w=b.top,g=b.bottom;w<=g;++w)d&&d.mc(c,w)||this.je(c,w,!0).wk(a)};e.prototype.ro=function(a,d){var b,c,e,w,g,h;b=this.wb(a.left);e=this.xb(a.top);c=this.wb(a.right);for(g=this.xb(a.bottom);b<=c;++b)for(w=e;w<=g;++w)(h=
this.je(b,w,!1))&&h.dump(d)};hb=e;b.prototype.je=function(a,b,c){var e;e=this.cells[a];return e?(e=e[b])?e:c?(e=d(this,a,b),this.cells[a][b]=e):null:c?(e=d(this,a,b),this.cells[a]={},this.cells[a][b]=e):null};b.prototype.wb=function(a){return S(a/this.Kj)};b.prototype.xb=function(a){return S(a/this.Jj)};b.prototype.update=function(a,d,b){var c,e,w,g,h;if(d)for(c=d.left,e=d.right;c<=e;++c)for(w=d.top,g=d.bottom;w<=g;++w)if(!b||!b.mc(c,w))if(h=this.je(c,w,!1))h.remove(a),h.yd()&&(h.reset(),1E3>C.length&&
C.push(h),this.cells[c][w]=null);if(b)for(c=b.left,e=b.right;c<=e;++c)for(w=b.top,g=b.bottom;w<=g;++w)d&&d.mc(c,w)||this.je(c,w,!0).wk(a)};b.prototype.ro=function(a,d,b,c,e){var w,g;a=this.wb(a);d=this.xb(d);b=this.wb(b);for(w=this.xb(c);a<=b;++a)for(c=d;c<=w;++c)(g=this.je(a,c,!1))&&g.dump(e)};b.prototype.Ys=function(a){var d,b,c,e,w;d=a.left;c=a.top;b=a.right;for(e=a.bottom;d<=b;++d)for(a=c;a<=e;++a)if(w=this.je(d,a,!1))w.Bf=!1};ib=b;var R=[];a.prototype.yd=function(){return this.Va.yd()};a.prototype.wk=
function(a){this.Va.add(a)};a.prototype.remove=function(a){this.Va.remove(a)};a.prototype.dump=function(a){Aa(a,this.Va.xe())};ba=a;var C=[];h.prototype.yd=function(){if(!this.Va.length)return!0;if(this.Va.length>this.fd.count())return!1;this.bk();return!0};h.prototype.wk=function(a){this.fd.contains(a)?(this.fd.remove(a),this.fd.yd()&&(this.eg=!1)):this.Va.length?(this.Va[this.Va.length-1].Zc()>a.Zc()&&(this.Bf=!1),this.Va.push(a)):(this.Va.push(a),this.Bf=!0)};h.prototype.remove=function(a){this.fd.add(a);
this.eg=!0;30<=this.fd.count()&&this.bk()};h.prototype.bk=function(){this.eg&&(this.fd.count()===this.Va.length?this.reset():(ab(this.Va,this.fd),this.fd.clear(),this.eg=!1))};h.prototype.lr=function(){this.Bf||(this.Va.sort(g),this.Bf=!0)};h.prototype.reset=function(){X(this.Va);this.Bf=!0;this.fd.clear();this.eg=!1};h.prototype.dump=function(a){this.bk();this.lr();this.Va.length&&a.push(this.Va)};ea=h;var z="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");
jb=function(a){return 0>=a||11<=a?"source-over":z[a-1]};kb=function(a,d,b){if(b)switch(a.nb=b.ONE,a.jb=b.ONE_MINUS_SRC_ALPHA,d){case 1:a.nb=b.ONE;a.jb=b.ONE;break;case 3:a.nb=b.ONE;a.jb=b.ZERO;break;case 4:a.nb=b.ONE_MINUS_DST_ALPHA;a.jb=b.ONE;break;case 5:a.nb=b.DST_ALPHA;a.jb=b.ZERO;break;case 6:a.nb=b.ZERO;a.jb=b.SRC_ALPHA;break;case 7:a.nb=b.ONE_MINUS_DST_ALPHA;a.jb=b.ZERO;break;case 8:a.nb=b.ZERO;a.jb=b.ONE_MINUS_SRC_ALPHA;break;case 9:a.nb=b.DST_ALPHA;a.jb=b.ONE_MINUS_SRC_ALPHA;break;case 10:a.nb=
b.ONE_MINUS_DST_ALPHA,a.jb=b.SRC_ALPHA}};lb=function(a){return Math.round(1E6*a)/1E6};mb=function(a,d){return"string"!==typeof a||"string"!==typeof d||a.length!==d.length?!1:a===d?!0:a.toLowerCase()===d.toLowerCase()};nb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||mb(a.tagName,"canvas")?!0:!1}})();var fc="undefined"!==typeof Float32Array?Float32Array:Array;function gc(f){var p=new fc(3);f&&(p[0]=f[0],p[1]=f[1],p[2]=f[2]);return p}
function hc(f){var p=new fc(16);f&&(p[0]=f[0],p[1]=f[1],p[2]=f[2],p[3]=f[3],p[4]=f[4],p[5]=f[5],p[6]=f[6],p[7]=f[7],p[8]=f[8],p[9]=f[9],p[10]=f[10],p[11]=f[11],p[12]=f[12],p[13]=f[13],p[14]=f[14],p[15]=f[15]);return p}function ic(f,p){p[0]=f[0];p[1]=f[1];p[2]=f[2];p[3]=f[3];p[4]=f[4];p[5]=f[5];p[6]=f[6];p[7]=f[7];p[8]=f[8];p[9]=f[9];p[10]=f[10];p[11]=f[11];p[12]=f[12];p[13]=f[13];p[14]=f[14];p[15]=f[15]}
function jc(f,p){var m=p[0],q=p[1];p=p[2];f[0]*=m;f[1]*=m;f[2]*=m;f[3]*=m;f[4]*=q;f[5]*=q;f[6]*=q;f[7]*=q;f[8]*=p;f[9]*=p;f[10]*=p;f[11]*=p}
function kc(f,p,m,q){q||(q=hc());var r,t,n,e,b,c,a,d,h=f[0],g=f[1];f=f[2];t=m[0];n=m[1];r=m[2];m=p[1];c=p[2];h===p[0]&&g===m&&f===c?(f=q,f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1):(m=h-p[0],c=g-p[1],a=f-p[2],d=1/Math.sqrt(m*m+c*c+a*a),m*=d,c*=d,a*=d,p=n*a-r*c,r=r*m-t*a,t=t*c-n*m,(d=Math.sqrt(p*p+r*r+t*t))?(d=1/d,p*=d,r*=d,t*=d):t=r=p=0,n=c*t-a*r,e=a*p-m*t,b=m*r-c*p,(d=Math.sqrt(n*n+e*e+b*b))?(d=1/d,n*=d,e*=d,b*=d):b=e=n=0,
q[0]=p,q[1]=n,q[2]=m,q[3]=0,q[4]=r,q[5]=e,q[6]=c,q[7]=0,q[8]=t,q[9]=b,q[10]=a,q[11]=0,q[12]=-(p*h+r*g+t*f),q[13]=-(n*h+e*g+b*f),q[14]=-(m*h+c*g+a*f),q[15]=1)}
(function(){function f(e,b,c){this.zd=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.fa=!!c;this.ni=this.Bg=!1;this.Qj=0;this.uj=1;this.Il=1E3;this.nu=(this.Il-this.uj)/32768;this.Hj=gc([0,0,100]);this.rn=gc([0,0,0]);this.fp=gc([0,1,0]);this.Bh=gc([1,1,1]);this.um=!0;this.Ji=hc();this.ac=hc();this.Hk=hc();this.Pj=hc();this.m=e;this.version=0===this.m.getParameter(this.m.VERSION).indexOf("WebGL 2")?2:1;this.Tm()}function p(e,b,c){this.m=e;this.qh=
b;this.name=c;this.sc=e.getAttribLocation(b,"aPos");this.re=e.getAttribLocation(b,"aTex");this.pn=e.getUniformLocation(b,"matP");this.Ei=e.getUniformLocation(b,"matMV");this.Gf=e.getUniformLocation(b,"opacity");this.Mk=e.getUniformLocation(b,"colorFill");this.qn=e.getUniformLocation(b,"samplerFront");this.Tg=e.getUniformLocation(b,"samplerBack");this.Ye=e.getUniformLocation(b,"destStart");this.Xe=e.getUniformLocation(b,"destEnd");this.Vg=e.getUniformLocation(b,"seconds");this.Ok=e.getUniformLocation(b,
"pixelWidth");this.Nk=e.getUniformLocation(b,"pixelHeight");this.Sg=e.getUniformLocation(b,"layerScale");this.Rg=e.getUniformLocation(b,"layerAngle");this.Wg=e.getUniformLocation(b,"viewOrigin");this.Ug=e.getUniformLocation(b,"scrollPos");this.Es=!!(this.Ok||this.Nk||this.Vg||this.Tg||this.Ye||this.Xe||this.Sg||this.Rg||this.Wg||this.Ug);this.zn=this.An=-999;this.Ii=1;this.vn=this.un=0;this.xn=this.tn=this.sn=1;this.Dn=this.Cn=this.Bn=this.Fn=this.En=this.wn=0;this.Gk=[];this.yn=hc();this.Gf&&e.uniform1f(this.Gf,
1);this.Mk&&e.uniform4f(this.Mk,1,1,1,1);this.qn&&e.uniform1i(this.qn,0);this.Tg&&e.uniform1i(this.Tg,1);this.Ye&&e.uniform2f(this.Ye,0,0);this.Xe&&e.uniform2f(this.Xe,1,1);this.Sg&&e.uniform1f(this.Sg,1);this.Rg&&e.uniform1f(this.Rg,0);this.Wg&&e.uniform2f(this.Wg,0,0);this.Ug&&e.uniform2f(this.Ug,0,0);this.Vg&&e.uniform1f(this.Vg,0);this.Re=!1}function m(e,b){return e[0]===b[0]&&e[1]===b[1]&&e[2]===b[2]&&e[3]===b[3]&&e[4]===b[4]&&e[5]===b[5]&&e[6]===b[6]&&e[7]===b[7]&&e[8]===b[8]&&e[9]===b[9]&&
e[10]===b[10]&&e[11]===b[11]&&e[12]===b[12]&&e[13]===b[13]&&e[14]===b[14]&&e[15]===b[15]}function q(e,b){this.type=e;this.n=b;this.m=b.m;this.$c=this.rb=this.Xn=0;this.G=this.yc=null;this.Go=[]}var r=hc();f.prototype.Tm=function(){var e=this.m,b;this.hn=1;this.Ue=this.ne=null;this.Oh=1;e.clearColor(0,0,0,0);e.clear(e.COLOR_BUFFER_BIT);e.enable(e.BLEND);e.blendFunc(e.ONE,e.ONE_MINUS_SRC_ALPHA);e.disable(e.CULL_FACE);e.disable(e.STENCIL_TEST);e.disable(e.DITHER);this.fa?(e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL)):
e.disable(e.DEPTH_TEST);this.jn=e.ONE;this.gn=e.ONE_MINUS_SRC_ALPHA;this.sj=new Float32Array(8E3*(this.fa?3:2));this.ij=new Float32Array(16E3);this.jo=new Float32Array(32E3);this.al=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,this.al);e.bufferData(e.ARRAY_BUFFER,this.jo.byteLength,e.DYNAMIC_DRAW);this.Ah=Array(4);this.wh=Array(4);for(b=0;4>b;b++)this.Ah[b]=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,this.Ah[b]),e.bufferData(e.ARRAY_BUFFER,this.sj.byteLength,e.DYNAMIC_DRAW),this.wh[b]=e.createBuffer(),
e.bindBuffer(e.ARRAY_BUFFER,this.wh[b]),e.bufferData(e.ARRAY_BUFFER,this.ij.byteLength,e.DYNAMIC_DRAW);this.qd=0;this.Hs=e.createBuffer();e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.Hs);for(var c=new Uint16Array(12E3),a=b=0;12E3>b;)c[b++]=a,c[b++]=a+1,c[b++]=a+2,c[b++]=a,c[b++]=a+2,c[b++]=a+3,a+=4;e.bufferData(e.ELEMENT_ARRAY_BUFFER,c,e.STATIC_DRAW);this.bl=this.Xf=this.Rd=0;this.ua=[];b=this.fa?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";c=this.lg({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},b,"<default>");this.ua.push(c);c=this.lg({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.ua.push(c);c=this.lg({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},b,"<earlyz>");this.ua.push(c);c=this.lg({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
b,"<fill>");this.ua.push(c);for(var d in lc)lc.hasOwnProperty(d)&&this.ua.push(this.lg(lc[d],b,d));e.activeTexture(e.TEXTURE0);e.bindTexture(e.TEXTURE_2D,null);this.ae=[];this.pd=0;this.lb=!1;this.pm=this.Ng=-1;this.qf=null;this.$j=e.createFramebuffer();this.Sh=this.Wi=null;this.Zl=!1;this.fa&&(this.Sh=e.createRenderbuffer());this.we=gc([0,0,0]);this.Gn=e.getParameter(e.ALIASED_POINT_SIZE_RANGE)[1];2048<this.Gn&&(this.Gn=2048);this.Gb(0)};p.prototype.Cl=function(e){m(this.yn,e)||(ic(e,this.yn),this.m.uniformMatrix4fv(this.Ei,
!1,e))};f.prototype.lg=function(e,b,c){var a=this.m,d=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(d,e.src);a.compileShader(d);if(!a.getShaderParameter(d,a.COMPILE_STATUS))throw e=a.getShaderInfoLog(d),a.deleteShader(d),Error("error compiling fragment shader: "+e);var h=a.createShader(a.VERTEX_SHADER);a.shaderSource(h,b);a.compileShader(h);if(!a.getShaderParameter(h,a.COMPILE_STATUS))throw e=a.getShaderInfoLog(h),a.deleteShader(d),a.deleteShader(h),Error("error compiling vertex shader: "+e);b=
a.createProgram();a.attachShader(b,d);a.attachShader(b,h);a.linkProgram(b);if(!a.getProgramParameter(b,a.LINK_STATUS))throw e=a.getProgramInfoLog(b),a.deleteShader(d),a.deleteShader(h),a.deleteProgram(b),Error("error linking shader program: "+e);a.useProgram(b);a.deleteShader(d);a.deleteShader(h);d=new p(a,b,c);d.Yj=e.Yj||0;d.Zj=e.Zj||0;d.om=!!e.om;d.Lc=!!e.Lc;d.Vl=!!e.Vl;d.H=e.H||[];e=0;for(h=d.H.length;e<h;e++)d.H[e][1]=a.getUniformLocation(b,d.H[e][0]),d.Gk.push(0),a.uniform1f(d.H[e][1],0);return d};
f.prototype.nk=function(e){var b,c;b=0;for(c=this.ua.length;b<c;b++)if(this.ua[b].name===e)return b;return-1};f.prototype.no=function(e,b,c){var a=this.ac,d=this.Ji,h=[0,0,0,0,0,0,0,0];h[0]=a[0]*e+a[4]*b+a[12];h[1]=a[1]*e+a[5]*b+a[13];h[2]=a[2]*e+a[6]*b+a[14];h[3]=a[3]*e+a[7]*b+a[15];h[4]=d[0]*h[0]+d[4]*h[1]+d[8]*h[2]+d[12]*h[3];h[5]=d[1]*h[0]+d[5]*h[1]+d[9]*h[2]+d[13]*h[3];h[6]=d[2]*h[0]+d[6]*h[1]+d[10]*h[2]+d[14]*h[3];h[7]=-h[2];0!==h[7]&&(h[7]=1/h[7],h[4]*=h[7],h[5]*=h[7],h[6]*=h[7],c[0]=(.5*h[4]+
.5)*this.width,c[1]=(.5*h[5]+.5)*this.height)};f.prototype.Ld=function(e,b,c){if(this.width!==e||this.height!==b||c){this.he();c=this.m;this.width=e;this.height=b;c.viewport(0,0,e,b);kc(this.Hj,this.rn,this.fp,this.ac);if(this.fa){var a=-e/2;e=e/2;var d=b/2;b=-b/2;var h=this.uj,g=this.Il,l=this.Ji;l||(l=hc());var f=e-a,n=b-d,k=g-h;l[0]=2/f;l[1]=0;l[2]=0;l[3]=0;l[4]=0;l[5]=2/n;l[6]=0;l[7]=0;l[8]=0;l[9]=0;l[10]=-2/k;l[11]=0;l[12]=-(a+e)/f;l[13]=-(b+d)/n;l[14]=-(g+h)/k;l[15]=1;this.Bh[0]=1;this.Bh[1]=
1}else b=e/b,a=this.uj,e=this.Il,l=this.Ji,g=a*Math.tan(45*Math.PI/360),b*=g,d=-b,h=-g,l||(l=hc()),f=b-d,n=g-h,k=e-a,l[0]=2*a/f,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=2*a/n,l[6]=0,l[7]=0,l[8]=(b+d)/f,l[9]=(g+h)/n,l[10]=-(e+a)/k,l[11]=-1,l[12]=0,l[13]=0,l[14]=-(e*a*2)/k,l[15]=0,a=[0,0],e=[0,0],this.no(0,0,a),this.no(1,1,e),this.Bh[0]=1/(e[0]-a[0]),this.Bh[1]=-1/(e[1]-a[1]);a=0;for(e=this.ua.length;a<e;a++)d=this.ua[a],d.Re=!1,d.pn&&(c.useProgram(d.qh),c.uniformMatrix4fv(d.pn,!1,this.Ji));c.useProgram(this.ua[this.Ng].qh);
c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE0);this.Ue=this.ne=null;this.Sh&&(c.bindFramebuffer(c.FRAMEBUFFER,this.$j),c.bindRenderbuffer(c.RENDERBUFFER,this.Sh),c.renderbufferStorage(c.RENDERBUFFER,c.DEPTH_COMPONENT16,this.width,this.height),this.Zl||(c.framebufferRenderbuffer(c.FRAMEBUFFER,c.DEPTH_ATTACHMENT,c.RENDERBUFFER,this.Sh),this.Zl=!0),c.bindRenderbuffer(c.RENDERBUFFER,null),c.bindFramebuffer(c.FRAMEBUFFER,null),
this.Wi=null)}};f.prototype.vc=function(){kc(this.Hj,this.rn,this.fp,this.ac);jc(this.ac,this.Bh)};f.prototype.translate=function(e,b){if(0!==e||0!==b){this.we[0]=e;this.we[1]=b;this.we[2]=0;var c=this.ac,a=this.we,d=a[0],h=a[1],a=a[2];c[12]=c[0]*d+c[4]*h+c[8]*a+c[12];c[13]=c[1]*d+c[5]*h+c[9]*a+c[13];c[14]=c[2]*d+c[6]*h+c[10]*a+c[14];c[15]=c[3]*d+c[7]*h+c[11]*a+c[15]}};f.prototype.scale=function(e,b){if(1!==e||1!==b)this.we[0]=e,this.we[1]=b,this.we[2]=1,jc(this.ac,this.we)};f.prototype.Yi=function(e){if(0!==
e){var b=this.ac,c,a=Math.sin(e);e=Math.cos(e);var d=b[0],h=b[1],g=b[2],l=b[3],f=b[4],n=b[5],k=b[6],v=b[7];c?b!==c&&(c[8]=b[8],c[9]=b[9],c[10]=b[10],c[11]=b[11],c[12]=b[12],c[13]=b[13],c[14]=b[14],c[15]=b[15]):c=b;c[0]=d*e+f*a;c[1]=h*e+n*a;c[2]=g*e+k*a;c[3]=l*e+v*a;c[4]=d*-a+f*e;c[5]=h*-a+n*e;c[6]=g*-a+k*e;c[7]=l*-a+v*e}};f.prototype.jc=function(){if(!m(this.Hk,this.ac)){var e=this.Ob();e.type=5;e.G?ic(this.ac,e.G):e.G=hc(this.ac);ic(this.ac,this.Hk);this.lb=!1}};f.prototype.bj=function(e){this.fa&&
(32760<e&&(e=32760),this.Qj=this.Hj[2]-this.uj-e*this.nu)};q.prototype.Vq=function(){var e=this.m,b=this.n;0!==this.rb?(e.depthMask(!0),e.colorMask(!1,!1,!1,!1),e.disable(e.BLEND),e.bindFramebuffer(e.FRAMEBUFFER,b.$j),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,null,0),e.clear(e.DEPTH_BUFFER_BIT),e.bindFramebuffer(e.FRAMEBUFFER,null),b.ni=!0):(e.depthMask(!1),e.colorMask(!0,!0,!0,!0),e.enable(e.BLEND),b.ni=!1)};q.prototype.Zq=function(){this.m.bindTexture(this.m.TEXTURE_2D,
this.yc)};q.prototype.$q=function(){var e=this.m;e.activeTexture(e.TEXTURE1);e.bindTexture(e.TEXTURE_2D,this.yc);e.activeTexture(e.TEXTURE0)};q.prototype.Wq=function(){var e=this.Xn,b=this.n;b.Oh=e;b=b.qf;b.Gf&&b.Ii!==e&&(b.Ii=e,this.m.uniform1f(b.Gf,e))};q.prototype.Qq=function(){this.m.drawElements(this.m.TRIANGLES,this.$c,this.m.UNSIGNED_SHORT,this.rb)};q.prototype.Sq=function(){this.m.blendFunc(this.rb,this.$c)};q.prototype.br=function(){var e,b,c,a=this.n.ua,d=this.n.pm;e=0;for(b=a.length;e<
b;e++)c=a[e],e===d&&c.Ei?(c.Cl(this.G),c.Re=!0):c.Re=!1;ic(this.G,this.n.Pj)};q.prototype.Rq=function(){var e=this.m,b=this.n;this.yc?(b.Ue===this.yc&&(e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,null),b.Ue=null,e.activeTexture(e.TEXTURE0)),e.bindFramebuffer(e.FRAMEBUFFER,b.$j),b.ni||e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.yc,0)):(b.fa||e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,null,0),e.bindFramebuffer(e.FRAMEBUFFER,null))};
q.prototype.Nq=function(){var e=this.m,b=this.rb;0===b?(e.clearColor(this.G[0],this.G[1],this.G[2],this.G[3]),e.clear(e.COLOR_BUFFER_BIT)):1===b?(e.enable(e.SCISSOR_TEST),e.scissor(this.G[0],this.G[1],this.G[2],this.G[3]),e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT),e.disable(e.SCISSOR_TEST)):e.clear(e.DEPTH_BUFFER_BIT)};q.prototype.Uq=function(){var e=this.m;0!==this.rb?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST)};q.prototype.Pq=function(){var e=this.m,b=this.n;b.fa&&e.disable(e.DEPTH_TEST);
var c=b.ua[1];e.useProgram(c.qh);!c.Re&&c.Ei&&(c.Cl(b.Pj),c.Re=!0);e.enableVertexAttribArray(c.sc);e.bindBuffer(e.ARRAY_BUFFER,b.al);e.vertexAttribPointer(c.sc,4,e.FLOAT,!1,0,0);e.drawArrays(e.POINTS,this.rb/4,this.$c);c=b.qf;e.useProgram(c.qh);0<=c.sc&&(e.enableVertexAttribArray(c.sc),e.bindBuffer(e.ARRAY_BUFFER,b.Ah[b.qd]),e.vertexAttribPointer(c.sc,b.fa?3:2,e.FLOAT,!1,0,0));0<=c.re&&(e.enableVertexAttribArray(c.re),e.bindBuffer(e.ARRAY_BUFFER,b.wh[b.qd]),e.vertexAttribPointer(c.re,2,e.FLOAT,!1,
0,0));b.fa&&e.enable(e.DEPTH_TEST)};q.prototype.Xq=function(){var e=this.m,b=this.n,c=b.ua[this.rb];b.pm=this.rb;b.qf=c;e.useProgram(c.qh);!c.Re&&c.Ei&&(c.Cl(b.Pj),c.Re=!0);c.Gf&&c.Ii!==b.Oh&&(c.Ii=b.Oh,e.uniform1f(c.Gf,b.Oh));0<=c.sc&&(e.enableVertexAttribArray(c.sc),e.bindBuffer(e.ARRAY_BUFFER,b.Ah[b.qd]),e.vertexAttribPointer(c.sc,b.fa?3:2,e.FLOAT,!1,0,0));0<=c.re&&(e.enableVertexAttribArray(c.re),e.bindBuffer(e.ARRAY_BUFFER,b.wh[b.qd]),e.vertexAttribPointer(c.re,2,e.FLOAT,!1,0,0))};q.prototype.Tq=
function(){var e=this.G;this.m.uniform4f(this.n.qf.Mk,e[0],e[1],e[2],e[3])};q.prototype.Yq=function(){var e,b,c=this.n.qf,a=this.m;e=this.G;c.Tg&&this.n.Ue!==this.yc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,this.yc),this.n.Ue=this.yc,a.activeTexture(a.TEXTURE0));var d=e[0];c.Ok&&d!==c.An&&(c.An=d,a.uniform1f(c.Ok,d));d=e[1];c.Nk&&d!==c.zn&&(c.zn=d,a.uniform1f(c.Nk,d));d=e[2];b=e[3];!c.Ye||d===c.un&&b===c.vn||(c.un=d,c.vn=b,a.uniform2f(c.Ye,d,b));d=e[4];b=e[5];!c.Xe||d===c.sn&&b===
c.tn||(c.sn=d,c.tn=b,a.uniform2f(c.Xe,d,b));d=e[6];c.Sg&&d!==c.xn&&(c.xn=d,a.uniform1f(c.Sg,d));d=e[7];c.Rg&&d!==c.wn&&(c.wn=d,a.uniform1f(c.Rg,d));d=e[8];b=e[9];!c.Wg||d===c.En&&b===c.Fn||(c.En=d,c.Fn=b,a.uniform2f(c.Wg,d,b));d=e[10];b=e[11];!c.Ug||d===c.Bn&&b===c.Cn||(c.Bn=d,c.Cn=b,a.uniform2f(c.Ug,d,b));d=e[12];c.Vg&&d!==c.Dn&&(c.Dn=d,a.uniform1f(c.Vg,d));if(c.H.length)for(e=0,b=c.H.length;e<b;e++)d=this.Go[e],d!==c.Gk[e]&&(c.Gk[e]=d,a.uniform1f(c.H[e][1],d))};f.prototype.Ob=function(){this.pd===
this.ae.length&&this.ae.push(new q(0,this));return this.ae[this.pd++]};f.prototype.he=function(){if(0!==this.pd&&!this.m.isContextLost()){var e=this.m;0<this.bl&&(e.bindBuffer(e.ARRAY_BUFFER,this.al),e.bufferSubData(e.ARRAY_BUFFER,0,this.jo.subarray(0,this.bl)),b&&0<=b.sc&&"<point>"===b.name&&e.vertexAttribPointer(b.sc,4,e.FLOAT,!1,0,0));if(0<this.Rd){var b=this.qf;e.bindBuffer(e.ARRAY_BUFFER,this.Ah[this.qd]);e.bufferSubData(e.ARRAY_BUFFER,0,this.sj.subarray(0,this.Rd));b&&0<=b.sc&&"<point>"!==b.name&&
e.vertexAttribPointer(b.sc,this.fa?3:2,e.FLOAT,!1,0,0);e.bindBuffer(e.ARRAY_BUFFER,this.wh[this.qd]);e.bufferSubData(e.ARRAY_BUFFER,0,this.ij.subarray(0,this.Xf));b&&0<=b.re&&"<point>"!==b.name&&e.vertexAttribPointer(b.re,2,e.FLOAT,!1,0,0)}for(var c,e=0,b=this.pd;e<b;e++)switch(c=this.ae[e],c.type){case 1:c.Qq();break;case 2:c.Zq();break;case 3:c.Wq();break;case 4:c.Sq();break;case 5:c.br();break;case 6:c.Rq();break;case 7:c.Nq();break;case 8:c.Pq();break;case 9:c.Xq();break;case 10:c.Yq();break;
case 11:c.$q();break;case 12:c.Tq();break;case 13:c.Uq();break;case 14:c.Vq()}this.bl=this.Xf=this.Rd=this.pd=0;this.ni=this.lb=!1;this.qd++;4<=this.qd&&(this.qd=0)}};f.prototype.Tf=function(e){if(e!==this.hn&&!this.Bg){var b=this.Ob();b.type=3;this.hn=b.Xn=e;this.lb=!1}};f.prototype.gc=function(e){if(e!==this.ne){var b=this.Ob();b.type=2;this.ne=b.yc=e;this.lb=!1}};f.prototype.ue=function(e,b){if((e!==this.jn||b!==this.gn)&&!this.Bg){var c=this.Ob();c.type=4;c.rb=e;c.$c=b;this.jn=e;this.gn=b;this.lb=
!1}};f.prototype.yo=function(){this.ue(this.m.ONE,this.m.ONE_MINUS_SRC_ALPHA)};f.prototype.ih=function(e,b,c,a,d,h,g,l){15992<=this.Rd&&this.he();var f=this.Rd,n=this.Xf,k=this.sj,v=this.ij,p=this.Qj;if(this.lb)this.ae[this.pd-1].$c+=6;else{var m=this.Ob();m.type=1;m.rb=this.fa?f:f/2*3;m.$c=6;this.lb=!0}this.fa?(k[f++]=e,k[f++]=b,k[f++]=p,k[f++]=c,k[f++]=a,k[f++]=p,k[f++]=d,k[f++]=h,k[f++]=p,k[f++]=g,k[f++]=l,k[f++]=p):(k[f++]=e,k[f++]=b,k[f++]=c,k[f++]=a,k[f++]=d,k[f++]=h,k[f++]=g,k[f++]=l);v[n++]=
0;v[n++]=0;v[n++]=1;v[n++]=0;v[n++]=1;v[n++]=1;v[n++]=0;v[n++]=1;this.Rd=f;this.Xf=n};f.prototype.te=function(e,b,c,a,d,h,g,f,n){15992<=this.Rd&&this.he();var p=this.Rd,k=this.Xf,v=this.sj,m=this.ij,q=this.Qj;if(this.lb)this.ae[this.pd-1].$c+=6;else{var H=this.Ob();H.type=1;H.rb=this.fa?p:p/2*3;H.$c=6;this.lb=!0}var H=n.left,r=n.top,t=n.right;n=n.bottom;this.fa?(v[p++]=e,v[p++]=b,v[p++]=q,v[p++]=c,v[p++]=a,v[p++]=q,v[p++]=d,v[p++]=h,v[p++]=q,v[p++]=g,v[p++]=f,v[p++]=q):(v[p++]=e,v[p++]=b,v[p++]=c,
v[p++]=a,v[p++]=d,v[p++]=h,v[p++]=g,v[p++]=f);m[k++]=H;m[k++]=r;m[k++]=t;m[k++]=r;m[k++]=t;m[k++]=n;m[k++]=H;m[k++]=n;this.Rd=p;this.Xf=k};f.prototype.Gb=function(e){if(this.Ng!==e){if(!this.ua[e]){if(0===this.Ng)return;e=0}var b=this.Ob();b.type=9;this.Ng=b.rb=e;this.lb=!1}};f.prototype.fh=function(e){e=this.ua[e];return!(!e.Ye&&!e.Xe)};f.prototype.dl=function(e){e=this.ua[e];return!!(e.Ye||e.Xe||e.om)};f.prototype.cl=function(e){return this.ua[e].Lc};f.prototype.Bt=function(e){e=this.ua[e];return 0!==
e.Yj||0!==e.Zj};f.prototype.ls=function(e){return this.ua[e].Yj};f.prototype.ms=function(e){return this.ua[e].Zj};f.prototype.ns=function(e,b){return this.ua[e].H[b][2]};f.prototype.Ti=function(e){return this.ua[e].Vl};f.prototype.Uf=function(e,b,c,a,d,h,g,f,n,p,k,v,m,q,H){var r=this.ua[this.Ng],t,C;if(r.Es||H.length){t=this.Ob();t.type=10;t.G?ic(this.ac,t.G):t.G=hc();C=t.G;C[0]=b;C[1]=c;C[2]=a;C[3]=d;C[4]=h;C[5]=g;C[6]=f;C[7]=n;C[8]=p;C[9]=k;C[10]=v;C[11]=m;C[12]=q;r.Tg?t.yc=e:t.yc=null;if(H.length)for(c=
t.Go,c.length=H.length,e=0,b=H.length;e<b;e++)c[e]=H[e];this.lb=!1}};f.prototype.clear=function(e,b,c,a){var d=this.Ob();d.type=7;d.rb=0;d.G||(d.G=hc());d.G[0]=e;d.G[1]=b;d.G[2]=c;d.G[3]=a;this.lb=!1};f.prototype.clearRect=function(e,b,c,a){if(!(0>c||0>a)){var d=this.Ob();d.type=7;d.rb=1;d.G||(d.G=hc());d.G[0]=e;d.G[1]=b;d.G[2]=c;d.G[3]=a;this.lb=!1}};f.prototype.Bo=function(e){if(this.fa&&(e=!!e,this.Bg!==e)){var b=this.Ob();b.type=14;b.rb=e?1:0;this.lb=!1;this.Bg=e;this.Wi=null;this.Bg?this.Gb(2):
this.Gb(0)}};f.prototype.Ao=function(e){if(this.fa){var b=this.Ob();b.type=13;b.rb=e?1:0;this.lb=!1}};f.prototype.Fm=function(){ic(this.Hk,r);this.vc();this.jc();var e=this.width/2,b=this.height/2;this.ih(-e,b,e,b,e,-b,-e,-b);ic(r,this.ac);this.jc()};f.prototype.zo=function(e,b,c){this.Gb(3);var a=this.Ob();a.type=12;a.G||(a.G=hc());a.G[0]=e;a.G[1]=b;a.G[2]=c;a.G[3]=1;this.lb=!1};f.prototype.Wt=function(){this.Gb(0)};f.prototype.It=function(){this.Gb(2)};f.prototype.At=function(){this.he();this.m.flush()};
var t=[],n={};f.prototype.Fq=function(){X(t);n={}};f.prototype.nn=function(e,b,c){var a;a=!1;b=!!b;var d=e.src+","+a+","+b+(a?",undefined":""),h=null;if("undefined"!==typeof e.src&&n.hasOwnProperty(d))return h=n[d],h.Ih++,h;this.he();var g=this.m,f=ja(e.width)&&ja(e.height),h=g.createTexture();g.bindTexture(g.TEXTURE_2D,h);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var p=g.RGBA,m=g.RGBA,k=g.UNSIGNED_BYTE;if(c&&!this.zd)switch(c){case 1:m=p=g.RGB;break;case 2:k=g.UNSIGNED_SHORT_4_4_4_4;break;
case 3:k=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:m=p=g.RGB,k=g.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!f&&a){c=document.createElement("canvas");c.width=ka(e.width);c.height=ka(e.height);var v=c.getContext("2d");"undefined"!==typeof v.imageSmoothingEnabled?v.imageSmoothingEnabled=b:(v.webkitImageSmoothingEnabled=b,v.mozImageSmoothingEnabled=b,v.msImageSmoothingEnabled=b);v.drawImage(e,0,0,e.width,e.height,0,0,c.width,c.height);g.texImage2D(g.TEXTURE_2D,0,p,m,k,c)}else g.texImage2D(g.TEXTURE_2D,0,
p,m,k,e);a?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE));b?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),(f||2<=this.version)&&this.um?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_LINEAR),g.generateMipmap(g.TEXTURE_2D)):g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,
g.LINEAR)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST));g.bindTexture(g.TEXTURE_2D,null);this.ne=null;h.Ee=e.width;h.De=e.height;h.Ih=1;h.hm=d;t.push(h);return n[d]=h};f.prototype.Wb=function(e,b,c,a){this.he();var d=this.m;this.zd&&(a=!1);var h=d.createTexture();d.bindTexture(d.TEXTURE_2D,h);d.texImage2D(d.TEXTURE_2D,0,d.RGBA,e,b,0,d.RGBA,a?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,null);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_S,
d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_T,d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,c?d.LINEAR:d.NEAREST);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,c?d.LINEAR:d.NEAREST);d.bindTexture(d.TEXTURE_2D,null);this.ne=null;h.Ee=e;h.De=b;t.push(h);return h};f.prototype.ku=function(e,b,c){this.he();var a=this.m;this.zd&&(c=!1);a.bindTexture(a.TEXTURE_2D,b);a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,
c?a.UNSIGNED_SHORT_4_4_4_4:a.UNSIGNED_BYTE,e)}catch(d){console&&console.error&&console.error("Error updating WebGL texture: ",d)}a.bindTexture(a.TEXTURE_2D,null);this.ne=null};f.prototype.deleteTexture=function(e){e&&("undefined"!==typeof e.Ih&&1<e.Ih?e.Ih--:(this.he(),e===this.ne&&(this.m.bindTexture(this.m.TEXTURE_2D,null),this.ne=null),e===this.Ue&&(this.m.activeTexture(this.m.TEXTURE1),this.m.bindTexture(this.m.TEXTURE_2D,null),this.m.activeTexture(this.m.TEXTURE0),this.Ue=null),Ea(t,e),"undefined"!==
typeof e.hm&&delete n[e.hm],this.m.deleteTexture(e)))};f.prototype.wc=function(e){if(e!==this.Wi){var b=this.Ob();b.type=6;this.Wi=b.yc=e;this.lb=!1}};ob=f})();
(function(){function f(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var d=this;this.xd=(this.oi=/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.Bb=!!a.dc;this.Ym="undefined"!==typeof window.AppMobi||
this.Bb;this.Gc=!!window.c2cocoonjs;this.Hc=!!window.c2ejecta;this.Gc&&(CocoonJS.App.onSuspended.addEventListener(function(){d.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){d.setSuspended(!1)}));this.Hc&&(document.addEventListener("pagehide",function(){d.setSuspended(!0)}),document.addEventListener("pageshow",function(){d.setSuspended(!1)}),document.addEventListener("resize",function(){d.setSize(window.innerWidth,window.innerHeight)}));this.Sa=this.Bb||this.Gc||this.Hc;this.Dg=
/edge\//i.test(navigator.userAgent);this.zd=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Dg;this.an=/tizen/i.test(navigator.userAgent);this.li=/android/i.test(navigator.userAgent)&&!this.an&&!this.zd&&!this.Dg;this.en=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.zd&&!this.Dg;this.Ts=/ipad/i.test(navigator.userAgent);this.Kg=this.en||this.Ts||this.Hc;this.yk=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.zd&&!this.Dg;this.Xm=/amazonwebappplatform/i.test(navigator.userAgent);this.Ls=/firefox/i.test(navigator.userAgent);this.Os=/safari/i.test(navigator.userAgent)&&!this.yk&&!this.zd&&!this.Dg;this.Qs=/windows/i.test(navigator.userAgent);this.pi="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.cn=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.Rs=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Hg=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Ek=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.bn=!!window.cr_windows10;this.Ps=this.cn||this.Rs||this.Ek||this.bn;this.Ks=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.mi=this.li&&!this.yk&&!this.oi&&!this.Ls&&!this.Xm&&!this.Sa;this.devicePixelRatio=
1;this.Ad=this.xd||this.oi||this.Ym||this.Gc||this.li||this.Kg||this.Hg||this.Ek||this.Ks||this.an||this.Hc;this.Ad||(this.Ad=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.qi=!!(this.Kg&&this.xd&&window.webkit);"undefined"===typeof cr_is_preview||this.pi||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.pi=!0);this.canvas=a;this.jm=document.getElementById("c2canvasdiv");
this.n=this.m=null;this.ok="(unavailable)";this.fa=!1;this.Je=0;this.pa=null;this.Zh=!1;this.Un=this.Vn=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.Bb&&(window.c2runtime=this);this.pi&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());
this.mi&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.r=this.width;this.q=this.height;this.Mh=this.width;this.ng=this.height;this.Ef=window.innerWidth;this.Df=window.innerHeight;this.X=!0;this.Gg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.j=[];this.na=[];this.Kk={};this.Jc=[];this.Xj={};this.td=[];this.bg=[];this.nj=[];this.xj=[];this.vq=[];this.Ge={};this.Ak=this.ke=!1;
this.Ic=0;this.zk=this.Ck=!1;this.Uc=[];this.Cg=!1;this.Ai=this.nl="";this.Na=null;this.Bd="";this.uh=this.Jo=!1;this.Yh=[];this.Ie=this.He=0;this.In=30;this.Oj=this.Xg=0;this.Yf=1;this.ab=new eb;this.Sd=new eb;this.Mi=this.bi=this.rg=this.ld=this.We=this.ck=this.ti=0;this.hg=null;this.Uj=[];this.Wj=[];this.Uh=-1;this.Pk=[[]];this.yl=this.Fi=0;this.Vi(null);this.Rk=[];this.Hi=-1;this.On=this.$g=0;this.Jk=!0;this.sg=0;this.vh=[];this.ul=this.fl=-1;this.Lg=!0;this.Di=0;this.Eg=!1;this.Yt=0;this.nf=
null;this.bd=this.Pm=!1;this.Sn=new da;this.Vk=new da;this.Tn=new da;this.to=[];new gb([]);new gb([]);this.$d=[];this.vf={};this.de={};this.Yd={};this.ag={};this.em={};this.mn=this.yi=this.Aa=this.Ma=this.ln=this.xi=this.W=null;this.Zf=this.Fk=!1;this.dk=[null,null];this.Ne=0;this.ak="";this.Gd={};this.sh=this.pe=null;this.Ko="";this.Li=[];this.Ht()}}function p(a,d){return 128>=d?a[3]:256>=d?a[2]:512>=d?a[1]:a[0]}function m(){try{return!!window.indexedDB}catch(a){return!1}}function q(a){a.target.result.createObjectStore("saves",
{keyPath:"slot"})}function r(a,d,b,c){try{var e=indexedDB.open("_C2SaveStates");e.onupgradeneeded=q;e.onerror=c;e.onsuccess=function(e){e=e.target.result;e.onerror=c;e.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:d}).onsuccess=b}}catch(g){c(g)}}function t(a,d,b){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=q;c.onerror=b;c.onsuccess=function(c){c=c.target.result;c.onerror=b;var e=c.transaction(["saves"]).objectStore("saves").get(a);e.onsuccess=function(){e.result?
d(e.result.data):d(null)}}}catch(e){b(e)}}function n(){A("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function e(a){var d,b={};for(d in a)!a.hasOwnProperty(d)||a[d]instanceof da||a[d]&&"undefined"!==typeof a[d].jv||"spriteCreatedDestroyCallback"!==d&&(b[d]=a[d]);return b}var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||
window.msRequestAnimationFrame||window.oRequestAnimationFrame;f.prototype.Ht=function(){var a=this;if(this.qi)this.Tr(function(d){a.Qg(JSON.parse(d))},function(){alert("Error fetching data.js")});else{var d;this.Hg?d=new ActiveXObject("Microsoft.XMLHTTP"):d=new XMLHttpRequest;var b="data.js";if(this.cn||this.Hg||this.Ek||this.bn)b="data.json";d.open("GET",b,!0);var c=!1;if(!this.Sa&&"response"in d&&"responseType"in d)try{d.responseType="json",c="json"===d.responseType}catch(e){c=!1}if(!c&&"responseType"in
d)try{d.responseType="text"}catch(g){}if("overrideMimeType"in d)try{d.overrideMimeType("application/json; charset=utf-8")}catch(h){}this.Hg?d.onreadystatechange=function(){4===d.readyState&&a.Qg(JSON.parse(d.responseText))}:(d.onload=function(){if(c)a.Qg(d.response);else if(a.Hc){var b=d.responseText,b=b.substr(b.indexOf("{"));a.Qg(JSON.parse(b))}else a.Qg(JSON.parse(d.responseText))},d.onerror=function(a){fa("Error requesting "+b+":");fa(a)});d.send()}};f.prototype.Is=function(){var a=this,d,b,c,
e,g,h,k,f,l;this.xf=(!this.Sa||this.Hc||this.xd)&&this.iu&&!this.mi;0===this.yb&&this.Kg&&(this.xf=!1);this.devicePixelRatio=this.xf?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.hb();0<this.yb&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(d){d.preventDefault();a.ct();A("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",
function(){a.n.Tm();a.n.Ld(a.n.width,a.n.height,!0);a.Ma=null;a.Aa=null;a.dk[0]=null;a.dk[1]=null;a.dt();a.X=!0;A("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.jr&&(this.Gc||this.Hc||!this.Sa)&&(d={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.m=this.canvas.getContext("webgl2",d)||this.canvas.getContext("webgl",d)||this.canvas.getContext("experimental-webgl",d))}catch(v){}if(this.m){if(d=this.m.getExtension("WEBGL_debug_renderer_info"))this.ok=
this.m.getParameter(d.UNMASKED_RENDERER_WEBGL)+" ["+this.m.getParameter(d.UNMASKED_VENDOR_WEBGL)+"]";this.fa&&(this.ok+=" [front-to-back enabled]");this.Sa||(this.cb=document.createElement("canvas"),jQuery(this.cb).appendTo(this.canvas.parentNode),this.cb.oncontextmenu=function(){return!1},this.cb.onselectstart=function(){return!1},this.cb.width=Math.round(this.Mh*this.devicePixelRatio),this.cb.height=Math.round(this.ng*this.devicePixelRatio),jQuery(this.cb).css({width:this.Mh+"px",height:this.ng+
"px"}),this.lo(),this.$k=this.cb.getContext("2d"));this.n=new ob(this.m,this.Ad,this.fa);this.n.Ld(this.canvas.width,this.canvas.height);this.n.um=0!==this.cr;this.pa=null;d=0;for(b=this.j.length;d<b;d++)for(g=this.j[d],c=0,e=g.D.length;c<e;c++)k=g.D[c],k.Da=this.n.nk(k.id),k.Lc=this.n.cl(k.Da),this.Zf=this.Zf||this.n.fh(k.Da);d=0;for(b=this.Jc.length;d<b;d++){f=this.Jc[d];c=0;for(e=f.D.length;c<e;c++)k=f.D[c],k.Da=this.n.nk(k.id),k.Lc=this.n.cl(k.Da);f.Pc();c=0;for(e=f.F.length;c<e;c++){l=f.F[c];
g=0;for(h=l.D.length;g<h;g++)k=l.D[g],k.Da=this.n.nk(k.id),k.Lc=this.n.cl(k.Da),this.Zf=this.Zf||this.n.fh(k.Da);l.Pc()}}}else{if(0<this.yb&&this.Bb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.pa=AppMobi.canvas.getContext("2d");try{this.pa.samplingMode=this.wa?"smooth":"sharp",this.pa.globalScale=1,this.pa.HTML5CompatibilityMode=!0,this.pa.imageSmoothingEnabled=this.wa}catch(n){}0!==this.width&&0!==this.height&&(this.pa.width=this.width,
this.pa.height=this.height)}this.pa||(this.Gc?(d={antialias:!!this.wa,alpha:!0},this.pa=this.canvas.getContext("2d",d)):(d={alpha:!0},this.pa=this.canvas.getContext("2d",d)),this.aj(this.pa,this.wa));this.$k=this.cb=null}this.Vo=function(d){a.sb(!1,d)};window==window.top||this.Sa||this.Ps||this.Hg||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Gc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),
-1<window.location.search.indexOf("continuous")&&(A("Reloading for continuous preview"),this.Ai="__c2_continuouspreview",this.uh=!0),this.pt&&!this.Ad&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var d=window.parent;d&&d.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.Mf()});this.Sa||(d=function(a){if(nb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(d){}},
"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",d):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",d):document.addEventListener("touchstart",d),document.addEventListener("mousedown",d));0===this.yb&&this.xf&&1<this.devicePixelRatio&&this.setSize(this.Pa,this.Oa,!0);this.bp();this.Bs();this.go();this.ja={}};f.prototype.setSize=function(a,d,b){var c=0,e=0,g=0,h=0,h=0;if(this.Ef!==a||this.Df!==d||b){this.Ef=a;this.Df=d;var k=this.yb;if((g=(document.mozFullScreen||
document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Eg)&&!this.xd)||0!==this.yb||b)g&&0<this.Ne&&(k=this.Ne),b=this.devicePixelRatio,4<=k?(g=this.Pa/this.Oa,a/d>g?(g*=d,5===k?(h=g*b/this.Pa,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),g=this.Pa*h/b,h=this.Oa*h/b,c=(a-g)/2,e=(d-h)/2,a=g,d=h):(c=(a-g)/2,a=g)):(h=a/g,5===k?(h=h*b/this.Oa,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),g=this.Pa*h/b,h=this.Oa*h/b,c=(a-g)/2,e=(d-h)/2,a=g):e=(d-h)/2,d=h)):this.pi&&this.Eg&&
0===this.Gm&&(c=Math.floor((a-this.Pa)/2),e=Math.floor((d-this.Oa)/2),a=this.Pa,d=this.Oa),2>k&&(this.gg=b),this.Mh=Math.round(a),this.ng=Math.round(d),this.width=Math.round(a*b),this.height=Math.round(d*b),this.X=!0,this.kp?(this.r=this.width,this.q=this.height,this.Xb=!0):this.width<this.Pa&&this.height<this.Oa||1===k?(this.r=this.width,this.q=this.height,this.Xb=!0):(this.r=this.Pa,this.q=this.Oa,this.Xb=!1,2===k?(g=this.Pa/this.Oa,k=this.Ef/this.Df,k<g?this.r=this.q*k:k>g&&(this.q=this.r/k)):
3===k&&(g=this.Pa/this.Oa,k=this.Ef/this.Df,k>g?this.r=this.q*k:k<g&&(this.q=this.r/k))),this.jm&&!this.Sa&&(jQuery(this.jm).css({width:Math.round(a)+"px",height:Math.round(d)+"px","margin-left":Math.floor(c)+"px","margin-top":Math.floor(e)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(d)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*b),this.canvas.height=Math.round(d*b),this.Hc?(this.canvas.style.left=Math.floor(c)+"px",this.canvas.style.top=
Math.floor(e)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(d)+"px"):this.xf&&!this.Sa&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(d)+"px")),this.cb&&(this.cb.width=Math.round(a*b),this.cb.height=Math.round(d*b),this.cb.style.width=this.Mh+"px",this.cb.style.height=this.ng+"px"),this.n&&this.n.Ld(Math.round(a*b),Math.round(d*b)),this.Bb&&this.pa&&(this.pa.width=Math.round(a),this.pa.height=Math.round(d)),this.pa&&this.aj(this.pa,
this.wa),this.bp(),this.en&&!this.xd&&window.scrollTo(0,0)}};f.prototype.bp=function(){if(this.xq&&0!==this.Zk){var a="portrait";2===this.Zk&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(d){console&&console.warn&&
console.warn("Failed to lock orientation: ",d)}}};f.prototype.ct=function(){this.n.Fq();this.Fk=!0;var a,d,b;a=0;for(d=this.j.length;a<d;a++)b=this.j[a],b.Xk&&b.Xk()};f.prototype.dt=function(){this.Fk=!1;var a,d,b;a=0;for(d=this.j.length;a<d;a++)b=this.j[a],b.Wn&&b.Wn()};f.prototype.lo=function(){if(!this.Sa){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Eg)&&!this.xd?jQuery(this.canvas).offset():jQuery(this.canvas).position();
a.position="absolute";jQuery(this.cb).css(a)}};var c=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;f.prototype.setSuspended=function(a){var d;if(a&&!this.Gg)for(A("[Construct 2] Suspending"),this.Gg=!0,-1!==this.fl&&c&&c(this.fl),-1!==this.ul&&clearTimeout(this.ul),a=0,d=this.vh.length;a<d;a++)this.vh[a](!0);else if(!a&&this.Gg){A("[Construct 2] Resuming");this.Gg=!1;this.ti=$a();this.We=
$a();a=this.Xg=this.bi=0;for(d=this.vh.length;a<d;a++)this.vh[a](!1);this.sb(!1)}};f.prototype.uq=function(a){this.vh.push(a)};f.prototype.Wd=function(a){return this.Li[a]};f.prototype.Qg=function(a){a&&a.project||fa("Project model unavailable");a=a.project;this.name=a[0];this.Bm=a[1];this.yb=a[12];this.Gm=a[12];this.Pa=a[10];this.Oa=a[11];this.eo=this.Pa/2;this.fo=this.Oa/2;this.Sa&&!this.Hc&&(4<=a[12]||0===a[12])&&(A("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),
this.Gm=this.yb=3);this.El=a[18];this.qe=a[19];if(0===this.qe){var d=new Image;d.crossOrigin="anonymous";this.Co(d,"loading-logo.png");this.pe={Gi:d}}else if(4===this.qe){d=new Image;d.src="";var b=new Image;b.src="";var c=new Image;c.src="";var e=new Image;e.src="";var g=new Image;g.src="";var h=new Image;h.src="";var k=new Image;k.src="";var f=new Image;f.src="";var l=new Image;l.src="";var v=new Image;v.src="";var n=new Image;n.src="";var p=new Image;p.src="";this.pe={Gi:[d,b,c,e],xt:[g,h,k,f],
mu:[l,v,n,p]}}this.$g=a[21];this.Li=mc();this.kd=new Z(this);d=0;for(b=a[2].length;d<b;d++)k=a[2][d],c=this.Wd(k[0]),pb(k,c.prototype),f=new c(this),f.fj=k[1],f.me=k[2],f.ov=k[5],f.Kn=k[9],f.ra&&f.ra(),this.plugins.push(f);this.Li=mc();d=0;for(b=a[3].length;d<b;d++){k=a[3][d];g=this.Wd(k[1]);f=null;c=0;for(e=this.plugins.length;c<e;c++)if(this.plugins[c]instanceof g){f=this.plugins[c];break}l=new f.Pb(f);l.name=k[0];l.J=k[2];l.xk=k[3].slice(0);l.ju=k[3].length;l.yq=k[4];l.Xr=k[5];l.M=k[11];l.J?(l.Ki=
[],l.ud=this.sg++,l.ma=null):(l.Ki=null,l.ud=-1,l.ma=[]);l.Wh=null;l.tf=null;l.vm=null;l.Cb=!1;l.Ib=null;k[6]?(l.Ro=k[6][0],l.So=k[6][1],l.bu=k[6][2]):(l.Ro=null,l.So=0,l.bu=0);k[7]?l.Hb=k[7]:l.Hb=null;l.index=d;l.d=[];l.Qh=[];l.Pd=[new qb(l)];l.Vc=0;l.oc=null;l.Kq=0;l.Wf=!0;l.oj=rb;l.Mm=sb;l.js=tb;l.U=ub;l.hh=wb;l.df=xb;l.gd=yb;l.di=zb;l.ek=Ab;l.hk=Bb;l.Sc=Cb;l.jk=Db;l.lm=new hb(this.Pa,this.Oa);l.Wl=!0;l.Xl=!1;l.ja={};l.toString=Eb;l.na=[];c=0;for(e=k[8].length;c<e;c++){v=k[8][c];n=this.Wd(v[1]);
p=null;g=0;for(h=this.na.length;g<h;g++)if(this.na[g]instanceof n){p=this.na[g];break}p||(p=new n(this),p.Ln=[],p.Tk=new da,p.ra&&p.ra(),this.na.push(p));-1===p.Ln.indexOf(l)&&p.Ln.push(l);g=new p.Pb(p,l);g.name=v[0];g.M=v[2];g.ra();l.na.push(g)}l.global=k[9];l.Bk=k[10];l.D=[];c=0;for(e=k[12].length;c<e;c++)l.D.push({id:k[12][c][0],name:k[12][c][1],Da:-1,Lc:!1,Qb:!0,index:c});l.uv=k[13];this.El&&!l.J&&!l.Bk&&f.me||l.ra();l.name&&(this.types[l.name]=l);this.j.push(l);f.fj&&(c=new f.ob(l),c.uid=this.$g++,
c.po=this.On++,c.Te=0,c.vg=Fb,c.toString=Gb,c.ba=k[14],c.ra(),l.d.push(c),this.Gd[c.uid.toString()]=c)}d=0;for(b=a[4].length;d<b;d++)for(g=a[4][d],h=this.j[g[0]],c=1,e=g.length;c<e;c++)k=this.j[g[c]],k.ma.push(h),h.Ki.push(k);d=0;for(b=a[28].length;d<b;d++){g=a[28][d];h=[];c=0;for(e=g.length;c<e;c++)h.push(this.j[g[c]]);c=0;for(e=h.length;c<e;c++)h[c].Cb=!0,h[c].Ib=h}if(0<this.sg)for(d=0,b=this.j.length;d<b;d++)if(k=this.j[d],!k.J&&k.ma.length){k.Wh=Array(this.sg);k.tf=Array(this.sg);k.vm=Array(this.sg);
l=[];c=p=n=v=0;for(e=k.ma.length;c<e;c++)for(f=k.ma[c],k.Wh[f.ud]=v,v+=f.ju,k.tf[f.ud]=n,n+=f.yq,k.vm[f.ud]=p,p+=f.Xr,g=0,h=f.D.length;g<h;g++)l.push(wa({},f.D[g]));k.D=l.concat(k.D);c=0;for(e=k.D.length;c<e;c++)k.D[c].index=c}d=0;for(b=a[5].length;d<b;d++)k=a[5][d],c=new Hb(this,k),this.Kk[c.name]=c,this.Jc.push(c);d=0;for(b=a[6].length;d<b;d++)k=a[6][d],c=new Ib(this,k),this.Xj[c.name]=c,this.td.push(c);d=0;for(b=this.td.length;d<b;d++)this.td[d].xa();d=0;for(b=this.td.length;d<b;d++)this.td[d].Bl();
d=0;for(b=this.nj.length;d<b;d++)this.nj[d].xa();X(this.nj);this.wq=a[7];this.ak=a[8];this.Jd=a[9];this.gg=1;this.jr=a[13];this.wa=a[14];this.km=a[15];this.iu=a[17];this.Zk=a[20];this.xq=0<this.Zk;this.pt=a[22];this.Xb=this.kp=a[23];this.cr=a[24];this.yt=a[25];this.fa=a[27]&&!this.zd;this.gj=Date.now();X(this.Li);this.Is()};var a=!1,d=0,h=[];f.prototype.Dt=function(a,b){function c(){d--;e.Hn()}var e=this;a.addEventListener("load",c);a.addEventListener("error",c);h.push([a,b]);this.Hn()};f.prototype.Hn=
function(){for(var a;h.length&&100>d;)d++,a=h.shift(),this.Co(a[0],a[1])};f.prototype.lu=function(d,b){d.cocoonLazyLoad=!0;d.onerror=function(b){a=d.gm=!0;console&&console.error&&console.error("Error loading image '"+d.src+"': ",b)};this.Hc?d.src=b:d.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(a){d.src=a},function(c){a=d.gm=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",c)}):(d.crossOrigin="anonymous",this.Dt(d,b)));this.bg.push(d)};
f.prototype.Vr=function(a){var d,b;d=0;for(b=this.bg.length;d<b;d++)if(this.bg[d].Hq===a)return this.bg[d];return null};var g=0,l=!1;f.prototype.Bs=function(){this.nf&&(g=this.nf.Ut(this.wq))};f.prototype.Yl=function(){var a=g,d=0,b=0,c=!0,e,h,b=0;for(e=this.bg.length;b<e;b++){h=this.bg[b];var k=h.Gq;if(!k||0>=k)k=5E4;a+=k;h.src&&(h.complete||h.loaded)&&!h.gm?d+=k:c=!1}c&&this.yt&&this.nf&&(l||(this.nf.Zt(),l=!0),b=this.nf.ks(),d+=b,b<g&&(c=!1));this.Mc=0==a?1:d/a;return c};var u=!1;f.prototype.go=
function(){if(this.pa||this.n){var d=this.pa||this.$k;this.cb&&this.lo();var c=window.innerWidth,e=window.innerHeight;this.Ef===c&&this.Df===e||this.setSize(c,e);this.Mc=0;this.kn=-1;var g=this;if(this.Yl()&&(4!==this.qe||u))this.Cs();else{e=Date.now()-this.gj;if(d){var h=this.width,k=this.height,c=this.devicePixelRatio;if(3>this.qe&&(this.Gc||500<=e&&this.kn!=this.Mc)){d.clearRect(0,0,h,k);var e=h/2,k=k/2,h=0===this.qe&&this.pe.Gi.complete,l=40*c,f=0,v=80*c,n;if(h){var p=this.pe.Gi,v=p.width*c;n=
p.height*c;l=v/2;f=n/2;d.drawImage(p,S(e-l),S(k-f),v,n)}1>=this.qe?(e=S(e-l)+.5,k=S(k+(f+(h?12*c:0)))+.5,d.fillStyle=a?"red":"DodgerBlue",d.fillRect(e,k,Math.floor(v*this.Mc),6*c),d.strokeStyle="black",d.strokeRect(e,k,v,6*c),d.strokeStyle="white",d.strokeRect(e-1*c,k-1*c,v+2*c,8*c)):2===this.qe&&(d.font=this.Hc?"12pt ArialMT":"12pt Arial",d.fillStyle=a?"#f00":"#999",d.tv="middle",c=Math.round(100*this.Mc)+"%",h=d.measureText?d.measureText(c):null,d.fillText(c,e-(h?h.width:0)/2,k));this.kn=this.Mc}else if(4===
this.qe){this.hr(d);b?b(function(){g.go()}):setTimeout(function(){g.go()},16);return}}setTimeout(function(){g.go()},this.Gc?10:100)}}};var K=-1,k="undefined"===typeof cr_is_preview?200:0,v=!0,ca=!1,D=0,H=0,V="undefined"===typeof cr_is_preview?3E3:0,R=null,C=null,z=0;f.prototype.hr=function(d){if(!u){for(var b=Math.ceil(this.width),c=Math.ceil(this.height),e=this.pe.Gi,g=this.pe.xt,h=this.pe.mu,l=0;4>l;++l)if(!e[l].complete||!g[l].complete||!h[l].complete)return;0===z&&(K=Date.now());var l=Date.now(),
f=!1,n=d,m,q;v||ca?(d.clearRect(0,0,b,c),R&&R.width===b&&R.height===c||(R=document.createElement("canvas"),R.width=b,R.height=c,C=R.getContext("2d")),n=C,f=!0,v&&1===z&&(K=Date.now())):d.globalAlpha=1;n.fillStyle="#333333";n.fillRect(0,0,b,c);256<this.ng?(m=Fa(.22*c,105,.6*b),q=.25*m,n.drawImage(p(g,m),.5*b-m/2,.2*c-q/2,m,q),q=m=Math.min(.395*c,.95*b),n.drawImage(p(e,m),.5*b-m/2,.485*c-q/2,m,q),m=Fa(.22*c,105,.6*b),q=.25*m,n.drawImage(p(h,m),.5*b-m/2,.868*c-q/2,m,q),n.fillStyle="#3C3C3C",m=b,q=Math.max(.005*
c,2),n.fillRect(0,.8*c-q/2,m,q),n.fillStyle=a?"red":"#E0FF65",m=b*this.Mc,n.fillRect(.5*b-m/2,.8*c-q/2,m,q)):(q=m=.55*c,n.drawImage(p(e,m),.5*b-m/2,.45*c-q/2,m,q),n.fillStyle="#3C3C3C",m=b,q=Math.max(.005*c,2),n.fillRect(0,.85*c-q/2,m,q),n.fillStyle=a?"red":"#E0FF65",m=b*this.Mc,n.fillRect(.5*b-m/2,.85*c-q/2,m,q));f&&(v?d.globalAlpha=0===z?0:Math.min((l-K)/300,1):ca&&(d.globalAlpha=Math.max(1-(l-H)/300,0)),d.drawImage(R,0,0,b,c));v&&300<=l-K&&2<=z&&(v=!1,D=l);!v&&l-D>=V&&!ca&&1<=this.Mc&&(ca=!0,H=
l);if(ca&&l-H>=300+k||"undefined"!==typeof cr_is_preview&&1<=this.Mc&&500>Date.now()-K)u=!0,ca=v=!1,this.pe=C=R=null;++z}};f.prototype.Cs=function(){this.cb&&(this.canvas.parentNode.removeChild(this.cb),this.cb=this.$k=null);this.gj=Date.now();this.We=$a();var a,d,b;if(this.El)for(a=0,d=this.j.length;a<d;a++)b=this.j[a],b.J||b.Bk||!b.ka.me||b.ra();else this.Lg=!1;a=0;for(d=this.Jc.length;a<d;a++)this.Jc[a].Iq();2<=this.yb&&(a=this.Pa/this.Oa,d=this.width/this.height,this.gg=2!==this.yb&&d>a||2===
this.yb&&d<a?this.height/this.Oa:this.width/this.Pa);this.Bm?this.Kk[this.Bm].tl():this.Jc[0].tl();this.El||(this.Di=1,this.trigger(Z.prototype.i.Nl,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(d=this.j.length;a<d;a++)b=this.j[a],b.bt&&b.bt();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.sb(!1);this.Bb&&AppMobi.webview.execute("onGameReady();")};
f.prototype.sb=function(a,d,c){if(this.W){var e=$a();if(c||!this.Gg||a){a||(b?this.fl=b(this.Vo):this.ul=setTimeout(this.Vo,this.Ad?1:16));d=d||e;var g=this.yb;((c=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.xd)||this.Eg)&&0<this.Ne&&(g=this.Ne);if(0<g){var g=window.innerWidth,h=window.innerHeight;this.Ef===g&&this.Df===h||this.setSize(g,h)}this.Sa||(c?this.Zh||(this.Zh=!0):this.Zh?(this.Zh=!1,0===this.yb&&this.setSize(Math.round(this.Vn/
this.devicePixelRatio),Math.round(this.Un/this.devicePixelRatio),!0)):(this.Vn=this.width,this.Un=this.height));this.Lg&&(c=this.Yl(),this.Di=this.Mc,c&&(this.Lg=!1,this.Mc=1,this.trigger(Z.prototype.i.Nl,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.Xs(d);!this.X&&!this.Gc||this.Fk||this.uh||a||(this.X=!1,this.n?this.qc():this.sd(),this.sh&&(this.canvas&&this.canvas.toDataURL&&(this.Ko=this.canvas.toDataURL(this.sh[0],this.sh[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Ko),this.trigger(Z.prototype.i.Lp,
null)),this.sh=null));this.nv||(this.ld++,this.rg++,this.bi++);this.Xg+=$a()-e}}};f.prototype.Xs=function(a){var d,b,c,e,g,h,k,l;1E3<=a-this.We&&(this.We+=1E3,1E3<=a-this.We&&(this.We=a),this.ck=this.bi,this.bi=0,this.Oj=this.Xg,this.Xg=0);d=0;0!==this.ti&&(d=a-this.ti,0>d&&(d=0),this.Ie=d/=1E3,.5<this.Ie?this.Ie=0:this.Ie>1/this.In&&(this.Ie=1/this.In));this.ti=a;this.He=this.Ie*this.Yf;this.ab.add(this.He);this.Sd.add(d);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||
!!document.msFullscreenElement||this.Eg)&&!this.xd;2<=this.yb||a&&0<this.Ne?(d=this.Pa/this.Oa,b=this.width/this.height,c=this.yb,a&&0<this.Ne&&(c=this.Ne),this.gg=2!==c&&b>d||2===c&&b<d?this.height/this.Oa:this.width/this.Pa,this.W&&(this.W.wo(this.W.scrollX),this.W.xo(this.W.scrollY))):this.gg=this.xf?this.devicePixelRatio:1;this.hb();this.Ic++;this.kd.Lt();this.Ic--;this.hb();this.Ic++;b=this.Sn.xe();a=0;for(d=b.length;a<d;a++)b[a].qv();a=0;for(d=this.j.length;a<d;a++)if(h=this.j[a],!h.J&&(h.na.length||
h.ma.length))for(b=0,c=h.d.length;b<c;b++)for(k=h.d[b],e=0,g=k.C.length;e<g;e++)k.C[e].sb();a=0;for(d=this.j.length;a<d;a++)if(h=this.j[a],!h.J&&(h.na.length||h.ma.length))for(b=0,c=h.d.length;b<c;b++)for(k=h.d[b],e=0,g=k.C.length;e<g;e++)l=k.C[e],l.wt&&l.wt();b=this.Vk.xe();a=0;for(d=b.length;a<d;a++)b[a].sb();this.Ic--;this.Ds();for(a=0;this.hg&&10>a++;)this.tm(this.hg);a=0;for(d=this.td.length;a<d;a++)this.td[a].sk=!1;this.W.Le&&this.W.Le.Ca();X(this.to);this.Jk=!1;this.Ic++;a=0;for(d=this.j.length;a<
d;a++)if(h=this.j[a],!h.J&&(h.na.length||h.ma.length))for(b=0,c=h.d.length;b<c;b++)for(k=h.d[b],e=0,g=k.C.length;e<g;e++)l=k.C[e],l.Uo&&l.Uo();b=this.Tn.xe();a=0;for(d=b.length;a<d;a++)b[a].Uo();this.Ic--};f.prototype.Mf=function(){var a,d,b,c,e,g,h,k,l;a=0;for(d=this.j.length;a<d;a++)if(h=this.j[a],!h.J)for(b=0,c=h.d.length;b<c;b++)if(k=h.d[b],k.Mf&&k.Mf(),k.C)for(e=0,g=k.C.length;e<g;e++)l=k.C[e],l.Mf&&l.Mf()};f.prototype.tm=function(a){var d=this.W;this.W.$t();var b,c,e;if(this.n)for(b=0,c=this.j.length;b<
c;b++)e=this.j[b],e.J||!e.ep||e.global&&0!==e.d.length||-1!==a.zg.indexOf(e)||e.ep();d==a&&X(this.kd.gb);X(this.to);this.uo(!0);a.tl();this.uo(!1);this.Jk=this.X=!0;this.hb()};f.prototype.uo=function(a){var d,b,c,e,g,h,k,l,f;d=0;for(b=this.na.length;d<b;d++)c=this.na[d],a?c.ah&&c.ah():c.dh&&c.dh();d=0;for(b=this.j.length;d<b;d++)if(c=this.j[d],c.global||c.ka.fj)for(e=0,g=c.d.length;e<g;e++)if(h=c.d[e],a?h.ah&&h.ah():h.dh&&h.dh(),h.C)for(k=0,l=h.C.length;k<l;k++)f=h.C[k],a?f.ah&&f.ah():f.dh&&f.dh()};
f.prototype.kj=function(a){this.Vk.add(a)};f.prototype.Km=function(a){return a&&-1!==a.Zg?this.Ie*a.Zg:this.He};f.prototype.sd=function(){this.W.sd(this.pa);this.Bb&&this.pa.present()};f.prototype.qc=function(){this.fa&&(this.Je=1,this.W.rf(this.n));this.W.qc(this.n);this.n.At()};f.prototype.sq=function(a){a&&this.Uj.push(a)};f.prototype.fi=function(a){a=a.toString();return this.Gd.hasOwnProperty(a)?this.Gd[a]:null};var L=[];f.prototype.ye=function(a){var d,b;d=a.type.name;var c=null;if(this.Ge.hasOwnProperty(d)){if(c=
this.Ge[d],c.contains(a))return}else c=L.length?L.pop():new da,this.Ge[d]=c;c.add(a);this.ke=!0;if(a.Cb)for(d=0,b=a.siblings.length;d<b;d++)this.ye(a.siblings[d]);this.Ak&&c.$f.push(a);this.zk||(this.Ic++,this.trigger(Object.getPrototypeOf(a.type.ka).i.Mp,a),this.Ic--)};f.prototype.hb=function(){if(this.ke){var a,d,b,c,e,g;this.Ak=!0;b=0;for(e=this.Uc.length;b<e;++b)for(a=this.Uc[b],d=a.type,d.d.push(a),c=0,g=d.ma.length;c<g;++c)d.ma[c].d.push(a),d.ma[c].Wf=!0;X(this.Uc);this.Fp();Za(this.Ge);this.ke=
this.Ak=!1}};f.prototype.Fp=function(){for(var a in this.Ge)this.Ge.hasOwnProperty(a)&&this.qp(this.Ge[a])};f.prototype.qp=function(a){var d=a.xe(),b=d[0].type,c,e,g,h,k,l;ab(b.d,a);b.Wf=!0;0===b.d.length&&(b.Xl=!1);c=0;for(e=b.ma.length;c<e;++c)l=b.ma[c],ab(l.d,a),l.Wf=!0;c=0;for(e=this.kd.gb.length;c<e;++c)if(k=this.kd.gb[c],k.mb.hasOwnProperty(b.index)&&ab(k.mb[b.index].ad,a),!b.J)for(g=0,h=b.ma.length;g<h;++g)l=b.ma[g],k.mb.hasOwnProperty(l.index)&&ab(k.mb[l.index].ad,a);if(k=d[0].g){if(k.kc)for(g=
k.d,c=0,e=g.length;c<e;++c)h=g[c],a.contains(h)&&(h.Ra(),k.fb.update(h,h.Db,null),h.Db.set(0,0,-1,-1));ab(k.d,a);k.oh(0)}for(c=0;c<d.length;++c)this.pp(d[c],b);a.clear();L.push(a);this.X=!0};f.prototype.pp=function(a,d){var b,c,e;b=0;for(c=this.Uj.length;b<c;++b)this.Uj[b](a);a.ee&&d.lm.update(a,a.ee,null);(b=a.g)&&b.Rf(a,!0);if(a.C)for(b=0,c=a.C.length;b<c;++b)e=a.C[b],e.bh&&e.bh(),e.behavior.Tk.remove(a);this.Sn.remove(a);this.Vk.remove(a);this.Tn.remove(a);a.bh&&a.bh();this.Gd.hasOwnProperty(a.uid.toString())&&
delete this.Gd[a.uid.toString()];this.Mi--;100>d.Qh.length&&d.Qh.push(a)};f.prototype.nm=function(a,d,b,c){if(a.J){var e=S(Math.random()*a.Ki.length);return this.nm(a.Ki[e],d,b,c)}return a.oc?this.fe(a.oc,d,!1,b,c,!1):null};var T=[];f.prototype.fe=function(a,d,b,c,e,g){var h,k,l,f;if(!a)return null;var v=this.j[a[1]],n=v.ka.me;if(this.Lg&&n&&!v.Bk||n&&!this.n&&11===a[0][11])return null;var p=d;n||(d=null);var u;v.Qh.length?(u=v.Qh.pop(),u.cc=!0,v.ka.ob.call(u,v)):(u=new v.ka.ob(v),u.cc=!1);!b||g||
this.Gd.hasOwnProperty(a[2].toString())?u.uid=this.$g++:u.uid=a[2];this.Gd[u.uid.toString()]=u;u.po=this.On++;u.Te=v.d.length;h=0;for(k=this.Uc.length;h<k;++h)this.Uc[h].type===v&&u.Te++;u.vg=Fb;u.toString=Gb;l=a[3];if(u.cc)Za(u.ja);else{u.ja={};if("undefined"!==typeof cr_is_preview)for(u.Wm=[],u.Wm.length=l.length,h=0,k=l.length;h<k;h++)u.Wm[h]=l[h][1];u.Ka=[];u.Ka.length=l.length}h=0;for(k=l.length;h<k;h++)u.Ka[h]=l[h][0];if(n){var m=a[0];u.x=ga(c)?m[0]:c;u.y=ga(e)?m[1]:e;u.z=m[2];u.width=m[3];
u.height=m[4];u.depth=m[5];u.k=m[6];u.opacity=m[7];u.zb=m[8];u.Ab=m[9];u.ib=m[10];h=m[11];!this.n&&v.D.length&&(u.ib=h);u.jg=jb(u.ib);this.m&&kb(u,u.ib,this.m);if(u.cc){h=0;for(k=m[12].length;h<k;h++)for(l=0,f=m[12][h].length;l<f;l++)u.qa[h][l]=m[12][h][l];u.Ya.set(0,0,0,0);u.ee.set(0,0,-1,-1);u.Db.set(0,0,-1,-1);u.Ce.dj(u.Ya);X(u.Dj)}else{u.qa=m[12].slice(0);h=0;for(k=u.qa.length;h<k;h++)u.qa[h]=m[12][h].slice(0);u.T=[];u.Xd=[];u.Xd.length=v.D.length;u.Ya=new ua(0,0,0,0);u.ee=new ua(0,0,-1,-1);u.Db=
new ua(0,0,-1,-1);u.Ce=new va;u.Dj=[];u.Qa=Jb;u.iv=Kb;u.mc=Lb;u.Ra=Mb;u.hu=Nb;u.vv=Ob;u.Zc=Pb}u.Wo=!1;u.eu=0;u.du=0;u.cu=null;14===m.length&&(u.Wo=!0,u.eu=m[13][0],u.du=m[13][1],u.cu=m[13][2]);h=0;for(k=v.D.length;h<k;h++)u.Xd[h]=!0;u.Nd=!0;u.Pc=Qb;u.Pc();u.ip=!!u.T.length;u.Cj=!0;u.Ij=!0;v.Wl=!0;u.visible=!0;u.Zg=-1;u.g=d;u.Qc=d.d.length;u.Je=0;"undefined"===typeof u.Tc&&(u.Tc=null);this.X=u.ig=!0}var K;X(T);h=0;for(k=v.ma.length;h<k;h++)T.push.apply(T,v.ma[h].na);T.push.apply(T,v.na);if(u.cc)for(h=
0,k=T.length;h<k;h++){var q=T[h];K=u.C[h];K.cc=!0;q.behavior.ob.call(K,q,u);m=a[4][h];l=0;for(f=m.length;l<f;l++)K.ba[l]=m[l];K.ra();q.behavior.Tk.add(u)}else for(u.C=[],h=0,k=T.length;h<k;h++)q=T[h],K=new q.behavior.ob(q,u),K.cc=!1,K.ba=a[4][h].slice(0),K.ra(),u.C.push(K),q.behavior.Tk.add(u);m=a[5];if(u.cc)for(h=0,k=m.length;h<k;h++)u.ba[h]=m[h];else u.ba=m.slice(0);this.Uc.push(u);this.ke=!0;d&&(d.fg(u,!0),1!==d.Hd||1!==d.Id)&&(v.Xl=!0);this.Mi++;if(v.Cb){if(u.Cb=!0,u.cc?X(u.siblings):u.siblings=
[],!b&&!g){h=0;for(k=v.Ib.length;h<k;h++)if(v.Ib[h]!==v){if(!v.Ib[h].oc)return null;u.siblings.push(this.fe(v.Ib[h].oc,p,!1,n?u.x:c,n?u.y:e,!0))}h=0;for(k=u.siblings.length;h<k;h++)for(u.siblings[h].siblings.push(u),l=0;l<k;l++)h!==l&&u.siblings[h].siblings.push(u.siblings[l])}}else u.Cb=!1,u.siblings=null;u.ra();h=0;for(k=u.C.length;h<k;h++)u.C[h].ut&&u.C[h].ut();return u};f.prototype.kk=function(a){var d,b;d=0;for(b=this.W.F.length;d<b;d++){var c=this.W.F[d];if(mb(c.name,a))return c}return null};
f.prototype.tg=function(a){a=S(a);0>a&&(a=0);a>=this.W.F.length&&(a=this.W.F.length-1);return this.W.F[a]};f.prototype.Mj=function(a){var d,b;d=0;for(b=a.length;d<b;d++)a[d].U().Y=!0};f.prototype.hh=function(a){var d,b;d=0;for(b=a.length;d<b;d++)a[d].hh()};f.prototype.df=function(a){var d,b;d=0;for(b=a.length;d<b;d++)a[d].df()};f.prototype.gd=function(a){var d,b;d=0;for(b=a.length;d<b;d++)a[d].gd()};f.prototype.Oo=function(a,d,b,c){var e=a.U(),g,h,k,l,f=this.Ja().ya.tc,v,u,n;if(e.Y)for(c||(e.Y=!1,
X(e.d)),g=0,l=a.d.length;g<l;g++)if(k=a.d[g],k.Ra(),v=k.g.qb(d,b,!0),u=k.g.qb(d,b,!1),k.mc(v,u)){if(c)return!1;e.d.push(k)}else f&&e.I.push(k);else{h=0;n=f?e.I:e.d;g=0;for(l=n.length;g<l;g++)if(k=n[g],k.Ra(),v=k.g.qb(d,b,!0),u=k.g.qb(d,b,!1),k.mc(v,u)){if(c)return!1;f?e.d.push(k):(e.d[h]=e.d[g],h++)}c||(n.length=h)}a.Sc();return c?!0:e.rk()};new va;new ua(0,0,0,0);f.prototype.cp=function(a,d){if(!d)return!1;var b,c,e,g,h;b=0;for(c=a.na.length;b<c;b++)if(a.na[b].behavior instanceof d)return!0;if(!a.J)for(b=
0,c=a.ma.length;b<c;b++)for(h=a.ma[b],e=0,g=h.na.length;e<g;e++)if(h.na[e].behavior instanceof d)return!0;return!1};f.prototype.zl=function(a){return this.cp(a,ec.Ju)};f.prototype.Al=function(a){return this.cp(a,ec.Ku)};var U=-1;f.prototype.trigger=function(a,d,b){if(!this.W)return!1;var c=this.W.Le;if(!c)return!1;var e=!1,g,h,k;U++;var l=c.Sj;h=0;for(k=l.length;h<k;++h)g=this.Zo(a,d,l[h],b),e=e||g;g=this.Zo(a,d,c,b);U--;return e||g};f.prototype.Zo=function(a,d,b,c){var e=!1,g,h,k,l;if(d)for(k=this.xl(a,
d,d.type.name,b,c),e=e||k,l=d.type.ma,g=0,h=l.length;g<h;++g)k=this.xl(a,d,l[g].name,b,c),e=e||k;else k=this.xl(a,d,"system",b,c),e=e||k;return e};f.prototype.xl=function(a,d,b,c,e){var g,h=!1,k=!1,k="undefined"!==typeof e,l=(k?c.xm:c.$o)[b];if(!l)return h;var f=null;c=0;for(g=l.length;c<g;++c)if(l[c].method==a){f=l[c].qg;break}if(!f)return h;var v;k?v=f[e]:v=f;if(!v)return null;c=0;for(g=v.length;c<g;c++)a=v[c][0],e=v[c][1],k=this.Sr(d,b,a,e),h=h||k;return h};f.prototype.Sr=function(a,d,b,c){var e,
g,h=!1;this.yl++;var k=this.Ja().ya;k&&this.hh(k.ve);var l=1<this.yl;this.hh(b.ve);l&&this.Ct();var f=this.Vi(b);f.ya=b;a&&(e=this.types[d].U(),e.Y=!1,X(e.d),e.d[0]=a,this.types[d].Sc());a=!0;if(b.parent){d=f.No;for(e=b.parent;e;)d.push(e),e=e.parent;d.reverse();e=0;for(g=d.length;e<g;e++)if(!d[e].Nt()){a=!1;break}}a&&(this.rg++,b.tc?b.Mt(c):b.Ca(),h=h||f.Ve);this.Qi();l&&this.tt();this.gd(b.ve);k&&this.gd(k.ve);this.ke&&0===this.Ic&&0===U&&!this.Ck&&this.hb();this.yl--;return h};f.prototype.fk=function(){var a=
this.Ja();return a.ya.Fa[a.Ea]};f.prototype.Ct=function(){this.Fi++;this.Fi>=this.Pk.length&&this.Pk.push([])};f.prototype.tt=function(){this.Fi--};f.prototype.Jm=function(){return this.Pk[this.Fi]};f.prototype.Vi=function(a){this.Uh++;this.Uh>=this.Wj.length&&this.Wj.push(new Rb);var d=this.Ja();d.reset(a);return d};f.prototype.Qi=function(){this.Uh--};f.prototype.Ja=function(){return this.Wj[this.Uh]};f.prototype.qo=function(a){this.Hi++;this.Hi>=this.Rk.length&&this.Rk.push(aa({name:a,index:0,
la:!1}));var d=this.bs();d.name=a;d.index=0;d.la=!1;return d};f.prototype.ko=function(){this.Hi--};f.prototype.bs=function(){return this.Rk[this.Hi]};f.prototype.Lm=function(a,d){for(var b,c,e,g,h,k;d;){b=0;for(c=d.xc.length;b<c;b++)if(k=d.xc[b],k instanceof Sb&&mb(a,k.name))return k;d=d.parent}b=0;for(c=this.td.length;b<c;b++)for(h=this.td[b],e=0,g=h.ie.length;e<g;e++)if(k=h.ie[e],k instanceof Sb&&mb(a,k.name))return k;return null};f.prototype.Nm=function(a){var d,b;d=0;for(b=this.Jc.length;d<b;d++)if(this.Jc[d].M===
a)return this.Jc[d];return null};f.prototype.gi=function(a){var d,b;d=0;for(b=this.j.length;d<b;d++)if(this.j[d].M===a)return this.j[d];return null};f.prototype.ds=function(a){var d,b;d=0;for(b=this.$d.length;d<b;d++)if(this.$d[d].M===a)return this.$d[d];return null};f.prototype.Lq=function(a,d){this.sh=[a,d];this.X=!0};f.prototype.Ds=function(){var a=this,d=this.nl,b=this.Bd,c=this.Ai,e=!1;this.Jo&&(e=!0,d="__c2_continuouspreview",this.Jo=!1);if(d.length){this.hb();b=this.Rt();if(m()&&!this.Gc)r(d,
b,function(){A("Saved state to IndexedDB storage ("+b.length+" bytes)");a.Bd=b;a.trigger(Z.prototype.i.wj,null);a.Bd="";e&&n()},function(c){try{localStorage.setItem("__c2save_"+d,b),A("Saved state to WebStorage ("+b.length+" bytes)"),a.Bd=b,a.trigger(Z.prototype.i.wj,null),a.Bd="",e&&n()}catch(g){A("Failed to save game state: "+c+"; "+g),a.trigger(Z.prototype.i.Pl,null)}});else try{localStorage.setItem("__c2save_"+d,b),A("Saved state to WebStorage ("+b.length+" bytes)"),a.Bd=b,this.trigger(Z.prototype.i.wj,
null),a.Bd="",e&&n()}catch(g){A("Error saving to WebStorage: "+g),a.trigger(Z.prototype.i.Pl,null)}this.Ai=this.nl="";this.Na=null}if(c.length){if(m()&&!this.Gc)t(c,function(d){d?(a.Na=d,A("Loaded state from IndexedDB storage ("+a.Na.length+" bytes)")):(a.Na=localStorage.getItem("__c2save_"+c)||"",A("Loaded state from WebStorage ("+a.Na.length+" bytes)"));a.uh=!1;a.Na||(a.Na=null,a.trigger(Z.prototype.i.Fh,null))},function(){a.Na=localStorage.getItem("__c2save_"+c)||"";A("Loaded state from WebStorage ("+
a.Na.length+" bytes)");a.uh=!1;a.Na||(a.Na=null,a.trigger(Z.prototype.i.Fh,null))});else{try{this.Na=localStorage.getItem("__c2save_"+c)||"",A("Loaded state from WebStorage ("+this.Na.length+" bytes)")}catch(h){this.Na=null}this.uh=!1;a.Na||(a.Na=null,a.trigger(Z.prototype.i.Fh,null))}this.nl=this.Ai=""}null!==this.Na&&(this.hb(),this.Vs(this.Na)?(this.Bd=this.Na,this.trigger(Z.prototype.i.Op,null),this.Bd=""):a.trigger(Z.prototype.i.Fh,null),this.Na=null)};f.prototype.Rt=function(){var a,d,b,c,g,
h,k,l={c2save:!0,version:1,rt:{time:this.ab.O,walltime:this.Sd.O,timescale:this.Yf,tickcount:this.ld,execcount:this.rg,next_uid:this.$g,running_layout:this.W.M,start_time_offset:Date.now()-this.gj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(d=this.j.length;a<d;a++)if(g=this.j[a],!g.J&&!this.zl(g)){h={instances:[]};Ya(g.ja)&&(h.ex=e(g.ja));b=0;for(c=g.d.length;b<c;b++)h.instances.push(this.ml(g.d[b]));l.types[g.M.toString()]=h}a=0;for(d=this.Jc.length;a<d;a++)b=this.Jc[a],
l.layouts[b.M.toString()]=b.fc();c=l.events.groups;a=0;for(d=this.$d.length;a<d;a++)b=this.$d[a],c[b.M.toString()]=this.vf[b.wg].Qe;d=l.events.cnds;for(k in this.de)this.de.hasOwnProperty(k)&&(a=this.de[k],Ya(a.ja)&&(d[k]={ex:e(a.ja)}));d=l.events.acts;for(k in this.Yd)this.Yd.hasOwnProperty(k)&&(a=this.Yd[k],Ya(a.ja)&&(d[k]={ex:e(a.ja)}));d=l.events.vars;for(k in this.ag)this.ag.hasOwnProperty(k)&&(a=this.ag[k],a.ri||a.parent&&!a.Jg||(d[k]=a.data));l.system=this.kd.fc();return JSON.stringify(l)};
f.prototype.so=function(){var a,d,b,c,e,g;this.Gd={};a=0;for(d=this.j.length;a<d;a++)if(b=this.j[a],!b.J)for(c=0,e=b.d.length;c<e;c++)g=b.d[c],this.Gd[g.uid.toString()]=g};f.prototype.Vs=function(a){var d;try{d=JSON.parse(a)}catch(b){return!1}if(!d.c2save||1<d.version)return!1;this.Cg=!0;a=d.rt;this.ab.reset();this.ab.O=a.time;this.Sd.reset();this.Sd.O=a.walltime||0;this.Yf=a.timescale;this.ld=a.tickcount;this.rg=a.execcount;this.gj=Date.now()-a.start_time_offset;var c=a.running_layout;if(c!==this.W.M)if(c=
this.Nm(c))this.tm(c);else return;var e,g,h,k,l,f,v;f=d.types;for(g in f)if(f.hasOwnProperty(g)&&(k=this.gi(parseInt(g,10)))&&!k.J&&!this.zl(k)){f[g].ex?k.ja=f[g].ex:Za(k.ja);l=k.d;h=f[g].instances;c=0;for(e=na(l.length,h.length);c<e;c++)this.Bi(l[c],h[c]);c=h.length;for(e=l.length;c<e;c++)this.ye(l[c]);c=l.length;for(e=h.length;c<e;c++){l=null;if(k.ka.me&&(l=this.W.ei(h[c].w.l),!l))continue;l=this.fe(k.oc,l,!1,0,0,!0);this.Bi(l,h[c])}k.Wf=!0}this.hb();this.so();e=d.layouts;for(g in e)e.hasOwnProperty(g)&&
(c=this.Nm(parseInt(g,10)))&&c.Kc(e[g]);e=d.events.groups;for(g in e)e.hasOwnProperty(g)&&(c=this.ds(parseInt(g,10)))&&this.vf[c.wg]&&this.vf[c.wg].mh(e[g]);c=d.events.cnds;for(g in this.de)this.de.hasOwnProperty(g)&&(c.hasOwnProperty(g)?this.de[g].ja=c[g].ex:this.de[g].ja={});c=d.events.acts;for(g in this.Yd)this.Yd.hasOwnProperty(g)&&(c.hasOwnProperty(g)?this.Yd[g].ja=c[g].ex:this.Yd[g].ja={});c=d.events.vars;for(g in c)c.hasOwnProperty(g)&&this.ag.hasOwnProperty(g)&&(this.ag[g].data=c[g]);this.$g=
a.next_uid;this.Cg=!1;c=0;for(e=this.Yh.length;c<e;++c)l=this.Yh[c],this.trigger(Object.getPrototypeOf(l.type.ka).i.Ch,l);X(this.Yh);this.kd.Kc(d.system);c=0;for(e=this.j.length;c<e;c++)if(k=this.j[c],!k.J&&!this.zl(k))for(d=0,g=k.d.length;d<g;d++){l=k.d[d];if(k.Cb)for(f=l.vg(),X(l.siblings),a=0,h=k.Ib.length;a<h;a++)v=k.Ib[a],k!==v&&l.siblings.push(v.d[f]);l.Zd&&l.Zd();if(l.C)for(a=0,h=l.C.length;a<h;a++)f=l.C[a],f.Zd&&f.Zd()}return this.X=!0};f.prototype.ml=function(a,d){var b,c,g,h,k;h=a.type;
g=h.ka;var l={};d?l.c2=!0:l.uid=a.uid;Ya(a.ja)&&(l.ex=e(a.ja));if(a.Ka&&a.Ka.length)for(l.ivs={},b=0,c=a.Ka.length;b<c;b++)l.ivs[a.type.xk[b].toString()]=a.Ka[b];if(g.me){g={x:a.x,y:a.y,w:a.width,h:a.height,l:a.g.M,zi:a.Zc()};0!==a.k&&(g.a=a.k);1!==a.opacity&&(g.o=a.opacity);.5!==a.zb&&(g.hX=a.zb);.5!==a.Ab&&(g.hY=a.Ab);0!==a.ib&&(g.bm=a.ib);a.visible||(g.v=a.visible);a.ig||(g.ce=a.ig);-1!==a.Zg&&(g.mts=a.Zg);if(h.D.length)for(g.fx=[],b=0,c=h.D.length;b<c;b++)k=h.D[b],g.fx.push({name:k.name,active:a.Xd[k.index],
params:a.qa[k.index]});l.w=g}if(a.C&&a.C.length)for(l.behs={},b=0,c=a.C.length;b<c;b++)h=a.C[b],h.fc&&(l.behs[h.type.M.toString()]=h.fc());a.fc&&(l.data=a.fc());return l};f.prototype.gs=function(a,d){var b,c;b=0;for(c=a.xk.length;b<c;b++)if(a.xk[b]===d)return b;return-1};f.prototype.as=function(a,d){var b,c;b=0;for(c=a.C.length;b<c;b++)if(a.C[b].type.M===d)return b;return-1};f.prototype.Bi=function(a,d,b){var c,e,g,h,k;k=a.type;var l=k.ka;if(b){if(!d.c2)return}else a.uid=d.uid;d.ex?a.ja=d.ex:Za(a.ja);
if(e=d.ivs)for(c in e)e.hasOwnProperty(c)&&(g=this.gs(k,parseInt(c,10)),0>g||g>=a.Ka.length||(h=e[c],null===h&&(h=NaN),a.Ka[g]=h));if(l.me){g=d.w;a.g.M!==g.l&&(e=a.g,a.g=this.W.ei(g.l),a.g?(e.Rf(a,!0),a.g.fg(a,!0),a.Qa(),a.g.oh(0)):(a.g=e,b||this.ye(a)));a.x=g.x;a.y=g.y;a.width=g.w;a.height=g.h;a.Qc=g.zi;a.k=g.hasOwnProperty("a")?g.a:0;a.opacity=g.hasOwnProperty("o")?g.o:1;a.zb=g.hasOwnProperty("hX")?g.hX:.5;a.Ab=g.hasOwnProperty("hY")?g.hY:.5;a.visible=g.hasOwnProperty("v")?g.v:!0;a.ig=g.hasOwnProperty("ce")?
g.ce:!0;a.Zg=g.hasOwnProperty("mts")?g.mts:-1;a.ib=g.hasOwnProperty("bm")?g.bm:0;a.jg=jb(a.ib);this.m&&kb(a,a.ib,this.m);a.Qa();if(g.hasOwnProperty("fx"))for(b=0,e=g.fx.length;b<e;b++)h=k.hk(g.fx[b].name),0>h||(a.Xd[h]=g.fx[b].active,a.qa[h]=g.fx[b].params);a.Pc()}if(k=d.behs)for(c in k)k.hasOwnProperty(c)&&(b=this.as(a,parseInt(c,10)),0>b||a.C[b].Kc(k[c]));d.data&&a.Kc(d.data)};f.prototype.ym=function(a,d,b){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(d,
b)},b)};f.prototype.Tr=function(a,d){this.ym("data.js",function(b){var c=new FileReader;c.onload=function(d){a(d.target.result)};c.onerror=d;c.readAsText(b)},d)};var O=[],x=0;f.prototype.Sk=function(){if(O.length&&!(8<=x)){x++;var a=O.shift();this.Oq(a.filename,a.au,a.mr)}};f.prototype.zm=function(a,d,b){var c=this;O.push({filename:a,au:function(a){x--;c.Sk();d(a)},mr:function(a){x--;c.Sk();b(a)}});this.Sk()};f.prototype.Oq=function(a,d,b){this.ym(a,function(a){var b=new FileReader;b.onload=function(a){d(a.target.result)};
b.readAsArrayBuffer(a)},b)};f.prototype.Ur=function(a,d,b){var c="",e=a.toLowerCase(),g=e.substr(e.length-4),e=e.substr(e.length-5);".mp4"===g?c="video/mp4":".webm"===e?c="video/webm":".m4a"===g?c="audio/mp4":".mp3"===g&&(c="audio/mpeg");this.zm(a,function(a){a=URL.createObjectURL(new Blob([a],{type:c}));d(a)},b)};f.prototype.Js=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};f.prototype.Co=function(a,d){this.qi&&!this.Js(d)?this.Ur(d,function(d){a.src=
d},function(a){alert("Failed to load image: "+a)}):a.src=d};f.prototype.aj=function(a,d){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=d:(a.webkitImageSmoothingEnabled=d,a.mozImageSmoothingEnabled=d,a.msImageSmoothingEnabled=d)};Tb=function(a){return new f(document.getElementById(a))};Ub=function(a,d){return new f({dc:!0,width:a,height:d})};window.cr_createRuntime=Tb;window.cr_createDCRuntime=Ub;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||
document.createElement("canvas");a.Bj=!0;document.body.appendChild(a);a=new f(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new f(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();
window.cr_getC2Runtime=function(){var f=document.getElementById("c2canvas");return f?f.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(f,p){var m=window.cr_getC2Runtime();m&&m.Lq(f,p)};window.cr_sizeCanvas=function(f,p){if(0!==f&&0!==p){var m=window.cr_getC2Runtime();m&&m.setSize(f,p)}};window.cr_setSuspended=function(f){var p=window.cr_getC2Runtime();p&&p.setSuspended(f)};
(function(){function f(a,d){this.b=a;this.Le=null;this.scrollX=this.b.Pa/2;this.scrollY=this.b.Oa/2;this.scale=1;this.k=0;this.uf=!0;this.name=d[0];this.nt=d[1];this.mt=d[2];this.width=d[1];this.height=d[2];this.dp=d[3];this.Ho=d[4];this.M=d[5];var b=d[6],c,e;this.F=[];this.zg=[];c=0;for(e=b.length;c<e;c++){var f=new Vb(this,b[c]);f.Qn=c;this.F.push(f)}b=d[7];this.le=[];c=0;for(e=b.length;c<e;c++){var f=b[c],n=this.b.j[f[1]];n.oc||(n.oc=f);this.le.push(f);-1===this.zg.indexOf(n)&&this.zg.push(n)}this.D=
[];this.T=[];this.Nd=!0;this.qa=[];c=0;for(e=d[8].length;c<e;c++)this.D.push({id:d[8][c][0],name:d[8][c][1],Da:-1,Lc:!1,Qb:!0,index:c}),this.qa.push(d[8][c][2].slice(0));this.Pc();this.Qf=new ua(0,0,1,1);this.gl=new ua(0,0,1,1);this.se={}}function p(a,d){return a.Qc-d.Qc}function m(a,d){this.Ua=a;this.b=a.b;this.d=[];this.scale=1;this.k=0;this.rd=!1;this.Qd=new ua(0,0,0,0);this.Xo=new va;this.da=this.aa=this.ea=this.Z=0;this.jf=!1;this.Ud=-1;this.Nj=0;this.name=d[0];this.index=d[1];this.M=d[2];this.visible=
d[3];this.Cc=d[4];this.Oc=d[5];this.Hd=d[6];this.Id=d[7];this.opacity=d[8];this.ai=d[9];this.kc=d[10];this.Vd=d[11];this.ib=d[12];this.ir=d[13];this.jg="source-over";this.jb=this.nb=0;this.fb=null;this.Cd=q();this.Nc=!0;this.Ff=new ua(0,0,-1,-1);this.Za=new ua(0,0,-1,-1);this.kc&&(this.fb=new ib(this.b.Pa,this.b.Oa));this.hd=!1;var b=d[14],c,e;this.Lo=[];this.$b=[];this.mg=[];c=0;for(e=b.length;c<e;c++){var f=b[c],n=this.b.j[f[1]];n.oc||(n.oc=f,n.Kq=this.index);this.$b.push(f);-1===this.Ua.zg.indexOf(n)&&
this.Ua.zg.push(n)}za(this.Lo,this.$b);this.D=[];this.T=[];this.Nd=!0;this.qa=[];c=0;for(e=d[15].length;c<e;c++)this.D.push({id:d[15][c][0],name:d[15][c][1],Da:-1,Lc:!1,Qb:!0,index:c}),this.qa.push(d[15][c][2].slice(0));this.Pc();this.Qf=new ua(0,0,1,1);this.gl=new ua(0,0,1,1)}function q(){return e.length?e.pop():[]}function r(a){X(a);e.push(a)}f.prototype.Qt=function(a){var d=a.type.M.toString();this.se.hasOwnProperty(d)||(this.se[d]=[]);this.se[d].push(this.b.ml(a))};f.prototype.Qm=function(){var a=
this.F[0];return!a.Oc&&1===a.opacity&&!a.ai&&a.visible};f.prototype.Pc=function(){X(this.T);this.Nd=!0;var a,d,b;a=0;for(d=this.D.length;a<d;a++)b=this.D[a],b.Qb&&(this.T.push(b),b.Lc||(this.Nd=!1))};f.prototype.gk=function(a){var d,b,c;d=0;for(b=this.D.length;d<b;d++)if(c=this.D[d],c.name===a)return c;return null};var t=[],n=!0;f.prototype.tl=function(){this.Ho&&(this.Le=this.b.Xj[this.Ho],this.Le.Bl());this.b.W=this;this.width=this.nt;this.height=this.mt;this.scrollX=this.b.Pa/2;this.scrollY=this.b.Oa/
2;var a,d,b,c,e,f,m;a=0;for(b=this.b.j.length;a<b;a++)if(d=this.b.j[a],!d.J)for(e=d.d,d=0,c=e.length;d<c;d++)if(f=e[d],f.g){var k=f.g.Qn;k>=this.F.length&&(k=this.F.length-1);f.g=this.F[k];-1===f.g.d.indexOf(f)&&f.g.d.push(f);f.g.jf=!0}if(!n)for(a=0,b=this.F.length;a<b;++a)this.F[a].d.sort(p);X(t);this.zq();a=0;for(b=this.F.length;a<b;a++)f=this.F[a],f.Jq(),f.qj();e=!1;if(!this.uf){for(m in this.se)if(this.se.hasOwnProperty(m)&&(d=this.b.gi(parseInt(m,10)))&&!d.J&&this.b.Al(d)){c=this.se[m];a=0;for(b=
c.length;a<b;a++){f=null;if(d.ka.me&&(f=this.ei(c[a].w.l),!f))continue;f=this.b.fe(d.oc,f,!1,0,0,!0);this.b.Bi(f,c[a]);e=!0;t.push(f)}X(c)}a=0;for(b=this.F.length;a<b;a++)this.F[a].d.sort(p),this.F[a].jf=!0}e&&(this.b.hb(),this.b.so());for(a=0;a<t.length;a++)if(f=t[a],f.type.Cb)for(b=f.vg(),d=0,c=f.type.Ib.length;d<c;d++)m=f.type.Ib[d],f.type!==m&&(m.d.length>b?f.siblings.push(m.d[b]):m.oc&&(e=this.b.fe(m.oc,f.g,!0,f.x,f.y,!0),this.b.hb(),m.oj(),f.siblings.push(e),t.push(e)));a=0;for(b=this.le.length;a<
b;a++)f=this.le[a],d=this.b.j[f[1]],d.Cb||this.b.fe(this.le[a],null,!0);this.b.hg=null;this.b.hb();if(this.b.pa&&!this.b.Sa)for(a=0,b=this.b.j.length;a<b;a++)m=this.b.j[a],!m.J&&m.d.length&&m.mo&&m.mo(this.b.pa);if(this.b.Cg)za(this.b.Yh,t);else for(a=0,b=t.length;a<b;a++)f=t[a],this.b.trigger(Object.getPrototypeOf(f.type.ka).i.Ch,f);X(t);this.b.Cg||this.b.trigger(Z.prototype.i.Ml,null);this.uf=!1};f.prototype.Iq=function(){var a,d,b,c,e;d=a=0;for(b=this.le.length;a<b;a++)c=this.le[a],e=this.b.j[c[1]],
e.global?e.Cb||this.b.fe(c,null,!0):(this.le[d]=c,d++);ya(this.le,d)};f.prototype.$t=function(){this.b.Cg||this.b.trigger(Z.prototype.i.Np,null);this.b.zk=!0;X(this.b.kd.gb);var a,d,b,c,e,f;if(!this.uf)for(a=0,d=this.F.length;a<d;a++)for(this.F[a].Dl(),e=this.F[a].d,b=0,c=e.length;b<c;b++)f=e[b],f.type.global||this.b.Al(f.type)&&this.Qt(f);a=0;for(d=this.F.length;a<d;a++){e=this.F[a].d;b=0;for(c=e.length;b<c;b++)f=e[b],f.type.global||this.b.ye(f);this.b.hb();X(e);this.F[a].jf=!0}a=0;for(d=this.b.j.length;a<
d;a++)if(e=this.b.j[a],!(e.global||e.ka.me||e.ka.fj||e.J)){b=0;for(c=e.d.length;b<c;b++)this.b.ye(e.d[b]);this.b.hb()}n=!1;this.b.zk=!1};new ua(0,0,0,0);f.prototype.sd=function(a){var d,b=a,c=!1,e=!this.b.Xb;e&&(this.b.yi||(this.b.yi=document.createElement("canvas"),d=this.b.yi,d.width=this.b.r,d.height=this.b.q,this.b.mn=d.getContext("2d"),c=!0),d=this.b.yi,b=this.b.mn,d.width!==this.b.r&&(d.width=this.b.r,c=!0),d.height!==this.b.q&&(d.height=this.b.q,c=!0),c&&this.b.aj(b,this.b.wa));b.globalAlpha=
1;b.globalCompositeOperation="source-over";this.b.km&&!this.Qm()&&b.clearRect(0,0,this.b.r,this.b.q);var f,n,c=0;for(f=this.F.length;c<f;c++)n=this.F[c],n.visible&&0<n.opacity&&11!==n.ib&&(n.d.length||!n.Oc)?n.sd(b):n.qj();e&&a.drawImage(d,0,0,this.b.width,this.b.height)};f.prototype.rf=function(a){a.Bo(!0);this.b.Aa||(this.b.Aa=a.Wb(this.b.r,this.b.q,this.b.wa));if(this.b.Aa.Ee!==this.b.r||this.b.Aa.De!==this.b.q)a.deleteTexture(this.b.Aa),this.b.Aa=a.Wb(this.b.r,this.b.q,this.b.wa);a.wc(this.b.Aa);
this.b.Xb||a.Ld(this.b.r,this.b.q);var d,b;for(d=this.F.length-1;0<=d;--d)b=this.F[d],b.visible&&1===b.opacity&&b.Nd&&0===b.ib&&(b.d.length||!b.Oc)?b.rf(a):b.qj();a.Bo(!1)};f.prototype.qc=function(a){var d=0<this.T.length||this.b.Zf||!this.b.Xb||this.b.fa;if(d){this.b.Aa||(this.b.Aa=a.Wb(this.b.r,this.b.q,this.b.wa));if(this.b.Aa.Ee!==this.b.r||this.b.Aa.De!==this.b.q)a.deleteTexture(this.b.Aa),this.b.Aa=a.Wb(this.b.r,this.b.q,this.b.wa);a.wc(this.b.Aa);this.b.Xb||a.Ld(this.b.r,this.b.q)}else this.b.Aa&&
(a.wc(null),a.deleteTexture(this.b.Aa),this.b.Aa=null);this.b.km&&!this.Qm()&&a.clear(0,0,0,0);var b,c,e;b=0;for(c=this.F.length;b<c;b++)e=this.F[b],e.visible&&0<e.opacity&&(e.d.length||!e.Oc)?e.qc(a):e.qj();d&&(0===this.T.length||1===this.T.length&&this.b.Xb?(1===this.T.length?(d=this.T[0].index,a.Gb(this.T[0].Da),a.Uf(null,1/this.b.r,1/this.b.q,0,0,1,1,this.scale,this.k,0,0,this.b.r/2,this.b.q/2,this.b.ab.O,this.qa[d]),a.Ti(this.T[0].Da)&&(this.b.X=!0)):a.Gb(0),this.b.Xb||a.Ld(this.b.width,this.b.height),
a.wc(null),a.Ao(!1),a.Tf(1),a.gc(this.b.Aa),a.yo(),a.vc(),a.jc(),d=this.b.width/2,b=this.b.height/2,a.ih(-d,b,d,b,d,-b,-d,-b),a.gc(null),a.Ao(!0)):this.hl(a,null,null,null))};f.prototype.ug=function(){return 0<this.T.length||this.b.Zf||!this.b.Xb||this.b.fa?this.b.Aa:null};f.prototype.Om=function(){var a=this.F[0].Jb(),d,b,c;d=1;for(b=this.F.length;d<b;d++)c=this.F[d],(0!==c.Hd||0!==c.Id)&&c.Jb()<a&&(a=c.Jb());return a};f.prototype.wo=function(a){if(!this.dp){var d=1/this.Om()*this.b.r/2;a>this.width-
d&&(a=this.width-d);a<d&&(a=d)}this.scrollX!==a&&(this.scrollX=a,this.b.X=!0)};f.prototype.xo=function(a){if(!this.dp){var d=1/this.Om()*this.b.q/2;a>this.height-d&&(a=this.height-d);a<d&&(a=d)}this.scrollY!==a&&(this.scrollY=a,this.b.X=!0)};f.prototype.zq=function(){this.wo(this.scrollX);this.xo(this.scrollY)};f.prototype.hl=function(a,d,b,c){var e=b?b.T:d?d.T:this.T,f=1,n=0,k=0,v=0,p=this.b.r,m=this.b.q;b?(f=b.g.Jb(),n=b.g.Ia(),k=b.g.Z,v=b.g.aa,p=b.g.ea,m=b.g.da):d&&(f=d.Jb(),n=d.Ia(),k=d.Z,v=d.aa,
p=d.ea,m=d.da);var q=this.b.dk,r,t,C,z,L=0,T=1,U,O,x=this.b.r,w=this.b.q,M=x/2,pa=w/2,J=d?d.Qf:this.Qf,G=d?d.gl:this.gl,I=0,N=0,y=0,E=0,Q=x,qa=x,P=w,sa=w,ha=C=0;z=b?b.g.Ia():0;if(b){r=0;for(t=e.length;r<t;r++)C+=a.ls(e[r].Da),ha+=a.ms(e[r].Da);E=b.Ya;I=d.La(E.left,E.top,!0);y=d.La(E.left,E.top,!1);Q=d.La(E.right,E.bottom,!0);P=d.La(E.right,E.bottom,!1);0!==z&&(r=d.La(E.right,E.top,!0),t=d.La(E.right,E.top,!1),N=d.La(E.left,E.bottom,!0),E=d.La(E.left,E.bottom,!1),z=Math.min(I,Q,r,N),Q=Math.max(I,Q,
r,N),I=z,z=Math.min(y,P,t,E),P=Math.max(y,P,t,E),y=z);I-=C;y-=ha;Q+=C;P+=ha;G.left=I/x;G.top=1-y/w;G.right=Q/x;G.bottom=1-P/w;N=I=S(I);E=y=S(y);qa=Q=ra(Q);sa=P=ra(P);N-=C;E-=ha;qa+=C;sa+=ha;0>I&&(I=0);0>y&&(y=0);Q>x&&(Q=x);P>w&&(P=w);0>N&&(N=0);0>E&&(E=0);qa>x&&(qa=x);sa>w&&(sa=w);J.left=I/x;J.top=1-y/w;J.right=Q/x;J.bottom=1-P/w}else J.left=G.left=0,J.top=G.top=0,J.right=G.right=1,J.bottom=G.bottom=1;ha=b&&(a.fh(e[0].Da)||0!==C||0!==ha||1!==b.opacity||b.type.ka.Kn)||d&&!b&&1!==d.opacity;a.yo();if(ha){q[L]||
(q[L]=a.Wb(x,w,this.b.wa));if(q[L].Ee!==x||q[L].De!==w)a.deleteTexture(q[L]),q[L]=a.Wb(x,w,this.b.wa);a.Gb(0);a.wc(q[L]);O=sa-E;a.clearRect(N,w-E-O,qa-N,O);b?b.qc(a):(a.gc(this.b.Ma),a.Tf(d.opacity),a.vc(),a.translate(-M,-pa),a.jc(),a.te(I,P,Q,P,Q,y,I,y,J));G.left=G.top=0;G.right=G.bottom=1;b&&(z=J.top,J.top=J.bottom,J.bottom=z);L=1;T=0}a.Tf(1);C=e.length-1;var Ba=a.dl(e[C].Da)||!d&&!b&&!this.b.Xb;r=z=0;for(t=e.length;r<t;r++){q[L]||(q[L]=a.Wb(x,w,this.b.wa));if(q[L].Ee!==x||q[L].De!==w)a.deleteTexture(q[L]),
q[L]=a.Wb(x,w,this.b.wa);a.Gb(e[r].Da);z=e[r].index;a.Ti(e[r].Da)&&(this.b.X=!0);0!=r||ha?(a.Uf(c,1/x,1/w,G.left,G.top,G.right,G.bottom,f,n,k,v,(k+p)/2,(v+m)/2,this.b.ab.O,b?b.qa[z]:d?d.qa[z]:this.qa[z]),a.gc(null),r!==C||Ba?(a.wc(q[L]),O=sa-E,U=w-E-O,a.clearRect(N,U,qa-N,O)):(b?a.ue(b.nb,b.jb):d&&a.ue(d.nb,d.jb),a.wc(c)),a.gc(q[T]),a.vc(),a.translate(-M,-pa),a.jc(),a.te(I,P,Q,P,Q,y,I,y,J),r!==C||Ba||a.gc(null)):(a.wc(q[L]),O=sa-E,U=w-E-O,a.clearRect(N,U,qa-N,O),b?(b.Ga&&b.Ga.Xa?(U=b.Ga.Xa,T=1/U.width,
U=1/U.height):(T=1/b.width,U=1/b.height),a.Uf(c,T,U,G.left,G.top,G.right,G.bottom,f,n,k,v,(k+p)/2,(v+m)/2,this.b.ab.O,b.qa[z]),b.qc(a)):(a.Uf(c,1/x,1/w,0,0,1,1,f,n,k,v,(k+p)/2,(v+m)/2,this.b.ab.O,d?d.qa[z]:this.qa[z]),a.gc(d?this.b.Ma:this.b.Aa),a.vc(),a.translate(-M,-pa),a.jc(),a.te(I,P,Q,P,Q,y,I,y,J)),G.left=G.top=0,G.right=G.bottom=1,b&&!Ba&&(z=P,P=y,y=z));L=0===L?1:0;T=0===L?1:0}Ba&&(a.Gb(0),b?a.ue(b.nb,b.jb):d?a.ue(d.nb,d.jb):this.b.Xb||(a.Ld(this.b.width,this.b.height),M=this.b.width/2,pa=this.b.height/
2,y=I=0,Q=this.b.width,P=this.b.height),a.wc(c),a.gc(q[T]),a.vc(),a.translate(-M,-pa),a.jc(),b&&1===e.length&&!ha?a.te(I,y,Q,y,Q,P,I,P,J):a.te(I,P,Q,P,Q,y,I,y,J),a.gc(null))};f.prototype.ei=function(a){var d,b;d=0;for(b=this.F.length;d<b;d++)if(this.F[d].M===a)return this.F[d];return null};f.prototype.fc=function(){var a,d,b,c={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.k,w:this.width,h:this.height,fv:this.uf,persist:this.se,fx:[],layers:{}};a=0;for(d=this.D.length;a<d;a++)b=this.D[a],c.fx.push({name:b.name,
active:b.Qb,params:this.qa[b.index]});a=0;for(d=this.F.length;a<d;a++)b=this.F[a],c.layers[b.M.toString()]=b.fc();return c};f.prototype.Kc=function(a){var d,b,c,e;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.k=a.a;this.width=a.w;this.height=a.h;this.se=a.persist;"undefined"!==typeof a.fv&&(this.uf=a.fv);var f=a.fx;d=0;for(b=f.length;d<b;d++)if(c=this.gk(f[d].name))c.Qb=f[d].active,this.qa[c.index]=f[d].params;this.Pc();d=a.layers;for(e in d)d.hasOwnProperty(e)&&(a=this.ei(parseInt(e,10)))&&
a.Kc(d[e])};Hb=f;m.prototype.Pc=function(){X(this.T);this.Nd=!0;var a,d,b;a=0;for(d=this.D.length;a<d;a++)b=this.D[a],b.Qb&&(this.T.push(b),b.Lc||(this.Nd=!1))};m.prototype.gk=function(a){var d,b,c;d=0;for(b=this.D.length;d<b;d++)if(c=this.D[d],c.name===a)return c;return null};m.prototype.Jq=function(){var a,d,b,c,e,f;d=a=0;for(b=this.$b.length;a<b;a++){c=this.$b[a];e=this.b.j[c[1]];f=this.b.Al(e);e=!0;if(!f||this.Ua.uf){c=this.b.fe(c,this,!0);if(!c)continue;t.push(c);c.type.global&&(e=!1,this.mg.push(c.uid))}e&&
(this.$b[d]=this.$b[a],d++)}this.$b.length=d;this.b.hb();!this.b.n&&this.D.length&&(this.ib=this.ir);this.jg=jb(this.ib);this.b.m&&kb(this,this.ib,this.b.m);this.Nc=!0};m.prototype.Rf=function(a,d){var b=Da(this.d,a);0>b||(d&&this.kc&&a.Db&&a.Db.right>=a.Db.left&&(a.Ra(),this.fb.update(a,a.Db,null),a.Db.set(0,0,-1,-1)),b===this.d.length-1?this.d.pop():(xa(this.d,b),this.oh(b)),this.Nc=!0)};m.prototype.fg=function(a,b){a.Qc=this.d.length;this.d.push(a);b&&this.kc&&a.Db&&a.Qa();this.Nc=!0};m.prototype.zt=
function(a){this.d.unshift(a);this.oh(0)};m.prototype.$s=function(a,b,c){var e=a.Zc();b=b.Zc();xa(this.d,e);e<b&&b--;c&&b++;b===this.d.length?this.d.push(a):this.d.splice(b,0,a);this.oh(e<b?e:b)};m.prototype.oh=function(a){-1===this.Ud?this.Ud=a:a<this.Ud&&(this.Ud=a);this.Nc=this.jf=!0};m.prototype.Dl=function(){if(this.jf){-1===this.Ud&&(this.Ud=0);var a,b,c;if(this.kc)for(a=this.Ud,b=this.d.length;a<b;++a)c=this.d[a],c.Qc=a,this.fb.Ys(c.Db);else for(a=this.Ud,b=this.d.length;a<b;++a)this.d[a].Qc=
a;this.jf=!1;this.Ud=-1}};m.prototype.Jb=function(a){return this.hs()*(this.b.Xb||a?this.b.gg:1)};m.prototype.hs=function(){return(this.scale*this.Ua.scale-1)*this.Vd+1};m.prototype.Ia=function(){return this.rd?0:Ia(this.Ua.k+this.k)};var e=[],b=[],c=[];m.prototype.mk=function(){this.Dl();this.fb.ro(this.Z,this.aa,this.ea,this.da,c);if(!c.length)return q();if(1===c.length){var a=q();za(a,c[0]);X(c);return a}for(var d=!0;1<c.length;){for(var a=c,e=void 0,g=void 0,f=void 0,n=void 0,p=void 0,e=0,g=a.length;e<
g-1;e+=2){var f=a[e],n=a[e+1],p=q(),k=f,v=n,m=p,t=0,H=0,V=0,R=k.length,C=v.length,z=void 0,L=void 0;for(m.length=R+C;t<R&&H<C;++V)z=k[t],L=v[H],z.Qc<L.Qc?(m[V]=z,++t):(m[V]=L,++H);for(;t<R;++t,++V)m[V]=k[t];for(;H<C;++H,++V)m[V]=v[H];d||(r(f),r(n));b.push(p)}1===g%2&&(d?(f=q(),za(f,a[g-1]),b.push(f)):b.push(a[g-1]));za(a,b);X(b);d=!1}a=c[0];X(c);return a};m.prototype.sd=function(a){this.hd=this.ai||1!==this.opacity||0!==this.ib;var b=this.b.canvas,c=a,e=!1;this.hd&&(this.b.xi||(this.b.xi=document.createElement("canvas"),
b=this.b.xi,b.width=this.b.r,b.height=this.b.q,this.b.ln=b.getContext("2d"),e=!0),b=this.b.xi,c=this.b.ln,b.width!==this.b.r&&(b.width=this.b.r,e=!0),b.height!==this.b.q&&(b.height=this.b.q,e=!0),e&&this.b.aj(c,this.b.wa),this.Oc&&c.clearRect(0,0,this.b.r,this.b.q));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Oc||(c.fillStyle="rgb("+this.Cc[0]+","+this.Cc[1]+","+this.Cc[2]+")",c.fillRect(0,0,this.b.r,this.b.q));c.save();this.rd=!0;var e=this.qb(0,0,!0,!0),f=this.qb(0,0,!1,!0);this.rd=
!1;this.b.Jd&&(e=Math.round(e),f=Math.round(f));this.Xi(e,f,c);var n=this.Jb();c.scale(n,n);c.translate(-e,-f);this.kc?(this.Za.left=this.fb.wb(this.Z),this.Za.top=this.fb.xb(this.aa),this.Za.right=this.fb.wb(this.ea),this.Za.bottom=this.fb.xb(this.da),this.Nc||!this.Za.pg(this.Ff)?(r(this.Cd),e=this.mk(),this.Nc=!1,this.Ff.kg(this.Za)):e=this.Cd):e=this.d;for(var p,k=null,f=0,n=e.length;f<n;++f)p=e[f],p!==k&&(this.dr(p,c),k=p);this.kc&&(this.Cd=e);c.restore();this.hd&&(a.globalCompositeOperation=
this.jg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};m.prototype.dr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ra();var c=a.Ya;c.right<this.Z||c.bottom<this.aa||c.left>this.ea||c.top>this.da||(b.globalCompositeOperation=a.jg,a.sd(b))}};m.prototype.qj=function(){this.rd=!0;var a=this.qb(0,0,!0,!0),b=this.qb(0,0,!1,!0);this.rd=!1;this.b.Jd&&(a=Math.round(a),b=Math.round(b));this.Xi(a,b,null)};m.prototype.Xi=function(a,b,c){var e=this.Jb();this.Z=a;this.aa=b;this.ea=a+1/e*this.b.r;this.da=
b+1/e*this.b.q;this.Z>this.ea&&(a=this.Z,this.Z=this.ea,this.ea=a);this.aa>this.da&&(a=this.aa,this.aa=this.da,this.da=a);a=this.Ia();0!==a&&(c&&(c.translate(this.b.r/2,this.b.q/2),c.rotate(-a),c.translate(this.b.r/-2,this.b.q/-2)),this.Qd.set(this.Z,this.aa,this.ea,this.da),this.Qd.offset((this.Z+this.ea)/-2,(this.aa+this.da)/-2),this.Xo.Fo(this.Qd,a),this.Xo.fm(this.Qd),this.Qd.offset((this.Z+this.ea)/2,(this.aa+this.da)/2),this.Z=this.Qd.left,this.aa=this.Qd.top,this.ea=this.Qd.right,this.da=this.Qd.bottom)};
m.prototype.rf=function(a){if(this.hd=this.ai){this.b.Ma||(this.b.Ma=a.Wb(this.b.r,this.b.q,this.b.wa));if(this.b.Ma.Ee!==this.b.r||this.b.Ma.De!==this.b.q)a.deleteTexture(this.b.Ma),this.b.Ma=a.Wb(this.b.r,this.b.q,this.b.wa);a.wc(this.b.Ma)}this.rd=!0;var b=this.qb(0,0,!0,!0),c=this.qb(0,0,!1,!0);this.rd=!1;this.b.Jd&&(b=Math.round(b),c=Math.round(c));this.Xi(b,c,null);b=this.Jb();a.vc();a.scale(b,b);a.Yi(-this.Ia());a.translate((this.Z+this.ea)/-2,(this.aa+this.da)/-2);a.jc();this.kc?(this.Za.left=
this.fb.wb(this.Z),this.Za.top=this.fb.xb(this.aa),this.Za.right=this.fb.wb(this.ea),this.Za.bottom=this.fb.xb(this.da),this.Nc||!this.Za.pg(this.Ff)?(r(this.Cd),b=this.mk(),this.Nc=!1,this.Ff.kg(this.Za)):b=this.Cd):b=this.d;for(var e,f=null,c=b.length-1;0<=c;--c)e=b[c],e!==f&&(this.fr(b[c],a),f=e);this.kc&&(this.Cd=b);this.Oc||(this.Nj=this.b.Je++,a.bj(this.Nj),a.zo(1,1,1),a.Fm(),a.It())};m.prototype.qc=function(a){var b=0,c=0;if(this.hd=this.ai||1!==this.opacity||0<this.T.length||0!==this.ib){this.b.Ma||
(this.b.Ma=a.Wb(this.b.r,this.b.q,this.b.wa));if(this.b.Ma.Ee!==this.b.r||this.b.Ma.De!==this.b.q)a.deleteTexture(this.b.Ma),this.b.Ma=a.Wb(this.b.r,this.b.q,this.b.wa);a.wc(this.b.Ma);this.Oc&&a.clear(0,0,0,0)}this.Oc||(this.b.fa?(a.bj(this.Nj),a.zo(this.Cc[0]/255,this.Cc[1]/255,this.Cc[2]/255),a.Fm(),a.Wt()):a.clear(this.Cc[0]/255,this.Cc[1]/255,this.Cc[2]/255,1));this.rd=!0;var e=this.qb(0,0,!0,!0),b=this.qb(0,0,!1,!0);this.rd=!1;this.b.Jd&&(e=Math.round(e),b=Math.round(b));this.Xi(e,b,null);e=
this.Jb();a.vc();a.scale(e,e);a.Yi(-this.Ia());a.translate((this.Z+this.ea)/-2,(this.aa+this.da)/-2);a.jc();this.kc?(this.Za.left=this.fb.wb(this.Z),this.Za.top=this.fb.xb(this.aa),this.Za.right=this.fb.wb(this.ea),this.Za.bottom=this.fb.xb(this.da),this.Nc||!this.Za.pg(this.Ff)?(r(this.Cd),b=this.mk(),this.Nc=!1,this.Ff.kg(this.Za)):b=this.Cd):b=this.d;var f,n,p=null,c=0;for(f=b.length;c<f;++c)n=b[c],n!==p&&(this.er(b[c],a),p=n);this.kc&&(this.Cd=b);this.hd&&(b=this.T.length?this.T[0].Da:0,c=this.T.length?
this.T[0].index:0,0===this.T.length||1===this.T.length&&!a.dl(b)&&1===this.opacity?(1===this.T.length?(a.Gb(b),a.Uf(this.Ua.ug(),1/this.b.r,1/this.b.q,0,0,1,1,e,this.Ia(),this.Z,this.aa,(this.Z+this.ea)/2,(this.aa+this.da)/2,this.b.ab.O,this.qa[c]),a.Ti(b)&&(this.b.X=!0)):a.Gb(0),a.wc(this.Ua.ug()),a.Tf(this.opacity),a.gc(this.b.Ma),a.ue(this.nb,this.jb),a.vc(),a.jc(),e=this.b.r/2,b=this.b.q/2,a.ih(-e,b,e,b,e,-b,-e,-b),a.gc(null)):this.Ua.hl(a,this,null,this.Ua.ug()))};m.prototype.er=function(a,b){if(a.visible&&
0!==a.width&&0!==a.height){a.Ra();var c=a.Ya;c.right<this.Z||c.bottom<this.aa||c.left>this.ea||c.top>this.da||(b.bj(a.Je),a.ip?this.gr(a,b):(b.Gb(0),b.ue(a.nb,a.jb),a.qc(b)))}};m.prototype.fr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ra();var c=a.Ya;c.right<this.Z||c.bottom<this.aa||c.left>this.ea||c.top>this.da||(a.Je=this.b.Je++,0===a.ib&&1===a.opacity&&a.Nd&&a.rf&&(b.bj(a.Je),a.rf(b)))}};m.prototype.gr=function(a,b){var c=a.T[0].Da,e=a.T[0].index,f=this.Jb();if(1!==a.T.length||b.dl(c)||
b.Bt(c)||(a.k||a.g.Ia())&&b.fh(c)||1!==a.opacity||a.type.ka.Kn)this.Ua.hl(b,this,a,this.hd?this.b.Ma:this.Ua.ug()),b.vc(),b.scale(f,f),b.Yi(-this.Ia()),b.translate((this.Z+this.ea)/-2,(this.aa+this.da)/-2),b.jc();else{b.Gb(c);b.ue(a.nb,a.jb);b.Ti(c)&&(this.b.X=!0);var n=0,p=0,k=0,v=0;b.fh(c)&&(v=a.Ya,n=this.La(v.left,v.top,!0),p=this.La(v.left,v.top,!1),k=this.La(v.right,v.bottom,!0),v=this.La(v.right,v.bottom,!1),n=n/windowWidth,p=1-p/windowHeight,k=k/windowWidth,v=1-v/windowHeight);var m;a.Ga&&
a.Ga.Xa?(m=a.Ga.Xa,c=1/m.width,m=1/m.height):(c=1/a.width,m=1/a.height);b.Uf(this.hd?this.b.Ma:this.Ua.ug(),c,m,n,p,k,v,f,this.Ia(),this.Z,this.aa,(this.Z+this.ea)/2,(this.aa+this.da)/2,this.b.ab.O,a.qa[e]);a.qc(b)}};m.prototype.qb=function(a,b,c,e){var f=this.b.devicePixelRatio;this.b.xf&&(a*=f,b*=f);var f=this.b.eo,n=this.b.fo,f=(this.Ua.scrollX-f)*this.Hd+f,n=(this.Ua.scrollY-n)*this.Id+n,p=f,k=n,v=1/this.Jb(!e);e?(p-=this.b.r*v/2,k-=this.b.q*v/2):(p-=this.b.width*v/2,k-=this.b.height*v/2);p+=
a*v;k+=b*v;b=this.Ia();0!==b&&(p-=f,k-=n,a=Math.cos(b),b=Math.sin(b),e=p*a-k*b,k=k*a+p*b,p=e+f,k+=n);return c?p:k};m.prototype.La=function(a,b,c){var e=this.b.eo,f=this.b.fo,e=(this.Ua.scrollX-e)*this.Hd+e,n=(this.Ua.scrollY-f)*this.Id+f,f=e,p=n,k=this.Ia();if(0!==k){a-=e;b-=n;var v=Math.cos(-k),k=Math.sin(-k),m=a*v-b*k;b=b*v+a*k;a=m+e;b+=n}e=1/this.Jb(!1);f-=this.b.r*e/2;p-=this.b.q*e/2;f=(a-f)/e;return c?f:(b-p)/e};m.prototype.fc=function(){var a,b,c,e={s:this.scale,a:this.k,vl:this.Z,vt:this.aa,
vr:this.ea,vb:this.da,v:this.visible,bc:this.Cc,t:this.Oc,px:this.Hd,py:this.Id,o:this.opacity,zr:this.Vd,fx:[],cg:this.mg,instances:[]};a=0;for(b=this.D.length;a<b;a++)c=this.D[a],e.fx.push({name:c.name,active:c.Qb,params:this.qa[c.index]});return e};m.prototype.Kc=function(a){var b,c,e;this.scale=a.s;this.k=a.a;this.Z=a.vl;this.aa=a.vt;this.ea=a.vr;this.da=a.vb;this.visible=a.v;this.Cc=a.bc;this.Oc=a.t;this.Hd=a.px;this.Id=a.py;this.opacity=a.o;this.Vd=a.zr;this.mg=a.cg||[];za(this.$b,this.Lo);
var f=new da;b=0;for(e=this.mg.length;b<e;++b)f.add(this.mg[b]);c=b=0;for(e=this.$b.length;b<e;++b)f.contains(this.$b[b][2])||(this.$b[c]=this.$b[b],++c);ya(this.$b,c);c=a.fx;b=0;for(e=c.length;b<e;b++)if(a=this.gk(c[b].name))a.Qb=c[b].active,this.qa[a.index]=c[b].params;this.Pc();this.d.sort(p);this.jf=!0};Vb=m})();
(function(){function f(a,b){var c,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<d;c++)if(a[c]!==b[c])return!1;return!0}}function p(a,b){return a.index-b.index}function m(a){var b,c,d,e;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>=l.length&&(l.length=a.length+1);l[a.length]||(l[a.length]=[]);e=l[a.length];b=0;for(c=e.length;b<c;b++)if(d=e[b],f(a,d))return d;e.push(a);return a}
function q(a,b){this.b=a;this.$o={};this.xm={};this.sk=!1;this.Sm=new da;this.Sj=[];this.yj=[];this.name=b[0];var c=b[1];this.ie=[];var d,e;d=0;for(e=c.length;d<e;d++)this.Um(c[d],null,this.ie)}function r(a){this.type=a;this.d=[];this.I=[];this.Y=!0}function t(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.L=[];this.ve=[];this.Rm=this.lj=this.wl=this.ki=this.group=this.sl=!1;this.Fa=[];this.Ac=[];this.xc=[];this.wg="";this.Qe=this.ki=this.group=!1;this.Kh=null;c[1]&&(this.wg=c[1][1].toLowerCase(),
this.group=!0,this.ki=!!c[1][0],this.Kh=[],this.Qe=this.ki,this.b.$d.push(this),this.b.vf[this.wg]=this);this.tc=c[2];this.M=c[4];this.group||(this.b.em[this.M.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var e=new Wb(this,d[a]);e.index=a;this.Fa.push(e);this.Tl(e.type)}d=c[6];a=0;for(b=d.length;a<b;a++)e=new Xb(this,d[a]),e.index=a,this.Ac.push(e);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Um(c[a],this,this.xc);this.si=!1;this.Fa.length&&(this.si=null==this.Fa[0].type&&
this.Fa[0].$a==Z.prototype.i.xp)}function n(a,b){var c,d,e;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Cb))for(c=0,d=a.Ib.length;c<d;c++)e=a.Ib[c],a!==e&&-1===b.indexOf(e)&&b.push(e)}function e(a,b){this.Rb=a;this.sheet=a.sheet;this.b=a.b;this.H=[];this.ta=[];this.ja={};this.index=-1;this.dg=!1;this.$a=this.b.Wd(b[1]);this.trigger=0<b[3];this.wm=2===b[3];this.cd=b[4];this.Ag=b[5];this.Us=b[6];this.M=b[7];this.b.de[this.M.toString()]=this;-1===b[0]?(this.type=null,this.Ca=this.ll,this.Be=null,this.Dc=-1):
(this.type=this.b.j[b[0]],this.Ca=this.Us?this.Ot:this.kl,b[2]?(this.Be=this.type.di(b[2]),this.Dc=this.type.ek(b[2])):(this.Be=null,this.Dc=-1),this.Rb.parent&&this.Rb.parent.cj());this.wm&&(this.Ca=this.Pt);if(10===b.length){var c,d,e=b[9];c=0;for(d=e.length;c<d;c++){var g=new Yb(this,e[c]);this.H.push(g)}this.ta.length=e.length}}function b(a,b){this.Rb=a;this.sheet=a.sheet;this.b=a.b;this.H=[];this.ta=[];this.ja={};this.index=-1;this.dg=!1;this.$a=this.b.Wd(b[1]);-1===b[0]?(this.type=null,this.Ca=
this.ll,this.Be=null,this.Dc=-1):(this.type=this.b.j[b[0]],this.Ca=this.kl,b[2]?(this.Be=this.type.di(b[2]),this.Dc=this.type.ek(b[2])):(this.Be=null,this.Dc=-1));this.M=b[3];this.b.Yd[this.M.toString()]=this;if(6===b.length){var c,d,e=b[5];c=0;for(d=e.length;c<d;c++){var g=new Yb(this,e[c]);this.H.push(g)}this.ta.length=e.length}}function c(){K++;u.length===K&&u.push(new Zb);return u[K]}function a(a,b){this.uc=a;this.Rb=a.Rb;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Xc=null;this.Od=0;this.get=
null;this.mm=0;this.Ua=null;this.key=0;this.object=null;this.index=0;this.xh=this.ff=this.xh=this.ff=this.Am=this.Me=this.yh=null;this.zc=!1;var c,d,e;switch(b[0]){case 0:case 7:this.Xc=new $b(this,b[1]);this.Od=0;this.get=this.ss;break;case 1:this.Xc=new $b(this,b[1]);this.Od=0;this.get=this.ts;break;case 5:this.Xc=new $b(this,b[1]);this.Od=0;this.get=this.xs;break;case 3:case 8:this.mm=b[1];this.get=this.qs;break;case 6:this.Ua=this.b.Kk[b[1]];this.get=this.ys;break;case 9:this.key=b[1];this.get=
this.ws;break;case 4:this.object=this.b.j[b[1]];this.get=this.zs;this.Rb.Tl(this.object);this.uc instanceof Xb?this.Rb.cj():this.Rb.parent&&this.Rb.parent.cj();break;case 10:this.index=b[1];a.type&&a.type.J?(this.get=this.us,this.zc=!0):this.get=this.vs;break;case 11:this.yh=b[1];this.Me=null;this.get=this.rs;break;case 2:case 12:this.Am=b[1];this.get=this.os;break;case 13:for(this.get=this.As,this.ff=[],this.xh=[],c=1,d=b.length;c<d;c++)e=new Yb(this.uc,b[c]),this.ff.push(e),this.xh.push(0)}}function d(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.L=[];this.name=c[1];this.zh=c[2];this.ji=c[3];this.Jg=!!c[4];this.ri=!!c[5];this.M=c[6];this.b.ag[this.M.toString()]=this;this.data=this.ji;this.parent?(this.Ze=this.Jg||this.ri?-1:this.b.Yt++,this.b.vq.push(this)):(this.Ze=-1,this.b.xj.push(this))}function h(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.L=[];this.yg=null;this.Gs=c[1];this.Qb=!0}function g(){this.No=[];this.reset(null)}var l=[];q.prototype.toString=function(){return this.name};q.prototype.Um=
function(a,b,c){switch(a[0]){case 0:a=new ac(this,b,a);if(a.tc)for(c.push(a),c=0,b=a.Fa.length;c<b;c++)a.Fa[c].trigger&&this.Vm(a,c);else a.dn()?this.Vm(a,0):c.push(a);break;case 1:a=new Sb(this,b,a);c.push(a);break;case 2:a=new bc(this,b,a),c.push(a)}};q.prototype.xa=function(){var a,b;a=0;for(b=this.ie.length;a<b;a++)this.ie[a].xa(a<b-1&&this.ie[a+1].si)};q.prototype.Bl=function(){X(this.Sj);X(this.yj);this.Sl(this);X(this.yj)};q.prototype.Sl=function(a){var b,c,d,e,g=a.Sj,f=a.yj,h=this.Sm.xe();
b=0;for(c=h.length;b<c;++b)d=h[b],e=d.yg,!d.Qb||a===e||-1<f.indexOf(e)||(f.push(e),e.Sl(a),g.push(e))};q.prototype.Ca=function(a){this.b.rv||(this.sk=!0,a||(this.b.Ck=!0));var b,c;b=0;for(c=this.ie.length;b<c;b++){var d=this.ie[b];d.Ca();this.b.Mj(d.L);this.b.ke&&this.b.hb()}a||(this.b.Ck=!1)};q.prototype.Vm=function(a,b){a.tc||this.b.nj.push(a);var c,d,e=a.Fa[b],g;e.type?g=e.type.name:g="system";var f=(c=e.wm)?this.xm:this.$o;f[g]||(f[g]=[]);g=f[g];f=e.$a;if(c){if(e.H.length&&(e=e.H[0],1===e.type&&
2===e.Xc.type)){e=e.Xc.value.toLowerCase();c=0;for(d=g.length;c<d;c++)if(g[c].method==f){c=g[c].qg;c[e]?c[e].push([a,b]):c[e]=[[a,b]];return}c={};c[e]=[[a,b]];g.push({method:f,qg:c})}}else{c=0;for(d=g.length;c<d;c++)if(g[c].method==f){g[c].qg.push([a,b]);return}nc&&f===nc.prototype.i.mf?g.unshift({method:f,qg:[[a,b]]}):g.push({method:f,qg:[[a,b]]})}};Ib=q;r.prototype.rk=function(){return this.Y?this.type.d.length:this.d.length};r.prototype.Zb=function(){return this.Y?this.type.d:this.d};r.prototype.cf=
function(a){a&&(a.b.Ja().ya.tc?(this.Y&&(X(this.d),za(this.I,a.type.d),this.Y=!1),a=this.I.indexOf(a),-1!==a&&(this.d.push(this.I[a]),this.I.splice(a,1))):(this.Y=!1,X(this.d),this.d[0]=a))};qb=r;window._c2hh_="37C83F976C140139885F3C396BA11413E974CC56";t.prototype.xa=function(a){var b,c=this.parent;if(this.group)for(this.lj=!0;c;){if(!c.group){this.lj=!1;break}c=c.parent}this.wl=!this.dn()&&(!this.parent||this.parent.group&&this.parent.lj);this.Rm=!!a;this.ve=this.L.slice(0);for(c=this.parent;c;){a=
0;for(b=c.L.length;a<b;a++)this.tq(c.L[a]);c=c.parent}this.L=m(this.L);this.ve=m(this.ve);a=0;for(b=this.Fa.length;a<b;a++)this.Fa[a].xa();a=0;for(b=this.Ac.length;a<b;a++)this.Ac[a].xa();a=0;for(b=this.xc.length;a<b;a++)this.xc[a].xa(a<b-1&&this.xc[a+1].si)};t.prototype.mh=function(a){if(this.Qe!==!!a){this.Qe=!!a;var b;a=0;for(b=this.Kh.length;a<b;++a)this.Kh[a].gp();0<b&&this.b.W.Le&&this.b.W.Le.Bl()}};t.prototype.Tl=function(a){n(a,this.L)};t.prototype.tq=function(a){n(a,this.ve)};t.prototype.cj=
function(){this.sl=!0;this.parent&&this.parent.cj()};t.prototype.dn=function(){return this.Fa.length?this.Fa[0].trigger:!1};t.prototype.Ca=function(){var a,b,c=!1,d=this.b,e=this.b.Ja();e.ya=this;var g=this.Fa;this.si||(e.Vj=!1);if(this.tc){0===g.length&&(c=!0);e.Ea=0;for(a=g.length;e.Ea<a;e.Ea++)b=g[e.Ea],b.trigger||(b=b.Ca())&&(c=!0);(e.Ve=c)&&this.Zi()}else{e.Ea=0;for(a=g.length;e.Ea<a;e.Ea++)if(b=g[e.Ea].Ca(),!b){e.Ve=!1;this.wl&&d.ke&&d.hb();return}e.Ve=!0;this.Zi()}this.kr(e)};t.prototype.kr=
function(a){a.Ve&&this.Rm&&(a.Vj=!0);this.wl&&this.b.ke&&this.b.hb()};t.prototype.Mt=function(a){this.b.Ja().ya=this;this.Fa[a].Ca()&&(this.Zi(),this.b.Ja().Ve=!0)};t.prototype.Zi=function(){var a=this.b.Ja(),b;a.pb=0;for(b=this.Ac.length;a.pb<b;a.pb++)if(this.Ac[a.pb].Ca())return;this.vo()};t.prototype.Kt=function(){var a=this.b.Ja(),b;for(b=this.Ac.length;a.pb<b;a.pb++)if(this.Ac[a.pb].Ca())return;this.vo()};t.prototype.vo=function(){if(this.xc.length){var a,b,c,d,e=this.xc.length-1;this.b.Vi(this);
if(this.sl)for(a=0,b=this.xc.length;a<b;a++)c=this.xc[a],(d=!this.lj||!this.group&&a<e)&&this.b.df(c.L),c.Ca(),d?this.b.gd(c.L):this.b.Mj(c.L);else for(a=0,b=this.xc.length;a<b;a++)this.xc[a].Ca();this.b.Qi()}};t.prototype.Nt=function(){var a=this.b.Ja();a.ya=this;var b=!1,c;a.Ea=0;for(c=this.Fa.length;a.Ea<c;a.Ea++)if(this.Fa[a.Ea].Ca())b=!0;else if(!this.tc)return!1;return this.tc?b:!0};t.prototype.ef=function(){this.b.rg++;var a=this.b.Ja().Ea,b=this.b.Vi(this);if(!this.tc)for(b.Ea=a+1,a=this.Fa.length;b.Ea<
a;b.Ea++)if(!this.Fa[b.Ea].Ca())return this.b.Qi(),!1;this.Zi();this.b.Qi();return!0};t.prototype.Ms=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.Fa[b].type===a.type)return!1;return!0};ac=t;e.prototype.xa=function(){var a,b,c;a=0;for(b=this.H.length;a<b;a++)c=this.H[a],c.xa(),c.zc&&(this.dg=!0)};e.prototype.Pt=function(){return!0};e.prototype.ll=function(){var a,b;a=0;for(b=this.H.length;a<b;a++)this.ta[a]=this.H[a].get();return Xa(this.$a.apply(this.b.kd,this.ta),this.Ag)};
e.prototype.Ot=function(){var a,b;a=0;for(b=this.H.length;a<b;a++)this.ta[a]=this.H[a].get();a=this.$a.apply(this.Be?this.Be:this.type,this.ta);this.type.Sc();return a};e.prototype.kl=function(){var a,b,c,d,e,g,f,h,l=this.type,n=l.U(),p=this.Rb.tc&&!this.trigger;b=0;var m=l.Cb,u=l.J,q=l.ud,r=this.Dc,t=-1<r,K=this.dg,J=this.H,G=this.ta,I=this.Ag,N=this.$a,y;if(K)for(b=0,e=J.length;b<e;++b)g=J[b],g.zc||(G[b]=g.get(0));else for(b=0,e=J.length;b<e;++b)G[b]=J[b].get(0);if(n.Y){X(n.d);X(n.I);y=l.d;a=0;
for(d=y.length;a<d;++a){h=y[a];if(K)for(b=0,e=J.length;b<e;++b)g=J[b],g.zc&&(G[b]=g.get(a));t?(b=0,u&&(b=h.type.tf[q]),b=N.apply(h.C[r+b],G)):b=N.apply(h,G);(f=Xa(b,I))?n.d.push(h):p&&n.I.push(h)}l.finish&&l.finish(!0);n.Y=!1;l.Sc();return n.rk()}c=0;y=(f=p&&!this.Rb.Ms(this))?n.I:n.d;var E=!1;a=0;for(d=y.length;a<d;++a){h=y[a];if(K)for(b=0,e=J.length;b<e;++b)g=J[b],g.zc&&(G[b]=g.get(a));t?(b=0,u&&(b=h.type.tf[q]),b=N.apply(h.C[r+b],G)):b=N.apply(h,G);if(Xa(b,I))if(E=!0,f){if(n.d.push(h),m)for(b=
0,e=h.siblings.length;b<e;b++)g=h.siblings[b],g.type.U().d.push(g)}else{y[c]=h;if(m)for(b=0,e=h.siblings.length;b<e;b++)g=h.siblings[b],g.type.U().d[c]=g;c++}else if(f){y[c]=h;if(m)for(b=0,e=h.siblings.length;b<e;b++)g=h.siblings[b],g.type.U().I[c]=g;c++}else if(p&&(n.I.push(h),m))for(b=0,e=h.siblings.length;b<e;b++)g=h.siblings[b],g.type.U().I.push(g)}ya(y,c);if(m)for(u=l.Ib,a=0,d=u.length;a<d;a++)h=u[a].U(),f?ya(h.I,c):ya(h.d,c);c=E;if(f&&!E)for(a=0,d=n.d.length;a<d;a++){h=n.d[a];if(K)for(b=0,e=
J.length;b<e;b++)g=J[b],g.zc&&(G[b]=g.get(a));b=t?N.apply(h.C[r],G):N.apply(h,G);if(Xa(b,I)){E=!0;break}}l.finish&&l.finish(c||p);return p?E:n.rk()};Wb=e;b.prototype.xa=function(){var a,b,c;a=0;for(b=this.H.length;a<b;a++)c=this.H[a],c.xa(),c.zc&&(this.dg=!0)};b.prototype.ll=function(){var a=this.b,b,c,d=this.H,e=this.ta;b=0;for(c=d.length;b<c;++b)e[b]=d[b].get();return this.$a.apply(a.kd,e)};b.prototype.kl=function(){var a=this.type,b=this.Dc,c=a.ud,d=this.dg,e=this.H,g=this.ta,f=this.$a,h=a.U().Zb(),
a=a.J,l=-1<b,n,p,m,u,q,r;if(d)for(p=0,u=e.length;p<u;++p)q=e[p],q.zc||(g[p]=q.get(0));else for(p=0,u=e.length;p<u;++p)g[p]=e[p].get(0);n=0;for(m=h.length;n<m;++n){r=h[n];if(d)for(p=0,u=e.length;p<u;++p)q=e[p],q.zc&&(g[p]=q.get(n));l?(p=0,a&&(p=r.type.tf[c]),f.apply(r.C[b+p],g)):f.apply(r,g)}return!1};Xb=b;var u=[],K=-1;a.prototype.xa=function(){var a,b;if(11===this.type)this.Me=this.b.Lm(this.yh,this.Rb.parent);else if(13===this.type)for(a=0,b=this.ff.length;a<b;a++)this.ff[a].xa();this.Xc&&this.Xc.xa()};
a.prototype.Zs=function(a){this.zc||!a||a.ka.fj||(this.zc=!0)};a.prototype.Eo=function(){this.zc=!0};a.prototype.ss=function(a){this.Od=a||0;a=c();this.Xc.get(a);K--;return a.data};a.prototype.ts=function(a){this.Od=a||0;a=c();this.Xc.get(a);K--;return F(a.data)?a.data:""};a.prototype.zs=function(){return this.object};a.prototype.qs=function(){return this.mm};a.prototype.xs=function(a){this.Od=a||0;a=c();this.Xc.get(a);K--;return a.Ta()?this.b.tg(a.data):this.b.kk(a.data)};a.prototype.ys=function(){return this.Ua};
a.prototype.ws=function(){return this.key};a.prototype.vs=function(){return this.index};a.prototype.us=function(a){a=a||0;var b=this.uc.type,c=null,c=b.U(),d=c.Zb();if(d.length)c=d[a%d.length].type;else if(c.I.length)c=c.I[a%c.I.length].type;else if(b.d.length)c=b.d[a%b.d.length].type;else return 0;return this.index+c.Wh[b.ud]};a.prototype.rs=function(){return this.Me};a.prototype.os=function(){return this.Am};a.prototype.As=function(){var a,b;a=0;for(b=this.ff.length;a<b;a++)this.xh[a]=this.ff[a].get();
return this.xh};Yb=a;d.prototype.xa=function(){this.L=m(this.L)};d.prototype.Md=function(a){var b=this.b.Jm();this.parent&&!this.Jg&&b?(this.Ze>=b.length&&(b.length=this.Ze+1),b[this.Ze]=a):this.data=a};d.prototype.Pe=function(){var a=this.b.Jm();return!this.parent||this.Jg||!a||this.ri?this.data:this.Ze>=a.length||"undefined"===typeof a[this.Ze]?this.ji:a[this.Ze]};d.prototype.Ca=function(){!this.parent||this.Jg||this.ri||this.Md(this.ji)};Sb=d;h.prototype.toString=function(){return"include:"+this.yg.toString()};
h.prototype.xa=function(){this.yg=this.b.Xj[this.Gs];this.sheet.Sm.add(this);this.L=m(this.L);for(var a=this.parent;a;)a.group&&a.Kh.push(this),a=a.parent;this.gp()};h.prototype.Ca=function(){this.parent&&this.b.hh(this.b.j);this.yg.sk||this.yg.Ca(!0);this.parent&&this.b.gd(this.b.j)};h.prototype.gp=function(){for(var a=this.parent;a;){if(a.group&&!a.Qe){this.Qb=!1;return}a=a.parent}this.Qb=!0};bc=h;g.prototype.reset=function(a){this.ya=a;this.pb=this.Ea=0;X(this.No);this.Vj=this.Ve=!1};g.prototype.$m=
function(){return this.ya.sl?!0:this.Ea<this.ya.Fa.length-1?!!this.ya.L.length:!1};Rb=g})();
(function(){function f(f,e){this.uc=f;this.b=f.b;this.type=e[0];this.get=[this.Fr,this.Br,this.Or,this.Rr,this.nr,this.Pr,this.Jr,this.xr,this.Ir,this.Nr,this.or,this.Mr,this.yr,this.Kr,this.Gr,this.Hr,this.Cr,this.Dr,this.ur,this.Qr,this.Lr,this.Er,this.tr,this.Ar][this.type];var b=null;this.Fd=this.H=this.ta=this.$a=this.jj=this.second=this.first=this.value=null;this.Dc=-1;this.Fc=null;this.jp=-1;this.Me=this.yh=null;this.Sf=!1;switch(this.type){case 0:case 1:case 2:this.value=e[1];break;case 3:this.first=
new $b(f,e[1]);break;case 18:this.first=new $b(f,e[1]);this.second=new $b(f,e[2]);this.jj=new $b(f,e[3]);break;case 19:this.$a=this.b.Wd(e[1]);this.$a!==Z.prototype.kb.random&&this.$a!==Z.prototype.kb.Eq||this.uc.Eo();this.ta=[];this.H=[];3===e.length?(b=e[2],this.ta.length=b.length+1):this.ta.length=1;break;case 20:this.Fd=this.b.j[e[1]];this.Dc=-1;this.$a=this.b.Wd(e[2]);this.Sf=e[3];oc&&this.$a===oc.prototype.kb.op&&this.uc.Eo();e[4]?this.Fc=new $b(f,e[4]):this.Fc=null;this.ta=[];this.H=[];6===
e.length?(b=e[5],this.ta.length=b.length+1):this.ta.length=1;break;case 21:this.Fd=this.b.j[e[1]];this.Sf=e[2];e[3]?this.Fc=new $b(f,e[3]):this.Fc=null;this.jp=e[4];break;case 22:this.Fd=this.b.j[e[1]];this.Fd.di(e[2]);this.Dc=this.Fd.ek(e[2]);this.$a=this.b.Wd(e[3]);this.Sf=e[4];e[5]?this.Fc=new $b(f,e[5]):this.Fc=null;this.ta=[];this.H=[];7===e.length?(b=e[6],this.ta.length=b.length+1):this.ta.length=1;break;case 23:this.yh=e[1],this.Me=null}this.uc.Zs(this.Fd);4<=this.type&&17>=this.type&&(this.first=
new $b(f,e[1]),this.second=new $b(f,e[2]));if(b){var c,a;c=0;for(a=b.length;c<a;c++)this.H.push(new $b(f,b[c]))}}function p(){++t;r.length===t&&r.push(new Zb);return r[t]}function m(f,e,b){var c,a;c=0;for(a=f.length;c<a;++c)f[c].get(b),e[c+1]=b.data}function q(f,e){this.type=f||cc.lf;this.data=e||0;this.bf=null;this.type==cc.lf&&(this.data=Math.floor(this.data))}f.prototype.xa=function(){23===this.type&&(this.Me=this.uc.b.Lm(this.yh,this.uc.Rb.parent));this.first&&this.first.xa();this.second&&this.second.xa();
this.jj&&this.jj.xa();this.Fc&&this.Fc.xa();if(this.H){var f,e;f=0;for(e=this.H.length;f<e;f++)this.H[f].xa()}};var r=[],t=-1;f.prototype.Qr=function(f){var e=this.H,b=this.ta;b[0]=f;f=p();m(e,b,f);--t;this.$a.apply(this.b.kd,b)};f.prototype.Lr=function(f){var e=this.Fd,b=this.ta,c=this.H,a=this.Fc,d=this.$a,h=this.uc.Od,g=e.U(),l=g.Zb();if(!l.length)if(g.I.length)l=g.I;else{this.Sf?f.Fb(""):f.ca(0);return}b[0]=f;f.bf=e;f=p();m(c,b,f);a&&(a.get(f),f.Ta()&&(h=f.data,l=e.d));--t;e=l.length;if(h>=e||
h<=-e)h%=e;0>h&&(h+=e);d.apply(l[h],b)};f.prototype.tr=function(f){var e=this.Fd,b=this.ta,c=this.H,a=this.Fc,d=this.Dc,h=this.$a,g=this.uc.Od,l=e.U(),u=l.Zb();if(!u.length)if(l.I.length)u=l.I;else{this.Sf?f.Fb(""):f.ca(0);return}b[0]=f;f.bf=e;f=p();m(c,b,f);a&&(a.get(f),f.Ta()&&(g=f.data,u=e.d));--t;c=u.length;if(g>=c||g<=-c)g%=c;0>g&&(g+=c);g=u[g];u=0;e.J&&(u=g.type.tf[e.ud]);h.apply(g.C[d+u],b)};f.prototype.Er=function(f){var e=this.Fc,b=this.Fd,c=this.jp,a=this.uc.Od,d=b.U(),h=d.Zb();if(!h.length)if(d.I.length)h=
d.I;else{this.Sf?f.Fb(""):f.ca(0);return}if(e){d=p();e.get(d);if(d.Ta()){a=d.data;h=b.d;0!==h.length&&(a%=h.length,0>a&&(a+=h.length));a=b.jk(a);b=a.Ka[c];F(b)?f.Fb(b):f.u(b);--t;return}--t}e=h.length;if(a>=e||a<=-e)a%=e;0>a&&(a+=e);a=h[a];h=0;b.J&&(h=a.type.Wh[b.ud]);b=a.Ka[c+h];F(b)?f.Fb(b):f.u(b)};f.prototype.Fr=function(f){f.type=cc.lf;f.data=this.value};f.prototype.Br=function(f){f.type=cc.kf;f.data=this.value};f.prototype.Or=function(f){f.type=cc.String;f.data=this.value};f.prototype.Rr=function(f){this.first.get(f);
f.Ta()&&(f.data=-f.data)};f.prototype.nr=function(f){this.first.get(f);var e=p();this.second.get(e);f.Ta()&&e.Ta()&&(f.data+=e.data,e.zf()&&f.Hf());--t};f.prototype.Pr=function(f){this.first.get(f);var e=p();this.second.get(e);f.Ta()&&e.Ta()&&(f.data-=e.data,e.zf()&&f.Hf());--t};f.prototype.Jr=function(f){this.first.get(f);var e=p();this.second.get(e);f.Ta()&&e.Ta()&&(f.data*=e.data,e.zf()&&f.Hf());--t};f.prototype.xr=function(f){this.first.get(f);var e=p();this.second.get(e);f.Ta()&&e.Ta()&&(f.data/=
e.data,f.Hf());--t};f.prototype.Ir=function(f){this.first.get(f);var e=p();this.second.get(e);f.Ta()&&e.Ta()&&(f.data%=e.data,e.zf()&&f.Hf());--t};f.prototype.Nr=function(f){this.first.get(f);var e=p();this.second.get(e);f.Ta()&&e.Ta()&&(f.data=Math.pow(f.data,e.data),e.zf()&&f.Hf());--t};f.prototype.or=function(f){this.first.get(f);var e=p();this.second.get(e);e.Cf()||f.Cf()?this.qr(f,e):this.pr(f,e);--t};f.prototype.qr=function(f,e){f.Cf()&&e.Cf()?this.sr(f,e):this.rr(f,e)};f.prototype.sr=function(f,
e){f.data+=e.data};f.prototype.rr=function(f,e){f.Cf()?f.data+=(Math.round(1E10*e.data)/1E10).toString():f.Fb(f.data.toString()+e.data)};f.prototype.pr=function(f,e){f.ca(f.data&&e.data?1:0)};f.prototype.Mr=function(f){this.first.get(f);var e=p();this.second.get(e);f.Ta()&&e.Ta()&&(f.data||e.data?f.ca(1):f.ca(0));--t};f.prototype.ur=function(f){this.first.get(f);f.data?this.second.get(f):this.jj.get(f)};f.prototype.yr=function(f){this.first.get(f);var e=p();this.second.get(e);f.ca(f.data===e.data?
1:0);--t};f.prototype.Kr=function(f){this.first.get(f);var e=p();this.second.get(e);f.ca(f.data!==e.data?1:0);--t};f.prototype.Gr=function(f){this.first.get(f);var e=p();this.second.get(e);f.ca(f.data<e.data?1:0);--t};f.prototype.Hr=function(f){this.first.get(f);var e=p();this.second.get(e);f.ca(f.data<=e.data?1:0);--t};f.prototype.Cr=function(f){this.first.get(f);var e=p();this.second.get(e);f.ca(f.data>e.data?1:0);--t};f.prototype.Dr=function(f){this.first.get(f);var e=p();this.second.get(e);f.ca(f.data>=
e.data?1:0);--t};f.prototype.Ar=function(f){var e=this.Me.Pe();ia(e)?f.u(e):f.Fb(e)};$b=f;q.prototype.zf=function(){return this.type===cc.kf};q.prototype.Ta=function(){return this.type===cc.lf||this.type===cc.kf};q.prototype.Cf=function(){return this.type===cc.String};q.prototype.Hf=function(){this.zf()||(this.Cf()&&(this.data=parseFloat(this.data)),this.type=cc.kf)};q.prototype.ca=function(f){this.type=cc.lf;this.data=Math.floor(f)};q.prototype.u=function(f){this.type=cc.kf;this.data=f};q.prototype.Fb=
function(f){this.type=cc.String;this.data=f};q.prototype.ql=function(f){ia(f)?(this.type=cc.kf,this.data=f):F(f)?(this.type=cc.String,this.data=f.toString()):(this.type=cc.lf,this.data=0)};Zb=q;cc={lf:0,kf:1,String:2}})();function Z(f){this.b=f;this.gb=[]}
Z.prototype.fc=function(){var f={},p,m,q,r,t,n,e,b;f.waits=[];var c=f.waits,a;p=0;for(m=this.gb.length;p<m;p++){n=this.gb[p];a={t:n.time,st:n.ej,s:n.rh,ev:n.Ke.M,sm:[],sols:{}};n.Ke.Ac[n.pb]&&(a.act=n.Ke.Ac[n.pb].M);q=0;for(r=n.L.length;q<r;q++)a.sm.push(n.L[q].M);for(t in n.mb)if(n.mb.hasOwnProperty(t)){e=this.b.j[parseInt(t,10)];b={sa:n.mb[t].lh,insts:[]};q=0;for(r=n.mb[t].ad.length;q<r;q++)b.insts.push(n.mb[t].ad[q].uid);a.sols[e.M.toString()]=b}c.push(a)}return f};
Z.prototype.Kc=function(f){f=f.waits;var p,m,q,r,t,n,e,b,c,a,d;X(this.gb);p=0;for(m=f.length;p<m;p++)if(n=f[p],b=this.b.em[n.ev.toString()]){c=-1;q=0;for(r=b.Ac.length;q<r;q++)if(b.Ac[q].M===n.act){c=q;break}if(-1!==c){e={mb:{},L:[],Tj:!1};e.time=n.t;e.ej=n.st||"";e.rh=!!n.s;e.Ke=b;e.pb=c;q=0;for(r=n.sm.length;q<r;q++)(b=this.b.gi(n.sm[q]))&&e.L.push(b);for(t in n.sols)if(n.sols.hasOwnProperty(t)&&(b=this.b.gi(parseInt(t,10)))){c=n.sols[t];a={lh:c.sa,ad:[]};q=0;for(r=c.insts.length;q<r;q++)(d=this.b.fi(c.insts[q]))&&
a.ad.push(d);e.mb[b.index.toString()]=a}this.gb.push(e)}}};
(function(){function f(){}function p(){}function m(){var b;n.length?b=n.pop():b={mb:{},L:[]};b.Tj=!1;return b}function q(){var b;e.length?b=e.pop():b={ad:[]};b.lh=!1;return b}function r(){}var t=Z.prototype;f.prototype.Ml=function(){return!0};f.prototype.Np=function(){return!0};f.prototype.rp=function(b,c,a){return dc(b,c,a)};f.prototype.lq=function(){var b=this.b.Ja(),c=b.ya,a=b.$m(),b=this.b.qo();if(a)for(a=0;!b.la;a++)this.b.df(c.L),b.index=a,c.ef()||(b.la=!0),this.b.gd(c.L);else for(a=0;!b.la;a++)b.index=
a,c.ef()||(b.la=!0);this.b.ko();return!1};f.prototype.yp=function(b,c,a){var d=this.b.Ja(),e=d.ya,d=d.$m();b=this.b.qo(b);if(a<c)if(d)for(;c>=a&&!b.la;--c)this.b.df(e.L),b.index=c,e.ef(),this.b.gd(e.L);else for(;c>=a&&!b.la;--c)b.index=c,e.ef();else if(d)for(;c<=a&&!b.la;++c)this.b.df(e.L),b.index=c,e.ef(),this.b.gd(e.L);else for(;c<=a&&!b.la;++c)b.index=c,e.ef();this.b.ko();return!1};f.prototype.hq=function(){var b=this.b.fk().ja;"undefined"===typeof b.TriggerOnce_lastTick&&(b.TriggerOnce_lastTick=
-1);var c=b.TriggerOnce_lastTick,a=this.b.ld;b.TriggerOnce_lastTick=a;return this.b.Jk||c!==a-1};f.prototype.Qp=function(b,c){if(!b)return!1;var a=b.U(),d=a.Zb();c=S(c);if(0>c||c>=d.length)return!1;a.cf(d[c]);b.Sc();return!0};f.prototype.Rp=function(b){if(!b)return!1;var c=b.U(),a=c.Zb(),d=S(Math.random()*a.length);if(d>=a.length)return!1;c.cf(a[d]);b.Sc();return!0};f.prototype.tp=function(b,c,a){return dc(b.Pe(),c,a)};f.prototype.Cp=function(b){return(b=this.b.vf[b.toLowerCase()])&&b.Qe};f.prototype.xp=
function(){var b=this.b.Ja();return b.Vj?!1:!b.Ve};f.prototype.Nl=function(){return!0};f.prototype.Lp=function(){return!0};f.prototype.wj=function(){return!0};f.prototype.Pl=function(){return!0};f.prototype.Op=function(){return!0};f.prototype.Fh=function(){return!0};f.prototype.mp=function(b,c,a){return Na(Y(b),Y(a))<=Y(c)};f.prototype.Bp=function(b,c){return Ua(Y(b),Y(c))};f.prototype.Ap=function(b,c,a){b=La(b);c=La(c);a=La(a);return Ua(a,c)?Ua(b,c)&&!Ua(b,a):!(!Ua(b,c)&&Ua(b,a))};t.i=new f;p.prototype.vp=
function(b,c,a,d){if(c&&b&&(c=this.b.nm(b,c,a,d))){this.b.Ic++;var e;this.b.trigger(Object.getPrototypeOf(b.ka).i.Ch,c);if(c.Cb)for(a=0,d=c.siblings.length;a<d;a++)e=c.siblings[a],this.b.trigger(Object.getPrototypeOf(e.type.ka).i.Ch,e);this.b.Ic--;b=b.U();b.Y=!1;X(b.d);b.d[0]=c;if(c.Cb)for(a=0,d=c.siblings.length;a<d;a++)e=c.siblings[a],b=e.type.U(),b.Y=!1,X(b.d),b.d[0]=e}};p.prototype.aq=function(b,c){0===b.zh?ia(c)?b.Md(c):b.Md(parseFloat(c)):1===b.zh&&b.Md(c.toString())};p.prototype.lp=function(b,
c){0===b.zh?ia(c)?b.Md(b.Pe()+c):b.Md(b.Pe()+parseFloat(c)):1===b.zh&&b.Md(b.Pe()+c.toString())};p.prototype.fq=function(b,c){0===b.zh&&(ia(c)?b.Md(b.Pe()-c):b.Md(b.Pe()-parseFloat(c)))};p.prototype.Xp=function(b,c){var a=this.b.vf[b.toLowerCase()];if(a)switch(c){case 0:a.mh(!1);break;case 1:a.mh(!0);break;case 2:a.mh(!a.Qe)}};var n=[],e=[];p.prototype.jq=function(b){if(!(0>b)){var c,a,d,e=this.b.Ja(),f=m();f.time=this.b.ab.O+b;f.ej="";f.rh=!1;f.Ke=e.ya;f.pb=e.pb+1;b=0;for(c=this.b.j.length;b<c;b++)d=
this.b.j[b],a=d.U(),a.Y&&-1===e.ya.L.indexOf(d)||(f.L.push(d),d=q(),d.lh=a.Y,za(d.ad,a.d),f.mb[b.toString()]=d);this.gb.push(f);return!0}};p.prototype.kq=function(b){var c,a,d,e=this.b.Ja(),f=m();f.time=-1;f.ej=b.toLowerCase();f.rh=!1;f.Ke=e.ya;f.pb=e.pb+1;b=0;for(c=this.b.j.length;b<c;b++)d=this.b.j[b],a=d.U(),a.Y&&-1===e.ya.L.indexOf(d)||(f.L.push(d),d=q(),d.lh=a.Y,za(d.ad,a.d),f.mb[b.toString()]=d);this.gb.push(f);return!0};p.prototype.dq=function(b){b=b.toLowerCase();var c,a,d;c=0;for(a=this.gb.length;c<
a;++c)d=this.gb[c],-1===d.time&&d.ej===b&&(d.rh=!0)};p.prototype.Sp=function(){var b,c,a;b=0;for(c=this.b.xj.length;b<c;b++)a=this.b.xj[b],a.data=a.ji};p.prototype.Tp=function(){if(!this.b.Lg&&!this.b.hg&&this.b.W){this.b.hg=this.b.W;var b,c,a;b=0;for(c=this.b.$d.length;b<c;b++)a=this.b.$d[b],a.mh(a.ki)}};t.P=new p;r.prototype["int"]=function(b,c){F(c)?(b.ca(parseInt(c,10)),isNaN(b.data)&&(b.data=0)):b.ca(c)};r.prototype["float"]=function(b,c){F(c)?(b.u(parseFloat(c)),isNaN(b.data)&&(b.data=0)):b.u(c)};
r.prototype.random=function(b,c,a){void 0===a?b.u(Math.random()*c):b.u(Math.random()*(a-c)+c)};r.prototype.sqrt=function(b,c){b.u(Math.sqrt(c))};r.prototype.abs=function(b,c){b.u(Math.abs(c))};r.prototype.round=function(b,c){b.ca(Math.round(c))};r.prototype.floor=function(b,c){b.ca(Math.floor(c))};r.prototype.ceil=function(b,c){b.ca(Math.ceil(c))};r.prototype.sin=function(b,c){b.u(Math.sin(Y(c)))};r.prototype.cos=function(b,c){b.u(Math.cos(Y(c)))};r.prototype.tan=function(b,c){b.u(Math.tan(Y(c)))};
r.prototype.asin=function(b,c){b.u(Ga(Math.asin(c)))};r.prototype.acos=function(b,c){b.u(Ga(Math.acos(c)))};r.prototype.atan=function(b,c){b.u(Ga(Math.atan(c)))};r.prototype.exp=function(b,c){b.u(Math.exp(c))};r.prototype.log10=function(b,c){b.u(Math.log(c)/Math.LN10)};r.prototype.max=function(b){var c=arguments[1];"number"!==typeof c&&(c=0);var a,d,e;a=2;for(d=arguments.length;a<d;a++)e=arguments[a],"number"===typeof e&&c<e&&(c=e);b.u(c)};r.prototype.min=function(b){var c=arguments[1];"number"!==
typeof c&&(c=0);var a,d,e;a=2;for(d=arguments.length;a<d;a++)e=arguments[a],"number"===typeof e&&c>e&&(c=e);b.u(c)};r.prototype.He=function(b){b.u(this.b.He)};r.prototype.Yf=function(b){b.u(this.b.Yf)};r.prototype.time=function(b){b.u(this.b.ab.O)};r.prototype.ld=function(b){b.ca(this.b.ld)};r.prototype.Mi=function(b){b.ca(this.b.Mi)};r.prototype.ck=function(b){b.ca(this.b.ck)};r.prototype.k=function(b,c,a,d,e){b.u(Ga(Ma(c,a,d,e)))};r.prototype.left=function(b,c,a){b.Fb(F(c)?c.substr(0,a):"")};r.prototype.right=
function(b,c,a){b.Fb(F(c)?c.substr(c.length-a):"")};r.prototype.replace=function(b,c,a,d){F(c)&&F(a)&&F(d)?b.Fb(c.replace(new RegExp(fb(a),"gi"),d)):b.Fb(F(c)?c:"")};r.prototype.trim=function(b,c){b.Fb(F(c)?c.trim():"")};r.prototype.Eq=function(b){var c=S(Math.random()*(arguments.length-1));b.ql(arguments[c+1])};r.prototype.Oj=function(b){b.u(this.b.Oj/1E3)};r.prototype.Di=function(b){b.u(this.b.Di)};t.kb=new r;t.Lt=function(){var b,c,a,d,f,g,l=this.b.Ja();b=0;for(a=this.gb.length;b<a;b++){d=this.gb[b];
if(-1===d.time){if(!d.rh)continue}else if(d.time>this.b.ab.O)continue;l.ya=d.Ke;l.pb=d.pb;l.Ea=0;for(c in d.mb)d.mb.hasOwnProperty(c)&&(f=this.b.j[parseInt(c,10)].U(),g=d.mb[c],f.Y=g.lh,za(f.d,g.ad),f=g,X(f.ad),e.push(f));d.Ke.Kt();this.b.Mj(d.L);d.Tj=!0}c=b=0;for(a=this.gb.length;b<a;b++)d=this.gb[b],this.gb[c]=d,d.Tj?(Za(d.mb),X(d.L),n.push(d)):c++;ya(this.gb,c)}})();
(function(){pb=function(f,m){var q=f[1],r=f[3],t=f[4],n=f[5],e=f[6],b=f[7],c=f[8];m.i||(m.i={});m.P||(m.P={});m.kb||(m.kb={});var a=m.i,d=m.P,h=m.kb;r&&(a.up=function(a,b){return dc(this.x,a,b)},a.xu=function(a,b){return dc(this.y,a,b)},a.Bu=function(){var a=this.g;this.Ra();var b=this.Ya;return!(b.right<a.Z||b.bottom<a.aa||b.left>a.ea||b.top>a.da)},a.Cu=function(){this.Ra();var a=this.Ya,b=this.b.W;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.Mu=function(a,b,c){var d=this.U(),
e=d.Zb();if(!e.length)return!1;var f=e[0],h=f,p=Wa(f.x,f.y,b,c),m,n,q;m=1;for(n=e.length;m<n;m++)if(f=e[m],q=Wa(f.x,f.y,b,c),0===a&&q<p||1===a&&q>p)p=q,h=f;d.cf(h);return!0},d.Rl=function(a){this.x!==a&&(this.x=a,this.Qa())},d.bv=function(a){this.y!==a&&(this.y=a,this.Qa())},d.Zu=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.Qa()},d.$u=function(a,b){var c=a.js(this);if(c){var d;c.ik?(d=c.ik(b,!0),c=c.ik(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.Qa()}},
d.Gu=function(a){0!==a&&(this.x+=Math.cos(this.k)*a,this.y+=Math.sin(this.k)*a,this.Qa())},d.Fu=function(a,b){0!==b&&(this.x+=Math.cos(Y(a))*b,this.y+=Math.sin(Y(a))*b,this.Qa())},h.pq=function(a){a.u(this.x)},h.qq=function(a){a.u(this.y)},h.He=function(a){a.u(this.b.Km(this))});t&&(a.wu=function(a,b){return dc(this.width,a,b)},a.uu=function(a,b){return dc(this.height,a,b)},d.cq=function(a){this.width!==a&&(this.width=a,this.Qa())},d.Xu=function(a){this.height!==a&&(this.height=a,this.Qa())},d.Zp=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.Qa()},h.mq=function(a){a.u(this.width)},h.zp=function(a){a.u(this.height)},h.ru=function(a){this.Ra();a.u(this.Ya.left)},h.tu=function(a){this.Ra();a.u(this.Ya.top)},h.su=function(a){this.Ra();a.u(this.Ya.right)},h.qu=function(a){this.Ra();a.u(this.Ya.bottom)});n&&(a.mp=function(a,b){return Na(this.k,Y(b))<=Y(a)},a.Bp=function(a){return Ua(this.k,Y(a))},a.Ap=function(a,b){var c=La(a),d=La(b),e=Ia(this.k);return Ua(d,
c)?Ua(e,c)&&!Ua(e,d):!(!Ua(e,c)&&Ua(e,d))},d.Uu=function(a){a=Y(Ha(a));isNaN(a)||this.k===a||(this.k=a,this.Qa())},d.Qu=function(a){0===a||isNaN(a)||(this.k+=Y(a),this.k=Ia(this.k),this.Qa())},d.Ru=function(a){0===a||isNaN(a)||(this.k-=Y(a),this.k=Ia(this.k),this.Qa())},d.Su=function(a,b){var c=Ta(this.k,Y(b),Y(a));isNaN(c)||this.k===c||(this.k=c,this.Qa())},d.Tu=function(a,b,c){a=Ta(this.k,Math.atan2(c-this.y,b-this.x),Y(a));isNaN(a)||this.k===a||(this.k=a,this.Qa())},d.av=function(a,b){var c=Math.atan2(b-
this.y,a-this.x);isNaN(c)||this.k===c||(this.k=c,this.Qa())},h.pu=function(a){a.u(Ja(this.k))});q||(a.sp=function(a,b,c){return dc(this.Ka[a],b,c)},a.Kl=function(a){return this.Ka[a]},a.Nu=function(a,b){var c=this.U(),d=c.Zb();if(!d.length)return!1;var e=d[0],f=e,h=e.Ka[b],p,m,n;p=1;for(m=d.length;p<m;p++)if(e=d[p],n=e.Ka[b],0===a&&n<h||1===a&&n>h)h=n,f=e;c.cf(f);return!0},a.Lu=function(a){var b,c,d,e,f;if(this.b.fk().Ag){f=this.U();if(f.Y)for(f.Y=!1,X(f.d),X(f.I),d=this.d,b=0,c=d.length;b<c;b++)e=
d[b],e.uid===a?f.I.push(e):f.d.push(e);else{d=b=0;for(c=f.d.length;b<c;b++)e=f.d[b],f.d[d]=e,e.uid===a?f.I.push(e):d++;ya(f.d,d)}this.Sc();return!!f.d.length}e=this.b.fi(a);if(!e)return!1;f=this.U();if(!f.Y&&-1===f.d.indexOf(e))return!1;if(this.J)for(a=e.type.ma,b=0,c=a.length;b<c;b++){if(a[b]===this)return f.cf(e),this.Sc(),!0}else if(e.type===this)return f.cf(e),this.Sc(),!0;return!1},a.Ch=function(){return!0},a.Mp=function(){return!0},d.Yp=function(a,b){var c=this.Ka;ia(c[a])?c[a]=ia(b)?b:parseFloat(b):
F(c[a])&&(c[a]=F(b)?b:b.toString())},d.ou=function(a,b){var c=this.Ka;ia(c[a])?c[a]=ia(b)?c[a]+b:c[a]+parseFloat(b):F(c[a])&&(c[a]=F(b)?c[a]+b:c[a]+b.toString())},d.cv=function(a,b){var c=this.Ka;ia(c[a])&&(c[a]=ia(b)?c[a]-b:c[a]-parseFloat(b))},d.Ql=function(a,b){this.Ka[a]=b?1:0},d.dv=function(a){this.Ka[a]=1-this.Ka[a]},d.wp=function(){this.b.ye(this)},d.Gp||(d.Gp=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Bi(this,b,!0);this.Zd&&this.Zd();if(this.C)for(a=0,b=this.C.length;a<
b;++a)c=this.C[a],c.Zd&&c.Zd()}),h.yu=function(a){var b=a.bf.d.length,c,d,e;c=0;for(d=this.b.Uc.length;c<d;c++)e=this.b.Uc[c],a.bf.J?0<=e.type.ma.indexOf(a.bf)&&b++:e.type===a.bf&&b++;a.ca(b)},h.Pu=function(a){a.ca(a.bf.U().Zb().length)},h.iq=function(a){a.ca(this.uid)},h.zu=function(a){a.ca(this.vg())},h.Jl||(h.Jl=function(a){a.Fb(JSON.stringify(this.b.ml(this,!0)))}));e&&(a.Ep=function(){return this.visible},d.bq=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.X=!0)},a.vu=function(a,b){return dc(lb(100*
this.opacity),a,b)},d.Yu=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.X=!0)},h.Opacity=function(a){a.u(lb(100*this.opacity))});b&&(a.Au=function(a){return a?this.g===a:!1},a.Ou=function(a){var b=this.U(),c=b.Zb();if(!c.length)return!1;var d=c[0],e=d,f,h;f=1;for(h=c.length;f<h;f++)if(d=c[f],0===a){if(d.g.index>e.g.index||d.g.index===e.g.index&&d.Zc()>e.Zc())e=d}else if(d.g.index<e.g.index||d.g.index===e.g.index&&d.Zc()<e.Zc())e=d;b.cf(e);return!0},d.Iu=function(){var a=
this.g,b=a.d;b.length&&b[b.length-1]===this||(a.Rf(this,!1),a.fg(this,!1),this.b.X=!0)},d.Hp=function(){var a=this.g,b=a.d;b.length&&b[0]===this||(a.Rf(this,!1),a.zt(this),this.b.X=!0)},d.Hu=function(a){a&&a!=this.g&&(this.g.Rf(this,!0),this.g=a,a.fg(this,!0),this.b.X=!0)},d.hv=function(a,b){var c=0===a;if(b){var d=b.Mm(this);d&&d.uid!==this.uid&&(this.g.index!==d.g.index&&(this.g.Rf(this,!0),this.g=d.g,d.g.fg(this,!0)),this.g.$s(this,d,c),this.b.X=!0)}},h.Eu=function(a){a.ca(this.g.Qn)},h.Du=function(a){a.Fb(this.g.name)},
h.gv=function(a){a.ca(this.Zc())});c&&(d.Vu=function(a,b){if(this.b.n){var c=this.type.hk(b);if(!(0>c)){var d=1===a;this.Xd[c]!==d&&(this.Xd[c]=d,this.Pc(),this.b.X=!0)}}},d.Wu=function(a,b,c){if(this.b.n){var d=this.type.hk(a);0>d||(a=this.type.D[d],d=this.qa[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.n.ns(a.Da,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Qb&&(this.b.X=!0))))}})};Jb=function(){this.Ij=this.Cj=!0;this.type.Wl=!0;this.b.X=!0;var f,m,q=this.Dj;f=0;for(m=q.length;f<m;++f)q[f](this);this.g.kc&&
this.Ra()};Kb=function(f){f&&this.Dj.push(f)};Mb=function(){if(this.Cj){var f=this.Ya,m=this.Ce;f.set(this.x,this.y,this.x+this.width,this.y+this.height);f.offset(-this.zb*this.width,-this.Ab*this.height);this.k?(f.offset(-this.x,-this.y),m.Fo(f,this.k),m.offset(this.x,this.y),m.fm(f)):m.dj(f);f.normalize();this.Cj=!1;this.hu()}};var f=new ua(0,0,0,0);Nb=function(){if(this.g.kc){var p=this.g.fb,m=this.Ya;f.set(p.wb(m.left),p.xb(m.top),p.wb(m.right),p.xb(m.bottom));this.Db.pg(f)||(this.Db.right<this.Db.left?
p.update(this,null,f):p.update(this,this.Db,f),this.Db.kg(f),this.g.Nc=!0)}};Ob=function(){if(this.Ij&&this.ig){this.Ra();var p=this.type.lm,m=this.Ya;f.set(p.wb(m.left),p.xb(m.top),p.wb(m.right),p.xb(m.bottom));this.ee.pg(f)||(this.ee.right<this.ee.left?p.update(this,null,f):p.update(this,this.ee,f),this.ee.kg(f),this.Ij=!1)}};Lb=function(f,m){return this.Ya.mc(f,m)&&this.Ce.mc(f,m)?this.Wo?this.sv(f,m):this.Tc&&!this.Tc.Ss()?(this.Tc.Bq(this.width,this.height,this.k),this.Tc.mc(f-this.x,m-this.y)):
!0:!1};Fb=function(){this.type.oj();return this.Te};Pb=function(){this.g.Dl();return this.Qc};Qb=function(){X(this.T);var f,m,q,r=!0;f=0;for(m=this.Xd.length;f<m;f++)this.Xd[f]&&(q=this.type.D[f],this.T.push(q),q.Lc||(r=!1));this.ip=!!this.T.length;this.Nd=r};Gb=function(){return"Inst"+this.po};sb=function(f){if(f&&f.Cb&&f.type!=this){var m,q,r;m=0;for(q=f.siblings.length;m<q;m++)if(r=f.siblings[m],r.type==this)return r}f=this.U().Zb();return f.length?f[0]:null};tb=function(f){var m=this.U().Zb();
return m.length?m[f.vg()%m.length]:null};rb=function(){if(this.Wf&&!this.J){var f,m;f=0;for(m=this.d.length;f<m;f++)this.d[f].Te=f;var q=f,r=this.b.Uc;f=0;for(m=r.length;f<m;++f)r[f].type===this&&(r[f].Te=q++);this.Wf=!1}};Db=function(f){if(f<this.d.length)return this.d[f];f-=this.d.length;var m=this.b.Uc,q,r;q=0;for(r=m.length;q<r;++q)if(m[q].type===this){if(0===f)return m[q];--f}return null};ub=function(){return this.Pd[this.Vc]};wb=function(){this.Vc++;this.Vc===this.Pd.length?this.Pd.push(new qb(this)):
(this.Pd[this.Vc].Y=!0,X(this.Pd[this.Vc].I))};xb=function(){this.Vc++;this.Vc===this.Pd.length&&this.Pd.push(new qb(this));var f=this.Pd[this.Vc],m=this.Pd[this.Vc-1];m.Y?(f.Y=!0,X(f.I)):(f.Y=!1,za(f.d,m.d),za(f.I,m.I))};yb=function(){this.Vc--};zb=function(f){var m,q,r,t,n,e=0;if(!this.J)for(m=0,q=this.ma.length;m<q;m++)for(n=this.ma[m],r=0,t=n.na.length;r<t;r++){if(f===n.na[r].name)return this.ja.lastBehIndex=e,n.na[r];e++}m=0;for(q=this.na.length;m<q;m++){if(f===this.na[m].name)return this.ja.lastBehIndex=
e,this.na[m];e++}return null};Ab=function(f){return this.di(f)?this.ja.lastBehIndex:-1};Bb=function(f){var m,q;m=0;for(q=this.D.length;m<q;m++)if(this.D[m].name===f)return m;return-1};Cb=function(){if(this.Cb&&!this.J){var f,m,q,r,t,n,e;this.oj();n=this.U();var b=n.Y,c=(f=this.b.Ja())&&f.ya&&f.ya.tc;f=0;for(m=this.Ib.length;f<m;f++)if(t=this.Ib[f],t!==this&&(t.oj(),e=t.U(),e.Y=b,!b)){X(e.d);q=0;for(r=n.d.length;q<r;++q)e.d[q]=t.jk(n.d[q].Te);if(c)for(X(e.I),q=0,r=n.I.length;q<r;++q)e.I[q]=t.jk(n.I[q].Te)}}};
Eb=function(){return"Type"+this.M};dc=function(f,m,q){if("undefined"===typeof f||"undefined"===typeof q)return!1;switch(m){case 0:return f===q;case 1:return f!==q;case 2:return f<q;case 3:return f<=q;case 4:return f>q;case 5:return f>=q;default:return!1}}})();var lc={};function pc(f){this.b=f}
(function(){function f(){return e.length?e.pop():[]}function p(b){var c,a;c=0;for(a=b.length;c<a;c++)Array.isArray(b[c])&&p(b[c]);X(b);e.push(b)}function m(){}function q(){}function r(){}var t=pc.prototype;t.Pb=function(b){this.ka=b;this.b=b.b};t.Pb.prototype.ra=function(){};t.ob=function(b){this.type=b;this.b=b.b};var n=t.ob.prototype,e=[];Array.isArray||(Array.isArray=function(b){return"[object Array]"===Object.prototype.toString.call(b)});n.ra=function(){this.nc=this.ba[0];this.Ec=this.ba[1];this.Wc=
this.ba[2];this.cc||(this.nd=f());var b=this.nd;b.length=this.nc;var c,a,d;for(c=0;c<this.nc;c++)for(b[c]||(b[c]=f()),b[c].length=this.Ec,a=0;a<this.Ec;a++)for(b[c][a]||(b[c][a]=f()),b[c][a].length=this.Wc,d=0;d<this.Wc;d++)b[c][a][d]=0;this.Cm=[];this.Dm=[];this.Em=[];this.vd=-1};n.bh=function(){var b;for(b=0;b<this.nc;b++)p(this.nd[b]);X(this.nd)};n.Aj=function(b,c,a){b=Math.floor(b);c=Math.floor(c);a=Math.floor(a);return isNaN(b)||0>b||b>this.nc-1||isNaN(c)||0>c||c>this.Ec-1||isNaN(a)||0>a||a>
this.Wc-1?0:this.nd[b][c][a]};n.set=function(b,c,a,d){b=Math.floor(b);c=Math.floor(c);a=Math.floor(a);isNaN(b)||0>b||b>this.nc-1||isNaN(c)||0>c||c>this.Ec-1||isNaN(a)||0>a||a>this.Wc-1||(this.nd[b][c][a]=d)};n.$r=function(){return JSON.stringify({c2array:!0,size:[this.nc,this.Ec,this.Wc],data:this.nd})};n.fc=function(){return{size:[this.nc,this.Ec,this.Wc],data:this.nd}};n.Kc=function(b){var c=b.size;this.nc=c[0];this.Ec=c[1];this.Wc=c[2];this.nd=b.data};n.Ld=function(b,c,a){0>b&&(b=0);0>c&&(c=0);
0>a&&(a=0);if(this.nc!==b||this.Ec!==c||this.Wc!==a){this.nc=b;this.Ec=c;this.Wc=a;var d,e,g=this.nd;g.length=b;for(b=0;b<this.nc;b++)for(ga(g[b])&&(g[b]=f()),g[b].length=c,d=0;d<this.Ec;d++)for(ga(g[b][d])&&(g[b][d]=f()),g[b][d].length=a,e=0;e<this.Wc;e++)ga(g[b][d][e])&&(g[b][d][e]=0)}};n.kv=function(){return 0<=this.vd&&this.vd<this.Cm.length?this.Cm[this.vd]:0};n.lv=function(){return 0<=this.vd&&this.vd<this.Dm.length?this.Dm[this.vd]:0};n.mv=function(){return 0<=this.vd&&this.vd<this.Em.length?
this.Em[this.vd]:0};m.prototype.up=function(b,c,a){return dc(this.Aj(b,0,0),c,a)};n.Bj=function(b){this.b.df(b.L);b.ef();this.b.gd(b.L)};t.i=new m;q.prototype.Zp=function(b,c,a){this.Ld(b,c,a)};q.prototype.Rl=function(b,c){this.set(b,0,0,c)};t.P=new q;r.prototype.np=function(b,c,a,d){b.ql(this.Aj(c,a||0,d||0))};r.prototype.mq=function(b){b.ca(this.nc)};r.prototype.zp=function(b){b.ca(this.Ec)};r.prototype.Jl=function(b){b.Fb(this.$r())};t.kb=new r})();function qc(f){this.b=f}
(function(){function f(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function p(a){a=a.toLowerCase();return W.hasOwnProperty(a)&&W[a].length?W[a][0].Yb():x.destination}function m(){return x.createGain?x.createGain():x.createGainNode()}function q(a){return x.createDelay?x.createDelay(a):x.createDelayNode(a)}function r(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function t(a,b,c,d){a.start?a.start(d||0,b):a.noteGrainOn(d||0,b,c-b)}function n(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}
function e(a,b,c,d,e,f){this.type="filter";this.eb=[a,b,c,d,e,f];this.N=m();this.B=m();this.B.gain.value=f;this.A=m();this.A.gain.value=1-f;this.za=x.createBiquadFilter();this.za.type="number"===typeof this.za.type?a:tc[a];this.za.frequency.value=b;this.za.detune&&(this.za.detune.value=c);this.za.Q.value=d;this.za.gain.value=e;this.N.connect(this.za);this.N.connect(this.A);this.za.connect(this.B)}function b(a,b,c){this.type="delay";this.eb=[a,b,c];this.N=m();this.B=m();this.B.gain.value=c;this.A=
m();this.A.gain.value=1-c;this.Yg=m();this.pc=q(a);this.pc.delayTime.value=a;this.Rh=m();this.Rh.gain.value=b;this.N.connect(this.Yg);this.N.connect(this.A);this.Yg.connect(this.B);this.Yg.connect(this.pc);this.pc.connect(this.Rh);this.Rh.connect(this.Yg)}function c(a,b,c,d){this.type="convolve";this.eb=[b,c,d];this.N=m();this.B=m();this.B.gain.value=c;this.A=m();this.A.gain.value=1-c;this.Fe=x.createConvolver();a&&(this.Fe.normalize=b,this.Fe.buffer=a);this.N.connect(this.Fe);this.N.connect(this.A);
this.Fe.connect(this.B)}function a(a,b,c,d,e){this.type="flanger";this.eb=[a,b,c,d,e];this.N=m();this.A=m();this.A.gain.value=1-e/2;this.B=m();this.B.gain.value=e/2;this.Xh=m();this.Xh.gain.value=d;this.pc=q(a+b);this.pc.delayTime.value=a;this.Wa=x.createOscillator();this.Wa.frequency.value=c;this.Nb=m();this.Nb.gain.value=b;this.N.connect(this.pc);this.N.connect(this.A);this.pc.connect(this.B);this.pc.connect(this.Xh);this.Xh.connect(this.pc);this.Wa.connect(this.Nb);this.Nb.connect(this.pc.delayTime);
r(this.Wa)}function d(a,b,c,d,e,f){this.type="phaser";this.eb=[a,b,c,d,e,f];this.N=m();this.A=m();this.A.gain.value=1-f/2;this.B=m();this.B.gain.value=f/2;this.za=x.createBiquadFilter();this.za.type="number"===typeof this.za.type?7:"allpass";this.za.frequency.value=a;this.za.detune&&(this.za.detune.value=b);this.za.Q.value=c;this.Wa=x.createOscillator();this.Wa.frequency.value=e;this.Nb=m();this.Nb.gain.value=d;this.N.connect(this.za);this.N.connect(this.A);this.za.connect(this.B);this.Wa.connect(this.Nb);
this.Nb.connect(this.za.frequency);r(this.Wa)}function h(a){this.type="gain";this.eb=[a];this.S=m();this.S.gain.value=a}function g(a,b){this.type="tremolo";this.eb=[a,b];this.S=m();this.S.gain.value=1-b/2;this.Wa=x.createOscillator();this.Wa.frequency.value=a;this.Nb=m();this.Nb.gain.value=b/2;this.Wa.connect(this.Nb);this.Nb.connect(this.S.gain);r(this.Wa)}function l(a,b){this.type="ringmod";this.eb=[a,b];this.N=m();this.B=m();this.B.gain.value=b;this.A=m();this.A.gain.value=1-b;this.kh=m();this.kh.gain.value=
0;this.Wa=x.createOscillator();this.Wa.frequency.value=a;this.Wa.connect(this.kh.gain);r(this.Wa);this.N.connect(this.kh);this.N.connect(this.A);this.kh.connect(this.B)}function u(a,b,c,d,e){this.type="distortion";this.eb=[a,b,c,d,e];this.N=m();this.Si=m();this.Ri=m();this.St(c,Math.pow(10,d/20));this.B=m();this.B.gain.value=e;this.A=m();this.A.gain.value=1-e;this.tj=x.createWaveShaper();this.Ph=new Float32Array(65536);this.Yr(a,b);this.tj.Ph=this.Ph;this.N.connect(this.Si);this.N.connect(this.A);
this.Si.connect(this.tj);this.tj.connect(this.Ri);this.Ri.connect(this.B)}function K(a,b,c,d,e){this.type="compressor";this.eb=[a,b,c,d,e];this.S=x.createDynamicsCompressor();try{this.S.threshold.value=a,this.S.knee.value=b,this.S.ratio.value=c,this.S.attack.value=d,this.S.release.value=e}catch(f){}}function k(a,b){this.type="analyser";this.eb=[a,b];this.S=x.createAnalyser();this.S.fftSize=a;this.S.smoothingTimeConstant=b;this.Wr=new Float32Array(this.S.frequencyBinCount);this.Io=new Uint8Array(a);
this.eh=0}function v(){this.V=null;this.Ci=0}function ca(a,b){this.src=a;this.K=O;this.rc=b;this.Hh=!1;var c=this;this.If=this.Nf=null;this.Of=[];this.$i=0;this.Gl=this.Vh=this.Mo=this.Ni=!1;1===O&&b&&!Oa&&(this.K=0,this.Nf=m());this.od=this.R=null;var d;switch(this.K){case 0:this.R=new Audio;this.R.crossOrigin="anonymous";this.R.addEventListener("canplaythrough",function(){c.Gl=!0});1===O&&x.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Mo=!0,this.R.addEventListener("canplay",
function(){!c.If&&c.R&&(c.If=x.createMediaElementSource(c.R),c.If.connect(c.Nf))}));this.R.autoplay=!1;this.R.pv="auto";this.R.src=a;break;case 1:z.qi?z.zm(a,function(a){c.od=a;c.qm()},function(){c.Vh=!0}):(d=new XMLHttpRequest,d.open("GET",a,!0),d.responseType="arraybuffer",d.onload=function(){c.od=d.response;c.qm()},d.onerror=function(){c.Vh=!0},d.send());break;case 2:this.R=!0;break;case 3:this.R=!0}}function D(a,b){var c=this;this.tag=b;this.la=this.Yc=!0;this.src=a.src;this.buffer=a;this.K=O;
this.rc=a.rc;this.playbackRate=1;this.wf=!0;this.Kb=this.ec=!1;this.Eb=0;this.Ig=this.Af=this.cd=!1;this.volume=1;this.Yk=function(a){if(!c.Kb&&!c.ec){var b=this;b||(b=a.target);b===c.Gh&&(c.wf=!0,c.la=!0,T=c.tag,z.trigger(qc.prototype.i.Dh,L))}};this.Gh=null;this.yf=1===G&&!this.rc||2===G;this.Jf=1;this.startTime=this.yf?z.ab.O:z.Sd.O;this.Ba=this.Ha=null;this.ed=!1;this.bb=null;this.ao=this.$n=this.Zn=this.Yn=this.co=this.bo=0;this.e=null;var d=!1;1!==this.K||0!==this.buffer.K||this.buffer.Mo||
(this.K=0);switch(this.K){case 0:this.rc?(this.e=a.R,d=!a.Hh,a.Hh=!0):(this.e=new Audio,this.e.crossOrigin="anonymous",this.e.autoplay=!1,this.e.src=a.R.src,d=!0);d&&this.e.addEventListener("ended",function(){T=c.tag;c.la=!0;z.trigger(qc.prototype.i.Dh,L)});break;case 1:this.Ha=m();this.Ha.connect(p(b));1===this.buffer.K?a.R&&(this.e=x.createBufferSource(),this.e.buffer=a.R,this.e.connect(this.Ha)):(this.e=this.buffer.R,this.buffer.Nf.connect(this.Ha),this.buffer.Hh||(this.buffer.Hh=!0,this.buffer.R.addEventListener("ended",
function(){T=c.tag;c.la=!0;z.trigger(qc.prototype.i.Dh,L)})));break;case 2:this.e=new window.Media(U+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.wf=!0,c.la=!0,T=c.tag,z.trigger(qc.prototype.i.Dh,L))});break;case 3:this.e=!0}}function H(a,b){W.hasOwnProperty(a)?W[a].push(b):W[a]=[b];var c,d,e,f,h=x.destination;if(W.hasOwnProperty(a)&&(e=W[a],e.length))for(h=e[0].Yb(),c=0,d=e.length;c<d;c++)f=e[c],c+1===d?f.lc(x.destination):f.lc(e[c+1].Yb());X(Ka);if(a.length)for(c=0,d=M.length;c<
d;c++)e=M[c],mb(a,e.tag)&&Ka.push(e);else pa&&!pa.Se()&&(X(Ka),Ka[0]=pa);c=0;for(d=Ka.length;c<d;c++)Ka[c].Et(h);Ca&&vb===a&&(Ca.disconnect(),Ca.connect(h))}function V(){}function R(){}var C=qc.prototype;C.Pb=function(a){this.ka=a;this.b=a.b};C.Pb.prototype.ra=function(){};var z=null,L=null,T="",U="",O=0,x=null,w=[],M=[],pa=null,J=!1,G=0,I=!1,N=1,y=0,E=0,Q=!1,qa=1,P=1,sa=10,ha=1E4,Ba=1,Ca=null,vb="",Pa=!1,Qa=[],Oa=!1,W={},tc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");
e.prototype.lc=function(a){this.B.disconnect();this.B.connect(a);this.A.disconnect();this.A.connect(a)};e.prototype.remove=function(){this.N.disconnect();this.za.disconnect();this.B.disconnect();this.A.disconnect()};e.prototype.Yb=function(){return this.N};b.prototype.lc=function(a){this.B.disconnect();this.B.connect(a);this.A.disconnect();this.A.connect(a)};b.prototype.remove=function(){this.N.disconnect();this.Yg.disconnect();this.pc.disconnect();this.Rh.disconnect();this.B.disconnect();this.A.disconnect()};
b.prototype.Yb=function(){return this.N};c.prototype.lc=function(a){this.B.disconnect();this.B.connect(a);this.A.disconnect();this.A.connect(a)};c.prototype.remove=function(){this.N.disconnect();this.Fe.disconnect();this.B.disconnect();this.A.disconnect()};c.prototype.Yb=function(){return this.N};a.prototype.lc=function(a){this.A.disconnect();this.A.connect(a);this.B.disconnect();this.B.connect(a)};a.prototype.remove=function(){this.N.disconnect();this.pc.disconnect();this.Wa.disconnect();this.Nb.disconnect();
this.A.disconnect();this.B.disconnect();this.Xh.disconnect()};a.prototype.Yb=function(){return this.N};d.prototype.lc=function(a){this.A.disconnect();this.A.connect(a);this.B.disconnect();this.B.connect(a)};d.prototype.remove=function(){this.N.disconnect();this.za.disconnect();this.Wa.disconnect();this.Nb.disconnect();this.A.disconnect();this.B.disconnect()};d.prototype.Yb=function(){return this.N};h.prototype.lc=function(a){this.S.disconnect();this.S.connect(a)};h.prototype.remove=function(){this.S.disconnect()};
h.prototype.Yb=function(){return this.S};g.prototype.lc=function(a){this.S.disconnect();this.S.connect(a)};g.prototype.remove=function(){this.Wa.disconnect();this.Nb.disconnect();this.S.disconnect()};g.prototype.Yb=function(){return this.S};l.prototype.lc=function(a){this.B.disconnect();this.B.connect(a);this.A.disconnect();this.A.connect(a)};l.prototype.remove=function(){this.Wa.disconnect();this.kh.disconnect();this.N.disconnect();this.B.disconnect();this.A.disconnect()};l.prototype.Yb=function(){return this.N};
u.prototype.St=function(a,b){.01>a&&(a=.01);this.Si.gain.value=a;this.Ri.gain.value=Math.pow(1/a,.6)*b};u.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};u.prototype.Yr=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),e=0,f=0;32768>f;++f)e=f/32768,e=this.shape(e,c,d),this.Ph[32768+f]=e,this.Ph[32768-f-1]=-e};u.prototype.lc=function(a){this.B.disconnect();this.B.connect(a);this.A.disconnect();this.A.connect(a)};
u.prototype.remove=function(){this.N.disconnect();this.Si.disconnect();this.tj.disconnect();this.Ri.disconnect();this.B.disconnect();this.A.disconnect()};u.prototype.Yb=function(){return this.N};K.prototype.lc=function(a){this.S.disconnect();this.S.connect(a)};K.prototype.remove=function(){this.S.disconnect()};K.prototype.Yb=function(){return this.S};k.prototype.sb=function(){this.S.getFloatFrequencyData(this.Wr);this.S.getByteTimeDomainData(this.Io);for(var a=this.S.fftSize,b=0,c=this.eh=0,d=0;b<
a;b++)d=(this.Io[b]-128)/128,0>d&&(d=-d),this.eh<d&&(this.eh=d),c+=d*d;this.eh=f(this.eh);f(Math.sqrt(c/a))};k.prototype.lc=function(a){this.S.disconnect();this.S.connect(a)};k.prototype.remove=function(){this.S.disconnect()};k.prototype.Yb=function(){return this.S};v.prototype.nh=function(a){this.V=a};v.prototype.ii=function(){return!!this.V};v.prototype.sb=function(){};var db=!1;ca.prototype.Ft=function(){var a,b,c,d;c=a=0;for(b=M.length;a<b;++a)d=M[a],M[c]=d,d.buffer===this?d.stop():++c;M.length=
c;this.If&&(this.If.disconnect(),this.If=null);this.Nf&&(this.Nf.disconnect(),this.Nf=null);this.od=this.R=null};ca.prototype.qm=function(){if(!this.R&&this.od){var a=this;if(x.decodeAudioData)x.decodeAudioData(this.od,function(b){a.R=b;a.od=null;var c,d,e;if(ga(a.Oi)||I)ga(a.Lh)||(c=a.Lh.Fe,c.normalize=a.Pn,c.buffer=b);else if(a.Of.length){c=0;for(d=a.Of.length;c<d;c++){b=a.Of[c];e=new D(a,b.To);e.pl(!0);if("undefined"!==typeof b.Rn&&(b.V=z.fi(b.Rn),!b.V))continue;if(b.V){var f=Va(b.V.x,b.V.y,-b.V.g.Ia(),
y,E,!0),h=Va(b.V.x,b.V.y,-b.V.g.Ia(),y,E,!1);e.ol(f,h,Ga(b.V.k-b.V.g.Ia()),b.tk,b.Uk,b.Wk);e.nh(b.V)}else e.ol(b.x,b.y,b.rq,b.tk,b.Uk,b.Wk);e.play(a.Qk,a.Fl,a.$i);a.Ni&&e.pause();M.push(e)}X(a.Of)}else e=new D(a,a.Oi||""),e.play(a.Qk,a.Fl,a.$i),a.Ni&&e.pause(),M.push(e)},function(){a.Vh=!0});else if(this.R=x.createBuffer(this.od,!1),this.od=null,ga(this.Oi)||I)ga(this.Lh)||(b=this.Lh.Fe,b.normalize=this.Pn,b.buffer=this.R);else{var b=new D(this,this.Oi);b.play(this.Qk,this.Fl,this.$i);this.Ni&&b.pause();
M.push(b)}}};ca.prototype.Zm=function(){switch(this.K){case 0:var a=4<=this.R.readyState;a&&(this.Gl=!0);return a||this.Gl;case 1:return!!this.od||!!this.R;case 2:return!0;case 3:return!0}return!1};ca.prototype.Ns=function(){switch(this.K){case 0:return this.Zm();case 1:return!!this.R;case 2:return!0;case 3:return!0}return!1};ca.prototype.Fs=function(){switch(this.K){case 0:return!!this.R.error;case 1:return this.Vh}return!1};D.prototype.Se=function(){switch(this.K){case 0:return this.e.ended;case 1:return 1===
this.buffer.K?!this.Yc&&!this.la&&this.e.loop||this.Kb?!1:this.wf:this.e.ended;case 2:return this.wf;case 3:!0}return!0};D.prototype.Cq=function(){return this.Yc||this.la?!0:this.Se()};D.prototype.pl=function(a){1===O&&(!this.ed&&a?this.Ha&&(this.Ba||(this.Ba=x.createPanner(),this.Ba.panningModel="number"===typeof this.Ba.panningModel?qa:["equalpower","HRTF","soundfield"][qa],this.Ba.distanceModel="number"===typeof this.Ba.distanceModel?P:["linear","inverse","exponential"][P],this.Ba.refDistance=
sa,this.Ba.maxDistance=ha,this.Ba.rolloffFactor=Ba),this.Ha.disconnect(),this.Ha.connect(this.Ba),this.Ba.connect(p(this.tag)),this.ed=!0):this.ed&&!a&&this.Ha&&(this.Ba.disconnect(),this.Ha.disconnect(),this.Ha.connect(p(this.tag)),this.ed=!1))};D.prototype.ol=function(a,b,c,d,e,f){this.ed&&1===O&&(this.Ba.setPosition(a,b,0),this.Ba.setOrientation(Math.cos(Y(c)),Math.sin(Y(c)),0),this.Ba.coneInnerAngle=d,this.Ba.coneOuterAngle=e,this.Ba.coneOuterGain=f,this.bo=a,this.co=b,this.Yn=c,this.Zn=d,this.$n=
e,this.ao=f)};D.prototype.nh=function(a){this.ed&&1===O&&(this.bb||(this.bb=new v),this.bb.nh(a))};D.prototype.sb=function(a){if(this.ed&&1===O&&this.bb&&this.bb.ii()&&this.Fg()){this.bb.sb(a);a=this.bb.V;var b=Va(a.x,a.y,-a.g.Ia(),y,E,!0),c=Va(a.x,a.y,-a.g.Ia(),y,E,!1);this.Ba.setPosition(b,c,0);b=0;"undefined"!==typeof this.bb.V.k&&(b=a.k-a.g.Ia(),this.Ba.setOrientation(Math.cos(b),Math.sin(b),0))}};D.prototype.play=function(a,b,c,d){var e=this.e;this.cd=a;this.volume=b;c=c||0;d=d||0;switch(this.K){case 0:1!==
e.playbackRate&&(e.playbackRate=1);e.volume!==b*N&&(e.volume=b*N);e.loop!==a&&(e.loop=a);e.muted&&(e.muted=!1);if(e.currentTime!==c)try{e.currentTime=c}catch(f){}if(this.rc&&Pa&&!z.bd)Qa.push(this);else try{this.e.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.Jf=1;if(1===this.buffer.K)this.Ha.gain.value=b*N,this.Yc||(this.e=x.createBufferSource(),this.e.buffer=this.buffer.R,this.e.connect(this.Ha)),
this.e.onended=this.Yk,this.Gh=this.e,this.e.loop=a,this.wf=!1,0===c?r(this.e,d):t(this.e,c,this.Oe(),d);else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==a&&(e.loop=a);e.volume=b*N;if(e.currentTime!==c)try{e.currentTime=c}catch(g){}this.rc&&Pa&&!z.bd?Qa.push(this):e.play()}break;case 2:(!this.Yc&&this.la||0!==c)&&e.seekTo(c);e.play();this.wf=!1;break;case 3:z.Bb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.yf?z.ab.O:z.Sd.O)-
c;this.Kb=this.la=this.Yc=!1};D.prototype.stop=function(){switch(this.K){case 0:this.e.paused||this.e.pause();break;case 1:1===this.buffer.K?n(this.e):this.e.paused||this.e.pause();break;case 2:this.e.stop();break;case 3:z.Bb&&AppMobi.context.stopSound(this.src)}this.la=!0;this.Kb=!1};D.prototype.pause=function(){if(!(this.Yc||this.la||this.Se()||this.Kb)){switch(this.K){case 0:this.e.paused||this.e.pause();break;case 1:1===this.buffer.K?(this.Eb=this.lk(!0),this.cd&&(this.Eb=this.Eb%this.Oe()),this.Kb=
!0,n(this.e)):this.e.paused||this.e.pause();break;case 2:this.e.pause();break;case 3:z.Bb&&AppMobi.context.stopSound(this.src)}this.Kb=!0}};D.prototype.Jt=function(){if(!(this.Yc||this.la||this.Se())&&this.Kb){switch(this.K){case 0:this.e.play();break;case 1:1===this.buffer.K?(this.e=x.createBufferSource(),this.e.buffer=this.buffer.R,this.e.connect(this.Ha),this.e.onended=this.Yk,this.Gh=this.e,this.e.loop=this.cd,this.Ha.gain.value=N*this.volume*this.Jf,this.pj(),this.startTime=(this.yf?z.ab.O:z.Sd.O)-
this.Eb/(this.playbackRate||.001),t(this.e,this.Eb,this.Oe())):this.e.play();break;case 2:this.e.play();break;case 3:z.Bb&&AppMobi.context.resumeSound(this.src)}this.Kb=!1}};D.prototype.seek=function(a){if(!(this.Yc||this.la||this.Se()))switch(this.K){case 0:try{this.e.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.K)this.Kb?this.Eb=a:(this.pause(),this.Eb=a,this.Jt());else try{this.e.currentTime=a}catch(c){}break;case 3:z.Bb&&AppMobi.context.seekSound(this.src,a)}};D.prototype.Et=function(a){1===
this.K&&(this.ed?(this.Ba.disconnect(),this.Ba.connect(a)):(this.Ha.disconnect(),this.Ha.connect(a)))};D.prototype.Oe=function(){var a=0;switch(this.K){case 0:"undefined"!==typeof this.e.duration&&(a=this.e.duration);break;case 1:a=this.buffer.R.duration;break;case 2:a=this.e.getDuration();break;case 3:z.Bb&&(a=AppMobi.context.getDurationSound(this.src))}return a};D.prototype.lk=function(a){var b=this.Oe(),c=0;switch(this.K){case 0:"undefined"!==typeof this.e.currentTime&&(c=this.e.currentTime);break;
case 1:if(1===this.buffer.K){if(this.Kb)return this.Eb;c=(this.yf?z.ab.O:z.Sd.O)-this.startTime}else"undefined"!==typeof this.e.currentTime&&(c=this.e.currentTime);break;case 3:z.Bb&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.cd&&c>b&&(c=b);return c};D.prototype.Fg=function(){return!this.Kb&&!this.Yc&&!this.la&&!this.Se()};D.prototype.Xt=function(){return!this.Yc&&!this.la&&!this.Se()};D.prototype.fu=function(){var a=this.volume*N;isFinite(a)||(a=0);switch(this.K){case 0:"undefined"!==
typeof this.e.volume&&this.e.volume!==a&&(this.e.volume=a);break;case 1:1===this.buffer.K?this.Ha.gain.value=a*this.Jf:"undefined"!==typeof this.e.volume&&this.e.volume!==a&&(this.e.volume=a)}};D.prototype.Th=function(a){switch(this.K){case 0:this.e.muted!==!!a&&(this.e.muted=!!a);break;case 1:1===this.buffer.K?(this.Jf=a?0:1,this.Ha.gain.value=N*this.volume*this.Jf):this.e.muted!==!!a&&(this.e.muted=!!a)}};D.prototype.Tt=function(){this.Af=!0;this.Th(this.Af||this.Ig)};D.prototype.Do=function(a){this.Ig=
!!a;this.Th(this.Af||this.Ig)};D.prototype.pj=function(){var a=this.playbackRate;this.yf&&(a*=z.Yf);switch(this.K){case 0:this.e.playbackRate!==a&&(this.e.playbackRate=a);break;case 1:1===this.buffer.K?this.e.playbackRate.value!==a&&(this.e.playbackRate.value=a):this.e.playbackRate!==a&&(this.e.playbackRate=a)}};D.prototype.Vt=function(a){switch(this.K){case 0:a?this.Fg()?(this.ec=!0,this.e.pause()):this.ec=!1:this.ec&&(this.e.play(),this.ec=!1);break;case 1:a?this.Fg()?(this.ec=!0,1===this.buffer.K?
(this.Eb=this.lk(!0),this.cd&&(this.Eb=this.Eb%this.Oe()),n(this.e)):this.e.pause()):this.ec=!1:this.ec&&(1===this.buffer.K?(this.e=x.createBufferSource(),this.e.buffer=this.buffer.R,this.e.connect(this.Ha),this.e.onended=this.Yk,this.Gh=this.e,this.e.loop=this.cd,this.Ha.gain.value=N*this.volume*this.Jf,this.pj(),this.startTime=(this.yf?z.ab.O:z.Sd.O)-this.Eb/(this.playbackRate||.001),t(this.e,this.Eb,this.Oe())):this.e.play(),this.ec=!1);break;case 2:a?this.Fg()?(this.e.pause(),this.ec=!0):this.ec=
!1:this.ec&&(this.ec=!1,this.e.play())}};C.ob=function(a){function b(){"suspended"===x.state&&x.resume&&x.resume();if(!Q&&x.createBuffer){var a=x.createBuffer(1,220,22050),c=x.createBufferSource();c.buffer=a;c.connect(x.destination);r(c)}}this.type=a;z=this.b=a.b;L=this;this.Lb=null;this.Pg=-600;this.b.qi&&(Oa=!0);!(this.b.Kg||this.b.li&&(this.b.yk||this.b.mi))||this.b.oi||this.b.Sa||this.b.Xm||Oa||(Pa=!0);x=null;"undefined"!==typeof AudioContext?(O=1,x=new AudioContext):"undefined"!==typeof webkitAudioContext&&
(O=1,x=new webkitAudioContext);this.b.Kg&&x&&(x.close&&x.close(),"undefined"!==typeof AudioContext?x=new AudioContext:"undefined"!==typeof webkitAudioContext&&(x=new webkitAudioContext));Pa?document.addEventListener("touchend",function(){!db&&x&&(b(),db=!0);var a,c,d;if(Pa){if(!I)for(a=0,c=Qa.length;a<c;++a)d=Qa[a],d.la||d.Kb||d.e.play();X(Qa)}},!0):Oa&&document.addEventListener("touchend",function(){!db&&x&&(b(),db=!0)},!0);1!==O&&(this.b.xd&&"undefined"!==typeof window.Media?O=2:this.b.Ym&&(O=3));
2===O&&(U=location.href,a=U.lastIndexOf("/"),-1<a&&(U=U.substr(0,a+1)),U=U.replace("file://",""));if(this.b.Os&&this.b.Qs&&"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.ye(this);else{if(this.b.Bb)J=this.b.li;else try{J=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(c){J=!1}this.b.kj(this)}};var la=C.ob.prototype;la.ra=function(){this.b.nf=this;G=this.ba[0];this.Kd=this.ba[1];
this.qt=0!==this.ba[2];this.Nn=0;qa=this.ba[3];P=this.ba[4];this.Pg=-this.ba[5];sa=this.ba[6];ha=this.ba[7];Ba=this.ba[8];this.Lb=new v;var a=this.b.r||this.b.width,b=this.b.q||this.b.height;1===O&&(x.listener.setPosition(a/2,b/2,this.Pg),x.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Ca&&Ca.disconnect();vb=b.toLowerCase();Ca=x.createMediaStreamSource(a);Ca.connect(p(vb))});this.b.uq(function(a){L.kt(a)});var c=this;this.b.sq(function(a){c.ft(a)})};la.ft=function(a){var b,
c,d;b=0;for(c=M.length;b<c;b++)d=M[b],d.bb&&d.bb.V===a&&(d.bb.V=null,d.ed&&d.Fg()&&d.cd&&d.stop());this.Lb.V===a&&(this.Lb.V=null)};la.fc=function(){var a={silent:I,masterVolume:N,listenerZ:this.Pg,listenerUid:this.Lb.ii()?this.Lb.V.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,f,h,g;c=0;for(d=M.length;c<d;c++)e=M[c],!e.Xt()||3===this.Kd||e.rc&&1===this.Kd||!e.rc&&2===this.Kd||(f=e.lk(),e.cd&&(f=f%e.Oe()),f={tag:e.tag,buffersrc:e.buffer.src,is_music:e.rc,playbackTime:f,volume:e.volume,looping:e.cd,
muted:e.Af,playbackRate:e.playbackRate,paused:e.Kb,resume_position:e.Eb},e.ed&&(f.pan={},g=f.pan,e.bb&&e.bb.ii()?g.objUid=e.bb.V.uid:(g.x=e.bo,g.y=e.co,g.a=e.Yn),g.ia=e.Zn,g.oa=e.$n,g.og=e.ao),b.push(f));b=a.effects;for(h in W)if(W.hasOwnProperty(h)){e=[];c=0;for(d=W[h].length;c<d;c++)e.push({type:W[h][c].type,params:W[h][c].eb});b[h]=e}return a};var Ra=[];la.Kc=function(f){var m=f.silent;N=f.masterVolume;this.Pg=f.listenerZ;this.Lb.nh(null);var p=f.listenerUid;-1!==p&&(this.Lb.Ci=p,Ra.push(this.Lb));
var p=f.playing,n,q,r,t,w,x,z,C,y,B,D;if(3!==this.Kd)for(n=0,q=M.length;n<q;n++)y=M[n],y.rc&&1===this.Kd||(y.rc||2!==this.Kd)&&y.stop();for(w in W)if(W.hasOwnProperty(w))for(n=0,q=W[w].length;n<q;n++)W[w][n].remove();Za(W);for(w in f.effects)if(f.effects.hasOwnProperty(w))for(x=f.effects[w],n=0,q=x.length;n<q;n++)switch(r=x[n].type,B=x[n].params,r){case "filter":H(w,new e(B[0],B[1],B[2],B[3],B[4],B[5]));break;case "delay":H(w,new b(B[0],B[1],B[2]));break;case "convolve":r=B[2];y=this.ci(r,!1);y.R?
r=new c(y.R,B[0],B[1],r):(r=new c(null,B[0],B[1],r),y.Pn=B[0],y.Lh=r);H(w,r);break;case "flanger":H(w,new a(B[0],B[1],B[2],B[3],B[4]));break;case "phaser":H(w,new d(B[0],B[1],B[2],B[3],B[4],B[5]));break;case "gain":H(w,new h(B[0]));break;case "tremolo":H(w,new g(B[0],B[1]));break;case "ringmod":H(w,new l(B[0],B[1]));break;case "distortion":H(w,new u(B[0],B[1],B[2],B[3],B[4]));break;case "compressor":H(w,new K(B[0],B[1],B[2],B[3],B[4]));break;case "analyser":H(w,new k(B[0],B[1]))}n=0;for(q=p.length;n<
q;n++)3===this.Kd||(f=p[n],r=f.buffersrc,t=f.is_music,w=f.tag,x=f.playbackTime,z=f.looping,C=f.volume,D=(B=f.pan)&&B.hasOwnProperty("objUid")?B.objUid:-1,t&&1===this.Kd)||!t&&2===this.Kd||((y=this.Im(r,w,t,z,C))?(y.Eb=f.resume_position,y.pl(!!B),y.play(z,C,x),y.pj(),y.fu(),y.Th(y.Af||y.Ig),f.paused&&y.pause(),f.muted&&y.Tt(),y.Th(y.Af||y.Ig),B&&(-1!==D?(y.bb=y.bb||new v,y.bb.Ci=D,Ra.push(y.bb)):y.ol(B.x,B.y,B.a,B.ia,B.oa,B.og))):(y=this.ci(r,t),y.$i=x,y.Ni=f.paused,B&&(-1!==D?y.Of.push({Rn:D,tk:B.ia,
Uk:B.oa,Wk:B.og,To:w}):y.Of.push({x:B.x,y:B.y,rq:B.a,tk:B.ia,Uk:B.oa,Wk:B.og,To:w}))));if(m&&!I){n=0;for(q=M.length;n<q;n++)M[n].Do(!0);I=!0}else if(!m&&I){n=0;for(q=M.length;n<q;n++)M[n].Do(!1);I=!1}};la.Zd=function(){var a,b,c,d;a=0;for(b=Ra.length;a<b;a++)c=Ra[a],d=this.b.fi(c.Ci),c.nh(d),c.Ci=-1,d&&(y=d.x,E=d.y);X(Ra)};la.kt=function(a){if(!this.qt){!a&&x&&x.resume&&(x.resume(),Q=!1);var b,c;b=0;for(c=M.length;b<c;b++)M[b].Vt(a);a&&x&&x.suspend&&(x.suspend(),Q=!0)}};la.sb=function(){var a=this.b.He,
b,c,d;b=0;for(c=M.length;b<c;b++)d=M[b],d.sb(a),0!==G&&d.pj();var e,f;for(e in W)if(W.hasOwnProperty(e))for(d=W[e],b=0,c=d.length;b<c;b++)f=d[b],f.sb&&f.sb();1===O&&this.Lb.ii()&&(this.Lb.sb(a),y=this.Lb.V.x,E=this.Lb.V.y,x.listener.setPosition(this.Lb.V.x,this.Lb.V.y,this.Pg))};var Sa=[];la.Ut=function(a){var b,c,d,e,f,h=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],e=d[0],d=2*d[1],(f=4<e.length&&".ogg"===e.substr(e.length-4))&&J||!f&&!J)Sa.push({filename:e,size:d,V:null}),h+=d;return h};la.Zt=function(){var a,
b,c,d;a=0;for(b=Sa.length;a<b;++a)c=Sa[a],d=this.b.ak+c.filename,c.V=this.ci(d,!1)};la.ks=function(){var a=0,b,c,d;b=0;for(c=Sa.length;b<c;++b)d=Sa[b],d.V.Ns()||d.V.Fs()||this.b.Sa||this.b.mi?a+=d.size:d.V.Zm()&&(a+=Math.floor(d.size/2));return a};la.Gt=function(){var a,b,c,d;c=a=0;for(b=w.length;a<b;++a)d=w[a],w[c]=d,d.rc?d.Ft():++c;w.length=c};la.ci=function(a,b){var c,d,e,f=null;c=0;for(d=w.length;c<d;c++)if(e=w[c],e.src===a){f=e;break}f||(Oa&&b&&this.Gt(),f=new ca(a,b),w.push(f));return f};la.Im=
function(a,b,c,d,e){var f,h,g;f=0;for(h=M.length;f<h;f++)if(g=M[f],g.src===a&&(g.Cq()||c))return g.tag=b,g;a=this.ci(a,c);if(!a.R)return"<preload>"!==b&&(a.Oi=b,a.Qk=d,a.Fl=e),null;g=new D(a,b);M.push(g);return g};var Ka=[];V.prototype.Dh=function(a){return mb(T,a)};C.i=new V;R.prototype.Play=function(a,b,c,d){!I&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1<c&&(c=1),pa=this.Im(this.b.ak+a[0]+(J?".ogg":".m4a"),d,a[1],0!==b,c))&&(pa.pl(!1),pa.play(0!==b,c,0,this.Nn),this.Nn=0)};C.P=new R;C.kb=
new function(){}})();function oc(f){this.b=f}
(function(){function f(){this.name="";this.jh=0;this.eb=[]}function p(){e++;e===n.length&&n.push(new f);return n[e]}function m(){}function q(){}function r(){}var t=oc.prototype;t.Pb=function(b){this.ka=b;this.b=b.b};t.Pb.prototype.ra=function(){};t.ob=function(b){this.type=b;this.b=b.b};var n=[],e=-1;t.ob.prototype.ra=function(){var b=this;window.c2_callFunction=function(c,a){var d,f,g,l=p();l.name=c.toLowerCase();l.jh=0;if(a)for(l.eb.length=a.length,d=0,f=a.length;d<f;++d)g=a[d],l.eb[d]="number"===
typeof g||"string"===typeof g?g:"boolean"===typeof g?g?1:0:0;else X(l.eb);b.b.trigger(oc.prototype.i.Eh,b,l.name);e--;return l.jh}};m.prototype.Eh=function(b){var c=0>e?null:n[e];return c?mb(b,c.name):!1};t.i=new m;q.prototype.CallFunction=function(b,c){var a=p();a.name=b.toLowerCase();a.jh=0;za(a.eb,c);this.b.trigger(oc.prototype.i.Eh,this,a.name);e--};t.P=new q;r.prototype.op=function(b,c){var a=p();a.name=c.toLowerCase();a.jh=0;X(a.eb);var d,f;d=2;for(f=arguments.length;d<f;d++)a.eb.push(arguments[d]);
this.b.trigger(oc.prototype.i.Eh,this,a.name);e--;b.ql(a.jh)};t.kb=new r})();function rc(f){this.b=f}
(function(){function f(){}function p(){}function m(){}var q=rc.prototype;q.Pb=function(e){this.ka=e;this.b=e.b};q.Pb.prototype.ra=function(){};q.ob=function(e){this.type=e;this.b=e.b;this.of=Array(4);this.Yo=this.mj=this.hf=this.Ed=this.Dd=0;this.qk=!1};var r=q.ob.prototype;r.ra=function(){var e=this;if(!this.b.Sa){jQuery(document).mousemove(function(b){e.ht(b)});jQuery(document).mousedown(function(b){e.gt(b)});jQuery(document).mouseup(function(b){e.it(b)});jQuery(document).dblclick(function(b){e.et(b)});
var b=function(b){e.lt(b)};document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var t={left:0,top:0};r.ht=function(e){var b=this.b.Sa?t:jQuery(this.b.canvas).offset();this.Dd=e.pageX-b.left;this.Ed=e.pageY-b.top};r.Jn=function(){return 0<this.b.yb?!0:0<=this.Dd&&0<=this.Ed&&this.Dd<this.b.width&&this.Ed<this.b.height};r.gt=function(e){this.Jn()&&(this.of[e.which]=!0,this.b.bd=!0,this.b.trigger(rc.prototype.i.Kp,this),this.hf=e.which-1,this.mj=0,this.b.trigger(rc.prototype.i.Ll,
this),this.b.trigger(rc.prototype.i.vj,this),this.b.bd=!1)};r.it=function(e){this.of[e.which]&&(this.b.Pm&&!this.b.Ad&&e.preventDefault(),this.b.Pm=!0,this.of[e.which]=!1,this.b.bd=!0,this.hf=e.which-1,this.b.trigger(rc.prototype.i.Ol,this),this.b.bd=!1)};r.et=function(e){this.Jn()&&(e.preventDefault(),this.b.bd=!0,this.hf=e.which-1,this.mj=1,this.b.trigger(rc.prototype.i.Ll,this),this.b.trigger(rc.prototype.i.vj,this),this.b.bd=!1)};r.lt=function(e){this.Yo=0>(e.wheelDelta?e.wheelDelta:e.detail?
-e.detail:0)?0:1;this.qk=!1;this.b.bd=!0;this.b.trigger(rc.prototype.i.Pp,this);this.b.bd=!1;this.qk&&nb(e)&&e.preventDefault()};r.Mf=function(){var e,b;e=0;for(b=this.of.length;e<b;++e)this.of[e]&&(this.of[e]=!1,this.hf=e-1,this.b.trigger(rc.prototype.i.Ol,this))};f.prototype.Ll=function(e,b){return e===this.hf&&b===this.mj};f.prototype.Kp=function(){return!0};f.prototype.Ol=function(e){return e===this.hf};f.prototype.Dp=function(e){var b=this.b.fk();return Xa(this.b.Oo(e,this.Dd,this.Ed,b.Ag),b.Ag)};
f.prototype.vj=function(e,b,c){return e!==this.hf||b!==this.mj?!1:this.b.Oo(c,this.Dd,this.Ed,!1)};f.prototype.Pp=function(e){this.qk=!0;return e===this.Yo};q.i=new f;var n=null;p.prototype.Vp=function(e){this.b.Sa||(e="auto pointer text crosshair move help wait none".split(" ")[e],n!==e&&(n=e,document.body.style.cursor=e))};p.prototype.Wp=function(e){this.b.Sa||this.b.Ad||!e||(e=e.Mm())&&e.Ga&&(e=e.Ga,n!==e&&(n=e,e="url("+e.cs()+") "+Math.round(e.zb*e.width)+" "+Math.round(e.Ab*e.height)+", auto",
document.body.style.cursor="",document.body.style.cursor=e))};q.P=new p;m.prototype.pq=function(e,b){var c,a,d,f,g;ga(b)?(c=this.b.tg(0),a=c.scale,d=c.Vd,f=c.Hd,g=c.k,c.scale=1,c.Vd=1,c.Hd=1,c.k=0,e.u(c.qb(this.Dd,this.Ed,!0)),c.scale=a,c.Vd=d,c.Hd=f,c.k=g):(c=ia(b)?this.b.tg(b):this.b.kk(b))?e.u(c.qb(this.Dd,this.Ed,!0)):e.u(0)};m.prototype.qq=function(e,b){var c,a,d,f,g;ga(b)?(c=this.b.tg(0),a=c.scale,d=c.Vd,f=c.Id,g=c.k,c.scale=1,c.Vd=1,c.Id=1,c.k=0,e.u(c.qb(this.Dd,this.Ed,!1)),c.scale=a,c.Vd=
d,c.Id=f,c.k=g):(c=ia(b)?this.b.tg(b):this.b.kk(b))?e.u(c.qb(this.Dd,this.Ed,!1)):e.u(0)};q.kb=new m})();function nc(f){this.b=f}
(function(){function f(){if(0===this.Rj.length){var b=document.createElement("canvas");b.width=this.width;b.height=this.height;var a=b.getContext("2d");this.Vf?a.drawImage(this.Xa,this.Kf,this.Lf,this.width,this.height,0,0,this.width,this.height):a.drawImage(this.Xa,0,0,this.width,this.height);this.Rj=b.toDataURL("image/png")}return this.Rj}function p(){}function m(){}var q=nc.prototype;q.Pb=function(b){this.ka=b;this.b=b.b};var r=q.Pb.prototype;r.ra=function(){if(!this.J){var b,a,d,e,g,l,m,n,k;this.Bc=
[];this.xg=!1;b=0;for(a=this.Hb.length;b<a;b++){g=this.Hb[b];m={};m.name=g[0];m.speed=g[1];m.loop=g[2];m.il=g[3];m.jl=g[4];m.ho=g[5];m.M=g[6];m.frames=[];d=0;for(e=g[7].length;d<e;d++)l=g[7][d],n={},n.Ro=l[0],n.So=l[1],n.Kf=l[2],n.Lf=l[3],n.width=l[4],n.height=l[5],n.duration=l[6],n.zb=l[7],n.Ab=l[8],n.uk=l[9],n.Pi=l[10],n.io=l[11],n.Vf=0!==n.width,n.Rj="",n.cs=f,k={left:0,top:0,right:1,bottom:1},n.rl=k,n.Td=null,(k=this.b.Vr(l[0]))?n.Xa=k:(n.Xa=new Image,n.Xa.Hq=l[0],n.Xa.Gq=l[1],n.Xa.Aq=null,this.b.lu(n.Xa,
l[0])),m.frames.push(n),this.Bc.push(n);this.Hb[b]=m}}};r.hp=function(){var b,a,d;b=0;for(a=this.d.length;b<a;b++)d=this.d[b],d.Nh=d.Ga.Td};r.Xk=function(){if(!this.J){var b,a,d;b=0;for(a=this.Bc.length;b<a;++b)d=this.Bc[b],d.Xa.Aq=null,d.Td=null;this.xg=!1;this.hp()}};r.Wn=function(){if(!this.J&&this.d.length){var b,a,d;b=0;for(a=this.Bc.length;b<a;++b)d=this.Bc[b],d.Td=this.b.n.nn(d.Xa,this.b.wa,d.io);this.hp()}};r.Ws=function(){if(!this.J&&!this.xg&&this.b.n){var b,a,d;b=0;for(a=this.Bc.length;b<
a;++b)d=this.Bc[b],d.Td=this.b.n.nn(d.Xa,this.b.wa,d.io);this.xg=!0}};r.ep=function(){if(!this.J&&!this.d.length&&this.xg){var b,a,d;b=0;for(a=this.Bc.length;b<a;++b)d=this.Bc[b],this.b.n.deleteTexture(d.Td),d.Td=null;this.xg=!1}};var t=[];r.mo=function(b){var a,d,e;X(t);a=0;for(d=this.Bc.length;a<d;++a)e=this.Bc[a].Xa,-1===t.indexOf(e)&&(b.drawImage(e,0,0),t.push(e))};q.ob=function(b){this.type=b;this.b=b.b;b=this.type.Hb[0].frames[0].Pi;this.cc?this.Tc.ph(b):this.Tc=new gb(b)};var n=q.ob.prototype;
n.ra=function(){this.visible=0===this.ba[0];this.vk=this.Dk=!1;this.ig=0!==this.ba[3];this.ga=this.Hm(this.ba[1])||this.type.Hb[0];this.p=this.ba[2];0>this.p&&(this.p=0);this.p>=this.ga.frames.length&&(this.p=this.ga.frames.length-1);var b=this.ga.frames[this.p];this.Tc.ph(b.Pi);this.zb=b.zb;this.Ab=b.Ab;this.pf=this.ga.speed;this.ge=this.ga.jl;1===this.type.Hb.length&&1===this.type.Hb[0].frames.length||0===this.pf||(this.b.kj(this),this.Dk=!0);this.cc?this.Rc.reset():this.Rc=new eb;this.wd=this.Rc.O;
this.Ae=!0;this.md=0;this.ze=!0;this.Lj=this.Ul="";this.Dq=0;this.Jh=-1;this.type.Ws();var a,d,e,f,l,m,n,b=0;for(a=this.type.Hb.length;b<a;b++)for(f=this.type.Hb[b],d=0,e=f.frames.length;d<e;d++)l=f.frames[d],0===l.width&&(l.width=l.Xa.width,l.height=l.Xa.height),l.Vf&&(n=l.Xa,m=l.rl,m.left=l.Kf/n.width,m.top=l.Lf/n.height,m.right=(l.Kf+l.width)/n.width,m.bottom=(l.Lf+l.height)/n.height,0===l.Kf&&0===l.Lf&&l.width===n.width&&l.height===n.height&&(l.Vf=!1));this.Ga=this.ga.frames[this.p];this.Nh=this.Ga.Td};
n.fc=function(){var b={a:this.ga.M,f:this.p,cas:this.pf,fs:this.wd,ar:this.md,at:this.Rc.O,rt:this.ge};this.Ae||(b.ap=this.Ae);this.ze||(b.af=this.ze);return b};n.Kc=function(b){var a=this.Zr(b.a);a&&(this.ga=a);this.p=b.f;0>this.p&&(this.p=0);this.p>=this.ga.frames.length&&(this.p=this.ga.frames.length-1);this.pf=b.cas;this.wd=b.fs;this.md=b.ar;this.Rc.reset();this.Rc.O=b.at;this.Ae=b.hasOwnProperty("ap")?b.ap:!0;this.ze=b.hasOwnProperty("af")?b.af:!0;b.hasOwnProperty("rt")?this.ge=b.rt:this.ge=
this.ga.jl;this.Ga=this.ga.frames[this.p];this.Nh=this.Ga.Td;this.Tc.ph(this.Ga.Pi);this.zb=this.Ga.zb;this.Ab=this.Ga.Ab};n.zj=function(b){this.p=b?0:this.ga.frames.length-1;this.Ae=!1;this.Ul=this.ga.name;this.vk=!0;this.b.trigger(nc.prototype.i.Jp,this);this.b.trigger(nc.prototype.i.Ip,this);this.vk=!1;this.md=0};n.Bj=function(){return this.Rc.O};n.sb=function(){this.Rc.add(this.b.Km(this));this.Lj.length&&this.Mq();0<=this.Jh&&this.rm();var b=this.Rc.O,a=this.ga,d=a.frames[this.p],e=d.duration/
this.pf;this.Ae&&b>=this.wd+e&&(this.ze?this.p++:this.p--,this.wd+=e,this.p>=a.frames.length&&(a.ho?(this.ze=!1,this.p=a.frames.length-2):a.loop?this.p=this.ge:(this.md++,this.md>=a.il?this.zj(!1):this.p=this.ge)),0>this.p&&(a.ho?(this.p=1,this.ze=!0,a.loop||(this.md++,this.md>=a.il&&this.zj(!0))):a.loop?this.p=this.ge:(this.md++,this.md>=a.il?this.zj(!0):this.p=this.ge)),0>this.p?this.p=0:this.p>=a.frames.length&&(this.p=a.frames.length-1),b>this.wd+a.frames[this.p].duration/this.pf&&(this.wd=b),
b=a.frames[this.p],this.mf(d,b),this.b.X=!0)};n.Hm=function(b){var a,d,e;a=0;for(d=this.type.Hb.length;a<d;a++)if(e=this.type.Hb[a],mb(e.name,b))return e;return null};n.Zr=function(b){var a,d,e;a=0;for(d=this.type.Hb.length;a<d;a++)if(e=this.type.Hb[a],e.M===b)return e;return null};n.Mq=function(){var b=this.ga.frames[this.p],a=this.Hm(this.Lj);this.Lj="";!a||mb(a.name,this.ga.name)&&this.Ae||(this.ga=a,this.pf=a.speed,this.ge=a.jl,0>this.p&&(this.p=0),this.p>=this.ga.frames.length&&(this.p=this.ga.frames.length-
1),1===this.Dq&&(this.p=0),this.Ae=!0,this.wd=this.Rc.O,this.ze=!0,this.mf(b,this.ga.frames[this.p]),this.b.X=!0)};n.rm=function(){var b=this.ga.frames[this.p],a=this.p;this.p=S(this.Jh);0>this.p&&(this.p=0);this.p>=this.ga.frames.length&&(this.p=this.ga.frames.length-1);a!==this.p&&(this.mf(b,this.ga.frames[this.p]),this.wd=this.Rc.O,this.b.X=!0);this.Jh=-1};n.mf=function(b,a){var d=b.width,e=b.height,f=a.width,l=a.height;d!=f&&(this.width*=f/d);e!=l&&(this.height*=l/e);this.zb=a.zb;this.Ab=a.Ab;
this.Tc.ph(a.Pi);this.Qa();this.Ga=a;this.Nh=a.Td;d=0;for(e=this.C.length;d<e;d++)f=this.C[d],f.jt&&f.jt(b,a);this.b.trigger(nc.prototype.i.mf,this)};n.sd=function(b){b.globalAlpha=this.opacity;var a=this.Ga,d=a.Vf,e=a.Xa,f=this.x,l=this.y,m=this.width,n=this.height;if(0===this.k&&0<=m&&0<=n)f-=this.zb*m,l-=this.Ab*n,this.b.Jd&&(f=Math.round(f),l=Math.round(l)),d?b.drawImage(e,a.Kf,a.Lf,a.width,a.height,f,l,m,n):b.drawImage(e,f,l,m,n);else{this.b.Jd&&(f=Math.round(f),l=Math.round(l));b.save();var k=
0<m?1:-1,p=0<n?1:-1;b.translate(f,l);1===k&&1===p||b.scale(k,p);b.rotate(this.k*k*p);f=0-this.zb*ma(m);l=0-this.Ab*ma(n);d?b.drawImage(e,a.Kf,a.Lf,a.width,a.height,f,l,ma(m),ma(n)):b.drawImage(e,f,l,ma(m),ma(n));b.restore()}};n.rf=function(b){this.qc(b)};n.qc=function(b){b.gc(this.Nh);b.Tf(this.opacity);var a=this.Ga,d=this.Ce;if(this.b.Jd){var e=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;a.Vf?b.te(d.tb+e,d.ub+f,d.hc+e,d.ic+f,d.Ub+e,d.Vb+f,d.Sb+e,d.Tb+f,a.rl):b.ih(d.tb+e,d.ub+f,d.hc+e,
d.ic+f,d.Ub+e,d.Vb+f,d.Sb+e,d.Tb+f)}else a.Vf?b.te(d.tb,d.ub,d.hc,d.ic,d.Ub,d.Vb,d.Sb,d.Tb,a.rl):b.ih(d.tb,d.ub,d.hc,d.ic,d.Ub,d.Vb,d.Sb,d.Tb)};n.es=function(b){var a=this.Ga,d,e;d=0;for(e=a.uk.length;d<e;d++)if(mb(b,a.uk[d][0]))return d;return-1};n.ik=function(b,a){var d=this.Ga,e=d.uk,f;F(b)?f=this.es(b):f=b-1;f=S(f);if(0>f||f>=e.length)return a?this.x:this.y;var l=(e[f][1]-d.zb)*this.width,e=e[f][2],e=(e-d.Ab)*this.height,d=Math.cos(this.k);f=Math.sin(this.k);var m=l*d-e*f,e=e*d+l*f,l=m+this.x,
e=e+this.y;return a?l:e};var e=new da,b=!1;new ua(0,0,0,0);r.finish=function(c){if(b){if(c){var a=this.b.Ja().ya.tc;c=null.U();var d=e.xe(),f,g;if(c.Y){c.Y=!1;X(c.d);f=0;for(g=d.length;f<g;++f)c.d[f]=d[f];if(a)for(X(c.I),f=0,g=null.d.length;f<g;++f)d=null.d[f],e.contains(d)||c.I.push(d)}else if(a)for(a=c.d.length,f=0,g=d.length;f<g;++f)c.d[a+f]=d[f],Ea(c.I,d[f]);else za(c.d,d);null.Sc()}e.clear();b=!1}};p.prototype.Ip=function(b){return mb(this.Ul,b)};p.prototype.Jp=function(){return!0};p.prototype.mf=
function(){return!0};q.i=new p;m.prototype.Up=function(b){this.Jh=b;this.Dk||(this.b.kj(this),this.Dk=!0);this.vk||this.rm()};q.P=new m;q.kb=new function(){}})();function sc(f){this.b=f}
(function(){function f(){return e.length?e.pop():{}}function p(b){var c,a;c=0;for(a=b.length;c<a;c++)e.push(b[c]);X(b)}function m(b){return b.length&&" "===b.charAt(b.length-1)?b.substring(0,b.length-1):b}function q(){}var r=sc.prototype;r.ra=function(){r.P.cq=function(b){this.width!==b&&(this.width=b,this.gf=!0,this.Qa())}};r.Pb=function(b){this.ka=b;this.b=b.b};var t=r.Pb.prototype;t.ra=function(){};t.Xk=function(){if(!this.J){var b,c,a;b=0;for(c=this.d.length;b<c;b++)a=this.d[b],a.dd=null,a.$e=
null,a.Mb=null}};r.ob=function(b){this.type=b;this.b=b.b;this.cc?X(this.oe):this.oe=[];this.gf=!0};t=r.ob.prototype;t.ra=function(){this.text=this.ba[0];this.visible=0===this.ba[1];this.font=this.ba[2];this.color=this.ba[3];this.hi=this.ba[4];this.rj=this.ba[5];this.Hl=0===this.ba[7];this.Ik=this.wi=this.width;this.vi=this.height;this.Lk=this.ba[8];this.$h=this.sf="";this.Po=this.Qo=this.gh=0;this.ot();this.Mb=this.$e=this.dd=null;this.Mn=!1;this.Og=this.b.ld;this.cc?this.Qf.set(0,0,1,1):this.Qf=
new ua(0,0,1,1);this.b.n&&this.b.kj(this)};t.ot=function(){var b=this.font.split(" "),c;for(c=0;c<b.length;c++)if("pt"===b[c].substr(b[c].length-2,2)){this.gh=parseInt(b[c].substr(0,b[c].length-2));this.el=Math.ceil(this.gh/72*96)+4;0<c&&(this.$h=b[c-1]);this.sf=b[c+1];for(c+=2;c<b.length;c++)this.sf+=" "+b[c];break}};t.fc=function(){return{t:this.text,f:this.font,c:this.color,ha:this.hi,va:this.rj,wr:this.Hl,lho:this.Lk,fn:this.sf,fs:this.$h,ps:this.gh,pxh:this.el,tw:this.Qo,th:this.Po,lrt:this.Og}};
t.Kc=function(b){this.text=b.t;this.font=b.f;this.color=b.c;this.hi=b.ha;this.rj=b.va;this.Hl=b.wr;this.Lk=b.lho;this.sf=b.fn;this.$h=b.fs;this.gh=b.ps;this.el=b.pxh;this.Qo=b.tw;this.Po=b.th;this.Og=b.lrt;this.gf=!0;this.Ik=this.wi=this.width;this.vi=this.height};t.sb=function(){if(this.b.n&&this.Mb&&300<=this.b.ld-this.Og){var b=this.g;this.Ra();var c=this.Ya;if(c.right<b.Z||c.bottom<b.aa||c.left>b.ea||c.top>b.da)this.b.n.deleteTexture(this.Mb),this.dd=this.$e=this.Mb=null}};t.bh=function(){this.dd=
this.$e=null;this.b.n&&this.Mb&&this.b.n.deleteTexture(this.Mb);this.Mb=null};t.Bj=function(){this.font=this.$h+" "+this.gh.toString()+"pt "+this.sf;this.gf=!0;this.b.X=!0};t.sd=function(b,c){b.font=this.font;b.textBaseline="top";b.fillStyle=this.color;b.globalAlpha=c?1:this.opacity;var a=1;c&&(a=Math.abs(this.g.Jb()),b.save(),b.scale(a,a));if(this.gf||this.width!==this.Ik)this.type.ka.nq(this.text,this.oe,b,this.width,this.Hl),this.gf=!1,this.Ik=this.width;this.Ra();var a=c?0:this.Ce.tb,d=c?0:this.Ce.ub;
this.b.Jd&&(a=a+.5|0,d=d+.5|0);0===this.k||c||(b.save(),b.translate(a,d),b.rotate(this.k),d=a=0);var e=d+this.height,f=this.el,f=f+this.Lk,l,m;1===this.rj?d+=Math.max(this.height/2-this.oe.length*f/2,0):2===this.rj&&(d+=Math.max(this.height-this.oe.length*f-2,0));for(m=0;m<this.oe.length&&!(l=a,1===this.hi?l=a+(this.width-this.oe[m].width)/2:2===this.hi&&(l=a+(this.width-this.oe[m].width)),b.fillText(this.oe[m].text,l,d),d+=f,d>=e-f);m++);(0!==this.k||c)&&b.restore();this.Og=this.b.ld};t.qc=function(b){if(!(1>
this.width||1>this.height)){var c=this.gf||this.Mn;this.Mn=!1;var a=this.g.Jb(),d=this.g.Ia(),e=this.Qf,f=a*this.width,l=a*this.height,m=Math.ceil(f),n=Math.ceil(l),k=Math.abs(m),p=Math.abs(n),q=this.b.r/2,r=this.b.q/2;this.$e||(this.dd=document.createElement("canvas"),this.dd.width=k,this.dd.height=p,this.wi=k,this.vi=p,c=!0,this.$e=this.dd.getContext("2d"));if(k!==this.wi||p!==this.vi)this.dd.width=k,this.dd.height=p,this.Mb&&(b.deleteTexture(this.Mb),this.Mb=null),c=!0;c&&(this.$e.clearRect(0,
0,k,p),this.sd(this.$e,!0),this.Mb||(this.Mb=b.Wb(k,p,this.b.wa,this.b.Ad)),b.ku(this.dd,this.Mb,this.b.Ad));this.wi=k;this.vi=p;b.gc(this.Mb);b.Tf(this.opacity);b.vc();b.translate(-q,-r);b.jc();var t=this.Ce,c=this.g.La(t.tb,t.ub,!0),k=this.g.La(t.tb,t.ub,!1),p=this.g.La(t.hc,t.ic,!0),q=this.g.La(t.hc,t.ic,!1),r=this.g.La(t.Ub,t.Vb,!0),V=this.g.La(t.Ub,t.Vb,!1),R=this.g.La(t.Sb,t.Tb,!0),t=this.g.La(t.Sb,t.Tb,!1);if(this.b.Jd||0===this.k&&0===d)var C=(c+.5|0)-c,z=(k+.5|0)-k,c=c+C,k=k+z,p=p+C,q=q+
z,r=r+C,V=V+z,R=R+C,t=t+z;0===this.k&&0===d?(p=c+m,q=k,r=p,V=k+n,R=c,t=V,e.right=1,e.bottom=1):(e.right=f/m,e.bottom=l/n);b.te(c,k,p,q,r,V,R,t,e);b.vc();b.scale(a,a);b.Yi(-this.g.Ia());b.translate((this.g.Z+this.g.ea)/-2,(this.g.aa+this.g.da)/-2);b.jc();this.Og=this.b.ld}};var n=[];r.gq=function(b){X(n);for(var c="",a,d=0;d<b.length;)if(a=b.charAt(d),"\n"===a)c.length&&(n.push(c),c=""),n.push("\n"),++d;else if(" "===a||"\t"===a||"-"===a){do c+=b.charAt(d),d++;while(d<b.length&&(" "===b.charAt(d)||
"\t"===b.charAt(d)));n.push(c);c=""}else d<b.length&&(c+=a,d++);c.length&&n.push(c)};var e=[];r.nq=function(b,c,a,d,e){if(b&&b.length)if(2>=d)p(c);else{if(100>=b.length&&-1===b.indexOf("\n")){var g=a.measureText(b).width;if(g<=d){p(c);c.push(f());c[0].text=b;c[0].width=g;return}}this.oq(b,c,a,d,e)}else p(c)};r.oq=function(b,c,a,d,h){h&&(this.gq(b),b=n);var g="",l,p,q,k=0;for(q=0;q<b.length;q++)"\n"===b[q]?(k>=c.length&&c.push(f()),g=m(g),p=c[k],p.text=g,p.width=a.measureText(g).width,k++,g=""):(l=
g,g+=b[q],p=a.measureText(g).width,p>=d&&(k>=c.length&&c.push(f()),l=m(l),p=c[k],p.text=l,p.width=a.measureText(l).width,k++,g=b[q],h||" "!==g||(g="")));g.length&&(k>=c.length&&c.push(f()),g=m(g),p=c[k],p.text=g,p.width=a.measureText(g).width,k++);for(q=k;q<c.length;q++)e.push(c[q]);c.length=k};r.i=new function(){};q.prototype.$p=function(b){ia(b)&&1E9>b&&(b=Math.round(1E10*b)/1E10);b=b.toString();this.text!==b&&(this.text=b,this.gf=!0,this.b.X=!0)};r.P=new q;r.kb=new function(){}})();
function mc(){return[pc,qc,oc,rc,sc,nc,Z.prototype.i.Cp,Z.prototype.i.Ml,pc.prototype.P.Ql,sc.prototype.P.Ql,oc.prototype.P.CallFunction,nc.prototype.P.Up,nc.prototype.P.wp,oc.prototype.i.Eh,Z.prototype.i.lq,pc.prototype.i.Kl,sc.prototype.i.Kl,Z.prototype.P.aq,Z.prototype.kb.round,Z.prototype.kb.abs,Z.prototype.kb.random,Z.prototype.i.Rp,sc.prototype.P.$p,pc.prototype.kb.np,sc.prototype.P.Yp,pc.prototype.kb.iq,pc.prototype.P.Rl,rc.prototype.i.vj,sc.prototype.i.sp,qc.prototype.P.Play,Z.prototype.P.fq,
Z.prototype.P.Tp,Z.prototype.i.Qp,Z.prototype.i.yp,Z.prototype.P.vp,nc.prototype.P.Hp,Z.prototype.P.lp,Z.prototype.i.rp,Z.prototype.i.hq,nc.prototype.P.bq,Z.prototype.P.kq,Z.prototype.P.Sp,Z.prototype.i.tp,nc.prototype.i.Ep,Z.prototype.P.jq,Z.prototype.P.dq,Z.prototype.P.Xp,rc.prototype.i.Dp,rc.prototype.P.Wp,rc.prototype.P.Vp]};
