apex.theme42={},function($,ut,theme){"use strict";const EVENTS_preload="theme42preload",EVENTS_utReady="theme42ready",EVENTS_layoutChange="theme42layoutchanged",EVENTS_apexResized="apexwindowresized",EVENTS_readyEnd="apexreadyend",EVENTS_resize="resize",EVENTS_forceResize="forceresize";let win$=$(window),doc$=$(document),body$=$("body"),pageCtx$=apex.gPageContext$,header$=$("#t_Header"),footer$=$("#t_Footer"),mainBody$=$(".t-Body-main"),pageTitle$=$("#t_Body_title"),treeNav$=$("#t_TreeNav"),pageBody$=$("#t_PageBody"),bodyContent$=$("#t_Body_content"),sideCol$=$("#t_Body_side"),actionsCol$=$("#t_Body_actions"),scrollTitle=body$.hasClass("t-PageBody--scrollTitle"),scrollAll=body$.hasClass("t-PageBody--scrollAll"),marqueeRDS$=$(".t-Body-info .apex-rds-container");const C_DOCUMENT_STYLES=getComputedStyle(document.documentElement);let mq_xs=parseInt(C_DOCUMENT_STYLES.getPropertyValue("--js-mq-xs").replace("/px|em|rem/gi",""),10)||480,mq_sm=parseInt(C_DOCUMENT_STYLES.getPropertyValue("--js-mq-sm").replace("/px|em|rem/gi",""),10)||640,mq_md=parseInt(C_DOCUMENT_STYLES.getPropertyValue("--js-mq-md").replace("/px|em|rem/gi",""),10)||768,mq_lg=parseInt(C_DOCUMENT_STYLES.getPropertyValue("--js-mq-lg").replace("/px|em|rem/gi",""),10)||1200;ut.util={},ut.page={};var scrollTo=function(id){var elem$,elemOffset;id&&(elem$=document.getElementById(id.replace("#","")))&&(elemOffset=elem$.getBoundingClientRect().top-theme.defaultStickyTop()+window.pageYOffset,$("html, body",pageCtx$).animate({scrollTop:elemOffset}))},mediaQuery=theme.mq,sticky=function(selector){$(selector).stickyWidget({zIndexStart:200,toggleWidth:!0,stickToEnd:!0})};let resetHeaderOffset=function(){$(".u-unstick").removeClass("u-unstick");let cssVarTop=parseInt(C_DOCUMENT_STYLES.getPropertyValue("--js-sticky-top").replace("/px|em|rem/gi",""),10),headerHeight=header$.outerHeight()||0;if(cssVarTop&&headerHeight===cssVarTop||document.querySelector(":root").style.setProperty("--js-sticky-top",headerHeight+"px"),sideCol$.length){let cssVarPageTitle=parseInt(C_DOCUMENT_STYLES.getPropertyValue("--js-page-title-height").replace("/px|em|rem/gi",""),10),pageTitleHeight=pageTitle$.outerHeight()+headerHeight;cssVarPageTitle&&pageTitleHeight===cssVarPageTitle||document.querySelector(":root").style.setProperty("--js-page-title-height",pageTitleHeight+"px")}return scrollAll?(header$.addClass("u-unstick"),treeNav$.addClass("u-unstick"),pageTitle$.addClass("u-unstick"),void sideCol$.addClass("u-unstick")):mediaQuery("(min-width: "+(mq_sm+1)+"px)")?void(scrollTitle&&(pageTitle$.addClass("u-unstick"),sideCol$.addClass("u-unstick"))):(body$.hasClass("js-pageStickyMobileHeader")||pageTitle$.addClass("u-unstick"),void sideCol$.addClass("u-unstick"))};var configAPEXMsgs=function(pOptions){let timeOut,alertSuccess$=$("#t_Alert_Success");if(ut.page.APEXMsgConfig||(ut.page.APEXMsgConfig={}),pOptions&&(ut.page.APEXMsgConfig=pOptions,pOptions.autoDismiss&&alertSuccess$[0])){var hide=function(){timeOut=setTimeout((function(){apex.message.hidePageSuccess(),alertSuccess$.off(),doc$.off("click",hide)}),pOptions.duration||3e3)},clear=function(){clearTimeout(timeOut)};hide(),alertSuccess$.on("click",(function(e){e.stopPropagation(),ut.page.APEXMsgConfig.clicked=!0,clear()})).on("mouseover",clear).on("mouseout",(function(){ut.page.APEXMsgConfig.clicked||hide()})).find(".t-Button--closeAlert").on("focus",clear).on("click",(function(){apex.message.hidePageSuccess()})),doc$.on("click",hide)}};ut.util.scrollTo=scrollTo,ut.util.mq=mediaQuery,ut.util.fixLayout=resetHeaderOffset,ut.util.configAPEXMsgs=configAPEXMsgs,ut.util.sticky=sticky,ut.configureSuccessMessages=configAPEXMsgs,ut.sticky=sticky,ut.dialog=(url,options,templateOptions="",triggeringElement)=>{options.height=options.h,options.width=options.w,options.maxWidth=options.mxw,options.dialogClass=options.dlgCls,delete options.h,delete options.w,delete options.mxw,delete options.dlgCls;let size,defaults={width:500,maxWidth:1500,height:500,modal:!1,draggable:!options.dialogClass.includes("t-Drawer"),resizable:!1,scroll:"auto",closeOnEscape:!0,dialog:null,dialogClass:""},finalOptions=$.extend(defaults,options);templateOptions.includes("js-modal")&&(finalOptions.modal=!0),templateOptions.includes("js-draggable")&&(finalOptions.draggable=!0),templateOptions.includes("js-resizable")&&(finalOptions.resizable=!0),size=/js-dialog-size(\d+)x(\d+)/.exec(templateOptions),size&&(finalOptions.width=size[1],finalOptions.height=size[2]),templateOptions.split(" ").forEach(jsCls=>{let cls=/js-dialog-class-(.+)/.exec(jsCls);cls&&(finalOptions.dialogClass+=" "+cls[1])}),apex.navigation.dialog(url,finalOptions,null,triggeringElement)},ut.dialog.close=(...args)=>{apex.navigation.dialog.close(...args)},ut.dialog.cancel=(...args)=>{apex.navigation.dialog.cancel(...args)},window.openModal=pDialogId=>$("#"+pDialogId).dialog("open"),window.closeModal=()=>$(".ui-dialog-content").dialog("close");let hasTreeNav=()=>treeNav$.length>0,getFixedHeight=function(){let headerHeight=$("header").outerHeight(),rdsHeight=marqueeRDS$.length>0?marqueeRDS$.outerHeight():0,pageTitleHeight="sticky"===pageTitle$.css("position")?pageTitle$.outerHeight():0;return mediaQuery("(max-width: "+(mq_sm-1)+"px)")||hasTreeNav()&&pageBody$.hasClass("t-PageBody--showLeft")&&mediaQuery("(max-width: "+(mq_lg-1)+"px)")?pageBody$.hasClass("js-HeaderContracted")?rdsHeight+pageTitleHeight:headerHeight+rdsHeight+pageTitleHeight:($(".js-stickyTableHeader").length>0&&(rdsHeight-=1),pageTitleHeight+headerHeight+rdsHeight)};theme.defaultStickyTop=getFixedHeight;var delayResize=function(){apex.util.debounce((function(){var forceResize=EVENTS_forceResize;$(".js-stickyWidget-toggle").each((function(){$(this).trigger(forceResize)})),$(".js-stickyTableHeader").each((function(){$(this).trigger(forceResize)})),$(".a-MenuBar").menu(EVENTS_resize)}),201)()},renderBadges=function(children$,labelClass){children$.each((function(){var label=this.innerHTML;if(-1===label.indexOf("<span class='"+labelClass+"'>")){var regex=/\[(.*)\]/,match=regex.exec(label);null!==match&&match.length>1&&(""===match[1]?this.innerHTML=label.replace(regex,""):(label=label.replace(/\[.*\]/,"")+"<span class='"+labelClass+"'>"+match[1]+"</span>",this.innerHTML=label))}}))};let removeLandmark=()=>{$.each($("div[class*=js-removeLandmark]"),(function(){this.removeAttribute("aria-label"),this.removeAttribute("role")}))};var pages,initAutoSize,toggleWidgets=function(){var pushModal,A_HIDDEN="aria-hidden",isCollapsedByDefault=$("#t_TreeNav").hasClass("js-defaultCollapsed"),toggleWidgets={},collapseWidget=function(pKey,pSaveUserPreference){pKey in toggleWidgets&&toggleWidgets[pKey].collapse(pSaveUserPreference)},buildToggleWidget=function(options){var widget,checkForElement=options.checkForElement,key=options.key,button$=$(options.buttonId),expandOriginal=options.onExpand,collapseOriginal=options.onCollapse,element$=$(checkForElement);return!(!element$||element$.length<=0)&&(options.controllingElement=button$,button$.attr("aria-controls",element$.attr("id")),options.content=pageBody$,options.contentClassExpanded="js-"+key+"Expanded",options.contentClassCollapsed="js-"+key+"Collapsed",options.onExpand=function(){expandOriginal(),button$.addClass("is-active").attr("aria-expanded","true"),pushModal.notify()},options.onCollapse=function(){collapseOriginal(),button$.removeClass("is-active").attr("aria-expanded","false"),pushModal.notify()},widget=ToggleCore(options),toggleWidgets[key]=widget,!0)};return{initialize:function(){if(pageBody$.length<=0&&mainBody$.length<=0&&header$.length<=0&&bodyContent$.length<=0)return;var pushModal$=$("<div id='pushModal' style='width: 100%; display:none; height: 100%;' class='u-DisplayNone u-Overlay--glass'></div>");$("body").append(pushModal$),win$.bind(EVENTS_apexResized,(function(){for(var key in toggleWidgets)Object.prototype.hasOwnProperty.call(toggleWidgets,key)&&toggleWidgets[key].resize();pushModal.notify()})),pushModal={el$:pushModal$,collapse:function(){},expand:function(){},shouldShow:ut.screenIsSmall,notify:function(){}};var NAV_CONTROL_BUTTON="#t_Button_treeNavControl";$("#t_Button_navControl").length>0&&$(".t-Header-nav-list.a-MenuBar").length<=0&&(NAV_CONTROL_BUTTON="#t_Button_navControl");let showTree=()=>treeNav$.css("visibility","inherit").attr(A_HIDDEN,"false"),collapseTree=()=>collapseWidget("nav");var treeIsHiding=!1,handleTreeVisibility=function(){var screenIsTooSmallForTheTree=mediaQuery("(max-width: "+(mq_xs-1)+"px)");screenIsTooSmallForTheTree&&"hidden"!==treeNav$.css("visibility")&&!treeIsHiding?(treeIsHiding=!0,setTimeout((function(){treeIsHiding=!1,toggleWidgets.nav.isExpanded()||treeNav$.css("visibility","hidden").attr(A_HIDDEN,"true")}),400),$(".t-Body-main").off("click",collapseTree)):screenIsTooSmallForTheTree||showTree()};if(buildToggleWidget({key:"nav",checkForElement:"#t_TreeNav",buttonId:NAV_CONTROL_BUTTON,defaultExpandedPreference:!isCollapsedByDefault,isPreferenceGlobal:!0,onClick:function(){mediaQuery("(max-width: "+(mq_lg-1)+"px)")&&"right"in toggleWidgets&&toggleWidgets.right.isExpanded()&&toggleWidgets.right.toggle()},onExpand:function(){mediaQuery("(max-width: "+(mq_lg-1)+"px)")&&collapseWidget("right"),treeNav$.treeView("expand",treeNav$.treeView("getSelection")),showTree(),delayResize(),treeNav$.trigger(EVENTS_layoutChange,{action:"expand"}),mediaQuery("(min-width: "+mq_sm+"px)")||$(".t-Body-main").on("click",collapseTree),treeNav$.attr(A_HIDDEN,"false")},onCollapse:function(){treeNav$.treeView("collapseAll"),delayResize(),handleTreeVisibility(),treeNav$.trigger(EVENTS_layoutChange,{action:"collapse"}),$(".t-Body-main").off("click",collapseTree),treeNav$.attr(A_HIDDEN,"true")},onResize:function(){pageBody$.hasClass("t-PageBody--leftNav")&&(mediaQuery("(max-width: "+(mq_lg-1)+"px)")?this.collapse():this.doesUserPreferExpanded()&&this.expand()),handleTreeVisibility(),resetHeaderOffset()},onInitialize:function(){var preferExpanded=this.doesUserPreferExpanded();mediaQuery("(min-width: "+mq_lg+"px)")&&preferExpanded?this.expand():this.forceCollapse()}}))treeNav$.on("treeviewexpansionstatechange",(function(jqueryEvent,treeViewEvent){treeViewEvent.expanded&&toggleWidgets.nav.expand()}));else{var headerCore=null,peekHeaderInit=function(){if(mediaQuery("(min-width: "+mq_sm+"px)")&&null===headerCore){var lastScrollTop=0,handlerId=null,recal=function(){$(".js-stickyWidget-toggle").stickyWidget("reStick")};(headerCore=ToggleCore({content:pageBody$,contentClassExpanded:"js-HeaderExpanded",contentClassCollapsed:"js-HeaderContracted",useSessionStorage:!1,defaultExpandedPreference:!0,onCollapse:recal,onExpand:recal})).initialize();var peekingHeader=function(){handlerId=null;var scrollTop=win$.scrollTop();lastScrollTop>scrollTop||scrollTop<100?headerCore.expand():headerCore.collapse(),lastScrollTop=scrollTop};win$.scroll((function(){handlerId||(handlerId=apex.util.invokeAfterPaint(peekingHeader))}))}};win$.on(EVENTS_apexResized,peekHeaderInit),peekHeaderInit(),body$.hasClass("t-PageBody--noNav")||body$.addClass("t-PageBody--topNav"),win$.on(EVENTS_apexResized,resetHeaderOffset)}var rightShouldBeOpenOnStart=mediaQuery("(min-width: "+mq_lg+"px)"),actionsContent$=$(".t-Body-actionsContent");for(var key in buildToggleWidget({key:"right",checkForElement:".t-Body-actionsContent",buttonId:"#t_Button_rightControlButton",defaultExpandedPreference:rightShouldBeOpenOnStart,onClick:function(){mediaQuery("(max-width: "+(mq_lg-1)+"px)")&&"nav"in toggleWidgets&&toggleWidgets.nav.isExpanded()&&toggleWidgets.nav.toggle()},onExpand:function(){mediaQuery("(max-width: "+(mq_lg-1)+"px)")&&pageBody$.hasClass("js-navExpanded")&&collapseWidget("nav"),actionsContent$.css({visibility:"inherit",overflow:"inherit"}).attr(A_HIDDEN,"false"),delayResize(),apex.widget.util.visibilityChange(actionsContent$,!0)},onCollapse:function(){delayResize(),actionsContent$.attr(A_HIDDEN,"true"),toggleWidgets.right.isExpanded()||actionsContent$.css({visibility:"hidden",overflow:"hidden"}),apex.widget.util.visibilityChange(actionsContent$,!1)},onResize:function(){},onInitialize:function(){"nav"in toggleWidgets&&toggleWidgets.nav.isExpanded()&&mediaQuery("(max-width: "+(mq_lg-1)+"px)")?this.forceCollapse():this.doesUserPreferExpanded()?this.forceExpand():this.forceCollapse()}}),toggleWidgets)Object.prototype.hasOwnProperty.call(toggleWidgets,key)&&toggleWidgets[key].initialize()},expandWidget:function(pKey,pSaveUserPreference){pKey in toggleWidgets&&toggleWidgets[pKey].expand(pSaveUserPreference)},collapseWidget:collapseWidget,setPreference:function(key,value){key in toggleWidgets&&toggleWidgets[key].setUserPreference(value)},isExpanded:function(key){if(key in toggleWidgets)return toggleWidgets[key].isExpanded()}}}();(pages={masterDetail:{},leftSideCol:{},rightSideCol:{},noSideCol:{},appLogin:{},wizardPage:{},wizardModal:{},bothSideCols:{},popUp:{},modalDialog:{}}).modalDialog={onTheme42Ready:initAutoSize=function(){theme.modalAutoSize({observeClass:".t-Dialog-body",sections:[".t-Dialog-body",".t-Dialog-header",".t-Dialog-footer"]})}},pages.wizardModal={onReady:initAutoSize},pages.masterDetail={onTheme42Ready:function(){var rds$=$(".t-Body-info .apex-rds");rds$.on("tabschange",(function(activeTab,mode){"jump"!==mode&&$(".t-StatusList-blockHeader,.js-stickyTableHeader").trigger(EVENTS_forceResize)})),sticky(".t-Body-contentInner .t-StatusList .t-StatusList-blockHeader"),$(".t-Body-contentInner .t-Report-tableWrap").setTableHeadersAsFixed(),sticky(".js-stickyTableHeader"),rds$.aTabs("option","showAllScrollOffset",(function(){var rdsOffset=mediaQuery("(min-width: "+mq_sm+"px)")?rds$.outerHeight():0,tHeight=$("#t_Body_info").outerHeight()-rdsOffset;return $(window).scrollTop()>tHeight&&tHeight})),marqueeRDS$.length>0&&marqueeRDS$.stickyWidget({toggleWidth:!0,top:function(){return getFixedHeight()-marqueeRDS$.outerHeight()}})}},ut.initializePage=function(){var wrapFunc=function(key){return function(){var onReady=pages[key].onReady,onTheme42Ready=pages[key].onTheme42Ready;void 0!==onReady&&onReady(),void 0!==onTheme42Ready&&win$.on(EVENTS_utReady,(function(){onTheme42Ready()}))}},returnPages={};for(var key in pages)Object.prototype.hasOwnProperty.call(pages,key)&&(returnPages[key]=wrapFunc(key));return returnPages}();var ut_doc_ready_init={prepUI:function(){$("html").removeClass("no-js"),$("#t_Body_content").prepend('<div id="t_Body_content_offset"></div>'),body$.hasClass("t-PageBody--noNav")&&body$.removeClass("apex-side-nav"),actionsCol$.show(),$("#t_Body_skipToContent").click((function(e){e.preventDefault(),pageTitle$.attr("tabindex","-1").focus((function(){pageTitle$.on("blur focusout",(function(){pageTitle$.removeAttr("tabindex")}))})).focus()})),$.each($("div[class*=js-headingLevel]"),(function(index,value){let headingElem=$(value).find("[data-apex-heading]")[0];((tag,curr)=>{let text=curr.innerHTML,newEle=document.createElement(tag);if(newEle.innerHTML=text,curr.hasAttributes()){let attr=curr.attributes;for(let i=attr.length-1;i>=0;i--)newEle.setAttribute(attr[i].name,attr[i].value)}curr.replaceWith(newEle)})((ele=>{let classes=ele[0].className;return classes.includes("js-headingLevel-1")?"h1":classes.includes("js-headingLevel-2")?"h2":classes.includes("js-headingLevel-3")?"h3":classes.includes("js-headingLevel-4")?"h4":classes.includes("js-headingLevel-5")?"h5":classes.includes("js-headingLevel-6")?"h6":"h1"})($(value)),headingElem)})),document.getElementsByClassName("js-removeLandmark").length>0&&removeLandmark(),resetHeaderOffset()},topMenu:function(){if(!hasTreeNav()||!$.menu){var render=function(){renderBadges($(".t-Header-nav .a-MenuBar-label"),"t-Menu-badge")},menubar$=$(".t-Header-nav-list","#t_Header");menubar$.is(":data('ui-menu')")?render():win$.on("menucreate apexwindowresized",menubar$,(function(){render()}))}},hideShow:function(){var hideShow$=$(".t-Region--hideShow"),hideShowToggle$=$("span.t-Button--hideShow");hideShow$.each((function(){var collapsible$=$(this),useLocalStorage=collapsible$.hasClass("js-useLocalStorage");collapsible$.hasClass("is-expanded")||collapsible$.hasClass("is-collapsed")||collapsible$.addClass("is-expanded"),collapsible$.collapsible({content:$(this).find(".t-Region-body").first(),collapsed:collapsible$.hasClass("is-collapsed"),rememberState:useLocalStorage,renderIcon:!1})})),hideShowToggle$.find(".a-Icon").addClass("a-Collapsible-icon"),hideShowToggle$.click((function(){$(this).closest(".t-Region-header").find(".t-Region-titleButton").click()}))},successMessage:function(){var successMessage$=$("#APEX_SUCCESS_MESSAGE");apex.message.setThemeHooks({beforeHide:function(pMsgType){pMsgType===apex.message.TYPE.SUCCESS&&successMessage$.addClass("animate-hide")},beforeShow:function(pMsgType){var opt;pMsgType===apex.message.TYPE.SUCCESS&&(ut.page.APEXMsgConfig&&delete(opt=ut.page.APEXMsgConfig).clicked,successMessage$.removeClass("animate-hide"),opt&&configAPEXMsgs(opt))}})},items:function(){const CL_PICKER_WRAPPER="apex-item-wrapper--color-picker";$("span.apex-quick-picks").each((function(){var that$=$(this);that$.insertAfter(that$.parent())})),$("input[data-display-as='COLOR_ONLY']").closest("."+CL_PICKER_WRAPPER).addClass(CL_PICKER_WRAPPER+"-color-only"),$("input[data-display-as='NATIVE']").closest("."+CL_PICKER_WRAPPER).addClass(CL_PICKER_WRAPPER+"-native"),$("input[data-display-as='INLINE']").closest("."+CL_PICKER_WRAPPER).addClass(CL_PICKER_WRAPPER+"-inline")},handleScrollTop:function(){if(!($(".t-BreadcrumbRegion--compactTitle").length>0||$(".t-BreadcrumbRegion").length<0||pageTitle$.length<0)&&$.trim(pageTitle$.html())){var resetPageElements=function(){win$.trigger(EVENTS_apexResized)},shrinkCore=ToggleCore({content:pageTitle$,contentClassExpanded:"",contentClassCollapsed:"t-Body-title-shrink",useSessionStorage:!1,defaultExpandedPreference:!0,onExpand:resetPageElements,onCollapse:resetPageElements});shrinkCore.initialize();var handlerId=null,addTop=function(){var scrollTop=win$.scrollTop();if(handlerId=null,scrollTitle&&scrollAll&&!mediaQuery("(min-width: "+mq_sm+"px)"))shrinkCore.expand();else{var top=function(){if(shrinkCore.isExpanded()){var tBodyInfoHeight=$(".t-Body-info").outerHeight()-100;return tBodyInfoHeight>100?tBodyInfoHeight:400}return 0}();scrollTop<=top?shrinkCore.expand():scrollTop>top&&shrinkCore.collapse()}};win$.scroll((function(){handlerId||(handlerId=apex.util.invokeAfterPaint(addTop))})),addTop()}},treeNav$:function(){if(hasTreeNav()){var navCollapseModeClass="js-navCollapsed--hidden";treeNav$.hasClass(navCollapseModeClass)?treeNav$.removeClass(navCollapseModeClass):navCollapseModeClass="js-navCollapsed--icons",body$.addClass(navCollapseModeClass),treeNav$.hasClass("js-addActions")&&apex.actions.addFromMarkup(treeNav$),treeNav$.treeView({showRoot:!1,iconType:"fa",useLinks:!0,navigation:!0,autoCollapse:!0}),treeNav$.treeView("getSelection").parents().children(".a-TreeView-content").addClass("is-current"),treeNav$.treeView("getSelection").parents(".a-TreeView-node--topLevel").children(".a-TreeView-content, .a-TreeView-row").removeClass("is-current").addClass("is-current--top"),$(".t-TreeNav .a-TreeView-node--topLevel > .a-TreeView-content").each((function(){$(this).find(".fa").length<=0&&$(this).prepend('<span class="fa fa-file-o"></span>')})),renderBadges($(".a-TreeView-label"),"a-TreeView-badge"),treeNav$.on("treeviewexpansionstatechange",(function(jqueryEvent,treeViewEvent){treeViewEvent.expanded&&renderBadges(treeViewEvent.nodeContent$.parent().find(".a-TreeView-label"),"a-TreeView-badge")}))}toggleWidgets.initialize()},inlineDialogAutoHeight:function(){theme.dialogAutoHeight(".js-dialog-autoheight")},maximize:function(){var current,focusable,maximizeKey=0,maximizableRegions$=$(".js-showMaximizeButton"),hideAllExceptChildren=function(content$){maximizableRegions$.css("visibility","hidden"),content$.css("visibility","visible").find(".js-showMaximizeButton").css("visibility","visible")};maximizableRegions$.length>0&&(focusable=function(element,isTabIndexNotNaN){var nodeName=element.nodeName.toLowerCase();return(/^(input|select|textarea|button|object)$/.test(nodeName)?!element.disabled:"a"===nodeName&&element.href||isTabIndexNotNaN)&&$.expr.filters.visible(element)},$.extend($.expr[":"],{focusable:focusable,tabbable:function(element){var tabIndex=$.attr(element,"tabindex"),isTabIndexNaN=isNaN(tabIndex);return(isTabIndexNaN||tabIndex>=0)&&focusable(element,!isTabIndexNaN)}})),maximizableRegions$.each((function(){var fthOnResize,content$=$(this),isIRR=content$.hasClass("t-IRR-region"),injectButtonSelector=".js-maximizeButtonContainer";isIRR&&(injectButtonSelector=".a-IRR-buttons",content$.find(injectButtonSelector).length<=0&&content$.find(".a-IRR-toolbar").append("<div class='a-IRR-buttons'></div>"));var maximize$=content$.find(injectButtonSelector).first(),regionId=content$.attr("id"),maximizeButton$=$('<button class="t-Button t-Button--noLabel t-Button--icon t-Button--iconOnly t-Button--noUI" aria-expanded="false"aria-controls="'+regionId+'" type="button"><span class="t-Icon a-Icon" aria-hidden="true"></span></button>');maximize$.append(maximizeButton$);var getCollapsible=function(){return content$.find(".a-IRR-controlsContainer.a-Collapsible").first()},resetIRRHeight=function(fthBody$){content$.css("overflow","auto"),fthBody$.css("height","auto")},forceResize=function(){win$.trigger(EVENTS_apexResized).trigger(EVENTS_resize)},header$=content$.find(".t-Region-header"),maximizeCore=ToggleCore({key:"maximize_"+(maximizeKey+=1),content:content$,contentClassExpanded:"is-maximized",useSessionStorage:!1,defaultExpandedPreference:!1,controllingElement:maximizeButton$,onExpand:function(){apex.navigation.beginFreezeScroll(),maximizeButton$.attr("title",apex.lang.getMessage("RESTORE")).attr("aria-label",apex.lang.getMessage("RESTORE")).attr("aria-expanded",!0).find(".t-Icon").removeClass("icon-maximize").addClass("icon-restore");var scrollParent$;isIRR?(scrollParent$=content$,fthOnResize=function(){clearTimeout(void 0);var safeHeight=function(element$){return element$.length>0?element$.outerHeight():0};setTimeout((function(){var fthBody$=content$.find(".t-fht-tbody");if(fthBody$.length>0){content$.css("overflow","hidden");var head=safeHeight(content$.find(".t-fht-thead")),pagWrap=safeHeight(content$.find(".a-IRR-paginationWrap")),irrToolBar=safeHeight(content$.find(".a-IRR-toolbar")),controlsContainer=safeHeight(content$.find(".a-IRR-controlsContainer"));if(mediaQuery("(min-width: "+mq_md+"px)")){var height=$(window).height();fthBody$.css("height",height-irrToolBar-controlsContainer-pagWrap-head-2)}else resetIRRHeight(fthBody$)}}),200)},getCollapsible().on("collapsibleexpand",fthOnResize).on("collapsiblecollapse",fthOnResize),win$.on(EVENTS_apexResized,fthOnResize),content$.find(".container").first().hide()):scrollParent$=content$.find(".t-Region-bodyWrap").first(),content$.find(".js-stickyWidget-toggle").stickyWidget("forceScrollParent",scrollParent$),forceResize(),function(core,content$,top){var buildCurrent=function(){var tabbable$=content$.find(":tabbable");return{core:core,content$:content$,top:top,first:tabbable$.first()[0],last:tabbable$.last()[0]}};if(current){var old=current;current.next=buildCurrent(),(current=current.next).previous=old}else current=buildCurrent(),pageBody$.addClass("js-regionIsMaximized");theme.defaultStickyTop=top,hideAllExceptChildren(current.content$)}(maximizeCore,content$,(function(){var height=header$.outerHeight();return height||0}))},onCollapse:function(){apex.navigation.endFreezeScroll(),maximizeButton$.attr("title",apex.lang.getMessage("MAXIMIZE")).attr("aria-label",apex.lang.getMessage("MAXIMIZE")).attr("aria-expanded",!1).find(".t-Icon").addClass("icon-maximize").removeClass("icon-restore"),current&&isIRR&&content$&&(resetIRRHeight(content$.find(".t-fht-tbody")),win$.off(EVENTS_apexResized,fthOnResize),getCollapsible().off("collapsibleexpand",fthOnResize).off("collapsiblecollapse",fthOnResize)),isIRR&&content$.find(".container").first().show(),forceResize(),current&&(current.previous?(current.previous.next=null,content$.find(".js-stickyWidget-toggle").stickyWidget("forceScrollParent",content$.parents(".t-Region-bodyWrap").first()),hideAllExceptChildren(current.previous.content$),theme.defaultStickyTop=current.previous.top):(theme.defaultStickyTop=getFixedHeight,$(".js-stickyWidget-toggle").stickyWidget("forceScrollParent",null),pageBody$.removeClass("js-regionIsMaximized"),maximizableRegions$.css("visibility","visible")),win$.trigger(EVENTS_apexResized),current=current.previous)}});maximizeCore.initialize()})),doc$.on("keydown",(function(event){if(current){if(event.which===$.ui.keyCode.ESCAPE)return current.core.collapse(),event.preventDefault(),!1;event.which===$.ui.keyCode.TAB&&(event.shiftKey&&event.target===current.first?(event.preventDefault(),current.first.focus()):event.shiftKey||current.last===event.target&&(event.preventDefault(),current.last.focus()))}}))},hidePagination:function(){var hidePagination=function(regionId){var pagination$=$("#"+regionId).find(".t-Report-pagination");pagination$.find("td").length>0&&!(pagination$.find("td.pagination > a").length>0||pagination$.find("td.pagination > select").length>0)&&pagination$.addClass("u-hidden")};$(".t-Report--hideNoPagination").each((function(){var regionId=$(this).data("region-id");hidePagination(regionId),$("#"+regionId).on("apexafterrefresh",(function(){hidePagination(regionId)}))}))},mobile:function(){var stickyMobileTitle,navTabs$=$(".t-NavTabs"),stickyButtonContainer$=$(".t-ButtonRegion--stickToBottom"),getNavTabsHeight=function(padding){var navHeight=0,navPadding=padding||0;return mediaQuery("(max-width: "+(mq_md-1)+"px)")&&(navHeight=navTabs$.outerHeight()||0),navHeight>0&&(navHeight+=navPadding),navHeight};if(body$.hasClass("js-pageStickyMobileHeader")){(stickyMobileTitle=function(){var isSticky=!!pageTitle$.data("apexStickyWidget");mediaQuery("(max-width: "+(mq_sm-1)+"px)")||isSticky&&setTimeout(resetHeaderOffset,50)})(),win$.on("theme42layoutchanged apexwindowresized",stickyMobileTitle)}if(stickyButtonContainer$[0]){var stickyMobileFooter=function(){var footerBottomOffset=getNavTabsHeight();footer$.css("padding-bottom",footerBottomOffset||""),mediaQuery("(max-width: "+(mq_md-1)+"px)")?(stickyButtonContainer$.addClass("is-anchored").css("bottom",footerBottomOffset),footer$.css("padding-bottom",footerBottomOffset+stickyButtonContainer$.outerHeight()+16)):(stickyButtonContainer$.removeClass("is-anchored").css("bottom",""),footer$.css("padding-bottom",""))};stickyMobileFooter(),win$.on(EVENTS_apexResized,stickyMobileFooter)}navTabs$[0]&&!stickyButtonContainer$[0]&&(footer$.css("margin-bottom",getNavTabsHeight()||""),win$.on(EVENTS_apexResized,(function(){footer$.css("margin-bottom",getNavTabsHeight()||"")})))},initWizard:function(){var wizardLinks$=$(".js-wizardProgressLinks");theme.initWizardProgressBar(),wizardLinks$.length>0&&wizardLinks$.each((function(){$(this).find(".t-WizardSteps-wrap").each((function(){var parent$,existingMarkup$,thisStep$=$(this),link=thisStep$.data("link");link&&(parent$=thisStep$.parent(),existingMarkup$=thisStep$.children(),$("<a class='t-WizardSteps-wrap' href='"+link+"'></a>").appendTo(parent$).append(existingMarkup$),thisStep$.remove())}))}))},megaMenu:function(){var menuNav$=$("#t_MenuNav",apex.gPageContext$),isMegaMenu=menuNav$.hasClass("t-MegaMenu"),hasCallout=menuNav$.hasClass("js-menu-callout");menuNav$.length>0&&isMegaMenu&&($("#t_Button_navControl").attr("data-menu","t_MenuNav").addClass("js-menuButton t-Button--megaMenuToggle").show(),menuNav$.hasClass("js-addActions")&&apex.actions.addFromMarkup(menuNav$),hasCallout&&menuNav$.prepend("<div class='u-callout'></div>"),menuNav$.menu({customContent:!0,tabBehavior:"NEXT",callout:hasCallout}))}},ut_apex_ready_init={carousel:function(){var carousel$=$(".t-Region--carousel");$.fn.carousel&&carousel$.length>0&&carousel$.carousel({containerBodySelect:".t-Region-carouselRegions",html:!0})},tabsRegion:function(){var TABS_REGION_REGEX;TABS_REGION_REGEX=/t-TabsRegion-mod--([^\s]*)/,$.fn.utTabs=function(){var that$=$(this);that$.each((function(){var tabClasses=[];this.className.split(/\s+/).forEach((function(clazz){var match=clazz.match(TABS_REGION_REGEX);null!==match&&match.length>0&&tabClasses.push("t-Tabs--"+match[1])}));var ul$=$("<ul class='t-Tabs "+tabClasses.join(" ")+"' role='tablist'>"),items$=$(this).find(".t-TabsRegion-items").first();items$.prepend(ul$),items$.children().filter("div").each((function(){var tab$=$(this),tabId=tab$.attr("id"),tabLabel=tab$.attr("data-label");ul$.append("<li class='t-Tabs-item' aria-controls='"+tabId+"' role='tab'> <a href='#"+tabId+"' class='t-Tabs-link' tabindex='-1'>   <span>"+tabLabel+"</span> </a></li>")})),ul$.aTabs({tabsContainer$:items$,optionalSelectedClass:"is-active",showAllScrollOffset:!1,onRegionChange:function(mode,activeTab){activeTab&&activeTab.el$.find(".js-stickyWidget-toggle").trigger("forceresize")},useSessionStorage:that$.hasClass("js-useLocalStorage")})}))};var tabsRegion$=$(".t-TabsRegion");$.apex.aTabs&&tabsRegion$.length>0&&tabsRegion$.utTabs()},floatingLabels:function(){var blurDelayTimer,lastItem,popupSelector,CL_FLOAT=".t-Form-fieldContainer--floatingLabel",floatContainers$=$(CL_FLOAT);if(0===floatContainers$.length)return!1;function getContainer(pElem){return pElem.closest(".t-Form-fieldContainer")}function clearBlurTimer(){clearTimeout(blurDelayTimer),blurDelayTimer=null}$(CL_FLOAT+" .t-Form-itemText--pre").each((function(){var preText$=$(this),field$=getContainer(preText$);preText$.detach().prependTo(field$)})),floatContainers$.not(".apex-item-wrapper--display-only").has("span.apex-item-display-only").addClass("apex-item-wrapper--display-only");var needLabel=function(item$){var placeholder=item$.attr("placeholder")||"",firstOptionText=item$.children("option").first().text()||"";return!apex.item(item$.attr("id")).isEmpty()||placeholder.length||firstOptionText.length},popupElementBlur=function(){triggerBlur(lastItem)},popupElementFocused=function(event){$(event.target).closest(popupSelector).length&&(clearBlurTimer(),$(popupSelector).on("focusout",popupElementBlur))},triggerBlur=function(pThis){var item$=$(pThis),container$=getContainer(item$);lastItem=pThis,blurDelayTimer||(blurDelayTimer=setTimeout((function(){if(lastItem=null,blurDelayTimer=null,popupSelector)return $(document.body).off("focusin",popupElementFocused),void $(popupSelector).off("focusout",popupElementBlur);needLabel(item$)?container$.addClass("js-show-label"):container$.removeClass("js-show-label"),container$.removeClass("is-active")}),100))};$(".t-Form-fieldContainer--floatingLabel .apex-item-text, .t-Form-fieldContainer--floatingLabel .apex-item-select, .t-Form-fieldContainer--floatingLabel .apex-item-textarea, .t-Form-fieldContainer--floatingLabel .apex-item-popup-lov, .t-Form-fieldContainer--floatingLabel .apex-item-datepicker, .t-Form-fieldContainer--floatingLabel .apex-item-datepicker-jet, .t-Form-fieldContainer--floatingLabel .apex-item-color-picker, .t-Form-fieldContainer--floatingLabel .has-floating-label").each((function(){var item$,container$;item$=$(this),container$=getContainer(item$),needLabel(item$)?container$.addClass("js-show-label"):container$.removeClass("js-show-label"),item$.is(":disabled")?container$.addClass("is-disabled"):container$.removeClass("is-disabled"),item$.attr("required")&&container$.addClass("is-required")})).on("change",(function(){var item$=$(this),container$=getContainer(item$);needLabel(item$)?container$.addClass("js-show-label"):container$.removeClass("js-show-label")})).on("focus",(function(){getContainer($(this)).addClass("is-active"),blurDelayTimer&&lastItem===this&&clearBlurTimer(),(popupSelector=apex.item(this).getPopupSelector())&&$(document.body).on("focusin",popupElementFocused)})).on("blur",(function(){triggerBlur(this)})),$(document.activeElement).focus()},misc:function(){body$.removeClass("no-anim");var navigationBarCallout=$(".t-NavigationBar").hasClass("js-menu-callout");$(".t-NavigationBar-menu",pageCtx$).menu({callout:navigationBarCallout}),$(".t-Alert .t-Button--closeAlert").click((function(){delayResize()}));var backToTop$=$("#t_Footer_topButton");$(".a-MenuBar").menu("resize"),backToTop$.attr("title",apex.lang.getMessage("APEX.UI.BACK_TO_TOP")).click((function(){return $("html, body").animate({scrollTop:0},500),$("a.t-Header-logo-link").focus(),!1}));var scrollToAnchor=function(){scrollTo(window.location.hash)};scrollToAnchor(),win$.on("hashchange",(function(e){e.preventDefault(),scrollToAnchor()})),theme.initResponsiveDialogs(),resetHeaderOffset();$("#apexDevToolbar").length>0&&doc$.on("apex-devbar-grid-debug-on",(function(){body$.addClass("grid-debug-on")})).on("apex-devbar-grid-debug-off",(function(){body$.removeClass("grid-debug-on")}))}};let Page=function(){this.init()};Page.prototype={init:function(){var initComponents=function(pComponents){var key;for(key in pComponents)Object.prototype.hasOwnProperty.call(pComponents,key)&&pComponents[key]()};win$.trigger(EVENTS_preload),initComponents(ut_doc_ready_init),$(pageCtx$).on(EVENTS_readyEnd,(function(){initComponents(ut_apex_ready_init),win$.trigger(EVENTS_utReady)}))}},$((function(){ut.page=new Page}))}(apex.jQuery,apex.theme42,apex.theme,apex.debug);