/* Minification failed. Returning unminified contents.
(7,814-815): run-time error JS1014: Invalid character: `
(7,832-833): run-time error JS1003: Expected ':': {
(7,834-835): run-time error JS1003: Expected ':': }
(7,835-836): run-time error JS1014: Invalid character: `
(7,983-984): run-time error JS1014: Invalid character: `
(7,989-990): run-time error JS1193: Expected ',' or ')': {
(7,992-993): run-time error JS1014: Invalid character: `
(7,993-994): run-time error JS1195: Expected expression: )
(7,1057-1058): run-time error JS1014: Invalid character: `
(7,1059-1060): run-time error JS1193: Expected ',' or ')': {
(7,1061-1062): run-time error JS1002: Syntax error: }
(7,1065-1066): run-time error JS1002: Syntax error: }
(7,1066-1067): run-time error JS1014: Invalid character: `
(7,1137-1138): run-time error JS1197: Too many errors. The file might not be a JavaScript file: =
 */
/*! Copyright (c) Epic Systems Corporation 2012 - 2018 */
var WP=WP||{};void 0===WP.FdiUtils&&(WP.FdiUtils={}),WP.FdiUtils.handleFDILink=function WP$FdiUtils$handleFDILink(e){var t,i,n;t=$afe.jq(e.target),e.preventDefault(),(i=t.closest("[data-fdi-context]")).length>0&&(n=i.safeAttr("data-fdi-context"),WP.FdiUtils.ExecuteFDILink(n))},WP.FdiUtils.ExecuteFDILink=function WP$FdiUtils$ExecuteFDILink(e){var t,i,n,d,o,l,a,r,c,s;o="",""!==e&&(i=(t=JSON.parse(e)).fdi,n=t.csn,d=t.ord,l=t.DocumentID,a=t.eptId,r=t.orgId,c=t.overrideMode,s=t.patientIndex,delete t.fdi,delete t.csn,delete t.ord,delete t.DocumentID,delete t.eptId,delete t.orgId,delete t.overrideMode,delete t.patientIndex,o=WP.FdiUtils.buildFDILinkParamString(i,n,d,t,l,a,r,c,s)),getCSRFTokenAsQS((function(e){$.ajax({url:makeLink("Extensibility/Redirection/FdiData"+o),type:"POST",dataType:"json",data:e,success:function(e){WP.FdiUtils.fdiJSONSuccess(e,o)}})}))},WP.FdiUtils.fdiJSONSuccess=function WP$FdiUtils$fdiJSONSuccess(e,t){var i,n,d,o;switch(i=e.url,n=e.launchmode,o=e.IsFdiPost,4===n&&(i=makeLink(i)),o&&(i=makeLink("Extensibility/Redirection/FdiRedirection"+t)),n){case 1:case 4:window.location.href=i;break;default:null!=(d=openWindow(i,"","",null,!0,!1,!0))&&void 0!==d||WP.DOM.Browser.isIE||WP.DOM.Browser.isLegacyEdge||WP.FdiUtils.PopupBlocked(i)}},WP.FdiUtils.PopupBlocked=function WP$FdiUtils$PopupBlocked(e){var t;$$WP.Strings.setDefaultNamespace("Global"),(t=new $$WPComp.MessageComponent({TitleText:$$WP.Strings.get("BlockedPopupTitle"),Message:$$WP.Strings.get("BlockedPopupMessageWithLink"),ToolbarButtons:[new $$WPComp.ComplexObjects.Button($$WP.Strings.get("BlockedPopupLaunchBtnTitle"),null,"completeworkflow","LaunchLink"),new $$WPComp.ComplexObjects.Button($$WP.Strings.get("BlockedPopupCancelBtnTitle"),null,"cancelworkflow","")],IsCloseable:!0})).addEventListener("click",$.proxy(this.LaunchClickHandler,this,e)),$$WPUtil.quickPopup(t)},WP.FdiUtils.LaunchClickHandler=function WP$FdiTuils$LaunchClickHandler(e,t){t&&t.dataId&&"toolbarLaunchLink"===t.dataId&&openWindow(e,"","",null,!0,!1,!0)},WP.FdiUtils.buildFDILinkParamString=function WP$FdiUtils$buildFDILinkParamString(e,t,i,n,d,o,l,a,r){var c;return c="",e?(c=$$WPUtil.addUrlParameter(c,"fdi",encodeURIComponent(e)),t&&(c=$$WPUtil.addUrlParameter(c,"csn",encodeURIComponent(t))),i&&(c=$$WPUtil.addUrlParameter(c,"ord",encodeURIComponent(i))),$.isEmptyObject(n)||(c=$$WPUtil.addUrlParameter(c,"extra",encodeURIComponent(JSON.stringify(n)))),d&&(c=$$WPUtil.addUrlParameter(c,"DocumentID",encodeURIComponent(d))),o&&(c=$$WPUtil.addUrlParameter(c,"eptID",encodeURIComponent(o))),l&&(c=$$WPUtil.addUrlParameter(c,"orgID",encodeURIComponent(l))),a&&(c=$$WPUtil.addUrlParameter(c,"overrideMode",encodeURIComponent(a))),null!==r&&(c=$$WPUtil.addUrlParameter(c,"patientIndex",encodeURIComponent(r))),c):""};;
/*! Copyright (c) Epic Systems Corporation 2014-2019 */
$$WP.PageStartup=$$WP.PageStartup||{},function PageStartup$cloneAjax(){if($$WP._ajaxReal)$$WP.Debug.logError("$.ajax has already been copied. Did this file get included twice?");else{var getCSRFInfo=function(){return($$WP&&$$WP._CSRFTokenName&&$$WP._CSRFToken?{tokenName:$$WP._CSRFTokenName,tokenValue:$$WP._CSRFToken}:null)||(null!=(e=getTokenFromDiv("#__CSRFContainer")).tokenName&&null!=e.tokenValue&&($$WP._CSRFTokenName=e.tokenName,$$WP._CSRFToken=e.tokenValue),e);var e},getWidgetToken=function(){return($$WP&&$$WP._WidgetTokenName&&$$WP._WidgetToken?{tokenName:$$WP._WidgetTokenName,tokenValue:$$WP._WidgetToken}:null)||(null!=(e=getTokenFromDiv("#__WidgetTokenContainer")).tokenName&&null!=e.tokenValue&&($$WP._WidgetTokenName=e.tokenName,$$WP._WidgetToken=e.tokenValue),e);var e},getWidgetAuth=function(){return($$WP&&$$WP._WidgetAccessTokenName&&$$WP._WidgetAccessToken?{tokenName:$$WP._WidgetAccessTokenName,tokenValue:$$WP._WidgetAccessToken}:null)||(null!=(e=getTokenFromDiv("#Authorization")).tokenName&&null!=e.tokenValue&&($$WP._WidgetAccessTokenName=e.tokenName,$$WP._WidgetAccessToken=e.tokenValue),e);var e},getTokenFromDiv=function(e){var t,n,a={};return(t=$afe.select(e))&&t.length>0&&(n=t.find("input").first())&&n.length>0&&(a={tokenName:n.safeAttr("name"),tokenValue:n.val()}),a};$.ajaxPrefilter((function PageStartup$ajaxPrefilter(e,t,n){e.crossDomain&&(e.contents.script=!1),n.originalOptions=t})),$$WP._ajaxReal=$.ajax||jQuery.ajax,$.ajax=function PageStartup$ajax(e,t){var n;("object"==typeof e?e=(t=e).url:t=t||{},t.type=t.type||"GET","GET"!==t.type.toUpperCase()&&(t.headers=t.headers||{},n=getCSRFInfo(),t.headers[n.tokenName]=n.tokenValue),$$WP.WidgetMode)&&(t.headers=t.headers||{},t.headers.__WidgetHeader=getWidgetToken().tokenValue,null!=getWidgetAuth().tokenValue&&(t.headers.Authorization=getWidgetAuth().tokenValue),t.headers["api-key"]=$$WP.WidgetApiKey,$$WP.WidgetLanguage&&(t.headers.lang=$$WP.WidgetLanguage));return t.captchaResponse&&(t.headers["X-Captcha-Response"]=t.captchaResponse),e=$$WP.Utilities.addUrlParameter(e,"noCache",Math.random()),t.url=e,function PageStartup$wrapAjaxCallbacks(e){var t,n;e.success&&(e.hasOwnSuccessHandler=!0,t=e.context?e.success.bind(e.context):e.success.bind(e)),e.error&&(e.hasOwnErrorHandler=!0,n=e.context?e.error.bind(e.context):e.error.bind(e));var a=!1;e.success=function PageStartup$wrapAjaxCallbacks$successWrapper(e,n,i){try{a||$$WP&&$$WP.Performance&&$$WP.Performance.Tracker&&"function"==typeof $$WP.Performance.Tracker._logHttpRequest&&($$WP.Performance.Tracker._logHttpRequestFromAjax(i),a=!0)}finally{t&&t(e,n,i)}},e.error=function PageStartup$wrapAjaxCallbacks$errorWrapper(e,t,i){try{a||$$WP&&$$WP.Performance&&$$WP.Performance.Tracker&&"function"==typeof $$WP.Performance.Tracker._logHttpRequest&&($$WP.Performance.Tracker._logHttpRequestFromAjax(e),a=!0)}finally{n&&n(e,t,i)}}}(t),$$WP._ajaxReal(e,t)},$$WP.IsPendingAJAXRequests=!1,$$WP.PendingAJAXCallBack=null,$afe.jq(document).ajaxStart((function PageStartup$ajaxStart(){$$WP.IsPendingAJAXRequests=!0})),$afe.jq(document).ajaxStop((function PageStartup$ajaxStop(){$$WP.IsPendingAJAXRequests=!1,null!==$$WP.PendingAJAXCallBack&&"function"==typeof $$WP.PendingAJAXCallBack&&($$WP.PendingAJAXCallBack(),$$WP.PendingAJAXCallBack=null)}))}}(),function PageStartup$cloneShowHide(e){var t;$$WP._showReal&&$$WP._hideReal?$$WP.Debug.logError("$.show and $.hide have already been copied. Did this file get included twice?"):($$WP._showReal=e.fn.show,$$WP._hideReal=e.fn.hide,t=function PageStartup$supplementCompleteFunction(e){var t,n,a,i=function PageStartup$callbackShowHide(){t()},o=function PageStartup$callbackShowHide(){};if(0!==e.length){for(n=0;n<e.length;n++)"object"==typeof(t=e[n])?("function"==typeof t.complete?e[n].complete=i:e[n].complete=o,a=!0):"function"==typeof t&&(e[n]=i,a=!0);a||Array.prototype.push.call(e,o)}},e.fn.show=function PageStartup$show(){var e;return setTimeout((function(){$$WP.Debug.UpdateTopMarginForBanners()}),100),this.length>0&&(this.hasClass("hidden")?$$WP.Debug.logError("$.show() called on a hidden element. It still won't be shown - it's hidden. If you want it to ever appear, use the jqHidden class instead of hidden."):this.hasClass("jqHidden")||$$WP.Debug.log("$.show() called on an element without the jqHidden class. You should set this class rather than an inline display style.",!0)),arguments.length>0?(t(arguments),e=$$WP._showReal.apply(this,arguments)):(e=$$WP._showReal.apply(this),this.hasClass("cardlist")&&this.trigger("cardLoad")),e},e.fn.hide=function PageStartup$hide(){var e;return this.length>0&&(this.hasClass("hidden")?$$WP.Debug.logError("$.hide() called on a hidden element. This was a pointless function call."):this.hasClass("jqHidden")||$$WP.Debug.log("$.hide() called on an element without the jqHidden class. You should set this class rather than an inline display style.",!0)),arguments.length>0?(t(arguments),e=$$WP._hideReal.apply(this,arguments)):e=$$WP._hideReal.apply(this),e})}(jQuery),$afe.onDocumentReady((function PageStartup$onDomReady(){$$WP.WidgetMode&&(setInterval($$WPUtil.RefreshHeader,9e5),setupIframeResizer()),!0!==$$WP.IsEpicAjaxErrorHandlerDisabled&&$afe.jq(document).ajaxError($$WPUtil.defaultAjaxErrorHandler),function PS$setupFDILinkHandling(){WP.FdiUtils&&($afe.select("body").on("click","a[data-fdi-option]",WP.FdiUtils.handleFDILink),$afe.select("body").on("click",'a[href="#Extensibility_ReportLink"]',WP.FdiUtils.handleFDILink))}(),function PageStartup$setupInputListeners(){var e,t,n,a,i,o,r,s,l,u;i=/<([A-Za-z\/])/gm,l=/&#/gm,u=[9,16,17,18,20,27,33,34,35,36,37,38,39,40,44,112,113,114,115,116,117,118,119,120,121,122,123,144,145],a=function PageStartup$sanitizeXmlAndHtml(e){return e.replace(i,"< $1").replace(l,"& #")},e=function PageStartup$includes(e){var t=!1;return u.forEach((function(n){e!==n||(t=!0)})),t},t=function PageStartup$sanitizeInput(t){var n,i,o;t&&t.which&&e(t.which)||(n=this.value,i=a(n),o=$$WPUtil.RemoveUnsupportedChars(i),n.length!==o.length&&(this.value=o,o!==i&&($$WP.Utilities.UI.IsMobile||WP.DOM.Browser.isMobile?alert($$WP.Strings.get("UnsupportedCharsPopupMessage","Global")):$$WPUtil.quickPopup(new $$WPComp.MessageComponent({TitleText:$$WP.Strings.get("UnsupportedCharsPopupTitle","Global"),ToolbarButtons:[{Text:$$WP.Strings.get("UnsupportedCharsPopupConfirmButton","Global")}],Message:$$WP.Strings.get("UnsupportedCharsPopupMessage","Global"),IsClosable:!0}),{Size:$$WP.Containers.Popup.SizeEnum.Small,positioningFunction:$$WPContain.Positions.InsideCentered}))))},n=function PageStartup$formValidationSanitizeInput(t){var n,i;t&&t.which&&e(t.which)||(n=this.value)!==(i=a(n))&&(this.value=i)},r='input:not([data-jq-ignore="true"]):not([data-permissive="true"]):not([type]):not([data-validation-settings]), input:not([data-jq-ignore="true"]):not([data-permissive="true"])[type="text"]:not([data-validation-settings]), textarea:not([data-jq-ignore="true"]):not([data-permissive="true"]):not([data-validation-settings])',s='input:not([data-jq-ignore="true"]):not([data-permissive="true"]):not([type])[data-validation-settings], input:not([data-jq-ignore="true"]):not([data-permissive="true"])[type="text"][data-validation-settings], textarea:not([data-jq-ignore="true"]):not([data-permissive="true"])[data-validation-settings]',(o=$afe.select("body")).on("keyup change",r,t),o.on("keyup change",s,n),o.on("paste",r,(function(){setTimeout($.proxy(t,this),300)})),o.on("paste",s,(function(){setTimeout($.proxy(n,this),300)})),o.on("click","a",(function WP$GlobalAnchorListener(e){var t,n,a,i,o,r;n=(t=$afe.jq(e.currentTarget).closest("a")).safeAttr("data-redirect")||t.safeAttr("href"),!(o=t.safeAttr("target"))&&t.safeAttr("data-jq-ignore")||(t.hasClass("disabled")||"#"===n?e.preventDefault():t.get(0).hasAttribute("onclick")||"string"!=typeof n||0===n.length||"#"===n[0]||t.get(0).hasAttribute("target")&&"_blank"!==o&&"_self"!==o||(a="_blank"===t.safeAttr("target")||e.ctrlKey,i=t.safeAttr("data-organization"),r="true"===t.safeAttr("data-external"),$$WPUtil.TryRedirect(n,null,i,a,r),e.preventDefault()))})),window.location!==window.parent.location&&o.on("focus","a[href]:not([tabindex='-1']), area[href]:not([tabindex='-1']), input:not([tabindex='-1']), select:not([tabindex='-1']), textarea:not([tabindex='-1']), button:not([tabindex='-1']), [tabindex]:not([tabindex='-1'])",(function WP$GlobalClickListenerGetIFrameStorageAccess(e){var t=-1!==document.location.pathname.toLowerCase().indexOf("authentication/login/loginwidget"),n=!0;try{n=window.top.location.hostname.toLowerCase()!==window.location.hostname.toLowerCase()}catch(e){n=!0}t&&n&&"function"==typeof document.requestStorageAccess&&WP.DOM.Browser.isFirefox&&$$WPUtil.canWriteCookies()&&document.requestStorageAccess().then((function(){"1"!=getCookie("LoginWidget",!0)&&(setCookie("LoginWidget","1",!0),document.getElementById("loginForm")||window.location.reload())}),(function(){"1"!=getCookie("LoginWidget",!0)&&(setCookie("LoginWidget","0",!0),o.trigger("failedStorageRequest"))})),$$WPUtil.canWriteCookies()||$$WPUtil.canWriteCookiesAsync().then((function(e){e?o.trigger("successfulStorageRequest"):o.trigger("failedStorageRequest")}))}))}(),function PageStartup$DrivingDirections(){var e=function WP$PageStartup$DrivingDirections$s_clickedDrivingDirections(e){var t=$afe.jq(e.currentTarget).safeAttr("data-driving-directions");$$WP.Utilities.UI.IsMobile?openWindow(makeLink("epichttp://directions?address="+encodeURIComponent(t)),"","","",!1):openWindow(makeLink("Education/DrivingDirections?address="+encodeURIComponent(t)),"","","",!1),e.preventDefault()};!function WP$PageStartup$DrivingDirections$s_initializeFramework(){$afe.select("body").on("click","[data-driving-directions]",e)}()}(),function PS$setActivity(){$afe.select("body").on("input keyup keypress change scroll click dblclick select wheel cut paste touchstart touchend touchmove touchcancel",$$WP.Utilities.SetActivity)}(),function PageStartup$overrideOpenWindow(){var e;$$WP._windowOpenReal=$.proxy(window.open,window),e=function Page$Startup$overrideOpenWindow$windowOpenOverride(e,t,n,a){return openWindow(e,t,n,null,!1,a)},window.open=e}(),function PageStartup$overrideJQueryExtend(){jQuery.extend=jQuery.fn.extend=function(){var e,t,n,a,i,o,r=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof r&&(u=r,r=arguments[s]||{},s++),"object"==typeof r||jQuery.isFunction(r)||(r={}),s===l&&(r=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)n=r[t],r!==(a=e[t])&&"__proto__"!==t&&(u&&a&&(jQuery.isPlainObject(a)||(i=jQuery.isArray(a)))?(i?(i=!1,o=n&&jQuery.isArray(n)?n:[]):o=n&&jQuery.isPlainObject(n)?n:{},r[t]=jQuery.extend(u,o,a)):void 0!==a&&(r[t]=a));return r}}()}));;
/*! Copyright (c) Epic Systems Corporation 2012 - 2017 */
var WP=WP||{};void 0===WP.TelehealthUtils&&(WP.TelehealthUtils={}),WP.TelehealthUtils.flashPopup=function(e){var i;(i=window.open("","history","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=800,height=600")).closed||!i.document.URL||0===i.document.URL.indexOf("about")?i.location=e:window.setTimeout(i.focus,1)},WP.TelehealthUtils.telemedPopup=function(e){var i;(i=window.open(e,"history","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=1280,height=720")).opener=window,i.closed||!i.document.URL||0===i.document.URL.indexOf("about")?i.location=e:window.setTimeout(i.focus,1)},WP.TelehealthUtils.telemedExecuteFDI=function(e,i,t,o,n,l,s){var a,c="";null!=o&&(c="&webrtccontext="+o),t?window.open(makeLink("epichttp://fdiredirect?webid="+encodeURIComponent(e)+"&ecsn="+encodeURIComponent(i)+c)):(a=WP.FdiUtils.buildFDILinkParamString(e,i,"","","",l,n,"",s),$.ajax({url:makeLink("Extensibility/Redirection/FdiData"+a),type:"POST",success:function(e){WP.FdiUtils.fdiJSONSuccess(e,a)}}))},WP.TelehealthUtils.keepAliveMessageIfInActiveVisit=function(e){$.ajax({url:makeLink("TelemedicineHome/IsPatientInActiveVideoVisit"),type:"POST",success:e,async:!1})},WP.TelehealthUtils.AuditVideoVisitSLACompletion=function(){$.ajax({url:makeLink("TelemedicineHome/AuditVideoVisitSLACompletion"),type:"POST",async:!0})},WP.TelehealthUtils.webRtcContextEnum={HardwareTest:0,VideoVisit:1};;
$$WPUtil.guaranteeExistence($$WP,"CommunityUtilities"),$$WP.CommunityUtilities.openDeepLink=function(e,t,i,n,a,o,s,r,l,m){var u,c,p,g,y=[];if(t&&"object"==typeof t){if(t.IncompleteH2GSetup)return $$WP.Strings.addMnemonic("@MYCHART@OrganizationName@",t.OrganizationName,"","community.externaljump"),p=new $$WPComp.MessageComponent({TitleText:$$WP.Strings.get("IncompleteH2GPopupTitle","community.externaljump"),Message:$$WP.Strings.get("IncompleteH2GPopupText","community.externaljump"),ToolbarButtons:[new $$WPComp.ComplexObjects.Button($$WP.Strings.get("OkayButtonText","community.externaljump"),null,"cancel","")]}),$$WPUtil.quickPopup(p),void $$WP.Strings.removeMnemonic("@MYCHART@OrganizationName@","community.externaljump");if($$WP.Settings.IsMyChartCentral){var C=i.targetUrl;if(!C&&e&&"netredirect"!=e&&(C=`inside.asp?mode=${e}`,e="netredirect"),C&&!C.includes("mccLocation")){var P=window.location.origin.length,d=window.location.href.substring(P),W=encodeURIComponent(btoa(`url=${d}`)),U=C.includes("?")?"&mccLocation=":"?mccLocation=";C=C.concat(`${U}${W}`),i.targetUrl=C}}($$WPUtil.IsNullOrEmpty(s)||isNaN(s))&&(s="-1"),n||(n=$$WP.CommunityUtilities.openDeepLinkType.InPopup);var S=window.location.href.includes("app/external-jump");t.IsSSO&&!S&&(n||(g=!0),n=$$WP.CommunityUtilities.openDeepLinkType.InNewTab);var f=!$$WP.Utilities.UI.IsMobile&&WP.DOM.Browser.isMobile&&$afe.jq(window).width()<768;if((WP.DOM.Browser.isIE||WP.DOM.Browser.isSafari||f)&&n===$$WP.CommunityUtilities.openDeepLinkType.InPopup&&(n=$$WP.CommunityUtilities.openDeepLinkType.InNewTab,g=!0,y.push({Name:"isIEOrSafari",Value:1})),!$$WPUtil.IsNullOrEmpty(i)&&"object"==typeof i)for(var k in i)y.push({Name:k,Value:i[k]});c=document.location.protocol+"//"+document.location.hostname,$$WPUtil.IsNullOrEmpty(document.location.port)||(c=c+":"+document.location.port),y.push({Name:"parentJumpGUID",Value:$$WP.CommunityUtilities.getExternalJumpGUID()},{Name:"parentDomain",Value:c},{Name:"lang",Value:$$WP.I18N.getMyChartLocale()},{Name:"launchInBrowser",Value:$$WP.Utilities.UI.IsMobile?1:0});var h={};h.mode=e,h.orgID=t.OrganizationId,h.usePayerBrandedSite=i.isPayvider,h.parameters=y,h.patientIndex=s,$$WP.Utilities.UI.IsMobile||closeAllWindows("externalJumpWindow");var success=function(e){if(e&&"string"==typeof e&&(e=JSON.parse(e)),e&&e.RedirectToSignup&&null===e.CommunityResponse)return u.hide(),void $$WP.CommunityUtilities.ShowSignupFailedMessage(t);if(e&&e.CommunityResponse&&!$$WPUtil.IsNullOrEmpty(e.CommunityResponse.RedirectURL))if(e.RedirectToSignup&&$$WP.CommunityUtilities.markCommunityLinkDirty(t.OrganizationId),n){if(l)openLink(e);else if(u&&u._Components&&u._Components.length>0){i&&t.PayerOrgDetails&&(i.isPayvider||t.PayerOrgDetails.IsPayerOnly)?$$WP.Strings.addMnemonic("@MYCHART@OrganizationName@",t.PayerOrgDetails.PayerCvgName,"","community.externaljump"):$$WP.Strings.addMnemonic("@MYCHART@OrganizationName@",e.CommunityResponse.Organization.OrganizationName,"","community.externaljump");var a=[new $$WPComp.ComplexObjects.Button($$WP.Strings.getForTemplate("Continue","community.externaljump"),null,"continue","continue"),new $$WPComp.ComplexObjects.Button($$WP.Strings.getForTemplate("cancel","community.externaljump"),null,"previousstep","cancel")];$$WP.Utilities.UI.IsMobile?(u._Components[0].setMessage($$WP.Strings.get("redirectMessageForMobile","community.externaljump")),e.CommunityResponse.RedirectURL=makeLink(e.CommunityResponse.RedirectURL+"&launchInBrowser=1")):u._Components[0].$content.html($$WP.Strings.get("redirectMessage","community.externaljump")),u._Components[0].CallbackArgs=[e],u._Components[0].setToolbar(a),u.setFocus(),u.$container.trigger("resize"),$$WP.Strings.clearOrganization("community.externaljump")}}else{var o=i.isPayvider||t.PayerOrgDetails&&t.PayerOrgDetails.IsPayerOnly,s=t.PayerOrgDetails?t.PayerOrgDetails.PayerCvgLogoMagicId:"";O.loadIframe(e,o,s),$$WP.CommunityUtilities.logDeepLinkAudit("3",t.OrganizationId,e.EptId)}else{var r="",m=!1,$=!1,c="";e&&e.CommunityResponse&&!$$WPUtil.IsNullOrEmpty(e.ErrorCode)&&("AlreadySignedUp"===(r=e.ErrorCode)?($=!0,c=$$WP.Strings.get("externalLinkAlreadySignedUpTitle","community.externaljump")):m=!0),failure(r,m,$,c)}},openLink=function(e){if(e&&("string"==typeof e&&(e=JSON.parse(e)),"object"==typeof e)){var i,a;if(n===$$WP.CommunityUtilities.openDeepLinkType.InNewTab?i="":n===$$WP.CommunityUtilities.openDeepLinkType.InNewWindow&&(i="scrollbars=1,resizable=1"),a=e.CommunityResponse.IsSSOPost?"":e.CommunityResponse.RedirectURL,e.CommunityResponse.IsSSOPost){var o=openWindow(a,"",i,"externalJumpWindow",!0);$$WPUtil.postForm(e.CommunityResponse.RedirectURL,e.CommunityResponse.SSOParams,o.name)}else n===$$WP.CommunityUtilities.openDeepLinkType.FullPageRedirect?window.location.href=a:openWindow(a,"",i,"externalJumpWindow",!0);$$WP.CommunityUtilities.logDeepLinkAudit("4",t.OrganizationId,e.EptId),e.RedirectToSignup&&$$WP.CommunityUtilities.markCommunityLinkDirty(t.OrganizationId),m&&m(a)}},failure=function(e,t,i,a){var o,s=null;O&&(o=O.callback,O.callback=null,n||O.dispose()),l||u.hide(),$$WPUtil.IsNullOrEmpty(e)?errorMessage="externalLinkErrorMessage":errorMessage="externalLink"+e+"ErrorMessage";var r=!t;t?s=[new $$WPComp.ComplexObjects.Button($$WP.Strings.get("LogoutButtonText","community.externaljump"),null,"cancel","")]:i&&(s=[new $$WPComp.ComplexObjects.Button($$WP.Strings.get("RefreshButtonText","community.externaljump"),null,"completeworkflow","")]);var m=new $$WPComp.MessageComponent({Message:$$WP.Strings.get(errorMessage,"community.externaljump"),IsClosable:r,ToolbarButtons:s,TitleText:a,callback:function(){o&&O.runCallback(o),t?CreateLogOutPopup(!0):i&&location.reload()}});new $$WPUtil.quickPopup(m).show()};if(0!==n){h.access=g?"3":"4",t.PayerOrgDetails&&i&&(i.isPayvider||t.PayerOrgDetails.IsPayerOnly)?$$WP.Strings.addMnemonic("@MYCHART@OrganizationName@",t.PayerOrgDetails.PayerCvgName,"","community.externaljump"):$$WP.Strings.addMnemonic("@MYCHART@OrganizationName@",t.OrganizationName,"","community.externaljump");var x={TitleText:$$WP.Strings.getForTemplate("RedirectPopupTitle","community.externaljump"),callback:function(){"toolbarcontinue"===this.CallbackArgs[1]&&(response=this.CallbackArgs[0],openLink(response))},IsClosable:!0,ToolbarButtons:[]};l||(x.Html=$$WP.Templates.UI.AjaxSpinner({inline:1}),u=$$WPUtil.quickPopup(new $$WPComp.MessageComponent(x),{Size:$$WPContain.Popup.SizeEnum.SMALL,Class:"sm-autosizedpopup externalJumpRequestPopup Popup"}),$$WPUtil.ShowAjaxSpinner(u.$content.find(".ajaxspinner"))),$$WP.Strings.clearOrganization("community.externaljump")}else{var O;h.access="3",x={},a&&o&&(x.callback=a,x.context=o),(O=new $$WPComp.ExternalJumpPopupComponent(x)).initialize(),(u=new $$WPContain.Popup({Components:[O],positioningFunction:$$WPContain.Positions.InsideNearTop,Size:$$WPContain.Popup.SizeEnum.LARGE,Class:"externaljumppopup",CommunicationsIndicator:!1,BackButtonText:$$WP.Strings.get("ExitPopup","community.externaljump"),GetInvisibleLastFocusAnchor:function(e){return O.getLastFocusTrap(e)}})).show(!0),u.setAppropriateScrollBar(),u.firstFocus.focus()}r&&(h.access="5"),h=$$WPUtil.postify(h),getCSRFTokenAsQS((function(){$.ajax({url:makeLink("ExternalJump/GetExternalJumpUrl"),type:"POST",data:h,dataType:"json",error:function(){failure(null,!1)},cache:!1,success:success})}))}else $$WP.Debug.log("Organization passed in to the function is null or not an object.")},$$WP.CommunityUtilities.openDeepLinkType={InPopup:0,InNewTab:1,InNewWindow:2,FullPageRedirect:3},$$WP.CommunityUtilities.logDeepLinkAudit=function logDeepLinkAudit(e,t,i){var n={};n.access=e,n.orgID=t,n.eptId=i,getCSRFTokenAsQS((function(){$.ajax({url:makeLink("ExternalJump/LogExternalJumpAudit"),type:"POST",data:n,cache:!1})}))},$$WP.CommunityUtilities.markCommunityLinkDirty=function markCommunityLinkDirty(e){var t={};t.organizationId=e,getCSRFTokenAsQS((function(){$.ajax({url:makeLink("Community/External/MarkCommunityLinkDirty"),type:"POST",data:t,cache:!1})}))},$$WP.CommunityUtilities.refreshCommunityLink=function refreshCommunityLink(e){var t={},i=function refresh(){location.reload()};t.organizationId=e,getCSRFTokenAsQS((function(){$.ajax({url:makeLink("Community/External/RefreshCommunityLink"),type:"POST",data:t,cache:!1,error:i,success:i})}))},$$WP.CommunityUtilities.getExternalJumpGUID=function getExternalJumpGUID(){return $$WPUtil.IsNullOrEmpty($$WP.CommunityUtilities._externalJumpGUID)&&($$WP.CommunityUtilities._externalJumpGUID=$$WPUtil.generateRandomGUID()),$$WP.CommunityUtilities._externalJumpGUID},$$WP.CommunityUtilities.getParentJumpGUID=function getParentJumpGUID(){return $$WPUtil.IsNullOrEmpty($$WP.CommunityUtilities._parentJumpGUID)?"":$$WP.CommunityUtilities._parentJumpGUID},$$WP.CommunityUtilities.clearJumpGUIDs=function clearJumpGUIDs(){$$WP.CommunityUtilities._externalJumpGUID=null,$$WP.CommunityUtilities._parentJumpGUID=null},$$WP.CommunityUtilities.setJumpParameters=function setJumpGUIDs(e,t){$$WPUtil.IsNullOrEmpty(e)||($$WP.CommunityUtilities._parentJumpGUID=e),$$WPUtil.IsNullOrEmpty(t)||($$WP.CommunityUtilities._parentDomain=t)},$$WP.CommunityUtilities.getParentDomain=function getParentDomain(){return $$WPUtil.IsNullOrEmpty($$WP.CommunityUtilities._parentDomain)?"":$$WP.CommunityUtilities._parentDomain},$$WP.CommunityUtilities.closeExternalParentPopup=function closeExternalParentPopup(){var e,t={};if(t.externalGUID=$$WP.CommunityUtilities.getParentJumpGUID(),t.message="closePopup",e=$$WP.CommunityUtilities.getParentDomain(),parent)try{parent.postMessage(JSON.stringify(t),e)}catch(e){console.error("Invalid Parent Domain")}WP.Comm.logOut(),$$WP.CommunityUtilities.clearJumpGUIDs(),$$WP.CommunityUtilities._parentDomain=null,self===top&&(self.location=makeLink("home/logout"))},$$WP.CommunityUtilities.externalJumpMessageListener=function externalJumpMessageListener(e){var t=$$WP.CommunityUtilities.getParentDomain();if(e&&e.originalEvent&&e.originalEvent.origin===t&&e.originalEvent.data){var i=JSON.parse(e.originalEvent.data);"logout"===i.message?(WP.Comm.logOut(),$$WP.CommunityUtilities.clearJumpGUIDs()):"valid"===i.message&&($$WP._isExternalJumpParentValid=!0)}},$$WP.CommunityUtilities.checkIfCommunityJumpIsValid=function checkIfCommunityJumpIsValid(){var e=$afe.select("body");if(!e.hasClass("md_default")||e.hasClass("isPrelogin")||e.hasClass("PUpage")){if(self!==top){if(self.window.location.href.toLowerCase().indexOf("/err.asp?")>0)return;var t,i={};i.message="isValidContext",i.externalGUID=$$WP.CommunityUtilities.getParentJumpGUID(),t=$$WP.CommunityUtilities.getParentDomain();try{parent.postMessage(JSON.stringify(i),t)}catch(e){$$WP.Debug.logError("Parent Domain Validation failed")}setTimeout((function(){$$WP._isExternalJumpParentValid||top.location.replace(makeLink("home/logout"))}),1e3)}}else self.location=makeLink("closeExternalJumpPopup.asp")},$$WP.CommunityUtilities.openDeepLinkUrl=function(e,t,i,n,a){var o=$$WPUtil.parseQueryString(e),s=o.mode;delete o.mode,$$WP.CommunityUtilities.openDeepLink(s,t,o,i,n,a)},$$WP.CommunityUtilities.ShowSignupFailedMessage=function(e){$$WP.CommunityUtilities.__showSignupFailureMessage(e,"SignupConnectionFailedMessage")},$$WP.CommunityUtilities.ShowSignUpNotAllowedMessage=function(e){$$WP.CommunityUtilities.__showSignupFailureMessage(e,"SignupNotAllowedMessage")},$$WP.CommunityUtilities.__showSignupFailureMessage=function(e,t){var i,n;$$WP.Strings.setDefaultNamespace("community.externallinking"),$$WP.Strings.setOrganization(e),i=$$WP.Strings.get(t),n=$$WP.Strings.get("SignupErrorTitle"),$$WP.Strings.clearOrganization();var a=[new $$WPComp.ComplexObjects.Button($$WP.Strings.get("ok","cancelpopup"),null,"previousstep","cancel")];$$WPUtil.quickMessageBox(i,n,a,null,null,"SignupNotAllowed"),$afe.select(".SignupNotAllowed.component.Popup").removeClass("textlessTitle"),$$WP.Strings.clearDefaultNamespace()},$$WP.CommunityUtilities.hasCommunityLinks=function hasCommunityLinks(){return!$afe.select("body").hasClass("hasNoCommunityLinks")},$$WP.CommunityUtilities.communityChecksuccesscallback=function communityChecksuccesscallback(e){var t,i;null!=e&&(t=(i=e.isCommunityActive)?"hasCommunityLinks":"hasNoCommunityLinks",$$WP.CommunityUtilities.isNotDotNetMode()&&$.ajax({url:makeLink("session.asp?mode=updateCommunityActiveCheckFlags&IsCommunityActive="+i)}),getCSRFTokenAsQS((function(){$.ajax({url:makeLink("Community/External/UpdateCommunityActiveCheckFlags"),type:"POST"})})),$afe.select("body").removeClass("hasNoCommunityLinks hasCommunityLinks").addClass(t))},$$WP.CommunityUtilities.clearCommunityLinksSessionStatus=function clearCommunityLinksSessionStatus(){$$WP.CommunityUtilities.isNotDotNetMode()&&$.ajax({url:makeLink("session.asp?mode=clearCommunityActiveCheckFlags")}),getCSRFTokenAsQS((function(){$.ajax({url:makeLink("Community/External/ClearCommunityActiveCheckFlags"),type:"POST"})}))},$$WP.CommunityUtilities.isNotDotNetMode=function isNotDotNetMode(){return $$WPUtil.IsNullOrEmpty($$WP.Settings.DotNetOnly)||!$$WP.Settings.DotNetOnly},$$WP.CommunityUtilities.checkIfCommunityLinksAvailable=function checkIfCommunityLinksAvailable(){var e=$afe.select("body");e.hasClass("isPrelogin")||e.hasClass("termsPage")||getCSRFTokenAsQS((function(){$.ajax({url:makeLink("Community/External/IsCommunityActive"),dataType:"JSON",type:"POST",cache:!1,success:$$WP.CommunityUtilities.communityChecksuccesscallback,failure:function(e){$$WP.Debug.log("Community Links available ajax called failed.")}})}))},$$WP.CommunityUtilities.getCommunityLinks=function(e,t,i,n){t=t||"*",e=e||function(e){},n=n||window,i=i||[];var a=$$WP.CommunityUtilities.getCommunityLinks;if(a._links[t])return i.push(a._links[t]),e.apply(n,i);a._callback=e,a._args=i,a._context=n,a._waitingFor=t,getCSRFTokenAsQS((function(){$.ajax({url:makeLink("ExternalJump/GetCommunityLinks?requireSecurityForMode="+t),dataType:"JSON",type:"POST",cache:!1,success:$$WP.CommunityUtilities.getCommunityLinks.callStack,failure:function(e){$$WP.CommunityUtilities.getCommunityLinks.callStack({ForMode:t,Organizations:[]})}})}))},$$WP.CommunityUtilities.getCommunityLinks.callStack=function(e){var t=$$WP.CommunityUtilities.getCommunityLinks;t._links[e.ForMode]=e.Organizations,e.ForMode===t._waitingFor&&"function"==typeof t._callback&&(t._args.push(e.Organizations),t._callback.apply(t._context,t._args)),t._waitingFor=null,t._callback=null},$$WP.CommunityUtilities.getCommunityLinks._links={},$$WP.CommunityUtilities.pickOrganization=function pickOrganization(e,t,i,n,a){$$WP.CommunityUtilities.getCommunityLinks((function getCommunityLinks(n){if(!n||0===n.length)return i.push("1"),void e.apply(this,i);if(1===n.length)return i.push(n[0]),void e.apply(this,i);var o,s,r,l=[];for((r=n.length)>3&&(r=3),s=0;s<n.length;s++)l.push(new $$WPComp.ComplexObjects.Button(new Handlebars.SafeString("<span class='orglogo roundedimage' style='background-image:url("+n[s].LogoUrl+");'></span> <span class='orgname'>"+HTMLEncode(n[s].OrganizationName)+"</span>"),null,"tertiary neutral CommunityLink community_"+r,s));o=new $$WPComp.MessageComponent({Message:t,callback:function(){"close"!==arguments[arguments.length-1]&&(arguments[arguments.length-1]=arguments[arguments.length-1].substr($$WPComp.TOOLBARIDENTIFIER.length),arguments[arguments.length-1]=this.links[arguments[arguments.length-1]],this.fun.apply(this,arguments))},TitleText:a,CallbackArgs:i,CallbackContext:{links:n,fun:e},ToolbarButtons:l}),$$WPUtil.quickPopup(o,{Size:l.length<3?$$WPContain.Popup.SizeEnum.SMALL:$$WPContain.Popup.SizeEnum.MEDIUM,Class:"PickOrganization"}).show()}),n)},$$WP.CommunityUtilities.getOrganization=function(e,t,i,n){"function"==typeof t&&(n=n||window,i=i||[],$$WP.CommunityUtilities.getCommunityLinks((function(){var e,t=arguments[0],i=arguments[1],n=arguments[2],a=arguments[3];for(e=0;e<a.length;e++)if(a[e].OrganizationId===t){n.push(a[e]);break}i.apply(this,n)}),null,[e,t,i],n))},$$WP.CommunityUtilities.getLoadingOrgNamesForHealthSummary=function getLoadingOrgNamesForHealthSummary(){var e=this;getCSRFTokenAsQS((function(){$.ajax({url:makeLink("Community/Shared/GetLoadingAndErrorOrgNames"),type:"POST",cache:!1,data:{controllerType:9},dataType:"json",success:e.instantiateCommunityControllerForHealthSummary})}))},$$WP.CommunityUtilities.UpdateBannerStringWithMnem=function UpdateBannerStringWithMnem(e,t,i,n){var a;return $$WP.Strings.getNamespace("Community.Shared").addMnemonic(t,e),a=/^\d+$/.test(e)?$$WP.Strings.get(n,"Community.Shared"):$$WP.Strings.get(i,"Community.Shared"),$$WP.Strings.removeMnemonic(t,"Community.Shared"),a},$$WP.CommunityUtilities.UpdateBannerText=function UpdateBannerText(e,t,i,n){var a,o,s,r,l,m,u;return $$WP.Strings.setDefaultNamespace("Community.Shared"),""!==e&&(a=$$WP.CommunityUtilities.UpdateBannerStringWithMnem(e,"@MYCHART@LoadingOrgs@","CurrentlyLoadingOneText","CurrentlyLoadingManyText"),o=!0),u=""!==i,""!==t?(s=$$WP.CommunityUtilities.UpdateBannerStringWithMnem(t,"@MYCHART@ErrorOrgs@","ErrorLoadingOneText","ErrorLoadingManyText"),r=u?n?$$WP.CommunityUtilities.UpdateBannerStringWithMnem(i,"@MYCHART@ManualOrgs@","ErrorLoadingAndOneManualSubtext","ErrorLoadingAndManyManualSubtext"):$$WP.CommunityUtilities.UpdateBannerStringWithMnem(i,"@MYCHART@ManualOrgs@","ErrorAndOneManualSubtextForSE","ErrorAndManyManualSubtextForSE"):n?$$WP.Strings.get("ErrorLoadingSubtext","Community.Shared"):"",l=!0):u&&(m=$$WP.CommunityUtilities.UpdateBannerStringWithMnem(i,"@MYCHART@ManualOrgs@","OneNonEpicUpdateDisclaimerText","ManyNonEpicUpdateDisclaimerText")),$$WP.Strings.clearDefaultNamespace(),{loadingOrgText:a,hasOrgsLoading:o,errorOrgText:s,errorOrgSubtext:r,hasOrgsWithErrors:l,nonEpicWarningText:m,hasOrgsManual:u}},$$WP.CommunityUtilities.instantiateCommunityControllerForHealthSummary=function instantiateCommunityControllerForHealthSummary(e){var t,i,n,a,o;t=!isShareEverywhere(),i=e.loadingOrgNames,n=e.errorOrgNames,a=e.manualOrgNames,bannerText=$$WP.CommunityUtilities.UpdateBannerText(i,n,a,t),(o=$afe.select("#refresh-banner-container")).addClass("hidden"),o.safeAppend($afe.renderTemplate($$WP.Templates.Community.NonEpicPretextBanner,{ShowDxrBannerAction:t,NonEpicWarningText:bannerText.nonEpicWarningText,HasOrgsLoading:bannerText.hasOrgsLoading,LoadingOrgText:bannerText.loadingOrgText,HasOrgsWithErrors:bannerText.hasOrgsWithErrors,ErrorLoadingText:bannerText.errorOrgText,ErrorLoadingSubtext:bannerText.errorOrgSubtext,HasOrgsManual:bannerText.hasOrgsManual})),$$WP.CommunityUtilities.instantiateCommunityController("HealthSummary",!0)},$$WP.CommunityUtilities.instantiateCommunityController=function instantiateCommunityController(e,t){return t||0!==$afe.select("#refresh-banner-button").length?new $$WP.Community.CommunityController(e):null},$$WP.CommunityUtilities.createCommunityToast=function createCommunityToast(e,t){e&&$$WP.UI.Toast.CreateSimpleToast(e,$$WP.UI.Toast.ToastTypeEnum.Warning,$$WP.CommunityUtilities.__saveDismissedFailedConnections.bind(null,t),null)},$$WP.CommunityUtilities.__saveDismissedFailedConnections=function saveDismissedFailedConnections(e){$.post({url:makeLink("Community/Shared/SaveDismissedFailedConnections"),contentType:"application/json",data:JSON.stringify(e),error:function(){}})},$$WP.CommunityUtilities.autoExpandToFullSite=function autoExpandToFullSite(){var e,success=function(e){if(e&&"string"==typeof e&&(e=$.parseJSON(e)),e&&e.Redirection&&!$$WPUtil.IsNullOrEmpty(e.Redirection.RedirectURL)){var t=new $$WPComp.MessageComponent({TitleText:e.Title,Message:'<div class="center">'+e.LoadingMessage+'</div><div class="loadingHeart"></div>',IsClosable:!1});$$WPUtil.quickPopup(t),e.Redirection.IsPost?$$WPUtil.postForm(e.Redirection.RedirectURL,e.Redirection.Params,"_self"):window.location.href=e.Redirection.RedirectURL}else showPage()},showPageOnly=function(){$afe.select("#content").removeClass("hidden"),$afe.select("#footer").removeClass("hidden")},showPage=function(){if(showPageOnly(),i.Utilities.UI.StopPageLoad=!1,!0===i.Utilities.UI.PageLoaded){var e={type:"load"};i.Utilities.UI.OnPageLoad(e)}};try{e=window.self!==window.top}catch(t){e=!0}if(e)showPageOnly();else{$afe.select("#content").addClass("hidden"),$afe.select("#footer").addClass("hidden");var t=t||{};t.PatientAccess=t.PatientAccess||{};var i=i||t.PatientAccess;i.Utilities=i.Utilities||{},i.Utilities.UI=i.Utilities.UI||{},i.Utilities.UI.StopPageLoad=!0;var n=window.self.location.href,a=n.toLowerCase().indexOf("/inside.asp");if(a>0){var o={};o.relativeUrl=n.substring(a+1),o=$$WPUtil.postify(o),getCSRFTokenAsQS((function(){$.ajax({url:makeLink("ExternalJump/GetMyChartFullAccessUrl"),type:"POST",data:o,dataType:"json",error:showPage,cache:!1,success:success})}))}else $.ajax({url:makeLink("ExternalJump/GetMyChartFullAccessUrl"),type:"POST",dataType:"json",error:showPage,cache:!1,success:success})}};;
/*! Copyright (c) Epic Systems Corporation 2016-2018 */
!function WP$ST$Setup(){var e,t,a,n;$$WPUtil.guaranteeExistence($$WP,"SimpleTemplates"),$$WPUtil.guaranteeExistence($$WP,"SimpleTemplates.Div"),$$WPUtil.guaranteeExistence($$WP,"SimpleTemplates.Span"),$$WPUtil.guaranteeExistence($$WP,"SimpleTemplates.Img"),$$WPUtil.guaranteeExistence($$WP,"SimpleTemplates.Label"),$$WPUtil.guaranteeExistence($$WP,"SimpleTemplates.ErrorLabel"),$$WPUtil.guaranteeExistence($$WP,"SimpleTemplates.WarningIcon"),$$WPUtil.guaranteeExistence($$WP,"SimpleTemplates.MessageDisplay"),$$WPUtil.guaranteeExistence($$WP,"SimpleTemplates.Anchor"),$$WPUtil.guaranteeExistence($$WP,"SimpleTemplates.ValidationMessage"),n=/(\w*="[^"]+")|(\w*='[^']+')/g,e=function WP$ST$CA(e){var t,a,l,r,i,$,s;if(e&&"string"!=typeof e)return $$WP.Debug.logError("attributesStr is not a string."),{};if(!(t=e.match(n))||t.length<1)return $$WP.Debug.logError("attributesStr does not contain any attributes."),{};for(i={},a=0;a<t.length;a++)(l=t[a])?(r=l.split("="))&&2===r.length?($=r[0].trim(),s=(s=(s=r[1].trim()).substring(1,s.length-1)).trim(),i[$]=s):$$WP.Debug.logError("piece "+a+" is not a valid attribute."):$$WP.Debug.logError("piece"+a+" is not a valid attribute.");return i},t=function WP$ST$SA(t,a){var n,l;if(t&&0!==t.length){if(a?"string"==typeof a&&(a=e(a)):a={},$$WP.Debug.IsEnabled&&"name"in Function&&void 0===a["data-generated-by"])try{for(n=arguments.callee.caller;n&&0===n.name.indexOf("WP$ST");)n=n.caller;n&&(a["data-generated-by"]=n.name)}catch(e){}for(l in a)t.safeAttr(l,a[l])}else $$WP.Debug.logError("$newElement does not contain any elements!")},a=function WP$ST$SUE(e,a,n){return t(e,a),n&&("string"==typeof n?e.text(n):e.safeAppend(n)),e},$$WP.SimpleTemplates.Div=function WP$ST$Div(e,t){var n;return n=$afe.jq(document.createElement("div")),a(n,e,t),n},$$WP.SimpleTemplates.Span=function WP$ST$Span(e,t){var n;return n=$afe.jq(document.createElement("span")),a(n,e,t),n},$$WP.SimpleTemplates.Img=function WP$ST$Img(e){var t;return t=$afe.jq(document.createElement("img")),a(t,e),t},$$WP.SimpleTemplates.Label=function WP$ST$Label(e,t){var n;return n=$afe.jq(document.createElement("label")),a(n,e,t),n},$$WP.SimpleTemplates.ErrorLabel=function WP$ST$ErrorLabel(){return $$WP.SimpleTemplates.Span({class:"clearlabel"},$$WP.Strings.get("ErrorLabelText"))},$$WP.SimpleTemplates.WarningIcon=function WP$ST$WarningIcon(e){var t,a;return t={src:makeStaticImageLink("error_circle.png"),class:"yield",alt:""},"object"===$.type(e)?($$WPUtil.mergeObjects(e,t,!1,!0),a=$$WP.SimpleTemplates.Img(t)):(null===l&&(l=$$WP.SimpleTemplates.Img(t)),a=l.clone()),a};var l=null;$$WP.SimpleTemplates.MessageDisplay=function WP$ST$MessageDisplay(e,t){var a={class:"messagedisplay invisible","data-message-for":e,"data-script-generated":null};return t&&"object"==typeof t&&$$WPUtil.mergeObjects(t,a,!1,!0),$$WP.SimpleTemplates.Div(a,"|")},$$WP.SimpleTemplates.Anchor=function WP$SimpleTemplates$Anchor(e,t){var n;return n=$afe.jq(document.createElement("a")),a(n,e,t),n},$$WP.SimpleTemplates.Option=function WP$SimpleTemplates$Option(e,t){var n;return n=$afe.jq(document.createElement("option")),a(n,e,t),n},$$WP.SimpleTemplates.ValidationMessage=function WP$SimpleTemplates$ValidationMessage(e,t){var n;return(t=t||{}).class=t.class||"",t.class+=" alert validationmessage",n=$afe.jq(document.createElement("div")),a(n,t,e),n.safePrepend($$WP.SimpleTemplates.WarningIcon({alt:$$WP.Strings.get("ErrorLabelText")})),n}}();;
$$WP.Strings={_DefaultNamespace:[],_Namespaces:{},EncodingTypes:{None:0,HTML:1}},$$WP.Strings.ComplexObjects={Namespace:function Str$CO$Namespace(e,n,t){this._Parent=e||null,this._Mnemonics=n||{},t=(t||"").toLowerCase(),this._Parent&&this._Parent!==$$WP.Strings._Namespaces?this.Name=this._Parent.Name+"."+t:(this.Name=t,this._Parent=$$WP.Strings._Namespaces.global)}},$$WP.Strings.ComplexObjects.Namespace.prototype={_Parent:null,_Mnemonics:null,Name:null,addString:function Str$CO$Namespace$addString(e,n){this[e]={name:e,namespace:this.Name,value:n}},removeString:function Str$CO$Namespace$removeString(e){this[e]=null},getString:function Str$CO$Namespace$getString(e){for(var n=this;n&&void 0===n[e];)n=n._Parent;return n?this.replaceMnemonics(n[e].value||""):""},getStringForTemplate:function Str$CO$Namespace$GS4T(e){return new Handlebars.SafeString(this.getString(e))},getKeyedString:function Str$CO$Namespace$getKeyedString(e,n){var t;return 0===(t=this.getString(e+"_"+n)).length&&(t=this.getString(e)),t},addMnemonic:function Str$CO$Namespace$addMnemonic(e,n,t){if(null!=n)if("string"==typeof e){if(n instanceof Handlebars.SafeString&&$$WP.Debug.log("value should be a string, not a SafeString.",!0),void 0===t&&(t=$$WP.Strings.EncodingTypes.HTML),"string"==typeof n){n=n.replace("$","$$$$")}this._Mnemonics[e]={Value:n.toString(),EncodingType:t}}else $$WP.Debug.logError("mnemonicName must be a string. ["+typeof e+"]")},removeMnemonic:function Str$CO$Namespace$removeMnemonic(e){this._Mnemonics[e]=null},containsMnemonic:function Str$CO$Namespace$containsMnemonic(e){return!(!this._Mnemonics[e]||""===this._Mnemonics[e].Value)},replaceMnemonics:function Str$CO$Namespace$RM(e){for(var n,t,a,i,r=this;r;){if(r._Mnemonics)for(n in r._Mnemonics)if(null!==r._Mnemonics[n]&&(a=r._Mnemonics[n].Value,i=r._Mnemonics[n].EncodingType,"string"==typeof a||"number"==typeof a))try{t=new RegExp(n,"gi"),i!==$$WP.Strings.EncodingTypes.None&&(a=HTMLEncode(a)),e=e.replace(t,a)}catch(e){$$WP.Debug.logError("addMnemonic was called for a mnemonic whose key does not work as a regular expression: "+n)}r=r._Parent}return e},addStrings:function Str$CO$Namespace$addStrings(e){for(var n in e)e.hasOwnProperty(n)&&(this[n]={name:n,namespace:this.Name,value:e[n]})},addMnemonics:function Str$CO$Namespace$addMenmonics(e){var n;for(n in e)this.addMnemonic(n,e[n].Value,e[n].EncodingType)},clearMnemonics:function Str$CO$Namespace$clearMnemonics(){var e;for(e in this._Mnemonics)this.removeMnemonic(e)},setOrganization:function Str$CO$Namespace$setOrganization(e,n){e?(this.addMnemonic("@MYCHART@OrganizationId@",e.OrganizationId),e.PayerOrgDetails&&e.PayerOrgDetails.IsPayer&&e.PayerOrgDetails.PayerCvgName&&(e.PayerOrgDetails.IsPayerOnly||!n)?this.addMnemonic("@MYCHART@OrganizationName@",e.PayerOrgDetails.PayerCvgName):this.addMnemonic("@MYCHART@OrganizationName@",e.OrganizationName)):$$WP.Debug.logError("Missing organization record",!0)},clearOrganization:function Str$CO$Namespace$clearOrganization(){this.removeMnemonic("@MYCHART@OrganizationId@"),this.removeMnemonic("@MYCHART@OrganizationName@")}},$$WP.Strings._Namespaces.global=new $$WP.Strings.ComplexObjects.Namespace(null),$$WP.Strings.get=function Str$get(e,n){return $$WP.Strings.getNamespace(n).getString(e)},$$WP.Strings.getForTemplate=function Str$G4N(e,n){var t;return t=$$WP.Strings.getNamespace(n).getString(e),new Handlebars.SafeString(t)},$$WP.Strings.setDisplayText=function Str$SDT(e,n,t){var a;return e?(a=$$WP.Strings.get(n,t),dangerou$.setHtml(e,a),a):null},$$WP.Strings.addMnemonic=function Str$addMnemonic(e,n,t,a,i){!0===t&&(n=makeLink(n)),$$WP.Strings.getNamespace(a).addMnemonic(e,n,i)},$$WP.Strings.removeMnemonic=function Str$removeMnemonic(e,n){$$WP.Strings.getNamespace(n).removeMnemonic(e)},$$WP.Strings.containsGlobalMnemonic=function Str$containsGlobalMnemonic(e){return $$WP.Strings.getNamespace("Global").containsMnemonic("@MYCHART@"+e+"@")},$$WP.Strings.add=function Str$add(e,n,t){$$WP.Strings.getNamespace(t).addString(e,n)},$$WP.Strings.setDefaultNamespace=function Str$setDefaultNamespace(e){e?$$WP.Strings._DefaultNamespace.push($$WP.Strings.getNamespace(e)):$$WP.Strings._DefaultNamespace.pop()},$$WP.Strings.clearDefaultNamespace=function Str$clearDefaultNamespace(){$$WP.Strings.setDefaultNamespace(null)},$$WP.Strings.usingNamespace=function Str$usingNamespace(e,n){$$WP.Strings.setDefaultNamespace(e);var t=n();return $$WP.Strings.clearDefaultNamespace(),t},$$WP.Strings.getNamespace=function Str$getNamespace(e){var n,t,a,i;if(e instanceof $$WP.Strings.ComplexObjects.Namespace)return e;if("string"==typeof e){for(n=(e=e.toLowerCase()).split("."),i=$$WP.Strings._Namespaces,a=0;a<n.length;a++)void 0===i[t=n[a]]&&(i[t]=new $$WP.Strings.ComplexObjects.Namespace(i,null,t)),i=i[t];return i}return $$WP.Strings._DefaultNamespace&&$$WP.Strings._DefaultNamespace.length?$$WP.Strings._DefaultNamespace[$$WP.Strings._DefaultNamespace.length-1]:($$WP.Debug.logError("Something removed the global namespace as the default namespace."),$$WP.Strings._Namespaces.global)},$$WP.Strings.setOrganization=function Str$setOrganization(e,n,t){$$WP.Strings.getNamespace(t).setOrganization(e,n)},$$WP.Strings.clearOrganization=function Str$clearOrg(e){$$WP.Strings.getNamespace(e).clearOrganization()},$$WP.Strings.appendNewWindowNotification=function Str$apndNewWindowNotif(e,n){return"_blank"===n?e+" "+$$WP.Strings.get("NewWindowNotification"):e},$$WP.Strings.setDefaultNamespace("Global"),StringResources=$$WP.Strings._Namespaces;;
var WP,$$WP,pre_checkActivity,oldElement,currentElement,submitcount=0,isTabAllowed=!0,ALPHANUMERIC="1",EQUAL_TO_CODE="2",GREATER_THAN_CODE="3",LESS_THAN_CODE="4",REMOVE_IF_EQUAL_TO_REMOVE_CHAR="1",REMOVE_NONNUMERIC="2",BIRTH_YEAR_MIN_YEARS_BACK=10;function padNumber(e,t){var n=getDecimalSeparator();return e>0?(e=e.toString().replace(/\./,n),Array(t-e.length+1).join("0")+e):(e=(-e).toString().replace(/\./,n),"-"+Array(t-e.length).join("0")+e)}function padNumber2(e,t){return 0==e?Array(t+1).join("0"):padNumber(e,t)}function escapeRegExp(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function getDecimalSeparator(){var e;return(e=$$WP.Strings.get("NumericDecimalFormatterOverride","I18N.Numbers"))&&e.length>0?e:$$WP.I18N.DecimalSeparator}function getGroupSeparator(){var e;return(e=$$WP.Strings.get("NumericGroupSeparatorOverride","I18N.Numbers"))&&e.length>0?e:$$WP.I18N.GroupSeparator}function getRangeSeparator(){var e;return(e=$$WP.Strings.get("NumericRangeSeparatorOverride","I18N.Numbers"))&&e.length>0?e:$$WP.I18N.RangeSeparator}function IsNumericMinMax(e,t,n,i,o){return null!=e&&(null!==o&&""!==o||(o=!1),l=e.value,s=getGroupSeparator(),c=getDecimalSeparator(),u=(d=getErrorForScreenReader())+$$WP.Strings.get("NumericError","Core.CommonUtils"),m=new RegExp(escapeRegExp(s),"g"),g=new RegExp(escapeRegExp(c),"g"),""==l||(-1!=l.indexOf(s)&&l.indexOf(c)<0?(WP.Validators.DisplayErrors(u),!1):(a=(l=l.replace(m,"")).replace(g,"."),a=Number(a),isNaN(a)?(WP.Validators.DisplayErrors(u),r=!0):i||a==Math.round(a)?""!=t&&a<Number(t)?(WP.Validators.DisplayErrors(d+$$WP.Strings.get("MinimumNumericError","Core.CommonUtils").replace("@MYCHART@MINVALUE@",t)),r=!0):""!=n&&a>Number(n)&&(WP.Validators.DisplayErrors(d+$$WP.Strings.get("MaximumNumericError","Core.CommonUtils").replace("@MYCHART@MAXVALUE@",n)),r=!0):(WP.Validators.DisplayErrors(u),r=!0),!(r&&!o)&&(e.value=l,!0))));var a,r,l,s,c,d,u,m,g}function IsNumericOrRangeMinMax(e,t,n,i,o){if(null===e)return!1;if(null!==o&&""!==o||(o=!1),$(".Popup").length>0)return!1;var a,r,l,s,c,d,u,m,g,f,h,p,v,y;if(s=e.value,d=getDecimalSeparator(),u=getGroupSeparator(),m=getRangeSeparator().replace(/\s+/g,""),g=getErrorForScreenReader(),f=new RegExp(escapeRegExp(d),"g"),h=new RegExp(escapeRegExp(u),"g"),p=g+$$WP.Strings.get("NumericOrRangeError","Core.CommonUtils"),v=g+$$WP.Strings.get("MinimumNumericError","Core.CommonUtils"),y=g+$$WP.Strings.get("MaximumNumericError","Core.CommonUtils"),""===s)return!0;if(-1!==s.indexOf(u)&&s.indexOf(d)<0)return WP.Validators.DisplayErrors(p.replace("@MYCHART@RANGESEPARATOR@",m).replace("@MYCHART@MINVALUE@",t).replace("@MYCHART@MAXVALUE@",n)),o||(e.select(),e.focus()),!1;if(-1!==(c=(s=s.replace(h,"")).indexOf(m))){if(""===(a=s.substring(0,c).replace(f,".")))return WP.Validators.DisplayErrors(p.replace("@MYCHART@RANGESEPARATOR@",m).replace("@MYCHART@MINVALUE@",t).replace("@MYCHART@MAXVALUE@",n)),o||(e.select(),e.focus()),!1;r=s.substring(c+1).replace(f,".")}else a=s.replace(f,".");return a=Number(a),isNaN(a)?(WP.Validators.DisplayErrors(p.replace("@MYCHART@RANGESEPARATOR@",m).replace("@MYCHART@MINVALUE@",t).replace("@MYCHART@MAXVALUE@",n)),l=!0):(i||(a=Math.round(a)),""!==t&&a<Number(t)?(WP.Validators.DisplayErrors(v.replace("@MYCHART@MINVALUE@",t)),l=!0):""!==n&&a>Number(n)&&(WP.Validators.DisplayErrors(y.replace("@MYCHART@MAXVALUE@",n)),l=!0)),r&&!l&&(r=Number(r),isNaN(r)?(WP.Validators.DisplayErrors(p.replace("@MYCHART@RANGESEPARATOR@",m).replace("@MYCHART@MINVALUE@",t).replace("@MYCHART@MAXVALUE@",n)),l=!0):(i||(r=Math.round(r)),""!==t&&r<Number(t)?(WP.Validators.DisplayErrors(v.replace("@MYCHART@MINVALUE@",t)),l=!0):""!==n&&r>Number(n)?(WP.Validators.DisplayErrors(y.replace("@MYCHART@MAXVALUE@",n)),l=!0):(a>r||a===r)&&(WP.Validators.DisplayErrors(p.replace("@MYCHART@RANGESEPARATOR@",m).replace("@MYCHART@MINVALUE@",t).replace("@MYCHART@MAXVALUE@",n)),l=!0))),l?(o||(e.select(),e.focus()),!1):(i||(s=-1!==c?a+m+r:a),e.value=s,!0)}function autoLogout(e){var t;$$WPUtil.setActivity.msSinceLastActivity()<checkActivity.sessionTimeout?pre_checkActivity():(pre_checkActivity.logoutPage=e||pre_checkActivity.logoutPage,t=new $$WPComp.LoggingOutComponent,new $$WPContain.Popup({positioningFunction:$$WPContain.Positions.InsideCentered,Components:t,TitleText:null,IsClosable:!1,Class:"logout"}).show(!0))}function IsPatientInActiveVVCallback(e){"True"===e&&($$WPUtil.setActivity(),WP.Comm.startKeepAlive())}function checkActivity(e,t,n,i){var o,a,r=$afe.jq(window);if(checkActivity.refreshTimeout=e||checkActivity.refreshTimeout,checkActivity.sessionTimeout=t||checkActivity.sessionTimeout,checkActivity.logoutPage=i||checkActivity.logoutPage,checkActivity.warningPopup=!1!==n&&!1!==checkActivity.warningPopup||!0===n,!0!==checkActivity.__ranOnce&&((r=$afe.jq(window)).add(document.body),isDataTile()&&!isShareEverywhere()&&parent.window!==window&&r.add(parent.window),r.focus($$WPUtil.checkActivity),checkActivity.__ranOnce=!0),(o=$$WPUtil.setActivity.msSinceLastActivity())>=checkActivity.sessionTimeout)return document.write(""),void WP.Comm.logOut(null,!0,null,!0,!0);window.clearTimeout(checkActivity.tRefreshID),checkActivity.tRefreshID=window.setTimeout(checkActivity,Math.floor((checkActivity.refreshTimeout-o)/1e3)),window.clearTimeout(checkActivity.tSessionID),a=Math.floor((checkActivity.sessionTimeout-o)/1e3),checkActivity.tSessionID=window.setTimeout(autoLogout,a),o>checkActivity.refreshTimeout&&!0!==$$WPComp.TimeoutWarningComponent.hasVisibleInstance&&$$WPUtil.quickPopup(new $$WPComp.TimeoutWarningComponent({SecondsLeft:a}),{PierceShieldOfJustice:!0})}function logOut(e,t,n,i){return $afe.select("body").hasClass("passthru")?(self.location.href=makeLink("closeExternalJumpPopup.asp"),!1):(""!==e&&null!=e?self.location.href=e:"string"==typeof checkActivity.logoutPage&&""!==checkActivity.logoutPage?WP.Comm.logOut(null,!0,checkActivity.logoutPage,!1,n):getFederatedLogoutMode()||isShareEverywhere()||!0===t?WP.Comm.logOut(null,!0,null,!1,n):"function"==typeof i?WP.Comm.logOut(i,!1,null,!1,n):WP.Comm.logOut((function(e){$$WPUtil.IsNullOrEmpty(e)||(window.location=makeLink(e))}),!1,null,!1,n),!0)}function CheckLength(e,t,n,i){var o;return o=t,""!=i&&null!=i&&"1"==i&&(t-=1),!(e.value.replace(/\r\n/g,"").length>t)||(""==n&&(n=getErrorForScreenReader()+$$WP.Strings.get("MaximumTextError","Core.CommonUtils").replace("@MYCHART@MAXMIMUMLENGTH@",o)),$$WP.Utilities.quickMessageBox(n,"",[],null,[],""),e.focus(),!1)}function insideBodyLoad(e,t,n,i){return WP&&WP.Comm&&WP.Comm.startKeepAlive&&WP.Comm.startKeepAlive(),$$WPUtil.setActivity(),WP.Events.addListener(document.body,"click",$$WPUtil.setActivity),WP.Events.addListener(document.body,"keypress",$$WPUtil.setActivity),WP.Events.addListener(document.body,"click",$$WPUtil.NotifyMobileOfActivity),WP.Events.addListener(document.body,"input",$$WPUtil.NotifyMobileOfActivity),checkActivity(e,t,n,i),window.focus(),!0}function assignInlineEventHandlers(){$afe.select('a#printerfriendlylink:not([href="#"])').on("click",(function(e){return window.open(this.href.replace(/\#(.*)/,""),"WWW","width=1024,height=720,resizable,status,scrollbars").focus(),!1})),$afe.select('a#printerfriendlylink[href="#"]').on("click",(function(e){return $$WPUtil.PrintAndAuditNET(),!1})),$afe.select("a#printWindowPrintLink").on("click",(function(e){window.print()})),$afe.select("a#printWindowCloseLink").on("click",(function(e){window.close()})),$afe.select("a#sortOrgLink").on("click",(function(e){return sortOrgList(this),!1})),$afe.select("a#SelfSignupButton").on("click",(function(e){return $$WP.Utilities.TryRedirect(this.href),!1})),$afe.select("a#cookieHelpLink").on("click",(function(e){return window.open("Help/Cookies"),!1})),$afe.select("a#completedTaskPrinkLink").on("click",(function(e){return window.open(HTMLUnencode(this.href),"WWW","width=800,height=600,resizable,status,scrollbars").focus(),!1})),$afe.select("form#retryform").on("submit",(function(e){disableButton1(this.refresh)}))}function jumpToAnchor(e){var t=window.location.hash.substr(1);if(/^[a-zA-Z][\w-]*$/.test(t))if(""!==t){if(history.scrollRestoration="manual",!doJumpToAnchorAction(t)){e||(e=3e3);var n=new MutationObserver((function(e,n){doJumpToAnchorAction(t)&&n.disconnect()}));n.observe(document.body,{attributes:!0,childList:!0,subtree:!0}),setTimeout((function(){n.disconnect()}),e)}}else history.scrollRestoration="auto"}function doJumpToAnchorAction(e){return e="#"+e,$afe.select(e).filter(":visible").length>0&&(location.replace(e),$afe.select(e).focus(),!0)}function getPostLoginStringsManagerContent(e){$afe.select("#vbPrintHeader").empty().safeAppend($afe.renderTemplate($$WP.Templates.Core.vbPrintheader)),$afe.select("footer#footer #baselinks").empty().safeAppend($afe.renderTemplate($$WP.Templates.Core.vbBaselinks,e)),$afe.select(".cssSwitcher").click((function(e){var t;e&&"A"===e.currentTarget.nodeName&&(t=e.currentTarget.getAttribute("data-csstitle")),0!==t.length&&($$WP.Utilities.UI.ActivateStylesheet(t),$$WP.Utilities.UI.FocusCssSwitcher(t))}))}function getObjectValue(e){var t,n,i;if(e){if(0,i="",(t=e.length)>0)for(n=0;n<t;n++)i+=e[n].value;else i=e.value;return i}}function doMainKeyPress(e){try{return routeEvent(e)}catch(e){}}function submitForm(e){if("submit form"==e.form.submitcontrol.value)return e.form.submitform.click(),!1}function addFocus(e){return e.form.submitcontrol.value="nosubmit",!0}function taKeyDown(e){e.form.submitcontrol.value="nosubmit"}function recordKey(e){13==window.event.keyCode&&"nosubmit"!=e.submitcontrol.value?e.submitcontrol.value="submit form":e.submitcontrol.value=""}function containsSpace(e){var t;for(t=0;t<e.length;++t)if(" "==e.charAt(t))return!0;return!1}function containsPunctuation(e){var t,n,i=e.toUpperCase();for(t=0;t<i.length;++t)if(n=i.charAt(t),"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@._-".indexOf(n)<0)return!0;return!1}function selectCheckBox(e){var t;if(null!=e&&(document.all||document.getElementById)){for(t=0;t<e.length;t++)if(1==e[t].checked)return!0;return 1==e.checked||(alert($$WP.Strings.get("CheckBoxSelectionError","Core.CommonUtils")),!1)}return!0}function disableButton(e){return 0==submitcount?(submitcount++,!0):(e.disabled=!0,!1)}function removeWhiteSpace(e){var t=""+e;return t=t.replace(/\W/g,"")}function enableIfReqFilled(e,t){var n,i,o,a,r,l,s,c,d,u,m;if(document.getElementById&&((n=document.getElementById(e))&&(u=t.split("^"))&&0!=u.length)){for(r=[],a=[],c=0,m=enableIfReqFilled.arguments,i=2;i<m.length;i++)l=(o=m[i].split("^"))[0],o[1]||l,s=o[2]||l,(d=n[l])&&!r[s]&&(0==removeWhiteSpace(d.value).length?a[s]||(a[s]=!0,c++):(r[s]=!0,a[s]&&(a[s]=!1,c--)));if(!1===IsFormValid(e)&&c++,c>0)for(i=0;i<u.length;i++)disableBtn(n[u[i]]);else for(i=0;i<u.length;i++)enableBtn(n[u[i]])}}function IsFormValid(e,t){var n,i;try{if(WP&&WP.Validators&&WP.Validators.Forms&&(i=WP.Validators.Forms[e]))for(n=0;n<i.length;n++)if(removeWhiteSpace(i[n]).length>0)return!0===t&&alert(i[n]),!1}catch(e){}return!0}function confirmEmbedDelete(e,t,n){var i;return i=!0===n?$$WPUtil.quickMessageBoxByEnum.typeEnum.RestoreGoback:$$WPUtil.quickMessageBoxByEnum.typeEnum.RemoveGoback,$$WPUtil.confirmFormSubmission(e,t,i,(function(e,t){var n,i;t===$$WP.Components.TOOLBARIDENTIFIER+"continue"&&((n=document.getElementById("confirmStep"))&&(n=n.parentNode)&&((i=document.createElement("input")).type="hidden",i.className="hidden",i.name="clickSub",i.value="1",n.appendChild(i)))}))}function setCheckboxesByPrefix(e){var t,n;for(t=1,n=document.getElementById(e+t);null!==n;)$afe.jq(n).safeAttr("checked","true"),n.checked=!0,t+=1,n=document.getElementById(e+t)}function unsetCheckboxesByPrefix(e){var t,n;for(t=1,n=document.getElementById(e+t);null!==n;)n.removeAttribute("checked"),n.checked=!1,t+=1,n=document.getElementById(e+t)}function statusOfCheckboxesByPrefix(e){var t,n,i,o;for(i=!0,o=!1,t=1,n=document.getElementById(e+t);null!==n;)n.checked?o=!0:i=!1,t+=1,n=document.getElementById(e+t);return i?3:o?2:1}function checkAll(e,t){if("object"==typeof document&&null!=e&&null!=t&&document.getElementById&&"object"==typeof document.getElementById(e))for(var n,i=document.getElementById(e),o=0;n=i[o++];)"checkbox"==n.type&&(n.checked=!0)}function selectRadioButton(e){var t;if(document.all||document.getElementById){for(t=0;t<e.length;t++)if(1==e[t].checked)return!0;return 1==e.checked||(alert($$WP.Strings.get("RadioButtonSelectionError","Core.CommonUtils")),!1)}return!0}function disableButton1(e){return"object"==typeof e&&(e.disabled=!0),!0}function getParentDocument(){if(!parent)return null;try{return parent.document}catch(e){return null}}function addDataTileUtils(){if(getParentDocument()){var e=window.frameElement;null!=e&&(e.tryRedirect=$$WPUtil.TryRedirect,e.safeToRedirect=$$WPUtil.SafeToRedirect,WP&&WP.Events&&(e.hasUnsavedChanges=WP.Events.showBeforeUnloadMessage))}}function scrollTopOfTheIframe(e,t){getParentDocument()&&window.setTimeout((function(){for(var e,n,i=window.parent.document.getElementsByTagName("iframe"),o=0,a=i.length;o<a;o++)if((e=i[o]).contentWindow==window){var r=e.getBoundingClientRect();n=$$WPUtil.getScrollTop(),!0===t?r.top<0&&$$WPUtil.setScrollTop(n+r.top):$$WPUtil.setScrollTop(n+r.top);break}}),e)}function dataTileLoad(){addDataTileUtils(),self===top&&$afe.select("body").addClass("removeOverflow"),$$WP._currentURL=window.location.href;try{$afe.select(".cardlist.column_3, .cardlist.column_4").trigger("cardLoad"),setupIframeResizer()}catch(e){return}}function setupIframeResizer(){var e,t,n;isIframeResizeScheduled=!1,setAppropriateHeight(),setAppropriateHeightOnResize(),(t=document.getElementById("appPopupRoot"))&&setAppropriateHeightOnDOMMutations(t),(e=document.getElementById("classicPopupRoot"))&&setAppropriateHeightOnDOMMutations(e),(n=document.getElementById("wrap"))&&setAppropriateHeightOnDOMMutations(n);var genericCallback=function(e){isIframeResizeScheduled||(setTimeout((function(){setAppropriateHeight(),isIframeResizeScheduled=!1}),100),isIframeResizeScheduled=!0)};document.body.addEventListener("animationend",genericCallback),document.body.addEventListener("transitionend",genericCallback),document.body.addEventListener("load",genericCallback,!0)}function setAppropriateHeightOnResize(){var e=getFrameWidth();$afe.jq(window).resize((function(){e==getFrameWidth()||isIframeResizeScheduled||(setTimeout((function(){setAppropriateHeight(),e=getFrameWidth(),isIframeResizeScheduled=!1}),100),isIframeResizeScheduled=!0)}))}function setAppropriateHeightOnDOMMutations(e){if(e){var t={attributes:!0,childList:!0,subtree:!0};new MutationObserver((function(n,i){isIframeResizeScheduled||(setTimeout((function(){i.disconnect(),setAppropriateHeight(),i.observe(e,t),isIframeResizeScheduled=!1}),100),isIframeResizeScheduled=!0)})).observe(e,t)}}function isShareEverywhere(){return $afe.select("html").hasClass("shareeverywhere")}function isDataTile(){return $afe.select("html").hasClass("datatile")}function isEmbedded(){return $afe.select("body").hasClass("embedded")}function isCustomBranded(){return $afe.select("body").hasClass("branded")}function isBedsideTV(){return $afe.select("html").hasClass("bedsidetv")}function setAppropriateHeight(){var e,t,n,i,o,a,r,l,s,c,d=document.getElementById("vdtFrame");if((isDataTile()&&getParentDocument()||d||$$WP.WidgetMode)&&("iframeMEDADVICE_ATTACHMENTS"!==window.name&&"iframeMESSAGELIST_ATTACHMENTS"!==window.name&&"iframeCACHED_UPLOAD_DATA"!==window.name&&(e=$$WPUtil.getScrollTop(),$$WP.WidgetMode||(t=window.frameElement),!t&&d&&(t=d),$$WP.WidgetMode||t&&document&&document.body&&t.style))){c=getContainerPrevHeight(t),setContainerMinHeight(t,""),$afe.select("body").addClass("autoheight"),i=($afe.select("iframe:not(.hidden)").length>0?document.body.scrollHeight:document.body.offsetHeight)+"px",$afe.select("body").removeClass("autoheight"),n=getMinHeightForDatePicker(),l=$afe.select(".Popup.component"),o=isDataTile()?0:70;for(var u=0;u<l.length;u++)(a=$afe.jq(l[u])).hasClass("externaljumppopup")&&"none"===a.find("> .scrollable > .content").css("max-height")&&!a.hasClass("hidden")?(a.css("height","auto"),s=a.outerHeight(),a.css("height",""),n="80vh",i=s+"px"):!a.hasClass("large")&&!a.hasClass("medium")||a.hasClass("hidden")?n=a.outerHeight()+70+"px":(a.css("height","auto"),i=a.outerHeight()+o+"px",a.css("height",""),n=i);if((r=$afe.select("#lightbox:not(.hidden):not(:empty)")).length>0)if(r.hasClass("captchaPopup")){i=Math.max(r.outerHeight(),650)+"px"}else i=r.outerHeight()+"px";var m=$afe.select("._ShieldOfJustice");if(m.length>0){var g=m.siblings("[role=dialog]");if(g.length>0){for(var f=0,h=0;h<g.length;h++){var p=g[h];p.classList.contains("size-10")||p.classList.contains("size-20")?f=Math.max(f,parseInt(c),450):(p.classList.add("autoheight"),f=Math.max(f,p.scrollHeight),p.classList.remove("autoheight")),repositionReactDataTilesPopup(window.frameElement,p)}f>0&&(i=f+"px")}}if(setContainerMinHeight(t,n),c!=i)if(setContainerHeight(t,i),!0!==$afe.select("body").prop("pageLoadedBefore"))scrollTopOfTheIframe(0,!0),$afe.select("body").prop("pageLoadedBefore",!0);else $$WPUtil.setScrollTop(e),document.activeElement.className.includes("scrollPosTarget")&&document.activeElement.scrollIntoView({behavior:"smooth",block:"center"});if(0===l.length&&0===r.length&&"invisible"===$afe.select("#__CAPTCHAVisibility").data("captcha-visibility")&&0!==$afe.select("#hCaptchaDisclaimer").length){var v=$afe.select("iframe:visible").filter((function(){return"hidden"!==$afe.jq(this).css("visibility")}));if(v.length>0){var y=v[0].getBoundingClientRect().height/2+v.offset().top+$afe.jq(window.frameElement).offset().top,E=parent.window.innerHeight;if(y>E+$$WPUtil.getScrollTop()||y<$$WPUtil.getScrollTop()){var $=y-E/2;$$WPUtil.setScrollTop($)}}}}}function getMinHeightForDatePicker(){return $calendarButtons=$afe.select(".calendar.datechooserAnchor"),$calendarButtons.length>0?"350px":""}function repositionReactDataTilesPopup(e,t){var n;isDataTile()&&null!=e&&(t.classList.contains("size-10")||t.classList.contains("size-20")?(n=$$WPUtil.getDataTileScrollTop(e)+35,overhang=n+t.clientHeight-e.scrollHeight,overhang>0&&(n-=overhang),t.style.top=n+"px",t.style.opacity=1):(t.style.top="",t.style.opacity=""))}function getFrameWidth(){return $$WP.WidgetMode?$$WPUtil.GetIframeWidth().then((function(e){return e})):window.frameElement?window.frameElement.offsetWidth:null}function setContainerHeight(e,t){$$WP.WidgetMode?($$WPUtil.SetCrossDomainIframeHeight(t),$$WP.ContainerHeight=t):e.style.height=t}function setContainerMinHeight(e,t){$$WP.WidgetMode?$$WPUtil.SetCrossDomainIframeMinHeight(t):e.style.minHeight=t}function getContainerPrevHeight(e){return $$WP.WidgetMode?$$WP.ContainerHeight:e.style.height}function DoRedirect(e,t){return!0===t?logOut(null,!0):$$WPUtil.SafeToRedirect(CreateLogOutPopup,e),!1}function CreateLogOutPopup(e){var t;e&&(t=new $$WPComp.LoggingOutComponent({positioningFunction:$$WPContain.Positions.InsideNearTop}),new $$WPContain.Popup({positioningFunction:$$WPContain.Positions.InsideNearTop,Components:t,IsClosable:!1,TitleText:null,Size:$$WPContain.Popup.SizeEnum.SMALL,Class:"logout"}).show(!0),document.activeElement.blur())}function InlineEndSession(e,t){var n,i=new $$WPComp.InlineLoggingOutComponent({positioningFunction:$$WPContain.Positions.InsideNearTop},(function(){t&&t(),e&&n.hide()}),!1);e&&(n=new $$WPContain.Popup({positioningFunction:$$WPContain.Positions.InsideNearTop,Components:i,IsClosable:!1,TitleText:null,Size:$$WPContain.Popup.SizeEnum.SMALL,Class:"logout"})).show(!0),i.logout()}function DoRedirectOE(){return this.document.write("<br /><br /><br /><br /><center>"+$$WP.Strings.get("LogoutRedirect","Core.CommonUtils")+"</center>"),window.location="./oebye.asp",!1}function captureBackEnterKey(){if($$WPUtil.setActivity(),window.event&&(8==window.event.keyCode||13==window.event.keyCode)){var e=window.event.srcElement,t=e.type;if(!e.readOnly){if(("text"==t||"textarea"==t||"password"==t)&&8==window.event.keyCode)return;if(("textarea"==t||"submit"==t)&&13==window.event.keyCode)return}return window.event.cancelBubble=!0,window.event.returnValue=!1,!1}}function showItem(e){var t;return document.getElementById?t=document.getElementById(e):document.all&&(t=document.all.item(e)),null!=t&&(t.style.display="block",!0)}function hideItem(e){var t;return document.getElementById?t=document.getElementById(e):document.all&&(t=document.all.item(e)),null!=t&&(t.style.display="none",!0)}function showElement(e,t){null===e&&(null!==t&&t.length>0&&(e=document.getElementById(t)),null===e)||removeClassNames(e,"hidden")}function hideElement(e,t){null===e&&(null!==t&&t.length>0&&(e=document.getElementById(t)),null===e)||(removeClassNames(e,"hidden"),e.className=e.className+" hidden")}function activateField(e,t){null===e&&("string"==typeof t&&t.length>0&&(e=document.getElementById(t)),null===e)||(removeClassNames(e,"disabled,activefield"),e.className=e.className+" activefield")}function activateFieldsByIds(e){var t,n;if(null!==e&&(n=e.split(",")),null!==n)for(t=0;t<n.length;t+=1)activateField(document.getElementById(n[t]))}function deactivateField(e,t){null===e&&("string"==typeof t&&t.length>0&&(e=document.getElementById(t)),null===e)||(removeClassNames(e,"disabled,activefield"),e.className=e.className+" disabled")}function deactivateFieldsByIds(e){var t,n;if(null!==e&&(n=e.split(",")),null!==n)for(t=0;t<n.length;t+=1)deactivateField(document.getElementById(n[t]))}function applyClass(e,t){var n,i;if(e){for(n=t.split(","),i=0;i<n.length;i++)containsClassName(e,n[i])||(e.className+=(e.className.length>0?" ":"")+n[i]);return e}}function removeClassNames(e,t){var n,i,o,a;if(!(!e||!t||e.className.length<1||t.length<1)){for(n=t.split(","),a=e.className,i=0;i<n.length;i+=1)o=new RegExp("(^|\\s+)"+n[i]+"(\\s+|$)","g"),a=a.replace(o," ");e.className=a}}function replaceClassNames(e,t,n){removeClassNames(e,t),applyClass(e,n)}function containsClassName(e,t){var n;return!(!e||"string"!=typeof t||t.length<1)&&(!("string"!=typeof e.className||e.className.length<1)&&(!!(n=new RegExp("(^|\\s+)"+t+"(\\s+|$)","g"))&&null!=e.className.match(n)))}function applyUniqueClassNameAmongSiblings(e,t){var n,i=e.parentNode;for(n=0;n<i.children.length;n++)removeClassNames(i.children[n],t);applyClass(e,t)}function selectAllFirstTime(e){return null===e||containsClassName(e,"clckd")||(e.select(),e.className=e.className+" clckd",e.onblur=function(){return removeClassNames(this,"clckd"),!1}),!1}function enableBtn(e){e&&e.removeAttribute&&(e.removeAttribute("disabled"),e.className=e.className.replace(/\ ?disabled/,""))}function disableBtn(e){var t="disabled";if(e){if("function"==typeof e)return;e.disabled=t,-1==e.className.indexOf(t)&&(e.className=e.className.replace(/\ *$/,""),e.className.length>0&&(t=" "+t),e.className=e.className+t)}}function getElementPosition(e,t){if(e.offsetParent){for(var n,i=e,o=0,a=0;i&&(n=i,"HTML"!=i.tagName)&&(!t||i!=t);){if(o+=i.offsetLeft,a+=i.offsetTop,i.scrollLeft&&(o-=i.scrollLeft),"wrap"==i.id.toLowerCase()){o-=i.offsetLeft,a-=i.offsetTop;break}(i=WP.DOM.Browser.isFirefox&&"fixed"===WP.DOM.Read.getStyle(i,"position")?null:i.offsetParent)&&i.classList.contains("fixedCalendarParent")&&(i=document.getElementById("classicPopupRoot"))}return-1!=navigator.userAgent.indexOf("Mac")&&void 0!==document.body.leftMargin&&(o+=document.body.leftMargin,a+=document.body.topMargin),o+="px",a+="px","HTML"==n.tagName&&((n=n.getElementsByTagName("body")[0]).offsetLeft&&(o-=n.offsetLeft),n.offsetTop&&(a-=n.offsetTop)),{x:o,y:a,topElement:n}}}function changePasswdCheck(e){return null!=e&&(getErrorForScreenReader(),""==e.oldpasswd.value?(alert($$WP.Strings.get("CurrentPasswordError","Core.CommonUtils")),e.oldpasswd.focus(),!1):e.newpasswd.value==e.verifypasswd.value||(alert($$WP.Strings.get("ReTypeNewPasswordError","Core.CommonUtils")),e.verifypasswd.focus(),!1))}function changeQuesAnsCheck(e){return null!=e&&(getErrorForScreenReader(),""==e.oldpasswd.value?(alert($$WP.Strings.get("CurrentPasswordError","Core.CommonUtils")),e.oldpasswd.focus(),!1):""!=e.pwdans.value||(alert($$WP.Strings.get("AnswerError","Core.CommonUtils")),e.pwdans.focus(),!1))}function CheckFilenameExtensions(){var e,t,n,i,o,a,r,l,s,c=document.getElementById("ALLOWED_EXTENSIONS"),d=0,u=!1,m=!0;if(!c)return!0;for(e=c.value,t=new RegExp("^([a-zA-Z]:(\\\\|/)|file://|/|\\\\\\\\)[^\\\\/:].*\\..+");!u;){if(!(n=document.getElementById("upload"+ ++d))){u=!0;break}if(0!=(i=n.value).length){if(-1!=navigator.userAgent.indexOf("MSIE")&&!t.test(i)){m=!1,u=!0;break}if((o=i.split(".")).length<2){m=!1,u=!0;break}if(a=o[o.length-1].toUpperCase(),-1==e.indexOf("^"+a+"^")){m=!1,u=!0;break}}}return m||((r=document.getElementById("progbar"))&&(r.className+=" hidden"),l=e.substr(1,e.length-2).replace(/\^/g,", "),s=$$WP.Strings.get("BadFilenameExtension","Core.CommonUtils").replace("@MYCHART@FILENAME@",i).replace("@MYCHART@ALLOWEDEXTENSIONS@",l),alert(s)),m}function checkEnter(e,t){if(null!=e&&"13"==e.keyCode)return null!=t&&t.click(),!1;return!0}function isBasicInlineValidationError(e,t,n,i,o,a,r,l,s,c,d){var u=!1,m=!1,g=!1,f=!1;return""!=n&&null!=n||(n=getErrorForScreenReader()+$$WP.Strings.get("RequiredFieldError","Global")),""!=l&&null!=l||(l=n),null!=e&&(""!=d&&null!=d||(d=-1),e.maxLength>1e4&&(i=!1),i&&d<0&&(d="dob"==e.id?e.maxLength-2:e.maxLength),""==e.value||null==e.value?(u=!0,m=!0):i&&e.value.length<d&&e.value.length>0?(u=!0,g=!0):c&&isNaN(e.value)&&(u=!0,f=!0),u?o||(m?s?isHighlighted(e)&&changeErrorField(t,n,!1,[e]):(turnOnHighlight(e),changeErrorField(t,n,!1,[e])):(g||f)&&(turnOnHighlight(e),changeErrorField(t,l,!1,[e]))):(r||turnOffHighlight(e),a||changeErrorField(t,"",!0,[e])),u)}function changeErrorField(e,t,n,i){var o,a,r,l,s;if(e.length>0&&(o=document.getElementById(e))){if(n&&("&nbsp;"===o.innerHTML||""===o.innerHTML))return;if(dangerou$.setHtml(o,t),i&&i.length>=1)for(a=""===t,r=0;r<i.length;r++)s=(l=$afe.jq(i[r])).safeAttr("aria-describedby"),a?(l.removeAttr("aria-invalid"),s===e&&l.removeAttr("aria-describedby")):(l.safeAttr("aria-invalid","true"),s||l.safeAttr("aria-describedby",e))}}function turnOnHighlight(e){e.className.search("inputHighlighted")<0&&(e.className=e.className+" inputHighlighted")}function turnOffHighlight(e){isHighlighted(e)&&(e.className=e.className.replace(" inputHighlighted",""))}function highlightIfEmpty(e,t){null!=e&&(""==e.value?t||turnOnHighlight(e):turnOffHighlight(e))}function isHighlighted(e){return null!=e&&e.className.search("inputHighlighted")>-1}function validateEmptinessOfTwoRelatedFields(e,t){e.value.length<1?t.value.length<1?isHighlighted(t)&&turnOnHighlight(e):turnOnHighlight(e):turnOffHighlight(e)}function checkKeyPress(e,t,n){var i=!1;switch(t){case ALPHANUMERIC:(e.keyCode>=48&&e.keyCode<=57||e.keyCode>=65&&e.keyCode<=90||e.keyCode>=96&&e.keyCode<=105||e.which>=48&&e.which<=57||e.which>=65&&e.which<=90||e.which>=96&&e.which<=105)&&(i=!0),WP.DOM.Browser.isAndroid&&(i=!0);break;case EQUAL_TO_CODE:e.keyCode!=n&&e.which!=n||(i=!0);break;case GREATER_THAN_CODE:(e.keyCode>n||e.which>n)&&(i=!0);break;case LESS_THAN_CODE:(e.keyCode<n||e.which<n)&&(i=!0);break;default:return i}return i}function checkIfFocusOnPrevField(e,t,n,i){var o,a;(a=i-1)>0&&checkKeyPress(e,EQUAL_TO_CODE,"8")&&""==t.value&&null!=(o=document.getElementById(n+a))&&(o.focus(),isTabAllowed=!0,o.value=o.value)}function autotab(e,t,n){checkKeyPress(e,ALPHANUMERIC)?t.getAttribute&&t.value.length==t.getAttribute("maxlength")&&(WP.DOM.Browser.isIPod||WP.DOM.Browser.isIPhone||WP.DOM.Browser.isIPad?(n.focus(),isTabAllowed=!1):(n.focus(),n.select(),isTabAllowed=!1)):checkKeyPress(e,EQUAL_TO_CODE,"16")&&(isTabAllowed=!0)}function isDiscreteFieldsError(e,t,n,i,o,a,r,l,s,c){var d,u,m,g,f,h=!1,p=!1,v=0;for(f=o,g=null==l,""!=o&&null!=o||(o=$$WP.Strings.get("RequiredFieldError","Global")),""==a&&(a=o),d=1;d<=t;d++)null!=(u=document.getElementById(e+d))&&(""!=u.value?(s&&(s=""),f=a,d=t):isHighlighted(u)&&s&&(s=""));if(g||(isHighlighted(l)&&!0,h=isBasicInlineValidationError(l,i,f,n,r,1,"",f,s,c)),h)p=!0;else for(null==t&&(t=1),d=1;d<=t;d++)(u=1==t?document.getElementById(e):document.getElementById(e+d)).maxLength>1e4&&(n=!1),n&&(v="dob"==u.id||"ssn"==u.id?u.maxLength-2:u.maxLength),null!=u&&(""==u.value?(h=!0,!r&&g&&(turnOnHighlight(u),changeErrorField(i,f,!1,[u]))):n&&u.value.length<v&&u.value.length>0?(h=!0,!0,!r&&g&&(turnOnHighlight(u),changeErrorField(i,f,!1,[u]))):(g&&turnOffHighlight(u),(l==u||g)&&((m=$afe.jq(u)).removeAttr("aria-invalid"),m.removeAttr("aria-describedby"))),isHighlighted(u)&&(p=!0));return h?(p||changeErrorField(i,""),!0):(changeErrorField(i,""),!1)}function checkIfTabAllowed(e,t){checkKeyPress(e,EQUAL_TO_CODE,"16")?isTabAllowed=!0:checkKeyPress(e,EQUAL_TO_CODE,"9")&&t.value.length<1&&!isTabAllowed&&(cancelEvent(e),isTabAllowed=!0)}function cancelEvent(e){e.cancelBubble=!0,e.returnValue=!1,e.stopPropagation&&(e.stopPropagation(),e.preventDefault())}function easyDOBEntry(e,t,n,i){null!=e&&(t?n?isValidTwoDigitYear(e.value)&&(i?isTabAllowed=!0:e.value=getFourDigitYearFromTwoDigitYear(e.value,BIRTH_YEAR_MIN_YEARS_BACK).toString()):1==e.value.length&&e.value>0&&(i?isTabAllowed=!0:e.value="0"+e.value):e.length?(isValidOneDigitDatePart(e[0].value)&&(e[0].value="0"+e[0].value),isValidOneDigitDatePart(e[1].value)&&(e[1].value="0"+e[1].value),isValidTwoDigitYear(e[2].value)&&(e[2].value=getFourDigitYearFromTwoDigitYear(e[2].value,BIRTH_YEAR_MIN_YEARS_BACK).toString())):e.value<100&&e.value>=0&&(e.value=getFourDigitYearFromTwoDigitYear(e.value,BIRTH_YEAR_MIN_YEARS_BACK).toString()))}function removeCharFromField(e,t,n,i){var o;null!=i&&""!=i||(i=REMOVE_IF_EQUAL_TO_REMOVE_CHAR),o=charKeyPressed(e),i==REMOVE_IF_EQUAL_TO_REMOVE_CHAR?!checkKeyPress(e,GREATER_THAN_CODE,"0")||checkKeyPress(e,EQUAL_TO_CODE,"9")||checkKeyPress(e,EQUAL_TO_CODE,"16")||o==n&&cancelEvent(e):i==REMOVE_NONNUMERIC&&(checkKeyPress(e,EQUAL_TO_CODE,"8")||checkKeyPress(e,EQUAL_TO_CODE,"9")||checkKeyPress(e,EQUAL_TO_CODE,"27")||checkKeyPress(e,EQUAL_TO_CODE,"46")||checkKeyPress(e,EQUAL_TO_CODE,"37")||checkKeyPress(e,EQUAL_TO_CODE,"39")||!isNaN(o)||cancelEvent(e))}function charKeyPressed(e){var t;return e||(e=window.event),e.keyCode?t=e.keyCode:e.which&&(t=e.which),t>0?String.fromCharCode(t):""}function ShowPharmacyHours(e,t,n){var i,o=document.getElementById(t).selectedIndex;null!=o&&(i=e+o,0==o?dangerou$.setHtml(document.getElementById(n).innerHTML,"&nbsp;"):dangerou$.setHtml(document.getElementById(n),document.getElementById(i).value))}function clearRadioSelection(e){var t,n;for(t=document.getElementsByName(e),n=0;n<t.length;n++)"radio"==t[n].type&&(t[n].checked=!1)}function UpdateAddressOptions(){var e,t,n,i,o,a,r,l,s,c,d;if(null!==(t=document.getElementById("pharmacy").selectedIndex)){for(n="pharmacyaddresses"+t,i=document.getElementById(n).value.split("*"),e=document.getElementsByName("address"),o=0;o<e.length;o++)if(!((r=e[o].id.indexOf("_"))<0)&&0!=(l=e[o].id.substring(r+1)).length&&99!=l&&(s="addresslabel_"+l,c=document.getElementById(s))){for(e[o].disabled=!0,applyClass(e[o],"hidden"),applyClass(c,"hidden"),c.disabled=!0,a=0;a<i.length;a++)if(i[a]==l){d||(d=e[o]),e[o].disabled=!1,removeClassNames(e[o],"hidden"),removeClassNames(c,"hidden"),c.disabled=!1;break}return""}d&&(d.checked=!0)}}function UpdateDeliveryMethods(e,t,n,i,o){var a,r,l,s,c,d,u,m,g,f,h,p,v,y;if(null!==(a=document.getElementById(t).selectedIndex)){if(r=e+a,null===document.getElementById(r))return(h=document.getElementById("deliveryoptions"))&&(applyClass(h,"hidden"),h.disabled=!0),showAndHideButtons("send","paynext"),(p=document.getElementById("paymentoptions"))&&(applyClass(p,"hidden"),p.disabled=!0),void hidePickupFields(["pickupoptions","addressoptions","comments"]);if(s=(l=document.getElementById(r).value).split("^"),hidePickupFields(["pickupoptions","addressoptions","comments"]),0===l.length)(h=document.getElementById("deliveryoptions"))&&(applyClass(h,"hidden"),h.disabled=!0);else{for(v=!1,(h=document.getElementById("deliveryoptions"))&&(removeClassNames(h,"hidden"),h.disabled=!1),m=1;m<4;m++)if(d=n+m,u=i+m,g=document.getElementById(d))for(g.checked&&1==o?(v=!0,1==g.value?showPickupFields(["pickupoptions"]):showPickupFields(["addressoptions","comments"])):g.checked=!1,g.disabled=!0,applyClass(g,"hidden"),applyClass(f=document.getElementById(u),"hidden"),f.disabled=!0,c=0;c<s.length;c++)s[c].split("|")[0]==m&&(g.disabled=!1,removeClassNames(g,"hidden"),removeClassNames(f,"hidden"),f.disabled=!1,y||(y=g));s.length>0&&!v&&y&&(y.checked=!0,1==y.value?(showPickupFields(["pickupoptions"]),hidePickupFields(["addressoptions","comments"])):showPickupFields(["addressoptions","comments"]))}UpdateAddressOptions(),UpdatePaymentMethods("pharmacymethods","pharmacy","deliverymethod","paymentmethod","paymentmethodlabel",o)}}function getRadioValue(e){var t,n;if(0==(t=document.getElementsByName(e)).length)return"";for(n=0;n<t.length;n++)if(1==t[n].checked)return t[n].value;return""}function UpdatePaymentMethods(e,t,n,i,o,a){var r,l,s,c,d,u,m,g,f,h,p,v,y,E,$,P;if(showAndHideButtons("send","paynext"),(E=document.getElementById("paymentoptions"))&&(applyClass(E,"hidden"),E.disabled=!0),r=document.getElementById(t).selectedIndex,f=getRadioValue(n),null!==r&&0!==f.length){for(l=e+r,s=document.getElementById(l).value.split("^"),y="",c=0;c<s.length;c++)if(f==(m=(h=s[c].indexOf("|"))<0?s[c]:s[c].substring(0,h))){h>=0&&(y=s[c].substring(h+1));break}if(y.length>0){for($=!1,g=y.split("|"),(E=document.getElementById("paymentoptions"))&&(removeClassNames(E,"hidden"),E.disabled=!1),p=document.getElementsByName(i),c=0;c<p.length;c++)if(!((h=p[c].id.indexOf("_"))<0)&&0!=(m=p[c].id.substring(h+1)).length)for(u=o+"_"+m,d=document.getElementById(u),a&&p[c].checked?($=!0,2==p[c].value&&showAndHideButtons("paynext","send")):p[c].checked=!1,P||(P=p[c]),p[c].disabled=!0,applyClass(p[c],"hidden"),applyClass(d,"hidden"),d.disabled=!0,v=0;v<g.length;v++)g[v]==m&&(p[c].disabled=!1,removeClassNames(p[c],"hidden"),removeClassNames(d,"hidden"),d.disabled=!1);g.length>0&&!$&&P&&(P.checked=!0,2==P.value&&showAndHideButtons("paynext","send"))}}}function HidePharmacyText(e,t,n,i){var o,a;e||(e=document.getElementById(t)),e&&(o=document.getElementById(n),a=document.getElementById(i),o&&a&&(e.options[e.selectedIndex].value==o.value?(a.disabled=!1,removeClassNames(a,"hidden")):(a.disabled=!0,applyClass(a,"hidden"))))}function showAndHideButtons(e,t){var n,i;(n=document.getElementById(e))&&(n.disabled=!1,removeClassNames(n,"hidden")),(i=document.getElementById(t))&&(i.disabled=!0,applyClass(i,"hidden"))}function showPickupFields(e){var t,n;if(e)for(t=0;t<e.length;t++)(n=document.getElementById(e[t]))&&(removeClassNames(n,"hidden"),n.disabled=!1)}function hidePickupFields(e){var t,n;if(e)for(t=0;t<e.length;t++)(n=document.getElementById(e[t]))&&(applyClass(n,"hidden"),n.disabled=!0)}function enableIfRadioCheckedAndElementsFilled(e,t,n,i,o){var a,r;a=document.getElementById(t),(r=document.getElementById(n))&&!containsClassName(r,"hidden")&&a&&a.checked?enableIfReqFilled(e,i,o):enableIfReqFilled(e,i)}function isValidEmail(e){return new RegExp(/^\s*[A-Za-z0-9\xC0-\xFFƒŠŒŽšœžŸ._%+-]+@[A-Za-z0-9\xC0-\xFFƒŠŒŽšœžŸ.-]+\.[A-Za-z\xC0-\xFFƒŠŒŽšœžŸ]{2,18}\s*$/).test(e)}function $T(e,t){return e&&(void 0!==e.innerText&&(e.innerText=t),void 0!==e.textContent&&(e.textContent=t)),e}function clearElement(e){if(e)for(e.innerHTML="",e.value="",e.innerText="";e.hasChildNodes();)e.removeChild(e.lastChild)}void 0===WP&&(WP={}),void 0===WP.myPath&&(WP.myPath=self.location.pathname.substr(0,self.location.pathname.indexOf(".asp")),0===WP.myPath.length&&(WP.myPath=self.location.pathname.substr(0,self.location.pathname.indexOf(".htm"))),0===WP.myPath.length?WP.myPath=self.location.pathname:WP.myPath=self.location.pathname.substr(0,WP.myPath.lastIndexOf("/")+1)),$$WP=$$WP||{},pre_checkActivity=checkActivity,"Netscape"==navigator.appName&&(window.captureEvents(Event.KEYPRESS),window.onkeypress=doMainKeyPress),getParentDocument()||console.log("Warning: Application is being displayed in a frame hosted on a different domain.");var HTMLEncodeDecodeDiv=document.createElement("div");function HTMLUnencode(e){return HTMLEncodeDecodeDiv.innerHTML=e||"",HTMLEncodeDecodeDiv.innerText||HTMLEncodeDecodeDiv.textContent}function HTMLEncode(e){return e.replace($$WP.Utilities.Global.HtmlChars,$$WP.Utilities.HtmlEncodeCallback)}function createElement(e,t,n){var i=document.createElement(e||"div");return t&&(i.className=t),n&&(i.id=n),i}function getPrefix(e){var t;return 0===(t=e?$$WP.Strings.get("DataTileStaticURLPrefix","Core.CommonUtils"):$$WP.Strings.get("DataTileURLPrefix","Core.CommonUtils")).length&&(t=WP.myPath+"@mychart@url@"),t}function applyPrefix(e,t){var n,i,o;return t=t||"",e?((i=t.indexOf("#"))>0&&(n=t.substring(i+1),t=t.substring(0,i)),o=(o=e.replace(/@mychart@url@/gi,t)).replace(/@mychart@wrappedurl@/gi,encodeURIComponent(t)),i>0&&(o=o+"#"+n),o):t}function makeStaticLink(e){var t,n,i;return 0===(e=e.replace(/\\/g,"/")).indexOf(".")&&(e=e.substring(1)),0===e.indexOf(".")&&(e=e.substring(1)),0===e.indexOf("/")&&(e=e.substring(1)),78===$$WP.ApplicationContext?Epic.PatientEngagement.Welcome.Core.Utilities.getUrl("Content/"+e):(t=getPrefix(!0),n=$$WP.AffiliateFilePath,i=new RegExp("svg$","i"),applyPrefix(t,e=!$$WPUtil.IsNullOrEmpty(n)&&i.test(e)?$$WP.AffiliateFilePath+"/"+e:$$WP.I18N.getMyChartLocale()+"/"+e))}function createImage(e,t,n,i){var o=createElement("img",e,t);return o.src=makeStaticLink("/images/"+(n||"")),o.alt=i||"",o.title=i||"",o}function getOffset(e,t){var n=e[t];for(e=e.offsetParent;e;)n+=e[t],e=e.offsetParent;return n}function createAlert(e,t,n){var i,o,a;if(0!==e.length)return i=createElement("span","alert"),!0===t&&(o=createImage("yield","","warning.png",$$WP.Strings.get("YieldTitle","Core.CommonUtils")),i.appendChild(o)),a=createElement("span","errHolder"),dangerou$.setHtml(a,e),i.appendChild(a),n&&(n.appendChild(i),n.className=""),i;clearElement(n)}function getChild(e,t){for(var n=e.firstChild;t>0;){for(t--;n&&("#comment"===n.nodeName||"#text"===n.nodeName);)n=n.nextSibling;if(!n)return null;n=n.nextSibling}for(;n&&("#comment"===n.nodeName||"#text"===n.nodeName);)n=n.nextSibling;return n}function getTrackedWindowString(e){return""!==e&&null!=e||(e="openWindows"),getCookie(e,!0)}function openWindow(e,t,n,i,o,a,r){var l,s,c;return void 0!==n&&""!==n||o||(n="status=0,menubar=0,scrollbars=1,resizable=1,toolbar=0"),r?openWindowInternal(e,t,n):(null==i&&(i="openWindows"),c=""===(s=getCookie(i,!0))?0:s.split("^").length,null!=t&&""!==t||(t="mycWin"+makeLink("")+c),l=openWindowInternal(e,t,n),setCookie(i,s=s+(s.length>0?"^":"")+t,!0),l)}function openWindowInternal(e,t,n){var i;return(i=$$WP._windowOpenReal(e,t,n))&&(i.opener=null),i}function openOAuthWindow(e){var t=$$WPUtil.getDomain(window.location),n=e.callback||function(){window.location.reload()},i=openWindow(e.sUrl,e.sName,e.sFeature);i&&i.focus();var msgListner=function(e){if(e.origin==t&&"GotAccessToken"==e.data){try{i.close()}catch(e){}window.removeEventListener?window.removeEventListener("message",msgListner,!1):window.detachEvent?window.detachEvent("onmessage",msgListner):document.detachEvent&&document.detachEvent("onmessage",msgListner),n()}};window.attachEvent?window.attachEvent("onmessage",msgListner):document.attachEvent?document.attachEvent("onmessage",msgListner):window.addEventListener&&window.addEventListener("message",msgListner);var o=document.getElementById("GetAccessTokenProxy");!o&&(-1!==navigator.userAgent.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>0)&&((o=document.createElement("iframe")).src=e.sProxy,o.width=0,o.height=0,o.frameBorder=0,o.style.visibility="hidden",o.id="GetAccessTokenProxy",document.body.appendChild(o))}function postMessageForOAuthPopup(e,t){if(-1!==navigator.userAgent.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>0){var n=document.getElementById("GetAccessTokenProxy");try{n.contentWindow.postMessage(e,t)}catch(e){}}else window.postMessage(e,t)}function closeAllWindows(e){var t,n,i,o,a,r;if(""!==e&&null!=e||(e="openWindows"),t=getCookie(e,!0)){for(a=(n=t.split("^")).length,o=0;o<a;o++)if(i=n[o])try{(r=$$WP._windowOpenReal("",i,""))&&r.close&&r.close()}catch(e){}deleteCookie(e,!0)}}function setCookie(e,t,n,i){var o;e&&(o=e+(n?"4"+makeLink("").replace(new RegExp("/","g"),"").toLowerCase():"")+"="+escape(t)+";path=/",o+=i?"; expires="+i.toGMTString():"",hasSameSiteBug()||$$WP.DisableSameSiteSecureCookie||(o+=";SameSite=None; Secure"),document.cookie=o)}function hasSameSiteBug(){var e=navigator.userAgent,t=RegExp("^.*CPU OS 1[0-2].*Version/1[0-2].*Safari.*$"),n=RegExp("^.*CPU iPhone OS 1[0-2].*Version/1[0-2].*Safari.*$"),i=RegExp("^.*Macintosh; Intel Mac OS X 10_1[0-4].*Version/1[0-3].*Safari.*$"),o=RegExp("^.*Chrom[^ /]+/(5[1-9]|6[0-6])[.d]*.*$"),a=RegExp("^.*CriOS[^ /]+/(5[1-9]|6[0-6])[.d]*.*$"),r=RegExp("^.*CPU OS 12.*like Mac OS X.*$"),l=RegExp("^.*CPU iPhone OS 12.*$");return!!(t.test(e)||n.test(e)||i.test(e)||o.test(e)||a.test(e)||r.test(e)||l.test(e))}function getCookie(e,t){var n,i,o,a,r,l,s,c;if(c="",!(n=document.cookie)||0===n.length)return c;if(i=n.split(";"))for(r=new RegExp(e+(t?"4"+makeLink("").replace(new RegExp("/","g"),"").toLowerCase():"")+"s?="),l=/^\s+|\s+$/g,a=0;a<i.length&&!o;a+=1)(s=i[a].replace(l,"")).search(r)>-1&&(c=unescape(s.substr(s.indexOf("=")+1)).replace(l,""),o=!0);return c}function deleteCookie(e,t){e&&setCookie(e,"",t,new Date(1))}function makeLink(e){return e.match(/^(otpauth:\/\/)|(epic)?https?:\/\//i)?e:78===$$WP.ApplicationContext?Epic.PatientEngagement.Welcome.Core.Utilities.getUrl(e):applyPrefix(getPrefix(!1),e)}function makeErrorPageLink(){return 78===$$WP.ApplicationContext?makeLink("Core/Home/Error"):makeLink("500.aspx")}function makeStaticImageLink(e){return 78===$$WP.ApplicationContext?Epic.PatientEngagement.Welcome.Core.Utilities.getUrl("Content/images/"+e):makeStaticLink("images/"+e)}function addQueryStringToUrl(e,t,n){if(e&&t){var i=-1!==e.indexOf("?");n||(n=""),e=e+(i?"&":"?")+t+"="+n}return e}function getCSRFTokenAsQS(e){$afe.select("body").hasClass("isPrelogin")?e():$$WPUtil.IsNullOrEmpty($$WP.Settings.DotNetOnly)||!$$WP.Settings.DotNetOnly?(($$WP=$$WP||{})._CSRFCallBackQueue=$$WP._CSRFCallBackQueue||[],$$WP._CSRFTokenQs?e($$WP._CSRFTokenQs):$$WP._CSRFReqSent?$$WP._CSRFCallBackQueue.push(e):($$WP._CSRFReqSent=!0,$.get(makeLink("Home/CSRFToken"),(function getCSRFTokenAsQS$getToken(t){var n,i,o;if(t&&(i=(n=dangerou$.parseHtml(t)).safeAttr("name")||"__RequestVerificationToken",o=n.val(),$$WP._CSRFTokenName=i,$$WP._CSRFToken=o,$$WP._CSRFTokenQs=i+"="+encodeURIComponent(o),$$WP._CSRFTokenQsToken=encodeURIComponent(o)),e($$WP._CSRFTokenQs),$$WP._CSRFCallBackQueue.length>0){for(var a=0;a<$$WP._CSRFCallBackQueue.length;a++)"function"==typeof $$WP._CSRFCallBackQueue[a]&&setTimeout($$WP._CSRFCallBackQueue[a],0,$$WP._CSRFTokenQs);$$WP._CSRFCallBackQueue=[]}})))):e()}function setFederatedLogoutMode(e){$$WP.FederatedLogoutMode=e}function getFederatedLogoutMode(){return 1==$$WP.FederatedLogoutMode}function disableEmptyFormInputs(e){var t,n;for(t=document.getElementById(e).getElementsByTagName("input"),n=0;n<t.length;n++)t[n].value.length||$afe.jq(t[n]).safeAttr("disabled",!0)}function removeNonNumericInput(e){var t=e.value.replace(/[^\d]/g,"");e.value!=t&&(e.value=t)}function removeFadedtextHint(e){$afe.jq(e).hasClass("fadedtext")&&(e.value="")}$$WP.Utilities=$$WP.Utilities||{},$$WP.Utilities.Global=$$WP.Utilities.Global||{},$$WP.Utilities.Global.HtmlEntities={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;","`":"&#x60;"},$$WP.Utilities.Global.HtmlChars=/[&<>"'\/`]/g,$$WP.Utilities.HtmlEncodeCallback=function $$WP$U$G$HEC(e){return $$WP.Utilities.Global.HtmlEntities[e]||e};try{$$WP&&$$WP.Utilities&&!$$WP.Utilities.isValidBrowser()&&-1===window.location.href.indexOf("Home/Error?Code=4")&&(window.location=makeLink("Home/Error?Code=4"))}catch(e){}function logAction(e,t,n){78===$$WP.ApplicationContext&&Epic.PatientEngagement.Welcome.Core.EventLogging.EventLoggingServices.logAction(e,t,n)}function SetActivity(){$$WPUtil.setActivity()}function SetBlurActivity(){$$WPUtil.setActivity()}function HandleKeyPress(e){return $$WPUtil.setActivity(),!0}function HandleKeyPressAndMaxLen(e,t,n,i){var o;return o="Netscape"!=navigator.appName?window.event.keyCode:e.which,$$WPUtil.setActivity(),8===o||0===o||(!(!e.ctrlKey||86===o||118===o)||CheckLength(t,n,i,1))}function HandleBlurAndMaxLen(e,t,n,i){return HandleKeyPressAndMaxLen(e,t,n,i)}function HandleOnChangeAndMaxLen(e,t,n){return $$WPUtil.setActivity(),CheckLength(e,t,n)}function enableIfChecked(e){if(document.getElementById){var t,n,i,o,a,r,l,s,c=[];if(i=document.getElementById(e)){for(a=enableIfChecked.arguments,o=1;o<a.length;o++)(n=i[a[o]])&&"object"==typeof n&&c.push(n);for(r=i.getElementsByTagName("input"),l=!1,s=0;s<r.length;s++)if(("checkbox"==(t=r[s]).type||"radio"==t.type)&&-1==t.className.toLowerCase().indexOf("hidden")&&t.checked){l=!0;break}for(o=0;o<c.length;o++)n=c[o],l?enableBtn(n):disableBtn(n)}}}function enableIfAllChecked(){var e,t,n;for(n=!0,e=0;e<arguments.length;e++)t="#"+arguments[e],0!==$afe.select(t).length&&($afe.select(t).prop("checked")||(n=!1));return n}function decodeMnemonics(e,t){var n,i;for(n in t=t||{})void 0!==t[n]&&(i=new RegExp(n,"g"),e=e.replace(i,t[n]));return e}function disableButtonAndShowSpinner(e){e.prop("disabled",!0),e.addClass("omitdisablestyling");var t=document.createElement("div");$afe.jq(t).addClass("spinningLoadWheel"),e.safeAfter(t)}function moveFormSubmissionButtonAndShowSpinner(e){var t=document.createElement("input");$afe.jq(t).addClass("button completeworkflow omitdisablestyling formbuttons"),$afe.jq(t).prop("id","noActionButton"),$afe.jq(t).prop("value","Submit"),$afe.jq(t).prop("type","submit"),$afe.jq(t).prop("disabled",!0),e.safeAfter(t),e.css("position","absolute"),e.css("left","-999em");var n=document.createElement("div");$afe.jq(n).addClass("spinningLoadWheel"),$afe.jq(t).safeAfter(n),e.on("keydown",(function(e){32!==e.keyCode&&13!==e.keyCode||e.preventDefault()}))}function reportFormFactor(){$$WP.Analytics.UsageTrackingController.logFormFactor()}function getErrorForScreenReader(){return"<span class='clearlabel'>"+$$WP.Strings.get("ErrorLabelText","Global")+"</span>"}function vdtAdmissionLoad(){var e,t,n,i=!1,o=document.getElementById("appRoot");if((e=document.getElementById("loadingSpinner"))&&(e.style.display="none"),(e=document.getElementById("vdtFrame")).parentNode.style.height="auto",e.contentDocument||(i=!0),i||null==e.contentDocument.getElementById("vdtError")||(n=!0),n)(e=document.getElementById("vdtErrorDiv")).style.display="inherit";else{e.style.display="inherit";try{isDataTile()?(t=getGenericHeight(e),e.style.height!=t&&(e.style.height=t)):setAppropriateHeight(),(o=document.getElementById("appRoot"))&&setAppropriateHeightOnDOMMutations(o)}catch(e){return}}}function getGenericHeight(e){return e.style.height="100px",Math.max(document.body.scrollHeight||200,document.body.offsetHeight||200)+16+"px"}function setClientTimeZone(){$$WP.I18N.setClientTimeZone()}function addMobileTitle(e){"undefined"!=typeof Android&&Android.setWebViewTitle?Android.setWebViewTitle(e):window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.setWebViewTitle&&window.webkit.messageHandlers.setWebViewTitle.postMessage(e)}function isArbitraryDownloadSupported(){if($$WP.Utilities.UI.IsMobile){if("undefined"!=typeof Android)return Android.webViewDownloadEnabled&&Android.webViewDownloadEnabled();if(window.webkit&&window.webkit.messageHandlers)return window.webkit.messageHandlers.webViewDownloadEnabled&&window.webkit.messageHandlers.webViewDownloadEnabled()}return!0}function getFourDigitYearFromTwoDigitYear(e,t){var n,i,o=parseInt(e),a=(new Date).getFullYear();return isNaN(t)&&(t=BIRTH_YEAR_MIN_YEARS_BACK),n=a-t,isNaN(o)?n:(i=n%100)<o?100*(Math.floor(n/100)-1)+o:n-i+o}function isValidTwoDigitYear(e){return 2==e.length&&e>=0}function isValidOneDigitDatePart(e){return e<10&&e>0&&e.length<2}function getAppVirtualPath(){return makeLink("")}function getDeviceIdKey(){return"MYCHART-WEB-DEVICE-"+getAppVirtualPath()}function reconcileWebDevice(e){if(!(void 0!==$$WP&&void 0!==$$WP.IsMidloginStep||isShareEverywhere()||isBedsideTV())){e=!!e;var t,n=getDeviceIdKey();$$WPUtil.isLocalStorageAvailable()&&void 0!==window.localStorage&&(t=localStorage.getItem(n));var i={deviceId:t,skipSessionCheck:e};$.ajax({url:makeLink("Authentication/RememberDevices/ReconcileWebDevice"),type:"POST",data:i,dataType:"json",success:function(e){var t,i=$$WPUtil.isLocalStorageAvailable()&&void 0!==window.localStorage;i&&(t=localStorage.getItem(n)),(e.forceUpdate||null===t)&&e.deviceId&&(t=e.deviceId,i&&localStorage.setItem(n,t))}})}}function initLegacyWidgetAuth(e,t){void 0!==e&&""!==e&&(window.self!==window.top?$.ajax({url:makeLink("Widget/GetPostMessageUrl"),type:"POST",data:{apiKey:e},dataType:"json",success:function(e){e.postMessageUrl&&(window.parent.postMessage("TokenInitialize",e.postMessageUrl),window.addEventListener("message",(function(e){e.data&&e.data.AccessToken&&($$WP.WidgetAccessToken=e.data.AccessToken),t&&t()})))}}):t&&t())};
