(function(a){amx.registerRenderers("amx",{carouselItem:{create:function(b){n.initClass(this,"ImplicitAmxCarouselItemRenderer");var e=d(b.getAttribute("text"),""),g=d(b.getAttribute("shortDesc"),""),h=document.createElement("div");h.className="amx-carouselItem";h.setAttribute("title",g);h.setAttribute("data-amxText",e);a(h).append(b.renderSubNodes());return h},init:function(a){var b=a.firstChild;b&&1==b.nodeType&&1==a.childNodes.length&&(a=b.style,"IMG"==b.tagName||"IFRAME"==b.tagName?(a.width="100%",
a.height="100%"):"A"==b.tagName?(""==b.getAttribute("href")&&(b.href="javascript:;"),a.width="100%",a.height="100%",a=b.firstChild,1==a.nodeType&&1==b.childNodes.length&&(b=a.style,"IMG"==a.tagName||"IFRAME"==a.tagName?(b.width="100%",b.height="100%"):(b.position="absolute",b.top="0px",b.left="0px",b.right="0px",b.bottom="0px"))):(a.position="absolute",a.top="0px",a.left="0px",a.right="0px",a.bottom="0px"))}},carousel:{createChildrenNodes:function(a){var b=Infinity,d=a.getAttribute("fetchSize");null!=
d&&adf.mf.internal.amx.isFiniteNumber(parseInt(d,10))&&(b=parseInt(d,10),0>b?b=Infinity:0==b&&(b=25));a.setAttributeResolvedValue("fetchSize",b);!1==a.isAttributeDefined("maxRows")?(maxRows=b,a.setAttributeResolvedValue("maxRows",b)):(maxRows=parseInt(a.getAttribute("maxRows"),10),isNaN(maxRows)&&(maxRows=b,a.setAttributeResolvedValue("maxRows",b)));var b=a.getTag().getChildFacetTag("nodeStamp"),e;if(!adf.mf.environment.profile.dtMode&&(AmxRcfAssert.assert(null!=b,"Illegal state detected -- nodeStamp facet missing from carousel"),
e=a.getAttribute("value"),void 0===e))return a.setState(adf.mf.api.amx.AmxNodeStates.INITIAL),!0;if(null==e&&!adf.mf.environment.profile.dtMode||null==b)return null!=e&&AmxRcfAssert.assert(null!=b,"Illegal state detected -- nodeStamp facet missing from carousel"),!1;b=b.getChildren("http://xmlns.oracle.com/adf/mf/amx","carouselItem");b=0==b.length?null:b[0];AmxRcfAssert.assert(null!=b,"Illegal state detected -- carouselItem in nodeStamp facet missing from carousel");adf.mf.environment.profile.dtMode&&
(e=[{},{},{}],a.setAttributeResolvedValue("value",e));d=adf.mf.api.amx.createIterator(e);if(d.getTotalCount()>d.getAvailableCount())return adf.mf.api.amx.showLoadingIndicator(),adf.mf.api.amx.bulkLoadProviders(e,0,-1,function(){try{var b=new adf.mf.internal.amx.AmxNodeUpdateArguments;b.setAffectedAttribute(a,"value");adf.mf.internal.amx.markNodeForUpdate(b)}finally{adf.mf.api.amx.hideLoadingIndicator()}},function(){AmxRcfLogger.LOGGER.severe("*** Unexpected carousel item data load problem");adf.mf.api.amx.hideLoadingIndicator()}),
a.setState(adf.mf.api.amx.AmxNodeStates.WAITING_ON_EL_EVALUATION),!0;for(e=a.getAttribute("var");d.hasNext();){var g=d.next();adf.mf.el.addVariable(e,g);g=b.buildAmxNode(a,d.getRowKey());a.addChild(g,"nodeStamp");adf.mf.el.removeVariable(e)}a.setState(adf.mf.api.amx.AmxNodeStates.ABLE_TO_RENDER);return!0},updateChildren:function(a,b){return b.hasChanged("value")?adf.mf.api.amx.AmxNodeChangeResult.REPLACE:adf.mf.api.amx.AmxNodeChangeResult.REFRESH},visitChildren:function(a,b,d){var e=a.getAttribute("value");
if(null==e)return!1;for(var e=adf.mf.api.amx.createIterator(e),g=a.getAttribute("var");e.hasNext();){var h=e.next();adf.mf.el.addVariable(g,h);try{if(a.visitStampedChildren(e.getRowKey(),["nodeStamp"],null,b,d))return!0}finally{adf.mf.el.removeVariable(g)}}return!1},create:function(a,g){n.initClass(this,"ImplicitAmxCarouselRenderer");try{var o=e(a.getAttribute("orientation"),"horizontal","vertical"),q=e(a.getAttribute("displayItems"),"circular","oneByOne"),s=e(a.getAttribute("controlArea"),"full",
"small","compact","none"),t=b(a.getAttribute("auxiliaryOffset"),0.45),A=e(a.getAttribute("auxiliaryPopOut"),"off","hover"),F=b(a.getAttribute("auxiliaryScale"),0.8),C=e(a.getAttribute("halign"),"center","start","end"),E=e(a.getAttribute("valign"),"middle","top","bottom"),I=d(a.getAttribute("shortDesc"),""),G,L=a.getAttribute("disabled");G="true"===L||!0===L?!0:"false"===L||!1===L?!1:!1;var B=d(g,amx.uuid()),D=a.getAttribute("currentItemKey");if(null==D){var J=adf.mf.api.amx.getClientState(B);null!=
J&&(D=J.currentItemKey)}var J="vertical"==o,L="oneByOne"==q,H=!1,N=!1,P=!1;"small"==s?H=!0:"compact"==s?N=!0:"none"==s&&(P=!0);var K=document.createElement("div");K.setAttribute("tabindex","0");K.setAttribute("title",I);K.className=J?_VERTICAL_ROOT_STYLECLASSES.join(" "):_CAROUSEL_CLASS;I=K;if(H||N){var O=document.createElement("div");O.setAttribute("id",AmxRcfRichUIPeer.createSubId(B,"ca"));O.className=L?J?H?_VERTICAL_ONE_BY_ONE_SMALL_CONTROL_AREA_STYLECLASSES.join(" "):N?_VERTICAL_ONE_BY_ONE_COMPACT_CONTROL_AREA_STYLECLASSES.join(" "):
_VERTICAL_ONE_BY_ONE_CONTROL_AREA_STYLECLASSES.join(" "):H?_HORIZONTAL_ONE_BY_ONE_SMALL_CONTROL_AREA_STYLECLASSES.join(" "):N?_HORIZONTAL_ONE_BY_ONE_COMPACT_CONTROL_AREA_STYLECLASSES.join(" "):_HORIZONTAL_ONE_BY_ONE_CONTROL_AREA_STYLECLASSES.join(" "):J?H?_VERTICAL_CIRCULAR_SMALL_CONTROL_AREA_STYLECLASSES.join(" "):N?_VERTICAL_CIRCULAR_COMPACT_CONTROL_AREA_STYLECLASSES.join(" "):_VERTICAL_CIRCULAR_CONTROL_AREA_STYLECLASSES.join(" "):H?_HORIZONTAL_CIRCULAR_SMALL_CONTROL_AREA_STYLECLASSES.join(" "):
N?_HORIZONTAL_CIRCULAR_COMPACT_CONTROL_AREA_STYLECLASSES.join(" "):_HORIZONTAL_CIRCULAR_CONTROL_AREA_STYLECLASSES.join(" ");O.appendChild(h(G,J,B,H,N));O.appendChild(m(G,J,B,H,N));K.appendChild(O);I=O}else if(!P){var Q=document.createElement("div");Q.setAttribute("id",AmxRcfRichUIPeer.createSubId(B,"sc"));var M=Q.style;J?AmxRcfPage.PAGE.getLocaleContext().isRightToLeft()?(M.position="absolute",M.top="0px",M.bottom="0px",M.left="0px"):(M.position="absolute",M.top="0px",M.bottom="0px",M.right="0px"):
(M.position="absolute",M.left="0px",M.bottom="0px",M.right="0px");M.overflow="hidden";Q.appendChild(h(G,J,B,H,N));Q.appendChild(k(G,J,B));Q.appendChild(m(G,J,B,H,N));I.appendChild(Q)}if(!N&&!P){var T=document.createElement("div");T.setAttribute("role","presentation");T.setAttribute("aria-hidden","true");T.setAttribute("id",AmxRcfRichUIPeer.createSubId(B,"si"));T.className=J?H?_VERTICAL_SMALL_SPIN_INFO_STYLECLASSES.join(" "):N?_VERTICAL_COMPACT_SPIN_INFO_STYLECLASSES.join(" "):_VERTICAL_FULL_SPIN_INFO_STYLECLASSES.join(" "):
H?_HORIZONTAL_SMALL_SPIN_INFO_STYLECLASSES.join(" "):N?_HORIZONTAL_COMPACT_SPIN_INFO_STYLECLASSES.join(" "):_HORIZONTAL_FULL_SPIN_INFO_STYLECLASSES.join(" ");T.appendChild(document.createTextNode("\u00a0"));I.appendChild(T)}var aa=document.createElement("div");aa.setAttribute("id",AmxRcfRichUIPeer.createSubId(B,"it"));aa.className=L?J?H?_VERTICAL_ONE_BY_ONE_SMALL_ITEM_TEXT_STYLECLASSES.join(" "):N?_VERTICAL_ONE_BY_ONE_COMPACT_ITEM_TEXT_STYLECLASSES.join(" "):_VERTICAL_ONE_BY_ONE_ITEM_TEXT_STYLECLASSES.join(" "):
H?_HORIZONTAL_ONE_BY_ONE_SMALL_ITEM_TEXT_STYLECLASSES.join(" "):N?_HORIZONTAL_ONE_BY_ONE_COMPACT_ITEM_TEXT_STYLECLASSES.join(" "):_HORIZONTAL_ONE_BY_ONE_ITEM_TEXT_STYLECLASSES.join(" "):J?H?_VERTICAL_CIRCULAR_SMALL_ITEM_TEXT_STYLECLASSES.join(" "):N?_VERTICAL_CIRCULAR_COMPACT_ITEM_TEXT_STYLECLASSES.join(" "):_VERTICAL_CIRCULAR_ITEM_TEXT_STYLECLASSES.join(" "):H?_HORIZONTAL_CIRCULAR_SMALL_ITEM_TEXT_STYLECLASSES.join(" "):N?_HORIZONTAL_CIRCULAR_COMPACT_ITEM_TEXT_STYLECLASSES.join(" "):_HORIZONTAL_CIRCULAR_ITEM_TEXT_STYLECLASSES.join(" ");
aa.appendChild(document.createTextNode("\u00a0"));I.appendChild(aa);var ba=document.createElement("div");ba.setAttribute("id",AmxRcfRichUIPeer.createSubId(B,"db"));ba.className=L?_ONE_BY_ONE_VIEWPORT_STYLECLASSES.join(" "):_CIRCULAR_VIEWPORT_STYLECLASSES.join(" ");K.appendChild(ba);var S=document.createElement("div");S.setAttribute("data-amxRowCount","0");ba.appendChild(S);var O=null,Z;Z=a.getAttribute("maxRows");var U=a.getAttribute("value");if(null!=U)for(var V=adf.mf.api.amx.createIterator(U),
U=0;U<Z&&V.hasNext();++U){var X=V.next(),W=V.getRowKey(),Q=void 0;adf.mf.el.addVariable(a.getAttribute("var"),X);null==D&&(D=W);try{var R=a.renderSubNodes("nodeStamp",W);null!=R&&(Q=R.get(0))}catch(ia){AmxRcfLogger.LOGGER.severe("*** Unexpected carousel item create problem:"),AmxRcfLogger.LOGGER.severe(ia)}if(null!=Q){var Y=document.createElement("div");Y.className=L?_ONE_BY_ONE_ITEM_STYLECLASSES.join(" "):_CIRCULAR_ITEM_STYLECLASSES.join(" ");Y.setAttribute("aria-hidden","true");Y.setAttribute("data-amxRk",
W);var ja=parseInt(S.getAttribute("data-amxRowCount"),10);S.setAttribute("data-amxRowCount",++ja);Y.appendChild(Q);var ca=document.createElement("div");ca.className=_CAROUSEL_ITEM_OVERLAY_CLASS;var da=Q.getAttribute("title");da&&ca.setAttribute("title",da);ca.appendChild(document.createTextNode("\u00a0"));Y.appendChild(ca);if(O){var ea=O.nextSibling;ea?O.parentNode.insertBefore(Y,ea):O.parentNode.appendChild(Y)}else S.appendChild(Y);O=Y;adf.mf.el.removeVariable(a.getAttribute("var"))}}var fa=S.getAttribute("data-amxRowCount");
AmxRcfLogger.LOGGER.finer("Carousel has "+fa+" rows");null==D&&(D="0");S.setAttribute("data-amxCurrentItemKey",D);AmxRcfLogger.LOGGER.info("Initial currentItemKey = "+D);if(0==fa){AmxRcfLogger.LOGGER.finer("Carousel has no rows");var ka=adf.mf.resource.getInfoString("AMXInfoBundle","amx_carousel_MSG_NO_DATA"),ga=document.createElement("span");ga.appendChild(document.createTextNode(ka));S.appendChild(ga)}else S.setAttribute("data-amxStartRow","0");var la=a.getAttribute("fetchSize"),ma=new AmxRcfRichCarousel(a,
t,A,F,B,"immediate",s,D,G,q,la,C,o,E),ha=K.id;if(null==ha||0==ha.length)K.id=B;this._peer=new AmxRcfCarouselPeer(ma,K);return K}catch(na){return AmxRcfLogger.LOGGER.severe("*** Unexpected carousel create problem:"),AmxRcfLogger.LOGGER.severe(na),null}},init:function(b){var d=this._peer,e=d.getDomElement(),g=d.getComponent().getClientId();e.id!=g&&(AmxRcfLogger.LOGGER.severe('Illegal mismatch between the root DOM element and the carousel component detected: "'+e.id+'" != "'+g+"\" (updating the DOM's ID instead)."),
e.id=g);AmxRcfLogger.LOGGER.isLoggable(AmxRcfLogger.FINE)&&!adf.mf.internal.amx.isAncestor(document.body,e)&&(AmxRcfLogger.LOGGER.fine("Carousel DOM not connected to document body during AMX init call."),AmxRcfLogger.LOGGER.fine(e),AmxRcfLogger.LOGGER.fine(e.parentNode),AmxRcfLogger.LOGGER.fine(b),AmxRcfLogger.LOGGER.fine(b.offsetWidth));d.InitDomElement();d.ResizeNotify(null,null,b.offsetWidth,b.offsetHeight);a(window).resize(d,this._handleResize);a(b).resize(d,this._handleResize)},_handleResize:function(a){a=
a.data;AmxRcfAssert.assertPrototype(a,AmxRcfCarouselPeer);var b=a.getDomElement();AmxRcfAssert.assertDomElement(b);if(adf.mf.internal.amx.isAncestor(document.body,b)){var d=b.offsetWidth,b=b.offsetHeight;if(!a.HasInitialSize()||null==a._lastResizeWidth||null==a._lastResizeHeight||d!=a._lastResizeWidth||b!=a._lastResizeHeight)a._lastResizeWidth=d,a._lastResizeHeight=b,a.ResizeNotify(null,null,d,b)}else AmxRcfLogger.LOGGER.info("Resize event handler called on a disconnected element:"),AmxRcfLogger.LOGGER.info(b)}}});
try{var b=function(a,b){var d=parseFloat(a);return isNaN(d)?b:d},d=function(a,b){return null==a?b:a},e=function(){var a=arguments.length;AmxRcfAssert.assert(2<=a,"Not enough _ensureValidString arguments");for(var b=arguments[0],d=1;d<a;d++)if(b==arguments[d])return b;return arguments[1]},g=function(a,b,d,e,g,h,k){h=document.createElement("a");h.setAttribute("id",e);h.setAttribute("href",b);a?h.setAttribute("onclick","this.focus();return false"):(h.setAttribute("tabIndex",-1),h.setAttribute("aria-disabled",
!0));h.setAttribute("role",k);h.setAttribute("title",g);h.className=d.join(" ");return h},h=function(a,b,d,e,h){return g(!a,"#",a?b?e?_VERTICAL_SMALL_SPIN_PREVIOUS_DISABLED_ICON_STYLES:h?_VERTICAL_COMPACT_SPIN_PREVIOUS_DISABLED_ICON_STYLES:_VERTICAL_SPIN_PREVIOUS_DISABLED_ICON_STYLES:e?_HORIZONTAL_SMALL_SPIN_PREVIOUS_DISABLED_ICON_STYLES:h?_HORIZONTAL_COMPACT_SPIN_PREVIOUS_DISABLED_ICON_STYLES:_HORIZONTAL_SPIN_PREVIOUS_DISABLED_ICON_STYLES:b?e?_VERTICAL_SMALL_SPIN_PREVIOUS_ICON_STYLES:h?_VERTICAL_COMPACT_SPIN_PREVIOUS_ICON_STYLES:
_VERTICAL_SPIN_PREVIOUS_ICON_STYLES:e?_HORIZONTAL_SMALL_SPIN_PREVIOUS_ICON_STYLES:h?_HORIZONTAL_COMPACT_SPIN_PREVIOUS_ICON_STYLES:_HORIZONTAL_SPIN_PREVIOUS_ICON_STYLES,AmxRcfRichUIPeer.createSubId(d,"sp"),adf.mf.resource.getInfoString("AMXInfoBundle","amx_carousel_TIP_SPIN_TO_PREVIOUS_ITEM"),b?_CAROUSEL_SPIN_V_PREVIOUS_ICON_NAME:_CAROUSEL_SPIN_H_PREVIOUS_ICON_NAME,"button")},k=function(a,b,d){var e=document.createElement("div");e.setAttribute("id",AmxRcfRichUIPeer.createSubId(d,"sb"));var h;a?b?(h=
_VERTICAL_SPIN_THUMB_DISABLED_ICON_STYLES,e.className=_VERTICAL_SPIN_BAR_DISABLED_STYLECLASSES.join(" ")):(h=_HORIZONTAL_SPIN_THUMB_DISABLED_ICON_STYLES,e.className=_HORIZONTAL_SPIN_BAR_DISABLED_STYLECLASSES.join(" ")):b?(h=_VERTICAL_SPIN_THUMB_ICON_STYLES,e.className=_VERTICAL_SPIN_BAR_STYLECLASSES.join(" ")):(h=_HORIZONTAL_SPIN_THUMB_ICON_STYLES,e.className=_HORIZONTAL_SPIN_BAR_STYLECLASSES.join(" "));var k=document.createElement("div");k.setAttribute("id",AmxRcfRichUIPeer.createSubId(d,"st"));
k.className=b?_CAROUSEL_SPIN_V_THUMB_CONTAINER_NAME:_CAROUSEL_SPIN_H_THUMB_CONTAINER_NAME;a=g(!a,"#",h,AmxRcfRichUIPeer.createSubId(d,"sti"),adf.mf.resource.getInfoString("AMXInfoBundle","amx_carousel_TIP_SPIN_THUMB"),b?_CAROUSEL_SPIN_V_THUMB_ICON_NAME:_CAROUSEL_SPIN_H_THUMB_ICON_NAME,"presentation");a.setAttribute("aria-hidden","true");k.appendChild(a);e.appendChild(k);return e},m=function(a,b,d,e,h){return g(!a,"#",a?b?e?_VERTICAL_SMALL_SPIN_NEXT_DISABLED_ICON_STYLES:h?_VERTICAL_COMPACT_SPIN_NEXT_DISABLED_ICON_STYLES:
_VERTICAL_SPIN_NEXT_DISABLED_ICON_STYLES:e?_HORIZONTAL_SMALL_SPIN_NEXT_DISABLED_ICON_STYLES:h?_HORIZONTAL_COMPACT_SPIN_NEXT_DISABLED_ICON_STYLES:_HORIZONTAL_SPIN_NEXT_DISABLED_ICON_STYLES:b?e?_VERTICAL_SMALL_SPIN_NEXT_ICON_STYLES:h?_VERTICAL_COMPACT_SPIN_NEXT_ICON_STYLES:_VERTICAL_SPIN_NEXT_ICON_STYLES:e?_HORIZONTAL_SMALL_SPIN_NEXT_ICON_STYLES:h?_HORIZONTAL_COMPACT_SPIN_NEXT_ICON_STYLES:_HORIZONTAL_SPIN_NEXT_ICON_STYLES,AmxRcfRichUIPeer.createSubId(d,"sn"),adf.mf.resource.getInfoString("AMXInfoBundle",
"amx_carousel_TIP_SPIN_TO_NEXT_ITEM"),b?_CAROUSEL_SPIN_V_NEXT_ICON_NAME:_CAROUSEL_SPIN_H_NEXT_ICON_NAME,"button")};_CAROUSEL_CLASS="amx-carousel";_CAROUSEL_SPIN_ANIMATION_DURATION="amx-carousel-tr-spin-animation-duration";_CAROUSEL_POP_OUT_ANIMATION_DURATION="amx-carousel-tr-pop-out-animation-duration";_CAROUSEL_OVERLAY_OPACITY="amx-carousel-tr-overlay-opacity";_CAROUSEL_VIEWPORT_CLASS="amx-carousel_view";_CAROUSEL_ITEM_CLASS="amx-carousel_item";_CAROUSEL_ITEM_OVERLAY_CLASS="amx-carousel_item-overlay";
_CAROUSEL_SPIN_H_PREVIOUS_ICON_NAME="amx-carousel_spin-h-previous-icon";_CAROUSEL_SPIN_H_PREVIOUS_ICON_STYLE_NAME="amx-carousel_spin-h-previous-icon-style";_CAROUSEL_SPIN_H_THUMB_CONTAINER_NAME="amx-carousel_spin-h-thumb-container";_CAROUSEL_SPIN_H_THUMB_ICON_NAME="amx-carousel_spin-h-thumb-icon";_CAROUSEL_SPIN_H_THUMB_ICON_STYLE_NAME="amx-carousel_spin-h-thumb-icon-style";_CAROUSEL_SPIN_H_NEXT_ICON_NAME="amx-carousel_spin-h-next-icon";_CAROUSEL_SPIN_H_NEXT_ICON_STYLE_NAME="amx-carousel_spin-h-next-icon-style";
_CAROUSEL_SPIN_V_PREVIOUS_ICON_NAME="amx-carousel_spin-v-previous-icon";_CAROUSEL_SPIN_V_PREVIOUS_ICON_STYLE_NAME="amx-carousel_spin-v-previous-icon-style";_CAROUSEL_SPIN_V_THUMB_CONTAINER_NAME="amx-carousel_spin-v-thumb-container";_CAROUSEL_SPIN_V_THUMB_ICON_NAME="amx-carousel_spin-v-thumb-icon";_CAROUSEL_SPIN_V_THUMB_ICON_STYLE_NAME="amx-carousel_spin-v-thumb-icon-style";_CAROUSEL_SPIN_V_NEXT_ICON_NAME="amx-carousel_spin-v-next-icon";_CAROUSEL_SPIN_V_NEXT_ICON_STYLE_NAME="amx-carousel_spin-v-next-icon-style";
_CAROUSEL_SPIN_BAR_CLASS="amx-carousel_spin-bar";_CAROUSEL_SPIN_INFO_CLASS="amx-carousel_spin-info";_CAROUSEL_ITEM_TEXT_CLASS="amx-carousel_item-text";_CAROUSEL_CONTROL_AREA_CLASS="amx-carousel_control-area";_DISABLED_STATE="p_AMXDisabled";_FULL_DISPLAY_MODE_STATE="p_AMXFull";_COMPACT_DISPLAY_MODE_STATE="p_AMXCompact";_SMALL_DISPLAY_MODE_STATE="p_AMXSmall";_CIRCULAR_STATE="p_AMXCircular";_ONE_BY_ONE_STATE="p_AMXOneByOne";_VERTICAL_LAYOUT_STATE="p_AMXVertical";_HORIZONTAL_SPIN_PREVIOUS_ICON_STYLES=
[_CAROUSEL_SPIN_H_PREVIOUS_ICON_STYLE_NAME,_FULL_DISPLAY_MODE_STATE];_HORIZONTAL_SMALL_SPIN_PREVIOUS_ICON_STYLES=[_CAROUSEL_SPIN_H_PREVIOUS_ICON_STYLE_NAME,_SMALL_DISPLAY_MODE_STATE];_HORIZONTAL_COMPACT_SPIN_PREVIOUS_ICON_STYLES=[_CAROUSEL_SPIN_H_PREVIOUS_ICON_STYLE_NAME,_COMPACT_DISPLAY_MODE_STATE];_HORIZONTAL_SPIN_BAR_STYLECLASSES=[_CAROUSEL_SPIN_BAR_CLASS];_HORIZONTAL_SPIN_THUMB_ICON_STYLES=[_CAROUSEL_SPIN_H_THUMB_ICON_STYLE_NAME];_HORIZONTAL_SPIN_NEXT_ICON_STYLES=[_CAROUSEL_SPIN_H_NEXT_ICON_STYLE_NAME,
_FULL_DISPLAY_MODE_STATE];_HORIZONTAL_SMALL_SPIN_NEXT_ICON_STYLES=[_CAROUSEL_SPIN_H_NEXT_ICON_STYLE_NAME,_SMALL_DISPLAY_MODE_STATE];_HORIZONTAL_COMPACT_SPIN_NEXT_ICON_STYLES=[_CAROUSEL_SPIN_H_NEXT_ICON_STYLE_NAME,_COMPACT_DISPLAY_MODE_STATE];_HORIZONTAL_SPIN_PREVIOUS_DISABLED_ICON_STYLES=[_CAROUSEL_SPIN_H_PREVIOUS_ICON_STYLE_NAME,_FULL_DISPLAY_MODE_STATE,_DISABLED_STATE];_HORIZONTAL_SMALL_SPIN_PREVIOUS_DISABLED_ICON_STYLES=[_CAROUSEL_SPIN_H_PREVIOUS_ICON_STYLE_NAME,_SMALL_DISPLAY_MODE_STATE,_DISABLED_STATE];
_HORIZONTAL_COMPACT_SPIN_PREVIOUS_DISABLED_ICON_STYLES=[_CAROUSEL_SPIN_H_PREVIOUS_ICON_STYLE_NAME,_COMPACT_DISPLAY_MODE_STATE,_DISABLED_STATE];_HORIZONTAL_SPIN_BAR_DISABLED_STYLECLASSES=[_CAROUSEL_SPIN_BAR_CLASS,_DISABLED_STATE];_HORIZONTAL_SPIN_THUMB_DISABLED_ICON_STYLES=[_CAROUSEL_SPIN_H_THUMB_ICON_STYLE_NAME,_DISABLED_STATE];_HORIZONTAL_SPIN_NEXT_DISABLED_ICON_STYLES=[_CAROUSEL_SPIN_H_NEXT_ICON_STYLE_NAME,_FULL_DISPLAY_MODE_STATE,_DISABLED_STATE];_HORIZONTAL_SMALL_SPIN_NEXT_DISABLED_ICON_STYLES=
[_CAROUSEL_SPIN_H_NEXT_ICON_STYLE_NAME,_SMALL_DISPLAY_MODE_STATE,_DISABLED_STATE];_HORIZONTAL_COMPACT_SPIN_NEXT_DISABLED_ICON_STYLES=[_CAROUSEL_SPIN_H_NEXT_ICON_STYLE_NAME,_COMPACT_DISPLAY_MODE_STATE,_DISABLED_STATE];_HORIZONTAL_FULL_SPIN_INFO_STYLECLASSES=[_CAROUSEL_SPIN_INFO_CLASS,_FULL_DISPLAY_MODE_STATE];_HORIZONTAL_SMALL_SPIN_INFO_STYLECLASSES=[_CAROUSEL_SPIN_INFO_CLASS,_SMALL_DISPLAY_MODE_STATE];_HORIZONTAL_COMPACT_SPIN_INFO_STYLECLASSES=[_CAROUSEL_SPIN_INFO_CLASS,_COMPACT_DISPLAY_MODE_STATE];
_HORIZONTAL_ONE_BY_ONE_ITEM_TEXT_STYLECLASSES=[_CAROUSEL_ITEM_TEXT_CLASS,_ONE_BY_ONE_STATE];_HORIZONTAL_ONE_BY_ONE_SMALL_ITEM_TEXT_STYLECLASSES=[_CAROUSEL_ITEM_TEXT_CLASS,_SMALL_DISPLAY_MODE_STATE,_ONE_BY_ONE_STATE];_HORIZONTAL_ONE_BY_ONE_COMPACT_ITEM_TEXT_STYLECLASSES=[_CAROUSEL_ITEM_TEXT_CLASS,_COMPACT_DISPLAY_MODE_STATE,_ONE_BY_ONE_STATE];_HORIZONTAL_CIRCULAR_ITEM_TEXT_STYLECLASSES=[_CAROUSEL_ITEM_TEXT_CLASS,_CIRCULAR_STATE];_HORIZONTAL_CIRCULAR_SMALL_ITEM_TEXT_STYLECLASSES=[_CAROUSEL_ITEM_TEXT_CLASS,
_SMALL_DISPLAY_MODE_STATE,_CIRCULAR_STATE];_HORIZONTAL_CIRCULAR_COMPACT_ITEM_TEXT_STYLECLASSES=[_CAROUSEL_ITEM_TEXT_CLASS,_COMPACT_DISPLAY_MODE_STATE,_CIRCULAR_STATE];_HORIZONTAL_ONE_BY_ONE_CONTROL_AREA_STYLECLASSES=[_CAROUSEL_CONTROL_AREA_CLASS,_FULL_DISPLAY_MODE_STATE,_ONE_BY_ONE_STATE];_HORIZONTAL_ONE_BY_ONE_SMALL_CONTROL_AREA_STYLECLASSES=[_CAROUSEL_CONTROL_AREA_CLASS,_SMALL_DISPLAY_MODE_STATE,_ONE_BY_ONE_STATE];_HORIZONTAL_ONE_BY_ONE_COMPACT_CONTROL_AREA_STYLECLASSES=[_CAROUSEL_CONTROL_AREA_CLASS,
_COMPACT_DISPLAY_MODE_STATE,_ONE_BY_ONE_STATE];_HORIZONTAL_CIRCULAR_CONTROL_AREA_STYLECLASSES=[_CAROUSEL_CONTROL_AREA_CLASS,_FULL_DISPLAY_MODE_STATE,_CIRCULAR_STATE];_HORIZONTAL_CIRCULAR_SMALL_CONTROL_AREA_STYLECLASSES=[_CAROUSEL_CONTROL_AREA_CLASS,_SMALL_DISPLAY_MODE_STATE,_CIRCULAR_STATE];_HORIZONTAL_CIRCULAR_COMPACT_CONTROL_AREA_STYLECLASSES=[_CAROUSEL_CONTROL_AREA_CLASS,_COMPACT_DISPLAY_MODE_STATE,_CIRCULAR_STATE];_VERTICAL_ROOT_STYLECLASSES=[_CAROUSEL_CLASS,_VERTICAL_LAYOUT_STATE];_VERTICAL_SPIN_PREVIOUS_ICON_STYLES=
[_CAROUSEL_SPIN_V_PREVIOUS_ICON_STYLE_NAME,_FULL_DISPLAY_MODE_STATE];_VERTICAL_SMALL_SPIN_PREVIOUS_ICON_STYLES=[_CAROUSEL_SPIN_V_PREVIOUS_ICON_STYLE_NAME,_SMALL_DISPLAY_MODE_STATE];_VERTICAL_COMPACT_SPIN_PREVIOUS_ICON_STYLES=[_CAROUSEL_SPIN_V_PREVIOUS_ICON_STYLE_NAME,_COMPACT_DISPLAY_MODE_STATE];_VERTICAL_SPIN_BAR_STYLECLASSES=[_CAROUSEL_SPIN_BAR_CLASS,_VERTICAL_LAYOUT_STATE];_VERTICAL_SPIN_THUMB_ICON_STYLES=[_CAROUSEL_SPIN_V_THUMB_ICON_STYLE_NAME];_VERTICAL_SPIN_NEXT_ICON_STYLES=[_CAROUSEL_SPIN_V_NEXT_ICON_STYLE_NAME,
_FULL_DISPLAY_MODE_STATE];_VERTICAL_SMALL_SPIN_NEXT_ICON_STYLES=[_CAROUSEL_SPIN_V_NEXT_ICON_STYLE_NAME,_SMALL_DISPLAY_MODE_STATE];_VERTICAL_COMPACT_SPIN_NEXT_ICON_STYLES=[_CAROUSEL_SPIN_V_NEXT_ICON_STYLE_NAME,_COMPACT_DISPLAY_MODE_STATE];_VERTICAL_SPIN_PREVIOUS_DISABLED_ICON_STYLES=[_CAROUSEL_SPIN_V_PREVIOUS_ICON_STYLE_NAME,_FULL_DISPLAY_MODE_STATE,_DISABLED_STATE];_VERTICAL_SMALL_SPIN_PREVIOUS_DISABLED_ICON_STYLES=[_CAROUSEL_SPIN_V_PREVIOUS_ICON_STYLE_NAME,_SMALL_DISPLAY_MODE_STATE,_DISABLED_STATE];
_VERTICAL_COMPACT_SPIN_PREVIOUS_DISABLED_ICON_STYLES=[_CAROUSEL_SPIN_V_PREVIOUS_ICON_STYLE_NAME,_COMPACT_DISPLAY_MODE_STATE,_DISABLED_STATE];_VERTICAL_SPIN_BAR_DISABLED_STYLECLASSES=[_CAROUSEL_SPIN_BAR_CLASS,_VERTICAL_LAYOUT_STATE,_DISABLED_STATE];_VERTICAL_SPIN_THUMB_DISABLED_ICON_STYLES=[_CAROUSEL_SPIN_V_THUMB_ICON_STYLE_NAME,_DISABLED_STATE];_VERTICAL_SPIN_NEXT_DISABLED_ICON_STYLES=[_CAROUSEL_SPIN_V_NEXT_ICON_STYLE_NAME,_FULL_DISPLAY_MODE_STATE,_DISABLED_STATE];_VERTICAL_SMALL_SPIN_NEXT_DISABLED_ICON_STYLES=
[_CAROUSEL_SPIN_V_NEXT_ICON_STYLE_NAME,_SMALL_DISPLAY_MODE_STATE,_DISABLED_STATE];_VERTICAL_COMPACT_SPIN_NEXT_DISABLED_ICON_STYLES=[_CAROUSEL_SPIN_V_NEXT_ICON_STYLE_NAME,_COMPACT_DISPLAY_MODE_STATE,_DISABLED_STATE];_VERTICAL_FULL_SPIN_INFO_STYLECLASSES=[_CAROUSEL_SPIN_INFO_CLASS,_FULL_DISPLAY_MODE_STATE,_VERTICAL_LAYOUT_STATE];_VERTICAL_SMALL_SPIN_INFO_STYLECLASSES=[_CAROUSEL_SPIN_INFO_CLASS,_SMALL_DISPLAY_MODE_STATE,_VERTICAL_LAYOUT_STATE];_VERTICAL_COMPACT_SPIN_INFO_STYLECLASSES=[_CAROUSEL_SPIN_INFO_CLASS,
_COMPACT_DISPLAY_MODE_STATE,_VERTICAL_LAYOUT_STATE];_VERTICAL_ONE_BY_ONE_ITEM_TEXT_STYLECLASSES=[_CAROUSEL_ITEM_TEXT_CLASS,_VERTICAL_LAYOUT_STATE,_ONE_BY_ONE_STATE];_VERTICAL_ONE_BY_ONE_SMALL_ITEM_TEXT_STYLECLASSES=[_CAROUSEL_ITEM_TEXT_CLASS,_SMALL_DISPLAY_MODE_STATE,_VERTICAL_LAYOUT_STATE,_ONE_BY_ONE_STATE];_VERTICAL_ONE_BY_ONE_COMPACT_ITEM_TEXT_STYLECLASSES=[_CAROUSEL_ITEM_TEXT_CLASS,_COMPACT_DISPLAY_MODE_STATE,_VERTICAL_LAYOUT_STATE,_ONE_BY_ONE_STATE];_VERTICAL_CIRCULAR_ITEM_TEXT_STYLECLASSES=
[_CAROUSEL_ITEM_TEXT_CLASS,_VERTICAL_LAYOUT_STATE,_CIRCULAR_STATE];_VERTICAL_CIRCULAR_SMALL_ITEM_TEXT_STYLECLASSES=[_CAROUSEL_ITEM_TEXT_CLASS,_SMALL_DISPLAY_MODE_STATE,_VERTICAL_LAYOUT_STATE,_CIRCULAR_STATE];_VERTICAL_CIRCULAR_COMPACT_ITEM_TEXT_STYLECLASSES=[_CAROUSEL_ITEM_TEXT_CLASS,_COMPACT_DISPLAY_MODE_STATE,_VERTICAL_LAYOUT_STATE,_CIRCULAR_STATE];_VERTICAL_ONE_BY_ONE_CONTROL_AREA_STYLECLASSES=[_CAROUSEL_CONTROL_AREA_CLASS,_FULL_DISPLAY_MODE_STATE,_VERTICAL_LAYOUT_STATE,_ONE_BY_ONE_STATE];_VERTICAL_ONE_BY_ONE_SMALL_CONTROL_AREA_STYLECLASSES=
[_CAROUSEL_CONTROL_AREA_CLASS,_VERTICAL_LAYOUT_STATE,_SMALL_DISPLAY_MODE_STATE,_ONE_BY_ONE_STATE];_VERTICAL_ONE_BY_ONE_COMPACT_CONTROL_AREA_STYLECLASSES=[_CAROUSEL_CONTROL_AREA_CLASS,_VERTICAL_LAYOUT_STATE,_COMPACT_DISPLAY_MODE_STATE,_ONE_BY_ONE_STATE];_VERTICAL_CIRCULAR_CONTROL_AREA_STYLECLASSES=[_CAROUSEL_CONTROL_AREA_CLASS,_VERTICAL_LAYOUT_STATE,_FULL_DISPLAY_MODE_STATE,_CIRCULAR_STATE];_VERTICAL_CIRCULAR_SMALL_CONTROL_AREA_STYLECLASSES=[_CAROUSEL_CONTROL_AREA_CLASS,_VERTICAL_LAYOUT_STATE,_SMALL_DISPLAY_MODE_STATE,
_CIRCULAR_STATE];_VERTICAL_CIRCULAR_COMPACT_CONTROL_AREA_STYLECLASSES=[_CAROUSEL_CONTROL_AREA_CLASS,_VERTICAL_LAYOUT_STATE,_COMPACT_DISPLAY_MODE_STATE,_CIRCULAR_STATE];_CIRCULAR_VIEWPORT_STYLECLASSES=[_CAROUSEL_VIEWPORT_CLASS,_CIRCULAR_STATE];_ONE_BY_ONE_VIEWPORT_STYLECLASSES=[_CAROUSEL_VIEWPORT_CLASS,_ONE_BY_ONE_STATE];_ONE_BY_ONE_ITEM_STYLECLASSES=[_CAROUSEL_ITEM_CLASS,_ONE_BY_ONE_STATE];_CIRCULAR_ITEM_STYLECLASSES=[_CAROUSEL_ITEM_CLASS,_CIRCULAR_STATE];AmxRcfLogger=function(a){this.Init(a)};AmxRcfLogger.prototype.Init=
function(a){this._level=a};AmxRcfLogger.getLogger=function(a){AmxRcfLogger._logger||(a=new AmxRcfLogger(a),AmxRcfLogger._logger=a);return AmxRcfLogger._logger};AmxRcfLogger.prototype.isLoggable=function(a){return a>=this._level};AmxRcfLogger.prototype.severe=function(a){this.isLoggable(AmxRcfLogger.SEVERE)&&AmxRcfLogger.genericLog("[SEVERE]",a)};AmxRcfLogger.prototype.warning=function(a){this.isLoggable(AmxRcfLogger.WARNING)&&AmxRcfLogger.genericLog("[WARNING]",a)};AmxRcfLogger.prototype.info=function(a){this.isLoggable(AmxRcfLogger.INFO)&&
AmxRcfLogger.genericLog("[INFO]",a)};AmxRcfLogger.prototype.config=function(a){this.isLoggable(AmxRcfLogger.CONFIG)&&AmxRcfLogger.genericLog("[CONFIG]",a)};AmxRcfLogger.prototype.fine=function(a){this.isLoggable(AmxRcfLogger.FINE)&&AmxRcfLogger.genericLog("[FINE]",a)};AmxRcfLogger.prototype.finer=function(a){this.isLoggable(AmxRcfLogger.FINER)&&AmxRcfLogger.genericLog("[FINER]",a)};AmxRcfLogger.prototype.finest=function(a){this.isLoggable(AmxRcfLogger.FINEST)&&AmxRcfLogger.genericLog("[FINEST]",a)};
AmxRcfLogger.genericLog=function(a,b){try{var d=a+" Carousel:";if(!AmxRcfAgent||!AmxRcfAgent.AGENT||AmxRcfAgent.AGENT.isMobile()){for(var e=-1!=(""+navigator.userAgent).toLowerCase().indexOf("ipad"),g=(d+" "+b).split("\n"),h=[],e=e?120:35,k=0;k<g.length;k++){var m=g[k];if(m.length>e)for(var n=Math.ceil(m.length/e),o=0;o<n;o++){var q=o*e;h.push(m.substring(q,q+e))}else h.push(m)}var s=h.length;if(1<s)for(var t=Math.ceil(s/2),m=g=0;m<s;m+=2)n="",n=1==t?n+h[m]:n+("["+ ++g+" of "+t+"]: "+h[m]),m+1<s&&
(n+="\n"+h[1+m]),AmxRcfLogger._internalLog(a,n);else AmxRcfLogger._internalLog(a,h[0])}else AmxRcfLogger._internalLog(a,d,b)}catch(B){AmxRcfLogger._internalLog(a,d),AmxRcfLogger._internalLog(a,b),AmxRcfLogger._internalLog(a,d+"genericLog issue:"+B)}};AmxRcfLogger._internalLog=function(a,b,d){switch(a){case "[ASSERT]":case "[SEVERE]":console.error(b,d);break;case "[WARNING]":console.warn(b,d);break;case "[INFO]":console.info(b,d);break;default:console.log(b,d)}};AmxRcfLogger.OFF=Number.MAX_VALUE;AmxRcfLogger.SEVERE=
1E3;AmxRcfLogger.WARNING=900;AmxRcfLogger.INFO=800;AmxRcfLogger.CONFIG=700;AmxRcfLogger.FINE=500;AmxRcfLogger.FINER=400;AmxRcfLogger.FINEST=300;AmxRcfLogger.ALL=Number.MIN_VALUE;AmxRcfLogger.LOGGER=AmxRcfLogger.getLogger(AmxRcfLogger.WARNING);var n=function(){n.initClass(n,"AmxRcfObject")};n.createInstanceCallback=function(a,b){AmxRcfAssert.assertObject(a);AmxRcfAssert.assertFunction(b);AmxRcfAssert.assertString(b[AmxRcfAssert.FUNC_NAME_PROPERTY]);var d=new Function("var f=arguments.callee; return f._func.apply(f._owner, arguments);");
d._owner=a;d._func=b;return d};n._applyFunctionProperties=function(a,b){var d=AmxRcfAssert.FUNC_NAME_PROPERTY,e=AmxRcfAssert.CLASS_NAME_PROPERTY;for(currPropName in a){var g=a[currPropName];"function"==typeof g&&!g.hasOwnProperty(d)&&(g[d]=currPropName,g[e]=b)}};n.initClass=function(a,b){a._initialized||(AmxRcfAssert.DEBUG&&AmxRcfAssert.assert(!a._initialized),a._initialized=!0,"function"==typeof a&&(AmxRcfAssert.DEBUG&&AmxRcfAssert.assertFunction(a),n._applyFunctionProperties(a.prototype,b)),n._applyFunctionProperties(a,
"static "+b))};AmxRcfElementAnimator=function(a,b,d,e,g,h,k){n.initClass(AmxRcfElementAnimator,"AmxRcfElementAnimator");this.Init(a,b,d,e,g,h,k)};AmxRcfElementAnimator.prototype.Init=function(a,b,d,e,g,h,k){this._itemState=a;this._duringAnimate=b;this._afterAnimate=d;this._callbackParameters=e;this._amxNode=g;this._startTime=(new Date).getTime();this._frameMethod=h;this._frameCount=k};AmxRcfElementAnimator.prototype.stop=function(){this._stopped=!0;window.clearInterval(this._intervalID);var a=this._callbackParameters;
this._destroy();return a};AmxRcfElementAnimator.animate=function(a,b,d,e,g,h,k){for(var m=AmxRcfAgent.AGENT,n=d.length,o=Array(n),q=0;q<n;q++){var s=d[q],t=s.properties,s=s.element,B={};AmxRcfElementAnimator._gatherSizeState(B,t,s,"width","offsetWidth","borderLeftWidth","borderRightWidth");AmxRcfElementAnimator._gatherSizeState(B,t,s,"height","offsetHeight","borderTopWidth","borderBottomWidth");var D=t.alpha;if(null!=D&&!isNaN(D)){var J=s.style.opacity;if(s.ownerDocument.all&&null==J)try{J=s.filters.alpha.opacity/
100}catch(H){AmxRcfLogger.LOGGER.finer(H)}if(null==J||""==""+J)J=1;B.opacity=[J,D/100,!0]}D=t.zIndex;null!=D&&!isNaN(D)&&(B.zIndex=[AmxRcfElementAnimator._getElementZIndex(m,s),D,!0]);D=t.top;null!=D&&!isNaN(D)&&(J=(J=s.style.top)&&"auto"!=J?parseInt(J):m.getElementTop(s),B.top=[J,D]);D=t.left;null!=D&&!isNaN(D)&&(J=(J=s.style.left)&&"auto"!=J?parseInt(J):m.getElementLeft(s),B.left=[J,D]);D=t.offsetTop;null!=D&&!isNaN(D)&&(B.offsetTop=[s.offsetTop,D]);D=t.offsetLeft;null!=D&&!isNaN(D)&&(B.offsetLeft=
[s.offsetLeft,D]);D=t.scrollLeft;null!=D&&!isNaN(D)&&(B.scrollLeft=[s.scrollLeft,D,!0]);t=t.scrollTop;null!=t&&!isNaN(t)&&(B.scrollTop=[s.scrollTop,t,!0]);o[q]={element:s,state:B}}b=Math.max(1,Math.round(b*AmxRcfElementAnimator._FRAMES_PER_MILLISECOND));AmxRcfElementAnimator._isAnimationEnabled()||(b=1);return(new AmxRcfElementAnimator(o,e,g,h,k,a,b))._start()};AmxRcfElementAnimator._getElementZIndex=function(a,b){var d=a.getComputedStyle(b);return d&&(d=d.zIndex,!isNaN(d))?d:0};AmxRcfElementAnimator._gatherSizeState=
function(a,b,d,e,g,h,k){b=b[e];null!=b&&!isNaN(b)&&(g=d[g],null!=d.style&&(g=AmxRcfElementAnimator._subtractBorderSize(g,d.style[h]),g=AmxRcfElementAnimator._subtractBorderSize(g,d.style[k])),a[e]=[g,b])};AmxRcfElementAnimator.prototype._start=function(){this._animationStepCallback=n.createInstanceCallback(this,this._animationStep);this._intervalID=self.setInterval(this._animationStepCallback,Math.floor(1/AmxRcfElementAnimator._FRAMES_PER_MILLISECOND));return this};AmxRcfElementAnimator.prototype._destroy=
function(){delete this._itemState;delete this._duringAnimate;delete this._afterAnimate;delete this._callbackParameters;delete this._amxNode;delete this._startTime;delete this._intervalID;delete this._animationStepCallback;delete this._stopped};AmxRcfElementAnimator.prototype._animationStep=function(){if(!(this._stopped||null==this._intervalID))if(this._performAfterAnimate)window.clearInterval(this._intervalID),null!=this._afterAnimate&&this._afterAnimate(this._callbackParameters),this._destroy();
else{var a=(new Date).getTime()-this._startTime,b=this._itemState,d=b.length,a=Math.round(AmxRcfElementAnimator._FRAMES_PER_MILLISECOND*a),e=this._frameCount,g=this._frameMethod,h=!1;a>=e-1&&(this._performAfterAnimate=h=!0);for(var k=0;k<d;k++){var m=b[k],n=m.element,m=m.state,o,q;for(q in m)o=h?m[q][1]:AmxRcfElementAnimator._computeFrameProperty(a,parseFloat(m[q][0]),parseFloat(m[q][1]),g,e),m[q][2]||(o+="px"),AmxRcfElementAnimator._renderFrameProperty(n,o,q)}b=this._duringAnimate;null!=b&&b(this._callbackParameters)}};
AmxRcfElementAnimator._renderFrameProperty=function(a,b,d){"opacity"==d&&AmxRcfAgent.AGENT.getPlatform()==AmxRcfAgent.IE_PLATFORM?(b*=100,a.style.filter=1==b?"":"alpha(opacity="+b+")"):"offsetLeft"==d?a.style.left=b:"offsetTop"==d?a.style.top=b:"scrollLeft"==d?AmxRcfAgent.AGENT.scrollToPos(a,b,null):"scrollTop"==d?AmxRcfAgent.AGENT.scrollToPos(a,null,b):a.style[d]=b};AmxRcfElementAnimator._computeFrameProperty=function(a,b,d,e,g){a/=g;switch(e){case AmxRcfElementAnimator.FRAME_METHOD_CONSTANT_SPEED:e=
a;break;case AmxRcfElementAnimator.FRAME_METHOD_ACCELERATING:e=Math.pow(a,2);break;case AmxRcfElementAnimator.FRAME_METHOD_DECELERATING:e=1-Math.pow(a-1,2);break;case AmxRcfElementAnimator.FRAME_METHOD_SLOW_FAST_SLOW:e=(Math.cos(a*Math.PI+Math.PI)+1)/2;break;default:AmxRcfLogger.LOGGER.severe("Invalid AmxRcfElementAnimator framing method: "+e),e=1}return b+e*(d-b)};AmxRcfElementAnimator._subtractBorderSize=function(a,b){null!=b&&""!=b&&(a-=parseInt(b));return a};AmxRcfElementAnimator._isAnimationEnabled=
function(){return!0};AmxRcfElementAnimator._FRAMES_PER_MILLISECOND=0.06;AmxRcfElementAnimator.FRAME_METHOD_CONSTANT_SPEED=0;AmxRcfElementAnimator.FRAME_METHOD_ACCELERATING=1;AmxRcfElementAnimator.FRAME_METHOD_DECELERATING=2;AmxRcfElementAnimator.FRAME_METHOD_SLOW_FAST_SLOW=3;AmxRcfAssert=function(){};AmxRcfAssert.assert=function(a,b){if(AmxRcfAssert.DEBUG&&!a){if(2<arguments.length){for(var b=b+"(",d=2;d<arguments.length;d++)b+=arguments[d];b+=")"}AmxRcfAssert.assertionFailed(b,1)}};AmxRcfAssert.assertDomNode=
function(a,b){AmxRcfAssert.DEBUG&&(a?void 0==a.nodeType&&AmxRcfAssert.assertionFailed(a+" is not a DOM Node",b+1,"nodeType="+a.nodeType+" was undefined"):AmxRcfAssert.assertionFailed(a+" is not a DOM Node",b+1))};AmxRcfAssert.assertDomElement=function(a,b){AmxRcfAssert.DEBUG&&(AmxRcfAssert.assertDomNode(a,1),1!=a.nodeType?AmxRcfAssert.assertionFailed(a+" is not a DOM Element",1,"nodeType="+a.nodeType+" was not 1"):b&&a.nodeName!=b&&AmxRcfAssert.assertionFailed(a+" is not a "+b+" Element",1,"nodeName="+
a.nodeName+" was not "+b))};AmxRcfAssert.assertDomElementOrNull=function(a,b){AmxRcfAssert.DEBUG&&null!=a&&(AmxRcfAssert.assertDomNode(a,1),1!=a.nodeType?AmxRcfAssert.assertionFailed(a+" is not a DOM Element",1,"nodeType="+a.nodeType+" was not 1"):b&&a.nodeName!=b&&AmxRcfAssert.assertionFailed(a+" is not a "+b+" Element",1,"nodeName="+a.nodeName+" was not "+b))};AmxRcfAssert.assertArrayOrNull=function(a,b){AmxRcfAssert.DEBUG&&null!=a&&!AmxRcfCollections.isArray(a)&&(void 0==b&&(b=a+" is not an array"),
AmxRcfAssert.assertionFailed(b,1))};AmxRcfAssert.assertString=function(a,b){AmxRcfAssert.DEBUG&&AmxRcfAssert.assertType(a,"string",b,1,!1)};AmxRcfAssert.assertPrototype=function(a,b,d){if(AmxRcfAssert.DEBUG)if(null!=a){AmxRcfAssert.assertType(b,"function",null,1,!1);var e=b.prototype;e.isPrototypeOf(a)||AmxRcfAssert.assertionFailed("object '"+a+"' doesn't match prototype "+e,1,d)}else AmxRcfAssert.assertionFailed("null object doesn't match prototype "+e,1,d)};AmxRcfAssert.assertFunction=function(a,
b){AmxRcfAssert.DEBUG&&AmxRcfAssert.assertType(a,"function",b,1,!1)};AmxRcfAssert.assertObject=function(a,b){AmxRcfAssert.DEBUG&&AmxRcfAssert.assertType(a,"object",b,1,!1)};AmxRcfAssert.assertType=function(a,b,d,e,g){if(AmxRcfAssert.DEBUG&&!(null==a&&g||typeof a==b))a=a+" is not of type "+b,d&&(a=d+a),e||(e=0),AmxRcfAssert.assertionFailed(a,e+1)};AmxRcfAssert.assertionFailed=function(a,b,d){b||(b=0);var e="Assertion";d&&(e+=" ("+d+")");e+=" failed: ";void 0!=a&&(e+=a);a=Error(e+" -- See assertion log for stack trace.");
b=AmxRcfAssert._getStackTrace(b+1);b=AmxRcfAssert._getStackString(b);e+="\nStack Trace:\n"+b;alert("Carousel Assertion:\n"+e);AmxRcfLogger.genericLog("[ASSERT]",e);throw a;};AmxRcfAssert._getStackTrace=function(a){void 0==a&&(a=0);AmxRcfAssert.assert(0<=a);var b=[];try{for(var d=AmxRcfAssert._getStackTrace.caller;d&&b.length<AmxRcfAssert._MAX_STACK_DEPTH_LIMIT;)a?a--:b.push(d),d=d.caller}catch(e){AmxRcfLogger.genericLog("[ASSERT]",e)}return b};AmxRcfAssert._getStackString=function(a){if(!a)return"";
for(var b=a.length,d=Array(b),e=0;e<b;e++){var g=a[e],h=AmxRcfAssert.getFunctionName(g);h||(h="anonymous");var k=g[AmxRcfAssert.CLASS_NAME_PROPERTY];k&&(h=k+"."+h);var k=AmxRcfAssert._getFuncParams(g),m=g.arguments,n=m.length,g=null;if(n)for(var g=Array(n),o=0;o<n;o++){var q=m[o];if("function"==typeof q){var s=AmxRcfAssert.getFunctionName(q);s||(s="anonymous");q=AmxRcfAssert._getFuncParams(q);q="function "+s+q}g[o]=q}m=[];m[0]=h;m[1]=k;g&&(m[2]="--",m[3]="[",m[4]=AmxRcfAssert._safeJoin(g,","),m[5]=
"]");d[e]=m.join("")}return d.join("\n")};AmxRcfAssert.getFunctionName=function(a){var b=a[AmxRcfAssert.FUNC_NAME_PROPERTY];if(void 0==b){var b=a.toString(),d=b.indexOf("("),e=b.lastIndexOf(" ",d),b=b.substring(e+1,d);b.length||(b=null);a[AmxRcfAssert.FUNC_NAME_PROPERTY]=b}return b};AmxRcfAssert._getFuncParams=function(a){var b=a[AmxRcfAssert._PARAMS_NAME_PROPERTY];if(void 0==b){var b=a.toString(),d=b.indexOf("("),e=b.indexOf(")",d+1),b=b.substring(d,e+1),b=b.replace(/\s+/g,"");b.length||(b=null);
a[AmxRcfAssert._PARAMS_NAME_PROPERTY]=b}return b};AmxRcfAssert._safeJoin=function(a,b){for(var d=a.length,e="",g=0;g<d;g++){var h=a[g],e=e+(h?h.toString?h.toString():"Unknown":"(empty)");b&&g<d-1&&(e+=b)}return e};AmxRcfAssert._PARAMS_NAME_PROPERTY="_funcParams";AmxRcfAssert.CLASS_NAME_PROPERTY="_className";AmxRcfAssert._MAX_STACK_DEPTH_LIMIT=20;AmxRcfAssert.FUNC_NAME_PROPERTY="_funcName";AmxRcfAssert.DEBUG=!0;AmxRcfAgent=function(a,b,d,e){n.initClass(AmxRcfAgent,"AmxRcfAgent");null==b?this.Init(AmxRcfAgent.UNKNOWN_PLATFORM,
AmxRcfAgent.guessOS(),AmxRcfAgent.guessVersion(),a):this.Init(b,d,e,a)};AmxRcfAgent.prototype.Init=function(a,b,d,e){a||(a=AmxRcfAgent.UNKNOWN_PLATFORM);b||(b=AmxRcfAgent.UNKNOWN_OS);this._platform=a;this._os=b;this._version=d;this._window=e;this._document=e.document;(this._capabilities={})[AmxRcfAgent.CAP_TOUCH_SCREEN]=AmxRcfAgent.CAP_TOUCH_SCREEN_NONE};AmxRcfAgent.getAgent=function(a){null!=a&&(AmxRcfAgent._agent=null);if(!AmxRcfAgent._agent){AmxRcfAssert.assert(null!=a);var b=navigator.userAgent.toLowerCase(),
d,e;try{-1!=b.indexOf("opera")?(AmxRcfAgent._checkAgentSupport&&alert(AmxRcfAgent._UNSUPPORTED_BROWSER_ALERT),d=new AmxRcfAgent(a)):-1!=b.indexOf("msie")?(AmxRcfAgent._checkAgentSupport&&alert(AmxRcfAgent._UNSUPPORTED_BROWSER_ALERT),d=new AmxRcfAgent(a)):-1!=b.indexOf("applewebkit")||-1!=b.indexOf("safari")?(e=AmxRcfAgent._parseFloatVersion(b,/applewebkit\/(\d+([.]\d+)*)/),-1==b.indexOf("mobile")&&-1==b.indexOf("android")?d=new AmxRcfAgent(a,AmxRcfAgent.WEBKIT_PLATFORM,AmxRcfAgent.guessOS(),e):(d=
new AmxRcfAgent(a,AmxRcfAgent.WEBKIT_PLATFORM,AmxRcfAgent.guessOS(),e),d._mobile=!0,d.getCapabilities()[AmxRcfAgent.CAP_TOUCH_SCREEN]=d.getOS()==AmxRcfAgent.ANDROID_OS?AmxRcfAgent.CAP_TOUCH_SCREEN_SINGLE:AmxRcfAgent.CAP_TOUCH_SCREEN_MULTIPLE,AmxRcfAgent._REDISTRIBUTE_BUBBLE_EVENTS=["touchstart","touchmove","touchend","touchcancel"]),AmxRcfAgent._checkAgentSupport&&525.18>e&&!(525.18>e&&-1!=b.indexOf("chrome/"))&&alert(AmxRcfAgent._UNSUPPORTED_BROWSER_ALERT)):-1!=b.indexOf("gecko/")?(AmxRcfAgent._checkAgentSupport&&
alert(AmxRcfAgent._UNSUPPORTED_BROWSER_ALERT),d=new AmxRcfAgent(a)):d||(AmxRcfAgent._checkAgentSupport&&alert(AmxRcfAgent._UNSUPPORTED_BROWSER_ALERT),d=new AmxRcfAgent(a)),AmxRcfAgent._agent=d}catch(g){AmxRcfLogger.LOGGER.severe("Unable to initialize AmxRcfAgent: "+g),AmxRcfAgent._agent=new AmxRcfAgent(a)}}return AmxRcfAgent._agent};AmxRcfAgent.prototype.isMobile=function(){return!0==this._mobile};AmxRcfAgent._parseFloatVersion=function(a,b){var d=a.match(b);if(d&&(d=d[1]))return parseFloat(d)};AmxRcfAgent.prototype.getCapabilities=
function(){return this._capabilities};AmxRcfAgent.prototype.getPlatform=function(){return this._platform};AmxRcfAgent.prototype.getOS=function(){return this._os};AmxRcfAgent.guessOS=function(){var a=navigator.userAgent.toLowerCase();if(-1!=a.indexOf("win"))return AmxRcfAgent.WINDOWS_OS;if(-1!=a.indexOf("mac"))return AmxRcfAgent.MAC_OS;if(-1!=a.indexOf("sunos"))return AmxRcfAgent.SOLARIS_OS;if(-1!=a.indexOf("android"))return AmxRcfAgent.ANDROID_OS};AmxRcfAgent.guessVersion=function(){return parseFloat(navigator.appVersion)};
AmxRcfAgent.prototype.getVersion=function(){return this._version};AmxRcfAgent.prototype.getDomWindow=function(){return this._window};AmxRcfAgent.prototype.getDomDocument=function(){return this._document};AmxRcfAgent.prototype.getElementLeft=function(a){return this.getPlatform()==AmxRcfAgent.WEBKIT_PLATFORM?this._webkitGetElementLeft(a):this._baseGetElementLeft(a)};AmxRcfAgent.prototype._baseGetElementLeft=function(a){AmxRcfAssert.assertDomNode(a);for(var b=a.ownerDocument.body,d=a.offsetParent,e=
a.offsetLeft;d;)a=d,e+=a.offsetLeft,a!=b&&(e-=a.scrollLeft),d=d.offsetParent;return e};AmxRcfAgent.prototype._webkitGetElementLeft=function(a){AmxRcfAssert.assertDomElement(a);if(!a.getBoundingClientRect)return this._baseGetElementLeft(a);var b=a.getBoundingClientRect().left;return b-=a.ownerDocument.documentElement.clientLeft-this.getBrowserViewportScrollLeft()};AmxRcfAgent.prototype.getElementTop=function(a){return this.getPlatform()==AmxRcfAgent.WEBKIT_PLATFORM?this._webkitGetElementTop(a):this._baseGetElementTop(a)};
AmxRcfAgent.prototype._baseGetElementTop=function(a){AmxRcfAssert.assertDomNode(a);var b=a.ownerDocument.body,d=a.offsetParent,e=a.offsetTop;for("absolute"==this.getComputedStyle(a).position&&(e-=b.offsetTop);d;)a=d,e+=a.offsetTop,a!=b&&(e-=a.scrollTop),d=d.offsetParent;return e};AmxRcfAgent.prototype._webkitGetElementTop=function(a){AmxRcfAssert.assertDomElement(a);if(!a.getBoundingClientRect)return this._baseGetElementTop(a);var b=a.getBoundingClientRect().top;return b-=a.ownerDocument.documentElement.clientTop-
this.getBrowserViewportScrollTop()};AmxRcfAgent.prototype.getBrowserViewportScrollLeft=function(){return this.getPlatform()==AmxRcfAgent.WEBKIT_PLATFORM?this._webkitGetBrowserViewportScrollLeft():this._baseGetBrowserViewportScrollLeft()};AmxRcfAgent.prototype._baseGetBrowserViewportScrollLeft=function(){return this.getDomDocument().documentElement.scrollLeft};AmxRcfAgent.prototype._webkitGetBrowserViewportScrollLeft=function(){return this.getDomDocument().body.scrollLeft};AmxRcfAgent.prototype.getBrowserViewportScrollTop=
function(){return this.getPlatform()==AmxRcfAgent.WEBKIT_PLATFORM?this._webkitGetBrowserViewportScrollTop():this._baseGetBrowserViewportScrollTop()};AmxRcfAgent.prototype._baseGetBrowserViewportScrollTop=function(){return this.getDomDocument().documentElement.scrollTop};AmxRcfAgent.prototype._webkitGetBrowserViewportScrollTop=function(){return this.getDomDocument().body.scrollTop};AmxRcfAgent.prototype.scrollToPos=function(a,b,d){null!=d&&(a.scrollTop=d);null!=b&&(a.scrollLeft=b)};AmxRcfAgent.prototype.getComputedStyle=
function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)};AmxRcfAgent.prototype.setOpacity=function(a,b){a.style.opacity=b/100};AmxRcfAgent.prototype.getAttribute=function(a,b){return a.getAttribute(b)};AmxRcfAgent.prototype.getIntAttribute=function(a,b,d){AmxRcfAssert.assertDomElement(a);void 0==d&&(d=null);a.hasAttribute(b)?(a=a.getAttribute(b),a=parseInt(a,10),isNaN(a)&&(a=d,AmxRcfLogger.LOGGER.warning("The value of attribute named ",b," cannot be converted into an integer."))):
a=d;return a};AmxRcfAgent.prototype.getBooleanAttribute=function(a,b,d){AmxRcfAssert.assert(a);void 0==d&&(d=null);a=a.getAttribute(b);null==a?a=d:"true"==a?a=!0:"false"==a?a=!1:(a=d,AmxRcfLogger.LOGGER.warning("The value of attribute named ",b," cannot be converted into a boolean."));return a};AmxRcfAgent.prototype.setAttribute=function(a,b,d){var e=a[b];(void 0==e||"boolean"!=typeof e||"false"!=d)&&a.setAttribute(b,d)};AmxRcfAgent.prototype.getElementById=function(a,b){if(null!=b)return AmxRcfDomUtils.getElementByIdInSubtree(b,
a);var d=this._document.getElementById(a);AmxRcfAssert.assertDomElement(d);return d};AmxRcfAgent.prototype.getEventTarget=function(a){return this.getPlatform()==AmxRcfAgent.WEBKIT_PLATFORM&&this.isMobile()?this._webkitMobileGetEventTarget(a):this._baseGetEventTarget(a)};AmxRcfAgent.prototype._baseGetEventTarget=function(a){return a.target};AmxRcfAgent.prototype._webkitMobileGetEventTarget=function(a){var b=null;if(-1<AmxRcfCollections.indexOf(AmxRcfAgent._REDISTRIBUTE_BUBBLE_EVENTS,a.type)){var d=
this._webkitGetFirstTouch(a);d&&(b=d.target)}b||(b=this._baseGetEventTarget(a));return null!=b?AmxRcfDomUtils.getElement(b):null};AmxRcfAgent.prototype.eatEvent=function(a){this.stopPropagation(a);this.preventDefault(a)};AmxRcfAgent.prototype.stopPropagation=function(a){a.stopPropagation()};AmxRcfAgent.prototype.preventDefault=function(a){this.getPlatform()==AmxRcfAgent.WEBKIT_PLATFORM&&this.isMobile()&&this._webkitMobilePreventDefault(a);this.basePreventDefault(a)};AmxRcfAgent.prototype.basePreventDefault=
function(a){a.preventDefault()};AmxRcfAgent.prototype._webkitMobilePreventDefault=function(a){this.basePreventDefault(a);a=a.type;if("touchstart"==a||"touchend"==a)this._isWithinTouchEventsSequence=!1};AmxRcfAgent.prototype.isLeftButton=function(a){return this.getPlatform()==AmxRcfAgent.WEBKIT_PLATFORM&&this.isMobile()?this._webkitMobileIsLeftButton(a):this._baseIsLeftButton(a)};AmxRcfAgent.prototype._baseIsLeftButton=function(a){return 0==a.button};AmxRcfAgent.prototype._webkitMobileIsLeftButton=
function(a){var b={touchstart:!0,touchmove:!0,touchend:!0,touchcancel:!0};return this._baseIsLeftButton(a)||null!=b[a.type]};AmxRcfAgent.prototype.getMousePosition=function(a){return this.getPlatform()==AmxRcfAgent.WEBKIT_PLATFORM&&this.isMobile()?this._webkitMobileGetMousePosition(a):this._baseGetMousePosition(a)};AmxRcfAgent.prototype._baseGetMousePosition=function(a){return{x:a.pageX,y:a.pageY}};AmxRcfAgent.prototype._webkitMobileGetMousePosition=function(a){return-1<AmxRcfCollections.indexOf(AmxRcfAgent._REDISTRIBUTE_BUBBLE_EVENTS,
a.type)?(a=this._webkitGetFirstTouch(a),{x:a.clientX,y:a.clientY}):this._baseGetMousePosition(a)};AmxRcfAgent.prototype._webkitGetFirstTouch=function(a){return a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a.targetTouches&&a.targetTouches.length?a.targetTouches[0]:a.touches&&a.touches.length?a.touches[0]:null};AmxRcfAgent.prototype.disableUserSelect=function(a){return this.getPlatform()==AmxRcfAgent.WEBKIT_PLATFORM?this._webkitDisableUserSelect(a):this._baseDisableUserSelect(a)};AmxRcfAgent.prototype._baseDisableUserSelect=
function(){};AmxRcfAgent.prototype._webkitDisableUserSelect=function(a){a.style.setProperty("-webkit-user-select","none")};AmxRcfAgent.eatEventCallback=function(a){var b=AmxRcfAgent.AGENT;(a=null!=a?a:b.getDomWindow().event)&&b.eatEvent(a);return!1};AmxRcfAgent.WINDOWS_OS="Windows";AmxRcfAgent.SOLARIS_OS="Solaris";AmxRcfAgent.MAC_OS="Mac";AmxRcfAgent.UNKNOWN_OS="Unknown";AmxRcfAgent.ANDROID_OS="Android";AmxRcfAgent.IE_PLATFORM="ie";AmxRcfAgent.GECKO_PLATFORM="gecko";AmxRcfAgent.WEBKIT_PLATFORM="webkit";
AmxRcfAgent.OPERA_PLATFORM="opera";AmxRcfAgent.UNKNOWN_PLATFORM="unknown";AmxRcfAgent.CAP_TOUCH_SCREEN="touchScreen";AmxRcfAgent.CAP_TOUCH_SCREEN_NONE="none";AmxRcfAgent.CAP_TOUCH_SCREEN_SINGLE="single";AmxRcfAgent.CAP_TOUCH_SCREEN_MULTIPLE="multiple";AmxRcfAgent._checkAgentSupport=!0;AmxRcfAgent._UNSUPPORTED_BROWSER_ALERT="You are using an unsupported browser.";AmxRcfAgent.AGENT=AmxRcfAgent.getAgent(window);var o=function(){n.initClass(o,"AmxRcfLocaleContext");this.Init()};o.prototype.Init=function(){var a=
AmxRcfAgent.AGENT.getDomDocument();this._locale=a.documentElement.lang;(this._rightToLeft="rtl"==a.documentElement.dir)?(this._alignBegin="right",this._alignEnd="left"):(this._alignBegin="left",this._alignEnd="right")};o.prototype.getLocale=function(){return this._locale};o.prototype.isRightToLeft=function(){return this._rightToLeft};o.prototype.getAlignBegin=function(){return this._alignBegin};o.prototype.getAlignEnd=function(){return this._alignEnd};AmxRcfCollections=function(){};AmxRcfCollections.isArray=
function(a){return a?Array.prototype.isPrototypeOf(a):!1};AmxRcfCollections.indexOf=function(a,b){AmxRcfAssert.assertArrayOrNull(a);if(!a)return-1;for(var d=-1,e=a.length,g=0;g<e;g++)if(a[g]==b){d=g;break}return d};AmxRcfCollections.copyInto=function(a,b,d){if(a&&b&&a!==b)for(var e in b){var g;g=d?d(e):e;try{a[g]=b[e]}catch(h){AmxRcfLogger.LOGGER.finer(h)}}return a};n.initClass(AmxRcfCollections,"AmxRcfCollections");AmxRcfStrings=function(){};AmxRcfStrings.initUpperCase=function(a){if(!a)return a;
var b=a.charAt(0),d=b.toUpperCase();return b==d?a:d+a.substr(1)};AmxRcfStrings.createConstantName=function(a){a=a.replace(AmxRcfStrings._CONSTANT_REGEXP,AmxRcfStrings._REPLACE_PATTERN);return a=a.toUpperCase()};AmxRcfStrings._CONSTANT_REGEXP=/([A-Z])/g;AmxRcfStrings._REPLACE_PATTERN="_$1";n.initClass(AmxRcfStrings,"AmxRcfStrings");var q=function(){n.initClass(q,"AmxRcfUIComponent")};q.PROPAGATE_NEVER=2;AmxRcfRichUIPeer=function(){};AmxRcfRichUIPeer.createSubId=function(a,b){AmxRcfAssert.assert(null!=
a,"Must have a clientId to generate a subId.");AmxRcfAssert.assert(null!=b,"Must have a name to generate a subId.");var d=AmxRcfRichUIPeer._CREATE_SUB_ID_ARRAY;d[0]=a;d[2]=b;return d.join("")};AmxRcfRichUIPeer._CREATE_SUB_ID_ARRAY=[null,"::",null];AmxRcfRichUIPeer.DISABLED_STYLECLASS="p_AMXDisabled";n.initClass(AmxRcfRichUIPeer,"AmxRcfRichUIPeer");AmxRcfFocusUtils=function(){};AmxRcfFocusUtils.focusElement=function(a){AmxRcfAssert.assertDomElement(a);try{a.setActive&&a.setActive(),a.focus()}catch(b){AmxRcfLogger.LOGGER.finer(b)}};
AmxRcfFocusUtils.getNextTabStop=function(a,b,d){return AmxRcfDomUtils.getNextElementMatch(a,b,d,AmxRcfFocusUtils.isTabStop)};AmxRcfFocusUtils.isTabStop=function(a){return null!=a&&-1<a.tabIndex&&AmxRcfFocusUtils.isFocusable(a)};AmxRcfFocusUtils.isFocusable=function(a,b){return AmxRcfFocusUtils.acceptFocusableNode(a,b)==AmxRcfDomUtils.FILTER_ACCEPT};AmxRcfFocusUtils.acceptFocusableNode=function(a,b){if(null==a||1!=a.nodeType||a.disabled||-1>AmxRcfDomUtils.getTabIndex(a))return AmxRcfDomUtils.FILTER_REJECT;
if(!AmxRcfFocusUtils._isFocusableType(a))return AmxRcfDomUtils.FILTER_SKIP;AmxRcfFocusUtils._setupContext(b);return AmxRcfFocusUtils.isConnectedAndVisible(a,b)?AmxRcfDomUtils.FILTER_ACCEPT:AmxRcfDomUtils.FILTER_REJECT};AmxRcfFocusUtils._setupContext=function(a){if(a&&!a.positiveValue){var b=(new Date).getTime();a.positiveValue="y"+b;a.negativeValue="n"+b}};AmxRcfFocusUtils._isFocusableType=function(a){AmxRcfAssert.assertDomElement(a);var b=AmxRcfDomUtils.getTabIndex(a);switch(a.nodeName.toLowerCase()){case "a":if(!a.href&&
void 0==b)return!1;case "input":if("hidden"==a.type&&!0!=a.isContentEditable)return!1;case "area":case "body":case "button":case "frame":case "iframe":case "isindex":case "object":case "select":case "textarea":return!0;default:return-1<=b?!0:!1}};AmxRcfFocusUtils.isConnectedAndVisible=function(a,b){AmxRcfAssert.assertDomElement(a);var d=AmxRcfAgent.AGENT.getDomDocument().documentElement,e=AmxRcfFocusUtils.calculateCachedValue(a,b,"data-amxFoc");if(void 0!=e)return e;if(!AmxRcfFocusUtils._isVisible(a))return AmxRcfFocusUtils.setCacheValue(a,
b,"data-amxFoc",!1),!1;if(a==d)return AmxRcfFocusUtils.setCacheValue(a,b,"data-amxFoc",!0),!0;d=null==a.parentNode||1!=a.parentNode.nodeType?!1:AmxRcfFocusUtils.isConnectedAndVisible(a.parentNode,b);AmxRcfFocusUtils.setCacheValue(a,b,"data-amxFoc",d);return d};AmxRcfFocusUtils._isVisible=function(a){var b=AmxRcfAgent.AGENT.getComputedStyle(a);return"none"==b.display&&"none"==a.style.display||"hidden"==b.visibility?!1:!0};AmxRcfFocusUtils.setCacheValue=function(a,b,d,e){b&&a&&d&&void 0!=e&&AmxRcfAgent.AGENT.setAttribute(a,
d,e?b.positiveValue:b.negativeValue)};AmxRcfFocusUtils.calculateCachedValue=function(a,b,d){if(b&&a&&d){a=AmxRcfAgent.AGENT.getAttribute(a,d);if(a==b.positiveValue)return!0;if(a==b.negativeValue)return!1}};AmxRcfFocusUtils.getFirstTabStop=function(a,b){return AmxRcfDomUtils.getFirstElementMatch(a,b,AmxRcfFocusUtils.isTabStop)};AmxRcfFocusUtils.getLastTabStop=function(a,b){return AmxRcfDomUtils.getLastElementMatch(a,b,AmxRcfFocusUtils.isTabStop)};AmxRcfFocusUtils.focusFirstTabStop=function(a){AmxRcfAssert.assertDomElement(a);
a=AmxRcfFocusUtils.getFirstTabStop(a);null!=a&&AmxRcfFocusUtils.focusElement(a);return a};AmxRcfFocusUtils.focusLastTabStop=function(a){AmxRcfAssert.assertDomElement(a);a=AmxRcfFocusUtils.getLastTabStop(a);null!=a&&AmxRcfFocusUtils.focusElement(a);return a};n.initClass(AmxRcfFocusUtils,"AmxRcfFocusUtils");AmxRcfDomUtils=function(){};AmxRcfDomUtils.getTabIndex=function(a){AmxRcfAssert.assertDomElement(a);a=a.getAttributeNode("tabIndex");return null==a||!a.specified?void 0:a.nodeValue};AmxRcfDomUtils.getFirstChildElement=
function(a){return AmxRcfDomUtils.getFirstChildNodeByType(a,1)};AmxRcfDomUtils.getFirstChildNodeByType=function(a,b){var d=a.childNodes;if(d)for(var e=d.length,g=0;g<e;g++){var h=d[g];if(h.nodeType==b)return h}return null};AmxRcfDomUtils.getLastChildElement=function(a){if(a=a.childNodes)for(var b=a.length-1;0<=b;b--){var d=a[b];if(1==d.nodeType)return d}return null};AmxRcfDomUtils.getPreviousElement=function(a){if(a)for(a=a.previousSibling;a;){if(1==a.nodeType)return a;a=a.previousSibling}};AmxRcfDomUtils.getNextElement=
function(a){if(a)for(a=a.nextSibling;a;){if(1==a.nodeType)return a;a=a.nextSibling}};AmxRcfDomUtils.getFirstElementMatch=function(a,b,d,e){AmxRcfAssert.assertFunction(d);AmxRcfAssert.assertDomElement(a);if(!b&&d(a,e))return a;if(a.getElementsByTagName)for(var a=a.getElementsByTagName("*"),b=a.length,g=0;g<b;g++){var h=a[g];if(d(h,e))return h}return null};AmxRcfDomUtils.getNextElementMatch=function(a,b,d,e,g){AmxRcfAssert.assertFunction(e);AmxRcfAssert.assertDomElement(a);AmxRcfAssert.assertDomElementOrNull(b);
var h=null;if(!d&&(h=AmxRcfDomUtils.getFirstElementMatch(a,!0,e,g),null!=h))return h;for(;a&&a!=b;)if(a.nextSibling){if(a=a.nextSibling,1==a.nodeType&&(h=AmxRcfDomUtils.getFirstElementMatch(a,!1,e,g),null!=h))return h}else a=a.parentNode;return null};AmxRcfDomUtils.getLastElementMatch=function(a,b,d,e){AmxRcfAssert.assertFunction(d);AmxRcfAssert.assertDomElement(a);if(a.getElementsByTagName)for(var g=a.getElementsByTagName("*"),h=g.length-1;0<=h;h--){var k=g[h];if(d(k,e))return k}return!b&&d(a,e)?
a:null};AmxRcfDomUtils.getElement=function(a){if(null==a)return null;for(;null!=a;a=a.parentNode)if(1==a.nodeType)return a;return null};AmxRcfDomUtils.getElementByIdInSubtree=function(a,b){return AmxRcfDomUtils.getFirstElementMatch(a,!0,AmxRcfDomUtils._isElementWithId,b)};AmxRcfDomUtils._isElementWithId=function(a,b){return null!=a&&b==a.id};AmxRcfDomUtils.FILTER_ACCEPT=1;AmxRcfDomUtils.FILTER_REJECT=0;AmxRcfDomUtils.FILTER_SKIP=-1;n.initClass(AmxRcfDomUtils,"AmxRcfDomUtils");AmxRcfRichCarousel=function(a,
b,d,e,g,h,k,m,o,q,s,t,L,B){n.initClass(AmxRcfRichCarousel,"AmxRcfRichCarousel");this.Init(a,b,d,e,g,h,k,m,o,q,s,t,L,B)};AmxRcfRichCarousel.prototype.Init=function(a,b,d,e,g,h,k,m,n,o,q,s,t,B){this._props={};this._amxNode=a;this.setProperty("auxiliaryOffset",b);this.setProperty("auxiliaryPopOut",d);this.setProperty("auxiliaryScale",e);this.setProperty("clientId",g);this.setProperty("contentDelivery",h);this.setProperty("controlArea",k);this.setProperty("currentItemKey",m);this.setProperty("disabled",
n);this.setProperty("displayItems",o);this.setProperty("fetchSize",q);this.setProperty("halign",s);this.setProperty("orientation",t);this.setProperty("valign",B)};AmxRcfRichCarousel.prototype.getAuxiliaryOffset=function(){return this.getProperty("auxiliaryOffset")};AmxRcfRichCarousel.prototype.getAuxiliaryPopOut=function(){return this.getProperty("auxiliaryPopOut")};AmxRcfRichCarousel.prototype.getAuxiliaryScale=function(){return this.getProperty("auxiliaryScale")};AmxRcfRichCarousel.prototype.getClientId=
function(){return this.getProperty("clientId")};AmxRcfRichCarousel.prototype.getContentDelivery=function(){return this.getProperty("contentDelivery")};AmxRcfRichCarousel.prototype.getControlArea=function(){return this.getProperty("controlArea")};AmxRcfRichCarousel.prototype.getCurrentItemKey=function(){return this.getProperty("currentItemKey")};AmxRcfRichCarousel.prototype.setCurrentItemKey=function(a){var b=this.getCurrentItemKey();AmxRcfLogger.LOGGER.info('Updating currentItemKey to "'+a+'" (it was "'+
b+'")');this.setProperty("currentItemKey",a);var d={currentItemKey:a};adf.mf.api.amx.setClientState(this.getClientId(),d);d=this.getPeer();d.ComponentCurrentItemKeyChanged(this,d.getDomElement(),a,b)};AmxRcfRichCarousel.prototype.getDisabled=function(){return this.getProperty("disabled")};AmxRcfRichCarousel.prototype.getDisplayItems=function(){return this.getProperty("displayItems")};AmxRcfRichCarousel.prototype.getFetchSize=function(){return this.getProperty("fetchSize")};AmxRcfRichCarousel.prototype.getHalign=
function(){return this.getProperty("halign")};AmxRcfRichCarousel.prototype.getOrientation=function(){return this.getProperty("orientation")};AmxRcfRichCarousel.prototype.getPeer=function(){return this.getProperty("peer")};AmxRcfRichCarousel.prototype.setPeer=function(a){this.setProperty("peer",a)};AmxRcfRichCarousel.prototype.getValign=function(){return this.getProperty("valign")};AmxRcfRichCarousel.prototype.queueEvent=function(){AmxRcfLogger.LOGGER.finer("AmxRcfRichCarousel.queueEvent")};AmxRcfRichCarousel.prototype.getProperty=
function(a){return this._props[a]};AmxRcfRichCarousel.prototype.setProperty=function(a,b){this._props[a]=b};AmxRcfRichCarousel.CURRENT_ITEM_KEY="currentItemKey";AmxRcfCarouselPeer=function(a,b){n.initClass(AmxRcfCarouselPeer,"AmxRcfCarouselPeer");this.Init(a,b)};AmxRcfCarouselPeer.prototype.Init=function(b,d){b.setPeer(this);this._component=b;AmxRcfAssert.assertDomElement(d);this._domElement=d;this._displayItems=b.getDisplayItems();this._controlArea=b.getControlArea();var e=AmxRcfAgent.AGENT,g=b.getClientId();
this._db=e.getElementById(AmxRcfRichUIPeer.createSubId(g,"db"),d);this._it=e.getElementById(AmxRcfRichUIPeer.createSubId(g,"it"),d);"small"!=this._controlArea&&"compact"!=this._controlArea&&"none"!=this._controlArea&&(this._sc=e.getElementById(AmxRcfRichUIPeer.createSubId(g,"sc"),d));"compact"!=this._controlArea&&"none"!=this._controlArea&&(this._si=e.getElementById(AmxRcfRichUIPeer.createSubId(g,"si"),d));if("none"!=this._controlArea&&(this._sp=e.getElementById(AmxRcfRichUIPeer.createSubId(g,"sp"),
d),this._sn=e.getElementById(AmxRcfRichUIPeer.createSubId(g,"sn"),d),null!=this._si)){var h=this._si.id;this._sp.setAttribute("aria-labelledby",h);this._sn.setAttribute("aria-labelledby",h)}if("full"==this._controlArea)this._sb=e.getElementById(AmxRcfRichUIPeer.createSubId(g,"sb"),d),this._st=e.getElementById(AmxRcfRichUIPeer.createSubId(g,"st"),d);else if("small"==this._controlArea||"compact"==this._controlArea)this._ca=e.getElementById(AmxRcfRichUIPeer.createSubId(g,"ca"),d);AmxRcfAssert.assert(b.getClientId()==
d.id,"Component and DOM ID mismatch when creating peer.");a(d).bind("click",this,AmxRcfCarouselPeer.HandleDomClick);a(d).bind("mouseout",this,AmxRcfCarouselPeer.HandleDomMouseOut);a(d).bind("keydown",this,AmxRcfCarouselPeer.HandleDomKeyDown);a(d).bind("touchstart",this,AmxRcfCarouselPeer.HandleDomTouchStart);a(d).bind("touchend",this,AmxRcfCarouselPeer.HandleDomTouchEnd);if("full"==this._controlArea){var k=a(this._st);k.peer=this;k.drag({start:function(a){a.preventDefault();a.stopPropagation();k.peer._duringThumbDrag=
!0},drag:function(a,b){a.preventDefault();a.stopPropagation();k.peer._handleThumbDragPositioning(a,b)},end:function(a,b){a.preventDefault();a.stopPropagation();k.peer._finishThumbDrag(a,b)}})}if(!b.getDisabled()){var m=a(this._db);m.peer=this;m.drag({start:function(a,b){var d=m.peer;d._directManipulationItemKey=null;if(null!=b){var e=Math.abs(b.originalAngle);d._duringDatabodyDrag=d._isVertical&&60<=e&&120>=e||!d._isVertical&&(30>=e||150<=e)}else d._duringDatabodyDrag=!0;d._duringDatabodyDrag&&(a.preventDefault(),
a.stopPropagation())},drag:function(a,b){var d=m.peer;d._duringDatabodyDrag&&(a.preventDefault(),a.stopPropagation(),d._handleDatabodyDragPositioning(a,b))},end:function(a,b){var d=m.peer;d._duringDatabodyDrag&&(a.preventDefault(),a.stopPropagation(),d._finishDatabodyDrag(a,b),d._currentItemKey!=d._directManipulationItemKey&&d._updateCurrentItemKey(d._directManipulationItemKey),d._animateRowsForNewSelectedWrapperElement(d._directManipulationRow,d._directManipulationItemKey),d._directManipulationItemKey=
null,d._directManipulationRow=null)}})}};AmxRcfCarouselPeer.prototype.getDomElement=function(){return this._domElement};AmxRcfCarouselPeer.prototype.getComponent=function(){return this._component};AmxRcfCarouselPeer.prototype._getControlAreaDiv=function(){AmxRcfAssert.assert("small"==this._controlArea||"compact"==this._controlArea,"Carousel peer should not be accessing the control area when controlArea == full or none");return this._ca};AmxRcfCarouselPeer.prototype._getSpinControlDiv=function(){AmxRcfAssert.assert("small"!=
this._controlArea&&"compact"!=this._controlArea&&"none"!=this._controlArea,"Carousel peer should not be accessing the spin control div when controlArea != full");return this._sc};AmxRcfCarouselPeer.prototype._getSpinInfoDiv=function(){AmxRcfAssert.assert("compact"!=this._controlArea&&"none"!=this._controlArea,"Carousel peer should not be accessing the spin info div when controlArea == compact or none");return this._si};AmxRcfCarouselPeer.prototype.InitDomElement=function(){var a=this.getComponent(),
b=this.getDomElement();this._SHRINK_FACTOR=a.getAuxiliaryScale();this._SHIFT_FACTOR=a.getAuxiliaryOffset();this._POP_OUT=a.getAuxiliaryPopOut();this._fetchId=0;this._isVertical="vertical"==a.getOrientation();var d=AmxRcfPage.PAGE.getLookAndFeel();this._useOpacity="none"!=d.getSkinProperty("amx-carousel-tr-overlay-opacity");this._popOutDuration=this._animDuration=0;this._animDuration=parseInt(d.getSkinProperty("amx-carousel-tr-spin-animation-duration"),10);isNaN(this._animDuration)&&(this._animDuration=
0);this._popOutDuration=parseInt(d.getSkinProperty("amx-carousel-tr-pop-out-animation-duration"),10);isNaN(this._popOutDuration)&&(this._animDuration=0);this._setupInitialPositions(a,b)};AmxRcfCarouselPeer.prototype._setupInitialPositions=function(a,b){this._initiallyPositioned||("small"==this._controlArea||"compact"==this._controlArea?this._setupInitialCompactOrSmallPositions(b,a.getClientId(),this._controlArea):"none"==this._controlArea?this._setupInitialNonePositions(b,a.getClientId()):this._setupInitialFullPositions(b,
a.getClientId()))};AmxRcfCarouselPeer.prototype._setupInitialFullPositions=function(){var a=this._it,b=this._db,d=this._getSpinInfoDiv(),e=this._getSpinControlDiv(),g=0,h;this._isVertical?(h=15*d.offsetWidth,0!=h&&(this._initiallyPositioned=!0),d.style.width=h+"px",g+=h+4,AmxRcfCarouselPeer._isRTL()?e.style.left=g+"px":e.style.right=g+"px",h=AmxRcfDomUtils.getFirstChildElement(e).offsetWidth,0==h&&(AmxRcfLogger.LOGGER.fine("It appears that the carousel DOM or CSS is not yet loaded in time for DOM sizing because the offsetHeight of the first element in the following HTML was detected to be zero:\n"+
e.innerHTML+"\n -- A potential workaround would be to reload the page in hopes the browser has cached the resources.\n -- An attempt to resize will be performed now."),this._initiallyPositioned=!1,AmxRcfPage.PAGE.getDomWindow().setTimeout(AmxRcfCarouselPeer.__attemptInitialSize,500)),e.style.width=h+"px",g+=h,AmxRcfCarouselPeer._isRTL()?b.style.left=g+"px":b.style.right=g+"px",this._nonDatabodySize=g,this._heightOfBoxUnderCurrentItem=a.offsetHeight):(h=d.offsetHeight,0!=h&&(this._initiallyPositioned=
!0),g+=h,e.style.bottom=g+"px",h=AmxRcfDomUtils.getFirstChildElement(e).offsetHeight,0==h&&(AmxRcfLogger.LOGGER.fine("It appears that the carousel DOM or CSS is not yet loaded in time for DOM sizing because the offsetHeight of the first element in the following HTML was detected to be zero:\n"+e.innerHTML+"\n -- A potential workaround would be to reload the page in hopes the browser has cached the resources.\n -- An attempt to resize will be performed now."),this._initiallyPositioned=!1,AmxRcfPage.PAGE.getDomWindow().setTimeout(AmxRcfCarouselPeer.__attemptInitialSize,
500)),e.style.height=h+"px",g+=h,a.style.left="0px",a.style.right="0px",a.style.bottom=g+"px",h=a.offsetHeight,g+=h,b.style.bottom=g+"px",this._nonDatabodySize=g)};AmxRcfCarouselPeer.__attemptInitialSize=function(){a(window).resize()};AmxRcfCarouselPeer.prototype.HasInitialSize=function(){return this._initiallyPositioned};AmxRcfCarouselPeer.prototype._setupInitialNonePositions=function(){var a=this._it,b=a.offsetHeight,d=this._db;this._isVertical?(this._initiallyPositioned=!0,this._nonDatabodySize=
0,this._heightOfBoxUnderCurrentItem=b):(this._initiallyPositioned=!0,a.style.left="0px",a.style.right="0px",a.style.bottom="10px",b+=10,d.style.bottom=b+"px",this._nonDatabodySize=b)};AmxRcfCarouselPeer.prototype._setupInitialCompactOrSmallPositions=function(a,b,d){var e=AmxRcfAgent.AGENT,a=this._getControlAreaDiv(),g=e.getComputedStyle(a),b=parseInt(g.paddingLeft,10),h=parseInt(g.paddingRight,10),k=parseInt(g.paddingTop,10),g=parseInt(g.paddingBottom,10),m=this._it,n=e.getComputedStyle(m),e=parseInt(n.paddingTop,
10),o=parseInt(n.paddingBottom,10),n=this._sp,q=this._sn,s=this._db,t=0;if("compact"!=d){var B=this._getSpinInfoDiv(),d=B.offsetHeight,t=t+d;B.style.bottom=g+"px"}d=m.offsetHeight;0!=d&&(this._initiallyPositioned=!0);var d=Math.max(n.offsetHeight,d,q.offsetHeight),t=t+d,B=AmxRcfCarouselPeer._isRTL(),D=n.style;D.top=k+"px";B?D.right=h+"px":D.left=b+"px";D=q.style;D.top=k+"px";B?D.left=b+"px":D.right=h+"px";m=m.style;m.top=k+"px";e=d-e-o;m.height=e+"px";m.lineHeight=e+"px";B?(m.right=h+n.offsetWidth+
"px",m.left=b+q.offsetWidth+"px"):(m.left=b+n.offsetWidth+"px",m.right=h+q.offsetWidth+"px");a.style.top="auto";a.style.height=t+"px";t=t+k+g;this._isVertical?(this._nonDatabodySize=0,this._heightOfBoxUnderCurrentItem=t):(a.style.bottom=AmxRcfCarouselPeer._ITEM_PADDING+"px",t+=AmxRcfCarouselPeer._ITEM_PADDING,s.style.bottom=t+"px",this._nonDatabodySize=t)};AmxRcfCarouselPeer.prototype.ComponentRemoved=function(){this._stopAnimation(!0)};AmxRcfCarouselPeer.prototype.MoreRowsArrived=function(){for(var a=
this._db.childNodes,b=null,d=a.length-1;0<=d;d--){var e=a[d];if("DIV"==e.tagName&&null!=e.getAttribute("data-amxStartRow")){b=a[d];break}}null!=b&&0<b.childNodes.length&&(a=b.getAttribute("data-amxRowCount"),this._rowCount!=a&&(this._rowCount=this._knownRowCount=a,this._positionThumbAndSpinInfo()),a=this.getDomElement(),this.ResizeNotify(null,null,a.offsetWidth,a.offsetHeight))};AmxRcfCarouselPeer.prototype.ResizeNotify=function(a,b,d,e){if(this._virtInitialized)this._sizeDatabody(this._db,d,e);else{a=
this._db;b=a.childNodes;d=null;for(e=b.length-1;0<=e;e--){var g=b[e];if("DIV"==g.tagName&&null!=g.getAttribute("data-amxStartRow")){d=b[e];break}}null!=d&&0<d.childNodes.length&&"0"!=d.getAttribute("data-amxrowcount")?this._initVirtualization(d,!0):(this._addEmptyTextToDataBody(a,a),this._isEmpty=!0)}};AmxRcfCarouselPeer.prototype._addEmptyTextToDataBody=function(a,b){if("oneByOne"==this._displayItems){var d=a.style;d.top="0px";d.bottom="0px";d.left="0px";d.right="0px"}var d=b.childNodes.length,e=
a.ownerDocument,g=e.createElement("div");a.appendChild(g);var h=g.style;h.position="absolute";h.verticalAlign="middle";h.textAlign="center";h.left=h.right="0px";h.top="50%";e=e.createElement("div");g.appendChild(e);h=e.style;h.position="relative";AmxRcfAgent.getAgent().getPlatform()!=AmxRcfAgent.WEBKIT_PLATFORM&&(h.top="-50%");for(g=0;g<d;g++)h=b.firstChild,b.removeChild(h),1==h.nodeType&&null!=h.getAttribute("data-amxStartRow")||e.appendChild(h);this._it.style.display="none";"small"==this._controlArea||
"compact"==this._controlArea?this._getControlAreaDiv().style.display="none":"none"!=this._controlArea&&"oneByOne"==this._displayItems&&(this._getSpinControlDiv().style.display="none");this._isEmpty=!0};AmxRcfCarouselPeer.prototype._getNumberOfRows=function(a){return a.childNodes.length};AmxRcfCarouselPeer.prototype._initVirtualization=function(b,d){this._virtInitialized=!0;var e=AmxRcfAgent.AGENT,g=e.getIntAttribute(b,"data-amxStartRow",0),h=this._getNumberOfRows(b),k=this.getComponent(),m=this._db;
this._rowCount=e=e.getIntAttribute(b,"data-amxRowCount",-1);this._knownRowCount=-1==e?g+h:e;if(e=b.getAttribute("data-amxCurrentItemKey"))k.setProperty("currentItemKey",e,!1,q.PROPAGATE_NEVER),this._currentItemKey=e;var n=this.getDomElement(),o=n.clientWidth,n=n.clientHeight;if(!d){for(var s=m.childNodes,t=s.length-1;0<=t;t--)m.removeChild(s[t]);m.appendChild(b)}b.startRow=g;b.numRows=h;k=k.getDisabled();if(!k&&!this._isEmpty&&(g=this.getDomElement(),a(g).bind("mousewheel",this,AmxRcfCarouselPeer._handleMouseWheel),
"none"!=this._controlArea)){var G=this._sp,L=this._sn,g=a(G),h=a(L);g.tap(this,AmxRcfCarouselPeer._handlePreviousClick);h.tap(this,AmxRcfCarouselPeer._handleNextClick);k||(k="mousedown",s="mouseup",amx.hasTouch()&&(k="touchstart",s="touchend"),g.bind(k,function(){adf.mf.internal.amx.addCSSClassName(G,"amx-selected")}),g.bind(s,function(){adf.mf.internal.amx.removeCSSClassName(G,"amx-selected")}),g.bind("mouseout",function(){adf.mf.internal.amx.removeCSSClassName(G,"amx-selected")}),h.bind(k,function(){adf.mf.internal.amx.addCSSClassName(L,
"amx-selected")}),h.bind(s,function(){adf.mf.internal.amx.removeCSSClassName(L,"amx-selected")}),h.bind("mouseout",function(){adf.mf.internal.amx.removeCSSClassName(L,"amx-selected")}))}this._sizeDatabody(m,o,n);m.style.zIndex=1;e&&this._updateTextForNewCurrentItemKey(e)};AmxRcfCarouselPeer.prototype._handleHover=function(a){var b=a.data,d=b.getComponent();b._handleInstanceHover(d,a)};AmxRcfCarouselPeer.prototype._handleInstanceHover=function(a,b){if(!("hover"!=this._POP_OUT||"oneByOne"==this._displayItems)&&
this._virtInitialized&&!this._duringThumbDrag&&!this._duringDatabodyDrag){var d=AmxRcfAgent.AGENT.getEventTarget(b);if(d&&!this._isEmpty){var e=this._getRowKeyAndRow(d,this.getDomElement());if(null!=e&&(d=e[0],e=e[1],null!=d))if(this._currentItemKey!=d&&null!=d){this._hoverKeyPreventingTaps=d;var g=this._findRowByKey(this._currentItemKey,!0);if(!g){AmxRcfLogger.LOGGER.severe('During HandleDomTouchMove, a null rowData was found for "'+this._currentItemKey+'".');return}this._animateRowsForNewSelectedWrapperElement(g.row,
null,{hoverKey:d,hoverWrapper:e})}else this._cleanUpHoverState()}null!=this.touchTimoutEvent&&(clearTimeout(this.touchTimoutEvent),this.touchTimoutEvent=null)}};AmxRcfCarouselPeer.prototype._cleanUpHoverState=function(){if(null!=this._lastHoverKey){var a=!0;this._currentItemKey==this._lastHoverKey&&(a=!1);this._lastHoverKey=null;if(a){a=this._findRowByKey(this._currentItemKey,!0);if(!a){AmxRcfLogger.LOGGER.severe('During _cleanUpHoverState, a null rowData was found for "'+this._currentItemKey+'".');
return}this._animateRowsForNewSelectedWrapperElement(a.row,null,{hoverKey:null,hoverWrapper:null})}}null!=this._hoverKeyPreventingTaps&&(this._hoverKeyPreventingTaps=null)};AmxRcfCarouselPeer.HandleDomMouseOut=function(a){a.data._handleComponentMouseOut(a)};AmxRcfCarouselPeer.prototype._handleComponentMouseOut=function(a){if(this._virtInitialized&&this._incrementMouseHoldMode){a=AmxRcfAgent.AGENT.getEventTarget(a);this.getComponent().getClientId();var b=this._sn;if(a.id==this._sp.id||a.id==b.id)self.clearInterval(this._incrementMouseHoldTimerId),
this._incrementMouseHoldMode=this._incrementMouseHoldTimerId=null}};AmxRcfCarouselPeer.HandleDomTouchStart=function(a){a.data._handleComponentTouchStart(a)};AmxRcfCarouselPeer.prototype._handleComponentTouchStart=function(a){if(this._virtInitialized){null!=this.touchTimoutEvent&&clearTimeout(this.touchTimoutEvent);this.touchTimoutEvent=setTimeout(this._handleHover,200,a);var b=AmxRcfAgent.AGENT,d=b.getEventTarget(a);if(b.isLeftButton(a)&&d&&d.id&&(this.getComponent().getClientId(),"none"!=this._controlArea&&
(a=this._sn,d.id==this._sp.id||d.id==a.id)))b="prev",d.id==a.id&&(b="next"),this._incrementMouseHoldMode=b,this._incrementMouseHoldTimerId=self.setInterval(n.createInstanceCallback(this,this._initMouseHoldIncrementRepeat),1E3)}};AmxRcfCarouselPeer.HandleDomTouchEnd=function(a){a.data._handleComponentTouchEnd(a)};AmxRcfCarouselPeer.prototype._handleComponentTouchEnd=function(a){if(this._virtInitialized)if(null!=this.touchTimoutEvent&&(clearTimeout(this.touchTimoutEvent),this.touchTimoutEvent=null),
this._incrementMouseHoldMode){var b=AmxRcfAgent.AGENT,d=b.getEventTarget(a);this.getComponent().getClientId();var e=this._sn;if(d.id==this._sp.id||d.id==e.id)self.clearInterval(this._incrementMouseHoldTimerId),this._incrementMouseHoldMode=this._incrementMouseHoldTimerId=null,b.eatEvent(a)}else"hover"==this._POP_OUT&&"oneByOne"!=this._displayItems&&(a=AmxRcfPage.PAGE.getDomWindow(),b=new Function("var c = arguments.callee;c._self._cleanUpHoverStateLater();"),b._self=this,a.setTimeout(b,1))};AmxRcfCarouselPeer.prototype._cleanUpHoverStateLater=
function(){this._cleanUpHoverState()};AmxRcfCarouselPeer.prototype._initMouseHoldIncrementRepeat=function(){self.clearInterval(this._incrementMouseHoldTimerId);this._incrementMouseHoldTimerId=self.setInterval(n.createInstanceCallback(this,this._incrementCarouselPosition),100)};AmxRcfCarouselPeer.prototype._incrementCarouselPosition=function(){"prev"==this._incrementMouseHoldMode?this._initiateSpinPreviousAnimation():"next"==this._incrementMouseHoldMode&&this._initiateSpinNextAnimation()};AmxRcfCarouselPeer.prototype._handleThumbDragPositioning=
function(a,b){this._lastDrag=(new Date).getTime();var d=AmxRcfAgent.AGENT,e=this._sb,g=b.pageX,h=b.pageY;this._isVertical?(g=e.offsetHeight,e=d.getElementTop(e)+g-h,e=1-e/g,this._updateTransientDragPosition(e),this._initiateSpinPercentAnimation(e)):(d=g-d.getElementLeft(e),d/=e.offsetWidth,AmxRcfCarouselPeer._isRTL()&&(d=1-d),this._updateTransientDragPosition(d),this._initiateSpinPercentAnimation(d))};AmxRcfCarouselPeer.prototype._finishThumbDrag=function(a,b){delete this._duringThumbDrag;this._handleThumbDragPositioning(a,
b);this._doResizeNotifyOnDisplayedChildren()};AmxRcfCarouselPeer.prototype._handleDatabodyDragPositioning=function(a,b){if(!this.getComponent().getDisabled()&&!this._isEmpty){this._lastDrag=(new Date).getTime();var d,e;this._isVertical?(d=b.startPageY,e=b.pageY):(d=b.startPageX,e=b.pageX);var g=this._findRowByKey(this._currentItemKey,!0);g&&(g=g.row,d=e-d,AmxRcfCarouselPeer._isRTL()&&(d*=-1),this._sizeDatabodyForDirectManipulation(g,d))}};AmxRcfCarouselPeer.prototype._finishDatabodyDrag=function(){delete this._duringDatabodyDrag;
this._queuedScrollAmount=null};AmxRcfCarouselPeer.prototype._getRowIndexFromThumbPos=function(){var a=AmxRcfAgent.AGENT;if("small"==this._controlArea||"compact"==this._controlArea||"none"==this._controlArea)a=this._getCurrentPercent();else{var b=this._st,d=this._sb;if(this._isVertical)var e=d.offsetHeight,a=a.getElementTop(d)+e-a.getElementTop(b),a=1-a/e;else a=a.getElementLeft(b)-a.getElementLeft(d),a/=d.offsetWidth,AmxRcfCarouselPeer._isRTL()&&(a=1-a)}d=this._rowCount;-1==d&&AmxRcfAssert.assert(!1,
"Unknown carousel item count "+d);return Math.max(0,Math.round(a*(d-1)))};AmxRcfCarouselPeer.HandleDomClick=function(a){a.data._handleComponentClick(a)};AmxRcfCarouselPeer.prototype._handleComponentClick=function(a){if(!(null!=this._lastDrag&&100>(new Date).getTime()-this._lastDrag||null!=this._hoverKeyPreventingTaps)){null!=this.touchTimoutEvent&&(clearTimeout(this.touchTimoutEvent),this.touchTimoutEvent=null);var b=AmxRcfAgent.AGENT,d=b.getEventTarget(a);if(d&&!this._isEmpty){var e=this._getRowKeyAndRow(d,
this.getDomElement());null!=e?(d=e[0],e=e[1],null!=d&&b.isLeftButton(a)&&this._handleItemClick(a,d,e)):"small"!=this._controlArea&&"compact"!=this._controlArea&&"none"!=this._controlArea&&(this.getComponent().getClientId(),e=this._sb,d.id==e.id&&(d=b.getMousePosition(a),this._st.focus(),this._isVertical?(a=e.offsetHeight,b=b.getElementTop(e)+a-d.y,this._initiateSpinPercentAnimation(1-b/a,this._getCurrentPercent())):(b=d.x-b.getElementLeft(e),b/=e.offsetWidth,AmxRcfCarouselPeer._isRTL()&&(b=1-b),this._initiateSpinPercentAnimation(b,
this._getCurrentPercent()))))}}};AmxRcfCarouselPeer.prototype._sizeDatabody=function(a,b,d){var e=AmxRcfAgent.AGENT,g=this.getComponent(),h=this.getDomElement();this._setupInitialPositions(g,h);var k=Math.max(0,b),m=Math.max(0,d),n=this._isVertical;n?k=Math.max(0,k-this._nonDatabodySize):m=Math.max(0,m-this._nonDatabodySize);h=m;n?(m-=this._heightOfBoxUnderCurrentItem,h=k,m<k&&(h=Math.max(0,m-2*AmxRcfCarouselPeer._ITEM_PADDING))):k<m&&(h=Math.max(0,k-2*AmxRcfCarouselPeer._ITEM_PADDING));h=Math.round(Math.max(30,
h-2*AmxRcfCarouselPeer._ITEM_PADDING));this._databodyWidth=k;this._databodyHeight=m;this._selectedSize=h;this._widthMargin=(k-h)/2;this._heightMargin=(m-h)/2;if("small"==this._controlArea||"compact"==this._controlArea){var o=this._getControlAreaDiv(),e=e.getComputedStyle(o),o=o.style,q=0,s=parseInt(e.paddingLeft,10),e=parseInt(e.paddingRight,10);o.width=h-(q+s+e)+"px";o.right="auto";o.left=this._getHalignLeft(n,g.getHalign(),k,h,0)+"px";n&&(o.top=this._getValignTop(n,g.getValign(),m,h,0)+h+"px")}else n&&
(o=this._it,e=e.getComputedStyle(o),o=o.style,q=0+parseInt(e.paddingLeft,10),q+=parseInt(e.paddingRight,10),o.width=h-q+"px",o.left=this._getHalignLeft(!0,g.getHalign(),k,h,0)+(AmxRcfCarouselPeer._isRTL()?parseInt(a.offsetLeft):0)+"px",o.top=this._getValignTop(!0,g.getValign(),m,h,0)+h+"px");"oneByOne"==this._displayItems&&(e=a.style,e.width=h+"px",e.height=h+"px",e.right="auto",e.bottom="auto",e.left=this._getHalignLeft(n,g.getHalign(),k,h,0)+"px",e.top=this._getValignTop(n,g.getValign(),m,h,0)+
"px");"oneByOne"==this._displayItems&&"small"!=this._controlArea&&"compact"!=this._controlArea&&"none"!=this._controlArea&&(e=this._sp,o=this._sb,q=this._sn,n?(g=g.getValign(),k=e.offsetHeight,b=q.offsetHeight,m=this._getValignTop(!0,g,m,h,0),k=m+k,h=m+h+this._it.offsetHeight-b,e.style.bottom=d-k+"px",o.style.top=k+"px",o.style.bottom=d-h+"px",q.style.top=h+"px"):(d=g.getHalign(),g=e.offsetWidth,m=q.offsetWidth,k=this._getHalignLeft(!1,d,k,h,0),g=k+g,m=k+h-m,o.style.left=g+"px",o.style.right=b-m+
"px",AmxRcfCarouselPeer._isRTL()?(e.style.left=m+"px",q.style.right=b-g+"px"):(e.style.right=b-g+"px",q.style.left=m+"px"),"start"==d?this._it.style.right=b-2*k-h+"px":"end"==d&&(this._it.style.left=2*k+h-b+"px")));AmxRcfAssert.assert(!a.firstChild||this._currentItemKey,"There is no current item in the data block");this._currentItemKey&&((a=this._findRowByKey(this._currentItemKey,!0))?(this._sizeDatabodyForSelectedWrapperElement(a.row,!1),this._queueResizeNotifyOnDisplayedChildren()):AmxRcfLogger.LOGGER.severe("_sizeDatabody failed due to invalid currentItemKey: "+
this._currentItemKey))};AmxRcfCarouselPeer._handlePreviousClick=function(a){a.data._initiateSpinPreviousAnimation()};AmxRcfCarouselPeer._handleNextClick=function(a){a.data._initiateSpinNextAnimation()};AmxRcfCarouselPeer._handleMouseWheel=function(a){a||(a=AmxRcfPage.PAGE.getDomWindow().event);var b=a.wheelDelta,d=a.detail;if(isNaN(b)||isNan(d))b=a.originalEvent.wheelDelta;b=null!=b?-b/4:4*a.detail;d=a.data;d._isVertical&&(b*=-1);d._scrollByMouseWheel(b,!1);AmxRcfAgent.AGENT.eatEvent(a)};AmxRcfCarouselPeer.prototype._scrollByMouseWheel=
function(a){if(30>=Math.abs(a))0<a?this._initiateSpinNextAnimation():0!=a&&this._initiateSpinPreviousAnimation();else{var b=this._db,b=this._isVertical?b.offsetHeight:b.offsetWidth;null!=this._queuedScrollAmount&&(a+=this._queuedScrollAmount);a/=b;this._queuedScrollAmount=null;b=this._getCurrentPercent();this._initiateSpinPercentAnimation(Math.max(0,Math.min(100,100*b+100*a))/100)}};AmxRcfCarouselPeer.prototype._getRowKeyAndRow=function(a,b){AmxRcfAssert.assertDomElement(a);var d=a,e=AmxRcfAgent.AGENT;
if(null==d||1!=d.nodeType)return null;for(var g=e.getAttribute(d,"data-amxRk");null==g;){if(null==d||d==b)return null;d=d.parentNode;if(null==d||1!=d.nodeType)return null;g=e.getAttribute(d,"data-amxRk")}return[g,d]};AmxRcfCarouselPeer.prototype.ComponentCurrentItemKeyChanged=function(a,b,d){this._ignoreCurrentItemSet||(b=this._findRowByKey(d,!1),null==b?AmxRcfAssert.assert(null!=b,"The carousel '"+a.getClientId()+"' does not any item in the current set of fetched items with client key: "+d):(this._currentItemKey=
d,this._sizeDatabodyForSelectedWrapperElement(b.row,!1),this._updateTextForNewCurrentItemKey(d)))};AmxRcfCarouselPeer.prototype._updateCurrentItemKey=function(a){var b=this.getComponent();this._currentItemKey=a;this._ignoreCurrentItemSet=!0;AmxRcfLogger.LOGGER.finer("Update current item key to:",a);b.setCurrentItemKey(a);this._ignoreCurrentItemSet=!1;this._updateTextForNewCurrentItemKey(a);return!0};AmxRcfCarouselPeer.prototype._updateTextForNewCurrentItemKey=function(a){var b=this._findRowByKey(a,
!0);AmxRcfAssert.assert(null!=b,'Unexpected null rowData for key "'+a+'".');if(b){a=AmxRcfDomUtils.getFirstChildElement(b.row);b=this._it;this._waitingForTextClientId=null;AmxRcfAssert.assertDomElement(a);var d=AmxRcfAgent.AGENT.getAttribute(a,"data-amxtext"),d=null==d?"":d;b.title=d;b.innerHTML=d;this._updateSelectedItemClass(a)}};AmxRcfCarouselPeer.prototype._updateSelectedItemClass=function(a){for(var b=AmxRcfPage.PAGE.getLookAndFeel().getStyleClass("p_AMXSelected"),d=this._db.firstChild.childNodes,
e=d.length,g=0;g<e;++g){var h=d[g];if(adf.mf.internal.amx.removeCSSClassName(h,b)){h.setAttribute("aria-hidden","true");break}}null!=a&&(a=a.parentNode,adf.mf.internal.amx.addCSSClassName(a,b),a.setAttribute("aria-hidden","false"))};AmxRcfCarouselPeer.prototype._queueResizeNotifyOnDisplayedChildren=function(){this._pendingResizeNotify&&(window.clearTimeout(this._pendingResizeNotify),delete this._pendingResizeNotify);var a=AmxRcfPage.PAGE.getDomWindow(),b=new Function("var c = arguments.callee;c._self._delRes();");
b._self=this;this._pendingResizeNotify=a.setTimeout(b,1)};AmxRcfCarouselPeer.prototype._delRes=function(){this._doResizeNotifyOnDisplayedChildren()};AmxRcfCarouselPeer.prototype._handleItemClick=function(a,b,d){this._currentItemKey!=b&&null!=b&&this._initiateSpinSpecificExistingItemAnimation(b,d)};AmxRcfCarouselPeer.prototype._findRowByKey=function(a,b){for(var d=null,e=this._db.firstChild,g=e.childNodes,h=0;h<g.length&&!d;h++){var k=g[h],m=k.getAttribute("data-amxRk");if(a==m){d={row:k,index:e.startRow+
h,block:e};break}}b&&null==d&&0<g.length&&(g=g[0],d={row:g,index:e.startRow,block:e},this._updateCurrentItemKey(AmxRcfAgent.AGENT.getAttribute(g,"data-amxRk"),!0));return d};AmxRcfCarouselPeer.prototype._grabFocus=function(){AmxRcfFocusUtils.focusElement(this.getDomElement())};AmxRcfCarouselPeer.HandleDomKeyDown=function(a){a.data._handleComponentKeyDown(a)};AmxRcfCarouselPeer.prototype._handleComponentKeyDown=function(a){var b=AmxRcfAgent.AGENT,d=b.getEventTarget(a),e=a.keyCode,g=!0,h=d.id;d&&9==
e&&(g=this._handleTabKeyDown(d,a.shiftKey));if(g&&d&&h&&!this._isEmpty){var d=this.getComponent().getClientId(),k=!1;"small"!=this._controlArea&&"compact"!=this._controlArea&&"none"!=this._controlArea&&(k=h==this._st.id);if(k||h==d)switch(h=AmxRcfCarouselPeer._isRTL(),e){case 38:this._isVertical&&(a.shiftKey?this._initiateSpinStartAnimation():this._initiateSpinPreviousAnimation(),g=!1);break;case 40:this._isVertical&&(a.shiftKey?this._initiateSpinEndAnimation():this._initiateSpinNextAnimation(),g=
!1);break;case 39:this._isVertical||(h?a.shiftKey?this._initiateSpinStartAnimation():this._initiateSpinPreviousAnimation():a.shiftKey?this._initiateSpinEndAnimation():this._initiateSpinNextAnimation(),g=!1);break;case 37:this._isVertical||(h?a.shiftKey?this._initiateSpinEndAnimation():this._initiateSpinNextAnimation():a.shiftKey?this._initiateSpinStartAnimation():this._initiateSpinPreviousAnimation(),g=!1)}}g||b.eatEvent(a)};AmxRcfCarouselPeer.prototype._handleTabKeyDown=function(a,b){var d=this._currentItemKey;
if(!d)return!0;var e=!0,g=this.getDomElement(),h=adf.mf.internal.amx.isAncestorOrSelf(this._db,a),k;k="none"==this._controlArea?AmxRcfFocusUtils.getNextTabStop(this._it,null,!0):this._sp;var m=!1,n=null;if(d=this._findRowByKey(d,!1))n=d.row,m=adf.mf.internal.amx.isAncestorOrSelf(n,a);b?h?m?AmxRcfFocusUtils.getFirstTabStop(n,!1)==a&&(AmxRcfFocusUtils.focusElement(g),e=!1):(AmxRcfFocusUtils.focusElement(g),e=!1):adf.mf.internal.amx.isAncestorOrSelf(k,a)&&(AmxRcfFocusUtils.focusLastTabStop(n)||AmxRcfFocusUtils.focusElement(g),
e=!1):h?m?AmxRcfFocusUtils.getLastTabStop(n,!1)==a&&(AmxRcfFocusUtils.focusElement(k),e=!1):(AmxRcfFocusUtils.focusElement(k),e=!1):a==g&&(AmxRcfFocusUtils.focusFirstTabStop(n)||AmxRcfFocusUtils.focusElement(k),e=!1);return e};AmxRcfCarouselPeer.prototype._getNextRowKeyAndRow=function(a){if(a){for(var b=AmxRcfAgent.AGENT,d={},e=this._db.firstChild.childNodes,g=e.length,h=0;h<g;++h){var k=e[h],m=b.getAttribute(k,"data-amxRk");if(null!=m)if(null==a){d.rowKey=m;d.row=k;break}else if(m==a){d.lastRowKeyInView=
m;if(h+1<g){k=e[h+1];m=b.getAttribute(k,"data-amxRk");if(null==m)break;d.rowKey=m;d.row=k}break}}return d}};AmxRcfCarouselPeer.prototype._getPreviousRowKeyAndRow=function(a){if(a){for(var b=AmxRcfAgent.AGENT,d=this._db,e={},g=d.firstChild.childNodes,h=g.length-1;0<=h;--h){var k=g[h],m=b.getAttribute(k,"data-amxRk");if(null!=m)if(null==a){e.rowKey=m;e.row=k;break}else if(m==a){e.lastRowKeyInView=m;if(0<=h-1){k=g[h-1];m=b.getAttribute(k,"data-amxRk");if(null==m)break;e.rowKey=m;e.row=k}else 0==b.getIntAttribute(d.firstChild,
"data-amxStartRow",-1)&&(e.isAtTop=!0);break}}return e}};AmxRcfCarouselPeer._isRTL=function(){return AmxRcfPage.PAGE.getLocaleContext().isRightToLeft()};AmxRcfCarouselPeer.prototype._sizeDatabodyForDirectManipulation=function(a,b){if(0==b)this._sizeDatabodyForSelectedWrapperElement(a,!0);else{var d=this._selectedSize,e=0;0!=d&&(e="oneByOne"==this._displayItems?b/d:b/(d*this._SHIFT_FACTOR));var g=a;if(1<=e)for(;1<=e;){var h=AmxRcfDomUtils.getPreviousElement(g);if(null==h){1<e&&(e=1+(e-1)/3);break}else g=
h,--e}else if(-1>=e)for(;-1>=e;)if(h=AmxRcfDomUtils.getNextElement(g),null==h){-1>e&&(e=-1+(e+1)/3);break}else g=h,++e;var k=g;0.5<e?(h=AmxRcfDomUtils.getPreviousElement(g),null!=h&&(g=h)):-0.5>e&&(h=AmxRcfDomUtils.getNextElement(g),null!=h&&(g=h));this._directManipulationRow=g;this._directManipulationItemKey=AmxRcfAgent.AGENT.getAttribute(g,"data-amxRk");var m=this.getComponent(),h=m.getHalign(),m=m.getValign(),n=this._isVertical,o=d,q=0,s=1;"oneByOne"==this._displayItems?this._sizeDatabodyForSelectedWrapperElement(g,
!0):(q=d*this._SHIFT_FACTOR,o=Math.round(d*this._SHRINK_FACTOR),g=100*this._SHRINK_FACTOR,q*=e,o=d+(o-d)*e*(0>e?-1:1),s=Math.max(1,Math.abs((100-g)*e)),this._positionItem(k,o,q,3E3,n,m,h,s,!0),d=3E3,0.5<e&&(d+=2),this._positionSiblings(k,d,n,m,h,!0,e),d=3E3,-0.5>e&&(d+=2),this._positionSiblings(k,d,n,m,h,!1,e))}};AmxRcfCarouselPeer.prototype._sizeDatabodyForSelectedWrapperElement=function(a,b){b||this._stopAnimation(!0);var d=this._selectedSize,e=this.getComponent(),g=e.getHalign(),e=e.getValign(),
h=this._isVertical;this._positionItem(a,d,0,3E3,h,e,g,1,!1);this._positionSiblings(a,3E3,h,e,g,!0,0);this._positionSiblings(a,3E3,h,e,g,!1,0);this._positionThumbAndSpinInfo()};AmxRcfCarouselPeer.prototype._doResizeNotifyOnDisplayedChildren=function(){for(var b=this._db.firstChild.childNodes,d=b.length,e=0;e<d;++e){var g=b[e];if("block"==g.style.display){var h=AmxRcfDomUtils.getFirstChildElement(g);if(null!=h&&(g=h.id,null!=g&&(h=h.childNodes,null!=h&&1==h.length))){h=h[0];try{a(h).resize()}catch(k){AmxRcfLogger.LOGGER.severe('Problem calling resize on a child of carouselItem id="'+
g+'":'),AmxRcfLogger.LOGGER.severe(k),AmxRcfLogger.LOGGER.severe(h)}}}}};AmxRcfCarouselPeer.prototype._updateTransientDragPosition=function(a){if(!this.getComponent().getDisabled()&&!this._isEmpty){var b=this._rowCount;-1==b&&AmxRcfAssert.assert(!1,"Unknown carousel item count "+b);a=Math.max(0,a*(b-1));this._positionThumbAndSpinInfo(Math.min(a,b-1))}};AmxRcfCarouselPeer.prototype._updateSpinInfoDiv=function(a){var b=this._getSpinInfoDiv(),d=this._rowCount,e;this._duringThumbDrag&&(a=Math.round(a));
d=-1==d?a:adf.mf.resource.getInfoString("AMXInfoBundle","amx_carousel_TIP_SPIN_INFO_X_OF_Y",a,d);null==d&&(d=a);b.innerHTML="<span>"+d+"</span>";if("small"!=this._controlArea&&"compact"!=this._controlArea&&"none"!=this._controlArea){var a=b.style,g=this._st;if(this._isVertical)e=this._sp,a.paddingTop=Math.round(e.offsetTop+e.offsetHeight+g.offsetTop+g.offsetHeight/2-b.firstChild.offsetHeight/2)+"px";else{var b=b.firstChild.offsetWidth,d=g.offsetLeft,g=g.offsetWidth,h;e=AmxRcfCarouselPeer._isRTL()?
this._sn:this._sp;h=e.offsetWidth;e=e.offsetLeft;a.textAlign="left";a.paddingLeft=Math.round(e+h+d+g/2-b/2)+"px"}}};AmxRcfCarouselPeer.prototype._positionSiblings=function(a,b,d,e,g,h,k){var m=this._selectedSize,n=b,a=h?AmxRcfDomUtils.getPreviousElement(a):AmxRcfDomUtils.getNextElement(a);if("oneByOne"==this._displayItems)for(k=h?-m:m;null!=a;)this._positionItem(a,m,k,b-1,d,e,g,1,!0),a=h?AmxRcfDomUtils.getPreviousElement(a):AmxRcfDomUtils.getNextElement(a);else for(var b=this._SHRINK_FACTOR,o=this._SHIFT_FACTOR,
q=0,s=100;null!=a;){var t=q,B=m,D=s,q=q+m*o,m=Math.round(m*b),s=s*b;h?0>k?(t=q+m*o,B=Math.round(m*b),D=s*b,t=q-(t-q)*k,B=m-(B-m)*k,D=s-(D-s)*k):(t=q+(t-q)*k,B=m+(B-m)*k,D=s+(D-s)*k):0<k?(t=q+m*o,B=Math.round(m*b),D=s*b,t=q+(t-q)*k,B=m+(B-m)*k,D=s+(D-s)*k):(t=q-(t-q)*k,B=m-(B-m)*k,D=s-(D-s)*k);this._positionItem(a,B,h?-t:t,--n,d,e,g,Math.max(1,100-D),!0);a=h?AmxRcfDomUtils.getPreviousElement(a):AmxRcfDomUtils.getNextElement(a)}};AmxRcfCarouselPeer.prototype._getAuxShiftSizeAndOpacity=function(a){var b=
this._SHRINK_FACTOR,d=this._SHIFT_FACTOR,e=0,g=this._selectedSize,h=100;if("oneByOne"==this._displayItems)e=a,h*=b;else for(var k=0;k<a;k++)e+=g*d,g=Math.round(g*b),h*=b;return{auxShift:e,auxSize:g,auxOpacity:Math.max(1,100-h)}};AmxRcfCarouselPeer.prototype._positionItem=function(a,b,d,e,g,h,k,m,n){var o=this._databodyWidth,q=this._databodyHeight,s=a.style;s.display=5<b||!n?"block":"none";s.width=b+"px";s.height=b+"px";!n&&"oneByOne"==this._displayItems?(s.top="0px",s.left="0px"):(s.top=this._getValignTop(g,
h,q,b,d)+"px",s.left=this._getHalignLeft(g,k,o,b,d)+"px");s.zIndex=e;a=AmxRcfDomUtils.getLastChildElement(a);null!=a&&(a.style.display=n?"block":"none",this._useOpacity?AmxRcfAgent.AGENT.setOpacity(a,m):a.style.backgroundColor="transparent")};AmxRcfCarouselPeer.prototype._getHalignLeft=function(a,b,d,e,g){if(0!=g&&"oneByOne"==this._displayItems)return a?0:0>g?-this._selectedSize:this._selectedSize;a?a="start"==b?AmxRcfCarouselPeer._isRTL()?d-e-this._widthMargin:this._widthMargin:"end"==b?AmxRcfCarouselPeer._isRTL()?
this._widthMargin:d-e-this._widthMargin:0.5*(d-e):(a="start"==b?0.2*(d-e)+g:"end"==b?0.8*(d-e)+g:0.5*(d-e)+g,AmxRcfCarouselPeer._isRTL()&&(a=d-e-a));return Math.round(a)};AmxRcfCarouselPeer.prototype._getValignTop=function(a,b,d,e,g){if(0!=g&&"oneByOne"==this._displayItems)return a?0>g?-this._selectedSize:this._selectedSize:0;a?"top"==b?(a=0.2*(d-e)+g,0<g&&(a+=this._heightOfBoxUnderCurrentItem)):"bottom"==b?(a=0.8*(d-e)+g,0<g&&(a+=0.25*this._heightOfBoxUnderCurrentItem)):(a=0.5*(d-e)+g,0<g&&(a+=this._heightOfBoxUnderCurrentItem)):
a="top"==b?this._heightMargin:"bottom"==b?d-e-this._heightMargin:0.5*(d-e);return Math.round(a)};AmxRcfCarouselPeer.prototype._positionThumbAndSpinInfo=function(a){if(void 0==a){if(this._duringThumbDrag)return;a=this._findRowByKey(this._currentItemKey,!0);if(null==a){AmxRcfLogger.LOGGER.severe("Thumb details failed: "+this._currentItemKey+", "+a);return}a=a.index}var b=this._rowCount;-1==b&&(b=this._knownRowCount,AmxRcfAssert.assert(!1,"Unknown carousel item count "+b));var d=Math.max(1,b-1),e=a/
d;this._duringThumbDrag||(this._currentPercent=e);var g=!1;if("small"!=this._controlArea&&"compact"!=this._controlArea&&"none"!=this._controlArea){var g=!0,h=this._sb,k=this._st;this._duringThumbDrag||(this._percentSize=1/d);var m=this._isVertical,n=k[m?"offsetHeight":"offsetWidth"],d=m?(1-a/d)*(h.offsetHeight-n):AmxRcfCarouselPeer._isRTL()?(d-a)/d*(h.offsetWidth-n):a/d*(h.offsetWidth-n);k.style[m?"bottom":"left"]=d+"px"}if(!this._duringThumbDrag&&"none"!=this._controlArea){k=0==a;b=1==e||1==b;if(this.getComponent().getDisabled()||
this._isEmpty)b=k=!0;g||(adf.mf.internal.amx.addOrRemoveCSSClassName(k,this._sp,AmxRcfRichUIPeer.DISABLED_STYLECLASS),adf.mf.internal.amx.addOrRemoveCSSClassName(b,this._sn,AmxRcfRichUIPeer.DISABLED_STYLECLASS));this._sp.setAttribute("aria-disabled",k);this._sn.setAttribute("aria-disabled",b)}"compact"!=this._controlArea&&"none"!=this._controlArea&&this._updateSpinInfoDiv(a+1)};AmxRcfCarouselPeer.prototype._animateRowsForNewSelectedWrapperElement=function(a,b,d){var e=null,g=100,h,k;if(null==d){if(b=
this._findRowByKey(b,!0))h=b.row;this._stopAnimation(!0,h)}else{k=a;h=d.hoverKey;if(null!=h){g=0;if(h==this._lastHoverKey)return;this._lastHoverKey=h;e=d.hoverWrapper}this._stopAnimation(!1)}h=this._SHRINK_FACTOR;var b=this._SHIFT_FACTOR,m=this._databodyWidth,n=this._databodyHeight,o=this._selectedSize,q=this._isVertical,s=this.getComponent(),t=s.getHalign(),s=s.getValign(),B=[],D,J=0,H=0,N="oneByOne"==this._displayItems;if(!N&&(J=this._getHalignLeft(q,t,m,o,0),H=this._getValignTop(q,s,n,o,0),"hover"==
this._POP_OUT)){var P=null,P="small"==this._controlArea||"compact"==this._controlArea?this._getControlAreaDiv():this._it;null!=P&&(D={element:P,properties:{alpha:g}},B.push(D))}D={element:a,properties:{offsetLeft:J,offsetTop:H,width:o,height:o}};var K=a.style;K.zIndex=3E3;K.display="block";B.push(D);K=AmxRcfDomUtils.getLastChildElement(a);null!=K&&(this._useOpacity?(D={element:K,properties:{alpha:0}},B.push(D)):K.style.backgroundColor="transparent");null==d&&this._positionThumbAndSpinInfo();for(var g=
AmxRcfDomUtils.getPreviousElement(a),J=0,H=o,P=100,O=3E3,Q=AmxRcfCarouselPeer._isRTL();null!=g;){N?J=1:(J+=H*b,H=Math.round(H*h));K=g.style;if(g==e){K.zIndex=3001;--O;D=(o-H)/2;q&&(Q?"start"==t?D=o-H:"end"==t&&(D=0):"start"==t?D=0:"end"==t&&(D=o-H));var M=(o-H)/2;q||("top"==s?M=0:"bottom"==s&&(M=o-H));D={element:g,properties:{offsetLeft:this._getHalignLeft(q,t,m,H,-J)-D,offsetTop:this._getValignTop(q,s,n,H,-J)-M,width:o,height:o}}}else K.zIndex=--O,D={element:g,properties:{offsetLeft:this._getHalignLeft(q,
t,m,H,-J),offsetTop:this._getValignTop(q,s,n,H,-J),width:H,height:H}};K.display=5>=H?"none":"block";B.push(D);K=AmxRcfDomUtils.getLastChildElement(g);null!=K&&g!=k&&(K.style.display="block",this._useOpacity?(P*=h,D=g==e?{element:K,properties:{alpha:1}}:{element:K,properties:{alpha:Math.max(1,100-P)}},B.push(D)):K.style.backgroundColor="transparent");g=AmxRcfDomUtils.getPreviousElement(g)}g=AmxRcfDomUtils.getNextElement(a);J=0;H=o;P=100;for(O=3E3;null!=g;)N?J=1:(J+=H*b,H=Math.round(Math.max(1,H*h))),
K=g.style,g==e?(K.zIndex=3001,--O,a=(o-H)/2,q&&(Q?"start"==t?a=o-H:"end"==t&&(a=0):"start"==t?a=0:"end"==t&&(a=o-H)),D=(o-H)/2,q||("top"==s?D=0:"bottom"==s&&(D=o-H)),D={element:g,properties:{offsetLeft:this._getHalignLeft(q,t,m,H,J)-a,offsetTop:this._getValignTop(q,s,n,H,J)-D,width:o,height:o}}):(K.zIndex=--O,D={element:g,properties:{offsetLeft:this._getHalignLeft(q,t,m,H,J),offsetTop:this._getValignTop(q,s,n,H,J),width:H,height:H}}),K.display=5>=H?"none":"block",B.push(D),K=AmxRcfDomUtils.getLastChildElement(g),
null!=K&&g!=k&&(K.style.display="block",this._useOpacity?(P*=h,D=g==e?{element:K,properties:{alpha:1}}:{element:K,properties:{alpha:Math.max(1,100-P)}},B.push(D)):K.style.backgroundColor="transparent"),g=AmxRcfDomUtils.getNextElement(g);this._animator=AmxRcfElementAnimator.animate(AmxRcfElementAnimator.FRAME_METHOD_SLOW_FAST_SLOW,null==d?this._animDuration:this._popOutDuration,B,null,AmxRcfCarouselPeer._spinAnimationComplete,this,null)};AmxRcfCarouselPeer.prototype._stopAnimation=function(a,b){if(null!=
this._animator){var d=b;if(!d){var e=this._findRowByKey(this._currentItemKey,!0);e&&(d=e.row)}e=this._animator;this._animator=null;e.stop();d&&a&&this._sizeDatabodyForSelectedWrapperElement(d,!0)}};AmxRcfCarouselPeer._spinAnimationComplete=function(a){a._animator=null;a._resizeNotifyAfterAnimate()};AmxRcfCarouselPeer.prototype._resizeNotifyAfterAnimate=function(){for(var a=this._db.firstChild.childNodes,b=0;b<a.length;++b){var d=a[b].style;"block"==d.display&&5>=parseInt(d.width,10)&&(d.display="none")}this._doResizeNotifyOnDisplayedChildren();
if(a=this._findRowByKey(this._currentItemKey,!1))a=a.row,a.style.display="block",a=AmxRcfDomUtils.getLastChildElement(a),null!=a&&(a.style.display="none")};AmxRcfCarouselPeer.prototype._initiateSpinStartAnimation=function(){this._initiateSpinPercentAnimation(0)};AmxRcfCarouselPeer.prototype._initiateSpinEndAnimation=function(){this._initiateSpinPercentAnimation(1)};AmxRcfCarouselPeer.prototype._initiateSpinPreviousAnimation=function(){if(!this.getComponent().getDisabled()&&!this._isEmpty){var a=this._currentItemKey,
b=this._getPreviousRowKeyAndRow(a);if(b.row&&b.rowKey)this._pendingTimeout&&window.clearTimeout(this._pendingTimeout),this._updateCurrentItemKey(b.rowKey)&&this._animateRowsForNewSelectedWrapperElement(b.row,a);else{var b=this._getRowIndexFromThumbPos(),d=this._findRowByKey(a,!1);d?b<d.index&&AmxRcfLogger.LOGGER.severe("_initiateSpinPreviousAnimation failed due to invalid long jump: "+a):AmxRcfLogger.LOGGER.severe("_initiateSpinPreviousAnimation failed due to invalid currentItemKey: "+a)}}};AmxRcfCarouselPeer.prototype._initiateSpinNextAnimation=
function(){if(!this.getComponent().getDisabled()&&!this._isEmpty){var a=this._currentItemKey,b=this._getNextRowKeyAndRow(a);if(b.row&&b.rowKey)this._pendingTimeout&&window.clearTimeout(this._pendingTimeout),this._updateCurrentItemKey(b.rowKey)&&this._animateRowsForNewSelectedWrapperElement(b.row,a);else{var b=this._getRowIndexFromThumbPos(),d=this._findRowByKey(a,!1);d?b>d.index&&AmxRcfLogger.LOGGER.severe("_initiateSpinNextAnimation failed due to invalid long jump: "+a):AmxRcfLogger.LOGGER.severe("_initiateSpinNextAnimation failed due to invalid currentItemKey: "+
a)}}};AmxRcfCarouselPeer.prototype._initiateSpinSpecificExistingItemAnimation=function(a,b){this._pendingTimeout&&window.clearTimeout(this._pendingTimeout);if(!this.getComponent().getDisabled()&&!this._isEmpty){var d=this._currentItemKey;this._updateCurrentItemKey(a)&&this._animateRowsForNewSelectedWrapperElement(b,d)}};AmxRcfCarouselPeer.prototype._getCurrentPercent=function(){if(null!=this._currentPercent)return this._currentPercent;AmxRcfAssert.assert(!1,"Illegal state; currentPercent is not known: "+
this._currentPercent)};AmxRcfCarouselPeer.prototype._initiateSpinPercentAnimation=function(a,b){if(!this.getComponent().getDisabled()&&!this._isEmpty){var d=this._db.firstChild,e=d.childNodes,g=this._rowCount,h=d.startRow,k=this._getNumberOfRows(d);-1==g&&(g=this._knownRowCount,AmxRcfAssert.assert(!1,"Unknown carousel item count "+g));var m=g-1,d=Math.max(0,Math.round(a*m)),n=null;null!=b&&(n=Math.max(0,Math.round(b*m)));d=Math.min(d,g-1);n==d&&(d=a<b?Math.max(0,--d):Math.min(m,++d));d>=h&&d<h+k?
(this._pendingTimeout&&window.clearTimeout(this._pendingTimeout),g=e[d-h],AmxRcfAssert.assert(null!=g,"A desired row could not be found: "+e+", "+d+", "+h),e=AmxRcfAgent.AGENT.getAttribute(g,"data-amxRk"),h=!0,this._currentItemKey!=e&&null!=e&&(d=this._currentItemKey,this._updateCurrentItemKey(e)&&(h=!1,this._animateRowsForNewSelectedWrapperElement(g,d))),h&&(this._stopAnimation(!0),(e=this._findRowByKey(this._currentItemKey,!0))&&this._sizeDatabodyForSelectedWrapperElement(e.row,!0))):AmxRcfLogger.LOGGER.severe("_initiateSpinPercentAnimation failed due to invalid long jump: "+
d)}};AmxRcfCarouselPeer._ITEM_PADDING=10;var s=function(){n.initClass(s,"AmxRcfLookAndFeel")};s.prototype.getSkinProperty=function(a){if(null!=a&&s._RICH_SKIN_PROPERTIES)return s._RICH_SKIN_PROPERTIES[a]};s.prototype.getStyleClass=function(a){var b=this.getSkinProperty(a);return!b?a:b};s.prototype.getSkinProperty=function(a){if(null!=a&&s._RICH_SKIN_PROPERTIES)return s._RICH_SKIN_PROPERTIES[a]};s.addSkinProperties=function(a){AmxRcfAssert.assertObject(a);var b=s._RICH_SKIN_PROPERTIES;b&&(a=AmxRcfCollections.copyInto(a,
b));s._RICH_SKIN_PROPERTIES=a};s.addSkinProperties({"amx-carousel-tr-spin-animation-duration":"500","amx-carousel-tr-pop-out-animation-duration":"200"});AmxRcfPage=function(a){n.initClass(AmxRcfPage,"AmxRcfPage");this.Init(a)};AmxRcfPage.prototype.Init=function(a){this._window=a;this._localeContext=new o;this._lookAndFeel=new s};AmxRcfPage.getPage=function(a){AmxRcfPage._page||(a=new AmxRcfPage(a),AmxRcfPage._page=a);return AmxRcfPage._page};AmxRcfPage.prototype.getLocaleContext=function(){return this._localeContext};
AmxRcfPage.prototype.getLookAndFeel=function(){return this._lookAndFeel};AmxRcfPage.prototype.getDomWindow=function(){return this._window};AmxRcfPage.PAGE=AmxRcfPage.getPage(window)}catch(t){AmxRcfLogger.LOGGER.severe("*** Unexpected carousel overall utility try-catch problem:"),AmxRcfLogger.LOGGER.severe(t)}})(jQuery);