function rl(a,b,d,e,f,g){this.Init(a,b,d,e,f,g)}m("AdfOverflowSupport",rl);r.v(rl);rl.ga=function(){this.bT="_afrOfwSrt";this.KE="_afrOfwEnd";this.Ph="p_AFDepressed"};m("AdfOverflowSupport.InitClass",rl.ga);
rl.prototype.Init=function(a,b,d,e,f,g){rl.h.Init.call(this);this.nb=b;this.hd=d||"end";this.zG=e||"after";this.RW=f||"horizontal";this.Ppa=g;this.xb=q.b.getElementById(a);YB(this)&&(this.Ap=ZB(a,"soc"),(this.Yn=ZB(a,"soi"))&&this.Gla());$B(this)&&(this.lp=ZB(a,"eoc"),this.Lk=ZB(a,"eoi"),null!=this.Lk&&this.Dla());aC(this)&&(a=I.j(a,"dlc"),this.Kk=q.b.getElementById(a));this.th=[];this.np=0;this.zx=-1;this.bla=!1};r.a("AdfOverflowSupport.prototype.Init",{Init:rl.prototype.Init});
rl.z$=function(a){a=q.b.getElementById(a);return Math.max(a.firstChild.offsetWidth,a.scrollWidth)>a.offsetWidth||Math.max(a.firstChild.offsetHeight,a.scrollHeight)>a.offsetHeight?!0:!1};m("AdfOverflowSupport.needsOverflow",rl.z$);rl.osa=function(a,b){b||(b=[]);var d=q.b,e=a.g(),f=I.la(e,"eoc"),e=I.la(e,"soc");(f=d.getElementById(f))&&d.qj(f,b);(f=d.getElementById(e))&&d.qj(f,b);return b};m("AdfOverflowSupport.getOverflowChildComponents",rl.osa);
rl.prototype.Yy=function(a){a||(this.Ap&&A.c.Si(this.Ap),this.lp&&A.c.Si(this.lp));delete this.nb;delete this.xb;if(YB(this)){delete this.Ap;if(this.Yn){a=q.b;var b=this.Yn;a.xa(b,"mousedown",this.apa);a.xa(b,"keydown",this.apa);a.xa(b,"mouseup",this.PX);a.xa(b,"mouseout",this.OX);delete this.Yn;delete this.y7}this.Zoa&&delete this.Zoa}$B(this)&&(a=q.b,b=this.Lk,a.xa(b,"mousedown",this.Vja),a.xa(b,"keydown",this.Vja),a.xa(b,"mouseup",this.aV),a.xa(b,"mouseout",this.$U),delete this.Lk,delete this.lp,
delete this.aM,this.Uja&&delete this.Uja);aC(this)&&delete this.Kk;for(a=this.th;0<a.length;)for(b=a.pop(),E.clear(b.elements),E.clear(b.QC),b=b.vQ;0<b.length;){var d=b.pop();E.clear(d)}};r.a("AdfOverflowSupport.prototype.removeOverflowSupport",{Yy:rl.prototype.Yy});rl.prototype.Mp=function(){this.th.push({elements:[],QC:[],vQ:[]});this.zx++};r.a("AdfOverflowSupport.prototype.createStep",{Mp:rl.prototype.Mp});rl.prototype.addElement=function(a){this.th[this.th.length-1].elements.push(a)};
r.a("AdfOverflowSupport.prototype.addElement",{addElement:rl.prototype.addElement});rl.prototype.Wr=function(a){this.th[this.th.length-1].QC.push(a)};r.a("AdfOverflowSupport.prototype.addOverflowElement",{Wr:rl.prototype.Wr});rl.prototype.wY=function(a){var b=this.th.length-1,d=a.ownerDocument,e=d.createElement("a");e.style.display="none";d=d.createElement("a");d.style.display="none";a.parentNode.insertBefore(d,a);this.th[b].vQ.push([a,d,e]);return e};
r.a("AdfOverflowSupport.prototype.createSwapPosition",{wY:rl.prototype.wY});rl.prototype.$k=function(a){for(var b=this.Kk,d=0;d<a.length;d++)b.appendChild(a[d])};r.a("AdfOverflowSupport.prototype.addDropListElements",{$k:rl.prototype.$k});rl.prototype.te=function(){this.bla||(this.bla=!0,this.Fn(),this.bla=!1)};r.a("AdfOverflowSupport.prototype.handleResize",{te:rl.prototype.te});
rl.prototype.Fn=function(){var a=this.xb.offsetWidth+3,b=this.xb.offsetHeight+5;if("both"==this.hd||"droplist"==this.hd){bC(this);a:for(var d=this.th,e=0;e<d.length;e++){for(var f=d[e],g=0;g<f.QC.length;g++)if(C.sa(f.QC[g].firstChild,"p_AFSelected")){this.NT=e;break a}for(g=0;g<f.elements.length;g++)if(C.sa(f.elements[g],"p_AFSelected")){this.NT=e;break a}}d=cC(this,a,b);dC(this,a,b,d);eC(this);a=this.xb.offsetWidth+3;b=this.xb.offsetHeight+5;for(d=cC(this,a,b);fC(this,a,b,d);)eC(this),d=cC(this,
a,b);gC(this)==this.th.length&&Qt(this)}else{e=this.th.length;f=gC(this);if(f==e&&(bC(this),d=cC(this,a,b)))return;eC(this,!0);a=this.xb.offsetWidth+3;b=this.xb.offsetHeight+5;if("horizontal"==this.RW&&50>=a||"vertical"==this.RW&&50>=b){for(;0<gC(this);)switch(this.hd){case "end":hC(this);break;case "start":case "both":case "droplist":iC(this)}d=cC(this,a,b)}else null==d&&(d=cC(this,a,b)),d=jC(this,d,a,b,d?f:0,d?e:f),a=this.xb.offsetWidth+3,b=this.xb.offsetHeight+5;d=dC(this,a,b,d);a=this.xb.offsetWidth+
3;b=this.xb.offsetHeight+5;if(gC(this)==e){if(d){bC(this);Qt(this);return}bC(this);if(d=cC(this,a,b)){Qt(this);return}eC(this,!0)}fC(this,a,b,d);this.Ppa&&kC(this)}};rl.prototype.iI=function(){for(bC(this);gC(this)<this.th.length;)switch(this.hd){case "end":lC(this);break;case "start":mC(this);break;case "both":case "droplist":0!=this.np?mC(this):lC(this)}Qt(this)};r.a("AdfOverflowSupport.prototype.removeAllItemsFromOverflow",{iI:rl.prototype.iI});
rl.prototype.O8=function(a){this.LA(a)&&(a=J.DO(a,this.Pa,!0),u.u(a),this.Pa=a)};r.a("AdfOverflowSupport.prototype.focusNextChild",{O8:rl.prototype.O8});rl.prototype.P8=function(a){this.LA(a)&&(a=J.EO(a,this.Pa,!0),u.u(a),this.Pa=a)};r.a("AdfOverflowSupport.prototype.focusPreviousChild",{P8:rl.prototype.P8});
rl.prototype.LA=function(a){u.assert(this.Ppa);u.u(a);u.u(this.Pa);u.assert("0"==this.Pa.getAttribute("tabindex"),"The overflow popup's active descendant should have tabindex 0");this.Pa||(v.l.warning("Overflow has lost its assigned activeDescendant!"),this.bh());return null!=this.Pa};rl.prototype.Vaa=function(a){u.u(a);this.Pa!=a&&(this.Pa&&this.Pa.setAttribute("tabIndex","-1"),a.setAttribute("tabIndex","0"),this.Pa=a)};r.a("AdfOverflowSupport.prototype.updateActiveDescendant",{Vaa:rl.prototype.Vaa});
rl.prototype.lk=function(a){if($B(this)&&C.Nc(this.lp,a))return"end";if(YB(this)&&C.Nc(this.Ap,a))return"start"};r.a("AdfOverflowSupport.prototype.isInOverflow",{lk:rl.prototype.lk});rl.prototype.Daa=function(a){var b=this.nb,d=this.nb.f();b.Za(d,"start"==a?rl.bT:rl.KE)||("start"==a?(nC(this),oC(this,rl.bT,this.Ap,this.y7)):(pC(this),aC(this)?oC(this,rl.KE,this.Kk,this.aM):oC(this,rl.KE,this.lp,this.aM)))};r.a("AdfOverflowSupport.prototype.showOverflowPopup",{Daa:rl.prototype.Daa});
function Qt(a){a=a.nb;var b=a.f();a.Za(b,rl.bT)&&a.Jb(b,rl.bT);a.Za(b,rl.KE)&&a.Jb(b,rl.KE)}function YB(a){return"start"==a.hd||"both"==a.hd||"droplist"==a.hd}function $B(a){return"end"==a.hd||"both"==a.hd||"droplist"==a.hd}function aC(a){return"droplist"==a.hd}function ZB(a,b){var d=I.j(a,b);return q.b.getElementById(d)}k=rl.prototype;
k.Gla=function(){var a=q.b,b=this.Yn,d=qC();d.alignElement=b;d[AdfRichPopup.Ed]="before"==this.zG?AdfRichPopup.ALIGN_BEFORE_START:AdfRichPopup.ALIGN_AFTER_START;this.y7=d;d=this.apa=this.D(this.QX);a.ba(b,"mousedown",d);a.ba(b,"keydown",d);this.PX=this.D(this.dnb);a.ba(b,"mouseup",this.PX);this.OX=this.D(this.cnb);a.ba(b,"mouseout",this.OX)};
k.Dla=function(){var a=q.b,b=this.Lk,d=qC();d.alignElement=this.Lk;d[AdfRichPopup.Ed]="before"==this.zG?AdfRichPopup.ALIGN_BEFORE_END:AdfRichPopup.ALIGN_AFTER_END;this.aM=d;d=this.Vja=this.D(this.bV);a.ba(b,"mousedown",d);a.ba(b,"keydown",d);this.aV=this.D(this.Rcb);a.ba(b,"mouseup",this.aV);this.$U=this.D(this.Qcb);a.ba(b,"mouseout",this.$U)};function qC(){return{autodismiss:"autodismissAlways",focus:!0,type:"menu",closeOnEscape:!0}}
k.QX=function(a){var b=q.b,d=a.type,e=a.keyCode;if("keydown"!=d||e==w.jb||e==w.Ra||e==w.gd)"mousedown"==d&&a.button&&a.button!=D.Gl||(nC(this),oC(this,rl.bT,this.Ap,this.y7),"mousedown"==d&&(d=b.ca(a),this.Gb(d,!0))),b.Ea(a)};function nC(a){null==a.HLa&&(a.HLa=a.D(a.chb),r.bb(V),a.y7.closeHandler=a.HLa,a.Zoa=a.Ap.parentNode)}k.dnb=function(a){a=q.b.ca(a);this.Gb(a,!1)};k.cnb=function(a){a=q.b.ca(a);this.Gb(a,!1)};
k.bV=function(a){var b=q.b,d=a.type,e=a.keyCode;if("keydown"!=d||e==w.jb||e==w.Ra||e==w.gd)"mousedown"==d&&a.button&&a.button!=D.Gl||(pC(this),aC(this)?oC(this,rl.KE,this.Kk,this.aM):oC(this,rl.KE,this.lp,this.aM),"mousedown"==d&&(d=b.ca(a),this.Gb(d,!0))),b.Ea(a)};function pC(a){null==a.GLa&&(a.GLa=a.D(a.Zgb),r.bb(V),a.aM.closeHandler=a.GLa,a.Uja=a.lp.parentNode)}k.Rcb=function(a){a=q.b.ca(a);this.Gb(a,!1)};k.Qcb=function(a){a=q.b.ca(a);this.Gb(a,!1)};
k.Gb=function(a,b){var d=rl.Ph;b?C.w(a,d):C.O(a,d)};function oC(a,b,d,e){var f=a.nb,g=a.nb.f();f.Za(g,b)?a.nb.Jb(g,b):(a.Ppa&&kC(a,d),a.nb.He(g,d,e,b))}k.chb=function(){this.Ap&&this.Zoa.appendChild(this.Ap)};k.Zgb=function(){aC(this)&&this.Kk?this.Kk.parentNode.appendChild(this.Kk):this.lp&&this.Uja.appendChild(this.lp)};
function jC(a,b,d,e,f,g){var h=g-f;if(2>=h)return b;for(var h=Math.ceil(h/2),l=0;l<h;l++)if(b)d=a,"end"==d.hd?lC(d):"start"==d.hd&&mC(d),d=a.xb.offsetWidth+3,e=a.xb.offsetHeight+5;else{var n=a;"end"==n.hd?hC(n):"start"==n.hd&&iC(n)}(b=cC(a,d,e))?f+=h:g-=h;return jC(a,b,d,e,f,g)}
function dC(a,b,d,e){for(;gC(a)<a.th.length&&(e||("both"==a.hd||"droplist"==a.hd)&&(a.NT<a.np||a.NT>a.zx));){switch(a.hd){case "end":lC(a);break;case "start":mC(a);break;case "both":case "droplist":b=a.NT-a.np,d=a.th.length-1,b<gC(a)-b-1&&0!=a.np||a.zx==d?mC(a):lC(a)}b=a.xb.offsetWidth+3;d=a.xb.offsetHeight+5;e=cC(a,b,d)}return e}
function fC(a,b,d,e){for(var f=!1;!e&&0<gC(a);){switch(a.hd){case "end":hC(a);break;case "start":iC(a);break;case "both":case "droplist":e=a.NT-a.np,e>=gC(a)-e-1||-1==a.np?iC(a):hC(a)}f=!0;e=cC(a,b,d)}return f}function cC(a,b,d){var e=Math.max(a.xb.firstChild.offsetWidth,a.xb.scrollWidth),f=q.oa();A.c.Ka().La()&&f.S()==q.ia&&8>f.Ib()&&(e=a.xb.scrollWidth);a=Math.max(a.xb.firstChild.offsetHeight,a.xb.scrollHeight)<=d;return e<=b&&a}
function mC(a){var b=a.th[a.np-1];rC(b.elements);sC(b.QC);tC(b.vQ,!0);a.np--}function lC(a){var b=a.th[a.zx+1];rC(b.elements);sC(b.QC);tC(b.vQ,!0);a.zx++}function iC(a){var b=a.th[a.np];uC(b.elements);vC(a,b.QC,!0);tC(b.vQ);a.np++}function hC(a){var b=a.th[a.zx];uC(b.elements);vC(a,b.QC,void 0);tC(b.vQ);a.zx--}function uC(a){for(var b=a.length,d=0;d<b;d++){var e=a[d];e.y4=e.style.display;e.style.display="none"}}function rC(a){for(var b=a.length,d=0;d<b;d++){var e=a[d];e.style.display=e.y4||""}}
function sC(a){for(var b=a.length,d=0;d<b;d++){var e=a[d];e.parentNode.removeChild(e)}}function vC(a,b,d){for(var e=b.length,f=d?a.Ap:a.lp,g=0;g<e;g++){var h=b[g];"before"==a.zG||d&&"vertical"==a.RW?f.appendChild(h):f.insertBefore(h,f.firstChild)}}function tC(a,b){for(var d=a.length,e=0;e<d;e++){var f=a[e],g=f[b?1:2];g.parentNode.insertBefore(f[0],g)}}function gC(a){var b=a.th.length;return b-a.np-(b-1-a.zx)}
function bC(a){switch(a.hd){case "end":C.O(a.xb,"p_AFEndOverflow");break;case "start":C.O(a.xb,"p_AFStartOverflow");break;case "both":C.O(a.xb,"p_AFEndOverflow");C.O(a.xb,"p_AFStartOverflow");break;case "droplist":C.O(a.xb,"p_AFOverflowDroplist")}}
function eC(a,b){if(b)switch(a.hd){case "end":C.w(a.xb,"p_AFEndOverflow");break;case "start":C.w(a.xb,"p_AFStartOverflow");break;case "both":C.w(a.xb,"p_AFEndOverflow");C.w(a.xb,"p_AFStartOverflow");break;case "droplist":C.w(a.xb,"p_AFOverflowDroplist")}else 0<a.np&&0<a.Ap.childNodes.length&&(aC(a)?C.w(a.xb,"p_AFOverflowDroplist"):C.w(a.xb,"p_AFStartOverflow")),a.zx<a.th.length-1&&0<a.lp.childNodes.length&&(aC(a)?C.w(a.xb,"p_AFOverflowDroplist"):C.w(a.xb,"p_AFEndOverflow"))}
function kC(a,b){if(!b)switch(a.hd){case "end":b=a.lp;break;case "start":b=a.Ap;break;case "droplist":b=a.Kk;break;case "both":v.l.warning("Roving tab index not yet supported for overflow type 'both'!");return}a.Pa&&a.Pa.setAttribute("tabIndex","-1");a.Pa=J.oI(b,{Y9:!0,X9:!0})};