function Eg(){this.Init()}v("AdfDhtmlModalityManager",Eg);z.l(Eg);Eg.prototype.Init=function(){Eg.f.Init.call(this);this.kP=[];this.bn=[]};z.a("AdfDhtmlModalityManager.prototype.Init",{Init:Eg.prototype.Init});Eg.prototype.wi=function(){return this.kP.length};z.a("AdfDhtmlModalityManager.prototype.getElementCount",{wi:Eg.prototype.wi});Eg.prototype.Bb=function(){this.bn=this.kP=n};z.a("AdfDhtmlModalityManager.prototype.dispose",{Bb:Eg.prototype.Bb});
Eg.prototype.j1=function(a){B.p(a);if(this.Xu())this.bn[this.bn.length-1].style.display="none";else{var b=w.b,d=b.R();Fg(this,b,this.Wt,l,d)}B.p(a.parentNode);b=a.parentNode.getAttribute("id");B.s(b);d=this.G9();F.c.Mf().jp(d,b,a);Gg.yha(d);this.kP.push(a);this.bn.push(d)};z.a("AdfDhtmlModalityManager.prototype.pushModal",{j1:Eg.prototype.j1});
Eg.prototype.h1=function(){this.kP.pop();var a=this.bn.pop();a.style.width="1px";a.style.height="1px";var b=F.c;b.Mf().Ci(a);if(0<this.kP.length)this.bn[this.bn.length-1].style.display="block";else{var a=w.b,d=a.R();Fg(this,a,this.Wt,p,d);a=a.getElementById(b.mi);b.Xl(a,l)}};z.a("AdfDhtmlModalityManager.prototype.popModal",{h1:Eg.prototype.h1});
Eg.prototype.G9=function(){var a=w.b,b=F.c.w().createElement("div"),d=b.style,e=a.R();b.className="AFModalGlassPane";d.width=a.aj(e)+"px";d.height=a.Tk(e)+"px";a.vd(b);a.S(b,"keydown",w.ld);a.S(b,"keyup",w.ld);a.S(b,"keypress",w.ld);a.S(b,"mousedown",w.ld);a.S(b,"mouseup",w.ld);a.S(b,"mouseover",w.ld);a.S(b,"mouseout",w.ld);a.S(b,"click",w.ld);a.S(b,"focusin",w.ld);a.S(b,"focus",w.ld);return b};Eg.prototype.Wt=function(){F.c.oa(this,this.DY,n,1)};
Eg.prototype.DY=function(){for(var a=w.b,b=a.R(),d=0;d<this.bn.length;d++){var e=this.bn[d];e.style.display="none";e.style.width=a.aj(b)+"px";e.style.height=a.Tk(b)+"px";e.style.display=""}};Eg.prototype.Jga=function(){if(this.Xu())return this.bn[this.bn.length-1]};z.a("AdfDhtmlModalityManager.prototype.getTopGlassPane",{Jga:Eg.prototype.Jga});function Fg(a,b,d,e,f){a._handleResizeStub==n&&(a._handleResizeStub=a.o(d));e?b.S(f,"resize",a._handleResizeStub):b.sa(f,"resize",a._handleResizeStub)}
Eg.prototype.hs=function(a){if(!this.Xu()||!a)return l;var b=Hg.XD,d=Hg.XS,e=Hg.h3,f=a;for(a=a.parentNode;a;a=a.parentNode){if(1==a.nodeType){var g=a.getAttribute("id");if(g){var g=g.split(":"),h=g.length;if(0<h){g=g[h-1];if(d==g)return l;if(e==g)break;else if(b==g)return a=this.Jga().style.zIndex,f.style.zIndex>a}}}f=a}return p};z.a("AdfDhtmlModalityManager.prototype.isAboveTopGlassPane",{hs:Eg.prototype.hs});Eg.prototype.Xu=function(){return 0<this.bn.length};
z.a("AdfDhtmlModalityManager.prototype.isGlassPaneVisible",{Xu:Eg.prototype.Xu});