var wm=I.ea(I,"AdfDhtmlCarouselPeer",!1);m("AdfDhtmlCarouselPeer",wm);wm.C=function(){var a=q.b.rm()[q.zl];a&&a!=q.Al||I.b8(this,"mousemove");I.ra(this,D.wb,D.gg,D.Bd,D.Rg,D.Bc);I.sb(this,AdfRichCarousel.CURRENT_ITEM_KEY);this.Ko=1;this.$D=2;this.u0=4;this.Kl=0;this.Dz="dataW";this.OS=10;this.g2a=25;this.Xa="_afrRK";this.KS=5;this.xBa=300;this.LK=/^INPUT|SELECT|OPTION|BUTTON|^A\b|TEXTAREA/;this.Afa="_afrNdsRfr";this.Vga="_afrUndFch"};m("AdfDhtmlCarouselPeer.InitSubclass",wm.C);
wm.prototype.G=function(a,b){wm.h.G.call(this,a,b);if("yes"==b.getAttribute("data-nojs"))this.y3a=!0;else{this.uga=a.getAuxiliaryScale();this.pga=a.getAuxiliaryOffset();this.Vfa=a.getAuxiliaryPopOut();this.dV=0;this.kj=-1;this.Pc="vertical"==a.getOrientation();var d=A.c.H();this.aO="none"!=d.qa("af|carousel-tr-overlay-opacity");this.Dna=this.UT=0;this.UT=parseInt(d.qa("af|carousel-tr-spin-animation-duration"),10);isNaN(this.UT)&&(this.UT=0);this.Dna=parseInt(d.qa("af|carousel-tr-pop-out-animation-duration"),
10);isNaN(this.Dna)&&(this.UT=0);xm(this,a,b);b.setAttribute("role","listbox")}};r.a("AdfDhtmlCarouselPeer.prototype.InitDomElement",{G:wm.prototype.G});
function xm(a,b,d){if(!a.VV)if(a.un=b.getDisplayItems(),a.Fc=b.getControlArea(),"small"==a.Fc||"compact"==a.Fc){var e=b.g(),f=a.Fc,g=q.b;b=ym(a,d);var h=g.getComputedStyle(b),l=parseInt(h.paddingLeft,10),n=parseInt(h.paddingRight,10),t=parseInt(h.paddingTop,10),h=parseInt(h.paddingBottom,10),y=zm(e),z=g.getComputedStyle(y),B=parseInt(z.paddingTop,10),F=parseInt(z.paddingBottom,10),z=g.getElementById(I.j(e,"sp")),g=g.getElementById(I.j(e,"sn"));d=a.oc(d);var K=0;"compact"!=f&&(f=Am(a,e),e=f.offsetHeight,
K+=e,f.style.bottom=h+"px");e=y.offsetHeight;0!=e&&(a.VV=!0);var e=Math.max(z.offsetHeight,e,g.offsetHeight),K=K+e,f=wm.yb(),P=z.style;P.top=t+"px";f?P.right=n+"px":P.left=l+"px";P=g.style;P.top=t+"px";f?P.left=l+"px":P.right=n+"px";y=y.style;y.top=t+"px";B=e-B-F;y.height=B+"px";y.lineHeight=B+"px";f?(y.right=n+z.offsetWidth+"px",y.left=l+g.offsetWidth+"px"):(y.left=l+z.offsetWidth+"px",y.right=n+g.offsetWidth+"px");b.style.top="auto";b.style.height=K+"px";K=K+t+h;a.Pc?(a.ju=0,a.BM=K):(b.style.bottom=
wm.OS+"px",K+=wm.OS,d.style.bottom=K+"px",a.ju=K)}else"none"==a.Fc?(b=b.g(),b=zm(b),l=b.offsetHeight,n=a.oc(d),a.Pc?(a.VV=!0,a.ju=0,a.BM=l):(a.VV=!0,b.style.left="0px",b.style.right="0px",b.style.bottom="10px",l+=10,n.style.bottom=l+"px",a.ju=l)):(t=b.g(),b=zm(t),l=a.oc(d),n=Am(a,t),t=Bm(a,t),h=0,a.Pc?(n.style.width="auto",B=15*n.offsetWidth,0!=B&&(a.VV=!0),n.style.width=B+"px",h+=B+4,wm.yb()?t.style.left=h+"px":t.style.right=h+"px",B=C.pa(t).offsetWidth,t.style.width=B+"px",h+=B,wm.yb()?l.style.left=
h+"px":l.style.right=h+"px",a.ju=h,a.BM=b.offsetHeight):(n.style.height="auto",B=n.offsetHeight,0!=B&&(a.VV=!0),h+=B,t.style.bottom=h+"px",B=C.pa(t).offsetHeight,t.style.height=B+"px",h+=B,b.style.left="0px",b.style.right="0px",b.style.bottom=h+"px",B=b.offsetHeight,h+=B,l.style.bottom=h+"px",a.ju=h))}wm.prototype.To=function(a,b,d,e){b=d.split(":");a=a.g();a=xa.count(a,":")+1;(b=b[a])&&(isNaN(b)||e.push(a))};r.a("AdfDhtmlCarouselPeer.prototype.TruncateClientId",{To:wm.prototype.To});
wm.prototype.ka=function(a){this.uu&&this.uu.unregister();this.Yx(!0);Cm(this);wm.h.ka.call(this,a)};r.a("AdfDhtmlCarouselPeer.prototype.ComponentRemoved",{ka:wm.prototype.ka});wm.prototype.ue=function(){return!0};r.a("AdfDhtmlCarouselPeer.prototype.needsChildVisibilityChanges",{ue:wm.prototype.ue});wm.prototype.le=function(){A.c.Kc(this.f());return!0};r.a("AdfDhtmlCarouselPeer.prototype.ChildVisibilityChanged",{le:wm.prototype.le});wm.prototype.ya=function(){return!this.y3a};
r.a("AdfDhtmlCarouselPeer.prototype.needsResizeNotify",{ya:wm.prototype.ya});wm.prototype.fF=function(a){var b=a.Ca+a.Ub,d=this.pe;return 0<d&&0==a.Ca&&b==d};
wm.prototype.Sa=function(a,b,d,e){if(this.Wf)a=this.oc(),Dm(this,a,d,e),this.Xl(a,!1);else if(this.Xla(this.f())){a=this.oc();this.kj=this.vV(a);d=a.childNodes;e=null;for(b=d.length-1;0<=b;b--){var f=d[b];if("DIV"==f.tagName&&null!=f.getAttribute("_startRow")){e=d[b];break}}null!=e&&0<e.childNodes.length?this.UV(e,!0):(Em(this,a,a),this.Ar=!0)}else this.fV||(this.fV=!0,this.Ir(!0,dh.TD,-1),wm.Vf(this.oc(),"wait"),a=A.c.H().Z("af_carousel.LABEL_FETCHING"),this.LU(a))};
r.a("AdfDhtmlCarouselPeer.prototype.ResizeNotify",{Sa:wm.prototype.Sa});
wm.prototype.Zb=function(a,b){var d=a.id;if(0<d.indexOf(wm.Dz)){var e=q.b,f=this.oc(),g=wm.L4(a,"DIV");this.kj=this.vV(a);var h=!1;if(this.Wf){null==g&&(h=!0);for(var l=e.eb(a,"_fetchId",-1),n=this.ph,t=b.firstChild;t;)this.fi(t),b.removeChild(t),t=b.firstChild;if(void 0!=n&&this.xB==l){l=this.WW;t=this.GF;this.Xt();if(e.Cg(a,wm.Afa,!1)){A.c.Kc(this.f());return}if(e.Cg(a,wm.Vga,!1)){if(n==dh.FQ||n==dh.Om||n==dh.xq)if(d=a.getAttribute("_currentItemKey"))this.od=d,this.f().setCurrentItemKey(d),Fm(this);
wm.Vf(f,"");this.Ei();return}a.removeChild(g);this.dm||(this.dm=e.getAttribute(g,"_pruneKeyCache",null));this.vM(g,n,t,l);this.Xl(f,!1,!l)}else Gm(this,b,g,f)}else this.Xt(),g&&g.firstChild?(this.UV(g,!1),e.Ia(g)):h=!0;h&&(this.Wf?v.l.severe("Empty data block received:"+d):Em(this,f,a))}else wm.h.Zb.call(this,a,b)};r.a("AdfDhtmlCarouselPeer.prototype.ReplaceDomElement",{Zb:wm.prototype.Zb});wm.prototype.nc=function(a){return 0<a.id.indexOf(wm.Dz)?null:a};
r.a("AdfDhtmlCarouselPeer.prototype.DomReplaceNotify",{nc:wm.prototype.nc});k=wm.prototype;k.vV=function(a){var b=-1,d=q.b,e=wm.R4(a,"unAvail");e&&(b=d.eb(e,"_unavailableRowIndex",-1),a.removeChild(e));return b};
function Em(a,b,d){if("oneByOne"==a.un){var e=b.style;e.top="0px";e.bottom="0px";e.left="0px";e.right="0px"}var e=d.childNodes.length,f=b.ownerDocument,g=f.createElement("div");b.appendChild(g);var h=g.style;h.position="absolute";h.verticalAlign="middle";h.textAlign="center";h.left=h.right="0px";h.top="50%";f=f.createElement("div");g.appendChild(f);h=f.style;h.position="relative";q.oa().S()!=q.Sc&&(h.top="-50%");for(g=0;g<e;g++)h=d.firstChild,d.removeChild(h),1==h.nodeType&&null!=h.getAttribute("_startRow")||
f.appendChild(h);a.Ei();d=a.f().g();zm(d).style.display="none";"small"==a.Fc||"compact"==a.Fc?(d=a.i(),ym(a,d).style.display="none"):"none"!=a.Fc&&"oneByOne"==a.un&&(Bm(a,d).style.display="none");a.Ar=!0;wm.Vf(b,"")}
function Gm(a,b,d,e){var f=q.b,g=e.firstChild;e=g.Ca;var g=e+Hm(g),h=f.eb(d,"_startRow",0),l=h+d.childNodes.length,n=e==h&&g==l;if(n||h>=e&&h<g){for(var t=g-h,y=0;y<t;y++){var z=d.firstChild;Im(a,z,y,t,e,g,h,l);d.removeChild(z)}if(n)return}else if(l>=e&&l<g)for(n=l-e,t=0;t<n;t++)y=d.lastChild,Im(a,y,t,n,e,g,h,l),d.removeChild(y);b.appendChild(d);f.Ia(d)}
function Im(a,b,d,e,f,g,h,l){var n=C.pa(b),t=n.id,y=v.l;y.ee(v.FINE)&&y.fine("_addInvalidDataBlock: carousel fetch intersection item ("+d+":"+e+" "+f+"-"+g+" "+h+"-"+l+"): "+t);d=A.c.m(t);u.assert(null!=d,"An existing intersection component could not be found to match the intersection node: "+t+" of "+b.innerHTML);d&&(b=d.o(),b.bind(d),b=b.i(),a.fi(b),b.parentNode.replaceChild(n,b),q.b.Ia(n))}function Jm(a){a=a.childNodes;for(var b=0;b<a.length;b++){var d=a[b];if(!wm.hG(d))return d}return null}
function Km(a){a=a.childNodes;for(var b=a.length-1;0<=b;b--){var d=a[b];if(!wm.hG(d))return d}return null}function Hm(a){var b=0;a=a.childNodes;for(var d=0;d<a.length;d++)wm.hG(a[d])||++b;return b}function Lm(a){var b=0;a=a.childNodes;for(var d=0;d<a.length&&wm.hG(a[d]);d++)++b;return b}
k.UV=function(a,b){this.Ei();this.Wf=!0;var d=q.b,e=d.eb(a,"_startRow",0),f=Hm(a),g=this.f();Mm(g,e,f);var h=this.oc(),l=d.eb(a,"_rowCount",-1);0==this.kj?l=-1:0<this.kj&&(l=this.kj);this.pe=l;this.hf=-1==l?e+f:l;if(l=a.getAttribute("_currentItemKey"))g.setProperty("currentItemKey",l,!1,G.ud),this.od=l;var n=this.i(),t=n.clientWidth,n=n.clientHeight;if(!b){for(var y=h.childNodes,z=y.length-1;0<=z;z--)h.removeChild(y[z]);h.appendChild(a)}a.Ca=e;a.Ub=f;g.getDisabled()||(e=this.i(),e.onmousewheel=wm.cu,
d.S()!=q.ia&&e.addEventListener("DOMMouseScroll",wm.cu,!0),"none"!=this.Fc&&(f=g.g(),g=d.getElementById(I.j(f,"sp")),f=d.getElementById(I.j(f,"sn")),d.ba(g,"click",wm.tgb),d.ba(f,"click",wm.Mka)),(g=d.rm()[q.zl])&&g!=q.Al&&(this.uu=d.as(e,this.D(this.MV),1),"hover"==this.Vfa&&this.uu.Oua(this.D(this.fgb))));h.onselectstart=this.D(this.DV);Dm(this,h,t,n);h.style.zIndex=1;this.Xl(h,!1);l&&Nm(this,l)};k.fgb=function(a){a&&a.target?Om(this,a.target):Pm(this)};
k.MV=function(a,b){var d=a;this.Pc&&(d=b);0!=d&&Qm(this,-d,!0)};k.qR=function(a,b){if("hover"==this.Vfa&&"oneByOne"!=this.un&&this.Wf&&!this.AF&&!this.nJa){var d=q.b.ca(b);Om(this,d)}};r.a("AdfDhtmlCarouselPeer.prototype.HandleDomMouseMove",{qR:wm.prototype.qR});
function Om(a,b){if(b&&!a.Ar){var d=Rm(b,a.i());if(null!=d){var e=d[0],d=d[1];if(null!=e)if(a.od!=e&&null!=e){var f=a.Rf(a.od,!0);f?Sm(a,f.Db,null,!1,{Bqb:e,Cqb:d}):v.l.severe('During _updateHoverState, a null rowData was found for "'+a.od+'".')}else Pm(a)}}}function Pm(a){if(null!=a.U5){var b=!0;a.od==a.U5&&(b=!1);a.U5=null;b&&((b=a.Rf(a.od,!0))?Sm(a,b.Db,null,!1,{Bqb:null,Cqb:null}):v.l.severe('During _cleanUpHoverState, a null rowData was found for "'+a.od+'".'))}}
wm.prototype.fc=function(a){if(this.Wf&&this.gG(a))if(this.KM){var b=a.U();a=q.b;var b=a.ca(b),d=this.f().g(),e=a.getElementById(I.j(d,"sp"));a=a.getElementById(I.j(d,"sn"));if(b.id==e.id||b.id==a.id)self.clearInterval(this.LM),this.KM=this.LM=null}else Pm(this)};r.a("AdfDhtmlCarouselPeer.prototype.HandleComponentMouseOut",{fc:wm.prototype.fc});
wm.prototype.Ac=function(a){if(this.Wf&&this.gG(a)&&this.KM){a=a.U();var b=q.b,d=b.ca(a),e=this.f().g(),f=b.getElementById(I.j(e,"sp")),e=b.getElementById(I.j(e,"sn"));if(d.id==f.id||d.id==e.id)self.clearInterval(this.LM),this.KM=this.LM=null,b.Ea(a)}};r.a("AdfDhtmlCarouselPeer.prototype.HandleComponentMouseUp",{Ac:wm.prototype.Ac});
wm.prototype.Fa=function(a){if(this.Wf&&this.gG(a)){var b=a.U(),d=q.b;a=d.ca(b);if(d.qg(b)){if(a&&a.id){var e=this.f().g();if("none"!=this.Fc){if("small"!=this.Fc&&"compact"!=this.Fc){var f=d.getElementById(I.j(e,"st"));a.id==f.id&&(d.Ea(b),this.AF=!0,A.c.Md(b,this.D(this.qLa),this.D(this.udb)))}f=d.getElementById(I.j(e,"sp"));e=d.getElementById(I.j(e,"sn"));if(a.id==f.id||a.id==e.id){b="prev";a.id==e.id&&(b="next");this.KM=b;this.LM=self.setInterval(this.D(this.xhb),1E3);return}}}e=this.oc();C.Nb(e,
a)&&this.od&&(e=this.Rf(this.od,!1),null==e||C.Nb(e.Db,a)||(d.Ea(b),this.nJa=!0,A.c.Md(b,this.D(this.Yfb),this.D(this.tdb))))}}};r.a("AdfDhtmlCarouselPeer.prototype.HandleComponentMouseDown",{Fa:wm.prototype.Fa});k=wm.prototype;k.xhb=function(){self.clearInterval(this.LM);this.LM=self.setInterval(this.D(this.phb),100)};k.phb=function(){"prev"==this.KM?Tm(this):"next"==this.KM&&Um(this)};
k.qLa=function(a){var b=q.b,d=this.f();if(null!=d){var d=d.g(),d=b.getElementById(I.j(d,"sb")),e=b.Xb(a);this.Pc?(a=d.offsetHeight,b=b.Ld(d)+a-e.y,b=1-b/a):(b=e.x-b.Wc(d),b/=d.offsetWidth,wm.yb()&&(b=1-b));Vm(this,b);Wm(this,b)}};k.udb=function(a){delete this.AF;this.qLa(a)};k.Yfb=function(a,b,d){a=b;this.Pc&&(a=d);0!=a&&Qm(this,-a,!0)};k.tdb=function(){delete this.nJa;this.K6=null};
function Xm(a){var b=q.b,d=a.f().g();if("small"==a.Fc||"compact"==a.Fc||"none"==a.Fc)b=Ym(a);else{var e=b.getElementById(I.j(d,"st")),d=b.getElementById(I.j(d,"sb"));if(a.Pc)var f=d.offsetHeight,b=b.Ld(d)+f-b.Ld(e),b=1-b/f;else b=b.Wc(e)-b.Wc(d),b/=d.offsetWidth,wm.yb()&&(b=1-b)}e=a.pe;-1==e&&(e=a.hf+wm.KS);return Math.max(0,Math.round(b*(e-1)))}
k.M=function(a){if(this.gG(a)){var b=q.b,d=a.U(),e=b.ca(d);if(e&&!this.Ar){var f=Rm(e,this.i());null!=f?(b=f[0],d=f[1],null!=b&&a.ec()&&this.od!=b&&null!=b&&(this.Xt(),this.cm&&window.clearTimeout(this.cm),this.f().getDisabled()||(a=this.od,Zm(this,b)&&Sm(this,d,a,!0)))):"small"!=this.Fc&&"compact"!=this.Fc&&"none"!=this.Fc&&(f=this.f().g(),a=b.getElementById(I.j(f,"sb")),e.id==a.id&&(d=b.Xb(d),b.getElementById(I.j(f,"st")).focus(),this.Pc?(e=a.offsetHeight,b=b.Ld(a)+e-d.y,Wm(this,1-b/e,Ym(this))):
(b=d.x-b.Wc(a),b/=a.offsetWidth,wm.yb()&&(b=1-b),Wm(this,b,Ym(this)))))}}};r.a("AdfDhtmlCarouselPeer.prototype.HandleComponentClick",{M:wm.prototype.M});k=wm.prototype;k.Xl=function(a,b,d){var e=wm.Kl;if(0<this.hf){var e=this.kW(a),f=0!=(e&wm.$D),g=0!=(e&wm.Ko);e==wm.Kl?(this.Ei(),wm.Vf(a,"")):f?bn(this,a,b,d):g&&cn(this,a,b,d)}return e};
k.kW=function(a){var b=a.firstChild;a=wm.u0;if(b&&(a=wm.Kl,!this.fF(b))){var d=this.Pc,e=this.Rf(this.od,!0);if(!e)return v.l.severe('When checking _isViewportSatisfied, a null rowData was found for "'+this.od+'".'),wm.Kl;var e=e.index,f=b.Ca-1,b=b.Ca+Hm(b),g=this.pe;-1==g&&(g=this.hf+wm.KS);if("oneByOne"==this.un)0<=f&&f==e-1&&(a|=wm.$D),b<g&&b==e+1&&(a|=wm.Ko);else{var h=this.f(),l=this.xU,n=this.uF,t=h.getHalign(),h=h.getValign();0<=f&&(f=dn(this,e-f),5<f.eo&&(d&&0<en(this,d,h,n,f.eo,-f.Bu)||!d&&
0<fn(this,d,t,l,f.eo,-f.Bu))&&(a|=wm.$D));b<g&&(f=dn(this,b-e),5<f.eo&&(d&&en(this,d,h,n,f.eo,f.Bu)<n||!d&&fn(this,d,t,l,f.eo,f.Bu)<l)&&(a|=wm.Ko))}}return a};function bn(a,b,d,e){var f=b.firstChild;b=f.Ca;f=q.b.getAttribute(Jm(f),wm.Xa);a.Xn(dh.xq,b,f,d,!e)}function cn(a,b,d,e){var f=b.firstChild;b=f.Ca+Hm(f)-1;f=q.b.getAttribute(Km(f),wm.Xa);a.Xn(dh.Om,b,f,d,!e)}
k.xM=function(a,b,d,e){var f=null,g,h,l=this.f().getFetchSize(),n=A.c.H(),t=this.pe;g=Math.ceil(l/2);0<=b-g?g=b-g:(f=n.Z("af_carousel.LABEL_START"),g=0);-1!=t?g+l<t?h=g+l-1:(h=t-1,f=n.Z("af_carousel.LABEL_END")):h=g+l-1;null==f&&(f=n.Z("af_carousel.LABEL_ITEM",1+b));Fm(this,b);if(t=a.firstChild){var y=t.Ca,z=y+Hm(t)-1;if(g==y&&h==z)return;var B=l=!1;g>=y&&b<=z?B=!0:h>=y&&h<=z&&b>=y&&(l=!0);if(l||B){f=t.childNodes[b-y+Lm(t)];u.assert(null!=f,"Unexpected null row A: ("+Hm(t)+", "+b+", "+y+")");b=q.b.getAttribute(f,
wm.Xa);Zm(this,b);l?bn(this,a,d,e):cn(this,a,d,e);return}}d&&this.LU(n.Z("af_carousel.LABEL_GOING_TO",f));this.Xn(dh.FQ,b,null,d,!e)};
function gn(a,b,d){b=b.firstChild;var e=b.Ca,f=Hm(b),g=a.xU,h=a.uF,l=a.f(),n=l.getFetchSize(),t=l.getHalign(),y=l.getValign(),z=a.Rf(a.od,!1),B=a.Pc;if(z)if(z=z.index,d)for(f=z-n;f>=e;){d=dn(a,z-f);if(5>=d.eo||B&&0>=en(a,B,y,h,d.eo,-d.Bu)||!B&&0>=fn(a,B,t,g,d.eo,-d.Bu)){for(;e<=f;e++)g=Jm(b),a.fi(g),b.removeChild(g);b.Ca=f+1;b.Ub=Hm(b);Mm(l,b.Ca,b.Ub);break}f--}else for(n=z+n;n<e+f;){d=dn(a,n-z);if(5>=d.eo||B&&en(a,B,y,h,d.eo,d.Bu)>=h||!B&&fn(a,B,t,g,d.eo,d.Bu)>=g){for(g=n;g<e+f;g++)h=Km(b),a.fi(h),
b.removeChild(h);b.Ub=Hm(b);Mm(l,b.Ca,b.Ub);break}n++}}k.fi=function(a){A.c.Ri(a);q.b.yc(a)};k.Ir=function(a,b,d,e){var f=this.dV++,g=this.f(),h=new dh(g,f,b,d,e);h.Xc(!0);h.rI(a);var l=!1;a?A.c.As(h):(hn(this,this.od,h),g.Hg(h),l=h.Aa());l||(this.ph=b,this.xB=f,this.GF=d,this.gx=e,this.WW=a,h.Vb(g));return l?null:h};
k.Xn=function(a,b,d,e,f){if(a!=this.ph||b!=this.GF||d!=this.gx)if(this.cm&&(delete this.cm,window.clearTimeout(this.cm)),e){e=A.c.Y();var g=function(){var a=arguments.callee;a.jmb.xub(a.Sr,a.zg,a.kma,a.GG)};g._subtype=a;g._index=b;g._key=d;g._renderOnly=f;g._self=this;this.cm=e.setTimeout(g,wm.xBa);this.Xt()}else(a=this.Ir(f,a,b,d))?(b=A.c.H().Z("af_carousel.LABEL_FETCHING"),this.LU(b),wm.Vf(this.oc(),"wait"),this.dm&&(a.XC(this.b4(this.dm)),this.dm=null)):(this.Ei(),Fm(this))};
wm.prototype._delNav=function(a,b,d,e){this.Xn(a,b,d,!1,e);delete this.cm};k=wm.prototype;k.Xt=function(){this.WW=this.xB=this.gx=this.GF=this.ph=void 0};k.w5=function(a,b,d){a.Ca=b;a.Ub=d};
function Dm(a,b,d,e){var f=q.b,g=a.f(),h=a.i();xm(a,g,h);var l=Math.max(0,d),n=Math.max(0,e),t=a.Pc;t?l=Math.max(0,l-a.ju):n=Math.max(0,n-a.ju);var y=n;t?(n-=a.BM,y=l,n<l&&(y=Math.max(0,n-2*wm.OS))):l<n&&(y=Math.max(0,l-2*wm.OS));y=Math.round(Math.max(30,y-2*wm.OS));a.xU=l;a.uF=n;a.Qx=y;a.X7=(l-y)/2;a.xLa=(n-y)/2;var z=g.g();if("small"==a.Fc||"compact"==a.Fc){var B=ym(a,h),h=f.getComputedStyle(B),B=B.style;B.width=y-(0+parseInt(h.paddingLeft,10)+parseInt(h.paddingRight,10))+"px";B.right="auto";B.left=
fn(a,t,g.getHalign(),l,y,0)+"px";t&&(B.top=en(a,t,g.getValign(),n,y,0)+y+"px")}else if(t){var B=zm(z),h=f.getComputedStyle(B),B=B.style,F;F=0+parseInt(h.paddingLeft,10);F+=parseInt(h.paddingRight,10);B.width=y-F+"px";B.left=fn(a,!0,g.getHalign(),l,y,0)+(wm.yb()?parseInt(b.offsetLeft):0)+"px";B.top=en(a,!0,g.getValign(),n,y,0)+y+"px"}"oneByOne"==a.un&&(h=b.style,h.width=y+"px",h.height=y+"px",h.right="auto",h.bottom="auto",h.top=en(a,t,g.getValign(),n,y,0)+"px",h.left=fn(a,t,g.getHalign(),l,y,0)+(wm.yb()?
parseInt(b.offsetLeft):0)+"px");"oneByOne"==a.un&&"small"!=a.Fc&&"compact"!=a.Fc&&"none"!=a.Fc&&(h=f.getElementById(I.j(z,"sp")),B=f.getElementById(I.j(z,"sb")),f=f.getElementById(I.j(z,"sn")),t?(g=g.getValign(),l=h.offsetHeight,d=f.offsetHeight,n=en(a,!0,g,n,y,0),z=zm(z).offsetHeight,l=n+l,y=n+y+z-d,h.style.bottom=e-l+"px",B.style.top=l+"px",B.style.bottom=e-y+"px",f.style.top=y+"px"):(e=g.getHalign(),g=h.offsetWidth,n=f.offsetWidth,l=fn(a,!1,e,l,y,0),g=l+g,n=l+y-n,B.style.left=g+"px",B.style.right=
d-n+"px",wm.yb()?(h.style.left=n+"px",f.style.right=d-g+"px"):(h.style.right=d-g+"px",f.style.left=n+"px"),"start"==e?zm(z).style.right=d-2*l-y+"px":"end"==e&&(zm(z).style.left=2*l+y-d+"px")));u.assert(!b.firstChild||a.od,"There is no current item in the data block");a.od&&((b=a.Rf(a.od,!0))?(jn(a,b.Db,!1),kn(a)):v.l.severe("_sizeDataBody failed due to invalid currentItemKey: "+a.od))}
k.vM=function(a,b,d,e){var f=q.b,g=f.eb(a,"_startRow",0),h=Hm(a),l=this.oc(),n=l.firstChild;this.w5(a,g,h);b==dh.FQ?(ln(this,l,a,d),this.Uw(l,a)):b==dh.Om?(0==h?-1==this.pe?(a=f.eb(n,"_rowCount",-1),this.pe=-1==a?this.hf:a):this.Uw(l,a):(d=g-n.Ca-Hm(n),0!=d?(d=g+Math.ceil(h/2),ln(this,l,a,d)):mn(this,l,a,!1),this.Uw(l,a)),e||gn(this,l,!0)):b==dh.xq&&(d=g-n.Ca+h,f=this.Uw(l,a),0!=d||0!=f?(d=g+Math.ceil(h/2),ln(this,l,a,d)):mn(this,l,a,!0),e||gn(this,l,!1));if(b==dh.FQ||b==dh.Om)b=g+h-this.hf,0<b&&
(this.hf+=b,Fm(this))};k.Uw=function(a,b){var d=0,e=this.pe;if(-1!=e){var f=q.b.eb(b,"_rowCount",-1);0==this.kj?f=-1:0<this.kj&&(f=this.kj);-1!=f&&(d=f-e)}0!=d&&(this.pe=this.hf=f,Fm(this));return d};
k.LU=function(a){var b=this.fB();if("icon"==A.c.H().qa("af|carousel-tr-status-type")){var d=wm.L4(b,"IMG");null!=d?d.title=a:b.title=a}else b.innerHTML=a;a=b.style;if("none"==a.display){var e=!1,f=this.xU,g=this.uF;if(null==f||null==g||0==f||0==g)e=!0,d=this.oc(),f=d.offsetWidth,g=d.offsetHeight;a.zIndex=1E4;d=this.Pc;a.visibility="hidden";a.display="block";var h=b.offsetWidth/2,b=b.offsetHeight/2;if(e)h=f/2-h,g=g/2-b,d&&null!=this.ju&&0!=this.ju&&(h+=this.ju),wm.yb()?a.left=Math.floor(h)+"px":a.right=
Math.floor(h)+"px";else{var l=this.f(),e=this.Qx,f=fn(this,d,l.getHalign(),f,e,0),g=en(this,d,l.getValign(),g,e,0)+e/2-b;a.right="auto";a.left=Math.floor(f+e/2-h)+"px"}a.top=Math.floor(g)+"px";a.visibility="visible"}};k.Ei=function(){this.fB().style.display="none"};k.oc=function(a){return this.gM("db",a)};function ym(a,b){u.assert("small"==a.Fc||"compact"==a.Fc,"Carousel peer should not be accessing the control area when controlArea \x3d\x3d full or none");return a.gM("ca",b)}
function Bm(a,b){u.assert("small"!=a.Fc&&"compact"!=a.Fc&&"none"!=a.Fc,"Carousel peer should not be accessing the spin control div when controlArea !\x3d full");return q.b.getElementById(I.j(b,"sc"))}function Am(a,b){u.assert("compact"!=a.Fc&&"none"!=a.Fc,"Carousel peer should not be accessing the spin info div when controlArea \x3d\x3d compact or none");return q.b.getElementById(I.j(b,"si"))}function zm(a){return q.b.getElementById(I.j(a,"it"))}k.fB=function(){return this.gM("sm")};
k.gM=function(a,b){var d=this.i();null==d&&(d=b);return wm.R4(d,a)};wm.R4=function(a,b){u.assert(null!=a,"Carousel peer cannot get a child by sub ID if the parent is null!");for(var d=a.id+"::"+b,e=a.childNodes,f=0;f<e.length;f++)if(d==e[f].id)return e[f];return null};wm.tgb=function(a){a=q.b.ca(a);var b=a.id;b||(b=a.parentNode.id);a=b.substring(0,b.indexOf("::"));Tm(A.c.m(a).o())};wm.Mka=function(a){a=q.b.ca(a);var b=a.id;b||(b=a.parentNode.id);a=b.substring(0,b.indexOf("::"));Um(A.c.m(a).o())};
wm.cu=function(a){a||(a=A.c.Y().event);var b=null!=a.wheelDelta?-a.wheelDelta/4:4*a.detail,d=A.c.m(this.id);null!=d&&(d=d.o(),d.Pc&&(b*=-1),Qm(d,b,!1));q.b.Ea(a)};function Qm(a,b,d){if(null!=a.f())if(!d&&30>=Math.abs(b))0<b?Um(a):0!=b&&Tm(a);else{var e=a.oc(),e=a.Pc?e.offsetHeight:e.offsetWidth;null!=a.K6&&(b+=a.K6);d&&Math.abs(b/e)<a.Bna?a.K6=b:(a.K6=null,0<b?Um(a):0!=b&&Tm(a))}}
wm.L4=function(a,b){u.assert(null!=a,"Carousel peer cannot find first child by tag name if the parent is null!");for(var d=a.childNodes,e=0;e<d.length;e++)if(b==d[e].tagName)return d[e];return null};function Rm(a,b){u.u(a);var d=a,e=q.b;if(null==d||1!=d.nodeType)return null;for(var f=e.getAttribute(d,wm.Xa);null==f;){if(null==d||d==b)return null;d=d.parentNode;if(null==d||1!=d.nodeType)return null;f=e.getAttribute(d,wm.Xa)}return[f,d]}
wm.prototype.uwa=function(a,b,d){this.MLa||(b=this.Rf(d,!1),null==b?u.assert(null!=b,"The carousel '"+a.g()+"' does not any item in the current set of fetched items with client key: "+d):(this.od=d,jn(this,b.Db,!1),Nm(this,d)))};r.a("AdfDhtmlCarouselPeer.prototype.ComponentCurrentItemKeyChanged",{uwa:wm.prototype.uwa});
function Zm(a,b,d){var e=!1,f=a.f(),g=a.od,h=new zb(f,g,b);d||hn(a,g,h);h.F();h.Aa()||(h.Vb(f),a.od=b,a.MLa=!0,v.l.finer("Update current item key to:",b),f.setCurrentItemKey(b),a.MLa=!1,Nm(a,b),e=!0);return e}function hn(a,b,d){a=a.Rf(b,!1);u.assert(null!=a,'Unexpected null rowData for key "'+b+'".');a&&(b=A.c.m(C.pa(a.Db).id))&&d.Vb(b)}
function Nm(a,b){var d=a.Rf(b,!0);u.assert(null!=d,'Unexpected null rowData for key "'+b+'".');if(d){var e=C.pa(d.Db).id,d=A.c.m(e),f=a.f().g(),f=zm(f);null==d?(a.V7=e,f.title="",f.innerHTML=""):(a.V7=null,e=d.getText(),f.title=null==e?"":e,f.innerHTML=null==e?"":e);nn(a,d)}}wm.prototype.K_=function(a){if(null!=this.V7&&this.V7==a){this.V7=null;var b=this.f().g(),b=zm(b);a=A.c.m(a);if(null==a)b.title="",b.innerHTML="";else{var d=a.getText();b.title=null==d?"":d;b.innerHTML=null==d?"":d}nn(this,a)}kn(this)};
r.a("AdfDhtmlCarouselPeer.prototype.CarouselItemInitialized",{K_:wm.prototype.K_});function nn(a,b){for(var d=A.c.H().getStyleClass("p_AFSelected"),e=a.oc().firstChild.childNodes,f=e.length,g=0;g<f;++g){var h=e[g];if(C.O(h,d)){(e=C.pa(h))&&e.removeAttribute("aria-selected");break}}null!=b&&(e=b.o(),e.bind(b),e=e.i(),C.w(e.parentNode,d),a.i().setAttribute("aria-activedescendant",e.id),e.setAttribute("aria-selected",!0))}
function kn(a){a.Ana&&(window.clearTimeout(a.Ana),delete a.Ana);var b=A.c.Y(),d=new Function("var c \x3d arguments.callee;c._self._delRes();");d._self=a;a.Ana=b.setTimeout(d,1)}wm.prototype._delRes=function(){on(this,this.f())};k=wm.prototype;k.Me=function(a){for(var b=q.oa(),d,e=this.i(),f=wm.LK;null!=a&&a!=e&&"TD"!=(d=b.Na(a))&&"TH"!=d;){if(d.match(f)&&-1!=a.tabIndex)return!0;a=a.parentNode}return!1};k.DV=function(a){a||(a=A.c.Y().event);var b=q.b;this.Me(q.b.ca(a))||b.preventDefault(a)};
k.Rf=function(a,b){for(var d=null,e=this.oc().firstChild,f=e.childNodes,g=Lm(e),h=g;h<f.length&&!d;h++){var l=f[h],n=l.getAttribute(wm.Xa);if(null==n)break;if(a==n){d={Db:l,index:e.Ca+h-g,i8:e};break}}b&&null==d&&0<f.length&&(h=f[g],u.assert(!wm.hG(h),"The located firstRow (by default) is a placeholder: "+g+", "+h+", "+f),d={Db:h,index:e.Ca,i8:e},e=q.b.getAttribute(h,wm.Xa),Zm(this,e,!0));return d};
k.b4=function(a){for(var b="",d=this.oc().childNodes,e=0;e<d.length;e++)for(var f=d[e].childNodes,g=0;g<f.length;g++){var h=f[g].getAttribute(wm.Xa);if(null!=h)if("flat"==a)b+=h,b+="_";else for(var h=h.split(","),l=h.length,b=b+h[l-1],b=b+"_",n=0;n<l-1;n++){var t=h[n];b.match(new RegExp("(^|_)"+t+"(_|$)"))||(b+=t,b+="_")}}return b};k.Mk=function(){J.va(this.i())};
k.ma=function(a){if(!a.Aa()){a=a.U();var b=q.b,d=b.ca(a),e=a.keyCode,f=!0,g=d.id;if(d&&e==w.tf){var f=a.shiftKey,h=this.od;if(h){var l=!0,n=this.f().g(),t=q.b,y=this.i(),z=this.oc(),z=C.Nb(z,d);"none"==this.Fc?(n=zm(n),n=J.tC(n,null,!0)):n=t.getElementById(I.j(n,"sp"));var t=!1,B=null;if(h=this.Rf(h,!1))B=h.Db,t=C.Nb(B,d);f?z?t?J.Ee(B,!1)==d&&(J.va(y),l=!1):(J.va(y),l=!1):C.Nb(n,d)&&(J.KRa(B)||J.va(y),l=!1):z?t?J.YO(B,!1)==d&&(J.va(n),l=!1):(J.va(n),l=!1):d==y&&(J.dk(B)||J.va(n),l=!1);f=l}else f=
!0}if(f&&d&&g&&!this.Ar&&(l=this.f().g(),y=!1,"small"!=this.Fc&&"compact"!=this.Fc&&"none"!=this.Fc&&(l=b.getElementById(I.j(l,"st")),y=g==l.id),y||!this.Me(d)))if(d=wm.yb(),e==w.ab||e==w.ub)this.Pc?a.shiftKey?Wm(this,0):Tm(this):d?a.shiftKey?Wm(this,1):Um(this):a.shiftKey?Wm(this,0):Tm(this),propogate=!1;else if(e==w.Ra||e==w.vb)this.Pc?a.shiftKey?Wm(this,1):Um(this):d?(a.shiftKey?Wm(this,0):Tm(this),f=!1):a.shiftKey?Wm(this,1):Um(this),propogate=!1;f||b.Ea(a)}};
r.a("AdfDhtmlCarouselPeer.prototype.HandleComponentKeyDown",{ma:wm.prototype.ma});wm.prototype.jx=function(a){if(a){for(var b=q.b,d={},e=this.oc().firstChild.childNodes,f=e.length,g=0;g<f;++g){var h=e[g],l=b.getAttribute(h,wm.Xa);if(null!=l)if(null==a){d.Eb=l;d.Db=h;break}else if(l==a){d.UP=l;if(g+1<f){h=e[g+1];l=b.getAttribute(h,wm.Xa);if(null==l)break;d.Eb=l;d.Db=h}break}}return d}};
wm.prototype.mx=function(a){if(a){for(var b=q.b,d=this.oc(),e={},f=d.firstChild.childNodes,g=f.length-1;0<=g;--g){var h=f[g],l=b.getAttribute(h,wm.Xa);if(null!=l)if(null==a){e.Eb=l;e.Db=h;break}else if(l==a){e.UP=l;if(0<=g-1){h=f[g-1];l=b.getAttribute(h,wm.Xa);if(null==l)break;e.Eb=l;e.Db=h}else 0==b.eb(d.firstChild,"_startRow",-1)&&(e.f$=!0);break}}return e}};wm.prototype.Xla=function(a){return"immediate"==a.getContentDelivery()};wm.yb=function(){return A.c.Ka().La()};
wm.prototype.gG=function(a){a=a.getSource();for(var b=this.f(),d=!1;!d&&a;)if(a==b)d=!0;else{if(a instanceof AdfRichCarousel||a instanceof AdfUIPopup)break;a=a.getParent()}return d};wm.Vf=function(a,b){a&&a.style.cursor!=b&&(a.style.cursor=b)};function jn(a,b,d){d||a.Yx(!0);d=a.Qx;var e=a.f(),f=e.getHalign(),e=e.getValign(),g=a.Pc;pn(a,b,d,0,3E3,g,e,f,1,!1);qn(a,b,g,e,f,!0);qn(a,b,g,e,f,!1);Fm(a)}
function on(a){var b=A.c;a=a.oc().firstChild.childNodes;for(var d=a.length,e=0;e<d;++e){var f=a[e];"block"==f.style.display&&(f=C.pa(f),null!=f&&(f=f.id,null!=f&&(f=A.c.m(f),null!=f&&b.Xg(f))))}}function Vm(a,b){if(!a.f().getDisabled()){var d=a.pe;-1==d&&(d=a.hf+wm.KS);Fm(a,Math.min(Math.max(0,b*(d-1)),d-1))}}
function qn(a,b,d,e,f,g){var h=a.Qx,l=3E3;b=g?C.lc(b):C.zb(b);if("oneByOne"==a.un)for(l=g?-h:h;null!=b;)pn(a,b,h,l,2999,d,e,f,1,!0),b=g?C.lc(b):C.zb(b);else for(var n=a.uga,t=a.pga,y=0,z=100;null!=b;)y+=h*t,h=Math.round(h*n),z*=n,pn(a,b,h,g?-y:y,--l,d,e,f,Math.max(1,100-z),!0),b=g?C.lc(b):C.zb(b)}function dn(a,b){var d=a.uga,e=a.pga,f=0,g=a.Qx,h=100;if("oneByOne"==a.un)f=b,h*=d;else for(var l=0;l<b;l++)f+=g*e,g=Math.round(g*d),h*=d;return{Bu:f,eo:g,Zob:Math.max(1,100-h)}}
function pn(a,b,d,e,f,g,h,l,n,t){var y=a.xU,z=a.uF,B=b.style;B.display=5<d||!t?"block":"none";B.width=d+"px";B.height=d+"px";t||"oneByOne"!=a.un?(B.top=en(a,g,h,z,d,e)+"px",B.left=fn(a,g,l,y,d,e)+"px"):(B.top="0px",B.left="0px");B.zIndex=f;b=C.zm(b);null!=b&&(b.style.display=t?"block":"none",a.aO?q.b.fe(b,n):b.style.backgroundColor="transparent")}
function fn(a,b,d,e,f,g){if(0!=g&&"oneByOne"==a.un)return b?0:0>g?-a.Qx:a.Qx;b?a="start"==d?wm.yb()?e-f-a.X7:a.X7:"end"==d?wm.yb()?a.X7:e-f-a.X7:.5*(e-f):(a="start"==d?.2*(e-f)+g:"end"==d?.8*(e-f)+g:.5*(e-f)+g,wm.yb()&&(a=e-f-a));return Math.round(a)}
function en(a,b,d,e,f,g){if(0!=g&&"oneByOne"==a.un)return b?0>g?-a.Qx:a.Qx:0;b?"top"==d?(b=.2*(e-f)+g,0<g&&(b+=a.BM)):"bottom"==d?(b=.8*(e-f)+g,0<g&&(b+=.25*a.BM)):(b=.5*(e-f)+g,0<g&&(b+=a.BM)):b="top"==d?a.xLa:"bottom"==d?e-f-a.xLa:.5*(e-f);return Math.round(b)}
function ln(a,b,d,e){var f=q.b,g=b.firstChild;a.fi(g);b.removeChild(g);b.appendChild(d);f.Ia(d);(b=d.firstChild)?(b=d.Ca,g=d.childNodes.length,u.assert(e>=b,"Bad data block state: ("+d.innerHTML+", "+e+", "+b+", "+g+")"),Mm(a.f(),b,g),e=Math.min(e,b+g-1),b=d.childNodes[e-b],d=f.getAttribute(b,wm.Xa),Zm(a,d,!0),jn(a,b,!1),kn(a)):v.l.severe("No items in the data block")}
function mn(a,b,d,e){b=b.firstChild;var f=d.childNodes.length,g=Hm(b),h=q.b,l=b.Ca,n=a.Rf(a.od,!0);if(null==n)v.l.severe("Addition of data block items failed: "+a.od+", "+n);else{var t=n.index,y=a.f();a.Yx(!0,n.Db);Cm(a);for(var z=y.getHalign(),B=y.getValign(),F=e?3E3-(t-(l-1)):3E3-(g+l-t),l=e?t-(l-1):g+l-t;e?d.lastChild:d.firstChild;){t=e?d.lastChild:d.firstChild;if(e){var K=Jm(b);b.insertBefore(t,K)}else b.appendChild(t);K=dn(a,l);pn(a,t,K.eo,e?-K.Bu:K.Bu,--F,a.Pc,B,z,K.Zob,!0);h.Ia(t);l++}e&&(b.Ca-=
f);g+=f;b.Ub=g;Mm(y,b.Ca,g);jn(a,n.Db,!1);kn(a)}}
function Fm(a,b){var d=q.b,e=a.f().g();if(void 0==b){if(a.AF)return;var f=a.Rf(a.od,!0);if(null==f){v.l.severe("Thumb details failed: "+a.od+", "+f);return}b=f.index}var f=a.pe,f=-1!=f?f:a.hf+wm.KS,f=Math.max(1,f-1),g=b/f;a.AF||(a.ija=g);if("small"!=a.Fc&&"compact"!=a.Fc&&"none"!=a.Fc){g=d.getElementById(I.j(e,"sb"));d=d.getElementById(I.j(e,"st"));a.AF||(a.Bna=1/f);var e=a.Pc,h=d[e?"offsetHeight":"offsetWidth"],f=e?(1-b/f)*(g.offsetHeight-h):wm.yb()?(f-b)/f*(g.offsetWidth-h):b/f*(g.offsetWidth-h);
d.style[e?"bottom":"left"]=f+"px"}else a.AF||"none"==a.Fc||(f=0==b,g=1==g,a.f().getDisabled()&&(g=f=!0),h=d.getElementById(I.j(e,"sp")),d=d.getElementById(I.j(e,"sn")),C.qd(f,h,I.lb),C.qd(g,d,I.lb));if("compact"!=a.Fc&&"none"!=a.Fc&&(d=b+1,e=a.f().g(),f=Am(a,e),g=a.pe,a.AF&&(d=Math.round(d)),d=-1==g?d:A.c.H().Z("af_carousel.TIP_SPIN_INFO_X_OF_Y",d,g),f.innerHTML="\x3cspan\x3e"+d+"\x3c/span\x3e","small"!=a.Fc&&"compact"!=a.Fc&&"none"!=a.Fc)){var d=f.style,l=q.b,h=l.getElementById(I.j(e,"st"));a.Pc?
(e=l.getElementById(I.j(e,"sp")),d.paddingTop=Math.round(e.offsetTop+e.offsetHeight+h.offsetTop+h.offsetHeight/2-f.firstChild.offsetHeight/2)+"px"):(f=f.firstChild.offsetWidth,g=h.offsetLeft,h=h.offsetWidth,e=wm.yb()?l.getElementById(I.j(e,"sn")):l.getElementById(I.j(e,"sp")),l=e.offsetWidth,e=e.offsetLeft,d.textAlign="left",d.paddingLeft=Math.round(e+l+g+h/2-f/2)+"px")}}
function Sm(a,b,d,e,f){var g=null,h=100,l,n;if(null==f){if(d=a.Rf(d,!0))l=d.Db;a.Yx(!0,l)}else{n=b;l=f.hoverKey;if(null!=l){h=0;if(l==a.U5)return;a.U5=l;g=f.hoverWrapper}a.Yx(!1)}l=a.uga;d=a.pga;var t=a.xU,y=a.uF,z=a.Qx,B=a.Pc,F=a.f(),K=F.getHalign(),P=F.getValign(),Q=[],da,ba=0,ta=0,Ha="oneByOne"==a.un;if(!Ha&&(ba=fn(a,B,K,t,z,0),ta=en(a,B,P,y,z,0),"hover"==a.Vfa)){var F=F.g(),Eb=null;"small"==a.Fc||"compact"==a.Fc?(F=a.i(),Eb=ym(a,F)):Eb=zm(F);null!=Eb&&(da={element:Eb,Cb:{alpha:h}},Q.push(da))}da=
{element:b,Cb:{offsetLeft:ba,offsetTop:ta,width:z,height:z}};var fb=b.style;fb.zIndex=3E3;fb.display="block";Q.push(da);fb=C.zm(b);null!=fb&&(a.aO?(da={element:fb,Cb:{alpha:0}},Q.push(da)):fb.style.backgroundColor="transparent");null==f&&Fm(a);for(var Ya=C.lc(b),h=0,ba=z,ta=100,F=3E3,Lb=0,Eb=wm.yb();null!=Ya;){Ha?h=1:(h+=ba*d,ba=Math.round(ba*l));fb=Ya.style;if(Ya==g){fb.zIndex=3001;--F;da=(z-ba)/2;B&&(Eb?"start"==K?da=z-ba:"end"==K&&(da=0):"start"==K?da=0:"end"==K&&(da=z-ba));var Kc=(z-ba)/2;B||
("top"==P?Kc=0:"bottom"==P&&(Kc=z-ba));da={element:Ya,Cb:{offsetLeft:fn(a,B,K,t,ba,-h)-da,offsetTop:en(a,B,P,y,ba,-h)-Kc,width:z,height:z}}}else fb.zIndex=--F,da={element:Ya,Cb:{offsetLeft:fn(a,B,K,t,ba,-h),offsetTop:en(a,B,P,y,ba,-h),width:ba,height:ba}};fb.display=5>=ba?"none":"block";Q.push(da);fb=C.zm(Ya);null!=fb&&Ya!=n&&(fb.style.display="block",a.aO?(ta*=l,da=Ya==g?{element:fb,Cb:{alpha:1}}:{element:fb,Cb:{alpha:Math.max(1,100-ta)}},Q.push(da)):fb.style.backgroundColor="transparent");fb=Ya;
Ya=C.lc(Ya);e&&null==Ya&&2<ba&&0<fb.parentNode.Ca-Lb&&(Ya=null,a.aO&&(ta*=l,Ya=Math.max(1,100-ta)),Ya=rn(a,fb,!1,Ya),++Lb,Ha&&(Ya=null))}Ya=C.zb(b);h=0;ba=z;ta=100;F=3E3;for(Lb=0;null!=Ya;)if(Ha?h=1:(h+=ba*d,ba=Math.round(Math.max(1,ba*l))),fb=Ya.style,Ya==g?(fb.zIndex=3001,--F,da=(z-ba)/2,B&&(Eb?"start"==K?da=z-ba:"end"==K&&(da=0):"start"==K?da=0:"end"==K&&(da=z-ba)),Kc=(z-ba)/2,B||("top"==P?Kc=0:"bottom"==P&&(Kc=z-ba)),da={element:Ya,Cb:{offsetLeft:fn(a,B,K,t,ba,h)-da,offsetTop:en(a,B,P,y,ba,h)-
Kc,width:z,height:z}}):(fb.zIndex=--F,da={element:Ya,Cb:{offsetLeft:fn(a,B,K,t,ba,h),offsetTop:en(a,B,P,y,ba,h),width:ba,height:ba}}),fb.display=5>=ba?"none":"block",Q.push(da),fb=C.zm(Ya),null!=fb&&Ya!=n&&(fb.style.display="block",a.aO?(ta*=l,da=Ya==g?{element:fb,Cb:{alpha:1}}:{element:fb,Cb:{alpha:Math.max(1,100-ta)}},Q.push(da)):fb.style.backgroundColor="transparent"),fb=Ya,Ya=C.zb(Ya),e&&null==Ya&&2<ba&&Lb<wm.g2a&&(da=fb.parentNode,da=da.Ca+Hm(da)+Lb,Kc=a.pe,-1==Kc||da<Kc))Ya=null,a.aO&&(ta*=
l,Ya=Math.max(1,100-ta)),Ya=rn(a,fb,!0,Ya),++Lb,Ha&&(Ya=null);a.$ib=wm.hG(b);a.Be=jj(3,null==f?a.UT:a.Dna,Q,null,wm.Ymb,a,null)}
function rn(a,b,d,e){var f=q.b,g=b.ownerDocument,h=g.createElement("div"),l=h.style;l.width="1px";l.height="1px";l.top="50%";l.left="50%";l.display="none";l=A.c.H();C.w(h,l.getStyleClass("af|carousel::item"));"oneByOne"==a.un?C.w(h,l.getStyleClass("p_AFOneByOne")):C.w(h,l.getStyleClass("p_AFCircular"));a=g.createElement("div");C.w(a,l.getStyleClass("af|carouselItem"));h.appendChild(a);g=g.createElement("div");C.w(g,l.getStyleClass("af|carousel::item-overlay"));null!=e&&f.fe(g,100*e);h.appendChild(g);
e=f.getAttribute(b,"theme");null!=e&&(f.setAttribute(h,"theme",e),f.setAttribute(a,"theme",e),f.setAttribute(g,"theme",e));d?b.parentNode.appendChild(h):b.parentNode.insertBefore(h,b);return h}wm.hG=function(a){return null==q.b.getAttribute(a,wm.Xa)};function Cm(a){a=a.oc().firstChild;if(null!=a){a=a.childNodes;for(var b=a.length-1;0<=b;b--){var d=a[b];wm.hG(d)&&d.parentNode.removeChild(d)}}}
wm.prototype.Yx=function(a,b){if(null!=this.Be){var d=b;if(!d){var e=this.Rf(this.od,!0);e&&(d=e.Db)}e=this.Be;this.Be=null;e.stop();d&&a&&jn(this,d,!0)}};wm.Ymb=function(a){a.Be=null;if(!a.$ib){for(var b=a.oc().firstChild.childNodes,d=0;d<b.length;++d){var e=b[d].style;"block"==e.display&&5>=parseInt(e.width,10)&&(e.display="none")}on(a,a.f());if(b=a.Rf(a.od,!1))b=b.Db,b.style.display="block",b=C.zm(b),null!=b&&(b.style.display="none");a.Xl(a.oc(),!1,!0)}};
function Tm(a){var b=a.f();if(null!=b&&!b.getDisabled()){var b=a.od,d=a.mx(b);if(d.Db&&d.Eb)a.Xt(),a.cm&&window.clearTimeout(a.cm),Zm(a,d.Eb)&&Sm(a,d.Db,b,!0);else{var d=Xm(a),e=a.Rf(b,!1);e?d<e.index&&a.xM(a.oc(),d,!0,!0):v.l.severe("_initiateSpinPreviousAnimation failed due to invalid currentItemKey: "+b)}}}
function Um(a){var b=a.f();if(null!=b&&!b.getDisabled()){var b=a.od,d=a.jx(b);if(d.Db&&d.Eb)a.Xt(),a.cm&&window.clearTimeout(a.cm),Zm(a,d.Eb)&&Sm(a,d.Db,b,!0);else{var d=Xm(a),e=a.Rf(b,!1);e?d>e.index&&a.xM(a.oc(),d,!0,!0):v.l.severe("_initiateSpinNextAnimation failed due to invalid currentItemKey: "+b)}}}function Ym(a){if(null!=a.ija)return a.ija;u.assert(!1,"Illegal state; currentPercent is not known: "+a.ija)}
function Wm(a,b,d){if(!a.f().getDisabled()){var e=a.oc(),f=e.firstChild,g=f.childNodes,h=a.pe,l=f.Ca,n=Hm(f);-1==h&&(h=a.hf+wm.KS);var t=h-1,y=Math.max(0,Math.round(b*t)),z=null;null!=d&&(z=Math.max(0,Math.round(d*t)));y=Math.min(y,h-1);z==y&&(y=b<d?Math.max(0,--y):Math.min(t,++y));y>=l&&y<l+n?(a.Xt(),a.cm&&window.clearTimeout(a.cm),d=Lm(f),b=g[y-l+d],u.assert(null!=b,"A desired row could not be found: "+g+", "+y+", "+l+", "+d),g=q.b.getAttribute(b,wm.Xa),l=!0,a.od!=g&&null!=g&&(y=a.od,Zm(a,g)&&(l=
!1,Sm(a,b,y,!0))),l&&(a.Yx(!0),Cm(a),a.Ei(),(g=a.Rf(a.od,!0))&&jn(a,g.Db,!0))):a.xM(e,y,!0,!0)}}function Mm(a,b,d){a.setProperty("rows",d,!1,G.ud);a.setProperty("first",b,!1,G.ud)}wm.prototype.Od=function(a,b,d,e){b=a.g();a=xa.count(b,":");u.assert(0<=d.indexOf(b));d=d.substring(b.length+1);b=d.indexOf(":");0<b&&(d=this.Rf(d.substring(0,b),!1),e.push([a+1,d?d.index:null]))};r.a("AdfDhtmlCarouselPeer.prototype.ConvertClientIdToLocator",{Od:wm.prototype.Od});
wm.prototype.Sd=function(a,b){var d=a.g(),e=sn(this,b);return e?d+":"+e:null};r.a("AdfDhtmlCarouselPeer.prototype.convertLocatorToClientId",{Sd:wm.prototype.Sd});function sn(a,b){var d=a.oc(a.i());if(null!=d)for(var d=d.childNodes,e=0;e<d.length;e++){var f=d[e],g=f.Ca;if(b>=g&&b<g+f.Ub)return C.Li(f,1,b-g).getAttribute(wm.Xa)}return null}wm.prototype.de=function(a){u.J(a);u.assert(null!=a,"Row Key cannot be null");return(a=this.Rf(a))?a.index:-1};r.a("AdfDhtmlCarouselPeer.prototype.getRowIndex",{de:wm.prototype.de});
wm.prototype.ie=function(a){u.Da(a);var b=this.f(),d=b.K("rows"),b=b.K("first");u.assert(a>=b&&a<d+b,"index must be within the viewport of the client");return sn(this,a)};r.a("AdfDhtmlCarouselPeer.prototype.getRowKey",{ie:wm.prototype.ie});
wm.prototype.sg=function(a,b){u.Da(a);u.assert("number"===typeof a&&0<=a&&a<this.pe&&0===a%1,"Provided value expected to be a valid rowIndex, provided value: "+a);if("number"===typeof a&&0<=a&&a<this.pe&&0===a%1){var d=this.Rf(this.od,!1);if(d&&a==d.index)tn(b);else{var e=this.oc(),d=e.firstChild,f=d.Ca,g=Hm(d);a>=f&&a<f+g?(this.Xt(),this.cm&&window.clearTimeout(this.cm),e=Lm(d),d=d.childNodes[a-f+e],u.assert(null!=d,"A desired row could not be found, rowIndex: "+a),f=q.b.getAttribute(d,wm.Xa),e=
this.od,Zm(this,f)?Sm(this,d,e,!0):(this.Yx(!0),Cm(this),this.Ei(),(d=this.Rf(this.od,!0))&&jn(this,d.Db,!0)),tn(b)):(this.xM(e,a,!0,!0),null!=b&&(this.cOa=b,A.c.addEventListener(Kb.ua,this.QU,this)))}}else v.l.warning("Invalid rowIndex value used, rowIndex: "+a)};r.a("AdfDhtmlCarouselPeer.prototype.scrollToRowIndex",{sg:wm.prototype.sg});function tn(a){a&&(u.Ja(a),a())}
wm.prototype.QU=function(a){var b=this.f();u.s(b,G);b=b.g();a.v8(b)&&(A.c.removeEventListener(Kb.ua,this.QU,this),a=this.cOa,this.cOa=null,tn(a))};