function Mi(){this.Init()}m("AdfDhtmlShadowDecorator",Mi);r.v(Mi);Mi.prototype.Init=function(){Mi.h.Init.call(this)};r.a("AdfDhtmlShadowDecorator.prototype.Init",{Init:Mi.prototype.Init});Mi.so=function(){var a=Mi.E5a;null==a&&(a=A.c.H(),a=parseInt(a.qa("af|popup-tr-shadow-pixel-size")),a=isNaN(a)?0:a,Mi.E5a=a);return a};m("AdfDhtmlShadowDecorator.getShadowSize",Mi.so);
Mi.prototype.GW=function(a){var b=q.b,d=A.c,e=this.XM;e&&d.y$(a,e);if(this.VG){var f=this.hHa,e=a.offsetWidth,d=a.offsetHeight,g=this.pMa?{x:0,y:0}:b.jc(a);if(f.x!=g.x||f.y!=g.y||f.offsetWidth!=e||f.offsetHeight!=d){this.hHa={x:g.x,y:g.y,offsetWidth:e,offsetHeight:d};var b=b.getComputedStyle(a).zIndex-1,f=this.Imb,h=this.Hmb,l=A.c.Ka().La();a=this.IX.style;a.zIndex=b;var n=Mi.so(),b=2*n;a.left=(l?g.x-(h+n):g.x+h)+"px";a.top=g.y+f+"px";a.width=e+n+"px";a.height=d+n+"px";u.assert(0<e-h,"Computed shadow width is less than one");
u.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.VG[g].style,a.width=e,a.height=d}}};Mi.prototype.O6=function(){var a=this.XM;a&&(A.c.UC(a),delete this.XM);this.VG&&(this.IX.parentNode.removeChild(this.IX),delete this.VG,delete this.IX)};
Mi.vY=function(a,b,d){var e=Mi.mM(a);if(!e){var e=new Mi,f=Mi.ffb(),g=Mi.gfb(),h=e,l=f,n=f;null==l&&(l=3);h.Imb=l;null==n&&(n=3);h.Hmb=n;null==g&&(g=100);h.pMa=d;var t=Mi.so(),f=2*t,y=A.c,z=q.b;h.XM||(h.XM=y.vH(a));if(!Mi.uob(a)&&!h.VG){var B=z.getComputedStyle(a);h.VG=Array(f);if(void 0==B.zIndex||2>=q.Ma(B.zIndex))a.style.zIndex=3;var F=a.ownerDocument,y=y.Ka().La(),K=d?{x:0,y:0}:z.jc(a);d=K.y+l;var P;P=y?K.x-(n+t):K.x+n;var Q=a.offsetWidth,da=a.offsetHeight;b=b?b:F.body;h.hHa={x:K.x,y:K.y,offsetWidth:Q,
offsetHeight:da};K=F.createElement("div");C.w(K,Mi.vtb);var ba=K.style;ba.zIndex=q.Ma(B.zIndex)-1;ba.position="absolute";ba.left=P+"px";ba.top=d+"px";ba.width=Q+t+"px";ba.height=da+t+"px";d=0;P=y?t+n:0;n=Q-n+"px";l=da-l+"px";for(t=0;t<f;t++)B=F.createElement("div"),ba=B.style,ba.position="absolute",ba.left=P+"px",ba.top=d+"px",0==t%2?y?P--:P++:d++,ba.width=n,ba.height=l,ba.backgroundColor="#000000",z.fe(B,Math.floor(g/(2*t+4))),K.appendChild(B),h.VG[t]=B;b.appendChild(K);h.IX=K}Mi.BQa||(Mi.BQa=0);
h="sd$"+ ++Mi.BQa;g=Mi.Poa;g||(g=Mi.Poa={});g[h]=e;a.setAttribute(Mi.r2,h)}return e};m("AdfDhtmlShadowDecorator.createShadowDecorator",Mi.vY);Mi.uob=function(a){var b=q.b,d=b.S()==q.Tc||b.aC(q.ia,9)||b.aC(q.Yc,"1.9.1");if(!d)return d;for(d=!1;a&&!d;){if(1==a.nodeType){if(C.sa(a,ej.uca))break;for(var e=b.getComputedStyle(a),f=0;f<Mi.IAa.length;f++){var g=e[Mi.IAa[f]];if(g&&0<g.length&&"none"!=g){d=!0;break}}}a=a.parentNode}return d};Mi.gv=function(a){var b=Mi.mM(a);b&&b.GW(a)};
m("AdfDhtmlShadowDecorator.moveShadowDecorator",Mi.gv);Mi.QZ=function(a){var b=Mi.mM(a);b&&(b.O6(a),b=a.getAttribute(Mi.r2))&&(a.removeAttribute(Mi.r2),(a=Mi.Poa)&&delete a[b])};m("AdfDhtmlShadowDecorator.removeShadowDecorator",Mi.QZ);Mi.iz=function(a,b){var d=Mi.mM(a);d&&(d.XM&&(d.XM.style.visibility=b?"visible":"hidden"),d.VG&&(d.IX.style.display=b?"block":"none"))};m("AdfDhtmlShadowDecorator.showShadowDecorator",Mi.iz);Mi.vj=function(a){return void 0!=Mi.mM(a)};
m("AdfDhtmlShadowDecorator.hasShadowDecorator",Mi.vj);Mi.mM=function(a){a=a.getAttribute(Mi.r2);var b,d=Mi.Poa;d&&a&&(b=d[a]);return b};Mi.ffb=function(){var a=Mi.D5a;null==a&&(a=A.c.H(),a=parseInt(a.qa("af|popup-tr-shadow-offset")),a=isNaN(a)?3:a,Mi.D5a=a);return a};Mi.gfb=function(){var a=Mi.F5a;null==a&&(a=A.c.H(),a=parseInt(a.qa("af|popup-tr-shadow-starting-black-percent")),a=isNaN(a)?3:a,Mi.F5a=a);return a};Mi.Yrb=function(a,b){var d=Mi.mM(a);d&&b&&(d.pMa=!0)};
m("AdfDhtmlShadowDecorator.setRelative",Mi.Yrb);Mi.r2="data-afr-shaddec";Mi.IAa=["box-shadow","-webkit-box-shadow","-moz-box-shadow"];