var Gu=I.ea(I,"AdfDhtmlPanelSpringboardPeer",!1);m("AdfDhtmlPanelSpringboardPeer",Gu);
Gu.C=function(){I.sb(this,AdfRichPanelSpringboard.DISPLAY_MODE);I.ra(this,D.Ad,D.wb,D.Bd,D.Rg);q.b.Dd()||I.ra(this,D.ze,D.gg);this.Gw="data-ptKey";this.ln="data-disTab";this.A1="data-cnv";this.Rw="tabh";this.J6a="tabbvp";this.H6a="tabbcvs";this.ZEa="tabba";this.Mga="tabbb";this.$Ea="tabbc";this.uT="ti";this.K6a="icon";this.k6a="bodyDiv";this.l6a="itemsDiv";this.Yda="tia";this.u5a="sbsp";this.SZa="cbc";this.TZa="cbct";this.X5a="scbic";this.b0a="ecbic";this.I3a="optRnd";this.TEa="p_AFStrip";this.OBa=
"p_AFGrid";this.Nf="p_AFSelected";this.I_a="p_AFDisabled";this.Fk="p_AFFlow";this.b1="p_AFBusy";this.fEa="p_AFScrollY";this.Kga=.33};m("AdfDhtmlPanelSpringboardPeer.InitSubclass",Gu.C);
Gu.prototype.G=function(a,b){Gu.h.G.call(this,a,b);var d=q.oa(),e=a.g(),f=I.j(e,Gu.Rw);this.pc=d.getElementById(f);f=I.j(e,Gu.u5a);this.nu=d.getElementById(f);f=I.j(e,Gu.H6a);this.Zw=d.getElementById(f);f=I.j(e,Gu.J6a);this.Wt=d.getElementById(f);this.KA=d.getElementById(I.j(e,Gu.SZa));this.Gk=d.getElementById(I.j(e,Gu.TZa));this.Sr=d.getElementById(I.j(e,Gu.X5a));this.XA=d.getElementById(I.j(e,Gu.b0a));this.pna=I.j(e,Gu.I3a);var e=A.c.H(),g=Gu.yb();this.Wj=g?"right":"left";if(this.kla="true"==e.qa("af|panelSpringboard-tr-hide-selected-pointer"))this.nu.style.display=
"none";this.Iia=0;this.CL=!1;this.kF={};this.QL=parseInt(e.qa("af|panelSpringboard-tr-conveyor-slide-animation-duration"),10);isNaN(this.QL)&&(this.QL=0);this.jh=0;this.Hla=!0;this.E7=this.F7=0;var h=this;d.ba(this.Sr,"click",function(){Hu(h,!g)});d.ba(this.XA,"click",function(){Hu(h,g)});d.ba(this.Gk,"keyup",this.D(this.clb));d.ba(this.Gk,"touchstart",function(a){h.F7=a.pageX});d.ba(this.Gk,"touchmove",function(a){h.E7=a.pageX});d.ba(this.Gk,"touchend",function(){if(Iu(h)){if(!h.E7||!h.F7)return;
h.E7<h.F7&&"inline-block"==h.XA.style.display?Hu(h,!1):"inline-block"==h.Sr.style.display&&Hu(h,!0)}h.F7=0;h.E7=0});(e=d.rm()[q.zl])&&e!=q.Al&&Ju(this,d,this.Wt);"strip"===a.K(AdfRichPanelSpringboard.DISPLAY_MODE)&&(d=this.Rd(this.pc),Ku(this,d[0]),this.Gk.style.overflow="hidden",this.KA.style.overflow="hidden")};r.a("AdfDhtmlPanelSpringboardPeer.prototype.InitDomElement",{G:Gu.prototype.G});
Gu.prototype.Bwa=function(a,b,d,e){if(a.K("_ignoreNextDisplayModeChange"))a.setProperty("_ignoreNextDisplayModeChange",!1,!1,!1);else{var f=new uh(a,d);f.F(!0);f.Aa()?(a.setProperty("_ignoreNextDisplayModeChange",!0,!1,!1),a.setProperty("displayMode",e,!1,!1)):(a=this.Rd(this.pc),e=C.sa(b,Gu.Fk),"grid"==d?(C.w(b,Gu.OBa),C.O(b,Gu.TEa),Lu(this,a),e&&(b.style.height=""),Iu(this)&&Mu(this),this.nu.style.display="none",Nu(this,a,b.offsetWidth,b.offsetHeight)):"strip"==d&&(this.Wt.style.visibility="hidden",
C.w(b,Gu.TEa),C.O(b,Gu.OBa),d=e?null:Ou(this,"middle"),this.di(b,d),e&&(b.style.width="auto",b.style.height="auto"),delete this.gla,Pu(this,a,b.offsetWidth)))}};r.a("AdfDhtmlPanelSpringboardPeer.prototype.ComponentDisplayModeChanged",{Bwa:Gu.prototype.Bwa});Gu.prototype.za=function(a){var b=a.na(),d=a.X();a.Aa()||(b==w.ab||b==w.ub?this.nB(d)&&((b=J.ZY(this.pc,d))||(b=J.GH(this.pc)),b&&(b.focus(),a.cancel())):b!=w.Ra&&b!=w.vb||!this.nB(d)||((b=J.cP(this.pc,d))||(b=J.ym(this.pc)),b&&(b.focus(),a.cancel())))};
r.a("AdfDhtmlPanelSpringboardPeer.prototype.HandleComponentKeyUp",{za:Gu.prototype.za});Gu.prototype.$a=function(a){this.rx(a,!0,!1)};r.a("AdfDhtmlPanelSpringboardPeer.prototype.HandleComponentMouseOver",{$a:Gu.prototype.$a});Gu.prototype.Fa=function(a){this.rx(a,!1,!0)};r.a("AdfDhtmlPanelSpringboardPeer.prototype.HandleComponentMouseDown",{Fa:Gu.prototype.Fa});Gu.prototype.Ac=function(a){this.rx(a,!1,!1)};r.a("AdfDhtmlPanelSpringboardPeer.prototype.HandleComponentMouseUp",{Ac:Gu.prototype.Ac});
Gu.prototype.fc=function(a){this.rx(a,!1,!1)};r.a("AdfDhtmlPanelSpringboardPeer.prototype.HandleComponentMouseOut",{fc:Gu.prototype.fc});Gu.prototype.M=function(a){if(!a.Aa()&&a.ec()){var b=this.f(),d=a.X(),d=Qu(d,this.i()),e=Ru(d);null!=e&&(a.cancel(),a=A.c.m(e),a.getDisabled()||("grid"!=b.K(AdfRichPanelSpringboard.DISPLAY_MODE)?Su(this,b,a,d):(d=Tu(this),a!=d&&(null!=a&&(e=a.g(),this.ax(e,!0)),null!=d&&(d=d.g(),this.ax(d,!1))),b.setProperty(AdfRichPanelSpringboard.DISPLAY_MODE,"strip",!1,!1),A.c.m(a.g()).setDisclosed(!0))))}};
r.a("AdfDhtmlPanelSpringboardPeer.prototype.HandleComponentClick",{M:Gu.prototype.M});Gu.prototype.So=function(){};r.a("AdfDhtmlPanelSpringboardPeer.prototype.TabReselected",{So:Gu.prototype.So});Gu.prototype.Qq=function(){};r.a("AdfDhtmlPanelSpringboardPeer.prototype.NewTabSelected",{Qq:Gu.prototype.Qq});
Gu.prototype.Zb=function(a,b){var d=q.b;this.sr&&delete this.sr;if(a.id===this.pna){var e=this.i();if(null!=e){var f=q.oa(),g=C.sa(e,Gu.Fk),e=this.f().g(),h=I.la(e,Gu.Mga),h=f.getElementById(h);C.O(h,Gu.b1);g||(g=I.la(e,Gu.ZEa),e=I.la(e,Gu.$Ea),g=f.getElementById(g),f=f.getElementById(e),C.O(g,Gu.b1),C.O(f,Gu.b1))}var e=a.childNodes,l,n;if(null!=e){2>e.length&&v.l.severe("Error getting the body and item divs of the optRnd block.");g=!1;for(f=0;f<e.length;f++)1==e[f].nodeType&&(g?(n=e[f],h=n.id,null!=
h&&-1==h.indexOf(Gu.l6a)&&v.l.severe("Error getting the item div of the optRnd block.")):(l=e[f],h=l.id,null!=h&&-1==h.indexOf(Gu.k6a)&&v.l.severe("Error getting the body div of the optRnd block."),g=!0));for(var g=l.childNodes,t,f=g.length-1;-1<f;--f)if(h=g[f],void 0==h)v.l.severe("Error getting the child of the optRnd block, index: "+f);else if(1==h.nodeType){var y=C.pa(h);"none"!=h.style.display&&(t=h,this.CX(y.id));l.removeChild(h);e=d.getElementById(y.id);null!=e&&(page.Si(e),d.yc(e),d.kI(h,
e.parentNode),d.Ia(y));this.gla=!0}g=n.childNodes;for(h=g.length-1;-1<h;--h)y=g[h],void 0==y?v.l.severe("Error getting the child of the optRnd block, index: "+f):1==y.nodeType&&(e=y.id,n.removeChild(y),e=d.getElementById(e),null!=e&&(page.Si(e),d.yc(e),d.kI(y,e),d.Ia(y)));(d=Uu(this,Gu.Yda))&&J.va(d);a.removeChild(l);a.removeChild(n);t&&(this.sr=t.parentNode.parentNode);this.K3||this.TB||!this.sr||(Vu(this,this.sr),delete this.sr,Wu(this),this.kla||(this.nu.style.display=""))}}else Gu.h.Zb.call(this,
a,b)};r.a("AdfDhtmlPanelSpringboardPeer.prototype.ReplaceDomElement",{Zb:Gu.prototype.Zb});Gu.prototype.nc=function(a){return a.id===this.pna?this.i():a};r.a("AdfDhtmlPanelSpringboardPeer.prototype.DomReplaceNotify",{nc:Gu.prototype.nc});Gu.prototype.ya=function(){return!0};r.a("AdfDhtmlPanelSpringboardPeer.prototype.needsResizeNotify",{ya:Gu.prototype.ya});
Gu.prototype.Sa=function(a,b,d,e){this.kF={};if(null==this.TB&&null==this.UN&&(b=this.i())){u.u(b);var f=this.Hla,g=this.f();b=this.Rd(this.pc);if((g="grid"!=g.K(AdfRichPanelSpringboard.DISPLAY_MODE))&&d!=a){e=b.length;if(0<e){a=Xu(this,b,d);var h,l,g=this.Wj,n=this.Hla,t=-1;n&&delete this.Hla;for(var y=0;y<e;y++){var z=a[y].properties;b[y].style[g]=z[g]+"px";b[y].style.top=z.top+"px";var B=C.pa(b[y]);B&&C.sa(B,Gu.Nf)&&(l=!0,h=z[g],t=y)}null!=this.nu&&l&&(this.nu.style[g]=h+"px",n&&Yu(this,d,b,t))}Zu(this,
d);if(!f&&$u(this)>d){h=this.KA.offsetWidth;d=av(this);"inline-block"==this.Sr.style.display&&(h-=d);"inline-block"==this.XA.style.display&&(h-=d);d=null;f=0;l=this.jh;e=b.length;for(a=l;f<=h&&a<e;a++)d=b[a],f+=d.offsetWidth;if(a===e&&!(f>h)){d=e=0;a=null;for(h-=f;-1<l&&d<=h;l--,e++)a=b[l],d+=a.offsetWidth;d>h&&(e--,d-=a.offsetWidth);0<e&&(b=this.Wj,this.jh-=e,0>this.jh&&(this.jh=0),h=parseInt(this.pc.style[b],10),this.CL?this.pc.style[b]=h+d+"px":(this.CL=!0,l={},l[b]=h+d,bv(this,l)))}}}else if(!g){h=
b.length;if(0<h)for(d=cv(this,b,d,e),d.length!==h&&v.l.severe("The number of items in the panelSpringboard does not equal the number of items in the grid items position array."),l=this.Wj,f=0;f<h;f++)e=d[f].properties,b[f].style[l]=e[l]+"px",b[f].style.top=e.top+"px";Lu(this,b)}}};r.a("AdfDhtmlPanelSpringboardPeer.prototype.ResizeNotify",{Sa:Gu.prototype.Sa});
Gu.prototype.$e=function(a){this.f7&&(this.f7.stop(),delete this.f7);this.J3&&(this.J3.stop(),delete this.J3,this.K3=!1);this.UN&&(this.UN.stop(),delete this.UN);this.TB&&(this.TB.stop(),delete this.TB);delete this.pc;delete this.rub;delete this.Zw;delete this.Wt;delete this.pna;if(this.e5&&this.Wt){var b=this.Wt,d=q.b;d.xa(b,"touchstart",this.e5);d.xa(b,"touchmove",this.Hka);d.xa(b,"touchend",this.Gka);delete this.e5;delete this.Gka;delete this.Hka;delete this.JA;delete this.IA}A.c.cp(a);Gu.h.ka.call(this,
a)};r.a("AdfDhtmlPanelSpringboardPeer.prototype.componentRemoved",{$e:Gu.prototype.$e});function Xu(a,b,d,e){var f=b.length,g=a.Wj,h=[],l;if(0<f){var n=b[0].offsetWidth;l={};if(!e&&$u(a)>d)for(e=0,dv(a,d),a=0;a<f;a++)l={top:0},l[g]=e,l={element:b[a],properties:l},h.push(l),e+=n;else for(Iu(a)&&Mu(a),e=Math.max(0,d/2-f*n/2),a=0;a<f;a++)e=Math.round(e),l={top:0},l[g]=e,l={element:b[a],properties:l},h.push(l),e+=n}return h}
function cv(a,b,d,e){var f=b.length;if(0<f){var g=[],h,l=b[0].offsetWidth,n=b[0].offsetHeight,t;for(t=1;t*t<f;)t++;t=3>=f?{rows:1,rH:f}:{rows:t,rH:t};h=n*t.rows;var y=l*t.rH,z=d/2-y/2,B=e/2-h/2,F=a.Wj;y>d?(t.rH=Math.floor(d/l),0==t.rH&&(t.rH=1),d=Math.ceil(f/t.rH),t.rows=d,B=d=0):h>e?(d=z,B=0):d=z;h=n*t.rows;h>e?C.w(a.pc,Gu.fEa):C.O(a.pc,Gu.fEa);e=0;h={};a.Gk.style.height="";a.Gk.style.overflow="";a.KA.style.overflow="";for(y=0;y<t.rows&&e<f;y++){a=d;for(z=0;z<t.rH&&e<f;z++)a=Math.round(a),B=Math.round(B),
h={top:B},h[F]=a,h={element:b[e],properties:h},g.push(h),a+=l,e++;B+=n}}return g}
function Pu(a,b,d){if(0<b.length){var e=Xu(a,b,d,!0);a.XX=d;d=0;d=A.c.H();d=parseInt(d.qa("af|panelSpringboard-tr-grid-to-strip-animation-duration"),10);isNaN(d)&&(d=0);a.TB=oj(0,d,e,function(a){a=a[0];var b=a.i();if(null!=b&&(b=b.offsetWidth,b!=a.XX)){a.XX=b;var d=a.TB;if(null!=d){var e=a.Rd(a.pc);d.stop();Pu(a,e,b)}}},function(a){var d=a[0],e=d.i();null!=e?Zu(d,e.offsetWidth):v.l.severe("In AdfDhtmlPanelSpringboardPeer.prototype._afterToStripAnimationFinal, no dom element. ");d.TB=null;d.Wt.style.visibility=
"visible";d.sr&&(Vu(d,d.sr),delete d.sr);d.gla&&(d.kla||(d.nu.style.display=""),Wu(d),delete d.gla);a=a[0];parseInt(a.Gk.style.height,10)!==b[0].offsetHeight&&Ku(a,b[0]);a.Gk.style.overflow="hidden";a.KA.style.overflow="hidden";$u(a)>a.XX&&(dv(a,a.XX),Yu(a,a.XX))},[a],null)}}
function Nu(a,b,d,e){a.Wt.style.visibility="hidden";0<b.length&&(b=cv(a,b,d,e),a.Enb=d,a.Dnb=e,d=0,d=A.c.H(),d=parseInt(d.qa("af|panelSpringboard-tr-strip-to-grid-animation-duration"),10),isNaN(d)&&(d=0),a.UN=oj(0,d,b,function(a){a=a[0];var b=a.i();if(null!=b){var d=b.offsetWidth,b=b.offsetHeight;if(d!=a.Enb||b!=a.Dnb){var e=a.UN;if(null!=e){var n=a.Rd(a.pc);e.stop();Nu(a,n,d,b)}}}},function(a){a[0].UN=null},[a],null))}
function Zu(a,b){var d=a.i();if(!C.sa(d,Gu.Fk)){var d=Ou(a,"left"),e=Ou(a,"middle"),f=Ou(a,"right");if(null!=d){var g=b+"px",h=Gu.yb(),l=a.Wj;d.style[l]=h?2*b+"px":"0px";d.style.width=g;e.style[l]=g;e.style.width=g;f.style[l]=h?"0px":2*b+"px";f.style.width=g;a.Zw.style.width=3*b+"px";a.Zw.style[l]=-1*b+"px"}}}function Ou(a,b){for(var d=q.oa(),e=C.Dc(a.Zw),f=e.length,g=0;g<f;g++){var h=e[g];if(d.getAttribute(h,Gu.A1)==b)return h}return null}
function Vu(a,b){var d=a.i();if(!C.sa(d,Gu.Fk)){var d=a.i().offsetWidth,e=q.oa(),f=Ou(a,"middle"),g=e.getAttribute(b,Gu.A1),h=a.Wj;if("middle"!=g){var l=b.style[h];b.style[h]=f.style[h];f.style[h]=l;e.setAttribute(b,Gu.A1,"middle");e.setAttribute(f,Gu.A1,g)}a.Zw.style.width=3*d+"px";a.Zw.style[h]=-1*d+"px"}}k=Gu.prototype;k.Nfb=function(a){a=a.touches;1===a.length?(a=a[0],this.JA=a.pageX):this.JA=null};k.Mfb=function(a){a=a.touches;1===a.length?(a=a[0],this.IA=a.pageX):this.IA=null};
k.Lfb=function(a){var b;if(null!=this.IA&&null!=this.JA&&(b="hidden"!==this.Wt.style.visibility)&&this.IA!==this.JA){if(a.Mhb){this.IA=this.JA=null;return}a=this.IA-this.JA;b=Gu.Kga*this.Wt.offsetWidth;if(Math.abs(a)>b){b=Gu.yb();var d=0>a?!b:b,e;a=this.f();if(null!=a){b=this.Rd(this.pc);var f,g;e=q.oa().getAttribute(this.pc,Gu.ln);if(null==e)e=null;else{e=I.j(e,Gu.uT);f=b.length;g=-1;for(var h=0;h<f;h++)if(b[h].id==e){g=h;break}e=g}-1==e&&(e=0);a:{g=e;if(-1!=g)if(f=this.i(),e=b.length,d)for(d=g+
1;d<e;d++){if((g=ev(b[d],f))&&!g.getDisabled()){b={component:g,element:b[d]};break a}}else for(d=g-1;0<=d;d--)if((g=ev(b[d],f))&&!g.getDisabled()){b={component:g,element:b[d]};break a}b=null}b&&Su(this,a,b.component,b.element)}}}this.IA=this.JA=null};function Ju(a,b,d){a.e5=a.D(a.Nfb);a.Gka=a.D(a.Lfb);a.Hka=a.D(a.Mfb);a.JA=null;a.IA=null;b.ba(d,"touchstart",a.e5);b.ba(d,"touchmove",a.Hka);b.ba(d,"touchend",a.Gka)}function ev(a,b){var d=Qu(a,b),d=Ru(d);return null==d?null:A.c.m(d)}
function Su(a,b,d,e){if(!a.K3&&!a.TB){var f=Tu(a),g=a.Wj;if(d!=f){d=a.J6(f,d);null!=d&&d.Aa()||(fv(a,e.style[g]),null!=f&&gv(a,f.g(),e));if("grid"!=b.K(AdfRichPanelSpringboard.DISPLAY_MODE)&&Iu(a)){f=a.Rd(a.pc);g=f.length;d=-1;for(var h=0;h<g;h++)if(f[h].id==e.id){d=h;break}-1<d&&Yu(a,a.i().offsetWidth,f,d)}a.Qq(b)}else a.So(b)}}k.nB=function(a){if(null==a)return!1;var b=a.id;if(null==b)return!1;b=b.split("::");return 1>=b.length||b[b.length-1]!=Gu.Yda||null==Qu(a,this.i())?!1:!0};
function Qu(a,b){u.u(a);var d=a,e=q.oa();if(null==d||1!=d.nodeType)return null;for(var f=e.getAttribute(d,Gu.Gw);null==f;){if(null==d||d==b)return null;d=d.parentNode;if(null==d||1!=d.nodeType)return null;f=e.getAttribute(d,Gu.Gw)}return d}function Ru(a){return null==a?null:q.oa().getAttribute(a,Gu.Gw)}function Tu(a){var b=null,b=q.oa().getAttribute(a.pc,Gu.ln);return null!=b?A.c.m(b):null}
k.J6=function(a,b){var d=null!=a;if(d&&1!=a.getDisclosed())v.l.severe("Unexpected panelSpringboard showDetailItem disclosure state for queueing client events. "+a.g());else if("immediate"==this.f().getContentDelivery())A.c.Zg()?(d=a.g(),this.ax(d,!1),d=a.o(),d.bind(a),d.i().parentNode.style.display="none",d=b.o(),d.bind(b),d.i().parentNode.style.display="",d=b.g(),this.ax(d,!0),a.setDisclosed(!1),b.setDisclosed(!0),this.CX(b.g())):v.l.warning("PanelSpringboard contentDelivery\x3dimmediate is not supported outside of attachment mode. Disclose ability is disabled while in this state.");
else{if(d)return d=a.o(),d.bind(a),d.fI(!1,!0,b);d=b.o();d.bind(b);return d.fI(!0,!0)}};k.ax=function(a,b){var d=I.j(a,Gu.uT);if(d=q.oa().getElementById(d))if(d=C.pa(d))C.qd(b,d,Gu.Nf),C.qd(b,C.Ic(d,"div",1),Gu.Nf)};k.Rd=function(a){a=a.childNodes;for(var b=[],d=a.length,e=0;e<d;e++){var f=a[e];1==f.nodeType&&f!=this.nu&&b.push(f)}return b};
function fv(a,b){if(null!=a.nu){var d=q.Ma,e=a.Wj,d=d(b),f={};f[e]=d;e=[{element:a.nu,properties:f}];d=0;d=A.c.H();d=parseInt(d.qa("af|panelSpringboard-tr-selected-pointer-animation-duration"),10);isNaN(d)&&(d=0);a.f7=oj(0,d,e,null,function(a){delete a[0].f7},[a],null)}else v.l.severe("Cannot find this._selectedPointerDiv. This means that the strip mode was not rendered properly.")}
function gv(a,b,d){var e=a.i(),f=C.sa(e,Gu.Fk),g=a.Wj;if(f)a.di(e,null);else if(null!=a.Zw){f=q.oa();b=I.j(b,Gu.uT);b=f.getElementById(b);b=parseInt(b.style[g])<parseInt(d.style[g]);var h=a.Wt.offsetWidth;d=Ru(d);d=f.getElementById(d);b?(f=-2*h,hv(a,e,d,"right")):(f=0,hv(a,e,d,"left"));ps(a.Zw);e={};e[g]=f;var l=[{element:a.Zw,properties:e}],n=0,g=A.c.H(),n=parseInt(g.qa("af|panelSpringboard-tr-body-slide-animation-duration"),10);isNaN(n)&&(n=0);a.K3=!0;window.setTimeout(function(){iv(a,n,l)},200)}}
function iv(a,b,d){a.J3=oj(0,b,d,null,function(a){a=a[0];delete a.J3;a.K3=!1;a.sr&&(Vu(a,a.sr),delete a.sr)},[a],null)}function hv(a,b,d,e){e=Ou(a,e);C.pa(e).appendChild(d.parentNode);a.di(b,e)}function Wu(a){var b=a.Wj,d=Uu(a,Gu.uT);a.nu.style[b]=d.style[b]}function Uu(a,b){var d,e;d=q.oa();e=d.getAttribute(a.pc,Gu.ln);e=I.j(e,b);return d.getElementById(e)}k.CX=function(a){q.oa().setAttribute(this.pc,Gu.ln,a)};
k.ALa=function(a,b,d){a=a.id;if(null==a)return!1;a=a.split("::");if(1>=a.length)return!1;a=a[a.length-1];return!a||a!=b&&a!=d?!1:!0};k.eV=function(a){a=Qu(a,this.i());a=Ru(a);return null!=a?A.c.m(a):null};
function Lu(a,b){for(var d=b.length,e=!1,f=0;f<d;f++){var g=C.pa(b[f]);if(g&&(e||C.sa(g,Gu.I_a)?g.setAttribute("tabIndex","-1"):(g.setAttribute("tabIndex","0"),e=!0),C.sa(g,Gu.Nf))){var h=a.eV(g,Gu.Yda);if(h&&!h.getDisabled()&&!I.yo(h)){var l=C.ib(g,"img");a.Hd(l,h,h.getIcon())}C.qd(!1,g,Gu.Nf);g.removeAttribute("aria-selected")}}}k.Hd=function(a,b,d){d||(d=b.getIcon());a.src=d};
k.rx=function(a,b,d){var e=q.oa();a=a.X();(a=this.eV(a,Gu.uT))&&!I.yo(a)&&(e=e.getElementById(I.j(a.g(),Gu.K6a)),a.getDisabled()||(b?this.Hd(e,a,a.getHoverIcon()):d?this.Hd(e,a,a.getDepressedIcon()):(b=this.f(),a.getDisclosed()&&"grid"!=b.K(AdfRichPanelSpringboard.DISPLAY_MODE)?this.Hd(e,a,a.getDepressedIcon()):this.Hd(e,a,a.getIcon()))))};function $u(a){var b=0;a=a.Rd(a.pc);for(var d=0,e=a.length;d<e;d++)a[d]&&(b+=a[d].offsetWidth);return b}
function av(a){0===a.Iia&&(a.Sr.style.display="inline-block",a.Iia=a.Sr.offsetWidth,a.Sr.style.display="none");return a.Iia}
function jv(a,b,d){var e=0,f=a.jh,g=a.kF[f];g||(g={},a.kF[f]=g);var h=g[b];if(h)return h;h||(h={},g[b]=h);var l=a.KA.offsetWidth,g=av(a);"inline-block"==a.Sr.style.display&&(l-=g);"inline-block"==a.XA.style.display&&(l-=g);var n=f,g=0,t=-1;if(b)for(t=n;e<l&&-1<n;n--,g++)e+=d[n].offsetWidth;else for(var y=d.length;e<l&&n<y;n++,g++)t=n,e+=d[n].offsetWidth;if(1<g){n=0;if(e>l){for(var y=d[t],l=l-(e-y.offsetWidth),z=y;z&&!/^img$/i.test(z.tagName);)z=C.pa(z);z&&(l>(y.offsetWidth-z.offsetWidth)/2+z.offsetWidth/
3?(n=1,e-=d[t].offsetWidth):(n=1,e-=d[t--].offsetWidth,h.vVa=!0,-1<t&&(e-=d[t].offsetWidth,n++)))}else e===l&&(n=1,e-=d[t].offsetWidth,h.vVa=!0);g-=n;b||(b=f+g,d=a.kF[b],d||(d={},a.kF[b]=d),d[!0]={Ota:g,wva:e})}h.Ota=g;h.wva=e;return h}
function Hu(a,b){if(!a.CL){a.CL=!0;var d=a.Rd(a.pc),e=a.jh,f=a.Wj,g=parseInt(a.pc.style[f],10),h=jv(a,b,d),l=h.Ota,h=h.wva;isNaN(g)&&(a.pc.style[f]="0px",g=0);b?1>e-l?(h=-1*g,a.jh=0):a.jh=Math.max(0,a.jh-l):(h*=-1,a.jh=Math.min(d.length-1,a.jh+l));d={};d[f]=g+h;bv(a,d)}}function bv(a,b){oj(0,a.QL,[{element:a.pc,properties:b}],function(){},function(a){a[0].CL=!1;dv(a[0])},[a],null)}
function dv(a,b){for(var d=a.Rd(a.pc),e=0,f=Gu.yb(),g=f?a.XA:a.Sr,f=f?a.Sr:a.XA,h=0===a.jh,l=!0,n="undefined"!==typeof b?Math.round(b):a.KA.offsetWidth,t=a.Wj,l=a.jh,y=d.length;l<y;l++)d[l]&&(e+=d[l].offsetWidth);var y=av(a),z=n-(h?0:y);(l=z>e||a.jh===d.length-1)||(z-=y);a.Gk.style[t]=0<a.jh?y+"px":"0px";a.Gk.style.width=z+"px";"undefined"!==typeof b&&(a.KA.style.width=n+"px");g.style.display=h?"none":"inline-block";f.style.display=l?"none":"inline-block"}
function Yu(a,b,d,e){if("undefined"===typeof e){e=-1;d=a.Rd(a.pc);var f=d.length;Xu(a,d,b);for(b=0;b<f;b++){var g=C.pa(d[b]);g&&C.sa(g,Gu.Nf)&&(e=b)}}if(-1!==e&&(f=d,Iu(a))){d=0;a.jh=0;b=a.QL;for(a.QL=0;a.jh<e;){var g=jv(a,!1,f),h=g.wva;if(a.jh+g.Ota+(g.vVa?1:0)>e)break;a.CL=!1;Hu(a,!1);d+=h}a.QL=b;e=a.Wj;f={};parseInt(a.pc.style[e],10)<d?(f[e]=-1*d,bv(a,f)):0<d&&(f[e]=-1*d,bv(a,f))}}
k.clb=function(a){if(Iu(this)&&(!Iu(this)||a.keyCode===w.tf)){a=this.Rd(this.pc);this.kF={};for(var b=a.length,d=-1,e=document.activeElement,f=0;f<b;f++){var g=C.pa(a[f]);g&&e==g&&(d=f)}-1<d&&Yu(this,this.i().offsetWidth,a,d)}};function Mu(a){var b=a.Wj,d=Gu.yb()?"scrollRight":"scrollLeft";a.kF={};a.jh=0;a.Sr.style.display="none";a.XA.style.display="none";a.Gk[d]=0;a.Gk.style[b]="0px";a.pc.style[b]="0px";a.Gk.style.width="";a.KA.style.width=""}
function Iu(a){return"inline-block"==a.Sr.style.display||"inline-block"==a.XA.style.display||parseInt(a.pc.style[a.Wj],10)}Gu.yb=function(){return A.c.Ka().La()};Gu.prototype.di=function(a,b){var d;C.sa(a,Gu.Fk)?(d=this.f().g(),d=I.la(d,Gu.Mga),d=q.oa().getElementById(d)):d=C.pa(b);C.w(d,Gu.b1)};function Ku(a,b){var d=q.oa();if(d.S()==q.ia&&8>d.Ib()){var d=d.getComputedStyle(b).height,e=b.offsetHeight;a.Gk.style.height=0!==e?e+"px":d}}
Gu.prototype.fl=function(a){var b=this.f().g(),d=I.la(b,Gu.ZEa),e=I.la(b,Gu.Mga),b=I.la(b,Gu.$Ea);for(a=a.parentNode;a;){var f=a.id;if(null!=f){if(f==d)return d;if(f==e)return e;if(f==b)return b}a=a.parentNode}return this.f().g()};r.a("AdfDhtmlPanelSpringboardPeer.prototype.getContainerId",{fl:Gu.prototype.fl});