var ym=I.ea(I,"AdfDhtmlCarouselPeer",!1);m("AdfDhtmlCarouselPeer",ym);ym.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.Lo=1;this.$D=2;this.u0=4;this.Kl=0;this.Dz="dataW";this.OS=10;this.l2a=25;this.Xa="_afrRK";this.KS=5;this.BBa=300;this.LK=/^INPUT|SELECT|OPTION|BUTTON|^A\b|TEXTAREA/;this.Cfa="_afrNdsRfr";this.Xga="_afrUndFch"};m("AdfDhtmlCarouselPeer.InitSubclass",ym.C);
ym.prototype.G=function(a,b){ym.h.G.call(this,a,b);if("yes"==b.getAttribute("data-nojs"))this.C3a=!0;else{this.wga=a.getAuxiliaryScale();this.rga=a.getAuxiliaryOffset();this.Xfa=a.getAuxiliaryPopOut();this.dV=0;this.lj=-1;this.Qc="vertical"==a.getOrientation();var d=A.c.H();this.aO="none"!=d.qa("af|carousel-tr-overlay-opacity");this.Gna=this.UT=0;this.UT=parseInt(d.qa("af|carousel-tr-spin-animation-duration"),10);isNaN(this.UT)&&(this.UT=0);this.Gna=parseInt(d.qa("af|carousel-tr-pop-out-animation-duration"),
10);isNaN(this.Gna)&&(this.UT=0);zm(this,a,b);b.setAttribute("role","listbox")}};r.a("AdfDhtmlCarouselPeer.prototype.InitDomElement",{G:ym.prototype.G});
function zm(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=Am(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=Bm(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=Cm(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=ym.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.Qc?(a.ku=0,a.BM=K):(b.style.bottom=
ym.OS+"px",K+=ym.OS,d.style.bottom=K+"px",a.ku=K)}else"none"==a.Fc?(b=b.g(),b=Bm(b),l=b.offsetHeight,n=a.oc(d),a.Qc?(a.VV=!0,a.ku=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.ku=l)):(t=b.g(),b=Bm(t),l=a.oc(d),n=Cm(a,t),t=Dm(a,t),h=0,a.Qc?(n.style.width="auto",B=15*n.offsetWidth,0!=B&&(a.VV=!0),n.style.width=B+"px",h+=B+4,ym.yb()?t.style.left=h+"px":t.style.right=h+"px",B=C.pa(t).offsetWidth,t.style.width=B+"px",h+=B,ym.yb()?l.style.left=
h+"px":l.style.right=h+"px",a.ku=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.ku=h))}ym.prototype.Uo=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",{Uo:ym.prototype.Uo});
ym.prototype.ka=function(a){this.vu&&this.vu.unregister();this.Zx(!0);Em(this);ym.h.ka.call(this,a)};r.a("AdfDhtmlCarouselPeer.prototype.ComponentRemoved",{ka:ym.prototype.ka});ym.prototype.ue=function(){return!0};r.a("AdfDhtmlCarouselPeer.prototype.needsChildVisibilityChanges",{ue:ym.prototype.ue});ym.prototype.le=function(){A.c.Kc(this.f());return!0};r.a("AdfDhtmlCarouselPeer.prototype.ChildVisibilityChanged",{le:ym.prototype.le});ym.prototype.ya=function(){return!this.C3a};
r.a("AdfDhtmlCarouselPeer.prototype.needsResizeNotify",{ya:ym.prototype.ya});ym.prototype.fF=function(a){var b=a.Ca+a.Ub,d=this.pe;return 0<d&&0==a.Ca&&b==d};
ym.prototype.Sa=function(a,b,d,e){if(this.Wf)a=this.oc(),Fm(this,a,d,e),this.Xl(a,!1);else if(this.$la(this.f())){a=this.oc();this.lj=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):(Gm(this,a,a),this.Br=!0)}else this.fV||(this.fV=!0,this.Jr(!0,fh.TD,-1),ym.Vf(this.oc(),"wait"),a=A.c.H().Z("af_carousel.LABEL_FETCHING"),this.LU(a))};
r.a("AdfDhtmlCarouselPeer.prototype.ResizeNotify",{Sa:ym.prototype.Sa});
ym.prototype.Zb=function(a,b){var d=a.id;if(0<d.indexOf(ym.Dz)){var e=q.b,f=this.oc(),g=ym.L4(a,"DIV");this.lj=this.vV(a);var h=!1;if(this.Wf){null==g&&(h=!0);for(var l=e.eb(a,"_fetchId",-1),n=this.qh,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.Yt();if(e.Cg(a,ym.Cfa,!1)){A.c.Kc(this.f());return}if(e.Cg(a,ym.Xga,!1)){if(n==fh.FQ||n==fh.Om||n==fh.yq)if(d=a.getAttribute("_currentItemKey"))this.od=d,this.f().setCurrentItemKey(d),Hm(this);
ym.Vf(f,"");this.Fi();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 Im(this,b,g,f)}else this.Yt(),g&&g.firstChild?(this.UV(g,!1),e.Ia(g)):h=!0;h&&(this.Wf?v.l.severe("Empty data block received:"+d):Gm(this,f,a))}else ym.h.Zb.call(this,a,b)};r.a("AdfDhtmlCarouselPeer.prototype.ReplaceDomElement",{Zb:ym.prototype.Zb});ym.prototype.nc=function(a){return 0<a.id.indexOf(ym.Dz)?null:a};
r.a("AdfDhtmlCarouselPeer.prototype.DomReplaceNotify",{nc:ym.prototype.nc});k=ym.prototype;k.vV=function(a){var b=-1,d=q.b,e=ym.R4(a,"unAvail");e&&(b=d.eb(e,"_unavailableRowIndex",-1),a.removeChild(e));return b};
function Gm(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.Tc&&(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.Fi();d=a.f().g();Bm(d).style.display="none";"small"==a.Fc||"compact"==a.Fc?(d=a.i(),Am(a,d).style.display="none"):"none"!=a.Fc&&"oneByOne"==a.un&&(Dm(a,d).style.display="none");a.Br=!0;ym.Vf(b,"")}
function Im(a,b,d,e){var f=q.b,g=e.firstChild;e=g.Ca;var g=e+Jm(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;Km(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,Km(a,y,t,n,e,g,h,l),d.removeChild(y);b.appendChild(d);f.Ia(d)}
function Km(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 Lm(a){a=a.childNodes;for(var b=0;b<a.length;b++){var d=a[b];if(!ym.hG(d))return d}return null}
function Mm(a){a=a.childNodes;for(var b=a.length-1;0<=b;b--){var d=a[b];if(!ym.hG(d))return d}return null}function Jm(a){var b=0;a=a.childNodes;for(var d=0;d<a.length;d++)ym.hG(a[d])||++b;return b}function Nm(a){var b=0;a=a.childNodes;for(var d=0;d<a.length&&ym.hG(a[d]);d++)++b;return b}
k.UV=function(a,b){this.Fi();this.Wf=!0;var d=q.b,e=d.eb(a,"_startRow",0),f=Jm(a),g=this.f();Om(g,e,f);var h=this.oc(),l=d.eb(a,"_rowCount",-1);0==this.lj?l=-1:0<this.lj&&(l=this.lj);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=ym.du,
d.S()!=q.ia&&e.addEventListener("DOMMouseScroll",ym.du,!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",ym.ugb),d.ba(f,"click",ym.Pka)),(g=d.rm()[q.zl])&&g!=q.Al&&(this.vu=d.bs(e,this.D(this.MV),1),"hover"==this.Xfa&&this.vu.Sua(this.D(this.ggb))));h.onselectstart=this.D(this.DV);Fm(this,h,t,n);h.style.zIndex=1;this.Xl(h,!1);l&&Pm(this,l)};k.ggb=function(a){a&&a.target?Qm(this,a.target):Rm(this)};
k.MV=function(a,b){var d=a;this.Qc&&(d=b);0!=d&&Sm(this,-d,!0)};k.qR=function(a,b){if("hover"==this.Xfa&&"oneByOne"!=this.un&&this.Wf&&!this.AF&&!this.sJa){var d=q.b.ca(b);Qm(this,d)}};r.a("AdfDhtmlCarouselPeer.prototype.HandleDomMouseMove",{qR:ym.prototype.qR});
function Qm(a,b){if(b&&!a.Br){var d=Tm(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?Um(a,f.Db,null,!1,{Bqb:e,Cqb:d}):v.l.severe('During _updateHoverState, a null rowData was found for "'+a.od+'".')}else Rm(a)}}}function Rm(a){if(null!=a.U5){var b=!0;a.od==a.U5&&(b=!1);a.U5=null;b&&((b=a.Rf(a.od,!0))?Um(a,b.Db,null,!1,{Bqb:null,Cqb:null}):v.l.severe('During _cleanUpHoverState, a null rowData was found for "'+a.od+'".'))}}
ym.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 Rm(this)};r.a("AdfDhtmlCarouselPeer.prototype.HandleComponentMouseOut",{fc:ym.prototype.fc});
ym.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:ym.prototype.Ac});
ym.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.vLa),this.D(this.vdb)))}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.yhb),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.sJa=!0,A.c.Md(b,this.D(this.Zfb),this.D(this.udb))))}}};r.a("AdfDhtmlCarouselPeer.prototype.HandleComponentMouseDown",{Fa:ym.prototype.Fa});k=ym.prototype;k.yhb=function(){self.clearInterval(this.LM);this.LM=self.setInterval(this.D(this.qhb),100)};k.qhb=function(){"prev"==this.KM?Vm(this):"next"==this.KM&&Wm(this)};
k.vLa=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.Qc?(a=d.offsetHeight,b=b.Ld(d)+a-e.y,b=1-b/a):(b=e.x-b.Wc(d),b/=d.offsetWidth,ym.yb()&&(b=1-b));Xm(this,b);Ym(this,b)}};k.vdb=function(a){delete this.AF;this.vLa(a)};k.Zfb=function(a,b,d){a=b;this.Qc&&(a=d);0!=a&&Sm(this,-a,!0)};k.udb=function(){delete this.sJa;this.K6=null};
function Zm(a){var b=q.b,d=a.f().g();if("small"==a.Fc||"compact"==a.Fc||"none"==a.Fc)b=bn(a);else{var e=b.getElementById(I.j(d,"st")),d=b.getElementById(I.j(d,"sb"));if(a.Qc)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,ym.yb()&&(b=1-b)}e=a.pe;-1==e&&(e=a.hf+ym.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.Br){var f=Tm(e,this.i());null!=f?(b=f[0],d=f[1],null!=b&&a.ec()&&this.od!=b&&null!=b&&(this.Yt(),this.cm&&window.clearTimeout(this.cm),this.f().getDisabled()||(a=this.od,cn(this,b)&&Um(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.Qc?(e=a.offsetHeight,b=b.Ld(a)+e-d.y,Ym(this,1-b/e,bn(this))):
(b=d.x-b.Wc(a),b/=a.offsetWidth,ym.yb()&&(b=1-b),Ym(this,b,bn(this)))))}}};r.a("AdfDhtmlCarouselPeer.prototype.HandleComponentClick",{M:ym.prototype.M});k=ym.prototype;k.Xl=function(a,b,d){var e=ym.Kl;if(0<this.hf){var e=this.kW(a),f=0!=(e&ym.$D),g=0!=(e&ym.Lo);e==ym.Kl?(this.Fi(),ym.Vf(a,"")):f?dn(this,a,b,d):g&&en(this,a,b,d)}return e};
k.kW=function(a){var b=a.firstChild;a=ym.u0;if(b&&(a=ym.Kl,!this.fF(b))){var d=this.Qc,e=this.Rf(this.od,!0);if(!e)return v.l.severe('When checking _isViewportSatisfied, a null rowData was found for "'+this.od+'".'),ym.Kl;var e=e.index,f=b.Ca-1,b=b.Ca+Jm(b),g=this.pe;-1==g&&(g=this.hf+ym.KS);if("oneByOne"==this.un)0<=f&&f==e-1&&(a|=ym.$D),b<g&&b==e+1&&(a|=ym.Lo);else{var h=this.f(),l=this.xU,n=this.uF,t=h.getHalign(),h=h.getValign();0<=f&&(f=fn(this,e-f),5<f.eo&&(d&&0<gn(this,d,h,n,f.eo,-f.Cu)||!d&&
0<hn(this,d,t,l,f.eo,-f.Cu))&&(a|=ym.$D));b<g&&(f=fn(this,b-e),5<f.eo&&(d&&gn(this,d,h,n,f.eo,f.Cu)<n||!d&&hn(this,d,t,l,f.eo,f.Cu)<l)&&(a|=ym.Lo))}}return a};function dn(a,b,d,e){var f=b.firstChild;b=f.Ca;f=q.b.getAttribute(Lm(f),ym.Xa);a.Xn(fh.yq,b,f,d,!e)}function en(a,b,d,e){var f=b.firstChild;b=f.Ca+Jm(f)-1;f=q.b.getAttribute(Mm(f),ym.Xa);a.Xn(fh.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));Hm(this,b);if(t=a.firstChild){var y=t.Ca,z=y+Jm(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+Nm(t)];u.assert(null!=f,"Unexpected null row A: ("+Jm(t)+", "+b+", "+y+")");b=q.b.getAttribute(f,
ym.Xa);cn(this,b);l?dn(this,a,d,e):en(this,a,d,e);return}}d&&this.LU(n.Z("af_carousel.LABEL_GOING_TO",f));this.Xn(fh.FQ,b,null,d,!e)};
function jn(a,b,d){b=b.firstChild;var e=b.Ca,f=Jm(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.Qc;if(z)if(z=z.index,d)for(f=z-n;f>=e;){d=fn(a,z-f);if(5>=d.eo||B&&0>=gn(a,B,y,h,d.eo,-d.Cu)||!B&&0>=hn(a,B,t,g,d.eo,-d.Cu)){for(;e<=f;e++)g=Lm(b),a.fi(g),b.removeChild(g);b.Ca=f+1;b.Ub=Jm(b);Om(l,b.Ca,b.Ub);break}f--}else for(n=z+n;n<e+f;){d=fn(a,n-z);if(5>=d.eo||B&&gn(a,B,y,h,d.eo,d.Cu)>=h||!B&&hn(a,B,t,g,d.eo,d.Cu)>=g){for(g=n;g<e+f;g++)h=Mm(b),a.fi(h),
b.removeChild(h);b.Ub=Jm(b);Om(l,b.Ca,b.Ub);break}n++}}k.fi=function(a){A.c.Si(a);q.b.yc(a)};k.Jr=function(a,b,d,e){var f=this.dV++,g=this.f(),h=new fh(g,f,b,d,e);h.Xc(!0);h.rI(a);var l=!1;a?A.c.Bs(h):(kn(this,this.od,h),g.Hg(h),l=h.Aa());l||(this.qh=b,this.xB=f,this.GF=d,this.hx=e,this.WW=a,h.Vb(g));return l?null:h};
k.Xn=function(a,b,d,e,f){if(a!=this.qh||b!=this.GF||d!=this.hx)if(this.cm&&(delete this.cm,window.clearTimeout(this.cm)),e){e=A.c.Y();var g=function(){var a=arguments.callee;a.Joa.xub(a.Tr,a.zg,a.nma,a.GG)};g._subtype=a;g._index=b;g._key=d;g._renderOnly=f;g._self=this;this.cm=e.setTimeout(g,ym.BBa);this.Yt()}else(a=this.Jr(f,a,b,d))?(b=A.c.H().Z("af_carousel.LABEL_FETCHING"),this.LU(b),ym.Vf(this.oc(),"wait"),this.dm&&(a.XC(this.b4(this.dm)),this.dm=null)):(this.Fi(),Hm(this))};
ym.prototype._delNav=function(a,b,d,e){this.Xn(a,b,d,!1,e);delete this.cm};k=ym.prototype;k.Yt=function(){this.WW=this.xB=this.hx=this.GF=this.qh=void 0};k.w5=function(a,b,d){a.Ca=b;a.Ub=d};
function Fm(a,b,d,e){var f=q.b,g=a.f(),h=a.i();zm(a,g,h);var l=Math.max(0,d),n=Math.max(0,e),t=a.Qc;t?l=Math.max(0,l-a.ku):n=Math.max(0,n-a.ku);var y=n;t?(n-=a.BM,y=l,n<l&&(y=Math.max(0,n-2*ym.OS))):l<n&&(y=Math.max(0,l-2*ym.OS));y=Math.round(Math.max(30,y-2*ym.OS));a.xU=l;a.uF=n;a.Rx=y;a.X7=(l-y)/2;a.CLa=(n-y)/2;var z=g.g();if("small"==a.Fc||"compact"==a.Fc){var B=Am(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=
hn(a,t,g.getHalign(),l,y,0)+"px";t&&(B.top=gn(a,t,g.getValign(),n,y,0)+y+"px")}else if(t){var B=Bm(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=hn(a,!0,g.getHalign(),l,y,0)+(ym.yb()?parseInt(b.offsetLeft):0)+"px";B.top=gn(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=gn(a,t,g.getValign(),n,y,0)+"px",h.left=hn(a,t,g.getHalign(),l,y,0)+(ym.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=gn(a,!0,g,n,y,0),z=Bm(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=hn(a,!1,e,l,y,0),g=l+g,n=l+y-n,B.style.left=g+"px",B.style.right=
d-n+"px",ym.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?Bm(z).style.right=d-2*l-y+"px":"end"==e&&(Bm(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))?(ln(a,b.Db,!1),mn(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=Jm(a),l=this.oc(),n=l.firstChild;this.w5(a,g,h);b==fh.FQ?(nn(this,l,a,d),this.Vw(l,a)):b==fh.Om?(0==h?-1==this.pe?(a=f.eb(n,"_rowCount",-1),this.pe=-1==a?this.hf:a):this.Vw(l,a):(d=g-n.Ca-Jm(n),0!=d?(d=g+Math.ceil(h/2),nn(this,l,a,d)):on(this,l,a,!1),this.Vw(l,a)),e||jn(this,l,!0)):b==fh.yq&&(d=g-n.Ca+h,f=this.Vw(l,a),0!=d||0!=f?(d=g+Math.ceil(h/2),nn(this,l,a,d)):on(this,l,a,!0),e||jn(this,l,!1));if(b==fh.FQ||b==fh.Om)b=g+h-this.hf,0<b&&
(this.hf+=b,Hm(this))};k.Vw=function(a,b){var d=0,e=this.pe;if(-1!=e){var f=q.b.eb(b,"_rowCount",-1);0==this.lj?f=-1:0<this.lj&&(f=this.lj);-1!=f&&(d=f-e)}0!=d&&(this.pe=this.hf=f,Hm(this));return d};
k.LU=function(a){var b=this.fB();if("icon"==A.c.H().qa("af|carousel-tr-status-type")){var d=ym.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.Qc;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.ku&&0!=this.ku&&(h+=this.ku),ym.yb()?a.left=Math.floor(h)+"px":a.right=
Math.floor(h)+"px";else{var l=this.f(),e=this.Rx,f=hn(this,d,l.getHalign(),f,e,0),g=gn(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.Fi=function(){this.fB().style.display="none"};k.oc=function(a){return this.gM("db",a)};function Am(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 Dm(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 Cm(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 Bm(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 ym.R4(d,a)};ym.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};ym.ugb=function(a){a=q.b.ca(a);var b=a.id;b||(b=a.parentNode.id);a=b.substring(0,b.indexOf("::"));Vm(A.c.m(a).o())};ym.Pka=function(a){a=q.b.ca(a);var b=a.id;b||(b=a.parentNode.id);a=b.substring(0,b.indexOf("::"));Wm(A.c.m(a).o())};
ym.du=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.Qc&&(b*=-1),Sm(d,b,!1));q.b.Ea(a)};function Sm(a,b,d){if(null!=a.f())if(!d&&30>=Math.abs(b))0<b?Wm(a):0!=b&&Vm(a);else{var e=a.oc(),e=a.Qc?e.offsetHeight:e.offsetWidth;null!=a.K6&&(b+=a.K6);d&&Math.abs(b/e)<a.Ena?a.K6=b:(a.K6=null,0<b?Wm(a):0!=b&&Vm(a))}}
ym.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 Tm(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,ym.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,ym.Xa)}return[f,d]}
ym.prototype.ywa=function(a,b,d){this.RLa||(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,ln(this,b.Db,!1),Pm(this,d)))};r.a("AdfDhtmlCarouselPeer.prototype.ComponentCurrentItemKeyChanged",{ywa:ym.prototype.ywa});
function cn(a,b,d){var e=!1,f=a.f(),g=a.od,h=new zb(f,g,b);d||kn(a,g,h);h.F();h.Aa()||(h.Vb(f),a.od=b,a.RLa=!0,v.l.finer("Update current item key to:",b),f.setCurrentItemKey(b),a.RLa=!1,Pm(a,b),e=!0);return e}function kn(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 Pm(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=Bm(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);pn(a,d)}}ym.prototype.K_=function(a){if(null!=this.V7&&this.V7==a){this.V7=null;var b=this.f().g(),b=Bm(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}pn(this,a)}mn(this)};
r.a("AdfDhtmlCarouselPeer.prototype.CarouselItemInitialized",{K_:ym.prototype.K_});function pn(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 mn(a){function b(){b.Joa.yub()}a.Dna&&(window.clearTimeout(a.Dna),delete a.Dna);var d=A.c.Y();b.Joa=a;a.Dna=d.setTimeout(b,1)}ym.prototype._delRes=function(){qn(this,this.f())};k=ym.prototype;k.Ne=function(a){for(var b=q.oa(),d,e=this.i(),f=ym.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.Ne(q.b.ca(a))||b.preventDefault(a)};
k.Rf=function(a,b){for(var d=null,e=this.oc().firstChild,f=e.childNodes,g=Nm(e),h=g;h<f.length&&!d;h++){var l=f[h],n=l.getAttribute(ym.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(!ym.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,ym.Xa),cn(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(ym.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=Bm(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.PRa(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.Br&&(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.Ne(d)))if(d=ym.yb(),e==w.ab||e==w.ub)this.Qc?a.shiftKey?Ym(this,0):Vm(this):d?a.shiftKey?Ym(this,1):Wm(this):a.shiftKey?Ym(this,0):Vm(this),propogate=!1;else if(e==w.Ra||e==w.vb)this.Qc?a.shiftKey?Ym(this,1):Wm(this):d?(a.shiftKey?Ym(this,0):Vm(this),f=!1):a.shiftKey?Ym(this,1):Wm(this),propogate=!1;f||b.Ea(a)}};
r.a("AdfDhtmlCarouselPeer.prototype.HandleComponentKeyDown",{ma:ym.prototype.ma});ym.prototype.kx=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,ym.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,ym.Xa);if(null==l)break;d.Eb=l;d.Db=h}break}}return d}};
ym.prototype.nx=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,ym.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,ym.Xa);if(null==l)break;e.Eb=l;e.Db=h}else 0==b.eb(d.firstChild,"_startRow",-1)&&(e.g$=!0);break}}return e}};ym.prototype.$la=function(a){return"immediate"==a.getContentDelivery()};ym.yb=function(){return A.c.Ka().La()};
ym.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};ym.Vf=function(a,b){a&&a.style.cursor!=b&&(a.style.cursor=b)};function ln(a,b,d){d||a.Zx(!0);d=a.Rx;var e=a.f(),f=e.getHalign(),e=e.getValign(),g=a.Qc;rn(a,b,d,0,3E3,g,e,f,1,!1);sn(a,b,g,e,f,!0);sn(a,b,g,e,f,!1);Hm(a)}
function qn(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 Xm(a,b){if(!a.f().getDisabled()){var d=a.pe;-1==d&&(d=a.hf+ym.KS);Hm(a,Math.min(Math.max(0,b*(d-1)),d-1))}}
function sn(a,b,d,e,f,g){var h=a.Rx,l=3E3;b=g?C.lc(b):C.zb(b);if("oneByOne"==a.un)for(l=g?-h:h;null!=b;)rn(a,b,h,l,2999,d,e,f,1,!0),b=g?C.lc(b):C.zb(b);else for(var n=a.wga,t=a.rga,y=0,z=100;null!=b;)y+=h*t,h=Math.round(h*n),z*=n,rn(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 fn(a,b){var d=a.wga,e=a.rga,f=0,g=a.Rx,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{Cu:f,eo:g,Zob:Math.max(1,100-h)}}
function rn(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=gn(a,g,h,z,d,e)+"px",B.left=hn(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 hn(a,b,d,e,f,g){if(0!=g&&"oneByOne"==a.un)return b?0:0>g?-a.Rx:a.Rx;b?a="start"==d?ym.yb()?e-f-a.X7:a.X7:"end"==d?ym.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,ym.yb()&&(a=e-f-a));return Math.round(a)}
function gn(a,b,d,e,f,g){if(0!=g&&"oneByOne"==a.un)return b?0>g?-a.Rx:a.Rx: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.CLa:"bottom"==d?e-f-a.CLa:.5*(e-f);return Math.round(b)}
function nn(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+")"),Om(a.f(),b,g),e=Math.min(e,b+g-1),b=d.childNodes[e-b],d=f.getAttribute(b,ym.Xa),cn(a,d,!0),ln(a,b,!1),mn(a)):v.l.severe("No items in the data block")}
function on(a,b,d,e){b=b.firstChild;var f=d.childNodes.length,g=Jm(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.Zx(!0,n.Db);Em(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=Lm(b);b.insertBefore(t,K)}else b.appendChild(t);K=fn(a,l);rn(a,t,K.eo,e?-K.Cu:K.Cu,--F,a.Qc,B,z,K.Zob,!0);h.Ia(t);l++}e&&(b.Ca-=
f);g+=f;b.Ub=g;Om(y,b.Ca,g);ln(a,n.Db,!1);mn(a)}}
function Hm(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+ym.KS,f=Math.max(1,f-1),g=b/f;a.AF||(a.lja=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.Ena=1/f);var e=a.Qc,h=d[e?"offsetHeight":"offsetWidth"],f=e?(1-b/f)*(g.offsetHeight-h):ym.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=Cm(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.Qc?
(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=ym.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 Um(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.Zx(!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.Zx(!1)}l=a.wga;d=a.rga;var t=a.xU,y=a.uF,z=a.Rx,B=a.Qc,F=a.f(),K=F.getHalign(),P=F.getValign(),Q=[],da,ba=0,ta=0,Ha="oneByOne"==a.un;if(!Ha&&(ba=hn(a,B,K,t,z,0),ta=gn(a,B,P,y,z,0),"hover"==a.Xfa)){var F=F.g(),Eb=null;"small"==a.Fc||"compact"==a.Fc?(F=a.i(),Eb=Am(a,F)):Eb=Bm(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&&Hm(a);for(var Ya=C.lc(b),h=0,ba=z,ta=100,F=3E3,Lb=0,Eb=ym.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:hn(a,B,K,t,ba,-h)-da,offsetTop:gn(a,B,P,y,ba,-h)-Kc,width:z,height:z}}}else fb.zIndex=--F,da={element:Ya,Cb:{offsetLeft:hn(a,B,K,t,ba,-h),offsetTop:gn(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=tn(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:hn(a,B,K,t,ba,h)-da,offsetTop:gn(a,B,P,y,ba,h)-
Kc,width:z,height:z}}):(fb.zIndex=--F,da={element:Ya,Cb:{offsetLeft:hn(a,B,K,t,ba,h),offsetTop:gn(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<ym.l2a&&(da=fb.parentNode,da=da.Ca+Jm(da)+Lb,Kc=a.pe,-1==Kc||da<Kc))Ya=null,a.aO&&(ta*=
l,Ya=Math.max(1,100-ta)),Ya=tn(a,fb,!0,Ya),++Lb,Ha&&(Ya=null);a.ajb=ym.hG(b);a.Be=oj(3,null==f?a.UT:a.Gna,Q,null,ym.Ymb,a,null)}
function tn(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}ym.hG=function(a){return null==q.b.getAttribute(a,ym.Xa)};function Em(a){a=a.oc().firstChild;if(null!=a){a=a.childNodes;for(var b=a.length-1;0<=b;b--){var d=a[b];ym.hG(d)&&d.parentNode.removeChild(d)}}}
ym.prototype.Zx=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&&ln(this,d,!0)}};ym.Ymb=function(a){a.Be=null;if(!a.ajb){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")}qn(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 Vm(a){var b=a.f();if(null!=b&&!b.getDisabled()){var b=a.od,d=a.nx(b);if(d.Db&&d.Eb)a.Yt(),a.cm&&window.clearTimeout(a.cm),cn(a,d.Eb)&&Um(a,d.Db,b,!0);else{var d=Zm(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 Wm(a){var b=a.f();if(null!=b&&!b.getDisabled()){var b=a.od,d=a.kx(b);if(d.Db&&d.Eb)a.Yt(),a.cm&&window.clearTimeout(a.cm),cn(a,d.Eb)&&Um(a,d.Db,b,!0);else{var d=Zm(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 bn(a){if(null!=a.lja)return a.lja;u.assert(!1,"Illegal state; currentPercent is not known: "+a.lja)}
function Ym(a,b,d){if(!a.f().getDisabled()){var e=a.oc(),f=e.firstChild,g=f.childNodes,h=a.pe,l=f.Ca,n=Jm(f);-1==h&&(h=a.hf+ym.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.Yt(),a.cm&&window.clearTimeout(a.cm),d=Nm(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,ym.Xa),l=!0,a.od!=g&&null!=g&&(y=a.od,cn(a,g)&&(l=
!1,Um(a,b,y,!0))),l&&(a.Zx(!0),Em(a),a.Fi(),(g=a.Rf(a.od,!0))&&ln(a,g.Db,!0))):a.xM(e,y,!0,!0)}}function Om(a,b,d){a.setProperty("rows",d,!1,G.ud);a.setProperty("first",b,!1,G.ud)}ym.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:ym.prototype.Od});
ym.prototype.Sd=function(a,b){var d=a.g(),e=un(this,b);return e?d+":"+e:null};r.a("AdfDhtmlCarouselPeer.prototype.convertLocatorToClientId",{Sd:ym.prototype.Sd});function un(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.Mi(f,1,b-g).getAttribute(ym.Xa)}return null}ym.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:ym.prototype.de});
ym.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 un(this,a)};r.a("AdfDhtmlCarouselPeer.prototype.getRowKey",{ie:ym.prototype.ie});
ym.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)wn(b);else{var e=this.oc(),d=e.firstChild,f=d.Ca,g=Jm(d);a>=f&&a<f+g?(this.Yt(),this.cm&&window.clearTimeout(this.cm),e=Nm(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,ym.Xa),e=
this.od,cn(this,f)?Um(this,d,e,!0):(this.Zx(!0),Em(this),this.Fi(),(d=this.Rf(this.od,!0))&&ln(this,d.Db,!0)),wn(b)):(this.xM(e,a,!0,!0),null!=b&&(this.hOa=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:ym.prototype.sg});function wn(a){a&&(u.Ja(a),a())}
ym.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.hOa,this.hOa=null,wn(a))};