// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,ea,fa,ga,ia,ja,ka,ma,na,pa,qa,ra,sa,ta,ua,va,wa,xa,ya,za,Aa,Ba,Ca,Da,Ea,A,Fa,Ga,Ja,La,Ma,Na,Oa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,cc,dc,ec,fc,gc,hc,ic,jc,kc,lc,mc,nc,oc,pc,qc,rc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});
(function(){function e(b,a,g,c){this.set(b,a,g,c)}function m(){this.hb=this.gb=this.jb=this.ib=this.sb=this.rb=this.Ua=this.Ta=0}function p(b,a,g,c){b<a?g<c?(t=b<g?b:g,v=a>c?a:c):(t=b<c?b:c,v=a>g?a:g):g<c?(t=a<g?a:g,v=b>c?b:c):(t=a<c?a:c,v=b>g?b:g)}function n(){this.items=this.He=null;this.Rj=0;X&&(this.He=new Set);this.Ri=[];this.Qf=!0}function r(b){R[Q++]=b}function k(){this.X=this.Dn=this.y=this.kj=0}function f(b){this.Qb=[];this.tl=this.wl=this.xl=this.ul=0;this.Ek(b)}function a(b,a){this.Io=
b;this.Ho=a;this.cells={}}function c(b,a){this.Io=b;this.Ho=a;this.cells={}}function d(b,a,g){var c;return C.length?(c=C.pop(),c.op=b,c.x=a,c.y=g,c):new ba(b,a,g)}function b(b,a,g){this.op=b;this.x=a;this.y=g;this.Vb=new ca}function h(b,a,g){var c;return w.length?(c=w.pop(),c.op=b,c.x=a,c.y=g,c):new ea(b,a,g)}function g(b,a,g){this.op=b;this.x=a;this.y=g;this.Vb=[];this.ji=!0;this.Ee=new ca;this.gj=!1}function l(b,a){return b.ke-a.ke}fa=function(b){window.console&&window.console.log&&window.console.log(b)};
ga=function(b){window.console&&window.console.error&&window.console.error(b)};aa=function(b){return b};ia=function(b){return"undefined"===typeof b};ja=function(b){return"number"===typeof b};ka=function(b){return"string"===typeof b};ma=function(b){return 0<b&&0===(b-1&b)};na=function(b){--b;for(var a=1;32>a;a<<=1)b=b|b>>a;return b+1};pa=function(b){return 0>b?-b:b};qa=function(b,a){return b>a?b:a};ra=function(b,a){return b<a?b:a};sa=Math.PI;ta=function(b){return 0<=b?b|0:(b|0)-1};ua=function(b){var a=
b|0;return a===b?a:a+1};va=function(b,a,g,c,h,d,q,l){var B,f,t,v;b<g?(f=b,B=g):(f=g,B=b);h<q?(v=h,t=q):(v=q,t=h);if(B<v||f>t)return!1;a<c?(f=a,B=c):(f=c,B=a);d<l?(v=d,t=l):(v=l,t=d);if(B<v||f>t)return!1;B=h-b+q-g;f=d-a+l-c;b=g-b;a=c-a;h=q-h;d=l-d;l=pa(a*h-d*b);return pa(h*f-d*B)>l?!1:pa(b*f-a*B)<=l};e.prototype.set=function(b,a,g,c){this.left=b;this.top=a;this.right=g;this.bottom=c};e.prototype.Nh=function(b){this.left=b.left;this.top=b.top;this.right=b.right;this.bottom=b.bottom};e.prototype.width=
function(){return this.right-this.left};e.prototype.height=function(){return this.bottom-this.top};e.prototype.offset=function(b,a){this.left+=b;this.top+=a;this.right+=b;this.bottom+=a;return this};e.prototype.normalize=function(){var b=0;this.left>this.right&&(b=this.left,this.left=this.right,this.right=b);this.top>this.bottom&&(b=this.top,this.top=this.bottom,this.bottom=b)};e.prototype.hC=function(b){return!(b.right<this.left||b.bottom<this.top||b.left>this.right||b.top>this.bottom)};e.prototype.iC=
function(b,a,g){return!(b.right+a<this.left||b.bottom+g<this.top||b.left+a>this.right||b.top+g>this.bottom)};e.prototype.$b=function(b,a){return b>=this.left&&b<=this.right&&a>=this.top&&a<=this.bottom};e.prototype.qj=function(b){return this.left===b.left&&this.top===b.top&&this.right===b.right&&this.bottom===b.bottom};wa=e;m.prototype.Dk=function(b){this.Ta=b.left;this.Ua=b.top;this.rb=b.right;this.sb=b.top;this.ib=b.right;this.jb=b.bottom;this.gb=b.left;this.hb=b.bottom};m.prototype.kv=function(b,
a){if(0===a)this.Dk(b);else{var g=Math.sin(a),c=Math.cos(a),h=b.left*g,d=b.top*g,q=b.right*g,g=b.bottom*g,l=b.left*c,B=b.top*c,f=b.right*c,c=b.bottom*c;this.Ta=l-d;this.Ua=B+h;this.rb=f-d;this.sb=B+q;this.ib=f-g;this.jb=c+q;this.gb=l-g;this.hb=c+h}};m.prototype.offset=function(b,a){this.Ta+=b;this.Ua+=a;this.rb+=b;this.sb+=a;this.ib+=b;this.jb+=a;this.gb+=b;this.hb+=a;return this};var t=0,v=0;m.prototype.xs=function(b){p(this.Ta,this.rb,this.ib,this.gb);b.left=t;b.right=v;p(this.Ua,this.sb,this.jb,
this.hb);b.top=t;b.bottom=v};m.prototype.$b=function(b,a){var g=this.Ta,c=this.Ua,h=this.rb-g,d=this.sb-c,q=this.ib-g,l=this.jb-c,B=b-g,f=a-c,t=h*h+d*d,v=h*q+d*l,d=h*B+d*f,e=q*q+l*l,u=q*B+l*f,k=1/(t*e-v*v),h=(e*d-v*u)*k,t=(t*u-v*d)*k;if(0<=h&&0<t&&1>h+t)return!0;h=this.gb-g;d=this.hb-c;t=h*h+d*d;v=h*q+d*l;d=h*B+d*f;k=1/(t*e-v*v);h=(e*d-v*u)*k;t=(t*u-v*d)*k;return 0<=h&&0<t&&1>h+t};m.prototype.oe=function(b,a){if(a)switch(b){case 0:return this.Ta;case 1:return this.rb;case 2:return this.ib;case 3:return this.gb;
case 4:return this.Ta;default:return this.Ta}else switch(b){case 0:return this.Ua;case 1:return this.sb;case 2:return this.jb;case 3:return this.hb;case 4:return this.Ua;default:return this.Ua}};m.prototype.nu=function(){return(this.Ta+this.rb+this.ib+this.gb)/4};m.prototype.ou=function(){return(this.Ua+this.sb+this.jb+this.hb)/4};m.prototype.At=function(b){var a=b.nu(),g=b.ou();if(this.$b(a,g))return!0;a=this.nu();g=this.ou();if(b.$b(a,g))return!0;var c,h,d,q,l,B,f,t;for(f=0;4>f;f++)for(t=0;4>t;t++)if(a=
this.oe(f,!0),g=this.oe(f,!1),c=this.oe(f+1,!0),h=this.oe(f+1,!1),d=b.oe(t,!0),q=b.oe(t,!1),l=b.oe(t+1,!0),B=b.oe(t+1,!1),va(a,g,c,h,d,q,l,B))return!0;return!1};xa=m;ya=function(b,a,g){return Math.max(Math.min(b,255),0)|Math.max(Math.min(a,255),0)<<8|Math.max(Math.min(g,255),0)<<16};za=function(b){return b&255};Aa=function(b){return(b&65280)>>8};Ba=function(b){return(b&16711680)>>16};Ca=function(b,a){for(var g in a)a.hasOwnProperty(g)&&(b[g]=a[g]);return b};Da=function(b,a){var g,c;a=ta(a);if(!(0>
a||a>=b.length)){g=a;for(c=b.length-1;g<c;g++)b[g]=b[g+1];Ea(b,c)}};Ea=function(b,a){b.length=a};A=function(b){Ea(b,0)};Fa=function(b,a){A(b);var g,c;g=0;for(c=a.length;g<c;++g)b[g]=a[g]};Ga=function(b,a){b.push.apply(b,a)};Ja=function(b,a){var g,c;g=0;for(c=b.length;g<c;++g)if(b[g]===a)return g;return-1};La=function(b,a){var g=Ja(b,a);-1!==g&&Da(b,g)};Ma=function(b,a,g){return b<a?a:b>g?g:b};Na=function(b){return b/(180/sa)};Oa=function(b){return 180/sa*b};Qa=function(b){b%=360;0>b&&(b+=360);return b};
Ra=function(b){b%=2*sa;0>b&&(b+=2*sa);return b};Sa=function(b){return Qa(Oa(b))};Ta=function(b){return Ra(Na(b))};Ua=function(b,a,g,c){return Math.atan2(c-a,g-b)};Va=function(b,a){if(b===a)return 0;var g=Math.sin(b),c=Math.cos(b),h=Math.sin(a),d=Math.cos(a),g=g*h+c*d;return 1<=g?0:-1>=g?sa:Math.acos(g)};Wa=function(b,a,g){var c=Math.sin(b),h=Math.cos(b),d=Math.sin(a),q=Math.cos(a);return Math.acos(c*d+h*q)>g?0<h*d-c*q?Ra(b+g):Ra(b-g):Ra(a)};Xa=function(b,a){var g=Math.sin(b),c=Math.cos(b),h=Math.sin(a),
d=Math.cos(a);return 0>=c*h-g*d};Ya=function(b,a,g,c,h,d){if(0===g)return d?b:a;var q=Math.sin(g);g=Math.cos(g);b-=c;a-=h;var l=b*q;b=b*g-a*q;a=a*g+l;return d?b+c:a+h};Za=function(b,a,g,c){b=g-b;a=c-a;return Math.sqrt(b*b+a*a)};$a=function(b,a){return!b!==!a};ab=function(b,a,g){return b+(a-b)*g};bb=function(b,a,g){return b===a?0:(g-b)/(a-b)};db=function(b,a,g){var c=Va(b,a);return Xa(a,b)?b+c*g:b-c*g};eb=function(b){for(var a in b)if(b.hasOwnProperty(a))return!0;return!1};fb=function(b){for(var a in b)b.hasOwnProperty(a)&&
delete b[a]};var L=+new Date;gb=function(){if("undefined"!==typeof window.performance){var b=window.performance;if("undefined"!==typeof b.now)return b.now();if("undefined"!==typeof b.webkitNow)return b.webkitNow();if("undefined"!==typeof b.mozNow)return b.mozNow();if("undefined"!==typeof b.msNow)return b.msNow()}return Date.now()-L};var q=!1,u=q=!1,H=!1;"undefined"!==typeof window&&(q=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),q=!q&&/safari/i.test(navigator.userAgent),
u=/(iphone|ipod|ipad)/i.test(navigator.userAgent),H=window.c2ejecta);var X=!q&&!H&&!u&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;n.prototype.contains=function(b){return this.hf()?!1:X?this.He.has(b):this.items&&this.items.hasOwnProperty(b)};n.prototype.add=function(b){if(X)this.He.has(b)||(this.He.add(b),this.Qf=!1);else{var a=b.toString(),g=this.items;g?g.hasOwnProperty(a)||(g[a]=b,this.Rj++,this.Qf=!1):(this.items={},this.items[a]=b,this.Rj=1,this.Qf=!1)}};n.prototype.remove=
function(b){if(!this.hf())if(X)this.He.has(b)&&(this.He["delete"](b),this.Qf=!1);else if(this.items){b=b.toString();var a=this.items;a.hasOwnProperty(b)&&(delete a[b],this.Rj--,this.Qf=!1)}};n.prototype.clear=function(){this.hf()||(X?this.He.clear():(this.items=null,this.Rj=0),A(this.Ri),this.Qf=!0)};n.prototype.hf=function(){return 0===this.count()};n.prototype.count=function(){return X?this.He.size:this.Rj};var R=null,Q=0;n.prototype.gE=function(){if(!this.Qf){if(X)A(this.Ri),R=this.Ri,Q=0,this.He.forEach(r),
R=null,Q=0;else{var b=this.Ri;A(b);var a,g=0,c=this.items;if(c)for(a in c)c.hasOwnProperty(a)&&(b[g++]=c[a])}this.Qf=!0}};n.prototype.je=function(){this.gE();return this.Ri};ca=n;new ca;hb=function(b,a){X?ib(b,a.He):jb(b,a.je())};ib=function(b,a){var g,c,h,d;c=g=0;for(h=b.length;g<h;++g)d=b[g],a.has(d)||(b[c++]=d);Ea(b,c)};jb=function(b,a){var g,c,h,d;c=g=0;for(h=b.length;g<h;++g)d=b[g],-1===Ja(a,d)&&(b[c++]=d);Ea(b,c)};k.prototype.add=function(b){this.y=b-this.kj;this.Dn=this.X+this.y;this.kj=this.Dn-
this.X-this.y;this.X=this.Dn};k.prototype.reset=function(){this.X=this.Dn=this.y=this.kj=0};kb=k;lb=function(b){return b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};f.prototype.Ek=function(b){this.Ru=b;this.$d=b.length/2;this.Qb.length=b.length;this.zl=this.Al=-1;this.As=0};f.prototype.gi=function(){return!this.Ru.length};f.prototype.Ma=function(){for(var b=this.Qb,a=b[0],g=a,c=b[1],h=c,d,q,l=1,B=this.$d;l<B;++l)q=2*l,d=b[q],q=b[q+1],d<a&&(a=d),d>g&&(g=d),q<c&&(c=q),q>h&&(h=q);this.ul=a;this.wl=g;
this.xl=c;this.tl=h};f.prototype.Dk=function(b,a,g){this.Qb.length=8;this.$d=4;var c=this.Qb;c[0]=b.left-a;c[1]=b.top-g;c[2]=b.right-a;c[3]=b.top-g;c[4]=b.right-a;c[5]=b.bottom-g;c[6]=b.left-a;c[7]=b.bottom-g;this.Al=b.right-b.left;this.zl=b.bottom-b.top;this.Ma()};f.prototype.Ji=function(b,a,g,c,h){this.Qb.length=8;this.$d=4;var d=this.Qb;d[0]=b.Ta-a;d[1]=b.Ua-g;d[2]=b.rb-a;d[3]=b.sb-g;d[4]=b.ib-a;d[5]=b.jb-g;d[6]=b.gb-a;d[7]=b.hb-g;this.Al=c;this.zl=h;this.Ma()};f.prototype.jv=function(b){this.$d=
b.$d;Fa(this.Qb,b.Qb);this.ul=b.ul;this.xl-b.xl;this.wl=b.wl;this.tl=b.tl};f.prototype.Lh=function(b,a,g){if(this.Al!==b||this.zl!==a||this.As!==g){this.Al=b;this.zl=a;this.As=g;var c,h,d,q,l,B=0,f=1,t=this.Ru,v=this.Qb;0!==g&&(B=Math.sin(g),f=Math.cos(g));g=0;for(d=this.$d;g<d;g++)c=2*g,h=c+1,q=t[c]*b,l=t[h]*a,v[c]=q*f-l*B,v[h]=l*f+q*B;this.Ma()}};f.prototype.$b=function(b,a){var g=this.Qb;if(b===g[0]&&a===g[1])return!0;var c,h,d,q=this.$d,l=this.ul-110,B=this.xl-101,f=this.wl+131,t=this.tl+120,
v,e,u=0,k=0;for(c=0;c<q;c++)h=2*c,d=(c+1)%q*2,v=g[h],h=g[h+1],e=g[d],d=g[d+1],va(l,B,b,a,v,h,e,d)&&u++,va(f,t,b,a,v,h,e,d)&&k++;return 1===u%2||1===k%2};f.prototype.Ij=function(b,a,g){var c=b.Qb,h=this.Qb;if(this.$b(c[0]+a,c[1]+g)||b.$b(h[0]-a,h[1]-g))return!0;var d,q,l,B,f,t,v,e,u,k,n,L;d=0;for(B=this.$d;d<B;d++)for(q=2*d,l=(d+1)%B*2,e=h[q],q=h[q+1],u=h[l],k=h[l+1],l=0,v=b.$d;l<v;l++)if(f=2*l,t=(l+1)%v*2,n=c[f]+a,f=c[f+1]+g,L=c[t]+a,t=c[t+1]+g,va(e,q,u,k,n,f,L,t))return!0;return!1};mb=f;a.prototype.eg=
function(b,a,g){var c;c=this.cells[b];return c?(c=c[a])?c:g?(c=d(this,b,a),this.cells[b][a]=c):null:g?(c=d(this,b,a),this.cells[b]={},this.cells[b][a]=c):null};a.prototype.Dc=function(b){return ta(b/this.Io)};a.prototype.Ec=function(b){return ta(b/this.Ho)};a.prototype.update=function(b,a,g){var c,h,d,q,l;if(a)for(c=a.left,h=a.right;c<=h;++c)for(d=a.top,q=a.bottom;d<=q;++d)if(!g||!g.$b(c,d))if(l=this.eg(c,d,!1))l.remove(b),l.hf()&&(l.Vb.clear(),1E3>C.length&&C.push(l),this.cells[c][d]=null);if(g)for(c=
g.left,h=g.right;c<=h;++c)for(d=g.top,q=g.bottom;d<=q;++d)a&&a.$b(c,d)||this.eg(c,d,!0).up(b)};a.prototype.mn=function(b,a){var g,c,h,d,q,l;g=this.Dc(b.left);h=this.Ec(b.top);c=this.Dc(b.right);for(q=this.Ec(b.bottom);g<=c;++g)for(d=h;d<=q;++d)(l=this.eg(g,d,!1))&&l.dump(a)};nb=a;c.prototype.eg=function(b,a,g){var c;c=this.cells[b];return c?(c=c[a])?c:g?(c=h(this,b,a),this.cells[b][a]=c):null:g?(c=h(this,b,a),this.cells[b]={},this.cells[b][a]=c):null};c.prototype.Dc=function(b){return ta(b/this.Io)};
c.prototype.Ec=function(b){return ta(b/this.Ho)};c.prototype.update=function(b,a,g){var c,h,d,q,l;if(a)for(c=a.left,h=a.right;c<=h;++c)for(d=a.top,q=a.bottom;d<=q;++d)if(!g||!g.$b(c,d))if(l=this.eg(c,d,!1))l.remove(b),l.hf()&&(l.reset(),1E3>w.length&&w.push(l),this.cells[c][d]=null);if(g)for(c=g.left,h=g.right;c<=h;++c)for(d=g.top,q=g.bottom;d<=q;++d)a&&a.$b(c,d)||this.eg(c,d,!0).up(b)};c.prototype.mn=function(b,a,g,c,d){var h,q;b=this.Dc(b);a=this.Ec(a);g=this.Dc(g);for(h=this.Ec(c);b<=g;++b)for(c=
a;c<=h;++c)(q=this.eg(b,c,!1))&&q.dump(d)};c.prototype.FC=function(b){var a,g,c,h,d;a=b.left;c=b.top;g=b.right;for(h=b.bottom;a<=g;++a)for(b=c;b<=h;++b)if(d=this.eg(a,b,!1))d.ji=!1};qb=c;var C=[];b.prototype.hf=function(){return this.Vb.hf()};b.prototype.up=function(b){this.Vb.add(b)};b.prototype.remove=function(b){this.Vb.remove(b)};b.prototype.dump=function(b){Ga(b,this.Vb.je())};ba=b;var w=[];g.prototype.hf=function(){if(!this.Vb.length)return!0;if(this.Vb.length>this.Ee.count())return!1;this.Zo();
return!0};g.prototype.up=function(b){this.Ee.contains(b)?(this.Ee.remove(b),this.Ee.hf()&&(this.gj=!1)):this.Vb.length?(this.Vb[this.Vb.length-1].zd()>b.zd()&&(this.ji=!1),this.Vb.push(b)):(this.Vb.push(b),this.ji=!0)};g.prototype.remove=function(b){this.Ee.add(b);this.gj=!0;30<=this.Ee.count()&&this.Zo()};g.prototype.Zo=function(){this.gj&&(this.Ee.count()===this.Vb.length?this.reset():(hb(this.Vb,this.Ee),this.Ee.clear(),this.gj=!1))};g.prototype.SA=function(){this.ji||(this.Vb.sort(l),this.ji=
!0)};g.prototype.reset=function(){A(this.Vb);this.ji=!0;this.Ee.clear();this.gj=!1};g.prototype.dump=function(b){this.Zo();this.SA();this.Vb.length&&b.push(this.Vb)};ea=g;var y="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");rb=function(b){return 0>=b||11<=b?"source-over":y[b-1]};sb=function(b,a,g){if(g)switch(b.ic=g.ONE,b.cc=g.ONE_MINUS_SRC_ALPHA,a){case 1:b.ic=g.ONE;b.cc=g.ONE;break;case 3:b.ic=g.ONE;b.cc=g.ZERO;break;
case 4:b.ic=g.ONE_MINUS_DST_ALPHA;b.cc=g.ONE;break;case 5:b.ic=g.DST_ALPHA;b.cc=g.ZERO;break;case 6:b.ic=g.ZERO;b.cc=g.SRC_ALPHA;break;case 7:b.ic=g.ONE_MINUS_DST_ALPHA;b.cc=g.ZERO;break;case 8:b.ic=g.ZERO;b.cc=g.ONE_MINUS_SRC_ALPHA;break;case 9:b.ic=g.DST_ALPHA;b.cc=g.ONE_MINUS_SRC_ALPHA;break;case 10:b.ic=g.ONE_MINUS_DST_ALPHA,b.cc=g.SRC_ALPHA}};tb=function(b){return Math.round(1E6*b)/1E6};ub=function(b,a){return"string"!==typeof b||"string"!==typeof a||b.length!==a.length?!1:b===a?!0:b.toLowerCase()===
a.toLowerCase()};vb=function(b){b=b.target;return!b||b===document||b===window||document&&document.body&&b===document.body||ub(b.tagName,"canvas")?!0:!1}})();var sc="undefined"!==typeof Float32Array?Float32Array:Array;function tc(e){var m=new sc(3);e&&(m[0]=e[0],m[1]=e[1],m[2]=e[2]);return m}
function uc(e){var m=new sc(16);e&&(m[0]=e[0],m[1]=e[1],m[2]=e[2],m[3]=e[3],m[4]=e[4],m[5]=e[5],m[6]=e[6],m[7]=e[7],m[8]=e[8],m[9]=e[9],m[10]=e[10],m[11]=e[11],m[12]=e[12],m[13]=e[13],m[14]=e[14],m[15]=e[15]);return m}function vc(e,m){m[0]=e[0];m[1]=e[1];m[2]=e[2];m[3]=e[3];m[4]=e[4];m[5]=e[5];m[6]=e[6];m[7]=e[7];m[8]=e[8];m[9]=e[9];m[10]=e[10];m[11]=e[11];m[12]=e[12];m[13]=e[13];m[14]=e[14];m[15]=e[15]}
function wc(e,m){var p=m[0],n=m[1];m=m[2];e[0]*=p;e[1]*=p;e[2]*=p;e[3]*=p;e[4]*=n;e[5]*=n;e[6]*=n;e[7]*=n;e[8]*=m;e[9]*=m;e[10]*=m;e[11]*=m}
function xc(e,m,p,n){n||(n=uc());var r,k,f,a,c,d,b,h,g=e[0],l=e[1];e=e[2];k=p[0];f=p[1];r=p[2];p=m[1];d=m[2];g===m[0]&&l===p&&e===d?(e=n,e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1):(p=g-m[0],d=l-m[1],b=e-m[2],h=1/Math.sqrt(p*p+d*d+b*b),p*=h,d*=h,b*=h,m=f*b-r*d,r=r*p-k*b,k=k*d-f*p,(h=Math.sqrt(m*m+r*r+k*k))?(h=1/h,m*=h,r*=h,k*=h):k=r=m=0,f=d*k-b*r,a=b*m-p*k,c=p*r-d*m,(h=Math.sqrt(f*f+a*a+c*c))?(h=1/h,f*=h,a*=h,c*=h):c=a=f=0,
n[0]=m,n[1]=f,n[2]=p,n[3]=0,n[4]=r,n[5]=a,n[6]=d,n[7]=0,n[8]=k,n[9]=c,n[10]=b,n[11]=0,n[12]=-(m*g+r*l+k*e),n[13]=-(f*g+a*l+c*e),n[14]=-(p*g+d*l+b*e),n[15]=1)}
(function(){function e(a,c,d){this.we=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Wa=!!d;this.tm=this.Kj=!1;this.No=0;this.Tn=1;this.cr=1E3;this.pE=(this.cr-this.Tn)/32768;this.Fo=tc([0,0,100]);this.Wt=tc([0,0,0]);this.Fv=tc([0,1,0]);this.Vk=tc([1,1,1]);this.Qs=!0;this.Om=uc();this.kd=uc();this.Hp=uc();this.Mo=uc();this.N=a;this.version=0===this.N.getParameter(this.N.VERSION).indexOf("WebGL 2")?2:1;this.ut()}function m(a,c,d){this.N=a;this.Fk=
c;this.name=d;this.Bd=a.getAttribLocation(c,"aPos");this.rg=a.getAttribLocation(c,"aTex");this.Ut=a.getUniformLocation(c,"matP");this.Km=a.getUniformLocation(c,"matMV");this.qi=a.getUniformLocation(c,"opacity");this.Np=a.getUniformLocation(c,"colorFill");this.Vt=a.getUniformLocation(c,"samplerFront");this.Zj=a.getUniformLocation(c,"samplerBack");this.jh=a.getUniformLocation(c,"destStart");this.ih=a.getUniformLocation(c,"destEnd");this.ak=a.getUniformLocation(c,"seconds");this.Pp=a.getUniformLocation(c,
"pixelWidth");this.Op=a.getUniformLocation(c,"pixelHeight");this.Yj=a.getUniformLocation(c,"layerScale");this.Xj=a.getUniformLocation(c,"layerAngle");this.bk=a.getUniformLocation(c,"viewOrigin");this.$j=a.getUniformLocation(c,"scrollPos");this.cC=!!(this.Pp||this.Op||this.ak||this.Zj||this.jh||this.ih||this.Yj||this.Xj||this.bk||this.$j);this.du=this.eu=-999;this.Nm=1;this.$t=this.Zt=0;this.bu=this.Yt=this.Xt=1;this.hu=this.gu=this.fu=this.ju=this.iu=this.au=0;this.Gp=[];this.cu=uc();this.qi&&a.uniform1f(this.qi,
1);this.Np&&a.uniform4f(this.Np,1,1,1,1);this.Vt&&a.uniform1i(this.Vt,0);this.Zj&&a.uniform1i(this.Zj,1);this.jh&&a.uniform2f(this.jh,0,0);this.ih&&a.uniform2f(this.ih,1,1);this.Yj&&a.uniform1f(this.Yj,1);this.Xj&&a.uniform1f(this.Xj,0);this.bk&&a.uniform2f(this.bk,0,0);this.$j&&a.uniform2f(this.$j,0,0);this.ak&&a.uniform1f(this.ak,0);this.Tg=!1}function p(a,c){return a[0]===c[0]&&a[1]===c[1]&&a[2]===c[2]&&a[3]===c[3]&&a[4]===c[4]&&a[5]===c[5]&&a[6]===c[6]&&a[7]===c[7]&&a[8]===c[8]&&a[9]===c[9]&&
a[10]===c[10]&&a[11]===c[11]&&a[12]===c[12]&&a[13]===c[13]&&a[14]===c[14]&&a[15]===c[15]}function n(a,c){this.type=a;this.J=c;this.N=c.N;this.ve=this.Cc=this.Eu=0;this.ua=this.Hd=null;this.lv=[]}var r=uc();e.prototype.ut=function(){var a=this.N,c;this.Pt=1;this.ah=this.mg=null;this.Ll=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.Wa?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.Qt=a.ONE;this.Ot=a.ONE_MINUS_SRC_ALPHA;this.Qn=new Float32Array(8E3*(this.Wa?3:2));this.En=new Float32Array(16E3);this.Ou=new Float32Array(32E3);this.jq=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.jq);a.bufferData(a.ARRAY_BUFFER,this.Ou.byteLength,a.DYNAMIC_DRAW);this.Uk=Array(4);this.Kk=Array(4);for(c=0;4>c;c++)this.Uk[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Uk[c]),a.bufferData(a.ARRAY_BUFFER,this.Qn.byteLength,a.DYNAMIC_DRAW),this.Kk[c]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.Kk[c]),a.bufferData(a.ARRAY_BUFFER,this.En.byteLength,a.DYNAMIC_DRAW);this.We=0;this.fC=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.fC);for(var d=new Uint16Array(12E3),b=c=0;12E3>c;)d[c++]=b,d[c++]=b+1,d[c++]=b+2,d[c++]=b,d[c++]=b+2,d[c++]=b+3,b+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,d,a.STATIC_DRAW);this.kq=this.Mi=this.Gf=0;this.qb=[];c=this.Wa?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";d=this.nj({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},c,"<default>");this.qb.push(d);d=this.nj({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.qb.push(d);d=this.nj({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},c,"<earlyz>");this.qb.push(d);d=this.nj({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
c,"<fill>");this.qb.push(d);for(var h in yc)yc.hasOwnProperty(h)&&this.qb.push(this.nj(yc[h],c,h));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Pf=[];this.Te=0;this.oc=!1;this.Hs=this.Uj=-1;this.Rh=null;this.Xo=a.createFramebuffer();this.Ql=this.nn=null;this.vs=!1;this.Wa&&(this.Ql=a.createRenderbuffer());this.yg=tc([0,0,0]);this.ku=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.ku&&(this.ku=2048);this.Oc(0)};m.prototype.Uq=function(a){p(this.cu,a)||(vc(a,this.cu),this.N.uniformMatrix4fv(this.Km,
!1,a))};e.prototype.nj=function(a,c,d){var b=this.N,h=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(h,a.src);b.compileShader(h);if(!b.getShaderParameter(h,b.COMPILE_STATUS))throw a=b.getShaderInfoLog(h),b.deleteShader(h),Error("error compiling fragment shader: "+a);var g=b.createShader(b.VERTEX_SHADER);b.shaderSource(g,c);b.compileShader(g);if(!b.getShaderParameter(g,b.COMPILE_STATUS))throw a=b.getShaderInfoLog(g),b.deleteShader(h),b.deleteShader(g),Error("error compiling vertex shader: "+a);c=
b.createProgram();b.attachShader(c,h);b.attachShader(c,g);b.linkProgram(c);if(!b.getProgramParameter(c,b.LINK_STATUS))throw a=b.getProgramInfoLog(c),b.deleteShader(h),b.deleteShader(g),b.deleteProgram(c),Error("error linking shader program: "+a);b.useProgram(c);b.deleteShader(h);b.deleteShader(g);h=new m(b,c,d);h.rc=a.rc||0;h.sc=a.sc||0;h.Hc=!!a.Hc;h.eb=!!a.eb;h.Fc=!!a.Fc;h.W=a.W||[];a=0;for(g=h.W.length;a<g;a++)h.W[a][1]=b.getUniformLocation(c,h.W[a][0]),h.Gp.push(0),b.uniform1f(h.W[a][1],0);return h};
e.prototype.mp=function(a){var c,d;c=0;for(d=this.qb.length;c<d;c++)if(this.qb[c].name===a)return c;return-1};e.prototype.Qu=function(a,c,d){var b=this.kd,h=this.Om,g=[0,0,0,0,0,0,0,0];g[0]=b[0]*a+b[4]*c+b[12];g[1]=b[1]*a+b[5]*c+b[13];g[2]=b[2]*a+b[6]*c+b[14];g[3]=b[3]*a+b[7]*c+b[15];g[4]=h[0]*g[0]+h[4]*g[1]+h[8]*g[2]+h[12]*g[3];g[5]=h[1]*g[0]+h[5]*g[1]+h[9]*g[2]+h[13]*g[3];g[6]=h[2]*g[0]+h[6]*g[1]+h[10]*g[2]+h[14]*g[3];g[7]=-g[2];0!==g[7]&&(g[7]=1/g[7],g[4]*=g[7],g[5]*=g[7],g[6]*=g[7],d[0]=(.5*g[4]+
.5)*this.width,d[1]=(.5*g[5]+.5)*this.height)};e.prototype.yf=function(a,c,d){if(this.width!==a||this.height!==c||d){this.$f();d=this.N;this.width=a;this.height=c;d.viewport(0,0,a,c);xc(this.Fo,this.Wt,this.Fv,this.kd);if(this.Wa){var b=-a/2;a=a/2;var h=c/2;c=-c/2;var g=this.Tn,l=this.cr,f=this.Om;f||(f=uc());var v=a-b,e=c-h,q=l-g;f[0]=2/v;f[1]=0;f[2]=0;f[3]=0;f[4]=0;f[5]=2/e;f[6]=0;f[7]=0;f[8]=0;f[9]=0;f[10]=-2/q;f[11]=0;f[12]=-(b+a)/v;f[13]=-(c+h)/e;f[14]=-(l+g)/q;f[15]=1;this.Vk[0]=1;this.Vk[1]=
1}else c=a/c,b=this.Tn,a=this.cr,f=this.Om,l=b*Math.tan(45*Math.PI/360),c*=l,h=-c,g=-l,f||(f=uc()),v=c-h,e=l-g,q=a-b,f[0]=2*b/v,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=2*b/e,f[6]=0,f[7]=0,f[8]=(c+h)/v,f[9]=(l+g)/e,f[10]=-(a+b)/q,f[11]=-1,f[12]=0,f[13]=0,f[14]=-(a*b*2)/q,f[15]=0,b=[0,0],a=[0,0],this.Qu(0,0,b),this.Qu(1,1,a),this.Vk[0]=1/(a[0]-b[0]),this.Vk[1]=-1/(a[1]-b[1]);b=0;for(a=this.qb.length;b<a;b++)h=this.qb[b],h.Tg=!1,h.Ut&&(d.useProgram(h.Fk),d.uniformMatrix4fv(h.Ut,!1,this.Om));d.useProgram(this.qb[this.Uj].Fk);
d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE1);d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE0);this.ah=this.mg=null;this.Ql&&(d.bindFramebuffer(d.FRAMEBUFFER,this.Xo),d.bindRenderbuffer(d.RENDERBUFFER,this.Ql),d.renderbufferStorage(d.RENDERBUFFER,d.DEPTH_COMPONENT16,this.width,this.height),this.vs||(d.framebufferRenderbuffer(d.FRAMEBUFFER,d.DEPTH_ATTACHMENT,d.RENDERBUFFER,this.Ql),this.vs=!0),d.bindRenderbuffer(d.RENDERBUFFER,null),d.bindFramebuffer(d.FRAMEBUFFER,null),
this.nn=null)}};e.prototype.Dd=function(){xc(this.Fo,this.Wt,this.Fv,this.kd);wc(this.kd,this.Vk)};e.prototype.translate=function(a,c){if(0!==a||0!==c){this.yg[0]=a;this.yg[1]=c;this.yg[2]=0;var d=this.kd,b=this.yg,h=b[0],g=b[1],b=b[2];d[12]=d[0]*h+d[4]*g+d[8]*b+d[12];d[13]=d[1]*h+d[5]*g+d[9]*b+d[13];d[14]=d[2]*h+d[6]*g+d[10]*b+d[14];d[15]=d[3]*h+d[7]*g+d[11]*b+d[15]}};e.prototype.scale=function(a,c){if(1!==a||1!==c)this.yg[0]=a,this.yg[1]=c,this.yg[2]=1,wc(this.kd,this.yg)};e.prototype.qn=function(a){if(0!==
a){var c=this.kd,d,b=Math.sin(a);a=Math.cos(a);var h=c[0],g=c[1],l=c[2],f=c[3],v=c[4],e=c[5],q=c[6],u=c[7];d?c!==d&&(d[8]=c[8],d[9]=c[9],d[10]=c[10],d[11]=c[11],d[12]=c[12],d[13]=c[13],d[14]=c[14],d[15]=c[15]):d=c;d[0]=h*a+v*b;d[1]=g*a+e*b;d[2]=l*a+q*b;d[3]=f*a+u*b;d[4]=h*-b+v*a;d[5]=g*-b+e*a;d[6]=l*-b+q*a;d[7]=f*-b+u*a}};e.prototype.rd=function(){if(!p(this.Hp,this.kd)){var a=this.bd();a.type=5;a.ua?vc(this.kd,a.ua):a.ua=uc(this.kd);vc(this.kd,this.Hp);this.oc=!1}};e.prototype.vn=function(a){this.Wa&&
(32760<a&&(a=32760),this.No=this.Fo[2]-this.Tn-a*this.pE)};n.prototype.CA=function(){var a=this.N,c=this.J;0!==this.Cc?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,c.Xo),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),c.tm=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),c.tm=!1)};n.prototype.GA=function(){this.N.bindTexture(this.N.TEXTURE_2D,
this.Hd)};n.prototype.HA=function(){var a=this.N;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Hd);a.activeTexture(a.TEXTURE0)};n.prototype.DA=function(){var a=this.Eu,c=this.J;c.Ll=a;c=c.Rh;c.qi&&c.Nm!==a&&(c.Nm=a,this.N.uniform1f(c.qi,a))};n.prototype.xA=function(){this.N.drawElements(this.N.TRIANGLES,this.ve,this.N.UNSIGNED_SHORT,this.Cc)};n.prototype.zA=function(){this.N.blendFunc(this.Cc,this.ve)};n.prototype.IA=function(){var a,c,d,b=this.J.qb,h=this.J.Hs;a=0;for(c=b.length;a<
c;a++)d=b[a],a===h&&d.Km?(d.Uq(this.ua),d.Tg=!0):d.Tg=!1;vc(this.ua,this.J.Mo)};n.prototype.yA=function(){var a=this.N,c=this.J;this.Hd?(c.ah===this.Hd&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),c.ah=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,c.Xo),c.tm||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Hd,0)):(c.Wa||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};
n.prototype.uA=function(){var a=this.N,c=this.Cc;0===c?(a.clearColor(this.ua[0],this.ua[1],this.ua[2],this.ua[3]),a.clear(a.COLOR_BUFFER_BIT)):1===c?(a.enable(a.SCISSOR_TEST),a.scissor(this.ua[0],this.ua[1],this.ua[2],this.ua[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};n.prototype.BA=function(){var a=this.N;0!==this.Cc?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};n.prototype.wA=function(){var a=this.N,c=this.J;c.Wa&&a.disable(a.DEPTH_TEST);
var d=c.qb[1];a.useProgram(d.Fk);!d.Tg&&d.Km&&(d.Uq(c.Mo),d.Tg=!0);a.enableVertexAttribArray(d.Bd);a.bindBuffer(a.ARRAY_BUFFER,c.jq);a.vertexAttribPointer(d.Bd,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Cc/4,this.ve);d=c.Rh;a.useProgram(d.Fk);0<=d.Bd&&(a.enableVertexAttribArray(d.Bd),a.bindBuffer(a.ARRAY_BUFFER,c.Uk[c.We]),a.vertexAttribPointer(d.Bd,c.Wa?3:2,a.FLOAT,!1,0,0));0<=d.rg&&(a.enableVertexAttribArray(d.rg),a.bindBuffer(a.ARRAY_BUFFER,c.Kk[c.We]),a.vertexAttribPointer(d.rg,2,a.FLOAT,!1,
0,0));c.Wa&&a.enable(a.DEPTH_TEST)};n.prototype.EA=function(){var a=this.N,c=this.J,d=c.qb[this.Cc];c.Hs=this.Cc;c.Rh=d;a.useProgram(d.Fk);!d.Tg&&d.Km&&(d.Uq(c.Mo),d.Tg=!0);d.qi&&d.Nm!==c.Ll&&(d.Nm=c.Ll,a.uniform1f(d.qi,c.Ll));0<=d.Bd&&(a.enableVertexAttribArray(d.Bd),a.bindBuffer(a.ARRAY_BUFFER,c.Uk[c.We]),a.vertexAttribPointer(d.Bd,c.Wa?3:2,a.FLOAT,!1,0,0));0<=d.rg&&(a.enableVertexAttribArray(d.rg),a.bindBuffer(a.ARRAY_BUFFER,c.Kk[c.We]),a.vertexAttribPointer(d.rg,2,a.FLOAT,!1,0,0))};n.prototype.AA=
function(){var a=this.ua;this.N.uniform4f(this.J.Rh.Np,a[0],a[1],a[2],a[3])};n.prototype.FA=function(){var a,c,d=this.J.Rh,b=this.N;a=this.ua;d.Zj&&this.J.ah!==this.Hd&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,this.Hd),this.J.ah=this.Hd,b.activeTexture(b.TEXTURE0));var h=a[0];d.Pp&&h!==d.eu&&(d.eu=h,b.uniform1f(d.Pp,h));h=a[1];d.Op&&h!==d.du&&(d.du=h,b.uniform1f(d.Op,h));h=a[2];c=a[3];!d.jh||h===d.Zt&&c===d.$t||(d.Zt=h,d.$t=c,b.uniform2f(d.jh,h,c));h=a[4];c=a[5];!d.ih||h===d.Xt&&c===
d.Yt||(d.Xt=h,d.Yt=c,b.uniform2f(d.ih,h,c));h=a[6];d.Yj&&h!==d.bu&&(d.bu=h,b.uniform1f(d.Yj,h));h=a[7];d.Xj&&h!==d.au&&(d.au=h,b.uniform1f(d.Xj,h));h=a[8];c=a[9];!d.bk||h===d.iu&&c===d.ju||(d.iu=h,d.ju=c,b.uniform2f(d.bk,h,c));h=a[10];c=a[11];!d.$j||h===d.fu&&c===d.gu||(d.fu=h,d.gu=c,b.uniform2f(d.$j,h,c));h=a[12];d.ak&&h!==d.hu&&(d.hu=h,b.uniform1f(d.ak,h));if(d.W.length)for(a=0,c=d.W.length;a<c;a++)h=this.lv[a],h!==d.Gp[a]&&(d.Gp[a]=h,b.uniform1f(d.W[a][1],h))};e.prototype.bd=function(){this.Te===
this.Pf.length&&this.Pf.push(new n(0,this));return this.Pf[this.Te++]};e.prototype.$f=function(){if(0!==this.Te&&!this.N.isContextLost()){var a=this.N;0<this.kq&&(a.bindBuffer(a.ARRAY_BUFFER,this.jq),a.bufferSubData(a.ARRAY_BUFFER,0,this.Ou.subarray(0,this.kq)),c&&0<=c.Bd&&"<point>"===c.name&&a.vertexAttribPointer(c.Bd,4,a.FLOAT,!1,0,0));if(0<this.Gf){var c=this.Rh;a.bindBuffer(a.ARRAY_BUFFER,this.Uk[this.We]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Qn.subarray(0,this.Gf));c&&0<=c.Bd&&"<point>"!==c.name&&
a.vertexAttribPointer(c.Bd,this.Wa?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Kk[this.We]);a.bufferSubData(a.ARRAY_BUFFER,0,this.En.subarray(0,this.Mi));c&&0<=c.rg&&"<point>"!==c.name&&a.vertexAttribPointer(c.rg,2,a.FLOAT,!1,0,0)}for(var d,a=0,c=this.Te;a<c;a++)switch(d=this.Pf[a],d.type){case 1:d.xA();break;case 2:d.GA();break;case 3:d.DA();break;case 4:d.zA();break;case 5:d.IA();break;case 6:d.yA();break;case 7:d.uA();break;case 8:d.wA();break;case 9:d.EA();break;case 10:d.FA();break;
case 11:d.HA();break;case 12:d.AA();break;case 13:d.BA();break;case 14:d.CA()}this.kq=this.Mi=this.Gf=this.Te=0;this.tm=this.oc=!1;this.We++;4<=this.We&&(this.We=0)}};e.prototype.xf=function(a){if(a!==this.Pt&&!this.Kj){var c=this.bd();c.type=3;this.Pt=c.Eu=a;this.oc=!1}};e.prototype.pc=function(a){if(a!==this.mg){var c=this.bd();c.type=2;this.mg=c.Hd=a;this.oc=!1}};e.prototype.wf=function(a,c){if((a!==this.Qt||c!==this.Ot)&&!this.Kj){var d=this.bd();d.type=4;d.Cc=a;d.ve=c;this.Qt=a;this.Ot=c;this.oc=
!1}};e.prototype.Zu=function(){this.wf(this.N.ONE,this.N.ONE_MINUS_SRC_ALPHA)};e.prototype.uh=function(a,c,d,b,h,g,l,f){15992<=this.Gf&&this.$f();var v=this.Gf,e=this.Mi,q=this.Qn,u=this.En,k=this.No;if(this.oc)this.Pf[this.Te-1].ve+=6;else{var n=this.bd();n.type=1;n.Cc=this.Wa?v:v/2*3;n.ve=6;this.oc=!0}this.Wa?(q[v++]=a,q[v++]=c,q[v++]=k,q[v++]=d,q[v++]=b,q[v++]=k,q[v++]=h,q[v++]=g,q[v++]=k,q[v++]=l,q[v++]=f,q[v++]=k):(q[v++]=a,q[v++]=c,q[v++]=d,q[v++]=b,q[v++]=h,q[v++]=g,q[v++]=l,q[v++]=f);u[e++]=
0;u[e++]=0;u[e++]=1;u[e++]=0;u[e++]=1;u[e++]=1;u[e++]=0;u[e++]=1;this.Gf=v;this.Mi=e};e.prototype.ae=function(a,c,d,b,h,g,l,f,v){15992<=this.Gf&&this.$f();var e=this.Gf,q=this.Mi,u=this.Qn,k=this.En,n=this.No;if(this.oc)this.Pf[this.Te-1].ve+=6;else{var r=this.bd();r.type=1;r.Cc=this.Wa?e:e/2*3;r.ve=6;this.oc=!0}var r=v.left,m=v.top,p=v.right;v=v.bottom;this.Wa?(u[e++]=a,u[e++]=c,u[e++]=n,u[e++]=d,u[e++]=b,u[e++]=n,u[e++]=h,u[e++]=g,u[e++]=n,u[e++]=l,u[e++]=f,u[e++]=n):(u[e++]=a,u[e++]=c,u[e++]=d,
u[e++]=b,u[e++]=h,u[e++]=g,u[e++]=l,u[e++]=f);k[q++]=r;k[q++]=m;k[q++]=p;k[q++]=m;k[q++]=p;k[q++]=v;k[q++]=r;k[q++]=v;this.Gf=e;this.Mi=q};e.prototype.Oc=function(a){if(this.Uj!==a){if(!this.qb[a]){if(0===this.Uj)return;a=0}var c=this.bd();c.type=9;this.Uj=c.Cc=a;this.oc=!1}};e.prototype.vk=function(a){a=this.qb[a];return!(!a.jh&&!a.ih)};e.prototype.oq=function(a){a=this.qb[a];return!!(a.jh||a.ih||a.Hc)};e.prototype.nq=function(a){return this.qb[a].eb};e.prototype.mD=function(a){a=this.qb[a];return 0!==
a.rc||0!==a.sc};e.prototype.KB=function(a){return this.qb[a].rc};e.prototype.LB=function(a){return this.qb[a].sc};e.prototype.nt=function(a,c){return this.qb[a].W[c][2]};e.prototype.jn=function(a){return this.qb[a].Fc};e.prototype.Ii=function(a,c,d,b,h,g,l,f,e,k,q,u,n,r,m){var p=this.qb[this.Uj],C,w;if(p.cC||m.length){C=this.bd();C.type=10;C.ua?vc(this.kd,C.ua):C.ua=uc();w=C.ua;w[0]=c;w[1]=d;w[2]=b;w[3]=h;w[4]=g;w[5]=l;w[6]=f;w[7]=e;w[8]=k;w[9]=q;w[10]=u;w[11]=n;w[12]=r;p.Zj?C.Hd=a:C.Hd=null;if(m.length)for(d=
C.lv,d.length=m.length,a=0,c=m.length;a<c;a++)d[a]=m[a];this.oc=!1}};e.prototype.clear=function(a,c,d,b){var h=this.bd();h.type=7;h.Cc=0;h.ua||(h.ua=uc());h.ua[0]=a;h.ua[1]=c;h.ua[2]=d;h.ua[3]=b;this.oc=!1};e.prototype.clearRect=function(a,c,d,b){if(!(0>d||0>b)){var h=this.bd();h.type=7;h.Cc=1;h.ua||(h.ua=uc());h.ua[0]=a;h.ua[1]=c;h.ua[2]=d;h.ua[3]=b;this.oc=!1}};e.prototype.cv=function(a){if(this.Wa&&(a=!!a,this.Kj!==a)){var c=this.bd();c.type=14;c.Cc=a?1:0;this.oc=!1;this.Kj=a;this.nn=null;this.Kj?
this.Oc(2):this.Oc(0)}};e.prototype.av=function(a){if(this.Wa){var c=this.bd();c.type=13;c.Cc=a?1:0;this.oc=!1}};e.prototype.dt=function(){vc(this.Hp,r);this.Dd();this.rd();var a=this.width/2,c=this.height/2;this.uh(-a,c,a,c,a,-c,-a,-c);vc(r,this.kd);this.rd()};e.prototype.$u=function(a,c,d){this.Oc(3);var b=this.bd();b.type=12;b.ua||(b.ua=uc());b.ua[0]=a;b.ua[1]=c;b.ua[2]=d;b.ua[3]=1;this.oc=!1};e.prototype.QD=function(){this.Oc(0)};e.prototype.yD=function(){this.Oc(2)};e.prototype.jD=function(){this.$f();
this.N.flush()};var k=[],f={};e.prototype.lA=function(){A(k);f={}};e.prototype.ng=function(a,c,d,b){c=!!c;d=!!d;var h=a.src+","+c+","+d+(c?",undefined":""),g=null;if("undefined"!==typeof a.src&&f.hasOwnProperty(h))return g=f[h],g.yl++,g;this.$f();var l=this.N,t=ma(a.width)&&ma(a.height),g=l.createTexture();l.bindTexture(l.TEXTURE_2D,g);l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var e=l.RGBA,n=l.RGBA,q=l.UNSIGNED_BYTE;if(b&&!this.we)switch(b){case 1:n=e=l.RGB;break;case 2:q=l.UNSIGNED_SHORT_4_4_4_4;
break;case 3:q=l.UNSIGNED_SHORT_5_5_5_1;break;case 4:n=e=l.RGB,q=l.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!t&&c){b=document.createElement("canvas");b.width=na(a.width);b.height=na(a.height);var u=b.getContext("2d");"undefined"!==typeof u.imageSmoothingEnabled?u.imageSmoothingEnabled=d:(u.webkitImageSmoothingEnabled=d,u.mozImageSmoothingEnabled=d,u.msImageSmoothingEnabled=d);u.drawImage(a,0,0,a.width,a.height,0,0,b.width,b.height);l.texImage2D(l.TEXTURE_2D,0,e,n,q,b)}else l.texImage2D(l.TEXTURE_2D,
0,e,n,q,a);c?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.REPEAT),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.REPEAT)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE));d?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.LINEAR),(t||2<=this.version)&&this.Qs?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR_MIPMAP_LINEAR),l.generateMipmap(l.TEXTURE_2D)):l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,
l.LINEAR)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.NEAREST),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.NEAREST));l.bindTexture(l.TEXTURE_2D,null);this.mg=null;g.Gg=a.width;g.Fg=a.height;g.yl=1;g.zs=h;k.push(g);return f[h]=g};e.prototype.Gc=function(a,c,d,b){this.$f();var h=this.N;this.we&&(b=!1);var g=h.createTexture();h.bindTexture(h.TEXTURE_2D,g);h.texImage2D(h.TEXTURE_2D,0,h.RGBA,a,c,0,h.RGBA,b?h.UNSIGNED_SHORT_4_4_4_4:h.UNSIGNED_BYTE,null);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,
h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,d?h.LINEAR:h.NEAREST);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,d?h.LINEAR:h.NEAREST);h.bindTexture(h.TEXTURE_2D,null);this.mg=null;g.Gg=a;g.Fg=c;k.push(g);return g};e.prototype.Xq=function(a,c,d){this.$f();var b=this.N;this.we&&(d=!1);b.bindTexture(b.TEXTURE_2D,c);b.pixelStorei(b.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{b.texImage2D(b.TEXTURE_2D,0,b.RGBA,b.RGBA,
d?b.UNSIGNED_SHORT_4_4_4_4:b.UNSIGNED_BYTE,a)}catch(h){console&&console.error&&console.error("Error updating WebGL texture: ",h)}b.bindTexture(b.TEXTURE_2D,null);this.mg=null};e.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.yl&&1<a.yl?a.yl--:(this.$f(),a===this.mg&&(this.N.bindTexture(this.N.TEXTURE_2D,null),this.mg=null),a===this.ah&&(this.N.activeTexture(this.N.TEXTURE1),this.N.bindTexture(this.N.TEXTURE_2D,null),this.N.activeTexture(this.N.TEXTURE0),this.ah=null),La(k,a),"undefined"!==
typeof a.zs&&delete f[a.zs],this.N.deleteTexture(a)))};e.prototype.Ed=function(a){if(a!==this.nn){var c=this.bd();c.type=6;this.nn=c.Hd=a;this.oc=!1}};wb=e})();
(function(){function e(b){if(b&&(b.getContext||b.dc)&&!b.c2runtime){b.c2runtime=this;var a=this;this.Wc=(this.um=/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.Rb=!!b.dc;this.Dt="undefined"!==typeof window.AppMobi||
this.Rb;this.Ic=!!window.c2cocoonjs;this.Ad=!!window.c2ejecta;this.Ic&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.Ad&&(document.addEventListener("pagehide",function(){a.setSuspended(!0)}),document.addEventListener("pageshow",function(){a.setSuspended(!1)}),document.addEventListener("resize",function(){a.setSize(window.innerWidth,window.innerHeight)}));this.G=this.Rb||this.Ic||this.Ad;this.di=
/edge\//i.test(navigator.userAgent);this.we=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.di;this.Gt=/tizen/i.test(navigator.userAgent);this.Jj=/android/i.test(navigator.userAgent)&&!this.Gt&&!this.we&&!this.di;this.Lt=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.we&&!this.di;this.tC=/ipad/i.test(navigator.userAgent);this.li=this.Lt||this.tC||this.Ad;this.xp=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.we&&!this.di;this.Ct=/amazonwebappplatform/i.test(navigator.userAgent);this.lC=/firefox/i.test(navigator.userAgent);this.pC=/safari/i.test(navigator.userAgent)&&!this.xp&&!this.we&&!this.di;this.qC=/windows/i.test(navigator.userAgent);this.Bp=this.Yg="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Ht=!("undefined"===typeof window.c2isWindows8||
!window.c2isWindows8);this.It=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.ig=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Ep=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.xm=!!window.cr_windows10;this.wm=this.Ht||this.It||this.Ep||this.xm;this.jC=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.rm=this.Jj&&!this.xp&&!this.um&&!this.lC&&!this.Ct&&!this.G;this.devicePixelRatio=
1;this.jf=this.Wc||this.um||this.Dt||this.Ic||this.Jj||this.li||this.ig||this.Ep||this.jC||this.Gt||this.Ad;this.jf||(this.jf=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Nj=!!(this.li&&this.Wc&&window.webkit);"undefined"===typeof cr_is_preview||this.Yg||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Yg=!0);this.Et="undefined"!==typeof cr_is_preview&&
-1<window.location.search.indexOf("debug");this.canvas=b;this.pe=document.getElementById("c2canvasdiv");this.J=this.N=null;this.np="(unavailable)";this.Wa=!1;this.Lg=0;this.Ya=null;this.Zl=!1;this.Au=this.Bu=0;this.canvas.oncontextmenu=function(b){b.preventDefault&&b.preventDefault();return!1};this.canvas.onselectstart=function(b){b.preventDefault&&b.preventDefault();return!1};this.canvas.ontouchstart=function(b){b.preventDefault&&b.preventDefault();return!1};this.Rb&&(window.c2runtime=this);this.Yg&&
(window.ondragover=function(b){b.preventDefault();return!1},window.ondrop=function(b){b.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.rm&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=b.width;this.height=b.height;this.ca=this.width;this.ba=this.height;this.Kl=this.width;this.pj=this.height;this.oi=window.innerWidth;this.ni=window.innerHeight;this.S=!0;this.hg=!1;Date.now||(Date.now=function(){return+new Date});
this.plugins=[];this.types={};this.P=[];this.fb=[];this.Kp={};this.Zd=[];this.Wo={};this.$e=[];this.Wi=[];this.Mn=[];this.Vz=[];this.Wz=[];this.sv=null;this.Ig={};this.zp=this.fg=!1;this.Sd=0;this.yp=this.Dp=!1;this.Qd=[];this.Lj=!1;this.Gm=this.zq="";this.Nb=null;this.lf="";this.Ik=this.pv=!1;this.Yl=[];this.Zf=this.Kg=0;this.pu=30;this.Lo=this.ck=0;this.Oi=1;this.Tb=new kb;this.Hf=new kb;this.Rm=this.cm=this.tj=this.ge=this.dh=this.$o=this.Bm=0;this.mj=null;this.Sl=[];this.Vo=[];this.Ul=-1;this.Qp=
[[]];this.Oq=this.Lm=0;this.kn(null);this.dk=[];this.ri=-1;this.wu=this.gk=0;this.Jp=!0;this.vj=0;this.Jk=[];this.Lq=this.qq=-1;this.Qj=!0;this.Jm=0;this.kf=!1;this.TD=0;this.Kh=null;this.ya=this.jm=!1;this.Yp=new ca;this.Zp=new ca;this.$p=new ca;this.vh=[];this.ee=new mb([]);this.Iq=new mb([]);this.Nf=[];this.ai={};this.Uf={};this.Mf={};this.Si={};this.ws={};this.Tt=this.Fm=this.Eb=this.Mb=this.St=this.Em=this.qa=null;this.Qi=this.Fp=!1;this.bp=[null,null];this.dg=0;this.wj="";this.qf={};this.Gk=
this.pg=null;this.Dq="";this.Qm=[];this.xD()}}function m(b,a){return 128>=a?b[3]:256>=a?b[2]:512>=a?b[1]:b[0]}function p(){try{return!!window.indexedDB}catch(b){return!1}}function n(b){b.target.result.createObjectStore("saves",{keyPath:"slot"})}function r(b,a,g,c){try{var h=indexedDB.open("_C2SaveStates");h.onupgradeneeded=n;h.onerror=c;h.onsuccess=function(h){h=h.target.result;h.onerror=c;h.transaction(["saves"],"readwrite").objectStore("saves").put({slot:b,data:a}).onsuccess=g}}catch(d){c(d)}}function k(b,
a,g){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=n;c.onerror=g;c.onsuccess=function(c){c=c.target.result;c.onerror=g;var h=c.transaction(["saves"]).objectStore("saves").get(b);h.onsuccess=function(){h.result?a(h.result.data):a(null)}}}catch(h){g(h)}}function f(){fa("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function a(b){var a,g=
{};for(a in b)!b.hasOwnProperty(a)||b[a]instanceof ca||b[a]&&"undefined"!==typeof b[a].gF||"spriteCreatedDestroyCallback"!==a&&(g[a]=b[a]);return g}var c=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;e.prototype.xD=function(){var b=this;if(this.Nj)this.Xs("data.js",function(a){b.Wj(JSON.parse(a))},function(){alert("Error fetching data.js")});else{var a;this.ig?a=new ActiveXObject("Microsoft.XMLHTTP"):
a=new XMLHttpRequest;var g="data.js";if(this.Ht||this.ig||this.Ep||this.xm)g="data.json";a.open("GET",g,!0);var c=!1;if(!this.G&&"response"in a&&"responseType"in a)try{a.responseType="json",c="json"===a.responseType}catch(h){c=!1}if(!c&&"responseType"in a)try{a.responseType="text"}catch(d){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(q){}this.ig?a.onreadystatechange=function(){4===a.readyState&&b.Wj(JSON.parse(a.responseText))}:(a.onload=function(){if(c)b.Wj(a.response);
else if(b.Ad){var g=a.responseText,g=g.substr(g.indexOf("{"));b.Wj(JSON.parse(g))}else b.Wj(JSON.parse(a.responseText))},a.onerror=function(b){ga("Error requesting "+g+":");ga(b)});a.send()}};e.prototype.gC=function(){var b=this,a,g,c,h,d,q,l,f,t;this.Zg=(!this.G||this.Ad||this.Wc)&&this.jE&&!this.rm;0===this.mc&&this.li&&(this.Zg=!1);this.devicePixelRatio=this.Zg?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.jc();0<this.mc&&
this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(a){a.preventDefault();b.NC();fa("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){b.J.ut();b.J.yf(b.J.width,b.J.height,!0);b.Mb=null;b.Eb=null;b.bp[0]=null;b.bp[1]=null;b.OC();b.S=!0;fa("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.QA&&(this.Ic||this.Ad||!this.G)&&(a={alpha:!0,
depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.Jj||(this.N=this.canvas.getContext("webgl2",a)),this.N||(this.N=this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",a)))}catch(e){}if(this.N){if(a=this.N.getExtension("WEBGL_debug_renderer_info"))this.np=this.N.getParameter(a.UNMASKED_RENDERER_WEBGL)+" ["+this.N.getParameter(a.UNMASKED_VENDOR_WEBGL)+"]";this.Wa&&(this.np+=" [front-to-back enabled]");this.G||(this.gc=document.createElement("canvas"),
jQuery(this.gc).appendTo(this.canvas.parentNode),this.gc.oncontextmenu=function(){return!1},this.gc.onselectstart=function(){return!1},this.gc.width=Math.round(this.Kl*this.devicePixelRatio),this.gc.height=Math.round(this.pj*this.devicePixelRatio),jQuery(this.gc).css({width:this.Kl+"px",height:this.pj+"px"}),this.Pu(),this.hq=this.gc.getContext("2d"));this.J=new wb(this.N,this.jf,this.Wa);this.J.yf(this.canvas.width,this.canvas.height);this.J.Qs=0!==this.JA;this.Ya=null;a=0;for(g=this.P.length;a<
g;a++)for(d=this.P[a],c=0,h=d.ja.length;c<h;c++)l=d.ja[c],l.xb=this.J.mp(l.id),l.eb=this.J.nq(l.xb),this.Qi=this.Qi||this.J.vk(l.xb);a=0;for(g=this.Zd.length;a<g;a++){f=this.Zd[a];c=0;for(h=f.ja.length;c<h;c++)l=f.ja[c],l.xb=this.J.mp(l.id),l.eb=this.J.nq(l.xb);f.Id();c=0;for(h=f.ma.length;c<h;c++){t=f.ma[c];d=0;for(q=t.ja.length;d<q;d++)l=t.ja[d],l.xb=this.J.mp(l.id),l.eb=this.J.nq(l.xb),this.Qi=this.Qi||this.J.vk(l.xb);t.Id()}}}else{if(0<this.mc&&this.Rb){this.canvas=null;document.oncontextmenu=
function(){return!1};document.onselectstart=function(){return!1};this.Ya=AppMobi.canvas.getContext("2d");try{this.Ya.samplingMode=this.Pa?"smooth":"sharp",this.Ya.globalScale=1,this.Ya.HTML5CompatibilityMode=!0,this.Ya.imageSmoothingEnabled=this.Pa}catch(v){}0!==this.width&&0!==this.height&&(this.Ya.width=this.width,this.Ya.height=this.height)}this.Ya||(this.Ic?(a={antialias:!!this.Pa,alpha:!0},this.Ya=this.canvas.getContext("2d",a)):(a={alpha:!0},this.Ya=this.canvas.getContext("2d",a)),this.un(this.Ya,
this.Pa));this.hq=this.gc=null}this.xv=function(a){b.La(!1,a)};window==window.top||this.G||this.wm||this.ig||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Ic&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(fa("Reloading for continuous preview"),this.Gm="__c2_continuouspreview",this.Ik=!0),this.aD&&
!this.jf&&(jQuery(window).focus(function(){b.setSuspended(!1)}),jQuery(window).blur(function(){var a=window.parent;a&&a.document.hasFocus()||b.setSuspended(!0)})));window.addEventListener("blur",function(){b.rh()});this.G||(a=function(b){if(vb(b)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(a){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",a):window.navigator.msPointerEnabled?
document.addEventListener("MSPointerDown",a):document.addEventListener("touchstart",a),document.addEventListener("mousedown",a));0===this.mc&&this.Zg&&1<this.devicePixelRatio&&this.setSize(this.Pb,this.Ob,!0);this.Cv();this.$B();this.go();this.ea={}};e.prototype.setSize=function(b,a,g){var c=0,h=0,d=0,q=0,q=0;if(this.oi!==b||this.ni!==a||g){this.oi=b;this.ni=a;var l=this.mc;if((d=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.kf)&&!this.Wc)||
0!==this.mc||g)d&&(l=this.dg),g=this.devicePixelRatio,4<=l?(d=this.Pb/this.Ob,b/a>d?(d*=a,5===l?(q=d*g/this.Pb,1<q?q=Math.floor(q):1>q&&(q=1/Math.ceil(1/q)),d=this.Pb*q/g,q=this.Ob*q/g,c=(b-d)/2,h=(a-q)/2,b=d,a=q):(c=(b-d)/2,b=d)):(q=b/d,5===l?(q=q*g/this.Ob,1<q?q=Math.floor(q):1>q&&(q=1/Math.ceil(1/q)),d=this.Pb*q/g,q=this.Ob*q/g,c=(b-d)/2,h=(a-q)/2,b=d):h=(a-q)/2,a=q)):d&&0===l&&(c=Math.floor((b-this.Pb)/2),h=Math.floor((a-this.Ob)/2),b=this.Pb,a=this.Ob),2>l&&(this.ij=g),this.Kl=Math.round(b),
this.pj=Math.round(a),this.width=Math.round(b*g),this.height=Math.round(a*g),this.S=!0,this.Ov?(this.ca=this.width,this.ba=this.height,this.fd=!0):this.width<this.Pb&&this.height<this.Ob||1===l?(this.ca=this.width,this.ba=this.height,this.fd=!0):(this.ca=this.Pb,this.ba=this.Ob,this.fd=!1,2===l?(d=this.Pb/this.Ob,l=this.oi/this.ni,l<d?this.ca=this.ba*l:l>d&&(this.ba=this.ca/l)):3===l&&(d=this.Pb/this.Ob,l=this.oi/this.ni,l>d?this.ca=this.ba*l:l<d&&(this.ba=this.ca/l))),this.pe&&!this.G&&(jQuery(this.pe).css({width:Math.round(b)+
"px",height:Math.round(a)+"px","margin-left":Math.floor(c)+"px","margin-top":Math.floor(h)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(b)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(b*g),this.canvas.height=Math.round(a*g),this.Ad?(this.canvas.style.left=Math.floor(c)+"px",this.canvas.style.top=Math.floor(h)+"px",this.canvas.style.width=Math.round(b)+"px",this.canvas.style.height=Math.round(a)+"px"):this.Zg&&!this.G&&(this.canvas.style.width=
Math.round(b)+"px",this.canvas.style.height=Math.round(a)+"px")),this.gc&&(this.gc.width=Math.round(b*g),this.gc.height=Math.round(a*g),this.gc.style.width=this.Kl+"px",this.gc.style.height=this.pj+"px"),this.J&&this.J.yf(Math.round(b*g),Math.round(a*g)),this.Rb&&this.Ya&&(this.Ya.width=Math.round(b),this.Ya.height=Math.round(a)),this.Ya&&this.un(this.Ya,this.Pa),this.Cv(),this.Lt&&!this.Wc&&window.scrollTo(0,0)}};e.prototype.Cv=function(){if(this.aA&&0!==this.gq){var b="portrait";2===this.gq&&(b=
"landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(b).catch(function(){}):screen.lockOrientation?screen.lockOrientation(b):screen.webkitLockOrientation?screen.webkitLockOrientation(b):screen.mozLockOrientation?screen.mozLockOrientation(b):screen.msLockOrientation&&screen.msLockOrientation(b)}catch(a){console&&console.warn&&console.warn("Failed to lock orientation: ",a)}}};e.prototype.NC=function(){this.J.lA();this.Fp=!0;var b,a,g;b=0;for(a=this.P.length;b<a;b++)g=
this.P[b],g.jk&&g.jk()};e.prototype.OC=function(){this.Fp=!1;var b,a,g;b=0;for(a=this.P.length;b<a;b++)g=this.P[b],g.pk&&g.pk()};e.prototype.Pu=function(){if(!this.G){var b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.kf)&&!this.Wc?jQuery(this.canvas).offset():jQuery(this.canvas).position();b.position="absolute";jQuery(this.gc).css(b)}};var d=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||
window.msCancelAnimationFrame||window.oCancelAnimationFrame;e.prototype.setSuspended=function(b){var a;if(b&&!this.hg)for(fa("[Construct 2] Suspending"),this.hg=!0,-1!==this.qq&&d&&d(this.qq),-1!==this.Lq&&clearTimeout(this.Lq),b=0,a=this.Jk.length;b<a;b++)this.Jk[b](!0);else if(!b&&this.hg){fa("[Construct 2] Resuming");this.hg=!1;this.Bm=gb();this.dh=gb();b=this.ck=this.cm=0;for(a=this.Jk.length;b<a;b++)this.Jk[b](!1);this.La(!1)}};e.prototype.zo=function(b){this.Jk.push(b)};e.prototype.Jf=function(b){return this.Qm[b]};
e.prototype.Wj=function(b){b&&b.project||ga("Project model unavailable");b=b.project;this.name=b[0];this.Zs=b[1];this.mc=b[12];this.Pb=b[10];this.Ob=b[11];this.Lu=this.Pb/2;this.Mu=this.Ob/2;this.G&&!this.Ad&&(4<=b[12]||0===b[12])&&(fa("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.mc=3);this.Wq=b[18];this.qg=b[19];if(0===this.qg){var a=new Image;a.crossOrigin="anonymous";this.wn(a,"loading-logo.png");this.pg={Mm:a}}else if(4===
this.qg){a=new Image;a.src="";var g=new Image;g.src="";var c=new Image;c.src="";var d=new Image;d.src="";var h=new Image;h.src="";var q=new Image;q.src="";var l=new Image;l.src="";var f=new Image;f.src="";var t=new Image;t.src="";var e=new Image;e.src="";var v=new Image;v.src="";var u=new Image;u.src="";this.pg={Mm:[a,g,c,d],gD:[h,q,l,f],oE:[t,e,v,u]}}this.gk=b[21];this.Qm=zc();this.Je=new E(this);a=0;for(g=b[2].length;a<g;a++)l=b[2][a],c=this.Jf(l[0]),xb(l,c.prototype),f=new c(this),f.zn=l[1],f.jg=
l[2],f.pF=l[5],f.uu=l[9],f.H&&f.H(),this.plugins.push(f);this.Qm=zc();a=0;for(g=b[3].length;a<g;a++){l=b[3][a];h=this.Jf(l[1]);f=null;c=0;for(d=this.plugins.length;c<d;c++)if(this.plugins[c]instanceof h){f=this.plugins[c];break}t=new f.K(f);t.name=l[0];t.Y=l[2];t.wp=l[3].slice(0);t.nE=l[3].length;t.bA=l[4];t.zB=l[5];t.xa=l[11];t.Y?(t.mh=[],t.bf=this.vj++,t.bb=null):(t.mh=null,t.bf=-1,t.bb=[]);t.Wl=null;t.Wh=null;t.Ss=null;t.xc=!1;t.Tc=null;l[6]?(t.Fn=l[6][0],t.Jq=l[6][1],t.Lk=l[6][2]):(t.Fn=null,
t.Jq=0,t.Lk=0);l[7]?t.Sc=l[7]:t.Sc=null;t.index=a;t.n=[];t.Ol=[];t.Cf=[new yb(t)];t.qe=0;t.xd=null;t.Js=0;t.Ki=!0;t.On=zb;t.gm=Ab;t.IB=Bb;t.ka=Eb;t.wk=Fb;t.Fe=Gb;t.nd=Hb;t.fm=Ib;t.dp=Jb;t.hp=Kb;t.cd=Lb;t.jp=Mb;t.Gl=new nb(this.Pb,this.Ob);t.rl=!0;t.sl=!1;t.ea={};t.toString=Nb;t.fb=[];c=0;for(d=l[8].length;c<d;c++){e=l[8][c];v=this.Jf(e[1]);u=null;h=0;for(q=this.fb.length;h<q;h++)if(this.fb[h]instanceof v){u=this.fb[h];break}u||(u=new v(this),u.Wp=[],u.Ai=new ca,u.H&&u.H(),this.fb.push(u),rc.SD&&u instanceof
rc.SD&&(this.sv=u));-1===u.Wp.indexOf(t)&&u.Wp.push(t);h=new u.K(u,t);h.name=e[0];h.xa=e[2];h.H();t.fb.push(h)}t.global=l[9];t.Cp=l[10];t.ja=[];c=0;for(d=l[12].length;c<d;c++)t.ja.push({id:l[12][c][0],name:l[12][c][1],xb:-1,eb:!1,Jb:!0,index:c});t.IF=l[13];this.Wq&&!t.Y&&!t.Cp&&f.jg||t.H();t.name&&(this.types[t.name]=t);this.P.push(t);f.zn&&(c=new f.I(t),c.uid=this.gk++,c.Su=this.wu++,c.Vg=0,c.Cj=Ob,c.toString=Pb,c.D=l[14],c.H(),t.n.push(c),this.qf[c.uid.toString()]=c)}a=0;for(g=b[4].length;a<g;a++)for(h=
b[4][a],q=this.P[h[0]],c=1,d=h.length;c<d;c++)l=this.P[h[c]],l.bb.push(q),q.mh.push(l);a=0;for(g=b[28].length;a<g;a++){h=b[28][a];q=[];c=0;for(d=h.length;c<d;c++)q.push(this.P[h[c]]);c=0;for(d=q.length;c<d;c++)q[c].xc=!0,q[c].Tc=q}if(0<this.vj)for(a=0,g=this.P.length;a<g;a++)if(l=this.P[a],!l.Y&&l.bb.length){l.Wl=Array(this.vj);l.Wh=Array(this.vj);l.Ss=Array(this.vj);t=[];c=u=v=e=0;for(d=l.bb.length;c<d;c++)for(f=l.bb[c],l.Wl[f.bf]=e,e+=f.nE,l.Wh[f.bf]=v,v+=f.bA,l.Ss[f.bf]=u,u+=f.zB,h=0,q=f.ja.length;h<
q;h++)t.push(Ca({},f.ja[h]));l.ja=t.concat(l.ja);c=0;for(d=l.ja.length;c<d;c++)l.ja[c].index=c}a=0;for(g=b[5].length;a<g;a++)l=b[5][a],c=new Qb(this,l),this.Kp[c.name]=c,this.Zd.push(c);a=0;for(g=b[6].length;a<g;a++)l=b[6][a],c=new Rb(this,l),this.Wo[c.name]=c,this.$e.push(c);a=0;for(g=this.$e.length;a<g;a++)this.$e[a].wb();a=0;for(g=this.$e.length;a<g;a++)this.$e[a].Tq();a=0;for(g=this.Mn.length;a<g;a++)this.Mn[a].wb();A(this.Mn);this.$z=b[7];this.wj=b[8];this.md=b[9];this.ij=1;this.QA=b[13];this.Pa=
b[14];this.Ds=b[15];this.jE=b[17];this.gq=b[20];this.aA=0<this.gq;this.aD=b[22];this.fd=this.Ov=b[23];this.JA=b[24];this.hD=b[25];this.Wa=b[27]&&!this.we;this.An=Date.now();A(this.Qm);this.gC()};var b=!1,h=0,g=[];e.prototype.rD=function(b,a){function c(){h--;d.lu()}var d=this;b.addEventListener("load",c);b.addEventListener("error",c);g.push([b,a]);this.lu()};e.prototype.lu=function(){for(var b;g.length&&100>h;)h++,b=g.shift(),this.wn(b[0],b[1])};e.prototype.Zq=function(a,g){a.cocoonLazyLoad=!0;a.onerror=
function(g){b=a.ys=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",g)};this.Ad?a.src=g:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(g,function(b){a.src=b},function(c){b=a.ys=!0;console&&console.error&&console.error("Error extracting image '"+g+"' from expansion file: ",c)}):(a.crossOrigin="anonymous",this.rD(a,g)));this.Wi.push(a)};e.prototype.xB=function(b){var a,g;a=0;for(g=this.Wi.length;a<g;a++)if(this.Wi[a].nA===b)return this.Wi[a];return null};var l=0,
t=!1;e.prototype.$B=function(){this.Kh&&(l=this.Kh.OD(this.$z))};e.prototype.us=function(){var b=l,a=0,g=0,c=!0,h,d,g=0;for(h=this.Wi.length;g<h;g++){d=this.Wi[g];var q=d.Gs;if(!q||0>=q)q=5E4;b+=q;d.src&&(d.complete||d.loaded)&&!d.ys?a+=q:c=!1}c&&this.hD&&this.Kh&&(t||(this.Kh.UD(),t=!0),g=this.Kh.JB(),a+=g,g<l&&(c=!1));this.Lc=0==b?1:a/b;return c};var v=!1;e.prototype.go=function(){if(this.Ya||this.J){var a=this.Ya||this.hq;this.gc&&this.Pu();var g=window.innerWidth,d=window.innerHeight;this.oi===
g&&this.ni===d||this.setSize(g,d);this.Lc=0;this.Rt=-1;var h=this;if(this.us()&&(4!==this.qg||v))this.aC();else{d=Date.now()-this.An;if(a){var l=this.width,q=this.height,g=this.devicePixelRatio;if(3>this.qg&&(this.Ic||500<=d&&this.Rt!=this.Lc)){a.clearRect(0,0,l,q);var d=l/2,q=q/2,l=0===this.qg&&this.pg.Mm.complete,f=40*g,t=0,e=80*g,u;if(l){var k=this.pg.Mm,e=k.width*g;u=k.height*g;f=e/2;t=u/2;a.drawImage(k,ta(d-f),ta(q-t),e,u)}1>=this.qg?(d=ta(d-f)+.5,q=ta(q+(t+(l?12*g:0)))+.5,a.fillStyle=b?"red":
"DodgerBlue",a.fillRect(d,q,Math.floor(e*this.Lc),6*g),a.strokeStyle="black",a.strokeRect(d,q,e,6*g),a.strokeStyle="white",a.strokeRect(d-1*g,q-1*g,e+2*g,8*g)):2===this.qg&&(a.font=this.Ad?"12pt ArialMT":"12pt Arial",a.fillStyle=b?"#f00":"#999",a.HF="middle",g=Math.round(100*this.Lc)+"%",l=a.measureText?a.measureText(g):null,a.fillText(g,d-(l?l.width:0)/2,q));this.Rt=this.Lc}else if(4===this.qg){this.OA(a);c?c(function(){h.go()}):setTimeout(function(){h.go()},16);return}}setTimeout(function(){h.go()},
this.Ic?10:100)}}};var L=-1,q="undefined"===typeof cr_is_preview?200:0,u=!0,H=!1,X=0,R=0,Q="undefined"===typeof cr_is_preview?3E3:0,C=null,w=null,y=0;e.prototype.OA=function(a){if(!v){for(var g=Math.ceil(this.width),c=Math.ceil(this.height),d=this.pg.Mm,h=this.pg.gD,l=this.pg.oE,f=0;4>f;++f)if(!d[f].complete||!h[f].complete||!l[f].complete)return;0===y&&(L=Date.now());var f=Date.now(),t=!1,e=a,k,n;u||H?(a.clearRect(0,0,g,c),C&&C.width===g&&C.height===c||(C=document.createElement("canvas"),C.width=
g,C.height=c,w=C.getContext("2d")),e=w,t=!0,u&&1===y&&(L=Date.now())):a.globalAlpha=1;e.fillStyle="#333333";e.fillRect(0,0,g,c);256<this.pj?(k=Ma(.22*c,105,.6*g),n=.25*k,e.drawImage(m(h,k),.5*g-k/2,.2*c-n/2,k,n),n=k=Math.min(.395*c,.95*g),e.drawImage(m(d,k),.5*g-k/2,.485*c-n/2,k,n),k=Ma(.22*c,105,.6*g),n=.25*k,e.drawImage(m(l,k),.5*g-k/2,.868*c-n/2,k,n),e.fillStyle="#3C3C3C",k=g,n=Math.max(.005*c,2),e.fillRect(0,.8*c-n/2,k,n),e.fillStyle=b?"red":"#E0FF65",k=g*this.Lc,e.fillRect(.5*g-k/2,.8*c-n/2,
k,n)):(n=k=.55*c,e.drawImage(m(d,k),.5*g-k/2,.45*c-n/2,k,n),e.fillStyle="#3C3C3C",k=g,n=Math.max(.005*c,2),e.fillRect(0,.85*c-n/2,k,n),e.fillStyle=b?"red":"#E0FF65",k=g*this.Lc,e.fillRect(.5*g-k/2,.85*c-n/2,k,n));t&&(u?a.globalAlpha=0===y?0:Math.min((f-L)/300,1):H&&(a.globalAlpha=Math.max(1-(f-R)/300,0)),a.drawImage(C,0,0,g,c));u&&300<=f-L&&2<=y&&(u=!1,X=f);!u&&f-X>=Q&&!H&&1<=this.Lc&&(H=!0,R=f);if(H&&f-R>=300+q||"undefined"!==typeof cr_is_preview&&1<=this.Lc&&500>Date.now()-L)v=!0,H=u=!1,this.pg=
w=C=null;++y}};e.prototype.aC=function(){this.gc&&(this.canvas.parentNode.removeChild(this.gc),this.gc=this.hq=null);this.An=Date.now();this.dh=gb();var b,a,g;if(this.Wq)for(b=0,a=this.P.length;b<a;b++)g=this.P[b],g.Y||g.Cp||!g.Z.jg||g.H();else this.Qj=!1;b=0;for(a=this.Zd.length;b<a;b++)this.Zd[b].oA();2<=this.mc&&(b=this.Pb/this.Ob,a=this.width/this.height,this.ij=2!==this.mc&&a>b||2===this.mc&&a<b?this.height/this.Ob:this.width/this.Pb);this.Zs?this.Kp[this.Zs].Fq():this.Zd[0].Fq();this.Wq||(this.Jm=
1,this.trigger(E.prototype.j.$n,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();b=0;for(a=this.P.length;b<a;b++)g=this.P[b],g.Cu&&g.Cu();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.La(!1);this.Rb&&AppMobi.webview.execute("onGameReady();")};e.prototype.La=function(b,a,g){if(this.qa){var d=gb();if(g||!this.hg||b){b||(c?this.qq=c(this.xv):this.Lq=setTimeout(this.xv,
this.jf?1:16));a=a||d;var h=this.mc;((g=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Wc)||this.kf)&&0<this.dg&&(h=this.dg);if(0<h){var h=window.innerWidth,l=window.innerHeight;this.oi===h&&this.ni===l||this.setSize(h,l)}this.G||(g?this.Zl||(this.Zl=!0):this.Zl?(this.Zl=!1,0===this.mc&&this.setSize(Math.round(this.Bu/this.devicePixelRatio),Math.round(this.Au/this.devicePixelRatio),!0)):(this.Bu=this.width,this.Au=this.height));this.Qj&&
(g=this.us(),this.Jm=this.Lc,g&&(this.Qj=!1,this.Lc=1,this.trigger(E.prototype.j.$n,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.CC(a);!this.S&&!this.Ic||this.Fp||this.Ik||b||(this.S=!1,this.J?this.Bb():this.lc(),this.Gk&&(this.canvas&&this.canvas.toDataURL&&(this.Dq=this.canvas.toDataURL(this.Gk[0],this.Gk[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Dq),this.trigger(E.prototype.j.rr,null)),this.Gk=null));this.lF||(this.ge++,this.tj++,this.cm++);this.ck+=gb()-d}}};e.prototype.CC=
function(b){var a,g,c,d,h,l,q,f;1E3<=b-this.dh&&(this.dh+=1E3,1E3<=b-this.dh&&(this.dh=b),this.$o=this.cm,this.cm=0,this.Lo=this.ck,this.ck=0);a=0;0!==this.Bm&&(a=b-this.Bm,0>a&&(a=0),this.Zf=a/=1E3,.5<this.Zf?this.Zf=0:this.Zf>1/this.pu&&(this.Zf=1/this.pu));this.Bm=b;this.Kg=this.Zf*this.Oi;this.Tb.add(this.Kg);this.Hf.add(a);b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.kf)&&!this.Wc;2<=this.mc||b&&0<this.dg?(a=this.Pb/this.Ob,
g=this.width/this.height,c=this.mc,b&&0<this.dg&&(c=this.dg),this.ij=2!==c&&g>a||2===c&&g<a?this.height/this.Ob:this.width/this.Pb,this.qa&&(this.qa.Xu(this.qa.scrollX),this.qa.Yu(this.qa.scrollY))):this.ij=this.Zg?this.devicePixelRatio:1;this.jc();this.Sd++;this.Je.DD();this.Sd--;this.jc();this.Sd++;g=this.Yp.je();b=0;for(a=g.length;b<a;b++)g[b].kD();b=0;for(a=this.P.length;b<a;b++)if(l=this.P[b],!l.Y&&(l.fb.length||l.bb.length))for(g=0,c=l.n.length;g<c;g++)for(q=l.n[g],d=0,h=q.da.length;d<h;d++)q.da[d].La();
b=0;for(a=this.P.length;b<a;b++)if(l=this.P[b],!l.Y&&(l.fb.length||l.bb.length))for(g=0,c=l.n.length;g<c;g++)for(q=l.n[g],d=0,h=q.da.length;d<h;d++)f=q.da[d],f.fD&&f.fD();g=this.Zp.je();b=0;for(a=g.length;b<a;b++)g[b].La();this.Sd--;this.bC();for(b=0;this.mj&&10>b++;)this.Ns(this.mj);b=0;for(a=this.$e.length;b<a;b++)this.$e[b].rp=!1;this.qa.Mg&&this.qa.Mg.Hb();A(this.vh);this.Jp=!1;this.Sd++;b=0;for(a=this.P.length;b<a;b++)if(l=this.P[b],!l.Y&&(l.fb.length||l.bb.length))for(g=0,c=l.n.length;g<c;g++)for(q=
l.n[g],d=0,h=q.da.length;d<h;d++)f=q.da[d],f.Mk&&f.Mk();g=this.$p.je();b=0;for(a=g.length;b<a;b++)g[b].Mk();this.Sd--};e.prototype.rh=function(){var b,a,g,c,d,h,l,q,f;b=0;for(a=this.P.length;b<a;b++)if(l=this.P[b],!l.Y)for(g=0,c=l.n.length;g<c;g++)if(q=l.n[g],q.rh&&q.rh(),q.da)for(d=0,h=q.da.length;d<h;d++)f=q.da[d],f.rh&&f.rh()};e.prototype.Ns=function(b){var a=this.qa;this.qa.VD();var g,c,d;if(this.J)for(g=0,c=this.P.length;g<c;g++)d=this.P[g],d.Y||!d.Nn||d.global&&0!==d.n.length||-1!==b.Hj.indexOf(d)||
d.Nn();a==b&&A(this.Je.Qc);A(this.vh);this.Vu(!0);b.Fq();this.Vu(!1);this.Jp=this.S=!0;this.jc()};e.prototype.Vu=function(b){var a,g,c,d,h,l,q,f,t;a=0;for(g=this.fb.length;a<g;a++)c=this.fb[a],b?c.hk&&c.hk():c.ik&&c.ik();a=0;for(g=this.P.length;a<g;a++)if(c=this.P[a],c.global||c.Z.zn)for(d=0,h=c.n.length;d<h;d++)if(l=c.n[d],b?l.hk&&l.hk():l.ik&&l.ik(),l.da)for(q=0,f=l.da.length;q<f;q++)t=l.da[q],b?t.hk&&t.hk():t.ik&&t.ik()};e.prototype.lD=function(b){this.Yp.add(b)};e.prototype.fe=function(b){this.Zp.add(b)};
e.prototype.YD=function(b){this.$p.add(b)};e.prototype.Pg=function(b){return b&&-1!==b.fk?this.Zf*b.fk:this.Kg};e.prototype.lc=function(){this.qa.lc(this.Ya);this.Rb&&this.Ya.present()};e.prototype.Bb=function(){this.Wa&&(this.Lg=1,this.qa.Jg(this.J));this.qa.Bb(this.J);this.J.jD()};e.prototype.pl=function(b){b&&this.Sl.push(b)};e.prototype.wD=function(b){La(this.Sl,b)};e.prototype.Zh=function(b){b=b.toString();return this.qf.hasOwnProperty(b)?this.qf[b]:null};var K=[];e.prototype.td=function(b){var a,
g;a=b.type.name;var c=null;if(this.Ig.hasOwnProperty(a)){if(c=this.Ig[a],c.contains(b))return}else c=K.length?K.pop():new ca,this.Ig[a]=c;c.add(b);this.fg=!0;if(b.xc)for(a=0,g=b.siblings.length;a<g;a++)this.td(b.siblings[a]);this.zp&&c.Ri.push(b);this.yp||(this.Sd++,this.trigger(Object.getPrototypeOf(b.type.Z).j.zx,b),this.Sd--)};e.prototype.jc=function(){if(this.fg){var b,a,g,c,d,h;this.zp=!0;g=0;for(d=this.Qd.length;g<d;++g)for(b=this.Qd[g],a=b.type,a.n.push(b),c=0,h=a.bb.length;c<h;++c)a.bb[c].n.push(b),
a.bb[c].Ki=!0;A(this.Qd);this.Zw();fb(this.Ig);this.fg=this.zp=!1}};e.prototype.Zw=function(){for(var b in this.Ig)this.Ig.hasOwnProperty(b)&&this.Zv(this.Ig[b])};e.prototype.Zv=function(b){var a=b.je(),g=a[0].type,c,d,h,l,q,f;hb(g.n,b);g.Ki=!0;0===g.n.length&&(g.sl=!1);c=0;for(d=g.bb.length;c<d;++c)f=g.bb[c],hb(f.n,b),f.Ki=!0;c=0;for(d=this.Je.Qc.length;c<d;++c)if(q=this.Je.Qc[c],q.Bc.hasOwnProperty(g.index)&&hb(q.Bc[g.index].gf,b),!g.Y)for(h=0,l=g.bb.length;h<l;++h)f=g.bb[h],q.Bc.hasOwnProperty(f.index)&&
hb(q.Bc[f.index].gf,b);if(q=a[0].B){if(q.sd)for(h=q.n,c=0,d=h.length;c<d;++c)l=h[c],b.contains(l)&&(l.Ma(),q.hc.update(l,l.Mc,null),l.Mc.set(0,0,-1,-1));hb(q.n,b);q.Bk(0)}for(c=0;c<a.length;++c)this.Yv(a[c],g);b.clear();K.push(b);this.S=!0};e.prototype.Yv=function(b,a){var g,c,d;g=0;for(c=this.Sl.length;g<c;++g)this.Sl[g](b);b.Vf&&a.Gl.update(b,b.Vf,null);(g=b.B)&&g.Ei(b,!0);if(b.da)for(g=0,c=b.da.length;g<c;++g)d=b.da[g],d.Wb&&d.Wb(),d.behavior.Ai.remove(b);this.Yp.remove(b);this.Zp.remove(b);this.$p.remove(b);
b.Wb&&b.Wb();this.qf.hasOwnProperty(b.uid.toString())&&delete this.qf[b.uid.toString()];this.Rm--;100>a.Ol.length&&a.Ol.push(b)};e.prototype.Jl=function(b,a,g,c){if(b.Y){var d=ta(Math.random()*b.mh.length);return this.Jl(b.mh[d],a,g,c)}return b.xd?this.Wf(b.xd,a,!1,g,c,!1):null};var M=[];e.prototype.Wf=function(b,a,g,c,d,h){var l,q,f,t;if(!b)return null;var e=this.P[b[1]],v=e.Z.jg;if(this.Qj&&v&&!e.Cp||v&&!this.J&&11===b[0][11])return null;var u=a;v||(a=null);var k;e.Ol.length?(k=e.Ol.pop(),k.Ac=
!0,e.Z.I.call(k,e)):(k=new e.Z.I(e),k.Ac=!1);!g||h||this.qf.hasOwnProperty(b[2].toString())?k.uid=this.gk++:k.uid=b[2];this.qf[k.uid.toString()]=k;k.Su=this.wu++;k.Vg=e.n.length;l=0;for(q=this.Qd.length;l<q;++l)this.Qd[l].type===e&&k.Vg++;k.Cj=Ob;k.toString=Pb;f=b[3];if(k.Ac)fb(k.ea);else{k.ea={};if("undefined"!==typeof cr_is_preview)for(k.zt=[],k.zt.length=f.length,l=0,q=f.length;l<q;l++)k.zt[l]=f[l][1];k.Sa=[];k.Sa.length=f.length}l=0;for(q=f.length;l<q;l++)k.Sa[l]=f[l][0];if(v){var n=b[0];k.x=
ia(c)?n[0]:c;k.y=ia(d)?n[1]:d;k.z=n[2];k.width=n[3];k.height=n[4];k.depth=n[5];k.C=n[6];k.opacity=n[7];k.uc=n[8];k.vc=n[9];k.yb=n[10];l=n[11];!this.J&&e.ja.length&&(k.yb=l);k.Ve=rb(k.yb);this.N&&sb(k,k.yb,this.N);if(k.Ac){l=0;for(q=n[12].length;l<q;l++)for(f=0,t=n[12][l].length;f<t;f++)k.ab[l][f]=n[12][l][f];k.$a.set(0,0,0,0);k.Vf.set(0,0,-1,-1);k.Mc.set(0,0,-1,-1);k.Zb.Dk(k.$a);A(k.Eo)}else{k.ab=n[12].slice(0);l=0;for(q=k.ab.length;l<q;l++)k.ab[l]=n[12][l].slice(0);k.Ea=[];k.Lf=[];k.Lf.length=e.ja.length;
k.$a=new wa(0,0,0,0);k.Vf=new wa(0,0,-1,-1);k.Mc=new wa(0,0,-1,-1);k.Zb=new xa;k.Eo=[];k.aa=Sb;k.dF=Tb;k.$b=Ub;k.Ma=Vb;k.hE=Wb;k.Kv=Xb;k.zd=Yb}k.Ni=!1;k.aE=0;k.$D=0;k.ZD=null;14===n.length&&(k.Ni=!0,k.aE=n[13][0],k.$D=n[13][1],k.ZD=n[13][2]);l=0;for(q=e.ja.length;l<q;l++)k.Lf[l]=!0;k.Af=!0;k.Id=cc;k.Id();k.Lv=!!k.Ea.length;k.Do=!0;k.Go=!0;e.rl=!0;k.visible=!0;k.fk=-1;k.B=a;k.ke=a.n.length;k.Lg=0;"undefined"===typeof k.Ja&&(k.Ja=null);this.S=k.Ue=!0}var r;A(M);l=0;for(q=e.bb.length;l<q;l++)M.push.apply(M,
e.bb[l].fb);M.push.apply(M,e.fb);if(k.Ac)for(l=0,q=M.length;l<q;l++){var m=M[l];r=k.da[l];r.Ac=!0;m.behavior.I.call(r,m,k);n=b[4][l];f=0;for(t=n.length;f<t;f++)r.D[f]=n[f];r.H();m.behavior.Ai.add(k)}else for(k.da=[],l=0,q=M.length;l<q;l++)m=M[l],r=new m.behavior.I(m,k),r.Ac=!1,r.D=b[4][l].slice(0),r.H(),k.da.push(r),m.behavior.Ai.add(k);n=b[5];if(k.Ac)for(l=0,q=n.length;l<q;l++)k.D[l]=n[l];else k.D=n.slice(0);this.Qd.push(k);this.fg=!0;a&&(a.hj(k,!0),1!==a.Jc||1!==a.Kc)&&(e.sl=!0);this.Rm++;if(e.xc){if(k.xc=
!0,k.Ac?A(k.siblings):k.siblings=[],!g&&!h){l=0;for(q=e.Tc.length;l<q;l++)if(e.Tc[l]!==e){if(!e.Tc[l].xd)return null;k.siblings.push(this.Wf(e.Tc[l].xd,u,!1,v?k.x:c,v?k.y:d,!0))}l=0;for(q=k.siblings.length;l<q;l++)for(k.siblings[l].siblings.push(k),f=0;f<q;f++)l!==f&&k.siblings[l].siblings.push(k.siblings[f])}}else k.xc=!1,k.siblings=null;k.H();l=0;for(q=k.da.length;l<q;l++)k.da[l].eD&&k.da[l].eD();return k};e.prototype.Aj=function(b){var a,g;a=0;for(g=this.qa.ma.length;a<g;a++){var c=this.qa.ma[a];
if(ub(c.name,b))return c}return null};e.prototype.ef=function(b){b=ta(b);0>b&&(b=0);b>=this.qa.ma.length&&(b=this.qa.ma.length-1);return this.qa.ma[b]};e.prototype.Jo=function(b){var a,g;a=0;for(g=b.length;a<g;a++)b[a].ka().ta=!0};e.prototype.wk=function(b){var a,g;a=0;for(g=b.length;a<g;a++)b[a].wk()};e.prototype.Fe=function(b){var a,g;a=0;for(g=b.length;a<g;a++)b[a].Fe()};e.prototype.nd=function(b){var a,g;a=0;for(g=b.length;a<g;a++)b[a].nd()};e.prototype.Hv=function(b){if(b.rl){var a,g,c=b.n;a=
0;for(g=c.length;a<g;++a)c[a].Kv();c=this.Qd;a=0;for(g=c.length;a<g;++a)c[a].type===b&&c[a].Kv();b.rl=!1}};e.prototype.fp=function(b,a,g,c){var d,h,l=b?1!==b.Jc||1!==b.Kc:!1;if(a.Y)for(b=0,d=a.mh.length;b<d;++b)h=a.mh[b],l||h.sl?Ga(c,h.n):(this.Hv(h),h.Gl.mn(g,c));else l||a.sl?Ga(c,a.n):(this.Hv(a),a.Gl.mn(g,c))};e.prototype.NB=function(b,a,g,c){var d,h;d=0;for(h=a.length;d<h;++d)this.fp(b,a[d],g,c)};e.prototype.MB=function(b,a,g){var c=this.sv;c&&this.NB(b,c.Wp,a,g)};e.prototype.Li=function(b,a,
g,c){var d=b.ka(),h,l,q,f,t=this.cb().kb.ld,e,k,v;if(d.ta)for(c||(d.ta=!1,A(d.n)),h=0,f=b.n.length;h<f;h++)if(q=b.n[h],q.Ma(),e=q.B.Va(a,g,!0),k=q.B.Va(a,g,!1),q.$b(e,k)){if(c)return!1;d.n.push(q)}else t&&d.ra.push(q);else{l=0;v=t?d.ra:d.n;h=0;for(f=v.length;h<f;h++)if(q=v[h],q.Ma(),e=q.B.Va(a,g,!0),k=q.B.Va(a,g,!1),q.$b(e,k)){if(c)return!1;t?d.n.push(q):(d.n[l]=d.n[h],l++)}c||(v.length=l)}b.cd();return c?!0:d.qp()};e.prototype.xg=function(b,a){if(!(b&&a&&b!==a&&b.Ue&&a.Ue))return!1;b.Ma();a.Ma();
var g=b.B,c=a.B,d,h,l,q,f,t,e,k;if(g===c||g.Jc===c.Jc&&c.Kc===c.Kc&&g.scale===c.scale&&g.C===c.C&&g.qc===c.qc){if(!b.$a.hC(a.$a)||!b.Zb.At(a.Zb)||b.Ni&&a.Ni)return!1;if(b.Ni)return this.wv(b,a);if(a.Ni)return this.wv(a,b);e=b.Ja&&!b.Ja.gi();d=a.Ja&&!a.Ja.gi();if(!e&&!d)return!0;e?(b.Ja.Lh(b.width,b.height,b.C),e=b.Ja):(this.ee.Ji(b.Zb,b.x,b.y,b.width,b.height),e=this.ee);d?(a.Ja.Lh(a.width,a.height,a.C),k=a.Ja):(this.ee.Ji(a.Zb,a.x,a.y,a.width,a.height),k=this.ee);return e.Ij(k,a.x-b.x,a.y-b.y)}e=
b.Ja&&!b.Ja.gi();d=a.Ja&&!a.Ja.gi();e?(b.Ja.Lh(b.width,b.height,b.C),this.ee.jv(b.Ja)):this.ee.Ji(b.Zb,b.x,b.y,b.width,b.height);e=this.ee;d?(a.Ja.Lh(a.width,a.height,a.C),this.Iq.jv(a.Ja)):this.Iq.Ji(a.Zb,a.x,a.y,a.width,a.height);k=this.Iq;d=0;for(h=e.$d;d<h;d++)l=2*d,q=l+1,f=e.Qb[l],t=e.Qb[q],e.Qb[l]=g.la(f+b.x,t+b.y,!0),e.Qb[q]=g.la(f+b.x,t+b.y,!1);e.Ma();d=0;for(h=k.$d;d<h;d++)l=2*d,q=l+1,f=k.Qb[l],t=k.Qb[q],k.Qb[l]=c.la(f+a.x,t+a.y,!0),k.Qb[q]=c.la(f+a.x,t+a.y,!1);k.Ma();return e.Ij(k,0,0)};
var T=new xa;new wa(0,0,0,0);var U=[];e.prototype.wv=function(b,a){var g,c,d,h,l=a.$a,q=b.x,f=b.y;b.jF(l,U);var t=a.Ja&&!a.Ja.gi();g=0;for(c=U.length;g<c;++g)if(d=U[g],h=d.DF,l.iC(h,q,f)&&(T.Dk(h),T.offset(q,f),T.At(a.Zb)))if(t)if(a.Ja.Lh(a.width,a.height,a.C),d.lq){if(d.lq.Ij(a.Ja,a.x-(q+h.left),a.y-(f+h.top)))return A(U),!0}else{if(this.ee.Ji(T,0,0,h.right-h.left,h.bottom-h.top),this.ee.Ij(a.Ja,a.x,a.y))return A(U),!0}else if(d.lq){if(this.ee.Ji(a.Zb,0,0,a.width,a.height),d.lq.Ij(this.ee,-(q+h.left),
-(f+h.top)))return A(U),!0}else return A(U),!0;A(U);return!1};e.prototype.Dv=function(b,a){if(!a)return!1;var g,c,d,h,l;g=0;for(c=b.fb.length;g<c;g++)if(b.fb[g].behavior instanceof a)return!0;if(!b.Y)for(g=0,c=b.bb.length;g<c;g++)for(l=b.bb[g],d=0,h=l.fb.length;d<h;d++)if(l.fb[d].behavior instanceof a)return!0;return!1};e.prototype.Pq=function(b){return this.Dv(b,rc.ME)};e.prototype.Qq=function(b){return this.Dv(b,rc.NE)};var I=[];e.prototype.zh=function(b){var a,g,c;b.Ma();this.MB(b.B,b.$a,I);a=
0;for(g=I.length;a<g;++a)if(c=I[a],c.ea.solidEnabled&&this.xg(b,c))return A(I),c;A(I);return null};e.prototype.pD=function(b,a,g,c){c=c||50;var d=b.x,h=b.y,l,q=null,f=null;for(l=0;l<c;l++)if(b.x=d+a*l,b.y=h+g*l,b.aa(),!this.xg(b,q)&&((q=this.zh(b))&&(f=q),!q&&!q))return f&&this.nD(b,a,g,f),!0;b.x=d;b.y=h;b.aa();return!1};e.prototype.nD=function(b,a,g,c){var d=2,h,l=!1;h=!1;for(var q=b.x,f=b.y;16>=d;)h=1/d,d*=2,b.x+=a*h*(l?1:-1),b.y+=g*h*(l?1:-1),b.aa(),this.xg(b,c)?h=l=!0:(h=l=!1,q=b.x,f=b.y);h&&
(b.x=q,b.y=f,b.aa())};e.prototype.qD=function(b){var a=0,g=b.x,c=b.y,d=0,h=0,l=0,q=this.zh(b);if(q){for(;100>=a;){switch(d){case 0:h=0;l=-1;a++;break;case 1:h=1;l=-1;break;case 2:h=1;l=0;break;case 3:l=h=1;break;case 4:h=0;l=1;break;case 5:h=-1;l=1;break;case 6:h=-1;l=0;break;case 7:l=h=-1}d=(d+1)%8;b.x=ta(g+h*a);b.y=ta(c+l*a);b.aa();if(!this.xg(b,q)&&(q=this.zh(b),!q))return}b.x=g;b.y=c;b.aa()}};e.prototype.tD=function(b,a){b.Ue&&a.Ue&&this.vh.push([b,a])};e.prototype.Uz=function(b,a,g){var c,d,
h;c=0;for(d=this.vh.length;c<d;++c){h=this.vh[c];if(h[0]===b)h=h[1];else if(h[1]===b)h=h[0];else continue;if(a.Y){if(-1===a.mh.indexOf(a))continue}else if(h.type!==a)continue;-1===g.indexOf(h)&&g.push(h)}};e.prototype.jA=function(b,a){var g,c,d;g=0;for(c=this.vh.length;g<c;g++)if(d=this.vh[g],d[0]===b&&d[1]===a||d[0]===a&&d[1]===b)return!0;return!1};e.prototype.fA=function(b,a,g){var c=b.x,d=b.y,h=qa(10,Za(a,g,c,d)),l=Ua(a,g,c,d),q=this.zh(b);if(!q)return Ra(l+sa);var f=q,t,e,k,v,u=Na(5);for(t=1;36>
t;t++)if(e=l-t*u,b.x=a+Math.cos(e)*h,b.y=g+Math.sin(e)*h,b.aa(),!this.xg(b,f)&&(f=this.zh(b),!f)){k=e;break}36===t&&(k=Ra(l+sa));f=q;for(t=1;36>t;t++)if(e=l+t*u,b.x=a+Math.cos(e)*h,b.y=g+Math.sin(e)*h,b.aa(),!this.xg(b,f)&&(f=this.zh(b),!f)){v=e;break}36===t&&(v=Ra(l+sa));b.x=c;b.y=d;b.aa();if(v===k)return v;b=Va(v,k)/2;b=Xa(v,k)?Ra(k+b+sa):Ra(v+b);k=Math.cos(l);l=Math.sin(l);v=Math.cos(b);b=Math.sin(b);a=k*v+l*b;return Ua(0,0,k-2*a*v,l-2*a*b)};var D=-1;e.prototype.trigger=function(b,a,g){if(!this.qa)return!1;
var c=this.qa.Mg;if(!c)return!1;var d=!1,h,l,q;D++;var f=c.Qo;l=0;for(q=f.length;l<q;++l)h=this.Av(b,a,f[l],g),d=d||h;h=this.Av(b,a,c,g);D--;return d||h};e.prototype.Av=function(b,a,g,c){var d=!1,h,l,q,f;if(a)for(q=this.Nq(b,a,a.type.name,g,c),d=d||q,f=a.type.bb,h=0,l=f.length;h<l;++h)q=this.Nq(b,a,f[h].name,g,c),d=d||q;else q=this.Nq(b,a,"system",g,c),d=d||q;return d};e.prototype.Nq=function(b,a,g,c,d){var h,l=!1,q=!1,q="undefined"!==typeof d,f=(q?c.Us:c.Bv)[g];if(!f)return l;var t=null;c=0;for(h=
f.length;c<h;++c)if(f[c].method==b){t=f[c].sj;break}if(!t)return l;var e;q?e=t[d]:e=t;if(!e)return null;c=0;for(h=e.length;c<h;c++)b=e[c][0],d=e[c][1],q=this.vB(a,g,b,d),l=l||q;return l};e.prototype.vB=function(b,a,g,c){var d,h,l=!1;this.Oq++;var q=this.cb().kb;q&&this.wk(q.wg);var f=1<this.Oq;this.wk(g.wg);f&&this.oD();var t=this.kn(g);t.kb=g;b&&(d=this.types[a].ka(),d.ta=!1,A(d.n),d.n[0]=b,this.types[a].cd());b=!0;if(g.parent){a=t.vv;for(d=g.parent;d;)a.push(d),d=d.parent;a.reverse();d=0;for(h=
a.length;d<h;d++)if(!a[d].FD()){b=!1;break}}b&&(this.tj++,g.ld?g.ED(c):g.Hb(),l=l||t.bh);this.dn();f&&this.dD();this.nd(g.wg);q&&this.nd(q.wg);this.fg&&0===this.Sd&&0===D&&!this.Dp&&this.jc();this.Oq--;return l};e.prototype.Og=function(){var b=this.cb();return b.kb.Kb[b.zb]};e.prototype.kC=function(){return 0===this.cb().zb};e.prototype.oD=function(){this.Lm++;this.Lm>=this.Qp.length&&this.Qp.push([])};e.prototype.dD=function(){this.Lm--};e.prototype.gt=function(){return this.Qp[this.Lm]};e.prototype.kn=
function(b){this.Ul++;this.Ul>=this.Vo.length&&this.Vo.push(new dc);var a=this.cb();a.reset(b);return a};e.prototype.dn=function(){this.Ul--};e.prototype.cb=function(){return this.Vo[this.Ul]};e.prototype.pq=function(b){this.ri++;this.ri>=this.dk.length&&this.dk.push(aa({name:b,index:0,Xa:!1}));var a=this.gp();a.name=b;a.index=0;a.Xa=!1;return a};e.prototype.mq=function(){this.ri--};e.prototype.gp=function(){return this.dk[this.ri]};e.prototype.it=function(b,a){for(var g,c,d,h,l,q;a;){g=0;for(c=a.Gd.length;g<
c;g++)if(q=a.Gd[g],q instanceof ec&&ub(b,q.name))return q;a=a.parent}g=0;for(c=this.$e.length;g<c;g++)for(l=this.$e[g],d=0,h=l.ag.length;d<h;d++)if(q=l.ag[d],q instanceof ec&&ub(b,q.name))return q;return null};e.prototype.lt=function(b){var a,g;a=0;for(g=this.Zd.length;a<g;a++)if(this.Zd[a].xa===b)return this.Zd[a];return null};e.prototype.im=function(b){var a,g;a=0;for(g=this.P.length;a<g;a++)if(this.P[a].xa===b)return this.P[a];return null};e.prototype.DB=function(b){var a,g;a=0;for(g=this.Nf.length;a<
g;a++)if(this.Nf[a].xa===b)return this.Nf[a];return null};e.prototype.Ls=function(b,a){this.Gk=[b,a];this.S=!0};e.prototype.bC=function(){var b=this,a=this.zq,g=this.lf,c=this.Gm,d=!1;this.pv&&(d=!0,a="__c2_continuouspreview",this.pv=!1);if(a.length){this.jc();g=this.JD();if(p()&&!this.Ic)r(a,g,function(){fa("Saved state to IndexedDB storage ("+g.length+" bytes)");b.lf=g;b.trigger(E.prototype.j.fo,null);b.lf="";d&&f()},function(c){try{localStorage.setItem("__c2save_"+a,g),fa("Saved state to WebStorage ("+
g.length+" bytes)"),b.lf=g,b.trigger(E.prototype.j.fo,null),b.lf="",d&&f()}catch(h){fa("Failed to save game state: "+c+"; "+h),b.trigger(E.prototype.j.Mr,null)}});else try{localStorage.setItem("__c2save_"+a,g),fa("Saved state to WebStorage ("+g.length+" bytes)"),b.lf=g,this.trigger(E.prototype.j.fo,null),b.lf="",d&&f()}catch(h){fa("Error saving to WebStorage: "+h),b.trigger(E.prototype.j.Mr,null)}this.Gm=this.zq="";this.Nb=null}if(c.length){if(p()&&!this.Ic)k(c,function(a){a?(b.Nb=a,fa("Loaded state from IndexedDB storage ("+
b.Nb.length+" bytes)")):(b.Nb=localStorage.getItem("__c2save_"+c)||"",fa("Loaded state from WebStorage ("+b.Nb.length+" bytes)"));b.Ik=!1;b.Nb||(b.Nb=null,b.trigger(E.prototype.j.el,null))},function(){b.Nb=localStorage.getItem("__c2save_"+c)||"";fa("Loaded state from WebStorage ("+b.Nb.length+" bytes)");b.Ik=!1;b.Nb||(b.Nb=null,b.trigger(E.prototype.j.el,null))});else{try{this.Nb=localStorage.getItem("__c2save_"+c)||"",fa("Loaded state from WebStorage ("+this.Nb.length+" bytes)")}catch(l){this.Nb=
null}this.Ik=!1;b.Nb||(b.Nb=null,b.trigger(E.prototype.j.el,null))}this.zq=this.Gm=""}null!==this.Nb&&(this.jc(),this.BC(this.Nb)?(this.lf=this.Nb,this.trigger(E.prototype.j.Kx,null),this.lf=""):b.trigger(E.prototype.j.el,null),this.Nb=null)};e.prototype.JD=function(){var b,g,c,d,h,l,q,f={c2save:!0,version:1,rt:{time:this.Tb.X,walltime:this.Hf.X,timescale:this.Oi,tickcount:this.ge,execcount:this.tj,next_uid:this.gk,running_layout:this.qa.xa,start_time_offset:Date.now()-this.An},types:{},layouts:{},
events:{groups:{},cnds:{},acts:{},vars:{}}};b=0;for(g=this.P.length;b<g;b++)if(h=this.P[b],!h.Y&&!this.Pq(h)){l={instances:[]};eb(h.ea)&&(l.ex=a(h.ea));c=0;for(d=h.n.length;c<d;c++)l.instances.push(this.yq(h.n[c]));f.types[h.xa.toString()]=l}b=0;for(g=this.Zd.length;b<g;b++)c=this.Zd[b],f.layouts[c.xa.toString()]=c.Ba();d=f.events.groups;b=0;for(g=this.Nf.length;b<g;b++)c=this.Nf[b],d[c.xa.toString()]=this.ai[c.Dj].Sg;g=f.events.cnds;for(q in this.Uf)this.Uf.hasOwnProperty(q)&&(b=this.Uf[q],eb(b.ea)&&
(g[q]={ex:a(b.ea)}));g=f.events.acts;for(q in this.Mf)this.Mf.hasOwnProperty(q)&&(b=this.Mf[q],eb(b.ea)&&(g[q]={ex:a(b.ea)}));g=f.events.vars;for(q in this.Si)this.Si.hasOwnProperty(q)&&(b=this.Si[q],b.ym||b.parent&&!b.Pj||(g[q]=b.data));f.system=this.Je.Ba();return JSON.stringify(f)};e.prototype.Uu=function(){var b,a,g,c,d,h;this.qf={};b=0;for(a=this.P.length;b<a;b++)if(g=this.P[b],!g.Y)for(c=0,d=g.n.length;c<d;c++)h=g.n[c],this.qf[h.uid.toString()]=h};e.prototype.BC=function(b){var a;try{a=JSON.parse(b)}catch(g){return!1}if(!a.c2save||
1<a.version)return!1;this.Lj=!0;b=a.rt;this.Tb.reset();this.Tb.X=b.time;this.Hf.reset();this.Hf.X=b.walltime||0;this.Oi=b.timescale;this.ge=b.tickcount;this.tj=b.execcount;this.An=Date.now()-b.start_time_offset;var c=b.running_layout;if(c!==this.qa.xa)if(c=this.lt(c))this.Ns(c);else return;var d,h,l,q,f,t,e;t=a.types;for(h in t)if(t.hasOwnProperty(h)&&(q=this.im(parseInt(h,10)))&&!q.Y&&!this.Pq(q)){t[h].ex?q.ea=t[h].ex:fb(q.ea);f=q.n;l=t[h].instances;c=0;for(d=ra(f.length,l.length);c<d;c++)this.Hm(f[c],
l[c]);c=l.length;for(d=f.length;c<d;c++)this.td(f[c]);c=f.length;for(d=l.length;c<d;c++){f=null;if(q.Z.jg&&(f=this.qa.hm(l[c].w.l),!f))continue;f=this.Wf(q.xd,f,!1,0,0,!0);this.Hm(f,l[c])}q.Ki=!0}this.jc();this.Uu();d=a.layouts;for(h in d)d.hasOwnProperty(h)&&(c=this.lt(parseInt(h,10)))&&c.Ga(d[h]);d=a.events.groups;for(h in d)d.hasOwnProperty(h)&&(c=this.DB(parseInt(h,10)))&&this.ai[c.Dj]&&this.ai[c.Dj].zk(d[h]);c=a.events.cnds;for(h in this.Uf)this.Uf.hasOwnProperty(h)&&(c.hasOwnProperty(h)?this.Uf[h].ea=
c[h].ex:this.Uf[h].ea={});c=a.events.acts;for(h in this.Mf)this.Mf.hasOwnProperty(h)&&(c.hasOwnProperty(h)?this.Mf[h].ea=c[h].ex:this.Mf[h].ea={});c=a.events.vars;for(h in c)c.hasOwnProperty(h)&&this.Si.hasOwnProperty(h)&&(this.Si[h].data=c[h]);this.gk=b.next_uid;this.Lj=!1;c=0;for(d=this.Yl.length;c<d;++c)f=this.Yl[c],this.trigger(Object.getPrototypeOf(f.type.Z).j.aj,f);A(this.Yl);this.Je.Ga(a.system);c=0;for(d=this.P.length;c<d;c++)if(q=this.P[c],!q.Y&&!this.Pq(q))for(a=0,h=q.n.length;a<h;a++){f=
q.n[a];if(q.xc)for(t=f.Cj(),A(f.siblings),b=0,l=q.Tc.length;b<l;b++)e=q.Tc[b],q!==e&&f.siblings.push(e.n[t]);f.ne&&f.ne();if(f.da)for(b=0,l=f.da.length;b<l;b++)t=f.da[b],t.ne&&t.ne()}return this.S=!0};e.prototype.yq=function(b,g){var c,d,h,l,q;l=b.type;h=l.Z;var f={};g?f.c2=!0:f.uid=b.uid;eb(b.ea)&&(f.ex=a(b.ea));if(b.Sa&&b.Sa.length)for(f.ivs={},c=0,d=b.Sa.length;c<d;c++)f.ivs[b.type.wp[c].toString()]=b.Sa[c];if(h.jg){h={x:b.x,y:b.y,w:b.width,h:b.height,l:b.B.xa,zi:b.zd()};0!==b.C&&(h.a=b.C);1!==
b.opacity&&(h.o=b.opacity);.5!==b.uc&&(h.hX=b.uc);.5!==b.vc&&(h.hY=b.vc);0!==b.yb&&(h.bm=b.yb);b.visible||(h.v=b.visible);b.Ue||(h.ce=b.Ue);-1!==b.fk&&(h.mts=b.fk);if(l.ja.length)for(h.fx=[],c=0,d=l.ja.length;c<d;c++)q=l.ja[c],h.fx.push({name:q.name,active:b.Lf[q.index],params:b.ab[q.index]});f.w=h}if(b.da&&b.da.length)for(f.behs={},c=0,d=b.da.length;c<d;c++)l=b.da[c],l.Ba&&(f.behs[l.type.xa.toString()]=l.Ba());b.Ba&&(f.data=b.Ba());return f};e.prototype.GB=function(b,a){var g,c;g=0;for(c=b.wp.length;g<
c;g++)if(b.wp[g]===a)return g;return-1};e.prototype.CB=function(b,a){var g,c;g=0;for(c=b.da.length;g<c;g++)if(b.da[g].type.xa===a)return g;return-1};e.prototype.Hm=function(b,a,g){var c,d,h,l,q;q=b.type;var f=q.Z;if(g){if(!a.c2)return}else b.uid=a.uid;a.ex?b.ea=a.ex:fb(b.ea);if(d=a.ivs)for(c in d)d.hasOwnProperty(c)&&(h=this.GB(q,parseInt(c,10)),0>h||h>=b.Sa.length||(l=d[c],null===l&&(l=NaN),b.Sa[h]=l));if(f.jg){h=a.w;b.B.xa!==h.l&&(d=b.B,b.B=this.qa.hm(h.l),b.B?(d.Ei(b,!0),b.B.hj(b,!0),b.aa(),b.B.Bk(0)):
(b.B=d,g||this.td(b)));b.x=h.x;b.y=h.y;b.width=h.w;b.height=h.h;b.ke=h.zi;b.C=h.hasOwnProperty("a")?h.a:0;b.opacity=h.hasOwnProperty("o")?h.o:1;b.uc=h.hasOwnProperty("hX")?h.hX:.5;b.vc=h.hasOwnProperty("hY")?h.hY:.5;b.visible=h.hasOwnProperty("v")?h.v:!0;b.Ue=h.hasOwnProperty("ce")?h.ce:!0;b.fk=h.hasOwnProperty("mts")?h.mts:-1;b.yb=h.hasOwnProperty("bm")?h.bm:0;b.Ve=rb(b.yb);this.N&&sb(b,b.yb,this.N);b.aa();if(h.hasOwnProperty("fx"))for(g=0,d=h.fx.length;g<d;g++)l=q.hp(h.fx[g].name),0>l||(b.Lf[l]=
h.fx[g].active,b.ab[l]=h.fx[g].params);b.Id()}if(q=a.behs)for(c in q)q.hasOwnProperty(c)&&(g=this.CB(b,parseInt(c,10)),0>g||b.da[g].Ga(q[c]));a.data&&b.Ga(a.data)};e.prototype.Vs=function(b,a,g){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+b,function(b){b.file(a,g)},g)};e.prototype.Xs=function(b,a,g){this.Vs(b,function(b){var c=new FileReader;c.onload=function(b){a(b.target.result)};c.onerror=g;c.readAsText(b)},g)};var Z=[],da=0;e.prototype.Sp=function(){if(Z.length&&
!(8<=da)){da++;var b=Z.shift();this.vA(b.filename,b.XD,b.TA)}};e.prototype.Ws=function(b,a,g){var c=this;Z.push({filename:b,XD:function(b){da--;c.Sp();a(b)},TA:function(b){da--;c.Sp();g(b)}});this.Sp()};e.prototype.vA=function(b,a,g){this.Vs(b,function(b){var g=new FileReader;g.onload=function(b){a(b.target.result)};g.readAsArrayBuffer(b)},g)};e.prototype.wB=function(b,a,g){var c="",h=b.toLowerCase(),d=h.substr(h.length-4),h=h.substr(h.length-5);".mp4"===d?c="video/mp4":".webm"===h?c="video/webm":
".m4a"===d?c="audio/mp4":".mp3"===d&&(c="audio/mpeg");this.Ws(b,function(b){b=URL.createObjectURL(new Blob([b],{type:c}));a(b)},g)};e.prototype.Bt=function(b){return/^(?:[a-z]+:)?\/\//.test(b)||"data:"===b.substr(0,5)||"blob:"===b.substr(0,5)};e.prototype.wn=function(b,a){this.Nj&&!this.Bt(a)?this.wB(a,function(a){b.src=a},function(b){alert("Failed to load image: "+b)}):b.src=a};e.prototype.un=function(b,a){"undefined"!==typeof b.imageSmoothingEnabled?b.imageSmoothingEnabled=a:(b.webkitImageSmoothingEnabled=
a,b.mozImageSmoothingEnabled=a,b.msImageSmoothingEnabled=a)};fc=function(b){return new e(document.getElementById(b))};gc=function(b,a){return new e({dc:!0,width:b,height:a})};window.cr_createRuntime=fc;window.cr_createDCRuntime=gc;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var b=document.createElement("screencanvas")||document.createElement("canvas");b.mi=!0;document.body.appendChild(b);b=new e(b);window.c2runtime=b;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,
window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return b};window.createEjectaRuntime=function(){var b=new e(document.getElementById("canvas"));window.c2runtime=b;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return b}})();window.cr_getC2Runtime=function(){var e=document.getElementById("c2canvas");return e?e.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(e,m){var p=window.cr_getC2Runtime();p&&p.Ls(e,m)};
window.cr_sizeCanvas=function(e,m){if(0!==e&&0!==m){var p=window.cr_getC2Runtime();p&&p.setSize(e,m)}};window.cr_setSuspended=function(e){var m=window.cr_getC2Runtime();m&&m.setSuspended(e)};
(function(){function e(b,a){this.b=b;this.Mg=null;this.scrollX=this.b.Pb/2;this.scrollY=this.b.Ob/2;this.scale=1;this.C=0;this.Xh=!0;this.name=a[0];this.ZC=a[1];this.YC=a[2];this.width=a[1];this.height=a[2];this.Ev=a[3];this.nv=a[4];this.xa=a[5];var g=a[6],c,d;this.ma=[];this.Hj=[];c=0;for(d=g.length;c<d;c++){var f=new hc(this,g[c]);f.yu=c;this.ma.push(f)}g=a[7];this.gg=[];c=0;for(d=g.length;c<d;c++){var f=g[c],e=this.b.P[f[1]];e.xd||(e.xd=f);this.gg.push(f);-1===this.Hj.indexOf(e)&&this.Hj.push(e)}this.ja=
[];this.Ea=[];this.Af=!0;this.ab=[];c=0;for(d=a[8].length;c<d;c++)this.ja.push({id:a[8][c][0],name:a[8][c][1],xb:-1,eb:!1,Jb:!0,index:c}),this.ab.push(a[8][c][2].slice(0));this.Id();this.vg=new wa(0,0,1,1);this.rq=new wa(0,0,1,1);this.tg={}}function m(b,a){return b.ke-a.ke}function p(b,a){this.Ub=b;this.b=b.b;this.n=[];this.scale=1;this.C=0;this.Ze=!1;this.Ef=new wa(0,0,0,0);this.yv=new xa;this.Qa=this.Oa=this.Ra=this.Na=0;this.Ch=!1;this.If=-1;this.Ko=0;this.name=a[0];this.index=a[1];this.xa=a[2];
this.visible=a[3];this.kc=a[4];this.he=a[5];this.Jc=a[6];this.Kc=a[7];this.opacity=a[8];this.am=a[9];this.sd=a[10];this.qc=a[11];this.yb=a[12];this.PA=a[13];this.Ve="source-over";this.cc=this.ic=0;this.hc=null;this.mf=n();this.be=!0;this.pi=new wa(0,0,-1,-1);this.ac=new wa(0,0,-1,-1);this.sd&&(this.hc=new qb(this.b.Pb,this.b.Ob));this.Ge=!1;var g=a[14],c,d;this.tv=[];this.hd=[];this.oj=[];c=0;for(d=g.length;c<d;c++){var f=g[c],e=this.b.P[f[1]];e.xd||(e.xd=f,e.Js=this.index);this.hd.push(f);-1===this.Ub.Hj.indexOf(e)&&
this.Ub.Hj.push(e)}Fa(this.tv,this.hd);this.ja=[];this.Ea=[];this.Af=!0;this.ab=[];c=0;for(d=a[15].length;c<d;c++)this.ja.push({id:a[15][c][0],name:a[15][c][1],xb:-1,eb:!1,Jb:!0,index:c}),this.ab.push(a[15][c][2].slice(0));this.Id();this.vg=new wa(0,0,1,1);this.rq=new wa(0,0,1,1)}function n(){return a.length?a.pop():[]}function r(b){A(b);a.push(b)}e.prototype.ID=function(b){var a=b.type.xa.toString();this.tg.hasOwnProperty(a)||(this.tg[a]=[]);this.tg[a].push(this.b.yq(b))};e.prototype.pt=function(){var b=
this.ma[0];return!b.he&&1===b.opacity&&!b.am&&b.visible};e.prototype.Id=function(){A(this.Ea);this.Af=!0;var b,a,g;b=0;for(a=this.ja.length;b<a;b++)g=this.ja[b],g.Jb&&(this.Ea.push(g),g.eb||(this.Af=!1))};e.prototype.zj=function(b){var a,g,c;a=0;for(g=this.ja.length;a<g;a++)if(c=this.ja[a],c.name===b)return c;return null};var k=[],f=!0;e.prototype.Fq=function(){this.nv&&(this.Mg=this.b.Wo[this.nv],this.Mg.Tq());this.b.qa=this;this.width=this.ZC;this.height=this.YC;this.scrollX=this.b.Pb/2;this.scrollY=
this.b.Ob/2;var b,a,g,c,d,e,n;b=0;for(g=this.b.P.length;b<g;b++)if(a=this.b.P[b],!a.Y)for(d=a.n,a=0,c=d.length;a<c;a++)if(e=d[a],e.B){var q=e.B.yu;q>=this.ma.length&&(q=this.ma.length-1);e.B=this.ma[q];-1===e.B.n.indexOf(e)&&e.B.n.push(e);e.B.Ch=!0}if(!f)for(b=0,g=this.ma.length;b<g;++b)this.ma[b].n.sort(m);A(k);this.dA();b=0;for(g=this.ma.length;b<g;b++)e=this.ma[b],e.pA(),e.Pn();d=!1;if(!this.Xh){for(n in this.tg)if(this.tg.hasOwnProperty(n)&&(a=this.b.im(parseInt(n,10)))&&!a.Y&&this.b.Qq(a)){c=
this.tg[n];b=0;for(g=c.length;b<g;b++){e=null;if(a.Z.jg&&(e=this.hm(c[b].w.l),!e))continue;e=this.b.Wf(a.xd,e,!1,0,0,!0);this.b.Hm(e,c[b]);d=!0;k.push(e)}A(c)}b=0;for(g=this.ma.length;b<g;b++)this.ma[b].n.sort(m),this.ma[b].Ch=!0}d&&(this.b.jc(),this.b.Uu());for(b=0;b<k.length;b++)if(e=k[b],e.type.xc)for(g=e.Cj(),a=0,c=e.type.Tc.length;a<c;a++)n=e.type.Tc[a],e.type!==n&&(n.n.length>g?e.siblings.push(n.n[g]):n.xd&&(d=this.b.Wf(n.xd,e.B,!0,e.x,e.y,!0),this.b.jc(),n.On(),e.siblings.push(d),k.push(d)));
b=0;for(g=this.gg.length;b<g;b++)e=this.gg[b],a=this.b.P[e[1]],a.xc||this.b.Wf(this.gg[b],null,!0);this.b.mj=null;this.b.jc();if(this.b.Ya&&!this.b.G)for(b=0,g=this.b.P.length;b<g;b++)n=this.b.P[b],!n.Y&&n.n.length&&n.hn&&n.hn(this.b.Ya);if(this.b.Lj)Fa(this.b.Yl,k);else for(b=0,g=k.length;b<g;b++)e=k[b],this.b.trigger(Object.getPrototypeOf(e.type.Z).j.aj,e);A(k);this.b.Lj||this.b.trigger(E.prototype.j.Gr,null);this.Xh=!1};e.prototype.oA=function(){var b,a,g,c,d;a=b=0;for(g=this.gg.length;b<g;b++)c=
this.gg[b],d=this.b.P[c[1]],d.global?d.xc||this.b.Wf(c,null,!0):(this.gg[a]=c,a++);Ea(this.gg,a)};e.prototype.VD=function(){this.b.Lj||this.b.trigger(E.prototype.j.Jx,null);this.b.yp=!0;A(this.b.Je.Qc);var b,a,g,c,d,e;if(!this.Xh)for(b=0,a=this.ma.length;b<a;b++)for(this.ma[b].Vq(),d=this.ma[b].n,g=0,c=d.length;g<c;g++)e=d[g],e.type.global||this.b.Qq(e.type)&&this.ID(e);b=0;for(a=this.ma.length;b<a;b++){d=this.ma[b].n;g=0;for(c=d.length;g<c;g++)e=d[g],e.type.global||this.b.td(e);this.b.jc();A(d);
this.ma[b].Ch=!0}b=0;for(a=this.b.P.length;b<a;b++)if(d=this.b.P[b],!(d.global||d.Z.jg||d.Z.zn||d.Y)){g=0;for(c=d.n.length;g<c;g++)this.b.td(d.n[g]);this.b.jc()}f=!1;this.b.yp=!1};new wa(0,0,0,0);e.prototype.lc=function(b){var a,c=b,d=!1,f=!this.b.fd;f&&(this.b.Fm||(this.b.Fm=document.createElement("canvas"),a=this.b.Fm,a.width=this.b.ca,a.height=this.b.ba,this.b.Tt=a.getContext("2d"),d=!0),a=this.b.Fm,c=this.b.Tt,a.width!==this.b.ca&&(a.width=this.b.ca,d=!0),a.height!==this.b.ba&&(a.height=this.b.ba,
d=!0),d&&this.b.un(c,this.b.Pa));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.Ds&&!this.pt()&&c.clearRect(0,0,this.b.ca,this.b.ba);var e,k,d=0;for(e=this.ma.length;d<e;d++)k=this.ma[d],k.visible&&0<k.opacity&&11!==k.yb&&(k.n.length||!k.he)?k.lc(c):k.Pn();f&&b.drawImage(a,0,0,this.b.width,this.b.height)};e.prototype.Jg=function(b){b.cv(!0);this.b.Eb||(this.b.Eb=b.Gc(this.b.ca,this.b.ba,this.b.Pa));if(this.b.Eb.Gg!==this.b.ca||this.b.Eb.Fg!==this.b.ba)b.deleteTexture(this.b.Eb),this.b.Eb=
b.Gc(this.b.ca,this.b.ba,this.b.Pa);b.Ed(this.b.Eb);this.b.fd||b.yf(this.b.ca,this.b.ba);var a,c;for(a=this.ma.length-1;0<=a;--a)c=this.ma[a],c.visible&&1===c.opacity&&c.Af&&0===c.yb&&(c.n.length||!c.he)?c.Jg(b):c.Pn();b.cv(!1)};e.prototype.Bb=function(b){var a=0<this.Ea.length||this.b.Qi||!this.b.fd||this.b.Wa;if(a){this.b.Eb||(this.b.Eb=b.Gc(this.b.ca,this.b.ba,this.b.Pa));if(this.b.Eb.Gg!==this.b.ca||this.b.Eb.Fg!==this.b.ba)b.deleteTexture(this.b.Eb),this.b.Eb=b.Gc(this.b.ca,this.b.ba,this.b.Pa);
b.Ed(this.b.Eb);this.b.fd||b.yf(this.b.ca,this.b.ba)}else this.b.Eb&&(b.Ed(null),b.deleteTexture(this.b.Eb),this.b.Eb=null);this.b.Ds&&!this.pt()&&b.clear(0,0,0,0);var c,d,f;c=0;for(d=this.ma.length;c<d;c++)f=this.ma[c],f.visible&&0<f.opacity&&(f.n.length||!f.he)?f.Bb(b):f.Pn();a&&(0===this.Ea.length||1===this.Ea.length&&this.b.fd?(1===this.Ea.length?(a=this.Ea[0].index,b.Oc(this.Ea[0].xb),b.Ii(null,1/this.b.ca,1/this.b.ba,0,0,1,1,this.scale,this.C,0,0,this.b.ca/2,this.b.ba/2,this.b.Tb.X,this.ab[a]),
b.jn(this.Ea[0].xb)&&(this.b.S=!0)):b.Oc(0),this.b.fd||b.yf(this.b.width,this.b.height),b.Ed(null),b.av(!1),b.xf(1),b.pc(this.b.Eb),b.Zu(),b.Dd(),b.rd(),a=this.b.width/2,c=this.b.height/2,b.uh(-a,c,a,c,a,-c,-a,-c),b.pc(null),b.av(!0)):this.tq(b,null,null,null))};e.prototype.Bj=function(){return 0<this.Ea.length||this.b.Qi||!this.b.fd||this.b.Wa?this.b.Eb:null};e.prototype.mt=function(){var b=this.ma[0].nc(),a,c,d;a=1;for(c=this.ma.length;a<c;a++)d=this.ma[a],(0!==d.Jc||0!==d.Kc)&&d.nc()<b&&(b=d.nc());
return b};e.prototype.Xu=function(b){if(!this.Ev){var a=1/this.mt()*this.b.ca/2;b>this.width-a&&(b=this.width-a);b<a&&(b=a)}this.scrollX!==b&&(this.scrollX=b,this.b.S=!0)};e.prototype.Yu=function(b){if(!this.Ev){var a=1/this.mt()*this.b.ba/2;b>this.height-a&&(b=this.height-a);b<a&&(b=a)}this.scrollY!==b&&(this.scrollY=b,this.b.S=!0)};e.prototype.dA=function(){this.Xu(this.scrollX);this.Yu(this.scrollY)};e.prototype.tq=function(b,a,c,d){var f=c?c.Ea:a?a.Ea:this.Ea,e=1,k=0,q=0,u=0,n=this.b.ca,r=this.b.ba;
c?(e=c.B.nc(),k=c.B.ob(),q=c.B.Na,u=c.B.Oa,n=c.B.Ra,r=c.B.Qa):a&&(e=a.nc(),k=a.ob(),q=a.Na,u=a.Oa,n=a.Ra,r=a.Qa);var m=this.b.bp,p,C,w,y,K=0,M=1,T,U,I=this.b.ca,D=this.b.ba,Z=I/2,da=D/2,B=a?a.vg:this.vg,z=a?a.rq:this.rq,x=0,P=0,F=0,G=0,N=I,Ha=I,S=D,oa=D,la=w=0;y=c?c.B.ob():0;if(c){p=0;for(C=f.length;p<C;p++)w+=b.KB(f[p].xb),la+=b.LB(f[p].xb);G=c.$a;x=a.la(G.left,G.top,!0,!0);F=a.la(G.left,G.top,!1,!0);N=a.la(G.right,G.bottom,!0,!0);S=a.la(G.right,G.bottom,!1,!0);0!==y&&(p=a.la(G.right,G.top,!0,!0),
C=a.la(G.right,G.top,!1,!0),P=a.la(G.left,G.bottom,!0,!0),G=a.la(G.left,G.bottom,!1,!0),y=Math.min(x,N,p,P),N=Math.max(x,N,p,P),x=y,y=Math.min(F,S,C,G),S=Math.max(F,S,C,G),F=y);x-=w;F-=la;N+=w;S+=la;z.left=x/I;z.top=1-F/D;z.right=N/I;z.bottom=1-S/D;P=x=ta(x);G=F=ta(F);Ha=N=ua(N);oa=S=ua(S);P-=w;G-=la;Ha+=w;oa+=la;0>x&&(x=0);0>F&&(F=0);N>I&&(N=I);S>D&&(S=D);0>P&&(P=0);0>G&&(G=0);Ha>I&&(Ha=I);oa>D&&(oa=D);B.left=x/I;B.top=1-F/D;B.right=N/I;B.bottom=1-S/D}else B.left=z.left=0,B.top=z.top=0,B.right=z.right=
1,B.bottom=z.bottom=1;la=c&&(b.vk(f[0].xb)||0!==w||0!==la||1!==c.opacity||c.type.Z.uu)||a&&!c&&1!==a.opacity;b.Zu();if(la){m[K]||(m[K]=b.Gc(I,D,this.b.Pa));if(m[K].Gg!==I||m[K].Fg!==D)b.deleteTexture(m[K]),m[K]=b.Gc(I,D,this.b.Pa);b.Oc(0);b.Ed(m[K]);U=oa-G;b.clearRect(P,D-G-U,Ha-P,U);c?c.Bb(b):(b.pc(this.b.Mb),b.xf(a.opacity),b.Dd(),b.translate(-Z,-da),b.rd(),b.ae(x,S,N,S,N,F,x,F,B));z.left=z.top=0;z.right=z.bottom=1;c&&(y=B.top,B.top=B.bottom,B.bottom=y);K=1;M=0}b.xf(1);w=f.length-1;var Ia=b.oq(f[w].xb)||
!a&&!c&&!this.b.fd;p=y=0;for(C=f.length;p<C;p++){m[K]||(m[K]=b.Gc(I,D,this.b.Pa));if(m[K].Gg!==I||m[K].Fg!==D)b.deleteTexture(m[K]),m[K]=b.Gc(I,D,this.b.Pa);b.Oc(f[p].xb);y=f[p].index;b.jn(f[p].xb)&&(this.b.S=!0);0!=p||la?(b.Ii(d,1/I,1/D,z.left,z.top,z.right,z.bottom,e,k,q,u,(q+n)/2,(u+r)/2,this.b.Tb.X,c?c.ab[y]:a?a.ab[y]:this.ab[y]),b.pc(null),p!==w||Ia?(b.Ed(m[K]),U=oa-G,T=D-G-U,b.clearRect(P,T,Ha-P,U)):(c?b.wf(c.ic,c.cc):a&&b.wf(a.ic,a.cc),b.Ed(d)),b.pc(m[M]),b.Dd(),b.translate(-Z,-da),b.rd(),
b.ae(x,S,N,S,N,F,x,F,B),p!==w||Ia||b.pc(null)):(b.Ed(m[K]),U=oa-G,T=D-G-U,b.clearRect(P,T,Ha-P,U),c?(c.Ab&&c.Ab.T?(T=c.Ab.T,M=1/T.width,T=1/T.height):(M=1/c.width,T=1/c.height),b.Ii(d,M,T,z.left,z.top,z.right,z.bottom,e,k,q,u,(q+n)/2,(u+r)/2,this.b.Tb.X,c.ab[y]),c.Bb(b)):(b.Ii(d,1/I,1/D,0,0,1,1,e,k,q,u,(q+n)/2,(u+r)/2,this.b.Tb.X,a?a.ab[y]:this.ab[y]),b.pc(a?this.b.Mb:this.b.Eb),b.Dd(),b.translate(-Z,-da),b.rd(),b.ae(x,S,N,S,N,F,x,F,B)),z.left=z.top=0,z.right=z.bottom=1,c&&!Ia&&(y=S,S=F,F=y));K=0===
K?1:0;M=0===K?1:0}Ia&&(b.Oc(0),c?b.wf(c.ic,c.cc):a?b.wf(a.ic,a.cc):this.b.fd||(b.yf(this.b.width,this.b.height),Z=this.b.width/2,da=this.b.height/2,F=x=0,N=this.b.width,S=this.b.height),b.Ed(d),b.pc(m[M]),b.Dd(),b.translate(-Z,-da),b.rd(),c&&1===f.length&&!la?b.ae(x,F,N,F,N,S,x,S,B):b.ae(x,S,N,S,N,F,x,F,B),b.pc(null))};e.prototype.hm=function(b){var a,c;a=0;for(c=this.ma.length;a<c;a++)if(this.ma[a].xa===b)return this.ma[a];return null};e.prototype.Ba=function(){var b,a,c,d={sx:this.scrollX,sy:this.scrollY,
s:this.scale,a:this.C,w:this.width,h:this.height,fv:this.Xh,persist:this.tg,fx:[],layers:{}};b=0;for(a=this.ja.length;b<a;b++)c=this.ja[b],d.fx.push({name:c.name,active:c.Jb,params:this.ab[c.index]});b=0;for(a=this.ma.length;b<a;b++)c=this.ma[b],d.layers[c.xa.toString()]=c.Ba();return d};e.prototype.Ga=function(b){var a,c,d,f;this.scrollX=b.sx;this.scrollY=b.sy;this.scale=b.s;this.C=b.a;this.width=b.w;this.height=b.h;this.tg=b.persist;"undefined"!==typeof b.fv&&(this.Xh=b.fv);var e=b.fx;a=0;for(c=
e.length;a<c;a++)if(d=this.zj(e[a].name))d.Jb=e[a].active,this.ab[d.index]=e[a].params;this.Id();a=b.layers;for(f in a)a.hasOwnProperty(f)&&(b=this.hm(parseInt(f,10)))&&b.Ga(a[f])};Qb=e;p.prototype.Id=function(){A(this.Ea);this.Af=!0;var b,a,c;b=0;for(a=this.ja.length;b<a;b++)c=this.ja[b],c.Jb&&(this.Ea.push(c),c.eb||(this.Af=!1))};p.prototype.zj=function(b){var a,c,d;a=0;for(c=this.ja.length;a<c;a++)if(d=this.ja[a],d.name===b)return d;return null};p.prototype.pA=function(){var b,a,c,d,f,e;a=b=0;
for(c=this.hd.length;b<c;b++){d=this.hd[b];f=this.b.P[d[1]];e=this.b.Qq(f);f=!0;if(!e||this.Ub.Xh){d=this.b.Wf(d,this,!0);if(!d)continue;k.push(d);d.type.global&&(f=!1,this.oj.push(d.uid))}f&&(this.hd[a]=this.hd[b],a++)}this.hd.length=a;this.b.jc();!this.b.J&&this.ja.length&&(this.yb=this.PA);this.Ve=rb(this.yb);this.b.N&&sb(this,this.yb,this.b.N);this.be=!0};p.prototype.Ei=function(b,a){var c=Ja(this.n,b);0>c||(a&&this.sd&&b.Mc&&b.Mc.right>=b.Mc.left&&(b.Ma(),this.hc.update(b,b.Mc,null),b.Mc.set(0,
0,-1,-1)),c===this.n.length-1?this.n.pop():(Da(this.n,c),this.Bk(c)),this.be=!0)};p.prototype.hj=function(b,a){b.ke=this.n.length;this.n.push(b);a&&this.sd&&b.Mc&&b.aa();this.be=!0};p.prototype.iD=function(b){this.n.unshift(b);this.Bk(0)};p.prototype.JC=function(b,a,c){var d=b.zd();a=a.zd();Da(this.n,d);d<a&&a--;c&&a++;a===this.n.length?this.n.push(b):this.n.splice(a,0,b);this.Bk(d<a?d:a)};p.prototype.Bk=function(b){-1===this.If?this.If=b:b<this.If&&(this.If=b);this.be=this.Ch=!0};p.prototype.Vq=
function(){if(this.Ch){-1===this.If&&(this.If=0);var b,a,c;if(this.sd)for(b=this.If,a=this.n.length;b<a;++b)c=this.n[b],c.ke=b,this.hc.FC(c.Mc);else for(b=this.If,a=this.n.length;b<a;++b)this.n[b].ke=b;this.Ch=!1;this.If=-1}};p.prototype.nc=function(b){return this.HB()*(this.b.fd||b?this.b.ij:1)};p.prototype.HB=function(){return(this.scale*this.Ub.scale-1)*this.qc+1};p.prototype.ob=function(){return this.Ze?0:Ra(this.Ub.C+this.C)};var a=[],c=[],d=[];p.prototype.lp=function(){this.Vq();this.hc.mn(this.Na,
this.Oa,this.Ra,this.Qa,d);if(!d.length)return n();if(1===d.length){var b=n();Fa(b,d[0]);A(d);return b}for(var a=!0;1<d.length;){for(var b=d,g=void 0,l=void 0,f=void 0,e=void 0,k=void 0,g=0,l=b.length;g<l-1;g+=2){var f=b[g],e=b[g+1],k=n(),q=f,u=e,m=k,p=0,R=0,Q=0,C=q.length,w=u.length,y=void 0,K=void 0;for(m.length=C+w;p<C&&R<w;++Q)y=q[p],K=u[R],y.ke<K.ke?(m[Q]=y,++p):(m[Q]=K,++R);for(;p<C;++p,++Q)m[Q]=q[p];for(;R<w;++R,++Q)m[Q]=u[R];a||(r(f),r(e));c.push(k)}1===l%2&&(a?(f=n(),Fa(f,b[l-1]),c.push(f)):
c.push(b[l-1]));Fa(b,c);A(c);a=!1}b=d[0];A(d);return b};p.prototype.lc=function(b){this.Ge=this.am||1!==this.opacity||0!==this.yb;var a=this.b.canvas,c=b,d=!1;this.Ge&&(this.b.Em||(this.b.Em=document.createElement("canvas"),a=this.b.Em,a.width=this.b.ca,a.height=this.b.ba,this.b.St=a.getContext("2d"),d=!0),a=this.b.Em,c=this.b.St,a.width!==this.b.ca&&(a.width=this.b.ca,d=!0),a.height!==this.b.ba&&(a.height=this.b.ba,d=!0),d&&this.b.un(c,this.b.Pa),this.he&&c.clearRect(0,0,this.b.ca,this.b.ba));c.globalAlpha=
1;c.globalCompositeOperation="source-over";this.he||(c.fillStyle="rgb("+this.kc[0]+","+this.kc[1]+","+this.kc[2]+")",c.fillRect(0,0,this.b.ca,this.b.ba));c.save();this.Ze=!0;var d=this.Va(0,0,!0,!0),f=this.Va(0,0,!1,!0);this.Ze=!1;this.b.md&&(d=Math.round(d),f=Math.round(f));this.pn(d,f,c);var e=this.nc();c.scale(e,e);c.translate(-d,-f);this.sd?(this.ac.left=this.hc.Dc(this.Na),this.ac.top=this.hc.Ec(this.Oa),this.ac.right=this.hc.Dc(this.Ra),this.ac.bottom=this.hc.Ec(this.Qa),this.be||!this.ac.qj(this.pi)?
(r(this.mf),d=this.lp(),this.be=!1,this.pi.Nh(this.ac)):d=this.mf):d=this.n;for(var k,q=null,f=0,e=d.length;f<e;++f)k=d[f],k!==q&&(this.KA(k,c),q=k);this.sd&&(this.mf=d);c.restore();this.Ge&&(b.globalCompositeOperation=this.Ve,b.globalAlpha=this.opacity,b.drawImage(a,0,0))};p.prototype.KA=function(b,a){if(b.visible&&0!==b.width&&0!==b.height){b.Ma();var c=b.$a;c.right<this.Na||c.bottom<this.Oa||c.left>this.Ra||c.top>this.Qa||(a.globalCompositeOperation=b.Ve,b.lc(a))}};p.prototype.Pn=function(){this.Ze=
!0;var b=this.Va(0,0,!0,!0),a=this.Va(0,0,!1,!0);this.Ze=!1;this.b.md&&(b=Math.round(b),a=Math.round(a));this.pn(b,a,null)};p.prototype.pn=function(b,a,c){var d=this.nc();this.Na=b;this.Oa=a;this.Ra=b+1/d*this.b.ca;this.Qa=a+1/d*this.b.ba;this.Na>this.Ra&&(b=this.Na,this.Na=this.Ra,this.Ra=b);this.Oa>this.Qa&&(b=this.Oa,this.Oa=this.Qa,this.Qa=b);b=this.ob();0!==b&&(c&&(c.translate(this.b.ca/2,this.b.ba/2),c.rotate(-b),c.translate(this.b.ca/-2,this.b.ba/-2)),this.Ef.set(this.Na,this.Oa,this.Ra,this.Qa),
this.Ef.offset((this.Na+this.Ra)/-2,(this.Oa+this.Qa)/-2),this.yv.kv(this.Ef,b),this.yv.xs(this.Ef),this.Ef.offset((this.Na+this.Ra)/2,(this.Oa+this.Qa)/2),this.Na=this.Ef.left,this.Oa=this.Ef.top,this.Ra=this.Ef.right,this.Qa=this.Ef.bottom)};p.prototype.Jg=function(b){if(this.Ge=this.am){this.b.Mb||(this.b.Mb=b.Gc(this.b.ca,this.b.ba,this.b.Pa));if(this.b.Mb.Gg!==this.b.ca||this.b.Mb.Fg!==this.b.ba)b.deleteTexture(this.b.Mb),this.b.Mb=b.Gc(this.b.ca,this.b.ba,this.b.Pa);b.Ed(this.b.Mb)}this.Ze=
!0;var a=this.Va(0,0,!0,!0),c=this.Va(0,0,!1,!0);this.Ze=!1;this.b.md&&(a=Math.round(a),c=Math.round(c));this.pn(a,c,null);a=this.nc();b.Dd();b.scale(a,a);b.qn(-this.ob());b.translate((this.Na+this.Ra)/-2,(this.Oa+this.Qa)/-2);b.rd();this.sd?(this.ac.left=this.hc.Dc(this.Na),this.ac.top=this.hc.Ec(this.Oa),this.ac.right=this.hc.Dc(this.Ra),this.ac.bottom=this.hc.Ec(this.Qa),this.be||!this.ac.qj(this.pi)?(r(this.mf),a=this.lp(),this.be=!1,this.pi.Nh(this.ac)):a=this.mf):a=this.n;for(var d,f=null,c=
a.length-1;0<=c;--c)d=a[c],d!==f&&(this.MA(a[c],b),f=d);this.sd&&(this.mf=a);this.he||(this.Ko=this.b.Lg++,b.vn(this.Ko),b.$u(1,1,1),b.dt(),b.yD())};p.prototype.Bb=function(b){var a=0,c=0;if(this.Ge=this.am||1!==this.opacity||0<this.Ea.length||0!==this.yb){this.b.Mb||(this.b.Mb=b.Gc(this.b.ca,this.b.ba,this.b.Pa));if(this.b.Mb.Gg!==this.b.ca||this.b.Mb.Fg!==this.b.ba)b.deleteTexture(this.b.Mb),this.b.Mb=b.Gc(this.b.ca,this.b.ba,this.b.Pa);b.Ed(this.b.Mb);this.he&&b.clear(0,0,0,0)}this.he||(this.b.Wa?
(b.vn(this.Ko),b.$u(this.kc[0]/255,this.kc[1]/255,this.kc[2]/255),b.dt(),b.QD()):b.clear(this.kc[0]/255,this.kc[1]/255,this.kc[2]/255,1));this.Ze=!0;var d=this.Va(0,0,!0,!0),a=this.Va(0,0,!1,!0);this.Ze=!1;this.b.md&&(d=Math.round(d),a=Math.round(a));this.pn(d,a,null);d=this.nc();b.Dd();b.scale(d,d);b.qn(-this.ob());b.translate((this.Na+this.Ra)/-2,(this.Oa+this.Qa)/-2);b.rd();this.sd?(this.ac.left=this.hc.Dc(this.Na),this.ac.top=this.hc.Ec(this.Oa),this.ac.right=this.hc.Dc(this.Ra),this.ac.bottom=
this.hc.Ec(this.Qa),this.be||!this.ac.qj(this.pi)?(r(this.mf),a=this.lp(),this.be=!1,this.pi.Nh(this.ac)):a=this.mf):a=this.n;var f,e,k=null,c=0;for(f=a.length;c<f;++c)e=a[c],e!==k&&(this.LA(a[c],b),k=e);this.sd&&(this.mf=a);this.Ge&&(a=this.Ea.length?this.Ea[0].xb:0,c=this.Ea.length?this.Ea[0].index:0,0===this.Ea.length||1===this.Ea.length&&!b.oq(a)&&1===this.opacity?(1===this.Ea.length?(b.Oc(a),b.Ii(this.Ub.Bj(),1/this.b.ca,1/this.b.ba,0,0,1,1,d,this.ob(),this.Na,this.Oa,(this.Na+this.Ra)/2,(this.Oa+
this.Qa)/2,this.b.Tb.X,this.ab[c]),b.jn(a)&&(this.b.S=!0)):b.Oc(0),b.Ed(this.Ub.Bj()),b.xf(this.opacity),b.pc(this.b.Mb),b.wf(this.ic,this.cc),b.Dd(),b.rd(),d=this.b.ca/2,a=this.b.ba/2,b.uh(-d,a,d,a,d,-a,-d,-a),b.pc(null)):this.Ub.tq(b,this,null,this.Ub.Bj()))};p.prototype.LA=function(b,a){if(b.visible&&0!==b.width&&0!==b.height){b.Ma();var c=b.$a;c.right<this.Na||c.bottom<this.Oa||c.left>this.Ra||c.top>this.Qa||(a.vn(b.Lg),b.Lv?this.NA(b,a):(a.Oc(0),a.wf(b.ic,b.cc),b.Bb(a)))}};p.prototype.MA=function(b,
a){if(b.visible&&0!==b.width&&0!==b.height){b.Ma();var c=b.$a;c.right<this.Na||c.bottom<this.Oa||c.left>this.Ra||c.top>this.Qa||(b.Lg=this.b.Lg++,0===b.yb&&1===b.opacity&&b.Af&&b.Jg&&(a.vn(b.Lg),b.Jg(a)))}};p.prototype.NA=function(b,a){var c=b.Ea[0].xb,d=b.Ea[0].index,f=this.nc();if(1!==b.Ea.length||a.oq(c)||a.mD(c)||(b.C||b.B.ob())&&a.vk(c)||1!==b.opacity||b.type.Z.uu)this.Ub.tq(a,this,b,this.Ge?this.b.Mb:this.Ub.Bj()),a.Dd(),a.scale(f,f),a.qn(-this.ob()),a.translate((this.Na+this.Ra)/-2,(this.Oa+
this.Qa)/-2),a.rd();else{a.Oc(c);a.wf(b.ic,b.cc);a.jn(c)&&(this.b.S=!0);var e=0,k=0,q=0,u=0;a.vk(c)&&(u=b.$a,e=this.la(u.left,u.top,!0,!0),k=this.la(u.left,u.top,!1,!0),q=this.la(u.right,u.bottom,!0,!0),u=this.la(u.right,u.bottom,!1,!0),e=e/windowWidth,k=1-k/windowHeight,q=q/windowWidth,u=1-u/windowHeight);var n;b.Ab&&b.Ab.T?(n=b.Ab.T,c=1/n.width,n=1/n.height):(c=1/b.width,n=1/b.height);a.Ii(this.Ge?this.b.Mb:this.Ub.Bj(),c,n,e,k,q,u,f,this.ob(),this.Na,this.Oa,(this.Na+this.Ra)/2,(this.Oa+this.Qa)/
2,this.b.Tb.X,b.ab[d]);b.Bb(a)}};p.prototype.Va=function(b,a,c,d){var f=this.b.devicePixelRatio;this.b.Zg&&(b*=f,a*=f);var f=this.b.Lu,e=this.b.Mu,f=(this.Ub.scrollX-f)*this.Jc+f,e=(this.Ub.scrollY-e)*this.Kc+e,k=f,q=e,u=1/this.nc(!d);d?(k-=this.b.ca*u/2,q-=this.b.ba*u/2):(k-=this.b.width*u/2,q-=this.b.height*u/2);k+=b*u;q+=a*u;a=this.ob();0!==a&&(k-=f,q-=e,b=Math.cos(a),a=Math.sin(a),d=k*b-q*a,q=q*b+k*a,k=d+f,q+=e);return c?k:q};p.prototype.la=function(b,a,c,d){var f=this.b.Lu,e=this.b.Mu,k=(this.Ub.scrollX-
f)*this.Jc+f,q=(this.Ub.scrollY-e)*this.Kc+e,e=k,f=q,u=this.ob();if(0!==u){b-=k;a-=q;var n=Math.cos(-u),u=Math.sin(-u),m=b*n-a*u;a=a*n+b*u;b=m+k;a+=q}k=1/this.nc(!d);d?(e-=this.b.ca*k/2,f-=this.b.ba*k/2):(e-=this.b.width*k/2,f-=this.b.height*k/2);e=(b-e)/k;f=(a-f)/k;b=this.b.devicePixelRatio;this.b.Zg&&!d&&(e/=b,f/=b);return c?e:f};p.prototype.Ba=function(){var b,a,c,d={s:this.scale,a:this.C,vl:this.Na,vt:this.Oa,vr:this.Ra,vb:this.Qa,v:this.visible,bc:this.kc,t:this.he,px:this.Jc,py:this.Kc,o:this.opacity,
zr:this.qc,fx:[],cg:this.oj,instances:[]};b=0;for(a=this.ja.length;b<a;b++)c=this.ja[b],d.fx.push({name:c.name,active:c.Jb,params:this.ab[c.index]});return d};p.prototype.Ga=function(b){var a,c,d;this.scale=b.s;this.C=b.a;this.Na=b.vl;this.Oa=b.vt;this.Ra=b.vr;this.Qa=b.vb;this.visible=b.v;this.kc=b.bc;this.he=b.t;this.Jc=b.px;this.Kc=b.py;this.opacity=b.o;this.qc=b.zr;this.oj=b.cg||[];Fa(this.hd,this.tv);var f=new ca;a=0;for(d=this.oj.length;a<d;++a)f.add(this.oj[a]);c=a=0;for(d=this.hd.length;a<
d;++a)f.contains(this.hd[a][2])||(this.hd[c]=this.hd[a],++c);Ea(this.hd,c);c=b.fx;a=0;for(d=c.length;a<d;a++)if(b=this.zj(c[a].name))b.Jb=c[a].active,this.ab[b.index]=c[a].params;this.Id();this.n.sort(m);this.Ch=!0};hc=p})();
(function(){function e(b,a){var c,d=b.length;switch(d){case 0:return!0;case 1:return b[0]===a[0];case 2:return b[0]===a[0]&&b[1]===a[1];default:for(c=0;c<d;c++)if(b[c]!==a[c])return!1;return!0}}function m(b,a){return b.index-a.index}function p(b){var a,c,d,g;2===b.length?b[0].index>b[1].index&&(a=b[0],b[0]=b[1],b[1]=a):2<b.length&&b.sort(m);b.length>=t.length&&(t.length=b.length+1);t[b.length]||(t[b.length]=[]);g=t[b.length];a=0;for(c=g.length;a<c;a++)if(d=g[a],e(b,d))return d;g.push(b);return b}
function n(b,a){this.b=b;this.Bv={};this.Us={};this.rp=!1;this.tt=new ca;this.Qo=[];this.Ao=[];this.name=a[0];var c=a[1];this.ag=[];var d,g;d=0;for(g=c.length;d<g;d++)this.xt(c[d],null,this.ag)}function r(b){this.type=b;this.n=[];this.ra=[];this.ta=!0}function k(b,a,c){this.sheet=b;this.parent=a;this.b=b.b;this.na=[];this.wg=[];this.qt=this.In=this.Mq=this.nm=this.group=this.Eq=!1;this.Kb=[];this.Kd=[];this.Gd=[];this.Dj="";this.Sg=this.nm=this.group=!1;this.Hl=null;c[1]&&(this.Dj=c[1][1].toLowerCase(),
this.group=!0,this.nm=!!c[1][0],this.Hl=[],this.Sg=this.nm,this.b.Nf.push(this),this.b.ai[this.Dj]=this);this.ld=c[2];this.xa=c[4];this.group||(this.b.ws[this.xa.toString()]=this);var d=c[5];b=0;for(a=d.length;b<a;b++){var g=new ic(this,d[b]);g.index=b;this.Kb.push(g);this.ss(g.type)}d=c[6];b=0;for(a=d.length;b<a;b++)g=new jc(this,d[b]),g.index=b,this.Kd.push(g);if(8===c.length)for(c=c[7],b=0,a=c.length;b<a;b++)this.sheet.xt(c[b],this,this.Gd);this.zm=!1;this.Kb.length&&(this.zm=null==this.Kb[0].type&&
this.Kb[0].ec==E.prototype.j.jr)}function f(b,a){var c,d,g;if(b&&(-1===a.indexOf(b)&&a.push(b),b.xc))for(c=0,d=b.Tc.length;c<d;c++)g=b.Tc[c],b!==g&&-1===a.indexOf(g)&&a.push(g)}function a(b,a){this.dd=b;this.sheet=b.sheet;this.b=b.b;this.W=[];this.pb=[];this.ea={};this.index=-1;this.fj=!1;this.ec=this.b.Jf(a[1]);this.trigger=0<a[3];this.Ts=2===a[3];this.Ae=a[4];this.ci=a[5];this.uC=a[6];this.xa=a[7];this.b.Uf[this.xa.toString()]=this;-1===a[0]?(this.type=null,this.Hb=this.xq,this.Dg=null,this.Pd=
-1):(this.type=this.b.P[a[0]],this.Hb=this.uC?this.GD:this.wq,a[2]?(this.Dg=this.type.fm(a[2]),this.Pd=this.type.dp(a[2])):(this.Dg=null,this.Pd=-1),this.dd.parent&&this.dd.parent.yn());this.Ts&&(this.Hb=this.HD);if(10===a.length){var c,d,g=a[9];c=0;for(d=g.length;c<d;c++){var f=new kc(this,g[c]);this.W.push(f)}this.pb.length=g.length}}function c(b,a){this.dd=b;this.sheet=b.sheet;this.b=b.b;this.W=[];this.pb=[];this.ea={};this.index=-1;this.fj=!1;this.ec=this.b.Jf(a[1]);-1===a[0]?(this.type=null,
this.Hb=this.xq,this.Dg=null,this.Pd=-1):(this.type=this.b.P[a[0]],this.Hb=this.wq,a[2]?(this.Dg=this.type.fm(a[2]),this.Pd=this.type.dp(a[2])):(this.Dg=null,this.Pd=-1));this.xa=a[3];this.b.Mf[this.xa.toString()]=this;if(6===a.length){var c,d,g=a[5];c=0;for(d=g.length;c<d;c++){var f=new kc(this,g[c]);this.W.push(f)}this.pb.length=g.length}}function d(){L++;v.length===L&&v.push(new lc);return v[L]}function b(b,a){this.Cd=b;this.dd=b.dd;this.sheet=b.sheet;this.b=b.b;this.type=a[0];this.se=null;this.Bf=
0;this.get=null;this.Es=0;this.Ub=null;this.key=0;this.object=null;this.index=0;this.Rk=this.yh=this.Rk=this.yh=this.Ys=this.Ng=this.Sk=null;this.Jd=!1;var c,d,g;switch(a[0]){case 0:case 7:this.se=new mc(this,a[1]);this.Bf=0;this.get=this.RB;break;case 1:this.se=new mc(this,a[1]);this.Bf=0;this.get=this.SB;break;case 5:this.se=new mc(this,a[1]);this.Bf=0;this.get=this.WB;break;case 3:case 8:this.Es=a[1];this.get=this.PB;break;case 6:this.Ub=this.b.Kp[a[1]];this.get=this.XB;break;case 9:this.key=a[1];
this.get=this.VB;break;case 4:this.object=this.b.P[a[1]];this.get=this.YB;this.dd.ss(this.object);this.Cd instanceof jc?this.dd.yn():this.dd.parent&&this.dd.parent.yn();break;case 10:this.index=a[1];b.type&&b.type.Y?(this.get=this.TB,this.Jd=!0):this.get=this.UB;break;case 11:this.Sk=a[1];this.Ng=null;this.get=this.QB;break;case 2:case 12:this.Ys=a[1];this.get=this.OB;break;case 13:for(this.get=this.ZB,this.yh=[],this.Rk=[],c=1,d=a.length;c<d;c++)g=new kc(this.Cd,a[c]),this.yh.push(g),this.Rk.push(0)}}
function h(b,a,c){this.sheet=b;this.parent=a;this.b=b.b;this.na=[];this.name=c[1];this.Tk=c[2];this.tp=c[3];this.Pj=!!c[4];this.ym=!!c[5];this.xa=c[6];this.b.Si[this.xa.toString()]=this;this.data=this.tp;this.parent?(this.kh=this.Pj||this.ym?-1:this.b.TD++,this.b.Wz.push(this)):(this.kh=-1,this.b.Vz.push(this))}function g(b,a,c){this.sheet=b;this.parent=a;this.b=b.b;this.na=[];this.Gj=null;this.eC=c[1];this.Jb=!0}function l(){this.vv=[];this.reset(null)}var t=[];n.prototype.toString=function(){return this.name};
n.prototype.xt=function(b,a,c){switch(b[0]){case 0:b=new nc(this,a,b);if(b.ld)for(c.push(b),c=0,a=b.Kb.length;c<a;c++)b.Kb[c].trigger&&this.yt(b,c);else b.Kt()?this.yt(b,0):c.push(b);break;case 1:b=new ec(this,a,b);c.push(b);break;case 2:b=new oc(this,a,b),c.push(b)}};n.prototype.wb=function(){var b,a;b=0;for(a=this.ag.length;b<a;b++)this.ag[b].wb(b<a-1&&this.ag[b+1].zm)};n.prototype.Tq=function(){A(this.Qo);A(this.Ao);this.rs(this);A(this.Ao)};n.prototype.rs=function(b){var a,c,d,g,f=b.Qo,l=b.Ao,
h=this.tt.je();a=0;for(c=h.length;a<c;++a)d=h[a],g=d.Gj,!d.Jb||b===g||-1<l.indexOf(g)||(l.push(g),g.rs(b),f.push(g))};n.prototype.Hb=function(b){this.b.EF||(this.rp=!0,b||(this.b.Dp=!0));var a,c;a=0;for(c=this.ag.length;a<c;a++){var d=this.ag[a];d.Hb();this.b.Jo(d.na);this.b.fg&&this.b.jc()}b||(this.b.Dp=!1)};n.prototype.yt=function(b,a){b.ld||this.b.Mn.push(b);var c,d,g=b.Kb[a],f;g.type?f=g.type.name:f="system";var l=(c=g.Ts)?this.Us:this.Bv;l[f]||(l[f]=[]);f=l[f];l=g.ec;if(c){if(g.W.length&&(g=
g.W[0],1===g.type&&2===g.se.type)){g=g.se.value.toLowerCase();c=0;for(d=f.length;c<d;c++)if(f[c].method==l){c=f[c].sj;c[g]?c[g].push([b,a]):c[g]=[[b,a]];return}c={};c[g]=[[b,a]];f.push({method:l,sj:c})}}else{c=0;for(d=f.length;c<d;c++)if(f[c].method==l){f[c].sj.push([b,a]);return}J&&l===J.prototype.j.Gh?f.unshift({method:l,sj:[[b,a]]}):f.push({method:l,sj:[[b,a]]})}};Rb=n;r.prototype.qp=function(){return this.ta?this.type.n.length:this.n.length};r.prototype.tc=function(){return this.ta?this.type.n:
this.n};r.prototype.tk=function(b){b&&(b.b.cb().kb.ld?(this.ta&&(A(this.n),Fa(this.ra,b.type.n),this.ta=!1),b=this.ra.indexOf(b),-1!==b&&(this.n.push(this.ra[b]),this.ra.splice(b,1))):(this.ta=!1,A(this.n),this.n[0]=b))};yb=r;window._c2hh_="ECECBB01B9FFEDE1408B98EFEB16E97C3B374213";k.prototype.wb=function(b){var a,c=this.parent;if(this.group)for(this.In=!0;c;){if(!c.group){this.In=!1;break}c=c.parent}this.Mq=!this.Kt()&&(!this.parent||this.parent.group&&this.parent.In);this.qt=!!b;this.wg=this.na.slice(0);
for(c=this.parent;c;){b=0;for(a=c.na.length;b<a;b++)this.Tz(c.na[b]);c=c.parent}this.na=p(this.na);this.wg=p(this.wg);b=0;for(a=this.Kb.length;b<a;b++)this.Kb[b].wb();b=0;for(a=this.Kd.length;b<a;b++)this.Kd[b].wb();b=0;for(a=this.Gd.length;b<a;b++)this.Gd[b].wb(b<a-1&&this.Gd[b+1].zm)};k.prototype.zk=function(b){if(this.Sg!==!!b){this.Sg=!!b;var a;b=0;for(a=this.Hl.length;b<a;++b)this.Hl[b].Gv();0<a&&this.b.qa.Mg&&this.b.qa.Mg.Tq()}};k.prototype.ss=function(b){f(b,this.na)};k.prototype.Tz=function(b){f(b,
this.wg)};k.prototype.yn=function(){this.Eq=!0;this.parent&&this.parent.yn()};k.prototype.Kt=function(){return this.Kb.length?this.Kb[0].trigger:!1};k.prototype.Hb=function(){var b,a,c=!1,d=this.b,g=this.b.cb();g.kb=this;var f=this.Kb;this.zm||(g.Uo=!1);if(this.ld){0===f.length&&(c=!0);g.zb=0;for(b=f.length;g.zb<b;g.zb++)a=f[g.zb],a.trigger||(a=a.Hb())&&(c=!0);(g.bh=c)&&this.rn()}else{g.zb=0;for(b=f.length;g.zb<b;g.zb++)if(a=f[g.zb].Hb(),!a){g.bh=!1;this.Mq&&d.fg&&d.jc();return}g.bh=!0;this.rn()}this.RA(g)};
k.prototype.RA=function(b){b.bh&&this.qt&&(b.Uo=!0);this.Mq&&this.b.fg&&this.b.jc()};k.prototype.ED=function(b){this.b.cb().kb=this;this.Kb[b].Hb()&&(this.rn(),this.b.cb().bh=!0)};k.prototype.rn=function(){var b=this.b.cb(),a;b.Rc=0;for(a=this.Kd.length;b.Rc<a;b.Rc++)if(this.Kd[b.Rc].Hb())return;this.Wu()};k.prototype.AD=function(){var b=this.b.cb(),a;for(a=this.Kd.length;b.Rc<a;b.Rc++)if(this.Kd[b.Rc].Hb())return;this.Wu()};k.prototype.Wu=function(){if(this.Gd.length){var b,a,c,d,g=this.Gd.length-
1;this.b.kn(this);if(this.Eq)for(b=0,a=this.Gd.length;b<a;b++)c=this.Gd[b],(d=!this.In||!this.group&&b<g)&&this.b.Fe(c.na),c.Hb(),d?this.b.nd(c.na):this.b.Jo(c.na);else for(b=0,a=this.Gd.length;b<a;b++)this.Gd[b].Hb();this.b.dn()}};k.prototype.FD=function(){var b=this.b.cb();b.kb=this;var a=!1,c;b.zb=0;for(c=this.Kb.length;b.zb<c;b.zb++)if(this.Kb[b.zb].Hb())a=!0;else if(!this.ld)return!1;return this.ld?a:!0};k.prototype.de=function(){this.b.tj++;var b=this.b.cb().zb,a=this.b.kn(this);if(!this.ld)for(a.zb=
b+1,b=this.Kb.length;a.zb<b;a.zb++)if(!this.Kb[a.zb].Hb()){this.b.dn();return}this.rn();this.b.dn()};k.prototype.mC=function(b){var a=b.index;if(0===a)return!0;for(--a;0<=a;--a)if(this.Kb[a].type===b.type)return!1;return!0};nc=k;a.prototype.wb=function(){var b,a,c;b=0;for(a=this.W.length;b<a;b++)c=this.W[b],c.wb(),c.Jd&&(this.fj=!0)};a.prototype.HD=function(){return!0};a.prototype.xq=function(){var b,a;b=0;for(a=this.W.length;b<a;b++)this.pb[b]=this.W[b].get();return $a(this.ec.apply(this.b.Je,this.pb),
this.ci)};a.prototype.GD=function(){var b,a;b=0;for(a=this.W.length;b<a;b++)this.pb[b]=this.W[b].get();b=this.ec.apply(this.Dg?this.Dg:this.type,this.pb);this.type.cd();return b};a.prototype.wq=function(){var b,a,c,d,g,f,l,h,e=this.type,k=e.ka(),t=this.dd.ld&&!this.trigger;a=0;var n=e.xc,v=e.Y,m=e.bf,r=this.Pd,p=-1<r,L=this.fj,B=this.W,z=this.pb,x=this.ci,P=this.ec,F;if(L)for(a=0,g=B.length;a<g;++a)f=B[a],f.Jd||(z[a]=f.get(0));else for(a=0,g=B.length;a<g;++a)z[a]=B[a].get(0);if(k.ta){A(k.n);A(k.ra);
F=e.n;b=0;for(d=F.length;b<d;++b){h=F[b];if(L)for(a=0,g=B.length;a<g;++a)f=B[a],f.Jd&&(z[a]=f.get(b));p?(a=0,v&&(a=h.type.Wh[m]),a=P.apply(h.da[r+a],z)):a=P.apply(h,z);(l=$a(a,x))?k.n.push(h):t&&k.ra.push(h)}e.finish&&e.finish(!0);k.ta=!1;e.cd();return k.qp()}c=0;F=(l=t&&!this.dd.mC(this))?k.ra:k.n;var G=!1;b=0;for(d=F.length;b<d;++b){h=F[b];if(L)for(a=0,g=B.length;a<g;++a)f=B[a],f.Jd&&(z[a]=f.get(b));p?(a=0,v&&(a=h.type.Wh[m]),a=P.apply(h.da[r+a],z)):a=P.apply(h,z);if($a(a,x))if(G=!0,l){if(k.n.push(h),
n)for(a=0,g=h.siblings.length;a<g;a++)f=h.siblings[a],f.type.ka().n.push(f)}else{F[c]=h;if(n)for(a=0,g=h.siblings.length;a<g;a++)f=h.siblings[a],f.type.ka().n[c]=f;c++}else if(l){F[c]=h;if(n)for(a=0,g=h.siblings.length;a<g;a++)f=h.siblings[a],f.type.ka().ra[c]=f;c++}else if(t&&(k.ra.push(h),n))for(a=0,g=h.siblings.length;a<g;a++)f=h.siblings[a],f.type.ka().ra.push(f)}Ea(F,c);if(n)for(v=e.Tc,b=0,d=v.length;b<d;b++)h=v[b].ka(),l?Ea(h.ra,c):Ea(h.n,c);c=G;if(l&&!G)for(b=0,d=k.n.length;b<d;b++){h=k.n[b];
if(L)for(a=0,g=B.length;a<g;a++)f=B[a],f.Jd&&(z[a]=f.get(b));a=p?P.apply(h.da[r],z):P.apply(h,z);if($a(a,x)){G=!0;break}}e.finish&&e.finish(c||t);return t?G:k.qp()};ic=a;c.prototype.wb=function(){var b,a,c;b=0;for(a=this.W.length;b<a;b++)c=this.W[b],c.wb(),c.Jd&&(this.fj=!0)};c.prototype.xq=function(){var b=this.b,a,c,d=this.W,g=this.pb;a=0;for(c=d.length;a<c;++a)g[a]=d[a].get();return this.ec.apply(b.Je,g)};c.prototype.wq=function(){var b=this.type,a=this.Pd,c=b.bf,d=this.fj,g=this.W,f=this.pb,l=
this.ec,h=b.ka().tc(),b=b.Y,e=-1<a,k,t,n,v,m,r;if(d)for(t=0,v=g.length;t<v;++t)m=g[t],m.Jd||(f[t]=m.get(0));else for(t=0,v=g.length;t<v;++t)f[t]=g[t].get(0);k=0;for(n=h.length;k<n;++k){r=h[k];if(d)for(t=0,v=g.length;t<v;++t)m=g[t],m.Jd&&(f[t]=m.get(k));e?(t=0,b&&(t=r.type.Wh[c]),l.apply(r.da[a+t],f)):l.apply(r,f)}return!1};jc=c;var v=[],L=-1;b.prototype.wb=function(){var b,a;if(11===this.type)this.Ng=this.b.it(this.Sk,this.dd.parent);else if(13===this.type)for(b=0,a=this.yh.length;b<a;b++)this.yh[b].wb();
this.se&&this.se.wb()};b.prototype.HC=function(b){this.Jd||!b||b.Z.zn||(this.Jd=!0)};b.prototype.hv=function(){this.Jd=!0};b.prototype.RB=function(b){this.Bf=b||0;b=d();this.se.get(b);L--;return b.data};b.prototype.SB=function(b){this.Bf=b||0;b=d();this.se.get(b);L--;return ka(b.data)?b.data:""};b.prototype.YB=function(){return this.object};b.prototype.PB=function(){return this.Es};b.prototype.WB=function(b){this.Bf=b||0;b=d();this.se.get(b);L--;return b.Sb()?this.b.ef(b.data):this.b.Aj(b.data)};
b.prototype.XB=function(){return this.Ub};b.prototype.VB=function(){return this.key};b.prototype.UB=function(){return this.index};b.prototype.TB=function(b){b=b||0;var a=this.Cd.type,c=null,c=a.ka(),d=c.tc();if(d.length)c=d[b%d.length].type;else if(c.ra.length)c=c.ra[b%c.ra.length].type;else if(a.n.length)c=a.n[b%a.n.length].type;else return 0;return this.index+c.Wl[a.bf]};b.prototype.QB=function(){return this.Ng};b.prototype.OB=function(){return this.Ys};b.prototype.ZB=function(){var b,a;b=0;for(a=
this.yh.length;b<a;b++)this.Rk[b]=this.yh[b].get();return this.Rk};kc=b;h.prototype.wb=function(){this.na=p(this.na)};h.prototype.zf=function(b){var a=this.b.gt();this.parent&&!this.Pj&&a?(this.kh>=a.length&&(a.length=this.kh+1),a[this.kh]=b):this.data=b};h.prototype.Rg=function(){var b=this.b.gt();return!this.parent||this.Pj||!b||this.ym?this.data:this.kh>=b.length||"undefined"===typeof b[this.kh]?this.tp:b[this.kh]};h.prototype.Hb=function(){!this.parent||this.Pj||this.ym||this.zf(this.tp)};ec=
h;g.prototype.toString=function(){return"include:"+this.Gj.toString()};g.prototype.wb=function(){this.Gj=this.b.Wo[this.eC];this.sheet.tt.add(this);this.na=p(this.na);for(var b=this.parent;b;)b.group&&b.Hl.push(this),b=b.parent;this.Gv()};g.prototype.Hb=function(){this.parent&&this.b.wk(this.b.P);this.Gj.rp||this.Gj.Hb(!0);this.parent&&this.b.nd(this.b.P)};g.prototype.Gv=function(){for(var b=this.parent;b;){if(b.group&&!b.Sg){this.Jb=!1;return}b=b.parent}this.Jb=!0};oc=g;l.prototype.reset=function(b){this.kb=
b;this.Rc=this.zb=0;A(this.vv);this.Uo=this.bh=!1};l.prototype.Ap=function(){return this.kb.Eq?!0:this.zb<this.kb.Kb.length-1?!!this.kb.na.length:!1};dc=l})();
(function(){function e(f,a){this.Cd=f;this.b=f.b;this.type=a[0];this.get=[this.iB,this.eB,this.rB,this.uB,this.UA,this.sB,this.mB,this.bB,this.lB,this.qB,this.VA,this.pB,this.cB,this.nB,this.jB,this.kB,this.fB,this.gB,this.aB,this.tB,this.oB,this.hB,this.$A,this.dB][this.type];var c=null;this.pf=this.W=this.pb=this.ec=this.Hn=this.second=this.first=this.value=null;this.Pd=-1;this.Rd=null;this.Mv=-1;this.Ng=this.Sk=null;this.Gi=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new mc(f,a[1]);break;case 18:this.first=new mc(f,a[1]);this.second=new mc(f,a[2]);this.Hn=new mc(f,a[3]);break;case 19:this.ec=this.b.Jf(a[1]);this.ec!==E.prototype.A.random&&this.ec!==E.prototype.A.Cs||this.Cd.hv();this.pb=[];this.W=[];3===a.length?(c=a[2],this.pb.length=c.length+1):this.pb.length=1;break;case 20:this.pf=this.b.P[a[1]];this.Pd=-1;this.ec=this.b.Jf(a[2]);this.Gi=a[3];Ac&&this.ec===Ac.prototype.A.fr&&this.Cd.hv();a[4]?this.Rd=new mc(f,a[4]):this.Rd=null;this.pb=[];this.W=[];6===a.length?
(c=a[5],this.pb.length=c.length+1):this.pb.length=1;break;case 21:this.pf=this.b.P[a[1]];this.Gi=a[2];a[3]?this.Rd=new mc(f,a[3]):this.Rd=null;this.Mv=a[4];break;case 22:this.pf=this.b.P[a[1]];this.pf.fm(a[2]);this.Pd=this.pf.dp(a[2]);this.ec=this.b.Jf(a[3]);this.Gi=a[4];a[5]?this.Rd=new mc(f,a[5]):this.Rd=null;this.pb=[];this.W=[];7===a.length?(c=a[6],this.pb.length=c.length+1):this.pb.length=1;break;case 23:this.Sk=a[1],this.Ng=null}this.Cd.HC(this.pf);4<=this.type&&17>=this.type&&(this.first=new mc(f,
a[1]),this.second=new mc(f,a[2]));if(c){var d,b;d=0;for(b=c.length;d<b;d++)this.W.push(new mc(f,c[d]))}}function m(){++k;r.length===k&&r.push(new lc);return r[k]}function p(f,a,c){var d,b;d=0;for(b=f.length;d<b;++d)f[d].get(c),a[d+1]=c.data}function n(f,a){this.type=f||pc.Fh;this.data=a||0;this.oh=null;this.type==pc.Fh&&(this.data=Math.floor(this.data))}e.prototype.wb=function(){23===this.type&&(this.Ng=this.Cd.b.it(this.Sk,this.Cd.dd.parent));this.first&&this.first.wb();this.second&&this.second.wb();
this.Hn&&this.Hn.wb();this.Rd&&this.Rd.wb();if(this.W){var f,a;f=0;for(a=this.W.length;f<a;f++)this.W[f].wb()}};var r=[],k=-1;e.prototype.tB=function(f){var a=this.W,c=this.pb;c[0]=f;f=m();p(a,c,f);--k;this.ec.apply(this.b.Je,c)};e.prototype.oB=function(f){var a=this.pf,c=this.pb,d=this.W,b=this.Rd,h=this.ec,g=this.Cd.Bf,l=a.ka(),e=l.tc();if(!e.length)if(l.ra.length)e=l.ra;else{this.Gi?f.L(""):f.O(0);return}c[0]=f;f.oh=a;f=m();p(d,c,f);b&&(b.get(f),f.Sb()&&(g=f.data,e=a.n));--k;a=e.length;if(g>=a||
g<=-a)g%=a;0>g&&(g+=a);h.apply(e[g],c)};e.prototype.$A=function(f){var a=this.pf,c=this.pb,d=this.W,b=this.Rd,h=this.Pd,g=this.ec,l=this.Cd.Bf,e=a.ka(),n=e.tc();if(!n.length)if(e.ra.length)n=e.ra;else{this.Gi?f.L(""):f.O(0);return}c[0]=f;f.oh=a;f=m();p(d,c,f);b&&(b.get(f),f.Sb()&&(l=f.data,n=a.n));--k;d=n.length;if(l>=d||l<=-d)l%=d;0>l&&(l+=d);l=n[l];n=0;a.Y&&(n=l.type.Wh[a.bf]);g.apply(l.da[h+n],c)};e.prototype.hB=function(f){var a=this.Rd,c=this.pf,d=this.Mv,b=this.Cd.Bf,h=c.ka(),g=h.tc();if(!g.length)if(h.ra.length)g=
h.ra;else{this.Gi?f.L(""):f.O(0);return}if(a){h=m();a.get(h);if(h.Sb()){b=h.data;g=c.n;0!==g.length&&(b%=g.length,0>b&&(b+=g.length));b=c.jp(b);c=b.Sa[d];ka(c)?f.L(c):f.V(c);--k;return}--k}a=g.length;if(b>=a||b<=-a)b%=a;0>b&&(b+=a);b=g[b];g=0;c.Y&&(g=b.type.Wl[c.bf]);c=b.Sa[d+g];ka(c)?f.L(c):f.V(c)};e.prototype.iB=function(f){f.type=pc.Fh;f.data=this.value};e.prototype.eB=function(f){f.type=pc.Eh;f.data=this.value};e.prototype.rB=function(f){f.type=pc.String;f.data=this.value};e.prototype.uB=function(f){this.first.get(f);
f.Sb()&&(f.data=-f.data)};e.prototype.UA=function(f){this.first.get(f);var a=m();this.second.get(a);f.Sb()&&a.Sb()&&(f.data+=a.data,a.hi()&&f.si());--k};e.prototype.sB=function(f){this.first.get(f);var a=m();this.second.get(a);f.Sb()&&a.Sb()&&(f.data-=a.data,a.hi()&&f.si());--k};e.prototype.mB=function(f){this.first.get(f);var a=m();this.second.get(a);f.Sb()&&a.Sb()&&(f.data*=a.data,a.hi()&&f.si());--k};e.prototype.bB=function(f){this.first.get(f);var a=m();this.second.get(a);f.Sb()&&a.Sb()&&(f.data/=
a.data,f.si());--k};e.prototype.lB=function(f){this.first.get(f);var a=m();this.second.get(a);f.Sb()&&a.Sb()&&(f.data%=a.data,a.hi()&&f.si());--k};e.prototype.qB=function(f){this.first.get(f);var a=m();this.second.get(a);f.Sb()&&a.Sb()&&(f.data=Math.pow(f.data,a.data),a.hi()&&f.si());--k};e.prototype.VA=function(f){this.first.get(f);var a=m();this.second.get(a);a.ki()||f.ki()?this.XA(f,a):this.WA(f,a);--k};e.prototype.XA=function(f,a){f.ki()&&a.ki()?this.ZA(f,a):this.YA(f,a)};e.prototype.ZA=function(f,
a){f.data+=a.data};e.prototype.YA=function(f,a){f.ki()?f.data+=(Math.round(1E10*a.data)/1E10).toString():f.L(f.data.toString()+a.data)};e.prototype.WA=function(f,a){f.O(f.data&&a.data?1:0)};e.prototype.pB=function(f){this.first.get(f);var a=m();this.second.get(a);f.Sb()&&a.Sb()&&(f.data||a.data?f.O(1):f.O(0));--k};e.prototype.aB=function(f){this.first.get(f);f.data?this.second.get(f):this.Hn.get(f)};e.prototype.cB=function(f){this.first.get(f);var a=m();this.second.get(a);f.O(f.data===a.data?1:0);
--k};e.prototype.nB=function(f){this.first.get(f);var a=m();this.second.get(a);f.O(f.data!==a.data?1:0);--k};e.prototype.jB=function(f){this.first.get(f);var a=m();this.second.get(a);f.O(f.data<a.data?1:0);--k};e.prototype.kB=function(f){this.first.get(f);var a=m();this.second.get(a);f.O(f.data<=a.data?1:0);--k};e.prototype.fB=function(f){this.first.get(f);var a=m();this.second.get(a);f.O(f.data>a.data?1:0);--k};e.prototype.gB=function(f){this.first.get(f);var a=m();this.second.get(a);f.O(f.data>=
a.data?1:0);--k};e.prototype.dB=function(f){var a=this.Ng.Rg();ja(a)?f.V(a):f.L(a)};mc=e;n.prototype.hi=function(){return this.type===pc.Eh};n.prototype.Sb=function(){return this.type===pc.Fh||this.type===pc.Eh};n.prototype.ki=function(){return this.type===pc.String};n.prototype.si=function(){this.hi()||(this.ki()&&(this.data=parseFloat(this.data)),this.type=pc.Eh)};n.prototype.O=function(f){this.type=pc.Fh;this.data=Math.floor(f)};n.prototype.V=function(f){this.type=pc.Eh;this.data=f};n.prototype.L=
function(f){this.type=pc.String;this.data=f};n.prototype.Ck=function(f){ja(f)?(this.type=pc.Eh,this.data=f):ka(f)?(this.type=pc.String,this.data=f.toString()):(this.type=pc.Fh,this.data=0)};lc=n;pc={Fh:0,Eh:1,String:2}})();function E(e){this.b=e;this.Qc=[]}
E.prototype.Ba=function(){var e={},m,p,n,r,k,f,a,c;e.waits=[];var d=e.waits,b;m=0;for(p=this.Qc.length;m<p;m++){f=this.Qc[m];b={t:f.time,st:f.rv,s:f.Cq,ev:f.Uh.xa,sm:[],sols:{}};f.Uh.Kd[f.Rc]&&(b.act=f.Uh.Kd[f.Rc].xa);n=0;for(r=f.na.length;n<r;n++)b.sm.push(f.na[n].xa);for(k in f.Bc)if(f.Bc.hasOwnProperty(k)){a=this.b.P[parseInt(k,10)];c={sa:f.Bc[k].sn,insts:[]};n=0;for(r=f.Bc[k].gf.length;n<r;n++)c.insts.push(f.Bc[k].gf[n].uid);b.sols[a.xa.toString()]=c}d.push(b)}return e};
E.prototype.Ga=function(e){e=e.waits;var m,p,n,r,k,f,a,c,d,b,h;A(this.Qc);m=0;for(p=e.length;m<p;m++)if(f=e[m],c=this.b.ws[f.ev.toString()]){d=-1;n=0;for(r=c.Kd.length;n<r;n++)if(c.Kd[n].xa===f.act){d=n;break}if(-1!==d){a={Bc:{},na:[],Ro:!1};a.time=f.t;a.rv=f.st||"";a.Cq=!!f.s;a.Uh=c;a.Rc=d;n=0;for(r=f.sm.length;n<r;n++)(c=this.b.im(f.sm[n]))&&a.na.push(c);for(k in f.sols)if(f.sols.hasOwnProperty(k)&&(c=this.b.im(parseInt(k,10)))){d=f.sols[k];b={sn:d.sa,gf:[]};n=0;for(r=d.insts.length;n<r;n++)(h=
this.b.Zh(d.insts[n]))&&b.gf.push(h);a.Bc[c.index.toString()]=b}this.Qc.push(a)}}};
(function(){function e(){}function m(){}function p(){}var n=E.prototype;e.prototype.rw=function(){return!0};e.prototype.Gr=function(){return!0};e.prototype.Jx=function(){return!0};e.prototype.aw=function(a,d,b){return qc(a,d,b)};e.prototype.zy=function(a){var d=this.b.cb(),b=d.kb,f=d.Ap(),d=this.b.pq();if(f)for(f=0;f<a&&!d.Xa;f++)this.b.Fe(b.na),d.index=f,b.de(),this.b.nd(b.na);else for(f=0;f<a&&!d.Xa;f++)d.index=f,b.de();this.b.mq();return!1};e.prototype.xw=function(a,d,b){var f=this.b.cb(),g=f.kb,
f=f.Ap();a=this.b.pq(a);if(b<d)if(f)for(;d>=b&&!a.Xa;--d)this.b.Fe(g.na),a.index=d,g.de(),this.b.nd(g.na);else for(;d>=b&&!a.Xa;--d)a.index=d,g.de();else if(f)for(;d<=b&&!a.Xa;++d)this.b.Fe(g.na),a.index=d,g.de(),this.b.nd(g.na);else for(;d<=b&&!a.Xa;++d)a.index=d,g.de();this.b.mq();return!1};var r=[],k=-1;e.prototype.yw=function(a){var d=a.ka();k++;r.length===k&&r.push([]);var b=r[k];Fa(b,d.tc());var f=this.b.cb(),g=f.kb,l=f.Ap(),f=this.b.pq(),e,n,m,q,p,H,X=a.xc;if(l)for(l=0,e=b.length;l<e&&!f.Xa;l++){this.b.Fe(g.na);
q=b[l];d=a.ka();d.ta=!1;A(d.n);d.n[0]=q;if(X)for(n=0,m=q.siblings.length;n<m;n++)p=q.siblings[n],H=p.type.ka(),H.ta=!1,A(H.n),H.n[0]=p;f.index=l;g.de();this.b.nd(g.na)}else for(d.ta=!1,A(d.n),l=0,e=b.length;l<e&&!f.Xa;l++){q=b[l];d.n[0]=q;if(X)for(n=0,m=q.siblings.length;n<m;n++)p=q.siblings[n],H=p.type.ka(),H.ta=!1,A(H.n),H.n[0]=p;f.index=l;g.de()}A(b);this.b.mq();k--;return!1};e.prototype.my=function(a,d,b,f){var g,l,e,n;if(a){k++;r.length===k&&r.push([]);var m=r[k],q=a.ka();Fa(m,q.tc());q.ta&&
A(q.ra);var p=this.b.Og();e=g=0;for(l=m.length;g<l;g++)n=m[g],m[e]=n,d=p.W[1].get(g),f=p.W[3].get(g),qc(d,b,f)?e++:q.ra.push(n);Ea(m,e);q.ta=!1;Fa(q.n,m);A(m);k--;a.cd();return!!q.n.length}};e.prototype.Dz=function(){var a=this.b.Og().ea;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var d=a.TriggerOnce_lastTick,b=this.b.ge;a.TriggerOnce_lastTick=b;return this.b.Jp||d!==b-1};e.prototype.qw=function(a){var d=this.b.Og(),b=d.ea.Every_lastTime||0,f=this.b.Tb.X;"undefined"===
typeof d.ea.Every_seconds&&(d.ea.Every_seconds=a);var g=d.ea.Every_seconds;if(f>=b+g)return d.ea.Every_lastTime=b+g,f>=d.ea.Every_lastTime+.04&&(d.ea.Every_lastTime=f),d.ea.Every_seconds=a,!0;f<b-.1&&(d.ea.Every_lastTime=f);return!1};e.prototype.hw=function(a,d,b){return qc(a.Rg(),d,b)};e.prototype.Mw=function(a){return(a=this.b.ai[a.toLowerCase()])&&a.Sg};e.prototype.jr=function(){var a=this.b.cb();return a.Uo?!1:!a.bh};e.prototype.$n=function(){return!0};e.prototype.rr=function(){return!0};e.prototype.fo=
function(){return!0};e.prototype.Mr=function(){return!0};e.prototype.Kx=function(){return!0};e.prototype.el=function(){return!0};e.prototype.Uv=function(a,d,b){return Va(Na(a),Na(b))<=Na(d)};e.prototype.Kw=function(a,d){return Xa(Na(a),Na(d))};e.prototype.Hw=function(a,d,b){a=Ta(a);d=Ta(d);b=Ta(b);return Xa(b,d)?Xa(a,d)&&!Xa(a,b):!(!Xa(a,d)&&Xa(a,b))};n.j=new e;m.prototype.kw=function(a,d,b,f){if(d&&a&&(d=this.b.Jl(a,d,b,f))){this.b.Sd++;var g;this.b.trigger(Object.getPrototypeOf(a.Z).j.aj,d);if(d.xc)for(b=
0,f=d.siblings.length;b<f;b++)g=d.siblings[b],this.b.trigger(Object.getPrototypeOf(g.type.Z).j.aj,g);this.b.Sd--;a=a.ka();a.ta=!1;A(a.n);a.n[0]=d;if(d.xc)for(b=0,f=d.siblings.length;b<f;b++)g=d.siblings[b],a=g.type.ka(),a.ta=!1,A(a.n),a.n[0]=g}};m.prototype.$y=function(a,d){a&&a.visible!==d&&(a.visible=d,this.b.S=!0)};m.prototype.hz=function(a,d){0===a.Tk?ja(d)?a.zf(d):a.zf(parseFloat(d)):1===a.Tk&&a.zf(d.toString())};m.prototype.Sv=function(a,d){0===a.Tk?ja(d)?a.zf(a.Rg()+d):a.zf(a.Rg()+parseFloat(d)):
1===a.Tk&&a.zf(a.Rg()+d.toString())};m.prototype.Az=function(a,d){0===a.Tk&&(ja(d)?a.zf(a.Rg()-d):a.zf(a.Rg()-parseFloat(d)))};m.prototype.Wy=function(a,d){var b=this.b.ai[a.toLowerCase()];if(b)switch(d){case 0:b.zk(!1);break;case 1:b.zk(!0);break;case 2:b.zk(!b.Sg)}};var f=[],a=[];m.prototype.Kz=function(c){if(!(0>c)){var d,b,h,g=this.b.cb(),l;f.length?l=f.pop():l={Bc:{},na:[]};l.Ro=!1;l.time=this.b.Tb.X+c;l.rv="";l.Cq=!1;l.Uh=g.kb;l.Rc=g.Rc+1;c=0;for(d=this.b.P.length;c<d;c++)h=this.b.P[c],b=h.ka(),
b.ta&&-1===g.kb.na.indexOf(h)||(l.na.push(h),h=void 0,a.length?h=a.pop():h={gf:[]},h.sn=!1,h.sn=b.ta,Fa(h.gf,b.n),l.Bc[c.toString()]=h);this.Qc.push(l);return!0}};m.prototype.Zy=function(a,d){if(a){var b=za(d),f=Aa(d),g=Ba(d);if(a.kc[0]!==b||a.kc[1]!==f||a.kc[2]!==g)a.kc[0]=b,a.kc[1]=f,a.kc[2]=g,this.b.S=!0}};m.prototype.xz=function(){0>this.b.ri||(this.b.gp().Xa=!0)};m.prototype.Fy=function(){if(!this.b.Qj&&!this.b.mj&&this.b.qa){this.b.mj=this.b.qa;var a,d,b;a=0;for(d=this.b.Nf.length;a<d;a++)b=
this.b.Nf[a],b.zk(b.nm)}};m.prototype.qz=function(a,d){this.b.Ls(0===a?"image/png":"image/jpeg",d/100)};m.prototype.az=function(a,d){if(this.b.qa&&this.b.J){var b=this.b.qa.zj(d);if(b){var f=1===a;b.Jb!=f&&(b.Jb=f,this.b.qa.Id(),this.b.S=!0)}}};m.prototype.bz=function(a,d,b){if(this.b.qa&&this.b.J&&(a=this.b.qa.zj(a))){var f=this.b.qa.ab[a.index];d=Math.floor(d);0>d||d>=f.length||(1===this.b.J.nt(a.xb,d)&&(b/=100),f[d]!==b&&(f[d]=b,a.Jb&&(this.b.S=!0)))}};n.q=new m;p.prototype["int"]=function(a,d){ka(d)?
(a.O(parseInt(d,10)),isNaN(a.data)&&(a.data=0)):a.O(d)};p.prototype["float"]=function(a,d){ka(d)?(a.V(parseFloat(d)),isNaN(a.data)&&(a.data=0)):a.V(d)};p.prototype.WD=function(a,d){ka(d)?a.L(d):a.L(d.toString())};p.prototype.zC=function(a,d){a.O(d.length||0)};p.prototype.random=function(a,d,b){void 0===b?a.V(Math.random()*d):a.V(Math.random()*(b-d)+d)};p.prototype.sqrt=function(a,d){a.V(Math.sqrt(d))};p.prototype.abs=function(a,d){a.V(Math.abs(d))};p.prototype.round=function(a,d){a.O(Math.round(d))};
p.prototype.floor=function(a,d){a.O(Math.floor(d))};p.prototype.ceil=function(a,d){a.O(Math.ceil(d))};p.prototype.sin=function(a,d){a.V(Math.sin(Na(d)))};p.prototype.cos=function(a,d){a.V(Math.cos(Na(d)))};p.prototype.tan=function(a,d){a.V(Math.tan(Na(d)))};p.prototype.asin=function(a,d){a.V(Oa(Math.asin(d)))};p.prototype.acos=function(a,d){a.V(Oa(Math.acos(d)))};p.prototype.atan=function(a,d){a.V(Oa(Math.atan(d)))};p.prototype.exp=function(a,d){a.V(Math.exp(d))};p.prototype.log10=function(a,d){a.V(Math.log(d)/
Math.LN10)};p.prototype.max=function(a){var d=arguments[1];"number"!==typeof d&&(d=0);var b,f,g;b=2;for(f=arguments.length;b<f;b++)g=arguments[b],"number"===typeof g&&d<g&&(d=g);a.V(d)};p.prototype.min=function(a){var d=arguments[1];"number"!==typeof d&&(d=0);var b,f,g;b=2;for(f=arguments.length;b<f;b++)g=arguments[b],"number"===typeof g&&d>g&&(d=g);a.V(d)};p.prototype.Kg=function(a){a.V(this.b.Kg)};p.prototype.Oi=function(a){a.V(this.b.Oi)};p.prototype.time=function(a){a.V(this.b.Tb.X)};p.prototype.ge=
function(a){a.O(this.b.ge)};p.prototype.Rm=function(a){a.O(this.b.Rm)};p.prototype.$o=function(a){a.O(this.b.$o)};p.prototype.DC=function(a,d){var b,f;if(this.b.dk.length)if(d){for(f=this.b.ri;0<=f;--f)if(b=this.b.dk[f],b.name===d){a.O(b.index);return}a.O(0)}else b=this.b.gp(),a.O(b?b.index:-1);else a.O(0)};p.prototype.C=function(a,d,b,f,g){a.V(Oa(Ua(d,b,f,g)))};p.prototype.KC=function(a){a.L("\n")};p.prototype.AC=function(a,d,b,f){a.V(ab(d,b,f))};p.prototype.iE=function(a,d){a.L(ka(d)?d.toUpperCase():
"")};p.prototype.EC=function(a,d){a.L(ka(d)?d.toLowerCase():"")};p.prototype.xC=function(a){a.O(this.b.qa.width)};p.prototype.wC=function(a){a.O(this.b.qa.height)};p.prototype.find=function(a,d,b){ka(d)&&ka(b)?a.O(d.search(new RegExp(lb(b),"i"))):a.O(-1)};p.prototype.left=function(a,d,b){a.L(ka(d)?d.substr(0,b):"")};p.prototype.right=function(a,d,b){a.L(ka(d)?d.substr(d.length-b):"")};p.prototype.IC=function(a,d,b,f){a.L(ka(d)?d.substr(b,f):"")};p.prototype.replace=function(a,d,b,f){ka(d)&&ka(b)&&
ka(f)?a.L(d.replace(new RegExp(lb(b),"gi"),f)):a.L(ka(d)?d:"")};p.prototype.trim=function(a,d){a.L(ka(d)?d.trim():"")};p.prototype.Cs=function(a){var d=ta(Math.random()*(arguments.length-1));a.Ck(arguments[d+1])};p.prototype.BD=function(a,d,b,f){a.O(ya(d,b,f))};p.prototype.Lo=function(a){a.V(this.b.Lo/1E3)};p.prototype.Jm=function(a){a.V(this.b.Jm)};p.prototype.iA=function(a){a.L(this.b.Dq)};n.A=new p;n.DD=function(){var c,d,b,h,g,l,e=this.b.cb();c=0;for(b=this.Qc.length;c<b;c++){h=this.Qc[c];if(-1===
h.time){if(!h.Cq)continue}else if(h.time>this.b.Tb.X)continue;e.kb=h.Uh;e.Rc=h.Rc;e.zb=0;for(d in h.Bc)h.Bc.hasOwnProperty(d)&&(g=this.b.P[parseInt(d,10)].ka(),l=h.Bc[d],g.ta=l.sn,Fa(g.n,l.gf),g=l,A(g.gf),a.push(g));h.Uh.AD();this.b.Jo(h.na);h.Ro=!0}d=c=0;for(b=this.Qc.length;c<b;c++)h=this.Qc[c],this.Qc[d]=h,h.Ro?(fb(h.Bc),A(h.na),f.push(h)):d++;Ea(this.Qc,d)}})();
(function(){xb=function(e,p){var n=e[1],r=e[3],k=e[4],f=e[5],a=e[6],c=e[7],d=e[8];p.j||(p.j={});p.q||(p.q={});p.A||(p.A={});var b=p.j,h=p.q,g=p.A;r&&(b.Un=function(a,b){return qc(this.x,a,b)},b.iw=function(a,b){return qc(this.y,a,b)},b.DE=function(){var a=this.B;this.Ma();var b=this.$a;return!(b.right<a.Na||b.bottom<a.Oa||b.left>a.Ra||b.top>a.Qa)},b.EE=function(){this.Ma();var a=this.$a,b=this.b.qa;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},b.ny=function(a,b,c){var d=this.ka(),
g=d.tc();if(!g.length)return!1;var f=g[0],h=f,e=Za(f.x,f.y,b,c),k,n,m;k=1;for(n=g.length;k<n;k++)if(f=g[k],m=Za(f.x,f.y,b,c),0===a&&m<e||1===a&&m>e)e=m,h=f;d.tk(h);return!0},h.jl=function(a){this.x!==a&&(this.x=a,this.aa())},h.es=function(a){this.y!==a&&(this.y=a,this.aa())},h.oo=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.aa()},h.ds=function(a,b){var c=a.IB(this);if(c){var d;c.ip?(d=c.ip(b,!0),c=c.ip(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.aa()}},
h.KE=function(a){0!==a&&(this.x+=Math.cos(this.C)*a,this.y+=Math.sin(this.C)*a,this.aa())},h.JE=function(a,b){0!==b&&(this.x+=Math.cos(Na(a))*b,this.y+=Math.sin(Na(a))*b,this.aa())},g.Ag=function(a){a.V(this.x)},g.Jh=function(a){a.V(this.y)},g.Kg=function(a){a.V(this.b.Pg(this))});k&&(b.xE=function(a,b){return qc(this.width,a,b)},b.wE=function(a,b){return qc(this.height,a,b)},h.il=function(a){this.width!==a&&(this.width=a,this.aa())},h.bs=function(a){this.height!==a&&(this.height=a,this.aa())},h.hl=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.aa()},g.js=function(a){a.V(this.width)},g.kr=function(a){a.V(this.height)},g.tE=function(a){this.Ma();a.V(this.$a.left)},g.vE=function(a){this.Ma();a.V(this.$a.top)},g.uE=function(a){this.Ma();a.V(this.$a.right)},g.sE=function(a){this.Ma();a.V(this.$a.bottom)});f&&(b.Uv=function(a,b){return Va(this.C,Na(b))<=Na(a)},b.Kw=function(a){return Xa(this.C,Na(a))},b.Hw=function(a,b){var c=Ta(a),d=Ta(b),g=Ra(this.C);return Xa(d,
c)?Xa(g,c)&&!Xa(g,d):!(!Xa(g,c)&&Xa(g,d))},h.VE=function(a){a=Na(Qa(a));isNaN(a)||this.C===a||(this.C=a,this.aa())},h.RE=function(a){0===a||isNaN(a)||(this.C+=Na(a),this.C=Ra(this.C),this.aa())},h.SE=function(a){0===a||isNaN(a)||(this.C-=Na(a),this.C=Ra(this.C),this.aa())},h.TE=function(a,b){var c=Wa(this.C,Na(b),Na(a));isNaN(c)||this.C===c||(this.C=c,this.aa())},h.UE=function(a,b,c){a=Wa(this.C,Math.atan2(c-this.y,b-this.x),Na(a));isNaN(a)||this.C===a||(this.C=a,this.aa())},h.XE=function(a,b){var c=
Math.atan2(b-this.y,a-this.x);isNaN(c)||this.C===c||(this.C=c,this.aa())},g.rE=function(a){a.V(Sa(this.C))});n||(b.gr=function(a,b,c){return qc(this.Sa[a],b,c)},b.BE=function(a){return this.Sa[a]},b.OE=function(a,b){var c=this.ka(),d=c.tc();if(!d.length)return!1;var g=d[0],f=g,h=g.Sa[b],e,k,n;e=1;for(k=d.length;e<k;e++)if(g=d[e],n=g.Sa[b],0===a&&n<h||1===a&&n>h)h=n,f=g;c.tk(f);return!0},b.as=function(a){var b,c,d,g,f;if(this.b.Og().ci){f=this.ka();if(f.ta)for(f.ta=!1,A(f.n),A(f.ra),d=this.n,b=0,c=
d.length;b<c;b++)g=d[b],g.uid===a?f.ra.push(g):f.n.push(g);else{d=b=0;for(c=f.n.length;b<c;b++)g=f.n[b],f.n[d]=g,g.uid===a?f.ra.push(g):d++;Ea(f.n,d)}this.cd();return!!f.n.length}g=this.b.Zh(a);if(!g)return!1;f=this.ka();if(!f.ta&&-1===f.n.indexOf(g))return!1;if(this.Y)for(a=g.type.bb,b=0,c=a.length;b<c;b++){if(a[b]===this)return f.tk(g),this.cd(),!0}else if(g.type===this)return f.tk(g),this.cd(),!0;return!1},b.aj=function(){return!0},b.zx=function(){return!0},h.gl=function(a,b){var c=this.Sa;ja(c[a])?
c[a]=ja(b)?b:parseFloat(b):ka(c[a])&&(c[a]=ka(b)?b:b.toString())},h.qE=function(a,b){var c=this.Sa;ja(c[a])?c[a]=ja(b)?c[a]+b:c[a]+parseFloat(b):ka(c[a])&&(c[a]=ka(b)?c[a]+b:c[a]+b.toString())},h.ZE=function(a,b){var c=this.Sa;ja(c[a])&&(c[a]=ja(b)?c[a]-b:c[a]-parseFloat(b))},h.WE=function(a,b){this.Sa[a]=b?1:0},h.$E=function(a){this.Sa[a]=1-this.Sa[a]},h.Zk=function(){this.b.td(this)},h.nr||(h.nr=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Hm(this,b,!0);this.ne&&this.ne();if(this.da)for(a=
0,b=this.da.length;a<b;++a)c=this.da[a],c.ne&&c.ne()}),g.yE=function(a){var b=a.oh.n.length,c,d,g;c=0;for(d=this.b.Qd.length;c<d;c++)g=this.b.Qd[c],a.oh.Y?0<=g.type.bb.indexOf(a.oh)&&b++:g.type===a.oh&&b++;a.O(b)},g.QE=function(a){a.O(a.oh.ka().tc().length)},g.hs=function(a){a.O(this.uid)},g.AE=function(a){a.O(this.Cj())},g.Dh||(g.Dh=function(a){a.L(JSON.stringify(this.b.yq(this,!0)))}));a&&(b.Ww=function(){return this.visible},h.ud=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.S=!0)},
b.hr=function(a,b){return qc(tb(100*this.opacity),a,b)},h.cs=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.S=!0)},g.Opacity=function(a){a.V(tb(100*this.opacity))});c&&(b.CE=function(a){return a?this.B===a:!1},b.PE=function(a){var b=this.ka(),c=b.tc();if(!c.length)return!1;var d=c[0],g=d,f,h;f=1;for(h=c.length;f<h;f++)if(d=c[f],0===a){if(d.B.index>g.B.index||d.B.index===g.B.index&&d.zd()>g.zd())g=d}else if(d.B.index<g.B.index||d.B.index===g.B.index&&d.zd()<g.zd())g=
d;b.tk(g);return!0},h.rx=function(){var a=this.B,b=a.n;b.length&&b[b.length-1]===this||(a.Ei(this,!1),a.hj(this,!1),this.b.S=!0)},h.LE=function(){var a=this.B,b=a.n;b.length&&b[0]===this||(a.Ei(this,!1),a.iD(this),this.b.S=!0)},h.qx=function(a){a&&a!=this.B&&(this.B.Ei(this,!0),this.B=a,a.hj(this,!0),this.b.S=!0)},h.bF=function(a,b){var c=0===a;if(b){var d=b.gm(this);d&&d.uid!==this.uid&&(this.B.index!==d.B.index&&(this.B.Ei(this,!0),this.B=d.B,d.B.hj(this,!0)),this.B.JC(this,d,c),this.b.S=!0)}},
g.GE=function(a){a.O(this.B.yu)},g.FE=function(a){a.L(this.B.name)},g.aF=function(a){a.O(this.zd())});d&&(h.Py=function(a,b){if(this.b.J){var c=this.type.hp(b);if(!(0>c)){var d=1===a;this.Lf[c]!==d&&(this.Lf[c]=d,this.Id(),this.b.S=!0)}}},h.Qy=function(a,b,c){if(this.b.J){var d=this.type.hp(a);0>d||(a=this.type.ja[d],d=this.ab[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.J.nt(a.xb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Jb&&(this.b.S=!0))))}})};Sb=function(){this.Go=this.Do=!0;this.type.rl=!0;this.b.S=
!0;var e,p,n=this.Eo;e=0;for(p=n.length;e<p;++e)n[e](this);this.B.sd&&this.Ma()};Tb=function(e){e&&this.Eo.push(e)};Vb=function(){if(this.Do){var e=this.$a,p=this.Zb;e.set(this.x,this.y,this.x+this.width,this.y+this.height);e.offset(-this.uc*this.width,-this.vc*this.height);this.C?(e.offset(-this.x,-this.y),p.kv(e,this.C),p.offset(this.x,this.y),p.xs(e)):p.Dk(e);e.normalize();this.Do=!1;this.hE()}};var e=new wa(0,0,0,0);Wb=function(){if(this.B.sd){var m=this.B.hc,p=this.$a;e.set(m.Dc(p.left),m.Ec(p.top),
m.Dc(p.right),m.Ec(p.bottom));this.Mc.qj(e)||(this.Mc.right<this.Mc.left?m.update(this,null,e):m.update(this,this.Mc,e),this.Mc.Nh(e),this.B.be=!0)}};Xb=function(){if(this.Go&&this.Ue){this.Ma();var m=this.type.Gl,p=this.$a;e.set(m.Dc(p.left),m.Ec(p.top),m.Dc(p.right),m.Ec(p.bottom));this.Vf.qj(e)||(this.Vf.right<this.Vf.left?m.update(this,null,e):m.update(this,this.Vf,e),this.Vf.Nh(e),this.Go=!1)}};Ub=function(e,p){return this.$a.$b(e,p)&&this.Zb.$b(e,p)?this.Ni?this.GF(e,p):this.Ja&&!this.Ja.gi()?
(this.Ja.Lh(this.width,this.height,this.C),this.Ja.$b(e-this.x,p-this.y)):!0:!1};Ob=function(){this.type.On();return this.Vg};Yb=function(){this.B.Vq();return this.ke};cc=function(){A(this.Ea);var e,p,n,r=!0;e=0;for(p=this.Lf.length;e<p;e++)this.Lf[e]&&(n=this.type.ja[e],this.Ea.push(n),n.eb||(r=!1));this.Lv=!!this.Ea.length;this.Af=r};Pb=function(){return"Inst"+this.Su};Ab=function(e){if(e&&e.xc&&e.type!=this){var p,n,r;p=0;for(n=e.siblings.length;p<n;p++)if(r=e.siblings[p],r.type==this)return r}e=
this.ka().tc();return e.length?e[0]:null};Bb=function(e){var p=this.ka().tc();return p.length?p[e.Cj()%p.length]:null};zb=function(){if(this.Ki&&!this.Y){var e,p;e=0;for(p=this.n.length;e<p;e++)this.n[e].Vg=e;var n=e,r=this.b.Qd;e=0;for(p=r.length;e<p;++e)r[e].type===this&&(r[e].Vg=n++);this.Ki=!1}};Mb=function(e){if(e<this.n.length)return this.n[e];e-=this.n.length;var p=this.b.Qd,n,r;n=0;for(r=p.length;n<r;++n)if(p[n].type===this){if(0===e)return p[n];--e}return null};Eb=function(){return this.Cf[this.qe]};
Fb=function(){this.qe++;this.qe===this.Cf.length?this.Cf.push(new yb(this)):(this.Cf[this.qe].ta=!0,A(this.Cf[this.qe].ra))};Gb=function(){this.qe++;this.qe===this.Cf.length&&this.Cf.push(new yb(this));var e=this.Cf[this.qe],p=this.Cf[this.qe-1];p.ta?e.ta=!0:(e.ta=!1,Fa(e.n,p.n));A(e.ra)};Hb=function(){this.qe--};Ib=function(e){var p,n,r,k,f,a=0;if(!this.Y)for(p=0,n=this.bb.length;p<n;p++)for(f=this.bb[p],r=0,k=f.fb.length;r<k;r++){if(e===f.fb[r].name)return this.ea.lastBehIndex=a,f.fb[r];a++}p=0;
for(n=this.fb.length;p<n;p++){if(e===this.fb[p].name)return this.ea.lastBehIndex=a,this.fb[p];a++}return null};Jb=function(e){return this.fm(e)?this.ea.lastBehIndex:-1};Kb=function(e){var p,n;p=0;for(n=this.ja.length;p<n;p++)if(this.ja[p].name===e)return p;return-1};Lb=function(){if(this.xc&&!this.Y){var e,p,n,r,k,f,a;this.On();f=this.ka();var c=f.ta,d=(e=this.b.cb())&&e.kb&&e.kb.ld;e=0;for(p=this.Tc.length;e<p;e++)if(k=this.Tc[e],k!==this&&(k.On(),a=k.ka(),a.ta=c,!c)){A(a.n);n=0;for(r=f.n.length;n<
r;++n)a.n[n]=k.jp(f.n[n].Vg);if(d)for(A(a.ra),n=0,r=f.ra.length;n<r;++n)a.ra[n]=k.jp(f.ra[n].Vg)}}};Nb=function(){return"Type"+this.xa};qc=function(e,p,n){if("undefined"===typeof e||"undefined"===typeof n)return!1;switch(p){case 0:return e===n;case 1:return e!==n;case 2:return e<n;case 3:return e<=n;case 4:return e>n;case 5:return e>=n;default:return!1}}})();
var yc={ascii:{src:"precision highp float;\nuniform float textureSizeWidth; //width of the texture\nuniform float textureSizeHeight; //height of the texture\nuniform float texelSizeX; //width of one texel\nuniform float texelSizeY; //height of one texel\nuniform mediump float seconds;\nuniform mediump float pixelWidth;\nuniform mediump float pixelHeight;\nvarying mediump vec2 vTex;\nuniform sampler2D samplerFront;\nvec2 iResolution = vec2( 1.0/pixelWidth, 1.0/pixelHeight);\nuniform float zoom;\n#define P(id,a,b,c,d,e,f,g,h) if( id == int(pos.y) ){ int pa = a+2*(b+2*(c+2*(d+2*(e+2*(f+2*(g+2*(h))))))); cha = floor(mod(float(pa)/pow(2.,float(pos.x)-1.),2.)); }\nfloat gray(vec3 _i)\n{\nreturn (_i.x+_i.y+_i.z)/3.;\n}\nvoid main()\n{\nvec2 uv = -vec2(floor(gl_FragCoord.x/8./zoom)*8.*zoom,floor(gl_FragCoord.y/12./zoom)*12.*zoom)/iResolution;\nivec2 pos = ivec2(mod(gl_FragCoord.x/zoom,8.),mod(gl_FragCoord.y/zoom,12.));\nvec4 tex = texture2D(samplerFront,vTex);\nfloat cha = 0.;\n{\nfloat g = gray(tex.xyz);\nif( g < .125 )\n{\nP(11,0,0,0,0,0,0,0,0);\nP(10,0,0,0,0,0,0,0,0);\nP(9,0,0,0,0,0,0,0,0);\nP(8,0,0,0,0,0,0,0,0);\nP(7,0,0,0,0,0,0,0,0);\nP(6,0,0,0,0,0,0,0,0);\nP(5,0,0,0,0,0,0,0,0);\nP(4,0,0,0,0,0,0,0,0);\nP(3,0,0,0,0,0,0,0,0);\nP(2,0,0,0,0,0,0,0,0);\nP(1,0,0,0,0,0,0,0,0);\nP(0,0,0,0,0,0,0,0,0);\n}\nelse if( g < .25 ) // .\n{\nP(11,0,0,0,0,0,0,0,0);\nP(10,0,0,0,0,0,0,0,0);\nP(9,0,0,0,0,0,0,0,0);\nP(8,0,0,0,0,0,0,0,0);\nP(7,0,0,0,0,0,0,0,0);\nP(6,0,0,0,0,0,0,0,0);\nP(5,0,0,0,0,0,0,0,0);\nP(4,0,0,0,1,1,0,0,0);\nP(3,0,0,0,1,1,0,0,0);\nP(2,0,0,0,0,0,0,0,0);\nP(1,0,0,0,0,0,0,0,0);\nP(0,0,0,0,0,0,0,0,0);\n}\nelse if( g < .375 ) // ,\n{\nP(11,0,0,0,0,0,0,0,0);\nP(10,0,0,0,0,0,0,0,0);\nP(9,0,0,0,0,0,0,0,0);\nP(8,0,0,0,0,0,0,0,0);\nP(7,0,0,0,0,0,0,0,0);\nP(6,0,0,0,0,0,0,0,0);\nP(5,0,0,0,0,0,0,0,0);\nP(4,0,0,0,1,1,0,0,0);\nP(3,0,0,0,1,1,0,0,0);\nP(2,0,0,0,0,1,0,0,0);\nP(1,0,0,0,1,0,0,0,0);\nP(0,0,0,0,0,0,0,0,0);\n}\nelse if( g < .5 ) // -\n{\nP(11,0,0,0,0,0,0,0,0);\nP(10,0,0,0,0,0,0,0,0);\nP(9,0,0,0,0,0,0,0,0);\nP(8,0,0,0,0,0,0,0,0);\nP(7,0,0,0,0,0,0,0,0);\nP(6,1,1,1,1,1,1,1,0);\nP(5,0,0,0,0,0,0,0,0);\nP(4,0,0,0,0,0,0,0,0);\nP(3,0,0,0,0,0,0,0,0);\nP(2,0,0,0,0,0,0,0,0);\nP(1,0,0,0,0,0,0,0,0);\nP(0,0,0,0,0,0,0,0,0);\n}\nelse if(g < .625 ) // +\n{\nP(11,0,0,0,0,0,0,0,0);\nP(10,0,0,0,0,0,0,0,0);\nP(9,0,0,0,1,0,0,0,0);\nP(8,0,0,0,1,0,0,0,0);\nP(7,0,0,0,1,0,0,0,0);\nP(6,1,1,1,1,1,1,1,0);\nP(5,0,0,0,1,0,0,0,0);\nP(4,0,0,0,1,0,0,0,0);\nP(3,0,0,0,1,0,0,0,0);\nP(2,0,0,0,0,0,0,0,0);\nP(1,0,0,0,0,0,0,0,0);\nP(0,0,0,0,0,0,0,0,0);\n}\nelse if(g < .75 ) // *\n{\nP(11,0,0,0,0,0,0,0,0);\nP(10,0,0,0,1,0,0,0,0);\nP(9,1,0,0,1,0,0,1,0);\nP(8,0,1,0,1,0,1,0,0);\nP(7,0,0,1,1,1,0,0,0);\nP(6,0,0,0,1,0,0,0,0);\nP(5,0,0,1,1,1,0,0,0);\nP(4,0,1,0,1,0,1,0,0);\nP(3,1,0,0,1,0,0,1,0);\nP(2,0,0,0,1,0,0,0,0);\nP(1,0,0,0,0,0,0,0,0);\nP(0,0,0,0,0,0,0,0,0);\n}\nelse if(g < .875 ) // #\n{\nP(11,0,0,0,0,0,0,0,0);\nP(10,0,0,1,0,0,1,0,0);\nP(9,0,0,1,0,0,1,0,0);\nP(8,1,1,1,1,1,1,1,0);\nP(7,0,0,1,0,0,1,0,0);\nP(6,0,0,1,0,0,1,0,0);\nP(5,0,1,0,0,1,0,0,0);\nP(4,0,1,0,0,1,0,0,0);\nP(3,1,1,1,1,1,1,1,0);\nP(2,0,1,0,0,1,0,0,0);\nP(1,0,1,0,0,1,0,0,0);\nP(0,0,0,0,0,0,0,0,0);\n}\nelse // @\n{\nP(11,0,0,0,0,0,0,0,0);\nP(10,0,0,1,1,1,1,0,0);\nP(9,0,1,0,0,0,0,1,0);\nP(8,1,0,0,0,1,1,1,0);\nP(7,1,0,0,1,0,0,1,0);\nP(6,1,0,0,1,0,0,1,0);\nP(5,1,0,0,1,0,0,1,0);\nP(4,1,0,0,1,0,0,1,0);\nP(3,1,0,0,1,1,1,1,0);\nP(2,0,1,0,0,0,0,0,0);\nP(1,0,0,1,1,1,1,1,0);\nP(0,0,0,0,0,0,0,0,0);\n}\n}\nvec3 col = vec3(1.);\ngl_FragColor = vec4(cha*col,1.);\n}",rc:0,
sc:0,Hc:!1,eb:!1,Fc:!0,W:[["zoom",0,0]]},"crt shader":{src:"/*\n***********************************************************************************\nCRT shader\nOriginal shader by cgwg, Themaister and DOLLS\nThis program is free software; you can redistribute it and/or modify it\nunder the terms of the GNU General Public License as published by the Free\nSoftware Foundation; either version 2 of the License, or (at your option)\nany later version.\n***********************************************************************************\n*/\nprecision highp float;\nvarying highp vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform highp float WindowsWidth;\nuniform highp float WindowsHeight;\nuniform mediump float pixelWidth;\nuniform mediump float pixelHeight;\nvec2 textureBaseSize = vec2(WindowsWidth, WindowsHeight);\nvec2 textureScaledSize = vec2(WindowsWidth*2.0, WindowsHeight*2.0);\n#define TEX2D(c) pow(abs(texture2D(samplerFront, (c))), vec4(inputGamma))\n#define inputGamma 2.2\n#define outputGamma 2.5\n#define FIX(c) max(abs(c), 1e-5);\n#define PI 3.141592653589\nuniform mediump float distort;\nuniform mediump float border;\nvec2 overscan = vec2(0.98, 0.98);\nfloat aspect = pixelHeight / pixelWidth;\nuniform mediump float distortion;\nuniform mediump float cornersize;\nuniform mediump float cornersmooth;\nvec4 scanlineWeights(float distance, vec4 color)\n{\nvec4 wid = 0.5 + 2.0 * pow(color, vec4(4.0));\nvec4 weights = vec4(distance * 3.333333);\nreturn 0.51 * exp(-pow(weights * sqrt(2.0 / wid), wid)) / (0.18 + 0.06 * wid);\n}\nfloat corner(vec2 coord)\n{\ncoord = (coord - vec2(0.5)) * overscan + vec2(0.5);\ncoord = min(coord, vec2(1.0)-coord) * aspect;\nvec2 cdist = vec2(cornersize/100.0);\ncoord = (cdist - min(coord,cdist));\nfloat dist = sqrt(dot(coord,coord));\nreturn clamp((cdist.x-dist)*cornersmooth,0.0, 1.0);\n}\nvec2 radialDistortion(vec2 coord)\n{\ncoord *= textureScaledSize / textureBaseSize;\nvec2 cc = coord - 1.0;\nfloat dist = dot(cc, cc) * (distortion/100.0);\nreturn (coord + cc * (1.0 + dist) * dist) * textureBaseSize / textureScaledSize;\n}\nvoid main()\n{\nvec2 one = 1.0 / textureBaseSize;\nvec2 _xy;\nif (distort == 1.0) _xy = radialDistortion(vTex);\nelse _xy = vTex;\nvec2 uv_ratio = fract(_xy * textureBaseSize) - vec2(0.5);\nfloat cval = corner(_xy);\n_xy = (floor(_xy * textureBaseSize) + vec2(0.5)) / textureBaseSize;\nvec4 coeffs = PI * vec4(1.0 + uv_ratio.x, uv_ratio.x, 1.0 - uv_ratio.x, 2.0 - uv_ratio.x);\ncoeffs = FIX(coeffs);\ncoeffs = 2.0 * sin(coeffs) * sin(coeffs / 2.0) / (coeffs * coeffs);\ncoeffs /= dot(coeffs, vec4(1.0));\nvec4 col  = clamp(coeffs.x * TEX2D(_xy + vec2(-one.x, 0.0))   + coeffs.y * TEX2D(_xy)+ coeffs.z * TEX2D(_xy + vec2(one.x, 0.0)) + coeffs.w * TEX2D(_xy + vec2(2.0 * one.x, 0.0)),   0.0, 1.0);\nvec4 col2 = clamp(coeffs.x * TEX2D(_xy + vec2(-one.x, one.y)) + coeffs.y * TEX2D(_xy + vec2(0.0, one.y)) + coeffs.z * TEX2D(_xy + one)+ coeffs.w * TEX2D(_xy + vec2(2.0 * one.x, one.y)), 0.0, 1.0);\nvec4 weights  = scanlineWeights(abs(uv_ratio.y) , col);\nvec4 weights2 = scanlineWeights(1.0 - uv_ratio.y, col2);\nvec3 mul_res  = (col * weights + col2 * weights2).xyz;\nfloat mod_factor = vTex.x * textureScaledSize.x / textureScaledSize.x;\nvec3 dotMaskWeights = mix( vec3(1.0, 0.75, 1.0), vec3(0.75, 1.0, 0.75), floor(mod(mod_factor, 2.4)) );\nmul_res *= dotMaskWeights;\nif (border == 1.0) mul_res = pow(abs(mul_res), vec3(1.0 / (2.0 * inputGamma - outputGamma)))* vec3(cval);\nelse mul_res = pow(abs(mul_res), vec3(1.0 / (2.0 * inputGamma - outputGamma)));\ngl_FragColor = vec4(mul_res, 1.0);\n}",
rc:0,sc:0,Hc:!1,eb:!1,Fc:!1,W:[["WindowsWidth",0,0],["WindowsHeight",0,0],["distort",0,0],["distortion",0,0],["border",0,0],["cornersmooth",0,0],["cornersize",0,0]]},exposure:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform mediump float exposure;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\ngl_FragColor = vec4(front.rgb * pow(2.0, exposure), front.a);\n}",rc:0,sc:0,Hc:!1,eb:!0,Fc:!1,W:[["exposure",0,1]]},gamma:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform mediump float gamma;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\ngl_FragColor = vec4(pow(front.rgb, vec3(gamma)), front.a);\n}",
rc:0,sc:0,Hc:!1,eb:!0,Fc:!1,W:[["gamma",0,0]]},grayscale:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp float intensity;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\nlowp float gray = front.r * 0.299 + front.g * 0.587 + front.b * 0.114;\ngl_FragColor = mix(front, vec4(gray, gray, gray, front.a), intensity);\n}",rc:0,sc:0,Hc:!1,eb:!0,Fc:!1,W:[["intensity",0,1]]},hsladjust:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nprecision mediump float;\nuniform float huerotate;\nuniform float satadjust;\nuniform float lumadjust;\nvec3 rgb_to_hsl(vec3 color)\n{\nvec3 hsl = vec3(0.0, 0.0, 0.0);\nfloat fmin = min(min(color.r, color.g), color.b);\nfloat fmax = max(max(color.r, color.g), color.b);\nfloat delta = fmax - fmin;\nhsl.z = (fmax + fmin) / 2.0;\nif (delta == 0.0)\n{\nhsl.x = 0.0;\nhsl.y = 0.0;\n}\nelse\n{\nif (hsl.z < 0.5)\nhsl.y = delta / (fmax + fmin);\nelse\nhsl.y = delta / (2.0 - fmax - fmin);\nfloat dR = (((fmax - color.r) / 6.0) + (delta / 2.0)) / delta;\nfloat dG = (((fmax - color.g) / 6.0) + (delta / 2.0)) / delta;\nfloat dB = (((fmax - color.b) / 6.0) + (delta / 2.0)) / delta;\nif (color.r == fmax)\nhsl.x = dB - dG;\nelse if (color.g == fmax)\nhsl.x = (1.0 / 3.0) + dR - dB;\nelse if (color.b == fmax)\nhsl.x = (2.0 / 3.0) + dG - dR;\nif (hsl.x < 0.0)\nhsl.x += 1.0;\nelse if (hsl.x > 1.0)\nhsl.x -= 1.0;\n}\nreturn hsl;\n}\nfloat hue_to_rgb(float f1, float f2, float hue)\n{\nif (hue < 0.0)\nhue += 1.0;\nelse if (hue > 1.0)\nhue -= 1.0;\nfloat ret;\nif ((6.0 * hue) < 1.0)\nret = f1 + (f2 - f1) * 6.0 * hue;\nelse if ((2.0 * hue) < 1.0)\nret = f2;\nelse if ((3.0 * hue) < 2.0)\nret = f1 + (f2 - f1) * ((2.0 / 3.0) - hue) * 6.0;\nelse\nret = f1;\nreturn ret;\n}\nvec3 hsl_to_rgb(vec3 hsl)\n{\nvec3 rgb = vec3(hsl.z);\nif (hsl.y != 0.0)\n{\nfloat f2;\nif (hsl.z < 0.5)\nf2 = hsl.z * (1.0 + hsl.y);\nelse\nf2 = (hsl.z + hsl.y) - (hsl.y * hsl.z);\nfloat f1 = 2.0 * hsl.z - f2;\nrgb.r = hue_to_rgb(f1, f2, hsl.x + (1.0 / 3.0));\nrgb.g = hue_to_rgb(f1, f2, hsl.x);\nrgb.b = hue_to_rgb(f1, f2, hsl.x - (1.0 / 3.0));\n}\nreturn rgb;\n}\nvoid main(void)\n{\nvec4 front = texture2D(samplerFront, vTex);\nvec3 rgb = rgb_to_hsl(front.rgb) + vec3(huerotate, 0, (lumadjust - 1.0) * front.a);\nrgb.y *= satadjust;\nrgb = hsl_to_rgb(rgb);\ngl_FragColor = vec4(rgb, front.a);\n}",
rc:0,sc:0,Hc:!1,eb:!0,Fc:!1,W:[["huerotate",0,1],["satadjust",0,1],["lumadjust",0,1]]},nightvision:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform mediump float scopeStart;\nuniform mediump float scopeEnd;\nuniform mediump float intensity;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\nfront.rgb /= front.a;\nlowp float d = distance(vTex, vec2(0.5, 0.5));\nfront.rgb *= smoothstep(scopeEnd, scopeStart, d);\nfront.rgb *= front.a;\ngl_FragColor = front * vec4(0.2, (1.6 * intensity), 0.2, 1.0);\n}",
rc:0,sc:0,Hc:!1,eb:!1,Fc:!1,W:[["scopeStart",0,1],["scopeEnd",0,1],["intensity",0,1]]},noise:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform mediump float seconds;\nuniform lowp float intensity;\nuniform lowp float color;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\nlowp float a = front.a;\nif (a != 0.0)\nfront.rgb /= a;\nmediump float seconds_mod = mod(seconds, 10.0);\nmediump vec3 noise = vec3(fract(sin(dot(vTex.xy, vec2(12.9898,78.233)) + seconds_mod) * 43758.5453),\nfract(sin(dot(vTex.yx, vec2(12.9898,-78.233)) + seconds_mod) * 43758.5453),\nfract(sin(dot(vTex.xy, vec2(-12.9898,-78.233)) + seconds_mod) * 43758.5453));\nnoise = mix(vec3(noise.r), noise, color);\nfront.rgb += (noise * intensity) - (intensity / 2.0);\nfront.rgb *= a;\ngl_FragColor = front;\n}",
rc:0,sc:0,Hc:!1,eb:!0,Fc:!0,W:[["intensity",0,1],["color",0,1]]},posterize:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform mediump float levels;\nvoid main(void)\n{\nmediump vec4 front = texture2D(samplerFront, vTex);\nlowp float a = front.a;\nif (a != 0.0)\nfront.rgb /= a;\nfront.rgb = floor(front.rgb * (levels-1.0) + vec3(0.5)) / (levels-1.0);\nfront.rgb *= a;\ngl_FragColor = front;\n}",rc:0,sc:0,Hc:!1,eb:!0,Fc:!1,W:[["levels",0,0]]},pulse:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp float intensity;\nuniform lowp float lighting;\nuniform mediump float frequency;\nuniform mediump float speed;\nuniform mediump float centerX;\nuniform mediump float centerY;\nuniform mediump float pixelWidth;\nuniform mediump float pixelHeight;\nuniform mediump float layerScale;\nuniform mediump float seconds;\nvoid main(void)\n{\nmediump vec2 res = vec2(1.0 / pixelWidth, 1.0 / pixelHeight);\nmediump vec2 halfres = res / 2.0;\nmediump vec2 cPos = (vTex - vec2(centerX, 1.0 - centerY)) * res;\nmediump float cLength = length(cPos);\nmediump vec2 uv = vTex+(cPos/cLength)*sin(cLength/frequency/layerScale-seconds*speed)/25.0;\nlowp vec4 front = texture2D(samplerFront, mix(vTex, uv, intensity));\nlowp vec3 col = mix(front.rgb, front.rgb*50.0/cLength, lighting * intensity);\ngl_FragColor = vec4(col,front.a);\n}",
rc:50,sc:50,Hc:!1,eb:!1,Fc:!0,W:[["intensity",0,1],["lighting",0,1],["speed",0,0],["frequency",0,0],["centerX",0,1],["centerY",0,1]]},scanlines:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform mediump float pixelHeight;\nuniform mediump float lineHeight;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\nmediump float factor = 1.0 + (floor(mod(vTex.y, pixelHeight * lineHeight * 2.0) / (pixelHeight * lineHeight)) / 3.0);\nfront.rgb /= factor;\ngl_FragColor = front;\n}",
rc:0,sc:0,Hc:!1,eb:!0,Fc:!1,W:[["lineHeight",0,0]]},thermalcamera2:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp float temperature;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\nlowp float gray = front.r * 0.299 + front.g * 0.587 + front.b * 0.114;\ngray += (temperature - 1.0);\nif (gray > 0.90)\ngl_FragColor = vec4(1.0, 0.0, 0.0, front.a);\nelse if (gray > 0.80)\ngl_FragColor = vec4(1.0, 0.5, 0.0, front.a);\nelse if (gray > 0.60)\ngl_FragColor = vec4(1.0, 1.0, 0.0, front.a);\nelse if (gray > 0.50)\ngl_FragColor = vec4(0.5, 1.0, 0.5, front.a);\nelse if (gray > 0.40)\ngl_FragColor = vec4(0.0, 0.5, 0.0, front.a);\nelse if (gray > 0.30)\ngl_FragColor = vec4(0.5, 0.5, 1.0, front.a);\nelse\ngl_FragColor = vec4(0.0 ,0.0 , 0.5, front.a)*front.a;\n}",
rc:0,sc:0,Hc:!1,eb:!1,Fc:!1,W:[["temperature",0,1]]},vignette:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform mediump float vignetteStart;\nuniform mediump float vignetteEnd;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\nlowp float a = front.a;\nif (a != 0.0)\nfront.rgb /= a;\nlowp float d = distance(vTex, vec2(0.5, 0.5));\nfront.rgb *= smoothstep(vignetteEnd, vignetteStart, d);\nfront.rgb *= a;\ngl_FragColor = front;\n}",rc:0,sc:0,Hc:!1,eb:!0,
Fc:!1,W:[["vignetteStart",0,1],["vignetteEnd",0,1]]}};function Bc(e){this.b=e}
(function(){function e(){}function m(){}function p(){}var n=!1,r=null,k=null,f="",a=Bc.prototype;a.K=function(a){this.Z=a;this.b=a.b};a.K.prototype.H=function(){};a.I=function(a){this.type=a;this.b=a.b;this.Uc=this.ze="";this.Lc=0;this.timeout=-1;if(n=this.b.Yg)r=require("path"),k=require("fs"),f=r.dirname((window.process||nw.process).execPath)+"\\"};var c=a.I.prototype,d=null;window.C2_AJAX_DCSide=function(a,b,c){d&&("success"===a?(d.Uc=b,d.ze=c,d.b.trigger(Bc.prototype.j.$k,d),d.b.trigger(Bc.prototype.j.$i,
d)):"error"===a?(d.Uc=b,d.b.trigger(Bc.prototype.j.al,d),d.b.trigger(Bc.prototype.j.Pe,d)):"progress"===a&&(d.Lc=c,d.Uc=b,d.b.trigger(Bc.prototype.j.Lr,d)))};c.H=function(){d=this};c.Ba=function(){return{lastData:this.ze}};c.Ga=function(a){this.ze=a.lastData;this.Uc="";this.Lc=0};var b={},h="";c.Os=function(a,c,d,e){if(this.b.Rb)AppMobi.webview.execute('C2_AJAX_WebSide("'+a+'", "'+c+'", "'+d+'", '+(e?'"'+e+'"':"null")+");");else{var r=this,q=null,p=function(){r.Uc=a;r.b.trigger(Bc.prototype.j.al,
r);r.b.trigger(Bc.prototype.j.Pe,r)},m=function(){if(n){var b=f+c;k.existsSync(b)?k.readFile(b,{encoding:"utf8"},function(b,c){b?p():(r.Uc=a,r.ze=c.replace(/\r\n/g,"\n"),r.b.trigger(Bc.prototype.j.$k,r),r.b.trigger(Bc.prototype.j.$i,r))}):p()}else p()},X=function(b){b.lengthComputable&&(r.Lc=b.loaded/b.total,r.Uc=a,r.b.trigger(Bc.prototype.j.Lr,r))};try{this.b.ig?q=new ActiveXObject("Microsoft.XMLHTTP"):q=new XMLHttpRequest;q.onreadystatechange=function(){4===q.readyState&&(r.Uc=a,q.responseText?
r.ze=q.responseText.replace(/\r\n/g,"\n"):r.ze="",400<=q.status?(r.b.trigger(Bc.prototype.j.al,r),r.b.trigger(Bc.prototype.j.Pe,r)):n&&!r.ze.length||!n&&0===q.status&&!r.ze.length||(r.b.trigger(Bc.prototype.j.$k,r),r.b.trigger(Bc.prototype.j.$i,r)))};this.b.ig||(q.onerror=m,q.ontimeout=m,q.onabort=m,q.onprogress=X);q.open(d,c);!this.b.ig&&0<=this.timeout&&"undefined"!==typeof q.timeout&&(q.timeout=this.timeout);try{q.responseType="text"}catch(R){}e&&q.setRequestHeader&&!b.hasOwnProperty("Content-Type")&&
q.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(q.setRequestHeader){for(var Q in b)if(b.hasOwnProperty(Q))try{q.setRequestHeader(Q,b[Q])}catch(C){}b={}}if(h&&q.overrideMimeType){try{q.overrideMimeType(h)}catch(w){}h=""}e?q.send(e):q.send()}catch(y){m()}}};e.prototype.$i=function(a){return ub(a,this.Uc)};e.prototype.$k=function(){return!0};e.prototype.Pe=function(a){return ub(a,this.Uc)};e.prototype.al=function(){return!0};e.prototype.Lr=function(a){return ub(a,this.Uc)};
a.j=new e;m.prototype.Ay=function(a,b){var c=this;this.b.Nj&&!this.b.Bt(b)?this.b.Xs(b,function(b){c.Uc=a;c.ze=b.replace(/\r\n/g,"\n");c.b.trigger(Bc.prototype.j.$k,c);c.b.trigger(Bc.prototype.j.$i,c)},function(){c.Uc=a;c.b.trigger(Bc.prototype.j.al,c);c.b.trigger(Bc.prototype.j.Pe,c)}):this.Os(a,b,"GET")};m.prototype.uy=function(a,b,c,d){this.Os(a,b,d,c)};a.q=new m;p.prototype.ax=function(a){a.L(this.ze)};p.prototype.qo=function(a){a.L(this.Uc)};a.A=new p})();function Cc(e){this.b=e}
(function(){function e(){return a.length?a.pop():[]}function m(c){var d,b;d=0;for(b=c.length;d<b;d++)Array.isArray(c[d])&&m(c[d]);A(c);a.push(c)}function p(){}function n(){}function r(){}var k=Cc.prototype;k.K=function(a){this.Z=a;this.b=a.b};k.K.prototype.H=function(){};k.I=function(a){this.type=a;this.b=a.b};var f=k.I.prototype,a=[];Array.isArray||(Array.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)});f.H=function(){this.Vc=this.D[0];this.ed=this.D[1];this.wd=this.D[2];
this.Ac||(this.Nd=e());var a=this.Nd;a.length=this.Vc;var d,b,f;for(d=0;d<this.Vc;d++)for(a[d]||(a[d]=e()),a[d].length=this.ed,b=0;b<this.ed;b++)for(a[d][b]||(a[d][b]=e()),a[d][b].length=this.wd,f=0;f<this.wd;f++)a[d][b][f]=0;this.$s=[];this.bt=[];this.ct=[];this.cf=-1};f.Wb=function(){var a;for(a=0;a<this.Vc;a++)m(this.Nd[a]);A(this.Nd)};f.oe=function(a,d,b){a=Math.floor(a);d=Math.floor(d);b=Math.floor(b);return isNaN(a)||0>a||a>this.Vc-1||isNaN(d)||0>d||d>this.ed-1||isNaN(b)||0>b||b>this.wd-1?0:
this.Nd[a][d][b]};f.set=function(a,d,b,f){a=Math.floor(a);d=Math.floor(d);b=Math.floor(b);isNaN(a)||0>a||a>this.Vc-1||isNaN(d)||0>d||d>this.ed-1||isNaN(b)||0>b||b>this.wd-1||(this.Nd[a][d][b]=f)};f.cp=function(){return JSON.stringify({c2array:!0,size:[this.Vc,this.ed,this.wd],data:this.Nd})};f.Ba=function(){return{size:[this.Vc,this.ed,this.wd],data:this.Nd}};f.Ga=function(a){var d=a.size;this.Vc=d[0];this.ed=d[1];this.wd=d[2];this.Nd=a.data};f.yf=function(a,d,b){0>a&&(a=0);0>d&&(d=0);0>b&&(b=0);
if(this.Vc!==a||this.ed!==d||this.wd!==b){this.Vc=a;this.ed=d;this.wd=b;var f,g,l=this.Nd;l.length=a;for(a=0;a<this.Vc;a++)for(ia(l[a])&&(l[a]=e()),l[a].length=d,f=0;f<this.ed;f++)for(ia(l[a][f])&&(l[a][f]=e()),l[a][f].length=b,g=0;g<this.wd;g++)ia(l[a][f][g])&&(l[a][f][g]=0)}};f.mi=function(){return 0<=this.cf&&this.cf<this.$s.length?this.$s[this.cf]:0};f.Am=function(){return 0<=this.cf&&this.cf<this.bt.length?this.bt[this.cf]:0};f.xF=function(){return 0<=this.cf&&this.cf<this.ct.length?this.ct[this.cf]:
0};p.prototype.Un=function(a,d,b){return qc(this.oe(a,0,0),d,b)};f.Od=function(a){this.b.Fe(a.na);a.de();this.b.nd(a.na)};k.j=new p;n.prototype.Xk=function(){var a,d,b;for(a=0;a<this.Vc;a++)for(d=0;d<this.ed;d++)for(b=0;b<this.wd;b++)this.Nd[a][d][b]=0};n.prototype.hl=function(a,d,b){this.yf(a,d,b)};n.prototype.jl=function(a,d){this.set(a,0,0,d)};n.prototype.mr=function(a){var d;try{d=JSON.parse(a)}catch(b){return}d.c2array&&(a=d.size,this.Vc=a[0],this.ed=a[1],this.wd=a[2],this.Nd=d.data)};n.prototype.lr=
function(a){var d=document.createElement("a");if("undefined"===typeof d.Od)d="data:text/html,"+encodeURIComponent("<p><a download='"+a+"' href=\"data:application/json,"+encodeURIComponent(this.cp())+'">Download link</a></p>'),window.open(d);else{var b=document.getElementsByTagName("body")[0];d.textContent=a;d.href="data:application/json,"+encodeURIComponent(this.cp());d.Od=a;b.appendChild(d);a=document.createEvent("MouseEvent");a.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null);d.dispatchEvent(a);
b.removeChild(d)}};k.q=new n;r.prototype.js=function(a){a.O(this.Vc)};r.prototype.kr=function(a){a.O(this.ed)};r.prototype.Dh=function(a){a.L(this.cp())};k.A=new r})();function Dc(e){this.b=e}
(function(){function e(a){-1===Cb.indexOf(a)&&Cb.push(a)}function m(a){var b=a.F,c;try{c=b.play()}catch(d){e(a);return}c?c.catch(function(){e(a)}):dd&&!D.ya&&e(a)}function p(){var a,b,c,d;ed||Zb||!x||(n(),"running"===x.state&&(ed=!0));var g=Cb.slice(0);A(Cb);if(!S)for(a=0,b=g.length;a<b;++a)c=g[a],c.Xa||c.Xc||(d=c.F.play())&&d.catch(function(){e(c)})}function n(){"suspended"===x.state&&x.resume&&x.resume();if(x.createBuffer){var a=x.createBuffer(1,220,22050),b=x.createBufferSource();b.buffer=a;b.connect(x.destination);
d(b)}}function r(a){a=Math.pow(10,a/20);isFinite(a)||(a=0);0>a&&(a=0);1<a&&(a=1);return a}function k(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function f(a){a=a.toLowerCase();return ha.hasOwnProperty(a)&&ha[a].length?ha[a][0].gd():x.destination}function a(){return x.createGain?x.createGain():x.createGainNode()}function c(a){return x.createDelay?x.createDelay(a):x.createDelayNode(a)}function d(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function b(a,b,c,d){a.start?a.start(d||0,b):a.noteGrainOn(d||
0,b,c-b)}function h(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function g(b,c,d,g,f,e){this.type="filter";this.ub=[b,c,d,g,f,e];this.Aa=a();this.ga=a();this.ga.gain.value=e;this.fa=a();this.fa.gain.value=1-e;this.Cb=x.createBiquadFilter();this.Cb.type="number"===typeof this.Cb.type?b:kd[b];this.Cb.frequency.value=c;this.Cb.detune&&(this.Cb.detune.value=d);this.Cb.Q.value=g;this.Cb.gain.value=f;this.Aa.connect(this.Cb);this.Aa.connect(this.fa);this.Cb.connect(this.ga)}function l(b,d,g){this.type=
"delay";this.ub=[b,d,g];this.Aa=a();this.ga=a();this.ga.gain.value=g;this.fa=a();this.fa.gain.value=1-g;this.ek=a();this.yd=c(b);this.yd.delayTime.value=b;this.Pl=a();this.Pl.gain.value=d;this.Aa.connect(this.ek);this.Aa.connect(this.fa);this.ek.connect(this.ga);this.ek.connect(this.yd);this.yd.connect(this.Pl);this.Pl.connect(this.ek)}function t(b,c,d,g){this.type="convolve";this.ub=[c,d,g];this.Aa=a();this.ga=a();this.ga.gain.value=d;this.fa=a();this.fa.gain.value=1-d;this.Hg=x.createConvolver();
b&&(this.Hg.normalize=c,this.Hg.buffer=b);this.Aa.connect(this.Hg);this.Aa.connect(this.fa);this.Hg.connect(this.ga)}function v(b,g,f,e,h){this.type="flanger";this.ub=[b,g,f,e,h];this.Aa=a();this.fa=a();this.fa.gain.value=1-h/2;this.ga=a();this.ga.gain.value=h/2;this.Xl=a();this.Xl.gain.value=e;this.yd=c(b+g);this.yd.delayTime.value=b;this.Xb=x.createOscillator();this.Xb.frequency.value=f;this.ad=a();this.ad.gain.value=g;this.Aa.connect(this.yd);this.Aa.connect(this.fa);this.yd.connect(this.ga);this.yd.connect(this.Xl);
this.Xl.connect(this.yd);this.Xb.connect(this.ad);this.ad.connect(this.yd.delayTime);d(this.Xb)}function L(b,c,g,f,e,h){this.type="phaser";this.ub=[b,c,g,f,e,h];this.Aa=a();this.fa=a();this.fa.gain.value=1-h/2;this.ga=a();this.ga.gain.value=h/2;this.Cb=x.createBiquadFilter();this.Cb.type="number"===typeof this.Cb.type?7:"allpass";this.Cb.frequency.value=b;this.Cb.detune&&(this.Cb.detune.value=c);this.Cb.Q.value=g;this.Xb=x.createOscillator();this.Xb.frequency.value=e;this.ad=a();this.ad.gain.value=
f;this.Aa.connect(this.Cb);this.Aa.connect(this.fa);this.Cb.connect(this.ga);this.Xb.connect(this.ad);this.ad.connect(this.Cb.frequency);d(this.Xb)}function q(b){this.type="gain";this.ub=[b];this.Da=a();this.Da.gain.value=b}function u(b,c){this.type="tremolo";this.ub=[b,c];this.Da=a();this.Da.gain.value=1-c/2;this.Xb=x.createOscillator();this.Xb.frequency.value=b;this.ad=a();this.ad.gain.value=c/2;this.Xb.connect(this.ad);this.ad.connect(this.Da.gain);d(this.Xb)}function H(b,c){this.type="ringmod";
this.ub=[b,c];this.Aa=a();this.ga=a();this.ga.gain.value=c;this.fa=a();this.fa.gain.value=1-c;this.yk=a();this.yk.gain.value=0;this.Xb=x.createOscillator();this.Xb.frequency.value=b;this.Xb.connect(this.yk.gain);d(this.Xb);this.Aa.connect(this.yk);this.Aa.connect(this.fa);this.yk.connect(this.ga)}function X(b,c,d,g,f){this.type="distortion";this.ub=[b,c,d,g,f];this.Aa=a();this.gn=a();this.en=a();this.KD(d,Math.pow(10,g/20));this.ga=a();this.ga.gain.value=f;this.fa=a();this.fa.gain.value=1-f;this.Sn=
x.createWaveShaper();this.Ml=new Float32Array(65536);this.AB(b,c);this.Sn.Ml=this.Ml;this.Aa.connect(this.gn);this.Aa.connect(this.fa);this.gn.connect(this.Sn);this.Sn.connect(this.en);this.en.connect(this.ga)}function R(a,b,c,d,g){this.type="compressor";this.ub=[a,b,c,d,g];this.Da=x.createDynamicsCompressor();try{this.Da.threshold.value=a,this.Da.knee.value=b,this.Da.ratio.value=c,this.Da.attack.value=d,this.Da.release.value=g}catch(f){}}function Q(a,b){this.type="analyser";this.ub=[a,b];this.Da=
x.createAnalyser();this.Da.fftSize=a;this.Da.smoothingTimeConstant=b;this.yB=new Float32Array(this.Da.frequencyBinCount);this.ov=new Uint8Array(a);this.qk=0}function C(){this.Ha=null;this.Im=0}function w(b,c){this.src=b;this.wa=z;this.xe=c;this.ql=!1;var d=this;this.ti=this.Di=null;this.sh=[];this.tn=0;this.$q=this.Vl=this.uv=this.$m=!1;1===z&&c&&!Db&&(this.wa=0,this.Di=a());this.Se=this.Ca=null;var g;switch(this.wa){case 0:this.Ca=new Audio;this.Ca.crossOrigin="anonymous";this.Ca.addEventListener("canplaythrough",
function(){d.$q=!0});1===z&&x.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.uv=!0,this.Ca.addEventListener("canplay",function(){!d.ti&&d.Ca&&(d.ti=x.createMediaElementSource(d.Ca),d.ti.connect(d.Di))}));this.Ca.autoplay=!1;this.Ca.AF="auto";this.Ca.src=b;break;case 1:D.Nj?D.Ws(b,function(a){d.Se=a;d.Is()},function(){d.Vl=!0}):(g=new XMLHttpRequest,g.open("GET",b,!0),g.responseType="arraybuffer",g.onload=function(){d.Se=g.response;d.Is()},g.onerror=function(){d.Vl=!0},g.send());
break;case 2:this.Ca=!0;break;case 3:this.Ca=!0}}function y(b,c){var d=this;this.tag=c;this.Xa=this.ue=!0;this.src=b.src;this.buffer=b;this.wa=z;this.xe=b.xe;this.playbackRate=1;this.bi=!0;this.Xc=this.od=!1;this.Nc=0;this.Oj=this.ii=this.Ae=!1;this.volume=1;this.fq=function(a){if(!d.Xc&&!d.od){var b=this;b||(b=a.target);b===d.ol&&(d.bi=!0,d.Xa=!0,da=d.tag,D.trigger(Dc.prototype.j.cl,Z))}};this.ol=null;this.ei=1===Ha&&!this.xe||2===Ha;this.xi=1;this.startTime=this.ei?D.Tb.X:D.Hf.X;this.Fb=this.Lb=
null;this.De=!1;this.fc=null;this.Iu=this.Hu=this.Gu=this.Fu=this.Ku=this.Ju=0;this.F=null;var g=!1;1!==this.wa||0!==this.buffer.wa||this.buffer.uv||(this.wa=0);switch(this.wa){case 0:this.xe?(this.F=b.Ca,g=!b.ql,b.ql=!0):(this.F=new Audio,this.F.crossOrigin="anonymous",this.F.autoplay=!1,this.F.src=b.Ca.src,g=!0);g&&this.F.addEventListener("ended",function(){da=d.tag;d.Xa=!0;D.trigger(Dc.prototype.j.cl,Z)});break;case 1:this.Lb=a();this.Lb.connect(f(c));1===this.buffer.wa?b.Ca&&(this.F=x.createBufferSource(),
this.F.buffer=b.Ca,this.F.connect(this.Lb)):(this.F=this.buffer.Ca,this.buffer.Di.connect(this.Lb),this.buffer.ql||(this.buffer.ql=!0,this.buffer.Ca.addEventListener("ended",function(){da=d.tag;d.Xa=!0;D.trigger(Dc.prototype.j.cl,Z)})));break;case 2:this.F=new window.Media(B+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.bi=!0,d.Xa=!0,da=d.tag,D.trigger(Dc.prototype.j.cl,Z))});break;case 3:this.F=!0}}function K(a){A(Pa);if(a.length){var b,c,d;b=0;for(c=F.length;b<c;b++)d=F[b],ub(a,
d.tag)&&Pa.push(d)}else G&&!G.Ug()&&(A(Pa),Pa[0]=G)}function M(a,b){ha.hasOwnProperty(a)?ha[a].push(b):ha[a]=[b];var c,d,g,f,e=x.destination;if(ha.hasOwnProperty(a)&&(g=ha[a],g.length))for(e=g[0].gd(),c=0,d=g.length;c<d;c++)f=g[c],c+1===d?f.vd(x.destination):f.vd(g[c+1].gd());K(a);c=0;for(d=Pa.length;c<d;c++)Pa[c].sD(e);cb&&bc===a&&(cb.disconnect(),cb.connect(e))}function T(){}function U(){}var I=Dc.prototype;I.K=function(a){this.Z=a;this.b=a.b};I.K.prototype.H=function(){};var D=null,Z=null,da="",
B="",z=0,x=null,P=[],F=[],G=null,N=!1,Ha=0,S=!1,oa=1,la=0,Ia=0,Zb=!1,$b=1,ac=1,bd=10,cd=1E4,fd=1,cb=null,bc="",dd=!1,Cb=[],Db=!1,ed=!1;document.addEventListener("pointerup",p,!0);document.addEventListener("touchend",p,!0);document.addEventListener("click",p,!0);document.addEventListener("keydown",p,!0);document.addEventListener("gamepadconnected",p,!0);var ha={},kd="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");g.prototype.vd=function(a){this.ga.disconnect();this.ga.connect(a);
this.fa.disconnect();this.fa.connect(a)};g.prototype.remove=function(){this.Aa.disconnect();this.Cb.disconnect();this.ga.disconnect();this.fa.disconnect()};g.prototype.gd=function(){return this.Aa};l.prototype.vd=function(a){this.ga.disconnect();this.ga.connect(a);this.fa.disconnect();this.fa.connect(a)};l.prototype.remove=function(){this.Aa.disconnect();this.ek.disconnect();this.yd.disconnect();this.Pl.disconnect();this.ga.disconnect();this.fa.disconnect()};l.prototype.gd=function(){return this.Aa};
t.prototype.vd=function(a){this.ga.disconnect();this.ga.connect(a);this.fa.disconnect();this.fa.connect(a)};t.prototype.remove=function(){this.Aa.disconnect();this.Hg.disconnect();this.ga.disconnect();this.fa.disconnect()};t.prototype.gd=function(){return this.Aa};v.prototype.vd=function(a){this.fa.disconnect();this.fa.connect(a);this.ga.disconnect();this.ga.connect(a)};v.prototype.remove=function(){this.Aa.disconnect();this.yd.disconnect();this.Xb.disconnect();this.ad.disconnect();this.fa.disconnect();
this.ga.disconnect();this.Xl.disconnect()};v.prototype.gd=function(){return this.Aa};L.prototype.vd=function(a){this.fa.disconnect();this.fa.connect(a);this.ga.disconnect();this.ga.connect(a)};L.prototype.remove=function(){this.Aa.disconnect();this.Cb.disconnect();this.Xb.disconnect();this.ad.disconnect();this.fa.disconnect();this.ga.disconnect()};L.prototype.gd=function(){return this.Aa};q.prototype.vd=function(a){this.Da.disconnect();this.Da.connect(a)};q.prototype.remove=function(){this.Da.disconnect()};
q.prototype.gd=function(){return this.Da};u.prototype.vd=function(a){this.Da.disconnect();this.Da.connect(a)};u.prototype.remove=function(){this.Xb.disconnect();this.ad.disconnect();this.Da.disconnect()};u.prototype.gd=function(){return this.Da};H.prototype.vd=function(a){this.ga.disconnect();this.ga.connect(a);this.fa.disconnect();this.fa.connect(a)};H.prototype.remove=function(){this.Xb.disconnect();this.yk.disconnect();this.Aa.disconnect();this.ga.disconnect();this.fa.disconnect()};H.prototype.gd=
function(){return this.Aa};X.prototype.KD=function(a,b){.01>a&&(a=.01);this.gn.gain.value=a;this.en.gain.value=Math.pow(1/a,.6)*b};X.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};X.prototype.AB=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),g=0,f=0;32768>f;++f)g=f/32768,g=this.shape(g,c,d),this.Ml[32768+f]=g,this.Ml[32768-f-1]=-g};X.prototype.vd=function(a){this.ga.disconnect();this.ga.connect(a);this.fa.disconnect();
this.fa.connect(a)};X.prototype.remove=function(){this.Aa.disconnect();this.gn.disconnect();this.Sn.disconnect();this.en.disconnect();this.ga.disconnect();this.fa.disconnect()};X.prototype.gd=function(){return this.Aa};R.prototype.vd=function(a){this.Da.disconnect();this.Da.connect(a)};R.prototype.remove=function(){this.Da.disconnect()};R.prototype.gd=function(){return this.Da};Q.prototype.La=function(){this.Da.getFloatFrequencyData(this.yB);this.Da.getByteTimeDomainData(this.ov);for(var a=this.Da.fftSize,
b=0,c=this.qk=0,d=0;b<a;b++)d=(this.ov[b]-128)/128,0>d&&(d=-d),this.qk<d&&(this.qk=d),c+=d*d;this.qk=k(this.qk);k(Math.sqrt(c/a))};Q.prototype.vd=function(a){this.Da.disconnect();this.Da.connect(a)};Q.prototype.remove=function(){this.Da.disconnect()};Q.prototype.gd=function(){return this.Da};C.prototype.Hi=function(a){this.Ha=a};C.prototype.km=function(){return!!this.Ha};C.prototype.La=function(){};w.prototype.uD=function(){var a,b,c,d;c=a=0;for(b=F.length;a<b;++a)d=F[a],F[c]=d,d.buffer===this?d.stop():
++c;F.length=c;this.ti&&(this.ti.disconnect(),this.ti=null);this.Di&&(this.Di.disconnect(),this.Di=null);this.Se=this.Ca=null};w.prototype.Is=function(){if(!this.Ca&&this.Se){var a=this;if(x.decodeAudioData)x.decodeAudioData(this.Se,function(b){a.Ca=b;a.Se=null;var c,d,g;if(ia(a.bn)||S)ia(a.Il)||(c=a.Il.Hg,c.normalize=a.xu,c.buffer=b);else if(a.sh.length){c=0;for(d=a.sh.length;c<d;c++){b=a.sh[c];g=new y(a,b.Kq);g.Ak(!0);if("undefined"!==typeof b.zu&&(b.Ha=D.Zh(b.zu),!b.Ha))continue;if(b.Ha){var f=
Ya(b.Ha.x,b.Ha.y,-b.Ha.B.ob(),la,Ia,!0),e=Ya(b.Ha.x,b.Ha.y,-b.Ha.B.ob(),la,Ia,!1);g.xn(f,e,Oa(b.Ha.C-b.Ha.B.ob()),b.mm,b.Pm,b.Tm);g.Hi(b.Ha)}else g.xn(b.x,b.y,b.Pz,b.mm,b.Pm,b.Tm);g.play(a.Rp,a.Yq,a.tn);a.$m&&g.pause();F.push(g)}A(a.sh)}else g=new y(a,a.bn||""),g.play(a.Rp,a.Yq,a.tn),a.$m&&g.pause(),F.push(g)},function(){a.Vl=!0});else if(this.Ca=x.createBuffer(this.Se,!1),this.Se=null,ia(this.bn)||S)ia(this.Il)||(b=this.Il.Hg,b.normalize=this.xu,b.buffer=this.Ca);else{var b=new y(this,this.bn);b.play(this.Rp,
this.Yq,this.tn);this.$m&&b.pause();F.push(b)}}};w.prototype.Ft=function(){switch(this.wa){case 0:var a=4<=this.Ca.readyState;a&&(this.$q=!0);return a||this.$q;case 1:return!!this.Se||!!this.Ca;case 2:return!0;case 3:return!0}return!1};w.prototype.oC=function(){switch(this.wa){case 0:return this.Ft();case 1:return!!this.Ca;case 2:return!0;case 3:return!0}return!1};w.prototype.dC=function(){switch(this.wa){case 0:return!!this.Ca.error;case 1:return this.Vl}return!1};y.prototype.Ug=function(){switch(this.wa){case 0:return this.F.ended;
case 1:return 1===this.buffer.wa?!this.ue&&!this.Xa&&this.F.loop||this.Xc?!1:this.bi:this.F.ended;case 2:return this.bi;case 3:!0}return!0};y.prototype.hA=function(){return this.ue||this.Xa?!0:this.Ug()};y.prototype.Ak=function(a){1===z&&(!this.De&&a?this.Lb&&(this.Fb||(this.Fb=x.createPanner(),this.Fb.panningModel="number"===typeof this.Fb.panningModel?$b:["equalpower","HRTF","soundfield"][$b],this.Fb.distanceModel="number"===typeof this.Fb.distanceModel?ac:["linear","inverse","exponential"][ac],
this.Fb.refDistance=bd,this.Fb.maxDistance=cd,this.Fb.rolloffFactor=fd),this.Lb.disconnect(),this.Lb.connect(this.Fb),this.Fb.connect(f(this.tag)),this.De=!0):this.De&&!a&&this.Lb&&(this.Fb.disconnect(),this.Lb.disconnect(),this.Lb.connect(f(this.tag)),this.De=!1))};y.prototype.xn=function(a,b,c,d,g,f){this.De&&1===z&&(this.Fb.setPosition(a,b,0),this.Fb.setOrientation(Math.cos(Na(c)),Math.sin(Na(c)),0),this.Fb.coneInnerAngle=d,this.Fb.coneOuterAngle=g,this.Fb.coneOuterGain=f,this.Ju=a,this.Ku=b,this.Fu=
c,this.Gu=d,this.Hu=g,this.Iu=f)};y.prototype.Hi=function(a){this.De&&1===z&&(this.fc||(this.fc=new C),this.fc.Hi(a))};y.prototype.La=function(a){if(this.De&&1===z&&this.fc&&this.fc.km()&&this.Mj()){this.fc.La(a);a=this.fc.Ha;var b=Ya(a.x,a.y,-a.B.ob(),la,Ia,!0),c=Ya(a.x,a.y,-a.B.ob(),la,Ia,!1);this.Fb.setPosition(b,c,0);b=0;"undefined"!==typeof this.fc.Ha.C&&(b=a.C-a.B.ob(),this.Fb.setOrientation(Math.cos(b),Math.sin(b),0))}};y.prototype.play=function(a,c,g,f){var e=this.F;this.Ae=a;this.volume=
c;g=g||0;f=f||0;switch(this.wa){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==c*oa&&(e.volume=c*oa);e.loop!==a&&(e.loop=a);e.muted&&(e.muted=!1);if(e.currentTime!==g)try{e.currentTime=g}catch(h){}m(this);break;case 1:this.muted=!1;this.xi=1;if(1===this.buffer.wa)this.Lb.gain.value=c*oa,this.ue||(this.F=x.createBufferSource(),this.F.buffer=this.buffer.Ca,this.F.connect(this.Lb)),this.F.onended=this.fq,this.ol=this.F,this.F.loop=a,this.bi=!1,0===g?d(this.F,f):b(this.F,g,this.Qg(),f);else{1!==
e.playbackRate&&(e.playbackRate=1);e.loop!==a&&(e.loop=a);e.volume=c*oa;if(e.currentTime!==g)try{e.currentTime=g}catch(l){}m(this)}break;case 2:(!this.ue&&this.Xa||0!==g)&&e.seekTo(g);e.play();this.bi=!1;break;case 3:D.Rb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.ei?D.Tb.X:D.Hf.X)-g;this.Xc=this.Xa=this.ue=!1};y.prototype.stop=function(){switch(this.wa){case 0:this.F.paused||this.F.pause();break;case 1:1===this.buffer.wa?h(this.F):
this.F.paused||this.F.pause();break;case 2:this.F.stop();break;case 3:D.Rb&&AppMobi.context.stopSound(this.src)}this.Xa=!0;this.Xc=!1};y.prototype.pause=function(){if(!(this.ue||this.Xa||this.Ug()||this.Xc)){switch(this.wa){case 0:this.F.paused||this.F.pause();break;case 1:1===this.buffer.wa?(this.Nc=this.kp(!0),this.Ae&&(this.Nc=this.Nc%this.Qg()),this.Xc=!0,h(this.F)):this.F.paused||this.F.pause();break;case 2:this.F.pause();break;case 3:D.Rb&&AppMobi.context.stopSound(this.src)}this.Xc=!0}};y.prototype.zD=
function(){if(!(this.ue||this.Xa||this.Ug())&&this.Xc){switch(this.wa){case 0:m(this);break;case 1:1===this.buffer.wa?(this.F=x.createBufferSource(),this.F.buffer=this.buffer.Ca,this.F.connect(this.Lb),this.F.onended=this.fq,this.ol=this.F,this.F.loop=this.Ae,this.Lb.gain.value=oa*this.volume*this.xi,this.Pk(),this.startTime=(this.ei?D.Tb.X:D.Hf.X)-this.Nc/(this.playbackRate||.001),b(this.F,this.Nc,this.Qg())):m(this);break;case 2:this.F.play();break;case 3:D.Rb&&AppMobi.context.resumeSound(this.src)}this.Xc=
!1}};y.prototype.seek=function(a){if(!(this.ue||this.Xa||this.Ug()))switch(this.wa){case 0:try{this.F.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.wa)this.Xc?this.Nc=a:(this.pause(),this.Nc=a,this.zD());else try{this.F.currentTime=a}catch(c){}break;case 3:D.Rb&&AppMobi.context.seekSound(this.src,a)}};y.prototype.sD=function(a){1===this.wa&&(this.De?(this.Fb.disconnect(),this.Fb.connect(a)):(this.Lb.disconnect(),this.Lb.connect(a)))};y.prototype.Qg=function(){var a=0;switch(this.wa){case 0:"undefined"!==
typeof this.F.duration&&(a=this.F.duration);break;case 1:a=this.buffer.Ca.duration;break;case 2:a=this.F.getDuration();break;case 3:D.Rb&&(a=AppMobi.context.getDurationSound(this.src))}return a};y.prototype.kp=function(a){var b=this.Qg(),c=0;switch(this.wa){case 0:"undefined"!==typeof this.F.currentTime&&(c=this.F.currentTime);break;case 1:if(1===this.buffer.wa){if(this.Xc)return this.Nc;c=(this.ei?D.Tb.X:D.Hf.X)-this.startTime}else"undefined"!==typeof this.F.currentTime&&(c=this.F.currentTime);break;
case 3:D.Rb&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.Ae&&c>b&&(c=b);return c};y.prototype.Mj=function(){return!this.Xc&&!this.ue&&!this.Xa&&!this.Ug()};y.prototype.RD=function(){return!this.ue&&!this.Xa&&!this.Ug()};y.prototype.fE=function(){var a=this.volume*oa;isFinite(a)||(a=0);switch(this.wa){case 0:"undefined"!==typeof this.F.volume&&this.F.volume!==a&&(this.F.volume=a);break;case 1:1===this.buffer.wa?this.Lb.gain.value=a*this.xi:"undefined"!==typeof this.F.volume&&
this.F.volume!==a&&(this.F.volume=a)}};y.prototype.Tl=function(a){switch(this.wa){case 0:this.F.muted!==!!a&&(this.F.muted=!!a);break;case 1:1===this.buffer.wa?(this.xi=a?0:1,this.Lb.gain.value=oa*this.volume*this.xi):this.F.muted!==!!a&&(this.F.muted=!!a)}};y.prototype.MD=function(){this.ii=!0;this.Tl(this.ii||this.Oj)};y.prototype.gv=function(a){this.Oj=!!a;this.Tl(this.ii||this.Oj)};y.prototype.ND=function(a){this.playbackRate=a;this.Pk()};y.prototype.Pk=function(){var a=this.playbackRate;this.ei&&
(a*=D.Oi);switch(this.wa){case 0:this.F.playbackRate!==a&&(this.F.playbackRate=a);break;case 1:1===this.buffer.wa?this.F.playbackRate.value!==a&&(this.F.playbackRate.value=a):this.F.playbackRate!==a&&(this.F.playbackRate=a)}};y.prototype.PD=function(a){switch(this.wa){case 0:a?this.Mj()?(this.od=!0,this.F.pause()):this.od=!1:this.od&&(this.F.play(),this.od=!1);break;case 1:a?this.Mj()?(this.od=!0,1===this.buffer.wa?(this.Nc=this.kp(!0),this.Ae&&(this.Nc=this.Nc%this.Qg()),h(this.F)):this.F.pause()):
this.od=!1:this.od&&(1===this.buffer.wa?(this.F=x.createBufferSource(),this.F.buffer=this.buffer.Ca,this.F.connect(this.Lb),this.F.onended=this.fq,this.ol=this.F,this.F.loop=this.Ae,this.Lb.gain.value=oa*this.volume*this.xi,this.Pk(),this.startTime=(this.ei?D.Tb.X:D.Hf.X)-this.Nc/(this.playbackRate||.001),b(this.F,this.Nc,this.Qg())):this.F.play(),this.od=!1);break;case 2:a?this.Mj()?(this.F.pause(),this.od=!0):this.od=!1:this.od&&(this.od=!1,this.F.play())}};I.I=function(a){this.type=a;D=this.b=
a.b;Z=this;this.Zc=null;this.Vj=-600;this.b.Nj&&(Db=!0);!(this.b.li||this.b.Jj&&(this.b.xp||this.b.rm))||this.b.um||this.b.G||this.b.Ct||Db||(dd=!0);x=null;"undefined"!==typeof AudioContext?(z=1,x=new AudioContext):"undefined"!==typeof webkitAudioContext&&(z=1,x=new webkitAudioContext);this.b.li&&x&&(x.close&&x.close(),"undefined"!==typeof AudioContext?x=new AudioContext:"undefined"!==typeof webkitAudioContext&&(x=new webkitAudioContext));1!==z&&(this.b.Wc&&"undefined"!==typeof window.Media?z=2:this.b.Dt&&
(z=3));2===z&&(B=location.href,a=B.lastIndexOf("/"),-1<a&&(B=B.substr(0,a+1)),B=B.replace("file://",""));if(this.b.pC&&this.b.qC&&"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.td(this);else{if(this.b.Rb)N=this.b.Jj;else try{N=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')&&!this.b.xm}catch(b){N=!1}this.b.fe(this)}};var Ka=I.I.prototype;Ka.H=function(){this.b.Kh=this;Ha=this.D[0];
this.vf=this.D[1];this.bD=0!==this.D[2];this.Bi=0;$b=this.D[3];ac=this.D[4];this.Vj=-this.D[5];bd=this.D[6];cd=this.D[7];fd=this.D[8];this.Zc=new C;var a=this.b.ca||this.b.width,b=this.b.ba||this.b.height;1===z&&(x.listener.setPosition(a/2,b/2,this.Vj),x.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){cb&&cb.disconnect();bc=b.toLowerCase();cb=x.createMediaStreamSource(a);cb.connect(f(bc))});this.b.zo(function(a){Z.VC(a)});var c=this;this.b.pl(function(a){c.dq(a)})};Ka.dq=
function(a){var b,c,d;b=0;for(c=F.length;b<c;b++)d=F[b],d.fc&&d.fc.Ha===a&&(d.fc.Ha=null,d.De&&d.Mj()&&d.Ae&&d.stop());this.Zc.Ha===a&&(this.Zc.Ha=null)};Ka.Ba=function(){var a={silent:S,masterVolume:oa,listenerZ:this.Vj,listenerUid:this.Zc.km()?this.Zc.Ha.uid:-1,playing:[],effects:{}},b=a.playing,c,d,g,f,e,h;c=0;for(d=F.length;c<d;c++)g=F[c],!g.RD()||3===this.vf||g.xe&&1===this.vf||!g.xe&&2===this.vf||(f=g.kp(),g.Ae&&(f=f%g.Qg()),f={tag:g.tag,buffersrc:g.buffer.src,is_music:g.xe,playbackTime:f,volume:g.volume,
looping:g.Ae,muted:g.ii,playbackRate:g.playbackRate,paused:g.Xc,resume_position:g.Nc},g.De&&(f.pan={},h=f.pan,g.fc&&g.fc.km()?h.objUid=g.fc.Ha.uid:(h.x=g.Ju,h.y=g.Ku,h.a=g.Fu),h.ia=g.Gu,h.oa=g.Hu,h.og=g.Iu),b.push(f));b=a.effects;for(e in ha)if(ha.hasOwnProperty(e)){g=[];c=0;for(d=ha[e].length;c<d;c++)g.push({type:ha[e][c].type,params:ha[e][c].ub});b[e]=g}return a};var ob=[];Ka.Ga=function(a){var b=a.silent;oa=a.masterVolume;this.Vj=a.listenerZ;this.Zc.Hi(null);var c=a.listenerUid;-1!==c&&(this.Zc.Im=
c,ob.push(this.Zc));var c=a.playing,d,f,e,h,k,n,r,p,m,w,y;if(3!==this.vf)for(d=0,f=F.length;d<f;d++)m=F[d],m.xe&&1===this.vf||(m.xe||2!==this.vf)&&m.stop();for(k in ha)if(ha.hasOwnProperty(k))for(d=0,f=ha[k].length;d<f;d++)ha[k][d].remove();fb(ha);for(k in a.effects)if(a.effects.hasOwnProperty(k))for(n=a.effects[k],d=0,f=n.length;d<f;d++)switch(e=n[d].type,w=n[d].params,e){case "filter":M(k,new g(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "delay":M(k,new l(w[0],w[1],w[2]));break;case "convolve":e=
w[2];m=this.yj(e,!1);m.Ca?e=new t(m.Ca,w[0],w[1],e):(e=new t(null,w[0],w[1],e),m.xu=w[0],m.Il=e);M(k,e);break;case "flanger":M(k,new v(w[0],w[1],w[2],w[3],w[4]));break;case "phaser":M(k,new L(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "gain":M(k,new q(w[0]));break;case "tremolo":M(k,new u(w[0],w[1]));break;case "ringmod":M(k,new H(w[0],w[1]));break;case "distortion":M(k,new X(w[0],w[1],w[2],w[3],w[4]));break;case "compressor":M(k,new R(w[0],w[1],w[2],w[3],w[4]));break;case "analyser":M(k,new Q(w[0],
w[1]))}d=0;for(f=c.length;d<f;d++)3===this.vf||(a=c[d],e=a.buffersrc,h=a.is_music,k=a.tag,n=a.playbackTime,r=a.looping,p=a.volume,y=(w=a.pan)&&w.hasOwnProperty("objUid")?w.objUid:-1,h&&1===this.vf)||!h&&2===this.vf||((m=this.em(e,k,h,r,p))?(m.Nc=a.resume_position,m.Ak(!!w),m.play(r,p,n),m.Pk(),m.fE(),m.Tl(m.ii||m.Oj),a.paused&&m.pause(),a.muted&&m.MD(),m.Tl(m.ii||m.Oj),w&&(-1!==y?(m.fc=m.fc||new C,m.fc.Im=y,ob.push(m.fc)):m.xn(w.x,w.y,w.a,w.ia,w.oa,w.og))):(m=this.yj(e,h),m.tn=n,m.$m=a.paused,w&&
(-1!==y?m.sh.push({zu:y,mm:w.ia,Pm:w.oa,Tm:w.og,Kq:k}):m.sh.push({x:w.x,y:w.y,Pz:w.a,mm:w.ia,Pm:w.oa,Tm:w.og,Kq:k}))));if(b&&!S){d=0;for(f=F.length;d<f;d++)F[d].gv(!0);S=!0}else if(!b&&S){d=0;for(f=F.length;d<f;d++)F[d].gv(!1);S=!1}};Ka.ne=function(){var a,b,c,d;a=0;for(b=ob.length;a<b;a++)c=ob[a],d=this.b.Zh(c.Im),c.Hi(d),c.Im=-1,d&&(la=d.x,Ia=d.y);A(ob)};Ka.VC=function(a){if(!this.bD){!a&&x&&x.resume&&(x.resume(),Zb=!1);var b,c;b=0;for(c=F.length;b<c;b++)F[b].PD(a);a&&x&&x.suspend&&(x.suspend(),
Zb=!0)}};Ka.La=function(){var a=this.b.Kg,b,c,d;b=0;for(c=F.length;b<c;b++)d=F[b],d.La(a),0!==Ha&&d.Pk();var g,f;for(g in ha)if(ha.hasOwnProperty(g))for(d=ha[g],b=0,c=d.length;b<c;b++)f=d[b],f.La&&f.La();1===z&&this.Zc.km()&&(this.Zc.La(a),la=this.Zc.Ha.x,Ia=this.Zc.Ha.y,x.listener.setPosition(this.Zc.Ha.x,this.Zc.Ha.y,this.Vj))};var pb=[];Ka.OD=function(a){var b,c,d,g,f,e=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],g=d[0],d=2*d[1],(f=4<g.length&&".ogg"===g.substr(g.length-4))&&N||!f&&!N)pb.push({filename:g,
size:d,Ha:null}),e+=d;return e};Ka.UD=function(){var a,b,c,d;a=0;for(b=pb.length;a<b;++a)c=pb[a],d=this.b.wj+c.filename,c.Ha=this.yj(d,!1)};Ka.JB=function(){var a=0,b,c,d;b=0;for(c=pb.length;b<c;++b)d=pb[b],d.Ha.oC()||d.Ha.dC()||this.b.G||this.b.rm?a+=d.size:d.Ha.Ft()&&(a+=Math.floor(d.size/2));return a};Ka.vD=function(){var a,b,c,d;c=a=0;for(b=P.length;a<b;++a)d=P[a],P[c]=d,d.xe?d.uD():++c;P.length=c};Ka.yj=function(a,b){var c,d,g,f=null;c=0;for(d=P.length;c<d;c++)if(g=P[c],g.src===a){f=g;break}f||
(Db&&b&&this.vD(),f=new w(a,b),P.push(f));return f};Ka.em=function(a,b,c,d,g){var f,e,h;f=0;for(e=F.length;f<e;f++)if(h=F[f],h.src===a&&(h.hA()||c))return h.tag=b,h;a=this.yj(a,c);if(!a.Ca)return"<preload>"!==b&&(a.bn=b,a.Rp=d,a.Yq=g),null;h=new y(a,b);F.push(h);return h};var Pa=[];T.prototype.cl=function(a){return ub(da,a)};I.j=new T;U.prototype.Play=function(a,b,c,d){!S&&(c=r(c),G=this.em(this.b.wj+a[0]+(N?".ogg":".m4a"),d,a[1],0!==b,c))&&(G.Ak(!1),G.play(0!==b,c,0,this.Bi),this.Bi=0)};U.prototype.ty=
function(a,b,c,d,g){!S&&(d=r(d),G=this.em(this.b.wj+b.toLowerCase()+(N?".ogg":".m4a"),g,1===a,0!==c,d))&&(G.Ak(!1),G.play(0!==c,d,0,this.Bi),this.Bi=0)};U.prototype.ry=function(a,b,c,d,g,f,e,h,l){!S&&g&&(g=g.gm())&&(d=r(d),a=1===a,b=this.b.wj+b.toLowerCase()+(N?".ogg":".m4a"),(G=this.em(b,l,a,0!==c,d))?(G.Ak(!0),l=Ya(g.x,g.y,-g.B.ob(),la,Ia,!0),b=Ya(g.x,g.y,-g.B.ob(),la,Ia,!1),G.xn(l,b,Oa(g.C-g.B.ob()),f,e,r(h)),G.Hi(g),G.play(0!==c,d,0,this.Bi),this.Bi=0):this.yj(b,a).sh.push({Ha:g,mm:f,Pm:e,Tm:r(h),
Kq:l}))};U.prototype.dz=function(a,b){K(a);0>b&&(b=0);var c,d;c=0;for(d=Pa.length;c<d;c++)Pa[c].ND(b)};U.prototype.po=function(a){K(a);var b;a=0;for(b=Pa.length;a<b;a++)Pa[a].stop()};I.q=new U;I.A=new function(){}})();function O(e){this.b=e}
(function(){function e(){a&&c&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(a){d.UC(a)})}function m(){}function p(){}function n(a){console&&console.warn&&console.warn("Fullscreen request failed: ",a);h.setSize(window.innerWidth,window.innerHeight)}function r(){}var k=O.prototype;k.K=function(a){this.Z=a;this.b=a.b};var f=k.K.prototype;f.H=function(){};var a=!1,c=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.serviceWorker){var b=
document.createElement("script");b.onload=function(){a=!0;e()};b.src="offlineClient.js";document.head.appendChild(b)}});var d=null;f.Cu=function(){c=!0;e()};k.I=function(a){this.type=a;this.b=a.b};f=k.I.prototype;f.H=function(){var a=this;window.addEventListener("resize",function(){a.b.trigger(O.prototype.j.Sx,a)});d=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){a.b.trigger(O.prototype.j.Nx,a)}),window.addEventListener("offline",function(){a.b.trigger(O.prototype.j.Lx,
a)}));this.b.Rb||(document.addEventListener("appMobi.device.update.available",function(){a.b.trigger(O.prototype.j.ko,a)}),document.addEventListener("backbutton",function(){a.b.trigger(O.prototype.j.bl,a)}),document.addEventListener("menubutton",function(){a.b.trigger(O.prototype.j.Hr,a)}),document.addEventListener("searchbutton",function(){a.b.trigger(O.prototype.j.Wx,a)}),document.addEventListener("tizenhwkey",function(b){var c;switch(b.keyName){case "back":c=a.b.trigger(O.prototype.j.bl,a);!c&&
window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(c=a.b.trigger(O.prototype.j.Hr,a))||b.preventDefault()}}));this.b.xm&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(b){a.b.trigger(O.prototype.j.bl,a)&&(b.handled=!0)}):this.b.wm&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!a.b.trigger(O.prototype.j.bl,a)});this.b.zo(function(b){b?a.b.trigger(O.prototype.j.Qx,
a):a.b.trigger(O.prototype.j.Rx,a)});this.Jt="undefined"!==typeof window.is_scirra_arcade};f.UC=function(a){a=a.data.type;"downloading-update"===a?this.b.trigger(O.prototype.j.cy,this):"update-ready"===a||"update-pending"===a?this.b.trigger(O.prototype.j.ko,this):"offline-ready"===a&&this.b.trigger(O.prototype.j.Mx,this)};m.prototype.Nx=function(){return!0};m.prototype.Lx=function(){return!0};m.prototype.ko=function(){return!0};m.prototype.fy=function(){return!this.b.hg};m.prototype.Rx=function(){return!0};
m.prototype.Qx=function(){return!0};m.prototype.Sx=function(){return!0};m.prototype.Lw=function(){return!!(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||this.b.kf)};m.prototype.bl=function(){return!0};m.prototype.Hr=function(){return!0};m.prototype.Wx=function(){return!0};m.prototype.cy=function(){return!0};m.prototype.ko=function(){return!0};m.prototype.Mx=function(){return!0};k.j=new m;p.prototype.Tv=function(a){this.b.G||alert(a.toString())};p.prototype.$v=function(){this.b.Ic?
CocoonJS.App.forceToFinish():window.tizen?window.tizen.application.getCurrentApplication().exit():navigator.app&&navigator.app.exitApp?navigator.app.exitApp():navigator.device&&navigator.device.exitApp?navigator.device.exitApp():this.Jt||this.b.G||window.close()};p.prototype.Cw=function(a,b){this.b.Ic?CocoonJS.App.openURL(a):this.b.Ad?ejecta.openURL(a):this.b.wm?Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri(a)):navigator.app&&navigator.app.loadUrl?navigator.app.loadUrl(a,{openExternal:!0}):
this.b.Wc?window.open(a,"_system"):this.Jt||this.b.G||window.open(a,b)};var b=!0,h=null;p.prototype.By=function(a){this.b.G?fa("[Construct 2] Requesting fullscreen is not supported on this platform - the request has been ignored"):(2<=a&&(a+=1),6===a&&(a=2),this.b.Bp?this.b.Et?debuggerFullscreen(!0):!this.b.kf&&window.nwgui&&(window.nwgui.Window.get().enterFullscreen(),this.b.kf=!0,this.b.dg=2<=a?a:0):document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement||document.fullScreen||
document.fullScreenElement||(this.b.dg=2<=a?a:0,a=document.documentElement,b&&(b=!1,h=this.b,a.addEventListener("mozfullscreenerror",n),a.addEventListener("webkitfullscreenerror",n),a.addEventListener("MSFullscreenError",n),a.addEventListener("fullscreenerror",n)),a.requestFullscreen?a.requestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.msRequestFullscreen?a.msRequestFullscreen():a.webkitRequestFullScreen&&("undefined"!==typeof Element&&"undefined"!==typeof Element.ALLOW_KEYBOARD_INPUT?
a.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):a.webkitRequestFullScreen())))};p.prototype.Wv=function(){this.b.G?fa("[Construct 2] Exiting fullscreen is not supported on this platform - the request has been ignored"):this.b.Bp?this.b.Et?debuggerFullscreen(!1):this.b.kf&&window.nwgui&&(window.nwgui.Window.get().leaveFullscreen(),this.b.kf=!1):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():
document.webkitCancelFullScreen&&document.webkitCancelFullScreen()};p.prototype.Gw=function(a,b,c){var d="data:"+b+","+encodeURIComponent(a);a=document.createElement("a");"undefined"===typeof a.download?window.open(d):(b=document.getElementsByTagName("body")[0],a.textContent=c,a.href=d,a.download=c,b.appendChild(a),c=new MouseEvent("click"),a.dispatchEvent(c),b.removeChild(a))};k.q=new p;r.prototype.vy=function(a){a.L(this.b.G?"":window.location.protocol)};r.prototype.pw=function(a){a.L(this.b.G?
"":window.location.hostname)};r.prototype.iy=function(a){a.L(this.b.G?"":window.location.pathname)};r.prototype.$w=function(a){navigator&&navigator.language?a.L(navigator.language):a.L("")};r.prototype.qy=function(a){a.L(this.b.G?"":navigator.platform)};k.A=new r})();function Ec(e){this.b=e}
(function(){function e(){}function m(){}var p=Ec.prototype;p.K=function(e){this.Z=e;this.b=e.b};p.K.prototype.H=function(){};p.I=function(e){this.type=e;this.b=e.b};var n=p.I.prototype;n.H=function(){this.b.G?fa("[Construct 2] Button plugin not supported on this platform - the object will not be created"):(this.Xg=1===this.D[0],this.wc=document.createElement("input"),this.k=this.Xg?document.createElement("label"):this.wc,this.Sj=null,this.wc.type=this.Xg?"checkbox":"button",this.wc.id=this.D[6],jQuery(this.k).appendTo(this.b.pe?
this.b.pe:"body"),this.Xg?(jQuery(this.wc).appendTo(this.k),this.Sj=document.createTextNode(this.D[1]),jQuery(this.k).append(this.Sj),this.wc.checked=0!==this.D[7],jQuery(this.k).css("font-family","sans-serif"),jQuery(this.k).css("display","inline-block"),jQuery(this.k).css("color","black")):this.wc.value=this.D[1],this.k.title=this.D[2],this.wc.disabled=0===this.D[4],this.jj=0!==this.D[5],this.nb=!1,0===this.D[3]&&(jQuery(this.k).hide(),this.visible=!1,this.nb=!0),this.wc.onclick=function(e){return function(k){k.stopPropagation();
e.b.ya=!0;e.b.trigger(Ec.prototype.j.zg,e);e.b.ya=!1}}(this),this.k.addEventListener("touchstart",function(e){e.stopPropagation()},!1),this.k.addEventListener("touchmove",function(e){e.stopPropagation()},!1),this.k.addEventListener("touchend",function(e){e.stopPropagation()},!1),jQuery(this.k).mousedown(function(e){e.stopPropagation()}),jQuery(this.k).mouseup(function(e){e.stopPropagation()}),jQuery(this.k).keydown(function(e){e.stopPropagation()}),jQuery(this.k).keyup(function(e){e.stopPropagation()}),
this.Xd=this.Yd=this.Td=this.Vd=this.Wd=this.Ud=0,this.ie(!0),this.b.fe(this))};n.Ba=function(){var e={tooltip:this.k.title,disabled:!!this.wc.disabled};this.Xg?(e.checked=!!this.wc.checked,e.text=this.Sj.nodeValue):e.text=this.k.value;return e};n.Ga=function(e){this.k.title=e.tooltip;this.wc.disabled=e.disabled;this.Xg?(this.wc.checked=e.checked,this.Sj.nodeValue=e.text):this.k.value=e.text};n.Wb=function(){this.b.G||(jQuery(this.k).remove(),this.k=null)};n.La=function(){this.ie()};n.ie=function(e){if(!this.b.G){var k=
this.B.la(this.x,this.y,!0),f=this.B.la(this.x,this.y,!1),a=this.B.la(this.x+this.width,this.y+this.height,!0),c=this.B.la(this.x+this.width,this.y+this.height,!1),d=this.b.width/this.b.devicePixelRatio,b=this.b.height/this.b.devicePixelRatio;!this.visible||!this.B.visible||0>=a||0>=c||k>=d||f>=b?(this.nb||jQuery(this.k).hide(),this.nb=!0):(1>k&&(k=1),1>f&&(f=1),a>=d&&(a=d-1),c>=b&&(c=b-1),d=window.innerWidth,b=window.innerHeight,e||this.Ud!==k||this.Wd!==f||this.Vd!==a||this.Td!==c||this.Yd!==d||
this.Xd!==b?(this.Ud=k,this.Wd=f,this.Vd=a,this.Td=c,this.Yd=d,this.Xd=b,this.nb&&(jQuery(this.k).show(),this.nb=!1),e=Math.round(k)+jQuery(this.b.canvas).offset().left,d=Math.round(f)+jQuery(this.b.canvas).offset().top,jQuery(this.k).css("position","absolute"),jQuery(this.k).offset({left:e,top:d}),jQuery(this.k).width(Math.round(a-k)),jQuery(this.k).height(Math.round(c-f)),this.jj&&jQuery(this.k).css("font-size",this.B.nc(!0)/this.b.devicePixelRatio-.2+"em")):this.nb&&(jQuery(this.k).show(),this.nb=
!1))}};n.lc=function(){};n.Bb=function(){};e.prototype.zg=function(){return!0};e.prototype.Jw=function(){return this.Xg&&this.wc.checked};p.j=new e;m.prototype.Ih=function(e){this.b.G||(this.Xg?this.Sj.nodeValue=e:this.k.value=e)};m.prototype.ud=function(e){this.b.G||(this.visible=0!==e)};m.prototype.Hh=function(e){this.b.G||(this.wc.disabled=0===e)};m.prototype.no=function(){this.b.G||this.wc.focus()};m.prototype.lo=function(){this.b.G||this.wc.blur()};m.prototype.cj=function(e,k){this.b.G||jQuery(this.k).css(e,
k)};p.q=new m;p.A=new function(){}})();function Fc(e){this.b=e}(function(){var e=Fc.prototype;e.K=function(e){this.Z=e;this.b=e.b};e.K.prototype.H=function(){};e.I=function(e){this.type=e;this.b=e.b};e.I.prototype.H=function(){};e.j={};e.q={};e.A=new function(){}})();function Gc(e){this.b=e}
(function(){function e(){}function m(){}function p(){}var n=Gc.prototype;n.K=function(e){this.Z=e;this.b=e.b};n.K.prototype.H=function(){};n.I=function(e){this.type=e;this.b=e.b};var r=n.I.prototype;r.H=function(){this.lb={};this.Qh=""};r.Ba=function(){return this.lb};r.Ga=function(e){this.lb=e;for(var f in this.lb);};e.prototype.ir=function(e,f,a){return qc(this.lb[e],f,a)};e.prototype.zw=function(){var e=this.b.cb().kb,f;for(f in this.lb)this.lb.hasOwnProperty(f)&&(this.Qh=f,this.b.Fe(e.na),e.de(),
this.b.nd(e.na));this.Qh="";return!1};e.prototype.bw=function(e,f){return qc(this.lb[this.Qh],e,f)};e.prototype.Dw=function(e){return this.lb.hasOwnProperty(e)};n.j=new e;m.prototype.dr=function(e,f){this.lb[e]=f};m.prototype.Yy=function(e,f){this.lb.hasOwnProperty(e)&&(this.lb[e]=f)};m.prototype.ow=function(e){this.lb.hasOwnProperty(e)&&delete this.lb[e]};m.prototype.Xk=function(){fb(this.lb)};m.prototype.mr=function(e){var f;try{f=JSON.parse(e)}catch(a){return}if(f.c2dictionary){this.lb=f.data;
for(var c in this.lb);}};m.prototype.lr=function(e){var f=document.createElement("a");if("undefined"===typeof f.Od)f="data:text/html,"+encodeURIComponent("<p><a download='data.json' href=\"data:application/json,"+encodeURIComponent(JSON.stringify({c2dictionary:!0,data:this.lb}))+'">Download link</a></p>'),window.open(f);else{var a=document.getElementsByTagName("body")[0];f.textContent=e;f.href="data:application/json,"+encodeURIComponent(JSON.stringify({c2dictionary:!0,data:this.lb}));f.Od=e;a.appendChild(f);
e=document.createEvent("MouseEvent");e.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null);f.dispatchEvent(e);a.removeChild(f)}};n.q=new m;p.prototype.Bw=function(e,f){this.lb.hasOwnProperty(f)?e.Ck(this.lb[f]):e.O(0)};p.prototype.lw=function(e){e.L(this.Qh)};p.prototype.mw=function(e){this.lb.hasOwnProperty(this.Qh)?e.Ck(this.lb[this.Qh]):e.O(0)};p.prototype.Dh=function(e){e.L(JSON.stringify({c2dictionary:!0,data:this.lb}))};n.A=new p})();function Ac(e){this.b=e}
(function(){function e(){this.name="";this.Fi=0;this.ub=[]}function m(){c++;c===a.length&&a.push(new e);return a[c]}function p(){return 0>c?null:a[c]}function n(){}function r(){}function k(){}var f=Ac.prototype;f.K=function(a){this.Z=a;this.b=a.b};f.K.prototype.H=function(){};f.I=function(a){this.type=a;this.b=a.b};var a=[],c=-1;f.I.prototype.H=function(){var a=this;window.c2_callFunction=function(b,f){var g,e,k,n=m();n.name=b.toLowerCase();n.Fi=0;if(f)for(n.ub.length=f.length,g=0,e=f.length;g<e;++g)k=
f[g],n.ub[g]="number"===typeof k||"string"===typeof k?k:"boolean"===typeof k?k?1:0:0;else A(n.ub);a.b.trigger(Ac.prototype.j.dl,a,n.name);c--;return n.Fi}};n.prototype.dl=function(a){var b=p();return b?ub(a,b.name):!1};n.prototype.dw=function(a,b,c){var g=p();if(!g)return!1;a=ta(a);return 0>a||a>=g.ub.length?!1:qc(g.ub[a],b,c)};f.j=new n;r.prototype.CallFunction=function(a,b){var f=m();f.name=a.toLowerCase();f.Fi=0;Fa(f.ub,b);this.b.trigger(Ac.prototype.j.dl,this,f.name);c--};r.prototype.fz=function(a){var b=
p();b&&(b.Fi=a)};f.q=new r;k.prototype.gy=function(a,b){b=ta(b);var c=p();c?0<=b&&b<c.ub.length?a.Ck(c.ub[b]):a.O(0):a.O(0)};k.prototype.fr=function(a,b){var f=m();f.name=b.toLowerCase();f.Fi=0;A(f.ub);var g,e;g=2;for(e=arguments.length;g<e;g++)f.ub.push(arguments[g]);this.b.trigger(Ac.prototype.j.dl,this,f.name);c--;a.Ck(f.Fi)};f.A=new k})();function Hc(e){this.b=e}
(function(){function e(){}function m(){}function p(){}var n=Hc.prototype;n.K=function(f){this.Z=f;this.b=f.b};n.K.prototype.H=function(){};var r="geolocation"in navigator;n.I=function(f){this.type=f;this.b=f.b};var k=n.I.prototype;k.H=function(){this.rj="";this.speed=this.heading=this.Xz=this.accuracy=this.altitude=this.longitude=this.latitude=this.timestamp=0;var f=this;this.Jv=function(a){f.timestamp=a.timestamp;a=a.coords;f.latitude=a.latitude||0;f.longitude=a.longitude||0;f.altitude=a.altitude||
0;f.accuracy=a.accuracy||0;f.Xz=a.altitudeAccuracy||0;f.heading=a.heading||0;f.speed=a.speed||0;f.b.trigger(Hc.prototype.j.Zr,f)};this.Rs=function(a){f.rj=a.message||"Unknown error";f.b.trigger(Hc.prototype.j.Pe,f)}};k.Wb=function(){};k.Ba=function(){return{}};k.Ga=function(){};e.prototype.Wn=function(){return r};e.prototype.Zr=function(){return!0};e.prototype.Pe=function(){return!0};n.j=new e;m.prototype.Cy=function(f,a,c){if(r)if(this.b.Yg){var d=this;fetch("https://maps.googleapis.com/maps/api/browserlocation/json?browser=chromium&sensor=true").then(function(a){if(!a.zF)throw Error("bad response");
return a.qF()}).then(function(a){if(!a||!a.location)throw Error("no location");d.Jv({timestamp:Date.now(),coords:{latitude:a.location.lat,longitude:a.location.lng,accuracy:a.accuracy||0}})}).catch(function(){d.Rs()})}else navigator.geolocation.getCurrentPosition(this.Jv,this.Rs,{enableHighAccuracy:0!==f,timeout:1E3*a,maximumAge:1E3*c})};n.q=new m;p.prototype.Vn=function(f){f.L(this.rj)};p.prototype.cx=function(f){f.V(this.latitude)};p.prototype.jx=function(f){f.V(this.longitude)};n.A=new p})();
function Ic(e){this.b=e}
(function(){function e(){}function m(){}var p=Ic.prototype;p.K=function(a){this.Z=a;this.b=a.b};p.K.prototype.H=function(){};p.I=function(a){this.type=a;this.b=a.b};var n=p.I.prototype,r=null,k=!1;n.H=function(){if(this.b.Bp){try{r=require("./greenworks")}catch(a){console.error("Failed to require Greenworks: ",a),r=null}var c=this;if(r){try{r.init(),k=!0}catch(d){console.error("Failed to initialise Greenworks: ",d),k=!1}if(k&&(r.getSteamId(),r.on))r.on("game-overlay-activated",function(a){a?c.b.trigger(Ic.prototype.j.Gx,
c):c.b.trigger(Ic.prototype.j.Hx,c)})}}};n.Wb=function(){};n.Ba=function(){return{}};n.Ga=function(){};n.lc=function(){};n.Bb=function(){};e.prototype.Tw=function(){return k?!!r.isGameOverlayEnabled():!1};e.prototype.Gx=function(){return!0};e.prototype.Hx=function(){return!0};p.j=new e;var f="Friends Community Players Settings OfficialGameGroup Stats Achievements".split(" ");m.prototype.Pv=function(a){k&&r.activateGameOverlay(f[a])};p.q=new m;p.A=new function(){}})();function Jc(e){this.b=e}
(function(){function e(){}function m(){}function p(f){f=Math.floor(f);switch(f){case 8:return"backspace";case 9:return"tab";case 13:return"enter";case 16:return"shift";case 17:return"control";case 18:return"alt";case 19:return"pause";case 20:return"capslock";case 27:return"esc";case 33:return"pageup";case 34:return"pagedown";case 35:return"end";case 36:return"home";case 37:return"\u2190";case 38:return"\u2191";case 39:return"\u2192";case 40:return"\u2193";case 45:return"insert";case 46:return"del";
case 91:return"left window key";case 92:return"right window key";case 93:return"select";case 96:return"numpad 0";case 97:return"numpad 1";case 98:return"numpad 2";case 99:return"numpad 3";case 100:return"numpad 4";case 101:return"numpad 5";case 102:return"numpad 6";case 103:return"numpad 7";case 104:return"numpad 8";case 105:return"numpad 9";case 106:return"numpad *";case 107:return"numpad +";case 109:return"numpad -";case 110:return"numpad .";case 111:return"numpad /";case 112:return"F1";case 113:return"F2";
case 114:return"F3";case 115:return"F4";case 116:return"F5";case 117:return"F6";case 118:return"F7";case 119:return"F8";case 120:return"F9";case 121:return"F10";case 122:return"F11";case 123:return"F12";case 144:return"numlock";case 145:return"scroll lock";case 186:return";";case 187:return"=";case 188:return",";case 189:return"-";case 190:return".";case 191:return"/";case 192:return"'";case 219:return"[";case 220:return"\\";case 221:return"]";case 222:return"#";case 223:return"`";default:return String.fromCharCode(f)}}
var n=Jc.prototype;n.K=function(f){this.Z=f;this.b=f.b};n.K.prototype.H=function(){};n.I=function(f){this.type=f;this.b=f.b;this.lg=Array(256);this.Qk=Array(256);this.Me=0};var r=n.I.prototype;r.H=function(){var f=this;this.b.G||(jQuery(document).keydown(function(a){f.RC(a)}),jQuery(document).keyup(function(a){f.SC(a)}))};var k=[32,33,34,35,36,37,38,39,40,44];r.RC=function(f){var a=!1;window!=window.top&&-1<k.indexOf(f.which)&&(f.preventDefault(),a=!0,f.stopPropagation());if(this.lg[f.which])this.Qk[f.which]&&
!a&&f.preventDefault();else{this.lg[f.which]=!0;this.Me=f.which;this.b.ya=!0;this.b.trigger(Jc.prototype.j.pr,this);var c=this.b.trigger(Jc.prototype.j.Dr,this),d=this.b.trigger(Jc.prototype.j.Er,this);this.b.ya=!1;if(c||d)this.Qk[f.which]=!0,a||f.preventDefault()}};r.SC=function(f){this.lg[f.which]=!1;this.Me=f.which;this.b.ya=!0;this.b.trigger(Jc.prototype.j.Xn,this);var a=this.b.trigger(Jc.prototype.j.Zn,this),c=this.b.trigger(Jc.prototype.j.Fr,this);this.b.ya=!1;if(a||c||this.Qk[f.which])this.Qk[f.which]=
!0,f.preventDefault()};r.rh=function(){var f;for(f=0;256>f;++f)if(this.lg[f]){this.lg[f]=!1;this.Me=f;this.b.trigger(Jc.prototype.j.Xn,this);var a=this.b.trigger(Jc.prototype.j.Zn,this),c=this.b.trigger(Jc.prototype.j.Fr,this);if(a||c)this.Qk[f]=!0}};r.Ba=function(){return{triggerKey:this.Me}};r.Ga=function(f){this.Me=f.triggerKey};e.prototype.Pw=function(f){return this.lg[f]};e.prototype.Dr=function(f){return f===this.Me};e.prototype.pr=function(){return!0};e.prototype.Xn=function(){return!0};e.prototype.Zn=
function(f){return f===this.Me};e.prototype.Ow=function(f){f=Math.floor(f);return 0>f||f>=this.lg.length?!1:this.lg[f]};e.prototype.Er=function(f){return f===this.Me};e.prototype.Fr=function(f){return f===this.Me};n.j=new e;n.q=new function(){};m.prototype.bx=function(f){f.O(this.Me)};m.prototype.zz=function(f,a){f.L(p(a))};n.A=new m})();function Kc(e){this.b=e}
(function(){function e(){}function m(){}function p(){}var n=Kc.prototype;n.K=function(e){this.Z=e;this.b=e.b};n.K.prototype.H=function(){};n.I=function(e){this.type=e;this.b=e.b};var r=n.I.prototype;r.H=function(){if(this.b.G)fa("[Construct 2] List plugin not supported on this platform - the object will not be created");else{this.k=document.createElement("select");this.k.id=this.D[7];jQuery(this.k).appendTo(this.b.pe?this.b.pe:"body");this.k.title=this.D[1];this.k.disabled=0===this.D[3];0===this.D[4]&&
(this.k.size=2);this.k.multiple=0!==this.D[5];this.jj=0!==this.D[6];0===this.D[2]&&(jQuery(this.k).hide(),this.visible=!1);if(this.D[0]){var e=this.D[0].split(";"),f,a,c;f=0;for(a=e.length;f<a;f++)c=document.createElement("option"),c.text=e[f],this.k.add(c)}var d=this;this.k.onchange=function(){d.b.trigger(Kc.prototype.j.Nr,d)};this.k.onclick=function(a){a.stopPropagation();d.b.ya=!0;d.b.trigger(Kc.prototype.j.zg,d);d.b.ya=!1};this.k.ondblclick=function(a){a.stopPropagation();d.b.ya=!0;d.b.trigger(Kc.prototype.j.bj,
d);d.b.ya=!1};this.k.addEventListener("touchstart",function(a){a.stopPropagation()},!1);this.k.addEventListener("touchmove",function(a){a.stopPropagation()},!1);this.k.addEventListener("touchend",function(a){a.stopPropagation()},!1);jQuery(this.k).mousedown(function(a){a.stopPropagation()});jQuery(this.k).mouseup(function(a){a.stopPropagation()});this.Xd=this.Yd=this.Td=this.Vd=this.Wd=this.Ud=0;this.fi=!0;this.ie(!0);this.b.fe(this)}};r.Ba=function(){var e={tooltip:this.k.title,disabled:!!this.k.disabled,
items:[],sel:[]},f,a,c=e.items;f=0;for(a=this.k.length;f<a;f++)c.push(this.k.options[f].text);c=e.sel;if(this.k.multiple)for(f=0,a=this.k.length;f<a;f++)this.k.options[f].selected&&c.push(f);else c.push(this.k.selectedIndex);return e};r.Ga=function(e){this.k.title=e.tooltip;this.k.disabled=e.disabled;for(var f=e.items;this.k.length;)this.k.remove(this.k.length-1);var a,c,d;a=0;for(c=f.length;a<c;a++)d=document.createElement("option"),d.text=f[a],this.k.add(d);e=e.sel;if(this.k.multiple)for(a=0,c=
e.length;a<c;a++)e[a]<this.k.length&&(this.k.options[e[a]].selected=!0);else 1<=e.length&&(this.k.selectedIndex=e[0])};r.Wb=function(){this.b.G||(jQuery(this.k).remove(),this.k=null)};r.La=function(){this.ie()};r.ie=function(e){if(!this.b.G){var f=this.B.la(this.x,this.y,!0),a=this.B.la(this.x,this.y,!1),c=this.B.la(this.x+this.width,this.y+this.height,!0),d=this.B.la(this.x+this.width,this.y+this.height,!1),b=this.b.width/this.b.devicePixelRatio,h=this.b.height/this.b.devicePixelRatio;!this.visible||
!this.B.visible||0>=c||0>=d||f>=b||a>=h?(this.fi&&jQuery(this.k).hide(),this.fi=!1):(1>f&&(f=1),1>a&&(a=1),c>=b&&(c=b-1),d>=h&&(d=h-1),b=window.innerWidth,h=window.innerHeight,e||this.Ud!==f||this.Wd!==a||this.Vd!==c||this.Td!==d||this.Yd!==b||this.Xd!==h?(this.Ud=f,this.Wd=a,this.Vd=c,this.Td=d,this.Yd=b,this.Xd=h,this.fi||(jQuery(this.k).show(),this.fi=!0),e=Math.round(f)+jQuery(this.b.canvas).offset().left,b=Math.round(a)+jQuery(this.b.canvas).offset().top,jQuery(this.k).css("position","absolute"),
jQuery(this.k).offset({left:e,top:b}),jQuery(this.k).width(Math.round(c-f)),jQuery(this.k).height(Math.round(d-a)),this.jj&&jQuery(this.k).css("font-size",this.B.nc(!0)/this.b.devicePixelRatio-.2+"em")):this.fi||(jQuery(this.k).show(),this.fi=!0))}};r.lc=function(){};r.Bb=function(){};e.prototype.fw=function(e,f){return qc(this.k.selectedIndex,e,f)};e.prototype.Nr=function(){return!0};e.prototype.zg=function(){return!0};e.prototype.bj=function(){return!0};e.prototype.ew=function(e,f){var a="",a=this.k.selectedIndex;
if(0>a||a>=this.k.length)return!1;a=this.k.options[a].text;return f?a==e:ub(a,e)};e.prototype.gw=function(e,f,a){var c="";e=Math.floor(e);if(0>e||e>=this.k.length)return!1;c=this.k.options[e].text;return a?c==f:ub(c,f)};n.j=new e;m.prototype.Iy=function(e){this.b.G||(this.k.selectedIndex=e)};m.prototype.ud=function(e){this.b.G||(this.visible=0!==e)};m.prototype.Hh=function(e){this.b.G||(this.k.disabled=0===e)};m.prototype.no=function(){this.b.G||this.k.focus()};m.prototype.lo=function(){this.b.G||
this.k.blur()};m.prototype.cj=function(e,f){this.b.G||jQuery(this.k).css(e,f)};m.prototype.Qv=function(e){if(!this.b.G){var f=document.createElement("option");f.text=e;this.k.add(f)}};m.prototype.Rv=function(e,f){if(!this.b.G){e=Math.floor(e);0>e&&(e=0);var a=document.createElement("option");a.text=f;e>=this.k.length?this.k.add(a):this.k.add(a,this.k.options[e])}};m.prototype.yy=function(e){this.b.G||(e=Math.floor(e),this.k.remove(e))};m.prototype.Xy=function(e,f){this.b.G||(e=Math.floor(e),0>e||
e>=this.k.length||(this.k.options[e].text=f))};m.prototype.Xk=function(){this.b.G||(this.k.innerHTML="")};n.q=new m;p.prototype.Xw=function(e){this.b.G?e.O(0):e.O(this.k.length)};p.prototype.Yw=function(e,f){this.b.G?e.L(""):(f=Math.floor(f),0>f||f>=this.k.length?e.L(""):e.L(this.k.options[f].text))};p.prototype.Jy=function(e){this.b.G?e.O(0):e.O(this.k.selectedIndex)};p.prototype.Ky=function(e){if(this.b.G)e.L("");else{var f=this.k.selectedIndex;0>f||f>=this.k.length?e.L(""):e.L(this.k.options[f].text)}};
n.A=new p})();
try{!function(){var e,m,p;!function(){var n={},r={};e=function(e,f,a){n[e]={rA:f,gA:a}};p=m=function(e){function f(a){if("."!==a.charAt(0))return a;a=a.split("/");for(var b=e.split("/").slice(0,-1),c=0,d=a.length;d>c;c++){var g=a[c];".."===g?b.pop():"."!==g&&b.push(g)}return b.join("/")}if(p.cF=n,r[e])return r[e];if(r[e]={},!n[e])throw Error("Could not find module "+e);for(var a,c=n[e],d=c.rA,c=c.gA,b=[],h=0,g=d.length;g>h;h++)"exports"===d[h]?b.push(a={}):b.push(m(f(d[h])));d=c.apply(this,b);return r[e]=
a||d}}();e("promise/all",["./utils","exports"],function(e,p){var k=e.isArray,f=e.isFunction;p.all=function(a){if(!k(a))throw new TypeError("You must pass an array to all.");return new this(function(c,d){function b(a){return function(b){g[a]=b;0===--l&&c(g)}}var e,g=[],l=a.length;0===l&&c([]);for(var k=0;k<a.length;k++)(e=a[k])&&f(e.then)?e.then(b(k),d):(g[k]=e,0===--l&&c(g))})}});e("promise/asap",["exports"],function(e){function p(){return function(){process.yF(a)}}function k(){var c=0,d=new b(a),
g=document.createTextNode("");return d.observe(g,{characterData:!0}),function(){g.data=c=++c%2}}function f(){return function(){h.setTimeout(a,1)}}function a(){for(var a=0;a<g.length;a++){var b=g[a];(0,b[0])(b[1])}g=[]}var c,d="undefined"!=typeof window?window:{},b=d.MutationObserver||d.WebKitMutationObserver,h="undefined"!=typeof global?global:void 0===this?window:this,g=[];c="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?p():b?k():f();e.Zz=function(a,b){1===g.push([a,
b])&&c()}});e("promise/config",["exports"],function(e){var p={oF:!1};e.Fs=p;e.kA=function(e,f){return 2!==arguments.length?p[e]:void(p[e]=f)}});e("promise/polyfill",["./promise","./utils","exports"],function(e,p,k){var f=e.Promise,a=p.isFunction;k.cD=function(){var c;c="undefined"!=typeof global?global:"undefined"!=typeof window&&window.document?window:self;"Promise"in c&&"resolve"in c.Promise&&"reject"in c.Promise&&"all"in c.Promise&&"race"in c.Promise&&function(){var d;return new c.Promise(function(a){d=
a}),a(d)}()||(c.Promise=f)}});e("promise/promise","./config ./utils ./all ./race ./resolve ./reject ./asap exports".split(" "),function(e,p,k,f,a,c,d,b){function h(a){if(!w(a))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof h))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.ml=[];g(a,this)}function g(a,b){function c(a){q(b,
a)}function d(a){H(b,a)}try{a(c,d)}catch(g){d(g)}}function l(a,b,c,d){var g,f,e,h,l=w(c);if(l)try{g=c(d),e=!0}catch(k){h=!0,f=k}else g=d,e=!0;L(b,g)||(l&&e?q(b,g):h?H(b,f):a===M?q(b,g):a===T&&H(b,g))}function t(a,b,c,d){a=a.ml;var g=a.length;a[g]=b;a[g+M]=c;a[g+T]=d}function m(a,b){for(var c,d,g=a.ml,f=a.ll,e=0;e<g.length;e+=3)c=g[e],d=g[e+b],l(b,c,d,f);a.ml=null}function L(a,b){var c,d=null;try{if(a===b)throw new TypeError("A promises callback cannot return that same promise.");if(C(b)&&(d=b.then,
w(d)))return d.call(b,function(d){return c?!0:(c=!0,void(b!==d?q(a,d):u(a,d)))},function(b){return c?!0:(c=!0,void H(a,b))}),!0}catch(g){return c?!0:(H(a,g),!0)}return!1}function q(a,b){a===b?u(a,b):L(a,b)||u(a,b)}function u(a,b){a.Qe===y&&(a.Qe=K,a.ll=b,Q.async(X,a))}function H(a,b){a.Qe===y&&(a.Qe=K,a.ll=b,Q.async(R,a))}function X(a){m(a,a.Qe=M)}function R(a){m(a,a.Qe=T)}var Q=e.Fs,C=(e.kA,p.LC),w=p.isFunction;e=(p.now,k.all);f=f.race;a=a.resolve;c=c.reject;Q.async=d.Zz;var y=void 0,K=0,M=1,T=2;
h.prototype={constructor:h,Qe:void 0,ll:void 0,ml:void 0,then:function(a,b){var c=this,d=new this.constructor(function(){});if(this.Qe){var g=arguments;Q.async(function(){l(c.Qe,d,g[c.Qe-1],c.ll)})}else t(this,d,a,b);return d},"catch":function(a){return this.then(null,a)}};h.all=e;h.race=f;h.resolve=a;h.reject=c;b.Promise=h});e("promise/race",["./utils","exports"],function(e,p){var k=e.isArray;p.race=function(f){if(!k(f))throw new TypeError("You must pass an array to race.");return new this(function(a,
c){for(var d,b=0;b<f.length;b++)(d=f[b])&&"function"==typeof d.then?d.then(a,c):a(d)})}});e("promise/reject",["exports"],function(e){e.reject=function(e){return new this(function(k,f){f(e)})}});e("promise/resolve",["exports"],function(e){e.resolve=function(e){return e&&"object"==typeof e&&e.constructor===this?e:new this(function(k){k(e)})}});e("promise/utils",["exports"],function(e){function p(f){return"function"==typeof f}var k=Date.now||function(){return(new Date).getTime()};e.LC=function(f){return p(f)||
"object"==typeof f&&null!==f};e.isFunction=p;e.isArray=function(f){return"[object Array]"===Object.prototype.toString.call(f)};e.now=k});m("promise/polyfill").cD()}();var Lc=function(){return function(e){function m(n){if(p[n])return p[n].re;var r=p[n]={re:{},id:n,loaded:!1};return e[n].call(r.re,r,r.re,m),r.loaded=!0,r.re}var p={};return m.Od=e,m.kj=p,m.mi="",m(0)}([function(e,m,p){m.kl=!0;var n=function(e){function k(a,b){a[b]=function(){var c=arguments;return a.ready().then(function(){return a[b].apply(a,
c)})}}function f(){for(var a=1;a<arguments.length;a++){var b=arguments[a];if(b)for(var c in b)b.hasOwnProperty(c)&&(l(b[c])?arguments[0][c]=b[c].slice():arguments[0][c]=b[c])}return arguments[0]}function a(a){for(var b in d)if(d.hasOwnProperty(b)&&d[b]===a)return!0;return!1}var c={},d={Yi:"asyncStorage",Zi:"localStorageWrapper",dj:"webSQLStorage"},b="clear getItem iterate key keys length removeItem setItem".split(" "),h={description:"",Th:[d.Yi,d.dj,d.Zi].slice(),name:"localforage",size:4980736,Ka:"keyvaluepairs",
version:1},g=function(a){var b={},c;try{var g=g||a.indexedDB||a.webkitIndexedDB||a.mozIndexedDB||a.Am||a.msIndexedDB;c="undefined"!=typeof a.openDatabase&&a.navigator&&a.navigator.userAgent&&/Safari/.test(a.navigator.userAgent)&&!/Chrome/.test(a.navigator.userAgent)?!1:g&&"function"==typeof g.open&&"undefined"!=typeof a.IDBKeyRange}catch(f){c=!1}b[d.Yi]=!!c;var e;try{e=a.openDatabase}catch(h){e=!1}b[d.dj]=!!e;var l;try{l=a.localStorage&&"setItem"in a.localStorage&&a.localStorage.setItem}catch(k){l=
!1}return b[d.Zi]=!!l,b}(e),l=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};return new (function(){function e(a){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.Yi=d.Yi;this.Zi=d.Zi;this.dj=d.dj;this.uo=f({},h);this.Bg=f({},this.uo,a);this.ls=this.le=null;this.Kf=!1;this.Ia=null;this.ms();this.bv(this.Bg.Th)}return e.prototype.Fs=function(a){if("object"==typeof a){if(this.Kf)return Error("Can't call config() after localforage has been used.");
for(var b in a)"storeName"===b&&(a[b]=a[b].replace(/\W/g,"_")),this.Bg[b]=a[b];return"driver"in a&&a.Th&&this.bv(this.Bg.Th),!0}return"string"==typeof a?this.Bg[a]:this.Bg},e.prototype.Th=function(){return this.ej||null},e.prototype.ht=function(b,d,g){var f=this,e=function(){if(a(b))switch(b){case f.Yi:return new Promise(function(a){a(p(1))});case f.Zi:return new Promise(function(a){a(p(2))});case f.dj:return new Promise(function(a){a(p(4))})}else if(c[b])return Promise.resolve(c[b]);return Promise.reject(Error("Driver not found."))}();
return e.then(d,g),e},e.prototype.ready=function(a){var b=this,c=b.le.then(function(){return null===b.Kf&&(b.Kf=b.ls()),b.Kf});return c.then(a,a),c},e.prototype.bv=function(a,b,c){function d(){f.Bg.Th=f.Th()}function g(a){return function(){function b(){for(;c<a.length;){var g=a[c];return c++,f.Ia=null,f.Kf=null,f.ht(g).then(function(a){return f.Nz(a),d(),f.Kf=f.wo(f.Bg),f.Kf})["catch"](b)}d();return f.le=Promise.reject(Error("No available storage method found.")),f.le}var c=0;return b()}}var f=this;
l(a)||(a=[a]);var e=this.Oz(a);return this.le=(null!==this.le?this.le["catch"](function(){return Promise.resolve()}):Promise.resolve()).then(function(){var a=e[0];return f.Ia=null,f.Kf=null,f.ht(a).then(function(a){f.ej=a.ej;d();f.ms();f.ls=g(e)})})["catch"](function(){d();return f.le=Promise.reject(Error("No available storage method found.")),f.le}),this.le.then(b,c),this.le},e.prototype.supports=function(a){return!!g[a]},e.prototype.Nz=function(a){f(this,a)},e.prototype.Oz=function(a){for(var b=
[],c=0,d=a.length;d>c;c++){var g=a[c];this.supports(g)&&b.push(g)}return b},e.prototype.ms=function(){for(var a=0;a<b.length;a++)k(this,b[a])},e.prototype.Jl=function(a){return new e(a)},e}())}("undefined"!=typeof window?window:self);m["default"]=n;e.re=m["default"]},function(e,m){m.kl=!0;m["default"]=function(e){function n(a,b){a=a||[];b=b||{};try{return new Blob(a,b)}catch(c){if("TypeError"!==c.name)throw c;for(var d=new (e.BlobBuilder||e.Od||e.mi||e.WebKitBlobBuilder),g=0;g<a.length;g+=1)d.append(a[g]);
return d.getBlob(b.type)}}function m(a){return new Promise(function(b,c){var d=new XMLHttpRequest;d.open("GET",a);d.withCredentials=!0;d.responseType="arraybuffer";d.onreadystatechange=function(){return 4===d.readyState?200===d.status?b({response:d.response,type:d.getResponseHeader("Content-Type")}):void c({status:d.status,response:d.response}):void 0};d.send()})}function k(a){return(new Promise(function(b,c){var d=n([""],{type:"image/png"}),g=a.transaction([y],"readwrite");g.objectStore(y).put(d,
"key");g.oncomplete=function(){var d=a.transaction([y],"readwrite").objectStore(y).get("key");d.onerror=c;d.onsuccess=function(a){var c=URL.createObjectURL(a.target.result);m(c).then(function(a){b(!(!a||"image/png"!==a.type))},function(){b(!1)}).then(function(){URL.revokeObjectURL(c)})}};g.onerror=g.onabort=c}))["catch"](function(){return!1})}function f(a){return"boolean"==typeof C?Promise.resolve(C):k(a).then(function(a){return C=a})}function a(a){return new Promise(function(b,c){var d=new FileReader;
d.onerror=c;d.onloadend=function(c){b({ks:!0,data:btoa(c.target.result||""),type:a.type})};d.readAsBinaryString(a)})}function c(a){for(var b=atob(a.data),c=b.length,d=new ArrayBuffer(c),g=new Uint8Array(d),f=0;c>f;f++)g[f]=b.charCodeAt(f);return n([d],{type:a.type})}function d(a){var b=this,c=b.vo().then(function(){var a=w[b.Ia.name];return a&&a.Sh?a.Sh:void 0});return c.then(a,a),c}function b(a){a=w[a.name];var b={};b.promise=new Promise(function(a){b.resolve=a});a.Ks.push(b);a.Sh?a.Sh=a.Sh.then(function(){return b.promise}):
a.Sh=b.promise}function h(a){function b(){return Promise.resolve()}var c=this,f={db:null};if(a)for(var h in a)f[h]=a[h];w||(w={});var l=w[f.name];l||(l={$l:[],db:null,Sh:null,Ks:[]},w[f.name]=l);l.$l.push(c);c.vo||(c.vo=c.ready,c.ready=d);a=[];for(h=0;h<l.$l.length;h++){var q=l.$l[h];q!==c&&a.push(q.vo()["catch"](b))}var k=l.$l.slice(0);return Promise.all(a).then(function(){return f.db=l.db,g(f,!1)}).then(function(a){f.db=a;var b;b=c.uo.version;if(f.db){var d=!f.db.objectStoreNames.contains(f.Ka),
h=f.version>f.db.version;(f.version<f.db.version&&(f.version!==b&&e.console.warn('The database "'+f.name+"\" can't be downgraded from version "+f.db.version+" to version "+f.version+"."),f.version=f.db.version),h||d)?(d&&(b=f.db.version+1,b>f.version&&(f.version=b)),b=!0):b=!1}else b=!0;return b?g(f,!0):a}).then(function(a){f.db=l.db=a;c.Ia=f;for(a=0;a<k.length;a++){var b=k[a];b!==c&&(b.Ia.db=f.db,b.Ia.version=f.version)}})}function g(a,c){return new Promise(function(d,g){if(a.db){if(!c)return d(a.db);
b(a);a.db.close()}var f=[a.name];c&&f.push(a.version);var h=Q.open.apply(Q,f);c&&(h.onupgradeneeded=function(b){var c=h.result;try{c.createObjectStore(a.Ka),1>=b.oldVersion&&c.createObjectStore(y)}catch(d){if("ConstraintError"!==d.name)throw d;e.console.warn('The database "'+a.name+'" has been upgraded from version '+b.oldVersion+" to version "+b.newVersion+', but the storage "'+a.Ka+'" already exists.')}});h.onerror=function(){g(h.error)};h.onsuccess=function(){d(h.result);var b=w[a.name].Ks.pop();
b&&b.resolve()}})}function l(a,b){var d=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var g=new Promise(function(b,g){d.ready().then(function(){var f=d.Ia,e=f.db.transaction(f.Ka,"readonly").objectStore(f.Ka).get(a);e.onsuccess=function(){var a=e.result;void 0===a&&(a=null);a&&a.ks&&(a=c(a));b(a)};e.onerror=function(){g(e.error)}})["catch"](g)});return R(g,b),g}function t(a,b){var d=this,g=new Promise(function(b,g){d.ready().then(function(){var f=
d.Ia,e=f.db.transaction(f.Ka,"readonly").objectStore(f.Ka).openCursor(),h=1;e.onsuccess=function(){var d=e.result;if(d){var g=d.value;g&&g.ks&&(g=c(g));g=a(g,d.key,h++);void 0!==g?b(g):d["continue"]()}else b()};e.onerror=function(){g(e.error)}})["catch"](g)});return R(g,b),g}function v(b,c,d){var g=this;"string"!=typeof b&&(e.console.warn(b+" used as a key, but it is not a string."),b=String(b));var h=new Promise(function(d,e){var h;g.ready().then(function(){return h=g.Ia,c instanceof Blob?f(h.db).then(function(b){return b?
c:a(c)}):c}).then(function(a){var c=h.db.transaction(h.Ka,"readwrite"),g=c.objectStore(h.Ka);null===a&&(a=void 0);c.oncomplete=function(){void 0===a&&(a=null);d(a)};c.onabort=c.onerror=function(){e(f.error?f.error:f.transaction.error)};var f=g.put(a,b)})["catch"](e)});return R(h,d),h}function L(a,b){var c=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var g=c.Ia,f=g.db.transaction(g.Ka,"readwrite"),
e=f.objectStore(g.Ka)["delete"](a);f.oncomplete=function(){b()};f.onerror=function(){d(e.error)};f.onabort=function(){d(e.error?e.error:e.transaction.error)}})["catch"](d)});return R(d,b),d}function q(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ia,g=d.db.transaction(d.Ka,"readwrite"),f=g.objectStore(d.Ka).clear();g.oncomplete=function(){a()};g.onabort=g.onerror=function(){c(f.error?f.error:f.transaction.error)}})["catch"](c)});return R(c,a),c}function u(a){var b=this,
c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ia,g=d.db.transaction(d.Ka,"readonly").objectStore(d.Ka).count();g.onsuccess=function(){a(g.result)};g.onerror=function(){c(g.error)}})["catch"](c)});return R(c,a),c}function H(a,b){var c=this,d=new Promise(function(b,d){return 0>a?void b(null):void c.ready().then(function(){var g=c.Ia,f=!1,e=g.db.transaction(g.Ka,"readonly").objectStore(g.Ka).openCursor();e.onsuccess=function(){var c=e.result;return c?void(0===a?b(c.key):f?b(c.key):(f=
!0,c.advance(a))):void b(null)};e.onerror=function(){d(e.error)}})["catch"](d)});return R(d,b),d}function X(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ia,g=d.db.transaction(d.Ka,"readonly").objectStore(d.Ka).openCursor(),f=[];g.onsuccess=function(){var b=g.result;return b?(f.push(b.key),void b["continue"]()):void a(f)};g.onerror=function(){c(g.error)}})["catch"](c)});return R(c,a),c}function R(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var Q=Q||e.indexedDB||
e.webkitIndexedDB||e.mozIndexedDB||e.Am||e.msIndexedDB;if(Q){var C,w,y="local-forage-detect-blob-support";return{ej:"asyncStorage",wo:h,Mt:t,getItem:l,setItem:v,removeItem:L,clear:q,length:u,key:H,keys:X}}}("undefined"!=typeof window?window:self);e.re=m["default"]},function(e,m,p){m.kl=!0;m["default"]=function(e){function m(a,c){c&&a.then(function(a){c(null,a)},function(a){c(a)})}var k=null;try{if(!(e.localStorage&&"setItem"in e.localStorage))return;k=e.localStorage}catch(f){return}return{ej:"localStorageWrapper",
wo:function(a){var c={};if(a)for(var d in a)c[d]=a[d];return c.ye=c.name+"/",c.Ka!==this.uo.Ka&&(c.ye+=c.Ka+"/"),this.Ia=c,(new Promise(function(a){a(p(3))})).then(function(a){return c.wh=a,Promise.resolve()})},Mt:function(a,c){var d=this,b=d.ready().then(function(){for(var b=d.Ia,c=b.ye,f=c.length,e=k.length,n=1,p=0;e>p;p++){var q=k.key(p);if(0===q.indexOf(c)){var m=k.getItem(q);if(m&&(m=b.wh.Rl(m)),m=a(m,q.substring(f),n++),void 0!==m)return m}}});return m(b,c),b},getItem:function(a,c){var d=this;
"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var b=d.ready().then(function(){var b=d.Ia,c=k.getItem(b.ye+a);return c&&(c=b.wh.Rl(c)),c});return m(b,c),b},setItem:function(a,c,d){var b=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var f=b.ready().then(function(){void 0===c&&(c=null);var d=c;return new Promise(function(f,e){var h=b.Ia;h.wh.serialize(c,function(b,c){if(c)e(c);else try{k.setItem(h.ye+
a,b),f(d)}catch(n){"QuotaExceededError"!==n.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==n.name||e(n),e(n)}})})});return m(f,d),f},removeItem:function(a,c){var d=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var b=d.ready().then(function(){k.removeItem(d.Ia.ye+a)});return m(b,c),b},clear:function(a){var c=this,d=c.ready().then(function(){for(var a=c.Ia.ye,d=k.length-1;0<=d;d--){var g=k.key(d);0===g.indexOf(a)&&k.removeItem(g)}});return m(d,a),d},length:function(a){var c=
this.keys().then(function(a){return a.length});return m(c,a),c},key:function(a,c){var d=this,b=d.ready().then(function(){var b,c=d.Ia;try{b=k.key(a)}catch(f){b=null}return b&&(b=b.substring(c.ye.length)),b});return m(b,c),b},keys:function(a){var c=this,d=c.ready().then(function(){for(var a=c.Ia,d=k.length,g=[],f=0;d>f;f++)0===k.key(f).indexOf(a.ye)&&g.push(k.key(f).substring(a.ye.length));return g});return m(d,a),d}}}("undefined"!=typeof window?window:self);e.re=m["default"]},function(e,m){m.kl=!0;
m["default"]=function(e){function n(a){var c,d,b,f,g;c=.75*a.length;var e=a.length,n=0;"="===a[a.length-1]&&(c--,"="===a[a.length-2]&&c--);var p=new ArrayBuffer(c),m=new Uint8Array(p);for(c=0;e>c;c+=4)d=k.indexOf(a[c]),b=k.indexOf(a[c+1]),f=k.indexOf(a[c+2]),g=k.indexOf(a[c+3]),m[n++]=d<<2|b>>4,m[n++]=(15&b)<<4|f>>2,m[n++]=(3&f)<<6|63&g;return p}function m(a){var c=new Uint8Array(a),d="";for(a=0;a<c.length;a+=3)d+=k[c[a]>>2],d+=k[(3&c[a])<<4|c[a+1]>>4],d+=k[(15&c[a+1])<<2|c[a+2]>>6],d+=k[63&c[a+2]];
return 2===c.length%3?d=d.substring(0,d.length-1)+"=":1===c.length%3&&(d=d.substring(0,d.length-2)+"=="),d}var k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=/^~~local_forage_type~([^~]+)~/;return{serialize:function(a,c){var d="";if(a&&(d=a.toString()),a&&("[object ArrayBuffer]"===a.toString()||a.buffer&&"[object ArrayBuffer]"===a.buffer.toString())){var b,f="__lfsc__:";a instanceof ArrayBuffer?(b=a,f+="arbf"):(b=a.buffer,"[object Int8Array]"===d?f+="si08":"[object Uint8Array]"===
d?f+="ui08":"[object Uint8ClampedArray]"===d?f+="uic8":"[object Int16Array]"===d?f+="si16":"[object Uint16Array]"===d?f+="ur16":"[object Int32Array]"===d?f+="si32":"[object Uint32Array]"===d?f+="ui32":"[object Float32Array]"===d?f+="fl32":"[object Float64Array]"===d?f+="fl64":c(Error("Failed to get type for BinaryArray")));c(f+m(b))}else if("[object Blob]"===d)d=new FileReader,d.onload=function(){var b="~~local_forage_type~"+a.type+"~"+m(this.result);c("__lfsc__:blob"+b)},d.readAsArrayBuffer(a);else try{c(JSON.stringify(a))}catch(g){console.error("Couldn't convert value into a JSON string: ",
a),c(null,g)}},Rl:function(a){if("__lfsc__:"!==a.substring(0,9))return JSON.parse(a);var c,d=a.substring(13);a=a.substring(9,13);if("blob"===a&&f.test(d)){var b=d.match(f);c=b[1];d=d.substring(b[0].length)}d=n(d);switch(a){case "arbf":return d;case "blob":var h;d=[d];c={type:c};d=d||[];c=c||{};try{h=new Blob(d,c)}catch(g){if("TypeError"!==g.name)throw g;h=new (e.BlobBuilder||e.Od||e.mi||e.WebKitBlobBuilder);for(a=0;a<d.length;a+=1)h.append(d[a]);h=h.getBlob(c.type)}return h;case "si08":return new Int8Array(d);
case "ui08":return new Uint8Array(d);case "uic8":return new Uint8ClampedArray(d);case "si16":return new Int16Array(d);case "ur16":return new Uint16Array(d);case "si32":return new Int32Array(d);case "ui32":return new Uint32Array(d);case "fl32":return new Float32Array(d);case "fl64":return new Float64Array(d);default:throw Error("Unkown type: "+a);}},FF:n,fF:m}}("undefined"!=typeof window?window:self);e.re=m["default"]},function(e,m,p){m.kl=!0;m["default"]=function(e){function m(a){var b=this,c={db:null};
if(a)for(var d in a)c[d]="string"!=typeof a[d]?a[d].toString():a[d];var g=new Promise(function(a,d){try{c.db=t(c.name,String(c.version),c.description,c.size)}catch(g){return d(g)}c.db.transaction(function(g){g.executeSql("CREATE TABLE IF NOT EXISTS "+c.Ka+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){b.Ia=c;a()},function(a,b){d(b)})})});return(new Promise(function(a){a(p(3))})).then(function(a){return c.wh=a,g})}function k(a,b){var c=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),
a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var g=c.Ia;g.db.transaction(function(c){c.executeSql("SELECT * FROM "+g.Ka+" WHERE key = ? LIMIT 1",[a],function(a,c){var d=c.rows.length?c.rows.item(0).value:null;d&&(d=g.wh.Rl(d));b(d)},function(a,b){d(b)})})})["catch"](d)});return l(d,b),d}function f(a,b){var c=this,d=new Promise(function(b,d){c.ready().then(function(){var g=c.Ia;g.db.transaction(function(c){c.executeSql("SELECT * FROM "+g.Ka,[],function(c,d){for(var f=d.rows,
e=f.length,h=0;e>h;h++){var l=f.item(h),q=l.value;if(q&&(q=g.wh.Rl(q)),q=a(q,l.key,h+1),void 0!==q)return void b(q)}b()},function(a,b){d(b)})})})["catch"](d)});return l(d,b),d}function a(a,b,c){var d=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var g=new Promise(function(c,g){d.ready().then(function(){void 0===b&&(b=null);var f=b,e=d.Ia;e.wh.serialize(b,function(b,d){d?g(d):e.db.transaction(function(d){d.executeSql("INSERT OR REPLACE INTO "+e.Ka+
" (key, value) VALUES (?, ?)",[a,b],function(){c(f)},function(a,b){g(b)})},function(a){a.code===a.QUOTA_ERR&&g(a)})})})["catch"](g)});return l(g,c),g}function c(a,b){var c=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var g=c.Ia;g.db.transaction(function(c){c.executeSql("DELETE FROM "+g.Ka+" WHERE key = ?",[a],function(){b()},function(a,b){d(b)})})})["catch"](d)});return l(d,b),d}function d(a){var b=
this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ia;d.db.transaction(function(b){b.executeSql("DELETE FROM "+d.Ka,[],function(){a()},function(a,b){c(b)})})})["catch"](c)});return l(c,a),c}function b(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ia;d.db.transaction(function(b){b.executeSql("SELECT COUNT(key) as c FROM "+d.Ka,[],function(b,c){var d=c.rows.item(0).kj;a(d)},function(a,b){c(b)})})})["catch"](c)});return l(c,a),c}function h(a,b){var c=this,
d=new Promise(function(b,d){c.ready().then(function(){var g=c.Ia;g.db.transaction(function(c){c.executeSql("SELECT key FROM "+g.Ka+" WHERE id = ? LIMIT 1",[a+1],function(a,c){var d=c.rows.length?c.rows.item(0).key:null;b(d)},function(a,b){d(b)})})})["catch"](d)});return l(d,b),d}function g(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ia;d.db.transaction(function(b){b.executeSql("SELECT key FROM "+d.Ka,[],function(b,c){for(var d=[],g=0;g<c.rows.length;g++)d.push(c.rows.item(g).key);
a(d)},function(a,b){c(b)})})})["catch"](c)});return l(c,a),c}function l(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var t=e.openDatabase;if(t)return{ej:"webSQLStorage",wo:m,Mt:f,getItem:k,setItem:a,removeItem:c,clear:d,length:b,key:h,keys:g}}("undefined"!=typeof window?window:self);e.re=m["default"]}])};"object"==typeof exports&&"object"==typeof module?module.re=Lc():"function"==typeof define&&define.eF?define([],Lc):"object"==typeof exports?exports.localforage=Lc():this.localforage=
Lc()}catch(Mc){}function Nc(e){this.b=e}(function(){function e(){}function m(){}var p=Nc.prototype;p.K=function(e){this.Z=e;this.b=e.b};p.K.prototype.H=function(){};p.I=function(e){this.type=e;this.b=e.b};var n=p.I.prototype;n.H=function(){};n.Wb=function(){};n.Ba=function(){return{}};n.Ga=function(){};e.prototype.Pe=function(){return!0};e.prototype.ir=function(e,k){return qc("",e,k)};p.j=new e;p.q=new function(){};m.prototype.Vn=function(e){e.L("")};p.A=new m})();function Oc(e){this.b=e}
(function(){function e(){}function m(){}var p=Oc.prototype;p.K=function(e){this.Z=e;this.b=e.b};p.K.prototype.H=function(){};p.I=function(e){this.type=e;this.b=e.b;this.Eg=Array(4);this.zv=this.Kn=this.Ah=this.of=this.nf=0;this.pp=!1};var n=p.I.prototype;n.H=function(){var e=this;if(!this.b.G){jQuery(document).mousemove(function(a){e.lk(a)});jQuery(document).mousedown(function(a){e.kk(a)});jQuery(document).mouseup(function(a){e.mk(a)});jQuery(document).dblclick(function(a){e.PC(a)});var f=function(a){e.XC(a)};
document.addEventListener("mousewheel",f,!1);document.addEventListener("DOMMouseScroll",f,!1)}};var r={left:0,top:0};n.lk=function(e){var f=this.b.G?r:jQuery(this.b.canvas).offset();this.nf=e.pageX-f.left;this.of=e.pageY-f.top};n.qu=function(){return 0<this.b.mc?!0:0<=this.nf&&0<=this.of&&this.nf<this.b.width&&this.of<this.b.height};n.kk=function(e){this.qu()&&(this.Eg[e.which]=!0,this.b.ya=!0,this.b.trigger(Oc.prototype.j.wx,this),this.Ah=e.which-1,this.Kn=0,this.b.trigger(Oc.prototype.j.Yn,this),
this.b.trigger(Oc.prototype.j.co,this),this.b.ya=!1)};n.mk=function(e){this.Eg[e.which]&&(this.b.jm&&!this.b.jf&&e.preventDefault(),this.b.jm=!0,this.Eg[e.which]=!1,this.b.ya=!0,this.Ah=e.which-1,this.b.trigger(Oc.prototype.j.eo,this),this.b.ya=!1)};n.PC=function(e){this.qu()&&(e.preventDefault(),this.b.ya=!0,this.Ah=e.which-1,this.Kn=1,this.b.trigger(Oc.prototype.j.Yn,this),this.b.trigger(Oc.prototype.j.co,this),this.b.ya=!1)};n.XC=function(e){this.zv=0>(e.wheelDelta?e.wheelDelta:e.detail?-e.detail:
0)?0:1;this.pp=!1;this.b.ya=!0;this.b.trigger(Oc.prototype.j.$r,this);this.b.ya=!1;this.pp&&vb(e)&&e.preventDefault()};n.rh=function(){var e,f;e=0;for(f=this.Eg.length;e<f;++e)this.Eg[e]&&(this.Eg[e]=!1,this.Ah=e-1,this.b.trigger(Oc.prototype.j.eo,this))};e.prototype.Yn=function(e,f){return e===this.Ah&&f===this.Kn};e.prototype.wx=function(){return!0};e.prototype.Iw=function(e){return this.Eg[e+1]};e.prototype.eo=function(e){return e===this.Ah};e.prototype.Rw=function(e){var f=this.b.Og();return $a(this.b.Li(e,
this.nf,this.of,f.ci),f.ci)};e.prototype.co=function(e,f,a){return e!==this.Ah||f!==this.Kn?!1:this.b.Li(a,this.nf,this.of,!1)};e.prototype.$r=function(e){this.pp=!0;return e===this.zv};p.j=new e;p.q=new function(){};m.prototype.Ag=function(e,f){var a,c,d,b,h;ia(f)?(a=this.b.ef(0),c=a.scale,d=a.qc,b=a.Jc,h=a.C,a.scale=1,a.qc=1,a.Jc=1,a.C=0,e.V(a.Va(this.nf,this.of,!0)),a.scale=c,a.qc=d,a.Jc=b,a.C=h):(a=ja(f)?this.b.ef(f):this.b.Aj(f))?e.V(a.Va(this.nf,this.of,!0)):e.V(0)};m.prototype.Jh=function(e,
f){var a,c,d,b,h;ia(f)?(a=this.b.ef(0),c=a.scale,d=a.qc,b=a.Kc,h=a.C,a.scale=1,a.qc=1,a.Kc=1,a.C=0,e.V(a.Va(this.nf,this.of,!1)),a.scale=c,a.qc=d,a.Kc=b,a.C=h):(a=ja(f)?this.b.ef(f):this.b.Aj(f))?e.V(a.Va(this.nf,this.of,!1)):e.V(0)};p.A=new m})();function V(e){this.b=e}
(function(){function e(a){this.u=a;this.history=[]}function m(a){this.MC=a;this.C=this.y=this.x=this.timestamp=0;this.kg=[]}function p(a,b,c,d){a=b-a;if(0===a)return 0;b=pa(a);if(b<=pa(c/10)||1>b||1E3<=b)return a;var f=b/50;d&&(f=qa(f,1));d=pa(c/5);10<=b&&(f=b/10,d=pa(c/2));c=qa(f,d);c>b&&(c=b);return 0<a?c:-c}function n(){}function r(){}function k(a){switch(a){case 0:return"o";case 1:return"r";case 2:return"u";default:return"o"}}function f(){}var a=V.prototype;a.K=function(a){this.Z=a;this.b=a.b};
a.K.prototype.H=function(){};a.I=function(a){this.type=a;this.b=a.b};var c=a.I.prototype,d=!1;c.H=function(){this.M=null;(d=window.C2Multiplayer_IsSupported())&&"undefined"!==typeof window.C2Multiplayer&&(this.M=new window.C2Multiplayer);this.su=this.tu=this.Vp=this.ru=this.yC=this.rk=this.sk=this.rj=this.qv="";this.Rq={};this.pm={};this.sf={};this.Xi=this.CD=this.df=null;this.om=[];this.Ok=[];this.Ce={};var a=this;d&&(this.M.onserverlist=function(){a.b.trigger(V.prototype.j.Xx,a)},this.M.onsignallingerror=
function(b){a.LD(b);a.b.trigger(V.prototype.j.Qr,a)},this.M.onsignallingclose=function(){a.b.trigger(V.prototype.j.Pr,a);a.qv=""},this.M.onsignallingwelcome=function(){a.b.trigger(V.prototype.j.Or,a)},this.M.onsignallinglogin=function(){a.b.trigger(V.prototype.j.Ur,a)},this.M.onsignallingjoin=function(b){a.pm={};a.sf={};a.Ok.length=0;a.om.length=0;a.Ce={};a.b.trigger(V.prototype.j.Rr,a);a.b.hg&&b&&a.Xi.postMessage("start")},this.M.onsignallingleave=function(){a.b.trigger(V.prototype.j.Tr,a)},this.M.onsignallingkicked=
function(){a.b.trigger(V.prototype.j.Sr,a)},this.M.onbeforeclientupdate=function(){a.b.trigger(V.prototype.j.xx,a)},this.M.onpeeropen=function(b){a.sk=b.id;a.rk=b.alias;a.b.trigger(V.prototype.j.Ir,a)},this.M.onpeerclose=function(b,c){a.sk=b.id;a.rk=b.alias;a.yC=c||"unknown";var d=a.ft(b);if(d){var f=a.Rq[d.type];f&&f.removeObjectNid(b.nid);a.b.td(d)}a.sf.hasOwnProperty(b.id)&&delete a.sf[b.id];a.b.trigger(V.prototype.j.Jr,a)},this.M.onpeermessage=function(b,c){a.Vp=c.t;a.tu=c.f?c.f:b.id;a.su=a.M.getAliasFromId(a.tu);
a.ru=c.m;a.b.trigger(V.prototype.j.qr,a);a.b.trigger(V.prototype.j.Kr,a)},this.M.onsignallinginstancelist=function(b){a.df=b;a.b.trigger(V.prototype.j.Br,a)},this.M.onsignallingroomlist=function(b){a.CD=b;a.b.trigger(V.prototype.j.Tx,a)},this.M.ongetobjectcount=function(a){return a.n.length},this.M.ongetobjectvalue=function(b,c,d){if(!d)return b.n[c].uid;b=b.n[c];switch(d.tag){case "x":return b.x;case "y":return b.y;case "a":return b.C;case "iv":if(d.clientvaluetag&&(c=a.pm[b.uid])&&a.M.me!==c&&!c.wasRemoved&&
c.hasClientState(d.clientvaluetag))return c.getInterpClientState(d.clientvaluetag);d=b.Sa[d.userdata];return"number"===typeof d?d:0;default:return 0}},this.M.oninstancedestroyed=function(b,c,d){var f=b.userdata;b=f.vp;f.Po||(f.Po={});f.Po[c]=d;b&&b.hasOwnProperty(c)&&((d=b[c])&&a.b.td(d),delete b[c])},this.b.pl(function(b){var c,d=b.uid;a.pm.hasOwnProperty(d)&&delete a.pm[d];for(c in a.sf)if(a.sf.hasOwnProperty(c)&&a.sf[c]===b){delete a.sf[c];break}a.Ce.hasOwnProperty(d)&&delete a.Ce[d];c=a.om.indexOf(b);
-1<c&&a.om.splice(c,1);c=a.Ok.indexOf(b);-1<c&&a.Ok.splice(c,1);a.M.removeObjectId(d)}),this.Xi=new Worker("waker.js"),this.Xi.addEventListener("message",function(b){"tick"===b.data&&a.b.hg&&a.b.La(!0)},!1),this.Xi.postMessage(""));this.b.zo(function(b){d&&a.M.isHost()&&(b?a.Xi.postMessage("start"):a.Xi.postMessage("stop"))});this.b.lD(this)};c.ft=function(a){a=a.id;return this.sf.hasOwnProperty(a)?this.sf[a]:null};c.nC=function(a){return 0<=this.om.indexOf(a)};c.kD=function(){if(d){this.M.tick(this.b.Zf);
this.bE();var a,b,c;if(this.M.isInRoom()&&!this.M.isHost())for(a=0,b=this.M.registeredObjects.length;a<b;++a)c=this.M.registeredObjects[a],this.eE(c)}};var b=[];c.eE=function(a){a.tick();var c=a.obj,d=a.getCount(),f=a.netvalues,e=a.userdata;e.vp||(e.vp={});var h=e.vp,e=e.Po,k=a.simTime,n,p,m,r,C,w,y,K=f.length;for(n in h)h.hasOwnProperty(n)&&(r=h[n],this.b.Zh(r.uid)||delete h[n]);if(e)for(n in e)e.hasOwnProperty(n)&&e[n]<k-3E3&&delete e[n];for(n=0;n<d;++n)if(p=a.getNetInstAt(n),m=p.nid,e&&e[m]>=k-
3E3)b.push(p),h.hasOwnProperty(m)&&(this.b.td(h[m]),delete h[m]);else{if(h.hasOwnProperty(m))r=h[m],y=!1;else{if(r=this.M.getPeerByNid(m))this.sk=r.id,this.rk=r.alias;else{if(a.hasOverriddenNids)continue;this.rk=this.sk=""}r=this.b.Jl(c,this.b.qa.ma[c.Js],-1E3,-1E3);h[m]=r;y=!0}if(p.isTimedOut(k))b.push(p),h.hasOwnProperty(m)&&delete h[m],this.b.td(r);else{if(this.nC(r))this.mA(r,p,f,k);else for(w=0;w<K;++w)switch(m=p.getInterp(k,w),C=f[w],C.tag){case "x":r.x=m;r.aa();break;case "y":r.y=m;r.aa();
break;case "a":r.C=m;r.aa();break;case "iv":C=C.userdata;if(C>r.Sa.length||"number"!==typeof r.Sa[C])break;r.Sa[C]=m}y&&this.b.trigger(Object.getPrototypeOf(c.Z).j.aj,r)}}n=0;for(d=b.length;n<d;++n)a.removeNetInstance(b[n]);b.length=0};c.bE=function(){var a=this.M.getHostInputArrivalTime(),b,c;b=0;for(c=this.Ok.length;b<c;++b)this.cE(this.Ok[b],a)};e.prototype.kt=function(a){if(2>this.history.length)return 0;var b=this.history[this.history.length-2],c=this.history[this.history.length-1];switch(a){case "x":return c.x-
b.x;case "y":return c.y-b.y;case "a":return c.C-b.C;case "iv":return c.kg[void 0]-b.kg[void 0]}return 0};e.prototype.jt=function(a,b,c,d){var f,e,h,k=null,n=null;f=0;for(e=this.history.length;f<e;++f)if(h=this.history[f],h.timestamp<c)k=h;else{f+1<this.history.length&&(n=this.history[f+1]);break}if(k){f=0;switch(a){case "x":f=k.x;break;case "y":f=k.y;break;case "a":f=k.C;break;case "iv":f=k.kg[b]}if(!n)return f;e=f;switch(a){case "x":e=n.x;break;case "y":e=n.y;break;case "a":e=n.C;break;case "iv":e=
n.kg[b]}return window.interpNetValue(d,f,e,bb(k.timestamp,n.timestamp,c),!1)}};e.prototype.Yz=function(a,b,c){var d,f,e;d=0;for(f=this.history.length;d<f;++d)switch(e=this.history[d],a){case "x":e.x+=c;break;case "y":e.y+=c;break;case "a":e.C+=c;break;case "iv":e.kg[b]+=c}};var h=[];c.cE=function(a,b){this.Ce.hasOwnProperty(a.uid)||(this.Ce[a.uid]=new e(a));var c=this.Ce[a.uid],d;h.length?(d=h.pop(),d.MC=c):d=new m(c);d.timestamp=b;d.x=a.x;d.y=a.y;d.C=a.C;Fa(d.kg,a.Sa);for(c.history.push(d);0<c.history.length&&
c.history[0].timestamp<=b-2E3;)d=c.history.shift(),d.kg.length=0,1E3>h.length&&h.push(d)};c.mA=function(a,b,c,d){if(this.Ce.hasOwnProperty(a.uid)){var f=this.Ce[a.uid],e,h,k,n,m,r,C,w=c.length,y=Za(0,0,f.kt("x"),f.kt("y")),K=!!a.ea.isPlatformBehavior;for(e=0;e<w;++e)if(m=c[e],r=m.tag,C=m.userdata,n=m.interp,h=b.getLatestUpdate())if(k=h.data[e],n=f.jt(r,C,h.timestamp,n),"undefined"!==typeof n){h=0;switch(r){case "x":h=p(n,k,y,K);0!==h&&(a.x+=h,a.aa());break;case "y":h=p(n,k,y,K);0!==h&&(a.y+=h,a.aa());
break;case "a":h=db(n,k,.5)-n;0!==h&&(a.C+=h,a.aa());break;case "iv":k=C;if(k>a.Sa.length||"number"!==typeof a.Sa[k])break;m.clientvaluetag||(a.Sa[k]=b.getInterp(d,e))}0!==h&&f.Yz(r,C,h)}}};c.LD=function(a){this.rj=a?"string"===typeof a?a:"string"===typeof a.message?a.message:"string"===typeof a.tA?a.tA:"string"===typeof a.data?a.data:"string"===typeof a.type?a.type:"error":"unknown error"};c.Wb=function(){};c.Ba=function(){return{}};c.Ga=function(){};n.prototype.Xx=function(){return!0};n.prototype.Qr=
function(){return!0};n.prototype.Or=function(){return!0};n.prototype.Pr=function(){return!0};n.prototype.Ur=function(){return!0};n.prototype.Rr=function(){return!0};n.prototype.Tr=function(){return!0};n.prototype.Sr=function(){return!0};n.prototype.Ir=function(){return!0};n.prototype.Jr=function(){return!0};n.prototype.kz=function(){return d&&this.M.isConnected()};n.prototype.mz=function(){return d&&this.M.isLoggedIn()};n.prototype.lz=function(){return d&&this.M.isInRoom()};n.prototype.Nw=function(){return d&&
this.M.isHost()};n.prototype.Wn=function(){return d};n.prototype.Kr=function(a){return this.Vp===a};n.prototype.qr=function(){return!0};n.prototype.xx=function(){return!0};n.prototype.Br=function(){return!0};n.prototype.Tx=function(){return!0};a.j=new n;r.prototype.jz=function(a){d&&!this.M.isConnected()&&(this.qv=a,this.M.signallingConnect(a))};r.prototype.oz=function(a){d&&this.M.isConnected&&!this.M.isLoggedIn()&&this.M.signallingLogin(a)};r.prototype.nz=function(a,b,c,f){d&&this.M.isLoggedIn()&&
!this.M.isInRoom()&&this.M.signallingJoinGameRoom(a,b,c,f)};r.prototype.Ly=function(a,b,c,f){d&&(a||(a=this.M.getHostID()),(a=this.M.getPeerById(a))&&a.send(k(f),JSON.stringify({c:"m",t:b,m:c})))};r.prototype.Ew=function(a,b,c,f){if(d){var e=this.M.getPeerById(a);a={c:"m",t:b,f:a||this.M.getHostID(),m:c};this.M.hostBroadcast(k(f),JSON.stringify(a),e)}};c.Od=function(a,b,c,f){d&&(f=this.M.registerObject(a,a.xa,f),1===b?(f.addValue(this.M.INTERP_LINEAR,c,"x"),f.addValue(this.M.INTERP_LINEAR,c,"y")):
2===b?f.addValue(this.M.INTERP_ANGULAR,c,"a"):3===b&&(f.addValue(this.M.INTERP_LINEAR,c,"x"),f.addValue(this.M.INTERP_LINEAR,c,"y"),f.addValue(this.M.INTERP_ANGULAR,c,"a")),this.Rq[a]=f)};c.mi=function(a,b,c,f,e){if(d&&(a=this.Rq[a])){var h=this.M.INTERP_NONE;1===f?h=this.M.INTERP_LINEAR:2===f&&(h=this.M.INTERP_ANGULAR);a.addValue(h,c,"iv",b,e)}};r.prototype.pz=function(a){d&&this.M.signallingRequestGameInstanceList(a)};a.q=new r;f.prototype.tx=function(a){a.L(d?this.M.getMyAlias():"")};f.prototype.Vn=
function(a){a.L(this.rj)};f.prototype.ky=function(a){a.L(this.sk)};f.prototype.jy=function(a){a.L(this.rk)};f.prototype.kx=function(a){a.L(this.ru)};f.prototype.qo=function(a){a.L(this.Vp)};f.prototype.Aw=function(a){a.L(this.su)};f.prototype.gx=function(a){this.df?a.O(this.df.length):a.O(0)};f.prototype.hx=function(a,b){b=Math.floor(b);this.df?0>b||b>=this.df.length?a.L(""):a.L(this.df[b].name||""):a.L("")};f.prototype.ix=function(a,b){b=Math.floor(b);this.df?0>b||b>=this.df.length?a.O(0):a.O(this.df[b].peercount||
0):a.O(0)};c.Am=function(a,b,c,f){if(!d||!this.M.isHost())return 0;var e=this.M.getPeerById(a);if(!e)return 0;var h=this.ft(e);if(!h)return 0;a=0;switch(c){case "x":a=h.x;break;case "y":a=h.y;break;case "a":a=h.C}b=this.M.getPeerById(b);if(!b||b===e||this.M.me===b)return a;b=2*(b.latency+this.M.clientDelay);h=h.uid;if(!this.Ce.hasOwnProperty(h))return a;f=this.Ce[h].jt(c,0,gb()-b,f);return"undefined"===typeof f?a:f};a.A=new f})();function Pc(e){this.b=e}
(function(){function e(){}function m(){}function p(){}var n=!1,r=null,k=null,f=null,a=null,c="",d="",b="\\",h="",g=Pc.prototype;g.K=function(a){this.Z=a;this.b=a.b};g.K.prototype.H=function(){};g.I=function(a){this.type=a;this.b=a.b};var l=g.I.prototype;l.H=function(){n=this.b.Yg;var e=this;if(n){r=require("path");k=require("fs");f=require("os");require("child_process");a=window.process||nw.process;"win32"!==a.platform&&(b="/");r.dirname(a.execPath);c=f.homedir()+b;d=a.mainModule.filename;var g=Math.max(d.lastIndexOf("/"),
d.lastIndexOf("\\"));-1!==g&&(d=d.substr(0,g+1));window.ondrop=function(a){a.preventDefault();for(var b=0;b<a.dataTransfer.files.length;++b)e.b.trigger(Pc.prototype.j.Cx,e);return!1};var l=document.getElementById("c2nwOpenFileDialog");l.onchange=function(){h=l.value;e.b.trigger(Pc.prototype.j.Ox,e);try{l.value=null}catch(a){}};l.oncancel=function(){e.b.trigger(Pc.prototype.j.Px,e)};var q=document.getElementById("c2nwChooseFolderDialog");q.onchange=function(){h=q.value;e.b.trigger(Pc.prototype.j.Ex,
e);try{q.value=null}catch(a){}};q.oncancel=function(){e.b.trigger(Pc.prototype.j.Fx,e)};var m=document.getElementById("c2nwSaveDialog");m.onchange=function(){h=m.value;e.b.trigger(Pc.prototype.j.Ux,e);try{m.value=null}catch(a){}};m.oncancel=function(){e.b.trigger(Pc.prototype.j.Vx,e)}}};l.Wb=function(){};l.Ba=function(){return{}};l.Ga=function(){};e.prototype.hy=function(a){return n?k.existsSync(a):!1};e.prototype.Cx=function(){return!0};e.prototype.Ox=function(){return!0};e.prototype.Ex=function(){return!0};
e.prototype.Ux=function(){return!0};e.prototype.Px=function(){return!0};e.prototype.Fx=function(){return!0};e.prototype.Vx=function(){return!0};g.j=new e;m.prototype.Lz=function(a,b){if(n)try{k.writeFileSync(a,b,{encoding:"utf8"})}catch(c){}};m.prototype.jw=function(a){if(n)try{k.mkdirSync(a)}catch(b){}};g.q=new m;p.prototype.Gz=function(a){a.L(c)};p.prototype.wy=function(a,b){if(n){var c="";try{c=k.readFileSync(b,{encoding:"utf8"})}catch(d){}a.L(c)}else a.L("")};p.prototype.Xv=function(a){a.L(h)};
g.A=new p})();function Qc(e){this.b=e}
(function(){function e(){}var m=Qc.prototype;m.K=function(e){this.Z=e;this.b=e.b};m.K.prototype.H=function(){};m.I=function(e){this.type=e;this.b=e.b};var p=m.I.prototype;p.H=function(){this.Hq=this.D[0];this.sC=1==this.D[1]};p.mE=function(e){null==e?e=0:this.sC&&(e=eval("("+e+")"));return e};p.Ba=function(){return{delimiter:this.Hq}};p.Ga=function(e){this.Hq=e.delimiter};m.j=new function(){};m.q=new e;e.prototype.Vv=function(e,m){for(var k=m.gm(),f=this.Hq,f=f||",",a=new RegExp("(\\"+f+'|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\'+
f+"\\r\\n]*))","gi"),c=[[]],d=null;d=a.exec(e);){var b=d[1];b.length&&b!=f&&c.push([]);d=d[2]?d[2].replace(/""/g,'"'):d[3];c[c.length-1].push(d)}a=c.length;if(0!=a)for(var h,b=Gc.prototype.q.dr,f=0;f<a;f++)h=c[f],d=h[0],h=this.mE(h[1]),b.apply(k,[d,h])};m.A=new function(){}})();function Rc(e){this.b=e}
(function(){function e(){}function m(){}var p=Rc.prototype;p.K=function(e){this.Z=e;this.b=e.b};p.K.prototype.H=function(){};p.I=function(e){this.type=e;this.b=e.b};var n=p.I.prototype;n.H=function(){this.xo={}};n.Ba=function(){return{tims:this.xo}};n.Ga=function(e){this.xo=e.tims};p.j=new function(){};p.q=new e;e.prototype.gs=function(e){this.xo[e]=(new Date).getTime()};p.A=new m;m.prototype.Mz=function(e,k){e.O((null!=k?new Date(k):new Date).getFullYear())};m.prototype.ox=function(e,k){e.O((null!=
k?new Date(k):new Date).getMonth()+1)};m.prototype.Date=function(e,k){e.O((null!=k?new Date(k):new Date).getDate())};m.prototype.Fw=function(e,k){e.O((null!=k?new Date(k):new Date).getHours())};m.prototype.nx=function(e,k){e.O((null!=k?new Date(k):new Date).getMinutes())};m.prototype.Hy=function(e,k){e.O((null!=k?new Date(k):new Date).getSeconds())};m.prototype.mx=function(e,k){e.O((null!=k?new Date(k):new Date).getMilliseconds())};m.prototype.Ez=function(e){e.V((new Date).getTime())}})();
function J(e){this.b=e}
(function(){function e(){if(0===this.Nl.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.xh?b.drawImage(this.T,this.ph,this.qh,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.T,0,0,this.width,this.height);this.Nl=a.toDataURL("image/png")}return this.Nl}function m(){}function p(a){a[0]=0;a[1]=0;a[2]=0;g.push(a)}function n(a,b){return a<b?""+a+","+b:""+b+","+a}function r(a,b,c,d){b=b.uid;c=c.uid;var e=n(b,c);if(a.hasOwnProperty(e))a[e][2]=
d;else{var f=g.length?g.pop():[0,0,0];f[0]=b;f[1]=c;f[2]=d;a[e]=f}}function k(a,b,c){b=n(b.uid,c.uid);a.hasOwnProperty(b)&&(p(a[b]),delete a[b])}function f(a,b,c){b=n(b.uid,c.uid);if(a.hasOwnProperty(b))return l=a[b][2],!0;l=-2;return!1}function a(){}var c=J.prototype;c.K=function(a){this.Z=a;this.b=a.b};var d=c.K.prototype;d.H=function(){if(!this.Y){var a,b,c,d,f,g,h,l,q;this.Ld=[];this.Ej=!1;a=0;for(b=this.Sc.length;a<b;a++){f=this.Sc[a];h={};h.name=f[0];h.speed=f[1];h.loop=f[2];h.uq=f[3];h.vq=
f[4];h.Nu=f[5];h.xa=f[6];h.frames=[];c=0;for(d=f[7].length;c<d;c++)g=f[7][c],l={},l.Fn=g[0],l.Jq=g[1],l.ph=g[2],l.qh=g[3],l.width=g[4],l.height=g[5],l.duration=g[6],l.uc=g[7],l.vc=g[8],l.sp=g[9],l.cn=g[10],l.iq=g[11],l.xh=0!==l.width,l.Nl="",l.kF=e,q={left:0,top:0,right:1,bottom:1},l.Bq=q,l.R=null,(q=this.b.xB(g[0]))?l.T=q:(l.T=new Image,l.T.nA=g[0],l.T.Gs=g[1],l.T.eA=null,this.b.Zq(l.T,g[0])),h.frames.push(l),this.Ld.push(l);this.Sc[a]=h}}};d.Sq=function(){var a,b,c;a=0;for(b=this.n.length;a<b;a++)c=
this.n[a],c.Oh=c.Ab.R};d.jk=function(){if(!this.Y){var a,b,c;a=0;for(b=this.Ld.length;a<b;++a)c=this.Ld[a],c.T.eA=null,c.R=null;this.Ej=!1;this.Sq()}};d.pk=function(){if(!this.Y&&this.n.length){var a,b,c;a=0;for(b=this.Ld.length;a<b;++a)c=this.Ld[a],c.R=this.b.J.ng(c.T,!1,this.b.Pa,c.iq);this.Sq()}};d.Mp=function(){if(!this.Y&&!this.Ej&&this.b.J){var a,b,c;a=0;for(b=this.Ld.length;a<b;++a)c=this.Ld[a],c.R=this.b.J.ng(c.T,!1,this.b.Pa,c.iq);this.Ej=!0}};d.Nn=function(){if(!this.Y&&!this.n.length&&
this.Ej){var a,b,c;a=0;for(b=this.Ld.length;a<b;++a)c=this.Ld[a],this.b.J.deleteTexture(c.R),c.R=null;this.Ej=!1}};var b=[];d.hn=function(a){var c,d,e;A(b);c=0;for(d=this.Ld.length;c<d;++c)e=this.Ld[c].T,-1===b.indexOf(e)&&(a.drawImage(e,0,0),b.push(e))};c.I=function(a){this.type=a;this.b=a.b;a=this.type.Sc[0].frames[0].cn;this.Ac?this.Ja.Ek(a):this.Ja=new mb(a)};var h=c.I.prototype;h.H=function(){this.visible=0===this.D[0];this.Fj=this.$g=!1;this.Ue=0!==this.D[3];this.Fa=this.et(this.D[1])||this.type.Sc[0];
this.U=this.D[2];0>this.U&&(this.U=0);this.U>=this.Fa.frames.length&&(this.U=this.Fa.frames.length-1);var a=this.Fa.frames[this.U];this.Ja.Ek(a.cn);this.uc=a.uc;this.vc=a.vc;this.Ph=this.Fa.speed;this.Xf=this.Fa.vq;1===this.type.Sc.length&&1===this.type.Sc[0].frames.length||0===this.Ph||(this.b.fe(this),this.$g=!0);this.Ac?this.Md.reset():this.Md=new kb;this.te=this.Md.X;this.Of=!0;this.Re=0;this.Cg=!0;this.Cl=this.ts="";this.Bs=0;this.lj=-1;this.type.Mp();var b,c,d,e,f,g,h,a=0;for(b=this.type.Sc.length;a<
b;a++)for(e=this.type.Sc[a],c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.T.width,f.height=f.T.height),f.xh&&(h=f.T,g=f.Bq,g.left=f.ph/h.width,g.top=f.qh/h.height,g.right=(f.ph+f.width)/h.width,g.bottom=(f.qh+f.height)/h.height,0===f.ph&&0===f.qh&&f.width===h.width&&f.height===h.height&&(f.xh=!1));this.Ab=this.Fa.frames[this.U];this.Oh=this.Ab.R};h.Ba=function(){var a={a:this.Fa.xa,f:this.U,cas:this.Ph,fs:this.te,ar:this.Re,at:this.Md.X,rt:this.Xf};this.Of||(a.ap=this.Of);this.Cg||
(a.af=this.Cg);return a};h.Ga=function(a){var b=this.BB(a.a);b&&(this.Fa=b);this.U=a.f;0>this.U&&(this.U=0);this.U>=this.Fa.frames.length&&(this.U=this.Fa.frames.length-1);this.Ph=a.cas;this.te=a.fs;this.Re=a.ar;this.Md.reset();this.Md.X=a.at;this.Of=a.hasOwnProperty("ap")?a.ap:!0;this.Cg=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Xf=a.rt:this.Xf=this.Fa.vq;this.Ab=this.Fa.frames[this.U];this.Oh=this.Ab.R;this.Ja.Ek(this.Ab.cn);this.uc=this.Ab.uc;this.vc=this.Ab.vc};h.Bo=function(a){this.U=
a?0:this.Fa.frames.length-1;this.Of=!1;this.ts=this.Fa.name;this.Fj=!0;this.b.trigger(J.prototype.j.vx,this);this.b.trigger(J.prototype.j.ux,this);this.Fj=!1;this.Re=0};h.Od=function(){return this.Md.X};h.La=function(){this.Md.add(this.b.Pg(this));this.Cl.length&&this.Ms();0<=this.lj&&this.So();var a=this.Md.X,b=this.Fa,c=b.frames[this.U],d=c.duration/this.Ph;this.Of&&a>=this.te+d&&(this.Cg?this.U++:this.U--,this.te+=d,this.U>=b.frames.length&&(b.Nu?(this.Cg=!1,this.U=b.frames.length-2):b.loop?this.U=
this.Xf:(this.Re++,this.Re>=b.uq?this.Bo(!1):this.U=this.Xf)),0>this.U&&(b.Nu?(this.U=1,this.Cg=!0,b.loop||(this.Re++,this.Re>=b.uq&&this.Bo(!0))):b.loop?this.U=this.Xf:(this.Re++,this.Re>=b.uq?this.Bo(!0):this.U=this.Xf)),0>this.U?this.U=0:this.U>=b.frames.length&&(this.U=b.frames.length-1),a>this.te+b.frames[this.U].duration/this.Ph&&(this.te=a),a=b.frames[this.U],this.Gh(c,a),this.b.S=!0)};h.et=function(a){var b,c,d;b=0;for(c=this.type.Sc.length;b<c;b++)if(d=this.type.Sc[b],ub(d.name,a))return d;
return null};h.BB=function(a){var b,c,d;b=0;for(c=this.type.Sc.length;b<c;b++)if(d=this.type.Sc[b],d.xa===a)return d;return null};h.Ms=function(){var a=this.Fa.frames[this.U],b=this.et(this.Cl);this.Cl="";!b||ub(b.name,this.Fa.name)&&this.Of||(this.Fa=b,this.Ph=b.speed,this.Xf=b.vq,0>this.U&&(this.U=0),this.U>=this.Fa.frames.length&&(this.U=this.Fa.frames.length-1),1===this.Bs&&(this.U=0),this.Of=!0,this.te=this.Md.X,this.Cg=!0,this.Gh(a,this.Fa.frames[this.U]),this.b.S=!0)};h.So=function(){var a=
this.Fa.frames[this.U],b=this.U;this.U=ta(this.lj);0>this.U&&(this.U=0);this.U>=this.Fa.frames.length&&(this.U=this.Fa.frames.length-1);b!==this.U&&(this.Gh(a,this.Fa.frames[this.U]),this.te=this.Md.X,this.b.S=!0);this.lj=-1};h.Gh=function(a,b){var c=a.width,d=a.height,f=b.width,e=b.height;c!=f&&(this.width*=f/c);d!=e&&(this.height*=e/d);this.uc=b.uc;this.vc=b.vc;this.Ja.Ek(b.cn);this.aa();this.Ab=b;this.Oh=b.R;c=0;for(d=this.da.length;c<d;c++)f=this.da[c],f.Du&&f.Du(a,b);this.b.trigger(J.prototype.j.Gh,
this)};h.lc=function(a){a.globalAlpha=this.opacity;var b=this.Ab,c=b.xh,d=b.T,f=this.x,e=this.y,g=this.width,h=this.height;if(0===this.C&&0<=g&&0<=h)f-=this.uc*g,e-=this.vc*h,this.b.md&&(f=Math.round(f),e=Math.round(e)),c?a.drawImage(d,b.ph,b.qh,b.width,b.height,f,e,g,h):a.drawImage(d,f,e,g,h);else{this.b.md&&(f=Math.round(f),e=Math.round(e));a.save();var l=0<g?1:-1,q=0<h?1:-1;a.translate(f,e);1===l&&1===q||a.scale(l,q);a.rotate(this.C*l*q);f=0-this.uc*pa(g);e=0-this.vc*pa(h);c?a.drawImage(d,b.ph,
b.qh,b.width,b.height,f,e,pa(g),pa(h)):a.drawImage(d,f,e,pa(g),pa(h));a.restore()}};h.Jg=function(a){this.Bb(a)};h.Bb=function(a){a.pc(this.Oh);a.xf(this.opacity);var b=this.Ab,c=this.Zb;if(this.b.md){var d=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.xh?a.ae(c.Ta+d,c.Ua+f,c.rb+d,c.sb+f,c.ib+d,c.jb+f,c.gb+d,c.hb+f,b.Bq):a.uh(c.Ta+d,c.Ua+f,c.rb+d,c.sb+f,c.ib+d,c.jb+f,c.gb+d,c.hb+f)}else b.xh?a.ae(c.Ta,c.Ua,c.rb,c.sb,c.ib,c.jb,c.gb,c.hb,b.Bq):a.uh(c.Ta,c.Ua,c.rb,c.sb,c.ib,c.jb,c.gb,c.hb)};
h.EB=function(a){var b=this.Ab,c,d;c=0;for(d=b.sp.length;c<d;c++)if(ub(a,b.sp[c][0]))return c;return-1};h.ip=function(a,b){var c=this.Ab,d=c.sp,f;ka(a)?f=this.EB(a):f=a-1;f=ta(f);if(0>f||f>=d.length)return b?this.x:this.y;var e=(d[f][1]-c.uc)*this.width,d=d[f][2],d=(d-c.vc)*this.height,c=Math.cos(this.C);f=Math.sin(this.C);var g=e*c-d*f,d=d*c+e*f,e=g+this.x,d=d+this.y;return b?e:d};var g=[],l=-2,t=[];m.prototype.yx=function(a){if(!a)return!1;var b=this.b,c=b.Og(),d=c.type,e=null;c.ea.collmemory?e=
c.ea.collmemory:(e={},c.ea.collmemory=e);c.ea.spriteCreatedDestroyCallback||(c.ea.spriteCreatedDestroyCallback=!0,b.pl(function(a){var b=c.ea.collmemory;a=a.uid;var d,f;for(d in b)b.hasOwnProperty(d)&&(f=b[d],f[0]===a||f[1]===a)&&(p(b[d]),delete b[d])}));var g=d.ka(),h=a.ka(),g=g.tc(),q,n,m,v,u,H,L,B=this.b.ge,z=B-1,x=b.cb().kb;for(n=0;n<g.length;n++){m=g[n];h.ta?(m.Ma(),this.b.fp(m.B,a,m.$a,t),q=t,this.b.Uz(m,a,q)):q=h.tc();for(v=0;v<q.length;v++)u=q[v],b.xg(m,u)||b.jA(m,u)?(H=f(e,m,u),H=!H||l<z,
r(e,m,u,B),H&&(b.Fe(x.na),H=d.ka(),L=a.ka(),H.ta=!1,L.ta=!1,d===a?(H.n.length=2,H.n[0]=m,H.n[1]=u,d.cd()):(H.n.length=1,L.n.length=1,H.n[0]=m,L.n[0]=u,d.cd(),a.cd()),x.de(),b.nd(x.na))):k(e,m,u);A(t)}return!1};var v=null,L=new ca,q=!1,u=[],H=new wa(0,0,0,0);d.finish=function(a){if(q){if(a){var b=this.b.cb().kb.ld;a=v.ka();var c=L.je(),d,f;if(a.ta){a.ta=!1;A(a.n);d=0;for(f=c.length;d<f;++d)a.n[d]=c[d];if(b)for(A(a.ra),d=0,f=v.n.length;d<f;++d)c=v.n[d],L.contains(c)||a.ra.push(c)}else if(b)for(b=a.n.length,
d=0,f=c.length;d<f;++d)a.n[b+d]=c[d],La(a.ra,c[d]);else Fa(a.n,c);v.cd()}L.clear();q=!1}};m.prototype.Sw=function(a){if(a){var b=!1,c,d,f,e=this.b.Og(),g=e.type,e=e.ci;c=a.ka();d=this.b.cb().kb.ld;var h;c.ta?(this.Ma(),H.Nh(this.$a),H.offset(0,0),this.b.fp(this.B,a,H,u),h=u):h=d?this.b.kC()&&!c.ra.length&&c.n.length?c.n:c.ra:c.n;v=a;q=g!==a&&!e;c=0;for(d=h.length;c<d;c++)if(f=h[c],this.b.xg(this,f)){b=!0;if(e)break;g!==a&&L.add(f)}A(u);a=b}else a=!1;return a};m.prototype.ux=function(a){return ub(this.ts,
a)};m.prototype.vx=function(){return!0};m.prototype.Gh=function(){return!0};m.prototype.jo=function(){return!0};c.j=new m;a.prototype.fl=function(a){this.yb=a;this.Ve=rb(a);sb(this,a,this.b.N);this.b.S=!0};a.prototype.uz=function(a){this.Of=!0;this.te=this.Md.X;1===a&&0!==this.U&&(this.lj=0,this.Fj||this.So());this.$g||(this.b.fe(this),this.$g=!0)};a.prototype.Ny=function(a,b){this.Cl=a;this.Bs=b;this.$g||(this.b.fe(this),this.$g=!0);this.Fj||this.Ms()};a.prototype.Oy=function(a){this.lj=a;this.$g||
(this.b.fe(this),this.$g=!0);this.Fj||this.So()};a.prototype.or=function(a,b,c){var d=new Image,f=this,e=this.Ab;d.onload=function(){e.T.src===d.src?f.b.J&&f.Ab===e&&(f.Oh=e.R):(e.T=d,e.ph=0,e.qh=0,e.width=d.width,e.height=d.height,e.xh=!1,e.Nl="",e.iq=0,f.b.J&&(e.R&&f.b.J.deleteTexture(e.R),e.R=f.b.J.ng(d,!1,f.b.Pa),f.Ab===e&&(f.Oh=e.R),f.type.Sq()));0===b&&(f.width=d.width,f.height=d.height,f.aa());f.b.S=!0;f.b.trigger(J.prototype.j.jo,f)};"data:"!==a.substr(0,5)&&0===c&&(d.crossOrigin="anonymous");
this.b.wn(d,a)};c.q=new a;c.A=new function(){}})();function Sc(e){this.b=e}
(function(){function e(a,b){return a.length?a.pop():new b}function m(a,b,d){if(d){var f;d=0;for(f=b.length;d<f;d++)a.length<c&&a.push(b[d]);A(b)}else for(f in b)Object.prototype.hasOwnProperty.call(b,f)&&(a.length<c&&a.push(b[f]),delete b[f])}function p(a,b,c){var f=a.yc;c=c.replace(/\s\s*$/,"");b>=f.length&&f.push(e(d,Object));b=f[b];b.text=c;b.width=a.Tp(c);a.Df=qa(a.Df,b.width)}function n(){}function r(){}function k(){}var f=Sc.prototype;f.H=function(){};f.K=function(a){this.Z=a;this.b=a.b};var a=
f.K.prototype;a.H=function(){this.Y||(this.T=new Image,this.b.Zq(this.T,this.Fn),this.R=null)};a.jk=function(){this.Y||(this.R=null)};a.pk=function(){if(!this.Y&&this.n.length){this.R||(this.R=this.b.J.ng(this.T,!1,this.b.Pa,this.Lk));var a,b;a=0;for(b=this.n.length;a<b;a++)this.n[a].R=this.R}};a.Nn=function(){this.Y||this.n.length||!this.R||(this.b.J.deleteTexture(this.R),this.R=null)};a.hn=function(a){a.drawImage(this.T,0,0)};f.I=function(a){this.type=a;this.b=a.b};a=f.I.prototype;a.Wb=function(){m(d,
this.yc,!0);m(b,this.El,!1);m(h,this.Fl,!1);fb(this.Tf)};a.H=function(){this.T=this.type.T;this.Dl=this.D[0];this.Rf=this.D[1];this.characterSet=this.D[2];this.text=this.D[3];this.Sf=this.D[4];this.visible=0===this.D[5];this.ff=this.D[6]/2;this.Ff=this.D[7]/2;this.Wk=0===this.D[9];this.Mh=this.D[10];this.lineHeight=this.D[11];this.Ke=this.Df=0;this.Ac?(A(this.yc),fb(this.El),fb(this.Fl),fb(this.Tf)):(this.yc=[],this.El={},this.Fl={},this.Tf={});this.Pc=!0;this.fh=this.width;this.b.J&&(this.type.R||
(this.type.R=this.b.J.ng(this.type.T,!1,this.b.Pa,this.type.Lk)),this.R=this.type.R);this.sz()};a.Ba=function(){var a={t:this.text,csc:this.Sf,csp:this.Mh,lh:this.lineHeight,tw:this.Df,th:this.Ke,lrt:this.eh,ha:this.ff,va:this.Ff,cw:{}},b;for(b in this.Tf)a.cw[b]=this.Tf[b];return a};a.Ga=function(a){this.text=a.t;this.Sf=a.csc;this.Mh=a.csp;this.lineHeight=a.lh;this.Df=a.tw;this.Ke=a.th;this.eh=a.lrt;a.hasOwnProperty("ha")&&(this.ff=a.ha);a.hasOwnProperty("va")&&(this.Ff=a.va);for(var b in a.cw)this.Tf[b]=
a.cw[b];this.Pc=!0;this.fh=this.width};var c=1E3,d=[],b=[],h=[];a.sz=function(){for(var a=this.T,c=a.width,d=a.height,a=this.Dl,f=this.Rf,g=a/c,l=f/d,k=this.characterSet,c=Math.floor(c/a),d=Math.floor(d/f),n=0;n<k.length&&!(n>=c*d);n++){var m=n%c,p=Math.floor(n/c),r=k.charAt(n);if(this.b.J){var y=this.Fl,K=m*g,M=p*l,m=(m+1)*g,p=(p+1)*l;void 0===y[r]&&(y[r]=e(h,wa));y[r].left=K;y[r].top=M;y[r].right=m;y[r].bottom=p}else y=this.El,m=m*a,p=p*f,K=a,M=f,void 0===y[r]&&(y[r]=e(b,Object)),y[r].x=m,y[r].y=
p,y[r].Nv=K,y[r].ot=M}};var g=[];f.ro=function(a){A(g);for(var b="",c,d=0;d<a.length;)if(c=a.charAt(d),"\n"===c)b.length&&(g.push(b),b=""),g.push("\n"),++d;else if(" "===c||"\t"===c||"-"===c){do b+=a.charAt(d),d++;while(d<a.length&&(" "===a.charAt(d)||"\t"===a.charAt(d)));g.push(b);b=""}else d<a.length&&(b+=c,d++);b.length&&g.push(b)};f.so=function(a){var b=a.text,c=a.yc;if(b&&b.length){var f=a.width;if(2>=f)m(d,c,!0);else{var g=a.Sf,h=a.Mh;if(b.length*(a.Dl*g+h)-h<=f&&-1===b.indexOf("\n")&&(h=a.Tp(b),
h<=f)){m(d,c,!0);c.push(e(d,Object));c[0].text=b;c[0].width=h;a.Df=h;a.Ke=a.Rf*g+a.lineHeight;return}this.to(a);a.Ke=c.length*(a.Rf*g+a.lineHeight)}}else m(d,c,!0)};f.to=function(a){var b=a.Wk,f=a.text,e=a.yc,h=a.width;b&&(this.ro(f),f=g);var l="",k,n,m,r=0,w=!1;for(m=0;m<f.length;m++)"\n"===f[m]?(!0===w?w=!1:(p(a,r,l),r++),l=""):(w=!1,k=l,l+=f[m],n=a.Tp(l.replace(/\s\s*$/,"")),n>h&&(""===k?(p(a,r,l),l="",w=!0):(p(a,r,k),l=f[m]),r++,b||" "!==l||(l="")));l.replace(/\s\s*$/,"").length&&(p(a,r,l),r++);
for(m=r;m<e.length;m++)d.length<c&&d.push(e[m]);e.length=r};a.Tp=function(a){for(var b=this.Mh,c=a.length,d=0,f=0;f<c;f++)d+=this.ep(a.charAt(f))*this.Sf+b;return d-(0<d?b:0)};a.ep=function(a){var b=this.Tf;return void 0!==b[a]?b[a]:this.Dl};a.Tu=function(){if(this.Pc||this.width!==this.fh)this.Ke=this.Df=0,this.type.Z.so(this),this.Pc=!1,this.fh=this.width};a.lc=function(a){var b=this.T;if(""!==this.text&&null!=b&&(this.Tu(),!(this.height<this.Rf*this.Sf+this.lineHeight))){a.globalAlpha=this.opacity;
var b=this.x,c=this.y;this.b.md&&(b=Math.round(b),c=Math.round(c));var d=this.B.Na,f=this.B.Oa,e=this.B.Ra,g=this.B.Qa;a.save();a.translate(b,c);a.rotate(this.C);for(var h=this.C,l=this.ff,k=this.Sf,n=this.Rf*k,m=this.lineHeight,p=this.Mh,r=this.yc,T,U=-(this.uc*this.width),I=-(this.vc*this.height),I=I+this.Ff*qa(0,this.height-this.Ke),D,Z,da,B=0;B<r.length;B++){var z=r[B].text;T=l*qa(0,this.width-r[B].width);D=U+T;I+=m;if(0===h&&c+I+n<f)I+=n;else{for(var x=0;x<z.length;x++){Z=z.charAt(x);T=this.ep(Z);
var P=this.El[Z];if(0===h&&b+D+T*k+p<d)D+=T*k+p;else{if(D+T*k>this.width+1E-5)break;void 0!==P&&(Z=D,da=I,0===h&&1===k&&(Z=Math.round(Z),da=Math.round(da)),a.drawImage(this.T,P.x,P.y,P.Nv,P.ot,Z,da,P.Nv*k,P.ot*k));D+=T*k+p;if(0===h&&b+D>e)break}}I+=n;if(0===h&&(I+n+m>this.height||c+I>g))break}}a.restore()}};var l=new xa;a.Bb=function(a){a.pc(this.R);a.xf(this.opacity);if(this.text&&(this.Tu(),!(this.height<this.Rf*this.Sf+this.lineHeight))){this.Ma();var b=this.Zb,c=0,d=0;this.b.md&&(c=Math.round(this.x)-
this.x,d=Math.round(this.y)-this.y);var f=this.B.Na,e=this.B.Oa,g=this.B.Ra,h=this.B.Qa,k=this.C,n=this.ff,m=this.Ff,p=this.Sf,r=this.Rf*p,M=this.lineHeight,T=this.Mh,U=this.yc,I=this.Ke,D,Z,da;0!==k&&(Z=Math.cos(k),da=Math.sin(k));for(var c=b.Ta+c,b=b.Ua+d,B,m=m*qa(0,this.height-I),z,x,I=0;I<U.length;I++)if(d=U[I].text,B=D=n*qa(0,this.width-U[I].width),m+=M,0===k&&b+m+r<e)m+=r;else{for(var P=0;P<d.length;P++){var F=d.charAt(P);D=this.ep(F);F=this.Fl[F];if(0===k&&c+B+D*p+T<f)B+=D*p+T;else{if(B+D*
p>this.width+1E-5)break;if(void 0!==F){var G=this.Dl*p,N=this.Rf*p;z=B;x=m;0===k&&1===p&&(z=Math.round(z),x=Math.round(x));l.Ta=z;l.Ua=x;l.rb=z+G;l.sb=x;l.gb=z;l.hb=x+N;l.ib=z+G;l.jb=x+N;0!==k&&(z=l,x=Z,G=da,N=void 0,N=z.Ta*x-z.Ua*G,z.Ua=z.Ua*x+z.Ta*G,z.Ta=N,N=z.rb*x-z.sb*G,z.sb=z.sb*x+z.rb*G,z.rb=N,N=z.gb*x-z.hb*G,z.hb=z.hb*x+z.gb*G,z.gb=N,N=z.ib*x-z.jb*G,z.jb=z.jb*x+z.ib*G,z.ib=N);l.offset(c,b);a.ae(l.Ta,l.Ua,l.rb,l.sb,l.ib,l.jb,l.gb,l.hb,F)}B+=D*p+T;if(0===k&&c+B>g)break}}m+=r;if(0===k&&(m+r+M>
this.height||b+m>h))break}}};n.prototype.Yk=function(a,b){return b?this.text==a:ub(this.text,a)};f.j=new n;r.prototype.Ih=function(a){ja(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Pc=!0,this.b.S=!0)};r.prototype.er=function(a){ja(a)&&(a=Math.round(1E10*a)/1E10);if(a=a.toString())this.text+=a,this.Pc=!0,this.b.S=!0};a.Od=function(a,b){var c=parseInt(b,10);this.Tf[a]!==c&&(this.Tf[a]=c,this.Pc=!0,this.b.S=!0)};r.prototype.fl=function(a){this.yb=a;this.Ve=
rb(a);sb(this,a,this.b.N);this.b.S=!0};f.q=new r;k.prototype.Text=function(a){a.L(this.text)};f.A=new k})();function Tc(e){this.b=e}
(function(){var e=Tc.prototype;e.K=function(e){this.Z=e;this.b=e.b};e.K.prototype.H=function(){};e.I=function(e){this.type=e;this.b=e.b};e.I.prototype.H=function(){};e.j={};var m=e.j;m.LocalStorageEnabled=function(){return"undefined"!=typeof localStorage};m.SessionStorageEnabled=function(){return"undefined"!=typeof sessionStorage};m.LocalStorageExists=function(e){if("undefined"==typeof localStorage)return!1;e=e.toString();return null!=localStorage.getItem("c2_"+e)};m.SessionStorageExists=function(e){if("undefined"==
typeof sessionStorage)return!1;e=e.toString();return null!=sessionStorage.getItem("c2_"+e)};e.q={};m=e.q;m.StoreLocal=function(e,n){"undefined"!=typeof localStorage&&(e=e.toString(),n=n.toString(),localStorage.setItem("c2_"+e,n))};m.StoreSession=function(e,n){"undefined"!=typeof sessionStorage&&(e=e.toString(),n=n.toString(),sessionStorage.setItem("c2_"+e,n))};e.A={};e=e.A;e.GetLocal=function(e,n){if("undefined"==typeof localStorage)e.L("");else{n=n.toString();var m=localStorage.getItem("c2_"+n);
e.L(m.toString())}};e.GetSession=function(e,n){if("undefined"==typeof sessionStorage)e.L("");else{n=n.toString();var m=sessionStorage.getItem("c2_"+n);e.L(m.toString())}}})();function W(e){this.b=e}
(function(){function e(){return d.length?d.pop():{}}function m(a){var c,f;c=0;for(f=a.length;c<f;c++)d.push(a[c]);A(a)}function p(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function n(){}function r(){}function k(){}var f=W.prototype;f.H=function(){f.q.il=function(a){this.width!==a&&(this.width=a,this.Pc=!0,this.aa())}};f.K=function(a){this.Z=a;this.b=a.b};var a=f.K.prototype;a.H=function(){};a.jk=function(){if(!this.Y){var a,c,d;a=0;for(c=this.n.length;a<c;a++)d=this.n[a],
d.Be=null,d.nh=null,d.$c=null}};f.I=function(a){this.type=a;this.b=a.b;this.Ac?A(this.yc):this.yc=[];this.Pc=!0};a=f.I.prototype;a.H=function(){this.text=this.D[0];this.visible=0===this.D[1];this.font=this.D[2];this.color=this.D[3];this.ff=this.D[4];this.Ff=this.D[5];this.Wk=0===this.D[7];this.fh=this.Dm=this.width;this.Cm=this.height;this.Lp=this.D[8];this.Yh=this.bg="";this.Ke=this.Df=this.ug=0;this.$C();this.$c=this.nh=this.Be=null;this.Xp=!1;this.eh=this.b.ge;this.Ac?this.vg.set(0,0,1,1):this.vg=
new wa(0,0,1,1);this.b.J&&this.b.fe(this)};a.$C=function(){var a=this.font.split(" "),c;for(c=0;c<a.length;c++)if("pt"===a[c].substr(a[c].length-2,2)){this.ug=parseInt(a[c].substr(0,a[c].length-2));this.ln=Math.ceil(this.ug/72*96)+4;0<c&&(this.Yh=a[c-1]);this.bg=a[c+1];for(c+=2;c<a.length;c++)this.bg+=" "+a[c];break}};a.Ba=function(){return{t:this.text,f:this.font,c:this.color,ha:this.ff,va:this.Ff,wr:this.Wk,lho:this.Lp,fn:this.bg,fs:this.Yh,ps:this.ug,pxh:this.ln,tw:this.Df,th:this.Ke,lrt:this.eh}};
a.Ga=function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.ff=a.ha;this.Ff=a.va;this.Wk=a.wr;this.Lp=a.lho;this.bg=a.fn;this.Yh=a.fs;this.ug=a.ps;this.ln=a.pxh;this.Df=a.tw;this.Ke=a.th;this.eh=a.lrt;this.Pc=!0;this.fh=this.Dm=this.width;this.Cm=this.height};a.La=function(){if(this.b.J&&this.$c&&300<=this.b.ge-this.eh){var a=this.B;this.Ma();var c=this.$a;if(c.right<a.Na||c.bottom<a.Oa||c.left>a.Ra||c.top>a.Qa)this.b.J.deleteTexture(this.$c),this.Be=this.nh=this.$c=null}};a.Wb=function(){this.Be=
this.nh=null;this.b.J&&this.$c&&this.b.J.deleteTexture(this.$c);this.$c=null};a.Iv=function(){this.font=this.Yh+" "+this.ug.toString()+"pt "+this.bg;this.Pc=!0;this.b.S=!0};a.lc=function(a,c){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=c?1:this.opacity;var d=1;c&&(d=Math.abs(this.B.nc()),a.save(),a.scale(d,d));if(this.Pc||this.width!==this.fh)this.type.Z.so(this.text,this.yc,a,this.width,this.Wk),this.Pc=!1,this.fh=this.width;this.Ma();var d=c?0:this.Zb.Ta,f=c?0:this.Zb.Ua;
this.b.md&&(d=d+.5|0,f=f+.5|0);0===this.C||c||(a.save(),a.translate(d,f),a.rotate(this.C),f=d=0);var e=f+this.height,k=this.ln,k=k+this.Lp,n,q;1===this.Ff?f+=Math.max(this.height/2-this.yc.length*k/2,0):2===this.Ff&&(f+=Math.max(this.height-this.yc.length*k-2,0));for(q=0;q<this.yc.length&&!(n=d,1===this.ff?n=d+(this.width-this.yc[q].width)/2:2===this.ff&&(n=d+(this.width-this.yc[q].width)),a.fillText(this.yc[q].text,n,f),f+=k,f>=e-k);q++);(0!==this.C||c)&&a.restore();this.eh=this.b.ge};a.Bb=function(a){if(!(1>
this.width||1>this.height)){var c=this.Pc||this.Xp;this.Xp=!1;var d=this.B.nc(),f=this.B.ob(),e=this.vg,k=d*this.width,n=d*this.height,q=Math.ceil(k),m=Math.ceil(n),p=Math.abs(q),r=Math.abs(m),R=this.b.ca/2,Q=this.b.ba/2;this.nh||(this.Be=document.createElement("canvas"),this.Be.width=p,this.Be.height=r,this.Dm=p,this.Cm=r,c=!0,this.nh=this.Be.getContext("2d"));if(p!==this.Dm||r!==this.Cm)this.Be.width=p,this.Be.height=r,this.$c&&(a.deleteTexture(this.$c),this.$c=null),c=!0;c&&(this.nh.clearRect(0,
0,p,r),this.lc(this.nh,!0),this.$c||(this.$c=a.Gc(p,r,this.b.Pa,this.b.jf)),a.Xq(this.Be,this.$c,this.b.jf));this.Dm=p;this.Cm=r;a.pc(this.$c);a.xf(this.opacity);a.Dd();a.translate(-R,-Q);a.rd();var C=this.Zb,c=this.B.la(C.Ta,C.Ua,!0,!0),p=this.B.la(C.Ta,C.Ua,!1,!0),r=this.B.la(C.rb,C.sb,!0,!0),R=this.B.la(C.rb,C.sb,!1,!0),Q=this.B.la(C.ib,C.jb,!0,!0),w=this.B.la(C.ib,C.jb,!1,!0),y=this.B.la(C.gb,C.hb,!0,!0),C=this.B.la(C.gb,C.hb,!1,!0);if(this.b.md||0===this.C&&0===f)var K=(c+.5|0)-c,M=(p+.5|0)-
p,c=c+K,p=p+M,r=r+K,R=R+M,Q=Q+K,w=w+M,y=y+K,C=C+M;0===this.C&&0===f?(r=c+q,R=p,Q=r,w=p+m,y=c,C=w,e.right=1,e.bottom=1):(e.right=k/q,e.bottom=n/m);a.ae(c,p,r,R,Q,w,y,C,e);a.Dd();a.scale(d,d);a.qn(-this.B.ob());a.translate((this.B.Na+this.B.Ra)/-2,(this.B.Oa+this.B.Qa)/-2);a.rd();this.eh=this.b.ge}};var c=[];f.ro=function(a){A(c);for(var d="",f,e=0;e<a.length;)if(f=a.charAt(e),"\n"===f)d.length&&(c.push(d),d=""),c.push("\n"),++e;else if(" "===f||"\t"===f||"-"===f){do d+=a.charAt(e),e++;while(e<a.length&&
(" "===a.charAt(e)||"\t"===a.charAt(e)));c.push(d);d=""}else e<a.length&&(d+=f,e++);d.length&&c.push(d)};var d=[];f.so=function(a,c,d,f,k){if(a&&a.length)if(2>=f)m(c);else{if(100>=a.length&&-1===a.indexOf("\n")){var n=d.measureText(a).width;if(n<=f){m(c);c.push(e());c[0].text=a;c[0].width=n;return}}this.to(a,c,d,f,k)}else m(c)};f.to=function(a,f,g,l,k){k&&(this.ro(a),a=c);var n="",m,q,r,H=0;for(r=0;r<a.length;r++)"\n"===a[r]?(H>=f.length&&f.push(e()),n=p(n),q=f[H],q.text=n,q.width=g.measureText(n).width,
H++,n=""):(m=n,n+=a[r],q=g.measureText(n).width,q>=l&&(H>=f.length&&f.push(e()),m=p(m),q=f[H],q.text=m,q.width=g.measureText(m).width,H++,n=a[r],k||" "!==n||(n="")));n.length&&(H>=f.length&&f.push(e()),n=p(n),q=f[H],q.text=n,q.width=g.measureText(n).width,H++);for(r=H;r<f.length;r++)d.push(f[r]);f.length=H};n.prototype.Yk=function(a,c){return c?this.text==a:ub(this.text,a)};f.j=new n;r.prototype.Ih=function(a){ja(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Pc=
!0,this.b.S=!0)};r.prototype.er=function(a){ja(a)&&(a=Math.round(1E10*a)/1E10);if(a=a.toString())this.text+=a,this.Pc=!0,this.b.S=!0};r.prototype.Uy=function(a,c){var d="";switch(c){case 1:d="bold";break;case 2:d="italic";break;case 3:d="bold italic"}if(a!==this.bg||d!==this.Yh)this.bg=a,this.Yh=d,this.Iv()};r.prototype.Vy=function(a){this.ug!==a&&(this.ug=a,this.ln=Math.ceil(this.ug/72*96)+4,this.Iv())};r.prototype.Ty=function(a){a="rgb("+za(a).toString()+","+Aa(a).toString()+","+Ba(a).toString()+
")";a!==this.color&&(this.color=a,this.Xp=!0,this.b.S=!0)};r.prototype.fl=function(a){this.yb=a;this.Ve=rb(a);sb(this,a,this.b.N);this.b.S=!0};f.q=new r;k.prototype.Text=function(a){a.L(this.text)};f.A=new k})();function Uc(e){this.b=e}
(function(){function e(){}function m(){}function p(){}var n=Uc.prototype;n.K=function(f){this.Z=f;this.b=f.b};n.K.prototype.H=function(){};n.I=function(f){this.type=f;this.b=f.b};var r=n.I.prototype,k="text password email number tel url".split(" ");-1<navigator.userAgent.indexOf("MSIE 9")&&(k[2]="text",k[3]="text",k[4]="text",k[5]="text");r.H=function(){if(this.b.G)fa("[Construct 2] Textbox plugin not supported on this platform - the object will not be created");else{6===this.D[7]?(this.k=document.createElement("textarea"),
jQuery(this.k).css("resize","none")):(this.k=document.createElement("input"),this.k.type=k[this.D[7]]);this.k.id=this.D[9];jQuery(this.k).appendTo(this.b.pe?this.b.pe:"body");this.k.autocomplete="off";this.k.value=this.D[0];this.k.placeholder=this.D[1];this.k.title=this.D[2];this.k.disabled=0===this.D[4];this.k.readOnly=1===this.D[5];this.k.spellcheck=1===this.D[6];this.jj=0!==this.D[8];this.nb=!1;0===this.D[3]&&(jQuery(this.k).hide(),this.visible=!1,this.nb=!0);var f=function(a){return function(){a.b.trigger(Uc.prototype.j.Xr,
a)}}(this);this.k.oninput=f;-1!==navigator.userAgent.indexOf("MSIE")&&(this.k.oncut=f);this.k.onclick=function(a){return function(c){c.stopPropagation();a.b.ya=!0;a.b.trigger(Uc.prototype.j.zg,a);a.b.ya=!1}}(this);this.k.ondblclick=function(a){return function(c){c.stopPropagation();a.b.ya=!0;a.b.trigger(Uc.prototype.j.bj,a);a.b.ya=!1}}(this);this.k.addEventListener("touchstart",function(a){a.stopPropagation()},!1);this.k.addEventListener("touchmove",function(a){a.stopPropagation()},!1);this.k.addEventListener("touchend",
function(a){a.stopPropagation()},!1);jQuery(this.k).mousedown(function(a){a.stopPropagation()});jQuery(this.k).mouseup(function(a){a.stopPropagation()});jQuery(this.k).keydown(function(a){13!==a.which&&27!=a.which&&a.stopPropagation()});jQuery(this.k).keyup(function(a){13!==a.which&&27!=a.which&&a.stopPropagation()});this.Xd=this.Yd=this.Td=this.Vd=this.Wd=this.Ud=0;this.ie(!0);this.b.fe(this)}};r.Ba=function(){return{text:this.k.value,placeholder:this.k.placeholder,tooltip:this.k.title,disabled:!!this.k.disabled,
readonly:!!this.k.readOnly,spellcheck:!!this.k.spellcheck}};r.Ga=function(f){this.k.value=f.text;this.k.placeholder=f.placeholder;this.k.title=f.tooltip;this.k.disabled=f.disabled;this.k.readOnly=f.readonly;this.k.spellcheck=f.spellcheck};r.Wb=function(){this.b.G||(jQuery(this.k).remove(),this.k=null)};r.La=function(){this.ie()};r.ie=function(f){if(!this.b.G){var a=this.B.la(this.x,this.y,!0),c=this.B.la(this.x,this.y,!1),d=this.B.la(this.x+this.width,this.y+this.height,!0),b=this.B.la(this.x+this.width,
this.y+this.height,!1),e=this.b.width/this.b.devicePixelRatio,g=this.b.height/this.b.devicePixelRatio;!this.visible||!this.B.visible||0>=d||0>=b||a>=e||c>=g?(this.nb||jQuery(this.k).hide(),this.nb=!0):(1>a&&(a=1),1>c&&(c=1),d>=e&&(d=e-1),b>=g&&(b=g-1),e=window.innerWidth,g=window.innerHeight,f||this.Ud!==a||this.Wd!==c||this.Vd!==d||this.Td!==b||this.Yd!==e||this.Xd!==g?(this.Ud=a,this.Wd=c,this.Vd=d,this.Td=b,this.Yd=e,this.Xd=g,this.nb&&(jQuery(this.k).show(),this.nb=!1),f=Math.round(a)+jQuery(this.b.canvas).offset().left,
e=Math.round(c)+jQuery(this.b.canvas).offset().top,jQuery(this.k).css("position","absolute"),jQuery(this.k).offset({left:f,top:e}),jQuery(this.k).width(Math.round(d-a)),jQuery(this.k).height(Math.round(b-c)),this.jj&&jQuery(this.k).css("font-size",this.B.nc(!0)/this.b.devicePixelRatio-.2+"em")):this.nb&&(jQuery(this.k).show(),this.nb=!1))}};r.lc=function(){};r.Bb=function(){};e.prototype.Yk=function(f,a){return this.b.G?!1:0===a?ub(this.k.value,f):this.k.value===f};e.prototype.Xr=function(){return!0};
e.prototype.zg=function(){return!0};e.prototype.bj=function(){return!0};n.j=new e;m.prototype.Ih=function(f){this.b.G||(this.k.value=f)};m.prototype.cz=function(f){this.b.G||(this.k.placeholder=f)};m.prototype.ud=function(f){this.b.G||(this.visible=0!==f)};m.prototype.Hh=function(f){this.b.G||(this.k.disabled=0===f)};m.prototype.ez=function(f){this.b.G||(this.k.readOnly=0===f)};m.prototype.no=function(){this.b.G||this.k.focus()};m.prototype.lo=function(){this.b.G||this.k.blur()};m.prototype.cj=function(f,
a){this.b.G||jQuery(this.k).css(f,a)};m.prototype.Gy=function(){this.b.G||(this.k.scrollTop=this.k.scrollHeight)};n.q=new m;p.prototype.Text=function(f){this.b.G?f.L(""):f.L(this.k.value)};n.A=new p})();function Vc(e){this.b=e}
(function(){function e(){}function m(){}var p=Vc.prototype;p.K=function(e){this.Z=e;this.b=e.b};var n=p.K.prototype;n.H=function(){this.Y||(this.T=new Image,this.T.Gs=this.Jq,this.b.Zq(this.T,this.Fn),this.R=this.pattern=null)};n.jk=function(){this.Y||(this.R=null)};n.pk=function(){if(!this.Y&&this.n.length){this.R||(this.R=this.b.J.ng(this.T,!0,this.b.Pa,this.Lk));var e,k;e=0;for(k=this.n.length;e<k;e++)this.n[e].R=this.R}};n.Mp=function(){this.Y||this.R||!this.b.J||(this.R=this.b.J.ng(this.T,!0,
this.b.Pa,this.Lk))};n.Nn=function(){this.Y||this.n.length||!this.R||(this.b.J.deleteTexture(this.R),this.R=null)};n.hn=function(e){e.drawImage(this.T,0,0)};p.I=function(e){this.type=e;this.b=e.b};n=p.I.prototype;n.H=function(){this.visible=0===this.D[0];this.vg=new wa(0,0,0,0);this.lm=!1;this.T=this.type.T;this.b.J?(this.type.Mp(),this.R=this.type.R):(this.type.pattern||(this.type.pattern=this.b.Ya.createPattern(this.type.T,"repeat")),this.pattern=this.type.pattern)};n.ne=function(){this.lm=!1;this.T=
this.type.T};n.Wb=function(){this.b.J&&this.lm&&this.R&&(this.b.J.deleteTexture(this.R),this.R=null)};n.lc=function(e){e.globalAlpha=this.opacity;e.save();e.fillStyle=this.pattern;var k=this.x,f=this.y;this.b.md&&(k=Math.round(k),f=Math.round(f));var a=-(this.uc*this.width),c=-(this.vc*this.height),d=a%this.T.width,b=c%this.T.height;0>d&&(d+=this.T.width);0>b&&(b+=this.T.height);e.translate(k,f);e.rotate(this.C);e.translate(d,b);e.fillRect(a-d,c-b,this.width,this.height);e.restore()};n.Jg=function(e){this.Bb(e)};
n.Bb=function(e){e.pc(this.R);e.xf(this.opacity);var k=this.vg;k.right=this.width/this.T.width;k.bottom=this.height/this.T.height;var f=this.Zb;if(this.b.md){var a=Math.round(this.x)-this.x,c=Math.round(this.y)-this.y;e.ae(f.Ta+a,f.Ua+c,f.rb+a,f.sb+c,f.ib+a,f.jb+c,f.gb+a,f.hb+c,k)}else e.ae(f.Ta,f.Ua,f.rb,f.sb,f.ib,f.jb,f.gb,f.hb,k)};e.prototype.jo=function(){return!0};p.j=new e;m.prototype.fl=function(e){this.yb=e;this.Ve=rb(e);sb(this,e,this.b.N);this.b.S=!0};m.prototype.or=function(e,k){var f=
new Image,a=this;f.onload=function(){a.T=f;a.b.J?(a.lm&&a.R&&a.b.J.deleteTexture(a.R),a.R=a.b.J.ng(f,!0,a.b.Pa)):a.pattern=a.b.Ya.createPattern(f,"repeat");a.lm=!0;a.b.S=!0;a.b.trigger(Vc.prototype.j.jo,a)};"data:"!==e.substr(0,5)&&0===k&&(f.crossOrigin="anonymous");this.b.wn(f,e)};p.q=new m;p.A=new function(){}})();function Y(e){this.b=e}
(function(){function e(a){d=a.x;b=a.y;h=a.z}function m(a,b,c,d){var f;f=g.length?g.pop():new p;f.init(a,b,c,d);return f}function p(){this.Hk=this.id=this.hh=this.gh=this.y=this.x=this.Cn=this.Bn=this.Ip=this.time=this.Gq=0;this.Nk=this.Ln=!1}function n(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function r(){}function k(){}var f=Y.prototype;f.K=function(a){this.Z=a;this.b=
a.b};f.K.prototype.H=function(){};f.I=function(a){this.type=a;this.b=a.b;this.touches=[];this.Up=!1};var a=f.I.prototype,c={left:0,top:0};a.xj=function(a){var b,c;b=0;for(c=this.touches.length;b<c;b++)if(this.touches[b].id===a)return b;return-1};var d=0,b=0,h=0,g=[];p.prototype.init=function(a,b,c,d){var f=gb();this.Gq=this.Ip=this.time=f;this.Bn=a;this.Cn=b;this.x=a;this.y=b;this.gh=a;this.hh=b;this.pressure=this.height=this.width=0;this.id=c;this.Hk=d;this.Nk=this.Ln=!1};p.prototype.update=function(a,
b,c,d,f,e){this.Ip=this.time;this.time=a;this.gh=this.x;this.hh=this.y;this.x=b;this.y=c;this.width=d;this.height=f;this.pressure=e;!this.Nk&&15<=Za(this.Bn,this.Cn,this.x,this.y)&&(this.Nk=!0)};p.prototype.GC=function(a,b){!this.Ln&&500<=gb()-this.Gq&&!this.Nk&&15>Za(this.Bn,this.Cn,this.x,this.y)&&(this.Ln=!0,a.Ne=this.Hk,a.Pi=this.id,a.$h=b,a.b.trigger(Y.prototype.j.Cr,a),a.Xe=this.x,a.Ye=this.y,a.b.trigger(Y.prototype.j.Ix,a),a.$h=0)};var l=-1E3,t=-1E3,v=-1E4;p.prototype.mu=function(a,b){if(!this.Ln){var c=
gb();333>=c-this.Gq&&!this.Nk&&15>Za(this.Bn,this.Cn,this.x,this.y)&&(a.Ne=this.Hk,a.Pi=this.id,a.$h=b,666>=c-v&&25>Za(l,t,this.x,this.y)?(a.b.trigger(Y.prototype.j.ur,a),a.Xe=this.x,a.Ye=this.y,a.b.trigger(Y.prototype.j.xr,a),t=l=-1E3,v=-1E4):(a.b.trigger(Y.prototype.j.Vr,a),a.Xe=this.x,a.Ye=this.y,a.b.trigger(Y.prototype.j.Wr,a),l=this.x,t=this.y,v=c),a.$h=0)}};a.H=function(){this.rC=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.$h=this.Pi=this.Ne=this.Ye=this.Xe=this.qs=
this.os=this.ns=this.Sz=this.Rz=this.Qz=this.Zm=this.Ym=this.Xm=0;this.kE=0!==this.D[0];var a=0<this.b.mc?document:this.b.canvas,b=document;this.b.Rb?b=a=window.Canvas:this.b.Ic&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.ok(a)},!1),a.addEventListener("pointermove",function(a){c.nk(a)},!1),b.addEventListener("pointerup",function(a){c.rf(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.rf(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",
function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.ok(a)},!1),a.addEventListener("MSPointerMove",function(a){c.nk(a)},!1),b.addEventListener("MSPointerUp",function(a){c.rf(a,!1)},!1),b.addEventListener("MSPointerCancel",
function(a){c.rf(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.Vm(a)},!1),a.addEventListener("touchmove",function(a){c.Um(a)},!1),b.addEventListener("touchend",function(a){c.Ci(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Ci(a,!0)},!1));if(this.rC){var d=function(a){a=a.reading;c.ns=a.accelerationX;
c.os=a.accelerationY;c.qs=a.accelerationZ},f=function(a){a=a.reading;c.Xm=a.yawDegrees;c.Ym=a.pitchDegrees;c.Zm=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",function(){document.hidden||
document.msHidden?(g&&g.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",function(a){c.Xm=a.alpha||0;c.Ym=a.beta||0;c.Zm=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Qz=a.accelerationIncludingGravity.x||0,c.Rz=a.accelerationIncludingGravity.y||0,c.Sz=a.accelerationIncludingGravity.z||
0);a.acceleration&&(c.ns=a.acceleration.x||0,c.os=a.acceleration.y||0,c.qs=a.acceleration.z||0)},!1);this.kE&&!this.b.G&&(jQuery(document).mousemove(function(a){c.lk(a)}),jQuery(document).mousedown(function(a){c.kk(a)}),jQuery(document).mouseup(function(a){c.mk(a)}));!this.b.li&&this.b.Wc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(e,null,{frequency:40});this.b.YD(this)};a.nk=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&
"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.xj(a.pointerId),d=gb();if(0<=b){var f=this.b.G?c:jQuery(this.b.canvas).offset(),b=this.touches[b];2>d-b.time||b.update(d,a.pageX-f.left,a.pageY-f.top,a.width||0,a.height||0,a.pressure||0)}}};a.ok=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&vb(a)&&a.preventDefault();var b=this.b.G?c:jQuery(this.b.canvas).offset(),d=a.pageX-b.left,b=a.pageY-b.top;gb();this.Ne=this.touches.length;
this.Pi=a.pointerId;this.touches.push(m(d,b,a.pointerId,this.Ne));this.b.ya=!0;this.b.trigger(Y.prototype.j.bo,this);this.b.trigger(Y.prototype.j.Yr,this);this.Xe=d;this.Ye=b;this.b.trigger(Y.prototype.j.io,this);this.b.ya=!1}};a.rf=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&vb(a)&&a.preventDefault();var c=this.xj(a.pointerId);this.Ne=0<=c?this.touches[c].Hk:-1;this.Pi=0<=c?this.touches[c].id:-1;this.b.ya=!0;this.b.trigger(Y.prototype.j.ao,
this);this.b.trigger(Y.prototype.j.ho,this);0<=c&&(b||this.touches[c].mu(this,c),100>g.length&&g.push(this.touches[c]),this.touches.splice(c,1));this.b.ya=!1}};a.Um=function(a){a.preventDefault&&a.preventDefault();var b=gb(),d,f,e,g;d=0;for(f=a.changedTouches.length;d<f;d++)if(e=a.changedTouches[d],g=this.xj(e.identifier),0<=g){var h=this.b.G?c:jQuery(this.b.canvas).offset();g=this.touches[g];2>b-g.time||g.update(b,e.pageX-h.left,e.pageY-h.top,2*(e.BF||e.KF||e.sF||e.vF||0),2*(e.CF||e.LF||e.tF||e.wF||
0),e.iF||e.JF||e.rF||e.uF||0)}};a.Vm=function(a){a.preventDefault&&vb(a)&&a.preventDefault();var b=this.b.G?c:jQuery(this.b.canvas).offset();gb();this.b.ya=!0;var d,f,e,g;d=0;for(f=a.changedTouches.length;d<f;d++)if(e=a.changedTouches[d],g=this.xj(e.identifier),-1===g){g=e.pageX-b.left;var h=e.pageY-b.top;this.Ne=this.touches.length;this.Pi=e.identifier;this.touches.push(m(g,h,e.identifier,this.Ne));this.b.trigger(Y.prototype.j.bo,this);this.b.trigger(Y.prototype.j.Yr,this);this.Xe=g;this.Ye=h;this.b.trigger(Y.prototype.j.io,
this)}this.b.ya=!1};a.Ci=function(a,b){a.preventDefault&&vb(a)&&a.preventDefault();this.b.ya=!0;var c,d,f;c=0;for(d=a.changedTouches.length;c<d;c++)f=a.changedTouches[c],f=this.xj(f.identifier),0<=f&&(this.Ne=this.touches[f].Hk,this.Pi=this.touches[f].id,this.b.trigger(Y.prototype.j.ao,this),this.b.trigger(Y.prototype.j.ho,this),b||this.touches[f].mu(this,f),100>g.length&&g.push(this.touches[f]),this.touches.splice(f,1));this.b.ya=!1};a.Od=function(){return this.b.Wc&&0===this.Xm&&0!==h?90*h:this.Xm};
a.mi=function(){return this.b.Wc&&0===this.Ym&&0!==b?90*b:this.Ym};a.Am=function(){return this.b.Wc&&0===this.Zm&&0!==d?90*d:this.Zm};a.kk=function(a){n(a)||(this.Vm({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.Up=!0)};a.lk=function(a){this.Up&&!n(a)&&this.Um({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};a.mk=function(a){a.preventDefault&&this.b.jm&&!this.b.jf&&a.preventDefault();this.b.jm=!0;n(a)||(this.Ci({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),
this.Up=!1)};a.Mk=function(){var a,b,c,d=gb();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Ip=d),c.GC(this,a)};r.prototype.Yr=function(){return!0};r.prototype.ho=function(){return!0};r.prototype.io=function(a){return a?this.b.Li(a,this.Xe,this.Ye,!1):!1};var L=[];r.prototype.Vw=function(a){if(!a)return!1;var b=a.ka(),c=b.tc(),d,f,e,g,h,l;e=0;for(g=c.length;e<g;e++){var k=c[e];k.Ma();h=0;for(l=this.touches.length;h<l;h++)if(f=this.touches[h],d=k.B.Va(f.x,f.y,!0),f=k.B.Va(f.x,
f.y,!1),k.$b(d,f)){L.push(k);break}}return L.length?(b.ta=!1,Fa(b.n,L),a.cd(),A(L),!0):!1};r.prototype.bo=function(a){a=Math.floor(a);return a===this.Ne};r.prototype.ao=function(a){a=Math.floor(a);return a===this.Ne};r.prototype.Cr=function(){return!0};r.prototype.Vr=function(){return!0};r.prototype.ur=function(){return!0};r.prototype.Ix=function(a){return a?this.b.Li(a,this.Xe,this.Ye,!1):!1};r.prototype.Wr=function(a){return a?this.b.Li(a,this.Xe,this.Ye,!1):!1};r.prototype.xr=function(a){return a?
this.b.Li(a,this.Xe,this.Ye,!1):!1};f.j=new r;k.prototype.Ag=function(a,b){var c=this.$h;if(0>c||c>=this.touches.length)a.V(0);else{var d,f,e,g,h;ia(b)?(d=this.b.ef(0),f=d.scale,e=d.qc,g=d.Jc,h=d.C,d.scale=1,d.qc=1,d.Jc=1,d.C=0,a.V(d.Va(this.touches[c].x,this.touches[c].y,!0)),d.scale=f,d.qc=e,d.Jc=g,d.C=h):(d=ja(b)?this.b.ef(b):this.b.Aj(b))?a.V(d.Va(this.touches[c].x,this.touches[c].y,!0)):a.V(0)}};k.prototype.Jh=function(a,b){var c=this.$h;if(0>c||c>=this.touches.length)a.V(0);else{var d,f,e,g,
h;ia(b)?(d=this.b.ef(0),f=d.scale,e=d.qc,g=d.Kc,h=d.C,d.scale=1,d.qc=1,d.Kc=1,d.C=0,a.V(d.Va(this.touches[c].x,this.touches[c].y,!1)),d.scale=f,d.qc=e,d.Kc=g,d.C=h):(d=ja(b)?this.b.ef(b):this.b.Aj(b))?a.V(d.Va(this.touches[c].x,this.touches[c].y,!1)):a.V(0)}};f.A=new k})();function Wc(e){this.b=e}
(function(){function e(a){if(a)if(a.stop)a.stop();else{a=a.getTracks();for(var b=0,c=a.length;b<c;++b){var d=a[b];d.stop&&d.stop()}}}function m(){!g&&d&&(h=d.getVoices(),g=!0)}function p(){m();return h?h.length:0}function n(){}function r(){}function k(){}var f=Wc.prototype;f.K=function(a){this.Z=a;this.b=a.b};var a=f.K.prototype;a.H=function(){};a.pk=function(){if(!this.Y&&this.n.length){var a,b,c;a=0;for(b=this.n.length;a<b;a++)c=this.n[a],c.Bh&&0<=c.tb.videoWidth&&0<=c.tb.videoHeight&&(c.R=this.b.J.Gc(c.tb.videoWidth,
c.tb.videoHeight,this.b.Pa))}};f.I=function(a){this.type=a;this.b=a.b};a=f.I.prototype;window.URL||(window.URL=window.webkitURL||window.mozURL||window.msURL);var c=!(!window.webkitSpeechRecognition&&!window.speechRecognition),d=window.speechSynthesis||window.webkitSpeechSynthesis||window.mozSpeechSynthesis||window.msSpeechSynthesis,b=window.SpeechSynthesisUtterance||window.webkitSpeechSynthesisUtterance||window.mozSpeechSynthesisUtterance||window.msSpeechSynthesisUtterance,h=null,g=!1;a.H=function(){var a=
this;if(this.tb=document.createElement("video"))this.tb.crossOrigin="anonymous",this.tb.autoplay=!0,this.tb.addEventListener("canplaythrough",function(){a.Bh&&(a.Ui=!0)});sb(this,0,this.b.N);this.Bh=!1;this.vi=null;this.b.fe(this);this.R=null;this.Nt=-1;this.Ui=!1;this.Rn=this.Ti=null;this.lE=this.b.we||this.b.di;this.qd=null;this.qm=this.Yo="";this.vm=!1;this.vC="";if(this.b.wm&&!this.b.It){var b=Windows.Devices.Sensors.LightSensor.getDefault();if(b){var c=b.minimumReportInterval;b.reportInterval=
16<c?c:16;b.addEventListener("readingchanged",function(){a.b.trigger(Wc.prototype.j.tr,a)})}}else window.addEventListener("devicelight",function(){a.b.trigger(Wc.prototype.j.tr,a)})};a.Wb=function(){this.vi&&(e(this.vi),this.vi=null,this.Ui=this.Bh=!1);this.b.J&&this.R&&(this.b.J.deleteTexture(this.R),this.R=null);this.Rn=this.Ti=null};a.La=function(){this.Bh&&this.Ui&&(this.b.S=!0)};a.lc=function(a){a.globalAlpha=this.opacity;a.save();a.fillStyle="#000";a.fillRect(this.x,this.y,this.width,this.height);
if(this.Bh&&this.Ui){var b=this.tb.videoWidth/this.tb.videoHeight,c=this.width,d=this.height,f=0,e=0,g=0,h=0;c/d>b?(g=d*b,h=d,f=Math.floor((c-g)/2),0>f&&(f=0)):(g=c,h=c/b,e=Math.floor((d-h)/2),0>e&&(e=0));try{a.drawImage(this.tb,this.x+f,this.y+e,g,h)}catch(k){}}a.restore()};a.Bb=function(a){a.wf(this.ic,this.cc);a.xf(this.opacity);var b=this.Zb;a.pc(null);a.uh(b.Ta,b.Ua,b.rb,b.sb,b.ib,b.jb,b.gb,b.hb);if(!(!this.Bh||!this.Ui||0>=this.tb.videoWidth||0>=this.tb.videoHeight)){this.R||(this.R=a.Gc(this.tb.videoWidth,
this.tb.videoHeight,this.b.Pa));var b=this.tb.webkitDecodedFrameCount||this.tb.mozParsedFrames,c=!1;b?b>this.Nt&&(c=!0,this.Nt=b):c=!0;c&&(this.lE?(this.Rn||(this.Ti=document.createElement("canvas"),this.Ti.width=this.tb.videoWidth,this.Ti.height=this.tb.videoHeight,this.Rn=this.Ti.getContext("2d")),this.Rn.drawImage(this.tb,0,0),a.Xq(this.Ti,this.R)):a.Xq(this.tb,this.R));var d=this.tb.videoWidth/this.tb.videoHeight,f=this.width,e=this.height,g=0,h=0,b=c=0;f/e>d?(c=e*d,b=e,g=Math.floor((f-c)/2),
0>g&&(g=0)):(c=f,b=f/d,h=Math.floor((e-b)/2),0>h&&(h=0));d=this.x+g;h=this.y+h;c=d+c;b=h+b;a.pc(this.R);a.uh(d,h,c,h,c,b,d,b)}};n.prototype.Bz=function(){return c};n.prototype.ay=function(){return!0};n.prototype.Yx=function(){return!0};n.prototype.Zx=function(){return!0};n.prototype.$x=function(){return!0};n.prototype.tr=function(){return!0};n.prototype.Cz=function(){return!!d&&!!b};n.prototype.Uw=function(){return d&&d.speaking};f.j=new n;r.prototype.po=function(){this.vi&&(e(this.vi),this.vi=null,
this.Ui=this.Bh=!1)};r.prototype.Dy=function(a,b,d){if(c){window.webkitSpeechRecognition?this.qd=new window.webkitSpeechRecognition:window.speechRecognition&&(this.qd=new window.speechRecognition);this.qd.lang=a;this.qd.continuous=0===b;this.qd.interimResults=0===d;this.vm=!1;this.Yo=this.qm="";var f=this;this.qd.onstart=function(){f.vm=!0;f.b.trigger(Wc.prototype.j.ay,f)};this.qd.onend=function(){f.vm=!1;f.b.trigger(Wc.prototype.j.Yx,f)};this.qd.onerror=function(a){f.vm=!1;f.vC=a.error||"unknown";
f.b.trigger(Wc.prototype.j.Zx,f)};this.qd.onresult=function(a){var b;f.qm="";for(b=a.resultIndex;b<a.results.length;++b)a.results[b].isFinal?f.Yo+=a.results[b][0].transcript:f.qm+=a.results[b][0].transcript;f.b.trigger(Wc.prototype.j.$x,f)};this.qd.start()}};r.prototype.wz=function(){this.qd&&(this.qd.stop(),this.qd=null)};r.prototype.rz=function(a,c,f,e,g,k){if(d&&b){a=new b(a);c&&(a.lang=c);if(f){a:{m();if(h){var n,p;c=0;for(n=h.length;c<n;++c)if(p=h[c],p.voiceURI===f){c=p;break a}}c=null}a.voice=
c;a.voiceURI=f}f=Math.pow(10,e/20);0>f&&(f=0);1<f&&(f=1);a.volume=f;a.rate=g;a.pitch=k;d.speak(a)}};f.q=new r;k.prototype.Iz=function(a){a.O(p())};k.prototype.Jz=function(a,b){b=Math.floor(b);var c;c=b;m();c=!h||0>c||c>=h.length?null:h[c];a.L(c?c.voiceURI:"")};f.A=new k})();function Xc(e){this.b=e}
(function(){function e(){}function m(){}function p(){}function n(a,c){if(!a)return null;c=Math.floor(c);return 0>c||c>=a.length?null:a[c]}var r=Xc.prototype;r.K=function(a){this.Z=a;this.b=a.b};r.K.prototype.H=function(){};r.I=function(a){this.type=a;this.b=a.b};var k=r.I.prototype,f=window.URL||window.webkitURL||window.mozURL||window.msURL;k.H=function(){if(this.b.G)fa("[Construct 2] File Chooser plugin not supported on this platform - the object will not be created");else{this.k=document.createElement("input");
this.k.type="file";this.k.setAttribute("accept",this.D[0]);0!==this.D[1]&&this.k.setAttribute("multiple","");this.k.id=this.D[3];jQuery(this.k).appendTo(this.b.pe?this.b.pe:"body");this.nb=!1;0===this.D[2]&&(jQuery(this.k).hide(),this.visible=!1,this.nb=!0);var a=this;this.k.onchange=function(){a.b.trigger(Xc.prototype.j.sr,a)};this.Xd=this.Yd=this.Td=this.Vd=this.Wd=this.Ud=0;this.ie(!0);this.b.fe(this)}};k.Wb=function(){this.b.G||(jQuery(this.k).remove(),this.k=null)};k.La=function(){this.ie()};
k.ie=function(a){if(!this.b.G){var c=this.B.la(this.x,this.y,!0),d=this.B.la(this.x,this.y,!1),b=this.B.la(this.x+this.width,this.y+this.height,!0),f=this.B.la(this.x+this.width,this.y+this.height,!1),e=this.b.width/this.b.devicePixelRatio,k=this.b.height/this.b.devicePixelRatio;!this.visible||!this.B.visible||0>=b||0>=f||c>=e||d>=k?(this.nb||jQuery(this.k).hide(),this.nb=!0):(1>c&&(c=1),1>d&&(d=1),b>=e&&(b=e-1),f>=k&&(f=k-1),e=window.innerWidth,k=window.innerHeight,a||this.Ud!==c||this.Wd!==d||this.Vd!==
b||this.Td!==f||this.Yd!==e||this.Xd!==k?(this.Ud=c,this.Wd=d,this.Vd=b,this.Td=f,this.Yd=e,this.Xd=k,this.nb&&(jQuery(this.k).show(),this.nb=!1),a=Math.round(c)+jQuery(this.b.canvas).offset().left,e=Math.round(d)+jQuery(this.b.canvas).offset().top,jQuery(this.k).css("position","absolute"),jQuery(this.k).offset({left:a,top:e}),jQuery(this.k).width(Math.round(b-c)),jQuery(this.k).height(Math.round(f-d))):this.nb&&(jQuery(this.k).show(),this.nb=!1))}};k.lc=function(){};k.Bb=function(){};e.prototype.sr=
function(){return!0};r.j=new e;m.prototype.ud=function(a){this.b.G||(this.visible=0!==a)};m.prototype.cj=function(a,c){this.b.G||jQuery(this.k).css(a,c)};m.prototype.xy=function(a){!this.b.G&&f&&f.revokeObjectURL&&f.revokeObjectURL(a)};r.q=new m;p.prototype.sw=function(a){a.O(this.b.G?0:this.k.files.length||0)};p.prototype.uw=function(a,c){var d=this.b.G?null:n(this.k.files,c);a.L(d?d.name||"":"")};p.prototype.vw=function(a,c){var d=this.b.G?null:n(this.k.files,c);d?d.c2url?a.L(d.c2url):f&&f.createObjectURL?
(d.c2url=f.createObjectURL(d),a.L(d.c2url)):a.L(""):a.L("")};r.A=new p})();function Yc(e){this.b=e}
(function(){function e(){}var m=Yc.prototype;m.K=function(e){this.behavior=e;this.b=e.b};m.K.prototype.H=function(){};m.I=function(e,m){this.type=e;this.behavior=e.behavior;this.u=m;this.b=e.b};var p=m.I.prototype;p.H=function(){var e=this.D[0];this.nl=this.D[1];this.dm=this.D[2];this.cA=0!==this.D[3];this.Aq=0!==this.D[4];this.mb=Math.cos(this.u.C)*e;this.Za=Math.sin(this.u.C)*e;this.gh=this.u.x;this.hh=this.u.y;this.jd=this.u.C;this.Jn=0;this.enabled=0!==this.D[5]};p.Ba=function(){return{acc:this.nl,
g:this.dm,dx:this.mb,dy:this.Za,lx:this.gh,ly:this.hh,lka:this.jd,t:this.Jn,e:this.enabled}};p.Ga=function(e){this.nl=e.acc;this.dm=e.g;this.mb=e.dx;this.Za=e.dy;this.gh=e.lx;this.hh=e.ly;this.jd=e.lka;this.Jn=e.t;this.enabled=e.e};p.La=function(){if(this.enabled){var e=this.b.Pg(this.u),m,k;this.u.C!==this.jd&&(this.Aq&&(m=Za(0,0,this.mb,this.Za),this.mb=Math.cos(this.u.C)*m,this.Za=Math.sin(this.u.C)*m),this.jd=this.u.C);0!==this.nl&&(m=Za(0,0,this.mb,this.Za),k=0===this.mb&&0===this.Za?this.u.C:
Ua(0,0,this.mb,this.Za),m+=this.nl*e,0>m&&(m=0),this.mb=Math.cos(k)*m,this.Za=Math.sin(k)*m);0!==this.dm&&(this.Za+=this.dm*e);this.gh=this.u.x;this.hh=this.u.y;if(0!==this.mb||0!==this.Za)if(this.u.x+=this.mb*e,this.u.y+=this.Za*e,this.Jn+=Za(0,0,this.mb*e,this.Za*e),this.Aq&&(this.u.C=Ua(0,0,this.mb,this.Za),this.u.aa(),this.jd=this.u.C),this.u.aa(),this.cA&&(m=this.b.zh(this.u)))this.b.tD(this.u,m),m=Za(0,0,this.mb,this.Za),k=this.b.fA(this.u,this.gh,this.hh),this.mb=Math.cos(k)*m,this.Za=Math.sin(k)*
m,this.u.x+=this.mb*e,this.u.y+=this.Za*e,this.u.aa(),this.Aq&&(this.jd=this.u.C=k,this.u.aa()),this.b.pD(this.u,this.mb/m,this.Za/m,Math.max(2.5*m*e,30))||this.b.qD(this.u)}};m.j=new function(){};e.prototype.gz=function(e){var m=Ua(0,0,this.mb,this.Za);this.mb=Math.cos(m)*e;this.Za=Math.sin(m)*e};e.prototype.My=function(e){e=Na(e);var m=Za(0,0,this.mb,this.Za);this.mb=Math.cos(e)*m;this.Za=Math.sin(e)*m};e.prototype.Hh=function(e){this.enabled=1===e};m.q=new e;m.A=new function(){}})();
function Zc(e){this.b=e;var m=this;this.b.G||(jQuery(document).mousemove(function(e){m.lk(e)}),jQuery(document).mousedown(function(e){m.kk(e)}),jQuery(document).mouseup(function(e){m.mk(e)}));e=0<this.b.mc?document:this.b.canvas;this.b.Rb?e=window.Canvas:this.b.Ic&&(e=window);"undefined"!==typeof PointerEvent?(e.addEventListener("pointerdown",function(e){m.ok(e)},!1),e.addEventListener("pointermove",function(e){m.nk(e)},!1),e.addEventListener("pointerup",function(e){m.rf(e)},!1),e.addEventListener("pointercancel",
function(e){m.rf(e)},!1)):window.navigator.msPointerEnabled?(e.addEventListener("MSPointerDown",function(e){m.ok(e)},!1),e.addEventListener("MSPointerMove",function(e){m.nk(e)},!1),e.addEventListener("MSPointerUp",function(e){m.rf(e)},!1),e.addEventListener("MSPointerCancel",function(e){m.rf(e)},!1)):(e.addEventListener("touchstart",function(e){m.Vm(e)},!1),e.addEventListener("touchmove",function(e){m.Um(e)},!1),e.addEventListener("touchend",function(e){m.Ci(e)},!1),e.addEventListener("touchcancel",
function(e){m.Ci(e)},!1))}
(function(){function e(e){var a,c;a=0;for(c=e.da.length;a<c;a++)if(e.da[a]instanceof n.I)return e.da[a];return null}function m(){}function p(){}var n=Zc.prototype,r={left:0,top:0};n.kk=function(e){1===e.which&&this.aq("leftmouse",e.pageX,e.pageY)};n.lk=function(e){1===e.which&&this.bq("leftmouse",e.pageX,e.pageY)};n.mk=function(e){1===e.which&&this.cq("leftmouse")};n.Vm=function(e){e.preventDefault&&vb(e)&&e.preventDefault();var a,c,d,b;a=0;for(c=e.changedTouches.length;a<c;a++)d=e.changedTouches[a],
b=d.identifier,this.aq(b?b.toString():"<none>",d.pageX,d.pageY)};n.Um=function(e){e.preventDefault&&e.preventDefault();var a,c,d,b;a=0;for(c=e.changedTouches.length;a<c;a++)d=e.changedTouches[a],b=d.identifier,this.bq(b?b.toString():"<none>",d.pageX,d.pageY)};n.Ci=function(e){e.preventDefault&&vb(e)&&e.preventDefault();var a,c,d;a=0;for(c=e.changedTouches.length;a<c;a++)d=e.changedTouches[a],d=d.identifier,this.cq(d?d.toString():"<none>")};n.ok=function(e){e.pointerType!==e.MSPOINTER_TYPE_MOUSE&&
"mouse"!==e.pointerType&&(e.preventDefault&&vb(e)&&e.preventDefault(),this.aq(e.pointerId.toString(),e.pageX,e.pageY))};n.nk=function(e){e.pointerType!==e.MSPOINTER_TYPE_MOUSE&&"mouse"!==e.pointerType&&(e.preventDefault&&e.preventDefault(),this.bq(e.pointerId.toString(),e.pageX,e.pageY))};n.rf=function(e){e.pointerType!==e.MSPOINTER_TYPE_MOUSE&&"mouse"!==e.pointerType&&(e.preventDefault&&vb(e)&&e.preventDefault(),this.cq(e.pointerId.toString()))};n.aq=function(f,a,c){var d=this.b.G?r:jQuery(this.b.canvas).offset();
a=a-d.left;c=c-d.top;var b,h,g,k,d=this.Ai.je(),n,m,p,q=null;n=0;for(m=d.length;n<m;n++)if(p=d[n],b=e(p),b.enabled&&!b.Yf&&(b=p.B.Va(a,c,!0),h=p.B.Va(a,c,!1),p.Ma(),p.$b(b,h)))q?p.B.index>q.B.index?(q=p,g=b,k=h):p.B.index===q.B.index&&p.zd()>q.zd()&&(q=p,g=b,k=h):(q=p,g=b,k=h);q&&e(q).QC(f,g,k)};n.bq=function(f,a,c){var d=this.b.G?r:jQuery(this.b.canvas).offset();a=a-d.left;c=c-d.top;var b,h=this.Ai.je(),g,k,n;g=0;for(k=h.length;g<k;g++)b=h[g],n=e(b),!n.enabled||!n.Yf||n.Yf&&n.To!==f||(d=b.B.Va(a,
c,!0),b=b.B.Va(a,c,!1),n.TC(d,b))};n.cq=function(f){var a=this.Ai.je(),c,d,b;c=0;for(d=a.length;c<d;c++)b=a[c],b=e(b),b.Yf&&b.To===f&&b.WC()};n.K=function(e){this.behavior=e;this.b=e.b};n.K.prototype.H=function(){};n.I=function(e,a){this.type=e;this.behavior=e.behavior;this.u=a;this.b=e.b};var k=n.I.prototype;k.H=function(){this.Yf=!1;this.Za=this.mb=0;this.To="<none>";this.Co=this.D[0];this.enabled=0!==this.D[1]};k.Ba=function(){return{enabled:this.enabled}};k.Ga=function(e){this.enabled=e.enabled;
this.Yf=!1};k.QC=function(e,a,c){this.mb=a-this.u.x;this.Za=c-this.u.y;this.Yf=!0;this.To=e;this.b.ya=!0;this.b.trigger(Zc.prototype.j.Ax,this.u);this.b.ya=!1};k.TC=function(e,a){var c=e-this.mb,d=a-this.Za;if(0===this.Co){if(this.u.x!==c||this.u.y!==d)this.u.x=c,this.u.y=d,this.u.aa()}else 1===this.Co?this.u.x!==c&&(this.u.x=c,this.u.aa()):2===this.Co&&this.u.y!==d&&(this.u.y=d,this.u.aa())};k.WC=function(){this.Yf=!1;this.b.ya=!0;this.b.trigger(Zc.prototype.j.Bx,this.u);this.b.ya=!1};k.La=function(){};
m.prototype.Ax=function(){return!0};m.prototype.Bx=function(){return!0};n.j=new m;p.prototype.Hh=function(e){this.enabled=0!==e;this.enabled||(this.Yf=!1)};n.q=new p;n.A=new function(){}})();function $c(e){this.b=e}
(function(){function e(){}function m(){}var p=$c.prototype;p.K=function(e){this.behavior=e;this.b=e.b};p.K.prototype.H=function(){};p.I=function(e,k){this.type=e;this.behavior=e.behavior;this.u=k;this.b=e.b};var n=p.I.prototype;n.H=function(){this.yo=1===this.D[0];this.dv=!1;this.Vh=this.D[1];this.Vi=this.D[2];this.uj=this.D[3];this.sA=this.D[4];this.Ib=this.yo?0:3;this.Ac?this.Fd.reset():this.Fd=new kb;this.sg=this.u.opacity?this.u.opacity:1;this.yo&&(0===this.Vh?(this.Ib=1,0===this.Vi&&(this.Ib=
2)):(this.u.opacity=0,this.b.S=!0))};n.Ba=function(){return{fit:this.Vh,wt:this.Vi,fot:this.uj,s:this.Ib,st:this.Fd.X,mo:this.sg}};n.Ga=function(e){this.Vh=e.fit;this.Vi=e.wt;this.uj=e.fot;this.Ib=e.s;this.Fd.reset();this.Fd.X=e.st;this.sg=e.mo};n.La=function(){this.Fd.add(this.b.Pg(this.u));0===this.Ib&&(this.u.opacity=this.Fd.X/this.Vh*this.sg,this.b.S=!0,this.u.opacity>=this.sg&&(this.u.opacity=this.sg,this.Ib=1,this.Fd.reset(),this.b.trigger($c.prototype.j.yr,this.u)));1===this.Ib&&this.Fd.X>=
this.Vi&&(this.Ib=2,this.Fd.reset(),this.b.trigger($c.prototype.j.ey,this.u));2===this.Ib&&0!==this.uj&&(this.u.opacity=this.sg-this.Fd.X/this.uj*this.sg,this.b.S=!0,0>this.u.opacity&&(this.u.opacity=0,this.Ib=3,this.Fd.reset(),this.b.trigger($c.prototype.j.Ar,this.u),1===this.sA&&this.b.td(this.u)))};n.Ps=function(){this.Ib=0;this.Fd.reset();0===this.Vh?(this.Ib=1,0===this.Vi&&(this.Ib=2)):(this.u.opacity=0,this.b.S=!0)};e.prototype.Ar=function(){return!0};e.prototype.yr=function(){return!0};e.prototype.ey=
function(){return!0};p.j=new e;m.prototype.vz=function(){this.yo||this.dv||(this.sg=this.u.opacity?this.u.opacity:1,this.dv=!0);3===this.Ib&&this.Ps()};m.prototype.Ey=function(){this.Ps()};m.prototype.Ry=function(e){0>e&&(e=0);this.Vh=e};m.prototype.iz=function(e){0>e&&(e=0);this.Vi=e};m.prototype.Sy=function(e){0>e&&(e=0);this.uj=e};p.q=new m;p.A=new function(){}})();function ad(e){this.b=e}
(function(){function e(){}function m(){}var p=ad.prototype;p.K=function(e){this.behavior=e;this.b=e.b};p.K.prototype.H=function(){};p.I=function(e,k){this.type=e;this.behavior=e.behavior;this.u=k;this.b=e.b};var n=p.I.prototype;n.H=function(){this.Le=this.Ie=this.Ib=this.Sm=this.Wm=0};n.Ba=function(){return{ontime:this.Wm,offtime:this.Sm,stage:this.Ib,stagetimeleft:this.Ie,timeleft:this.Le}};n.Ga=function(e){this.Wm=e.ontime;this.Sm=e.offtime;this.Ib=e.stage;this.Ie=e.stagetimeleft;this.Le=e.timeleft;
null===this.Le&&(this.Le=Infinity)};n.La=function(){if(!(0>=this.Le)){var e=this.b.Pg(this.u);this.Le-=e;0>=this.Le?(this.Le=0,this.u.visible=!0,this.b.S=!0,this.b.trigger(ad.prototype.j.Dx,this.u)):(this.Ie-=e,0>=this.Ie&&(0===this.Ib?(this.u.visible=!1,this.Ib=1,this.Ie+=this.Sm):(this.u.visible=!0,this.Ib=0,this.Ie+=this.Wm),this.b.S=!0))}};e.prototype.Dx=function(){return!0};p.j=new e;m.prototype.ww=function(e,k,f){this.Wm=e;this.Sm=k;this.Ib=1;this.Ie=k;this.Le=f;this.u.visible=!1;this.b.S=!0};
p.q=new m;p.A=new function(){}})();function gd(e){this.b=e}
(function(){function e(){}var m=gd.prototype;m.K=function(e){this.behavior=e;this.b=e.b};m.K.prototype.H=function(){};m.I=function(e,m){this.type=e;this.behavior=e.behavior;this.u=m;this.b=e.b};var p=m.I.prototype;p.H=function(){this.Gb=null;this.an=-1;this.mode=this.jd=this.Gn=this.yi=this.uf=this.uk=0;var e=this;this.Ac||(this.vu=function(m){e.dq(m)});this.b.pl(this.vu)};p.Ba=function(){return{uid:this.Gb?this.Gb.uid:-1,pa:this.uk,pd:this.uf,msa:this.yi,tsa:this.Gn,lka:this.jd,m:this.mode}};p.Ga=
function(e){this.an=e.uid;this.uk=e.pa;this.uf=e.pd;this.yi=e.msa;this.Gn=e.tsa;this.jd=e.lka;this.mode=e.m};p.ne=function(){-1===this.an?this.Gb=null:this.Gb=this.b.Zh(this.an);this.an=-1};p.dq=function(e){this.Gb==e&&(this.Gb=null)};p.Wb=function(){this.Gb=null;this.b.wD(this.vu)};p.La=function(){};p.Mk=function(){if(this.Gb){this.jd!==this.u.C&&(this.yi=Ra(this.yi+(this.u.C-this.jd)));var e=this.u.x,m=this.u.y;if(3===this.mode||4===this.mode){var k=Za(this.u.x,this.u.y,this.Gb.x,this.Gb.y);if(k>
this.uf||4===this.mode&&k<this.uf)m=Ua(this.Gb.x,this.Gb.y,this.u.x,this.u.y),e=this.Gb.x+Math.cos(m)*this.uf,m=this.Gb.y+Math.sin(m)*this.uf}else e=this.Gb.x+Math.cos(this.Gb.C+this.uk)*this.uf,m=this.Gb.y+Math.sin(this.Gb.C+this.uk)*this.uf;this.jd=k=Ra(this.yi+(this.Gb.C-this.Gn));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.u.x===e&&this.u.y===m||(this.u.x=e,this.u.y=m,this.u.aa());0!==this.mode&&2!==this.mode||this.u.C===k||(this.u.C=k,this.u.aa())}};m.j=new function(){};
e.prototype.oy=function(e,m){if(e){var k=e.gm(this.u);k&&(this.Gb=k,this.uk=Ua(k.x,k.y,this.u.x,this.u.y)-k.C,this.uf=Za(k.x,k.y,this.u.x,this.u.y),this.jd=this.yi=this.u.C,this.Gn=k.C,this.mode=m)}};e.prototype.Fz=function(){this.Gb=null};m.q=new e;m.A=new function(){}})();function hd(e){this.b=e}
(function(){function e(){}var m=hd.prototype;m.K=function(e){this.behavior=e;this.b=e.b};m.K.prototype.H=function(){};m.I=function(e,a){this.type=e;this.behavior=e.behavior;this.u=a;this.b=e.b;this.Db=0};var p=m.I.prototype,n=2*Math.PI,r=Math.PI/2,k=3*Math.PI/2;p.H=function(){this.Jb=1===this.D[0];this.wi=this.D[1];this.br=this.D[2];this.tf=this.D[3];this.tf+=Math.random()*this.D[4];0===this.tf?this.Db=0:(this.Db=this.D[5]/this.tf*n,this.Db+=Math.random()*this.D[6]/this.tf*n);this.zc=this.D[7];this.zc+=
Math.random()*this.D[8];this.xk=this.Wg=this.za=0;5===this.wi&&(this.zc=Na(this.zc));this.init()};p.Ba=function(){return{i:this.Db,a:this.Jb,mv:this.wi,w:this.br,p:this.tf,mag:this.zc,iv:this.za,iv2:this.Wg,r:this.xk,lkv:this.Yc,lkv2:this.Tj}};p.Ga=function(e){this.Db=e.i;this.Jb=e.a;this.wi=e.mv;this.br=e.w;this.tf=e.p;this.zc=e.mag;this.za=e.iv;this.Wg=e.iv2||0;this.xk=e.r;this.Yc=e.lkv;this.Tj=e.lkv2||0};p.init=function(){switch(this.wi){case 0:this.za=this.u.x;break;case 1:this.za=this.u.y;break;
case 2:this.za=this.u.width;this.xk=this.u.height/this.u.width;break;case 3:this.za=this.u.width;break;case 4:this.za=this.u.height;break;case 5:this.za=this.u.C;break;case 6:this.za=this.u.opacity;break;case 7:this.za=0;break;case 8:this.za=this.u.x,this.Wg=this.u.y}this.Yc=this.za;this.Tj=this.Wg};p.Oe=function(e){e=e%n;switch(this.br){case 0:return Math.sin(e);case 1:return e<=r?e/r:e<=k?1-2*(e-r)/Math.PI:(e-k)/r-1;case 2:return 2*e/n-1;case 3:return-2*e/n+1;case 4:return e<Math.PI?-1:1}return 0};
p.La=function(){var e=this.b.Pg(this.u);this.Jb&&0!==e&&(0===this.tf?this.Db=0:(this.Db+=e/this.tf*n,this.Db=this.Db%n),this.dE())};p.dE=function(){switch(this.wi){case 0:this.u.x!==this.Yc&&(this.za+=this.u.x-this.Yc);this.u.x=this.za+this.Oe(this.Db)*this.zc;this.Yc=this.u.x;break;case 1:this.u.y!==this.Yc&&(this.za+=this.u.y-this.Yc);this.u.y=this.za+this.Oe(this.Db)*this.zc;this.Yc=this.u.y;break;case 2:this.u.width=this.za+this.Oe(this.Db)*this.zc;this.u.height=this.u.width*this.xk;break;case 3:this.u.width=
this.za+this.Oe(this.Db)*this.zc;break;case 4:this.u.height=this.za+this.Oe(this.Db)*this.zc;break;case 5:this.u.C!==this.Yc&&(this.za=Ra(this.za+(this.u.C-this.Yc)));this.u.C=Ra(this.za+this.Oe(this.Db)*this.zc);this.Yc=this.u.C;break;case 6:this.u.opacity=this.za+this.Oe(this.Db)*this.zc/100;0>this.u.opacity?this.u.opacity=0:1<this.u.opacity&&(this.u.opacity=1);break;case 8:this.u.x!==this.Yc&&(this.za+=this.u.x-this.Yc),this.u.y!==this.Tj&&(this.Wg+=this.u.y-this.Tj),this.u.x=this.za+Math.cos(this.u.C)*
this.Oe(this.Db)*this.zc,this.u.y=this.Wg+Math.sin(this.u.C)*this.Oe(this.Db)*this.zc,this.Yc=this.u.x,this.Tj=this.u.y}this.u.aa()};p.Du=function(e,a){switch(this.wi){case 2:this.za*=a.width/e.width;this.xk=a.height/a.width;break;case 3:this.za*=a.width/e.width;break;case 4:this.za*=a.height/e.height}};m.j=new function(){};m.q=new function(){};e.prototype.Hz=function(e){e.V(this.Oe(this.Db)*this.zc)};m.A=new e})();function id(e){this.b=e}
(function(){function e(){}function m(){}var p=id.prototype;p.K=function(e){this.behavior=e;this.b=e.b};p.K.prototype.H=function(){};p.I=function(e,k){this.type=e;this.behavior=e.behavior;this.u=k;this.b=e.b};var n=p.I.prototype;n.H=function(){this.Yb={}};n.Wb=function(){fb(this.Yb)};n.Ba=function(){var e={},k,f;for(k in this.Yb)this.Yb.hasOwnProperty(k)&&(f=this.Yb[k],e[k]={c:f.current.X,t:f.total.X,d:f.duration,r:f.sq});return e};n.Ga=function(e){this.Yb={};for(var k in e)e.hasOwnProperty(k)&&(this.Yb[k]=
{current:new kb,total:new kb,duration:e[k].d,sq:e[k].r},this.Yb[k].current.X=e[k].c,this.Yb[k].total.X=e[k].t)};n.La=function(){var e=this.b.Pg(this.u),k,f;for(k in this.Yb)this.Yb.hasOwnProperty(k)&&(f=this.Yb[k],f.current.add(e),f.total.add(e))};n.Mk=function(){var e,k;for(e in this.Yb)this.Yb.hasOwnProperty(e)&&(k=this.Yb[e],k.current.X>=k.duration&&(k.sq?k.current.X-=k.duration:delete this.Yb[e]))};e.prototype.by=function(e){e=e.toLowerCase();return(e=this.Yb[e])?e.current.X>=e.duration:!1};p.j=
new e;m.prototype.gs=function(e,k,f){this.Yb[f.toLowerCase()]={current:new kb,total:new kb,duration:e,sq:1===k}};m.prototype.yz=function(e){e=e.toLowerCase();this.Yb.hasOwnProperty(e)&&delete this.Yb[e]};p.q=new m;p.A=new function(){}})();function jd(e){this.b=e}
(function(){var e=jd.prototype;e.K=function(e){this.behavior=e;this.b=e.b};e.K.prototype.H=function(){};e.I=function(e,m){this.type=e;this.behavior=e.behavior;this.u=m;this.b=e.b};var m=e.I.prototype;m.H=function(){this.Bl=document.createElement("canvas");this.qA=this.Bl.getContext("2d");this.Oo=""};m.La=function(){};e.j={};e.j.Qw=function(){return!1};e.q={};e.q.po=function(){};e.A={};e.A.hF=function(e){this.Bl.width=this.u.Fa.frames[this.u.U].T.width;this.Bl.height=this.u.Fa.frames[this.u.U].T.height;
this.qA.drawImage(this.u.Fa.frames[this.u.U].T,0,0);this.Oo=this.Bl.toDataURL("image/png");this.Oo.replace(/^data:image\/(png|jpg);base64,/,"");e.L(this.Oo)}})();function ld(e){this.b=e}
(function(){var e=ld.prototype;e.K=function(e){this.behavior=e;this.b=e.b};e.K.prototype.H=function(){};e.I=function(e,m){this.type=e;this.behavior=e.behavior;this.u=m;this.b=e.b};var m=e.I.prototype;m.H=function(){};m.La=function(){};e.j={};e.j.Qw=function(){return!1};e.q={};m=e.q;m.mF=function(e){this.u.Fa.frames[this.u.U].T.onload=function(e){return function(){e.b.S=!0}}(this);this.u.Fa.frames[this.u.U].T.src=e;this.b.S=!0};m.nF=function(e,m,r){this.u.Fa.frames[this.u.U].T.onload=function(e){return function(){e.b.S=
!0}}(this);this.u.Fa.frames[this.u.U].T.src=e;this.u.width=m;this.u.height=r;this.b.S=!0};e.A={}})();
function zc(){return[Bc,Dc,Cc,Ec,O,Gc,Fc,Ac,Jc,Hc,Xc,V,Rc,Qc,Pc,Tc,J,Nc,Kc,Sc,Oc,Wc,W,Ic,Vc,Y,Uc,gd,$c,jd,ld,Yc,hd,id,ad,Zc,Jc.prototype.j.Ow,E.prototype.j.qw,E.prototype.j.aw,E.prototype.A.right,W.prototype.A.Text,W.prototype.q.Ih,E.prototype.j.jr,E.prototype.j.Mw,Jc.prototype.j.Er,Ic.prototype.j.Tw,Ic.prototype.q.Pv,E.prototype.j.hw,E.prototype.q.Az,E.prototype.q.az,Jc.prototype.j.Dr,Ac.prototype.q.CallFunction,E.prototype.q.hz,Wc.prototype.j.Cz,Uc.prototype.A.Text,Uc.prototype.q.Ih,E.prototype.A.IC,
E.prototype.A.zC,Uc.prototype.j.Yk,E.prototype.A.KC,E.prototype.A.left,E.prototype.q.Kz,Uc.prototype.q.no,Y.prototype.j.Wr,Oc.prototype.j.co,Kc.prototype.A.Yw,Kc.prototype.A.Xw,Jc.prototype.j.Zn,Jc.prototype.j.Pw,E.prototype.j.xw,E.prototype.A.DC,E.prototype.q.xz,Gc.prototype.j.Dw,Gc.prototype.A.Bw,Dc.prototype.q.Play,E.prototype.A.random,Dc.prototype.q.dz,E.prototype.A.EC,E.prototype.A["int"],Jc.prototype.A.bx,Rc.prototype.A.Fw,Rc.prototype.A.nx,Rc.prototype.A.Hy,Ac.prototype.j.dl,Jc.prototype.j.pr,
Kc.prototype.j.Nr,Kc.prototype.j.ew,Kc.prototype.q.Xk,Kc.prototype.q.Rv,Kc.prototype.q.Iy,Kc.prototype.A.Ky,Oc.prototype.j.Rw,O.prototype.q.By,O.prototype.q.Wv,E.prototype.j.rw,J.prototype.q.oo,Oc.prototype.A.Ag,Oc.prototype.A.Jh,Gc.prototype.j.ir,J.prototype.q.cs,Oc.prototype.j.Yn,gd.prototype.q.oy,Oc.prototype.j.eo,gd.prototype.q.Fz,Tc.prototype.j.HE,Tc.prototype.q.YE,W.prototype.A.Dh,Uc.prototype.j.bj,Y.prototype.j.xr,W.prototype.q.Vy,Y.prototype.j.Vw,J.prototype.j.gr,Xc.prototype.q.ud,Uc.prototype.q.ud,
Uc.prototype.q.lo,Uc.prototype.q.ez,Uc.prototype.q.Hh,Xc.prototype.j.sr,Bc.prototype.q.Ay,Xc.prototype.A.vw,Bc.prototype.j.$i,J.prototype.q.or,E.prototype.A.WD,Gc.prototype.q.dr,Dc.prototype.q.ty,Ac.prototype.A.gy,Dc.prototype.q.po,Pc.prototype.A.Gz,E.prototype.q.Sv,J.prototype.q.jl,J.prototype.A.Ag,E.prototype.j.yw,Sc.prototype.q.Ih,J.prototype.j.yx,E.prototype.q.$y,E.prototype.q.Zy,E.prototype.A.BD,W.prototype.q.Ty,E.prototype.q.kw,Sc.prototype.q.gl,J.prototype.q.gl,Oc.prototype.j.$r,J.prototype.q.Oy,
J.prototype.q.es,Gc.prototype.q.ow,E.prototype.j.my,J.prototype.q.Zk,Sc.prototype.q.Zk,J.prototype.j.Sw,Uc.prototype.q.Gy,E.prototype.A.replace,W.prototype.q.ud,J.prototype.q.ud,W.prototype.j.as,W.prototype.q.gl,E.prototype.A.iE,Y.prototype.j.bo,id.prototype.q.gs,Y.prototype.j.ao,J.prototype.j.ny,Y.prototype.A.Ag,Y.prototype.A.Jh,ad.prototype.q.ww,id.prototype.j.by,E.prototype.j.Gr,O.prototype.A.$w,J.prototype.q.hl,E.prototype.q.qz,Ec.prototype.q.Hh,Xc.prototype.A.sw,E.prototype.j.rr,Bc.prototype.q.uy,
E.prototype.A.iA,O.prototype.A.vy,O.prototype.A.pw,O.prototype.A.iy,Bc.prototype.A.ax,$c.prototype.q.vz,V.prototype.j.Wn,V.prototype.j.kz,V.prototype.j.mz,V.prototype.j.lz,V.prototype.j.Nw,V.prototype.q.Ew,V.prototype.q.Ly,Bc.prototype.j.Pe,E.prototype.j.Dz,$c.prototype.j.Ar,Xc.prototype.q.xy,J.prototype.A.js,J.prototype.A.kr,Oc.prototype.j.Iw,$c.prototype.q.Ey,Ac.prototype.j.dw,J.prototype.q.il,J.prototype.q.bs,J.prototype.q.rx,J.prototype.q.Ny,Qc.prototype.q.Vv,Gc.prototype.j.zw,Gc.prototype.A.lw,
Wc.prototype.q.rz,Uc.prototype.j.Xr,O.prototype.q.Tv,Kc.prototype.q.yy,Wc.prototype.A.Jz,O.prototype.j.fy,Wc.prototype.j.Uw,Kc.prototype.q.Qv,Hc.prototype.q.Cy,Hc.prototype.j.Zr,Hc.prototype.A.jx,Hc.prototype.A.cx,Hc.prototype.j.Pe,id.prototype.q.yz,Gc.prototype.A.Dh,Gc.prototype.q.mr,Y.prototype.j.io,Sc.prototype.j.Yk,Sc.prototype.q.ud,Sc.prototype.A.Text,Kc.prototype.j.gw,O.prototype.j.Lw,E.prototype.A.find,Gc.prototype.A.mw,Rc.prototype.A.Ez,Ac.prototype.q.fz,Kc.prototype.q.Xy,Kc.prototype.q.ud,
Gc.prototype.q.Xk,Pc.prototype.j.hy,Xc.prototype.A.uw,Bc.prototype.A.qo,W.prototype.q.er,Ac.prototype.A.fr,O.prototype.q.Gw,Kc.prototype.A.Jy,Kc.prototype.j.zg,Kc.prototype.j.fw,Uc.prototype.q.cz,Gc.prototype.j.bw,Rc.prototype.A.Date,Rc.prototype.A.ox,Rc.prototype.A.Mz,Rc.prototype.A.mx,O.prototype.A.qy,O.prototype.q.$v,E.prototype.A.xC,J.prototype.q.Py,J.prototype.q.fl,Cc.prototype.q.jl,W.prototype.q.Zk,Vc.prototype.q.Zk,J.prototype.A.Jh,J.prototype.A.hs,W.prototype.A.Ag,W.prototype.A.Jh,W.prototype.A.hs,
J.prototype.j.as,$c.prototype.q.Ry,J.prototype.A.Dh,Pc.prototype.q.Lz,W.prototype.q.nr,Pc.prototype.A.wy,Pc.prototype.q.jw,Ec.prototype.q.ud,Uc.prototype.q.il,Kc.prototype.A.Ag,Gc.prototype.q.Yy,J.prototype.j.Ww,Wc.prototype.j.Bz,Wc.prototype.q.Dy,Wc.prototype.q.wz,Hc.prototype.j.Wn,E.prototype.A["float"],E.prototype.A.Cs,E.prototype.j.zy,Uc.prototype.q.cj,W.prototype.q.oo,Kc.prototype.q.cj,Wc.prototype.A.Iz,V.prototype.A.tx,Gc.prototype.q.lr,V.prototype.q.pz,Uc.prototype.j.gr,Uc.prototype.q.gl,O.prototype.q.Cw,
E.prototype.q.Fy,Dc.prototype.q.ry,$c.prototype.q.Sy,Kc.prototype.j.bj,Ec.prototype.j.Jw,Ec.prototype.j.zg,Vc.prototype.q.oo,E.prototype.q.bz,J.prototype.A.Opacity,J.prototype.j.Un,J.prototype.j.hr,W.prototype.q.cs,W.prototype.A.Opacity,W.prototype.j.hr,E.prototype.A.AC,W.prototype.j.Un,E.prototype.A.wC,Yc.prototype.q.My,Yc.prototype.q.gz,Vc.prototype.q.ud,J.prototype.q.Qy,Cc.prototype.q.hl,Jc.prototype.A.zz,E.prototype.j.$n,Pc.prototype.A.Xv,$c.prototype.j.yr,W.prototype.q.il,W.prototype.q.bs,W.prototype.q.hl,
hd.prototype.A.Hz,$c.prototype.q.iz,J.prototype.j.iw,Jc.prototype.j.Xn,J.prototype.q.qx,Tc.prototype.j.IE,Tc.prototype.A.zE,V.prototype.j.Br,V.prototype.A.gx,V.prototype.A.hx,V.prototype.A.ix,V.prototype.j.Qr,V.prototype.A.Vn,V.prototype.q.jz,V.prototype.j.Or,V.prototype.q.oz,V.prototype.j.Ur,V.prototype.q.nz,V.prototype.j.Rr,E.prototype.q.Wy,V.prototype.j.Tr,V.prototype.j.Pr,V.prototype.j.Ir,V.prototype.A.ky,V.prototype.A.jy,V.prototype.j.Jr,V.prototype.j.Sr,V.prototype.j.Kr,V.prototype.j.qr,V.prototype.A.Aw,
V.prototype.A.kx,V.prototype.A.qo,W.prototype.q.jl,W.prototype.q.es,J.prototype.q.ds,W.prototype.q.ds,Y.prototype.j.Vr,Y.prototype.j.ur,Y.prototype.j.Cr,Y.prototype.j.ho,W.prototype.q.Uy,J.prototype.q.uz]};
