var Qs=M.U(M,"AdfDhtmlPanelSpringboardPeer",p);v("AdfDhtmlPanelSpringboardPeer",Qs);
Qs.m=function(){M.hb(this,AdfRichPanelSpringboard.DISPLAY_MODE);M.ha(this,I.qd,I.jb,I.Xc,I.Xf);w.b.cd()[w.Vc]==w.Wc&&M.ha(this,I.Qd,I.Ve);this.qt="data-ptKey";this.nl="data-disTab";this.vU="data-cnv";this.yt="tabh";this.UOa="tabbvp";this.SOa="tabbcvs";this.cra="tabba";this.E7="tabbb";this.dra="tabbc";this.AM="ti";this.VOa="icon";this.KOa="bodyDiv";this.LOa="itemsDiv";this.j5="tia";this.aOa="sbsp";this.FIa="cbc";this.GIa="cbct";this.yOa="scbic";this.MJa="ecbic";this.LMa="optRnd";this.Zqa="p_AFStrip";
this.uoa="p_AFGrid";this.Xe="p_AFSelected";this.tJa="p_AFDisabled";this.tj="p_AFFlow";this.WT="p_AFBusy";this.rqa="p_AFScrollY"};v("AdfDhtmlPanelSpringboardPeer.InitSubclass",Qs.m);
Qs.prototype.q=function(a,b){Qs.f.q.call(this,a,b);var d=w.fa(),e=a.e(),f=M.g(e,Qs.yt);this.Tb=d.getElementById(f);f=M.g(e,Qs.aOa);this.Br=d.getElementById(f);f=M.g(e,Qs.SOa);this.Ft=d.getElementById(f);f=M.g(e,Qs.UOa);this.Mw=d.getElementById(f);this.Nw=d.getElementById(M.g(e,Qs.FIa));this.wj=d.getElementById(M.g(e,Qs.GIa));this.fp=d.getElementById(M.g(e,Qs.yOa));this.Zw=d.getElementById(M.g(e,Qs.MJa));this.jca=M.g(e,Qs.LMa);var e=F.c.u(),g=Qs.fb();this.Ui=g?"right":"left";if(this.taa="true"==e.ka("af|panelSpringboard-tr-hide-selected-pointer"))this.Br.style.display=
"none";this.j9=0;this.YF=p;this.GA={};this.hG=parseInt(e.ka("af|panelSpringboard-tr-conveyor-slide-animation-duration"),10);isNaN(this.hG)&&(this.hG=0);this.tg=0;this.Laa=l;this.PZ=this.QZ=0;var h=this;d.S(this.fp,"click",function(){Rs(h,!g)});d.S(this.Zw,"click",function(){Rs(h,g)});d.S(this.wj,"keyup",this.o(this.E_a));d.S(this.wj,"touchstart",function(a){h.QZ=a.pageX});d.S(this.wj,"touchmove",function(a){h.PZ=a.pageX});d.S(this.wj,"touchend",function(){if(Ss(h)){if(!h.PZ||!h.QZ)return;h.PZ<h.QZ&&
"inline-block"==h.Zw.style.display?Rs(h,p):"inline-block"==h.fp.style.display&&Rs(h,l)}h.QZ=0;h.PZ=0});(e=d.cd()[w.Vc])&&e!=w.Wc&&Ts(this,d,this.Mw);"strip"===a.r(AdfRichPanelSpringboard.DISPLAY_MODE)&&(d=this.kd(this.Tb),Us(this,d[0]),this.wj.style.overflow="hidden",this.Nw.style.overflow="hidden")};z.a("AdfDhtmlPanelSpringboardPeer.prototype.InitDomElement",{q:Qs.prototype.q});
Qs.prototype.Wja=function(a,b,d,e){if(a.r("_ignoreNextDisplayModeChange"))a.setProperty("_ignoreNextDisplayModeChange",p,p,p);else{var f=new cg(a,d);f.v(l);f.na()?(a.setProperty("_ignoreNextDisplayModeChange",l,p,p),a.setProperty("displayMode",e,p,p)):(a=this.kd(this.Tb),e=H.ta(b,Qs.tj),"grid"==d?(H.n(b,Qs.uoa),H.F(b,Qs.Zqa),Vs(this,a),e&&(b.style.height=""),Ss(this)&&Ws(this),this.Br.style.display="none",Xs(this,a,b.offsetWidth,b.offsetHeight)):"strip"==d&&(this.Mw.style.visibility="hidden",H.n(b,
Qs.Zqa),H.F(b,Qs.uoa),d=e?n:Ys(this,"middle"),this.dh(b,d),e&&(b.style.width="auto",b.style.height="auto"),delete this.paa,Zs(this,a,b.offsetWidth)))}};z.a("AdfDhtmlPanelSpringboardPeer.prototype.ComponentDisplayModeChanged",{Wja:Qs.prototype.Wja});Qs.prototype.pa=function(a){var b=a.ia(),d=a.Q();if(!a.na())if(b==E.Ya||b==E.Kb)this.px(d)&&((b=O.nR(this.Tb,d))||(b=O.KC(this.Tb)),b&&(b.focus(),a.cancel()));else if((b==E.Ja||b==E.Lb)&&this.px(d))(b=O.aJ(this.Tb,d))||(b=O.Zl(this.Tb)),b&&(b.focus(),a.cancel())};
z.a("AdfDhtmlPanelSpringboardPeer.prototype.HandleComponentKeyUp",{pa:Qs.prototype.pa});Qs.prototype.Ka=function(a){this.Vt(a,l,p)};z.a("AdfDhtmlPanelSpringboardPeer.prototype.HandleComponentMouseOver",{Ka:Qs.prototype.Ka});Qs.prototype.qa=function(a){this.Vt(a,p,l)};z.a("AdfDhtmlPanelSpringboardPeer.prototype.HandleComponentMouseDown",{qa:Qs.prototype.qa});Qs.prototype.cc=function(a){this.Vt(a,p,p)};z.a("AdfDhtmlPanelSpringboardPeer.prototype.HandleComponentMouseUp",{cc:Qs.prototype.cc});
Qs.prototype.vb=function(a){this.Vt(a,p,p)};z.a("AdfDhtmlPanelSpringboardPeer.prototype.HandleComponentMouseOut",{vb:Qs.prototype.vb});Qs.prototype.C=function(a){if(!a.na()&&a.Jb()){var b=this.d(),d=a.Q(),d=$s(d,this.h()),e=at(d);e!=n&&(a.cancel(),a=F.c.j(e),a.getDisabled()||("grid"!=b.r(AdfRichPanelSpringboard.DISPLAY_MODE)?bt(this,b,a,d):(d=ct(this),a!=d&&(a!=n&&(e=a.e(),this.Gt(e,l)),d!=n&&(d=d.e(),this.Gt(d,p))),b.setProperty(AdfRichPanelSpringboard.DISPLAY_MODE,"strip",p,p),b=a.e(),F.c.j(b).setDisclosed(l))))}};
z.a("AdfDhtmlPanelSpringboardPeer.prototype.HandleComponentClick",{C:Qs.prototype.C});Qs.prototype.Bm=ca();z.a("AdfDhtmlPanelSpringboardPeer.prototype.TabReselected",{Bm:Qs.prototype.Bm});Qs.prototype.oo=ca();z.a("AdfDhtmlPanelSpringboardPeer.prototype.NewTabSelected",{oo:Qs.prototype.oo});
Qs.prototype.Ab=function(a,b){var d=w.b;this.Ko&&delete this.Ko;if(a.id===this.jca){var e=this.h();if(e!=n){var f=w.fa(),g=H.ta(e,Qs.tj),e=this.d().e(),h=M.Na(e,Qs.E7),h=f.getElementById(h);H.F(h,Qs.WT);g||(g=M.Na(e,Qs.cra),e=M.Na(e,Qs.dra),g=f.getElementById(g),f=f.getElementById(e),H.F(g,Qs.WT),H.F(f,Qs.WT))}var e=a.childNodes,m,q;if(e!=n){2>e.length&&D.i.severe("Error getting the body and item divs of the optRnd block.");g=p;for(f=0;f<e.length;f++)1==e[f].nodeType&&(g?(q=e[f],h=q.id,h!=n&&-1==
h.indexOf(Qs.LOa)&&D.i.severe("Error getting the item div of the optRnd block.")):(m=e[f],h=m.id,h!=n&&-1==h.indexOf(Qs.KOa)&&D.i.severe("Error getting the body div of the optRnd block."),g=l));for(var g=m.childNodes,s,f=g.length-1;-1<f;--f)if(h=g[f],h==k)D.i.severe("Error getting the child of the optRnd block, index: "+f);else if(1==h.nodeType){var y=H.ca(h);"none"!=h.style.display&&(s=h,this.aQ(y.id));m.removeChild(h);e=d.getElementById(y.id);e!=n&&(page.th(e),d.gc(e),d.mD(h,e.parentNode),d.wa(y));
this.paa=l}g=q.childNodes;for(h=g.length-1;-1<h;--h)y=g[h],y==k?D.i.severe("Error getting the child of the optRnd block, index: "+f):1==y.nodeType&&(e=y.id,q.removeChild(y),e=d.getElementById(e),e!=n&&(page.th(e),d.gc(e),d.mD(y,e),d.wa(y)));(d=dt(this,Qs.j5))&&O.ra(d);a.removeChild(m);a.removeChild(q);s&&(this.Ko=s.parentNode.parentNode);!this.d9&&(!this.aC&&this.Ko)&&(et(this,this.Ko),delete this.Ko,ft(this),this.taa||(this.Br.style.display=""))}}else Qs.f.Ab.call(this,a,b)};
z.a("AdfDhtmlPanelSpringboardPeer.prototype.ReplaceDomElement",{Ab:Qs.prototype.Ab});Qs.prototype.Rb=function(a){return a.id===this.jca?this.h():a};z.a("AdfDhtmlPanelSpringboardPeer.prototype.DomReplaceNotify",{Rb:Qs.prototype.Rb});Qs.prototype.ja=t(l);z.a("AdfDhtmlPanelSpringboardPeer.prototype.needsResizeNotify",{ja:Qs.prototype.ja});
Qs.prototype.Ia=function(a,b,d,e){this.GA={};if(!(this.aC!=n||this.XH!=n))if(b=this.h()){B.p(b);var f=this.Laa,g=this.d();b=this.kd(this.Tb);if((g="grid"!=g.r(AdfRichPanelSpringboard.DISPLAY_MODE))&&d!=a){e=b.length;if(0<e){a=gt(this,b,d);var h,m,g=this.Ui,q=this.Laa,s=-1;q&&delete this.Laa;for(var y=0;y<e;y++){var A=a[y].properties;b[y].style[g]=A[g]+"px";b[y].style.top=A.top+"px";var C=H.ca(b[y]);C&&H.ta(C,Qs.Xe)&&(m=l,h=A[g],s=y)}this.Br!=n&&m&&(this.Br.style[g]=h+"px",q&&ht(this,d,b,s))}it(this,
d);if(!f&&jt(this)>d){h=this.Nw.offsetWidth;d=kt(this);"inline-block"==this.fp.style.display&&(h-=d);"inline-block"==this.Zw.style.display&&(h-=d);d=n;f=0;m=this.tg;e=b.length;for(a=m;f<=h&&a<e;a++)d=b[a],f+=d.offsetWidth;if(a===e&&!(f>h)){d=e=0;a=n;for(h-=f;-1<m&&d<=h;m--,e++)a=b[m],d+=a.offsetWidth;d>h&&(e--,d-=a.offsetWidth);0<e&&(b=this.Ui,this.tg-=e,0>this.tg&&(this.tg=0),h=parseInt(this.Tb.style[b],10),this.YF?this.Tb.style[b]=h+d+"px":(this.YF=l,m={},m[b]=h+d,lt(this,m)))}}}else if(!g){h=b.length;
if(0<h){d=mt(this,b,d,e);d.length!==h&&D.i.severe("The number of items in the panelSpringboard does not equal the number of items in the grid items position array.");m=this.Ui;for(f=0;f<h;f++)e=d[f].properties,b[f].style[m]=e[m]+"px",b[f].style.top=e.top+"px"}Vs(this,b)}}};z.a("AdfDhtmlPanelSpringboardPeer.prototype.ResizeNotify",{Ia:Qs.prototype.Ia});
Qs.prototype.gf=function(a){this.oZ&&(this.oZ.stop(),delete this.oZ);this.iW&&(this.iW.stop(),delete this.iW,this.d9=p);this.XH&&(this.XH.stop(),delete this.XH);this.aC&&(this.aC.stop(),delete this.aC);delete this.Tb;delete this.g8a;delete this.Ft;delete this.Mw;delete this.jca;if(this.tX&&this.Mw){var b=this.Mw,d=w.b;d.sa(b,"touchstart",this.tX);d.sa(b,"touchmove",this.Y$);d.sa(b,"touchend",this.X$);delete this.tX;delete this.X$;delete this.Y$;delete this.XF;delete this.WF}F.c.Nm(a);Qs.f.Z.call(this,
a)};z.a("AdfDhtmlPanelSpringboardPeer.prototype.componentRemoved",{gf:Qs.prototype.gf});function gt(a,b,d,e){var f=b.length,g=a.Ui,h=[],m;if(0<f){var q=b[0].offsetWidth;m={};if(!e&&jt(a)>d){e=0;nt(a,d);for(a=0;a<f;a++)m={top:0},m[g]=e,m={element:b[a],properties:m},h.push(m),e+=q}else{Ss(a)&&Ws(a);e=Math.max(0,d/2-f*q/2);for(a=0;a<f;a++)e=Math.round(e),m={top:0},m[g]=e,m={element:b[a],properties:m},h.push(m),e+=q}}return h}
function mt(a,b,d,e){var f=b.length;if(0<f){var g=[],h,m=b[0].offsetWidth,q=b[0].offsetHeight,s;for(s=1;s*s<f;)s++;s=3>=f?{rows:1,tC:f}:{rows:s,tC:s};h=q*s.rows;var y=m*s.tC,A=d/2-y/2,C=e/2-h/2,G=a.Ui;y>d?(s.tC=Math.floor(d/m),0==s.tC&&(s.tC=1),d=Math.ceil(f/s.tC),s.rows=d,C=d=0):h>e?(d=A,C=0):d=A;h=q*s.rows;h>e?H.n(a.Tb,Qs.rqa):H.F(a.Tb,Qs.rqa);e=0;h={};a.wj.style.height="";a.wj.style.overflow="";a.Nw.style.overflow="";for(y=0;y<s.rows&&e<f;y++){a=d;for(A=0;A<s.tC&&e<f;A++)a=Math.round(a),C=Math.round(C),
h={top:C},h[G]=a,h={element:b[e],properties:h},g.push(h),a+=m,e++;C+=q}}return g}
function Zs(a,b,d){if(0<b.length){var e=gt(a,b,d,l);a.qQ=d;d=0;d=F.c.u();d=parseInt(d.ka("af|panelSpringboard-tr-grid-to-strip-animation-duration"),10);isNaN(d)&&(d=0);a.aC=Qg(0,d,e,function(a){a=a[0];var b=a.h();if(b!=n&&(b=b.offsetWidth,b!=a.qQ)){a.qQ=b;var d=a.aC;if(d!=n){var e=a.kd(a.Tb);d.stop();Zs(a,e,b)}}},function(a){var d=a[0],e=d.h();e!=n?it(d,e.offsetWidth):D.i.severe("In AdfDhtmlPanelSpringboardPeer.prototype._afterToStripAnimationFinal, no dom element. ");d.aC=n;d.Mw.style.visibility=
"visible";d.Ko&&(et(d,d.Ko),delete d.Ko);d.paa&&(d.taa||(d.Br.style.display=""),ft(d),delete d.paa);a=a[0];parseInt(a.wj.style.height,10)!==b[0].offsetHeight&&Us(a,b[0]);a.wj.style.overflow="hidden";a.Nw.style.overflow="hidden";jt(a)>a.qQ&&(nt(a,a.qQ),ht(a,a.qQ))},[a],n)}}
function Xs(a,b,d,e){a.Mw.style.visibility="hidden";0<b.length&&(b=mt(a,b,d,e),a.x1a=d,a.w1a=e,d=0,d=F.c.u(),d=parseInt(d.ka("af|panelSpringboard-tr-strip-to-grid-animation-duration"),10),isNaN(d)&&(d=0),a.XH=Qg(0,d,b,function(a){a=a[0];var b=a.h();if(b!=n){var d=b.offsetWidth,b=b.offsetHeight;if(d!=a.x1a||b!=a.w1a){var e=a.XH;if(e!=n){var q=a.kd(a.Tb);e.stop();Xs(a,q,d,b)}}}},function(a){a[0].XH=n},[a],n))}
function it(a,b){var d=a.h();if(!H.ta(d,Qs.tj)){var d=Ys(a,"left"),e=Ys(a,"middle"),f=Ys(a,"right");if(d!=n){var g=b+"px",h=Qs.fb(),m=a.Ui;d.style[m]=h?2*b+"px":"0px";d.style.width=g;e.style[m]=g;e.style.width=g;f.style[m]=h?"0px":2*b+"px";f.style.width=g;a.Ft.style.width=3*b+"px";a.Ft.style[m]=-1*b+"px"}}}function Ys(a,b){for(var d=w.fa(),e=H.Tc(a.Ft),f=e.length,g=0;g<f;g++){var h=e[g];if(d.getAttribute(h,Qs.vU)==b)return h}return n}
function et(a,b){var d=a.h();if(!H.ta(d,Qs.tj)){var d=a.h().offsetWidth,e=w.fa(),f=Ys(a,"middle"),g=e.getAttribute(b,Qs.vU),h=a.Ui;if("middle"!=g){var m=b.style[h];b.style[h]=f.style[h];f.style[h]=m;e.setAttribute(b,Qs.vU,"middle");e.setAttribute(f,Qs.vU,g)}a.Ft.style.width=3*d+"px";a.Ft.style[h]=-1*d+"px"}}u=Qs.prototype;u.jWa=function(a){a=a.changedTouches;1==a.length&&(this.XF=a[0].pageX)};u.iWa=function(a){a=a.changedTouches;1==a.length&&(this.WF=a[0].pageX)};
u.hWa=function(a){var b,d;if(this.WF!==this.XF){if(a.OXa){this.WF=this.XF=0;return}d=this.WF-this.XF;if(100<Math.abs(d)){a=Qs.fb();b=0>d?!a:a;var e;a=this.d();if(a!=n){d=this.kd(this.Tb);var f,g;e=w.fa().getAttribute(this.Tb,Qs.nl);if(e==n)e=n;else{e=M.g(e,Qs.AM);f=d.length;g=-1;for(var h=0;h<f;h++)if(d[h].id==e){g=h;break}e=g}-1==e&&(e=0);a:{g=e;if(-1!=g)if(f=this.h(),e=d.length,b)for(b=g+1;b<e;b++){if((g=ot(d[b],f))&&!g.getDisabled()){d={component:g,element:d[b]};break a}}else for(b=g-1;0<=b;b--)if((g=
ot(d[b],f))&&!g.getDisabled()){d={component:g,element:d[b]};break a}d=n}d&&bt(this,a,d.component,d.element)}}}this.WF=this.XF=0};function Ts(a,b,d){a.tX=a.o(a.jWa);a.X$=a.o(a.hWa);a.Y$=a.o(a.iWa);a.XF=0;a.WF=0;b.S(d,"touchstart",a.tX);b.S(d,"touchmove",a.Y$);b.S(d,"touchend",a.X$)}function ot(a,b){var d=$s(a,b),d=at(d);return d==n?n:F.c.j(d)}
function bt(a,b,d,e){var f=ct(a),g=a.Ui;if(d!=f){d=a.SY(f,d);if(d==n||!d.na())pt(a,e.style[g]),f!=n&&qt(a,f.e(),e);if("grid"!=b.r(AdfRichPanelSpringboard.DISPLAY_MODE)&&Ss(a)){f=a.kd(a.Tb);g=f.length;d=-1;for(var h=0;h<g;h++)if(f[h].id==e.id){d=h;break}-1<d&&ht(a,a.h().offsetWidth,f,d)}a.oo(b)}else a.Bm(b)}u.px=function(a){if(a==n)return p;var b=a.id;if(b==n)return p;b=b.split("::");return 1>=b.length||b[b.length-1]!=Qs.j5||$s(a,this.h())==n?p:l};
function $s(a,b){B.p(a);var d=a,e=w.fa();if(d==n||1!=d.nodeType)return n;for(var f=e.getAttribute(d,Qs.qt);f==n;){if(d==n||d==b)return n;d=d.parentNode;if(d==n||1!=d.nodeType)return n;f=e.getAttribute(d,Qs.qt)}return d}function at(a){return a==n?n:w.fa().getAttribute(a,Qs.qt)}function ct(a){var b=n,b=w.fa().getAttribute(a.Tb,Qs.nl);return b!=n?F.c.j(b):n}
u.SY=function(a,b){var d=a!=n;if(!d||a.getDisclosed()==l)if("immediate"==this.d().getContentDelivery())F.c.Dg()?(d=a.e(),this.Gt(d,p),d=a.k(),d.bind(a),d.h().parentNode.style.display="none",d=b.k(),d.bind(b),d.h().parentNode.style.display="",d=b.e(),this.Gt(d,l),a.setDisclosed(p),b.setDisclosed(l),this.aQ(b.e())):D.i.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.k(),d.bind(a),
d.hD(p,l,b);d=b.k();d.bind(b);return d.hD(l,l)}else D.i.severe("Unexpected panelSpringboard showDetailItem disclosure state for queueing client events. "+a.e())};u.Gt=function(a,b){var d=M.g(a,Qs.AM);if(d=w.fa().getElementById(d))if(d=H.ca(d))H.td(b,d,Qs.Xe),H.td(b,H.qc(d,"div",1),Qs.Xe)};u.kd=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.Br&&b.push(f)}return b};
function pt(a,b){if(a.Br!=n){var d=w.ua,e=a.Ui,d=d(b),f={};f[e]=d;e=[{element:a.Br,properties:f}];d=0;d=F.c.u();d=parseInt(d.ka("af|panelSpringboard-tr-selected-pointer-animation-duration"),10);isNaN(d)&&(d=0);a.oZ=Qg(0,d,e,n,function(a){delete a[0].oZ},[a],n)}else D.i.severe("Cannot find this._selectedPointerDiv. This means that the strip mode was not rendered properly.")}
function qt(a,b,d){var e=a.h(),f=H.ta(e,Qs.tj),g=a.Ui;if(f)a.dh(e,n);else if(a.Ft!=n){f=w.fa();b=M.g(b,Qs.AM);b=f.getElementById(b);b=parseInt(b.style[g])<parseInt(d.style[g]);var h=a.Mw.offsetWidth;d=at(d);d=f.getElementById(d);b?(f=-2*h,rt(a,e,d,"right")):(f=0,rt(a,e,d,"left"));rq(a.Ft);e={};e[g]=f;var m=[{element:a.Ft,properties:e}],q=0,g=F.c.u(),q=parseInt(g.ka("af|panelSpringboard-tr-body-slide-animation-duration"),10);isNaN(q)&&(q=0);a.d9=l;window.setTimeout(function(){tt(a,q,m)},200)}}
function tt(a,b,d){a.iW=Qg(0,b,d,n,function(a){a=a[0];delete a.iW;a.d9=p;a.Ko&&(et(a,a.Ko),delete a.Ko)},[a],n)}function rt(a,b,d,e){e=Ys(a,e);H.ca(e).appendChild(d.parentNode);a.dh(b,e)}function ft(a){var b=a.Ui,d=dt(a,Qs.AM);a.Br.style[b]=d.style[b]}function dt(a,b){var d,e;d=w.fa();e=d.getAttribute(a.Tb,Qs.nl);e=M.g(e,b);return d.getElementById(e)}u.aQ=function(a){w.fa().setAttribute(this.Tb,Qs.nl,a)};
u.iwa=function(a,b,d){a=a.id;if(a==n)return p;a=a.split("::");return 1>=a.length?p:(a=a[a.length-1])&&(a==b||a==d)?l:p};u.hO=function(a){a=$s(a,this.h());a=at(a);return a!=n?F.c.j(a):n};
function Vs(a,b){for(var d=b.length,e=p,f=0;f<d;f++){var g=H.ca(b[f]);if(g&&(!e&&!H.ta(g,Qs.tJa)?(g.setAttribute("tabIndex","0"),e=l):g.setAttribute("tabIndex","-1"),H.ta(g,Qs.Xe))){var h=a.hO(g,Qs.j5);if(h&&!h.getDisabled()&&"inline"!=h.getIconDelivery()){var m=H.Ua(g,"img");a.$c(m,h,h.getIcon())}H.td(p,g,Qs.Xe);g.removeAttribute("aria-selected")}}}u.$c=function(a,b,d){d||(d=b.getIcon());a.src=d};
u.Vt=function(a,b,d){var e=w.fa();a=a.Q();if((a=this.hO(a,Qs.AM))&&"inline"!=a.getIconDelivery())e=e.getElementById(M.g(a.e(),Qs.VOa)),a.getDisabled()||(b?this.$c(e,a,a.getHoverIcon()):d?this.$c(e,a,a.getDepressedIcon()):(b=this.d(),a.getDisclosed()&&"grid"!=b.r(AdfRichPanelSpringboard.DISPLAY_MODE)?this.$c(e,a,a.getDepressedIcon()):this.$c(e,a,a.getIcon())))};function jt(a){var b=0;a=a.kd(a.Tb);for(var d=0,e=a.length;d<e;d++)a[d]&&(b+=a[d].offsetWidth);return b}
function kt(a){0===a.j9&&(a.fp.style.display="inline-block",a.j9=a.fp.offsetWidth,a.fp.style.display="none");return a.j9}
function ut(a,b,d){var e=0,f=a.tg,g=a.GA[f];g||(g={},a.GA[f]=g);var h=g[b];if(h)return h;h||(h={},g[b]=h);var m=a.Nw.offsetWidth,g=kt(a);"inline-block"==a.fp.style.display&&(m-=g);"inline-block"==a.Zw.style.display&&(m-=g);var q=f,g=0,s=-1;if(b)for(s=q;e<m&&-1<q;q--,g++)e+=d[q].offsetWidth;else for(var y=d.length;e<m&&q<y;q++,g++)s=q,e+=d[q].offsetWidth;if(1<g){q=0;if(e>m){for(var y=d[s],m=m-(e-y.offsetWidth),A=y;A&&!/^img$/i.test(A.tagName);)A=H.ca(A);A&&(m>(y.offsetWidth-A.offsetWidth)/2+A.offsetWidth/
3?(q=1,e-=d[s].offsetWidth):(q=1,e-=d[s--].offsetWidth,h.AEa=l,-1<s&&(e-=d[s].offsetWidth,q++)))}else e===m&&(q=1,e-=d[s].offsetWidth,h.AEa=l);g-=q;b||(b=f+g,d=a.GA[b],d||(d={},a.GA[b]=d),d[l]={Aha:g,aja:e})}h.Aha=g;h.aja=e;return h}
function Rs(a,b){if(!a.YF){a.YF=l;var d=a.kd(a.Tb),e=a.tg,f=a.Ui,g=parseInt(a.Tb.style[f],10),h=ut(a,b,d),m=h.Aha,h=h.aja;isNaN(g)&&(a.Tb.style[f]="0px",g=0);b?1>e-m?(h=-1*g,a.tg=0):a.tg=Math.max(0,a.tg-m):(h*=-1,a.tg=Math.min(d.length-1,a.tg+m));d={};d[f]=g+h;lt(a,d)}}function lt(a,b){Qg(0,a.hG,[{element:a.Tb,properties:b}],ca(),function(a){a[0].YF=p;nt(a[0])},[a],n)}
function nt(a,b){for(var d=a.kd(a.Tb),e=0,f=Qs.fb(),g=f?a.Zw:a.fp,f=f?a.fp:a.Zw,h=0===a.tg,m=l,q="undefined"!==typeof b?Math.round(b):a.Nw.offsetWidth,s=a.Ui,m=a.tg,y=d.length;m<y;m++)d[m]&&(e+=d[m].offsetWidth);var y=kt(a),A=q-(h?0:y);(m=A>e||a.tg===d.length-1)||(A-=y);a.wj.style[s]=0<a.tg?y+"px":"0px";a.wj.style.width=A+"px";"undefined"!==typeof b&&(a.Nw.style.width=q+"px");g.style.display=h?"none":"inline-block";f.style.display=m?"none":"inline-block"}
function ht(a,b,d,e){if("undefined"===typeof e){e=-1;d=a.kd(a.Tb);var f=d.length;gt(a,d,b);for(b=0;b<f;b++){var g=H.ca(d[b]);g&&H.ta(g,Qs.Xe)&&(e=b)}}if(-1!==e&&(f=d,Ss(a))){d=0;a.tg=0;b=a.hG;for(a.hG=0;a.tg<e;){var g=ut(a,p,f),h=g.aja;if(a.tg+g.Aha+(g.AEa?1:0)>e)break;a.YF=p;Rs(a,p);d+=h}a.hG=b;e=a.Ui;f={};parseInt(a.Tb.style[e],10)<d?(f[e]=-1*d,lt(a,f)):0<d&&(f[e]=-1*d,lt(a,f))}}
u.E_a=function(a){if(Ss(this)&&!(Ss(this)&&a.keyCode!==E.Df)){a=this.kd(this.Tb);this.GA={};for(var b=a.length,d=-1,e=document.activeElement,f=0;f<b;f++){var g=H.ca(a[f]);g&&e==g&&(d=f)}-1<d&&ht(this,this.h().offsetWidth,a,d)}};function Ws(a){var b=a.Ui,d=Qs.fb()?"scrollRight":"scrollLeft";a.GA={};a.tg=0;a.fp.style.display="none";a.Zw.style.display="none";a.wj[d]=0;a.wj.style[b]="0px";a.Tb.style[b]="0px";a.wj.style.width="";a.Nw.style.width=""}
function Ss(a){return"inline-block"==a.fp.style.display||"inline-block"==a.Zw.style.display||parseInt(a.Tb.style[a.Ui],10)}Qs.fb=function(){return F.c.Ma().Oa()};Qs.prototype.dh=function(a,b){var d;H.ta(a,Qs.tj)?(d=this.d().e(),d=M.Na(d,Qs.E7),d=w.fa().getElementById(d)):d=H.ca(b);H.n(d,Qs.WT)};function Us(a,b){var d=w.fa();if(d.G()==w.aa&&8>d.nb()){var d=d.getComputedStyle(b).height,e=b.offsetHeight;a.wj.style.height=0!==e?e+"px":d}}
Qs.prototype.Uj=function(a){var b=this.d().e(),d=M.Na(b,Qs.cra),e=M.Na(b,Qs.E7),b=M.Na(b,Qs.dra);for(a=a.parentNode;a;){var f=a.id;if(f!=n){if(f==d)return d;if(f==e)return e;if(f==b)return b}a=a.parentNode}return this.d().e()};z.a("AdfDhtmlPanelSpringboardPeer.prototype.getContainerId",{Uj:Qs.prototype.Uj});