function qg(){this.Init()}v("AdfDhtmlShadowDecorator",qg);z.l(qg);qg.prototype.Init=function(){qg.f.Init.call(this)};z.a("AdfDhtmlShadowDecorator.prototype.Init",{Init:qg.prototype.Init});qg.Fp=function(){var a=qg.iOa;a==n&&(a=F.c.u(),a=parseInt(a.ka("af|popup-tr-shadow-pixel-size")),a=isNaN(a)?0:a,qg.iOa=a);return a};v("AdfDhtmlShadowDecorator.getShadowSize",qg.Fp);
qg.prototype.nP=function(a){var b=w.b,d=F.c,e=this.eH;e&&d.a1(a,e);if(this.WB){var f=this.Wsa,e=a.offsetWidth,d=a.offsetHeight,g=this.Rwa?{x:0,y:0}:b.Ub(a);if(!(f.x==g.x&&f.y==g.y&&f.offsetWidth==e&&f.offsetHeight==d)){this.Wsa={x:g.x,y:g.y,offsetWidth:e,offsetHeight:d};var b=b.getComputedStyle(a).zIndex-1,f=this.O0a,h=this.N0a,m=F.c.Ma().Oa();a=this.dQ.style;a.zIndex=b;var q=qg.Fp(),b=2*q;a.left=(m?g.x-(h+q):g.x+h)+"px";a.top=g.y+f+"px";a.width=e+q+"px";a.height=d+q+"px";B.assert(0<e-h,"Computed shadow width is less than one");
B.assert(0<d-f,"Computed shadow height is less than one");e=e-h+"px";d=d-f+"px";for(g=0;g<b;g++)a=this.WB[g].style,a.width=e,a.height=d}}};qg.prototype.WY=function(){var a=this.eH;a&&(F.c.Ry(a),delete this.eH);this.WB&&(this.dQ.parentNode.removeChild(this.dQ),delete this.WB,delete this.dQ)};
qg.NQ=function(a,b,d){var e=qg.BG(a);if(!e){var e=new qg,f=qg.JVa(),g=qg.KVa(),h=e,m=f,q=f;m==n&&(m=3);h.O0a=m;q==n&&(q=3);h.N0a=q;g==n&&(g=100);h.Rwa=d;var s=qg.Fp(),f=2*s,y=F.c,A=w.b;h.eH||(h.eH=y.yC(a));if(!qg.d2a(a)&&!h.WB){var C=A.getComputedStyle(a);h.WB=Array(f);if(C.zIndex==k||2>=w.ua(C.zIndex))a.style.zIndex=3;var G=a.ownerDocument,y=y.Ma().Oa(),K=d?{x:0,y:0}:A.Ub(a);d=K.y+m;var N;N=y?K.x-(q+s):K.x+q;var Q=a.offsetWidth,T=a.offsetHeight;b=b?b:G.body;h.Wsa={x:K.x,y:K.y,offsetWidth:Q,offsetHeight:T};
K=G.createElement("div");H.n(K,qg.e7a);var Y=K.style;Y.zIndex=w.ua(C.zIndex)-1;Y.position="absolute";Y.left=N+"px";Y.top=d+"px";Y.width=Q+s+"px";Y.height=T+s+"px";d=0;N=y?s+q:0;q=Q-q+"px";m=T-m+"px";for(s=0;s<f;s++)C=G.createElement("div"),Y=C.style,Y.position="absolute",Y.left=N+"px",Y.top=d+"px",0==s%2?y?N--:N++:d++,Y.width=q,Y.height=m,Y.backgroundColor="#000000",A.yd(C,Math.floor(g/(2*s+4))),K.appendChild(C),h.WB[s]=C;b.appendChild(K);h.dQ=K}qg.xAa||(qg.xAa=0);h="sd$"+ ++qg.xAa;g=qg.zda;g||(g=
qg.zda={});g[h]=e;a.setAttribute(qg.eV,h)}return e};v("AdfDhtmlShadowDecorator.createShadowDecorator",qg.NQ);qg.d2a=function(a){var b=w.b,d=b.G()==w.Fc||b.Ux(w.aa,9)||b.Ux(w.ed,"1.9.1");if(!d)return d;for(d=p;a&&!d;){if(1==a.nodeType){if(H.ta(a,Hg.S3))break;for(var e=b.getComputedStyle(a),f=0;f<qg.xna.length;f++){var g=e[qg.xna[f]];if(g&&0<g.length&&"none"!=g){d=l;break}}}a=a.parentNode}return d};qg.ms=function(a){var b=qg.BG(a);b&&b.nP(a)};v("AdfDhtmlShadowDecorator.moveShadowDecorator",qg.ms);
qg.WR=function(a){var b=qg.BG(a);if(b&&(b.WY(a),b=a.getAttribute(qg.eV)))a.removeAttribute(qg.eV),(a=qg.zda)&&delete a[b]};v("AdfDhtmlShadowDecorator.removeShadowDecorator",qg.WR);qg.wv=function(a,b){var d=qg.BG(a);d&&(d.eH&&(d.eH.style.visibility=b?"visible":"hidden"),d.WB&&(d.dQ.style.display=b?"block":"none"))};v("AdfDhtmlShadowDecorator.showShadowDecorator",qg.wv);qg.yi=function(a){return k!=qg.BG(a)};v("AdfDhtmlShadowDecorator.hasShadowDecorator",qg.yi);
qg.BG=function(a){a=a.getAttribute(qg.eV);var b,d=qg.zda;d&&a&&(b=d[a]);return b};qg.JVa=function(){var a=qg.hOa;a==n&&(a=F.c.u(),a=parseInt(a.ka("af|popup-tr-shadow-offset")),a=isNaN(a)?3:a,qg.hOa=a);return a};qg.KVa=function(){var a=qg.jOa;a==n&&(a=F.c.u(),a=parseInt(a.ka("af|popup-tr-shadow-starting-black-percent")),a=isNaN(a)?3:a,qg.jOa=a);return a};qg.i5a=function(a,b){var d=qg.BG(a);d&&b&&(d.Rwa=l)};v("AdfDhtmlShadowDecorator.setRelative",qg.i5a);qg.eV="data-afr-shaddec";
qg.xna=["box-shadow","-webkit-box-shadow","-moz-box-shadow"];