var bo=I.ea(I,"AdfDhtmlMenuPeer",!1);m("AdfDhtmlMenuPeer",bo);bo.C=function(){r.bb(W);r.bb(oi);I.ra(this,D.Bd,D.Rg,D.Oc,D.Nd,D.Ad,D.Bc,D.gh);q.b.Dd()||I.ra(this,D.ze,D.gg);I.sb(this,AdfRichMenu.DISABLED,AdfRichMenu.VISIBLE,AdfRichMenu.TEXT);this.voa=[];this.xp=[];this.j5a=3;this.l1a=15;this.bDa=300;var a=w.zR,b=w.Bk|w.pi;this.ZMa=w.Yg(a,b);a=w.xK;b=w.Bk|w.pi;this.MJa=w.Yg(a,b)};m("AdfDhtmlMenuPeer.InitSubclass",bo.C);
bo.prototype.Init=function(a){a.getParent();bo.h.Init.call(this,a);a=A.c.H();a=parseInt(a.qa("af|menu-tr-visible-items"));this.f6=isNaN(a)?14:a;this.Qr=this.wr=this.F5=!1};r.a("AdfDhtmlMenuPeer.prototype.Init",{Init:bo.prototype.Init});bo.prototype.G=function(a,b){if("1"==b.getAttribute(W.uca)){var d=a.g();bo.h9a(d)}};r.a("AdfDhtmlMenuPeer.prototype.InitDomElement",{G:bo.prototype.G});bo.pH=function(){bo.F6&&(window.clearTimeout(bo.F6),delete bo.F6,delete bo.pN)};
m("AdfDhtmlMenuPeer.cancelShowing",bo.pH);
bo.prototype.show=function(a,b){var d=this.i(),e=this.f(),f=e.g();C.w(d,W.Nh);!this.bq()&&this.Py()&&W.WUa(f);null==b&&null!=a&&(d=a.focus,b=null!=d?d:this.bq()?!0:!1);$q(this);if("noContent"==this.eB())this.BX("fetching"),d={},d.mwb=ar(this),this.Rib=a,this.Qib=b,(new eh(e,eh.rk,d)).F(),this.Moa();else if("fetching"==this.eB())v.l.info("Currently waiting on menu content fetch: "+e.g());else if(d=br(this),"block"==d.style.display)f=q.b,f.Y().zj&&f instanceof Ee?J.ni(d):b&&J.va(this.Pa);else{this.ah();
var g=cr(this,a,b);d.style.display="block";var h=this.Kcb;h||(d.style.visibility="hidden");this.He(e,d,g,f);if(!h){e=q.b;this.f().getDetachable()&&(g=I.j(f,"close"),this.Sia=e.getElementById(g),this.Ria=this.D(this.Qia),e.ba(this.Sia,"click",this.Ria),g=I.j(f,"handle"),this.gB=e.getElementById(g),this.Yoa=this.D(this.kkb),e.ba(this.gB,"mousedown",this.Yoa));g=I.j(f,"ScrollContent");this.EN=e.getElementById(g);h=this.EN.rows;if(h.length<this.f6)this.yL=!1;else{g=[];for(i=0;i<h.length;i++){var l=h[i];
"none"!=l.style.display&&g.push(l)}if(this.yL=g.length>this.f6)h=I.j(f,"ScrollUp"),this.Px=e.getElementById(h),this.Px.style.display="block",h=I.j(f,"sUpBg"),this.Boa=e.getElementById(h),h=I.j(f,"ScrollDown"),this.Ox=e.getElementById(h),this.Ox.style.display="block",h=I.j(f,"sDwnBg"),this.yoa=e.getElementById(h),f=I.j(f,"ScrollBox"),this.qh=e.getElementById(f),this.qh.style.height=g[this.f6].offsetTop-2-g[0].offsetTop+"px",this.hj=this.D(this.EW),this.qh.addEventListener("wheel",this.hj),f={},f[oi.dE]=
this.D(this.rx),e={},e[oi.MODE]=oi.VJ,this.Bg=new oi(this.qh,f,e)}d.style.visibility="";this.Kcb=!0;this.yL&&dr(this)}this.yL&&this.Mm();this.f().getDetachable()&&er(this)&&null==this.ej&&(this.ej=new Gj(fr(this),this.gB),this.ej.eaa(this.D(this.eJa)),this.ej.caa(this.D(this.YIa)))}};r.a("AdfDhtmlMenuPeer.prototype.show",{show:bo.prototype.show});bo.prototype.He=function(a,b,d,e){W.Zpa(e);bo.h.He.call(this,a,b,d,e)};r.a("AdfDhtmlMenuPeer.prototype.showPopup",{He:bo.prototype.He});
bo.prototype.Jb=function(){var a=this.f(),b=a.g();b==bo.uN&&bo.wOa();this.Ch()||(gr(this,b),bo.h.Jb.call(this,a,b),this.f().getDetachable()&&(this.ej&&this.ej.Jd(),delete this.ej))};r.a("AdfDhtmlMenuPeer.prototype.hidePopup",{Jb:bo.prototype.Jb});bo.prototype.bk=function(){var a=this.f(),b=a.g();this.Ch()?b==bo.uN&&bo.wOa():(gr(this,b),v.l.finest("menuBar auto open mode, set to OFF due to cancel popup event"),W.gz(!1),bo.h.bk.call(this,a,b))};r.a("AdfDhtmlMenuPeer.prototype.cancelPopup",{bk:bo.prototype.bk});
bo.prototype.close=function(a,b){var d=this.f();if(this.Ch()){C.w(br(this),W.aJ);if(this.GU&&this.HU){var e=this.ej.Ha();e.style.left=this.GU;e.style.top=this.HU}b||this.Zt();e=d.g();bo.Q6(e);bo.h.Jb.call(this,d,e)}else this.bq()?d.getParent().Tb():(a?this.Jb():hr(this),b||this.Zt())};r.a("AdfDhtmlMenuPeer.prototype.close",{close:bo.prototype.close});bo.prototype.Ch=function(){return this.F5};r.a("AdfDhtmlMenuPeer.prototype.isDetached",{Ch:bo.prototype.Ch});
bo.prototype.bq=function(){return this.f().getParent()instanceof AdfRichPopup};r.a("AdfDhtmlMenuPeer.prototype.isContextMenu",{bq:bo.prototype.bq});bo.prototype.Py=function(){return 1==ar(this)};r.a("AdfDhtmlMenuPeer.prototype.isRootMenu",{Py:bo.prototype.Py});
bo.prototype.Mm=function(){if(this.yL){for(var a=this.EN.rows,b=a.length,d=0,e=0,f=0;f<b;f++){var g=a[f];if("none"!=g.style.display){d=f;break}}for(f=b-1;-1<f;f--)if(g=a[f],"none"!=g.style.display){e=f;break}b=q.b;f=g=!1;g=b.rd(this.qh);d=b.rd(a[d]);a=b.rd(a[e]);f=90<=(g.bottom-a.top)/(a.bottom-a.top)*100;(g=90<=(d.bottom-g.top)/(d.bottom-d.top)*100)?(C.w(this.Px,I.lb),C.w(this.Boa,I.lb)):(C.O(this.Px,I.lb),C.O(this.Boa,I.lb));f?(C.w(this.Ox,I.lb),C.w(this.yoa,I.lb)):(C.O(this.Ox,I.lb),C.O(this.yoa,
I.lb))}};r.a("AdfDhtmlMenuPeer.prototype.updateScrollIconsState",{Mm:bo.prototype.Mm});bo.prototype.ah=function(){this.Pa&&this.Pa.setAttribute("tabIndex","-1");var a=br(this);this.Pa=J.oI(a,{X9:!0,W9:!0})};r.a("AdfDhtmlMenuPeer.prototype.resetActiveDescendant",{ah:bo.prototype.ah});
bo.prototype.Zb=function(a,b){if("fetching"!=this.eB())bo.h.Zb.call(this,a,b);else{var d=C.pa(a);if(null==d)v.l.warning("Unexpected element received by AdfDhtmlMenuPeer.prototype.ReplaceDomElement"),bo.h.Zb.call(this,a,b);else{this.i().appendChild(d);q.b.Ia(d);this.BX("contentLoaded");var d=this.f(),e=this.i().getAttribute("id"),e=I.j(e,"lazy-fetch-message");bo.h.Jb.call(this,d,e);this.show(this.Rib,this.Qib)}}};r.a("AdfDhtmlMenuPeer.prototype.ReplaceDomElement",{Zb:bo.prototype.Zb});
bo.prototype.ob=function(a,b){var d=this.i();W.uh(d,!0,!1);b.style.display="none";bo.h.ob.call(this,a,b);d.appendChild(b);this.bq()&&(d=a.getParent(),xc.cGa(d,b),d.o().ob(d,null))};r.a("AdfDhtmlMenuPeer.prototype.PopupClosed",{ob:bo.prototype.ob});bo.prototype.fc=function(){W.p_();if(1<ar(this)&&!er(this)){bo.pN==this&&bo.pH();var a=this.i();C.O(a,W.Nh);C.O(a,W.cf)}};r.a("AdfDhtmlMenuPeer.prototype.HandleComponentMouseOut",{fc:bo.prototype.fc});
bo.prototype.za=function(a){if(!a.Aa()&&!this.Le()){var b=this.i(),d=a.na(),e=1<ar(this),f=this.f(),g=a.getSource();switch(d){case w.Yi:g!=f&&(f=J.ym(br(this)),this.$x(f),J.va(f),a.cancel());return;case w.Eo:g!=f&&(f=J.GH(br(this)),this.$x(f),J.va(f),a.cancel());return;case w.jb:this.wr&&(C.w(b,W.cf),this.show(null,!0));this.wr=!1;a.cancel();return;case w.gd:this.Qr&&(C.w(b,W.cf),this.show(null,!0));this.Qr=!1;a.cancel();return;case w.Ih:this.Ch()?(this.Qia(),a.cancel()):e?b!=A.c.wd&&(this.focus(f),
this.close(!0,!0),a.cancel()):this.bq()?(W.cl(),b.blur(),this.focus(f),f=f.getParent(),f.o().Tb(f),a.cancel()):(v.l.finest("menuBar auto open mode, set to OFF due to escape pressed while on a root menu"),W.gz(!1),W.cl(!0));return}b=er(this);d=this.Py();f=a.getSource()==f;if(b&&d||!f)f=this.EN||br(this),bo.igb(f,a)}};r.a("AdfDhtmlMenuPeer.prototype.HandleComponentKeyUp",{za:bo.prototype.za});
bo.prototype.ma=function(a){if(!a.Aa()&&!this.Le()){var b=a.na(),d=q.b;b==w.jb?(this.wr=!0,a.cancel(),a.wc()):b==w.gd?(this.Qr=!0,a.cancel(),a.wc()):d.wC()==D.Bc&&this.rp(b,a)}};r.a("AdfDhtmlMenuPeer.prototype.HandleComponentKeyDown",{ma:bo.prototype.ma});bo.prototype.Yb=function(a){if(!a.Aa()&&!this.Le()&&q.b.wC()==D.gh){var b=a.na();this.rp(b,a)}};r.a("AdfDhtmlMenuPeer.prototype.HandleComponentKeyPress",{Yb:bo.prototype.Yb});
bo.prototype.Ta=function(a){var b=a.getSource(),d=this.f();b==d?(b=this.i(),1<ar(this)?C.w(b,W.Nh):W.us()?(W.uh(b,!0),C.w(b,W.cf),this.show(null,!1)):W.HC(b)):b.getParent()==d&&(b=b.g(),b=q.b.getElementById(b),(b=J.ym(b))&&b!=this.Pa&&this.$x(b));a.cancel()};r.a("AdfDhtmlMenuPeer.prototype.HandleComponentFocus",{Ta:bo.prototype.Ta});
bo.prototype.$a=function(a){ir(this);if(this.Le())W.us()&&this.Py()&&W.cl(!1);else if(!a.Aa()){var b=q.b,d=a.U(),e=this.i();b.Dh(d,e)&&(a.cancel(),this.bq()||(a=this.f(),1<ar(this)?(C.w(e,W.Nh),W.uh(e,!1),bo.pH(),bo.F6=A.c.Y().setTimeout(this.D(this.Wbb),bo.bDa),bo.pN=this,J.io(e)||this.focus(a)):er(this)||W.us()?(W.us()&&(W.uh(e,!0),C.w(e,W.cf),this.show(null,!1)),J.io(e)||this.focus(a)):W.HC(e)))}};r.a("AdfDhtmlMenuPeer.prototype.HandleComponentMouseOver",{$a:bo.prototype.$a});
bo.prototype.Fa=function(a){var b=this.f();if(!this.Le()&&a.ec()&&b==a.getSource()){var b=q.b,d=a.U(),e=this.i(),f=this.Px&&b.Dh(d,this.Px);a=this.Ox&&b.Dh(d,this.Ox);f||a?(b.S()==q.ia&&(d=f?this.Px:this.Ox,d!=A.c.wd&&(d.tabIndex=0,d.focus(),d.tabIndex=-1)),b.rm()[q.zl]!=q.Al?jr(this,a,!0):jr(this,a)):b.Dh(d,e)&&(b.Ea(d),C.w(e,W.cf),this.bq()||(b=!!(A.c.Y().zj&&q.b instanceof Ee),1<ar(this)?this.show(null,b):er(this)?(this.close(!0,!0),v.l.finest("menuBar auto open mode, set to OFF due to menu clicked while menu IS visible"),
W.gz(!1)):(this.show(null,b),v.l.finest("menuBar auto open mode, set to ON due to menu clicked while menu IS NOT visible"),W.gz(!0))))}};r.a("AdfDhtmlMenuPeer.prototype.HandleComponentMouseDown",{Fa:bo.prototype.Fa});bo.prototype.Ac=function(a){if(!this.Le()&&a.ec()){var b=q.b,d=a.U();this.gB&&C.O(this.gB,W.cf);a=this.Px&&b.Dh(d,this.Px);b=this.Ox&&b.Dh(d,this.Ox);if(a||b)kr(this),this.Mm()}};r.a("AdfDhtmlMenuPeer.prototype.HandleComponentMouseUp",{Ac:bo.prototype.Ac});
bo.prototype.Lb=function(){var a=this.i(),b=!(1<ar(this)),d=1<ar(this)&&!er(this),e=1<ar(this)&&er(this)&&this.Ch();(b||d||e)&&C.O(a,W.Nh);!this.Ch()&&er(this)||C.O(a,W.cf)};r.a("AdfDhtmlMenuPeer.prototype.HandleComponentBlur",{Lb:bo.prototype.Lb});
bo.prototype.ka=function(a){var b=a.g();W.tta(b)?this.Jb():this.Ch()&&this.Qia();if(this.f().getDetachable()){var d=q.b,e=this.Ria;e&&d.xa(this.Sia,"click",e);delete this.Sia;delete this.Ria;(e=this.Yoa)&&d.xa(this.gB,"mousedown",e);delete this.gB;delete this.Yoa}1<ar(this)||bo.olb(b);this.yL&&(this.qh.removeEventListener("wheel",this.hj),this.Bg.release(),this.Bg=null);delete this.Mma;delete this.Px;delete this.Ox;delete this.Boa;delete this.yoa;delete this.qh;delete this.EN;bo.h.ka.call(this,a)};
r.a("AdfDhtmlMenuPeer.prototype.ComponentRemoved",{ka:bo.prototype.ka});bo.prototype.we=function(a,b,d){W.u$(a,b,d,br(this))};r.a("AdfDhtmlMenuPeer.prototype.ComponentDisabledChanged",{we:bo.prototype.we});bo.prototype.Bl=function(a,b,d,e){bo.h.Bl.call(this,a,b,d,e);W.v$(a,b,d,br(this))};r.a("AdfDhtmlMenuPeer.prototype.ComponentVisibleChanged",{Bl:bo.prototype.Bl});bo.prototype.Jg=function(a,b,d,e){return null!=e&&(b=C.ib(b,"A"))?C.FC(a,b,d):!1};
r.a("AdfDhtmlMenuPeer.prototype.ComponentTextChanged",{Jg:bo.prototype.Jg});bo.prototype.Oa=function(){return hi.TRa()};r.a("AdfDhtmlMenuPeer.prototype.GetInlineEditor",{Oa:bo.prototype.Oa});bo.prototype.taa=function(a){this.f6=a};r.a("AdfDhtmlMenuPeer.prototype.setVisibleItems",{taa:bo.prototype.taa});bo.prototype.ad=function(a){this.bind(a);if(this.Py()){a=this.af(a);var b=null!=a?a.o():null;b&&b.ad&&b.ad(a)}};r.a("AdfDhtmlMenuPeer.prototype.__preferredSizeChangeNotify",{ad:bo.prototype.ad});
bo.wOa=function(){var a=bo.uN;if(null!=a){if((a=A.c.m(a))&&(a=a.o())&&a instanceof bo&&a.ej){var b=a.ej.Ha();b.style.left=a.GU;b.style.top=a.HU;var b={y:a.HU,x:a.GU},d=fr(a);d&&d.ov(b);lr(a)}bo.uN=null}};bo.OJa=function(){if(!E.zc(bo.xp)){var a,b=bo.V5;null==b?a=bo.xp[0]:(a=bo.xp.length,1==a?a=bo.xp[0]:(b=E.indexOf(bo.xp,b),a=b>=a-1?bo.xp[0]:bo.xp[b+1]));if(b=A.c.m(a)){var d=b.o();d.bind(b);null!=d.Pa&&J.KP(d.Pa)||d.ah();J.va(d.Pa);bo.V5=a}else bo.Q6(a),bo.OJa()}};
bo.t9a=function(a){var b=q.b;if(E.zc(bo.xp)){if(b.S()==q.ed){var d=A.c.R();b.ba(d,"keypress",bo.FHa)}A.c.TC(bo.MJa,bo.OJa)}0>E.indexOf(bo.xp,a)&&(bo.V5=a,bo.xp.push(a))};bo.Q6=function(a){E.Ig(bo.xp,a);var b=E.zc(bo.xp);if(b||a==bo.V5)bo.V5=null;b&&(A.c.oz(bo.MJa),a=q.b,a.S()==q.ed&&(b=A.c.R(),a.xa(b,"keypress",bo.FHa)))};bo.FHa=function(a){var b=q.b.na(a);a.ctrlKey&&a.shiftKey&&b==w.xK&&q.b.Ea(a)};bo.vjb=function(){bo.Rdb()};bo.h9a=function(a){var b=bo.voa;0==b.length&&A.c.TC(bo.ZMa,bo.vjb);b.push(a)};
bo.olb=function(a){var b=bo.voa;E.Ig(b,a);0==b.length&&A.c.oz(bo.ZMa)};bo.Rdb=function(){var a=bo.voa;u.assert(1<a.length);var a=A.c.m(a[0]),b=a.getParent();u.assert(!(b instanceof AdfRichMenu));a=a.o();if(!a.ONa){b=a.i().parentNode;do var d=b.getAttribute("id"),b=b.parentNode;while(!d&&b);d&&(a.ONa=d)}a=q.b.getElementById(a.ONa);J.dk(a)};
bo.igb=function(a,b){var d=b.Yg(),e=d.sC();if(!(e&w.pi||e&w.Ao||e&w.Nq)){e&w.Bk&&(e>>=w.Bk,d=w.Yg(d.na(),e));for(var d=d.Ps().toUpperCase(),e=a.getElementsByTagName("tr"),f=e.length,g=0;g<f;g++){var h=e[g];if(h&&1==h.nodeType){var l=h.getAttribute("accessKey");if(l&&d==l.toUpperCase()){J.va(h);b.cancel();break}}}}};
bo.prototype.rp=function(a,b){var d=b.U();if(d.ctrlKey){if(this.Ch()||this.ej&&er(this))if(d=q.b.S()==q.ia?187==a:61==a,b.U().altKey&&d)mr(this,0,0),b.cancel();else{d=!0;switch(a){case w.ab:mr(this,0,-20);break;case w.Ra:mr(this,0,20);break;case w.ub:mr(this,-20,0);break;case w.vb:mr(this,20,0);break;default:d=!1}d&&b.cancel()}}else if(!(d.altKey||d.shiftKey||d.metaKey)&&b.getSource()!=this.f())switch(d=b.getSource().o().i(),a){case w.ab:u.u(this.Pa);u.assert(d==this.Pa);this.Pa||(v.l.warning("Menu has lost its assigned activeDescendant!"),
this.ah());d=J.EO(br(this),d,!0);u.u(d);this.Pa=d;this.Mm();b.cancel();break;case w.Ra:u.u(this.Pa);u.assert(d==this.Pa);this.Pa||(v.l.warning("Menu has lost its assigned activeDescendant!"),this.ah());d=J.DO(br(this),d,!0);u.u(d);this.Pa=d;this.Mm();b.cancel();break;case w.ub:d=this.f();this.Py()?(this.focus(d),this.close(!0,!0),W.Xsb=!1):this.Ch()||this.bq()||(this.focus(d),this.close(!0,!0));b.cancel();break;case w.vb:d=b.getSource(),d instanceof AdfRichMenu?(d.o().show(null,!0),b.cancel()):this.Ch()||
this.bq()?b.cancel():this.Py()&&(d=this.f(),this.focus(d),this.close(!0,!0),v.l.finest("menuBar auto open mode, set to OFF due to right arrow key pressed on root menu item"),W.gz(!1),b.cancel())}};bo.prototype.kkb=function(a){q.b.Ea(a);C.w(this.gB,W.cf)};
function cr(a,b,d){var e={},f=a.i(),g=a.f();e.type="menu";e.autodismiss="autodismissMenu";e.alignElement=f;e.focus=d?!0:!1;d=g.getText();null==d&&(d=g.getShortDesc());e.title=d;e.animate=AdfRichPopup.Vva;e.closeOnEscape=!1;if(null==b||null==b.mousePosition)1<ar(a)||W.lk(f)?e[AdfRichPopup.Ed]=AdfRichPopup.tz:e[AdfRichPopup.Ed]=AdfRichPopup.qf;E.Rb(e,b);return e}
bo.prototype.Moa=function(){var a=q.b,b=this.f(),d=this.i().getAttribute("id"),d=I.j(d,"lazy-fetch-message"),a=a.getElementById(d),a=C.pa(a),e=cr(this,null,!1);e.type="inlineSelector";C.setVisible(a,!0);bo.h.He.call(this,b,a,e,d)};
function $q(a){if(a.Ch()){var b=a.f().g();bo.uN=b;W.Zpa(b);bo.Q6(b);nr(a);var b=A.c.Bm(),d=a.i(),e=br(a),f=AdfRichPopup.tz,g=e.clientHeight-4,e=e.clientWidth+Ki.so(),b=b.k8(g,e,f,d,null);a.F5=!1;A.c.Uc()?(b={left:b.x,top:b.y},C.O(br(a),W.aJ),d=a.ej.Ha(),jj(3,300,[{element:d,Cb:b}],null,bo.W9a,[a,b.y,b.x])):(dr(a),(d=fr(a))&&d.ov(b),C.O(br(a),W.aJ))}}bo.W9a=function(a){var b=a[0],d=a[1];a=a[2];dr(b);d={y:d,x:a};(b=fr(b))&&b.ov(d)};
function or(a,b){var d=a.i(),d=C.Nb(d,b);if("noContent"==a.eB())return d;var e=C.Nc(br(a),b);return d||e}function ar(a){if(!a.MIa){var b=a.i();a.MIa=parseInt(b.getAttribute(W.uca))}return a.MIa}k=bo.prototype;k.Le=function(){var a=this.i();return a.disabled||C.sa(a,I.lb)};function gr(a,b){u.assert(!a.Ch(),"this method is not intended for detached menus");if(a.Py()){var d=a.i();C.O(d,W.cf);C.O(d,W.Nh)}bo.pN&&or(a,bo.pN.i())&&bo.pH();a.qh&&(a.qh.scrollTop=0);W.hua(b)}
k.eJa=function(){this.Zt();nr(this);var a=this.i();W.uh(a,!0);a=this.ej.Ha();this.GU=a.style.left;this.HU=a.style.top;a=this.f().g();W.hua(a);bo.t9a(a);v.l.finest("menuBar auto open mode, set to OFF due to menu first becoming detached");W.gz(!1)};k.YIa=function(){var a=fr(this);u.assert(null!=a,"menuPopup should not disappear during a drag.");if(a){a.iQ(null);var b={y:a.vP(),x:a.$O()};a.ov(b);lr(this);dr(this);a.Gi();W.cl()}};
function hr(a,b){a.E6&&ir(a);a.E6=A.c.Y().setTimeout(a.D(a.Vbb),bo.bDa-b)}k.Vbb=function(){var a=this.f();a&&this.Za(a,a.g())&&this.Jb()};k.Wbb=function(){var a=this.f();this.Za(a,a.g())?$q(this):(delete bo.pN,delete bo.F6,this.show(null,!1))};function ir(a){if(a.E6){window.clearTimeout(a.E6);delete a.E6;var b=bo.pN;b&&ar(b)<=ar(a)&&bo.pH()}}k.zha=function(){lr(this)};r.a("AdfDhtmlMenuPeer.prototype.__makeDetached",{zha:bo.prototype.zha});
function lr(a){C.O(a.gB,W.cf);var b=a.ej.Ha();a.F5=!0;a.GU=b.style.left;a.HU=b.style.top;C.w(br(a),W.aJ);W.uh(a.i().parentNode,!0,!0);fr(a).Hp()}bo.prototype.Zt=function(){var a=this.i();C.O(a,W.Nh);C.O(a,W.cf)};bo.prototype.Qia=function(){var a=this.f(),b=a.g();C.O(br(this),W.aJ);this.F5=!1;var d=this.i();C.O(d,W.Nh);bo.Q6(b);this.ej&&this.ej.Jd();delete this.ej;b==bo.uN&&(bo.uN=null);bo.h.Jb.call(this,a,b);W.cl();W.pua()};
function mr(a,b,d){a.eJa();var e=a.ej.Ha();e.style.left=e.offsetLeft+b+"px";e.style.top=e.offsetTop+d+"px";a.YIa()}function pr(a){a=fr(a);if(null!=a&&null!=a.Zf())return a.Zf()}function nr(a){a=pr(a);Ki.uj(a)&&Ki.iz(a,!1)}function dr(a){a=pr(a);null!=a&&Ki.uj(a)&&(Ki.ev(a),Ki.iz(a,!0))}bo.prototype.Oha=function(a,b){jr(this,a,b)};r.a("AdfDhtmlMenuPeer.prototype.__startScroll",{Oha:bo.prototype.Oha});
function jr(a,b,d){a.uX=bo.j5a;d&&(a.uX=bo.l1a);b||(a.uX*=-1);d?a.DN():(b=a.D(a.DN),a.zoa=setInterval(b,10))}function kr(a){a.zoa&&clearInterval(a.zoa);a.zoa=null;var b=a.qh.scrollTop,d=a.EN.rows,e=d.length;if(0>a.uX)for(var f=e-1;-1<f;f--){var g=d[f];if("none"!=g.style.display&&(e=g.offsetTop,b>=e)){a.qh.scrollTop=e;break}}else for(var h=b+a.qh.offsetHeight,f=0;f<e;f++)if(g=d[f],"none"!=g.style.display&&(g=g.offsetTop+g.offsetHeight,h<=g)){a.qh.scrollTop=b+(g-h);break}}
bo.prototype.DN=function(){this.qh.scrollTop+=this.uX;var a=this.qh.scrollTop,b=this.EN.offsetHeight-this.qh.offsetHeight;(0>=a||a>=b)&&kr(this);this.Mm()};function br(a){if(null==a.Mma){var b=a.i().getAttribute("id"),b=I.j(b,"menu");a.Mma=q.b.getElementById(b)}return a.Mma}function fr(a){var b=a.f(),d=b.g();return a.Wp(b,d)}function er(a){return fr(a)?!0:!1}bo.prototype.DP=function(){return null!=this.Ax&&"contentLoaded"==this.Ax};r.a("AdfDhtmlMenuPeer.prototype.isContentLoaded",{DP:bo.prototype.DP});
bo.prototype.eB=function(){null==this.Ax&&(this.Ax=null==br(this)?"noContent":"contentLoaded");return this.Ax};bo.prototype.BX=function(a){this.Ax=a};bo.prototype.$x=function(a){u.u(a);this.Pa&&this.Pa.setAttribute("tabIndex","-1");a.setAttribute("tabIndex","0");this.Pa=a};bo.prototype.Gj=function(a,b,d){bo.h.Gj.call(this,a,b,d);this.bq()||er(this)||this.show(null,!1)};r.a("AdfDhtmlMenuPeer.prototype.SimulateMouseOnDescendant",{Gj:bo.prototype.Gj});
bo.prototype.EW=function(a){q.b.Ea(a);this.qh.scrollTop+=a.deltaY;this.Mm()};bo.prototype.rx=function(a){this.qh.scrollTop+=-1*a.deltaY;this.Mm()};