!function(a,b){"use strict";function c(b){var e,f,g=a("#"+b);a.apex.aTabs&&(e=a.apex.aTabs.findClosestTab(g),e&&(f=e.tabSet$.aTabs("getActive"),(f!==e&&f.href!==d||!g.is(":visible"))&&e.makeActive(),c(e.tabSet$[0].id)))}var d="#SHOW_ALL",e="a-Tabs",f=e+"-panel",g="aria-selected",h="aria-controls",i="aria-hidden",j="item--hint",k="after",l="before",m="selected",n="element-selected",o=100,p="-fill",q="u-RTL",r=b.getMessage("APEX.TABS.PREVIOUS"),s=b.getMessage("APEX.TABS.NEXT"),t=a.ui.keyCode;a.widget("apex.aTabs",{options:{mode:"standard",classPrefix:"a-Tabs",showHints:!1,useSlider:!0,useLocationHash:!1,useSessionStorage:!0,addMoveNextPrevious:!1,hidePreviousTab:!0,onRegionChange:function(a,b){var c=this.tabs$.data("onRegionChange");c&&c(a,b)},showAllScrollOffset:function(){return 0},tabsContainer$:!1,optionalSelectedClass:""},activeTab:null,firstVisibleTab:null,lastVisibleTab:null,getTabs:function(){return this.tabs},getTab:function(a){return this.tabs[a]||null},getActive:function(){return this.activeTab},movePrevious:function(a,b){this._moveToRegion(a,"getPreviousVisible","getNextVisible",b)},moveNext:function(a,b){this._moveToRegion(a,"getNextVisible","getPreviousVisible",b)},moveNextActive:function(a){this.moveNext(this.activeTab,a)},movePreviousActive:function(a){this.movePrevious(this.activeTab,a)},tabShouldBeHidden:function(){return"jump"!==this.options.mode&&this.options.hidePreviousTab},getNextActiveTabFromSiblings:function(a){var b=this._getScrollOffset(),c=a.getNextVisible(this.rtlMode);if(null!==c&&c.getTop() '),d=a('
');w=a("
"),w.append(b).append(d),c.parent().prepend(w);var e,f=function(a,b){var d=function(){var a=b?"+=20px":"-=20px";c.stop().animate({scrollLeft:a},100,"linear",d),f()},e=function(){c.stop()};a.click(function(){var a=b?"+=200px":"-=200px";c.stop(!1,!1).animate({scrollLeft:a},100)});var f=function(){var d,e=parseInt(c.css("paddingRight"),10)+parseInt(c.css("paddingLeft"),10),f=c[0].scrollWidth-e,g=c.width(),h=f-g,i=0,j=c.scrollLeft();return(d=b?j>=h:j===i)?(a.hide(),!1):(d||a.show(),!0)};return a.hover(d,e),{checkState:f}},g=f(d,!0),h=f(b,!1),i=function(){h.checkState(),g.checkState()};c.scroll(function(){clearTimeout(e),e=setTimeout(i,200)}),a(window).on("apexwindowresized",i),i()}},M=function(){var j=0,k=0;if(c.attr("role","tablist").addClass(e),"rtl"===c.css("direction")&&(c.addClass(q),y=u.rtlMode=!0),C.addMoveNextPrevious){var l=a(''),m=a('');c.parent().prepend(l).append(m),l.click(function(){u.movePreviousActive()}),m.click(function(){u.moveNextActive()})}D&&c.addClass("apex-rds-container--jumpNav"),c.css({"white-space":"nowrap","overflow-x":"hidden"});var n,p=a("a",c),v=null;if(p.length<=2&&p.eq(0).attr("href")===d)return void c.remove();if(y&&(p=a(p.get().reverse())),p.each(function(){var e=a(this),l=e.attr("href"),m=a(l);if(m.attr("role","tabpanel").addClass(f),C.tabsContainer$){var o=m.outerHeight();o>k&&(k=o)}if(l===d&&D)return void e.parent().css("display","none");e.attr("role","presentation");var p=function(a){if(!I()&&E&&!K()){for(var b=-c.width()/2,d=a.getLeft()/2,e=a;null!==e.previous;)e=e.previous,d+=e.tab$.outerWidth();c.stop(!0,!0).animate({scrollLeft:d+b},function(){})}},q=function(f){var h,j,k;if(!this.hidden&&(k="."+u.selectedClass.trim().split(/\s+/).join("."),j=b[c.find(k).find("a").attr("href")],u._iterateThroughAndClear.call(u,this.previous,!0,l===d),u._iterateThroughAndClear.call(u,this.next,!1,l===d),u.firstVisibleTab.panel$.removeClass("apex-rds-swap"),u.lastVisibleTab.panel$.removeClass("apex-rds-swap"),void 0!==n&&clearTimeout(n),F&&(n=setTimeout(function(){if("history"in window&&window.history&&window.history.pushState)history.pushState(null,null,l);else{var b=a(window).scrollTop();location.hash=l,a(window).scrollTop(b)}},10)),u.tabShouldBeHidden()&&m.show(),u.activeTab=this,this.panel$.attr(i,!1),this.panel$.addClass(u.ELEMENT_SELECTED_CLASS),this.tab$.attr(g,!0),this.link$.removeAttr("tabindex"),p(this),e.parent().removeClass(u.HINT_CLASS).addClass(u.selectedClass),G&&B.setItem("activeTab",l),"standard"===C.mode&&a.apex.stickyWidget&&u.activeTab.panel$.find(".js-stickyWidget-toggle").stickyWidget("refresh"),h={mode:C.mode,active:u.activeTab,previous:j,showing:"standard"===C.mode&&j&&u.activeTab!==j&&j.href!==d},u._trigger("activate",{},h),c.trigger("tabsregionchange",[u.activeTab,C.mode]),H.call(u,C.mode,u.activeTab),f)){var o=0;if(D){var q=r.getTop();o=apex.theme.defaultStickyTop(),x=!0,a("html,body").stop(!0,!0).animate({scrollTop:q-o},{duration:"slow",step:function(a,b){var c=r.getTop()-o;c!==b.end&&(b.end=c)},complete:function(){x=!1,F&&(location.hash=l)}})}else!function(){var a=null;C.showAllScrollOffset&&(a=C.showAllScrollOffset()),c.data("showAllScrollOffset")&&(a=c.data("showAllScrollOffset")()),a&&window.scrollTo(0,a)}()}},r=b[l]={href:l,tabSet$:c,panel$:m,el$:m,link$:e,tab$:e.parent(),forceActive:q,makeActive:function(a){u.activeTab!==this&&q.call(this,a)},show:function(){u._showTabInList(r)},hide:function(){u._hideTabInList(r)},moveNext:function(a){u.moveNext(r,a)},movePrevious:function(a){u.movePrevious(r,a)},getNextVisible:function(a){return a?r.getPreviousVisible():u.getFirstVisibleTab(r.next,"next")},getPreviousVisible:function(a){return a?r.getNextVisible():u.getFirstVisibleTab(r.previous,"previous")},getTop:function(){return m.offset().top},getLeft:function(){return this.tab$.offset().left},showHint:function(){for(var a=this.previous,b=this.next;null!==a;)a.tab$.removeClass(u.HINT_CLASS),a=a.previous;for(;null!==b;)b.tab$.removeClass(u.HINT_CLASS),b=b.next;this.tab$.addClass(u.HINT_CLASS)},previous:v,next:null};r.tab$.attr(h,l.substring(1)).attr("role","tab");var s=r.tab$.attr("id");s||(s=r.href.substring(1)+"_tab",r.tab$.attr("id",s)),m.attr("aria-labelledby",s),location.hash===l&&F&&(u.activeTab=r),null===u.firstVisibleTab&&(u.firstVisibleTab=r),null!==v&&(v.next=r),v=r,e.click(function(a){return u._onClick(r,a),!1}),e.on("keydown",function(a){var b=a.which;if(b===t.UP)u.movePrevious(r);else if(b===t.DOWN)u.moveNext(r);else if(b===t.RIGHT)u.moveNext(r);else if(b===t.LEFT)u.movePrevious(r);else if(b===t.HOME)u.firstVisibleTab.link$.click();else if(b===t.END)u.lastVisibleTab.link$.click();else{if(b!==t.SPACE)return;r.link$.click()}a.preventDefault()}),r.panel$.on("apexaftershow",function(a){a.target===r.panel$[0]&&r.show()}),r.panel$.on("apexafterhide",function(a){a.target===r.panel$[0]&&r.hide()}),j++}),C.tabsContainer$){var z=parseInt(C.tabsContainer$.css("min-height").replace(/[^-\d\.]/g,""),10);k<=0&&(k=z),C.tabsContainer$.css("min-height",k)}var A=function(){if(J()&&E){var a=c.width()/j;a
")},N=function(){if(M(),u.activeTab&&u.activeTab.href!==d){var b=u.activeTab;setTimeout(function(){b.forceActive(!0)},250)}var c=null;a(window).on("scroll",function(){if(u.activeTab&&u.activeTab.href===d){var a=u._getScrollOffset();if(null===c)for(var b=u.firstVisibleTab;b;)!b.hidden&&b.href!==d&&b.getTop()