// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ca,ea,J,fa,ga,P,R,ha,la,ma,na,oa,T,qa,ra,U,ta,ua,va,xa,ya,za,Aa,V,Ba,Ca,Da,Ea,Fa,Ga,Ia,Ja,Ka,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,W,Wb,Xb={},Yb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(k){return k.__proto__}:function(k){return k.constructor.prototype});
(function(){function k(g,a,r,d){this.set(g,a,r,d)}function p(){this.cc=this.ac=this.fc=this.ec=this.zc=this.yc=this.Bb=this.Ab=0}function f(g,a,r,d){g<a?r<d?(t=g<r?g:r,y=a>d?a:d):(t=g<d?g:d,y=a>r?a:r):r<d?(t=a<r?a:r,y=g>d?g:d):(t=a<d?a:d,y=g>r?g:r)}function q(){this.items=this.Jc=null;this.uf=0;u&&(this.Jc=new Set);this.Yf=[];this.Sd=!0}function l(g){E[K++]=g}function c(){this.da=this.jj=this.y=this.Nj=0}function a(g){this.Kf=[];this.Dm=this.Fm=this.Gm=this.Em=0;this.rh(g)}function b(g,a){this.Sj=
g;this.Rj=a;this.cells={}}function e(g,a){this.Sj=g;this.Rj=a;this.cells={}}function h(g,a,r){var d;return A.length?(d=A.pop(),d.Ck=g,d.x=a,d.y=r,d):new aa(g,a,r)}function d(g,a,r){this.Ck=g;this.x=a;this.y=r;this.Ta=new ca}function n(g,a,r){var d;return v.length?(d=v.pop(),d.Ck=g,d.x=a,d.y=r,d):new ea(g,a,r)}function s(g,a,r){this.Ck=g;this.x=a;this.y=r;this.Ta=[];this.tf=!0;this.Yc=new ca;this.bg=!1}function m(g,a){return g.Nc-a.Nc}J=function(g){window.console&&window.console.log&&window.console.log(g)};
fa=function(g){window.console&&window.console.error&&window.console.error(g)};ga=function(g){return"undefined"===typeof g};P=function(g){return"number"===typeof g};R=function(g){return"string"===typeof g};ha=function(g){return 0<g&&0===(g-1&g)};la=function(g){--g;for(var a=1;32>a;a<<=1)g|=g>>a;return g+1};ma=function(g){return 0>g?-g:g};na=function(g,a){return g<a?g:a};oa=Math.PI;T=function(g){return 0<=g?g|0:(g|0)-1};qa=function(g){var a=g|0;return a===g?a:a+1};ra=function(g,a,r,d,b,c,w,n){var u,
m,e,F;g<r?(m=g,u=r):(m=r,u=g);b<w?(F=b,e=w):(F=w,e=b);if(u<F||m>e)return!1;a<d?(m=a,u=d):(m=d,u=a);c<n?(F=c,e=n):(F=n,e=c);if(u<F||m>e)return!1;u=b-g+w-r;m=c-a+n-d;g=r-g;a=d-a;b=w-b;c=n-c;n=ma(a*b-c*g);return ma(b*m-c*u)>n?!1:ma(g*m-a*u)<=n};k.prototype.set=function(g,a,r,d){this.left=g;this.top=a;this.right=r;this.bottom=d};k.prototype.Ih=function(g){this.left=g.left;this.top=g.top;this.right=g.right;this.bottom=g.bottom};k.prototype.width=function(){return this.right-this.left};k.prototype.height=
function(){return this.bottom-this.top};k.prototype.offset=function(g,a){this.left+=g;this.top+=a;this.right+=g;this.bottom+=a;return this};k.prototype.normalize=function(){var g=0;this.left>this.right&&(g=this.left,this.left=this.right,this.right=g);this.top>this.bottom&&(g=this.top,this.top=this.bottom,this.bottom=g)};k.prototype.Hb=function(g,a){return g>=this.left&&g<=this.right&&a>=this.top&&a<=this.bottom};k.prototype.Rh=function(g){return this.left===g.left&&this.top===g.top&&this.right===
g.right&&this.bottom===g.bottom};U=k;p.prototype.qh=function(g){this.Ab=g.left;this.Bb=g.top;this.yc=g.right;this.zc=g.top;this.ec=g.right;this.fc=g.bottom;this.ac=g.left;this.cc=g.bottom};p.prototype.Wo=function(g,a){if(0===a)this.qh(g);else{var r=Math.sin(a),d=Math.cos(a),b=g.left*r,c=g.top*r,w=g.right*r,r=g.bottom*r,n=g.left*d,u=g.top*d,m=g.right*d,d=g.bottom*d;this.Ab=n-c;this.Bb=u+b;this.yc=m-c;this.zc=u+w;this.ec=m-r;this.fc=d+w;this.ac=n-r;this.cc=d+b}};p.prototype.offset=function(g,a){this.Ab+=
g;this.Bb+=a;this.yc+=g;this.zc+=a;this.ec+=g;this.fc+=a;this.ac+=g;this.cc+=a;return this};var t=0,y=0;p.prototype.Im=function(g){f(this.Ab,this.yc,this.ec,this.ac);g.left=t;g.right=y;f(this.Bb,this.zc,this.fc,this.cc);g.top=t;g.bottom=y};p.prototype.Hb=function(g,a){var r=this.yc-this.Ab,d=this.zc-this.Bb,b=this.ec-this.Ab,c=this.fc-this.Bb,w=g-this.Ab,n=a-this.Bb,u=r*r+d*d,m=r*b+d*c,d=r*w+d*n,e=b*b+c*c,F=b*w+c*n,K=1/(u*e-m*m),r=(e*d-m*F)*K,u=(u*F-m*d)*K;if(0<=r&&0<u&&1>r+u)return!0;r=this.ac-this.Ab;
d=this.cc-this.Bb;u=r*r+d*d;m=r*b+d*c;d=r*w+d*n;K=1/(u*e-m*m);r=(e*d-m*F)*K;u=(u*F-m*d)*K;return 0<=r&&0<u&&1>r+u};ta=p;ua=function(g,a){for(var r in a)a.hasOwnProperty(r)&&(g[r]=a[r]);return g};va=function(g,a){var r,d;a=T(a);if(!(0>a||a>=g.length)){r=a;for(d=g.length-1;r<d;r++)g[r]=g[r+1];g.length=d}};xa=function(g,a){g.length=a.length;var r,d;r=0;for(d=a.length;r<d;r++)g[r]=a[r]};ya=function(g,a){g.push.apply(g,a)};za=function(g,a){var r,d;r=0;for(d=g.length;r<d;++r)if(g[r]===a)return r;return-1};
Aa=function(g,a){var r=za(g,a);-1!==r&&va(g,r)};V=function(g){return g/(180/oa)};Ba=function(g){return 180/oa*g};Ca=function(g){g%=360;0>g&&(g+=360);return g};Da=function(g){g%=2*oa;0>g&&(g+=2*oa);return g};Ea=function(g){return Ca(Ba(g))};Fa=function(g){return Da(V(g))};Ga=function(g,a,r,d){return Math.atan2(d-a,r-g)};Ia=function(g,a){if(g===a)return 0;var r=Math.sin(g),d=Math.cos(g),b=Math.sin(a),c=Math.cos(a),r=r*b+d*c;return 1<=r?0:-1>=r?oa:Math.acos(r)};Ja=function(g,a,r){var d=Math.sin(g),b=
Math.cos(g),c=Math.sin(a),w=Math.cos(a);return Math.acos(d*c+b*w)>r?0<b*c-d*w?Da(g+r):Da(g-r):Da(a)};Ka=function(g,a){var r=Math.sin(g),d=Math.cos(g),b=Math.sin(a),c=Math.cos(a);return 0>=d*b-r*c};Pa=function(g,a,r,d,b,c){if(0===r)return c?g:a;var w=Math.sin(r);r=Math.cos(r);g-=d;a-=b;var n=g*w;g=g*r-a*w;a=a*r+n;return c?g+d:a+b};Qa=function(g,a,r,d){g=r-g;a=d-a;return Math.sqrt(g*g+a*a)};Ra=function(g,a){return!g!==!a};Sa=function(g){for(var a in g)if(g.hasOwnProperty(a))return!0;return!1};Ta=function(g){for(var a in g)g.hasOwnProperty(a)&&
delete g[a]};var r=+new Date;Ua=function(){if("undefined"!==typeof window.performance){var g=window.performance;if("undefined"!==typeof g.now)return g.now();if("undefined"!==typeof g.webkitNow)return g.webkitNow();if("undefined"!==typeof g.mozNow)return g.mozNow();if("undefined"!==typeof g.msNow)return g.msNow()}return Date.now()-r};var g=!1,w=g=!1,F=!1;"undefined"!==typeof window&&(g=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),g=!g&&/safari/i.test(navigator.userAgent),
w=/(iphone|ipod|ipad)/i.test(navigator.userAgent),F=window.c2ejecta);var u=!g&&!F&&!w&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;q.prototype.contains=function(g){return this.ud()?!1:u?this.Jc.has(g):this.items&&this.items.hasOwnProperty(g)};q.prototype.add=function(g){if(u)this.Jc.has(g)||(this.Jc.add(g),this.Sd=!1);else{var a=g.toString(),r=this.items;r?r.hasOwnProperty(a)||(r[a]=g,this.uf++,this.Sd=!1):(this.items={},this.items[a]=g,this.uf=1,this.Sd=!1)}};q.prototype.remove=
function(g){if(!this.ud())if(u)this.Jc.has(g)&&(this.Jc["delete"](g),this.Sd=!1);else if(this.items){g=g.toString();var a=this.items;a.hasOwnProperty(g)&&(delete a[g],this.uf--,this.Sd=!1)}};q.prototype.clear=function(){this.ud()||(u?this.Jc.clear():(this.items=null,this.uf=0),this.Yf.length=0,this.Sd=!0)};q.prototype.ud=function(){return 0===this.count()};q.prototype.count=function(){return u?this.Jc.size:this.uf};var E=null,K=0;q.prototype.eu=function(){if(!this.Sd){if(u)this.Yf.length=this.Jc.size,
E=this.Yf,K=0,this.Jc.forEach(l),E=null,K=0;else{var g=this.Yf;g.length=this.uf;var a,r=0,d=this.items;if(d)for(a in d)d.hasOwnProperty(a)&&(g[r++]=d[a])}this.Sd=!0}};q.prototype.Mc=function(){this.eu();return this.Yf};ca=q;new ca;Va=function(g,a){u?Wa(g,a.Jc):Xa(g,a.Mc())};Wa=function(g,a){var r,d,b,c;d=r=0;for(b=g.length;r<b;++r)c=g[r],a.has(c)||(g[d++]=c);g.length=d};Xa=function(g,a){var r,d,b,c;d=r=0;for(b=g.length;r<b;++r)c=g[r],-1===za(a,c)&&(g[d++]=c);g.length=d};c.prototype.add=function(g){this.y=
g-this.Nj;this.jj=this.da+this.y;this.Nj=this.jj-this.da-this.y;this.da=this.jj};c.prototype.reset=function(){this.da=this.jj=this.y=this.Nj=0};Ya=c;Za=function(g){return g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};a.prototype.rh=function(g){this.Jo=g;this.Vi=g.length/2;this.Kf.length=g.length;this.Oj=this.Pj=-1;this.Lm=0};a.prototype.Ss=function(){return!this.Jo.length};a.prototype.Wa=function(){for(var g=this.Kf,a=g[0],r=a,d=g[1],b=d,c,w,n=1,u=this.Vi;n<u;++n)w=2*n,c=g[w],w=g[w+1],c<a&&(a=c),
c>r&&(r=c),w<d&&(d=w),w>b&&(b=w);this.Em=a;this.Fm=r;this.Gm=d;this.Dm=b};a.prototype.qh=function(g,a,r){this.Kf.length=8;this.Vi=4;var d=this.Kf;d[0]=g.left-a;d[1]=g.top-r;d[2]=g.right-a;d[3]=g.top-r;d[4]=g.right-a;d[5]=g.bottom-r;d[6]=g.left-a;d[7]=g.bottom-r;this.Pj=g.right-g.left;this.Oj=g.bottom-g.top;this.Wa()};a.prototype.Pq=function(g,a,r){if(this.Pj!==g||this.Oj!==a||this.Lm!==r){this.Pj=g;this.Oj=a;this.Lm=r;var d,b,c,w,n,u=0,m=1,e=this.Jo,F=this.Kf;0!==r&&(u=Math.sin(r),m=Math.cos(r));
r=0;for(c=this.Vi;r<c;r++)d=2*r,b=d+1,w=e[d]*g,n=e[b]*a,F[d]=w*m-n*u,F[b]=n*m+w*u;this.Wa()}};a.prototype.Hb=function(g,a){var r=this.Kf;if(g===r[0]&&a===r[1])return!0;var d,b,c,w=this.Vi,n=this.Em-110,u=this.Gm-101,m=this.Fm+131,e=this.Dm+120,F,K,h=0,E=0;for(d=0;d<w;d++)b=2*d,c=(d+1)%w*2,F=r[b],b=r[b+1],K=r[c],c=r[c+1],ra(n,u,g,a,F,b,K,c)&&h++,ra(m,e,g,a,F,b,K,c)&&E++;return 1===h%2||1===E%2};$a=a;b.prototype.Yd=function(g,a,r){var d;d=this.cells[g];return d?(d=d[a])?d:r?(d=h(this,g,a),this.cells[g][a]=
d):null:r?(d=h(this,g,a),this.cells[g]={},this.cells[g][a]=d):null};b.prototype.Pb=function(g){return T(g/this.Sj)};b.prototype.Qb=function(g){return T(g/this.Rj)};b.prototype.update=function(g,a,r){var d,b,c,w,n;if(a)for(d=a.left,b=a.right;d<=b;++d)for(c=a.top,w=a.bottom;c<=w;++c)if(!r||!r.Hb(d,c))if(n=this.Yd(d,c,!1))n.remove(g),n.ud()&&(n.Ta.clear(),1E3>A.length&&A.push(n),this.cells[d][c]=null);if(r)for(d=r.left,b=r.right;d<=b;++d)for(c=r.top,w=r.bottom;c<=w;++c)a&&a.Hb(d,c)||this.Yd(d,c,!0).Mk(g)};
b.prototype.Lo=function(g,a){var r,d,b,c,w,n;r=this.Pb(g.left);b=this.Qb(g.top);d=this.Pb(g.right);for(w=this.Qb(g.bottom);r<=d;++r)for(c=b;c<=w;++c)(n=this.Yd(r,c,!1))&&n.dump(a)};ab=b;e.prototype.Yd=function(g,a,r){var d;d=this.cells[g];return d?(d=d[a])?d:r?(d=n(this,g,a),this.cells[g][a]=d):null:r?(d=n(this,g,a),this.cells[g]={},this.cells[g][a]=d):null};e.prototype.Pb=function(g){return T(g/this.Sj)};e.prototype.Qb=function(g){return T(g/this.Rj)};e.prototype.update=function(g,a,r){var d,b,c,
w,n;if(a)for(d=a.left,b=a.right;d<=b;++d)for(c=a.top,w=a.bottom;c<=w;++c)if(!r||!r.Hb(d,c))if(n=this.Yd(d,c,!1))n.remove(g),n.ud()&&(n.reset(),1E3>v.length&&v.push(n),this.cells[d][c]=null);if(r)for(d=r.left,b=r.right;d<=b;++d)for(c=r.top,w=r.bottom;c<=w;++c)a&&a.Hb(d,c)||this.Yd(d,c,!0).Mk(g)};e.prototype.Lo=function(g,a,r,d,b){var c,w;g=this.Pb(g);a=this.Qb(a);r=this.Pb(r);for(c=this.Qb(d);g<=r;++g)for(d=a;d<=c;++d)(w=this.Yd(g,d,!1))&&w.dump(b)};e.prototype.Ys=function(g){var a,r,d,b,c;a=g.left;
d=g.top;r=g.right;for(b=g.bottom;a<=r;++a)for(g=d;g<=b;++g)if(c=this.Yd(a,g,!1))c.tf=!1};bb=e;var A=[];d.prototype.ud=function(){return this.Ta.ud()};d.prototype.Mk=function(g){this.Ta.add(g)};d.prototype.remove=function(g){this.Ta.remove(g)};d.prototype.dump=function(g){ya(g,this.Ta.Mc())};aa=d;var v=[];s.prototype.ud=function(){if(!this.Ta.length)return!0;if(this.Ta.length>this.Yc.count())return!1;this.mk();return!0};s.prototype.Mk=function(g){this.Yc.contains(g)?(this.Yc.remove(g),this.Yc.ud()&&
(this.bg=!1)):this.Ta.length?(this.Ta[this.Ta.length-1].nc()>g.nc()&&(this.tf=!1),this.Ta.push(g)):(this.Ta.push(g),this.tf=!0)};s.prototype.remove=function(g){this.Yc.add(g);this.bg=!0;30<=this.Yc.count()&&this.mk()};s.prototype.mk=function(){this.bg&&(this.Yc.count()===this.Ta.length?this.reset():(Va(this.Ta,this.Yc),this.Yc.clear(),this.bg=!1))};s.prototype.ur=function(){this.tf||(this.Ta.sort(m),this.tf=!0)};s.prototype.reset=function(){this.Ta.length=0;this.tf=!0;this.Yc.clear();this.bg=!1};
s.prototype.dump=function(g){this.mk();this.ur();this.Ta.length&&g.push(this.Ta)};ea=s;var z="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");cb=function(g){return 0>=g||11<=g?"source-over":z[g-1]};db=function(g,a,r){if(r)switch(g.gb=r.ONE,g.eb=r.ONE_MINUS_SRC_ALPHA,a){case 1:g.gb=r.ONE;g.eb=r.ONE;break;case 3:g.gb=r.ONE;g.eb=r.ZERO;break;case 4:g.gb=r.ONE_MINUS_DST_ALPHA;g.eb=r.ONE;break;case 5:g.gb=r.DST_ALPHA;g.eb=r.ZERO;
break;case 6:g.gb=r.ZERO;g.eb=r.SRC_ALPHA;break;case 7:g.gb=r.ONE_MINUS_DST_ALPHA;g.eb=r.ZERO;break;case 8:g.gb=r.ZERO;g.eb=r.ONE_MINUS_SRC_ALPHA;break;case 9:g.gb=r.DST_ALPHA;g.eb=r.ONE_MINUS_SRC_ALPHA;break;case 10:g.gb=r.ONE_MINUS_DST_ALPHA,g.eb=r.SRC_ALPHA}};eb=function(g){return Math.round(1E6*g)/1E6};fb=function(g,a){return"string"!==typeof g||"string"!==typeof a||g.length!==a.length?!1:g===a?!0:g.toLowerCase()===a.toLowerCase()};gb=function(g){g=g.target;return!g||g===document||g===window||
document&&document.body&&g===document.body||fb(g.tagName,"canvas")?!0:!1}})();var Zb="undefined"!==typeof Float32Array?Float32Array:Array;function $b(k){var p=new Zb(3);k&&(p[0]=k[0],p[1]=k[1],p[2]=k[2]);return p}function ac(k){var p=new Zb(16);k&&(p[0]=k[0],p[1]=k[1],p[2]=k[2],p[3]=k[3],p[4]=k[4],p[5]=k[5],p[6]=k[6],p[7]=k[7],p[8]=k[8],p[9]=k[9],p[10]=k[10],p[11]=k[11],p[12]=k[12],p[13]=k[13],p[14]=k[14],p[15]=k[15]);return p}
function bc(k,p){p[0]=k[0];p[1]=k[1];p[2]=k[2];p[3]=k[3];p[4]=k[4];p[5]=k[5];p[6]=k[6];p[7]=k[7];p[8]=k[8];p[9]=k[9];p[10]=k[10];p[11]=k[11];p[12]=k[12];p[13]=k[13];p[14]=k[14];p[15]=k[15]}function cc(k,p){var f=p[0],q=p[1];p=p[2];k[0]*=f;k[1]*=f;k[2]*=f;k[3]*=f;k[4]*=q;k[5]*=q;k[6]*=q;k[7]*=q;k[8]*=p;k[9]*=p;k[10]*=p;k[11]*=p}
function dc(k,p,f,q){q||(q=ac());var l,c,a,b,e,h,d,n,s=k[0],m=k[1];k=k[2];c=f[0];a=f[1];l=f[2];f=p[1];h=p[2];s===p[0]&&m===f&&k===h?(k=q,k[0]=1,k[1]=0,k[2]=0,k[3]=0,k[4]=0,k[5]=1,k[6]=0,k[7]=0,k[8]=0,k[9]=0,k[10]=1,k[11]=0,k[12]=0,k[13]=0,k[14]=0,k[15]=1):(f=s-p[0],h=m-p[1],d=k-p[2],n=1/Math.sqrt(f*f+h*h+d*d),f*=n,h*=n,d*=n,p=a*d-l*h,l=l*f-c*d,c=c*h-a*f,(n=Math.sqrt(p*p+l*l+c*c))?(n=1/n,p*=n,l*=n,c*=n):c=l=p=0,a=h*c-d*l,b=d*p-f*c,e=f*l-h*p,(n=Math.sqrt(a*a+b*b+e*e))?(n=1/n,a*=n,b*=n,e*=n):e=b=a=0,
q[0]=p,q[1]=a,q[2]=f,q[3]=0,q[4]=l,q[5]=b,q[6]=h,q[7]=0,q[8]=c,q[9]=e,q[10]=d,q[11]=0,q[12]=-(p*s+l*m+c*k),q[13]=-(a*s+b*m+e*k),q[14]=-(f*s+h*m+d*k),q[15]=1)}
(function(){function k(c){this.He=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Mm=$b([0,0,100]);this.Qn=$b([0,0,0]);this.qp=$b([0,1,0]);this.fm=$b([1,1,1]);this.Um=!0;this.dl=ac();this.tc=ac();this.En=ac();this.$j=ac();this.k=c;this.qn()}function p(c,a,b){this.k=c;this.sh=a;this.name=b;this.rc=c.getAttribLocation(a,"aPos");this.de=c.getAttribLocation(a,"aTex");this.On=c.getUniformLocation(a,"matP");this.Bi=c.getUniformLocation(a,"matMV");this.zf=
c.getUniformLocation(a,"opacity");this.Pn=c.getUniformLocation(a,"samplerFront");this.Sg=c.getUniformLocation(a,"samplerBack");this.Qe=c.getUniformLocation(a,"destStart");this.Pe=c.getUniformLocation(a,"destEnd");this.al=c.getUniformLocation(a,"seconds");this.$k=c.getUniformLocation(a,"pixelWidth");this.Zk=c.getUniformLocation(a,"pixelHeight");this.Rg=c.getUniformLocation(a,"layerScale");this.Qg=c.getUniformLocation(a,"layerAngle");this.Ug=c.getUniformLocation(a,"viewOrigin");this.Tg=c.getUniformLocation(a,
"scrollPos");this.Gs=!!(this.$k||this.Zk||this.al||this.Sg||this.Qe||this.Pe||this.Rg||this.Qg||this.Ug||this.Tg);this.Yn=this.Zn=-999;this.Di=1;this.Un=this.Tn=0;this.Wn=this.Sn=this.Rn=1;this.ao=this.$n=this.co=this.bo=this.Vn=0;this.Wk=[];this.Xn=ac();this.zf&&c.uniform1f(this.zf,1);this.Pn&&c.uniform1i(this.Pn,0);this.Sg&&c.uniform1i(this.Sg,1);this.Qe&&c.uniform2f(this.Qe,0,0);this.Pe&&c.uniform2f(this.Pe,1,1);this.Rg&&c.uniform1f(this.Rg,1);this.Qg&&c.uniform1f(this.Qg,0);this.Ug&&c.uniform2f(this.Ug,
0,0);this.Tg&&c.uniform2f(this.Tg,0,0);this.De=!1}function f(c,a){this.type=c;this.n=a;this.k=a.k;this.oc=this.$b=this.so=0;this.aa=this.Kc=null;this.Xo=[]}k.prototype.qn=function(){var c=this.k,a;this.Fn=1;this.Me=this.Le=null;this.Mh=1;c.clearColor(0,0,0,0);c.clear(c.COLOR_BUFFER_BIT);c.enable(c.BLEND);c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA);c.disable(c.CULL_FACE);c.disable(c.DEPTH_TEST);this.Hn=c.ONE;this.Cn=c.ONE_MINUS_SRC_ALPHA;this.tl=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,this.tl);this.Bh=
Array(4);this.wh=Array(4);for(a=0;4>a;a++)this.Bh[a]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Bh[a]),this.wh[a]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.wh[a]);this.ld=0;this.Js=c.createBuffer();c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.Js);this.$l=new Float32Array(16E3);this.Ol=new Float32Array(16E3);this.Fo=new Float32Array(32E3);for(var b=new Uint16Array(12E3),e=a=0;12E3>a;)b[a++]=e,b[a++]=e+1,b[a++]=e+2,b[a++]=e,b[a++]=e+2,b[a++]=e+3,e+=4;c.bufferData(c.ELEMENT_ARRAY_BUFFER,b,
c.STATIC_DRAW);this.If=this.dd=0;this.Na=[];a=this.Zj({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}","<default>");
this.Na.push(a);a=this.Zj({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"},"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","<point>");this.Na.push(a);for(var h in ec)ec.hasOwnProperty(h)&&this.Na.push(this.Zj(ec[h],
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}",h));c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,null);this.jd=[];this.Pc=0;this.Ib=this.sb=!1;this.Qm=this.Gg=-1;this.lg=null;this.Yr=c.createFramebuffer();this.No=null;this.le=$b([0,0,0]);c=c.getParameter(c.ALIASED_POINT_SIZE_RANGE);this.bt=c[0];this.el=
c[1];2048<this.el&&(this.el=2048);this.ad(0)};p.prototype.Wl=function(c){var a=this.Xn;if(a[0]!==c[0]||a[1]!==c[1]||a[2]!==c[2]||a[3]!==c[3]||a[4]!==c[4]||a[5]!==c[5]||a[6]!==c[6]||a[7]!==c[7]||a[8]!==c[8]||a[9]!==c[9]||a[10]!==c[10]||a[11]!==c[11]||a[12]!==c[12]||a[13]!==c[13]||a[14]!==c[14]||a[15]!==c[15])bc(c,this.Xn),this.k.uniformMatrix4fv(this.Bi,!1,c)};k.prototype.Zj=function(c,a,b){var e=this.k,h=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(h,c.src);e.compileShader(h);if(!e.getShaderParameter(h,
e.COMPILE_STATUS))return e.deleteShader(h),null;var d=e.createShader(e.VERTEX_SHADER);e.shaderSource(d,a);e.compileShader(d);if(!e.getShaderParameter(d,e.COMPILE_STATUS))return e.deleteShader(h),e.deleteShader(d),null;a=e.createProgram();e.attachShader(a,h);e.attachShader(a,d);e.linkProgram(a);if(!e.getProgramParameter(a,e.LINK_STATUS))return e.deleteShader(h),e.deleteShader(d),e.deleteProgram(a),null;e.useProgram(a);e.deleteShader(h);e.deleteShader(d);b=new p(e,a,b);b.ik=c.ik||0;b.jk=c.jk||0;b.Pm=
!!c.Pm;b.zm=!!c.zm;b.L=c.L||[];c=0;for(h=b.L.length;c<h;c++)b.L[c][1]=e.getUniformLocation(a,b.L[c][0]),b.Wk.push(0),e.uniform1f(b.L[c][1],0);return b};k.prototype.zk=function(c){var a,b;a=0;for(b=this.Na.length;a<b;a++)if(this.Na[a].name===c)return a;return-1};k.prototype.Io=function(c,a,b){var e=this.tc,h=this.dl,d=[0,0,0,0,0,0,0,0];d[0]=e[0]*c+e[4]*a+e[12];d[1]=e[1]*c+e[5]*a+e[13];d[2]=e[2]*c+e[6]*a+e[14];d[3]=e[3]*c+e[7]*a+e[15];d[4]=h[0]*d[0]+h[4]*d[1]+h[8]*d[2]+h[12]*d[3];d[5]=h[1]*d[0]+h[5]*
d[1]+h[9]*d[2]+h[13]*d[3];d[6]=h[2]*d[0]+h[6]*d[1]+h[10]*d[2]+h[14]*d[3];d[7]=-d[2];0!==d[7]&&(d[7]=1/d[7],d[4]*=d[7],d[5]*=d[7],d[6]*=d[7],b[0]=(.5*d[4]+.5)*this.width,b[1]=(.5*d[5]+.5)*this.height)};k.prototype.Of=function(c,a,b){if(this.width!==c||this.height!==a||b){this.Wd();this.width=c;this.height=a;this.k.viewport(0,0,c,a);a=c/a;var e=this.dl,h;h=1*Math.tan(45*Math.PI/360);a*=h;c=-a;b=-h;e||(e=ac());var d=a-c,n=h-b;e[0]=2/d;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=2/n;e[6]=0;e[7]=0;e[8]=(a+c)/d;e[9]=
(h+b)/n;e[10]=-1001/999;e[11]=-1;e[12]=0;e[13]=0;e[14]=-2E3/999;e[15]=0;dc(this.Mm,this.Qn,this.qp,this.tc);c=[0,0];a=[0,0];this.Io(0,0,c);this.Io(1,1,a);this.fm[0]=1/(a[0]-c[0]);this.fm[1]=-1/(a[1]-c[1]);c=0;for(a=this.Na.length;c<a;c++)b=this.Na[c],b.De=!1,b.On&&(this.k.useProgram(b.sh),this.k.uniformMatrix4fv(b.On,!1,this.dl));this.k.useProgram(this.Na[this.Gg].sh);this.k.bindTexture(this.k.TEXTURE_2D,null);this.k.activeTexture(this.k.TEXTURE1);this.k.bindTexture(this.k.TEXTURE_2D,null);this.k.activeTexture(this.k.TEXTURE0);
this.Me=this.Le=null}};k.prototype.ge=function(){dc(this.Mm,this.Qn,this.qp,this.tc);cc(this.tc,this.fm)};k.prototype.translate=function(c,a){if(0!==c||0!==a){this.le[0]=c;this.le[1]=a;this.le[2]=0;var b=this.tc,e=this.le,h=e[0],d=e[1],e=e[2];b[12]=b[0]*h+b[4]*d+b[8]*e+b[12];b[13]=b[1]*h+b[5]*d+b[9]*e+b[13];b[14]=b[2]*h+b[6]*d+b[10]*e+b[14];b[15]=b[3]*h+b[7]*d+b[11]*e+b[15]}};k.prototype.scale=function(c,a){if(1!==c||1!==a)this.le[0]=c,this.le[1]=a,this.le[2]=1,cc(this.tc,this.le)};k.prototype.Oo=
function(c){if(0!==c){var a=this.tc,b,e=Math.sin(c);c=Math.cos(c);var h=a[0],d=a[1],n=a[2],f=a[3],m=a[4],t=a[5],k=a[6],r=a[7];b?a!==b&&(b[8]=a[8],b[9]=a[9],b[10]=a[10],b[11]=a[11],b[12]=a[12],b[13]=a[13],b[14]=a[14],b[15]=a[15]):b=a;b[0]=h*c+m*e;b[1]=d*c+t*e;b[2]=n*c+k*e;b[3]=f*c+r*e;b[4]=h*-e+m*c;b[5]=d*-e+t*c;b[6]=n*-e+k*c;b[7]=f*-e+r*c}};k.prototype.ne=function(){for(var c=!1,a=0;16>a;a++)if(this.En[a]!==this.tc[a]){c=!0;break}c&&(c=this.wc(),c.type=5,c.aa?bc(this.tc,c.aa):c.aa=ac(this.tc),bc(this.tc,
this.En),this.Ib=this.sb=!1)};f.prototype.kr=function(){this.k.bindTexture(this.k.TEXTURE_2D,this.Kc)};f.prototype.lr=function(){var c=this.k;c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,this.Kc);c.activeTexture(c.TEXTURE0)};f.prototype.hr=function(){var c=this.so,a=this.n;a.Mh=c;a=a.lg;a.zf&&a.Di!==c&&(a.Di=c,this.k.uniform1f(a.zf,c))};f.prototype.dr=function(){this.k.drawElements(this.k.TRIANGLES,this.oc,this.k.UNSIGNED_SHORT,2*this.$b)};f.prototype.fr=function(){this.k.blendFunc(this.$b,
this.oc)};f.prototype.mr=function(){var c,a,b,e=this.n.Na,h=this.n.Qm;c=0;for(a=e.length;c<a;c++)b=e[c],c===h&&b.Bi?(b.Wl(this.aa),b.De=!0):b.De=!1;bc(this.aa,this.n.$j)};f.prototype.er=function(){var c=this.k,a=this.n;this.Kc?(a.Me===this.Kc&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,null),a.Me=null,c.activeTexture(c.TEXTURE0)),c.bindFramebuffer(c.FRAMEBUFFER,a.Yr),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,this.Kc,0)):(c.framebufferTexture2D(c.FRAMEBUFFER,
c.COLOR_ATTACHMENT0,c.TEXTURE_2D,null,0),c.bindFramebuffer(c.FRAMEBUFFER,null))};f.prototype.br=function(){var c=this.k;0===this.$b?(c.clearColor(this.aa[0],this.aa[1],this.aa[2],this.aa[3]),c.clear(c.COLOR_BUFFER_BIT)):(c.enable(c.SCISSOR_TEST),c.scissor(this.aa[0],this.aa[1],this.aa[2],this.aa[3]),c.clearColor(0,0,0,0),c.clear(this.k.COLOR_BUFFER_BIT),c.disable(c.SCISSOR_TEST))};f.prototype.cr=function(){var c=this.k,a=this.n,b=a.Na[1];c.useProgram(b.sh);!b.De&&b.Bi&&(b.Wl(a.$j),b.De=!0);c.enableVertexAttribArray(b.rc);
c.bindBuffer(c.ARRAY_BUFFER,a.tl);c.vertexAttribPointer(b.rc,4,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,this.$b/4,this.oc);b=a.lg;c.useProgram(b.sh);0<=b.rc&&(c.enableVertexAttribArray(b.rc),c.bindBuffer(c.ARRAY_BUFFER,a.Bh[a.ld]),c.vertexAttribPointer(b.rc,2,c.FLOAT,!1,0,0));0<=b.de&&(c.enableVertexAttribArray(b.de),c.bindBuffer(c.ARRAY_BUFFER,a.wh[a.ld]),c.vertexAttribPointer(b.de,2,c.FLOAT,!1,0,0))};f.prototype.ir=function(){var c=this.k,a=this.n,b=a.Na[this.$b];a.Qm=this.$b;a.lg=b;c.useProgram(b.sh);
!b.De&&b.Bi&&(b.Wl(a.$j),b.De=!0);b.zf&&b.Di!==a.Mh&&(b.Di=a.Mh,c.uniform1f(b.zf,a.Mh));0<=b.rc&&(c.enableVertexAttribArray(b.rc),c.bindBuffer(c.ARRAY_BUFFER,a.Bh[a.ld]),c.vertexAttribPointer(b.rc,2,c.FLOAT,!1,0,0));0<=b.de&&(c.enableVertexAttribArray(b.de),c.bindBuffer(c.ARRAY_BUFFER,a.wh[a.ld]),c.vertexAttribPointer(b.de,2,c.FLOAT,!1,0,0))};f.prototype.jr=function(){var c,a,b=this.n.lg,e=this.k;c=this.aa;b.Sg&&this.n.Me!==this.Kc&&(e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,this.Kc),
this.n.Me=this.Kc,e.activeTexture(e.TEXTURE0));var h=c[0];b.$k&&h!==b.Zn&&(b.Zn=h,e.uniform1f(b.$k,h));h=c[1];b.Zk&&h!==b.Yn&&(b.Yn=h,e.uniform1f(b.Zk,h));h=c[2];a=c[3];!b.Qe||h===b.Tn&&a===b.Un||(b.Tn=h,b.Un=a,e.uniform2f(b.Qe,h,a));h=c[4];a=c[5];!b.Pe||h===b.Rn&&a===b.Sn||(b.Rn=h,b.Sn=h,e.uniform2f(b.Pe,h,a));h=c[6];b.Rg&&h!==b.Wn&&(b.Wn=h,e.uniform1f(b.Rg,h));h=c[7];b.Qg&&h!==b.Vn&&(b.Vn=h,e.uniform1f(b.Qg,h));h=c[8];a=c[9];!b.Ug||h===b.bo&&a===b.co||(b.bo=h,b.co=a,e.uniform2f(b.Ug,h,a));h=c[10];
a=c[11];!b.Tg||h===b.$n&&a===b.ao||(b.$n=h,b.ao=a,e.uniform2f(b.Tg,h,a));b.al&&e.uniform1f(b.al,Ua()/1E3);if(b.L.length)for(c=0,a=b.L.length;c<a;c++)h=this.Xo[c],h!==b.Wk[c]&&(b.Wk[c]=h,e.uniform1f(b.L[c][1],h))};k.prototype.wc=function(){this.Pc===this.jd.length&&this.jd.push(new f(0,this));return this.jd[this.Pc++]};k.prototype.Wd=function(){if(0!==this.Pc&&!this.k.isContextLost()){var c=this.k;0<this.If&&(c.bindBuffer(c.ARRAY_BUFFER,this.tl),c.bufferData(c.ARRAY_BUFFER,this.Fo.subarray(0,this.If),
c.STREAM_DRAW),a&&0<=a.rc&&"<point>"===a.name&&c.vertexAttribPointer(a.rc,4,c.FLOAT,!1,0,0));if(0<this.dd){var a=this.lg;c.bindBuffer(c.ARRAY_BUFFER,this.Bh[this.ld]);c.bufferData(c.ARRAY_BUFFER,this.$l.subarray(0,this.dd),c.STREAM_DRAW);a&&0<=a.rc&&"<point>"!==a.name&&c.vertexAttribPointer(a.rc,2,c.FLOAT,!1,0,0);c.bindBuffer(c.ARRAY_BUFFER,this.wh[this.ld]);c.bufferData(c.ARRAY_BUFFER,this.Ol.subarray(0,this.dd),c.STREAM_DRAW);a&&0<=a.de&&"<point>"!==a.name&&c.vertexAttribPointer(a.de,2,c.FLOAT,
!1,0,0)}for(var b,c=0,a=this.Pc;c<a;c++)switch(b=this.jd[c],b.type){case 1:b.dr();break;case 2:b.kr();break;case 3:b.hr();break;case 4:b.fr();break;case 5:b.mr();break;case 6:b.er();break;case 7:b.br();break;case 8:b.cr();break;case 9:b.ir();break;case 10:b.jr();break;case 11:b.lr()}this.If=this.dd=this.Pc=0;this.Ib=this.sb=!1;this.ld++;4<=this.ld&&(this.ld=0)}};k.prototype.Ve=function(c){if(c!==this.Fn){var a=this.wc();a.type=3;this.Fn=a.so=c;this.Ib=this.sb=!1}};k.prototype.Nb=function(c){if(c!==
this.Le){var a=this.wc();a.type=2;this.Le=a.Kc=c;this.Ib=this.sb=!1}};k.prototype.he=function(c,a){if(c!==this.Hn||a!==this.Cn){var b=this.wc();b.type=4;b.$b=c;b.oc=a;this.Hn=c;this.Cn=a;this.Ib=this.sb=!1}};k.prototype.So=function(){this.he(this.k.ONE,this.k.ONE_MINUS_SRC_ALPHA)};k.prototype.lh=function(c,a,b,e,h,d,n,f){15992<=this.dd&&this.Wd();var m=this.dd,t=this.$l,k=this.Ol;if(this.sb)this.jd[this.Pc-1].oc+=6;else{var r=this.wc();r.type=1;r.$b=m/4*3;r.oc=6;this.sb=!0;this.Ib=!1}t[m]=c;k[m++]=
0;t[m]=a;k[m++]=0;t[m]=b;k[m++]=1;t[m]=e;k[m++]=0;t[m]=h;k[m++]=1;t[m]=d;k[m++]=1;t[m]=n;k[m++]=0;t[m]=f;k[m++]=1;this.dd=m};k.prototype.Dd=function(c,a,b,e,h,d,n,f,m){15992<=this.dd&&this.Wd();var t=this.dd,k=this.$l,r=this.Ol;if(this.sb)this.jd[this.Pc-1].oc+=6;else{var g=this.wc();g.type=1;g.$b=t/4*3;g.oc=6;this.sb=!0;this.Ib=!1}var g=m.left,w=m.top,F=m.right;m=m.bottom;k[t]=c;r[t++]=g;k[t]=a;r[t++]=w;k[t]=b;r[t++]=F;k[t]=e;r[t++]=w;k[t]=h;r[t++]=F;k[t]=d;r[t++]=m;k[t]=n;r[t++]=g;k[t]=f;r[t++]=
m;this.dd=t};k.prototype.wt=function(c,a,b,e){7996<=this.If&&this.Wd();var h=this.If,d=this.Fo;if(this.Ib)this.jd[this.Pc-1].oc++;else{var n=this.wc();n.type=8;n.$b=h;n.oc=1;this.Ib=!0;this.sb=!1}d[h++]=c;d[h++]=a;d[h++]=b;d[h++]=e;this.If=h};k.prototype.ad=function(c){if(this.Gg!==c){if(!this.Na[c]){if(0===this.Gg)return;c=0}var a=this.wc();a.type=9;this.Gg=a.$b=c;this.Ib=this.sb=!1}};k.prototype.jh=function(c){c=this.Na[c];return!(!c.Qe&&!c.Pe)};k.prototype.ul=function(c){c=this.Na[c];return!!(c.Qe||
c.Pe||c.Pm)};k.prototype.Dt=function(c){c=this.Na[c];return 0!==c.ik||0!==c.jk};k.prototype.os=function(c){return this.Na[c].ik};k.prototype.ps=function(c){return this.Na[c].jk};k.prototype.qs=function(c,a){return this.Na[c].L[a][2]};k.prototype.Ui=function(c){return this.Na[c].zm};k.prototype.Nf=function(c,a,b,e,h,d,n,f,m,k,p,r,g,w){var F=this.Na[this.Gg],u,E;if(F.Gs||w.length){u=this.wc();u.type=10;u.aa?bc(this.tc,u.aa):u.aa=ac();E=u.aa;E[0]=a;E[1]=b;E[2]=e;E[3]=h;E[4]=d;E[5]=n;E[6]=f;E[7]=m;E[8]=
k;E[9]=p;E[10]=r;E[11]=g;u.Kc=F.Sg?c:null;if(w.length)for(b=u.Xo,b.length=w.length,c=0,a=w.length;c<a;c++)b[c]=w[c];this.Ib=this.sb=!1}};k.prototype.clear=function(c,a,b,e){var h=this.wc();h.type=7;h.$b=0;h.aa||(h.aa=ac());h.aa[0]=c;h.aa[1]=a;h.aa[2]=b;h.aa[3]=e;this.Ib=this.sb=!1};k.prototype.clearRect=function(c,a,b,e){if(!(0>b||0>e)){var h=this.wc();h.type=7;h.$b=1;h.aa||(h.aa=ac());h.aa[0]=c;h.aa[1]=a;h.aa[2]=b;h.aa[3]=e;this.Ib=this.sb=!1}};k.prototype.Ct=function(){this.Wd();this.k.flush()};
var q=[],l={};k.prototype.Tq=function(){q.length=0;l={}};k.prototype.xf=function(c,a,b,e){a=!!a;b=!!b;var h=c.src+","+a+","+b+(a?",undefined":""),d=null;if("undefined"!==typeof c.src&&l.hasOwnProperty(h))return d=l[h],d.Eh++,d;this.Wd();var n=this.k,f=ha(c.width)&&ha(c.height),d=n.createTexture();n.bindTexture(n.TEXTURE_2D,d);n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var m=n.RGBA,k=n.RGBA,p=n.UNSIGNED_BYTE;if(e&&!this.He)switch(e){case 1:k=m=n.RGB;break;case 2:p=n.UNSIGNED_SHORT_4_4_4_4;
break;case 3:p=n.UNSIGNED_SHORT_5_5_5_1;break;case 4:k=m=n.RGB,p=n.UNSIGNED_SHORT_5_6_5}if(!f&&a){e=document.createElement("canvas");e.width=la(c.width);e.height=la(c.height);var r=e.getContext("2d");r.webkitImageSmoothingEnabled=b;r.mozImageSmoothingEnabled=b;r.msImageSmoothingEnabled=b;r.imageSmoothingEnabled=b;r.drawImage(c,0,0,c.width,c.height,0,0,e.width,e.height);n.texImage2D(n.TEXTURE_2D,0,m,k,p,e)}else n.texImage2D(n.TEXTURE_2D,0,m,k,p,c);a?(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.REPEAT),
n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.REPEAT)):(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE));b?(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),f&&this.Um?(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR_MIPMAP_LINEAR),n.generateMipmap(n.TEXTURE_2D)):n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR)):(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.NEAREST),n.texParameteri(n.TEXTURE_2D,
n.TEXTURE_MIN_FILTER,n.NEAREST));n.bindTexture(n.TEXTURE_2D,null);this.Le=null;d.gg=c.width;d.fg=c.height;d.Eh=1;d.Km=h;q.push(d);return l[h]=d};k.prototype.Ud=function(c,a,b){var e;this.Wd();var h=this.k;this.He&&(e=!1);var d=h.createTexture();h.bindTexture(h.TEXTURE_2D,d);h.texImage2D(h.TEXTURE_2D,0,h.RGBA,c,a,0,h.RGBA,e?h.UNSIGNED_SHORT_4_4_4_4:h.UNSIGNED_BYTE,null);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,
h.TEXTURE_MAG_FILTER,b?h.LINEAR:h.NEAREST);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,b?h.LINEAR:h.NEAREST);h.bindTexture(h.TEXTURE_2D,null);this.Le=null;d.gg=c;d.fg=a;q.push(d);return d};k.prototype.deleteTexture=function(c){c&&("undefined"!==typeof c.Eh&&1<c.Eh?c.Eh--:(this.Wd(),c===this.Le&&(this.k.bindTexture(this.k.TEXTURE_2D,null),this.Le=null),c===this.Me&&(this.k.activeTexture(this.k.TEXTURE1),this.k.bindTexture(this.k.TEXTURE_2D,null),this.k.activeTexture(this.k.TEXTURE0),this.Me=
null),Aa(q,c),"undefined"!==typeof c.Km&&delete l[c.Km],this.k.deleteTexture(c)))};k.prototype.$c=function(c){if(c!==this.No){var a=this.wc();a.type=6;this.No=a.Kc=c;this.Ib=this.sb=!1}};hb=k})();
(function(){function k(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function p(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function f(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var g=this;this.pc=(this.Bg=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||
"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2iscordova&&window.c2iscordova;this.Za=!!a.dc;this.of="undefined"!==typeof window.AppMobi||this.Za;this.Wb=!!window.c2cocoonjs;this.Ec=!!window.c2ejecta;this.Wb&&(CocoonJS.App.onSuspended.addEventListener(function(){g.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){g.setSuspended(!1)}));this.Ec&&(document.addEventListener("pagehide",function(){g.setSuspended(!0)}),document.addEventListener("pageshow",
function(){g.setSuspended(!1)}),document.addEventListener("resize",function(){g.setSize(window.innerWidth,window.innerHeight)}));this.P=this.Za||this.Wb||this.Ec;this.He=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.wn=/tizen/i.test(navigator.userAgent);this.ji=/android/i.test(navigator.userAgent)&&!this.wn&&!this.He;this.Uk=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.He;this.An=/ipad/i.test(navigator.userAgent);this.oi=this.Uk||this.An||this.Ec;this.Ts=this.Uk&&/os\s6/i.test(navigator.userAgent);this.Ag=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.He;this.Ok=/amazonwebappplatform/i.test(navigator.userAgent);this.Ms=/firefox/i.test(navigator.userAgent);this.vn=/safari/i.test(navigator.userAgent)&&!this.Ag&&!this.He;this.Ps=/windows/i.test(navigator.userAgent);this.ae="undefined"!==typeof window.c2nodewebkit||"undefined"!==
typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.yn=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Rs=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.qf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Sk=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.xn=this.yn||this.Rs||this.Sk;this.Ls=!("undefined"===typeof window.c2isBlackberry10||
!window.c2isBlackberry10);this.ki=this.ji&&!this.Ag&&!this.Bg&&!this.Ms&&!this.Ok&&!this.P;this.devicePixelRatio=1;this.wd=this.pc||this.Bg||this.of||this.Wb||this.ji||this.oi||this.qf||this.Sk||this.Ls||this.wn||this.Ec;this.wd||(this.wd=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.ae||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||
(this.ae=!0);this.canvas=a;this.Fh=document.getElementById("c2canvasdiv");this.ea=this.n=this.k=null;this.pk="";this.Wh=!1;this.qo=this.ro=0;this.canvas.oncontextmenu=function(g){g.preventDefault&&g.preventDefault();return!1};this.canvas.onselectstart=function(g){g.preventDefault&&g.preventDefault();return!1};this.Za&&(window.c2runtime=this);this.ae&&(window.ondragover=function(g){g.preventDefault();return!1},window.ondrop=function(g){g.preventDefault();return!1},require("nw.gui").App.clearCache());
this.ki&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.N=this.width;this.M=this.height;this.Kh=this.width;this.Jh=this.height;this.Ig=window.innerWidth;this.Hg=window.innerHeight;this.$r=!1;this.ha=!0;this.Dg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.m=[];this.Da=[];this.wf={};this.Kb=[];this.hk={};this.pd=[];this.$f=[];this.rj=[];this.Gj=[];this.Iq=[];this.ue={};this.Pk=
this.Zd=!1;this.vd=0;this.Rk=!1;this.Rc=[];this.xd=this.kb=this.Ng=this.Zi="";this.uh=this.$o=!1;this.Xj=this.Vg=this.Vd=this.xe=0;this.Uf=1;this.Xb=new Ya;this.ed=new Ya;this.Fi=this.Yh=this.Th=this.Tf=this.Oe=this.ok=this.si=0;this.kd=null;this.dk=[];this.gk=[];this.Sh=-1;this.bl=[[]];this.Tl=this.Ci=0;this.xl(null);this.lo=this.Yg=0;this.Yk=!0;this.ng=0;this.vh=[];this.Ql=this.yl=-1;this.Ke=!0;this.Ai=0;this.Cg=!1;this.Wt=0;this.df=null;this.Z=this.nf=!1;this.po=new ca;this.jl=new ca;this.kl=new ca;
this.Gt=[];new $a([]);new $a([]);this.Qd=[];this.di={};this.ff={};this.cf={};this.Zf={};this.Hm={};this.Nn=this.vi=this.Jb=this.Yb=this.Mn=this.ti=this.ba=null;this.Xf=this.Tk=!1;this.qk=[null,null];this.Be=0;this.lk="";this.Bd={};this.dj=this.yf=null;this.Ei=[];this.Ht()}}function q(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function l(a,g,d,b){var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=q;c.onerror=b;c.onsuccess=function(c){c=c.target.result;c.onerror=b;c.transaction(["saves"],
"readwrite").objectStore("saves").put({slot:a,data:g}).onsuccess=d}}function c(a,g,d){var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=q;b.onerror=d;b.onsuccess=function(b){b=b.target.result;b.onerror=d;var c=b.transaction(["saves"]).objectStore("saves").get(a);c.onsuccess=function(){c.result?g(c.result.data):g(null)}}}function a(){J("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location+=
"?continuous"}function b(a){var g,d={};for(g in a)!a.hasOwnProperty(g)||a[g]instanceof ca||a[g]&&"undefined"!==typeof a[g].qv||(d[g]=a[g]);return d}f.prototype.Ht=function(){var a=this,g;g=this.qf?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var d="data.js";if(this.yn||this.qf||this.Sk)d="data.json";g.open("GET",d,!0);var b=!1;if(!this.P&&"response"in g&&"responseType"in g)try{g.responseType="json",b="json"===g.responseType}catch(c){b=!1}if(!b&&"responseType"in g)try{g.responseType="text"}catch(n){}if("overrideMimeType"in
g)try{g.overrideMimeType("application/json; charset=utf-8")}catch(m){}this.qf?g.onreadystatechange=function(){4===g.readyState&&a.xi(JSON.parse(g.responseText))}:(g.onload=function(){if(b)a.xi(g.response);else if(a.Ec){var d=g.responseText,d=d.substr(d.indexOf("{"));a.xi(JSON.parse(d))}else a.xi(JSON.parse(g.responseText))},g.onerror=function(g){fa("Error requesting "+d+":");fa(g)});g.send()};f.prototype.Ks=function(){var a=this,g,d,b,c,n,m,e,h,f;this.devicePixelRatio=(this.Ie=(!this.P||this.Ec)&&
this.hu&&!this.ki)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.bb();d=!(!this.$r&&(!this.Ij||this.ae||this.xn||this.qf||this.Bg||this.pc||this.Ok));0<this.hb&&this.setSize(k(),p(),!0);try{this.sr&&(this.Wb||this.Ec||!this.P)&&(g={alpha:d,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.k=this.canvas.getContext("webgl",g)||this.canvas.getContext("experimental-webgl",g))}catch(s){}if(this.k){this.P||(this.$a=document.createElement("canvas"),
jQuery(this.$a).appendTo(this.canvas.parentNode),this.$a.oncontextmenu=function(){return!1},this.$a.onselectstart=function(){return!1},this.$a.width=this.Kh,this.$a.height=this.Jh,jQuery(this.$a).css({width:this.Kh+"px",height:this.Jh+"px"}),this.Ho(),this.sl=this.$a.getContext("2d"));this.n=new hb(this.k,this.wd);this.n.Of(this.canvas.width,this.canvas.height);this.n.Um=0!==this.nr;this.ea=null;this.canvas.addEventListener("webglcontextlost",function(g){g.preventDefault();a.et();J("[Construct 2] WebGL context lost");
window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.n.qn();a.n.Of(a.n.width,a.n.height,!0);a.Yb=null;a.Jb=null;a.qk[0]=null;a.qk[1]=null;a.gt();a.ha=!0;J("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);g=0;for(d=this.m.length;g<d;g++)for(n=this.m[g],b=0,c=n.H.length;b<c;b++)e=n.H[b],e.ab=this.n.zk(e.id),this.Xf=this.Xf||this.n.jh(e.ab);g=0;for(d=this.Kb.length;g<d;g++){h=this.Kb[g];b=0;for(c=h.H.length;b<c;b++)e=h.H[b],e.ab=this.n.zk(e.id);
b=0;for(c=h.K.length;b<c;b++)for(f=h.K[b],n=0,m=f.H.length;n<m;n++)e=f.H[n],e.ab=this.n.zk(e.id),this.Xf=this.Xf||this.n.jh(e.ab)}}else{if(0<this.hb&&this.Za){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ea=AppMobi.canvas.getContext("2d");try{this.ea.samplingMode=this.U?"smooth":"sharp",this.ea.globalScale=1,this.ea.HTML5CompatibilityMode=!0,this.ea.imageSmoothingEnabled=this.U}catch(t){}0!==this.width&&0!==this.height&&(this.ea.width=
this.width,this.ea.height=this.height)}this.ea||(g=this.Wb?{antialias:!!this.U,alpha:d}:{alpha:d},this.ea=this.canvas.getContext("2d",g),this.ea.webkitImageSmoothingEnabled=this.U,this.ea.mozImageSmoothingEnabled=this.U,this.ea.msImageSmoothingEnabled=this.U,this.ea.imageSmoothingEnabled=this.U);this.sl=this.$a=null}this.hp=function(g){a.Oa(!1,g)};window==window.top||this.P||this.xn||this.qf||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",
function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Wb&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(J("Reloading for continuous preview"),this.Ng="__c2_continuouspreview",this.uh=!0),this.tt&&!this.wd&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){a.setSuspended(!0)})));this.P||(g=function(g){if(gb(g)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&
document.activeElement.blur)try{document.activeElement.blur()}catch(a){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",g):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",g):document.addEventListener("touchstart",g),document.addEventListener("mousedown",g));0===this.hb&&this.Ie&&1<this.devicePixelRatio&&this.setSize(this.La,this.Ka,!0);this.mp();this.Ds();this.go();this.ua={}};f.prototype.setSize=function(a,g,d){var b=0,c=0,n=0,m=0,m=0,e=this.Ts&&
this.vn&&!navigator.standalone&&!this.P&&!this.pc;e&&(g+=60);if(this.Ig!==a||this.Hg!==g||d){this.Ig=a;this.Hg=g;var h=this.hb,f=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Cg)&&!this.pc;if(f||0!==this.hb||d)f&&0<this.Be&&(h=this.Be),d=this.devicePixelRatio,4<=h?(n=this.La/this.Ka,a/g>n?(n*=g,5===h?(m=n*d/this.La,1<m?m=Math.floor(m):1>m&&(m=1/Math.ceil(1/m)),n=this.La*m/d,m=this.Ka*m/d,b=(a-n)/2,c=(g-m)/2,a=n,g=m):(b=(a-n)/2,a=n)):
(m=a/n,5===h?(m=m*d/this.Ka,1<m?m=Math.floor(m):1>m&&(m=1/Math.ceil(1/m)),n=this.La*m/d,m=this.Ka*m/d,b=(a-n)/2,c=(g-m)/2,a=n):c=(g-m)/2,g=m),f&&!this.ae&&(c=b=0)):this.ae&&this.Cg&&0===this.$m&&(b=Math.floor((a-this.La)/2),c=Math.floor((g-this.Ka)/2),a=this.La,g=this.Ka),2>h&&(this.eg=d),this.Ie&&this.An&&1<d&&(1024<=a&&(a=1023),1024<=g&&(g=1023)),this.Kh=Math.round(a),this.Jh=Math.round(g),this.width=Math.round(a*d),this.height=Math.round(g*d),this.ha=!0,this.xp?(this.N=this.width,this.M=this.height,
this.lc=!0):this.width<this.La&&this.height<this.Ka||1===h?(this.N=this.width,this.M=this.height,this.lc=!0):(this.N=this.La,this.M=this.Ka,this.lc=!1,2===h?(n=this.La/this.Ka,h=this.Ig/this.Hg,h<n?this.N=this.M*h:h>n&&(this.M=this.N/h)):3===h&&(n=this.La/this.Ka,h=this.Ig/this.Hg,h>n?this.N=this.M*h:h<n&&(this.M=this.N/h))),this.Fh&&!this.P&&(jQuery(this.Fh).css({width:Math.round(a)+"px",height:Math.round(g)+"px","margin-left":Math.floor(b)+"px","margin-top":Math.floor(c)+"px"}),"undefined"!==typeof cr_is_preview&&
jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(g)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*d),this.canvas.height=Math.round(g*d),this.Ec?(this.canvas.style.left=Math.floor(b)+"px",this.canvas.style.top=Math.floor(c)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(g)+"px"):this.Ie&&!this.P&&jQuery(this.canvas).css({width:Math.round(a)+"px",height:Math.round(g)+"px"})),this.$a&&(this.$a.width=Math.round(a),this.$a.height=Math.round(g),
jQuery(this.$a).css({width:Math.round(a)+"px",height:Math.round(g)+"px"})),this.n&&this.n.Of(Math.round(a*d),Math.round(g*d)),this.Za&&this.ea&&(this.ea.width=Math.round(a),this.ea.height=Math.round(g)),this.ea&&(this.ea.webkitImageSmoothingEnabled=this.U,this.ea.mozImageSmoothingEnabled=this.U,this.ea.msImageSmoothingEnabled=this.U,this.ea.imageSmoothingEnabled=this.U),this.mp(),this.P||!e&&!this.Uk||window.setTimeout(function(){window.scrollTo(0,1)},100)}};f.prototype.mp=function(){if(this.Lq&&
0!==this.ql){var a="portrait";2===this.ql&&(a="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(a):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}};f.prototype.et=function(){this.n.Tq();this.Tk=!0;var a,g,d;a=0;for(g=this.m.length;a<g;a++)d=this.m[a],d.Gi&&d.Gi()};f.prototype.gt=function(){this.Tk=
!1;var a,g,d;a=0;for(g=this.m.length;a<g;a++)d=this.m[a],d.Hi&&d.Hi()};f.prototype.Ho=function(){if(!this.P){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Cg)&&!this.pc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.$a).css(a)}};var e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;
f.prototype.setSuspended=function(a){var g;if(a&&!this.Dg)for(J("[Construct 2] Suspending"),this.Dg=!0,-1!==this.yl&&e&&e(this.yl),-1!==this.Ql&&clearTimeout(this.Ql),a=0,g=this.vh.length;a<g;a++)this.vh[a](!0);else if(!a&&this.Dg){J("[Construct 2] Resuming");this.Dg=!1;this.si=Ua();this.Oe=Ua();a=this.Vg=this.Yh=0;for(g=this.vh.length;a<g;a++)this.vh[a](!1);this.Oa(!1)}};f.prototype.Gq=function(a){this.vh.push(a)};f.prototype.Nd=function(a){return this.Ei[a]};f.prototype.xi=function(a){a&&a.project||
fa("Project model unavailable");a=a.project;this.name=a[0];this.Zm=a[1];this.hb=a[12];this.$m=a[12];this.La=a[10];this.Ka=a[11];this.Ao=this.La/2;this.Bo=this.Ka/2;this.P&&!this.Ec&&(4<=a[12]||0===a[12])&&(J("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.$m=this.hb=3);this.Zl=a[18];this.Pg=a[19];0===this.Pg&&(this.yf=new Image,this.yf.src="loading-logo.png");this.Yg=a[21];this.Ei=fc();this.bd=new Y(this);var g,d,b,c,n,m,e,
h,f;g=0;for(d=a[2].length;g<d;g++)e=a[2][g],b=this.Nd(e[0]),ib(e,b.prototype),f=new b(this),f.bj=e[1],f.be=e[2],f.jo=e[9],f.ga&&f.ga(),this.plugins.push(f);this.Ei=fc();g=0;for(d=a[3].length;g<d;g++){e=a[3][g];n=this.Nd(e[1]);f=null;b=0;for(c=this.plugins.length;b<c;b++)if(this.plugins[b]instanceof n){f=this.plugins[b];break}var s=new f.Pa(f);s.name=e[0];s.B=e[2];s.Nk=e[3].slice(0);s.ju=e[3].length;s.Mq=e[4];s.bs=e[5];s.R=e[11];s.B?(s.fo=[],s.qd=this.ng++,s.pa=null):(s.fo=null,s.qd=-1,s.pa=[]);s.Uh=
null;s.jf=null;s.Vm=null;s.Fc=!1;s.Gb=null;e[6]?(s.kj=e[6][0],s.lj=e[6][1],s.xh=e[6][2]):(s.kj=null,s.lj=0,s.xh=0);s.Fb=e[7]?e[7]:null;s.index=g;s.c=[];s.Oh=[];s.je=[new jb(s)];s.od=0;s.Sc=null;s.Yq=0;s.Rf=!0;s.tj=kb;s.gs=lb;s.ms=mb;s.fa=nb;s.kh=ob;s.wl=pb;s.Jf=rb;s.$h=sb;s.sk=tb;s.wk=ub;s.hd=vb;s.en=wb;s.Nm=new ab(this.La,this.Ka);s.Am=!0;s.Bm=!1;s.ua={};s.toString=xb;s.Da=[];b=0;for(c=e[8].length;b<c;b++){h=e[8][b];var k=this.Nd(h[1]),t=null;n=0;for(m=this.Da.length;n<m;n++)if(this.Da[n]instanceof
k){t=this.Da[n];break}t||(t=new k(this),t.ko=[],t.Cf=new ca,t.ga&&t.ga(),this.Da.push(t));-1===t.ko.indexOf(s)&&t.ko.push(s);n=new t.Pa(t,s);n.name=h[0];n.R=h[2];n.ga();s.Da.push(n)}s.global=e[9];s.Qk=e[10];s.H=[];b=0;for(c=e[12].length;b<c;b++)s.H.push({id:e[12][b][0],name:e[12][b][1],ab:-1,Qa:!0,index:b});s.Cv=e[13];this.Zl&&!s.B&&!s.Qk&&f.be||s.ga();s.name&&(this.types[s.name]=s);this.m.push(s);f.bj&&(b=new f.qa(s),b.uid=this.Yg++,b.Ko=this.lo++,b.Fe=0,b.tg=yb,b.toString=zb,b.W=e[14],b.ga(),s.c.push(b),
this.Bd[b.uid.toString()]=b)}g=0;for(d=a[4].length;g<d;g++)for(n=a[4][g],m=this.m[n[0]],b=1,c=n.length;b<c;b++)e=this.m[n[b]],e.pa.push(m),m.fo.push(e);g=0;for(d=a[27].length;g<d;g++){n=a[27][g];m=[];b=0;for(c=n.length;b<c;b++)m.push(this.m[n[b]]);b=0;for(c=m.length;b<c;b++)m[b].Fc=!0,m[b].Gb=m}if(0<this.ng)for(g=0,d=this.m.length;g<d;g++)if(e=this.m[g],!e.B&&e.pa.length){e.Uh=Array(this.ng);e.jf=Array(this.ng);e.Vm=Array(this.ng);s=[];b=t=k=h=0;for(c=e.pa.length;b<c;b++)for(f=e.pa[b],e.Uh[f.qd]=
h,h+=f.ju,e.jf[f.qd]=k,k+=f.Mq,e.Vm[f.qd]=t,t+=f.bs,n=0,m=f.H.length;n<m;n++)s.push(ua({},f.H[n]));e.H=s.concat(e.H);b=0;for(c=e.H.length;b<c;b++)e.H[b].index=b}g=0;for(d=a[5].length;g<d;g++)e=a[5][g],b=new Ab(this,e),this.wf[b.name]=b,this.Kb.push(b);g=0;for(d=a[6].length;g<d;g++)e=a[6][g],b=new Bb(this,e),this.hk[b.name]=b,this.pd.push(b);g=0;for(d=this.pd.length;g<d;g++)this.pd[g].Ca();g=0;for(d=this.pd.length;g<d;g++)this.pd[g].Vl();g=0;for(d=this.rj.length;g<d;g++)this.rj[g].Ca();this.rj.length=
0;this.Jq=a[7];this.lk=a[8];this.Zc=a[9];this.eg=1;this.sr=a[13];this.U=a[14];this.Ij=a[15];this.hu=a[17];this.ql=a[20];this.Lq=0<this.ql;this.tt=a[22];this.lc=this.xp=a[23];this.nr=a[24];this.At=a[25];this.gj=Date.now();this.Ei.length=0;this.Ks()};var h=!1;f.prototype.cm=function(a,g){a.cocoonLazyLoad=!0;a.onerror=function(g){h=a.Jm=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",g)};this.Ec?a.src=g:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(g,function(g){a.src=
g},function(d){h=a.Jm=!0;console&&console.error&&console.error("Error extracting image '"+g+"' from expansion file: ",d)}):a.src=g);this.$f.push(a)};f.prototype.Zr=function(a){var g,d;g=0;for(d=this.$f.length;g<d;g++)if(this.$f[g].Uq===a)return this.$f[g];return null};var d=0,n=!1;f.prototype.Ds=function(){this.df&&(d=this.df.Tt(this.Jq))};f.prototype.Cm=function(){var a=d,g=0,b=0,c=!0,m,e,b=0;for(m=this.$f.length;b<m;b++){e=this.$f[b];var h=e.Yj;if(!h||0>=h)h=5E4;a+=h;e.src&&(e.complete||e.loaded)&&
!e.Jm?g+=h:c=!1}c&&this.At&&this.df&&(n||(this.df.Xt(),n=!0),b=this.df.ns(),g+=b,b<d&&(c=!1));this.Ue=0==a?0:g/a;return c};f.prototype.go=function(){if(this.ea||this.n){var a=this.ea||this.sl;this.$a&&this.Ho();this.Ue=0;this.Ln=-1;if(this.Cm())this.Es();else{var g=Date.now()-this.gj;if(a){var d=this.width,b=this.height,c=this.devicePixelRatio;this.$a&&(d=this.Kh,b=this.Jh,c=1);if(3!==this.Pg&&(this.Wb||500<=g&&this.Ln!=this.Ue)){a.clearRect(0,0,d,b);var g=d/2,b=b/2,d=0===this.Pg&&this.yf.complete,
n=40*c,m=0,e=80*c,f;d&&(e=this.yf.width*c,f=this.yf.height*c,n=e/2,m=f/2,a.drawImage(this.yf,T(g-n),T(b-m),e,f));1>=this.Pg?(g=T(g-n)+.5,b=T(b+(m+(d?12*c:0)))+.5,a.fillStyle=h?"red":"DodgerBlue",a.fillRect(g,b,Math.floor(e*this.Ue),6*c),a.strokeStyle="black",a.strokeRect(g,b,e,6*c),a.strokeStyle="white",a.strokeRect(g-1*c,b-1*c,e+2*c,8*c)):2===this.Pg&&(a.font=this.Ec?"12pt ArialMT":"12pt Arial",a.fillStyle=h?"#f00":"#999",a.Bv="middle",c=Math.round(100*this.Ue)+"%",d=a.measureText?a.measureText(c):
null,a.fillText(c,g-(d?d.width:0)/2,b))}this.Ln=this.Ue}setTimeout(function(g){return function(){g.go()}}(this),this.Wb?10:100)}}};f.prototype.Es=function(){this.$a&&(this.canvas.parentNode.removeChild(this.$a),this.$a=this.sl=null);this.gj=Date.now();this.Oe=Ua();var a,g,d;if(this.Zl)for(a=0,g=this.m.length;a<g;a++)d=this.m[a],d.B||d.Qk||!d.va.be||d.ga();else this.Ke=!1;a=0;for(g=this.Kb.length;a<g;a++)this.Kb[a].Vq();2<=this.hb&&(a=this.La/this.Ka,g=this.width/this.height,this.eg=2!==this.hb&&g>
a||2===this.hb&&g<a?this.height/this.Ka:this.width/this.La);this.Zm?this.wf[this.Zm].Ml():this.Kb[0].Ml();this.Zl||(this.Ai=1,this.trigger(Y.prototype.e.jm,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(g=this.m.length;a<g;a++)d=this.m[a],d.dt&&d.dt();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Oa(!1);this.Za&&AppMobi.webview.execute("onGameReady();")};var s=window.requestAnimationFrame||
window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;f.prototype.Oa=function(a,g,d){if(this.ba){var b=Ua();if(d||!this.Dg||a){a||(s?this.yl=s(this.hp):this.Ql=setTimeout(this.hp,this.wd?1:16));g=g||b;var c=this.hb;((d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.pc)||this.Cg)&&0<this.Be&&(c=this.Be);0<c&&(!this.oi||window.self!==window.top)&&(c=window.innerHeight,
this.Ig===window.innerWidth&&this.Hg===c||this.setSize(k(),p()));this.P||(d?(this.Wh||(this.pk=jQuery(this.canvas).css("margin")||"0",this.Wh=!0),this.Ag||this.ae||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.Wh?(this.Ag||this.ae||jQuery(this.canvas).css("margin",this.pk),this.pk="",this.Wh=!1,0===this.hb&&this.setSize(Math.round(this.ro/this.devicePixelRatio),
Math.round(this.qo/this.devicePixelRatio),!0)):(this.ro=this.width,this.qo=this.height));this.Ke&&(d=this.Cm(),this.Ai=this.Ue,d&&(this.Ke=!1,this.Ue=1,this.trigger(Y.prototype.e.jm,null)));this.Xs(g);!this.ha&&!this.Wb||this.Tk||this.uh||a||(this.ha=!1,this.n?this.qb():this.kc(),this.dj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.dj[0],this.dj[1]),this.trigger(Y.prototype.e.Xp,null)),this.dj=null));this.wv||(this.Tf++,this.Th++,this.Yh++);this.Vg+=Ua()-b}}};f.prototype.Xs=function(a){var g,
d,b,c,n,e,m,h;1E3<=a-this.Oe&&(this.Oe+=1E3,1E3<=a-this.Oe&&(this.Oe=a),this.ok=this.Yh,this.Yh=0,this.Xj=this.Vg,this.Vg=0);0!==this.si&&(g=a-this.si,0>g&&(g=0),this.Vd=g/1E3,.5<this.Vd?this.Vd=0:.1<this.Vd&&(this.Vd=.1));this.si=a;this.xe=this.Vd*this.Uf;this.Xb.add(this.xe);this.ed.add(this.Vd);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Cg)&&!this.pc;2<=this.hb||a&&0<this.Be?(g=this.La/this.Ka,d=this.width/this.height,b=this.hb,
a&&0<this.Be&&(b=this.Be),this.eg=2!==b&&d>g||2===b&&d<g?this.height/this.Ka:this.width/this.La,this.ba&&(this.ba.Qo(this.ba.scrollX),this.ba.Ro(this.ba.scrollY))):this.eg=this.Ie?this.devicePixelRatio:1;this.bb();this.vd++;this.bd.Kt();this.vd--;this.bb();this.vd++;d=this.po.Mc();a=0;for(g=d.length;a<g;a++)d[a].yv();a=0;for(g=this.m.length;a<g;a++)if(e=this.m[a],!e.B&&(e.Da.length||e.pa.length))for(d=0,b=e.c.length;d<b;d++)for(m=e.c[d],c=0,n=m.G.length;c<n;c++)m.G[c].Oa();a=0;for(g=this.m.length;a<
g;a++)if(e=this.m[a],!e.B&&(e.Da.length||e.pa.length))for(d=0,b=e.c.length;d<b;d++)for(m=e.c[d],c=0,n=m.G.length;c<n;c++)h=m.G[c],h.zt&&h.zt();d=this.jl.Mc();a=0;for(g=d.length;a<g;a++)d[a].Oa();this.vd--;this.Fs();for(a=0;this.kd&&10>a++;)this.Rm(this.kd);a=0;for(g=this.pd.length;a<g;a++)this.pd[a].Gk=!1;this.ba.ze&&this.ba.ze.Ma();this.Gt.length=0;this.Yk=!1;this.vd++;a=0;for(g=this.m.length;a<g;a++)if(e=this.m[a],!e.B&&(e.Da.length||e.pa.length))for(d=0,b=e.c.length;d<b;d++)for(m=e.c[d],c=0,n=
m.G.length;c<n;c++)h=m.G[c],h.Pl&&h.Pl();d=this.kl.Mc();a=0;for(g=d.length;a<g;a++)d[a].Pl();this.vd--};f.prototype.Rm=function(a){var g=this.ba;this.ba.Yt();var d,b,c,n,e,m,h;if(this.n)for(d=0,b=this.m.length;d<b;d++)e=this.m[d],e.B||!e.sj||e.global&&0!==e.c.length||-1!==a.yg.indexOf(e)||e.sj();g==a&&(this.bd.Cb.length=0);a.Ml();d=0;for(b=this.m.length;d<b;d++)if(e=this.m[d],e.global||e.va.bj)for(a=0,g=e.c.length;a<g;a++)if(m=e.c[a],m.pl&&m.pl(),m.G)for(c=0,n=m.G.length;c<n;c++)h=m.G[c],h.pl&&h.pl();
this.Yk=this.ha=!0;this.bb()};f.prototype.nj=function(a){this.jl.add(a)};f.prototype.Zt=function(a){this.kl.add(a)};f.prototype.uk=function(a){return a&&-1!==a.Xg?this.Vd*a.Xg:this.xe};f.prototype.kc=function(){this.ba.kc(this.ea);this.Za&&this.ea.present()};f.prototype.qb=function(){this.ba.qb(this.n);this.n.Ct()};f.prototype.Eq=function(a){a&&this.dk.push(a)};f.prototype.bi=function(a){a=a.toString();return this.Bd.hasOwnProperty(a)?this.Bd[a]:null};var m=[];f.prototype.Md=function(a){var g,d;g=
a.type.name;var b=null;if(this.ue.hasOwnProperty(g)){if(b=this.ue[g],b.contains(a))return}else b=m.length?m.pop():new ca,this.ue[g]=b;b.add(a);this.Zd=!0;if(a.Fc)for(g=0,d=a.siblings.length;g<d;g++)this.Md(a.siblings[g]);this.Pk&&b.Yf.push(a);this.vd++;this.trigger(Object.getPrototypeOf(a.type.va).e.$p,a);this.vd--};f.prototype.bb=function(){if(this.Zd){var a,g,d,b,c,n;this.Pk=!0;d=0;for(c=this.Rc.length;d<c;++d)for(a=this.Rc[d],g=a.type,g.c.push(a),b=0,n=g.pa.length;b<n;++b)g.pa[b].c.push(a),g.pa[b].Rf=
!0;this.Rc.length=0;this.Op();Ta(this.ue);this.Zd=this.Pk=!1}};f.prototype.Op=function(){for(var a in this.ue)this.ue.hasOwnProperty(a)&&this.Cp(this.ue[a])};f.prototype.Cp=function(a){var g=a.Mc(),d=g[0].type,b,c,n,e,h,f;Va(d.c,a);d.Rf=!0;0===d.c.length&&(d.Bm=!1);b=0;for(c=d.pa.length;b<c;++b)f=d.pa[b],Va(f.c,a),f.Rf=!0;b=0;for(c=this.bd.Cb.length;b<c;++b)if(h=this.bd.Cb[b],h.nb.hasOwnProperty(d.index)&&Va(h.nb[d.index].td,a),!d.B)for(n=0,e=d.pa.length;n<e;++n)f=d.pa[n],h.nb.hasOwnProperty(f.index)&&
Va(h.nb[f.index].td,a);if(h=g[0].d){if(h.Lc)for(n=h.c,b=0,c=n.length;b<c;++b)e=n[b],a.contains(e)&&(e.Wa(),h.Mb.update(e,e.xb,null),e.xb.set(0,0,-1,-1));Va(h.c,a);h.ph(0)}for(b=0;b<g.length;++b)this.Bp(g[b],d);a.clear();m.push(a);this.ha=!0};f.prototype.Bp=function(a,g){var d,b,c;d=0;for(b=this.dk.length;d<b;++d)this.dk[d](a);a.Td&&g.Nm.update(a,a.Td,null);(d=a.d)&&d.Lf(a,!0);if(a.G)for(d=0,b=a.G.length;d<b;++d)c=a.G[d],c.Ff&&c.Ff(),c.behavior.Cf.remove(a);this.po.remove(a);this.jl.remove(a);this.kl.remove(a);
a.Ff&&a.Ff();this.Bd.hasOwnProperty(a.uid.toString())&&delete this.Bd[a.uid.toString()];this.Fi--;100>g.Oh.length&&g.Oh.push(a)};var t=[];f.prototype.te=function(a,g,d,b,c,n){var e,m,h,f;if(!a)return null;var s=this.m[a[1]],k=s.va.be;if(this.Ke&&k&&!s.Qk||k&&!this.n&&11===a[0][11])return null;var p=g;k||(g=null);var l;s.Oh.length?(l=s.Oh.pop(),l.Ic=!0,s.va.qa.call(l,s)):(l=new s.va.qa(s),l.Ic=!1);l.uid=!d||n||this.Bd.hasOwnProperty(a[2].toString())?this.Yg++:a[2];this.Bd[l.uid.toString()]=l;l.Ko=
this.lo++;l.Fe=s.c.length;e=0;for(m=this.Rc.length;e<m;++e)this.Rc[e].type===s&&l.Fe++;l.tg=yb;l.toString=zb;h=a[3];if(l.Ic)Ta(l.ua);else{l.ua={};if("undefined"!==typeof cr_is_preview)for(l.tn=[],l.tn.length=h.length,e=0,m=h.length;e<m;e++)l.tn[e]=h[e][1];l.Ia=[];l.Ia.length=h.length}e=0;for(m=h.length;e<m;e++)l.Ia[e]=h[e][0];if(k){var y=a[0];l.x=ga(b)?y[0]:b;l.y=ga(c)?y[1]:c;l.z=y[2];l.width=y[3];l.height=y[4];l.depth=y[5];l.j=y[6];l.opacity=y[7];l.tb=y[8];l.ub=y[9];l.ob=y[10];e=y[11];!this.n&&s.H.length&&
(l.ob=e);l.ig=cb(l.ob);this.k&&db(l,l.ob,this.k);if(l.Ic){e=0;for(m=y[12].length;e<m;e++)for(h=0,f=y[12][e].length;h<f;h++)l.ta[e][h]=y[12][e][h];l.Xa.set(0,0,0,0);l.Td.set(0,0,-1,-1);l.xb.set(0,0,-1,-1);l.ef.qh(l.Xa);l.Mj.length=0}else{l.ta=y[12].slice(0);e=0;for(m=l.ta.length;e<m;e++)l.ta[e]=y[12][e].slice(0);l.X=[];l.Od=[];l.Od.length=s.H.length;l.Xa=new U(0,0,0,0);l.Td=new U(0,0,-1,-1);l.xb=new U(0,0,-1,-1);l.ef=new ta;l.Mj=[];l.xa=Cb;l.Hq=Db;l.Hb=Eb;l.Wa=Fb;l.gu=Gb;l.fu=Hb;l.nc=Ib}l.au=!1;l.cu=
0;l.bu=0;l.$t=null;14===y.length&&(l.au=!0,l.cu=y[13][0],l.bu=y[13][1],l.$t=y[13][2]);e=0;for(m=s.H.length;e<m;e++)l.Od[e]=!0;l.Kd=Jb;l.Kd();l.vp=!!l.X.length;l.Ch=!0;l.Qj=!0;s.Am=!0;l.visible=!0;l.Xg=-1;l.d=g;l.Nc=g.c.length;"undefined"===typeof l.Qc&&(l.Qc=null);this.ha=l.hg=!0}var q;e=t.length=0;for(m=s.pa.length;e<m;e++)t.push.apply(t,s.pa[e].Da);t.push.apply(t,s.Da);if(l.Ic)for(e=0,m=t.length;e<m;e++){var H=t[e];q=l.G[e];q.Ic=!0;H.behavior.qa.call(q,H,l);y=a[4][e];h=0;for(f=y.length;h<f;h++)q.W[h]=
y[h];q.ga();H.behavior.Cf.add(l)}else for(l.G=[],e=0,m=t.length;e<m;e++)H=t[e],q=new H.behavior.qa(H,l),q.Ic=!1,q.W=a[4][e].slice(0),q.ga(),l.G.push(q),H.behavior.Cf.add(l);y=a[5];if(l.Ic)for(e=0,m=y.length;e<m;e++)l.W[e]=y[e];else l.W=y.slice(0);this.Rc.push(l);this.Zd=!0;g&&(g.dg(l,!0),1!==g.uc||1!==g.vc)&&(s.Bm=!0);this.Fi++;if(s.Fc){if(l.Fc=!0,l.Ic?l.siblings.length=0:l.siblings=[],!d&&!n){e=0;for(m=s.Gb.length;e<m;e++)if(s.Gb[e]!==s){if(!s.Gb[e].Sc)return null;l.siblings.push(this.te(s.Gb[e].Sc,
p,!1,k?l.x:b,k?l.y:c,!0))}e=0;for(m=l.siblings.length;e<m;e++)for(l.siblings[e].siblings.push(l),h=0;h<m;h++)e!==h&&l.siblings[e].siblings.push(l.siblings[h])}}else l.Fc=!1,l.siblings=null;l.ga();e=0;for(m=l.G.length;e<m;e++)l.G[e].yt&&l.G[e].yt();return l};f.prototype.qg=function(a){var g,d;g=0;for(d=this.ba.K.length;g<d;g++){var b=this.ba.K[g];if(fb(b.name,a))return b}return null};f.prototype.sd=function(a){a=T(a);0>a&&(a=0);a>=this.ba.K.length&&(a=this.ba.K.length-1);return this.ba.K[a]};f.prototype.Vj=
function(a){var g,d;g=0;for(d=a.length;g<d;g++)a[g].fa().la=!0};f.prototype.kh=function(a){var g,d;g=0;for(d=a.length;g<d;g++)a[g].kh()};f.prototype.wl=function(a){var g,d;g=0;for(d=a.length;g<d;g++)a[g].wl()};f.prototype.Jf=function(a){var g,d;g=0;for(d=a.length;g<d;g++)a[g].Jf()};f.prototype.Sf=function(a,g,d,b){var c=a.fa(),e,n,m,h,s,f;if(c.la)for(b||(c.la=!1,c.c.length=0),e=0,h=a.c.length;e<h;e++){if(m=a.c[e],m.Wa(),s=m.d.na(g,d,!0),f=m.d.na(g,d,!1),m.Hb(s,f)){if(b)return!1;c.c.push(m)}}else{e=
n=0;for(h=c.c.length;e<h;e++)if(m=c.c[e],m.Wa(),s=m.d.na(g,d,!0),f=m.d.na(g,d,!1),m.Hb(s,f)){if(b)return!1;c.c[n]=c.c[e];n++}b||(c.c.length=n)}a.hd();return b?!0:c.Fk()};new ta;new U(0,0,0,0);f.prototype.np=function(a,g){if(!g)return!1;var d,b,c,e,n;d=0;for(b=a.Da.length;d<b;d++)if(a.Da[d].behavior instanceof g)return!0;if(!a.B)for(d=0,b=a.pa.length;d<b;d++)for(n=a.pa[d],c=0,e=n.Da.length;c<e;c++)if(n.Da[c].behavior instanceof g)return!0;return!1};f.prototype.op=function(a){return this.np(a,Yb.Lu)};
f.prototype.Ul=function(a){return this.np(a,Yb.Mu)};var y=-1;f.prototype.trigger=function(a,g,d){if(!this.ba)return!1;var b=this.ba.ze;if(!b)return!1;var c=!1,e,n,m;y++;var h=b.bk;n=0;for(m=h.length;n<m;++n)e=this.kp(a,g,h[n],d),c=c||e;e=this.kp(a,g,b,d);y--;return c||e};f.prototype.kp=function(a,g,d,b){var c=!1,e,n,m,h;if(g)for(m=this.Sl(a,g,g.type.name,d,b),c=c||m,h=g.type.pa,e=0,n=h.length;e<n;++e)m=this.Sl(a,g,h[e].name,d,b),c=c||m;else m=this.Sl(a,g,"system",d,b),c=c||m;return c};f.prototype.Sl=
function(a,g,d,b,c){var e,n=!1,m=!1,m="undefined"!==typeof c,h=(m?b.Xm:b.lp)[d];if(!h)return n;var s=null;b=0;for(e=h.length;b<e;++b)if(h[b].method==a){s=h[b].mg;break}if(!s)return n;a=m?s[c]:s;if(!a)return null;b=0;for(e=a.length;b<e;b++)c=a[b][0],m=a[b][1],m=this.Xr(g,d,c,m),n=n||m;return n};f.prototype.Xr=function(a,g,d,b){var c,e,n=!1;this.Tl++;var m=this.rb().Sb;m&&this.kh(m.ie);var h=1<this.Tl;this.kh(d.ie);h&&this.Et();var s=this.xl(d);s.Sb=d;a&&(c=this.types[g].fa(),c.la=!1,c.c.length=1,c.c[0]=
a,this.types[g].hd());a=!0;if(d.parent){g=s.fp;for(c=d.parent;c;)g.push(c),c=c.parent;g.reverse();c=0;for(e=g.length;c<e;c++)if(!g[c].Mt()){a=!1;break}}a&&(this.Th++,d.Wc?d.Lt(b):d.Ma(),n=n||s.Ne);this.Go();h&&this.xt();this.Jf(d.ie);m&&this.Jf(m.ie);this.Zd&&0===this.vd&&0===y&&!this.Rk&&this.bb();this.Tl--;return n};f.prototype.tk=function(){var a=this.rb();return a.Sb.cb[a.pb]};f.prototype.Et=function(){this.Ci++;this.Ci>=this.bl.length&&this.bl.push([])};f.prototype.xt=function(){this.Ci--};f.prototype.cn=
function(){return this.bl[this.Ci]};f.prototype.xl=function(a){this.Sh++;this.Sh>=this.gk.length&&this.gk.push(new Kb);var g=this.rb();g.reset(a);return g};f.prototype.Go=function(){this.Sh--};f.prototype.rb=function(){return this.gk[this.Sh]};f.prototype.dn=function(a,g){for(var d,b,c,e,n,m;g;){d=0;for(b=g.xc.length;d<b;d++)if(m=g.xc[d],m instanceof Lb&&fb(a,m.name))return m;g=g.parent}d=0;for(b=this.pd.length;d<b;d++)for(n=this.pd[d],c=0,e=n.Xd.length;c<e;c++)if(m=n.Xd[c],m instanceof Lb&&fb(a,
m.name))return m;return null};f.prototype.gn=function(a){var g,d;g=0;for(d=this.Kb.length;g<d;g++)if(this.Kb[g].R===a)return this.Kb[g];return null};f.prototype.ci=function(a){var g,d;g=0;for(d=this.m.length;g<d;g++)if(this.m[g].R===a)return this.m[g];return null};f.prototype.hs=function(a){var g,d;g=0;for(d=this.Qd.length;g<d;g++)if(this.Qd[g].R===a)return this.Qd[g];return null};f.prototype.Fs=function(){var d=this,g=this.Zi,b=this.xd,e=this.Ng,n=!1;this.$o&&(n=!0,g="__c2_continuouspreview",this.$o=
!1);if(g.length){this.bb();b=this.Qt();if(window.indexedDB&&!this.Wb)l(g,b,function(){J("Saved state to IndexedDB storage ("+b.length+" bytes)");d.xd=b;d.trigger(Y.prototype.e.Cj,null);d.xd="";n&&a()},function(c){try{localStorage.setItem("__c2save_"+g,b),J("Saved state to WebStorage ("+b.length+" bytes)"),d.xd=b,d.trigger(Y.prototype.e.Cj,null),d.xd="",n&&a()}catch(e){J("Failed to save game state: "+c+"; "+e)}});else try{localStorage.setItem("__c2save_"+g,b),J("Saved state to WebStorage ("+b.length+
" bytes)"),d.xd=b,this.trigger(Y.prototype.e.Cj,null),d.xd="",n&&a()}catch(m){J("Error saving to WebStorage: "+m)}this.kb=this.Ng=this.Zi=""}e.length&&(window.indexedDB&&!this.Wb?c(e,function(a){a?(d.kb=a,J("Loaded state from IndexedDB storage ("+d.kb.length+" bytes)")):(d.kb=localStorage.getItem("__c2save_"+e)||"",J("Loaded state from WebStorage ("+d.kb.length+" bytes)"));d.uh=!1;d.kb.length||d.trigger(Y.prototype.e.Aj,null)},function(){d.kb=localStorage.getItem("__c2save_"+e)||"";J("Loaded state from WebStorage ("+
d.kb.length+" bytes)");d.uh=!1;d.kb.length||d.trigger(Y.prototype.e.Aj,null)}):(this.kb=localStorage.getItem("__c2save_"+e)||"",J("Loaded state from WebStorage ("+this.kb.length+" bytes)"),this.uh=!1,d.kb.length||d.trigger(Y.prototype.e.Aj,null)),this.Zi=this.Ng="");this.kb.length&&(this.bb(),this.Ws(this.kb),this.xd=this.kb,this.trigger(Y.prototype.e.nq,null),this.kb=this.xd="")};f.prototype.Qt=function(){var a,g,d,c,e,n,m,h={c2save:!0,version:1,rt:{time:this.Xb.da,walltime:this.ed.da,timescale:this.Uf,
tickcount:this.Tf,execcount:this.Th,next_uid:this.Yg,running_layout:this.ba.R,start_time_offset:Date.now()-this.gj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(g=this.m.length;a<g;a++)if(e=this.m[a],!e.B&&!this.op(e)){n={instances:[]};Sa(e.ua)&&(n.ex=b(e.ua));d=0;for(c=e.c.length;d<c;d++)n.instances.push(this.Gl(e.c[d]));h.types[e.R.toString()]=n}a=0;for(g=this.Kb.length;a<g;a++)d=this.Kb[a],h.layouts[d.R.toString()]=d.zb();c=h.events.groups;a=0;for(g=this.Qd.length;a<
g;a++)d=this.Qd[a],c[d.R.toString()]=this.di[d.vg].ug;g=h.events.cnds;for(m in this.ff)this.ff.hasOwnProperty(m)&&(a=this.ff[m],Sa(a.ua)&&(g[m]={ex:b(a.ua)}));g=h.events.acts;for(m in this.cf)this.cf.hasOwnProperty(m)&&(a=this.cf[m],Sa(a.ua)&&(g[m]={ex:a.ua}));g=h.events.vars;for(m in this.Zf)this.Zf.hasOwnProperty(m)&&(a=this.Zf[m],a.li||a.parent&&!a.Fg||(g[m]=a.data));h.system=this.bd.zb();return JSON.stringify(h)};f.prototype.Mo=function(){var a,g,d,b,c,e;this.Bd={};a=0;for(g=this.m.length;a<g;a++)if(d=
this.m[a],!d.B)for(b=0,c=d.c.length;b<c;b++)e=d.c[b],this.Bd[e.uid.toString()]=e};f.prototype.Ws=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){var g=a.rt;this.Xb.reset();this.Xb.da=g.time;this.ed.reset();this.ed.da=g.walltime||0;this.Uf=g.timescale;this.Tf=g.tickcount;this.Th=g.execcount;this.gj=Date.now()-g.start_time_offset;var d=g.running_layout;if(d!==this.ba.R)if(d=this.gn(d))this.Rm(d);else return;var b,c,e,n,m,h,s;h=a.types;for(c in h)if(h.hasOwnProperty(c)&&(n=this.ci(parseInt(c,
10)))&&!n.B&&!this.op(n)){h[c].ex?n.ua=h[c].ex:Ta(n.ua);m=n.c;e=h[c].instances;d=0;for(b=na(m.length,e.length);d<b;d++)this.wi(m[d],e[d]);d=e.length;for(b=m.length;d<b;d++)this.Md(m[d]);d=m.length;for(b=e.length;d<b;d++){m=null;if(n.va.be&&(m=this.ba.ai(e[d].w.l),!m))continue;m=this.te(n.Sc,m,!1,0,0,!0);this.wi(m,e[d])}n.Rf=!0}this.bb();this.Mo();b=a.layouts;for(c in b)b.hasOwnProperty(c)&&(d=this.gn(parseInt(c,10)))&&d.Zb(b[c]);b=a.events.groups;for(c in b)b.hasOwnProperty(c)&&(d=this.hs(parseInt(c,
10)))&&this.di[d.vg]&&this.di[d.vg].To(b[c]);d=a.events.cnds;for(c in d)d.hasOwnProperty(c)&&this.ff.hasOwnProperty(c)&&(this.ff[c].ua=d[c].ex);d=a.events.acts;for(c in d)d.hasOwnProperty(c)&&this.cf.hasOwnProperty(c)&&(this.cf[c].ua=d[c].ex);d=a.events.vars;for(c in d)d.hasOwnProperty(c)&&this.Zf.hasOwnProperty(c)&&(this.Zf[c].data=d[c]);this.Yg=g.next_uid;this.bd.Zb(a.system);d=0;for(b=this.m.length;d<b;d++)if(n=this.m[d],!n.B)for(c=0,a=n.c.length;c<a;c++){m=n.c[c];if(n.Fc)for(h=m.tg(),g=m.siblings.length=
0,e=n.Gb.length;g<e;g++)s=n.Gb[g],n!==s&&m.siblings.push(s.c[h]);m.fd&&m.fd();if(m.G)for(g=0,e=m.G.length;g<e;g++)h=m.G[g],h.fd&&h.fd()}this.ha=!0}};f.prototype.Gl=function(a,d){var c,e,n,m,h;m=a.type;n=m.va;var s={};d?s.c2=!0:s.uid=a.uid;Sa(a.ua)&&(s.ex=b(a.ua));if(a.Ia&&a.Ia.length)for(s.ivs={},c=0,e=a.Ia.length;c<e;c++)s.ivs[a.type.Nk[c].toString()]=a.Ia[c];if(n.be){n={x:a.x,y:a.y,w:a.width,h:a.height,l:a.d.R,zi:a.nc()};0!==a.j&&(n.a=a.j);1!==a.opacity&&(n.o=a.opacity);.5!==a.tb&&(n.hX=a.tb);.5!==
a.ub&&(n.hY=a.ub);0!==a.ob&&(n.bm=a.ob);a.visible||(n.v=a.visible);a.hg||(n.ce=a.hg);-1!==a.Xg&&(n.mts=a.Xg);if(m.H.length)for(n.fx=[],c=0,e=m.H.length;c<e;c++)h=m.H[c],n.fx.push({name:h.name,active:a.Od[h.index],params:a.ta[h.index]});s.w=n}if(a.G&&a.G.length)for(s.behs={},c=0,e=a.G.length;c<e;c++)m=a.G[c],m.zb&&(s.behs[m.type.R.toString()]=m.zb());a.zb&&(s.data=a.zb());return s};f.prototype.ks=function(a,d){var b,c;b=0;for(c=a.Nk.length;b<c;b++)if(a.Nk[b]===d)return b;return-1};f.prototype.es=function(a,
d){var b,c;b=0;for(c=a.G.length;b<c;b++)if(a.G[b].type.R===d)return b;return-1};f.prototype.wi=function(a,d,b){var c,e,n,m,h;h=a.type;n=h.va;if(b){if(!d.c2)return}else a.uid=d.uid;d.ex?a.ua=d.ex:Ta(a.ua);if(e=d.ivs)for(c in e)e.hasOwnProperty(c)&&(b=this.ks(h,parseInt(c,10)),0>b||b>=a.Ia.length||(a.Ia[b]=e[c]));if(n.be){n=d.w;a.d.R!==n.l&&(b=a.d,a.d=this.ba.ai(n.l),a.d?(b.Lf(a,!0),a.d.dg(a,!0),a.xa(),a.d.ph(0)):(a.d=b,this.Md(a)));a.x=n.x;a.y=n.y;a.width=n.w;a.height=n.h;a.Nc=n.zi;a.j=n.hasOwnProperty("a")?
n.a:0;a.opacity=n.hasOwnProperty("o")?n.o:1;a.tb=n.hasOwnProperty("hX")?n.hX:.5;a.ub=n.hasOwnProperty("hY")?n.hY:.5;a.visible=n.hasOwnProperty("v")?n.v:!0;a.hg=n.hasOwnProperty("ce")?n.ce:!0;a.Xg=n.hasOwnProperty("mts")?n.mts:-1;a.ob=n.hasOwnProperty("bm")?n.bm:0;a.ig=cb(a.ob);this.k&&db(a,a.ob,this.k);a.xa();if(n.hasOwnProperty("fx"))for(b=0,e=n.fx.length;b<e;b++)m=h.wk(n.fx[b].name),0>m||(a.Od[m]=n.fx[b].active,a.ta[m]=n.fx[b].params);a.Kd()}if(h=d.behs)for(c in h)h.hasOwnProperty(c)&&(n=this.es(a,
parseInt(c,10)),0>n||a.G[n].Zb(h[c]));d.data&&a.Zb(d.data)};Mb=function(a){return new f(document.getElementById(a))};Nb=function(a,d){return new f({dc:!0,width:a,height:d})};window.cr_createRuntime=Mb;window.cr_createDCRuntime=Nb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Av=!0;document.body.appendChild(a);a=new f(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,
window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new f(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var k=document.getElementById("c2canvas");return k?k.c2runtime:window.c2runtime?window.c2runtime:null};
window.cr_sizeCanvas=function(k,p){if(0!==k&&0!==p){var f=window.cr_getC2Runtime();f&&f.setSize(k,p)}};window.cr_setSuspended=function(k){var p=window.cr_getC2Runtime();p&&p.setSuspended(k)};
(function(){function k(a,b){this.b=a;this.ze=null;this.scrollX=this.b.La/2;this.scrollY=this.b.Ka/2;this.scale=1;this.j=0;this.kf=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.pp=b[3];this.Yo=b[4];this.R=b[5];var c=b[6],e,h;this.K=[];this.yg=[];e=0;for(h=c.length;e<h;e++){var f=new Ob(this,c[e]);f.no=e;this.K.push(f)}c=b[7];this.Ge=[];e=0;for(h=c.length;e<h;e++){var f=c[e],l=this.b.m[f[1]];l.Sc||(l.Sc=f);this.Ge.push(f);-1===this.yg.indexOf(l)&&this.yg.push(l)}this.H=[];this.X=[];this.ta=
[];e=0;for(h=b[8].length;e<h;e++)this.H.push({id:b[8][e][0],name:b[8][e][1],ab:-1,Qa:!0,index:e}),this.ta.push(b[8][e][2].slice(0));this.Kd();this.mh=new U(0,0,1,1);this.zl=new U(0,0,1,1);this.ee={}}function p(a,b){return a.Nc-b.Nc}function f(a,b){this.Sa=a;this.b=a.b;this.c=[];this.scale=1;this.j=0;this.ve=!1;this.Id=new U(0,0,0,0);this.ip=new ta;this.Fa=this.za=this.Ga=this.ya=0;this.Ye=!1;this.Ld=-1;this.name=b[0];this.index=b[1];this.R=b[2];this.visible=b[3];this.Rd=b[4];this.Jd=b[5];this.uc=
b[6];this.vc=b[7];this.opacity=b[8];this.nk=b[9];this.Lc=b[10];this.Db=b[11];this.ob=b[12];this.rr=b[13];this.ig="source-over";this.eb=this.gb=0;this.Mb=null;this.vf=q();this.Ed=!0;this.ri=new U(0,0,-1,-1);this.ic=new U(0,0,-1,-1);this.Lc&&(this.Mb=new bb(this.b.La,this.b.Ka));this.fe=!1;var c=b[14],e,h;this.dp=[];this.Vb=[];this.jg=[];e=0;for(h=c.length;e<h;e++){var f=c[e],l=this.b.m[f[1]];l.Sc||(l.Sc=f,l.Yq=this.index);this.Vb.push(f);-1===this.Sa.yg.indexOf(l)&&this.Sa.yg.push(l)}xa(this.dp,this.Vb);
this.H=[];this.X=[];this.ta=[];e=0;for(h=b[15].length;e<h;e++)this.H.push({id:b[15][e][0],name:b[15][e][1],ab:-1,Qa:!0,index:e}),this.ta.push(b[15][e][2].slice(0));this.Kd();this.mh=new U(0,0,1,1);this.zl=new U(0,0,1,1)}function q(){return b.length?b.pop():[]}function l(a){a.length=0;b.push(a)}k.prototype.Pt=function(a){var b=a.type.R.toString();this.ee.hasOwnProperty(b)||(this.ee[b]=[]);this.ee[b].push(this.b.Gl(a))};k.prototype.ln=function(){var a=this.K[0];return!a.Jd&&1===a.opacity&&!a.nk&&a.visible};
k.prototype.Kd=function(){this.X.length=0;var a,b,c;a=0;for(b=this.H.length;a<b;a++)c=this.H[a],c.Qa&&this.X.push(c)};k.prototype.vk=function(a){var b,c,e;b=0;for(c=this.H.length;b<c;b++)if(e=this.H[b],e.name===a)return e;return null};var c=[],a=!0;k.prototype.Ml=function(){this.Yo&&(this.ze=this.b.hk[this.Yo],this.ze.Vl());this.b.ba=this;this.scrollX=this.b.La/2;this.scrollY=this.b.Ka/2;var d,b,e,m,h,f,l;d=0;for(e=this.b.m.length;d<e;d++)if(b=this.b.m[d],!b.B)for(h=b.c,b=0,m=h.length;b<m;b++)if(f=
h[b],f.d){var g=f.d.no;g>=this.K.length&&(g=this.K.length-1);f.d=this.K[g];-1===f.d.c.indexOf(f)&&f.d.c.push(f);f.d.Ye=!0}if(!a)for(d=0,e=this.K.length;d<e;++d)this.K[d].c.sort(p);c.length=0;this.Nq();d=0;for(e=this.K.length;d<e;d++)f=this.K[d],f.Wq(),f.Xl();h=!1;if(!this.kf){for(l in this.ee)if(this.ee.hasOwnProperty(l)&&(b=this.b.ci(parseInt(l,10)))&&!b.B&&this.b.Ul(b)){m=this.ee[l];d=0;for(e=m.length;d<e;d++){f=null;if(b.va.be&&(f=this.ai(m[d].w.l),!f))continue;f=this.b.te(b.Sc,f,!1,0,0,!0);this.b.wi(f,
m[d]);h=!0;c.push(f)}m.length=0}d=0;for(e=this.K.length;d<e;d++)this.K[d].c.sort(p),this.K[d].Ye=!0}h&&(this.b.bb(),this.b.Mo());for(d=0;d<c.length;d++)if(f=c[d],f.type.Fc)for(e=f.tg(),b=0,m=f.type.Gb.length;b<m;b++)l=f.type.Gb[b],f.type!==l&&(l.c.length>e?f.siblings.push(l.c[e]):l.Sc&&(h=this.b.te(l.Sc,f.d,!0,f.x,f.y,!0),this.b.bb(),l.tj(),f.siblings.push(h),c.push(h)));d=0;for(e=this.Ge.length;d<e;d++)this.b.te(this.Ge[d],null,!0);this.b.kd=null;this.b.bb();if(this.b.ea&&!this.b.P)for(d=0,e=this.b.m.length;d<
e;d++)l=this.b.m[d],!l.B&&l.c.length&&l.Ti&&l.Ti(this.b.ea);d=0;for(e=c.length;d<e;d++)f=c[d],this.b.trigger(Object.getPrototypeOf(f.type.va).e.Zp,f);c.length=0;this.b.trigger(Y.prototype.e.im,null);this.kf=!1};k.prototype.Vq=function(){var a,b,c,e,h;b=a=0;for(c=this.Ge.length;a<c;a++)e=this.Ge[a],h=this.b.m[e[1]],h.global?this.b.te(e,null,!0):(this.Ge[b]=e,b++);this.Ge.length=b};k.prototype.Yt=function(){this.b.trigger(Y.prototype.e.mq,null);this.b.bd.Cb.length=0;var d,b,c,e,h,f;if(!this.kf)for(d=
0,b=this.K.length;d<b;d++)for(this.K[d].Yl(),h=this.K[d].c,c=0,e=h.length;c<e;c++)f=h[c],f.type.global||this.b.Ul(f.type)&&this.Pt(f);d=0;for(b=this.K.length;d<b;d++){h=this.K[d].c;c=0;for(e=h.length;c<e;c++)f=h[c],f.type.global||this.b.Md(f);this.b.bb();h.length=0;this.K[d].Ye=!0}d=0;for(b=this.b.m.length;d<b;d++)if(h=this.b.m[d],!(h.global||h.va.be||h.va.bj||h.B)){c=0;for(e=h.c.length;c<e;c++)this.b.Md(h.c[c]);this.b.bb()}a=!1};new U(0,0,0,0);k.prototype.kc=function(a){var b,c=a,e=!1,h=!this.b.lc;
h&&(this.b.vi||(this.b.vi=document.createElement("canvas"),b=this.b.vi,b.width=this.b.N,b.height=this.b.M,this.b.Nn=b.getContext("2d"),e=!0),b=this.b.vi,c=this.b.Nn,b.width!==this.b.N&&(b.width=this.b.N,e=!0),b.height!==this.b.M&&(b.height=this.b.M,e=!0),e&&(c.webkitImageSmoothingEnabled=this.b.U,c.mozImageSmoothingEnabled=this.b.U,c.msImageSmoothingEnabled=this.b.U,c.imageSmoothingEnabled=this.b.U));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.Ij&&!this.ln()&&c.clearRect(0,0,this.b.N,
this.b.M);var f,l,e=0;for(f=this.K.length;e<f;e++)l=this.K[e],l.visible&&0<l.opacity&&11!==l.ob&&(l.c.length||!l.Jd)?l.kc(c):l.Xl();h&&a.drawImage(b,0,0,this.b.width,this.b.height)};k.prototype.qb=function(a){var b=0<this.X.length||this.b.Xf||!this.b.lc;if(b){this.b.Jb||(this.b.Jb=a.Ud(this.b.N,this.b.M,this.b.U));if(this.b.Jb.gg!==this.b.N||this.b.Jb.fg!==this.b.M)a.deleteTexture(this.b.Jb),this.b.Jb=a.Ud(this.b.N,this.b.M,this.b.U);a.$c(this.b.Jb);this.b.lc||a.Of(this.b.N,this.b.M)}else this.b.Jb&&
(a.$c(null),a.deleteTexture(this.b.Jb),this.b.Jb=null);this.b.Ij&&!this.ln()&&a.clear(0,0,0,0);var c,e,h;c=0;for(e=this.K.length;c<e;c++)h=this.K[c],h.visible&&0<h.opacity&&(h.c.length||!h.Jd)?h.qb(a):h.Xl();b&&(0===this.X.length||1===this.X.length&&this.b.lc?(1===this.X.length?(b=this.X[0].index,a.ad(this.X[0].ab),a.Nf(null,1/this.b.N,1/this.b.M,0,0,1,1,this.scale,this.j,0,0,this.b.N/2,this.b.M/2,this.ta[b]),a.Ui(this.X[0].ab)&&(this.b.ha=!0)):a.ad(0),this.b.lc||a.Of(this.b.width,this.b.height),
a.$c(null),a.Ve(1),a.Nb(this.b.Jb),a.So(),a.ge(),a.ne(),b=this.b.width/2,c=this.b.height/2,a.lh(-b,c,b,c,b,-c,-b,-c),a.Nb(null)):this.Al(a,null,null,null))};k.prototype.rg=function(){return 0<this.X.length||this.b.Xf||!this.b.lc?this.b.Jb:null};k.prototype.hn=function(){var a=this.K[0].Ub(),b,c,e;b=1;for(c=this.K.length;b<c;b++)e=this.K[b],(0!==e.uc||0!==e.vc)&&e.Ub()<a&&(a=e.Ub());return a};k.prototype.Qo=function(a){if(!this.pp){var b=1/this.hn()*this.b.N/2;a>this.width-b&&(a=this.width-b);a<b&&
(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ha=!0)};k.prototype.Ro=function(a){if(!this.pp){var b=1/this.hn()*this.b.M/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ha=!0)};k.prototype.Nq=function(){this.Qo(this.scrollX);this.Ro(this.scrollY)};k.prototype.Al=function(a,b,c,e){var h=c?c.X:b?b.X:this.X,f=1,l=0,g=0,w=0,k=this.b.N,u=this.b.M;c?(f=c.d.Ub(),l=c.d.Ra(),g=c.d.ya,w=c.d.za,k=c.d.Ga,u=c.d.Fa):b&&(f=b.Ub(),l=b.Ra(),g=b.ya,w=b.za,k=b.Ga,u=b.Fa);var p=
this.b.qk,q,A,v,z,M=0,ia=1,X,G=this.b.N,x=this.b.M,wa=G/2,H=x/2,Q=b?b.mh:this.mh,C=b?b.zl:this.zl,D=0,O=0,B=0,L=0,I=G,ja=G,N=x,pa=x,da=v=0,sa=c?c.d.Ra():0;if(c){q=0;for(A=h.length;q<A;q++)v+=a.os(h[q].ab),da+=a.ps(h[q].ab);z=c.Xa;D=b.ib(z.left,z.top,!0,!0);B=b.ib(z.left,z.top,!1,!0);I=b.ib(z.right,z.bottom,!0,!0);N=b.ib(z.right,z.bottom,!1,!0);0!==sa&&(q=b.ib(z.right,z.top,!0,!0),A=b.ib(z.right,z.top,!1,!0),O=b.ib(z.left,z.bottom,!0,!0),L=b.ib(z.left,z.bottom,!1,!0),z=Math.min(D,I,q,O),I=Math.max(D,
I,q,O),D=z,z=Math.min(B,N,A,L),N=Math.max(B,N,A,L),B=z);D-=v;B-=da;I+=v;N+=da;C.left=D/G;C.top=1-B/x;C.right=I/G;C.bottom=1-N/x;O=D=T(D);L=B=T(B);ja=I=qa(I);pa=N=qa(N);O-=v;L-=da;ja+=v;pa+=da;0>D&&(D=0);0>B&&(B=0);I>G&&(I=G);N>x&&(N=x);0>O&&(O=0);0>L&&(L=0);ja>G&&(ja=G);pa>x&&(pa=x);Q.left=D/G;Q.top=1-B/x;Q.right=I/G;Q.bottom=1-N/x}else Q.left=C.left=0,Q.top=C.top=0,Q.right=C.right=1,Q.bottom=C.bottom=1;da=c&&((c.j||sa)&&a.jh(h[0].ab)||0!==v||0!==da||1!==c.opacity||c.type.va.jo)||b&&!c&&1!==b.opacity;
a.So();if(da){p[M]||(p[M]=a.Ud(G,x,this.b.U));if(p[M].gg!==G||p[M].fg!==x)a.deleteTexture(p[M]),p[M]=a.Ud(G,x,this.b.U);a.ad(0);a.$c(p[M]);X=pa-L;a.clearRect(O,x-L-X,ja-O,X);c?c.qb(a):(a.Nb(this.b.Yb),a.Ve(b.opacity),a.ge(),a.translate(-wa,-H),a.ne(),a.Dd(D,N,I,N,I,B,D,B,Q));C.left=C.top=0;C.right=C.bottom=1;c&&(z=Q.top,Q.top=Q.bottom,Q.bottom=z);M=1;ia=0}a.Ve(1);v=h.length-1;var sa=a.ul(h[v].ab)||!b&&!c&&!this.b.lc,ba=0;q=0;for(A=h.length;q<A;q++){p[M]||(p[M]=a.Ud(G,x,this.b.U));if(p[M].gg!==G||
p[M].fg!==x)a.deleteTexture(p[M]),p[M]=a.Ud(G,x,this.b.U);a.ad(h[q].ab);ba=h[q].index;a.Ui(h[q].ab)&&(this.b.ha=!0);0!=q||da?(a.Nf(e,1/G,1/x,C.left,C.top,C.right,C.bottom,f,l,g,w,(g+k)/2,(w+u)/2,c?c.ta[ba]:b?b.ta[ba]:this.ta[ba]),a.Nb(null),q!==v||sa?(a.$c(p[M]),X=pa-L,z=x-L-X,a.clearRect(O,z,ja-O,X)):(c?a.he(c.gb,c.eb):b&&a.he(b.gb,b.eb),a.$c(e)),a.Nb(p[ia]),a.ge(),a.translate(-wa,-H),a.ne(),a.Dd(D,N,I,N,I,B,D,B,Q),q!==v||sa||a.Nb(null)):(a.$c(p[M]),X=pa-L,z=x-L-X,a.clearRect(O,z,ja-O,X),c?(a.Nf(e,
1/c.width,1/c.height,C.left,C.top,C.right,C.bottom,f,l,g,w,(g+k)/2,(w+u)/2,c.ta[ba]),c.qb(a)):(a.Nf(e,1/G,1/x,0,0,1,1,f,l,g,w,(g+k)/2,(w+u)/2,b?b.ta[ba]:this.ta[ba]),a.Nb(b?this.b.Yb:this.b.Jb),a.ge(),a.translate(-wa,-H),a.ne(),a.Dd(D,N,I,N,I,B,D,B,Q)),C.left=C.top=0,C.right=C.bottom=1,c&&!sa&&(z=N,N=B,B=z));M=0===M?1:0;ia=0===M?1:0}sa&&(a.ad(0),c?a.he(c.gb,c.eb):b?a.he(b.gb,b.eb):this.b.lc||(a.Of(this.b.width,this.b.height),wa=this.b.width/2,H=this.b.height/2,B=D=0,I=this.b.width,N=this.b.height),
a.$c(e),a.Nb(p[ia]),a.ge(),a.translate(-wa,-H),a.ne(),c&&1===h.length&&!da?a.Dd(D,B,I,B,I,N,D,N,Q):a.Dd(D,N,I,N,I,B,D,B,Q),a.Nb(null))};k.prototype.ai=function(a){var b,c;b=0;for(c=this.K.length;b<c;b++)if(this.K[b].R===a)return this.K[b];return null};k.prototype.zb=function(){var a,b,c,e={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.j,w:this.width,h:this.height,fv:this.kf,persist:this.ee,fx:[],layers:{}};a=0;for(b=this.H.length;a<b;a++)c=this.H[a],e.fx.push({name:c.name,active:c.Qa,params:this.ta[c.index]});
a=0;for(b=this.K.length;a<b;a++)c=this.K[a],e.layers[c.R.toString()]=c.zb();return e};k.prototype.Zb=function(a){var b,c,e,h;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.j=a.a;this.width=a.w;this.height=a.h;this.ee=a.persist;"undefined"!==typeof a.fv&&(this.kf=a.fv);var f=a.fx;b=0;for(c=f.length;b<c;b++)if(e=this.vk(f[b].name))e.Qa=f[b].active,this.ta[e.index]=f[b].params;this.Kd();b=a.layers;for(h in b)b.hasOwnProperty(h)&&(a=this.ai(parseInt(h,10)))&&a.Zb(b[h])};Ab=k;f.prototype.Kd=function(){this.X.length=
0;var a,b,c;a=0;for(b=this.H.length;a<b;a++)c=this.H[a],c.Qa&&this.X.push(c)};f.prototype.vk=function(a){var b,c,e;b=0;for(c=this.H.length;b<c;b++)if(e=this.H[b],e.name===a)return e;return null};f.prototype.Wq=function(){var a,b,e,m,h,f;b=a=0;for(e=this.Vb.length;a<e;a++){m=this.Vb[a];h=this.b.m[m[1]];f=this.b.Ul(h);h=!0;if(!f||this.Sa.kf)m=this.b.te(m,this,!0),c.push(m),m.type.global&&(h=!1,this.jg.push(m.uid));h&&(this.Vb[b]=this.Vb[a],b++)}this.Vb.length=b;this.b.bb();!this.b.n&&this.H.length&&
(this.ob=this.rr);this.ig=cb(this.ob);this.b.k&&db(this,this.ob,this.b.k);this.Ed=!0};f.prototype.Lf=function(a,b){var c=za(this.c,a);0>c||(b&&this.Lc&&a.xb&&a.xb.right>=a.xb.left&&(a.Wa(),this.Mb.update(a,a.xb,null),a.xb.set(0,0,-1,-1)),c===this.c.length-1?this.c.pop():(va(this.c,c),this.ph(c)),this.Ed=!0)};f.prototype.dg=function(a,b){a.Nc=this.c.length;this.c.push(a);b&&this.Lc&&a.xb&&a.xa();this.Ed=!0};f.prototype.Bt=function(a){this.c.unshift(a);this.ph(0)};f.prototype.ct=function(a,b,c){var e=
a.nc();b=b.nc();va(this.c,e);e<b&&b--;c&&b++;b===this.c.length?this.c.push(a):this.c.splice(b,0,a);this.ph(e<b?e:b)};f.prototype.ph=function(a){-1===this.Ld?this.Ld=a:a<this.Ld&&(this.Ld=a);this.Ed=this.Ye=!0};f.prototype.Yl=function(){if(this.Ye){-1===this.Ld&&(this.Ld=0);var a,b,c;if(this.Lc)for(a=this.Ld,b=this.c.length;a<b;++a)c=this.c[a],c.Nc=a,this.Mb.Ys(c.xb);else for(a=this.Ld,b=this.c.length;a<b;++a)this.c[a].Nc=a;this.Ye=!1;this.Ld=-1}};f.prototype.Ub=function(a){return this.ls()*(this.b.lc||
a?this.b.eg:1)};f.prototype.ls=function(){return(this.scale*this.Sa.scale-1)*this.Db+1};f.prototype.Ra=function(){return this.ve?0:Da(this.Sa.j+this.j)};var b=[],e=[],h=[];f.prototype.jn=function(){this.Yl();this.Mb.Lo(this.ya,this.za,this.Ga,this.Fa,h);if(!h.length)return q();if(1===h.length){var a=q();xa(a,h[0]);h.length=0;return a}for(var b=!0;1<h.length;){for(var a=h,c=void 0,m=void 0,f=void 0,k=void 0,r=void 0,c=0,m=a.length;c<m-1;c+=2){var f=a[c],k=a[c+1],r=q(),g=f,w=k,p=r,u=0,E=0,K=0,A=g.length,
v=w.length,z=void 0,M=void 0;for(p.length=A+v;u<A&&E<v;++K)z=g[u],M=w[E],z.Nc<M.Nc?(p[K]=z,++u):(p[K]=M,++E);for(;u<A;++u,++K)p[K]=g[u];for(;E<v;++E,++K)p[K]=w[E];b||(l(f),l(k));e.push(r)}1===m%2&&(b?(f=q(),xa(f,a[m-1]),e.push(f)):e.push(a[m-1]));xa(a,e);e.length=0;b=!1}a=h[0];h.length=0;return a};f.prototype.kc=function(a){this.fe=this.nk||1!==this.opacity||0!==this.ob;var b=this.b.canvas,c=a,e=!1;this.fe&&(this.b.ti||(this.b.ti=document.createElement("canvas"),b=this.b.ti,b.width=this.b.N,b.height=
this.b.M,this.b.Mn=b.getContext("2d"),e=!0),b=this.b.ti,c=this.b.Mn,b.width!==this.b.N&&(b.width=this.b.N,e=!0),b.height!==this.b.M&&(b.height=this.b.M,e=!0),e&&(c.webkitImageSmoothingEnabled=this.b.U,c.mozImageSmoothingEnabled=this.b.U,c.msImageSmoothingEnabled=this.b.U,c.imageSmoothingEnabled=this.b.U),this.Jd&&c.clearRect(0,0,this.b.N,this.b.M));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Jd||(c.fillStyle="rgb("+this.Rd[0]+","+this.Rd[1]+","+this.Rd[2]+")",c.fillRect(0,0,this.b.N,
this.b.M));c.save();this.ve=!0;var e=this.na(0,0,!0,!0),h=this.na(0,0,!1,!0);this.ve=!1;this.b.Zc&&(e=Math.round(e),h=Math.round(h));this.Cl(e,h,c);var f=this.Ub();c.scale(f,f);c.translate(-e,-h);this.Lc?(this.ic.left=this.Mb.Pb(this.ya),this.ic.top=this.Mb.Qb(this.za),this.ic.right=this.Mb.Pb(this.Ga),this.ic.bottom=this.Mb.Qb(this.Fa),this.Ed||!this.ic.Rh(this.ri)?(l(this.vf),e=this.jn(),this.Ed=!1,this.ri.Ih(this.ic)):e=this.vf):e=this.c;for(var k,g=null,h=0,f=e.length;h<f;++h)k=e[h],k!==g&&(this.or(k,
c),g=k);this.Lc&&(this.vf=e);c.restore();this.fe&&(a.globalCompositeOperation=this.ig,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};f.prototype.or=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Wa();var c=a.Xa;c.right<this.ya||c.bottom<this.za||c.left>this.Ga||c.top>this.Fa||(b.globalCompositeOperation=a.ig,a.kc(b))}};f.prototype.Xl=function(){this.ve=!0;var a=this.na(0,0,!0,!0),b=this.na(0,0,!1,!0);this.ve=!1;this.b.Zc&&(a=Math.round(a),b=Math.round(b));this.Cl(a,b,null)};f.prototype.Cl=
function(a,b,c){var e=this.Ub();this.ya=a;this.za=b;this.Ga=a+1/e*this.b.N;this.Fa=b+1/e*this.b.M;a=this.Ra();0!==a&&(c&&(c.translate(this.b.N/2,this.b.M/2),c.rotate(-a),c.translate(this.b.N/-2,this.b.M/-2)),this.Id.set(this.ya,this.za,this.Ga,this.Fa),this.Id.offset((this.ya+this.Ga)/-2,(this.za+this.Fa)/-2),this.ip.Wo(this.Id,a),this.ip.Im(this.Id),this.Id.offset((this.ya+this.Ga)/2,(this.za+this.Fa)/2),this.ya=this.Id.left,this.za=this.Id.top,this.Ga=this.Id.right,this.Fa=this.Id.bottom)};f.prototype.qb=
function(a){var b=0,c=0;if(this.fe=this.nk||1!==this.opacity||0<this.X.length||0!==this.ob){this.b.Yb||(this.b.Yb=a.Ud(this.b.N,this.b.M,this.b.U));if(this.b.Yb.gg!==this.b.N||this.b.Yb.fg!==this.b.M)a.deleteTexture(this.b.Yb),this.b.Yb=a.Ud(this.b.N,this.b.M,this.b.U);a.$c(this.b.Yb);this.Jd&&a.clear(0,0,0,0)}this.Jd||a.clear(this.Rd[0]/255,this.Rd[1]/255,this.Rd[2]/255,1);this.ve=!0;var e=this.na(0,0,!0,!0),b=this.na(0,0,!1,!0);this.ve=!1;this.b.Zc&&(e=Math.round(e),b=Math.round(b));this.Cl(e,b,
null);e=this.Ub();a.ge();a.scale(e,e);a.Oo(-this.Ra());a.translate((this.ya+this.Ga)/-2,(this.za+this.Fa)/-2);a.ne();this.Lc?(this.ic.left=this.Mb.Pb(this.ya),this.ic.top=this.Mb.Qb(this.za),this.ic.right=this.Mb.Pb(this.Ga),this.ic.bottom=this.Mb.Qb(this.Fa),this.Ed||!this.ic.Rh(this.ri)?(l(this.vf),b=this.jn(),this.Ed=!1,this.ri.Ih(this.ic)):b=this.vf):b=this.c;var h,f,k=null,c=0;for(h=b.length;c<h;++c)f=b[c],f!==k&&(this.pr(b[c],a),k=f);this.Lc&&(this.vf=b);this.fe&&(b=this.X.length?this.X[0].ab:
0,c=this.X.length?this.X[0].index:0,0===this.X.length||1===this.X.length&&!a.ul(b)&&1===this.opacity?(1===this.X.length?(a.ad(b),a.Nf(this.Sa.rg(),1/this.b.N,1/this.b.M,0,0,1,1,e,this.Ra(),this.ya,this.za,(this.ya+this.Ga)/2,(this.za+this.Fa)/2,this.ta[c]),a.Ui(b)&&(this.b.ha=!0)):a.ad(0),a.$c(this.Sa.rg()),a.Ve(this.opacity),a.Nb(this.b.Yb),a.he(this.gb,this.eb),a.ge(),a.ne(),e=this.b.N/2,b=this.b.M/2,a.lh(-e,b,e,b,e,-b,-e,-b),a.Nb(null)):this.Sa.Al(a,this,null,this.Sa.rg()))};f.prototype.pr=function(a,
b){if(a.visible&&0!==a.width&&0!==a.height){a.Wa();var c=a.Xa;c.right<this.ya||c.bottom<this.za||c.left>this.Ga||c.top>this.Fa||(a.vp?this.qr(a,b):(b.ad(0),b.he(a.gb,a.eb),a.qb(b)))}};f.prototype.qr=function(a,b){var c=a.X[0].ab,e=a.X[0].index,h=this.Ub();if(1!==a.X.length||b.ul(c)||b.Dt(c)||(a.j||a.d.Ra())&&b.jh(c)||1!==a.opacity||a.type.va.jo)this.Sa.Al(b,this,a,this.fe?this.b.Yb:this.Sa.rg()),b.ge(),b.scale(h,h),b.Oo(-this.Ra()),b.translate((this.ya+this.Ga)/-2,(this.za+this.Fa)/-2),b.ne();else{b.ad(c);
b.he(a.gb,a.eb);b.Ui(c)&&(this.b.ha=!0);var f=0,l=0,g=0,k=0;b.jh(c)&&(c=a.Xa,f=this.ib(c.left,c.top,!0,!0),l=this.ib(c.left,c.top,!1,!0),g=this.ib(c.right,c.bottom,!0,!0),c=this.ib(c.right,c.bottom,!1,!0),f/=windowWidth,l=1-l/windowHeight,g/=windowWidth,k=1-c/windowHeight);b.Nf(this.fe?this.b.Yb:this.Sa.rg(),1/a.width,1/a.height,f,l,g,k,h,this.Ra(),this.ya,this.za,(this.ya+this.Ga)/2,(this.za+this.Fa)/2,a.ta[e]);a.qb(b)}};f.prototype.na=function(a,b,c,e){var h=this.b.devicePixelRatio;this.b.Ie&&(a*=
h,b*=h);var h=this.b.Ao,f=this.b.Bo,h=(this.Sa.scrollX-h)*this.uc+h,f=(this.Sa.scrollY-f)*this.vc+f,l=h,g=f,k=1/this.Ub(!e);e?(l-=this.b.N*k/2,g-=this.b.M*k/2):(l-=this.b.width*k/2,g-=this.b.height*k/2);l+=a*k;g+=b*k;b=this.Ra();0!==b&&(l-=h,g-=f,a=Math.cos(b),b=Math.sin(b),e=l*a-g*b,g=g*a+l*b,l=e+h,g+=f);return c?l:g};f.prototype.ib=function(a,b,c,e){var h=this.b.Ao,f=this.b.Bo,l=(this.Sa.scrollX-h)*this.uc+h,g=(this.Sa.scrollY-f)*this.vc+f,f=l,h=g,k=this.Ra();if(0!==k){a-=l;b-=g;var p=Math.cos(-k),
k=Math.sin(-k),u=a*p-b*k;b=b*p+a*k;a=u+l;b+=g}l=1/this.Ub(!e);e?(f-=this.b.N*l/2,h-=this.b.M*l/2):(f-=this.b.width*l/2,h-=this.b.height*l/2);f=(a-f)/l;h=(b-h)/l;a=this.b.devicePixelRatio;this.b.Ie&&!e&&(f/=a,h/=a);return c?f:h};f.prototype.zb=function(){var a,b,c,e={s:this.scale,a:this.j,vl:this.ya,vt:this.za,vr:this.Ga,vb:this.Fa,v:this.visible,bc:this.Rd,t:this.Jd,px:this.uc,py:this.vc,o:this.opacity,zr:this.Db,fx:[],cg:this.jg,instances:[]};a=0;for(b=this.H.length;a<b;a++)c=this.H[a],e.fx.push({name:c.name,
active:c.Qa,params:this.ta[c.index]});return e};f.prototype.Zb=function(a){var b,c,e;this.scale=a.s;this.j=a.a;this.ya=a.vl;this.za=a.vt;this.Ga=a.vr;this.Fa=a.vb;this.visible=a.v;this.Rd=a.bc;this.Jd=a.t;this.uc=a.px;this.vc=a.py;this.opacity=a.o;this.Db=a.zr;this.jg=a.cg||[];xa(this.Vb,this.dp);var h=new ca;b=0;for(e=this.jg.length;b<e;++b)h.add(this.jg[b]);c=b=0;for(e=this.Vb.length;b<e;++b)h.contains(this.Vb[b][2])||(this.Vb[c]=this.Vb[b],++c);this.Vb.length=c;c=a.fx;b=0;for(e=c.length;b<e;b++)if(a=
this.vk(c[b].name))a.Qa=c[b].active,this.ta[a.index]=c[b].params;this.Kd();this.c.sort(p);this.Ye=!0};Ob=f})();
(function(){function k(a,b){var c,e=a.length;switch(e){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<e;c++)if(a[c]!==b[c])return!1;return!0}}function p(a,b){return a.index-b.index}function f(a){var b,c,e,d;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(p);a.length>=t.length&&(t.length=a.length+1);t[a.length]||(t[a.length]=[]);d=t[a.length];b=0;for(c=d.length;b<c;b++)if(e=d[b],k(a,e))return e;d.push(a);return a}
function q(a,b){this.b=a;this.lp={};this.Xm={};this.Gk=!1;this.pn=new ca;this.bk=[];this.Jj=[];this.name=b[0];var c=b[1];this.Xd=[];var e,d;e=0;for(d=c.length;e<d;e++)this.rn(c[e],null,this.Xd)}function l(a){this.type=a;this.c=[];this.T=[];this.la=!0}function c(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ma=[];this.ie=[];this.mn=this.oj=this.Rl=this.ii=this.group=this.cp=!1;this.cb=[];this.Bc=[];this.xc=[];this.vg="";this.ug=this.ii=this.group=!1;this.Gh=null;c[1]&&(this.vg=c[1][1].toLowerCase(),
this.group=!0,this.ii=!!c[1][0],this.Gh=[],this.ug=this.ii,this.b.Qd.push(this),this.b.di[this.vg]=this);this.Wc=c[2];this.R=c[4];this.group||(this.b.Hm[this.R.toString()]=this);var e=c[5];a=0;for(b=e.length;a<b;a++){var d=new Pb(this,e[a]);d.index=a;this.cb.push(d);this.wm(d.type)}e=c[6];a=0;for(b=e.length;a<b;a++)d=new Qb(this,e[a]),d.index=a,this.Bc.push(d);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.rn(c[a],this,this.xc);this.mi=!1;this.cb.length&&(this.mi=null==this.cb[0].type&&
this.cb[0].Ya==Y.prototype.e.gm)}function a(a,b){var c,e,d;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Fc))for(c=0,e=a.Gb.length;c<e;c++)d=a.Gb[c],a!==d&&-1===b.indexOf(d)&&b.push(d)}function b(a,b){this.Rb=a;this.sheet=a.sheet;this.b=a.b;this.L=[];this.wa=[];this.ua={};this.index=-1;this.ag=!1;this.Ya=this.b.Nd(b[1]);this.trigger=0<b[3];this.Wm=2===b[3];this.Vc=b[4];this.zg=b[5];this.Us=b[6];this.R=b[7];this.b.ff[this.R.toString()]=this;-1===b[0]?(this.type=null,this.Ma=this.Fl,this.re=null,this.Dc=-1):
(this.type=this.b.m[b[0]],this.Ma=this.Us?this.Nt:this.El,b[2]?(this.re=this.type.$h(b[2]),this.Dc=this.type.sk(b[2])):(this.re=null,this.Dc=-1),this.Rb.parent&&this.Rb.parent.aj());this.Wm&&(this.Ma=this.Ot);if(10===b.length){var c,e,d=b[9];c=0;for(e=d.length;c<e;c++){var h=new Rb(this,d[c]);this.L.push(h)}this.wa.length=d.length}}function e(a,b){this.Rb=a;this.sheet=a.sheet;this.b=a.b;this.L=[];this.wa=[];this.ua={};this.index=-1;this.ag=!1;this.Ya=this.b.Nd(b[1]);-1===b[0]?(this.type=null,this.Ma=
this.Fl,this.re=null,this.Dc=-1):(this.type=this.b.m[b[0]],this.Ma=this.El,b[2]?(this.re=this.type.$h(b[2]),this.Dc=this.type.sk(b[2])):(this.re=null,this.Dc=-1));this.R=b[3];this.b.cf[this.R.toString()]=this;if(6===b.length){var c,e,d=b[5];c=0;for(e=d.length;c<e;c++){var h=new Rb(this,d[c]);this.L.push(h)}this.wa.length=d.length}}function h(){r++;y.length===r&&y.push(new Sb);return y[r]}function d(a,b){this.ka=a;this.Rb=a.Rb;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Tc=null;this.Hd=0;this.get=
null;this.Om=0;this.Sa=null;this.key=0;this.object=null;this.index=0;this.zh=this.Xe=this.zh=this.Xe=this.Ym=this.Ae=this.Ah=null;this.Ac=!1;var c,e,d;switch(b[0]){case 0:case 7:this.Tc=new Tb(this,b[1]);this.Hd=0;this.get=this.us;break;case 1:this.Tc=new Tb(this,b[1]);this.Hd=0;this.get=this.vs;break;case 5:this.Tc=new Tb(this,b[1]);this.Hd=0;this.get=this.zs;break;case 3:case 8:this.Om=b[1];this.get=this.ss;break;case 6:this.Sa=this.b.wf[b[1]];this.get=this.As;break;case 9:this.key=b[1];this.get=
this.ys;break;case 4:this.object=this.b.m[b[1]];this.get=this.Bs;this.Rb.wm(this.object);this.ka instanceof Qb?this.Rb.aj():this.Rb.parent&&this.Rb.parent.aj();break;case 10:this.index=b[1];a.type.B?(this.get=this.ws,this.Ac=!0):this.get=this.xs;break;case 11:this.Ah=b[1];this.Ae=null;this.get=this.ts;break;case 2:case 12:this.Ym=b[1];this.get=this.rs;break;case 13:for(this.get=this.Cs,this.Xe=[],this.zh=[],c=1,e=b.length;c<e;c++)d=new Rb(this.ka,b[c]),this.Xe.push(d),this.zh.push(0)}}function n(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ma=[];this.name=c[1];this.vj=c[2];this.hi=c[3];this.Fg=!!c[4];this.li=!!c[5];this.R=c[6];this.b.Zf[this.R.toString()]=this;this.data=this.hi;this.parent?(this.Re=this.Fg||this.li?-1:this.b.Wt++,this.b.Iq.push(this)):(this.Re=-1,this.b.Gj.push(this))}function s(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ma=[];this.xg=null;this.Is=c[1];this.Qa=!0}function m(){this.fp=[];this.reset(null)}var t=[];q.prototype.toString=function(){return this.name};
q.prototype.rn=function(a,b,c){switch(a[0]){case 0:a=new Ub(this,b,a);if(a.Wc)for(c.push(a),c=0,b=a.cb.length;c<b;c++)a.cb[c].trigger&&this.sn(a,c);else a.zn()?this.sn(a,0):c.push(a);break;case 1:a=new Lb(this,b,a);c.push(a);break;case 2:a=new Vb(this,b,a),c.push(a)}};q.prototype.Ca=function(){var a,b;a=0;for(b=this.Xd.length;a<b;a++)this.Xd[a].Ca(a<b-1&&this.Xd[a+1].mi)};q.prototype.Vl=function(){this.bk.length=0;this.Jj.length=0;this.vm(this);this.Jj.length=0};q.prototype.vm=function(a){var b,c,
e,d,h=a.bk,m=a.Jj,f=this.pn.Mc();b=0;for(c=f.length;b<c;++b)e=f[b],d=e.xg,!e.Qa||a===d||-1<m.indexOf(d)||(m.push(d),d.vm(a),h.push(d))};q.prototype.Ma=function(a){this.b.zv||(this.Gk=!0,a||(this.b.Rk=!0));var b,c;b=0;for(c=this.Xd.length;b<c;b++){var e=this.Xd[b];e.Ma();this.b.Vj(e.ma);this.b.Zd&&this.b.bb()}a||(this.b.Rk=!1)};q.prototype.sn=function(a,b){a.Wc||this.b.rj.push(a);var c,e,d=a.cb[b],h;h=d.type?d.type.name:"system";var m=(c=d.Wm)?this.Xm:this.lp;m[h]||(m[h]=[]);h=m[h];m=d.Ya;if(c){if(d.L.length&&
(d=d.L[0],1===d.type&&2===d.Tc.type)){d=d.Tc.value.toLowerCase();c=0;for(e=h.length;c<e;c++)if(h[c].method==m){c=h[c].mg;c[d]?c[d].push([a,b]):c[d]=[[a,b]];return}c={};c[d]=[[a,b]];h.push({method:m,mg:c})}}else{c=0;for(e=h.length;c<e;c++)if(h[c].method==m){h[c].mg.push([a,b]);return}gc&&m===gc.prototype.e.bf?h.unshift({method:m,mg:[[a,b]]}):h.push({method:m,mg:[[a,b]]})}};Bb=q;l.prototype.Fk=function(){return this.la?this.type.c.length:this.c.length};l.prototype.mc=function(){return this.la?this.type.c:
this.c};l.prototype.ih=function(a){a&&(a.b.rb().Sb.Wc?(this.la&&(this.c.length=0,xa(this.T,a.type.c),this.la=!1),a=this.T.indexOf(a),-1!==a&&(this.c.push(this.T[a]),this.T.splice(a,1))):(this.la=!1,this.c.length=1,this.c[0]=a))};jb=l;window._c2hh_="028182FC3C1790C453899C06084DBCA3F631EAD1";c.prototype.Ca=function(a){var b,c=this.parent;if(this.group)for(this.oj=!0;c;){if(!c.group){this.oj=!1;break}c=c.parent}this.Rl=!this.zn()&&(!this.parent||this.parent.group&&this.parent.oj);this.mn=!!a;this.ie=
this.ma.slice(0);for(c=this.parent;c;){a=0;for(b=c.ma.length;a<b;a++)this.Fq(c.ma[a]);c=c.parent}this.ma=f(this.ma);this.ie=f(this.ie);a=0;for(b=this.cb.length;a<b;a++)this.cb[a].Ca();a=0;for(b=this.Bc.length;a<b;a++)this.Bc[a].Ca();a=0;for(b=this.xc.length;a<b;a++)this.xc[a].Ca(a<b-1&&this.xc[a+1].mi)};c.prototype.To=function(a){if(this.ug!==!!a){this.ug=!!a;var b;a=0;for(b=this.Gh.length;a<b;++a)this.Gh[a].rp();0<b&&this.b.ba.ze&&this.b.ba.ze.Vl()}};c.prototype.wm=function(b){a(b,this.ma)};c.prototype.Fq=
function(b){a(b,this.ie)};c.prototype.aj=function(){this.cp=!0;this.parent&&this.parent.aj()};c.prototype.zn=function(){return this.cb.length?this.cb[0].trigger:!1};c.prototype.Ma=function(){var a,b=!1,c,e=this.b,d=this.b.rb();d.Sb=this;var h=this.cb;this.mi||(d.fk=!1);if(this.Wc){0===h.length&&(b=!0);d.pb=0;for(a=h.length;d.pb<a;d.pb++)h[d.pb].trigger||(c=h[d.pb].Ma())&&(b=!0);(d.Ne=b)&&this.Dl()}else{d.pb=0;for(a=h.length;d.pb<a;d.pb++)if(c=h[d.pb].Ma(),!c){d.Ne=!1;this.Rl&&e.Zd&&e.bb();return}d.Ne=
!0;this.Dl()}this.tr(d)};c.prototype.tr=function(a){a.Ne&&this.mn&&(a.fk=!0);this.Rl&&this.b.Zd&&this.b.bb()};c.prototype.Lt=function(a){this.b.rb().Sb=this;this.cb[a].Ma()&&(this.Dl(),this.b.rb().Ne=!0)};c.prototype.Dl=function(){var a=this.b.rb(),b;a.Eb=0;for(b=this.Bc.length;a.Eb<b;a.Eb++)if(this.Bc[a.Eb].Ma())return;this.Po()};c.prototype.Jt=function(){var a=this.b.rb(),b;for(b=this.Bc.length;a.Eb<b;a.Eb++)if(this.Bc[a.Eb].Ma())return;this.Po()};c.prototype.Po=function(){if(this.xc.length){var a,
b,c,e,d=this.xc.length-1;this.b.xl(this);if(this.cp)for(a=0,b=this.xc.length;a<b;a++)c=this.xc[a],(e=!this.oj||!this.group&&a<d)&&this.b.wl(c.ma),c.Ma(),e?this.b.Jf(c.ma):this.b.Vj(c.ma);else for(a=0,b=this.xc.length;a<b;a++)this.xc[a].Ma();this.b.Go()}};c.prototype.Mt=function(){var a=this.b.rb();a.Sb=this;var b=!1,c;a.pb=0;for(c=this.cb.length;a.pb<c;a.pb++)if(this.cb[a.pb].Ma())b=!0;else if(!this.Wc)return!1;return this.Wc?b:!0};c.prototype.Ns=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=
b;--b)if(this.cb[b].type===a.type)return!1;return!0};Ub=c;b.prototype.Ca=function(){var a,b,c;a=0;for(b=this.L.length;a<b;a++)c=this.L[a],c.Ca(),c.Ac&&(this.ag=!0)};b.prototype.Ot=function(){return!0};b.prototype.Fl=function(){var a,b;a=0;for(b=this.L.length;a<b;a++)this.wa[a]=this.L[a].get();return Ra(this.Ya.apply(this.b.bd,this.wa),this.zg)};b.prototype.Nt=function(){var a,b;a=0;for(b=this.L.length;a<b;a++)this.wa[a]=this.L[a].get();a=this.Ya.apply(this.re?this.re:this.type,this.wa);this.type.hd();
return a};b.prototype.El=function(){var a,b,c,e,d,h,m,f,n=this.type,l=n.fa(),k=this.Rb.Wc&&!this.trigger;b=0;var p=n.Fc,r=n.B,s=n.qd,t=this.Dc,q=-1<t,y=this.ag,C=this.L,D=this.wa,O=this.zg,B=this.Ya,L;if(y)for(b=0,d=C.length;b<d;++b)h=C[b],h.Ac||(D[b]=h.get(0));else for(b=0,d=C.length;b<d;++b)D[b]=C[b].get(0);if(l.la){l.c.length=0;l.T.length=0;L=n.c;a=0;for(e=L.length;a<e;++a){f=L[a];if(y)for(b=0,d=C.length;b<d;++b)h=C[b],h.Ac&&(D[b]=h.get(a));q?(b=0,r&&(b=f.type.jf[s]),b=B.apply(f.G[t+b],D)):b=B.apply(f,
D);(m=Ra(b,O))?l.c.push(f):k&&l.T.push(f)}n.finish&&n.finish(!0);l.la=!1;n.hd();return l.Fk()}c=0;L=(m=k&&!this.Rb.Ns(this))?l.T:l.c;var I=!1;a=0;for(e=L.length;a<e;++a){f=L[a];if(y)for(b=0,d=C.length;b<d;++b)h=C[b],h.Ac&&(D[b]=h.get(a));q?(b=0,r&&(b=f.type.jf[s]),b=B.apply(f.G[t+b],D)):b=B.apply(f,D);if(Ra(b,O))if(I=!0,m){if(l.c.push(f),p)for(b=0,d=f.siblings.length;b<d;b++)h=f.siblings[b],h.type.fa().c.push(h)}else{L[c]=f;if(p)for(b=0,d=f.siblings.length;b<d;b++)h=f.siblings[b],h.type.fa().c[c]=
h;c++}else if(m){L[c]=f;if(p)for(b=0,d=f.siblings.length;b<d;b++)h=f.siblings[b],h.type.fa().T[c]=h;c++}else if(k&&(l.T.push(f),p))for(b=0,d=f.siblings.length;b<d;b++)h=f.siblings[b],h.type.fa().T.push(h)}L.length=c;if(p)for(r=n.Gb,a=0,e=r.length;a<e;a++)f=r[a].fa(),m?f.T.length=c:f.c.length=c;c=I;if(m&&!I)for(a=0,e=l.c.length;a<e;a++){f=l.c[a];if(y)for(b=0,d=C.length;b<d;b++)h=C[b],h.Ac&&(D[b]=h.get(a));b=q?B.apply(f.G[t],D):B.apply(f,D);if(Ra(b,O)){I=!0;break}}n.finish&&n.finish(c||k);return k?
I:l.Fk()};Pb=b;e.prototype.Ca=function(){var a,b,c;a=0;for(b=this.L.length;a<b;a++)c=this.L[a],c.Ca(),c.Ac&&(this.ag=!0)};e.prototype.Fl=function(){var a=this.b,b,c,e=this.L,d=this.wa;b=0;for(c=e.length;b<c;++b)d[b]=e[b].get();return this.Ya.apply(a.bd,d)};e.prototype.El=function(){var a=this.type,b=this.Dc,c=a.qd,e=this.ag,d=this.L,h=this.wa,f=this.Ya,m=a.fa().mc(),a=a.B,n=-1<b,l,k,p,r,s,t;if(e)for(k=0,r=d.length;k<r;++k)s=d[k],s.Ac||(h[k]=s.get(0));else for(k=0,r=d.length;k<r;++k)h[k]=d[k].get(0);
l=0;for(p=m.length;l<p;++l){t=m[l];if(e)for(k=0,r=d.length;k<r;++k)s=d[k],s.Ac&&(h[k]=s.get(l));n?(k=0,a&&(k=t.type.jf[c]),f.apply(t.G[b+k],h)):f.apply(t,h)}return!1};Qb=e;var y=[],r=-1;d.prototype.Ca=function(){var a,b;if(11===this.type)this.Ae=this.b.dn(this.Ah,this.Rb.parent);else if(13===this.type)for(a=0,b=this.Xe.length;a<b;a++)this.Xe[a].Ca();this.Tc&&this.Tc.Ca()};d.prototype.$s=function(a){this.Ac||!a||a.va.bj||(this.Ac=!0)};d.prototype.Vo=function(){this.Ac=!0};d.prototype.us=function(a){this.Hd=
a||0;a=h();this.Tc.get(a);r--;return a.data};d.prototype.vs=function(a){this.Hd=a||0;a=h();this.Tc.get(a);r--;return R(a.data)?a.data:""};d.prototype.Bs=function(){return this.object};d.prototype.ss=function(){return this.Om};d.prototype.zs=function(a){this.Hd=a||0;a=h();this.Tc.get(a);r--;return a.Ja()?this.b.sd(a.data):this.b.qg(a.data)};d.prototype.As=function(){return this.Sa};d.prototype.ys=function(){return this.key};d.prototype.xs=function(){return this.index};d.prototype.ws=function(a){a=
a||0;var b=this.ka.type,c=null,c=b.fa(),e=c.mc();if(e.length)c=e[a%e.length].type;else if(c.T.length)c=c.T[a%c.T.length].type;else if(b.c.length)c=b.c[a%b.c.length].type;else return 0;return this.index+c.Uh[b.qd]};d.prototype.ts=function(){return this.Ae};d.prototype.rs=function(){return this.Ym};d.prototype.Cs=function(){var a,b;a=0;for(b=this.Xe.length;a<b;a++)this.zh[a]=this.Xe[a].get();return this.zh};Rb=d;n.prototype.Ca=function(){this.ma=f(this.ma)};n.prototype.We=function(a){var b=this.b.cn();
this.parent&&!this.Fg&&b?(this.Re>=b.length&&(b.length=this.Re+1),b[this.Re]=a):this.data=a};n.prototype.sg=function(){var a=this.b.cn();return!this.parent||this.Fg||!a||this.li?this.data:this.Re>=a.length||"undefined"===typeof a[this.Re]?this.hi:a[this.Re]};n.prototype.Ma=function(){!this.parent||this.Fg||this.li||this.We(this.hi)};Lb=n;s.prototype.toString=function(){return"include:"+this.xg.toString()};s.prototype.Ca=function(){this.xg=this.b.hk[this.Is];this.sheet.pn.add(this);this.ma=f(this.ma);
for(var a=this.parent;a;)a.group&&a.Gh.push(this),a=a.parent;this.rp()};s.prototype.Ma=function(){this.parent&&this.b.kh(this.b.m);this.xg.Gk||this.xg.Ma(!0);this.parent&&this.b.Jf(this.b.m)};s.prototype.rp=function(){for(var a=this.parent;a;){if(a.group&&!a.ug){this.Qa=!1;return}a=a.parent}this.Qa=!0};Vb=s;m.prototype.reset=function(a){this.Sb=a;this.Eb=this.pb=0;this.fp.length=0;this.fk=this.Ne=!1};Kb=m})();
(function(){function k(a,b){this.ka=a;this.b=a.b;this.type=b[0];this.get=[this.Kr,this.Gr,this.Tr,this.Wr,this.wr,this.Ur,this.Or,this.Dr,this.Nr,this.Sr,this.Ar,this.Rr,this.Er,this.Pr,this.Lr,this.Mr,this.Hr,this.Ir,this.Cr,this.Vr,this.Qr,this.Jr,this.Br,this.Fr][this.type];var c=null;this.Ad=this.L=this.wa=this.Ya=this.mj=this.Va=this.first=this.value=null;this.Dc=-1;this.$d=null;this.wp=-1;this.Ae=this.Ah=null;this.Mf=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new Tb(a,b[1]);break;case 18:this.first=new Tb(a,b[1]);this.Va=new Tb(a,b[2]);this.mj=new Tb(a,b[3]);break;case 19:this.Ya=this.b.Nd(b[1]);this.Ya!==Y.prototype.fb.random&&this.Ya!==Y.prototype.fb.Sq||this.ka.Vo();this.wa=[];this.L=[];3===b.length?(c=b[2],this.wa.length=c.length+1):this.wa.length=1;break;case 20:this.Ad=this.b.m[b[1]];this.Dc=-1;this.Ya=this.b.Nd(b[2]);this.Mf=b[3];Xb.Function&&this.Ya===Xb.Function.prototype.fb.qu&&this.ka.Vo();this.$d=b[4]?new Tb(a,b[4]):null;this.wa=[];this.L=
[];6===b.length?(c=b[5],this.wa.length=c.length+1):this.wa.length=1;break;case 21:this.Ad=this.b.m[b[1]];this.Mf=b[2];this.$d=b[3]?new Tb(a,b[3]):null;this.wp=b[4];break;case 22:this.Ad=this.b.m[b[1]];this.Ad.$h(b[2]);this.Dc=this.Ad.sk(b[2]);this.Ya=this.b.Nd(b[3]);this.Mf=b[4];this.$d=b[5]?new Tb(a,b[5]):null;this.wa=[];this.L=[];7===b.length?(c=b[6],this.wa.length=c.length+1):this.wa.length=1;break;case 23:this.Ah=b[1],this.Ae=null}this.ka.$s(this.Ad);4<=this.type&&17>=this.type&&(this.first=new Tb(a,
b[1]),this.Va=new Tb(a,b[2]));if(c){var h,d;h=0;for(d=c.length;h<d;h++)this.L.push(new Tb(a,c[h]))}}function p(){++c;l.length===c&&l.push(new Sb);return l[c]}function f(a,b,c){var h,d;h=0;for(d=a.length;h<d;++h)a[h].get(c),b[h+1]=c.data}function q(a,b){this.type=a||W.$e;this.data=b||0;this.Se=null;this.type==W.$e&&(this.data=Math.floor(this.data))}k.prototype.Ca=function(){23===this.type&&(this.Ae=this.ka.b.dn(this.Ah,this.ka.Rb.parent));this.first&&this.first.Ca();this.Va&&this.Va.Ca();this.mj&&
this.mj.Ca();this.$d&&this.$d.Ca();if(this.L){var a,b;a=0;for(b=this.L.length;a<b;a++)this.L[a].Ca()}};var l=[],c=-1;k.prototype.Vr=function(a){var b=this.L,e=this.wa;e[0]=a;a=p();f(b,e,a);--c;this.Ya.apply(this.b.bd,e)};k.prototype.Qr=function(a){var b=this.Ad,e=this.wa,h=this.L,d=this.$d,n=this.Ya,l=this.ka.Hd,m=b.fa(),k=m.mc();if(!k.length)if(m.T.length)k=m.T;else{this.Mf?a.mb(""):a.ca(0);return}e[0]=a;a.Se=b;a=p();f(h,e,a);d&&(d.get(a),a.Ja()&&(l=a.data,k=b.c));--c;b=k.length;if(l>=b||l<=-b)l%=
b;0>l&&(l+=b);n.apply(k[l],e)};k.prototype.Br=function(a){var b=this.Ad,e=this.wa,h=this.L,d=this.$d,l=this.Dc,k=this.Ya,m=this.ka.Hd,t=b.fa(),q=t.mc();if(!q.length)if(t.T.length)q=t.T;else{this.Mf?a.mb(""):a.ca(0);return}e[0]=a;a.Se=b;a=p();f(h,e,a);d&&(d.get(a),a.Ja()&&(m=a.data,q=b.c));--c;h=q.length;if(m>=h||m<=-h)m%=h;0>m&&(m+=h);m=q[m];q=0;b.B&&(q=m.type.jf[b.qd]);k.apply(m.G[l+q],e)};k.prototype.Jr=function(a){var b=this.$d,e=this.Ad,h=this.wp,d=this.ka.Hd,f=e.fa(),l=f.mc();if(!l.length)if(f.T.length)l=
f.T;else{this.Mf?a.mb(""):a.ca(0);return}if(b){f=p();b.get(f);if(f.Ja()){d=f.data;e=e.c;d%=e.length;0>d&&(d+=e.length);h=e[d].Ia[h];R(h)?a.mb(h):a.u(h);--c;return}--c}b=l.length;if(d>=b||d<=-b)d%=b;0>d&&(d+=b);d=l[d];l=0;e.B&&(l=d.type.Uh[e.qd]);h=d.Ia[h+l];R(h)?a.mb(h):a.u(h)};k.prototype.Kr=function(a){a.type=W.$e;a.data=this.value};k.prototype.Gr=function(a){a.type=W.Ze;a.data=this.value};k.prototype.Tr=function(a){a.type=W.String;a.data=this.value};k.prototype.Wr=function(a){this.first.get(a);
a.Ja()&&(a.data=-a.data)};k.prototype.wr=function(a){this.first.get(a);var b=p();this.Va.get(b);a.Ja()&&b.Ja()&&(a.data+=b.data,b.rf()&&a.Af());--c};k.prototype.Ur=function(a){this.first.get(a);var b=p();this.Va.get(b);a.Ja()&&b.Ja()&&(a.data-=b.data,b.rf()&&a.Af());--c};k.prototype.Or=function(a){this.first.get(a);var b=p();this.Va.get(b);a.Ja()&&b.Ja()&&(a.data*=b.data,b.rf()&&a.Af());--c};k.prototype.Dr=function(a){this.first.get(a);var b=p();this.Va.get(b);a.Ja()&&b.Ja()&&(a.data/=b.data,a.Af());
--c};k.prototype.Nr=function(a){this.first.get(a);var b=p();this.Va.get(b);a.Ja()&&b.Ja()&&(a.data%=b.data,b.rf()&&a.Af());--c};k.prototype.Sr=function(a){this.first.get(a);var b=p();this.Va.get(b);a.Ja()&&b.Ja()&&(a.data=Math.pow(a.data,b.data),b.rf()&&a.Af());--c};k.prototype.Ar=function(a){this.first.get(a);var b=p();this.Va.get(b);a.Ja()?b.ni()?a.mb(a.data.toString()+b.data):a.data&&b.data?a.ca(1):a.ca(0):a.ni()&&(a.data=b.ni()?a.data+b.data:a.data+(Math.round(1E10*b.data)/1E10).toString());--c};
k.prototype.Rr=function(a){this.first.get(a);var b=p();this.Va.get(b);a.Ja()&&b.Ja()&&(a.data||b.data?a.ca(1):a.ca(0));--c};k.prototype.Cr=function(a){this.first.get(a);a.data?this.Va.get(a):this.mj.get(a)};k.prototype.Er=function(a){this.first.get(a);var b=p();this.Va.get(b);a.ca(a.data===b.data?1:0);--c};k.prototype.Pr=function(a){this.first.get(a);var b=p();this.Va.get(b);a.ca(a.data!==b.data?1:0);--c};k.prototype.Lr=function(a){this.first.get(a);var b=p();this.Va.get(b);a.ca(a.data<b.data?1:0);
--c};k.prototype.Mr=function(a){this.first.get(a);var b=p();this.Va.get(b);a.ca(a.data<=b.data?1:0);--c};k.prototype.Hr=function(a){this.first.get(a);var b=p();this.Va.get(b);a.ca(a.data>b.data?1:0);--c};k.prototype.Ir=function(a){this.first.get(a);var b=p();this.Va.get(b);a.ca(a.data>=b.data?1:0);--c};k.prototype.Fr=function(a){var b=this.Ae.sg();P(b)?a.u(b):a.mb(b)};Tb=k;q.prototype.rf=function(){return this.type===W.Ze};q.prototype.Ja=function(){return this.type===W.$e||this.type===W.Ze};q.prototype.ni=
function(){return this.type===W.String};q.prototype.Af=function(){this.rf()||(this.ni()&&(this.data=parseFloat(this.data)),this.type=W.Ze)};q.prototype.ca=function(a){this.type=W.$e;this.data=Math.floor(a)};q.prototype.u=function(a){this.type=W.Ze;this.data=a};q.prototype.mb=function(a){this.type=W.String;this.data=a};q.prototype.Vt=function(a){P(a)?(this.type=W.Ze,this.data=a):R(a)?(this.type=W.String,this.data=a.toString()):(this.type=W.$e,this.data=0)};Sb=q;W={$e:0,Ze:1,String:2}})();
function Y(k){this.b=k;this.Cb=[]}Y.prototype.zb=function(){var k={},p,f,q,l,c,a,b,e;k.waits=[];var h=k.waits,d;p=0;for(f=this.Cb.length;p<f;p++){a=this.Cb[p];d={t:a.time,st:a.bp,s:a.Kl,ev:a.hf.R,sm:[],sols:{}};a.hf.Bc[a.Eb]&&(d.act=a.hf.Bc[a.Eb].R);q=0;for(l=a.ma.length;q<l;q++)d.sm.push(a.ma[q].R);for(c in a.nb)if(a.nb.hasOwnProperty(c)){b=this.b.m[parseInt(c,10)];e={sa:a.nb[c].Yi,insts:[]};q=0;for(l=a.nb[c].td.length;q<l;q++)e.insts.push(a.nb[c].td[q].uid);d.sols[b.R.toString()]=e}h.push(d)}return k};
Y.prototype.Zb=function(k){k=k.waits;var p,f,q,l,c,a,b,e,h,d,n;p=this.Cb.length=0;for(f=k.length;p<f;p++)if(a=k[p],e=this.b.Hm[a.ev.toString()]){h=-1;q=0;for(l=e.Bc.length;q<l;q++)if(e.Bc[q].R===a.act){h=q;break}if(-1!==h){b={nb:{},ma:[],ck:!1};b.time=a.t;b.bp=a.st||"";b.Kl=!!a.s;b.hf=e;b.Eb=h;q=0;for(l=a.sm.length;q<l;q++)(e=this.b.ci(a.sm[q]))&&b.ma.push(e);for(c in a.sols)if(a.sols.hasOwnProperty(c)&&(e=this.b.ci(parseInt(c,10)))){h=a.sols[c];d={Yi:h.sa,td:[]};q=0;for(l=h.insts.length;q<l;q++)(n=
this.b.bi(h.insts[q]))&&d.td.push(n);b.nb[e.index.toString()]=d}this.Cb.push(b)}}};
(function(){function k(){}function p(){}function f(){}var q=Y.prototype;k.prototype.im=function(){return!0};k.prototype.mq=function(){return!0};k.prototype.Dp=function(a,b,c){return Wb(a,b,c)};k.prototype.yq=function(){var a=this.b.tk().ua;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var b=a.TriggerOnce_lastTick,c=this.b.Tf;a.TriggerOnce_lastTick=c;return this.b.Yk||b!==c-1};k.prototype.Fp=function(a,b,c){return Wb(a.sg(),b,c)};k.prototype.gm=function(){var a=this.b.rb();
return a.fk?!1:!a.Ne};k.prototype.jm=function(){return!0};k.prototype.Xp=function(){return!0};k.prototype.Cj=function(){return!0};k.prototype.nq=function(){return!0};k.prototype.Aj=function(){return!0};k.prototype.zp=function(a,b,c){return Ia(V(a),V(c))<=V(b)};k.prototype.Kp=function(a,b){return Ka(V(a),V(b))};k.prototype.Ip=function(a,b,c){a=Fa(a);b=Fa(b);c=Fa(c);return Ka(c,b)?Ka(a,b)&&!Ka(a,c):!(!Ka(a,b)&&Ka(a,c))};q.e=new k;p.prototype.Rp=function(a){if(!this.b.Ke&&!this.b.kd){var b=this.b.Kb.indexOf(this.b.ba);
if(!a||0!==b)if(a||b!==this.b.Kb.length-1)this.b.kd=this.b.Kb[b+(a?-1:1)]}};p.prototype.xq=function(a,b){0===a.vj?P(b)?a.We(b):a.We(parseFloat(b)):1===a.vj&&a.We(b.toString())};p.prototype.yp=function(a,b){0===a.vj?P(b)?a.We(a.sg()+b):a.We(a.sg()+parseFloat(b)):1===a.vj&&a.We(a.sg()+b.toString())};var l=[],c=[];p.prototype.zq=function(a){if(!(0>a)){var b,e,h,d=this.b.rb(),f;f=l.length?l.pop():{nb:{},ma:[]};f.ck=!1;f.time=this.b.Xb.da+a;f.bp="";f.Kl=!1;f.hf=d.Sb;f.Eb=d.Eb+1;a=0;for(b=this.b.m.length;a<
b;a++)h=this.b.m[a],e=h.fa(),e.la&&-1===d.Sb.ma.indexOf(h)||(f.ma.push(h),h=void 0,h=c.length?c.pop():{td:[]},h.Yi=!1,h.Yi=e.la,xa(h.td,e.c),f.nb[a.toString()]=h);this.Cb.push(f);return!0}};p.prototype.sq=function(){var a,b,c;a=0;for(b=this.b.Gj.length;a<b;a++)c=this.b.Gj[a],c.data=c.hi};p.prototype.Hp=function(a){if(!this.b.Ke&&!this.b.kd)for(var b in this.b.wf)if(this.b.wf.hasOwnProperty(b)&&fb(b,a)){this.b.kd=this.b.wf[b];break}};p.prototype.tq=function(){if(!this.b.Ke&&!this.b.kd&&this.b.ba){this.b.kd=
this.b.ba;var a,b,c;a=0;for(b=this.b.Qd.length;a<b;a++)c=this.b.Qd[a],c.To(c.ii)}};p.prototype.uq=function(a){this.b.Zi=a};p.prototype.Qp=function(a){this.b.Ng=a};q.ja=new p;f.prototype["int"]=function(a,b){R(b)?(a.ca(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.ca(b)};f.prototype["float"]=function(a,b){R(b)?(a.u(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.u(b)};f.prototype.Vs=function(a,b){a.ca(b.length||0)};f.prototype.random=function(a,b,c){void 0===c?a.u(Math.random()*b):a.u(Math.random()*(c-
b)+b)};f.prototype.sqrt=function(a,b){a.u(Math.sqrt(b))};f.prototype.abs=function(a,b){a.u(Math.abs(b))};f.prototype.round=function(a,b){a.ca(Math.round(b))};f.prototype.floor=function(a,b){a.ca(Math.floor(b))};f.prototype.ceil=function(a,b){a.ca(Math.ceil(b))};f.prototype.sin=function(a,b){a.u(Math.sin(V(b)))};f.prototype.cos=function(a,b){a.u(Math.cos(V(b)))};f.prototype.tan=function(a,b){a.u(Math.tan(V(b)))};f.prototype.asin=function(a,b){a.u(Ba(Math.asin(b)))};f.prototype.acos=function(a,b){a.u(Ba(Math.acos(b)))};
f.prototype.atan=function(a,b){a.u(Ba(Math.atan(b)))};f.prototype.exp=function(a,b){a.u(Math.exp(b))};f.prototype.log10=function(a,b){a.u(Math.log(b)/Math.LN10)};f.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,h,d;c=2;for(h=arguments.length;c<h;c++)d=arguments[c],"number"===typeof d&&b<d&&(b=d);a.u(b)};f.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,h,d;c=2;for(h=arguments.length;c<h;c++)d=arguments[c],"number"===typeof d&&b>d&&(b=d);
a.u(b)};f.prototype.xe=function(a){a.u(this.b.xe)};f.prototype.Uf=function(a){a.u(this.b.Uf)};f.prototype.time=function(a){a.u(this.b.Xb.da)};f.prototype.Tf=function(a){a.ca(this.b.Tf)};f.prototype.Fi=function(a){a.ca(this.b.Fi)};f.prototype.ok=function(a){a.ca(this.b.ok)};f.prototype.j=function(a,b,c,h,d){a.u(Ba(Ga(b,c,h,d)))};f.prototype.find=function(a,b,c){R(b)&&R(c)?a.ca(b.search(new RegExp(Za(c),"i"))):a.ca(-1)};f.prototype.left=function(a,b,c){a.mb(R(b)?b.substr(0,c):"")};f.prototype.right=
function(a,b,c){a.mb(R(b)?b.substr(b.length-c):"")};f.prototype.replace=function(a,b,c,h){R(b)&&R(c)&&R(h)?a.mb(b.replace(new RegExp(Za(c),"gi"),h)):a.mb(R(b)?b:"")};f.prototype.trim=function(a,b){a.mb(R(b)?b.trim():"")};f.prototype.Sq=function(a){var b=T(Math.random()*(arguments.length-1));a.Vt(arguments[b+1])};f.prototype.Xj=function(a){a.u(this.b.Xj/1E3)};f.prototype.Ai=function(a){a.u(this.b.Ai)};q.fb=new f;q.Kt=function(){var a,b,e,h,d,f,k=this.b.rb();a=0;for(e=this.Cb.length;a<e;a++){h=this.Cb[a];
if(-1===h.time){if(!h.Kl)continue}else if(h.time>this.b.Xb.da)continue;k.Sb=h.hf;k.Eb=h.Eb;k.pb=0;for(b in h.nb)h.nb.hasOwnProperty(b)&&(d=this.b.m[parseInt(b,10)].fa(),f=h.nb[b],d.la=f.Yi,xa(d.c,f.td),d=f,d.td.length=0,c.push(d));h.hf.Jt();this.b.Vj(h.ma);h.ck=!0}b=a=0;for(e=this.Cb.length;a<e;a++)h=this.Cb[a],this.Cb[b]=h,h.ck?(Ta(h.nb),h.ma.length=0,l.push(h)):b++;this.Cb.length=b}})();
(function(){ib=function(k,f){var q=k[1],l=k[3],c=k[4],a=k[5],b=k[6],e=k[7],h=k[8];f.e||(f.e={});f.ja||(f.ja={});f.fb||(f.fb={});var d=f.e,n=f.ja,s=f.fb;l&&(d.vu=function(a,b){return Wb(this.x,a,b)},d.wu=function(a,b){return Wb(this.y,a,b)},d.Cu=function(){var a=this.d;this.Wa();var b=this.Xa;return!(b.right<a.ya||b.bottom<a.za||b.left>a.Ga||b.top>a.Fa)},d.Du=function(){this.Wa();var a=this.Xa,b=this.b.ba;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},d.Ou=function(a,b,c){var d=this.fa(),
e=d.mc();if(!e.length)return!1;var h=e[0],f=h,l=Qa(h.x,h.y,b,c),n,k,p;n=1;for(k=e.length;n<k;n++)if(h=e[n],p=Qa(h.x,h.y,b,c),0===a&&p<l||1===a&&p>l)l=p,f=h;d.ih(f);return!0},n.iv=function(a){this.x!==a&&(this.x=a,this.xa())},n.jv=function(a){this.y!==a&&(this.y=a,this.xa())},n.bv=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.xa()},n.cv=function(a,b){var c=a.ms(this);if(c){var d;c.xk?(d=c.xk(b,!0),c=c.xk(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.xa()}},
n.Hu=function(a){0!==a&&(this.x+=Math.cos(this.j)*a,this.y+=Math.sin(this.j)*a,this.xa())},n.Gu=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.xa())},s.pm=function(a){a.u(this.x)},s.qm=function(a){a.u(this.y)},s.xe=function(a){a.u(this.b.uk(this))});c&&(d.uu=function(a,b){return Wb(this.width,a,b)},d.ru=function(a,b){return Wb(this.height,a,b)},n.hv=function(a){this.width!==a&&(this.width=a,this.xa())},n.$u=function(a){this.height!==a&&(this.height=a,this.xa())},n.dv=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.xa()},s.nv=function(a){a.u(this.width)},s.yu=function(a){a.u(this.height)},s.nu=function(a){this.Wa();a.u(this.Xa.left)},s.pu=function(a){this.Wa();a.u(this.Xa.top)},s.ou=function(a){this.Wa();a.u(this.Xa.right)},s.mu=function(a){this.Wa();a.u(this.Xa.bottom)});a&&(d.zp=function(a,b){return Ia(this.j,V(b))<=V(a)},d.Kp=function(a){return Ka(this.j,V(a))},d.Ip=function(a,b){var c=Fa(a),d=Fa(b),e=Da(this.j);return Ka(d,
c)?Ka(e,c)&&!Ka(e,d):!(!Ka(e,c)&&Ka(e,d))},n.Wu=function(a){a=V(Ca(a));isNaN(a)||this.j===a||(this.j=a,this.xa())},n.Su=function(a){0===a||isNaN(a)||(this.j+=V(a),this.j=Da(this.j),this.xa())},n.Tu=function(a){0===a||isNaN(a)||(this.j-=V(a),this.j=Da(this.j),this.xa())},n.Uu=function(a,b){var c=Ja(this.j,V(b),V(a));isNaN(c)||this.j===c||(this.j=c,this.xa())},n.Vu=function(a,b,c){a=Ja(this.j,Math.atan2(c-this.y,b-this.x),V(a));isNaN(a)||this.j===a||(this.j=a,this.xa())},n.gv=function(a,b){var c=Math.atan2(b-
this.y,a-this.x);isNaN(c)||this.j===c||(this.j=c,this.xa())},s.lu=function(a){a.u(Ea(this.j))});q||(d.su=function(a,b,c){return Wb(this.Ia[a],b,c)},d.Au=function(a){return this.Ia[a]},d.Pu=function(a,b){var c=this.fa(),d=c.mc();if(!d.length)return!1;var e=d[0],h=e,f=e.Ia[b],l,n,k;l=1;for(n=d.length;l<n;l++)if(e=d[l],k=e.Ia[b],0===a&&k<f||1===a&&k>f)f=k,h=e;c.ih(h);return!0},d.Nu=function(a){var b,c,d,e,h;if(this.b.tk().zg){h=this.fa();if(h.la)for(h.la=!1,h.c.length=0,h.T.length=0,d=this.c,b=0,c=d.length;b<
c;b++)e=d[b],e.uid===a?h.T.push(e):h.c.push(e);else{d=b=0;for(c=h.c.length;b<c;b++)e=h.c[b],h.c[d]=e,e.uid===a?h.T.push(e):d++;h.c.length=d}this.hd();return!!h.c.length}e=this.b.bi(a);if(!e)return!1;h=this.fa();if(!h.la&&-1===h.c.indexOf(e))return!1;if(this.B)for(a=e.type.pa,b=0,c=a.length;b<c;b++){if(a[b]===this)return h.ih(e),this.hd(),!0}else if(e.type===this)return h.ih(e),this.hd(),!0;return!1},d.Zp=function(){return!0},d.$p=function(){return!0},n.av=function(a,b){var c=this.Ia;P(c[a])?c[a]=
P(b)?b:parseFloat(b):R(c[a])&&(c[a]=R(b)?b:b.toString())},n.ku=function(a,b){var c=this.Ia;P(c[a])?c[a]=P(b)?c[a]+b:c[a]+parseFloat(b):R(c[a])&&(c[a]=R(b)?c[a]+b:c[a]+b.toString())},n.kv=function(a,b){var c=this.Ia;P(c[a])&&(c[a]=P(b)?c[a]-b:c[a]-parseFloat(b))},n.Xu=function(a,b){this.Ia[a]=b?1:0},n.lv=function(a){this.Ia[a]=1-this.Ia[a]},n.Gp=function(){this.b.Md(this)},n.Pp||(n.Pp=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.wi(this,b,!0);this.fd&&this.fd();if(this.G)for(a=0,
b=this.G.length;a<b;++a)c=this.G[a],c.fd&&c.fd()}),s.xu=function(a){var b=a.Se.c.length,c,d,e;c=0;for(d=this.b.Rc.length;c<d;c++)e=this.b.Rc[c],a.Se.B?0<=e.type.pa.indexOf(a.Se)&&b++:e.type===a.Se&&b++;a.ca(b)},s.Ru=function(a){a.ca(a.Se.fa().mc().length)},s.mv=function(a){a.ca(this.uid)},s.zu=function(a){a.ca(this.tg())},s.Ap||(s.Ap=function(a){a.mb(JSON.stringify(this.b.Gl(this,!0)))}));b&&(d.Np=function(){return this.visible},n.Ej=function(a){!a!==!this.visible&&(this.visible=a,this.b.ha=!0)},
d.tu=function(a,b){return Wb(eb(100*this.opacity),a,b)},n.wq=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ha=!0)},s.Opacity=function(a){a.u(eb(100*this.opacity))});e&&(d.Bu=function(a){return a?this.d===a:!1},d.Qu=function(a){var b=this.fa(),c=b.mc();if(!c.length)return!1;var d=c[0],e=d,h,f;h=1;for(f=c.length;h<f;h++)if(d=c[h],0===a){if(d.d.index>e.d.index||d.d.index===e.d.index&&d.nc()>e.nc())e=d}else if(d.d.index<e.d.index||d.d.index===e.d.index&&d.nc()<e.nc())e=
d;b.ih(e);return!0},n.Ku=function(){var a=this.d,b=a.c;b.length&&b[b.length-1]===this||(a.Lf(this,!1),a.dg(this,!1),this.b.ha=!0)},n.Iu=function(){var a=this.d,b=a.c;b.length&&b[0]===this||(a.Lf(this,!1),a.Bt(this),this.b.ha=!0)},n.Ju=function(a){a&&a!=this.d&&(this.d.Lf(this,!0),this.d=a,a.dg(this,!0),this.b.ha=!0)},n.pv=function(a,b){var c=0===a;if(b){var d=b.gs(this);d&&d.uid!==this.uid&&(this.d.index!==d.d.index&&(this.d.Lf(this,!0),this.d=d.d,d.d.dg(this,!0)),this.d.ct(this,d,c),this.b.ha=!0)}},
s.Fu=function(a){a.ca(this.d.no)},s.Eu=function(a){a.mb(this.d.name)},s.ov=function(a){a.ca(this.nc())});h&&(n.Yu=function(a,b){if(this.b.n){var c=this.type.wk(b);if(!(0>c)){var d=1===a;this.Od[c]!==d&&(this.Od[c]=d,this.Kd(),this.b.ha=!0)}}},n.Zu=function(a,b,c){if(this.b.n){var d=this.type.wk(a);0>d||(a=this.type.H[d],d=this.ta[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.n.qs(a.ab,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Qa&&(this.b.ha=!0))))}})};Cb=function(){this.Qj=this.Ch=!0;this.type.Am=!0;this.b.ha=
!0;var k,f,q=this.Mj;k=0;for(f=q.length;k<f;++k)q[k](this);this.d.Lc&&this.Wa()};Db=function(k){k&&this.Mj.push(k)};Fb=function(){if(this.Ch){var k=this.Xa,f=this.ef;k.set(this.x,this.y,this.x+this.width,this.y+this.height);k.offset(-this.tb*this.width,-this.ub*this.height);this.j?(k.offset(-this.x,-this.y),f.Wo(k,this.j),f.offset(this.x,this.y),f.Im(k)):f.qh(k);k.normalize();this.Ch=!1;this.gu()}};var k=new U(0,0,0,0);Gb=function(){if(this.d.Lc){var p=this.d.Mb,f=this.Xa;k.set(p.Pb(f.left),p.Qb(f.top),
p.Pb(f.right),p.Qb(f.bottom));this.xb.Rh(k)||(this.xb.right<this.xb.left?p.update(this,null,k):p.update(this,this.xb,k),this.xb.Ih(k),this.d.Ed=!0)}};Hb=function(){if(this.Qj&&this.hg){this.Wa();var p=this.type.Nm,f=this.Xa;k.set(p.Pb(f.left),p.Qb(f.top),p.Pb(f.right),p.Qb(f.bottom));this.Td.Rh(k)||(this.Td.right<this.Td.left?p.update(this,null,k):p.update(this,this.Td,k),this.Td.Ih(k),this.Qj=!1)}};Eb=function(k,f){return this.Xa.Hb(k,f)&&this.ef.Hb(k,f)?this.Qc&&!this.Qc.Ss()?(this.Qc.Pq(this.width,
this.height,this.j),this.Qc.Hb(k-this.x,f-this.y)):!0:!1};yb=function(){this.type.tj();return this.Fe};Ib=function(){this.d.Yl();return this.Nc};Jb=function(){this.X.length=0;var k,f;k=0;for(f=this.Od.length;k<f;k++)this.Od[k]&&this.X.push(this.type.H[k]);this.vp=!!this.X.length};zb=function(){return"Inst"+this.Ko};lb=function(k){if(k&&k.Fc&&k.type!=this){var f,q,l;f=0;for(q=k.siblings.length;f<q;f++)if(l=k.siblings[f],l.type==this)return l}k=this.fa().mc();return k.length?k[0]:null};mb=function(k){var f=
this.fa().mc();return f.length?f[k.tg()%f.length]:null};kb=function(){if(this.Rf&&!this.B){var k,f;k=0;for(f=this.c.length;k<f;k++)this.c[k].Fe=k;var q=k,l=this.b.Rc;k=0;for(f=l.length;k<f;++k)l[k].type===this&&(l[k].Fe=q++);this.Rf=!1}};wb=function(k){if(k<this.c.length)return this.c[k];k-=this.c.length;var f=this.b.Rc,q,l;q=0;for(l=f.length;q<l;++q)if(f[q].type===this){if(0===k)return f[q];--k}return null};nb=function(){return this.je[this.od]};ob=function(){this.od++;this.od===this.je.length?this.je.push(new jb(this)):
this.je[this.od].la=!0};pb=function(){this.od++;this.od===this.je.length&&this.je.push(new jb(this));var k=this.je[this.od],f=this.je[this.od-1];f.la?k.la=!0:(k.la=!1,xa(k.c,f.c),xa(k.T,f.T))};rb=function(){this.od--};sb=function(k){var f,q,l,c,a,b=0;if(!this.B)for(f=0,q=this.pa.length;f<q;f++)for(a=this.pa[f],l=0,c=a.Da.length;l<c;l++){if(k===a.Da[l].name)return this.ua.lastBehIndex=b,a.Da[l];b++}f=0;for(q=this.Da.length;f<q;f++){if(k===this.Da[f].name)return this.ua.lastBehIndex=b,this.Da[f];b++}return null};
tb=function(k){return this.$h(k)?this.ua.lastBehIndex:-1};ub=function(k){var f,q;f=0;for(q=this.H.length;f<q;f++)if(this.H[f].name===k)return f;return-1};vb=function(){if(this.Fc&&!this.B){var k,f,q,l,c,a,b;this.tj();a=this.fa();var e=a.la,h=(k=this.b.rb())&&k.Sb&&k.Sb.Wc;k=0;for(f=this.Gb.length;k<f;k++)if(c=this.Gb[k],c!==this&&(c.tj(),b=c.fa(),b.la=e,!e)){b.c.length=a.c.length;q=0;for(l=a.c.length;q<l;q++)b.c[q]=c.en(a.c[q].Fe);if(h)for(b.T.length=a.T.length,q=0,l=a.T.length;q<l;q++)b.T[q]=c.en(a.T[q].Fe)}}};
xb=function(){return"Type"+this.R};Wb=function(k,f,q){if("undefined"===typeof k||"undefined"===typeof q)return!1;switch(f){case 0:return k===q;case 1:return k!==q;case 2:return k<q;case 3:return k<=q;case 4:return k>q;case 5:return k>=q;default:return!1}}})();var ec={};function hc(k){this.b=k}
(function(){function k(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function p(a){a=a.toLowerCase();return S.hasOwnProperty(a)&&S[a].length?S[a][0].Tb():x.destination}function f(){return x.createGain?x.createGain():x.createGainNode()}function q(a){return x.createDelay?x.createDelay(a):x.createDelayNode(a)}function l(a){a.start?a.start(0):a.noteOn(0)}function c(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function a(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function b(a,
b,c,d,e,g){this.type="filter";this.Hc=[a,b,c,d,e,g];this.S=f();this.F=f();this.F.gain.value=g;this.C=f();this.C.gain.value=1-g;this.Ea=x.createBiquadFilter();this.Ea.type="number"===typeof this.Ea.type?a:pc[a];this.Ea.frequency.value=b;this.Ea.detune&&(this.Ea.detune.value=c);this.Ea.Q.value=d;this.Ea.gain.value=e;this.S.connect(this.Ea);this.S.connect(this.C);this.Ea.connect(this.F)}function e(a,b,c){this.type="delay";this.Hc=[a,b,c];this.S=f();this.F=f();this.F.gain.value=c;this.C=f();this.C.gain.value=
1-c;this.Wg=f();this.jc=q(a);this.jc.delayTime.value=a;this.Ph=f();this.Ph.gain.value=b;this.S.connect(this.Wg);this.S.connect(this.C);this.Wg.connect(this.F);this.Wg.connect(this.jc);this.jc.connect(this.Ph);this.Ph.connect(this.Wg)}function h(a,b,c,d){this.type="convolve";this.Hc=[b,c,d];this.S=f();this.F=f();this.F.gain.value=c;this.C=f();this.C.gain.value=1-c;this.se=x.createConvolver();a&&(this.se.normalize=b,this.se.buffer=a);this.S.connect(this.se);this.S.connect(this.C);this.se.connect(this.F)}
function d(a,b,c,d,e){this.type="flanger";this.Hc=[a,b,c,d,e];this.S=f();this.C=f();this.C.gain.value=1-e/2;this.F=f();this.F.gain.value=e/2;this.Vh=f();this.Vh.gain.value=d;this.jc=q(a+b);this.jc.delayTime.value=a;this.Ua=x.createOscillator();this.Ua.frequency.value=c;this.Lb=f();this.Lb.gain.value=b;this.S.connect(this.jc);this.S.connect(this.C);this.jc.connect(this.F);this.jc.connect(this.Vh);this.Vh.connect(this.jc);this.Ua.connect(this.Lb);this.Lb.connect(this.jc.delayTime);l(this.Ua)}function n(a,
b,c,d,e,g){this.type="phaser";this.Hc=[a,b,c,d,e,g];this.S=f();this.C=f();this.C.gain.value=1-g/2;this.F=f();this.F.gain.value=g/2;this.Ea=x.createBiquadFilter();this.Ea.type="number"===typeof this.Ea.type?7:"allpass";this.Ea.frequency.value=a;this.Ea.detune&&(this.Ea.detune.value=b);this.Ea.Q.value=c;this.Ua=x.createOscillator();this.Ua.frequency.value=e;this.Lb=f();this.Lb.gain.value=d;this.S.connect(this.Ea);this.S.connect(this.C);this.Ea.connect(this.F);this.Ua.connect(this.Lb);this.Lb.connect(this.Ea.frequency);
l(this.Ua)}function s(a){this.type="gain";this.Hc=[a];this.V=f();this.V.gain.value=a}function m(a,b){this.type="tremolo";this.Hc=[a,b];this.V=f();this.V.gain.value=1-b/2;this.Ua=x.createOscillator();this.Ua.frequency.value=a;this.Lb=f();this.Lb.gain.value=b/2;this.Ua.connect(this.Lb);this.Lb.connect(this.V.gain);l(this.Ua)}function t(a,b){this.type="ringmod";this.Hc=[a,b];this.S=f();this.F=f();this.F.gain.value=b;this.C=f();this.C.gain.value=1-b;this.nh=f();this.nh.gain.value=0;this.Ua=x.createOscillator();
this.Ua.frequency.value=a;this.Ua.connect(this.nh.gain);l(this.Ua);this.S.connect(this.nh);this.S.connect(this.C);this.nh.connect(this.F)}function y(a,b,c,d,e){this.type="distortion";this.Hc=[a,b,c,d,e];this.S=f();this.Si=f();this.Ri=f();this.Rt(c,Math.pow(10,d/20));this.F=f();this.F.gain.value=e;this.C=f();this.C.gain.value=1-e;this.wj=x.createWaveShaper();this.Nh=new Float32Array(65536);this.cs(a,b);this.wj.Nh=this.Nh;this.S.connect(this.Si);this.S.connect(this.C);this.Si.connect(this.wj);this.wj.connect(this.Ri);
this.Ri.connect(this.F)}function r(a,b,c,d,e){this.type="compressor";this.Hc=[a,b,c,d,e];this.V=x.createDynamicsCompressor();try{this.V.threshold.value=a,this.V.knee.value=b,this.V.ratio.value=c,this.V.attack.value=d,this.V.release.value=e}catch(g){}}function g(a,b){this.type="analyser";this.Hc=[a,b];this.V=x.createAnalyser();this.V.fftSize=a;this.V.smoothingTimeConstant=b;this.as=new Float32Array(this.V.frequencyBinCount);this.Zo=new Uint8Array(a);this.hh=0}function w(){this.D=null;this.yi=0;this.ke=
[];this.hl=this.qi=this.pi=0}function F(a,b){this.src=a;this.J=G;this.Gc=b;this.xm=!1;var c=this;this.fl=this.rl=null;this.Hf=[];this.$i=0;this.em=this.kk=this.ep=this.Oi=!1;1===G&&b&&(this.J=0,this.rl=f());this.qe=this.Y=null;var d;switch(this.J){case 0:this.Y=new Audio;this.Y.addEventListener("canplaythrough",function(){c.em=!0});1===G&&x.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.ep=!0,this.Y.addEventListener("canplay",function(){c.fl||(c.fl=x.createMediaElementSource(c.Y),
c.fl.connect(c.rl))}));this.Y.autoplay=!1;this.Y.xv="auto";this.Y.src=a;break;case 1:d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType="arraybuffer";d.onload=function(){c.qe=d.response;c.Xq()};d.onerror=function(){c.kk=!0};d.send();break;case 2:this.Y=!0;break;case 3:this.Y=!0}}function u(a,b){var c=this;this.tag=b;this.Ob=this.Uc=!0;this.src=a.src;this.buffer=a;this.J=G;this.Gc=a.Gc;this.playbackRate=1;this.Wj=!0;this.qc=this.Fd=!1;this.yb=0;this.Eg=this.sf=this.Vc=!1;this.volume=1;this.Je=
1===D&&!this.Gc||2===D;this.Bf=1;this.startTime=this.Je?z.Xb.da:z.ed.da;this.Ba=this.Ha=null;this.Xc=!1;this.Aa=null;this.xo=this.wo=this.vo=this.uo=this.zo=this.yo=0;this.i=null;var d=!1;1!==this.J||0!==this.buffer.J||this.buffer.ep||(this.J=0);switch(this.J){case 0:this.Gc?(this.i=a.Y,d=!a.xm,a.xm=!0):(this.i=new Audio,this.i.autoplay=!1,this.i.src=a.Y.src,d=!0);d&&this.i.addEventListener("ended",function(){ia=c.tag;c.Ob=!0;z.trigger(hc.prototype.e.zj,M)});break;case 1:this.Ha=f();this.Ha.connect(p(b));
1===this.buffer.J?a.Y&&(this.i=x.createBufferSource(),this.i.buffer=a.Y,this.i.connect(this.Ha)):(this.i=this.buffer.Y,this.buffer.rl.connect(this.Ha));break;case 2:this.i=new window.Media(X+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.Wj=!0,c.Ob=!0,ia=c.tag,z.trigger(hc.prototype.e.zj,M))});break;case 3:this.i=!0}}function E(a,b){S.hasOwnProperty(a)?S[a].push(b):S[a]=[b];var c,d,e,g,h=x.destination;if(S.hasOwnProperty(a)&&(e=S[a],e.length))for(h=e[0].Tb(),c=0,d=e.length;c<d;c++)g=
e[c],c+1===d?g.gc(x.destination):g.gc(e[c+1].Tb());Ha.length=0;if(a.length)for(c=0,d=H.length;c<d;c++)e=H[c],fb(a,e.tag)&&Ha.push(e);else Q&&!Q.Ee()&&(Ha.length=1,Ha[0]=Q);c=0;for(d=Ha.length;c<d;c++)Ha[c].Ft(h);ba&&qb===a&&(ba.disconnect(),ba.connect(h))}function K(){}function A(){}var v=hc.prototype;v.Pa=function(a){this.va=a;this.b=a.b};v.Pa.prototype.ga=function(){};var z=null,M=null,ia="",X="",G=0,x=null,wa=[],H=[],Q=null,C=!1,D=0,O=!1,B=1,L=0,I=0,ja=1,N=1,pa=10,da=1E4,sa=1,ba=null,qb="",La=
!1,Ma=[],S={},pc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");b.prototype.gc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};b.prototype.remove=function(){this.S.disconnect();this.Ea.disconnect();this.F.disconnect();this.C.disconnect()};b.prototype.Tb=function(){return this.S};e.prototype.gc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};e.prototype.remove=function(){this.S.disconnect();
this.Wg.disconnect();this.jc.disconnect();this.Ph.disconnect();this.F.disconnect();this.C.disconnect()};e.prototype.Tb=function(){return this.S};h.prototype.gc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};h.prototype.remove=function(){this.S.disconnect();this.se.disconnect();this.F.disconnect();this.C.disconnect()};h.prototype.Tb=function(){return this.S};d.prototype.gc=function(a){this.C.disconnect();this.C.connect(a);this.F.disconnect();this.F.connect(a)};
d.prototype.remove=function(){this.S.disconnect();this.jc.disconnect();this.Ua.disconnect();this.Lb.disconnect();this.C.disconnect();this.F.disconnect();this.Vh.disconnect()};d.prototype.Tb=function(){return this.S};n.prototype.gc=function(a){this.C.disconnect();this.C.connect(a);this.F.disconnect();this.F.connect(a)};n.prototype.remove=function(){this.S.disconnect();this.Ea.disconnect();this.Ua.disconnect();this.Lb.disconnect();this.C.disconnect();this.F.disconnect()};n.prototype.Tb=function(){return this.S};
s.prototype.gc=function(a){this.V.disconnect();this.V.connect(a)};s.prototype.remove=function(){this.V.disconnect()};s.prototype.Tb=function(){return this.V};m.prototype.gc=function(a){this.V.disconnect();this.V.connect(a)};m.prototype.remove=function(){this.Ua.disconnect();this.Lb.disconnect();this.V.disconnect()};m.prototype.Tb=function(){return this.V};t.prototype.gc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};t.prototype.remove=function(){this.Ua.disconnect();
this.nh.disconnect();this.S.disconnect();this.F.disconnect();this.C.disconnect()};t.prototype.Tb=function(){return this.S};y.prototype.Rt=function(a,b){.01>a&&(a=.01);this.Si.gain.value=a;this.Ri.gain.value=Math.pow(1/a,.6)*b};y.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};y.prototype.cs=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),e=0,g=0;32768>g;++g)e=g/32768,e=this.shape(e,c,d),this.Nh[32768+g]=e,this.Nh[32768-
g-1]=-e};y.prototype.gc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};y.prototype.remove=function(){this.S.disconnect();this.Si.disconnect();this.wj.disconnect();this.Ri.disconnect();this.F.disconnect();this.C.disconnect()};y.prototype.Tb=function(){return this.S};r.prototype.gc=function(a){this.V.disconnect();this.V.connect(a)};r.prototype.remove=function(){this.V.disconnect()};r.prototype.Tb=function(){return this.V};g.prototype.Oa=function(){this.V.getFloatFrequencyData(this.as);
this.V.getByteTimeDomainData(this.Zo);for(var a=this.V.fftSize,b=0,c=this.hh=0,d=0;b<a;b++)d=(this.Zo[b]-128)/128,0>d&&(d=-d),this.hh<d&&(this.hh=d),c+=d*d;this.hh=k(this.hh);k(Math.sqrt(c/a))};g.prototype.gc=function(a){this.V.disconnect();this.V.connect(a)};g.prototype.remove=function(){this.V.disconnect()};g.prototype.Tb=function(){return this.V};w.prototype.oh=function(a){if(this.D=a)this.pi=this.D.x,this.qi=this.D.y;this.ke.length=0};w.prototype.gi=function(){return!!this.D};w.prototype.Oa=function(a){this.D&&
0!==a&&(this.hl=Ga(this.pi,this.qi,this.D.x,this.D.y),a=Qa(this.pi,this.qi,this.D.x,this.D.y)/a,4>this.ke.length||this.ke.shift(),this.ke.push(a),this.pi=this.D.x,this.qi=this.D.y)};w.prototype.kn=function(){if(!this.ke.length)return 0;var a,b,c=0;a=0;for(b=this.ke.length;a<b;a++)c+=this.ke[a];return c/this.ke.length};w.prototype.Ak=function(){return Math.cos(this.hl)*this.kn()};w.prototype.Bk=function(){return Math.sin(this.hl)*this.kn()};var mc=!1;F.prototype.Xq=function(){if(!this.Y&&this.qe){var a=
this;if(x.decodeAudioData)x.decodeAudioData(this.qe,function(b){a.Y=b;a.qe=null;var c,d,e;if(ga(a.Pi)||O)ga(a.Hh)||(c=a.Hh.se,c.normalize=a.mo,c.buffer=b);else if(a.Hf.length){c=0;for(d=a.Hf.length;c<d;c++){b=a.Hf[c];e=new u(a,b.gp);e.Il(!0);if("undefined"!==typeof b.oo&&(b.D=z.bi(b.oo),!b.D))continue;if(b.D){var g=Pa(b.D.x,b.D.y,-b.D.d.Ra(),L,I,!0),h=Pa(b.D.x,b.D.y,-b.D.d.Ra(),L,I,!1);e.Hl(g,h,Ba(b.D.j-b.D.d.Ra()),b.Hk,b.il,b.ll);e.oh(b.D)}else e.Hl(b.x,b.y,b.Aq,b.Hk,b.il,b.ll);e.play(a.cl,a.am,
a.$i);a.Oi&&e.pause();H.push(e)}a.Hf.length=0}else e=new u(a,a.Pi),e.play(a.cl,a.am,a.$i),a.Oi&&e.pause(),H.push(e)},function(){a.kk=!0});else if(this.Y=x.createBuffer(this.qe,!1),this.qe=null,ga(this.Pi)||O)ga(this.Hh)||(b=this.Hh.se,b.normalize=this.mo,b.buffer=this.Y);else{var b=new u(this,this.Pi);b.play(this.cl,this.am,this.$i);this.Oi&&b.pause();H.push(b)}}};F.prototype.un=function(){switch(this.J){case 0:var a=4<=this.Y.readyState;a&&(this.em=!0);return a||this.em;case 1:return!!this.qe||!!this.Y;
case 2:return!0;case 3:return!0}return!1};F.prototype.Os=function(){switch(this.J){case 0:return this.un();case 1:return!!this.Y;case 2:return!0;case 3:return!0}return!1};F.prototype.Hs=function(){switch(this.J){case 0:return!!this.Y.error;case 1:return this.kk}return!1};u.prototype.Ee=function(){var a;switch(this.J){case 0:return this.i.ended;case 1:if(1===this.buffer.J){if(!this.Uc&&!this.Ob&&this.i.loop||this.qc)return!1;a=this.Je?z.Xb.da:z.ed.da;var b=this.playbackRate;0===b&&(b=1E-6);return a-
this.startTime>this.buffer.Y.duration/b}return this.i.ended;case 2:return this.Wj;case 3:!0}return!0};u.prototype.Qq=function(){return this.Uc||this.Ob?!0:this.Ee()};u.prototype.Il=function(a){1===G&&(!this.Xc&&a?this.Ha&&(this.Ba||(this.Ba=x.createPanner(),this.Ba.panningModel="number"===typeof this.Ba.panningModel?ja:["equalpower","HRTF","soundfield"][ja],this.Ba.distanceModel="number"===typeof this.Ba.distanceModel?N:["linear","inverse","exponential"][N],this.Ba.refDistance=pa,this.Ba.maxDistance=
da,this.Ba.rolloffFactor=sa),this.Ha.disconnect(),this.Ha.connect(this.Ba),this.Ba.connect(p(this.tag)),this.Xc=!0):this.Xc&&!a&&this.Ha&&(this.Ba.disconnect(),this.Ha.disconnect(),this.Ha.connect(p(this.tag)),this.Xc=!1))};u.prototype.Hl=function(a,b,c,d,e,g){this.Xc&&1===G&&(this.Ba.setPosition(a,b,0),this.Ba.setOrientation(Math.cos(V(c)),Math.sin(V(c)),0),this.Ba.coneInnerAngle=d,this.Ba.coneOuterAngle=e,this.Ba.coneOuterGain=g,this.yo=a,this.zo=b,this.uo=c,this.vo=d,this.wo=e,this.xo=g)};u.prototype.oh=
function(a){this.Xc&&1===G&&(this.Aa||(this.Aa=new w),this.Aa.oh(a))};u.prototype.Oa=function(a){if(this.Xc&&1===G&&this.Aa&&this.Aa.gi()&&this.pf()){this.Aa.Oa(a);a=this.Aa.D;var b=Pa(a.x,a.y,-a.d.Ra(),L,I,!0),c=Pa(a.x,a.y,-a.d.Ra(),L,I,!1);this.Ba.setPosition(b,c,0);b=0;"undefined"!==typeof this.Aa.D.j&&(b=a.j-a.d.Ra(),this.Ba.setOrientation(Math.cos(b),Math.sin(b),0));b=Pa(this.Aa.Ak(),this.Aa.Bk(),-a.d.Ra(),0,0,!0);c=Pa(this.Aa.Ak(),this.Aa.Bk(),-a.d.Ra(),0,0,!1);this.Ba.setVelocity(b,c,0)}};
u.prototype.play=function(a,b,d){var e=this.i;this.Vc=a;this.volume=b;d=d||0;switch(this.J){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==b*B&&(e.volume=b*B);e.loop!==a&&(e.loop=a);e.muted&&(e.muted=!1);if(e.currentTime!==d)try{e.currentTime=d}catch(g){}if(this.Gc&&La&&!z.Z)Ma.push(this);else try{this.i.play()}catch(h){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",h)}break;case 1:this.muted=!1;this.Bf=1;if(1===this.buffer.J)this.Ha.gain.value=
b*B,this.Uc||(this.i=x.createBufferSource(),this.i.buffer=this.buffer.Y,this.i.connect(this.Ha)),this.i.loop=a,0===d?l(this.i):c(this.i,d,this.Ce());else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==a&&(e.loop=a);e.volume=b*B;if(e.currentTime!==d)try{e.currentTime=d}catch(f){}this.Gc&&La&&!z.Z?Ma.push(this):e.play()}break;case 2:(!this.Uc&&this.Ob||0!==d)&&e.seekTo(d);e.play();this.Wj=!1;break;case 3:z.Za?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=
1;this.startTime=(this.Je?z.Xb.da:z.ed.da)-d;this.qc=this.Ob=this.Uc=!1};u.prototype.stop=function(){switch(this.J){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.J?a(this.i):this.i.paused||this.i.pause();break;case 2:this.i.stop();break;case 3:z.Za&&AppMobi.context.stopSound(this.src)}this.Ob=!0;this.qc=!1};u.prototype.pause=function(){if(!(this.Uc||this.Ob||this.Ee()||this.qc)){switch(this.J){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.J?(this.yb=this.yk(),
this.Vc&&(this.yb%=this.Ce()),a(this.i)):this.i.paused||this.i.pause();break;case 2:this.i.pause();break;case 3:z.Za&&AppMobi.context.stopSound(this.src)}this.qc=!0}};u.prototype.It=function(){if(!(this.Uc||this.Ob||this.Ee())&&this.qc){switch(this.J){case 0:this.i.play();break;case 1:1===this.buffer.J?(this.i=x.createBufferSource(),this.i.buffer=this.buffer.Y,this.i.connect(this.Ha),this.i.loop=this.Vc,this.Ha.gain.value=B*this.volume*this.Bf,this.startTime=(this.Je?z.Xb.da:z.ed.da)-this.yb,c(this.i,
this.yb,this.Ce())):this.i.play();break;case 2:this.i.play();break;case 3:z.Za&&AppMobi.context.resumeSound(this.src)}this.qc=!1}};u.prototype.seek=function(a){if(!(this.Uc||this.Ob||this.Ee()))switch(this.J){case 0:try{this.i.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.J)this.qc?this.yb=a:(this.pause(),this.yb=a,this.It());else try{this.i.currentTime=a}catch(c){}break;case 3:z.Za&&AppMobi.context.seekSound(this.src,a)}};u.prototype.Ft=function(a){1===this.J&&(this.Xc?(this.Ba.disconnect(),
this.Ba.connect(a)):(this.Ha.disconnect(),this.Ha.connect(a)))};u.prototype.Ce=function(){switch(this.J){case 0:if("undefined"!==typeof this.i.duration)return this.i.duration;break;case 1:return this.buffer.Y.duration;case 2:return this.i.getDuration();case 3:if(z.Za)return AppMobi.context.getDurationSound(this.src)}return 0};u.prototype.yk=function(){var a=this.Ce(),b=0;switch(this.J){case 0:"undefined"!==typeof this.i.currentTime&&(b=this.i.currentTime);break;case 1:if(1===this.buffer.J){if(this.qc)return this.yb;
b=(this.Je?z.Xb.da:z.ed.da)-this.startTime}else"undefined"!==typeof this.i.currentTime&&(b=this.i.currentTime);break;case 3:z.Za&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.Vc&&b>a&&(b=a);return b};u.prototype.pf=function(){return!this.qc&&!this.Uc&&!this.Ob&&!this.Ee()};u.prototype.du=function(){var a=this.volume*B;switch(this.J){case 0:"undefined"!==typeof this.i.volume&&this.i.volume!==a&&(this.i.volume=a);break;case 1:1===this.buffer.J?this.Ha.gain.value=a*this.Bf:"undefined"!==
typeof this.i.volume&&this.i.volume!==a&&(this.i.volume=a)}};u.prototype.Qh=function(a){switch(this.J){case 0:this.i.muted!==!!a&&(this.i.muted=!!a);break;case 1:1===this.buffer.J?(this.Bf=a?0:1,this.Ha.gain.value=B*this.volume*this.Bf):this.i.muted!==!!a&&(this.i.muted=!!a)}};u.prototype.St=function(){this.sf=!0;this.Qh(this.sf||this.Eg)};u.prototype.Uo=function(a){this.Eg=!!a;this.Qh(this.sf||this.Eg)};u.prototype.tp=function(){var a=this.playbackRate;this.Je&&(a*=z.Uf);switch(this.J){case 0:this.i.playbackRate!==
a&&(this.i.playbackRate=a);break;case 1:1===this.buffer.J?this.i.playbackRate.value!==a&&(this.i.playbackRate.value=a):this.i.playbackRate!==a&&(this.i.playbackRate=a)}};u.prototype.Ut=function(b){switch(this.J){case 0:b?this.pf()?(this.i.pause(),this.Fd=!0):this.Fd=!1:this.Fd&&this.i.play();break;case 1:b?this.pf()?(1===this.buffer.J?(this.yb=this.yk(),this.Vc&&(this.yb%=this.Ce()),a(this.i)):this.i.pause(),this.Fd=!0):this.Fd=!1:this.Fd&&(1===this.buffer.J?(this.i=x.createBufferSource(),this.i.buffer=
this.buffer.Y,this.i.connect(this.Ha),this.i.loop=this.Vc,this.Ha.gain.value=B*this.volume*this.Bf,this.startTime=(this.Je?z.Xb.da:z.ed.da)-this.yb,c(this.i,this.yb,this.Ce())):this.i.play());break;case 2:b?this.pf()?(this.i.pause(),this.Fd=!0):this.Fd=!1:this.Fd&&this.i.play()}};v.qa=function(a){this.type=a;z=this.b=a.b;M=this;this.jb=null;this.Mg=-600;!(this.b.oi||this.b.ji&&(this.b.Ag||this.b.ki))||this.b.Bg||this.b.P||this.b.Ok||(La=!0);x=null;"undefined"!==typeof AudioContext?(G=1,x=new AudioContext):
"undefined"!==typeof webkitAudioContext&&(G=1,x=new webkitAudioContext);(this.b.oi&&1===G||La)&&document.addEventListener("touchstart",function(){var a,b,c;!mc&&x&&(a=x.createBuffer(1,1,22050),b=x.createBufferSource(),b.buffer=a,b.connect(x.destination),l(b),mc=!0);if(La){if(!O)for(a=0,b=Ma.length;a<b;++a)c=Ma[a],c.Ob||c.qc||c.i.play();Ma.length=0}},!0);1!==G&&(this.b.pc&&"undefined"!==typeof window.Media?G=2:this.b.of&&(G=3));2===G&&(X=location.href,a=X.lastIndexOf("/"),-1<a&&(X=X.substr(0,a+1)),
X=X.replace("file://",""));if(this.b.vn&&this.b.Ps&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime.  Audio cannot be played until Quicktime is installed."),this.b.Md(this);else{if(this.b.Za)C=this.b.ji;else try{C=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){C=!1}this.b.nj(this)}};var ka=v.qa.prototype;ka.ga=function(){this.b.df=this;D=this.W[0];this.Gd=this.W[1];this.ut=0!==this.W[2];ja=this.W[3];N=this.W[4];this.Mg=-this.W[5];
pa=this.W[6];da=this.W[7];sa=this.W[8];this.jb=new w;var a=this.b.N||this.b.width,b=this.b.M||this.b.height;1===G&&("undefined"!==typeof x.listener.dopplerFactor&&(x.listener.dopplerFactor=0),x.listener.setPosition(a/2,b/2,this.Mg),x.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){ba&&ba.disconnect();qb=b.toLowerCase();ba=x.createMediaStreamSource(a);ba.connect(p(qb))});this.b.Gq(function(a){M.ot(a)});var c=this;this.b.Eq(function(a){c.jt(a)})};ka.jt=function(a){var b,
c,d;b=0;for(c=H.length;b<c;b++)d=H[b],d.Aa&&d.Aa.D===a&&(d.Aa.D=null,d.Xc&&d.pf()&&d.Vc&&d.stop());this.jb.D===a&&(this.jb.D=null)};ka.zb=function(){var a={silent:O,masterVolume:B,listenerZ:this.Mg,listenerUid:this.jb.gi()?this.jb.D.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,g,h,f;c=0;for(d=H.length;c<d;c++)e=H[c],!e.pf()||3===this.Gd||e.Gc&&1===this.Gd||!e.Gc&&2===this.Gd||(g=e.yk(),e.Vc&&(g%=e.Ce()),g={tag:e.tag,buffersrc:e.buffer.src,is_music:e.Gc,playbackTime:g,volume:e.volume,looping:e.Vc,
muted:e.sf,playbackRate:e.playbackRate,paused:e.qc,resume_position:e.yb},e.Xc&&(g.pan={},f=g.pan,e.Aa&&e.Aa.gi()?f.objUid=e.Aa.D.uid:(f.x=e.yo,f.y=e.zo,f.a=e.uo),f.ia=e.vo,f.oa=e.wo,f.og=e.xo),b.push(g));b=a.effects;for(h in S)if(S.hasOwnProperty(h)){e=[];c=0;for(d=S[h].length;c<d;c++)e.push({type:S[h][c].type,params:S[h][c].Hc});b[h]=e}return a};var Na=[];ka.Zb=function(a){var c=a.silent;B=a.masterVolume;this.Mg=a.listenerZ;this.jb.oh(null);var f=a.listenerUid;-1!==f&&(this.jb.yi=f,Na.push(this.jb));
var f=a.playing,k,l,p,u,q,K,z,ia,A,v,x;if(3!==this.Gd)for(k=0,l=H.length;k<l;k++)A=H[k],A.Gc&&1===this.Gd||(A.Gc||2!==this.Gd)&&A.stop();for(q in S)if(S.hasOwnProperty(q))for(k=0,l=S[q].length;k<l;k++)S[q][k].remove();Ta(S);for(q in a.effects)if(a.effects.hasOwnProperty(q))for(K=a.effects[q],k=0,l=K.length;k<l;k++)switch(p=K[k].type,v=K[k].params,p){case "filter":E(q,new b(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "delay":E(q,new e(v[0],v[1],v[2]));break;case "convolve":p=v[2];A=this.Zh(p,!1);A.Y?
p=new h(A.Y,v[0],v[1],p):(p=new h(null,v[0],v[1],p),A.mo=v[0],A.Hh=p);E(q,p);break;case "flanger":E(q,new d(v[0],v[1],v[2],v[3],v[4]));break;case "phaser":E(q,new n(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "gain":E(q,new s(v[0]));break;case "tremolo":E(q,new m(v[0],v[1]));break;case "ringmod":E(q,new t(v[0],v[1]));break;case "distortion":E(q,new y(v[0],v[1],v[2],v[3],v[4]));break;case "compressor":E(q,new r(v[0],v[1],v[2],v[3],v[4]));break;case "analyser":E(q,new g(v[0],v[1]))}k=0;for(l=f.length;k<
l;k++)3===this.Gd||(a=f[k],p=a.buffersrc,u=a.is_music,q=a.tag,K=a.playbackTime,z=a.looping,ia=a.volume,x=(v=a.pan)&&v.hasOwnProperty("objUid")?v.objUid:-1,u&&1===this.Gd)||!u&&2===this.Gd||((A=this.bn(p,q,u,z,ia))?(A.yb=a.resume_position,A.Il(!!v),A.play(z,ia,K),A.tp(),A.du(),A.Qh(A.sf||A.Eg),a.paused&&A.pause(),a.muted&&A.St(),A.Qh(A.sf||A.Eg),v&&(-1!==x?(A.Aa=A.Aa||new w,A.Aa.yi=x,Na.push(A.Aa)):A.Hl(v.x,v.y,v.a,v.ia,v.oa,v.og))):(A=this.Zh(p,u),A.$i=K,A.Oi=a.paused,v&&(-1!==x?A.Hf.push({oo:x,Hk:v.ia,
il:v.oa,ll:v.og,gp:q}):A.Hf.push({x:v.x,y:v.y,Aq:v.a,Hk:v.ia,il:v.oa,ll:v.og,gp:q}))));if(c&&!O){k=0;for(l=H.length;k<l;k++)H[k].Uo(!0);O=!0}else if(!c&&O){k=0;for(l=H.length;k<l;k++)H[k].Uo(!1);O=!1}};ka.fd=function(){var a,b,c,d;a=0;for(b=Na.length;a<b;a++)c=Na[a],d=this.b.bi(c.yi),c.oh(d),c.yi=-1,d&&(L=d.x,I=d.y);Na.length=0};ka.ot=function(a){if(!this.ut){!a&&x&&x.resume&&x.resume();var b,c;b=0;for(c=H.length;b<c;b++)H[b].Ut(a);a&&x&&x.suspend&&x.suspend()}};ka.Oa=function(){var a=this.b.xe,b,
c,d;b=0;for(c=H.length;b<c;b++)d=H[b],d.Oa(a),0===d.J||3===d.J||d.Uc||d.Ob||!d.Ee()||(d.Ob=!0,ia=d.tag,z.trigger(hc.prototype.e.zj,M)),0!==D&&d.tp();var e,g;for(e in S)if(S.hasOwnProperty(e))for(d=S[e],b=0,c=d.length;b<c;b++)g=d[b],g.Oa&&g.Oa();1===G&&this.jb.gi()&&(this.jb.Oa(a),L=this.jb.D.x,I=this.jb.D.y,x.listener.setPosition(this.jb.D.x,this.jb.D.y,this.Mg),x.listener.setVelocity(this.jb.Ak(),this.jb.Bk(),0))};var Oa=[];ka.Tt=function(a){var b,c,d,e,g,h=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],
e=d[0],d=2*d[1],(g=4<e.length&&".ogg"===e.substr(e.length-4))&&C||!g&&!C)Oa.push({filename:e,size:d,D:null}),h+=d;return h};ka.Xt=function(){var a,b,c,d;a=0;for(b=Oa.length;a<b;++a)c=Oa[a],d=this.b.lk+c.filename,c.D=this.Zh(d,!1)};ka.ns=function(){var a=0,b,c,d;b=0;for(c=Oa.length;b<c;++b)d=Oa[b],d.D.Os()||d.D.Hs()||this.b.P||this.b.ki?a+=d.size:d.D.un()&&(a+=Math.floor(d.size/2));return a};ka.Zh=function(a,b){var c,d,e,g=null;c=0;for(d=wa.length;c<d;c++)if(e=wa[c],e.src===a){g=e;break}g||(g=new F(a,
b),wa.push(g));return g};ka.bn=function(a,b,c,d,e){var g,h,f;g=0;for(h=H.length;g<h;g++)if(f=H[g],f.src===a&&(f.Qq()||c))return f.tag=b,f;a=this.Zh(a,c);if(!a.Y)return"<preload>"!==b&&(a.Pi=b,a.cl=d,a.am=e),null;f=new u(a,b);H.push(f);return f};var Ha=[];K.prototype.zj=function(a){return fb(ia,a)};v.e=new K;A.prototype.Play=function(a,b,c,d){!O&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),Q=this.bn(this.b.lk+a[0]+(C?".ogg":".m4a"),d,a[1],0!==b,c))&&(Q.Il(!1),Q.play(0!==b,c))};v.ja=new A;v.fb=new function(){}})();
function ic(k){this.b=k}
(function(){function k(){}var p=ic.prototype;p.Pa=function(f){this.va=f;this.b=f.b};p.Pa.prototype.ga=function(){};p.qa=function(f){this.type=f;this.b=f.b;this.Vk=Array(256);this.uj=Array(256);this.me=0};var f=p.qa.prototype;f.ga=function(){var f=this;this.b.P||(jQuery(document).keydown(function(c){f.kt(c)}),jQuery(document).keyup(function(c){f.lt(c)}))};var q=[32,33,34,35,36,37,38,39,40,44];f.kt=function(f){var c=!1;window!=window.top&&-1<q.indexOf(f.which)&&(f.preventDefault(),c=!0,f.stopPropagation());
if(this.Vk[f.which])this.uj[f.which]&&!c&&f.preventDefault();else{this.Vk[f.which]=!0;this.me=f.which;this.b.Z=!0;this.b.trigger(ic.prototype.e.Vp,this);var a=this.b.trigger(ic.prototype.e.iq,this),b=this.b.trigger(ic.prototype.e.jq,this);this.b.Z=!1;if(a||b)this.uj[f.which]=!0,c||f.preventDefault()}};f.lt=function(f){this.Vk[f.which]=!1;this.me=f.which;this.b.Z=!0;this.b.trigger(ic.prototype.e.Wp,this);var c=this.b.trigger(ic.prototype.e.lq,this),a=this.b.trigger(ic.prototype.e.kq,this);this.b.Z=
!1;if(c||a||this.uj[f.which])this.uj[f.which]=!0,f.preventDefault()};f.zb=function(){return{triggerKey:this.me}};f.Zb=function(f){this.me=f.triggerKey};k.prototype.iq=function(f){return f===this.me};k.prototype.Vp=function(){return!0};k.prototype.Wp=function(){return!0};k.prototype.lq=function(f){return f===this.me};k.prototype.jq=function(f){return f===this.me};k.prototype.kq=function(f){return f===this.me};p.e=new k;p.ja=new function(){};p.fb=new function(){}})();function jc(k){this.b=k}
(function(){function k(){}function p(){}var f=jc.prototype;f.Pa=function(c){this.va=c;this.b=c.b};f.Pa.prototype.ga=function(){};f.qa=function(c){this.type=c;this.b=c.b;this.Dh=Array(4);this.jp=this.pj=this.Vf=this.zd=this.yd=0;this.Ek=!1};var q=f.qa.prototype;q.ga=function(){var c=this;if(!this.b.P){jQuery(document).mousemove(function(a){c.$g(a)});jQuery(document).mousedown(function(a){c.Zg(a)});jQuery(document).mouseup(function(a){c.ah(a)});jQuery(document).dblclick(function(a){c.ht(a)});var a=
function(a){c.qt(a)};document.addEventListener("mousewheel",a,!1);document.addEventListener("DOMMouseScroll",a,!1)}};var l={left:0,top:0};q.$g=function(c){var a=this.b.P?l:jQuery(this.b.canvas).offset();this.yd=c.pageX-a.left;this.zd=c.pageY-a.top};q.ho=function(){return 0<this.b.hb?!0:0<=this.yd&&0<=this.zd&&this.yd<this.b.width&&this.zd<this.b.height};q.Zg=function(c){this.ho()&&(this.b.nf&&!this.b.wd&&c.preventDefault(),this.Dh[c.which]=!0,this.b.Z=!0,this.b.trigger(jc.prototype.e.Up,this),this.Vf=
c.which-1,this.pj=0,this.b.trigger(jc.prototype.e.hm,this),this.b.trigger(jc.prototype.e.Bj,this),this.b.Z=!1)};q.ah=function(c){this.Dh[c.which]&&(this.b.nf&&!this.b.wd&&c.preventDefault(),this.b.nf=!0,this.Dh[c.which]=!1,this.b.Z=!0,this.Vf=c.which-1,this.b.trigger(jc.prototype.e.oq,this),this.b.Z=!1)};q.ht=function(c){this.ho()&&(c.preventDefault(),this.b.Z=!0,this.Vf=c.which-1,this.pj=1,this.b.trigger(jc.prototype.e.hm,this),this.b.trigger(jc.prototype.e.Bj,this),this.b.Z=!1)};q.qt=function(c){this.jp=
0>(c.wheelDelta?c.wheelDelta:c.detail?-c.detail:0)?0:1;this.Ek=!1;this.b.Z=!0;this.b.trigger(jc.prototype.e.rq,this);this.b.Z=!1;this.Ek&&gb(c)&&c.preventDefault()};k.prototype.hm=function(c,a){return c===this.Vf&&a===this.pj};k.prototype.Up=function(){return!0};k.prototype.Jp=function(c){return this.Dh[c+1]};k.prototype.oq=function(c){return c===this.Vf};k.prototype.Lp=function(c){var a=this.b.tk();return Ra(this.b.Sf(c,this.yd,this.zd,a.zg),a.zg)};k.prototype.Bj=function(c,a,b){return c!==this.Vf||
a!==this.pj?!1:this.b.Sf(b,this.yd,this.zd,!1)};k.prototype.rq=function(c){this.Ek=!0;return c===this.jp};f.e=new k;f.ja=new function(){};p.prototype.pm=function(c,a){var b,e,h,d,f;ga(a)?(b=this.b.sd(0),e=b.scale,h=b.Db,d=b.uc,f=b.j,b.scale=1,b.Db=1,b.uc=1,b.j=0,c.u(b.na(this.yd,this.zd,!0)),b.scale=e,b.Db=h,b.uc=d,b.j=f):(b=P(a)?this.b.sd(a):this.b.qg(a))?c.u(b.na(this.yd,this.zd,!0)):c.u(0)};p.prototype.qm=function(c,a){var b,e,h,d,f;ga(a)?(b=this.b.sd(0),e=b.scale,h=b.Db,d=b.vc,f=b.j,b.scale=1,
b.Db=1,b.vc=1,b.j=0,c.u(b.na(this.yd,this.zd,!1)),b.scale=e,b.Db=h,b.vc=d,b.j=f):(b=P(a)?this.b.sd(a):this.b.qg(a))?c.u(b.na(this.yd,this.zd,!1)):c.u(0)};f.fb=new p})();function kc(k){this.b=k}
(function(){function k(f){this.ka=f;this.Qa=!1;this.j=this.speed=this.y=this.x=0;this.opacity=1;this.Pd=this.mf=this.size=this.ei=0}var p=kc.prototype;p.Pa=function(f){this.va=f;this.b=f.b};var f=p.Pa.prototype;f.ga=function(){this.B||(this.I=new Image,this.I.Yj=this.lj,this.O=null,this.b.cm(this.I,this.kj))};f.Gi=function(){this.B||(this.O=null)};f.Hi=function(){this.B||!this.c.length||this.O||(this.O=this.b.n.xf(this.I,!0,this.b.U,this.xh))};f.Og=function(){this.B||this.O||!this.b.n||(this.O=this.b.n.xf(this.I,
!0,this.b.U,this.xh))};f.sj=function(){this.B||this.c.length||!this.O||(this.b.n.deleteTexture(this.O),this.O=null)};f.Ti=function(f){f.drawImage(this.I,0,0)};k.prototype.init=function(){var f=this.ka;this.x=f.x-f.xj/2+Math.random()*f.xj;this.y=f.y-f.yj/2+Math.random()*f.yj;this.speed=f.Lk-f.ej/2+Math.random()*f.ej;this.j=f.j-f.fj/2+Math.random()*f.fj;this.opacity=f.Jk;this.size=f.Kk-f.cj/2+Math.random()*f.cj;this.ei=f.Dk-f.fi/2+Math.random()*f.fi;this.Pd=this.mf=0};k.prototype.Oa=function(f){var c=
this.ka;this.x+=Math.cos(this.j)*this.speed*f;this.y+=Math.sin(this.j)*this.speed*f;this.y+=this.mf*f;this.speed+=c.Fj*f;this.size+=this.ei*f;this.mf+=c.rk*f;this.Pd+=f;1>this.size?this.Qa=!1:(0!==c.Jg&&(this.j+=Math.random()*c.Jg*f-c.Jg*f/2),0!==c.Lg&&(this.speed+=Math.random()*c.Lg*f-c.Lg*f/2),0!==c.Kg&&(this.opacity+=Math.random()*c.Kg*f-c.Kg*f/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=c.gf&&this.Pd>=c.timeout&&(this.Qa=!1),2===c.gf&&0>=this.speed&&(this.Qa=!1))};k.prototype.kc=
function(f){var c=this.ka.opacity*this.opacity;if(0!==c){0===this.ka.gf&&(c*=1-this.Pd/this.ka.timeout);f.globalAlpha=c;var c=this.x-this.size/2,a=this.y-this.size/2;this.ka.b.Zc&&(c=c+.5|0,a=a+.5|0);f.drawImage(this.ka.type.I,c,a,this.size,this.size)}};k.prototype.qb=function(f){var c=this.ka.opacity*this.opacity;0===this.ka.gf&&(c*=1-this.Pd/this.ka.timeout);var a=this.size,b=a*this.ka.Co,e=this.x-a/2,h=this.y-a/2;this.ka.b.Zc&&(e=e+.5|0,h=h+.5|0);1>b||0===c||(b<f.bt||b>f.el?(f.Ve(c),f.lh(e,h,e+
a,h,e+a,h+a,e,h+a)):f.wt(this.x,this.y,b,c))};k.prototype.left=function(){return this.x-this.size/2};k.prototype.right=function(){return this.x+this.size/2};k.prototype.top=function(){return this.y-this.size/2};k.prototype.bottom=function(){return this.y+this.size/2};p.qa=function(f){this.type=f;this.b=f.b};var f=p.qa.prototype,q=[];f.ga=function(){var f=this.W;this.Wi=f[0];this.fj=V(f[1]);this.Pf=f[2];this.Ll=!0;this.Lk=f[3];this.Kk=f[4];this.Jk=f[5]/100;this.Dk=f[6];this.xj=f[7];this.yj=f[8];this.ej=
f[9];this.cj=f[10];this.fi=f[11];this.Fj=f[12];this.rk=f[13];this.Jg=f[14];this.Lg=f[15];this.Kg=f[16];this.gf=f[17];this.timeout=f[18];this.Te=0;this.Co=1;this.Li=this.x;this.Ni=this.y;this.Mi=this.x;this.Ki=this.y;this.Hq(function(c){c.Xa.set(c.Li,c.Ni,c.Mi,c.Ki);c.ef.qh(c.Xa);c.Ch=!1;c.fu()});this.Ic||(this.lb=[]);this.b.nj(this);this.type.Og();if(1===this.Pf)for(f=0;f<this.Wi;f++)this.Hj().opacity=0;this.Xh=!0};f.zb=function(){var f={r:this.Wi,sc:this.fj,st:this.Pf,s:this.Ll,isp:this.Lk,isz:this.Kk,
io:this.Jk,gr:this.Dk,xr:this.xj,yr:this.yj,spr:this.ej,szr:this.cj,grnd:this.fi,acc:this.Fj,g:this.rk,lar:this.Jg,lsr:this.Lg,lor:this.Kg,dm:this.gf,to:this.timeout,pcc:this.Te,ft:this.Xh,p:[]},c,a,b,e=f.p;c=0;for(a=this.lb.length;c<a;c++)b=this.lb[c],e.push([b.x,b.y,b.speed,b.j,b.opacity,b.ei,b.size,b.mf,b.Pd]);return f};f.Zb=function(f){this.Wi=f.r;this.fj=f.sc;this.Pf=f.st;this.Ll=f.s;this.Lk=f.isp;this.Kk=f.isz;this.Jk=f.io;this.Dk=f.gr;this.xj=f.xr;this.yj=f.yr;this.ej=f.spr;this.cj=f.szr;this.fi=
f.grnd;this.Fj=f.acc;this.rk=f.g;this.Jg=f.lar;this.Lg=f.lsr;this.Kg=f.lor;this.gf=f.dm;this.timeout=f.to;this.Te=f.pcc;this.Xh=f.ft;q.push.apply(q,this.lb);this.lb.length=0;var c,a,b,e=f.p;f=0;for(c=e.length;f<c;f++)a=this.Hj(),b=e[f],a.x=b[0],a.y=b[1],a.speed=b[2],a.j=b[3],a.opacity=b[4],a.ei=b[5],a.size=b[6],a.mf=b[7],a.Pd=b[8]};f.Ff=function(){q.push.apply(q,this.lb);this.lb.length=0};f.Hj=function(){var f;q.length?(f=q.pop(),f.ka=this):f=new k(this);this.lb.push(f);f.Qa=!0;return f};f.Oa=function(){var f=
this.b.uk(this),c,a,b,e;if(0===this.Pf&&this.Ll)for(this.Te+=f*this.Wi,a=T(this.Te),this.Te-=a,c=0;c<a;c++)b=this.Hj(),b.init();this.Li=this.x;this.Ni=this.y;this.Mi=this.x;this.Ki=this.y;e=c=0;for(a=this.lb.length;c<a;c++)b=this.lb[c],this.lb[e]=b,this.b.ha=!0,1===this.Pf&&this.Xh&&b.init(),b.Oa(f),b.Qa?(b.left()<this.Li&&(this.Li=b.left()),b.right()>this.Mi&&(this.Mi=b.right()),b.top()<this.Ni&&(this.Ni=b.top()),b.bottom()>this.Ki&&(this.Ki=b.bottom()),e++):q.push(b);this.lb.length=e;this.xa();
this.Xh=!1;1===this.Pf&&0===this.lb.length&&this.b.Md(this)};f.kc=function(f){var c,a,b,e=this.d;c=0;for(a=this.lb.length;c<a;c++)b=this.lb[c],b.right()>=e.ya&&b.bottom()>=e.za&&b.left()<=e.Ga&&b.top()<=e.Fa&&b.kc(f)};f.qb=function(f){this.Co=this.d.Ub();f.Nb(this.type.O);var c,a,b,e=this.d;c=0;for(a=this.lb.length;c<a;c++)b=this.lb[c],b.right()>=e.ya&&b.bottom()>=e.za&&b.left()<=e.Ga&&b.top()<=e.Fa&&b.qb(f)};p.e=new function(){};p.ja=new function(){};p.fb=new function(){}})();
function gc(k){this.b=k}
(function(){function k(){if(0===this.ak.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Qf?b.drawImage(this.I,this.Df,this.Ef,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.I,0,0,this.width,this.height);this.ak=a.toDataURL("image/png")}return this.ak}function p(){}var f=gc.prototype;f.Pa=function(a){this.va=a;this.b=a.b};var q=f.Pa.prototype;q.ga=function(){if(!this.B){var a,b,c,f,l,m,p,q,r;this.Cc=[];this.wg=
!1;a=0;for(b=this.Fb.length;a<b;a++){l=this.Fb[a];p={};p.name=l[0];p.speed=l[1];p.loop=l[2];p.Bl=l[3];p.Xi=l[4];p.Do=l[5];p.R=l[6];p.frames=[];c=0;for(f=l[7].length;c<f;c++)m=l[7][c],q={},q.kj=m[0],q.lj=m[1],q.Df=m[2],q.Ef=m[3],q.width=m[4],q.height=m[5],q.duration=m[6],q.tb=m[7],q.ub=m[8],q.Ik=m[9],q.Qi=m[10],q.Eo=m[11],q.Qf=0!==q.width,q.ak="",q.tv=k,r={left:0,top:0,right:1,bottom:1},q.Jl=r,q.O=null,(r=this.b.Zr(m[0]))?q.I=r:(q.I=new Image,q.I.Uq=m[0],q.I.Yj=m[1],q.I.Oq=null,this.b.cm(q.I,m[0])),
p.frames.push(q),this.Cc.push(q);this.Fb[a]=p}}};q.sp=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c=this.c[a],c.Lh=c.hc.O};q.Gi=function(){if(!this.B){var a,b,c;a=0;for(b=this.Cc.length;a<b;++a)c=this.Cc[a],c.I.Oq=null,c.O=null;this.wg=!1;this.sp()}};q.Hi=function(){if(!this.B&&this.c.length){var a,b,c;a=0;for(b=this.Cc.length;a<b;++a)c=this.Cc[a],c.O=this.b.n.xf(c.I,!1,this.b.U,c.Eo);this.sp()}};q.Og=function(){if(!this.B&&!this.wg&&this.b.n){var a,b,c;a=0;for(b=this.Cc.length;a<b;++a)c=
this.Cc[a],c.O=this.b.n.xf(c.I,!1,this.b.U,c.Eo);this.wg=!0}};q.sj=function(){if(!this.B&&!this.c.length&&this.wg){var a,b,c;a=0;for(b=this.Cc.length;a<b;++a)c=this.Cc[a],this.b.n.deleteTexture(c.O),c.O=null;this.wg=!1}};var l=[];q.Ti=function(a){var b,c,f;b=l.length=0;for(c=this.Cc.length;b<c;++b)f=this.Cc[b].I,-1===l.indexOf(f)&&(a.drawImage(f,0,0),l.push(f))};f.qa=function(a){this.type=a;this.b=a.b;a=this.type.Fb[0].frames[0].Qi;this.Ic?this.Qc.rh(a):this.Qc=new $a(a)};var c=f.qa.prototype;c.ga=
function(){this.visible=0===this.W[0];this.hg=0!==this.W[3];1===this.type.Fb.length&&1===this.type.Fb[0].frames.length||0===this.type.Fb[0].speed||this.b.nj(this);this.ra=this.an(this.W[1])||this.type.Fb[0];this.A=this.W[2];0>this.A&&(this.A=0);this.A>=this.ra.frames.length&&(this.A=this.ra.frames.length-1);var a=this.ra.frames[this.A];this.Qc.rh(a.Qi);this.tb=a.tb;this.ub=a.ub;this.kg=this.ra.speed;this.Ic?this.Oc.reset():this.Oc=new Ya;this.rd=this.Oc.da;this.pe=!0;this.gd=0;this.oe=!0;this.Uj=
this.ym="";this.Rq=0;this.Tj=-1;this.type.Og();var b,c,f,k,m,l,p,a=0;for(b=this.type.Fb.length;a<b;a++)for(k=this.type.Fb[a],c=0,f=k.frames.length;c<f;c++)m=k.frames[c],0===m.width&&(m.width=m.I.width,m.height=m.I.height),m.Qf&&(p=m.I,l=m.Jl,l.left=m.Df/p.width,l.top=m.Ef/p.height,l.right=(m.Df+m.width)/p.width,l.bottom=(m.Ef+m.height)/p.height,0===m.Df&&0===m.Ef&&m.width===p.width&&m.height===p.height&&(m.Qf=!1));this.hc=this.ra.frames[this.A];this.Lh=this.hc.O};c.zb=function(){var a={a:this.ra.R,
f:this.A,cas:this.kg,fs:this.rd,ar:this.gd,at:this.Oc.da};this.pe||(a.ap=this.pe);this.oe||(a.af=this.oe);return a};c.Zb=function(a){var b=this.ds(a.a);b&&(this.ra=b);this.A=a.f;0>this.A&&(this.A=0);this.A>=this.ra.frames.length&&(this.A=this.ra.frames.length-1);this.kg=a.cas;this.rd=a.fs;this.gd=a.ar;this.Oc.reset();this.Oc.da=a.at;this.pe=a.hasOwnProperty("ap")?a.ap:!0;this.oe=a.hasOwnProperty("af")?a.af:!0;this.hc=this.ra.frames[this.A];this.Lh=this.hc.O;this.Qc.rh(this.hc.Qi);this.tb=this.hc.tb;
this.ub=this.hc.ub};c.Kj=function(a){this.A=a?0:this.ra.frames.length-1;this.pe=!1;this.ym=this.ra.name;this.b.trigger(gc.prototype.e.Tp,this);this.b.trigger(gc.prototype.e.Sp,this);this.gd=0};c.vv=function(){return this.Oc.da};c.Oa=function(){this.Oc.add(this.b.uk(this));this.Uj.length&&this.Zq();0<=this.Tj&&this.$q();var a=this.Oc.da,b=this.ra,c=b.frames[this.A],f=c.duration/this.kg;this.pe&&a>=this.rd+f&&(this.oe?this.A++:this.A--,this.rd+=f,this.A>=b.frames.length&&(b.Do?(this.oe=!1,this.A=b.frames.length-
2):b.loop?this.A=b.Xi:(this.gd++,this.gd>=b.Bl?this.Kj(!1):this.A=b.Xi)),0>this.A&&(b.Do?(this.A=1,this.oe=!0,b.loop||(this.gd++,this.gd>=b.Bl&&this.Kj(!0))):b.loop?this.A=b.Xi:(this.gd++,this.gd>=b.Bl?this.Kj(!0):this.A=b.Xi)),0>this.A?this.A=0:this.A>=b.frames.length&&(this.A=b.frames.length-1),a>this.rd+b.frames[this.A].duration/this.kg&&(this.rd=a),a=b.frames[this.A],this.bf(c,a),this.b.ha=!0)};c.an=function(a){var b,c,f;b=0;for(c=this.type.Fb.length;b<c;b++)if(f=this.type.Fb[b],fb(f.name,a))return f;
return null};c.ds=function(a){var b,c,f;b=0;for(c=this.type.Fb.length;b<c;b++)if(f=this.type.Fb[b],f.R===a)return f;return null};c.Zq=function(){var a=this.ra.frames[this.A],b=this.an(this.Uj);this.Uj="";!b||fb(b.name,this.ra.name)&&this.pe||(this.ra=b,this.kg=b.speed,0>this.A&&(this.A=0),this.A>=this.ra.frames.length&&(this.A=this.ra.frames.length-1),1===this.Rq&&(this.A=0),this.pe=!0,this.rd=this.Oc.da,this.oe=!0,this.bf(a,this.ra.frames[this.A]),this.b.ha=!0)};c.$q=function(){var a=this.ra.frames[this.A],
b=this.A;this.A=T(this.Tj);0>this.A&&(this.A=0);this.A>=this.ra.frames.length&&(this.A=this.ra.frames.length-1);b!==this.A&&(this.bf(a,this.ra.frames[this.A]),this.rd=this.Oc.da,this.b.ha=!0);this.Tj=-1};c.bf=function(a,b){var c=a.width,f=a.height,k=b.width,m=b.height;c!=k&&(this.width*=k/c);f!=m&&(this.height*=m/f);this.tb=b.tb;this.ub=b.ub;this.Qc.rh(b.Qi);this.xa();this.hc=b;this.Lh=b.O;c=0;for(f=this.G.length;c<f;c++)k=this.G[c],k.nt&&k.nt(a,b);this.b.trigger(gc.prototype.e.bf,this)};c.kc=function(a){a.globalAlpha=
this.opacity;var b=this.hc,c=b.Qf,f=b.I,k=this.x,m=this.y,l=this.width,p=this.height;if(0===this.j&&0<=l&&0<=p)k-=this.tb*l,m-=this.ub*p,this.b.Zc&&(k=Math.round(k),m=Math.round(m)),c?a.drawImage(f,b.Df,b.Ef,b.width,b.height,k,m,l,p):a.drawImage(f,k,m,l,p);else{this.b.Zc&&(k=Math.round(k),m=Math.round(m));a.save();var q=0<l?1:-1,g=0<p?1:-1;a.translate(k,m);1===q&&1===g||a.scale(q,g);a.rotate(this.j*q*g);k=0-this.tb*ma(l);m=0-this.ub*ma(p);c?a.drawImage(f,b.Df,b.Ef,b.width,b.height,k,m,ma(l),ma(p)):
a.drawImage(f,k,m,ma(l),ma(p));a.restore()}};c.qb=function(a){a.Nb(this.Lh);a.Ve(this.opacity);var b=this.hc,c=this.ef;if(this.b.Zc){var f=Math.round(this.x)-this.x,k=Math.round(this.y)-this.y;b.Qf?a.Dd(c.Ab+f,c.Bb+k,c.yc+f,c.zc+k,c.ec+f,c.fc+k,c.ac+f,c.cc+k,b.Jl):a.lh(c.Ab+f,c.Bb+k,c.yc+f,c.zc+k,c.ec+f,c.fc+k,c.ac+f,c.cc+k)}else b.Qf?a.Dd(c.Ab,c.Bb,c.yc,c.zc,c.ec,c.fc,c.ac,c.cc,b.Jl):a.lh(c.Ab,c.Bb,c.yc,c.zc,c.ec,c.fc,c.ac,c.cc)};c.js=function(a){var b=this.hc,c,f;c=0;for(f=b.Ik.length;c<f;c++)if(fb(a,
b.Ik[c][0]))return c;return-1};c.xk=function(a,b){var c=this.hc,f=c.Ik,k;k=R(a)?this.js(a):a-1;k=T(k);if(0>k||k>=f.length)return b?this.x:this.y;var l=(f[k][1]-c.tb)*this.width,f=f[k][2],f=(f-c.ub)*this.height,c=Math.cos(this.j);k=Math.sin(this.j);var p=l*c-f*k,f=f*c+l*k,l=p+this.x,f=f+this.y;return b?l:f};var a=new ca,b=!1;new U(0,0,0,0);q.finish=function(c){if(b){if(c){var f=this.b.rb().Sb.Wc;c=null.fa();var d=a.Mc(),k,l;if(c.la){c.la=!1;c.c.length=d.length;k=0;for(l=d.length;k<l;k++)c.c[k]=d[k];
if(f)for(k=c.T.length=0,l=null.c.length;k<l;k++)d=null.c[k],a.contains(d)||c.T.push(d)}else if(f)for(f=c.c.length,c.c.length=f+d.length,k=0,l=d.length;k<l;k++)c.c[f+k]=d[k],Aa(c.T,d[k]);else xa(c.c,d);null.hd()}a.clear();b=!1}};p.prototype.Sp=function(a){return fb(this.ym,a)};p.prototype.Tp=function(){return!0};p.prototype.bf=function(){return!0};f.e=new p;f.ja=new function(){};f.fb=new function(){}})();function lc(k){this.b=k}
(function(){function k(){}function p(){}function f(){}var q=lc.prototype;q.Pa=function(a){this.va=a;this.b=a.b};q.Pa.prototype.ga=function(){};q.qa=function(a){this.type=a;this.b=a.b};var l=q.qa.prototype,c="text password email number tel url".split(" ");-1<navigator.userAgent.indexOf("MSIE 9")&&(c[2]="text",c[3]="text",c[4]="text",c[5]="text");l.ga=function(){if(this.b.P)J("[Construct 2] Textbox plugin not supported on this platform - the object will not be created");else{6===this.W[7]?(this.q=document.createElement("textarea"),
jQuery(this.q).css("resize","none")):(this.q=document.createElement("input"),this.q.type=c[this.W[7]]);this.q.id=this.W[9];jQuery(this.q).appendTo(this.b.Fh?this.b.Fh:"body");this.q.autocomplete="off";this.q.value=this.W[0];this.q.placeholder=this.W[1];this.q.title=this.W[2];this.q.disabled=0===this.W[4];this.q.readOnly=1===this.W[5];this.q.spellcheck=1===this.W[6];this.Kq=0!==this.W[8];this.ye=!1;0===this.W[3]&&(jQuery(this.q).hide(),this.visible=!1,this.ye=!0);var a=function(a){return function(){a.b.trigger(lc.prototype.e.mm,
a)}}(this);this.q.oninput=a;-1!==navigator.userAgent.indexOf("MSIE")&&(this.q.oncut=a);this.q.onclick=function(a){return function(c){c.stopPropagation();a.b.Z=!0;a.b.trigger(lc.prototype.e.Yp,a);a.b.Z=!1}}(this);this.q.ondblclick=function(a){return function(c){c.stopPropagation();a.b.Z=!0;a.b.trigger(lc.prototype.e.aq,a);a.b.Z=!1}}(this);this.q.addEventListener("touchstart",function(a){a.stopPropagation()},!1);this.q.addEventListener("touchmove",function(a){a.stopPropagation()},!1);this.q.addEventListener("touchend",
function(a){a.stopPropagation()},!1);jQuery(this.q).mousedown(function(a){a.stopPropagation()});jQuery(this.q).mouseup(function(a){a.stopPropagation()});jQuery(this.q).keydown(function(a){13!==a.which&&27!=a.which&&a.stopPropagation()});jQuery(this.q).keyup(function(a){13!==a.which&&27!=a.which&&a.stopPropagation()});this.Jn=this.Kn=this.Bn=this.Gn=this.In=this.Dn=0;this.up(!0);this.b.nj(this)}};l.zb=function(){return{text:this.q.value,placeholder:this.q.placeholder,tooltip:this.q.title,disabled:!!this.q.disabled,
readonly:!!this.q.readOnly,spellcheck:!!this.q.spellcheck}};l.Zb=function(a){this.q.value=a.text;this.q.placeholder=a.placeholder;this.q.title=a.tooltip;this.q.disabled=a.disabled;this.q.readOnly=a.readonly;this.q.spellcheck=a.spellcheck};l.Ff=function(){this.b.P||(jQuery(this.q).remove(),this.q=null)};l.Oa=function(){this.up()};l.up=function(a){if(!this.b.P){var b=this.d.ib(this.x,this.y,!0),c=this.d.ib(this.x,this.y,!1),f=this.d.ib(this.x+this.width,this.y+this.height,!0),d=this.d.ib(this.x+this.width,
this.y+this.height,!1),k=this.b.width/this.b.devicePixelRatio,l=this.b.height/this.b.devicePixelRatio;!this.visible||!this.d.visible||0>=f||0>=d||b>=k||c>=l?(this.ye||jQuery(this.q).hide(),this.ye=!0):(1>b&&(b=1),1>c&&(c=1),f>=k&&(f=k-1),d>=l&&(d=l-1),k=window.innerWidth,l=window.innerHeight,a||this.Dn!==b||this.In!==c||this.Gn!==f||this.Bn!==d||this.Kn!==k||this.Jn!==l?(this.Dn=b,this.In=c,this.Gn=f,this.Bn=d,this.Kn=k,this.Jn=l,this.ye&&(jQuery(this.q).show(),this.ye=!1),a=Math.round(b)+jQuery(this.b.canvas).offset().left,
k=Math.round(c)+jQuery(this.b.canvas).offset().top,jQuery(this.q).css("position","absolute"),jQuery(this.q).offset({left:a,top:k}),jQuery(this.q).width(Math.round(f-b)),jQuery(this.q).height(Math.round(d-c)),this.Kq&&jQuery(this.q).css("font-size",this.d.Ub(!0)/this.b.devicePixelRatio-.2+"em")):this.ye&&(jQuery(this.q).show(),this.ye=!1))}};l.kc=function(){};l.qb=function(){};k.prototype.Ep=function(a,b){return this.b.P?!1:0===b?fb(this.q.value,a):this.q.value===a};k.prototype.mm=function(){return!0};
k.prototype.Yp=function(){return!0};k.prototype.aq=function(){return!0};q.e=new k;p.prototype.Ej=function(a){this.b.P||(this.visible=0!==a)};p.prototype.vq=function(a,b){this.b.P||jQuery(this.q).css(a,b)};q.ja=new p;f.prototype.Text=function(a){this.b.P?a.mb(""):a.mb(this.q.value)};q.fb=new f})();function nc(k){this.b=k}
(function(){var k=nc.prototype;k.Pa=function(f){this.va=f;this.b=f.b};var p=k.Pa.prototype;p.ga=function(){this.B||(this.I=new Image,this.I.Yj=this.lj,this.b.cm(this.I,this.kj),this.O=this.pattern=null)};p.Gi=function(){this.B||(this.O=null)};p.Hi=function(){if(!this.B&&this.c.length){this.O||(this.O=this.b.n.xf(this.I,!0,this.b.U,this.xh));var f,k;f=0;for(k=this.c.length;f<k;f++)this.c[f].O=this.O}};p.Og=function(){this.B||this.O||!this.b.n||(this.O=this.b.n.xf(this.I,!0,this.b.U,this.xh))};p.sj=
function(){this.B||this.c.length||!this.O||(this.b.n.deleteTexture(this.O),this.O=null)};p.Ti=function(f){f.drawImage(this.I,0,0)};k.qa=function(f){this.type=f;this.b=f.b};p=k.qa.prototype;p.ga=function(){this.visible=0===this.W[0];this.mh=new U(0,0,0,0);this.nn=!1;this.I=this.type.I;this.b.n?(this.type.Og(),this.O=this.type.O):(this.type.pattern||(this.type.pattern=this.b.ea.createPattern(this.type.I,"repeat")),this.pattern=this.type.pattern)};p.fd=function(){this.nn=!1;this.I=this.type.I};p.Ff=
function(){this.b.n&&this.nn&&this.O&&(this.b.n.deleteTexture(this.O),this.O=null)};p.kc=function(f){f.globalAlpha=this.opacity;f.save();f.fillStyle=this.pattern;var k=this.x,l=this.y;this.b.Zc&&(k=Math.round(k),l=Math.round(l));var c=-(this.tb*this.width),a=-(this.ub*this.height),b=c%this.I.width,e=a%this.I.height;0>b&&(b+=this.I.width);0>e&&(e+=this.I.height);f.translate(k,l);f.rotate(this.j);f.translate(b,e);f.fillRect(c-b,a-e,this.width,this.height);f.restore()};p.qb=function(f){f.Nb(this.O);
f.Ve(this.opacity);var k=this.mh;k.right=this.width/this.I.width;k.bottom=this.height/this.I.height;var l=this.ef;if(this.b.Zc){var c=Math.round(this.x)-this.x,a=Math.round(this.y)-this.y;f.Dd(l.Ab+c,l.Bb+a,l.yc+c,l.zc+a,l.ec+c,l.fc+a,l.ac+c,l.cc+a,k)}else f.Dd(l.Ab,l.Bb,l.yc,l.zc,l.ec,l.fc,l.ac,l.cc,k)};k.e=new function(){};k.ja=new function(){};k.fb=new function(){}})();function Z(k){this.b=k}
(function(){function k(a){h=a.x;d=a.y;n=a.z}function p(a){s=a.x;m=a.y;t=a.z}function f(a,b,c,d){var e;e=y.length?y.pop():new q;e.init(a,b,c,d);return e}function q(){this.th=this.id=this.y=this.x=this.ij=this.hj=this.Xk=this.time=this.Nl=0;this.yh=this.qj=!1}function l(){}function c(){}var a=Z.prototype;a.Pa=function(a){this.va=a;this.b=a.b};a.Pa.prototype.ga=function(){};a.qa=function(a){this.type=a;this.b=a.b;this.touches=[];this.gl=!1};var b=a.qa.prototype,e={left:0,top:0};b.pg=function(a){var b,
c;b=0;for(c=this.touches.length;b<c;b++)if(this.touches[b].id===a)return b;return-1};var h=0,d=0,n=0,s=0,m=0,t=0,y=[];q.prototype.init=function(a,b,c,d){var e=Ua();this.Nl=this.Xk=this.time=e;this.hj=a;this.ij=b;this.x=a;this.y=b;this.id=c;this.th=d;this.yh=this.qj=!1};q.prototype.update=function(a,b,c){this.Xk=this.time;this.time=a;this.x=b;this.y=c;!this.yh&&15<=Qa(this.hj,this.ij,this.x,this.y)&&(this.yh=!0)};q.prototype.Zs=function(a,b){!this.qj&&500<=Ua()-this.Nl&&!this.yh&&15>Qa(this.hj,this.ij,
this.x,this.y)&&(this.qj=!0,a.cd=this.th,a.Wf=this.id,a.lf=b,a.b.trigger(Z.prototype.e.gq,a),a.md=this.x,a.nd=this.y,a.b.trigger(Z.prototype.e.hq,a),a.lf=0)};var r=-1E3,g=-1E3,w=-1E4;q.prototype.eo=function(a,b){if(!this.qj){var c=Ua();333>=c-this.Nl&&!this.yh&&15>Qa(this.hj,this.ij,this.x,this.y)&&(a.cd=this.th,a.Wf=this.id,a.lf=b,666>=c-w&&25>Qa(r,g,this.x,this.y)?(a.b.trigger(Z.prototype.e.bq,a),a.md=this.x,a.nd=this.y,a.b.trigger(Z.prototype.e.cq,a),g=r=-1E3,w=-1E4):(a.b.trigger(Z.prototype.e.pq,
a),a.md=this.x,a.nd=this.y,a.b.trigger(Z.prototype.e.qq,a),r=this.x,g=this.y,w=c),a.lf=0)}};b.ga=function(){this.Qs=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.lf=this.Wf=this.cd=this.nd=this.md=this.um=this.tm=this.rm=this.Dq=this.Cq=this.Bq=this.gh=this.fh=this.eh=0;this.iu=0!==this.W[0];var a=0<this.b.hb?document:this.b.canvas,b=document;this.b.Za?b=a=window.Canvas:this.b.Wb&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.dh(a)},
!1),a.addEventListener("pointermove",function(a){c.bh(a)},!1),b.addEventListener("pointerup",function(a){c.Cd(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Cd(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.dh(a)},!1),a.addEventListener("MSPointerMove",function(a){c.bh(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Cd(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Cd(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.Ji(a)},
!1),a.addEventListener("touchmove",function(a){c.Ii(a)},!1),b.addEventListener("touchend",function(a){c.Gf(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Gf(a,!0)},!1));if(this.Qs){var d=function(a){a=a.reading;c.rm=a.accelerationX;c.tm=a.accelerationY;c.um=a.accelerationZ},e=function(a){a=a.reading;c.eh=a.yawDegrees;c.fh=a.pitchDegrees;c.gh=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged",
d));var g=Windows.Devices.Sensors.Inclinometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(f&&f.removeEventListener("readingchanged",d),g&&g.removeEventListener("readingchanged",e)):(f&&f.addEventListener("readingchanged",d),g&&g.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.eh=a.alpha||
0;c.fh=a.beta||0;c.gh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Bq=a.accelerationIncludingGravity.x||0,c.Cq=a.accelerationIncludingGravity.y||0,c.Dq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.rm=a.acceleration.x||0,c.tm=a.acceleration.y||0,c.um=a.acceleration.z||0)},!1);this.iu&&!this.b.P&&(jQuery(document).mousemove(function(a){c.$g(a)}),jQuery(document).mousedown(function(a){c.Zg(a)}),jQuery(document).mouseup(function(a){c.ah(a)}));
this.b.of&&!this.b.Za&&AppMobi.accelerometer.watchAcceleration(k,{frequency:40,adjustForRotation:!0});this.b.pc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(p,null,{frequency:40});this.b.Zt(this)};b.bh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.pg(a.pointerId),c=Ua();if(0<=b){var d=this.b.P?e:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};b.dh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var b=this.b.P?e:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Ua();this.cd=this.touches.length;this.Wf=a.pointerId;this.touches.push(f(c,b,a.pointerId,this.cd));this.b.Z=!0;this.b.trigger(Z.prototype.e.lm,this);this.b.trigger(Z.prototype.e.om,this);this.md=c;this.nd=b;this.b.trigger(Z.prototype.e.nm,this);this.b.Z=
!1}};b.Cd=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var c=this.pg(a.pointerId);this.cd=0<=c?this.touches[c].th:-1;this.Wf=0<=c?this.touches[c].id:-1;this.b.Z=!0;this.b.trigger(Z.prototype.e.km,this);this.b.trigger(Z.prototype.e.Dj,this);0<=c&&(b||this.touches[c].eo(this,c),100>y.length&&y.push(this.touches[c]),this.touches.splice(c,1));this.b.Z=!1}};b.Ii=function(a){a.preventDefault&&a.preventDefault();var b=Ua(),
c,d,f,g;c=0;for(d=a.changedTouches.length;c<d;c++)if(f=a.changedTouches[c],g=this.pg(f.identifier),0<=g){var h=this.b.P?e:jQuery(this.b.canvas).offset();g=this.touches[g];2>b-g.time||g.update(b,f.pageX-h.left,f.pageY-h.top)}};b.Ji=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var b=this.b.P?e:jQuery(this.b.canvas).offset();Ua();this.b.Z=!0;var c,d,g,h;c=0;for(d=a.changedTouches.length;c<d;c++)if(g=a.changedTouches[c],h=this.pg(g.identifier),-1===h){h=g.pageX-b.left;var k=g.pageY-b.top;this.cd=
this.touches.length;this.Wf=g.identifier;this.touches.push(f(h,k,g.identifier,this.cd));this.b.trigger(Z.prototype.e.lm,this);this.b.trigger(Z.prototype.e.om,this);this.md=h;this.nd=k;this.b.trigger(Z.prototype.e.nm,this)}this.b.Z=!1};b.Gf=function(a,b){a.preventDefault&&gb(a)&&a.preventDefault();this.b.Z=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.pg(e.identifier),0<=e&&(this.cd=this.touches[e].th,this.Wf=this.touches[e].id,this.b.trigger(Z.prototype.e.km,
this),this.b.trigger(Z.prototype.e.Dj,this),b||this.touches[e].eo(this,e),100>y.length&&y.push(this.touches[e]),this.touches.splice(e,1));this.b.Z=!1};b.rv=function(){return this.b.of&&0===this.eh&&0!==n?90*n:this.b.pc&&0===this.eh&&0!==t?90*t:this.eh};b.sv=function(){return this.b.of&&0===this.fh&&0!==d?-90*d:this.b.pc&&0===this.fh&&0!==m?90*m:this.fh};b.uv=function(){return this.b.of&&0===this.gh&&0!==h?90*h:this.b.pc&&0===this.gh&&0!==s?90*s:this.gh};b.Zg=function(a){a.preventDefault&&this.b.nf&&
!this.b.wd&&a.preventDefault();this.Ji({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.gl=!0};b.$g=function(a){this.gl&&this.Ii({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};b.ah=function(a){a.preventDefault&&this.b.nf&&!this.b.wd&&a.preventDefault();this.b.nf=!0;this.Gf({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.gl=!1};b.Pl=function(){var a,b,c,d=Ua();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Xk=d),c.Zs(this,
a)};l.prototype.om=function(){return!0};l.prototype.Dj=function(){return!0};l.prototype.nm=function(a){return a?this.b.Sf(a,this.md,this.nd,!1):!1};var F=[];l.prototype.Mp=function(a){if(!a)return!1;var b=a.fa(),c=b.mc(),d,e,f,g,h,k;f=0;for(g=c.length;f<g;f++){var l=c[f];l.Wa();h=0;for(k=this.touches.length;h<k;h++)if(e=this.touches[h],d=l.d.na(e.x,e.y,!0),e=l.d.na(e.x,e.y,!1),l.Hb(d,e)){F.push(l);break}}return F.length?(b.la=!1,xa(b.c,F),a.hd(),F.length=0,!0):!1};l.prototype.lm=function(a){a=Math.floor(a);
return a===this.cd};l.prototype.km=function(a){a=Math.floor(a);return a===this.cd};l.prototype.gq=function(){return!0};l.prototype.pq=function(){return!0};l.prototype.bq=function(){return!0};l.prototype.hq=function(a){return a?this.b.Sf(a,this.md,this.nd,!1):!1};l.prototype.qq=function(a){return a?this.b.Sf(a,this.md,this.nd,!1):!1};l.prototype.cq=function(a){return a?this.b.Sf(a,this.md,this.nd,!1):!1};a.e=new l;c.prototype.pm=function(a,b){var c=this.lf;if(0>c||c>=this.touches.length)a.u(0);else{var d,
e,f,g,h;ga(b)?(d=this.b.sd(0),e=d.scale,f=d.Db,g=d.uc,h=d.j,d.scale=1,d.Db=1,d.uc=1,d.j=0,a.u(d.na(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Db=f,d.uc=g,d.j=h):(d=P(b)?this.b.sd(b):this.b.qg(b))?a.u(d.na(this.touches[c].x,this.touches[c].y,!0)):a.u(0)}};c.prototype.qm=function(a,b){var c=this.lf;if(0>c||c>=this.touches.length)a.u(0);else{var d,e,f,g,h;ga(b)?(d=this.b.sd(0),e=d.scale,f=d.Db,g=d.vc,h=d.j,d.scale=1,d.Db=1,d.vc=1,d.j=0,a.u(d.na(this.touches[c].x,this.touches[c].y,!1)),d.scale=
e,d.Db=f,d.vc=g,d.j=h):(d=P(b)?this.b.sd(b):this.b.qg(b))?a.u(d.na(this.touches[c].x,this.touches[c].y,!1)):a.u(0)}};a.fb=new c})();
function oc(k){this.b=k;var p=this;this.b.P||(jQuery(document).mousemove(function(f){p.$g(f)}),jQuery(document).mousedown(function(f){p.Zg(f)}),jQuery(document).mouseup(function(f){p.ah(f)}));k=0<this.b.hb?document:this.b.canvas;this.b.Za?k=window.Canvas:this.b.Wb&&(k=window);window.navigator.pointerEnabled?(k.addEventListener("pointerdown",function(f){p.dh(f)},!1),k.addEventListener("pointermove",function(f){p.bh(f)},!1),k.addEventListener("pointerup",function(f){p.Cd(f)},!1),k.addEventListener("pointercancel",
function(f){p.Cd(f)},!1)):window.navigator.msPointerEnabled?(k.addEventListener("MSPointerDown",function(f){p.dh(f)},!1),k.addEventListener("MSPointerMove",function(f){p.bh(f)},!1),k.addEventListener("MSPointerUp",function(f){p.Cd(f)},!1),k.addEventListener("MSPointerCancel",function(f){p.Cd(f)},!1)):(k.addEventListener("touchstart",function(f){p.Ji(f)},!1),k.addEventListener("touchmove",function(f){p.Ii(f)},!1),k.addEventListener("touchend",function(f){p.Gf(f)},!1),k.addEventListener("touchcancel",
function(f){p.Gf(f)},!1))}
(function(){function k(c){var a,b;a=0;for(b=c.G.length;a<b;a++)if(c.G[a]instanceof f.qa)return c.G[a];return null}function p(){}var f=oc.prototype,q={left:0,top:0};f.Zg=function(c){1===c.which&&this.ml("leftmouse",c.pageX,c.pageY)};f.$g=function(c){1===c.which&&this.nl("leftmouse",c.pageX,c.pageY)};f.ah=function(c){1===c.which&&this.ol("leftmouse")};f.Ji=function(c){c.preventDefault&&gb(c)&&c.preventDefault();var a,b,e,f;a=0;for(b=c.changedTouches.length;a<b;a++)e=c.changedTouches[a],f=e.identifier,
this.ml(f?f.toString():"<none>",e.pageX,e.pageY)};f.Ii=function(c){c.preventDefault&&c.preventDefault();var a,b,e,f;a=0;for(b=c.changedTouches.length;a<b;a++)e=c.changedTouches[a],f=e.identifier,this.nl(f?f.toString():"<none>",e.pageX,e.pageY)};f.Gf=function(c){c.preventDefault&&gb(c)&&c.preventDefault();var a,b,e;a=0;for(b=c.changedTouches.length;a<b;a++)e=c.changedTouches[a],e=e.identifier,this.ol(e?e.toString():"<none>")};f.dh=function(c){c.pointerType!==c.MSPOINTER_TYPE_MOUSE&&"mouse"!==c.pointerType&&
(c.preventDefault&&gb(c)&&c.preventDefault(),this.ml(c.pointerId.toString(),c.pageX,c.pageY))};f.bh=function(c){c.pointerType!==c.MSPOINTER_TYPE_MOUSE&&"mouse"!==c.pointerType&&(c.preventDefault&&c.preventDefault(),this.nl(c.pointerId.toString(),c.pageX,c.pageY))};f.Cd=function(c){c.pointerType!==c.MSPOINTER_TYPE_MOUSE&&"mouse"!==c.pointerType&&(c.preventDefault&&gb(c)&&c.preventDefault(),this.ol(c.pointerId.toString()))};f.ml=function(c,a,b){var e=this.b.P?q:jQuery(this.b.canvas).offset();a-=e.left;
b-=e.top;var f,d,l,p,e=this.Cf.Mc(),m,t,y,r=null;m=0;for(t=e.length;m<t;m++)if(y=e[m],f=k(y),f.enabled&&!f.we&&(f=y.d.na(a,b,!0),d=y.d.na(a,b,!1),y.Wa(),y.Hb(f,d)))r?y.d.index>r.d.index?(r=y,l=f,p=d):y.d.index===r.d.index&&y.nc()>r.nc()&&(r=y,l=f,p=d):(r=y,l=f,p=d);r&&k(r).it(c,l,p)};f.nl=function(c,a,b){var e=this.b.P?q:jQuery(this.b.canvas).offset();a-=e.left;b-=e.top;var f,d=this.Cf.Mc(),l,p,m;l=0;for(p=d.length;l<p;l++)f=d[l],m=k(f),!m.enabled||!m.we||m.we&&m.ek!==c||(e=f.d.na(a,b,!0),f=f.d.na(a,
b,!1),m.mt(e,f))};f.ol=function(c){var a=this.Cf.Mc(),b,e,f;b=0;for(e=a.length;b<e;b++)f=a[b],f=k(f),f.we&&f.ek===c&&f.pt()};f.Pa=function(c){this.behavior=c;this.b=c.b};f.Pa.prototype.ga=function(){};f.qa=function(c,a){this.type=c;this.behavior=c.behavior;this.wb=a;this.b=c.b};var l=f.qa.prototype;l.ga=function(){this.we=!1;this.Tm=this.Sm=0;this.ek="<none>";this.Lj=this.W[0];this.enabled=0!==this.W[1]};l.zb=function(){return{enabled:this.enabled}};l.Zb=function(c){this.enabled=c.enabled;this.we=
!1};l.it=function(c,a,b){this.Sm=a-this.wb.x;this.Tm=b-this.wb.y;this.we=!0;this.ek=c;this.b.Z=!0;this.b.trigger(oc.prototype.e.dq,this.wb);this.b.Z=!1};l.mt=function(c,a){var b=c-this.Sm,e=a-this.Tm;if(0===this.Lj){if(this.wb.x!==b||this.wb.y!==e)this.wb.x=b,this.wb.y=e,this.wb.xa()}else 1===this.Lj?this.wb.x!==b&&(this.wb.x=b,this.wb.xa()):2===this.Lj&&this.wb.y!==e&&(this.wb.y=e,this.wb.xa())};l.pt=function(){this.we=!1;this.b.Z=!0;this.b.trigger(oc.prototype.e.fq,this.wb);this.b.Z=!1};l.Oa=function(){};
p.prototype.dq=function(){return!0};p.prototype.fq=function(){return!0};f.e=new p;f.ja=new function(){};f.fb=new function(){}})();
function fc(){return[hc,ic,jc,kc,gc,lc,nc,Z,oc,jc.prototype.e.Lp,gc.prototype.ja.wq,jc.prototype.e.Bj,Z.prototype.e.Mp,Y.prototype.ja.xq,jc.prototype.e.Jp,Y.prototype.e.Fp,Y.prototype.ja.uq,Y.prototype.ja.Rp,Y.prototype.ja.yp,gc.prototype.ja.Ej,Y.prototype.ja.zq,Z.prototype.e.Dj,Y.prototype.ja.Hp,Y.prototype.e.im,lc.prototype.ja.Ej,lc.prototype.ja.vq,gc.prototype.e.Np,Y.prototype.e.yq,hc.prototype.ja.Play,lc.prototype.e.mm,lc.prototype.e.Ep,lc.prototype.ja.Gp,Y.prototype.e.gm,Y.prototype.e.Dp,Y.prototype.fb.Vs,
lc.prototype.fb.Text,Y.prototype.ja.sq,Y.prototype.ja.tq,Y.prototype.ja.Qp]};
