var Yo=M.U(Xo,"AdfDhtmlMaximizePeer",l,{DDa:["maximized"],tBa:[Nb.ga,I.jb,I.qd]});v("AdfDhtmlMaximizePeer",Yo);Yo.m=function(){Yo.B7="_afrMax";Yo.ZMa="_afrPlaceHolder";Xo.kq(this,{propertyName:"maximized",clientEventType:Nb,toggledTipResourceKey:"AFRestoreTip",untoggledTipResourceKey:"AFMaximizeTip"})};v("AdfDhtmlMaximizePeer.InitSubclass",Yo.m);Yo.prototype.Iv=Xo.J4;Yo.prototype.gT=Xo.N3;Yo.prototype.lt=function(a,b){var d=this.d();(new Nb(d,a,this.og())).v(b)};
z.a("AdfDhtmlMaximizePeer.prototype.QueueClientEvent",{lt:Yo.prototype.lt});Yo.prototype.og=t(p);z.a("AdfDhtmlMaximizePeer.prototype.EventPropagatesToServer",{og:Yo.prototype.og});Yo.prototype.cl=function(){var a=this.d(),a=M.g(a.e(),Yo.B7);return w.b.getElementById(a)};z.a("AdfDhtmlMaximizePeer.prototype.GetButtonElement",{cl:Yo.prototype.cl});
Yo.Pxa=function(a,b){for(var d=w.b,e=w.aa==d.G()&&8<d.nb(),f=a.parentNode;f;){if(f.style&&b!="_oldZindex"in f){var g=d.getOverrideStyle(f);b?(f.$xa=g.zIndex,g.zIndex="auto",e&&(f.Yxa=g.overflow,g.overflow="visible")):(g.zIndex=f.$xa,delete f.$xa,e&&(g.overflow=f.Yxa,delete f.Yxa))}f=f.parentNode}};Yo.prototype.Zs=function(a){return a.mha()};z.a("AdfDhtmlMaximizePeer.prototype.GetNewValueFromEvent",{Zs:Yo.prototype.Zs});
Yo.prototype.z8=function(a,b,d){B.p(a);B.p(b);B.pc(d);if(d){var e=w.b,f=b.parentNode,g=e.getOverrideStyle(a),h=e.getOverrideStyle(b);d=e.getOverrideStyle(f);var m=e.Uc(a),m={top:m.top+"px",left:m.left+"px",width:m.right-m.left+"px",height:m.bottom-m.top+"px"};a.aca={root:{position:g.position,top:g.top,left:g.left,width:g.width,height:g.height,zIndex:g.zIndex},content:{position:h.position,height:h.height},contentParent:{position:d.position,width:d.width,height:d.height,left:d.left,right:d.right,top:d.top,
bottom:d.bottom},initialSize:m,contentDomElement:b};g.position="fixed";g.zIndex=500;var q=F.c.w().createElement("div"),s=M.g(a.id,Yo.ZMa);a.sya=q.id=s;a.parentNode.appendChild(q);w.b.wa(q);ya.qb(q.style,m);ya.qb(g,m);a="absolute"==e.getComputedStyle(b).position;h.position="relative";h.height="100%";d.position="absolute";d.width="auto";d.height="auto";a||(a=Math.max(0,e.nd(f)-e.nd(f.parentNode)-1),d.top=a+"px",d.left=0,d.right=0,d.bottom=0);d=Yo.hXa}else d=Yo.WWa;window.setTimeout(this.o(d),0)};
z.a("AdfDhtmlMaximizePeer.prototype.__updateClientMaximize",{z8:Yo.prototype.z8});Yo.XV=function(a,b){for(var d=["","-webkit-","Moz","ms"],e=[p,p,l,l],f=d.length,g=0;g<f;g++){var h=d[g],m="transition";e[g]&&(m="Transition");a[h+m]=b}};Yo.WWa=function(){var a=this.ai;a||(a=this);var b=a.h();if(a=b.aca)b=w.b.getOverrideStyle(b),F.c.Ac()?(Yo.XV(b,"all .2ss ease-in"),ya.qb(b,a.initialSize),window.setTimeout(this.o(Yo.yta),200)):Yo.yta.apply(this)};
Yo.yta=function(){var a=this.ai;a||(a=this);var a=a.h(),b=a.aca,d=a.sya;delete a.sya;d=w.b.getElementById(d);w.b.gc(d);a.parentNode.removeChild(d);if(b){var e=b.contentDomElement,f=w.b,d=f.getOverrideStyle(a),g=f.getOverrideStyle(e),e=f.getOverrideStyle(e.parentNode);Yo.XV(d,"");ya.qb(d,b.root);ya.qb(g,b.content);ya.qb(e,b.contentParent);delete a.aca;Yo.Pxa(a,p)}F.c.Xl(a,p)};
Yo.hXa=function(){var a=this.ai;a||(a=this);a=a.h();Yo.Pxa(a,l);var b=w.b,a=b.getOverrideStyle(a),d=b.getWindowWidth(),b=b.getWindowHeight(),e=F.c.Ac();e&&Yo.XV(a,"all 0.2s ease-out");a.top="0px";a.left="0px";a.width=d+"px";a.height=b+"px";e?window.setTimeout(this.o(Yo.zta),200):Yo.zta.apply(this)};Yo.zta=function(){var a=this.ai;a==n&&(a=this);var a=a.h(),b=w.b.getOverrideStyle(a);Yo.XV(b,"");b.width="100%";b.height="100%";F.c.Xl(a,p)};