var Uq=I.ea(Tq,"AdfDhtmlMaximizePeer",!0,{oUa:["maximized"],IRa:[Ub.ua,D.wb,D.Ad]});m("AdfDhtmlMaximizePeer",Uq);Uq.C=function(){Uq.Gga="_afrMax";Uq.g4a="_afrPlaceHolder";Tq.Vs(this,{propertyName:"maximized",clientEventType:Ub,toggledTipResourceKey:"AFRestoreTip",untoggledTipResourceKey:"AFMaximizeTip"})};m("AdfDhtmlMaximizePeer.InitSubclass",Uq.C);Uq.prototype.Bz=Tq.tda;Uq.prototype.h0=Tq.qca;Uq.prototype.xw=function(a,b){var d=this.f();(new Ub(d,a,this.fh())).F(b)};
r.a("AdfDhtmlMaximizePeer.prototype.QueueClientEvent",{xw:Uq.prototype.xw});Uq.prototype.fh=function(){return!1};r.a("AdfDhtmlMaximizePeer.prototype.EventPropagatesToServer",{fh:Uq.prototype.fh});Uq.prototype.tk=function(){var a=this.f(),a=I.j(a.g(),Uq.Gga);return q.b.getElementById(a)};r.a("AdfDhtmlMaximizePeer.prototype.GetButtonElement",{tk:Uq.prototype.tk});
Uq.sNa=function(a,b){for(var d=q.b,e=q.ia==d.S()&&8<d.Ib(),f=a.parentNode;f;){if(f.style&&b!="_oldZindex"in f){var g=d.getOverrideStyle(f);b?(f.GNa=g.zIndex,g.zIndex="auto",e&&(f.ENa=g.overflow,g.overflow="visible")):(g.zIndex=f.GNa,delete f.GNa,e&&(g.overflow=f.ENa,delete f.ENa))}f=f.parentNode}};Uq.prototype.dw=function(a){return a.wta()};r.a("AdfDhtmlMaximizePeer.prototype.GetNewValueFromEvent",{dw:Uq.prototype.dw});
Uq.prototype.Tha=function(a,b,d){u.u(a);u.u(b);u.dc(d);if(d){var e=q.b,f=b.parentNode,g=e.getOverrideStyle(a),h=e.getOverrideStyle(b);d=e.getOverrideStyle(f);var l=e.rd(a),l={top:l.top+"px",left:l.left+"px",width:l.right-l.left+"px",height:l.bottom-l.top+"px"};a.gna={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:l,contentDomElement:b};g.position="fixed";g.zIndex=500;var n=A.c.R().createElement("div"),t=I.j(a.id,Uq.g4a);a.$Na=n.id=t;a.parentNode.appendChild(n);q.b.Ia(n);E.Rb(n.style,l);E.Rb(g,l);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.Ld(f)-e.Ld(f.parentNode)-1),d.top=a+"px",d.left=0,d.right=0,d.bottom=0);d=Uq.Pgb}else d=Uq.Agb;window.setTimeout(this.D(d),0)};
r.a("AdfDhtmlMaximizePeer.prototype.__updateClientMaximize",{Tha:Uq.prototype.Tha});Uq.x3=function(a,b){for(var d=["","-webkit-","Moz","ms"],e=[!1,!1,!0,!0],f=d.length,g=0;g<f;g++){var h=d[g],l="transition";e[g]&&(l="Transition");a[h+l]=b}};Uq.Agb=function(){var a=this.Ri;a||(a=this);var b=a.i();if(a=b.gna)b=q.b.getOverrideStyle(b),A.c.Oc()?(Uq.x3(b,"all .2ss ease-in"),E.Rb(b,a.initialSize),window.setTimeout(this.D(Uq.THa),200)):Uq.THa.apply(this)};
Uq.THa=function(){var a=this.Ri;a||(a=this);var a=a.i(),b=a.gna,d=a.$Na;delete a.$Na;d=q.b.getElementById(d);q.b.yc(d);a.parentNode.removeChild(d);if(b){var e=b.contentDomElement,f=q.b,d=f.getOverrideStyle(a),g=f.getOverrideStyle(e),e=f.getOverrideStyle(e.parentNode);Uq.x3(d,"");E.Rb(d,b.root);E.Rb(g,b.content);E.Rb(e,b.contentParent);delete a.gna;Uq.sNa(a,!1)}A.c.jo(a,!1)};
Uq.Pgb=function(){var a=this.Ri;a||(a=this);a=a.i();Uq.sNa(a,!0);var b=q.b,a=b.getOverrideStyle(a),d=b.getWindowWidth(),b=b.getWindowHeight(),e=A.c.Oc();e&&Uq.x3(a,"all 0.2s ease-out");a.top="0px";a.left="0px";a.width=d+"px";a.height=b+"px";e?window.setTimeout(this.D(Uq.UHa),200):Uq.UHa.apply(this)};Uq.UHa=function(){var a=this.Ri;null==a&&(a=this);var a=a.i(),b=q.b.getOverrideStyle(a);Uq.x3(b,"");b.width="100%";b.height="100%";A.c.jo(a,!1)};