f||f>=a.Za.length||(a.Za[f]=n[b]));if(k.Ie){f=d.w;a.n.X!==f.l&&(n=a.n,a.n=this.W.Aj(f.l),a.n?(n.Hg(a,!0),a.n.dh(a,!0),a.ta(),a.n.ri(0)):(a.n=n,c||this.le(a)));a.x=f.x;a.y=f.y;a.width=f.w;a.height=f.h;
a.gd=f.zi;a.e=f.hasOwnProperty("a")?f.a:0;a.opacity=f.hasOwnProperty("o")?f.o:1;a.Nb=f.hasOwnProperty("hX")?f.hX:.5;a.Ob=f.hasOwnProperty("hY")?f.hY:.5;a.visible=f.hasOwnProperty("v")?f.v:!0;a.gh=f.hasOwnProperty("ce")?f.ce:!0;a.bi=f.hasOwnProperty("mts")?f.mts:-1;a.wb=f.hasOwnProperty("bm")?f.bm:0;a.hh=lb(a.wb);this.C&&mb(a,a.wb,this.C);a.ta();if(f.hasOwnProperty("fx"))for(c=0,n=f.fx.length;ck||(a.oe[k]=f.fx[c].active,a.Na[k]=f.fx[c].params);a.ed()}if(h=d.behs)for(b in h)h.hasOwnProperty(b)&&
(c=this.sv(a,parseInt(b,10)),0>c||a.R[c].Yb(h[b]));d.data&&a.Yb(d.data)};e.prototype.fp=function(a,d,c){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(d,c)},c)};e.prototype.hp=function(a,d){this.fp("data.js",function(c){var b=new FileReader;b.onload=function(d){a(d.target.result)};b.onerror=d;b.readAsText(c)},d)};var V=[],J=0;e.prototype.Om=function(){if(V.length&&!(8<=J)){J++;var a=V.shift();this.gu(a.filename,a.wx,a.Eu)}};e.prototype.gp=function(a,
d,c){var b=this;V.push({filename:a,wx:function(a){J--;b.Om();d(a)},Eu:function(a){J--;b.Om();c(a)}});this.Om()};e.prototype.gu=function(a,d,c){this.fp(a,function(a){var c=new FileReader;c.onload=function(a){d(a.target.result)};c.readAsArrayBuffer(a)},c)};e.prototype.kv=function(a,d,c){this.gp(a,function(a){a=URL.createObjectURL(new Blob([a]));d(a)},c)};e.prototype.Yv=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};e.prototype.ir=function(a,d){this.Jh&&
!this.Yv(d)?this.kv(d,function(d){a.src=d},function(a){alert("Failed to load image: "+a)}):a.src=d};e.prototype.yk=function(a,d){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=d:(a.webkitImageSmoothingEnabled=d,a.mozImageSmoothingEnabled=d,a.msImageSmoothingEnabled=d)};Vb=function(a){return new e(document.getElementById(a))};Wb=function(a,d){return new e({dc:!0,width:a,height:d})};window.cr_createRuntime=Vb;window.cr_createDCRuntime=Wb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=
!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Nf=!0;document.body.appendChild(a);a=new e(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 e(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);
return a}})();window.cr_getC2Runtime=function(){var e=document.getElementById("c2canvas");return e?e.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(e,q){var l=window.cr_getC2Runtime();l&&l.eu(e,q)};window.cr_sizeCanvas=function(e,q){if(0!==e&&0!==q){var l=window.cr_getC2Runtime();l&&l.setSize(e,q)}};window.cr_setSuspended=function(e){var q=window.cr_getC2Runtime();q&&q.setSuspended(e)};
(function(){function e(a,c){this.b=a;this.jf=null;this.scrollX=this.b.Ga/2;this.scrollY=this.b.Fa/2;this.scale=1;this.e=0;this.Yf=!0;this.name=c[0];this.Ew=c[1];this.Dw=c[2];this.width=c[1];this.height=c[2];this.Ir=c[3];this.or=c[4];this.X=c[5];var b=c[6],f,p;this.P=[];this.Ah=[];f=0;for(p=b.length;f=this.P.length&&(n=this.P.length-1);h.n=this.P[n];-1===h.n.c.indexOf(h)&&h.n.c.push(h);h.n.If=!0}if(!b)for(a=0,k=this.P.length;ak?h.siblings.push(g.c[k]):g.Gc&&(p=this.b.ze(g.Gc,h.n,!0,h.x,h.y,!0),this.b.ub(),g.Sk(),h.siblings.push(p),r.push(p)));a=0;for(k=
this.sf.length;athis.width-c&&(a=this.width-
c);athis.height-c&&(a=this.height-c);aR&&(R=0);0>E&&(E=0);S>x&&(S=x);U>y&&(U=y);0>M&&(M=0);0>L&&(L=0);ta>x&&(ta=x);ua>y&&(ua=y);C.left=R/x;C.top=1-E/y;C.right=S/x;C.bottom=1-U/y}else C.left=G.left=0,C.top=G.top=0,C.right=G.right=1,C.bottom=G.bottom=1;ka=b&&(a.li(p[0].Va)||0!==q||0!==ka||1!==b.opacity||b.type.za.nq)||c&&!b&&1!==c.opacity;a.br();if(ka){l[z]||
(l[z]=a.Fc(x,y,this.b.Aa));if(l[z].bf!==x||l[z].$e!==y)a.deleteTexture(l[z]),l[z]=a.Fc(x,y,this.b.Aa);a.fc(0);a.Oc(l[z]);u=ua-L;a.clearRect(M,y-L-u,ta-M,u);b?b.Db(a):(a.cc(this.b.ab),a.Qe(c.opacity),a.Cd(),a.translate(-W,-A),a.fd(),a.Ad(R,U,S,U,S,E,R,E,C));G.left=G.top=0;G.right=G.bottom=1;b&&(r=C.top,C.top=C.bottom,C.bottom=r);z=1;V=0}a.Qe(1);q=p.length-1;var Fa=a.jn(p[q].Va)||!c&&!b&&!this.b.rc;t=r=0;for(v=p.length;tb||(c&&this.Bc&&a.$b&&a.$b.right>=a.$b.left&&(a.Ba(),this.rb.update(a,a.$b,null),a.$b.set(0,0,-1,-1)),b===this.c.length-1?this.c.pop():(za(this.c,b),this.ri(b)),this.cd=!0)};l.prototype.dh=function(a,c){a.gd=this.c.length;this.c.push(a);c&&this.Bc&&a.$b&&a.ta();this.cd=!0};l.prototype.Qw=
function(a){this.c.unshift(a);this.ri(0)};l.prototype.uw=function(a,c,b){var f=a.td();c=c.td();za(this.c,f);fthis.ka||b.top>this.ja||(c.globalCompositeOperation=a.hh,a.Ic(c))}};l.prototype.Uk=function(){this.Nd=!0;var a=this.Mb(0,0,!0,!0),c=this.Mb(0,0,!1,!0);this.Nd=!1;this.b.yc&&(a=Math.round(a),c=Math.round(c));this.uk(a,c,null)};l.prototype.uk=function(a,c,b){var f=this.uc();this.ca=
a;this.la=c;this.ka=a+1/f*this.b.K;this.ja=c+1/f*this.b.J;this.ca>this.ka&&(a=this.ca,this.ca=this.ka,this.ka=a);this.la>this.ja&&(a=this.la,this.la=this.ja,this.ja=a);a=this.lb();0!==a&&(b&&(b.translate(this.b.K/2,this.b.J/2),b.rotate(-a),b.translate(this.b.K/-2,this.b.J/-2)),this.fe.set(this.ca,this.la,this.ka,this.ja),this.fe.offset((this.ca+this.ka)/-2,(this.la+this.ja)/-2),this.Dr.mr(this.fe,a),this.Dr.Jo(this.fe),this.fe.offset((this.ca+this.ka)/2,(this.la+this.ja)/2),this.ca=this.fe.left,this.la=
this.fe.top,this.ka=this.fe.right,this.ja=this.fe.bottom)};l.prototype.ff=function(a){if(this.Bd=this.uj){this.b.ab||(this.b.ab=a.Fc(this.b.K,this.b.J,this.b.Aa));if(this.b.ab.bf!==this.b.K||this.b.ab.$e!==this.b.J)a.deleteTexture(this.b.ab),this.b.ab=a.Fc(this.b.K,this.b.J,this.b.Aa);a.Oc(this.b.ab)}this.Nd=!0;var c=this.Mb(0,0,!0,!0),b=this.Mb(0,0,!1,!0);this.Nd=!1;this.b.yc&&(c=Math.round(c),b=Math.round(b));this.uk(c,b,null);c=this.uc();a.Cd();a.scale(c,c);a.sn(-this.lb());a.translate((this.ca+
this.ka)/-2,(this.la+this.ja)/-2);a.fd();this.Bc?(this.jb.left=this.rb.Tb(this.ca),this.jb.top=this.rb.Ub(this.la),this.jb.right=this.rb.Tb(this.ka),this.jb.bottom=this.rb.Ub(this.ja),this.cd||!this.jb.nh(this.tg)?(t(this.Ud),c=this.cm(),this.cd=!1,this.tg.ih(this.jb)):c=this.Ud):c=this.c;for(var f,p=null,b=c.length-1;0<=b;--b)f=c[b],f!==p&&(this.xu(c[b],a),p=f);this.Bc&&(this.Ud=c);this.dd||(this.Al=this.b.hf++,a.zk(this.Al),a.cr(1,1,1),a.kp(),a.Zw())};l.prototype.Db=function(a){var c=0,b=0;if(this.Bd=
this.uj||1!==this.opacity||0this.ka||b.top>this.ja||(c.zk(a.hf),a.Nr?this.yu(a,c):(c.fc(0),c.Pe(a.Ib,a.Cb),a.Db(c)))}};l.prototype.xu=function(a,c){if(a.visible&&0!==a.width&&0!==a.height){a.Ba();var b=a.ea;b.rightthis.ka||b.top>this.ja||(a.hf=this.b.hf++,0===a.wb&&1===a.opacity&&a.be&&a.ff&&(c.zk(a.hf),
a.ff(c)))}};l.prototype.yu=function(a,c){var b=a.da[0].Va,f=a.da[0].index,p=this.uc();if(1!==a.da.length||c.jn(b)||c.Sw(b)||(a.e||a.n.lb())&&c.li(b)||1!==a.opacity||a.type.za.nq)this.fb.pn(c,this,a,this.Bd?this.b.ab:this.fb.uh()),c.Cd(),c.scale(p,p),c.sn(-this.lb()),c.translate((this.ca+this.ka)/-2,(this.la+this.ja)/-2),c.fd();else{c.fc(b);c.Pe(a.Ib,a.Cb);c.pk(b)&&(this.b.ga=!0);var h=0,g=0,n=0,w=0;c.li(b)&&(w=a.ea,h=this.Mc(w.left,w.top,!0),g=this.Mc(w.left,w.top,!1),n=this.Mc(w.right,w.bottom,!0),
w=this.Mc(w.right,w.bottom,!1),h=h/windowWidth,g=1-g/windowHeight,n=n/windowWidth,w=1-w/windowHeight);var e;a.ib&&a.ib.B?(e=a.ib.B,b=1/e.width,e=1/e.height):(b=1/a.width,e=1/a.height);c.Jg(this.Bd?this.b.ab:this.fb.uh(),b,e,h,g,n,w,p,this.lb(),this.ca,this.la,(this.ca+this.ka)/2,(this.la+this.ja)/2,this.b.nb.aa,a.Na[f]);a.Db(c)}};l.prototype.Mb=function(a,b,k,f){var p=this.b.devicePixelRatio;this.b.gg&&(a*=p,b*=p);var p=this.b.Kq,h=this.b.Lq,p=(this.fb.scrollX-p)*this.Xd+p,h=(this.fb.scrollY-h)*this.Yd+
h,g=p,n=h,w=1/this.uc(!f);f?(g-=this.b.K*w/2,n-=this.b.J*w/2):(g-=this.b.width*w/2,n-=this.b.height*w/2);g+=a*w;n+=b*w;b=this.lb();0!==b&&(g-=p,n-=h,a=Math.cos(b),b=Math.sin(b),f=g*a-n*b,n=n*a+g*b,g=f+p,n+=h);return k?g:n};l.prototype.Mc=function(a,b,k){var f=this.b.Kq,p=this.b.Lq,f=(this.fb.scrollX-f)*this.Xd+f,h=(this.fb.scrollY-p)*this.Yd+p,p=f,g=h,n=this.lb();if(0!==n){a-=f;b-=h;var w=Math.cos(-n),n=Math.sin(-n),e=a*w-b*n;b=b*w+a*n;a=e+f;b+=h}f=1/this.uc(!1);p-=this.b.K*f/2;g-=this.b.J*f/2;p=
(a-p)/f;return k?p:(b-g)/f};l.prototype.Hb=function(){var a,b,k,f={s:this.scale,a:this.e,vl:this.ca,vt:this.la,vr:this.ka,vb:this.ja,v:this.visible,bc:this.Tc,t:this.dd,px:this.Xd,py:this.Yd,o:this.opacity,zr:this.ke,fx:[],cg:this.kh,instances:[]};a=0;for(b=this.N.length;aa[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2=p.length&&(p.length=a.length+1);p[a.length]||(p[a.length]=[]);f=p[a.length];b=0;for(c=f.length;b=b.length&&
(b.length=this.Af+1),b[this.Af]=a):this.data=a};c.prototype.nf=function(){var a=this.b.pp();return!this.parent||this.Lh||!a||this.Lj?this.data:this.Af>=a.length||"undefined"===typeof a[this.Af]?this.nm:a[this.Af]};c.prototype.cb=function(){!this.parent||this.Lh||this.Lj||this.ae(this.nm)};Ub=c;k.prototype.toString=function(){return"include:"+this.zh.toString()};k.prototype.Qa=function(){this.zh=this.b.Ll[this.Vv];this.sheet.Ap.add(this);this.Ha=l(this.Ha);for(var a=this.parent;a;)a.group&&a.$i.push(this),
a=a.parent;this.Kr()};k.prototype.cb=function(){this.parent&&this.b.mi(this.b.A);this.zh.jm||this.zh.cb(!0);this.parent&&this.b.Eg(this.b.A)};k.prototype.Kr=function(){for(var a=this.parent;a;){if(a.group&&!a.ag){this.La=!1;return}a=a.parent}this.La=!0};dc=k;f.prototype.reset=function(a){this.Wb=a;this.Vb=this.ic=0;B(this.Ar);this.Jl=this.vf=!1};Tb=f})();
(function(){function e(b,a){this.Ea=b;this.b=b.b;this.type=a[0];this.get=[this.Uu,this.Qu,this.cv,this.hv,this.Fu,this.dv,this.Yu,this.Nu,this.Xu,this.bv,this.Gu,this.av,this.Ou,this.Zu,this.Vu,this.Wu,this.Ru,this.Su,this.Mu,this.gv,this.$u,this.Tu,this.Lu,this.Pu][this.type];var e=null;this.Vd=this.T=this.Oa=this.kb=this.Nk=this.second=this.first=this.value=null;this.Uc=-1;this.Wc=null;this.Or=-1;this.kf=this.Ii=null;this.Ig=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new bc(b,a[1]);break;case 18:this.first=new bc(b,a[1]);this.second=new bc(b,a[2]);this.Nk=new bc(b,a[3]);break;case 19:this.kb=this.b.me(a[1]);this.kb!==P.prototype.O.random&&this.kb!==P.prototype.O.Po||this.Ea.kr();this.Oa=[];this.T=[];3===a.length?(e=a[2],this.Oa.length=e.length+1):this.Oa.length=1;break;case 20:this.Vd=this.b.A[a[1]];this.Uc=-1;this.kb=this.b.me(a[2]);this.Ig=a[3];gc.Function&&this.kb===gc.Function.prototype.O.Sx&&this.Ea.kr();a[4]?this.Wc=new bc(b,a[4]):this.Wc=null;this.Oa=[];
this.T=[];6===a.length?(e=a[5],this.Oa.length=e.length+1):this.Oa.length=1;break;case 21:this.Vd=this.b.A[a[1]];this.Ig=a[2];a[3]?this.Wc=new bc(b,a[3]):this.Wc=null;this.Or=a[4];break;case 22:this.Vd=this.b.A[a[1]];this.Vd.xj(a[2]);this.Uc=this.Vd.Vl(a[2]);this.kb=this.b.me(a[3]);this.Ig=a[4];a[5]?this.Wc=new bc(b,a[5]):this.Wc=null;this.Oa=[];this.T=[];7===a.length?(e=a[6],this.Oa.length=e.length+1):this.Oa.length=1;break;case 23:this.Ii=a[1],this.kf=null}this.Ea.rw(this.Vd);4<=this.type&&17>=this.type&&
(this.first=new bc(b,a[1]),this.second=new bc(b,a[2]));if(e){var g,d;g=0;for(d=e.length;g=a||k<=-a)k%=a;0>k&&(k+=a);c.apply(p[k],e)};e.prototype.Lu=function(b){var a=this.Vd,e=this.Oa,g=this.T,d=this.Wc,c=this.Uc,k=this.kb,f=this.Ea.de,p=a.na(),h=p.Vc();if(!h.length)if(p.U.length)h=p.U;else{this.Ig?b.pc(""):b.xa(0);return}e[0]=b;b.Bf=a;b=q();l(g,e,b);d&&(d.get(b),b.eb()&&(f=b.data,h=a.c));--r;g=h.length;if(f>=g||f<=-g)f%=g;0>f&&(f+=g);f=h[f];h=0;a.H&&(h=f.type.Xf[a.Pd]);k.apply(f.R[c+h],e)};e.prototype.Tu=function(b){var a=this.Wc,e=this.Vd,g=this.Or,d=this.Ea.de,c=e.na(),
k=c.Vc();if(!k.length)if(c.U.length)k=c.U;else{this.Ig?b.pc(""):b.xa(0);return}if(a){c=q();a.get(c);if(c.eb()){d=c.data;k=e.c;0!==k.length&&(d%=k.length,0>d&&(d+=k.length));d=e.Zl(d);e=d.Za[g];ha(e)?b.pc(e):b.D(e);--r;return}--r}a=k.length;if(d>=a||d<=-a)d%=a;0>d&&(d+=a);d=k[d];k=0;e.H&&(k=d.type.oj[e.Pd]);e=d.Za[g+k];ha(e)?b.pc(e):b.D(e)};e.prototype.Uu=function(b){b.type=ec.Kf;b.data=this.value};e.prototype.Qu=function(b){b.type=ec.Jf;b.data=this.value};e.prototype.cv=function(b){b.type=ec.String;
b.data=this.value};e.prototype.hv=function(b){this.first.get(b);b.eb()&&(b.data=-b.data)};e.prototype.Fu=function(b){this.first.get(b);var a=q();this.second.get(a);b.eb()&&a.eb()&&(b.data+=a.data,a.jg()&&b.wg());--r};e.prototype.dv=function(b){this.first.get(b);var a=q();this.second.get(a);b.eb()&&a.eb()&&(b.data-=a.data,a.jg()&&b.wg());--r};e.prototype.Yu=function(b){this.first.get(b);var a=q();this.second.get(a);b.eb()&&a.eb()&&(b.data*=a.data,a.jg()&&b.wg());--r};e.prototype.Nu=function(b){this.first.get(b);
var a=q();this.second.get(a);b.eb()&&a.eb()&&(b.data/=a.data,b.wg());--r};e.prototype.Xu=function(b){this.first.get(b);var a=q();this.second.get(a);b.eb()&&a.eb()&&(b.data%=a.data,a.jg()&&b.wg());--r};e.prototype.bv=function(b){this.first.get(b);var a=q();this.second.get(a);b.eb()&&a.eb()&&(b.data=Math.pow(b.data,a.data),a.jg()&&b.wg());--r};e.prototype.Gu=function(b){this.first.get(b);var a=q();this.second.get(a);a.mg()||b.mg()?this.Iu(b,a):this.Hu(b,a);--r};e.prototype.Iu=function(b,a){b.mg()&&
a.mg()?this.Ku(b,a):this.Ju(b,a)};e.prototype.Ku=function(b,a){b.data+=a.data};e.prototype.Ju=function(b,a){b.mg()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.pc(b.data.toString()+a.data)};e.prototype.Hu=function(b,a){b.xa(b.data&&a.data?1:0)};e.prototype.av=function(b){this.first.get(b);var a=q();this.second.get(a);b.eb()&&a.eb()&&(b.data||a.data?b.xa(1):b.xa(0));--r};e.prototype.Mu=function(b){this.first.get(b);b.data?this.second.get(b):this.Nk.get(b)};e.prototype.Ou=function(b){this.first.get(b);
var a=q();this.second.get(a);b.xa(b.data===a.data?1:0);--r};e.prototype.Zu=function(b){this.first.get(b);var a=q();this.second.get(a);b.xa(b.data!==a.data?1:0);--r};e.prototype.Vu=function(b){this.first.get(b);var a=q();this.second.get(a);b.xa(b.dataa.data?1:0);--r};e.prototype.Su=function(b){this.first.get(b);
var a=q();this.second.get(a);b.xa(b.data>=a.data?1:0);--r};e.prototype.Pu=function(b){var a=this.kf.nf();ga(a)?b.D(a):b.pc(a)};bc=e;m.prototype.jg=function(){return this.type===ec.Jf};m.prototype.eb=function(){return this.type===ec.Kf||this.type===ec.Jf};m.prototype.mg=function(){return this.type===ec.String};m.prototype.wg=function(){this.jg()||(this.mg()&&(this.data=parseFloat(this.data)),this.type=ec.Jf)};m.prototype.xa=function(b){this.type=ec.Kf;this.data=Math.floor(b)};m.prototype.D=function(b){this.type=
ec.Jf;this.data=b};m.prototype.pc=function(b){this.type=ec.String;this.data=b};m.prototype.lr=function(b){ga(b)?(this.type=ec.Jf,this.data=b):ha(b)?(this.type=ec.String,this.data=b.toString()):(this.type=ec.Kf,this.data=0)};ac=m;ec={Kf:0,Jf:1,String:2}})();function P(e){this.b=e;this.gc=[]}
P.prototype.Hb=function(){var e={},q,l,m,t,r,b,a,v;e.waits=[];var g=e.waits,d;q=0;for(l=this.gc.length;qb)){var a,e,g,d=this.b.Eb(),c;t.length?c=t.pop():c={Sb:{},Ha:[]};c.Il=!1;c.time=this.b.nb.aa+b;c.rr="";c.Cn=!1;c.Vf=d.Wb;c.Vb=d.Vb+1;b=0;for(a=this.b.A.length;bd&&(a=d);b.D(a)};l.prototype.Be=function(b){b.D(this.b.Be)};l.prototype.Qg=
function(b){b.D(this.b.Qg)};l.prototype.time=function(b){b.D(this.b.nb.aa)};l.prototype.Pg=function(b){b.xa(this.b.Pg)};l.prototype.ak=function(b){b.xa(this.b.ak)};l.prototype.Rl=function(b){b.xa(this.b.Rl)};l.prototype.du=function(b,a,e,g,d){b.D(Xa(a,e,g,d))};l.prototype.e=function(b,a,e,g,d){b.D(Ia(Na(a,e,g,d)))};l.prototype.jx=function(b){b.D(this.b.W.scrollX)};l.prototype.kx=function(b){b.D(this.b.W.scrollY)};l.prototype.lw=function(b,a,e,g){b.D(Za(a,e,g))};l.prototype.left=function(b,a,e){b.pc(ha(a)?
a.substr(0,e):"")};l.prototype.right=function(b,a,e){b.pc(ha(a)?a.substr(a.length-e):"")};l.prototype.replace=function(b,a,e,g){ha(a)&&ha(e)&&ha(g)?b.pc(a.replace(new RegExp(gb(e),"gi"),g)):b.pc(ha(a)?a:"")};l.prototype.trim=function(b,a){b.pc(ha(a)?a.trim():"")};l.prototype.Po=function(b){var a=pa(Math.random()*(arguments.length-1));b.lr(arguments[a+1])};l.prototype.Bl=function(b){b.D(this.b.Bl/1E3)};l.prototype.Jx=function(b,a){var e=this.b.$l(a);b.D(e?e.ca:0)};l.prototype.Kx=function(b,a){var e=
this.b.$l(a);b.D(e?e.ka:0)};l.prototype.Ix=function(b,a){var e=this.b.$l(a);b.D(e?e.ja:0)};l.prototype.Tj=function(b){b.D(this.b.Tj)};l.prototype.Gw=function(b){b.xa(this.b.Ga)};l.prototype.Fw=function(b){b.xa(this.b.Fa)};m.O=new l;m.ax=function(){var b,a,e,g,d,c,k=this.b.Eb();b=0;for(e=this.gc.length;bthis.b.nb.aa)continue;k.Wb=g.Vf;k.Vb=g.Vb;k.ic=0;for(a in g.Sb)g.Sb.hasOwnProperty(a)&&(d=this.b.A[parseInt(a,10)].na(),c=g.Sb[a],
d.wa=c.vk,Ba(d.c,c.Rd),d=c,B(d.Rd),r.push(d));g.Vf.$w();this.b.zl(g.Ha);g.Il=!0}a=b=0;for(e=this.gc.length;ba.ka||b.top>a.ja)},d.Zx=function(){this.Ba();var a=this.ea,b=this.b.W;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},d.Ns=function(a,b,c){var d=this.na(),k=
d.Vc();if(!k.length)return!1;var g=k[0],e=g,m=Xa(g.x,g.y,b,c),l,t,r;l=1;for(t=k.length;lm)m=r,e=g;d.ii(e);return!0},c.lo=function(a){this.x!==a&&(this.x=a,this.ta())},c.lt=function(a){this.y!==a&&(this.y=a,this.ta())},c.ht=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.ta()},c.ty=function(a,b){var c=a.yv(this);if(c){var d;c.rh?(d=c.rh(b,!0),c=c.rh(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.ta()}},c.cy=
function(a){0!==a&&(this.x+=Math.cos(this.e)*a,this.y+=Math.sin(this.e)*a,this.ta())},c.us=function(a,b){0!==b&&(this.x+=Math.cos(I(a))*b,this.y+=Math.sin(I(a))*b,this.ta())},k.Zg=function(a){a.D(this.x)},k.il=function(a){a.D(this.y)},k.Be=function(a){a.D(this.b.yj(this))});r&&(d.Un=function(a,b){return fc(this.width,a,b)},d.Tx=function(a,b){return fc(this.height,a,b)},c.ko=function(a){this.width!==a&&(this.width=a,this.ta())},c.ry=function(a){this.height!==a&&(this.height=a,this.ta())},c.uy=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.ta()},k.xt=function(a){a.D(this.width)},k.Vx=function(a){a.D(this.height)},k.Px=function(a){this.Ba();a.D(this.ea.left)},k.Rx=function(a){this.Ba();a.D(this.ea.top)},k.Qx=function(a){this.Ba();a.D(this.ea.right)},k.Ox=function(a){this.Ba();a.D(this.ea.bottom)});b&&(d.Ur=function(a,b){return Oa(this.e,I(b))<=I(a)},d.os=function(a){return Qa(this.e,I(a))},d.ms=function(a,b){var c=Ma(a),d=Ma(b),k=Ka(this.e);return Qa(d,c)?Qa(k,c)&&
!Qa(k,d):!(!Qa(k,c)&&Qa(k,d))},c.ny=function(a){a=I(Ja(a));isNaN(a)||this.e===a||(this.e=a,this.ta())},c.ky=function(a){0===a||isNaN(a)||(this.e+=I(a),this.e=Ka(this.e),this.ta())},c.ly=function(a){0===a||isNaN(a)||(this.e-=I(a),this.e=Ka(this.e),this.ta())},c.Qs=function(a,b){var c=Pa(this.e,I(b),I(a));isNaN(c)||this.e===c||(this.e=c,this.ta())},c.my=function(a,b,c){a=Pa(this.e,Math.atan2(c-this.y,b-this.x),I(a));isNaN(a)||this.e===a||(this.e=a,this.ta())},c.vy=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.e===c||(this.e=c,this.ta())},k.Tr=function(a){a.D(La(this.e))});m||(d.as=function(a,b,c){return fc(this.Za[a],b,c)},d.ns=function(a){return this.Za[a]},d.hy=function(a,b){var c=this.na(),d=c.Vc();if(!d.length)return!1;var k=d[0],g=k,e=k.Za[b],m,l,t;m=1;for(l=d.length;me)e=t,g=k;c.ii(g);return!0},d.gy=function(a){var b,c,d,k,g;if(this.b.op().um){g=this.na();if(g.wa)for(g.wa=!1,B(g.c),B(g.U),d=this.c,b=0,c=d.length;ba?a=0:1k.n.index||d.n.index===k.n.index&&d.td()>k.td())k=d}else if(d.n.indexc)){var d=1===a;this.oe[c]!==d&&(this.oe[c]=d,this.ed(),this.b.ga=!0)}}},c.qy=function(a,b,c){if(this.b.q){var d=this.type.Yl(a);0>d||(a=this.type.N[d],d=this.Na[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.q.Cv(a.Va,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.La&&(this.b.ga=!0))))}})};Lb=function(){this.wl=this.Ti=!0;this.type.Ao=!0;this.b.ga=!0;var e,l,m=this.rl;e=0;for(l=
m.length;em;case 5:return e>=m;default:return!1}}})();var oc={};function qc(e){this.b=e}
(function(){function e(a){0>a&&(a=0);1a&&(a=.01);this.ok.gain.value=a;this.nk.gain.value=Math.pow(1/a,.6)*b};h.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=ah;++h)f=h/32768,f=this.shape(f,c,d),this.fj[32768+h]=f,this.fj[32768-h-1]=-f};h.prototype.Dc=function(a){this.M.disconnect();this.M.connect(a);this.L.disconnect();this.L.connect(a)};
h.prototype.remove=function(){this.Z.disconnect();this.ok.disconnect();this.Yk.disconnect();this.nk.disconnect();this.M.disconnect();this.L.disconnect()};h.prototype.tc=function(){return this.Z};O.prototype.Dc=function(a){this.ba.disconnect();this.ba.connect(a)};O.prototype.remove=function(){this.ba.disconnect()};O.prototype.tc=function(){return this.ba};n.prototype.Wa=function(){this.ba.getFloatFrequencyData(this.ov);this.ba.getByteTimeDomainData(this.pr);for(var a=this.ba.fftSize,b=0,c=this.hi=
0,d=0;bd&&(d=-d),this.hib&&(c=b);return c};K.prototype.fg=function(){return!this.lc&&!this.sd&&!this.ec&&!this.pf()};K.prototype.rx=function(){return!this.sd&&!this.ec&&!this.pf()};K.prototype.Cx=function(){var a=this.volume*E;isFinite(a)||(a=0);switch(this.V){case 0:"undefined"!==typeof this.k.volume&&this.k.volume!==
a&&(this.k.volume=a);break;case 1:1===this.buffer.V?this.Xa.gain.value=a*this.yg:"undefined"!==typeof this.k.volume&&this.k.volume!==a&&(this.k.volume=a)}};K.prototype.lj=function(a){switch(this.V){case 0:this.k.muted!==!!a&&(this.k.muted=!!a);break;case 1:1===this.buffer.V?(this.yg=a?0:1,this.Xa.gain.value=E*this.volume*this.yg):this.k.muted!==!!a&&(this.k.muted=!!a)}};K.prototype.mx=function(){this.kg=!0;this.lj(this.kg||this.Kh)};K.prototype.jr=function(a){this.Kh=!!a;this.lj(this.kg||this.Kh)};
K.prototype.Tk=function(){var a=this.playbackRate;this.hg&&(a*=z.Qg);switch(this.V){case 0:this.k.playbackRate!==a&&(this.k.playbackRate=a);break;case 1:1===this.buffer.V?this.k.playbackRate.value!==a&&(this.k.playbackRate.value=a):this.k.playbackRate!==a&&(this.k.playbackRate=a)}};K.prototype.ox=function(a){switch(this.V){case 0:a?this.fg()?(this.Ac=!0,this.k.pause()):this.Ac=!1:this.Ac&&(this.k.play(),this.Ac=!1);break;case 1:a?this.fg()?(this.Ac=!0,1===this.buffer.V?(this.ac=this.am(!0),this.wd&&
(this.ac=this.ac%this.mf()),b(this.k)):this.k.pause()):this.Ac=!1:this.Ac&&(1===this.buffer.V?(this.k=y.createBufferSource(),this.k.buffer=this.buffer.fa,this.k.connect(this.Xa),this.k.onended=this.Zm,this.Ri=this.k,this.k.loop=this.wd,this.Xa.gain.value=E*this.volume*this.yg,this.Tk(),this.startTime=(this.hg?z.nb.aa:z.he.aa)-this.ac/(this.playbackRate||.001),r(this.k,this.ac,this.mf())):this.k.play(),this.Ac=!1);break;case 2:a?this.fg()?(this.k.pause(),this.Ac=!0):this.Ac=!1:this.Ac&&(this.Ac=!1,
this.k.play())}};N.Ia=function(a){function b(){if(!ta&&y.createBuffer){var a=y.createBuffer(1,220,22050),c=y.createBufferSource();c.buffer=a;c.connect(y.destination);t(c)}}this.type=a;z=this.b=a.b;V=this;this.nc=null;this.Sh=-600;this.b.Jh&&(Ra=!0);!(this.b.ng||this.b.Ij&&(this.b.Bh||this.b.Jj))||this.b.Ch||this.b.$a||this.b.vm||Ra||(Sa=!0);y=null;"undefined"!==typeof AudioContext?(x=1,y=new AudioContext):"undefined"!==typeof webkitAudioContext&&(x=1,y=new webkitAudioContext);this.b.ng&&y&&(y.close&&
y.close(),"undefined"!==typeof AudioContext?y=new AudioContext:"undefined"!==typeof webkitAudioContext&&(y=new webkitAudioContext));Sa?document.addEventListener("touchend",function(){!ib&&y&&(b(),ib=!0);var a,c,d;if(Sa){if(!M)for(a=0,c=Ta.length;a"!==b&&(a.lk=b,a.Mm=d,a.Qn=f),null;e=new K(a,b);A.push(e);return e};var ra=[];Q.prototype.Mi=function(a){return ob(J,a)};Q.prototype.qs=function(a){T(a);var b;a=0;for(b=ra.length;ac&&(c=0),1c;c++){var k=a[c];".."===k?b.pop():"."!==k&&b.push(k)}return b.join("/")}if(l.Ay=m,t[e])return t[e];if(t[e]={},!m[e])throw Error("Could not find module "+e);for(var a,v=m[e],g=v.cu,v=v.Vt,d=[],c=0,k=g.length;k>c;c++)"exports"===g[c]?d.push(a={}):d.push(q(b(g[c])));g=v.apply(this,d);return t[e]=
a||g}}();e("promise/all",["./utils","exports"],function(e,l){var r=e.isArray,b=e.isFunction;l.all=function(a){if(!r(a))throw new TypeError("You must pass an array to all.");return new this(function(e,g){function d(a){return function(b){k[a]=b;0===--f&&e(k)}}var c,k=[],f=a.length;0===f&&e([]);for(var p=0;pc;c++){var f=a[c];this.supports(f)&&b.push(f)}return b},e.prototype.oo=function(){for(var a=0;ah;h++)f[h]=b.charCodeAt(h);return m([d],{type:a.type})}function g(a){var b=this,c=b.kl().then(function(){var a=D[b.ma.name];return a&&a.Sf?a.Sf:void 0});return c.then(a,a),c}function d(a){a=D[a.name];var b={};b.promise=new Promise(function(a){b.resolve=a});a.Wo.push(b);a.Sf?a.Sf=a.Sf.then(function(){return b.promise}):
a.Sf=b.promise}function c(a){function b(){return Promise.resolve()}var c=this,d={db:null};if(a)for(var f in a)d[f]=a[f];D||(D={});var h=D[d.name];h||(h={tj:[],db:null,Sf:null,Wo:[]},D[d.name]=h);h.tj.push(c);c.kl||(c.kl=c.ready,c.ready=g);a=[];for(f=0;fd.db.version;(d.versiond.version&&(d.version=b)),b=!0):b=!1}else b=!0;return b?k(d,!0):a}).then(function(a){d.db=h.db=a;c.ma=d;for(a=0;a=b.oldVersion&&c.createObjectStore(N)}catch(d){if("ConstraintError"!==d.name)throw d;e.console.warn('The database "'+a.name+'" has been upgraded from version '+b.oldVersion+" to version "+b.newVersion+', but the storage "'+a.ua+'" already exists.')}});k.onerror=function(){f(k.error)};k.onsuccess=function(){c(k.result);var b=D[a.name].Wo.pop();
b&&b.resolve()}})}function f(a,b){var c=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var f=c.ma,h=f.db.transaction(f.ua,"readonly").objectStore(f.ua).get(a);h.onsuccess=function(){var a=h.result;void 0===a&&(a=null);a&&a.mo&&(a=q(a));b(a)};h.onerror=function(){d(h.error)}})["catch"](d)});return T(d,b),d}function p(a,b){var c=this,d=new Promise(function(b,d){c.ready().then(function(){var f=
c.ma,h=f.db.transaction(f.ua,"readonly").objectStore(f.ua).openCursor(),k=1;h.onsuccess=function(){var c=h.result;if(c){var d=c.value;d&&d.mo&&(d=q(d));d=a(d,c.key,k++);void 0!==d?b(d):c["continue"]()}else b()};h.onerror=function(){d(h.error)}})["catch"](d)});return T(d,b),d}function h(c,d,f){var h=this;"string"!=typeof c&&(e.console.warn(c+" used as a key, but it is not a string."),c=String(c));var k=new Promise(function(f,k){var e;h.ready().then(function(){return e=h.ma,d instanceof Blob?b(e.db).then(function(b){return b?
d:a(d)}):d}).then(function(a){var b=e.db.transaction(e.ua,"readwrite"),d=b.objectStore(e.ua);null===a&&(a=void 0);b.oncomplete=function(){void 0===a&&(a=null);f(a)};b.onabort=b.onerror=function(){k(h.error?h.error:h.transaction.error)};var h=d.put(a,c)})["catch"](k)});return T(k,f),k}function O(a,b){var c=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var f=c.ma,h=f.db.transaction(f.ua,"readwrite"),
k=h.objectStore(f.ua)["delete"](a);h.oncomplete=function(){b()};h.onerror=function(){d(k.error)};h.onabort=function(){d(k.error?k.error:k.transaction.error)}})["catch"](d)});return T(d,b),d}function n(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.ma,f=d.db.transaction(d.ua,"readwrite"),h=f.objectStore(d.ua).clear();f.oncomplete=function(){a()};f.onabort=f.onerror=function(){c(h.error?h.error:h.transaction.error)}})["catch"](c)});return T(c,a),c}function w(a){var b=this,
c=new Promise(function(a,c){b.ready().then(function(){var d=b.ma,f=d.db.transaction(d.ua,"readonly").objectStore(d.ua).count();f.onsuccess=function(){a(f.result)};f.onerror=function(){c(f.error)}})["catch"](c)});return T(c,a),c}function H(a,b){var c=this,d=new Promise(function(b,d){return 0>a?void b(null):void c.ready().then(function(){var f=c.ma,h=!1,k=f.db.transaction(f.ua,"readonly").objectStore(f.ua).openCursor();k.onsuccess=function(){var c=k.result;return c?void(0===a?b(c.key):h?b(c.key):(h=
!0,c.advance(a))):void b(null)};k.onerror=function(){d(k.error)}})["catch"](d)});return T(d,b),d}function K(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.ma,f=d.db.transaction(d.ua,"readonly").objectStore(d.ua).openCursor(),h=[];f.onsuccess=function(){var b=f.result;return b?(h.push(b.key),void b["continue"]()):void a(h)};f.onerror=function(){c(f.error)}})["catch"](c)});return T(c,a),c}function T(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var F=F||e.indexedDB||
e.webkitIndexedDB||e.mozIndexedDB||e.$o||e.msIndexedDB;if(F){var Q,D,N="local-forage-detect-blob-support";return{$g:"asyncStorage",ll:c,Np:p,getItem:f,setItem:h,removeItem:O,clear:n,length:w,key:H,keys:K}}}("undefined"!=typeof window?window:self);e.qd=q["default"]},function(e,q,l){q.Oi=!0;q["default"]=function(e){function t(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var r=null;try{if(!(e.localStorage&&"setItem"in e.localStorage))return;r=e.localStorage}catch(b){return}return{$g:"localStorageWrapper",
ll:function(a){var b={};if(a)for(var e in a)b[e]=a[e];return b.vd=b.name+"/",b.ua!==this.jl.ua&&(b.vd+=b.ua+"/"),this.ma=b,(new Promise(function(a){a(l(3))})).then(function(a){return b.Df=a,Promise.resolve()})},Np:function(a,b){var e=this,d=e.ready().then(function(){for(var b=e.ma,d=b.vd,f=d.length,p=r.length,h=1,m=0;p>m;m++){var n=r.key(m);if(0===n.indexOf(d)){var l=r.getItem(n);if(l&&(l=b.Df.jj(l)),l=a(l,n.substring(f),h++),void 0!==l)return l}}});return t(d,b),d},getItem:function(a,b){var g=this;
"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=g.ready().then(function(){var b=g.ma,d=r.getItem(b.vd+a);return d&&(d=b.Df.jj(d)),d});return t(d,b),d},setItem:function(a,b,g){var d=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var c=d.ready().then(function(){void 0===b&&(b=null);var c=b;return new Promise(function(f,e){var h=d.ma;h.Df.serialize(b,function(b,d){if(d)e(d);else try{r.setItem(h.vd+
a,b),f(c)}catch(g){"QuotaExceededError"!==g.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==g.name||e(g),e(g)}})})});return t(c,g),c},removeItem:function(a,b){var g=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=g.ready().then(function(){r.removeItem(g.ma.vd+a)});return t(d,b),d},clear:function(a){var b=this,e=b.ready().then(function(){for(var a=b.ma.vd,c=r.length-1;0<=c;c--){var e=r.key(c);0===e.indexOf(a)&&r.removeItem(e)}});return t(e,a),e},length:function(a){var b=
this.keys().then(function(a){return a.length});return t(b,a),b},key:function(a,b){var e=this,d=e.ready().then(function(){var b,d=e.ma;try{b=r.key(a)}catch(f){b=null}return b&&(b=b.substring(d.vd.length)),b});return t(d,b),d},keys:function(a){var b=this,e=b.ready().then(function(){for(var a=b.ma,c=r.length,e=[],f=0;c>f;f++)0===r.key(f).indexOf(a.vd)&&e.push(r.key(f).substring(a.vd.length));return e});return t(e,a),e}}}("undefined"!=typeof window?window:self);e.qd=q["default"]},function(e,q){q.Oi=!0;
q["default"]=function(e){function m(a){var b,e,d,c,k;b=.75*a.length;var f=a.length,p=0;"="===a[a.length-1]&&(b--,"="===a[a.length-2]&&b--);var h=new ArrayBuffer(b),m=new Uint8Array(h);for(b=0;f>b;b+=4)e=r.indexOf(a[b]),d=r.indexOf(a[b+1]),c=r.indexOf(a[b+2]),k=r.indexOf(a[b+3]),m[p++]=e<<2|d>>4,m[p++]=(15&d)<<4|c>>2,m[p++]=(3&c)<<6|63&k;return h}function t(a){var b=new Uint8Array(a),e="";for(a=0;a>2],e+=r[(3&b[a])<<4|b[a+1]>>4],e+=r[(15&b[a+1])<<2|b[a+2]>>6],e+=r[63&b[a+2]];
return 2===b.length%3?e=e.substring(0,e.length-1)+"=":1===b.length%3&&(e=e.substring(0,e.length-2)+"=="),e}var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=/^~~local_forage_type~([^~]+)~/;return{serialize:function(a,b){var e="";if(a&&(e=a.toString()),a&&("[object ArrayBuffer]"===a.toString()||a.buffer&&"[object ArrayBuffer]"===a.buffer.toString())){var d,c="__lfsc__:";a instanceof ArrayBuffer?(d=a,c+="arbf"):(d=a.buffer,"[object Int8Array]"===e?c+="si08":"[object Uint8Array]"===
e?c+="ui08":"[object Uint8ClampedArray]"===e?c+="uic8":"[object Int16Array]"===e?c+="si16":"[object Uint16Array]"===e?c+="ur16":"[object Int32Array]"===e?c+="si32":"[object Uint32Array]"===e?c+="ui32":"[object Float32Array]"===e?c+="fl32":"[object Float64Array]"===e?c+="fl64":b(Error("Failed to get type for BinaryArray")));b(c+t(d))}else if("[object Blob]"===e)e=new FileReader,e.onload=function(){var c="~~local_forage_type~"+a.type+"~"+t(this.result);b("__lfsc__:blob"+c)},e.readAsArrayBuffer(a);else try{b(JSON.stringify(a))}catch(k){console.error("Couldn't convert value into a JSON string: ",
a),b(null,k)}},jj:function(a){if("__lfsc__:"!==a.substring(0,9))return JSON.parse(a);var t,g=a.substring(13);a=a.substring(9,13);if("blob"===a&&b.test(g)){var d=g.match(b);t=d[1];g=g.substring(d[0].length)}g=m(g);switch(a){case "arbf":return g;case "blob":var c;g=[g];t={type:t};g=g||[];t=t||{};try{c=new Blob(g,t)}catch(k){if("TypeError"!==k.name)throw k;c=new (e.BlobBuilder||e.Nf||e.Fl||e.WebKitBlobBuilder);for(a=0;ag;g++){var n=e.item(g),p=n.value;if(p&&(p=f.Df.jj(p)),p=a(p,n.key,g+1),void 0!==p)return void b(p)}b()},function(a,b){d(b)})})})["catch"](d)});return f(d,b),d}function a(a,b,c){var d=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var k=new Promise(function(c,f){d.ready().then(function(){void 0===b&&(b=null);var e=b,k=d.ma;k.Df.serialize(b,function(b,d){d?f(d):k.db.transaction(function(d){d.executeSql("INSERT OR REPLACE INTO "+k.ua+
" (key, value) VALUES (?, ?)",[a,b],function(){c(e)},function(a,b){f(b)})},function(a){a.code===a.QUOTA_ERR&&f(a)})})})["catch"](f)});return f(k,c),k}function q(a,b){var c=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var f=c.ma;f.db.transaction(function(c){c.executeSql("DELETE FROM "+f.ua+" WHERE key = ?",[a],function(){b()},function(a,b){d(b)})})})["catch"](d)});return f(d,b),d}function g(a){var b=
this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.ma;d.db.transaction(function(b){b.executeSql("DELETE FROM "+d.ua,[],function(){a()},function(a,b){c(b)})})})["catch"](c)});return f(c,a),c}function d(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.ma;d.db.transaction(function(b){b.executeSql("SELECT COUNT(key) as c FROM "+d.ua,[],function(b,c){var d=c.rows.item(0).fh;a(d)},function(a,b){c(b)})})})["catch"](c)});return f(c,a),c}function c(a,b){var c=this,
d=new Promise(function(b,d){c.ready().then(function(){var f=c.ma;f.db.transaction(function(c){c.executeSql("SELECT key FROM "+f.ua+" WHERE id = ? LIMIT 1",[a+1],function(a,c){var d=c.rows.length?c.rows.item(0).key:null;b(d)},function(a,b){d(b)})})})["catch"](d)});return f(d,b),d}function k(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.ma;d.db.transaction(function(b){b.executeSql("SELECT key FROM "+d.ua,[],function(b,c){for(var d=[],f=0;fthis.size?this.La=!1:(0!==m.Ph&&(this.e+=Math.random()*m.Ph*e-m.Ph*e/2),0!==m.Rh&&(this.speed+=Math.random()*m.Rh*e-m.Rh*e/2),0!==m.Qh&&(this.opacity+=Math.random()*m.Qh*e-m.Qh*e/2,0>this.opacity?this.opacity=0:1=m.Tf&&this.qe>=m.timeout&&(this.La=!1),2===m.Tf&&0>=this.speed&&(this.La=!1))};e.prototype.Ic=
function(e){var m=this.Ea.opacity*this.opacity;if(0!==m){0===this.Ea.Tf&&(m*=1-this.qe/this.Ea.timeout);e.globalAlpha=m;var m=this.x-this.size/2,b=this.y-this.size/2;this.Ea.b.yc&&(m=m+.5|0,b=b+.5|0);e.drawImage(this.Ea.type.B,m,b,this.size,this.size)}};e.prototype.Db=function(e){var m=this.Ea.opacity*this.opacity;0===this.Ea.Tf&&(m*=1-this.qe/this.Ea.timeout);var b=this.size,a=b*this.Ea.Mq,l=this.x-b/2,g=this.y-b/2;this.Ea.b.yc&&(l=l+.5|0,g=g+.5|0);1>a||0===m||(ae.Nm?(e.Qe(m),e.Gg(l,g,l+
b,g,l+b,g+b,l,g+b)):e.Jw(this.x,this.y,a,m))};e.prototype.left=function(){return this.x-this.size/2};e.prototype.right=function(){return this.x+this.size/2};e.prototype.top=function(){return this.y-this.size/2};e.prototype.bottom=function(){return this.y+this.size/2};q.Ia=function(e){this.type=e;this.b=e.b};var l=q.Ia.prototype,m=[];l.ra=function(){var e=this.I;this.rk=e[0];this.Ek=I(e[1]);this.Kg=e[2];this.Dn=!0;this.qm=e[3];this.pm=e[4];this.om=e[5]/100;this.hm=e[6];this.$k=e[7];this.cl=e[8];this.Dk=
e[9];this.Ck=e[10];this.Dj=e[11];this.ml=e[12];this.Ul=e[13];this.Ph=e[14];this.Rh=e[15];this.Qh=e[16];this.Tf=e[17];this.timeout=e[18];this.Cf=0;this.Mq=1;this.gk=this.x;this.ik=this.y;this.hk=this.x;this.fk=this.y;this.Jt(function(e){e.ea.set(e.gk,e.ik,e.hk,e.fk);e.Ze.si(e.ea);e.Ti=!1;e.Ex();e.Mr()});this.zc||(this.Rb=[]);this.b.Ei(this);this.type.Th();if(1===this.Kg)for(e=0;ethis.hk&&(this.hk=a.right()),a.top()this.fk&&(this.fk=a.bottom()),q++):m.push(a);Aa(this.Rb,q);this.ta();this.sj=
!1;1===this.Kg&&0===this.Rb.length&&this.b.le(this)};l.Ic=function(e){var m,b,a,l=this.n;m=0;for(b=this.Rb.length;m=l.ca&&a.bottom()>=l.la&&a.left()<=l.ka&&a.top()<=l.ja&&a.Ic(e)};l.Db=function(e){this.Mq=this.n.uc();e.cc(this.type.F);var m,b,a,l=this.n;m=0;for(b=this.Rb.length;m=l.ca&&a.bottom()>=l.la&&a.left()<=l.ka&&a.top()<=l.ja&&a.Db(e)};q.d=new function(){};q.u=new function(){};q.O=new function(){}})();function X(e){this.b=e}
(function(){function e(){if(0===this.Gl.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Lg?b.drawImage(this.B,this.Ag,this.Bg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.B,0,0,this.width,this.height);this.Gl=a.toDataURL("image/png")}return this.Gl}function q(){}function l(){}function m(){}var t=X.prototype;t.Ra=function(a){this.za=a;this.b=a.b};var r=t.Ra.prototype;r.ra=function(){if(!this.H){var a,b,k,f,
g,h,m,n,l;this.Sc=[];this.yh=!1;a=0;for(b=this.hc.length;athis.G&&(this.G=0);this.G>=this.Ca.frames.length&&(this.G=this.Ca.frames.length-1);var a=this.Ca.frames[this.G];this.md.ti(a.mk);this.Nb=a.Nb;this.Ob=a.Ob;this.Qf=this.Ca.speed;this.Ae=this.Ca.rn;1===this.type.hc.length&&1===this.type.hc[0].frames.length||0===this.Qf||(this.b.Ei(this),this.Ih=!0);this.zc?this.kd.reset():this.kd=new fb;this.Qd=
this.kd.aa;this.Xe=!0;this.Hd=0;this.We=!0;this.Of=this.yo="";this.Oo=0;this.Wi=-1;this.type.Th();var b,e,f,g,h,m,n,a=0;for(b=this.type.hc.length;athis.G&&(this.G=0);this.G>=this.Ca.frames.length&&(this.G=this.Ca.frames.length-1);this.Qf=a.cas;this.Qd=a.fs;this.Hd=a.ar;this.kd.reset();this.kd.aa=a.at;this.Xe=a.hasOwnProperty("ap")?a.ap:!0;this.We=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Ae=
a.rt:this.Ae=this.Ca.rn;this.ib=this.Ca.frames[this.G];this.dj=this.ib.F;this.md.ti(this.ib.mk);this.Nb=this.ib.Nb;this.Ob=this.ib.Ob};a.ql=function(a){this.G=a?0:this.Ca.frames.length-1;this.Xe=!1;this.yo=this.Ca.name;this.Gj=!0;this.b.trigger(X.prototype.d.ys,this);this.b.trigger(X.prototype.d.Yn,this);this.Gj=!1;this.Hd=0};a.Nf=function(){return this.kd.aa};a.Wa=function(){this.kd.add(this.b.yj(this));this.Of.length&&this.Xo();0<=this.Wi&&this.Yo();var a=this.kd.aa,b=this.Ca,e=b.frames[this.G],
f=e.duration/this.Qf;this.Xe&&a>=this.Qd+f&&(this.We?this.G++:this.G--,this.Qd+=f,this.G>=b.frames.length&&(b.Nq?(this.We=!1,this.G=b.frames.length-2):b.loop?this.G=this.Ae:(this.Hd++,this.Hd>=b.qn?this.ql(!1):this.G=this.Ae)),0>this.G&&(b.Nq?(this.G=1,this.We=!0,b.loop||(this.Hd++,this.Hd>=b.qn&&this.ql(!0))):b.loop?this.G=this.Ae:(this.Hd++,this.Hd>=b.qn?this.ql(!0):this.G=this.Ae)),0>this.G?this.G=0:this.G>=b.frames.length&&(this.G=b.frames.length-1),a>this.Qd+b.frames[this.G].duration/this.Qf&&
(this.Qd=a),a=b.frames[this.G],this.Lf(e,a),this.b.ga=!0)};a.mp=function(a){var b,e,f;b=0;for(e=this.type.hc.length;bthis.G&&(this.G=0),this.G>=this.Ca.frames.length&&
(this.G=this.Ca.frames.length-1),1===this.Oo&&(this.G=0),this.Xe=!0,this.Qd=this.kd.aa,this.We=!0,this.Lf(a,this.Ca.frames[this.G]),this.b.ga=!0)};a.Yo=function(){var a=this.Ca.frames[this.G],b=this.G;this.G=pa(this.Wi);0>this.G&&(this.G=0);this.G>=this.Ca.frames.length&&(this.G=this.Ca.frames.length-1);b!==this.G&&(this.Lf(a,this.Ca.frames[this.G]),this.Qd=this.kd.aa,this.b.ga=!0);this.Wi=-1};a.Lf=function(a,b){var e=a.width,f=a.height,g=b.width,h=b.height;e!=g&&(this.width*=g/e);f!=h&&(this.height*=
h/f);this.Nb=b.Nb;this.Ob=b.Ob;this.md.ti(b.mk);this.ta();this.ib=b;this.dj=b.F;e=0;for(f=this.R.length;eg||g>=f.length)return b?this.x:this.y;var h=(f[g][1]-e.Nb)*this.width,f=f[g][2],f=(f-e.Ob)*this.height,e=Math.cos(this.e);g=Math.sin(this.e);var m=
h*e-f*g,f=f*e+h*g,h=m+this.x,f=f+this.y;return b?h:f};var v=new ba,g=!1;new wa(0,0,0,0);r.finish=function(a){if(g){if(a){var b=this.b.Eb().Wb.Zc;a=null.na();var e=v.Te(),f,m;if(a.wa){a.wa=!1;B(a.c);f=0;for(m=e.length;f=h.length&&h.push(e(a,Object));c=h[c];c.text=d;c.width=b.Pm(d);b.Og=ma(b.Og,c.width)}function m(){}var t=vc.prototype;t.ra=function(){};t.Ra=function(a){this.za=a;this.b=a.b};var r=t.Ra.prototype;r.ra=function(){this.H||
(this.B=new Image,this.b.Xk(this.B,this.Di),this.F=null)};r.fi=function(){this.H||(this.F=null)};r.gi=function(){if(!this.H&&this.c.length){this.F||(this.F=this.b.q.Je(this.B,!1,this.b.Aa,this.Hf));var a,b;a=0;for(b=this.c.length;a=b*c);q++){var r=q%b,t=Math.floor(q/b),F=l.charAt(q);if(this.b.q){var Q=this.Zi,D=r*m,N=t*n,r=(r+1)*m,t=(t+1)*n;void 0===Q[F]&&(Q[F]=e(g,wa));Q[F].left=D;Q[F].top=N;Q[F].right=r;Q[F].bottom=t}else Q=this.Yi,r=r*a,t=t*d,D=a,N=d,void 0===Q[F]&&(Q[F]=e(v,Object)),Q[F].x=r,Q[F].y=t,Q[F].Pr=D,Q[F].vp=N}};var d=
[];t.tt=function(a){B(d);for(var b="",c,e=0;e=h)q(a,d,!0);else{var g=b.ve,n=b.Pf;if(c.length*(b.Xi*g+n)-n<=h&&-1===c.indexOf("\n")&&(n=b.Pm(c),n<=h)){q(a,d,!0);d.push(e(a,
Object));d[0].text=c;d[0].width=n;b.Og=n;b.Gf=b.ue*g+b.lineHeight;return}this.zt(b);b.Gf=d.length*(b.ue*g+b.lineHeight)}}else q(a,d,!0)};t.zt=function(c){var e=c.Mx,g=c.text,h=c.xf,m=c.width;e&&(this.tt(g),g=d);var n="",q,r,t,v=0,F=!1;for(t=0;tm&&(""===q?(l(c,v,n),n="",F=!0):(l(c,v,q),n=g[t]),v++,e||" "!==n||(n="")));n.replace(/\s\s*$/,"").length&&(l(c,v,n),v++);for(t=v;tthis.width+1E-5)break;void 0!==G&&(x=u,y=J,0===l&&(x=Math.round(x),y=Math.round(y)),a.drawImage(this.B,G.x,G.y,G.Pr,G.vp,x,y,G.Pr*r,G.vp*r));u+=z*r+D;if(0===l&&b+u>g)break}}J+=t;if(0===l&&(J+t+v>this.height||c+J>m))break}}a.restore()}};var c=new xa;r.Db=function(a){a.cc(this.F);a.Qe(this.opacity);if(this.text&&(this.Vq(),!(this.heightthis.width+1E-5)break;if(void 0!==R){var M=
this.Xi*v,E=this.ue*v;A=W;C=t;0===q&&(A=Math.round(A),C=Math.round(C));c.sb=A;c.tb=C;c.Kb=A+M;c.Lb=C;c.xb=A;c.yb=C+E;c.zb=A+M;c.Ab=C+E;0!==q&&(A=c,C=x,M=y,E=void 0,E=A.sb*C-A.tb*M,A.tb=A.tb*C+A.sb*M,A.sb=E,E=A.Kb*C-A.Lb*M,A.Lb=A.Lb*C+A.Kb*M,A.Kb=E,E=A.xb*C-A.yb*M,A.yb=A.yb*C+A.xb*M,A.xb=E,E=A.zb*C-A.Ab*M,A.Ab=A.Ab*C+A.zb*M,A.zb=E);c.offset(d,b);a.Ad(c.sb,c.tb,c.Kb,c.Lb,c.zb,c.Ab,c.xb,c.yb,R)}W+=u*v+z;if(0===q&&d+W>m)break}}t+=D;if(0===q&&(t+D+N>this.height||b+t>l))break}}};t.d=new function(){};m.prototype.it=
function(a){ga(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Ci=!0,this.b.ga=!0)};r.Nf=function(a,b){var c=parseInt(b,10);this.we[a]!==c&&(this.we[a]=c,this.Ci=!0,this.b.ga=!0)};t.u=new m;t.O=new function(){}})();function wc(e){this.b=e}
(function(){var e=wc.prototype;e.Ra=function(e){this.za=e;this.b=e.b};var q=e.Ra.prototype;q.ra=function(){this.H||(this.B=new Image,this.B.Cl=this.Lk,this.b.Xk(this.B,this.Di),this.F=this.pattern=null)};q.fi=function(){this.H||(this.F=null)};q.gi=function(){if(!this.H&&this.c.length){this.F||(this.F=this.b.q.Je(this.B,!0,this.b.Aa,this.Hf));var e,m;e=0;for(m=this.c.length;ea&&(a+=this.B.width);0>v&&(v+=this.B.height);e.translate(m,q);e.rotate(this.e);e.translate(a,v);e.fillRect(r-a,b-v,this.width,this.height);e.restore()};q.ff=function(e){this.Db(e)};q.Db=
function(e){e.cc(this.F);e.Qe(this.opacity);var m=this.oi;m.right=this.width/this.B.width;m.bottom=this.height/this.B.height;var q=this.Ze;if(this.b.yc){var r=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;e.Ad(q.sb+r,q.tb+b,q.Kb+r,q.Lb+b,q.zb+r,q.Ab+b,q.xb+r,q.yb+b,m)}else e.Ad(q.sb,q.tb,q.Kb,q.Lb,q.zb,q.Ab,q.xb,q.yb,m)};e.d=new function(){};e.u=new function(){};e.O=new function(){}})();function xc(e){this.b=e}
(function(){function e(a){v=a.x;g=a.y;d=a.z}function q(a,b,d,e){var f;f=c.length?c.pop():new l;f.init(a,b,d,e);return f}function l(){this.xi=this.id=this.y=this.x=this.Hk=this.Gk=this.Em=this.time=this.Fn=0;this.Fi=this.Qk=!1}function m(){}function t(){}var r=xc.prototype;r.Ra=function(a){this.za=a;this.b=a.b};r.Ra.prototype.ra=function(){};r.Ia=function(a){this.type=a;this.b=a.b;this.touches=[];this.Rm=!1};var b=r.Ia.prototype,a={left:0,top:0};b.qh=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 v=0,g=0,d=0,c=[];l.prototype.init=function(a,b,c,d){var e=bb();this.Fn=this.Em=this.time=e;this.Gk=a;this.Hk=b;this.x=a;this.y=b;this.pressure=this.height=this.width=0;this.id=c;this.xi=d;this.Fi=this.Qk=!1};l.prototype.update=function(a,b,c,d,e,f){this.Em=this.time;this.time=a;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=f;!this.Fi&&15<=Xa(this.Gk,this.Hk,this.x,this.y)&&(this.Fi=!0)};l.prototype.qw=function(a,b){!this.Qk&&500<=
bb()-this.Fn&&!this.Fi&&15>Xa(this.Gk,this.Hk,this.x,this.y)&&(this.Qk=!0,a.Fd=this.xi,a.Rg=this.id,a.$f=b,a.b.trigger(xc.prototype.d.Fs,a),a.Ld=this.x,a.Md=this.y,a.b.trigger(xc.prototype.d.Gs,a),a.$f=0)};var k=-1E3,f=-1E3,p=-1E4;l.prototype.lq=function(a,b){if(!this.Qk){var c=bb();333>=c-this.Fn&&!this.Fi&&15>Xa(this.Gk,this.Hk,this.x,this.y)&&(a.Fd=this.xi,a.Rg=this.id,a.$f=b,666>=c-p&&25>Xa(k,f,this.x,this.y)?(a.b.trigger(xc.prototype.d.Ds,a),a.Ld=this.x,a.Md=this.y,a.b.trigger(xc.prototype.d.Es,
a),f=k=-1E3,p=-1E4):(a.b.trigger(xc.prototype.d.Ls,a),a.Ld=this.x,a.Md=this.y,a.b.trigger(xc.prototype.d.Ms,a),k=this.x,f=this.y,p=c),a.$f=0)}};b.ra=function(){this.fw=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.$f=this.Rg=this.Fd=this.Md=this.Ld=this.ro=this.qo=this.po=this.Gt=this.Ft=this.Et=this.ek=this.dk=this.ck=0;this.Gx=0!==this.I[0];var a=0d-c.time||c.update(d,b.pageX-e.left,b.pageY-e.top,b.width||0,b.height||0,b.pressure||0)}}};b.zq=
function(b){if(b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType){b.preventDefault&&pb(b)&&b.preventDefault();var c=this.b.$a?a:jQuery(this.b.canvas).offset(),d=b.pageX-c.left,c=b.pageY-c.top;bb();this.Fd=this.touches.length;this.Rg=b.pointerId;this.touches.push(q(d,c,b.pointerId,this.Fd));this.b.ud=!0;this.b.trigger(xc.prototype.d.eo,this);this.b.trigger(xc.prototype.d.jo,this);this.Ld=d;this.Md=c;this.b.trigger(xc.prototype.d.hl,this);this.b.ud=!1}};b.bk=function(a,b){if(a.pointerType!==
a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&pb(a)&&a.preventDefault();var d=this.qh(a.pointerId);this.Fd=0<=d?this.touches[d].xi:-1;this.Rg=0<=d?this.touches[d].id:-1;this.b.ud=!0;this.b.trigger(xc.prototype.d.co,this);this.b.trigger(xc.prototype.d.ho,this);0<=d&&(b||this.touches[d].lq(this,d),100>c.length&&c.push(this.touches[d]),this.touches.splice(d,1));this.b.ud=!1}};b.Bq=function(b){b.preventDefault&&b.preventDefault();var c=bb(),d,e,f,g;d=0;for(e=b.changedTouches.length;d<
e;d++)if(f=b.changedTouches[d],g=this.qh(f.identifier),0<=g){var k=this.b.$a?a:jQuery(this.b.canvas).offset();g=this.touches[g];2>c-g.time||g.update(c,f.pageX-k.left,f.pageY-k.top,2*(f.Ry||f.Yy||f.Jy||f.My||0),2*(f.Sy||f.Zy||f.Ky||f.Ny||0),f.Ey||f.Xy||f.Iy||f.Ly||0)}};b.Cq=function(b){b.preventDefault&&pb(b)&&b.preventDefault();var c=this.b.$a?a:jQuery(this.b.canvas).offset();bb();this.b.ud=!0;var d,e,f,g;d=0;for(e=b.changedTouches.length;dc.length&&c.push(this.touches[f]),this.touches.splice(f,1));this.b.ud=!1};b.Nf=function(){return this.b.kc&&0===this.ck&&0!==d?90*d:this.ck};b.Fl=function(){return this.b.kc&&0===this.dk&&0!==g?90*g:this.dk};b.$o=function(){return this.b.kc&&0===this.ek&&0!==v?90*v:this.ek};b.zw=function(a){this.Cq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Rm=
!0};b.Aw=function(a){this.Rm&&this.Bq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};b.Bw=function(a){a.preventDefault&&this.b.wp&&!this.b.eg&&a.preventDefault();this.b.wp=!0;this.Ym({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Rm=!1};b.Ok=function(){var a,b,c,d=bb();a=0;for(b=this.touches.length;ac||c>=this.touches.length)a.D(0);else{var d,e,f,g,k;fa(b)?(d=this.b.Zf(0),e=d.scale,f=d.ke,g=d.Xd,k=d.e,d.scale=1,d.ke=1,d.Xd=1,d.e=0,a.D(d.Mb(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.ke=f,d.Xd=g,d.e=k):(d=ga(b)?this.b.Zf(b):this.b.zj(b))?a.D(d.Mb(this.touches[c].x,this.touches[c].y,!0)):a.D(0)}};t.prototype.il=function(a,b){var c=this.$f;if(0>c||c>=this.touches.length)a.D(0);else{var d,e,f,g,k;fa(b)?(d=this.b.Zf(0),e=d.scale,f=d.ke,g=d.Yd,k=d.e,d.scale=1,d.ke=1,
d.Yd=1,d.e=0,a.D(d.Mb(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.ke=f,d.Yd=g,d.e=k):(d=ga(b)?this.b.Zf(b):this.b.zj(b))?a.D(d.Mb(this.touches[c].x,this.touches[c].y,!1)):a.D(0)}};r.O=new t})();function yc(e){this.b=e}
(function(){function e(){}var q=yc.prototype;q.Ra=function(e){this.behavior=e;this.b=e.b};q.Ra.prototype.ra=function(){};q.Ia=function(e,l){this.type=e;this.behavior=e.behavior;this.j=l;this.b=e.b};var l=q.Ia.prototype;l.ra=function(){this.wo=this.I[0];this.xo=this.I[1];this.Nt=this.I[2];this.Mt=this.I[3];this.j.Ba();this.Zk=this.j.ea.left;this.dl=this.j.ea.top;this.al=this.b.Ga-this.j.ea.left;this.bl=this.b.Fa-this.j.ea.top;this.sk=this.b.Ga-this.j.ea.right;this.Ui=this.b.Fa-this.j.ea.bottom;this.enabled=
0!==this.I[4]};l.Hb=function(){return{xleft:this.Zk,ytop:this.dl,xright:this.al,ybottom:this.bl,rdiff:this.sk,bdiff:this.Ui,enabled:this.enabled}};l.Yb=function(e){this.Zk=e.xleft;this.dl=e.ytop;this.al=e.xright;this.bl=e.ybottom;this.sk=e.rdiff;this.Ui=e.bdiff;this.enabled=e.enabled};l.Wa=function(){if(this.enabled){var e,l=this.j.n,q=this.j,b=this.j.ea;0===this.wo?(q.Ba(),e=l.ca+this.Zk-b.left,0!==e&&(q.x+=e,q.ta())):1===this.wo&&(q.Ba(),e=l.ka-this.al-b.left,0!==e&&(q.x+=e,q.ta()));0===this.xo?
(q.Ba(),e=l.la+this.dl-b.top,0!==e&&(q.y+=e,q.ta())):1===this.xo&&(q.Ba(),e=l.ja-this.bl-b.top,0!==e&&(q.y+=e,q.ta()));1===this.Nt&&(q.Ba(),e=l.ka-this.sk-b.right,0!==e&&(q.width+=e,0>q.width&&(q.width=0),q.ta()));1===this.Mt&&(q.Ba(),e=l.ja-this.Ui-b.bottom,0!==e&&(q.height+=e,0>q.height&&(q.height=0),q.ta()))}};q.d=new function(){};e.prototype.Ws=function(e){this.enabled&&0===e?this.enabled=!1:this.enabled||0===e||(this.j.Ba(),this.Zk=this.j.ea.left,this.dl=this.j.ea.top,this.al=this.b.Ga-this.j.ea.left,
this.bl=this.b.Fa-this.j.ea.top,this.sk=this.b.Ga-this.j.ea.right,this.Ui=this.b.Fa-this.j.ea.bottom,this.enabled=!0)};q.u=new e;q.O=new function(){}})();function Ac(e){this.b=e}
(function(){function e(){}var q=Ac.prototype;q.Ra=function(e){this.behavior=e;this.b=e.b};q.Ra.prototype.ra=function(){};q.Ia=function(e,l){this.type=e;this.behavior=e.behavior;this.j=l;this.b=e.b};var l=q.Ia.prototype;l.ra=function(){this.bb=null;this.kk=-1;this.mode=this.qg=this.Mk=this.zg=this.Zd=this.ji=0;var e=this;this.zc||(this.oq=function(l){e.Xm(l)});this.b.uo(this.oq)};l.Hb=function(){return{uid:this.bb?this.bb.uid:-1,pa:this.ji,pd:this.Zd,msa:this.zg,tsa:this.Mk,lka:this.qg,m:this.mode}};
l.Yb=function(e){this.kk=e.uid;this.ji=e.pa;this.Zd=e.pd;this.zg=e.msa;this.Mk=e.tsa;this.qg=e.lka;this.mode=e.m};l.jd=function(){-1===this.kk?this.bb=null:this.bb=this.b.sh(this.kk);this.kk=-1};l.Xm=function(e){this.bb==e&&(this.bb=null)};l.Ne=function(){this.bb=null;this.b.Xw(this.oq)};l.Wa=function(){};l.Ok=function(){if(this.bb){this.qg!==this.j.e&&(this.zg=Ka(this.zg+(this.j.e-this.qg)));var e=this.j.x,l=this.j.y;if(3===this.mode||4===this.mode){var q=Xa(this.j.x,this.j.y,this.bb.x,this.bb.y);
if(q>this.Zd||4===this.mode&&qthis.j.opacity?this.j.opacity=0:1